From 631cc9feca2abe9cbc2015be22b75376e349cbce Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Tue, 19 Apr 2022 11:11:03 +0200 Subject: [PATCH 001/126] chore: update with upstream master (#525) * ci: update generic workflows (#519) * chore: add next-major-spec prerelease (#518) * chore(deps): bump async from 2.6.3 to 2.6.4 (#524) Co-authored-by: asyncapi-bot Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/link-check-cron.yml | 6 +++--- .github/workflows/link-check-pr.yml | 7 +++++-- package-lock.json | 12 ++++++------ package.json | 4 ++++ 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/.github/workflows/link-check-cron.yml b/.github/workflows/link-check-cron.yml index e24b066ba..854c972e0 100644 --- a/.github/workflows/link-check-cron.yml +++ b/.github/workflows/link-check-cron.yml @@ -17,7 +17,7 @@ jobs: # Checks the status of hyperlinks in .md files - name: Check links - uses: gaurav-nelson/github-action-markdown-link-check@v1 + uses: derberg/github-action-markdown-link-check@temporary-fix with: use-quiet-mode: 'yes' use-verbose-mode: 'yes' @@ -29,8 +29,8 @@ jobs: - name: Report workflow run status to Slack uses: 8398a7/action-slack@v3 with: - status: ${{ job.status }} - fields: repo,message,action,eventName,ref,workflow + status: ${{ job.status }} + fields: repo,action,workflow env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DOCS_CHANNEL }} if: failure() # Only, on failure, send a message on the Slack Docs Channel (if there are broken links) diff --git a/.github/workflows/link-check-pr.yml b/.github/workflows/link-check-pr.yml index 6e9eb3589..4bdbad229 100644 --- a/.github/workflows/link-check-pr.yml +++ b/.github/workflows/link-check-pr.yml @@ -6,14 +6,17 @@ name: Check Markdown links on: pull_request_target: types: [synchronize, ready_for_review, opened, reopened] + paths: + - '**.md' jobs: External-link-validation-on-PR: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout repo + uses: actions/checkout@v3 - name: Check links - uses: gaurav-nelson/github-action-markdown-link-check@v1 + uses: derberg/github-action-markdown-link-check@temporary-fix with: use-quiet-mode: 'yes' use-verbose-mode: 'yes' diff --git a/package-lock.json b/package-lock.json index 32b076187..36d8c2d2e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1608,9 +1608,9 @@ } }, "node_modules/async": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", - "integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==", + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", + "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", "dev": true, "dependencies": { "lodash": "^4.17.14" @@ -16610,9 +16610,9 @@ "dev": true }, "async": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", - "integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==", + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", + "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", "dev": true, "requires": { "lodash": "^4.17.14" diff --git a/package.json b/package.json index 5da260446..f599f7f71 100644 --- a/package.json +++ b/package.json @@ -94,6 +94,10 @@ { "name": "next-major", "prerelease": true + }, + { + "name": "next-major-spec", + "prerelease": true } ], "plugins": [ From 1f4cab07badfefae4da41c870ac9583cd59f13bf Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Thu, 21 Apr 2022 13:56:47 +0200 Subject: [PATCH 002/126] chore: add new 3.0 mimetype (#517) --- lib/asyncapiSchemaFormatParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/asyncapiSchemaFormatParser.js b/lib/asyncapiSchemaFormatParser.js index df412c5ff..3dc1816d4 100644 --- a/lib/asyncapiSchemaFormatParser.js +++ b/lib/asyncapiSchemaFormatParser.js @@ -48,7 +48,7 @@ function getMimeTypes() { 'application/schema+json;version=draft-07', 'application/schema+yaml;version=draft-07', ]; - ['2.0.0', '2.1.0', '2.2.0', '2.3.0'].forEach(version => { + ['2.0.0', '2.1.0', '2.2.0', '2.3.0', '3.0.0'].forEach(version => { mimeTypes.push( `application/vnd.aai.asyncapi;version=${version}`, `application/vnd.aai.asyncapi+json;version=${version}`, From 32ca3aad477b9f4a80f0e5e4cc79f4a1a19f2f43 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Wed, 16 Feb 2022 12:01:57 +0100 Subject: [PATCH 003/126] docs: add first statements about parserjs v2 and intent-driven usage (#447) --- README.md | 22 +++++++++++++++++++--- API.md => docs/api/v1.md | 0 docs/api/v2.md | 1 + package.json | 2 +- 4 files changed, 21 insertions(+), 4 deletions(-) rename API.md => docs/api/v1.md (100%) create mode 100644 docs/api/v2.md diff --git a/README.md b/README.md index e5c0dd8e0..86ce22bd6 100644 --- a/README.md +++ b/README.md @@ -106,9 +106,25 @@ Head over to [asyncapi/raml-dt-schema-parser](https://www.github.com/asyncapi/ra ## API documentation -The parser API is generally structured the same way as the AsyncAPI specification, with additional support functions such as `has()`. The parser uses wrapped functions to get the properties stored in JSON. This means in order to get the info object you would use the function `doc.info()` and to get the title inside the info object you call `doc.info().title()`. +Parser-JS API implements a global API definition for all AsyncAPI parser implementations known as the [Parser-API](https://github.com/asyncapi/parser-api). +This API is designed having in mind developer experience and resiliency to breaking changes. -See [API documentation](/API.md) for more example and full API reference information. +The following table shows a compatibility matrix between this parser, and the [Parser-API](https://github.com/asyncapi/parser-api), as well as the AsyncAPI spec version supported by each release of this parser. + +Parser-JS | Parser-API | Spec 2.x | Spec 3.x +----------|----------------------------------------------------------------------|----------|--------- +1.x | | ✓ | +2.x | [1.x](https://github.com/asyncapi/parser-api/blob/master/docs/v1.md) | | ✓ + +- `✓` Fully supported version. +- `-` The AsyncAPI Spec version has features the Parser-JS can't use but the rest are fully supported. +- Empty means not supported version. + +Additionally to all the methods declared in the [Parser-API](https://github.com/asyncapi/parser-api), this parser might introduce some helper functions. + +Direct access to the parsed JSON document is always available through the `doc.raw()` method. + +See [API documentation](/docs/api/v2.md) for more example and full API reference information. ## Using in the browser @@ -191,7 +207,7 @@ This package throws a bunch of different error types. All errors contain a `type |`schema-validation-errors`| `parsedJSON`, `validationErrors` | Schema of the payload provided in the AsyncAPI document is not valid with AsyncAPI schema format. |`fetch-url-error`| None | The URL provided for fetching AsynAPI document is invalid. -For more information about the `ParserError` class, [check out the documentation](./API.md#new_ParserError_new). +For more information about the `ParserError` class, [check out the documentation](./docs/api/v1.md#new_ParserError_new). ## Custom extensions diff --git a/API.md b/docs/api/v1.md similarity index 100% rename from API.md rename to docs/api/v1.md diff --git a/docs/api/v2.md b/docs/api/v2.md new file mode 100644 index 000000000..2fd9f9570 --- /dev/null +++ b/docs/api/v2.md @@ -0,0 +1 @@ +TBD \ No newline at end of file diff --git a/package.json b/package.json index f599f7f71..dbcf02510 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "scripts": { "test": "npm run test:browser:cleanup && npm run test:lib && npm run test:parseFromUrl && npm run cover:report && npm run test:browser", "bundle": "browserify \"lib/browser.js\" | uglifyjs > \"dist/bundle.js\"", - "docs": "jsdoc2md \"lib/parser.js\" -f \"lib/**/*.js\" > API.md", + "docs": "jsdoc2md \"lib/parser.js\" -f \"lib/**/*.js\" > docs/api/v2.md", "types": "jsdoc -t \"node_modules/tsd-jsdoc/dist\" -r lib -d \"./\" && node \"./scripts/fix-ts-types.js\"", "prepublishOnly": "npm run bundle && npm run docs && npm run types", "release": "semantic-release", From 7d066b2c1daca32c6e5ae9b1fc0d01b5463555db Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Tue, 8 Mar 2022 13:22:00 +0100 Subject: [PATCH 004/126] feat: remove all previous parser code letting a fresh start for 2.0.0 (#483) --- .eslintignore | 8 +- .gitignore | 3 - .npmignore | 4 - README.md | 145 +- browser/index.js | 8 + browser/index.js.LICENSE.txt | 84 + cjs/constants.d.ts | 13 + cjs/constants.js | 22 + cjs/custom-operations/anonymous-naming.d.ts | 2 + cjs/custom-operations/anonymous-naming.js | 63 + cjs/custom-operations/apply-traits.d.ts | 3 + cjs/custom-operations/apply-traits.js | 54 + .../check-circular-refs.d.ts | 2 + cjs/custom-operations/check-circular-refs.js | 24 + cjs/custom-operations/index.d.ts | 5 + cjs/custom-operations/index.js | 37 + cjs/custom-operations/parse-schema.d.ts | 3 + cjs/custom-operations/parse-schema.js | 79 + cjs/document.d.ts | 7 + cjs/document.js | 47 + cjs/from.d.ts | 14 + cjs/from.js | 93 + cjs/index.d.ts | 13 + cjs/index.js | 31 + cjs/iterator.d.ts | 42 + cjs/iterator.js | 228 + cjs/models/asyncapi.d.ts | 24 + cjs/models/asyncapi.js | 2 + cjs/models/base.d.ts | 17 + cjs/models/base.js | 33 + cjs/models/binding.d.ts | 7 + cjs/models/binding.js | 2 + cjs/models/bindings.d.ts | 5 + cjs/models/bindings.js | 2 + cjs/models/channel-parameter.d.ts | 10 + cjs/models/channel-parameter.js | 2 + cjs/models/channel-parameters.d.ts | 3 + cjs/models/channel-parameters.js | 2 + cjs/models/channel.d.ts | 14 + cjs/models/channel.js | 2 + cjs/models/channels.d.ts | 6 + cjs/models/channels.js | 2 + cjs/models/collection.d.ts | 19 + cjs/models/collection.js | 30 + cjs/models/components.d.ts | 32 + cjs/models/components.js | 2 + cjs/models/contact.d.ts | 10 + cjs/models/contact.js | 2 + cjs/models/correlation-id.d.ts | 6 + cjs/models/correlation-id.js | 2 + cjs/models/correlation-ids.d.ts | 3 + cjs/models/correlation-ids.js | 2 + cjs/models/extension.d.ts | 6 + cjs/models/extension.js | 2 + cjs/models/extensions.d.ts | 3 + cjs/models/extensions.js | 2 + cjs/models/external-docs.d.ts | 5 + cjs/models/external-docs.js | 2 + cjs/models/index.d.ts | 44 + cjs/models/index.js | 60 + cjs/models/info.d.ts | 16 + cjs/models/info.js | 2 + cjs/models/license.d.ts | 7 + cjs/models/license.js | 2 + cjs/models/message-example.d.ts | 12 + cjs/models/message-example.js | 2 + cjs/models/message-examples.d.ts | 3 + cjs/models/message-examples.js | 2 + cjs/models/message-trait.d.ts | 24 + cjs/models/message-trait.js | 2 + cjs/models/message-traits.d.ts | 3 + cjs/models/message-traits.js | 2 + cjs/models/message.d.ts | 15 + cjs/models/message.js | 2 + cjs/models/messages.d.ts | 6 + cjs/models/messages.js | 2 + cjs/models/mixins.d.ts | 21 + cjs/models/mixins.js | 2 + cjs/models/oauth-flow.d.ts | 9 + cjs/models/oauth-flow.js | 2 + cjs/models/oauth-flows.d.ts | 13 + cjs/models/oauth-flows.js | 2 + cjs/models/operation-trait.d.ts | 11 + cjs/models/operation-trait.js | 2 + cjs/models/operation-traits.d.ts | 3 + cjs/models/operation-traits.js | 2 + cjs/models/operation.d.ts | 16 + cjs/models/operation.js | 2 + cjs/models/operations.d.ts | 6 + cjs/models/operations.js | 2 + cjs/models/schema.d.ts | 56 + cjs/models/schema.js | 2 + cjs/models/schemas.d.ts | 3 + cjs/models/schemas.js | 2 + cjs/models/security-requirement.d.ts | 6 + cjs/models/security-requirement.js | 2 + cjs/models/security-requirements.d.ts | 3 + cjs/models/security-requirements.js | 2 + cjs/models/security-scheme.d.ts | 13 + cjs/models/security-scheme.js | 2 + cjs/models/security-schemes.d.ts | 3 + cjs/models/security-schemes.js | 2 + cjs/models/server-variable.d.ts | 10 + cjs/models/server-variable.js | 2 + cjs/models/server-variables.d.ts | 3 + cjs/models/server-variables.js | 2 + cjs/models/server.d.ts | 19 + cjs/models/server.js | 2 + cjs/models/servers.d.ts | 6 + cjs/models/servers.js | 2 + cjs/models/tag.d.ts | 5 + cjs/models/tag.js | 2 + cjs/models/tags.d.ts | 3 + cjs/models/tags.js | 2 + cjs/models/utils.d.ts | 10 + cjs/models/utils.js | 7 + cjs/models/v2/asyncapi.d.ts | 26 + cjs/models/v2/asyncapi.js | 61 + cjs/models/v2/binding.d.ts | 12 + cjs/models/v2/binding.js | 22 + cjs/models/v2/bindings.d.ts | 8 + cjs/models/v2/bindings.js | 23 + cjs/models/v2/channel-parameter.d.ts | 17 + cjs/models/v2/channel-parameter.js | 35 + cjs/models/v2/channel-parameters.d.ts | 6 + cjs/models/v2/channel-parameters.js | 10 + cjs/models/v2/channel.d.ts | 24 + cjs/models/v2/channel.js | 67 + cjs/models/v2/channels.d.ts | 8 + cjs/models/v2/channels.js | 16 + cjs/models/v2/components.d.ts | 39 + cjs/models/v2/components.js | 101 + cjs/models/v2/contact.d.ts | 13 + cjs/models/v2/contact.js | 29 + cjs/models/v2/correlation-id.d.ts | 11 + cjs/models/v2/correlation-id.js | 23 + cjs/models/v2/correlation-ids.d.ts | 6 + cjs/models/v2/correlation-ids.js | 10 + cjs/models/v2/extension.d.ts | 10 + cjs/models/v2/extension.js | 16 + cjs/models/v2/extensions.d.ts | 6 + cjs/models/v2/extensions.js | 11 + cjs/models/v2/external-docs.d.ts | 10 + cjs/models/v2/external-docs.js | 20 + cjs/models/v2/index.d.ts | 37 + cjs/models/v2/index.js | 77 + cjs/models/v2/info.d.ts | 26 + cjs/models/v2/info.js | 66 + cjs/models/v2/license.d.ts | 10 + cjs/models/v2/license.js | 20 + cjs/models/v2/message-example.d.ts | 15 + cjs/models/v2/message-example.js | 35 + cjs/models/v2/message-examples.d.ts | 6 + cjs/models/v2/message-examples.js | 10 + cjs/models/v2/message-trait.d.ts | 38 + cjs/models/v2/message-trait.js | 94 + cjs/models/v2/message-traits.d.ts | 6 + cjs/models/v2/message-traits.js | 10 + cjs/models/v2/message.d.ts | 16 + cjs/models/v2/message.js | 67 + cjs/models/v2/messages.d.ts | 8 + cjs/models/v2/messages.js | 16 + cjs/models/v2/mixins.d.ts | 25 + cjs/models/v2/mixins.js | 49 + cjs/models/v2/oauth-flow.d.ts | 12 + cjs/models/v2/oauth-flow.js | 26 + cjs/models/v2/oauth-flows.d.ts | 16 + cjs/models/v2/oauth-flows.js | 44 + cjs/models/v2/operation-trait.d.ts | 30 + cjs/models/v2/operation-trait.js | 68 + cjs/models/v2/operation-traits.d.ts | 6 + cjs/models/v2/operation-traits.js | 10 + cjs/models/v2/operation.d.ts | 13 + cjs/models/v2/operation.js | 57 + cjs/models/v2/operations.d.ts | 8 + cjs/models/v2/operations.js | 16 + cjs/models/v2/schema.d.ts | 69 + cjs/models/v2/schema.js | 313 + cjs/models/v2/schemas.d.ts | 6 + cjs/models/v2/schemas.js | 10 + cjs/models/v2/security-requirement.d.ts | 12 + cjs/models/v2/security-requirement.js | 13 + cjs/models/v2/security-requirements.d.ts | 6 + cjs/models/v2/security-requirements.js | 10 + cjs/models/v2/security-scheme.d.ts | 20 + cjs/models/v2/security-scheme.js | 44 + cjs/models/v2/security-schemes.d.ts | 6 + cjs/models/v2/security-schemes.js | 10 + cjs/models/v2/server-variable.d.ts | 17 + cjs/models/v2/server-variable.js | 35 + cjs/models/v2/server-variables.d.ts | 6 + cjs/models/v2/server-variables.js | 10 + cjs/models/v2/server.d.ts | 28 + cjs/models/v2/server.js | 88 + cjs/models/v2/servers.d.ts | 8 + cjs/models/v2/servers.js | 16 + cjs/models/v2/tag.d.ts | 13 + cjs/models/v2/tag.js | 26 + cjs/models/v2/tags.d.ts | 6 + cjs/models/v2/tags.js | 10 + cjs/models/v3/asyncapi.d.ts | 4 + cjs/models/v3/asyncapi.js | 10 + cjs/models/v3/index.d.ts | 1 + cjs/models/v3/index.js | 5 + cjs/old-api/asyncapi.d.ts | 40 + cjs/old-api/asyncapi.js | 161 + cjs/old-api/base.d.ts | 8 + cjs/old-api/base.js | 18 + cjs/old-api/channel-parameter.d.ts | 9 + cjs/old-api/channel-parameter.js | 22 + cjs/old-api/channel.d.ts | 23 + cjs/old-api/channel.js | 72 + cjs/old-api/components.d.ts | 44 + cjs/old-api/components.js | 107 + cjs/old-api/contact.d.ts | 7 + cjs/old-api/contact.js | 16 + cjs/old-api/converter.d.ts | 3 + cjs/old-api/converter.js | 49 + cjs/old-api/correlation-id.d.ts | 7 + cjs/old-api/correlation-id.js | 16 + cjs/old-api/external-docs.d.ts | 15 + cjs/old-api/external-docs.js | 41 + cjs/old-api/info.d.ts | 13 + cjs/old-api/info.js | 34 + cjs/old-api/iterator.d.ts | 42 + cjs/old-api/iterator.js | 250 + cjs/old-api/license.d.ts | 6 + cjs/old-api/license.js | 13 + cjs/old-api/message-trait.d.ts | 30 + cjs/old-api/message-trait.js | 87 + cjs/old-api/message.d.ts | 11 + cjs/old-api/message.js | 32 + cjs/old-api/mixins.d.ts | 95 + cjs/old-api/mixins.js | 148 + cjs/old-api/oauth-flow.d.ts | 8 + cjs/old-api/oauth-flow.js | 19 + cjs/old-api/operation-trait.d.ts | 27 + cjs/old-api/operation-trait.js | 70 + cjs/old-api/operation.d.ts | 10 + cjs/old-api/operation.js | 46 + cjs/old-api/schema.d.ts | 63 + cjs/old-api/schema.js | 253 + cjs/old-api/security-requirement.d.ts | 4 + cjs/old-api/security-requirement.js | 7 + cjs/old-api/security-scheme.d.ts | 14 + cjs/old-api/security-scheme.js | 35 + cjs/old-api/server-variable.d.ts | 12 + cjs/old-api/server-variable.js | 33 + cjs/old-api/server.d.ts | 20 + cjs/old-api/server.js | 53 + cjs/old-api/tag.d.ts | 17 + cjs/old-api/tag.js | 47 + cjs/parse.d.ts | 16 + cjs/parse.js | 46 + cjs/parser.d.ts | 21 + cjs/parser.js | 53 + cjs/resolver.d.ts | 13 + cjs/resolver.js | 77 + cjs/schema-parser/asyncapi-schema-parser.d.ts | 2 + cjs/schema-parser/asyncapi-schema-parser.js | 95 + cjs/schema-parser/avro-schema-parser.d.ts | 9 + cjs/schema-parser/avro-schema-parser.js | 347 + cjs/schema-parser/index.d.ts | 28 + cjs/schema-parser/index.js | 66 + cjs/schema-parser/openapi-schema-parser.d.ts | 2 + cjs/schema-parser/openapi-schema-parser.js | 106 + cjs/schema-parser/openapi/schema_v3.d.ts | 239 + cjs/schema-parser/openapi/schema_v3.js | 278 + cjs/schema-parser/raml-schema-parser.d.ts | 2 + cjs/schema-parser/raml-schema-parser.js | 89 + cjs/schema-parser/spectral-rule-v2.d.ts | 3 + cjs/schema-parser/spectral-rule-v2.js | 81 + cjs/spec-types/index.d.ts | 1 + cjs/spec-types/index.js | 27 + cjs/spec-types/v2.d.ts | 362 + cjs/spec-types/v2.js | 2 + cjs/spectral.d.ts | 3 + cjs/spectral.js | 69 + cjs/stringify.d.ts | 9 + cjs/stringify.js | 105 + cjs/types.d.ts | 23 + cjs/types.js | 2 + cjs/utils.d.ts | 20 + cjs/utils.js | 138 + cjs/validate.d.ts | 15 + cjs/validate.js | 39 + dist/bundle.js | 1 - docs/{api/v2.md => api.md} | 0 docs/api/v1.md | 3980 --- esm/constants.d.ts | 13 + esm/constants.js | 16 + esm/custom-operations/anonymous-naming.d.ts | 2 + esm/custom-operations/anonymous-naming.js | 59 + esm/custom-operations/apply-traits.d.ts | 3 + esm/custom-operations/apply-traits.js | 49 + .../check-circular-refs.d.ts | 2 + esm/custom-operations/check-circular-refs.js | 20 + esm/custom-operations/index.d.ts | 5 + esm/custom-operations/index.js | 33 + esm/custom-operations/parse-schema.d.ts | 3 + esm/custom-operations/parse-schema.js | 75 + esm/document.d.ts | 7 + esm/document.js | 39 + esm/from.d.ts | 14 + esm/from.js | 65 + esm/index.d.ts | 13 + esm/index.js | 8 + esm/iterator.d.ts | 42 + esm/iterator.js | 224 + esm/models/asyncapi.d.ts | 24 + esm/models/asyncapi.js | 1 + esm/models/base.d.ts | 17 + esm/models/base.js | 29 + esm/models/binding.d.ts | 7 + esm/models/binding.js | 1 + esm/models/bindings.d.ts | 5 + esm/models/bindings.js | 1 + esm/models/channel-parameter.d.ts | 10 + esm/models/channel-parameter.js | 1 + esm/models/channel-parameters.d.ts | 3 + esm/models/channel-parameters.js | 1 + esm/models/channel.d.ts | 14 + esm/models/channel.js | 1 + esm/models/channels.d.ts | 6 + esm/models/channels.js | 1 + esm/models/collection.d.ts | 19 + esm/models/collection.js | 26 + esm/models/components.d.ts | 32 + esm/models/components.js | 1 + esm/models/contact.d.ts | 10 + esm/models/contact.js | 1 + esm/models/correlation-id.d.ts | 6 + esm/models/correlation-id.js | 1 + esm/models/correlation-ids.d.ts | 3 + esm/models/correlation-ids.js | 1 + esm/models/extension.d.ts | 6 + esm/models/extension.js | 1 + esm/models/extensions.d.ts | 3 + esm/models/extensions.js | 1 + esm/models/external-docs.d.ts | 5 + esm/models/external-docs.js | 1 + esm/models/index.d.ts | 44 + esm/models/index.js | 44 + esm/models/info.d.ts | 16 + esm/models/info.js | 1 + esm/models/license.d.ts | 7 + esm/models/license.js | 1 + esm/models/message-example.d.ts | 12 + esm/models/message-example.js | 1 + esm/models/message-examples.d.ts | 3 + esm/models/message-examples.js | 1 + esm/models/message-trait.d.ts | 24 + esm/models/message-trait.js | 1 + esm/models/message-traits.d.ts | 3 + esm/models/message-traits.js | 1 + esm/models/message.d.ts | 15 + esm/models/message.js | 1 + esm/models/messages.d.ts | 6 + esm/models/messages.js | 1 + esm/models/mixins.d.ts | 21 + esm/models/mixins.js | 1 + esm/models/oauth-flow.d.ts | 9 + esm/models/oauth-flow.js | 1 + esm/models/oauth-flows.d.ts | 13 + esm/models/oauth-flows.js | 1 + esm/models/operation-trait.d.ts | 11 + esm/models/operation-trait.js | 1 + esm/models/operation-traits.d.ts | 3 + esm/models/operation-traits.js | 1 + esm/models/operation.d.ts | 16 + esm/models/operation.js | 1 + esm/models/operations.d.ts | 6 + esm/models/operations.js | 1 + esm/models/schema.d.ts | 56 + esm/models/schema.js | 1 + esm/models/schemas.d.ts | 3 + esm/models/schemas.js | 1 + esm/models/security-requirement.d.ts | 6 + esm/models/security-requirement.js | 1 + esm/models/security-requirements.d.ts | 3 + esm/models/security-requirements.js | 1 + esm/models/security-scheme.d.ts | 13 + esm/models/security-scheme.js | 1 + esm/models/security-schemes.d.ts | 3 + esm/models/security-schemes.js | 1 + esm/models/server-variable.d.ts | 10 + esm/models/server-variable.js | 1 + esm/models/server-variables.d.ts | 3 + esm/models/server-variables.js | 1 + esm/models/server.d.ts | 19 + esm/models/server.js | 1 + esm/models/servers.d.ts | 6 + esm/models/servers.js | 1 + esm/models/tag.d.ts | 5 + esm/models/tag.js | 1 + esm/models/tags.d.ts | 3 + esm/models/tags.js | 1 + esm/models/utils.d.ts | 10 + esm/models/utils.js | 3 + esm/models/v2/asyncapi.d.ts | 26 + esm/models/v2/asyncapi.js | 57 + esm/models/v2/binding.d.ts | 12 + esm/models/v2/binding.js | 18 + esm/models/v2/bindings.d.ts | 8 + esm/models/v2/bindings.js | 19 + esm/models/v2/channel-parameter.d.ts | 17 + esm/models/v2/channel-parameter.js | 31 + esm/models/v2/channel-parameters.d.ts | 6 + esm/models/v2/channel-parameters.js | 6 + esm/models/v2/channel.d.ts | 24 + esm/models/v2/channel.js | 63 + esm/models/v2/channels.d.ts | 8 + esm/models/v2/channels.js | 12 + esm/models/v2/components.d.ts | 39 + esm/models/v2/components.js | 97 + esm/models/v2/contact.d.ts | 13 + esm/models/v2/contact.js | 25 + esm/models/v2/correlation-id.d.ts | 11 + esm/models/v2/correlation-id.js | 19 + esm/models/v2/correlation-ids.d.ts | 6 + esm/models/v2/correlation-ids.js | 6 + esm/models/v2/extension.d.ts | 10 + esm/models/v2/extension.js | 12 + esm/models/v2/extensions.d.ts | 6 + esm/models/v2/extensions.js | 7 + esm/models/v2/external-docs.d.ts | 10 + esm/models/v2/external-docs.js | 16 + esm/models/v2/index.d.ts | 37 + esm/models/v2/index.js | 37 + esm/models/v2/info.d.ts | 26 + esm/models/v2/info.js | 62 + esm/models/v2/license.d.ts | 10 + esm/models/v2/license.js | 16 + esm/models/v2/message-example.d.ts | 15 + esm/models/v2/message-example.js | 31 + esm/models/v2/message-examples.d.ts | 6 + esm/models/v2/message-examples.js | 6 + esm/models/v2/message-trait.d.ts | 38 + esm/models/v2/message-trait.js | 90 + esm/models/v2/message-traits.d.ts | 6 + esm/models/v2/message-traits.js | 6 + esm/models/v2/message.d.ts | 16 + esm/models/v2/message.js | 63 + esm/models/v2/messages.d.ts | 8 + esm/models/v2/messages.js | 12 + esm/models/v2/mixins.d.ts | 25 + esm/models/v2/mixins.js | 39 + esm/models/v2/oauth-flow.d.ts | 12 + esm/models/v2/oauth-flow.js | 22 + esm/models/v2/oauth-flows.d.ts | 16 + esm/models/v2/oauth-flows.js | 40 + esm/models/v2/operation-trait.d.ts | 30 + esm/models/v2/operation-trait.js | 64 + esm/models/v2/operation-traits.d.ts | 6 + esm/models/v2/operation-traits.js | 6 + esm/models/v2/operation.d.ts | 13 + esm/models/v2/operation.js | 53 + esm/models/v2/operations.d.ts | 8 + esm/models/v2/operations.js | 12 + esm/models/v2/schema.d.ts | 69 + esm/models/v2/schema.js | 309 + esm/models/v2/schemas.d.ts | 6 + esm/models/v2/schemas.js | 6 + esm/models/v2/security-requirement.d.ts | 12 + esm/models/v2/security-requirement.js | 9 + esm/models/v2/security-requirements.d.ts | 6 + esm/models/v2/security-requirements.js | 6 + esm/models/v2/security-scheme.d.ts | 20 + esm/models/v2/security-scheme.js | 40 + esm/models/v2/security-schemes.d.ts | 6 + esm/models/v2/security-schemes.js | 6 + esm/models/v2/server-variable.d.ts | 17 + esm/models/v2/server-variable.js | 31 + esm/models/v2/server-variables.d.ts | 6 + esm/models/v2/server-variables.js | 6 + esm/models/v2/server.d.ts | 28 + esm/models/v2/server.js | 84 + esm/models/v2/servers.d.ts | 8 + esm/models/v2/servers.js | 12 + esm/models/v2/tag.d.ts | 13 + esm/models/v2/tag.js | 22 + esm/models/v2/tags.d.ts | 6 + esm/models/v2/tags.js | 6 + esm/models/v3/asyncapi.d.ts | 4 + esm/models/v3/asyncapi.js | 6 + esm/models/v3/index.d.ts | 1 + esm/models/v3/index.js | 1 + esm/old-api/asyncapi.d.ts | 40 + esm/old-api/asyncapi.js | 157 + esm/old-api/base.d.ts | 8 + esm/old-api/base.js | 14 + esm/old-api/channel-parameter.d.ts | 9 + esm/old-api/channel-parameter.js | 18 + esm/old-api/channel.d.ts | 23 + esm/old-api/channel.js | 68 + esm/old-api/components.d.ts | 44 + esm/old-api/components.js | 103 + esm/old-api/contact.d.ts | 7 + esm/old-api/contact.js | 12 + esm/old-api/converter.d.ts | 3 + esm/old-api/converter.js | 45 + esm/old-api/correlation-id.d.ts | 7 + esm/old-api/correlation-id.js | 12 + esm/old-api/external-docs.d.ts | 15 + esm/old-api/external-docs.js | 37 + esm/old-api/info.d.ts | 13 + esm/old-api/info.js | 30 + esm/old-api/iterator.d.ts | 42 + esm/old-api/iterator.js | 246 + esm/old-api/license.d.ts | 6 + esm/old-api/license.js | 9 + esm/old-api/message-trait.d.ts | 30 + esm/old-api/message-trait.js | 83 + esm/old-api/message.d.ts | 11 + esm/old-api/message.js | 28 + esm/old-api/mixins.d.ts | 95 + esm/old-api/mixins.js | 138 + esm/old-api/oauth-flow.d.ts | 8 + esm/old-api/oauth-flow.js | 15 + esm/old-api/operation-trait.d.ts | 27 + esm/old-api/operation-trait.js | 66 + esm/old-api/operation.d.ts | 10 + esm/old-api/operation.js | 42 + esm/old-api/schema.d.ts | 63 + esm/old-api/schema.js | 249 + esm/old-api/security-requirement.d.ts | 4 + esm/old-api/security-requirement.js | 3 + esm/old-api/security-scheme.d.ts | 14 + esm/old-api/security-scheme.js | 31 + esm/old-api/server-variable.d.ts | 12 + esm/old-api/server-variable.js | 29 + esm/old-api/server.d.ts | 20 + esm/old-api/server.js | 49 + esm/old-api/tag.d.ts | 17 + esm/old-api/tag.js | 43 + esm/parse.d.ts | 16 + esm/parse.js | 42 + esm/parser.d.ts | 21 + esm/parser.js | 49 + esm/resolver.d.ts | 13 + esm/resolver.js | 73 + esm/schema-parser/asyncapi-schema-parser.d.ts | 2 + esm/schema-parser/asyncapi-schema-parser.js | 88 + esm/schema-parser/avro-schema-parser.d.ts | 9 + esm/schema-parser/avro-schema-parser.js | 339 + esm/schema-parser/index.d.ts | 28 + esm/schema-parser/index.js | 58 + esm/schema-parser/openapi-schema-parser.d.ts | 2 + esm/schema-parser/openapi-schema-parser.js | 99 + esm/schema-parser/openapi/schema_v3.d.ts | 239 + esm/schema-parser/openapi/schema_v3.js | 275 + esm/schema-parser/raml-schema-parser.d.ts | 2 + esm/schema-parser/raml-schema-parser.js | 59 + esm/schema-parser/spectral-rule-v2.d.ts | 3 + esm/schema-parser/spectral-rule-v2.js | 77 + esm/spec-types/index.d.ts | 1 + esm/spec-types/index.js | 1 + esm/spec-types/v2.d.ts | 362 + esm/spec-types/v2.js | 1 + esm/spectral.d.ts | 3 + esm/spectral.js | 62 + esm/stringify.d.ts | 9 + esm/stringify.js | 97 + esm/types.d.ts | 23 + esm/types.js | 1 + esm/utils.d.ts | 20 + esm/utils.js | 120 + esm/validate.d.ts | 15 + esm/validate.js | 35 + lib/anonymousNaming.js | 128 - lib/asyncapiSchemaFormatParser.js | 109 - lib/browser.js | 1 - lib/constants.js | 15 - lib/customValidators.js | 617 - lib/errors/parser-error.js | 64 - lib/index.js | 6 - lib/iterators.js | 325 - lib/json-parse.js | 43 - lib/mixins/bindings.js | 46 - lib/mixins/description.js | 23 - lib/mixins/external-docs.js | 25 - lib/mixins/specification-extensions.js | 79 - lib/mixins/tags.js | 47 - lib/models/asyncapi.js | 365 - lib/models/base.js | 26 - lib/models/channel-parameter.js | 35 - lib/models/channel.js | 102 - lib/models/components.js | 224 - lib/models/contact.js | 39 - lib/models/correlation-id.js | 26 - lib/models/external-docs.js | 26 - lib/models/info.js | 58 - lib/models/license.js | 31 - lib/models/message-trait.js | 13 - lib/models/message-traitable.js | 94 - lib/models/message.js | 59 - lib/models/oauth-flow.js | 45 - lib/models/operation-trait.js | 13 - lib/models/operation-traitable.js | 39 - lib/models/operation.js | 59 - lib/models/publish-operation.js | 33 - lib/models/schema.js | 445 - lib/models/security-scheme.js | 69 - lib/models/server-security-requirement.js | 13 - lib/models/server-variable.js | 63 - lib/models/server.js | 74 - lib/models/subscribe-operation.js | 33 - lib/models/tag.js | 28 - lib/models/utils.js | 76 - lib/parser.js | 316 - lib/utils.js | 322 - package-lock.json | 12652 +-------- package.json | 77 +- scripts/fix-ts-types.js | 36 - test/asyncapiSchemaFormatParser_test.js | 194 - test/browser_test.js | 63 - test/customValidators_test.js | 1349 - test/good/asyncapi-complex-schema.yml | 35 - test/good/asyncapi-messages-channels.yml | 35 - .../asyncapi-messages-example-headers.yml | 26 - .../asyncapi-messages-example-optional.yml | 26 - .../asyncapi-messages-example-payload.yml | 26 - test/good/asyncapi-messages-example.yml | 28 - test/good/asyncapi-no-channels.yml | 27 - test/good/asyncapi-no-components.yml | 13 - test/good/asyncapi.json | 44 - test/good/asyncapi.yaml | 42 - test/good/circular-refs-file-ref.yaml | 13 - test/good/circular-refs.yaml | 144 - test/good/nested-schemas.json | 256 - test/good/zbos_mqtt-all-asyncapi.json | 23150 ---------------- test/json-parse_test.js | 76 - test/mixins/bindings_test.js | 89 - test/mixins/description_test.js | 50 - test/mixins/external-docs_test.js | 54 - test/mixins/specification-extensions_test.js | 143 - test/mixins/tags_test.js | 101 - test/models/asyncapi_test.js | 1096 - test/models/base_test.js | 25 - test/models/channel-parameter_test.js | 31 - test/models/channel_test.js | 137 - test/models/components_test.js | 472 - test/models/contact_test.js | 35 - test/models/correlation-id_test.js | 23 - test/models/external-docs_test.js | 23 - test/models/info_test.js | 63 - test/models/license_test.js | 28 - test/models/message-trait_test.js | 109 - test/models/message-traitable_test.js | 109 - test/models/message_test.js | 164 - test/models/oauth-flow_test.js | 43 - test/models/operation-trait_test.js | 50 - test/models/operation-traitable_test.js | 50 - test/models/operation_test.js | 125 - test/models/schema_test.js | 761 - test/models/security-scheme_test.js | 67 - test/models/server-variable_test.js | 73 - test/models/server_test.js | 78 - test/models/tag_test.js | 25 - test/models/utils_test.js | 52 - test/parseFromUrl_test.js | 76 - test/parse_test.js | 946 - test/refs/refed.yaml | 4 - test/refs/refed2.yaml | 1 - test/sample_browser/asyncapi.yaml | 8 - test/sample_browser/index.html | 27 - test/testsUtils.js | 48 - test/wrong/good-ref-to-broken-file.yaml | 9 - test/wrong/good-refed-file.yml | 2 - test/wrong/inexisting-http-ref.yaml | 9 - test/wrong/inexisting-local-ref.yaml | 9 - test/wrong/inexisting-root-ref.yaml | 9 - .../invalid-asyncapi-messages-example.yml | 24 - ...lid-asyncapi-root-with-duplicate-tags.yaml | 21 - ...lid-asyncapi-with-ref-with-line-break.yaml | 210 - test/wrong/invalid-asyncapi.json | 46 - test/wrong/invalid-asyncapi.yaml | 37 - ...id-message-traits-with-duplicate-tags.yaml | 21 - .../invalid-message-with-duplicate-tags.yaml | 15 - ...-operation-traits-with-duplicate-tags.yaml | 26 - ...invalid-operation-with-duplicate-tags.yaml | 23 - ...eration-with-oneof-and-duplicate-tags.yaml | 37 - .../invalid-payload-asyncapi-format.json | 21 - test/wrong/malformed-asyncapi.yaml | 25 - test/wrong/refed-file-broken-schema.yml | 4 - types.d.ts | 1192 - 686 files changed, 17686 insertions(+), 52290 deletions(-) create mode 100644 browser/index.js create mode 100644 browser/index.js.LICENSE.txt create mode 100644 cjs/constants.d.ts create mode 100644 cjs/constants.js create mode 100644 cjs/custom-operations/anonymous-naming.d.ts create mode 100644 cjs/custom-operations/anonymous-naming.js create mode 100644 cjs/custom-operations/apply-traits.d.ts create mode 100644 cjs/custom-operations/apply-traits.js create mode 100644 cjs/custom-operations/check-circular-refs.d.ts create mode 100644 cjs/custom-operations/check-circular-refs.js create mode 100644 cjs/custom-operations/index.d.ts create mode 100644 cjs/custom-operations/index.js create mode 100644 cjs/custom-operations/parse-schema.d.ts create mode 100644 cjs/custom-operations/parse-schema.js create mode 100644 cjs/document.d.ts create mode 100644 cjs/document.js create mode 100644 cjs/from.d.ts create mode 100644 cjs/from.js create mode 100644 cjs/index.d.ts create mode 100644 cjs/index.js create mode 100644 cjs/iterator.d.ts create mode 100644 cjs/iterator.js create mode 100644 cjs/models/asyncapi.d.ts create mode 100644 cjs/models/asyncapi.js create mode 100644 cjs/models/base.d.ts create mode 100644 cjs/models/base.js create mode 100644 cjs/models/binding.d.ts create mode 100644 cjs/models/binding.js create mode 100644 cjs/models/bindings.d.ts create mode 100644 cjs/models/bindings.js create mode 100644 cjs/models/channel-parameter.d.ts create mode 100644 cjs/models/channel-parameter.js create mode 100644 cjs/models/channel-parameters.d.ts create mode 100644 cjs/models/channel-parameters.js create mode 100644 cjs/models/channel.d.ts create mode 100644 cjs/models/channel.js create mode 100644 cjs/models/channels.d.ts create mode 100644 cjs/models/channels.js create mode 100644 cjs/models/collection.d.ts create mode 100644 cjs/models/collection.js create mode 100644 cjs/models/components.d.ts create mode 100644 cjs/models/components.js create mode 100644 cjs/models/contact.d.ts create mode 100644 cjs/models/contact.js create mode 100644 cjs/models/correlation-id.d.ts create mode 100644 cjs/models/correlation-id.js create mode 100644 cjs/models/correlation-ids.d.ts create mode 100644 cjs/models/correlation-ids.js create mode 100644 cjs/models/extension.d.ts create mode 100644 cjs/models/extension.js create mode 100644 cjs/models/extensions.d.ts create mode 100644 cjs/models/extensions.js create mode 100644 cjs/models/external-docs.d.ts create mode 100644 cjs/models/external-docs.js create mode 100644 cjs/models/index.d.ts create mode 100644 cjs/models/index.js create mode 100644 cjs/models/info.d.ts create mode 100644 cjs/models/info.js create mode 100644 cjs/models/license.d.ts create mode 100644 cjs/models/license.js create mode 100644 cjs/models/message-example.d.ts create mode 100644 cjs/models/message-example.js create mode 100644 cjs/models/message-examples.d.ts create mode 100644 cjs/models/message-examples.js create mode 100644 cjs/models/message-trait.d.ts create mode 100644 cjs/models/message-trait.js create mode 100644 cjs/models/message-traits.d.ts create mode 100644 cjs/models/message-traits.js create mode 100644 cjs/models/message.d.ts create mode 100644 cjs/models/message.js create mode 100644 cjs/models/messages.d.ts create mode 100644 cjs/models/messages.js create mode 100644 cjs/models/mixins.d.ts create mode 100644 cjs/models/mixins.js create mode 100644 cjs/models/oauth-flow.d.ts create mode 100644 cjs/models/oauth-flow.js create mode 100644 cjs/models/oauth-flows.d.ts create mode 100644 cjs/models/oauth-flows.js create mode 100644 cjs/models/operation-trait.d.ts create mode 100644 cjs/models/operation-trait.js create mode 100644 cjs/models/operation-traits.d.ts create mode 100644 cjs/models/operation-traits.js create mode 100644 cjs/models/operation.d.ts create mode 100644 cjs/models/operation.js create mode 100644 cjs/models/operations.d.ts create mode 100644 cjs/models/operations.js create mode 100644 cjs/models/schema.d.ts create mode 100644 cjs/models/schema.js create mode 100644 cjs/models/schemas.d.ts create mode 100644 cjs/models/schemas.js create mode 100644 cjs/models/security-requirement.d.ts create mode 100644 cjs/models/security-requirement.js create mode 100644 cjs/models/security-requirements.d.ts create mode 100644 cjs/models/security-requirements.js create mode 100644 cjs/models/security-scheme.d.ts create mode 100644 cjs/models/security-scheme.js create mode 100644 cjs/models/security-schemes.d.ts create mode 100644 cjs/models/security-schemes.js create mode 100644 cjs/models/server-variable.d.ts create mode 100644 cjs/models/server-variable.js create mode 100644 cjs/models/server-variables.d.ts create mode 100644 cjs/models/server-variables.js create mode 100644 cjs/models/server.d.ts create mode 100644 cjs/models/server.js create mode 100644 cjs/models/servers.d.ts create mode 100644 cjs/models/servers.js create mode 100644 cjs/models/tag.d.ts create mode 100644 cjs/models/tag.js create mode 100644 cjs/models/tags.d.ts create mode 100644 cjs/models/tags.js create mode 100644 cjs/models/utils.d.ts create mode 100644 cjs/models/utils.js create mode 100644 cjs/models/v2/asyncapi.d.ts create mode 100644 cjs/models/v2/asyncapi.js create mode 100644 cjs/models/v2/binding.d.ts create mode 100644 cjs/models/v2/binding.js create mode 100644 cjs/models/v2/bindings.d.ts create mode 100644 cjs/models/v2/bindings.js create mode 100644 cjs/models/v2/channel-parameter.d.ts create mode 100644 cjs/models/v2/channel-parameter.js create mode 100644 cjs/models/v2/channel-parameters.d.ts create mode 100644 cjs/models/v2/channel-parameters.js create mode 100644 cjs/models/v2/channel.d.ts create mode 100644 cjs/models/v2/channel.js create mode 100644 cjs/models/v2/channels.d.ts create mode 100644 cjs/models/v2/channels.js create mode 100644 cjs/models/v2/components.d.ts create mode 100644 cjs/models/v2/components.js create mode 100644 cjs/models/v2/contact.d.ts create mode 100644 cjs/models/v2/contact.js create mode 100644 cjs/models/v2/correlation-id.d.ts create mode 100644 cjs/models/v2/correlation-id.js create mode 100644 cjs/models/v2/correlation-ids.d.ts create mode 100644 cjs/models/v2/correlation-ids.js create mode 100644 cjs/models/v2/extension.d.ts create mode 100644 cjs/models/v2/extension.js create mode 100644 cjs/models/v2/extensions.d.ts create mode 100644 cjs/models/v2/extensions.js create mode 100644 cjs/models/v2/external-docs.d.ts create mode 100644 cjs/models/v2/external-docs.js create mode 100644 cjs/models/v2/index.d.ts create mode 100644 cjs/models/v2/index.js create mode 100644 cjs/models/v2/info.d.ts create mode 100644 cjs/models/v2/info.js create mode 100644 cjs/models/v2/license.d.ts create mode 100644 cjs/models/v2/license.js create mode 100644 cjs/models/v2/message-example.d.ts create mode 100644 cjs/models/v2/message-example.js create mode 100644 cjs/models/v2/message-examples.d.ts create mode 100644 cjs/models/v2/message-examples.js create mode 100644 cjs/models/v2/message-trait.d.ts create mode 100644 cjs/models/v2/message-trait.js create mode 100644 cjs/models/v2/message-traits.d.ts create mode 100644 cjs/models/v2/message-traits.js create mode 100644 cjs/models/v2/message.d.ts create mode 100644 cjs/models/v2/message.js create mode 100644 cjs/models/v2/messages.d.ts create mode 100644 cjs/models/v2/messages.js create mode 100644 cjs/models/v2/mixins.d.ts create mode 100644 cjs/models/v2/mixins.js create mode 100644 cjs/models/v2/oauth-flow.d.ts create mode 100644 cjs/models/v2/oauth-flow.js create mode 100644 cjs/models/v2/oauth-flows.d.ts create mode 100644 cjs/models/v2/oauth-flows.js create mode 100644 cjs/models/v2/operation-trait.d.ts create mode 100644 cjs/models/v2/operation-trait.js create mode 100644 cjs/models/v2/operation-traits.d.ts create mode 100644 cjs/models/v2/operation-traits.js create mode 100644 cjs/models/v2/operation.d.ts create mode 100644 cjs/models/v2/operation.js create mode 100644 cjs/models/v2/operations.d.ts create mode 100644 cjs/models/v2/operations.js create mode 100644 cjs/models/v2/schema.d.ts create mode 100644 cjs/models/v2/schema.js create mode 100644 cjs/models/v2/schemas.d.ts create mode 100644 cjs/models/v2/schemas.js create mode 100644 cjs/models/v2/security-requirement.d.ts create mode 100644 cjs/models/v2/security-requirement.js create mode 100644 cjs/models/v2/security-requirements.d.ts create mode 100644 cjs/models/v2/security-requirements.js create mode 100644 cjs/models/v2/security-scheme.d.ts create mode 100644 cjs/models/v2/security-scheme.js create mode 100644 cjs/models/v2/security-schemes.d.ts create mode 100644 cjs/models/v2/security-schemes.js create mode 100644 cjs/models/v2/server-variable.d.ts create mode 100644 cjs/models/v2/server-variable.js create mode 100644 cjs/models/v2/server-variables.d.ts create mode 100644 cjs/models/v2/server-variables.js create mode 100644 cjs/models/v2/server.d.ts create mode 100644 cjs/models/v2/server.js create mode 100644 cjs/models/v2/servers.d.ts create mode 100644 cjs/models/v2/servers.js create mode 100644 cjs/models/v2/tag.d.ts create mode 100644 cjs/models/v2/tag.js create mode 100644 cjs/models/v2/tags.d.ts create mode 100644 cjs/models/v2/tags.js create mode 100644 cjs/models/v3/asyncapi.d.ts create mode 100644 cjs/models/v3/asyncapi.js create mode 100644 cjs/models/v3/index.d.ts create mode 100644 cjs/models/v3/index.js create mode 100644 cjs/old-api/asyncapi.d.ts create mode 100644 cjs/old-api/asyncapi.js create mode 100644 cjs/old-api/base.d.ts create mode 100644 cjs/old-api/base.js create mode 100644 cjs/old-api/channel-parameter.d.ts create mode 100644 cjs/old-api/channel-parameter.js create mode 100644 cjs/old-api/channel.d.ts create mode 100644 cjs/old-api/channel.js create mode 100644 cjs/old-api/components.d.ts create mode 100644 cjs/old-api/components.js create mode 100644 cjs/old-api/contact.d.ts create mode 100644 cjs/old-api/contact.js create mode 100644 cjs/old-api/converter.d.ts create mode 100644 cjs/old-api/converter.js create mode 100644 cjs/old-api/correlation-id.d.ts create mode 100644 cjs/old-api/correlation-id.js create mode 100644 cjs/old-api/external-docs.d.ts create mode 100644 cjs/old-api/external-docs.js create mode 100644 cjs/old-api/info.d.ts create mode 100644 cjs/old-api/info.js create mode 100644 cjs/old-api/iterator.d.ts create mode 100644 cjs/old-api/iterator.js create mode 100644 cjs/old-api/license.d.ts create mode 100644 cjs/old-api/license.js create mode 100644 cjs/old-api/message-trait.d.ts create mode 100644 cjs/old-api/message-trait.js create mode 100644 cjs/old-api/message.d.ts create mode 100644 cjs/old-api/message.js create mode 100644 cjs/old-api/mixins.d.ts create mode 100644 cjs/old-api/mixins.js create mode 100644 cjs/old-api/oauth-flow.d.ts create mode 100644 cjs/old-api/oauth-flow.js create mode 100644 cjs/old-api/operation-trait.d.ts create mode 100644 cjs/old-api/operation-trait.js create mode 100644 cjs/old-api/operation.d.ts create mode 100644 cjs/old-api/operation.js create mode 100644 cjs/old-api/schema.d.ts create mode 100644 cjs/old-api/schema.js create mode 100644 cjs/old-api/security-requirement.d.ts create mode 100644 cjs/old-api/security-requirement.js create mode 100644 cjs/old-api/security-scheme.d.ts create mode 100644 cjs/old-api/security-scheme.js create mode 100644 cjs/old-api/server-variable.d.ts create mode 100644 cjs/old-api/server-variable.js create mode 100644 cjs/old-api/server.d.ts create mode 100644 cjs/old-api/server.js create mode 100644 cjs/old-api/tag.d.ts create mode 100644 cjs/old-api/tag.js create mode 100644 cjs/parse.d.ts create mode 100644 cjs/parse.js create mode 100644 cjs/parser.d.ts create mode 100644 cjs/parser.js create mode 100644 cjs/resolver.d.ts create mode 100644 cjs/resolver.js create mode 100644 cjs/schema-parser/asyncapi-schema-parser.d.ts create mode 100644 cjs/schema-parser/asyncapi-schema-parser.js create mode 100644 cjs/schema-parser/avro-schema-parser.d.ts create mode 100644 cjs/schema-parser/avro-schema-parser.js create mode 100644 cjs/schema-parser/index.d.ts create mode 100644 cjs/schema-parser/index.js create mode 100644 cjs/schema-parser/openapi-schema-parser.d.ts create mode 100644 cjs/schema-parser/openapi-schema-parser.js create mode 100644 cjs/schema-parser/openapi/schema_v3.d.ts create mode 100644 cjs/schema-parser/openapi/schema_v3.js create mode 100644 cjs/schema-parser/raml-schema-parser.d.ts create mode 100644 cjs/schema-parser/raml-schema-parser.js create mode 100644 cjs/schema-parser/spectral-rule-v2.d.ts create mode 100644 cjs/schema-parser/spectral-rule-v2.js create mode 100644 cjs/spec-types/index.d.ts create mode 100644 cjs/spec-types/index.js create mode 100644 cjs/spec-types/v2.d.ts create mode 100644 cjs/spec-types/v2.js create mode 100644 cjs/spectral.d.ts create mode 100644 cjs/spectral.js create mode 100644 cjs/stringify.d.ts create mode 100644 cjs/stringify.js create mode 100644 cjs/types.d.ts create mode 100644 cjs/types.js create mode 100644 cjs/utils.d.ts create mode 100644 cjs/utils.js create mode 100644 cjs/validate.d.ts create mode 100644 cjs/validate.js delete mode 100644 dist/bundle.js rename docs/{api/v2.md => api.md} (100%) delete mode 100644 docs/api/v1.md create mode 100644 esm/constants.d.ts create mode 100644 esm/constants.js create mode 100644 esm/custom-operations/anonymous-naming.d.ts create mode 100644 esm/custom-operations/anonymous-naming.js create mode 100644 esm/custom-operations/apply-traits.d.ts create mode 100644 esm/custom-operations/apply-traits.js create mode 100644 esm/custom-operations/check-circular-refs.d.ts create mode 100644 esm/custom-operations/check-circular-refs.js create mode 100644 esm/custom-operations/index.d.ts create mode 100644 esm/custom-operations/index.js create mode 100644 esm/custom-operations/parse-schema.d.ts create mode 100644 esm/custom-operations/parse-schema.js create mode 100644 esm/document.d.ts create mode 100644 esm/document.js create mode 100644 esm/from.d.ts create mode 100644 esm/from.js create mode 100644 esm/index.d.ts create mode 100644 esm/index.js create mode 100644 esm/iterator.d.ts create mode 100644 esm/iterator.js create mode 100644 esm/models/asyncapi.d.ts create mode 100644 esm/models/asyncapi.js create mode 100644 esm/models/base.d.ts create mode 100644 esm/models/base.js create mode 100644 esm/models/binding.d.ts create mode 100644 esm/models/binding.js create mode 100644 esm/models/bindings.d.ts create mode 100644 esm/models/bindings.js create mode 100644 esm/models/channel-parameter.d.ts create mode 100644 esm/models/channel-parameter.js create mode 100644 esm/models/channel-parameters.d.ts create mode 100644 esm/models/channel-parameters.js create mode 100644 esm/models/channel.d.ts create mode 100644 esm/models/channel.js create mode 100644 esm/models/channels.d.ts create mode 100644 esm/models/channels.js create mode 100644 esm/models/collection.d.ts create mode 100644 esm/models/collection.js create mode 100644 esm/models/components.d.ts create mode 100644 esm/models/components.js create mode 100644 esm/models/contact.d.ts create mode 100644 esm/models/contact.js create mode 100644 esm/models/correlation-id.d.ts create mode 100644 esm/models/correlation-id.js create mode 100644 esm/models/correlation-ids.d.ts create mode 100644 esm/models/correlation-ids.js create mode 100644 esm/models/extension.d.ts create mode 100644 esm/models/extension.js create mode 100644 esm/models/extensions.d.ts create mode 100644 esm/models/extensions.js create mode 100644 esm/models/external-docs.d.ts create mode 100644 esm/models/external-docs.js create mode 100644 esm/models/index.d.ts create mode 100644 esm/models/index.js create mode 100644 esm/models/info.d.ts create mode 100644 esm/models/info.js create mode 100644 esm/models/license.d.ts create mode 100644 esm/models/license.js create mode 100644 esm/models/message-example.d.ts create mode 100644 esm/models/message-example.js create mode 100644 esm/models/message-examples.d.ts create mode 100644 esm/models/message-examples.js create mode 100644 esm/models/message-trait.d.ts create mode 100644 esm/models/message-trait.js create mode 100644 esm/models/message-traits.d.ts create mode 100644 esm/models/message-traits.js create mode 100644 esm/models/message.d.ts create mode 100644 esm/models/message.js create mode 100644 esm/models/messages.d.ts create mode 100644 esm/models/messages.js create mode 100644 esm/models/mixins.d.ts create mode 100644 esm/models/mixins.js create mode 100644 esm/models/oauth-flow.d.ts create mode 100644 esm/models/oauth-flow.js create mode 100644 esm/models/oauth-flows.d.ts create mode 100644 esm/models/oauth-flows.js create mode 100644 esm/models/operation-trait.d.ts create mode 100644 esm/models/operation-trait.js create mode 100644 esm/models/operation-traits.d.ts create mode 100644 esm/models/operation-traits.js create mode 100644 esm/models/operation.d.ts create mode 100644 esm/models/operation.js create mode 100644 esm/models/operations.d.ts create mode 100644 esm/models/operations.js create mode 100644 esm/models/schema.d.ts create mode 100644 esm/models/schema.js create mode 100644 esm/models/schemas.d.ts create mode 100644 esm/models/schemas.js create mode 100644 esm/models/security-requirement.d.ts create mode 100644 esm/models/security-requirement.js create mode 100644 esm/models/security-requirements.d.ts create mode 100644 esm/models/security-requirements.js create mode 100644 esm/models/security-scheme.d.ts create mode 100644 esm/models/security-scheme.js create mode 100644 esm/models/security-schemes.d.ts create mode 100644 esm/models/security-schemes.js create mode 100644 esm/models/server-variable.d.ts create mode 100644 esm/models/server-variable.js create mode 100644 esm/models/server-variables.d.ts create mode 100644 esm/models/server-variables.js create mode 100644 esm/models/server.d.ts create mode 100644 esm/models/server.js create mode 100644 esm/models/servers.d.ts create mode 100644 esm/models/servers.js create mode 100644 esm/models/tag.d.ts create mode 100644 esm/models/tag.js create mode 100644 esm/models/tags.d.ts create mode 100644 esm/models/tags.js create mode 100644 esm/models/utils.d.ts create mode 100644 esm/models/utils.js create mode 100644 esm/models/v2/asyncapi.d.ts create mode 100644 esm/models/v2/asyncapi.js create mode 100644 esm/models/v2/binding.d.ts create mode 100644 esm/models/v2/binding.js create mode 100644 esm/models/v2/bindings.d.ts create mode 100644 esm/models/v2/bindings.js create mode 100644 esm/models/v2/channel-parameter.d.ts create mode 100644 esm/models/v2/channel-parameter.js create mode 100644 esm/models/v2/channel-parameters.d.ts create mode 100644 esm/models/v2/channel-parameters.js create mode 100644 esm/models/v2/channel.d.ts create mode 100644 esm/models/v2/channel.js create mode 100644 esm/models/v2/channels.d.ts create mode 100644 esm/models/v2/channels.js create mode 100644 esm/models/v2/components.d.ts create mode 100644 esm/models/v2/components.js create mode 100644 esm/models/v2/contact.d.ts create mode 100644 esm/models/v2/contact.js create mode 100644 esm/models/v2/correlation-id.d.ts create mode 100644 esm/models/v2/correlation-id.js create mode 100644 esm/models/v2/correlation-ids.d.ts create mode 100644 esm/models/v2/correlation-ids.js create mode 100644 esm/models/v2/extension.d.ts create mode 100644 esm/models/v2/extension.js create mode 100644 esm/models/v2/extensions.d.ts create mode 100644 esm/models/v2/extensions.js create mode 100644 esm/models/v2/external-docs.d.ts create mode 100644 esm/models/v2/external-docs.js create mode 100644 esm/models/v2/index.d.ts create mode 100644 esm/models/v2/index.js create mode 100644 esm/models/v2/info.d.ts create mode 100644 esm/models/v2/info.js create mode 100644 esm/models/v2/license.d.ts create mode 100644 esm/models/v2/license.js create mode 100644 esm/models/v2/message-example.d.ts create mode 100644 esm/models/v2/message-example.js create mode 100644 esm/models/v2/message-examples.d.ts create mode 100644 esm/models/v2/message-examples.js create mode 100644 esm/models/v2/message-trait.d.ts create mode 100644 esm/models/v2/message-trait.js create mode 100644 esm/models/v2/message-traits.d.ts create mode 100644 esm/models/v2/message-traits.js create mode 100644 esm/models/v2/message.d.ts create mode 100644 esm/models/v2/message.js create mode 100644 esm/models/v2/messages.d.ts create mode 100644 esm/models/v2/messages.js create mode 100644 esm/models/v2/mixins.d.ts create mode 100644 esm/models/v2/mixins.js create mode 100644 esm/models/v2/oauth-flow.d.ts create mode 100644 esm/models/v2/oauth-flow.js create mode 100644 esm/models/v2/oauth-flows.d.ts create mode 100644 esm/models/v2/oauth-flows.js create mode 100644 esm/models/v2/operation-trait.d.ts create mode 100644 esm/models/v2/operation-trait.js create mode 100644 esm/models/v2/operation-traits.d.ts create mode 100644 esm/models/v2/operation-traits.js create mode 100644 esm/models/v2/operation.d.ts create mode 100644 esm/models/v2/operation.js create mode 100644 esm/models/v2/operations.d.ts create mode 100644 esm/models/v2/operations.js create mode 100644 esm/models/v2/schema.d.ts create mode 100644 esm/models/v2/schema.js create mode 100644 esm/models/v2/schemas.d.ts create mode 100644 esm/models/v2/schemas.js create mode 100644 esm/models/v2/security-requirement.d.ts create mode 100644 esm/models/v2/security-requirement.js create mode 100644 esm/models/v2/security-requirements.d.ts create mode 100644 esm/models/v2/security-requirements.js create mode 100644 esm/models/v2/security-scheme.d.ts create mode 100644 esm/models/v2/security-scheme.js create mode 100644 esm/models/v2/security-schemes.d.ts create mode 100644 esm/models/v2/security-schemes.js create mode 100644 esm/models/v2/server-variable.d.ts create mode 100644 esm/models/v2/server-variable.js create mode 100644 esm/models/v2/server-variables.d.ts create mode 100644 esm/models/v2/server-variables.js create mode 100644 esm/models/v2/server.d.ts create mode 100644 esm/models/v2/server.js create mode 100644 esm/models/v2/servers.d.ts create mode 100644 esm/models/v2/servers.js create mode 100644 esm/models/v2/tag.d.ts create mode 100644 esm/models/v2/tag.js create mode 100644 esm/models/v2/tags.d.ts create mode 100644 esm/models/v2/tags.js create mode 100644 esm/models/v3/asyncapi.d.ts create mode 100644 esm/models/v3/asyncapi.js create mode 100644 esm/models/v3/index.d.ts create mode 100644 esm/models/v3/index.js create mode 100644 esm/old-api/asyncapi.d.ts create mode 100644 esm/old-api/asyncapi.js create mode 100644 esm/old-api/base.d.ts create mode 100644 esm/old-api/base.js create mode 100644 esm/old-api/channel-parameter.d.ts create mode 100644 esm/old-api/channel-parameter.js create mode 100644 esm/old-api/channel.d.ts create mode 100644 esm/old-api/channel.js create mode 100644 esm/old-api/components.d.ts create mode 100644 esm/old-api/components.js create mode 100644 esm/old-api/contact.d.ts create mode 100644 esm/old-api/contact.js create mode 100644 esm/old-api/converter.d.ts create mode 100644 esm/old-api/converter.js create mode 100644 esm/old-api/correlation-id.d.ts create mode 100644 esm/old-api/correlation-id.js create mode 100644 esm/old-api/external-docs.d.ts create mode 100644 esm/old-api/external-docs.js create mode 100644 esm/old-api/info.d.ts create mode 100644 esm/old-api/info.js create mode 100644 esm/old-api/iterator.d.ts create mode 100644 esm/old-api/iterator.js create mode 100644 esm/old-api/license.d.ts create mode 100644 esm/old-api/license.js create mode 100644 esm/old-api/message-trait.d.ts create mode 100644 esm/old-api/message-trait.js create mode 100644 esm/old-api/message.d.ts create mode 100644 esm/old-api/message.js create mode 100644 esm/old-api/mixins.d.ts create mode 100644 esm/old-api/mixins.js create mode 100644 esm/old-api/oauth-flow.d.ts create mode 100644 esm/old-api/oauth-flow.js create mode 100644 esm/old-api/operation-trait.d.ts create mode 100644 esm/old-api/operation-trait.js create mode 100644 esm/old-api/operation.d.ts create mode 100644 esm/old-api/operation.js create mode 100644 esm/old-api/schema.d.ts create mode 100644 esm/old-api/schema.js create mode 100644 esm/old-api/security-requirement.d.ts create mode 100644 esm/old-api/security-requirement.js create mode 100644 esm/old-api/security-scheme.d.ts create mode 100644 esm/old-api/security-scheme.js create mode 100644 esm/old-api/server-variable.d.ts create mode 100644 esm/old-api/server-variable.js create mode 100644 esm/old-api/server.d.ts create mode 100644 esm/old-api/server.js create mode 100644 esm/old-api/tag.d.ts create mode 100644 esm/old-api/tag.js create mode 100644 esm/parse.d.ts create mode 100644 esm/parse.js create mode 100644 esm/parser.d.ts create mode 100644 esm/parser.js create mode 100644 esm/resolver.d.ts create mode 100644 esm/resolver.js create mode 100644 esm/schema-parser/asyncapi-schema-parser.d.ts create mode 100644 esm/schema-parser/asyncapi-schema-parser.js create mode 100644 esm/schema-parser/avro-schema-parser.d.ts create mode 100644 esm/schema-parser/avro-schema-parser.js create mode 100644 esm/schema-parser/index.d.ts create mode 100644 esm/schema-parser/index.js create mode 100644 esm/schema-parser/openapi-schema-parser.d.ts create mode 100644 esm/schema-parser/openapi-schema-parser.js create mode 100644 esm/schema-parser/openapi/schema_v3.d.ts create mode 100644 esm/schema-parser/openapi/schema_v3.js create mode 100644 esm/schema-parser/raml-schema-parser.d.ts create mode 100644 esm/schema-parser/raml-schema-parser.js create mode 100644 esm/schema-parser/spectral-rule-v2.d.ts create mode 100644 esm/schema-parser/spectral-rule-v2.js create mode 100644 esm/spec-types/index.d.ts create mode 100644 esm/spec-types/index.js create mode 100644 esm/spec-types/v2.d.ts create mode 100644 esm/spec-types/v2.js create mode 100644 esm/spectral.d.ts create mode 100644 esm/spectral.js create mode 100644 esm/stringify.d.ts create mode 100644 esm/stringify.js create mode 100644 esm/types.d.ts create mode 100644 esm/types.js create mode 100644 esm/utils.d.ts create mode 100644 esm/utils.js create mode 100644 esm/validate.d.ts create mode 100644 esm/validate.js delete mode 100644 lib/anonymousNaming.js delete mode 100644 lib/asyncapiSchemaFormatParser.js delete mode 100644 lib/browser.js delete mode 100644 lib/constants.js delete mode 100644 lib/customValidators.js delete mode 100644 lib/errors/parser-error.js delete mode 100644 lib/index.js delete mode 100644 lib/iterators.js delete mode 100644 lib/json-parse.js delete mode 100644 lib/mixins/bindings.js delete mode 100644 lib/mixins/description.js delete mode 100644 lib/mixins/external-docs.js delete mode 100644 lib/mixins/specification-extensions.js delete mode 100644 lib/mixins/tags.js delete mode 100644 lib/models/asyncapi.js delete mode 100644 lib/models/base.js delete mode 100644 lib/models/channel-parameter.js delete mode 100644 lib/models/channel.js delete mode 100644 lib/models/components.js delete mode 100644 lib/models/contact.js delete mode 100644 lib/models/correlation-id.js delete mode 100644 lib/models/external-docs.js delete mode 100644 lib/models/info.js delete mode 100644 lib/models/license.js delete mode 100644 lib/models/message-trait.js delete mode 100644 lib/models/message-traitable.js delete mode 100644 lib/models/message.js delete mode 100644 lib/models/oauth-flow.js delete mode 100644 lib/models/operation-trait.js delete mode 100644 lib/models/operation-traitable.js delete mode 100644 lib/models/operation.js delete mode 100644 lib/models/publish-operation.js delete mode 100644 lib/models/schema.js delete mode 100644 lib/models/security-scheme.js delete mode 100644 lib/models/server-security-requirement.js delete mode 100644 lib/models/server-variable.js delete mode 100644 lib/models/server.js delete mode 100644 lib/models/subscribe-operation.js delete mode 100644 lib/models/tag.js delete mode 100644 lib/models/utils.js delete mode 100644 lib/parser.js delete mode 100644 lib/utils.js delete mode 100644 scripts/fix-ts-types.js delete mode 100644 test/asyncapiSchemaFormatParser_test.js delete mode 100644 test/browser_test.js delete mode 100644 test/customValidators_test.js delete mode 100644 test/good/asyncapi-complex-schema.yml delete mode 100644 test/good/asyncapi-messages-channels.yml delete mode 100644 test/good/asyncapi-messages-example-headers.yml delete mode 100644 test/good/asyncapi-messages-example-optional.yml delete mode 100644 test/good/asyncapi-messages-example-payload.yml delete mode 100644 test/good/asyncapi-messages-example.yml delete mode 100644 test/good/asyncapi-no-channels.yml delete mode 100644 test/good/asyncapi-no-components.yml delete mode 100644 test/good/asyncapi.json delete mode 100644 test/good/asyncapi.yaml delete mode 100644 test/good/circular-refs-file-ref.yaml delete mode 100644 test/good/circular-refs.yaml delete mode 100644 test/good/nested-schemas.json delete mode 100644 test/good/zbos_mqtt-all-asyncapi.json delete mode 100644 test/json-parse_test.js delete mode 100644 test/mixins/bindings_test.js delete mode 100644 test/mixins/description_test.js delete mode 100644 test/mixins/external-docs_test.js delete mode 100644 test/mixins/specification-extensions_test.js delete mode 100644 test/mixins/tags_test.js delete mode 100644 test/models/asyncapi_test.js delete mode 100644 test/models/base_test.js delete mode 100644 test/models/channel-parameter_test.js delete mode 100644 test/models/channel_test.js delete mode 100644 test/models/components_test.js delete mode 100644 test/models/contact_test.js delete mode 100644 test/models/correlation-id_test.js delete mode 100644 test/models/external-docs_test.js delete mode 100644 test/models/info_test.js delete mode 100644 test/models/license_test.js delete mode 100644 test/models/message-trait_test.js delete mode 100644 test/models/message-traitable_test.js delete mode 100644 test/models/message_test.js delete mode 100644 test/models/oauth-flow_test.js delete mode 100644 test/models/operation-trait_test.js delete mode 100644 test/models/operation-traitable_test.js delete mode 100644 test/models/operation_test.js delete mode 100644 test/models/schema_test.js delete mode 100644 test/models/security-scheme_test.js delete mode 100644 test/models/server-variable_test.js delete mode 100644 test/models/server_test.js delete mode 100644 test/models/tag_test.js delete mode 100644 test/models/utils_test.js delete mode 100644 test/parseFromUrl_test.js delete mode 100644 test/parse_test.js delete mode 100644 test/refs/refed.yaml delete mode 100644 test/refs/refed2.yaml delete mode 100644 test/sample_browser/asyncapi.yaml delete mode 100644 test/sample_browser/index.html delete mode 100644 test/testsUtils.js delete mode 100644 test/wrong/good-ref-to-broken-file.yaml delete mode 100644 test/wrong/good-refed-file.yml delete mode 100644 test/wrong/inexisting-http-ref.yaml delete mode 100644 test/wrong/inexisting-local-ref.yaml delete mode 100644 test/wrong/inexisting-root-ref.yaml delete mode 100644 test/wrong/invalid-asyncapi-messages-example.yml delete mode 100644 test/wrong/invalid-asyncapi-root-with-duplicate-tags.yaml delete mode 100644 test/wrong/invalid-asyncapi-with-ref-with-line-break.yaml delete mode 100644 test/wrong/invalid-asyncapi.json delete mode 100644 test/wrong/invalid-asyncapi.yaml delete mode 100644 test/wrong/invalid-message-traits-with-duplicate-tags.yaml delete mode 100644 test/wrong/invalid-message-with-duplicate-tags.yaml delete mode 100644 test/wrong/invalid-operation-traits-with-duplicate-tags.yaml delete mode 100644 test/wrong/invalid-operation-with-duplicate-tags.yaml delete mode 100644 test/wrong/invalid-operation-with-oneof-and-duplicate-tags.yaml delete mode 100644 test/wrong/invalid-payload-asyncapi-format.json delete mode 100644 test/wrong/malformed-asyncapi.yaml delete mode 100644 test/wrong/refed-file-broken-schema.yml delete mode 100644 types.d.ts diff --git a/.eslintignore b/.eslintignore index 7a9e949a6..b512c09d4 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,7 +1 @@ -node_modules -dist -lib/browser.js -scripts -coverage -.nyc_output -test/sample_browser/ \ No newline at end of file +node_modules \ No newline at end of file diff --git a/.gitignore b/.gitignore index 63830dc42..5aa32a21e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,3 @@ node_modules .vscode -.nyc_output -coverage .DS_Store -test/sample_browser/bundle.js diff --git a/.npmignore b/.npmignore index 7aad10543..5b32d80e3 100644 --- a/.npmignore +++ b/.npmignore @@ -1,11 +1,7 @@ -test/ .DS_Store *.swp .github .all-contributorsrc .editorconfig -coverage -.nyc_output assets/logo.png -scripts vscode \ No newline at end of file diff --git a/README.md b/README.md index 86ce22bd6..63217da54 100644 --- a/README.md +++ b/README.md @@ -32,64 +32,20 @@ Use this package to parse and validate AsyncAPI documents —either YAML or JSON ## Install -``` -npm install @asyncapi/parser -``` -The parser by default supports AsyncAPI Schema Format and JSON Schema Format. For additional formats, you need to install additional plugins. For example: -- Avro schema - ``` - npm install @asyncapi/avro-schema-parser - ``` -- OpenAPI Schema Object - ``` - npm install @asyncapi/openapi-schema-parser - ``` -- RAML data type - ``` - npm install @asyncapi/raml-dt-schema-parser - ``` +TBD ## Examples ### Example passing inline AsyncAPI ```js -const parser = require('@asyncapi/parser'); - -const doc = await parser.parse(` - asyncapi: '2.1.0' - info: - title: Example - version: '0.1.0' - channels: - example-channel: - subscribe: - message: - payload: - type: object - properties: - exampleField: - type: string - exampleNumber: - type: number - exampleDate: - type: string - format: date-time -`); - -console.log(doc.info().title()); -// => Example +// TBD ``` ### Example passing a URL ```js -const parser = require('@asyncapi/parser'); - -const doc = await parser.parseFromUrl('https://my.server.com/example-asyncapi.yaml'); - -console.log(doc.info().title()); -// => Example +// TBD ``` ### Example using Avro schemas @@ -114,7 +70,7 @@ The following table shows a compatibility matrix between this parser, and the [P Parser-JS | Parser-API | Spec 2.x | Spec 3.x ----------|----------------------------------------------------------------------|----------|--------- 1.x | | ✓ | -2.x | [1.x](https://github.com/asyncapi/parser-api/blob/master/docs/v1.md) | | ✓ +2.x | [1.x](https://github.com/asyncapi/parser-api/blob/master/docs/v1.md) | ✓ | ✓ - `✓` Fully supported version. - `-` The AsyncAPI Spec version has features the Parser-JS can't use but the rest are fully supported. @@ -124,34 +80,26 @@ Additionally to all the methods declared in the [Parser-API](https://github.com/ Direct access to the parsed JSON document is always available through the `doc.raw()` method. -See [API documentation](/docs/api/v2.md) for more example and full API reference information. +See [API documentation](/docs/api.md) for more example and full API reference information. ## Using in the browser The package contains a built-in version of the parser, which is created via [`browserify`](https://github.com/browserify/browserify). To use it, you need to import the parser into the HTML file as below: ```html - - - + ``` Or, if you want to use a parser in a JS application of the SPA kind, import the parser as shown below: ```js -import '@asyncapi/parser/dist/bundle'; - -const parser = window['AsyncAPIParser']; -... +// TBD ``` Otherwise, if your application is bundled via bundlers like `webpack`, you can import the parser like a regular package: ```js -import parser from '@asyncapi/parser'; +// TBD ``` ## Custom message parsers @@ -161,99 +109,36 @@ AsyncAPI doesn't enforce one schema format for messages. You can have payload of 1. Create custom parser module that exports two functions: ```js - module.exports = { - /* - * message {Object} is the object containing AsyncAPI Message property - * defaultSchemaFormat {String} information about the default schema format mime type - * schemaFormat {String} information about custom schemaFormat mime type provided in AsyncAPI Document - * fileFormat {String} information if provided AsyncAPI Document was JSON or YAML - * parsedAsyncAPIDocument {Object} Full AsyncAPI Document parsed into Object - * pathToPayload {String} path of the message passed to the parser, relative to the root of AsyncAPI Document - */ - parse: ({ message, defaultSchemaFormat, originalAsyncAPIDocument, schemaFormat, fileFormat, parsedAsyncAPIDocument, pathToPayload }) => { /* custom parsing logic */ }, - getMimeTypes: () => [ - '//mime types that will be used as the `schemaFormat` property of the message to specify its mime type', - 'application/vnd.custom.type;version=1.0.0', - 'application/vnd.custom.type+json;version=1.0.0', - ] - } + // TBD ``` 2. Before parsing an AsyncAPI document with a parser, register the additional custom schema parser: ```js - const myCustomParser = require('mycustomParser'); - - parser.registerSchemaParser(myCustomParser); + // TBD ``` ## Error types -This package throws a bunch of different error types. All errors contain a `type` (prefixed by this repo URL) and a `title` field. The following table describes all the errors and the extra fields they include: - -|Type|Extra Fields|Description| -|---|---|---| -|`null-or-falsey-document`| None | The AsyncAPI document is null or a JS "falsey" value. -|`invalid-document-type`| None | The AsyncAPI document is not a string nor a JS object. -|`invalid-json`| `detail`, `location` | The AsyncAPI document is not valid JSON. -|`invalid-yaml`| `detail`, `location` | The AsyncAPI document is not valid YAML. -|`impossible-to-convert-to-json`|`detail`|Internally, this parser only handles JSON so it tries to immediately convert the YAML to JSON. This error means this process failed. -|`missing-asyncapi-field`|`parsedJSON`|The AsyncAPI document doesn't have the mandatory `asyncapi` field. -|`unsupported-version`|`detail`, `parsedJSON`, `validationErrors`|The version of the `asyncapi` field is not supported. Typically, this means that you're using a version below 2.0.0. -|`dereference-error`|`parsedJSON`, `refs`|This means the parser tried to resolve and dereference $ref's and the process failed. Typically, this means the $ref it's pointing to doesn't exist. -|`unexpected-error`|`parsedJSON`|We have our code covered with try/catch blocks and you should never see this error. If you see it, please open an issue to let us know. -|`validation-errors`|`parsedJSON`, `validationErrors`|The AsyncAPI document contains errors. See `validationErrors` for more information. -|`impossible-to-register-parser`| None | Registration of custom message parser failed. -|`schema-validation-errors`| `parsedJSON`, `validationErrors` | Schema of the payload provided in the AsyncAPI document is not valid with AsyncAPI schema format. -|`fetch-url-error`| None | The URL provided for fetching AsynAPI document is invalid. - -For more information about the `ParserError` class, [check out the documentation](./docs/api/v1.md#new_ParserError_new). +TBD ## Custom extensions -The parser uses custom extensions to define additional information about the spec. Each has a different purpose but all of them are there to make it much easier to work with the AsyncAPI document. These extensions are prefixed with `x-parser-`. The following extensions are used : -- `x-parser-spec-parsed` is used to specify if the AsyncAPI document is already parsed by the parser. Property `x-parser-spec-parsed` is added to the root of the document with the `true` value. -- `x-parser-message-parsed` is used to specify if the message is already parsed by the message parser. Property `x-parser-message-parsed` is added to the root of the document with the `true` value. -- `x-parser-message-name` is used to specify the name of the message if it is not provided. For messages without names, the parser generates anonymous names. Property `x-parser-message-name` is added to a message object with a value that follows this pattern: ``. This value is returned by `message.uid()` when regular `name` property is not present. -- `x-parser-schema-id` is used to specify the ID of the schema if it is not provided. For schemas without IDs, the parser generates anonymous names. Property `x-parser-schema-id` is added to every object of a schema with a value that follows this pattern: ``. This value is returned by `schema.uid()` when regular `$id` property is not present. -- `x-parser-original-traits` is where traits are stored after they are applied on the AsyncAPI document. The reason is because the original `traits` property is removed. -- `x-parser-original-schema-format` holds information about the original schema format of the payload. You can use different schema formats with the AsyncAPI documents and the parser converts them to AsyncAPI schema. This is why different schema format is set, and the original one is preserved in the extension. -- `x-parser-original-payload` holds the original payload of the message. You can use different formats for payloads with the AsyncAPI documents and the parser converts them to. For example, it converts payload described with Avro schema to AsyncAPI schema. The original payload is preserved in the extension. -- [`x-parser-circular`](#circular-references) +TBD > **NOTE**: All extensions added by the parser (including all properties) should be retrieved using special functions. Names of extensions and their location may change, and their eventual changes will not be announced. ## Circular references -Parser dereferences all circular references by default. In addition, to simplify interactions with the parser, the following is added: -- `x-parser-circular` property is added to the root of the AsyncAPI document to indicate that the document contains circular references. Tooling developer that doesn't want to support circular references can use the `hasCircular()` function to check the document and provide a proper message to the user. -- `isCircular()` function is added to the [Schema Model](./lib/models/schema.js) to determine if a given schema is circular with respect to previously occurring schemas in the tree. +TBD ## Stringify -Converting a parsed document to a string may be necessary when saving the parsed document to a database, or similar situations where you need to parse the document just once and then reuse it. - -For that, the Parser supports the ability to stringify a parsed AsyncAPI document through the static `AsyncAPIDocument.stringify(...parsedDoc)` method. This method differs from the native `JSON.stringify(...json)` implementation, in that every reference that occurs (at least twice throughout the document) is converted into a [JSON Pointer](https://datatracker.ietf.org/doc/html/rfc6901) path with a `$ref:` prefix: - -```json -{ - "foo": "$ref:$.some.path.to.the.bar" -} -``` - -To parse a stringified document into an AsyncAPIDocument instance, you must use the static `AsyncAPIDocument.parse(...stringifiedDoc)` method. It isn't compatible with the native `JSON.parse()` method. It replaces the given references pointed by the [JSON Pointer](https://datatracker.ietf.org/doc/html/rfc6901) path, with an `$ref:` prefix to the original objects. - -A few advantages of this solution: -- The string remains as small as possible due to the use of [JSON Pointers](https://datatracker.ietf.org/doc/html/rfc6901). -- All circular references are preserved. +TBD ## Develop -1. Write code and tests. -1. Make sure all tests pass `npm test` -1. Make sure code is well formatted and secure `npm run lint` - -Release regenerates API documentation and browser bundle, so you do not have to regenerate it manually with `npm run docs` and `npm run prepublishOnly`. +TBD ## Contributing diff --git a/browser/index.js b/browser/index.js new file mode 100644 index 000000000..9fca377ae --- /dev/null +++ b/browser/index.js @@ -0,0 +1,8 @@ +/*! For license information please see index.js.LICENSE.txt */ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AsyncAPIParser=t():e.AsyncAPIParser=t()}("undefined"!=typeof self?self:this,(()=>(()=>{var e={1005:(e,t,r)=>{e.exports={"1.0.0":r(6767),"1.1.0":r(8732),"1.2.0":r(5655),"2.0.0-rc1":r(3561),"2.0.0-rc2":r(8319),"2.0.0":r(9284),"2.1.0":r(8369),"2.2.0":r(9320),"2.3.0":r(8722),"2.4.0":r(5771)}},6064:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(7464);t.resolveFile=function(e){return new Promise(((t,r)=>{const i=e.href();n.readFile(i,"utf8",((e,n)=>{e?r(e):t(n)}))}))}},2462:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8605),i=r(3300);class o extends Error{constructor(){super(...arguments),this.name="OpenError"}}t.OpenError=o;class s extends Error{constructor(){super(...arguments),this.name="ReadError"}}function a(e,t={}){return n.__awaiter(this,void 0,void 0,(function*(){const r=e.href(),n=yield i.default(r,t);if(n.ok)return n.text();if(404===n.status)throw new o(`Page not found: ${r}`);throw new s(`${n.status} ${n.statusText}`)}))}t.NetworkError=s,t.resolveHttp=a,t.createResolveHttp=function(e={}){return t=>a(t,e)}},5738:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2462);t.createResolveHttp=n.createResolveHttp,t.resolveHttp=n.resolveHttp,t.NetworkError=n.NetworkError,t.OpenError=n.OpenError;var i=r(6064);t.resolveFile=i.resolveFile},8605:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>o,__asyncDelegator:()=>j,__asyncGenerator:()=>b,__asyncValues:()=>$,__await:()=>v,__awaiter:()=>u,__classPrivateFieldGet:()=>w,__classPrivateFieldSet:()=>S,__createBinding:()=>l,__decorate:()=>a,__exportStar:()=>d,__extends:()=>i,__generator:()=>f,__importDefault:()=>P,__importStar:()=>x,__makeTemplateObject:()=>_,__metadata:()=>p,__param:()=>c,__read:()=>m,__rest:()=>s,__spread:()=>y,__spreadArrays:()=>g,__values:()=>h});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}function c(e,t){return function(r,n){t(r,n,e)}}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function f(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function y(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{(r=i[e](t)).value instanceof v?Promise.resolve(r.value.v).then(c,p):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function c(e){a("next",e)}function p(e){a("throw",e)}function u(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function j(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:v(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function $(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function P(e){return e&&e.__esModule?e:{default:e}}function w(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},9655:(e,t)=>{"use strict";t.C=class{constructor(e={}){this._stats={hits:0,misses:0},this._data={},this._stdTTL=e.stdTTL}get stats(){return this._stats}get(e){const t=this._data[e];if(t&&(!this._stdTTL||(new Date).getTime()-t.ts{"use strict";r.r(t),r.d(t,{BUNDLE_ROOT:()=>J,ERRORS_ROOT:()=>W,KEYS:()=>Pe,bundleTarget:()=>Q,decodePointer:()=>M,decodePointerFragment:()=>X,decycle:()=>Z,encodePointer:()=>ee,encodePointerFragment:()=>R,extractPointerFromRef:()=>te,extractSourceFromRef:()=>L,getFirstPrimitiveProperty:()=>re,getJsonPathForPosition:()=>ne,getLastPathSegment:()=>ie,getLocationForJsonPath:()=>oe,hasRef:()=>I,isLocalRef:()=>T,isPlainObject:()=>S,parseTree:()=>ae,parseWithPointers:()=>se,pathToPointer:()=>D,pointerToPath:()=>q,renameObjectKey:()=>fe,reparentBundleTarget:()=>de,resolveExternalRef:()=>me,resolveExternalRefWithLocation:()=>ye,resolveInlineRef:()=>V,resolveInlineRefWithLocation:()=>H,safeParse:()=>ge,safeStringify:()=>be,startsWith:()=>je,stringify:()=>$e,toPropertyPath:()=>_e,trapAccess:()=>Se,traverse:()=>G,trimStart:()=>Oe});var n,i=r(6486),o=r(5966);function s(e,t){void 0===t&&(t=!1);var r=e.length,n=0,i="",o=0,s=16,u=0,f=0,l=0,d=0,h=0;function m(t,r){for(var i=0,o=0;i=48&&s<=57)o=16*o+s-48;else if(s>=65&&s<=70)o=16*o+s-65+10;else{if(!(s>=97&&s<=102))break;o=16*o+s-97+10}n++,i++}return i=r)return o=r,s=17;var t=e.charCodeAt(n);if(a(t)){do{n++,i+=String.fromCharCode(t),t=e.charCodeAt(n)}while(a(t));return s=15}if(c(t))return n++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(n)&&(n++,i+="\n"),u++,l=n,s=14;switch(t){case 123:return n++,s=1;case 125:return n++,s=2;case 91:return n++,s=3;case 93:return n++,s=4;case 58:return n++,s=6;case 44:return n++,s=5;case 34:return n++,i=function(){for(var t="",i=n;;){if(n>=r){t+=e.substring(i,n),h=2;break}var o=e.charCodeAt(n);if(34===o){t+=e.substring(i,n),n++;break}if(92!==o){if(o>=0&&o<=31){if(c(o)){t+=e.substring(i,n),h=2;break}h=6}n++}else{if(t+=e.substring(i,n),++n>=r){h=2;break}switch(e.charCodeAt(n++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var s=m(4,!0);s>=0?t+=String.fromCharCode(s):h=4;break;default:h=5}i=n}}return t}(),s=10;case 47:var y=n-1;if(47===e.charCodeAt(n+1)){for(n+=2;n=12&&e<=15);return e}:y,getToken:function(){return s},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return n-o},getTokenStartLine:function(){return f},getTokenStartCharacter:function(){return o-d},getTokenError:function(){return h}}}function a(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function c(e){return 10===e||13===e||8232===e||8233===e}function p(e){return e>=48&&e<=57}!function(e){e.DEFAULT={allowTrailingComma:!1}}(n||(n={}));var u=s,f=function e(t,r,n){if(void 0===n&&(n=!1),function(e,t,r){return void 0===r&&(r=!1),t>=e.offset&&t0)for(var n=i.getToken();17!==n;){if(-1!==t.indexOf(n)){b();break}if(-1!==r.indexOf(n))break;n=b()}}function $(e){var t=i.getTokenValue();return e?d(t):p(t),b(),!0}return b(),17===i.getToken()?!!r.allowEmptyContent||(j(4,[],[]),!1):function e(){switch(i.getToken()){case 3:return function(){f(),b();for(var t=!1;4!==i.getToken()&&17!==i.getToken();){if(5===i.getToken()){if(t||j(4,[],[]),h(","),b(),4===i.getToken()&&v)break}else t&&j(6,[],[]);e()||j(4,[],[4,5]),t=!0}return l(),4!==i.getToken()?j(8,[4],[]):b(),!0}();case 1:return function(){c(),b();for(var t=!1;2!==i.getToken()&&17!==i.getToken();){if(5===i.getToken()){if(t||j(4,[],[]),h(","),b(),2===i.getToken()&&v)break}else t&&j(6,[],[]);(10!==i.getToken()?(j(3,[],[2,5]),0):($(!1),6===i.getToken()?(h(":"),b(),e()||j(4,[],[2,5])):j(5,[],[2,5]),1))||j(4,[],[2,5]),t=!0}return u(),2!==i.getToken()?j(7,[2],[]):b(),!0}();case 10:return $(!0);default:return function(){switch(i.getToken()){case 11:var e=0;try{"number"!=typeof(e=JSON.parse(i.getTokenValue()))&&(j(2),e=0)}catch(e){j(2)}d(e);break;case 7:d(null);break;case 8:d(!0);break;case 9:d(!1);break;default:return!1}return b(),!0}()}}()?(17!==i.getToken()&&j(9,[],[]),!0):(j(4,[],[]),!1)};function h(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return""}const m=`__object_order_${Math.floor(Date.now()/36e5)}__`,y=Symbol.for(m),g=(String(y),{defineProperty:(e,t,r)=>(!(t in e)&&y in e?e[y].push(t):"value"in r&&t===y&&-1===r.value.lastIndexOf(y)&&r.value.push(y),Reflect.defineProperty(e,t,r)),deleteProperty(e,t){const r=t in e,n=Reflect.deleteProperty(e,t);if(n&&r&&y in e){const r=e[y].indexOf(t);-1!==r&&e[y].splice(r,1)}return n},ownKeys:e=>y in e?e[y]:Reflect.ownKeys(e),set(e,t,r){const n=t in e,i=Reflect.set(e,t,r);return i&&!n&&y in e&&e[y].push(t),i}});function v(e,t=Reflect.ownKeys(e)){"undefined"!=typeof process&&b(process)&&b(process.env);const r=new Proxy(e,g);return function(e,t){y in e?(e[y].length=0,e[y].push(...t)):Reflect.defineProperty(e,y,{configurable:!0,value:t})}(r,t),r}function b(e){return null!==e&&"object"==typeof e}var j,$,_,x;!function(e){e.Simple="simple",e.Matrix="matrix",e.Label="label",e.Form="form",e.CommaDelimited="commaDelimited",e.SpaceDelimited="spaceDelimited",e.PipeDelimited="pipeDelimited",e.DeepObject="deepObject"}(j||(j={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Information=2]="Information",e[e.Hint=3]="Hint"}($||($={})),function(e){e.Article="article",e.HttpService="http_service",e.HttpServer="http_server",e.HttpOperation="http_operation",e.Model="model",e.Generic="generic",e.Unknown="unknown",e.TableOfContents="table_of_contents",e.SpectralRuleset="spectral_ruleset",e.Styleguide="styleguide",e.Image="image"}(_||(_={})),function(e){e.Json="json",e.Markdown="markdown",e.Yaml="yaml",e.Apng="apng",e.Avif="avif",e.Bmp="bmp",e.Gif="gif",e.Jpeg="jpeg",e.Png="png",e.Svg="svg",e.Webp="webp"}(x||(x={}));var P=r(7668),w=r.n(P);function S(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype||"function"==typeof e.constructor&&Function.toString.call(Object)===Function.toString.call(e.constructor)}function O(e,t,r){if(!S(e)&&!Array.isArray(e)||!(t in e))throw new ReferenceError(`Could not resolve '${r}'`)}function E(e){if("string"!=typeof e.$ref)throw new TypeError("$ref should be a string")}const A=e=>S(e)&&"$ref"in e,I=e=>A(e)&&"string"==typeof e.$ref,T=e=>e.length>0&&("#"===e||/^#\S*$/.test(e)),k=(e,t,r)=>{const n=e.toString();let i="",o=n,s=0,a=o.indexOf(t);for(;a>-1;)i+=n.substring(s,s+a)+r,o=o.substring(a+t.length,o.length),s+=a+t.length,a=o.indexOf(t);return o.length>0&&(i+=n.substring(n.length-o.length,n.length)),i},R=e=>"number"==typeof e?e:k(k(e,"~","~0"),"/","~1"),D=e=>C(e),C=e=>{if(e&&"object"!=typeof e)throw new TypeError("Invalid type: path must be an array of segments.");return 0===e.length?"#":`#/${e.map(R).join("/")}`};function F(e){try{return decodeURIComponent(e)}catch(t){return e}}const N=/%[0-9a-f]+/gi,M=e=>{let t;try{t=decodeURIComponent(e)}catch(r){t=e.replace(N,F)}return k(k(t,"~1","/"),"~0","~")},q=e=>U(e),U=e=>{if("string"!=typeof e)throw new TypeError("Invalid type: JSON Pointers are represented as strings.");if(0===e.length||"#"!==e[0])throw new URIError("Invalid JSON Pointer syntax; URI fragment identifiers must begin with a hash.");if(1===e.length)return[];if("/"!==e[1])throw new URIError("Invalid JSON Pointer syntax.");return(e=>{const t=e.length,r=[];let n=-1;for(;++n{if("string"!=typeof e||0===e.length||T(e))return null;const t=e.indexOf("#");return-1===t?e:e.slice(0,t)};function z(e,t){return S(t)&&S(e)&&("summary"in e||"description"in e)?Object.assign(Object.assign(Object.assign({},t),"description"in e?{description:e.description}:null),"summary"in e?{summary:e.summary}:null):t}function*B(e,t,r){A(e.value)&&(E(e.value),yield[-1,e.value]);for(const[n,i]of t.entries())O(e.value,i,r),e.value=e.value[i],A(e.value)&&(E(e.value),yield[n,e.value])}function V(e,t){return H(e,t).value}function H(e,t){return function e(t,r,n,i){if(null!==L(r))throw new ReferenceError("Cannot resolve external references");const o=q(r);let s=[...o];"#"===r&&A(t)&&(E(t),o.unshift(...q(t.$ref)));const a={value:t};for(const[c,p]of B(a,o,r)){if(n.includes(p))return{source:null,location:null!=i?i:s,value:n[n.length-1]};n.push(p);const r=e(t,p.$ref,n,s);a.value=r.value,(s=r.location).push(...o.slice(c+1))}return{source:null,location:s,value:n.length>0?z(n[n.length-1],a.value):a.value}}(e,t,[])}const K=(e,t,r)=>{const n={value:e,path:r};t.onEnter&&t.onEnter(n);for(const n of Object.keys(e)){const i=e[n];t.onProperty&&t.onProperty({parent:e,parentPath:r,property:n,propertyValue:i}),"object"==typeof i&&null!==i&&K(i,t,r.concat(n))}t.onLeave&&t.onLeave(n)},G=(e,t)=>{"object"==typeof e&&null!==e&&K(e,"function"==typeof t?{onProperty:t}:t,[])},J="#/__bundled__",W="#/__errors__",Q=({document:e,path:t,bundleRoot:r="#/__bundled__",errorsRoot:n="#/__errors__",cloneDocument:o=!0,keyProvider:s},a)=>{if(t===r||t===n)throw new Error("Roots do not make any sense");const c=o?(0,i.cloneDeep)(e):e;return Y(c,q(r),q(n),s)(t,{[t]:!0},a)},Y=(e,t,r,n)=>{const o=new Set,s=(a,c,p,u={},f={},l={})=>{const d=q(a),h=(0,i.get)(e,d);G(p||h,{onEnter:({value:r})=>{if(I(r)&&T(r.$ref)){const p=r.$ref;if(l[p])return;if(p===a&&(u[p]="#"),u[p])return void(r.$ref=u[p]);let d,h,m,y,g;try{let r;d=q(p),n&&(r=n({document:e,path:d})),r||(r=(({document:e,path:t})=>Array.isArray((0,i.get)(e,t.slice(0,-1)))?`${t[t.length-2]}_${t[t.length-1]}`:String(t[t.length-1]))({document:e,path:d})),m=r;let s=1;for(;o.has(m);)if(m=`${r}_${++s}`,s>20)throw new Error(`Keys ${r}_2 through ${r}_20 already taken.`);o.add(m),h=[...t,m],y=D(h)}catch(e){l[p]=e instanceof Error?e.message:String(e)}if(!d||!h||!y)return;if("object"==typeof e&&null!==e&&!(g=(0,i.get)(e,d)))try{g=V(Object(e),p)}catch(e){}void 0!==g&&(u[p]=y,r.$ref=y,(0,i.has)(f,h)||(Array.isArray(g)?(0,i.set)(f,h,new Array(g.length).fill(null)):"object"==typeof g&&(0,i.setWith)(f,h,{},Object),(0,i.set)(f,h,g),c[p]||(c[p]=!0,s(a,c,g,u,f,l),c[p]=!1)))}}});const m=(0,i.get)(f,t);return m&&Object.keys(m).length&&(0,i.set)(h,t,m),(Object.keys(l).length||(0,i.has)(e,r))&&(0,i.set)(h,r,(0,i.has)(e,r)?(0,i.get)(e,r):l),h};return s},X=e=>k(k(e,"~1","/"),"~0","~"),Z=(e,t)=>{const r=new WeakMap;return function e(n,i){let o;if(t&&(n=t(n)),S(n)||Array.isArray(n)){const t=r.get(n);return t?{$ref:t}:(r.set(n,D(i)),Array.isArray(n)?o=n.map(((t,r)=>e(t,[...i,String(r)]))):(o={},Object.keys(n).forEach((t=>{o[t]=e(n[t],[...i,t])}))),r.delete(n),o)}return n}(e,[])},ee=e=>k(k(e,"~","~0"),"//","/~1"),te=e=>{if("string"!=typeof e||0===e.length)return null;const t=e.indexOf("#");return-1===t?null:e.slice(t)},re=e=>{const t=u(e,!0);if(t.scan(),1!==t.getToken())return;if(t.scan(),2===t.getToken())return;if(10!==t.getToken())throw new SyntaxError("Unexpected character");const r=t.getTokenValue();if(t.scan(),6!==t.getToken())throw new SyntaxError("Colon expected");switch(t.scan(),t.getToken()){case 10:return[r,t.getTokenValue()];case 11:return[r,Number(t.getTokenValue())];case 8:return[r,!0];case 9:return[r,!1];case 7:return[r,null];case 16:throw new SyntaxError("Unexpected character");case 17:throw new SyntaxError("Unexpected end of file");default:return}},ne=({lineMap:e,ast:t},r)=>{const n=e[r.line],i=e[r.line+1];if(void 0===n)return;const o=f(t,void 0===i?n+r.character:Math.min(i,n+r.character),!0);if(void 0===o)return;const s=l(o);return 0!==s.length?s:void 0};function ie(e){return X(e.split("/").pop()||"")}const oe=({ast:e},t,r=!1)=>{const n=function(e,t,r){e:for(const n of t){const t=Number.isInteger(Number(n))?Number(n):n;if("string"==typeof t||"number"==typeof t&&"array"!==e.type){if("object"!==e.type||!Array.isArray(e.children))return r?e:void 0;for(const r of e.children)if(Array.isArray(r.children)&&r.children[0].value===String(t)&&2===r.children.length){e=r.children[1];continue e}return r?e:void 0}if("array"!==e.type||t<0||!Array.isArray(e.children)||t>=e.children.length)return r?e:void 0;e=e.children[t]}return e}(e,t,r);if(void 0!==n&&void 0!==n.range)return{range:n.range}},se=(e,t={disallowComments:!0})=>{const r=[],{ast:n,data:i,lineMap:o}=ae(e,r,t);return{data:i,diagnostics:r,ast:n,lineMap:o}};function ae(e,t=[],r){const n=pe(e);let i={type:"array",offset:-1,length:-1,children:[],parent:void 0},o=null,s=[];const a=new WeakMap,c=[];function p(e){"property"===i.type&&(i.length=e-i.offset,i=i.parent)}function u(e,t,r){return{start:{line:e,character:t},end:{line:e,character:t+r}}}function f(e){return i.children.push(e),e}function l(e){Array.isArray(s)?s.push(e):null!==o&&(s[o]=e)}function m(e){l(e),c.push(s),s=e,o=null}function g(){s=c.pop()}d(e,{onObjectBegin:(e,t,n,o)=>{i=f({type:"object",offset:e,length:-1,parent:i,children:[],range:u(n,o,t)}),!1===r.ignoreDuplicateKeys&&a.set(i,[]),m(function(e){return e?v({}):{}}(!0===r.preserveKeyOrder))},onObjectProperty:(e,n,c,p,l)=>{if((i=f({type:"property",offset:n,length:-1,parent:i,children:[]})).children.push({type:"string",value:e,offset:n,length:c,parent:i}),!1===r.ignoreDuplicateKeys){const r=a.get(i.parent);r&&(0!==r.length&&r.includes(e)?t.push({range:u(p,l,c),message:"DuplicateKey",severity:$.Error,path:ue(i),code:20}):r.push(e))}!0===r.preserveKeyOrder&&function(e,t){if(!(t in e))return;const r=e[y],n=r.indexOf(t);-1!==n&&(r.splice(n,1),r.push(t))}(s,e),o=e},onObjectEnd:(e,t,n,o)=>{!1===r.ignoreDuplicateKeys&&a.delete(i),i.length=e+t-i.offset,i.range&&(i.range.end.line=n,i.range.end.character=o+t),i=i.parent,p(e+t),g()},onArrayBegin:(e,t,r,n)=>{i=f({type:"array",offset:e,length:-1,parent:i,children:[],range:u(r,n,t)}),m([])},onArrayEnd:(e,t,r,n)=>{i.length=e+t-i.offset,i.range&&(i.range.end.line=r,i.range.end.character=n+t),i=i.parent,p(e+t),g()},onLiteralValue:(e,t,r,n,o)=>{f({type:ce(e),offset:t,length:r,parent:i,value:e,range:u(n,o,r)}),p(t+r),l(e)},onSeparator:(e,t)=>{"property"===i.type&&(":"===e?i.colonOffset=t:","===e&&p(t))},onError:(e,r,n,i,o)=>{t.push({range:u(i,o,n),message:h(e),severity:$.Error,code:e})}},r);const b=i.children[0];return b&&delete b.parent,{ast:b,data:s[0],lineMap:n}}function ce(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return"null"}}const pe=e=>{const t=[0];let r=0;for(;r{if(!e||!Object.hasOwnProperty.call(e,t)||t===r)return e;const n={};for(const[i,o]of Object.entries(e))i===t?n[r]=o:i in n||(n[i]=o);return n};function le(e){return S(e)||Array.isArray(e)}function de(e,t,r){if(r.length<=1||t.length<=1)throw Error("Source/target path must not be empty and point at root");if(0===t.indexOf(r))throw Error("Target path cannot be contained within source");const n=q(t);let i=e;for(const e of n){if(!le(i))return;i=i[e]}if(!le(i))return;const o=q(r);let s=e;for(const[e,t]of o.entries()){if(!le(s)||t in s)return;const r=e===o.length-1?i:{};s[t]=r,s=r}delete e[n[0]],function e(t,r,n){for(const i of Object.keys(t)){const o=t[i];if("$ref"!==i)le(o)&&e(o,r,n);else{if("string"!=typeof o||!T(o))continue;0===o.indexOf(r)&&(t[i]=o.replace(r,n))}}}(e,t,r)}async function he(e,t,r,n,i){let s=function(e,t){const r=L(t);return null===r?e:(0,o.isAbsolute)(r)?r:(0,o.join)((0,o.dirname)(e),r)}(t,r);const a=te(r)||"#",c=await e[s],p=q(a);let u=[...p];const f={value:c};for(const[r,o]of B(f,p,a)){if(n.includes(o))return{source:t,location:null!=i?i:u,value:n[n.length-1]};n.push(o);const a=await he(e,s,o.$ref,n,u);({source:s,location:u}=a),f.value=a.value,u.push(...p.slice(r+1))}return{source:s,location:u,value:n.length>0?z(n[n.length-1],f.value):f.value}}async function me(e,t,r){return(await ye(e,t,r)).value}function ye(e,t,r){return he(e,t,r,[])}const ge=(e,t)=>{if("string"!=typeof e)return e;try{const r=ve(e);return"string"==typeof r?r:JSON.parse(e,t)}catch(e){return}},ve=e=>{const t=Number(e);return Number.isFinite(t)?String(t)===e?t:e:NaN},be=(e,t,r)=>{if("string"==typeof e)return e;try{return JSON.stringify(e,t,r)}catch(n){return w()(e,t,r)}},je=(e,t)=>{if(e instanceof Array){if(t instanceof Array){if(t.length>e.length)return!1;for(const r in t){if(!t.hasOwnProperty(r))continue;const n=parseInt(e[r]),i=parseInt(t[r]);if(isNaN(n)&&isNaN(i)){if(e[r]!==t[r])return!1}else if(n!==i)return!1}}}else{if("string"!=typeof e)return!1;if("string"==typeof t)return e.startsWith(t)}return!0},$e=(e,t,r)=>{const n=be(e,t,r);if(void 0===n)throw new Error("The value could not be stringified");return n};function _e(e){return e.replace(/^(\/|#\/)/,"").split("/").map(X).map(xe).join(".")}function xe(e){return e.includes(".")?`["${e.replace(/"/g,'\\"')}"]`:e}const Pe=Symbol.for(m),we={ownKeys:e=>Pe in e?e[Pe]:Reflect.ownKeys(e)},Se=e=>new Proxy(e,we);function Oe(e,t){if("string"==typeof e&&"string"==typeof t)return(0,i.trimStart)(e,t);if(!(e&&Array.isArray(e)&&e.length&&t&&Array.isArray(t)&&t.length))return e;let r=0;for(const n in e)if(e.hasOwnProperty(n)){if(e[n]!==t[n])break;r++}return e.slice(r)}},6288:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);class i{constructor(){this._state="deactivated"}get state(){return this._state}activate(){return n.__awaiter(this,void 0,void 0,(function*(){switch(this._state){case"activated":return;case"deactivated":try{return this._state="isActivating",yield this.doActivate(),void(this._state="activated")}catch(e){throw this._state="deactivated",e}default:throw new Error(`Cannot call activate on an Activatable in state '${this._state}'`)}}))}deactivate(){return n.__awaiter(this,void 0,void 0,(function*(){switch(this._state){case"deactivated":return;case"activated":try{return this._state="isDeactivating",yield this.doDeactivate(),void(this._state="deactivated")}catch(e){throw this._state="activated",e}default:throw new Error(`Cannot call deactivate on an Activatable in state '${this._state}'`)}}))}}t.Activatable=i,t.ActivatableCollection=class extends i{constructor(){super(...arguments),this.activatables=[]}doActivate(){return n.__awaiter(this,void 0,void 0,(function*(){const e=[];try{for(const t of this.activatables)yield t.activate(),e.push(t)}catch(t){e.reverse();for(const t of e)try{yield t.deactivate()}catch(e){}throw t}}))}doDeactivate(){return n.__awaiter(this,void 0,void 0,(function*(){for(const e of[...this.activatables].reverse())yield e.deactivate()}))}push(e){this.activatables.push(e)}}},4213:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(655).__exportStar(r(6288),t)},9902:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);t.AsyncDisposableSet=class{constructor(){this.disposables=new Set}get disposed(){return 0===this.disposables.size}dispose(){return n.__awaiter(this,void 0,void 0,(function*(){for(;!this.disposed;)yield Promise.all([...this.disposables].map((e=>e.dispose())))}))}push(e){this.disposables.add(e);const t=e.dispose.bind(e);return e.dispose=()=>n.__awaiter(this,void 0,void 0,(function*(){yield t(),this.disposables.delete(e)})),e}pushAll(e){return e.map((e=>this.push(e)))}}},4889:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncDisposer=class{constructor(e){this.dispose=e}}},1861:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8767);t.DisposableCollection=class{constructor(){this.disposables=[]}get disposed(){return 0===this.disposables.length}dispose(){if(!this.disposed)for(;!this.disposed;)this.disposables.pop().dispose()}push(e){this.disposables.push(e);const t=e.dispose.bind(e),r=n.createDisposable((()=>{const t=this.disposables.indexOf(e);-1!==t&&this.disposables.splice(t,1)}));return e.dispose=()=>{r.dispose(),t()},r}pushAll(e){return e.map((e=>this.push(e)))}}},3994:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DisposableSet=class{constructor(){this.disposables=new Set}get disposed(){return 0===this.disposables.size}dispose(){for(const e of this.disposables)e.dispose()}push(e){this.disposables.add(e);const t=e.dispose.bind(e);return e.dispose=()=>{t(),this.disposables.delete(e)},e}pushAll(e){return e.map((e=>this.push(e)))}}},298:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Disposer=class{constructor(e){this.dispose=e}}},8767:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDisposable=function(e){return{dispose:e}}},1014:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);n.__exportStar(r(4889),t),n.__exportStar(r(9902),t),n.__exportStar(r(298),t),n.__exportStar(r(3994),t),n.__exportStar(r(8767),t),n.__exportStar(r(1861),t)},5e3:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4795),i=r(1014);t.EventEmitter=class{constructor(){this._emitter=new n,this._registeredListeners=new Map}on(e,t){let r=this._registeredListeners.get(e);if(void 0===r)r=new WeakSet,this._registeredListeners.set(e,r);else if(r.has(t))throw new Error(`Double-registered for '${e}' event.`);const n=(...e)=>{try{t(...e)}catch(e){console.error(e)}};return r.add(t),this._emitter.on(String(e),n),i.createDisposable((()=>{var i;null===(i=r)||void 0===i||i.delete(t),this._emitter.off(String(e),n)}))}emit(e,...t){this._emitter.trigger(String(e),t)}get hasListeners(){const e=this._emitter.getListeners(/.*/);for(const t in e){if(!{}.hasOwnProperty.call(e,t))continue;const r=e[t];if(void 0!==r&&r.length>0)return!0}return!1}dispose(){this._registeredListeners.clear(),this._emitter.removeAllListeners()}createEmitGroup(){const e=this,t=[];let r=!1;return{get queueCount(){return t.length},emit(n,...i){r?e.emit(n,...i):t.push([n,i])},flush(){for(const[r,n]of t)try{e.emit(r,...n)}catch(e){}this.reset(),r=!0},reset(){t.length=0,r=!1}}}}},8357:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(655).__exportStar(r(5e3),t)},7747:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);n.__exportStar(r(4213),t),n.__exportStar(r(1014),t),n.__exportStar(r(8357),t)},5966:(e,t,r)=>{"use strict";function n(e){let t="";return e.absolute&&("file"===e.protocol?(e.drive&&(t+=e.drive),t+="/"):(t+=e.protocol+"://",e.origin&&(t+=e.origin+"/"))),""===(t+=e.path.join("/"))&&(t="."),t}function i(e,t,r,n){this.message=e,this.expected=t,this.found=r,this.location=n,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,i)}function o(e){if("string"!=typeof e)throw new Error(`@stoplight/path: Cannot parse ${e} because it is not a string`);return function(e,t){t=void 0!==t?t:{};var r,n,o,s,a={},c={Path:T},p=T,u=S("http://",!0),f=S("https://",!0),l=S("file://",!0),d=S("file:",!0),h=/^[A-Za-z]/,m=O([["A","Z"],["a","z"]],!1,!1),y=S(":",!1),g=S(".",!1),v=S("/",!1),b=S("\\",!1),j=/^[^\/\\]/,$=O(["/","\\"],!0,!1),_=0,x=[{line:1,column:1}],P=0,w=[];if("startRule"in t){if(!(t.startRule in c))throw new Error("Can't start parsing from rule \""+t.startRule+'".');p=c[t.startRule]}function S(e,t){return{type:"literal",text:e,ignoreCase:t}}function O(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function E(t){var r,n=x[t];if(n)return n;for(r=t-1;!x[r];)r--;for(n={line:(n=x[r]).line,column:n.column};rP&&(P=_,w=[]),w.push(e))}function T(){var t;return(t=function(){var e,t,r,n,i;return e=_,(t=k())!==a&&(r=R())!==a&&(n=C())!==a&&(i=F())!==a?(t=function(e,t,r,n){return{protocol:e,origin:t,absolute:!0,...r,...n}}(t,r,n,i),e=t):(_=e,e=a),e===a&&(e=_,(t=k())!==a&&(r=R())!==a&&(n=function(){var e;return(e="")!==a&&(e={drive:null}),e}())!==a?(t=function(e,t,r){return{protocol:e,origin:t,absolute:!0,...r,path:[]}}(t,r,n),e=t):(_=e,e=a)),e}())===a&&(t=function(){var t,r,n,i;return t=_,(r=function(){var t;return"file://"===e.substr(_,7).toLowerCase()?(t=e.substr(_,7),_+=7):(t=a,I(l)),t===a&&("file:"===e.substr(_,5).toLowerCase()?(t=e.substr(_,5),_+=5):(t=a,I(d))),t!==a&&(t="file"),t}())!==a&&(n=D())!==a&&(i=F())!==a?(r=function(e,t,r){return{protocol:e,origin:null,absolute:!0,...t,...r}}(r,n,i),t=r):(_=t,t=a),t}())===a&&(t=function(){var e,t,r;return e=_,(t=D())!==a&&(r=F())!==a?(t=function(e,t){return{protocol:"file",origin:null,absolute:!0,...e,...t}}(t,r),e=t):(_=e,e=a),e}())===a&&(t=function(){var t,r,n;return t=_,(r=function(){var t;return(t=function(){var t,r,n;return t=_,46===e.charCodeAt(_)?(r=".",_++):(r=a,I(g)),r!==a&&(n=M())!==a?t=r=[r,n]:(_=t,t=a),t}())===a&&(t=""),t}())!==a&&(n=F())!==a?(r=function(e){return{protocol:null,origin:null,absolute:!1,drive:null,...e}}(n),t=r):(_=t,t=a),t}()),t}function k(){var t,r;return"http://"===e.substr(_,7).toLowerCase()?(r=e.substr(_,7),_+=7):(r=a,I(u)),r!==a&&(r="http"),(t=r)===a&&(t=function(){var t;return"https://"===e.substr(_,8).toLowerCase()?(t=e.substr(_,8),_+=8):(t=a,I(f)),t!==a&&(t="https"),t}()),t}function R(){var t,r,n;if(t=_,r=[],(n=q())!==a)for(;n!==a;)r.push(n),n=q();else r=a;return(t=r!==a?e.substring(t,_):r)===a&&(t=_,(r="")!==a&&(r=null),t=r),t}function D(){var t;return(t=function(){var t,r,n,i;return t=_,(r=M())===a&&(r=null),r!==a?(h.test(e.charAt(_))?(n=e.charAt(_),_++):(n=a,I(m)),n!==a?(58===e.charCodeAt(_)?(i=":",_++):(i=a,I(y)),i!==a&&M()!==a?(r=function(e){return{drive:e.toLowerCase()+":"}}(n),t=r):(_=t,t=a)):(_=t,t=a)):(_=t,t=a),t}())===a&&(t=C()),t}function C(){var e;return(e=M())!==a&&(e={drive:null}),e}function F(){var e;return(e=function e(){var t,r,n;return t=_,(r=N())!==a&&M()!==a&&(n=e())!==a?(r=function(e,t){return[e,...t]}(r,n),t=r):(_=t,t=a),t===a&&(t=_,(r=N())!==a&&(r=function(e){return[e]}(r)),t=r),t}())!==a&&(e=function(e){return{path:e}}(e)),e}function N(){var t,r,n;if(t=_,r=[],(n=q())!==a)for(;n!==a;)r.push(n),n=q();else r=a;return(t=r!==a?e.substring(t,_):r)===a&&(t=""),t}function M(){var t;return 47===e.charCodeAt(_)?(t="/",_++):(t=a,I(v)),t===a&&(92===e.charCodeAt(_)?(t="\\",_++):(t=a,I(b))),t}function q(){var t;return j.test(e.charAt(_))?(t=e.charAt(_),_++):(t=a,I($)),t}if((r=p())!==a&&_===e.length)return r;throw r!==a&&_""!==e&&"."!==e));const r=[];for(const n of t)".."===n&&r.length&&".."!==r[r.length-1]?r.pop():".."===n&&e.absolute||r.push(n);return e.path=r,e}function c(e){let t=e.lastIndexOf(".");".."===e&&(t=-1),"."===e&&(t=-1);let r=e,n="";return t>0&&(r=e.slice(0,t),n=e.slice(t)),{name:r,ext:n}}r.r(t),r.d(t,{basename:()=>p,deserializeSrn:()=>j,dirname:()=>u,extname:()=>f,format:()=>n,isAbsolute:()=>l,isURL:()=>d,join:()=>h,normalize:()=>s,parse:()=>o,relative:()=>m,resolve:()=>y,sep:()=>g,serializeSrn:()=>$,startsWithWindowsDrive:()=>v,stripRoot:()=>b,toFSPath:()=>s}),function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(i,Error),i.buildMessage=function(e,t){var r={literal:function(e){return'"'+i(e.text)+'"'},class:function(e){var t,r="";for(t=0;t0){for(t=1,n=1;t{const r=a(o(e)).path.pop();if(!r)return"";const{name:n,ext:i}=c(r);return!0===t||t===i?n:`${n}${i}`},u=e=>{const t=a(o(e));return t.path.pop(),n(a(t))},f=e=>{const t=a(o(e)).path.pop();if(!t)return"";const{ext:r}=c(t);return r};function l(e){return o(e).absolute}function d(e){const t=o(e);return"http"===t.protocol||"https"===t.protocol}const h=(...e)=>{if(0===e.length)return".";const t=e.map(o),r=Object.assign({},t[0]);for(let n=1;nnull!==o(e).drive,b=e=>o(e).path.filter(Boolean).join("/");function j(e){const[t,r,n,...i]=e.split("/"),o=i.length?`/${i.join("/")}`:void 0;let s,a;return o&&(s=i.find((e=>e.includes("."))))&&(a=c(s).ext),{shortcode:t,orgSlug:r,projectSlug:n,uri:o,file:s,ext:a}}function $({shortcode:e,orgSlug:t,projectSlug:r,uri:n=""}){return[e,t,r,n.replace(/^\//,"")].filter(Boolean).join("/")}},9049:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1581),i=r(3487),o=r(7023),s=r(4815),a=r(4181),c=r(2141),p="errorMessage",u=new n.Name("emUsed"),f={required:"missingProperty",dependencies:"property",dependentRequired:"property"},l=/\$\{[^}]+\}/,d=/\$\{([^}]+)\}/g,h=/^""\s*\+\s*|\s*\+\s*""$/g;const m=(e,t={})=>{if(!e.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(e.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return e.addKeyword(function(e){return{keyword:p,schemaType:["string","object"],post:!0,code(t){const{gen:r,data:m,schema:y,schemaValue:g,it:v}=t;if(!1===v.createErrors)return;const b=y,j=i.strConcat(c.default.instancePath,v.errorPath);function $(e,t){return i.and(n._`${e}.keyword !== ${p}`,n._`!${e}.${u}`,n._`${e}.instancePath === ${j}`,n._`${e}.keyword in ${t}`,n._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,n._`/^\\/[^\\/]*$/.test(${e}.schemaPath.slice(${v.errSchemaPath.length}))`)}function _(e,t){const n=[];for(const r in e){const e=t[r];l.test(e)&&n.push([r,P(e)])}return r.object(...n)}function x(e){return l.test(e)?new o._Code(o.safeStringify(e).replace(d,((e,t)=>`" + JSON.stringify(${s.getData(t,v)}) + "`)).replace(h,"")):n.stringify(e)}function P(e){return n._`function(){return ${x(e)}}`}r.if(n._`${c.default.errors} > 0`,(()=>{if("object"==typeof b){const[o,s]=function(e){let t,r;for(const n in e){if("properties"===n||"items"===n)continue;const i=e[n];if("object"==typeof i){t||(t={});const e=t[n]={};for(const t in i)e[t]=[]}else r||(r={}),r[n]=[]}return[t,r]}(b);s&&function(i){const o=r.const("emErrors",n.stringify(i)),s=r.const("templates",_(i,y));r.forOf("err",c.default.vErrors,(e=>r.if($(e,o),(()=>r.code(n._`${o}[${e}.keyword].push(${e})`).assign(n._`${e}.${u}`,!0)))));const{singleError:p}=e;if(p){const e=r.let("message",n._`""`),i=r.let("paramsErrors",n._`[]`);f((t=>{r.if(e,(()=>r.code(n._`${e} += ${"string"==typeof p?p:";"}`))),r.code(n._`${e} += ${l(t)}`),r.assign(i,n._`${i}.concat(${o}[${t}])`)})),a.reportError(t,{message:e,params:n._`{errors: ${i}}`})}else f((e=>a.reportError(t,{message:l(e),params:n._`{errors: ${o}[${e}]}`})));function f(e){r.forIn("key",o,(t=>r.if(n._`${o}[${t}].length`,(()=>e(t)))))}function l(e){return n._`${e} in ${s} ? ${s}[${e}]() : ${g}[${e}]`}}(s),o&&function(e){const i=r.const("emErrors",n.stringify(e)),o=[];for(const t in e)o.push([t,_(e[t],y[t])]);const s=r.const("templates",r.object(...o)),p=r.scopeValue("obj",{ref:f,code:n.stringify(f)}),l=r.let("emPropParams"),d=r.let("emParamsErrors");r.forOf("err",c.default.vErrors,(e=>r.if($(e,i),(()=>{r.assign(l,n._`${p}[${e}.keyword]`),r.assign(d,n._`${i}[${e}.keyword][${e}.params[${l}]]`),r.if(d,(()=>r.code(n._`${d}.push(${e})`).assign(n._`${e}.${u}`,!0)))})))),r.forIn("key",i,(e=>r.forIn("keyProp",n._`${i}[${e}]`,(o=>{r.assign(d,n._`${i}[${e}][${o}]`),r.if(n._`${d}.length`,(()=>{const i=r.const("tmpl",n._`${s}[${e}] && ${s}[${e}][${o}]`);a.reportError(t,{message:n._`${i} ? ${i}() : ${g}[${e}][${o}]`,params:n._`{errors: ${d}}`})}))}))))}(o),function(e){const{props:o,items:s}=e;if(!o&&!s)return;const f=n._`typeof ${m} == "object"`,l=n._`Array.isArray(${m})`,d=r.let("emErrors");let h,v;const b=r.let("templates");function $(e,t){r.assign(d,n.stringify(e)),r.assign(b,_(e,t))}o&&s?(h=r.let("emChildKwd"),r.if(f),r.if(l,(()=>{$(s,y.items),r.assign(h,n.str`items`)}),(()=>{$(o,y.properties),r.assign(h,n.str`properties`)})),v=n._`[${h}]`):s?(r.if(l),$(s,y.items),v=n._`.items`):o&&(r.if(i.and(f,i.not(l))),$(o,y.properties),v=n._`.properties`),r.forOf("err",c.default.vErrors,(e=>function(e,t,o){r.if(i.and(n._`${e}.keyword !== ${p}`,n._`!${e}.${u}`,n._`${e}.instancePath.indexOf(${j}) === 0`),(()=>{const i=r.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:n._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),s=r.const("emMatches",n._`${i}.exec(${e}.instancePath.slice(${j}.length))`),a=r.const("emChild",n._`${s} && ${s}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);r.if(n._`${a} !== undefined && ${a} in ${t}`,(()=>o(a)))}))}(e,d,(t=>r.code(n._`${d}[${t}].push(${e})`).assign(n._`${e}.${u}`,!0))))),r.forIn("key",d,(e=>r.if(n._`${d}[${e}].length`,(()=>{a.reportError(t,{message:n._`${e} in ${b} ? ${b}[${e}]() : ${g}${v}[${e}]`,params:n._`{errors: ${d}[${e}]}`}),r.assign(n._`${c.default.vErrors}[${c.default.errors}-1].instancePath`,n._`${j} + "/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})))),r.endIf()}(function({properties:e,items:t}){const r={};if(e){r.props={};for(const t in e)r.props[t]=[]}if(t){r.items={};for(let e=0;er.if(function(e){return i.and(n._`${e}.keyword !== ${p}`,n._`!${e}.${u}`,i.or(n._`${e}.instancePath === ${j}`,i.and(n._`${e}.instancePath.indexOf(${j}) === 0`,n._`${e}.instancePath[${j}.length] === "/"`)),n._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,n._`${e}.schemaPath[${v.errSchemaPath}.length] === "/"`)}(e),(()=>r.code(n._`${o}.push(${e})`).assign(n._`${e}.${u}`,!0))))),r.if(n._`${o}.length`,(()=>a.reportError(t,{message:x(e),params:n._`{errors: ${o}}`})))}(o),e.keepErrors||function(){const e=r.const("emErrs",n._`[]`);r.forOf("err",c.default.vErrors,(t=>r.if(n._`!${t}.${u}`,(()=>r.code(n._`${e}.push(${t})`))))),r.assign(c.default.vErrors,e).assign(c.default.errors,n._`${e}.length`)}()}))},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}(t))};t.default=m,e.exports=m,e.exports.default=m},9848:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aas2_4=t.aas2_3=t.aas2_2=t.aas2_1=t.aas2_0=t.asyncapi2=t.asyncApi2=t.aas2=void 0;const n=r(7953),i=/^2\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$/,o=/^2\.0(?:\.[0-9]*)?$/,s=/^2\.1(?:\.[0-9]*)?$/,a=/^2\.2(?:\.[0-9]*)?$/,c=/^2\.3(?:\.[0-9]*)?$/,p=/^2\.4(?:\.[0-9]*)?$/,u=e=>(0,n.isPlainObject)(e)&&"asyncapi"in e&&i.test(String(e.asyncapi));t.aas2=u,t.aas2.displayName="AsyncAPI 2.x",t.asyncApi2=t.aas2,t.asyncapi2=t.aas2,t.aas2_0=e=>u(e)&&o.test(String(e.asyncapi)),t.aas2_0.displayName="AsyncAPI 2.0.x",t.aas2_1=e=>u(e)&&s.test(String(e.asyncapi)),t.aas2_1.displayName="AsyncAPI 2.1.x",t.aas2_2=e=>u(e)&&a.test(String(e.asyncapi)),t.aas2_2.displayName="AsyncAPI 2.2.x",t.aas2_3=e=>u(e)&&c.test(String(e.asyncapi)),t.aas2_3.displayName="AsyncAPI 2.3.x",t.aas2_4=e=>u(e)&&p.test(String(e.asyncapi)),t.aas2_4.displayName="AsyncAPI 2.4.x"},683:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);(0,n.__exportStar)(r(6967),t),(0,n.__exportStar)(r(9848),t),(0,n.__exportStar)(r(1400),t)},1400:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectDialect=t.extractDraftVersion=t.jsonSchemaDraft2020_12=t.jsonSchemaDraft2019_09=t.jsonSchemaDraft7=t.jsonSchemaDraft6=t.jsonSchemaDraft4=t.jsonSchemaLoose=t.jsonSchema=void 0;const n=r(7953),i=["array","boolean","integer","null","number","object","string"],o=["allOf","oneOf","anyOf","not","if"],s=/^https?:\/\/json-schema.org\/(?:draft-0([467])|draft\/(20(?:19-09|20-12)))\/(?:hyper-)?schema#?$/,a=e=>function(e){return(0,n.isPlainObject)(e)&&"$schema"in e&&"string"==typeof e.$schema}(e)&&e.$schema.includes("//json-schema.org/");function c(e,t){const r=t=>a(t)&&p(t.$schema)===e;return r.displayName=t,r}function p(e){var t;const r=s.exec(e);return null!==r?`draft${null!==(t=r[1])&&void 0!==t?t:r[2]}`:null}t.jsonSchema=a,t.jsonSchema.displayName="JSON Schema",t.jsonSchemaLoose=e=>(0,n.isPlainObject)(e)&&(a(e)||(e=>"type"in e&&("string"==typeof e.type?i.includes(e.type):Array.isArray(e.type)&&e.type.every((e=>i.includes(e)))))(e)||(e=>o.some((t=>t in e&&"object"==typeof e[t]&&null!==e[t])))(e)),t.jsonSchemaLoose.displayName="JSON Schema (loose)",t.jsonSchemaDraft4=c("draft4","JSON Schema Draft 4"),t.jsonSchemaDraft6=c("draft6","JSON Schema Draft 6"),t.jsonSchemaDraft7=c("draft7","JSON Schema Draft 7"),t.jsonSchemaDraft2019_09=c("draft2019-09","JSON Schema Draft 2019-09"),t.jsonSchemaDraft2020_12=c("draft2020-12","JSON Schema Draft 2020-12"),t.extractDraftVersion=p,t.detectDialect=function(e){return a(e)?p(e.$schema):null}},6967:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oas3_1=t.oas3_0=t.oas3=t.oas2=void 0;const n=r(7953);t.oas2=e=>(0,n.isPlainObject)(e)&&"swagger"in e&&2===parseInt(String(e.swagger)),t.oas2.displayName="OpenAPI 2.0 (Swagger)";const i=e=>(0,n.isPlainObject)(e)&&"openapi"in e&&3===Number.parseInt(String(e.openapi));t.oas3=i,t.oas3.displayName="OpenAPI 3.x",t.oas3_0=e=>i(e)&&/^3\.0(?:\.[0-9]*)?$/.test(String(e.openapi)),t.oas3_0.displayName="OpenAPI 3.0.x",t.oas3_1=e=>i(e)&&/^3\.1(?:\.[0-9]*)?$/.test(String(e.openapi)),t.oas3_1.displayName="OpenAPI 3.1.x"},5787:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6486),i=r(309),o=r(1403),s=r(8208),a=(e,t)=>"number"!=typeof e&&!Number.isNaN(Number(e))||"number"!=typeof t&&Number.isNaN(Number(t))?"string"!=typeof e||"string"!=typeof t?0:e.localeCompare(t):Math.min(1,Math.max(-1,Number(e)-Number(t)));function c(e){return"string"==typeof e||"number"==typeof e}t.default=(0,i.createRulesetFunction)({input:{type:["object","array"]},options:s.optionSchemas.alphabetical},(function(e,t,{path:r,documentInventory:i}){var s,p;let u;if(u=Array.isArray(e)?e:Object.keys(null!==(p=null===(s=i.findAssociatedItemForPath(r,!0))||void 0===s?void 0:s.document.trapAccess(e))&&void 0!==p?p:e),u.length<2)return;const f=null==t?void 0:t.keyedBy;if(void 0!==f){const e=[];for(const t of u){if(!(0,n.isObject)(t))return[{message:'#{{print("property")}}must be an object'}];e.push(t[f])}u=e}if(!u.every(c))return[{message:'#{{print("property")}}must be one of the allowed types: number, string'}];const l=((e,t)=>{for(let r=0;r=1)return[r,r+1];return null})(u,a);return null!=l?[{...void 0===f?{path:[...r,Array.isArray(e)?l[0]:u[l[0]]]}:null,message:void 0!==f?"properties must follow the alphabetical order":`${(0,o.printValue)(u[l[0]])} must be placed after ${(0,o.printValue)(u[l[1]])}`}]:void 0}))},4202:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CasingType=void 0;const n=r(6486),i=r(309),o=r(8208),s=r(2599);Object.defineProperty(t,"CasingType",{enumerable:!0,get:function(){return s.CasingType}});const a={[s.CasingType.flat]:"[a-z][a-z{__DIGITS__}]*",[s.CasingType.camel]:"[a-z][a-z{__DIGITS__}]*(?:[A-Z{__DIGITS__}](?:[a-z{__DIGITS__}]+|$))*",[s.CasingType.pascal]:"[A-Z][a-z{__DIGITS__}]*(?:[A-Z{__DIGITS__}](?:[a-z{__DIGITS__}]+|$))*",[s.CasingType.kebab]:"[a-z][a-z{__DIGITS__}]*(?:-[a-z{__DIGITS__}]+)*",[s.CasingType.cobol]:"[A-Z][A-Z{__DIGITS__}]*(?:-[A-Z{__DIGITS__}]+)*",[s.CasingType.snake]:"[a-z][a-z{__DIGITS__}]*(?:_[a-z{__DIGITS__}]+)*",[s.CasingType.macro]:"[A-Z][A-Z{__DIGITS__}]*(?:_[A-Z{__DIGITS__}]+)*"};t.default=(0,i.createRulesetFunction)({input:{type:"string",minLength:1},options:o.optionSchemas.casing},(function(e,t){if(1!==e.length||void 0===t.separator||!0!==t.separator.allowLeading||e!==t.separator.char)return c(a[t.type],t).test(e)?void 0:[{message:`must be ${t.type} case`}]}));const c=(e,t)=>{const r=!0!==t.disallowDigits,i=e.replace(/\{__DIGITS__\}/g,r?"0-9":"");if(void 0===t.separator)return new RegExp(`^${i}$`);const o=`[${(0,n.escapeRegExp)(t.separator.char)}]`,s=!0===t.separator.allowLeading?`${o}?`:"";return new RegExp(`^${s}${i}(?:${o}${i})*$`)}},9550:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(8208);t.default=(0,n.createRulesetFunction)({input:null,options:i.optionSchemas.defined},(function(e){if(void 0===e)return[{message:'#{{print("property")}}must be defined'}]}))},551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(1403),o=r(8208);t.default=(0,n.createRulesetFunction)({input:{type:["string","number","null","boolean"]},options:o.optionSchemas.enumeration},(function(e,{values:t}){if(!t.includes(e))return[{message:`#{{print("value")}} must be equal to one of the allowed values: ${t.map(i.printValue).join(", ")}`}]}))},7546:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(8208);t.default=(0,n.createRulesetFunction)({input:null,options:i.optionSchemas.falsy},(function(e){if(e)return[{message:'#{{print("property")}}must be falsy'}]}))},4133:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xor=t.unreferencedReusableObject=t.undefined=t.truthy=t.schema=t.pattern=t.length=t.falsy=t.enumeration=t.defined=t.casing=t.alphabetical=void 0;const n=r(655),i=(0,n.__importDefault)(r(5787));Object.defineProperty(t,"alphabetical",{enumerable:!0,get:function(){return i.default}});const o=(0,n.__importDefault)(r(4202));Object.defineProperty(t,"casing",{enumerable:!0,get:function(){return o.default}});const s=(0,n.__importDefault)(r(9550));Object.defineProperty(t,"defined",{enumerable:!0,get:function(){return s.default}});const a=(0,n.__importDefault)(r(551));Object.defineProperty(t,"enumeration",{enumerable:!0,get:function(){return a.default}});const c=(0,n.__importDefault)(r(7546));Object.defineProperty(t,"falsy",{enumerable:!0,get:function(){return c.default}});const p=(0,n.__importDefault)(r(5285));Object.defineProperty(t,"length",{enumerable:!0,get:function(){return p.default}});const u=(0,n.__importDefault)(r(3609));Object.defineProperty(t,"pattern",{enumerable:!0,get:function(){return u.default}});const f=(0,n.__importDefault)(r(7952));Object.defineProperty(t,"schema",{enumerable:!0,get:function(){return f.default}});const l=(0,n.__importDefault)(r(9719));Object.defineProperty(t,"truthy",{enumerable:!0,get:function(){return l.default}});const d=(0,n.__importDefault)(r(9298));Object.defineProperty(t,"undefined",{enumerable:!0,get:function(){return d.default}});const h=(0,n.__importDefault)(r(3789));Object.defineProperty(t,"unreferencedReusableObject",{enumerable:!0,get:function(){return h.default}});const m=(0,n.__importDefault)(r(7217));Object.defineProperty(t,"xor",{enumerable:!0,get:function(){return m.default}})},5285:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(1403),o=r(7953),s=r(8208);t.default=(0,n.createRulesetFunction)({input:{type:["array","object","string","number"]},options:s.optionSchemas.length},(function(e,t){let r,n;return r=(0,o.isPlainObject)(e)?Object.keys(e).length:Array.isArray(e)?e.length:"number"==typeof e?e:e.length,"min"in t&&rt.max&&(null!=n?n:n=[]).push({message:`#{{print("property")}}must be shorter than ${(0,i.printValue)(t.max)}`}),n}))},8208:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optionSchemas=void 0;const n=r(2599);t.optionSchemas={alphabetical:{type:["object","null"],properties:{keyedBy:{type:"string",description:"The key to sort an object by."}},additionalProperties:!1,errorMessage:{type:'"alphabetical" function has invalid options specified. Example valid options: null (no options), { "keyedBy": "my-key" }'}},casing:{required:["type"],type:"object",properties:{type:{type:"string",enum:Object.values(n.CasingType),errorMessage:`"casing" function and its "type" option accept the following values: ${Object.values(n.CasingType).join(", ")}`,description:"The casing type to match against."},disallowDigits:{type:"boolean",default:!1,description:"If not true, digits are allowed."},separator:{type:"object",required:["char"],additionalProperties:!1,properties:{char:{type:"string",maxLength:1,errorMessage:'"casing" function and its "separator.char" option accepts only char, i.e. "I" or "/"',description:"The additional char to separate groups of words."},allowLeading:{type:"boolean",description:"Can the group separator char be used at the first char?"}}}},additionalProperties:!1,errorMessage:{type:'"casing" function has invalid options specified. Example valid options: { "type": "camel" }, { "type": "pascal", "disallowDigits": true }'}},defined:null,enumeration:{type:"object",additionalProperties:!1,properties:{values:{type:"array",items:{type:["string","number","null","boolean"]},errorMessage:'"enumeration" and its "values" option support only arrays of primitive values, i.e. ["Berlin", "London", "Paris"]',description:"An array of possible values."}},required:["values"],errorMessage:{type:'"enumeration" function has invalid options specified. Example valid options: { "values": ["Berlin", "London", "Paris"] }, { "values": [2, 3, 5, 8, 13, 21] }'}},falsy:null,length:{type:"object",properties:{min:{type:"number",description:"The minimum length to match."},max:{type:"number",description:"The maximum length to match."}},minProperties:1,additionalProperties:!1,errorMessage:{type:'"length" function has invalid options specified. Example valid options: { "min": 2 }, { "max": 5 }, { "min": 0, "max": 10 }'}},pattern:{type:"object",additionalProperties:!1,properties:{match:{anyOf:[{type:"string"},{type:"object",properties:{exec:{},test:{},flags:{type:"string"}},required:["test","flags"],"x-internal":!0}],errorMessage:'"pattern" function and its "match" option must be string or RegExp instance',description:"If provided, value must match this regex."},notMatch:{anyOf:[{type:"string"},{type:"object",properties:{exec:{},test:{},flags:{type:"string"}},required:["test","flags"],"x-internal":!0}],errorMessage:'"pattern" function and its "notMatch" option must be string or RegExp instance',description:"If provided, value must _not_ match this regex."}},minProperties:1,errorMessage:{type:'"pattern" function has invalid options specified. Example valid options: { "match": "^Stoplight" }, { "notMatch": "Swagger" }, { "match": "Stoplight", "notMatch": "Swagger" }',minProperties:'"pattern" function has invalid options specified. Example valid options: { "match": "^Stoplight" }, { "notMatch": "Swagger" }, { "match": "Stoplight", "notMatch": "Swagger" }'}},truthy:null,undefined:null,schema:{additionalProperties:!1,properties:{schema:{type:"object",description:"Any valid JSON Schema document."},dialect:{enum:["auto","draft4","draft6","draft7","draft2019-09","draft2020-12"],default:"auto",description:"The JSON Schema draft used by function."},allErrors:{type:"boolean",default:!1,description:"Returns all errors when true; otherwise only returns the first error."},prepareResults:{"x-internal":!0}},required:["schema"],type:"object",errorMessage:{type:'"schema" function has invalid options specified. Example valid options: { "schema": { /* any JSON Schema can be defined here */ } , { "schema": { "type": "object" }, "dialect": "auto" }'}},unreferencedReusableObject:{type:"object",properties:{reusableObjectsLocation:{type:"string",format:"json-pointer-uri-fragment",errorMessage:'"unreferencedReusableObject" and its "reusableObjectsLocation" option support only valid JSON Pointer fragments, i.e. "#", "#/foo", "#/paths/~1user"',description:"A local json pointer to the document member holding the reusable objects (eg. #/definitions for an OAS2 document, #/components/schemas for an OAS3 document)."}},additionalProperties:!1,required:["reusableObjectsLocation"],errorMessage:{type:'"unreferencedReusableObject" function has invalid options specified. Example valid options: { "reusableObjectsLocation": "#/components/schemas" }, { "reusableObjectsLocation": "#/$defs" }',required:'"unreferencedReusableObject" function is missing "reusableObjectsLocation" option. Example valid options: { "reusableObjectsLocation": "#/components/schemas" }, { "reusableObjectsLocation": "#/$defs" }'}},xor:{type:"object",properties:{properties:{type:"array",items:{type:"string"},minItems:2,maxItems:2,errorMessage:'"xor" and its "properties" option support 2-item tuples, i.e. ["id", "name"]',description:"The properties to check."}},additionalProperties:!1,required:["properties"],errorMessage:{type:'"xor" function has invalid options specified. Example valid options: { "properties": ["id", "name"] }, { "properties": ["country", "street"] }'}}}},3609:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(1403),o=r(8208),s=/^\/(.+)\/([a-z]*)$/,a=new Map;function c(e){const t=a.get(e);if(void 0!==t)return t.lastIndex=0,t;const r=function(e){const t=s.exec(e);return null!==t?new RegExp(t[1],t[2]):new RegExp(e)}(e);return a.set(e,r),r}t.default=(0,n.createRulesetFunction)({input:{type:"string"},options:o.optionSchemas.pattern},(function(e,t){let r;return"match"in t&&(c(t.match).test(e)||(r=[{message:`#{{print("value")}} must match the pattern ${(0,i.printValue)(t.match)}`}])),"notMatch"in t&&c(t.notMatch).test(e)&&(null!=r?r:r=[]).push({message:`#{{print("value")}} must not match the pattern ${(0,i.printValue)(t.notMatch)}`}),r}))},8178:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createAjvInstances=void 0;const n=r(655),i=(0,n.__importDefault)(r(1581)),o=(0,n.__importDefault)(r(6533)),s=(0,n.__importDefault)(r(5128)),a=(0,n.__importDefault)(r(1e3)),c=(0,n.__importDefault)(r(5477)),p=(0,n.__importDefault)(r(4606)),u=(0,n.__importStar)(r(18)),f=(0,n.__importStar)(r(9081)),l={warn(...e){const t=e[0];if("string"==typeof t){if(t.startsWith("unknown format"))return;console.warn(...e)}},log:console.log,error:console.error};function d(e,t){const r=new e({allErrors:t,meta:!0,messages:!0,strict:!1,allowUnionTypes:!0,logger:l,unicodeRegExp:!1});return(0,c.default)(r),t&&(0,p.default)(r),e===i.default&&(r.addSchema(f),r.addSchema(u)),r}function h(e){let t,r;return{get default(){return null!=t||(t=d(e,!1)),t},get allErrors(){return null!=r||(r=d(e,!0)),r}}}t.createAjvInstances=function(){const e={auto:h(i.default),draft4:h(a.default),"draft2019-09":h(o.default),"draft2020-12":h(s.default)},t=new WeakMap;return function(r,n,i){var o,s,a,c;const p=(null!==(o=e[n])&&void 0!==o?o:e.auto)[i?"allErrors":"default"],u=r.$id;if("string"==typeof u)return null!==(s=p.getSchema(u))&&void 0!==s?s:p.compile(r);{const e=null!==(a=t.get(p))&&void 0!==a?a:t.set(p,new WeakMap).get(p);return null!==(c=e.get(r))&&void 0!==c?c:e.set(r,p.compile(r)).get(r)}}}},7952:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655),i=(0,n.__importDefault)(r(654)),o=r(683),s=r(8178),a=(0,n.__importDefault)(r(6646)),c=r(309),p=r(6486),u=r(8208),f=new WeakMap;t.default=(0,c.createRulesetFunction)({input:null,options:u.optionSchemas.schema},(function(e,t,{path:r,rule:n,documentInventory:c}){var u,l,d;if(void 0===e)return[{path:r,message:'#{{print("property")}}must exist'}];const h=null!==(u=f.get(c))&&void 0!==u?u:f.set(c,(0,s.createAjvInstances)()).get(c),m=[],{allErrors:y=!1,schema:g}=t;try{const n=h(g,null!==(l=void 0===t.dialect||"auto"===t.dialect?(0,o.detectDialect)(g):null==t?void 0:t.dialect)&&void 0!==l?l:"draft7",y);!1===(null==n?void 0:n(e))&&Array.isArray(n.errors)&&(null===(d=t.prepareResults)||void 0===d||d.call(t,n.errors),m.push(...(0,i.default)(g,n.errors,{propertyPath:r,targetValue:e}).map((({suggestion:e,error:t,path:n})=>({message:void 0!==e?`${t}. ${e}`:t,path:[...r,...""!==n?n.replace(/^\//,"").split("/"):[]]})))))}catch(e){if(!(0,p.isError)(e))throw new Error("Unexpected error");n.resolved&&e instanceof a.default||m.push({message:e.message,path:r})}return m}))},9719:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(8208);t.default=(0,n.createRulesetFunction)({input:null,options:i.optionSchemas.truthy},(function(e){if(!e)return[{message:'#{{print("property")}}must be truthy'}]}))},2599:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.CasingType=void 0,(r=t.CasingType||(t.CasingType={})).flat="flat",r.camel="camel",r.pascal="pascal",r.kebab="kebab",r.cobol="cobol",r.snake="snake",r.macro="macro"},9298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(8208);t.default=(0,n.createRulesetFunction)({input:null,options:i.optionSchemas.undefined},(function(e){if(void 0!==e)return[{message:'#{{print("property")}}must be undefined'}]}))},3789:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(1403),o=r(7953),s=r(8208);t.default=(0,n.createRulesetFunction)({input:{type:"object"},options:s.optionSchemas.unreferencedReusableObject},(function(e,t,{document:r,documentInventory:n}){var s;const a=n.graph;if(null===a)throw new Error("unreferencedReusableObject requires dependency graph");const c=null!==(s=r.source)&&void 0!==s?s:"",p=Object.keys(e).map((e=>`${c}${t.reusableObjectsLocation}/${e}`)),u=new Set(a.overallOrder().map((e=>(0,o.decodePointer)(e))));return p.filter((e=>!u.has(e))).map((e=>({message:"Potential orphaned reusable object has been detected",path:(0,i.safePointerToPath)(e)})))}))},7217:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(1403),o=r(8208);t.default=(0,n.createRulesetFunction)({input:{type:"object"},options:o.optionSchemas.xor},(function(e,{properties:t}){if(2!==t.length)return;const r=[];return 1!==Object.keys(e).filter((e=>-1!==t.indexOf(e))).length&&r.push({message:`${(0,i.printValue)(t[0])} and ${(0,i.printValue)(t[1])} must not be both defined or both undefined`}),r}))},1e3:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=r(7159),i=r(32),o=r(1240),s=r(2165),a=["/properties"],c="http://json-schema.org/draft-04/schema";class p extends n.default{constructor(e={}){super({...e,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),i.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=p,Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var u=r(7159);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var f=r(7159);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return f._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return f.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return f.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return f.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return f.CodeGen}})},8005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=["$schema","id","$defs",{keyword:"$comment"},"definitions",r(8280).default];t.default=n},32:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8005),i=r(3806),o=r(8200),s=r(9502),a=[n.default,i.default,o.default(),s.default,["title","description","default"]];t.default=a},3806:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6453),i=r(4275),o=r(430),s=r(3229),a=r(4336),c=r(498),p=r(3301),u=r(1687),f=r(2958),l=r(4693),d=r(966),h=[n.default,i.default,o.default,s.default,a.default,c.default,p.default,u.default,f.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,d.default];t.default=h},6453:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(7159),i=r(3487).operators,o={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:i.LTE,fail:i.GT},{okStr:"<",ok:i.LT,fail:i.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:i.GTE,fail:i.LT},{okStr:">",ok:i.GT,fail:i.LTE}]}},s={message:e=>n.str`must be ${c(e).okStr} ${e.schemaCode}`,params:e=>n._`{comparison: ${c(e).okStr}, limit: ${e.schemaCode}}`},a={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:s,code(e){const{data:t,schemaCode:r}=e;e.fail$data(n._`${t} ${c(e).fail} ${r} || isNaN(${t})`)}};function c(e){var t;const r=e.keyword,n=(null===(t=e.parentSchema)||void 0===t?void 0:t[o[r].exclusive])?1:0;return o[r].ops[n]}t.default=a},4275:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},n={keyword:Object.keys(r),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){const n=r[e];if(void 0===t[n])throw new Error(`${e} can only be used with ${n}`)}};t.default=n},4606:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1581),i=r(3487),o=r(7023),s=r(4815),a=r(4181),c=r(2141),p="errorMessage",u=new n.Name("emUsed"),f={required:"missingProperty",dependencies:"property",dependentRequired:"property"},l=/\$\{[^}]+\}/,d=/\$\{([^}]+)\}/g,h=/^""\s*\+\s*|\s*\+\s*""$/g;const m=(e,t={})=>{if(!e.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(e.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return e.addKeyword(function(e){return{keyword:p,schemaType:["string","object"],post:!0,code(t){const{gen:r,data:m,schema:y,schemaValue:g,it:v}=t;if(!1===v.createErrors)return;const b=y,j=i.strConcat(c.default.instancePath,v.errorPath);function $(e,t){return i.and(n._`${e}.keyword !== ${p}`,n._`!${e}.${u}`,n._`${e}.instancePath === ${j}`,n._`${e}.keyword in ${t}`,n._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,n._`/^\\/[^\\/]*$/.test(${e}.schemaPath.slice(${v.errSchemaPath.length}))`)}function _(e,t){const n=[];for(const r in e){const e=t[r];l.test(e)&&n.push([r,P(e)])}return r.object(...n)}function x(e){return l.test(e)?new o._Code(o.safeStringify(e).replace(d,((e,t)=>`" + JSON.stringify(${s.getData(t,v)}) + "`)).replace(h,"")):n.stringify(e)}function P(e){return n._`function(){return ${x(e)}}`}r.if(n._`${c.default.errors} > 0`,(()=>{if("object"==typeof b){const[o,s]=function(e){let t,r;for(const n in e){if("properties"===n||"items"===n)continue;const i=e[n];if("object"==typeof i){t||(t={});const e=t[n]={};for(const t in i)e[t]=[]}else r||(r={}),r[n]=[]}return[t,r]}(b);s&&function(i){const o=r.const("emErrors",n.stringify(i)),s=r.const("templates",_(i,y));r.forOf("err",c.default.vErrors,(e=>r.if($(e,o),(()=>r.code(n._`${o}[${e}.keyword].push(${e})`).assign(n._`${e}.${u}`,!0)))));const{singleError:p}=e;if(p){const e=r.let("message",n._`""`),i=r.let("paramsErrors",n._`[]`);f((t=>{r.if(e,(()=>r.code(n._`${e} += ${"string"==typeof p?p:";"}`))),r.code(n._`${e} += ${l(t)}`),r.assign(i,n._`${i}.concat(${o}[${t}])`)})),a.reportError(t,{message:e,params:n._`{errors: ${i}}`})}else f((e=>a.reportError(t,{message:l(e),params:n._`{errors: ${o}[${e}]}`})));function f(e){r.forIn("key",o,(t=>r.if(n._`${o}[${t}].length`,(()=>e(t)))))}function l(e){return n._`${e} in ${s} ? ${s}[${e}]() : ${g}[${e}]`}}(s),o&&function(e){const i=r.const("emErrors",n.stringify(e)),o=[];for(const t in e)o.push([t,_(e[t],y[t])]);const s=r.const("templates",r.object(...o)),p=r.scopeValue("obj",{ref:f,code:n.stringify(f)}),l=r.let("emPropParams"),d=r.let("emParamsErrors");r.forOf("err",c.default.vErrors,(e=>r.if($(e,i),(()=>{r.assign(l,n._`${p}[${e}.keyword]`),r.assign(d,n._`${i}[${e}.keyword][${e}.params[${l}]]`),r.if(d,(()=>r.code(n._`${d}.push(${e})`).assign(n._`${e}.${u}`,!0)))})))),r.forIn("key",i,(e=>r.forIn("keyProp",n._`${i}[${e}]`,(o=>{r.assign(d,n._`${i}[${e}][${o}]`),r.if(n._`${d}.length`,(()=>{const i=r.const("tmpl",n._`${s}[${e}] && ${s}[${e}][${o}]`);a.reportError(t,{message:n._`${i} ? ${i}() : ${g}[${e}][${o}]`,params:n._`{errors: ${d}}`})}))}))))}(o),function(e){const{props:o,items:s}=e;if(!o&&!s)return;const f=n._`typeof ${m} == "object"`,l=n._`Array.isArray(${m})`,d=r.let("emErrors");let h,v;const b=r.let("templates");function $(e,t){r.assign(d,n.stringify(e)),r.assign(b,_(e,t))}o&&s?(h=r.let("emChildKwd"),r.if(f),r.if(l,(()=>{$(s,y.items),r.assign(h,n.str`items`)}),(()=>{$(o,y.properties),r.assign(h,n.str`properties`)})),v=n._`[${h}]`):s?(r.if(l),$(s,y.items),v=n._`.items`):o&&(r.if(i.and(f,i.not(l))),$(o,y.properties),v=n._`.properties`),r.forOf("err",c.default.vErrors,(e=>function(e,t,o){r.if(i.and(n._`${e}.keyword !== ${p}`,n._`!${e}.${u}`,n._`${e}.instancePath.indexOf(${j}) === 0`),(()=>{const i=r.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:n._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),s=r.const("emMatches",n._`${i}.exec(${e}.instancePath.slice(${j}.length))`),a=r.const("emChild",n._`${s} && ${s}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);r.if(n._`${a} !== undefined && ${a} in ${t}`,(()=>o(a)))}))}(e,d,(t=>r.code(n._`${d}[${t}].push(${e})`).assign(n._`${e}.${u}`,!0))))),r.forIn("key",d,(e=>r.if(n._`${d}[${e}].length`,(()=>{a.reportError(t,{message:n._`${e} in ${b} ? ${b}[${e}]() : ${g}${v}[${e}]`,params:n._`{errors: ${d}[${e}]}`}),r.assign(n._`${c.default.vErrors}[${c.default.errors}-1].instancePath`,n._`${j} + "/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})))),r.endIf()}(function({properties:e,items:t}){const r={};if(e){r.props={};for(const t in e)r.props[t]=[]}if(t){r.items={};for(let e=0;er.if(function(e){return i.and(n._`${e}.keyword !== ${p}`,n._`!${e}.${u}`,i.or(n._`${e}.instancePath === ${j}`,i.and(n._`${e}.instancePath.indexOf(${j}) === 0`,n._`${e}.instancePath[${j}.length] === "/"`)),n._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,n._`${e}.schemaPath[${v.errSchemaPath}.length] === "/"`)}(e),(()=>r.code(n._`${o}.push(${e})`).assign(n._`${e}.${u}`,!0))))),r.if(n._`${o}.length`,(()=>a.reportError(t,{message:x(e),params:n._`{errors: ${o}}`})))}(o),e.keepErrors||function(){const e=r.const("emErrs",n._`[]`);r.forOf("err",c.default.vErrors,(t=>r.if(n._`!${t}.${u}`,(()=>r.code(n._`${e}.push(${t})`))))),r.assign(c.default.vErrors,e).assign(c.default.errors,n._`${e}.length`)}()}))},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}(t))};t.default=m,e.exports=m,e.exports.default=m},644:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);(0,n.__exportStar)(r(7657),t),(0,n.__exportStar)(r(8450),t),(0,n.__exportStar)(r(7858),t)},7657:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Json=t.parseJson=void 0;const n=r(7953);t.parseJson=e=>(0,n.parseWithPointers)(e,{ignoreDuplicateKeys:!1,preserveKeyOrder:!0}),t.Json={parse:t.parseJson,getLocationForJsonPath:n.getLocationForJsonPath,trapAccess:n.trapAccess}},7858:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Yaml=t.parseYaml=void 0;const n=r(8748);t.parseYaml=e=>(0,n.parseWithPointers)(e,{ignoreDuplicateKeys:!1,mergeKeys:!0,preserveKeyOrder:!0}),t.Yaml={parse:t.parseYaml,getLocationForJsonPath:n.getLocationForJsonPath,trapAccess:n.trapAccess}},3871:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHttpAndFileResolver=t.ResolverDepGraph=t.Resolver=t.httpAndFileResolver=void 0;const n=r(655),i=r(5738),o=r(5594);Object.defineProperty(t,"Resolver",{enumerable:!0,get:function(){return o.Resolver}});const s=r(1403),a=r(5357);function c(e){const t=i.createResolveHttp({...s.DEFAULT_REQUEST_OPTIONS,...e});return new o.Resolver({resolvers:{https:{resolve:t},http:{resolve:t},file:{resolve:i.resolveFile}}})}n.__exportStar(r(5927),t),t.httpAndFileResolver=c(),t.ResolverDepGraph=a.DepGraph,t.createHttpAndFileResolver=c},5927:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4399:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cache=class{constructor(e={}){this._stats={hits:0,misses:0},this._data={},this._stdTTL=e.stdTTL}get stats(){return this._stats}get(e){const t=this._data[e];if(t&&(!this._stdTTL||(new Date).getTime()-t.ts{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(7953),i=r(5357),o=r(9208),s=r(8634);t.ResolveCrawler=class{constructor(e,t,r){this._resolved=r,this.resolvers=[],this.pointerGraph=new i.DepGraph({circular:!0}),this.pointerStemGraph=new i.DepGraph({circular:!0}),this.computeGraph=(e,t=[],r="#",n=[])=>{r||(r="#");let i=this._runner.computeRef({val:e,jsonPointer:r,pointerStack:n});if(void 0!==i)this._resolveRef({ref:i,val:e,parentPath:t,pointerStack:n,parentPointer:r,cacheKey:r,resolvingPointer:this.jsonPointer});else if("object"==typeof e)for(const o in e){if(!e.hasOwnProperty(o))continue;const a=e[o],c=s.addToJSONPointer(r,o);i=this._runner.computeRef({key:o,val:a,jsonPointer:c,pointerStack:n}),t.push(o),void 0!==i?this._resolveRef({ref:i,val:a,parentPath:t,parentPointer:c,pointerStack:n,cacheKey:s.uriToJSONPointer(i),resolvingPointer:this.jsonPointer}):"object"==typeof a&&this.computeGraph(a,t,c,n),t.pop()}},this._resolveRef=e=>{const{pointerStack:t,parentPath:r,parentPointer:i,ref:a}=e;if(s.uriIsJSONPointer(a)){if(this._runner.dereferenceInline){const e=s.uriToJSONPointer(a);let c;try{c=n.pointerToPath(e)}catch(e){return void this._resolved.errors.push({code:"PARSE_POINTER",message:`'${a}' JSON pointer is invalid`,uri:this._runner.baseUri,uriStack:this._runner.uriStack,pointerStack:[],path:[]})}let p=c.length>0;for(const e in c)if(r[e]!==c[e]){p=!1;break}if(p)return;this.pointerStemGraph.hasNode(e)||this.pointerStemGraph.addNode(e);let u="#",f="";for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(655).__exportStar(r(1844),t);var n=r(4399);t.Cache=n.Cache;var i=r(4281);t.defaultGetRef=i.defaultGetRef},1844:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(5357),i=r(4399),o=r(4281);t.Resolver=class{constructor(e={}){this.ctx={},this.uriCache=e.uriCache||new i.Cache,this.resolvers=e.resolvers||{},this.getRef=e.getRef,this.transformRef=e.transformRef,this.dereferenceInline=void 0===e.dereferenceInline||e.dereferenceInline,this.dereferenceRemote=void 0===e.dereferenceRemote||e.dereferenceRemote,this.parseResolveResult=e.parseResolveResult,this.transformDereferenceResult=e.transformDereferenceResult,this.ctx=e.ctx}resolve(e,t={}){const r=new n.DepGraph({circular:!0});return new o.ResolveRunner(e,r,Object.assign(Object.assign({uriCache:this.uriCache,resolvers:this.resolvers,getRef:this.getRef,transformRef:this.transformRef,dereferenceInline:this.dereferenceInline,dereferenceRemote:this.dereferenceRemote,parseResolveResult:this.parseResolveResult,transformDereferenceResult:this.transformDereferenceResult},t),{ctx:Object.assign({},this.ctx||{},t.ctx||{})})).resolve(t)}}},4281:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655),i=r(7953),o=r(5966),s=r(5357),a=r(8172),c=r(9208),p=r(1468),u=r(4998),f=r(9177),l=r(4399),d=r(6701),h=r(8634),m=r(3316);let y=0;t.defaultGetRef=(e,t)=>{if(t&&"object"==typeof t&&"string"==typeof t.$ref)return t.$ref};class g{constructor(e,r=new s.DepGraph({circular:!0}),a={}){this.ctx={},this.computeRef=e=>{const t=this.getRef(e.key,e.val);if(void 0===t)return;let r=new f.ExtendedURI(t);if("#"!==t[0])if(this.isFile(r)){let e=r.toString();r.is("absolute")||(e=this.baseUri.toString()?o.join(o.dirname(this.baseUri.toString()),o.stripRoot(e)):""),e&&(r=new u(o.toFSPath(e)).fragment(r.fragment()))}else(r.scheme().includes("http")||""===r.scheme()&&this.baseUri.scheme().includes("http"))&&""!==this.baseUri.authority()&&""===r.authority()&&(r=r.absoluteTo(this.baseUri));return this.transformRef?this.transformRef(Object.assign(Object.assign({},e),{ref:r,uri:this.baseUri}),this.ctx):r},this.atMaxUriDepth=()=>this.uriStack.length>=100,this.lookupUri=e=>n.__awaiter(this,void 0,void 0,(function*(){const{ref:t}=e;let r=t.scheme();!this.resolvers[r]&&this.isFile(t)&&(r="file");const n=this.resolvers[r];if(!n)throw new Error(`No resolver defined for scheme '${t.scheme()||"file"}' in ref ${t.toString()}`);let i=yield n.resolve(t,this.ctx);if(this.parseResolveResult)try{i=(yield this.parseResolveResult({uriResult:i,result:i,targetAuthority:t,parentAuthority:this.baseUri,parentPath:e.parentPath,fragment:e.fragment})).result}catch(e){throw new Error(`Could not parse remote reference response for '${t.toString()}' - ${String(e)}`)}return new g(i,this.graph,{depth:this.depth+1,baseUri:t.toString(),root:t,uriStack:this.uriStack,uriCache:this.uriCache,resolvers:this.resolvers,transformRef:this.transformRef,parseResolveResult:this.parseResolveResult,transformDereferenceResult:this.transformDereferenceResult,dereferenceRemote:this.dereferenceRemote,dereferenceInline:this.dereferenceInline,ctx:this.ctx})})),this.lookupAndResolveUri=e=>n.__awaiter(this,void 0,void 0,(function*(){const{val:t,ref:r,resolvingPointer:n,parentPointer:o,pointerStack:s}=e,a=e.parentPath?e.parentPath.slice():[],c=this.computeUriCacheKey(r),u={uri:r,pointerStack:s,targetPath:n===o?[]:a};if(this.uriStack.includes(c))return u.resolved={result:t,graph:this.graph,refMap:{},errors:[],runner:this},u;{let e;const n=this.baseUri.toString(),o=n&&0!==this.depth?n:null;try{if(this.atMaxUriDepth())throw new Error(`Max uri depth (${this.uriStack.length}) reached. Halting, this is probably a circular loop.`);e=yield this.lookupUri({ref:r.clone().fragment(""),fragment:r.fragment(),cacheKey:c,parentPath:a}),o&&(e.uriStack=e.uriStack.concat(o))}catch(e){u.error={code:"RESOLVE_URI",message:String(e),uri:r,uriStack:o?this.uriStack.concat(o):this.uriStack,pointerStack:s,path:a}}if(e&&(u.resolved=yield e.resolve({jsonPointer:h.uriToJSONPointer(r),parentPath:a}),u.resolved.errors.length))for(const e of u.resolved.errors)if("POINTER_MISSING"===e.code&&e.path.join("/")===r.fragment().slice(1)){const n=r.fragment?i.trimStart(e.path,i.trimStart(r.fragment(),"/").split("/")):e.path;n&&n.length?p(u.resolved.result,n,t):u.resolved.result&&(u.resolved.result=t)}}return u})),this.id=y+=1,this.depth=a.depth||0,this._source=e,this.resolvers=a.resolvers||{};const c=a.baseUri||"";let d=new u(c||"");this.isFile(d)&&(d=new u(o.toFSPath(c))),this.baseUri=d,this.uriStack=a.uriStack||[],this.uriCache=a.uriCache||new l.Cache,this.root=a.root&&a.root.toString()||this.baseUri.toString()||"root",this.graph=r,this.graph.hasNode(this.root)||this.graph.addNode(this.root,{refMap:{},data:this._source}),this.baseUri&&0===this.depth&&this.uriCache.set(this.computeUriCacheKey(this.baseUri),this),this.getRef=a.getRef||t.defaultGetRef,this.transformRef=a.transformRef,this.depth?this.dereferenceInline=!0:this.dereferenceInline=void 0===a.dereferenceInline||a.dereferenceInline,this.dereferenceRemote=void 0===a.dereferenceRemote||a.dereferenceRemote,this.parseResolveResult=a.parseResolveResult,this.transformDereferenceResult=a.transformDereferenceResult,this.ctx=a.ctx,this.lookupUri=m(this.lookupUri,{serializer:this._cacheKeySerializer,cache:{create:()=>this.uriCache}})}get source(){return this._source}resolve(e){return n.__awaiter(this,void 0,void 0,(function*(){const t={result:this.source,graph:this.graph,refMap:{},errors:[],runner:this};let r;const n=e&&e.jsonPointer&&e.jsonPointer.trim();if(n&&"#"!==n&&"#/"!==n){try{r=i.pointerToPath(n)}catch(e){return t.errors.push({code:"PARSE_POINTER",message:`'${n}' JSON pointer is invalid`,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[],path:[]}),t}t.result=c(t.result,r)}if(void 0===t.result)return t.errors.push({code:"POINTER_MISSING",message:`'${n}' does not exist @ '${this.baseUri.toString()}'`,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[],path:r||[]}),t;const o=new d.ResolveCrawler(this,n,t);o.computeGraph(t.result,r,n||"");let s=[];if(o.resolvers.length&&(s=yield Promise.all(o.resolvers)),s.length)for(const e of s){let n=e.targetPath;n.length||(n=r||[]),t.refMap[String(this.baseUri.clone().fragment(i.pathToPointer(n)))]=String(e.uri),this._setGraphNodeEdge(String(this.root),i.pathToPointer(n),String(e.uri)),e.error&&t.errors.push(e.error),e.resolved&&(e.resolved.errors&&(t.errors=t.errors.concat(e.resolved.errors)),void 0!==e.resolved.result&&(this._source=a.default(this._source,(t=>{if(e.resolved){if(!n.length)return e.resolved.result;p(t,n,e.resolved.result),this._setGraphNodeData(String(e.uri),e.resolved.result)}}))))}if("object"==typeof this._source?(this.dereferenceInline&&(this._source=a.default(this._source,(e=>{let r=[];try{r=o.pointerGraph.overallOrder();for(const n of r){const r=o.pointerGraph.dependantsOf(n);if(!r.length)continue;const s=i.pointerToPath(n),u=0===s.length?a.original(e):c(e,s);for(const a of r){let r;const c=i.pointerToPath(a),f=o.pointerStemGraph.dependenciesOf(n);for(const e of f)if(i.startsWith(c,i.pointerToPath(e))){r=!0;break}r||(t.refMap[i.pathToPointer(c)]=i.pathToPointer(s),this._setGraphNodeEdge(this.root,i.pathToPointer(c),i.pathToPointer(s)),void 0!==u?(p(e,c,u),this._setGraphNodeData(i.pathToPointer(s),u)):t.errors.push({code:"POINTER_MISSING",message:`'${n}' does not exist`,path:c,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[]}))}}}catch(e){}}))),t.result=r?c(this._source,r):this._source):t.result=this._source,this.transformDereferenceResult){const i=new u(n||"");try{const{result:r,error:n}=yield this.transformDereferenceResult({source:this.source,result:t.result,targetAuthority:i,parentAuthority:this.baseUri,parentPath:e&&e.parentPath||[],fragment:i.fragment()});if(t.result=r,n)throw new Error(`Could not transform dereferenced result for '${i.toString()}' - ${String(n)}`)}catch(e){t.errors.push({code:"TRANSFORM_DEREFERENCED",message:`Error: Could not transform dereferenced result for '${this.baseUri.toString()}${""!==i.fragment()?`#${i.fragment()}`:""}' - ${String(e)}`,uri:i,uriStack:this.uriStack,pointerStack:[],path:r})}}return this._setGraphNodeData(this.root,this._source),t}))}_cacheKeySerializer(e){return e&&"object"==typeof e&&e.cacheKey?e.cacheKey:JSON.stringify(arguments)}computeUriCacheKey(e){return e.clone().fragment("").toString()}isFile(e){const t=e.scheme();if("file"===t)return!0;if(t){if(!this.resolvers[t])return!0}else{if("/"===e.toString().charAt(0))return!0;if(this.baseUri){const e=this.baseUri.scheme();return Boolean(!e||"file"===e||!this.resolvers[e])}}return!1}_setGraphNodeData(e,t){if(!this.graph.hasNode(e))return;const r=this.graph.getNodeData(e)||{};r.data=t,this.graph.setNodeData(e,r)}_setGraphNodeEdge(e,t,r){if(!this.graph.hasNode(e))return;const n=this.graph.getNodeData(e)||{};n.refMap=n.refMap||{},n.refMap[t]=r,this.graph.setNodeData(e,n)}}t.ResolveRunner=g},9177:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4998);t.ExtendedURI=class extends n{constructor(e){super(e),this._value=e}get length(){return this._value.length}}},8634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=(e,t,r)=>{const n=e.toString();let i="",o=n,s=0,a=o.indexOf(t);for(;a>-1;)i+=n.substring(s,s+a)+r,o=o.substring(a+t.length,o.length),s+=a+t.length,a=o.indexOf(t);return o.length>0&&(i+=n.substring(n.length-o.length,n.length)),i};t.addToJSONPointer=(e,t)=>{return`${e}/${n=t,r(r(n,"~","~0"),"/","~1")}`;var n},t.uriToJSONPointer=e=>"length"in e&&0===e.length?"":""!==e.fragment()?`#${e.fragment()}`:""===e.href()?"#":"",t.uriIsJSONPointer=e=>(!("length"in e)||e.length>0)&&""===e.path()},2613:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(7341),o=r(918),s=r(3874);t.default=(0,n.createRulesetFunction)({input:{type:"object",properties:{parameters:{type:"object"}},required:["parameters"]},options:null},(function(e,t,r){const n=r.path[r.path.length-1],a=[],c=(0,i.parseUrlVariables)(n);if(0===c.length)return;const p=(0,o.getMissingProps)(c,e.parameters);p.length&&a.push({message:`Not all channel's parameters are described with "parameters" object. Missed: ${p.join(", ")}.`,path:[...r.path,"parameters"]});const u=(0,s.getRedundantProps)(c,e.parameters);return u.length&&u.forEach((e=>{a.push({message:`Channel's "parameters" object has redundant defined "${e}" parameter.`,path:[...r.path,"parameters",e]})})),a}))},6722:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309);t.default=(0,n.createRulesetFunction)({input:{type:"object",properties:{servers:{type:"object"},channels:{type:"object",additionalProperties:{type:"object",properties:{servers:{type:"array",items:{type:"string"}}}}}}},options:null},(function(e,t){var r,n;const i=[];if(!e.channels)return i;const o=Object.keys(null!==(r=e.servers)&&void 0!==r?r:{});return Object.entries(null!==(n=e.channels)&&void 0!==n?n:{}).forEach((([e,t])=>{t.servers&&t.servers.forEach(((t,r)=>{o.includes(t)||i.push({message:'Channel contains server that are not defined on the "servers" object.',path:["channels",e,"servers",r]})}))})),i}))},3344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareResults=void 0;const n=r(655),i=r(309),o=r(4133),s=r(683),a=(0,n.__importStar)(r(5610)),c=(0,n.__importStar)(r(925)),p=(0,n.__importStar)(r(7674)),u=(0,n.__importStar)(r(8198)),f=(0,n.__importStar)(r(7474));function l(e){return"oneOf"===e.keyword||"required"===e.keyword&&"$ref"===e.params.missingProperty}const d=[{path:/^components\/securitySchemes\/[^/]+$/,message:"Invalid security scheme"}];function h(e){for(const t of e)"additionalProperties"===t.keyword&&(t.instancePath=`${t.instancePath}/${String(t.params.additionalProperty)}`);for(let t=0;t0&&l(r)&&e[t-1].instancePath.startsWith(r.instancePath)&&(e.splice(t,1),t--)}}t.prepareResults=h,t.default=(0,i.createRulesetFunction)({input:null,options:null},(function(e,t,r){const n=r.document.formats;if(null==n)return;const i=function(e){switch(!0){case e.has(s.aas2_0):return a;case e.has(s.aas2_1):return c;case e.has(s.aas2_2):return p;case e.has(s.aas2_3):return u;case e.has(s.aas2_4):return f;default:return}}(n);if(void 0===i)return;const l=(0,o.schema)(e,{allErrors:!0,schema:i,prepareResults:h},r);return Array.isArray(l)&&function(e){for(const t of e){if(void 0===t.path)continue;const e=t.path.join("/");for(const r of d)if(r.path.test(e)){t.message=r.message;break}}}(l),l}))},6567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(4133);function o(e,t,r,n,o){return(0,i.schema)(e,{allErrors:!0,schema:n},{...o,path:[...o.path,...t,r]})}t.default=(0,n.createRulesetFunction)({input:{type:"object",properties:{name:{type:"string"},summary:{type:"string"}}},options:null},(function(e,t,r){if(!e.examples)return;const n=(i=e,Array.isArray(i.examples)&&null!==(s=i.examples.map(((e,t)=>({path:["examples",t],value:e}))))&&void 0!==s?s:[]);var i,s;const a=[];for(const t of n){if(void 0!==t.value.payload){const n=o(t.value.payload,t.path,"payload",e.payload,r);Array.isArray(n)&&a.push(...n)}if(void 0!==t.value.headers){const n=o(t.value.headers,t.path,"headers",e.headers,r);Array.isArray(n)&&a.push(...n)}}return a}))},6275:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(7953),o=r(1021);function s(e){if(Array.isArray(e.traits))for(let t=e.traits.length-1;t>=0;t--){const r=e.traits[t];if((0,i.isPlainObject)(r)&&"string"==typeof r.messageId)return{messageId:r.messageId,path:["traits",t,"messageId"]}}if("string"==typeof e.messageId)return{messageId:e.messageId,path:["messageId"]}}t.default=(0,n.createRulesetFunction)({input:{type:"object",properties:{channels:{type:"object",properties:{subscribe:{type:"object",properties:{message:{oneOf:[{type:"object"},{type:"object",properties:{oneOf:{type:"array"}}}]}}},publish:{type:"object",properties:{message:{oneOf:[{type:"object"},{type:"object",properties:{oneOf:{type:"array"}}}]}}}}}}},options:null},(function(e,t){const r=[],n=(0,o.getAllMessages)(e),i=[];for(const{path:e,message:t}of n){const n=s(t);void 0!==n&&(i.includes(n.messageId)?r.push({message:'"messageId" must be unique across all the messages.',path:[...e,...n.path]}):i.push(n.messageId))}return r}))},2654:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(7953),o=r(1543);function s(e){if(Array.isArray(e.traits))for(let t=e.traits.length-1;t>=0;t--){const r=e.traits[t];if((0,i.isPlainObject)(r)&&"string"==typeof r.operationId)return{operationId:r.operationId,path:["traits",t,"operationId"]}}if("string"==typeof e.operationId)return{operationId:e.operationId,path:["operationId"]}}t.default=(0,n.createRulesetFunction)({input:{type:"object",properties:{channels:{type:"object",properties:{subscribe:{type:"object"},publish:{type:"object"}}}}},options:null},(function(e,t){const r=[],n=(0,o.getAllOperations)(e),i=[];for(const{path:e,operation:t}of n){const n=s(t);void 0!==n&&(i.includes(n.operationId)?r.push({message:'"operationId" must be unique across all the operations.',path:[...e,...n.path]}):i.push(n.operationId))}return r}))},490:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655),i=(0,n.__importDefault)(r(1581)),o=(0,n.__importDefault)(r(5477)),s=r(309),a=(0,n.__importDefault)(r(654)),c=(0,n.__importStar)(r(8198)),p={$ref:"asyncapi2#/definitions/schema"},u=new i.default({allErrors:!0,strict:!1});(0,o.default)(u),u.addSchema(c,"asyncapi2");const f=u.compile(p);t.default=(0,s.createRulesetFunction)({input:null,options:null},(function(e,t,r){return f(e),(0,a.default)(p,f.errors,{propertyPath:r.path,targetValue:e}).map((({suggestion:e,error:t,path:n})=>({message:void 0!==e?`${t}. ${e}`:t,path:[...r.path,...""!==n?n.replace(/^\//,"").split("/"):[]]})))}))},588:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(4133);t.default=(0,n.createRulesetFunction)({input:{type:"object",properties:{default:{},examples:{type:"array"}},errorMessage:'#{{print("property")}must be an object containing "default" or an "examples" array'},errorOnInvalidInput:!0,options:{type:"object",properties:{type:{enum:["default","examples"]}},additionalProperties:!1,required:["type"]}},(function(e,t,r){const n=e,o=(s=e,"default"===t.type?[{path:["default"],value:s.default}]:Array.isArray(s.examples)?Array.from(s.examples.entries()).map((([e,t])=>({path:["examples",e],value:t}))):[]);var s;const a=[];for(const e of o){const t=(0,i.schema)(e.value,{schema:n,allErrors:!0},{...r,path:[...r.path,...e.path]});Array.isArray(t)&&a.push(...t)}return a}))},1269:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(7953),o=["implicit","password","clientCredentials","authorizationCode"];t.default=(0,n.createRulesetFunction)({input:{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},options:{type:"object",properties:{objectType:{type:"string",enum:["Server","Operation"]}}}},(function(e={},{objectType:t},r){var n,s;const a=[],c=r.document.data,p=null!==(s=null===(n=null==c?void 0:c.components)||void 0===n?void 0:n.securitySchemes)&&void 0!==s?s:{},u=Object.keys(p);return Object.keys(e).forEach((n=>{var s;u.includes(n)||a.push({message:`${t} must not reference an undefined security scheme.`,path:[...r.path,n]});const c=p[n];if("oauth2"===(null==c?void 0:c.type)){const t=function(e){const t=[];return o.forEach((r=>{const n=e[r];(0,i.isPlainObject)(n)&&(0,i.isPlainObject)(n)&&t.push(...Object.keys(n.scopes))})),Array.from(new Set(t))}(null!==(s=c.flows)&&void 0!==s?s:{});e[n].forEach(((e,i)=>{t.includes(e)||a.push({message:`Non-existing security scope for the specified security scheme. Available: [${t.join(", ")}]`,path:[...r.path,n,i]})}))}})),a}))},6556:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(7341),o=r(918),s=r(3874);t.default=(0,n.createRulesetFunction)({input:{type:"object",properties:{url:{type:"string"},variables:{type:"object"}},required:["url","variables"]},options:null},(function(e,t,r){const n=[],a=(0,i.parseUrlVariables)(e.url);if(0===a.length)return n;const c=(0,o.getMissingProps)(a,e.variables);c.length&&n.push({message:`Not all server's variables are described with "variables" object. Missed: ${c.join(", ")}.`,path:[...r.path,"variables"]});const p=(0,s.getRedundantProps)(a,e.variables);return p.length&&p.forEach((e=>{n.push({message:`Server's "variables" object has redundant defined "${e}" url variable.`,path:[...r.path,"variables",e]})})),n}))},1021:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAllMessages=void 0;const n=r(7953),i=r(1543);t.getAllMessages=function*(e){for(const{path:t,operation:r}of(0,i.getAllOperations)(e)){if(!(0,n.isPlainObject)(r))continue;const e=r.message;if((0,n.isPlainObject)(e))if(Array.isArray(e.oneOf))for(const[r,i]of e.oneOf.entries())(0,n.isPlainObject)(i)&&(yield{path:[...t,"message","oneOf",r],message:i});else yield{path:[...t,"message"],message:e}}}},1543:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAllOperations=void 0;const n=r(7953);t.getAllOperations=function*(e){const t=null==e?void 0:e.channels;if(!(0,n.isPlainObject)(t))return{};for(const[e,r]of Object.entries(t))(0,n.isPlainObject)(r)&&((0,n.isPlainObject)(r.subscribe)&&(yield{path:["channels",e,"subscribe"],kind:"subscribe",operation:r.subscribe}),(0,n.isPlainObject)(r.publish)&&(yield{path:["channels",e,"publish"],kind:"publish",operation:r.publish}))}},918:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMissingProps=void 0,t.getMissingProps=function(e=[],t={}){return Object.keys(t).length?e.filter((e=>!Object.prototype.hasOwnProperty.call(t,e))):e}},3874:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRedundantProps=void 0,t.getRedundantProps=function(e=[],t={}){return e.length?Object.keys(t).filter((t=>!e.includes(t))):Object.keys(t)}},7341:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUrlVariables=void 0,t.parseUrlVariables=function(e){if("string"!=typeof e)return[];const t=e.match(/{(.+?)}/g);return t&&0!==t.length?t.map((e=>e.slice(1,-1))):[]}},3326:(e,t,r)=>{"use strict";const n=r(655),i=r(683),o=r(4133),s=(0,n.__importDefault)(r(2613)),a=(0,n.__importDefault)(r(6722)),c=(0,n.__importDefault)(r(3344)),p=(0,n.__importDefault)(r(6567)),u=(0,n.__importDefault)(r(6275)),f=(0,n.__importDefault)(r(2654)),l=(0,n.__importDefault)(r(588)),d=(0,n.__importDefault)(r(490)),h=(0,n.__importDefault)(r(6556)),m=r(9517),y=(0,n.__importDefault)(r(1269));t.Z={documentationUrl:"https://meta.stoplight.io/docs/spectral/docs/reference/asyncapi-rules.md",formats:[i.aas2_0,i.aas2_1,i.aas2_2,i.aas2_3,i.aas2_4],rules:{"asyncapi-channel-no-empty-parameter":{description:"Channel path must not have empty parameter substitution pattern.",recommended:!0,type:"style",given:"$.channels",then:{field:"@key",function:o.pattern,functionOptions:{notMatch:"{}"}}},"asyncapi-channel-no-query-nor-fragment":{description:'Channel path must not include query ("?") or fragment ("#") delimiter.',recommended:!0,type:"style",given:"$.channels",then:{field:"@key",function:o.pattern,functionOptions:{notMatch:"[\\?#]"}}},"asyncapi-channel-no-trailing-slash":{description:"Channel path must not end with slash.",recommended:!0,type:"style",given:"$.channels",then:{field:"@key",function:o.pattern,functionOptions:{notMatch:".+\\/$"}}},"asyncapi-channel-parameters":{description:"Channel parameters must be defined and there must be no redundant parameters.",message:"{{error}}",severity:"error",type:"validation",recommended:!0,given:["$.channels.*","$.components.channels.*"],then:{function:s.default}},"asyncapi-channel-servers":{description:'Channel servers must be defined in the "servers" object.',message:"{{error}}",severity:"error",type:"validation",recommended:!0,given:"$",then:{function:a.default}},"asyncapi-headers-schema-type-object":{description:'Headers schema type must be "object".',message:'Headers schema type must be "object" ({{error}}).',severity:"error",recommended:!0,type:"validation",given:["$.components.messageTraits.*.headers","$.components.messages.*.headers","$.channels.*.[publish,subscribe].message.headers"],then:{function:o.schema,functionOptions:{allErrors:!0,schema:{type:"object",properties:{type:{enum:["object"]}},required:["type"]}}}},"asyncapi-info-contact-properties":{description:'Contact object must have "name", "url" and "email".',recommended:!0,type:"style",given:"$.info.contact",then:[{field:"name",function:o.truthy},{field:"url",function:o.truthy},{field:"email",function:o.truthy}]},"asyncapi-info-contact":{description:'Info object must have "contact" object.',recommended:!0,type:"style",given:"$",then:{field:"info.contact",function:o.truthy}},"asyncapi-info-description":{description:'Info "description" must be present and non-empty string.',recommended:!0,type:"style",given:"$",then:{field:"info.description",function:o.truthy}},"asyncapi-info-license-url":{description:'License object must include "url".',recommended:!1,type:"style",given:"$",then:{field:"info.license.url",function:o.truthy}},"asyncapi-info-license":{description:'Info object must have "license" object.',recommended:!0,type:"style",given:"$",then:{field:"info.license",function:o.truthy}},"asyncapi-message-examples":{description:'Examples of message object should follow by "payload" and "headers" schemas.',message:"{{error}}",severity:"error",type:"validation",recommended:!0,given:["$.channels.*.[publish,subscribe].message","$.channels.*.[publish,subscribe].message.oneOf.*","$.components.channels.*.[publish,subscribe].message","$.components.channels.*.[publish,subscribe].message.oneOf.*","$.components.messages.*","$.channels.*.[publish,subscribe].message.traits.*","$.channels.*.[publish,subscribe].message.oneOf.*.traits.*","$.components.channels.*.[publish,subscribe].message.traits.*","$.components.channels.*.[publish,subscribe].message.oneOf.*.traits.*","$.components.messages.*.traits.*","$.components.messageTraits.*"],then:{function:p.default}},"asyncapi-message-messageId-uniqueness":{description:'"messageId" must be unique across all the messages.',severity:"error",recommended:!0,type:"validation",given:"$",then:{function:u.default}},"asyncapi-operation-description":{description:'Operation "description" must be present and non-empty string.',recommended:!0,type:"style",given:"$.channels[*][publish,subscribe]",then:{field:"description",function:o.truthy}},"asyncapi-operation-operationId-uniqueness":{description:'"operationId" must be unique across all the operations.',severity:"error",recommended:!0,type:"validation",given:"$",then:{function:f.default}},"asyncapi-operation-operationId":{description:'Operation must have "operationId".',severity:"error",recommended:!0,type:"validation",given:"$.channels[*][publish,subscribe]",then:{field:"operationId",function:o.truthy}},"asyncapi-operation-security":{description:"Operation have to reference a defined security schemes.",message:"{{error}}",severity:"error",type:"validation",recommended:!0,given:"$.channels[*][publish,subscribe].security.*",then:{function:y.default,functionOptions:{objectType:"Operation"}}},"asyncapi-parameter-description":{description:'Parameter objects must have "description".',recommended:!1,type:"style",given:["$.components.parameters.*","$.channels.*.parameters.*"],then:{field:"description",function:o.truthy}},"asyncapi-payload-default":{description:"Default must be valid against its defined schema.",message:"{{error}}",severity:"error",recommended:!0,type:"validation",given:["$.components.messageTraits[?(@.schemaFormat === void 0)].payload.default^","$.components.messages[?(@.schemaFormat === void 0)].payload.default^","$.channels[*][publish,subscribe][?(@property === 'message' && @.schemaFormat === void 0)].payload.default^"],then:{function:l.default,functionOptions:{type:"default"}}},"asyncapi-payload-examples":{description:"Examples must be valid against their defined schema.",message:"{{error}}",severity:"error",recommended:!0,type:"validation",given:["$.components.messageTraits[?(@.schemaFormat === void 0)].payload.examples^","$.components.messages[?(@.schemaFormat === void 0)].payload.examples^","$.channels[*][publish,subscribe][?(@property === 'message' && @.schemaFormat === void 0)].payload.examples^"],then:{function:l.default,functionOptions:{type:"examples"}}},"asyncapi-payload-unsupported-schemaFormat":{description:'Message schema validation is only supported with default unspecified "schemaFormat".',severity:"info",recommended:!0,type:"validation",given:["$.components.messageTraits.*","$.components.messages.*","$.channels[*][publish,subscribe].message"],then:{field:"schemaFormat",function:o.undefined}},"asyncapi-payload":{description:"Payloads must be valid against AsyncAPI Schema object.",message:"{{error}}",severity:"error",recommended:!0,type:"validation",given:["$.components.messageTraits[?(@.schemaFormat === void 0)].payload","$.components.messages[?(@.schemaFormat === void 0)].payload","$.channels[*][publish,subscribe][?(@property === 'message' && @.schemaFormat === void 0)].payload"],then:{function:d.default}},"asyncapi-schema-default":{description:"Default must be valid against its defined schema.",message:"{{error}}",severity:"error",recommended:!0,type:"validation",given:["$.components.schemas.*.default^","$.components.parameters.*.schema.default^","$.channels.*.parameters.*.schema.default^"],then:{function:l.default,functionOptions:{type:"default"}}},"asyncapi-schema-examples":{description:"Examples must be valid against their defined schema.",message:"{{error}}",severity:"error",recommended:!0,type:"validation",given:["$.components.schemas.*.examples^","$.components.parameters.*.schema.examples^","$.channels.*.parameters.*.schema.examples^"],then:{function:l.default,functionOptions:{type:"examples"}}},"asyncapi-schema":{description:"Validate structure of AsyncAPI v2 specification.",message:"{{error}}",severity:"error",recommended:!0,type:"validation",given:"$",then:{function:c.default}},"asyncapi-server-variables":{description:"Server variables must be defined and there must be no redundant variables.",message:"{{error}}",severity:"error",type:"validation",recommended:!0,given:["$.servers.*","$.components.servers.*"],then:{function:h.default}},"asyncapi-server-no-empty-variable":{description:"Server URL must not have empty variable substitution pattern.",recommended:!0,type:"style",given:"$.servers[*].url",then:{function:o.pattern,functionOptions:{notMatch:"{}"}}},"asyncapi-server-no-trailing-slash":{description:"Server URL must not end with slash.",recommended:!0,type:"style",given:"$.servers[*].url",then:{function:o.pattern,functionOptions:{notMatch:"/$"}}},"asyncapi-server-not-example-com":{description:"Server URL must not point at example.com.",recommended:!1,type:"style",given:"$.servers[*].url",then:{function:o.pattern,functionOptions:{notMatch:"example\\.com"}}},"asyncapi-server-security":{description:"Server have to reference a defined security schemes.",message:"{{error}}",severity:"error",type:"validation",recommended:!0,given:"$.servers.*.security.*",then:{function:y.default,functionOptions:{objectType:"Server"}}},"asyncapi-servers":{description:'AsyncAPI object must have non-empty "servers" object.',recommended:!0,type:"validation",given:"$",then:{field:"servers",function:o.schema,functionOptions:{schema:{type:"object",minProperties:1},allErrors:!0}}},"asyncapi-tag-description":{description:'Tag object must have "description".',recommended:!1,type:"style",given:"$.tags[*]",then:{field:"description",function:o.truthy}},"asyncapi-tags-alphabetical":{description:'AsyncAPI object must have alphabetical "tags".',recommended:!1,type:"style",given:"$",then:{field:"tags",function:o.alphabetical,functionOptions:{keyedBy:"name"}}},"asyncapi-tags-uniqueness":{description:"Each tag must have a unique name.",message:"{{error}}",severity:"error",recommended:!0,type:"validation",given:["$.tags","$.channels.*.[publish,subscribe].tags","$.components.channels.*.[publish,subscribe].tags","$.channels.*.[publish,subscribe].traits.*.tags","$.components.channels.*.[publish,subscribe].traits.*.tags","$.components.operationTraits.*.tags","$.channels.*.[publish,subscribe].message.tags","$.channels.*.[publish,subscribe].message.oneOf.*.tags","$.components.channels.*.[publish,subscribe].message.tags","$.components.channels.*.[publish,subscribe].message.oneOf.*.tags","$.components.messages.*.tags","$.channels.*.[publish,subscribe].message.traits.*.tags","$.channels.*.[publish,subscribe].message.oneOf.*.traits.*.tags","$.components.channels.*.[publish,subscribe].message.traits.*.tags","$.components.channels.*.[publish,subscribe].message.oneOf.*.traits.*.tags","$.components.messages.*.traits.*.tags","$.components.messageTraits.*.tags"],then:{function:m.uniquenessTags}},"asyncapi-tags":{description:'AsyncAPI object must have non-empty "tags" array.',recommended:!0,type:"style",given:"$",then:{field:"tags",function:o.truthy}},"asyncapi-unused-components-schema":{description:"Potentially unused components schema has been detected.",recommended:!0,type:"style",resolved:!1,given:"$.components.schemas",then:{function:o.unreferencedReusableObject,functionOptions:{reusableObjectsLocation:"#/components/schemas"}}},"asyncapi-unused-components-server":{description:"Potentially unused components server has been detected.",recommended:!0,type:"style",resolved:!1,given:"$.components.servers",then:{function:o.unreferencedReusableObject,functionOptions:{reusableObjectsLocation:"#/components/servers"}}}}}},9517:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniquenessTags=void 0;const n=(0,r(655).__importDefault)(r(9234));Object.defineProperty(t,"uniquenessTags",{enumerable:!0,get:function(){return n.default}})},9234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309);t.default=(0,n.createRulesetFunction)({input:{type:"array",items:{type:"object",properties:{name:{type:"string"}},required:["name"]}},options:null},(function(e,t,r){const n=e.map((e=>e.name)).reduce(((e,t,r,n)=>(n.indexOf(t)!==r&&e.push(r),e)),[]);if(0===n.length)return[];const i=[];for(const t of n){const n=e[t].name;i.push({message:`"tags" object contains duplicate tag name "${n}".`,path:[...r.path,t,"name"]})}return i}))},9358:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_REQUEST_OPTIONS=void 0;const n=(0,r(655).__importDefault)(r(3300));t.DEFAULT_REQUEST_OPTIONS={},t.default=async(e,r={})=>(0,n.default)(e,{...r,...t.DEFAULT_REQUEST_OPTIONS})},1403:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_REQUEST_OPTIONS=t.fetch=void 0;const n=r(655);(0,n.__exportStar)(r(3309),t);var i=r(9358);Object.defineProperty(t,"fetch",{enumerable:!0,get:function(){return(0,n.__importDefault)(i).default}}),Object.defineProperty(t,"DEFAULT_REQUEST_OPTIONS",{enumerable:!0,get:function(){return i.DEFAULT_REQUEST_OPTIONS}}),(0,n.__exportStar)(r(3336),t)},3336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readParsable=t.readFile=void 0;const n=r(655),i=r(5966),o=(0,n.__importDefault)(r(8599)),s=(0,n.__importStar)(r(1872)),a=r(6486),c=(0,n.__importDefault)(r(9358)),p=r(8842);async function u(e,t){if((0,i.isURL)(e)){let r,n=null;try{const i={};if(i.agent=t.agent,void 0!==t.timeout){const e=new o.default;n=setTimeout((()=>{e.abort()}),t.timeout),i.signal=e.signal}if(r=await(0,c.default)(e,i),!r.ok)throw new Error(r.statusText);return await r.text()}catch(e){throw(0,a.isError)(e)&&"AbortError"===e.name?new Error("Timeout"):e}finally{null!==n&&clearTimeout(n)}}else try{return await new Promise(((r,n)=>{s.readFile(e,t.encoding,((e,t)=>{null!==e?n(e):r(t)}))}))}catch(t){throw new Error(`Could not read ${e}: ${(0,p.printError)(t)}`)}}t.readFile=u,t.readParsable=async function(e,t){try{return await u(e,t)}catch(t){throw new Error(`Could not parse ${e}: ${(0,p.printError)(t)}`)}}},7699:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeSegmentFragment=void 0;const n=r(7953);t.decodeSegmentFragment=function(e){return"string"!=typeof e?String(e):(0,n.decodePointerFragment)(e)}},3309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);(0,n.__exportStar)(r(7699),t),(0,n.__exportStar)(r(8842),t),(0,n.__exportStar)(r(8067),t),(0,n.__exportStar)(r(3115),t),(0,n.__exportStar)(r(5514),t)},8842:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printError=void 0;const n=r(6486);t.printError=function(e){return(0,n.isError)(e)?e.message:"unknown error"}},8067:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printPath=t.PrintStyle=void 0;const n=r(7953);var i;!function(e){e.Dot="dot",e.Pointer="pointer",e.EscapedPointer="escapedPointer"}(i=t.PrintStyle||(t.PrintStyle={}));const o=e=>"number"==typeof e?e:(0,n.decodePointerFragment)(e);t.printPath=(e,t)=>{switch(t){case i.Dot:return(0,n.decodePointerFragment)((e=>e.reduce(((e,t,r)=>{var n;return`${e}${null!==(n=(e=>{return"number"==typeof e?`[${e}]`:0===e.length?"['']":/\s/.test(e)?`['${e}']`:"number"!=typeof(t=e)&&Number.isNaN(Number(t))?null:`[${e}]`;var t})(t))&&void 0!==n?n:`${0===r?"":"."}${t}`}`}),""))(e));case i.Pointer:return 0===e.length?"#":`#/${(0,n.decodePointerFragment)(e.join("/"))}`;case i.EscapedPointer:return(0,n.pathToPointer)(e.map(o));default:return String(e)}}},3115:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printValue=void 0;const n=r(6486),i=r(7953);t.printValue=function(e){return void 0===e?"undefined":(0,n.isObject)(e)?Array.isArray(e)?"Array[]":e instanceof RegExp?String(e.source):!(0,i.isPlainObject)(e)&&"constructor"in e&&"string"==typeof e.constructor.name?e.constructor.name:"Object{}":JSON.stringify(e)}},5514:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClosestJsonPath=t.safePointerToPath=t.getEndRef=t.traverseObjUntilRef=t.isAbsoluteRef=t.startsWithProtocol=void 0;const n=r(7953),i=r(5966),o=r(6486),s=/^[a-z]+:\/\//i;t.startsWithProtocol=e=>s.test(e),t.isAbsoluteRef=e=>(0,i.isAbsolute)(e)||(0,t.startsWithProtocol)(e),t.traverseObjUntilRef=(e,t)=>{let r=e;for(const e of t.slice()){if(!(0,o.isObject)(r))throw new TypeError("Segment is not a part of the object");if(!(e in r)){if((0,n.hasRef)(r))return r.$ref;throw new Error("Segment is not a part of the object")}r=r[e],t.shift()}return(0,n.isPlainObject)(r)&&(0,n.hasRef)(r)&&1===Object.keys(r).length?r.$ref:null},t.getEndRef=(e,t)=>{for(;t in e;)t=e[t];return t},t.safePointerToPath=e=>{const t=(0,n.extractPointerFromRef)(e);return null!==t?(0,n.pointerToPath)(t):[]},t.getClosestJsonPath=(e,t)=>{const r=[];if(!(0,o.isObject)(e))return r;let n=e;for(const e of t){if(!(0,o.isObject)(n)||!(e in n))break;r.push(e),n=n[e]}return r}},3694:(e,t)=>{"use strict";var r;t.__esModule=!0,(r=t.DiagnosticSeverity||(t.DiagnosticSeverity={}))[r.Error=0]="Error",r[r.Warning=1]="Warning",r[r.Information=2]="Information",r[r.Hint=3]="Hint"},8050:(e,t)=>{"use strict";var r;t.__esModule=!0,(r=t.HttpParamStyles||(t.HttpParamStyles={})).Simple="simple",r.Matrix="matrix",r.Label="label",r.Form="form",r.CommaDelimited="commaDelimited",r.SpaceDelimited="spaceDelimited",r.PipeDelimited="pipeDelimited",r.DeepObject="deepObject"},4418:(e,t,r)=>{"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}t.__esModule=!0,n(r(8050)),n(r(6165)),n(r(3694)),n(r(5085))},6165:(e,t)=>{"use strict";t.__esModule=!0},5085:(e,t)=>{"use strict";var r,n;t.__esModule=!0,(n=t.NodeType||(t.NodeType={})).Article="article",n.HttpService="http_service",n.HttpServer="http_server",n.HttpOperation="http_operation",n.Model="model",n.Generic="generic",n.Unknown="unknown",n.TableOfContents="table_of_contents",n.SpectralRuleset="spectral_ruleset",(r=t.NodeFormat||(t.NodeFormat={})).Json="json",r.Markdown="markdown",r.Yaml="yaml"},4369:(e,t)=>{"use strict";function r(e){return null==e}Object.defineProperty(t,"__esModule",{value:!0}),t.isNothing=r,t.isObject=function(e){return"object"==typeof e&&null!==e},t.toArray=function(e){return Array.isArray(e)?e:r(e)?[]:[e]},t.extend=function(e,t){var r,n,i,o;if(t)for(r=0,n=(o=Object.keys(t)).length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4369),i=r(4057),o=r(8707),s=r(1225),a=Object.prototype.toString,c=Object.prototype.hasOwnProperty,p={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},u=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function f(e){var t,r,o;if(t=e.toString(16).toUpperCase(),e<=255)r="x",o=2;else if(e<=65535)r="u",o=4;else{if(!(e<=4294967295))throw new i("code point within a string may not be greater than 0xFFFFFFFF");r="U",o=8}return"\\"+r+n.repeat("0",o-t.length)+t}function l(e){this.schema=e.schema||o,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=n.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,i,o,s,a,p;if(null===t)return{};for(r={},i=0,o=(n=Object.keys(t)).length;i-1&&r>=e.flowLevel;switch(function(e,t,r,n,i){var o,s,a,c,p=!1,u=!1,f=-1!==n,l=-1,d=y(c=e.charCodeAt(0))&&65279!==c&&!m(c)&&45!==c&&63!==c&&58!==c&&44!==c&&91!==c&&93!==c&&123!==c&&125!==c&&35!==c&&38!==c&&42!==c&&33!==c&&124!==c&&61!==c&&62!==c&&39!==c&&34!==c&&37!==c&&64!==c&&96!==c&&!m(e.charCodeAt(e.length-1));if(t)for(o=0;o0?e.charCodeAt(o-1):null,d=d&&g(s,a)}else{for(o=0;on&&" "!==e[l+1],l=o);else if(!y(s))return 5;a=o>0?e.charCodeAt(o-1):null,d=d&&g(s,a)}u=u||f&&o-l-1>n&&" "!==e[l+1]}return p||u?r>9&&v(e)?5:u?4:3:d&&!i(e)?1:2}(t,a,e.indent,s,(function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r"+j(t,e.indent)+$(d(function(e,t){for(var r,n,i,o=/(\n+)([^\n]*)/g,s=(i=-1!==(i=e.indexOf("\n"))?i:e.length,o.lastIndex=i,_(e.slice(0,i),t)),a="\n"===e[0]||" "===e[0];n=o.exec(e);){var c=n[1],p=n[2];r=" "===p[0],s+=c+(a||r||""===p?"":"\n")+_(p,t),a=r}return s}(t,s),o));case 5:return'"'+function(e){for(var t,r,n,i="",o=0;o=55296&&t<=56319&&(r=e.charCodeAt(o+1))>=56320&&r<=57343?(i+=f(1024*(t-55296)+r-56320+65536),o++):i+=!(n=p[t])&&y(t)?e[o]:n||f(t);return i}(t)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function j(e,t){var r=v(e)?String(t):"",n="\n"===e[e.length-1];return r+(!n||"\n"!==e[e.length-2]&&"\n"!==e?n?"":"-":"+")+"\n"}function $(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function _(e,t){if(""===e||" "===e[0])return e;for(var r,n,i=/ [^ ]/g,o=0,s=0,a=0,c="";r=i.exec(e);)(a=r.index)-o>t&&(n=s>o?s:a,c+="\n"+e.slice(o,n),o=n+1),s=a;return c+="\n",e.length-o>t&&s>o?c+=e.slice(o,s)+"\n"+e.slice(s+1):c+=e.slice(o),c.slice(1)}function x(e,t,r){var n,o,s,p,u,f;for(s=0,p=(o=r?e.explicitTypes:e.implicitTypes).length;s tag resolver accepts not "'+f+'" style');n=u.represent[f](t,f)}e.dump=n}return!0}return!1}function P(e,t,r,n,o,s){e.tag=null,e.dump=r,x(e,r,!1)||x(e,r,!0);var c=a.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var p,u,f="[object Object]"===c||"[object Array]"===c;if(f&&(u=-1!==(p=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||u||2!==e.indent&&t>0)&&(o=!1),u&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(f&&u&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),"[object Object]"===c)n&&0!==Object.keys(e.dump).length?(function(e,t,r,n){var o,s,a,c,p,u,f="",l=e.tag,d=Object.keys(r);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new i("sortKeys must be a boolean or a function");for(o=0,s=d.length;o1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,p&&(u+=h(e,t)),P(e,t+1,c,!0,p)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",f+=u+=e.dump));e.tag=l,e.dump=f||"{}"}(e,t,e.dump,o),u&&(e.dump="&ref_"+p+e.dump)):(function(e,t,r){var n,i,o,s,a,c="",p=e.tag,u=Object.keys(r);for(n=0,i=u.length;n1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),P(e,t,s,!1,!1)&&(c+=a+=e.dump));e.tag=p,e.dump="{"+c+"}"}(e,t,e.dump),u&&(e.dump="&ref_"+p+" "+e.dump));else if("[object Array]"===c){var l=e.noArrayIndent&&t>0?t-1:t;n&&0!==e.dump.length?(function(e,t,r,n){var i,o,s="",a=e.tag;for(i=0,o=r.length;i "+e.dump)}return!0}function w(e,t){var r,n,i=[],o=[];for(S(e,i,o),r=0,n=o.length;r{"use strict";class t{constructor(e,t=null,r=!1){this.name="YAMLException",this.reason=e,this.mark=t,this.message=this.toString(!1),this.isWarning=r}static isInstance(e){if(null!=e&&e.getClassIdentifier&&"function"==typeof e.getClassIdentifier)for(let r of e.getClassIdentifier())if(r==t.CLASS_IDENTIFIER)return!0;return!1}getClassIdentifier(){return[].concat(t.CLASS_IDENTIFIER)}toString(e=!1){var t;return t="JS-YAML: "+(this.reason||"(unknown reason)"),!e&&this.mark&&(t+=" "+this.mark.toString()),t}}t.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",e.exports=t},9581:(e,t,r)=>{"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0});var i=r(5519);t.load=i.load,t.loadAll=i.loadAll,t.safeLoad=i.safeLoad,t.safeLoadAll=i.safeLoadAll;var o=r(4991);t.dump=o.dump,t.safeDump=o.safeDump,t.YAMLException=r(4057),n(r(3382)),n(r(6133))},5519:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3382),i=r(4369),o=r(4057),s=r(3887),a=r(1225),c=r(8707);var p=Object.prototype.hasOwnProperty,u=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=/[\x85\u2028\u2029]/,l=/[,\[\]\{\}]/,d=/^(?:!|!!|![a-z\-]+!)$/i,h=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function m(e){return 10===e||13===e}function y(e){return 9===e||32===e}function g(e){return 9===e||32===e||10===e||13===e}function v(e){return 44===e||91===e||93===e||123===e||125===e}function b(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function j(e){return 120===e?2:117===e?4:85===e?8:0}function $(e){return 48<=e&&e<=57?e-48:-1}function _(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var x,P=new Array(256),w=new Array(256),S=new Array(256),O=new Array(256),E=0;E<256;E++)O[E]=w[E]=48===(x=E)?"\0":97===x?"":98===x?"\b":116===x||9===x?"\t":110===x?"\n":118===x?"\v":102===x?"\f":114===x?"\r":101===x?"":32===x?" ":34===x?'"':47===x?"/":92===x?"\\":78===x?"…":95===x?" ":76===x?"\u2028":80===x?"\u2029":"",P[E]=w[E]?1:0,S[E]=1,P[E]||(O[E]="\\"+String.fromCharCode(E));class A{constructor(e,t){this.errorMap={},this.errors=[],this.lines=[],this.input=e,this.filename=t.filename||null,this.schema=t.schema||c,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.allowAnyEscape=t.allowAnyEscape||!1,this.ignoreDuplicateKeys=t.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}}function I(e,t,r=!1){return new o(t,new s(e.filename,e.input,e.position,e.line,e.position-e.lineStart),r)}function T(e,t,r,n=!1,i=!1){var a=function(e,t){for(var r,n=0;nt);n++)r=e.lines[n];return r||{start:0,line:0}}(e,t);if(a){var c=r+t;if(!e.errorMap[c]){var p=new s(e.filename,e.input,t,a.line,t-a.start);i&&(p.toLineEnd=!0);var u=new o(r,p,n);e.errors.push(u)}}}function k(e,t){var r=I(e,t),n=r.message+r.mark.position;if(!e.errorMap[n]){e.errors.push(r),e.errorMap[n]=1;for(var i=e.position;;){if(e.position>=e.input.length-1)return;var o=e.input.charAt(e.position);if("\n"==o)return e.position--,void(e.position==i&&(e.position+=1));if("\r"==o)return e.position--,void(e.position==i&&(e.position+=1));e.position++}}}function R(e,t){var r=I(e,t);e.onWarning&&e.onWarning.call(null,r)}var D={YAML:function(e,t,r){var n,i,o;null!==e.version&&k(e,"duplication of %YAML directive"),1!==r.length&&k(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&k(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),o=parseInt(n[2],10),1!==i&&k(e,"found incompatible YAML document (version 1.2 is required)"),e.version=r[0],e.checkLineBreaks=o<2,2!==o&&k(e,"found incompatible YAML document (version 1.2 is required)")},TAG:function(e,t,r){var n,i;2!==r.length&&k(e,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],d.test(n)||k(e,"ill-formed tag handle (first argument) of the TAG directive"),p.call(e.tagMap,n)&&k(e,'there is a previously declared suffix for "'+n+'" tag handle'),h.test(i)||k(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[n]=i}};function C(e,t,r,n){var i,o,s,a,c=e.result;if(-1==c.startPosition&&(c.startPosition=t),t<=r){if(a=e.input.slice(t,r),n)for(i=0,o=a.length;i{t.key&&t.key.value===(s.key&&s.key.value)&&(T(e,s.key.startPosition,"duplicate key"),T(e,t.key.startPosition,"duplicate key"))})),t.mappings.push(s),t.endPosition=o?o.endPosition:i.endPosition+1,t}}function N(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):k(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function M(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);0!==i;){for(;y(i);)9===i&&e.errors.push(I(e,"Using tabs can lead to unpredictable results",!0)),i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!m(i))break;for(N(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent1&&(t.value+=i.repeat("\n",r-1))}function L(e,t){var r,i,o=e.tag,s=e.anchor,a=n.newItems(),c=!1;for(null!==e.anchor&&(a.anchorId=e.anchor,e.anchorMap[e.anchor]=a),a.startPosition=e.position,i=e.input.charCodeAt(e.position);0!==i&&45===i&&g(e.input.charCodeAt(e.position+1));)if(c=!0,e.position++,M(e,!0,-1)&&e.lineIndent<=t)a.items.push(null),i=e.input.charCodeAt(e.position);else if(r=e.line,V(e,t,3,!1,!0),e.result&&(e.result.parent=a,a.items.push(e.result)),M(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==i)k(e,"bad indentation of a sequence entry");else if(e.lineIndentt?E=1:e.lineIndent===t?E=0:e.lineIndentt?E=1:e.lineIndent===t?E=0:e.lineIndent0;)if(m(a=e.input.charCodeAt(--e.position))){e.position++;break}}}else 63===a?(d&&(F(e,u,0,f,null),f=l=null),h=!0,d=!0,o=!0):d?(d=!1,o=!0):k(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,a=i;if((e.line===s||e.lineIndent>t)&&(V(e,t,4,!0,o)&&(d?f=e.result:l=e.result),d||(F(e,u,0,f,l),f=l=null),M(e,!0,-1),a=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==a)k(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===s?k(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):p?k(e,"repeat of an indentation width identifier"):(u=t+s-1,p=!0)}if(y(a)){do{a=e.input.charCodeAt(++e.position)}while(y(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!m(a)&&0!==a)}for(;0!==a;){for(N(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!p||e.lineIndentu&&(u=e.lineIndent),m(a))f++;else{if(e.lineIndent0){for(o=a,s=0;o>0;o--)(a=b(c=e.input.charCodeAt(++e.position)))>=0?s=(s<<4)+a:k(e,"expected hexadecimal character");p.value+=_(s),e.position++}else k(e,"unknown escape sequence");r=i=e.position}else m(c)?(C(e,r,i,!0),U(0,p,M(e,!1,t)),r=i=e.position):e.position===e.lineStart&&q(e)?k(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}k(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?I=!0:function(e){var t,r,i;if(e.length,e.input,42!==(i=e.input.charCodeAt(e.position)))return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!g(i)&&!v(i);)i=e.input.charCodeAt(++e.position);return e.position<=t&&(k(e,"name of an alias node must contain at least one character"),e.position=t+1),r=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(r)||(k(e,'unidentified alias "'+r+'"'),e.position<=t&&(e.position=t+1)),e.result=n.newAnchorRef(r,t,e.position,e.anchorMap[r]),M(e,!0,-1),!0}(e)?(I=!0,null===e.tag&&null===e.anchor||k(e,"alias node should not have any properties")):function(e,t,r){var i,o,s,a,c,p,u,f,l=e.kind,d=e.result,h=n.newScalar();if(h.plainScalar=!0,e.result=h,g(f=e.input.charCodeAt(e.position))||v(f)||35===f||38===f||42===f||33===f||124===f||62===f||39===f||34===f||37===f||64===f||96===f)return!1;if((63===f||45===f)&&(g(i=e.input.charCodeAt(e.position+1))||r&&v(i)))return!1;for(e.kind="scalar",o=s=e.position,a=!1;0!==f;){if(58===f){if(g(i=e.input.charCodeAt(e.position+1))||r&&v(i))break}else if(35===f){if(g(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&q(e)||r&&v(f))break;if(m(f)){if(c=e.line,p=e.lineStart,u=e.lineIndent,M(e,!1,-1),e.lineIndent>=t){a=!0,f=e.input.charCodeAt(e.position);continue}e.position=s,e.line=c,e.lineStart=p,e.lineIndent=u;break}}if(a&&(C(e,o,s,!1),U(0,h,e.line-c),o=s=e.position,a=!1),y(f)||(s=e.position+1),f=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return C(e,o,s,!1),-1!=e.result.startPosition?(h.rawValue=e.input.substring(h.startPosition,h.endPosition),!0):(e.kind=l,e.result=d,!1)}(e,h,1===r)&&(I=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result,e.result.anchorId=e.anchor)):0===E&&(I=u&&L(e,x))),null!==e.tag&&"!"!==e.tag)if("!include"==e.tag)e.result||(e.result=n.newScalar(),e.result.startPosition=e.position,e.result.endPosition=e.position,k(e,"!include without value")),e.result.kind=n.Kind.INCLUDE_REF;else if("?"===e.tag)for(f=0,l=e.implicitTypes.length;f tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result)?(e.result=d.construct(e.result),null!==e.anchor&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result)):k(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):T(e,R,"unknown tag <"+e.tag+">",!1,!0);return null!==e.tag||null!==e.anchor||I}function H(e){var t,r,n,i,o=e.position,s=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(i=e.input.charCodeAt(e.position))&&(M(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(s=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!g(i);)i=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&k(e,"directive name must not be less than one character in length");0!==i;){for(;y(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!m(i));break}if(m(i))break;for(t=e.position;0!==i&&!g(i);)i=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==i&&N(e),p.call(D,r)?D[r](e,r,n):(R(e,'unknown document directive "'+r+'"'),e.position++)}M(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,M(e,!0,-1)):s&&k(e,"directives end mark is expected"),V(e,e.lineIndent-1,4,!1,!0),M(e,!0,-1),e.checkLineBreaks&&f.test(e.input.slice(o,e.position))&&R(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&q(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,M(e,!0,-1)):e.position0&&(o[s-1].endPosition=r);for(let e of o)e.errors=n.errors,e.startPosition>e.endPosition&&(e.startPosition=e.endPosition);return o}function G(e,t,r={}){var n,i,o=K(e,r);for(n=0,i=o.length;n{"use strict";const n=r(4369);e.exports=class{constructor(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}getSnippet(e=0,t=75){var r,i,o,s,a;if(!this.buffer)return null;for(e=e||4,t=t||75,r="",i=this.position;i>0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>t/2-1){r=" ... ",i+=5;break}for(o="",s=this.position;st/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),n.repeat(" ",e)+r+a+o+"\n"+n.repeat(" ",e+this.position-i+r.length)+"^"}toString(e=!0){var t,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(r+=":\n"+t),r}}},6133:(e,t)=>{"use strict";function r(e){const t=function(e){return 0===e.lastIndexOf("0o",0)?parseInt(e.substring(2),8):parseInt(e)}(e);if(Number.isNaN(t))throw`Invalid integer "${e}"`;return t}var n;Object.defineProperty(t,"__esModule",{value:!0}),t.parseYamlBoolean=function(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`},t.parseYamlInteger=r,t.parseYamlBigInteger=function(e){const t=r(e);return t>Number.MAX_SAFE_INTEGER&&-1===e.lastIndexOf("0o",0)?BigInt(e):t},t.parseYamlFloat=function(e){if([".nan",".NaN",".NAN"].lastIndexOf(e)>=0)return NaN;const t=/^([-+])?(?:\.inf|\.Inf|\.INF)$/.exec(e);if(t)return"-"===t[1]?-1/0:1/0;const r=parseFloat(e);if(!isNaN(r))return r;throw`Invalid float "${e}"`},function(e){e[e.null=0]="null",e[e.bool=1]="bool",e[e.int=2]="int",e[e.float=3]="float",e[e.string=4]="string"}(n=t.ScalarType||(t.ScalarType={})),t.determineScalarType=function(e){if(void 0===e)return n.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return n.string;const t=e.value;return["null","Null","NULL","~",""].indexOf(t)>=0||null==t?n.null:["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0?n.bool:/^[-+]?[0-9]+$/.test(t)||/^0o[0-7]+$/.test(t)||/^0x[0-9a-fA-F]+$/.test(t)?n.int:/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/.test(t)||/^[-+]?(\.inf|\.Inf|\.INF)$/.test(t)||[".nan",".NaN",".NAN"].indexOf(t)>=0?n.float:n.string}},3463:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4369),i=r(4057),o=r(7947);function s(e,t,r){var n=[];return e.include.forEach((function(e){r=s(e,t,r)})),e[t].forEach((function(e){r.forEach((function(t,r){t.tag===e.tag&&n.push(r)})),r.push(e)})),r.filter((function(e,t){return-1===n.indexOf(t)}))}class a{constructor(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach((function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=s(this,"implicit",[]),this.compiledExplicit=s(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,r={};function n(e){r[e.tag]=e}for(e=0,t=arguments.length;e{"use strict";const n=r(3463);e.exports=new n.Schema({include:[r(6315)]})},8707:(e,t,r)=>{"use strict";const n=r(3463);var i=new n.Schema({include:[r(1225)],explicit:[r(389),r(3592)]});n.Schema.DEFAULT=i,e.exports=i},1225:(e,t,r)=>{"use strict";var n=new(r(3463).Schema)({include:[r(8644)],implicit:[r(5973),r(5665)],explicit:[r(7841),r(8364),r(7064),r(2978)]});e.exports=n},9215:(e,t,r)=>{"use strict";const n=r(3463);e.exports=new n.Schema({explicit:[r(8930),r(7017),r(3865)]})},6315:(e,t,r)=>{"use strict";const n=r(3463);e.exports=new n.Schema({include:[r(9215)],implicit:[r(82),r(7586),r(583),r(6109)]})},7947:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4057);var i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];t.Type=class{constructor(e,t){var r,s;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===i.indexOf(t))throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(r=t.styleAliases||null,s={},null!==r&&Object.keys(r).forEach((function(e){r[e].forEach((function(t){s[String(t)]=e}))})),s),-1===o.indexOf(this.kind))throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}},7841:(e,t,r)=>{"use strict";var n=r(8764).lW;const i=r(7947);var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new i.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,i=e.length,s=o;for(r=0;r64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,i=e.replace(/[\r\n=]/g,""),s=i.length,a=o,c=0,p=[];for(t=0;t>16&255),p.push(c>>8&255),p.push(255&c)),c=c<<6|a.indexOf(i.charAt(t));return 0==(r=s%4*6)?(p.push(c>>16&255),p.push(c>>8&255),p.push(255&c)):18===r?(p.push(c>>10&255),p.push(c>>2&255)):12===r&&p.push(c>>4&255),n?new n(p):p},predicate:function(e){return n&&n.isBuffer(e)},represent:function(e){var t,r,n="",i=0,s=e.length,a=o;for(t=0;t>18&63],n+=a[i>>12&63],n+=a[i>>6&63],n+=a[63&i]),i=(i<<8)+e[t];return 0==(r=s%3)?(n+=a[i>>18&63],n+=a[i>>12&63],n+=a[i>>6&63],n+=a[63&i]):2===r?(n+=a[i>>10&63],n+=a[i>>4&63],n+=a[i<<2&63],n+=a[64]):1===r&&(n+=a[i>>2&63],n+=a[i<<4&63],n+=a[64],n+=a[64]),n}})},7586:(e,t,r)=>{"use strict";const n=r(7947);e.exports=new n.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},6109:(e,t,r)=>{"use strict";const n=r(4369),i=r(7947);var o=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");e.exports=new i.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!!o.test(e)},construct:function(e){var t,r,n,i;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,i=[],0<="+-".indexOf(t[0])&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:0<=t.indexOf(":")?(t.split(":").forEach((function(e){i.unshift(parseFloat(e,10))})),t=0,n=1,i.forEach((function(e){t+=e*n,n*=60})),r*t):r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(0!=e%1||n.isNegativeZero(e))},represent:function(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(e))return"-0.0";return e.toString(10)},defaultStyle:"lowercase"})},583:(e,t,r)=>{"use strict";const n=r(4369),i=r(7947);function o(e){return 48<=e&&e<=55}function s(e){return 48<=e&&e<=57}e.exports=new i.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=e.length,i=0,a=!1;if(!n)return!1;if("-"!==(t=e[i])&&"+"!==t||(t=e[++i]),"0"===t){if(i+1===n)return!0;if("b"===(t=e[++i])){for(i++;i{"use strict";const n=r(7947);e.exports=new n.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";if("/"===t[0]){if(r&&(n=r[1]),n.length>3)return!1;if("/"!==t[t.length-n.length-1])return!1;t=t.slice(1,t.length-n.length-1)}try{return new RegExp(t,n),!0}catch(e){return!1}},construct:function(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return"/"===t[0]&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},389:(e,t,r)=>{"use strict";const n=r(7947);e.exports=new n.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}})},3865:(e,t,r)=>{"use strict";const n=r(7947);e.exports=new n.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},5665:(e,t,r)=>{"use strict";const n=r(7947);e.exports=new n.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},82:(e,t,r)=>{"use strict";const n=r(7947);e.exports=new n.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},8364:(e,t,r)=>{"use strict";const n=r(7947);var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=new n.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,s,a,c=[],p=e;for(t=0,r=p.length;t{"use strict";const n=r(7947),i=r(3382);var o=Object.prototype.toString;e.exports=new n.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;if(e.kind!=i.Kind.SEQ)return!1;var t,r,n,s=e.items;for(t=0,r=s.length;t{"use strict";const n=r(7947);e.exports=new n.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},2978:(e,t,r)=>{"use strict";const n=r(7947),i=r(3382);Object.prototype.hasOwnProperty,e.exports=new n.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){return null===e||e.kind==i.Kind.MAP},construct:function(e){return null!==e?e:{}}})},8930:(e,t,r)=>{"use strict";const n=r(7947);e.exports=new n.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},5973:(e,t,r)=>{"use strict";const n=r(7947);var i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");e.exports=new n.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&null!==i.exec(e)},construct:function(e){var t,r,n,o,s,a,c,p,u=0,f=null;if(null===(t=i.exec(e)))throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(r,n,o));if(s=+t[4],a=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(f=-f)),p=new Date(Date.UTC(r,n,o,s,a,c,u)),f&&p.setTime(p.getTime()-f),p},instanceOf:Date,represent:function(e){return e.toISOString()}})},3382:(e,t)=>{"use strict";var r;function n(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:r.SEQ,parent:null}}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.SCALAR=0]="SCALAR",e[e.MAPPING=1]="MAPPING",e[e.MAP=2]="MAP",e[e.SEQ=3]="SEQ",e[e.ANCHOR_REF=4]="ANCHOR_REF",e[e.INCLUDE_REF=5]="INCLUDE_REF"}(r=t.Kind||(t.Kind={})),t.newMapping=function(e,t){var n=t?t.endPosition:e.endPosition+1;return{key:e,value:t,startPosition:e.startPosition,endPosition:n,kind:r.MAPPING,parent:null,errors:[]}},t.newAnchorRef=function(e,t,n,i){return{errors:[],referencesAnchor:e,value:i,startPosition:t,endPosition:n,kind:r.ANCHOR_REF,parent:null}},t.newScalar=function(e=""){const t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:r.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return"string"!=typeof e&&(t.valueObject=e),t},t.newItems=n,t.newSeq=function(){return n()},t.newMap=function(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:r.MAP,parent:null}}},1728:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(517),i=r(4042);t.buildJsonPath=function(e){const t=[];let r=e;for(;e;){switch(e.kind){case n.Kind.SCALAR:t.unshift(e.value);break;case n.Kind.MAPPING:r!==e.key&&(t.length>0&&i.isObject(e.value)&&e.value.value===t[0]?t[0]=e.key.value:t.unshift(e.key.value));break;case n.Kind.SEQ:if(r){const i=e.items.indexOf(r);r.kind===n.Kind.SCALAR?t[0]=i:-1!==i&&t.unshift(i)}}r=e,e=e.parent}return t}},1919:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(517),i=r(4042);t.dereferenceAnchor=(e,r)=>{if(!i.isObject(e))return e;if(e.kind===n.Kind.ANCHOR_REF&&e.referencesAnchor===r)return null;switch(e.kind){case n.Kind.MAP:return Object.assign({},e,{mappings:e.mappings.map((e=>t.dereferenceAnchor(e,r)))});case n.Kind.SEQ:return Object.assign({},e,{items:e.items.map((e=>t.dereferenceAnchor(e,r)))});case n.Kind.MAPPING:return Object.assign({},e,{value:t.dereferenceAnchor(e.value,r)});case n.Kind.SCALAR:return e;case n.Kind.ANCHOR_REF:return i.isObject(e.value)&&o(e)?null:e;default:return e}};const o=e=>{const{referencesAnchor:t}=e;let r=e;for(;r=r.parent;)if("anchorId"in r&&r.anchorId===t)return!0;return!1}},9169:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1728),i=r(517),o=r(4042);function s(e,t,r){const n=r[t-1]+1,o=r[t];switch(e.kind){case i.Kind.MAPPING:return e.key;case i.Kind.MAP:if(0!==e.mappings.length)for(const i of e.mappings)if(i.startPosition>n&&i.startPosition<=o)return s(i,t,r);break;case i.Kind.SEQ:if(0!==e.items.length)for(const i of e.items)if(null!==i&&i.startPosition>n&&i.startPosition<=o)return s(i,t,r)}return e}function a(e,t,r,n){for(const s of function*(e){switch(e.kind){case i.Kind.MAP:if(0!==e.mappings.length)for(const t of e.mappings)o.isObject(t)&&(yield t);break;case i.Kind.MAPPING:o.isObject(e.key)&&(yield e.key),o.isObject(e.value)&&(yield e.value);break;case i.Kind.SEQ:if(0!==e.items.length)for(const t of e.items)o.isObject(t)&&(yield t);break;case i.Kind.SCALAR:yield e}}(e))if(s.startPosition<=t&&t<=s.endPosition)return s.kind===i.Kind.SCALAR?s:a(s,t,r,n);if(n[r-1]===n[r]-1)return e;if(e.startPosition{if(r>=t.length||i>=t[r])return;const s=0===r?0:t[r-1]+1,c=a(e,Math.min(t[r]-1,s+i),r,t);if(!o.isObject(c))return;const p=n.buildJsonPath(c);return 0!==p.length?p:void 0}},6465:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3661),i=r(517),o=r(4042);function s(e,t){if(e.parent&&e.parent.kind===i.Kind.MAPPING){if(null===e.parent.value)return e.parent.endPosition;if(e.kind!==i.Kind.SCALAR)return e.parent.key.endPosition+1}return null===e.parent&&t-e.startPosition==0?0:e.startPosition}function a(e){switch(e.kind){case i.Kind.SEQ:const{items:t}=e;if(0!==t.length){const e=t[t.length-1];if(null!==e)return a(e)}break;case i.Kind.MAPPING:if(null!==e.value)return a(e.value);break;case i.Kind.MAP:if(null!==e.value&&0!==e.mappings.length)return a(e.mappings[e.mappings.length-1]);break;case i.Kind.SCALAR:if(null!==e.parent&&e.parent.kind===i.Kind.MAPPING&&null===e.parent.value)return e.parent.endPosition}return e.endPosition}function c(e,t){return t?e.reduce(((e,t)=>(o.isObject(t)&&("<<"===t.key.value?e.push(...p(t.value)):e.push(t)),e)),[]):e}function p(e){if(!o.isObject(e))return[];switch(e.kind){case i.Kind.SEQ:return e.items.reduceRight(((e,t)=>(e.push(...p(t)),e)),[]);case i.Kind.MAP:return e.mappings;case i.Kind.ANCHOR_REF:return p(e.value);default:return[]}}t.getLocationForJsonPath=({ast:e,lineMap:t,metadata:r},n,p=!1)=>{const f=function(e,t,{closest:r,mergeKeys:n}){e:for(const s of t){if(!o.isObject(e))return r?e:void 0;switch(e.kind){case i.Kind.MAP:const t=c(e.mappings,n);for(let r=t.length-1;r>=0;r--){const n=t[r];if(n.key.value===s){e=null===n.value?n.key:n.value;continue e}}return r?e:void 0;case i.Kind.SEQ:for(let t=0;t0?t[0]:0),end:a(f)})};const u=(e,{start:t=0,end:r=0})=>{const i=n.lineForPosition(t,e),o=n.lineForPosition(r,e);return{range:{start:{line:i,character:t-(0===i?0:e[i-1])},end:{line:o,character:r-(0===o?0:e[o-1])}}}}},8748:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);n.__exportStar(r(1728),t),n.__exportStar(r(1919),t),n.__exportStar(r(9169),t),n.__exportStar(r(6465),t),n.__exportStar(r(3661),t),n.__exportStar(r(4467),t),n.__exportStar(r(4273),t),n.__exportStar(r(3451),t),n.__exportStar(r(517),t),n.__exportStar(r(7051),t)},3661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lineForPosition=(e,r,n=0,i)=>{if(0===e||0===r.length||e=r[o]&&!r[o+1])return o+1;const s=r[Math.min(o+1,r.length)];return e===r[o]-1?o:e>=r[o]&&e<=s?e===s?o+2:o+1:e>r[o]?t.lineForPosition(e,r,o+1,i):t.lineForPosition(e,r,n,o-1)}},4467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9581),i=r(4273);t.parse=e=>i.walkAST(n.load(e),void 0,[],[])},4273:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1762),i=r(5839),o=r(9581),s=r(1728),a=r(1919),c=r(3661),p=r(517),u=r(4042);function f(e){switch(o.determineScalarType(e)){case p.ScalarType.null:return null;case p.ScalarType.string:return String(e.value);case p.ScalarType.bool:return o.parseYamlBoolean(e.value);case p.ScalarType.int:return o.parseYamlBigInteger(e.value);case p.ScalarType.float:return o.parseYamlFloat(e.value)}}t.parseWithPointers=(e,r)=>{const n=l(e),i=o.load(e,Object.assign({},r,{ignoreDuplicateKeys:!0})),s={ast:i,lineMap:n,data:void 0,diagnostics:[],metadata:r};return i?(s.data=t.walkAST(i,r,n,s.diagnostics),i.errors&&s.diagnostics.push(...h(i.errors,n)),s.diagnostics.length>0&&s.diagnostics.sort(((e,t)=>e.range.start.line-t.range.start.line)),Array.isArray(s.ast.errors)&&(s.ast.errors.length=0),s):s},t.walkAST=(e,r,n,i)=>{if(e)switch(e.kind){case p.Kind.MAP:{const o=void 0!==r&&!0===r.preserveKeyOrder,s=y(o),a=[],c=void 0!==r&&!0===r.mergeKeys,p=void 0!==r&&!1===r.json,u=void 0!==r&&!1===r.ignoreDuplicateKeys;for(const l of e.mappings){if(!b(l,n,i,p))continue;const e=String(f(l.key));if((p||u)&&(!c||"<<"!==e))if(a.includes(e)){if(p)throw new Error("Duplicate YAML mapping key encountered");u&&i.push($(l.key,n,"duplicate key"))}else a.push(e);if(c&&"<<"===e){const e=m(t.walkAST(l.value,r,n,i),o);Object.assign(s,e)}else s[e]=t.walkAST(l.value,r,n,i),o&&v(s,e)}return s}case p.Kind.SEQ:return e.items.map((e=>t.walkAST(e,r,n,i)));case p.Kind.SCALAR:{const t=void 0!==r&&!0===r.bigInt,n=f(e);return t||"bigint"!=typeof n?n:Number(n)}case p.Kind.ANCHOR_REF:return u.isObject(e.value)&&(e.value=a.dereferenceAnchor(e.value,e.referencesAnchor)),t.walkAST(e.value,r,n,i);default:return null}return e};const l=e=>{const t=[];let r=0;for(;r{const r=[];let n=-1,o=0;for(const s of e){const e={code:s.name,message:s.reason,severity:s.isWarning?i.DiagnosticSeverity.Warning:i.DiagnosticSeverity.Error,range:{start:{line:s.mark.line,character:s.mark.column},end:{line:s.mark.line,character:s.mark.toLineEnd?d(t,s.mark.line):s.mark.column}}};"missed comma between flow collection entries"===s.reason?n=-1===n?o:n:-1!==n&&(r[n].range.end=e.range.end,r[n].message="invalid mixed usage of block and flow styles",r.length=n+1,o=r.length,n=-1),r.push(e),o++}return r},m=(e,t)=>Array.isArray(e)?e.reduceRight(t?(e,t)=>{const r=Object.keys(t);Object.assign(e,t);for(let t=r.length-1;t>=0;t--)i=e,o=r[t],g(i,o),n.getOrder(i).unshift(o);var i,o;return e}:(e,t)=>Object.assign(e,t),y(t)):"object"!=typeof e||null===e?null:Object(e);function y(e){return e?n.default({}):{}}function g(e,t){if(!(t in e))return;const r=n.getOrder(e),i=r.indexOf(t);-1!==i&&r.splice(i,1)}function v(e,t){g(e,t),n.getOrder(e).push(t)}function b(e,t,r,n){if(e.key.kind!==p.Kind.SCALAR)return n||r.push(j(e.key,t,"mapping key must be a string scalar",n)),!1;if(!n){const i=typeof f(e.key);"string"!==i&&r.push(j(e.key,t,`mapping key must be a string scalar rather than ${null===e.key.valueObject?"null":i}`,n))}return!0}function j(e,t,r,n){const o=$(e,t,r);return o.code="YAMLIncompatibleValue",o.severity=n?i.DiagnosticSeverity.Hint:i.DiagnosticSeverity.Warning,o}function $(e,t,r){const n=c.lineForPosition(e.startPosition,t),o=c.lineForPosition(e.endPosition,t);return{code:"YAMLException",message:r,severity:i.DiagnosticSeverity.Error,path:s.buildJsonPath(e),range:{start:{line:n,character:0===n?e.startPosition:e.startPosition-t[n-1]},end:{line:o,character:0===o?e.endPosition:e.endPosition-t[o-1]}}}}},3451:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9581);t.safeStringify=(e,t)=>"string"==typeof e?e:n.safeDump(e,t)},7051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1762);t.KEYS=Symbol.for(n.ORDER_KEY_ID);const i={ownKeys:e=>t.KEYS in e?e[t.KEYS]:Reflect.ownKeys(e)};t.trapAccess=e=>new Proxy(e,i)},517:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9581);t.Kind=n.Kind,t.ScalarType=n.ScalarType},4042:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=e=>null!==e&&"object"==typeof e},8599:e=>{"use strict";const{AbortController:t,AbortSignal:r}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=r,e.exports.default=t},6870:(e,t)=>{"use strict";function r(e,t){return{validate:e,compare:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0,t.fullFormats={date:r(o,s),time:r(c,p),"date-time":r((function(e){const t=e.split(u);return 2===t.length&&o(t[0])&&c(t[1],!0)}),f),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return l.test(e)&&d.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(e){if(y.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(e){return h.lastIndex=0,h.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=2147483647&&e>=-2147483648}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:m},double:{type:"number",validate:m},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:r(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:r(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,p),"date-time":r(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(e){const t=n.exec(e);if(!t)return!1;const r=+t[1],o=+t[2],s=+t[3];return o>=1&&o<=12&&s>=1&&s<=(2===o&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:i[o])}function s(e,t){if(e&&t)return e>t?1:e(t=n[1]+n[2]+n[3]+(n[4]||""))?1:e{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6870),i=r(7963),o=r(3487),s=new o.Name("fullFormats"),a=new o.Name("fastFormats"),c=(e,t={keywords:!0})=>{if(Array.isArray(t))return p(e,t,n.fullFormats,s),e;const[r,o]="fast"===t.mode?[n.fastFormats,a]:[n.fullFormats,s];return p(e,t.formats||n.formatNames,r,o),t.keywords&&i.default(e),e};function p(e,t,r,n){var i,s;null!==(i=(s=e.opts.code).formats)&&void 0!==i||(s.formats=o._`require("ajv-formats/dist/formats").${n}`);for(const n of t)e.addFormat(n,r[n])}c.get=(e,t="full")=>{const r=("fast"===t?n.fastFormats:n.fullFormats)[e];if(!r)throw new Error(`Unknown format "${e}"`);return r},e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c},7963:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const n=r(1581),i=r(3487),o=i.operators,s={formatMaximum:{okStr:"<=",ok:o.LTE,fail:o.GT},formatMinimum:{okStr:">=",ok:o.GTE,fail:o.LT},formatExclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},formatExclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},a={message:({keyword:e,schemaCode:t})=>i.str`should be ${s[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>i._`{comparison: ${s[e].okStr}, limit: ${t}}`};t.formatLimitDefinition={keyword:Object.keys(s),type:"string",schemaType:"string",$data:!0,error:a,code(e){const{gen:t,data:r,schemaCode:o,keyword:a,it:c}=e,{opts:p,self:u}=c;if(!p.validateFormats)return;const f=new n.KeywordCxt(c,u.RULES.all.format.definition,"format");function l(e){return i._`${e}.compare(${r}, ${o}) ${s[a].fail} 0`}f.$data?function(){const r=t.scopeValue("formats",{ref:u.formats,code:p.code.formats}),n=t.const("fmt",i._`${r}[${f.schemaCode}]`);e.fail$data(i.or(i._`typeof ${n} != "object"`,i._`${n} instanceof RegExp`,i._`typeof ${n}.compare != "function"`,l(n)))}():function(){const r=f.schema,n=u.formats[r];if(!n||!0===n)return;if("object"!=typeof n||n instanceof RegExp||"function"!=typeof n.compare)throw new Error(`"${a}": format "${r}" does not define "compare" function`);const o=t.scopeValue("formats",{key:r,ref:n,code:p.code.formats?i._`${p.code.formats}${i.getProperty(r)}`:void 0});e.fail$data(l(o))}()},dependencies:["format"]},t.default=e=>(e.addKeyword(t.formatLimitDefinition),e)},6533:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=r(7159),i=r(3924),o=r(6121),s=r(1448),a=r(808),c=r(1240),p=r(2500),u="https://json-schema.org/draft/2019-09/schema";class f extends n.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(o.default),i.default.forEach((e=>this.addVocabulary(e))),this.addVocabulary(s.default),this.addVocabulary(a.default),this.opts.discriminator&&this.addKeyword(c.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:e,meta:t}=this.opts;t&&(p.default.call(this,e),this.refs["http://json-schema.org/schema"]=u)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(u)?u:void 0)}}e.exports=t=f,Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var l=r(4815);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var d=r(3487);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}})},5128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=r(7159),i=r(7299),o=r(1240),s=r(4087),a="https://json-schema.org/draft/2020-12/schema";class c extends n.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),i.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:e,meta:t}=this.opts;t&&(s.default.call(this,e),this.refs["http://json-schema.org/schema"]=a)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var p=r(4815);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var u=r(3487);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}})},1581:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=r(7159),i=r(3924),o=r(1240),s=r(98),a=["/properties"],c="http://json-schema.org/draft-07/schema";class p extends n.default{_addVocabularies(){super._addVocabularies(),i.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=p,Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var u=r(4815);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var f=r(3487);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return f._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return f.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return f.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return f.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return f.CodeGen}})},7023:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends r{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=n;class i extends r{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const r=[e[0]];let n=0;for(;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const n=r(7023),i=r(8490);var o=r(7023);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var s=r(8490);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const r=e?i.varKinds.var:this.varKind,n=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${n};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=T(this.rhs,e,t)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class p extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof n.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=T(this.rhs,e,t),this}get names(){return I(this.lhs instanceof n.Name?{}:{...this.lhs.names},this.rhs)}}class u extends p{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class f extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class l extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class h extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=T(this.code,e,t),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class m extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const i=r[n];i.optimizeNames(e,t)||(k(e,i.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>A(e,t.names)),{})}}class y extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class g extends m{}class v extends y{}v.kind="else";class b extends y{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(R(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=T(this.condition,e,t),this}get names(){const e=super.names;return I(e,this.condition),this.else&&A(e,this.else.names),e}}b.kind="if";class j extends y{}j.kind="for";class $ extends j{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=T(this.iteration,e,t),this}get names(){return A(super.names,this.iteration.names)}}class _ extends j{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?i.varKinds.var:this.varKind,{name:r,from:n,to:o}=this;return`for(${t} ${r}=${n}; ${r}<${o}; ${r}++)`+super.render(e)}get names(){const e=I(super.names,this.from);return I(e,this.to)}}class x extends j{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=T(this.iterable,e,t),this}get names(){return A(super.names,this.iterable.names)}}class P extends y{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}P.kind="func";class w extends m{render(e){return"return "+super.render(e)}}w.kind="return";class S extends y{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&A(e,this.catch.names),this.finally&&A(e,this.finally.names),e}}class O extends y{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}O.kind="catch";class E extends y{render(e){return"finally"+super.render(e)}}function A(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function I(e,t){return t instanceof n._CodeOrName?A(e,t.names):e}function T(e,t,r){return e instanceof n.Name?o(e):(i=e)instanceof n._Code&&i._items.some((e=>e instanceof n.Name&&1===t[e.str]&&void 0!==r[e.str]))?new n._Code(e._items.reduce(((e,t)=>(t instanceof n.Name&&(t=o(t)),t instanceof n._Code?e.push(...t._items):e.push(t),e)),[])):e;var i;function o(e){const n=r[e.str];return void 0===n||1!==t[e.str]?e:(delete t[e.str],n)}}function k(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function R(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:n._`!${N(e)}`}E.kind="finally",t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const i=this._scope.toName(t);return void 0!==r&&n&&(this._constants[i.str]=r),this._leafNode(new c(e,i,r)),i}const(e,t,r){return this._def(i.varKinds.const,e,t,r)}let(e,t,r){return this._def(i.varKinds.let,e,t,r)}var(e,t,r){return this._def(i.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new p(e,t,r))}add(e,r){return this._leafNode(new u(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==n.nil&&this._leafNode(new h(e)),this}object(...e){const t=["{"];for(const[r,i]of e)t.length>1&&t.push(","),t.push(r),(r!==i||this.opts.es5)&&(t.push(":"),(0,n.addCodeArg)(t,i));return t.push("}"),new n._Code(t)}if(e,t,r){if(this._blockNode(new b(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new $(e),t)}forRange(e,t,r,n,o=(this.opts.es5?i.varKinds.var:i.varKinds.let)){const s=this._scope.toName(e);return this._for(new _(o,s,t,r),(()=>n(s)))}forOf(e,t,r,o=i.varKinds.const){const s=this._scope.toName(e);if(this.opts.es5){const e=t instanceof n.Name?t:this.var("_arr",t);return this.forRange("_i",0,n._`${e}.length`,(t=>{this.var(s,n._`${e}[${t}]`),r(s)}))}return this._for(new x("of",o,s,t),(()=>r(s)))}forIn(e,t,r,o=(this.opts.es5?i.varKinds.var:i.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,n._`Object.keys(${t})`,r);const s=this._scope.toName(e);return this._for(new x("in",o,s,t),(()=>r(s)))}endFor(){return this._endBlockNode(j)}label(e){return this._leafNode(new f(e))}break(e){return this._leafNode(new l(e))}return(e){const t=new w;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(w)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new S;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new O(e),t(e)}return r&&(this._currNode=n.finally=new E,this.code(r)),this._endBlockNode(O,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=n.nil,r,i){return this._blockNode(new P(e,t,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(P)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=R;const D=F(t.operators.AND);t.and=function(...e){return e.reduce(D)};const C=F(t.operators.OR);function F(e){return(t,r)=>t===n.nil?r:r===n.nil?t:n._`${N(t)} ${e} ${N(r)}`}function N(e){return e instanceof n.Name?e:n._`(${e})`}t.or=function(...e){return e.reduce(C)}},8490:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const n=r(7023);class i extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};class s{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof n.Name?e:this.name(e)}name(e){return new n.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=s;class a extends n.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=n._`.${new n.Name(t)}[${r}]`}}t.ValueScopeName=a;const c=n._`\n`;t.ValueScope=class extends s{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:n.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:i}=n,o=null!==(r=t.key)&&void 0!==r?r:t.ref;let s=this._values[i];if(s){const e=s.get(o);if(e)return e}else s=this._values[i]=new Map;s.set(o,n);const a=this._scope[i]||(this._scope[i]=[]),c=a.length;return a[c]=t.ref,n.setValue(t,{property:i,itemIndex:c}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return n._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(e,r,s={},a){let c=n.nil;for(const p in e){const u=e[p];if(!u)continue;const f=s[p]=s[p]||new Map;u.forEach((e=>{if(f.has(e))return;f.set(e,o.Started);let s=r(e);if(s){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;c=n._`${c}${r} ${e} = ${s};${this.opts._n}`}else{if(!(s=null==a?void 0:a(e)))throw new i(e);c=n._`${c}${s}${this.opts._n}`}f.set(e,o.Completed)}))}return c}}},4181:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const n=r(3487),i=r(6776),o=r(2141);function s(e,t){const r=e.const("err",t);e.if(n._`${o.default.vErrors} === null`,(()=>e.assign(o.default.vErrors,n._`[${r}]`)),n._`${o.default.vErrors}.push(${r})`),e.code(n._`${o.default.errors}++`)}function a(e,t){const{gen:r,validateName:i,schemaEnv:o}=e;o.$async?r.throw(n._`new ${e.ValidationError}(${t})`):(r.assign(n._`${i}.errors`,t),r.return(!1))}t.keywordError={message:({keyword:e})=>n.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?n.str`"${e}" keyword must be ${t} ($data)`:n.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,r=t.keywordError,i,o){const{it:c}=e,{gen:u,compositeRule:f,allErrors:l}=c,d=p(e,r,i);(null!=o?o:f||l)?s(u,d):a(c,n._`[${d}]`)},t.reportExtraError=function(e,r=t.keywordError,n){const{it:i}=e,{gen:c,compositeRule:u,allErrors:f}=i;s(c,p(e,r,n)),u||f||a(i,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(n._`${o.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(n._`${o.default.vErrors}.length`,t)),(()=>e.assign(o.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:r,data:i,errsCount:s,it:a}){if(void 0===s)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",s,o.default.errors,(s=>{e.const(c,n._`${o.default.vErrors}[${s}]`),e.if(n._`${c}.instancePath === undefined`,(()=>e.assign(n._`${c}.instancePath`,(0,n.strConcat)(o.default.instancePath,a.errorPath)))),e.assign(n._`${c}.schemaPath`,n.str`${a.errSchemaPath}/${t}`),a.opts.verbose&&(e.assign(n._`${c}.schema`,r),e.assign(n._`${c}.data`,i))}))};const c={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function p(e,t,r){const{createErrors:i}=e.it;return!1===i?n._`{}`:function(e,t,r={}){const{gen:i,it:s}=e,a=[u(s,r),f(e,r)];return function(e,{params:t,message:r},i){const{keyword:s,data:a,schemaValue:p,it:u}=e,{opts:f,propertyName:l,topSchemaRef:d,schemaPath:h}=u;i.push([c.keyword,s],[c.params,"function"==typeof t?t(e):t||n._`{}`]),f.messages&&i.push([c.message,"function"==typeof r?r(e):r]),f.verbose&&i.push([c.schema,p],[c.parentSchema,n._`${d}${h}`],[o.default.data,a]),l&&i.push([c.propertyName,l])}(e,t,a),i.object(...a)}(e,t,r)}function u({errorPath:e},{instancePath:t}){const r=t?n.str`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[o.default.instancePath,(0,n.strConcat)(o.default.instancePath,r)]}function f({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:o}){let s=o?t:n.str`${t}/${e}`;return r&&(s=n.str`${s}${(0,i.getErrorPath)(r,i.Type.Str)}`),[c.schemaPath,s]}},5173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const n=r(3487),i=r(7426),o=r(2141),s=r(2531),a=r(6776),c=r(4815);class p{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,s.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function u(e){const t=l.call(this,e);if(t)return t;const r=(0,s.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:a,lines:p}=this.opts.code,{ownProperties:u}=this.opts,f=new n.CodeGen(this.scope,{es5:a,lines:p,ownProperties:u});let d;e.$async&&(d=f.scopeValue("Error",{ref:i.default,code:n._`require("ajv/dist/runtime/validation_error").default`}));const h=f.scopeName("validate");e.validateName=h;const m={gen:f,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:f.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,n.stringify)(e.schema)}:{ref:e.schema}),validateName:h,ValidationError:d,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:n.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:n._`""`,opts:this.opts,self:this};let y;try{this._compilations.add(e),(0,c.validateFunctionCode)(m),f.optimize(this.opts.code.optimize);const t=f.toString();y=`${f.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(y=this.opts.code.process(y,e));const r=new Function(`${o.default.self}`,`${o.default.scope}`,y)(this,this.scope.get());if(this.scope.value(h,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:h,validateCode:t,scopeValues:f._values}),this.opts.unevaluated){const{props:e,items:t}=m;r.evaluated={props:e instanceof n.Name?void 0:e,items:t instanceof n.Name?void 0:t,dynamicProps:e instanceof n.Name,dynamicItems:t instanceof n.Name},r.source&&(r.source.evaluated=(0,n.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,y&&this.logger.error("Error compiling schema, function code:",y),t}finally{this._compilations.delete(e)}}function f(e){return(0,s.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:u.call(this,e)}function l(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function d(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||h.call(this,e,t)}function h(e,t){const r=this.opts.uriResolver.parse(t),n=(0,s._getFullPath)(this.opts.uriResolver,r);let i=(0,s.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return y.call(this,r,e);const o=(0,s.normalizeId)(n),a=this.refs[o]||this.schemas[o];if("string"==typeof a){const t=h.call(this,e,a);if("object"!=typeof(null==t?void 0:t.schema))return;return y.call(this,r,t)}if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||u.call(this,a),o===(0,s.normalizeId)(t)){const{schema:t}=a,{schemaId:r}=this.opts,n=t[r];return n&&(i=(0,s.resolveUrl)(this.opts.uriResolver,i,n)),new p({schema:t,schemaId:r,root:e,baseId:i})}return y.call(this,r,a)}}t.SchemaEnv=p,t.compileSchema=u,t.resolveRef=function(e,t,r){var n;r=(0,s.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let o=d.call(this,e,r);if(void 0===o){const i=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:s}=this.opts;i&&(o=new p({schema:i,schemaId:s,root:e,baseId:t}))}return void 0!==o?e.refs[r]=f.call(this,o):void 0},t.getCompilingSchema=l,t.resolveSchema=h;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,{baseId:t,schema:r,root:n}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,a.unescapeFragment)(n)];if(void 0===e)return;const i="object"==typeof(r=e)&&r[this.opts.schemaId];!m.has(n)&&i&&(t=(0,s.resolveUrl)(this.opts.uriResolver,t,i))}let o;if("boolean"!=typeof r&&r.$ref&&!(0,a.schemaHasRulesButRef)(r,this.RULES)){const e=(0,s.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=h.call(this,n,e)}const{schemaId:c}=this.opts;return o=o||new p({schema:r,schemaId:c,root:n,baseId:t}),o.schema!==o.root.schema?o:void 0}},2141:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")};t.default=i},6646:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2531);class i extends Error{constructor(e,t,r,i){super(i||`can't resolve reference ${r} from id ${t}`),this.missingRef=(0,n.resolveUrl)(e,t,r),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(e,this.missingRef))}}t.default=i},2531:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const n=r(6776),i=r(4063),o=r(1371),s=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!c(e):!!t&&p(e)<=t)};const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(const t in e){if(a.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(c))return!0;if("object"==typeof r&&c(r))return!0}return!1}function p(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!s.has(r)&&("object"==typeof e[r]&&(0,n.eachItem)(e[r],(e=>t+=p(e))),t===1/0))return 1/0}return t}function u(e,t="",r){!1!==r&&(t=d(t));const n=e.parse(t);return f(e,n)}function f(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=u,t._getFullPath=f;const l=/#\/?$/;function d(e){return e?e.replace(l,""):""}t.normalizeId=d,t.resolveUrl=function(e,t,r){return r=d(r),e.resolve(t,r)};const h=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,s=d(e[r]||t),a={"":s},c=u(n,s,!1),p={},f=new Set;return o(e,{allKeys:!0},((e,t,n,i)=>{if(void 0===i)return;const o=c+t;let s=a[i];function u(t){const r=this.opts.uriResolver.resolve;if(t=d(s?r(s,t):t),f.has(t))throw m(t);f.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?l(e,n.schema,t):t!==d(o)&&("#"===t[0]?(l(e,p[t],t),p[t]=e):this.refs[t]=o),t}function y(e){if("string"==typeof e){if(!h.test(e))throw new Error(`invalid anchor "${e}"`);u.call(this,`#${e}`)}}"string"==typeof e[r]&&(s=u.call(this,e[r])),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),a[t]=s})),p;function l(e,t,r){if(void 0!==t&&!i(e,t))throw m(r)}function m(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},3141:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&r.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},6776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const n=r(3487),i=r(7023);function o(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const i=n.RULES.keywords;for(const r in t)i[r]||h(e,`unknown keyword: "${r}"`)}function s(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function p({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:i}){return(o,s,a,c)=>{const p=void 0===a?s:a instanceof n.Name?(s instanceof n.Name?e(o,s,a):t(o,s,a),a):s instanceof n.Name?(t(o,a,s),s):r(s,a);return c!==n.Name||p instanceof n.Name?p:i(o,p)}}function u(e,t){if(!0===t)return e.var("props",!0);const r=e.var("props",n._`{}`);return void 0!==t&&f(e,r,t),r}function f(e,t,r){Object.keys(r).forEach((r=>e.assign(n._`${t}${(0,n.getProperty)(r)}`,!0)))}t.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!s(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=s,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},r,i,o){if(!o){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return n._`${r}`}return n._`${e}${t}${(0,n.getProperty)(i)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(a(e))},t.escapeJsonPointer=a,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},t.mergeEvaluated={props:p({mergeNames:(e,t,r)=>e.if(n._`${r} !== true && ${t} !== undefined`,(()=>{e.if(n._`${t} === true`,(()=>e.assign(r,!0)),(()=>e.assign(r,n._`${r} || {}`).code(n._`Object.assign(${r}, ${t})`)))})),mergeToName:(e,t,r)=>e.if(n._`${r} !== true`,(()=>{!0===t?e.assign(r,!0):(e.assign(r,n._`${r} || {}`),f(e,r,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:u}),items:p({mergeNames:(e,t,r)=>e.if(n._`${r} !== true && ${t} !== undefined`,(()=>e.assign(r,n._`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`))),mergeToName:(e,t,r)=>e.if(n._`${r} !== true`,(()=>e.assign(r,!0===t||n._`${r} > ${t} ? ${r} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=u,t.setEvaluated=f;const l={};var d;function h(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:l[t.code]||(l[t.code]=new i._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(d=t.Type||(t.Type={})),t.getErrorPath=function(e,t,r){if(e instanceof n.Name){const i=t===d.Num;return r?i?n._`"[" + ${e} + "]"`:n._`"['" + ${e} + "']"`:i?n._`"/" + ${e}`:n._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,n.getProperty)(e).toString():"/"+a(e)},t.checkStrictMode=h},7745:(e,t)=>{"use strict";function r(e,t){return t.rules.some((t=>n(e,t)))}function n(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},n){const i=t.RULES.types[n];return i&&!0!==i&&r(e,i)},t.shouldUseGroup=r,t.shouldUseRule=n},5667:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const n=r(4181),i=r(3487),o=r(2141),s={message:"boolean schema is false"};function a(e,t){const{gen:r,data:i}=e,o={gen:r,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,n.reportError)(o,s,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:r,validateName:n}=e;!1===r?a(e,!1):"object"==typeof r&&!0===r.$async?t.return(o.default.data):(t.assign(i._`${n}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),a(e)):r.var(t,!0)}},453:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const n=r(3141),i=r(7745),o=r(4181),s=r(3487),a=r(6776);var c;function p(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(n.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(c=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=p(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=p,t.coerceAndCheckDataType=function(e,t){const{gen:r,data:n,opts:o}=e,a=function(e,t){return t?e.filter((e=>u.has(e)||"array"===t&&"array"===e)):[]}(t,o.coerceTypes),p=t.length>0&&!(0===a.length&&1===t.length&&(0,i.schemaHasRulesForType)(e,t[0]));if(p){const i=l(t,n,o.strictNumbers,c.Wrong);r.if(i,(()=>{a.length?function(e,t,r){const{gen:n,data:i,opts:o}=e,a=n.let("dataType",s._`typeof ${i}`),c=n.let("coerced",s._`undefined`);"array"===o.coerceTypes&&n.if(s._`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,(()=>n.assign(i,s._`${i}[0]`).assign(a,s._`typeof ${i}`).if(l(t,i,o.strictNumbers),(()=>n.assign(c,i))))),n.if(s._`${c} !== undefined`);for(const e of r)(u.has(e)||"array"===e&&"array"===o.coerceTypes)&&p(e);function p(e){switch(e){case"string":return void n.elseIf(s._`${a} == "number" || ${a} == "boolean"`).assign(c,s._`"" + ${i}`).elseIf(s._`${i} === null`).assign(c,s._`""`);case"number":return void n.elseIf(s._`${a} == "boolean" || ${i} === null + || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,s._`+${i}`);case"integer":return void n.elseIf(s._`${a} === "boolean" || ${i} === null + || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,s._`+${i}`);case"boolean":return void n.elseIf(s._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf(s._`${i} === "true" || ${i} === 1`).assign(c,!0);case"null":return n.elseIf(s._`${i} === "" || ${i} === 0 || ${i} === false`),void n.assign(c,null);case"array":n.elseIf(s._`${a} === "string" || ${a} === "number" + || ${a} === "boolean" || ${i} === null`).assign(c,s._`[${i}]`)}}n.else(),h(e),n.endIf(),n.if(s._`${c} !== undefined`,(()=>{n.assign(i,c),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(s._`${t} !== undefined`,(()=>e.assign(s._`${t}[${r}]`,n)))}(e,c)}))}(e,t,a):h(e)}))}return p};const u=new Set(["string","number","integer","boolean","null"]);function f(e,t,r,n=c.Correct){const i=n===c.Correct?s.operators.EQ:s.operators.NEQ;let o;switch(e){case"null":return s._`${t} ${i} null`;case"array":o=s._`Array.isArray(${t})`;break;case"object":o=s._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a(s._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return s._`typeof ${t} ${i} ${e}`}return n===c.Correct?o:(0,s.not)(o);function a(e=s.nil){return(0,s.and)(s._`typeof ${t} == "number"`,e,r?s._`isFinite(${t})`:s.nil)}}function l(e,t,r,n){if(1===e.length)return f(e[0],t,r,n);let i;const o=(0,a.toHash)(e);if(o.array&&o.object){const e=s._`typeof ${t} != "object"`;i=o.null?e:s._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else i=s.nil;o.number&&delete o.integer;for(const e in o)i=(0,s.and)(i,f(e,t,r,n));return i}t.checkDataType=f,t.checkDataTypes=l;const d={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?s._`{type: ${e}}`:s._`{type: ${t}}`};function h(e){const t=function(e){const{gen:t,data:r,schema:n}=e,i=(0,a.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}(e);(0,o.reportError)(t,d)}t.reportTypeError=h},313:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const n=r(3487),i=r(6776);function o(e,t,r){const{gen:o,compositeRule:s,data:a,opts:c}=e;if(void 0===r)return;const p=n._`${a}${(0,n.getProperty)(t)}`;if(s)return void(0,i.checkStrictMode)(e,`default is ignored for: ${p}`);let u=n._`${p} === undefined`;"empty"===c.useDefaults&&(u=n._`${u} || ${p} === null || ${p} === ""`),o.if(u,n._`${p} = ${(0,n.stringify)(r)}`)}t.assignDefaults=function(e,t){const{properties:r,items:n}=e.schema;if("object"===t&&r)for(const t in r)o(e,t,r[t].default);else"array"===t&&Array.isArray(n)&&n.forEach(((t,r)=>o(e,r,t.default)))}},4815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const n=r(5667),i=r(453),o=r(7745),s=r(453),a=r(313),c=r(5005),p=r(3099),u=r(3487),f=r(2141),l=r(2531),d=r(6776),h=r(4181);function m({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,u._`${f.default.data}, ${f.default.valCxt}`,n.$async,(()=>{e.code(u._`"use strict"; ${y(r,i)}`),function(e,t){e.if(f.default.valCxt,(()=>{e.var(f.default.instancePath,u._`${f.default.valCxt}.${f.default.instancePath}`),e.var(f.default.parentData,u._`${f.default.valCxt}.${f.default.parentData}`),e.var(f.default.parentDataProperty,u._`${f.default.valCxt}.${f.default.parentDataProperty}`),e.var(f.default.rootData,u._`${f.default.valCxt}.${f.default.rootData}`),t.dynamicRef&&e.var(f.default.dynamicAnchors,u._`${f.default.valCxt}.${f.default.dynamicAnchors}`)}),(()=>{e.var(f.default.instancePath,u._`""`),e.var(f.default.parentData,u._`undefined`),e.var(f.default.parentDataProperty,u._`undefined`),e.var(f.default.rootData,f.default.data),t.dynamicRef&&e.var(f.default.dynamicAnchors,u._`{}`)}))}(e,i),e.code(o)})):e.func(t,u._`${f.default.data}, ${function(e){return u._`{${f.default.instancePath}="", ${f.default.parentData}, ${f.default.parentDataProperty}, ${f.default.rootData}=${f.default.data}${e.dynamicRef?u._`, ${f.default.dynamicAnchors}={}`:u.nil}}={}`}(i)}`,n.$async,(()=>e.code(y(r,i)).code(o)))}function y(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?u._`/*# sourceURL=${r} */`:u.nil}function g({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function b(e){(0,d.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function j(e,t){if(e.opts.jtd)return _(e,[],!1,t);const r=(0,i.getSchemaTypes)(e.schema);_(e,r,!(0,i.coerceAndCheckDataType)(e,r),t)}function $({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const o=r.$comment;if(!0===i.$comment)e.code(u._`${f.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const r=u.str`${n}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code(u._`${f.default.self}.opts.$comment(${o}, ${r}, ${i}.schema)`)}}function _(e,t,r,n){const{gen:i,schema:a,data:c,allErrors:p,opts:l,self:h}=e,{RULES:m}=h;function y(d){(0,o.shouldUseGroup)(a,d)&&(d.type?(i.if((0,s.checkDataType)(d.type,c,l.strictNumbers)),x(e,d),1===t.length&&t[0]===d.type&&r&&(i.else(),(0,s.reportTypeError)(e)),i.endIf()):x(e,d),p||i.if(u._`${f.default.errors} === ${n||0}`))}!a.$ref||!l.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(a,m)?(l.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{P(e.dataTypes,t)||w(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),e.dataTypes=e.dataTypes.filter((e=>P(t,e)))):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&w(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){const{type:r}=i.definition;r.length&&!r.some((e=>{return n=e,(r=t).includes(n)||"number"===n&&r.includes("integer");var r,n}))&&w(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(e,e.dataTypes))}(e,t),i.block((()=>{for(const e of m.rules)y(e);y(m.post)}))):i.block((()=>O(e,"$ref",m.all.$ref.definition)))}function x(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,a.assignDefaults)(e,t.type),r.block((()=>{for(const r of t.rules)(0,o.shouldUseRule)(n,r)&&O(e,r.keyword,r.definition,t.type)}))}function P(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function w(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,d.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){v(e)&&(b(e),g(e))?function(e){const{schema:t,opts:r,gen:n}=e;m(e,(()=>{r.$comment&&t.$comment&&$(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,d.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(f.default.vErrors,null),n.let(f.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",u._`${r}.evaluated`),t.if(u._`${e.evaluated}.dynamicProps`,(()=>t.assign(u._`${e.evaluated}.props`,u._`undefined`))),t.if(u._`${e.evaluated}.dynamicItems`,(()=>t.assign(u._`${e.evaluated}.items`,u._`undefined`)))}(e),j(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if(u._`${f.default.errors} === 0`,(()=>t.return(f.default.data)),(()=>t.throw(u._`new ${i}(${f.default.vErrors})`))):(t.assign(u._`${n}.errors`,f.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof u.Name&&e.assign(u._`${t}.props`,r),n instanceof u.Name&&e.assign(u._`${t}.items`,n)}(e),t.return(u._`${f.default.errors} === 0`))}(e)}))}(e):m(e,(()=>(0,n.topBoolOrEmptySchema)(e)))};class S{constructor(e,t,r){if((0,c.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",I(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",f.default.errors))}result(e,t,r){this.failResult((0,u.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,u.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(u._`${t} !== undefined && (${(0,u.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?h.reportExtraError:h.reportError)(this,this.def.error,t)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=u.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=u.nil,t=u.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:i,def:o}=this;r.if((0,u.or)(u._`${n} === undefined`,t)),e!==u.nil&&r.assign(e,!0),(i.length||o.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==u.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:i}=this;return(0,u.or)(function(){if(r.length){if(!(t instanceof u.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return u._`${(0,s.checkDataTypes)(e,t,i.opts.strictNumbers,s.DataType.Wrong)}`}return u.nil}(),function(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return u._`!${r}(${t})`}return u.nil}())}subschema(e,t){const r=(0,p.getSubschema)(this.it,e);(0,p.extendSubschemaData)(r,this.it,e),(0,p.extendSubschemaMode)(r,e);const i={...this.it,...r,items:void 0,props:void 0};return function(e,t){v(e)&&(b(e),g(e))?function(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&$(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,l.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=n.const("_errs",f.default.errors);j(e,o),n.var(t,u._`${o} === ${f.default.errors}`)}(e,t):(0,n.boolOrEmptySchema)(e,t)}(i,t),i}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=d.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=d.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,u.Name))),!0}}function O(e,t,r,n){const i=new S(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,c.funcKeywordCode)(i,r):"macro"in r?(0,c.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,c.funcKeywordCode)(i,r)}t.KeywordCxt=S;const E=/^\/(?:[^~]|~0|~1)*$/,A=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function I(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(""===e)return f.default.rootData;if("/"===e[0]){if(!E.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=f.default.rootData}else{const s=A.exec(e);if(!s)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+s[1];if(i=s[2],"#"===i){if(a>=t)throw new Error(c("property/index",a));return n[t-a]}if(a>t)throw new Error(c("data",a));if(o=r[t-a],!i)return o}let s=o;const a=i.split("/");for(const e of a)e&&(o=u._`${o}${(0,u.getProperty)((0,d.unescapeJsonPointer)(e))}`,s=u._`${s} && ${o}`);return s;function c(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=I},5005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const n=r(3487),i=r(2141),o=r(412),s=r(4181);function a(e){const{gen:t,data:r,it:i}=e;t.if(i.parentData,(()=>t.assign(r,n._`${i.parentData}[${i.parentDataProperty}]`)))}function c(e,t,r){if(void 0===r)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,n.stringify)(r)})}t.macroKeywordCode=function(e,t){const{gen:r,keyword:i,schema:o,parentSchema:s,it:a}=e,p=t.macro.call(a.self,o,s,a),u=c(r,i,p);!1!==a.opts.validateSchema&&a.self.validateSchema(p,!0);const f=r.name("valid");e.subschema({schema:p,schemaPath:n.nil,errSchemaPath:`${a.errSchemaPath}/${i}`,topSchemaRef:u,compositeRule:!0},f),e.pass(f,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var r;const{gen:p,keyword:u,schema:f,parentSchema:l,$data:d,it:h}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,t);const m=!d&&t.compile?t.compile.call(h.self,f,l,h):t.validate,y=c(p,u,m),g=p.let("valid");function v(r=(t.async?n._`await `:n.nil)){const s=h.opts.passContext?i.default.this:i.default.self,a=!("compile"in t&&!d||!1===t.schema);p.assign(g,n._`${r}${(0,o.callValidateCode)(e,y,s,a)}`,t.modifying)}function b(e){var r;p.if((0,n.not)(null!==(r=t.valid)&&void 0!==r?r:g),e)}e.block$data(g,(function(){if(!1===t.errors)v(),t.modifying&&a(e),b((()=>e.error()));else{const r=t.async?function(){const e=p.let("ruleErrs",null);return p.try((()=>v(n._`await `)),(t=>p.assign(g,!1).if(n._`${t} instanceof ${h.ValidationError}`,(()=>p.assign(e,n._`${t}.errors`)),(()=>p.throw(t))))),e}():function(){const e=n._`${y}.errors`;return p.assign(e,null),v(n.nil),e}();t.modifying&&a(e),b((()=>function(e,t){const{gen:r}=e;r.if(n._`Array.isArray(${t})`,(()=>{r.assign(i.default.vErrors,n._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,n._`${i.default.vErrors}.length`),(0,s.extendErrors)(e)}),(()=>e.error()))}(e,r)))}})),e.ok(null!==(r=t.valid)&&void 0!==r?r:g)},t.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const s=i.dependencies;if(null==s?void 0:s.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},3099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const n=r(3487),i=r(6776);t.getSubschema=function(e,{keyword:t,schemaProp:r,schema:o,schemaPath:s,errSchemaPath:a,topSchemaRef:c}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===r?{schema:o,schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[r],schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(r)}`}}if(void 0!==o){if(void 0===s||void 0===a||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:s,topSchemaRef:c,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:o,data:s,dataTypes:a,propertyName:c}){if(void 0!==s&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:p}=t;if(void 0!==r){const{errorPath:s,dataPathArr:a,opts:c}=t;u(p.let("data",n._`${t.data}${(0,n.getProperty)(r)}`,!0)),e.errorPath=n.str`${s}${(0,i.getErrorPath)(r,o,c.jsPropertySyntax)}`,e.parentDataProperty=n._`${r}`,e.dataPathArr=[...a,e.parentDataProperty]}function u(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}void 0!==s&&(u(s instanceof n.Name?s:p.let("data",s,!0)),void 0!==c&&(e.propertyName=c)),a&&(e.dataTypes=a)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){void 0!==n&&(e.compositeRule=n),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}},7159:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r(4815);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return n.KeywordCxt}});var i=r(3487);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});const o=r(7426),s=r(6646),a=r(3141),c=r(5173),p=r(3487),u=r(2531),f=r(453),l=r(6776),d=r(4775),h=r(3589),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";const y=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function j(e){var t,r,n,i,o,s,a,c,p,u,f,l,d,y,g,v,b,j,$,_,x,P,w,S,O;const E=e.strict,A=null===(t=e.code)||void 0===t?void 0:t.optimize,I=!0===A||void 0===A?1:A||0,T=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:m,k=null!==(i=e.uriResolver)&&void 0!==i?i:h.default;return{strictSchema:null===(s=null!==(o=e.strictSchema)&&void 0!==o?o:E)||void 0===s||s,strictNumbers:null===(c=null!==(a=e.strictNumbers)&&void 0!==a?a:E)||void 0===c||c,strictTypes:null!==(u=null!==(p=e.strictTypes)&&void 0!==p?p:E)&&void 0!==u?u:"log",strictTuples:null!==(l=null!==(f=e.strictTuples)&&void 0!==f?f:E)&&void 0!==l?l:"log",strictRequired:null!==(y=null!==(d=e.strictRequired)&&void 0!==d?d:E)&&void 0!==y&&y,code:e.code?{...e.code,optimize:I,regExp:T}:{optimize:I,regExp:T},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(j=e.messages)||void 0===j||j,inlineRefs:null===($=e.inlineRefs)||void 0===$||$,schemaId:null!==(_=e.schemaId)&&void 0!==_?_:"$id",addUsedSchema:null===(x=e.addUsedSchema)||void 0===x||x,validateSchema:null===(P=e.validateSchema)||void 0===P||P,validateFormats:null===(w=e.validateFormats)||void 0===w||w,unicodeRegExp:null===(S=e.unicodeRegExp)||void 0===S||S,int32range:null===(O=e.int32range)||void 0===O||O,uriResolver:k}}class ${constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...j(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new p.ValueScope({scope:{},prefixes:g,es5:t,lines:r}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),_.call(this,v,e,"NOT SUPPORTED"),_.call(this,b,e,"DEPRECATED","warn"),this._metaOpts=O.call(this),e.formats&&w.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&S.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),P.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=d;"id"===r&&(n={...d},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await i.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||o.call(this,r)}async function i(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof s.default))throw t;return a.call(this,t),await c.call(this,t.missingSchema),o.call(this,e)}}function a({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const r=await p.call(this,e);this.refs[e]||await i.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function p(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let i;if("object"==typeof e){const{schemaId:t}=this.opts;if(i=e[t],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${t} must be string`)}return t=(0,u.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=x.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new c.SchemaEnv({schema:{},schemaId:r});if(t=c.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=x.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,u.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(I.call(this,r,t),!t)return(0,l.eachItem)(r,(e=>T.call(this,e))),this;R.call(this,t);const n={...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)};return(0,l.eachItem)(r,0===n.type.length?e=>T.call(this,e,n):e=>n.type.forEach((t=>T.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let i=e;for(const e of t)i=i[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,o=i[e];n&&o&&(i[e]=C(o))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:s}=this.opts;if("object"==typeof e)o=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(void 0!==a)return a;r=(0,u.normalizeId)(o||r);const p=u.getSchemaRefs.call(this,e,r);return a=new c.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:p}),this._cache.set(a.schema,a),i&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=a),n&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):c.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}function _(e,t,r,n="error"){for(const i in e){const o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}function x(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function P(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function w(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function S(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function O(){const e={...this.opts};for(const t of y)delete e[t];return e}t.default=$,$.ValidationError=o.default,$.MissingRefError=s.default;const E={log(){},warn(){},error(){}},A=/^[a-z_$][a-z0-9_$:-]*$/i;function I(e,t){const{RULES:r}=this;if((0,l.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!A.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function T(e,t,r){var n;const i=null==t?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let s=i?o.post:o.rules.find((({type:e})=>e===r));if(s||(s={type:r,rules:[]},o.rules.push(s)),o.keywords[e]=!0,!t)return;const a={keyword:e,definition:{...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)}};t.before?k.call(this,s,a,t.before):s.rules.push(a),o.all[e]=a,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function k(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function R(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=C(t)),e.validateSchema=this.compile(t,!0))}const D={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function C(e){return{anyOf:[e,D]}}},2500:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3329),i=r(8161),o=r(6422),s=r(4052),a=r(877),c=r(5032),p=r(2374),u=["/properties"];t.default=function(e){return[n,i,o,s,t(this,a),c,t(this,p)].forEach((e=>this.addMetaSchema(e,void 0,!1))),this;function t(t,r){return e?t.$dataMetaSchema(r,u):r}}},4087:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2577),i=r(996),o=r(5568),s=r(6795),a=r(235),c=r(2567),p=r(1233),u=r(1968),f=["/properties"];t.default=function(e){return[n,i,o,s,a,t(this,c),p,t(this,u)].forEach((e=>this.addMetaSchema(e,void 0,!1))),this;function t(t,r){return e?t.$dataMetaSchema(r,f):r}}},3510:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4063);n.code='require("ajv/dist/runtime/equal").default',t.default=n},4499:(e,t)=>{"use strict";function r(e){const t=e.length;let r,n=0,i=0;for(;i=55296&&r<=56319&&i{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(540);n.code='require("ajv/dist/runtime/uri").default',t.default=n},7426:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=r},4783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const n=r(3487),i=r(6776),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>n.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?s(e,n):(0,i.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function s(e,t){const{gen:r,schema:o,data:s,keyword:a,it:c}=e;c.items=!0;const p=r.const("len",n._`${s}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(n._`${p} <= ${t.length}`);else if("object"==typeof o&&!(0,i.alwaysValidSchema)(c,o)){const o=r.var("valid",n._`${p} <= ${t.length}`);r.if((0,n.not)(o),(()=>function(o){r.forRange("i",t.length,p,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:i.Type.Num},o),c.allErrors||r.if((0,n.not)(o),(()=>r.break()))}))}(o))),e.ok(o)}}t.validateAdditionalItems=s,t.default=o},9351:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(412),i=r(3487),o=r(2141),s=r(6776),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>i._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:a,data:c,errsCount:p,it:u}=e;if(!p)throw new Error("ajv implementation error");const{allErrors:f,opts:l}=u;if(u.props=!0,"all"!==l.removeAdditional&&(0,s.alwaysValidSchema)(u,r))return;const d=(0,n.allSchemaProperties)(a.properties),h=(0,n.allSchemaProperties)(a.patternProperties);function m(e){t.code(i._`delete ${c}[${e}]`)}function y(n){if("all"===l.removeAdditional||l.removeAdditional&&!1===r)m(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(f||t.break());if("object"==typeof r&&!(0,s.alwaysValidSchema)(u,r)){const r=t.name("valid");"failing"===l.removeAdditional?(g(n,r,!1),t.if((0,i.not)(r),(()=>{e.reset(),m(n)}))):(g(n,r),f||t.if((0,i.not)(r),(()=>t.break())))}}}function g(t,r,n){const i={keyword:"additionalProperties",dataProp:t,dataPropType:s.Type.Str};!1===n&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,r)}t.forIn("key",c,(r=>{d.length||h.length?t.if(function(r){let o;if(d.length>8){const e=(0,s.schemaRefOrVal)(u,a.properties,"properties");o=(0,n.isOwnProperty)(t,e,r)}else o=d.length?(0,i.or)(...d.map((e=>i._`${r} === ${e}`))):i.nil;return h.length&&(o=(0,i.or)(o,...h.map((t=>i._`${(0,n.usePattern)(e,t)}.test(${r})`)))),(0,i.not)(o)}(r),(()=>y(r))):y(r)})),e.ok(i._`${p} === ${o.default.errors}`)}};t.default=a},1125:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6776),i={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach(((t,r)=>{if((0,n.alwaysValidSchema)(i,t))return;const s=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(s)}))}};t.default=i},19:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:r(412).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=n},9864:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?n.str`must contain at least ${e} valid item(s)`:n.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?n._`{minContains: ${e}}`:n._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:o,data:s,it:a}=e;let c,p;const{minContains:u,maxContains:f}=o;a.opts.next?(c=void 0===u?1:u,p=f):c=1;const l=t.const("len",n._`${s}.length`);if(e.setParams({min:c,max:p}),void 0===p&&0===c)return void(0,i.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==p&&c>p)return(0,i.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,i.alwaysValidSchema)(a,r)){let t=n._`${l} >= ${c}`;return void 0!==p&&(t=n._`${t} && ${l} <= ${p}`),void e.pass(t)}a.items=!0;const d=t.name("valid");function h(){const e=t.name("_valid"),r=t.let("count",0);m(e,(()=>t.if(e,(()=>function(e){t.code(n._`${e}++`),void 0===p?t.if(n._`${e} >= ${c}`,(()=>t.assign(d,!0).break())):(t.if(n._`${e} > ${p}`,(()=>t.assign(d,!1).break())),1===c?t.assign(d,!0):t.if(n._`${e} >= ${c}`,(()=>t.assign(d,!0))))}(r)))))}function m(r,n){t.forRange("i",0,l,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:i.Type.Num,compositeRule:!0},r),n()}))}void 0===p&&1===c?m(d,(()=>t.if(d,(()=>t.break())))):0===c?(t.let(d,!0),void 0!==p&&t.if(n._`${s}.length > 0`,h)):(t.let(d,!1),h()),e.result(d,(()=>e.reset()))}};t.default=o},7772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const n=r(3487),i=r(6776),o=r(412);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>{const i=1===t?"property":"properties";return n.str`must have ${i} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:i}})=>n._`{property: ${e}, + missingProperty: ${i}, + depsCount: ${t}, + deps: ${r}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e)"__proto__"!==n&&((Array.isArray(e[n])?t:r)[n]=e[n]);return[t,r]}(e);a(e,t),c(e,r)}};function a(e,t=e.schema){const{gen:r,data:i,it:s}=e;if(0===Object.keys(t).length)return;const a=r.let("missing");for(const c in t){const p=t[c];if(0===p.length)continue;const u=(0,o.propertyInData)(r,i,c,s.opts.ownProperties);e.setParams({property:c,depsCount:p.length,deps:p.join(", ")}),s.allErrors?r.if(u,(()=>{for(const t of p)(0,o.checkReportMissingProp)(e,t)})):(r.if(n._`${u} && (${(0,o.checkMissingProp)(e,p,a)})`),(0,o.reportMissingProp)(e,a),r.else())}}function c(e,t=e.schema){const{gen:r,data:n,keyword:s,it:a}=e,c=r.name("valid");for(const p in t)(0,i.alwaysValidSchema)(a,t[p])||(r.if((0,o.propertyInData)(r,n,p,a.opts.ownProperties),(()=>{const t=e.subschema({keyword:s,schemaProp:p},c);e.mergeValidEvaluated(t,c)}),(()=>r.var(c,!0))),e.ok(c))}t.validatePropertyDeps=a,t.validateSchemaDeps=c,t.default=s},7274:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(7772),i={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,n.validateSchemaDeps)(e)};t.default=i},9434:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>n.str`must match "${e.ifClause}" schema`,params:({params:e})=>n._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:o}=e;void 0===r.then&&void 0===r.else&&(0,i.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const a=s(o,"then"),c=s(o,"else");if(!a&&!c)return;const p=t.let("valid",!0),u=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}(),e.reset(),a&&c){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(u,f("then",r),f("else",r))}else a?t.if(u,f("then")):t.if((0,n.not)(u),f("else"));function f(r,i){return()=>{const o=e.subschema({keyword:r},u);t.assign(p,u),e.mergeValidEvaluated(o,p),i?t.assign(i,n._`${r}`):e.setParams({ifClause:r})}}e.pass(p,(()=>e.error(!0)))}};function s(e,t){const r=e.schema[t];return void 0!==r&&!(0,i.alwaysValidSchema)(e,r)}t.default=o},8200:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4783),i=r(2924),o=r(4665),s=r(1119),a=r(9864),c=r(7772),p=r(3708),u=r(9351),f=r(6239),l=r(2296),d=r(5697),h=r(19),m=r(4200),y=r(1125),g=r(9434),v=r(6552);t.default=function(e=!1){const t=[d.default,h.default,m.default,y.default,g.default,v.default,p.default,u.default,c.default,f.default,l.default];return e?t.push(i.default,s.default):t.push(n.default,o.default),t.push(a.default),t}},4665:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const n=r(3487),i=r(6776),o=r(412),s={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return a(e,"additionalItems",t);r.items=!0,(0,i.alwaysValidSchema)(r,t)||e.ok((0,o.validateArray)(e))}};function a(e,t,r=e.schema){const{gen:o,parentSchema:s,data:a,keyword:c,it:p}=e;!function(e){const{opts:n,errSchemaPath:o}=p,s=r.length,a=s===e.minItems&&(s===e.maxItems||!1===e[t]);if(n.strictTuples&&!a){const e=`"${c}" is ${s}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,i.checkStrictMode)(p,e,n.strictTuples)}}(s),p.opts.unevaluated&&r.length&&!0!==p.items&&(p.items=i.mergeEvaluated.items(o,r.length,p.items));const u=o.name("valid"),f=o.const("len",n._`${a}.length`);r.forEach(((t,r)=>{(0,i.alwaysValidSchema)(p,t)||(o.if(n._`${f} > ${r}`,(()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},u))),e.ok(u))}))}t.validateTuple=a,t.default=s},1119:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o=r(412),s=r(4783),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>n.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:a}=r;n.items=!0,(0,i.alwaysValidSchema)(n,t)||(a?(0,s.validateAdditionalItems)(e,a):e.ok((0,o.validateArray)(e)))}};t.default=a},5697:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6776),i={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:i}=e;if((0,n.alwaysValidSchema)(i,r))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=i},4200:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>n._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:o,it:s}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(s.opts.discriminator&&o.discriminator)return;const a=r,c=t.let("valid",!1),p=t.let("passing",null),u=t.name("_valid");e.setParams({passing:p}),t.block((function(){a.forEach(((r,o)=>{let a;(0,i.alwaysValidSchema)(s,r)?t.var(u,!0):a=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},u),o>0&&t.if(n._`${u} && ${c}`).assign(c,!1).assign(p,n._`[${p}, ${o}]`).else(),t.if(u,(()=>{t.assign(c,!0),t.assign(p,o),a&&e.mergeEvaluated(a,n.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=o},2296:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(412),i=r(3487),o=r(6776),s=r(6776),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:a,parentSchema:c,it:p}=e,{opts:u}=p,f=(0,n.allSchemaProperties)(r),l=f.filter((e=>(0,o.alwaysValidSchema)(p,r[e])));if(0===f.length||l.length===f.length&&(!p.opts.unevaluated||!0===p.props))return;const d=u.strictSchema&&!u.allowMatchingProperties&&c.properties,h=t.name("valid");!0===p.props||p.props instanceof i.Name||(p.props=(0,s.evaluatedPropsToName)(t,p.props));const{props:m}=p;function y(e){for(const t in d)new RegExp(e).test(t)&&(0,o.checkStrictMode)(p,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(r){t.forIn("key",a,(o=>{t.if(i._`${(0,n.usePattern)(e,r)}.test(${o})`,(()=>{const n=l.includes(r);n||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:o,dataPropType:s.Type.Str},h),p.opts.unevaluated&&!0!==m?t.assign(i._`${m}[${o}]`,!0):n||p.allErrors||t.if((0,i.not)(h),(()=>t.break()))}))}))}!function(){for(const e of f)d&&y(e),p.allErrors?g(e):(t.var(h,!0),g(e),t.if(h))}()}};t.default=a},2924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4665),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n.validateTuple)(e,"items")};t.default=i},6239:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4815),i=r(412),o=r(6776),s=r(9351),a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:a,data:c,it:p}=e;"all"===p.opts.removeAdditional&&void 0===a.additionalProperties&&s.default.code(new n.KeywordCxt(p,s.default,"additionalProperties"));const u=(0,i.allSchemaProperties)(r);for(const e of u)p.definedProperties.add(e);p.opts.unevaluated&&u.length&&!0!==p.props&&(p.props=o.mergeEvaluated.props(t,(0,o.toHash)(u),p.props));const f=u.filter((e=>!(0,o.alwaysValidSchema)(p,r[e])));if(0===f.length)return;const l=t.name("valid");for(const r of f)d(r)?h(r):(t.if((0,i.propertyInData)(t,c,r,p.opts.ownProperties)),h(r),p.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(l);function d(e){return p.opts.useDefaults&&!p.compositeRule&&void 0!==r[e].default}function h(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},l)}}};t.default=a},3708:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>n._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:o,it:s}=e;if((0,i.alwaysValidSchema)(s,r))return;const a=t.name("valid");t.forIn("key",o,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,n.not)(a),(()=>{e.error(!0),s.allErrors||t.break()}))})),e.ok(a)}};t.default=o},6552:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6776),i={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,n.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};t.default=i},412:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const n=r(3487),i=r(6776),o=r(2141),s=r(6776);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:n._`Object.prototype.hasOwnProperty`})}function c(e,t,r){return n._`${a(e)}.call(${t}, ${r})`}function p(e,t,r,i){const o=n._`${t}${(0,n.getProperty)(r)} === undefined`;return i?(0,n.or)(o,(0,n.not)(c(e,t,r))):o}function u(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:r,data:i,it:o}=e;r.if(p(r,i,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:n._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},i,o){return(0,n.or)(...i.map((i=>(0,n.and)(p(e,t,i,r.ownProperties),n._`${o} = ${i}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=c,t.propertyInData=function(e,t,r,i){const o=n._`${t}${(0,n.getProperty)(r)} !== undefined`;return i?n._`${o} && ${c(e,t,r)}`:o},t.noPropertyInData=p,t.allSchemaProperties=u,t.schemaProperties=function(e,t){return u(t).filter((r=>!(0,i.alwaysValidSchema)(e,t[r])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:i,schemaPath:s,errorPath:a},it:c},p,u,f){const l=f?n._`${e}, ${t}, ${i}${s}`:t,d=[[o.default.instancePath,(0,n.strConcat)(o.default.instancePath,a)],[o.default.parentData,c.parentData],[o.default.parentDataProperty,c.parentDataProperty],[o.default.rootData,o.default.rootData]];c.opts.dynamicRef&&d.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const h=n._`${l}, ${r.object(...d)}`;return u!==n.nil?n._`${p}.call(${u}, ${h})`:n._`${p}(${h})`};const f=n._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){const i=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(r,i);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:n._`${"new RegExp"===o.code?f:(0,s.useFunc)(e,o)}(${r}, ${i})`})},t.validateArray=function(e){const{gen:t,data:r,keyword:o,it:s}=e,a=t.name("valid");if(s.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(a,!0),c((()=>t.break())),a;function c(s){const c=t.const("len",n._`${r}.length`);t.forRange("i",0,c,(r=>{e.subschema({keyword:o,dataProp:r,dataPropType:i.Type.Num},a),t.if((0,n.not)(a),s)}))}},t.validateUnion=function(e){const{gen:t,schema:r,keyword:o,it:s}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>(0,i.alwaysValidSchema)(s,e)))&&!s.opts.unevaluated)return;const a=t.let("valid",!1),c=t.name("_valid");t.block((()=>r.forEach(((r,i)=>{const s=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},c);t.assign(a,n._`${a} || ${c}`),e.mergeValidEvaluated(s,c)||t.if((0,n.not)(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}},8386:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=r},5684:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8386),i=r(8280),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,i.default];t.default=o},8280:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const n=r(6646),i=r(412),o=r(3487),s=r(2141),a=r(5173),c=r(6776),p={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:i}=e,{baseId:s,schemaEnv:c,validateName:p,opts:l,self:d}=i,{root:h}=c;if(("#"===r||"#/"===r)&&s===h.baseId)return function(){if(c===h)return f(e,p,c,c.$async);const r=t.scopeValue("root",{ref:h});return f(e,o._`${r}.validate`,h,h.$async)}();const m=a.resolveRef.call(d,h,s,r);if(void 0===m)throw new n.default(i.opts.uriResolver,s,r);return m instanceof a.SchemaEnv?function(t){const r=u(e,t);f(e,r,t,t.$async)}(m):function(n){const i=t.scopeValue("schema",!0===l.code.source?{ref:n,code:(0,o.stringify)(n)}:{ref:n}),s=t.name("valid"),a=e.subschema({schema:n,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:r},s);e.mergeEvaluated(a),e.ok(s)}(m)}};function u(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):o._`${r.scopeValue("wrapper",{ref:t})}.validate`}function f(e,t,r,n){const{gen:a,it:p}=e,{allErrors:u,schemaEnv:f,opts:l}=p,d=l.passContext?s.default.this:o.nil;function h(e){const t=o._`${e}.errors`;a.assign(s.default.vErrors,o._`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`),a.assign(s.default.errors,o._`${s.default.vErrors}.length`)}function m(e){var t;if(!p.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==p.props)if(n&&!n.dynamicProps)void 0!==n.props&&(p.props=c.mergeEvaluated.props(a,n.props,p.props));else{const t=a.var("props",o._`${e}.evaluated.props`);p.props=c.mergeEvaluated.props(a,t,p.props,o.Name)}if(!0!==p.items)if(n&&!n.dynamicItems)void 0!==n.items&&(p.items=c.mergeEvaluated.items(a,n.items,p.items));else{const t=a.var("items",o._`${e}.evaluated.items`);p.items=c.mergeEvaluated.items(a,t,p.items,o.Name)}}n?function(){if(!f.$async)throw new Error("async schema referenced by sync schema");const r=a.let("valid");a.try((()=>{a.code(o._`await ${(0,i.callValidateCode)(e,t,d)}`),m(t),u||a.assign(r,!0)}),(e=>{a.if(o._`!(${e} instanceof ${p.ValidationError})`,(()=>a.throw(e))),h(e),u||a.assign(r,!1)})),e.ok(r)}():e.result((0,i.callValidateCode)(e,t,d),(()=>m(t)),(()=>h(t)))}t.getValidate=u,t.callRef=f,t.default=p},1240:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(9306),o=r(5173),s=r(6776),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>n._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:a,parentSchema:c,it:p}=e,{oneOf:u}=c;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=a.propertyName;if("string"!=typeof f)throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!u)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),d=t.const("tag",n._`${r}${(0,n.getProperty)(f)}`);function h(r){const i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},i);return e.mergeEvaluated(o,n.Name),i}t.if(n._`typeof ${d} == "string"`,(()=>function(){const r=function(){var e;const t={},r=i(c);let n=!0;for(let t=0;te.error(!1,{discrError:i.DiscrError.Tag,tag:d,tagName:f}))),e.ok(l)}};t.default=a},9306:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(r=t.DiscrError||(t.DiscrError={})).Tag="tag",r.Mapping="mapping"},7299:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(5684),i=r(2649),o=r(8200),s=r(6121),a=r(1448),c=r(808),p=r(9502),u=r(6167),f=[s.default,n.default,i.default,(0,o.default)(!0),p.default,u.metadataVocabulary,u.contentVocabulary,a.default,c.default];t.default=f},3924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(5684),i=r(2649),o=r(8200),s=r(9502),a=r(6167),c=[n.default,i.default,(0,o.default)(),s.default,a.metadataVocabulary,a.contentVocabulary];t.default=c},6215:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dynamicAnchor=void 0;const n=r(3487),i=r(2141),o=r(5173),s=r(8280),a={keyword:"$dynamicAnchor",schemaType:"string",code:e=>c(e,e.schema)};function c(e,t){const{gen:r,it:a}=e;a.schemaEnv.root.dynamicAnchors[t]=!0;const c=n._`${i.default.dynamicAnchors}${(0,n.getProperty)(t)}`,p="#"===a.errSchemaPath?a.validateName:function(e){const{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:a,localRefs:c,meta:p}=t.root,{schemaId:u}=n.opts,f=new o.SchemaEnv({schema:r,schemaId:u,root:i,baseId:a,localRefs:c,meta:p});return o.compileSchema.call(n,f),(0,s.getValidate)(e,f)}(e);r.if(n._`!${c}`,(()=>r.assign(c,p)))}t.dynamicAnchor=c,t.default=a},5026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dynamicRef=void 0;const n=r(3487),i=r(2141),o=r(8280),s={keyword:"$dynamicRef",schemaType:"string",code:e=>a(e,e.schema)};function a(e,t){const{gen:r,keyword:s,it:a}=e;if("#"!==t[0])throw new Error(`"${s}" only supports hash fragment reference`);const c=t.slice(1);if(a.allErrors)p();else{const t=r.let("valid",!1);p(t),e.ok(t)}function p(e){if(a.schemaEnv.root.dynamicAnchors[c]){const t=r.let("_v",n._`${i.default.dynamicAnchors}${(0,n.getProperty)(c)}`);r.if(t,u(t,e),u(a.validateName,e))}else u(a.validateName,e)()}function u(t,n){return n?()=>r.block((()=>{(0,o.callRef)(e,t),r.let(n,!0)})):()=>(0,o.callRef)(e,t)}}t.dynamicRef=a,t.default=s},6121:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6215),i=r(5026),o=r(4094),s=r(3944),a=[n.default,i.default,o.default,s.default];t.default=a},4094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6215),i=r(6776),o={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,n.dynamicAnchor)(e,""):(0,i.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};t.default=o},3944:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(5026),i={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,n.dynamicRef)(e,e.schema)};t.default=i},9651:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>n.str`must match format "${e}"`,params:({schemaCode:e})=>n._`{format: ${e}}`},code(e,t){const{gen:r,data:i,$data:o,schema:s,schemaCode:a,it:c}=e,{opts:p,errSchemaPath:u,schemaEnv:f,self:l}=c;p.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:l.formats,code:p.code.formats}),s=r.const("fDef",n._`${o}[${a}]`),c=r.let("fType"),u=r.let("format");r.if(n._`typeof ${s} == "object" && !(${s} instanceof RegExp)`,(()=>r.assign(c,n._`${s}.type || "string"`).assign(u,n._`${s}.validate`)),(()=>r.assign(c,n._`"string"`).assign(u,s))),e.fail$data((0,n.or)(!1===p.strictSchema?n.nil:n._`${a} && !${u}`,function(){const e=f.$async?n._`(${s}.async ? await ${u}(${i}) : ${u}(${i}))`:n._`${u}(${i})`,r=n._`(typeof ${u} == "function" ? ${e} : ${u}.test(${i}))`;return n._`${u} && ${u} !== true && ${c} === ${t} && !${r}`}()))}():function(){const o=l.formats[s];if(!o)return void function(){if(!1!==p.strictSchema)throw new Error(e());function e(){return`unknown format "${s}" ignored in schema at path "${u}"`}l.logger.warn(e())}();if(!0===o)return;const[a,c,d]=function(e){const t=e instanceof RegExp?(0,n.regexpCode)(e):p.code.formats?n._`${p.code.formats}${(0,n.getProperty)(s)}`:void 0,i=r.scopeValue("formats",{key:s,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,i]:[e.type||"string",e.validate,n._`${i}.validate`]}(o);a===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!f.$async)throw new Error("async format in sync schema");return n._`await ${d}(${i})`}return"function"==typeof c?n._`${d}(${i})`:n._`${d}.test(${i})`}())}())}};t.default=i},9502:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=[r(9651).default];t.default=n},6167:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},1448:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8921),i=r(7274),o=r(1298),s=[n.default,i.default,o.default];t.default=s},808:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1782),i=r(4641),o=[n.default,i.default];t.default=o},4641:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:e}})=>n.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{gen:t,schema:r,data:o,it:s}=e,a=s.items||0;if(!0===a)return;const c=t.const("len",n._`${o}.length`);if(!1===r)e.setParams({len:a}),e.fail(n._`${c} > ${a}`);else if("object"==typeof r&&!(0,i.alwaysValidSchema)(s,r)){const r=t.var("valid",n._`${c} <= ${a}`);t.if((0,n.not)(r),(()=>function(r,o){t.forRange("i",o,c,(o=>{e.subschema({keyword:"unevaluatedItems",dataProp:o,dataPropType:i.Type.Num},r),s.allErrors||t.if((0,n.not)(r),(()=>t.break()))}))}(r,a))),e.ok(r)}s.items=!0}};t.default=o},1782:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o=r(2141),s={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:e})=>n._`{unevaluatedProperty: ${e.unevaluatedProperty}}`},code(e){const{gen:t,schema:r,data:s,errsCount:a,it:c}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:p,props:u}=c;function f(o){if(!1===r)return e.setParams({unevaluatedProperty:o}),e.error(),void(p||t.break());if(!(0,i.alwaysValidSchema)(c,r)){const r=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:o,dataPropType:i.Type.Str},r),p||t.if((0,n.not)(r),(()=>t.break()))}}u instanceof n.Name?t.if(n._`${u} !== true`,(()=>t.forIn("key",s,(e=>t.if(function(e,t){return n._`!${e} || !${e}[${t}]`}(u,e),(()=>f(e))))))):!0!==u&&t.forIn("key",s,(e=>void 0===u?f(e):t.if(function(e,t){const r=[];for(const i in e)!0===e[i]&&r.push(n._`${t} !== ${i}`);return(0,n.and)(...r)}(u,e),(()=>f(e))))),c.props=!0,e.ok(n._`${a} === ${o.default.errors}`)}};t.default=s},4693:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o=r(3510),s={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>n._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:s,schemaCode:a,schema:c}=e;s||c&&"object"==typeof c?e.fail$data(n._`!${(0,i.useFunc)(t,o.default)}(${r}, ${a})`):e.fail(n._`${c} !== ${r}`)}};t.default=s},8921:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(7772),i={keyword:"dependentRequired",type:"object",schemaType:"object",error:n.error,code:e=>(0,n.validatePropertyDeps)(e)};t.default=i},966:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o=r(3510),s={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>n._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:s,schema:a,schemaCode:c,it:p}=e;if(!s&&0===a.length)throw new Error("enum must have non-empty array");const u=a.length>=p.opts.loopEnum;let f;const l=()=>null!=f?f:f=(0,i.useFunc)(t,o.default);let d;if(u||s)d=t.let("valid"),e.block$data(d,(function(){t.assign(d,!1),t.forOf("v",c,(e=>t.if(n._`${l()}(${r}, ${e})`,(()=>t.assign(d,!0).break()))))}));else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",c);d=(0,n.or)(...a.map(((t,i)=>function(e,t){const i=a[t];return"object"==typeof i&&null!==i?n._`${l()}(${r}, ${e}[${t}])`:n._`${r} === ${i}`}(e,i))))}e.pass(d)}};t.default=s},2649:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3983),i=r(430),o=r(3229),s=r(4336),a=r(498),c=r(3301),p=r(1687),u=r(2958),f=r(4693),l=r(966),d=[n.default,i.default,o.default,s.default,a.default,c.default,p.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},f.default,l.default];t.default=d},1298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6776),i={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){void 0===t.contains&&(0,n.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};t.default=i},1687:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:i}=e,o="maxItems"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`${r}.length ${o} ${i}`)}};t.default=i},3229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o=r(4499),s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:s,it:a}=e,c="maxLength"===t?n.operators.GT:n.operators.LT,p=!1===a.opts.unicode?n._`${r}.length`:n._`${(0,i.useFunc)(e.gen,o.default)}(${r})`;e.fail$data(n._`${p} ${c} ${s}`)}};t.default=s},3983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=n.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},s={message:({keyword:e,schemaCode:t})=>n.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>n._`{comparison: ${o[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:s,code(e){const{keyword:t,data:r,schemaCode:i}=e;e.fail$data(n._`${r} ${o[t].fail} ${i} || isNaN(${r})`)}};t.default=a},498:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:i}=e,o="maxProperties"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`Object.keys(${r}).length ${o} ${i}`)}};t.default=i},430:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>n.str`must be multiple of ${e}`,params:({schemaCode:e})=>n._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:i,it:o}=e,s=o.opts.multipleOfPrecision,a=t.let("res"),c=s?n._`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:n._`${a} !== parseInt(${a})`;e.fail$data(n._`(${i} === 0 || (${a} = ${r}/${i}, ${c}))`)}};t.default=i},4336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(412),i=r(3487),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match pattern "${e}"`,params:({schemaCode:e})=>i._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:o,schemaCode:s,it:a}=e,c=a.opts.unicodeRegExp?"u":"",p=r?i._`(new RegExp(${s}, ${c}))`:(0,n.usePattern)(e,o);e.fail$data(i._`!${p}.test(${t})`)}};t.default=o},3301:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(412),i=r(3487),o=r(6776),s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>i.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>i._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:s,data:a,$data:c,it:p}=e,{opts:u}=p;if(!c&&0===r.length)return;const f=r.length>=u.loopRequired;if(p.allErrors?function(){if(f||c)e.block$data(i.nil,l);else for(const t of r)(0,n.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(f||c){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,o){e.setParams({missingProperty:r}),t.forOf(r,s,(()=>{t.assign(o,(0,n.propertyInData)(t,a,r,u.ownProperties)),t.if((0,i.not)(o),(()=>{e.error(),t.break()}))}),i.nil)}(o,r))),e.ok(r)}else t.if((0,n.checkMissingProp)(e,r,o)),(0,n.reportMissingProp)(e,o),t.else()}(),u.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${p.schemaEnv.baseId+p.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(p,t,p.opts.strictRequired)}}function l(){t.forOf("prop",s,(r=>{e.setParams({missingProperty:r}),t.if((0,n.noPropertyInData)(t,a,r,u.ownProperties),(()=>e.error()))}))}}};t.default=s},2958:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(453),i=r(3487),o=r(6776),s=r(3510),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>i.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>i._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:r,$data:a,schema:c,parentSchema:p,schemaCode:u,it:f}=e;if(!a&&!c)return;const l=t.let("valid"),d=p.items?(0,n.getSchemaTypes)(p.items):[];function h(o,s){const a=t.name("item"),c=(0,n.checkDataTypes)(d,a,f.opts.strictNumbers,n.DataType.Wrong),p=t.const("indices",i._`{}`);t.for(i._`;${o}--;`,(()=>{t.let(a,i._`${r}[${o}]`),t.if(c,i._`continue`),d.length>1&&t.if(i._`typeof ${a} == "string"`,i._`${a} += "_"`),t.if(i._`typeof ${p}[${a}] == "number"`,(()=>{t.assign(s,i._`${p}[${a}]`),e.error(),t.assign(l,!1).break()})).code(i._`${p}[${a}] = ${o}`)}))}function m(n,a){const c=(0,o.useFunc)(t,s.default),p=t.name("outer");t.label(p).for(i._`;${n}--;`,(()=>t.for(i._`${a} = ${n}; ${a}--;`,(()=>t.if(i._`${c}(${r}[${n}], ${r}[${a}])`,(()=>{e.error(),t.assign(l,!1).break(p)}))))))}e.block$data(l,(function(){const n=t.let("i",i._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(l,!0),t.if(i._`${n} > 1`,(()=>(d.length>0&&!d.some((e=>"object"===e||"array"===e))?h:m)(n,o)))}),i._`${u} === false`),e.ok(l)}};t.default=a},1371:e=>{"use strict";var t=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(e,n,i,o,s,a,c,p,u,f){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var l in n(o,s,a,c,p,u,f),o){var d=o[l];if(Array.isArray(d)){if(l in t.arrayKeywords)for(var h=0;h{"use strict";function r(e,t){for(var r=0;r":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},o=17;t.NEEDS_PARENTHESES=o;var s,a,c,p,u,f,l={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:o,ClassExpression:o,FunctionExpression:o,ObjectExpression:o,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function d(e,t){var r=e.generator;if(e.write("("),null!=t&&t.length>0){r[t[0].type](t[0],e);for(var n=t.length,i=1;i0){e.write(n);for(var s=1;s0){r.VariableDeclarator(n[0],e);for(var o=1;o0){t.write(n),i&&null!=e.comments&&g(t,e.comments,o,n);for(var a=s.length,c=0;c0){for(;i0&&t.write(", ");var o=r[i],s=o.type[6];if("D"===s)t.write(o.local.name,o),i++;else{if("N"!==s)break;t.write("* as "+o.local.name,o),i++}}if(i0)for(var i=0;;){var o=r[i],s=o.local.name;if(t.write(s,o),s!==o.exported.name&&t.write(" as "+o.exported.name),!(++i "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression:function(e,t){t.write("this",e)},Super:function(e,t){t.write("super",e)},RestElement:c=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:c,YieldExpression:function(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression:function(e,t){t.write("await ",e),m(t,e.argument,e)},TemplateLiteral:function(e,t){var r=e.quasis,n=e.expressions;t.write("`");for(var i=n.length,o=0;o0)for(var r=e.elements,n=r.length,i=0;;){var o=r[i];if(null!=o&&this[o.type](o,t),!(++i0){t.write(n),i&&null!=e.comments&&g(t,e.comments,o,n);for(var s=","+n,a=e.properties,c=a.length,p=0;;){var u=a[p];if(i&&null!=u.comments&&g(t,u.comments,o,n),t.write(o),this[u.type](u,t),!(++p0)for(var r=e.properties,n=r.length,i=0;this[r[i].type](r[i],t),++i1)&&("U"!==i[0]||"n"!==i[1]&&"p"!==i[1]||!n.prefix||n.operator[0]!==r||"+"!==r&&"-"!==r)||t.write(" "),o?(t.write(r.length>1?" (":"("),this[i](n,t),t.write(")")):this[i](n,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression:function(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression:function(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern:function(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:p=function(e,t){var r="in"===e.operator;r&&t.write("("),m(t,e.left,e,!1),t.write(" "+e.operator+" "),m(t,e.right,e,!0),r&&t.write(")")},LogicalExpression:p,ConditionalExpression:function(e,t){var r=e.test,n=t.expressionsPrecedence[r.type];n===o||n<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[r.type](r,t),t.write(")")):this[r.type](r,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression:function(e,t){t.write("new ");var r=t.expressionsPrecedence[e.callee.type];r===o||r0&&(this.lineEndSize>0&&(1===p.length?e[c-1]===p:e.endsWith(p))?(this.line+=this.lineEndSize,this.column=0):this.column+=c)}},{key:"toString",value:function(){return this.output}}])&&r(t.prototype,n),e}()},5623:e=>{"use strict";function t(e,t,i){e instanceof RegExp&&(e=r(e,i)),t instanceof RegExp&&(t=r(t,i));var o=n(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,o,s,a,c=r.indexOf(e),p=r.indexOf(t,c+1),u=c;if(c>=0&&p>0){for(n=[],o=r.length;u>=0&&!a;)u==c?(n.push(u),c=r.indexOf(e,u+1)):1==n.length?a=[n.pop(),p]:((i=n.pop())=0?c:p;n.length&&(a=[o,s])}return a}e.exports=t,t.range=n},9742:(e,t)=>{"use strict";t.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=c(e),s=o[0],a=o[1],p=new i(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),u=0,f=a>0?s-4:s;for(r=0;r>16&255,p[u++]=t>>8&255,p[u++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,p[u++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,p[u++]=t>>8&255,p[u++]=255&t),p},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=16383,a=0,c=n-i;ac?c:a+s));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function p(e,t,n){for(var i,o,s=[],a=t;a>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},9560:function(e,t,r){var n;!function(i){"use strict";function o(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function s(e,t,r,n,i,s){return o((a=o(o(t,e),o(n,s)))<<(c=i)|a>>>32-c,r);var a,c}function a(e,t,r,n,i,o,a){return s(t&r|~t&n,e,t,i,o,a)}function c(e,t,r,n,i,o,a){return s(t&n|r&~n,e,t,i,o,a)}function p(e,t,r,n,i,o,a){return s(t^r^n,e,t,i,o,a)}function u(e,t,r,n,i,o,a){return s(r^(t|~n),e,t,i,o,a)}function f(e,t){var r,n,i,s,f;e[t>>5]|=128<>>9<<4)]=t;var l=1732584193,d=-271733879,h=-1732584194,m=271733878;for(r=0;r>5]>>>t%32&255);return r}function d(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+n.charAt(15&t);return i}function m(e){return unescape(encodeURIComponent(e))}function y(e){return function(e){return l(f(d(e),8*e.length))}(m(e))}function g(e,t){return function(e,t){var r,n,i=d(e),o=[],s=[];for(o[15]=s[15]=void 0,i.length>16&&(i=f(i,8*e.length)),r=0;r<16;r+=1)o[r]=909522486^i[r],s[r]=1549556828^i[r];return n=f(o.concat(d(t)),512+8*t.length),l(f(s.concat(n),640))}(m(e),m(t))}function v(e,t,r){return t?r?g(t,e):h(g(t,e)):r?y(e):h(y(e))}void 0===(n=function(){return v}.call(t,r,t,e))||(e.exports=n)}()},3644:(e,t,r)=>{var n=r(1048),i=r(5623);e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),g(function(e){return e.split("\\\\").join(o).split("\\{").join(s).split("\\}").join(a).split("\\,").join(c).split("\\.").join(p)}(e),!0).map(f)):[]};var o="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",c="\0COMMA"+Math.random()+"\0",p="\0PERIOD"+Math.random()+"\0";function u(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function f(e){return e.split(o).join("\\").split(s).join("{").split(a).join("}").split(c).join(",").split(p).join(".")}function l(e){if(!e)return[""];var t=[],r=i("{","}",e);if(!r)return e.split(",");var n=r.pre,o=r.body,s=r.post,a=n.split(",");a[a.length-1]+="{"+o+"}";var c=l(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),t.push.apply(t,a),t}function d(e){return"{"+e+"}"}function h(e){return/^-?0\d/.test(e)}function m(e,t){return e<=t}function y(e,t){return e>=t}function g(e,t){var r=[],o=i("{","}",e);if(!o||/\$$/.test(o.pre))return[e];var s,c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),f=c||p,v=o.body.indexOf(",")>=0;if(!f&&!v)return o.post.match(/,.*\}/)?g(e=o.pre+"{"+o.body+a+o.post):[e];if(f)s=o.body.split(/\.\./);else if(1===(s=l(o.body)).length&&1===(s=g(s[0],!1).map(d)).length)return($=o.post.length?g(o.post,!1):[""]).map((function(e){return o.pre+s[0]+e}));var b,j=o.pre,$=o.post.length?g(o.post,!1):[""];if(f){var _=u(s[0]),x=u(s[1]),P=Math.max(s[0].length,s[1].length),w=3==s.length?Math.abs(u(s[2])):1,S=m;x<_&&(w*=-1,S=y);var O=s.some(h);b=[];for(var E=_;S(E,x);E+=w){var A;if(p)"\\"===(A=String.fromCharCode(E))&&(A="");else if(A=String(E),O){var I=P-A.length;if(I>0){var T=new Array(I+1).join("0");A=E<0?"-"+T+A.slice(1):T+A}}b.push(A)}}else b=n(s,(function(e){return g(e,!1)}));for(var k=0;k{"use strict";var n=r(9742),i=r(645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=c,t.h2=50;var s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return p(e,t,r)}function p(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|m(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(L(e,Uint8Array)){var t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return l(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer))return d(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(L(e,SharedArrayBuffer)||e&&L(e.buffer,SharedArrayBuffer)))return d(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);var i=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||z(e.length)?a(0):l(e):"Buffer"===e.type&&Array.isArray(e.data)?l(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return u(e),a(e<0?0:0|h(e))}function l(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),n=0;n=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||L(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return M(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(e).length;default:if(i)return n?-1:M(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,r);case"utf8":case"utf-8":return S(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return A(this,t,r);case"base64":return w(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),z(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){var o,s=1,a=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,r/=2}function p(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var u=-1;for(o=r;oa&&(r=a-c),o=r;o>=0;o--){for(var f=!0,l=0;li&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var s=0;s>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function w(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function S(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:p>223?3:p>191?2:1;if(i+f<=r)switch(f){case 1:p<128&&(u=p);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&p)<<6|63&o)>127&&(u=c);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(c=(15&p)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&p)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=f}return function(e){var t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);for(var r="",n=0;nn.length?c.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else{if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i)}i+=o.length}return n},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tr&&(e+=" ... "),""},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(L(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(o,s),p=this.slice(n,i),u=e.slice(t,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return j(this,e,t,r);case"utf8":case"utf-8":return $(this,e,t,r);case"ascii":case"latin1":case"binary":return _(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,r,n,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function D(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(e,t,r,n,o){return t=+t,r>>>=0,o||D(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function F(e,t,r,n,o){return t=+t,r>>>=0,o||D(e,0,r,8),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||k(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||k(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||k(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||k(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||k(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||k(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||k(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||k(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||k(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||k(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||R(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,n||R(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);R(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o>0)-a&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);R(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function q(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function z(e){return e!=e}var B=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},1924:(e,t,r)=>{"use strict";var n=r(210),i=r(5559),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},5559:(e,t,r)=>{"use strict";var n=r(8612),i=r(210),o=i("%Function.prototype.apply%"),s=i("%Function.prototype.call%"),a=i("%Reflect.apply%",!0)||n.call(s,o),c=i("%Object.getOwnPropertyDescriptor%",!0),p=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(p)try{p({},"a",{value:1})}catch(e){p=null}e.exports=function(e){var t=a(n,s,arguments);if(c&&p){var r=c(t,"length");r.configurable&&p(t,"length",{value:1+u(0,e.length-(arguments.length-1))})}return t};var f=function(){return a(n,o,arguments)};p?p(e.exports,"apply",{value:f}):e.exports.apply=f},1048:e=>{e.exports=function(e,r){for(var n=[],i=0;i{"use strict";var n=r(2215),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=Object.defineProperty,c=r(1044)(),p=a&&c,u=function(e,t,r,n){var i;(!(t in e)||"function"==typeof(i=n)&&"[object Function]"===o.call(i)&&n())&&(p?a(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},f=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=s.call(o,Object.getOwnPropertySymbols(t)));for(var a=0;a{function r(e,t,r,n){var o={};return function(s){if(!o[s]){var a={},c=[],p=[];for(p.push({node:s,processed:!1});p.length>0;){var u=p[p.length-1],f=u.processed,l=u.node;if(f)p.pop(),c.pop(),a[l]=!1,o[l]=!0,t&&0!==e[l].length||r.push(l);else{if(o[l]){p.pop();continue}if(a[l]){if(n){p.pop();continue}throw c.push(l),new i(c)}a[l]=!0,c.push(l);for(var d=e[l],h=d.length-1;h>=0;h--)p.push({node:d[h],processed:!1});u.processed=!0}}}}}var n=t.DepGraph=function(e){this.nodes={},this.outgoingEdges={},this.incomingEdges={},this.circular=e&&!!e.circular};n.prototype={size:function(){return Object.keys(this.nodes).length},addNode:function(e,t){this.hasNode(e)||(this.nodes[e]=2===arguments.length?t:e,this.outgoingEdges[e]=[],this.incomingEdges[e]=[])},removeNode:function(e){this.hasNode(e)&&(delete this.nodes[e],delete this.outgoingEdges[e],delete this.incomingEdges[e],[this.incomingEdges,this.outgoingEdges].forEach((function(t){Object.keys(t).forEach((function(r){var n=t[r].indexOf(e);n>=0&&t[r].splice(n,1)}),this)})))},hasNode:function(e){return this.nodes.hasOwnProperty(e)},getNodeData:function(e){if(this.hasNode(e))return this.nodes[e];throw new Error("Node does not exist: "+e)},setNodeData:function(e,t){if(!this.hasNode(e))throw new Error("Node does not exist: "+e);this.nodes[e]=t},addDependency:function(e,t){if(!this.hasNode(e))throw new Error("Node does not exist: "+e);if(!this.hasNode(t))throw new Error("Node does not exist: "+t);return-1===this.outgoingEdges[e].indexOf(t)&&this.outgoingEdges[e].push(t),-1===this.incomingEdges[t].indexOf(e)&&this.incomingEdges[t].push(e),!0},removeDependency:function(e,t){var r;this.hasNode(e)&&(r=this.outgoingEdges[e].indexOf(t))>=0&&this.outgoingEdges[e].splice(r,1),this.hasNode(t)&&(r=this.incomingEdges[t].indexOf(e))>=0&&this.incomingEdges[t].splice(r,1)},clone:function(){var e=this,t=new n;return Object.keys(e.nodes).forEach((function(r){t.nodes[r]=e.nodes[r],t.outgoingEdges[r]=e.outgoingEdges[r].slice(0),t.incomingEdges[r]=e.incomingEdges[r].slice(0)})),t},directDependenciesOf:function(e){if(this.hasNode(e))return this.outgoingEdges[e].slice(0);throw new Error("Node does not exist: "+e)},directDependantsOf:function(e){if(this.hasNode(e))return this.incomingEdges[e].slice(0);throw new Error("Node does not exist: "+e)},dependenciesOf:function(e,t){if(this.hasNode(e)){var n=[];r(this.outgoingEdges,t,n,this.circular)(e);var i=n.indexOf(e);return i>=0&&n.splice(i,1),n}throw new Error("Node does not exist: "+e)},dependantsOf:function(e,t){if(this.hasNode(e)){var n=[];r(this.incomingEdges,t,n,this.circular)(e);var i=n.indexOf(e);return i>=0&&n.splice(i,1),n}throw new Error("Node does not exist: "+e)},overallOrder:function(e){var t=this,n=[],i=Object.keys(this.nodes);if(0===i.length)return n;if(!this.circular){var o=r(this.outgoingEdges,!1,[],this.circular);i.forEach((function(e){o(e)}))}var s=r(this.outgoingEdges,e,n,this.circular);return i.filter((function(e){return 0===t.incomingEdges[e].length})).forEach((function(e){s(e)})),this.circular&&i.filter((function(e){return-1===n.indexOf(e)})).forEach((function(e){s(e)})),n},entryNodes:function(){var e=this;return Object.keys(this.nodes).filter((function(t){return 0===e.incomingEdges[t].length}))}},n.prototype.directDependentsOf=n.prototype.directDependantsOf,n.prototype.dependentsOf=n.prototype.dependantsOf;var i=t.DepGraphCycleError=function(e){var t="Dependency Cycle Found: "+e.join(" -> "),r=new Error(t);return r.cyclePath=e,Object.setPrototypeOf(r,Object.getPrototypeOf(this)),Error.captureStackTrace&&Error.captureStackTrace(r,i),r};i.prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(i,Error)},9373:(e,t,r)=>{"use strict";var n=r(3854),i=r(1146),o=r(7730),s=r(7364),a=r(6975),c=r(90),p=r(5688),u=r(3633),f=r(210),l=r(7113),d=r(1044)(),h=f("%Error%");function m(e,t){var r=new h(t);p(r,y),delete r.constructor;var o=c(e,l({AdvanceStringIndex:n,GetMethod:s,IsArray:a,Type:u},e));return i(r,"errors",o),r}d&&Object.defineProperty(m,"prototype",{writable:!1});var y=m.prototype;if(!o(y,"constructor",m)||!o(y,"message","")||!o(y,"name","AggregateError"))throw new h("unable to install AggregateError.prototype properties; please report this!");p(m.prototype,Error.prototype),e.exports=m},6630:(e,t,r)=>{"use strict";var n=r(8612),i=r(4289),o=r(5972).functionsHaveConfigurableNames(),s=r(9373),a=r(7114),c=r(4534),p=a(),u=n.call(p);Object.defineProperty&&(o&&Object.defineProperty(u,"name",{value:p.name}),Object.defineProperty(u,"prototype",{value:p.prototype})),i(u,{getPolyfill:a,implementation:s,shim:c}),e.exports=u},7114:(e,t,r)=>{"use strict";var n=r(9373);e.exports=function(){return"function"==typeof AggregateError?AggregateError:n}},4534:(e,t,r)=>{"use strict";var n=r(4289),i=r(2503)(),o=r(7114);e.exports=function(){var e=o();return n(i,{AggregateError:e},{AggregateError:function(){return i.AggregateError!==e}}),e}},4063:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var s=o[i];if(!e(t[s],r[s]))return!1}return!0}return t!=t&&r!=r}},3316:e=>{function t(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),s=t.get(o);return void 0===s&&(s=e.call(this,n),t.set(o,s)),s}function r(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function n(e,t,r,n,i){return r.bind(t,e,n,i)}function i(e,i){return n(e,this,1===e.length?t:r,i.cache.create(),i.serializer)}function o(){return JSON.stringify(arguments)}function s(){this.cache=Object.create(null)}s.prototype.has=function(e){return e in this.cache},s.prototype.get=function(e){return this.cache[e]},s.prototype.set=function(e,t){this.cache[e]=t};var a={create:function(){return new s}};e.exports=function(e,t){var r=t&&t.cache?t.cache:a,n=t&&t.serializer?t.serializer:o;return(t&&t.strategy?t.strategy:i)(e,{cache:r,serializer:n})},e.exports.strategies={variadic:function(e,t){return n(e,this,r,t.cache.create(),t.serializer)},monadic:function(e,r){return n(e,this,t,r.cache.create(),r.serializer)}}},7648:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,i="[object Function]";e.exports=function(e){var o=this;if("function"!=typeof o||n.call(o)!==i)throw new TypeError(t+o);for(var s,a=r.call(arguments,1),c=function(){if(this instanceof s){var t=o.apply(this,a.concat(r.call(arguments)));return Object(t)===t?t:this}return o.apply(e,a.concat(r.call(arguments)))},p=Math.max(0,o.length-a.length),u=[],f=0;f{"use strict";var n=r(7648);e.exports=Function.prototype.bind||n},5972:e=>{"use strict";var t=function(){return"string"==typeof function(){}.name},r=Object.getOwnPropertyDescriptor;if(r)try{r([],"length")}catch(e){r=null}t.functionsHaveConfigurableNames=function(){if(!t()||!r)return!1;var e=r((function(){}),"name");return!!e&&!!e.configurable};var n=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof n&&""!==function(){}.bind().name},e.exports=t},210:(e,t,r)=>{"use strict";var n,i=SyntaxError,o=Function,s=TypeError,a=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var p=function(){throw new s},u=c?function(){try{return p}catch(e){try{return c(arguments,"callee").get}catch(e){return p}}}():p,f=r(1405)(),l=Object.getPrototypeOf||function(e){return e.__proto__},d={},h="undefined"==typeof Uint8Array?n:l(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?l([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?l(l([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?l((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?l((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?l(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":h,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},y=function e(t){var r;if("%AsyncFunction%"===t)r=a("async function () {}");else if("%GeneratorFunction%"===t)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=a("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(r=l(i.prototype))}return m[t]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(8612),b=r(7642),j=v.call(Function.call,Array.prototype.concat),$=v.call(Function.apply,Array.prototype.splice),_=v.call(Function.call,String.prototype.replace),x=v.call(Function.call,String.prototype.slice),P=v.call(Function.call,RegExp.prototype.exec),w=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,O=function(e){var t=x(e,0,1),r=x(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return _(e,w,(function(e,t,r,i){n[n.length]=r?_(i,S,"$1"):t||e})),n},E=function(e,t){var r,n=e;if(b(g,n)&&(n="%"+(r=g[n])[0]+"%"),b(m,n)){var o=m[n];if(o===d&&(o=y(n)),void 0===o&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/g,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=O(e),n=r.length>0?r[0]:"",o=E("%"+n+"%",t),a=o.name,p=o.value,u=!1,f=o.alias;f&&(n=f[0],$(r,j([0,1],f)));for(var l=1,d=!0;l=r.length){var v=c(p,h);p=(d=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:p[h]}else d=b(p,h),p=p[h];d&&!u&&(m[a]=p)}}return p}},1221:e=>{"use strict";"undefined"!=typeof self?e.exports=self:"undefined"!=typeof window?e.exports=window:e.exports=Function("return this")()},2503:(e,t,r)=>{"use strict";var n=r(4289),i=r(1221),o=r(2168),s=r(9471),a=o(),c=function(){return a};n(c,{getPolyfill:o,implementation:i,shim:s}),e.exports=c},2168:(e,t,r)=>{"use strict";var n=r(1221);e.exports=function(){return"object"==typeof r.g&&r.g&&r.g.Math===Math&&r.g.Array===Array?r.g:n}},9471:(e,t,r)=>{"use strict";var n=r(4289),i=r(2168);e.exports=function(){var e=i();if(n.supportsDescriptors){var t=Object.getOwnPropertyDescriptor(e,"globalThis");t&&(!t.configurable||!t.enumerable&&t.writable&&globalThis===e)||Object.defineProperty(e,"globalThis",{configurable:!0,enumerable:!1,value:e,writable:!0})}else"object"==typeof globalThis&&globalThis===e||(e.globalThis=e);return e}},1044:(e,t,r)=>{"use strict";var n=r(210)("%Object.defineProperty%",!0),i=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},1405:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(5419);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},6410:(e,t,r)=>{"use strict";var n=r(5419);e.exports=function(){return n()&&!!Symbol.toStringTag}},7642:(e,t,r)=>{"use strict";var n=r(8612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},645:(e,t)=>{t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,c=(1<>1,u=-7,f=r?i-1:0,l=r?-1:1,d=e[t+f];for(f+=l,o=d&(1<<-u)-1,d>>=-u,u+=a;u>0;o=256*o+e[t+f],f+=l,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=256*s+e[t+f],f+=l,u-=8);if(0===o)o=1-p;else{if(o===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=p}return(d?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,c,p=8*o-i-1,u=(1<>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+f>=1?l/c:l*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=u?(a=0,s=u):s+f>=1?(a=(t*c-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[r+d]=255&a,d+=h,a/=256,i-=8);for(s=s<0;e[r+d]=255&s,d+=h,s/=256,p-=8);e[r+d-h]|=128*m}},8172:(e,t,r)=>{"use strict";function n(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:h(e)?3:0}function p(e,t){return 2===c(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){return 2===c(e)?e.get(t):e[t]}function f(e,t,r){var n=c(e);2===n?e.set(t,r):3===n?(e.delete(t),e.add(r)):e[t]=r}function l(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return J&&e instanceof Map}function h(e){return W&&e instanceof Set}function m(e){return e.o||e.t}function y(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ne(e);delete t[Z];for(var r=re(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=v),Object.freeze(e),t&&a(e,(function(e,t){return g(t,!0)}),!0)),e}function v(){n(2)}function b(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function j(e){var t=ie[e];return t||n(18,e),t}function $(e,t){ie[e]||(ie[e]=t)}function _(){return K}function x(e,t){t&&(j("Patches"),e.u=[],e.s=[],e.v=t)}function P(e){w(e),e.p.forEach(O),e.p=null}function w(e){e===K&&(K=e.l)}function S(e){return K={p:[],l:K,h:e,m:!0,_:0}}function O(e){var t=e[Z];0===t.i||1===t.i?t.j():t.O=!0}function E(e,t){t._=t.p.length;var r=t.p[0],i=void 0!==e&&e!==r;return t.h.g||j("ES5").S(t,e,i),i?(r[Z].P&&(P(t),n(4)),o(e)&&(e=A(t,e),t.l||T(t,e)),t.u&&j("Patches").M(r[Z].t,e,t.u,t.s)):e=A(t,r,[]),P(t),t.u&&t.v(t.u,t.s),e!==Y?e:void 0}function A(e,t,r){if(b(t))return t;var n=t[Z];if(!n)return a(t,(function(i,o){return I(e,n,t,i,o,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return T(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=4===n.i||5===n.i?n.o=y(n.k):n.o;a(3===n.i?new Set(i):i,(function(t,o){return I(e,n,i,t,o,r)})),T(e,i,!1),r&&e.u&&j("Patches").R(n,r,e.u,e.s)}return n.o}function I(e,t,r,n,s,a){if(i(s)){var c=A(e,s,a&&t&&3!==t.i&&!p(t.D,n)?a.concat(n):void 0);if(f(r,n,c),!i(c))return;e.m=!1}if(o(s)&&!b(s)){if(!e.h.F&&e._<1)return;A(e,s),t&&t.A.l||T(e,s)}}function T(e,t,r){void 0===r&&(r=!1),e.h.F&&e.m&&g(t,r)}function k(e,t){var r=e[Z];return(r?m(r):e)[t]}function R(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function D(e){e.P||(e.P=!0,e.l&&D(e.l))}function C(e){e.o||(e.o=y(e.t))}function F(e,t,r){var n=d(t)?j("MapSet").N(t,r):h(t)?j("MapSet").T(t,r):e.g?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:_(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=n,o=oe;r&&(i=[n],o=se);var s=Proxy.revocable(i,o),a=s.revoke,c=s.proxy;return n.k=c,n.j=a,c}(t,r):j("ES5").J(t,r);return(r?r.A:_()).p.push(n),n}function N(e){return i(e)||n(22,e),function e(t){if(!o(t))return t;var r,n=t[Z],i=c(t);if(n){if(!n.P&&(n.i<4||!j("ES5").K(n)))return n.t;n.I=!0,r=M(t,i),n.I=!1}else r=M(t,i);return a(r,(function(t,i){n&&u(n.t,t)===i||f(r,t,e(i))})),3===i?new Set(r):r}(e)}function M(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return y(e)}function q(){function e(e,t){var r=o[e];return r?r.enumerable=t:o[e]=r={configurable:!0,enumerable:t,get:function(){var t=this[Z];return oe.get(t,e)},set:function(t){var r=this[Z];oe.set(r,e,t)}},r}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][Z];if(!i.P)switch(i.i){case 5:n(i)&&D(i);break;case 4:r(i)&&D(i)}}}function r(e){for(var t=e.t,r=e.k,n=re(r),i=n.length-1;i>=0;i--){var o=n[i];if(o!==Z){var s=t[o];if(void 0===s&&!p(t,o))return!0;var a=r[o],c=a&&a[Z];if(c?c.t!==s:!l(a,s))return!0}}var u=!!t[Z];return n.length!==re(t).length+(u?0:1)}function n(e){var t=e.k;if(t.length!==e.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);if(r&&!r.get)return!0;for(var n=0;nae,applyPatches:()=>de,castDraft:()=>B,castImmutable:()=>V,createDraft:()=>he,current:()=>N,default:()=>ye,enableAllPlugins:()=>z,enableES5:()=>q,enableMapSet:()=>L,enablePatches:()=>U,finishDraft:()=>me,freeze:()=>g,immerable:()=>X,isDraft:()=>i,isDraftable:()=>o,nothing:()=>Y,original:()=>s,produce:()=>pe,produceWithPatches:()=>ue,setAutoFreeze:()=>fe,setUseProxies:()=>le});var H,K,G="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),J="undefined"!=typeof Map,W="undefined"!=typeof Set,Q="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Y=G?Symbol.for("immer-nothing"):((H={})["immer-nothing"]=!0,H),X=G?Symbol.for("immer-draftable"):"__$immer_draftable",Z=G?Symbol.for("immer-state"):"__$immer_state",ee="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",te=""+Object.prototype.constructor,re="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ne=Object.getOwnPropertyDescriptors||function(e){var t={};return re(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},ie={},oe={get:function(e,t){if(t===Z)return e;var r=m(e);if(!p(r,t))return function(e,t,r){var n,i=R(t,r);return i?"value"in i?i.value:null===(n=i.get)||void 0===n?void 0:n.call(e.k):void 0}(e,r,t);var n=r[t];return e.I||!o(n)?n:n===k(e.t,t)?(C(e),e.o[t]=F(e.A.h,n,e)):n},has:function(e,t){return t in m(e)},ownKeys:function(e){return Reflect.ownKeys(m(e))},set:function(e,t,r){var n=R(m(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=k(m(e),t),o=null==i?void 0:i[Z];if(o&&o.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(l(r,i)&&(void 0!==r||p(e.t,t)))return!0;C(e),D(e)}return e.o[t]===r&&"number"!=typeof r&&(void 0!==r||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==k(e.t,t)||t in e.t?(e.D[t]=!1,C(e),D(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=m(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){n(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){n(12)}},se={};a(oe,(function(e,t){se[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),se.deleteProperty=function(e,t){return se.set.call(this,e,t,void 0)},se.set=function(e,t,r){return oe.set.call(this,e[0],t,r,e[0])};var ae=function(){function e(e){var t=this;this.g=Q,this.F=!0,this.produce=function(e,r,i){if("function"==typeof e&&"function"!=typeof r){var s=r;r=e;var a=t;return function(e){var t=this;void 0===e&&(e=s);for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));var o=j("Patches").$;return i(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),ce=new ae,pe=ce.produce,ue=ce.produceWithPatches.bind(ce),fe=ce.setAutoFreeze.bind(ce),le=ce.setUseProxies.bind(ce),de=ce.applyPatches.bind(ce),he=ce.createDraft.bind(ce),me=ce.finishDraft.bind(ce);const ye=pe},5320:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,s=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},a=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,p="object"==typeof document&&void 0===document.all&&void 0!==document.all?document.all:{};e.exports=i?function(e){if(e===p)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!s(e)}:function(e){if(e===p)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(c)return function(e){try{return!s(e)&&(n.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=a.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},8420:(e,t,r)=>{"use strict";var n,i,o,s,a=r(1924),c=r(6410)();if(c){n=a("Object.prototype.hasOwnProperty"),i=a("RegExp.prototype.exec"),o={};var p=function(){throw o};s={toString:p,valueOf:p},"symbol"==typeof Symbol.toPrimitive&&(s[Symbol.toPrimitive]=p)}var u=a("Object.prototype.toString"),f=Object.getOwnPropertyDescriptor;e.exports=c?function(e){if(!e||"object"!=typeof e)return!1;var t=f(e,"lastIndex");if(!t||!n(t,"value"))return!1;try{i(e,s)}catch(e){return e===o}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===u(e)}},9981:(e,t,r)=>{"use strict";var n=String.prototype.valueOf,i=Object.prototype.toString,o=r(6410)();e.exports=function(e){return"string"==typeof e||"object"==typeof e&&(o?function(e){try{return n.call(e),!0}catch(e){return!1}}(e):"[object String]"===i.call(e))}},9038:(e,t)=>{var r=/~/,n=/~[01]/g;function i(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function o(e){return r.test(e)?e.replace(n,i):e}function s(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e)){for(const t of e)if("string"!=typeof t&&"number"!=typeof t)throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function a(e,t){if("object"!=typeof e)throw new Error("Invalid input object.");var r=(t=s(t)).length;if(1===r)return e;for(var n=1;ns,void 0===e[n]&&(Array.isArray(e)&&"-"===n&&(n=e.length),i&&(""!==t[s]&&t[s]<1/0||"-"===t[s]?e[n]=[]:e[n]={})),!i)break;e=e[n]}var c=e[n];return void 0===r?delete e[n]:e[n]=r,c}(e,t,r)}t.get=a,t.set=c,t.compile=function(e){var t=s(e);return{get:function(e){return a(e,t)},set:function(e,r){return c(e,t,r)}}}},2937:e=>{"use strict";const t=[],r=[],n=(e,n)=>{if(e===n)return 0;const i=e;e.length>n.length&&(e=n,n=i);let o=e.length,s=n.length;for(;o>0&&e.charCodeAt(~-o)===n.charCodeAt(~-s);)o--,s--;let a,c,p,u,f=0;for(;fc?u>c?c+1:u:u>p?p+1:u;return c};e.exports=n,e.exports.default=n},9208:(e,t,r)=>{var n,i="__lodash_hash_undefined__",o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/,a=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,u=/^\[object .+?Constructor\]$/,f="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,l="object"==typeof self&&self&&self.Object===Object&&self,d=f||l||Function("return this")(),h=Array.prototype,m=Function.prototype,y=Object.prototype,g=d["__core-js_shared__"],v=(n=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",b=m.toString,j=y.hasOwnProperty,$=y.toString,_=RegExp("^"+b.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=d.Symbol,P=h.splice,w=D(d,"Map"),S=D(Object,"create"),O=x?x.prototype:void 0,E=O?O.toString:void 0;function A(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},I.prototype.set=function(e,t){var r=this.__data__,n=k(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},T.prototype.clear=function(){this.__data__={hash:new A,map:new(w||I),string:new A}},T.prototype.delete=function(e){return R(this,e).delete(e)},T.prototype.get=function(e){return R(this,e).get(e)},T.prototype.has=function(e){return R(this,e).has(e)},T.prototype.set=function(e,t){return R(this,e).set(e,t),this};var C=N((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(U(e))return E?E.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return a.test(e)&&r.push(""),e.replace(c,(function(e,t,n,i){r.push(n?i.replace(p,"$1"):t||e)})),r}));function F(e){if("string"==typeof e||U(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function N(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s),s};return r.cache=new(N.Cache||T),r}N.Cache=T;var M=Array.isArray;function q(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function U(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==$.call(e)}e.exports=function(e,t,r){var n=null==e?void 0:function(e,t){var r;t=function(e,t){if(M(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!U(e))||s.test(e)||!o.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:M(r=t)?r:C(r);for(var n=0,i=t.length;null!=e&&n{var n,i="__lodash_hash_undefined__",o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/,a=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,u=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,l="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,d="object"==typeof self&&self&&self.Object===Object&&self,h=l||d||Function("return this")(),m=Array.prototype,y=Function.prototype,g=Object.prototype,v=h["__core-js_shared__"],b=(n=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",j=y.toString,$=g.hasOwnProperty,_=g.toString,x=RegExp("^"+j.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=h.Symbol,w=m.splice,S=F(h,"Map"),O=F(Object,"create"),E=P?P.prototype:void 0,A=E?E.toString:void 0;function I(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1},T.prototype.set=function(e,t){var r=this.__data__,n=D(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},k.prototype.clear=function(){this.__data__={hash:new I,map:new(S||T),string:new I}},k.prototype.delete=function(e){return C(this,e).delete(e)},k.prototype.get=function(e){return C(this,e).get(e)},k.prototype.has=function(e){return C(this,e).has(e)},k.prototype.set=function(e,t){return C(this,e).set(e,t),this};var M=U((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(V(e))return A?A.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return a.test(e)&&r.push(""),e.replace(c,(function(e,t,n,i){r.push(n?i.replace(p,"$1"):t||e)})),r}));function q(e){if("string"==typeof e||V(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function U(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s),s};return r.cache=new(U.Cache||k),r}function L(e,t){return e===t||e!=e&&t!=t}U.Cache=k;var z=Array.isArray;function B(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function V(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==_.call(e)}e.exports=function(e,t,r){return null==e?e:function(e,t,r,n){if(!B(e))return e;t=function(e,t){if(z(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!V(e))||s.test(e)||!o.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:function(e){return z(e)?e:M(e)}(t);for(var i=-1,a=t.length,c=a-1,p=e;null!=p&&++i{var n,i="__lodash_hash_undefined__",o=/^\./,s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,c=/^\[object .+?Constructor\]$/,p="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,u="object"==typeof self&&self&&self.Object===Object&&self,f=p||u||Function("return this")(),l=Array.prototype,d=Function.prototype,h=Object.prototype,m=f["__core-js_shared__"],y=(n=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",g=d.toString,v=h.hasOwnProperty,b=h.toString,j=RegExp("^"+g.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=f.Symbol,_=l.splice,x=k(f,"Map"),P=k(Object,"create"),w=$?$.prototype:void 0,S=w?w.toString:void 0;function O(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},E.prototype.set=function(e,t){var r=this.__data__,n=I(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},A.prototype.clear=function(){this.__data__={hash:new O,map:new(x||E),string:new O}},A.prototype.delete=function(e){return T(this,e).delete(e)},A.prototype.get=function(e){return T(this,e).get(e)},A.prototype.has=function(e){return T(this,e).has(e)},A.prototype.set=function(e,t){return T(this,e).set(e,t),this};var R=C((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(M(e))return S?S.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return o.test(e)&&r.push(""),e.replace(s,(function(e,t,n,i){r.push(n?i.replace(a,"$1"):t||e)})),r}));function D(e){if("string"==typeof e||M(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function C(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s),s};return r.cache=new(C.Cache||A),r}C.Cache=A;var F=Array.isArray;function N(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function M(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==b.call(e)}e.exports=function(e){return F(e)?function(e,t){for(var r=-1,n=e?e.length:0,i=Array(n);++r"']/g,G=RegExp(H.source),J=RegExp(K.source),W=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,re=RegExp(te.source),ne=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,le=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,ge=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,je=/['\n\r\u2028\u2029\\]/g,$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="a-z\\xdf-\\xf6\\xf8-\\xff",xe="A-Z\\xc0-\\xd6\\xd8-\\xde",Pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",we="["+Pe+"]",Se="["+$e+"]",Oe="\\d+",Ee="["+_e+"]",Ae="[^\\ud800-\\udfff"+Pe+Oe+"\\u2700-\\u27bf"+_e+xe+"]",Ie="\\ud83c[\\udffb-\\udfff]",Te="[^\\ud800-\\udfff]",ke="(?:\\ud83c[\\udde6-\\uddff]){2}",Re="[\\ud800-\\udbff][\\udc00-\\udfff]",De="["+xe+"]",Ce="(?:"+Ee+"|"+Ae+")",Fe="(?:"+De+"|"+Ae+")",Ne="(?:['’](?:d|ll|m|re|s|t|ve))?",Me="(?:['’](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Se+"|"+Ie+")?",Ue="[\\ufe0e\\ufe0f]?",Le=Ue+qe+"(?:\\u200d(?:"+[Te,ke,Re].join("|")+")"+Ue+qe+")*",ze="(?:"+["[\\u2700-\\u27bf]",ke,Re].join("|")+")"+Le,Be="(?:"+[Te+Se+"?",Se,ke,Re,"[\\ud800-\\udfff]"].join("|")+")",Ve=RegExp("['’]","g"),He=RegExp(Se,"g"),Ke=RegExp(Ie+"(?="+Ie+")|"+Be+Le,"g"),Ge=RegExp([De+"?"+Ee+"+"+Ne+"(?="+[we,De,"$"].join("|")+")",Fe+"+"+Me+"(?="+[we,De+Ce,"$"].join("|")+")",De+"?"+Ce+"+"+Ne,De+"+"+Me,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,ze].join("|"),"g"),Je=RegExp("[\\u200d\\ud800-\\udfff"+$e+"\\ufe0e\\ufe0f]"),We=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ye=-1,Xe={};Xe[R]=Xe[D]=Xe[C]=Xe[F]=Xe[N]=Xe[M]=Xe[q]=Xe[U]=Xe[L]=!0,Xe[m]=Xe[y]=Xe[T]=Xe[g]=Xe[k]=Xe[v]=Xe[b]=Xe[j]=Xe[_]=Xe[x]=Xe[P]=Xe[S]=Xe[O]=Xe[E]=Xe[I]=!1;var Ze={};Ze[m]=Ze[y]=Ze[T]=Ze[k]=Ze[g]=Ze[v]=Ze[R]=Ze[D]=Ze[C]=Ze[F]=Ze[N]=Ze[_]=Ze[x]=Ze[P]=Ze[S]=Ze[O]=Ze[E]=Ze[A]=Ze[M]=Ze[q]=Ze[U]=Ze[L]=!0,Ze[b]=Ze[j]=Ze[I]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,rt=parseInt,nt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,it="object"==typeof self&&self&&self.Object===Object&&self,ot=nt||it||Function("return this")(),st=t&&!t.nodeType&&t,at=st&&e&&!e.nodeType&&e,ct=at&&at.exports===st,pt=ct&&nt.process,ut=function(){try{return at&&at.require&&at.require("util").types||pt&&pt.binding&&pt.binding("util")}catch(e){}}(),ft=ut&&ut.isArrayBuffer,lt=ut&&ut.isDate,dt=ut&&ut.isMap,ht=ut&&ut.isRegExp,mt=ut&&ut.isSet,yt=ut&&ut.isTypedArray;function gt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function vt(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i-1}function Pt(e,t,r){for(var n=-1,i=null==e?0:e.length;++n-1;);return r}function Gt(e,t){for(var r=e.length;r--&&Rt(t,e[r],0)>-1;);return r}function Jt(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var Wt=Mt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Qt=Mt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Yt(e){return"\\"+et[e]}function Xt(e){return Je.test(e)}function Zt(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function er(e,t){return function(r){return e(t(r))}}function tr(e,t){for(var r=-1,n=e.length,i=0,o=[];++r",""":'"',"'":"'"}),cr=function e(t){var r,n=(t=null==t?ot:cr.defaults(ot.Object(),t,cr.pick(ot,Qe))).Array,ie=t.Date,$e=t.Error,_e=t.Function,xe=t.Math,Pe=t.Object,we=t.RegExp,Se=t.String,Oe=t.TypeError,Ee=n.prototype,Ae=_e.prototype,Ie=Pe.prototype,Te=t["__core-js_shared__"],ke=Ae.toString,Re=Ie.hasOwnProperty,De=0,Ce=(r=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Fe=Ie.toString,Ne=ke.call(Pe),Me=ot._,qe=we("^"+ke.call(Re).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=ct?t.Buffer:i,Le=t.Symbol,ze=t.Uint8Array,Be=Ue?Ue.allocUnsafe:i,Ke=er(Pe.getPrototypeOf,Pe),Je=Pe.create,et=Ie.propertyIsEnumerable,nt=Ee.splice,it=Le?Le.isConcatSpreadable:i,st=Le?Le.iterator:i,at=Le?Le.toStringTag:i,pt=function(){try{var e=po(Pe,"defineProperty");return e({},"",{}),e}catch(e){}}(),ut=t.clearTimeout!==ot.clearTimeout&&t.clearTimeout,It=ie&&ie.now!==ot.Date.now&&ie.now,Mt=t.setTimeout!==ot.setTimeout&&t.setTimeout,pr=xe.ceil,ur=xe.floor,fr=Pe.getOwnPropertySymbols,lr=Ue?Ue.isBuffer:i,dr=t.isFinite,hr=Ee.join,mr=er(Pe.keys,Pe),yr=xe.max,gr=xe.min,vr=ie.now,br=t.parseInt,jr=xe.random,$r=Ee.reverse,_r=po(t,"DataView"),xr=po(t,"Map"),Pr=po(t,"Promise"),wr=po(t,"Set"),Sr=po(t,"WeakMap"),Or=po(Pe,"create"),Er=Sr&&new Sr,Ar={},Ir=qo(_r),Tr=qo(xr),kr=qo(Pr),Rr=qo(wr),Dr=qo(Sr),Cr=Le?Le.prototype:i,Fr=Cr?Cr.valueOf:i,Nr=Cr?Cr.toString:i;function Mr(e){if(ra(e)&&!Hs(e)&&!(e instanceof zr)){if(e instanceof Lr)return e;if(Re.call(e,"__wrapped__"))return Uo(e)}return new Lr(e)}var qr=function(){function e(){}return function(t){if(!ta(t))return{};if(Je)return Je(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function Ur(){}function Lr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function zr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Br(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function an(e,t,r,n,o,s){var a,c=1&t,p=2&t,u=4&t;if(r&&(a=o?r(e,n,o,s):r(e)),a!==i)return a;if(!ta(e))return e;var f=Hs(e);if(f){if(a=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!c)return Oi(e,a)}else{var l=lo(e),d=l==j||l==$;if(Ws(e))return $i(e,c);if(l==P||l==m||d&&!o){if(a=p||d?{}:mo(e),!c)return p?function(e,t){return Ei(e,fo(e),t)}(e,function(e,t){return e&&Ei(t,Ra(t),e)}(a,e)):function(e,t){return Ei(e,uo(e),t)}(e,rn(a,e))}else{if(!Ze[l])return o?e:{};a=function(e,t,r){var n,i=e.constructor;switch(t){case T:return _i(e);case g:case v:return new i(+e);case k:return function(e,t){var r=t?_i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case R:case D:case C:case F:case N:case M:case q:case U:case L:return xi(e,r);case _:return new i;case x:case E:return new i(e);case S:return function(e){var t=new e.constructor(e.source,le.exec(e));return t.lastIndex=e.lastIndex,t}(e);case O:return new i;case A:return n=e,Fr?Pe(Fr.call(n)):{}}}(e,l,c)}}s||(s=new Gr);var h=s.get(e);if(h)return h;s.set(e,a),aa(e)?e.forEach((function(n){a.add(an(n,t,r,n,e,s))})):na(e)&&e.forEach((function(n,i){a.set(i,an(n,t,r,i,e,s))}));var y=f?i:(u?p?ro:to:p?Ra:ka)(e);return bt(y||e,(function(n,i){y&&(n=e[i=n]),Zr(a,i,an(n,t,r,i,e,s))})),a}function cn(e,t,r){var n=r.length;if(null==e)return!n;for(e=Pe(e);n--;){var o=r[n],s=t[o],a=e[o];if(a===i&&!(o in e)||!s(a))return!1}return!0}function pn(e,t,r){if("function"!=typeof e)throw new Oe(o);return Io((function(){e.apply(i,r)}),t)}function un(e,t,r,n){var i=-1,o=xt,s=!0,a=e.length,c=[],p=t.length;if(!a)return c;r&&(t=wt(t,Bt(r))),n?(o=Pt,s=!1):t.length>=200&&(o=Ht,s=!1,t=new Kr(t));e:for(;++i-1},Vr.prototype.set=function(e,t){var r=this.__data__,n=en(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Hr.prototype.clear=function(){this.size=0,this.__data__={hash:new Br,map:new(xr||Vr),string:new Br}},Hr.prototype.delete=function(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t},Hr.prototype.get=function(e){return ao(this,e).get(e)},Hr.prototype.has=function(e){return ao(this,e).has(e)},Hr.prototype.set=function(e,t){var r=ao(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Kr.prototype.add=Kr.prototype.push=function(e){return this.__data__.set(e,s),this},Kr.prototype.has=function(e){return this.__data__.has(e)},Gr.prototype.clear=function(){this.__data__=new Vr,this.size=0},Gr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Gr.prototype.get=function(e){return this.__data__.get(e)},Gr.prototype.has=function(e){return this.__data__.has(e)},Gr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Vr){var n=r.__data__;if(!xr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Hr(n)}return r.set(e,t),this.size=r.size,this};var fn=Ti(bn),ln=Ti(jn,!0);function dn(e,t){var r=!0;return fn(e,(function(e,n,i){return r=!!t(e,n,i)})),r}function hn(e,t,r){for(var n=-1,o=e.length;++n0&&r(a)?t>1?yn(a,t-1,r,n,i):St(i,a):n||(i[i.length]=a)}return i}var gn=ki(),vn=ki(!0);function bn(e,t){return e&&gn(e,t,ka)}function jn(e,t){return e&&vn(e,t,ka)}function $n(e,t){return _t(t,(function(t){return Xs(e[t])}))}function _n(e,t){for(var r=0,n=(t=gi(t,e)).length;null!=e&&rt}function Sn(e,t){return null!=e&&Re.call(e,t)}function On(e,t){return null!=e&&t in Pe(e)}function En(e,t,r){for(var o=r?Pt:xt,s=e[0].length,a=e.length,c=a,p=n(a),u=1/0,f=[];c--;){var l=e[c];c&&t&&(l=wt(l,Bt(t))),u=gr(l.length,u),p[c]=!r&&(t||s>=120&&l.length>=120)?new Kr(c&&l):i}l=e[0];var d=-1,h=p[0];e:for(;++d=a?c:c*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}));n--;)e[n]=e[n].value;return e}(i)}function Bn(e,t,r){for(var n=-1,i=t.length,o={};++n-1;)a!==e&&nt.call(a,c,1),nt.call(e,c,1);return e}function Hn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;go(i)?nt.call(e,i,1):pi(e,i)}}return e}function Kn(e,t){return e+ur(jr()*(t-e+1))}function Gn(e,t){var r="";if(!e||t<1||t>f)return r;do{t%2&&(r+=e),(t=ur(t/2))&&(e+=e)}while(t);return r}function Jn(e,t){return To(wo(e,t,ic),e+"")}function Wn(e){return Wr(La(e))}function Qn(e,t){var r=La(e);return Do(r,sn(t,0,r.length))}function Yn(e,t,r,n){if(!ta(e))return e;for(var o=-1,s=(t=gi(t,e)).length,a=s-1,c=e;null!=c&&++oo?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=n(o);++i>>1,s=e[o];null!==s&&!pa(s)&&(r?s<=t:s=200){var p=t?null:Gi(e);if(p)return rr(p);s=!1,i=Ht,c=new Kr}else c=t?[]:a;e:for(;++n=n?e:ti(e,t,r)}var ji=ut||function(e){return ot.clearTimeout(e)};function $i(e,t){if(t)return e.slice();var r=e.length,n=Be?Be(r):new e.constructor(r);return e.copy(n),n}function _i(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function xi(e,t){var r=t?_i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Pi(e,t){if(e!==t){var r=e!==i,n=null===e,o=e==e,s=pa(e),a=t!==i,c=null===t,p=t==t,u=pa(t);if(!c&&!u&&!s&&e>t||s&&a&&p&&!c&&!u||n&&a&&p||!r&&p||!o)return 1;if(!n&&!s&&!u&&e1?r[o-1]:i,a=o>2?r[2]:i;for(s=e.length>3&&"function"==typeof s?(o--,s):i,a&&vo(r[0],r[1],a)&&(s=o<3?i:s,o=1),t=Pe(t);++n-1?o[s?t[a]:a]:i}}function Ni(e){return eo((function(t){var r=t.length,n=r,s=Lr.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new Oe(o);if(s&&!c&&"wrapper"==io(a))var c=new Lr([],!0)}for(n=c?n:r;++n1&&b.reverse(),d&&fc))return!1;var u=s.get(e),f=s.get(t);if(u&&f)return u==t&&f==e;var l=-1,d=!0,h=2&r?new Kr:i;for(s.set(e,t),s.set(t,e);++l-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return bt(h,(function(r){var n="_."+r[0];t&r[1]&&!xt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(n),r)))}function Ro(e){var t=0,r=0;return function(){var n=vr(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Do(e,t){var r=-1,n=e.length,o=n-1;for(t=t===i?n:t;++r1?e[t-1]:i;return r="function"==typeof r?(e.pop(),r):i,ss(e,r)}));function ds(e){var t=Mr(e);return t.__chain__=!0,t}function hs(e,t){return t(e)}var ms=eo((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return on(t,e)};return!(t>1||this.__actions__.length)&&n instanceof zr&&go(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:hs,args:[o],thisArg:i}),new Lr(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ys=Ai((function(e,t,r){Re.call(e,r)?++e[r]:nn(e,r,1)})),gs=Fi(Vo),vs=Fi(Ho);function bs(e,t){return(Hs(e)?bt:fn)(e,so(t,3))}function js(e,t){return(Hs(e)?jt:ln)(e,so(t,3))}var $s=Ai((function(e,t,r){Re.call(e,r)?e[r].push(t):nn(e,r,[t])})),_s=Jn((function(e,t,r){var i=-1,o="function"==typeof t,s=Gs(e)?n(e.length):[];return fn(e,(function(e){s[++i]=o?gt(t,e,r):An(e,t,r)})),s})),xs=Ai((function(e,t,r){nn(e,r,t)}));function Ps(e,t){return(Hs(e)?wt:Nn)(e,so(t,3))}var ws=Ai((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]})),Ss=Jn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&vo(e,t[0],t[1])?t=[]:r>2&&vo(t[0],t[1],t[2])&&(t=[t[0]]),zn(e,yn(t,1),[])})),Os=It||function(){return ot.Date.now()};function Es(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,Wi(e,p,i,i,i,i,t)}function As(e,t){var r;if("function"!=typeof t)throw new Oe(o);return e=ma(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var Is=Jn((function(e,t,r){var n=1;if(r.length){var i=tr(r,oo(Is));n|=c}return Wi(e,n,t,r,i)})),Ts=Jn((function(e,t,r){var n=3;if(r.length){var i=tr(r,oo(Ts));n|=c}return Wi(t,n,e,r,i)}));function ks(e,t,r){var n,s,a,c,p,u,f=0,l=!1,d=!1,h=!0;if("function"!=typeof e)throw new Oe(o);function m(t){var r=n,o=s;return n=s=i,f=t,c=e.apply(o,r)}function y(e){return f=e,p=Io(v,t),l?m(e):c}function g(e){var r=e-u;return u===i||r>=t||r<0||d&&e-f>=a}function v(){var e=Os();if(g(e))return b(e);p=Io(v,function(e){var r=t-(e-u);return d?gr(r,a-(e-f)):r}(e))}function b(e){return p=i,h&&n?m(e):(n=s=i,c)}function j(){var e=Os(),r=g(e);if(n=arguments,s=this,u=e,r){if(p===i)return y(u);if(d)return ji(p),p=Io(v,t),m(u)}return p===i&&(p=Io(v,t)),c}return t=ga(t)||0,ta(r)&&(l=!!r.leading,a=(d="maxWait"in r)?yr(ga(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),j.cancel=function(){p!==i&&ji(p),f=0,n=u=s=p=i},j.flush=function(){return p===i?c:b(Os())},j}var Rs=Jn((function(e,t){return pn(e,1,t)})),Ds=Jn((function(e,t,r){return pn(e,ga(t)||0,r)}));function Cs(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(o);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Cs.Cache||Hr),r}function Fs(e){if("function"!=typeof e)throw new Oe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Cs.Cache=Hr;var Ns=vi((function(e,t){var r=(t=1==t.length&&Hs(t[0])?wt(t[0],Bt(so())):wt(yn(t,1),Bt(so()))).length;return Jn((function(n){for(var i=-1,o=gr(n.length,r);++i=t})),Vs=In(function(){return arguments}())?In:function(e){return ra(e)&&Re.call(e,"callee")&&!et.call(e,"callee")},Hs=n.isArray,Ks=ft?Bt(ft):function(e){return ra(e)&&Pn(e)==T};function Gs(e){return null!=e&&ea(e.length)&&!Xs(e)}function Js(e){return ra(e)&&Gs(e)}var Ws=lr||gc,Qs=lt?Bt(lt):function(e){return ra(e)&&Pn(e)==v};function Ys(e){if(!ra(e))return!1;var t=Pn(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!oa(e)}function Xs(e){if(!ta(e))return!1;var t=Pn(e);return t==j||t==$||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Zs(e){return"number"==typeof e&&e==ma(e)}function ea(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ra(e){return null!=e&&"object"==typeof e}var na=dt?Bt(dt):function(e){return ra(e)&&lo(e)==_};function ia(e){return"number"==typeof e||ra(e)&&Pn(e)==x}function oa(e){if(!ra(e)||Pn(e)!=P)return!1;var t=Ke(e);if(null===t)return!0;var r=Re.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ke.call(r)==Ne}var sa=ht?Bt(ht):function(e){return ra(e)&&Pn(e)==S},aa=mt?Bt(mt):function(e){return ra(e)&&lo(e)==O};function ca(e){return"string"==typeof e||!Hs(e)&&ra(e)&&Pn(e)==E}function pa(e){return"symbol"==typeof e||ra(e)&&Pn(e)==A}var ua=yt?Bt(yt):function(e){return ra(e)&&ea(e.length)&&!!Xe[Pn(e)]},fa=Vi(Fn),la=Vi((function(e,t){return e<=t}));function da(e){if(!e)return[];if(Gs(e))return ca(e)?or(e):Oi(e);if(st&&e[st])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[st]());var t=lo(e);return(t==_?Zt:t==O?rr:La)(e)}function ha(e){return e?(e=ga(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ma(e){var t=ha(e),r=t%1;return t==t?r?t-r:t:0}function ya(e){return e?sn(ma(e),0,d):0}function ga(e){if("number"==typeof e)return e;if(pa(e))return l;if(ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=zt(e);var r=he.test(e);return r||ye.test(e)?rt(e.slice(2),r?2:8):de.test(e)?l:+e}function va(e){return Ei(e,Ra(e))}function ba(e){return null==e?"":ai(e)}var ja=Ii((function(e,t){if(_o(t)||Gs(t))Ei(t,ka(t),e);else for(var r in t)Re.call(t,r)&&Zr(e,r,t[r])})),$a=Ii((function(e,t){Ei(t,Ra(t),e)})),_a=Ii((function(e,t,r,n){Ei(t,Ra(t),e,n)})),xa=Ii((function(e,t,r,n){Ei(t,ka(t),e,n)})),Pa=eo(on),wa=Jn((function(e,t){e=Pe(e);var r=-1,n=t.length,o=n>2?t[2]:i;for(o&&vo(t[0],t[1],o)&&(n=1);++r1),t})),Ei(e,ro(e),r),n&&(r=an(r,7,Xi));for(var i=t.length;i--;)pi(r,t[i]);return r})),Na=eo((function(e,t){return null==e?{}:function(e,t){return Bn(e,t,(function(t,r){return Ea(e,r)}))}(e,t)}));function Ma(e,t){if(null==e)return{};var r=wt(ro(e),(function(e){return[e]}));return t=so(t),Bn(e,r,(function(e,r){return t(e,r[0])}))}var qa=Ji(ka),Ua=Ji(Ra);function La(e){return null==e?[]:Vt(e,ka(e))}var za=Di((function(e,t,r){return t=t.toLowerCase(),e+(r?Ba(t):t)}));function Ba(e){return Ya(ba(e).toLowerCase())}function Va(e){return(e=ba(e))&&e.replace(ve,Wt).replace(He,"")}var Ha=Di((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Ka=Di((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ga=Ri("toLowerCase"),Ja=Di((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()})),Wa=Di((function(e,t,r){return e+(r?" ":"")+Ya(t)})),Qa=Di((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Ya=Ri("toUpperCase");function Xa(e,t,r){return e=ba(e),(t=r?i:t)===i?function(e){return We.test(e)}(e)?function(e){return e.match(Ge)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Za=Jn((function(e,t){try{return gt(e,i,t)}catch(e){return Ys(e)?e:new $e(e)}})),ec=eo((function(e,t){return bt(t,(function(t){t=Mo(t),nn(e,t,Is(e[t],e))})),e}));function tc(e){return function(){return e}}var rc=Ni(),nc=Ni(!0);function ic(e){return e}function oc(e){return Dn("function"==typeof e?e:an(e,1))}var sc=Jn((function(e,t){return function(r){return An(r,e,t)}})),ac=Jn((function(e,t){return function(r){return An(e,r,t)}}));function cc(e,t,r){var n=ka(t),i=$n(t,n);null!=r||ta(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=$n(t,ka(t)));var o=!(ta(r)&&"chain"in r&&!r.chain),s=Xs(e);return bt(i,(function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__),i=r.__actions__=Oi(this.__actions__);return i.push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,St([this.value()],arguments))})})),e}function pc(){}var uc=Li(wt),fc=Li($t),lc=Li(At);function dc(e){return bo(e)?Nt(Mo(e)):function(e){return function(t){return _n(t,e)}}(e)}var hc=Bi(),mc=Bi(!0);function yc(){return[]}function gc(){return!1}var vc,bc=Ui((function(e,t){return e+t}),0),jc=Ki("ceil"),$c=Ui((function(e,t){return e/t}),1),_c=Ki("floor"),xc=Ui((function(e,t){return e*t}),1),Pc=Ki("round"),wc=Ui((function(e,t){return e-t}),0);return Mr.after=function(e,t){if("function"!=typeof t)throw new Oe(o);return e=ma(e),function(){if(--e<1)return t.apply(this,arguments)}},Mr.ary=Es,Mr.assign=ja,Mr.assignIn=$a,Mr.assignInWith=_a,Mr.assignWith=xa,Mr.at=Pa,Mr.before=As,Mr.bind=Is,Mr.bindAll=ec,Mr.bindKey=Ts,Mr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Hs(e)?e:[e]},Mr.chain=ds,Mr.chunk=function(e,t,r){t=(r?vo(e,t,r):t===i)?1:yr(ma(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,a=0,c=n(pr(o/t));so?0:o+r),(n=n===i||n>o?o:ma(n))<0&&(n+=o),n=r>n?0:ya(n);r>>0)?(e=ba(e))&&("string"==typeof t||null!=t&&!sa(t))&&!(t=ai(t))&&Xt(e)?bi(or(e),0,r):e.split(t,r):[]},Mr.spread=function(e,t){if("function"!=typeof e)throw new Oe(o);return t=null==t?0:yr(ma(t),0),Jn((function(r){var n=r[t],i=bi(r,0,t);return n&&St(i,n),gt(e,this,i)}))},Mr.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},Mr.take=function(e,t,r){return e&&e.length?ti(e,0,(t=r||t===i?1:ma(t))<0?0:t):[]},Mr.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?ti(e,(t=n-(t=r||t===i?1:ma(t)))<0?0:t,n):[]},Mr.takeRightWhile=function(e,t){return e&&e.length?fi(e,so(t,3),!1,!0):[]},Mr.takeWhile=function(e,t){return e&&e.length?fi(e,so(t,3)):[]},Mr.tap=function(e,t){return t(e),e},Mr.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new Oe(o);return ta(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ks(e,t,{leading:n,maxWait:t,trailing:i})},Mr.thru=hs,Mr.toArray=da,Mr.toPairs=qa,Mr.toPairsIn=Ua,Mr.toPath=function(e){return Hs(e)?wt(e,Mo):pa(e)?[e]:Oi(No(ba(e)))},Mr.toPlainObject=va,Mr.transform=function(e,t,r){var n=Hs(e),i=n||Ws(e)||ua(e);if(t=so(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:ta(e)&&Xs(o)?qr(Ke(e)):{}}return(i?bt:bn)(e,(function(e,n,i){return t(r,e,n,i)})),r},Mr.unary=function(e){return Es(e,1)},Mr.union=rs,Mr.unionBy=ns,Mr.unionWith=is,Mr.uniq=function(e){return e&&e.length?ci(e):[]},Mr.uniqBy=function(e,t){return e&&e.length?ci(e,so(t,2)):[]},Mr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ci(e,i,t):[]},Mr.unset=function(e,t){return null==e||pi(e,t)},Mr.unzip=os,Mr.unzipWith=ss,Mr.update=function(e,t,r){return null==e?e:ui(e,t,yi(r))},Mr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:ui(e,t,yi(r),n)},Mr.values=La,Mr.valuesIn=function(e){return null==e?[]:Vt(e,Ra(e))},Mr.without=as,Mr.words=Xa,Mr.wrap=function(e,t){return Ms(yi(t),e)},Mr.xor=cs,Mr.xorBy=ps,Mr.xorWith=us,Mr.zip=fs,Mr.zipObject=function(e,t){return hi(e||[],t||[],Zr)},Mr.zipObjectDeep=function(e,t){return hi(e||[],t||[],Yn)},Mr.zipWith=ls,Mr.entries=qa,Mr.entriesIn=Ua,Mr.extend=$a,Mr.extendWith=_a,cc(Mr,Mr),Mr.add=bc,Mr.attempt=Za,Mr.camelCase=za,Mr.capitalize=Ba,Mr.ceil=jc,Mr.clamp=function(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=(r=ga(r))==r?r:0),t!==i&&(t=(t=ga(t))==t?t:0),sn(ga(e),t,r)},Mr.clone=function(e){return an(e,4)},Mr.cloneDeep=function(e){return an(e,5)},Mr.cloneDeepWith=function(e,t){return an(e,5,t="function"==typeof t?t:i)},Mr.cloneWith=function(e,t){return an(e,4,t="function"==typeof t?t:i)},Mr.conformsTo=function(e,t){return null==t||cn(e,t,ka(t))},Mr.deburr=Va,Mr.defaultTo=function(e,t){return null==e||e!=e?t:e},Mr.divide=$c,Mr.endsWith=function(e,t,r){e=ba(e),t=ai(t);var n=e.length,o=r=r===i?n:sn(ma(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t},Mr.eq=Ls,Mr.escape=function(e){return(e=ba(e))&&J.test(e)?e.replace(K,Qt):e},Mr.escapeRegExp=function(e){return(e=ba(e))&&re.test(e)?e.replace(te,"\\$&"):e},Mr.every=function(e,t,r){var n=Hs(e)?$t:dn;return r&&vo(e,t,r)&&(t=i),n(e,so(t,3))},Mr.find=gs,Mr.findIndex=Vo,Mr.findKey=function(e,t){return Tt(e,so(t,3),bn)},Mr.findLast=vs,Mr.findLastIndex=Ho,Mr.findLastKey=function(e,t){return Tt(e,so(t,3),jn)},Mr.floor=_c,Mr.forEach=bs,Mr.forEachRight=js,Mr.forIn=function(e,t){return null==e?e:gn(e,so(t,3),Ra)},Mr.forInRight=function(e,t){return null==e?e:vn(e,so(t,3),Ra)},Mr.forOwn=function(e,t){return e&&bn(e,so(t,3))},Mr.forOwnRight=function(e,t){return e&&jn(e,so(t,3))},Mr.get=Oa,Mr.gt=zs,Mr.gte=Bs,Mr.has=function(e,t){return null!=e&&ho(e,t,Sn)},Mr.hasIn=Ea,Mr.head=Go,Mr.identity=ic,Mr.includes=function(e,t,r,n){e=Gs(e)?e:La(e),r=r&&!n?ma(r):0;var i=e.length;return r<0&&(r=yr(i+r,0)),ca(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Rt(e,t,r)>-1},Mr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:ma(r);return i<0&&(i=yr(n+i,0)),Rt(e,t,i)},Mr.inRange=function(e,t,r){return t=ha(t),r===i?(r=t,t=0):r=ha(r),function(e,t,r){return e>=gr(t,r)&&e=-9007199254740991&&e<=f},Mr.isSet=aa,Mr.isString=ca,Mr.isSymbol=pa,Mr.isTypedArray=ua,Mr.isUndefined=function(e){return e===i},Mr.isWeakMap=function(e){return ra(e)&&lo(e)==I},Mr.isWeakSet=function(e){return ra(e)&&"[object WeakSet]"==Pn(e)},Mr.join=function(e,t){return null==e?"":hr.call(e,t)},Mr.kebabCase=Ha,Mr.last=Yo,Mr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n;return r!==i&&(o=(o=ma(r))<0?yr(n+o,0):gr(o,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,o):kt(e,Ct,o,!0)},Mr.lowerCase=Ka,Mr.lowerFirst=Ga,Mr.lt=fa,Mr.lte=la,Mr.max=function(e){return e&&e.length?hn(e,ic,wn):i},Mr.maxBy=function(e,t){return e&&e.length?hn(e,so(t,2),wn):i},Mr.mean=function(e){return Ft(e,ic)},Mr.meanBy=function(e,t){return Ft(e,so(t,2))},Mr.min=function(e){return e&&e.length?hn(e,ic,Fn):i},Mr.minBy=function(e,t){return e&&e.length?hn(e,so(t,2),Fn):i},Mr.stubArray=yc,Mr.stubFalse=gc,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=xc,Mr.nth=function(e,t){return e&&e.length?Ln(e,ma(t)):i},Mr.noConflict=function(){return ot._===this&&(ot._=Me),this},Mr.noop=pc,Mr.now=Os,Mr.pad=function(e,t,r){e=ba(e);var n=(t=ma(t))?ir(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return zi(ur(i),r)+e+zi(pr(i),r)},Mr.padEnd=function(e,t,r){e=ba(e);var n=(t=ma(t))?ir(e):0;return t&&nt){var n=e;e=t,t=n}if(r||e%1||t%1){var o=jr();return gr(e+o*(t-e+tt("1e-"+((o+"").length-1))),t)}return Kn(e,t)},Mr.reduce=function(e,t,r){var n=Hs(e)?Ot:qt,i=arguments.length<3;return n(e,so(t,4),r,i,fn)},Mr.reduceRight=function(e,t,r){var n=Hs(e)?Et:qt,i=arguments.length<3;return n(e,so(t,4),r,i,ln)},Mr.repeat=function(e,t,r){return t=(r?vo(e,t,r):t===i)?1:ma(t),Gn(ba(e),t)},Mr.replace=function(){var e=arguments,t=ba(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Mr.result=function(e,t,r){var n=-1,o=(t=gi(t,e)).length;for(o||(o=1,e=i);++nf)return[];var r=d,n=gr(e,d);t=so(t),e-=d;for(var i=Lt(n,t);++r=s)return e;var c=r-ir(n);if(c<1)return n;var p=a?bi(a,0,c).join(""):e.slice(0,c);if(o===i)return p+n;if(a&&(c+=p.length-c),sa(o)){if(e.slice(c).search(o)){var u,f=p;for(o.global||(o=we(o.source,ba(le.exec(o))+"g")),o.lastIndex=0;u=o.exec(f);)var l=u.index;p=p.slice(0,l===i?c:l)}}else if(e.indexOf(ai(o),c)!=c){var d=p.lastIndexOf(o);d>-1&&(p=p.slice(0,d))}return p+n},Mr.unescape=function(e){return(e=ba(e))&&G.test(e)?e.replace(H,ar):e},Mr.uniqueId=function(e){var t=++De;return ba(e)+t},Mr.upperCase=Qa,Mr.upperFirst=Ya,Mr.each=bs,Mr.eachRight=js,Mr.first=Go,cc(Mr,(vc={},bn(Mr,(function(e,t){Re.call(Mr.prototype,t)||(vc[t]=e)})),vc),{chain:!1}),Mr.VERSION="4.17.21",bt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Mr[e].placeholder=Mr})),bt(["drop","take"],(function(e,t){zr.prototype[e]=function(r){r=r===i?1:yr(ma(r),0);var n=this.__filtered__&&!t?new zr(this):this.clone();return n.__filtered__?n.__takeCount__=gr(r,n.__takeCount__):n.__views__.push({size:gr(r,d),type:e+(n.__dir__<0?"Right":"")}),n},zr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),bt(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;zr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:so(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),bt(["head","last"],(function(e,t){var r="take"+(t?"Right":"");zr.prototype[e]=function(){return this[r](1).value()[0]}})),bt(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");zr.prototype[e]=function(){return this.__filtered__?new zr(this):this[r](1)}})),zr.prototype.compact=function(){return this.filter(ic)},zr.prototype.find=function(e){return this.filter(e).head()},zr.prototype.findLast=function(e){return this.reverse().find(e)},zr.prototype.invokeMap=Jn((function(e,t){return"function"==typeof e?new zr(this):this.map((function(r){return An(r,e,t)}))})),zr.prototype.reject=function(e){return this.filter(Fs(so(e)))},zr.prototype.slice=function(e,t){e=ma(e);var r=this;return r.__filtered__&&(e>0||t<0)?new zr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(r=(t=ma(t))<0?r.dropRight(-t):r.take(t-e)),r)},zr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},zr.prototype.toArray=function(){return this.take(d)},bn(zr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=Mr[n?"take"+("last"==t?"Right":""):t],s=n||/^find/.test(t);o&&(Mr.prototype[t]=function(){var t=this.__wrapped__,a=n?[1]:arguments,c=t instanceof zr,p=a[0],u=c||Hs(t),f=function(e){var t=o.apply(Mr,St([e],a));return n&&l?t[0]:t};u&&r&&"function"==typeof p&&1!=p.length&&(c=u=!1);var l=this.__chain__,d=!!this.__actions__.length,h=s&&!l,m=c&&!d;if(!s&&u){t=m?t:new zr(this);var y=e.apply(t,a);return y.__actions__.push({func:hs,args:[f],thisArg:i}),new Lr(y,l)}return h&&m?e.apply(this,a):(y=this.thru(f),h?n?y.value()[0]:y.value():y)})})),bt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ee[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Mr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(Hs(i)?i:[],e)}return this[r]((function(r){return t.apply(Hs(r)?r:[],e)}))}})),bn(zr.prototype,(function(e,t){var r=Mr[t];if(r){var n=r.name+"";Re.call(Ar,n)||(Ar[n]=[]),Ar[n].push({name:t,func:r})}})),Ar[Mi(i,2).name]=[{name:"wrapper",func:i}],zr.prototype.clone=function(){var e=new zr(this.__wrapped__);return e.__actions__=Oi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oi(this.__views__),e},zr.prototype.reverse=function(){if(this.__filtered__){var e=new zr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},zr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Hs(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Mr.prototype.plant=function(e){for(var t,r=this;r instanceof Ur;){var n=Uo(r);n.__index__=0,n.__values__=i,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t},Mr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof zr){var t=e;return this.__actions__.length&&(t=new zr(this)),(t=t.reverse()).__actions__.push({func:hs,args:[ts],thisArg:i}),new Lr(t,this.__chain__)}return this.thru(ts)},Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=function(){return li(this.__wrapped__,this.__actions__)},Mr.prototype.first=Mr.prototype.head,st&&(Mr.prototype[st]=function(){return this}),Mr}();ot._=cr,(n=function(){return cr}.call(t,r,t,e))===i||(e.exports=n)}.call(this)},1171:(e,t,r)=>{e.exports=l,l.Minimatch=d;var n=function(){try{return r(67)}catch(e){}}()||{sep:"/"};l.sep=n.sep;var i=l.GLOBSTAR=d.GLOBSTAR={},o=r(3644),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",c="[^/]*?",p="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),u=/\/+/;function f(e,t){t=t||{};var r={};return Object.keys(e).forEach((function(t){r[t]=e[t]})),Object.keys(t).forEach((function(e){r[e]=t[e]})),r}function l(e,t,r){return m(t),r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&new d(t,r).match(e)}function d(e,t){if(!(this instanceof d))return new d(e,t);m(e),t||(t={}),e=e.trim(),t.allowWindowsEscape||"/"===n.sep||(e=e.split(n.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}function h(e,t){return t||(t=this instanceof d?this.options:{}),e=void 0===e?this.pattern:e,m(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:o(e)}l.filter=function(e,t){return t=t||{},function(r,n,i){return l(r,e,t)}},l.defaults=function(e){if(!e||"object"!=typeof e||!Object.keys(e).length)return l;var t=l,r=function(r,n,i){return t(r,n,f(e,i))};return(r.Minimatch=function(r,n){return new t.Minimatch(r,f(e,n))}).defaults=function(r){return t.defaults(f(e,r)).Minimatch},r.filter=function(r,n){return t.filter(r,f(e,n))},r.defaults=function(r){return t.defaults(f(e,r))},r.makeRe=function(r,n){return t.makeRe(r,f(e,n))},r.braceExpand=function(r,n){return t.braceExpand(r,f(e,n))},r.match=function(r,n,i){return t.match(r,n,f(e,i))},r},d.defaults=function(e){return l.defaults(e).Minimatch},d.prototype.debug=function(){},d.prototype.make=function(){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,r),r=this.globParts=r.map((function(e){return e.split(u)})),this.debug(this.pattern,r),r=r.map((function(e,t,r){return e.map(this.parse,this)}),this),this.debug(this.pattern,r),r=r.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,r),this.set=r}else this.empty=!0;else this.comment=!0},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=0;if(!this.options.nonegate){for(var n=0,i=e.length;n65536)throw new TypeError("pattern is too long")};d.prototype.parse=function(e,t){m(e);var r=this.options;if("**"===e){if(!r.noglobstar)return i;e="*"}if(""===e)return"";var n,o="",u=!!r.nocase,f=!1,l=[],d=[],h=!1,g=-1,v=-1,b="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",j=this;function $(){if(n){switch(n){case"*":o+=c,u=!0;break;case"?":o+=a,u=!0;break;default:o+="\\"+n}j.debug("clearStateChar %j %j",n,o),n=!1}}for(var _,x=0,P=e.length;x-1;T--){var k=d[T],R=o.slice(0,k.reStart),D=o.slice(k.reStart,k.reEnd-8),C=o.slice(k.reEnd-8,k.reEnd),F=o.slice(k.reEnd);C+=F;var N=R.split("(").length-1,M=F;for(x=0;x=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,l,t,d),l!==a))}if("string"==typeof u?(p=f===u,this.debug("string match",u,f,p)):(p=f.match(u),this.debug("pattern match",u,f,p)),!p)return!1}if(o===a&&s===c)return!0;if(o===a)return r;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")}},3300:(e,t)=>{"use strict";var r=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r)return r;throw new Error("unable to locate global object")}();e.exports=t=r.fetch,r.fetch&&(t.default=r.fetch.bind(r)),t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response},12:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,s=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=a&&c&&"function"==typeof c.get?c.get:null,u=a&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,l="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,j=String.prototype.toUpperCase,$=String.prototype.toLowerCase,_=RegExp.prototype.test,x=Array.prototype.concat,P=Array.prototype.join,w=Array.prototype.slice,S=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,E=Object.getOwnPropertySymbols,A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,k=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function D(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-S(-e):S(e);if(n!==e){var i=String(n),o=v.call(t,i.length+1);return b.call(i,r,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var C=r(4654),F=C.custom,N=z(F)?F:null;function M(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function q(e){return b.call(String(e),/"/g,""")}function U(e){return!("[object Array]"!==H(e)||T&&"object"==typeof e&&T in e)}function L(e){return!("[object RegExp]"!==H(e)||T&&"object"==typeof e&&T in e)}function z(e){if(I)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,n,i){var a=r||{};if(V(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!V(a,"customInspect")||a.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return G(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var j=String(t);return m?D(t,j):j}if("bigint"==typeof t){var _=String(t)+"n";return m?D(t,_):_}var S=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=S&&S>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var E,F=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=P.call(Array(e.indent+1)," ")}return{base:r,prev:P.call(Array(t+1),r)}}(a,n);if(void 0===i)i=[];else if(K(i,t)>=0)return"[Circular]";function B(t,r,o){if(r&&(i=w.call(i)).push(r),o){var s={depth:a.depth};return V(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,n+1,i)}return e(t,a,n+1,i)}if("function"==typeof t&&!L(t)){var J=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ee=Z(t,B);return"[Function"+(J?": "+J:" (anonymous)")+"]"+(ee.length>0?" { "+P.call(ee,", ")+" }":"")}if(z(t)){var te=I?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(t);return"object"!=typeof t||I?te:W(te)}if((E=t)&&"object"==typeof E&&("undefined"!=typeof HTMLElement&&E instanceof HTMLElement||"string"==typeof E.nodeName&&"function"==typeof E.getAttribute)){for(var re="<"+$.call(String(t.nodeName)),ne=t.attributes||[],ie=0;ie"}if(U(t)){if(0===t.length)return"[]";var oe=Z(t,B);return F&&!function(e){for(var t=0;t=0)return!1;return!0}(oe)?"["+X(oe,F)+"]":"[ "+P.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==H(e)||T&&"object"==typeof e&&T in e)}(t)){var se=Z(t,B);return"cause"in Error.prototype||!("cause"in t)||k.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+P.call(se,", ")+" }":"{ ["+String(t)+"] "+P.call(x.call("[cause]: "+B(t.cause),se),", ")+" }"}if("object"==typeof t&&c){if(N&&"function"==typeof t[N]&&C)return C(t,{depth:S-n});if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{p.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return s.call(t,(function(e,r){ae.push(B(r,t,!0)+" => "+B(e,t))})),Y("Map",o.call(t),ae,F)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return u.call(t,(function(e){ce.push(B(e,t))})),Y("Set",p.call(t),ce,F)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{l.call(e,l)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e,l);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if(function(e){return!("[object Number]"!==H(e)||T&&"object"==typeof e&&T in e)}(t))return W(B(Number(t)));if(function(e){if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}(t))return W(B(O.call(t)));if(function(e){return!("[object Boolean]"!==H(e)||T&&"object"==typeof e&&T in e)}(t))return W(h.call(t));if(function(e){return!("[object String]"!==H(e)||T&&"object"==typeof e&&T in e)}(t))return W(B(String(t)));if(!function(e){return!("[object Date]"!==H(e)||T&&"object"==typeof e&&T in e)}(t)&&!L(t)){var pe=Z(t,B),ue=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",le=!ue&&T&&Object(t)===t&&T in t?v.call(H(t),8,-1):fe?"Object":"",de=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(le||fe?"["+P.call(x.call([],le||[],fe||[]),": ")+"] ":"");return 0===pe.length?de+"{}":F?de+"{"+X(pe,F)+"}":de+"{ "+P.call(pe,", ")+" }"}return String(t)};var B=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return B.call(e,t)}function H(e){return m.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return G(v.call(e,0,t.maxStringLength),t)+n}return M(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,J),"single",t)}function J(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+j.call(t.toString(16))}function W(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function Y(e,t,r,n){return e+" ("+t+") {"+(n?X(r,n):P.call(r,", "))+"}"}function X(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+P.call(e,","+r)+"\n"+t.prev}function Z(e,t){var r=U(e),n=[];if(r){n.length=e.length;for(var i=0;i{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=r(1414),a=Object.prototype.propertyIsEnumerable,c=!a.call({toString:null},"toString"),p=a.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!l["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=s(e),a=t&&"[object String]"===o.call(e),l=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var h=p&&r;if(a&&e.length>0&&!i.call(e,0))for(var m=0;m0)for(var y=0;y{"use strict";var n=Array.prototype.slice,i=r(1414),o=Object.keys,s=o?function(e){return o(e)}:r(8987),a=Object.keys;s.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?a(n.call(e)):a(e)})}else Object.keys=s;return Object.keys||s},e.exports=s},1414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},905:e=>{"use strict";class t extends Error{constructor(e,{cause:r}={}){super(e),this.name=t.name,r&&(this.cause=r),this.message=e}}const r=e=>{if(!e)return;const t=e.cause;if("function"==typeof t){const t=e.cause();return t instanceof Error?t:void 0}return t instanceof Error?t:void 0},n=(e,t)=>{if(!(e instanceof Error))return"";const i=e.stack||"";if(t.has(e))return i+"\ncauses have become circular...";const o=r(e);return o?(t.add(e),i+"\ncaused by: "+n(o,t)):i},i=(e,t,n)=>{if(!(e instanceof Error))return"";const o=n?"":e.message||"";if(t.has(e))return o+": ...";const s=r(e);if(s){t.add(e);const r="function"==typeof e.cause;return o+(r?"":": ")+i(s,t,r)}return o};e.exports={ErrorWithCause:t,findCauseByReference:(e,t)=>{if(!e||!t)return;if(!(e instanceof Error))return;if(!(t.prototype instanceof Error)&&t!==Error)return;const n=new Set;let i=e;for(;i&&!n.has(i);){if(n.add(i),i instanceof t)return i;i=r(i)}},getErrorCause:r,stackWithCauses:e=>n(e,new Set),messageWithCauses:e=>i(e,new Set)}},7668:(e,t,r)=>{"use strict";const n=r(4725);e.exports=n,n.default=n},4725:e=>{"use strict";e.exports=function(e,r,n){var i,o="";if(t="",arguments.length>1){if("number"==typeof n)for(i=0;i100)return e.replace(n,o);for(var t="",s=0,a=0;an;)e[r]=e[r-1],r--;e[r]=n}return e}},655:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>o,__asyncDelegator:()=>$,__asyncGenerator:()=>j,__asyncValues:()=>_,__await:()=>b,__awaiter:()=>u,__classPrivateFieldGet:()=>O,__classPrivateFieldSet:()=>E,__createBinding:()=>l,__decorate:()=>a,__exportStar:()=>d,__extends:()=>i,__generator:()=>f,__importDefault:()=>S,__importStar:()=>w,__makeTemplateObject:()=>x,__metadata:()=>p,__param:()=>c,__read:()=>m,__rest:()=>s,__spread:()=>y,__spreadArray:()=>v,__spreadArrays:()=>g,__values:()=>h});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}function c(e,t){return function(r,n){t(r,n,e)}}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function f(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function y(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{(r=i[e](t)).value instanceof b?Promise.resolve(r.value.v).then(c,p):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function c(e){a("next",e)}function p(e){a("throw",e)}function u(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function $(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var P=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&l(t,e,r);return P(t,e),t}function S(e){return e&&e.__esModule?e:{default:e}}function O(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function E(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}},540:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),r=0;r1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,i=1;i= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,y=String.fromCharCode;function g(e){throw new RangeError(h[e])}function v(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+function(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}((e=e.replace(d,".")).split("."),t).join(".")}function b(e){for(var t=[],r=0,n=e.length;r=55296&&i<=56319&&r>1,e+=m(e/t);e>455;n+=u)e=m(e/35);return m(n+36*e/(e+38))},_=function(e){var t,r=[],n=e.length,i=0,o=128,s=72,a=e.lastIndexOf("-");a<0&&(a=0);for(var c=0;c=128&&g("not-basic"),r.push(e.charCodeAt(c));for(var f=a>0?a+1:0;f=n&&g("invalid-input");var y=(t=e.charCodeAt(f++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:u;(y>=u||y>m((p-i)/d))&&g("overflow"),i+=y*d;var v=h<=s?1:h>=s+26?26:h-s;if(ym(p/b)&&g("overflow"),d*=b}var j=r.length+1;s=$(i-l,j,0==l),m(i/j)>p-o&&g("overflow"),o+=m(i/j),i%=j,r.splice(i++,0,o)}return String.fromCodePoint.apply(String,r)},x=function(e){var t=[],r=(e=b(e)).length,n=128,i=0,o=72,s=!0,a=!1,c=void 0;try{for(var f,l=e[Symbol.iterator]();!(s=(f=l.next()).done);s=!0){var d=f.value;d<128&&t.push(y(d))}}catch(e){a=!0,c=e}finally{try{!s&&l.return&&l.return()}finally{if(a)throw c}}var h=t.length,v=h;for(h&&t.push("-");v=n&&E<_&&(_=E)}}catch(e){P=!0,w=e}finally{try{!x&&O.return&&O.return()}finally{if(P)throw w}}var A=v+1;_-n>m((p-i)/A)&&g("overflow"),i+=(_-n)*A,n=_;var I=!0,T=!1,k=void 0;try{for(var R,D=e[Symbol.iterator]();!(I=(R=D.next()).done);I=!0){var C=R.value;if(Cp&&g("overflow"),C==n){for(var F=i,N=u;;N+=u){var M=N<=o?1:N>=o+26?26:N-o;if(F>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function E(e){for(var t="",r=0,n=e.length;r=194&&i<224){if(n-r>=6){var o=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&i)<<6|63&o)}else t+=e.substr(r,6);r+=6}else if(i>=224){if(n-r>=9){var s=parseInt(e.substr(r+4,2),16),a=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&i)<<12|(63&s)<<6|63&a)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function A(e,t){function r(e){var r=E(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,O).replace(t.PCT_ENCODED,i)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,O).replace(t.PCT_ENCODED,i)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,O).replace(t.PCT_ENCODED,i)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,O).replace(t.PCT_ENCODED,i)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,O).replace(t.PCT_ENCODED,i)),e}function I(e){return e.replace(/^0*(.*)/,"$1")||"0"}function T(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=c(r,2)[1];return n?n.split(".").map(I).join("."):e}function k(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=c(r,3),i=n[1],o=n[2];if(i){for(var s=i.toLowerCase().split("::").reverse(),a=c(s,2),p=a[0],u=a[1],f=u?u.split(":").map(I):[],l=p.split(":").map(I),d=t.IPV4ADDRESS.test(l[l.length-1]),h=d?7:8,m=l.length-h,y=Array(h),g=0;g1){var j=y.slice(0,v.index),$=y.slice(v.index+v.length);b=j.join(":")+"::"+$.join(":")}else b=y.join(":");return o&&(b+="%"+o),b}return e}var R=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,D=void 0==="".match(/(){0}/)[1];function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?a:s;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var i=e.match(R);if(i){D?(r.scheme=i[1],r.userinfo=i[3],r.host=i[4],r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=i[7],r.fragment=i[8],isNaN(r.port)&&(r.port=i[5])):(r.scheme=i[1]||void 0,r.userinfo=-1!==e.indexOf("@")?i[3]:void 0,r.host=-1!==e.indexOf("//")?i[4]:void 0,r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=-1!==e.indexOf("?")?i[7]:void 0,r.fragment=-1!==e.indexOf("#")?i[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),r.host&&(r.host=k(T(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var o=S[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)A(r,n);else{if(r.host&&(t.domainHost||o&&o.domainHost))try{r.host=P(r.host.replace(n.PCT_ENCODED,E).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}A(r,s)}o&&o.parse&&o.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function F(e,t){var r=!1!==t.iri?a:s,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(k(T(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"==typeof e.port&&(n.push(":"),n.push(e.port.toString(10))),n.length?n.join(""):void 0}var N=/^\.\.?\//,M=/^\/\.(\/|$)/,q=/^\/\.\.(\/|$)/,U=/^\/?(?:.|\n)*?(?=\/|$)/;function L(e){for(var t=[];e.length;)if(e.match(N))e=e.replace(N,"");else if(e.match(M))e=e.replace(M,"/");else if(e.match(q))e=e.replace(q,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(U);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?a:s,n=[],i=S[(t.scheme||e.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||i&&i.domainHost)try{e.host=t.iri?w(e.host):P(e.host.replace(r.PCT_ENCODED,E).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}A(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var o=F(e,t);if(void 0!==o&&("suffix"!==t.reference&&n.push("//"),n.push(o),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var c=e.path;t.absolutePath||i&&i.absolutePath||(c=L(c)),void 0===o&&(c=c.replace(/^\/\//,"/%2F")),n.push(c)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function B(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=C(z(e,r),r),t=C(z(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=L(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=L(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=L(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=L(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function V(e,t){return e&&e.toString().replace(t&&t.iri?a.PCT_ENCODED:s.PCT_ENCODED,E)}var H={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){return e.port!==("https"!==String(e.scheme).toLowerCase()?80:443)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},K={scheme:"https",domainHost:H.domainHost,parse:H.parse,serialize:H.serialize},G={},J="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",W="[0-9A-Fa-f]",Q=r(r("%[EFef][0-9A-Fa-f]%"+W+W+"%"+W+W)+"|"+r("%[89A-Fa-f][0-9A-Fa-f]%"+W+W)+"|"+r("%"+W+W)),Y=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),X=new RegExp(J,"g"),Z=new RegExp(Q,"g"),ee=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',Y),"g"),te=new RegExp(t("[^]",J,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),re=te;function ne(e){var t=E(e);return t.match(X)?t:e}var ie={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var i=!1,o={},s=r.query.split("&"),a=0,c=s.length;a1;a++)r.splice(0,1);n[s]=r.join("")}var c=-1,p=0,u=0,f=-1,l=!1;for(s=0;sp&&(c=f,p=u)):"0"===n[s]&&(l=!0,f=s,u=1);u>p&&(c=f,p=u),p>1&&n.splice(c,p,""),i=n.length;var d="";for(""===n[0]&&(d=":"),s=0;s=e.length-1)return!1;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return!1;var i=r.list[e.slice(t+1)];return!!i&&i.indexOf(" "+e.slice(n+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var n=r.list[e.slice(t+1)];return!!n&&n.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return null;var i=r.list[e.slice(t+1)];return i?i.indexOf(" "+e.slice(n+1,t)+" ")<0?null:e.slice(n+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return r}))},4998:function(e,t,r){var n,i,o;!function(s,a){"use strict";e.exports?e.exports=a(r(3132),r(2251),r(6106)):(i=[r(3132),r(2251),r(6106)],void 0===(o="function"==typeof(n=a)?n.apply(t,i):n)||(e.exports=o))}(0,(function(e,t,r,n){"use strict";var i=n&&n.URI;function o(e,t){var r=arguments.length>=1,n=arguments.length>=2;if(!(this instanceof o))return r?n?new o(e,t):new o(e):new o;if(void 0===e){if(r)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&r)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}o.version="1.19.11";var s=o.prototype,a=Object.prototype.hasOwnProperty;function c(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function p(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function u(e){return"Array"===p(e)}function f(e,t){var r,n,i={};if("RegExp"===p(t))i=null;else if(u(t))for(r=0,n=t.length;r]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,o.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},o.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,o.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,o.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},o.hostProtocols=["http","https"],o.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,o.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},o.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return o.domAttributes[t]}},o.encode=y,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=y,o.decode=decodeURIComponent},o.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},o.encodeQuery=function(e,t){var r=o.encode(e+"");return void 0===t&&(t=o.escapeQuerySpace),t?r.replace(/%20/g,"+"):r},o.decodeQuery=function(e,t){e+="",void 0===t&&(t=o.escapeQuerySpace);try{return o.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var g,v={encode:"encode",decode:"decode"},b=function(e,t){return function(r){try{return o[t](r+"").replace(o.characters[e][t].expression,(function(r){return o.characters[e][t].map[r]}))}catch(e){return r}}};for(g in v)o[g+"PathSegment"]=b("pathname",v[g]),o[g+"UrnPathSegment"]=b("urnpath",v[g]);var j=function(e,t,r){return function(n){var i;i=r?function(e){return o[t](o[r](e))}:o[t];for(var s=(n+"").split(e),a=0,c=s.length;a-1&&(t.fragment=e.substring(r+1)||null,e=e.substring(0,r)),(r=e.indexOf("?"))>-1&&(t.query=e.substring(r+1)||null,e=e.substring(0,r)),"//"===(e=(e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://")).replace(/^[/\\]{2,}/i,"//")).substring(0,2)?(t.protocol=null,e=e.substring(2),e=o.parseAuthority(e,t)):(r=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,r)||null,t.protocol&&!t.protocol.match(o.protocol_expression)?t.protocol=void 0:"//"===e.substring(r+1,r+3).replace(/\\/g,"/")?(e=e.substring(r+3),e=o.parseAuthority(e,t)):(e=e.substring(r+1),t.urn=!0)),t.path=e,t},o.parseHost=function(e,t){e||(e="");var r,n,i=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===i&&(i=e.length),"["===e.charAt(0))r=e.indexOf("]"),t.hostname=e.substring(1,r)||null,t.port=e.substring(r+2,i)||null,"/"===t.port&&(t.port=null);else{var s=e.indexOf(":"),a=e.indexOf("/"),c=e.indexOf(":",s+1);-1!==c&&(-1===a||c-1?i:e.length-1);return s>-1&&(-1===i||s-1?d.slice(0,h)+d.slice(h).replace(s,""):d.replace(s,"")).length<=p[0].length||r.ignore&&r.ignore.test(d))){var g=t(d,u,l=u+d.length,e);void 0!==g?(g=String(g),e=e.slice(0,u)+g+e.slice(l),n.lastIndex=u+g.length):n.lastIndex=l}}return n.lastIndex=0,e},o.ensureValidHostname=function(t,r){var n=!!t,i=!1;if(!!r&&(i=l(o.hostProtocols,r)),i&&!n)throw new TypeError("Hostname cannot be empty, if protocol is "+r);if(t&&t.match(o.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(o.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},o.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},o.noConflict=function(e){if(e){var t={URI:this.noConflict()};return n.URITemplate&&"function"==typeof n.URITemplate.noConflict&&(t.URITemplate=n.URITemplate.noConflict()),n.IPv6&&"function"==typeof n.IPv6.noConflict&&(t.IPv6=n.IPv6.noConflict()),n.SecondLevelDomains&&"function"==typeof n.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=n.SecondLevelDomains.noConflict()),t}return n.URI===this&&(n.URI=i),this},s.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=o.build(this._parts),this._deferred_build=!1),this},s.clone=function(){return new o(this)},s.valueOf=s.toString=function(){return this.build(!1)._string},s.protocol=$("protocol"),s.username=$("username"),s.password=$("password"),s.hostname=$("hostname"),s.port=$("port"),s.query=_("query","?"),s.fragment=_("fragment","#"),s.search=function(e,t){var r=this.query(e,t);return"string"==typeof r&&r.length?"?"+r:r},s.hash=function(e,t){var r=this.fragment(e,t);return"string"==typeof r&&r.length?"#"+r:r},s.pathname=function(e,t){if(void 0===e||!0===e){var r=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?o.decodeUrnPath:o.decodePath)(r):r}return this._parts.urn?this._parts.path=e?o.recodeUrnPath(e):"":this._parts.path=e?o.recodePath(e):"/",this.build(!t),this},s.path=s.pathname,s.href=function(e,t){var r;if(void 0===e)return this.toString();this._string="",this._parts=o._parts();var n=e instanceof o,i="object"==typeof e&&(e.hostname||e.path||e.pathname);if(e.nodeName&&(e=e[o.getDomAttribute(e)]||"",i=!1),!n&&i&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=o.parse(String(e),this._parts);else{if(!n&&!i)throw new TypeError("invalid input");var s=n?e._parts:e;for(r in s)"query"!==r&&a.call(this._parts,r)&&(this._parts[r]=s[r]);s.query&&this.query(s.query,!1)}return this.build(!t),this},s.is=function(e){var t=!1,n=!1,i=!1,s=!1,a=!1,c=!1,p=!1,u=!this._parts.urn;switch(this._parts.hostname&&(u=!1,n=o.ip4_expression.test(this._parts.hostname),i=o.ip6_expression.test(this._parts.hostname),a=(s=!(t=n||i))&&r&&r.has(this._parts.hostname),c=s&&o.idn_expression.test(this._parts.hostname),p=s&&o.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return u;case"absolute":return!u;case"domain":case"name":return s;case"sld":return a;case"ip":return t;case"ip4":case"ipv4":case"inet4":return n;case"ip6":case"ipv6":case"inet6":return i;case"idn":return c;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return p}return null};var x=s.protocol,P=s.port,w=s.hostname;s.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(o.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return x.call(this,e,t)},s.scheme=s.protocol,s.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),o.ensureValidPort(e))),P.call(this,e,t))},s.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var r={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==o.parseHost(e,r))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=r.hostname,this._parts.preventInvalidHostname&&o.ensureValidHostname(e,this._parts.protocol)}return w.call(this,e,t)},s.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=this.protocol();return this.authority()?(r?r+"://":"")+this.authority():""}var n=o(e);return this.protocol(n.protocol()).authority(n.authority()).build(!t),this},s.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?o.buildHost(this._parts):"";if("/"!==o.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},s.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?o.buildAuthority(this._parts):"";if("/"!==o.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},s.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=o.buildUserinfo(this._parts);return r?r.substring(0,r.length-1):r}return"@"!==e[e.length-1]&&(e+="@"),o.parseUserinfo(e,this._parts),this.build(!t),this},s.resource=function(e,t){var r;return void 0===e?this.path()+this.search()+this.hash():(r=o.parse(e),this._parts.path=r.path,this._parts.query=r.query,this._parts.fragment=r.fragment,this.build(!t),this)},s.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,r)||""}var n=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,n),s=new RegExp("^"+c(i));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&o.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(s,e),this.build(!t),this},s.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.match(/\./g);if(r&&r.length<2)return this._parts.hostname;var n=this._parts.hostname.length-this.tld(t).length-1;return n=this._parts.hostname.lastIndexOf(".",n-1)+1,this._parts.hostname.substring(n)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(o.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var i=new RegExp(c(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this},s.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.lastIndexOf("."),i=this._parts.hostname.substring(n+1);return!0!==t&&r&&r.list[i.toLowerCase()]&&r.get(this._parts.hostname)||i}var o;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!r||!r.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');o=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");o=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,e)}return this.build(!t),this},s.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var r=this._parts.path.length-this.filename().length-1,n=this._parts.path.substring(0,r)||(this._parts.hostname?"/":"");return e?o.decodePath(n):n}var i=this._parts.path.length-this.filename().length,s=this._parts.path.substring(0,i),a=new RegExp("^"+c(s));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=o.recodePath(e),this._parts.path=this._parts.path.replace(a,e),this.build(!t),this},s.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var r=this._parts.path.lastIndexOf("/"),n=this._parts.path.substring(r+1);return e?o.decodePathSegment(n):n}var i=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(i=!0);var s=new RegExp(c(this.filename())+"$");return e=o.recodePath(e),this._parts.path=this._parts.path.replace(s,e),i?this.normalizePath(t):this.build(!t),this},s.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var r,n,i=this.filename(),s=i.lastIndexOf(".");return-1===s?"":(r=i.substring(s+1),n=/^[a-z0-9%]+$/i.test(r)?r:"",e?o.decodePathSegment(n):n)}"."===e.charAt(0)&&(e=e.substring(1));var a,p=this.suffix();if(p)a=e?new RegExp(c(p)+"$"):new RegExp(c("."+p)+"$");else{if(!e)return this;this._parts.path+="."+o.recodePath(e)}return a&&(e=o.recodePath(e),this._parts.path=this._parts.path.replace(a,e)),this.build(!t),this},s.segment=function(e,t,r){var n=this._parts.urn?":":"/",i=this.path(),o="/"===i.substring(0,1),s=i.split(n);if(void 0!==e&&"number"!=typeof e&&(r=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(o&&s.shift(),e<0&&(e=Math.max(s.length+e,0)),void 0===t)return void 0===e?s:s[e];if(null===e||void 0===s[e])if(u(t)){s=[];for(var a=0,c=t.length;a= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,h=String.fromCharCode;function m(e){throw new RangeError(l[e])}function y(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function g(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+y((e=e.replace(f,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+h(e)})).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function $(e,t,r){var n=0;for(e=r?d(e/700):e>>1,e+=d(e/t);e>455;n+=c)e=d(e/35);return d(n+36*e/(e+38))}function _(e){var t,r,n,i,o,s,p,u,f,l,h,y=[],g=e.length,v=0,j=128,_=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n=128&&m("not-basic"),y.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=g&&m("invalid-input"),((u=(h=e.charCodeAt(i++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:c)>=c||u>d((a-v)/s))&&m("overflow"),v+=u*s,!(u<(f=p<=_?1:p>=_+26?26:p-_));p+=c)s>d(a/(l=c-f))&&m("overflow"),s*=l;_=$(v-o,t=y.length+1,0==o),d(v/t)>a-j&&m("overflow"),j+=d(v/t),v%=t,y.splice(v++,0,j)}return b(y)}function x(e){var t,r,n,i,o,s,p,u,f,l,y,g,b,_,x,P=[];for(g=(e=v(e)).length,t=128,r=0,o=72,s=0;s=t&&yd((a-r)/(b=n+1))&&m("overflow"),r+=(p-t)*b,t=p,s=0;sa&&m("overflow"),y==t){for(u=r,f=c;!(u<(l=f<=o?1:f>=o+26?26:f-o));f+=c)x=u-l,_=c-l,P.push(h(j(l+x%_,0))),u=d(x/_);P.push(h(j(u,0))),o=$(r,b,n==i),r=0,++n}++r,++t}return P.join("")}s={version:"1.3.2",ucs2:{decode:v,encode:b},decode:_,encode:x,toASCII:function(e){return g(e,(function(e){return u.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return g(e,(function(e){return p.test(e)?_(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return s}.call(t,r,t,e))||(e.exports=n)}()},4795:function(e,t,r){var n;!function(t){"use strict";function i(){}var o=i.prototype,s=t.EventEmitter;function a(e,t){for(var r=e.length;r--;)if(e[r].listener===t)return r;return-1}function c(e){return function(){return this[e].apply(this,arguments)}}function p(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!=typeof e)&&p(e.listener)}o.getListeners=function(e){var t,r,n=this._getEvents();if(e instanceof RegExp)for(r in t={},n)n.hasOwnProperty(r)&&e.test(r)&&(t[r]=n[r]);else t=n[e]||(n[e]=[]);return t},o.flattenListeners=function(e){var t,r=[];for(t=0;t{},1872:()=>{},67:()=>{},4654:()=>{},654:(e,t,r)=>{"use strict";var n=r(9038),i=r(2937);function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=o(n),a=o(i);const c=e=>void 0!==e,p=e=>t=>t.keyword===e,u=p("anyOf"),f=p("enum"),l=e=>e&&e.errors||[],d=e=>{return e&&(t=e.children,Object.values(t))||[];var t},h=e=>t=>t.reduce(((e,t)=>e.concat(t)),e),m=/['"]/g,y=/NOT/g,g=/^[a-z]/;function v(e){return e.replace(m,'"').replace(y,"not")}function b(e){return e.toUpperCase()}class j{constructor(e={isIdentifierLocation:!1},{data:t,schema:r,propPath:n}){this.options=e,this.data=t,this.schema=r,this.propPath=n}getError(){throw new Error(`Implement the 'getError' method inside ${this.constructor.name}!`)}getPrettyPropertyName(e){const t=this.getPropertyName(e);return null===t?(typeof this.getPropertyValue(e)).replace(g,b):`"${t}" property`}getPropertyName(e){const t=function(e){const t=e.lastIndexOf("/");return-1!==t?e.slice(t+1):null}(e);return null!==t?t:0===this.propPath.length?null:this.propPath[this.propPath.length-1]}getPropertyValue(e){return""===e?this.data:s.default.get(this.data,e)}}class $ extends j{getError(){const{message:e,instancePath:t}=this.options;return{error:`${this.getPrettyPropertyName(t)} ${v(e)}`,path:t}}}class _ extends j{constructor(...e){super(...e)}getError(){const{params:e,instancePath:t}=this.options;return{error:`Property "${e.additionalProperty}" is not expected to be here`,path:t}}}class x extends j{getError(){const{message:e,instancePath:t,params:r}=this.options,n=this.findBestMatch(),i={error:`${this.getPrettyPropertyName(t)} ${e}: ${r.allowedValues.map((e=>"string"==typeof e?`"${e}"`:JSON.stringify(e))).join(", ")}`,path:t};return null!==n&&(i.suggestion=`Did you mean "${n}"?`),i}findBestMatch(){const{instancePath:e,params:{allowedValues:t}}=this.options,r=this.getPropertyValue(e);if("string"!=typeof r)return null;const n=t.filter((e=>"string"==typeof e)).map((e=>({value:e,weight:a.default(e,r.toString())}))).sort(((e,t)=>e.weight>t.weight?1:e.weight0&&delete e.errors,e.errors&&e.errors.length&&l(e).every(f)&&(e=>t=>{return d(e).filter((n=t,r=e=>n===e,e=>!r(e)));var r,n})(t)(e).filter(c).some(l)&&delete t.children[r],Object.entries(e.children).forEach((([t,r])=>E(r,e,t)))}function A(e,t){const r=l(e);if(r.length&&r.every(f)){const e=[...new Set(h([])(r.map((e=>e.params.allowedValues))))],n=r[0];return[new x({...n,params:{allowedValues:e}},t)]}return h(r.reduce(((e,r)=>{switch(r.keyword){case"additionalProperties":return e.concat(new _(r,t));case"required":return e.concat(new $(r,t));case"type":return e.concat(new w(r,t));case"errorMessage":return e.concat(new S(r,t));default:return e.concat(new P(r,t))}}),[]))(d(e).map((e=>A(e,t))))}var I=(e,t)=>{const r=function(e=[]){const t={children:{}};return e.forEach((e=>{const{instancePath:r}=e,n=""===r?[""]:r.match(O);n&&n.reduce(((t,r,i)=>(t.children[r]=t.children[r]||{children:{},errors:[]},i===n.length-1&&t.children[r].errors.push(e),t.children[r])),t)})),t}(e||[]);return E(r),A(r,t)};const T=e=>e.getError();e.exports=(e,t,{propertyPath:r,targetValue:n})=>I(t,{data:n,schema:e,propPath:r}).map(T)},1762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=`__object_order_${Math.floor(Date.now()/36e5)}__`,n=Symbol.for(r),i=String(n),o={defineProperty:(e,t,r)=>(!(t in e)&&n in e?e[n].push(t):"value"in r&&t===n&&-1===r.value.lastIndexOf(n)&&r.value.push(n),Reflect.defineProperty(e,t,r)),deleteProperty(e,t){const r=t in e,i=Reflect.deleteProperty(e,t);if(i&&r&&n in e){const r=e[n].indexOf(t);-1!==r&&e[n].splice(r,1)}return i},ownKeys:e=>n in e?e[n]:Reflect.ownKeys(e),set(e,t,r){const i=t in e,o=Reflect.set(e,t,r);return o&&!i&&n in e&&e[n].push(t),o}};function s(e,t=Reflect.ownKeys(e)){d(e);const r=new Proxy(e,o);return a(r,t),r}function a(e,t){return n in e?(e[n].length=0,e[n].push(...t),!0):Reflect.defineProperty(e,n,{configurable:!0,value:t})}function c(e){const t=e.slice();for(let e=0;ee!==n))}),t)for(const t of Object.keys(e)){if(t===i)continue;const n=e[t];l(n)&&(r[t]=Array.isArray(n)?c(n):p(n,!0))}return r}function u(e){for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_PARSER_OPTIONS=void 0;const n=r(2749);t.DEFAULT_PARSER_OPTIONS=Object.freeze({incompatibleValues:n.DiagnosticSeverity.Error,duplicateKeys:n.DiagnosticSeverity.Error})},5786:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isParsedResult=t.ParsedDocument=t.Document=t.normalizeSource=void 0;const n=r(5966),i=r(6789),o=r(1403),s=r(7953);function a(e){return void 0===e?null:e.length>0&&!(0,o.startsWithProtocol)(e)?(0,n.normalize)(e):e}t.normalizeSource=a,t.Document=class{constructor(e,t,r){this.input=e,this.parser=t,this.parserResult=t.parse(e),this.source=a(r),this.diagnostics=(0,i.formatParserDiagnostics)(this.parserResult.diagnostics,this.source)}getRangeForJsonPath(e,t){var r;return null===(r=this.parser.getLocationForJsonPath(this.parserResult,e,t))||void 0===r?void 0:r.range}trapAccess(e){return this.parser.trapAccess(e)}static get DEFAULT_RANGE(){return{start:{character:0,line:0},end:{character:0,line:0}}}get data(){return this.parserResult.data}},t.ParsedDocument=class{constructor(e){this.parserResult=e,this.source=a(e.source),this.diagnostics=(0,i.formatParserDiagnostics)(this.parserResult.parsed.diagnostics,this.source)}trapAccess(e){return e}getRangeForJsonPath(e,t){var r;return null===(r=this.parserResult.getLocationForJsonPath(this.parserResult.parsed,e,t))||void 0===r?void 0:r.range}get data(){return this.parserResult.parsed.data}},t.isParsedResult=e=>(0,s.isPlainObject)(e)&&(0,s.isPlainObject)(e.parsed)&&"function"==typeof e.getLocationForJsonPath},827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentInventory=void 0;const n=r(655),i=r(7953),o=r(5966),s=r(6486),a=r(5786),c=r(6789),p=(0,n.__importStar)(r(644)),u=r(1403);class f{constructor(e,t){this.document=e,this.resolver=t,this.diagnostics=[],this.parseResolveResult=e=>{const t=e.targetAuthority.href().replace(/\/$/,""),r=(0,o.extname)(t),n=String(e.result),i=".json"===r?p.Json:p.Yaml,s=new a.Document(n,i,t);return e.result=s.data,s.diagnostics.length>0&&this.diagnostics.push(...(0,c.formatParserDiagnostics)(s.diagnostics,s.source)),this.referencedDocuments[t]=s,Promise.resolve(e)},this.graph=null,this.errors=null;const r=t.uriCache,n=f._cachedRemoteDocuments.get(r);void 0!==n?this.referencedDocuments=n:(this.referencedDocuments={},f._cachedRemoteDocuments.set(r,this.referencedDocuments))}get source(){return this.document.source}get unresolved(){return this.document.data}get formats(){var e;return null!==(e=this.document.formats)&&void 0!==e?e:null}async resolve(){if(!(0,s.isObjectLike)(this.document.data))return this.graph=null,this.resolved=this.document.data,void(this.errors=null);const e=await this.resolver.resolve(this.document.data,{...null!==this.document.source?{baseUri:this.document.source}:null,parseResolveResult:this.parseResolveResult});this.graph=e.graph,this.resolved=e.result,this.errors=(0,c.formatResolverErrors)(this.document,e.errors)}findAssociatedItemForPath(e,t){if(!t){const t=(0,u.getClosestJsonPath)(this.unresolved,e);return{document:this.document,path:t,missingPropertyPath:e}}try{const t=(0,u.getClosestJsonPath)(this.resolved,e);if(null===(0,u.traverseObjUntilRef)(this.unresolved,t))return{document:this.document,path:(0,u.getClosestJsonPath)(this.unresolved,e),missingPropertyPath:e};const r=0===t.length?[]:e.slice(e.lastIndexOf(t[t.length-1])+1);let{source:n}=this;if(null===n||null===this.graph)return null;let s=this.graph.getNodeData(n).refMap,a=this.document;const c=["#",...e.map(String)];let p="";for(const t of c)for(p.length>0&&(p+="/"),p+=(0,i.encodePointerFragment)(t);p in s;){const t=s[p];if((0,i.isLocalRef)(t))p=t;else{const r=(0,i.extractSourceFromRef)(t);if(null===r)return{document:a,path:(0,u.getClosestJsonPath)(a.data,e),missingPropertyPath:e};n=(0,u.isAbsoluteRef)(r)?r:(0,o.resolve)(n,"..",r);const c=n===this.document.source?this.document:this.referencedDocuments[n];if(null==c)return{document:a,path:(0,u.getClosestJsonPath)(a.data,e),missingPropertyPath:e};a=c,s=this.graph.getNodeData(n).refMap,p=t.indexOf("#")>=0?t.slice(t.indexOf("#")):"#"}}const f=(0,u.getClosestJsonPath)(a.data,this.convertRefMapKeyToPath(p));return{document:a,path:f,missingPropertyPath:[...f,...r]}}catch{return null}}convertRefMapKeyToPath(e){return e.startsWith("#/")&&(e=e.slice(2)),e.split("/").map(i.decodePointerFragment)}}t.DocumentInventory=f,f._cachedRemoteDocuments=new WeakMap},6789:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatResolverErrors=t.formatParserDiagnostics=t.prettyPrintResolverErrorMessage=t.getDiagnosticErrorMessage=void 0;const n=r(2749),i=r(6486),o=r(5786),s=e=>e.toUpperCase(),a=(e,t,r)=>`${t} ${r.toLowerCase()}`;function c(e){const t=p(e.path);let r=e.message.replace(/^[a-z]/,s);return"YAMLException"!==e.code&&(r=r.replace(/([a-z])([A-Z])/g,a)),void 0!==t&&(r=r.replace(/(Duplicate key)/,`$1: ${t}`)),r}t.getDiagnosticErrorMessage=c,t.prettyPrintResolverErrorMessage=e=>e.replace(/^Error\s*:\s*/,"");const p=e=>{if(void 0!==e&&e.length>0)return e[e.length-1]};t.formatParserDiagnostics=function(e,t){return e.map((e=>{var r;return{...e,code:"parser",message:c(e),path:null!==(r=e.path)&&void 0!==r?r:[],...null!==t?{source:t}:null}}))},t.formatResolverErrors=(e,r)=>(0,i.uniqBy)(r,"message").map((r=>{var i;const s=[...r.path,"$ref"],a=null!==(i=e.getRangeForJsonPath(s,!0))&&void 0!==i?i:o.Document.DEFAULT_RANGE,c=r.uriStack.length>0?r.uriStack[r.uriStack.length-1]:e.source;return{code:"invalid-ref",path:s,message:(0,t.prettyPrintResolverErrorMessage)(r.message),severity:n.DiagnosticSeverity.Error,range:a,...null!==c?{source:c}:null}}))},6309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAggregateError=void 0;const n=r(6486);t.isAggregateError=function(e){return(0,n.isError)(e)&&"AggregateError"===e.constructor.name}},309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParsedDocument=t.Document=void 0;const n=r(655);(0,n.__exportStar)(r(37),t),(0,n.__exportStar)(r(4840),t);var i=r(5786);Object.defineProperty(t,"Document",{enumerable:!0,get:function(){return i.Document}}),Object.defineProperty(t,"ParsedDocument",{enumerable:!0,get:function(){return i.ParsedDocument}}),(0,n.__exportStar)(r(7690),t)},2810:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAlias=t.resolveAliasForFormats=void 0;const n=r(3504),i=/^#([A-Za-z0-9_-]+)/;function o({targets:e},t){if(null===t||0===t.size)return null;for(let r=e.length-1;r>=0;r--){const n=e[r];for(const e of n.formats)if(t.has(e))return n.given}return null}function s(e,t,r,a){var c;const p=[];if(t.startsWith("#")){const u=null===(c=i.exec(t))||void 0===c?void 0:c[1];if(null==u)throw new ReferenceError("Alias must match /^#([A-Za-z0-9_-]+)/");if(a.has(u)){const e=[...a,u];throw new ReferenceError(`Alias "${e[0]}" is circular. Resolution stack: ${e.join(" -> ")}`)}if(a.add(u),null===e||!(u in e))throw new ReferenceError(`Alias "${u}" does not exist`);const f=e[u];let l;l=(0,n.isSimpleAliasDefinition)(f)?f:(0,n.isScopedAliasDefinition)(f)?o(f,r):null,null!==l&&p.push(...l.flatMap((n=>s(e,n+t.slice(u.length+1),r,new Set([...a])))))}else p.push(t);return p}t.resolveAliasForFormats=o,t.resolveAlias=function(e,t,r){return s(e,t,r,new Set)}},4231:(e,t)=>{"use strict";function r(e){var t;return null!==(t=e.displayName)&&void 0!==t?t:e.name}Object.defineProperty(t,"__esModule",{value:!0}),t.Formats=void 0;class n extends Set{toJSON(){return Array.from(this).map(r)}}t.Formats=n},9641:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createRulesetFunction=t.RulesetFunctionValidationError=void 0;const n=r(655),i=(0,n.__importDefault)(r(1581)),o=(0,n.__importDefault)(r(5477)),s=(0,n.__importDefault)(r(9049)),a=r(1403),c=r(3916),p=r(6486),u=r(6630),f=new i.default({allErrors:!0,allowUnionTypes:!0,strict:!0,keywords:["x-internal"]});(0,s.default)(f),(0,o.default)(f);class l extends c.RulesetValidationError{constructor(e,t){super(l.printMessage(e,t),t.instancePath.slice(1).split("/"))}static printMessage(e,t){var r;switch(t.keyword){case"type":return`"${e}" function and its "${(0,a.printPath)(t.instancePath.slice(1).split("/"),a.PrintStyle.Dot)}" option accepts only the following types: ${Array.isArray(t.params.type)?t.params.type.join(", "):String(t.params.type)}`;case"required":{const r=t.params.missingProperty;return`"${e}" function is missing "${""===t.instancePath?r:(0,a.printPath)([...t.instancePath.slice(1).split("/"),r],a.PrintStyle.Dot)}" option`}case"additionalProperties":{const r=t.params.additionalProperty;return`"${e}" function does not support "${""===t.instancePath?r:(0,a.printPath)([...t.instancePath.slice(1).split("/"),r],a.PrintStyle.Dot)}" option`}case"enum":return`"${e}" function and its "${(0,a.printPath)(t.instancePath.slice(1).split("/"),a.PrintStyle.Dot)}" option accepts only the following values: ${t.params.allowedValues.map(a.printValue).join(", ")}`;default:return null!==(r=t.message)&&void 0!==r?r:"unknown error"}}}t.RulesetFunctionValidationError=l;const d=e=>null===e;t.createRulesetFunction=function({input:e,errorOnInvalidInput:t=!1,options:r},n){const i=null===r?d:f.compile(r),o=null!==e?f.compile(e):e,s=function(e,r,...i){var a,c,p;return!1===(null==o?void 0:o(e))?t?[{message:null!==(p=null===(c=null===(a=o.errors)||void 0===a?void 0:a.find((e=>"errorMessage"===e.keyword)))||void 0===c?void 0:c.message)&&void 0!==p?p:"invalid input"}]:void 0:(s.validator(r),n(e,r,...i))};Reflect.defineProperty(s,"name",{value:n.name});const a=new WeakSet;return s.validator=function(e){if(!(0,p.isObject)(e)||!a.has(e)){if(!i(e))throw null===r?new c.RulesetValidationError(`"${n.name||""}" function does not accept any options`,[]):"errors"in i&&Array.isArray(i.errors)&&i.errors.length>0?new u(i.errors.map((e=>new l(n.name||"",e)))):new c.RulesetValidationError(`"functionOptions" of "${n.name||""}" function must be valid`,[]);(0,p.isObject)(e)&&a.add(e)}},Reflect.defineProperty(s,"schemas",{enumerable:!1,value:{input:e,options:r}}),s}},7690:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rule=t.Ruleset=t.createRulesetFunction=t.getDiagnosticSeverity=t.RulesetValidationError=t.assertValidRuleset=void 0;var n=r(3916);Object.defineProperty(t,"assertValidRuleset",{enumerable:!0,get:function(){return n.assertValidRuleset}}),Object.defineProperty(t,"RulesetValidationError",{enumerable:!0,get:function(){return n.RulesetValidationError}});var i=r(5647);Object.defineProperty(t,"getDiagnosticSeverity",{enumerable:!0,get:function(){return i.getDiagnosticSeverity}});var o=r(9641);Object.defineProperty(t,"createRulesetFunction",{enumerable:!0,get:function(){return o.createRulesetFunction}});var s=r(3711);Object.defineProperty(t,"Ruleset",{enumerable:!0,get:function(){return s.Ruleset}});var a=r(8203);Object.defineProperty(t,"Rule",{enumerable:!0,get:function(){return a.Rule}})},1761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeRule=void 0;const n=r(4931),i=r(8203);function o(e,t){if(void 0===e)throw new ReferenceError(`Cannot extend non-existing rule: "${t}"`)}t.mergeRule=function(e,t,r,s){switch(typeof r){case"boolean":o(e,t),e.enabled=r;break;case"string":case"number":o(e,t),e.severity=r,"off"===r?e.enabled=!1:e.enabled||(e.enabled=!0);break;case"object":if(void 0===e)return(0,n.assertValidRule)(r,t),new i.Rule(t,r,s);Object.assign(e,r,{enabled:!0,owner:e.owner});break;default:throw new Error("Invalid value")}return e}},8476:(e,t)=>{"use strict";function r(e){return Array.isArray(e)?e[0]:e}Object.defineProperty(t,"__esModule",{value:!0}),t.mergeRulesets=void 0,t.mergeRulesets=function(e,t,n){const i={...e,...t};if("extends"in i&&"extends"in i){const e=(o=i.extends,(Array.isArray(o)?o:[o]).map(r));i.extends=[...(Array.isArray(i.extends)?i.extends:[i.extends]).filter((t=>!e.includes(r(t)))),...Array.isArray(i.extends)?i.extends:[i.extends]]}var o;if("aliases"in e&&"aliases"in t&&(i.aliases={...e.aliases,...t.aliases}),!("rules"in e)||!("rules"in t))return i;if(n)i.rules={...e.rules,...t.rules};else{const t=i;"extends"in t?Array.isArray(t.extends)?t.extends=[...t.extends,e]:t.extends=[t.extends,e]:t.extends=e}return i}},8203:(e,t,r)=>{"use strict";var n,i,o,s;Object.defineProperty(t,"__esModule",{value:!0}),t.Rule=void 0;const a=r(655),c=r(6486),p=r(5966),u=r(7953),f=r(1403),l=r(5647),d=r(2913),h=r(4231),m=r(2810);class y{constructor(e,t,r){var c,p,u;this.name=e,this.definition=t,this.owner=r,n.set(this,void 0),i.set(this,void 0),o.set(this,void 0),s.set(this,void 0),this.recommended=!1!==t.recommended,(0,a.__classPrivateFieldSet)(this,i,this.recommended,"f"),this.description=null!==(c=t.description)&&void 0!==c?c:null,this.message=null!==(p=t.message)&&void 0!==p?p:null,this.documentationUrl=null!==(u=t.documentationUrl)&&void 0!==u?u:null,this.severity=t.severity,this.resolved=!1!==t.resolved,this.formats="formats"in t?new h.Formats(t.formats):null,this.then=t.then,this.given=t.given}get enabled(){return(0,a.__classPrivateFieldGet)(this,i,"f")||void 0!==this.overrides}set enabled(e){(0,a.__classPrivateFieldSet)(this,i,e,"f")}getSeverityForSource(e,t){if(void 0===this.overrides||0===this.overrides.definition.size)return this.severity;const r=(0,p.relative)((0,p.dirname)(this.overrides.rulesetSource),e),n=[];for(const[e,t]of this.overrides.definition.entries())(0,d.minimatch)(r,e)&&n.push(t);if(0===n.length)return this.severity;let i=this.severity,o="";const s=(0,u.pathToPointer)(t);for(const e of n)for(const[t,r]of e.entries())t.length>=o.length&&s.startsWith(t)&&(o=t,i=r);return i}get severity(){return(0,a.__classPrivateFieldGet)(this,n,"f")}set severity(e){void 0===e?(0,a.__classPrivateFieldSet)(this,n,l.DEFAULT_SEVERITY_LEVEL,"f"):(0,a.__classPrivateFieldSet)(this,n,(0,l.getDiagnosticSeverity)(e),"f")}get then(){return(0,a.__classPrivateFieldGet)(this,o,"f")}set then(e){(0,a.__classPrivateFieldSet)(this,o,Array.isArray(e)?e:[e],"f")}get given(){return(0,a.__classPrivateFieldGet)(this,s,"f")}set given(e){const t=Array.isArray(e)?e:[e];(0,a.__classPrivateFieldSet)(this,s,this.owner.hasComplexAliases?t:t.flatMap((e=>(0,m.resolveAlias)(this.owner.aliases,e,null))).filter(c.isString),"f")}getGivenForFormats(e){return this.owner.hasComplexAliases?(0,a.__classPrivateFieldGet)(this,s,"f").flatMap((t=>(0,m.resolveAlias)(this.owner.aliases,t,e))):(0,a.__classPrivateFieldGet)(this,s,"f")}matchesFormat(e){if(null===this.formats)return!0;if(null===e)return!1;for(const t of e)if(this.formats.has(t))return!0;return!1}clone(){return new y(this.name,this.definition,this.owner)}toJSON(){return{name:this.name,recommended:this.recommended,enabled:this.enabled,description:this.description,message:this.message,documentationUrl:this.documentationUrl,severity:this.severity,resolved:this.resolved,formats:this.formats,then:this.then.map((e=>({...e.function,function:e.function.name,..."functionOptions"in e?{functionOptions:(0,f.printValue)(e.functionOptions)}:null}))),given:Array.isArray(this.definition.given)?this.definition.given:[this.definition.given],owner:this.owner.id}}}t.Rule=y,n=new WeakMap,i=new WeakMap,o=new WeakMap,s=new WeakMap},3711:(e,t,r)=>{"use strict";var n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.Ruleset=void 0;const s=r(655),a=r(5966),c=r(7953),p=r(2913),u=r(3916),f=r(1761),l=r(309),d=r(8476),h=r(4231),m=r(3504),y=Symbol("@stoplight/spectral/ruleset/#stack"),g=/^\.?spectral\.(ya?ml|json|m?js)$/;let v=1;class b{constructor(e,t){var r;let a;if(this.maybeDefinition=e,n.add(this),this.id=v++,this.formats=new h.Formats,i.set(this,void 0),(0,c.isPlainObject)(e)&&"extends"in e){const{extends:t,...r}=e;(0,u.assertValidRuleset)({extends:[],...r}),a=e}else(0,u.assertValidRuleset)(e),a=e;this.definition=a,(0,s.__classPrivateFieldSet)(this,i,{severity:"recommended",...t},"f");let p=!1;this.aliases=void 0===a.aliases?null:Object.fromEntries(Object.entries(a.aliases).map((e=>{const[t,r]=e;if((0,m.isSimpleAliasDefinition)(r))return e;p=!0;const n=r.targets.map((e=>({formats:new h.Formats(e.formats),given:e.given})));return[t,{...r,targets:n}]}))),this.hasComplexAliases=p;const f=null!==(r=null==t?void 0:t[y])&&void 0!==r?r:new Map;if(f.set(this.definition,this),this.extends="extends"in a?(Array.isArray(a.extends)?a.extends:[a.extends]).reduce(((e,t)=>{let r,n="recommended";return Array.isArray(t)?[r,n]=t:r=t,void 0!==f.get(r)||e.push(new b(r,{severity:n,[y]:f})),e}),[]):null,1===f.size&&a.overrides?this.overrides=a.overrides:this.overrides=null,f.delete(this.definition),Array.isArray(this.definition.formats))for(const e of this.definition.formats)this.formats.add(e);if(Array.isArray(this.extends))for(const{formats:e}of this.extends)for(const t of e)this.formats.add(t);this.rules=(0,s.__classPrivateFieldGet)(this,n,"m",o).call(this)}get source(){var e;return null!==(e=(0,s.__classPrivateFieldGet)(this,i,"f").source)&&void 0!==e?e:null}fromSource(e){if(null===this.overrides)return this;const{source:t}=this;if(null===e)throw new Error("Document must have some source assigned. If you use Spectral programmatically make sure to pass the source to Document");if(null===t)throw new Error("Ruleset must have some source assigned. If you use Spectral programmatically make sure to pass the source to Ruleset");const r=(0,a.relative)((0,a.dirname)(t),e),n={},i=this.overrides.flatMap((({files:e,...i})=>{var o,s;const a=[];for(const u of e){const e=null!==(o=(0,c.extractSourceFromRef)(u))&&void 0!==o?o:u;if(!(0,p.minimatch)(r,e))continue;const f=(0,c.extractPointerFromRef)(u);if(e===u)a.push(u);else{if(!("rules"in i)||null===f)throw new Error("Unknown error. The ruleset is presumably invalid.");for(const[r,o]of Object.entries(i.rules)){if("object"==typeof o||"boolean"==typeof o)throw new Error("Unknown error. The ruleset is presumably invalid.");const{definition:i}=null!==(s=n[r])&&void 0!==s?s:n[r]={rulesetSource:t,definition:new Map},a=(0,l.getDiagnosticSeverity)(o);let c=i.get(e);void 0===c&&(c=new Map,i.set(e,c)),c.set(f,a)}}}return 0===a.length?[]:i})),{overrides:o,...s}=this.definition;if(0===i.length&&0===Object.keys(n).length)return this;const u=0===i.length?null:i.length>1?i.slice(1).reduce(((e,t)=>(0,d.mergeRulesets)(e,t,!0)),i[0]):i[0],f=new b(null===u?s:(0,d.mergeRulesets)(s,u,!1),{severity:"recommended",source:t});for(const[e,t]of Object.entries(n))e in f.rules&&(f.rules[e].overrides=t);return f}get parserOptions(){return{...l.DEFAULT_PARSER_OPTIONS,...this.definition.parserOptions}}static isDefaultRulesetFile(e){return g.test(e)}toJSON(){return{id:this.id,extends:this.extends,source:this.source,aliases:this.aliases,formats:0===this.formats.size?null:this.formats,rules:this.rules,overrides:this.overrides,parserOptions:this.parserOptions}}}t.Ruleset=b,i=new WeakMap,n=new WeakSet,o=function(){const e={};if(null!==this.extends&&this.extends.length>0)for(const t of this.extends)if(t!==this)for(const r of Object.values(t.rules))e[r.name]=r;if("rules"in this.definition)for(const[t,r]of Object.entries(this.definition.rules)){const n=(0,f.mergeRule)(e[t],t,r,this);if(e[t]=n,n.owner===this&&(n.enabled="all"===(0,s.__classPrivateFieldGet)(this,i,"f").severity||"recommended"===(0,s.__classPrivateFieldGet)(this,i,"f").severity&&n.recommended),null!==n.formats)for(const e of n.formats)this.formats.add(e);else n.owner!==this?n.formats=void 0===n.owner.definition.formats?null:new h.Formats(n.owner.definition.formats):void 0!==this.definition.formats&&(n.formats=new h.Formats(this.definition.formats));void 0!==this.definition.documentationUrl&&null===n.documentationUrl&&(n.documentationUrl=`${this.definition.documentationUrl}#${t}`)}return e}},3504:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScopedAliasDefinition=t.isValidAliasTarget=t.isSimpleAliasDefinition=void 0;const n=r(7953),i=r(6486);function o(e){const t=e.formats;return!!(Array.isArray(t)||t instanceof Set)&&Array.isArray(e.given)&&e.given.every(i.isString)}t.isSimpleAliasDefinition=function(e){return Array.isArray(e)},t.isValidAliasTarget=o,t.isScopedAliasDefinition=function(e){return(0,n.isPlainObject)(e)&&Array.isArray(e.targets)&&e.targets.every(o)}},2913:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.minimatch=void 0;const n=(0,r(655).__importDefault)(r(1171)),i={matchBase:!0};t.minimatch=function(e,t){return(0,n.default)(e,t,i)}},5647:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDiagnosticSeverity=t.DEFAULT_SEVERITY_LEVEL=void 0;const n=r(2749);t.DEFAULT_SEVERITY_LEVEL=n.DiagnosticSeverity.Warning;const i={error:n.DiagnosticSeverity.Error,warn:n.DiagnosticSeverity.Warning,info:n.DiagnosticSeverity.Information,hint:n.DiagnosticSeverity.Hint,off:-1};t.getDiagnosticSeverity=function(e){return Number.isNaN(Number(e))?i[e]:Number(e)}},575:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createValidator=void 0;const n=r(655),i=(0,n.__importStar)(r(1581)),o=(0,n.__importDefault)(r(2141)),s=(0,n.__importDefault)(r(5477)),a=(0,n.__importDefault)(r(9049)),c=(0,n.__importStar)(r(3263)),p=(0,n.__importStar)(r(1128)),u=(0,n.__importStar)(r(8129)),f=(0,n.__importStar)(r(7831)),l=(0,n.__importStar)(r(4051)),d=r(8956),h=r(3221),m={js:null,json:null};t.createValidator=function(e){const t=m[e];if(null!==t)return t;const r=new i.default({allErrors:!0,strict:!0,strictRequired:!1,keywords:["$anchor"],schemas:[c,p],passContext:!0});(0,s.default)(r),(0,a.default)(r),r.addKeyword({keyword:"x-spectral-runtime",schemaType:"string",error:{message(e){var t;return i._`${void 0!==(null===(t=e.params)||void 0===t?void 0:t.message)?e.params.message:""}`},params(e){var t;return i._`{ errors: ${void 0!==(null===(t=e.params)||void 0===t?void 0:t.errors)&&e.params.errors} || [] }`}},code(e){const{data:t}=e;switch(e.schema){case"format":e.fail(i._`typeof ${t} !== "function"`);break;case"ruleset-function":{const r=e.gen.const("spectralFunction",i._`this.validateFunction(${t}.function, ${t}.functionOptions === void 0 ? null : ${t}.functionOptions, ${o.default.instancePath})`);e.gen.if(i._`${r} !== void 0`),e.error(!1,{errors:r}),e.gen.endIf();break}case"alias":{const r=e.gen.const("spectralAlias",i._`this.validateAlias(${o.default.rootData}, ${t}, ${o.default.instancePath})`);e.gen.if(i._`${r} !== void 0`),e.error(!1,{errors:r}),e.gen.endIf();break}}}}),"js"===e?r.addSchema(f):r.addSchema(l);const n=new Proxy(r.compile(u),{apply:(e,t,r)=>Reflect.apply(e,{validateAlias:d.validateAlias,validateFunction:h.validateFunction},r)});return m[e]=n,n}},4931:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidRule=t.assertValidRuleset=void 0;const n=r(655),i=r(7953),o=r(575),s=r(2997),a=(0,n.__importDefault)(r(6630));t.assertValidRuleset=function(e,t="js"){var r;if(!(0,i.isPlainObject)(e))throw new s.RulesetValidationError("Provided ruleset is not an object",[]);if(!("rules"in e)&&!("extends"in e)&&!("overrides"in e))throw new s.RulesetValidationError("Ruleset must have rules or extends or overrides defined",[]);const n=(0,o.createValidator)(t);if(!n(e))throw new a.default((0,s.convertAjvErrors)(null!==(r=n.errors)&&void 0!==r?r:[]))},t.assertValidRule=function(e,t){if(!function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&("given"in e||"then"in e)}(e))throw new s.RulesetValidationError("Rule definition expected",["rules",t])}},2997:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertAjvErrors=t.RulesetValidationError=void 0;const n=r(6309);class i extends Error{constructor(e,t){super(e),this.message=e,this.path=t}}t.RulesetValidationError=i;const o=/^\/rules\/[^/]+/,s=/^\/(?:aliases|extends|overrides(?:\/\d+\/extends)?)/;function a(e){return(0,n.isAggregateError)(e)?e.errors.flatMap(a):e}t.convertAjvErrors=function(e){const t=[...e].sort(((e,t)=>{const r=e.instancePath.length-t.instancePath.length;return 0===r?"errorMessage"===e.keyword&&"errorMessage"!==t.keyword?-1:0:r})).filter(((e,t,r)=>0===t||r[t-1].instancePath!==e.instancePath)),r=[];e:for(let e=0;e{var t;return"x-spectral-runtime"===e.keyword?a(e.params.errors):new i(null!==(t=e.message)&&void 0!==t?t:"unknown error",e.instancePath.slice(1).split("/"))}))}},3916:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidRuleset=t.RulesetValidationError=void 0;var n=r(2997);Object.defineProperty(t,"RulesetValidationError",{enumerable:!0,get:function(){return n.RulesetValidationError}});var i=r(4931);Object.defineProperty(t,"assertValidRuleset",{enumerable:!0,get:function(){return i.assertValidRuleset}})},8956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAlias=void 0;const n=r(7953),i=r(6486),o=r(2810),s=r(4231),a=r(1328);function c(e,t){if(!Array.isArray(e))return null;const r=Number(t);if(Number.isNaN(r))return null;if(r<0&&r>=e.length)return null;const i=e[r];return(0,n.isPlainObject)(i)&&(0,n.isPlainObject)(i.aliases)?i.aliases:null}t.validateAlias=function(e,t,r){try{const n=r.slice(1).split("/"),a=(0,i.get)(e,[...n.slice(0,n.indexOf("rules")+2),"formats"]),p="overrides"===n[0]?{...e.aliases,...c(e.overrides,n[1])}:e.aliases;(0,o.resolveAlias)(null!=p?p:null,t,Array.isArray(a)?new s.Formats(a):null)}catch(e){return(0,a.wrapError)(e,r)}}},1328:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapError=void 0;const n=r(655),i=r(6486),o=(0,n.__importDefault)(r(6630)),s=r(2997),a=r(6309);function c(e){return e instanceof s.RulesetValidationError?(e.path.unshift(...this),e):new s.RulesetValidationError((0,i.isError)(e)?e.message:String(e),[...this])}t.wrapError=function(e,t){const r=t.slice(1).split("/");return(0,a.isAggregateError)(e)?new o.default(e.errors.map(c,r)):c.call(r,e)}},3221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateFunction=void 0;const n=r(1328);t.validateFunction=function(e,t,r){try{if(function(e){if("function"!=typeof e)throw Error("Function is not defined")}(e),!("validator"in e))return;e.validator.bind(e)(t)}catch(e){return(0,n.wrapError)(e,r)}}},8876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RunnerRuntime=t.Runner=void 0;var n=r(6125);Object.defineProperty(t,"Runner",{enumerable:!0,get:function(){return n.Runner}});var i=r(2797);Object.defineProperty(t,"RunnerRuntime",{enumerable:!0,get:function(){return i.RunnerRuntime}})},6859:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lintNode=void 0;const n=r(1403),i=r(6486),o=r(905),s=r(5786),a=r(2055);function c(e,t,r,o){var c,p,u,f,l;for(const d of t){const t=(null!==(c=d.path)&&void 0!==c?c:o).map(n.decodeSegmentFragment),h=e.documentInventory.findAssociatedItemForPath(t,r.resolved),m=null!==(p=null==h?void 0:h.path)&&void 0!==p?p:(0,n.getClosestJsonPath)(e.documentInventory.resolved,t),y=null==h?void 0:h.document.source,g=null!==(u=null==h?void 0:h.document)&&void 0!==u?u:e.documentInventory.document,v=null!==(f=g.getRangeForJsonPath(m,!0))&&void 0!==f?f:s.Document.DEFAULT_RANGE,b=0===m.length?g.data:(0,i.get)(g.data,m),j={property:void 0!==(null==h?void 0:h.missingPropertyPath)&&h.missingPropertyPath.length>m.length?(0,n.printPath)(h.missingPropertyPath.slice(m.length-1),n.PrintStyle.Dot):m.length>0?m[m.length-1]:"",error:d.message,path:(0,n.printPath)(m,n.PrintStyle.EscapedPointer),description:r.description,value:b},$=(0,a.message)(d.message,j);j.error=$;const _=null!=y?r.getSeverityForSource(y,m):r.severity;-1!==_&&e.results.push({code:r.name,message:(null===r.message?null!==(l=r.description)&&void 0!==l?l:$:(0,a.message)(r.message,j)).trim(),path:m,severity:_,...null!==y?{source:y}:null,range:v})}}t.lintNode=(e,t,r)=>{var n;const s={document:e.documentInventory.document,documentInventory:e.documentInventory,rule:r,path:[]},p=t.path.length>0&&"$"===t.path[0]?t.path.slice(1):t.path;for(const u of r.then){const f=(0,a.getLintTargets)(t.value,u.field);for(const t of f){const a=t.path.length>0?[...p,...t.path]:p;let f;try{f=u.function(t.value,null!==(n=u.functionOptions)&&void 0!==n?n:null,{...s,path:a})}catch(e){throw new o.ErrorWithCause(`Function "${u.function.name}" threw an exception${(0,i.isError)(e)?`: ${e.message}`:""}`,{cause:e})}void 0!==f&&("then"in f?e.promises.push(f.then((t=>void 0===t?void 0:void c(e,t,r,a)))):c(e,f,r,a))}}}},6125:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Runner=void 0;const n=r(655),i=r(396),o=r(6859),s=(0,n.__importDefault)(r(691)),a=r(5160),c=r(7953);function p(e,t,r){var n;if((0,c.isPlainObject)(e)||Array.isArray(e))new s.default(r,{fallback:a.jsonPathPlus,unsafe:!1,output:"auto",customShorthands:{}}).query(e,Object.entries(t).reduce(((e,[t,r])=>(e[t]=e=>{for(const t of r)t(e)},e)),{}));else for(const r of null!==(n=t.$)&&void 0!==n?n:[])r({path:[],value:e})}t.Runner=class{constructor(e,t){var r;this.runtime=e,this.inventory=t,this.results=[...this.inventory.diagnostics,...null!==(r=this.inventory.errors)&&void 0!==r?r:[]]}get document(){return this.inventory.document}addResult(e){this.results.push(e)}async run(e){var t,r,n;this.runtime.emit("setup");const{inventory:i}=this,{rules:s}=e,a=null!==(t=this.document.formats)&&void 0!==t?t:null,c={ruleset:e,documentInventory:i,results:this.results,promises:[]},u=Object.values(s).filter((e=>e.enabled)).filter((e=>e.matchesFormat(i.formats))),f={resolved:{},unresolved:{}};for(const e of u)for(const t of e.getGivenForFormats(a)){const i=t=>{(0,o.lintNode)(c,t,e)};(null!==(r=(n=f[e.resolved?"resolved":"unresolved"])[t])&&void 0!==r?r:n[t]=[]).push(i)}const l=Object.keys(f.resolved),d=Object.keys(f.unresolved);l.length>0&&p(c.documentInventory.resolved,f.resolved,l),d.length>0&&p(c.documentInventory.unresolved,f.unresolved,d),this.runtime.emit("beforeTeardown");try{c.promises.length>0&&await Promise.all(c.promises)}finally{this.runtime.emit("afterTeardown")}}getResults(e){return(0,i.prepareResults)(this.results,e)}}},2797:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RunnerRuntime=void 0;const n=r(7747);class i extends n.EventEmitter{constructor(){super(),this.revokables=[]}persist(e){const{proxy:t,revoke:r}=Proxy.revocable(e,{});return this.revokables.push(r),t}revoke(){let e;for(;e=this.revokables.shift();)e()}spawn(){return this.persist(Object.freeze({on:this.hijackDisposable(this.on)}))}hijackDisposable(e){return(...t)=>{this.revokables.push(e.apply(this,t).dispose)}}}t.RunnerRuntime=i},2776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLintTargets=void 0;const n=r(6879),i=r(6486);t.getLintTargets=(e,t)=>{const r=[];if((0,i.isObject)(e)&&"string"==typeof t)if("@key"===t)for(const t of Object.keys(e))r.push({path:[t],value:t});else t.startsWith("$")?(0,n.JSONPath)({path:t,json:e,resultType:"all",callback(e){r.push({path:(0,i.toPath)(e.path.slice(1)),value:e.value})}}):r.push({path:(0,i.toPath)(t),value:(0,i.get)(e,t)});else r.push({path:[],value:e});return 0===r.length&&r.push({path:[],value:void 0}),r}},2055:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);(0,n.__exportStar)(r(2776),t),(0,n.__exportStar)(r(1667),t)},1667:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.message=void 0;const n=r(1403),i=new(r(9342).Replacer)(2);i.addFunction("print",(function(e){if("string"!=typeof e)return"";const{property:t,value:r}=this;switch(e){case"property":return void 0!==t&&""!==t?`"${t}" property `:"The document ";case"value":return(0,n.printValue)(r);default:return e in this&&null!==this[e]?String(this[e]):""}})),t.message=i.print.bind(i)},4840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Spectral=void 0;const n=r(655),i=r(7953),o=r(2749),s=(0,n.__importStar)(r(644)),a=r(3871),c=r(6486),p=r(5786),u=r(827),f=r(8876),l=r(396),d=r(3711),h=r(3850),m=r(7690);c.memoize.Cache=WeakMap,(0,n.__exportStar)(r(4489),t),t.Spectral=class{constructor(e){this.opts=e,this._computeFingerprint=(0,c.memoize)(l.defaultComputeResultFingerprint),void 0!==(null==e?void 0:e.resolver)?this._resolver=e.resolver:this._resolver=(0,a.createHttpAndFileResolver)(),this.runtime=new f.RunnerRuntime}parseDocument(e){return e instanceof p.Document?e:(0,p.isParsedResult)(e)?new p.ParsedDocument(e):new p.Document("string"==typeof e?e:(0,i.stringify)(e,void 0,2),s.Yaml)}async runWithResolved(e,t={}){if(void 0===this.ruleset)throw new Error("No ruleset has been defined. Have you called setRuleset()?");const r=this.parseDocument(e),n=this.ruleset.fromSource(r.source),i=new u.DocumentInventory(r,this._resolver);await i.resolve();const o=new f.Runner(this.runtime,i);if(o.results.push(...this._filterParserErrors(r.diagnostics,n.parserOptions)),void 0===r.formats){const e=[...n.formats].filter((e=>e(i.resolved,r.source)));0===e.length&&!0!==t.ignoreUnknownFormat?(r.formats=null,n.formats.size>0&&o.addResult(this._generateUnrecognizedFormatError(r,Array.from(n.formats)))):r.formats=new Set(e)}await o.run(n);const s=o.getResults(this._computeFingerprint);return{resolved:i.resolved,results:s}}async run(e,t={}){return(await this.runWithResolved(e,t)).results}setRuleset(e){this.runtime.revoke(),this.ruleset=e instanceof d.Ruleset?e:new d.Ruleset(e)}_generateUnrecognizedFormatError(e,t){return(0,h.generateDocumentWideResult)(e,`The provided document does not match any of the registered formats [${t.map((e=>{var t;return null!==(t=e.displayName)&&void 0!==t?t:e.name})).join(", ")}]`,o.DiagnosticSeverity.Warning,"unrecognized-format")}_filterParserErrors(e,t){return e.reduce(((e,r)=>{if("parser"!==r.code)return e;let n;if(r.message.startsWith("Mapping key must be a string scalar rather than"))n=(0,m.getDiagnosticSeverity)(t.incompatibleValues);else{if(!r.message.startsWith("Duplicate key"))return e.push(r),e;n=(0,m.getDiagnosticSeverity)(t.duplicateKeys)}return-1!==n&&(e.push(r),r.severity=n),e}),[])}}},1095:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4489:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);(0,n.__exportStar)(r(5445),t),(0,n.__exportStar)(r(1095),t)},5445:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateDocumentWideResult=void 0;const n=r(5786);t.generateDocumentWideResult=(e,t,r,i)=>{var o;return{range:null!==(o=e.getRangeForJsonPath([],!0))&&void 0!==o?o:n.Document.DEFAULT_RANGE,message:t,code:i,severity:r,...null!==e.source?{source:e.source}:null,path:[]}}},396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);(0,n.__exportStar)(r(7926),t),(0,n.__exportStar)(r(4838),t)},7926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareResults=t.defaultComputeResultFingerprint=void 0;const n=r(9560),i=r(6486),o=r(4838);t.defaultComputeResultFingerprint=(e,t)=>{let r=String(e.code);return e.path.length>0?r+=JSON.stringify(e.path):r+=JSON.stringify(e.range),void 0!==e.source&&(r+=e.source),void 0!==e.message&&(r+=e.message),t(r)},t.prepareResults=(e,t)=>(s(e,t),c(a(e)));const s=(e,t)=>{for(const r of e)Object.defineProperty(r,"fingerprint",{value:t(r,n)});return e},a=e=>(0,i.uniqBy)([...e],"fingerprint"),c=e=>[...e].sort(o.compareResults)},9342:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Replacer=void 0;const n=(0,r(655).__importDefault)(r(1378));t.Replacer=class{constructor(e){this.regex=new RegExp(`#?${"{".repeat(e)}([^}\n]+)${"}".repeat(e)}`,"g"),this.functions={}}addFunction(e,t){this.functions[e]=t}print(e,t){return e.replace(this.regex,((r,i,o)=>"#"===e[o]?String((0,n.default)(i,{...Object.entries(this.functions).reduce(((e,[r,n])=>(e[r]=n.bind(t),e)),{}),...t})):i in t?String(t[i]):""))}}},4838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortResults=t.compareResults=t.comparePosition=void 0;const r=e=>e<0?-1:e>0?1:0;t.comparePosition=(e,t)=>{const n=e.line-t.line;if(0!==n)return r(n);const i=e.character-t.character;return r(i)},t.compareResults=(e,n)=>{const i=((e,t)=>void 0===e&&void 0===t?0:void 0===e?-1:void 0===t?1:e.localeCompare(t))(e.source,n.source);if(0!==i)return r(i);const o=(0,t.comparePosition)(e.range.start,n.range.start);if(0!==o)return o;const s=((e,t)=>void 0===e&&void 0===t?0:void 0===e?-1:void 0===t?1:String(e).localeCompare(String(t),void 0,{numeric:!0}))(e.code,n.code);if(0!==s)return r(s);const a=e.path.join().localeCompare(n.path.join());return r(a)},t.sortResults=e=>[...e].sort(t.compareResults)},2749:(e,t)=>{"use strict";var r,n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.HttpParamStyles=void 0,(r=t.HttpParamStyles||(t.HttpParamStyles={})).Simple="simple",r.Matrix="matrix",r.Label="label",r.Form="form",r.CommaDelimited="commaDelimited",r.SpaceDelimited="spaceDelimited",r.PipeDelimited="pipeDelimited",r.DeepObject="deepObject",t.DiagnosticSeverity=void 0,(n=t.DiagnosticSeverity||(t.DiagnosticSeverity={}))[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Information=2]="Information",n[n.Hint=3]="Hint",t.NodeType=void 0,(i=t.NodeType||(t.NodeType={})).Article="article",i.HttpService="http_service",i.HttpServer="http_server",i.HttpOperation="http_operation",i.Model="model",i.Generic="generic",i.Unknown="unknown",i.TableOfContents="table_of_contents",i.SpectralRuleset="spectral_ruleset",i.Styleguide="styleguide",i.Image="image",t.NodeFormat=void 0,(o=t.NodeFormat||(t.NodeFormat={})).Json="json",o.Markdown="markdown",o.Yaml="yaml",o.Apng="apng",o.Avif="avif",o.Bmp="bmp",o.Gif="gif",o.Jpeg="jpeg",o.Png="png",o.Svg="svg",o.Webp="webp"},5839:(e,t)=>{"use strict";var r,n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.HttpParamStyles=void 0,(r=t.HttpParamStyles||(t.HttpParamStyles={})).Simple="simple",r.Matrix="matrix",r.Label="label",r.Form="form",r.CommaDelimited="commaDelimited",r.SpaceDelimited="spaceDelimited",r.PipeDelimited="pipeDelimited",r.DeepObject="deepObject",t.DiagnosticSeverity=void 0,(n=t.DiagnosticSeverity||(t.DiagnosticSeverity={}))[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Information=2]="Information",n[n.Hint=3]="Hint",t.NodeType=void 0,(i=t.NodeType||(t.NodeType={})).Article="article",i.HttpService="http_service",i.HttpServer="http_server",i.HttpOperation="http_operation",i.Model="model",i.Generic="generic",i.Unknown="unknown",i.TableOfContents="table_of_contents",i.SpectralRuleset="spectral_ruleset",i.Styleguide="styleguide",i.Image="image",t.NodeFormat=void 0,(o=t.NodeFormat||(t.NodeFormat={})).Json="json",o.Markdown="markdown",o.Yaml="yaml",o.Apng="apng",o.Avif="avif",o.Bmp="bmp",o.Gif="gif",o.Jpeg="jpeg",o.Png="png",o.Svg="svg",o.Webp="webp"},3854:(e,t,r)=>{"use strict";var n=r(210),i=r(2432),o=r(7312),s=r(3633),a=r(1645),c=n("%TypeError%");e.exports=function(e,t,r){if("String"!==s(e))throw new c("Assertion failed: `S` must be a String");if(!o(t)||t<0||t>a)throw new c("Assertion failed: `length` must be an integer >= 0 and <= 2**53");if("Boolean"!==s(r))throw new c("Assertion failed: `unicode` must be a Boolean");return r?t+1>=e.length?t+1:t+i(e,t)["[[CodeUnitCount]]"]:t+1}},581:(e,t,r)=>{"use strict";var n=r(210),i=r(1924),o=n("%TypeError%"),s=r(6975),a=n("%Reflect.apply%",!0)||i("%Function.prototype.apply%");e.exports=function(e,t){var r=arguments.length>2?arguments[2]:[];if(!s(r))throw new o("Assertion failed: optional `argumentsList`, if provided, must be a List");return a(e,t,r)}},2432:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(1924),o=r(9544),s=r(5424),a=r(3633),c=r(4857),p=i("String.prototype.charAt"),u=i("String.prototype.charCodeAt");e.exports=function(e,t){if("String"!==a(e))throw new n("Assertion failed: `string` must be a String");var r=e.length;if(t<0||t>=r)throw new n("Assertion failed: `position` must be >= 0, and < the length of `string`");var i=u(e,t),f=p(e,t),l=o(i),d=s(i);if(!l&&!d)return{"[[CodePoint]]":f,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!1};if(d||t+1===r)return{"[[CodePoint]]":f,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0};var h=u(e,t+1);return s(h)?{"[[CodePoint]]":c(i,h),"[[CodeUnitCount]]":2,"[[IsUnpairedSurrogate]]":!1}:{"[[CodePoint]]":f,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0}}},4210:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(3682),o=r(8334),s=r(697),a=r(3746),c=r(4914),p=r(4305),u=r(484),f=r(3633);e.exports=function(e,t,r){if("Object"!==f(e))throw new n("Assertion failed: Type(O) is not Object");if(!p(t))throw new n("Assertion failed: IsPropertyKey(P) is not true");var l=s(e,t),d=!l||c(e);return!(l&&!l["[[Configurable]]"]||!d)&&i(a,u,o,e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":r,"[[Writable]]":!0})}},1146:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(4210),o=r(4305),s=r(3633);e.exports=function(e,t,r){if("Object"!==s(e))throw new n("Assertion failed: Type(O) is not Object");if(!o(t))throw new n("Assertion failed: IsPropertyKey(P) is not true");var a=i(e,t,r);if(!a)throw new n("unable to create data property");return a}},7730:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(3682),o=r(8334),s=r(3746),a=r(4305),c=r(484),p=r(3633);e.exports=function(e,t,r){if("Object"!==p(e))throw new n("Assertion failed: Type(O) is not Object");if(!a(t))throw new n("Assertion failed: IsPropertyKey(P) is not true");return i(s,c,o,e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":r,"[[Writable]]":!0})}},8334:(e,t,r)=>{"use strict";var n=r(2188),i=r(7141),o=r(3633);e.exports=function(e){return void 0!==e&&n(o,"Property Descriptor","Desc",e),i(e)}},1391:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(12),o=r(4305),s=r(3633);e.exports=function(e,t){if("Object"!==s(e))throw new n("Assertion failed: Type(O) is not Object");if(!o(t))throw new n("Assertion failed: IsPropertyKey(P) is not true, got "+i(t));return e[t]}},6400:(e,t,r)=>{"use strict";var n=r(210),i=n("%TypeError%"),o=n("%Symbol.asyncIterator%",!0),s=r(12),a=r(1405)(),c=r(7113),p=r(3854),u=r(581),f=r(7364),l=r(6975),d=r(3633);e.exports=function(e,t,r){var n=t;if(arguments.length<2&&(n="sync"),"sync"!==n&&"async"!==n)throw new i("Assertion failed: `hint` must be one of 'sync' or 'async', got "+s(t));var h=r;if(arguments.length<3)if("async"===n){if(a&&o&&(h=f(e,o)),void 0===h)throw new i("async from sync iterators aren't currently supported")}else h=c({AdvanceStringIndex:p,GetMethod:f,IsArray:l},e);var m=u(h,e);if("Object"!==d(m))throw new i("iterator must return an object");return m}},7364:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(631),o=r(1787),s=r(4305);e.exports=function(e,t){if(!s(t))throw new n("Assertion failed: IsPropertyKey(P) is not true");var r=i(e,t);if(null!=r){if(!o(r))throw new n(t+"is not a function");return r}}},631:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(4305),o=r(821);e.exports=function(e,t){if(!i(t))throw new n("Assertion failed: IsPropertyKey(P) is not true");return o(e)[t]}},1189:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(581),o=r(6975),s=r(631),a=r(4305);e.exports=function(e,t){if(!a(t))throw new n("Assertion failed: P must be a Property Key");var r=arguments.length>2?arguments[2]:[];if(!o(r))throw new n("Assertion failed: optional `argumentsList`, if provided, must be a List");var c=s(e,t);return i(c,e,r)}},6975:(e,t,r)=>{"use strict";e.exports=r(675)},1787:(e,t,r)=>{"use strict";e.exports=r(5320)},3746:(e,t,r)=>{"use strict";var n=r(7642),i=r(2188),o=r(3633);e.exports=function(e){return void 0!==e&&(i(o,"Property Descriptor","Desc",e),!(!n(e,"[[Value]]")&&!n(e,"[[Writable]]")))}},4914:(e,t,r)=>{"use strict";var n=r(210),i=n("%Object.preventExtensions%",!0),o=n("%Object.isExtensible%",!0),s=r(4790);e.exports=i?function(e){return!s(e)&&o(e)}:function(e){return!s(e)}},7312:(e,t,r)=>{"use strict";var n=r(4908),i=r(375),o=r(3633),s=r(9086),a=r(2633);e.exports=function(e){if("Number"!==o(e)||s(e)||!a(e))return!1;var t=n(e);return i(t)===t}},4305:e=>{"use strict";e.exports=function(e){return"string"==typeof e||"symbol"==typeof e}},840:(e,t,r)=>{"use strict";var n=r(210)("%Symbol.match%",!0),i=r(8420),o=r(9731);e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(n){var t=e[n];if(void 0!==t)return o(t)}return i(e)}},90:(e,t,r)=>{"use strict";var n=r(1924)("Array.prototype.push"),i=r(6400),o=r(3152),s=r(3452);e.exports=function(e){var t;t=arguments.length>1?i(e,"sync",arguments[1]):i(e,"sync");for(var r=[],a=!0;a;)if(a=o(t)){var c=s(a);n(r,c)}return r}},1433:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(1391),o=r(9731),s=r(3633);e.exports=function(e){if("Object"!==s(e))throw new n("Assertion failed: Type(iterResult) is not Object");return o(i(e,"done"))}},9634:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(1189),o=r(3633);e.exports=function(e,t){var r=i(e,"next",arguments.length<2?[]:[t]);if("Object"!==o(r))throw new n("iterator next must return an object");return r}},3152:(e,t,r)=>{"use strict";var n=r(1433),i=r(9634);e.exports=function(e){var t=i(e);return!0!==n(t)&&t}},3452:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(1391),o=r(3633);e.exports=function(e){if("Object"!==o(e))throw new n("Assertion failed: Type(iterResult) is not Object");return i(e,"value")}},697:(e,t,r)=>{"use strict";var n=r(210),i=r(882),o=n("%TypeError%"),s=r(1924)("Object.prototype.propertyIsEnumerable"),a=r(7642),c=r(6975),p=r(4305),u=r(840),f=r(9916),l=r(3633);e.exports=function(e,t){if("Object"!==l(e))throw new o("Assertion failed: O must be an Object");if(!p(t))throw new o("Assertion failed: P must be a Property Key");if(a(e,t)){if(!i){var r=c(e)&&"length"===t,n=u(e)&&"lastIndex"===t;return{"[[Configurable]]":!(r||n),"[[Enumerable]]":s(e,t),"[[Value]]":e[t],"[[Writable]]":!0}}return f(i(e,t))}}},1793:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(5693),o=r(3633);e.exports=function(e){if("Object"!==o(e))throw new n("Assertion failed: O must be an Object");if(!i)throw new n("This environment does not support fetching prototypes.");return i(e)}},5688:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(2105),o=r(1793),s=r(3633);e.exports=function(e,t){if("Object"!==s(t)&&"Null"!==s(t))throw new n("Assertion failed: V must be Object or Null");try{i(e,t)}catch(e){return!1}return o(e)===t}},9619:(e,t,r)=>{"use strict";e.exports=r(4559)},484:(e,t,r)=>{"use strict";var n=r(9086);e.exports=function(e,t){return e===t?0!==e||1/e==1/t:n(e)&&n(t)}},9731:e=>{"use strict";e.exports=function(e){return!!e}},821:(e,t,r)=>{"use strict";var n=r(210)("%Object%"),i=r(9619);e.exports=function(e){return i(e),n(e)}},9916:(e,t,r)=>{"use strict";var n=r(7642),i=r(210)("%TypeError%"),o=r(3633),s=r(9731),a=r(1787);e.exports=function(e){if("Object"!==o(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(n(e,"enumerable")&&(t["[[Enumerable]]"]=s(e.enumerable)),n(e,"configurable")&&(t["[[Configurable]]"]=s(e.configurable)),n(e,"value")&&(t["[[Value]]"]=e.value),n(e,"writable")&&(t["[[Writable]]"]=s(e.writable)),n(e,"get")){var r=e.get;if(void 0!==r&&!a(r))throw new i("getter must be a function");t["[[Get]]"]=r}if(n(e,"set")){var c=e.set;if(void 0!==c&&!a(c))throw new i("setter must be a function");t["[[Set]]"]=c}if((n(t,"[[Get]]")||n(t,"[[Set]]"))&&(n(t,"[[Value]]")||n(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},3633:(e,t,r)=>{"use strict";var n=r(3951);e.exports=function(e){return"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":n(e)}},4857:(e,t,r)=>{"use strict";var n=r(210),i=n("%TypeError%"),o=n("%String.fromCharCode%"),s=r(9544),a=r(5424);e.exports=function(e,t){if(!s(e)||!a(t))throw new i("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");return o(e)+o(t)}},4908:(e,t,r)=>{"use strict";var n=r(210)("%Math.abs%");e.exports=function(e){return n(e)}},375:e=>{"use strict";var t=Math.floor;e.exports=function(e){return t(e)}},4559:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%");e.exports=function(e,t){if(null==e)throw new n(t||"Cannot call method on "+e);return e}},3951:e=>{"use strict";e.exports=function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}},3682:(e,t,r)=>{"use strict";var n=r(1044),i=r(210),o=n()&&i("%Object.defineProperty%",!0),s=n.hasArrayLengthDefineBug(),a=s&&r(675),c=r(1924)("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,r,n,i,p){if(!o){if(!e(p))return!1;if(!p["[[Configurable]]"]||!p["[[Writable]]"])return!1;if(i in n&&c(n,i)!==!!p["[[Enumerable]]"])return!1;var u=p["[[Value]]"];return n[i]=u,t(n[i],u)}return s&&"length"===i&&"[[Value]]"in p&&a(n)&&n.length!==p["[[Value]]"]?(n.length=p["[[Value]]"],n.length===p["[[Value]]"]):(o(n,i,r(p)),!0)}},675:(e,t,r)=>{"use strict";var n=r(210)("%Array%"),i=!n.isArray&&r(1924)("Object.prototype.toString");e.exports=n.isArray||function(e){return"[object Array]"===i(e)}},2188:(e,t,r)=>{"use strict";var n=r(210),i=n("%TypeError%"),o=n("%SyntaxError%"),s=r(7642),a={"Property Descriptor":function(e){var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in e)if(s(e,r)&&!t[r])return!1;var n=s(e,"[[Value]]"),o=s(e,"[[Get]]")||s(e,"[[Set]]");if(n&&o)throw new i("Property Descriptors may not be both accessor and data descriptors");return!0},"Match Record":r(4377)};e.exports=function(e,t,r,n){var s=a[t];if("function"!=typeof s)throw new o("unknown record type: "+t);if("Object"!==e(n)||!s(n))throw new i(r+" must be a "+t)}},7141:e=>{"use strict";e.exports=function(e){if(void 0===e)return e;var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=!!e["[[Configurable]]"]),t}},7113:(e,t,r)=>{"use strict";var n=r(1405)(),i=r(210),o=r(1924),s=r(9981),a=i("%Symbol.iterator%",!0),c=o("String.prototype.slice"),p=i("%String%",!0);e.exports=function(e,t){var r;return n?r=e.GetMethod(t,a):e.IsArray(t)?r=function(){var e=-1,t=this;return{next:function(){return{done:(e+=1)>=t.length,value:t[e]}}}}:s(t)&&(r=function(){var r=0;return{next:function(){var n=e.AdvanceStringIndex(p(t),r,!0),i=c(t,r,n);return r=n,{done:n>t.length,value:i}}}}),r}},882:(e,t,r)=>{"use strict";var n=r(210)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},5693:(e,t,r)=>{"use strict";var n=r(210),i=n("%Object.getPrototypeOf%",!0),o=n("%Array.prototype%");e.exports=i||([].__proto__===o?function(e){return e.__proto__}:null)},2633:e=>{"use strict";var t=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!t(e)&&e!==1/0&&e!==-1/0}},9544:e=>{"use strict";e.exports=function(e){return"number"==typeof e&&e>=55296&&e<=56319}},4377:(e,t,r)=>{"use strict";var n=r(7642);e.exports=function(e){return n(e,"[[StartIndex]]")&&n(e,"[[EndIndex]]")&&e["[[StartIndex]]"]>=0&&e["[[EndIndex]]"]>=e["[[StartIndex]]"]&&String(parseInt(e["[[StartIndex]]"],10))===String(e["[[StartIndex]]"])&&String(parseInt(e["[[EndIndex]]"],10))===String(e["[[EndIndex]]"])}},9086:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},4790:e=>{"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},5424:e=>{"use strict";e.exports=function(e){return"number"==typeof e&&e>=56320&&e<=57343}},1645:(e,t,r)=>{"use strict";var n=r(210),i=n("%Math%"),o=n("%Number%");e.exports=o.MAX_SAFE_INTEGER||i.pow(2,53)-1},2105:(e,t,r)=>{"use strict";var n=r(210),i=n("%Object.setPrototypeOf%",!0),o=n("%Array.prototype%");e.exports=i||([].__proto__!==o?null:function(e,t){return e.__proto__=t,e})},3612:e=>{"use strict";class t{static get version(){return"1.0.2"}static toString(){return"JavaScript Expression Parser (JSEP) v"+t.version}static addUnaryOp(e){return t.max_unop_len=Math.max(e.length,t.max_unop_len),t.unary_ops[e]=1,t}static addBinaryOp(e,r,n){return t.max_binop_len=Math.max(e.length,t.max_binop_len),t.binary_ops[e]=r,n?t.right_associative.add(e):t.right_associative.delete(e),t}static addIdentifierChar(e){return t.additional_identifier_chars.add(e),t}static addLiteral(e,r){return t.literals[e]=r,t}static removeUnaryOp(e){return delete t.unary_ops[e],e.length===t.max_unop_len&&(t.max_unop_len=t.getMaxKeyLen(t.unary_ops)),t}static removeAllUnaryOps(){return t.unary_ops={},t.max_unop_len=0,t}static removeIdentifierChar(e){return t.additional_identifier_chars.delete(e),t}static removeBinaryOp(e){return delete t.binary_ops[e],e.length===t.max_binop_len&&(t.max_binop_len=t.getMaxKeyLen(t.binary_ops)),t.right_associative.delete(e),t}static removeAllBinaryOps(){return t.binary_ops={},t.max_binop_len=0,t}static removeLiteral(e){return delete t.literals[e],t}static removeAllLiterals(){return t.literals={},t}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new t(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map((e=>e.length)))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return t.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!t.binary_ops[String.fromCharCode(e)]||t.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return t.isIdentifierStart(e)||t.isDecimalDigit(e)}throwError(e){const t=new Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}runHook(e,r){if(t.hooks[e]){const n={context:this,node:r};return t.hooks.run(e,n),n.node}return r}searchHook(e){if(t.hooks[e]){const r={context:this};return t.hooks[e].find((function(e){return e.call(r.context,r),r.node})),r.node}}gobbleSpaces(){let e=this.code;for(;e===t.SPACE_CODE||e===t.TAB_CODE||e===t.LF_CODE||e===t.CR_CODE;)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");const e=this.gobbleExpressions(),r=1===e.length?e[0]:{type:t.COMPOUND,body:e};return this.runHook("after-all",r)}gobbleExpressions(e){let r,n,i=[];for(;this.index0;){if(t.binary_ops.hasOwnProperty(e)&&(!t.isIdentifierStart(this.code)||this.index+e.lengtho.right_a&&e.right_a?n>e.prec:n<=e.prec;for(;i.length>2&&c(i[i.length-2]);)a=i.pop(),r=i.pop().value,s=i.pop(),e={type:t.BINARY_EXP,operator:r,left:s,right:a},i.push(e);e=this.gobbleToken(),e||this.throwError("Expected expression after "+p),i.push(o,e)}for(c=i.length-1,e=i[c];c>1;)e={type:t.BINARY_EXP,operator:i[c-1].value,left:i[c-2],right:e},c-=2;return e}gobbleToken(){let e,r,n,i;if(this.gobbleSpaces(),i=this.searchHook("gobble-token"),i)return this.runHook("after-token",i);if(e=this.code,t.isDecimalDigit(e)||e===t.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===t.SQUOTE_CODE||e===t.DQUOTE_CODE)i=this.gobbleStringLiteral();else if(e===t.OBRACK_CODE)i=this.gobbleArray();else{for(r=this.expr.substr(this.index,t.max_unop_len),n=r.length;n>0;){if(t.unary_ops.hasOwnProperty(r)&&(!t.isIdentifierStart(this.code)||this.index+r.length=r.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}if(o===t.COMMA_CODE){if(this.index++,i++,i!==r.length)if(e===t.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===t.CBRACK_CODE)for(let e=r.length;e{if("object"!=typeof e||!e.name||!e.init)throw new Error("Invalid JSEP plugin format");this.registered[e.name]||(e.init(this.jsep),this.registered[e.name]=e)}))}}(t),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10},right_associative:new Set,additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),t.max_unop_len=t.getMaxKeyLen(t.unary_ops),t.max_binop_len=t.getMaxKeyLen(t.binary_ops);const n=e=>new t(e).parse();Object.getOwnPropertyNames(t).forEach((e=>{void 0===n[e]&&"prototype"!==e&&(n[e]=t[e])})),n.Jsep=t;var i={name:"ternary",init(e){e.hooks.add("after-expression",(function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;const r=t.node,n=this.gobbleExpression();if(n||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;const i=this.gobbleExpression();if(i||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:r,consequent:n,alternate:i},r.operator&&e.binary_ops[r.operator]<=.9){let n=r;for(;n.right.operator&&e.binary_ops[n.right.operator]<=.9;)n=n.right;t.node.test=n.right,n.right=t.node,t.node=r}}else this.throwError("Expected :")}}))}};n.plugins.register(i),e.exports=n},1458:(e,t)=>{"use strict";function r(e){return{type:"StringLiteral",value:e}}function n(e){return{type:"BooleanLiteral",value:e}}function i(e){return{type:"NumericLiteral",value:e}}function o(e){return{type:"Identifier",name:e}}function s(e,t){return{type:"CallExpression",callee:e,arguments:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayExpression=function(e){return{type:"ArrayExpression",elements:e}},t.arrowFunctionExpression=function(e,t,r=!1){return{type:"ArrowFunctionExpression",params:e,body:t,async:r}},t.assignmentExpression=function(e,t,r){return{type:"AssignmentExpression",operator:e,left:t,right:r}},t.binaryExpression=function(e,t,r){return{type:"BinaryExpression",operator:e,left:t,right:r}},t.blockStatement=function(e,t){return{type:"BlockStatement",body:e,directives:t}},t.booleanLiteral=n,t.callExpression=s,t.conditionalExpression=function(e,t,r){return{type:"ConditionalExpression",test:e,consequent:t,alternate:r}},t.exportDefaultDeclaration=function(e){return{type:"ExportDefaultDeclaration",declaration:e}},t.expressionStatement=function(e){return{type:"ExpressionStatement",expression:e}},t.forOfStatement=function(e,t,r,n){return{type:"ForOfStatement",left:e,right:t,body:r,await:n}},t.functionDeclaration=function(e,t,r){return{type:"FunctionDeclaration",id:e,params:t,body:r}},t.identifier=o,t.ifStatement=function(e,t,r){return{type:"IfStatement",test:e,consequent:t,alternate:r}},t.importDeclaration=function(e,t){return{type:"ImportDeclaration",specifiers:e,source:t}},t.importSpecifier=function(e,t){return{type:"ImportSpecifier",local:e,imported:t}},t.literal=function(e){switch(typeof e){case"number":return i(e);case"string":return r(e);case"boolean":return n(e)}},t.logicalExpression=function(e,t,r){return{type:"LogicalExpression",operator:e,left:t,right:r}},t.memberExpression=function(e,t,r=!1,n=null){return{type:"MemberExpression",object:e,property:t,computed:r,optional:n}},t.newExpression=function(e,t){return{type:"NewExpression",callee:e,arguments:t}},t.nullLiteral=function(){return{type:"NullLiteral",value:null}},t.numericLiteral=i,t.objectExpression=function(e){return{type:"ObjectExpression",properties:e}},t.objectMethod=function(e,t,r,n,i=!1,o=!1,s=!1){return{type:"ObjectMethod",kind:e,key:t,params:r,body:n,computed:i,generator:o,async:s}},t.objectProperty=function(e,t,r=!1,n=!1,i=null){return{type:"ObjectProperty",key:e,value:t,computed:r,shorthand:n,decorators:i}},t.program=function(e){return{type:"Program",body:e}},t.regExpLiteral=function(e,t=""){return{type:"RegExpLiteral",pattern:e,flags:t}},t.returnStatement=function(e){return{type:"ReturnStatement",argument:e}},t.safeBinaryExpression=function(e,t,n){let i=n;return("NumericLiteral"===n.type||"StringLiteral"===n.type&&Number.isSafeInteger(Number(n.value)))&&(i=r(String(n.value))),{type:"BinaryExpression",operator:e,left:i===n?t:s(o("String"),[t]),right:i}},t.sequenceExpression=function(e){return{type:"SequenceExpression",expressions:e}},t.stringLiteral=r,t.templateElement=function(e,t=!1){return{type:"TemplateElement",value:e,tail:t}},t.templateLiteral=function(e,t){return{type:"TemplateLiteral",quasis:e,expressions:t}},t.tryStatement=function(e,t=null,r=null){return{type:"TryStatement",block:e,handler:t,finalizer:r}},t.unaryExpression=function(e,t,r=!0){return{type:"UnaryExpression",operator:e,argument:t,prefix:r}},t.variableDeclaration=function(e,t){return{type:"VariableDeclaration",kind:e,declarations:t}},t.variableDeclarator=function(e,t){return{type:"VariableDeclarator",id:e,init:t}}},1077:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1458);function i(e){return`nimma_${e}`}function o(e){return n.identifier(i(e))}t.default=class{#e=new Set;#t=new Map;#r;#n="";runtimeDeps=new Map;constructor(e,t){this.#r=t;for(const[t,r]of Object.entries(e)){const e=[];for(const{imported:s,local:a,value:c}of r)this.#t.set(a,c),this.runtimeDeps.set(i(a),c),e.push(n.importSpecifier(o(a),n.identifier(s))),this.#e.add(n.importDeclaration(e,n.stringLiteral(t)))}}get extraCode(){return this.#n||(this.#n=function(e){const t=Reflect.apply(Function.toString,e,[]),r=t.indexOf(")")+1,n=t.slice(r).replace(/^\s*(=>\s*)?/,"");return`${t.slice(t.indexOf("("),r).split(/[,\s]+/).splice(0,3).join(", ")} => ${n}`}(this.#r)),this.#n}attach(e){for(const t of this.#e)e.push(t,"program");const t=n.identifier("fallback"),r=Array.from(this.#t.keys());return e.push(n.variableDeclaration("const",[n.variableDeclarator(t,n.callExpression(n.memberExpression(n.callExpression(n.identifier("Function"),[n.templateLiteral([n.templateElement({raw:`return ${this.extraCode}`})],[])]),n.identifier("call")),[n.objectExpression(r.map((e=>n.objectProperty(n.stringLiteral(e),o(e)))))]))]),"program"),t}}},5160:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4029);t.jsonPathPlus=n.default},4029:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4268),i=r(782),o=r(1077);function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=s(i),c=new o.default({"jsonpath-plus":[{imported:"JSONPath",local:"JSONPath",value:n.JSONPath}],"lodash.topath":[{imported:"default",local:"toPath",value:a.default}]},(function(e,t,r){this.JSONPath({callback:e=>{r({path:this.toPath(e.path.slice(1)),value:e.value})},json:e,path:t,resultType:"all"})}));t.default=c},3369:(e,t)=>{"use strict";function r(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function n(e,t){return t.get?t.get.call(e):t.value}function i(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}Object.defineProperty(t,"__esModule",{value:!0}),t.classApplyDescriptorGet=n,t.classApplyDescriptorSet=i,t.classExtractFieldDescriptor=r,t.classPrivateFieldGet=function(e,t){return n(e,r(e,t,"get"))},t.classPrivateFieldSet=function(e,t,n){return i(e,r(e,t,"set"),n),n},t.defineProperty=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},1282:(e,t)=>{"use strict";function r(e){return{type:"StringLiteral",value:e}}function n(e){return{type:"BooleanLiteral",value:e}}function i(e){return{type:"NumericLiteral",value:e}}function o(e){return{type:"Identifier",name:e}}function s(e,t){return{type:"CallExpression",callee:e,arguments:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayExpression=function(e){return{type:"ArrayExpression",elements:e}},t.arrowFunctionExpression=function(e,t,r=!1){return{type:"ArrowFunctionExpression",params:e,body:t,async:r}},t.assignmentExpression=function(e,t,r){return{type:"AssignmentExpression",operator:e,left:t,right:r}},t.binaryExpression=function(e,t,r){return{type:"BinaryExpression",operator:e,left:t,right:r}},t.blockStatement=function(e,t){return{type:"BlockStatement",body:e,directives:t}},t.booleanLiteral=n,t.callExpression=s,t.conditionalExpression=function(e,t,r){return{type:"ConditionalExpression",test:e,consequent:t,alternate:r}},t.exportDefaultDeclaration=function(e){return{type:"ExportDefaultDeclaration",declaration:e}},t.expressionStatement=function(e){return{type:"ExpressionStatement",expression:e}},t.forOfStatement=function(e,t,r,n){return{type:"ForOfStatement",left:e,right:t,body:r,await:n}},t.functionDeclaration=function(e,t,r){return{type:"FunctionDeclaration",id:e,params:t,body:r}},t.identifier=o,t.ifStatement=function(e,t,r){return{type:"IfStatement",test:e,consequent:t,alternate:r}},t.importDeclaration=function(e,t){return{type:"ImportDeclaration",specifiers:e,source:t}},t.importSpecifier=function(e,t){return{type:"ImportSpecifier",local:e,imported:t}},t.literal=function(e){switch(typeof e){case"number":return i(e);case"string":return r(e);case"boolean":return n(e)}},t.logicalExpression=function(e,t,r){return{type:"LogicalExpression",operator:e,left:t,right:r}},t.memberExpression=function(e,t,r=!1,n=null){return{type:"MemberExpression",object:e,property:t,computed:r,optional:n}},t.newExpression=function(e,t){return{type:"NewExpression",callee:e,arguments:t}},t.nullLiteral=function(){return{type:"NullLiteral",value:null}},t.numericLiteral=i,t.objectExpression=function(e){return{type:"ObjectExpression",properties:e}},t.objectMethod=function(e,t,r,n,i=!1,o=!1,s=!1){return{type:"ObjectMethod",kind:e,key:t,params:r,body:n,computed:i,generator:o,async:s}},t.objectProperty=function(e,t,r=!1,n=!1,i=null){return{type:"ObjectProperty",key:e,value:t,computed:r,shorthand:n,decorators:i}},t.program=function(e){return{type:"Program",body:e}},t.regExpLiteral=function(e,t=""){return{type:"RegExpLiteral",pattern:e,flags:t}},t.returnStatement=function(e){return{type:"ReturnStatement",argument:e}},t.safeBinaryExpression=function(e,t,n){let i=n;return("NumericLiteral"===n.type||"StringLiteral"===n.type&&Number.isSafeInteger(Number(n.value)))&&(i=r(String(n.value))),{type:"BinaryExpression",operator:e,left:i===n?t:s(o("String"),[t]),right:i}},t.sequenceExpression=function(e){return{type:"SequenceExpression",expressions:e}},t.stringLiteral=r,t.templateElement=function(e,t=!1){return{type:"TemplateElement",value:e,tail:t}},t.templateLiteral=function(e,t){return{type:"TemplateLiteral",quasis:e,expressions:t}},t.tryStatement=function(e,t=null,r=null){return{type:"TryStatement",block:e,handler:t,finalizer:r}},t.unaryExpression=function(e,t,r=!0){return{type:"UnaryExpression",operator:e,argument:t,prefix:r}},t.variableDeclaration=function(e,t){return{type:"VariableDeclaration",kind:e,declarations:t}},t.variableDeclarator=function(e,t){return{type:"VariableDeclarator",id:e,init:t}}},9918:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7955),i=r(1282),o=r(6582),s=r(9120),a=r(3264);function c(e,{deep:t,value:r}){if(e.feedback.bailed)return i.safeBinaryExpression("!==",a.default.property,i.literal(r));if(e.state.inverted)return i.safeBinaryExpression("!==",0===e.state.pos?a.default.property:i.memberExpression(a.default.path,i.binaryExpression("-",a.default.depth,i.numericLiteral(Math.abs(e.state.pos))),!0),i.literal(r));if(t){var n;const t=null===e.nextNode||"KeyExpression"===e.nextNode;(n=e.feedback).mutatesPos||(n.mutatesPos=!t);const s=i.sequenceExpression([i.assignmentExpression("=",o.default.pos,t?i.conditionalExpression(i.safeBinaryExpression("!==",a.default.property,i.literal(r)),i.numericLiteral(-1),a.default.depth):i.callExpression(i.memberExpression(a.default.path,i.identifier("indexOf")),[i.literal(r),0===e.state.pos?o.default.pos:i.binaryExpression("+",o.default.pos,i.numericLiteral(1))])),i.binaryExpression("===",o.default.pos,i.numericLiteral(-1))]);return t?i.logicalExpression("||",i.binaryExpression("<",a.default.depth,0===e.state.pos?o.default.pos:i.binaryExpression("+",o.default.pos,i.numericLiteral(e.state.pos))),s):s}let s;e.feedback.fixed||0===e.state.absolutePos||(s=i.binaryExpression("<",a.default.depth,0===e.state.pos?o.default.pos:i.binaryExpression("+",o.default.pos,i.numericLiteral(e.state.pos))));const c=i.safeBinaryExpression("!==",i.memberExpression(a.default.path,0===e.state.pos?i.numericLiteral(0):e.feedback.fixed?i.numericLiteral(e.state.pos):i.binaryExpression("+",o.default.pos,i.numericLiteral(e.state.pos)),!0),i.literal(r));return void 0!==s?i.logicalExpression("||",s,c):c}const p=i.identifier("inBounds");function u(e,t,r){switch(t.type){case"LogicalExpression":case"BinaryExpression":if("in"===t.operator)t.operator="===",t.left=i.callExpression(i.memberExpression(t.right,i.identifier("includes")),[u(e,t.left,r)]),t.right=i.booleanLiteral(!0);else if("~="===t.operator){if(t.operator="===","Literal"!==t.right.type)throw SyntaxError("Expected string");t.left=i.callExpression(i.memberExpression(i.regExpLiteral(t.right.value,""),i.identifier("test")),[u(e,t.left,r)]),t.right=i.booleanLiteral(!0)}else t.left=u(e,t.left,r),t.right=u(e,t.right,r),d(t.left),d(t.right);break;case"UnaryExpression":return t.argument=u(e,t.argument,r),d(t.argument),t;case"MemberExpression":t.object=u(e,t.object,r),d(t.object),t.property=u(e,t.property,r),t.computed&&d(t.property);break;case"CallExpression":if("Identifier"===t.callee.type&&t.callee.name.startsWith("@"))return f(e,t.callee.name,r);t.callee=u(e,t.callee,r),t.arguments=t.arguments.map((t=>u(e,t,r))),"MemberExpression"===t.callee.type&&t.callee.object===s.default.property&&t.callee.property.name in String.prototype&&(t.callee.object=i.callExpression(i.identifier("String"),[t.callee.object])),d(t.callee);break;case"Identifier":if(t.name.startsWith("@"))return f(e,t.name,r);if("undefined"===t.name)return i.unaryExpression("void",i.numericLiteral(0));if("index"===t.name)return s.default.index}return t}function f(e,t,r){switch(t){case"@":return h(s.default.value,r);case"@root":return h(s.default.root,r);case"@path":return h(s.default.path,r);case"@property":return h(s.default.property,r);case"@parent":return h(s.default.parentValue,r);case"@parentProperty":return h(s.default.parentProperty,r);case"@string":case"@number":case"@boolean":return i.binaryExpression("===",i.unaryExpression("typeof",h(s.default.value,r)),i.stringLiteral(t.slice(1)));case"@scalar":return i.logicalExpression("||",i.binaryExpression("===",h(s.default.value,r),i.nullLiteral()),i.binaryExpression("!==",i.unaryExpression("typeof",h(s.default.value,r)),i.stringLiteral("object")));case"@array":return i.callExpression(i.memberExpression(i.identifier("Array"),i.identifier("isArray")),[h(s.default.value,r)]);case"@null":return i.binaryExpression("===",h(s.default.value,r),i.nullLiteral());case"@object":return i.logicalExpression("&&",i.binaryExpression("!==",h(s.default.value,r),i.nullLiteral()),i.binaryExpression("===",i.unaryExpression("typeof",h(s.default.value,r)),i.stringLiteral("object")));case"@integer":return i.callExpression(i.memberExpression(i.identifier("Number"),i.identifier("isInteger")),[h(s.default.value,r)]);default:if(t.startsWith("@@")){const r=t.slice(2);return e.attachCustomShorthand(r),i.callExpression(i.memberExpression(o.default.shorthands,i.identifier(r)),[a.default._])}throw new SyntaxError(`Unsupported shorthand '${t}'`)}}const l=[a.default._.name,"index"];function d(e){if("Identifier"===e.type&&!l.includes(e.name))throw ReferenceError(`'${e.name}' is not defined`)}function h(e,t){return"MemberExpression"===e.type&&0!==t?{...e,object:i.callExpression(s.default.at,[i.numericLiteral(t)])}:e}t.generateFilterScriptExpression=function(e,{deep:t,value:r},s){var c;const p=n.default(r);d(p);const f=i.unaryExpression("!",u(s,p,e.state.fixed&&e.state.pos>0&&null!==e.nextNode?e.state.pos+1:e.state.inverted&&0!==e.state.pos?e.state.pos-1:0));if(e.feedback.bailed||!t||e.state.inverted)return f;(c=e.feedback).mutatesPos||(c.mutatesPos=null!==e.nextNode&&"KeyExpression"!==e.nextNode);const l=i.sequenceExpression([i.assignmentExpression("=",o.default.pos,i.conditionalExpression(f,i.numericLiteral(-1),a.default.depth)),i.binaryExpression("===",o.default.pos,i.numericLiteral(-1))]);return 0===e.state.pos?l:i.logicalExpression("||",i.binaryExpression("<",a.default.depth,0===e.state.pos?o.default.pos:i.binaryExpression("+",o.default.pos,i.numericLiteral(e.state.pos))),l)},t.generateMemberExpression=c,t.generateMultipleMemberExpression=function(e,t){return t.value.slice(1).reduce(((r,n)=>i.logicalExpression("&&",r,c(e,{type:"MemberExpression",value:n,deep:t.deep}))),c(e,{type:"MemberExpression",value:t.value[0],deep:t.deep}))},t.generateSliceExpression=function(e,t,r){const n=e.state.inverted?i.binaryExpression("-",a.default.depth,i.numericLiteral(e.state.pos)):0===e.state.pos?i.numericLiteral(0):e.feedback.fixed?i.numericLiteral(e.state.pos):i.binaryExpression("+",o.default.pos,i.numericLiteral(e.state.pos)),c=e.feedback.bailed?a.default.property:i.memberExpression(a.default.path,n,!0),u=i.binaryExpression("!==",i.unaryExpression("typeof",c),i.stringLiteral("number"));return t.value.some((e=>Number.isFinite(e)&&e<0))?(r.addRuntimeDependency(p.name),i.binaryExpression("||",u,i.unaryExpression("!",i.callExpression(p,[0===e.state.absolutePos?h(s.default.value,e.state.absolutePos-2):h(s.default.value,e.state.absolutePos),i.memberExpression(a.default.path,e.feedback.bailed?i.binaryExpression("-",i.memberExpression(a.default.path,i.identifier("length")),i.numericLiteral(1)):n,!0),...t.value.map((e=>i.numericLiteral(e)))])))):t.value.reduce(((e,r,n)=>{if(0===n&&0===r)return e;if(1===n&&!Number.isFinite(r))return e;if(2===n&&1===r)return e;const o=0===n?"<":1===n?">=":"%",s=i.binaryExpression(o,c,i.numericLiteral(Number(r)));return i.logicalExpression("||",e,"%"===o?i.logicalExpression("&&",i.binaryExpression("!==",c,i.numericLiteral(t.value[0])),i.binaryExpression("!==",s,i.numericLiteral(t.value[0]))):s)}),u)},t.generateWildcardExpression=function(e){return e.feedback.bailed?i.booleanLiteral(!1):null!==e.nextNode||e.feedback.fixed?null:i.sequenceExpression([i.assignmentExpression("=",o.default.pos,i.conditionalExpression(i.binaryExpression("<",a.default.depth,i.numericLiteral(e.state.pos)),i.numericLiteral(-1),a.default.depth)),i.binaryExpression("===",o.default.pos,i.numericLiteral(-1))])},t.rewriteESTree=u},3455:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(5439),o=r(260),s=r(7099),a=r(8113),c=r(2271),p=r(8598),u=r(6582),f=r(3264),l=r(1321),d=r(9918);const h=n.variableDeclaration("let",[n.variableDeclarator(u.default.pos,n.numericLiteral(0))]);t.default=function(e,t){const r=new l.default(t),m=new Map,y=new Map;e:for(const[t,l]of e){const e=new s.default(l);if(-1===e.length)continue;const b=JSON.stringify(e.nodes),j=m.get(b);if(void 0!==j){var g,v;null!==(g=null===(v=y.get(j))||void 0===v?void 0:v.push(t))&&void 0!==g||y.set(j,[t]);let n=r.getMethodByHash(j).body.body;e.feedback.bailed&&(n=n[0].expression.arguments[1].body.body),n.push(c.default(t,e.modifiers));continue}m.set(b,t),(e.feedback.bailed||l.length>0&&o.isDeep(l[0]))&&r.traversalZones.destroy();const $={id:t,iterator:e};r.ctx=$;for(const e of i.default)if(e(l,r,$))continue e;const _=e.feedback.bailed?[]:[n.ifStatement(n.binaryExpression(e.feedback.fixed?"!==":"<",f.default.depth,n.numericLiteral(e.length-1)),n.returnStatement())].concat(e.feedback.fixed?[]:h),x=e.feedback.bailed?null:r.traversalZones.create(),P=e.feedback.inverseAt;for(const t of e){let i;switch((o.isDeep(t)||P===e.state.absolutePos)&&(null==x||x.allIn()),t.type){case"MemberExpression":i=d.generateMemberExpression(e,t),null==x||x.expand(t.value);break;case"MultipleMemberExpression":i=d.generateMultipleMemberExpression(e,t),null==x||x.expandMultiple(t.value);break;case"SliceExpression":i=d.generateSliceExpression(e,t,r),null==x||x.resize();break;case"ScriptFilterExpression":i=d.generateFilterScriptExpression(e,t,r),null==x||x.resize();break;case"WildcardExpression":if(i=d.generateWildcardExpression(e),null==x||x.resize(),null===i)continue}e.feedback.bailed?_.push(n.objectExpression([n.objectProperty(n.identifier("fn"),n.arrowFunctionExpression([f.default._],i)),n.objectProperty(n.identifier("deep"),n.booleanLiteral(t.deep))])):_.push(n.ifStatement(i,n.returnStatement()))}e.feedback.fixed||e.feedback.bailed||e.state.inverted||_.push(n.ifStatement(n.binaryExpression("!==",f.default.depth,0===e.state.pos?u.default.pos:n.binaryExpression("+",u.default.pos,n.numericLiteral(e.state.pos))),n.returnStatement()));const w=e.feedback.bailed?"body":"traverse";e.feedback.bailed?_.splice(0,_.length,n.expressionStatement(n.callExpression(f.default.bail,[n.stringLiteral(t),n.arrowFunctionExpression([f.default._],n.blockStatement([n.expressionStatement(c.default($.id,e.modifiers).expression)])),n.arrayExpression([..._])]))):_.push(c.default($.id,e.modifiers)),"body"===w?r.push(n.expressionStatement(n.callExpression(n.memberExpression(u.default.tree,n.stringLiteral(t),!0),p.default)),w):r.push(n.stringLiteral(t),w),a.default(_,e),r.push(n.blockStatement(_),"tree-method"),null==x||x.attach()}return r}},7822:(e,t,r)=>{"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(1326));const o={...i.baseGenerator,BooleanLiteral(e,t){t.write(`${e.value}`,e)},NullLiteral(e,t){t.write("null",e)},NumericLiteral(e,t){t.write(e.value,e)},ObjectMethod(e,t){const{key:r,type:n,...i}=e;return this.ObjectProperty({key:e.key,value:{type:"FunctionExpression",...i}},t)},ObjectProperty(e,t){return this.Property({...e,kind:"init"},t)},RegExpLiteral(e,t){t.write(`/${e.pattern}/${e.flags}`,e)},StringLiteral(e,t){t.write(JSON.stringify(e.value),e)}};t.default=function(e){return i.generate(e,{generator:o})}},6763:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(2271),o=r(9120);const s=n.identifier("isObject"),a=n.ifStatement(n.unaryExpression("!",n.callExpression(s,[o.default.value])),n.returnStatement()),c=i.default("$..",{keyed:!1,parents:0});t.default=(e,t,r)=>1===e.length&&"AllParentExpression"===e[0].type&&(t.addRuntimeDependency(s.name),t.push(n.blockStatement([a,i.default(r.id,r.iterator.modifiers)]),"tree-method"),t.push(n.stringLiteral(r.id),"traverse"),t.push(c,"body"),!0)},3324:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(260),o=r(2271),s=r(3264);t.default=(e,t,r)=>!(1!==e.length||!i.isDeep(e[0])||!i.isMemberExpression(e[0])||(t.push(n.blockStatement([n.ifStatement(n.safeBinaryExpression("!==",s.default.property,n.stringLiteral(e[0].value)),n.returnStatement()),o.default(r.id,r.iterator.modifiers)]),"tree-method"),t.push(n.stringLiteral(r.id),"traverse"),0))},1435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(260),o=r(2271);t.default=(e,t,r)=>!(1!==e.length||!i.isWildcardExpression(e[0])||!i.isDeep(e[0])||(t.push(n.blockStatement([o.default(r.id,r.iterator.modifiers)]),"tree-method"),t.push(n.stringLiteral(r.id),"traverse"),0))},2667:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(260),o=r(2271),s=r(9120),a=r(3264),c=r(5742);const p=n.identifier("value"),u=n.identifier("isObject"),f=n.identifier("get"),l=n.ifStatement(n.unaryExpression("!",n.callExpression(u,[p])),n.returnStatement()),d=n.ifStatement(n.binaryExpression("===",a.default._,n.nullLiteral()),n.returnStatement());function h(e){return n.literal(e.value)}t.default=(e,t,r)=>{if(!e.every(i.isMemberExpression)||e.some(i.isDeep))return!1;const m=n.variableDeclaration("const",[n.variableDeclarator(p,e.slice(0,-1).reduce(((e,r)=>"ES2018"===t.format?(e.arguments[1].elements.push(n.literal(r.value)),e):n.memberExpression(e,n.literal(r.value),!0,!0)),"ES2018"===t.format&&e.length>0?n.callExpression(n.identifier("get"),[s.default.root,n.arrayExpression([])]):s.default.root))]);return t.addRuntimeDependency(u.name),"ES2018"===t.format&&t.addRuntimeDependency(f.name),t.pushAll([[n.blockStatement([m,l,n.expressionStatement(n.assignmentExpression("=",a.default._,n.callExpression(a.default.fork,[n.arrayExpression(e.map(h))]))),d,o.default(r.id,r.iterator.modifiers)]),"tree-method"],[c.default(r.id),"body"]]),!0}},5439:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6763),i=r(3324),o=r(1435),s=r(2667),a=r(7041),c=r(4097),p=r(8756),u=[c.default,a.default,i.default,o.default,p.default,s.default,n.default];t.default=u},7041:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7955),i=r(1282),o=r(9918),s=r(260),a=r(2271),c=r(3264);const p=i.ifStatement(i.binaryExpression("!==",c.default.depth,i.numericLiteral(0)),i.returnStatement());t.default=(e,t,r)=>{if(1!==e.length||!s.isScriptFilterExpression(e[0]))return!1;const c=i.unaryExpression("!",o.rewriteESTree(t,n.default(e[0].value),0),!0);var u;return t.pushAll([[i.blockStatement([...s.isDeep(e[0])?[]:[p],i.ifStatement(c,i.returnStatement()),a.default(r.id,r.iterator.modifiers)]),"tree-method"],[i.stringLiteral(r.id),"traverse"]]),s.isDeep(e[0])||null===(u=t.traversalZones.create())||void 0===u||u.resize().attach(),!0}},4097:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2271).default("$",{keyed:!1,parents:0});t.default=(e,t)=>!(e.length>0||(t.push(n,"body"),0))},8756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(260),o=r(2271),s=r(3264);const a=n.ifStatement(n.binaryExpression("!==",s.default.depth,n.numericLiteral(0)),n.returnStatement());t.default=(e,t,r)=>{var s;return!(1!==e.length||!i.isWildcardExpression(e[0])||i.isDeep(e[0])||(t.push(n.blockStatement([a,o.default(r.id,r.iterator.modifiers)]),"tree-method"),t.push(n.stringLiteral(r.id),"traverse"),null===(s=t.traversalZones.create())||void 0===s||s.resize().attach(),0))}},260:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDeep=function(e){return e.deep},t.isMemberExpression=function(e){return"MemberExpression"===e.type},t.isModifierExpression=function(e){return"KeyExpression"===e.type||"ParentExpression"===e.type},t.isScriptFilterExpression=function(e){return"ScriptFilterExpression"===e.type},t.isWildcardExpression=function(e){return"WildcardExpression"===e.type}},7099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3369),i=r(260);let o;function s(e){let t=!1;for(let r=0;r1}t=!0}}return!1}var a=new WeakMap;o=Symbol.iterator;class c{constructor(e){n.defineProperty(this,"nodes",void 0),a.set(this,{writable:!0,value:void 0}),this.modifiers=c.trim(e),this.nodes=c.compact(e),n.classPrivateFieldSet(this,a,-1),this.feedback=c.analyze(this.nodes,this.modifiers.keyed||this.modifiers.parents>0),this.length=this.nodes.length,this.state={absolutePos:-1,fixed:!0,inverted:!1,pos:-1},this.feedback.fixed&&this.modifiers.parents>this.length&&(this.length=-1)}get nextNode(){return n.classPrivateFieldGet(this,a)+10&&i.isModifierExpression(e[e.length-1]);)switch(e.pop().type){case"KeyExpression":t.keyed=!0,t.parents=0;break;case"ParentExpression":t.parents++}return t}static analyze(e){const t={bailed:s(e),fixed:!0,inverseAt:-1};if(t.bailed)return t.fixed=!1,t;let r=-1;for(let n=0;n1&&-1!==r&&r{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6582),i=r(3264);function o(e,t){return e.splice(t,1),t-1}function s(e,t,r){return null===t?r:null===r?t:(e.left=t,e.right=r,e)}function a(e){switch(e.type){case"AssignmentExpression":return e.left!==n.default.pos?e:a(e.right);case"ConditionalExpression":return"NumericLiteral"===e.consequent.type&&-1===e.consequent.value?a(e.test):e;case"SequenceExpression":return a(e.expressions[0]);case"LogicalExpression":return s(e,a(e.left),a(e.right));case"BinaryExpression":return function(e){return"<"===e.operator&&e.left===i.default.depth?null:s(e,a(e.left),a(e.right))}(e);case"IfStatement":return a(e.test);case"Identifier":return e===n.default.pos?null:e;case"MemberExpression":return e.property=a(e.property),e;default:return e}}t.default=function(e,t){if(t.feedback.mutatesPos)return;let r=Math.max(0,Math.min(1,t.length));for(;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282);t.default=function e(t){switch(typeof t){case"boolean":return n.booleanLiteral(t);case"string":return n.stringLiteral(t);case"number":return n.numericLiteral(t);case"object":return null===t?n.nullLiteral():Array.isArray(t)?n.arrayExpression(t.map(e)):n.objectExpression(Object.keys(t).map((r=>n.objectProperty(n.stringLiteral(r),e(t[r])))))}}},2271:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(3264);t.default=function(e,{parents:t,keyed:r}){return n.expressionStatement(n.callExpression(i.default.emit,[n.stringLiteral(e),n.numericLiteral(t),n.booleanLiteral(r)]))}},4168:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(3264);t.default=function(e,t){const r=n.identifier("path");return n.forOfStatement(n.variableDeclaration("const",[n.variableDeclarator(r)]),n.arrayExpression(t.map(n.stringLiteral)),n.blockStatement([n.callExpression(e,[n.identifier("input"),r,n.memberExpression(i.default.callbacks,r,!0)])]))}},8598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=[r(3264).default._];t.default=n},6582:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i={pos:n.identifier("pos"),shorthands:n.identifier("shorthands"),tree:n.identifier("tree")};t.default=i},9120:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(3264),o={at:n.memberExpression(i.default.sandbox,n.identifier("at")),index:n.memberExpression(i.default.sandbox,n.identifier("index")),parent:n.memberExpression(i.default.sandbox,n.identifier("parent")),parentProperty:n.memberExpression(i.default.sandbox,n.identifier("parentProperty")),parentValue:n.memberExpression(i.default.sandbox,n.identifier("parentValue")),path:n.memberExpression(i.default.sandbox,n.identifier("path")),property:n.memberExpression(i.default.sandbox,n.identifier("property")),root:n.memberExpression(i.default.sandbox,n.identifier("root")),value:n.memberExpression(i.default.sandbox,n.identifier("value"))};t.default=o},3264:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282);const i=n.identifier("scope");var o={_:i,bail:n.memberExpression(i,n.identifier("bail")),callbacks:n.memberExpression(i,n.identifier("callbacks")),depth:n.memberExpression(i,n.identifier("depth")),destroy:n.memberExpression(i,n.identifier("destroy")),emit:n.memberExpression(i,n.identifier("emit")),fork:n.memberExpression(i,n.identifier("fork")),path:n.memberExpression(i,n.identifier("path")),property:n.memberExpression(i,n.identifier("property")),sandbox:n.memberExpression(i,n.identifier("sandbox")),traverse:n.memberExpression(i,n.identifier("traverse")),value:n.memberExpression(i,n.identifier("value"))};t.default=o},5742:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(8598),o=r(6582);t.default=function(e){const t=n.stringLiteral(e);return n.expressionStatement(n.callExpression(n.memberExpression(o.default.tree,t,!0),i.default))}},3143:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3369),i=r(2512);r(5685);var o=r(1282),s=r(7032),a=new WeakMap,c=new WeakMap,p=new WeakMap,u=new WeakMap,f=new WeakMap;class l{constructor(e){p.set(this,{writable:!0,value:void 0}),u.set(this,{writable:!0,value:void 0}),f.set(this,{writable:!0,value:void 0}),n.classPrivateFieldSet(this,p,e),this.root={},n.classPrivateFieldSet(this,u,[this.root]),n.classPrivateFieldSet(this,f,new Map)}attach(){n.classPrivateFieldGet(this,p).attach(this.root),n.classPrivateFieldGet(this,f).clear()}expand(e){let t=0;for(const r of n.classPrivateFieldGet(this,u))if(null!==r){if("**"===e){const t=n.classPrivateFieldGet(this,f).get(r);if(void 0!==t&&"*"in t){delete t["*"],t["**"]=null;continue}r[e]=null}else r[e]={},n.classPrivateFieldGet(this,f).set(r[e],r);n.classPrivateFieldGet(this,u)[t++]=r[e]}return this}expandMultiple(e){const t=n.classPrivateFieldGet(this,u)[0];if(null===t)return this;let r=0;for(const i of e)t[i]="**"===i?null:{},n.classPrivateFieldGet(this,u).lengthObject.assign(t,e[r])),{})}function h(e,t){if("*"in t){const r=d(e);h(r,d(t)),e["*"]="*"in r?{"*":r["*"]}:r}else for(const r of Object.keys(t))r in e?i.default(t[r])&&h(e[r],t[r]):e[r]=t[r]}function m(e){const t=e[0];for(let r=1;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3369),i=r(7955),o=r(1282),s=r(7822),a=r(4168),c=r(8598),p=r(6582),u=r(3264),f=r(5742),l=r(3143);const d=[o.identifier("input"),o.identifier("callbacks")],h=o.variableDeclaration("const",[o.variableDeclarator(u.default._,o.newExpression(o.identifier("Scope"),d))]);var m=new WeakMap,y=new WeakMap,g=new WeakMap,v=new WeakMap,b=new WeakMap,j=new WeakMap,$=new WeakMap;t.default=class{constructor({customShorthands:e,format:t,npmProvider:r}){m.set(this,{writable:!0,value:o.objectExpression([])}),y.set(this,{writable:!0,value:o.objectExpression([])}),g.set(this,{writable:!0,value:new Set(["Scope"])}),v.set(this,{writable:!0,value:new Set}),b.set(this,{writable:!0,value:new Set}),j.set(this,{writable:!0,value:new Set}),$.set(this,{writable:!0,value:void 0}),this.format=t,this.npmProvider=r,this.ctx=null,this.traversalZones=new l.default,n.classPrivateFieldSet(this,$,e)}addRuntimeDependency(e){n.classPrivateFieldGet(this,g).has(e)||n.classPrivateFieldGet(this,g).add(e)}attachFallbackExpressions(e,t){this.push(a.default(e.attach(this),t),"body")}attachCustomShorthand(e){if(null===n.classPrivateFieldGet(this,$)||!(e in n.classPrivateFieldGet(this,$)))throw new ReferenceError(`Shorthand '${e}' is not defined`);n.classPrivateFieldGet(this,y).properties.push(o.objectMethod("method",o.identifier(e),c.default,o.blockStatement([o.returnStatement(i.default(n.classPrivateFieldGet(this,$)[e]))])))}getMethodByHash(e){return n.classPrivateFieldGet(this,m).properties.find((t=>t.key.value===e))}push(e,t){switch(t){case"tree-method":n.classPrivateFieldGet(this,m).properties.push(o.objectMethod("method",o.stringLiteral(this.ctx.id),c.default,e));break;case"program":n.classPrivateFieldGet(this,v).has(e)||n.classPrivateFieldGet(this,v).add(e);break;case"body":n.classPrivateFieldGet(this,b).has(e)||n.classPrivateFieldGet(this,b).add(e);break;case"traverse":n.classPrivateFieldGet(this,j).add(f.default(e.value))}}pushAll(e){for(const t of e)this.push(...t)}toString(){var e;const t=this.traversalZones.root;return s.default(o.program([o.importDeclaration([...n.classPrivateFieldGet(this,g)].map((e=>o.importSpecifier(o.identifier(e),o.identifier(e)))),o.stringLiteral(`${null!==(e=this.npmProvider)&&void 0!==e?e:""}nimma/legacy/runtime`)),...n.classPrivateFieldGet(this,v),t,0===n.classPrivateFieldGet(this,m).properties.length?null:o.variableDeclaration("const",[o.variableDeclarator(p.default.tree,n.classPrivateFieldGet(this,m))]),0===n.classPrivateFieldGet(this,y).properties.length?null:o.variableDeclaration("const",[o.variableDeclarator(p.default.shorthands,n.classPrivateFieldGet(this,y))]),o.exportDefaultDeclaration(o.functionDeclaration(null,d,o.blockStatement([h,o.tryStatement(o.blockStatement([...n.classPrivateFieldGet(this,b),0===n.classPrivateFieldGet(this,j).size?null:o.expressionStatement(o.callExpression(u.default.traverse,[o.arrowFunctionExpression([],o.blockStatement(Array.from(n.classPrivateFieldGet(this,j)))),null===t?o.nullLiteral():t.declarations[0].id]))].filter(Boolean)),null,o.blockStatement([o.expressionStatement(o.callExpression(u.default.destroy,[]))]))].filter(Boolean))))].filter(Boolean)))}}},4530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3369),i=r(3455),o=r(2176),s=r(3574),a=r(3040);const c=/import\s*({[^}]+})\s*from\s*['"][^'"]+['"];?/;var p=new WeakMap,u=new WeakMap;t.default=class{constructor(e,{fallback:t=null,unsafe:r=!0,output:o="auto",npmProvider:c=null,customShorthands:f=null}={}){p.set(this,{writable:!0,value:void 0}),u.set(this,{writable:!0,value:void 0}),n.classPrivateFieldSet(this,p,t),n.classPrivateFieldSet(this,u,null);const{erroredExpressions:l,mappedExpressions:d}=a.default(e,r,null!==t);this.tree=i.default(d,{customShorthands:f,format:"auto"===o?s.default():o,npmProvider:c}),l.length>0&&this.tree.attachFallbackExpressions(t,l),this.sourceCode=String(this.tree)}query(e,t){if(null!==n.classPrivateFieldGet(this,u))return void n.classPrivateFieldGet(this,u).call(this,e,t);const r="__nimma_globals__",i=this.sourceCode.replace("export default function","return function").replace(c,`const $1 = ${r};`).replace(RegExp(c.source,"g"),"");n.classPrivateFieldSet(this,u,Function(r,...null===n.classPrivateFieldGet(this,p)?[]:Array.from(n.classPrivateFieldGet(this,p).runtimeDeps.keys()),i)(o,...null===n.classPrivateFieldGet(this,p)?[]:Array.from(n.classPrivateFieldGet(this,p).runtimeDeps.values()))),n.classPrivateFieldGet(this,u).call(this,e,t)}}},3574:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){try{return Function("a","a?.b")({}),"ES2021"}catch{return"ES2018"}}},3040:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7099),i=r(3046),o=r(5685);function s([,e]){return e}function a([e]){return e}t.default=function(e,t,r){const c=[],p=[];for(const r of new Set(e))try{const e=i.default(r);if(!1===t&&n.default.analyze(e).bailed)throw SyntaxError("Unsafe expressions are ignored, but no fallback was specified");c.push([r,e])}catch(e){p.push([r,e])}if(!r&&p.length>0)throw new o.default(p.map(s),`Error parsing ${p.map(a).join(", ")}`);return{erroredExpressions:p.map(a),mappedExpressions:c}}},691:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4530);t.default=n.default},3046:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1742),i=r(1491);const{parse:o}=i;t.default=function(e){try{return o(e)}catch(t){throw new n.default(t.message,e,{cause:t})}}},7955:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5215),i=r(3738),o=r(3612);function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=s(n),c=s(i),p=s(o);p.default.addIdentifierChar("@"),p.default.addUnaryOp("void"),p.default.addBinaryOp("in",12),p.default.addBinaryOp("~=",20),p.default.plugins.register(a.default,c.default),t.default=e=>p.default.parse(e)},1491:(e,t)=>{"use strict";function r(e,t,n,i){var o=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(o,r.prototype),o.expected=t,o.found=n,o.location=i,o.name="SyntaxError",o}function n(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(r,Error),r.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var r,i=null;for(r=0;r0){for(t=1,r=1;t!|&+~%\^*\/;\-[\]]/,x=ce("$",!1),P=ce("[",!1),w=ce("]",!1),S=ce(",",!1),O=ce("..",!1),E=ce("(",!1),A=ce(")",!1),I=ce("?(",!1),T=ce(":",!1),k=ce("@",!1),R=pe([["a","z"]],!1,!1),D=ce("()",!1),C=ce("~",!1),F=ce("^",!1),N=ce(".",!1),M=pe(["@","["],!1,!1),q=pe(["$","_","-"],!1,!1),U=ce('"',!1),L=pe(['"'],!0,!1),z=ce("'",!1),B=pe(["'"],!0,!1),V=ce("-",!1),H=ce("*",!1),K=pe([["A","Z"],["a","z"]],!1,!1),G=pe([["0","9"]],!1,!1),J=pe([" ","\t"],!1,!1),W=pe(['"'],!1,!1),Q=pe(["'"],!1,!1),Y=pe([" ","$","@",".",",","_","=","<",">","!","|","&","+","~","%","^","*","/",";","-","[","]"],!1,!1),X=ce(".length",!1),Z=function(e,t){return{...t,deep:e}},ee=function(e){return{type:"ScriptFilterExpression",value:e}},te=0,re=0,ne=[{line:1,column:1}],ie=0,oe=[],se=0;if("startRule"in t){if(!(t.startRule in s))throw new Error("Can't start parsing from rule \""+t.startRule+'".');a=s[t.startRule]}function ae(){return e.substring(re,te)}function ce(e,t){return{type:"literal",text:e,ignoreCase:t}}function pe(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ue(t){var r,n=ne[t];if(n)return n;for(r=t-1;!ne[r];)r--;for(n={line:(n=ne[r]).line,column:n.column};rie&&(ie=te,oe=[]),oe.push(e))}function de(){var t,r,n,o,s,a,c;if(t=te,r=function(){var t;return 36===e.charCodeAt(te)?(t="$",te++):(t=i,0===se&&le(x)),t}(),r!==i){for(n=[],(o=me())===i&&(o=te,(s=ve())!==i&&(a=he())!==i?(re=o,o=Z(s,a)):(te=o,o=i));o!==i;)n.push(o),(o=me())===i&&(o=te,(s=ve())!==i&&(a=he())!==i?(re=o,o=Z(s,a)):(te=o,o=i));if(o=[],(s=ge())!==i)for(;s!==i;)o.push(s),s=ge();else o=i;o===i&&(o=null),re=t,c=o,t=n.concat(Array.isArray(c)?c:null===c?[]:c)}else te=t,t=i;return t}function he(){var t,r,n,o,s;if(t=function(){var t,r,n,o,s;return t=te,(r=be())===i&&(r=te,91===e.charCodeAt(te)?(n=c,te++):(n=i,0===se&&le(P)),n!==i&&(o=je())!==i?(93===e.charCodeAt(te)?(s=p,te++):(s=i,0===se&&le(w)),s!==i?(re=r,r=o):(te=r,r=i)):(te=r,r=i)),r!==i&&(re=t,r={type:"MemberExpression",value:r}),r}(),t===i&&(t=te,(r=_e())===i&&(r=te,91===e.charCodeAt(te)?(n=c,te++):(n=i,0===se&&le(P)),n!==i&&(o=_e())!==i?(93===e.charCodeAt(te)?(s=p,te++):(s=i,0===se&&le(w)),s!==i?r=n=[n,o,s]:(te=r,r=i)):(te=r,r=i)),r!==i&&(re=t,r={type:"WildcardExpression"}),(t=r)===i&&(t=te,91===e.charCodeAt(te)?(r=c,te++):(r=i,0===se&&le(P)),r!==i?(n=function(){var t,r,n,o;return t=te,40===e.charCodeAt(te)?(r="(",te++):(r=i,0===se&&le(E)),r!==i?(n=function(){var t,r,n;return t=te,64===e.charCodeAt(te)?(r="@",te++):(r=i,0===se&&le(k)),r!==i?(n=function(){var t,r,n,o,s,a,c,p;if(t=te,e.substr(te,7)===f?(r=f,te+=7):(r=i,0===se&&le(X)),r!==i){for(n=[],o=we();o!==i;)n.push(o),o=we();if(45===e.charCodeAt(te)?(o="-",te++):(o=i,0===se&&le(V)),o!==i){for(s=[],a=we();a!==i;)s.push(a),a=we();if(a=te,c=[],(p=Pe())!==i)for(;p!==i;)c.push(p),p=Pe();else c=i;(a=c!==i?e.substring(a,te):c)!==i?(re=t,t={type:"SliceExpression",value:[-a,1/0,1]}):(te=t,t=i)}else te=t,t=i}else te=t,t=i;return t}(),n!==i?(re=t,t=n):(te=t,t=i)):(te=t,t=i),t}(),n!==i?(41===e.charCodeAt(te)?(o=")",te++):(o=i,0===se&&le(A)),o!==i?(re=t,t=n):(te=t,t=i)):(te=t,t=i)):(te=t,t=i),t}(),n!==i?(93===e.charCodeAt(te)?(o=p,te++):(o=i,0===se&&le(w)),o!==i?(re=t,t=n):(te=t,t=i)):(te=t,t=i)):(te=t,t=i),t===i&&(t=te,91===e.charCodeAt(te)?(r=c,te++):(r=i,0===se&&le(P)),r!==i?(n=function(){var t,r,n,o;return t=te,"?("===e.substr(te,2)?(r="?(",te+=2):(r=i,0===se&&le(I)),r!==i?(n=function(){var t,r,n;if(t=te,r=[],(n=xe())===i&&(n=Pe())===i&&(n=we())===i&&(n=Ee())===i&&(n=Oe())===i&&(n=Se())===i&&(n=Ae()),n!==i)for(;n!==i;)r.push(n),(n=xe())===i&&(n=Pe())===i&&(n=we())===i&&(n=Ee())===i&&(n=Oe())===i&&(n=Se())===i&&(n=Ae());else r=i;return t=r!==i?e.substring(t,te):r}(),n!==i?(41===e.charCodeAt(te)?(o=")",te++):(o=i,0===se&&le(A)),o!==i?(re=t,t={type:"ScriptFilterExpression",value:n}):(te=t,t=i)):(te=t,t=i)):(te=t,t=i),t}(),n!==i?(93===e.charCodeAt(te)?(o=p,te++):(o=i,0===se&&le(w)),o!==i?(re=t,t=n):(te=t,t=i)):(te=t,t=i)):(te=t,t=i),t===i&&(t=te,(r=ye())===i&&(r=function(){var t,r,n,o,s;return t=te,r=te,n=te,64===e.charCodeAt(te)?(o="@",te++):(o=i,0===se&&le(k)),o!==i&&(s=ye())!==i?(re=n,n=s.value):(te=n,n=i),(r=n!==i?e.substring(r,te):n)!==i&&(re=t,r=ee(r)),r}()),r!==i&&(re=t),(t=r)===i))))){if(t=te,91===e.charCodeAt(te)?(r=c,te++):(r=i,0===se&&le(P)),r!==i){for(n=[],o=te,(s=je())!==i?(44===e.charCodeAt(te)?te++:0===se&&le(S),re=o,o=s):(te=o,o=i);o!==i;)n.push(o),o=te,(s=je())!==i?(44===e.charCodeAt(te)?te++:0===se&&le(S),re=o,o=s):(te=o,o=i);93===e.charCodeAt(te)?(o=p,te++):(o=i,0===se&&le(w)),o!==i?(re=t,t={type:"MultipleMemberExpression",value:[...new Set(n)]}):(te=t,t=i)}else te=t,t=i;t===i&&(t=te,91===e.charCodeAt(te)?(r=c,te++):(r=i,0===se&&le(P)),r!==i?(n=function(){var t,r,n,o,s,a,c;return t=te,r=te,n=te,o=te,(s=$e())!==i?(58===e.charCodeAt(te)?(a=":",te++):(a=i,0===se&&le(T)),a!==i?((c=$e())===i&&(c=null),o=s=[s,a,c]):(te=o,o=i)):(te=o,o=i),o===i&&(o=te,58===e.charCodeAt(te)?(s=":",te++):(s=i,0===se&&le(T)),s!==i?((a=$e())===i&&(a=null),o=s=[s,a]):(te=o,o=i),o===i&&(o=$e())),o!==i?(s=te,58===e.charCodeAt(te)?(a=":",te++):(a=i,0===se&&le(T)),a!==i&&(c=$e())!==i?s=a=[a,c]:(te=s,s=i),s===i&&(s=null),n=o=[o,s]):(te=n,n=i),(r=n!==i?e.substring(r,te):n)!==i&&(re=t,r={type:"SliceExpression",value:r.split(":").reduce(((e,t,r)=>(""!==t&&(e[r]=Number(t)),e)),[0,1/0,1])}),r}(),n!==i?(93===e.charCodeAt(te)?(o=p,te++):(o=i,0===se&&le(w)),o!==i?(re=t,t=n):(te=t,t=i)):(te=t,t=i)):(te=t,t=i))}return t}function me(){var t,r;return t=te,re=te,(/^\$\.{2}[~^]*$/.test(e)?void 0:i)!==i?(e.substr(te,2)===u?(r=u,te+=2):(r=i,0===se&&le(O)),r!==i?(re=t,t={type:"AllParentExpression"}):(te=t,t=i)):(te=t,t=i),t}function ye(){var t,r,n,o,s,a;if(t=te,r=te,n=te,64===e.charCodeAt(te)?(o="@",te++):(o=i,0===se&&le(k)),o!==i){if(s=[],l.test(e.charAt(te))?(a=e.charAt(te),te++):(a=i,0===se&&le(R)),a!==i)for(;a!==i;)s.push(a),l.test(e.charAt(te))?(a=e.charAt(te),te++):(a=i,0===se&&le(R));else s=i;s!==i?("()"===e.substr(te,2)?(a="()",te+=2):(a=i,0===se&&le(D)),a!==i?n=o=[o,s,a]:(te=n,n=i)):(te=n,n=i)}else te=n,n=i;return(r=n!==i?e.substring(r,te):n)!==i&&(re=t,r=ee(r)),r}function ge(){var t;return(t=function(){var t,r;return t=te,126===e.charCodeAt(te)?(r="~",te++):(r=i,0===se&&le(C)),r!==i&&(re=t,r={type:"KeyExpression"}),r}())===i&&(t=function(){var t,r;return t=te,94===e.charCodeAt(te)?(r="^",te++):(r=i,0===se&&le(F)),r!==i&&(re=t,r={type:"ParentExpression"}),r}()),t}function ve(){var t,r,n,o;return t=te,e.substr(te,2)===u?(r=u,te+=2):(r=i,0===se&&le(O)),r!==i&&(re=t,r=!0),(t=r)===i&&(t=te,46===e.charCodeAt(te)?(r=".",te++):(r=i,0===se&&le(N)),r!==i?(n=te,se++,91===e.charCodeAt(te)?(o=c,te++):(o=i,0===se&&le(P)),se--,o!==i?(te=n,n=void 0):n=i,n!==i?(re=t,t=!0):(te=t,t=i)):(te=t,t=i),t===i&&(t=te,46===e.charCodeAt(te)?(r=".",te++):(r=i,0===se&&le(N)),r!==i&&(re=t,r=!1),(t=r)===i&&(t=te,r=te,se++,d.test(e.charAt(te))?(n=e.charAt(te),te++):(n=i,0===se&&le(M)),se--,n!==i?(te=r,r=void 0):r=i,r!==i&&(re=t,r=!1),t=r))),t}function be(){var t,r,n;if(t=te,r=[],h.test(e.charAt(te))?(n=e.charAt(te),te++):(n=i,0===se&&le(q)),n===i&&(n=xe())===i&&(n=Pe()),n!==i)for(;n!==i;)r.push(n),h.test(e.charAt(te))?(n=e.charAt(te),te++):(n=i,0===se&&le(q)),n===i&&(n=xe())===i&&(n=Pe());else r=i;return r!==i?e.substring(t,te):r}function je(){var t,r,n,o,s,a,c;if(t=te,(r=be())!==i&&(re=t,r=(c=r).length>0&&Number.isSafeInteger(Number(c))?Number(c):c),(t=r)===i){if(t=te,r=te,34===e.charCodeAt(te)?(n='"',te++):(n=i,0===se&&le(U)),n!==i){for(o=te,s=[],m.test(e.charAt(te))?(a=e.charAt(te),te++):(a=i,0===se&&le(L));a!==i;)s.push(a),m.test(e.charAt(te))?(a=e.charAt(te),te++):(a=i,0===se&&le(L));o=e.substring(o,te),34===e.charCodeAt(te)?(s='"',te++):(s=i,0===se&&le(U)),s!==i?r=n=[n,o,s]:(te=r,r=i)}else te=r,r=i;if(r===i)if(r=te,39===e.charCodeAt(te)?(n="'",te++):(n=i,0===se&&le(z)),n!==i){for(o=te,s=[],y.test(e.charAt(te))?(a=e.charAt(te),te++):(a=i,0===se&&le(B));a!==i;)s.push(a),y.test(e.charAt(te))?(a=e.charAt(te),te++):(a=i,0===se&&le(B));o=e.substring(o,te),39===e.charCodeAt(te)?(s="'",te++):(s=i,0===se&&le(z)),s!==i?r=n=[n,o,s]:(te=r,r=i)}else te=r,r=i;r!==i&&(re=t,r=ae().slice(1,-1)),t=r}return t}function $e(){var t,r,n;if(t=te,45===e.charCodeAt(te)?te++:0===se&&le(V),r=[],(n=Pe())!==i)for(;n!==i;)r.push(n),n=Pe();else r=i;return r!==i?(re=t,t=Number(ae())):(te=t,t=i),t}function _e(){var t;return 42===e.charCodeAt(te)?(t="*",te++):(t=i,0===se&&le(H)),t}function xe(){var t;return g.test(e.charAt(te))?(t=e.charAt(te),te++):(t=i,0===se&&le(K)),t}function Pe(){var t;return v.test(e.charAt(te))?(t=e.charAt(te),te++):(t=i,0===se&&le(G)),t}function we(){var t;return b.test(e.charAt(te))?(t=e.charAt(te),te++):(t=i,0===se&&le(J)),t}function Se(){var t,r,n,o;if(t=te,91===e.charCodeAt(te)?(r=c,te++):(r=i,0===se&&le(P)),r!==i){for(n=[],(o=Pe())===i&&(o=xe())===i&&(o=Oe())===i&&(o=Ae());o!==i;)n.push(o),(o=Pe())===i&&(o=xe())===i&&(o=Oe())===i&&(o=Ae());93===e.charCodeAt(te)?(o=p,te++):(o=i,0===se&&le(w)),o!==i?t=r=[r,n,o]:(te=t,t=i)}else te=t,t=i;return t}function Oe(){var t,r,n,o;if(t=te,j.test(e.charAt(te))?(r=e.charAt(te),te++):(r=i,0===se&&le(W)),r!==i){for(n=[],m.test(e.charAt(te))?(o=e.charAt(te),te++):(o=i,0===se&&le(L));o!==i;)n.push(o),m.test(e.charAt(te))?(o=e.charAt(te),te++):(o=i,0===se&&le(L));j.test(e.charAt(te))?(o=e.charAt(te),te++):(o=i,0===se&&le(W)),o!==i?t=r=[r,n,o]:(te=t,t=i)}else te=t,t=i;if(t===i)if(t=te,$.test(e.charAt(te))?(r=e.charAt(te),te++):(r=i,0===se&&le(Q)),r!==i){for(n=[],y.test(e.charAt(te))?(o=e.charAt(te),te++):(o=i,0===se&&le(B));o!==i;)n.push(o),y.test(e.charAt(te))?(o=e.charAt(te),te++):(o=i,0===se&&le(B));$.test(e.charAt(te))?(o=e.charAt(te),te++):(o=i,0===se&&le(Q)),o!==i?t=r=[r,n,o]:(te=t,t=i)}else te=t,t=i;return t}function Ee(){var t;return _.test(e.charAt(te))?(t=e.charAt(te),te++):(t=i,0===se&&le(Y)),t}function Ae(){var t,r,n,o;if(t=te,40===e.charCodeAt(te)?(r="(",te++):(r=i,0===se&&le(E)),r!==i){for(n=[],(o=Oe())===i&&(o=xe())===i&&(o=Pe())===i&&(o=Se())===i&&(o=Ee())===i&&(o=we())===i&&(o=Ae());o!==i;)n.push(o),(o=Oe())===i&&(o=xe())===i&&(o=Pe())===i&&(o=Se())===i&&(o=Ee())===i&&(o=we())===i&&(o=Ae());41===e.charCodeAt(te)?(o=")",te++):(o=i,0===se&&le(A)),o!==i?t=r=[r,n,o]:(te=t,t=i)}else te=t,t=i;return t}if((n=a())!==i&&te===e.length)return n;throw n!==i&&te{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2512);t.default=function(e,t){if(0===t.length||!n.default(e))return e;let r=e;for(const e of t.slice(0,t.length-1))if(r=r[e],!n.default(r))return;return r[t[t.length-1]]}},9489:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n,i){const o=r<0?Math.max(0,r+e.length):Math.min(e.length,r),s=n<0?Math.max(0,n+e.length):Math.min(e.length,n);return t>=o&&t0&&(t+r)%i==0)}},2512:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"object"==typeof e&&null!==e}},5685:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=r(2512),o=null!==(n=globalThis.AggregateError)&&void 0!==n?n:class extends Error{constructor(e,t=""){if(super(t),!Array.isArray(e)&&(r=e,!i.default(r)||"function"!=typeof r[Symbol.iterator]))throw new TypeError(`${e} is not an iterable`);var r;this.errors=[...e]}};t.default=o},4284:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e,t){super(e),void 0!==t&&"cause"in t&&(this.cause=t.cause)}}t.default=r},1742:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4284);class i extends n.default{constructor(e,t,r){super(e,r),this.input=t}}t.default=i},5524:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4284);class i extends n.default{}t.default=i},2176:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2889),i=r(9489),o=r(2512),s=r(5643);t.get=n.default,t.inBounds=i.default,t.isObject=o.default,t.Scope=s.default},3334:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5524);function i(e){return"string"==typeof e||"number"==typeof e?JSON.stringify(e):"unknown"}function o(e){return e instanceof Error?`${e.constructor.name}(${i(e.message)})`:i(e)}t.default=function(e,t){const r={};for(const i of Object.keys(e)){const s=e[i];r[i]=(...e)=>{try{s(...e)}catch(e){const r=`${s.name||i} threw: ${o(e)}`;t.push(new n.default(r,{cause:e}))}}}return r}},8889:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3369),i=r(2512);function o(e,t){return e+`[${"string"==typeof t?`'${t}'`:t}]`}var s=new WeakMap,a=new WeakMap,c=new WeakMap,p=new WeakMap;class u{constructor(e,t,r=null){p.set(this,{get:f,set:void 0}),s.set(this,{writable:!0,value:void 0}),a.set(this,{writable:!0,value:void 0}),c.set(this,{writable:!0,value:void 0}),this.root=t,n.classPrivateFieldSet(this,a,e),n.classPrivateFieldSet(this,s,null!=r?r:[[0,t]]),n.classPrivateFieldSet(this,c,void 0)}get path(){return`$${n.classPrivateFieldGet(this,a).reduce(o,"")}`}get depth(){return n.classPrivateFieldGet(this,a).length-1}get value(){var e;return void 0!==n.classPrivateFieldGet(this,c)?n.classPrivateFieldGet(this,c):null!==(e=n.classPrivateFieldGet(this,c))&&void 0!==e?e:n.classPrivateFieldSet(this,c,n.classPrivateFieldGet(this,s)[n.classPrivateFieldGet(this,s).length-1][1])}get property(){return e=n.classPrivateFieldGet(this,a),(t=this.depth)>=0&&e.length>t?e[t]:null;var e,t}get parentValue(){var e;return null===(e=n.classPrivateFieldGet(this,p))||void 0===e?void 0:e[1]}get parentProperty(){var e;return n.classPrivateFieldGet(this,a)[null===(e=n.classPrivateFieldGet(this,p))||void 0===e?void 0:e[0]]}destroy(){n.classPrivateFieldGet(this,s).length=0}push(){const e=null!==this.property&&i.default(this.value)?this.value[this.property]:null;return n.classPrivateFieldGet(this,s).push([n.classPrivateFieldGet(this,a).length,e]),n.classPrivateFieldSet(this,c,e),this}pop(){const e=Math.max(0,n.classPrivateFieldGet(this,a).length+1);for(;n.classPrivateFieldGet(this,s).length>e;)n.classPrivateFieldGet(this,s).pop();return n.classPrivateFieldSet(this,c,void 0),this}at(e){if(Math.abs(e)>n.classPrivateFieldGet(this,s).length)return null;const t=(e<0?n.classPrivateFieldGet(this,s).length:0)+e,r=n.classPrivateFieldGet(this,s).slice(0,t+1);return new u(n.classPrivateFieldGet(this,a).slice(0,r[r.length-1][0]),r[r.length-1][1],r)}}function f(){if(!(n.classPrivateFieldGet(this,s).length<3))return n.classPrivateFieldGet(this,s)[n.classPrivateFieldGet(this,s).length-3]}t.Sandbox=u},5643:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3369),i=r(5685),o=r(3334),s=r(8889),a=r(9699),c=new WeakMap,p=new WeakMap;class u{constructor(e,t,r=null){c.set(this,{writable:!0,value:void 0}),p.set(this,{writable:!0,value:void 0}),this.root=e,n.classPrivateFieldSet(this,c,r),this.path=[],this.errors=[],this.sandbox=new s.Sandbox(this.path,e,null),this.callbacks=o.default(t,this.errors);const i=this;n.classPrivateFieldSet(this,p,{path:this.path,get value(){return i.value}})}get depth(){return this.path.length-1}get property(){return this.sandbox.property}get value(){return this.sandbox.value}enter(e){return this.path.push(e),this.sandbox=this.sandbox.push(),this.path.length}exit(e){const t=Math.max(0,e-1);for(;this.path.length>t;)this.path.pop();return this.sandbox=this.sandbox.pop(),this.path.length}fork(e){const t=new u(this.root,this.callbacks,this);for(const r of e)if(t.enter(r),void 0===t.value)return null;return t}traverse(e,t){null!==t?a.zonedTraverse.call(this,e,t):a.traverse.call(this,e)}bail(e,t,r){const n=this.fork(this.path);a.bailedTraverse.call(n,t,r)}emit(e,t,r){var i;const o=this.callbacks[e];if(0===t&&!r)return void o(n.classPrivateFieldGet(this,p));if(0!==t&&t>this.depth+1)return;const s=0===t?n.classPrivateFieldGet(this,p):{path:n.classPrivateFieldGet(this,p).path.slice(0,Math.max(0,n.classPrivateFieldGet(this,p).path.length-t)),value:(null!==(i=this.sandbox.at(-t-1))&&void 0!==i?i:this.sandbox.at(0)).value};o(r?{path:s.path,value:0===s.path.length?void 0:s.path[s.path.length-1]}:s)}destroy(){if(this.path.length=0,this.sandbox.destroy(),this.sandbox=null,this.errors.length>0)throw new i.default(this.errors,"Error running Nimma")}}t.default=u},9699:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2512);function i(e,t,r,i,s){const a=t[e],c=r.enter(e),p=null!==s&&s.length>0&&!s[0].fn(r);(null===s||1===s.length&&p)&&i(r),n.default(a)&&(null===s?o(a,r,i,s):s.length>0&&(p&&o(a,r,i,s.slice(1)),s[0].deep&&(r.exit(c),r.enter(e),o(a,r,i,s)))),r.exit(c)}function o(e,t,r,n){if(Array.isArray(e))for(let o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3612),i=r(9445);function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=o(n);t.default=(e,t)=>{const r="object"==typeof e?e:function(e){try{return s.default(e)}catch(e){throw SyntaxError(e.message)}}(e);return i.default(r,Object.freeze(t))}},9445:(e,t)=>{"use strict";function r(e,t){switch(e.type){case"Program":return function(e,t){if(1!==e.body.length)throw SyntaxError("Too complex expression");return r(e.body[0],t)}(e,t);case"ExpressionStatement":return r(e.expression,t);case"MemberExpression":return function(e,t){const n=r(e.object,t),i="Identifier"===e.property.type?e.property.name:r(e.property,t);return"function"==typeof n[i]?n[i].bind(n):n[i]}(e,t);case"LogicalExpression":case"BinaryExpression":return function(e,t){return function(e,t){return Function("lhs, rhs",`return lhs ${e.operator} rhs`)(r(e.left,t),r(e.right,t))}(e,t)}(e,t);case"ConditionalExpression":return function(e,t){return Function("t, c, a","return t ? c : a")(r(e.test,t),r(e.consequent,t),r(e.alternate,t))}(e,t);case"UnaryExpression":return function(e,t){if(!e.prefix||"UnaryExpression"===e.argument.type)throw SyntaxError("Unexpected operator");return Function("v",`return ${e.operator}v`)(r(e.argument,t))}(e,t);case"CallExpression":return function(e,t){return Reflect.apply(r(e.callee,t),null,e.arguments.map((e=>r(e,t))))}(e,t);case"NewExpression":return function(e,t){return Reflect.construct(r(e.callee,t),e.arguments.map((e=>r(e,t))))}(e,t);case"ArrayExpression":return function(e,t){return e.elements.map((e=>r(e,t)))}(e,t);case"ThisExpression":return t;case"Identifier":return function(e,t){if(void 0===t||!(e in t))throw ReferenceError(`${e} is not defined`);return Reflect.get(t,e,t)}(e.name,t);case"Literal":return e.value;default:throw SyntaxError("Unexpected node")}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},5215:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var n={name:"regex",init(e){e.hooks.add("gobble-token",(function(t){if(47===this.code){const r=++this.index;let n=!1;for(;this.index=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57))break;o+=this.char}try{i=new RegExp(n,o)}catch(e){this.throwError(e.message)}return t.node={type:e.LITERAL,value:i,raw:this.expr.slice(r-1,this.index)},t.node=this.gobbleTokenProperty(t.node),t.node}this.code===e.OBRACK_CODE?n=!0:n&&this.code===e.CBRACK_CODE&&(n=!1),this.index+=92===this.code?2:1}this.throwError("Unclosed Regex")}}))}}},3738:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var n={name:"ternary",init(e){e.hooks.add("after-expression",(function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;const r=t.node,n=this.gobbleExpression();if(n||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;const i=this.gobbleExpression();if(i||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:r,consequent:n,alternate:i},r.operator&&e.binary_ops[r.operator]<=.9){let n=r;for(;n.right.operator&&e.binary_ops[n.right.operator]<=.9;)n=n.right;t.node.test=n.right,n.right=t.node,t.node=r}}else this.throwError("Expected :")}}))}}},6879:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);rb});var m=Object.prototype.hasOwnProperty;function y(e,t){return(e=e.slice()).push(t),e}function g(e,t){return(t=t.slice()).unshift(e),t}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(o,e);var t,r,n=(t=o,r=p(),function(){var e,n=a(t);if(r){var i=a(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return l(this,e)});function o(e){var t;return i(this,o),(t=n.call(this,'JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)')).avoidNew=!0,t.value=e,t.name="NewError",t}return s(o)}(f(Error));function b(e,t,r,i,o){if(!(this instanceof b))try{return new b(e,t,r,i,o)}catch(e){if(!e.avoidNew)throw e;return e.value}"string"==typeof e&&(o=i,i=r,r=t,t=e,e=null);var s=e&&"object"===n(e);if(e=e||{},this.json=e.json||r,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=!m.call(e,"wrap")||e.wrap,this.sandbox=e.sandbox||{},this.preventEval=e.preventEval||!1,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||i||null,this.otherTypeCallback=e.otherTypeCallback||o||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==e.autostart){var a={path:s?e.path:t};s?"json"in e&&(a.json=e.json):a.json=r;var c=this.evaluate(a);if(!c||"object"!==n(c))throw new v(c);return c}}b.prototype.evaluate=function(e,t,r,i){var o=this,s=this.parent,a=this.parentProperty,c=this.flatten,p=this.wrap;if(this.currResultType=this.resultType,this.currPreventEval=this.preventEval,this.currSandbox=this.sandbox,r=r||this.callback,this.currOtherTypeCallback=i||this.otherTypeCallback,t=t||this.json,(e=e||this.path)&&"object"===n(e)&&!Array.isArray(e)){if(!e.path&&""!==e.path)throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!m.call(e,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');t=e.json,c=m.call(e,"flatten")?e.flatten:c,this.currResultType=m.call(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=m.call(e,"sandbox")?e.sandbox:this.currSandbox,p=m.call(e,"wrap")?e.wrap:p,this.currPreventEval=m.call(e,"preventEval")?e.preventEval:this.currPreventEval,r=m.call(e,"callback")?e.callback:r,this.currOtherTypeCallback=m.call(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,s=m.call(e,"parent")?e.parent:s,a=m.call(e,"parentProperty")?e.parentProperty:a,e=e.path}if(s=s||null,a=a||null,Array.isArray(e)&&(e=b.toPathString(e)),(e||""===e)&&t){var u=b.toPathArray(e);"$"===u[0]&&u.length>1&&u.shift(),this._hasParentSelector=null;var f=this._trace(u,t,["$"],s,a,r).filter((function(e){return e&&!e.isParentSelector}));return f.length?p||1!==f.length||f[0].hasArrExpr?f.reduce((function(e,t){var r=o._getPreferredOutput(t);return c&&Array.isArray(r)?e=e.concat(r):e.push(r),e}),[]):this._getPreferredOutput(f[0]):p?[]:void 0}},b.prototype._getPreferredOutput=function(e){var t=this.currResultType;switch(t){case"all":var r=Array.isArray(e.path)?e.path:b.toPathArray(e.path);return e.pointer=b.toPointer(r),e.path="string"==typeof e.path?e.path:b.toPathString(e.path),e;case"value":case"parent":case"parentProperty":return e[t];case"path":return b.toPathString(e[t]);case"pointer":return b.toPointer(e.path);default:throw new TypeError("Unknown result type")}},b.prototype._handleCallback=function(e,t,r){if(t){var n=this._getPreferredOutput(e);e.path="string"==typeof e.path?e.path:b.toPathString(e.path),t(n,r,e)}},b.prototype._trace=function(e,t,r,i,o,s,a,c){var p,u=this;if(!e.length)return p={path:r,value:t,parent:i,parentProperty:o,hasArrExpr:a},this._handleCallback(p,s,"value"),p;var f=e[0],l=e.slice(1),h=[];function v(e){Array.isArray(e)?e.forEach((function(e){h.push(e)})):h.push(e)}if(("string"!=typeof f||c)&&t&&m.call(t,f))v(this._trace(l,t[f],y(r,f),t,f,s,a));else if("*"===f)this._walk(f,l,t,r,i,o,s,(function(e,t,r,n,i,o,s,a){v(u._trace(g(e,r),n,i,o,s,a,!0,!0))}));else if(".."===f)v(this._trace(l,t,r,i,o,s,a)),this._walk(f,l,t,r,i,o,s,(function(e,t,r,i,o,s,a,c){"object"===n(i[e])&&v(u._trace(g(t,r),i[e],y(o,e),i,e,c,!0))}));else{if("^"===f)return this._hasParentSelector=!0,{path:r.slice(0,-1),expr:l,isParentSelector:!0};if("~"===f)return p={path:y(r,f),value:o,parent:i,parentProperty:null},this._handleCallback(p,s,"property"),p;if("$"===f)v(this._trace(l,t,r,null,null,s,a));else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(f))v(this._slice(f,l,t,r,i,o,s));else if(0===f.indexOf("?(")){if(this.currPreventEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");this._walk(f,l,t,r,i,o,s,(function(e,t,r,n,i,o,s,a){u._eval(t.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/,"$1"),n[e],e,i,o,s)&&v(u._trace(g(e,r),n,i,o,s,a,!0))}))}else if("("===f[0]){if(this.currPreventEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");v(this._trace(g(this._eval(f,t,r[r.length-1],r.slice(0,-1),i,o),l),t,r,i,o,s,a))}else if("@"===f[0]){var b=!1,j=f.slice(1,-2);switch(j){case"scalar":t&&["object","function"].includes(n(t))||(b=!0);break;case"boolean":case"string":case"undefined":case"function":n(t)===j&&(b=!0);break;case"integer":!Number.isFinite(t)||t%1||(b=!0);break;case"number":Number.isFinite(t)&&(b=!0);break;case"nonFinite":"number"!=typeof t||Number.isFinite(t)||(b=!0);break;case"object":t&&n(t)===j&&(b=!0);break;case"array":Array.isArray(t)&&(b=!0);break;case"other":b=this.currOtherTypeCallback(t,r,i,o);break;case"null":null===t&&(b=!0);break;default:throw new TypeError("Unknown value type "+j)}if(b)return p={path:r,value:t,parent:i,parentProperty:o},this._handleCallback(p,s,"value"),p}else if("`"===f[0]&&t&&m.call(t,f.slice(1))){var $=f.slice(1);v(this._trace(l,t[$],y(r,$),t,$,s,a,!0))}else if(f.includes(",")){var _,x=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=d(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}(f.split(","));try{for(x.s();!(_=x.n()).done;){var P=_.value;v(this._trace(g(P,l),t,r,i,o,s,!0))}}catch(e){x.e(e)}finally{x.f()}}else!c&&t&&m.call(t,f)&&v(this._trace(l,t[f],y(r,f),t,f,s,a,!0))}if(this._hasParentSelector)for(var w=0;w-1?t.slice(0,a+1)+" return "+t.slice(a+1):" return "+t;return u(Function,r.concat([c])).apply(void 0,function(e){if(Array.isArray(e))return h(e)}(s=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||d(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}]),e}();b.prototype.vm={Script:j}},4268:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function a(e,t,r){return a=s()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&o(i,r.prototype),i},a.apply(null,arguments)}function c(e){var t="function"==typeof Map?new Map:void 0;return c=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return a(e,arguments,i(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),o(n,e)},c(e)}function p(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rg});var d=Object.prototype.hasOwnProperty;function h(e,t){return(e=e.slice()).push(t),e}function m(e,t){return(t=t.slice()).unshift(e),t}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(a,e);var t,r,n=(t=a,r=s(),function(){var e,n=i(t);if(r){var o=i(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return p(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=n.call(this,'JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)')).avoidNew=!0,t.value=e,t.name="NewError",t}return a}(c(Error));function g(e,t,r,i,o){if(!(this instanceof g))try{return new g(e,t,r,i,o)}catch(e){if(!e.avoidNew)throw e;return e.value}"string"==typeof e&&(o=i,i=r,r=t,t=e,e=null);var s=e&&"object"===n(e);if(e=e||{},this.json=e.json||r,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=!d.call(e,"wrap")||e.wrap,this.sandbox=e.sandbox||{},this.preventEval=e.preventEval||!1,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||i||null,this.otherTypeCallback=e.otherTypeCallback||o||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==e.autostart){var a={path:s?e.path:t};s?"json"in e&&(a.json=e.json):a.json=r;var c=this.evaluate(a);if(!c||"object"!==n(c))throw new y(c);return c}}g.prototype.evaluate=function(e,t,r,i){var o=this,s=this.parent,a=this.parentProperty,c=this.flatten,p=this.wrap;if(this.currResultType=this.resultType,this.currPreventEval=this.preventEval,this.currSandbox=this.sandbox,r=r||this.callback,this.currOtherTypeCallback=i||this.otherTypeCallback,t=t||this.json,(e=e||this.path)&&"object"===n(e)&&!Array.isArray(e)){if(!e.path&&""!==e.path)throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!d.call(e,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');t=e.json,c=d.call(e,"flatten")?e.flatten:c,this.currResultType=d.call(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=d.call(e,"sandbox")?e.sandbox:this.currSandbox,p=d.call(e,"wrap")?e.wrap:p,this.currPreventEval=d.call(e,"preventEval")?e.preventEval:this.currPreventEval,r=d.call(e,"callback")?e.callback:r,this.currOtherTypeCallback=d.call(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,s=d.call(e,"parent")?e.parent:s,a=d.call(e,"parentProperty")?e.parentProperty:a,e=e.path}if(s=s||null,a=a||null,Array.isArray(e)&&(e=g.toPathString(e)),(e||""===e)&&t){var u=g.toPathArray(e);"$"===u[0]&&u.length>1&&u.shift(),this._hasParentSelector=null;var f=this._trace(u,t,["$"],s,a,r).filter((function(e){return e&&!e.isParentSelector}));return f.length?p||1!==f.length||f[0].hasArrExpr?f.reduce((function(e,t){var r=o._getPreferredOutput(t);return c&&Array.isArray(r)?e=e.concat(r):e.push(r),e}),[]):this._getPreferredOutput(f[0]):p?[]:void 0}},g.prototype._getPreferredOutput=function(e){var t=this.currResultType;switch(t){case"all":var r=Array.isArray(e.path)?e.path:g.toPathArray(e.path);return e.pointer=g.toPointer(r),e.path="string"==typeof e.path?e.path:g.toPathString(e.path),e;case"value":case"parent":case"parentProperty":return e[t];case"path":return g.toPathString(e[t]);case"pointer":return g.toPointer(e.path);default:throw new TypeError("Unknown result type")}},g.prototype._handleCallback=function(e,t,r){if(t){var n=this._getPreferredOutput(e);e.path="string"==typeof e.path?e.path:g.toPathString(e.path),t(n,r,e)}},g.prototype._trace=function(e,t,r,i,o,s,a,c){var p,u=this;if(!e.length)return p={path:r,value:t,parent:i,parentProperty:o,hasArrExpr:a},this._handleCallback(p,s,"value"),p;var l=e[0],y=e.slice(1),g=[];function v(e){Array.isArray(e)?e.forEach((function(e){g.push(e)})):g.push(e)}if(("string"!=typeof l||c)&&t&&d.call(t,l))v(this._trace(y,t[l],h(r,l),t,l,s,a));else if("*"===l)this._walk(l,y,t,r,i,o,s,(function(e,t,r,n,i,o,s,a){v(u._trace(m(e,r),n,i,o,s,a,!0,!0))}));else if(".."===l)v(this._trace(y,t,r,i,o,s,a)),this._walk(l,y,t,r,i,o,s,(function(e,t,r,i,o,s,a,c){"object"===n(i[e])&&v(u._trace(m(t,r),i[e],h(o,e),i,e,c,!0))}));else{if("^"===l)return this._hasParentSelector=!0,{path:r.slice(0,-1),expr:y,isParentSelector:!0};if("~"===l)return p={path:h(r,l),value:o,parent:i,parentProperty:null},this._handleCallback(p,s,"property"),p;if("$"===l)v(this._trace(y,t,r,null,null,s,a));else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(l))v(this._slice(l,y,t,r,i,o,s));else if(0===l.indexOf("?(")){if(this.currPreventEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");this._walk(l,y,t,r,i,o,s,(function(e,t,r,n,i,o,s,a){u._eval(t.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/,"$1"),n[e],e,i,o,s)&&v(u._trace(m(e,r),n,i,o,s,a,!0))}))}else if("("===l[0]){if(this.currPreventEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");v(this._trace(m(this._eval(l,t,r[r.length-1],r.slice(0,-1),i,o),y),t,r,i,o,s,a))}else if("@"===l[0]){var b=!1,j=l.slice(1,-2);switch(j){case"scalar":t&&["object","function"].includes(n(t))||(b=!0);break;case"boolean":case"string":case"undefined":case"function":n(t)===j&&(b=!0);break;case"integer":!Number.isFinite(t)||t%1||(b=!0);break;case"number":Number.isFinite(t)&&(b=!0);break;case"nonFinite":"number"!=typeof t||Number.isFinite(t)||(b=!0);break;case"object":t&&n(t)===j&&(b=!0);break;case"array":Array.isArray(t)&&(b=!0);break;case"other":b=this.currOtherTypeCallback(t,r,i,o);break;case"null":null===t&&(b=!0);break;default:throw new TypeError("Unknown value type "+j)}if(b)return p={path:r,value:t,parent:i,parentProperty:o},this._handleCallback(p,s,"value"),p}else if("`"===l[0]&&t&&d.call(t,l.slice(1))){var $=l.slice(1);v(this._trace(y,t[$],h(r,$),t,$,s,a,!0))}else if(l.includes(",")){var _,x=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=f(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}(l.split(","));try{for(x.s();!(_=x.n()).done;){var P=_.value;v(this._trace(m(P,y),t,r,i,o,s,!0))}}catch(e){x.e(e)}finally{x.f()}}else!c&&t&&d.call(t,l)&&v(this._trace(y,t[l],h(r,l),t,l,s,a,!0))}if(this._hasParentSelector)for(var w=0;w-1?e.slice(0,s+1)+" return "+e.slice(s+1):" return "+e;return a(Function,u(r).concat([c])).apply(void 0,u(i))}}},6767:e=>{"use strict";e.exports=JSON.parse('{"id":"http://asyncapi.com/definitions/1.0.0/asyncapi.json","$schema":"http://json-schema.org/draft-04/schema","title":"AsyncAPI 1.0 schema.","type":"object","required":["asyncapi","info","topics"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["1.0.0"],"description":"The AsyncAPI specification version of this document."},"info":{"$ref":"http://asyncapi.com/definitions/1.0.0/info.json"},"baseTopic":{"type":"string","pattern":"^[^/.]","description":"The base topic to the API. Example: \'hitch\'.","default":""},"servers":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.0.0/server.json"},"uniqueItems":true},"topics":{"$ref":"http://asyncapi.com/definitions/1.0.0/topics.json"},"components":{"$ref":"http://asyncapi.com/definitions/1.0.0/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.0.0/tag.json"},"uniqueItems":true},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.0.0/SecurityRequirement.json"}},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.0.0/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/1.0.0/vendorExtension.json":{"id":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/1.0.0/info.json":{"id":"http://asyncapi.com/definitions/1.0.0/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/1.0.0/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/1.0.0/license.json"}}},"http://asyncapi.com/definitions/1.0.0/contact.json":{"id":"http://asyncapi.com/definitions/1.0.0/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.0.0/license.json":{"id":"http://asyncapi.com/definitions/1.0.0/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.0.0/server.json":{"id":"http://asyncapi.com/definitions/1.0.0/server.json","type":"object","description":"An object representing a Server.","required":["url","scheme"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"scheme":{"type":"string","description":"The transfer protocol.","enum":["kafka","kafka-secure","amqp","amqps","mqtt","mqtts","secure-mqtt","ws","wss","stomp","stomps"]},"schemeVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/1.0.0/serverVariables.json"}}},"http://asyncapi.com/definitions/1.0.0/serverVariables.json":{"id":"http://asyncapi.com/definitions/1.0.0/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.0.0/serverVariable.json"}},"http://asyncapi.com/definitions/1.0.0/serverVariable.json":{"id":"http://asyncapi.com/definitions/1.0.0/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","minProperties":1,"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"}}},"http://asyncapi.com/definitions/1.0.0/topics.json":{"id":"http://asyncapi.com/definitions/1.0.0/topics.json","type":"object","description":"Relative paths to the individual topics. They must be relative to the \'baseTopic\'.","patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"},"^[^.]":{"$ref":"http://asyncapi.com/definitions/1.0.0/topicItem.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/1.0.0/topicItem.json":{"id":"http://asyncapi.com/definitions/1.0.0/topicItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}},"minProperties":1,"properties":{"$ref":{"type":"string"},"publish":{"$ref":"http://asyncapi.com/definitions/1.0.0/message.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/1.0.0/message.json"},"deprecated":{"type":"boolean","default":false}}},"http://asyncapi.com/definitions/1.0.0/message.json":{"id":"http://asyncapi.com/definitions/1.0.0/message.json","type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}},"properties":{"$ref":{"type":"string"},"headers":{"$ref":"http://asyncapi.com/definitions/1.0.0/schema.json"},"payload":{"$ref":"http://asyncapi.com/definitions/1.0.0/schema.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.0.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.0.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"example":{}}},"http://asyncapi.com/definitions/1.0.0/schema.json":{"id":"http://asyncapi.com/definitions/1.0.0/schema.json","type":"object","description":"A deterministic version of a JSON Schema object.","patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}},"properties":{"$ref":{"type":"string"},"format":{"type":"string"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"multipleOf":{"$ref":"http://json-schema.org/draft-04/schema#/properties/multipleOf"},"maximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/maximum"},"exclusiveMaximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},"minimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/minimum"},"exclusiveMinimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},"maxLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"pattern":{"$ref":"http://json-schema.org/draft-04/schema#/properties/pattern"},"maxItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"uniqueItems":{"$ref":"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"maxProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"required":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"enum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/enum"},"additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/1.0.0/schema.json"},{"type":"boolean"}],"default":{}},"type":{"$ref":"http://json-schema.org/draft-04/schema#/properties/type"},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/1.0.0/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.0.0/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.0.0/schema.json"}},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.0.0/schema.json"},"default":{}},"discriminator":{"type":"string"},"readOnly":{"type":"boolean","default":false},"xml":{"$ref":"http://asyncapi.com/definitions/1.0.0/xml.json"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.0.0/externalDocs.json"},"example":{}},"additionalProperties":false},"http://json-schema.org/draft-04/schema":{"id":"http://json-schema.org/draft-04/schema","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string"},"$schema":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}},"http://asyncapi.com/definitions/1.0.0/xml.json":{"id":"http://asyncapi.com/definitions/1.0.0/xml.json","type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"namespace":{"type":"string"},"prefix":{"type":"string"},"attribute":{"type":"boolean","default":false},"wrapped":{"type":"boolean","default":false}}},"http://asyncapi.com/definitions/1.0.0/externalDocs.json":{"id":"http://asyncapi.com/definitions/1.0.0/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.0.0/tag.json":{"id":"http://asyncapi.com/definitions/1.0.0/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.0.0/externalDocs.json"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.0.0/components.json":{"id":"http://asyncapi.com/definitions/1.0.0/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/1.0.0/schemas.json"},"messages":{"$ref":"http://asyncapi.com/definitions/1.0.0/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/1.0.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/1.0.0/SecurityScheme.json"}]}}}}},"http://asyncapi.com/definitions/1.0.0/schemas.json":{"id":"http://asyncapi.com/definitions/1.0.0/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.0.0/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/1.0.0/messages.json":{"id":"http://asyncapi.com/definitions/1.0.0/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.0.0/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/1.0.0/Reference.json":{"id":"http://asyncapi.com/definitions/1.0.0/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"type":"string","format":"uri"}}},"http://asyncapi.com/definitions/1.0.0/SecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.0.0/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/1.0.0/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/1.0.0/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/1.0.0/X509.json"},{"$ref":"http://asyncapi.com/definitions/1.0.0/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/1.0.0/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/1.0.0/HTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/1.0.0/userPassword.json":{"id":"http://asyncapi.com/definitions/1.0.0/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.0.0/apiKey.json":{"id":"http://asyncapi.com/definitions/1.0.0/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.0.0/X509.json":{"id":"http://asyncapi.com/definitions/1.0.0/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.0.0/symmetricEncryption.json":{"id":"http://asyncapi.com/definitions/1.0.0/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.0.0/asymmetricEncryption.json":{"id":"http://asyncapi.com/definitions/1.0.0/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.0.0/HTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.0.0/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/1.0.0/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/1.0.0/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/1.0.0/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/1.0.0/NonBearerHTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.0.0/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.0.0/BearerHTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.0.0/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.0.0/APIKeyHTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.0.0/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.0.0/SecurityRequirement.json":{"id":"http://asyncapi.com/definitions/1.0.0/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},8732:e=>{"use strict";e.exports=JSON.parse('{"id":"http://asyncapi.com/definitions/1.1.0/asyncapi.json","$schema":"http://json-schema.org/draft-04/schema","title":"AsyncAPI 1.1.0 schema.","type":"object","required":["asyncapi","info","topics"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["1.0.0","1.1.0"],"description":"The AsyncAPI specification version of this document."},"info":{"$ref":"http://asyncapi.com/definitions/1.1.0/info.json"},"baseTopic":{"type":"string","pattern":"^[^/.]","description":"The base topic to the API. Example: \'hitch\'.","default":""},"servers":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.1.0/server.json"},"uniqueItems":true},"topics":{"$ref":"http://asyncapi.com/definitions/1.1.0/topics.json"},"components":{"$ref":"http://asyncapi.com/definitions/1.1.0/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.1.0/tag.json"},"uniqueItems":true},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.1.0/SecurityRequirement.json"}},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.1.0/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/1.1.0/vendorExtension.json":{"id":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/1.1.0/info.json":{"id":"http://asyncapi.com/definitions/1.1.0/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/1.1.0/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/1.1.0/license.json"}}},"http://asyncapi.com/definitions/1.1.0/contact.json":{"id":"http://asyncapi.com/definitions/1.1.0/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.1.0/license.json":{"id":"http://asyncapi.com/definitions/1.1.0/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.1.0/server.json":{"id":"http://asyncapi.com/definitions/1.1.0/server.json","type":"object","description":"An object representing a Server.","required":["url","scheme"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"scheme":{"type":"string","description":"The transfer protocol.","enum":["kafka","kafka-secure","amqp","amqps","mqtt","mqtts","secure-mqtt","ws","wss","stomp","stomps","jms"]},"schemeVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/1.1.0/serverVariables.json"}}},"http://asyncapi.com/definitions/1.1.0/serverVariables.json":{"id":"http://asyncapi.com/definitions/1.1.0/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.1.0/serverVariable.json"}},"http://asyncapi.com/definitions/1.1.0/serverVariable.json":{"id":"http://asyncapi.com/definitions/1.1.0/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","minProperties":1,"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"}}},"http://asyncapi.com/definitions/1.1.0/topics.json":{"id":"http://asyncapi.com/definitions/1.1.0/topics.json","type":"object","description":"Relative paths to the individual topics. They must be relative to the \'baseTopic\'.","patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"},"^[^.]":{"$ref":"http://asyncapi.com/definitions/1.1.0/topicItem.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/1.1.0/topicItem.json":{"id":"http://asyncapi.com/definitions/1.1.0/topicItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}},"minProperties":1,"properties":{"$ref":{"type":"string"},"parameters":{"type":"array","uniqueItems":true,"minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.1.0/parameter.json"}},"publish":{"$ref":"http://asyncapi.com/definitions/1.1.0/operation.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/1.1.0/operation.json"},"deprecated":{"type":"boolean","default":false}}},"http://asyncapi.com/definitions/1.1.0/parameter.json":{"id":"http://asyncapi.com/definitions/1.1.0/parameter.json","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"schema":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"}}},"http://asyncapi.com/definitions/1.1.0/schema.json":{"id":"http://asyncapi.com/definitions/1.1.0/schema.json","type":"object","description":"A deterministic version of a JSON Schema object.","patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}},"properties":{"$ref":{"type":"string"},"format":{"type":"string"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"multipleOf":{"$ref":"http://json-schema.org/draft-04/schema#/properties/multipleOf"},"maximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/maximum"},"exclusiveMaximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},"minimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/minimum"},"exclusiveMinimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},"maxLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"pattern":{"$ref":"http://json-schema.org/draft-04/schema#/properties/pattern"},"maxItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"uniqueItems":{"$ref":"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"maxProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"required":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"enum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/enum"},"additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"},{"type":"boolean"}],"default":{}},"type":{"$ref":"http://json-schema.org/draft-04/schema#/properties/type"},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"}},"oneOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"}},"anyOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"}},"not":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"},"default":{}},"discriminator":{"type":"string"},"readOnly":{"type":"boolean","default":false},"xml":{"$ref":"http://asyncapi.com/definitions/1.1.0/xml.json"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.1.0/externalDocs.json"},"example":{}},"additionalProperties":false},"http://json-schema.org/draft-04/schema":{"id":"http://json-schema.org/draft-04/schema","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string"},"$schema":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}},"http://asyncapi.com/definitions/1.1.0/xml.json":{"id":"http://asyncapi.com/definitions/1.1.0/xml.json","type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"namespace":{"type":"string"},"prefix":{"type":"string"},"attribute":{"type":"boolean","default":false},"wrapped":{"type":"boolean","default":false}}},"http://asyncapi.com/definitions/1.1.0/externalDocs.json":{"id":"http://asyncapi.com/definitions/1.1.0/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.1.0/operation.json":{"id":"http://asyncapi.com/definitions/1.1.0/operation.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/1.1.0/message.json"},{"type":"object","required":["oneOf"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}},"properties":{"oneOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/1.1.0/message.json"}}}}]},"http://asyncapi.com/definitions/1.1.0/message.json":{"id":"http://asyncapi.com/definitions/1.1.0/message.json","type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}},"properties":{"$ref":{"type":"string"},"headers":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"},"payload":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.1.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.1.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"example":{}}},"http://asyncapi.com/definitions/1.1.0/tag.json":{"id":"http://asyncapi.com/definitions/1.1.0/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.1.0/externalDocs.json"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.1.0/components.json":{"id":"http://asyncapi.com/definitions/1.1.0/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/1.1.0/schemas.json"},"messages":{"$ref":"http://asyncapi.com/definitions/1.1.0/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/1.1.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/1.1.0/SecurityScheme.json"}]}}}}},"http://asyncapi.com/definitions/1.1.0/schemas.json":{"id":"http://asyncapi.com/definitions/1.1.0/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/1.1.0/messages.json":{"id":"http://asyncapi.com/definitions/1.1.0/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.1.0/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/1.1.0/Reference.json":{"id":"http://asyncapi.com/definitions/1.1.0/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"type":"string","format":"uri"}}},"http://asyncapi.com/definitions/1.1.0/SecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.1.0/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/1.1.0/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/1.1.0/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/1.1.0/X509.json"},{"$ref":"http://asyncapi.com/definitions/1.1.0/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/1.1.0/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/1.1.0/HTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/1.1.0/userPassword.json":{"id":"http://asyncapi.com/definitions/1.1.0/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.1.0/apiKey.json":{"id":"http://asyncapi.com/definitions/1.1.0/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.1.0/X509.json":{"id":"http://asyncapi.com/definitions/1.1.0/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.1.0/symmetricEncryption.json":{"id":"http://asyncapi.com/definitions/1.1.0/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.1.0/asymmetricEncryption.json":{"id":"http://asyncapi.com/definitions/1.1.0/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.1.0/HTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.1.0/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/1.1.0/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/1.1.0/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/1.1.0/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/1.1.0/NonBearerHTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.1.0/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.1.0/BearerHTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.1.0/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.1.0/APIKeyHTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.1.0/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.1.0/SecurityRequirement.json":{"id":"http://asyncapi.com/definitions/1.1.0/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},5655:e=>{"use strict";e.exports=JSON.parse('{"id":"http://asyncapi.com/definitions/1.2.0/asyncapi.json","$schema":"http://json-schema.org/draft-04/schema","title":"AsyncAPI 1.2.0 schema.","type":"object","required":["asyncapi","info"],"oneOf":[{"required":["topics"]},{"required":["stream"]},{"required":["events"]}],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["1.0.0","1.1.0","1.2.0"],"description":"The AsyncAPI specification version of this document."},"info":{"$ref":"http://asyncapi.com/definitions/1.2.0/info.json"},"baseTopic":{"type":"string","pattern":"^[^/.]","description":"The base topic to the API. Example: \'hitch\'.","default":""},"servers":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.2.0/server.json"},"uniqueItems":true},"topics":{"$ref":"http://asyncapi.com/definitions/1.2.0/topics.json"},"stream":{"$ref":"http://asyncapi.com/definitions/1.2.0/stream.json","description":"The list of messages a consumer can read or write from/to a streaming API."},"events":{"$ref":"http://asyncapi.com/definitions/1.2.0/events.json","description":"The list of messages an events API sends and/or receives."},"components":{"$ref":"http://asyncapi.com/definitions/1.2.0/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.2.0/tag.json"},"uniqueItems":true},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.2.0/SecurityRequirement.json"}},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.2.0/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/1.2.0/vendorExtension.json":{"id":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/1.2.0/info.json":{"id":"http://asyncapi.com/definitions/1.2.0/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/1.2.0/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/1.2.0/license.json"}}},"http://asyncapi.com/definitions/1.2.0/contact.json":{"id":"http://asyncapi.com/definitions/1.2.0/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.2.0/license.json":{"id":"http://asyncapi.com/definitions/1.2.0/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.2.0/server.json":{"id":"http://asyncapi.com/definitions/1.2.0/server.json","type":"object","description":"An object representing a Server.","required":["url","scheme"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"scheme":{"type":"string","description":"The transfer protocol.","enum":["kafka","kafka-secure","amqp","amqps","mqtt","mqtts","secure-mqtt","ws","wss","stomp","stomps","jms","http","https"]},"schemeVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/1.2.0/serverVariables.json"}}},"http://asyncapi.com/definitions/1.2.0/serverVariables.json":{"id":"http://asyncapi.com/definitions/1.2.0/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.2.0/serverVariable.json"}},"http://asyncapi.com/definitions/1.2.0/serverVariable.json":{"id":"http://asyncapi.com/definitions/1.2.0/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","minProperties":1,"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"}}},"http://asyncapi.com/definitions/1.2.0/topics.json":{"id":"http://asyncapi.com/definitions/1.2.0/topics.json","type":"object","description":"Relative paths to the individual topics. They must be relative to the \'baseTopic\'.","patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"},"^[^.]":{"$ref":"http://asyncapi.com/definitions/1.2.0/topicItem.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/1.2.0/topicItem.json":{"id":"http://asyncapi.com/definitions/1.2.0/topicItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"minProperties":1,"properties":{"$ref":{"type":"string"},"parameters":{"type":"array","uniqueItems":true,"minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/parameter.json"}},"publish":{"$ref":"http://asyncapi.com/definitions/1.2.0/operation.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/1.2.0/operation.json"},"deprecated":{"type":"boolean","default":false}}},"http://asyncapi.com/definitions/1.2.0/parameter.json":{"id":"http://asyncapi.com/definitions/1.2.0/parameter.json","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"schema":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"},"$ref":{"type":"string"}}},"http://asyncapi.com/definitions/1.2.0/schema.json":{"id":"http://asyncapi.com/definitions/1.2.0/schema.json","type":"object","description":"A deterministic version of a JSON Schema object.","patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"properties":{"$ref":{"type":"string"},"format":{"type":"string"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"multipleOf":{"$ref":"http://json-schema.org/draft-04/schema#/properties/multipleOf"},"maximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/maximum"},"exclusiveMaximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},"minimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/minimum"},"exclusiveMinimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},"maxLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"pattern":{"$ref":"http://json-schema.org/draft-04/schema#/properties/pattern"},"maxItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"uniqueItems":{"$ref":"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"maxProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"required":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"enum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/enum"},"additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"},{"type":"boolean"}],"default":{}},"type":{"$ref":"http://json-schema.org/draft-04/schema#/properties/type"},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"}},"oneOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"}},"anyOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"}},"not":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"},"default":{}},"discriminator":{"type":"string"},"readOnly":{"type":"boolean","default":false},"xml":{"$ref":"http://asyncapi.com/definitions/1.2.0/xml.json"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.2.0/externalDocs.json"},"example":{}},"additionalProperties":false},"http://json-schema.org/draft-04/schema":{"id":"http://json-schema.org/draft-04/schema","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string"},"$schema":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}},"http://asyncapi.com/definitions/1.2.0/xml.json":{"id":"http://asyncapi.com/definitions/1.2.0/xml.json","type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"namespace":{"type":"string"},"prefix":{"type":"string"},"attribute":{"type":"boolean","default":false},"wrapped":{"type":"boolean","default":false}}},"http://asyncapi.com/definitions/1.2.0/externalDocs.json":{"id":"http://asyncapi.com/definitions/1.2.0/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.2.0/operation.json":{"id":"http://asyncapi.com/definitions/1.2.0/operation.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/1.2.0/message.json"},{"type":"object","required":["oneOf"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"properties":{"oneOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/message.json"}}}}]},"http://asyncapi.com/definitions/1.2.0/message.json":{"id":"http://asyncapi.com/definitions/1.2.0/message.json","type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"properties":{"$ref":{"type":"string"},"headers":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"},"payload":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.2.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.2.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"example":{}}},"http://asyncapi.com/definitions/1.2.0/tag.json":{"id":"http://asyncapi.com/definitions/1.2.0/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.2.0/externalDocs.json"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.2.0/stream.json":{"id":"http://asyncapi.com/definitions/1.2.0/stream.json","title":"Stream Object","type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"minProperties":1,"properties":{"framing":{"title":"Stream Framing Object","type":"object","patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"minProperties":1,"oneOf":[{"additionalProperties":false,"properties":{"type":{"type":"string","enum":["chunked"]},"delimiter":{"type":"string","enum":["\\\\r\\\\n","\\\\n"],"default":"\\\\r\\\\n"}}},{"additionalProperties":false,"properties":{"type":{"type":"string","enum":["sse"]},"delimiter":{"type":"string","enum":["\\\\n\\\\n"],"default":"\\\\n\\\\n"}}}]},"read":{"title":"Stream Read Object","type":"array","uniqueItems":true,"minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/message.json"}},"write":{"title":"Stream Write Object","type":"array","uniqueItems":true,"minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/message.json"}}}},"http://asyncapi.com/definitions/1.2.0/events.json":{"id":"http://asyncapi.com/definitions/1.2.0/events.json","title":"Events Object","type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"minProperties":1,"anyOf":[{"required":["receive"]},{"required":["send"]}],"properties":{"receive":{"title":"Events Receive Object","type":"array","uniqueItems":true,"minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/message.json"}},"send":{"title":"Events Send Object","type":"array","uniqueItems":true,"minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/message.json"}}}},"http://asyncapi.com/definitions/1.2.0/components.json":{"id":"http://asyncapi.com/definitions/1.2.0/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/1.2.0/schemas.json"},"messages":{"$ref":"http://asyncapi.com/definitions/1.2.0/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/1.2.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/1.2.0/SecurityScheme.json"}]}}},"parameters":{"$ref":"http://asyncapi.com/definitions/1.2.0/parameters.json"}}},"http://asyncapi.com/definitions/1.2.0/schemas.json":{"id":"http://asyncapi.com/definitions/1.2.0/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/1.2.0/messages.json":{"id":"http://asyncapi.com/definitions/1.2.0/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.2.0/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/1.2.0/Reference.json":{"id":"http://asyncapi.com/definitions/1.2.0/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"type":"string","format":"uri"}}},"http://asyncapi.com/definitions/1.2.0/SecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.2.0/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/1.2.0/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/1.2.0/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/1.2.0/X509.json"},{"$ref":"http://asyncapi.com/definitions/1.2.0/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/1.2.0/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/1.2.0/HTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/1.2.0/userPassword.json":{"id":"http://asyncapi.com/definitions/1.2.0/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.2.0/apiKey.json":{"id":"http://asyncapi.com/definitions/1.2.0/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.2.0/X509.json":{"id":"http://asyncapi.com/definitions/1.2.0/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.2.0/symmetricEncryption.json":{"id":"http://asyncapi.com/definitions/1.2.0/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.2.0/asymmetricEncryption.json":{"id":"http://asyncapi.com/definitions/1.2.0/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.2.0/HTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.2.0/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/1.2.0/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/1.2.0/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/1.2.0/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/1.2.0/NonBearerHTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.2.0/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.2.0/BearerHTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.2.0/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.2.0/APIKeyHTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.2.0/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.2.0/parameters.json":{"id":"http://asyncapi.com/definitions/1.2.0/parameters.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.2.0/parameter.json"},"description":"JSON objects describing re-usable topic parameters."},"http://asyncapi.com/definitions/1.2.0/SecurityRequirement.json":{"id":"http://asyncapi.com/definitions/1.2.0/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},3561:e=>{"use strict";e.exports=JSON.parse('{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/asyncapi.json","$schema":"http://json-schema.org/draft-07/schema","title":"AsyncAPI 2.0.0-rc1 schema.","type":"object","required":["asyncapi","id","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["2.0.0-rc1"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri-reference"},"info":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/info.json"},"servers":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/server.json"},"uniqueItems":true},"defaultContentType":{"type":"string"},"channels":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/channels.json"},"components":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/2.0.0-rc1/info.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/license.json"}}},"http://asyncapi.com/definitions/2.0.0-rc1/contact.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc1/license.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc1/server.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/server.json","type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/serverVariables.json"},"baseChannel":{"type":"string","x-format":"uri-path"},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/SecurityRequirement.json"}}}},"http://asyncapi.com/definitions/2.0.0-rc1/serverVariables.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/serverVariable.json"}},"http://asyncapi.com/definitions/2.0.0-rc1/serverVariable.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","minProperties":1,"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"http://asyncapi.com/definitions/2.0.0-rc1/SecurityRequirement.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"http://asyncapi.com/definitions/2.0.0-rc1/channels.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/channels.json","type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/channelItem.json"}},"http://asyncapi.com/definitions/2.0.0-rc1/channelItem.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/channelItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"minProperties":1,"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json"},"parameters":{"type":"array","uniqueItems":true,"minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/parameter.json"}},"publish":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/operation.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/operation.json"},"deprecated":{"type":"boolean","default":false},"protocolInfo":{"type":"object","additionalProperties":{"type":"object"}}}},"http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json","type":"string","format":"uri"},"http://asyncapi.com/definitions/2.0.0-rc1/parameter.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/parameter.json","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"schema":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"},"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.0.0-rc1/schema.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json","type":"object","description":"A deterministic version of a JSON Schema object.","patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json"},"format":{"type":"string"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"multipleOf":{"$ref":"http://json-schema.org/draft-04/schema#/properties/multipleOf"},"maximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/maximum"},"exclusiveMaximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},"minimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/minimum"},"exclusiveMinimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},"maxLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"pattern":{"$ref":"http://json-schema.org/draft-04/schema#/properties/pattern"},"maxItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"uniqueItems":{"$ref":"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"maxProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"required":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"enum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/enum"},"deprecated":{"type":"boolean","default":false},"additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"},{"type":"boolean"}],"default":{}},"type":{"$ref":"http://json-schema.org/draft-04/schema#/properties/type"},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"}},"oneOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"}},"anyOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"}},"not":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"},"default":{}},"discriminator":{"type":"string"},"readOnly":{"type":"boolean","default":false},"xml":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/xml.json"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json"},"example":{},"examples":{"type":"array","items":{}}},"additionalProperties":false},"http://json-schema.org/draft-04/schema":{"id":"http://json-schema.org/draft-04/schema","$schema":"http://json-schema.org/draft-04/schema","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string"},"$schema":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}},"http://asyncapi.com/definitions/2.0.0-rc1/xml.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/xml.json","type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"namespace":{"type":"string"},"prefix":{"type":"string"},"attribute":{"type":"boolean","default":false},"wrapped":{"type":"boolean","default":false}}},"http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc1/operation.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/operation.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json"},"operationId":{"type":"string"},"protocolInfo":{"type":"object","additionalProperties":{"type":"object"}},"message":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/message.json"},{"type":"object","required":["oneOf"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"oneOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/message.json"}}}}]}}},"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json"},"operationId":{"type":"string"},"protocolInfo":{"type":"object","additionalProperties":{"type":"object"}}}},"http://asyncapi.com/definitions/2.0.0-rc1/tag.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc1/message.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/message.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"}]}},"payload":{},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"protocolInfo":{"type":"object","additionalProperties":{"type":"object"}},"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json"}]},{"type":"object","additionalItems":true}]}]}}}},"http://asyncapi.com/definitions/2.0.0-rc1/correlationId.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/correlationId.json","type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(/\\\\w+)+"}}},"http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"}]}},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"protocolInfo":{"type":"object","additionalProperties":{"type":"object"}}}},"http://asyncapi.com/definitions/2.0.0-rc1/components.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schemas.json"},"messages":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/SecurityScheme.json"}]}}},"parameters":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/parameters.json"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/correlationId.json"}]}}},"traits":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/traits.json"}}},"http://asyncapi.com/definitions/2.0.0-rc1/schemas.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/2.0.0-rc1/messages.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/2.0.0-rc1/SecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/X509.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/HTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flows.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/openIdConnect.json"}]},"http://asyncapi.com/definitions/2.0.0-rc1/userPassword.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/apiKey.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/X509.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/symmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/asymmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/HTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.0.0-rc1/NonBearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/BearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/APIKeyHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flows.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flows.json","type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false,"minProperties":1}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json","type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Scopes.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Scopes.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Scopes.json","type":"object","additionalProperties":{"type":"string"}},"http://asyncapi.com/definitions/2.0.0-rc1/openIdConnect.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/openIdConnect.json","type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/parameters.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/parameters.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/parameter.json"},"description":"JSON objects describing re-usable channel parameters."},"http://asyncapi.com/definitions/2.0.0-rc1/traits.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/traits.json","type":"object","additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json"}]}}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},8319:e=>{"use strict";e.exports=JSON.parse('{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/asyncapi.json","$schema":"http://json-schema.org/draft-07/schema","title":"AsyncAPI 2.0.0-rc2 schema.","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["2.0.0-rc2"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/info.json"},"servers":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/server.json"}},"defaultContentType":{"type":"string"},"channels":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/channels.json"},"components":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/2.0.0-rc2/info.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/license.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/contact.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/license.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/server.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/server.json","type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/serverVariables.json"},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/SecurityRequirement.json"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/serverVariables.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/serverVariable.json"}},"http://asyncapi.com/definitions/2.0.0-rc2/serverVariable.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","minProperties":1,"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"http://asyncapi.com/definitions/2.0.0-rc2/SecurityRequirement.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json","type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{}}},"http://asyncapi.com/definitions/2.0.0-rc2/channels.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/channels.json","type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/channelItem.json"}},"http://asyncapi.com/definitions/2.0.0-rc2/channelItem.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/channelItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"minProperties":1,"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/ReferenceObject.json"},"parameters":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/parameter.json"}},"description":{"type":"string","description":"A description of the channel."},"publish":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/operation.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/operation.json"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/ReferenceObject.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/ReferenceObject.json","type":"string","format":"uri-reference"},"http://asyncapi.com/definitions/2.0.0-rc2/parameter.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/parameter.json","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/schema.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json","allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"type":"object","patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"}},"oneOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"}},"anyOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"}},"not":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},"default":{}},"propertyNames":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},"contains":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json"},"deprecated":{"type":"boolean","default":false}}}]},"http://json-schema.org/draft-07/schema":{"$id":"http://json-schema.org/draft-07/schema","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true},"http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/operation.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/operation.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"},"message":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/message.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/tag.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/message.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/message.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/message.json"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},"payload":{},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"http://asyncapi.com/definitions/2.0.0-rc2/correlationId.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/correlationId.json","type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"}]},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/components.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schemas.json"},"messages":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/SecurityScheme.json"}]}}},"parameters":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/parameters.json"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/correlationId.json"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"}}}},"http://asyncapi.com/definitions/2.0.0-rc2/schemas.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/2.0.0-rc2/messages.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/2.0.0-rc2/SecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/X509.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/HTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flows.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/openIdConnect.json"}]},"http://asyncapi.com/definitions/2.0.0-rc2/userPassword.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/apiKey.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/X509.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/symmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/asymmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/HTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.0.0-rc2/NonBearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/BearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/APIKeyHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flows.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flows.json","type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false,"minProperties":1}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json","type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Scopes.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Scopes.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Scopes.json","type":"object","additionalProperties":{"type":"string"}},"http://asyncapi.com/definitions/2.0.0-rc2/openIdConnect.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/openIdConnect.json","type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/parameters.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/parameters.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/parameter.json"},"description":"JSON objects describing re-usable channel parameters."}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},9284:e=>{"use strict";e.exports=JSON.parse('{"$id":"http://asyncapi.com/definitions/2.0.0/asyncapi.json","$schema":"http://json-schema.org/draft-07/schema","title":"AsyncAPI 2.0.0 schema.","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["2.0.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"http://asyncapi.com/definitions/2.0.0/info.json"},"servers":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/server.json"}},"defaultContentType":{"type":"string"},"channels":{"$ref":"http://asyncapi.com/definitions/2.0.0/channels.json"},"components":{"$ref":"http://asyncapi.com/definitions/2.0.0/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/2.0.0/specificationExtension.json":{"$id":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/2.0.0/info.json":{"$id":"http://asyncapi.com/definitions/2.0.0/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/2.0.0/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/2.0.0/license.json"}}},"http://asyncapi.com/definitions/2.0.0/contact.json":{"$id":"http://asyncapi.com/definitions/2.0.0/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0/license.json":{"$id":"http://asyncapi.com/definitions/2.0.0/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0/server.json":{"$id":"http://asyncapi.com/definitions/2.0.0/server.json","type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/2.0.0/serverVariables.json"},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0/SecurityRequirement.json"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.0.0/serverVariables.json":{"$id":"http://asyncapi.com/definitions/2.0.0/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/serverVariable.json"}},"http://asyncapi.com/definitions/2.0.0/serverVariable.json":{"$id":"http://asyncapi.com/definitions/2.0.0/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"http://asyncapi.com/definitions/2.0.0/SecurityRequirement.json":{"$id":"http://asyncapi.com/definitions/2.0.0/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"http://asyncapi.com/definitions/2.0.0/bindingsObject.json":{"$id":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json","type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{}}},"http://asyncapi.com/definitions/2.0.0/channels.json":{"$id":"http://asyncapi.com/definitions/2.0.0/channels.json","type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/channelItem.json"}},"http://asyncapi.com/definitions/2.0.0/channelItem.json":{"$id":"http://asyncapi.com/definitions/2.0.0/channelItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0/ReferenceObject.json"},"parameters":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/parameter.json"}},"description":{"type":"string","description":"A description of the channel."},"publish":{"$ref":"http://asyncapi.com/definitions/2.0.0/operation.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/2.0.0/operation.json"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.0.0/ReferenceObject.json":{"$id":"http://asyncapi.com/definitions/2.0.0/ReferenceObject.json","type":"string","format":"uri-reference"},"http://asyncapi.com/definitions/2.0.0/parameter.json":{"$id":"http://asyncapi.com/definitions/2.0.0/parameter.json","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.0.0/schema.json":{"$id":"http://asyncapi.com/definitions/2.0.0/schema.json","allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"}},"not":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},"default":{}},"propertyNames":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},"contains":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false}}}]},"http://json-schema.org/draft-07/schema":{"$id":"http://json-schema.org/draft-07/schema","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true},"http://asyncapi.com/definitions/2.0.0/externalDocs.json":{"$id":"http://asyncapi.com/definitions/2.0.0/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0/operation.json":{"$id":"http://asyncapi.com/definitions/2.0.0/operation.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/operationTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/operationTrait.json"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"},"message":{"$ref":"http://asyncapi.com/definitions/2.0.0/message.json"}}},"http://asyncapi.com/definitions/2.0.0/Reference.json":{"$id":"http://asyncapi.com/definitions/2.0.0/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.0.0/operationTrait.json":{"$id":"http://asyncapi.com/definitions/2.0.0/operationTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.0.0/tag.json":{"$id":"http://asyncapi.com/definitions/2.0.0/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0/externalDocs.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0/message.json":{"$id":"http://asyncapi.com/definitions/2.0.0/message.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/Reference.json"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0/message.json"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"payload":{},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/messageTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/messageTrait.json"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"http://asyncapi.com/definitions/2.0.0/correlationId.json":{"$id":"http://asyncapi.com/definitions/2.0.0/correlationId.json","type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"http://asyncapi.com/definitions/2.0.0/messageTrait.json":{"$id":"http://asyncapi.com/definitions/2.0.0/messageTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.0.0/components.json":{"$id":"http://asyncapi.com/definitions/2.0.0/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/2.0.0/schemas.json"},"messages":{"$ref":"http://asyncapi.com/definitions/2.0.0/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/SecurityScheme.json"}]}}},"parameters":{"$ref":"http://asyncapi.com/definitions/2.0.0/parameters.json"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/correlationId.json"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/operationTrait.json"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/messageTrait.json"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"}}}},"http://asyncapi.com/definitions/2.0.0/schemas.json":{"$id":"http://asyncapi.com/definitions/2.0.0/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/2.0.0/messages.json":{"$id":"http://asyncapi.com/definitions/2.0.0/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/2.0.0/SecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/X509.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/HTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/oauth2Flows.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/openIdConnect.json"}]},"http://asyncapi.com/definitions/2.0.0/userPassword.json":{"$id":"http://asyncapi.com/definitions/2.0.0/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/apiKey.json":{"$id":"http://asyncapi.com/definitions/2.0.0/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/X509.json":{"$id":"http://asyncapi.com/definitions/2.0.0/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/symmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.0.0/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/asymmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.0.0/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/HTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.0.0/NonBearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/BearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/APIKeyHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/oauth2Flows.json":{"$id":"http://asyncapi.com/definitions/2.0.0/oauth2Flows.json","type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/oauth2Flow.json"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/oauth2Flow.json"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0/oauth2Flow.json":{"$id":"http://asyncapi.com/definitions/2.0.0/oauth2Flow.json","type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"http://asyncapi.com/definitions/2.0.0/oauth2Scopes.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/oauth2Scopes.json":{"$id":"http://asyncapi.com/definitions/2.0.0/oauth2Scopes.json","type":"object","additionalProperties":{"type":"string"}},"http://asyncapi.com/definitions/2.0.0/openIdConnect.json":{"$id":"http://asyncapi.com/definitions/2.0.0/openIdConnect.json","type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/parameters.json":{"$id":"http://asyncapi.com/definitions/2.0.0/parameters.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/parameter.json"},"description":"JSON objects describing re-usable channel parameters."}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},8369:e=>{"use strict";e.exports=JSON.parse('{"$id":"http://asyncapi.com/definitions/2.1.0/asyncapi.json","$schema":"http://json-schema.org/draft-07/schema","title":"AsyncAPI 2.1.0 schema.","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["2.1.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"http://asyncapi.com/definitions/2.1.0/info.json"},"servers":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/server.json"}},"defaultContentType":{"type":"string"},"channels":{"$ref":"http://asyncapi.com/definitions/2.1.0/channels.json"},"components":{"$ref":"http://asyncapi.com/definitions/2.1.0/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.1.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.1.0/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/2.1.0/specificationExtension.json":{"$id":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/2.1.0/info.json":{"$id":"http://asyncapi.com/definitions/2.1.0/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/2.1.0/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/2.1.0/license.json"}}},"http://asyncapi.com/definitions/2.1.0/contact.json":{"$id":"http://asyncapi.com/definitions/2.1.0/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.1.0/license.json":{"$id":"http://asyncapi.com/definitions/2.1.0/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.1.0/server.json":{"$id":"http://asyncapi.com/definitions/2.1.0/server.json","type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/2.1.0/serverVariables.json"},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.1.0/SecurityRequirement.json"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.1.0/serverVariables.json":{"$id":"http://asyncapi.com/definitions/2.1.0/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/serverVariable.json"}},"http://asyncapi.com/definitions/2.1.0/serverVariable.json":{"$id":"http://asyncapi.com/definitions/2.1.0/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"http://asyncapi.com/definitions/2.1.0/SecurityRequirement.json":{"$id":"http://asyncapi.com/definitions/2.1.0/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"http://asyncapi.com/definitions/2.1.0/bindingsObject.json":{"$id":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json","type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{},"ibmmq":{}}},"http://asyncapi.com/definitions/2.1.0/channels.json":{"$id":"http://asyncapi.com/definitions/2.1.0/channels.json","type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/channelItem.json"}},"http://asyncapi.com/definitions/2.1.0/channelItem.json":{"$id":"http://asyncapi.com/definitions/2.1.0/channelItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.1.0/ReferenceObject.json"},"parameters":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/parameter.json"}},"description":{"type":"string","description":"A description of the channel."},"publish":{"$ref":"http://asyncapi.com/definitions/2.1.0/operation.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/2.1.0/operation.json"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.1.0/ReferenceObject.json":{"$id":"http://asyncapi.com/definitions/2.1.0/ReferenceObject.json","type":"string","format":"uri-reference"},"http://asyncapi.com/definitions/2.1.0/parameter.json":{"$id":"http://asyncapi.com/definitions/2.1.0/parameter.json","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"http://asyncapi.com/definitions/2.1.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.1.0/schema.json":{"$id":"http://asyncapi.com/definitions/2.1.0/schema.json","allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"}},"not":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},"default":{}},"propertyNames":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},"contains":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.1.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false}}}]},"http://json-schema.org/draft-07/schema":{"$id":"http://json-schema.org/draft-07/schema","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true},"http://asyncapi.com/definitions/2.1.0/externalDocs.json":{"$id":"http://asyncapi.com/definitions/2.1.0/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.1.0/operation.json":{"$id":"http://asyncapi.com/definitions/2.1.0/operation.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/operationTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/operationTrait.json"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.1.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.1.0/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"},"message":{"$ref":"http://asyncapi.com/definitions/2.1.0/message.json"}}},"http://asyncapi.com/definitions/2.1.0/Reference.json":{"$id":"http://asyncapi.com/definitions/2.1.0/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.1.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.1.0/operationTrait.json":{"$id":"http://asyncapi.com/definitions/2.1.0/operationTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.1.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.1.0/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.1.0/tag.json":{"$id":"http://asyncapi.com/definitions/2.1.0/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.1.0/externalDocs.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.1.0/message.json":{"$id":"http://asyncapi.com/definitions/2.1.0/message.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/Reference.json"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.1.0/message.json"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"payload":{},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.1.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.1.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/messageTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/messageTrait.json"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"http://asyncapi.com/definitions/2.1.0/correlationId.json":{"$id":"http://asyncapi.com/definitions/2.1.0/correlationId.json","type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"http://asyncapi.com/definitions/2.1.0/messageTrait.json":{"$id":"http://asyncapi.com/definitions/2.1.0/messageTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.1.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.1.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.1.0/components.json":{"$id":"http://asyncapi.com/definitions/2.1.0/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/2.1.0/schemas.json"},"messages":{"$ref":"http://asyncapi.com/definitions/2.1.0/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/SecurityScheme.json"}]}}},"parameters":{"$ref":"http://asyncapi.com/definitions/2.1.0/parameters.json"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/correlationId.json"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/operationTrait.json"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/messageTrait.json"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"}}}},"http://asyncapi.com/definitions/2.1.0/schemas.json":{"$id":"http://asyncapi.com/definitions/2.1.0/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/2.1.0/messages.json":{"$id":"http://asyncapi.com/definitions/2.1.0/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/2.1.0/SecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.1.0/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/X509.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/HTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/oauth2Flows.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/openIdConnect.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/SaslSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.1.0/userPassword.json":{"$id":"http://asyncapi.com/definitions/2.1.0/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/apiKey.json":{"$id":"http://asyncapi.com/definitions/2.1.0/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/X509.json":{"$id":"http://asyncapi.com/definitions/2.1.0/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/symmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.1.0/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/asymmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.1.0/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/HTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.1.0/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.1.0/NonBearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.1.0/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/BearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.1.0/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/APIKeyHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.1.0/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/oauth2Flows.json":{"$id":"http://asyncapi.com/definitions/2.1.0/oauth2Flows.json","type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/oauth2Flow.json"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/oauth2Flow.json"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.1.0/oauth2Flow.json":{"$id":"http://asyncapi.com/definitions/2.1.0/oauth2Flow.json","type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"http://asyncapi.com/definitions/2.1.0/oauth2Scopes.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/oauth2Scopes.json":{"$id":"http://asyncapi.com/definitions/2.1.0/oauth2Scopes.json","type":"object","additionalProperties":{"type":"string"}},"http://asyncapi.com/definitions/2.1.0/openIdConnect.json":{"$id":"http://asyncapi.com/definitions/2.1.0/openIdConnect.json","type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/SaslSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.1.0/SaslSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/SaslPlainSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/SaslScramSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/SaslGssapiSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.1.0/SaslPlainSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.1.0/SaslPlainSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["plain"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/SaslScramSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.1.0/SaslScramSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["scramSha256","scramSha512"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/SaslGssapiSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.1.0/SaslGssapiSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["gssapi"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/parameters.json":{"$id":"http://asyncapi.com/definitions/2.1.0/parameters.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/parameter.json"},"description":"JSON objects describing re-usable channel parameters."}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},9320:e=>{"use strict";e.exports=JSON.parse('{"$id":"http://asyncapi.com/definitions/2.2.0/asyncapi.json","$schema":"http://json-schema.org/draft-07/schema","title":"AsyncAPI 2.2.0 schema.","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["2.2.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"http://asyncapi.com/definitions/2.2.0/info.json"},"servers":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/server.json"}},"defaultContentType":{"type":"string"},"channels":{"$ref":"http://asyncapi.com/definitions/2.2.0/channels.json"},"components":{"$ref":"http://asyncapi.com/definitions/2.2.0/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.2.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.2.0/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/2.2.0/specificationExtension.json":{"$id":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/2.2.0/info.json":{"$id":"http://asyncapi.com/definitions/2.2.0/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/2.2.0/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/2.2.0/license.json"}}},"http://asyncapi.com/definitions/2.2.0/contact.json":{"$id":"http://asyncapi.com/definitions/2.2.0/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.2.0/license.json":{"$id":"http://asyncapi.com/definitions/2.2.0/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.2.0/server.json":{"$id":"http://asyncapi.com/definitions/2.2.0/server.json","type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/2.2.0/serverVariables.json"},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.2.0/SecurityRequirement.json"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.2.0/serverVariables.json":{"$id":"http://asyncapi.com/definitions/2.2.0/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/serverVariable.json"}},"http://asyncapi.com/definitions/2.2.0/serverVariable.json":{"$id":"http://asyncapi.com/definitions/2.2.0/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"http://asyncapi.com/definitions/2.2.0/SecurityRequirement.json":{"$id":"http://asyncapi.com/definitions/2.2.0/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"http://asyncapi.com/definitions/2.2.0/bindingsObject.json":{"$id":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json","type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"anypointmq":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{},"ibmmq":{}}},"http://asyncapi.com/definitions/2.2.0/channels.json":{"$id":"http://asyncapi.com/definitions/2.2.0/channels.json","type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/channelItem.json"}},"http://asyncapi.com/definitions/2.2.0/channelItem.json":{"$id":"http://asyncapi.com/definitions/2.2.0/channelItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.2.0/ReferenceObject.json"},"parameters":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/parameter.json"}},"description":{"type":"string","description":"A description of the channel."},"servers":{"type":"array","description":"The names of the servers on which this channel is available. If absent or empty then this channel must be available on all servers.","items":{"type":"string"},"uniqueItems":true},"publish":{"$ref":"http://asyncapi.com/definitions/2.2.0/operation.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/2.2.0/operation.json"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.2.0/ReferenceObject.json":{"$id":"http://asyncapi.com/definitions/2.2.0/ReferenceObject.json","type":"string","format":"uri-reference"},"http://asyncapi.com/definitions/2.2.0/parameter.json":{"$id":"http://asyncapi.com/definitions/2.2.0/parameter.json","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"http://asyncapi.com/definitions/2.2.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.2.0/schema.json":{"$id":"http://asyncapi.com/definitions/2.2.0/schema.json","allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"}},"not":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},"default":{}},"propertyNames":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},"contains":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.2.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false}}}]},"http://json-schema.org/draft-07/schema":{"$id":"http://json-schema.org/draft-07/schema","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true},"http://asyncapi.com/definitions/2.2.0/externalDocs.json":{"$id":"http://asyncapi.com/definitions/2.2.0/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.2.0/operation.json":{"$id":"http://asyncapi.com/definitions/2.2.0/operation.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/operationTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/operationTrait.json"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.2.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.2.0/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"},"message":{"$ref":"http://asyncapi.com/definitions/2.2.0/message.json"}}},"http://asyncapi.com/definitions/2.2.0/Reference.json":{"$id":"http://asyncapi.com/definitions/2.2.0/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.2.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.2.0/operationTrait.json":{"$id":"http://asyncapi.com/definitions/2.2.0/operationTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.2.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.2.0/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.2.0/tag.json":{"$id":"http://asyncapi.com/definitions/2.2.0/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.2.0/externalDocs.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.2.0/message.json":{"$id":"http://asyncapi.com/definitions/2.2.0/message.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/Reference.json"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.2.0/message.json"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"payload":{},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.2.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.2.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/messageTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/messageTrait.json"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"http://asyncapi.com/definitions/2.2.0/correlationId.json":{"$id":"http://asyncapi.com/definitions/2.2.0/correlationId.json","type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"http://asyncapi.com/definitions/2.2.0/messageTrait.json":{"$id":"http://asyncapi.com/definitions/2.2.0/messageTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.2.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.2.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.2.0/components.json":{"$id":"http://asyncapi.com/definitions/2.2.0/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/2.2.0/schemas.json"},"messages":{"$ref":"http://asyncapi.com/definitions/2.2.0/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/SecurityScheme.json"}]}}},"parameters":{"$ref":"http://asyncapi.com/definitions/2.2.0/parameters.json"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/correlationId.json"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/operationTrait.json"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/messageTrait.json"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"}}}},"http://asyncapi.com/definitions/2.2.0/schemas.json":{"$id":"http://asyncapi.com/definitions/2.2.0/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/2.2.0/messages.json":{"$id":"http://asyncapi.com/definitions/2.2.0/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/2.2.0/SecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.2.0/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/X509.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/HTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/oauth2Flows.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/openIdConnect.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/SaslSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.2.0/userPassword.json":{"$id":"http://asyncapi.com/definitions/2.2.0/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/apiKey.json":{"$id":"http://asyncapi.com/definitions/2.2.0/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/X509.json":{"$id":"http://asyncapi.com/definitions/2.2.0/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/symmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.2.0/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/asymmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.2.0/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/HTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.2.0/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.2.0/NonBearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.2.0/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/BearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.2.0/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/APIKeyHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.2.0/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/oauth2Flows.json":{"$id":"http://asyncapi.com/definitions/2.2.0/oauth2Flows.json","type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/oauth2Flow.json"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/oauth2Flow.json"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.2.0/oauth2Flow.json":{"$id":"http://asyncapi.com/definitions/2.2.0/oauth2Flow.json","type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"http://asyncapi.com/definitions/2.2.0/oauth2Scopes.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/oauth2Scopes.json":{"$id":"http://asyncapi.com/definitions/2.2.0/oauth2Scopes.json","type":"object","additionalProperties":{"type":"string"}},"http://asyncapi.com/definitions/2.2.0/openIdConnect.json":{"$id":"http://asyncapi.com/definitions/2.2.0/openIdConnect.json","type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/SaslSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.2.0/SaslSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/SaslPlainSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/SaslScramSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/SaslGssapiSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.2.0/SaslPlainSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.2.0/SaslPlainSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["plain"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/SaslScramSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.2.0/SaslScramSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["scramSha256","scramSha512"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/SaslGssapiSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.2.0/SaslGssapiSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["gssapi"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/parameters.json":{"$id":"http://asyncapi.com/definitions/2.2.0/parameters.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/parameter.json"},"description":"JSON objects describing re-usable channel parameters."}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},8722:e=>{"use strict";e.exports=JSON.parse('{"$id":"http://asyncapi.com/definitions/2.3.0/asyncapi.json","$schema":"http://json-schema.org/draft-07/schema","title":"AsyncAPI 2.3.0 schema.","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["2.3.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"http://asyncapi.com/definitions/2.3.0/info.json"},"servers":{"$ref":"http://asyncapi.com/definitions/2.3.0/servers.json"},"defaultContentType":{"type":"string"},"channels":{"$ref":"http://asyncapi.com/definitions/2.3.0/channels.json"},"components":{"$ref":"http://asyncapi.com/definitions/2.3.0/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.3.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.3.0/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/2.3.0/specificationExtension.json":{"$id":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/2.3.0/info.json":{"$id":"http://asyncapi.com/definitions/2.3.0/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/2.3.0/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/2.3.0/license.json"}}},"http://asyncapi.com/definitions/2.3.0/contact.json":{"$id":"http://asyncapi.com/definitions/2.3.0/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.3.0/license.json":{"$id":"http://asyncapi.com/definitions/2.3.0/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.3.0/servers.json":{"$id":"http://asyncapi.com/definitions/2.3.0/servers.json","description":"An object representing multiple servers.","type":"object","additionalProperties":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/server.json"}]}},"http://asyncapi.com/definitions/2.3.0/Reference.json":{"$id":"http://asyncapi.com/definitions/2.3.0/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.3.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.3.0/ReferenceObject.json":{"$id":"http://asyncapi.com/definitions/2.3.0/ReferenceObject.json","type":"string","format":"uri-reference"},"http://asyncapi.com/definitions/2.3.0/server.json":{"$id":"http://asyncapi.com/definitions/2.3.0/server.json","type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/2.3.0/serverVariables.json"},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.3.0/SecurityRequirement.json"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.3.0/serverVariables.json":{"$id":"http://asyncapi.com/definitions/2.3.0/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/serverVariable.json"}},"http://asyncapi.com/definitions/2.3.0/serverVariable.json":{"$id":"http://asyncapi.com/definitions/2.3.0/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"http://asyncapi.com/definitions/2.3.0/SecurityRequirement.json":{"$id":"http://asyncapi.com/definitions/2.3.0/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"http://asyncapi.com/definitions/2.3.0/bindingsObject.json":{"$id":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json","type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"anypointmq":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{},"ibmmq":{},"solace":{}}},"http://asyncapi.com/definitions/2.3.0/channels.json":{"$id":"http://asyncapi.com/definitions/2.3.0/channels.json","type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/channelItem.json"}},"http://asyncapi.com/definitions/2.3.0/channelItem.json":{"$id":"http://asyncapi.com/definitions/2.3.0/channelItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.3.0/ReferenceObject.json"},"parameters":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/parameter.json"}},"description":{"type":"string","description":"A description of the channel."},"servers":{"type":"array","description":"The names of the servers on which this channel is available. If absent or empty then this channel must be available on all servers.","items":{"type":"string"},"uniqueItems":true},"publish":{"$ref":"http://asyncapi.com/definitions/2.3.0/operation.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/2.3.0/operation.json"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.3.0/parameter.json":{"$id":"http://asyncapi.com/definitions/2.3.0/parameter.json","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"http://asyncapi.com/definitions/2.3.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.3.0/schema.json":{"$id":"http://asyncapi.com/definitions/2.3.0/schema.json","allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"}},"not":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},"default":{}},"propertyNames":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},"contains":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.3.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false}}}]},"http://json-schema.org/draft-07/schema":{"$id":"http://json-schema.org/draft-07/schema","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true},"http://asyncapi.com/definitions/2.3.0/externalDocs.json":{"$id":"http://asyncapi.com/definitions/2.3.0/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.3.0/operation.json":{"$id":"http://asyncapi.com/definitions/2.3.0/operation.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/operationTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/operationTrait.json"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.3.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.3.0/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"},"message":{"$ref":"http://asyncapi.com/definitions/2.3.0/message.json"}}},"http://asyncapi.com/definitions/2.3.0/operationTrait.json":{"$id":"http://asyncapi.com/definitions/2.3.0/operationTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.3.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.3.0/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.3.0/tag.json":{"$id":"http://asyncapi.com/definitions/2.3.0/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.3.0/externalDocs.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.3.0/message.json":{"$id":"http://asyncapi.com/definitions/2.3.0/message.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.3.0/message.json"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"payload":{},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.3.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.3.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/messageTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/messageTrait.json"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"http://asyncapi.com/definitions/2.3.0/correlationId.json":{"$id":"http://asyncapi.com/definitions/2.3.0/correlationId.json","type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"http://asyncapi.com/definitions/2.3.0/messageTrait.json":{"$id":"http://asyncapi.com/definitions/2.3.0/messageTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.3.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.3.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.3.0/components.json":{"$id":"http://asyncapi.com/definitions/2.3.0/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/2.3.0/schemas.json"},"servers":{"$ref":"http://asyncapi.com/definitions/2.3.0/servers.json"},"channels":{"$ref":"http://asyncapi.com/definitions/2.3.0/channels.json"},"messages":{"$ref":"http://asyncapi.com/definitions/2.3.0/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/SecurityScheme.json"}]}}},"parameters":{"$ref":"http://asyncapi.com/definitions/2.3.0/parameters.json"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/correlationId.json"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/operationTrait.json"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/messageTrait.json"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"}}}},"http://asyncapi.com/definitions/2.3.0/schemas.json":{"$id":"http://asyncapi.com/definitions/2.3.0/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/2.3.0/messages.json":{"$id":"http://asyncapi.com/definitions/2.3.0/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/2.3.0/SecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.3.0/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/X509.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/HTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/oauth2Flows.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/openIdConnect.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/SaslSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.3.0/userPassword.json":{"$id":"http://asyncapi.com/definitions/2.3.0/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/apiKey.json":{"$id":"http://asyncapi.com/definitions/2.3.0/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/X509.json":{"$id":"http://asyncapi.com/definitions/2.3.0/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/symmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.3.0/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/asymmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.3.0/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/HTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.3.0/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.3.0/NonBearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.3.0/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/BearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.3.0/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/APIKeyHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.3.0/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/oauth2Flows.json":{"$id":"http://asyncapi.com/definitions/2.3.0/oauth2Flows.json","type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/oauth2Flow.json"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/oauth2Flow.json"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.3.0/oauth2Flow.json":{"$id":"http://asyncapi.com/definitions/2.3.0/oauth2Flow.json","type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"http://asyncapi.com/definitions/2.3.0/oauth2Scopes.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/oauth2Scopes.json":{"$id":"http://asyncapi.com/definitions/2.3.0/oauth2Scopes.json","type":"object","additionalProperties":{"type":"string"}},"http://asyncapi.com/definitions/2.3.0/openIdConnect.json":{"$id":"http://asyncapi.com/definitions/2.3.0/openIdConnect.json","type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/SaslSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.3.0/SaslSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/SaslPlainSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/SaslScramSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/SaslGssapiSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.3.0/SaslPlainSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.3.0/SaslPlainSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["plain"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/SaslScramSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.3.0/SaslScramSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["scramSha256","scramSha512"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/SaslGssapiSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.3.0/SaslGssapiSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["gssapi"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/parameters.json":{"$id":"http://asyncapi.com/definitions/2.3.0/parameters.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/parameter.json"},"description":"JSON objects describing re-usable channel parameters."}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},5771:e=>{"use strict";e.exports=JSON.parse('{"$id":"http://asyncapi.com/definitions/2.4.0/asyncapi.json","$schema":"http://json-schema.org/draft-07/schema","title":"AsyncAPI 2.4.0 schema.","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["2.4.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"http://asyncapi.com/definitions/2.4.0/info.json"},"servers":{"$ref":"http://asyncapi.com/definitions/2.4.0/servers.json"},"defaultContentType":{"type":"string"},"channels":{"$ref":"http://asyncapi.com/definitions/2.4.0/channels.json"},"components":{"$ref":"http://asyncapi.com/definitions/2.4.0/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.4.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.4.0/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/2.4.0/specificationExtension.json":{"$id":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/2.4.0/info.json":{"$id":"http://asyncapi.com/definitions/2.4.0/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/2.4.0/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/2.4.0/license.json"}}},"http://asyncapi.com/definitions/2.4.0/contact.json":{"$id":"http://asyncapi.com/definitions/2.4.0/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.4.0/license.json":{"$id":"http://asyncapi.com/definitions/2.4.0/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.4.0/servers.json":{"$id":"http://asyncapi.com/definitions/2.4.0/servers.json","description":"An object representing multiple servers.","type":"object","additionalProperties":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/server.json"}]}},"http://asyncapi.com/definitions/2.4.0/Reference.json":{"$id":"http://asyncapi.com/definitions/2.4.0/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.4.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.4.0/ReferenceObject.json":{"$id":"http://asyncapi.com/definitions/2.4.0/ReferenceObject.json","type":"string","format":"uri-reference"},"http://asyncapi.com/definitions/2.4.0/server.json":{"$id":"http://asyncapi.com/definitions/2.4.0/server.json","type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/2.4.0/serverVariables.json"},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.4.0/SecurityRequirement.json"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.4.0/serverVariables.json":{"$id":"http://asyncapi.com/definitions/2.4.0/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/serverVariable.json"}},"http://asyncapi.com/definitions/2.4.0/serverVariable.json":{"$id":"http://asyncapi.com/definitions/2.4.0/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"http://asyncapi.com/definitions/2.4.0/SecurityRequirement.json":{"$id":"http://asyncapi.com/definitions/2.4.0/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"http://asyncapi.com/definitions/2.4.0/bindingsObject.json":{"$id":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json","type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"anypointmq":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{},"ibmmq":{},"solace":{}}},"http://asyncapi.com/definitions/2.4.0/channels.json":{"$id":"http://asyncapi.com/definitions/2.4.0/channels.json","type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/channelItem.json"}},"http://asyncapi.com/definitions/2.4.0/channelItem.json":{"$id":"http://asyncapi.com/definitions/2.4.0/channelItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.4.0/ReferenceObject.json"},"parameters":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/parameter.json"}},"description":{"type":"string","description":"A description of the channel."},"servers":{"type":"array","description":"The names of the servers on which this channel is available. If absent or empty then this channel must be available on all servers.","items":{"type":"string"},"uniqueItems":true},"publish":{"$ref":"http://asyncapi.com/definitions/2.4.0/operation.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/2.4.0/operation.json"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.4.0/parameter.json":{"$id":"http://asyncapi.com/definitions/2.4.0/parameter.json","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"http://asyncapi.com/definitions/2.4.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.4.0/schema.json":{"$id":"http://asyncapi.com/definitions/2.4.0/schema.json","allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"}},"not":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},"default":{}},"propertyNames":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},"contains":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.4.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false}}}]},"http://json-schema.org/draft-07/schema":{"$id":"http://json-schema.org/draft-07/schema","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true},"http://asyncapi.com/definitions/2.4.0/externalDocs.json":{"$id":"http://asyncapi.com/definitions/2.4.0/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.4.0/operation.json":{"$id":"http://asyncapi.com/definitions/2.4.0/operation.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/operationTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/operationTrait.json"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.4.0/SecurityRequirement.json"}},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.4.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.4.0/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"},"message":{"$ref":"http://asyncapi.com/definitions/2.4.0/message.json"}}},"http://asyncapi.com/definitions/2.4.0/operationTrait.json":{"$id":"http://asyncapi.com/definitions/2.4.0/operationTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.4.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.4.0/externalDocs.json"},"operationId":{"type":"string"},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.4.0/SecurityRequirement.json"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.4.0/tag.json":{"$id":"http://asyncapi.com/definitions/2.4.0/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.4.0/externalDocs.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.4.0/message.json":{"$id":"http://asyncapi.com/definitions/2.4.0/message.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.4.0/message.json"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"messageId":{"type":"string"},"payload":{},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.4.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.4.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/messageTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/messageTrait.json"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"http://asyncapi.com/definitions/2.4.0/correlationId.json":{"$id":"http://asyncapi.com/definitions/2.4.0/correlationId.json","type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"http://asyncapi.com/definitions/2.4.0/messageTrait.json":{"$id":"http://asyncapi.com/definitions/2.4.0/messageTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"messageId":{"type":"string"},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.4.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.4.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.4.0/components.json":{"$id":"http://asyncapi.com/definitions/2.4.0/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/2.4.0/schemas.json"},"servers":{"$ref":"http://asyncapi.com/definitions/2.4.0/servers.json"},"channels":{"$ref":"http://asyncapi.com/definitions/2.4.0/channels.json"},"serverVariables":{"$ref":"http://asyncapi.com/definitions/2.4.0/serverVariables.json"},"messages":{"$ref":"http://asyncapi.com/definitions/2.4.0/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/SecurityScheme.json"}]}}},"parameters":{"$ref":"http://asyncapi.com/definitions/2.4.0/parameters.json"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/correlationId.json"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/operationTrait.json"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/messageTrait.json"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"}}}},"http://asyncapi.com/definitions/2.4.0/schemas.json":{"$id":"http://asyncapi.com/definitions/2.4.0/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/2.4.0/messages.json":{"$id":"http://asyncapi.com/definitions/2.4.0/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/2.4.0/SecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.4.0/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/X509.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/HTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/oauth2Flows.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/openIdConnect.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/SaslSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.4.0/userPassword.json":{"$id":"http://asyncapi.com/definitions/2.4.0/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/apiKey.json":{"$id":"http://asyncapi.com/definitions/2.4.0/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/X509.json":{"$id":"http://asyncapi.com/definitions/2.4.0/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/symmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.4.0/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/asymmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.4.0/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/HTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.4.0/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.4.0/NonBearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.4.0/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/BearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.4.0/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/APIKeyHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.4.0/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/oauth2Flows.json":{"$id":"http://asyncapi.com/definitions/2.4.0/oauth2Flows.json","type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/oauth2Flow.json"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/oauth2Flow.json"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.4.0/oauth2Flow.json":{"$id":"http://asyncapi.com/definitions/2.4.0/oauth2Flow.json","type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"http://asyncapi.com/definitions/2.4.0/oauth2Scopes.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/oauth2Scopes.json":{"$id":"http://asyncapi.com/definitions/2.4.0/oauth2Scopes.json","type":"object","additionalProperties":{"type":"string"}},"http://asyncapi.com/definitions/2.4.0/openIdConnect.json":{"$id":"http://asyncapi.com/definitions/2.4.0/openIdConnect.json","type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/SaslSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.4.0/SaslSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/SaslPlainSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/SaslScramSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/SaslGssapiSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.4.0/SaslPlainSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.4.0/SaslPlainSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["plain"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/SaslScramSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.4.0/SaslScramSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["scramSha256","scramSha512"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/SaslGssapiSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.4.0/SaslGssapiSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["gssapi"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/parameters.json":{"$id":"http://asyncapi.com/definitions/2.4.0/parameters.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/parameter.json"},"description":"JSON objects describing re-usable channel parameters."}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},7831:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"@stoplight/spectral-core/meta/extensions","$defs":{"Extends":{"$anchor":"extends","oneOf":[{"$id":"ruleset","$ref":"ruleset.schema#","errorMessage":"must be a valid ruleset"},{"type":"array","items":{"anyOf":[{"$ref":"ruleset"},{"type":"array","minItems":2,"additionalItems":false,"items":[{"$ref":"ruleset"},{"type":"string","enum":["off","recommended","all"],"errorMessage":"allowed types are \\"off\\", \\"recommended\\" and \\"all\\""}]}]}}],"errorMessage":"must be a valid ruleset"},"Format":{"$anchor":"format","x-spectral-runtime":"format","errorMessage":"must be a valid format"},"Function":{"$anchor":"function","x-spectral-runtime":"ruleset-function","type":"object","properties":{"function":true},"required":["function"]},"Functions":{"$anchor":"functions","not":{}},"FunctionsDir":{"$anchor":"functionsDir","not":{}}}}')},4051:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"@stoplight/spectral-core/meta/extensions","$defs":{"Extends":{"$anchor":"extends","oneOf":[{"type":"string"},{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"array","minItems":2,"additionalItems":false,"items":[{"type":"string"},{"enum":["all","recommended","off"],"errorMessage":"allowed types are \\"off\\", \\"recommended\\" and \\"all\\""}]}]}}]},"Format":{"$anchor":"format","enum":["oas2","oas3","oas3.0","oas3.1","asyncapi2","json-schema","json-schema-loose","json-schema-draft4","json-schema-draft6","json-schema-draft7","json-schema-draft-2019-09","json-schema-2019-09","json-schema-draft-2020-12","json-schema-2020-12"],"errorMessage":"must be a valid format"},"Functions":{"$anchor":"functions","type":"array","items":{"type":"string"}},"FunctionsDir":{"$anchor":"functionsDir","type":"string"},"Function":{"$anchor":"function","type":"object","properties":{"function":{"type":"string"}},"required":["function"]}}}')},3263:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"@stoplight/spectral-core/meta/rule.schema","$defs":{"Then":{"type":"object","allOf":[{"properties":{"field":{"type":"string"}}},{"$ref":"extensions#function"}]},"Severity":{"$ref":"shared#severity"}},"if":{"type":"object"},"then":{"type":"object","properties":{"description":{"type":"string"},"documentationUrl":{"type":"string","format":"url","errorMessage":"must be a valid URL"},"recommended":{"type":"boolean"},"given":{"$ref":"shared#given"},"resolved":{"type":"boolean"},"severity":{"$ref":"#/$defs/Severity"},"message":{"type":"string"},"tags":{"items":{"type":"string"},"type":"array"},"formats":{"$ref":"shared#formats"},"then":{"if":{"type":"array"},"then":{"type":"array","items":{"$ref":"#/$defs/Then"}},"else":{"$ref":"#/$defs/Then"}},"type":{"enum":["style","validation"],"type":"string","errorMessage":"allowed types are \\"style\\" and \\"validation\\""}},"required":["given","then"],"additionalProperties":false,"errorMessage":{"required":"the rule must have at least \\"given\\" and \\"then\\" properties"}},"else":{"oneOf":[{"$ref":"shared#/$defs/HumanReadableSeverity"},{"type":"boolean"}]}}')},8129:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"@stoplight/spectral-core/meta/ruleset.schema","type":"object","additionalProperties":false,"properties":{"documentationUrl":{"type":"string","format":"url","errorMessage":"must be a valid URL"},"description":{"type":"string"},"rules":{"type":"object","additionalProperties":{"$ref":"rule.schema#"}},"functions":{"$ref":"extensions#functions"},"functionsDir":{"$ref":"extensions#functionsDir"},"formats":{"$ref":"shared#formats"},"extends":{"$ref":"extensions#extends"},"parserOptions":{"type":"object","properties":{"duplicateKeys":{"$ref":"shared#severity"},"incompatibleValues":{"$ref":"shared#severity"}},"additionalProperties":false},"overrides":{"type":"array","minItems":1,"items":{"if":{"type":"object","properties":{"files":{"type":"array","minItems":1,"items":{"type":"string","minLength":1,"pattern":"^[^#]+#"},"errorMessage":"must be an non-empty array of glob patterns"}},"required":["files"]},"then":{"type":"object","properties":{"files":true,"rules":{"type":"object","additionalProperties":{"$ref":"shared#severity"},"errorMessage":{"enum":"must be a valid severity level"}}},"required":["rules"],"additionalProperties":false,"errorMessage":{"required":"must contain rules when JSON Pointers are defined","additionalProperties":"must not override any other property than rules when JSON Pointers are defined"}},"else":{"allOf":[{"type":"object","properties":{"files":{"type":"array","minItems":1,"items":{"type":"string","pattern":"[^#]","minLength":1},"errorMessage":"must be an non-empty array of glob patterns"}},"required":["files"],"errorMessage":{"type":"must be a override, i.e. { \\"files\\": [\\"v2/**/*.json\\"], \\"rules\\": {} }"}},{"type":"object","properties":{"formats":{"$ref":"shared#formats"},"extends":{"$ref":"#/properties/extends"},"rules":{"$ref":"#/properties/rules"},"parserOptions":{"$ref":"#/properties/parserOptions"},"aliases":{"$ref":"#/properties/aliases"}},"anyOf":[{"required":["extends"]},{"required":["rules"]}]}]}},"errorMessage":{"minItems":"must not be empty"}},"aliases":{"type":"object","propertyNames":{"pattern":"^[A-Za-z][A-Za-z0-9_-]*$","errorMessage":{"pattern":"to avoid confusion the name must match /^[A-Za-z][A-Za-z0-9_-]*$/ regular expression","minLength":"the name of an alias must not be empty"}},"additionalProperties":{"if":{"type":"object"},"then":{"type":"object","properties":{"description":{"type":"string"},"targets":{"type":"array","minItems":1,"items":{"type":"object","properties":{"formats":{"$ref":"shared#formats"},"given":{"$ref":"shared#arrayish-given"}},"required":["formats","given"],"errorMessage":"a valid target must contain given and non-empty formats"},"errorMessage":{"minItems":"targets must have at least a single alias definition"}}},"required":["targets"],"errorMessage":{"required":"targets must be present and have at least a single alias definition"}},"else":{"$ref":"shared#arrayish-given"}}}},"anyOf":[{"required":["extends"]},{"required":["rules"]},{"required":["overrides"]}]}')},1128:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"@stoplight/spectral-core/meta/shared","$defs":{"Formats":{"$anchor":"formats","type":"array","items":{"$ref":"extensions#format"},"errorMessage":"must be an array of formats"},"DiagnosticSeverity":{"enum":[-1,0,1,2,3]},"HumanReadableSeverity":{"enum":["error","warn","info","hint","off"]},"Severity":{"$anchor":"severity","oneOf":[{"$ref":"#/$defs/DiagnosticSeverity"},{"$ref":"#/$defs/HumanReadableSeverity"}],"errorMessage":"the value has to be one of: 0, 1, 2, 3 or \\"error\\", \\"warn\\", \\"info\\", \\"hint\\", \\"off\\""},"Given":{"$anchor":"given","if":{"type":"array"},"then":{"$anchor":"arrayish-given","type":"array","items":{"$ref":"path-expression"},"minItems":1,"errorMessage":{"minItems":"must be a non-empty array of expressions"}},"else":{"$ref":"path-expression"}},"PathExpression":{"$id":"path-expression","if":{"type":"string"},"then":{"type":"string","if":{"pattern":"^#"},"then":{"x-spectral-runtime":"alias"},"else":{"pattern":"^\\\\$","errorMessage":"must be a valid JSON Path expression or a reference to the existing Alias optionally paired with a JSON Path expression subset"}},"else":{"not":{},"errorMessage":"must be a valid JSON Path expression or a reference to the existing Alias optionally paired with a JSON Path expression subset"}}}}')},9081:e=>{"use strict";e.exports=JSON.parse('{"$id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-07/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string","format":"uri"},"$schema":{"type":"string","format":"uri"},"title":{"type":"string"},"description":{"type":"string"},"deprecationMessage":{"type":"string","description":"Non-standard: deprecation message for a property, if it is deprecated"},"default":{},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":{}}')},2165:e=>{"use strict";e.exports=JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-04/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string","format":"uri"},"$schema":{"type":"string","format":"uri"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}}')},5610:e=>{"use strict";e.exports=JSON.parse('{"title":"AsyncAPI 2.0.0 schema.","$schema":"http://json-schema.org/draft-07/schema#","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"asyncapi":{"type":"string","enum":["2.0.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"#/definitions/info"},"servers":{"type":"object","additionalProperties":{"$ref":"#/definitions/server"}},"defaultContentType":{"type":"string"},"channels":{"$ref":"#/definitions/channels"},"components":{"$ref":"#/definitions/components"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"definitions":{"Reference":{"type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"ReferenceObject":{"type":"string","format":"uri-reference"},"info":{"type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"#/definitions/contact"},"license":{"$ref":"#/definitions/license"}}},"contact":{"type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"license":{"type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"server":{"type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"#/definitions/serverVariables"},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"serverVariables":{"type":"object","additionalProperties":{"$ref":"#/definitions/serverVariable"}},"serverVariable":{"type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"channels":{"type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"#/definitions/channelItem"}},"components":{"type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemas":{"$ref":"#/definitions/schemas"},"messages":{"$ref":"#/definitions/messages"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/SecurityScheme"}]}}},"parameters":{"$ref":"#/definitions/parameters"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/operationTrait"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/messageTrait"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}}}},"schemas":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"description":"JSON objects describing schemas the API uses."},"messages":{"type":"object","additionalProperties":{"$ref":"#/definitions/message"},"description":"JSON objects describing the messages being consumed and produced by the API."},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"},"description":"JSON objects describing re-usable channel parameters."},"schema":{"allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"not":{"$ref":"#/definitions/schema"},"properties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"propertyNames":{"$ref":"#/definitions/schema"},"contains":{"$ref":"#/definitions/schema"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false}}}]},"externalDocs":{"type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"channelItem":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"}},"description":{"type":"string","description":"A description of the channel."},"publish":{"$ref":"#/definitions/operation"},"subscribe":{"$ref":"#/definitions/operation"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"parameter":{"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"#/definitions/schema"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"operation":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"bindings":{"$ref":"#/definitions/bindingsObject"},"message":{"$ref":"#/definitions/message"}}},"message":{"oneOf":[{"$ref":"#/definitions/Reference"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"#/definitions/message"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"payload":{},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"#/definitions/bindingsObject"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"bindingsObject":{"type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{}}},"correlationId":{"type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"specificationExtension":{"description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"tag":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"operationTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"messageTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"SecurityScheme":{"oneOf":[{"$ref":"#/definitions/userPassword"},{"$ref":"#/definitions/apiKey"},{"$ref":"#/definitions/X509"},{"$ref":"#/definitions/symmetricEncryption"},{"$ref":"#/definitions/asymmetricEncryption"},{"$ref":"#/definitions/HTTPSecurityScheme"},{"$ref":"#/definitions/oauth2Flows"},{"$ref":"#/definitions/openIdConnect"}]},"userPassword":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"apiKey":{"type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"X509":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"symmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"asymmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"HTTPSecurityScheme":{"oneOf":[{"$ref":"#/definitions/NonBearerHTTPSecurityScheme"},{"$ref":"#/definitions/BearerHTTPSecurityScheme"},{"$ref":"#/definitions/APIKeyHTTPSecurityScheme"}]},"NonBearerHTTPSecurityScheme":{"not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"BearerHTTPSecurityScheme":{"type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"APIKeyHTTPSecurityScheme":{"type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Flows":{"type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"oauth2Flow":{"type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"#/definitions/oauth2Scopes"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Scopes":{"type":"object","additionalProperties":{"type":"string"}},"openIdConnect":{"type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SecurityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}}}}')},925:e=>{"use strict";e.exports=JSON.parse('{"title":"AsyncAPI 2.1.0 schema.","$schema":"http://json-schema.org/draft-07/schema#","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"asyncapi":{"type":"string","enum":["2.1.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"#/definitions/info"},"servers":{"type":"object","additionalProperties":{"$ref":"#/definitions/server"}},"defaultContentType":{"type":"string"},"channels":{"$ref":"#/definitions/channels"},"components":{"$ref":"#/definitions/components"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"definitions":{"Reference":{"type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"ReferenceObject":{"type":"string","format":"uri-reference"},"info":{"type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"#/definitions/contact"},"license":{"$ref":"#/definitions/license"}}},"contact":{"type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"license":{"type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"server":{"type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"#/definitions/serverVariables"},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"serverVariables":{"type":"object","additionalProperties":{"$ref":"#/definitions/serverVariable"}},"serverVariable":{"type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"channels":{"type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"#/definitions/channelItem"}},"components":{"type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemas":{"$ref":"#/definitions/schemas"},"messages":{"$ref":"#/definitions/messages"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/SecurityScheme"}]}}},"parameters":{"$ref":"#/definitions/parameters"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/operationTrait"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/messageTrait"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}}}},"schemas":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"description":"JSON objects describing schemas the API uses."},"messages":{"type":"object","additionalProperties":{"$ref":"#/definitions/message"},"description":"JSON objects describing the messages being consumed and produced by the API."},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"},"description":"JSON objects describing re-usable channel parameters."},"schema":{"allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"not":{"$ref":"#/definitions/schema"},"properties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"propertyNames":{"$ref":"#/definitions/schema"},"contains":{"$ref":"#/definitions/schema"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false}}}]},"externalDocs":{"type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"channelItem":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"}},"description":{"type":"string","description":"A description of the channel."},"publish":{"$ref":"#/definitions/operation"},"subscribe":{"$ref":"#/definitions/operation"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"parameter":{"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"#/definitions/schema"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"operation":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"bindings":{"$ref":"#/definitions/bindingsObject"},"message":{"$ref":"#/definitions/message"}}},"message":{"oneOf":[{"$ref":"#/definitions/Reference"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"#/definitions/message"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"payload":{},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"#/definitions/bindingsObject"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"bindingsObject":{"type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{},"ibmmq":{}}},"correlationId":{"type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"specificationExtension":{"description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"tag":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"operationTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"messageTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"SecurityScheme":{"oneOf":[{"$ref":"#/definitions/userPassword"},{"$ref":"#/definitions/apiKey"},{"$ref":"#/definitions/X509"},{"$ref":"#/definitions/symmetricEncryption"},{"$ref":"#/definitions/asymmetricEncryption"},{"$ref":"#/definitions/HTTPSecurityScheme"},{"$ref":"#/definitions/oauth2Flows"},{"$ref":"#/definitions/openIdConnect"},{"$ref":"#/definitions/SaslSecurityScheme"}]},"userPassword":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"apiKey":{"type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"X509":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"symmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"asymmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"HTTPSecurityScheme":{"oneOf":[{"$ref":"#/definitions/NonBearerHTTPSecurityScheme"},{"$ref":"#/definitions/BearerHTTPSecurityScheme"},{"$ref":"#/definitions/APIKeyHTTPSecurityScheme"}]},"NonBearerHTTPSecurityScheme":{"not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"BearerHTTPSecurityScheme":{"type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"APIKeyHTTPSecurityScheme":{"type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslSecurityScheme":{"oneOf":[{"$ref":"#/definitions/SaslPlainSecurityScheme"},{"$ref":"#/definitions/SaslScramSecurityScheme"},{"$ref":"#/definitions/SaslGssapiSecurityScheme"}]},"SaslPlainSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["plain"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslScramSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["scramSha256","scramSha512"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslGssapiSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["gssapi"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Flows":{"type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"oauth2Flow":{"type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"#/definitions/oauth2Scopes"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Scopes":{"type":"object","additionalProperties":{"type":"string"}},"openIdConnect":{"type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SecurityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}}}}')},7674:e=>{"use strict";e.exports=JSON.parse('{"title":"AsyncAPI 2.2.0 schema.","$schema":"http://json-schema.org/draft-07/schema#","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"asyncapi":{"type":"string","enum":["2.2.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"#/definitions/info"},"servers":{"type":"object","additionalProperties":{"$ref":"#/definitions/server"}},"defaultContentType":{"type":"string"},"channels":{"$ref":"#/definitions/channels"},"components":{"$ref":"#/definitions/components"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"definitions":{"Reference":{"type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"ReferenceObject":{"type":"string","format":"uri-reference"},"info":{"type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"#/definitions/contact"},"license":{"$ref":"#/definitions/license"}}},"contact":{"type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"license":{"type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"server":{"type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"#/definitions/serverVariables"},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"serverVariables":{"type":"object","additionalProperties":{"$ref":"#/definitions/serverVariable"}},"serverVariable":{"type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"channels":{"type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"#/definitions/channelItem"}},"components":{"type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemas":{"$ref":"#/definitions/schemas"},"messages":{"$ref":"#/definitions/messages"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/SecurityScheme"}]}}},"parameters":{"$ref":"#/definitions/parameters"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/operationTrait"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/messageTrait"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}}}},"schemas":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"description":"JSON objects describing schemas the API uses."},"messages":{"type":"object","additionalProperties":{"$ref":"#/definitions/message"},"description":"JSON objects describing the messages being consumed and produced by the API."},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"},"description":"JSON objects describing re-usable channel parameters."},"schema":{"allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"not":{"$ref":"#/definitions/schema"},"properties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"propertyNames":{"$ref":"#/definitions/schema"},"contains":{"$ref":"#/definitions/schema"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false}}}]},"externalDocs":{"type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"channelItem":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"}},"description":{"type":"string","description":"A description of the channel."},"servers":{"type":"array","description":"The names of the servers on which this channel is available. If absent or empty then this channel must be available on all servers.","items":{"type":"string"},"uniqueItems":true},"publish":{"$ref":"#/definitions/operation"},"subscribe":{"$ref":"#/definitions/operation"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"parameter":{"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"#/definitions/schema"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"operation":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"bindings":{"$ref":"#/definitions/bindingsObject"},"message":{"$ref":"#/definitions/message"}}},"message":{"oneOf":[{"$ref":"#/definitions/Reference"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"#/definitions/message"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"payload":{},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"#/definitions/bindingsObject"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"bindingsObject":{"type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"anypointmq":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{},"ibmmq":{}}},"correlationId":{"type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"specificationExtension":{"description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"tag":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"operationTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"messageTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"SecurityScheme":{"oneOf":[{"$ref":"#/definitions/userPassword"},{"$ref":"#/definitions/apiKey"},{"$ref":"#/definitions/X509"},{"$ref":"#/definitions/symmetricEncryption"},{"$ref":"#/definitions/asymmetricEncryption"},{"$ref":"#/definitions/HTTPSecurityScheme"},{"$ref":"#/definitions/oauth2Flows"},{"$ref":"#/definitions/openIdConnect"},{"$ref":"#/definitions/SaslSecurityScheme"}]},"userPassword":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"apiKey":{"type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"X509":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"symmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"asymmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"HTTPSecurityScheme":{"oneOf":[{"$ref":"#/definitions/NonBearerHTTPSecurityScheme"},{"$ref":"#/definitions/BearerHTTPSecurityScheme"},{"$ref":"#/definitions/APIKeyHTTPSecurityScheme"}]},"NonBearerHTTPSecurityScheme":{"not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"BearerHTTPSecurityScheme":{"type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"APIKeyHTTPSecurityScheme":{"type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslSecurityScheme":{"oneOf":[{"$ref":"#/definitions/SaslPlainSecurityScheme"},{"$ref":"#/definitions/SaslScramSecurityScheme"},{"$ref":"#/definitions/SaslGssapiSecurityScheme"}]},"SaslPlainSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["plain"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslScramSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["scramSha256","scramSha512"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslGssapiSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["gssapi"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Flows":{"type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"oauth2Flow":{"type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"#/definitions/oauth2Scopes"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Scopes":{"type":"object","additionalProperties":{"type":"string"}},"openIdConnect":{"type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SecurityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}}}}')},8198:e=>{"use strict";e.exports=JSON.parse('{"title":"AsyncAPI 2.3.0 schema.","$schema":"http://json-schema.org/draft-07/schema#","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"asyncapi":{"type":"string","enum":["2.3.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"#/definitions/info"},"servers":{"$ref":"#/definitions/servers"},"defaultContentType":{"type":"string"},"channels":{"$ref":"#/definitions/channels"},"components":{"$ref":"#/definitions/components"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"definitions":{"Reference":{"type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"ReferenceObject":{"type":"string","format":"uri-reference"},"info":{"type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"#/definitions/contact"},"license":{"$ref":"#/definitions/license"}}},"contact":{"type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"license":{"type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"server":{"type":"object","description":"An object representing a Server.","anyOf":[{"required":["url","protocol"]},{"required":["$ref"]}],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"},"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"#/definitions/serverVariables"},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"servers":{"type":"object","additionalProperties":{"$ref":"#/definitions/server"}},"serverVariables":{"type":"object","additionalProperties":{"$ref":"#/definitions/serverVariable"}},"serverVariable":{"type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"channels":{"type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"#/definitions/channelItem"}},"components":{"type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemas":{"$ref":"#/definitions/schemas"},"servers":{"$ref":"#/definitions/servers"},"channels":{"$ref":"#/definitions/channels"},"messages":{"$ref":"#/definitions/messages"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/SecurityScheme"}]}}},"parameters":{"$ref":"#/definitions/parameters"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/operationTrait"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/messageTrait"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}}}},"schemas":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"description":"JSON objects describing schemas the API uses."},"messages":{"type":"object","additionalProperties":{"$ref":"#/definitions/message"},"description":"JSON objects describing the messages being consumed and produced by the API."},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"},"description":"JSON objects describing re-usable channel parameters."},"schema":{"allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"not":{"$ref":"#/definitions/schema"},"properties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"propertyNames":{"$ref":"#/definitions/schema"},"contains":{"$ref":"#/definitions/schema"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false}}}]},"externalDocs":{"type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"channelItem":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"}},"description":{"type":"string","description":"A description of the channel."},"servers":{"type":"array","description":"The names of the servers on which this channel is available. If absent or empty then this channel must be available on all servers.","items":{"type":"string"},"uniqueItems":true},"publish":{"$ref":"#/definitions/operation"},"subscribe":{"$ref":"#/definitions/operation"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"parameter":{"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"#/definitions/schema"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"operation":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"bindings":{"$ref":"#/definitions/bindingsObject"},"message":{"$ref":"#/definitions/message"}}},"message":{"oneOf":[{"$ref":"#/definitions/Reference"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"#/definitions/message"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"payload":{},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"#/definitions/bindingsObject"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"bindingsObject":{"type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"anypointmq":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{},"ibmmq":{},"solace":{}}},"correlationId":{"type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"specificationExtension":{"description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"tag":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"operationTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"messageTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"SecurityScheme":{"oneOf":[{"$ref":"#/definitions/userPassword"},{"$ref":"#/definitions/apiKey"},{"$ref":"#/definitions/X509"},{"$ref":"#/definitions/symmetricEncryption"},{"$ref":"#/definitions/asymmetricEncryption"},{"$ref":"#/definitions/HTTPSecurityScheme"},{"$ref":"#/definitions/oauth2Flows"},{"$ref":"#/definitions/openIdConnect"},{"$ref":"#/definitions/SaslSecurityScheme"}]},"userPassword":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"apiKey":{"type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"X509":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"symmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"asymmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"HTTPSecurityScheme":{"oneOf":[{"$ref":"#/definitions/NonBearerHTTPSecurityScheme"},{"$ref":"#/definitions/BearerHTTPSecurityScheme"},{"$ref":"#/definitions/APIKeyHTTPSecurityScheme"}]},"NonBearerHTTPSecurityScheme":{"not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"BearerHTTPSecurityScheme":{"type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"APIKeyHTTPSecurityScheme":{"type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslSecurityScheme":{"oneOf":[{"$ref":"#/definitions/SaslPlainSecurityScheme"},{"$ref":"#/definitions/SaslScramSecurityScheme"},{"$ref":"#/definitions/SaslGssapiSecurityScheme"}]},"SaslPlainSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["plain"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslScramSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["scramSha256","scramSha512"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslGssapiSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["gssapi"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Flows":{"type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"oauth2Flow":{"type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"#/definitions/oauth2Scopes"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Scopes":{"type":"object","additionalProperties":{"type":"string"}},"openIdConnect":{"type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SecurityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}}}}')},7474:e=>{"use strict";e.exports=JSON.parse('{"title":"AsyncAPI 2.4.0 schema.","$schema":"http://json-schema.org/draft-07/schema#","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"asyncapi":{"type":"string","enum":["2.4.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"#/definitions/info"},"servers":{"$ref":"#/definitions/servers"},"defaultContentType":{"type":"string"},"channels":{"$ref":"#/definitions/channels"},"components":{"$ref":"#/definitions/components"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"definitions":{"Reference":{"type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"ReferenceObject":{"type":"string","format":"uri-reference"},"info":{"type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"#/definitions/contact"},"license":{"$ref":"#/definitions/license"}}},"contact":{"type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"license":{"type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"server":{"type":"object","description":"An object representing a Server.","anyOf":[{"required":["url","protocol"]},{"required":["$ref"]}],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"},"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"#/definitions/serverVariables"},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"servers":{"type":"object","additionalProperties":{"$ref":"#/definitions/server"}},"serverVariables":{"type":"object","additionalProperties":{"$ref":"#/definitions/serverVariable"}},"serverVariable":{"type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"channels":{"type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"#/definitions/channelItem"}},"components":{"type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemas":{"$ref":"#/definitions/schemas"},"servers":{"$ref":"#/definitions/servers"},"serverVariables":{"$ref":"#/definitions/serverVariables"},"channels":{"$ref":"#/definitions/channels"},"messages":{"$ref":"#/definitions/messages"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/SecurityScheme"}]}}},"parameters":{"$ref":"#/definitions/parameters"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/operationTrait"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/messageTrait"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}}}},"schemas":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"description":"JSON objects describing schemas the API uses."},"messages":{"type":"object","additionalProperties":{"$ref":"#/definitions/message"},"description":"JSON objects describing the messages being consumed and produced by the API."},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"},"description":"JSON objects describing re-usable channel parameters."},"schema":{"allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"not":{"$ref":"#/definitions/schema"},"properties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"propertyNames":{"$ref":"#/definitions/schema"},"contains":{"$ref":"#/definitions/schema"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false}}}]},"externalDocs":{"type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"channelItem":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"}},"description":{"type":"string","description":"A description of the channel."},"servers":{"type":"array","description":"The names of the servers on which this channel is available. If absent or empty then this channel must be available on all servers.","items":{"type":"string"},"uniqueItems":true},"publish":{"$ref":"#/definitions/operation"},"subscribe":{"$ref":"#/definitions/operation"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"parameter":{"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"#/definitions/schema"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"operation":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"bindings":{"$ref":"#/definitions/bindingsObject"},"message":{"$ref":"#/definitions/message"}}},"message":{"oneOf":[{"$ref":"#/definitions/Reference"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"#/definitions/message"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"messageId":{"type":"string"},"payload":{},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"#/definitions/bindingsObject"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"bindingsObject":{"type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"anypointmq":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{},"ibmmq":{},"solace":{}}},"correlationId":{"type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"specificationExtension":{"description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"tag":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"operationTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"messageTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"messageId":{"type":"string"},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"SecurityScheme":{"oneOf":[{"$ref":"#/definitions/userPassword"},{"$ref":"#/definitions/apiKey"},{"$ref":"#/definitions/X509"},{"$ref":"#/definitions/symmetricEncryption"},{"$ref":"#/definitions/asymmetricEncryption"},{"$ref":"#/definitions/HTTPSecurityScheme"},{"$ref":"#/definitions/oauth2Flows"},{"$ref":"#/definitions/openIdConnect"},{"$ref":"#/definitions/SaslSecurityScheme"}]},"userPassword":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"apiKey":{"type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"X509":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"symmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"asymmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"HTTPSecurityScheme":{"oneOf":[{"$ref":"#/definitions/NonBearerHTTPSecurityScheme"},{"$ref":"#/definitions/BearerHTTPSecurityScheme"},{"$ref":"#/definitions/APIKeyHTTPSecurityScheme"}]},"NonBearerHTTPSecurityScheme":{"not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"BearerHTTPSecurityScheme":{"type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"APIKeyHTTPSecurityScheme":{"type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslSecurityScheme":{"oneOf":[{"$ref":"#/definitions/SaslPlainSecurityScheme"},{"$ref":"#/definitions/SaslScramSecurityScheme"},{"$ref":"#/definitions/SaslGssapiSecurityScheme"}]},"SaslPlainSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["plain"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslScramSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["scramSha256","scramSha512"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslGssapiSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["gssapi"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Flows":{"type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"oauth2Flow":{"type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"#/definitions/oauth2Scopes"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Scopes":{"type":"object","additionalProperties":{"type":"string"}},"openIdConnect":{"type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SecurityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}}}}')},4775:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},8161:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/applicator","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/applicator":true},"$recursiveAnchor":true,"title":"Applicator vocabulary meta-schema","type":["object","boolean"],"properties":{"additionalItems":{"$recursiveRef":"#"},"unevaluatedItems":{"$recursiveRef":"#"},"items":{"anyOf":[{"$recursiveRef":"#"},{"$ref":"#/$defs/schemaArray"}]},"contains":{"$recursiveRef":"#"},"additionalProperties":{"$recursiveRef":"#"},"unevaluatedProperties":{"$recursiveRef":"#"},"properties":{"type":"object","additionalProperties":{"$recursiveRef":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$recursiveRef":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependentSchemas":{"type":"object","additionalProperties":{"$recursiveRef":"#"}},"propertyNames":{"$recursiveRef":"#"},"if":{"$recursiveRef":"#"},"then":{"$recursiveRef":"#"},"else":{"$recursiveRef":"#"},"allOf":{"$ref":"#/$defs/schemaArray"},"anyOf":{"$ref":"#/$defs/schemaArray"},"oneOf":{"$ref":"#/$defs/schemaArray"},"not":{"$recursiveRef":"#"}},"$defs":{"schemaArray":{"type":"array","minItems":1,"items":{"$recursiveRef":"#"}}}}')},6422:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/content","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/content":true},"$recursiveAnchor":true,"title":"Content vocabulary meta-schema","type":["object","boolean"],"properties":{"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"contentSchema":{"$recursiveRef":"#"}}}')},4052:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/core","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/core":true},"$recursiveAnchor":true,"title":"Core vocabulary meta-schema","type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference","$comment":"Non-empty fragments not allowed.","pattern":"^[^#]*#?$"},"$schema":{"type":"string","format":"uri"},"$anchor":{"type":"string","pattern":"^[A-Za-z][-A-Za-z0-9.:_]*$"},"$ref":{"type":"string","format":"uri-reference"},"$recursiveRef":{"type":"string","format":"uri-reference"},"$recursiveAnchor":{"type":"boolean","default":false},"$vocabulary":{"type":"object","propertyNames":{"type":"string","format":"uri"},"additionalProperties":{"type":"boolean"}},"$comment":{"type":"string"},"$defs":{"type":"object","additionalProperties":{"$recursiveRef":"#"},"default":{}}}}')},877:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/format","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/format":true},"$recursiveAnchor":true,"title":"Format vocabulary meta-schema","type":["object","boolean"],"properties":{"format":{"type":"string"}}}')},5032:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/meta-data","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/meta-data":true},"$recursiveAnchor":true,"title":"Meta-data vocabulary meta-schema","type":["object","boolean"],"properties":{"title":{"type":"string"},"description":{"type":"string"},"default":true,"deprecated":{"type":"boolean","default":false},"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true}}}')},2374:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/validation","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/validation":true},"$recursiveAnchor":true,"title":"Validation vocabulary meta-schema","type":["object","boolean"],"properties":{"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/$defs/nonNegativeInteger"},"minLength":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"maxItems":{"$ref":"#/$defs/nonNegativeInteger"},"minItems":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxContains":{"$ref":"#/$defs/nonNegativeInteger"},"minContains":{"$ref":"#/$defs/nonNegativeInteger","default":1},"maxProperties":{"$ref":"#/$defs/nonNegativeInteger"},"minProperties":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"required":{"$ref":"#/$defs/stringArray"},"dependentRequired":{"type":"object","additionalProperties":{"$ref":"#/$defs/stringArray"}},"const":true,"enum":{"type":"array","items":true},"type":{"anyOf":[{"$ref":"#/$defs/simpleTypes"},{"type":"array","items":{"$ref":"#/$defs/simpleTypes"},"minItems":1,"uniqueItems":true}]}},"$defs":{"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"$ref":"#/$defs/nonNegativeInteger","default":0},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}}}')},3329:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/schema","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/core":true,"https://json-schema.org/draft/2019-09/vocab/applicator":true,"https://json-schema.org/draft/2019-09/vocab/validation":true,"https://json-schema.org/draft/2019-09/vocab/meta-data":true,"https://json-schema.org/draft/2019-09/vocab/format":false,"https://json-schema.org/draft/2019-09/vocab/content":true},"$recursiveAnchor":true,"title":"Core and Validation specifications meta-schema","allOf":[{"$ref":"meta/core"},{"$ref":"meta/applicator"},{"$ref":"meta/validation"},{"$ref":"meta/meta-data"},{"$ref":"meta/format"},{"$ref":"meta/content"}],"type":["object","boolean"],"properties":{"definitions":{"$comment":"While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.","type":"object","additionalProperties":{"$recursiveRef":"#"},"default":{}},"dependencies":{"$comment":"\\"dependencies\\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \\"dependentSchemas\\" and \\"dependentRequired\\"","type":"object","additionalProperties":{"anyOf":[{"$recursiveRef":"#"},{"$ref":"meta/validation#/$defs/stringArray"}]}}}}')},996:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/applicator","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/applicator":true},"$dynamicAnchor":"meta","title":"Applicator vocabulary meta-schema","type":["object","boolean"],"properties":{"prefixItems":{"$ref":"#/$defs/schemaArray"},"items":{"$dynamicRef":"#meta"},"contains":{"$dynamicRef":"#meta"},"additionalProperties":{"$dynamicRef":"#meta"},"properties":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"},"propertyNames":{"format":"regex"},"default":{}},"dependentSchemas":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"},"default":{}},"propertyNames":{"$dynamicRef":"#meta"},"if":{"$dynamicRef":"#meta"},"then":{"$dynamicRef":"#meta"},"else":{"$dynamicRef":"#meta"},"allOf":{"$ref":"#/$defs/schemaArray"},"anyOf":{"$ref":"#/$defs/schemaArray"},"oneOf":{"$ref":"#/$defs/schemaArray"},"not":{"$dynamicRef":"#meta"}},"$defs":{"schemaArray":{"type":"array","minItems":1,"items":{"$dynamicRef":"#meta"}}}}')},6795:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/content","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/content":true},"$dynamicAnchor":"meta","title":"Content vocabulary meta-schema","type":["object","boolean"],"properties":{"contentEncoding":{"type":"string"},"contentMediaType":{"type":"string"},"contentSchema":{"$dynamicRef":"#meta"}}}')},235:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/core","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/core":true},"$dynamicAnchor":"meta","title":"Core vocabulary meta-schema","type":["object","boolean"],"properties":{"$id":{"$ref":"#/$defs/uriReferenceString","$comment":"Non-empty fragments not allowed.","pattern":"^[^#]*#?$"},"$schema":{"$ref":"#/$defs/uriString"},"$ref":{"$ref":"#/$defs/uriReferenceString"},"$anchor":{"$ref":"#/$defs/anchorString"},"$dynamicRef":{"$ref":"#/$defs/uriReferenceString"},"$dynamicAnchor":{"$ref":"#/$defs/anchorString"},"$vocabulary":{"type":"object","propertyNames":{"$ref":"#/$defs/uriString"},"additionalProperties":{"type":"boolean"}},"$comment":{"type":"string"},"$defs":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"}}},"$defs":{"anchorString":{"type":"string","pattern":"^[A-Za-z_][-A-Za-z0-9._]*$"},"uriString":{"type":"string","format":"uri"},"uriReferenceString":{"type":"string","format":"uri-reference"}}}')},2567:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/format-annotation","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/format-annotation":true},"$dynamicAnchor":"meta","title":"Format vocabulary meta-schema for annotation results","type":["object","boolean"],"properties":{"format":{"type":"string"}}}')},1233:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/meta-data","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/meta-data":true},"$dynamicAnchor":"meta","title":"Meta-data vocabulary meta-schema","type":["object","boolean"],"properties":{"title":{"type":"string"},"description":{"type":"string"},"default":true,"deprecated":{"type":"boolean","default":false},"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true}}}')},5568:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/unevaluated","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/unevaluated":true},"$dynamicAnchor":"meta","title":"Unevaluated applicator vocabulary meta-schema","type":["object","boolean"],"properties":{"unevaluatedItems":{"$dynamicRef":"#meta"},"unevaluatedProperties":{"$dynamicRef":"#meta"}}}')},1968:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/validation","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/validation":true},"$dynamicAnchor":"meta","title":"Validation vocabulary meta-schema","type":["object","boolean"],"properties":{"type":{"anyOf":[{"$ref":"#/$defs/simpleTypes"},{"type":"array","items":{"$ref":"#/$defs/simpleTypes"},"minItems":1,"uniqueItems":true}]},"const":true,"enum":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/$defs/nonNegativeInteger"},"minLength":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"maxItems":{"$ref":"#/$defs/nonNegativeInteger"},"minItems":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxContains":{"$ref":"#/$defs/nonNegativeInteger"},"minContains":{"$ref":"#/$defs/nonNegativeInteger","default":1},"maxProperties":{"$ref":"#/$defs/nonNegativeInteger"},"minProperties":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"required":{"$ref":"#/$defs/stringArray"},"dependentRequired":{"type":"object","additionalProperties":{"$ref":"#/$defs/stringArray"}}},"$defs":{"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"$ref":"#/$defs/nonNegativeInteger","default":0},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}}}')},2577:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/schema","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/core":true,"https://json-schema.org/draft/2020-12/vocab/applicator":true,"https://json-schema.org/draft/2020-12/vocab/unevaluated":true,"https://json-schema.org/draft/2020-12/vocab/validation":true,"https://json-schema.org/draft/2020-12/vocab/meta-data":true,"https://json-schema.org/draft/2020-12/vocab/format-annotation":true,"https://json-schema.org/draft/2020-12/vocab/content":true},"$dynamicAnchor":"meta","title":"Core and Validation specifications meta-schema","allOf":[{"$ref":"meta/core"},{"$ref":"meta/applicator"},{"$ref":"meta/unevaluated"},{"$ref":"meta/validation"},{"$ref":"meta/meta-data"},{"$ref":"meta/format-annotation"},{"$ref":"meta/content"}],"type":["object","boolean"],"$comment":"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.","properties":{"definitions":{"$comment":"\\"definitions\\" has been replaced by \\"$defs\\".","type":"object","additionalProperties":{"$dynamicRef":"#meta"},"deprecated":true,"default":{}},"dependencies":{"$comment":"\\"dependencies\\" has been split and replaced by \\"dependentSchemas\\" and \\"dependentRequired\\" in order to serve their differing semantics.","type":"object","additionalProperties":{"anyOf":[{"$dynamicRef":"#meta"},{"$ref":"meta/validation#/$defs/stringArray"}]},"deprecated":true,"default":{}},"$recursiveAnchor":{"$comment":"\\"$recursiveAnchor\\" has been replaced by \\"$dynamicAnchor\\".","$ref":"meta/core#/$defs/anchorString","deprecated":true},"$recursiveRef":{"$comment":"\\"$recursiveRef\\" has been replaced by \\"$dynamicRef\\".","$ref":"meta/core#/$defs/uriReferenceString","deprecated":true}}}')},18:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-06/schema#","$id":"http://json-schema.org/draft-06/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"examples":{"type":"array","items":{}},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":{},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":{}}')},98:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.d(n,{default:()=>Pt});class e{constructor(e,t={}){this._json=e,this._meta=t}json(e){return void 0===e||null===this._json||void 0===this._json?this._json:this._json[e]}meta(e){return void 0===e?this._meta:this._meta?this._meta[e]:void 0}jsonPath(e){return"string"!=typeof e?this._meta.pointer:`${this._meta.pointer}/${e}`}createModel(e,t,r){return new e(t,Object.assign(Object.assign({},r),{asyncapi:this._meta.asyncapi}))}}class t extends Array{constructor(e,t={}){super(...e),this.collections=e,this._meta=t}has(e){return void 0!==this.get(e)}all(){return this.collections}isEmpty(){return 0===this.collections.length}filterBy(e){return this.collections.filter(e)}meta(e){return void 0===e?this._meta:this._meta?this._meta[String(e)]:void 0}}class i extends t{get(e){return e=e.startsWith("x-")?e:`x-${e}`,this.collections.find((t=>t.id()===e))}}class o extends e{id(){return this._meta.id}version(){return"to implement"}value(){return this._json}}function s(e,t,r,n){return new e(t,Object.assign(Object.assign({},r),{asyncapi:r.asyncapi||(null==n?void 0:n.meta().asyncapi)}))}var a=r(1005),c=r.n(a);const p="x-parser-spec-parsed",u="x-parser-message-name",f="x-parser-schema-id",l=/^x-[\w\d.\-_]+$/,d=Object.keys(c()).filter((e=>!["1.0.0","1.1.0","1.2.0","2.0.0-rc1","2.0.0-rc2"].includes(e)));d[d.length-1];class h extends t{get(e){return this.collections.find((t=>t.protocol()===e))}extensions(){const e=[];return Object.entries(this._meta.originalData||{}).forEach((([t,r])=>{l.test(t)&&e.push(s(o,r,{id:t,pointer:`${this._meta.pointer}/${t}`,asyncapi:this._meta.asyncapi}))})),new i(e)}}class m extends e{protocol(){return this._meta.protocol}version(){return this._json.bindingVersion||"latest"}value(){const e=Object.assign({},this._json);return delete e.bindingVersion,e}extensions(){return _(this)}}class y extends e{url(){return this._json.url}hasDescription(){return j(this)}description(){return $(this)}extensions(){return _(this)}}class g extends t{get(e){return this.collections.find((t=>t.name()===e))}}class v extends e{name(){return this._json.name}hasDescription(){return j(this)}description(){return $(this)}extensions(){return _(this)}hasExternalDocs(){return x(this)}externalDocs(){return P(this)}}function b(e){const t=e.json("bindings")||{};return new h(Object.entries(t||{}).map((([t,r])=>s(m,r,{protocol:t,pointer:e.jsonPath(`bindings/${t}`)},e))),{originalData:t,asyncapi:e.meta("asyncapi"),pointer:e.jsonPath("bindings")})}function j(e){return Boolean($(e))}function $(e){return e.json("description")}function _(e){const t=[];return Object.entries(e.json()).forEach((([r,n])=>{l.test(r)&&t.push(s(o,n,{id:r,pointer:e.jsonPath(r)},e))})),new i(t)}function x(e){return Object.keys(e.json("externalDocs")||{}).length>0}function P(e){if(x(e))return new y(e.json("externalDocs"))}function w(e){return new g((e.json("tags")||[]).map(((t,r)=>s(v,t,{pointer:e.jsonPath(`tags/${r}`)},e))))}class S extends e{hasName(){return!!this._json.name}name(){return this._json.name}hasUrl(){return!!this._json.url}url(){return this._json.url}hasEmail(){return!!this._json.email}email(){return this._json.email}extensions(){return _(this)}}class O extends e{name(){return this._json.name}hasUrl(){return!!this._json.url}url(){return this._json.url}extensions(){return _(this)}}class E extends e{title(){return this._json.title}version(){return this._json.version}hasId(){return!!this._meta.asyncapi.parsed.id}id(){return this._meta.asyncapi.parsed.id}hasDescription(){return j(this)}description(){return $(this)}hasTermsOfService(){return!!this._json.termsOfService}termsOfService(){return this._json.termsOfService}hasContact(){return Object.keys(this._json.contact||{}).length>0}contact(){const e=this._json.contact;return e&&this.createModel(S,e,{pointer:"/info/contact"})}hasLicense(){return Object.keys(this._json.license||{}).length>0}license(){const e=this._json.license;return e&&this.createModel(O,e,{pointer:"/info/license"})}hasExternalDocs(){return Object.keys(this._meta.asyncapi.parsed.externalDocs||{}).length>0}externalDocs(){if(this.hasExternalDocs())return this.createModel(y,this._meta.asyncapi.parsed.externalDocs,{pointer:"/externalDocs"})}tags(){const e=this._meta.asyncapi.parsed.tags||[];return new g(e.map(((e,t)=>this.createModel(v,e,{pointer:`/tags/${t}`}))))}extensions(){return _(this)}}class A extends t{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.operations().filterBySend().length>0))}filterByReceive(){return this.filterBy((e=>e.operations().filterByReceive().length>0))}}class I extends t{get(e){return this.collections.find((t=>t.id()===e))}}var T=r(4418);function k(e,t){return{source:e,parsed:t,semver:R(t.asyncapi)}}function R(e){const[t,r,n]=e.split("."),[i,o]=n.split("-rc");return{version:e,major:Number(t),minor:Number(r),patch:Number(i),rc:o&&Number(o)}}function D(e,t,r){e=e.startsWith("x-")?e:`x-${e}`,r.json()[e]=t}function C(e,t){if(!F(t))return t;const r=F(e)?Object.assign({},e):{};return Object.keys(t).forEach((e=>{const n=t[e];null===n?delete r[e]:r[e]=C(r[e],n)})),r}function F(e){return Boolean(e)&&"object"==typeof e&&!1===Array.isArray(e)}function N(e){return F(e)&&"$ref"in e&&"string"==typeof e.$ref}function M(e){return e.replace(/[~/]{1}/g,(e=>{switch(e){case"/":return"~1";case"~":return"~0"}return e}))}function q(e){return e.includes("~")?e.replace(/~[01]/g,(e=>{switch(e){case"~1":return"/";case"~0":return"~"}return e})):e}function U(e,t){let r=0;const n=t.length;for(;"object"==typeof e&&e&&rthis.createModel(z,e,{pointer:`${this._meta.pointer}/allOf/${t}`,parent:this})))}anyOf(){if("boolean"!=typeof this._json&&Array.isArray(this._json.anyOf))return this._json.anyOf.map(((e,t)=>this.createModel(z,e,{pointer:`${this._meta.pointer}/anyOf/${t}`,parent:this})))}const(){if("boolean"!=typeof this._json)return this._json.const}contains(){if("boolean"!=typeof this._json&&"object"==typeof this._json.contains)return this.createModel(z,this._json.contains,{pointer:`${this._meta.pointer}/contains`,parent:this})}contentEncoding(){if("boolean"!=typeof this._json)return this._json.contentEncoding}contentMediaType(){if("boolean"!=typeof this._json)return this._json.contentMediaType}default(){if("boolean"!=typeof this._json)return this._json.default}definitions(){if("boolean"!=typeof this._json&&"object"==typeof this._json.definitions)return Object.entries(this._json.definitions).reduce(((e,[t,r])=>(e[t]=this.createModel(z,r,{pointer:`${this._meta.pointer}/definitions/${t}`,parent:this}),e)),{})}description(){if("boolean"!=typeof this._json)return this._json.description}dependencies(){if("boolean"!=typeof this._json&&"object"==typeof this._json.dependencies)return Object.entries(this._json.dependencies).reduce(((e,[t,r])=>(e[t]=Array.isArray(r)?r:this.createModel(z,r,{pointer:`${this._meta.pointer}/dependencies/${t}`,parent:this}),e)),{})}deprecated(){return"boolean"!=typeof this._json&&(this._json.deprecated||!1)}discriminator(){if("boolean"!=typeof this._json)return this._json.discriminator}else(){if("boolean"!=typeof this._json&&"object"==typeof this._json.else)return this.createModel(z,this._json.else,{pointer:`${this._meta.pointer}/else`,parent:this})}enum(){if("boolean"!=typeof this._json)return this._json.enum}examples(){if("boolean"!=typeof this._json)return this._json.examples}exclusiveMaximum(){if("boolean"!=typeof this._json)return this._json.exclusiveMaximum}exclusiveMinimum(){if("boolean"!=typeof this._json)return this._json.exclusiveMinimum}format(){if("boolean"!=typeof this._json)return this._json.format}isBooleanSchema(){return"boolean"==typeof this._json}if(){if("boolean"!=typeof this._json&&"object"==typeof this._json.if)return this.createModel(z,this._json.if,{pointer:`${this._meta.pointer}/if`,parent:this})}isCircular(){if(N(this._json))return!0;let e=this._meta.parent;for(;e;){if(e._json===this._json)return!0;e=e._meta.parent}return!1}items(){if("boolean"!=typeof this._json&&"object"==typeof this._json.items)return Array.isArray(this._json.items)?this._json.items.map(((e,t)=>this.createModel(z,e,{pointer:`${this._meta.pointer}/items/${t}`,parent:this}))):this.createModel(z,this._json.items,{pointer:`${this._meta.pointer}/items`,parent:this})}maximum(){if("boolean"!=typeof this._json)return this._json.maximum}maxItems(){if("boolean"!=typeof this._json)return this._json.maxItems}maxLength(){if("boolean"!=typeof this._json)return this._json.maxLength}maxProperties(){if("boolean"!=typeof this._json)return this._json.maxProperties}minimum(){if("boolean"!=typeof this._json)return this._json.minimum}minItems(){if("boolean"!=typeof this._json)return this._json.minItems}minLength(){if("boolean"!=typeof this._json)return this._json.minLength}minProperties(){if("boolean"!=typeof this._json)return this._json.minProperties}multipleOf(){if("boolean"!=typeof this._json)return this._json.multipleOf}not(){if("boolean"!=typeof this._json&&"object"==typeof this._json.not)return this.createModel(z,this._json.not,{pointer:`${this._meta.pointer}/not`,parent:this})}oneOf(){if("boolean"!=typeof this._json&&Array.isArray(this._json.oneOf))return this._json.oneOf.map(((e,t)=>this.createModel(z,e,{pointer:`${this._meta.pointer}/oneOf/${t}`,parent:this})))}pattern(){if("boolean"!=typeof this._json)return this._json.pattern}patternProperties(){if("boolean"!=typeof this._json&&"object"==typeof this._json.patternProperties)return Object.entries(this._json.patternProperties).reduce(((e,[t,r])=>(e[t]=this.createModel(z,r,{pointer:`${this._meta.pointer}/patternProperties/${t}`,parent:this}),e)),{})}properties(){if("boolean"!=typeof this._json&&"object"==typeof this._json.properties)return Object.entries(this._json.properties).reduce(((e,[t,r])=>(e[t]=this.createModel(z,r,{pointer:`${this._meta.pointer}/properties/${t}`,parent:this}),e)),{})}property(e){if("boolean"!=typeof this._json&&"object"==typeof this._json.properties&&"object"==typeof this._json.properties[e])return this.createModel(z,this._json.properties[e],{pointer:`${this._meta.pointer}/properties/${e}`,parent:this})}propertyNames(){if("boolean"!=typeof this._json&&"object"==typeof this._json.propertyNames)return this.createModel(z,this._json.propertyNames,{pointer:`${this._meta.pointer}/propertyNames`,parent:this})}readOnly(){return"boolean"!=typeof this._json&&(this._json.readOnly||!1)}required(){if("boolean"!=typeof this._json)return this._json.required}then(){if("boolean"!=typeof this._json&&"object"==typeof this._json.then)return this.createModel(z,this._json.then,{pointer:`${this._meta.pointer}/then`,parent:this})}title(){if("boolean"!=typeof this._json)return this._json.title}type(){if("boolean"!=typeof this._json)return this._json.type}uniqueItems(){return"boolean"!=typeof this._json&&(this._json.uniqueItems||!1)}writeOnly(){return"boolean"!=typeof this._json&&(this._json.writeOnly||!1)}hasExternalDocs(){return x(this)}externalDocs(){return P(this)}extensions(){return _(this)}}class B extends e{id(){return this._meta.id}hasSchema(){return!!this._json.schema}schema(){if(this._json.schema)return this.createModel(z,this._json.schema,{pointer:`${this._meta.pointer}/schema`})}hasLocation(){return!!this._json.location}location(){return this._json.location}hasDescription(){return j(this)}description(){return $(this)}extensions(){return _(this)}}class V extends t{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.operations().filterBySend().length>0))}filterByReceive(){return this.filterBy((e=>e.operations().filterByReceive().length>0))}}class H extends t{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.isSend()))}filterByReceive(){return this.filterBy((e=>e.isReceive()))}}class K extends t{get(e){return this.collections.find((t=>t.id()===e))}}class G extends e{hasDescription(){return j(this)}description(){return $(this)}hasLocation(){return!!this._json.location}location(){return this._json.location}extensions(){return _(this)}}class J extends t{get(e){return this.collections.find((t=>t.name()===e))}}class W extends e{hasName(){return!!this._json.name}name(){return this._json.name}hasSummary(){return!!this._json.summary}summary(){return this._json.summary}hasHeaders(){return!!this._json.headers}headers(){return this._json.headers}hasPayload(){return!!this._json.payload}payload(){return this._json.payload}extensions(){return _(this)}}var Q=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};function Y(e,t){return"string"==typeof e?e:X(t)}function X(e){return`application/vnd.aai.asyncapi;version=${e}`}class Z extends e{id(){var e;return this.messageId()||this._meta.id||(null===(e=this.extensions().get(u))||void 0===e?void 0:e.value())}schemaFormat(){return this._json.schemaFormat||X(this._meta.asyncapi.semver.version)}hasMessageId(){return!!this._json.messageId}messageId(){return this._json.messageId}hasCorrelationId(){return!!this._json.correlationId}correlationId(){if(this._json.correlationId)return this.createModel(G,this._json.correlationId,{pointer:`${this._meta.pointer}/correlationId`})}hasContentType(){return!!this._json.contentType}contentType(){var e;return this._json.contentType||(null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed.defaultContentType)}hasHeaders(){return!!this._json.headers}headers(){if(this._json.headers)return this.createModel(z,this._json.headers,{pointer:`${this._meta.pointer}/headers`})}hasName(){return!!this._json.name}name(){return this._json.name}hasTitle(){return!!this._json.title}title(){return this._json.title}hasSummary(){return!!this._json.summary}summary(){return this._json.summary}hasDescription(){return j(this)}description(){return $(this)}hasExternalDocs(){return x(this)}externalDocs(){return P(this)}examples(){return new J((this._json.examples||[]).map(((e,t)=>this.createModel(W,e,{pointer:`${this._meta.pointer}/examples/${t}`}))))}tags(){return w(this)}bindings(){return b(this)}extensions(){return _(this)}}class ee extends t{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.operations().filterBySend().length>0))}filterByReceive(){return this.filterBy((e=>e.operations().filterByReceive().length>0))}}class te extends Z{hasPayload(){return!!this._json.payload}payload(){if(this._json.payload)return this.createModel(z,this._json.payload,{pointer:`${this._meta.pointer}/payload`})}servers(){const e=[],t=[];return this.channels().forEach((r=>{r.servers().forEach((r=>{t.includes(r.json())||(t.push(r.json()),e.push(r))}))})),new ee(e)}channels(){const e=[],t=[];return this.operations().all().forEach((r=>{r.channels().forEach((r=>{t.includes(r.json())||(t.push(r.json()),e.push(r))}))})),new A(e)}operations(){var e;const t=[];return Object.entries((null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed.channels)||{}).forEach((([e,r])=>{["subscribe","publish"].forEach((n=>{const i=r[n];i&&(i.message===this._json||(i.message.oneOf||[]).includes(this._json))&&t.push(this.createModel(pe,i,{id:"",pointer:`/channels/${M(e)}/${n}`,action:n}))}))})),new H(t)}traits(){return new K((this._json.traits||[]).map(((e,t)=>this.createModel(Z,e,{id:"",pointer:`${this._meta.pointer}/traits/${t}`}))))}}class re extends t{get(e){return this.collections.find((t=>t.id()===e))}}class ne extends e{authorizationUrl(){return this.json().authorizationUrl}hasRefreshUrl(){return!!this._json.refreshUrl}refreshUrl(){return this._json.refreshUrl}scopes(){return this._json.scopes}tokenUrl(){return this.json().tokenUrl}extensions(){return _(this)}}class ie extends e{hasAuthorizationCode(){return!!this._json.authorizationCode}authorizationCode(){if(this._json.authorizationCode)return new ne(this._json.authorizationCode)}hasClientCredentials(){return!!this._json.clientCredentials}clientCredentials(){if(this._json.clientCredentials)return new ne(this._json.clientCredentials)}hasImplicit(){return!!this._json.implicit}implicit(){if(this._json.implicit)return new ne(this._json.implicit)}hasPassword(){return!!this._json.password}password(){if(this._json.password)return new ne(this._json.password)}extensions(){return _(this)}}class oe extends e{id(){return this._meta.id}hasDescription(){return j(this)}description(){return $(this)}hasBearerFormat(){return!!this._json.bearerFormat}bearerFormat(){return this._json.bearerFormat}openIdConnectUrl(){return this._json.openIdConnectUrl}scheme(){return this._json.scheme}flows(){if(this._json.flows)return new ie(this._json.flows)}type(){return this._json.type}in(){return this._json.in}extensions(){return _(this)}}class se extends t{get(e){return this.collections.find((t=>t.meta("id")===e))}}class ae extends e{scheme(){return this._json.scheme}scopes(){return this._json.scopes||[]}}class ce extends e{id(){return this.operationId()||this._meta.id}action(){return this._meta.action}hasOperationId(){return!!this._json.operationId}operationId(){return this._json.operationId}hasSummary(){return!!this._json.summary}summary(){return this._json.summary}hasDescription(){return j(this)}description(){return $(this)}hasExternalDocs(){return x(this)}isSend(){return"subscribe"===this.action()}isReceive(){return"publish"===this.action()}externalDocs(){return P(this)}security(){var e,t,r,n;const i=(null===(n=null===(r=null===(t=null===(e=this._meta)||void 0===e?void 0:e.asyncapi)||void 0===t?void 0:t.parsed)||void 0===r?void 0:r.components)||void 0===n?void 0:n.securitySchemes)||{};return(this._json.security||[]).map(((e,t)=>{const r=[];return Object.entries(e).forEach((([e,n])=>{const o=this.createModel(oe,i[e],{id:e,pointer:`/components/securitySchemes/${e}`});r.push(this.createModel(ae,{scheme:o,scopes:n},{id:e,pointer:`${this.meta().pointer}/security/${t}/${e}`}))})),new se(r)}))}tags(){return w(this)}bindings(){return b(this)}extensions(){return _(this)}}class pe extends ce{servers(){const e=[],t=[];return this.channels().forEach((r=>{r.servers().forEach((r=>{t.includes(r.json())||(t.push(r.json()),e.push(r))}))})),new ee(e)}channels(){const e=[];return Object.entries(this._meta.asyncapi.parsed.channels||{}).forEach((([t,r])=>{r.subscribe!==this._json&&r.publish!==this._json||e.push(this.createModel(de,r,{id:t,address:t,pointer:`/channels/${M(t)}`}))})),new A(e)}messages(){let e=!1,t=[];return this._json.message&&(Array.isArray(this._json.message.oneOf)?(t=this._json.message.oneOf,e=!0):t=[this._json.message]),new V(t.map(((t,r)=>this.createModel(te,t,{id:"",pointer:`${this._meta.pointer}/message${e?`/oneOf/${r}`:""}`}))))}traits(){return new re((this._json.traits||[]).map(((e,t)=>this.createModel(ce,e,{id:"",pointer:`${this._meta.pointer}/traits/${t}`,action:""}))))}}class ue extends t{get(e){return this.collections.find((t=>t.id()===e))}}class fe extends e{id(){return this._meta.id}hasDescription(){return j(this)}description(){return $(this)}hasDefaultValue(){return!!this._json.default}defaultValue(){return this._json.default}hasAllowedValues(){return!!this._json.enum}allowedValues(){return this._json.enum||[]}examples(){return this._json.examples||[]}extensions(){return _(this)}}class le extends e{id(){return this._meta.id}url(){return this._json.url}protocol(){return this._json.protocol}hasProtocolVersion(){return!!this._json.protocolVersion}protocolVersion(){return this._json.protocolVersion}hasDescription(){return j(this)}description(){return $(this)}channels(){var e;const t=[];return Object.entries((null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed.channels)||{}).forEach((([e,r])=>{const n=r.servers||[];(0===n.length||n.includes(this._meta.id))&&t.push(this.createModel(de,r,{id:e,address:e,pointer:`/channels/${M(e)}`}))})),new A(t)}operations(){const e=[];return this.channels().forEach((t=>{e.push(...t.operations().all())})),new H(e)}messages(){const e=[];return this.operations().forEach((t=>e.push(...t.messages().all()))),new V(e)}variables(){return new ue(Object.entries(this._json.variables||{}).map((([e,t])=>this.createModel(fe,t,{id:e,pointer:`${this._meta.pointer}/variables/${e}`}))))}security(){var e,t,r,n;const i=(null===(n=null===(r=null===(t=null===(e=this._meta)||void 0===e?void 0:e.asyncapi)||void 0===t?void 0:t.parsed)||void 0===r?void 0:r.components)||void 0===n?void 0:n.securitySchemes)||{};return(this._json.security||[]).map(((e,t)=>{const r=[];return Object.entries(e).forEach((([e,n])=>{const o=this.createModel(oe,i[e],{id:e,pointer:`/components/securitySchemes/${e}`});r.push(this.createModel(ae,{scheme:o,scopes:n},{id:e,pointer:`${this.meta().pointer}/security/${t}/${e}`}))})),new se(r)}))}bindings(){return b(this)}extensions(){return _(this)}}class de extends e{id(){return this._meta.id}address(){return this._meta.address}hasDescription(){return j(this)}description(){return $(this)}servers(){var e;const t=[],r=this._json.servers||[];return Object.entries((null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed.servers)||{}).forEach((([e,n])=>{(0===r.length||r.includes(e))&&t.push(this.createModel(le,n,{id:e,pointer:`/servers/${e}`}))})),new ee(t)}operations(){const e=[];return["publish","subscribe"].forEach((t=>{const r=this._json[t]&&this._json[t].operationId||`${this.meta().id}_${t}`;this._json[t]&&e.push(this.createModel(pe,this._json[t],{id:r,action:t,pointer:`${this._meta.pointer}/${t}`}))})),new H(e)}messages(){const e=[];return this.operations().forEach((t=>e.push(...t.messages().all()))),new V(e)}parameters(){return new I(Object.entries(this._json.parameters||{}).map((([e,t])=>this.createModel(B,t,{id:e,pointer:`${this._meta.pointer}/parameters/${e}`}))))}bindings(){return b(this)}extensions(){return _(this)}}class he extends t{get(e){return this.collections.find((t=>t.uid()===e))}}class me extends t{get(e){return this.collections.find((t=>t.id()===e))}}class ye extends t{get(e){return this.collections.find((t=>t.meta("id")===e))}}class ge extends e{servers(){return this.createCollection("servers",ee,le)}channels(){return new A(Object.entries(this._json.channels||{}).map((([e,t])=>this.createModel(de,t,{id:e,address:"",pointer:`/components/channels/${M(e)}`}))))}messages(){return this.createCollection("messages",V,te)}schemas(){return this.createCollection("schemas",he,z)}channelParameters(){return this.createCollection("parameters",I,B)}serverVariables(){return this.createCollection("serverVariables",ue,fe)}operations(){const e=[];return this.channels().forEach((t=>e.push(...t.operations().all()))),new H(e)}operationTraits(){return this.createCollection("operationTraits",re,ce)}messageTraits(){return this.createCollection("messageTraits",K,Z)}correlationIds(){return this.createCollection("correlationIds",ye,G)}securitySchemes(){return this.createCollection("securitySchemes",me,oe)}serverBindings(){return this.createBindings("serverBindings")}channelBindings(){return this.createBindings("channelBindings")}operationBindings(){return this.createBindings("operationBindings")}messageBindings(){return this.createBindings("messageBindings")}extensions(){return _(this)}isEmpty(){return 0===Object.keys(this._json).length}createCollection(e,t,r){const n=[];return Object.entries(this._json[e]||{}).forEach((([t,i])=>{n.push(this.createModel(r,i,{id:t,pointer:`/components/${e}/${t}`}))})),new t(n)}createBindings(e){return Object.entries(this._json[e]||{}).reduce(((t,[r,n])=>{const i=n||{},o=this.meta("asyncapi"),s=`components/${e}/${r}`;return t[r]=new h(Object.entries(i).map((([e,t])=>this.createModel(m,t,{protocol:e,pointer:`${s}/${e}`}))),{originalData:i,asyncapi:o,pointer:s}),t}),{})}}class ve extends e{version(){return this._json.asyncapi}defaultContentType(){return this._json.defaultContentType}hasDefaultContentType(){return!!this._json.defaultContentType}info(){return this.createModel(E,this._json.info,{pointer:"/info"})}servers(){return new ee(Object.entries(this._json.servers||{}).map((([e,t])=>this.createModel(le,t,{id:e,pointer:`/servers/${e}`}))))}channels(){return new A(Object.entries(this._json.channels||{}).map((([e,t])=>this.createModel(de,t,{id:e,address:e,pointer:`/channels/${M(e)}`}))))}operations(){const e=[];return this.channels().forEach((t=>e.push(...t.operations().all()))),new H(e)}messages(){const e=[];return this.operations().forEach((t=>e.push(...t.messages().all()))),new V(e)}schemas(){return new he([])}securitySchemes(){var e;return new me(Object.entries((null===(e=this._json.components)||void 0===e?void 0:e.securitySchemes)||{}).map((([e,t])=>this.createModel(oe,t,{id:e,pointer:`/components/securitySchemes/${e}`}))))}components(){return this.createModel(ge,this._json.components||{},{pointer:"/components"})}extensions(){return _(this)}}class be extends e{version(){return this._json.asyncapi}}const je="$ref:$";function $e(e,t,r,n,i){let o=e,s=je;if(void 0!==t){o=e[String(t)];const r=t?`.${t}`:"";s=n.get(e)+(Array.isArray(e)?`[${t}]`:r)}n.set(o,s),i.set(s,o);const a=i.get(o);if(a&&(e[String(t)]=a),o!==je&&a!==je||(e[String(t)]=r),o===Object(o))for(const e in o)$e(o,e,r,n,i)}function _e(e){if(2===e.semver.major)return new ve(e.parsed,{asyncapi:e,pointer:"/"});throw new Error(`Unsupported AsyncAPI version: ${e.semver.version}`)}function xe(e){return function(e){return e instanceof ve||e instanceof be}(e)?e:function(e){return"object"==typeof e&&null!==e&&Boolean(e[p])}(e)?function(e){let t=e;if("string"==typeof e)try{t=JSON.parse(e)}catch(e){return}if("object"==typeof(r=t)&&null!==r&&Boolean(r[p])&&Boolean(r["x-parser-spec-stringified"]))return t=Object.assign({},t),delete t[String("x-parser-spec-stringified")],$e(e,void 0,e,new Map,new Map),_e(k(e,t));var r}(e)||_e(k(e,e)):void 0}function Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}function we(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Se(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&p.shift(),this._hasParentSelector=null;var u=this._trace(p,t,["$"],o,s,r).filter((function(e){return e&&!e.isParentSelector}));return u.length?c||1!==u.length||u[0].hasArrExpr?u.reduce((function(e,t){var r=i._getPreferredOutput(t);return a&&Array.isArray(r)?e=e.concat(r):e.push(r),e}),[]):this._getPreferredOutput(u[0]):c?[]:void 0}},Ue.prototype._getPreferredOutput=function(e){var t=this.currResultType;switch(t){case"all":var r=Array.isArray(e.path)?e.path:Ue.toPathArray(e.path);return e.pointer=Ue.toPointer(r),e.path="string"==typeof e.path?e.path:Ue.toPathString(e.path),e;case"value":case"parent":case"parentProperty":return e[t];case"path":return Ue.toPathString(e[t]);case"pointer":return Ue.toPointer(e.path);default:throw new TypeError("Unknown result type")}},Ue.prototype._handleCallback=function(e,t,r){if(t){var n=this._getPreferredOutput(e);e.path="string"==typeof e.path?e.path:Ue.toPathString(e.path),t(n,r,e)}},Ue.prototype._trace=function(e,t,r,n,i,o,s,a){var c,p=this;if(!e.length)return c={path:r,value:t,parent:n,parentProperty:i,hasArrExpr:s},this._handleCallback(c,o,"value"),c;var u=e[0],f=e.slice(1),l=[];function d(e){Array.isArray(e)?e.forEach((function(e){l.push(e)})):l.push(e)}if(("string"!=typeof u||a)&&t&&Fe.call(t,u))d(this._trace(f,t[u],Ne(r,u),t,u,o,s));else if("*"===u)this._walk(t,(function(e){d(p._trace(f,t[e],Ne(r,e),t,e,o,!0,!0))}));else if(".."===u)d(this._trace(f,t,r,n,i,o,s)),this._walk(t,(function(n){"object"===Pe(t[n])&&d(p._trace(e.slice(),t[n],Ne(r,n),t,n,o,!0))}));else{if("^"===u)return this._hasParentSelector=!0,{path:r.slice(0,-1),expr:f,isParentSelector:!0};if("~"===u)return c={path:Ne(r,u),value:i,parent:n,parentProperty:null},this._handleCallback(c,o,"property"),c;if("$"===u)d(this._trace(f,t,r,null,null,o,s));else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(u))d(this._slice(u,f,t,r,n,i,o));else if(0===u.indexOf("?(")){if(this.currPreventEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");var h=u.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/,"$1");this._walk(t,(function(e){p._eval(h,t[e],e,r,n,i)&&d(p._trace(f,t[e],Ne(r,e),t,e,o,!0))}))}else if("("===u[0]){if(this.currPreventEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");d(this._trace(Me(this._eval(u,t,r[r.length-1],r.slice(0,-1),n,i),f),t,r,n,i,o,s))}else if("@"===u[0]){var m=!1,y=u.slice(1,-2);switch(y){case"scalar":t&&["object","function"].includes(Pe(t))||(m=!0);break;case"boolean":case"string":case"undefined":case"function":Pe(t)===y&&(m=!0);break;case"integer":!Number.isFinite(t)||t%1||(m=!0);break;case"number":Number.isFinite(t)&&(m=!0);break;case"nonFinite":"number"!=typeof t||Number.isFinite(t)||(m=!0);break;case"object":t&&Pe(t)===y&&(m=!0);break;case"array":Array.isArray(t)&&(m=!0);break;case"other":m=this.currOtherTypeCallback(t,r,n,i);break;case"null":null===t&&(m=!0);break;default:throw new TypeError("Unknown value type "+y)}if(m)return c={path:r,value:t,parent:n,parentProperty:i},this._handleCallback(c,o,"value"),c}else if("`"===u[0]&&t&&Fe.call(t,u.slice(1))){var g=u.slice(1);d(this._trace(f,t[g],Ne(r,g),t,g,o,s,!0))}else if(u.includes(",")){var v,b=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=De(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}(u.split(","));try{for(b.s();!(v=b.n()).done;){var j=v.value;d(this._trace(Me(j,f),t,r,n,i,o,!0))}}catch(e){b.e(e)}finally{b.f()}}else!a&&t&&Fe.call(t,u)&&d(this._trace(f,t[u],Ne(r,u),t,u,o,s,!0))}if(this._hasParentSelector)for(var $=0;$-1?t.slice(0,a+1)+" return "+t.slice(a+1):" return "+t;return Te(Function,r.concat([c])).apply(void 0,function(e){if(Array.isArray(e))return Ce(e)}(s=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||De(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}]),e}();Ue.prototype.vm={Script:Le};const ze=["$.channels.*.[publish,subscribe]","$.components.channels.*.[publish,subscribe]","$.channels.*.[publish,subscribe].message","$.channels.*.[publish,subscribe].message.oneOf.*","$.components.channels.*.[publish,subscribe].message","$.components.channels.*.[publish,subscribe].message.oneOf.*","$.components.messages.*"];function Be(e){Ve(e.json())&&D("x-parser-circular",!0,e)}function Ve(e){if(e&&"object"==typeof e&&!Array.isArray(e)){if(Object.prototype.hasOwnProperty.call(e,"$ref"))return!0;for(const t in e)if(Ve(e[t]))return!0}return!1}var He=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};const Ke=["$.channels.*.[publish,subscribe].message","$.channels.*.[publish,subscribe].message.oneOf.*","$.components.channels.*.[publish,subscribe].message","$.components.channels.*.[publish,subscribe].message.oneOf.*","$.components.messages.*"];function Ge(e){return e.slice(3).slice(0,-2).split("']['")}var Je,We;function Qe(e,t,r){if(!e)return;const{schemaTypesToIterate:n,callback:i,seenSchemas:o}=r,s=e.json();if(o.has(s))return;o.add(s);let a=e.type()||[];Array.isArray(a)||(a=[a]),!n.includes(We.Objects)&&a.includes("object")||!n.includes(We.Arrays)&&a.includes("array")||!1!==i(e,t,Je.NEW_SCHEMA)&&(n.includes(We.Objects)&&a.includes("object")&&function(e,t){Object.entries(e.properties()||{}).forEach((([e,r])=>{Qe(r,e,t)}));const r=e.additionalProperties();"object"==typeof r&&Qe(r,null,t);const n=t.schemaTypesToIterate;n.includes(We.PropertyNames)&&e.propertyNames()&&Qe(e.propertyNames(),null,t),n.includes(We.PatternProperties)&&Object.entries(e.patternProperties()||{}).forEach((([e,r])=>{Qe(r,e,t)}))}(e,r),n.includes(We.Arrays)&&a.includes("array")&&function(e,t){const r=e.items();r&&(Array.isArray(r)?r.forEach(((e,r)=>{Qe(e,r,t)})):Qe(r,null,t));const n=e.additionalItems();"object"==typeof n&&Qe(n,null,t),t.schemaTypesToIterate.includes("contains")&&e.contains()&&Qe(e.contains(),null,t)}(e,r),n.includes(We.OneOfs)&&(e.oneOf()||[]).forEach(((e,t)=>{Qe(e,t,r)})),n.includes(We.AnyOfs)&&(e.anyOf()||[]).forEach(((e,t)=>{Qe(e,t,r)})),n.includes(We.AllOfs)&&(e.allOf()||[]).forEach(((e,t)=>{Qe(e,t,r)})),n.includes(We.Nots)&&e.not()&&Qe(e.not(),null,r),n.includes(We.Ifs)&&e.if()&&Qe(e.if(),null,r),n.includes(We.Thenes)&&e.then()&&Qe(e.then(),null,r),n.includes(We.Elses)&&e.else()&&Qe(e.else(),null,r),n.includes(We.Dependencies)&&Object.entries(e.dependencies()||{}).forEach((([e,t])=>{t&&!Array.isArray(t)&&Qe(t,e,r)})),n.includes(We.Definitions)&&Object.entries(e.definitions()||{}).forEach((([e,t])=>{Qe(t,e,r)})),i(e,t,Je.END_SCHEMA),o.delete(s))}function Ye(e,t){if(!e)return;const{schemaTypesToIterate:r}=t;r.includes(We.Headers)&&e.hasHeaders()&&Qe(e.headers(),null,t),r.includes(We.Payloads)&&e.hasPayload()&&Qe(e.payload(),null,t)}function Xe(e){!function(e){e.components().messages().forEach((e=>{void 0===e.name()&&D(u,e.id(),e)}))}(e),function(e){let t=0;e.messages().forEach((e=>{var r;void 0===e.name()&&void 0===(null===(r=e.extensions().get(u))||void 0===r?void 0:r.value())&&D(u,``,e)}))}(e),function(e){e.components().schemas().forEach((e=>{D(f,e.uid(),e)}))}(e),function(e){e.components().channelParameters().forEach((e=>{const t=e.schema();t&&!t.uid()&&D(f,e.id(),t)}))}(e),function(e){e.channels().forEach((e=>{e.parameters().forEach((e=>{const t=e.schema();t&&!t.uid()&&D(f,e.id(),t)}))}))}(e),function(e){let t=0;!function(e,t,r=[]){0===r.length&&(r=Object.values(We));const n={callback:t,schemaTypesToIterate:r,seenSchemas:new Set};if(e.channels().isEmpty()||e.channels().all().forEach((e=>{!function(e,t){if(!e)return;const{schemaTypesToIterate:r}=t;r.includes(We.Parameters)&&Object.values(e.parameters().filterBy((e=>e.hasSchema()))||{}).forEach((e=>{Qe(e.schema(),null,t)})),e.messages().all().forEach((e=>{Ye(e,t)}))}(e,n)})),r.includes(We.Components)&&!e.components().isEmpty()){const t=e.components();Object.values(t.messages().all()||{}).forEach((e=>{Ye(e,n)})),Object.values(t.schemas().all()||{}).forEach((e=>{Qe(e,null,n)})),r.includes(We.Parameters)&&Object.values(t.channelParameters().filterBy((e=>e.hasSchema()))).forEach((e=>{Qe(e.schema(),null,n)})),Object.values(t.messageTraits().all()||{}).forEach((e=>{!function(e,t){if(!e)return;const{schemaTypesToIterate:r}=t;r.includes(We.Headers)&&e.hasHeaders()&&Qe(e.headers(),null,t)}(e,n)}))}}(e,(function(e){e.uid()||D(f,``,e)}))}(e)}!function(e){e.NEW_SCHEMA="NEW_SCHEMA",e.END_SCHEMA="END_SCHEMA"}(Je||(Je={})),function(e){e.Parameters="parameters",e.Payloads="payloads",e.Headers="headers",e.Components="components",e.Objects="objects",e.Arrays="arrays",e.OneOfs="oneOfs",e.AllOfs="allOfs",e.AnyOfs="anyOfs",e.Nots="nots",e.PropertyNames="propertyNames",e.PatternProperties="patternProperties",e.Contains="contains",e.Ifs="ifs",e.Thenes="thenes",e.Elses="elses",e.Dependencies="dependencies",e.Definitions="definitions"}(We||(We={}));var Ze=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};function et(e,t,r,n){return Ze(this,void 0,void 0,(function*(){if(2===r.semver.major)return function(e,t,r,n){return Ze(this,void 0,void 0,(function*(){Be(t),Xe(t),n.applyTraits&&function(e){!function(e,t){t.forEach((t=>{Ue({path:t,json:e,resultType:"value",callback(e){!function(e){if(Array.isArray(e.traits))for(const t of e.traits)for(const r in t)e[String(r)]=C(e[String(r)],t[String(r)])}(e)}})}))}(e,ze)}(r.parsed),n.parseSchemas&&(yield function(e,t){return He(this,void 0,void 0,(function*(){const r=X(t.semver.version),n=[],i=new Set;return Ke.forEach((e=>{Ue({path:e,json:t.parsed,resultType:"all",callback(e){const o=e.value;if(i.has(o))return;i.add(o);const s=o.payload;if(!s)return;const a=Y(o.schemaFormat,t.semver.version);n.push({input:{asyncapi:t,data:s,meta:{message:o},path:[...Ge(e.path),"payload"],schemaFormat:a,defaultSchemaFormat:r},value:o})}})})),Promise.all(n.map((t=>function(e,t){return He(this,void 0,void 0,(function*(){const r=t.input.data,n=t.value.payload=yield function(e,t){return Q(this,void 0,void 0,(function*(){const r=e.parserRegistry.get(t.schemaFormat);if(void 0===r)throw new Error("Unknown schema format");return r.parse(t)}))}(e,t.input);r!==n&&(t.value["x-parser-original-payload"]=r)}))}(e,t))))}))}(e,r))}))}(e,t,r,n)}))}var tt=r(309),rt=r(644);const nt={allowedSeverity:{error:!1,warning:!0,info:!0,hint:!0}};function it(e,t,r={}){return n=this,i=void 0,s=function*(){const{allowedSeverity:n}=C(nt,r),i=function(e){return"string"==typeof e?e:JSON.stringify(e,void 0,2)}(t),o=new tt.Document(i,rt.Yaml,r.source);let{resolved:s,results:a}=yield e.runWithResolved(o);return(!(null==n?void 0:n.error)&&a.some((e=>e.severity===T.DiagnosticSeverity.Error))||!(null==n?void 0:n.warning)&&a.some((e=>e.severity===T.DiagnosticSeverity.Warning))||!(null==n?void 0:n.info)&&function(e){return e.some((e=>e.severity===T.DiagnosticSeverity.Information))}(a)||!(null==n?void 0:n.hint)&&function(e){return e.some((e=>e.severity===T.DiagnosticSeverity.Hint))}(a))&&(s=void 0),{validated:s,diagnostics:a,extras:{document:o}}},new((o=void 0)||(o=Promise))((function(e,t){function r(e){try{c(s.next(e))}catch(e){t(e)}}function a(e){try{c(s.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(r,a)}c((s=s.apply(n,i||[])).next())}));var n,i,o,s}const ot={applyTraits:!0,parseSchemas:!0,validateOptions:{}};function st(e,t,r,n={}){return i=this,o=void 0,a=function*(){n=C(ot,n);const{validated:i,diagnostics:o,extras:s}=yield it(t,r,Object.assign(Object.assign({},n.validateOptions),{source:n.source}));if(void 0===i)return{document:void 0,diagnostics:o,extras:void 0};const a=function(e){const t=JSON.stringify(e,function(){const e=new Map,t=new Map;let r=null;return function(n,i){const o=e.get(this)+(Array.isArray(this)?`[${n}]`:`.${n}`),s=i===Object(i);s&&e.set(i,o);const a=t.get(i)||"";if(!a&&s){const e=o.replace(/undefined\.\.?/,"");t.set(i,e)}const c="["===a[0]?"$":"$.";let p=a?`$ref:${c}${a}`:i;return null===r?r=i:p===r&&(p="$ref:$"),p}}()),r=JSON.parse(t);return $e(r,void 0,r,new Map,new Map),r}(i),c=k(r,a),u=_e(c);return D(p,!0,u),yield et(e,u,c,n),{document:u,diagnostics:o,extras:s}},new((s=void 0)||(s=Promise))((function(e,t){function r(e){try{c(a.next(e))}catch(e){t(e)}}function n(e){try{c(a.throw(e))}catch(e){t(e)}}function c(t){var i;t.done?e(t.value):(i=t.value,i instanceof s?i:new s((function(e){e(i)}))).then(r,n)}c((a=a.apply(i,o||[])).next())}));var i,o,s,a}var at=r(1581),ct=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};const pt=new(r.n(at)())({allErrors:!0,strict:!1,logger:!1});function ut(e){return ct(this,void 0,void 0,(function*(){const t=function(e){let t=pt.getSchema(e);if(!t){const r=function(e,t){const r=`http://asyncapi.com/definitions/${t}/schema.json`,n=e.definitions;if(void 0===n)throw new Error("AsyncAPI schema must contain definitions");return delete n["http://json-schema.org/draft-07/schema"],delete n["http://json-schema.org/draft-04/schema"],{$ref:r,definitions:n}}(c()[e],e);pt.addSchema(r,e),t=pt.getSchema(e)}return t}(e.asyncapi.semver.version);let r=[];var n;return!t(e.data)&&t.errors&&(n=e.path,r=[...t.errors].map((e=>({message:e.message,path:[...n,...e.instancePath.replace(/^\//,"").split("/")]})))),r}))}function ft(e){return ct(this,void 0,void 0,(function*(){return e.data}))}function lt(){const e=["application/schema;version=draft-07","application/schema+json;version=draft-07","application/schema+yaml;version=draft-07"];return d.forEach((t=>{e.push(`application/vnd.aai.asyncapi;version=${t}`,`application/vnd.aai.asyncapi+json;version=${t}`,`application/vnd.aai.asyncapi+yaml;version=${t}`)})),e}var dt=r(3326),ht=r(3871),mt=r(9655),yt=r(5738);function gt(e={}){const t=[{schema:"file",read:yt.resolveFile},{schema:"https",read:yt.resolveHttp},{schema:"http",read:yt.resolveHttp},...(null==e?void 0:e.resolvers)||[]].map((e=>Object.assign(Object.assign({},e),{order:e.order||Number.MAX_SAFE_INTEGER,canRead:void 0===e.canRead||e.canRead}))),r=[...new Set(t.map((e=>e.schema)))].reduce(((e,r)=>(e[r]={resolve:vt(r,t)},e)),{}),n=!1!==e.cache;return new ht.Resolver({uriCache:n?void 0:new mt.C({stdTTL:1}),resolvers:r})}function vt(e,t){const r=t.filter((t=>t.schema===e)).sort(((e,t)=>e.order-t.order));return(t,n)=>{return i=this,o=void 0,a=function*(){let i,o;for(const e of r)try{if(!bt(e,t,n))continue;if(i=yield e.read(t,n),"string"==typeof i)break}catch(e){o=e;continue}if("string"!=typeof i)throw o||new Error(`None of the available resolvers for "${e}" can resolve the given reference.`);return i},new((s=void 0)||(s=Promise))((function(e,t){function r(e){try{c(a.next(e))}catch(e){t(e)}}function n(e){try{c(a.throw(e))}catch(e){t(e)}}function c(t){var i;t.done?e(t.value):(i=t.value,i instanceof s?i:new s((function(e){e(i)}))).then(r,n)}c((a=a.apply(i,o||[])).next())}));var i,o,s,a}}function bt(e,t,r){return"function"==typeof e.canRead?e.canRead(t,r):e.canRead}var jt=r(683);function $t(e){return{description:"Custom schema must be correctly formatted from the point of view of the used format.",formats:[jt.aas2_0,jt.aas2_1,jt.aas2_2,jt.aas2_3,jt.aas2_4],message:"{{error}}",severity:"error",type:"validation",recommended:!0,given:["$.channels.*.[publish,subscribe].message","$.channels.*.[publish,subscribe].message.oneOf.*","$.components.channels.*.[publish,subscribe].message","$.components.channels.*.[publish,subscribe].message.oneOf.*","$.components.messages.*"],then:{function:_t(e)}}}function _t(e){return(0,tt.createRulesetFunction)({input:{type:"object",properties:{schemaFormat:{type:"string"},payload:!0}},options:null},((t={},r,n)=>{return i=this,o=void 0,a=function*(){if(!t.payload)return[];const r=[...n.path,"payload"],i=n.document.data,o=Y(t.schemaFormat,i.asyncapi),s=X(i.asyncapi),a={asyncapi:k(n.document.data,i),data:t.payload,meta:{},path:r,schemaFormat:o,defaultSchemaFormat:s};try{return yield function(e,t){return Q(this,void 0,void 0,(function*(){const r=e.parserRegistry.get(t.schemaFormat);if(void 0===r){const{path:e,schemaFormat:r}=t;return e.pop(),[{message:`Unknown schema format: "${r}"`,path:[...e,"schemaFormat"]},{message:`Cannot validate and parse given schema due to unknown schema format: "${r}"`,path:[...e,"payload"]}]}return r.validate(t)}))}(e,a)}catch(e){return[{message:`Error thrown during schema validation, name: ${e.name}, message: ${e.message}, stack: ${e.stack}`,path:r}]}},new((s=void 0)||(s=Promise))((function(e,t){function r(e){try{c(a.next(e))}catch(e){t(e)}}function n(e){try{c(a.throw(e))}catch(e){t(e)}}function c(t){var i;t.done?e(t.value):(i=t.value,i instanceof s?i:new s((function(e){e(i)}))).then(r,n)}c((a=a.apply(i,o||[])).next())}));var i,o,s,a}))}var xt=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};const Pt=class{constructor(e={}){var t;this.options=e,this.parserRegistry=new Map,this.spectral=function(e,t={}){var r;const n=new tt.Spectral({resolver:gt(null===(r=t.__unstable)||void 0===r?void 0:r.resolver)}),i=function(e){return{extends:[dt.Z],rules:{"asyncapi-is-asyncapi":{description:"The input must be a document with a supported version of AsyncAPI.",formats:[()=>!0],message:"{{error}}",severity:"error",type:"validation",recommended:!0,given:"$",then:{function:(0,tt.createRulesetFunction)({input:null,options:null},(e=>F(e)&&"string"==typeof e.asyncapi?d.includes(e.asyncapi)?void 0:[{message:`Version "${e.asyncapi}" is not supported. Please use "${d[d.length-1]}" (latest) version of the specification.`,path:[]}]:[{message:'This is not an AsyncAPI document. The "asyncapi" field as string is missing.',path:[]}]))}},"asyncapi-schemas-v2":$t(e),"asyncapi-operation-operationId":"warn","asyncapi-payload-unsupported-schemaFormat":"off","asyncapi-payload":"off"}}}(e);return n.setRuleset(i),n}(this,e),this.registerSchemaParser({validate:ut,parse:ft,getMimeTypes:lt}),null===(t=this.options.schemaParsers)||void 0===t||t.forEach((e=>this.registerSchemaParser(e)))}parse(e,t){return xt(this,void 0,void 0,(function*(){const r=xe(e);return r?{document:r,diagnostics:[]}:st(this,this.spectral,e,t)}))}validate(e,t){return xt(this,void 0,void 0,(function*(){return xe(e)?[]:(yield it(this.spectral,e,t)).diagnostics}))}registerSchemaParser(e){return function(e,t){if("object"!=typeof t||"function"!=typeof t.validate||"function"!=typeof t.parse||"function"!=typeof t.getMimeTypes)throw new Error('Custom parser must have "parse()", "validate()" and "getMimeTypes()" functions.');t.getMimeTypes().forEach((r=>{e.parserRegistry.set(r,t)}))}(this,e)}}})(),n.default})())); \ No newline at end of file diff --git a/browser/index.js.LICENSE.txt b/browser/index.js.LICENSE.txt new file mode 100644 index 000000000..2ead3c492 --- /dev/null +++ b/browser/index.js.LICENSE.txt @@ -0,0 +1,84 @@ +/*! + * EventEmitter v5.2.9 - git.io/ee + * Unlicense - http://unlicense.org/ + * Oliver Caldwell - https://oli.me.uk/ + * @preserve + */ + +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ + +/*! + * URI.js - Mutating URLs + * + * Version: 1.19.11 + * + * Author: Rodney Rehm + * Web: http://medialize.github.io/URI.js/ + * + * Licensed under + * MIT License http://www.opensource.org/licenses/mit-license + * + */ + +/*! + * URI.js - Mutating URLs + * IPv6 Support + * + * Version: 1.19.11 + * + * Author: Rodney Rehm + * Web: http://medialize.github.io/URI.js/ + * + * Licensed under + * MIT License http://www.opensource.org/licenses/mit-license + * + */ + +/*! + * URI.js - Mutating URLs + * Second Level Domain (SLD) Support + * + * Version: 1.19.11 + * + * Author: Rodney Rehm + * Web: http://medialize.github.io/URI.js/ + * + * Licensed under + * MIT License http://www.opensource.org/licenses/mit-license + * + */ + +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ + +/*! https://mths.be/punycode v1.4.0 by @mathias */ + +/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ + +/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */ diff --git a/cjs/constants.d.ts b/cjs/constants.d.ts new file mode 100644 index 000000000..483ae4850 --- /dev/null +++ b/cjs/constants.d.ts @@ -0,0 +1,13 @@ +export declare const xParserSpecParsed = "x-parser-spec-parsed"; +export declare const xParserSpecStringified = "x-parser-spec-stringified"; +export declare const xParserMessageName = "x-parser-message-name"; +export declare const xParserMessageParsed = "x-parser-message-parsed"; +export declare const xParserSchemaId = "x-parser-schema-id"; +export declare const xParserOriginalSchemaFormat = "x-parser-original-schema-format"; +export declare const xParserOriginalPayload = "x-parser-original-payload"; +export declare const xParserOriginalTraits = "x-parser-original-traits"; +export declare const xParserCircular = "x-parser-circular"; +export declare const xParserCircularProps = "x-parser-circular-props"; +export declare const EXTENSION_REGEX: RegExp; +export declare const specVersions: string[]; +export declare const lastVersion: string; diff --git a/cjs/constants.js b/cjs/constants.js new file mode 100644 index 000000000..a7800ae22 --- /dev/null +++ b/cjs/constants.js @@ -0,0 +1,22 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.lastVersion = exports.specVersions = exports.EXTENSION_REGEX = exports.xParserCircularProps = exports.xParserCircular = exports.xParserOriginalTraits = exports.xParserOriginalPayload = exports.xParserOriginalSchemaFormat = exports.xParserSchemaId = exports.xParserMessageParsed = exports.xParserMessageName = exports.xParserSpecStringified = exports.xParserSpecParsed = void 0; +// @ts-ignore +const specs_1 = __importDefault(require("@asyncapi/specs")); +exports.xParserSpecParsed = 'x-parser-spec-parsed'; +exports.xParserSpecStringified = 'x-parser-spec-stringified'; +exports.xParserMessageName = 'x-parser-message-name'; +exports.xParserMessageParsed = 'x-parser-message-parsed'; +exports.xParserSchemaId = 'x-parser-schema-id'; +exports.xParserOriginalSchemaFormat = 'x-parser-original-schema-format'; +exports.xParserOriginalPayload = 'x-parser-original-payload'; +exports.xParserOriginalTraits = 'x-parser-original-traits'; +exports.xParserCircular = 'x-parser-circular'; +exports.xParserCircularProps = 'x-parser-circular-props'; +exports.EXTENSION_REGEX = /^x-[\w\d.\-_]+$/; +// Only >=2.0.0 versions are supported +exports.specVersions = Object.keys(specs_1.default).filter((version) => !['1.0.0', '1.1.0', '1.2.0', '2.0.0-rc1', '2.0.0-rc2'].includes(version)); +exports.lastVersion = exports.specVersions[exports.specVersions.length - 1]; diff --git a/cjs/custom-operations/anonymous-naming.d.ts b/cjs/custom-operations/anonymous-naming.d.ts new file mode 100644 index 000000000..25722cee7 --- /dev/null +++ b/cjs/custom-operations/anonymous-naming.d.ts @@ -0,0 +1,2 @@ +import type { AsyncAPIDocumentInterface } from '../models'; +export declare function anonymousNaming(document: AsyncAPIDocumentInterface): void; diff --git a/cjs/custom-operations/anonymous-naming.js b/cjs/custom-operations/anonymous-naming.js new file mode 100644 index 000000000..919dbb729 --- /dev/null +++ b/cjs/custom-operations/anonymous-naming.js @@ -0,0 +1,63 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.anonymousNaming = void 0; +const constants_1 = require("../constants"); +const iterator_1 = require("../iterator"); +const utils_1 = require("../utils"); +function anonymousNaming(document) { + assignNameToComponentMessages(document); + assignNameToAnonymousMessages(document); + assignUidToComponentSchemas(document); + assignUidToComponentParameterSchemas(document); + assignUidToChannelParameterSchemas(document); + assignUidToAnonymousSchemas(document); +} +exports.anonymousNaming = anonymousNaming; +function assignNameToComponentMessages(document) { + document.components().messages().forEach(message => { + if (message.name() === undefined) { + (0, utils_1.setExtension)(constants_1.xParserMessageName, message.id(), message); + } + }); +} +function assignNameToAnonymousMessages(document) { + let anonymousMessageCounter = 0; + document.messages().forEach(message => { + var _a; + if (message.name() === undefined && ((_a = message.extensions().get(constants_1.xParserMessageName)) === null || _a === void 0 ? void 0 : _a.value()) === undefined) { + (0, utils_1.setExtension)(constants_1.xParserMessageName, ``, message); + } + }); +} +function assignUidToComponentParameterSchemas(document) { + document.components().channelParameters().forEach(parameter => { + const schema = parameter.schema(); + if (schema && !schema.uid()) { + (0, utils_1.setExtension)(constants_1.xParserSchemaId, parameter.id(), schema); + } + }); +} +function assignUidToChannelParameterSchemas(document) { + document.channels().forEach(channel => { + channel.parameters().forEach(parameter => { + const schema = parameter.schema(); + if (schema && !schema.uid()) { + (0, utils_1.setExtension)(constants_1.xParserSchemaId, parameter.id(), schema); + } + }); + }); +} +function assignUidToComponentSchemas(document) { + document.components().schemas().forEach(schema => { + (0, utils_1.setExtension)(constants_1.xParserSchemaId, schema.uid(), schema); + }); +} +function assignUidToAnonymousSchemas(doc) { + let anonymousSchemaCounter = 0; + function callback(schema) { + if (!schema.uid()) { + (0, utils_1.setExtension)(constants_1.xParserSchemaId, ``, schema); + } + } + (0, iterator_1.traverseAsyncApiDocument)(doc, callback); +} diff --git a/cjs/custom-operations/apply-traits.d.ts b/cjs/custom-operations/apply-traits.d.ts new file mode 100644 index 000000000..1be880667 --- /dev/null +++ b/cjs/custom-operations/apply-traits.d.ts @@ -0,0 +1,3 @@ +import type { v2 } from '../spec-types'; +export declare function applyTraitsV2(asyncapi: v2.AsyncAPIObject): void; +export declare function applyTraitsV3(asyncapi: v2.AsyncAPIObject): void; diff --git a/cjs/custom-operations/apply-traits.js b/cjs/custom-operations/apply-traits.js new file mode 100644 index 000000000..6e0a02da7 --- /dev/null +++ b/cjs/custom-operations/apply-traits.js @@ -0,0 +1,54 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.applyTraitsV3 = exports.applyTraitsV2 = void 0; +const jsonpath_plus_1 = require("jsonpath-plus"); +const utils_1 = require("../utils"); +const v2TraitPaths = [ + // operations + '$.channels.*.[publish,subscribe]', + '$.components.channels.*.[publish,subscribe]', + // messages + '$.channels.*.[publish,subscribe].message', + '$.channels.*.[publish,subscribe].message.oneOf.*', + '$.components.channels.*.[publish,subscribe].message', + '$.components.channels.*.[publish,subscribe].message.oneOf.*', + '$.components.messages.*', +]; +function applyTraitsV2(asyncapi) { + applyAllTraits(asyncapi, v2TraitPaths); +} +exports.applyTraitsV2 = applyTraitsV2; +const v3TraitPaths = [ + // operations + '$.channels.*.[publish,subscribe]', + '$.components.channels.*.[publish,subscribe]', + // messages + '$.channels.*.[publish,subscribe].message', + '$.channels.*.[publish,subscribe].message.oneOf.*', + '$.components.channels.*.[publish,subscribe].message', + '$.components.channels.*.[publish,subscribe].message.oneOf.*', + '$.components.messages.*', +]; +function applyTraitsV3(asyncapi) { + applyAllTraits(asyncapi, v3TraitPaths); +} +exports.applyTraitsV3 = applyTraitsV3; +function applyAllTraits(asyncapi, paths) { + paths.forEach(path => { + (0, jsonpath_plus_1.JSONPath)({ + path, + json: asyncapi, + resultType: 'value', + callback(value) { applyTraits(value); }, + }); + }); +} +function applyTraits(value) { + if (Array.isArray(value.traits)) { + for (const trait of value.traits) { + for (const key in trait) { + value[String(key)] = (0, utils_1.mergePatch)(value[String(key)], trait[String(key)]); + } + } + } +} diff --git a/cjs/custom-operations/check-circular-refs.d.ts b/cjs/custom-operations/check-circular-refs.d.ts new file mode 100644 index 000000000..b1189cdac --- /dev/null +++ b/cjs/custom-operations/check-circular-refs.d.ts @@ -0,0 +1,2 @@ +import type { AsyncAPIDocumentInterface } from '../models'; +export declare function checkCircularRefs(document: AsyncAPIDocumentInterface): void; diff --git a/cjs/custom-operations/check-circular-refs.js b/cjs/custom-operations/check-circular-refs.js new file mode 100644 index 000000000..b8f5ae282 --- /dev/null +++ b/cjs/custom-operations/check-circular-refs.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.checkCircularRefs = void 0; +const utils_1 = require("../utils"); +const constants_1 = require("../constants"); +function checkCircularRefs(document) { + if (hasInlineRef(document.json())) { + (0, utils_1.setExtension)(constants_1.xParserCircular, true, document); + } +} +exports.checkCircularRefs = checkCircularRefs; +function hasInlineRef(data) { + if (data && typeof data === 'object' && !Array.isArray(data)) { + if (Object.prototype.hasOwnProperty.call(data, '$ref')) { + return true; + } + for (const p in data) { + if (hasInlineRef(data[p])) { + return true; + } + } + } + return false; +} diff --git a/cjs/custom-operations/index.d.ts b/cjs/custom-operations/index.d.ts new file mode 100644 index 000000000..5a984a9f4 --- /dev/null +++ b/cjs/custom-operations/index.d.ts @@ -0,0 +1,5 @@ +import type { Parser } from '../parser'; +import type { ParseOptions } from '../parse'; +import type { AsyncAPIDocumentInterface } from '../models'; +import type { DetailedAsyncAPI } from '../types'; +export declare function customOperations(parser: Parser, document: AsyncAPIDocumentInterface, detailed: DetailedAsyncAPI, options: ParseOptions): Promise; diff --git a/cjs/custom-operations/index.js b/cjs/custom-operations/index.js new file mode 100644 index 000000000..5a10a3273 --- /dev/null +++ b/cjs/custom-operations/index.js @@ -0,0 +1,37 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.customOperations = void 0; +const apply_traits_1 = require("./apply-traits"); +const check_circular_refs_1 = require("./check-circular-refs"); +const parse_schema_1 = require("./parse-schema"); +const anonymous_naming_1 = require("./anonymous-naming"); +function customOperations(parser, document, detailed, options) { + return __awaiter(this, void 0, void 0, function* () { + switch (detailed.semver.major) { + case 2: return operationsV2(parser, document, detailed, options); + // case 3: return operationsV3(parser, document, detailed, options); + } + }); +} +exports.customOperations = customOperations; +function operationsV2(parser, document, detailed, options) { + return __awaiter(this, void 0, void 0, function* () { + (0, check_circular_refs_1.checkCircularRefs)(document); + (0, anonymous_naming_1.anonymousNaming)(document); + if (options.applyTraits) { + (0, apply_traits_1.applyTraitsV2)(detailed.parsed); + } + if (options.parseSchemas) { + yield (0, parse_schema_1.parseSchemasV2)(parser, detailed); + } + }); +} diff --git a/cjs/custom-operations/parse-schema.d.ts b/cjs/custom-operations/parse-schema.d.ts new file mode 100644 index 000000000..2bea575f6 --- /dev/null +++ b/cjs/custom-operations/parse-schema.d.ts @@ -0,0 +1,3 @@ +import type { Parser } from '../parser'; +import type { DetailedAsyncAPI } from '../types'; +export declare function parseSchemasV2(parser: Parser, detailed: DetailedAsyncAPI): Promise; diff --git a/cjs/custom-operations/parse-schema.js b/cjs/custom-operations/parse-schema.js new file mode 100644 index 000000000..419825961 --- /dev/null +++ b/cjs/custom-operations/parse-schema.js @@ -0,0 +1,79 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.parseSchemasV2 = void 0; +const jsonpath_plus_1 = require("jsonpath-plus"); +const constants_1 = require("../constants"); +const schema_parser_1 = require("../schema-parser"); +const customSchemasPathsV2 = [ + // operations + '$.channels.*.[publish,subscribe].message', + '$.channels.*.[publish,subscribe].message.oneOf.*', + '$.components.channels.*.[publish,subscribe].message', + '$.components.channels.*.[publish,subscribe].message.oneOf.*', + // messages + '$.components.messages.*', +]; +function parseSchemasV2(parser, detailed) { + return __awaiter(this, void 0, void 0, function* () { + const defaultSchemaFormat = (0, schema_parser_1.getDefaultSchemaFormat)(detailed.semver.version); + const parseItems = []; + const visited = new Set(); + customSchemasPathsV2.forEach(path => { + (0, jsonpath_plus_1.JSONPath)({ + path, + json: detailed.parsed, + resultType: 'all', + callback(result) { + const value = result.value; + if (visited.has(value)) { + return; + } + visited.add(value); + const payload = value.payload; + if (!payload) { + return; + } + const schemaFormat = (0, schema_parser_1.getSchemaFormat)(value.schemaFormat, detailed.semver.version); + parseItems.push({ + input: { + asyncapi: detailed, + data: payload, + meta: { + message: value, + }, + path: [...splitPath(result.path), 'payload'], + schemaFormat, + defaultSchemaFormat, + }, + value, + }); + }, + }); + }); + return Promise.all(parseItems.map(item => parseSchemaV2(parser, item))); + }); +} +exports.parseSchemasV2 = parseSchemasV2; +function parseSchemaV2(parser, item) { + return __awaiter(this, void 0, void 0, function* () { + const originalData = item.input.data; + const parsedData = item.value.payload = yield (0, schema_parser_1.parseSchema)(parser, item.input); + // save original payload only when data is different (returned by custom parsers) + if (originalData !== parsedData) { + item.value[constants_1.xParserOriginalPayload] = originalData; + } + }); +} +function splitPath(path) { + // remove $[' from beginning and '] at the end and split by '][' + return path.slice(3).slice(0, -2).split('\'][\''); +} diff --git a/cjs/document.d.ts b/cjs/document.d.ts new file mode 100644 index 000000000..5707f70cf --- /dev/null +++ b/cjs/document.d.ts @@ -0,0 +1,7 @@ +import type { AsyncAPIDocumentInterface } from './models'; +import type { DetailedAsyncAPI } from './types'; +export declare function createAsyncAPIDocument(asyncapi: DetailedAsyncAPI): AsyncAPIDocumentInterface; +export declare function toAsyncAPIDocument(maybeDoc: unknown): AsyncAPIDocumentInterface | undefined; +export declare function isAsyncAPIDocument(maybeDoc: unknown): maybeDoc is AsyncAPIDocumentInterface; +export declare function isParsedDocument(maybeDoc: unknown): maybeDoc is Record; +export declare function isStringifiedDocument(maybeDoc: unknown): maybeDoc is Record; diff --git a/cjs/document.js b/cjs/document.js new file mode 100644 index 000000000..607160e1a --- /dev/null +++ b/cjs/document.js @@ -0,0 +1,47 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.isStringifiedDocument = exports.isParsedDocument = exports.isAsyncAPIDocument = exports.toAsyncAPIDocument = exports.createAsyncAPIDocument = void 0; +const models_1 = require("./models"); +const stringify_1 = require("./stringify"); +const utils_1 = require("./utils"); +const constants_1 = require("./constants"); +function createAsyncAPIDocument(asyncapi) { + switch (asyncapi.semver.major) { + case 2: + return new models_1.AsyncAPIDocumentV2(asyncapi.parsed, { asyncapi, pointer: '/' }); + // case 3: + // return new AsyncAPIDocumentV3(asyncapi.parsed, { asyncapi, pointer: '/' }); + default: + throw new Error(`Unsupported AsyncAPI version: ${asyncapi.semver.version}`); + } +} +exports.createAsyncAPIDocument = createAsyncAPIDocument; +function toAsyncAPIDocument(maybeDoc) { + if (isAsyncAPIDocument(maybeDoc)) { + return maybeDoc; + } + if (!isParsedDocument(maybeDoc)) { + return; + } + return (0, stringify_1.unstringify)(maybeDoc) || createAsyncAPIDocument((0, utils_1.createDetailedAsyncAPI)(maybeDoc, maybeDoc)); +} +exports.toAsyncAPIDocument = toAsyncAPIDocument; +function isAsyncAPIDocument(maybeDoc) { + return maybeDoc instanceof models_1.AsyncAPIDocumentV2 || maybeDoc instanceof models_1.AsyncAPIDocumentV3; +} +exports.isAsyncAPIDocument = isAsyncAPIDocument; +function isParsedDocument(maybeDoc) { + if (typeof maybeDoc !== 'object' || maybeDoc === null) { + return false; + } + return Boolean(maybeDoc[constants_1.xParserSpecParsed]); +} +exports.isParsedDocument = isParsedDocument; +function isStringifiedDocument(maybeDoc) { + if (typeof maybeDoc !== 'object' || maybeDoc === null) { + return false; + } + return (Boolean(maybeDoc[constants_1.xParserSpecParsed]) && + Boolean(maybeDoc[constants_1.xParserSpecStringified])); +} +exports.isStringifiedDocument = isStringifiedDocument; diff --git a/cjs/from.d.ts b/cjs/from.d.ts new file mode 100644 index 000000000..8b3731a20 --- /dev/null +++ b/cjs/from.d.ts @@ -0,0 +1,14 @@ +/// +import { readFile } from 'fs/promises'; +import type { RequestInit } from 'node-fetch'; +import type { Parser } from './parser'; +import type { ParseOptions, ParseOutput } from './parse'; +import type { ValidateOptions } from './validate'; +import type { Diagnostic } from './types'; +interface FromResult { + parse: (options?: ParseOptions) => Promise; + validate: (options?: ValidateOptions) => Promise; +} +export declare function fromURL(parser: Parser, source: string, options?: RequestInit): FromResult; +export declare function fromFile(parser: Parser, source: string, options?: Parameters[1]): FromResult; +export {}; diff --git a/cjs/from.js b/cjs/from.js new file mode 100644 index 000000000..7185dbfb8 --- /dev/null +++ b/cjs/from.js @@ -0,0 +1,93 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.fromFile = exports.fromURL = void 0; +const promises_1 = require("fs/promises"); +function fromURL(parser, source, options) { + function fetchUrl() { + return __awaiter(this, void 0, void 0, function* () { + const fetchFn = yield getFetch(); + return (yield fetchFn(source, options)).text(); + }); + } + return { + parse(options = {}) { + return __awaiter(this, void 0, void 0, function* () { + const schema = yield fetchUrl(); + return parser.parse(schema, Object.assign(Object.assign({}, options), { source })); + }); + }, + validate(options = {}) { + return __awaiter(this, void 0, void 0, function* () { + const schema = yield fetchUrl(); + return parser.validate(schema, Object.assign(Object.assign({}, options), { source })); + }); + } + }; +} +exports.fromURL = fromURL; +function fromFile(parser, source, options) { + function readFileFn() { + return __awaiter(this, void 0, void 0, function* () { + return (yield (0, promises_1.readFile)(source, options)).toString(); + }); + } + return { + parse(options = {}) { + return __awaiter(this, void 0, void 0, function* () { + const schema = yield readFileFn(); + return parser.parse(schema, Object.assign(Object.assign({}, options), { source })); + }); + }, + validate(options = {}) { + return __awaiter(this, void 0, void 0, function* () { + const schema = yield readFileFn(); + return parser.validate(schema, Object.assign(Object.assign({}, options), { source })); + }); + } + }; +} +exports.fromFile = fromFile; +let __fetchFn; +function getFetch() { + return __awaiter(this, void 0, void 0, function* () { + if (__fetchFn) { + return __fetchFn; + } + if (typeof fetch === 'undefined') { + return __fetchFn = (yield Promise.resolve().then(() => __importStar(require('node-fetch')))).default; + } + return (__fetchFn = fetch); + }); +} diff --git a/cjs/index.d.ts b/cjs/index.d.ts new file mode 100644 index 000000000..59f3be0bb --- /dev/null +++ b/cjs/index.d.ts @@ -0,0 +1,13 @@ +import { Parser } from './parser'; +export * from './models'; +export { Parser }; +export { stringify, unstringify } from './stringify'; +export { fromURL, fromFile } from './from'; +export { AsyncAPIDocument as OldAsyncAPIDocument } from './old-api/asyncapi'; +export { convertToOldAPI } from './old-api/converter'; +export type { AsyncAPISemver, Input, Diagnostic, SchemaValidateResult } from './types'; +export type { ValidateOptions, ValidateOutput } from './validate'; +export type { ParseOptions, ParseOutput } from './parse'; +export type { StringifyOptions } from './stringify'; +export type { ValidateSchemaInput, ParseSchemaInput, SchemaParser } from './schema-parser'; +export default Parser; diff --git a/cjs/index.js b/cjs/index.js new file mode 100644 index 000000000..d4eabd3b9 --- /dev/null +++ b/cjs/index.js @@ -0,0 +1,31 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.convertToOldAPI = exports.OldAsyncAPIDocument = exports.fromFile = exports.fromURL = exports.unstringify = exports.stringify = exports.Parser = void 0; +const parser_1 = require("./parser"); +Object.defineProperty(exports, "Parser", { enumerable: true, get: function () { return parser_1.Parser; } }); +__exportStar(require("./models"), exports); +var stringify_1 = require("./stringify"); +Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return stringify_1.stringify; } }); +Object.defineProperty(exports, "unstringify", { enumerable: true, get: function () { return stringify_1.unstringify; } }); +var from_1 = require("./from"); +Object.defineProperty(exports, "fromURL", { enumerable: true, get: function () { return from_1.fromURL; } }); +Object.defineProperty(exports, "fromFile", { enumerable: true, get: function () { return from_1.fromFile; } }); +var asyncapi_1 = require("./old-api/asyncapi"); +Object.defineProperty(exports, "OldAsyncAPIDocument", { enumerable: true, get: function () { return asyncapi_1.AsyncAPIDocument; } }); +var converter_1 = require("./old-api/converter"); +Object.defineProperty(exports, "convertToOldAPI", { enumerable: true, get: function () { return converter_1.convertToOldAPI; } }); +exports.default = parser_1.Parser; diff --git a/cjs/iterator.d.ts b/cjs/iterator.d.ts new file mode 100644 index 000000000..627928ce4 --- /dev/null +++ b/cjs/iterator.d.ts @@ -0,0 +1,42 @@ +import type { AsyncAPIDocumentInterface } from './models/asyncapi'; +import type { SchemaInterface } from './models/schema'; +/** + * The different kind of stages when crawling a schema. + */ +export declare enum SchemaIteratorCallbackType { + NEW_SCHEMA = "NEW_SCHEMA", + END_SCHEMA = "END_SCHEMA" +} +/** + * The different types of schemas you can iterate + */ +export declare enum SchemaTypesToIterate { + Parameters = "parameters", + Payloads = "payloads", + Headers = "headers", + Components = "components", + Objects = "objects", + Arrays = "arrays", + OneOfs = "oneOfs", + AllOfs = "allOfs", + AnyOfs = "anyOfs", + Nots = "nots", + PropertyNames = "propertyNames", + PatternProperties = "patternProperties", + Contains = "contains", + Ifs = "ifs", + Thenes = "thenes", + Elses = "elses", + Dependencies = "dependencies", + Definitions = "definitions" +} +export declare type TraverseOptions = { + callback: TraverseCallback; + schemaTypesToIterate: Array<`${SchemaTypesToIterate}`>; + seenSchemas: Set; +}; +export declare type TraverseCallback = (schema: SchemaInterface, propOrIndex: string | number | null, callbackType: SchemaIteratorCallbackType) => boolean | void; +/** + * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. + */ +export declare function traverseAsyncApiDocument(doc: AsyncAPIDocumentInterface, callback: TraverseCallback, schemaTypesToIterate?: Array<`${SchemaTypesToIterate}`>): void; diff --git a/cjs/iterator.js b/cjs/iterator.js new file mode 100644 index 000000000..70551eac7 --- /dev/null +++ b/cjs/iterator.js @@ -0,0 +1,228 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.traverseAsyncApiDocument = exports.SchemaTypesToIterate = exports.SchemaIteratorCallbackType = void 0; +/** + * The different kind of stages when crawling a schema. + */ +var SchemaIteratorCallbackType; +(function (SchemaIteratorCallbackType) { + SchemaIteratorCallbackType["NEW_SCHEMA"] = "NEW_SCHEMA"; + SchemaIteratorCallbackType["END_SCHEMA"] = "END_SCHEMA"; +})(SchemaIteratorCallbackType = exports.SchemaIteratorCallbackType || (exports.SchemaIteratorCallbackType = {})); +/** + * The different types of schemas you can iterate + */ +var SchemaTypesToIterate; +(function (SchemaTypesToIterate) { + SchemaTypesToIterate["Parameters"] = "parameters"; + SchemaTypesToIterate["Payloads"] = "payloads"; + SchemaTypesToIterate["Headers"] = "headers"; + SchemaTypesToIterate["Components"] = "components"; + SchemaTypesToIterate["Objects"] = "objects"; + SchemaTypesToIterate["Arrays"] = "arrays"; + SchemaTypesToIterate["OneOfs"] = "oneOfs"; + SchemaTypesToIterate["AllOfs"] = "allOfs"; + SchemaTypesToIterate["AnyOfs"] = "anyOfs"; + SchemaTypesToIterate["Nots"] = "nots"; + SchemaTypesToIterate["PropertyNames"] = "propertyNames"; + SchemaTypesToIterate["PatternProperties"] = "patternProperties"; + SchemaTypesToIterate["Contains"] = "contains"; + SchemaTypesToIterate["Ifs"] = "ifs"; + SchemaTypesToIterate["Thenes"] = "thenes"; + SchemaTypesToIterate["Elses"] = "elses"; + SchemaTypesToIterate["Dependencies"] = "dependencies"; + SchemaTypesToIterate["Definitions"] = "definitions"; +})(SchemaTypesToIterate = exports.SchemaTypesToIterate || (exports.SchemaTypesToIterate = {})); +/** + * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. + */ +function traverseAsyncApiDocument(doc, callback, schemaTypesToIterate = []) { + if (schemaTypesToIterate.length === 0) { + schemaTypesToIterate = Object.values(SchemaTypesToIterate); + } + const options = { callback, schemaTypesToIterate, seenSchemas: new Set() }; + if (!doc.channels().isEmpty()) { + doc.channels().all().forEach(channel => { + traverseChannel(channel, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Components) && !doc.components().isEmpty()) { + const components = doc.components(); + Object.values(components.messages().all() || {}).forEach(message => { + traverseMessage(message, options); + }); + Object.values(components.schemas().all() || {}).forEach(schema => { + traverseSchema(schema, null, options); + }); + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Parameters)) { + Object.values(components.channelParameters().filterBy((param) => { return param.hasSchema(); })).forEach(parameter => { + traverseSchema(parameter.schema(), null, options); + }); + } + Object.values(components.messageTraits().all() || {}).forEach(messageTrait => { + traverseMessageTrait(messageTrait, options); + }); + } +} +exports.traverseAsyncApiDocument = traverseAsyncApiDocument; +/* eslint-disable sonarjs/cognitive-complexity */ +/** + * Traverse current schema and all nested schemas. + */ +function traverseSchema(schema, propOrIndex, options) { + if (!schema) + return; + const { schemaTypesToIterate, callback, seenSchemas } = options; + // handle circular references + const jsonSchema = schema.json(); + if (seenSchemas.has(jsonSchema)) + return; + seenSchemas.add(jsonSchema); + // `type` isn't required so save type as array in the fallback + let types = schema.type() || []; + // change primitive type to array of types for easier handling + if (!Array.isArray(types)) { + types = [types]; + } + if (!schemaTypesToIterate.includes(SchemaTypesToIterate.Objects) && types.includes('object')) + return; + if (!schemaTypesToIterate.includes(SchemaTypesToIterate.Arrays) && types.includes('array')) + return; + // check callback `NEW_SCHEMA` case + if (callback(schema, propOrIndex, SchemaIteratorCallbackType.NEW_SCHEMA) === false) + return; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Objects) && types.includes('object')) { + recursiveSchemaObject(schema, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Arrays) && types.includes('array')) { + recursiveSchemaArray(schema, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.OneOfs)) { + (schema.oneOf() || []).forEach((combineSchema, idx) => { + traverseSchema(combineSchema, idx, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.AnyOfs)) { + (schema.anyOf() || []).forEach((combineSchema, idx) => { + traverseSchema(combineSchema, idx, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.AllOfs)) { + (schema.allOf() || []).forEach((combineSchema, idx) => { + traverseSchema(combineSchema, idx, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Nots) && schema.not()) { + traverseSchema(schema.not(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Ifs) && schema.if()) { + traverseSchema(schema.if(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Thenes) && schema.then()) { + traverseSchema(schema.then(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Elses) && schema.else()) { + traverseSchema(schema.else(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Dependencies)) { + Object.entries(schema.dependencies() || {}).forEach(([depName, dep]) => { + // do not iterate dependent required + if (dep && !Array.isArray(dep)) { + traverseSchema(dep, depName, options); + } + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Definitions)) { + Object.entries(schema.definitions() || {}).forEach(([defName, def]) => { + traverseSchema(def, defName, options); + }); + } + callback(schema, propOrIndex, SchemaIteratorCallbackType.END_SCHEMA); + seenSchemas.delete(jsonSchema); +} +/* eslint-enable sonarjs/cognitive-complexity */ +/** + * Recursively go through schema of object type and execute callback. + */ +function recursiveSchemaObject(schema, options) { + Object.entries(schema.properties() || {}).forEach(([propertyName, property]) => { + traverseSchema(property, propertyName, options); + }); + const additionalProperties = schema.additionalProperties(); + if (typeof additionalProperties === 'object') { + traverseSchema(additionalProperties, null, options); + } + const schemaTypesToIterate = options.schemaTypesToIterate; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.PropertyNames) && schema.propertyNames()) { + traverseSchema(schema.propertyNames(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.PatternProperties)) { + Object.entries(schema.patternProperties() || {}).forEach(([propertyName, property]) => { + traverseSchema(property, propertyName, options); + }); + } +} +/** + * Recursively go through schema of array type and execute callback. + */ +function recursiveSchemaArray(schema, options) { + const items = schema.items(); + if (items) { + if (Array.isArray(items)) { + items.forEach((item, idx) => { + traverseSchema(item, idx, options); + }); + } + else { + traverseSchema(items, null, options); + } + } + const additionalItems = schema.additionalItems(); + if (typeof additionalItems === 'object') { + traverseSchema(additionalItems, null, options); + } + if (options.schemaTypesToIterate.includes('contains') && schema.contains()) { + traverseSchema(schema.contains(), null, options); + } +} +/** + * Go through each schema in channel + */ +function traverseChannel(channel, options) { + if (!channel) + return; + const { schemaTypesToIterate } = options; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Parameters)) { + Object.values(channel.parameters().filterBy((param) => { return param.hasSchema(); }) || {}).forEach(parameter => { + traverseSchema(parameter.schema(), null, options); + }); + } + channel.messages().all().forEach(message => { + traverseMessage(message, options); + }); +} +/** + * Go through each schema in a message + */ +function traverseMessage(message, options) { + if (!message) + return; + const { schemaTypesToIterate } = options; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Headers) && message.hasHeaders()) { + traverseSchema(message.headers(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Payloads) && message.hasPayload()) { + traverseSchema(message.payload(), null, options); + } +} +/** + * Go through each schema in a messageTrait + */ +function traverseMessageTrait(messageTrait, options) { + if (!messageTrait) + return; + const { schemaTypesToIterate } = options; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Headers) && messageTrait.hasHeaders()) { + traverseSchema(messageTrait.headers(), null, options); + } +} diff --git a/cjs/models/asyncapi.d.ts b/cjs/models/asyncapi.d.ts new file mode 100644 index 000000000..f357456fe --- /dev/null +++ b/cjs/models/asyncapi.d.ts @@ -0,0 +1,24 @@ +import type { BaseModel } from './base'; +import type { InfoInterface } from './info'; +import type { ChannelsInterface } from './channels'; +import type { ComponentsInterface } from './components'; +import type { MessagesInterface } from './messages'; +import type { ExtensionsMixinInterface } from './mixins'; +import type { OperationsInterface } from './operations'; +import type { SchemasInterface } from './schemas'; +import type { SecuritySchemesInterface } from './security-schemes'; +import type { ServersInterface } from './servers'; +import type { v2 } from '../spec-types'; +export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInterface { + version(): string; + defaultContentType(): string | undefined; + hasDefaultContentType(): boolean; + info(): InfoInterface; + servers(): ServersInterface; + channels(): ChannelsInterface; + operations(): OperationsInterface; + messages(): MessagesInterface; + schemas(): SchemasInterface; + securitySchemes(): SecuritySchemesInterface; + components(): ComponentsInterface; +} diff --git a/cjs/models/asyncapi.js b/cjs/models/asyncapi.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/asyncapi.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/base.d.ts b/cjs/models/base.d.ts new file mode 100644 index 000000000..29aa35fa2 --- /dev/null +++ b/cjs/models/base.d.ts @@ -0,0 +1,17 @@ +import type { Constructor, InferModelData, InferModelMetadata } from './utils'; +import type { DetailedAsyncAPI } from '../types'; +export interface ModelMetadata { + asyncapi: DetailedAsyncAPI; + pointer: string; +} +export declare abstract class BaseModel = {}> { + protected readonly _json: J; + protected readonly _meta: ModelMetadata & M; + constructor(_json: J, _meta?: ModelMetadata & M); + json(): T; + json(key: K): J[K]; + meta(): ModelMetadata & M; + meta(key: K): (ModelMetadata & M)[K]; + jsonPath(field?: string | undefined): string; + protected createModel(Model: Constructor, value: InferModelData, meta: Omit & InferModelMetadata): T; +} diff --git a/cjs/models/base.js b/cjs/models/base.js new file mode 100644 index 000000000..26ea67cbb --- /dev/null +++ b/cjs/models/base.js @@ -0,0 +1,33 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BaseModel = void 0; +class BaseModel { + constructor(_json, _meta = {}) { + this._json = _json; + this._meta = _meta; + } + json(key) { + if (key === undefined) + return this._json; + if (this._json === null || this._json === undefined) + return this._json; + return this._json[key]; + } + meta(key) { + if (key === undefined) + return this._meta; + if (!this._meta) + return; + return this._meta[key]; + } + jsonPath(field) { + if (typeof field !== 'string') { + return this._meta.pointer; + } + return `${this._meta.pointer}/${field}`; + } + createModel(Model, value, meta) { + return new Model(value, Object.assign(Object.assign({}, meta), { asyncapi: this._meta.asyncapi })); + } +} +exports.BaseModel = BaseModel; diff --git a/cjs/models/binding.d.ts b/cjs/models/binding.d.ts new file mode 100644 index 000000000..d63cbb8d2 --- /dev/null +++ b/cjs/models/binding.d.ts @@ -0,0 +1,7 @@ +import type { BaseModel } from './base'; +import type { ExtensionsMixinInterface } from './mixins'; +export interface BindingInterface = Record> extends BaseModel, ExtensionsMixinInterface { + protocol(): string; + version(): string; + value(): V; +} diff --git a/cjs/models/binding.js b/cjs/models/binding.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/binding.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/bindings.d.ts b/cjs/models/bindings.d.ts new file mode 100644 index 000000000..a9e00490d --- /dev/null +++ b/cjs/models/bindings.d.ts @@ -0,0 +1,5 @@ +import type { Collection } from './collection'; +import type { BindingInterface } from './binding'; +import type { ExtensionsMixinInterface } from './mixins'; +export interface BindingsInterface extends Collection, ExtensionsMixinInterface { +} diff --git a/cjs/models/bindings.js b/cjs/models/bindings.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/bindings.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/channel-parameter.d.ts b/cjs/models/channel-parameter.d.ts new file mode 100644 index 000000000..3c787dbd1 --- /dev/null +++ b/cjs/models/channel-parameter.d.ts @@ -0,0 +1,10 @@ +import type { BaseModel } from './base'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +import type { SchemaInterface } from './schema'; +export interface ChannelParameterInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { + id(): string; + hasSchema(): boolean; + schema(): SchemaInterface | undefined; + hasLocation(): boolean; + location(): string | undefined; +} diff --git a/cjs/models/channel-parameter.js b/cjs/models/channel-parameter.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/channel-parameter.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/channel-parameters.d.ts b/cjs/models/channel-parameters.d.ts new file mode 100644 index 000000000..599627b77 --- /dev/null +++ b/cjs/models/channel-parameters.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { ChannelParameterInterface } from './channel-parameter'; +export declare type ChannelParametersInterface = Collection; diff --git a/cjs/models/channel-parameters.js b/cjs/models/channel-parameters.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/channel-parameters.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/channel.d.ts b/cjs/models/channel.d.ts new file mode 100644 index 000000000..404e37d63 --- /dev/null +++ b/cjs/models/channel.d.ts @@ -0,0 +1,14 @@ +import type { BaseModel } from './base'; +import type { ChannelParametersInterface } from './channel-parameters'; +import type { MessagesInterface } from './messages'; +import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +import type { OperationsInterface } from './operations'; +import type { ServersInterface } from './servers'; +export interface ChannelInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface { + id(): string; + address(): string; + servers(): ServersInterface; + operations(): OperationsInterface; + messages(): MessagesInterface; + parameters(): ChannelParametersInterface; +} diff --git a/cjs/models/channel.js b/cjs/models/channel.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/channel.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/channels.d.ts b/cjs/models/channels.d.ts new file mode 100644 index 000000000..028bd4a96 --- /dev/null +++ b/cjs/models/channels.d.ts @@ -0,0 +1,6 @@ +import type { Collection } from './collection'; +import type { ChannelInterface } from './channel'; +export interface ChannelsInterface extends Collection { + filterBySend(): ChannelInterface[]; + filterByReceive(): ChannelInterface[]; +} diff --git a/cjs/models/channels.js b/cjs/models/channels.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/channels.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/collection.d.ts b/cjs/models/collection.d.ts new file mode 100644 index 000000000..6c23e3b73 --- /dev/null +++ b/cjs/models/collection.d.ts @@ -0,0 +1,19 @@ +import type { BaseModel } from './base'; +import type { DetailedAsyncAPI } from '../types'; +export interface CollectionMetadata { + originalData?: Record; + asyncapi?: DetailedAsyncAPI; + pointer?: string; +} +export declare abstract class Collection = {}> extends Array { + protected readonly collections: T[]; + protected readonly _meta: CollectionMetadata & M; + constructor(collections: T[], _meta?: CollectionMetadata & M); + abstract get(id: string): T | undefined; + has(id: string): boolean; + all(): T[]; + isEmpty(): boolean; + filterBy(filter: (item: T) => boolean): T[]; + meta(): CollectionMetadata & M; + meta & M)>(key: K): (CollectionMetadata & M)[K]; +} diff --git a/cjs/models/collection.js b/cjs/models/collection.js new file mode 100644 index 000000000..24ebf1e84 --- /dev/null +++ b/cjs/models/collection.js @@ -0,0 +1,30 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Collection = void 0; +class Collection extends Array { + constructor(collections, _meta = {}) { + super(...collections); + this.collections = collections; + this._meta = _meta; + } + has(id) { + return typeof this.get(id) !== 'undefined'; + } + all() { + return this.collections; + } + isEmpty() { + return this.collections.length === 0; + } + filterBy(filter) { + return this.collections.filter(filter); + } + meta(key) { + if (key === undefined) + return this._meta; + if (!this._meta) + return; + return this._meta[String(key)]; + } +} +exports.Collection = Collection; diff --git a/cjs/models/components.d.ts b/cjs/models/components.d.ts new file mode 100644 index 000000000..ce8c4f7e7 --- /dev/null +++ b/cjs/models/components.d.ts @@ -0,0 +1,32 @@ +import type { BaseModel } from './base'; +import type { BindingsInterface } from './bindings'; +import type { ExtensionsMixinInterface } from './mixins'; +import type { ServersInterface } from './servers'; +import type { ChannelsInterface } from './channels'; +import type { MessagesInterface } from './messages'; +import type { SchemasInterface } from './schemas'; +import type { ChannelParametersInterface } from './channel-parameters'; +import type { ServerVariablesInterface } from './server-variables'; +import type { OperationTraitsInterface } from './operation-traits'; +import type { MessageTraitsInterface } from './message-traits'; +import type { SecuritySchemesInterface } from './security-schemes'; +import type { CorrelationIdsInterface } from './correlation-ids'; +import type { OperationsInterface } from './operations'; +export interface ComponentsInterface extends BaseModel, ExtensionsMixinInterface { + servers(): ServersInterface; + channels(): ChannelsInterface; + messages(): MessagesInterface; + schemas(): SchemasInterface; + channelParameters(): ChannelParametersInterface; + serverVariables(): ServerVariablesInterface; + operations(): OperationsInterface; + operationTraits(): OperationTraitsInterface; + messageTraits(): MessageTraitsInterface; + correlationIds(): CorrelationIdsInterface; + securitySchemes(): SecuritySchemesInterface; + serverBindings(): Record; + channelBindings(): Record; + operationBindings(): Record; + messageBindings(): Record; + isEmpty(): boolean; +} diff --git a/cjs/models/components.js b/cjs/models/components.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/components.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/contact.d.ts b/cjs/models/contact.d.ts new file mode 100644 index 000000000..79bf79984 --- /dev/null +++ b/cjs/models/contact.d.ts @@ -0,0 +1,10 @@ +import type { BaseModel } from './base'; +import type { ExtensionsMixinInterface } from './mixins'; +export interface ContactInterface extends BaseModel, ExtensionsMixinInterface { + hasName(): boolean; + name(): string | undefined; + hasUrl(): boolean; + url(): string | undefined; + hasEmail(): boolean; + email(): string | undefined; +} diff --git a/cjs/models/contact.js b/cjs/models/contact.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/contact.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/correlation-id.d.ts b/cjs/models/correlation-id.d.ts new file mode 100644 index 000000000..690a0dbdc --- /dev/null +++ b/cjs/models/correlation-id.d.ts @@ -0,0 +1,6 @@ +import type { BaseModel } from './base'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +export interface CorrelationIdInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { + hasLocation(): boolean; + location(): string | undefined; +} diff --git a/cjs/models/correlation-id.js b/cjs/models/correlation-id.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/correlation-id.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/correlation-ids.d.ts b/cjs/models/correlation-ids.d.ts new file mode 100644 index 000000000..09dba456b --- /dev/null +++ b/cjs/models/correlation-ids.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { CorrelationIdInterface } from './correlation-id'; +export declare type CorrelationIdsInterface = Collection; diff --git a/cjs/models/correlation-ids.js b/cjs/models/correlation-ids.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/correlation-ids.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/extension.d.ts b/cjs/models/extension.d.ts new file mode 100644 index 000000000..9772edf4a --- /dev/null +++ b/cjs/models/extension.d.ts @@ -0,0 +1,6 @@ +import type { BaseModel } from './base'; +export interface ExtensionInterface extends BaseModel { + id(): string; + version(): string; + value(): V; +} diff --git a/cjs/models/extension.js b/cjs/models/extension.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/extension.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/extensions.d.ts b/cjs/models/extensions.d.ts new file mode 100644 index 000000000..a4d4e393f --- /dev/null +++ b/cjs/models/extensions.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { ExtensionInterface } from './extension'; +export declare type ExtensionsInterface = Collection; diff --git a/cjs/models/extensions.js b/cjs/models/extensions.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/extensions.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/external-docs.d.ts b/cjs/models/external-docs.d.ts new file mode 100644 index 000000000..bca1e1fef --- /dev/null +++ b/cjs/models/external-docs.d.ts @@ -0,0 +1,5 @@ +import type { BaseModel } from './base'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +export interface ExternalDocumentationInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { + url(): string; +} diff --git a/cjs/models/external-docs.js b/cjs/models/external-docs.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/external-docs.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/index.d.ts b/cjs/models/index.d.ts new file mode 100644 index 000000000..72c426a08 --- /dev/null +++ b/cjs/models/index.d.ts @@ -0,0 +1,44 @@ +export * from './v2'; +export * from './v3'; +export * from './asyncapi'; +export * from './base'; +export * from './binding'; +export * from './bindings'; +export * from './channel-parameter'; +export * from './channel-parameters'; +export * from './channel'; +export * from './channels'; +export * from './collection'; +export * from './components'; +export * from './contact'; +export * from './correlation-id'; +export * from './correlation-ids'; +export * from './extension'; +export * from './extensions'; +export * from './external-docs'; +export * from './info'; +export * from './license'; +export * from './message-example'; +export * from './message-examples'; +export * from './message-trait'; +export * from './message-traits'; +export * from './message'; +export * from './messages'; +export * from './oauth-flow'; +export * from './oauth-flows'; +export * from './operation-trait'; +export * from './operation-traits'; +export * from './operation'; +export * from './operations'; +export * from './schema'; +export * from './schemas'; +export * from './security-requirement'; +export * from './security-requirements'; +export * from './security-scheme'; +export * from './security-schemes'; +export * from './server-variable'; +export * from './server-variables'; +export * from './server'; +export * from './servers'; +export * from './tag'; +export * from './tags'; diff --git a/cjs/models/index.js b/cjs/models/index.js new file mode 100644 index 000000000..72a853e76 --- /dev/null +++ b/cjs/models/index.js @@ -0,0 +1,60 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(require("./v2"), exports); +__exportStar(require("./v3"), exports); +__exportStar(require("./asyncapi"), exports); +__exportStar(require("./base"), exports); +__exportStar(require("./binding"), exports); +__exportStar(require("./bindings"), exports); +__exportStar(require("./channel-parameter"), exports); +__exportStar(require("./channel-parameters"), exports); +__exportStar(require("./channel"), exports); +__exportStar(require("./channels"), exports); +__exportStar(require("./collection"), exports); +__exportStar(require("./components"), exports); +__exportStar(require("./contact"), exports); +__exportStar(require("./correlation-id"), exports); +__exportStar(require("./correlation-ids"), exports); +__exportStar(require("./extension"), exports); +__exportStar(require("./extensions"), exports); +__exportStar(require("./external-docs"), exports); +__exportStar(require("./info"), exports); +__exportStar(require("./license"), exports); +__exportStar(require("./message-example"), exports); +__exportStar(require("./message-examples"), exports); +__exportStar(require("./message-trait"), exports); +__exportStar(require("./message-traits"), exports); +__exportStar(require("./message"), exports); +__exportStar(require("./messages"), exports); +__exportStar(require("./oauth-flow"), exports); +__exportStar(require("./oauth-flows"), exports); +__exportStar(require("./operation-trait"), exports); +__exportStar(require("./operation-traits"), exports); +__exportStar(require("./operation"), exports); +__exportStar(require("./operations"), exports); +__exportStar(require("./schema"), exports); +__exportStar(require("./schemas"), exports); +__exportStar(require("./security-requirement"), exports); +__exportStar(require("./security-requirements"), exports); +__exportStar(require("./security-scheme"), exports); +__exportStar(require("./security-schemes"), exports); +__exportStar(require("./server-variable"), exports); +__exportStar(require("./server-variables"), exports); +__exportStar(require("./server"), exports); +__exportStar(require("./servers"), exports); +__exportStar(require("./tag"), exports); +__exportStar(require("./tags"), exports); diff --git a/cjs/models/info.d.ts b/cjs/models/info.d.ts new file mode 100644 index 000000000..33ce92d33 --- /dev/null +++ b/cjs/models/info.d.ts @@ -0,0 +1,16 @@ +import type { ContactInterface } from './contact'; +import type { LicenseInterface } from './license'; +import type { BaseModel } from './base'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; +export interface InfoInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { + title(): string; + version(): string; + hasId(): boolean; + id(): string | undefined; + hasTermsOfService(): boolean; + termsOfService(): string | undefined; + hasContact(): boolean; + contact(): ContactInterface | undefined; + hasLicense(): boolean; + license(): LicenseInterface | undefined; +} diff --git a/cjs/models/info.js b/cjs/models/info.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/info.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/license.d.ts b/cjs/models/license.d.ts new file mode 100644 index 000000000..55d4949b0 --- /dev/null +++ b/cjs/models/license.d.ts @@ -0,0 +1,7 @@ +import type { BaseModel } from './base'; +import type { ExtensionsMixinInterface } from './mixins'; +export interface LicenseInterface extends BaseModel, ExtensionsMixinInterface { + name(): string; + hasUrl(): boolean; + url(): string | undefined; +} diff --git a/cjs/models/license.js b/cjs/models/license.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/license.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/message-example.d.ts b/cjs/models/message-example.d.ts new file mode 100644 index 000000000..f929d876f --- /dev/null +++ b/cjs/models/message-example.d.ts @@ -0,0 +1,12 @@ +import type { BaseModel } from './base'; +import type { ExtensionsMixinInterface } from './mixins'; +export interface MessageExampleInterface extends BaseModel, ExtensionsMixinInterface { + hasName(): boolean; + name(): string | undefined; + hasSummary(): boolean; + summary(): string | undefined; + hasHeaders(): boolean; + headers(): Record | undefined; + hasPayload(): boolean; + payload(): Record | undefined; +} diff --git a/cjs/models/message-example.js b/cjs/models/message-example.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/message-example.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/message-examples.d.ts b/cjs/models/message-examples.d.ts new file mode 100644 index 000000000..de760b44a --- /dev/null +++ b/cjs/models/message-examples.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { MessageExampleInterface } from './message-example'; +export declare type MessageExamplesInterface = Collection; diff --git a/cjs/models/message-examples.js b/cjs/models/message-examples.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/message-examples.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/message-trait.d.ts b/cjs/models/message-trait.d.ts new file mode 100644 index 000000000..072afe0b3 --- /dev/null +++ b/cjs/models/message-trait.d.ts @@ -0,0 +1,24 @@ +import type { BaseModel } from './base'; +import type { CorrelationIdInterface } from './correlation-id'; +import type { MessageExamplesInterface } from './message-examples'; +import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; +import type { SchemaInterface } from './schema'; +export interface MessageTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { + id(): string; + schemaFormat(): string; + hasMessageId(): boolean; + messageId(): string | undefined; + hasCorrelationId(): boolean; + correlationId(): CorrelationIdInterface | undefined; + hasContentType(): boolean; + contentType(): string | undefined; + hasHeaders(): boolean; + headers(): SchemaInterface | undefined; + hasName(): boolean; + name(): string | undefined; + hasTitle(): boolean; + title(): string | undefined; + hasSummary(): boolean; + summary(): string | undefined; + examples(): MessageExamplesInterface; +} diff --git a/cjs/models/message-trait.js b/cjs/models/message-trait.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/message-trait.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/message-traits.d.ts b/cjs/models/message-traits.d.ts new file mode 100644 index 000000000..e440e2a55 --- /dev/null +++ b/cjs/models/message-traits.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { MessageTraitInterface } from './message-trait'; +export declare type MessageTraitsInterface = Collection; diff --git a/cjs/models/message-traits.js b/cjs/models/message-traits.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/message-traits.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/message.d.ts b/cjs/models/message.d.ts new file mode 100644 index 000000000..c030c3912 --- /dev/null +++ b/cjs/models/message.d.ts @@ -0,0 +1,15 @@ +import type { BaseModel } from './base'; +import type { ChannelsInterface } from './channels'; +import type { MessageTraitsInterface } from './message-traits'; +import type { MessageTraitInterface } from './message-trait'; +import type { OperationsInterface } from './operations'; +import type { SchemaInterface } from './schema'; +import type { ServersInterface } from './servers'; +export interface MessageInterface extends BaseModel, MessageTraitInterface { + hasPayload(): boolean; + payload(): SchemaInterface | undefined; + servers(): ServersInterface; + channels(): ChannelsInterface; + operations(): OperationsInterface; + traits(): MessageTraitsInterface; +} diff --git a/cjs/models/message.js b/cjs/models/message.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/message.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/messages.d.ts b/cjs/models/messages.d.ts new file mode 100644 index 000000000..614bbd142 --- /dev/null +++ b/cjs/models/messages.d.ts @@ -0,0 +1,6 @@ +import type { Collection } from './collection'; +import type { MessageInterface } from './message'; +export interface MessagesInterface extends Collection { + filterBySend(): MessageInterface[]; + filterByReceive(): MessageInterface[]; +} diff --git a/cjs/models/messages.js b/cjs/models/messages.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/messages.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/mixins.d.ts b/cjs/models/mixins.d.ts new file mode 100644 index 000000000..f910ef8ef --- /dev/null +++ b/cjs/models/mixins.d.ts @@ -0,0 +1,21 @@ +import type { BindingsInterface } from './bindings'; +import type { ExtensionsInterface } from './extensions'; +import type { ExternalDocumentationInterface } from './external-docs'; +import type { TagsInterface } from './tags'; +export interface BindingsMixinInterface { + bindings(): BindingsInterface; +} +export interface DescriptionMixinInterface { + hasDescription(): boolean; + description(): string | undefined; +} +export interface ExtensionsMixinInterface { + extensions(): ExtensionsInterface; +} +export interface ExternalDocumentationMixinInterface { + hasExternalDocs(): boolean; + externalDocs(): ExternalDocumentationInterface | undefined; +} +export interface TagsMixinInterface { + tags(): TagsInterface; +} diff --git a/cjs/models/mixins.js b/cjs/models/mixins.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/mixins.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/oauth-flow.d.ts b/cjs/models/oauth-flow.d.ts new file mode 100644 index 000000000..917293f35 --- /dev/null +++ b/cjs/models/oauth-flow.d.ts @@ -0,0 +1,9 @@ +import { BaseModel } from './base'; +import { ExtensionsMixinInterface } from './mixins'; +export interface OAuthFlowInterface = Record> extends BaseModel, ExtensionsMixinInterface { + authorizationUrl(): string | undefined; + hasRefreshUrl(): boolean; + refreshUrl(): string | undefined; + scopes(): Record | undefined; + tokenUrl(): string | undefined; +} diff --git a/cjs/models/oauth-flow.js b/cjs/models/oauth-flow.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/oauth-flow.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/oauth-flows.d.ts b/cjs/models/oauth-flows.d.ts new file mode 100644 index 000000000..9d4a9c332 --- /dev/null +++ b/cjs/models/oauth-flows.d.ts @@ -0,0 +1,13 @@ +import type { BaseModel } from './base'; +import type { OAuthFlowInterface } from './oauth-flow'; +import type { ExtensionsMixinInterface } from './mixins'; +export interface OAuthFlowsInterface extends BaseModel, ExtensionsMixinInterface { + hasAuthorizationCode(): boolean; + authorizationCode(): OAuthFlowInterface | undefined; + hasClientCredentials(): boolean; + clientCredentials(): OAuthFlowInterface | undefined; + hasImplicit(): boolean; + implicit(): OAuthFlowInterface | undefined; + hasPassword(): boolean; + password(): OAuthFlowInterface | undefined; +} diff --git a/cjs/models/oauth-flows.js b/cjs/models/oauth-flows.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/oauth-flows.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/operation-trait.d.ts b/cjs/models/operation-trait.d.ts new file mode 100644 index 000000000..7e86617e9 --- /dev/null +++ b/cjs/models/operation-trait.d.ts @@ -0,0 +1,11 @@ +import type { BaseModel } from './base'; +import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; +import { SecurityRequirements } from './v2/security-requirements'; +export interface OperationTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { + id(): string; + hasOperationId(): boolean; + operationId(): string | undefined; + hasSummary(): boolean; + summary(): string | undefined; + security(): SecurityRequirements[]; +} diff --git a/cjs/models/operation-trait.js b/cjs/models/operation-trait.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/operation-trait.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/operation-traits.d.ts b/cjs/models/operation-traits.d.ts new file mode 100644 index 000000000..2b9d57562 --- /dev/null +++ b/cjs/models/operation-traits.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { OperationTraitInterface } from './operation-trait'; +export declare type OperationTraitsInterface = Collection; diff --git a/cjs/models/operation-traits.js b/cjs/models/operation-traits.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/operation-traits.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/operation.d.ts b/cjs/models/operation.d.ts new file mode 100644 index 000000000..376039f58 --- /dev/null +++ b/cjs/models/operation.d.ts @@ -0,0 +1,16 @@ +import type { BaseModel } from './base'; +import type { ChannelsInterface } from './channels'; +import type { MessagesInterface } from './messages'; +import type { OperationTraitsInterface } from './operation-traits'; +import type { OperationTraitInterface } from './operation-trait'; +import type { ServersInterface } from './servers'; +export declare type OperationAction = 'send' | 'receive' | 'publish' | 'subscribe'; +export interface OperationInterface extends BaseModel, OperationTraitInterface { + action(): OperationAction; + isSend(): boolean; + isReceive(): boolean; + servers(): ServersInterface; + channels(): ChannelsInterface; + messages(): MessagesInterface; + traits(): OperationTraitsInterface; +} diff --git a/cjs/models/operation.js b/cjs/models/operation.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/operation.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/operations.d.ts b/cjs/models/operations.d.ts new file mode 100644 index 000000000..378a78e84 --- /dev/null +++ b/cjs/models/operations.d.ts @@ -0,0 +1,6 @@ +import type { Collection } from './collection'; +import type { OperationInterface } from './operation'; +export interface OperationsInterface extends Collection { + filterBySend(): OperationInterface[]; + filterByReceive(): OperationInterface[]; +} diff --git a/cjs/models/operations.js b/cjs/models/operations.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/operations.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/schema.d.ts b/cjs/models/schema.d.ts new file mode 100644 index 000000000..6865ca86f --- /dev/null +++ b/cjs/models/schema.d.ts @@ -0,0 +1,56 @@ +import type { BaseModel } from './base'; +import type { ExtensionsMixinInterface, ExternalDocumentationMixinInterface } from './mixins'; +import type { v2 } from '../spec-types'; +export interface SchemaInterface extends BaseModel, ExtensionsMixinInterface, ExternalDocumentationMixinInterface { + uid(): string; + $comment(): string | undefined; + $id(): string | undefined; + $schema(): string; + additionalItems(): boolean | SchemaInterface; + additionalProperties(): boolean | SchemaInterface; + allOf(): Array | undefined; + anyOf(): Array | undefined; + const(): any; + contains(): SchemaInterface | undefined; + contentEncoding(): string | undefined; + contentMediaType(): string | undefined; + default(): any; + definitions(): Record | undefined; + description(): string | undefined; + dependencies(): Record> | undefined; + deprecated(): boolean; + discriminator(): string | undefined; + else(): SchemaInterface | undefined; + enum(): Array | undefined; + examples(): Array | undefined; + exclusiveMaximum(): number | undefined; + exclusiveMinimum(): number | undefined; + format(): string | undefined; + isBooleanSchema(): boolean; + if(): SchemaInterface | undefined; + isCircular(): boolean; + items(): SchemaInterface | Array | undefined; + maximum(): number | undefined; + maxItems(): number | undefined; + maxLength(): number | undefined; + maxProperties(): number | undefined; + minimum(): number | undefined; + minItems(): number | undefined; + minLength(): number | undefined; + minProperties(): number | undefined; + multipleOf(): number | undefined; + not(): SchemaInterface | undefined; + oneOf(): Array | undefined; + pattern(): string | undefined; + patternProperties(): Record | undefined; + properties(): Record | undefined; + property(name: string): SchemaInterface | undefined; + propertyNames(): SchemaInterface | undefined; + readOnly(): boolean | undefined; + required(): Array | undefined; + then(): SchemaInterface | undefined; + title(): string | undefined; + type(): string | Array | undefined; + uniqueItems(): boolean | undefined; + writeOnly(): boolean | undefined; +} diff --git a/cjs/models/schema.js b/cjs/models/schema.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/schema.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/schemas.d.ts b/cjs/models/schemas.d.ts new file mode 100644 index 000000000..8985decf1 --- /dev/null +++ b/cjs/models/schemas.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { SchemaInterface } from './schema'; +export declare type SchemasInterface = Collection; diff --git a/cjs/models/schemas.js b/cjs/models/schemas.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/schemas.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/security-requirement.d.ts b/cjs/models/security-requirement.d.ts new file mode 100644 index 000000000..e56dbf50e --- /dev/null +++ b/cjs/models/security-requirement.d.ts @@ -0,0 +1,6 @@ +import type { BaseModel } from './base'; +import type { SecuritySchemeInterface } from './security-scheme'; +export interface SecurityRequirementInterface extends BaseModel { + scheme(): SecuritySchemeInterface; + scopes(): string[]; +} diff --git a/cjs/models/security-requirement.js b/cjs/models/security-requirement.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/security-requirement.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/security-requirements.d.ts b/cjs/models/security-requirements.d.ts new file mode 100644 index 000000000..223d629cc --- /dev/null +++ b/cjs/models/security-requirements.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { SecurityRequirementInterface } from './security-requirement'; +export declare type SecurityRequirementsInterface = Collection; diff --git a/cjs/models/security-requirements.js b/cjs/models/security-requirements.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/security-requirements.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/security-scheme.d.ts b/cjs/models/security-scheme.d.ts new file mode 100644 index 000000000..c891e3af3 --- /dev/null +++ b/cjs/models/security-scheme.d.ts @@ -0,0 +1,13 @@ +import type { BaseModel } from './base'; +import type { OAuthFlowsInterface } from './oauth-flows'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +export interface SecuritySchemeInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { + id(): string; + hasBearerFormat(): boolean; + bearerFormat(): string | undefined; + openIdConnectUrl(): string | undefined; + scheme(): string | undefined; + flows(): OAuthFlowsInterface | undefined; + type(): string; + in(): string | undefined; +} diff --git a/cjs/models/security-scheme.js b/cjs/models/security-scheme.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/security-scheme.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/security-schemes.d.ts b/cjs/models/security-schemes.d.ts new file mode 100644 index 000000000..2b8b7642b --- /dev/null +++ b/cjs/models/security-schemes.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { SecuritySchemeInterface } from './security-scheme'; +export declare type SecuritySchemesInterface = Collection; diff --git a/cjs/models/security-schemes.js b/cjs/models/security-schemes.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/security-schemes.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/server-variable.d.ts b/cjs/models/server-variable.d.ts new file mode 100644 index 000000000..85faa6989 --- /dev/null +++ b/cjs/models/server-variable.d.ts @@ -0,0 +1,10 @@ +import type { BaseModel } from './base'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +export interface ServerVariableInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { + id(): string; + hasDefaultValue(): boolean; + defaultValue(): string | undefined; + hasAllowedValues(): boolean; + allowedValues(): Array; + examples(): Array; +} diff --git a/cjs/models/server-variable.js b/cjs/models/server-variable.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/server-variable.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/server-variables.d.ts b/cjs/models/server-variables.d.ts new file mode 100644 index 000000000..dfe43deb8 --- /dev/null +++ b/cjs/models/server-variables.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { ServerVariableInterface } from './server-variable'; +export declare type ServerVariablesInterface = Collection; diff --git a/cjs/models/server-variables.js b/cjs/models/server-variables.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/server-variables.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/server.d.ts b/cjs/models/server.d.ts new file mode 100644 index 000000000..c4cf19dbe --- /dev/null +++ b/cjs/models/server.d.ts @@ -0,0 +1,19 @@ +import type { BaseModel } from './base'; +import type { ChannelsInterface } from './channels'; +import type { MessagesInterface } from './messages'; +import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +import type { OperationsInterface } from './operations'; +import type { ServerVariablesInterface } from './server-variables'; +import type { SecurityRequirementsInterface } from './security-requirements'; +export interface ServerInterface extends BaseModel, DescriptionMixinInterface, BindingsMixinInterface, ExtensionsMixinInterface { + id(): string; + url(): string; + protocol(): string; + protocolVersion(): string | undefined; + hasProtocolVersion(): boolean; + channels(): ChannelsInterface; + operations(): OperationsInterface; + messages(): MessagesInterface; + variables(): ServerVariablesInterface; + security(): SecurityRequirementsInterface[]; +} diff --git a/cjs/models/server.js b/cjs/models/server.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/server.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/servers.d.ts b/cjs/models/servers.d.ts new file mode 100644 index 000000000..3108b996e --- /dev/null +++ b/cjs/models/servers.d.ts @@ -0,0 +1,6 @@ +import type { Collection } from './collection'; +import type { ServerInterface } from './server'; +export interface ServersInterface extends Collection { + filterBySend(): ServerInterface[]; + filterByReceive(): ServerInterface[]; +} diff --git a/cjs/models/servers.js b/cjs/models/servers.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/servers.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/tag.d.ts b/cjs/models/tag.d.ts new file mode 100644 index 000000000..019512db2 --- /dev/null +++ b/cjs/models/tag.d.ts @@ -0,0 +1,5 @@ +import type { BaseModel } from './base'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface } from './mixins'; +export interface TagInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface { + name(): string; +} diff --git a/cjs/models/tag.js b/cjs/models/tag.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/tag.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/tags.d.ts b/cjs/models/tags.d.ts new file mode 100644 index 000000000..d519e6de9 --- /dev/null +++ b/cjs/models/tags.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { TagInterface } from './tag'; +export declare type TagsInterface = Collection; diff --git a/cjs/models/tags.js b/cjs/models/tags.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/models/tags.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/utils.d.ts b/cjs/models/utils.d.ts new file mode 100644 index 000000000..91938e617 --- /dev/null +++ b/cjs/models/utils.d.ts @@ -0,0 +1,10 @@ +import type { BaseModel, ModelMetadata } from './base'; +import type { DetailedAsyncAPI } from '../types'; +export interface Constructor extends Function { + new (...any: any[]): T; +} +export declare type InferModelData = T extends BaseModel ? J : never; +export declare type InferModelMetadata = T extends BaseModel ? M : never; +export declare function createModel(Model: Constructor, value: InferModelData, meta: Omit & { + asyncapi?: DetailedAsyncAPI; +} & InferModelMetadata, parent?: BaseModel): T; diff --git a/cjs/models/utils.js b/cjs/models/utils.js new file mode 100644 index 000000000..880f1a0d9 --- /dev/null +++ b/cjs/models/utils.js @@ -0,0 +1,7 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createModel = void 0; +function createModel(Model, value, meta, parent) { + return new Model(value, Object.assign(Object.assign({}, meta), { asyncapi: meta.asyncapi || (parent === null || parent === void 0 ? void 0 : parent.meta().asyncapi) })); +} +exports.createModel = createModel; diff --git a/cjs/models/v2/asyncapi.d.ts b/cjs/models/v2/asyncapi.d.ts new file mode 100644 index 000000000..a1e7468d0 --- /dev/null +++ b/cjs/models/v2/asyncapi.d.ts @@ -0,0 +1,26 @@ +import { BaseModel } from '../base'; +import type { AsyncAPIDocumentInterface } from '../asyncapi'; +import type { InfoInterface } from '../info'; +import type { ServersInterface } from '../servers'; +import type { ChannelsInterface } from '../channels'; +import type { ComponentsInterface } from '../components'; +import type { OperationsInterface } from '../operations'; +import type { MessagesInterface } from '../messages'; +import type { SchemasInterface } from '../schemas'; +import type { SecuritySchemesInterface } from '../security-schemes'; +import type { ExtensionsInterface } from '../extensions'; +import type { v2 } from '../../spec-types'; +export declare class AsyncAPIDocument extends BaseModel implements AsyncAPIDocumentInterface { + version(): string; + defaultContentType(): string | undefined; + hasDefaultContentType(): boolean; + info(): InfoInterface; + servers(): ServersInterface; + channels(): ChannelsInterface; + operations(): OperationsInterface; + messages(): MessagesInterface; + schemas(): SchemasInterface; + securitySchemes(): SecuritySchemesInterface; + components(): ComponentsInterface; + extensions(): ExtensionsInterface; +} diff --git a/cjs/models/v2/asyncapi.js b/cjs/models/v2/asyncapi.js new file mode 100644 index 000000000..18c86a9d5 --- /dev/null +++ b/cjs/models/v2/asyncapi.js @@ -0,0 +1,61 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AsyncAPIDocument = void 0; +const base_1 = require("../base"); +const info_1 = require("./info"); +const channels_1 = require("./channels"); +const channel_1 = require("./channel"); +const components_1 = require("./components"); +const messages_1 = require("./messages"); +const operations_1 = require("./operations"); +const servers_1 = require("./servers"); +const server_1 = require("./server"); +const security_schemes_1 = require("./security-schemes"); +const security_scheme_1 = require("./security-scheme"); +const schemas_1 = require("./schemas"); +const mixins_1 = require("./mixins"); +const utils_1 = require("../../utils"); +class AsyncAPIDocument extends base_1.BaseModel { + version() { + return this._json.asyncapi; + } + defaultContentType() { + return this._json.defaultContentType; + } + hasDefaultContentType() { + return !!this._json.defaultContentType; + } + info() { + return this.createModel(info_1.Info, this._json.info, { pointer: '/info' }); + } + servers() { + return new servers_1.Servers(Object.entries(this._json.servers || {}).map(([serverName, server]) => this.createModel(server_1.Server, server, { id: serverName, pointer: `/servers/${serverName}` }))); + } + channels() { + return new channels_1.Channels(Object.entries(this._json.channels || {}).map(([channelAddress, channel]) => this.createModel(channel_1.Channel, channel, { id: channelAddress, address: channelAddress, pointer: `/channels/${(0, utils_1.tilde)(channelAddress)}` }))); + } + operations() { + const operations = []; + this.channels().forEach(channel => operations.push(...channel.operations().all())); + return new operations_1.Operations(operations); + } + messages() { + const messages = []; + this.operations().forEach(operation => messages.push(...operation.messages().all())); + return new messages_1.Messages(messages); + } + schemas() { + return new schemas_1.Schemas([]); + } + securitySchemes() { + var _a; + return new security_schemes_1.SecuritySchemes(Object.entries(((_a = this._json.components) === null || _a === void 0 ? void 0 : _a.securitySchemes) || {}).map(([securitySchemeName, securityScheme]) => this.createModel(security_scheme_1.SecurityScheme, securityScheme, { id: securitySchemeName, pointer: `/components/securitySchemes/${securitySchemeName}` }))); + } + components() { + return this.createModel(components_1.Components, this._json.components || {}, { pointer: '/components' }); + } + extensions() { + return (0, mixins_1.extensions)(this); + } +} +exports.AsyncAPIDocument = AsyncAPIDocument; diff --git a/cjs/models/v2/binding.d.ts b/cjs/models/v2/binding.d.ts new file mode 100644 index 000000000..6e13a3caf --- /dev/null +++ b/cjs/models/v2/binding.d.ts @@ -0,0 +1,12 @@ +import { BaseModel } from '../base'; +import type { BindingInterface } from '../binding'; +import type { ExtensionsInterface } from '../extensions'; +import type { v2 } from '../../spec-types'; +export declare class Binding = Record> extends BaseModel implements BindingInterface { + protocol(): string; + version(): string; + value(): V; + extensions(): ExtensionsInterface; +} diff --git a/cjs/models/v2/binding.js b/cjs/models/v2/binding.js new file mode 100644 index 000000000..52c49f724 --- /dev/null +++ b/cjs/models/v2/binding.js @@ -0,0 +1,22 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Binding = void 0; +const base_1 = require("../base"); +const mixins_1 = require("./mixins"); +class Binding extends base_1.BaseModel { + protocol() { + return this._meta.protocol; + } + version() { + return this._json.bindingVersion || 'latest'; + } + value() { + const value = Object.assign({}, this._json); + delete value.bindingVersion; + return value; + } + extensions() { + return (0, mixins_1.extensions)(this); + } +} +exports.Binding = Binding; diff --git a/cjs/models/v2/bindings.d.ts b/cjs/models/v2/bindings.d.ts new file mode 100644 index 000000000..366f2d369 --- /dev/null +++ b/cjs/models/v2/bindings.d.ts @@ -0,0 +1,8 @@ +import { Collection } from '../collection'; +import type { BindingsInterface } from '../bindings'; +import type { BindingInterface } from '../binding'; +import type { ExtensionsInterface } from '../extensions'; +export declare class Bindings extends Collection implements BindingsInterface { + get = Record>(name: string): BindingInterface | undefined; + extensions(): ExtensionsInterface; +} diff --git a/cjs/models/v2/bindings.js b/cjs/models/v2/bindings.js new file mode 100644 index 000000000..793406ac1 --- /dev/null +++ b/cjs/models/v2/bindings.js @@ -0,0 +1,23 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Bindings = void 0; +const collection_1 = require("../collection"); +const extensions_1 = require("./extensions"); +const extension_1 = require("./extension"); +const utils_1 = require("../utils"); +const constants_1 = require("../../constants"); +class Bindings extends collection_1.Collection { + get(name) { + return this.collections.find(binding => binding.protocol() === name); + } + extensions() { + const extensions = []; + Object.entries(this._meta.originalData || {}).forEach(([id, value]) => { + if (constants_1.EXTENSION_REGEX.test(id)) { + extensions.push((0, utils_1.createModel)(extension_1.Extension, value, { id, pointer: `${this._meta.pointer}/${id}`, asyncapi: this._meta.asyncapi })); + } + }); + return new extensions_1.Extensions(extensions); + } +} +exports.Bindings = Bindings; diff --git a/cjs/models/v2/channel-parameter.d.ts b/cjs/models/v2/channel-parameter.d.ts new file mode 100644 index 000000000..ba1abeedd --- /dev/null +++ b/cjs/models/v2/channel-parameter.d.ts @@ -0,0 +1,17 @@ +import { BaseModel } from '../base'; +import type { ChannelParameterInterface } from '../channel-parameter'; +import type { SchemaInterface } from '../schema'; +import type { ExtensionsInterface } from '../extensions'; +import type { v2 } from '../../spec-types'; +export declare class ChannelParameter extends BaseModel implements ChannelParameterInterface { + id(): string; + hasSchema(): boolean; + schema(): SchemaInterface | undefined; + hasLocation(): boolean; + location(): string | undefined; + hasDescription(): boolean; + description(): string | undefined; + extensions(): ExtensionsInterface; +} diff --git a/cjs/models/v2/channel-parameter.js b/cjs/models/v2/channel-parameter.js new file mode 100644 index 000000000..5bada8346 --- /dev/null +++ b/cjs/models/v2/channel-parameter.js @@ -0,0 +1,35 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ChannelParameter = void 0; +const base_1 = require("../base"); +const schema_1 = require("./schema"); +const mixins_1 = require("./mixins"); +class ChannelParameter extends base_1.BaseModel { + id() { + return this._meta.id; + } + hasSchema() { + return !!this._json.schema; + } + schema() { + if (!this._json.schema) + return undefined; + return this.createModel(schema_1.Schema, this._json.schema, { pointer: `${this._meta.pointer}/schema` }); + } + hasLocation() { + return !!this._json.location; + } + location() { + return this._json.location; + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + description() { + return (0, mixins_1.description)(this); + } + extensions() { + return (0, mixins_1.extensions)(this); + } +} +exports.ChannelParameter = ChannelParameter; diff --git a/cjs/models/v2/channel-parameters.d.ts b/cjs/models/v2/channel-parameters.d.ts new file mode 100644 index 000000000..93abd0a6e --- /dev/null +++ b/cjs/models/v2/channel-parameters.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { ChannelParametersInterface } from '../channel-parameters'; +import type { ChannelParameterInterface } from '../channel-parameter'; +export declare class ChannelParameters extends Collection implements ChannelParametersInterface { + get(id: string): ChannelParameterInterface | undefined; +} diff --git a/cjs/models/v2/channel-parameters.js b/cjs/models/v2/channel-parameters.js new file mode 100644 index 000000000..f81c49068 --- /dev/null +++ b/cjs/models/v2/channel-parameters.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ChannelParameters = void 0; +const collection_1 = require("../collection"); +class ChannelParameters extends collection_1.Collection { + get(id) { + return this.collections.find(parameter => parameter.id() === id); + } +} +exports.ChannelParameters = ChannelParameters; diff --git a/cjs/models/v2/channel.d.ts b/cjs/models/v2/channel.d.ts new file mode 100644 index 000000000..669ca948b --- /dev/null +++ b/cjs/models/v2/channel.d.ts @@ -0,0 +1,24 @@ +import { BaseModel } from '../base'; +import type { BindingsInterface } from '../bindings'; +import type { ChannelInterface } from '../channel'; +import type { ChannelParametersInterface } from '../channel-parameters'; +import type { ExtensionsInterface } from '../extensions'; +import type { MessagesInterface } from '../messages'; +import type { OperationsInterface } from '../operations'; +import type { ServersInterface } from '../servers'; +import type { v2 } from '../../spec-types'; +export declare class Channel extends BaseModel implements ChannelInterface { + id(): string; + address(): string; + hasDescription(): boolean; + description(): string | undefined; + servers(): ServersInterface; + operations(): OperationsInterface; + messages(): MessagesInterface; + parameters(): ChannelParametersInterface; + bindings(): BindingsInterface; + extensions(): ExtensionsInterface; +} diff --git a/cjs/models/v2/channel.js b/cjs/models/v2/channel.js new file mode 100644 index 000000000..92e4836a8 --- /dev/null +++ b/cjs/models/v2/channel.js @@ -0,0 +1,67 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Channel = void 0; +const base_1 = require("../base"); +const channel_parameters_1 = require("./channel-parameters"); +const channel_parameter_1 = require("./channel-parameter"); +const messages_1 = require("./messages"); +const operations_1 = require("./operations"); +const operation_1 = require("./operation"); +const servers_1 = require("./servers"); +const server_1 = require("./server"); +const mixins_1 = require("./mixins"); +class Channel extends base_1.BaseModel { + id() { + return this._meta.id; + } + address() { + return this._meta.address; + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + description() { + return (0, mixins_1.description)(this); + } + servers() { + var _a; + const servers = []; + const allowedServers = this._json.servers || []; + Object.entries(((_a = this._meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed.servers) || {}).forEach(([serverName, server]) => { + if (allowedServers.length === 0 || allowedServers.includes(serverName)) { + servers.push(this.createModel(server_1.Server, server, { id: serverName, pointer: `/servers/${serverName}` })); + } + }); + return new servers_1.Servers(servers); + } + operations() { + const operations = []; + ['publish', 'subscribe'].forEach(operationAction => { + const id = this._json[operationAction] && this._json[operationAction].operationId || `${this.meta().id}_${operationAction}`; + if (this._json[operationAction]) { + operations.push(this.createModel(operation_1.Operation, this._json[operationAction], { id, action: operationAction, pointer: `${this._meta.pointer}/${operationAction}` })); + } + }); + return new operations_1.Operations(operations); + } + messages() { + const messages = []; + this.operations().forEach(operation => messages.push(...operation.messages().all())); + return new messages_1.Messages(messages); + } + parameters() { + return new channel_parameters_1.ChannelParameters(Object.entries(this._json.parameters || {}).map(([channelParameterName, channelParameter]) => { + return this.createModel(channel_parameter_1.ChannelParameter, channelParameter, { + id: channelParameterName, + pointer: `${this._meta.pointer}/parameters/${channelParameterName}` + }); + })); + } + bindings() { + return (0, mixins_1.bindings)(this); + } + extensions() { + return (0, mixins_1.extensions)(this); + } +} +exports.Channel = Channel; diff --git a/cjs/models/v2/channels.d.ts b/cjs/models/v2/channels.d.ts new file mode 100644 index 000000000..01b199506 --- /dev/null +++ b/cjs/models/v2/channels.d.ts @@ -0,0 +1,8 @@ +import { Collection } from '../collection'; +import type { ChannelsInterface } from '../channels'; +import type { ChannelInterface } from '../channel'; +export declare class Channels extends Collection implements ChannelsInterface { + get(id: string): ChannelInterface | undefined; + filterBySend(): ChannelInterface[]; + filterByReceive(): ChannelInterface[]; +} diff --git a/cjs/models/v2/channels.js b/cjs/models/v2/channels.js new file mode 100644 index 000000000..da2dd1deb --- /dev/null +++ b/cjs/models/v2/channels.js @@ -0,0 +1,16 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Channels = void 0; +const collection_1 = require("../collection"); +class Channels extends collection_1.Collection { + get(id) { + return this.collections.find(channel => channel.id() === id); + } + filterBySend() { + return this.filterBy(channel => channel.operations().filterBySend().length > 0); + } + filterByReceive() { + return this.filterBy(channel => channel.operations().filterByReceive().length > 0); + } +} +exports.Channels = Channels; diff --git a/cjs/models/v2/components.d.ts b/cjs/models/v2/components.d.ts new file mode 100644 index 000000000..3d4422373 --- /dev/null +++ b/cjs/models/v2/components.d.ts @@ -0,0 +1,39 @@ +import { BaseModel } from '../base'; +import { Collection } from '../collection'; +import { CorrelationIds } from './correlation-ids'; +import type { BindingsInterface } from '../bindings'; +import type { ComponentsInterface } from '../components'; +import type { ExtensionsInterface } from '../extensions'; +import type { Constructor } from '../utils'; +import type { ServersInterface } from '../servers'; +import type { ChannelsInterface } from '../channels'; +import type { MessagesInterface } from '../messages'; +import type { SchemasInterface } from '../schemas'; +import type { ChannelParametersInterface } from '../channel-parameters'; +import type { ServerVariablesInterface } from '../server-variables'; +import type { OperationTraitsInterface } from '../operation-traits'; +import type { SecuritySchemesInterface } from '../security-schemes'; +import type { MessageTraitsInterface } from '../message-traits'; +import type { OperationsInterface } from '../operations'; +import type { v2 } from '../../spec-types'; +export declare class Components extends BaseModel implements ComponentsInterface { + servers(): ServersInterface; + channels(): ChannelsInterface; + messages(): MessagesInterface; + schemas(): SchemasInterface; + channelParameters(): ChannelParametersInterface; + serverVariables(): ServerVariablesInterface; + operations(): OperationsInterface; + operationTraits(): OperationTraitsInterface; + messageTraits(): MessageTraitsInterface; + correlationIds(): CorrelationIds; + securitySchemes(): SecuritySchemesInterface; + serverBindings(): Record; + channelBindings(): Record; + operationBindings(): Record; + messageBindings(): Record; + extensions(): ExtensionsInterface; + isEmpty(): boolean; + protected createCollection, T extends BaseModel>(itemsName: keyof v2.ComponentsObject, collectionModel: Constructor, itemModel: Constructor): M; + protected createBindings(itemsName: 'serverBindings' | 'channelBindings' | 'operationBindings' | 'messageBindings'): Record; +} diff --git a/cjs/models/v2/components.js b/cjs/models/v2/components.js new file mode 100644 index 000000000..93493e2b4 --- /dev/null +++ b/cjs/models/v2/components.js @@ -0,0 +1,101 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Components = void 0; +const base_1 = require("../base"); +const bindings_1 = require("./bindings"); +const binding_1 = require("./binding"); +const channel_1 = require("./channel"); +const channel_parameter_1 = require("./channel-parameter"); +const correlation_id_1 = require("./correlation-id"); +const message_trait_1 = require("./message-trait"); +const operation_trait_1 = require("./operation-trait"); +const schema_1 = require("./schema"); +const security_scheme_1 = require("./security-scheme"); +const server_1 = require("./server"); +const server_variable_1 = require("./server-variable"); +const mixins_1 = require("./mixins"); +const servers_1 = require("./servers"); +const channels_1 = require("./channels"); +const messages_1 = require("./messages"); +const schemas_1 = require("./schemas"); +const channel_parameters_1 = require("./channel-parameters"); +const server_variables_1 = require("./server-variables"); +const operation_traits_1 = require("./operation-traits"); +const message_traits_1 = require("./message-traits"); +const security_schemes_1 = require("./security-schemes"); +const correlation_ids_1 = require("./correlation-ids"); +const operations_1 = require("./operations"); +const message_1 = require("./message"); +const utils_1 = require("../../utils"); +class Components extends base_1.BaseModel { + servers() { + return this.createCollection('servers', servers_1.Servers, server_1.Server); + } + channels() { + return new channels_1.Channels(Object.entries(this._json.channels || {}).map(([channelAddress, channel]) => this.createModel(channel_1.Channel, channel, { id: channelAddress, address: '', pointer: `/components/channels/${(0, utils_1.tilde)(channelAddress)}` }))); + } + messages() { + return this.createCollection('messages', messages_1.Messages, message_1.Message); + } + schemas() { + return this.createCollection('schemas', schemas_1.Schemas, schema_1.Schema); + } + channelParameters() { + return this.createCollection('parameters', channel_parameters_1.ChannelParameters, channel_parameter_1.ChannelParameter); + } + serverVariables() { + return this.createCollection('serverVariables', server_variables_1.ServerVariables, server_variable_1.ServerVariable); + } + operations() { + const operations = []; + this.channels().forEach(channel => operations.push(...channel.operations().all())); + return new operations_1.Operations(operations); + } + operationTraits() { + return this.createCollection('operationTraits', operation_traits_1.OperationTraits, operation_trait_1.OperationTrait); + } + messageTraits() { + return this.createCollection('messageTraits', message_traits_1.MessageTraits, message_trait_1.MessageTrait); + } + correlationIds() { + return this.createCollection('correlationIds', correlation_ids_1.CorrelationIds, correlation_id_1.CorrelationId); + } + securitySchemes() { + return this.createCollection('securitySchemes', security_schemes_1.SecuritySchemes, security_scheme_1.SecurityScheme); + } + serverBindings() { + return this.createBindings('serverBindings'); + } + channelBindings() { + return this.createBindings('channelBindings'); + } + operationBindings() { + return this.createBindings('operationBindings'); + } + messageBindings() { + return this.createBindings('messageBindings'); + } + extensions() { + return (0, mixins_1.extensions)(this); + } + isEmpty() { + return Object.keys(this._json).length === 0; + } + createCollection(itemsName, collectionModel, itemModel) { + const collectionItems = []; + Object.entries(this._json[itemsName] || {}).forEach(([id, item]) => { + collectionItems.push(this.createModel(itemModel, item, { id, pointer: `/components/${itemsName}/${id}` })); + }); + return new collectionModel(collectionItems); + } + createBindings(itemsName) { + return Object.entries(this._json[itemsName] || {}).reduce((bindings, [name, item]) => { + const bindingsData = item || {}; + const asyncapi = this.meta('asyncapi'); + const pointer = `components/${itemsName}/${name}`; + bindings[name] = new bindings_1.Bindings(Object.entries(bindingsData).map(([protocol, binding]) => this.createModel(binding_1.Binding, binding, { protocol, pointer: `${pointer}/${protocol}` })), { originalData: bindingsData, asyncapi, pointer }); + return bindings; + }, {}); + } +} +exports.Components = Components; diff --git a/cjs/models/v2/contact.d.ts b/cjs/models/v2/contact.d.ts new file mode 100644 index 000000000..cde7fe085 --- /dev/null +++ b/cjs/models/v2/contact.d.ts @@ -0,0 +1,13 @@ +import { BaseModel } from '../base'; +import type { ContactInterface } from '../contact'; +import type { ExtensionsInterface } from '../extensions'; +import type { v2 } from '../../spec-types'; +export declare class Contact extends BaseModel implements ContactInterface { + hasName(): boolean; + name(): string | undefined; + hasUrl(): boolean; + url(): string | undefined; + hasEmail(): boolean; + email(): string | undefined; + extensions(): ExtensionsInterface; +} diff --git a/cjs/models/v2/contact.js b/cjs/models/v2/contact.js new file mode 100644 index 000000000..2645428f8 --- /dev/null +++ b/cjs/models/v2/contact.js @@ -0,0 +1,29 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Contact = void 0; +const base_1 = require("../base"); +const mixins_1 = require("./mixins"); +class Contact extends base_1.BaseModel { + hasName() { + return !!this._json.name; + } + name() { + return this._json.name; + } + hasUrl() { + return !!this._json.url; + } + url() { + return this._json.url; + } + hasEmail() { + return !!this._json.email; + } + email() { + return this._json.email; + } + extensions() { + return (0, mixins_1.extensions)(this); + } +} +exports.Contact = Contact; diff --git a/cjs/models/v2/correlation-id.d.ts b/cjs/models/v2/correlation-id.d.ts new file mode 100644 index 000000000..cb1dc1ad6 --- /dev/null +++ b/cjs/models/v2/correlation-id.d.ts @@ -0,0 +1,11 @@ +import { BaseModel } from '../base'; +import type { CorrelationIdInterface } from '../correlation-id'; +import type { ExtensionsInterface } from '../extensions'; +import type { v2 } from '../../spec-types'; +export declare class CorrelationId extends BaseModel implements CorrelationIdInterface { + hasDescription(): boolean; + description(): string | undefined; + hasLocation(): boolean; + location(): string | undefined; + extensions(): ExtensionsInterface; +} diff --git a/cjs/models/v2/correlation-id.js b/cjs/models/v2/correlation-id.js new file mode 100644 index 000000000..3fd7016da --- /dev/null +++ b/cjs/models/v2/correlation-id.js @@ -0,0 +1,23 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CorrelationId = void 0; +const base_1 = require("../base"); +const mixins_1 = require("./mixins"); +class CorrelationId extends base_1.BaseModel { + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + description() { + return (0, mixins_1.description)(this); + } + hasLocation() { + return !!this._json.location; + } + location() { + return this._json.location; + } + extensions() { + return (0, mixins_1.extensions)(this); + } +} +exports.CorrelationId = CorrelationId; diff --git a/cjs/models/v2/correlation-ids.d.ts b/cjs/models/v2/correlation-ids.d.ts new file mode 100644 index 000000000..77f81c952 --- /dev/null +++ b/cjs/models/v2/correlation-ids.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { CorrelationIdsInterface } from '../correlation-ids'; +import type { CorrelationIdInterface } from '../correlation-id'; +export declare class CorrelationIds extends Collection implements CorrelationIdsInterface { + get(id: string): CorrelationIdInterface | undefined; +} diff --git a/cjs/models/v2/correlation-ids.js b/cjs/models/v2/correlation-ids.js new file mode 100644 index 000000000..cd9023f85 --- /dev/null +++ b/cjs/models/v2/correlation-ids.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CorrelationIds = void 0; +const collection_1 = require("../collection"); +class CorrelationIds extends collection_1.Collection { + get(id) { + return this.collections.find(correlationId => correlationId.meta('id') === id); + } +} +exports.CorrelationIds = CorrelationIds; diff --git a/cjs/models/v2/extension.d.ts b/cjs/models/v2/extension.d.ts new file mode 100644 index 000000000..6ebfad81c --- /dev/null +++ b/cjs/models/v2/extension.d.ts @@ -0,0 +1,10 @@ +import { BaseModel } from '../base'; +import type { ExtensionInterface } from '../extension'; +import type { v2 } from '../../spec-types'; +export declare class Extension extends BaseModel, { + id: string; +}> implements ExtensionInterface { + id(): string; + version(): string; + value(): V; +} diff --git a/cjs/models/v2/extension.js b/cjs/models/v2/extension.js new file mode 100644 index 000000000..a0f2c2b6f --- /dev/null +++ b/cjs/models/v2/extension.js @@ -0,0 +1,16 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Extension = void 0; +const base_1 = require("../base"); +class Extension extends base_1.BaseModel { + id() { + return this._meta.id; + } + version() { + return 'to implement'; + } + value() { + return this._json; + } +} +exports.Extension = Extension; diff --git a/cjs/models/v2/extensions.d.ts b/cjs/models/v2/extensions.d.ts new file mode 100644 index 000000000..3033f8a44 --- /dev/null +++ b/cjs/models/v2/extensions.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExtensionInterface } from '../extension'; +export declare class Extensions extends Collection implements ExtensionsInterface { + get(id: string): ExtensionInterface | undefined; +} diff --git a/cjs/models/v2/extensions.js b/cjs/models/v2/extensions.js new file mode 100644 index 000000000..f33796038 --- /dev/null +++ b/cjs/models/v2/extensions.js @@ -0,0 +1,11 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Extensions = void 0; +const collection_1 = require("../collection"); +class Extensions extends collection_1.Collection { + get(id) { + id = id.startsWith('x-') ? id : `x-${id}`; + return this.collections.find(ext => ext.id() === id); + } +} +exports.Extensions = Extensions; diff --git a/cjs/models/v2/external-docs.d.ts b/cjs/models/v2/external-docs.d.ts new file mode 100644 index 000000000..279640c89 --- /dev/null +++ b/cjs/models/v2/external-docs.d.ts @@ -0,0 +1,10 @@ +import { BaseModel } from '../base'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { ExtensionsInterface } from '../extensions'; +import type { v2 } from '../../spec-types'; +export declare class ExternalDocumentation extends BaseModel implements ExternalDocumentationInterface { + url(): string; + hasDescription(): boolean; + description(): string | undefined; + extensions(): ExtensionsInterface; +} diff --git a/cjs/models/v2/external-docs.js b/cjs/models/v2/external-docs.js new file mode 100644 index 000000000..f41bbf627 --- /dev/null +++ b/cjs/models/v2/external-docs.js @@ -0,0 +1,20 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ExternalDocumentation = void 0; +const base_1 = require("../base"); +const mixins_1 = require("./mixins"); +class ExternalDocumentation extends base_1.BaseModel { + url() { + return this._json.url; + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + description() { + return (0, mixins_1.description)(this); + } + extensions() { + return (0, mixins_1.extensions)(this); + } +} +exports.ExternalDocumentation = ExternalDocumentation; diff --git a/cjs/models/v2/index.d.ts b/cjs/models/v2/index.d.ts new file mode 100644 index 000000000..5ce2f2622 --- /dev/null +++ b/cjs/models/v2/index.d.ts @@ -0,0 +1,37 @@ +export { AsyncAPIDocument as AsyncAPIDocumentV2 } from './asyncapi'; +export { Binding as BindingV2 } from './binding'; +export { Bindings as BindingsV2 } from './bindings'; +export { ChannelParameter as ChannelParameterV2 } from './channel-parameter'; +export { ChannelParameters as ChannelParametersV2 } from './channel-parameters'; +export { Channel as ChannelV2 } from './channel'; +export { Channels as ChannelsV2 } from './channels'; +export { Components as ComponentsV2 } from './components'; +export { Contact as ContactV2 } from './contact'; +export { CorrelationId as CorrelationIdV2 } from './correlation-id'; +export { Extension as ExtensionV2 } from './extension'; +export { Extensions as ExtensionsV2 } from './extensions'; +export { ExternalDocumentation as ExternalDocumentationV2 } from './external-docs'; +export { Info as InfoV2 } from './info'; +export { License as LicenseV2 } from './license'; +export { MessageExample as MessageExampleV2 } from './message-example'; +export { MessageExamples as MessageExamplesV2 } from './message-examples'; +export { MessageTrait as MessageTraitV2 } from './message-trait'; +export { MessageTraits as MessageTraitsV2 } from './message-traits'; +export { Message as MessageV2 } from './message'; +export { Messages as MessagesV2 } from './messages'; +export { OAuthFlow as OAuthFlowV2 } from './oauth-flow'; +export { OAuthFlows as OAuthFlowsV2 } from './oauth-flows'; +export { OperationTrait as OperationTraitV2 } from './operation-trait'; +export { OperationTraits as OperationTraitsV2 } from './operation-traits'; +export { Operation as OperationV2 } from './operation'; +export { Operations as OperationsV2 } from './operations'; +export { Schema as SchemaV2 } from './schema'; +export { Schemas as SchemasV2 } from './schemas'; +export { SecurityScheme as SecuritySchemeV2 } from './security-scheme'; +export { SecuritySchemes as SecuritySchemesV2 } from './security-schemes'; +export { ServerVariable as ServerVariableV2 } from './server-variable'; +export { ServerVariables as ServerVariablesV2 } from './server-variables'; +export { Server as ServerV2 } from './server'; +export { Servers as ServersV2 } from './servers'; +export { Tag as TagV2 } from './tag'; +export { Tags as TagsV2 } from './tags'; diff --git a/cjs/models/v2/index.js b/cjs/models/v2/index.js new file mode 100644 index 000000000..fa2fca9d6 --- /dev/null +++ b/cjs/models/v2/index.js @@ -0,0 +1,77 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TagsV2 = exports.TagV2 = exports.ServersV2 = exports.ServerV2 = exports.ServerVariablesV2 = exports.ServerVariableV2 = exports.SecuritySchemesV2 = exports.SecuritySchemeV2 = exports.SchemasV2 = exports.SchemaV2 = exports.OperationsV2 = exports.OperationV2 = exports.OperationTraitsV2 = exports.OperationTraitV2 = exports.OAuthFlowsV2 = exports.OAuthFlowV2 = exports.MessagesV2 = exports.MessageV2 = exports.MessageTraitsV2 = exports.MessageTraitV2 = exports.MessageExamplesV2 = exports.MessageExampleV2 = exports.LicenseV2 = exports.InfoV2 = exports.ExternalDocumentationV2 = exports.ExtensionsV2 = exports.ExtensionV2 = exports.CorrelationIdV2 = exports.ContactV2 = exports.ComponentsV2 = exports.ChannelsV2 = exports.ChannelV2 = exports.ChannelParametersV2 = exports.ChannelParameterV2 = exports.BindingsV2 = exports.BindingV2 = exports.AsyncAPIDocumentV2 = void 0; +var asyncapi_1 = require("./asyncapi"); +Object.defineProperty(exports, "AsyncAPIDocumentV2", { enumerable: true, get: function () { return asyncapi_1.AsyncAPIDocument; } }); +var binding_1 = require("./binding"); +Object.defineProperty(exports, "BindingV2", { enumerable: true, get: function () { return binding_1.Binding; } }); +var bindings_1 = require("./bindings"); +Object.defineProperty(exports, "BindingsV2", { enumerable: true, get: function () { return bindings_1.Bindings; } }); +var channel_parameter_1 = require("./channel-parameter"); +Object.defineProperty(exports, "ChannelParameterV2", { enumerable: true, get: function () { return channel_parameter_1.ChannelParameter; } }); +var channel_parameters_1 = require("./channel-parameters"); +Object.defineProperty(exports, "ChannelParametersV2", { enumerable: true, get: function () { return channel_parameters_1.ChannelParameters; } }); +var channel_1 = require("./channel"); +Object.defineProperty(exports, "ChannelV2", { enumerable: true, get: function () { return channel_1.Channel; } }); +var channels_1 = require("./channels"); +Object.defineProperty(exports, "ChannelsV2", { enumerable: true, get: function () { return channels_1.Channels; } }); +var components_1 = require("./components"); +Object.defineProperty(exports, "ComponentsV2", { enumerable: true, get: function () { return components_1.Components; } }); +var contact_1 = require("./contact"); +Object.defineProperty(exports, "ContactV2", { enumerable: true, get: function () { return contact_1.Contact; } }); +var correlation_id_1 = require("./correlation-id"); +Object.defineProperty(exports, "CorrelationIdV2", { enumerable: true, get: function () { return correlation_id_1.CorrelationId; } }); +var extension_1 = require("./extension"); +Object.defineProperty(exports, "ExtensionV2", { enumerable: true, get: function () { return extension_1.Extension; } }); +var extensions_1 = require("./extensions"); +Object.defineProperty(exports, "ExtensionsV2", { enumerable: true, get: function () { return extensions_1.Extensions; } }); +var external_docs_1 = require("./external-docs"); +Object.defineProperty(exports, "ExternalDocumentationV2", { enumerable: true, get: function () { return external_docs_1.ExternalDocumentation; } }); +var info_1 = require("./info"); +Object.defineProperty(exports, "InfoV2", { enumerable: true, get: function () { return info_1.Info; } }); +var license_1 = require("./license"); +Object.defineProperty(exports, "LicenseV2", { enumerable: true, get: function () { return license_1.License; } }); +var message_example_1 = require("./message-example"); +Object.defineProperty(exports, "MessageExampleV2", { enumerable: true, get: function () { return message_example_1.MessageExample; } }); +var message_examples_1 = require("./message-examples"); +Object.defineProperty(exports, "MessageExamplesV2", { enumerable: true, get: function () { return message_examples_1.MessageExamples; } }); +var message_trait_1 = require("./message-trait"); +Object.defineProperty(exports, "MessageTraitV2", { enumerable: true, get: function () { return message_trait_1.MessageTrait; } }); +var message_traits_1 = require("./message-traits"); +Object.defineProperty(exports, "MessageTraitsV2", { enumerable: true, get: function () { return message_traits_1.MessageTraits; } }); +var message_1 = require("./message"); +Object.defineProperty(exports, "MessageV2", { enumerable: true, get: function () { return message_1.Message; } }); +var messages_1 = require("./messages"); +Object.defineProperty(exports, "MessagesV2", { enumerable: true, get: function () { return messages_1.Messages; } }); +var oauth_flow_1 = require("./oauth-flow"); +Object.defineProperty(exports, "OAuthFlowV2", { enumerable: true, get: function () { return oauth_flow_1.OAuthFlow; } }); +var oauth_flows_1 = require("./oauth-flows"); +Object.defineProperty(exports, "OAuthFlowsV2", { enumerable: true, get: function () { return oauth_flows_1.OAuthFlows; } }); +var operation_trait_1 = require("./operation-trait"); +Object.defineProperty(exports, "OperationTraitV2", { enumerable: true, get: function () { return operation_trait_1.OperationTrait; } }); +var operation_traits_1 = require("./operation-traits"); +Object.defineProperty(exports, "OperationTraitsV2", { enumerable: true, get: function () { return operation_traits_1.OperationTraits; } }); +var operation_1 = require("./operation"); +Object.defineProperty(exports, "OperationV2", { enumerable: true, get: function () { return operation_1.Operation; } }); +var operations_1 = require("./operations"); +Object.defineProperty(exports, "OperationsV2", { enumerable: true, get: function () { return operations_1.Operations; } }); +var schema_1 = require("./schema"); +Object.defineProperty(exports, "SchemaV2", { enumerable: true, get: function () { return schema_1.Schema; } }); +var schemas_1 = require("./schemas"); +Object.defineProperty(exports, "SchemasV2", { enumerable: true, get: function () { return schemas_1.Schemas; } }); +var security_scheme_1 = require("./security-scheme"); +Object.defineProperty(exports, "SecuritySchemeV2", { enumerable: true, get: function () { return security_scheme_1.SecurityScheme; } }); +var security_schemes_1 = require("./security-schemes"); +Object.defineProperty(exports, "SecuritySchemesV2", { enumerable: true, get: function () { return security_schemes_1.SecuritySchemes; } }); +var server_variable_1 = require("./server-variable"); +Object.defineProperty(exports, "ServerVariableV2", { enumerable: true, get: function () { return server_variable_1.ServerVariable; } }); +var server_variables_1 = require("./server-variables"); +Object.defineProperty(exports, "ServerVariablesV2", { enumerable: true, get: function () { return server_variables_1.ServerVariables; } }); +var server_1 = require("./server"); +Object.defineProperty(exports, "ServerV2", { enumerable: true, get: function () { return server_1.Server; } }); +var servers_1 = require("./servers"); +Object.defineProperty(exports, "ServersV2", { enumerable: true, get: function () { return servers_1.Servers; } }); +var tag_1 = require("./tag"); +Object.defineProperty(exports, "TagV2", { enumerable: true, get: function () { return tag_1.Tag; } }); +var tags_1 = require("./tags"); +Object.defineProperty(exports, "TagsV2", { enumerable: true, get: function () { return tags_1.Tags; } }); diff --git a/cjs/models/v2/info.d.ts b/cjs/models/v2/info.d.ts new file mode 100644 index 000000000..6f87dbdd8 --- /dev/null +++ b/cjs/models/v2/info.d.ts @@ -0,0 +1,26 @@ +import { BaseModel } from '../base'; +import type { ContactInterface } from '../contact'; +import type { InfoInterface } from '../info'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { LicenseInterface } from '../license'; +import type { TagsInterface } from '../tags'; +import type { v2 } from '../../spec-types'; +export declare class Info extends BaseModel implements InfoInterface { + title(): string; + version(): string; + hasId(): boolean; + id(): string | undefined; + hasDescription(): boolean; + description(): string | undefined; + hasTermsOfService(): boolean; + termsOfService(): string | undefined; + hasContact(): boolean; + contact(): ContactInterface | undefined; + hasLicense(): boolean; + license(): LicenseInterface | undefined; + hasExternalDocs(): boolean; + externalDocs(): ExternalDocumentationInterface | undefined; + tags(): TagsInterface; + extensions(): ExtensionsInterface; +} diff --git a/cjs/models/v2/info.js b/cjs/models/v2/info.js new file mode 100644 index 000000000..d78906ee4 --- /dev/null +++ b/cjs/models/v2/info.js @@ -0,0 +1,66 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Info = void 0; +const base_1 = require("../base"); +const contact_1 = require("./contact"); +const external_docs_1 = require("./external-docs"); +const license_1 = require("./license"); +const tags_1 = require("./tags"); +const tag_1 = require("./tag"); +const mixins_1 = require("./mixins"); +class Info extends base_1.BaseModel { + title() { + return this._json.title; + } + version() { + return this._json.version; + } + hasId() { + return !!this._meta.asyncapi.parsed.id; + } + id() { + return this._meta.asyncapi.parsed.id; + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + description() { + return (0, mixins_1.description)(this); + } + hasTermsOfService() { + return !!this._json.termsOfService; + } + termsOfService() { + return this._json.termsOfService; + } + hasContact() { + return Object.keys(this._json.contact || {}).length > 0; + } + contact() { + const contact = this._json.contact; + return contact && this.createModel(contact_1.Contact, contact, { pointer: '/info/contact' }); + } + hasLicense() { + return Object.keys(this._json.license || {}).length > 0; + } + license() { + const license = this._json.license; + return license && this.createModel(license_1.License, license, { pointer: '/info/license' }); + } + hasExternalDocs() { + return Object.keys(this._meta.asyncapi.parsed.externalDocs || {}).length > 0; + } + externalDocs() { + if (this.hasExternalDocs()) { + return this.createModel(external_docs_1.ExternalDocumentation, this._meta.asyncapi.parsed.externalDocs, { pointer: '/externalDocs' }); + } + } + tags() { + const tags = this._meta.asyncapi.parsed.tags || []; + return new tags_1.Tags(tags.map((tag, idx) => this.createModel(tag_1.Tag, tag, { pointer: `/tags/${idx}` }))); + } + extensions() { + return (0, mixins_1.extensions)(this); + } +} +exports.Info = Info; diff --git a/cjs/models/v2/license.d.ts b/cjs/models/v2/license.d.ts new file mode 100644 index 000000000..351865595 --- /dev/null +++ b/cjs/models/v2/license.d.ts @@ -0,0 +1,10 @@ +import { BaseModel } from '../base'; +import type { ExtensionsInterface } from '../extensions'; +import type { LicenseInterface } from '../license'; +import type { v2 } from '../../spec-types'; +export declare class License extends BaseModel implements LicenseInterface { + name(): string; + hasUrl(): boolean; + url(): string | undefined; + extensions(): ExtensionsInterface; +} diff --git a/cjs/models/v2/license.js b/cjs/models/v2/license.js new file mode 100644 index 000000000..9170a3962 --- /dev/null +++ b/cjs/models/v2/license.js @@ -0,0 +1,20 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.License = void 0; +const base_1 = require("../base"); +const mixins_1 = require("./mixins"); +class License extends base_1.BaseModel { + name() { + return this._json.name; + } + hasUrl() { + return !!this._json.url; + } + url() { + return this._json.url; + } + extensions() { + return (0, mixins_1.extensions)(this); + } +} +exports.License = License; diff --git a/cjs/models/v2/message-example.d.ts b/cjs/models/v2/message-example.d.ts new file mode 100644 index 000000000..e8a843b55 --- /dev/null +++ b/cjs/models/v2/message-example.d.ts @@ -0,0 +1,15 @@ +import { BaseModel } from '../base'; +import type { ExtensionsInterface } from '../extensions'; +import type { MessageExampleInterface } from '../message-example'; +import type { v2 } from '../../spec-types'; +export declare class MessageExample extends BaseModel implements MessageExampleInterface { + hasName(): boolean; + name(): string | undefined; + hasSummary(): boolean; + summary(): string | undefined; + hasHeaders(): boolean; + headers(): Record | undefined; + hasPayload(): boolean; + payload(): Record | undefined; + extensions(): ExtensionsInterface; +} diff --git a/cjs/models/v2/message-example.js b/cjs/models/v2/message-example.js new file mode 100644 index 000000000..9710b3ca7 --- /dev/null +++ b/cjs/models/v2/message-example.js @@ -0,0 +1,35 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageExample = void 0; +const base_1 = require("../base"); +const mixins_1 = require("./mixins"); +class MessageExample extends base_1.BaseModel { + hasName() { + return !!this._json.name; + } + name() { + return this._json.name; + } + hasSummary() { + return !!this._json.summary; + } + summary() { + return this._json.summary; + } + hasHeaders() { + return !!this._json.headers; + } + headers() { + return this._json.headers; + } + hasPayload() { + return !!this._json.payload; + } + payload() { + return this._json.payload; + } + extensions() { + return (0, mixins_1.extensions)(this); + } +} +exports.MessageExample = MessageExample; diff --git a/cjs/models/v2/message-examples.d.ts b/cjs/models/v2/message-examples.d.ts new file mode 100644 index 000000000..0784e9dc1 --- /dev/null +++ b/cjs/models/v2/message-examples.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { MessageExamplesInterface } from '../message-examples'; +import type { MessageExampleInterface } from '../message-example'; +export declare class MessageExamples extends Collection implements MessageExamplesInterface { + get(name: string): MessageExampleInterface | undefined; +} diff --git a/cjs/models/v2/message-examples.js b/cjs/models/v2/message-examples.js new file mode 100644 index 000000000..d57029213 --- /dev/null +++ b/cjs/models/v2/message-examples.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageExamples = void 0; +const collection_1 = require("../collection"); +class MessageExamples extends collection_1.Collection { + get(name) { + return this.collections.find(example => example.name() === name); + } +} +exports.MessageExamples = MessageExamples; diff --git a/cjs/models/v2/message-trait.d.ts b/cjs/models/v2/message-trait.d.ts new file mode 100644 index 000000000..50e2dd642 --- /dev/null +++ b/cjs/models/v2/message-trait.d.ts @@ -0,0 +1,38 @@ +import { BaseModel } from '../base'; +import type { BindingsInterface } from '../bindings'; +import type { CorrelationIdInterface } from '../correlation-id'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { MessageExamplesInterface } from '../message-examples'; +import type { MessageTraitInterface } from '../message-trait'; +import type { SchemaInterface } from '../schema'; +import type { TagsInterface } from '../tags'; +import type { v2 } from '../../spec-types'; +export declare class MessageTrait extends BaseModel implements MessageTraitInterface { + id(): string; + schemaFormat(): string; + hasMessageId(): boolean; + messageId(): string | undefined; + hasCorrelationId(): boolean; + correlationId(): CorrelationIdInterface | undefined; + hasContentType(): boolean; + contentType(): string | undefined; + hasHeaders(): boolean; + headers(): SchemaInterface | undefined; + hasName(): boolean; + name(): string | undefined; + hasTitle(): boolean; + title(): string | undefined; + hasSummary(): boolean; + summary(): string | undefined; + hasDescription(): boolean; + description(): string | undefined; + hasExternalDocs(): boolean; + externalDocs(): ExternalDocumentationInterface | undefined; + examples(): MessageExamplesInterface; + tags(): TagsInterface; + bindings(): BindingsInterface; + extensions(): ExtensionsInterface; +} diff --git a/cjs/models/v2/message-trait.js b/cjs/models/v2/message-trait.js new file mode 100644 index 000000000..aa3abf5b9 --- /dev/null +++ b/cjs/models/v2/message-trait.js @@ -0,0 +1,94 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageTrait = void 0; +const base_1 = require("../base"); +const correlation_id_1 = require("./correlation-id"); +const message_examples_1 = require("./message-examples"); +const message_example_1 = require("./message-example"); +const schema_1 = require("./schema"); +const constants_1 = require("../../constants"); +const schema_parser_1 = require("../../schema-parser"); +const mixins_1 = require("./mixins"); +class MessageTrait extends base_1.BaseModel { + id() { + var _a; + return this.messageId() || this._meta.id || ((_a = this.extensions().get(constants_1.xParserMessageName)) === null || _a === void 0 ? void 0 : _a.value()); + } + schemaFormat() { + return this._json.schemaFormat || (0, schema_parser_1.getDefaultSchemaFormat)(this._meta.asyncapi.semver.version); + } + hasMessageId() { + return !!this._json.messageId; + } + messageId() { + return this._json.messageId; + } + hasCorrelationId() { + return !!this._json.correlationId; + } + correlationId() { + if (!this._json.correlationId) + return undefined; + return this.createModel(correlation_id_1.CorrelationId, this._json.correlationId, { pointer: `${this._meta.pointer}/correlationId` }); + } + hasContentType() { + return !!this._json.contentType; + } + contentType() { + var _a; + return this._json.contentType || ((_a = this._meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed.defaultContentType); + } + hasHeaders() { + return !!this._json.headers; + } + headers() { + if (!this._json.headers) + return undefined; + return this.createModel(schema_1.Schema, this._json.headers, { pointer: `${this._meta.pointer}/headers` }); + } + hasName() { + return !!this._json.name; + } + name() { + return this._json.name; + } + hasTitle() { + return !!this._json.title; + } + title() { + return this._json.title; + } + hasSummary() { + return !!this._json.summary; + } + summary() { + return this._json.summary; + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + description() { + return (0, mixins_1.description)(this); + } + hasExternalDocs() { + return (0, mixins_1.hasExternalDocs)(this); + } + externalDocs() { + return (0, mixins_1.externalDocs)(this); + } + examples() { + return new message_examples_1.MessageExamples((this._json.examples || []).map((example, index) => { + return this.createModel(message_example_1.MessageExample, example, { pointer: `${this._meta.pointer}/examples/${index}` }); + })); + } + tags() { + return (0, mixins_1.tags)(this); + } + bindings() { + return (0, mixins_1.bindings)(this); + } + extensions() { + return (0, mixins_1.extensions)(this); + } +} +exports.MessageTrait = MessageTrait; diff --git a/cjs/models/v2/message-traits.d.ts b/cjs/models/v2/message-traits.d.ts new file mode 100644 index 000000000..8601210f2 --- /dev/null +++ b/cjs/models/v2/message-traits.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { MessageTraitsInterface } from '../message-traits'; +import type { MessageTraitInterface } from '../message-trait'; +export declare class MessageTraits extends Collection implements MessageTraitsInterface { + get(id: string): MessageTraitInterface | undefined; +} diff --git a/cjs/models/v2/message-traits.js b/cjs/models/v2/message-traits.js new file mode 100644 index 000000000..d70e4d65a --- /dev/null +++ b/cjs/models/v2/message-traits.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageTraits = void 0; +const collection_1 = require("../collection"); +class MessageTraits extends collection_1.Collection { + get(id) { + return this.collections.find(trait => trait.id() === id); + } +} +exports.MessageTraits = MessageTraits; diff --git a/cjs/models/v2/message.d.ts b/cjs/models/v2/message.d.ts new file mode 100644 index 000000000..9d7ee229a --- /dev/null +++ b/cjs/models/v2/message.d.ts @@ -0,0 +1,16 @@ +import { MessageTrait } from './message-trait'; +import type { ChannelsInterface } from '../channels'; +import type { MessageInterface } from '../message'; +import type { MessageTraitsInterface } from '../message-traits'; +import type { OperationsInterface } from '../operations'; +import type { ServersInterface } from '../servers'; +import type { SchemaInterface } from '../schema'; +import type { v2 } from '../../spec-types'; +export declare class Message extends MessageTrait implements MessageInterface { + hasPayload(): boolean; + payload(): SchemaInterface | undefined; + servers(): ServersInterface; + channels(): ChannelsInterface; + operations(): OperationsInterface; + traits(): MessageTraitsInterface; +} diff --git a/cjs/models/v2/message.js b/cjs/models/v2/message.js new file mode 100644 index 000000000..3dff43d23 --- /dev/null +++ b/cjs/models/v2/message.js @@ -0,0 +1,67 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Message = void 0; +const channels_1 = require("./channels"); +const operations_1 = require("./operations"); +const operation_1 = require("./operation"); +const message_traits_1 = require("./message-traits"); +const message_trait_1 = require("./message-trait"); +const servers_1 = require("./servers"); +const schema_1 = require("./schema"); +const utils_1 = require("../../utils"); +class Message extends message_trait_1.MessageTrait { + hasPayload() { + return !!this._json.payload; + } + payload() { + if (!this._json.payload) + return undefined; + return this.createModel(schema_1.Schema, this._json.payload, { pointer: `${this._meta.pointer}/payload` }); + } + servers() { + const servers = []; + const serversData = []; + this.channels().forEach(channel => { + channel.servers().forEach(server => { + if (!serversData.includes(server.json())) { + serversData.push(server.json()); + servers.push(server); + } + }); + }); + return new servers_1.Servers(servers); + } + channels() { + const channels = []; + const channelsData = []; + this.operations().all().forEach(operation => { + operation.channels().forEach(channel => { + if (!channelsData.includes(channel.json())) { + channelsData.push(channel.json()); + channels.push(channel); + } + }); + }); + return new channels_1.Channels(channels); + } + operations() { + var _a; + const operations = []; + Object.entries(((_a = this._meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed.channels) || {}).forEach(([channelAddress, channel]) => { + ['subscribe', 'publish'].forEach(operationAction => { + const operation = channel[operationAction]; + if (operation && (operation.message === this._json || + (operation.message.oneOf || []).includes(this._json))) { + operations.push(this.createModel(operation_1.Operation, operation, { id: '', pointer: `/channels/${(0, utils_1.tilde)(channelAddress)}/${operationAction}`, action: operationAction })); + } + }); + }); + return new operations_1.Operations(operations); + } + traits() { + return new message_traits_1.MessageTraits((this._json.traits || []).map((trait, index) => { + return this.createModel(message_trait_1.MessageTrait, trait, { id: '', pointer: `${this._meta.pointer}/traits/${index}` }); + })); + } +} +exports.Message = Message; diff --git a/cjs/models/v2/messages.d.ts b/cjs/models/v2/messages.d.ts new file mode 100644 index 000000000..d988f36fb --- /dev/null +++ b/cjs/models/v2/messages.d.ts @@ -0,0 +1,8 @@ +import { Collection } from '../collection'; +import type { MessagesInterface } from '../messages'; +import type { MessageInterface } from '../message'; +export declare class Messages extends Collection implements MessagesInterface { + get(name: string): MessageInterface | undefined; + filterBySend(): MessageInterface[]; + filterByReceive(): MessageInterface[]; +} diff --git a/cjs/models/v2/messages.js b/cjs/models/v2/messages.js new file mode 100644 index 000000000..dc5d9adae --- /dev/null +++ b/cjs/models/v2/messages.js @@ -0,0 +1,16 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Messages = void 0; +const collection_1 = require("../collection"); +class Messages extends collection_1.Collection { + get(name) { + return this.collections.find(message => message.id() === name); + } + filterBySend() { + return this.filterBy(message => message.operations().filterBySend().length > 0); + } + filterByReceive() { + return this.filterBy(message => message.operations().filterByReceive().length > 0); + } +} +exports.Messages = Messages; diff --git a/cjs/models/v2/mixins.d.ts b/cjs/models/v2/mixins.d.ts new file mode 100644 index 000000000..08b4d9d43 --- /dev/null +++ b/cjs/models/v2/mixins.d.ts @@ -0,0 +1,25 @@ +import type { BaseModel } from '../base'; +import type { BindingsInterface } from '../bindings'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { TagsInterface } from '../tags'; +import type { v2 } from '../../spec-types'; +export declare function bindings(model: BaseModel<{ + bindings?: Record; +}>): BindingsInterface; +export declare function hasDescription(model: BaseModel<{ + description?: string; +}>): boolean; +export declare function description(model: BaseModel<{ + description?: string; +}>): string | undefined; +export declare function extensions(model: BaseModel): ExtensionsInterface; +export declare function hasExternalDocs(model: BaseModel<{ + externalDocs?: v2.ExternalDocumentationObject; +}>): boolean; +export declare function externalDocs(model: BaseModel<{ + externalDocs?: v2.ExternalDocumentationObject; +}>): ExternalDocumentationInterface | undefined; +export declare function tags(model: BaseModel<{ + tags?: v2.TagsObject; +}>): TagsInterface; diff --git a/cjs/models/v2/mixins.js b/cjs/models/v2/mixins.js new file mode 100644 index 000000000..899e4ebf9 --- /dev/null +++ b/cjs/models/v2/mixins.js @@ -0,0 +1,49 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.tags = exports.externalDocs = exports.hasExternalDocs = exports.extensions = exports.description = exports.hasDescription = exports.bindings = void 0; +const bindings_1 = require("./bindings"); +const binding_1 = require("./binding"); +const extensions_1 = require("./extensions"); +const extension_1 = require("./extension"); +const external_docs_1 = require("./external-docs"); +const tags_1 = require("./tags"); +const tag_1 = require("./tag"); +const utils_1 = require("../utils"); +const constants_1 = require("../../constants"); +function bindings(model) { + const bindings = model.json('bindings') || {}; + return new bindings_1.Bindings(Object.entries(bindings || {}).map(([protocol, binding]) => (0, utils_1.createModel)(binding_1.Binding, binding, { protocol, pointer: model.jsonPath(`bindings/${protocol}`) }, model)), { originalData: bindings, asyncapi: model.meta('asyncapi'), pointer: model.jsonPath('bindings') }); +} +exports.bindings = bindings; +function hasDescription(model) { + return Boolean(description(model)); +} +exports.hasDescription = hasDescription; +function description(model) { + return model.json('description'); +} +exports.description = description; +function extensions(model) { + const extensions = []; + Object.entries(model.json()).forEach(([id, value]) => { + if (constants_1.EXTENSION_REGEX.test(id)) { + extensions.push((0, utils_1.createModel)(extension_1.Extension, value, { id, pointer: model.jsonPath(id) }, model)); + } + }); + return new extensions_1.Extensions(extensions); +} +exports.extensions = extensions; +function hasExternalDocs(model) { + return Object.keys(model.json('externalDocs') || {}).length > 0; +} +exports.hasExternalDocs = hasExternalDocs; +function externalDocs(model) { + if (hasExternalDocs(model)) { + return new external_docs_1.ExternalDocumentation(model.json('externalDocs')); + } +} +exports.externalDocs = externalDocs; +function tags(model) { + return new tags_1.Tags((model.json('tags') || []).map((tag, idx) => (0, utils_1.createModel)(tag_1.Tag, tag, { pointer: model.jsonPath(`tags/${idx}`) }, model))); +} +exports.tags = tags; diff --git a/cjs/models/v2/oauth-flow.d.ts b/cjs/models/v2/oauth-flow.d.ts new file mode 100644 index 000000000..e7b13eb0e --- /dev/null +++ b/cjs/models/v2/oauth-flow.d.ts @@ -0,0 +1,12 @@ +import { BaseModel } from '../base'; +import type { ExtensionsInterface } from '../extensions'; +import type { OAuthFlowInterface } from '../oauth-flow'; +import type { v2 } from '../../spec-types'; +export declare class OAuthFlow extends BaseModel implements OAuthFlowInterface { + authorizationUrl(): string | undefined; + hasRefreshUrl(): boolean; + refreshUrl(): string | undefined; + scopes(): Record | undefined; + tokenUrl(): string | undefined; + extensions(): ExtensionsInterface; +} diff --git a/cjs/models/v2/oauth-flow.js b/cjs/models/v2/oauth-flow.js new file mode 100644 index 000000000..660015a2c --- /dev/null +++ b/cjs/models/v2/oauth-flow.js @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OAuthFlow = void 0; +const base_1 = require("../base"); +const mixins_1 = require("./mixins"); +class OAuthFlow extends base_1.BaseModel { + authorizationUrl() { + return this.json().authorizationUrl; + } + hasRefreshUrl() { + return !!this._json.refreshUrl; + } + refreshUrl() { + return this._json.refreshUrl; + } + scopes() { + return this._json.scopes; + } + tokenUrl() { + return this.json().tokenUrl; + } + extensions() { + return (0, mixins_1.extensions)(this); + } +} +exports.OAuthFlow = OAuthFlow; diff --git a/cjs/models/v2/oauth-flows.d.ts b/cjs/models/v2/oauth-flows.d.ts new file mode 100644 index 000000000..9ff0b07ed --- /dev/null +++ b/cjs/models/v2/oauth-flows.d.ts @@ -0,0 +1,16 @@ +import { BaseModel } from '../base'; +import type { ExtensionsInterface } from '../extensions'; +import type { OAuthFlowsInterface } from '../oauth-flows'; +import type { OAuthFlowInterface } from '../oauth-flow'; +import type { v2 } from '../../spec-types'; +export declare class OAuthFlows extends BaseModel implements OAuthFlowsInterface { + hasAuthorizationCode(): boolean; + authorizationCode(): OAuthFlowInterface | undefined; + hasClientCredentials(): boolean; + clientCredentials(): OAuthFlowInterface | undefined; + hasImplicit(): boolean; + implicit(): OAuthFlowInterface | undefined; + hasPassword(): boolean; + password(): OAuthFlowInterface | undefined; + extensions(): ExtensionsInterface; +} diff --git a/cjs/models/v2/oauth-flows.js b/cjs/models/v2/oauth-flows.js new file mode 100644 index 000000000..8b21aa91b --- /dev/null +++ b/cjs/models/v2/oauth-flows.js @@ -0,0 +1,44 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OAuthFlows = void 0; +const base_1 = require("../base"); +const oauth_flow_1 = require("./oauth-flow"); +const mixins_1 = require("./mixins"); +class OAuthFlows extends base_1.BaseModel { + hasAuthorizationCode() { + return !!this._json.authorizationCode; + } + authorizationCode() { + if (!this._json.authorizationCode) + return undefined; + return new oauth_flow_1.OAuthFlow(this._json.authorizationCode); + } + hasClientCredentials() { + return !!this._json.clientCredentials; + } + clientCredentials() { + if (!this._json.clientCredentials) + return undefined; + return new oauth_flow_1.OAuthFlow(this._json.clientCredentials); + } + hasImplicit() { + return !!this._json.implicit; + } + implicit() { + if (!this._json.implicit) + return undefined; + return new oauth_flow_1.OAuthFlow(this._json.implicit); + } + hasPassword() { + return !!this._json.password; + } + password() { + if (!this._json.password) + return undefined; + return new oauth_flow_1.OAuthFlow(this._json.password); + } + extensions() { + return (0, mixins_1.extensions)(this); + } +} +exports.OAuthFlows = OAuthFlows; diff --git a/cjs/models/v2/operation-trait.d.ts b/cjs/models/v2/operation-trait.d.ts new file mode 100644 index 000000000..8836598bc --- /dev/null +++ b/cjs/models/v2/operation-trait.d.ts @@ -0,0 +1,30 @@ +import { BaseModel } from '../base'; +import type { BindingsInterface } from '../bindings'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { OperationAction } from '../operation'; +import type { OperationTraitInterface } from '../operation-trait'; +import type { TagsInterface } from '../tags'; +import type { v2 } from '../../spec-types'; +import { SecurityRequirements } from './security-requirements'; +export declare class OperationTrait extends BaseModel implements OperationTraitInterface { + id(): string; + action(): OperationAction; + hasOperationId(): boolean; + operationId(): string | undefined; + hasSummary(): boolean; + summary(): string | undefined; + hasDescription(): boolean; + description(): string | undefined; + hasExternalDocs(): boolean; + isSend(): boolean; + isReceive(): boolean; + externalDocs(): ExternalDocumentationInterface | undefined; + security(): SecurityRequirements[]; + tags(): TagsInterface; + bindings(): BindingsInterface; + extensions(): ExtensionsInterface; +} diff --git a/cjs/models/v2/operation-trait.js b/cjs/models/v2/operation-trait.js new file mode 100644 index 000000000..859563952 --- /dev/null +++ b/cjs/models/v2/operation-trait.js @@ -0,0 +1,68 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OperationTrait = void 0; +const base_1 = require("../base"); +const security_scheme_1 = require("./security-scheme"); +const mixins_1 = require("./mixins"); +const security_requirements_1 = require("./security-requirements"); +const security_requirement_1 = require("./security-requirement"); +class OperationTrait extends base_1.BaseModel { + id() { + return this.operationId() || this._meta.id; + } + action() { + return this._meta.action; + } + hasOperationId() { + return !!this._json.operationId; + } + operationId() { + return this._json.operationId; + } + hasSummary() { + return !!this._json.summary; + } + summary() { + return this._json.summary; + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + description() { + return (0, mixins_1.description)(this); + } + hasExternalDocs() { + return (0, mixins_1.hasExternalDocs)(this); + } + isSend() { + return this.action() === 'subscribe'; + } + isReceive() { + return this.action() === 'publish'; + } + externalDocs() { + return (0, mixins_1.externalDocs)(this); + } + security() { + var _a, _b, _c, _d; + const securitySchemes = (((_d = (_c = (_b = (_a = this._meta) === null || _a === void 0 ? void 0 : _a.asyncapi) === null || _b === void 0 ? void 0 : _b.parsed) === null || _c === void 0 ? void 0 : _c.components) === null || _d === void 0 ? void 0 : _d.securitySchemes) || {}); + return (this._json.security || []).map((requirement, index) => { + const requirements = []; + Object.entries(requirement).forEach(([security, scopes]) => { + const scheme = this.createModel(security_scheme_1.SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }); + requirements.push(this.createModel(security_requirement_1.SecurityRequirement, { scheme, scopes }, { id: security, pointer: `${this.meta().pointer}/security/${index}/${security}` })); + }); + return new security_requirements_1.SecurityRequirements(requirements); + }); + } + tags() { + return (0, mixins_1.tags)(this); + } + bindings() { + return (0, mixins_1.bindings)(this); + } + extensions() { + return (0, mixins_1.extensions)(this); + } +} +exports.OperationTrait = OperationTrait; diff --git a/cjs/models/v2/operation-traits.d.ts b/cjs/models/v2/operation-traits.d.ts new file mode 100644 index 000000000..0de03b0ff --- /dev/null +++ b/cjs/models/v2/operation-traits.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { OperationTraitsInterface } from '../operation-traits'; +import type { OperationTraitInterface } from '../operation-trait'; +export declare class OperationTraits extends Collection implements OperationTraitsInterface { + get(id: string): OperationTraitInterface | undefined; +} diff --git a/cjs/models/v2/operation-traits.js b/cjs/models/v2/operation-traits.js new file mode 100644 index 000000000..fe5d408ba --- /dev/null +++ b/cjs/models/v2/operation-traits.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OperationTraits = void 0; +const collection_1 = require("../collection"); +class OperationTraits extends collection_1.Collection { + get(id) { + return this.collections.find(trait => trait.id() === id); + } +} +exports.OperationTraits = OperationTraits; diff --git a/cjs/models/v2/operation.d.ts b/cjs/models/v2/operation.d.ts new file mode 100644 index 000000000..ef5f3e00b --- /dev/null +++ b/cjs/models/v2/operation.d.ts @@ -0,0 +1,13 @@ +import { OperationTrait } from './operation-trait'; +import type { ChannelsInterface } from '../channels'; +import type { MessagesInterface } from '../messages'; +import type { OperationInterface } from '../operation'; +import type { OperationTraitsInterface } from '../operation-traits'; +import type { ServersInterface } from '../servers'; +import type { v2 } from '../../spec-types'; +export declare class Operation extends OperationTrait implements OperationInterface { + servers(): ServersInterface; + channels(): ChannelsInterface; + messages(): MessagesInterface; + traits(): OperationTraitsInterface; +} diff --git a/cjs/models/v2/operation.js b/cjs/models/v2/operation.js new file mode 100644 index 000000000..d59c046c8 --- /dev/null +++ b/cjs/models/v2/operation.js @@ -0,0 +1,57 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Operation = void 0; +const channels_1 = require("./channels"); +const channel_1 = require("./channel"); +const messages_1 = require("./messages"); +const message_1 = require("./message"); +const operation_traits_1 = require("./operation-traits"); +const operation_trait_1 = require("./operation-trait"); +const servers_1 = require("./servers"); +const utils_1 = require("../../utils"); +class Operation extends operation_trait_1.OperationTrait { + servers() { + const servers = []; + const serversData = []; + this.channels().forEach(channel => { + channel.servers().forEach(server => { + if (!serversData.includes(server.json())) { + serversData.push(server.json()); + servers.push(server); + } + }); + }); + return new servers_1.Servers(servers); + } + channels() { + const channels = []; + Object.entries(this._meta.asyncapi.parsed.channels || {}).forEach(([channelAddress, channel]) => { + if (channel.subscribe === this._json || channel.publish === this._json) { + channels.push(this.createModel(channel_1.Channel, channel, { id: channelAddress, address: channelAddress, pointer: `/channels/${(0, utils_1.tilde)(channelAddress)}` })); + } + }); + return new channels_1.Channels(channels); + } + messages() { + let isOneOf = false; + let messages = []; + if (this._json.message) { + if (Array.isArray(this._json.message.oneOf)) { + messages = this._json.message.oneOf; + isOneOf = true; + } + else { + messages = [this._json.message]; + } + } + return new messages_1.Messages(messages.map((message, index) => { + return this.createModel(message_1.Message, message, { id: '', pointer: `${this._meta.pointer}/message${isOneOf ? `/oneOf/${index}` : ''}` }); + })); + } + traits() { + return new operation_traits_1.OperationTraits((this._json.traits || []).map((trait, index) => { + return this.createModel(operation_trait_1.OperationTrait, trait, { id: '', pointer: `${this._meta.pointer}/traits/${index}`, action: '' }); + })); + } +} +exports.Operation = Operation; diff --git a/cjs/models/v2/operations.d.ts b/cjs/models/v2/operations.d.ts new file mode 100644 index 000000000..161cb9b2e --- /dev/null +++ b/cjs/models/v2/operations.d.ts @@ -0,0 +1,8 @@ +import { Collection } from '../collection'; +import type { OperationsInterface } from '../operations'; +import type { OperationInterface } from '../operation'; +export declare class Operations extends Collection implements OperationsInterface { + get(id: string): OperationInterface | undefined; + filterBySend(): OperationInterface[]; + filterByReceive(): OperationInterface[]; +} diff --git a/cjs/models/v2/operations.js b/cjs/models/v2/operations.js new file mode 100644 index 000000000..2d57fd625 --- /dev/null +++ b/cjs/models/v2/operations.js @@ -0,0 +1,16 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Operations = void 0; +const collection_1 = require("../collection"); +class Operations extends collection_1.Collection { + get(id) { + return this.collections.find(operation => operation.id() === id); + } + filterBySend() { + return this.filterBy(operation => operation.isSend()); + } + filterByReceive() { + return this.filterBy(operation => operation.isReceive()); + } +} +exports.Operations = Operations; diff --git a/cjs/models/v2/schema.d.ts b/cjs/models/v2/schema.d.ts new file mode 100644 index 000000000..ce5ad2a24 --- /dev/null +++ b/cjs/models/v2/schema.d.ts @@ -0,0 +1,69 @@ +import { BaseModel } from '../base'; +import type { ModelMetadata } from '../base'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { SchemaInterface } from '../schema'; +import type { v2 } from '../../spec-types'; +export declare class Schema extends BaseModel implements SchemaInterface { + constructor(_json: v2.AsyncAPISchemaObject, _meta?: ModelMetadata & { + id: string; + parent?: Schema; + }); + uid(): string; + $comment(): string | undefined; + $id(): string | undefined; + $schema(): string; + additionalItems(): boolean | SchemaInterface; + additionalProperties(): boolean | SchemaInterface; + allOf(): Array | undefined; + anyOf(): Array | undefined; + const(): any; + contains(): SchemaInterface | undefined; + contentEncoding(): string | undefined; + contentMediaType(): string | undefined; + default(): any; + definitions(): Record | undefined; + description(): string | undefined; + dependencies(): Record> | undefined; + deprecated(): boolean; + discriminator(): string | undefined; + else(): SchemaInterface | undefined; + enum(): Array | undefined; + examples(): Array | undefined; + exclusiveMaximum(): number | undefined; + exclusiveMinimum(): number | undefined; + format(): string | undefined; + isBooleanSchema(): boolean; + if(): SchemaInterface | undefined; + isCircular(): boolean; + items(): SchemaInterface | Array | undefined; + maximum(): number | undefined; + maxItems(): number | undefined; + maxLength(): number | undefined; + maxProperties(): number | undefined; + minimum(): number | undefined; + minItems(): number | undefined; + minLength(): number | undefined; + minProperties(): number | undefined; + multipleOf(): number | undefined; + not(): SchemaInterface | undefined; + oneOf(): Array | undefined; + pattern(): string | undefined; + patternProperties(): Record | undefined; + properties(): Record | undefined; + property(name: string): SchemaInterface | undefined; + propertyNames(): SchemaInterface | undefined; + readOnly(): boolean | undefined; + required(): Array | undefined; + then(): SchemaInterface | undefined; + title(): string | undefined; + type(): string | Array | undefined; + uniqueItems(): boolean | undefined; + writeOnly(): boolean | undefined; + hasExternalDocs(): boolean; + externalDocs(): ExternalDocumentationInterface | undefined; + extensions(): ExtensionsInterface; +} diff --git a/cjs/models/v2/schema.js b/cjs/models/v2/schema.js new file mode 100644 index 000000000..9b4c4e18a --- /dev/null +++ b/cjs/models/v2/schema.js @@ -0,0 +1,313 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Schema = void 0; +const base_1 = require("../base"); +const constants_1 = require("../../constants"); +const mixins_1 = require("./mixins"); +const utils_1 = require("../../utils"); +class Schema extends base_1.BaseModel { + constructor(_json, _meta = {}) { + var _a; + _json = (0, utils_1.retrievePossibleRef)(_json, _meta.pointer, (_a = _meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed); + super(_json, _meta); + } + uid() { + var _a; + return this._meta.id || ((_a = this.extensions().get(constants_1.xParserSchemaId)) === null || _a === void 0 ? void 0 : _a.value()); + } + $comment() { + if (typeof this._json === 'boolean') + return; + return this._json.$comment; + } + $id() { + if (typeof this._json === 'boolean') + return; + return this._json.$id; + } + $schema() { + if (typeof this._json === 'boolean') + return 'http://json-schema.org/draft-07/schema#'; + return this._json.$schema || 'http://json-schema.org/draft-07/schema#'; + } + additionalItems() { + if (typeof this._json === 'boolean') + return this._json; + if (this._json.additionalItems === undefined) + return true; + if (typeof this._json.additionalItems === 'boolean') + return this._json.additionalItems; + return this.createModel(Schema, this._json.additionalItems, { pointer: `${this._meta.pointer}/additionalItems`, parent: this }); + } + additionalProperties() { + if (typeof this._json === 'boolean') + return this._json; + if (this._json.additionalProperties === undefined) + return true; + if (typeof this._json.additionalProperties === 'boolean') + return this._json.additionalProperties; + return this.createModel(Schema, this._json.additionalProperties, { pointer: `${this._meta.pointer}/additionalProperties`, parent: this }); + } + allOf() { + if (typeof this._json === 'boolean') + return; + if (!Array.isArray(this._json.allOf)) + return undefined; + return this._json.allOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/allOf/${index}`, parent: this })); + } + anyOf() { + if (typeof this._json === 'boolean') + return; + if (!Array.isArray(this._json.anyOf)) + return undefined; + return this._json.anyOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/anyOf/${index}`, parent: this })); + } + const() { + if (typeof this._json === 'boolean') + return; + return this._json.const; + } + contains() { + if (typeof this._json === 'boolean' || typeof this._json.contains !== 'object') + return; + return this.createModel(Schema, this._json.contains, { pointer: `${this._meta.pointer}/contains`, parent: this }); + } + contentEncoding() { + if (typeof this._json === 'boolean') + return; + return this._json.contentEncoding; + } + contentMediaType() { + if (typeof this._json === 'boolean') + return; + return this._json.contentMediaType; + } + default() { + if (typeof this._json === 'boolean') + return; + return this._json.default; + } + definitions() { + if (typeof this._json === 'boolean' || typeof this._json.definitions !== 'object') + return; + return Object.entries(this._json.definitions).reduce((acc, [key, s]) => { + acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/definitions/${key}`, parent: this }); + return acc; + }, {}); + } + description() { + if (typeof this._json === 'boolean') + return; + return this._json.description; + } + dependencies() { + if (typeof this._json === 'boolean') + return; + if (typeof this._json.dependencies !== 'object') + return undefined; + return Object.entries(this._json.dependencies).reduce((acc, [key, s]) => { + acc[key] = Array.isArray(s) ? s : this.createModel(Schema, s, { pointer: `${this._meta.pointer}/dependencies/${key}`, parent: this }); + return acc; + }, {}); + } + deprecated() { + if (typeof this._json === 'boolean') + return false; + return this._json.deprecated || false; + } + discriminator() { + if (typeof this._json === 'boolean') + return; + return this._json.discriminator; + } + else() { + if (typeof this._json === 'boolean' || typeof this._json.else !== 'object') + return; + return this.createModel(Schema, this._json.else, { pointer: `${this._meta.pointer}/else`, parent: this }); + } + enum() { + if (typeof this._json === 'boolean') + return; + return this._json.enum; + } + examples() { + if (typeof this._json === 'boolean') + return; + return this._json.examples; + } + exclusiveMaximum() { + if (typeof this._json === 'boolean') + return; + return this._json.exclusiveMaximum; + } + exclusiveMinimum() { + if (typeof this._json === 'boolean') + return; + return this._json.exclusiveMinimum; + } + format() { + if (typeof this._json === 'boolean') + return; + return this._json.format; + } + isBooleanSchema() { + return typeof this._json === 'boolean'; + } + if() { + if (typeof this._json === 'boolean' || typeof this._json.if !== 'object') + return; + return this.createModel(Schema, this._json.if, { pointer: `${this._meta.pointer}/if`, parent: this }); + } + isCircular() { + if ((0, utils_1.hasRef)(this._json)) + return true; + let parent = this._meta.parent; + while (parent) { + if (parent._json === this._json) + return true; + parent = parent._meta.parent; + } + return false; + } + items() { + if (typeof this._json === 'boolean' || typeof this._json.items !== 'object') + return; + if (Array.isArray(this._json.items)) { + return this._json.items.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/items/${index}`, parent: this })); + } + return this.createModel(Schema, this._json.items, { pointer: `${this._meta.pointer}/items`, parent: this }); + } + maximum() { + if (typeof this._json === 'boolean') + return; + return this._json.maximum; + } + maxItems() { + if (typeof this._json === 'boolean') + return; + return this._json.maxItems; + } + maxLength() { + if (typeof this._json === 'boolean') + return; + return this._json.maxLength; + } + maxProperties() { + if (typeof this._json === 'boolean') + return; + return this._json.maxProperties; + } + minimum() { + if (typeof this._json === 'boolean') + return; + return this._json.minimum; + } + minItems() { + if (typeof this._json === 'boolean') + return; + return this._json.minItems; + } + minLength() { + if (typeof this._json === 'boolean') + return; + return this._json.minLength; + } + minProperties() { + if (typeof this._json === 'boolean') + return; + return this._json.minProperties; + } + multipleOf() { + if (typeof this._json === 'boolean') + return; + return this._json.multipleOf; + } + not() { + if (typeof this._json === 'boolean' || typeof this._json.not !== 'object') + return; + return this.createModel(Schema, this._json.not, { pointer: `${this._meta.pointer}/not`, parent: this }); + } + oneOf() { + if (typeof this._json === 'boolean') + return; + if (!Array.isArray(this._json.oneOf)) + return undefined; + return this._json.oneOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/oneOf/${index}`, parent: this })); + } + pattern() { + if (typeof this._json === 'boolean') + return; + return this._json.pattern; + } + patternProperties() { + if (typeof this._json === 'boolean' || typeof this._json.patternProperties !== 'object') + return; + return Object.entries(this._json.patternProperties).reduce((acc, [key, s]) => { + acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/patternProperties/${key}`, parent: this }); + return acc; + }, {}); + } + properties() { + if (typeof this._json === 'boolean' || typeof this._json.properties !== 'object') + return; + return Object.entries(this._json.properties).reduce((acc, [key, s]) => { + acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/properties/${key}`, parent: this }); + return acc; + }, {}); + } + property(name) { + if (typeof this._json === 'boolean' || typeof this._json.properties !== 'object' || typeof this._json.properties[name] !== 'object') + return; + return this.createModel(Schema, this._json.properties[name], { pointer: `${this._meta.pointer}/properties/${name}`, parent: this }); + } + propertyNames() { + if (typeof this._json === 'boolean' || typeof this._json.propertyNames !== 'object') + return; + return this.createModel(Schema, this._json.propertyNames, { pointer: `${this._meta.pointer}/propertyNames`, parent: this }); + } + readOnly() { + if (typeof this._json === 'boolean') + return false; + return this._json.readOnly || false; + } + required() { + if (typeof this._json === 'boolean') + return; + return this._json.required; + } + then() { + if (typeof this._json === 'boolean' || typeof this._json.then !== 'object') + return; + return this.createModel(Schema, this._json.then, { pointer: `${this._meta.pointer}/then`, parent: this }); + } + title() { + if (typeof this._json === 'boolean') + return; + return this._json.title; + } + type() { + if (typeof this._json === 'boolean') + return; + return this._json.type; + } + uniqueItems() { + if (typeof this._json === 'boolean') + return false; + return this._json.uniqueItems || false; + } + writeOnly() { + if (typeof this._json === 'boolean') + return false; + return this._json.writeOnly || false; + } + hasExternalDocs() { + return (0, mixins_1.hasExternalDocs)(this); + } + externalDocs() { + return (0, mixins_1.externalDocs)(this); + } + extensions() { + return (0, mixins_1.extensions)(this); + } +} +exports.Schema = Schema; diff --git a/cjs/models/v2/schemas.d.ts b/cjs/models/v2/schemas.d.ts new file mode 100644 index 000000000..15c1d17bc --- /dev/null +++ b/cjs/models/v2/schemas.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { SchemasInterface } from '../schemas'; +import type { SchemaInterface } from '../schema'; +export declare class Schemas extends Collection implements SchemasInterface { + get(id: string): SchemaInterface | undefined; +} diff --git a/cjs/models/v2/schemas.js b/cjs/models/v2/schemas.js new file mode 100644 index 000000000..01dc44be8 --- /dev/null +++ b/cjs/models/v2/schemas.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Schemas = void 0; +const collection_1 = require("../collection"); +class Schemas extends collection_1.Collection { + get(id) { + return this.collections.find(schema => schema.uid() === id); + } +} +exports.Schemas = Schemas; diff --git a/cjs/models/v2/security-requirement.d.ts b/cjs/models/v2/security-requirement.d.ts new file mode 100644 index 000000000..88cb3a757 --- /dev/null +++ b/cjs/models/v2/security-requirement.d.ts @@ -0,0 +1,12 @@ +import { BaseModel } from '../base'; +import type { SecuritySchemeInterface } from '../security-scheme'; +import type { SecurityRequirementInterface } from '../security-requirement'; +export declare class SecurityRequirement extends BaseModel<{ + scopes?: string[]; + scheme: SecuritySchemeInterface; +}, { + id?: string; +}> implements SecurityRequirementInterface { + scheme(): SecuritySchemeInterface; + scopes(): string[]; +} diff --git a/cjs/models/v2/security-requirement.js b/cjs/models/v2/security-requirement.js new file mode 100644 index 000000000..7361b25ca --- /dev/null +++ b/cjs/models/v2/security-requirement.js @@ -0,0 +1,13 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SecurityRequirement = void 0; +const base_1 = require("../base"); +class SecurityRequirement extends base_1.BaseModel { + scheme() { + return this._json.scheme; + } + scopes() { + return this._json.scopes || []; + } +} +exports.SecurityRequirement = SecurityRequirement; diff --git a/cjs/models/v2/security-requirements.d.ts b/cjs/models/v2/security-requirements.d.ts new file mode 100644 index 000000000..882dd7bbc --- /dev/null +++ b/cjs/models/v2/security-requirements.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { SecurityRequirementsInterface } from '../security-requirements'; +import type { SecurityRequirementInterface } from '../security-requirement'; +export declare class SecurityRequirements extends Collection implements SecurityRequirementsInterface { + get(id: string): SecurityRequirementInterface | undefined; +} diff --git a/cjs/models/v2/security-requirements.js b/cjs/models/v2/security-requirements.js new file mode 100644 index 000000000..10a90fa51 --- /dev/null +++ b/cjs/models/v2/security-requirements.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SecurityRequirements = void 0; +const collection_1 = require("../collection"); +class SecurityRequirements extends collection_1.Collection { + get(id) { + return this.collections.find(securityRequirement => securityRequirement.meta('id') === id); + } +} +exports.SecurityRequirements = SecurityRequirements; diff --git a/cjs/models/v2/security-scheme.d.ts b/cjs/models/v2/security-scheme.d.ts new file mode 100644 index 000000000..c87559674 --- /dev/null +++ b/cjs/models/v2/security-scheme.d.ts @@ -0,0 +1,20 @@ +import { BaseModel } from '../base'; +import type { ExtensionsInterface } from '../extensions'; +import type { SecuritySchemeInterface } from '../security-scheme'; +import type { OAuthFlowsInterface } from '../oauth-flows'; +import type { v2 } from '../../spec-types'; +export declare class SecurityScheme extends BaseModel implements SecuritySchemeInterface { + id(): string; + hasDescription(): boolean; + description(): string | undefined; + hasBearerFormat(): boolean; + bearerFormat(): string | undefined; + openIdConnectUrl(): string | undefined; + scheme(): string | undefined; + flows(): OAuthFlowsInterface | undefined; + type(): v2.SecuritySchemeType; + in(): v2.SecuritySchemaLocation | undefined; + extensions(): ExtensionsInterface; +} diff --git a/cjs/models/v2/security-scheme.js b/cjs/models/v2/security-scheme.js new file mode 100644 index 000000000..95a50a451 --- /dev/null +++ b/cjs/models/v2/security-scheme.js @@ -0,0 +1,44 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SecurityScheme = void 0; +const base_1 = require("../base"); +const oauth_flows_1 = require("./oauth-flows"); +const mixins_1 = require("./mixins"); +class SecurityScheme extends base_1.BaseModel { + id() { + return this._meta.id; + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + description() { + return (0, mixins_1.description)(this); + } + hasBearerFormat() { + return !!this._json.bearerFormat; + } + bearerFormat() { + return this._json.bearerFormat; + } + openIdConnectUrl() { + return this._json.openIdConnectUrl; + } + scheme() { + return this._json.scheme; + } + flows() { + if (!this._json.flows) + return undefined; + return new oauth_flows_1.OAuthFlows(this._json.flows); + } + type() { + return this._json.type; + } + in() { + return this._json.in; + } + extensions() { + return (0, mixins_1.extensions)(this); + } +} +exports.SecurityScheme = SecurityScheme; diff --git a/cjs/models/v2/security-schemes.d.ts b/cjs/models/v2/security-schemes.d.ts new file mode 100644 index 000000000..e9d23e914 --- /dev/null +++ b/cjs/models/v2/security-schemes.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { SecuritySchemesInterface } from '../security-schemes'; +import type { SecuritySchemeInterface } from '../security-scheme'; +export declare class SecuritySchemes extends Collection implements SecuritySchemesInterface { + get(id: string): SecuritySchemeInterface | undefined; +} diff --git a/cjs/models/v2/security-schemes.js b/cjs/models/v2/security-schemes.js new file mode 100644 index 000000000..ff43c7f68 --- /dev/null +++ b/cjs/models/v2/security-schemes.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SecuritySchemes = void 0; +const collection_1 = require("../collection"); +class SecuritySchemes extends collection_1.Collection { + get(id) { + return this.collections.find(securityScheme => securityScheme.id() === id); + } +} +exports.SecuritySchemes = SecuritySchemes; diff --git a/cjs/models/v2/server-variable.d.ts b/cjs/models/v2/server-variable.d.ts new file mode 100644 index 000000000..973203637 --- /dev/null +++ b/cjs/models/v2/server-variable.d.ts @@ -0,0 +1,17 @@ +import { BaseModel } from '../base'; +import type { ExtensionsInterface } from '../extensions'; +import type { ServerVariableInterface } from '../server-variable'; +import type { v2 } from '../../spec-types'; +export declare class ServerVariable extends BaseModel implements ServerVariableInterface { + id(): string; + hasDescription(): boolean; + description(): string | undefined; + hasDefaultValue(): boolean; + defaultValue(): string | undefined; + hasAllowedValues(): boolean; + allowedValues(): Array; + examples(): Array; + extensions(): ExtensionsInterface; +} diff --git a/cjs/models/v2/server-variable.js b/cjs/models/v2/server-variable.js new file mode 100644 index 000000000..8b3b363a8 --- /dev/null +++ b/cjs/models/v2/server-variable.js @@ -0,0 +1,35 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ServerVariable = void 0; +const base_1 = require("../base"); +const mixins_1 = require("./mixins"); +class ServerVariable extends base_1.BaseModel { + id() { + return this._meta.id; + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + description() { + return (0, mixins_1.description)(this); + } + hasDefaultValue() { + return !!this._json.default; + } + defaultValue() { + return this._json.default; + } + hasAllowedValues() { + return !!this._json.enum; + } + allowedValues() { + return this._json.enum || []; + } + examples() { + return this._json.examples || []; + } + extensions() { + return (0, mixins_1.extensions)(this); + } +} +exports.ServerVariable = ServerVariable; diff --git a/cjs/models/v2/server-variables.d.ts b/cjs/models/v2/server-variables.d.ts new file mode 100644 index 000000000..7e3ebe7f4 --- /dev/null +++ b/cjs/models/v2/server-variables.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { ServerVariablesInterface } from '../server-variables'; +import type { ServerVariableInterface } from '../server-variable'; +export declare class ServerVariables extends Collection implements ServerVariablesInterface { + get(id: string): ServerVariableInterface | undefined; +} diff --git a/cjs/models/v2/server-variables.js b/cjs/models/v2/server-variables.js new file mode 100644 index 000000000..80f27b71b --- /dev/null +++ b/cjs/models/v2/server-variables.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ServerVariables = void 0; +const collection_1 = require("../collection"); +class ServerVariables extends collection_1.Collection { + get(id) { + return this.collections.find(variable => variable.id() === id); + } +} +exports.ServerVariables = ServerVariables; diff --git a/cjs/models/v2/server.d.ts b/cjs/models/v2/server.d.ts new file mode 100644 index 000000000..674244462 --- /dev/null +++ b/cjs/models/v2/server.d.ts @@ -0,0 +1,28 @@ +import { BaseModel } from '../base'; +import { SecurityRequirements } from './security-requirements'; +import type { ChannelsInterface } from '../channels'; +import type { OperationsInterface } from '../operations'; +import type { MessagesInterface } from '../messages'; +import type { ServerInterface } from '../server'; +import type { ServerVariablesInterface } from '../server-variables'; +import type { ExtensionsInterface } from '../extensions'; +import type { BindingsInterface } from '../bindings'; +import type { v2 } from '../../spec-types'; +export declare class Server extends BaseModel implements ServerInterface { + id(): string; + url(): string; + protocol(): string; + hasProtocolVersion(): boolean; + protocolVersion(): string | undefined; + hasDescription(): boolean; + description(): string | undefined; + channels(): ChannelsInterface; + operations(): OperationsInterface; + messages(): MessagesInterface; + variables(): ServerVariablesInterface; + security(): SecurityRequirements[]; + bindings(): BindingsInterface; + extensions(): ExtensionsInterface; +} diff --git a/cjs/models/v2/server.js b/cjs/models/v2/server.js new file mode 100644 index 000000000..5d51be5c4 --- /dev/null +++ b/cjs/models/v2/server.js @@ -0,0 +1,88 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Server = void 0; +const base_1 = require("../base"); +const channels_1 = require("./channels"); +const channel_1 = require("./channel"); +const messages_1 = require("./messages"); +const operations_1 = require("./operations"); +const security_scheme_1 = require("./security-scheme"); +const server_variables_1 = require("./server-variables"); +const server_variable_1 = require("./server-variable"); +const security_requirements_1 = require("./security-requirements"); +const security_requirement_1 = require("./security-requirement"); +const mixins_1 = require("./mixins"); +const utils_1 = require("../../utils"); +class Server extends base_1.BaseModel { + id() { + return this._meta.id; + } + url() { + return this._json.url; + } + protocol() { + return this._json.protocol; + } + hasProtocolVersion() { + return !!this._json.protocolVersion; + } + protocolVersion() { + return this._json.protocolVersion; + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + description() { + return (0, mixins_1.description)(this); + } + channels() { + var _a; + const channels = []; + Object.entries(((_a = this._meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed.channels) || {}).forEach(([channelAddress, channel]) => { + const allowedServers = channel.servers || []; + if (allowedServers.length === 0 || allowedServers.includes(this._meta.id)) { + channels.push(this.createModel(channel_1.Channel, channel, { id: channelAddress, address: channelAddress, pointer: `/channels/${(0, utils_1.tilde)(channelAddress)}` })); + } + }); + return new channels_1.Channels(channels); + } + operations() { + const operations = []; + this.channels().forEach(channel => { + operations.push(...channel.operations().all()); + }); + return new operations_1.Operations(operations); + } + messages() { + const messages = []; + this.operations().forEach(operation => messages.push(...operation.messages().all())); + return new messages_1.Messages(messages); + } + variables() { + return new server_variables_1.ServerVariables(Object.entries(this._json.variables || {}).map(([serverVariableName, serverVariable]) => { + return this.createModel(server_variable_1.ServerVariable, serverVariable, { + id: serverVariableName, + pointer: `${this._meta.pointer}/variables/${serverVariableName}` + }); + })); + } + security() { + var _a, _b, _c, _d; + const securitySchemes = (((_d = (_c = (_b = (_a = this._meta) === null || _a === void 0 ? void 0 : _a.asyncapi) === null || _b === void 0 ? void 0 : _b.parsed) === null || _c === void 0 ? void 0 : _c.components) === null || _d === void 0 ? void 0 : _d.securitySchemes) || {}); + return (this._json.security || []).map((requirement, index) => { + const requirements = []; + Object.entries(requirement).forEach(([security, scopes]) => { + const scheme = this.createModel(security_scheme_1.SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }); + requirements.push(this.createModel(security_requirement_1.SecurityRequirement, { scheme, scopes }, { id: security, pointer: `${this.meta().pointer}/security/${index}/${security}` })); + }); + return new security_requirements_1.SecurityRequirements(requirements); + }); + } + bindings() { + return (0, mixins_1.bindings)(this); + } + extensions() { + return (0, mixins_1.extensions)(this); + } +} +exports.Server = Server; diff --git a/cjs/models/v2/servers.d.ts b/cjs/models/v2/servers.d.ts new file mode 100644 index 000000000..101c8aa9e --- /dev/null +++ b/cjs/models/v2/servers.d.ts @@ -0,0 +1,8 @@ +import { Collection } from '../collection'; +import { ServerInterface } from '../server'; +import { ServersInterface } from '../servers'; +export declare class Servers extends Collection implements ServersInterface { + get(id: string): ServerInterface | undefined; + filterBySend(): ServerInterface[]; + filterByReceive(): ServerInterface[]; +} diff --git a/cjs/models/v2/servers.js b/cjs/models/v2/servers.js new file mode 100644 index 000000000..030ad9265 --- /dev/null +++ b/cjs/models/v2/servers.js @@ -0,0 +1,16 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Servers = void 0; +const collection_1 = require("../collection"); +class Servers extends collection_1.Collection { + get(id) { + return this.collections.find(server => server.id() === id); + } + filterBySend() { + return this.filterBy(server => server.operations().filterBySend().length > 0); + } + filterByReceive() { + return this.filterBy(server => server.operations().filterByReceive().length > 0); + } +} +exports.Servers = Servers; diff --git a/cjs/models/v2/tag.d.ts b/cjs/models/v2/tag.d.ts new file mode 100644 index 000000000..a7eaf141f --- /dev/null +++ b/cjs/models/v2/tag.d.ts @@ -0,0 +1,13 @@ +import { BaseModel } from '../base'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { TagInterface } from '../tag'; +import type { v2 } from '../../spec-types'; +export declare class Tag extends BaseModel implements TagInterface { + name(): string; + hasDescription(): boolean; + description(): string | undefined; + extensions(): ExtensionsInterface; + hasExternalDocs(): boolean; + externalDocs(): ExternalDocumentationInterface | undefined; +} diff --git a/cjs/models/v2/tag.js b/cjs/models/v2/tag.js new file mode 100644 index 000000000..b7f899b4b --- /dev/null +++ b/cjs/models/v2/tag.js @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Tag = void 0; +const base_1 = require("../base"); +const mixins_1 = require("./mixins"); +class Tag extends base_1.BaseModel { + name() { + return this._json.name; + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + description() { + return (0, mixins_1.description)(this); + } + extensions() { + return (0, mixins_1.extensions)(this); + } + hasExternalDocs() { + return (0, mixins_1.hasExternalDocs)(this); + } + externalDocs() { + return (0, mixins_1.externalDocs)(this); + } +} +exports.Tag = Tag; diff --git a/cjs/models/v2/tags.d.ts b/cjs/models/v2/tags.d.ts new file mode 100644 index 000000000..371794b27 --- /dev/null +++ b/cjs/models/v2/tags.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { TagsInterface } from '../tags'; +import type { TagInterface } from '../tag'; +export declare class Tags extends Collection implements TagsInterface { + get(name: string): TagInterface | undefined; +} diff --git a/cjs/models/v2/tags.js b/cjs/models/v2/tags.js new file mode 100644 index 000000000..aa4dc7f08 --- /dev/null +++ b/cjs/models/v2/tags.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Tags = void 0; +const collection_1 = require("../collection"); +class Tags extends collection_1.Collection { + get(name) { + return this.collections.find(tag => tag.name() === name); + } +} +exports.Tags = Tags; diff --git a/cjs/models/v3/asyncapi.d.ts b/cjs/models/v3/asyncapi.d.ts new file mode 100644 index 000000000..e6aa68fa7 --- /dev/null +++ b/cjs/models/v3/asyncapi.d.ts @@ -0,0 +1,4 @@ +import { BaseModel } from '../base'; +export declare class AsyncAPIDocument extends BaseModel { + version(): string; +} diff --git a/cjs/models/v3/asyncapi.js b/cjs/models/v3/asyncapi.js new file mode 100644 index 000000000..7501b681c --- /dev/null +++ b/cjs/models/v3/asyncapi.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AsyncAPIDocument = void 0; +const base_1 = require("../base"); +class AsyncAPIDocument extends base_1.BaseModel { + version() { + return this._json.asyncapi; + } +} +exports.AsyncAPIDocument = AsyncAPIDocument; diff --git a/cjs/models/v3/index.d.ts b/cjs/models/v3/index.d.ts new file mode 100644 index 000000000..050c2109b --- /dev/null +++ b/cjs/models/v3/index.d.ts @@ -0,0 +1 @@ +export { AsyncAPIDocument as AsyncAPIDocumentV3 } from './asyncapi'; diff --git a/cjs/models/v3/index.js b/cjs/models/v3/index.js new file mode 100644 index 000000000..18d9d0f87 --- /dev/null +++ b/cjs/models/v3/index.js @@ -0,0 +1,5 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AsyncAPIDocumentV3 = void 0; +var asyncapi_1 = require("./asyncapi"); +Object.defineProperty(exports, "AsyncAPIDocumentV3", { enumerable: true, get: function () { return asyncapi_1.AsyncAPIDocument; } }); diff --git a/cjs/old-api/asyncapi.d.ts b/cjs/old-api/asyncapi.d.ts new file mode 100644 index 000000000..a441ac55a --- /dev/null +++ b/cjs/old-api/asyncapi.d.ts @@ -0,0 +1,40 @@ +import { SpecificationExtensionsModel } from './mixins'; +import { Info } from './info'; +import { Server } from './server'; +import { Channel } from './channel'; +import { Components } from './components'; +import { Message } from './message'; +import { Schema } from './schema'; +import type { v2 } from '../spec-types'; +import type { SchemaTypesToIterate, TraverseCallback } from './iterator'; +export declare class AsyncAPIDocument extends SpecificationExtensionsModel { + version(): string; + info(): Info; + id(): string | undefined; + externalDocs(): import("./external-docs").ExternalDocs | null; + hasExternalDocs(): boolean; + hasTags(): boolean; + tags(): import("./tag").Tag[]; + tagNames(): string[]; + hasTag(name: string): boolean; + tag(name: string): import("./tag").Tag | null; + hasServers(): boolean; + servers(): Record; + serverNames(): string[]; + server(name: string): Server | null; + hasDefaultContentType(): boolean; + defaultContentType(): string | null; + hasChannels(): boolean; + channels(): Record; + channelNames(): string[]; + channel(name: string): Channel | null; + hasComponents(): boolean; + components(): Components | null; + hasMessages(): boolean; + allMessages(): Map; + allSchemas(): Map; + hasCircular(): boolean; + traverseSchemas(callback: TraverseCallback, schemaTypesToIterate?: Array<`${SchemaTypesToIterate}`>): void; + static stringify(doc: AsyncAPIDocument, space?: number): string | undefined; + static parse(doc: string | Record): AsyncAPIDocument | undefined; +} diff --git a/cjs/old-api/asyncapi.js b/cjs/old-api/asyncapi.js new file mode 100644 index 000000000..9c5ea2997 --- /dev/null +++ b/cjs/old-api/asyncapi.js @@ -0,0 +1,161 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AsyncAPIDocument = void 0; +const mixins_1 = require("./mixins"); +const info_1 = require("./info"); +const server_1 = require("./server"); +const channel_1 = require("./channel"); +const components_1 = require("./components"); +const iterator_1 = require("./iterator"); +const constants_1 = require("../constants"); +const stringify_1 = require("../stringify"); +class AsyncAPIDocument extends mixins_1.SpecificationExtensionsModel { + version() { + return this._json.asyncapi; + } + info() { + return new info_1.Info(this._json.info); + } + id() { + return this._json.id; + } + externalDocs() { + return (0, mixins_1.externalDocs)(this); + } + hasExternalDocs() { + return (0, mixins_1.hasExternalDocs)(this); + } + hasTags() { + return mixins_1.tagsMixins.hasTags(this); + } + tags() { + return mixins_1.tagsMixins.tags(this); + } + tagNames() { + return mixins_1.tagsMixins.tagNames(this); + } + hasTag(name) { + return mixins_1.tagsMixins.hasTag(this, name); + } + tag(name) { + return mixins_1.tagsMixins.tag(this, name); + } + hasServers() { + return !!this._json.servers; + } + servers() { + return (0, mixins_1.createMapOfType)(this._json.servers, server_1.Server); + } + serverNames() { + if (!this._json.servers) + return []; + return Object.keys(this._json.servers); + } + server(name) { + return (0, mixins_1.getMapValue)(this._json.servers, name, server_1.Server); + } + hasDefaultContentType() { + return !!this._json.defaultContentType; + } + defaultContentType() { + return this._json.defaultContentType || null; + } + hasChannels() { + return !!this._json.channels; + } + channels() { + return (0, mixins_1.createMapOfType)(this._json.channels, channel_1.Channel); + } + channelNames() { + if (!this._json.channels) + return []; + return Object.keys(this._json.channels); + } + channel(name) { + return (0, mixins_1.getMapValue)(this._json.channels, name, channel_1.Channel); + } + hasComponents() { + return !!this._json.components; + } + components() { + if (!this._json.components) + return null; + return new components_1.Components(this._json.components); + } + hasMessages() { + return !!this.allMessages().size; + } + allMessages() { + const messages = new Map(); + if (this.hasChannels()) { + this.channelNames().forEach(channelName => { + const channel = this.channel(channelName); + if (channel) { + if (channel.hasPublish()) { + channel.publish().messages().forEach(m => { + messages.set(m.uid(), m); + }); + } + if (channel.hasSubscribe()) { + channel.subscribe().messages().forEach(m => { + messages.set(m.uid(), m); + }); + } + } + }); + } + if (this.hasComponents()) { + Object.values(this.components().messages()).forEach(m => { + messages.set(m.uid(), m); + }); + } + return messages; + } + allSchemas() { + const schemas = new Map(); + function allSchemasCallback(schema) { + if (schema.uid()) { + schemas.set(schema.uid(), schema); + } + } + (0, iterator_1.traverseAsyncApiDocument)(this, allSchemasCallback); + return schemas; + } + hasCircular() { + return !!this._json[constants_1.xParserCircular]; + } + traverseSchemas(callback, schemaTypesToIterate = []) { + (0, iterator_1.traverseAsyncApiDocument)(this, callback, schemaTypesToIterate); + } + static stringify(doc, space) { + const rawDoc = doc.json(); + const copiedDoc = Object.assign({}, rawDoc); + copiedDoc[constants_1.xParserSpecStringified] = true; + return JSON.stringify(copiedDoc, (0, stringify_1.refReplacer)(), space); + } + static parse(doc) { + let parsedJSON = doc; + if (typeof doc === 'string') { + parsedJSON = JSON.parse(doc); + } + else if (typeof doc === 'object') { + // shall copy + parsedJSON = Object.assign({}, parsedJSON); + } + // the `doc` must be an AsyncAPI parsed document + if (typeof parsedJSON !== 'object' || !parsedJSON[constants_1.xParserSpecParsed]) { + throw new Error('Cannot parse invalid AsyncAPI document'); + } + // if the `doc` is not stringified via the `stringify` static method then immediately return a model. + if (!parsedJSON[constants_1.xParserSpecStringified]) { + return new AsyncAPIDocument(parsedJSON); + } + // remove `x-parser-spec-stringified` extension + delete parsedJSON[String(constants_1.xParserSpecStringified)]; + const objToPath = new Map(); + const pathToObj = new Map(); + (0, stringify_1.traverseStringifiedData)(parsedJSON, undefined, parsedJSON, objToPath, pathToObj); + return new AsyncAPIDocument(parsedJSON); + } +} +exports.AsyncAPIDocument = AsyncAPIDocument; diff --git a/cjs/old-api/base.d.ts b/cjs/old-api/base.d.ts new file mode 100644 index 000000000..0b26cd2c9 --- /dev/null +++ b/cjs/old-api/base.d.ts @@ -0,0 +1,8 @@ +export declare abstract class Base = Record> { + protected readonly _json: J; + protected readonly _meta: M; + constructor(_json: J, // TODO: Add error here like in original codebase + _meta?: M); + json(): T; + json(key: K): J[K]; +} diff --git a/cjs/old-api/base.js b/cjs/old-api/base.js new file mode 100644 index 000000000..f8374fbfb --- /dev/null +++ b/cjs/old-api/base.js @@ -0,0 +1,18 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Base = void 0; +class Base { + constructor(_json, // TODO: Add error here like in original codebase + _meta = {}) { + this._json = _json; + this._meta = _meta; + } + json(key) { + if (key === undefined || typeof this._json !== 'object') + return this._json; + if (!this._json) + return; + return this._json[key]; + } +} +exports.Base = Base; diff --git a/cjs/old-api/channel-parameter.d.ts b/cjs/old-api/channel-parameter.d.ts new file mode 100644 index 000000000..3265c56d0 --- /dev/null +++ b/cjs/old-api/channel-parameter.d.ts @@ -0,0 +1,9 @@ +import { SpecificationExtensionsModel } from './mixins'; +import { Schema } from './schema'; +import type { v2 } from '../spec-types'; +export declare class ChannelParameter extends SpecificationExtensionsModel { + description(): string | null; + hasDescription(): boolean; + schema(): Schema | null; + location(): string | undefined; +} diff --git a/cjs/old-api/channel-parameter.js b/cjs/old-api/channel-parameter.js new file mode 100644 index 000000000..f13a20365 --- /dev/null +++ b/cjs/old-api/channel-parameter.js @@ -0,0 +1,22 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ChannelParameter = void 0; +const mixins_1 = require("./mixins"); +const schema_1 = require("./schema"); +class ChannelParameter extends mixins_1.SpecificationExtensionsModel { + description() { + return (0, mixins_1.description)(this); + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + schema() { + if (!this._json.schema) + return null; + return new schema_1.Schema(this._json.schema); + } + location() { + return this._json.location; + } +} +exports.ChannelParameter = ChannelParameter; diff --git a/cjs/old-api/channel.d.ts b/cjs/old-api/channel.d.ts new file mode 100644 index 000000000..8214311fc --- /dev/null +++ b/cjs/old-api/channel.d.ts @@ -0,0 +1,23 @@ +import { SpecificationExtensionsModel } from './mixins'; +import { ChannelParameter } from './channel-parameter'; +import { Operation } from './operation'; +import type { v2 } from '../spec-types'; +export declare class Channel extends SpecificationExtensionsModel { + description(): string | null; + hasDescription(): boolean; + hasParameters(): boolean; + parameters(): Record; + parameter(name: string): ChannelParameter | null; + hasServers(): boolean; + servers(): string[]; + server(index: number | string): string | null; + publish(): Operation | null; + subscribe(): Operation | null; + hasPublish(): boolean; + hasSubscribe(): boolean; + hasBindings(): boolean; + bindings(): Record; + bindingProtocols(): string[]; + hasBinding(name: string): boolean; + binding(name: string): v2.Binding | null; +} diff --git a/cjs/old-api/channel.js b/cjs/old-api/channel.js new file mode 100644 index 000000000..ca9f70ccd --- /dev/null +++ b/cjs/old-api/channel.js @@ -0,0 +1,72 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Channel = void 0; +const mixins_1 = require("./mixins"); +const channel_parameter_1 = require("./channel-parameter"); +const operation_1 = require("./operation"); +class Channel extends mixins_1.SpecificationExtensionsModel { + description() { + return (0, mixins_1.description)(this); + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + hasParameters() { + return !!this._json.parameters; + } + parameters() { + return (0, mixins_1.createMapOfType)(this._json.parameters, channel_parameter_1.ChannelParameter); + } + parameter(name) { + return (0, mixins_1.getMapValue)(this._json.parameters, name, channel_parameter_1.ChannelParameter); + } + hasServers() { + return !!this._json.servers; + } + servers() { + if (!this._json.servers) + return []; + return this._json.servers; + } + server(index) { + if (!this._json.servers) + return null; + if (typeof index !== 'number') + return null; + if (index > this._json.servers.length - 1) + return null; + return this._json.servers[+index]; + } + publish() { + if (!this._json.publish) + return null; + return new operation_1.Operation(this._json.publish, { kind: 'publish' }); + } + subscribe() { + if (!this._json.subscribe) + return null; + return new operation_1.Operation(this._json.subscribe, { kind: 'subscribe' }); + } + hasPublish() { + return !!this._json.publish; + } + hasSubscribe() { + return !!this._json.subscribe; + } + hasBindings() { + return mixins_1.bindingsMixins.hasBindings(this); + } + bindings() { + return mixins_1.bindingsMixins.bindings(this); + } + bindingProtocols() { + return mixins_1.bindingsMixins.bindingProtocols(this); + } + hasBinding(name) { + return mixins_1.bindingsMixins.hasBinding(this, name); + } + binding(name) { + return mixins_1.bindingsMixins.binding(this, name); + } +} +exports.Channel = Channel; diff --git a/cjs/old-api/components.d.ts b/cjs/old-api/components.d.ts new file mode 100644 index 000000000..7a409a019 --- /dev/null +++ b/cjs/old-api/components.d.ts @@ -0,0 +1,44 @@ +import { SpecificationExtensionsModel } from './mixins'; +import { Channel } from './channel'; +import { Message } from './message'; +import { Schema } from './schema'; +import { SecurityScheme } from './security-scheme'; +import { Server } from './server'; +import { ChannelParameter } from './channel-parameter'; +import { CorrelationId } from './correlation-id'; +import { OperationTrait } from './operation-trait'; +import { MessageTrait } from './message-trait'; +import { ServerVariable } from './server-variable'; +import type { v2 } from '../spec-types'; +export declare class Components extends SpecificationExtensionsModel { + hasChannels(): boolean; + channels(): Record; + channel(name: string): Channel | null; + hasMessages(): boolean; + messages(): Record; + message(name: string): Message | null; + hasSchemas(): boolean; + schemas(): Record; + schema(name: string): Schema | null; + hasSecuritySchemes(): boolean; + securitySchemes(): Record; + securityScheme(name: string): SecurityScheme | null; + hasServers(): boolean; + servers(): Record; + server(name: string): Server | null; + hasParameters(): boolean; + parameters(): Record; + parameter(name: string): ChannelParameter | null; + hasCorrelationIds(): boolean; + correlationIds(): Record; + correlationId(name: string): CorrelationId | null; + hasOperationTraits(): boolean; + operationTraits(): Record>; + operationTrait(name: string): OperationTrait | null; + hasMessageTraits(): boolean; + messageTraits(): Record>; + messageTrait(name: string): MessageTrait; + hasServerVariables(): boolean; + serverVariables(): Record; + serverVariable(name: string): ServerVariable | null; +} diff --git a/cjs/old-api/components.js b/cjs/old-api/components.js new file mode 100644 index 000000000..c02c9e480 --- /dev/null +++ b/cjs/old-api/components.js @@ -0,0 +1,107 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Components = void 0; +const mixins_1 = require("./mixins"); +const channel_1 = require("./channel"); +const message_1 = require("./message"); +const schema_1 = require("./schema"); +const security_scheme_1 = require("./security-scheme"); +const server_1 = require("./server"); +const channel_parameter_1 = require("./channel-parameter"); +const correlation_id_1 = require("./correlation-id"); +const operation_trait_1 = require("./operation-trait"); +const message_trait_1 = require("./message-trait"); +const server_variable_1 = require("./server-variable"); +class Components extends mixins_1.SpecificationExtensionsModel { + hasChannels() { + return !!this._json.channels; + } + channels() { + return (0, mixins_1.createMapOfType)(this._json.channels, channel_1.Channel); + } + channel(name) { + return (0, mixins_1.getMapValue)(this._json.channels, name, channel_1.Channel); + } + hasMessages() { + return !!this._json.messages; + } + messages() { + return (0, mixins_1.createMapOfType)(this._json.messages, message_1.Message); + } + message(name) { + return (0, mixins_1.getMapValue)(this._json.messages, name, message_1.Message); + } + hasSchemas() { + return !!this._json.schemas; + } + schemas() { + return (0, mixins_1.createMapOfType)(this._json.schemas, schema_1.Schema); + } + schema(name) { + return (0, mixins_1.getMapValue)(this._json.schemas, name, schema_1.Schema); + } + hasSecuritySchemes() { + return !!this._json.securitySchemes; + } + securitySchemes() { + return (0, mixins_1.createMapOfType)(this._json.securitySchemes, security_scheme_1.SecurityScheme); + } + securityScheme(name) { + return (0, mixins_1.getMapValue)(this._json.securitySchemes, name, security_scheme_1.SecurityScheme); + } + hasServers() { + return !!this._json.servers; + } + servers() { + return (0, mixins_1.createMapOfType)(this._json.servers, server_1.Server); + } + server(name) { + return (0, mixins_1.getMapValue)(this._json.servers, name, server_1.Server); + } + hasParameters() { + return !!this._json.parameters; + } + parameters() { + return (0, mixins_1.createMapOfType)(this._json.parameters, channel_parameter_1.ChannelParameter); + } + parameter(name) { + return (0, mixins_1.getMapValue)(this._json.parameters, name, channel_parameter_1.ChannelParameter); + } + hasCorrelationIds() { + return !!this._json.correlationIds; + } + correlationIds() { + return (0, mixins_1.createMapOfType)(this._json.correlationIds, correlation_id_1.CorrelationId); + } + correlationId(name) { + return (0, mixins_1.getMapValue)(this._json.correlationIds, name, correlation_id_1.CorrelationId); + } + hasOperationTraits() { + return !!this._json.operationTraits; + } + operationTraits() { + return (0, mixins_1.createMapOfType)(this._json.operationTraits, operation_trait_1.OperationTrait); + } + operationTrait(name) { + return (0, mixins_1.getMapValue)(this._json.operationTraits, name, operation_trait_1.OperationTrait); + } + hasMessageTraits() { + return !!this._json.messageTraits; + } + messageTraits() { + return (0, mixins_1.createMapOfType)(this._json.messageTraits, message_trait_1.MessageTrait); + } + messageTrait(name) { + return (0, mixins_1.getMapValue)(this._json.messageTraits, name, message_trait_1.MessageTrait); + } + hasServerVariables() { + return !!this._json.serverVariables; + } + serverVariables() { + return (0, mixins_1.createMapOfType)(this._json.serverVariables, server_variable_1.ServerVariable); + } + serverVariable(name) { + return (0, mixins_1.getMapValue)(this._json.serverVariables, name, server_variable_1.ServerVariable); + } +} +exports.Components = Components; diff --git a/cjs/old-api/contact.d.ts b/cjs/old-api/contact.d.ts new file mode 100644 index 000000000..dd119cb51 --- /dev/null +++ b/cjs/old-api/contact.d.ts @@ -0,0 +1,7 @@ +import { SpecificationExtensionsModel } from './mixins'; +import type { v2 } from '../spec-types'; +export declare class Contact extends SpecificationExtensionsModel { + name(): string | undefined; + url(): string | undefined; + email(): string | undefined; +} diff --git a/cjs/old-api/contact.js b/cjs/old-api/contact.js new file mode 100644 index 000000000..e4cba30a5 --- /dev/null +++ b/cjs/old-api/contact.js @@ -0,0 +1,16 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Contact = void 0; +const mixins_1 = require("./mixins"); +class Contact extends mixins_1.SpecificationExtensionsModel { + name() { + return this._json.name; + } + url() { + return this._json.url; + } + email() { + return this._json.email; + } +} +exports.Contact = Contact; diff --git a/cjs/old-api/converter.d.ts b/cjs/old-api/converter.d.ts new file mode 100644 index 000000000..96175d630 --- /dev/null +++ b/cjs/old-api/converter.d.ts @@ -0,0 +1,3 @@ +import { AsyncAPIDocument } from './asyncapi'; +import type { AsyncAPIDocumentInterface } from '../models/asyncapi'; +export declare function convertToOldAPI(newDocument: AsyncAPIDocumentInterface): AsyncAPIDocument; diff --git a/cjs/old-api/converter.js b/cjs/old-api/converter.js new file mode 100644 index 000000000..587c520b9 --- /dev/null +++ b/cjs/old-api/converter.js @@ -0,0 +1,49 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.convertToOldAPI = void 0; +const asyncapi_1 = require("./asyncapi"); +const constants_1 = require("../constants"); +const stringify_1 = require("../stringify"); +const schema_parser_1 = require("../schema-parser"); +function convertToOldAPI(newDocument) { + const data = (0, stringify_1.copy)(newDocument.json()); + const document = new asyncapi_1.AsyncAPIDocument(data); + handleMessages(document); + handleOperations(document); + return document; +} +exports.convertToOldAPI = convertToOldAPI; +function handleMessages(document) { + const defaultSchemaFormat = (0, schema_parser_1.getDefaultSchemaFormat)(document.version()); + for (const message of document.allMessages().values()) { + const json = message.json(); + if (json.traits) { + json[constants_1.xParserOriginalTraits] = json.traits; + delete json.traits; + } + json[constants_1.xParserOriginalSchemaFormat] = json.schemaFormat || defaultSchemaFormat; + json.schemaFormat = defaultSchemaFormat; + json[constants_1.xParserOriginalPayload] = json[constants_1.xParserOriginalPayload] || json.payload; + json[constants_1.xParserMessageParsed] = true; + } +} +function handleOperations(document) { + Object.values(document.channels()).forEach(channel => { + const publish = channel.publish(); + const subscribe = channel.subscribe(); + if (publish) { + const json = publish.json(); + if (json.traits) { + json[constants_1.xParserOriginalTraits] = json.traits; + delete json.traits; + } + } + if (subscribe) { + const json = subscribe.json(); + if (json.traits) { + json[constants_1.xParserOriginalTraits] = json.traits; + delete json.traits; + } + } + }); +} diff --git a/cjs/old-api/correlation-id.d.ts b/cjs/old-api/correlation-id.d.ts new file mode 100644 index 000000000..02fe34b0d --- /dev/null +++ b/cjs/old-api/correlation-id.d.ts @@ -0,0 +1,7 @@ +import { SpecificationExtensionsModel } from './mixins'; +import type { v2 } from '../spec-types'; +export declare class CorrelationId extends SpecificationExtensionsModel { + description(): string | null; + hasDescription(): boolean; + location(): string; +} diff --git a/cjs/old-api/correlation-id.js b/cjs/old-api/correlation-id.js new file mode 100644 index 000000000..7a1104d12 --- /dev/null +++ b/cjs/old-api/correlation-id.js @@ -0,0 +1,16 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CorrelationId = void 0; +const mixins_1 = require("./mixins"); +class CorrelationId extends mixins_1.SpecificationExtensionsModel { + description() { + return (0, mixins_1.description)(this); + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + location() { + return this._json.location; + } +} +exports.CorrelationId = CorrelationId; diff --git a/cjs/old-api/external-docs.d.ts b/cjs/old-api/external-docs.d.ts new file mode 100644 index 000000000..67df99a8b --- /dev/null +++ b/cjs/old-api/external-docs.d.ts @@ -0,0 +1,15 @@ +import { Base } from './base'; +import type { v2 } from '../spec-types'; +export declare class ExternalDocs extends Base { + url(): string; + hasDescription(): boolean; + description(): string | null; + hasExtensions(): boolean; + extensions(): v2.SpecificationExtensions; + extensionKeys(): string[]; + extKeys(): string[]; + hasExtension(extension: string): boolean; + extension(extension: string): v2.SpecificationExtension; + hasExt(extension: string): boolean; + ext(extension: string): any; +} diff --git a/cjs/old-api/external-docs.js b/cjs/old-api/external-docs.js new file mode 100644 index 000000000..5a481b949 --- /dev/null +++ b/cjs/old-api/external-docs.js @@ -0,0 +1,41 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ExternalDocs = void 0; +const base_1 = require("./base"); +const mixins_1 = require("./mixins"); +class ExternalDocs extends base_1.Base { + url() { + return this._json.url; + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + description() { + return (0, mixins_1.description)(this); + } + hasExtensions() { + return mixins_1.extensionsMixins.hasExtensions(this); + } + extensions() { + return mixins_1.extensionsMixins.extensions(this); + } + extensionKeys() { + return mixins_1.extensionsMixins.extensionKeys(this); + } + extKeys() { + return mixins_1.extensionsMixins.extKeys(this); + } + hasExtension(extension) { + return mixins_1.extensionsMixins.hasExtension(this, extension); + } + extension(extension) { + return mixins_1.extensionsMixins.extension(this, extension); + } + hasExt(extension) { + return mixins_1.extensionsMixins.hasExt(this, extension); + } + ext(extension) { + return mixins_1.extensionsMixins.ext(this, extension); + } +} +exports.ExternalDocs = ExternalDocs; diff --git a/cjs/old-api/info.d.ts b/cjs/old-api/info.d.ts new file mode 100644 index 000000000..94d613d55 --- /dev/null +++ b/cjs/old-api/info.d.ts @@ -0,0 +1,13 @@ +import { Contact } from './contact'; +import { License } from './license'; +import { SpecificationExtensionsModel } from './mixins'; +import type { v2 } from '../spec-types'; +export declare class Info extends SpecificationExtensionsModel { + title(): string; + version(): string; + description(): string | null; + hasDescription(): boolean; + termsOfService(): string | undefined; + license(): License | null; + contact(): Contact | null; +} diff --git a/cjs/old-api/info.js b/cjs/old-api/info.js new file mode 100644 index 000000000..cff4102ee --- /dev/null +++ b/cjs/old-api/info.js @@ -0,0 +1,34 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Info = void 0; +const contact_1 = require("./contact"); +const license_1 = require("./license"); +const mixins_1 = require("./mixins"); +class Info extends mixins_1.SpecificationExtensionsModel { + title() { + return this._json.title; + } + version() { + return this._json.version; + } + description() { + return (0, mixins_1.description)(this); + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + termsOfService() { + return this._json.termsOfService; + } + license() { + if (!this._json.license) + return null; + return new license_1.License(this._json.license); + } + contact() { + if (!this._json.contact) + return null; + return new contact_1.Contact(this._json.contact); + } +} +exports.Info = Info; diff --git a/cjs/old-api/iterator.d.ts b/cjs/old-api/iterator.d.ts new file mode 100644 index 000000000..01cc614f0 --- /dev/null +++ b/cjs/old-api/iterator.d.ts @@ -0,0 +1,42 @@ +import type { AsyncAPIDocument } from './asyncapi'; +import type { Schema } from './schema'; +/** + * The different kind of stages when crawling a schema. + */ +export declare enum SchemaIteratorCallbackType { + NEW_SCHEMA = "NEW_SCHEMA", + END_SCHEMA = "END_SCHEMA" +} +/** + * The different types of schemas you can iterate + */ +export declare enum SchemaTypesToIterate { + parameters = "parameters", + payloads = "payloads", + headers = "headers", + components = "components", + objects = "objects", + arrays = "arrays", + oneOfs = "oneOfs", + allOfs = "allOfs", + anyOfs = "anyOfs", + nots = "nots", + propertyNames = "propertyNames", + patternProperties = "patternProperties", + contains = "contains", + ifs = "ifs", + thenes = "thenes", + elses = "elses", + dependencies = "dependencies", + definitions = "definitions" +} +export declare type TraverseOptions = { + callback: TraverseCallback; + schemaTypesToIterate: Array<`${SchemaTypesToIterate}`>; + seenSchemas: Set; +}; +export declare type TraverseCallback = (schema: Schema, propOrIndex: string | number | null, callbackType: SchemaIteratorCallbackType) => boolean | void; +/** + * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. + */ +export declare function traverseAsyncApiDocument(doc: AsyncAPIDocument, callback: TraverseCallback, schemaTypesToIterate?: Array<`${SchemaTypesToIterate}`>): void; diff --git a/cjs/old-api/iterator.js b/cjs/old-api/iterator.js new file mode 100644 index 000000000..9dae5d7b1 --- /dev/null +++ b/cjs/old-api/iterator.js @@ -0,0 +1,250 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.traverseAsyncApiDocument = exports.SchemaTypesToIterate = exports.SchemaIteratorCallbackType = void 0; +/** + * The different kind of stages when crawling a schema. + */ +var SchemaIteratorCallbackType; +(function (SchemaIteratorCallbackType) { + SchemaIteratorCallbackType["NEW_SCHEMA"] = "NEW_SCHEMA"; + SchemaIteratorCallbackType["END_SCHEMA"] = "END_SCHEMA"; +})(SchemaIteratorCallbackType = exports.SchemaIteratorCallbackType || (exports.SchemaIteratorCallbackType = {})); +/** + * The different types of schemas you can iterate + */ +var SchemaTypesToIterate; +(function (SchemaTypesToIterate) { + SchemaTypesToIterate["parameters"] = "parameters"; + SchemaTypesToIterate["payloads"] = "payloads"; + SchemaTypesToIterate["headers"] = "headers"; + SchemaTypesToIterate["components"] = "components"; + SchemaTypesToIterate["objects"] = "objects"; + SchemaTypesToIterate["arrays"] = "arrays"; + SchemaTypesToIterate["oneOfs"] = "oneOfs"; + SchemaTypesToIterate["allOfs"] = "allOfs"; + SchemaTypesToIterate["anyOfs"] = "anyOfs"; + SchemaTypesToIterate["nots"] = "nots"; + SchemaTypesToIterate["propertyNames"] = "propertyNames"; + SchemaTypesToIterate["patternProperties"] = "patternProperties"; + SchemaTypesToIterate["contains"] = "contains"; + SchemaTypesToIterate["ifs"] = "ifs"; + SchemaTypesToIterate["thenes"] = "thenes"; + SchemaTypesToIterate["elses"] = "elses"; + SchemaTypesToIterate["dependencies"] = "dependencies"; + SchemaTypesToIterate["definitions"] = "definitions"; +})(SchemaTypesToIterate = exports.SchemaTypesToIterate || (exports.SchemaTypesToIterate = {})); +/** + * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. + */ +function traverseAsyncApiDocument(doc, callback, schemaTypesToIterate = []) { + if (schemaTypesToIterate.length === 0) { + schemaTypesToIterate = Object.values(SchemaTypesToIterate); + } + const options = { callback, schemaTypesToIterate, seenSchemas: new Set() }; + Object.values(doc.channels()).forEach(channel => { + traverseChannel(channel, options); + }); + const components = doc.components(); + if (schemaTypesToIterate.includes(SchemaTypesToIterate.components) && components) { + Object.values(components.messages()).forEach(message => { + traverseMessage(message, options); + }); + Object.values(components.schemas()).forEach(schema => { + traverseSchema(schema, null, options); + }); + if (schemaTypesToIterate.includes(SchemaTypesToIterate.parameters)) { + Object.values(components.parameters()).forEach(parameter => { + const schema = parameter.schema(); + if (schema) { + traverseSchema(schema, null, options); + } + }); + } + Object.values(components.messageTraits()).forEach(messageTrait => { + traverseMessageTrait(messageTrait, options); + }); + } +} +exports.traverseAsyncApiDocument = traverseAsyncApiDocument; +/* eslint-disable sonarjs/cognitive-complexity */ +/** + * Traverse current schema and all nested schemas. + */ +function traverseSchema(schema, propOrIndex, options) { + if (!schema) + return; + const { schemaTypesToIterate, callback, seenSchemas } = options; + // handle circular references + const jsonSchema = schema.json(); + if (seenSchemas.has(jsonSchema)) + return; + seenSchemas.add(jsonSchema); + // `type` isn't required so save type as array in the fallback + let types = schema.type() || []; + // change primitive type to array of types for easier handling + if (!Array.isArray(types)) { + types = [types]; + } + if (!schemaTypesToIterate.includes(SchemaTypesToIterate.objects) && types.includes('object')) + return; + if (!schemaTypesToIterate.includes(SchemaTypesToIterate.arrays) && types.includes('array')) + return; + // check callback `NEW_SCHEMA` case + if (callback(schema, propOrIndex, SchemaIteratorCallbackType.NEW_SCHEMA) === false) + return; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.objects) && types.includes('object')) { + recursiveSchemaObject(schema, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.arrays) && types.includes('array')) { + recursiveSchemaArray(schema, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.oneOfs)) { + (schema.oneOf() || []).forEach((combineSchema, idx) => { + traverseSchema(combineSchema, idx, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.anyOfs)) { + (schema.anyOf() || []).forEach((combineSchema, idx) => { + traverseSchema(combineSchema, idx, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.allOfs)) { + (schema.allOf() || []).forEach((combineSchema, idx) => { + traverseSchema(combineSchema, idx, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.nots) && schema.not()) { + traverseSchema(schema.not(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.ifs) && schema.if()) { + traverseSchema(schema.if(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.thenes) && schema.then()) { + traverseSchema(schema.then(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.elses) && schema.else()) { + traverseSchema(schema.else(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.dependencies)) { + Object.entries(schema.dependencies() || {}).forEach(([depName, dep]) => { + // do not iterate dependent required + if (dep && !Array.isArray(dep)) { + traverseSchema(dep, depName, options); + } + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.definitions)) { + Object.entries(schema.definitions() || {}).forEach(([defName, def]) => { + traverseSchema(def, defName, options); + }); + } + callback(schema, propOrIndex, SchemaIteratorCallbackType.END_SCHEMA); + seenSchemas.delete(jsonSchema); +} +/* eslint-enable sonarjs/cognitive-complexity */ +/** + * Recursively go through schema of object type and execute callback. + */ +function recursiveSchemaObject(schema, options) { + Object.entries(schema.properties()).forEach(([propertyName, property]) => { + traverseSchema(property, propertyName, options); + }); + const additionalProperties = schema.additionalProperties(); + if (typeof additionalProperties === 'object') { + traverseSchema(additionalProperties, null, options); + } + const schemaTypesToIterate = options.schemaTypesToIterate; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.propertyNames) && schema.propertyNames()) { + traverseSchema(schema.propertyNames(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.patternProperties)) { + Object.entries(schema.patternProperties() || {}).forEach(([propertyName, property]) => { + traverseSchema(property, propertyName, options); + }); + } +} +/** + * Recursively go through schema of array type and execute callback. + */ +function recursiveSchemaArray(schema, options) { + const items = schema.items(); + if (items) { + if (Array.isArray(items)) { + items.forEach((item, idx) => { + traverseSchema(item, idx, options); + }); + } + else { + traverseSchema(items, null, options); + } + } + const additionalItems = schema.additionalItems(); + if (typeof additionalItems === 'object') { + traverseSchema(additionalItems, null, options); + } + if (options.schemaTypesToIterate.includes('contains') && schema.contains()) { + traverseSchema(schema.contains(), null, options); + } +} +/** + * Go through each schema in channel + */ +function traverseChannel(channel, options) { + if (!channel) + return; + const { schemaTypesToIterate } = options; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.parameters)) { + Object.values(channel.parameters() || {}).forEach(parameter => { + const schema = parameter.schema(); + if (schema) { + traverseSchema(schema, null, options); + } + }); + } + const publish = channel.publish(); + if (publish) { + publish.messages().forEach(message => { + traverseMessage(message, options); + }); + } + const subscribe = channel.subscribe(); + if (subscribe) { + subscribe.messages().forEach(message => { + traverseMessage(message, options); + }); + } +} +/** + * Go through each schema in a message + */ +function traverseMessage(message, options) { + if (!message) + return; + const { schemaTypesToIterate } = options; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.headers)) { + const headers = message.headers(); + if (headers) { + traverseSchema(headers, null, options); + } + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.payloads)) { + const payload = message.payload(); + if (payload) { + traverseSchema(payload, null, options); + } + } +} +/** + * Go through each schema in a messageTrait + */ +function traverseMessageTrait(messageTrait, options) { + if (!messageTrait) + return; + const { schemaTypesToIterate } = options; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.headers)) { + const headers = messageTrait.headers(); + if (headers) { + traverseSchema(headers, null, options); + } + } +} diff --git a/cjs/old-api/license.d.ts b/cjs/old-api/license.d.ts new file mode 100644 index 000000000..2e926b988 --- /dev/null +++ b/cjs/old-api/license.d.ts @@ -0,0 +1,6 @@ +import { SpecificationExtensionsModel } from './mixins'; +import type { v2 } from '../spec-types'; +export declare class License extends SpecificationExtensionsModel { + name(): string; + url(): string | undefined; +} diff --git a/cjs/old-api/license.js b/cjs/old-api/license.js new file mode 100644 index 000000000..2d5916002 --- /dev/null +++ b/cjs/old-api/license.js @@ -0,0 +1,13 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.License = void 0; +const mixins_1 = require("./mixins"); +class License extends mixins_1.SpecificationExtensionsModel { + name() { + return this._json.name; + } + url() { + return this._json.url; + } +} +exports.License = License; diff --git a/cjs/old-api/message-trait.d.ts b/cjs/old-api/message-trait.d.ts new file mode 100644 index 000000000..e4a7f5825 --- /dev/null +++ b/cjs/old-api/message-trait.d.ts @@ -0,0 +1,30 @@ +import { SpecificationExtensionsModel } from './mixins'; +import { CorrelationId } from './correlation-id'; +import { Schema } from './schema'; +import type { v2 } from '../spec-types'; +export declare class MessageTrait extends SpecificationExtensionsModel { + id(): string | undefined; + headers(): Schema | null; + header(name: string): Schema | null; + correlationId(): CorrelationId | null; + schemaFormat(): string; + contentType(): string | undefined; + name(): string | undefined; + title(): string | undefined; + summary(): string | undefined; + description(): string | null; + hasDescription(): boolean; + externalDocs(): import("./external-docs").ExternalDocs | null; + hasExternalDocs(): boolean; + hasTags(): boolean; + tags(): import("./tag").Tag[]; + tagNames(): string[]; + hasTag(name: string): boolean; + tag(name: string): import("./tag").Tag | null; + hasBindings(): boolean; + bindings(): Record; + bindingProtocols(): string[]; + hasBinding(name: string): boolean; + binding(name: string): v2.Binding | null; + examples(): v2.MessageExampleObject[] | undefined; +} diff --git a/cjs/old-api/message-trait.js b/cjs/old-api/message-trait.js new file mode 100644 index 000000000..2066f4e69 --- /dev/null +++ b/cjs/old-api/message-trait.js @@ -0,0 +1,87 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageTrait = void 0; +const mixins_1 = require("./mixins"); +const correlation_id_1 = require("./correlation-id"); +const schema_1 = require("./schema"); +class MessageTrait extends mixins_1.SpecificationExtensionsModel { + id() { + return this._json.messageId; + } + headers() { + if (!this._json.headers) + return null; + return new schema_1.Schema(this._json.headers); + } + header(name) { + if (!this._json.headers) + return null; + return (0, mixins_1.getMapValue)(this._json.headers.properties || {}, name, schema_1.Schema); + } + correlationId() { + if (!this._json.correlationId) + return null; + return new correlation_id_1.CorrelationId(this._json.correlationId); + } + schemaFormat() { + return this._json.schemaFormat; // Old API points always to the default schema format for given AsyncAPI version, so we need to force returned type as string. + } + contentType() { + return this._json.contentType; + } + name() { + return this._json.name; + } + title() { + return this._json.title; + } + summary() { + return this._json.summary; + } + description() { + return (0, mixins_1.description)(this); + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + externalDocs() { + return (0, mixins_1.externalDocs)(this); + } + hasExternalDocs() { + return (0, mixins_1.hasExternalDocs)(this); + } + hasTags() { + return mixins_1.tagsMixins.hasTags(this); + } + tags() { + return mixins_1.tagsMixins.tags(this); + } + tagNames() { + return mixins_1.tagsMixins.tagNames(this); + } + hasTag(name) { + return mixins_1.tagsMixins.hasTag(this, name); + } + tag(name) { + return mixins_1.tagsMixins.tag(this, name); + } + hasBindings() { + return mixins_1.bindingsMixins.hasBindings(this); + } + bindings() { + return mixins_1.bindingsMixins.bindings(this); + } + bindingProtocols() { + return mixins_1.bindingsMixins.bindingProtocols(this); + } + hasBinding(name) { + return mixins_1.bindingsMixins.hasBinding(this, name); + } + binding(name) { + return mixins_1.bindingsMixins.binding(this, name); + } + examples() { + return this._json.examples; + } +} +exports.MessageTrait = MessageTrait; diff --git a/cjs/old-api/message.d.ts b/cjs/old-api/message.d.ts new file mode 100644 index 000000000..08e26b8f3 --- /dev/null +++ b/cjs/old-api/message.d.ts @@ -0,0 +1,11 @@ +import { MessageTrait } from './message-trait'; +import { Schema } from './schema'; +import type { v2 } from '../spec-types'; +export declare class Message extends MessageTrait { + uid(): string; + payload(): Schema | null; + traits(): MessageTrait[]; + hasTraits(): boolean; + originalPayload(): any; + originalSchemaFormat(): string; +} diff --git a/cjs/old-api/message.js b/cjs/old-api/message.js new file mode 100644 index 000000000..54493b756 --- /dev/null +++ b/cjs/old-api/message.js @@ -0,0 +1,32 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Message = void 0; +const message_trait_1 = require("./message-trait"); +const schema_1 = require("./schema"); +const constants_1 = require("../constants"); +class Message extends message_trait_1.MessageTrait { + uid() { + return this.id() || this.name() || this.ext(constants_1.xParserMessageName); + } + payload() { + if (!this._json.payload) + return null; + return new schema_1.Schema(this._json.payload); + } + traits() { + const traits = this.ext(constants_1.xParserOriginalTraits) || this._json.traits; + if (!traits) + return []; + return traits.map(t => new message_trait_1.MessageTrait(t)); + } + hasTraits() { + return !!this.ext(constants_1.xParserOriginalTraits) || !!this._json.traits; + } + originalPayload() { + return this.ext(constants_1.xParserOriginalPayload) || this.payload(); + } + originalSchemaFormat() { + return this.ext(constants_1.xParserOriginalSchemaFormat) || this.schemaFormat(); + } +} +exports.Message = Message; diff --git a/cjs/old-api/mixins.d.ts b/cjs/old-api/mixins.d.ts new file mode 100644 index 000000000..f0b7021aa --- /dev/null +++ b/cjs/old-api/mixins.d.ts @@ -0,0 +1,95 @@ +import { Base } from './base'; +import { ExternalDocs } from './external-docs'; +import { Tag } from './tag'; +import type { v2 } from '../spec-types'; +export declare abstract class SpecificationExtensionsModel = Record> extends Base { + hasExtensions(): boolean; + extensions(): v2.SpecificationExtensions; + extensionKeys(): string[]; + extKeys(): string[]; + hasExtension(extension: string): boolean; + extension(extension: string): v2.SpecificationExtension; + hasExt(extension: string): boolean; + ext(extension: string): any; +} +export declare function hasDescription(model: Base<{ + description?: string; +}>): boolean; +export declare function description(model: Base<{ + description?: string; +}>): string | null; +export declare function hasExternalDocs(model: Base<{ + externalDocs?: v2.ExternalDocumentationObject; +}>): boolean; +export declare function externalDocs(model: Base<{ + externalDocs?: v2.ExternalDocumentationObject; +}>): ExternalDocs | null; +export declare const extensionsMixins: { + hasExtensions(model: Base<{ + [extension: `x-${string}`]: any; + }, Record>): boolean; + extensions(model: Base<{ + [extension: `x-${string}`]: any; + }, Record>): v2.SpecificationExtensions; + extensionKeys(model: Base<{ + [extension: `x-${string}`]: any; + }, Record>): string[]; + extKeys(model: Base<{ + [extension: `x-${string}`]: any; + }, Record>): string[]; + hasExtension(model: Base<{ + [extension: `x-${string}`]: any; + }, Record>, extension: string): boolean; + extension(model: Base<{ + [extension: `x-${string}`]: any; + }, Record>, extension: string): v2.SpecificationExtension | null; + hasExt(model: Base<{ + [extension: `x-${string}`]: any; + }, Record>, extension: string): boolean; + ext(model: Base<{ + [extension: `x-${string}`]: any; + }, Record>, extension: string): any; +}; +export declare const bindingsMixins: { + hasBindings(model: Base<{ + bindings?: Record; + }>): boolean; + bindings(model: Base<{ + bindings?: Record; + }>): Record; + bindingProtocols(model: Base<{ + bindings?: Record; + }>): string[]; + hasBinding(model: Base<{ + bindings?: Record; + }>, name: string): boolean; + binding(model: Base<{ + bindings?: Record; + }>, name: string): v2.Binding | null; +}; +export declare const tagsMixins: { + hasTags(model: Base<{ + tags?: Array; + }>): boolean; + tags(model: Base<{ + tags?: Array; + }>): Array; + tagNames(model: Base<{ + tags?: Array; + }>): string[]; + hasTag(model: Base<{ + tags?: Array; + }>, name: string): boolean; + tag(model: Base<{ + tags?: Array; + }>, name: string): Tag | null; +}; +interface Constructor extends Function { + new (...any: any[]): T; +} +declare type InferModelData = T extends Base ? J : never; +declare type InferModelMetadata = T extends Base ? M : never; +export declare function getMapValue, K extends keyof T>(obj: T | undefined, key: K): T[K] | null; +export declare function getMapValue(obj: Record> | undefined, key: string, Type: Constructor, meta?: InferModelMetadata): T | null; +export declare function createMapOfType(obj: Record> | undefined, Type: Constructor, meta?: InferModelMetadata): Record; +export {}; diff --git a/cjs/old-api/mixins.js b/cjs/old-api/mixins.js new file mode 100644 index 000000000..197b679b0 --- /dev/null +++ b/cjs/old-api/mixins.js @@ -0,0 +1,148 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createMapOfType = exports.getMapValue = exports.tagsMixins = exports.bindingsMixins = exports.extensionsMixins = exports.externalDocs = exports.hasExternalDocs = exports.description = exports.hasDescription = exports.SpecificationExtensionsModel = void 0; +const base_1 = require("./base"); +const external_docs_1 = require("./external-docs"); +const tag_1 = require("./tag"); +const constants_1 = require("../constants"); +class SpecificationExtensionsModel extends base_1.Base { + hasExtensions() { + return exports.extensionsMixins.hasExtensions(this); + } + extensions() { + return exports.extensionsMixins.extensions(this); + } + extensionKeys() { + return exports.extensionsMixins.extensionKeys(this); + } + extKeys() { + return exports.extensionsMixins.extKeys(this); + } + hasExtension(extension) { + return exports.extensionsMixins.hasExtension(this, extension); + } + extension(extension) { + return exports.extensionsMixins.extension(this, extension); + } + hasExt(extension) { + return exports.extensionsMixins.hasExt(this, extension); + } + ext(extension) { + return exports.extensionsMixins.ext(this, extension); + } +} +exports.SpecificationExtensionsModel = SpecificationExtensionsModel; +function hasDescription(model) { + return Boolean(model.json('description')); +} +exports.hasDescription = hasDescription; +function description(model) { + const description = model.json('description'); + return typeof description === 'string' ? description : null; +} +exports.description = description; +function hasExternalDocs(model) { + return Object.keys(model.json('externalDocs') || {}).length > 0; +} +exports.hasExternalDocs = hasExternalDocs; +function externalDocs(model) { + if (typeof model.json('externalDocs') === 'object') { + return new external_docs_1.ExternalDocs(model.json('externalDocs')); + } + return null; +} +exports.externalDocs = externalDocs; +exports.extensionsMixins = { + hasExtensions(model) { + return !!exports.extensionsMixins.extensionKeys(model).length; + }, + extensions(model) { + const result = {}; + Object.entries(model.json()).forEach(([key, value]) => { + if (constants_1.EXTENSION_REGEX.test(key)) { + result[key] = value; + } + }); + return result; + }, + extensionKeys(model) { + return Object.keys(exports.extensionsMixins.extensions(model)); + }, + extKeys(model) { + return exports.extensionsMixins.extensionKeys(model); + }, + hasExtension(model, extension) { + if (!extension.startsWith('x-')) { + return false; + } + return !!model.json()[extension]; + }, + extension(model, extension) { + if (!extension.startsWith('x-')) { + return null; + } + return model.json()[extension]; + }, + hasExt(model, extension) { + return exports.extensionsMixins.hasExtension(model, extension); + }, + ext(model, extension) { + return exports.extensionsMixins.extension(model, extension); + }, +}; +exports.bindingsMixins = { + hasBindings(model) { + return !!Object.keys(exports.bindingsMixins.bindings(model)).length; + }, + bindings(model) { + return model.json('bindings') || {}; + }, + bindingProtocols(model) { + return Object.keys(exports.bindingsMixins.bindings(model)); + }, + hasBinding(model, name) { + return !!exports.bindingsMixins.binding(model, name); + }, + binding(model, name) { + return getMapValue(model.json('bindings'), name); + }, +}; +exports.tagsMixins = { + hasTags(model) { + return !!exports.tagsMixins.tags(model).length; + }, + tags(model) { + const tags = model.json('tags'); + return tags ? tags.map(t => new tag_1.Tag(t)) : []; + }, + tagNames(model) { + const tags = model.json('tags'); + return tags ? tags.map(t => t.name) : []; + }, + hasTag(model, name) { + return !!exports.tagsMixins.tag(model, name); + }, + tag(model, name) { + const tg = (model.json('tags') || []).find(t => t.name === name); + return tg ? new tag_1.Tag(tg) : null; + }, +}; +function getMapValue(obj, key, Type, meta) { + if (typeof key !== 'string' || !obj) + return null; + const v = obj[String(key)]; + if (v === undefined) + return null; + return Type ? new Type(v, meta) : v; +} +exports.getMapValue = getMapValue; +function createMapOfType(obj, Type, meta) { + const result = {}; + if (!obj) + return result; + Object.entries(obj).forEach(([key, value]) => { + result[key] = new Type(value, meta); + }); + return result; +} +exports.createMapOfType = createMapOfType; diff --git a/cjs/old-api/oauth-flow.d.ts b/cjs/old-api/oauth-flow.d.ts new file mode 100644 index 000000000..0621e5b7e --- /dev/null +++ b/cjs/old-api/oauth-flow.d.ts @@ -0,0 +1,8 @@ +import { SpecificationExtensionsModel } from './mixins'; +import type { v2 } from '../spec-types'; +export declare class OAuthFlow extends SpecificationExtensionsModel { + authorizationUrl(): string; + tokenUrl(): string; + refreshUrl(): string | undefined; + scopes(): Record; +} diff --git a/cjs/old-api/oauth-flow.js b/cjs/old-api/oauth-flow.js new file mode 100644 index 000000000..ed8625948 --- /dev/null +++ b/cjs/old-api/oauth-flow.js @@ -0,0 +1,19 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OAuthFlow = void 0; +const mixins_1 = require("./mixins"); +class OAuthFlow extends mixins_1.SpecificationExtensionsModel { + authorizationUrl() { + return this._json.authorizationUrl; + } + tokenUrl() { + return this._json.tokenUrl; + } + refreshUrl() { + return this._json.refreshUrl; + } + scopes() { + return this._json.scopes; + } +} +exports.OAuthFlow = OAuthFlow; diff --git a/cjs/old-api/operation-trait.d.ts b/cjs/old-api/operation-trait.d.ts new file mode 100644 index 000000000..9e48932d7 --- /dev/null +++ b/cjs/old-api/operation-trait.d.ts @@ -0,0 +1,27 @@ +import { SpecificationExtensionsModel } from './mixins'; +import { SecurityRequirement } from './security-requirement'; +import type { v2 } from '../spec-types'; +export declare class OperationTrait extends SpecificationExtensionsModel { + isPublish(): boolean; + isSubscribe(): boolean; + kind(): "subscribe" | "publish"; + id(): string | undefined; + summary(): string | undefined; + description(): string | null; + hasDescription(): boolean; + externalDocs(): import("./external-docs").ExternalDocs | null; + hasExternalDocs(): boolean; + hasTags(): boolean; + tags(): import("./tag").Tag[]; + tagNames(): string[]; + hasTag(name: string): boolean; + tag(name: string): import("./tag").Tag | null; + hasBindings(): boolean; + bindings(): Record; + bindingProtocols(): string[]; + hasBinding(name: string): boolean; + binding(name: string): v2.Binding | null; + security(): SecurityRequirement[] | null; +} diff --git a/cjs/old-api/operation-trait.js b/cjs/old-api/operation-trait.js new file mode 100644 index 000000000..731253693 --- /dev/null +++ b/cjs/old-api/operation-trait.js @@ -0,0 +1,70 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OperationTrait = void 0; +const mixins_1 = require("./mixins"); +const security_requirement_1 = require("./security-requirement"); +class OperationTrait extends mixins_1.SpecificationExtensionsModel { + isPublish() { + return this._meta.kind === 'publish'; + } + isSubscribe() { + return this._meta.kind === 'subscribe'; + } + kind() { + return this._meta.kind; + } + id() { + return this._json.operationId; + } + summary() { + return this._json.summary; + } + description() { + return (0, mixins_1.description)(this); + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + externalDocs() { + return (0, mixins_1.externalDocs)(this); + } + hasExternalDocs() { + return (0, mixins_1.hasExternalDocs)(this); + } + hasTags() { + return mixins_1.tagsMixins.hasTags(this); + } + tags() { + return mixins_1.tagsMixins.tags(this); + } + tagNames() { + return mixins_1.tagsMixins.tagNames(this); + } + hasTag(name) { + return mixins_1.tagsMixins.hasTag(this, name); + } + tag(name) { + return mixins_1.tagsMixins.tag(this, name); + } + hasBindings() { + return mixins_1.bindingsMixins.hasBindings(this); + } + bindings() { + return mixins_1.bindingsMixins.bindings(this); + } + bindingProtocols() { + return mixins_1.bindingsMixins.bindingProtocols(this); + } + hasBinding(name) { + return mixins_1.bindingsMixins.hasBinding(this, name); + } + binding(name) { + return mixins_1.bindingsMixins.binding(this, name); + } + security() { + if (!this._json.security) + return null; + return this._json.security.map(sec => new security_requirement_1.SecurityRequirement(sec)); + } +} +exports.OperationTrait = OperationTrait; diff --git a/cjs/old-api/operation.d.ts b/cjs/old-api/operation.d.ts new file mode 100644 index 000000000..057caa8e8 --- /dev/null +++ b/cjs/old-api/operation.d.ts @@ -0,0 +1,10 @@ +import { OperationTrait } from './operation-trait'; +import { Message } from './message'; +import type { v2 } from '../spec-types'; +export declare class Operation extends OperationTrait { + traits(): OperationTrait[]; + hasTraits(): boolean; + hasMultipleMessages(): boolean; + messages(): Message[]; + message(index?: number | string): Message | null; +} diff --git a/cjs/old-api/operation.js b/cjs/old-api/operation.js new file mode 100644 index 000000000..b5f0331bc --- /dev/null +++ b/cjs/old-api/operation.js @@ -0,0 +1,46 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Operation = void 0; +const operation_trait_1 = require("./operation-trait"); +const message_1 = require("./message"); +class Operation extends operation_trait_1.OperationTrait { + traits() { + const traits = this._json['x-parser-original-traits'] || this._json.traits; + if (!traits) + return []; + return traits.map(t => new operation_trait_1.OperationTrait(t)); + } + hasTraits() { + return !!this._json['x-parser-original-traits'] || !!this._json.traits; + } + hasMultipleMessages() { + const message = this._json.message; + // eslint-disable-next-line sonarjs/prefer-single-boolean-return + if (message && message.oneOf && message.oneOf.length > 1) + return true; + return false; + } + messages() { + const message = this._json.message; + if (!message) + return []; + if (message.oneOf) + return message.oneOf.map(m => new message_1.Message(m)); + return [new message_1.Message(message)]; + } + message(index) { + const message = this._json.message; + if (!message) + return null; + if (message.oneOf && message.oneOf.length === 1) + return new message_1.Message(message.oneOf[0]); + if (!message.oneOf) + return new message_1.Message(message); + if (typeof index !== 'number') + return null; + if (index > message.oneOf.length - 1) + return null; + return new message_1.Message(message.oneOf[+index]); + } +} +exports.Operation = Operation; diff --git a/cjs/old-api/schema.d.ts b/cjs/old-api/schema.d.ts new file mode 100644 index 000000000..b9d2ece2d --- /dev/null +++ b/cjs/old-api/schema.d.ts @@ -0,0 +1,63 @@ +import { SpecificationExtensionsModel } from './mixins'; +import type { v2 } from '../spec-types'; +export declare class Schema extends SpecificationExtensionsModel { + uid(): any; + $id(): string | undefined; + multipleOf(): number | undefined; + maximum(): number | undefined; + exclusiveMaximum(): number | undefined; + minimum(): number | undefined; + exclusiveMinimum(): number | undefined; + maxLength(): number | undefined; + minLength(): number | undefined; + pattern(): string | undefined; + maxItems(): number | undefined; + minItems(): number | undefined; + uniqueItems(): boolean | undefined; + maxProperties(): number | undefined; + minProperties(): number | undefined; + required(): string[] | undefined; + enum(): import("json-schema").JSONSchema7Type[] | undefined; + type(): import("json-schema").JSONSchema7TypeName | import("json-schema").JSONSchema7TypeName[] | undefined; + allOf(): Schema[] | null; + oneOf(): Schema[] | null; + anyOf(): Schema[] | null; + not(): Schema | null; + items(): Schema | Schema[] | null; + properties(): Record; + property(name: string): Schema | null; + additionalProperties(): boolean | Schema; + additionalItems(): boolean | Schema; + patternProperties(): Record; + const(): import("json-schema").JSONSchema7Type | undefined; + contains(): Schema | null; + dependencies(): Record | null; + propertyNames(): Schema | null; + if(): Schema | null; + then(): Schema | null; + else(): Schema | null; + format(): string | undefined; + contentEncoding(): string | undefined; + contentMediaType(): string | undefined; + definitions(): Record; + title(): string | undefined; + default(): import("json-schema").JSONSchema7Type | undefined; + deprecated(): boolean | undefined; + discriminator(): string | undefined; + readOnly(): boolean | undefined; + writeOnly(): boolean | undefined; + examples(): import("json-schema").JSONSchema7Type[] | undefined; + isBooleanSchema(): boolean; + description(): string | null; + hasDescription(): boolean; + externalDocs(): import("./external-docs").ExternalDocs | null; + hasExternalDocs(): boolean; + isCircular(): boolean; + circularSchema(): Schema | undefined; + hasCircularProps(): boolean; + circularProps(): any; + protected __get(key: K): v2.AsyncAPISchemaDefinition[K] | undefined; + protected __createChild(s: v2.AsyncAPISchemaObject): Schema; +} diff --git a/cjs/old-api/schema.js b/cjs/old-api/schema.js new file mode 100644 index 000000000..9c03b7df3 --- /dev/null +++ b/cjs/old-api/schema.js @@ -0,0 +1,253 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Schema = void 0; +const mixins_1 = require("./mixins"); +const constants_1 = require("../constants"); +const utils_1 = require("../utils"); +class Schema extends mixins_1.SpecificationExtensionsModel { + uid() { + return this.$id() || this.ext('x-parser-schema-id'); + } + $id() { + return this.__get('$id'); + } + multipleOf() { + return this.__get('multipleOf'); + } + maximum() { + return this.__get('maximum'); + } + exclusiveMaximum() { + return this.__get('exclusiveMaximum'); + } + minimum() { + return this.__get('minimum'); + } + exclusiveMinimum() { + return this.__get('exclusiveMinimum'); + } + maxLength() { + return this.__get('maxLength'); + } + minLength() { + return this.__get('minLength'); + } + pattern() { + return this.__get('pattern'); + } + maxItems() { + return this.__get('maxItems'); + } + minItems() { + return this.__get('minItems'); + } + uniqueItems() { + return this.__get('uniqueItems'); + } + maxProperties() { + return this.__get('maxProperties'); + } + minProperties() { + return this.__get('minProperties'); + } + required() { + return this.__get('required'); + } + enum() { + return this.__get('enum'); + } + type() { + return this.__get('type'); + } + allOf() { + const allOf = this.__get('allOf'); + return !allOf ? null : allOf.map(this.__createChild); + } + oneOf() { + const oneOf = this.__get('oneOf'); + return !oneOf ? null : oneOf.map(this.__createChild); + } + anyOf() { + const anyOf = this.__get('anyOf'); + return !anyOf ? null : anyOf.map(this.__createChild); + } + not() { + const not = this.__get('not'); + return !not ? null : this.__createChild(not); + } + items() { + const items = this.__get('items'); + if (!items) + return null; + if (Array.isArray(items)) { + return items.map(this.__createChild); + } + return this.__createChild(items); + } + properties() { + return (0, mixins_1.createMapOfType)(this.__get('properties'), Schema, { parent: this }); + } + property(name) { + return (0, mixins_1.getMapValue)(this.__get('properties'), name, Schema, { parent: this }); + } + additionalProperties() { + if (typeof this._json === 'boolean') + return this._json; + const additionalProperties = this.__get('additionalProperties'); + if (typeof additionalProperties === 'boolean') + return additionalProperties; + if (additionalProperties === undefined) + return true; + if (additionalProperties === null) + return false; + return this.__createChild(additionalProperties); + } + additionalItems() { + if (typeof this._json === 'boolean') + return this._json; + const additionalItems = this.__get('additionalItems'); + if (typeof additionalItems === 'boolean') + return additionalItems; + if (additionalItems === undefined) + return true; + if (additionalItems === null) + return false; + return this.__createChild(additionalItems); + } + patternProperties() { + return (0, mixins_1.createMapOfType)(this.__get('patternProperties'), Schema, { parent: this }); + } + const() { + return this.__get('const'); + } + contains() { + const contains = this.__get('contains'); + return typeof contains === 'undefined' ? null : this.__createChild(contains); + } + dependencies() { + const dependencies = this.__get('dependencies'); + if (!dependencies) + return null; + const result = {}; + Object.entries(dependencies).forEach(([key, value]) => { + result[key] = !Array.isArray(value) ? this.__createChild(value) : value; + }); + return result; + } + propertyNames() { + const propertyNames = this.__get('propertyNames'); + return typeof propertyNames === 'undefined' ? null : this.__createChild(propertyNames); + } + if() { + const _if = this.__get('if'); + return typeof _if === 'undefined' ? null : this.__createChild(_if); + } + then() { + const _then = this.__get('then'); + return typeof _then === 'undefined' ? null : this.__createChild(_then); + } + else() { + const _else = this.__get('else'); + return typeof _else === 'undefined' ? null : this.__createChild(_else); + } + format() { + return this.__get('format'); + } + contentEncoding() { + return this.__get('contentEncoding'); + } + contentMediaType() { + return this.__get('contentMediaType'); + } + definitions() { + return (0, mixins_1.createMapOfType)(this.__get('definitions'), Schema, { parent: this }); + } + title() { + return this.__get('title'); + } + default() { + return this.__get('default'); + } + deprecated() { + return this.__get('deprecated'); + } + discriminator() { + return this.__get('discriminator'); + } + readOnly() { + return this.__get('readOnly'); + } + writeOnly() { + return this.__get('writeOnly'); + } + examples() { + return this.__get('examples'); + } + isBooleanSchema() { + return typeof this._json === 'boolean'; + } + description() { + return (0, mixins_1.description)(this); + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + externalDocs() { + return (0, mixins_1.externalDocs)(this); + } + hasExternalDocs() { + return (0, mixins_1.hasExternalDocs)(this); + } + isCircular() { + if ((0, utils_1.hasRef)(this._json) || this.ext(constants_1.xParserCircular)) { + return true; + } + let parent = this._meta.parent; + while (parent) { + if (parent._json === this._json) + return true; + parent = parent._meta && parent._meta.parent; + } + return false; + } + circularSchema() { + let parent = this._meta.parent; + while (parent) { + if (parent._json === this._json) + return parent; + parent = parent._meta && parent._meta.parent; + } + } + hasCircularProps() { + if (Array.isArray(this.ext(constants_1.xParserCircularProps))) { + return this.ext(constants_1.xParserCircularProps).length > 0; + } + return Object.entries(this.properties() || {}) + .map(([propertyName, property]) => { + if (property.isCircular()) + return propertyName; + }) + .filter(Boolean) + .length > 0; + } + circularProps() { + if (Array.isArray(this.ext(constants_1.xParserCircularProps))) { + return this.ext(constants_1.xParserCircularProps); + } + return Object.entries(this.properties() || {}) + .map(([propertyName, property]) => { + if (property.isCircular()) + return propertyName; + }) + .filter(Boolean); + } + __get(key) { + if (typeof this._json === 'boolean') + return; + return this._json[key]; + } + __createChild(s) { + return new Schema(s, { parent: this }); + } +} +exports.Schema = Schema; diff --git a/cjs/old-api/security-requirement.d.ts b/cjs/old-api/security-requirement.d.ts new file mode 100644 index 000000000..034e0c317 --- /dev/null +++ b/cjs/old-api/security-requirement.d.ts @@ -0,0 +1,4 @@ +import { Base } from './base'; +import type { v2 } from '../spec-types'; +export declare class SecurityRequirement extends Base { +} diff --git a/cjs/old-api/security-requirement.js b/cjs/old-api/security-requirement.js new file mode 100644 index 000000000..032888ba1 --- /dev/null +++ b/cjs/old-api/security-requirement.js @@ -0,0 +1,7 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SecurityRequirement = void 0; +const base_1 = require("./base"); +class SecurityRequirement extends base_1.Base { +} +exports.SecurityRequirement = SecurityRequirement; diff --git a/cjs/old-api/security-scheme.d.ts b/cjs/old-api/security-scheme.d.ts new file mode 100644 index 000000000..bde080425 --- /dev/null +++ b/cjs/old-api/security-scheme.d.ts @@ -0,0 +1,14 @@ +import { SpecificationExtensionsModel } from './mixins'; +import { OAuthFlow } from './oauth-flow'; +import type { v2 } from '../spec-types'; +export declare class SecurityScheme extends SpecificationExtensionsModel { + type(): v2.SecuritySchemeType; + description(): string | null; + hasDescription(): boolean; + name(): string | undefined; + in(): "user" | "password" | "query" | "header" | "cookie" | undefined; + scheme(): string | undefined; + bearerFormat(): string | undefined; + openIdConnectUrl(): string | undefined; + flows(): Record; +} diff --git a/cjs/old-api/security-scheme.js b/cjs/old-api/security-scheme.js new file mode 100644 index 000000000..66e8b32a5 --- /dev/null +++ b/cjs/old-api/security-scheme.js @@ -0,0 +1,35 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SecurityScheme = void 0; +const mixins_1 = require("./mixins"); +const oauth_flow_1 = require("./oauth-flow"); +class SecurityScheme extends mixins_1.SpecificationExtensionsModel { + type() { + return this._json.type; + } + description() { + return (0, mixins_1.description)(this); + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + name() { + return this._json.name; + } + in() { + return this._json.in; + } + scheme() { + return this._json.scheme; + } + bearerFormat() { + return this._json.bearerFormat; + } + openIdConnectUrl() { + return this._json.openIdConnectUrl; + } + flows() { + return (0, mixins_1.createMapOfType)(this._json.flows, oauth_flow_1.OAuthFlow); + } +} +exports.SecurityScheme = SecurityScheme; diff --git a/cjs/old-api/server-variable.d.ts b/cjs/old-api/server-variable.d.ts new file mode 100644 index 000000000..ed17f1d6f --- /dev/null +++ b/cjs/old-api/server-variable.d.ts @@ -0,0 +1,12 @@ +import { SpecificationExtensionsModel } from './mixins'; +import type { v2 } from '../spec-types'; +export declare class ServerVariable extends SpecificationExtensionsModel { + allowedValues(): string[] | undefined; + allows(name: string): boolean; + hasAllowedValues(): boolean; + description(): string | null; + hasDescription(): boolean; + defaultValue(): string | undefined; + hasDefaultValue(): boolean; + examples(): string[] | undefined; +} diff --git a/cjs/old-api/server-variable.js b/cjs/old-api/server-variable.js new file mode 100644 index 000000000..ecb9971ba --- /dev/null +++ b/cjs/old-api/server-variable.js @@ -0,0 +1,33 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ServerVariable = void 0; +const mixins_1 = require("./mixins"); +class ServerVariable extends mixins_1.SpecificationExtensionsModel { + allowedValues() { + return this._json.enum; + } + allows(name) { + if (this._json.enum === undefined) + return true; + return this._json.enum.includes(name); + } + hasAllowedValues() { + return this._json.enum !== undefined; + } + description() { + return (0, mixins_1.description)(this); + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + defaultValue() { + return this._json.default; + } + hasDefaultValue() { + return this._json.default !== undefined; + } + examples() { + return this._json.examples; + } +} +exports.ServerVariable = ServerVariable; diff --git a/cjs/old-api/server.d.ts b/cjs/old-api/server.d.ts new file mode 100644 index 000000000..803194b67 --- /dev/null +++ b/cjs/old-api/server.d.ts @@ -0,0 +1,20 @@ +import { SpecificationExtensionsModel } from './mixins'; +import { ServerVariable } from './server-variable'; +import { SecurityRequirement } from './security-requirement'; +import type { v2 } from '../spec-types'; +export declare class Server extends SpecificationExtensionsModel { + url(): string; + protocol(): string; + protocolVersion(): string | undefined; + description(): string | null; + hasDescription(): boolean; + variables(): Record; + variable(name: string): ServerVariable | null; + hasVariables(): boolean; + security(): SecurityRequirement[] | null; + hasBindings(): boolean; + bindings(): Record; + bindingProtocols(): string[]; + hasBinding(name: string): boolean; + binding(name: string): v2.Binding | null; +} diff --git a/cjs/old-api/server.js b/cjs/old-api/server.js new file mode 100644 index 000000000..87a0aa611 --- /dev/null +++ b/cjs/old-api/server.js @@ -0,0 +1,53 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Server = void 0; +const mixins_1 = require("./mixins"); +const server_variable_1 = require("./server-variable"); +const security_requirement_1 = require("./security-requirement"); +class Server extends mixins_1.SpecificationExtensionsModel { + url() { + return this._json.url; + } + protocol() { + return this._json.protocol; + } + protocolVersion() { + return this._json.protocolVersion; + } + description() { + return (0, mixins_1.description)(this); + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + variables() { + return (0, mixins_1.createMapOfType)(this._json.variables, server_variable_1.ServerVariable); + } + variable(name) { + return (0, mixins_1.getMapValue)(this._json.variables, name, server_variable_1.ServerVariable); + } + hasVariables() { + return !!this._json.variables; + } + security() { + if (!this._json.security) + return null; + return this._json.security.map(sec => new security_requirement_1.SecurityRequirement(sec)); + } + hasBindings() { + return mixins_1.bindingsMixins.hasBindings(this); + } + bindings() { + return mixins_1.bindingsMixins.bindings(this); + } + bindingProtocols() { + return mixins_1.bindingsMixins.bindingProtocols(this); + } + hasBinding(name) { + return mixins_1.bindingsMixins.hasBinding(this, name); + } + binding(name) { + return mixins_1.bindingsMixins.binding(this, name); + } +} +exports.Server = Server; diff --git a/cjs/old-api/tag.d.ts b/cjs/old-api/tag.d.ts new file mode 100644 index 000000000..f895f29e7 --- /dev/null +++ b/cjs/old-api/tag.d.ts @@ -0,0 +1,17 @@ +import { Base } from './base'; +import type { v2 } from '../spec-types'; +export declare class Tag extends Base { + name(): string; + description(): string | null; + hasDescription(): boolean; + externalDocs(): import("./external-docs").ExternalDocs | null; + hasExternalDocs(): boolean; + hasExtensions(): boolean; + extensions(): v2.SpecificationExtensions; + extensionKeys(): string[]; + extKeys(): string[]; + hasExtension(extension: string): boolean; + extension(extension: string): v2.SpecificationExtension; + hasExt(extension: string): boolean; + ext(extension: string): any; +} diff --git a/cjs/old-api/tag.js b/cjs/old-api/tag.js new file mode 100644 index 000000000..265b22580 --- /dev/null +++ b/cjs/old-api/tag.js @@ -0,0 +1,47 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Tag = void 0; +const base_1 = require("./base"); +const mixins_1 = require("./mixins"); +class Tag extends base_1.Base { + name() { + return this._json.name; + } + description() { + return (0, mixins_1.description)(this); + } + hasDescription() { + return (0, mixins_1.hasDescription)(this); + } + externalDocs() { + return (0, mixins_1.externalDocs)(this); + } + hasExternalDocs() { + return (0, mixins_1.hasExternalDocs)(this); + } + hasExtensions() { + return mixins_1.extensionsMixins.hasExtensions(this); + } + extensions() { + return mixins_1.extensionsMixins.extensions(this); + } + extensionKeys() { + return mixins_1.extensionsMixins.extensionKeys(this); + } + extKeys() { + return mixins_1.extensionsMixins.extKeys(this); + } + hasExtension(extension) { + return mixins_1.extensionsMixins.hasExtension(this, extension); + } + extension(extension) { + return mixins_1.extensionsMixins.extension(this, extension); + } + hasExt(extension) { + return mixins_1.extensionsMixins.hasExt(this, extension); + } + ext(extension) { + return mixins_1.extensionsMixins.ext(this, extension); + } +} +exports.Tag = Tag; diff --git a/cjs/parse.d.ts b/cjs/parse.d.ts new file mode 100644 index 000000000..dc70ad660 --- /dev/null +++ b/cjs/parse.d.ts @@ -0,0 +1,16 @@ +import { AsyncAPIDocumentInterface } from './models'; +import type { Spectral } from '@stoplight/spectral-core'; +import type { Parser } from './parser'; +import type { ValidateOptions } from './validate'; +import type { Input, Diagnostic } from './types'; +export interface ParseOutput { + document: AsyncAPIDocumentInterface | undefined; + diagnostics: Diagnostic[]; +} +export interface ParseOptions { + source?: string; + applyTraits?: boolean; + parseSchemas?: boolean; + validateOptions?: Omit; +} +export declare function parse(parser: Parser, spectral: Spectral, asyncapi: Input, options?: ParseOptions): Promise; diff --git a/cjs/parse.js b/cjs/parse.js new file mode 100644 index 000000000..ca9b87d82 --- /dev/null +++ b/cjs/parse.js @@ -0,0 +1,46 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.parse = void 0; +const custom_operations_1 = require("./custom-operations"); +const validate_1 = require("./validate"); +const stringify_1 = require("./stringify"); +const document_1 = require("./document"); +const utils_1 = require("./utils"); +const constants_1 = require("./constants"); +const defaultOptions = { + applyTraits: true, + parseSchemas: true, + validateOptions: {}, +}; +function parse(parser, spectral, asyncapi, options = {}) { + return __awaiter(this, void 0, void 0, function* () { + options = (0, utils_1.mergePatch)(defaultOptions, options); + const { validated, diagnostics } = yield (0, validate_1.validate)(spectral, asyncapi, Object.assign(Object.assign({}, options.validateOptions), { source: options.source })); + if (validated === undefined) { + return { + document: undefined, + diagnostics, + }; + } + // unfreeze the object - Spectral makes resolved document "freezed" + const validatedDoc = (0, stringify_1.copy)(validated); + const detailed = (0, utils_1.createDetailedAsyncAPI)(asyncapi, validatedDoc); + const document = (0, document_1.createAsyncAPIDocument)(detailed); + (0, utils_1.setExtension)(constants_1.xParserSpecParsed, true, document); + yield (0, custom_operations_1.customOperations)(parser, document, detailed, options); + return { + document, + diagnostics, + }; + }); +} +exports.parse = parse; diff --git a/cjs/parser.d.ts b/cjs/parser.d.ts new file mode 100644 index 000000000..e0b0643f5 --- /dev/null +++ b/cjs/parser.d.ts @@ -0,0 +1,21 @@ +import type { Spectral } from '@stoplight/spectral-core'; +import type { ParseOptions, ParseOutput } from './parse'; +import type { ValidateOptions } from './validate'; +import type { ResolverOptions } from './resolver'; +import type { SchemaParser } from './schema-parser'; +import type { Diagnostic, Input } from './types'; +export interface ParserOptions { + schemaParsers?: Array; + __unstable?: { + resolver?: ResolverOptions; + }; +} +export declare class Parser { + private readonly options; + readonly parserRegistry: Map>; + protected readonly spectral: Spectral; + constructor(options?: ParserOptions); + parse(asyncapi: Input, options?: ParseOptions): Promise; + validate(asyncapi: Input, options?: ValidateOptions): Promise; + registerSchemaParser(parser: SchemaParser): void; +} diff --git a/cjs/parser.js b/cjs/parser.js new file mode 100644 index 000000000..cdd6046b4 --- /dev/null +++ b/cjs/parser.js @@ -0,0 +1,53 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Parser = void 0; +const document_1 = require("./document"); +const parse_1 = require("./parse"); +const validate_1 = require("./validate"); +const schema_parser_1 = require("./schema-parser"); +const asyncapi_schema_parser_1 = require("./schema-parser/asyncapi-schema-parser"); +const spectral_1 = require("./spectral"); +class Parser { + constructor(options = {}) { + var _a; + this.options = options; + this.parserRegistry = new Map(); + this.spectral = (0, spectral_1.createSpectral)(this, options); + this.registerSchemaParser((0, asyncapi_schema_parser_1.AsyncAPISchemaParser)()); + (_a = this.options.schemaParsers) === null || _a === void 0 ? void 0 : _a.forEach(parser => this.registerSchemaParser(parser)); + } + parse(asyncapi, options) { + return __awaiter(this, void 0, void 0, function* () { + const maybeDocument = (0, document_1.toAsyncAPIDocument)(asyncapi); + if (maybeDocument) { + return { + document: maybeDocument, + diagnostics: [], + }; + } + return (0, parse_1.parse)(this, this.spectral, asyncapi, options); + }); + } + validate(asyncapi, options) { + return __awaiter(this, void 0, void 0, function* () { + const maybeDocument = (0, document_1.toAsyncAPIDocument)(asyncapi); + if (maybeDocument) { + return []; + } + return (yield (0, validate_1.validate)(this.spectral, asyncapi, options)).diagnostics; + }); + } + registerSchemaParser(parser) { + return (0, schema_parser_1.registerSchemaParser)(this, parser); + } +} +exports.Parser = Parser; diff --git a/cjs/resolver.d.ts b/cjs/resolver.d.ts new file mode 100644 index 000000000..90d4232bc --- /dev/null +++ b/cjs/resolver.d.ts @@ -0,0 +1,13 @@ +import { Resolver as SpectralResolver } from '@stoplight/spectral-ref-resolver'; +import type Uri from 'urijs'; +export interface Resolver { + schema: 'file' | 'http' | 'https' | string; + order?: number; + canRead?: boolean | ((uri: Uri, ctx?: any) => boolean); + read: (uri: Uri, ctx?: any) => string | undefined | Promise; +} +export interface ResolverOptions { + cache?: boolean; + resolvers?: Array; +} +export declare function createResolver(options?: ResolverOptions): SpectralResolver; diff --git a/cjs/resolver.js b/cjs/resolver.js new file mode 100644 index 000000000..e079c8703 --- /dev/null +++ b/cjs/resolver.js @@ -0,0 +1,77 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createResolver = void 0; +const spectral_ref_resolver_1 = require("@stoplight/spectral-ref-resolver"); +const cache_1 = require("@stoplight/json-ref-resolver/cache"); +const json_ref_readers_1 = require("@stoplight/json-ref-readers"); +function createResolver(options = {}) { + const availableResolvers = [ + ...createDefaultResolvers(), + ...((options === null || options === void 0 ? void 0 : options.resolvers) || []) + ].map(r => (Object.assign(Object.assign({}, r), { order: r.order || Number.MAX_SAFE_INTEGER, canRead: typeof r.canRead === 'undefined' ? true : r.canRead }))); + const availableSchemas = [...new Set(availableResolvers.map(r => r.schema))]; + const resolvers = availableSchemas.reduce((acc, schema) => { + acc[schema] = { resolve: createSchemaResolver(schema, availableResolvers) }; + return acc; + }, {}); + // if cache is enabled, use default Cache instance in SpectralResolver, otherwise use custom one with ttl set to 1ms + const cache = options.cache !== false; + return new spectral_ref_resolver_1.Resolver({ + uriCache: cache ? undefined : new cache_1.Cache({ stdTTL: 1 }), + resolvers: resolvers, + }); +} +exports.createResolver = createResolver; +function createDefaultResolvers() { + return [ + { + schema: 'file', + read: json_ref_readers_1.resolveFile, + }, + { + schema: 'https', + read: json_ref_readers_1.resolveHttp, + }, + { + schema: 'http', + read: json_ref_readers_1.resolveHttp, + }, + ]; +} +function createSchemaResolver(schema, allResolvers) { + const resolvers = allResolvers.filter(r => r.schema === schema).sort((a, b) => { return a.order - b.order; }); + return (uri, ctx) => __awaiter(this, void 0, void 0, function* () { + let result = undefined; + let lastError; + for (const resolver of resolvers) { + try { + if (!canRead(resolver, uri, ctx)) + continue; + result = yield resolver.read(uri, ctx); + if (typeof result === 'string') { + break; + } + } + catch (e) { + lastError = e; + continue; + } + } + if (typeof result !== 'string') { + throw lastError || new Error(`None of the available resolvers for "${schema}" can resolve the given reference.`); + } + return result; + }); +} +function canRead(resolver, uri, ctx) { + return typeof resolver.canRead === 'function' ? resolver.canRead(uri, ctx) : resolver.canRead; +} diff --git a/cjs/schema-parser/asyncapi-schema-parser.d.ts b/cjs/schema-parser/asyncapi-schema-parser.d.ts new file mode 100644 index 000000000..9f4f64000 --- /dev/null +++ b/cjs/schema-parser/asyncapi-schema-parser.d.ts @@ -0,0 +1,2 @@ +import type { SchemaParser } from '../schema-parser'; +export declare function AsyncAPISchemaParser(): SchemaParser; diff --git a/cjs/schema-parser/asyncapi-schema-parser.js b/cjs/schema-parser/asyncapi-schema-parser.js new file mode 100644 index 000000000..71c162678 --- /dev/null +++ b/cjs/schema-parser/asyncapi-schema-parser.js @@ -0,0 +1,95 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AsyncAPISchemaParser = void 0; +const ajv_1 = __importDefault(require("ajv")); +// @ts-ignore +const specs_1 = __importDefault(require("@asyncapi/specs")); +const constants_1 = require("../constants"); +const ajv = new ajv_1.default({ + allErrors: true, + strict: false, + logger: false, +}); +function AsyncAPISchemaParser() { + return { + validate, + parse, + getMimeTypes, + }; +} +exports.AsyncAPISchemaParser = AsyncAPISchemaParser; +function validate(input) { + return __awaiter(this, void 0, void 0, function* () { + const version = input.asyncapi.semver.version; + const validator = getSchemaValidator(version); + let result = []; + const valid = validator(input.data); + if (!valid && validator.errors) { + result = ajvToSpectralResult(input.path, [...validator.errors]); + } + return result; + }); +} +function parse(input) { + return __awaiter(this, void 0, void 0, function* () { + return input.data; + }); +} +function getMimeTypes() { + const mimeTypes = [ + 'application/schema;version=draft-07', + 'application/schema+json;version=draft-07', + 'application/schema+yaml;version=draft-07', + ]; + constants_1.specVersions.forEach((version) => { + mimeTypes.push(`application/vnd.aai.asyncapi;version=${version}`, `application/vnd.aai.asyncapi+json;version=${version}`, `application/vnd.aai.asyncapi+yaml;version=${version}`); + }); + return mimeTypes; +} +function ajvToSpectralResult(path, errors) { + return errors.map(error => { + return { + message: error.message, + path: [...path, ...error.instancePath.replace(/^\//, '').split('/')], + }; + }); +} +function getSchemaValidator(version) { + let validator = ajv.getSchema(version); + if (!validator) { + const schema = preparePayloadSchema(specs_1.default[version], version); + ajv.addSchema(schema, version); + validator = ajv.getSchema(version); + } + return validator; +} +/** + * To validate the schema of the payload we just need a small portion of official AsyncAPI spec JSON Schema, the Schema Object in particular. The definition of Schema Object must be + * included in the returned JSON Schema. + */ +function preparePayloadSchema(asyncapiSchema, version) { + const payloadSchema = `http://asyncapi.com/definitions/${version}/schema.json`; + const definitions = asyncapiSchema.definitions; + if (definitions === undefined) { + throw new Error('AsyncAPI schema must contain definitions'); + } + // Remove the meta schemas because they are already present within Ajv, and it's not possible to add duplicated schemas. + delete definitions['http://json-schema.org/draft-07/schema']; + delete definitions['http://json-schema.org/draft-04/schema']; + return { + $ref: payloadSchema, + definitions + }; +} diff --git a/cjs/schema-parser/avro-schema-parser.d.ts b/cjs/schema-parser/avro-schema-parser.d.ts new file mode 100644 index 000000000..ef6e5c387 --- /dev/null +++ b/cjs/schema-parser/avro-schema-parser.d.ts @@ -0,0 +1,9 @@ +import type { Schema } from 'avsc'; +import type { SchemaParser } from '../schema-parser'; +import type { v2 } from '../spec-types'; +declare type AvroSchema = Schema & { + [key: string]: any; +}; +export declare function AvroSchemaParser(): SchemaParser; +export declare function avroToJsonSchema(avroDefinition: AvroSchema): Promise; +export {}; diff --git a/cjs/schema-parser/avro-schema-parser.js b/cjs/schema-parser/avro-schema-parser.js new file mode 100644 index 000000000..5241e41d0 --- /dev/null +++ b/cjs/schema-parser/avro-schema-parser.js @@ -0,0 +1,347 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.avroToJsonSchema = exports.AvroSchemaParser = void 0; +const avsc_1 = __importDefault(require("avsc")); +function AvroSchemaParser() { + return { + validate, + parse, + getMimeTypes, + }; +} +exports.AvroSchemaParser = AvroSchemaParser; +function validate(input) { + return __awaiter(this, void 0, void 0, function* () { + const result = []; + try { + validateAvroSchema(input.data); + } + catch (error) { + if (error instanceof Error) { + result.push({ + message: error.message, + path: input.path, // avsc doesn't throw errors with meaningful paths + }); + } + } + return result; + }); +} +function parse(input) { + var _a, _b; + return __awaiter(this, void 0, void 0, function* () { + const asyncAPISchema = yield avroToJsonSchema(input.data); + // TODO: Should the following modifications to the message object be done in the caller and for all parsers rather than here? + // remove that function when https://github.com/asyncapi/spec/issues/622 will be introduced in AsyncAPI spec + const message = input.meta.message; + const key = (_b = (_a = message === null || message === void 0 ? void 0 : message.bindings) === null || _a === void 0 ? void 0 : _a.kafka) === null || _b === void 0 ? void 0 : _b.key; + if (key) { + const bindingsTransformed = yield avroToJsonSchema(key); + message['x-parser-original-bindings-kafka-key'] = key; + message.bindings.kafka.key = bindingsTransformed; + } + return asyncAPISchema; + }); +} +function getMimeTypes() { + return [ + 'application/vnd.apache.avro;version=1.9.0', + 'application/vnd.apache.avro+json;version=1.9.0', + 'application/vnd.apache.avro+yaml;version=1.9.0', + 'application/vnd.apache.avro;version=1.8.2', + 'application/vnd.apache.avro+json;version=1.8.2', + 'application/vnd.apache.avro+yaml;version=1.8.2' + ]; +} +const BYTES_PATTERN = '^[\u0000-\u00ff]*$'; +const INT_MIN = Math.pow(-2, 31); +const INT_MAX = Math.pow(2, 31) - 1; +const LONG_MIN = Math.pow(-2, 63); +const LONG_MAX = Math.pow(2, 63) - 1; +const typeMappings = { + null: 'null', + boolean: 'boolean', + int: 'integer', + long: 'integer', + float: 'number', + double: 'number', + bytes: 'string', + string: 'string', + fixed: 'string', + map: 'object', + array: 'array', + enum: 'string', + record: 'object', + uuid: 'string', +}; +function commonAttributesMapping(avroDefinition, jsonSchema, recordCache) { + if (avroDefinition.doc) + jsonSchema.description = avroDefinition.doc; + if (avroDefinition.default !== undefined) + jsonSchema.default = avroDefinition.default; + const fullyQualifiedName = getFullyQualifiedName(avroDefinition); + if (fullyQualifiedName !== undefined && recordCache[fullyQualifiedName]) { + jsonSchema['x-parser-schema-id'] = fullyQualifiedName; + } +} +function getFullyQualifiedName(avroDefinition) { + let name; + if (avroDefinition.name) { + if (avroDefinition.namespace) { + name = `${avroDefinition.namespace}.${avroDefinition.name}`; + } + else { + name = avroDefinition.name; + } + } + return name; +} +/** + * Enrich the parent's required attribute with the required record attributes + * @param fieldDefinition the actual field definition + * @param parentJsonSchema the parent json schema which contains the required property to enrich + * @param haveDefaultValue we assure that a required field does not have a default value + */ +function requiredAttributesMapping(fieldDefinition, parentJsonSchema, haveDefaultValue) { + const isUnionWithNull = Array.isArray(fieldDefinition.type) && fieldDefinition.type.includes('null'); + // we assume that a union type without null and a field without default value is required + if (!isUnionWithNull && !haveDefaultValue) { + parentJsonSchema.required = parentJsonSchema.required || []; + parentJsonSchema.required.push(fieldDefinition.name); + } +} +function extractNonNullableTypeIfNeeded(typeInput, jsonSchemaInput) { + let type = typeInput; + let jsonSchema = jsonSchemaInput; + // Map example to first non-null type + if (Array.isArray(typeInput) && typeInput.length > 0) { + const pickSecondType = typeInput.length > 1 && typeInput[0] === 'null'; + type = typeInput[+pickSecondType]; + if (jsonSchema.oneOf !== undefined) { + jsonSchema = jsonSchema.oneOf[0]; + } + } + return { type, jsonSchema }; +} +function exampleAttributeMapping(type, example, jsonSchema) { + if (example === undefined || jsonSchema.examples || Array.isArray(type)) + return; + switch (type) { + case 'boolean': + jsonSchema.examples = [example === 'true']; + break; + case 'int': + jsonSchema.examples = [parseInt(example, 10)]; + break; + default: + jsonSchema.examples = [example]; + } +} +function additionalAttributesMapping(typeInput, avroDefinition, jsonSchemaInput) { + const __ret = extractNonNullableTypeIfNeeded(typeInput, jsonSchemaInput); + const type = __ret.type; + const jsonSchema = __ret.jsonSchema; + exampleAttributeMapping(type, avroDefinition.example, jsonSchema); + function setAdditionalAttribute(...names) { + names.forEach(name => { + let isValueCoherent = true; + if (name === 'minLength' || name === 'maxLength') { + isValueCoherent = avroDefinition[name] > -1; + } + else if (name === 'multipleOf') { + isValueCoherent = avroDefinition[name] > 0; + } + if (avroDefinition[name] !== undefined && isValueCoherent) + jsonSchema[name] = avroDefinition[name]; + }); + } + switch (type) { + case 'int': // int, long, float, and double must support the attributes bellow + case 'long': + case 'float': + case 'double': + setAdditionalAttribute('minimum', 'maximum', 'exclusiveMinimum', 'exclusiveMaximum', 'multipleOf'); + break; + case 'string': + if (avroDefinition.logicalType) { + jsonSchema.format = avroDefinition.logicalType; + } + setAdditionalAttribute('pattern', 'minLength', 'maxLength'); + break; + case 'array': + setAdditionalAttribute('minItems', 'maxItems', 'uniqueItems'); + break; + default: + break; + } +} +function validateAvroSchema(avroDefinition) { + // don't need to use the output from parsing the + // avro definition - we're just using this as a + // validator as this will throw an exception if + // there are any problems with the definition + avsc_1.default.Type.forSchema(avroDefinition); +} +/** + * Cache the passed value under the given key. If the key is undefined the value will not be cached. This function + * uses mutation of the passed cache object rather than a copy on write cache strategy. + * + * @param cache Map the cache to store the JsonSchema + * @param key String | Undefined - the fully qualified name of an avro record + * @param value JsonSchema - The json schema from the avro record + */ +function cacheAvroRecordDef(cache, key, value) { + if (key !== undefined) { + cache[key] = value; + } +} +function convertAvroToJsonSchema(avroDefinition, isTopLevel, recordCache = {}) { + return __awaiter(this, void 0, void 0, function* () { + let jsonSchema = {}; + const isUnion = Array.isArray(avroDefinition); + if (isUnion) { + return processUnionSchema(jsonSchema, avroDefinition, isTopLevel, recordCache); + } + // Avro definition can be a string (e.g. "int") + // or an object like { type: "int" } + const type = avroDefinition.type || avroDefinition; + jsonSchema.type = typeMappings[type]; + switch (type) { + case 'int': { + jsonSchema.minimum = INT_MIN; + jsonSchema.maximum = INT_MAX; + break; + } + case 'long': { + jsonSchema.minimum = LONG_MIN; + jsonSchema.maximum = LONG_MAX; + break; + } + case 'bytes': { + jsonSchema.pattern = BYTES_PATTERN; + break; + } + case 'fixed': { + jsonSchema.pattern = BYTES_PATTERN; + jsonSchema.minLength = avroDefinition.size; + jsonSchema.maxLength = avroDefinition.size; + break; + } + case 'map': { + jsonSchema.additionalProperties = yield convertAvroToJsonSchema(avroDefinition.values, false); + break; + } + case 'array': { + jsonSchema.items = yield convertAvroToJsonSchema(avroDefinition.items, false); + break; + } + case 'enum': { + jsonSchema.enum = avroDefinition.symbols; + break; + } + case 'float': // float and double must support the format attribute from the avro type + case 'double': { + jsonSchema.format = type; + break; + } + case 'record': { + const propsMap = yield processRecordSchema(avroDefinition, recordCache, jsonSchema); + cacheAvroRecordDef(recordCache, getFullyQualifiedName(avroDefinition), propsMap); + jsonSchema.properties = Object.fromEntries(propsMap.entries()); + break; + } + default: { + const cachedRecord = recordCache[getFullyQualifiedName(avroDefinition)]; + if (cachedRecord) { + jsonSchema = cachedRecord; + } + break; + } + } + commonAttributesMapping(avroDefinition, jsonSchema, recordCache); + additionalAttributesMapping(type, avroDefinition, jsonSchema); + return jsonSchema; + }); +} +/** + * When a record type is found in an avro schema this function can be used to process the underlying fields and return + * the map of props contained by the record. The record will also be cached. + * + * @param avroDefinition the avro schema to be processed + * @param recordCache the cache of previously processed avro record types + * @param jsonSchema the schema for the record. + * @returns {Promise>} + */ +function processRecordSchema(avroDefinition, recordCache, jsonSchema) { + return __awaiter(this, void 0, void 0, function* () { + const propsMap = new Map(); + for (const field of avroDefinition.fields) { + // If the type is a sub schema it will have been stored in the cache. + if (recordCache[field.type]) { + propsMap.set(field.name, recordCache[field.type]); + } + else { + const def = yield convertAvroToJsonSchema(field.type, false, recordCache); + requiredAttributesMapping(field, jsonSchema, field.default !== undefined); + commonAttributesMapping(field, def, recordCache); + additionalAttributesMapping(field.type, field, def); + propsMap.set(field.name, def); + // If there is a name for the sub record cache it under the name. + const qualifiedFieldName = getFullyQualifiedName(field.type); + cacheAvroRecordDef(recordCache, qualifiedFieldName, def); + } + } + return propsMap; + }); +} +/** + * Handles processing union avro schema types by creating a oneOf jsonSchema definition. This will mutate the passed + * jsonSchema and recordCache objects. + * + * @param jsonSchema the jsonSchema object that will be mutated. + * @param avroDefinition the avro schema to be processed + * @param isTopLevel is this the top level of the schema or is this a sub schema + * @param recordCache the cache of previously processed record types + * @returns {Promise} the mutated jsonSchema that was provided to the function + */ +function processUnionSchema(jsonSchema, avroDefinition, isTopLevel, recordCache) { + return __awaiter(this, void 0, void 0, function* () { + jsonSchema.oneOf = []; + let nullDef = null; + for (const avroDef of avroDefinition) { + const def = yield convertAvroToJsonSchema(avroDef, isTopLevel, recordCache); + // avroDef can be { type: 'int', default: 1 } and this is why avroDef.type has priority here + const defType = avroDef.type || avroDef; + // To prefer non-null values in the examples skip null definition here and push it as the last element after loop + if (defType === 'null') { + nullDef = def; + } + else { + jsonSchema.oneOf.push(def); + const qualifiedName = getFullyQualifiedName(avroDef); + cacheAvroRecordDef(recordCache, qualifiedName, def); + } + } + if (nullDef) + jsonSchema.oneOf.push(nullDef); + return jsonSchema; + }); +} +function avroToJsonSchema(avroDefinition) { + return __awaiter(this, void 0, void 0, function* () { + return convertAvroToJsonSchema(avroDefinition, true); + }); +} +exports.avroToJsonSchema = avroToJsonSchema; diff --git a/cjs/schema-parser/index.d.ts b/cjs/schema-parser/index.d.ts new file mode 100644 index 000000000..84aa51571 --- /dev/null +++ b/cjs/schema-parser/index.d.ts @@ -0,0 +1,28 @@ +import type { Parser } from '../parser'; +import type { AsyncAPISchema, DetailedAsyncAPI, SchemaValidateResult } from '../types'; +export interface ValidateSchemaInput { + readonly asyncapi: DetailedAsyncAPI; + readonly data: D; + readonly meta: M; + readonly path: Array; + readonly schemaFormat: string; + readonly defaultSchemaFormat: string; +} +export interface ParseSchemaInput { + readonly asyncapi: DetailedAsyncAPI; + readonly data: D; + readonly meta: M; + readonly path: Array; + readonly schemaFormat: string; + readonly defaultSchemaFormat: string; +} +export interface SchemaParser { + validate: (input: ValidateSchemaInput) => void | SchemaValidateResult[] | Promise; + parse: (input: ParseSchemaInput) => AsyncAPISchema | Promise; + getMimeTypes: () => Array; +} +export declare function validateSchema(parser: Parser, input: ValidateSchemaInput): Promise; +export declare function parseSchema(parser: Parser, input: ParseSchemaInput): Promise; +export declare function registerSchemaParser(parser: Parser, schemaParser: SchemaParser): void; +export declare function getSchemaFormat(schematFormat: string | undefined, asyncapiVersion: string): string; +export declare function getDefaultSchemaFormat(asyncapiVersion: string): string; diff --git a/cjs/schema-parser/index.js b/cjs/schema-parser/index.js new file mode 100644 index 000000000..00098d270 --- /dev/null +++ b/cjs/schema-parser/index.js @@ -0,0 +1,66 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getDefaultSchemaFormat = exports.getSchemaFormat = exports.registerSchemaParser = exports.parseSchema = exports.validateSchema = void 0; +function validateSchema(parser, input) { + return __awaiter(this, void 0, void 0, function* () { + const schemaParser = parser.parserRegistry.get(input.schemaFormat); + if (schemaParser === undefined) { + const { path, schemaFormat } = input; + path.pop(); // remove 'payload' as last element of path + return [ + { + message: `Unknown schema format: "${schemaFormat}"`, + path: [...path, 'schemaFormat'], + }, + { + message: `Cannot validate and parse given schema due to unknown schema format: "${schemaFormat}"`, + path: [...path, 'payload'], + } + ]; + } + return schemaParser.validate(input); + }); +} +exports.validateSchema = validateSchema; +function parseSchema(parser, input) { + return __awaiter(this, void 0, void 0, function* () { + const schemaParser = parser.parserRegistry.get(input.schemaFormat); + if (schemaParser === undefined) { + throw new Error('Unknown schema format'); + } + return schemaParser.parse(input); + }); +} +exports.parseSchema = parseSchema; +function registerSchemaParser(parser, schemaParser) { + if (typeof schemaParser !== 'object' + || typeof schemaParser.validate !== 'function' + || typeof schemaParser.parse !== 'function' + || typeof schemaParser.getMimeTypes !== 'function') { + throw new Error('Custom parser must have "parse()", "validate()" and "getMimeTypes()" functions.'); + } + schemaParser.getMimeTypes().forEach(schemaFormat => { + parser.parserRegistry.set(schemaFormat, schemaParser); + }); +} +exports.registerSchemaParser = registerSchemaParser; +function getSchemaFormat(schematFormat, asyncapiVersion) { + if (typeof schematFormat === 'string') { + return schematFormat; + } + return getDefaultSchemaFormat(asyncapiVersion); +} +exports.getSchemaFormat = getSchemaFormat; +function getDefaultSchemaFormat(asyncapiVersion) { + return `application/vnd.aai.asyncapi;version=${asyncapiVersion}`; +} +exports.getDefaultSchemaFormat = getDefaultSchemaFormat; diff --git a/cjs/schema-parser/openapi-schema-parser.d.ts b/cjs/schema-parser/openapi-schema-parser.d.ts new file mode 100644 index 000000000..feb152ee5 --- /dev/null +++ b/cjs/schema-parser/openapi-schema-parser.d.ts @@ -0,0 +1,2 @@ +import type { SchemaParser } from '../schema-parser'; +export declare function OpenAPISchemaParser(): SchemaParser; diff --git a/cjs/schema-parser/openapi-schema-parser.js b/cjs/schema-parser/openapi-schema-parser.js new file mode 100644 index 000000000..d23b3e3bc --- /dev/null +++ b/cjs/schema-parser/openapi-schema-parser.js @@ -0,0 +1,106 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OpenAPISchemaParser = void 0; +const ajv_1 = __importDefault(require("ajv")); +const schema_v3_1 = require("./openapi/schema_v3"); +// eslint-disable-next-line @typescript-eslint/no-var-requires +const toJsonSchema = require('@openapi-contrib/openapi-schema-to-json-schema'); +const ajv = new ajv_1.default({ + allErrors: true, + strict: false, + logger: false, +}); +ajv.addSchema(schema_v3_1.schemaV3, 'openapi'); +function OpenAPISchemaParser() { + return { + validate, + parse, + getMimeTypes, + }; +} +exports.OpenAPISchemaParser = OpenAPISchemaParser; +function validate(input) { + return __awaiter(this, void 0, void 0, function* () { + const validator = ajv.getSchema('openapi'); + let result = []; + const valid = validator(input.data); + if (!valid && validator.errors) { + result = ajvToSpectralResult(input.path, [...validator.errors]); + } + return result; + }); +} +function parse(input) { + return __awaiter(this, void 0, void 0, function* () { + const transformed = toJsonSchema(input.data, { + cloneSchema: true, + keepNotSupported: [ + 'discriminator', + 'readOnly', + 'writeOnly', + 'deprecated', + 'xml', + 'example', + ], + }); + iterateSchema(transformed); + return transformed; + }); +} +function getMimeTypes() { + return [ + 'application/vnd.oai.openapi;version=3.0.0', + 'application/vnd.oai.openapi+json;version=3.0.0', + 'application/vnd.oai.openapi+yaml;version=3.0.0', + ]; +} +function ajvToSpectralResult(path, errors) { + return errors.map(error => { + return { + message: error.message, + path: [...path, ...error.instancePath.replace(/^\//, '').split('/')], + }; + }); +} +function iterateSchema(schema) { + if (schema.example !== undefined) { + const examples = schema.examples || []; + examples.push(schema.example); + schema.examples = examples; + delete schema.example; + } + if (schema.$schema !== undefined) { + delete schema.$schema; + } + aliasProps(schema.properties); + aliasProps(schema.patternProperties); + aliasProps(schema.additionalProperties); + aliasProps(schema.items); + aliasProps(schema.additionalItems); + aliasProps(schema.oneOf); + aliasProps(schema.anyOf); + aliasProps(schema.allOf); + aliasProps(schema.not); +} +function aliasProps(obj) { + for (const key in obj) { + const prop = obj[key]; + if (prop.xml !== undefined) { + prop['x-xml'] = prop.xml; + delete prop.xml; + } + iterateSchema(obj[key]); + } +} diff --git a/cjs/schema-parser/openapi/schema_v3.d.ts b/cjs/schema-parser/openapi/schema_v3.d.ts new file mode 100644 index 000000000..e63319cb2 --- /dev/null +++ b/cjs/schema-parser/openapi/schema_v3.d.ts @@ -0,0 +1,239 @@ +export declare const schemaV3: { + type: string; + definitions: { + Reference: { + type: string; + required: string[]; + patternProperties: { + '^\\$ref$': { + type: string; + format: string; + }; + }; + }; + Discriminator: { + type: string; + required: string[]; + properties: { + propertyName: { + type: string; + }; + mapping: { + type: string; + additionalProperties: { + type: string; + }; + }; + }; + }; + ExternalDocumentation: { + type: string; + required: string[]; + properties: { + description: { + type: string; + }; + url: { + type: string; + format: string; + }; + }; + patternProperties: { + '^x-': {}; + }; + additionalProperties: boolean; + }; + XML: { + type: string; + properties: { + name: { + type: string; + }; + namespace: { + type: string; + format: string; + }; + prefix: { + type: string; + }; + attribute: { + type: string; + default: boolean; + }; + wrapped: { + type: string; + default: boolean; + }; + }; + patternProperties: { + '^x-': {}; + }; + additionalProperties: boolean; + }; + }; + properties: { + title: { + type: string; + }; + multipleOf: { + type: string; + exclusiveMinimum: number; + }; + maximum: { + type: string; + }; + exclusiveMaximum: { + type: string; + default: boolean; + }; + minimum: { + type: string; + }; + exclusiveMinimum: { + type: string; + default: boolean; + }; + maxLength: { + type: string; + minimum: number; + }; + minLength: { + type: string; + minimum: number; + default: number; + }; + pattern: { + type: string; + format: string; + }; + maxItems: { + type: string; + minimum: number; + }; + minItems: { + type: string; + minimum: number; + default: number; + }; + uniqueItems: { + type: string; + default: boolean; + }; + maxProperties: { + type: string; + minimum: number; + }; + minProperties: { + type: string; + minimum: number; + default: number; + }; + required: { + type: string; + items: { + type: string; + }; + minItems: number; + uniqueItems: boolean; + }; + enum: { + type: string; + items: {}; + minItems: number; + uniqueItems: boolean; + }; + type: { + type: string; + enum: string[]; + }; + not: { + oneOf: { + $ref: string; + }[]; + }; + allOf: { + type: string; + items: { + oneOf: { + $ref: string; + }[]; + }; + }; + oneOf: { + type: string; + items: { + oneOf: { + $ref: string; + }[]; + }; + }; + anyOf: { + type: string; + items: { + oneOf: { + $ref: string; + }[]; + }; + }; + items: { + oneOf: { + $ref: string; + }[]; + }; + properties: { + type: string; + additionalProperties: { + oneOf: { + $ref: string; + }[]; + }; + }; + additionalProperties: { + oneOf: ({ + $ref: string; + type?: undefined; + } | { + type: string; + $ref?: undefined; + })[]; + default: boolean; + }; + description: { + type: string; + }; + format: { + type: string; + }; + default: {}; + nullable: { + type: string; + default: boolean; + }; + discriminator: { + $ref: string; + }; + readOnly: { + type: string; + default: boolean; + }; + writeOnly: { + type: string; + default: boolean; + }; + example: {}; + externalDocs: { + $ref: string; + }; + deprecated: { + type: string; + default: boolean; + }; + xml: { + $ref: string; + }; + }; + patternProperties: { + '^x-': {}; + }; + additionalProperties: boolean; +}; diff --git a/cjs/schema-parser/openapi/schema_v3.js b/cjs/schema-parser/openapi/schema_v3.js new file mode 100644 index 000000000..5b8a3f03c --- /dev/null +++ b/cjs/schema-parser/openapi/schema_v3.js @@ -0,0 +1,278 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.schemaV3 = void 0; +/* eslint-disable */ +// From https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json +exports.schemaV3 = { + type: 'object', + definitions: { + Reference: { + type: 'object', + required: ['$ref'], + patternProperties: { + '^\\$ref$': { + type: 'string', + format: 'uri-reference' + } + } + }, + Discriminator: { + type: 'object', + required: ['propertyName'], + properties: { + propertyName: { + type: 'string' + }, + mapping: { + type: 'object', + additionalProperties: { + type: 'string' + } + } + } + }, + ExternalDocumentation: { + type: 'object', + required: ['url'], + properties: { + description: { + type: 'string' + }, + url: { + type: 'string', + format: 'uri-reference' + } + }, + patternProperties: { + '^x-': {} + }, + additionalProperties: false + }, + XML: { + type: 'object', + properties: { + name: { + type: 'string' + }, + namespace: { + type: 'string', + format: 'uri' + }, + prefix: { + type: 'string' + }, + attribute: { + type: 'boolean', + default: false + }, + wrapped: { + type: 'boolean', + default: false + } + }, + patternProperties: { + '^x-': {} + }, + additionalProperties: false + } + }, + properties: { + title: { + type: 'string' + }, + multipleOf: { + type: 'number', + exclusiveMinimum: 0 + }, + maximum: { + type: 'number' + }, + exclusiveMaximum: { + type: 'boolean', + default: false + }, + minimum: { + type: 'number' + }, + exclusiveMinimum: { + type: 'boolean', + default: false + }, + maxLength: { + type: 'integer', + minimum: 0 + }, + minLength: { + type: 'integer', + minimum: 0, + default: 0 + }, + pattern: { + type: 'string', + format: 'regex' + }, + maxItems: { + type: 'integer', + minimum: 0 + }, + minItems: { + type: 'integer', + minimum: 0, + default: 0 + }, + uniqueItems: { + type: 'boolean', + default: false + }, + maxProperties: { + type: 'integer', + minimum: 0 + }, + minProperties: { + type: 'integer', + minimum: 0, + default: 0 + }, + required: { + type: 'array', + items: { + type: 'string' + }, + minItems: 1, + uniqueItems: true + }, + enum: { + type: 'array', + items: {}, + minItems: 1, + uniqueItems: false + }, + type: { + type: 'string', + enum: ['array', 'boolean', 'integer', 'number', 'object', 'string'] + }, + not: { + oneOf: [ + { + $ref: '#' + }, + { + $ref: '#/definitions/Reference' + } + ] + }, + allOf: { + type: 'array', + items: { + oneOf: [ + { + $ref: '#' + }, + { + $ref: '#/definitions/Reference' + } + ] + } + }, + oneOf: { + type: 'array', + items: { + oneOf: [ + { + $ref: '#' + }, + { + $ref: '#/definitions/Reference' + } + ] + } + }, + anyOf: { + type: 'array', + items: { + oneOf: [ + { + $ref: '#' + }, + { + $ref: '#/definitions/Reference' + } + ] + } + }, + items: { + oneOf: [ + { + $ref: '#' + }, + { + $ref: '#/definitions/Reference' + } + ] + }, + properties: { + type: 'object', + additionalProperties: { + oneOf: [ + { + $ref: '#' + }, + { + $ref: '#/definitions/Reference' + } + ] + } + }, + additionalProperties: { + oneOf: [ + { + $ref: '#' + }, + { + $ref: '#/definitions/Reference' + }, + { + type: 'boolean' + } + ], + default: true + }, + description: { + type: 'string' + }, + format: { + type: 'string' + }, + default: {}, + nullable: { + type: 'boolean', + default: false + }, + discriminator: { + $ref: '#/definitions/Discriminator' + }, + readOnly: { + type: 'boolean', + default: false + }, + writeOnly: { + type: 'boolean', + default: false + }, + example: {}, + externalDocs: { + $ref: '#/definitions/ExternalDocumentation' + }, + deprecated: { + type: 'boolean', + default: false + }, + xml: { + $ref: '#/definitions/XML' + } + }, + patternProperties: { + '^x-': {} + }, + additionalProperties: false +}; diff --git a/cjs/schema-parser/raml-schema-parser.d.ts b/cjs/schema-parser/raml-schema-parser.d.ts new file mode 100644 index 000000000..72250538a --- /dev/null +++ b/cjs/schema-parser/raml-schema-parser.d.ts @@ -0,0 +1,2 @@ +import type { SchemaParser } from '../schema-parser'; +export declare function RamlSchemaParser(): SchemaParser; diff --git a/cjs/schema-parser/raml-schema-parser.js b/cjs/schema-parser/raml-schema-parser.js new file mode 100644 index 000000000..bc820d672 --- /dev/null +++ b/cjs/schema-parser/raml-schema-parser.js @@ -0,0 +1,89 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RamlSchemaParser = void 0; +const js_yaml_1 = __importDefault(require("js-yaml")); +const lib = __importStar(require("webapi-parser")); +/* eslint-disable */ +const wap = lib.WebApiParser; +const r2j = require('ramldt2jsonschema'); +function RamlSchemaParser() { + return { + validate, + parse, + getMimeTypes, + }; +} +exports.RamlSchemaParser = RamlSchemaParser; +function parse(input) { + return __awaiter(this, void 0, void 0, function* () { + const payload = formatPayload(input.data); + // Draft 6 is compatible with 7. + const jsonModel = yield r2j.dt2js(payload, 'tmpType', { draft: '06' }); + return jsonModel.definitions.tmpType; + }); +} +function getMimeTypes() { + return [ + 'application/raml+yaml;version=1.0', + ]; +} +function validate(input) { + return __awaiter(this, void 0, void 0, function* () { + const payload = formatPayload(input.data); + const parsed = yield wap.raml10.parse(payload); + const report = yield wap.raml10.validate(parsed); + if (report.conforms) { + // No errors found. + return []; + } + const validateResult = []; + report.results.forEach(result => { + validateResult.push({ + message: result.message, + path: input.path, // RAML parser doesn't provide a path to the error. + }); + }); + return validateResult; + }); +} +function formatPayload(payload) { + if (typeof payload === 'object') { + return `#%RAML 1.0 Library\n${js_yaml_1.default.dump({ types: { tmpType: payload } })}`; + } + return payload; +} diff --git a/cjs/schema-parser/spectral-rule-v2.d.ts b/cjs/schema-parser/spectral-rule-v2.d.ts new file mode 100644 index 000000000..d8b894057 --- /dev/null +++ b/cjs/schema-parser/spectral-rule-v2.d.ts @@ -0,0 +1,3 @@ +import type { RuleDefinition } from '@stoplight/spectral-core'; +import type { Parser } from '../parser'; +export declare function asyncApi2SchemaParserRule(parser: Parser): RuleDefinition; diff --git a/cjs/schema-parser/spectral-rule-v2.js b/cjs/schema-parser/spectral-rule-v2.js new file mode 100644 index 000000000..d7e461a99 --- /dev/null +++ b/cjs/schema-parser/spectral-rule-v2.js @@ -0,0 +1,81 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.asyncApi2SchemaParserRule = void 0; +const spectral_core_1 = require("@stoplight/spectral-core"); +const spectral_formats_1 = require("@stoplight/spectral-formats"); +const index_1 = require("./index"); +const utils_1 = require("../utils"); +function asyncApi2SchemaParserRule(parser) { + return { + description: 'Custom schema must be correctly formatted from the point of view of the used format.', + formats: [spectral_formats_1.aas2_0, spectral_formats_1.aas2_1, spectral_formats_1.aas2_2, spectral_formats_1.aas2_3, spectral_formats_1.aas2_4], + message: '{{error}}', + severity: 'error', + type: 'validation', + recommended: true, + given: [ + // operations + '$.channels.*.[publish,subscribe].message', + '$.channels.*.[publish,subscribe].message.oneOf.*', + '$.components.channels.*.[publish,subscribe].message', + '$.components.channels.*.[publish,subscribe].message.oneOf.*', + // messages + '$.components.messages.*', + ], + then: { + function: rulesetFunction(parser), + }, + }; +} +exports.asyncApi2SchemaParserRule = asyncApi2SchemaParserRule; +function rulesetFunction(parser) { + return (0, spectral_core_1.createRulesetFunction)({ + input: { + type: 'object', + properties: { + schemaFormat: { + type: 'string', + }, + payload: true, // any value + } + }, + options: null + }, (targetVal = {}, _, ctx) => __awaiter(this, void 0, void 0, function* () { + if (!targetVal.payload) { + return []; + } + const path = [...ctx.path, 'payload']; + const spec = ctx.document.data; + const schemaFormat = (0, index_1.getSchemaFormat)(targetVal.schemaFormat, spec.asyncapi); + const defaultSchemaFormat = (0, index_1.getDefaultSchemaFormat)(spec.asyncapi); + const asyncapi = (0, utils_1.createDetailedAsyncAPI)(ctx.document.data, spec); + const input = { + asyncapi, + data: targetVal.payload, + meta: {}, + path, + schemaFormat, + defaultSchemaFormat, + }; + try { + return yield (0, index_1.validateSchema)(parser, input); + } + catch (err) { + return [ + { + message: `Error thrown during schema validation, name: ${err.name}, message: ${err.message}, stack: ${err.stack}`, + path, + } + ]; + } + })); +} diff --git a/cjs/spec-types/index.d.ts b/cjs/spec-types/index.d.ts new file mode 100644 index 000000000..ea1e81c97 --- /dev/null +++ b/cjs/spec-types/index.d.ts @@ -0,0 +1 @@ +export * as v2 from './v2'; diff --git a/cjs/spec-types/index.js b/cjs/spec-types/index.js new file mode 100644 index 000000000..623b68434 --- /dev/null +++ b/cjs/spec-types/index.js @@ -0,0 +1,27 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.v2 = void 0; +exports.v2 = __importStar(require("./v2")); diff --git a/cjs/spec-types/v2.d.ts b/cjs/spec-types/v2.d.ts new file mode 100644 index 000000000..7c5c379cc --- /dev/null +++ b/cjs/spec-types/v2.d.ts @@ -0,0 +1,362 @@ +import type { JSONSchema7Version, JSONSchema7TypeName, JSONSchema7Type } from 'json-schema'; +export declare type AsyncAPIVersion = string; +export declare type Identifier = string; +export declare type DefaultContentType = string; +export interface AsyncAPIObject extends SpecificationExtensions { + asyncapi: AsyncAPIVersion; + id?: Identifier; + info: InfoObject; + defaultContentType?: DefaultContentType; + servers?: ServersObject; + channels: ChannelsObject; + components?: ComponentsObject; + tags?: TagsObject; + externalDocs?: ExternalDocumentationObject; +} +export interface InfoObject extends SpecificationExtensions { + title: string; + version: string; + description?: string; + termsOfService?: string; + contact?: ContactObject; + license?: LicenseObject; +} +export interface ContactObject extends SpecificationExtensions { + name?: string; + url?: string; + email?: string; +} +export interface LicenseObject extends SpecificationExtensions { + name: string; + url?: string; +} +export declare type ServersObject = Record; +export interface ServerObject extends SpecificationExtensions { + url: string; + protocol: string; + protocolVersion?: string; + description?: string; + variables?: Record; + security?: Array; + bindings?: ServerBindingsObject | ReferenceObject; +} +export interface ServerVariableObject extends SpecificationExtensions { + enum?: Array; + default?: string; + description?: string; + examples?: Array; +} +export interface ServerBindingsObject extends SpecificationExtensions { + http?: Binding; + ws?: Binding; + kafka?: Binding; + anypointmq?: Binding; + amqp?: Binding; + amqp1?: Binding; + mqtt?: Binding; + mqtt5?: Binding; + nats?: Binding; + jms?: Binding; + sns?: Binding; + sqs?: Binding; + stomp?: Binding; + redis?: Binding; + mercure?: Binding; + ibmmq?: Binding; +} +export declare type ChannelsObject = Record; +export interface ChannelObject extends SpecificationExtensions { + description?: string; + servers?: Array; + subscribe?: OperationObject; + publish?: OperationObject; + parameters?: ParametersObject; + bindings?: ChannelBindingsObject | ReferenceObject; +} +export interface ChannelBindingsObject extends SpecificationExtensions { + http?: Binding; + ws?: Binding; + kafka?: Binding; + anypointmq?: Binding; + amqp?: Binding; + amqp1?: Binding; + mqtt?: Binding; + mqtt5?: Binding; + nats?: Binding; + jms?: Binding; + sns?: Binding; + sqs?: Binding; + stomp?: Binding; + redis?: Binding; + mercure?: Binding; + ibmmq?: Binding; +} +export interface OperationObject extends OperationTraitObject, SpecificationExtensions { + message?: MessageObject | ReferenceObject | { + oneOf: Array; + }; + traits?: Array; +} +export interface OperationTraitObject extends SpecificationExtensions { + operationId?: string; + summary?: string; + description?: string; + security?: Array; + tags?: TagsObject; + externalDocs?: ExternalDocumentationObject; + bindings?: OperationBindingsObject | ReferenceObject; +} +export interface OperationBindingsObject extends SpecificationExtensions { + http?: Binding; + ws?: Binding; + kafka?: Binding; + anypointmq?: Binding; + amqp?: Binding; + amqp1?: Binding; + mqtt?: Binding; + mqtt5?: Binding; + nats?: Binding; + jms?: Binding; + sns?: Binding; + sqs?: Binding; + stomp?: Binding; + redis?: Binding; + mercure?: Binding; + ibmmq?: Binding; +} +export declare type ParametersObject = Record; +export interface ParameterObject extends SpecificationExtensions { + description?: string; + schema?: SchemaObject; + location?: string; +} +export interface MessageObject extends MessageTraitObject, SpecificationExtensions { + payload?: any; + traits?: Array; +} +export interface MessageTraitObject extends SpecificationExtensions { + messageId?: string; + headers?: SchemaObject; + correlationId?: CorrelationIDObject | ReferenceObject; + schemaFormat?: string; + contentType?: string; + name?: string; + title?: string; + summary?: string; + description?: string; + tags?: TagsObject; + externalDocs?: ExternalDocumentationObject; + bindings?: MessageBindingsObject | ReferenceObject; + examples?: Array; +} +export interface MessageExampleObject extends SpecificationExtensions { + name?: string; + summary?: string; + headers?: Record; + payload?: any; +} +export interface MessageBindingsObject extends SpecificationExtensions { + http?: Binding; + ws?: Binding; + kafka?: Binding; + anypointmq?: Binding; + amqp?: Binding; + amqp1?: Binding; + mqtt?: Binding; + mqtt5?: Binding; + nats?: Binding; + jms?: Binding; + sns?: Binding; + sqs?: Binding; + stomp?: Binding; + redis?: Binding; + mercure?: Binding; + ibmmq?: Binding; +} +export declare type TagsObject = Array; +export interface TagObject extends SpecificationExtensions { + name: string; + description?: string; + externalDocs?: ExternalDocumentationObject; +} +export interface ExternalDocumentationObject extends SpecificationExtensions { + url: string; + description?: string; +} +export interface ComponentsObject extends SpecificationExtensions { + channels?: Record; + servers?: Record; + schemas?: Record; + messages?: Record; + securitySchemes?: Record; + parameters?: Record; + serverVariables?: Record; + correlationIds?: Record; + operationTraits?: Record; + messageTraits?: Record; + serverBindings?: Record; + channelBindings?: Record; + operationBindings?: Record; + messageBindings?: Record; +} +export declare type SchemaObject = AsyncAPISchemaObject | ReferenceObject; +export declare type AsyncAPISchemaObject = AsyncAPISchemaDefinition | boolean; +export interface AsyncAPISchemaDefinition extends SpecificationExtensions { + $id?: string; + $schema?: JSONSchema7Version; + $comment?: string; + type?: JSONSchema7TypeName | JSONSchema7TypeName[]; + enum?: JSONSchema7Type[]; + const?: JSONSchema7Type; + multipleOf?: number; + maximum?: number; + exclusiveMaximum?: number; + minimum?: number; + exclusiveMinimum?: number; + maxLength?: number; + minLength?: number; + pattern?: string; + items?: AsyncAPISchemaObject | AsyncAPISchemaObject[]; + additionalItems?: AsyncAPISchemaObject; + maxItems?: number; + minItems?: number; + uniqueItems?: boolean; + contains?: AsyncAPISchemaObject; + maxProperties?: number; + minProperties?: number; + required?: string[]; + properties?: { + [key: string]: AsyncAPISchemaObject; + }; + patternProperties?: { + [key: string]: AsyncAPISchemaObject; + }; + additionalProperties?: AsyncAPISchemaObject; + dependencies?: { + [key: string]: AsyncAPISchemaObject | string[]; + }; + propertyNames?: AsyncAPISchemaObject; + if?: AsyncAPISchemaObject; + then?: AsyncAPISchemaObject; + else?: AsyncAPISchemaObject; + allOf?: AsyncAPISchemaObject[]; + anyOf?: AsyncAPISchemaObject[]; + oneOf?: AsyncAPISchemaObject[]; + not?: AsyncAPISchemaObject; + format?: string; + contentMediaType?: string; + contentEncoding?: string; + definitions?: { + [key: string]: AsyncAPISchemaObject; + }; + title?: string; + description?: string; + default?: JSONSchema7Type; + readOnly?: boolean; + writeOnly?: boolean; + examples?: Array; + discriminator?: string; + externalDocs?: ExternalDocumentationObject; + deprecated?: boolean; + [keyword: string]: any; +} +export interface SecuritySchemeObject extends SpecificationExtensions { + type: SecuritySchemeType; + description?: string; + name?: string; + in?: 'user' | 'password' | 'query' | 'header' | 'cookie'; + scheme?: string; + bearerFormat?: string; + flows?: OAuthFlowsObject; + openIdConnectUrl?: string; +} +export declare type SecuritySchemeType = 'userPassword' | 'apiKey' | 'X509' | 'symmetricEncryption' | 'asymmetricEncryption' | 'httpApiKey' | 'http' | 'oauth2' | 'openIdConnect' | 'plain' | 'scramSha256' | 'scramSha512' | 'gssapi'; +export declare type SecuritySchemaLocation = 'user' | 'password' | 'query' | 'header' | 'header' | 'cookie'; +export interface SecuritySchemeObjectBase extends SpecificationExtensions { + description?: string; +} +export interface SecuritySchemeObjectUserPassword extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'userPassword'; +} +export interface SecuritySchemeObjectApiKey extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'apiKey'; + in: 'user' | 'password'; +} +export interface SecuritySchemeObjectX509 extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'X509'; +} +export interface SecuritySchemeObjectSymetricEncryption extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'symmetricEncryption'; +} +export interface SecuritySchemeObjectAsymetricEncryption extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'asymmetricEncryption'; +} +export interface SecuritySchemeObjectHttpApiKey extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'httpApiKey'; + name: string; + in: 'query' | 'header' | 'cookie'; +} +export interface SecuritySchemeObjectHttp extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'http'; + scheme: string; + bearerFormat?: string; +} +export interface SecuritySchemeObjectOauth2 extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'oauth2'; + flows: OAuthFlowsObject; +} +export interface SecuritySchemeObjectOpenIdConnect extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'openIdConnect'; + openIdConnectUrl: string; +} +export interface SecuritySchemeObjectPlain extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'plain'; +} +export interface SecuritySchemeObjectScramSha256 extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'scramSha256'; +} +export interface SecuritySchemeObjectScramSha512 extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'scramSha512'; +} +export interface SecuritySchemeObjectGssapi extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'gssapi'; +} +export interface OAuthFlowsObject extends SpecificationExtensions { + implicit?: OAuthFlowObjectImplicit; + password?: OAuthFlowObjectPassword; + clientCredentials?: OAuthFlowObjectClientCredentials; + authorizationCode?: OAuthFlowObjectAuthorizationCode; +} +export declare type OAuthFlowObject = OAuthFlowObjectImplicit & OAuthFlowObjectPassword & OAuthFlowObjectClientCredentials & OAuthFlowObjectAuthorizationCode; +export interface OAuthFlowObjectBase extends SpecificationExtensions { + refreshUrl?: string; + scopes: Record; +} +export interface OAuthFlowObjectImplicit extends OAuthFlowObjectBase, SpecificationExtensions { + authorizationUrl: string; +} +export interface OAuthFlowObjectPassword extends OAuthFlowObjectBase, SpecificationExtensions { + tokenUrl: string; +} +export interface OAuthFlowObjectClientCredentials extends OAuthFlowObjectBase, SpecificationExtensions { + tokenUrl: string; +} +export interface OAuthFlowObjectAuthorizationCode extends OAuthFlowObjectBase, SpecificationExtensions { + authorizationUrl: string; + tokenUrl: string; +} +export declare type SecurityRequirementObject = Record>; +export interface CorrelationIDObject extends SpecificationExtensions { + location: string; + description?: string; +} +export interface Binding { + bindingVersion?: string; +} +export interface SpecificationExtensions { + [extension: `x-${string}`]: SpecificationExtension; +} +export declare type SpecificationExtension = T; +export interface ReferenceObject { + $ref: string; +} diff --git a/cjs/spec-types/v2.js b/cjs/spec-types/v2.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/spec-types/v2.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/spectral.d.ts b/cjs/spectral.d.ts new file mode 100644 index 000000000..8b7d9ec12 --- /dev/null +++ b/cjs/spectral.d.ts @@ -0,0 +1,3 @@ +import { Spectral } from '@stoplight/spectral-core'; +import type { Parser, ParserOptions } from './parser'; +export declare function createSpectral(parser: Parser, options?: ParserOptions): Spectral; diff --git a/cjs/spectral.js b/cjs/spectral.js new file mode 100644 index 000000000..13eece70d --- /dev/null +++ b/cjs/spectral.js @@ -0,0 +1,69 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createSpectral = void 0; +const spectral_core_1 = require("@stoplight/spectral-core"); +const asyncapi_1 = __importDefault(require("@stoplight/spectral-rulesets/dist/asyncapi")); +const resolver_1 = require("./resolver"); +const spectral_rule_v2_1 = require("./schema-parser/spectral-rule-v2"); +const constants_1 = require("./constants"); +const utils_1 = require("./utils"); +function createSpectral(parser, options = {}) { + var _a; + const spectral = new spectral_core_1.Spectral({ resolver: (0, resolver_1.createResolver)((_a = options.__unstable) === null || _a === void 0 ? void 0 : _a.resolver) }); + const ruleset = configureRuleset(parser); + spectral.setRuleset(ruleset); + return spectral; +} +exports.createSpectral = createSpectral; +function configureRuleset(parser) { + return { + extends: [asyncapi_1.default], + rules: { + 'asyncapi-is-asyncapi': asyncApi2IsAsyncApi(), + 'asyncapi-schemas-v2': (0, spectral_rule_v2_1.asyncApi2SchemaParserRule)(parser), + // operationId is an optional field + 'asyncapi-operation-operationId': 'warn', + // We do not use these rules from the official ruleset due to the fact + // that the given rules validate only AsyncAPI Schemas and prevent defining schemas in other formats + 'asyncapi-payload-unsupported-schemaFormat': 'off', + 'asyncapi-payload': 'off', + }, + }; +} +function asyncApi2IsAsyncApi() { + return { + description: 'The input must be a document with a supported version of AsyncAPI.', + formats: [() => true], + message: '{{error}}', + severity: 'error', + type: 'validation', + recommended: true, + given: '$', + then: { + function: (0, spectral_core_1.createRulesetFunction)({ + input: null, + options: null, + }, (targetVal) => { + if (!(0, utils_1.isObject)(targetVal) || typeof targetVal.asyncapi !== 'string') { + return [ + { + message: 'This is not an AsyncAPI document. The "asyncapi" field as string is missing.', + path: [], + } + ]; + } + else if (!constants_1.specVersions.includes(targetVal.asyncapi)) { + return [ + { + message: `Version "${targetVal.asyncapi}" is not supported. Please use "${constants_1.specVersions[constants_1.specVersions.length - 1]}" (latest) version of the specification.`, + path: [], + } + ]; + } + }), + }, + }; +} diff --git a/cjs/stringify.d.ts b/cjs/stringify.d.ts new file mode 100644 index 000000000..88e0df5c1 --- /dev/null +++ b/cjs/stringify.d.ts @@ -0,0 +1,9 @@ +import { AsyncAPIDocumentInterface } from './models'; +export interface StringifyOptions { + space?: string | number; +} +export declare function stringify(document: unknown, options?: StringifyOptions): string | undefined; +export declare function unstringify(document: unknown): AsyncAPIDocumentInterface | undefined; +export declare function copy(data: Record): any; +export declare function refReplacer(): (this: unknown, field: string, value: unknown) => unknown; +export declare function traverseStringifiedData(parent: any, field: string | undefined, root: any, objToPath: Map, pathToObj: Map): void; diff --git a/cjs/stringify.js b/cjs/stringify.js new file mode 100644 index 000000000..b8cdbf61a --- /dev/null +++ b/cjs/stringify.js @@ -0,0 +1,105 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.traverseStringifiedData = exports.refReplacer = exports.copy = exports.unstringify = exports.stringify = void 0; +const document_1 = require("./document"); +const utils_1 = require("./utils"); +const constants_1 = require("./constants"); +function stringify(document, options = {}) { + if ((0, document_1.isAsyncAPIDocument)(document)) { + document = document.json(); + } + else if ((0, document_1.isParsedDocument)(document)) { + if ((0, document_1.isStringifiedDocument)(document)) { + return JSON.stringify(document); + } + } + else { + return; + } + return JSON.stringify(Object.assign(Object.assign({}, document), { [String(constants_1.xParserSpecStringified)]: true }), refReplacer(), options.space || 2); +} +exports.stringify = stringify; +function unstringify(document) { + let parsed = document; + if (typeof document === 'string') { + try { + parsed = JSON.parse(document); + } + catch (_) { + return; + } + } + if (!(0, document_1.isStringifiedDocument)(parsed)) { + return; + } + // shall copy of whole JSON + parsed = Object.assign({}, parsed); + // remove `x-parser-spec-stringified` extension + delete parsed[String(constants_1.xParserSpecStringified)]; + traverseStringifiedData(document, undefined, document, new Map(), new Map()); + return (0, document_1.createAsyncAPIDocument)((0, utils_1.createDetailedAsyncAPI)(document, parsed)); +} +exports.unstringify = unstringify; +function copy(data) { + const stringifiedData = JSON.stringify(data, refReplacer()); + const unstringifiedData = JSON.parse(stringifiedData); + traverseStringifiedData(unstringifiedData, undefined, unstringifiedData, new Map(), new Map()); + return unstringifiedData; +} +exports.copy = copy; +function refReplacer() { + const modelPaths = new Map(); + const paths = new Map(); + let init = null; + return function (field, value) { + // `this` points to parent object of given value - some object or array + const pathPart = modelPaths.get(this) + (Array.isArray(this) ? `[${field}]` : `.${field}`); + // check if `objOrPath` has "reference" + const isComplex = value === Object(value); + if (isComplex) { + modelPaths.set(value, pathPart); + } + const savedPath = paths.get(value) || ''; + if (!savedPath && isComplex) { + const valuePath = pathPart.replace(/undefined\.\.?/, ''); + paths.set(value, valuePath); + } + const prefixPath = savedPath[0] === '[' ? '$' : '$.'; + let val = savedPath ? `$ref:${prefixPath}${savedPath}` : value; + if (init === null) { + init = value; + } + else if (val === init) { + val = '$ref:$'; + } + return val; + }; +} +exports.refReplacer = refReplacer; +const refRoot = '$ref:$'; +function traverseStringifiedData(parent, field, root, objToPath, pathToObj) { + let objOrPath = parent; + let path = refRoot; + if (field !== undefined) { + // here can be string with `$ref` prefix or normal value + objOrPath = parent[String(field)]; + const concatenatedPath = field ? `.${field}` : ''; + path = objToPath.get(parent) + (Array.isArray(parent) ? `[${field}]` : concatenatedPath); + } + objToPath.set(objOrPath, path); + pathToObj.set(path, objOrPath); + const ref = pathToObj.get(objOrPath); + if (ref) { + parent[String(field)] = ref; + } + if (objOrPath === refRoot || ref === refRoot) { + parent[String(field)] = root; + } + // traverse all keys, only if object is array/object + if (objOrPath === Object(objOrPath)) { + for (const f in objOrPath) { + traverseStringifiedData(objOrPath, f, root, objToPath, pathToObj); + } + } +} +exports.traverseStringifiedData = traverseStringifiedData; diff --git a/cjs/types.d.ts b/cjs/types.d.ts new file mode 100644 index 000000000..5924d5951 --- /dev/null +++ b/cjs/types.d.ts @@ -0,0 +1,23 @@ +import type { ISpectralDiagnostic, IFunctionResult } from '@stoplight/spectral-core'; +import type { AsyncAPIDocumentInterface } from './models'; +import type { v2 } from './spec-types'; +export declare type MaybeAsyncAPI = { + asyncapi: string; +} & Record; +export interface AsyncAPISemver { + version: string; + major: number; + minor: number; + patch: number; + rc?: number; +} +export interface DetailedAsyncAPI { + source: string | Record; + parsed: AsyncAPIObject; + semver: AsyncAPISemver; +} +export declare type Input = string | MaybeAsyncAPI | AsyncAPIDocumentInterface; +export declare type Diagnostic = ISpectralDiagnostic; +export declare type SchemaValidateResult = IFunctionResult; +export declare type AsyncAPIObject = v2.AsyncAPIObject; +export declare type AsyncAPISchema = v2.AsyncAPISchemaObject; diff --git a/cjs/types.js b/cjs/types.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/cjs/types.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/utils.d.ts b/cjs/utils.d.ts new file mode 100644 index 000000000..6460535b6 --- /dev/null +++ b/cjs/utils.d.ts @@ -0,0 +1,20 @@ +import type { ISpectralDiagnostic } from '@stoplight/spectral-core'; +import type { BaseModel } from './models'; +import type { AsyncAPISemver, AsyncAPIObject, DetailedAsyncAPI, MaybeAsyncAPI } from './types'; +export declare function createDetailedAsyncAPI(source: string | Record, parsed: AsyncAPIObject): DetailedAsyncAPI; +export declare function getSemver(version: string): AsyncAPISemver; +export declare function normalizeInput(asyncapi: string | MaybeAsyncAPI): string; +export declare function unfreezeObject(data: unknown): any; +export declare function hasErrorDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean; +export declare function hasWarningDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean; +export declare function hasInfoDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean; +export declare function hasHintDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean; +export declare function setExtension(id: string, value: any, model: BaseModel): void; +export declare function mergePatch(origin: unknown, patch: unknown): T; +export declare function isObject(value: unknown): value is Record; +export declare function hasRef(value: unknown): value is { + $ref: string; +}; +export declare function tilde(str: string): string; +export declare function untilde(str: string): string; +export declare function retrievePossibleRef(data: any, pathOfData: string, spec?: any): any; diff --git a/cjs/utils.js b/cjs/utils.js new file mode 100644 index 000000000..a6de5d52a --- /dev/null +++ b/cjs/utils.js @@ -0,0 +1,138 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.retrievePossibleRef = exports.untilde = exports.tilde = exports.hasRef = exports.isObject = exports.mergePatch = exports.setExtension = exports.hasHintDiagnostic = exports.hasInfoDiagnostic = exports.hasWarningDiagnostic = exports.hasErrorDiagnostic = exports.unfreezeObject = exports.normalizeInput = exports.getSemver = exports.createDetailedAsyncAPI = void 0; +const types_1 = require("@stoplight/types"); +function createDetailedAsyncAPI(source, parsed) { + return { + source, + parsed, + semver: getSemver(parsed.asyncapi), + }; +} +exports.createDetailedAsyncAPI = createDetailedAsyncAPI; +function getSemver(version) { + const [major, minor, patchWithRc] = version.split('.'); + const [patch, rc] = patchWithRc.split('-rc'); + return { + version, + major: Number(major), + minor: Number(minor), + patch: Number(patch), + rc: rc && Number(rc), + }; +} +exports.getSemver = getSemver; +function normalizeInput(asyncapi) { + if (typeof asyncapi === 'string') { + return asyncapi; + } + return JSON.stringify(asyncapi, undefined, 2); +} +exports.normalizeInput = normalizeInput; +function unfreezeObject(data) { + return JSON.parse(JSON.stringify(data)); +} +exports.unfreezeObject = unfreezeObject; +function hasErrorDiagnostic(diagnostics) { + return diagnostics.some(diagnostic => diagnostic.severity === types_1.DiagnosticSeverity.Error); +} +exports.hasErrorDiagnostic = hasErrorDiagnostic; +function hasWarningDiagnostic(diagnostics) { + return diagnostics.some(diagnostic => diagnostic.severity === types_1.DiagnosticSeverity.Warning); +} +exports.hasWarningDiagnostic = hasWarningDiagnostic; +function hasInfoDiagnostic(diagnostics) { + return diagnostics.some(diagnostic => diagnostic.severity === types_1.DiagnosticSeverity.Information); +} +exports.hasInfoDiagnostic = hasInfoDiagnostic; +function hasHintDiagnostic(diagnostics) { + return diagnostics.some(diagnostic => diagnostic.severity === types_1.DiagnosticSeverity.Hint); +} +exports.hasHintDiagnostic = hasHintDiagnostic; +function setExtension(id, value, model) { + id = id.startsWith('x-') ? id : `x-${id}`; + const data = model.json(); + data[id] = value; +} +exports.setExtension = setExtension; +function mergePatch(origin, patch) { + // If the patch is not an object, it replaces the origin. + if (!isObject(patch)) { + return patch; + } + const result = !isObject(origin) + ? {} // Non objects are being replaced. + : Object.assign({}, origin); // Make sure we never modify the origin. + Object.keys(patch).forEach(key => { + const patchVal = patch[key]; + if (patchVal === null) { + delete result[key]; + } + else { + result[key] = mergePatch(result[key], patchVal); + } + }); + return result; +} +exports.mergePatch = mergePatch; +function isObject(value) { + return Boolean(value) && typeof value === 'object' && Array.isArray(value) === false; +} +exports.isObject = isObject; +function hasRef(value) { + return isObject(value) && '$ref' in value && typeof value.$ref === 'string'; +} +exports.hasRef = hasRef; +function tilde(str) { + return str.replace(/[~/]{1}/g, (sub) => { + switch (sub) { + case '/': return '~1'; + case '~': return '~0'; + } + return sub; + }); +} +exports.tilde = tilde; +function untilde(str) { + if (!str.includes('~')) + return str; + return str.replace(/~[01]/g, (sub) => { + switch (sub) { + case '~1': return '/'; + case '~0': return '~'; + } + return sub; + }); +} +exports.untilde = untilde; +function retrievePossibleRef(data, pathOfData, spec = {}) { + if (!hasRef(data)) { + return data; + } + const refPath = serializePath(data.$ref); + if (pathOfData.startsWith(refPath)) { // starts by given path + return retrieveDeepData(spec, splitPath(refPath)) || data; + } + else if (pathOfData.includes(refPath)) { // circular path in substring of path + const substringPath = pathOfData.split(refPath)[0]; + return retrieveDeepData(spec, splitPath(`${substringPath}${refPath}`)) || data; + } + return data; +} +exports.retrievePossibleRef = retrievePossibleRef; +function retrieveDeepData(value, path) { + let index = 0; + const length = path.length; + while (typeof value === 'object' && value && index < length) { + value = value[path[index++]]; + } + return index === length ? value : undefined; +} +function serializePath(path) { + if (path.startsWith('#')) + return path.substring(1); + return path; +} +function splitPath(path) { + return path.split('/').filter(Boolean).map(untilde); +} diff --git a/cjs/validate.d.ts b/cjs/validate.d.ts new file mode 100644 index 000000000..bd3d1ec0c --- /dev/null +++ b/cjs/validate.d.ts @@ -0,0 +1,15 @@ +import type { Spectral, IRunOpts } from '@stoplight/spectral-core'; +import type { Input, Diagnostic } from './types'; +export interface ValidateOptions extends IRunOpts { + source?: string; + allowedSeverity?: { + warning?: boolean; + info?: boolean; + hint?: boolean; + }; +} +export interface ValidateOutput { + validated: unknown; + diagnostics: Diagnostic[]; +} +export declare function validate(spectral: Spectral, asyncapi: Input, options?: ValidateOptions): Promise; diff --git a/cjs/validate.js b/cjs/validate.js new file mode 100644 index 000000000..8df68a8ff --- /dev/null +++ b/cjs/validate.js @@ -0,0 +1,39 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.validate = void 0; +const spectral_core_1 = require("@stoplight/spectral-core"); +const spectral_parsers_1 = require("@stoplight/spectral-parsers"); +const utils_1 = require("./utils"); +const defaultOptions = { + allowedSeverity: { + warning: true, + info: true, + hint: true, + } +}; +function validate(spectral, asyncapi, options = {}) { + return __awaiter(this, void 0, void 0, function* () { + const { allowedSeverity } = (0, utils_1.mergePatch)(defaultOptions, options); + const stringifiedDocument = (0, utils_1.normalizeInput)(asyncapi); + const document = new spectral_core_1.Document(stringifiedDocument, spectral_parsers_1.Yaml, options.source); + // eslint-disable-next-line prefer-const + let { resolved: validated, results } = yield spectral.runWithResolved(document); + if ((0, utils_1.hasErrorDiagnostic)(results) || + (!(allowedSeverity === null || allowedSeverity === void 0 ? void 0 : allowedSeverity.warning) && (0, utils_1.hasWarningDiagnostic)(results)) || + (!(allowedSeverity === null || allowedSeverity === void 0 ? void 0 : allowedSeverity.info) && (0, utils_1.hasInfoDiagnostic)(results)) || + (!(allowedSeverity === null || allowedSeverity === void 0 ? void 0 : allowedSeverity.hint) && (0, utils_1.hasHintDiagnostic)(results))) { + validated = undefined; + } + return { validated, diagnostics: results }; + }); +} +exports.validate = validate; diff --git a/dist/bundle.js b/dist/bundle.js deleted file mode 100644 index b032cf18a..000000000 --- a/dist/bundle.js +++ /dev/null @@ -1 +0,0 @@ -(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i{const channel=doc.channel(channelName);assignIdToParameters(channel.parameters())})}function assignUidToComponentSchemas(doc){if(doc.hasComponents()){for(const[key,s]of Object.entries(doc.components().schemas())){s.json()[String(xParserSchemaId)]=key}}}function assignUidToComponentParameterSchemas(doc){if(doc.hasComponents()){assignIdToParameters(doc.components().parameters())}}function assignNameToAnonymousMessages(doc){let anonymousMessageCounter=0;if(doc.hasChannels()){doc.channelNames().forEach(channelName=>{const channel=doc.channel(channelName);if(channel.hasPublish())addNameToKey(channel.publish().messages(),++anonymousMessageCounter);if(channel.hasSubscribe())addNameToKey(channel.subscribe().messages(),++anonymousMessageCounter)})}}function addNameToKey(messages,number){messages.forEach(m=>{if(m.name()===undefined&&m.ext(xParserMessageName)===undefined){m.json()[String(xParserMessageName)]=``}})}function assignIdToAnonymousSchemas(doc){let anonymousSchemaCounter=0;const callback=schema=>{if(!schema.uid()){schema.json()[String(xParserSchemaId)]=``}};traverseAsyncApiDocument(doc,callback)}module.exports={assignNameToComponentMessages:assignNameToComponentMessages,assignUidToParameterSchemas:assignUidToParameterSchemas,assignUidToComponentSchemas:assignUidToComponentSchemas,assignUidToComponentParameterSchemas:assignUidToComponentParameterSchemas,assignNameToAnonymousMessages:assignNameToAnonymousMessages,assignIdToAnonymousSchemas:assignIdToAnonymousSchemas}},{"./constants":4,"./iterators":8}],2:[function(require,module,exports){const Ajv=require("ajv");const ParserError=require("./errors/parser-error");const asyncapi=require("@asyncapi/specs");const{improveAjvErrors}=require("./utils");const cloneDeep=require("lodash.clonedeep");const ajv=new Ajv({jsonPointers:true,allErrors:true,schemaId:"id",logger:false});ajv.addMetaSchema(require("ajv/lib/refs/json-schema-draft-04.json"));module.exports={parse:parse,getMimeTypes:getMimeTypes};async function parse({message,originalAsyncAPIDocument,fileFormat,parsedAsyncAPIDocument,pathToPayload,defaultSchemaFormat}){const payload=message.payload;if(!payload)return;message["x-parser-original-schema-format"]=message.schemaFormat||defaultSchemaFormat;message["x-parser-original-payload"]=cloneDeep(message.payload);const validate=getValidator(parsedAsyncAPIDocument.asyncapi);const valid=validate(payload);const errors=validate.errors&&[...validate.errors];if(!valid)throw new ParserError({type:"schema-validation-errors",title:"This is not a valid AsyncAPI Schema Object.",parsedJSON:parsedAsyncAPIDocument,validationErrors:improveAjvErrors(addFullPathToDataPath(errors,pathToPayload),originalAsyncAPIDocument,fileFormat)})}function getMimeTypes(){const mimeTypes=["application/schema;version=draft-07","application/schema+json;version=draft-07","application/schema+yaml;version=draft-07"];["2.0.0","2.1.0","2.2.0","2.3.0"].forEach(version=>{mimeTypes.push(`application/vnd.aai.asyncapi;version=${version}`,`application/vnd.aai.asyncapi+json;version=${version}`,`application/vnd.aai.asyncapi+yaml;version=${version}`)});return mimeTypes}function getValidator(version){let validate=ajv.getSchema(version);if(!validate){ajv.addSchema(preparePayloadSchema(asyncapi[String(version)]),version);validate=ajv.getSchema(version)}return validate}function preparePayloadSchema(asyncapiSchema){return{$ref:"#/definitions/schema",definitions:asyncapiSchema.definitions}}function addFullPathToDataPath(errors,path){return errors.map(err=>({...err,...{dataPath:`${path}${err.dataPath}`}}))}},{"./errors/parser-error":6,"./utils":42,"@asyncapi/specs":62,ajv:82,"ajv/lib/refs/json-schema-draft-04.json":123,"lodash.clonedeep":170}],3:[function(require,module,exports){window.AsyncAPIParser=require("./index")},{"./index":7}],4:[function(require,module,exports){const xParserSpecParsed="x-parser-spec-parsed";const xParserSpecStringified="x-parser-spec-stringified";const xParserMessageName="x-parser-message-name";const xParserSchemaId="x-parser-schema-id";const xParserCircle="x-parser-circular";const xParserCircleProps="x-parser-circular-props";module.exports={xParserSpecParsed:xParserSpecParsed,xParserSpecStringified:xParserSpecStringified,xParserMessageName:xParserMessageName,xParserSchemaId:xParserSchemaId,xParserCircle:xParserCircle,xParserCircleProps:xParserCircleProps}},{}],5:[function(require,module,exports){const ParserError=require("./errors/parser-error");const Operation=require("./models/operation");const{parseUrlVariables,getMissingProps,groupValidationErrors,tilde,parseUrlQueryParameters,setNotProvidedParams,getUnknownServers}=require("./utils");const validationError="validation-errors";function validateServerVariables(parsedJSON,asyncapiYAMLorJSON,initialFormat){const srvs=parsedJSON.servers;if(!srvs)return true;const srvsMap=new Map(Object.entries(srvs));const notProvidedVariables=new Map;const notProvidedExamplesInEnum=new Map;srvsMap.forEach((srvr,srvrName)=>{const variables=parseUrlVariables(srvr.url);const variablesObj=srvr.variables;const notProvidedServerVars=notProvidedVariables.get(tilde(srvrName));if(!variables)return;const missingServerVariables=getMissingProps(variables,variablesObj);if(missingServerVariables.length){notProvidedVariables.set(tilde(srvrName),notProvidedServerVars?notProvidedServerVars.concat(missingServerVariables):missingServerVariables)}if(variablesObj){setNotValidExamples(variablesObj,srvrName,notProvidedExamplesInEnum)}});if(notProvidedVariables.size){throw new ParserError({type:validationError,title:"Not all server variables are described with variable object",parsedJSON:parsedJSON,validationErrors:groupValidationErrors("servers","server does not have a corresponding variable object for",notProvidedVariables,asyncapiYAMLorJSON,initialFormat)})}if(notProvidedExamplesInEnum.size){throw new ParserError({type:validationError,title:"Check your server variables. The example does not match the enum list",parsedJSON:parsedJSON,validationErrors:groupValidationErrors("servers","server variable provides an example that does not match the enum list",notProvidedExamplesInEnum,asyncapiYAMLorJSON,initialFormat)})}return true}function setNotValidExamples(variables,srvrName,notProvidedExamplesInEnum){const variablesMap=new Map(Object.entries(variables));variablesMap.forEach((variable,variableName)=>{if(variable.enum&&variable.examples){const wrongExamples=variable.examples.filter(r=>!variable.enum.includes(r));if(wrongExamples.length){notProvidedExamplesInEnum.set(`${tilde(srvrName)}/variables/${tilde(variableName)}`,wrongExamples)}}})}function validateOperationId(parsedJSON,asyncapiYAMLorJSON,initialFormat,operations){const chnls=parsedJSON.channels;if(!chnls)return true;const chnlsMap=new Map(Object.entries(chnls));const duplicatedOperations=new Map;const allOperations=[];const addDuplicateToMap=(op,channelName,opName)=>{const operationId=op.operationId;if(!operationId)return;const operationPath=`${tilde(channelName)}/${opName}/operationId`;const isOperationIdDuplicated=allOperations.filter(v=>v[0]===operationId);if(!isOperationIdDuplicated.length)return allOperations.push([operationId,operationPath]);duplicatedOperations.set(operationPath,isOperationIdDuplicated[0][1])};chnlsMap.forEach((chnlObj,chnlName)=>{operations.forEach(opName=>{const op=chnlObj[String(opName)];if(op)addDuplicateToMap(op,chnlName,opName)})});if(duplicatedOperations.size){throw new ParserError({type:validationError,title:"operationId must be unique across all the operations.",parsedJSON:parsedJSON,validationErrors:groupValidationErrors("channels","is a duplicate of",duplicatedOperations,asyncapiYAMLorJSON,initialFormat)})}return true}function validateServerSecurity(parsedJSON,asyncapiYAMLorJSON,initialFormat,specialSecTypes){const srvs=parsedJSON.servers;if(!srvs)return true;const root="servers";const srvsMap=new Map(Object.entries(srvs));const missingSecSchema=new Map,invalidSecurityValues=new Map;srvsMap.forEach((server,serverName)=>{const serverSecInfo=server.security;if(!serverSecInfo)return true;serverSecInfo.forEach(secObj=>{Object.keys(secObj).forEach(secName=>{const schema=findSecuritySchema(secName,parsedJSON.components);const srvrSecurityPath=`${serverName}/security/${secName}`;if(!schema.length)return missingSecSchema.set(srvrSecurityPath);const schemaType=schema[1];if(!isSrvrSecProperArray(schemaType,specialSecTypes,secObj,secName))invalidSecurityValues.set(srvrSecurityPath,schemaType)})})});if(missingSecSchema.size){throw new ParserError({type:validationError,title:"Server security name must correspond to a security scheme which is declared in the security schemes under the components object.",parsedJSON:parsedJSON,validationErrors:groupValidationErrors(root,"doesn't have a corresponding security schema under the components object",missingSecSchema,asyncapiYAMLorJSON,initialFormat)})}if(invalidSecurityValues.size){throw new ParserError({type:validationError,title:"Server security value must be an empty array if corresponding security schema type is not oauth2 or openIdConnect.",parsedJSON:parsedJSON,validationErrors:groupValidationErrors(root,"security info must have an empty array because its corresponding security schema type is",invalidSecurityValues,asyncapiYAMLorJSON,initialFormat)})}return true}function findSecuritySchema(securityName,components){const secSchemes=components&&components.securitySchemes;const secSchemesMap=secSchemes?new Map(Object.entries(secSchemes)):new Map;const schemaInfo=[];for(const[schemaName,schema]of secSchemesMap.entries()){if(schemaName===securityName){schemaInfo.push(schemaName,schema.type);return schemaInfo}}return schemaInfo}function isSrvrSecProperArray(schemaType,specialSecTypes,secObj,secName){if(!specialSecTypes.includes(schemaType)){const securityObjValue=secObj[String(secName)];return!securityObjValue.length}return true}function validateChannels(parsedJSON,asyncapiYAMLorJSON,initialFormat){const chnls=parsedJSON.channels;if(!chnls)return true;const chnlsMap=new Map(Object.entries(chnls));const notProvidedParams=new Map;const invalidChannelName=new Map;const unknownServers=new Map;chnlsMap.forEach((val,key)=>{const variables=parseUrlVariables(key);const notProvidedChannelParams=notProvidedParams.get(tilde(key));const queryParameters=parseUrlQueryParameters(key);const unknownServerNames=getUnknownServers(parsedJSON,val);if(variables){setNotProvidedParams(variables,val,key,notProvidedChannelParams,notProvidedParams)}if(queryParameters){invalidChannelName.set(tilde(key),queryParameters)}if(unknownServerNames.length>0){unknownServers.set(tilde(key),unknownServerNames)}});const parameterValidationErrors=groupValidationErrors("channels","channel does not have a corresponding parameter object for",notProvidedParams,asyncapiYAMLorJSON,initialFormat);const nameValidationErrors=groupValidationErrors("channels","channel contains invalid name with url query parameters",invalidChannelName,asyncapiYAMLorJSON,initialFormat);const serverValidationErrors=groupValidationErrors("channels","channel contains servers that are not on the servers list in the root of the document",unknownServers,asyncapiYAMLorJSON,initialFormat);const allValidationErrors=parameterValidationErrors.concat(nameValidationErrors).concat(serverValidationErrors);if(notProvidedParams.size||invalidChannelName.size||unknownServers.size){throw new ParserError({type:validationError,title:"Channel validation failed",parsedJSON:parsedJSON,validationErrors:allValidationErrors})}return true}function validateTags(parsedJSON,asyncapiYAMLorJSON,initialFormat){const invalidRoot=validateRootTags(parsedJSON);const invalidChannels=validateAllChannelsTags(parsedJSON);const invalidOperationTraits=validateOperationTraitTags(parsedJSON);const invalidMessages=validateMessageTags(parsedJSON);const invalidMessageTraits=validateMessageTraitsTags(parsedJSON);const errorMessage="contains duplicate tag names";let invalidRootValidationErrors=[];let invalidChannelsValidationErrors=[];let invalidOperationTraitsValidationErrors=[];let invalidMessagesValidationErrors=[];let invalidMessageTraitsValidationErrors=[];if(invalidRoot.size){invalidRootValidationErrors=groupValidationErrors(null,errorMessage,invalidRoot,asyncapiYAMLorJSON,initialFormat)}if(invalidChannels.size){invalidChannelsValidationErrors=groupValidationErrors("channels",errorMessage,invalidChannels,asyncapiYAMLorJSON,initialFormat)}if(invalidOperationTraits.size){invalidOperationTraitsValidationErrors=groupValidationErrors("components",errorMessage,invalidOperationTraits,asyncapiYAMLorJSON,initialFormat)}if(invalidMessages.size){invalidMessagesValidationErrors=groupValidationErrors("components",errorMessage,invalidMessages,asyncapiYAMLorJSON,initialFormat)}if(invalidMessageTraits.size){invalidMessageTraitsValidationErrors=groupValidationErrors("components",errorMessage,invalidMessageTraits,asyncapiYAMLorJSON,initialFormat)}const allValidationErrors=invalidRootValidationErrors.concat(invalidChannelsValidationErrors).concat(invalidOperationTraitsValidationErrors).concat(invalidMessagesValidationErrors).concat(invalidMessageTraitsValidationErrors);if(allValidationErrors.length){throw new ParserError({type:validationError,title:"Tags validation failed",parsedJSON:parsedJSON,validationErrors:allValidationErrors})}return true}function validateRootTags(parsedJSON){const invalidRoot=new Map;const duplicateNames=parsedJSON.tags&&getDuplicateTagNames(parsedJSON.tags);if(duplicateNames&&duplicateNames.length){invalidRoot.set("tags",duplicateNames.toString())}return invalidRoot}function validateOperationTraitTags(parsedJSON){const invalidOperationTraits=new Map;if(parsedJSON&&parsedJSON.components&&parsedJSON.components.operationTraits){Object.keys(parsedJSON.components.operationTraits).forEach(operationTrait=>{const duplicateNames=getDuplicateTagNames(parsedJSON.components.operationTraits[operationTrait].tags);if(duplicateNames&&duplicateNames.length){const operationTraitsPath=`operationTraits/${operationTrait}/tags`;invalidOperationTraits.set(operationTraitsPath,duplicateNames.toString())}})}return invalidOperationTraits}function validateAllChannelsTags(parsedJSON){const chnls=parsedJSON.channels;if(!chnls)return true;const chnlsMap=new Map(Object.entries(chnls));const invalidChannels=new Map;chnlsMap.forEach((channel,channelName)=>validateChannelTags(invalidChannels,channel,channelName));return invalidChannels}function validateChannelTags(invalidChannels,channel,channelName){if(channel.publish){validateOperationTags(invalidChannels,channel.publish,`${tilde(channelName)}/publish`)}if(channel.subscribe){validateOperationTags(invalidChannels,channel.subscribe,`${tilde(channelName)}/subscribe`)}}function validateOperationTags(invalidChannels,operation,operationPath){if(!operation)return;tryAddInvalidEntries(invalidChannels,`${operationPath}/tags`,operation.tags);if(operation.message){if(operation.message.oneOf){operation.message.oneOf.forEach((message,idx)=>{tryAddInvalidEntries(invalidChannels,`${operationPath}/message/oneOf/${idx}/tags`,message.tags)})}else{tryAddInvalidEntries(invalidChannels,`${operationPath}/message/tags`,operation.message.tags)}}}function tryAddInvalidEntries(invalidChannels,key,tags){const duplicateNames=tags&&getDuplicateTagNames(tags);if(duplicateNames&&duplicateNames.length){invalidChannels.set(key,duplicateNames.toString())}}function validateMessageTraitsTags(parsedJSON){const invalidMessageTraits=new Map;if(parsedJSON&&parsedJSON.components&&parsedJSON.components.messageTraits){Object.keys(parsedJSON.components.messageTraits).forEach(messageTrait=>{const duplicateNames=getDuplicateTagNames(parsedJSON.components.messageTraits[messageTrait].tags);if(duplicateNames&&duplicateNames.length){const messageTraitsPath=`messageTraits/${messageTrait}/tags`;invalidMessageTraits.set(messageTraitsPath,duplicateNames.toString())}})}return invalidMessageTraits}function validateMessageTags(parsedJSON){const invalidMessages=new Map;if(parsedJSON&&parsedJSON.components&&parsedJSON.components.messages){Object.keys(parsedJSON.components.messages).forEach(message=>{const duplicateNames=getDuplicateTagNames(parsedJSON.components.messages[message].tags);if(duplicateNames&&duplicateNames.length){const messagePath=`messages/${message}/tags`;invalidMessages.set(messagePath,duplicateNames.toString())}})}return invalidMessages}function getDuplicateTagNames(tags){if(!tags)return null;const tagNames=tags.map(item=>item.name);return tagNames.reduce((acc,item,idx,arr)=>{if(arr.indexOf(item)!==idx&&acc.indexOf(item)<0){acc.push(item)}return acc},[])}module.exports={validateServerVariables:validateServerVariables,validateOperationId:validateOperationId,validateServerSecurity:validateServerSecurity,validateChannels:validateChannels,validateTags:validateTags}},{"./errors/parser-error":6,"./models/operation":31,"./utils":42}],6:[function(require,module,exports){const ERROR_URL_PREFIX="https://github.com/asyncapi/parser-js/";const buildError=(from,to)=>{to.type=from.type.startsWith(ERROR_URL_PREFIX)?from.type:`${ERROR_URL_PREFIX}${from.type}`;to.title=from.title;if(from.detail)to.detail=from.detail;if(from.validationErrors)to.validationErrors=from.validationErrors;if(from.parsedJSON)to.parsedJSON=from.parsedJSON;if(from.location)to.location=from.location;if(from.refs)to.refs=from.refs;return to};class ParserError extends Error{constructor(def){super();buildError(def,this);this.message=def.title}toJS(){return buildError(this,{})}}module.exports=ParserError},{}],7:[function(require,module,exports){const parser=require("./parser");const defaultAsyncAPISchemaParser=require("./asyncapiSchemaFormatParser");parser.registerSchemaParser(defaultAsyncAPISchemaParser);module.exports=parser},{"./asyncapiSchemaFormatParser":2,"./parser":41}],8:[function(require,module,exports){const SchemaIteratorCallbackType=Object.freeze({NEW_SCHEMA:"NEW_SCHEMA",END_SCHEMA:"END_SCHEMA"});const SchemaTypesToIterate=Object.freeze({parameters:"parameters",payloads:"payloads",headers:"headers",components:"components",objects:"objects",arrays:"arrays",oneOfs:"oneOfs",allOfs:"allOfs",anyOfs:"anyOfs",nots:"nots",propertyNames:"propertyNames",patternProperties:"patternProperties",contains:"contains",ifs:"ifs",thenes:"thenes",elses:"elses",dependencies:"dependencies",definitions:"definitions"});function traverseSchema(schema,propOrIndex,options){if(!schema)return;const{callback,schemaTypesToIterate,seenSchemas}=options;const jsonSchema=schema.json();if(seenSchemas.has(jsonSchema))return;seenSchemas.add(jsonSchema);let types=schema.type()||[];if(!Array.isArray(types)){types=[types]}if(!schemaTypesToIterate.includes(SchemaTypesToIterate.objects)&&types.includes("object"))return;if(!schemaTypesToIterate.includes(SchemaTypesToIterate.arrays)&&types.includes("array"))return;if(callback(schema,propOrIndex,SchemaIteratorCallbackType.NEW_SCHEMA)===false)return;if(schemaTypesToIterate.includes(SchemaTypesToIterate.objects)&&types.includes("object")){recursiveSchemaObject(schema,options)}if(schemaTypesToIterate.includes(SchemaTypesToIterate.arrays)&&types.includes("array")){recursiveSchemaArray(schema,options)}if(schemaTypesToIterate.includes(SchemaTypesToIterate.oneOfs)){(schema.oneOf()||[]).forEach((combineSchema,idx)=>{traverseSchema(combineSchema,idx,options)})}if(schemaTypesToIterate.includes(SchemaTypesToIterate.anyOfs)){(schema.anyOf()||[]).forEach((combineSchema,idx)=>{traverseSchema(combineSchema,idx,options)})}if(schemaTypesToIterate.includes(SchemaTypesToIterate.allOfs)){(schema.allOf()||[]).forEach((combineSchema,idx)=>{traverseSchema(combineSchema,idx,options)})}if(schemaTypesToIterate.includes(SchemaTypesToIterate.nots)&&schema.not()){traverseSchema(schema.not(),null,options)}if(schemaTypesToIterate.includes(SchemaTypesToIterate.ifs)&&schema.if()){traverseSchema(schema.if(),null,options)}if(schemaTypesToIterate.includes(SchemaTypesToIterate.thenes)&&schema.then()){traverseSchema(schema.then(),null,options)}if(schemaTypesToIterate.includes(SchemaTypesToIterate.elses)&&schema.else()){traverseSchema(schema.else(),null,options)}if(schemaTypesToIterate.includes(SchemaTypesToIterate.dependencies)){Object.entries(schema.dependencies()||{}).forEach(([depName,dep])=>{if(dep&&!Array.isArray(dep)){traverseSchema(dep,depName,options)}})}if(schemaTypesToIterate.includes(SchemaTypesToIterate.definitions)){Object.entries(schema.definitions()||{}).forEach(([defName,def])=>{traverseSchema(def,defName,options)})}callback(schema,propOrIndex,SchemaIteratorCallbackType.END_SCHEMA);seenSchemas.delete(jsonSchema)}function recursiveSchemaObject(schema,options){Object.entries(schema.properties()||{}).forEach(([propertyName,property])=>{traverseSchema(property,propertyName,options)});const additionalProperties=schema.additionalProperties();if(typeof additionalProperties==="object"){traverseSchema(additionalProperties,null,options)}const schemaTypesToIterate=options.schemaTypesToIterate;if(schemaTypesToIterate.includes(SchemaTypesToIterate.propertyNames)&&schema.propertyNames()){traverseSchema(schema.propertyNames(),null,options)}if(schemaTypesToIterate.includes(SchemaTypesToIterate.patternProperties)){Object.entries(schema.patternProperties()||{}).forEach(([propertyName,property])=>{traverseSchema(property,propertyName,options)})}}function recursiveSchemaArray(schema,options){const items=schema.items();if(items){if(Array.isArray(items)){items.forEach((item,idx)=>{traverseSchema(item,idx,options)})}else{traverseSchema(items,null,options)}}const additionalItems=schema.additionalItems();if(typeof additionalItems==="object"){traverseSchema(additionalItems,null,options)}if(options.schemaTypesToIterate.includes(SchemaTypesToIterate.contains)&&schema.contains()){traverseSchema(schema.contains(),null,options)}}function traverseAsyncApiDocument(doc,callback,schemaTypesToIterate){if(!schemaTypesToIterate){schemaTypesToIterate=Object.values(SchemaTypesToIterate)}const options={callback:callback,schemaTypesToIterate:schemaTypesToIterate,seenSchemas:new Set};if(doc.hasChannels()){Object.values(doc.channels()).forEach(channel=>{traverseChannel(channel,options)})}if(schemaTypesToIterate.includes(SchemaTypesToIterate.components)&&doc.hasComponents()){const components=doc.components();Object.values(components.messages()||{}).forEach(message=>{traverseMessage(message,options)});Object.values(components.schemas()||{}).forEach(schema=>{traverseSchema(schema,null,options)});if(schemaTypesToIterate.includes(SchemaTypesToIterate.parameters)){Object.values(components.parameters()||{}).forEach(parameter=>{traverseSchema(parameter.schema(),null,options)})}Object.values(components.messageTraits()||{}).forEach(messageTrait=>{traverseMessageTrait(messageTrait,options)})}}function traverseChannel(channel,options){if(!channel)return;const{schemaTypesToIterate}=options;if(schemaTypesToIterate.includes(SchemaTypesToIterate.parameters)){Object.values(channel.parameters()||{}).forEach(parameter=>{traverseSchema(parameter.schema(),null,options)})}if(channel.hasPublish()){channel.publish().messages().forEach(message=>{traverseMessage(message,options)})}if(channel.hasSubscribe()){channel.subscribe().messages().forEach(message=>{traverseMessage(message,options)})}}function traverseMessage(message,options){if(!message)return;const{schemaTypesToIterate}=options;if(schemaTypesToIterate.includes(SchemaTypesToIterate.headers)){traverseSchema(message.headers(),null,options)}if(schemaTypesToIterate.includes(SchemaTypesToIterate.payloads)){traverseSchema(message.payload(),null,options)}}function traverseMessageTrait(messageTrait,options){if(!messageTrait)return;const{schemaTypesToIterate}=options;if(schemaTypesToIterate.includes(SchemaTypesToIterate.headers)){traverseSchema(messageTrait.headers(),null,options)}}module.exports={SchemaIteratorCallbackType:SchemaIteratorCallbackType,SchemaTypesToIterate:SchemaTypesToIterate,traverseAsyncApiDocument:traverseAsyncApiDocument}},{}],9:[function(require,module,exports){module.exports=(txt,reviver,context=20)=>{try{return JSON.parse(txt,reviver)}catch(e){handleJsonNotString(txt);const syntaxErr=e.message.match(/^Unexpected token.*position\s+(\d+)/i);const errIdxBrokenJson=e.message.match(/^Unexpected end of JSON.*/i)?txt.length-1:null;const errIdx=syntaxErr?+syntaxErr[1]:errIdxBrokenJson;handleErrIdxNotNull(e,txt,errIdx,context);e.offset=errIdx;const lines=txt.substr(0,errIdx).split("\n");e.startLine=lines.length;e.startColumn=lines[lines.length-1].length;throw e}};function handleJsonNotString(txt){if(typeof txt!=="string"){const isEmptyArray=Array.isArray(txt)&&txt.length===0;const errorMessage=`Cannot parse ${isEmptyArray?"an empty array":String(txt)}`;throw new TypeError(errorMessage)}}function handleErrIdxNotNull(e,txt,errIdx,context){if(errIdx!==null){const start=errIdx<=context?0:errIdx-context;const end=errIdx+context>=txt.length?txt.length:errIdx+context;e.message+=` while parsing near '${start===0?"":"..."}${txt.slice(start,end)}${end===txt.length?"":"..."}'`}else{e.message+=` while parsing '${txt.slice(0,context*2)}'`}}},{}],10:[function(require,module,exports){const{getMapValueByKey}=require("../models/utils");const MixinBindings={hasBindings(){return!!(this._json.bindings&&Object.keys(this._json.bindings).length)},bindings(){return this.hasBindings()?this._json.bindings:{}},bindingProtocols(){return Object.keys(this.bindings())},hasBinding(name){return this.hasBindings()&&!!this._json.bindings[String(name)]},binding(name){return getMapValueByKey(this._json.bindings,name)}};module.exports=MixinBindings},{"../models/utils":40}],11:[function(require,module,exports){const{getMapValueByKey}=require("../models/utils");const MixinDescription={hasDescription(){return!!this._json.description},description(){return getMapValueByKey(this._json,"description")}};module.exports=MixinDescription},{"../models/utils":40}],12:[function(require,module,exports){const{getMapValueOfType}=require("../models/utils");const ExternalDocs=require("../models/external-docs");const MixinExternalDocs={hasExternalDocs(){return!!(this._json.externalDocs&&Object.keys(this._json.externalDocs).length)},externalDocs(){return getMapValueOfType(this._json,"externalDocs",ExternalDocs)}};module.exports=MixinExternalDocs},{"../models/external-docs":22,"../models/utils":40}],13:[function(require,module,exports){const MixinSpecificationExtensions={hasExtensions(){return!!this.extensionKeys().length},extensions(){const result={};Object.entries(this._json).forEach(([key,value])=>{if(/^x-[\w\d\.\-\_]+$/.test(key)){result[String(key)]=value}});return result},extensionKeys(){return Object.keys(this.extensions())},extKeys(){return this.extensionKeys()},hasExtension(key){if(!key.startsWith("x-")){return false}return!!this._json[String(key)]},extension(key){if(!key.startsWith("x-")){return null}return this._json[String(key)]},hasExt(key){return this.hasExtension(key)},ext(key){return this.extension(key)}};module.exports=MixinSpecificationExtensions},{}],14:[function(require,module,exports){const Tag=require("../models/tag");const MixinTags={hasTags(){return!!(Array.isArray(this._json.tags)&&this._json.tags.length)},tags(){return this.hasTags()?this._json.tags.map(t=>new Tag(t)):[]},tagNames(){return this.hasTags()?this._json.tags.map(t=>t.name):[]},hasTag(name){return this.hasTags()&&this._json.tags.some(t=>t.name===name)},tag(name){const tg=this.hasTags()&&this._json.tags.find(t=>t.name===name);return tg?new Tag(tg):null}};module.exports=MixinTags},{"../models/tag":39}],15:[function(require,module,exports){const{createMapOfType,getMapValueOfType,mix}=require("./utils");const Base=require("./base");const Info=require("./info");const Server=require("./server");const Channel=require("./channel");const Components=require("./components");const MixinExternalDocs=require("../mixins/external-docs");const MixinTags=require("../mixins/tags");const MixinSpecificationExtensions=require("../mixins/specification-extensions");const{xParserSpecParsed,xParserSpecStringified,xParserCircle}=require("../constants");const{assignNameToAnonymousMessages,assignNameToComponentMessages,assignUidToComponentSchemas,assignUidToParameterSchemas,assignIdToAnonymousSchemas,assignUidToComponentParameterSchemas}=require("../anonymousNaming");const{traverseAsyncApiDocument}=require("../iterators");class AsyncAPIDocument extends Base{constructor(...args){super(...args);if(this.ext(xParserSpecParsed)===true){return}assignNameToComponentMessages(this);assignNameToAnonymousMessages(this);assignUidToComponentSchemas(this);assignUidToComponentParameterSchemas(this);assignUidToParameterSchemas(this);assignIdToAnonymousSchemas(this);this.json()[String(xParserSpecParsed)]=true}version(){return this._json.asyncapi}info(){return new Info(this._json.info)}id(){return this._json.id}hasServers(){return!!this._json.servers}servers(){return createMapOfType(this._json.servers,Server)}serverNames(){if(!this._json.servers)return[];return Object.keys(this._json.servers)}server(name){return getMapValueOfType(this._json.servers,name,Server)}hasDefaultContentType(){return!!this._json.defaultContentType}defaultContentType(){return this._json.defaultContentType||null}hasChannels(){return!!this._json.channels}channels(){return createMapOfType(this._json.channels,Channel,this)}channelNames(){if(!this._json.channels)return[];return Object.keys(this._json.channels)}channel(name){return getMapValueOfType(this._json.channels,name,Channel,this)}hasComponents(){return!!this._json.components}components(){if(!this._json.components)return null;return new Components(this._json.components)}hasMessages(){return!!this.allMessages().size}allMessages(){const messages=new Map;if(this.hasChannels()){this.channelNames().forEach(channelName=>{const channel=this.channel(channelName);if(channel.hasPublish()){channel.publish().messages().forEach(m=>{messages.set(m.uid(),m)})}if(channel.hasSubscribe()){channel.subscribe().messages().forEach(m=>{messages.set(m.uid(),m)})}})}if(this.hasComponents()){Object.values(this.components().messages()).forEach(m=>{messages.set(m.uid(),m)})}return messages}allSchemas(){const schemas=new Map;const allSchemasCallback=schema=>{if(schema.uid()){schemas.set(schema.uid(),schema)}};traverseAsyncApiDocument(this,allSchemasCallback);return schemas}hasCircular(){return!!this._json[String(xParserCircle)]}traverseSchemas(callback,schemaTypesToIterate){traverseAsyncApiDocument(this,callback,schemaTypesToIterate)}static stringify(doc,space){const rawDoc=doc.json();const copiedDoc={...rawDoc};copiedDoc[String(xParserSpecStringified)]=true;return JSON.stringify(copiedDoc,refReplacer(),space)}static parse(doc){let parsedJSON=doc;if(typeof doc==="string"){parsedJSON=JSON.parse(doc)}else if(typeof doc==="object"){parsedJSON={...parsedJSON}}if(typeof parsedJSON!=="object"||!parsedJSON[String(xParserSpecParsed)]){throw new Error("Cannot parse invalid AsyncAPI document")}if(!parsedJSON[String(xParserSpecStringified)]){return new AsyncAPIDocument(parsedJSON)}delete parsedJSON[String(xParserSpecStringified)];const objToPath=new Map;const pathToObj=new Map;traverseStringifiedDoc(parsedJSON,undefined,parsedJSON,objToPath,pathToObj);return new AsyncAPIDocument(parsedJSON)}}function refReplacer(){const modelPaths=new Map;const paths=new Map;let init=null;return function(field,value){const pathPart=modelPaths.get(this)+(Array.isArray(this)?`[${field}]`:`.${field}`);const isComplex=value===Object(value);if(isComplex){modelPaths.set(value,pathPart)}const savedPath=paths.get(value)||"";if(!savedPath&&isComplex){const valuePath=pathPart.replace(/undefined\.\.?/,"");paths.set(value,valuePath)}const prefixPath=savedPath[0]==="["?"$":"$.";let val=savedPath?`$ref:${prefixPath}${savedPath}`:value;if(init===null){init=value}else if(val===init){val="$ref:$"}return val}}function traverseStringifiedDoc(parent,field,root,objToPath,pathToObj){let objOrPath=parent;let path="$ref:$";if(field!==undefined){objOrPath=parent[String(field)];const concatenatedPath=field?`.${field}`:"";path=objToPath.get(parent)+(Array.isArray(parent)?`[${field}]`:concatenatedPath)}objToPath.set(objOrPath,path);pathToObj.set(path,objOrPath);const ref=pathToObj.get(objOrPath);if(ref){parent[String(field)]=ref}if(objOrPath==="$ref:$"||ref==="$ref:$"){parent[String(field)]=root}if(objOrPath===Object(objOrPath)){for(const f in objOrPath){traverseStringifiedDoc(objOrPath,f,root,objToPath,pathToObj)}}}module.exports=mix(AsyncAPIDocument,MixinTags,MixinExternalDocs,MixinSpecificationExtensions)},{"../anonymousNaming":1,"../constants":4,"../iterators":8,"../mixins/external-docs":12,"../mixins/specification-extensions":13,"../mixins/tags":14,"./base":16,"./channel":18,"./components":19,"./info":23,"./server":37,"./utils":40}],16:[function(require,module,exports){const ParserError=require("../errors/parser-error");class Base{constructor(json){if(json===undefined||json===null)throw new ParserError(`Invalid JSON to instantiate the ${this.constructor.name} object.`);this._json=json}json(key){if(key===undefined)return this._json;if(!this._json)return;return this._json[String(key)]}}module.exports=Base},{"../errors/parser-error":6}],17:[function(require,module,exports){const{mix}=require("./utils");const Base=require("./base");const Schema=require("./schema");const MixinDescription=require("../mixins/description");const MixinSpecificationExtensions=require("../mixins/specification-extensions");class ChannelParameter extends Base{location(){return this._json.location}schema(){if(!this._json.schema)return null;return new Schema(this._json.schema)}}module.exports=mix(ChannelParameter,MixinDescription,MixinSpecificationExtensions)},{"../mixins/description":11,"../mixins/specification-extensions":13,"./base":16,"./schema":33,"./utils":40}],18:[function(require,module,exports){const{createMapOfType,getMapValueOfType,mix}=require("./utils");const Base=require("./base");const ChannelParameter=require("./channel-parameter");const PublishOperation=require("./publish-operation");const SubscribeOperation=require("./subscribe-operation");const MixinDescription=require("../mixins/description");const MixinBindings=require("../mixins/bindings");const MixinSpecificationExtensions=require("../mixins/specification-extensions");class Channel extends Base{parameters(){return createMapOfType(this._json.parameters,ChannelParameter)}parameter(name){return getMapValueOfType(this._json.parameters,name,ChannelParameter)}hasParameters(){return!!this._json.parameters}hasServers(){return!!this._json.servers}servers(){if(!this._json.servers)return[];return this._json.servers}server(index){if(!this._json.servers)return null;if(typeof index!=="number")return null;if(index>this._json.servers.length-1)return null;return this._json.servers[+index]}publish(){if(!this._json.publish)return null;return new PublishOperation(this._json.publish)}subscribe(){if(!this._json.subscribe)return null;return new SubscribeOperation(this._json.subscribe)}hasPublish(){return!!this._json.publish}hasSubscribe(){return!!this._json.subscribe}}module.exports=mix(Channel,MixinDescription,MixinBindings,MixinSpecificationExtensions)},{"../mixins/bindings":10,"../mixins/description":11,"../mixins/specification-extensions":13,"./base":16,"./channel-parameter":17,"./publish-operation":32,"./subscribe-operation":38,"./utils":40}],19:[function(require,module,exports){const{createMapOfType,getMapValueOfType,mix}=require("./utils");const Base=require("./base");const Channel=require("./channel");const Message=require("./message");const Schema=require("./schema");const SecurityScheme=require("./security-scheme");const Server=require("./server");const ChannelParameter=require("./channel-parameter");const CorrelationId=require("./correlation-id");const OperationTrait=require("./operation-trait");const MessageTrait=require("./message-trait");const MixinSpecificationExtensions=require("../mixins/specification-extensions");class Components extends Base{channels(){return createMapOfType(this._json.channels,Channel)}hasChannels(){return!!this._json.channels}channel(name){return getMapValueOfType(this._json.channels,name,Channel)}messages(){return createMapOfType(this._json.messages,Message)}hasMessages(){return!!this._json.messages}message(name){return getMapValueOfType(this._json.messages,name,Message)}schemas(){return createMapOfType(this._json.schemas,Schema)}hasSchemas(){return!!this._json.schemas}schema(name){return getMapValueOfType(this._json.schemas,name,Schema)}securitySchemes(){return createMapOfType(this._json.securitySchemes,SecurityScheme)}hasSecuritySchemes(){return!!this._json.securitySchemes}securityScheme(name){return getMapValueOfType(this._json.securitySchemes,name,SecurityScheme)}servers(){return createMapOfType(this._json.servers,Server)}hasServers(){return!!this._json.servers}server(name){return getMapValueOfType(this._json.servers,name,Server)}parameters(){return createMapOfType(this._json.parameters,ChannelParameter)}hasParameters(){return!!this._json.parameters}parameter(name){return getMapValueOfType(this._json.parameters,name,ChannelParameter)}correlationIds(){return createMapOfType(this._json.correlationIds,CorrelationId)}hasCorrelationIds(){return!!this._json.correlationIds}correlationId(name){return getMapValueOfType(this._json.correlationIds,name,CorrelationId)}operationTraits(){return createMapOfType(this._json.operationTraits,OperationTrait)}hasOperationTraits(){return!!this._json.operationTraits}operationTrait(name){return getMapValueOfType(this._json.operationTraits,name,OperationTrait)}messageTraits(){return createMapOfType(this._json.messageTraits,MessageTrait)}hasMessageTraits(){return!!this._json.messageTraits}messageTrait(name){return getMapValueOfType(this._json.messageTraits,name,MessageTrait)}}module.exports=mix(Components,MixinSpecificationExtensions)},{"../mixins/specification-extensions":13,"./base":16,"./channel":18,"./channel-parameter":17,"./correlation-id":21,"./message":27,"./message-trait":25,"./operation-trait":29,"./schema":33,"./security-scheme":34,"./server":37,"./utils":40}],20:[function(require,module,exports){const{mix}=require("./utils");const Base=require("./base");const MixinSpecificationExtensions=require("../mixins/specification-extensions");class Contact extends Base{name(){return this._json.name}url(){return this._json.url}email(){return this._json.email}}module.exports=mix(Contact,MixinSpecificationExtensions)},{"../mixins/specification-extensions":13,"./base":16,"./utils":40}],21:[function(require,module,exports){const{mix}=require("./utils");const Base=require("./base");const MixinDescription=require("../mixins/description");const MixinSpecificationExtensions=require("../mixins/specification-extensions");class CorrelationId extends Base{location(){return this._json.location}}module.exports=mix(CorrelationId,MixinSpecificationExtensions,MixinDescription)},{"../mixins/description":11,"../mixins/specification-extensions":13,"./base":16,"./utils":40}],22:[function(require,module,exports){const{mix}=require("./utils");const Base=require("./base");const MixinDescription=require("../mixins/description");const MixinSpecificationExtensions=require("../mixins/specification-extensions");class ExternalDocs extends Base{url(){return this._json.url}}module.exports=mix(ExternalDocs,MixinDescription,MixinSpecificationExtensions)},{"../mixins/description":11,"../mixins/specification-extensions":13,"./base":16,"./utils":40}],23:[function(require,module,exports){const{mix}=require("./utils");const Base=require("./base");const License=require("./license");const Contact=require("./contact");const MixinDescription=require("../mixins/description");const MixinSpecificationExtensions=require("../mixins/specification-extensions");class Info extends Base{title(){return this._json.title}version(){return this._json.version}termsOfService(){return this._json.termsOfService}license(){if(!this._json.license)return null;return new License(this._json.license)}contact(){if(!this._json.contact)return null;return new Contact(this._json.contact)}}module.exports=mix(Info,MixinDescription,MixinSpecificationExtensions)},{"../mixins/description":11,"../mixins/specification-extensions":13,"./base":16,"./contact":20,"./license":24,"./utils":40}],24:[function(require,module,exports){const{mix}=require("./utils");const Base=require("./base");const MixinSpecificationExtensions=require("../mixins/specification-extensions");class License extends Base{name(){return this._json.name}url(){return this._json.url}}module.exports=mix(License,MixinSpecificationExtensions)},{"../mixins/specification-extensions":13,"./base":16,"./utils":40}],25:[function(require,module,exports){const MessageTraitable=require("./message-traitable");class MessageTrait extends MessageTraitable{}module.exports=MessageTrait},{"./message-traitable":26}],26:[function(require,module,exports){const{getMapValueOfType,mix}=require("./utils");const Base=require("./base");const Schema=require("./schema");const CorrelationId=require("./correlation-id");const MixinDescription=require("../mixins/description");const MixinExternalDocs=require("../mixins/external-docs");const MixinTags=require("../mixins/tags");const MixinBindings=require("../mixins/bindings");const MixinSpecificationExtensions=require("../mixins/specification-extensions");class MessageTraitable extends Base{headers(){if(!this._json.headers)return null;return new Schema(this._json.headers)}header(name){if(!this._json.headers)return null;return getMapValueOfType(this._json.headers.properties,name,Schema)}correlationId(){if(!this._json.correlationId)return null;return new CorrelationId(this._json.correlationId)}schemaFormat(){return this._json.schemaFormat}contentType(){return this._json.contentType}name(){return this._json.name}title(){return this._json.title}summary(){return this._json.summary}examples(){return this._json.examples}}module.exports=mix(MessageTraitable,MixinDescription,MixinTags,MixinExternalDocs,MixinBindings,MixinSpecificationExtensions)},{"../mixins/bindings":10,"../mixins/description":11,"../mixins/external-docs":12,"../mixins/specification-extensions":13,"../mixins/tags":14,"./base":16,"./correlation-id":21,"./schema":33,"./utils":40}],27:[function(require,module,exports){(function(Buffer){const MessageTrait=require("./message-trait");const MessageTraitable=require("./message-traitable");const Schema=require("./schema");class Message extends MessageTraitable{uid(){return this.name()||this.ext("x-parser-message-name")||Buffer.from(JSON.stringify(this._json)).toString("base64")}payload(){if(!this._json.payload)return null;return new Schema(this._json.payload)}traits(){const traits=this._json["x-parser-original-traits"]||this._json.traits;if(!traits)return[];return traits.map(t=>new MessageTrait(t))}hasTraits(){return!!this._json["x-parser-original-traits"]||!!this._json.traits}originalPayload(){return this._json["x-parser-original-payload"]||this.payload()}originalSchemaFormat(){return this._json["x-parser-original-schema-format"]||this.schemaFormat()}}module.exports=Message}).call(this,require("buffer").Buffer)},{"./message-trait":25,"./message-traitable":26,"./schema":33,buffer:128}],28:[function(require,module,exports){const{mix}=require("./utils");const Base=require("./base");const MixinSpecificationExtensions=require("../mixins/specification-extensions");class OAuthFlow extends Base{authorizationUrl(){return this._json.authorizationUrl}tokenUrl(){return this._json.tokenUrl}refreshUrl(){return this._json.refreshUrl}scopes(){return this._json.scopes}}module.exports=mix(OAuthFlow,MixinSpecificationExtensions)},{"../mixins/specification-extensions":13,"./base":16,"./utils":40}],29:[function(require,module,exports){const OperationTraitable=require("./operation-traitable");class OperationTrait extends OperationTraitable{}module.exports=OperationTrait},{"./operation-traitable":30}],30:[function(require,module,exports){const{mix}=require("./utils");const Base=require("./base");const MixinDescription=require("../mixins/description");const MixinTags=require("../mixins/tags");const MixinExternalDocs=require("../mixins/external-docs");const MixinBindings=require("../mixins/bindings");const MixinSpecificationExtensions=require("../mixins/specification-extensions");class OperationTraitable extends Base{id(){return this._json.operationId}summary(){return this._json.summary}}module.exports=mix(OperationTraitable,MixinDescription,MixinTags,MixinExternalDocs,MixinBindings,MixinSpecificationExtensions)},{"../mixins/bindings":10,"../mixins/description":11,"../mixins/external-docs":12,"../mixins/specification-extensions":13,"../mixins/tags":14,"./base":16,"./utils":40}],31:[function(require,module,exports){const OperationTraitable=require("./operation-traitable");const Message=require("./message");const OperationTrait=require("./operation-trait");class Operation extends OperationTraitable{hasMultipleMessages(){if(this._json.message&&this._json.message.oneOf&&this._json.message.oneOf.length>1)return true;if(!this._json.message)return false;return false}traits(){const traits=this._json["x-parser-original-traits"]||this._json.traits;if(!traits)return[];return traits.map(t=>new OperationTrait(t))}hasTraits(){return!!this._json["x-parser-original-traits"]||!!this._json.traits}messages(){if(!this._json.message)return[];if(this._json.message.oneOf)return this._json.message.oneOf.map(m=>new Message(m));return[new Message(this._json.message)]}message(index){if(!this._json.message)return null;if(!this._json.message.oneOf)return new Message(this._json.message);if(typeof index!=="number")return null;if(index>this._json.message.oneOf.length-1)return null;return new Message(this._json.message.oneOf[+index])}}module.exports=Operation},{"./message":27,"./operation-trait":29,"./operation-traitable":30}],32:[function(require,module,exports){const Operation=require("./operation");class PublishOperation extends Operation{isPublish(){return true}isSubscribe(){return false}kind(){return"publish"}}module.exports=PublishOperation},{"./operation":31}],33:[function(require,module,exports){const{createMapOfType,getMapValueOfType,mix}=require("./utils");const Base=require("./base");const{xParserCircle,xParserCircleProps}=require("../constants");const MixinDescription=require("../mixins/description");const MixinExternalDocs=require("../mixins/external-docs");const MixinSpecificationExtensions=require("../mixins/specification-extensions");class Schema extends Base{constructor(json,options){super(json);this.options=options||{}}uid(){return this.$id()||this.ext("x-parser-schema-id")}$id(){return this._json.$id}multipleOf(){return this._json.multipleOf}maximum(){return this._json.maximum}exclusiveMaximum(){return this._json.exclusiveMaximum}minimum(){return this._json.minimum}exclusiveMinimum(){return this._json.exclusiveMinimum}maxLength(){return this._json.maxLength}minLength(){return this._json.minLength}pattern(){return this._json.pattern}maxItems(){return this._json.maxItems}minItems(){return this._json.minItems}uniqueItems(){return!!this._json.uniqueItems}maxProperties(){return this._json.maxProperties}minProperties(){return this._json.minProperties}required(){return this._json.required}enum(){return this._json.enum}type(){return this._json.type}allOf(){if(!this._json.allOf)return null;return this._json.allOf.map(s=>new Schema(s,{parent:this}))}oneOf(){if(!this._json.oneOf)return null;return this._json.oneOf.map(s=>new Schema(s,{parent:this}))}anyOf(){if(!this._json.anyOf)return null;return this._json.anyOf.map(s=>new Schema(s,{parent:this}))}not(){if(!this._json.not)return null;return new Schema(this._json.not,{parent:this})}items(){if(!this._json.items)return null;if(Array.isArray(this._json.items)){return this._json.items.map(s=>new Schema(s,{parent:this}))}return new Schema(this._json.items,{parent:this})}properties(){return createMapOfType(this._json.properties,Schema,{parent:this})}property(name){return getMapValueOfType(this._json.properties,name,Schema,{parent:this})}additionalProperties(){const ap=this._json.additionalProperties;if(ap===undefined||ap===null)return;if(typeof ap==="boolean")return ap;return new Schema(ap,{parent:this})}additionalItems(){const ai=this._json.additionalItems;if(ai===undefined||ai===null)return;return new Schema(ai,{parent:this})}patternProperties(){return createMapOfType(this._json.patternProperties,Schema,{parent:this})}const(){return this._json.const}contains(){if(!this._json.contains)return null;return new Schema(this._json.contains,{parent:this})}dependencies(){if(!this._json.dependencies)return null;const result={};Object.entries(this._json.dependencies).forEach(([key,value])=>{result[String(key)]=!Array.isArray(value)?new Schema(value,{parent:this}):value});return result}propertyNames(){if(!this._json.propertyNames)return null;return new Schema(this._json.propertyNames,{parent:this})}if(){if(!this._json.if)return null;return new Schema(this._json.if,{parent:this})}then(){if(!this._json.then)return null;return new Schema(this._json.then,{parent:this})}else(){if(!this._json.else)return null;return new Schema(this._json.else,{parent:this})}format(){return this._json.format}contentEncoding(){return this._json.contentEncoding}contentMediaType(){return this._json.contentMediaType}definitions(){return createMapOfType(this._json.definitions,Schema,{parent:this})}title(){return this._json.title}default(){return this._json.default}deprecated(){return this._json.deprecated}discriminator(){return this._json.discriminator}readOnly(){return!!this._json.readOnly}writeOnly(){return!!this._json.writeOnly}examples(){return this._json.examples}isBooleanSchema(){return typeof this._json==="boolean"}isCircular(){if(!!this.ext(xParserCircle)){return true}let parent=this.options.parent;while(parent){if(parent._json===this._json)return true;parent=parent.options&&parent.options.parent}return false}circularSchema(){let parent=this.options.parent;while(parent){if(parent._json===this._json)return parent;parent=parent.options&&parent.options.parent}}hasCircularProps(){if(Array.isArray(this.ext(xParserCircleProps))){return this.ext(xParserCircleProps).length>0}return Object.entries(this.properties()||{}).map(([propertyName,property])=>{if(property.isCircular())return propertyName}).filter(Boolean).length>0}circularProps(){if(Array.isArray(this.ext(xParserCircleProps))){return this.ext(xParserCircleProps)}return Object.entries(this.properties()||{}).map(([propertyName,property])=>{if(property.isCircular())return propertyName}).filter(Boolean)}}module.exports=mix(Schema,MixinDescription,MixinExternalDocs,MixinSpecificationExtensions)},{"../constants":4,"../mixins/description":11,"../mixins/external-docs":12,"../mixins/specification-extensions":13,"./base":16,"./utils":40}],34:[function(require,module,exports){const{createMapOfType,mix}=require("./utils");const Base=require("./base");const OAuthFlow=require("./oauth-flow");const MixinDescription=require("../mixins/description");const MixinSpecificationExtensions=require("../mixins/specification-extensions");class SecurityScheme extends Base{type(){return this._json.type}name(){return this._json.name}in(){return this._json.in}scheme(){return this._json.scheme}bearerFormat(){return this._json.bearerFormat}openIdConnectUrl(){return this._json.openIdConnectUrl}flows(){return createMapOfType(this._json.flows,OAuthFlow)}}module.exports=mix(SecurityScheme,MixinDescription,MixinSpecificationExtensions)},{"../mixins/description":11,"../mixins/specification-extensions":13,"./base":16,"./oauth-flow":28,"./utils":40}],35:[function(require,module,exports){const Base=require("./base");class ServerSecurityRequirement extends Base{}module.exports=ServerSecurityRequirement},{"./base":16}],36:[function(require,module,exports){const{mix}=require("./utils");const Base=require("./base");const MixinDescription=require("../mixins/description");const MixinSpecificationExtensions=require("../mixins/specification-extensions");class ServerVariable extends Base{allowedValues(){return this._json.enum}allows(name){if(this._json.enum===undefined)return true;return this._json.enum.includes(name)}hasAllowedValues(){return this._json.enum!==undefined}defaultValue(){return this._json.default}hasDefaultValue(){return this._json.default!==undefined}examples(){return this._json.examples}}module.exports=mix(ServerVariable,MixinDescription,MixinSpecificationExtensions)},{"../mixins/description":11,"../mixins/specification-extensions":13,"./base":16,"./utils":40}],37:[function(require,module,exports){const{createMapOfType,getMapValueOfType,mix}=require("./utils");const Base=require("./base");const ServerVariable=require("./server-variable");const ServerSecurityRequirement=require("./server-security-requirement");const MixinDescription=require("../mixins/description");const MixinBindings=require("../mixins/bindings");const MixinSpecificationExtensions=require("../mixins/specification-extensions");class Server extends Base{url(){return this._json.url}protocol(){return this._json.protocol}protocolVersion(){return this._json.protocolVersion}variables(){return createMapOfType(this._json.variables,ServerVariable)}variable(name){return getMapValueOfType(this._json.variables,name,ServerVariable)}hasVariables(){return!!this._json.variables}security(){if(!this._json.security)return null;return this._json.security.map(sec=>new ServerSecurityRequirement(sec))}}module.exports=mix(Server,MixinDescription,MixinBindings,MixinSpecificationExtensions)},{"../mixins/bindings":10,"../mixins/description":11,"../mixins/specification-extensions":13,"./base":16,"./server-security-requirement":35,"./server-variable":36,"./utils":40}],38:[function(require,module,exports){const Operation=require("./operation");class SubscribeOperation extends Operation{isPublish(){return false}isSubscribe(){return true}kind(){return"subscribe"}}module.exports=SubscribeOperation},{"./operation":31}],39:[function(require,module,exports){const{mix}=require("./utils");const Base=require("./base");const MixinDescription=require("../mixins/description");const MixinExternalDocs=require("../mixins/external-docs");const MixinSpecificationExtensions=require("../mixins/specification-extensions");class Tag extends Base{name(){return this._json.name}}module.exports=mix(Tag,MixinDescription,MixinExternalDocs,MixinSpecificationExtensions)},{"../mixins/description":11,"../mixins/external-docs":12,"../mixins/specification-extensions":13,"./base":16,"./utils":40}],40:[function(require,module,exports){const utils=module.exports;const getMapValue=(obj,key,Type,options)=>{if(typeof key!=="string"||!obj)return null;const v=obj[String(key)];if(v===undefined)return null;return Type?new Type(v,options):v};utils.createMapOfType=(obj,Type,options)=>{const result={};if(!obj)return result;Object.entries(obj).forEach(([key,value])=>{result[String(key)]=new Type(value,options)});return result};utils.getMapValueOfType=(obj,key,Type,options)=>{return getMapValue(obj,key,Type,options)};utils.getMapValueByKey=(obj,key)=>{return getMapValue(obj,key)};utils.mix=(model,...mixins)=>{let duplicatedMethods=false;function checkDuplication(mixin){if(model===mixin)return true;duplicatedMethods=Object.keys(mixin).some(mixinMethod=>model.prototype.hasOwnProperty(mixinMethod));return duplicatedMethods}if(mixins.some(checkDuplication)){if(duplicatedMethods){throw new Error(`invalid mix function: model ${model.name} has at least one method that it is trying to replace by mixin`)}else{throw new Error(`invalid mix function: cannot use the model ${model.name} as a mixin`)}}mixins.forEach(mixin=>Object.assign(model.prototype,mixin));return model}},{}],41:[function(require,module,exports){(function(process,global){const path=require("path");const fetch=typeof window!=="undefined"?window["fetch"]:typeof global!=="undefined"?global["fetch"]:null;const Ajv=require("ajv");const asyncapi=require("@asyncapi/specs");const $RefParser=require("@apidevtools/json-schema-ref-parser");const mergePatch=require("tiny-merge-patch").apply;const ParserError=require("./errors/parser-error");const{validateChannels,validateTags,validateServerVariables,validateOperationId,validateServerSecurity}=require("./customValidators.js");const{toJS,findRefs,getLocationOf,improveAjvErrors,getDefaultSchemaFormat}=require("./utils");const AsyncAPIDocument=require("./models/asyncapi");const OPERATIONS=["publish","subscribe"];const SPECIAL_SECURITY_TYPES=["oauth2","openIdConnect"];const PARSERS={};const xParserCircle="x-parser-circular";const xParserMessageParsed="x-parser-message-parsed";const ajv=new Ajv({jsonPointers:true,allErrors:true,schemaId:"id",logger:false});ajv.addMetaSchema(require("ajv/lib/refs/json-schema-draft-04.json"));module.exports={parse:parse,parseFromUrl:parseFromUrl,registerSchemaParser:registerSchemaParser,ParserError:ParserError,AsyncAPIDocument:AsyncAPIDocument};async function parse(asyncapiYAMLorJSON,options={}){let parsedJSON;let initialFormat;options.path=options.path||`${process.cwd()}${path.sep}`;try{({initialFormat:initialFormat,parsedJSON:parsedJSON}=toJS(asyncapiYAMLorJSON));if(typeof parsedJSON!=="object"){throw new ParserError({type:"impossible-to-convert-to-json",title:"Could not convert AsyncAPI to JSON.",detail:"Most probably the AsyncAPI document contains invalid YAML or YAML features not supported in JSON."})}if(!parsedJSON.asyncapi){throw new ParserError({type:"missing-asyncapi-field",title:"The `asyncapi` field is missing.",parsedJSON:parsedJSON})}if(parsedJSON.asyncapi.startsWith("1.")||!asyncapi[parsedJSON.asyncapi]){throw new ParserError({type:"unsupported-version",title:`Version ${parsedJSON.asyncapi} is not supported.`,detail:"Please use latest version of the specification.",parsedJSON:parsedJSON,validationErrors:[getLocationOf("/asyncapi",asyncapiYAMLorJSON,initialFormat)]})}if(options.applyTraits===undefined)options.applyTraits=true;const refParser=new $RefParser;await dereference(refParser,parsedJSON,initialFormat,asyncapiYAMLorJSON,{...options,dereference:{circular:"ignore"}});const validate=getValidator(parsedJSON.asyncapi);const valid=validate(parsedJSON);const errors=validate.errors&&[...validate.errors];if(!valid)throw new ParserError({type:"validation-errors",title:"There were errors validating the AsyncAPI document.",parsedJSON:parsedJSON,validationErrors:improveAjvErrors(errors,asyncapiYAMLorJSON,initialFormat)});await customDocumentOperations(parsedJSON,asyncapiYAMLorJSON,initialFormat,options);if(refParser.$refs.circular)await handleCircularRefs(refParser,parsedJSON,initialFormat,asyncapiYAMLorJSON,options)}catch(e){if(e instanceof ParserError)throw e;throw new ParserError({type:"unexpected-error",title:e.message,parsedJSON:parsedJSON})}return new AsyncAPIDocument(parsedJSON)}function parseFromUrl(url,fetchOptions,options){if(!fetchOptions)fetchOptions={};return new Promise((resolve,reject)=>{fetch(url,fetchOptions).then(res=>res.text()).then(doc=>parse(doc,options)).then(result=>resolve(result)).catch(e=>{if(e instanceof ParserError)return reject(e);return reject(new ParserError({type:"fetch-url-error",title:e.message}))})})}async function dereference(refParser,parsedJSON,initialFormat,asyncapiYAMLorJSON,options){try{return await refParser.dereference(options.path,parsedJSON,{continueOnError:true,parse:options.parse,resolve:options.resolve,dereference:options.dereference})}catch(err){throw new ParserError({type:"dereference-error",title:err.errors[0].message,parsedJSON:parsedJSON,refs:findRefs(err.errors,initialFormat,asyncapiYAMLorJSON)})}}async function handleCircularRefs(refParser,parsedJSON,initialFormat,asyncapiYAMLorJSON,options){await dereference(refParser,parsedJSON,initialFormat,asyncapiYAMLorJSON,{...options,dereference:{circular:true}});parsedJSON[String(xParserCircle)]=true}function getValidator(version){let validate=ajv.getSchema(version);if(!validate){ajv.addSchema(asyncapi[String(version)],version);validate=ajv.getSchema(version)}return validate}async function customDocumentOperations(parsedJSON,asyncapiYAMLorJSON,initialFormat,options){validateServerVariables(parsedJSON,asyncapiYAMLorJSON,initialFormat);validateServerSecurity(parsedJSON,asyncapiYAMLorJSON,initialFormat,SPECIAL_SECURITY_TYPES);if(!parsedJSON.channels)return;validateTags(parsedJSON,asyncapiYAMLorJSON,initialFormat);validateChannels(parsedJSON,asyncapiYAMLorJSON,initialFormat);validateOperationId(parsedJSON,asyncapiYAMLorJSON,initialFormat,OPERATIONS);await customComponentsMsgOperations(parsedJSON,asyncapiYAMLorJSON,initialFormat,options);await customChannelsOperations(parsedJSON,asyncapiYAMLorJSON,initialFormat,options)}async function validateAndConvertMessage(msg,originalAsyncAPIDocument,fileFormat,parsedAsyncAPIDocument,pathToPayload){if(xParserMessageParsed in msg&&msg[String(xParserMessageParsed)]===true)return;const defaultSchemaFormat=getDefaultSchemaFormat(parsedAsyncAPIDocument.asyncapi);const schemaFormat=msg.schemaFormat||defaultSchemaFormat;await PARSERS[String(schemaFormat)]({schemaFormat:schemaFormat,message:msg,defaultSchemaFormat:defaultSchemaFormat,originalAsyncAPIDocument:originalAsyncAPIDocument,parsedAsyncAPIDocument:parsedAsyncAPIDocument,fileFormat:fileFormat,pathToPayload:pathToPayload});msg.schemaFormat=defaultSchemaFormat;msg[String(xParserMessageParsed)]=true}function registerSchemaParser(parserModule){if(typeof parserModule!=="object"||typeof parserModule.parse!=="function"||typeof parserModule.getMimeTypes!=="function")throw new ParserError({type:"impossible-to-register-parser",title:"parserModule must have parse() and getMimeTypes() functions."});parserModule.getMimeTypes().forEach(schemaFormat=>{PARSERS[String(schemaFormat)]=parserModule.parse})}function applyTraits(js){if(Array.isArray(js.traits)){for(const trait of js.traits){for(const key in trait){js[String(key)]=mergePatch(js[String(key)],trait[String(key)])}}js["x-parser-original-traits"]=js.traits;delete js.traits}}async function customChannelsOperations(parsedJSON,asyncapiYAMLorJSON,initialFormat,options){const promisesArray=[];Object.entries(parsedJSON.channels).forEach(([channelName,channel])=>{promisesArray.push(...OPERATIONS.map(async opName=>{const op=channel[String(opName)];if(!op)return;const messages=op.message?op.message.oneOf||[op.message]:[];if(options.applyTraits){applyTraits(op);messages.forEach(m=>applyTraits(m))}const pathToPayload=`/channels/${channelName}/${opName}/message/payload`;for(const m of messages){await validateAndConvertMessage(m,asyncapiYAMLorJSON,initialFormat,parsedJSON,pathToPayload)}}))});await Promise.all(promisesArray)}async function customComponentsMsgOperations(parsedJSON,asyncapiYAMLorJSON,initialFormat,options){if(!parsedJSON.components||!parsedJSON.components.messages)return;const promisesArray=[];Object.entries(parsedJSON.components.messages).forEach(([messageName,message])=>{if(options.applyTraits){applyTraits(message)}const pathToPayload=`/components/messages/${messageName}/payload`;promisesArray.push(validateAndConvertMessage(message,asyncapiYAMLorJSON,initialFormat,parsedJSON,pathToPayload))});await Promise.all(promisesArray)}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./customValidators.js":5,"./errors/parser-error":6,"./models/asyncapi":15,"./utils":42,"@apidevtools/json-schema-ref-parser":45,"@asyncapi/specs":62,_process:172,ajv:82,"ajv/lib/refs/json-schema-draft-04.json":123,path:171,"tiny-merge-patch":197}],42:[function(require,module,exports){const YAML=require("js-yaml");const{yamlAST,loc}=require("@fmvilas/pseudo-yaml-ast");const jsonAST=require("json-to-ast");const jsonParseBetterErrors=require("../lib/json-parse");const ParserError=require("./errors/parser-error");const jsonPointerToArray=jsonPointer=>(jsonPointer||"/").split("/").splice(1);const utils=module.exports;const getAST=(asyncapiYAMLorJSON,initialFormat)=>{if(initialFormat==="yaml"){return yamlAST(asyncapiYAMLorJSON)}else if(initialFormat==="json"){return jsonAST(asyncapiYAMLorJSON)}};const findNode=(obj,location)=>{for(const key of location){obj=obj?obj[utils.untilde(key)]:null}return obj};const findNodeInAST=(ast,location)=>{let obj=ast;for(const key of location){if(!Array.isArray(obj.children))return;let childArray;const child=obj.children.find(c=>{if(!c)return;if(c.type==="Object")return childArray=c.children.find(a=>a.key.value===utils.untilde(key));return c.type==="Property"&&c.key&&c.key.value===utils.untilde(key)});if(!child)return;obj=childArray?childArray.value:child.value}return obj};const findLocationOf=(keys,ast,initialFormat)=>{if(initialFormat==="js")return{jsonPointer:`/${keys.join("/")}`};let node;if(initialFormat==="yaml"){node=findNode(ast,keys)}else if(initialFormat==="json"){node=findNodeInAST(ast,keys)}if(!node)return{jsonPointer:`/${keys.join("/")}`};let info;if(initialFormat==="yaml"){info=node[loc]}else if(initialFormat==="json"){info=node.loc}if(!info)return{jsonPointer:`/${keys.join("/")}`};return{jsonPointer:`/${keys.join("/")}`,startLine:info.start.line,startColumn:info.start.column+1,startOffset:info.start.offset,endLine:info.end?info.end.line:undefined,endColumn:info.end?info.end.column+1:undefined,endOffset:info.end?info.end.offset:undefined}};utils.tilde=str=>{return str.replace(/[~\/]{1}/g,m=>{switch(m){case"/":return"~1";case"~":return"~0"}return m})};utils.untilde=str=>{if(!str.includes("~"))return str;return str.replace(/~[01]/g,m=>{switch(m){case"~1":return"/";case"~0":return"~"}return m})};utils.toJS=asyncapiYAMLorJSON=>{if(!asyncapiYAMLorJSON){throw new ParserError({type:"null-or-falsey-document",title:"Document can't be null or falsey."})}if(asyncapiYAMLorJSON.constructor&&asyncapiYAMLorJSON.constructor.name==="Object"){return{initialFormat:"js",parsedJSON:asyncapiYAMLorJSON}}if(typeof asyncapiYAMLorJSON!=="string"){throw new ParserError({type:"invalid-document-type",title:"The AsyncAPI document has to be either a string or a JS object."})}if(asyncapiYAMLorJSON.trimLeft().startsWith("{")){try{return{initialFormat:"json",parsedJSON:jsonParseBetterErrors(asyncapiYAMLorJSON)}}catch(e){throw new ParserError({type:"invalid-json",title:"The provided JSON is not valid.",detail:e.message,location:{startOffset:e.offset,startLine:e.startLine,startColumn:e.startColumn}})}}else{try{return{initialFormat:"yaml",parsedJSON:YAML.safeLoad(asyncapiYAMLorJSON)}}catch(err){throw new ParserError({type:"invalid-yaml",title:"The provided YAML is not valid.",detail:err.message,location:{startOffset:err.mark.position,startLine:err.mark.line+1,startColumn:err.mark.column+1}})}}};utils.findRefs=(errors,initialFormat,asyncapiYAMLorJSON)=>{let refs=[];errors.map(({path})=>refs.push({location:[...path.map(utils.tilde),"$ref"]}));if(initialFormat==="js"){return refs.map(ref=>({jsonPointer:`/${ref.location.join("/")}`}))}if(initialFormat==="yaml"){const pseudoAST=yamlAST(asyncapiYAMLorJSON);refs=refs.map(ref=>findLocationOf(ref.location,pseudoAST,initialFormat))}else if(initialFormat==="json"){const ast=jsonAST(asyncapiYAMLorJSON);refs=refs.map(ref=>findLocationOf(ref.location,ast,initialFormat))}return refs};utils.getLocationOf=(jsonPointer,asyncapiYAMLorJSON,initialFormat)=>{const ast=getAST(asyncapiYAMLorJSON,initialFormat);if(!ast)return{jsonPointer:jsonPointer};return findLocationOf(jsonPointerToArray(jsonPointer),ast,initialFormat)};utils.improveAjvErrors=(errors,asyncapiYAMLorJSON,initialFormat)=>{const ast=getAST(asyncapiYAMLorJSON,initialFormat);return errors.map(error=>{const defaultLocation={jsonPointer:error.dataPath||"/"};const additionalProperty=error.params.additionalProperty;const jsonPointer=additionalProperty?`${error.dataPath}/${additionalProperty}`:error.dataPath;return{title:`${error.dataPath||"/"} ${error.message}`,location:ast?findLocationOf(jsonPointerToArray(jsonPointer),ast,initialFormat):defaultLocation}})};utils.parseUrlVariables=str=>{if(typeof str!=="string")return;return str.match(/{(.+?)}/g)};utils.parseUrlQueryParameters=str=>{if(typeof str!=="string")return;return str.match(/\?((.*=.*)(&?))/g)};utils.getMissingProps=(arr,obj)=>{arr=arr.map(val=>val.replace(/[{}]/g,""));if(!obj)return arr;return arr.filter(val=>{return!obj.hasOwnProperty(val)})};utils.groupValidationErrors=(root,errorMessage,errorElements,asyncapiYAMLorJSON,initialFormat)=>{const errors=[];errorElements.forEach((val,key)=>{if(typeof val==="string")val=utils.untilde(val);const jsonPointer=root?`/${root}/${key}`:`/${key}`;errors.push({title:val?`${utils.untilde(key)} ${errorMessage}: ${val}`:`${utils.untilde(key)} ${errorMessage}`,location:utils.getLocationOf(jsonPointer,asyncapiYAMLorJSON,initialFormat)})});return errors};utils.setNotProvidedParams=(variables,val,key,notProvidedChannelParams,notProvidedParams)=>{const missingChannelParams=utils.getMissingProps(variables,val.parameters);if(missingChannelParams.length){notProvidedParams.set(utils.tilde(key),notProvidedChannelParams?notProvidedChannelParams.concat(missingChannelParams):missingChannelParams)}};utils.getUnknownServers=(parsedJSON,channel)=>{if(!channel)return[];const channelServers=channel.servers;if(!channelServers||channelServers.length===0)return[];const servers=parsedJSON.servers;if(!servers)return channelServers;const serversMap=new Map(Object.entries(servers));return channelServers.filter(serverName=>{return!serversMap.has(serverName)})};utils.getDefaultSchemaFormat=asyncapiVersion=>{return`application/vnd.aai.asyncapi;version=${asyncapiVersion}`}},{"../lib/json-parse":9,"./errors/parser-error":6,"@fmvilas/pseudo-yaml-ast":72,"js-yaml":138,"json-to-ast":169}],43:[function(require,module,exports){"use strict";const $Ref=require("./ref");const Pointer=require("./pointer");const url=require("./util/url");module.exports=bundle;function bundle(parser,options){let inventory=[];crawl(parser,"schema",parser.$refs._root$Ref.path+"#","#",0,inventory,parser.$refs,options);remap(inventory)}function crawl(parent,key,path,pathFromRoot,indirections,inventory,$refs,options){let obj=key===null?parent:parent[key];if(obj&&typeof obj==="object"&&!ArrayBuffer.isView(obj)){if($Ref.isAllowed$Ref(obj)){inventory$Ref(parent,key,path,pathFromRoot,indirections,inventory,$refs,options)}else{let keys=Object.keys(obj).sort((a,b)=>{if(a==="definitions"){return-1}else if(b==="definitions"){return 1}else{return a.length-b.length}});for(let key of keys){let keyPath=Pointer.join(path,key);let keyPathFromRoot=Pointer.join(pathFromRoot,key);let value=obj[key];if($Ref.isAllowed$Ref(value)){inventory$Ref(obj,key,path,keyPathFromRoot,indirections,inventory,$refs,options)}else{crawl(obj,key,keyPath,keyPathFromRoot,indirections,inventory,$refs,options)}}}}}function inventory$Ref($refParent,$refKey,path,pathFromRoot,indirections,inventory,$refs,options){let $ref=$refKey===null?$refParent:$refParent[$refKey];let $refPath=url.resolve(path,$ref.$ref);let pointer=$refs._resolve($refPath,pathFromRoot,options);if(pointer===null){return}let depth=Pointer.parse(pathFromRoot).length;let file=url.stripHash(pointer.path);let hash=url.getHash(pointer.path);let external=file!==$refs._root$Ref.path;let extended=$Ref.isExtended$Ref($ref);indirections+=pointer.indirections;let existingEntry=findInInventory(inventory,$refParent,$refKey);if(existingEntry){if(depth{if(a.file!==b.file){return a.file0){throw new JSONParserErrorGroup(parser)}}}).call(this,{isBuffer:require("../../../is-buffer/index.js")})},{"../../../is-buffer/index.js":137,"./bundle":43,"./dereference":44,"./normalize-args":46,"./parse":48,"./refs":55,"./resolve-external":56,"./util/errors":59,"./util/url":61,"@jsdevtools/ono":75,"call-me-maybe":130}],46:[function(require,module,exports){"use strict";const Options=require("./options");module.exports=normalizeArgs;function normalizeArgs(args){let path,schema,options,callback;args=Array.prototype.slice.call(args);if(typeof args[args.length-1]==="function"){callback=args.pop()}if(typeof args[0]==="string"){path=args[0];if(typeof args[2]==="object"){schema=args[1];options=args[2]}else{schema=undefined;options=args[1]}}else{path="";schema=args[0];options=args[1]}if(!(options instanceof Options)){options=new Options(options)}return{path:path,schema:schema,options:options,callback:callback}}},{"./options":47}],47:[function(require,module,exports){"use strict";const jsonParser=require("./parsers/json");const yamlParser=require("./parsers/yaml");const textParser=require("./parsers/text");const binaryParser=require("./parsers/binary");const fileResolver=require("./resolvers/file");const httpResolver=require("./resolvers/http");module.exports=$RefParserOptions;function $RefParserOptions(options){merge(this,$RefParserOptions.defaults);merge(this,options)}$RefParserOptions.defaults={parse:{json:jsonParser,yaml:yamlParser,text:textParser,binary:binaryParser},resolve:{file:fileResolver,http:httpResolver,external:true},continueOnError:false,dereference:{circular:true}};function merge(target,source){if(isMergeable(source)){let keys=Object.keys(source);for(let i=0;i{let resolvers=plugins.all(options.resolve);resolvers=plugins.filter(resolvers,"canRead",file);plugins.sort(resolvers);plugins.run(resolvers,"read",file,$refs).then(resolve,onError);function onError(err){if(!err&&options.continueOnError){reject(new UnmatchedResolverError(file.url))}else if(!err||!("error"in err)){reject(ono.syntax(`Unable to resolve $ref pointer "${file.url}"`))}else if(err.error instanceof ResolverError){reject(err.error)}else{reject(new ResolverError(err,file.url))}}})}function parseFile(file,options,$refs){return new Promise((resolve,reject)=>{let allParsers=plugins.all(options.parse);let filteredParsers=plugins.filter(allParsers,"canParse",file);let parsers=filteredParsers.length>0?filteredParsers:allParsers;plugins.sort(parsers);plugins.run(parsers,"parse",file,$refs).then(onParsed,onError);function onParsed(parser){if(!parser.plugin.allowEmpty&&isEmpty(parser.result)){reject(ono.syntax(`Error parsing "${file.url}" as ${parser.plugin.name}. \nParsed value is empty`))}else{resolve(parser)}}function onError(err){if(!err&&options.continueOnError){reject(new UnmatchedParserError(file.url))}else if(!err||!("error"in err)){reject(ono.syntax(`Unable to parse ${file.url}`))}else if(err.error instanceof ParserError){reject(err.error)}else{reject(new ParserError(err.error.message,file.url))}}})}function isEmpty(value){return value===undefined||typeof value==="object"&&Object.keys(value).length===0||typeof value==="string"&&value.trim().length===0||Buffer.isBuffer(value)&&value.length===0}}).call(this,{isBuffer:require("../../../is-buffer/index.js")})},{"../../../is-buffer/index.js":137,"./util/errors":59,"./util/plugins":60,"./util/url":61,"@jsdevtools/ono":75}],49:[function(require,module,exports){(function(Buffer){"use strict";let BINARY_REGEXP=/\.(jpeg|jpg|gif|png|bmp|ico)$/i;module.exports={order:400,allowEmpty:true,canParse(file){return Buffer.isBuffer(file.data)&&BINARY_REGEXP.test(file.url)},parse(file){if(Buffer.isBuffer(file.data)){return file.data}else{return Buffer.from(file.data)}}}}).call(this,require("buffer").Buffer)},{buffer:128}],50:[function(require,module,exports){(function(Buffer){"use strict";const{ParserError}=require("../util/errors");module.exports={order:100,allowEmpty:true,canParse:".json",async parse(file){let data=file.data;if(Buffer.isBuffer(data)){data=data.toString()}if(typeof data==="string"){if(data.trim().length===0){return}else{try{return JSON.parse(data)}catch(e){throw new ParserError(e.message,file.url)}}}else{return data}}}}).call(this,{isBuffer:require("../../../../is-buffer/index.js")})},{"../../../../is-buffer/index.js":137,"../util/errors":59}],51:[function(require,module,exports){(function(Buffer){"use strict";const{ParserError}=require("../util/errors");let TEXT_REGEXP=/\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;module.exports={order:300,allowEmpty:true,encoding:"utf8",canParse(file){return(typeof file.data==="string"||Buffer.isBuffer(file.data))&&TEXT_REGEXP.test(file.url)},parse(file){if(typeof file.data==="string"){return file.data}else if(Buffer.isBuffer(file.data)){return file.data.toString(this.encoding)}else{throw new ParserError("data is not text",file.url)}}}}).call(this,{isBuffer:require("../../../../is-buffer/index.js")})},{"../../../../is-buffer/index.js":137,"../util/errors":59}],52:[function(require,module,exports){(function(Buffer){"use strict";const{ParserError}=require("../util/errors");const yaml=require("js-yaml");module.exports={order:200,allowEmpty:true,canParse:[".yaml",".yml",".json"],async parse(file){let data=file.data;if(Buffer.isBuffer(data)){data=data.toString()}if(typeof data==="string"){try{return yaml.safeLoad(data)}catch(e){throw new ParserError(e.message,file.url)}}else{return data}}}}).call(this,{isBuffer:require("../../../../is-buffer/index.js")})},{"../../../../is-buffer/index.js":137,"../util/errors":59,"js-yaml":138}],53:[function(require,module,exports){"use strict";module.exports=Pointer;const $Ref=require("./ref");const url=require("./util/url");const{JSONParserError,InvalidPointerError,MissingPointerError,isHandledError}=require("./util/errors");const slashes=/\//g;const tildes=/~/g;const escapedSlash=/~1/g;const escapedTilde=/~0/g;function Pointer($ref,path,friendlyPath){this.$ref=$ref;this.path=path;this.originalPath=friendlyPath||path;this.value=undefined;this.circular=false;this.indirections=0}Pointer.prototype.resolve=function(obj,options,pathFromRoot){let tokens=Pointer.parse(this.path,this.originalPath);this.value=unwrapOrThrow(obj);for(let i=0;i0};$Ref.isExternal$Ref=function(value){return $Ref.is$Ref(value)&&value.$ref[0]!=="#"};$Ref.isAllowed$Ref=function(value,options){if($Ref.is$Ref(value)){if(value.$ref.substr(0,2)==="#/"||value.$ref==="#"){return true}else if(value.$ref[0]!=="#"&&(!options||options.resolve.external)){return true}}};$Ref.isExtended$Ref=function(value){return $Ref.is$Ref(value)&&Object.keys(value).length>1};$Ref.dereference=function($ref,resolvedValue){if(resolvedValue&&typeof resolvedValue==="object"&&$Ref.isExtended$Ref($ref)){let merged={};for(let key of Object.keys($ref)){if(key!=="$ref"){merged[key]=$ref[key]}}for(let key of Object.keys(resolvedValue)){if(!(key in merged)){merged[key]=resolvedValue[key]}}return merged}else{return resolvedValue}}},{"./pointer":53,"./util/errors":59,"./util/url":61}],55:[function(require,module,exports){"use strict";const{ono}=require("@jsdevtools/ono");const $Ref=require("./ref");const url=require("./util/url");module.exports=$Refs;function $Refs(){this.circular=false;this._$refs={};this._root$Ref=null}$Refs.prototype.paths=function(types){let paths=getPaths(this._$refs,arguments);return paths.map(path=>{return path.decoded})};$Refs.prototype.values=function(types){let $refs=this._$refs;let paths=getPaths($refs,arguments);return paths.reduce((obj,path)=>{obj[path.decoded]=$refs[path.encoded].value;return obj},{})};$Refs.prototype.toJSON=$Refs.prototype.values;$Refs.prototype.exists=function(path,options){try{this._resolve(path,"",options);return true}catch(e){return false}};$Refs.prototype.get=function(path,options){return this._resolve(path,"",options).value};$Refs.prototype.set=function(path,value){let absPath=url.resolve(this._root$Ref.path,path);let withoutHash=url.stripHash(absPath);let $ref=this._$refs[withoutHash];if(!$ref){throw ono(`Error resolving $ref pointer "${path}". \n"${withoutHash}" not found.`)}$ref.set(absPath,value)};$Refs.prototype._add=function(path){let withoutHash=url.stripHash(path);let $ref=new $Ref;$ref.path=withoutHash;$ref.$refs=this;this._$refs[withoutHash]=$ref;this._root$Ref=this._root$Ref||$ref;return $ref};$Refs.prototype._resolve=function(path,pathFromRoot,options){let absPath=url.resolve(this._root$Ref.path,path);let withoutHash=url.stripHash(absPath);let $ref=this._$refs[withoutHash];if(!$ref){throw ono(`Error resolving $ref pointer "${path}". \n"${withoutHash}" not found.`)}return $ref.resolve(absPath,options,path,pathFromRoot)};$Refs.prototype._get$Ref=function(path){path=url.resolve(this._root$Ref.path,path);let withoutHash=url.stripHash(path);return this._$refs[withoutHash]};function getPaths($refs,types){let paths=Object.keys($refs);types=Array.isArray(types[0])?types[0]:Array.prototype.slice.call(types);if(types.length>0&&types[0]){paths=paths.filter(key=>{return types.indexOf($refs[key].pathType)!==-1})}return paths.map(path=>{return{encoded:path,decoded:$refs[path].pathType==="file"?url.toFileSystemPath(path,true):path}})}},{"./ref":54,"./util/url":61,"@jsdevtools/ono":75}],56:[function(require,module,exports){"use strict";const $Ref=require("./ref");const Pointer=require("./pointer");const parse=require("./parse");const url=require("./util/url");const{isHandledError}=require("./util/errors");module.exports=resolveExternal;function resolveExternal(parser,options){if(!options.resolve.external){return Promise.resolve()}try{let promises=crawl(parser.schema,parser.$refs._root$Ref.path+"#",parser.$refs,options);return Promise.all(promises)}catch(e){return Promise.reject(e)}}function crawl(obj,path,$refs,options){let promises=[];if(obj&&typeof obj==="object"&&!ArrayBuffer.isView(obj)){if($Ref.isExternal$Ref(obj)){promises.push(resolve$Ref(obj,path,$refs,options))}else{for(let key of Object.keys(obj)){let keyPath=Pointer.join(path,key);let value=obj[key];if($Ref.isExternal$Ref(value)){promises.push(resolve$Ref(value,keyPath,$refs,options))}else{promises=promises.concat(crawl(value,keyPath,$refs,options))}}}}return promises}async function resolve$Ref($ref,path,$refs,options){let resolvedPath=url.resolve(path,$ref.$ref);let withoutHash=url.stripHash(resolvedPath);$ref=$refs._$refs[withoutHash];if($ref){return Promise.resolve($ref.value)}try{const result=await parse(resolvedPath,$refs,options);let promises=crawl(result,withoutHash+"#",$refs,options);return Promise.all(promises)}catch(err){if(!options.continueOnError||!isHandledError(err)){throw err}if($refs._$refs[withoutHash]){err.source=url.stripHash(path);err.path=url.safePointerToPath(url.getHash(path))}return[]}}},{"./parse":48,"./pointer":53,"./ref":54,"./util/errors":59,"./util/url":61}],57:[function(require,module,exports){"use strict";const fs=require("fs");const{ono}=require("@jsdevtools/ono");const url=require("../util/url");const{ResolverError}=require("../util/errors");module.exports={order:100,canRead(file){return url.isFileSystemPath(file.url)},read(file){return new Promise((resolve,reject)=>{let path;try{path=url.toFileSystemPath(file.url)}catch(err){reject(new ResolverError(ono.uri(err,`Malformed URI: ${file.url}`),file.url))}try{fs.readFile(path,(err,data)=>{if(err){reject(new ResolverError(ono(err,`Error opening file "${path}"`),path))}else{resolve(data)}})}catch(err){reject(new ResolverError(ono(err,`Error opening file "${path}"`),path))}})}}},{"../util/errors":59,"../util/url":61,"@jsdevtools/ono":75,fs:126}],58:[function(require,module,exports){(function(process,Buffer){"use strict";const http=require("http");const https=require("https");const{ono}=require("@jsdevtools/ono");const url=require("../util/url");const{ResolverError}=require("../util/errors");module.exports={order:200,headers:null,timeout:5e3,redirects:5,withCredentials:false,canRead(file){return url.isHttp(file.url)},read(file){let u=url.parse(file.url);if(process.browser&&!u.protocol){u.protocol=url.parse(location.href).protocol}return download(u,this)}};function download(u,httpOptions,redirects){return new Promise((resolve,reject)=>{u=url.parse(u);redirects=redirects||[];redirects.push(u.href);get(u,httpOptions).then(res=>{if(res.statusCode>=400){throw ono({status:res.statusCode},`HTTP ERROR ${res.statusCode}`)}else if(res.statusCode>=300){if(redirects.length>httpOptions.redirects){reject(new ResolverError(ono({status:res.statusCode},`Error downloading ${redirects[0]}. \nToo many redirects: \n ${redirects.join(" \n ")}`)))}else if(!res.headers.location){throw ono({status:res.statusCode},`HTTP ${res.statusCode} redirect with no location header`)}else{let redirectTo=url.resolve(u,res.headers.location);download(redirectTo,httpOptions,redirects).then(resolve,reject)}}else{resolve(res.body||Buffer.alloc(0))}}).catch(err=>{reject(new ResolverError(ono(err,`Error downloading ${u.href}`),u.href))})})}function get(u,httpOptions){return new Promise((resolve,reject)=>{let protocol=u.protocol==="https:"?https:http;let req=protocol.get({hostname:u.hostname,port:u.port,path:u.path,auth:u.auth,protocol:u.protocol,headers:httpOptions.headers||{},withCredentials:httpOptions.withCredentials});if(typeof req.setTimeout==="function"){req.setTimeout(httpOptions.timeout)}req.on("timeout",()=>{req.abort()});req.on("error",reject);req.once("response",res=>{res.body=Buffer.alloc(0);res.on("data",data=>{res.body=Buffer.concat([res.body,Buffer.from(data)])});res.on("error",reject);res.on("end",()=>{resolve(res)})})})}}).call(this,require("_process"),require("buffer").Buffer)},{"../util/errors":59,"../util/url":61,"@jsdevtools/ono":75,_process:172,buffer:128,http:177,https:134}],59:[function(require,module,exports){"use strict";const{Ono}=require("@jsdevtools/ono");const{stripHash,toFileSystemPath}=require("./url");const JSONParserError=exports.JSONParserError=class JSONParserError extends Error{constructor(message,source){super();this.code="EUNKNOWN";this.message=message;this.source=source;this.path=null;Ono.extend(this)}};setErrorName(JSONParserError);const JSONParserErrorGroup=exports.JSONParserErrorGroup=class JSONParserErrorGroup extends Error{constructor(parser){super();this.files=parser;this.message=`${this.errors.length} error${this.errors.length>1?"s":""} occurred while reading '${toFileSystemPath(parser.$refs._root$Ref.path)}'`;Ono.extend(this)}static getParserErrors(parser){const errors=[];for(const $ref of Object.values(parser.$refs._$refs)){if($ref.errors){errors.push(...$ref.errors)}}return errors}get errors(){return JSONParserErrorGroup.getParserErrors(this.files)}};setErrorName(JSONParserErrorGroup);const ParserError=exports.ParserError=class ParserError extends JSONParserError{constructor(message,source){super(`Error parsing ${source}: ${message}`,source);this.code="EPARSER"}};setErrorName(ParserError);const UnmatchedParserError=exports.UnmatchedParserError=class UnmatchedParserError extends JSONParserError{constructor(source){super(`Could not find parser for "${source}"`,source);this.code="EUNMATCHEDPARSER"}};setErrorName(UnmatchedParserError);const ResolverError=exports.ResolverError=class ResolverError extends JSONParserError{constructor(ex,source){super(ex.message||`Error reading file "${source}"`,source);this.code="ERESOLVER";if("code"in ex){this.ioErrorCode=String(ex.code)}}};setErrorName(ResolverError);const UnmatchedResolverError=exports.UnmatchedResolverError=class UnmatchedResolverError extends JSONParserError{constructor(source){super(`Could not find resolver for "${source}"`,source);this.code="EUNMATCHEDRESOLVER"}};setErrorName(UnmatchedResolverError);const MissingPointerError=exports.MissingPointerError=class MissingPointerError extends JSONParserError{constructor(token,path){super(`Token "${token}" does not exist.`,stripHash(path));this.code="EMISSINGPOINTER"}};setErrorName(MissingPointerError);const InvalidPointerError=exports.InvalidPointerError=class InvalidPointerError extends JSONParserError{constructor(pointer,path){super(`Invalid $ref pointer "${pointer}". Pointers must begin with "#/"`,stripHash(path));this.code="EINVALIDPOINTER"}};setErrorName(InvalidPointerError);function setErrorName(err){Object.defineProperty(err.prototype,"name",{value:err.name,enumerable:true})}exports.isHandledError=function(err){return err instanceof JSONParserError||err instanceof JSONParserErrorGroup};exports.normalizeError=function(err){if(err.path===null){err.path=[]}return err}},{"./url":61,"@jsdevtools/ono":75}],60:[function(require,module,exports){"use strict";exports.all=function(plugins){return Object.keys(plugins).filter(key=>{return typeof plugins[key]==="object"}).map(key=>{plugins[key].name=key;return plugins[key]})};exports.filter=function(plugins,method,file){return plugins.filter(plugin=>{return!!getResult(plugin,method,file)})};exports.sort=function(plugins){for(let plugin of plugins){plugin.order=plugin.order||Number.MAX_SAFE_INTEGER}return plugins.sort((a,b)=>{return a.order-b.order})};exports.run=function(plugins,method,file,$refs){let plugin,lastError,index=0;return new Promise((resolve,reject)=>{runNextPlugin();function runNextPlugin(){plugin=plugins[index++];if(!plugin){return reject(lastError)}try{let result=getResult(plugin,method,file,callback,$refs);if(result&&typeof result.then==="function"){result.then(onSuccess,onError)}else if(result!==undefined){onSuccess(result)}else if(index===plugins.length){throw new Error("No promise has been returned or callback has been called.")}}catch(e){onError(e)}}function callback(err,result){if(err){onError(err)}else{onSuccess(result)}}function onSuccess(result){resolve({plugin:plugin,result:result})}function onError(error){lastError={plugin:plugin,error:error};runNextPlugin()}})};function getResult(obj,prop,file,callback,$refs){let value=obj[prop];if(typeof value==="function"){return value.apply(obj,[file,callback,$refs])}if(!callback){if(value instanceof RegExp){return value.test(file.url)}else if(typeof value==="string"){return value===file.extension}else if(Array.isArray(value)){return value.indexOf(file.extension)!==-1}}return value}},{}],61:[function(require,module,exports){(function(process){"use strict";let isWindows=/^win/.test(process.platform),forwardSlashPattern=/\//g,protocolPattern=/^(\w{2,}):\/\//i,url=module.exports,jsonPointerSlash=/~1/g,jsonPointerTilde=/~0/g;let urlEncodePatterns=[/\?/g,"%3F",/\#/g,"%23"];let urlDecodePatterns=[/\%23/g,"#",/\%24/g,"$",/\%26/g,"&",/\%2C/g,",",/\%40/g,"@"];exports.parse=require("url").parse;exports.resolve=require("url").resolve;exports.cwd=function cwd(){if(process.browser){return location.href}let path=process.cwd();let lastChar=path.slice(-1);if(lastChar==="/"||lastChar==="\\"){return path}else{return path+"/"}};exports.getProtocol=function getProtocol(path){let match=protocolPattern.exec(path);if(match){return match[1].toLowerCase()}};exports.getExtension=function getExtension(path){let lastDot=path.lastIndexOf(".");if(lastDot>=0){return path.substr(lastDot).toLowerCase()}return""};exports.getHash=function getHash(path){let hashIndex=path.indexOf("#");if(hashIndex>=0){return path.substr(hashIndex)}return"#"};exports.stripHash=function stripHash(path){let hashIndex=path.indexOf("#");if(hashIndex>=0){path=path.substr(0,hashIndex)}return path};exports.isHttp=function isHttp(path){let protocol=url.getProtocol(path);if(protocol==="http"||protocol==="https"){return true}else if(protocol===undefined){return process.browser}else{return false}};exports.isFileSystemPath=function isFileSystemPath(path){if(process.browser){return false}let protocol=url.getProtocol(path);return protocol===undefined||protocol==="file"};exports.fromFileSystemPath=function fromFileSystemPath(path){if(isWindows){path=path.replace(/\\/g,"/")}path=encodeURI(path);for(let i=0;i{return decodeURIComponent(value).replace(jsonPointerSlash,"/").replace(jsonPointerTilde,"~")})}}).call(this,require("_process"))},{_process:172,url:199}],62:[function(require,module,exports){module.exports={"1.0.0":require("./schemas/1.0.0.json"),"1.1.0":require("./schemas/1.1.0.json"),"1.2.0":require("./schemas/1.2.0.json"),"2.0.0-rc1":require("./schemas/2.0.0-rc1.json"),"2.0.0-rc2":require("./schemas/2.0.0-rc2.json"),"2.0.0":require("./schemas/2.0.0.json"),"2.1.0":require("./schemas/2.1.0.json"),"2.2.0":require("./schemas/2.2.0.json"),"2.3.0":require("./schemas/2.3.0.json")}},{"./schemas/1.0.0.json":63,"./schemas/1.1.0.json":64,"./schemas/1.2.0.json":65,"./schemas/2.0.0-rc1.json":66,"./schemas/2.0.0-rc2.json":67,"./schemas/2.0.0.json":68,"./schemas/2.1.0.json":69,"./schemas/2.2.0.json":70,"./schemas/2.3.0.json":71}],63:[function(require,module,exports){module.exports={title:"AsyncAPI 1.0 schema.",id:"http://asyncapi.hitchhq.com/v1/schema.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["asyncapi","info","topics"],additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{asyncapi:{type:"string",enum:["1.0.0"],description:"The AsyncAPI specification version of this document."},info:{$ref:"#/definitions/info"},baseTopic:{type:"string",pattern:"^[^/.]",description:"The base topic to the API. Example: 'hitch'.",default:""},servers:{type:"array",items:{$ref:"#/definitions/server"},uniqueItems:true},topics:{$ref:"#/definitions/topics"},components:{$ref:"#/definitions/components"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{Reference:{type:"object",required:["$ref"],properties:{$ref:{type:"string",format:"uri"}}},info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. CommonMark is allowed."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. MUST be in the format of a URL.",format:"uri"},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:false,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},license:{type:"object",required:["name"],additionalProperties:false,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},server:{type:"object",description:"An object representing a Server.",required:["url","scheme"],additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{url:{type:"string"},description:{type:"string"},scheme:{type:"string",description:"The transfer protocol.",enum:["kafka","kafka-secure","amqp","amqps","mqtt","mqtts","secure-mqtt","ws","wss","stomp","stomps"]},schemeVersion:{type:"string"},variables:{$ref:"#/definitions/serverVariables"}}},serverVariables:{type:"object",additionalProperties:{$ref:"#/definitions/serverVariable"}},serverVariable:{type:"object",description:"An object representing a Server Variable for server URL template substitution.",minProperties:1,additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{enum:{type:"array",items:{type:"string"},uniqueItems:true},default:{type:"string"},description:{type:"string"}}},topics:{type:"object",description:"Relative paths to the individual topics. They must be relative to the 'baseTopic'.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^[^.]":{$ref:"#/definitions/topicItem"}},additionalProperties:false},components:{type:"object",description:"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.",additionalProperties:false,properties:{schemas:{$ref:"#/definitions/schemas"},messages:{$ref:"#/definitions/messages"},securitySchemes:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}}}},schemas:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"JSON objects describing schemas the API uses."},messages:{type:"object",additionalProperties:{$ref:"#/definitions/message"},description:"JSON objects describing the messages being consumed and produced by the API."},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:false},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:false},xml:{type:"object",additionalProperties:false,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean",default:false},wrapped:{type:"boolean",default:false}}},externalDocs:{type:"object",additionalProperties:false,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},topicItem:{type:"object",additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},minProperties:1,properties:{$ref:{type:"string"},publish:{$ref:"#/definitions/message"},subscribe:{$ref:"#/definitions/message"},deprecated:{type:"boolean",default:false}}},message:{type:"object",additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},headers:{$ref:"#/definitions/schema"},payload:{$ref:"#/definitions/schema"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},summary:{type:"string",description:"A brief summary of the message."},description:{type:"string",description:"A longer description of the message. CommonMark is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false},example:{}}},vendorExtension:{description:"Any property starting with x- is valid.",additionalProperties:true,additionalItems:true},tag:{type:"object",additionalProperties:false,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},SecurityScheme:{oneOf:[{$ref:"#/definitions/userPassword"},{$ref:"#/definitions/apiKey"},{$ref:"#/definitions/X509"},{$ref:"#/definitions/symmetricEncryption"},{$ref:"#/definitions/asymmetricEncryption"},{$ref:"#/definitions/HTTPSecurityScheme"}]},userPassword:{type:"object",required:["type"],properties:{type:{type:"string",enum:["userPassword"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},apiKey:{type:"object",required:["type","in"],properties:{type:{type:"string",enum:["apiKey"]},in:{type:"string",enum:["user","password"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},X509:{type:"object",required:["type"],properties:{type:{type:"string",enum:["X509"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},symmetricEncryption:{type:"object",required:["type"],properties:{type:{type:"string",enum:["symmetricEncryption"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},asymmetricEncryption:{type:"object",required:["type"],properties:{type:{type:"string",enum:["asymmetricEncryption"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},HTTPSecurityScheme:{oneOf:[{$ref:"#/definitions/NonBearerHTTPSecurityScheme"},{$ref:"#/definitions/BearerHTTPSecurityScheme"},{$ref:"#/definitions/APIKeyHTTPSecurityScheme"}]},NonBearerHTTPSecurityScheme:{not:{type:"object",properties:{scheme:{type:"string",enum:["bearer"]}}},type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-":{}},additionalProperties:false},BearerHTTPSecurityScheme:{type:"object",required:["type","scheme"],properties:{scheme:{type:"string",enum:["bearer"]},bearerFormat:{type:"string"},type:{type:"string",enum:["http"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},APIKeyHTTPSecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["httpApiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"}}}},{}],64:[function(require,module,exports){module.exports={title:"AsyncAPI 1.1.0 schema.",id:"http://asyncapi.hitchhq.com/v1/schema.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["asyncapi","info","topics"],additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{asyncapi:{type:"string",enum:["1.0.0","1.1.0"],description:"The AsyncAPI specification version of this document."},info:{$ref:"#/definitions/info"},baseTopic:{type:"string",pattern:"^[^/.]",description:"The base topic to the API. Example: 'hitch'.",default:""},servers:{type:"array",items:{$ref:"#/definitions/server"},uniqueItems:true},topics:{$ref:"#/definitions/topics"},components:{$ref:"#/definitions/components"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{Reference:{type:"object",required:["$ref"],properties:{$ref:{type:"string",format:"uri"}}},info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. CommonMark is allowed."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. MUST be in the format of a URL.",format:"uri"},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:false,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},license:{type:"object",required:["name"],additionalProperties:false,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},server:{type:"object",description:"An object representing a Server.",required:["url","scheme"],additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{url:{type:"string"},description:{type:"string"},scheme:{type:"string",description:"The transfer protocol.",enum:["kafka","kafka-secure","amqp","amqps","mqtt","mqtts","secure-mqtt","ws","wss","stomp","stomps","jms"]},schemeVersion:{type:"string"},variables:{$ref:"#/definitions/serverVariables"}}},serverVariables:{type:"object",additionalProperties:{$ref:"#/definitions/serverVariable"}},serverVariable:{type:"object",description:"An object representing a Server Variable for server URL template substitution.",minProperties:1,additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{enum:{type:"array",items:{type:"string"},uniqueItems:true},default:{type:"string"},description:{type:"string"}}},topics:{type:"object",description:"Relative paths to the individual topics. They must be relative to the 'baseTopic'.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^[^.]":{$ref:"#/definitions/topicItem"}},additionalProperties:false},components:{type:"object",description:"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.",additionalProperties:false,properties:{schemas:{$ref:"#/definitions/schemas"},messages:{$ref:"#/definitions/messages"},securitySchemes:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}}}},schemas:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"JSON objects describing schemas the API uses."},messages:{type:"object",additionalProperties:{$ref:"#/definitions/message"},description:"JSON objects describing the messages being consumed and produced by the API."},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},oneOf:{type:"array",minItems:2,items:{$ref:"#/definitions/schema"}},anyOf:{type:"array",minItems:2,items:{$ref:"#/definitions/schema"}},not:{$ref:"#/definitions/schema"},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:false},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:false},xml:{type:"object",additionalProperties:false,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean",default:false},wrapped:{type:"boolean",default:false}}},externalDocs:{type:"object",additionalProperties:false,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},topicItem:{type:"object",additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},minProperties:1,properties:{$ref:{type:"string"},parameters:{type:"array",uniqueItems:true,minItems:1,items:{$ref:"#/definitions/parameter"}},publish:{$ref:"#/definitions/operation"},subscribe:{$ref:"#/definitions/operation"},deprecated:{type:"boolean",default:false}}},parameter:{additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},schema:{$ref:"#/definitions/schema"}}},operation:{oneOf:[{$ref:"#/definitions/message"},{type:"object",required:["oneOf"],additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{oneOf:{type:"array",minItems:2,items:{$ref:"#/definitions/message"}}}}]},message:{type:"object",additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},headers:{$ref:"#/definitions/schema"},payload:{$ref:"#/definitions/schema"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},summary:{type:"string",description:"A brief summary of the message."},description:{type:"string",description:"A longer description of the message. CommonMark is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false},example:{}}},vendorExtension:{description:"Any property starting with x- is valid.",additionalProperties:true,additionalItems:true},tag:{type:"object",additionalProperties:false,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},SecurityScheme:{oneOf:[{$ref:"#/definitions/userPassword"},{$ref:"#/definitions/apiKey"},{$ref:"#/definitions/X509"},{$ref:"#/definitions/symmetricEncryption"},{$ref:"#/definitions/asymmetricEncryption"},{$ref:"#/definitions/HTTPSecurityScheme"}]},userPassword:{type:"object",required:["type"],properties:{type:{type:"string",enum:["userPassword"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},apiKey:{type:"object",required:["type","in"],properties:{type:{type:"string",enum:["apiKey"]},in:{type:"string",enum:["user","password"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},X509:{type:"object",required:["type"],properties:{type:{type:"string",enum:["X509"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},symmetricEncryption:{type:"object",required:["type"],properties:{type:{type:"string",enum:["symmetricEncryption"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},asymmetricEncryption:{type:"object",required:["type"],properties:{type:{type:"string",enum:["asymmetricEncryption"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},HTTPSecurityScheme:{oneOf:[{$ref:"#/definitions/NonBearerHTTPSecurityScheme"},{$ref:"#/definitions/BearerHTTPSecurityScheme"},{$ref:"#/definitions/APIKeyHTTPSecurityScheme"}]},NonBearerHTTPSecurityScheme:{not:{type:"object",properties:{scheme:{type:"string",enum:["bearer"]}}},type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-":{}},additionalProperties:false},BearerHTTPSecurityScheme:{type:"object",required:["type","scheme"],properties:{scheme:{type:"string",enum:["bearer"]},bearerFormat:{type:"string"},type:{type:"string",enum:["http"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},APIKeyHTTPSecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["httpApiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"}}}},{}],65:[function(require,module,exports){module.exports={title:"AsyncAPI 1.2.0 schema.",id:"http://asyncapi.hitchhq.com/v1/schema.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["asyncapi","info"],oneOf:[{required:["topics"]},{required:["stream"]},{required:["events"]}],additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{asyncapi:{type:"string",enum:["1.0.0","1.1.0","1.2.0"],description:"The AsyncAPI specification version of this document."},info:{$ref:"#/definitions/info"},baseTopic:{type:"string",pattern:"^[^/.]",description:"The base topic to the API. Example: 'hitch'.",default:""},servers:{type:"array",items:{$ref:"#/definitions/server"},uniqueItems:true},topics:{$ref:"#/definitions/topics"},stream:{$ref:"#/definitions/stream",description:"The list of messages a consumer can read or write from/to a streaming API."},events:{$ref:"#/definitions/events",description:"The list of messages an events API sends and/or receives."},components:{$ref:"#/definitions/components"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{Reference:{type:"object",required:["$ref"],properties:{$ref:{type:"string",format:"uri"}}},info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. CommonMark is allowed."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. MUST be in the format of a URL.",format:"uri"},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:false,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},license:{type:"object",required:["name"],additionalProperties:false,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},server:{type:"object",description:"An object representing a Server.",required:["url","scheme"],additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{url:{type:"string"},description:{type:"string"},scheme:{type:"string",description:"The transfer protocol.",enum:["kafka","kafka-secure","amqp","amqps","mqtt","mqtts","secure-mqtt","ws","wss","stomp","stomps","jms","http","https"]},schemeVersion:{type:"string"},variables:{$ref:"#/definitions/serverVariables"}}},serverVariables:{type:"object",additionalProperties:{$ref:"#/definitions/serverVariable"}},serverVariable:{type:"object",description:"An object representing a Server Variable for server URL template substitution.",minProperties:1,additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{enum:{type:"array",items:{type:"string"},uniqueItems:true},default:{type:"string"},description:{type:"string"}}},topics:{type:"object",description:"Relative paths to the individual topics. They must be relative to the 'baseTopic'.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^[^.]":{$ref:"#/definitions/topicItem"}},additionalProperties:false},components:{type:"object",description:"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.",additionalProperties:false,properties:{schemas:{$ref:"#/definitions/schemas"},messages:{$ref:"#/definitions/messages"},securitySchemes:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}},parameters:{$ref:"#/definitions/parameters"}}},schemas:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"JSON objects describing schemas the API uses."},messages:{type:"object",additionalProperties:{$ref:"#/definitions/message"},description:"JSON objects describing the messages being consumed and produced by the API."},parameters:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"JSON objects describing re-usable topic parameters."},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},oneOf:{type:"array",minItems:2,items:{$ref:"#/definitions/schema"}},anyOf:{type:"array",minItems:2,items:{$ref:"#/definitions/schema"}},not:{$ref:"#/definitions/schema"},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:false},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:false},xml:{type:"object",additionalProperties:false,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean",default:false},wrapped:{type:"boolean",default:false}}},externalDocs:{type:"object",additionalProperties:false,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},topicItem:{type:"object",additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},minProperties:1,properties:{$ref:{type:"string"},parameters:{type:"array",uniqueItems:true,minItems:1,items:{$ref:"#/definitions/parameter"}},publish:{$ref:"#/definitions/operation"},subscribe:{$ref:"#/definitions/operation"},deprecated:{type:"boolean",default:false}}},parameter:{additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},schema:{$ref:"#/definitions/schema"},$ref:{type:"string"}}},operation:{oneOf:[{$ref:"#/definitions/message"},{type:"object",required:["oneOf"],additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{oneOf:{type:"array",minItems:2,items:{$ref:"#/definitions/message"}}}}]},stream:{title:"Stream Object",type:"object",additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},minProperties:1,properties:{framing:{title:"Stream Framing Object",type:"object",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},minProperties:1,oneOf:[{additionalProperties:false,properties:{type:{type:"string",enum:["chunked"]},delimiter:{type:"string",enum:["\\r\\n","\\n"],default:"\\r\\n"}}},{additionalProperties:false,properties:{type:{type:"string",enum:["sse"]},delimiter:{type:"string",enum:["\\n\\n"],default:"\\n\\n"}}}]},read:{title:"Stream Read Object",type:"array",uniqueItems:true,minItems:1,items:{$ref:"#/definitions/message"}},write:{title:"Stream Write Object",type:"array",uniqueItems:true,minItems:1,items:{$ref:"#/definitions/message"}}}},events:{title:"Events Object",type:"object",additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},minProperties:1,anyOf:[{required:["receive"]},{required:["send"]}],properties:{receive:{title:"Events Receive Object",type:"array",uniqueItems:true,minItems:1,items:{$ref:"#/definitions/message"}},send:{title:"Events Send Object",type:"array",uniqueItems:true,minItems:1,items:{$ref:"#/definitions/message"}}}},message:{type:"object",additionalProperties:false,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},headers:{$ref:"#/definitions/schema"},payload:{$ref:"#/definitions/schema"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},summary:{type:"string",description:"A brief summary of the message."},description:{type:"string",description:"A longer description of the message. CommonMark is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false},example:{}}},vendorExtension:{description:"Any property starting with x- is valid.",additionalProperties:true,additionalItems:true},tag:{type:"object",additionalProperties:false,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},SecurityScheme:{oneOf:[{$ref:"#/definitions/userPassword"},{$ref:"#/definitions/apiKey"},{$ref:"#/definitions/X509"},{$ref:"#/definitions/symmetricEncryption"},{$ref:"#/definitions/asymmetricEncryption"},{$ref:"#/definitions/HTTPSecurityScheme"}]},userPassword:{type:"object",required:["type"],properties:{type:{type:"string",enum:["userPassword"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},apiKey:{type:"object",required:["type","in"],properties:{type:{type:"string",enum:["apiKey"]},in:{type:"string",enum:["user","password"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},X509:{type:"object",required:["type"],properties:{type:{type:"string",enum:["X509"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},symmetricEncryption:{type:"object",required:["type"],properties:{type:{type:"string",enum:["symmetricEncryption"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},asymmetricEncryption:{type:"object",required:["type"],properties:{type:{type:"string",enum:["asymmetricEncryption"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},HTTPSecurityScheme:{oneOf:[{$ref:"#/definitions/NonBearerHTTPSecurityScheme"},{$ref:"#/definitions/BearerHTTPSecurityScheme"},{$ref:"#/definitions/APIKeyHTTPSecurityScheme"}]},NonBearerHTTPSecurityScheme:{not:{type:"object",properties:{scheme:{type:"string",enum:["bearer"]}}},type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-":{}},additionalProperties:false},BearerHTTPSecurityScheme:{type:"object",required:["type","scheme"],properties:{scheme:{type:"string",enum:["bearer"]},bearerFormat:{type:"string"},type:{type:"string",enum:["http"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},APIKeyHTTPSecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["httpApiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:false},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"}}}},{}],66:[function(require,module,exports){module.exports={title:"AsyncAPI 2.0.0-rc1 schema.",$schema:"http://json-schema.org/draft-07/schema#",type:"object",required:["asyncapi","id","info","channels"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{asyncapi:{type:"string",enum:["2.0.0-rc1"],description:"The AsyncAPI specification version of this document."},id:{type:"string",description:"A unique id representing the application.",format:"uri-reference"},info:{$ref:"#/definitions/info"},servers:{type:"array",items:{$ref:"#/definitions/server"},uniqueItems:true},defaultContentType:{type:"string"},channels:{$ref:"#/definitions/channels"},components:{$ref:"#/definitions/components"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{Reference:{type:"object",required:["$ref"],properties:{$ref:{$ref:"#/definitions/ReferenceObject"}}},ReferenceObject:{type:"string",format:"uri"},info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. CommonMark is allowed."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. MUST be in the format of a URL.",format:"uri"},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:false,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},license:{type:"object",required:["name"],additionalProperties:false,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},server:{type:"object",description:"An object representing a Server.",required:["url","protocol"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{url:{type:"string"},description:{type:"string"},protocol:{type:"string",description:"The transfer protocol."},protocolVersion:{type:"string"},variables:{$ref:"#/definitions/serverVariables"},baseChannel:{type:"string","x-format":"uri-path"},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}}}},serverVariables:{type:"object",additionalProperties:{$ref:"#/definitions/serverVariable"}},serverVariable:{type:"object",description:"An object representing a Server Variable for server URL template substitution.",minProperties:1,additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{enum:{type:"array",items:{type:"string"},uniqueItems:true},default:{type:"string"},description:{type:"string"},examples:{type:"array",items:{type:"string"}}}},channels:{type:"object",propertyNames:{type:"string",format:"uri-template",minLength:1},additionalProperties:{$ref:"#/definitions/channelItem"}},components:{type:"object",description:"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.",additionalProperties:false,properties:{schemas:{$ref:"#/definitions/schemas"},messages:{$ref:"#/definitions/messages"},securitySchemes:{type:"object",patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}},parameters:{$ref:"#/definitions/parameters"},correlationIds:{type:"object",patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/correlationId"}]}}},traits:{$ref:"#/definitions/traits"}}},schemas:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"JSON objects describing schemas the API uses."},messages:{type:"object",additionalProperties:{$ref:"#/definitions/message"},description:"JSON objects describing the messages being consumed and produced by the API."},parameters:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"JSON objects describing re-usable channel parameters."},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{$ref:{$ref:"#/definitions/ReferenceObject"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},deprecated:{type:"boolean",default:false},additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},oneOf:{type:"array",minItems:2,items:{$ref:"#/definitions/schema"}},anyOf:{type:"array",minItems:2,items:{$ref:"#/definitions/schema"}},not:{$ref:"#/definitions/schema"},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:false},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{},examples:{type:"array",items:{}}},additionalProperties:false},xml:{type:"object",additionalProperties:false,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean",default:false},wrapped:{type:"boolean",default:false}}},externalDocs:{type:"object",additionalProperties:false,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},channelItem:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},minProperties:1,properties:{$ref:{$ref:"#/definitions/ReferenceObject"},parameters:{type:"array",uniqueItems:true,minItems:1,items:{$ref:"#/definitions/parameter"}},publish:{$ref:"#/definitions/operation"},subscribe:{$ref:"#/definitions/operation"},deprecated:{type:"boolean",default:false},protocolInfo:{type:"object",additionalProperties:{type:"object"}}}},parameter:{additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},schema:{$ref:"#/definitions/schema"},$ref:{$ref:"#/definitions/ReferenceObject"}}},operation:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{traits:{type:"array",items:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/operationTrait"},{type:"array",items:[{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/operationTrait"}]},{type:"object",additionalItems:true}]}]}},summary:{type:"string"},description:{type:"string"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string"},protocolInfo:{type:"object",additionalProperties:{type:"object"}},message:{oneOf:[{$ref:"#/definitions/message"},{type:"object",required:["oneOf"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{oneOf:{type:"array",minItems:2,items:{$ref:"#/definitions/message"}}}}]}}},message:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{schemaFormat:{type:"string"},contentType:{type:"string"},headers:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/schema"}]}},payload:{},correlationId:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/correlationId"}]},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},summary:{type:"string",description:"A brief summary of the message."},name:{type:"string",description:"Name of the message."},title:{type:"string",description:"A human-friendly title for the message."},description:{type:"string",description:"A longer description of the message. CommonMark is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false},examples:{type:"array",items:{type:"object"}},protocolInfo:{type:"object",additionalProperties:{type:"object"}},traits:{type:"array",items:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/messageTrait"},{type:"array",items:[{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/messageTrait"}]},{type:"object",additionalItems:true}]}]}}}},correlationId:{type:"object",required:["location"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{description:{type:"string",description:"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},location:{type:"string",description:"A runtime expression that specifies the location of the correlation ID",pattern:"^\\$message\\.(header|payload)#(/\\w+)+"}}},specificationExtension:{description:"Any property starting with x- is valid.",additionalProperties:true,additionalItems:true},tag:{type:"object",additionalProperties:false,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},traits:{type:"object",additionalProperties:{anyOf:[{$ref:"#/definitions/operationTrait"},{$ref:"#/definitions/messageTrait"}]}},operationTrait:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{summary:{type:"string"},description:{type:"string"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string"},protocolInfo:{type:"object",additionalProperties:{type:"object"}}}},messageTrait:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{schemaFormat:{type:"string"},contentType:{type:"string"},headers:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/schema"}]}},correlationId:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/correlationId"}]},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},summary:{type:"string",description:"A brief summary of the message."},name:{type:"string",description:"Name of the message."},title:{type:"string",description:"A human-friendly title for the message."},description:{type:"string",description:"A longer description of the message. CommonMark is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false},examples:{type:"array",items:{type:"object"}},protocolInfo:{type:"object",additionalProperties:{type:"object"}}}},SecurityScheme:{oneOf:[{$ref:"#/definitions/userPassword"},{$ref:"#/definitions/apiKey"},{$ref:"#/definitions/X509"},{$ref:"#/definitions/symmetricEncryption"},{$ref:"#/definitions/asymmetricEncryption"},{$ref:"#/definitions/HTTPSecurityScheme"},{$ref:"#/definitions/oauth2Flows"},{$ref:"#/definitions/openIdConnect"}]},userPassword:{type:"object",required:["type"],properties:{type:{type:"string",enum:["userPassword"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},apiKey:{type:"object",required:["type","in"],properties:{type:{type:"string",enum:["apiKey"]},in:{type:"string",enum:["user","password"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},X509:{type:"object",required:["type"],properties:{type:{type:"string",enum:["X509"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},symmetricEncryption:{type:"object",required:["type"],properties:{type:{type:"string",enum:["symmetricEncryption"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},asymmetricEncryption:{type:"object",required:["type"],properties:{type:{type:"string",enum:["asymmetricEncryption"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},HTTPSecurityScheme:{oneOf:[{$ref:"#/definitions/NonBearerHTTPSecurityScheme"},{$ref:"#/definitions/BearerHTTPSecurityScheme"},{$ref:"#/definitions/APIKeyHTTPSecurityScheme"}]},NonBearerHTTPSecurityScheme:{not:{type:"object",properties:{scheme:{type:"string",enum:["bearer"]}}},type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},BearerHTTPSecurityScheme:{type:"object",required:["type","scheme"],properties:{scheme:{type:"string",enum:["bearer"]},bearerFormat:{type:"string"},type:{type:"string",enum:["http"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},APIKeyHTTPSecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["httpApiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},oauth2Flows:{type:"object",required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]},description:{type:"string"},flows:{type:"object",properties:{implicit:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["authorizationUrl","scopes"]},{not:{required:["tokenUrl"]}}]},password:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["tokenUrl","scopes"]},{not:{required:["authorizationUrl"]}}]},clientCredentials:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["tokenUrl","scopes"]},{not:{required:["authorizationUrl"]}}]},authorizationCode:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["authorizationUrl","tokenUrl","scopes"]}]}},additionalProperties:false,minProperties:1}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},oauth2Flow:{type:"object",properties:{authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},refreshUrl:{type:"string",format:"uri"},scopes:{$ref:"#/definitions/oauth2Scopes"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},openIdConnect:{type:"object",required:["type","openIdConnectUrl"],properties:{type:{type:"string",enum:["openIdConnect"]},description:{type:"string"},openIdConnectUrl:{type:"string",format:"uri"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:true}}}}},{}],67:[function(require,module,exports){module.exports={title:"AsyncAPI 2.0.0-rc2 schema.",$schema:"http://json-schema.org/draft-07/schema#",type:"object",required:["asyncapi","info","channels"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{asyncapi:{type:"string",enum:["2.0.0-rc2"],description:"The AsyncAPI specification version of this document."},id:{type:"string",description:"A unique id representing the application.",format:"uri"},info:{$ref:"#/definitions/info"},servers:{type:"object",additionalProperties:{$ref:"#/definitions/server"}},defaultContentType:{type:"string"},channels:{$ref:"#/definitions/channels"},components:{$ref:"#/definitions/components"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{Reference:{type:"object",required:["$ref"],properties:{$ref:{$ref:"#/definitions/ReferenceObject"}}},ReferenceObject:{type:"string",format:"uri-reference"},info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. CommonMark is allowed."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. MUST be in the format of a URL.",format:"uri"},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:false,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},license:{type:"object",required:["name"],additionalProperties:false,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},server:{type:"object",description:"An object representing a Server.",required:["url","protocol"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{url:{type:"string"},description:{type:"string"},protocol:{type:"string",description:"The transfer protocol."},protocolVersion:{type:"string"},variables:{$ref:"#/definitions/serverVariables"},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},bindings:{$ref:"#/definitions/bindingsObject"}}},serverVariables:{type:"object",additionalProperties:{$ref:"#/definitions/serverVariable"}},serverVariable:{type:"object",description:"An object representing a Server Variable for server URL template substitution.",minProperties:1,additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{enum:{type:"array",items:{type:"string"},uniqueItems:true},default:{type:"string"},description:{type:"string"},examples:{type:"array",items:{type:"string"}}}},channels:{type:"object",propertyNames:{type:"string",format:"uri-template",minLength:1},additionalProperties:{$ref:"#/definitions/channelItem"}},components:{type:"object",description:"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.",additionalProperties:false,properties:{schemas:{$ref:"#/definitions/schemas"},messages:{$ref:"#/definitions/messages"},securitySchemes:{type:"object",patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}},parameters:{$ref:"#/definitions/parameters"},correlationIds:{type:"object",patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/correlationId"}]}}},operationTraits:{type:"object",additionalProperties:{$ref:"#/definitions/operationTrait"}},messageTraits:{type:"object",additionalProperties:{$ref:"#/definitions/messageTrait"}},serverBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}},channelBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}},operationBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}},messageBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}}}},schemas:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"JSON objects describing schemas the API uses."},messages:{type:"object",additionalProperties:{$ref:"#/definitions/message"},description:"JSON objects describing the messages being consumed and produced by the API."},parameters:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"JSON objects describing re-usable channel parameters."},schema:{allOf:[{$ref:"http://json-schema.org/draft-07/schema#"},{type:"object",patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{additionalProperties:{$ref:"#/definitions/schema"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},oneOf:{type:"array",minItems:2,items:{$ref:"#/definitions/schema"}},anyOf:{type:"array",minItems:2,items:{$ref:"#/definitions/schema"}},not:{$ref:"#/definitions/schema"},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},propertyNames:{$ref:"#/definitions/schema"},contains:{$ref:"#/definitions/schema"},discriminator:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false}}}]},externalDocs:{type:"object",additionalProperties:false,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},channelItem:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},minProperties:1,properties:{$ref:{$ref:"#/definitions/ReferenceObject"},parameters:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"}},description:{type:"string",description:"A description of the channel."},publish:{$ref:"#/definitions/operation"},subscribe:{$ref:"#/definitions/operation"},deprecated:{type:"boolean",default:false},bindings:{$ref:"#/definitions/bindingsObject"}}},parameter:{additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},schema:{$ref:"#/definitions/schema"},location:{type:"string",description:"A runtime expression that specifies the location of the parameter value",pattern:"^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*"},$ref:{$ref:"#/definitions/ReferenceObject"}}},operation:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{traits:{type:"array",items:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/operationTrait"},{type:"array",items:[{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/operationTrait"}]},{type:"object",additionalItems:true}]}]}},summary:{type:"string"},description:{type:"string"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string"},bindings:{$ref:"#/definitions/bindingsObject"},message:{$ref:"#/definitions/message"}}},message:{oneOf:[{$ref:"#/definitions/Reference"},{oneOf:[{type:"object",required:["oneOf"],additionalProperties:false,properties:{oneOf:{type:"array",items:{$ref:"#/definitions/message"}}}},{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{schemaFormat:{type:"string"},contentType:{type:"string"},headers:{$ref:"#/definitions/schema"},payload:{},correlationId:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/correlationId"}]},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},summary:{type:"string",description:"A brief summary of the message."},name:{type:"string",description:"Name of the message."},title:{type:"string",description:"A human-friendly title for the message."},description:{type:"string",description:"A longer description of the message. CommonMark is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false},examples:{type:"array",items:{type:"object"}},bindings:{$ref:"#/definitions/bindingsObject"},traits:{type:"array",items:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/messageTrait"},{type:"array",items:[{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/messageTrait"}]},{type:"object",additionalItems:true}]}]}}}}]}]},bindingsObject:{type:"object",additionalProperties:true,properties:{http:{},ws:{},amqp:{},amqp1:{},mqtt:{},mqtt5:{},kafka:{},nats:{},jms:{},sns:{},sqs:{},stomp:{},redis:{}}},correlationId:{type:"object",required:["location"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{description:{type:"string",description:"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},location:{type:"string",description:"A runtime expression that specifies the location of the correlation ID",pattern:"^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*"}}},specificationExtension:{description:"Any property starting with x- is valid.",additionalProperties:true,additionalItems:true},tag:{type:"object",additionalProperties:false,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},operationTrait:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{summary:{type:"string"},description:{type:"string"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string"},bindings:{$ref:"#/definitions/bindingsObject"}}},messageTrait:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{schemaFormat:{type:"string"},contentType:{type:"string"},headers:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/schema"}]},correlationId:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/correlationId"}]},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},summary:{type:"string",description:"A brief summary of the message."},name:{type:"string",description:"Name of the message."},title:{type:"string",description:"A human-friendly title for the message."},description:{type:"string",description:"A longer description of the message. CommonMark is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false},examples:{type:"array",items:{type:"object"}},bindings:{$ref:"#/definitions/bindingsObject"}}},SecurityScheme:{oneOf:[{$ref:"#/definitions/userPassword"},{$ref:"#/definitions/apiKey"},{$ref:"#/definitions/X509"},{$ref:"#/definitions/symmetricEncryption"},{$ref:"#/definitions/asymmetricEncryption"},{$ref:"#/definitions/HTTPSecurityScheme"},{$ref:"#/definitions/oauth2Flows"},{$ref:"#/definitions/openIdConnect"}]},userPassword:{type:"object",required:["type"],properties:{type:{type:"string",enum:["userPassword"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},apiKey:{type:"object",required:["type","in"],properties:{type:{type:"string",enum:["apiKey"]},in:{type:"string",enum:["user","password"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},X509:{type:"object",required:["type"],properties:{type:{type:"string",enum:["X509"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},symmetricEncryption:{type:"object",required:["type"],properties:{type:{type:"string",enum:["symmetricEncryption"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},asymmetricEncryption:{type:"object",required:["type"],properties:{type:{type:"string",enum:["asymmetricEncryption"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},HTTPSecurityScheme:{oneOf:[{$ref:"#/definitions/NonBearerHTTPSecurityScheme"},{$ref:"#/definitions/BearerHTTPSecurityScheme"},{$ref:"#/definitions/APIKeyHTTPSecurityScheme"}]},NonBearerHTTPSecurityScheme:{not:{type:"object",properties:{scheme:{type:"string",enum:["bearer"]}}},type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},BearerHTTPSecurityScheme:{type:"object",required:["type","scheme"],properties:{scheme:{type:"string",enum:["bearer"]},bearerFormat:{type:"string"},type:{type:"string",enum:["http"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},APIKeyHTTPSecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["httpApiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},oauth2Flows:{type:"object",required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]},description:{type:"string"},flows:{type:"object",properties:{implicit:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["authorizationUrl","scopes"]},{not:{required:["tokenUrl"]}}]},password:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["tokenUrl","scopes"]},{not:{required:["authorizationUrl"]}}]},clientCredentials:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["tokenUrl","scopes"]},{not:{required:["authorizationUrl"]}}]},authorizationCode:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["authorizationUrl","tokenUrl","scopes"]}]}},additionalProperties:false,minProperties:1}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},oauth2Flow:{type:"object",properties:{authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},refreshUrl:{type:"string",format:"uri"},scopes:{$ref:"#/definitions/oauth2Scopes"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},openIdConnect:{type:"object",required:["type","openIdConnectUrl"],properties:{type:{type:"string",enum:["openIdConnect"]},description:{type:"string"},openIdConnectUrl:{type:"string",format:"uri"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:true}}}}},{}],68:[function(require,module,exports){module.exports={title:"AsyncAPI 2.0.0 schema.",$schema:"http://json-schema.org/draft-07/schema#",type:"object",required:["asyncapi","info","channels"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{asyncapi:{type:"string",enum:["2.0.0"],description:"The AsyncAPI specification version of this document."},id:{type:"string",description:"A unique id representing the application.",format:"uri"},info:{$ref:"#/definitions/info"},servers:{type:"object",additionalProperties:{$ref:"#/definitions/server"}},defaultContentType:{type:"string"},channels:{$ref:"#/definitions/channels"},components:{$ref:"#/definitions/components"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{Reference:{type:"object",required:["$ref"],properties:{$ref:{$ref:"#/definitions/ReferenceObject"}}},ReferenceObject:{type:"string",format:"uri-reference"},info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. CommonMark is allowed."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. MUST be in the format of a URL.",format:"uri"},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:false,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},license:{type:"object",required:["name"],additionalProperties:false,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},server:{type:"object",description:"An object representing a Server.",required:["url","protocol"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{url:{type:"string"},description:{type:"string"},protocol:{type:"string",description:"The transfer protocol."},protocolVersion:{type:"string"},variables:{$ref:"#/definitions/serverVariables"},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},bindings:{$ref:"#/definitions/bindingsObject"}}},serverVariables:{type:"object",additionalProperties:{$ref:"#/definitions/serverVariable"}},serverVariable:{type:"object",description:"An object representing a Server Variable for server URL template substitution.",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{enum:{type:"array",items:{type:"string"},uniqueItems:true},default:{type:"string"},description:{type:"string"},examples:{type:"array",items:{type:"string"}}}},channels:{type:"object",propertyNames:{type:"string",format:"uri-template",minLength:1},additionalProperties:{$ref:"#/definitions/channelItem"}},components:{type:"object",description:"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{schemas:{$ref:"#/definitions/schemas"},messages:{$ref:"#/definitions/messages"},securitySchemes:{type:"object",patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}},parameters:{$ref:"#/definitions/parameters"},correlationIds:{type:"object",patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/correlationId"}]}}},operationTraits:{type:"object",additionalProperties:{$ref:"#/definitions/operationTrait"}},messageTraits:{type:"object",additionalProperties:{$ref:"#/definitions/messageTrait"}},serverBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}},channelBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}},operationBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}},messageBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}}}},schemas:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"JSON objects describing schemas the API uses."},messages:{type:"object",additionalProperties:{$ref:"#/definitions/message"},description:"JSON objects describing the messages being consumed and produced by the API."},parameters:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"JSON objects describing re-usable channel parameters."},schema:{allOf:[{$ref:"http://json-schema.org/draft-07/schema#"},{patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},oneOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},anyOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},not:{$ref:"#/definitions/schema"},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},propertyNames:{$ref:"#/definitions/schema"},contains:{$ref:"#/definitions/schema"},discriminator:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false}}}]},externalDocs:{type:"object",additionalProperties:false,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},channelItem:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{$ref:{$ref:"#/definitions/ReferenceObject"},parameters:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"}},description:{type:"string",description:"A description of the channel."},publish:{$ref:"#/definitions/operation"},subscribe:{$ref:"#/definitions/operation"},deprecated:{type:"boolean",default:false},bindings:{$ref:"#/definitions/bindingsObject"}}},parameter:{additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},schema:{$ref:"#/definitions/schema"},location:{type:"string",description:"A runtime expression that specifies the location of the parameter value",pattern:"^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*"},$ref:{$ref:"#/definitions/ReferenceObject"}}},operation:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{traits:{type:"array",items:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/operationTrait"},{type:"array",items:[{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/operationTrait"}]},{type:"object",additionalItems:true}]}]}},summary:{type:"string"},description:{type:"string"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string"},bindings:{$ref:"#/definitions/bindingsObject"},message:{$ref:"#/definitions/message"}}},message:{oneOf:[{$ref:"#/definitions/Reference"},{oneOf:[{type:"object",required:["oneOf"],additionalProperties:false,properties:{oneOf:{type:"array",items:{$ref:"#/definitions/message"}}}},{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{schemaFormat:{type:"string"},contentType:{type:"string"},headers:{allOf:[{$ref:"#/definitions/schema"},{properties:{type:{const:"object"}}}]},payload:{},correlationId:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/correlationId"}]},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},summary:{type:"string",description:"A brief summary of the message."},name:{type:"string",description:"Name of the message."},title:{type:"string",description:"A human-friendly title for the message."},description:{type:"string",description:"A longer description of the message. CommonMark is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false},examples:{type:"array",items:{type:"object",additionalProperties:false,properties:{headers:{type:"object"},payload:{}}}},bindings:{$ref:"#/definitions/bindingsObject"},traits:{type:"array",items:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/messageTrait"},{type:"array",items:[{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/messageTrait"}]},{type:"object",additionalItems:true}]}]}}}}]}]},bindingsObject:{type:"object",additionalProperties:true,properties:{http:{},ws:{},amqp:{},amqp1:{},mqtt:{},mqtt5:{},kafka:{},nats:{},jms:{},sns:{},sqs:{},stomp:{},redis:{}}},correlationId:{type:"object",required:["location"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{description:{type:"string",description:"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},location:{type:"string",description:"A runtime expression that specifies the location of the correlation ID",pattern:"^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*"}}},specificationExtension:{description:"Any property starting with x- is valid.",additionalProperties:true,additionalItems:true},tag:{type:"object",additionalProperties:false,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},operationTrait:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{summary:{type:"string"},description:{type:"string"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string"},bindings:{$ref:"#/definitions/bindingsObject"}}},messageTrait:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{schemaFormat:{type:"string"},contentType:{type:"string"},headers:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/schema"}]},correlationId:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/correlationId"}]},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},summary:{type:"string",description:"A brief summary of the message."},name:{type:"string",description:"Name of the message."},title:{type:"string",description:"A human-friendly title for the message."},description:{type:"string",description:"A longer description of the message. CommonMark is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false},examples:{type:"array",items:{type:"object"}},bindings:{$ref:"#/definitions/bindingsObject"}}},SecurityScheme:{oneOf:[{$ref:"#/definitions/userPassword"},{$ref:"#/definitions/apiKey"},{$ref:"#/definitions/X509"},{$ref:"#/definitions/symmetricEncryption"},{$ref:"#/definitions/asymmetricEncryption"},{$ref:"#/definitions/HTTPSecurityScheme"},{$ref:"#/definitions/oauth2Flows"},{$ref:"#/definitions/openIdConnect"}]},userPassword:{type:"object",required:["type"],properties:{type:{type:"string",enum:["userPassword"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},apiKey:{type:"object",required:["type","in"],properties:{type:{type:"string",enum:["apiKey"]},in:{type:"string",enum:["user","password"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},X509:{type:"object",required:["type"],properties:{type:{type:"string",enum:["X509"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},symmetricEncryption:{type:"object",required:["type"],properties:{type:{type:"string",enum:["symmetricEncryption"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},asymmetricEncryption:{type:"object",required:["type"],properties:{type:{type:"string",enum:["asymmetricEncryption"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},HTTPSecurityScheme:{oneOf:[{$ref:"#/definitions/NonBearerHTTPSecurityScheme"},{$ref:"#/definitions/BearerHTTPSecurityScheme"},{$ref:"#/definitions/APIKeyHTTPSecurityScheme"}]},NonBearerHTTPSecurityScheme:{not:{type:"object",properties:{scheme:{type:"string",enum:["bearer"]}}},type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},BearerHTTPSecurityScheme:{type:"object",required:["type","scheme"],properties:{scheme:{type:"string",enum:["bearer"]},bearerFormat:{type:"string"},type:{type:"string",enum:["http"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},APIKeyHTTPSecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["httpApiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},oauth2Flows:{type:"object",required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]},description:{type:"string"},flows:{type:"object",properties:{implicit:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["authorizationUrl","scopes"]},{not:{required:["tokenUrl"]}}]},password:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["tokenUrl","scopes"]},{not:{required:["authorizationUrl"]}}]},clientCredentials:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["tokenUrl","scopes"]},{not:{required:["authorizationUrl"]}}]},authorizationCode:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["authorizationUrl","tokenUrl","scopes"]}]}},additionalProperties:false}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},oauth2Flow:{type:"object",properties:{authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},refreshUrl:{type:"string",format:"uri"},scopes:{$ref:"#/definitions/oauth2Scopes"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},openIdConnect:{type:"object",required:["type","openIdConnectUrl"],properties:{type:{type:"string",enum:["openIdConnect"]},description:{type:"string"},openIdConnectUrl:{type:"string",format:"uri"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:true}}}}},{}],69:[function(require,module,exports){module.exports={title:"AsyncAPI 2.1.0 schema.",$schema:"http://json-schema.org/draft-07/schema#",type:"object",required:["asyncapi","info","channels"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{asyncapi:{type:"string",enum:["2.1.0"],description:"The AsyncAPI specification version of this document."},id:{type:"string",description:"A unique id representing the application.",format:"uri"},info:{$ref:"#/definitions/info"},servers:{type:"object",additionalProperties:{$ref:"#/definitions/server"}},defaultContentType:{type:"string"},channels:{$ref:"#/definitions/channels"},components:{$ref:"#/definitions/components"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{Reference:{type:"object",required:["$ref"],properties:{$ref:{$ref:"#/definitions/ReferenceObject"}}},ReferenceObject:{type:"string",format:"uri-reference"},info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. CommonMark is allowed."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. MUST be in the format of a URL.",format:"uri"},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:false,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},license:{type:"object",required:["name"],additionalProperties:false,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},server:{type:"object",description:"An object representing a Server.",required:["url","protocol"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{url:{type:"string"},description:{type:"string"},protocol:{type:"string",description:"The transfer protocol."},protocolVersion:{type:"string"},variables:{$ref:"#/definitions/serverVariables"},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},bindings:{$ref:"#/definitions/bindingsObject"}}},serverVariables:{type:"object",additionalProperties:{$ref:"#/definitions/serverVariable"}},serverVariable:{type:"object",description:"An object representing a Server Variable for server URL template substitution.",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{enum:{type:"array",items:{type:"string"},uniqueItems:true},default:{type:"string"},description:{type:"string"},examples:{type:"array",items:{type:"string"}}}},channels:{type:"object",propertyNames:{type:"string",format:"uri-template",minLength:1},additionalProperties:{$ref:"#/definitions/channelItem"}},components:{type:"object",description:"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{schemas:{$ref:"#/definitions/schemas"},messages:{$ref:"#/definitions/messages"},securitySchemes:{type:"object",patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}},parameters:{$ref:"#/definitions/parameters"},correlationIds:{type:"object",patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/correlationId"}]}}},operationTraits:{type:"object",additionalProperties:{$ref:"#/definitions/operationTrait"}},messageTraits:{type:"object",additionalProperties:{$ref:"#/definitions/messageTrait"}},serverBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}},channelBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}},operationBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}},messageBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}}}},schemas:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"JSON objects describing schemas the API uses."},messages:{type:"object",additionalProperties:{$ref:"#/definitions/message"},description:"JSON objects describing the messages being consumed and produced by the API."},parameters:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"JSON objects describing re-usable channel parameters."},schema:{allOf:[{$ref:"http://json-schema.org/draft-07/schema#"},{patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},oneOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},anyOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},not:{$ref:"#/definitions/schema"},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},propertyNames:{$ref:"#/definitions/schema"},contains:{$ref:"#/definitions/schema"},discriminator:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false}}}]},externalDocs:{type:"object",additionalProperties:false,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},channelItem:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{$ref:{$ref:"#/definitions/ReferenceObject"},parameters:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"}},description:{type:"string",description:"A description of the channel."},publish:{$ref:"#/definitions/operation"},subscribe:{$ref:"#/definitions/operation"},deprecated:{type:"boolean",default:false},bindings:{$ref:"#/definitions/bindingsObject"}}},parameter:{additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},schema:{$ref:"#/definitions/schema"},location:{type:"string",description:"A runtime expression that specifies the location of the parameter value",pattern:"^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*"},$ref:{$ref:"#/definitions/ReferenceObject"}}},operation:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{traits:{type:"array",items:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/operationTrait"},{type:"array",items:[{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/operationTrait"}]},{type:"object",additionalItems:true}]}]}},summary:{type:"string"},description:{type:"string"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string"},bindings:{$ref:"#/definitions/bindingsObject"},message:{$ref:"#/definitions/message"}}},message:{oneOf:[{$ref:"#/definitions/Reference"},{oneOf:[{type:"object",required:["oneOf"],additionalProperties:false,properties:{oneOf:{type:"array",items:{$ref:"#/definitions/message"}}}},{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{schemaFormat:{type:"string"},contentType:{type:"string"},headers:{allOf:[{$ref:"#/definitions/schema"},{properties:{type:{const:"object"}}}]},payload:{},correlationId:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/correlationId"}]},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},summary:{type:"string",description:"A brief summary of the message."},name:{type:"string",description:"Name of the message."},title:{type:"string",description:"A human-friendly title for the message."},description:{type:"string",description:"A longer description of the message. CommonMark is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false},examples:{type:"array",items:{type:"object",additionalProperties:false,anyOf:[{required:["payload"]},{required:["headers"]}],properties:{name:{type:"string",description:"Machine readable name of the message example."},summary:{type:"string",description:"A brief summary of the message example."},headers:{type:"object"},payload:{}}}},bindings:{$ref:"#/definitions/bindingsObject"},traits:{type:"array",items:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/messageTrait"},{type:"array",items:[{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/messageTrait"}]},{type:"object",additionalItems:true}]}]}}}}]}]},bindingsObject:{type:"object",additionalProperties:true,properties:{http:{},ws:{},amqp:{},amqp1:{},mqtt:{},mqtt5:{},kafka:{},nats:{},jms:{},sns:{},sqs:{},stomp:{},redis:{},ibmmq:{}}},correlationId:{type:"object",required:["location"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{description:{type:"string",description:"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},location:{type:"string",description:"A runtime expression that specifies the location of the correlation ID",pattern:"^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*"}}},specificationExtension:{description:"Any property starting with x- is valid.",additionalProperties:true,additionalItems:true},tag:{type:"object",additionalProperties:false,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},operationTrait:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{summary:{type:"string"},description:{type:"string"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string"},bindings:{$ref:"#/definitions/bindingsObject"}}},messageTrait:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{schemaFormat:{type:"string"},contentType:{type:"string"},headers:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/schema"}]},correlationId:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/correlationId"}]},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},summary:{type:"string",description:"A brief summary of the message."},name:{type:"string",description:"Name of the message."},title:{type:"string",description:"A human-friendly title for the message."},description:{type:"string",description:"A longer description of the message. CommonMark is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false},examples:{type:"array",items:{type:"object",additionalProperties:false,anyOf:[{required:["payload"]},{required:["headers"]}],properties:{name:{type:"string",description:"Machine readable name of the message example."},summary:{type:"string",description:"A brief summary of the message example."},headers:{type:"object"},payload:{}}}},bindings:{$ref:"#/definitions/bindingsObject"}}},SecurityScheme:{oneOf:[{$ref:"#/definitions/userPassword"},{$ref:"#/definitions/apiKey"},{$ref:"#/definitions/X509"},{$ref:"#/definitions/symmetricEncryption"},{$ref:"#/definitions/asymmetricEncryption"},{$ref:"#/definitions/HTTPSecurityScheme"},{$ref:"#/definitions/oauth2Flows"},{$ref:"#/definitions/openIdConnect"},{$ref:"#/definitions/SaslSecurityScheme"}]},userPassword:{type:"object",required:["type"],properties:{type:{type:"string",enum:["userPassword"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},apiKey:{type:"object",required:["type","in"],properties:{type:{type:"string",enum:["apiKey"]},in:{type:"string",enum:["user","password"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},X509:{type:"object",required:["type"],properties:{type:{type:"string",enum:["X509"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},symmetricEncryption:{type:"object",required:["type"],properties:{type:{type:"string",enum:["symmetricEncryption"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},asymmetricEncryption:{type:"object",required:["type"],properties:{type:{type:"string",enum:["asymmetricEncryption"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},HTTPSecurityScheme:{oneOf:[{$ref:"#/definitions/NonBearerHTTPSecurityScheme"},{$ref:"#/definitions/BearerHTTPSecurityScheme"},{$ref:"#/definitions/APIKeyHTTPSecurityScheme"}]},NonBearerHTTPSecurityScheme:{not:{type:"object",properties:{scheme:{type:"string",enum:["bearer"]}}},type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},BearerHTTPSecurityScheme:{type:"object",required:["type","scheme"],properties:{scheme:{type:"string",enum:["bearer"]},bearerFormat:{type:"string"},type:{type:"string",enum:["http"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},APIKeyHTTPSecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["httpApiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},SaslSecurityScheme:{oneOf:[{$ref:"#/definitions/SaslPlainSecurityScheme"},{$ref:"#/definitions/SaslScramSecurityScheme"},{$ref:"#/definitions/SaslGssapiSecurityScheme"}]},SaslPlainSecurityScheme:{type:"object",required:["type"],properties:{type:{type:"string",enum:["plain"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},SaslScramSecurityScheme:{type:"object",required:["type"],properties:{type:{type:"string",enum:["scramSha256","scramSha512"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},SaslGssapiSecurityScheme:{type:"object",required:["type"],properties:{type:{type:"string",enum:["gssapi"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},oauth2Flows:{type:"object",required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]},description:{type:"string"},flows:{type:"object",properties:{implicit:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["authorizationUrl","scopes"]},{not:{required:["tokenUrl"]}}]},password:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["tokenUrl","scopes"]},{not:{required:["authorizationUrl"]}}]},clientCredentials:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["tokenUrl","scopes"]},{not:{required:["authorizationUrl"]}}]},authorizationCode:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["authorizationUrl","tokenUrl","scopes"]}]}},additionalProperties:false}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},oauth2Flow:{type:"object",properties:{authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},refreshUrl:{type:"string",format:"uri"},scopes:{$ref:"#/definitions/oauth2Scopes"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},openIdConnect:{type:"object",required:["type","openIdConnectUrl"],properties:{type:{type:"string",enum:["openIdConnect"]},description:{type:"string"},openIdConnectUrl:{type:"string",format:"uri"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:true}}}}},{}],70:[function(require,module,exports){module.exports={title:"AsyncAPI 2.2.0 schema.",$schema:"http://json-schema.org/draft-07/schema#",type:"object",required:["asyncapi","info","channels"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{asyncapi:{type:"string",enum:["2.2.0"],description:"The AsyncAPI specification version of this document."},id:{type:"string",description:"A unique id representing the application.",format:"uri"},info:{$ref:"#/definitions/info"},servers:{type:"object",additionalProperties:{$ref:"#/definitions/server"}},defaultContentType:{type:"string"},channels:{$ref:"#/definitions/channels"},components:{$ref:"#/definitions/components"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{Reference:{type:"object",required:["$ref"],properties:{$ref:{$ref:"#/definitions/ReferenceObject"}}},ReferenceObject:{type:"string",format:"uri-reference"},info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. CommonMark is allowed."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. MUST be in the format of a URL.",format:"uri"},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:false,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},license:{type:"object",required:["name"],additionalProperties:false,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},server:{type:"object",description:"An object representing a Server.",required:["url","protocol"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{url:{type:"string"},description:{type:"string"},protocol:{type:"string",description:"The transfer protocol."},protocolVersion:{type:"string"},variables:{$ref:"#/definitions/serverVariables"},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},bindings:{$ref:"#/definitions/bindingsObject"}}},serverVariables:{type:"object",additionalProperties:{$ref:"#/definitions/serverVariable"}},serverVariable:{type:"object",description:"An object representing a Server Variable for server URL template substitution.",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{enum:{type:"array",items:{type:"string"},uniqueItems:true},default:{type:"string"},description:{type:"string"},examples:{type:"array",items:{type:"string"}}}},channels:{type:"object",propertyNames:{type:"string",format:"uri-template",minLength:1},additionalProperties:{$ref:"#/definitions/channelItem"}},components:{type:"object",description:"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{schemas:{$ref:"#/definitions/schemas"},messages:{$ref:"#/definitions/messages"},securitySchemes:{type:"object",patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}},parameters:{$ref:"#/definitions/parameters"},correlationIds:{type:"object",patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/correlationId"}]}}},operationTraits:{type:"object",additionalProperties:{$ref:"#/definitions/operationTrait"}},messageTraits:{type:"object",additionalProperties:{$ref:"#/definitions/messageTrait"}},serverBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}},channelBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}},operationBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}},messageBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}}}},schemas:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"JSON objects describing schemas the API uses."},messages:{type:"object",additionalProperties:{$ref:"#/definitions/message"},description:"JSON objects describing the messages being consumed and produced by the API."},parameters:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"JSON objects describing re-usable channel parameters."},schema:{allOf:[{$ref:"http://json-schema.org/draft-07/schema#"},{patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},oneOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},anyOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},not:{$ref:"#/definitions/schema"},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},propertyNames:{$ref:"#/definitions/schema"},contains:{$ref:"#/definitions/schema"},discriminator:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false}}}]},externalDocs:{type:"object",additionalProperties:false,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},channelItem:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{$ref:{$ref:"#/definitions/ReferenceObject"},parameters:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"}},description:{type:"string",description:"A description of the channel."},servers:{type:"array",description:"The names of the servers on which this channel is available. If absent or empty then this channel must be available on all servers.",items:{type:"string"},uniqueItems:true},publish:{$ref:"#/definitions/operation"},subscribe:{$ref:"#/definitions/operation"},deprecated:{type:"boolean",default:false},bindings:{$ref:"#/definitions/bindingsObject"}}},parameter:{additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},schema:{$ref:"#/definitions/schema"},location:{type:"string",description:"A runtime expression that specifies the location of the parameter value",pattern:"^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*"},$ref:{$ref:"#/definitions/ReferenceObject"}}},operation:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{traits:{type:"array",items:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/operationTrait"},{type:"array",items:[{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/operationTrait"}]},{type:"object",additionalItems:true}]}]}},summary:{type:"string"},description:{type:"string"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string"},bindings:{$ref:"#/definitions/bindingsObject"},message:{$ref:"#/definitions/message"}}},message:{oneOf:[{$ref:"#/definitions/Reference"},{oneOf:[{type:"object",required:["oneOf"],additionalProperties:false,properties:{oneOf:{type:"array",items:{$ref:"#/definitions/message"}}}},{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{schemaFormat:{type:"string"},contentType:{type:"string"},headers:{allOf:[{$ref:"#/definitions/schema"},{properties:{type:{const:"object"}}}]},payload:{},correlationId:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/correlationId"}]},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},summary:{type:"string",description:"A brief summary of the message."},name:{type:"string",description:"Name of the message."},title:{type:"string",description:"A human-friendly title for the message."},description:{type:"string",description:"A longer description of the message. CommonMark is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false},examples:{type:"array",items:{type:"object",additionalProperties:false,anyOf:[{required:["payload"]},{required:["headers"]}],properties:{name:{type:"string",description:"Machine readable name of the message example."},summary:{type:"string",description:"A brief summary of the message example."},headers:{type:"object"},payload:{}}}},bindings:{$ref:"#/definitions/bindingsObject"},traits:{type:"array",items:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/messageTrait"},{type:"array",items:[{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/messageTrait"}]},{type:"object",additionalItems:true}]}]}}}}]}]},bindingsObject:{type:"object",additionalProperties:true,properties:{http:{},ws:{},amqp:{},amqp1:{},mqtt:{},mqtt5:{},kafka:{},anypointmq:{},nats:{},jms:{},sns:{},sqs:{},stomp:{},redis:{},ibmmq:{}}},correlationId:{type:"object",required:["location"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{description:{type:"string",description:"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},location:{type:"string",description:"A runtime expression that specifies the location of the correlation ID",pattern:"^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*"}}},specificationExtension:{description:"Any property starting with x- is valid.",additionalProperties:true,additionalItems:true},tag:{type:"object",additionalProperties:false,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},operationTrait:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{summary:{type:"string"},description:{type:"string"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string"},bindings:{$ref:"#/definitions/bindingsObject"}}},messageTrait:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{schemaFormat:{type:"string"},contentType:{type:"string"},headers:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/schema"}]},correlationId:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/correlationId"}]},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},summary:{type:"string",description:"A brief summary of the message."},name:{type:"string",description:"Name of the message."},title:{type:"string",description:"A human-friendly title for the message."},description:{type:"string",description:"A longer description of the message. CommonMark is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false},examples:{type:"array",items:{type:"object"}},bindings:{$ref:"#/definitions/bindingsObject"}}},SecurityScheme:{oneOf:[{$ref:"#/definitions/userPassword"},{$ref:"#/definitions/apiKey"},{$ref:"#/definitions/X509"},{$ref:"#/definitions/symmetricEncryption"},{$ref:"#/definitions/asymmetricEncryption"},{$ref:"#/definitions/HTTPSecurityScheme"},{$ref:"#/definitions/oauth2Flows"},{$ref:"#/definitions/openIdConnect"},{$ref:"#/definitions/SaslSecurityScheme"}]},userPassword:{type:"object",required:["type"],properties:{type:{type:"string",enum:["userPassword"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},apiKey:{type:"object",required:["type","in"],properties:{type:{type:"string",enum:["apiKey"]},in:{type:"string",enum:["user","password"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},X509:{type:"object",required:["type"],properties:{type:{type:"string",enum:["X509"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},symmetricEncryption:{type:"object",required:["type"],properties:{type:{type:"string",enum:["symmetricEncryption"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},asymmetricEncryption:{type:"object",required:["type"],properties:{type:{type:"string",enum:["asymmetricEncryption"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},HTTPSecurityScheme:{oneOf:[{$ref:"#/definitions/NonBearerHTTPSecurityScheme"},{$ref:"#/definitions/BearerHTTPSecurityScheme"},{$ref:"#/definitions/APIKeyHTTPSecurityScheme"}]},NonBearerHTTPSecurityScheme:{not:{type:"object",properties:{scheme:{type:"string",enum:["bearer"]}}},type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},BearerHTTPSecurityScheme:{type:"object",required:["type","scheme"],properties:{scheme:{type:"string",enum:["bearer"]},bearerFormat:{type:"string"},type:{type:"string",enum:["http"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},APIKeyHTTPSecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["httpApiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},SaslSecurityScheme:{oneOf:[{$ref:"#/definitions/SaslPlainSecurityScheme"},{$ref:"#/definitions/SaslScramSecurityScheme"},{$ref:"#/definitions/SaslGssapiSecurityScheme"}]},SaslPlainSecurityScheme:{type:"object",required:["type"],properties:{type:{type:"string",enum:["plain"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},SaslScramSecurityScheme:{type:"object",required:["type"],properties:{type:{type:"string",enum:["scramSha256","scramSha512"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},SaslGssapiSecurityScheme:{type:"object",required:["type"],properties:{type:{type:"string",enum:["gssapi"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},oauth2Flows:{type:"object",required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]},description:{type:"string"},flows:{type:"object",properties:{implicit:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["authorizationUrl","scopes"]},{not:{required:["tokenUrl"]}}]},password:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["tokenUrl","scopes"]},{not:{required:["authorizationUrl"]}}]},clientCredentials:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["tokenUrl","scopes"]},{not:{required:["authorizationUrl"]}}]},authorizationCode:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["authorizationUrl","tokenUrl","scopes"]}]}},additionalProperties:false}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},oauth2Flow:{type:"object",properties:{authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},refreshUrl:{type:"string",format:"uri"},scopes:{$ref:"#/definitions/oauth2Scopes"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},openIdConnect:{type:"object",required:["type","openIdConnectUrl"],properties:{type:{type:"string",enum:["openIdConnect"]},description:{type:"string"},openIdConnectUrl:{type:"string",format:"uri"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:true}}}}},{}],71:[function(require,module,exports){module.exports={title:"AsyncAPI 2.3.0 schema.",$schema:"http://json-schema.org/draft-07/schema#",type:"object",required:["asyncapi","info","channels"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{asyncapi:{type:"string",enum:["2.3.0"],description:"The AsyncAPI specification version of this document."},id:{type:"string",description:"A unique id representing the application.",format:"uri"},info:{$ref:"#/definitions/info"},servers:{$ref:"#/definitions/servers"},defaultContentType:{type:"string"},channels:{$ref:"#/definitions/channels"},components:{$ref:"#/definitions/components"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{Reference:{type:"object",required:["$ref"],properties:{$ref:{$ref:"#/definitions/ReferenceObject"}}},ReferenceObject:{type:"string",format:"uri-reference"},info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title. CommonMark is allowed."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. MUST be in the format of a URL.",format:"uri"},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:false,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},license:{type:"object",required:["name"],additionalProperties:false,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},server:{type:"object",description:"An object representing a Server.",anyOf:[{required:["url","protocol"]},{required:["$ref"]}],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{$ref:{$ref:"#/definitions/ReferenceObject"},url:{type:"string"},description:{type:"string"},protocol:{type:"string",description:"The transfer protocol."},protocolVersion:{type:"string"},variables:{$ref:"#/definitions/serverVariables"},security:{type:"array",items:{$ref:"#/definitions/SecurityRequirement"}},bindings:{$ref:"#/definitions/bindingsObject"}}},servers:{type:"object",additionalProperties:{$ref:"#/definitions/server"}},serverVariables:{type:"object",additionalProperties:{$ref:"#/definitions/serverVariable"}},serverVariable:{type:"object",description:"An object representing a Server Variable for server URL template substitution.",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{enum:{type:"array",items:{type:"string"},uniqueItems:true},default:{type:"string"},description:{type:"string"},examples:{type:"array",items:{type:"string"}}}},channels:{type:"object",propertyNames:{type:"string",format:"uri-template",minLength:1},additionalProperties:{$ref:"#/definitions/channelItem"}},components:{type:"object",description:"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{schemas:{$ref:"#/definitions/schemas"},servers:{$ref:"#/definitions/servers"},channels:{$ref:"#/definitions/channels"},messages:{$ref:"#/definitions/messages"},securitySchemes:{type:"object",patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}},parameters:{$ref:"#/definitions/parameters"},correlationIds:{type:"object",patternProperties:{"^[\\w\\d\\.\\-_]+$":{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/correlationId"}]}}},operationTraits:{type:"object",additionalProperties:{$ref:"#/definitions/operationTrait"}},messageTraits:{type:"object",additionalProperties:{$ref:"#/definitions/messageTrait"}},serverBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}},channelBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}},operationBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}},messageBindings:{type:"object",additionalProperties:{$ref:"#/definitions/bindingsObject"}}}},schemas:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"JSON objects describing schemas the API uses."},messages:{type:"object",additionalProperties:{$ref:"#/definitions/message"},description:"JSON objects describing the messages being consumed and produced by the API."},parameters:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"JSON objects describing re-usable channel parameters."},schema:{allOf:[{$ref:"http://json-schema.org/draft-07/schema#"},{patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},oneOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},anyOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},not:{$ref:"#/definitions/schema"},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},propertyNames:{$ref:"#/definitions/schema"},contains:{$ref:"#/definitions/schema"},discriminator:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false}}}]},externalDocs:{type:"object",additionalProperties:false,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},channelItem:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{$ref:{$ref:"#/definitions/ReferenceObject"},parameters:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"}},description:{type:"string",description:"A description of the channel."},servers:{type:"array",description:"The names of the servers on which this channel is available. If absent or empty then this channel must be available on all servers.",items:{type:"string"},uniqueItems:true},publish:{$ref:"#/definitions/operation"},subscribe:{$ref:"#/definitions/operation"},deprecated:{type:"boolean",default:false},bindings:{$ref:"#/definitions/bindingsObject"}}},parameter:{additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},schema:{$ref:"#/definitions/schema"},location:{type:"string",description:"A runtime expression that specifies the location of the parameter value",pattern:"^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*"},$ref:{$ref:"#/definitions/ReferenceObject"}}},operation:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{traits:{type:"array",items:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/operationTrait"},{type:"array",items:[{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/operationTrait"}]},{type:"object",additionalItems:true}]}]}},summary:{type:"string"},description:{type:"string"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string"},bindings:{$ref:"#/definitions/bindingsObject"},message:{$ref:"#/definitions/message"}}},message:{oneOf:[{$ref:"#/definitions/Reference"},{oneOf:[{type:"object",required:["oneOf"],additionalProperties:false,properties:{oneOf:{type:"array",items:{$ref:"#/definitions/message"}}}},{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{schemaFormat:{type:"string"},contentType:{type:"string"},headers:{allOf:[{$ref:"#/definitions/schema"},{properties:{type:{const:"object"}}}]},payload:{},correlationId:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/correlationId"}]},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},summary:{type:"string",description:"A brief summary of the message."},name:{type:"string",description:"Name of the message."},title:{type:"string",description:"A human-friendly title for the message."},description:{type:"string",description:"A longer description of the message. CommonMark is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false},examples:{type:"array",items:{type:"object",additionalProperties:false,anyOf:[{required:["payload"]},{required:["headers"]}],properties:{name:{type:"string",description:"Machine readable name of the message example."},summary:{type:"string",description:"A brief summary of the message example."},headers:{type:"object"},payload:{}}}},bindings:{$ref:"#/definitions/bindingsObject"},traits:{type:"array",items:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/messageTrait"},{type:"array",items:[{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/messageTrait"}]},{type:"object",additionalItems:true}]}]}}}}]}]},bindingsObject:{type:"object",additionalProperties:true,properties:{http:{},ws:{},amqp:{},amqp1:{},mqtt:{},mqtt5:{},kafka:{},anypointmq:{},nats:{},jms:{},sns:{},sqs:{},stomp:{},redis:{},ibmmq:{},solace:{}}},correlationId:{type:"object",required:["location"],additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{description:{type:"string",description:"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},location:{type:"string",description:"A runtime expression that specifies the location of the correlation ID",pattern:"^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*"}}},specificationExtension:{description:"Any property starting with x- is valid.",additionalProperties:true,additionalItems:true},tag:{type:"object",additionalProperties:false,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},operationTrait:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{summary:{type:"string"},description:{type:"string"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string"},bindings:{$ref:"#/definitions/bindingsObject"}}},messageTrait:{type:"object",additionalProperties:false,patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},properties:{schemaFormat:{type:"string"},contentType:{type:"string"},headers:{allOf:[{$ref:"#/definitions/schema"},{properties:{type:{const:"object"}}}]},correlationId:{oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/correlationId"}]},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:true},summary:{type:"string",description:"A brief summary of the message."},name:{type:"string",description:"Name of the message."},title:{type:"string",description:"A human-friendly title for the message."},description:{type:"string",description:"A longer description of the message. CommonMark is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},deprecated:{type:"boolean",default:false},examples:{type:"array",items:{type:"object"}},bindings:{$ref:"#/definitions/bindingsObject"}}},SecurityScheme:{oneOf:[{$ref:"#/definitions/userPassword"},{$ref:"#/definitions/apiKey"},{$ref:"#/definitions/X509"},{$ref:"#/definitions/symmetricEncryption"},{$ref:"#/definitions/asymmetricEncryption"},{$ref:"#/definitions/HTTPSecurityScheme"},{$ref:"#/definitions/oauth2Flows"},{$ref:"#/definitions/openIdConnect"},{$ref:"#/definitions/SaslSecurityScheme"}]},userPassword:{type:"object",required:["type"],properties:{type:{type:"string",enum:["userPassword"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},apiKey:{type:"object",required:["type","in"],properties:{type:{type:"string",enum:["apiKey"]},in:{type:"string",enum:["user","password"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},X509:{type:"object",required:["type"],properties:{type:{type:"string",enum:["X509"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},symmetricEncryption:{type:"object",required:["type"],properties:{type:{type:"string",enum:["symmetricEncryption"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},asymmetricEncryption:{type:"object",required:["type"],properties:{type:{type:"string",enum:["asymmetricEncryption"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},HTTPSecurityScheme:{oneOf:[{$ref:"#/definitions/NonBearerHTTPSecurityScheme"},{$ref:"#/definitions/BearerHTTPSecurityScheme"},{$ref:"#/definitions/APIKeyHTTPSecurityScheme"}]},NonBearerHTTPSecurityScheme:{not:{type:"object",properties:{scheme:{type:"string",enum:["bearer"]}}},type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},description:{type:"string"},type:{type:"string",enum:["http"]}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},BearerHTTPSecurityScheme:{type:"object",required:["type","scheme"],properties:{scheme:{type:"string",enum:["bearer"]},bearerFormat:{type:"string"},type:{type:"string",enum:["http"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},APIKeyHTTPSecurityScheme:{type:"object",required:["type","name","in"],properties:{type:{type:"string",enum:["httpApiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query","cookie"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},SaslSecurityScheme:{oneOf:[{$ref:"#/definitions/SaslPlainSecurityScheme"},{$ref:"#/definitions/SaslScramSecurityScheme"},{$ref:"#/definitions/SaslGssapiSecurityScheme"}]},SaslPlainSecurityScheme:{type:"object",required:["type"],properties:{type:{type:"string",enum:["plain"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},SaslScramSecurityScheme:{type:"object",required:["type"],properties:{type:{type:"string",enum:["scramSha256","scramSha512"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},SaslGssapiSecurityScheme:{type:"object",required:["type"],properties:{type:{type:"string",enum:["gssapi"]},description:{type:"string"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},oauth2Flows:{type:"object",required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]},description:{type:"string"},flows:{type:"object",properties:{implicit:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["authorizationUrl","scopes"]},{not:{required:["tokenUrl"]}}]},password:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["tokenUrl","scopes"]},{not:{required:["authorizationUrl"]}}]},clientCredentials:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["tokenUrl","scopes"]},{not:{required:["authorizationUrl"]}}]},authorizationCode:{allOf:[{$ref:"#/definitions/oauth2Flow"},{required:["authorizationUrl","tokenUrl","scopes"]}]}},additionalProperties:false}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}}},oauth2Flow:{type:"object",properties:{authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},refreshUrl:{type:"string",format:"uri"},scopes:{$ref:"#/definitions/oauth2Scopes"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},openIdConnect:{type:"object",required:["type","openIdConnectUrl"],properties:{type:{type:"string",enum:["openIdConnect"]},description:{type:"string"},openIdConnectUrl:{type:"string",format:"uri"}},patternProperties:{"^x-[\\w\\d\\.\\x2d_]+$":{$ref:"#/definitions/specificationExtension"}},additionalProperties:false},SecurityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:true}}}}},{}],72:[function(require,module,exports){const{load,Kind}=require("yaml-ast-parser");const loc=Symbol("pseudo-yaml-ast-loc");const hasOwnProp=(obj,key)=>obj&&typeof obj==="object"&&Object.prototype.hasOwnProperty.call(obj,key);const isUndefined=v=>v===undefined;const isNull=v=>v===null;const isPrimitive=v=>Number.isNaN(v)||isNull(v)||isUndefined(v)||typeof v==="symbol";const isPrimitiveNode=node=>isPrimitive(node.value)||!hasOwnProp(node,"value");const isBetween=(start,pos,end)=>pos<=end&&pos>=start;const getLoc=(input,{start:start=0,end:end=0})=>{const lines=input.split(/\n/);const loc={start:{},end:{}};let sum=0;for(const i of lines.keys()){const line=lines[i];const ls=sum;const le=sum+line.length;if(isUndefined(loc.start.line)&&isBetween(ls,start,le)){loc.start.line=i+1;loc.start.column=start-ls;loc.start.offset=start}if(isUndefined(loc.end.line)&&isBetween(ls,end,le)){loc.end.line=i+1;loc.end.column=end-ls;loc.end.offset=end}sum=le+1}return loc};const visitors={MAP:(node={},input="",ctx={})=>Object.assign(walk(node.mappings,input),{[loc]:getLoc(input,{start:node.startPosition,end:node.endPosition})}),MAPPING:(node={},input="",ctx={})=>{const value=walk([node.value],input);if(!isPrimitive(value)){value[loc]=getLoc(input,{start:node.startPosition,end:node.endPosition})}return Object.assign(ctx,{[node.key.value]:value})},SCALAR:(node={},input="")=>{if(isPrimitiveNode(node)){return node.value}const _loc=getLoc(input,{start:node.startPosition,end:node.endPosition});const wrappable=Constructor=>()=>{const v=new Constructor(node.value);v[loc]=_loc;return v};const object=()=>{node.value[loc]=_loc;return node.value};const types={boolean:wrappable(Boolean),number:wrappable(Number),string:wrappable(String),function:object,object:object};return types[typeof node.value]()},SEQ:(node={},input="")=>{const items=walk(node.items,input,[]);items[loc]=getLoc(input,{start:node.startPosition,end:node.endPosition});return items}};const walk=(nodes=[],input,ctx={})=>{const onNode=(node,ctx,fallback)=>{let visitor;if(node)visitor=visitors[Kind[node.kind]];return visitor?visitor(node,input,ctx):fallback};const walkObj=()=>nodes.reduce((sum,node)=>{return onNode(node,sum,sum)},ctx);const walkArr=()=>nodes.map(node=>onNode(node,ctx,null),ctx).filter(Boolean);return Array.isArray(ctx)?walkArr():walkObj()};module.exports.loc=loc;module.exports.yamlAST=input=>walk([load(input)],input)},{"yaml-ast-parser":209}],73:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.Ono=void 0;const extend_error_1=require("./extend-error");const normalize_1=require("./normalize");const to_json_1=require("./to-json");const constructor=Ono;exports.Ono=constructor;function Ono(ErrorConstructor,options){options=normalize_1.normalizeOptions(options);function ono(...args){let{originalError,props,message}=normalize_1.normalizeArgs(args,options);let newError=new ErrorConstructor(message);return extend_error_1.extendError(newError,originalError,props)}ono[Symbol.species]=ErrorConstructor;return ono}Ono.toJSON=function toJSON(error){return to_json_1.toJSON.call(error)};Ono.extend=function extend(error,originalError,props){if(props||originalError instanceof Error){return extend_error_1.extendError(error,originalError,props)}else if(originalError){return extend_error_1.extendError(error,undefined,originalError)}else{return extend_error_1.extendError(error)}}},{"./extend-error":74,"./normalize":77,"./to-json":80}],74:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.extendError=void 0;const isomorphic_node_1=require("./isomorphic.node");const stack_1=require("./stack");const to_json_1=require("./to-json");const protectedProps=["name","message","stack"];function extendError(error,originalError,props){let onoError=error;extendStack(onoError,originalError);if(originalError&&typeof originalError==="object"){mergeErrors(onoError,originalError)}onoError.toJSON=to_json_1.toJSON;if(isomorphic_node_1.addInspectMethod){isomorphic_node_1.addInspectMethod(onoError)}if(props&&typeof props==="object"){Object.assign(onoError,props)}return onoError}exports.extendError=extendError;function extendStack(newError,originalError){let stackProp=Object.getOwnPropertyDescriptor(newError,"stack");if(stack_1.isLazyStack(stackProp)){stack_1.lazyJoinStacks(stackProp,newError,originalError)}else if(stack_1.isWritableStack(stackProp)){newError.stack=stack_1.joinStacks(newError,originalError)}}function mergeErrors(newError,originalError){let keys=to_json_1.getDeepKeys(originalError,protectedProps);let _newError=newError;let _originalError=originalError;for(let key of keys){if(_newError[key]===undefined){try{_newError[key]=_originalError[key]}catch(e){}}}}},{"./isomorphic.node":76,"./stack":79,"./to-json":80}],75:[function(require,module,exports){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){if(k2===undefined)k2=k;Object.defineProperty(o,k2,{enumerable:true,get:function(){return m[k]}})}:function(o,m,k,k2){if(k2===undefined)k2=k;o[k2]=m[k]});var __exportStar=this&&this.__exportStar||function(m,exports){for(var p in m)if(p!=="default"&&!exports.hasOwnProperty(p))__createBinding(exports,m,p)};Object.defineProperty(exports,"__esModule",{value:true});exports.ono=void 0;const singleton_1=require("./singleton");Object.defineProperty(exports,"ono",{enumerable:true,get:function(){return singleton_1.ono}});var constructor_1=require("./constructor");Object.defineProperty(exports,"Ono",{enumerable:true,get:function(){return constructor_1.Ono}});__exportStar(require("./types"),exports);exports.default=singleton_1.ono;if(typeof module==="object"&&typeof module.exports==="object"){module.exports=Object.assign(module.exports.default,module.exports)}},{"./constructor":73,"./singleton":78,"./types":81}],76:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.addInspectMethod=exports.format=void 0;exports.format=false;exports.addInspectMethod=false},{}],77:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.normalizeArgs=exports.normalizeOptions=void 0;const isomorphic_node_1=require("./isomorphic.node");function normalizeOptions(options){options=options||{};return{concatMessages:options.concatMessages===undefined?true:Boolean(options.concatMessages),format:options.format===undefined?isomorphic_node_1.format:typeof options.format==="function"?options.format:false}}exports.normalizeOptions=normalizeOptions;function normalizeArgs(args,options){let originalError;let props;let formatArgs;let message="";if(typeof args[0]==="string"){formatArgs=args}else if(typeof args[1]==="string"){if(args[0]instanceof Error){originalError=args[0]}else{props=args[0]}formatArgs=args.slice(1)}else{originalError=args[0];props=args[1];formatArgs=args.slice(2)}if(formatArgs.length>0){if(options.format){message=options.format.apply(undefined,formatArgs)}else{message=formatArgs.join(" ")}}if(options.concatMessages&&originalError&&originalError.message){message+=(message?" \n":"")+originalError.message}return{originalError:originalError,props:props,message:message}}exports.normalizeArgs=normalizeArgs},{"./isomorphic.node":76}],78:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.ono=void 0;const constructor_1=require("./constructor");const singleton=ono;exports.ono=singleton;ono.error=new constructor_1.Ono(Error);ono.eval=new constructor_1.Ono(EvalError);ono.range=new constructor_1.Ono(RangeError);ono.reference=new constructor_1.Ono(ReferenceError);ono.syntax=new constructor_1.Ono(SyntaxError);ono.type=new constructor_1.Ono(TypeError);ono.uri=new constructor_1.Ono(URIError);const onoMap=ono;function ono(...args){let originalError=args[0];if(typeof originalError==="object"&&typeof originalError.name==="string"){for(let typedOno of Object.values(onoMap)){if(typeof typedOno==="function"&&typedOno.name==="ono"){let species=typedOno[Symbol.species];if(species&&species!==Error&&(originalError instanceof species||originalError.name===species.name)){return typedOno.apply(undefined,args)}}}}return ono.error.apply(undefined,args)}},{"./constructor":73}],79:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.lazyJoinStacks=exports.joinStacks=exports.isWritableStack=exports.isLazyStack=void 0;const newline=/\r?\n/;const onoCall=/\bono[ @]/;function isLazyStack(stackProp){return Boolean(stackProp&&stackProp.configurable&&typeof stackProp.get==="function")}exports.isLazyStack=isLazyStack;function isWritableStack(stackProp){return Boolean(!stackProp||stackProp.writable||typeof stackProp.set==="function")}exports.isWritableStack=isWritableStack;function joinStacks(newError,originalError){let newStack=popStack(newError.stack);let originalStack=originalError?originalError.stack:undefined;if(newStack&&originalStack){return newStack+"\n\n"+originalStack}else{return newStack||originalStack}}exports.joinStacks=joinStacks;function lazyJoinStacks(lazyStack,newError,originalError){if(originalError){Object.defineProperty(newError,"stack",{get:()=>{let newStack=lazyStack.get.apply(newError);return joinStacks({stack:newStack},originalError)},enumerable:false,configurable:true})}else{lazyPopStack(newError,lazyStack)}}exports.lazyJoinStacks=lazyJoinStacks;function popStack(stack){if(stack){let lines=stack.split(newline);let onoStart;for(let i=0;i0){return lines.join("\n")}}return stack}function lazyPopStack(error,lazyStack){Object.defineProperty(error,"stack",{get:()=>popStack(lazyStack.get.apply(error)),enumerable:false,configurable:true})}},{}],80:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.getDeepKeys=exports.toJSON=void 0;const nonJsonTypes=["function","symbol","undefined"];const protectedProps=["constructor","prototype","__proto__"];const objectPrototype=Object.getPrototypeOf({});function toJSON(){let pojo={};let error=this;for(let key of getDeepKeys(error)){if(typeof key==="string"){let value=error[key];let type=typeof value;if(!nonJsonTypes.includes(type)){pojo[key]=value}}}return pojo}exports.toJSON=toJSON;function getDeepKeys(obj,omit=[]){let keys=[];while(obj&&obj!==objectPrototype){keys=keys.concat(Object.getOwnPropertyNames(obj),Object.getOwnPropertySymbols(obj));obj=Object.getPrototypeOf(obj)}let uniqueKeys=new Set(keys);for(let key of omit.concat(protectedProps)){uniqueKeys.delete(key)}return uniqueKeys}exports.getDeepKeys=getDeepKeys},{}],81:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});const util_1=require("util")},{util:204}],82:[function(require,module,exports){"use strict";var compileSchema=require("./compile"),resolve=require("./compile/resolve"),Cache=require("./cache"),SchemaObject=require("./compile/schema_obj"),stableStringify=require("fast-json-stable-stringify"),formats=require("./compile/formats"),rules=require("./compile/rules"),$dataMetaSchema=require("./data"),util=require("./compile/util");module.exports=Ajv;Ajv.prototype.validate=validate;Ajv.prototype.compile=compile;Ajv.prototype.addSchema=addSchema;Ajv.prototype.addMetaSchema=addMetaSchema;Ajv.prototype.validateSchema=validateSchema;Ajv.prototype.getSchema=getSchema;Ajv.prototype.removeSchema=removeSchema;Ajv.prototype.addFormat=addFormat;Ajv.prototype.errorsText=errorsText;Ajv.prototype._addSchema=_addSchema;Ajv.prototype._compile=_compile;Ajv.prototype.compileAsync=require("./compile/async");var customKeyword=require("./keyword");Ajv.prototype.addKeyword=customKeyword.add;Ajv.prototype.getKeyword=customKeyword.get;Ajv.prototype.removeKeyword=customKeyword.remove;Ajv.prototype.validateKeyword=customKeyword.validate;var errorClasses=require("./compile/error_classes");Ajv.ValidationError=errorClasses.Validation;Ajv.MissingRefError=errorClasses.MissingRef;Ajv.$dataMetaSchema=$dataMetaSchema;var META_SCHEMA_ID="http://json-schema.org/draft-07/schema";var META_IGNORE_OPTIONS=["removeAdditional","useDefaults","coerceTypes","strictDefaults"];var META_SUPPORT_DATA=["/properties"];function Ajv(opts){if(!(this instanceof Ajv))return new Ajv(opts);opts=this._opts=util.copy(opts)||{};setLogger(this);this._schemas={};this._refs={};this._fragments={};this._formats=formats(opts.format);this._cache=opts.cache||new Cache;this._loadingSchemas={};this._compilations=[];this.RULES=rules();this._getId=chooseGetId(opts);opts.loopRequired=opts.loopRequired||Infinity;if(opts.errorDataPath=="property")opts._errorDataPathProperty=true;if(opts.serialize===undefined)opts.serialize=stableStringify;this._metaOpts=getMetaSchemaOptions(this);if(opts.formats)addInitialFormats(this);if(opts.keywords)addInitialKeywords(this);addDefaultMetaSchema(this);if(typeof opts.meta=="object")this.addMetaSchema(opts.meta);if(opts.nullable)this.addKeyword("nullable",{metaSchema:{type:"boolean"}});addInitialSchemas(this)}function validate(schemaKeyRef,data){var v;if(typeof schemaKeyRef=="string"){v=this.getSchema(schemaKeyRef);if(!v)throw new Error('no schema with key or ref "'+schemaKeyRef+'"')}else{var schemaObj=this._addSchema(schemaKeyRef);v=schemaObj.validate||this._compile(schemaObj)}var valid=v(data);if(v.$async!==true)this.errors=v.errors;return valid}function compile(schema,_meta){var schemaObj=this._addSchema(schema,undefined,_meta);return schemaObj.validate||this._compile(schemaObj)}function addSchema(schema,key,_skipValidation,_meta){if(Array.isArray(schema)){for(var i=0;i%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;var URL=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;var UUID=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var JSON_POINTER=/^(?:\/(?:[^~/]|~0|~1)*)*$/;var JSON_POINTER_URI_FRAGMENT=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;var RELATIVE_JSON_POINTER=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;module.exports=formats;function formats(mode){mode=mode=="full"?"full":"fast";return util.copy(formats[mode])}formats.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":URITEMPLATE,url:URL,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:HOSTNAME,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:UUID,"json-pointer":JSON_POINTER,"json-pointer-uri-fragment":JSON_POINTER_URI_FRAGMENT,"relative-json-pointer":RELATIVE_JSON_POINTER};formats.full={date:date,time:time,"date-time":date_time,uri:uri,"uri-reference":URIREF,"uri-template":URITEMPLATE,url:URL,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:HOSTNAME,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:UUID,"json-pointer":JSON_POINTER,"json-pointer-uri-fragment":JSON_POINTER_URI_FRAGMENT,"relative-json-pointer":RELATIVE_JSON_POINTER};function isLeapYear(year){return year%4===0&&(year%100!==0||year%400===0)}function date(str){var matches=str.match(DATE);if(!matches)return false;var year=+matches[1];var month=+matches[2];var day=+matches[3];return month>=1&&month<=12&&day>=1&&day<=(month==2&&isLeapYear(year)?29:DAYS[month])}function time(str,full){var matches=str.match(TIME);if(!matches)return false;var hour=matches[1];var minute=matches[2];var second=matches[3];var timeZone=matches[5];return(hour<=23&&minute<=59&&second<=59||hour==23&&minute==59&&second==60)&&(!full||timeZone)}var DATE_TIME_SEPARATOR=/t|\s/i;function date_time(str){var dateTime=str.split(DATE_TIME_SEPARATOR);return dateTime.length==2&&date(dateTime[0])&&time(dateTime[1],true)}var NOT_URI_FRAGMENT=/\/|:/;function uri(str){return NOT_URI_FRAGMENT.test(str)&&URI.test(str)}var Z_ANCHOR=/[^\\]\\Z/;function regex(str){if(Z_ANCHOR.test(str))return false;try{new RegExp(str);return true}catch(e){return false}}},{"./util":92}],87:[function(require,module,exports){"use strict";var resolve=require("./resolve"),util=require("./util"),errorClasses=require("./error_classes"),stableStringify=require("fast-json-stable-stringify");var validateGenerator=require("../dotjs/validate");var ucs2length=util.ucs2length;var equal=require("fast-deep-equal");var ValidationError=errorClasses.Validation;module.exports=compile;function compile(schema,root,localRefs,baseId){var self=this,opts=this._opts,refVal=[undefined],refs={},patterns=[],patternsHash={},defaults=[],defaultsHash={},customRules=[];root=root||{schema:schema,refVal:refVal,refs:refs};var c=checkCompiling.call(this,schema,root,baseId);var compilation=this._compilations[c.index];if(c.compiling)return compilation.callValidate=callValidate;var formats=this._formats;var RULES=this.RULES;try{var v=localCompile(schema,root,localRefs,baseId);compilation.validate=v;var cv=compilation.callValidate;if(cv){cv.schema=v.schema;cv.errors=null;cv.refs=v.refs;cv.refVal=v.refVal;cv.root=v.root;cv.$async=v.$async;if(opts.sourceCode)cv.source=v.source}return v}finally{endCompiling.call(this,schema,root,baseId)}function callValidate(){var validate=compilation.validate;var result=validate.apply(this,arguments);callValidate.errors=validate.errors;return result}function localCompile(_schema,_root,localRefs,baseId){var isRoot=!_root||_root&&_root.schema==_schema;if(_root.schema!=root.schema)return compile.call(self,_schema,_root,localRefs,baseId);var $async=_schema.$async===true;var sourceCode=validateGenerator({isTop:true,schema:_schema,isRoot:isRoot,baseId:baseId,root:_root,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:errorClasses.MissingRef,RULES:RULES,validate:validateGenerator,util:util,resolve:resolve,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:opts,formats:formats,logger:self.logger,self:self});sourceCode=vars(refVal,refValCode)+vars(patterns,patternCode)+vars(defaults,defaultCode)+vars(customRules,customRuleCode)+sourceCode;if(opts.processCode)sourceCode=opts.processCode(sourceCode,_schema);var validate;try{var makeValidate=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",sourceCode);validate=makeValidate(self,RULES,formats,root,refVal,defaults,customRules,equal,ucs2length,ValidationError);refVal[0]=validate}catch(e){self.logger.error("Error compiling schema, function code:",sourceCode);throw e}validate.schema=_schema;validate.errors=null;validate.refs=refs;validate.refVal=refVal;validate.root=isRoot?validate:_root;if($async)validate.$async=true;if(opts.sourceCode===true){validate.source={code:sourceCode,patterns:patterns,defaults:defaults}}return validate}function resolveRef(baseId,ref,isRoot){ref=resolve.url(baseId,ref);var refIndex=refs[ref];var _refVal,refCode;if(refIndex!==undefined){_refVal=refVal[refIndex];refCode="refVal["+refIndex+"]";return resolvedRef(_refVal,refCode)}if(!isRoot&&root.refs){var rootRefId=root.refs[ref];if(rootRefId!==undefined){_refVal=root.refVal[rootRefId];refCode=addLocalRef(ref,_refVal);return resolvedRef(_refVal,refCode)}}refCode=addLocalRef(ref);var v=resolve.call(self,localCompile,root,ref);if(v===undefined){var localSchema=localRefs&&localRefs[ref];if(localSchema){v=resolve.inlineRef(localSchema,opts.inlineRefs)?localSchema:compile.call(self,localSchema,root,localRefs,baseId)}}if(v===undefined){removeLocalRef(ref)}else{replaceLocalRef(ref,v);return resolvedRef(v,refCode)}}function addLocalRef(ref,v){var refId=refVal.length;refVal[refId]=v;refs[ref]=refId;return"refVal"+refId}function removeLocalRef(ref){delete refs[ref]}function replaceLocalRef(ref,v){var refId=refs[ref];refVal[refId]=v}function resolvedRef(refVal,code){return typeof refVal=="object"||typeof refVal=="boolean"?{code:code,schema:refVal,inline:true}:{code:code,$async:refVal&&!!refVal.$async}}function usePattern(regexStr){var index=patternsHash[regexStr];if(index===undefined){index=patternsHash[regexStr]=patterns.length;patterns[index]=regexStr}return"pattern"+index}function useDefault(value){switch(typeof value){case"boolean":case"number":return""+value;case"string":return util.toQuotedString(value);case"object":if(value===null)return"null";var valueStr=stableStringify(value);var index=defaultsHash[valueStr];if(index===undefined){index=defaultsHash[valueStr]=defaults.length;defaults[index]=value}return"default"+index}}function useCustomRule(rule,schema,parentSchema,it){if(self._opts.validateSchema!==false){var deps=rule.definition.dependencies;if(deps&&!deps.every(function(keyword){return Object.prototype.hasOwnProperty.call(parentSchema,keyword)}))throw new Error("parent schema must have all required keywords: "+deps.join(","));var validateSchema=rule.definition.validateSchema;if(validateSchema){var valid=validateSchema(schema);if(!valid){var message="keyword schema is invalid: "+self.errorsText(validateSchema.errors);if(self._opts.validateSchema=="log")self.logger.error(message);else throw new Error(message)}}}var compile=rule.definition.compile,inline=rule.definition.inline,macro=rule.definition.macro;var validate;if(compile){validate=compile.call(self,schema,parentSchema,it)}else if(macro){validate=macro.call(self,schema,parentSchema,it);if(opts.validateSchema!==false)self.validateSchema(validate,true)}else if(inline){validate=inline.call(self,it,rule.keyword,schema,parentSchema)}else{validate=rule.definition.validate;if(!validate)return}if(validate===undefined)throw new Error('custom keyword "'+rule.keyword+'"failed to compile');var index=customRules.length;customRules[index]=validate;return{code:"customRule"+index,validate:validate}}}function checkCompiling(schema,root,baseId){var index=compIndex.call(this,schema,root,baseId);if(index>=0)return{index:index,compiling:true};index=this._compilations.length;this._compilations[index]={schema:schema,root:root,baseId:baseId};return{index:index,compiling:false}}function endCompiling(schema,root,baseId){var i=compIndex.call(this,schema,root,baseId);if(i>=0)this._compilations.splice(i,1)}function compIndex(schema,root,baseId){for(var i=0;i=55296&&value<=56319&&pos=lvl)throw new Error("Cannot access property/index "+up+" levels up, current level is "+lvl);return paths[lvl-up]}if(up>lvl)throw new Error("Cannot access data "+up+" levels up, current level is "+lvl);data="data"+(lvl-up||"");if(!jsonPointer)return data}var expr=data;var segments=jsonPointer.split("/");for(var i=0;i",$notOp=$isMax?">":"<",$errorKeyword=undefined;if(!($isData||typeof $schema=="number"||$schema===undefined)){throw new Error($keyword+" must be number")}if(!($isDataExcl||$schemaExcl===undefined||typeof $schemaExcl=="number"||typeof $schemaExcl=="boolean")){throw new Error($exclusiveKeyword+" must be number or boolean")}if($isDataExcl){var $schemaValueExcl=it.util.getData($schemaExcl.$data,$dataLvl,it.dataPathArr),$exclusive="exclusive"+$lvl,$exclType="exclType"+$lvl,$exclIsNumber="exclIsNumber"+$lvl,$opExpr="op"+$lvl,$opStr="' + "+$opExpr+" + '";out+=" var schemaExcl"+$lvl+" = "+$schemaValueExcl+"; ";$schemaValueExcl="schemaExcl"+$lvl;out+=" var "+$exclusive+"; var "+$exclType+" = typeof "+$schemaValueExcl+"; if ("+$exclType+" != 'boolean' && "+$exclType+" != 'undefined' && "+$exclType+" != 'number') { ";var $errorKeyword=$exclusiveKeyword;var $$outStack=$$outStack||[];$$outStack.push(out);out="";if(it.createErrors!==false){out+=" { keyword: '"+($errorKeyword||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: {} ";if(it.opts.messages!==false){out+=" , message: '"+$exclusiveKeyword+" should be boolean' "}if(it.opts.verbose){out+=" , schema: validate.schema"+$schemaPath+" , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}var __err=out;out=$$outStack.pop();if(!it.compositeRule&&$breakOnError){if(it.async){out+=" throw new ValidationError(["+__err+"]); "}else{out+=" validate.errors = ["+__err+"]; return false; "}}else{out+=" var err = "+__err+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}out+=" } else if ( ";if($isData){out+=" ("+$schemaValue+" !== undefined && typeof "+$schemaValue+" != 'number') || "}out+=" "+$exclType+" == 'number' ? ( ("+$exclusive+" = "+$schemaValue+" === undefined || "+$schemaValueExcl+" "+$op+"= "+$schemaValue+") ? "+$data+" "+$notOp+"= "+$schemaValueExcl+" : "+$data+" "+$notOp+" "+$schemaValue+" ) : ( ("+$exclusive+" = "+$schemaValueExcl+" === true) ? "+$data+" "+$notOp+"= "+$schemaValue+" : "+$data+" "+$notOp+" "+$schemaValue+" ) || "+$data+" !== "+$data+") { var op"+$lvl+" = "+$exclusive+" ? '"+$op+"' : '"+$op+"='; ";if($schema===undefined){$errorKeyword=$exclusiveKeyword;$errSchemaPath=it.errSchemaPath+"/"+$exclusiveKeyword;$schemaValue=$schemaValueExcl;$isData=$isDataExcl}}else{var $exclIsNumber=typeof $schemaExcl=="number",$opStr=$op;if($exclIsNumber&&$isData){var $opExpr="'"+$opStr+"'";out+=" if ( ";if($isData){out+=" ("+$schemaValue+" !== undefined && typeof "+$schemaValue+" != 'number') || "}out+=" ( "+$schemaValue+" === undefined || "+$schemaExcl+" "+$op+"= "+$schemaValue+" ? "+$data+" "+$notOp+"= "+$schemaExcl+" : "+$data+" "+$notOp+" "+$schemaValue+" ) || "+$data+" !== "+$data+") { "}else{if($exclIsNumber&&$schema===undefined){$exclusive=true;$errorKeyword=$exclusiveKeyword;$errSchemaPath=it.errSchemaPath+"/"+$exclusiveKeyword;$schemaValue=$schemaExcl;$notOp+="="}else{if($exclIsNumber)$schemaValue=Math[$isMax?"min":"max"]($schemaExcl,$schema);if($schemaExcl===($exclIsNumber?$schemaValue:true)){$exclusive=true;$errorKeyword=$exclusiveKeyword;$errSchemaPath=it.errSchemaPath+"/"+$exclusiveKeyword;$notOp+="="}else{$exclusive=false;$opStr+="="}}var $opExpr="'"+$opStr+"'";out+=" if ( ";if($isData){out+=" ("+$schemaValue+" !== undefined && typeof "+$schemaValue+" != 'number') || "}out+=" "+$data+" "+$notOp+" "+$schemaValue+" || "+$data+" !== "+$data+") { "}}$errorKeyword=$errorKeyword||$keyword;var $$outStack=$$outStack||[];$$outStack.push(out);out="";if(it.createErrors!==false){out+=" { keyword: '"+($errorKeyword||"_limit")+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: { comparison: "+$opExpr+", limit: "+$schemaValue+", exclusive: "+$exclusive+" } ";if(it.opts.messages!==false){out+=" , message: 'should be "+$opStr+" ";if($isData){out+="' + "+$schemaValue}else{out+=""+$schemaValue+"'"}}if(it.opts.verbose){out+=" , schema: ";if($isData){out+="validate.schema"+$schemaPath}else{out+=""+$schema}out+=" , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}var __err=out;out=$$outStack.pop();if(!it.compositeRule&&$breakOnError){if(it.async){out+=" throw new ValidationError(["+__err+"]); "}else{out+=" validate.errors = ["+__err+"]; return false; "}}else{out+=" var err = "+__err+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}out+=" } ";if($breakOnError){out+=" else { "}return out}},{}],96:[function(require,module,exports){"use strict";module.exports=function generate__limitItems(it,$keyword,$ruleType){var out=" ";var $lvl=it.level;var $dataLvl=it.dataLevel;var $schema=it.schema[$keyword];var $schemaPath=it.schemaPath+it.util.getProperty($keyword);var $errSchemaPath=it.errSchemaPath+"/"+$keyword;var $breakOnError=!it.opts.allErrors;var $errorKeyword;var $data="data"+($dataLvl||"");var $isData=it.opts.$data&&$schema&&$schema.$data,$schemaValue;if($isData){out+=" var schema"+$lvl+" = "+it.util.getData($schema.$data,$dataLvl,it.dataPathArr)+"; ";$schemaValue="schema"+$lvl}else{$schemaValue=$schema}if(!($isData||typeof $schema=="number")){throw new Error($keyword+" must be number")}var $op=$keyword=="maxItems"?">":"<";out+="if ( ";if($isData){out+=" ("+$schemaValue+" !== undefined && typeof "+$schemaValue+" != 'number') || "}out+=" "+$data+".length "+$op+" "+$schemaValue+") { ";var $errorKeyword=$keyword;var $$outStack=$$outStack||[];$$outStack.push(out);out="";if(it.createErrors!==false){out+=" { keyword: '"+($errorKeyword||"_limitItems")+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: { limit: "+$schemaValue+" } ";if(it.opts.messages!==false){out+=" , message: 'should NOT have ";if($keyword=="maxItems"){out+="more"}else{out+="fewer"}out+=" than ";if($isData){out+="' + "+$schemaValue+" + '"}else{out+=""+$schema}out+=" items' "}if(it.opts.verbose){out+=" , schema: ";if($isData){out+="validate.schema"+$schemaPath}else{out+=""+$schema}out+=" , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}var __err=out;out=$$outStack.pop();if(!it.compositeRule&&$breakOnError){if(it.async){out+=" throw new ValidationError(["+__err+"]); "}else{out+=" validate.errors = ["+__err+"]; return false; "}}else{out+=" var err = "+__err+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}out+="} ";if($breakOnError){out+=" else { "}return out}},{}],97:[function(require,module,exports){"use strict";module.exports=function generate__limitLength(it,$keyword,$ruleType){var out=" ";var $lvl=it.level;var $dataLvl=it.dataLevel;var $schema=it.schema[$keyword];var $schemaPath=it.schemaPath+it.util.getProperty($keyword);var $errSchemaPath=it.errSchemaPath+"/"+$keyword;var $breakOnError=!it.opts.allErrors;var $errorKeyword;var $data="data"+($dataLvl||"");var $isData=it.opts.$data&&$schema&&$schema.$data,$schemaValue;if($isData){out+=" var schema"+$lvl+" = "+it.util.getData($schema.$data,$dataLvl,it.dataPathArr)+"; ";$schemaValue="schema"+$lvl}else{$schemaValue=$schema}if(!($isData||typeof $schema=="number")){throw new Error($keyword+" must be number")}var $op=$keyword=="maxLength"?">":"<";out+="if ( ";if($isData){out+=" ("+$schemaValue+" !== undefined && typeof "+$schemaValue+" != 'number') || "}if(it.opts.unicode===false){out+=" "+$data+".length "}else{out+=" ucs2length("+$data+") "}out+=" "+$op+" "+$schemaValue+") { ";var $errorKeyword=$keyword;var $$outStack=$$outStack||[];$$outStack.push(out);out="";if(it.createErrors!==false){out+=" { keyword: '"+($errorKeyword||"_limitLength")+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: { limit: "+$schemaValue+" } ";if(it.opts.messages!==false){out+=" , message: 'should NOT be ";if($keyword=="maxLength"){out+="longer"}else{out+="shorter"}out+=" than ";if($isData){out+="' + "+$schemaValue+" + '"}else{out+=""+$schema}out+=" characters' "}if(it.opts.verbose){out+=" , schema: ";if($isData){out+="validate.schema"+$schemaPath}else{out+=""+$schema}out+=" , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}var __err=out;out=$$outStack.pop();if(!it.compositeRule&&$breakOnError){if(it.async){out+=" throw new ValidationError(["+__err+"]); "}else{out+=" validate.errors = ["+__err+"]; return false; "}}else{out+=" var err = "+__err+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}out+="} ";if($breakOnError){out+=" else { "}return out}},{}],98:[function(require,module,exports){"use strict";module.exports=function generate__limitProperties(it,$keyword,$ruleType){var out=" ";var $lvl=it.level;var $dataLvl=it.dataLevel;var $schema=it.schema[$keyword];var $schemaPath=it.schemaPath+it.util.getProperty($keyword);var $errSchemaPath=it.errSchemaPath+"/"+$keyword;var $breakOnError=!it.opts.allErrors;var $errorKeyword;var $data="data"+($dataLvl||"");var $isData=it.opts.$data&&$schema&&$schema.$data,$schemaValue;if($isData){out+=" var schema"+$lvl+" = "+it.util.getData($schema.$data,$dataLvl,it.dataPathArr)+"; ";$schemaValue="schema"+$lvl}else{$schemaValue=$schema}if(!($isData||typeof $schema=="number")){throw new Error($keyword+" must be number")}var $op=$keyword=="maxProperties"?">":"<";out+="if ( ";if($isData){out+=" ("+$schemaValue+" !== undefined && typeof "+$schemaValue+" != 'number') || "}out+=" Object.keys("+$data+").length "+$op+" "+$schemaValue+") { ";var $errorKeyword=$keyword;var $$outStack=$$outStack||[];$$outStack.push(out);out="";if(it.createErrors!==false){out+=" { keyword: '"+($errorKeyword||"_limitProperties")+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: { limit: "+$schemaValue+" } ";if(it.opts.messages!==false){out+=" , message: 'should NOT have ";if($keyword=="maxProperties"){out+="more"}else{out+="fewer"}out+=" than ";if($isData){out+="' + "+$schemaValue+" + '"}else{out+=""+$schema}out+=" properties' "}if(it.opts.verbose){out+=" , schema: ";if($isData){out+="validate.schema"+$schemaPath}else{out+=""+$schema}out+=" , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}var __err=out;out=$$outStack.pop();if(!it.compositeRule&&$breakOnError){if(it.async){out+=" throw new ValidationError(["+__err+"]); "}else{out+=" validate.errors = ["+__err+"]; return false; "}}else{out+=" var err = "+__err+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}out+="} ";if($breakOnError){out+=" else { "}return out}},{}],99:[function(require,module,exports){"use strict";module.exports=function generate_allOf(it,$keyword,$ruleType){var out=" ";var $schema=it.schema[$keyword];var $schemaPath=it.schemaPath+it.util.getProperty($keyword);var $errSchemaPath=it.errSchemaPath+"/"+$keyword;var $breakOnError=!it.opts.allErrors;var $it=it.util.copy(it);var $closingBraces="";$it.level++;var $nextValid="valid"+$it.level;var $currentBaseId=$it.baseId,$allSchemasEmpty=true;var arr1=$schema;if(arr1){var $sch,$i=-1,l1=arr1.length-1;while($i0:it.util.schemaHasRules($sch,it.RULES.all)){$allSchemasEmpty=false;$it.schema=$sch;$it.schemaPath=$schemaPath+"["+$i+"]";$it.errSchemaPath=$errSchemaPath+"/"+$i;out+=" "+it.validate($it)+" ";$it.baseId=$currentBaseId;if($breakOnError){out+=" if ("+$nextValid+") { ";$closingBraces+="}"}}}}if($breakOnError){if($allSchemasEmpty){out+=" if (true) { "}else{out+=" "+$closingBraces.slice(0,-1)+" "}}return out}},{}],100:[function(require,module,exports){"use strict";module.exports=function generate_anyOf(it,$keyword,$ruleType){var out=" ";var $lvl=it.level;var $dataLvl=it.dataLevel;var $schema=it.schema[$keyword];var $schemaPath=it.schemaPath+it.util.getProperty($keyword);var $errSchemaPath=it.errSchemaPath+"/"+$keyword;var $breakOnError=!it.opts.allErrors;var $data="data"+($dataLvl||"");var $valid="valid"+$lvl;var $errs="errs__"+$lvl;var $it=it.util.copy(it);var $closingBraces="";$it.level++;var $nextValid="valid"+$it.level;var $noEmptySchema=$schema.every(function($sch){return it.opts.strictKeywords?typeof $sch=="object"&&Object.keys($sch).length>0:it.util.schemaHasRules($sch,it.RULES.all)});if($noEmptySchema){var $currentBaseId=$it.baseId;out+=" var "+$errs+" = errors; var "+$valid+" = false; ";var $wasComposite=it.compositeRule;it.compositeRule=$it.compositeRule=true;var arr1=$schema;if(arr1){var $sch,$i=-1,l1=arr1.length-1;while($i0:it.util.schemaHasRules($schema,it.RULES.all);out+="var "+$errs+" = errors;var "+$valid+";";if($nonEmptySchema){var $wasComposite=it.compositeRule;it.compositeRule=$it.compositeRule=true;$it.schema=$schema;$it.schemaPath=$schemaPath;$it.errSchemaPath=$errSchemaPath;out+=" var "+$nextValid+" = false; for (var "+$idx+" = 0; "+$idx+" < "+$data+".length; "+$idx+"++) { ";$it.errorPath=it.util.getPathExpr(it.errorPath,$idx,it.opts.jsonPointers,true);var $passData=$data+"["+$idx+"]";$it.dataPathArr[$dataNxt]=$idx;var $code=it.validate($it);$it.baseId=$currentBaseId;if(it.util.varOccurences($code,$nextData)<2){out+=" "+it.util.varReplace($code,$nextData,$passData)+" "}else{out+=" var "+$nextData+" = "+$passData+"; "+$code+" "}out+=" if ("+$nextValid+") break; } ";it.compositeRule=$it.compositeRule=$wasComposite;out+=" "+$closingBraces+" if (!"+$nextValid+") {"}else{out+=" if ("+$data+".length == 0) {"}var $$outStack=$$outStack||[];$$outStack.push(out);out="";if(it.createErrors!==false){out+=" { keyword: '"+"contains"+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: {} ";if(it.opts.messages!==false){out+=" , message: 'should contain a valid item' "}if(it.opts.verbose){out+=" , schema: validate.schema"+$schemaPath+" , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}var __err=out;out=$$outStack.pop();if(!it.compositeRule&&$breakOnError){if(it.async){out+=" throw new ValidationError(["+__err+"]); "}else{out+=" validate.errors = ["+__err+"]; return false; "}}else{out+=" var err = "+__err+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}out+=" } else { ";if($nonEmptySchema){out+=" errors = "+$errs+"; if (vErrors !== null) { if ("+$errs+") vErrors.length = "+$errs+"; else vErrors = null; } "}if(it.opts.allErrors){out+=" } "}return out}},{}],104:[function(require,module,exports){"use strict";module.exports=function generate_custom(it,$keyword,$ruleType){var out=" ";var $lvl=it.level;var $dataLvl=it.dataLevel;var $schema=it.schema[$keyword];var $schemaPath=it.schemaPath+it.util.getProperty($keyword);var $errSchemaPath=it.errSchemaPath+"/"+$keyword;var $breakOnError=!it.opts.allErrors;var $errorKeyword;var $data="data"+($dataLvl||"");var $valid="valid"+$lvl;var $errs="errs__"+$lvl;var $isData=it.opts.$data&&$schema&&$schema.$data,$schemaValue;if($isData){out+=" var schema"+$lvl+" = "+it.util.getData($schema.$data,$dataLvl,it.dataPathArr)+"; ";$schemaValue="schema"+$lvl}else{$schemaValue=$schema}var $rule=this,$definition="definition"+$lvl,$rDef=$rule.definition,$closingBraces="";var $compile,$inline,$macro,$ruleValidate,$validateCode;if($isData&&$rDef.$data){$validateCode="keywordValidate"+$lvl;var $validateSchema=$rDef.validateSchema;out+=" var "+$definition+" = RULES.custom['"+$keyword+"'].definition; var "+$validateCode+" = "+$definition+".validate;"}else{$ruleValidate=it.useCustomRule($rule,$schema,it.schema,it);if(!$ruleValidate)return;$schemaValue="validate.schema"+$schemaPath;$validateCode=$ruleValidate.code;$compile=$rDef.compile;$inline=$rDef.inline;$macro=$rDef.macro}var $ruleErrs=$validateCode+".errors",$i="i"+$lvl,$ruleErr="ruleErr"+$lvl,$asyncKeyword=$rDef.async;if($asyncKeyword&&!it.async)throw new Error("async keyword in sync schema");if(!($inline||$macro)){out+=""+$ruleErrs+" = null;"}out+="var "+$errs+" = errors;var "+$valid+";";if($isData&&$rDef.$data){$closingBraces+="}";out+=" if ("+$schemaValue+" === undefined) { "+$valid+" = true; } else { ";if($validateSchema){$closingBraces+="}";out+=" "+$valid+" = "+$definition+".validateSchema("+$schemaValue+"); if ("+$valid+") { "}}if($inline){if($rDef.statements){out+=" "+$ruleValidate.validate+" "}else{out+=" "+$valid+" = "+$ruleValidate.validate+"; "}}else if($macro){var $it=it.util.copy(it);var $closingBraces="";$it.level++;var $nextValid="valid"+$it.level;$it.schema=$ruleValidate.validate;$it.schemaPath="";var $wasComposite=it.compositeRule;it.compositeRule=$it.compositeRule=true;var $code=it.validate($it).replace(/validate\.schema/g,$validateCode);it.compositeRule=$it.compositeRule=$wasComposite;out+=" "+$code}else{var $$outStack=$$outStack||[];$$outStack.push(out);out="";out+=" "+$validateCode+".call( ";if(it.opts.passContext){out+="this"}else{out+="self"}if($compile||$rDef.schema===false){out+=" , "+$data+" "}else{out+=" , "+$schemaValue+" , "+$data+" , validate.schema"+it.schemaPath+" "}out+=" , (dataPath || '')";if(it.errorPath!='""'){out+=" + "+it.errorPath}var $parentData=$dataLvl?"data"+($dataLvl-1||""):"parentData",$parentDataProperty=$dataLvl?it.dataPathArr[$dataLvl]:"parentDataProperty";out+=" , "+$parentData+" , "+$parentDataProperty+" , rootData ) ";var def_callRuleValidate=out;out=$$outStack.pop();if($rDef.errors===false){out+=" "+$valid+" = ";if($asyncKeyword){out+="await "}out+=""+def_callRuleValidate+"; "}else{if($asyncKeyword){$ruleErrs="customErrors"+$lvl;out+=" var "+$ruleErrs+" = null; try { "+$valid+" = await "+def_callRuleValidate+"; } catch (e) { "+$valid+" = false; if (e instanceof ValidationError) "+$ruleErrs+" = e.errors; else throw e; } "}else{out+=" "+$ruleErrs+" = null; "+$valid+" = "+def_callRuleValidate+"; "}}}if($rDef.modifying){out+=" if ("+$parentData+") "+$data+" = "+$parentData+"["+$parentDataProperty+"];"}out+=""+$closingBraces;if($rDef.valid){if($breakOnError){out+=" if (true) { "}}else{out+=" if ( ";if($rDef.valid===undefined){out+=" !";if($macro){out+=""+$nextValid}else{out+=""+$valid}}else{out+=" "+!$rDef.valid+" "}out+=") { ";$errorKeyword=$rule.keyword;var $$outStack=$$outStack||[];$$outStack.push(out);out="";var $$outStack=$$outStack||[];$$outStack.push(out);out="";if(it.createErrors!==false){out+=" { keyword: '"+($errorKeyword||"custom")+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: { keyword: '"+$rule.keyword+"' } ";if(it.opts.messages!==false){out+=" , message: 'should pass \""+$rule.keyword+"\" keyword validation' "}if(it.opts.verbose){out+=" , schema: validate.schema"+$schemaPath+" , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}var __err=out;out=$$outStack.pop();if(!it.compositeRule&&$breakOnError){if(it.async){out+=" throw new ValidationError(["+__err+"]); "}else{out+=" validate.errors = ["+__err+"]; return false; "}}else{out+=" var err = "+__err+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}var def_customError=out;out=$$outStack.pop();if($inline){if($rDef.errors){if($rDef.errors!="full"){out+=" for (var "+$i+"="+$errs+"; "+$i+"0:it.util.schemaHasRules($sch,it.RULES.all)){out+=" "+$nextValid+" = true; if ( "+$data+it.util.getProperty($property)+" !== undefined ";if($ownProperties){out+=" && Object.prototype.hasOwnProperty.call("+$data+", '"+it.util.escapeQuotes($property)+"') "}out+=") { ";$it.schema=$sch;$it.schemaPath=$schemaPath+it.util.getProperty($property);$it.errSchemaPath=$errSchemaPath+"/"+it.util.escapeFragment($property);out+=" "+it.validate($it)+" ";$it.baseId=$currentBaseId;out+=" } ";if($breakOnError){out+=" if ("+$nextValid+") { ";$closingBraces+="}"}}}if($breakOnError){out+=" "+$closingBraces+" if ("+$errs+" == errors) {"}return out}},{}],106:[function(require,module,exports){"use strict";module.exports=function generate_enum(it,$keyword,$ruleType){var out=" ";var $lvl=it.level;var $dataLvl=it.dataLevel;var $schema=it.schema[$keyword];var $schemaPath=it.schemaPath+it.util.getProperty($keyword);var $errSchemaPath=it.errSchemaPath+"/"+$keyword;var $breakOnError=!it.opts.allErrors;var $data="data"+($dataLvl||"");var $valid="valid"+$lvl;var $isData=it.opts.$data&&$schema&&$schema.$data,$schemaValue;if($isData){out+=" var schema"+$lvl+" = "+it.util.getData($schema.$data,$dataLvl,it.dataPathArr)+"; ";$schemaValue="schema"+$lvl}else{$schemaValue=$schema}var $i="i"+$lvl,$vSchema="schema"+$lvl;if(!$isData){out+=" var "+$vSchema+" = validate.schema"+$schemaPath+";"}out+="var "+$valid+";";if($isData){out+=" if (schema"+$lvl+" === undefined) "+$valid+" = true; else if (!Array.isArray(schema"+$lvl+")) "+$valid+" = false; else {"}out+=""+$valid+" = false;for (var "+$i+"=0; "+$i+"<"+$vSchema+".length; "+$i+"++) if (equal("+$data+", "+$vSchema+"["+$i+"])) { "+$valid+" = true; break; }";if($isData){out+=" } "}out+=" if (!"+$valid+") { ";var $$outStack=$$outStack||[];$$outStack.push(out);out="";if(it.createErrors!==false){out+=" { keyword: '"+"enum"+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: { allowedValues: schema"+$lvl+" } ";if(it.opts.messages!==false){out+=" , message: 'should be equal to one of the allowed values' "}if(it.opts.verbose){out+=" , schema: validate.schema"+$schemaPath+" , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}var __err=out;out=$$outStack.pop();if(!it.compositeRule&&$breakOnError){if(it.async){out+=" throw new ValidationError(["+__err+"]); "}else{out+=" validate.errors = ["+__err+"]; return false; "}}else{out+=" var err = "+__err+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}out+=" }";if($breakOnError){out+=" else { "}return out}},{}],107:[function(require,module,exports){"use strict";module.exports=function generate_format(it,$keyword,$ruleType){var out=" ";var $lvl=it.level;var $dataLvl=it.dataLevel;var $schema=it.schema[$keyword];var $schemaPath=it.schemaPath+it.util.getProperty($keyword);var $errSchemaPath=it.errSchemaPath+"/"+$keyword;var $breakOnError=!it.opts.allErrors;var $data="data"+($dataLvl||"");if(it.opts.format===false){if($breakOnError){out+=" if (true) { "}return out}var $isData=it.opts.$data&&$schema&&$schema.$data,$schemaValue;if($isData){out+=" var schema"+$lvl+" = "+it.util.getData($schema.$data,$dataLvl,it.dataPathArr)+"; ";$schemaValue="schema"+$lvl}else{$schemaValue=$schema}var $unknownFormats=it.opts.unknownFormats,$allowUnknown=Array.isArray($unknownFormats);if($isData){var $format="format"+$lvl,$isObject="isObject"+$lvl,$formatType="formatType"+$lvl;out+=" var "+$format+" = formats["+$schemaValue+"]; var "+$isObject+" = typeof "+$format+" == 'object' && !("+$format+" instanceof RegExp) && "+$format+".validate; var "+$formatType+" = "+$isObject+" && "+$format+".type || 'string'; if ("+$isObject+") { ";if(it.async){out+=" var async"+$lvl+" = "+$format+".async; "}out+=" "+$format+" = "+$format+".validate; } if ( ";if($isData){out+=" ("+$schemaValue+" !== undefined && typeof "+$schemaValue+" != 'string') || "}out+=" (";if($unknownFormats!="ignore"){out+=" ("+$schemaValue+" && !"+$format+" ";if($allowUnknown){out+=" && self._opts.unknownFormats.indexOf("+$schemaValue+") == -1 "}out+=") || "}out+=" ("+$format+" && "+$formatType+" == '"+$ruleType+"' && !(typeof "+$format+" == 'function' ? ";if(it.async){out+=" (async"+$lvl+" ? await "+$format+"("+$data+") : "+$format+"("+$data+")) "}else{out+=" "+$format+"("+$data+") "}out+=" : "+$format+".test("+$data+"))))) {"}else{var $format=it.formats[$schema];if(!$format){if($unknownFormats=="ignore"){it.logger.warn('unknown format "'+$schema+'" ignored in schema at path "'+it.errSchemaPath+'"');if($breakOnError){out+=" if (true) { "}return out}else if($allowUnknown&&$unknownFormats.indexOf($schema)>=0){if($breakOnError){out+=" if (true) { "}return out}else{throw new Error('unknown format "'+$schema+'" is used in schema at path "'+it.errSchemaPath+'"')}}var $isObject=typeof $format=="object"&&!($format instanceof RegExp)&&$format.validate;var $formatType=$isObject&&$format.type||"string";if($isObject){var $async=$format.async===true;$format=$format.validate}if($formatType!=$ruleType){if($breakOnError){out+=" if (true) { "}return out}if($async){if(!it.async)throw new Error("async format in sync schema");var $formatRef="formats"+it.util.getProperty($schema)+".validate";out+=" if (!(await "+$formatRef+"("+$data+"))) { "}else{out+=" if (! ";var $formatRef="formats"+it.util.getProperty($schema);if($isObject)$formatRef+=".validate";if(typeof $format=="function"){out+=" "+$formatRef+"("+$data+") "}else{out+=" "+$formatRef+".test("+$data+") "}out+=") { "}}var $$outStack=$$outStack||[];$$outStack.push(out);out="";if(it.createErrors!==false){out+=" { keyword: '"+"format"+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: { format: ";if($isData){out+=""+$schemaValue}else{out+=""+it.util.toQuotedString($schema)}out+=" } ";if(it.opts.messages!==false){out+=" , message: 'should match format \"";if($isData){out+="' + "+$schemaValue+" + '"}else{out+=""+it.util.escapeQuotes($schema)}out+="\"' "}if(it.opts.verbose){out+=" , schema: ";if($isData){out+="validate.schema"+$schemaPath}else{out+=""+it.util.toQuotedString($schema)}out+=" , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}var __err=out;out=$$outStack.pop();if(!it.compositeRule&&$breakOnError){if(it.async){out+=" throw new ValidationError(["+__err+"]); "}else{out+=" validate.errors = ["+__err+"]; return false; "}}else{out+=" var err = "+__err+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}out+=" } ";if($breakOnError){out+=" else { "}return out}},{}],108:[function(require,module,exports){"use strict";module.exports=function generate_if(it,$keyword,$ruleType){var out=" ";var $lvl=it.level;var $dataLvl=it.dataLevel;var $schema=it.schema[$keyword];var $schemaPath=it.schemaPath+it.util.getProperty($keyword);var $errSchemaPath=it.errSchemaPath+"/"+$keyword;var $breakOnError=!it.opts.allErrors;var $data="data"+($dataLvl||"");var $valid="valid"+$lvl;var $errs="errs__"+$lvl;var $it=it.util.copy(it);$it.level++;var $nextValid="valid"+$it.level;var $thenSch=it.schema["then"],$elseSch=it.schema["else"],$thenPresent=$thenSch!==undefined&&(it.opts.strictKeywords?typeof $thenSch=="object"&&Object.keys($thenSch).length>0:it.util.schemaHasRules($thenSch,it.RULES.all)),$elsePresent=$elseSch!==undefined&&(it.opts.strictKeywords?typeof $elseSch=="object"&&Object.keys($elseSch).length>0:it.util.schemaHasRules($elseSch,it.RULES.all)),$currentBaseId=$it.baseId;if($thenPresent||$elsePresent){var $ifClause;$it.createErrors=false;$it.schema=$schema;$it.schemaPath=$schemaPath;$it.errSchemaPath=$errSchemaPath;out+=" var "+$errs+" = errors; var "+$valid+" = true; ";var $wasComposite=it.compositeRule;it.compositeRule=$it.compositeRule=true;out+=" "+it.validate($it)+" ";$it.baseId=$currentBaseId;$it.createErrors=true;out+=" errors = "+$errs+"; if (vErrors !== null) { if ("+$errs+") vErrors.length = "+$errs+"; else vErrors = null; } ";it.compositeRule=$it.compositeRule=$wasComposite;if($thenPresent){out+=" if ("+$nextValid+") { ";$it.schema=it.schema["then"];$it.schemaPath=it.schemaPath+".then";$it.errSchemaPath=it.errSchemaPath+"/then";out+=" "+it.validate($it)+" ";$it.baseId=$currentBaseId;out+=" "+$valid+" = "+$nextValid+"; ";if($thenPresent&&$elsePresent){$ifClause="ifClause"+$lvl;out+=" var "+$ifClause+" = 'then'; "}else{$ifClause="'then'"}out+=" } ";if($elsePresent){out+=" else { "}}else{out+=" if (!"+$nextValid+") { "}if($elsePresent){$it.schema=it.schema["else"];$it.schemaPath=it.schemaPath+".else";$it.errSchemaPath=it.errSchemaPath+"/else";out+=" "+it.validate($it)+" ";$it.baseId=$currentBaseId;out+=" "+$valid+" = "+$nextValid+"; ";if($thenPresent&&$elsePresent){$ifClause="ifClause"+$lvl;out+=" var "+$ifClause+" = 'else'; "}else{$ifClause="'else'"}out+=" } "}out+=" if (!"+$valid+") { var err = ";if(it.createErrors!==false){out+=" { keyword: '"+"if"+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: { failingKeyword: "+$ifClause+" } ";if(it.opts.messages!==false){out+=" , message: 'should match \"' + "+$ifClause+" + '\" schema' "}if(it.opts.verbose){out+=" , schema: validate.schema"+$schemaPath+" , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}out+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!it.compositeRule&&$breakOnError){if(it.async){out+=" throw new ValidationError(vErrors); "}else{out+=" validate.errors = vErrors; return false; "}}out+=" } ";if($breakOnError){out+=" else { "}}else{if($breakOnError){out+=" if (true) { "}}return out}},{}],109:[function(require,module,exports){"use strict";module.exports={$ref:require("./ref"),allOf:require("./allOf"),anyOf:require("./anyOf"),$comment:require("./comment"),const:require("./const"),contains:require("./contains"),dependencies:require("./dependencies"),enum:require("./enum"),format:require("./format"),if:require("./if"),items:require("./items"),maximum:require("./_limit"),minimum:require("./_limit"),maxItems:require("./_limitItems"),minItems:require("./_limitItems"),maxLength:require("./_limitLength"),minLength:require("./_limitLength"),maxProperties:require("./_limitProperties"),minProperties:require("./_limitProperties"),multipleOf:require("./multipleOf"),not:require("./not"),oneOf:require("./oneOf"),pattern:require("./pattern"),properties:require("./properties"),propertyNames:require("./propertyNames"),required:require("./required"),uniqueItems:require("./uniqueItems"),validate:require("./validate")}},{"./_limit":95,"./_limitItems":96,"./_limitLength":97,"./_limitProperties":98,"./allOf":99,"./anyOf":100,"./comment":101,"./const":102,"./contains":103,"./dependencies":105,"./enum":106,"./format":107,"./if":108,"./items":110,"./multipleOf":111,"./not":112,"./oneOf":113,"./pattern":114,"./properties":115,"./propertyNames":116,"./ref":117,"./required":118,"./uniqueItems":119,"./validate":120}],110:[function(require,module,exports){"use strict";module.exports=function generate_items(it,$keyword,$ruleType){var out=" ";var $lvl=it.level;var $dataLvl=it.dataLevel;var $schema=it.schema[$keyword];var $schemaPath=it.schemaPath+it.util.getProperty($keyword);var $errSchemaPath=it.errSchemaPath+"/"+$keyword;var $breakOnError=!it.opts.allErrors;var $data="data"+($dataLvl||"");var $valid="valid"+$lvl;var $errs="errs__"+$lvl;var $it=it.util.copy(it);var $closingBraces="";$it.level++;var $nextValid="valid"+$it.level;var $idx="i"+$lvl,$dataNxt=$it.dataLevel=it.dataLevel+1,$nextData="data"+$dataNxt,$currentBaseId=it.baseId;out+="var "+$errs+" = errors;var "+$valid+";";if(Array.isArray($schema)){var $additionalItems=it.schema.additionalItems;if($additionalItems===false){out+=" "+$valid+" = "+$data+".length <= "+$schema.length+"; ";var $currErrSchemaPath=$errSchemaPath;$errSchemaPath=it.errSchemaPath+"/additionalItems";out+=" if (!"+$valid+") { ";var $$outStack=$$outStack||[];$$outStack.push(out);out="";if(it.createErrors!==false){out+=" { keyword: '"+"additionalItems"+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: { limit: "+$schema.length+" } ";if(it.opts.messages!==false){out+=" , message: 'should NOT have more than "+$schema.length+" items' "}if(it.opts.verbose){out+=" , schema: false , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}var __err=out;out=$$outStack.pop();if(!it.compositeRule&&$breakOnError){if(it.async){out+=" throw new ValidationError(["+__err+"]); "}else{out+=" validate.errors = ["+__err+"]; return false; "}}else{out+=" var err = "+__err+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}out+=" } ";$errSchemaPath=$currErrSchemaPath;if($breakOnError){$closingBraces+="}";out+=" else { "}}var arr1=$schema;if(arr1){var $sch,$i=-1,l1=arr1.length-1;while($i0:it.util.schemaHasRules($sch,it.RULES.all)){out+=" "+$nextValid+" = true; if ("+$data+".length > "+$i+") { ";var $passData=$data+"["+$i+"]";$it.schema=$sch;$it.schemaPath=$schemaPath+"["+$i+"]";$it.errSchemaPath=$errSchemaPath+"/"+$i;$it.errorPath=it.util.getPathExpr(it.errorPath,$i,it.opts.jsonPointers,true);$it.dataPathArr[$dataNxt]=$i;var $code=it.validate($it);$it.baseId=$currentBaseId;if(it.util.varOccurences($code,$nextData)<2){out+=" "+it.util.varReplace($code,$nextData,$passData)+" "}else{out+=" var "+$nextData+" = "+$passData+"; "+$code+" "}out+=" } ";if($breakOnError){out+=" if ("+$nextValid+") { ";$closingBraces+="}"}}}}if(typeof $additionalItems=="object"&&(it.opts.strictKeywords?typeof $additionalItems=="object"&&Object.keys($additionalItems).length>0:it.util.schemaHasRules($additionalItems,it.RULES.all))){$it.schema=$additionalItems;$it.schemaPath=it.schemaPath+".additionalItems";$it.errSchemaPath=it.errSchemaPath+"/additionalItems";out+=" "+$nextValid+" = true; if ("+$data+".length > "+$schema.length+") { for (var "+$idx+" = "+$schema.length+"; "+$idx+" < "+$data+".length; "+$idx+"++) { ";$it.errorPath=it.util.getPathExpr(it.errorPath,$idx,it.opts.jsonPointers,true);var $passData=$data+"["+$idx+"]";$it.dataPathArr[$dataNxt]=$idx;var $code=it.validate($it);$it.baseId=$currentBaseId;if(it.util.varOccurences($code,$nextData)<2){out+=" "+it.util.varReplace($code,$nextData,$passData)+" "}else{out+=" var "+$nextData+" = "+$passData+"; "+$code+" "}if($breakOnError){out+=" if (!"+$nextValid+") break; "}out+=" } } ";if($breakOnError){out+=" if ("+$nextValid+") { ";$closingBraces+="}"}}}else if(it.opts.strictKeywords?typeof $schema=="object"&&Object.keys($schema).length>0:it.util.schemaHasRules($schema,it.RULES.all)){$it.schema=$schema;$it.schemaPath=$schemaPath;$it.errSchemaPath=$errSchemaPath;out+=" for (var "+$idx+" = "+0+"; "+$idx+" < "+$data+".length; "+$idx+"++) { ";$it.errorPath=it.util.getPathExpr(it.errorPath,$idx,it.opts.jsonPointers,true);var $passData=$data+"["+$idx+"]";$it.dataPathArr[$dataNxt]=$idx;var $code=it.validate($it);$it.baseId=$currentBaseId;if(it.util.varOccurences($code,$nextData)<2){out+=" "+it.util.varReplace($code,$nextData,$passData)+" "}else{out+=" var "+$nextData+" = "+$passData+"; "+$code+" "}if($breakOnError){out+=" if (!"+$nextValid+") break; "}out+=" }"}if($breakOnError){out+=" "+$closingBraces+" if ("+$errs+" == errors) {"}return out}},{}],111:[function(require,module,exports){"use strict";module.exports=function generate_multipleOf(it,$keyword,$ruleType){var out=" ";var $lvl=it.level;var $dataLvl=it.dataLevel;var $schema=it.schema[$keyword];var $schemaPath=it.schemaPath+it.util.getProperty($keyword);var $errSchemaPath=it.errSchemaPath+"/"+$keyword;var $breakOnError=!it.opts.allErrors;var $data="data"+($dataLvl||"");var $isData=it.opts.$data&&$schema&&$schema.$data,$schemaValue;if($isData){out+=" var schema"+$lvl+" = "+it.util.getData($schema.$data,$dataLvl,it.dataPathArr)+"; ";$schemaValue="schema"+$lvl}else{$schemaValue=$schema}if(!($isData||typeof $schema=="number")){throw new Error($keyword+" must be number")}out+="var division"+$lvl+";if (";if($isData){out+=" "+$schemaValue+" !== undefined && ( typeof "+$schemaValue+" != 'number' || "}out+=" (division"+$lvl+" = "+$data+" / "+$schemaValue+", ";if(it.opts.multipleOfPrecision){out+=" Math.abs(Math.round(division"+$lvl+") - division"+$lvl+") > 1e-"+it.opts.multipleOfPrecision+" "}else{out+=" division"+$lvl+" !== parseInt(division"+$lvl+") "}out+=" ) ";if($isData){out+=" ) "}out+=" ) { ";var $$outStack=$$outStack||[];$$outStack.push(out);out="";if(it.createErrors!==false){out+=" { keyword: '"+"multipleOf"+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: { multipleOf: "+$schemaValue+" } ";if(it.opts.messages!==false){out+=" , message: 'should be multiple of ";if($isData){out+="' + "+$schemaValue}else{out+=""+$schemaValue+"'"}}if(it.opts.verbose){out+=" , schema: ";if($isData){out+="validate.schema"+$schemaPath}else{out+=""+$schema}out+=" , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}var __err=out;out=$$outStack.pop();if(!it.compositeRule&&$breakOnError){if(it.async){out+=" throw new ValidationError(["+__err+"]); "}else{out+=" validate.errors = ["+__err+"]; return false; "}}else{out+=" var err = "+__err+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}out+="} ";if($breakOnError){out+=" else { "}return out}},{}],112:[function(require,module,exports){"use strict";module.exports=function generate_not(it,$keyword,$ruleType){var out=" ";var $lvl=it.level;var $dataLvl=it.dataLevel;var $schema=it.schema[$keyword];var $schemaPath=it.schemaPath+it.util.getProperty($keyword);var $errSchemaPath=it.errSchemaPath+"/"+$keyword;var $breakOnError=!it.opts.allErrors;var $data="data"+($dataLvl||"");var $errs="errs__"+$lvl;var $it=it.util.copy(it);$it.level++;var $nextValid="valid"+$it.level;if(it.opts.strictKeywords?typeof $schema=="object"&&Object.keys($schema).length>0:it.util.schemaHasRules($schema,it.RULES.all)){$it.schema=$schema;$it.schemaPath=$schemaPath;$it.errSchemaPath=$errSchemaPath;out+=" var "+$errs+" = errors; ";var $wasComposite=it.compositeRule;it.compositeRule=$it.compositeRule=true;$it.createErrors=false;var $allErrorsOption;if($it.opts.allErrors){$allErrorsOption=$it.opts.allErrors;$it.opts.allErrors=false}out+=" "+it.validate($it)+" ";$it.createErrors=true;if($allErrorsOption)$it.opts.allErrors=$allErrorsOption;it.compositeRule=$it.compositeRule=$wasComposite;out+=" if ("+$nextValid+") { ";var $$outStack=$$outStack||[];$$outStack.push(out);out="";if(it.createErrors!==false){out+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: {} ";if(it.opts.messages!==false){out+=" , message: 'should NOT be valid' "}if(it.opts.verbose){out+=" , schema: validate.schema"+$schemaPath+" , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}var __err=out;out=$$outStack.pop();if(!it.compositeRule&&$breakOnError){if(it.async){out+=" throw new ValidationError(["+__err+"]); "}else{out+=" validate.errors = ["+__err+"]; return false; "}}else{out+=" var err = "+__err+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}out+=" } else { errors = "+$errs+"; if (vErrors !== null) { if ("+$errs+") vErrors.length = "+$errs+"; else vErrors = null; } ";if(it.opts.allErrors){out+=" } "}}else{out+=" var err = ";if(it.createErrors!==false){out+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: {} ";if(it.opts.messages!==false){out+=" , message: 'should NOT be valid' "}if(it.opts.verbose){out+=" , schema: validate.schema"+$schemaPath+" , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}out+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if($breakOnError){out+=" if (false) { "}}return out}},{}],113:[function(require,module,exports){"use strict";module.exports=function generate_oneOf(it,$keyword,$ruleType){var out=" ";var $lvl=it.level;var $dataLvl=it.dataLevel;var $schema=it.schema[$keyword];var $schemaPath=it.schemaPath+it.util.getProperty($keyword);var $errSchemaPath=it.errSchemaPath+"/"+$keyword;var $breakOnError=!it.opts.allErrors;var $data="data"+($dataLvl||"");var $valid="valid"+$lvl;var $errs="errs__"+$lvl;var $it=it.util.copy(it);var $closingBraces="";$it.level++;var $nextValid="valid"+$it.level;var $currentBaseId=$it.baseId,$prevValid="prevValid"+$lvl,$passingSchemas="passingSchemas"+$lvl;out+="var "+$errs+" = errors , "+$prevValid+" = false , "+$valid+" = false , "+$passingSchemas+" = null; ";var $wasComposite=it.compositeRule;it.compositeRule=$it.compositeRule=true;var arr1=$schema;if(arr1){var $sch,$i=-1,l1=arr1.length-1;while($i0:it.util.schemaHasRules($sch,it.RULES.all)){$it.schema=$sch;$it.schemaPath=$schemaPath+"["+$i+"]";$it.errSchemaPath=$errSchemaPath+"/"+$i;out+=" "+it.validate($it)+" ";$it.baseId=$currentBaseId}else{out+=" var "+$nextValid+" = true; "}if($i){out+=" if ("+$nextValid+" && "+$prevValid+") { "+$valid+" = false; "+$passingSchemas+" = ["+$passingSchemas+", "+$i+"]; } else { ";$closingBraces+="}"}out+=" if ("+$nextValid+") { "+$valid+" = "+$prevValid+" = true; "+$passingSchemas+" = "+$i+"; }"}}it.compositeRule=$it.compositeRule=$wasComposite;out+=""+$closingBraces+"if (!"+$valid+") { var err = ";if(it.createErrors!==false){out+=" { keyword: '"+"oneOf"+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: { passingSchemas: "+$passingSchemas+" } ";if(it.opts.messages!==false){out+=" , message: 'should match exactly one schema in oneOf' "}if(it.opts.verbose){out+=" , schema: validate.schema"+$schemaPath+" , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}out+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!it.compositeRule&&$breakOnError){if(it.async){out+=" throw new ValidationError(vErrors); "}else{out+=" validate.errors = vErrors; return false; "}}out+="} else { errors = "+$errs+"; if (vErrors !== null) { if ("+$errs+") vErrors.length = "+$errs+"; else vErrors = null; }";if(it.opts.allErrors){out+=" } "}return out}},{}],114:[function(require,module,exports){"use strict";module.exports=function generate_pattern(it,$keyword,$ruleType){var out=" ";var $lvl=it.level;var $dataLvl=it.dataLevel;var $schema=it.schema[$keyword];var $schemaPath=it.schemaPath+it.util.getProperty($keyword);var $errSchemaPath=it.errSchemaPath+"/"+$keyword;var $breakOnError=!it.opts.allErrors;var $data="data"+($dataLvl||"");var $isData=it.opts.$data&&$schema&&$schema.$data,$schemaValue;if($isData){out+=" var schema"+$lvl+" = "+it.util.getData($schema.$data,$dataLvl,it.dataPathArr)+"; ";$schemaValue="schema"+$lvl}else{$schemaValue=$schema}var $regexp=$isData?"(new RegExp("+$schemaValue+"))":it.usePattern($schema);out+="if ( ";if($isData){out+=" ("+$schemaValue+" !== undefined && typeof "+$schemaValue+" != 'string') || "}out+=" !"+$regexp+".test("+$data+") ) { ";var $$outStack=$$outStack||[];$$outStack.push(out);out="";if(it.createErrors!==false){out+=" { keyword: '"+"pattern"+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: { pattern: ";if($isData){out+=""+$schemaValue}else{out+=""+it.util.toQuotedString($schema)}out+=" } ";if(it.opts.messages!==false){out+=" , message: 'should match pattern \"";if($isData){out+="' + "+$schemaValue+" + '"}else{out+=""+it.util.escapeQuotes($schema)}out+="\"' "}if(it.opts.verbose){out+=" , schema: ";if($isData){out+="validate.schema"+$schemaPath}else{out+=""+it.util.toQuotedString($schema)}out+=" , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}var __err=out;out=$$outStack.pop();if(!it.compositeRule&&$breakOnError){if(it.async){out+=" throw new ValidationError(["+__err+"]); "}else{out+=" validate.errors = ["+__err+"]; return false; "}}else{out+=" var err = "+__err+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}out+="} ";if($breakOnError){out+=" else { "}return out}},{}],115:[function(require,module,exports){"use strict";module.exports=function generate_properties(it,$keyword,$ruleType){var out=" ";var $lvl=it.level;var $dataLvl=it.dataLevel;var $schema=it.schema[$keyword];var $schemaPath=it.schemaPath+it.util.getProperty($keyword);var $errSchemaPath=it.errSchemaPath+"/"+$keyword;var $breakOnError=!it.opts.allErrors;var $data="data"+($dataLvl||"");var $errs="errs__"+$lvl;var $it=it.util.copy(it);var $closingBraces="";$it.level++;var $nextValid="valid"+$it.level;var $key="key"+$lvl,$idx="idx"+$lvl,$dataNxt=$it.dataLevel=it.dataLevel+1,$nextData="data"+$dataNxt,$dataProperties="dataProperties"+$lvl;var $schemaKeys=Object.keys($schema||{}).filter(notProto),$pProperties=it.schema.patternProperties||{},$pPropertyKeys=Object.keys($pProperties).filter(notProto),$aProperties=it.schema.additionalProperties,$someProperties=$schemaKeys.length||$pPropertyKeys.length,$noAdditional=$aProperties===false,$additionalIsSchema=typeof $aProperties=="object"&&Object.keys($aProperties).length,$removeAdditional=it.opts.removeAdditional,$checkAdditional=$noAdditional||$additionalIsSchema||$removeAdditional,$ownProperties=it.opts.ownProperties,$currentBaseId=it.baseId;var $required=it.schema.required;if($required&&!(it.opts.$data&&$required.$data)&&$required.length8){out+=" || validate.schema"+$schemaPath+".hasOwnProperty("+$key+") "}else{var arr1=$schemaKeys;if(arr1){var $propertyKey,i1=-1,l1=arr1.length-1;while(i10:it.util.schemaHasRules($sch,it.RULES.all)){var $prop=it.util.getProperty($propertyKey),$passData=$data+$prop,$hasDefault=$useDefaults&&$sch.default!==undefined;$it.schema=$sch;$it.schemaPath=$schemaPath+$prop;$it.errSchemaPath=$errSchemaPath+"/"+it.util.escapeFragment($propertyKey);$it.errorPath=it.util.getPath(it.errorPath,$propertyKey,it.opts.jsonPointers);$it.dataPathArr[$dataNxt]=it.util.toQuotedString($propertyKey);var $code=it.validate($it);$it.baseId=$currentBaseId;if(it.util.varOccurences($code,$nextData)<2){$code=it.util.varReplace($code,$nextData,$passData);var $useData=$passData}else{var $useData=$nextData;out+=" var "+$nextData+" = "+$passData+"; "}if($hasDefault){out+=" "+$code+" "}else{if($requiredHash&&$requiredHash[$propertyKey]){out+=" if ( "+$useData+" === undefined ";if($ownProperties){out+=" || ! Object.prototype.hasOwnProperty.call("+$data+", '"+it.util.escapeQuotes($propertyKey)+"') "}out+=") { "+$nextValid+" = false; ";var $currentErrorPath=it.errorPath,$currErrSchemaPath=$errSchemaPath,$missingProperty=it.util.escapeQuotes($propertyKey);if(it.opts._errorDataPathProperty){it.errorPath=it.util.getPath($currentErrorPath,$propertyKey,it.opts.jsonPointers)}$errSchemaPath=it.errSchemaPath+"/required";var $$outStack=$$outStack||[];$$outStack.push(out);out="";if(it.createErrors!==false){out+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: { missingProperty: '"+$missingProperty+"' } ";if(it.opts.messages!==false){out+=" , message: '";if(it.opts._errorDataPathProperty){out+="is a required property"}else{out+="should have required property \\'"+$missingProperty+"\\'"}out+="' "}if(it.opts.verbose){out+=" , schema: validate.schema"+$schemaPath+" , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}var __err=out;out=$$outStack.pop();if(!it.compositeRule&&$breakOnError){if(it.async){out+=" throw new ValidationError(["+__err+"]); "}else{out+=" validate.errors = ["+__err+"]; return false; "}}else{out+=" var err = "+__err+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}$errSchemaPath=$currErrSchemaPath;it.errorPath=$currentErrorPath;out+=" } else { "}else{if($breakOnError){out+=" if ( "+$useData+" === undefined ";if($ownProperties){out+=" || ! Object.prototype.hasOwnProperty.call("+$data+", '"+it.util.escapeQuotes($propertyKey)+"') "}out+=") { "+$nextValid+" = true; } else { "}else{out+=" if ("+$useData+" !== undefined ";if($ownProperties){out+=" && Object.prototype.hasOwnProperty.call("+$data+", '"+it.util.escapeQuotes($propertyKey)+"') "}out+=" ) { "}}out+=" "+$code+" } "}}if($breakOnError){out+=" if ("+$nextValid+") { ";$closingBraces+="}"}}}}if($pPropertyKeys.length){var arr4=$pPropertyKeys;if(arr4){var $pProperty,i4=-1,l4=arr4.length-1;while(i40:it.util.schemaHasRules($sch,it.RULES.all)){$it.schema=$sch;$it.schemaPath=it.schemaPath+".patternProperties"+it.util.getProperty($pProperty);$it.errSchemaPath=it.errSchemaPath+"/patternProperties/"+it.util.escapeFragment($pProperty);if($ownProperties){out+=" "+$dataProperties+" = "+$dataProperties+" || Object.keys("+$data+"); for (var "+$idx+"=0; "+$idx+"<"+$dataProperties+".length; "+$idx+"++) { var "+$key+" = "+$dataProperties+"["+$idx+"]; "}else{out+=" for (var "+$key+" in "+$data+") { "}out+=" if ("+it.usePattern($pProperty)+".test("+$key+")) { ";$it.errorPath=it.util.getPathExpr(it.errorPath,$key,it.opts.jsonPointers);var $passData=$data+"["+$key+"]";$it.dataPathArr[$dataNxt]=$key;var $code=it.validate($it);$it.baseId=$currentBaseId;if(it.util.varOccurences($code,$nextData)<2){out+=" "+it.util.varReplace($code,$nextData,$passData)+" "}else{out+=" var "+$nextData+" = "+$passData+"; "+$code+" "}if($breakOnError){out+=" if (!"+$nextValid+") break; "}out+=" } ";if($breakOnError){out+=" else "+$nextValid+" = true; "}out+=" } ";if($breakOnError){out+=" if ("+$nextValid+") { ";$closingBraces+="}"}}}}}if($breakOnError){out+=" "+$closingBraces+" if ("+$errs+" == errors) {"}return out}},{}],116:[function(require,module,exports){"use strict";module.exports=function generate_propertyNames(it,$keyword,$ruleType){var out=" ";var $lvl=it.level;var $dataLvl=it.dataLevel;var $schema=it.schema[$keyword];var $schemaPath=it.schemaPath+it.util.getProperty($keyword);var $errSchemaPath=it.errSchemaPath+"/"+$keyword;var $breakOnError=!it.opts.allErrors;var $data="data"+($dataLvl||"");var $errs="errs__"+$lvl;var $it=it.util.copy(it);var $closingBraces="";$it.level++;var $nextValid="valid"+$it.level;out+="var "+$errs+" = errors;";if(it.opts.strictKeywords?typeof $schema=="object"&&Object.keys($schema).length>0:it.util.schemaHasRules($schema,it.RULES.all)){$it.schema=$schema;$it.schemaPath=$schemaPath;$it.errSchemaPath=$errSchemaPath;var $key="key"+$lvl,$idx="idx"+$lvl,$i="i"+$lvl,$invalidName="' + "+$key+" + '",$dataNxt=$it.dataLevel=it.dataLevel+1,$nextData="data"+$dataNxt,$dataProperties="dataProperties"+$lvl,$ownProperties=it.opts.ownProperties,$currentBaseId=it.baseId;if($ownProperties){out+=" var "+$dataProperties+" = undefined; "}if($ownProperties){out+=" "+$dataProperties+" = "+$dataProperties+" || Object.keys("+$data+"); for (var "+$idx+"=0; "+$idx+"<"+$dataProperties+".length; "+$idx+"++) { var "+$key+" = "+$dataProperties+"["+$idx+"]; "}else{out+=" for (var "+$key+" in "+$data+") { "}out+=" var startErrs"+$lvl+" = errors; ";var $passData=$key;var $wasComposite=it.compositeRule;it.compositeRule=$it.compositeRule=true;var $code=it.validate($it);$it.baseId=$currentBaseId;if(it.util.varOccurences($code,$nextData)<2){out+=" "+it.util.varReplace($code,$nextData,$passData)+" "}else{out+=" var "+$nextData+" = "+$passData+"; "+$code+" "}it.compositeRule=$it.compositeRule=$wasComposite;out+=" if (!"+$nextValid+") { for (var "+$i+"=startErrs"+$lvl+"; "+$i+"0:it.util.schemaHasRules($propertySch,it.RULES.all)))){$required[$required.length]=$property}}}}else{var $required=$schema}}if($isData||$required.length){var $currentErrorPath=it.errorPath,$loopRequired=$isData||$required.length>=it.opts.loopRequired,$ownProperties=it.opts.ownProperties;if($breakOnError){out+=" var missing"+$lvl+"; ";if($loopRequired){if(!$isData){out+=" var "+$vSchema+" = validate.schema"+$schemaPath+"; "}var $i="i"+$lvl,$propertyPath="schema"+$lvl+"["+$i+"]",$missingProperty="' + "+$propertyPath+" + '";if(it.opts._errorDataPathProperty){it.errorPath=it.util.getPathExpr($currentErrorPath,$propertyPath,it.opts.jsonPointers)}out+=" var "+$valid+" = true; ";if($isData){out+=" if (schema"+$lvl+" === undefined) "+$valid+" = true; else if (!Array.isArray(schema"+$lvl+")) "+$valid+" = false; else {"}out+=" for (var "+$i+" = 0; "+$i+" < "+$vSchema+".length; "+$i+"++) { "+$valid+" = "+$data+"["+$vSchema+"["+$i+"]] !== undefined ";if($ownProperties){out+=" && Object.prototype.hasOwnProperty.call("+$data+", "+$vSchema+"["+$i+"]) "}out+="; if (!"+$valid+") break; } ";if($isData){out+=" } "}out+=" if (!"+$valid+") { ";var $$outStack=$$outStack||[];$$outStack.push(out);out="";if(it.createErrors!==false){out+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: { missingProperty: '"+$missingProperty+"' } ";if(it.opts.messages!==false){out+=" , message: '";if(it.opts._errorDataPathProperty){out+="is a required property"}else{out+="should have required property \\'"+$missingProperty+"\\'"}out+="' "}if(it.opts.verbose){out+=" , schema: validate.schema"+$schemaPath+" , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}var __err=out;out=$$outStack.pop();if(!it.compositeRule&&$breakOnError){if(it.async){out+=" throw new ValidationError(["+__err+"]); "}else{out+=" validate.errors = ["+__err+"]; return false; "}}else{out+=" var err = "+__err+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}out+=" } else { "}else{out+=" if ( ";var arr2=$required;if(arr2){var $propertyKey,$i=-1,l2=arr2.length-1;while($i 1) { ";var $itemType=it.schema.items&&it.schema.items.type,$typeIsArray=Array.isArray($itemType);if(!$itemType||$itemType=="object"||$itemType=="array"||$typeIsArray&&($itemType.indexOf("object")>=0||$itemType.indexOf("array")>=0)){out+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+$data+"[i], "+$data+"[j])) { "+$valid+" = false; break outer; } } } "}else{out+=" var itemIndices = {}, item; for (;i--;) { var item = "+$data+"[i]; ";var $method="checkDataType"+($typeIsArray?"s":"");out+=" if ("+it.util[$method]($itemType,"item",it.opts.strictNumbers,true)+") continue; ";if($typeIsArray){out+=" if (typeof item == 'string') item = '\"' + item; "}out+=" if (typeof itemIndices[item] == 'number') { "+$valid+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}out+=" } ";if($isData){out+=" } "}out+=" if (!"+$valid+") { ";var $$outStack=$$outStack||[];$$outStack.push(out);out="";if(it.createErrors!==false){out+=" { keyword: '"+"uniqueItems"+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: { i: i, j: j } ";if(it.opts.messages!==false){out+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "}if(it.opts.verbose){out+=" , schema: ";if($isData){out+="validate.schema"+$schemaPath}else{out+=""+$schema}out+=" , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}var __err=out;out=$$outStack.pop();if(!it.compositeRule&&$breakOnError){if(it.async){out+=" throw new ValidationError(["+__err+"]); "}else{out+=" validate.errors = ["+__err+"]; return false; "}}else{out+=" var err = "+__err+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}out+=" } ";if($breakOnError){out+=" else { "}}else{if($breakOnError){out+=" if (true) { "}}return out}},{}],120:[function(require,module,exports){"use strict";module.exports=function generate_validate(it,$keyword,$ruleType){var out="";var $async=it.schema.$async===true,$refKeywords=it.util.schemaHasRulesExcept(it.schema,it.RULES.all,"$ref"),$id=it.self._getId(it.schema);if(it.opts.strictKeywords){var $unknownKwd=it.util.schemaUnknownRules(it.schema,it.RULES.keywords);if($unknownKwd){var $keywordsMsg="unknown keyword: "+$unknownKwd;if(it.opts.strictKeywords==="log")it.logger.warn($keywordsMsg);else throw new Error($keywordsMsg)}}if(it.isTop){out+=" var validate = ";if($async){it.async=true;out+="async "}out+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ";if($id&&(it.opts.sourceCode||it.opts.processCode)){out+=" "+("/*# sourceURL="+$id+" */")+" "}}if(typeof it.schema=="boolean"||!($refKeywords||it.schema.$ref)){var $keyword="false schema";var $lvl=it.level;var $dataLvl=it.dataLevel;var $schema=it.schema[$keyword];var $schemaPath=it.schemaPath+it.util.getProperty($keyword);var $errSchemaPath=it.errSchemaPath+"/"+$keyword;var $breakOnError=!it.opts.allErrors;var $errorKeyword;var $data="data"+($dataLvl||"");var $valid="valid"+$lvl;if(it.schema===false){if(it.isTop){$breakOnError=true}else{out+=" var "+$valid+" = false; "}var $$outStack=$$outStack||[];$$outStack.push(out);out="";if(it.createErrors!==false){out+=" { keyword: '"+($errorKeyword||"false schema")+"' , dataPath: (dataPath || '') + "+it.errorPath+" , schemaPath: "+it.util.toQuotedString($errSchemaPath)+" , params: {} ";if(it.opts.messages!==false){out+=" , message: 'boolean schema is false' "}if(it.opts.verbose){out+=" , schema: false , parentSchema: validate.schema"+it.schemaPath+" , data: "+$data+" "}out+=" } "}else{out+=" {} "}var __err=out;out=$$outStack.pop();if(!it.compositeRule&&$breakOnError){if(it.async){out+=" throw new ValidationError(["+__err+"]); "}else{out+=" validate.errors = ["+__err+"]; return false; "}}else{out+=" var err = "+__err+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}else{if(it.isTop){if($async){out+=" return data; "}else{out+=" validate.errors = null; return true; "}}else{out+=" var "+$valid+" = true; "}}if(it.isTop){out+=" }; return validate; "}return out}if(it.isTop){var $top=it.isTop,$lvl=it.level=0,$dataLvl=it.dataLevel=0,$data="data";it.rootId=it.resolve.fullPath(it.self._getId(it.root.schema));it.baseId=it.baseId||it.rootId;delete it.isTop;it.dataPathArr=[undefined];if(it.schema.default!==undefined&&it.opts.useDefaults&&it.opts.strictDefaults){var $defaultMsg="default is ignored in the schema root";if(it.opts.strictDefaults==="log")it.logger.warn($defaultMsg);else throw new Error($defaultMsg)}out+=" var vErrors = null; ";out+=" var errors = 0; ";out+=" if (rootData === undefined) rootData = data; "}else{var $lvl=it.level,$dataLvl=it.dataLevel,$data="data"+($dataLvl||"");if($id)it.baseId=it.resolve.url(it.baseId,$id);if($async&&!it.async)throw new Error("async schema in sync schema");out+=" var errs_"+$lvl+" = errors;"}var $valid="valid"+$lvl,$breakOnError=!it.opts.allErrors,$closingBraces1="",$closingBraces2="";var $errorKeyword;var $typeSchema=it.schema.type,$typeIsArray=Array.isArray($typeSchema);if($typeSchema&&it.opts.nullable&&it.schema.nullable===true){if($typeIsArray){if($typeSchema.indexOf("null")==-1)$typeSchema=$typeSchema.concat("null")}else if($typeSchema!="null"){$typeSchema=[$typeSchema,"null"];$typeIsArray=true}}if($typeIsArray&&$typeSchema.length==1){$typeSchema=$typeSchema[0];$typeIsArray=false}if(it.schema.$ref&&$refKeywords){if(it.opts.extendRefs=="fail"){throw new Error('$ref: validation keywords used in schema at path "'+it.errSchemaPath+'" (see option extendRefs)')}else if(it.opts.extendRefs!==true){$refKeywords=false;it.logger.warn('$ref: keywords ignored in schema at path "'+it.errSchemaPath+'"')}}if(it.schema.$comment&&it.opts.$comment){out+=" "+it.RULES.all.$comment.code(it,"$comment")}if($typeSchema){if(it.opts.coerceTypes){var $coerceToTypes=it.util.coerceToTypes(it.opts.coerceTypes,$typeSchema)}var $rulesGroup=it.RULES.types[$typeSchema];if($coerceToTypes||$typeIsArray||$rulesGroup===true||$rulesGroup&&!$shouldUseGroup($rulesGroup)){var $schemaPath=it.schemaPath+".type",$errSchemaPath=it.errSchemaPath+"/type";var $schemaPath=it.schemaPath+".type",$errSchemaPath=it.errSchemaPath+"/type",$method=$typeIsArray?"checkDataTypes":"checkDataType";out+=" if ("+it.util[$method]($typeSchema,$data,it.opts.strictNumbers,true)+") { ";if($coerceToTypes){var $dataType="dataType"+$lvl,$coerced="coerced"+$lvl;out+=" var "+$dataType+" = typeof "+$data+"; ";if(it.opts.coerceTypes=="array"){out+=" if ("+$dataType+" == 'object' && Array.isArray("+$data+")) "+$dataType+" = 'array'; "}out+=" var "+$coerced+" = undefined; ";var $bracesCoercion="";var arr1=$coerceToTypes;if(arr1){var $type,$i=-1,l1=arr1.length-1;while($i0){throw new Error("Invalid string. Length must be a multiple of 4")}var validLen=b64.indexOf("=");if(validLen===-1)validLen=len;var placeHoldersLen=validLen===len?0:4-validLen%4;return[validLen,placeHoldersLen]}function byteLength(b64){var lens=getLens(b64);var validLen=lens[0];var placeHoldersLen=lens[1];return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function _byteLength(b64,validLen,placeHoldersLen){return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function toByteArray(b64){var tmp;var lens=getLens(b64);var validLen=lens[0];var placeHoldersLen=lens[1];var arr=new Arr(_byteLength(b64,validLen,placeHoldersLen));var curByte=0;var len=placeHoldersLen>0?validLen-4:validLen;var i;for(i=0;i>16&255;arr[curByte++]=tmp>>8&255;arr[curByte++]=tmp&255}if(placeHoldersLen===2){tmp=revLookup[b64.charCodeAt(i)]<<2|revLookup[b64.charCodeAt(i+1)]>>4;arr[curByte++]=tmp&255}if(placeHoldersLen===1){tmp=revLookup[b64.charCodeAt(i)]<<10|revLookup[b64.charCodeAt(i+1)]<<4|revLookup[b64.charCodeAt(i+2)]>>2;arr[curByte++]=tmp>>8&255;arr[curByte++]=tmp&255}return arr}function tripletToBase64(num){return lookup[num>>18&63]+lookup[num>>12&63]+lookup[num>>6&63]+lookup[num&63]}function encodeChunk(uint8,start,end){var tmp;var output=[];for(var i=start;ilen2?len2:i+maxChunkLength))}if(extraBytes===1){tmp=uint8[len-1];parts.push(lookup[tmp>>2]+lookup[tmp<<4&63]+"==")}else if(extraBytes===2){tmp=(uint8[len-2]<<8)+uint8[len-1];parts.push(lookup[tmp>>10]+lookup[tmp>>4&63]+lookup[tmp<<2&63]+"=")}return parts.join("")}},{}],126:[function(require,module,exports){},{}],127:[function(require,module,exports){(function(global){(function(root){var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var freeModule=typeof module=="object"&&module&&!module.nodeType&&module;var freeGlobal=typeof global=="object"&&global;if(freeGlobal.global===freeGlobal||freeGlobal.window===freeGlobal||freeGlobal.self===freeGlobal){root=freeGlobal}var punycode,maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexPunycode=/^xn--/,regexNonASCII=/[^\x20-\x7E]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode,key;function error(type){throw new RangeError(errors[type])}function map(array,fn){var length=array.length;var result=[];while(length--){result[length]=fn(array[length])}return result}function mapDomain(string,fn){var parts=string.split("@");var result="";if(parts.length>1){result=parts[0]+"@";string=parts[1]}string=string.replace(regexSeparators,".");var labels=string.split(".");var encoded=map(labels,fn).join(".");return result+encoded}function ucs2decode(string){var output=[],counter=0,length=string.length,value,extra;while(counter=55296&&value<=56319&&counter65535){value-=65536;output+=stringFromCharCode(value>>>10&1023|55296);value=56320|value&1023}output+=stringFromCharCode(value);return output}).join("")}function basicToDigit(codePoint){if(codePoint-48<10){return codePoint-22}if(codePoint-65<26){return codePoint-65}if(codePoint-97<26){return codePoint-97}return base}function digitToBasic(digit,flag){return digit+22+75*(digit<26)-((flag!=0)<<5)}function adapt(delta,numPoints,firstTime){var k=0;delta=firstTime?floor(delta/damp):delta>>1;delta+=floor(delta/numPoints);for(;delta>baseMinusTMin*tMax>>1;k+=base){delta=floor(delta/baseMinusTMin)}return floor(k+(baseMinusTMin+1)*delta/(delta+skew))}function decode(input){var output=[],inputLength=input.length,out,i=0,n=initialN,bias=initialBias,basic,j,index,oldi,w,k,digit,t,baseMinusT;basic=input.lastIndexOf(delimiter);if(basic<0){basic=0}for(j=0;j=128){error("not-basic")}output.push(input.charCodeAt(j))}for(index=basic>0?basic+1:0;index=inputLength){error("invalid-input")}digit=basicToDigit(input.charCodeAt(index++));if(digit>=base||digit>floor((maxInt-i)/w)){error("overflow")}i+=digit*w;t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias;if(digitfloor(maxInt/baseMinusT)){error("overflow")}w*=baseMinusT}out=output.length+1;bias=adapt(i-oldi,out,oldi==0);if(floor(i/out)>maxInt-n){error("overflow")}n+=floor(i/out);i%=out;output.splice(i++,0,n)}return ucs2encode(output)}function encode(input){var n,delta,handledCPCount,basicLength,bias,j,m,q,k,t,currentValue,output=[],inputLength,handledCPCountPlusOne,baseMinusT,qMinusT;input=ucs2decode(input);inputLength=input.length;n=initialN;delta=0;bias=initialBias;for(j=0;j=n&¤tValuefloor((maxInt-delta)/handledCPCountPlusOne)){error("overflow")}delta+=(m-n)*handledCPCountPlusOne;n=m;for(j=0;jmaxInt){error("overflow")}if(currentValue==n){for(q=delta,k=base;;k+=base){t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias;if(qK_MAX_LENGTH){throw new RangeError('The value "'+length+'" is invalid for option "size"')}var buf=new Uint8Array(length);buf.__proto__=Buffer.prototype;return buf}function Buffer(arg,encodingOrOffset,length){if(typeof arg==="number"){if(typeof encodingOrOffset==="string"){throw new TypeError('The "string" argument must be of type string. Received type number')}return allocUnsafe(arg)}return from(arg,encodingOrOffset,length)}if(typeof Symbol!=="undefined"&&Symbol.species!=null&&Buffer[Symbol.species]===Buffer){Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:true,enumerable:false,writable:false})}Buffer.poolSize=8192;function from(value,encodingOrOffset,length){if(typeof value==="string"){return fromString(value,encodingOrOffset)}if(ArrayBuffer.isView(value)){return fromArrayLike(value)}if(value==null){throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, "+"or Array-like Object. Received type "+typeof value)}if(isInstance(value,ArrayBuffer)||value&&isInstance(value.buffer,ArrayBuffer)){return fromArrayBuffer(value,encodingOrOffset,length)}if(typeof value==="number"){throw new TypeError('The "value" argument must not be of type number. Received type number')}var valueOf=value.valueOf&&value.valueOf();if(valueOf!=null&&valueOf!==value){return Buffer.from(valueOf,encodingOrOffset,length)}var b=fromObject(value);if(b)return b;if(typeof Symbol!=="undefined"&&Symbol.toPrimitive!=null&&typeof value[Symbol.toPrimitive]==="function"){return Buffer.from(value[Symbol.toPrimitive]("string"),encodingOrOffset,length)}throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, "+"or Array-like Object. Received type "+typeof value)}Buffer.from=function(value,encodingOrOffset,length){return from(value,encodingOrOffset,length)};Buffer.prototype.__proto__=Uint8Array.prototype;Buffer.__proto__=Uint8Array;function assertSize(size){if(typeof size!=="number"){throw new TypeError('"size" argument must be of type number')}else if(size<0){throw new RangeError('The value "'+size+'" is invalid for option "size"')}}function alloc(size,fill,encoding){assertSize(size);if(size<=0){return createBuffer(size)}if(fill!==undefined){return typeof encoding==="string"?createBuffer(size).fill(fill,encoding):createBuffer(size).fill(fill)}return createBuffer(size)}Buffer.alloc=function(size,fill,encoding){return alloc(size,fill,encoding)};function allocUnsafe(size){assertSize(size);return createBuffer(size<0?0:checked(size)|0)}Buffer.allocUnsafe=function(size){return allocUnsafe(size)};Buffer.allocUnsafeSlow=function(size){return allocUnsafe(size)};function fromString(string,encoding){if(typeof encoding!=="string"||encoding===""){encoding="utf8"}if(!Buffer.isEncoding(encoding)){throw new TypeError("Unknown encoding: "+encoding)}var length=byteLength(string,encoding)|0;var buf=createBuffer(length);var actual=buf.write(string,encoding);if(actual!==length){buf=buf.slice(0,actual)}return buf}function fromArrayLike(array){var length=array.length<0?0:checked(array.length)|0;var buf=createBuffer(length);for(var i=0;i=K_MAX_LENGTH){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+K_MAX_LENGTH.toString(16)+" bytes")}return length|0}function SlowBuffer(length){if(+length!=length){length=0}return Buffer.alloc(+length)}Buffer.isBuffer=function isBuffer(b){return b!=null&&b._isBuffer===true&&b!==Buffer.prototype};Buffer.compare=function compare(a,b){if(isInstance(a,Uint8Array))a=Buffer.from(a,a.offset,a.byteLength);if(isInstance(b,Uint8Array))b=Buffer.from(b,b.offset,b.byteLength);if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b)){throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array')}if(a===b)return 0;var x=a.length;var y=b.length;for(var i=0,len=Math.min(x,y);i2&&arguments[2]===true;if(!mustMatch&&len===0)return 0;var loweredCase=false;for(;;){switch(encoding){case"ascii":case"latin1":case"binary":return len;case"utf8":case"utf-8":return utf8ToBytes(string).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return len*2;case"hex":return len>>>1;case"base64":return base64ToBytes(string).length;default:if(loweredCase){return mustMatch?-1:utf8ToBytes(string).length}encoding=(""+encoding).toLowerCase();loweredCase=true}}}Buffer.byteLength=byteLength;function slowToString(encoding,start,end){var loweredCase=false;if(start===undefined||start<0){start=0}if(start>this.length){return""}if(end===undefined||end>this.length){end=this.length}if(end<=0){return""}end>>>=0;start>>>=0;if(end<=start){return""}if(!encoding)encoding="utf8";while(true){switch(encoding){case"hex":return hexSlice(this,start,end);case"utf8":case"utf-8":return utf8Slice(this,start,end);case"ascii":return asciiSlice(this,start,end);case"latin1":case"binary":return latin1Slice(this,start,end);case"base64":return base64Slice(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase();loweredCase=true}}}Buffer.prototype._isBuffer=true;function swap(b,n,m){var i=b[n];b[n]=b[m];b[m]=i}Buffer.prototype.swap16=function swap16(){var len=this.length;if(len%2!==0){throw new RangeError("Buffer size must be a multiple of 16-bits")}for(var i=0;imax)str+=" ... ";return""};Buffer.prototype.compare=function compare(target,start,end,thisStart,thisEnd){if(isInstance(target,Uint8Array)){target=Buffer.from(target,target.offset,target.byteLength)}if(!Buffer.isBuffer(target)){throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. '+"Received type "+typeof target)}if(start===undefined){start=0}if(end===undefined){end=target?target.length:0}if(thisStart===undefined){thisStart=0}if(thisEnd===undefined){thisEnd=this.length}if(start<0||end>target.length||thisStart<0||thisEnd>this.length){throw new RangeError("out of range index")}if(thisStart>=thisEnd&&start>=end){return 0}if(thisStart>=thisEnd){return-1}if(start>=end){return 1}start>>>=0;end>>>=0;thisStart>>>=0;thisEnd>>>=0;if(this===target)return 0;var x=thisEnd-thisStart;var y=end-start;var len=Math.min(x,y);var thisCopy=this.slice(thisStart,thisEnd);var targetCopy=target.slice(start,end);for(var i=0;i2147483647){byteOffset=2147483647}else if(byteOffset<-2147483648){byteOffset=-2147483648}byteOffset=+byteOffset;if(numberIsNaN(byteOffset)){byteOffset=dir?0:buffer.length-1}if(byteOffset<0)byteOffset=buffer.length+byteOffset;if(byteOffset>=buffer.length){if(dir)return-1;else byteOffset=buffer.length-1}else if(byteOffset<0){if(dir)byteOffset=0;else return-1}if(typeof val==="string"){val=Buffer.from(val,encoding)}if(Buffer.isBuffer(val)){if(val.length===0){return-1}return arrayIndexOf(buffer,val,byteOffset,encoding,dir)}else if(typeof val==="number"){val=val&255;if(typeof Uint8Array.prototype.indexOf==="function"){if(dir){return Uint8Array.prototype.indexOf.call(buffer,val,byteOffset)}else{return Uint8Array.prototype.lastIndexOf.call(buffer,val,byteOffset)}}return arrayIndexOf(buffer,[val],byteOffset,encoding,dir)}throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(arr,val,byteOffset,encoding,dir){var indexSize=1;var arrLength=arr.length;var valLength=val.length;if(encoding!==undefined){encoding=String(encoding).toLowerCase();if(encoding==="ucs2"||encoding==="ucs-2"||encoding==="utf16le"||encoding==="utf-16le"){if(arr.length<2||val.length<2){return-1}indexSize=2;arrLength/=2;valLength/=2;byteOffset/=2}}function read(buf,i){if(indexSize===1){return buf[i]}else{return buf.readUInt16BE(i*indexSize)}}var i;if(dir){var foundIndex=-1;for(i=byteOffset;iarrLength)byteOffset=arrLength-valLength;for(i=byteOffset;i>=0;i--){var found=true;for(var j=0;jremaining){length=remaining}}var strLen=string.length;if(length>strLen/2){length=strLen/2}for(var i=0;i>>0;if(isFinite(length)){length=length>>>0;if(encoding===undefined)encoding="utf8"}else{encoding=length;length=undefined}}else{throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")}var remaining=this.length-offset;if(length===undefined||length>remaining)length=remaining;if(string.length>0&&(length<0||offset<0)||offset>this.length){throw new RangeError("Attempt to write outside buffer bounds")}if(!encoding)encoding="utf8";var loweredCase=false;for(;;){switch(encoding){case"hex":return hexWrite(this,string,offset,length);case"utf8":case"utf-8":return utf8Write(this,string,offset,length);case"ascii":return asciiWrite(this,string,offset,length);case"latin1":case"binary":return latin1Write(this,string,offset,length);case"base64":return base64Write(this,string,offset,length);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,string,offset,length);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(""+encoding).toLowerCase();loweredCase=true}}};Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice(buf,start,end){if(start===0&&end===buf.length){return base64.fromByteArray(buf)}else{return base64.fromByteArray(buf.slice(start,end))}}function utf8Slice(buf,start,end){end=Math.min(buf.length,end);var res=[];var i=start;while(i239?4:firstByte>223?3:firstByte>191?2:1;if(i+bytesPerSequence<=end){var secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:if(firstByte<128){codePoint=firstByte}break;case 2:secondByte=buf[i+1];if((secondByte&192)===128){tempCodePoint=(firstByte&31)<<6|secondByte&63;if(tempCodePoint>127){codePoint=tempCodePoint}}break;case 3:secondByte=buf[i+1];thirdByte=buf[i+2];if((secondByte&192)===128&&(thirdByte&192)===128){tempCodePoint=(firstByte&15)<<12|(secondByte&63)<<6|thirdByte&63;if(tempCodePoint>2047&&(tempCodePoint<55296||tempCodePoint>57343)){codePoint=tempCodePoint}}break;case 4:secondByte=buf[i+1];thirdByte=buf[i+2];fourthByte=buf[i+3];if((secondByte&192)===128&&(thirdByte&192)===128&&(fourthByte&192)===128){tempCodePoint=(firstByte&15)<<18|(secondByte&63)<<12|(thirdByte&63)<<6|fourthByte&63;if(tempCodePoint>65535&&tempCodePoint<1114112){codePoint=tempCodePoint}}}}if(codePoint===null){codePoint=65533;bytesPerSequence=1}else if(codePoint>65535){codePoint-=65536;res.push(codePoint>>>10&1023|55296);codePoint=56320|codePoint&1023}res.push(codePoint);i+=bytesPerSequence}return decodeCodePointsArray(res)}var MAX_ARGUMENTS_LENGTH=4096;function decodeCodePointsArray(codePoints){var len=codePoints.length;if(len<=MAX_ARGUMENTS_LENGTH){return String.fromCharCode.apply(String,codePoints)}var res="";var i=0;while(ilen)end=len;var out="";for(var i=start;ilen){start=len}if(end<0){end+=len;if(end<0)end=0}else if(end>len){end=len}if(endlength)throw new RangeError("Trying to access beyond buffer length")}Buffer.prototype.readUIntLE=function readUIntLE(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i>>0;byteLength=byteLength>>>0;if(!noAssert){checkOffset(offset,byteLength,this.length)}var val=this[offset+--byteLength];var mul=1;while(byteLength>0&&(mul*=256)){val+=this[offset+--byteLength]*mul}return val};Buffer.prototype.readUInt8=function readUInt8(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,1,this.length);return this[offset]};Buffer.prototype.readUInt16LE=function readUInt16LE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,2,this.length);return this[offset]|this[offset+1]<<8};Buffer.prototype.readUInt16BE=function readUInt16BE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,2,this.length);return this[offset]<<8|this[offset+1]};Buffer.prototype.readUInt32LE=function readUInt32LE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,4,this.length);return(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+this[offset+3]*16777216};Buffer.prototype.readUInt32BE=function readUInt32BE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,4,this.length);return this[offset]*16777216+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])};Buffer.prototype.readIntLE=function readIntLE(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i=mul)val-=Math.pow(2,8*byteLength);return val};Buffer.prototype.readIntBE=function readIntBE(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var i=byteLength;var mul=1;var val=this[offset+--i];while(i>0&&(mul*=256)){val+=this[offset+--i]*mul}mul*=128;if(val>=mul)val-=Math.pow(2,8*byteLength);return val};Buffer.prototype.readInt8=function readInt8(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,1,this.length);if(!(this[offset]&128))return this[offset];return(255-this[offset]+1)*-1};Buffer.prototype.readInt16LE=function readInt16LE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return val&32768?val|4294901760:val};Buffer.prototype.readInt16BE=function readInt16BE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return val&32768?val|4294901760:val};Buffer.prototype.readInt32LE=function readInt32LE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,4,this.length);return this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24};Buffer.prototype.readInt32BE=function readInt32BE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,4,this.length);return this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]};Buffer.prototype.readFloatLE=function readFloatLE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,true,23,4)};Buffer.prototype.readFloatBE=function readFloatBE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,false,23,4)};Buffer.prototype.readDoubleLE=function readDoubleLE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,true,52,8)};Buffer.prototype.readDoubleBE=function readDoubleBE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,false,52,8)};function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError('"buffer" argument must be a Buffer instance');if(value>max||valuebuf.length)throw new RangeError("Index out of range")}Buffer.prototype.writeUIntLE=function writeUIntLE(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert){var maxBytes=Math.pow(2,8*byteLength)-1;checkInt(this,value,offset,byteLength,maxBytes,0)}var mul=1;var i=0;this[offset]=value&255;while(++i>>0;byteLength=byteLength>>>0;if(!noAssert){var maxBytes=Math.pow(2,8*byteLength)-1;checkInt(this,value,offset,byteLength,maxBytes,0)}var i=byteLength-1;var mul=1;this[offset+i]=value&255;while(--i>=0&&(mul*=256)){this[offset+i]=value/mul&255}return offset+byteLength};Buffer.prototype.writeUInt8=function writeUInt8(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,1,255,0);this[offset]=value&255;return offset+1};Buffer.prototype.writeUInt16LE=function writeUInt16LE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,65535,0);this[offset]=value&255;this[offset+1]=value>>>8;return offset+2};Buffer.prototype.writeUInt16BE=function writeUInt16BE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,65535,0);this[offset]=value>>>8;this[offset+1]=value&255;return offset+2};Buffer.prototype.writeUInt32LE=function writeUInt32LE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,4294967295,0);this[offset+3]=value>>>24;this[offset+2]=value>>>16;this[offset+1]=value>>>8;this[offset]=value&255;return offset+4};Buffer.prototype.writeUInt32BE=function writeUInt32BE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,4294967295,0);this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value&255;return offset+4};Buffer.prototype.writeIntLE=function writeIntLE(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;if(!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=0;var mul=1;var sub=0;this[offset]=value&255;while(++i>0)-sub&255}return offset+byteLength};Buffer.prototype.writeIntBE=function writeIntBE(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;if(!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=byteLength-1;var mul=1;var sub=0;this[offset+i]=value&255;while(--i>=0&&(mul*=256)){if(value<0&&sub===0&&this[offset+i+1]!==0){sub=1}this[offset+i]=(value/mul>>0)-sub&255}return offset+byteLength};Buffer.prototype.writeInt8=function writeInt8(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,1,127,-128);if(value<0)value=255+value+1;this[offset]=value&255;return offset+1};Buffer.prototype.writeInt16LE=function writeInt16LE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,32767,-32768);this[offset]=value&255;this[offset+1]=value>>>8;return offset+2};Buffer.prototype.writeInt16BE=function writeInt16BE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,32767,-32768);this[offset]=value>>>8;this[offset+1]=value&255;return offset+2};Buffer.prototype.writeInt32LE=function writeInt32LE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,2147483647,-2147483648);this[offset]=value&255;this[offset+1]=value>>>8;this[offset+2]=value>>>16;this[offset+3]=value>>>24;return offset+4};Buffer.prototype.writeInt32BE=function writeInt32BE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,2147483647,-2147483648);if(value<0)value=4294967295+value+1;this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value&255;return offset+4};function checkIEEE754(buf,value,offset,ext,max,min){if(offset+ext>buf.length)throw new RangeError("Index out of range");if(offset<0)throw new RangeError("Index out of range")}function writeFloat(buf,value,offset,littleEndian,noAssert){value=+value;offset=offset>>>0;if(!noAssert){checkIEEE754(buf,value,offset,4,34028234663852886e22,-34028234663852886e22)}ieee754.write(buf,value,offset,littleEndian,23,4);return offset+4}Buffer.prototype.writeFloatLE=function writeFloatLE(value,offset,noAssert){return writeFloat(this,value,offset,true,noAssert)};Buffer.prototype.writeFloatBE=function writeFloatBE(value,offset,noAssert){return writeFloat(this,value,offset,false,noAssert)};function writeDouble(buf,value,offset,littleEndian,noAssert){value=+value;offset=offset>>>0;if(!noAssert){checkIEEE754(buf,value,offset,8,17976931348623157e292,-17976931348623157e292)}ieee754.write(buf,value,offset,littleEndian,52,8);return offset+8}Buffer.prototype.writeDoubleLE=function writeDoubleLE(value,offset,noAssert){return writeDouble(this,value,offset,true,noAssert)};Buffer.prototype.writeDoubleBE=function writeDoubleBE(value,offset,noAssert){return writeDouble(this,value,offset,false,noAssert)};Buffer.prototype.copy=function copy(target,targetStart,start,end){if(!Buffer.isBuffer(target))throw new TypeError("argument should be a Buffer");if(!start)start=0;if(!end&&end!==0)end=this.length;if(targetStart>=target.length)targetStart=target.length;if(!targetStart)targetStart=0;if(end>0&&end=this.length)throw new RangeError("Index out of range");if(end<0)throw new RangeError("sourceEnd out of bounds");if(end>this.length)end=this.length;if(target.length-targetStart=0;--i){target[i+targetStart]=this[i+start]}}else{Uint8Array.prototype.set.call(target,this.subarray(start,end),targetStart)}return len};Buffer.prototype.fill=function fill(val,start,end,encoding){if(typeof val==="string"){if(typeof start==="string"){encoding=start;start=0;end=this.length}else if(typeof end==="string"){encoding=end;end=this.length}if(encoding!==undefined&&typeof encoding!=="string"){throw new TypeError("encoding must be a string")}if(typeof encoding==="string"&&!Buffer.isEncoding(encoding)){throw new TypeError("Unknown encoding: "+encoding)}if(val.length===1){var code=val.charCodeAt(0);if(encoding==="utf8"&&code<128||encoding==="latin1"){val=code}}}else if(typeof val==="number"){val=val&255}if(start<0||this.length>>0;end=end===undefined?this.length:end>>>0;if(!val)val=0;var i;if(typeof val==="number"){for(i=start;i55295&&codePoint<57344){if(!leadSurrogate){if(codePoint>56319){if((units-=3)>-1)bytes.push(239,191,189);continue}else if(i+1===length){if((units-=3)>-1)bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(codePoint<56320){if((units-=3)>-1)bytes.push(239,191,189);leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else if(leadSurrogate){if((units-=3)>-1)bytes.push(239,191,189)}leadSurrogate=null;if(codePoint<128){if((units-=1)<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,codePoint&63|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,codePoint&63|128)}else if(codePoint<1114112){if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,codePoint&63|128)}else{throw new Error("Invalid code point")}}return bytes}function asciiToBytes(str){var byteArray=[];for(var i=0;i>8;lo=c%256;byteArray.push(lo);byteArray.push(hi)}return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset,length){for(var i=0;i=dst.length||i>=src.length)break;dst[i+offset]=src[i]}return i}function isInstance(obj,type){return obj instanceof type||obj!=null&&obj.constructor!=null&&obj.constructor.name!=null&&obj.constructor.name===type.name}function numberIsNaN(obj){return obj!==obj}}).call(this,require("buffer").Buffer)},{"base64-js":125,buffer:128,ieee754:135}],129:[function(require,module,exports){module.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],130:[function(require,module,exports){(function(process,global){"use strict";var next=global.process&&process.nextTick||global.setImmediate||function(f){setTimeout(f,0)};module.exports=function maybe(cb,promise){if(cb){promise.then(function(result){next(function(){cb(null,result)})},function(err){next(function(){cb(err)})});return undefined}else{return promise}}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{_process:172}],131:[function(require,module,exports){var objectCreate=Object.create||objectCreatePolyfill;var objectKeys=Object.keys||objectKeysPolyfill;var bind=Function.prototype.bind||functionBindPolyfill;function EventEmitter(){if(!this._events||!Object.prototype.hasOwnProperty.call(this,"_events")){this._events=objectCreate(null);this._eventsCount=0}this._maxListeners=this._maxListeners||undefined}module.exports=EventEmitter;EventEmitter.EventEmitter=EventEmitter;EventEmitter.prototype._events=undefined;EventEmitter.prototype._maxListeners=undefined;var defaultMaxListeners=10;var hasDefineProperty;try{var o={};if(Object.defineProperty)Object.defineProperty(o,"x",{value:0});hasDefineProperty=o.x===0}catch(err){hasDefineProperty=false}if(hasDefineProperty){Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:true,get:function(){return defaultMaxListeners},set:function(arg){if(typeof arg!=="number"||arg<0||arg!==arg)throw new TypeError('"defaultMaxListeners" must be a positive number');defaultMaxListeners=arg}})}else{EventEmitter.defaultMaxListeners=defaultMaxListeners}EventEmitter.prototype.setMaxListeners=function setMaxListeners(n){if(typeof n!=="number"||n<0||isNaN(n))throw new TypeError('"n" argument must be a positive number');this._maxListeners=n;return this};function $getMaxListeners(that){if(that._maxListeners===undefined)return EventEmitter.defaultMaxListeners;return that._maxListeners}EventEmitter.prototype.getMaxListeners=function getMaxListeners(){return $getMaxListeners(this)};function emitNone(handler,isFn,self){if(isFn)handler.call(self);else{var len=handler.length;var listeners=arrayClone(handler,len);for(var i=0;i1)er=arguments[1];if(er instanceof Error){throw er}else{var err=new Error('Unhandled "error" event. ('+er+")");err.context=er;throw err}return false}handler=events[type];if(!handler)return false;var isFn=typeof handler==="function";len=arguments.length;switch(len){case 1:emitNone(handler,isFn,this);break;case 2:emitOne(handler,isFn,this,arguments[1]);break;case 3:emitTwo(handler,isFn,this,arguments[1],arguments[2]);break;case 4:emitThree(handler,isFn,this,arguments[1],arguments[2],arguments[3]);break;default:args=new Array(len-1);for(i=1;i0&&existing.length>m){existing.warned=true;var w=new Error("Possible EventEmitter memory leak detected. "+existing.length+' "'+String(type)+'" listeners '+"added. Use emitter.setMaxListeners() to "+"increase limit.");w.name="MaxListenersExceededWarning";w.emitter=target;w.type=type;w.count=existing.length;if(typeof console==="object"&&console.warn){console.warn("%s: %s",w.name,w.message)}}}}return target}EventEmitter.prototype.addListener=function addListener(type,listener){return _addListener(this,type,listener,false)};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.prependListener=function prependListener(type,listener){return _addListener(this,type,listener,true)};function onceWrapper(){if(!this.fired){this.target.removeListener(this.type,this.wrapFn);this.fired=true;switch(arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:var args=new Array(arguments.length);for(var i=0;i=0;i--){if(list[i]===listener||list[i].listener===listener){originalListener=list[i].listener;position=i;break}}if(position<0)return this;if(position===0)list.shift();else spliceOne(list,position);if(list.length===1)events[type]=list[0];if(events.removeListener)this.emit("removeListener",type,originalListener||listener)}return this};EventEmitter.prototype.removeAllListeners=function removeAllListeners(type){var listeners,events,i;events=this._events;if(!events)return this;if(!events.removeListener){if(arguments.length===0){this._events=objectCreate(null);this._eventsCount=0}else if(events[type]){if(--this._eventsCount===0)this._events=objectCreate(null);else delete events[type]}return this}if(arguments.length===0){var keys=objectKeys(events);var key;for(i=0;i=0;i--){this.removeListener(type,listeners[i])}}return this};function _listeners(target,type,unwrap){var events=target._events;if(!events)return[];var evlistener=events[type];if(!evlistener)return[];if(typeof evlistener==="function")return unwrap?[evlistener.listener||evlistener]:[evlistener];return unwrap?unwrapListeners(evlistener):arrayClone(evlistener,evlistener.length)}EventEmitter.prototype.listeners=function listeners(type){return _listeners(this,type,true)};EventEmitter.prototype.rawListeners=function rawListeners(type){return _listeners(this,type,false)};EventEmitter.listenerCount=function(emitter,type){if(typeof emitter.listenerCount==="function"){return emitter.listenerCount(type)}else{return listenerCount.call(emitter,type)}};EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(type){var events=this._events;if(events){var evlistener=events[type];if(typeof evlistener==="function"){return 1}else if(evlistener){return evlistener.length}}return 0}EventEmitter.prototype.eventNames=function eventNames(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};function spliceOne(list,index){for(var i=index,k=i+1,n=list.length;k>1;var nBits=-7;var i=isLE?nBytes-1:0;var d=isLE?-1:1;var s=buffer[offset+i];i+=d;e=s&(1<<-nBits)-1;s>>=-nBits;nBits+=eLen;for(;nBits>0;e=e*256+buffer[offset+i],i+=d,nBits-=8){}m=e&(1<<-nBits)-1;e>>=-nBits;nBits+=mLen;for(;nBits>0;m=m*256+buffer[offset+i],i+=d,nBits-=8){}if(e===0){e=1-eBias}else if(e===eMax){return m?NaN:(s?-1:1)*Infinity}else{m=m+Math.pow(2,mLen);e=e-eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)};exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c;var eLen=nBytes*8-mLen-1;var eMax=(1<>1;var rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0;var i=isLE?0:nBytes-1;var d=isLE?1:-1;var s=value<0||value===0&&1/value<0?1:0;value=Math.abs(value);if(isNaN(value)||value===Infinity){m=isNaN(value)?1:0;e=eMax}else{e=Math.floor(Math.log(value)/Math.LN2);if(value*(c=Math.pow(2,-e))<1){e--;c*=2}if(e+eBias>=1){value+=rt/c}else{value+=rt*Math.pow(2,1-eBias)}if(value*c>=2){e++;c/=2}if(e+eBias>=eMax){m=0;e=eMax}else if(e+eBias>=1){m=(value*c-1)*Math.pow(2,mLen);e=e+eBias}else{m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen);e=0}}for(;mLen>=8;buffer[offset+i]=m&255,i+=d,m/=256,mLen-=8){}e=e<0;buffer[offset+i]=e&255,i+=d,e/=256,eLen-=8){}buffer[offset+i-d]|=s*128}},{}],136:[function(require,module,exports){if(typeof Object.create==="function"){module.exports=function inherits(ctor,superCtor){if(superCtor){ctor.super_=superCtor;ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:false,writable:true,configurable:true}})}}}else{module.exports=function inherits(ctor,superCtor){if(superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype;ctor.prototype=new TempCtor;ctor.prototype.constructor=ctor}}}},{}],137:[function(require,module,exports){module.exports=function(obj){return obj!=null&&(isBuffer(obj)||isSlowBuffer(obj)||!!obj._isBuffer)};function isBuffer(obj){return!!obj.constructor&&typeof obj.constructor.isBuffer==="function"&&obj.constructor.isBuffer(obj)}function isSlowBuffer(obj){return typeof obj.readFloatLE==="function"&&typeof obj.slice==="function"&&isBuffer(obj.slice(0,0))}},{}],138:[function(require,module,exports){"use strict";var yaml=require("./lib/js-yaml.js");module.exports=yaml},{"./lib/js-yaml.js":139}],139:[function(require,module,exports){"use strict";var loader=require("./js-yaml/loader");var dumper=require("./js-yaml/dumper");function deprecated(name){return function(){throw new Error("Function "+name+" is deprecated and cannot be used.")}}module.exports.Type=require("./js-yaml/type");module.exports.Schema=require("./js-yaml/schema");module.exports.FAILSAFE_SCHEMA=require("./js-yaml/schema/failsafe");module.exports.JSON_SCHEMA=require("./js-yaml/schema/json");module.exports.CORE_SCHEMA=require("./js-yaml/schema/core");module.exports.DEFAULT_SAFE_SCHEMA=require("./js-yaml/schema/default_safe");module.exports.DEFAULT_FULL_SCHEMA=require("./js-yaml/schema/default_full");module.exports.load=loader.load;module.exports.loadAll=loader.loadAll;module.exports.safeLoad=loader.safeLoad;module.exports.safeLoadAll=loader.safeLoadAll;module.exports.dump=dumper.dump;module.exports.safeDump=dumper.safeDump;module.exports.YAMLException=require("./js-yaml/exception");module.exports.MINIMAL_SCHEMA=require("./js-yaml/schema/failsafe");module.exports.SAFE_SCHEMA=require("./js-yaml/schema/default_safe");module.exports.DEFAULT_SCHEMA=require("./js-yaml/schema/default_full");module.exports.scan=deprecated("scan");module.exports.parse=deprecated("parse");module.exports.compose=deprecated("compose");module.exports.addConstructor=deprecated("addConstructor")},{"./js-yaml/dumper":141,"./js-yaml/exception":142,"./js-yaml/loader":143,"./js-yaml/schema":145,"./js-yaml/schema/core":146,"./js-yaml/schema/default_full":147,"./js-yaml/schema/default_safe":148,"./js-yaml/schema/failsafe":149,"./js-yaml/schema/json":150,"./js-yaml/type":151}],140:[function(require,module,exports){"use strict";function isNothing(subject){return typeof subject==="undefined"||subject===null}function isObject(subject){return typeof subject==="object"&&subject!==null}function toArray(sequence){if(Array.isArray(sequence))return sequence;else if(isNothing(sequence))return[];return[sequence]}function extend(target,source){var index,length,key,sourceKeys;if(source){sourceKeys=Object.keys(source);for(index=0,length=sourceKeys.length;indexlineWidth&&string[previousLineBreak+1]!==" ";previousLineBreak=i}}else if(!isPrintable(char)){return STYLE_DOUBLE}plain=plain&&isPlainSafe(char)}hasFoldableLine=hasFoldableLine||shouldTrackWidth&&(i-previousLineBreak-1>lineWidth&&string[previousLineBreak+1]!==" ")}if(!hasLineBreak&&!hasFoldableLine){return plain&&!testAmbiguousType(string)?STYLE_PLAIN:STYLE_SINGLE}if(indentPerLevel>9&&needIndentIndicator(string)){return STYLE_DOUBLE}return hasFoldableLine?STYLE_FOLDED:STYLE_LITERAL}function writeScalar(state,string,level,iskey){state.dump=function(){if(string.length===0){return"''"}if(!state.noCompatMode&&DEPRECATED_BOOLEANS_SYNTAX.indexOf(string)!==-1){return"'"+string+"'"}var indent=state.indent*Math.max(1,level);var lineWidth=state.lineWidth===-1?-1:Math.max(Math.min(state.lineWidth,40),state.lineWidth-indent);var singleLineOnly=iskey||state.flowLevel>-1&&level>=state.flowLevel;function testAmbiguity(string){return testImplicitResolving(state,string)}switch(chooseScalarStyle(string,singleLineOnly,state.indent,lineWidth,testAmbiguity)){case STYLE_PLAIN:return string;case STYLE_SINGLE:return"'"+string.replace(/'/g,"''")+"'";case STYLE_LITERAL:return"|"+blockHeader(string,state.indent)+dropEndingNewline(indentString(string,indent));case STYLE_FOLDED:return">"+blockHeader(string,state.indent)+dropEndingNewline(indentString(foldString(string,lineWidth),indent));case STYLE_DOUBLE:return'"'+escapeString(string,lineWidth)+'"';default:throw new YAMLException("impossible error: invalid scalar style")}}()}function blockHeader(string,indentPerLevel){var indentIndicator=needIndentIndicator(string)?String(indentPerLevel):"";var clip=string[string.length-1]==="\n";var keep=clip&&(string[string.length-2]==="\n"||string==="\n");var chomp=keep?"+":clip?"":"-";return indentIndicator+chomp+"\n"}function dropEndingNewline(string){return string[string.length-1]==="\n"?string.slice(0,-1):string}function foldString(string,width){var lineRe=/(\n+)([^\n]*)/g;var result=function(){var nextLF=string.indexOf("\n");nextLF=nextLF!==-1?nextLF:string.length;lineRe.lastIndex=nextLF;return foldLine(string.slice(0,nextLF),width)}();var prevMoreIndented=string[0]==="\n"||string[0]===" ";var moreIndented;var match;while(match=lineRe.exec(string)){var prefix=match[1],line=match[2];moreIndented=line[0]===" ";result+=prefix+(!prevMoreIndented&&!moreIndented&&line!==""?"\n":"")+foldLine(line,width);prevMoreIndented=moreIndented}return result}function foldLine(line,width){if(line===""||line[0]===" ")return line;var breakRe=/ [^ ]/g;var match;var start=0,end,curr=0,next=0;var result="";while(match=breakRe.exec(line)){next=match.index;if(next-start>width){end=curr>start?curr:next;result+="\n"+line.slice(start,end);start=end+1}curr=next}result+="\n";if(line.length-start>width&&curr>start){result+=line.slice(start,curr)+"\n"+line.slice(curr+1)}else{result+=line.slice(start)}return result.slice(1)}function escapeString(string){var result="";var char,nextChar;var escapeSeq;for(var i=0;i=55296&&char<=56319){nextChar=string.charCodeAt(i+1);if(nextChar>=56320&&nextChar<=57343){result+=encodeHex((char-55296)*1024+nextChar-56320+65536);i++;continue}}escapeSeq=ESCAPE_SEQUENCES[char];result+=!escapeSeq&&isPrintable(char)?string[i]:escapeSeq||encodeHex(char)}return result}function writeFlowSequence(state,level,object){var _result="",_tag=state.tag,index,length;for(index=0,length=object.length;index1024)pairBuffer+="? ";pairBuffer+=state.dump+(state.condenseFlow?'"':"")+":"+(state.condenseFlow?"":" ");if(!writeNode(state,level,objectValue,false,false)){continue}pairBuffer+=state.dump;_result+=pairBuffer}state.tag=_tag;state.dump="{"+_result+"}"}function writeBlockMapping(state,level,object,compact){var _result="",_tag=state.tag,objectKeyList=Object.keys(object),index,length,objectKey,objectValue,explicitPair,pairBuffer;if(state.sortKeys===true){objectKeyList.sort()}else if(typeof state.sortKeys==="function"){objectKeyList.sort(state.sortKeys)}else if(state.sortKeys){throw new YAMLException("sortKeys must be a boolean or a function")}for(index=0,length=objectKeyList.length;index1024;if(explicitPair){if(state.dump&&CHAR_LINE_FEED===state.dump.charCodeAt(0)){pairBuffer+="?"}else{pairBuffer+="? "}}pairBuffer+=state.dump;if(explicitPair){pairBuffer+=generateNextLine(state,level)}if(!writeNode(state,level+1,objectValue,true,explicitPair)){continue}if(state.dump&&CHAR_LINE_FEED===state.dump.charCodeAt(0)){pairBuffer+=":"}else{pairBuffer+=": "}pairBuffer+=state.dump;_result+=pairBuffer}state.tag=_tag;state.dump=_result||"{}"}function detectType(state,object,explicit){var _result,typeList,index,length,type,style;typeList=explicit?state.explicitTypes:state.implicitTypes;for(index=0,length=typeList.length;index tag resolver accepts not "'+style+'" style')}state.dump=_result}return true}}return false}function writeNode(state,level,object,block,compact,iskey){state.tag=null;state.dump=object;if(!detectType(state,object,false)){detectType(state,object,true)}var type=_toString.call(state.dump);if(block){block=state.flowLevel<0||state.flowLevel>level}var objectOrArray=type==="[object Object]"||type==="[object Array]",duplicateIndex,duplicate;if(objectOrArray){duplicateIndex=state.duplicates.indexOf(object);duplicate=duplicateIndex!==-1}if(state.tag!==null&&state.tag!=="?"||duplicate||state.indent!==2&&level>0){compact=false}if(duplicate&&state.usedDuplicates[duplicateIndex]){state.dump="*ref_"+duplicateIndex}else{if(objectOrArray&&duplicate&&!state.usedDuplicates[duplicateIndex]){state.usedDuplicates[duplicateIndex]=true}if(type==="[object Object]"){if(block&&Object.keys(state.dump).length!==0){writeBlockMapping(state,level,state.dump,compact);if(duplicate){state.dump="&ref_"+duplicateIndex+state.dump}}else{writeFlowMapping(state,level,state.dump);if(duplicate){state.dump="&ref_"+duplicateIndex+" "+state.dump}}}else if(type==="[object Array]"){var arrayLevel=state.noArrayIndent&&level>0?level-1:level;if(block&&state.dump.length!==0){writeBlockSequence(state,arrayLevel,state.dump,compact);if(duplicate){state.dump="&ref_"+duplicateIndex+state.dump}}else{writeFlowSequence(state,arrayLevel,state.dump);if(duplicate){state.dump="&ref_"+duplicateIndex+" "+state.dump}}}else if(type==="[object String]"){if(state.tag!=="?"){writeScalar(state,state.dump,level,iskey)}}else{if(state.skipInvalid)return false;throw new YAMLException("unacceptable kind of an object to dump "+type)}if(state.tag!==null&&state.tag!=="?"){state.dump="!<"+state.tag+"> "+state.dump}}return true}function getDuplicateReferences(object,state){var objects=[],duplicatesIndexes=[],index,length;inspectNode(object,objects,duplicatesIndexes);for(index=0,length=duplicatesIndexes.length;index>10)+55296,(c-65536&1023)+56320)}var simpleEscapeCheck=new Array(256);var simpleEscapeMap=new Array(256);for(var i=0;i<256;i++){simpleEscapeCheck[i]=simpleEscapeSequence(i)?1:0;simpleEscapeMap[i]=simpleEscapeSequence(i)}function State(input,options){this.input=input;this.filename=options["filename"]||null;this.schema=options["schema"]||DEFAULT_FULL_SCHEMA;this.onWarning=options["onWarning"]||null;this.legacy=options["legacy"]||false;this.json=options["json"]||false;this.listener=options["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=input.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.documents=[]}function generateError(state,message){return new YAMLException(message,new Mark(state.filename,state.input,state.position,state.line,state.position-state.lineStart))}function throwError(state,message){throw generateError(state,message)}function throwWarning(state,message){if(state.onWarning){state.onWarning.call(null,generateError(state,message))}}var directiveHandlers={YAML:function handleYamlDirective(state,name,args){var match,major,minor;if(state.version!==null){throwError(state,"duplication of %YAML directive")}if(args.length!==1){throwError(state,"YAML directive accepts exactly one argument")}match=/^([0-9]+)\.([0-9]+)$/.exec(args[0]);if(match===null){throwError(state,"ill-formed argument of the YAML directive")}major=parseInt(match[1],10);minor=parseInt(match[2],10);if(major!==1){throwError(state,"unacceptable YAML version of the document")}state.version=args[0];state.checkLineBreaks=minor<2;if(minor!==1&&minor!==2){throwWarning(state,"unsupported YAML version of the document")}},TAG:function handleTagDirective(state,name,args){var handle,prefix;if(args.length!==2){throwError(state,"TAG directive accepts exactly two arguments")}handle=args[0];prefix=args[1];if(!PATTERN_TAG_HANDLE.test(handle)){throwError(state,"ill-formed tag handle (first argument) of the TAG directive")}if(_hasOwnProperty.call(state.tagMap,handle)){throwError(state,'there is a previously declared suffix for "'+handle+'" tag handle')}if(!PATTERN_TAG_URI.test(prefix)){throwError(state,"ill-formed tag prefix (second argument) of the TAG directive")}state.tagMap[handle]=prefix}};function captureSegment(state,start,end,checkJson){var _position,_length,_character,_result;if(start1){state.result+=common.repeat("\n",count-1)}}function readPlainScalar(state,nodeIndent,withinFlowCollection){var preceding,following,captureStart,captureEnd,hasPendingContent,_line,_lineStart,_lineIndent,_kind=state.kind,_result=state.result,ch;ch=state.input.charCodeAt(state.position);if(is_WS_OR_EOL(ch)||is_FLOW_INDICATOR(ch)||ch===35||ch===38||ch===42||ch===33||ch===124||ch===62||ch===39||ch===34||ch===37||ch===64||ch===96){return false}if(ch===63||ch===45){following=state.input.charCodeAt(state.position+1);if(is_WS_OR_EOL(following)||withinFlowCollection&&is_FLOW_INDICATOR(following)){return false}}state.kind="scalar";state.result="";captureStart=captureEnd=state.position;hasPendingContent=false;while(ch!==0){if(ch===58){following=state.input.charCodeAt(state.position+1);if(is_WS_OR_EOL(following)||withinFlowCollection&&is_FLOW_INDICATOR(following)){break}}else if(ch===35){preceding=state.input.charCodeAt(state.position-1);if(is_WS_OR_EOL(preceding)){break}}else if(state.position===state.lineStart&&testDocumentSeparator(state)||withinFlowCollection&&is_FLOW_INDICATOR(ch)){break}else if(is_EOL(ch)){_line=state.line;_lineStart=state.lineStart;_lineIndent=state.lineIndent;skipSeparationSpace(state,false,-1);if(state.lineIndent>=nodeIndent){hasPendingContent=true;ch=state.input.charCodeAt(state.position);continue}else{state.position=captureEnd;state.line=_line;state.lineStart=_lineStart;state.lineIndent=_lineIndent;break}}if(hasPendingContent){captureSegment(state,captureStart,captureEnd,false);writeFoldedLines(state,state.line-_line);captureStart=captureEnd=state.position;hasPendingContent=false}if(!is_WHITE_SPACE(ch)){captureEnd=state.position+1}ch=state.input.charCodeAt(++state.position)}captureSegment(state,captureStart,captureEnd,false);if(state.result){return true}state.kind=_kind;state.result=_result;return false}function readSingleQuotedScalar(state,nodeIndent){var ch,captureStart,captureEnd;ch=state.input.charCodeAt(state.position);if(ch!==39){return false}state.kind="scalar";state.result="";state.position++;captureStart=captureEnd=state.position;while((ch=state.input.charCodeAt(state.position))!==0){if(ch===39){captureSegment(state,captureStart,state.position,true);ch=state.input.charCodeAt(++state.position);if(ch===39){captureStart=state.position;state.position++;captureEnd=state.position}else{return true}}else if(is_EOL(ch)){captureSegment(state,captureStart,captureEnd,true);writeFoldedLines(state,skipSeparationSpace(state,false,nodeIndent));captureStart=captureEnd=state.position}else if(state.position===state.lineStart&&testDocumentSeparator(state)){throwError(state,"unexpected end of the document within a single quoted scalar")}else{state.position++;captureEnd=state.position}}throwError(state,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(state,nodeIndent){var captureStart,captureEnd,hexLength,hexResult,tmp,ch;ch=state.input.charCodeAt(state.position);if(ch!==34){return false}state.kind="scalar";state.result="";state.position++;captureStart=captureEnd=state.position;while((ch=state.input.charCodeAt(state.position))!==0){if(ch===34){captureSegment(state,captureStart,state.position,true);state.position++;return true}else if(ch===92){captureSegment(state,captureStart,state.position,true);ch=state.input.charCodeAt(++state.position);if(is_EOL(ch)){skipSeparationSpace(state,false,nodeIndent)}else if(ch<256&&simpleEscapeCheck[ch]){state.result+=simpleEscapeMap[ch];state.position++}else if((tmp=escapedHexLen(ch))>0){hexLength=tmp;hexResult=0;for(;hexLength>0;hexLength--){ch=state.input.charCodeAt(++state.position);if((tmp=fromHexCode(ch))>=0){hexResult=(hexResult<<4)+tmp}else{throwError(state,"expected hexadecimal character")}}state.result+=charFromCodepoint(hexResult);state.position++}else{throwError(state,"unknown escape sequence")}captureStart=captureEnd=state.position}else if(is_EOL(ch)){captureSegment(state,captureStart,captureEnd,true);writeFoldedLines(state,skipSeparationSpace(state,false,nodeIndent));captureStart=captureEnd=state.position}else if(state.position===state.lineStart&&testDocumentSeparator(state)){throwError(state,"unexpected end of the document within a double quoted scalar")}else{state.position++;captureEnd=state.position}}throwError(state,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(state,nodeIndent){var readNext=true,_line,_tag=state.tag,_result,_anchor=state.anchor,following,terminator,isPair,isExplicitPair,isMapping,overridableKeys={},keyNode,keyTag,valueNode,ch;ch=state.input.charCodeAt(state.position);if(ch===91){terminator=93;isMapping=false;_result=[]}else if(ch===123){terminator=125;isMapping=true;_result={}}else{return false}if(state.anchor!==null){state.anchorMap[state.anchor]=_result}ch=state.input.charCodeAt(++state.position);while(ch!==0){skipSeparationSpace(state,true,nodeIndent);ch=state.input.charCodeAt(state.position);if(ch===terminator){state.position++;state.tag=_tag;state.anchor=_anchor;state.kind=isMapping?"mapping":"sequence";state.result=_result;return true}else if(!readNext){throwError(state,"missed comma between flow collection entries")}keyTag=keyNode=valueNode=null;isPair=isExplicitPair=false;if(ch===63){following=state.input.charCodeAt(state.position+1);if(is_WS_OR_EOL(following)){isPair=isExplicitPair=true;state.position++;skipSeparationSpace(state,true,nodeIndent)}}_line=state.line;composeNode(state,nodeIndent,CONTEXT_FLOW_IN,false,true);keyTag=state.tag;keyNode=state.result;skipSeparationSpace(state,true,nodeIndent);ch=state.input.charCodeAt(state.position);if((isExplicitPair||state.line===_line)&&ch===58){isPair=true;ch=state.input.charCodeAt(++state.position);skipSeparationSpace(state,true,nodeIndent);composeNode(state,nodeIndent,CONTEXT_FLOW_IN,false,true);valueNode=state.result}if(isMapping){storeMappingPair(state,_result,overridableKeys,keyTag,keyNode,valueNode)}else if(isPair){_result.push(storeMappingPair(state,null,overridableKeys,keyTag,keyNode,valueNode))}else{_result.push(keyNode)}skipSeparationSpace(state,true,nodeIndent);ch=state.input.charCodeAt(state.position);if(ch===44){readNext=true;ch=state.input.charCodeAt(++state.position)}else{readNext=false}}throwError(state,"unexpected end of the stream within a flow collection")}function readBlockScalar(state,nodeIndent){var captureStart,folding,chomping=CHOMPING_CLIP,didReadContent=false,detectedIndent=false,textIndent=nodeIndent,emptyLines=0,atMoreIndented=false,tmp,ch;ch=state.input.charCodeAt(state.position);if(ch===124){folding=false}else if(ch===62){folding=true}else{return false}state.kind="scalar";state.result="";while(ch!==0){ch=state.input.charCodeAt(++state.position);if(ch===43||ch===45){if(CHOMPING_CLIP===chomping){chomping=ch===43?CHOMPING_KEEP:CHOMPING_STRIP}else{throwError(state,"repeat of a chomping mode identifier")}}else if((tmp=fromDecimalCode(ch))>=0){if(tmp===0){throwError(state,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!detectedIndent){textIndent=nodeIndent+tmp-1;detectedIndent=true}else{throwError(state,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(ch)){do{ch=state.input.charCodeAt(++state.position)}while(is_WHITE_SPACE(ch));if(ch===35){do{ch=state.input.charCodeAt(++state.position)}while(!is_EOL(ch)&&ch!==0)}}while(ch!==0){readLineBreak(state);state.lineIndent=0;ch=state.input.charCodeAt(state.position);while((!detectedIndent||state.lineIndenttextIndent){textIndent=state.lineIndent}if(is_EOL(ch)){emptyLines++;continue}if(state.lineIndentnodeIndent)&&ch!==0){throwError(state,"bad indentation of a sequence entry")}else if(state.lineIndentnodeIndent){if(composeNode(state,nodeIndent,CONTEXT_BLOCK_OUT,true,allowCompact)){if(atExplicitKey){keyNode=state.result}else{valueNode=state.result}}if(!atExplicitKey){storeMappingPair(state,_result,overridableKeys,keyTag,keyNode,valueNode,_line,_pos);keyTag=keyNode=valueNode=null}skipSeparationSpace(state,true,-1);ch=state.input.charCodeAt(state.position)}if(state.lineIndent>nodeIndent&&ch!==0){throwError(state,"bad indentation of a mapping entry")}else if(state.lineIndentparentIndent){indentStatus=1}else if(state.lineIndent===parentIndent){indentStatus=0}else if(state.lineIndentparentIndent){indentStatus=1}else if(state.lineIndent===parentIndent){indentStatus=0}else if(state.lineIndent tag; it should be "'+type.kind+'", not "'+state.kind+'"')}if(!type.resolve(state.result)){throwError(state,"cannot resolve a node with !<"+state.tag+"> explicit tag")}else{state.result=type.construct(state.result);if(state.anchor!==null){state.anchorMap[state.anchor]=state.result}}}else{throwError(state,"unknown tag !<"+state.tag+">")}}if(state.listener!==null){state.listener("close",state)}return state.tag!==null||state.anchor!==null||hasContent}function readDocument(state){var documentStart=state.position,_position,directiveName,directiveArgs,hasDirectives=false,ch;state.version=null;state.checkLineBreaks=state.legacy;state.tagMap={};state.anchorMap={};while((ch=state.input.charCodeAt(state.position))!==0){skipSeparationSpace(state,true,-1);ch=state.input.charCodeAt(state.position);if(state.lineIndent>0||ch!==37){break}hasDirectives=true;ch=state.input.charCodeAt(++state.position);_position=state.position;while(ch!==0&&!is_WS_OR_EOL(ch)){ch=state.input.charCodeAt(++state.position)}directiveName=state.input.slice(_position,state.position);directiveArgs=[];if(directiveName.length<1){throwError(state,"directive name must not be less than one character in length")}while(ch!==0){while(is_WHITE_SPACE(ch)){ch=state.input.charCodeAt(++state.position)}if(ch===35){do{ch=state.input.charCodeAt(++state.position)}while(ch!==0&&!is_EOL(ch));break}if(is_EOL(ch))break;_position=state.position;while(ch!==0&&!is_WS_OR_EOL(ch)){ch=state.input.charCodeAt(++state.position)}directiveArgs.push(state.input.slice(_position,state.position))}if(ch!==0)readLineBreak(state);if(_hasOwnProperty.call(directiveHandlers,directiveName)){directiveHandlers[directiveName](state,directiveName,directiveArgs)}else{throwWarning(state,'unknown document directive "'+directiveName+'"')}}skipSeparationSpace(state,true,-1);if(state.lineIndent===0&&state.input.charCodeAt(state.position)===45&&state.input.charCodeAt(state.position+1)===45&&state.input.charCodeAt(state.position+2)===45){state.position+=3;skipSeparationSpace(state,true,-1)}else if(hasDirectives){throwError(state,"directives end mark is expected")}composeNode(state,state.lineIndent-1,CONTEXT_BLOCK_OUT,false,true);skipSeparationSpace(state,true,-1);if(state.checkLineBreaks&&PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart,state.position))){throwWarning(state,"non-ASCII line breaks are interpreted as content")}state.documents.push(state.result);if(state.position===state.lineStart&&testDocumentSeparator(state)){if(state.input.charCodeAt(state.position)===46){state.position+=3;skipSeparationSpace(state,true,-1)}return}if(state.position0&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(start-1))===-1){start-=1;if(this.position-start>maxLength/2-1){head=" ... ";start+=5;break}}tail="";end=this.position;while(endmaxLength/2-1){tail=" ... ";end-=5;break}}snippet=this.buffer.slice(start,end);return common.repeat(" ",indent)+head+snippet+tail+"\n"+common.repeat(" ",indent+this.position-start+head.length)+"^"};Mark.prototype.toString=function toString(compact){var snippet,where="";if(this.name){where+='in "'+this.name+'" '}where+="at line "+(this.line+1)+", column "+(this.column+1);if(!compact){snippet=this.getSnippet();if(snippet){where+=":\n"+snippet}}return where};module.exports=Mark},{"./common":140}],145:[function(require,module,exports){"use strict";var common=require("./common");var YAMLException=require("./exception");var Type=require("./type");function compileList(schema,name,result){var exclude=[];schema.include.forEach(function(includedSchema){result=compileList(includedSchema,name,result)});schema[name].forEach(function(currentType){result.forEach(function(previousType,previousIndex){if(previousType.tag===currentType.tag&&previousType.kind===currentType.kind){exclude.push(previousIndex)}});result.push(currentType)});return result.filter(function(type,index){return exclude.indexOf(index)===-1})}function compileMap(){var result={scalar:{},sequence:{},mapping:{},fallback:{}},index,length;function collectType(type){result[type.kind][type.tag]=result["fallback"][type.tag]=type}for(index=0,length=arguments.length;index64)continue;if(code<0)return false;bitlen+=6}return bitlen%8===0}function constructYamlBinary(data){var idx,tailbits,input=data.replace(/[\r\n=]/g,""),max=input.length,map=BASE64_MAP,bits=0,result=[];for(idx=0;idx>16&255);result.push(bits>>8&255);result.push(bits&255)}bits=bits<<6|map.indexOf(input.charAt(idx))}tailbits=max%4*6;if(tailbits===0){result.push(bits>>16&255);result.push(bits>>8&255);result.push(bits&255)}else if(tailbits===18){result.push(bits>>10&255);result.push(bits>>2&255)}else if(tailbits===12){result.push(bits>>4&255)}if(NodeBuffer){return NodeBuffer.from?NodeBuffer.from(result):new NodeBuffer(result)}return result}function representYamlBinary(object){var result="",bits=0,idx,tail,max=object.length,map=BASE64_MAP;for(idx=0;idx>18&63];result+=map[bits>>12&63];result+=map[bits>>6&63];result+=map[bits&63]}bits=(bits<<8)+object[idx]}tail=max%3;if(tail===0){result+=map[bits>>18&63];result+=map[bits>>12&63];result+=map[bits>>6&63];result+=map[bits&63]}else if(tail===2){result+=map[bits>>10&63];result+=map[bits>>4&63];result+=map[bits<<2&63];result+=map[64]}else if(tail===1){result+=map[bits>>2&63];result+=map[bits<<4&63];result+=map[64];result+=map[64]}return result}function isBinary(object){return NodeBuffer&&NodeBuffer.isBuffer(object)}module.exports=new Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},{"../type":151}],153:[function(require,module,exports){"use strict";var Type=require("../type");function resolveYamlBoolean(data){if(data===null)return false;var max=data.length;return max===4&&(data==="true"||data==="True"||data==="TRUE")||max===5&&(data==="false"||data==="False"||data==="FALSE")}function constructYamlBoolean(data){return data==="true"||data==="True"||data==="TRUE"}function isBoolean(object){return Object.prototype.toString.call(object)==="[object Boolean]"}module.exports=new Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(object){return object?"true":"false"},uppercase:function(object){return object?"TRUE":"FALSE"},camelcase:function(object){return object?"True":"False"}},defaultStyle:"lowercase"})},{"../type":151}],154:[function(require,module,exports){"use strict";var common=require("../common");var Type=require("../type");var YAML_FLOAT_PATTERN=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(data){if(data===null)return false;if(!YAML_FLOAT_PATTERN.test(data)||data[data.length-1]==="_"){return false}return true}function constructYamlFloat(data){var value,sign,base,digits;value=data.replace(/_/g,"").toLowerCase();sign=value[0]==="-"?-1:1;digits=[];if("+-".indexOf(value[0])>=0){value=value.slice(1)}if(value===".inf"){return sign===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(value===".nan"){return NaN}else if(value.indexOf(":")>=0){value.split(":").forEach(function(v){digits.unshift(parseFloat(v,10))});value=0;base=1;digits.forEach(function(d){value+=d*base;base*=60});return sign*value}return sign*parseFloat(value,10)}var SCIENTIFIC_WITHOUT_DOT=/^[-+]?[0-9]+e/;function representYamlFloat(object,style){var res;if(isNaN(object)){switch(style){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===object){switch(style){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===object){switch(style){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(common.isNegativeZero(object)){return"-0.0"}res=object.toString(10);return SCIENTIFIC_WITHOUT_DOT.test(res)?res.replace("e",".e"):res}function isFloat(object){return Object.prototype.toString.call(object)==="[object Number]"&&(object%1!==0||common.isNegativeZero(object))}module.exports=new Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},{"../common":140,"../type":151}],155:[function(require,module,exports){"use strict";var common=require("../common");var Type=require("../type");function isHexCode(c){return 48<=c&&c<=57||65<=c&&c<=70||97<=c&&c<=102}function isOctCode(c){return 48<=c&&c<=55}function isDecCode(c){return 48<=c&&c<=57}function resolveYamlInteger(data){if(data===null)return false;var max=data.length,index=0,hasDigits=false,ch;if(!max)return false;ch=data[index];if(ch==="-"||ch==="+"){ch=data[++index]}if(ch==="0"){if(index+1===max)return true;ch=data[++index];if(ch==="b"){index++;for(;index=0?"0b"+obj.toString(2):"-0b"+obj.toString(2).slice(1)},octal:function(obj){return obj>=0?"0"+obj.toString(8):"-0"+obj.toString(8).slice(1)},decimal:function(obj){return obj.toString(10)},hexadecimal:function(obj){return obj>=0?"0x"+obj.toString(16).toUpperCase():"-0x"+obj.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},{"../common":140,"../type":151}],156:[function(require,module,exports){"use strict";var esprima;try{var _require=require;esprima=_require("esprima")}catch(_){if(typeof window!=="undefined")esprima=window.esprima}var Type=require("../../type");function resolveJavascriptFunction(data){if(data===null)return false;try{var source="("+data+")",ast=esprima.parse(source,{range:true});if(ast.type!=="Program"||ast.body.length!==1||ast.body[0].type!=="ExpressionStatement"||ast.body[0].expression.type!=="ArrowFunctionExpression"&&ast.body[0].expression.type!=="FunctionExpression"){return false}return true}catch(err){return false}}function constructJavascriptFunction(data){var source="("+data+")",ast=esprima.parse(source,{range:true}),params=[],body;if(ast.type!=="Program"||ast.body.length!==1||ast.body[0].type!=="ExpressionStatement"||ast.body[0].expression.type!=="ArrowFunctionExpression"&&ast.body[0].expression.type!=="FunctionExpression"){throw new Error("Failed to resolve function")}ast.body[0].expression.params.forEach(function(param){params.push(param.name)});body=ast.body[0].expression.body.range;if(ast.body[0].expression.body.type==="BlockStatement"){return new Function(params,source.slice(body[0]+1,body[1]-1))}return new Function(params,"return "+source.slice(body[0],body[1]))}function representJavascriptFunction(object){return object.toString()}function isFunction(object){return Object.prototype.toString.call(object)==="[object Function]"}module.exports=new Type("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction})},{"../../type":151}],157:[function(require,module,exports){"use strict";var Type=require("../../type");function resolveJavascriptRegExp(data){if(data===null)return false;if(data.length===0)return false;var regexp=data,tail=/\/([gim]*)$/.exec(data),modifiers="";if(regexp[0]==="/"){if(tail)modifiers=tail[1];if(modifiers.length>3)return false;if(regexp[regexp.length-modifiers.length-1]!=="/")return false}return true}function constructJavascriptRegExp(data){var regexp=data,tail=/\/([gim]*)$/.exec(data),modifiers="";if(regexp[0]==="/"){if(tail)modifiers=tail[1];regexp=regexp.slice(1,regexp.length-modifiers.length-1)}return new RegExp(regexp,modifiers)}function representJavascriptRegExp(object){var result="/"+object.source+"/";if(object.global)result+="g";if(object.multiline)result+="m";if(object.ignoreCase)result+="i";return result}function isRegExp(object){return Object.prototype.toString.call(object)==="[object RegExp]"}module.exports=new Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})},{"../../type":151}],158:[function(require,module,exports){"use strict";var Type=require("../../type");function resolveJavascriptUndefined(){return true}function constructJavascriptUndefined(){return undefined}function representJavascriptUndefined(){return""}function isUndefined(object){return typeof object==="undefined"}module.exports=new Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:resolveJavascriptUndefined,construct:constructJavascriptUndefined,predicate:isUndefined,represent:representJavascriptUndefined})},{"../../type":151}],159:[function(require,module,exports){"use strict";var Type=require("../type");module.exports=new Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(data){return data!==null?data:{}}})},{"../type":151}],160:[function(require,module,exports){"use strict";var Type=require("../type");function resolveYamlMerge(data){return data==="<<"||data===null}module.exports=new Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},{"../type":151}],161:[function(require,module,exports){"use strict";var Type=require("../type");function resolveYamlNull(data){if(data===null)return true;var max=data.length;return max===1&&data==="~"||max===4&&(data==="null"||data==="Null"||data==="NULL")}function constructYamlNull(){return null}function isNull(object){return object===null}module.exports=new Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},{"../type":151}],162:[function(require,module,exports){"use strict";var Type=require("../type");var _hasOwnProperty=Object.prototype.hasOwnProperty;var _toString=Object.prototype.toString;function resolveYamlOmap(data){if(data===null)return true;var objectKeys=[],index,length,pair,pairKey,pairHasKey,object=data;for(index=0,length=object.length;index=1){var hi=str.charCodeAt(idx-1);var low=code;if(55296<=hi&&hi<=56319){return(hi-55296)*1024+(low-56320)+65536}return low}return code}function shouldBreak(start,mid,end){var all=[start].concat(mid).concat([end]);var previous=all[all.length-2];var next=end;var eModifierIndex=all.lastIndexOf(E_Modifier);if(eModifierIndex>1&&all.slice(1,eModifierIndex).every(function(c){return c==Extend})&&[Extend,E_Base,E_Base_GAZ].indexOf(start)==-1){return Break}var rIIndex=all.lastIndexOf(Regional_Indicator);if(rIIndex>0&&all.slice(1,rIIndex).every(function(c){return c==Regional_Indicator})&&[Prepend,Regional_Indicator].indexOf(previous)==-1){if(all.filter(function(c){return c==Regional_Indicator}).length%2==1){return BreakLastRegional}else{return BreakPenultimateRegional}}if(previous==CR&&next==LF){return NotBreak}else if(previous==Control||previous==CR||previous==LF){if(next==E_Modifier&&mid.every(function(c){return c==Extend})){return Break}else{return BreakStart}}else if(next==Control||next==CR||next==LF){return BreakStart}else if(previous==L&&(next==L||next==V||next==LV||next==LVT)){return NotBreak}else if((previous==LV||previous==V)&&(next==V||next==T)){return NotBreak}else if((previous==LVT||previous==T)&&next==T){return NotBreak}else if(next==Extend||next==ZWJ){return NotBreak}else if(next==SpacingMark){return NotBreak}else if(previous==Prepend){return NotBreak}var previousNonExtendIndex=all.indexOf(Extend)!=-1?all.lastIndexOf(Extend)-1:all.length-2;if([E_Base,E_Base_GAZ].indexOf(all[previousNonExtendIndex])!=-1&&all.slice(previousNonExtendIndex+1,-1).every(function(c){return c==Extend})&&next==E_Modifier){return NotBreak}if(previous==ZWJ&&[Glue_After_Zwj,E_Base_GAZ].indexOf(next)!=-1){return NotBreak}if(mid.indexOf(Regional_Indicator)!=-1){return Break}if(previous==Regional_Indicator&&next==Regional_Indicator){return NotBreak}return BreakStart}this.nextBreak=function(string,index){if(index===undefined){index=0}if(index<0){return 0}if(index>=string.length-1){return string.length}var prev=getGraphemeBreakProperty(codePointAt(string,index));var mid=[];for(var i=index+1;i=max){return res.substr(0,max)}while(max>res.length&&num>1){if(num&1){res+=str}num>>=1;str+=str}res+=str;res=res.substr(0,max);return res}"use strict";var padStart=function padStart(string,maxLength,fillString){if(string==null||maxLength==null){return string}var result=String(string);var targetLen=typeof maxLength==="number"?maxLength:parseInt(maxLength,10);if(isNaN(targetLen)||!isFinite(targetLen)){return result}var length=result.length;if(length>=targetLen){return result}var fill=fillString==null?"":String(fillString);if(fill===""){fill=" "}var fillLen=targetLen-length;while(fill.lengthfillLen?fill.substr(0,fillLen):fill;return truncated+result};var _extends=Object.assign||function(target){for(var i=1;i1?_len-1:0),_key=1;_key<_len;_key++){position[_key-1]=arguments[_key]}return"Unexpected token <"+token+"> at "+position.filter(Boolean).join(":")}};var tokenizeErrorTypes={unexpectedSymbol:function unexpectedSymbol(symbol){for(var _len=arguments.length,position=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){position[_key-1]=arguments[_key]}return"Unexpected symbol <"+symbol+"> at "+position.filter(Boolean).join(":")}};var tokenTypes={LEFT_BRACE:0,RIGHT_BRACE:1,LEFT_BRACKET:2,RIGHT_BRACKET:3,COLON:4,COMMA:5,STRING:6,NUMBER:7,TRUE:8,FALSE:9,NULL:10};var punctuatorTokensMap={"{":tokenTypes.LEFT_BRACE,"}":tokenTypes.RIGHT_BRACE,"[":tokenTypes.LEFT_BRACKET,"]":tokenTypes.RIGHT_BRACKET,":":tokenTypes.COLON,",":tokenTypes.COMMA};var keywordTokensMap={true:tokenTypes.TRUE,false:tokenTypes.FALSE,null:tokenTypes.NULL};var stringStates={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2};var escapes$1={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8};var numberStates={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function isDigit1to9(char){return char>="1"&&char<="9"}function isDigit(char){return char>="0"&&char<="9"}function isHex(char){return isDigit(char)||char>="a"&&char<="f"||char>="A"&&char<="F"}function isExp(char){return char==="e"||char==="E"}function parseWhitespace(input,index,line,column){var char=input.charAt(index);if(char==="\r"){index++;line++;column=1;if(input.charAt(index)==="\n"){index++}}else if(char==="\n"){index++;line++;column=1}else if(char==="\t"||char===" "){index++;column++}else{return null}return{index:index,line:line,column:column}}function parseChar(input,index,line,column){var char=input.charAt(index);if(char in punctuatorTokensMap){return{type:punctuatorTokensMap[char],line:line,column:column+1,index:index+1,value:null}}return null}function parseKeyword(input,index,line,column){for(var name in keywordTokensMap){if(keywordTokensMap.hasOwnProperty(name)&&input.substr(index,name.length)===name){return{type:keywordTokensMap[name],line:line,column:column+name.length,index:index+name.length,value:name}}}return null}function parseString$1(input,index,line,column){var startIndex=index;var state=stringStates._START_;while(index0){return{type:tokenTypes.NUMBER,line:line,column:column+passedValueIndex-startIndex,index:passedValueIndex,value:input.slice(startIndex,passedValueIndex)}}return null}var tokenize=function tokenize(input,settings){var line=1;var column=1;var index=0;var tokens=[];while(index0?tokenList[tokenList.length-1].loc.end:{line:1,column:1};error(parseErrorTypes.unexpectedEnd(),input,settings.source,loc.line,loc.column)}function parseHexEscape(hexCode){var charCode=0;for(var i=0;i<4;i++){charCode=charCode*16+parseInt(hexCode[i],16)}return String.fromCharCode(charCode)}var escapes={b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};var passEscapes=['"',"\\","/"];function parseString(string){var result="";for(var i=0;i-1}function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){data.push([key,value])}else{data[index][1]=value}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(entries){var index=-1,length=entries?entries.length:0;this.clear();while(++index-1&&value%1==0&&value-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isObject(value){var type=typeof value;return!!value&&(type=="object"||type=="function")}function isObjectLike(value){return!!value&&typeof value=="object"}function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}function stubArray(){return[]}function stubFalse(){return false}module.exports=cloneDeep}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],171:[function(require,module,exports){(function(process){function normalizeArray(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up--;up){parts.unshift("..")}}return parts}exports.resolve=function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:process.cwd();if(typeof path!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){continue}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=path.charAt(0)==="/"}resolvedPath=normalizeArray(filter(resolvedPath.split("/"),function(p){return!!p}),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."};exports.normalize=function(path){var isAbsolute=exports.isAbsolute(path),trailingSlash=substr(path,-1)==="/";path=normalizeArray(filter(path.split("/"),function(p){return!!p}),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path};exports.isAbsolute=function(path){return path.charAt(0)==="/"};exports.join=function(){var paths=Array.prototype.slice.call(arguments,0);return exports.normalize(filter(paths,function(p,index){if(typeof p!=="string"){throw new TypeError("Arguments to path.join must be strings")}return p}).join("/"))};exports.relative=function(from,to){from=exports.resolve(from).substr(1);to=exports.resolve(to).substr(1);function trim(arr){var start=0;for(;start=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i=1;--i){code=path.charCodeAt(i);if(code===47){if(!matchedSlash){end=i;break}}else{matchedSlash=false}}if(end===-1)return hasRoot?"/":".";if(hasRoot&&end===1){return"/"}return path.slice(0,end)};function basename(path){if(typeof path!=="string")path=path+"";var start=0;var end=-1;var matchedSlash=true;var i;for(i=path.length-1;i>=0;--i){if(path.charCodeAt(i)===47){if(!matchedSlash){start=i+1;break}}else if(end===-1){matchedSlash=false;end=i+1}}if(end===-1)return"";return path.slice(start,end)}exports.basename=function(path,ext){var f=basename(path);if(ext&&f.substr(-1*ext.length)===ext){f=f.substr(0,f.length-ext.length)}return f};exports.extname=function(path){if(typeof path!=="string")path=path+"";var startDot=-1;var startPart=0;var end=-1;var matchedSlash=true;var preDotState=0;for(var i=path.length-1;i>=0;--i){var code=path.charCodeAt(i);if(code===47){if(!matchedSlash){startPart=i+1;break}continue}if(end===-1){matchedSlash=false;end=i+1}if(code===46){if(startDot===-1)startDot=i;else if(preDotState!==1)preDotState=1}else if(startDot!==-1){preDotState=-1}}if(startDot===-1||end===-1||preDotState===0||preDotState===1&&startDot===end-1&&startDot===startPart+1){return""}return path.slice(startDot,end)};function filter(xs,f){if(xs.filter)return xs.filter(f);var res=[];for(var i=0;i1){for(var i=1;i0&&len>maxKeys){len=maxKeys}for(var i=0;i=0){kstr=x.substr(0,idx);vstr=x.substr(idx+1)}else{kstr=x;vstr=""}k=decodeURIComponent(kstr);v=decodeURIComponent(vstr);if(!hasOwnProperty(obj,k)){obj[k]=v}else if(isArray(obj[k])){obj[k].push(v)}else{obj[k]=[obj[k],v]}}return obj};var isArray=Array.isArray||function(xs){return Object.prototype.toString.call(xs)==="[object Array]"}},{}],174:[function(require,module,exports){"use strict";var stringifyPrimitive=function(v){switch(typeof v){case"string":return v;case"boolean":return v?"true":"false";case"number":return isFinite(v)?v:"";default:return""}};module.exports=function(obj,sep,eq,name){sep=sep||"&";eq=eq||"=";if(obj===null){obj=undefined}if(typeof obj==="object"){return map(objectKeys(obj),function(k){var ks=encodeURIComponent(stringifyPrimitive(k))+eq;if(isArray(obj[k])){return map(obj[k],function(v){return ks+encodeURIComponent(stringifyPrimitive(v))}).join(sep)}else{return ks+encodeURIComponent(stringifyPrimitive(obj[k]))}}).join(sep)}if(!name)return"";return encodeURIComponent(stringifyPrimitive(name))+eq+encodeURIComponent(stringifyPrimitive(obj))};var isArray=Array.isArray||function(xs){return Object.prototype.toString.call(xs)==="[object Array]"};function map(xs,f){if(xs.map)return xs.map(f);var res=[];for(var i=0;iself._pos){var newData=response.substr(self._pos);if(self._charset==="x-user-defined"){var buffer=Buffer.alloc(newData.length);for(var i=0;iself._pos){self.push(Buffer.from(new Uint8Array(reader.result.slice(self._pos))));self._pos=reader.result.byteLength}};reader.onload=function(){self.push(null)};reader.readAsArrayBuffer(response);break}if(self._xhr.readyState===rStates.DONE&&self._mode!=="ms-stream"){self.push(null)}}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{},require("buffer").Buffer)},{"./capability":178,_process:172,buffer:128,inherits:136,"readable-stream":195}],181:[function(require,module,exports){"use strict";function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype);subClass.prototype.constructor=subClass;subClass.__proto__=superClass}var codes={};function createErrorType(code,message,Base){if(!Base){Base=Error}function getMessage(arg1,arg2,arg3){if(typeof message==="string"){return message}else{return message(arg1,arg2,arg3)}}var NodeError=function(_Base){_inheritsLoose(NodeError,_Base);function NodeError(arg1,arg2,arg3){return _Base.call(this,getMessage(arg1,arg2,arg3))||this}return NodeError}(Base);NodeError.prototype.name=Base.name;NodeError.prototype.code=code;codes[code]=NodeError}function oneOf(expected,thing){if(Array.isArray(expected)){var len=expected.length;expected=expected.map(function(i){return String(i)});if(len>2){return"one of ".concat(thing," ").concat(expected.slice(0,len-1).join(", "),", or ")+expected[len-1]}else if(len===2){return"one of ".concat(thing," ").concat(expected[0]," or ").concat(expected[1])}else{return"of ".concat(thing," ").concat(expected[0])}}else{return"of ".concat(thing," ").concat(String(expected))}}function startsWith(str,search,pos){return str.substr(!pos||pos<0?0:+pos,search.length)===search}function endsWith(str,search,this_len){if(this_len===undefined||this_len>str.length){this_len=str.length}return str.substring(this_len-search.length,this_len)===search}function includes(str,search,start){if(typeof start!=="number"){start=0}if(start+search.length>str.length){return false}else{return str.indexOf(search,start)!==-1}}createErrorType("ERR_INVALID_OPT_VALUE",function(name,value){return'The value "'+value+'" is invalid for option "'+name+'"'},TypeError);createErrorType("ERR_INVALID_ARG_TYPE",function(name,expected,actual){var determiner;if(typeof expected==="string"&&startsWith(expected,"not ")){determiner="must not be";expected=expected.replace(/^not /,"")}else{determiner="must be"}var msg;if(endsWith(name," argument")){msg="The ".concat(name," ").concat(determiner," ").concat(oneOf(expected,"type"))}else{var type=includes(name,".")?"property":"argument";msg='The "'.concat(name,'" ').concat(type," ").concat(determiner," ").concat(oneOf(expected,"type"))}msg+=". Received type ".concat(typeof actual);return msg},TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(name){return"The "+name+" method is not implemented"});createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",function(name){return"Cannot call "+name+" after a stream was destroyed"});createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",function(arg){return"Unknown encoding: "+arg},TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");module.exports.codes=codes},{}],182:[function(require,module,exports){(function(process){"use strict";var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj){keys.push(key)}return keys};module.exports=Duplex;var Readable=require("./_stream_readable");var Writable=require("./_stream_writable");require("inherits")(Duplex,Readable);{var keys=objectKeys(Writable.prototype);for(var v=0;v0){if(typeof chunk!=="string"&&!state.objectMode&&Object.getPrototypeOf(chunk)!==Buffer.prototype){chunk=_uint8ArrayToBuffer(chunk)}if(addToFront){if(state.endEmitted)errorOrDestroy(stream,new ERR_STREAM_UNSHIFT_AFTER_END_EVENT);else addChunk(stream,state,chunk,true)}else if(state.ended){errorOrDestroy(stream,new ERR_STREAM_PUSH_AFTER_EOF)}else if(state.destroyed){return false}else{state.reading=false;if(state.decoder&&!encoding){chunk=state.decoder.write(chunk);if(state.objectMode||chunk.length!==0)addChunk(stream,state,chunk,false);else maybeReadMore(stream,state)}else{addChunk(stream,state,chunk,false)}}}else if(!addToFront){state.reading=false;maybeReadMore(stream,state)}}return!state.ended&&(state.length=MAX_HWM){n=MAX_HWM}else{n--;n|=n>>>1;n|=n>>>2;n|=n>>>4;n|=n>>>8;n|=n>>>16;n++}return n}function howMuchToRead(n,state){if(n<=0||state.length===0&&state.ended)return 0;if(state.objectMode)return 1;if(n!==n){if(state.flowing&&state.length)return state.buffer.head.data.length;else return state.length}if(n>state.highWaterMark)state.highWaterMark=computeNewHighWaterMark(n);if(n<=state.length)return n;if(!state.ended){state.needReadable=true;return 0}return state.length}Readable.prototype.read=function(n){debug("read",n);n=parseInt(n,10);var state=this._readableState;var nOrig=n;if(n!==0)state.emittedReadable=false;if(n===0&&state.needReadable&&((state.highWaterMark!==0?state.length>=state.highWaterMark:state.length>0)||state.ended)){debug("read: emitReadable",state.length,state.ended);if(state.length===0&&state.ended)endReadable(this);else emitReadable(this);return null}n=howMuchToRead(n,state);if(n===0&&state.ended){if(state.length===0)endReadable(this);return null}var doRead=state.needReadable;debug("need readable",doRead);if(state.length===0||state.length-n0)ret=fromList(n,state);else ret=null;if(ret===null){state.needReadable=state.length<=state.highWaterMark;n=0}else{state.length-=n;state.awaitDrain=0}if(state.length===0){if(!state.ended)state.needReadable=true;if(nOrig!==n&&state.ended)endReadable(this)}if(ret!==null)this.emit("data",ret);return ret};function onEofChunk(stream,state){debug("onEofChunk");if(state.ended)return;if(state.decoder){var chunk=state.decoder.end();if(chunk&&chunk.length){state.buffer.push(chunk);state.length+=state.objectMode?1:chunk.length}}state.ended=true;if(state.sync){emitReadable(stream)}else{state.needReadable=false;if(!state.emittedReadable){state.emittedReadable=true;emitReadable_(stream)}}}function emitReadable(stream){var state=stream._readableState;debug("emitReadable",state.needReadable,state.emittedReadable);state.needReadable=false;if(!state.emittedReadable){debug("emitReadable",state.flowing);state.emittedReadable=true;process.nextTick(emitReadable_,stream)}}function emitReadable_(stream){var state=stream._readableState;debug("emitReadable_",state.destroyed,state.length,state.ended);if(!state.destroyed&&(state.length||state.ended)){stream.emit("readable");state.emittedReadable=false}state.needReadable=!state.flowing&&!state.ended&&state.length<=state.highWaterMark;flow(stream)}function maybeReadMore(stream,state){if(!state.readingMore){state.readingMore=true;process.nextTick(maybeReadMore_,stream,state)}}function maybeReadMore_(stream,state){while(!state.reading&&!state.ended&&(state.length1&&indexOf(state.pipes,dest)!==-1)&&!cleanedUp){debug("false write response, pause",state.awaitDrain);state.awaitDrain++}src.pause()}}function onerror(er){debug("onerror",er);unpipe();dest.removeListener("error",onerror);if(EElistenerCount(dest,"error")===0)errorOrDestroy(dest,er)}prependListener(dest,"error",onerror);function onclose(){dest.removeListener("finish",onfinish);unpipe()}dest.once("close",onclose);function onfinish(){debug("onfinish");dest.removeListener("close",onclose);unpipe()}dest.once("finish",onfinish);function unpipe(){debug("unpipe");src.unpipe(dest)}dest.emit("pipe",src);if(!state.flowing){debug("pipe resume");src.resume()}return dest};function pipeOnDrain(src){return function pipeOnDrainFunctionResult(){var state=src._readableState;debug("pipeOnDrain",state.awaitDrain);if(state.awaitDrain)state.awaitDrain--;if(state.awaitDrain===0&&EElistenerCount(src,"data")){state.flowing=true;flow(src)}}}Readable.prototype.unpipe=function(dest){var state=this._readableState;var unpipeInfo={hasUnpiped:false};if(state.pipesCount===0)return this;if(state.pipesCount===1){if(dest&&dest!==state.pipes)return this;if(!dest)dest=state.pipes;state.pipes=null;state.pipesCount=0;state.flowing=false;if(dest)dest.emit("unpipe",this,unpipeInfo);return this}if(!dest){var dests=state.pipes;var len=state.pipesCount;state.pipes=null;state.pipesCount=0;state.flowing=false;for(var i=0;i0;if(state.flowing!==false)this.resume()}else if(ev==="readable"){if(!state.endEmitted&&!state.readableListening){state.readableListening=state.needReadable=true;state.flowing=false;state.emittedReadable=false;debug("on readable",state.length,state.reading);if(state.length){emitReadable(this)}else if(!state.reading){process.nextTick(nReadingNextTick,this)}}}return res};Readable.prototype.addListener=Readable.prototype.on;Readable.prototype.removeListener=function(ev,fn){var res=Stream.prototype.removeListener.call(this,ev,fn);if(ev==="readable"){process.nextTick(updateReadableListening,this)}return res};Readable.prototype.removeAllListeners=function(ev){var res=Stream.prototype.removeAllListeners.apply(this,arguments);if(ev==="readable"||ev===undefined){process.nextTick(updateReadableListening,this)}return res};function updateReadableListening(self){var state=self._readableState;state.readableListening=self.listenerCount("readable")>0;if(state.resumeScheduled&&!state.paused){state.flowing=true}else if(self.listenerCount("data")>0){self.resume()}}function nReadingNextTick(self){debug("readable nexttick read 0");self.read(0)}Readable.prototype.resume=function(){var state=this._readableState;if(!state.flowing){debug("resume");state.flowing=!state.readableListening;resume(this,state)}state.paused=false;return this};function resume(stream,state){if(!state.resumeScheduled){state.resumeScheduled=true;process.nextTick(resume_,stream,state)}}function resume_(stream,state){debug("resume",state.reading);if(!state.reading){stream.read(0)}state.resumeScheduled=false;stream.emit("resume");flow(stream);if(state.flowing&&!state.reading)stream.read(0)}Readable.prototype.pause=function(){debug("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){debug("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState.paused=true;return this};function flow(stream){var state=stream._readableState;debug("flow",state.flowing);while(state.flowing&&stream.read()!==null){}}Readable.prototype.wrap=function(stream){var _this=this;var state=this._readableState;var paused=false;stream.on("end",function(){debug("wrapped end");if(state.decoder&&!state.ended){var chunk=state.decoder.end();if(chunk&&chunk.length)_this.push(chunk)}_this.push(null)});stream.on("data",function(chunk){debug("wrapped data");if(state.decoder)chunk=state.decoder.write(chunk);if(state.objectMode&&(chunk===null||chunk===undefined))return;else if(!state.objectMode&&(!chunk||!chunk.length))return;var ret=_this.push(chunk);if(!ret){paused=true;stream.pause()}});for(var i in stream){if(this[i]===undefined&&typeof stream[i]==="function"){this[i]=function methodWrap(method){return function methodWrapReturnFunction(){return stream[method].apply(stream,arguments)}}(i)}}for(var n=0;n=state.length){if(state.decoder)ret=state.buffer.join("");else if(state.buffer.length===1)ret=state.buffer.first();else ret=state.buffer.concat(state.length);state.buffer.clear()}else{ret=state.buffer.consume(n,state.decoder)}return ret}function endReadable(stream){var state=stream._readableState;debug("endReadable",state.endEmitted);if(!state.endEmitted){state.ended=true;process.nextTick(endReadableNT,state,stream)}}function endReadableNT(state,stream){debug("endReadableNT",state.endEmitted,state.length);if(!state.endEmitted&&state.length===0){state.endEmitted=true;stream.readable=false;stream.emit("end");if(state.autoDestroy){var wState=stream._writableState;if(!wState||wState.autoDestroy&&wState.finished){stream.destroy()}}}}if(typeof Symbol==="function"){Readable.from=function(iterable,opts){if(from===undefined){from=require("./internal/streams/from")}return from(Readable,iterable,opts)}}function indexOf(xs,x){for(var i=0,l=xs.length;i-1))throw new ERR_UNKNOWN_ENCODING(encoding);this._writableState.defaultEncoding=encoding;return this};Object.defineProperty(Writable.prototype,"writableBuffer",{enumerable:false,get:function get(){return this._writableState&&this._writableState.getBuffer()}});function decodeChunk(state,chunk,encoding){if(!state.objectMode&&state.decodeStrings!==false&&typeof chunk==="string"){chunk=Buffer.from(chunk,encoding)}return chunk}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function get(){return this._writableState.highWaterMark}});function writeOrBuffer(stream,state,isBuf,chunk,encoding,cb){if(!isBuf){var newChunk=decodeChunk(state,chunk,encoding);if(chunk!==newChunk){isBuf=true;encoding="buffer";chunk=newChunk}}var len=state.objectMode?1:chunk.length;state.length+=len;var ret=state.length0)this.tail.next=entry;else this.head=entry;this.tail=entry;++this.length}},{key:"unshift",value:function unshift(v){var entry={data:v,next:this.head};if(this.length===0)this.tail=entry;this.head=entry;++this.length}},{key:"shift",value:function shift(){if(this.length===0)return;var ret=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return ret}},{key:"clear",value:function clear(){this.head=this.tail=null;this.length=0}},{key:"join",value:function join(s){if(this.length===0)return"";var p=this.head;var ret=""+p.data;while(p=p.next){ret+=s+p.data}return ret}},{key:"concat",value:function concat(n){if(this.length===0)return Buffer.alloc(0);var ret=Buffer.allocUnsafe(n>>>0);var p=this.head;var i=0;while(p){copyBuffer(p.data,ret,i);i+=p.data.length;p=p.next}return ret}},{key:"consume",value:function consume(n,hasStrings){var ret;if(nstr.length?str.length:n;if(nb===str.length)ret+=str;else ret+=str.slice(0,n);n-=nb;if(n===0){if(nb===str.length){++c;if(p.next)this.head=p.next;else this.head=this.tail=null}else{this.head=p;p.data=str.slice(nb)}break}++c}this.length-=c;return ret}},{key:"_getBuffer",value:function _getBuffer(n){var ret=Buffer.allocUnsafe(n);var p=this.head;var c=1;p.data.copy(ret);n-=p.data.length;while(p=p.next){var buf=p.data;var nb=n>buf.length?buf.length:n;buf.copy(ret,ret.length-n,0,nb);n-=nb;if(n===0){if(nb===buf.length){++c;if(p.next)this.head=p.next;else this.head=this.tail=null}else{this.head=p;p.data=buf.slice(nb)}break}++c}this.length-=c;return ret}},{key:custom,value:function value(_,options){return inspect(this,_objectSpread({},options,{depth:0,customInspect:false}))}}]);return BufferList}()},{buffer:128,util:126}],189:[function(require,module,exports){(function(process){"use strict";function destroy(err,cb){var _this=this;var readableDestroyed=this._readableState&&this._readableState.destroyed;var writableDestroyed=this._writableState&&this._writableState.destroyed;if(readableDestroyed||writableDestroyed){if(cb){cb(err)}else if(err){if(!this._writableState){process.nextTick(emitErrorNT,this,err)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;process.nextTick(emitErrorNT,this,err)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(err||null,function(err){if(!cb&&err){if(!_this._writableState){process.nextTick(emitErrorAndCloseNT,_this,err)}else if(!_this._writableState.errorEmitted){_this._writableState.errorEmitted=true;process.nextTick(emitErrorAndCloseNT,_this,err)}else{process.nextTick(emitCloseNT,_this)}}else if(cb){process.nextTick(emitCloseNT,_this);cb(err)}else{process.nextTick(emitCloseNT,_this)}});return this}function emitErrorAndCloseNT(self,err){emitErrorNT(self,err);emitCloseNT(self)}function emitCloseNT(self){if(self._writableState&&!self._writableState.emitClose)return;if(self._readableState&&!self._readableState.emitClose)return;self.emit("close")}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(self,err){self.emit("error",err)}function errorOrDestroy(stream,err){var rState=stream._readableState;var wState=stream._writableState;if(rState&&rState.autoDestroy||wState&&wState.autoDestroy)stream.destroy(err);else stream.emit("error",err)}module.exports={destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}}).call(this,require("_process"))},{_process:172}],190:[function(require,module,exports){"use strict";var ERR_STREAM_PREMATURE_CLOSE=require("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function once(callback){var called=false;return function(){if(called)return;called=true;for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}callback.apply(this,args)}}function noop(){}function isRequest(stream){return stream.setHeader&&typeof stream.abort==="function"}function eos(stream,opts,callback){if(typeof opts==="function")return eos(stream,null,opts);if(!opts)opts={};callback=once(callback||noop);var readable=opts.readable||opts.readable!==false&&stream.readable;var writable=opts.writable||opts.writable!==false&&stream.writable;var onlegacyfinish=function onlegacyfinish(){if(!stream.writable)onfinish()};var writableEnded=stream._writableState&&stream._writableState.finished;var onfinish=function onfinish(){writable=false;writableEnded=true;if(!readable)callback.call(stream)};var readableEnded=stream._readableState&&stream._readableState.endEmitted;var onend=function onend(){readable=false;readableEnded=true;if(!writable)callback.call(stream)};var onerror=function onerror(err){callback.call(stream,err)};var onclose=function onclose(){var err;if(readable&&!readableEnded){if(!stream._readableState||!stream._readableState.ended)err=new ERR_STREAM_PREMATURE_CLOSE;return callback.call(stream,err)}if(writable&&!writableEnded){if(!stream._writableState||!stream._writableState.ended)err=new ERR_STREAM_PREMATURE_CLOSE;return callback.call(stream,err)}};var onrequest=function onrequest(){stream.req.on("finish",onfinish)};if(isRequest(stream)){stream.on("complete",onfinish);stream.on("abort",onclose);if(stream.req)onrequest();else stream.on("request",onrequest)}else if(writable&&!stream._writableState){stream.on("end",onlegacyfinish);stream.on("close",onlegacyfinish)}stream.on("end",onend);stream.on("finish",onfinish);if(opts.error!==false)stream.on("error",onerror);stream.on("close",onclose);return function(){stream.removeListener("complete",onfinish);stream.removeListener("abort",onclose);stream.removeListener("request",onrequest);if(stream.req)stream.req.removeListener("finish",onfinish);stream.removeListener("end",onlegacyfinish);stream.removeListener("close",onlegacyfinish);stream.removeListener("finish",onfinish);stream.removeListener("end",onend);stream.removeListener("error",onerror);stream.removeListener("close",onclose)}}module.exports=eos},{"../../../errors":181}],191:[function(require,module,exports){module.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],192:[function(require,module,exports){"use strict";var eos;function once(callback){var called=false;return function(){if(called)return;called=true;callback.apply(void 0,arguments)}}var _require$codes=require("../../../errors").codes,ERR_MISSING_ARGS=_require$codes.ERR_MISSING_ARGS,ERR_STREAM_DESTROYED=_require$codes.ERR_STREAM_DESTROYED;function noop(err){if(err)throw err}function isRequest(stream){return stream.setHeader&&typeof stream.abort==="function"}function destroyer(stream,reading,writing,callback){callback=once(callback);var closed=false;stream.on("close",function(){closed=true});if(eos===undefined)eos=require("./end-of-stream");eos(stream,{readable:reading,writable:writing},function(err){if(err)return callback(err);closed=true;callback()});var destroyed=false;return function(err){if(closed)return;if(destroyed)return;destroyed=true;if(isRequest(stream))return stream.abort();if(typeof stream.destroy==="function")return stream.destroy();callback(err||new ERR_STREAM_DESTROYED("pipe"))}}function call(fn){fn()}function pipe(from,to){return from.pipe(to)}function popCallback(streams){if(!streams.length)return noop;if(typeof streams[streams.length-1]!=="function")return noop;return streams.pop()}function pipeline(){for(var _len=arguments.length,streams=new Array(_len),_key=0;_key<_len;_key++){streams[_key]=arguments[_key]}var callback=popCallback(streams);if(Array.isArray(streams[0]))streams=streams[0];if(streams.length<2){throw new ERR_MISSING_ARGS("streams")}var error;var destroys=streams.map(function(stream,i){var reading=i0;return destroyer(stream,reading,writing,function(err){if(!error)error=err;if(err)destroys.forEach(call);if(reading)return;destroys.forEach(call);callback(error)})});return streams.reduce(pipe)}module.exports=pipeline},{"../../../errors":181,"./end-of-stream":190}],193:[function(require,module,exports){"use strict";var ERR_INVALID_OPT_VALUE=require("../../../errors").codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(options,isDuplex,duplexKey){return options.highWaterMark!=null?options.highWaterMark:isDuplex?options[duplexKey]:null}function getHighWaterMark(state,options,duplexKey,isDuplex){var hwm=highWaterMarkFrom(options,isDuplex,duplexKey);if(hwm!=null){if(!(isFinite(hwm)&&Math.floor(hwm)===hwm)||hwm<0){var name=isDuplex?duplexKey:"highWaterMark";throw new ERR_INVALID_OPT_VALUE(name,hwm)}return Math.floor(hwm)}return state.objectMode?16:16*1024}module.exports={getHighWaterMark:getHighWaterMark}},{"../../../errors":181}],194:[function(require,module,exports){module.exports=require("events").EventEmitter},{events:131}],195:[function(require,module,exports){exports=module.exports=require("./lib/_stream_readable.js");exports.Stream=exports;exports.Readable=exports;exports.Writable=require("./lib/_stream_writable.js");exports.Duplex=require("./lib/_stream_duplex.js");exports.Transform=require("./lib/_stream_transform.js");exports.PassThrough=require("./lib/_stream_passthrough.js");exports.finished=require("./lib/internal/streams/end-of-stream.js");exports.pipeline=require("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":182,"./lib/_stream_passthrough.js":183,"./lib/_stream_readable.js":184,"./lib/_stream_transform.js":185,"./lib/_stream_writable.js":186,"./lib/internal/streams/end-of-stream.js":190,"./lib/internal/streams/pipeline.js":192}],196:[function(require,module,exports){"use strict";var Buffer=require("safe-buffer").Buffer;var isEncoding=Buffer.isEncoding||function(encoding){encoding=""+encoding;switch(encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(enc){if(!enc)return"utf8";var retried;while(true){switch(enc){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return enc;default:if(retried)return;enc=(""+enc).toLowerCase();retried=true}}}function normalizeEncoding(enc){var nenc=_normalizeEncoding(enc);if(typeof nenc!=="string"&&(Buffer.isEncoding===isEncoding||!isEncoding(enc)))throw new Error("Unknown encoding: "+enc);return nenc||enc}exports.StringDecoder=StringDecoder;function StringDecoder(encoding){this.encoding=normalizeEncoding(encoding);var nb;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;nb=4;break;case"utf8":this.fillLast=utf8FillLast;nb=4;break;case"base64":this.text=base64Text;this.end=base64End;nb=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=Buffer.allocUnsafe(nb)}StringDecoder.prototype.write=function(buf){if(buf.length===0)return"";var r;var i;if(this.lastNeed){r=this.fillLast(buf);if(r===undefined)return"";i=this.lastNeed;this.lastNeed=0}else{i=0}if(i>5===6)return 2;else if(byte>>4===14)return 3;else if(byte>>3===30)return 4;return byte>>6===2?-1:-2}function utf8CheckIncomplete(self,buf,i){var j=buf.length-1;if(j=0){if(nb>0)self.lastNeed=nb-1;return nb}if(--j=0){if(nb>0)self.lastNeed=nb-2;return nb}if(--j=0){if(nb>0){if(nb===2)nb=0;else self.lastNeed=nb-3}return nb}return 0}function utf8CheckExtraBytes(self,buf,p){if((buf[0]&192)!==128){self.lastNeed=0;return"�"}if(self.lastNeed>1&&buf.length>1){if((buf[1]&192)!==128){self.lastNeed=1;return"�"}if(self.lastNeed>2&&buf.length>2){if((buf[2]&192)!==128){self.lastNeed=2;return"�"}}}}function utf8FillLast(buf){var p=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,buf,p);if(r!==undefined)return r;if(this.lastNeed<=buf.length){buf.copy(this.lastChar,p,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}buf.copy(this.lastChar,p,0,buf.length);this.lastNeed-=buf.length}function utf8Text(buf,i){var total=utf8CheckIncomplete(this,buf,i);if(!this.lastNeed)return buf.toString("utf8",i);this.lastTotal=total;var end=buf.length-(total-this.lastNeed);buf.copy(this.lastChar,0,end);return buf.toString("utf8",i,end)}function utf8End(buf){var r=buf&&buf.length?this.write(buf):"";if(this.lastNeed)return r+"�";return r}function utf16Text(buf,i){if((buf.length-i)%2===0){var r=buf.toString("utf16le",i);if(r){var c=r.charCodeAt(r.length-1);if(c>=55296&&c<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=buf[buf.length-2];this.lastChar[1]=buf[buf.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=buf[buf.length-1];return buf.toString("utf16le",i,buf.length-1)}function utf16End(buf){var r=buf&&buf.length?this.write(buf):"";if(this.lastNeed){var end=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,end)}return r}function base64Text(buf,i){var n=(buf.length-i)%3;if(n===0)return buf.toString("base64",i);this.lastNeed=3-n;this.lastTotal=3;if(n===1){this.lastChar[0]=buf[buf.length-1]}else{this.lastChar[0]=buf[buf.length-2];this.lastChar[1]=buf[buf.length-1]}return buf.toString("base64",i,buf.length-n)}function base64End(buf){var r=buf&&buf.length?this.write(buf):"";if(this.lastNeed)return r+this.lastChar.toString("base64",0,3-this.lastNeed);return r}function simpleWrite(buf){return buf.toString(this.encoding)}function simpleEnd(buf){return buf&&buf.length?this.write(buf):""}},{"safe-buffer":176}],197:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};exports.apply=apply;var isObject=function isObject(val){return val!=null&&(typeof val==="undefined"?"undefined":_typeof(val))==="object"&&Array.isArray(val)===false};function apply(origin,patch){if(!isObject(patch)){return patch}var result=!isObject(origin)?{}:Object.assign({},origin);Object.keys(patch).forEach(function(key){var patchVal=patch[key];if(patchVal===null){delete result[key]}else{result[key]=apply(result[key],patchVal)}});return result}exports.default=apply},{}],198:[function(require,module,exports){(function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?factory(exports):typeof define==="function"&&define.amd?define(["exports"],factory):factory(global.URI=global.URI||{})})(this,function(exports){"use strict";function merge(){for(var _len=arguments.length,sets=Array(_len),_key=0;_key<_len;_key++){sets[_key]=arguments[_key]}if(sets.length>1){sets[0]=sets[0].slice(0,-1);var xl=sets.length-1;for(var x=1;x= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var baseMinusTMin=base-tMin;var floor=Math.floor;var stringFromCharCode=String.fromCharCode;function error$1(type){throw new RangeError(errors[type])}function map(array,fn){var result=[];var length=array.length;while(length--){result[length]=fn(array[length])}return result}function mapDomain(string,fn){var parts=string.split("@");var result="";if(parts.length>1){result=parts[0]+"@";string=parts[1]}string=string.replace(regexSeparators,".");var labels=string.split(".");var encoded=map(labels,fn).join(".");return result+encoded}function ucs2decode(string){var output=[];var counter=0;var length=string.length;while(counter=55296&&value<=56319&&counter>1;delta+=floor(delta/numPoints);for(;delta>baseMinusTMin*tMax>>1;k+=base){delta=floor(delta/baseMinusTMin)}return floor(k+(baseMinusTMin+1)*delta/(delta+skew))};var decode=function decode(input){var output=[];var inputLength=input.length;var i=0;var n=initialN;var bias=initialBias;var basic=input.lastIndexOf(delimiter);if(basic<0){basic=0}for(var j=0;j=128){error$1("not-basic")}output.push(input.charCodeAt(j))}for(var index=basic>0?basic+1:0;index=inputLength){error$1("invalid-input")}var digit=basicToDigit(input.charCodeAt(index++));if(digit>=base||digit>floor((maxInt-i)/w)){error$1("overflow")}i+=digit*w;var t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias;if(digitfloor(maxInt/baseMinusT)){error$1("overflow")}w*=baseMinusT}var out=output.length+1;bias=adapt(i-oldi,out,oldi==0);if(floor(i/out)>maxInt-n){error$1("overflow")}n+=floor(i/out);i%=out;output.splice(i++,0,n)}return String.fromCodePoint.apply(String,output)};var encode=function encode(input){var output=[];input=ucs2decode(input);var inputLength=input.length;var n=initialN;var delta=0;var bias=initialBias;var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=input[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var _currentValue2=_step.value;if(_currentValue2<128){output.push(stringFromCharCode(_currentValue2))}}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator.return){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}var basicLength=output.length;var handledCPCount=basicLength;if(basicLength){output.push(delimiter)}while(handledCPCount=n&¤tValuefloor((maxInt-delta)/handledCPCountPlusOne)){error$1("overflow")}delta+=(m-n)*handledCPCountPlusOne;n=m;var _iteratorNormalCompletion3=true;var _didIteratorError3=false;var _iteratorError3=undefined;try{for(var _iterator3=input[Symbol.iterator](),_step3;!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=true){var _currentValue=_step3.value;if(_currentValuemaxInt){error$1("overflow")}if(_currentValue==n){var q=delta;for(var k=base;;k+=base){var t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias;if(q>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();return e}function pctDecChars(str){var newStr="";var i=0;var il=str.length;while(i=194&&c<224){if(il-i>=6){var c2=parseInt(str.substr(i+4,2),16);newStr+=String.fromCharCode((c&31)<<6|c2&63)}else{newStr+=str.substr(i,6)}i+=6}else if(c>=224){if(il-i>=9){var _c=parseInt(str.substr(i+4,2),16);var c3=parseInt(str.substr(i+7,2),16);newStr+=String.fromCharCode((c&15)<<12|(_c&63)<<6|c3&63)}else{newStr+=str.substr(i,9)}i+=9}else{newStr+=str.substr(i,3);i+=3}}return newStr}function _normalizeComponentEncoding(components,protocol){function decodeUnreserved(str){var decStr=pctDecChars(str);return!decStr.match(protocol.UNRESERVED)?str:decStr}if(components.scheme)components.scheme=String(components.scheme).replace(protocol.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME,"");if(components.userinfo!==undefined)components.userinfo=String(components.userinfo).replace(protocol.PCT_ENCODED,decodeUnreserved).replace(protocol.NOT_USERINFO,pctEncChar).replace(protocol.PCT_ENCODED,toUpperCase);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);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);if(components.query!==undefined)components.query=String(components.query).replace(protocol.PCT_ENCODED,decodeUnreserved).replace(protocol.NOT_QUERY,pctEncChar).replace(protocol.PCT_ENCODED,toUpperCase);if(components.fragment!==undefined)components.fragment=String(components.fragment).replace(protocol.PCT_ENCODED,decodeUnreserved).replace(protocol.NOT_FRAGMENT,pctEncChar).replace(protocol.PCT_ENCODED,toUpperCase);return components}function _stripLeadingZeros(str){return str.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(host,protocol){var matches=host.match(protocol.IPV4ADDRESS)||[];var _matches=slicedToArray(matches,2),address=_matches[1];if(address){return address.split(".").map(_stripLeadingZeros).join(".")}else{return host}}function _normalizeIPv6(host,protocol){var matches=host.match(protocol.IPV6ADDRESS)||[];var _matches2=slicedToArray(matches,3),address=_matches2[1],zone=_matches2[2];if(address){var _address$toLowerCase$=address.toLowerCase().split("::").reverse(),_address$toLowerCase$2=slicedToArray(_address$toLowerCase$,2),last=_address$toLowerCase$2[0],first=_address$toLowerCase$2[1];var firstFields=first?first.split(":").map(_stripLeadingZeros):[];var lastFields=last.split(":").map(_stripLeadingZeros);var isLastFieldIPv4Address=protocol.IPV4ADDRESS.test(lastFields[lastFields.length-1]);var fieldCount=isLastFieldIPv4Address?7:8;var lastFieldsStart=lastFields.length-fieldCount;var fields=Array(fieldCount);for(var x=0;x1){var newFirst=fields.slice(0,longestZeroFields.index);var newLast=fields.slice(longestZeroFields.index+longestZeroFields.length);newHost=newFirst.join(":")+"::"+newLast.join(":")}else{newHost=fields.join(":")}if(zone){newHost+="%"+zone}return newHost}else{return host}}var URI_PARSE=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var NO_MATCH_IS_UNDEFINED="".match(/(){0}/)[1]===undefined;function parse(uriString){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var components={};var protocol=options.iri!==false?IRI_PROTOCOL:URI_PROTOCOL;if(options.reference==="suffix")uriString=(options.scheme?options.scheme+":":"")+"//"+uriString;var matches=uriString.match(URI_PARSE);if(matches){if(NO_MATCH_IS_UNDEFINED){components.scheme=matches[1];components.userinfo=matches[3];components.host=matches[4];components.port=parseInt(matches[5],10);components.path=matches[6]||"";components.query=matches[7];components.fragment=matches[8];if(isNaN(components.port)){components.port=matches[5]}}else{components.scheme=matches[1]||undefined;components.userinfo=uriString.indexOf("@")!==-1?matches[3]:undefined;components.host=uriString.indexOf("//")!==-1?matches[4]:undefined;components.port=parseInt(matches[5],10);components.path=matches[6]||"";components.query=uriString.indexOf("?")!==-1?matches[7]:undefined;components.fragment=uriString.indexOf("#")!==-1?matches[8]:undefined;if(isNaN(components.port)){components.port=uriString.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?matches[4]:undefined}}if(components.host){components.host=_normalizeIPv6(_normalizeIPv4(components.host,protocol),protocol)}if(components.scheme===undefined&&components.userinfo===undefined&&components.host===undefined&&components.port===undefined&&!components.path&&components.query===undefined){components.reference="same-document"}else if(components.scheme===undefined){components.reference="relative"}else if(components.fragment===undefined){components.reference="absolute"}else{components.reference="uri"}if(options.reference&&options.reference!=="suffix"&&options.reference!==components.reference){components.error=components.error||"URI is not a "+options.reference+" reference."}var schemeHandler=SCHEMES[(options.scheme||components.scheme||"").toLowerCase()];if(!options.unicodeSupport&&(!schemeHandler||!schemeHandler.unicodeSupport)){if(components.host&&(options.domainHost||schemeHandler&&schemeHandler.domainHost)){try{components.host=punycode.toASCII(components.host.replace(protocol.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){components.error=components.error||"Host's domain name can not be converted to ASCII via punycode: "+e}}_normalizeComponentEncoding(components,URI_PROTOCOL)}else{_normalizeComponentEncoding(components,protocol)}if(schemeHandler&&schemeHandler.parse){schemeHandler.parse(components,options)}}else{components.error=components.error||"URI can not be parsed."}return components}function _recomposeAuthority(components,options){var protocol=options.iri!==false?IRI_PROTOCOL:URI_PROTOCOL;var uriTokens=[];if(components.userinfo!==undefined){uriTokens.push(components.userinfo);uriTokens.push("@")}if(components.host!==undefined){uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host),protocol),protocol).replace(protocol.IPV6ADDRESS,function(_,$1,$2){return"["+$1+($2?"%25"+$2:"")+"]"}))}if(typeof components.port==="number"){uriTokens.push(":");uriTokens.push(components.port.toString(10))}return uriTokens.length?uriTokens.join(""):undefined}var RDS1=/^\.\.?\//;var RDS2=/^\/\.(\/|$)/;var RDS3=/^\/\.\.(\/|$)/;var RDS5=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(input){var output=[];while(input.length){if(input.match(RDS1)){input=input.replace(RDS1,"")}else if(input.match(RDS2)){input=input.replace(RDS2,"/")}else if(input.match(RDS3)){input=input.replace(RDS3,"/");output.pop()}else if(input==="."||input===".."){input=""}else{var im=input.match(RDS5);if(im){var s=im[0];input=input.slice(s.length);output.push(s)}else{throw new Error("Unexpected dot segment condition")}}}return output.join("")}function serialize(components){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var protocol=options.iri?IRI_PROTOCOL:URI_PROTOCOL;var uriTokens=[];var schemeHandler=SCHEMES[(options.scheme||components.scheme||"").toLowerCase()];if(schemeHandler&&schemeHandler.serialize)schemeHandler.serialize(components,options);if(components.host){if(protocol.IPV6ADDRESS.test(components.host)){}else if(options.domainHost||schemeHandler&&schemeHandler.domainHost){try{components.host=!options.iri?punycode.toASCII(components.host.replace(protocol.PCT_ENCODED,pctDecChars).toLowerCase()):punycode.toUnicode(components.host)}catch(e){components.error=components.error||"Host's domain name can not be converted to "+(!options.iri?"ASCII":"Unicode")+" via punycode: "+e}}}_normalizeComponentEncoding(components,protocol);if(options.reference!=="suffix"&&components.scheme){uriTokens.push(components.scheme);uriTokens.push(":")}var authority=_recomposeAuthority(components,options);if(authority!==undefined){if(options.reference!=="suffix"){uriTokens.push("//")}uriTokens.push(authority);if(components.path&&components.path.charAt(0)!=="/"){uriTokens.push("/")}}if(components.path!==undefined){var s=components.path;if(!options.absolutePath&&(!schemeHandler||!schemeHandler.absolutePath)){s=removeDotSegments(s)}if(authority===undefined){s=s.replace(/^\/\//,"/%2F")}uriTokens.push(s)}if(components.query!==undefined){uriTokens.push("?");uriTokens.push(components.query)}if(components.fragment!==undefined){uriTokens.push("#");uriTokens.push(components.fragment)}return uriTokens.join("")}function resolveComponents(base,relative){var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var skipNormalization=arguments[3];var target={};if(!skipNormalization){base=parse(serialize(base,options),options);relative=parse(serialize(relative,options),options)}options=options||{};if(!options.tolerant&&relative.scheme){target.scheme=relative.scheme;target.userinfo=relative.userinfo;target.host=relative.host;target.port=relative.port;target.path=removeDotSegments(relative.path||"");target.query=relative.query}else{if(relative.userinfo!==undefined||relative.host!==undefined||relative.port!==undefined){target.userinfo=relative.userinfo;target.host=relative.host;target.port=relative.port;target.path=removeDotSegments(relative.path||"");target.query=relative.query}else{if(!relative.path){target.path=base.path;if(relative.query!==undefined){target.query=relative.query}else{target.query=base.query}}else{if(relative.path.charAt(0)==="/"){target.path=removeDotSegments(relative.path)}else{if((base.userinfo!==undefined||base.host!==undefined||base.port!==undefined)&&!base.path){target.path="/"+relative.path}else if(!base.path){target.path=relative.path}else{target.path=base.path.slice(0,base.path.lastIndexOf("/")+1)+relative.path}target.path=removeDotSegments(target.path)}target.query=relative.query}target.userinfo=base.userinfo;target.host=base.host;target.port=base.port}target.scheme=base.scheme}target.fragment=relative.fragment;return target}function resolve(baseURI,relativeURI,options){var schemelessOptions=assign({scheme:"null"},options);return serialize(resolveComponents(parse(baseURI,schemelessOptions),parse(relativeURI,schemelessOptions),schemelessOptions,true),schemelessOptions)}function normalize(uri,options){if(typeof uri==="string"){uri=serialize(parse(uri,options),options)}else if(typeOf(uri)==="object"){uri=parse(serialize(uri,options),options)}return uri}function equal(uriA,uriB,options){if(typeof uriA==="string"){uriA=serialize(parse(uriA,options),options)}else if(typeOf(uriA)==="object"){uriA=serialize(uriA,options)}if(typeof uriB==="string"){uriB=serialize(parse(uriB,options),options)}else if(typeOf(uriB)==="object"){uriB=serialize(uriB,options)}return uriA===uriB}function escapeComponent(str,options){return str&&str.toString().replace(!options||!options.iri?URI_PROTOCOL.ESCAPE:IRI_PROTOCOL.ESCAPE,pctEncChar)}function unescapeComponent(str,options){return str&&str.toString().replace(!options||!options.iri?URI_PROTOCOL.PCT_ENCODED:IRI_PROTOCOL.PCT_ENCODED,pctDecChars)}var handler={scheme:"http",domainHost:true,parse:function parse(components,options){if(!components.host){components.error=components.error||"HTTP URIs must have a host."}return components},serialize:function serialize(components,options){if(components.port===(String(components.scheme).toLowerCase()!=="https"?80:443)||components.port===""){components.port=undefined}if(!components.path){components.path="/"}return components}};var handler$1={scheme:"https",domainHost:handler.domainHost,parse:handler.parse,serialize:handler.serialize};var O={};var isIRI=true;var UNRESERVED$$="[A-Za-z0-9\\-\\.\\_\\~"+(isIRI?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var HEXDIG$$="[0-9A-Fa-f]";var PCT_ENCODED$=subexp(subexp("%[EFef]"+HEXDIG$$+"%"+HEXDIG$$+HEXDIG$$+"%"+HEXDIG$$+HEXDIG$$)+"|"+subexp("%[89A-Fa-f]"+HEXDIG$$+"%"+HEXDIG$$+HEXDIG$$)+"|"+subexp("%"+HEXDIG$$+HEXDIG$$));var ATEXT$$="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var QTEXT$$="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var VCHAR$$=merge(QTEXT$$,'[\\"\\\\]');var SOME_DELIMS$$="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var UNRESERVED=new RegExp(UNRESERVED$$,"g");var PCT_ENCODED=new RegExp(PCT_ENCODED$,"g");var NOT_LOCAL_PART=new RegExp(merge("[^]",ATEXT$$,"[\\.]",'[\\"]',VCHAR$$),"g");var NOT_HFNAME=new RegExp(merge("[^]",UNRESERVED$$,SOME_DELIMS$$),"g");var NOT_HFVALUE=NOT_HFNAME;function decodeUnreserved(str){var decStr=pctDecChars(str);return!decStr.match(UNRESERVED)?str:decStr}var handler$2={scheme:"mailto",parse:function parse$$1(components,options){var mailtoComponents=components;var to=mailtoComponents.to=mailtoComponents.path?mailtoComponents.path.split(","):[];mailtoComponents.path=undefined;if(mailtoComponents.query){var unknownHeaders=false;var headers={};var hfields=mailtoComponents.query.split("&");for(var x=0,xl=hfields.length;x",'"',"`"," ","\r","\n","\t"],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:true,"javascript:":true},hostlessProtocol={javascript:true,"javascript:":true},slashedProtocol={http:true,https:true,ftp:true,gopher:true,file:true,"http:":true,"https:":true,"ftp:":true,"gopher:":true,"file:":true},querystring=require("querystring");function urlParse(url,parseQueryString,slashesDenoteHost){if(url&&util.isObject(url)&&url instanceof Url)return url;var u=new Url;u.parse(url,parseQueryString,slashesDenoteHost);return u}Url.prototype.parse=function(url,parseQueryString,slashesDenoteHost){if(!util.isString(url)){throw new TypeError("Parameter 'url' must be a string, not "+typeof url)}var queryIndex=url.indexOf("?"),splitter=queryIndex!==-1&&queryIndex127){newpart+="x"}else{newpart+=part[j]}}if(!newpart.match(hostnamePartPattern)){var validParts=hostparts.slice(0,i);var notHost=hostparts.slice(i+1);var bit=part.match(hostnamePartStart);if(bit){validParts.push(bit[1]);notHost.unshift(bit[2])}if(notHost.length){rest="/"+notHost.join(".")+rest}this.hostname=validParts.join(".");break}}}}if(this.hostname.length>hostnameMaxLen){this.hostname=""}else{this.hostname=this.hostname.toLowerCase()}if(!ipv6Hostname){this.hostname=punycode.toASCII(this.hostname)}var p=this.port?":"+this.port:"";var h=this.hostname||"";this.host=h+p;this.href+=this.host;if(ipv6Hostname){this.hostname=this.hostname.substr(1,this.hostname.length-2);if(rest[0]!=="/"){rest="/"+rest}}}if(!unsafeProtocol[lowerProto]){for(var i=0,l=autoEscape.length;i0?result.host.split("@"):false;if(authInHost){result.auth=authInHost.shift();result.host=result.hostname=authInHost.shift()}}result.search=relative.search;result.query=relative.query;if(!util.isNull(result.pathname)||!util.isNull(result.search)){result.path=(result.pathname?result.pathname:"")+(result.search?result.search:"")}result.href=result.format();return result}if(!srcPath.length){result.pathname=null;if(result.search){result.path="/"+result.search}else{result.path=null}result.href=result.format();return result}var last=srcPath.slice(-1)[0];var hasTrailingSlash=(result.host||relative.host||srcPath.length>1)&&(last==="."||last==="..")||last==="";var up=0;for(var i=srcPath.length;i>=0;i--){last=srcPath[i];if(last==="."){srcPath.splice(i,1)}else if(last===".."){srcPath.splice(i,1);up++}else if(up){srcPath.splice(i,1);up--}}if(!mustEndAbs&&!removeAllDots){for(;up--;up){srcPath.unshift("..")}}if(mustEndAbs&&srcPath[0]!==""&&(!srcPath[0]||srcPath[0].charAt(0)!=="/")){srcPath.unshift("")}if(hasTrailingSlash&&srcPath.join("/").substr(-1)!=="/"){srcPath.push("")}var isAbsolute=srcPath[0]===""||srcPath[0]&&srcPath[0].charAt(0)==="/";if(psychotic){result.hostname=result.host=isAbsolute?"":srcPath.length?srcPath.shift():"";var authInHost=result.host&&result.host.indexOf("@")>0?result.host.split("@"):false;if(authInHost){result.auth=authInHost.shift();result.host=result.hostname=authInHost.shift()}}mustEndAbs=mustEndAbs||result.host&&srcPath.length;if(mustEndAbs&&!isAbsolute){srcPath.unshift("")}if(!srcPath.length){result.pathname=null;result.path=null}else{result.pathname=srcPath.join("/")}if(!util.isNull(result.pathname)||!util.isNull(result.search)){result.path=(result.pathname?result.pathname:"")+(result.search?result.search:"")}result.auth=relative.auth||result.auth;result.slashes=result.slashes||relative.slashes;result.href=result.format();return result};Url.prototype.parseHost=function(){var host=this.host;var port=portPattern.exec(host);if(port){port=port[0];if(port!==":"){this.port=port.substr(1)}host=host.substr(0,host.length-port.length)}if(host)this.hostname=host}},{"./util":200,punycode:127,querystring:175}],200:[function(require,module,exports){"use strict";module.exports={isString:function(arg){return typeof arg==="string"},isObject:function(arg){return typeof arg==="object"&&arg!==null},isNull:function(arg){return arg===null},isNullOrUndefined:function(arg){return arg==null}}},{}],201:[function(require,module,exports){(function(global){module.exports=deprecate;function deprecate(fn,msg){if(config("noDeprecation")){return fn}var warned=false;function deprecated(){if(!warned){if(config("throwDeprecation")){throw new Error(msg)}else if(config("traceDeprecation")){console.trace(msg)}else{console.warn(msg)}warned=true}return fn.apply(this,arguments)}return deprecated}function config(name){try{if(!global.localStorage)return false}catch(_){return false}var val=global.localStorage[name];if(null==val)return false;return String(val).toLowerCase()==="true"}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],202:[function(require,module,exports){if(typeof Object.create==="function"){module.exports=function inherits(ctor,superCtor){ctor.super_=superCtor;ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:false,writable:true,configurable:true}})}}else{module.exports=function inherits(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype;ctor.prototype=new TempCtor;ctor.prototype.constructor=ctor}}},{}],203:[function(require,module,exports){module.exports=function isBuffer(arg){return arg&&typeof arg==="object"&&typeof arg.copy==="function"&&typeof arg.fill==="function"&&typeof arg.readUInt8==="function"}},{}],204:[function(require,module,exports){(function(process,global){var formatRegExp=/%[sdj%]/g;exports.format=function(f){if(!isString(f)){var objects=[];for(var i=0;i=len)return x;switch(x){case"%s":return String(args[i++]);case"%d":return Number(args[i++]);case"%j":try{return JSON.stringify(args[i++])}catch(_){return"[Circular]"}default:return x}});for(var x=args[i];i=3)ctx.depth=arguments[2];if(arguments.length>=4)ctx.colors=arguments[3];if(isBoolean(opts)){ctx.showHidden=opts}else if(opts){exports._extend(ctx,opts)}if(isUndefined(ctx.showHidden))ctx.showHidden=false;if(isUndefined(ctx.depth))ctx.depth=2;if(isUndefined(ctx.colors))ctx.colors=false;if(isUndefined(ctx.customInspect))ctx.customInspect=true;if(ctx.colors)ctx.stylize=stylizeWithColor;return formatValue(ctx,obj,ctx.depth)}exports.inspect=inspect;inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function stylizeWithColor(str,styleType){var style=inspect.styles[styleType];if(style){return"["+inspect.colors[style][0]+"m"+str+"["+inspect.colors[style][1]+"m"}else{return str}}function stylizeNoColor(str,styleType){return str}function arrayToHash(array){var hash={};array.forEach(function(val,idx){hash[val]=true});return hash}function formatValue(ctx,value,recurseTimes){if(ctx.customInspect&&value&&isFunction(value.inspect)&&value.inspect!==exports.inspect&&!(value.constructor&&value.constructor.prototype===value)){var ret=value.inspect(recurseTimes,ctx);if(!isString(ret)){ret=formatValue(ctx,ret,recurseTimes)}return ret}var primitive=formatPrimitive(ctx,value);if(primitive){return primitive}var keys=Object.keys(value);var visibleKeys=arrayToHash(keys);if(ctx.showHidden){keys=Object.getOwnPropertyNames(value)}if(isError(value)&&(keys.indexOf("message")>=0||keys.indexOf("description")>=0)){return formatError(value)}if(keys.length===0){if(isFunction(value)){var name=value.name?": "+value.name:"";return ctx.stylize("[Function"+name+"]","special")}if(isRegExp(value)){return ctx.stylize(RegExp.prototype.toString.call(value),"regexp")}if(isDate(value)){return ctx.stylize(Date.prototype.toString.call(value),"date")}if(isError(value)){return formatError(value)}}var base="",array=false,braces=["{","}"];if(isArray(value)){array=true;braces=["[","]"]}if(isFunction(value)){var n=value.name?": "+value.name:"";base=" [Function"+n+"]"}if(isRegExp(value)){base=" "+RegExp.prototype.toString.call(value)}if(isDate(value)){base=" "+Date.prototype.toUTCString.call(value)}if(isError(value)){base=" "+formatError(value)}if(keys.length===0&&(!array||value.length==0)){return braces[0]+base+braces[1]}if(recurseTimes<0){if(isRegExp(value)){return ctx.stylize(RegExp.prototype.toString.call(value),"regexp")}else{return ctx.stylize("[Object]","special")}}ctx.seen.push(value);var output;if(array){output=formatArray(ctx,value,recurseTimes,visibleKeys,keys)}else{output=keys.map(function(key){return formatProperty(ctx,value,recurseTimes,visibleKeys,key,array)})}ctx.seen.pop();return reduceToSingleString(output,base,braces)}function formatPrimitive(ctx,value){if(isUndefined(value))return ctx.stylize("undefined","undefined");if(isString(value)){var simple="'"+JSON.stringify(value).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ctx.stylize(simple,"string")}if(isNumber(value))return ctx.stylize(""+value,"number");if(isBoolean(value))return ctx.stylize(""+value,"boolean");if(isNull(value))return ctx.stylize("null","null")}function formatError(value){return"["+Error.prototype.toString.call(value)+"]"}function formatArray(ctx,value,recurseTimes,visibleKeys,keys){var output=[];for(var i=0,l=value.length;i-1){if(array){str=str.split("\n").map(function(line){return" "+line}).join("\n").substr(2)}else{str="\n"+str.split("\n").map(function(line){return" "+line}).join("\n")}}}else{str=ctx.stylize("[Circular]","special")}}if(isUndefined(name)){if(array&&key.match(/^\d+$/)){return str}name=JSON.stringify(""+key);if(name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)){name=name.substr(1,name.length-2);name=ctx.stylize(name,"name")}else{name=name.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'");name=ctx.stylize(name,"string")}}return name+": "+str}function reduceToSingleString(output,base,braces){var numLinesEst=0;var length=output.reduce(function(prev,cur){numLinesEst++;if(cur.indexOf("\n")>=0)numLinesEst++;return prev+cur.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(length>60){return braces[0]+(base===""?"":base+"\n ")+" "+output.join(",\n ")+" "+braces[1]}return braces[0]+base+" "+output.join(", ")+" "+braces[1]}function isArray(ar){return Array.isArray(ar)}exports.isArray=isArray;function isBoolean(arg){return typeof arg==="boolean"}exports.isBoolean=isBoolean;function isNull(arg){return arg===null}exports.isNull=isNull;function isNullOrUndefined(arg){return arg==null}exports.isNullOrUndefined=isNullOrUndefined;function isNumber(arg){return typeof arg==="number"}exports.isNumber=isNumber;function isString(arg){return typeof arg==="string"}exports.isString=isString;function isSymbol(arg){return typeof arg==="symbol"}exports.isSymbol=isSymbol;function isUndefined(arg){return arg===void 0}exports.isUndefined=isUndefined;function isRegExp(re){return isObject(re)&&objectToString(re)==="[object RegExp]"}exports.isRegExp=isRegExp;function isObject(arg){return typeof arg==="object"&&arg!==null}exports.isObject=isObject;function isDate(d){return isObject(d)&&objectToString(d)==="[object Date]"}exports.isDate=isDate;function isError(e){return isObject(e)&&(objectToString(e)==="[object Error]"||e instanceof Error)}exports.isError=isError;function isFunction(arg){return typeof arg==="function"}exports.isFunction=isFunction;function isPrimitive(arg){return arg===null||typeof arg==="boolean"||typeof arg==="number"||typeof arg==="string"||typeof arg==="symbol"||typeof arg==="undefined"}exports.isPrimitive=isPrimitive;exports.isBuffer=require("./support/isBuffer");function objectToString(o){return Object.prototype.toString.call(o)}function pad(n){return n<10?"0"+n.toString(10):n.toString(10)}var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function timestamp(){var d=new Date;var time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(":");return[d.getDate(),months[d.getMonth()],time].join(" ")}exports.log=function(){console.log("%s - %s",timestamp(),exports.format.apply(exports,arguments))};exports.inherits=require("inherits");exports._extend=function(origin,add){if(!add||!isObject(add))return origin;var keys=Object.keys(add);var i=keys.length;while(i--){origin[keys[i]]=add[keys[i]]}return origin};function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./support/isBuffer":203,_process:172,inherits:202}],205:[function(require,module,exports){module.exports=extend;var hasOwnProperty=Object.prototype.hasOwnProperty;function extend(){var target={};for(var i=0;i checkpoint");er.position=position;er.checkpoint=this.checkpoint;throw er}this.result+=this.source.slice(this.checkpoint,position);this.checkpoint=position;return this};StringBuilder.prototype.escapeChar=function(){var character,esc;character=this.source.charCodeAt(this.checkpoint);esc=ESCAPE_SEQUENCES[character]||encodeHex(character);this.result+=esc;this.checkpoint+=1;return this};StringBuilder.prototype.finish=function(){if(this.source.length>this.checkpoint){this.takeUpTo(this.source.length)}};function writeScalar(state,object,level){var simple,first,spaceWrap,folded,literal,single,double,sawLineFeed,linePosition,longestLine,indent,max,character,position,escapeSeq,hexEsc,previous,lineLength,modifier,trailingLineBreaks,result;if(0===object.length){state.dump="''";return}if(object.indexOf("!include")==0){state.dump=""+object;return}if(object.indexOf("!$$$novalue")==0){state.dump="";return}if(-1!==DEPRECATED_BOOLEANS_SYNTAX.indexOf(object)){state.dump="'"+object+"'";return}simple=true;first=object.length?object.charCodeAt(0):0;spaceWrap=CHAR_SPACE===first||CHAR_SPACE===object.charCodeAt(object.length-1);if(CHAR_MINUS===first||CHAR_QUESTION===first||CHAR_COMMERCIAL_AT===first||CHAR_GRAVE_ACCENT===first){simple=false}if(spaceWrap){simple=false;folded=false;literal=false}else{folded=true;literal=true}single=true;double=new StringBuilder(object);sawLineFeed=false;linePosition=0;longestLine=0;indent=state.indent*level;max=80;if(indent<40){max-=indent}else{max=40}for(position=0;position0){previous=object.charCodeAt(position-1);if(previous===CHAR_SPACE){literal=false;folded=false}}if(folded){lineLength=position-linePosition;linePosition=position;if(lineLength>longestLine){longestLine=lineLength}}}if(character!==CHAR_DOUBLE_QUOTE){single=false}double.takeUpTo(position);double.escapeChar()}if(simple&&testImplicitResolving(state,object)){simple=false}modifier="";if(folded||literal){trailingLineBreaks=0;if(object.charCodeAt(object.length-1)===CHAR_LINE_FEED){trailingLineBreaks+=1;if(object.charCodeAt(object.length-2)===CHAR_LINE_FEED){trailingLineBreaks+=1}}if(trailingLineBreaks===0){modifier="-"}else if(trailingLineBreaks===2){modifier="+"}}if(literal&&longestLine"+modifier+"\n"+indentString(result,indent)}else if(literal){if(!modifier){object=object.replace(/\n$/,"")}state.dump="|"+modifier+"\n"+indentString(object,indent)}else if(double){double.finish();state.dump='"'+double.result+'"'}else{throw new Error("Failed to dump scalar value")}return}function fold(object,max){var result="",position=0,length=object.length,trailing=/\n+$/.exec(object),newLine;if(trailing){length=trailing.index+1}while(positionlength||newLine===-1){if(result){result+="\n\n"}result+=foldLine(object.slice(position,length),max);position=length}else{if(result){result+="\n\n"}result+=foldLine(object.slice(position,newLine),max);position=newLine+1}}if(trailing&&trailing[0]!=="\n"){result+=trailing[0]}return result}function foldLine(line,max){if(line===""){return line}var foldRe=/[^\s] [^\s]/g,result="",prevMatch=0,foldStart=0,match=foldRe.exec(line),index,foldEnd,folded;while(match){index=match.index;if(index-foldStart>max){if(prevMatch!==foldStart){foldEnd=prevMatch}else{foldEnd=index}if(result){result+="\n"}folded=line.slice(foldStart,foldEnd);result+=folded;foldStart=foldEnd+1}prevMatch=index+1;match=foldRe.exec(line)}if(result){result+="\n"}if(foldStart!==prevMatch&&line.length-foldStart>max){result+=line.slice(foldStart,prevMatch)+"\n"+line.slice(prevMatch+1)}else{result+=line.slice(foldStart)}return result}function simpleChar(character){return CHAR_TAB!==character&&CHAR_LINE_FEED!==character&&CHAR_CARRIAGE_RETURN!==character&&CHAR_COMMA!==character&&CHAR_LEFT_SQUARE_BRACKET!==character&&CHAR_RIGHT_SQUARE_BRACKET!==character&&CHAR_LEFT_CURLY_BRACKET!==character&&CHAR_RIGHT_CURLY_BRACKET!==character&&CHAR_SHARP!==character&&CHAR_AMPERSAND!==character&&CHAR_ASTERISK!==character&&CHAR_EXCLAMATION!==character&&CHAR_VERTICAL_LINE!==character&&CHAR_GREATER_THAN!==character&&CHAR_SINGLE_QUOTE!==character&&CHAR_DOUBLE_QUOTE!==character&&CHAR_PERCENT!==character&&CHAR_COLON!==character&&!ESCAPE_SEQUENCES[character]&&!needsHexEscape(character)}function needsHexEscape(character){return!(32<=character&&character<=126||133===character||160<=character&&character<=55295||57344<=character&&character<=65533||65536<=character&&character<=1114111)}function writeFlowSequence(state,level,object){var _result="",_tag=state.tag,index,length;for(index=0,length=object.length;index1024){pairBuffer+="? "}pairBuffer+=state.dump+": ";if(!writeNode(state,level,objectValue,false,false)){continue}pairBuffer+=state.dump;_result+=pairBuffer}state.tag=_tag;state.dump="{"+_result+"}"}function writeBlockMapping(state,level,object,compact){var _result="",_tag=state.tag,objectKeyList=Object.keys(object),index,length,objectKey,objectValue,explicitPair,pairBuffer;for(index=0,length=objectKeyList.length;index1024;if(explicitPair){if(state.dump&&CHAR_LINE_FEED===state.dump.charCodeAt(0)){pairBuffer+="?"}else{pairBuffer+="? "}}pairBuffer+=state.dump;if(explicitPair){pairBuffer+=generateNextLine(state,level)}if(!writeNode(state,level+1,objectValue,true,explicitPair)){continue}if(state.dump&&CHAR_LINE_FEED===state.dump.charCodeAt(0)){pairBuffer+=":"}else{pairBuffer+=": "}pairBuffer+=state.dump;_result+=pairBuffer}state.tag=_tag;state.dump=_result||"{}"}function detectType(state,object,explicit){var _result,typeList,index,length,type,style;typeList=explicit?state.explicitTypes:state.implicitTypes;for(index=0,length=typeList.length;index tag resolver accepts not "'+style+'" style')}state.dump=_result}return true}}return false}function writeNode(state,level,object,block,compact){state.tag=null;state.dump=object;if(!detectType(state,object,false)){detectType(state,object,true)}var type=_toString.call(state.dump);if(block){block=0>state.flowLevel||state.flowLevel>level}if(null!==state.tag&&"?"!==state.tag||2!==state.indent&&level>0){compact=false}var objectOrArray="[object Object]"===type||"[object Array]"===type,duplicateIndex,duplicate;if(objectOrArray){duplicateIndex=state.duplicates.indexOf(object);duplicate=duplicateIndex!==-1}if(duplicate&&state.usedDuplicates[duplicateIndex]){state.dump="*ref_"+duplicateIndex}else{if(objectOrArray&&duplicate&&!state.usedDuplicates[duplicateIndex]){state.usedDuplicates[duplicateIndex]=true}if("[object Object]"===type){if(block&&0!==Object.keys(state.dump).length){writeBlockMapping(state,level,state.dump,compact);if(duplicate){state.dump="&ref_"+duplicateIndex+(0===level?"\n":"")+state.dump}}else{writeFlowMapping(state,level,state.dump);if(duplicate){state.dump="&ref_"+duplicateIndex+" "+state.dump}}}else if("[object Array]"===type){if(block&&0!==state.dump.length){writeBlockSequence(state,level,state.dump,compact);if(duplicate){state.dump="&ref_"+duplicateIndex+(0===level?"\n":"")+state.dump}}else{writeFlowSequence(state,level,state.dump);if(duplicate){state.dump="&ref_"+duplicateIndex+" "+state.dump}}}else if("[object String]"===type){if("?"!==state.tag){writeScalar(state,state.dump,level)}}else{if(state.skipInvalid){return false}throw new YAMLException("unacceptable kind of an object to dump "+type)}if(null!==state.tag&&"?"!==state.tag){state.dump="!<"+state.tag+"> "+state.dump}}return true}function getDuplicateReferences(object,state){var objects=[],duplicatesIndexes=[],index,length;inspectNode(object,objects,duplicatesIndexes);for(index=0,length=duplicatesIndexes.length;index>10)+55296,(c-65536&1023)+56320)}var simpleEscapeCheck=new Array(256);var simpleEscapeMap=new Array(256);var customEscapeCheck=new Array(256);var customEscapeMap=new Array(256);for(var i=0;i<256;i++){customEscapeMap[i]=simpleEscapeMap[i]=simpleEscapeSequence(i);simpleEscapeCheck[i]=simpleEscapeMap[i]?1:0;customEscapeCheck[i]=1;if(!simpleEscapeCheck[i]){customEscapeMap[i]="\\"+String.fromCharCode(i)}}var State=function(){function State(input,options){this.errorMap={};this.errors=[];this.lines=[];this.input=input;this.filename=options["filename"]||null;this.schema=options["schema"]||DEFAULT_FULL_SCHEMA;this.onWarning=options["onWarning"]||null;this.legacy=options["legacy"]||false;this.allowAnyEscape=options["allowAnyEscape"]||false;this.ignoreDuplicateKeys=options["ignoreDuplicateKeys"]||false;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=input.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.documents=[]}return State}();function generateError(state,message,isWarning){if(isWarning===void 0){isWarning=false}return new YAMLException(message,new Mark(state.filename,state.input,state.position,state.line,state.position-state.lineStart),isWarning)}function throwErrorFromPosition(state,position,message,isWarning,toLineEnd){if(isWarning===void 0){isWarning=false}if(toLineEnd===void 0){toLineEnd=false}var line=positionToLine(state,position);if(!line){return}var hash=message+position;if(state.errorMap[hash]){return}var mark=new Mark(state.filename,state.input,position,line.line,position-line.start);if(toLineEnd){mark.toLineEnd=true}var error=new YAMLException(message,mark,isWarning);state.errors.push(error)}function throwError(state,message){var error=generateError(state,message);var hash=error.message+error.mark.position;if(state.errorMap[hash]){return}state.errors.push(error);state.errorMap[hash]=1;var or=state.position;while(true){if(state.position>=state.input.length-1){return}var c=state.input.charAt(state.position);if(c=="\n"){state.position--;if(state.position==or){state.position+=1}return}if(c=="\r"){state.position--;if(state.position==or){state.position+=1}return}state.position++}}function throwWarning(state,message){var error=generateError(state,message);if(state.onWarning){state.onWarning.call(null,error)}else{}}var directiveHandlers={YAML:function handleYamlDirective(state,name,args){var match,major,minor;if(null!==state.version){throwError(state,"duplication of %YAML directive")}if(1!==args.length){throwError(state,"YAML directive accepts exactly one argument")}match=/^([0-9]+)\.([0-9]+)$/.exec(args[0]);if(null===match){throwError(state,"ill-formed argument of the YAML directive")}major=parseInt(match[1],10);minor=parseInt(match[2],10);if(1!==major){throwError(state,"found incompatible YAML document (version 1.2 is required)")}state.version=args[0];state.checkLineBreaks=minor<2;if(2!==minor){throwError(state,"found incompatible YAML document (version 1.2 is required)")}},TAG:function handleTagDirective(state,name,args){var handle,prefix;if(2!==args.length){throwError(state,"TAG directive accepts exactly two arguments")}handle=args[0];prefix=args[1];if(!PATTERN_TAG_HANDLE.test(handle)){throwError(state,"ill-formed tag handle (first argument) of the TAG directive")}if(_hasOwnProperty.call(state.tagMap,handle)){throwError(state,'there is a previously declared suffix for "'+handle+'" tag handle')}if(!PATTERN_TAG_URI.test(prefix)){throwError(state,"ill-formed tag prefix (second argument) of the TAG directive")}state.tagMap[handle]=prefix}};function captureSegment(state,start,end,checkJson){var _position,_length,_character,_result;var scalar=state.result;if(scalar.startPosition==-1){scalar.startPosition=start}if(start<=end){_result=state.input.slice(start,end);if(checkJson){for(_position=0,_length=_result.length;_position<_length;_position+=1){_character=_result.charCodeAt(_position);if(!(9===_character||32<=_character&&_character<=1114111)){throwError(state,"expected valid JSON character")}}}else if(PATTERN_NON_PRINTABLE.test(_result)){throwError(state,"the stream contains non-printable characters")}scalar.value+=_result;scalar.endPosition=end}}function mergeMappings(state,destination,source){var sourceKeys,key,index,quantity;if(!common.isObject(source)){throwError(state,"cannot merge mappings; the provided source object is unacceptable")}sourceKeys=Object.keys(source);for(index=0,quantity=sourceKeys.length;indexposition){break}line=state.lines[i]}if(!line){return{start:0,line:0}}return line}function skipSeparationSpace(state,allowComments,checkIndent){var lineBreaks=0,ch=state.input.charCodeAt(state.position);while(0!==ch){while(is_WHITE_SPACE(ch)){if(ch===9){state.errors.push(generateError(state,"Using tabs can lead to unpredictable results",true))}ch=state.input.charCodeAt(++state.position)}if(allowComments&&35===ch){do{ch=state.input.charCodeAt(++state.position)}while(ch!==10&&ch!==13&&0!==ch)}if(is_EOL(ch)){readLineBreak(state);ch=state.input.charCodeAt(state.position);lineBreaks++;state.lineIndent=0;while(32===ch){state.lineIndent++;ch=state.input.charCodeAt(++state.position)}}else{break}}if(-1!==checkIndent&&0!==lineBreaks&&state.lineIndent1){scalar.value+=common.repeat("\n",count-1)}}function readPlainScalar(state,nodeIndent,withinFlowCollection){var preceding,following,captureStart,captureEnd,hasPendingContent,_line,_lineStart,_lineIndent,_kind=state.kind,_result=state.result,ch;var state_result=ast.newScalar();state_result.plainScalar=true;state.result=state_result;ch=state.input.charCodeAt(state.position);if(is_WS_OR_EOL(ch)||is_FLOW_INDICATOR(ch)||35===ch||38===ch||42===ch||33===ch||124===ch||62===ch||39===ch||34===ch||37===ch||64===ch||96===ch){return false}if(63===ch||45===ch){following=state.input.charCodeAt(state.position+1);if(is_WS_OR_EOL(following)||withinFlowCollection&&is_FLOW_INDICATOR(following)){return false}}state.kind="scalar";captureStart=captureEnd=state.position;hasPendingContent=false;while(0!==ch){if(58===ch){following=state.input.charCodeAt(state.position+1);if(is_WS_OR_EOL(following)||withinFlowCollection&&is_FLOW_INDICATOR(following)){break}}else if(35===ch){preceding=state.input.charCodeAt(state.position-1);if(is_WS_OR_EOL(preceding)){break}}else if(state.position===state.lineStart&&testDocumentSeparator(state)||withinFlowCollection&&is_FLOW_INDICATOR(ch)){break}else if(is_EOL(ch)){_line=state.line;_lineStart=state.lineStart;_lineIndent=state.lineIndent;skipSeparationSpace(state,false,-1);if(state.lineIndent>=nodeIndent){hasPendingContent=true;ch=state.input.charCodeAt(state.position);continue}else{state.position=captureEnd;state.line=_line;state.lineStart=_lineStart;state.lineIndent=_lineIndent;break}}if(hasPendingContent){captureSegment(state,captureStart,captureEnd,false);writeFoldedLines(state,state_result,state.line-_line);captureStart=captureEnd=state.position;hasPendingContent=false}if(!is_WHITE_SPACE(ch)){captureEnd=state.position+1}ch=state.input.charCodeAt(++state.position);if(state.position>=state.input.length){return false}}captureSegment(state,captureStart,captureEnd,false);if(state.result.startPosition!=-1){state_result.rawValue=state.input.substring(state_result.startPosition,state_result.endPosition);return true}state.kind=_kind;state.result=_result;return false}function readSingleQuotedScalar(state,nodeIndent){var ch,captureStart,captureEnd;ch=state.input.charCodeAt(state.position);if(39!==ch){return false}var scalar=ast.newScalar();scalar.singleQuoted=true;state.kind="scalar";state.result=scalar;scalar.startPosition=state.position;state.position++;captureStart=captureEnd=state.position;while(0!==(ch=state.input.charCodeAt(state.position))){if(39===ch){captureSegment(state,captureStart,state.position,true);ch=state.input.charCodeAt(++state.position);scalar.endPosition=state.position;if(39===ch){captureStart=captureEnd=state.position;state.position++}else{return true}}else if(is_EOL(ch)){captureSegment(state,captureStart,captureEnd,true);writeFoldedLines(state,scalar,skipSeparationSpace(state,false,nodeIndent));captureStart=captureEnd=state.position}else if(state.position===state.lineStart&&testDocumentSeparator(state)){throwError(state,"unexpected end of the document within a single quoted scalar")}else{state.position++;captureEnd=state.position;scalar.endPosition=state.position}}throwError(state,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(state,nodeIndent){var captureStart,captureEnd,hexLength,hexResult,tmp,tmpEsc,ch;ch=state.input.charCodeAt(state.position);if(34!==ch){return false}state.kind="scalar";var scalar=ast.newScalar();scalar.doubleQuoted=true;state.result=scalar;scalar.startPosition=state.position;state.position++;captureStart=captureEnd=state.position;while(0!==(ch=state.input.charCodeAt(state.position))){if(34===ch){captureSegment(state,captureStart,state.position,true);state.position++;scalar.endPosition=state.position;scalar.rawValue=state.input.substring(scalar.startPosition,scalar.endPosition);return true}else if(92===ch){captureSegment(state,captureStart,state.position,true);ch=state.input.charCodeAt(++state.position);if(is_EOL(ch)){skipSeparationSpace(state,false,nodeIndent)}else if(ch<256&&(state.allowAnyEscape?customEscapeCheck[ch]:simpleEscapeCheck[ch])){scalar.value+=state.allowAnyEscape?customEscapeMap[ch]:simpleEscapeMap[ch];state.position++}else if((tmp=escapedHexLen(ch))>0){hexLength=tmp;hexResult=0;for(;hexLength>0;hexLength--){ch=state.input.charCodeAt(++state.position);if((tmp=fromHexCode(ch))>=0){hexResult=(hexResult<<4)+tmp}else{throwError(state,"expected hexadecimal character")}}scalar.value+=charFromCodepoint(hexResult);state.position++}else{throwError(state,"unknown escape sequence")}captureStart=captureEnd=state.position}else if(is_EOL(ch)){captureSegment(state,captureStart,captureEnd,true);writeFoldedLines(state,scalar,skipSeparationSpace(state,false,nodeIndent));captureStart=captureEnd=state.position}else if(state.position===state.lineStart&&testDocumentSeparator(state)){throwError(state,"unexpected end of the document within a double quoted scalar")}else{state.position++;captureEnd=state.position}}throwError(state,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(state,nodeIndent){var readNext=true,_line,_tag=state.tag,_result,_anchor=state.anchor,following,terminator,isPair,isExplicitPair,isMapping,keyNode,keyTag,valueNode,ch;ch=state.input.charCodeAt(state.position);if(ch===91){terminator=93;isMapping=false;_result=ast.newItems();_result.startPosition=state.position}else if(ch===123){terminator=125;isMapping=true;_result=ast.newMap();_result.startPosition=state.position}else{return false}if(null!==state.anchor){_result.anchorId=state.anchor;state.anchorMap[state.anchor]=_result}ch=state.input.charCodeAt(++state.position);while(0!==ch){skipSeparationSpace(state,true,nodeIndent);ch=state.input.charCodeAt(state.position);if(ch===terminator){state.position++;state.tag=_tag;state.anchor=_anchor;state.kind=isMapping?"mapping":"sequence";state.result=_result;_result.endPosition=state.position;return true}else if(!readNext){var p=state.position;throwError(state,"missed comma between flow collection entries");state.position=p+1}keyTag=keyNode=valueNode=null;isPair=isExplicitPair=false;if(63===ch){following=state.input.charCodeAt(state.position+1);if(is_WS_OR_EOL(following)){isPair=isExplicitPair=true;state.position++;skipSeparationSpace(state,true,nodeIndent)}}_line=state.line;composeNode(state,nodeIndent,CONTEXT_FLOW_IN,false,true);keyTag=state.tag;keyNode=state.result;skipSeparationSpace(state,true,nodeIndent);ch=state.input.charCodeAt(state.position);if((isExplicitPair||state.line===_line)&&58===ch){isPair=true;ch=state.input.charCodeAt(++state.position);skipSeparationSpace(state,true,nodeIndent);composeNode(state,nodeIndent,CONTEXT_FLOW_IN,false,true);valueNode=state.result}if(isMapping){storeMappingPair(state,_result,keyTag,keyNode,valueNode)}else if(isPair){var mp=storeMappingPair(state,null,keyTag,keyNode,valueNode);mp.parent=_result;_result.items.push(mp)}else{if(keyNode){keyNode.parent=_result}_result.items.push(keyNode)}_result.endPosition=state.position+1;skipSeparationSpace(state,true,nodeIndent);ch=state.input.charCodeAt(state.position);if(44===ch){readNext=true;ch=state.input.charCodeAt(++state.position)}else{readNext=false}}throwError(state,"unexpected end of the stream within a flow collection")}function readBlockScalar(state,nodeIndent){var captureStart,folding,chomping=CHOMPING_CLIP,detectedIndent=false,textIndent=nodeIndent,emptyLines=0,atMoreIndented=false,tmp,ch;ch=state.input.charCodeAt(state.position);if(ch===124){folding=false}else if(ch===62){folding=true}else{return false}var sc=ast.newScalar();state.kind="scalar";state.result=sc;sc.startPosition=state.position;while(0!==ch){ch=state.input.charCodeAt(++state.position);if(43===ch||45===ch){if(CHOMPING_CLIP===chomping){chomping=43===ch?CHOMPING_KEEP:CHOMPING_STRIP}else{throwError(state,"repeat of a chomping mode identifier")}}else if((tmp=fromDecimalCode(ch))>=0){if(tmp===0){throwError(state,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!detectedIndent){textIndent=nodeIndent+tmp-1;detectedIndent=true}else{throwError(state,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(ch)){do{ch=state.input.charCodeAt(++state.position)}while(is_WHITE_SPACE(ch));if(35===ch){do{ch=state.input.charCodeAt(++state.position)}while(!is_EOL(ch)&&0!==ch)}}while(0!==ch){readLineBreak(state);state.lineIndent=0;ch=state.input.charCodeAt(state.position);while((!detectedIndent||state.lineIndenttextIndent){textIndent=state.lineIndent}if(is_EOL(ch)){emptyLines++;continue}if(state.lineIndentnodeIndent)&&0!==ch){throwError(state,"bad indentation of a sequence entry")}else if(state.lineIndent0){ch=state.input.charCodeAt(--state.position);if(is_EOL(ch)){state.position++;break}}}else{state.tag=_tag;state.anchor=_anchor;return true}}else{break}if(state.line===_line||state.lineIndent>nodeIndent){if(composeNode(state,nodeIndent,CONTEXT_BLOCK_OUT,true,allowCompact)){if(atExplicitKey){keyNode=state.result}else{valueNode=state.result}}if(!atExplicitKey){storeMappingPair(state,_result,keyTag,keyNode,valueNode);keyTag=keyNode=valueNode=null}skipSeparationSpace(state,true,-1);ch=state.input.charCodeAt(state.position)}if(state.lineIndent>nodeIndent&&0!==ch){throwError(state,"bad indentation of a mapping entry")}else if(state.lineIndentparentIndent){indentStatus=1}else if(state.lineIndent===parentIndent){indentStatus=0}else if(state.lineIndentparentIndent){indentStatus=1}else if(state.lineIndent===parentIndent){indentStatus=0}else if(state.lineIndent tag; it should be "'+type.kind+'", not "'+state.kind+'"')}if(!type.resolve(state.result)){throwError(state,"cannot resolve a node with !<"+state.tag+"> explicit tag")}else{state.result=type.construct(state.result);if(null!==state.anchor){state.result.anchorId=state.anchor;state.anchorMap[state.anchor]=state.result}}}else{throwErrorFromPosition(state,tagStart,"unknown tag <"+state.tag+">",false,true)}}return null!==state.tag||null!==state.anchor||hasContent}function readDocument(state){var documentStart=state.position,_position,directiveName,directiveArgs,hasDirectives=false,ch;state.version=null;state.checkLineBreaks=state.legacy;state.tagMap={};state.anchorMap={};while(0!==(ch=state.input.charCodeAt(state.position))){skipSeparationSpace(state,true,-1);ch=state.input.charCodeAt(state.position);if(state.lineIndent>0||37!==ch){break}hasDirectives=true;ch=state.input.charCodeAt(++state.position);_position=state.position;while(0!==ch&&!is_WS_OR_EOL(ch)){ch=state.input.charCodeAt(++state.position)}directiveName=state.input.slice(_position,state.position);directiveArgs=[];if(directiveName.length<1){throwError(state,"directive name must not be less than one character in length")}while(0!==ch){while(is_WHITE_SPACE(ch)){ch=state.input.charCodeAt(++state.position)}if(35===ch){do{ch=state.input.charCodeAt(++state.position)}while(0!==ch&&!is_EOL(ch));break}if(is_EOL(ch)){break}_position=state.position;while(0!==ch&&!is_WS_OR_EOL(ch)){ch=state.input.charCodeAt(++state.position)}directiveArgs.push(state.input.slice(_position,state.position))}if(0!==ch){readLineBreak(state)}if(_hasOwnProperty.call(directiveHandlers,directiveName)){directiveHandlers[directiveName](state,directiveName,directiveArgs)}else{throwWarning(state,'unknown document directive "'+directiveName+'"');state.position++}}skipSeparationSpace(state,true,-1);if(0===state.lineIndent&&45===state.input.charCodeAt(state.position)&&45===state.input.charCodeAt(state.position+1)&&45===state.input.charCodeAt(state.position+2)){state.position+=3;skipSeparationSpace(state,true,-1)}else if(hasDirectives){throwError(state,"directives end mark is expected")}composeNode(state,state.lineIndent-1,CONTEXT_BLOCK_OUT,false,true);skipSeparationSpace(state,true,-1);if(state.checkLineBreaks&&PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart,state.position))){throwWarning(state,"non-ASCII line breaks are interpreted as content")}state.documents.push(state.result);if(state.position===state.lineStart&&testDocumentSeparator(state)){if(46===state.input.charCodeAt(state.position)){state.position+=3;skipSeparationSpace(state,true,-1)}return}if(state.position0){documents[docsCount-1].endPosition=inputLength}for(var _i=0,documents_1=documents;_ix.endPosition){x.startPosition=x.endPosition}}return documents}function loadAll(input,iterator,options){if(options===void 0){options={}}var documents=loadDocuments(input,options),index,length;for(index=0,length=documents.length;index0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(start-1))){start-=1;if(this.position-start>maxLength/2-1){head=" ... ";start+=5;break}}tail="";end=this.position;while(endmaxLength/2-1){tail=" ... ";end-=5;break}}snippet=this.buffer.slice(start,end);return common.repeat(" ",indent)+head+snippet+tail+"\n"+common.repeat(" ",indent+this.position-start+head.length)+"^"};Mark.prototype.toString=function(compact){if(compact===void 0){compact=true}var snippet,where="";if(this.name){where+='in "'+this.name+'" '}where+="at line "+(this.line+1)+", column "+(this.column+1);if(!compact){snippet=this.getSnippet();if(snippet){where+=":\n"+snippet}}return where};return Mark}();module.exports=Mark},{"./common":206}],212:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});function parseYamlBoolean(input){if(["true","True","TRUE"].lastIndexOf(input)>=0){return true}else if(["false","False","FALSE"].lastIndexOf(input)>=0){return false}throw'Invalid boolean "'+input+'"'}exports.parseYamlBoolean=parseYamlBoolean;function safeParseYamlInteger(input){if(input.lastIndexOf("0o",0)===0){return parseInt(input.substring(2),8)}return parseInt(input)}function parseYamlInteger(input){var result=safeParseYamlInteger(input);if(isNaN(result)){throw'Invalid integer "'+input+'"'}return result}exports.parseYamlInteger=parseYamlInteger;function parseYamlFloat(input){if([".nan",".NaN",".NAN"].lastIndexOf(input)>=0){return NaN}var infinity=/^([-+])?(?:\.inf|\.Inf|\.INF)$/;var match=infinity.exec(input);if(match){return match[1]==="-"?-Infinity:Infinity}var result=parseFloat(input);if(!isNaN(result)){return result}throw'Invalid float "'+input+'"'}exports.parseYamlFloat=parseYamlFloat;var ScalarType;(function(ScalarType){ScalarType[ScalarType["null"]=0]="null";ScalarType[ScalarType["bool"]=1]="bool";ScalarType[ScalarType["int"]=2]="int";ScalarType[ScalarType["float"]=3]="float";ScalarType[ScalarType["string"]=4]="string"})(ScalarType=exports.ScalarType||(exports.ScalarType={}));function determineScalarType(node){if(node===undefined){return ScalarType.null}if(node.doubleQuoted||!node.plainScalar||node["singleQuoted"]){return ScalarType.string}var value=node.value;if(["null","Null","NULL","~",""].indexOf(value)>=0){return ScalarType.null}if(value===null||value===undefined){return ScalarType.null}if(["true","True","TRUE","false","False","FALSE"].indexOf(value)>=0){return ScalarType.bool}var base10=/^[-+]?[0-9]+$/;var base8=/^0o[0-7]+$/;var base16=/^0x[0-9a-fA-F]+$/;if(base10.test(value)||base8.test(value)||base16.test(value)){return ScalarType.int}var float=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/;var infinity=/^[-+]?(\.inf|\.Inf|\.INF)$/;if(float.test(value)||infinity.test(value)||[".nan",".NaN",".NAN"].indexOf(value)>=0){return ScalarType.float}return ScalarType.string}exports.determineScalarType=determineScalarType},{}],213:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var common=require("./common");var YAMLException=require("./exception");var type_1=require("./type");function compileList(schema,name,result){var exclude=[];schema.include.forEach(function(includedSchema){result=compileList(includedSchema,name,result)});schema[name].forEach(function(currentType){result.forEach(function(previousType,previousIndex){if(previousType.tag===currentType.tag){exclude.push(previousIndex)}});result.push(currentType)});return result.filter(function(type,index){return-1===exclude.indexOf(index)})}function compileMap(){var result={},index,length;function collectType(type){result[type.tag]=type}for(index=0,length=arguments.length;index64){continue}if(code<0){return false}bitlen+=6}return bitlen%8===0}function constructYamlBinary(data){var code,idx,tailbits,input=data.replace(/[\r\n=]/g,""),max=input.length,map=BASE64_MAP,bits=0,result=[];for(idx=0;idx>16&255);result.push(bits>>8&255);result.push(bits&255)}bits=bits<<6|map.indexOf(input.charAt(idx))}tailbits=max%4*6;if(tailbits===0){result.push(bits>>16&255);result.push(bits>>8&255);result.push(bits&255)}else if(tailbits===18){result.push(bits>>10&255);result.push(bits>>2&255)}else if(tailbits===12){result.push(bits>>4&255)}if(NodeBuffer){return new NodeBuffer(result)}return result}function representYamlBinary(object){var result="",bits=0,idx,tail,max=object.length,map=BASE64_MAP;for(idx=0;idx>18&63];result+=map[bits>>12&63];result+=map[bits>>6&63];result+=map[bits&63]}bits=(bits<<8)+object[idx]}tail=max%3;if(tail===0){result+=map[bits>>18&63];result+=map[bits>>12&63];result+=map[bits>>6&63];result+=map[bits&63]}else if(tail===2){result+=map[bits>>10&63];result+=map[bits>>4&63];result+=map[bits<<2&63];result+=map[64]}else if(tail===1){result+=map[bits>>2&63];result+=map[bits<<4&63];result+=map[64];result+=map[64]}return result}function isBinary(object){return NodeBuffer&&NodeBuffer.isBuffer(object)}module.exports=new type_1.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},{"../type":219,buffer:128}],221:[function(require,module,exports){"use strict";"use strict";var type_1=require("../type");function resolveYamlBoolean(data){if(null===data){return false}var max=data.length;return max===4&&(data==="true"||data==="True"||data==="TRUE")||max===5&&(data==="false"||data==="False"||data==="FALSE")}function constructYamlBoolean(data){return data==="true"||data==="True"||data==="TRUE"}function isBoolean(object){return"[object Boolean]"===Object.prototype.toString.call(object)}module.exports=new type_1.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(object){return object?"true":"false"},uppercase:function(object){return object?"TRUE":"FALSE"},camelcase:function(object){return object?"True":"False"}},defaultStyle:"lowercase"})},{"../type":219}],222:[function(require,module,exports){"use strict";var common=require("../common");var type_1=require("../type");var YAML_FLOAT_PATTERN=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+][0-9]+)?"+"|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(data){if(null===data){return false}var value,sign,base,digits;if(!YAML_FLOAT_PATTERN.test(data)){return false}return true}function constructYamlFloat(data){var value,sign,base,digits;value=data.replace(/_/g,"").toLowerCase();sign="-"===value[0]?-1:1;digits=[];if(0<="+-".indexOf(value[0])){value=value.slice(1)}if(".inf"===value){return 1===sign?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(".nan"===value){return NaN}else if(0<=value.indexOf(":")){value.split(":").forEach(function(v){digits.unshift(parseFloat(v,10))});value=0;base=1;digits.forEach(function(d){value+=d*base;base*=60});return sign*value}return sign*parseFloat(value,10)}function representYamlFloat(object,style){if(isNaN(object)){switch(style){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===object){switch(style){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===object){switch(style){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(common.isNegativeZero(object)){return"-0.0"}return object.toString(10)}function isFloat(object){return"[object Number]"===Object.prototype.toString.call(object)&&(0!==object%1||common.isNegativeZero(object))}module.exports=new type_1.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},{"../common":206,"../type":219}],223:[function(require,module,exports){"use strict";var common=require("../common");var type_1=require("../type");function isHexCode(c){return 48<=c&&c<=57||65<=c&&c<=70||97<=c&&c<=102}function isOctCode(c){return 48<=c&&c<=55}function isDecCode(c){return 48<=c&&c<=57}function resolveYamlInteger(data){if(null===data){return false}var max=data.length,index=0,hasDigits=false,ch;if(!max){return false}ch=data[index];if(ch==="-"||ch==="+"){ch=data[++index]}if(ch==="0"){if(index+1===max){return true}ch=data[++index];if(ch==="b"){index++;for(;index3){return false}if(regexp[regexp.length-modifiers.length-1]!=="/"){return false}regexp=regexp.slice(1,regexp.length-modifiers.length-1)}try{var dummy=new RegExp(regexp,modifiers);return true}catch(error){return false}}function constructJavascriptRegExp(data){var regexp=data,tail=/\/([gim]*)$/.exec(data),modifiers="";if("/"===regexp[0]){if(tail){modifiers=tail[1]}regexp=regexp.slice(1,regexp.length-modifiers.length-1)}return new RegExp(regexp,modifiers)}function representJavascriptRegExp(object){var result="/"+object.source+"/";if(object.global){result+="g"}if(object.multiline){result+="m"}if(object.ignoreCase){result+="i"}return result}function isRegExp(object){return"[object RegExp]"===Object.prototype.toString.call(object)}module.exports=new type_1.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})},{"../../type":219}],225:[function(require,module,exports){"use strict";var type_1=require("../../type");function resolveJavascriptUndefined(){return true}function constructJavascriptUndefined(){return undefined}function representJavascriptUndefined(){return""}function isUndefined(object){return"undefined"===typeof object}module.exports=new type_1.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:resolveJavascriptUndefined,construct:constructJavascriptUndefined,predicate:isUndefined,represent:representJavascriptUndefined})},{"../../type":219}],226:[function(require,module,exports){"use strict";var type_1=require("../type");module.exports=new type_1.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(data){return null!==data?data:{}}})},{"../type":219}],227:[function(require,module,exports){"use strict";var type_1=require("../type");function resolveYamlMerge(data){return"<<"===data||null===data}module.exports=new type_1.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},{"../type":219}],228:[function(require,module,exports){"use strict";var type_1=require("../type");function resolveYamlNull(data){if(null===data){return true}var max=data.length;return max===1&&data==="~"||max===4&&(data==="null"||data==="Null"||data==="NULL")}function constructYamlNull(){return null}function isNull(object){return null===object}module.exports=new type_1.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},{"../type":219}],229:[function(require,module,exports){"use strict";var type_1=require("../type");var _hasOwnProperty=Object.prototype.hasOwnProperty;var _toString=Object.prototype.toString;function resolveYamlOmap(data){if(null===data){return true}var objectKeys=[],index,length,pair,pairKey,pairHasKey,object=data;for(index=0,length=object.length;index -
@asyncapi/parser
-
- - -## Mixins - -
-
MixinBindings
-

Implements functions to deal with the common Bindings object.

-
-
MixinDescription
-

Implements functions to deal with the description field.

-
-
MixinExternalDocs
-

Implements functions to deal with the ExternalDocs object.

-
-
MixinSpecificationExtensions
-

Implements functions to deal with the SpecificationExtensions object.

-
-
MixinTags
-

Implements functions to deal with the Tags object.

-
-
- -## Typedefs - -
-
SchemaIteratorCallbackType
-

The different kind of stages when crawling a schema.

-
-
SchemaTypesToIterate
-

The different types of schemas you can iterate

-
-
- - - -## @asyncapi/parser - -* [@asyncapi/parser](#module_@asyncapi/parser) - * _instance_ - * [.ChannelParameter](#module_@asyncapi/parser+ChannelParameter) ⇐ Base - * [.location()](#module_@asyncapi/parser+ChannelParameter+location) ⇒ string - * [.schema()](#module_@asyncapi/parser+ChannelParameter+schema) ⇒ Schema - * [.hasDescription()](#module_@asyncapi/parser+ChannelParameter+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+ChannelParameter+description) ⇒ string \| null - * [.hasExtensions()](#module_@asyncapi/parser+ChannelParameter+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+ChannelParameter+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+ChannelParameter+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+ChannelParameter+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+ChannelParameter+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+ChannelParameter+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+ChannelParameter+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+ChannelParameter+ext) ⇒ any - * [.Channel](#module_@asyncapi/parser+Channel) ⇐ Base - * [.parameters()](#module_@asyncapi/parser+Channel+parameters) ⇒ Object.<string, ChannelParameter> - * [.parameter(name)](#module_@asyncapi/parser+Channel+parameter) ⇒ ChannelParameter - * [.hasParameters()](#module_@asyncapi/parser+Channel+hasParameters) ⇒ boolean - * [.hasServers()](#module_@asyncapi/parser+Channel+hasServers) ⇒ boolean - * [.servers()](#module_@asyncapi/parser+Channel+servers) ⇒ Array.<String> - * [.server(index)](#module_@asyncapi/parser+Channel+server) ⇒ String - * [.publish()](#module_@asyncapi/parser+Channel+publish) ⇒ PublishOperation - * [.subscribe()](#module_@asyncapi/parser+Channel+subscribe) ⇒ SubscribeOperation - * [.hasPublish()](#module_@asyncapi/parser+Channel+hasPublish) ⇒ boolean - * [.hasSubscribe()](#module_@asyncapi/parser+Channel+hasSubscribe) ⇒ boolean - * [.hasDescription()](#module_@asyncapi/parser+Channel+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+Channel+description) ⇒ string \| null - * [.hasBindings()](#module_@asyncapi/parser+Channel+hasBindings) ⇒ boolean - * [.bindings()](#module_@asyncapi/parser+Channel+bindings) ⇒ Object - * [.bindingProtocols()](#module_@asyncapi/parser+Channel+bindingProtocols) ⇒ Array.<string> - * [.hasBinding(name)](#module_@asyncapi/parser+Channel+hasBinding) ⇒ boolean - * [.binding(name)](#module_@asyncapi/parser+Channel+binding) ⇒ Object \| null - * [.hasExtensions()](#module_@asyncapi/parser+Channel+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+Channel+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+Channel+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+Channel+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+Channel+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+Channel+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+Channel+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+Channel+ext) ⇒ any - * [.Components](#module_@asyncapi/parser+Components) ⇐ Base - * [.channels()](#module_@asyncapi/parser+Components+channels) ⇒ Object.<string, Channel> - * [.hasChannels()](#module_@asyncapi/parser+Components+hasChannels) ⇒ boolean - * [.channel(name)](#module_@asyncapi/parser+Components+channel) ⇒ Channel - * [.messages()](#module_@asyncapi/parser+Components+messages) ⇒ Object.<string, Message> - * [.hasMessages()](#module_@asyncapi/parser+Components+hasMessages) ⇒ boolean - * [.message(name)](#module_@asyncapi/parser+Components+message) ⇒ Message - * [.schemas()](#module_@asyncapi/parser+Components+schemas) ⇒ Object.<string, Schema> - * [.hasSchemas()](#module_@asyncapi/parser+Components+hasSchemas) ⇒ boolean - * [.schema(name)](#module_@asyncapi/parser+Components+schema) ⇒ Schema - * [.securitySchemes()](#module_@asyncapi/parser+Components+securitySchemes) ⇒ Object.<string, SecurityScheme> - * [.hasSecuritySchemes()](#module_@asyncapi/parser+Components+hasSecuritySchemes) ⇒ boolean - * [.securityScheme(name)](#module_@asyncapi/parser+Components+securityScheme) ⇒ SecurityScheme - * [.servers()](#module_@asyncapi/parser+Components+servers) ⇒ Object.<string, Server> - * [.hasServers()](#module_@asyncapi/parser+Components+hasServers) ⇒ boolean - * [.server(name)](#module_@asyncapi/parser+Components+server) ⇒ Server - * [.parameters()](#module_@asyncapi/parser+Components+parameters) ⇒ Object.<string, ChannelParameter> - * [.hasParameters()](#module_@asyncapi/parser+Components+hasParameters) ⇒ boolean - * [.parameter(name)](#module_@asyncapi/parser+Components+parameter) ⇒ ChannelParameter - * [.correlationIds()](#module_@asyncapi/parser+Components+correlationIds) ⇒ Object.<string, CorrelationId> - * [.hasCorrelationIds()](#module_@asyncapi/parser+Components+hasCorrelationIds) ⇒ boolean - * [.correlationId(name)](#module_@asyncapi/parser+Components+correlationId) ⇒ CorrelationId - * [.operationTraits()](#module_@asyncapi/parser+Components+operationTraits) ⇒ Object.<string, OperationTrait> - * [.hasOperationTraits()](#module_@asyncapi/parser+Components+hasOperationTraits) ⇒ boolean - * [.operationTrait(name)](#module_@asyncapi/parser+Components+operationTrait) ⇒ OperationTrait - * [.messageTraits()](#module_@asyncapi/parser+Components+messageTraits) ⇒ Object.<string, MessageTrait> - * [.hasMessageTraits()](#module_@asyncapi/parser+Components+hasMessageTraits) ⇒ boolean - * [.messageTrait(name)](#module_@asyncapi/parser+Components+messageTrait) ⇒ MessageTrait - * [.hasExtensions()](#module_@asyncapi/parser+Components+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+Components+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+Components+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+Components+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+Components+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+Components+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+Components+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+Components+ext) ⇒ any - * [.Contact](#module_@asyncapi/parser+Contact) ⇐ Base - * [.name()](#module_@asyncapi/parser+Contact+name) ⇒ string - * [.url()](#module_@asyncapi/parser+Contact+url) ⇒ string - * [.email()](#module_@asyncapi/parser+Contact+email) ⇒ string - * [.hasExtensions()](#module_@asyncapi/parser+Contact+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+Contact+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+Contact+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+Contact+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+Contact+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+Contact+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+Contact+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+Contact+ext) ⇒ any - * [.CorrelationId](#module_@asyncapi/parser+CorrelationId) ⇐ Base - * [.location()](#module_@asyncapi/parser+CorrelationId+location) ⇒ string - * [.hasDescription()](#module_@asyncapi/parser+CorrelationId+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+CorrelationId+description) ⇒ string \| null - * [.hasExtensions()](#module_@asyncapi/parser+CorrelationId+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+CorrelationId+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+CorrelationId+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+CorrelationId+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+CorrelationId+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+CorrelationId+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+CorrelationId+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+CorrelationId+ext) ⇒ any - * [.ExternalDocs](#module_@asyncapi/parser+ExternalDocs) ⇐ Base - * [.url()](#module_@asyncapi/parser+ExternalDocs+url) ⇒ string - * [.hasDescription()](#module_@asyncapi/parser+ExternalDocs+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+ExternalDocs+description) ⇒ string \| null - * [.hasExtensions()](#module_@asyncapi/parser+ExternalDocs+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+ExternalDocs+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+ExternalDocs+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+ExternalDocs+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+ExternalDocs+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+ExternalDocs+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+ExternalDocs+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+ExternalDocs+ext) ⇒ any - * [.Info](#module_@asyncapi/parser+Info) ⇐ Base - * [.title()](#module_@asyncapi/parser+Info+title) ⇒ string - * [.version()](#module_@asyncapi/parser+Info+version) ⇒ string - * [.termsOfService()](#module_@asyncapi/parser+Info+termsOfService) ⇒ string \| undefined - * [.license()](#module_@asyncapi/parser+Info+license) ⇒ License - * [.contact()](#module_@asyncapi/parser+Info+contact) ⇒ Contact - * [.hasDescription()](#module_@asyncapi/parser+Info+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+Info+description) ⇒ string \| null - * [.hasExtensions()](#module_@asyncapi/parser+Info+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+Info+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+Info+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+Info+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+Info+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+Info+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+Info+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+Info+ext) ⇒ any - * [.License](#module_@asyncapi/parser+License) ⇐ Base - * [.name()](#module_@asyncapi/parser+License+name) ⇒ string - * [.url()](#module_@asyncapi/parser+License+url) ⇒ string - * [.hasExtensions()](#module_@asyncapi/parser+License+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+License+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+License+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+License+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+License+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+License+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+License+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+License+ext) ⇒ any - * [.MessageTrait](#module_@asyncapi/parser+MessageTrait) ⇐ MessageTraitable - * [.MessageTraitable](#module_@asyncapi/parser+MessageTraitable) ⇐ Base - * [.headers()](#module_@asyncapi/parser+MessageTraitable+headers) ⇒ Schema - * [.header(name)](#module_@asyncapi/parser+MessageTraitable+header) ⇒ Schema - * [.correlationId()](#module_@asyncapi/parser+MessageTraitable+correlationId) ⇒ CorrelationId - * [.schemaFormat()](#module_@asyncapi/parser+MessageTraitable+schemaFormat) ⇒ string - * [.contentType()](#module_@asyncapi/parser+MessageTraitable+contentType) ⇒ string - * [.name()](#module_@asyncapi/parser+MessageTraitable+name) ⇒ string - * [.title()](#module_@asyncapi/parser+MessageTraitable+title) ⇒ string - * [.summary()](#module_@asyncapi/parser+MessageTraitable+summary) ⇒ string - * [.examples()](#module_@asyncapi/parser+MessageTraitable+examples) ⇒ Array.<any> - * [.hasDescription()](#module_@asyncapi/parser+MessageTraitable+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+MessageTraitable+description) ⇒ string \| null - * [.hasTags()](#module_@asyncapi/parser+MessageTraitable+hasTags) ⇒ boolean - * [.tags()](#module_@asyncapi/parser+MessageTraitable+tags) ⇒ Array.<Tag> - * [.tagNames()](#module_@asyncapi/parser+MessageTraitable+tagNames) ⇒ Array.<string> - * [.hasTag(name)](#module_@asyncapi/parser+MessageTraitable+hasTag) ⇒ boolean - * [.tag(name)](#module_@asyncapi/parser+MessageTraitable+tag) ⇒ Tag \| null - * [.hasExternalDocs()](#module_@asyncapi/parser+MessageTraitable+hasExternalDocs) ⇒ boolean - * [.externalDocs()](#module_@asyncapi/parser+MessageTraitable+externalDocs) ⇒ ExternalDocs \| null - * [.hasBindings()](#module_@asyncapi/parser+MessageTraitable+hasBindings) ⇒ boolean - * [.bindings()](#module_@asyncapi/parser+MessageTraitable+bindings) ⇒ Object - * [.bindingProtocols()](#module_@asyncapi/parser+MessageTraitable+bindingProtocols) ⇒ Array.<string> - * [.hasBinding(name)](#module_@asyncapi/parser+MessageTraitable+hasBinding) ⇒ boolean - * [.binding(name)](#module_@asyncapi/parser+MessageTraitable+binding) ⇒ Object \| null - * [.hasExtensions()](#module_@asyncapi/parser+MessageTraitable+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+MessageTraitable+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+MessageTraitable+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+MessageTraitable+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+MessageTraitable+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+MessageTraitable+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+MessageTraitable+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+MessageTraitable+ext) ⇒ any - * [.Message](#module_@asyncapi/parser+Message) ⇐ MessageTraitable - * [.uid()](#module_@asyncapi/parser+Message+uid) ⇒ string - * [.payload()](#module_@asyncapi/parser+Message+payload) ⇒ Schema - * [.traits()](#module_@asyncapi/parser+Message+traits) ⇒ Array.<MessageTrait> - * [.hasTraits()](#module_@asyncapi/parser+Message+hasTraits) ⇒ boolean - * [.originalPayload()](#module_@asyncapi/parser+Message+originalPayload) ⇒ any - * [.originalSchemaFormat()](#module_@asyncapi/parser+Message+originalSchemaFormat) ⇒ string - * [.OAuthFlow](#module_@asyncapi/parser+OAuthFlow) ⇐ Base - * [.authorizationUrl()](#module_@asyncapi/parser+OAuthFlow+authorizationUrl) ⇒ string - * [.tokenUrl()](#module_@asyncapi/parser+OAuthFlow+tokenUrl) ⇒ string - * [.refreshUrl()](#module_@asyncapi/parser+OAuthFlow+refreshUrl) ⇒ string - * [.scopes()](#module_@asyncapi/parser+OAuthFlow+scopes) ⇒ Object.<string, string> - * [.hasExtensions()](#module_@asyncapi/parser+OAuthFlow+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+OAuthFlow+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+OAuthFlow+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+OAuthFlow+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+OAuthFlow+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+OAuthFlow+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+OAuthFlow+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+OAuthFlow+ext) ⇒ any - * [.OperationTrait](#module_@asyncapi/parser+OperationTrait) ⇐ OperationTraitable - * [.OperationTraitable](#module_@asyncapi/parser+OperationTraitable) ⇐ Base - * [.id()](#module_@asyncapi/parser+OperationTraitable+id) ⇒ string - * [.summary()](#module_@asyncapi/parser+OperationTraitable+summary) ⇒ string - * [.hasDescription()](#module_@asyncapi/parser+OperationTraitable+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+OperationTraitable+description) ⇒ string \| null - * [.hasTags()](#module_@asyncapi/parser+OperationTraitable+hasTags) ⇒ boolean - * [.tags()](#module_@asyncapi/parser+OperationTraitable+tags) ⇒ Array.<Tag> - * [.tagNames()](#module_@asyncapi/parser+OperationTraitable+tagNames) ⇒ Array.<string> - * [.hasTag(name)](#module_@asyncapi/parser+OperationTraitable+hasTag) ⇒ boolean - * [.tag(name)](#module_@asyncapi/parser+OperationTraitable+tag) ⇒ Tag \| null - * [.hasExternalDocs()](#module_@asyncapi/parser+OperationTraitable+hasExternalDocs) ⇒ boolean - * [.externalDocs()](#module_@asyncapi/parser+OperationTraitable+externalDocs) ⇒ ExternalDocs \| null - * [.hasBindings()](#module_@asyncapi/parser+OperationTraitable+hasBindings) ⇒ boolean - * [.bindings()](#module_@asyncapi/parser+OperationTraitable+bindings) ⇒ Object - * [.bindingProtocols()](#module_@asyncapi/parser+OperationTraitable+bindingProtocols) ⇒ Array.<string> - * [.hasBinding(name)](#module_@asyncapi/parser+OperationTraitable+hasBinding) ⇒ boolean - * [.binding(name)](#module_@asyncapi/parser+OperationTraitable+binding) ⇒ Object \| null - * [.hasExtensions()](#module_@asyncapi/parser+OperationTraitable+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+OperationTraitable+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+OperationTraitable+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+OperationTraitable+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+OperationTraitable+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+OperationTraitable+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+OperationTraitable+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+OperationTraitable+ext) ⇒ any - * [.Operation](#module_@asyncapi/parser+Operation) ⇐ OperationTraitable - * [.hasMultipleMessages()](#module_@asyncapi/parser+Operation+hasMultipleMessages) ⇒ boolean - * [.traits()](#module_@asyncapi/parser+Operation+traits) ⇒ Array.<OperationTrait> - * [.hasTraits()](#module_@asyncapi/parser+Operation+hasTraits) ⇒ boolean - * [.messages()](#module_@asyncapi/parser+Operation+messages) ⇒ Array.<Message> - * [.message()](#module_@asyncapi/parser+Operation+message) ⇒ Message - * [.PublishOperation](#module_@asyncapi/parser+PublishOperation) ⇐ Operation - * [.isPublish()](#module_@asyncapi/parser+PublishOperation+isPublish) ⇒ boolean - * [.isSubscribe()](#module_@asyncapi/parser+PublishOperation+isSubscribe) ⇒ boolean - * [.kind()](#module_@asyncapi/parser+PublishOperation+kind) ⇒ string - * [.SecurityScheme](#module_@asyncapi/parser+SecurityScheme) ⇐ Base - * [.type()](#module_@asyncapi/parser+SecurityScheme+type) ⇒ string - * [.name()](#module_@asyncapi/parser+SecurityScheme+name) ⇒ string - * [.in()](#module_@asyncapi/parser+SecurityScheme+in) ⇒ string - * [.scheme()](#module_@asyncapi/parser+SecurityScheme+scheme) ⇒ string - * [.bearerFormat()](#module_@asyncapi/parser+SecurityScheme+bearerFormat) ⇒ string - * [.openIdConnectUrl()](#module_@asyncapi/parser+SecurityScheme+openIdConnectUrl) ⇒ string - * [.flows()](#module_@asyncapi/parser+SecurityScheme+flows) ⇒ Object.<string, OAuthFlow> - * [.hasDescription()](#module_@asyncapi/parser+SecurityScheme+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+SecurityScheme+description) ⇒ string \| null - * [.hasExtensions()](#module_@asyncapi/parser+SecurityScheme+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+SecurityScheme+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+SecurityScheme+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+SecurityScheme+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+SecurityScheme+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+SecurityScheme+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+SecurityScheme+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+SecurityScheme+ext) ⇒ any - * [.ServerSecurityRequirement](#module_@asyncapi/parser+ServerSecurityRequirement) ⇐ Base - * [.ServerVariable](#module_@asyncapi/parser+ServerVariable) ⇐ Base - * [.allowedValues()](#module_@asyncapi/parser+ServerVariable+allowedValues) ⇒ Array.<any> - * [.allows(name)](#module_@asyncapi/parser+ServerVariable+allows) ⇒ boolean - * [.hasAllowedValues()](#module_@asyncapi/parser+ServerVariable+hasAllowedValues) ⇒ boolean - * [.defaultValue()](#module_@asyncapi/parser+ServerVariable+defaultValue) ⇒ string - * [.hasDefaultValue()](#module_@asyncapi/parser+ServerVariable+hasDefaultValue) ⇒ boolean - * [.examples()](#module_@asyncapi/parser+ServerVariable+examples) ⇒ Array.<string> - * [.hasDescription()](#module_@asyncapi/parser+ServerVariable+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+ServerVariable+description) ⇒ string \| null - * [.hasExtensions()](#module_@asyncapi/parser+ServerVariable+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+ServerVariable+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+ServerVariable+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+ServerVariable+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+ServerVariable+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+ServerVariable+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+ServerVariable+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+ServerVariable+ext) ⇒ any - * [.Server](#module_@asyncapi/parser+Server) ⇐ Base - * [.url()](#module_@asyncapi/parser+Server+url) ⇒ string - * [.protocol()](#module_@asyncapi/parser+Server+protocol) ⇒ string - * [.protocolVersion()](#module_@asyncapi/parser+Server+protocolVersion) ⇒ string - * [.variables()](#module_@asyncapi/parser+Server+variables) ⇒ Object.<string, ServerVariable> - * [.variable(name)](#module_@asyncapi/parser+Server+variable) ⇒ ServerVariable - * [.hasVariables()](#module_@asyncapi/parser+Server+hasVariables) ⇒ boolean - * [.security()](#module_@asyncapi/parser+Server+security) ⇒ Array.<ServerSecurityRequirement> - * [.hasDescription()](#module_@asyncapi/parser+Server+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+Server+description) ⇒ string \| null - * [.hasBindings()](#module_@asyncapi/parser+Server+hasBindings) ⇒ boolean - * [.bindings()](#module_@asyncapi/parser+Server+bindings) ⇒ Object - * [.bindingProtocols()](#module_@asyncapi/parser+Server+bindingProtocols) ⇒ Array.<string> - * [.hasBinding(name)](#module_@asyncapi/parser+Server+hasBinding) ⇒ boolean - * [.binding(name)](#module_@asyncapi/parser+Server+binding) ⇒ Object \| null - * [.hasExtensions()](#module_@asyncapi/parser+Server+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+Server+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+Server+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+Server+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+Server+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+Server+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+Server+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+Server+ext) ⇒ any - * [.SubscribeOperation](#module_@asyncapi/parser+SubscribeOperation) ⇐ Operation - * [.isPublish()](#module_@asyncapi/parser+SubscribeOperation+isPublish) ⇒ boolean - * [.isSubscribe()](#module_@asyncapi/parser+SubscribeOperation+isSubscribe) ⇒ boolean - * [.kind()](#module_@asyncapi/parser+SubscribeOperation+kind) ⇒ string - * [.Tag](#module_@asyncapi/parser+Tag) ⇐ Base - * [.name()](#module_@asyncapi/parser+Tag+name) ⇒ string - * [.hasDescription()](#module_@asyncapi/parser+Tag+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+Tag+description) ⇒ string \| null - * [.hasExternalDocs()](#module_@asyncapi/parser+Tag+hasExternalDocs) ⇒ boolean - * [.externalDocs()](#module_@asyncapi/parser+Tag+externalDocs) ⇒ ExternalDocs \| null - * [.hasExtensions()](#module_@asyncapi/parser+Tag+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+Tag+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+Tag+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+Tag+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+Tag+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+Tag+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+Tag+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+Tag+ext) ⇒ any - * _static_ - * [.TraverseSchemas](#module_@asyncapi/parser.TraverseSchemas) ⇒ boolean - * _inner_ - * [~ParserError](#module_@asyncapi/parser+ParserError) ⇐ Error - * [new ParserError(definition)](#new_module_@asyncapi/parser+ParserError_new) - * [.toJS()](#module_@asyncapi/parser+ParserError+toJS) - * [~AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) ⇐ Base - * _instance_ - * [.version()](#module_@asyncapi/parser+AsyncAPIDocument+version) ⇒ string - * [.info()](#module_@asyncapi/parser+AsyncAPIDocument+info) ⇒ Info - * [.id()](#module_@asyncapi/parser+AsyncAPIDocument+id) ⇒ string - * [.hasServers()](#module_@asyncapi/parser+AsyncAPIDocument+hasServers) ⇒ boolean - * [.servers()](#module_@asyncapi/parser+AsyncAPIDocument+servers) ⇒ Object.<string, Server> - * [.serverNames()](#module_@asyncapi/parser+AsyncAPIDocument+serverNames) ⇒ Array.<string> - * [.server(name)](#module_@asyncapi/parser+AsyncAPIDocument+server) ⇒ Server - * [.hasDefaultContentType()](#module_@asyncapi/parser+AsyncAPIDocument+hasDefaultContentType) ⇒ boolean - * [.defaultContentType()](#module_@asyncapi/parser+AsyncAPIDocument+defaultContentType) ⇒ string \| null - * [.hasChannels()](#module_@asyncapi/parser+AsyncAPIDocument+hasChannels) ⇒ boolean - * [.channels()](#module_@asyncapi/parser+AsyncAPIDocument+channels) ⇒ Object.<string, Channel> - * [.channelNames()](#module_@asyncapi/parser+AsyncAPIDocument+channelNames) ⇒ Array.<string> - * [.channel(name)](#module_@asyncapi/parser+AsyncAPIDocument+channel) ⇒ Channel - * [.hasComponents()](#module_@asyncapi/parser+AsyncAPIDocument+hasComponents) ⇒ boolean - * [.components()](#module_@asyncapi/parser+AsyncAPIDocument+components) ⇒ Components - * [.hasMessages()](#module_@asyncapi/parser+AsyncAPIDocument+hasMessages) ⇒ boolean - * [.allMessages()](#module_@asyncapi/parser+AsyncAPIDocument+allMessages) ⇒ Map.<string, Message> - * [.allSchemas()](#module_@asyncapi/parser+AsyncAPIDocument+allSchemas) ⇒ Map.<string, Schema> - * [.hasCircular()](#module_@asyncapi/parser+AsyncAPIDocument+hasCircular) ⇒ boolean - * [.traverseSchemas(callback, schemaTypesToIterate)](#module_@asyncapi/parser+AsyncAPIDocument+traverseSchemas) - * [.hasTags()](#module_@asyncapi/parser+AsyncAPIDocument+hasTags) ⇒ boolean - * [.tags()](#module_@asyncapi/parser+AsyncAPIDocument+tags) ⇒ Array.<Tag> - * [.tagNames()](#module_@asyncapi/parser+AsyncAPIDocument+tagNames) ⇒ Array.<string> - * [.hasTag(name)](#module_@asyncapi/parser+AsyncAPIDocument+hasTag) ⇒ boolean - * [.tag(name)](#module_@asyncapi/parser+AsyncAPIDocument+tag) ⇒ Tag \| null - * [.hasExternalDocs()](#module_@asyncapi/parser+AsyncAPIDocument+hasExternalDocs) ⇒ boolean - * [.externalDocs()](#module_@asyncapi/parser+AsyncAPIDocument+externalDocs) ⇒ ExternalDocs \| null - * [.hasExtensions()](#module_@asyncapi/parser+AsyncAPIDocument+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+AsyncAPIDocument+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+AsyncAPIDocument+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+AsyncAPIDocument+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+AsyncAPIDocument+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+AsyncAPIDocument+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+AsyncAPIDocument+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+AsyncAPIDocument+ext) ⇒ any - * [.hasTags()](#module_@asyncapi/parser+AsyncAPIDocument+hasTags) ⇒ boolean - * [.tags()](#module_@asyncapi/parser+AsyncAPIDocument+tags) ⇒ Array.<Tag> - * [.tagNames()](#module_@asyncapi/parser+AsyncAPIDocument+tagNames) ⇒ Array.<string> - * [.hasTag(name)](#module_@asyncapi/parser+AsyncAPIDocument+hasTag) ⇒ boolean - * [.tag(name)](#module_@asyncapi/parser+AsyncAPIDocument+tag) ⇒ Tag \| null - * [.hasExternalDocs()](#module_@asyncapi/parser+AsyncAPIDocument+hasExternalDocs) ⇒ boolean - * [.externalDocs()](#module_@asyncapi/parser+AsyncAPIDocument+externalDocs) ⇒ ExternalDocs \| null - * [.hasExtensions()](#module_@asyncapi/parser+AsyncAPIDocument+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+AsyncAPIDocument+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+AsyncAPIDocument+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+AsyncAPIDocument+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+AsyncAPIDocument+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+AsyncAPIDocument+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+AsyncAPIDocument+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+AsyncAPIDocument+ext) ⇒ any - * _static_ - * [.stringify(doc, [space])](#module_@asyncapi/parser+AsyncAPIDocument.stringify) ⇒ string - * [.parse(doc)](#module_@asyncapi/parser+AsyncAPIDocument.parse) ⇒ AsyncAPIDocument - * [~Base](#module_@asyncapi/parser+Base) - * [.json([key])](#module_@asyncapi/parser+Base+json) ⇒ any - * [~Schema](#module_@asyncapi/parser+Schema) ⇐ Base - * [new Schema(json, [options])](#new_module_@asyncapi/parser+Schema_new) - * [.uid()](#module_@asyncapi/parser+Schema+uid) ⇒ string - * [.$id()](#module_@asyncapi/parser+Schema+$id) ⇒ string - * [.multipleOf()](#module_@asyncapi/parser+Schema+multipleOf) ⇒ number - * [.maximum()](#module_@asyncapi/parser+Schema+maximum) ⇒ number - * [.exclusiveMaximum()](#module_@asyncapi/parser+Schema+exclusiveMaximum) ⇒ number - * [.minimum()](#module_@asyncapi/parser+Schema+minimum) ⇒ number - * [.exclusiveMinimum()](#module_@asyncapi/parser+Schema+exclusiveMinimum) ⇒ number - * [.maxLength()](#module_@asyncapi/parser+Schema+maxLength) ⇒ number - * [.minLength()](#module_@asyncapi/parser+Schema+minLength) ⇒ number - * [.pattern()](#module_@asyncapi/parser+Schema+pattern) ⇒ string - * [.maxItems()](#module_@asyncapi/parser+Schema+maxItems) ⇒ number - * [.minItems()](#module_@asyncapi/parser+Schema+minItems) ⇒ number - * [.uniqueItems()](#module_@asyncapi/parser+Schema+uniqueItems) ⇒ boolean - * [.maxProperties()](#module_@asyncapi/parser+Schema+maxProperties) ⇒ number - * [.minProperties()](#module_@asyncapi/parser+Schema+minProperties) ⇒ number - * [.required()](#module_@asyncapi/parser+Schema+required) ⇒ Array.<string> - * [.enum()](#module_@asyncapi/parser+Schema+enum) ⇒ Array.<any> - * [.type()](#module_@asyncapi/parser+Schema+type) ⇒ string \| Array.<string> - * [.allOf()](#module_@asyncapi/parser+Schema+allOf) ⇒ Array.<Schema> - * [.oneOf()](#module_@asyncapi/parser+Schema+oneOf) ⇒ Array.<Schema> - * [.anyOf()](#module_@asyncapi/parser+Schema+anyOf) ⇒ Array.<Schema> - * [.not()](#module_@asyncapi/parser+Schema+not) ⇒ Schema - * [.items()](#module_@asyncapi/parser+Schema+items) ⇒ Schema \| Array.<Schema> - * [.properties()](#module_@asyncapi/parser+Schema+properties) ⇒ Object.<string, Schema> - * [.property(name)](#module_@asyncapi/parser+Schema+property) ⇒ Schema - * [.additionalProperties()](#module_@asyncapi/parser+Schema+additionalProperties) ⇒ boolean \| Schema - * [.additionalItems()](#module_@asyncapi/parser+Schema+additionalItems) ⇒ Schema - * [.patternProperties()](#module_@asyncapi/parser+Schema+patternProperties) ⇒ Object.<string, Schema> - * [.const()](#module_@asyncapi/parser+Schema+const) ⇒ any - * [.contains()](#module_@asyncapi/parser+Schema+contains) ⇒ Schema - * [.dependencies()](#module_@asyncapi/parser+Schema+dependencies) ⇒ Object.<string, (Schema\|Array.<string>)> - * [.propertyNames()](#module_@asyncapi/parser+Schema+propertyNames) ⇒ Schema - * [.if()](#module_@asyncapi/parser+Schema+if) ⇒ Schema - * [.then()](#module_@asyncapi/parser+Schema+then) ⇒ Schema - * [.else()](#module_@asyncapi/parser+Schema+else) ⇒ Schema - * [.format()](#module_@asyncapi/parser+Schema+format) ⇒ string - * [.contentEncoding()](#module_@asyncapi/parser+Schema+contentEncoding) ⇒ string - * [.contentMediaType()](#module_@asyncapi/parser+Schema+contentMediaType) ⇒ string - * [.definitions()](#module_@asyncapi/parser+Schema+definitions) ⇒ Object.<string, Schema> - * [.title()](#module_@asyncapi/parser+Schema+title) ⇒ string - * [.default()](#module_@asyncapi/parser+Schema+default) ⇒ any - * [.deprecated()](#module_@asyncapi/parser+Schema+deprecated) ⇒ boolean - * [.discriminator()](#module_@asyncapi/parser+Schema+discriminator) ⇒ string - * [.readOnly()](#module_@asyncapi/parser+Schema+readOnly) ⇒ boolean - * [.writeOnly()](#module_@asyncapi/parser+Schema+writeOnly) ⇒ boolean - * [.examples()](#module_@asyncapi/parser+Schema+examples) ⇒ Array.<any> - * [.isBooleanSchema()](#module_@asyncapi/parser+Schema+isBooleanSchema) ⇒ boolean - * [.isCircular()](#module_@asyncapi/parser+Schema+isCircular) ⇒ boolean - * [.circularSchema()](#module_@asyncapi/parser+Schema+circularSchema) ⇒ Schema - * ~~[.hasCircularProps()](#module_@asyncapi/parser+Schema+hasCircularProps) ⇒ boolean~~ - * ~~[.circularProps()](#module_@asyncapi/parser+Schema+circularProps) ⇒ Array.<string>~~ - * [.hasDescription()](#module_@asyncapi/parser+Schema+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+Schema+description) ⇒ string \| null - * [.hasExternalDocs()](#module_@asyncapi/parser+Schema+hasExternalDocs) ⇒ boolean - * [.externalDocs()](#module_@asyncapi/parser+Schema+externalDocs) ⇒ ExternalDocs \| null - * [.hasExtensions()](#module_@asyncapi/parser+Schema+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+Schema+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+Schema+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+Schema+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+Schema+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+Schema+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+Schema+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+Schema+ext) ⇒ any - * [.hasDescription()](#module_@asyncapi/parser+Schema+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+Schema+description) ⇒ string \| null - * [.hasExternalDocs()](#module_@asyncapi/parser+Schema+hasExternalDocs) ⇒ boolean - * [.externalDocs()](#module_@asyncapi/parser+Schema+externalDocs) ⇒ ExternalDocs \| null - * [.hasExtensions()](#module_@asyncapi/parser+Schema+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+Schema+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+Schema+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+Schema+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+Schema+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+Schema+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+Schema+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+Schema+ext) ⇒ any - * [~parse(asyncapiYAMLorJSON, [options])](#module_@asyncapi/parser..parse) ⇒ Promise.<AsyncAPIDocument> - * [~parseFromUrl(url, [fetchOptions], [options])](#module_@asyncapi/parser..parseFromUrl) ⇒ Promise.<AsyncAPIDocument> - * [~registerSchemaParser(parserModule)](#module_@asyncapi/parser..registerSchemaParser) - * [~ParserOptions](#module_@asyncapi/parser..ParserOptions) : Object - - - -### @asyncapi/parser.ChannelParameter ⇐ Base -Implements functions to deal with a ChannelParameter object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Base -**Mixes**: [MixinDescription](#MixinDescription), [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -* [.ChannelParameter](#module_@asyncapi/parser+ChannelParameter) ⇐ Base - * [.location()](#module_@asyncapi/parser+ChannelParameter+location) ⇒ string - * [.schema()](#module_@asyncapi/parser+ChannelParameter+schema) ⇒ Schema - * [.hasDescription()](#module_@asyncapi/parser+ChannelParameter+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+ChannelParameter+description) ⇒ string \| null - * [.hasExtensions()](#module_@asyncapi/parser+ChannelParameter+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+ChannelParameter+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+ChannelParameter+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+ChannelParameter+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+ChannelParameter+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+ChannelParameter+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+ChannelParameter+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+ChannelParameter+ext) ⇒ any - - - -#### channelParameter.location() ⇒ string -**Kind**: instance method of [ChannelParameter](#module_@asyncapi/parser+ChannelParameter) - - -#### channelParameter.schema() ⇒ Schema -**Kind**: instance method of [ChannelParameter](#module_@asyncapi/parser+ChannelParameter) - - -#### channelParameter.hasDescription() ⇒ boolean -**Kind**: instance method of [ChannelParameter](#module_@asyncapi/parser+ChannelParameter) -**Mixes**: [hasDescription](#MixinDescription.hasDescription) - - -#### channelParameter.description() ⇒ string \| null -**Kind**: instance method of [ChannelParameter](#module_@asyncapi/parser+ChannelParameter) -**Mixes**: [description](#MixinDescription.description) - - -#### channelParameter.hasExtensions() ⇒ boolean -**Kind**: instance method of [ChannelParameter](#module_@asyncapi/parser+ChannelParameter) -**Mixes**: [hasExtensions](#MixinSpecificationExtensions.hasExtensions) - - -#### channelParameter.extensions() ⇒ Object.<string, any> -**Kind**: instance method of [ChannelParameter](#module_@asyncapi/parser+ChannelParameter) -**Mixes**: [extensions](#MixinSpecificationExtensions.extensions) - - -#### channelParameter.extensionKeys() ⇒ Array.<string> -**Kind**: instance method of [ChannelParameter](#module_@asyncapi/parser+ChannelParameter) -**Mixes**: [extensionKeys](#MixinSpecificationExtensions.extensionKeys) - - -#### channelParameter.extKeys() ⇒ Array.<string> -**Kind**: instance method of [ChannelParameter](#module_@asyncapi/parser+ChannelParameter) -**Mixes**: [extKeys](#MixinSpecificationExtensions.extKeys) - - -#### channelParameter.hasExtension(key) ⇒ boolean -**Kind**: instance method of [ChannelParameter](#module_@asyncapi/parser+ChannelParameter) -**Mixes**: [hasExtension](#MixinSpecificationExtensions.hasExtension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### channelParameter.extension(key) ⇒ any -**Kind**: instance method of [ChannelParameter](#module_@asyncapi/parser+ChannelParameter) -**Mixes**: [extension](#MixinSpecificationExtensions.extension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### channelParameter.hasExt(key) ⇒ boolean -**Kind**: instance method of [ChannelParameter](#module_@asyncapi/parser+ChannelParameter) -**Mixes**: [hasExt](#MixinSpecificationExtensions.hasExt) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### channelParameter.ext(key) ⇒ any -**Kind**: instance method of [ChannelParameter](#module_@asyncapi/parser+ChannelParameter) -**Mixes**: [ext](#MixinSpecificationExtensions.ext) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -### @asyncapi/parser.Channel ⇐ Base -Implements functions to deal with a Channel object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Base -**Mixes**: [MixinDescription](#MixinDescription), [MixinBindings](#MixinBindings), [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -* [.Channel](#module_@asyncapi/parser+Channel) ⇐ Base - * [.parameters()](#module_@asyncapi/parser+Channel+parameters) ⇒ Object.<string, ChannelParameter> - * [.parameter(name)](#module_@asyncapi/parser+Channel+parameter) ⇒ ChannelParameter - * [.hasParameters()](#module_@asyncapi/parser+Channel+hasParameters) ⇒ boolean - * [.hasServers()](#module_@asyncapi/parser+Channel+hasServers) ⇒ boolean - * [.servers()](#module_@asyncapi/parser+Channel+servers) ⇒ Array.<String> - * [.server(index)](#module_@asyncapi/parser+Channel+server) ⇒ String - * [.publish()](#module_@asyncapi/parser+Channel+publish) ⇒ PublishOperation - * [.subscribe()](#module_@asyncapi/parser+Channel+subscribe) ⇒ SubscribeOperation - * [.hasPublish()](#module_@asyncapi/parser+Channel+hasPublish) ⇒ boolean - * [.hasSubscribe()](#module_@asyncapi/parser+Channel+hasSubscribe) ⇒ boolean - * [.hasDescription()](#module_@asyncapi/parser+Channel+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+Channel+description) ⇒ string \| null - * [.hasBindings()](#module_@asyncapi/parser+Channel+hasBindings) ⇒ boolean - * [.bindings()](#module_@asyncapi/parser+Channel+bindings) ⇒ Object - * [.bindingProtocols()](#module_@asyncapi/parser+Channel+bindingProtocols) ⇒ Array.<string> - * [.hasBinding(name)](#module_@asyncapi/parser+Channel+hasBinding) ⇒ boolean - * [.binding(name)](#module_@asyncapi/parser+Channel+binding) ⇒ Object \| null - * [.hasExtensions()](#module_@asyncapi/parser+Channel+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+Channel+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+Channel+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+Channel+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+Channel+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+Channel+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+Channel+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+Channel+ext) ⇒ any - - - -#### channel.parameters() ⇒ Object.<string, ChannelParameter> -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) - - -#### channel.parameter(name) ⇒ ChannelParameter -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the parameter. | - - - -#### channel.hasParameters() ⇒ boolean -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) - - -#### channel.hasServers() ⇒ boolean -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) - - -#### channel.servers() ⇒ Array.<String> -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) - - -#### channel.server(index) ⇒ String -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) - -| Param | Type | Description | -| --- | --- | --- | -| index | number | Index of the server. | - - - -#### channel.publish() ⇒ PublishOperation -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) - - -#### channel.subscribe() ⇒ SubscribeOperation -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) - - -#### channel.hasPublish() ⇒ boolean -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) - - -#### channel.hasSubscribe() ⇒ boolean -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) - - -#### channel.hasDescription() ⇒ boolean -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) -**Mixes**: [hasDescription](#MixinDescription.hasDescription) - - -#### channel.description() ⇒ string \| null -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) -**Mixes**: [description](#MixinDescription.description) - - -#### channel.hasBindings() ⇒ boolean -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) -**Mixes**: [hasBindings](#MixinBindings.hasBindings) - - -#### channel.bindings() ⇒ Object -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) -**Mixes**: [bindings](#MixinBindings.bindings) - - -#### channel.bindingProtocols() ⇒ Array.<string> -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) -**Mixes**: [bindingProtocols](#MixinBindings.bindingProtocols) - - -#### channel.hasBinding(name) ⇒ boolean -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) -**Mixes**: [hasBinding](#MixinBindings.hasBinding) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the binding. | - - - -#### channel.binding(name) ⇒ Object \| null -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) -**Mixes**: [binding](#MixinBindings.binding) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the binding. | - - - -#### channel.hasExtensions() ⇒ boolean -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) -**Mixes**: [hasExtensions](#MixinSpecificationExtensions.hasExtensions) - - -#### channel.extensions() ⇒ Object.<string, any> -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) -**Mixes**: [extensions](#MixinSpecificationExtensions.extensions) - - -#### channel.extensionKeys() ⇒ Array.<string> -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) -**Mixes**: [extensionKeys](#MixinSpecificationExtensions.extensionKeys) - - -#### channel.extKeys() ⇒ Array.<string> -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) -**Mixes**: [extKeys](#MixinSpecificationExtensions.extKeys) - - -#### channel.hasExtension(key) ⇒ boolean -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) -**Mixes**: [hasExtension](#MixinSpecificationExtensions.hasExtension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### channel.extension(key) ⇒ any -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) -**Mixes**: [extension](#MixinSpecificationExtensions.extension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### channel.hasExt(key) ⇒ boolean -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) -**Mixes**: [hasExt](#MixinSpecificationExtensions.hasExt) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### channel.ext(key) ⇒ any -**Kind**: instance method of [Channel](#module_@asyncapi/parser+Channel) -**Mixes**: [ext](#MixinSpecificationExtensions.ext) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -### @asyncapi/parser.Components ⇐ Base -Implements functions to deal with a Components object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Base -**Mixes**: [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -* [.Components](#module_@asyncapi/parser+Components) ⇐ Base - * [.channels()](#module_@asyncapi/parser+Components+channels) ⇒ Object.<string, Channel> - * [.hasChannels()](#module_@asyncapi/parser+Components+hasChannels) ⇒ boolean - * [.channel(name)](#module_@asyncapi/parser+Components+channel) ⇒ Channel - * [.messages()](#module_@asyncapi/parser+Components+messages) ⇒ Object.<string, Message> - * [.hasMessages()](#module_@asyncapi/parser+Components+hasMessages) ⇒ boolean - * [.message(name)](#module_@asyncapi/parser+Components+message) ⇒ Message - * [.schemas()](#module_@asyncapi/parser+Components+schemas) ⇒ Object.<string, Schema> - * [.hasSchemas()](#module_@asyncapi/parser+Components+hasSchemas) ⇒ boolean - * [.schema(name)](#module_@asyncapi/parser+Components+schema) ⇒ Schema - * [.securitySchemes()](#module_@asyncapi/parser+Components+securitySchemes) ⇒ Object.<string, SecurityScheme> - * [.hasSecuritySchemes()](#module_@asyncapi/parser+Components+hasSecuritySchemes) ⇒ boolean - * [.securityScheme(name)](#module_@asyncapi/parser+Components+securityScheme) ⇒ SecurityScheme - * [.servers()](#module_@asyncapi/parser+Components+servers) ⇒ Object.<string, Server> - * [.hasServers()](#module_@asyncapi/parser+Components+hasServers) ⇒ boolean - * [.server(name)](#module_@asyncapi/parser+Components+server) ⇒ Server - * [.parameters()](#module_@asyncapi/parser+Components+parameters) ⇒ Object.<string, ChannelParameter> - * [.hasParameters()](#module_@asyncapi/parser+Components+hasParameters) ⇒ boolean - * [.parameter(name)](#module_@asyncapi/parser+Components+parameter) ⇒ ChannelParameter - * [.correlationIds()](#module_@asyncapi/parser+Components+correlationIds) ⇒ Object.<string, CorrelationId> - * [.hasCorrelationIds()](#module_@asyncapi/parser+Components+hasCorrelationIds) ⇒ boolean - * [.correlationId(name)](#module_@asyncapi/parser+Components+correlationId) ⇒ CorrelationId - * [.operationTraits()](#module_@asyncapi/parser+Components+operationTraits) ⇒ Object.<string, OperationTrait> - * [.hasOperationTraits()](#module_@asyncapi/parser+Components+hasOperationTraits) ⇒ boolean - * [.operationTrait(name)](#module_@asyncapi/parser+Components+operationTrait) ⇒ OperationTrait - * [.messageTraits()](#module_@asyncapi/parser+Components+messageTraits) ⇒ Object.<string, MessageTrait> - * [.hasMessageTraits()](#module_@asyncapi/parser+Components+hasMessageTraits) ⇒ boolean - * [.messageTrait(name)](#module_@asyncapi/parser+Components+messageTrait) ⇒ MessageTrait - * [.hasExtensions()](#module_@asyncapi/parser+Components+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+Components+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+Components+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+Components+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+Components+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+Components+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+Components+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+Components+ext) ⇒ any - - - -#### components.channels() ⇒ Object.<string, Channel> -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - - -#### components.hasChannels() ⇒ boolean -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - - -#### components.channel(name) ⇒ Channel -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the channel. | - - - -#### components.messages() ⇒ Object.<string, Message> -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - - -#### components.hasMessages() ⇒ boolean -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - - -#### components.message(name) ⇒ Message -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the message. | - - - -#### components.schemas() ⇒ Object.<string, Schema> -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - - -#### components.hasSchemas() ⇒ boolean -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - - -#### components.schema(name) ⇒ Schema -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the schema. | - - - -#### components.securitySchemes() ⇒ Object.<string, SecurityScheme> -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - - -#### components.hasSecuritySchemes() ⇒ boolean -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - - -#### components.securityScheme(name) ⇒ SecurityScheme -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the security schema. | - - - -#### components.servers() ⇒ Object.<string, Server> -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - - -#### components.hasServers() ⇒ boolean -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - - -#### components.server(name) ⇒ Server -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the server. | - - - -#### components.parameters() ⇒ Object.<string, ChannelParameter> -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - - -#### components.hasParameters() ⇒ boolean -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - - -#### components.parameter(name) ⇒ ChannelParameter -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the channel parameter. | - - - -#### components.correlationIds() ⇒ Object.<string, CorrelationId> -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - - -#### components.hasCorrelationIds() ⇒ boolean -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - - -#### components.correlationId(name) ⇒ CorrelationId -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the correlationId. | - - - -#### components.operationTraits() ⇒ Object.<string, OperationTrait> -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - - -#### components.hasOperationTraits() ⇒ boolean -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - - -#### components.operationTrait(name) ⇒ OperationTrait -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the operation trait. | - - - -#### components.messageTraits() ⇒ Object.<string, MessageTrait> -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - - -#### components.hasMessageTraits() ⇒ boolean -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - - -#### components.messageTrait(name) ⇒ MessageTrait -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the message trait. | - - - -#### components.hasExtensions() ⇒ boolean -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) -**Mixes**: [hasExtensions](#MixinSpecificationExtensions.hasExtensions) - - -#### components.extensions() ⇒ Object.<string, any> -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) -**Mixes**: [extensions](#MixinSpecificationExtensions.extensions) - - -#### components.extensionKeys() ⇒ Array.<string> -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) -**Mixes**: [extensionKeys](#MixinSpecificationExtensions.extensionKeys) - - -#### components.extKeys() ⇒ Array.<string> -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) -**Mixes**: [extKeys](#MixinSpecificationExtensions.extKeys) - - -#### components.hasExtension(key) ⇒ boolean -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) -**Mixes**: [hasExtension](#MixinSpecificationExtensions.hasExtension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### components.extension(key) ⇒ any -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) -**Mixes**: [extension](#MixinSpecificationExtensions.extension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### components.hasExt(key) ⇒ boolean -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) -**Mixes**: [hasExt](#MixinSpecificationExtensions.hasExt) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### components.ext(key) ⇒ any -**Kind**: instance method of [Components](#module_@asyncapi/parser+Components) -**Mixes**: [ext](#MixinSpecificationExtensions.ext) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -### @asyncapi/parser.Contact ⇐ Base -Implements functions to deal with the Contact object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Base -**Mixes**: [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -* [.Contact](#module_@asyncapi/parser+Contact) ⇐ Base - * [.name()](#module_@asyncapi/parser+Contact+name) ⇒ string - * [.url()](#module_@asyncapi/parser+Contact+url) ⇒ string - * [.email()](#module_@asyncapi/parser+Contact+email) ⇒ string - * [.hasExtensions()](#module_@asyncapi/parser+Contact+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+Contact+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+Contact+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+Contact+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+Contact+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+Contact+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+Contact+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+Contact+ext) ⇒ any - - - -#### contact.name() ⇒ string -**Kind**: instance method of [Contact](#module_@asyncapi/parser+Contact) - - -#### contact.url() ⇒ string -**Kind**: instance method of [Contact](#module_@asyncapi/parser+Contact) - - -#### contact.email() ⇒ string -**Kind**: instance method of [Contact](#module_@asyncapi/parser+Contact) - - -#### contact.hasExtensions() ⇒ boolean -**Kind**: instance method of [Contact](#module_@asyncapi/parser+Contact) -**Mixes**: [hasExtensions](#MixinSpecificationExtensions.hasExtensions) - - -#### contact.extensions() ⇒ Object.<string, any> -**Kind**: instance method of [Contact](#module_@asyncapi/parser+Contact) -**Mixes**: [extensions](#MixinSpecificationExtensions.extensions) - - -#### contact.extensionKeys() ⇒ Array.<string> -**Kind**: instance method of [Contact](#module_@asyncapi/parser+Contact) -**Mixes**: [extensionKeys](#MixinSpecificationExtensions.extensionKeys) - - -#### contact.extKeys() ⇒ Array.<string> -**Kind**: instance method of [Contact](#module_@asyncapi/parser+Contact) -**Mixes**: [extKeys](#MixinSpecificationExtensions.extKeys) - - -#### contact.hasExtension(key) ⇒ boolean -**Kind**: instance method of [Contact](#module_@asyncapi/parser+Contact) -**Mixes**: [hasExtension](#MixinSpecificationExtensions.hasExtension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### contact.extension(key) ⇒ any -**Kind**: instance method of [Contact](#module_@asyncapi/parser+Contact) -**Mixes**: [extension](#MixinSpecificationExtensions.extension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### contact.hasExt(key) ⇒ boolean -**Kind**: instance method of [Contact](#module_@asyncapi/parser+Contact) -**Mixes**: [hasExt](#MixinSpecificationExtensions.hasExt) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### contact.ext(key) ⇒ any -**Kind**: instance method of [Contact](#module_@asyncapi/parser+Contact) -**Mixes**: [ext](#MixinSpecificationExtensions.ext) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -### @asyncapi/parser.CorrelationId ⇐ Base -Implements functions to deal with a CorrelationId object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Base -**Mixes**: [MixinDescription](#MixinDescription), [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -* [.CorrelationId](#module_@asyncapi/parser+CorrelationId) ⇐ Base - * [.location()](#module_@asyncapi/parser+CorrelationId+location) ⇒ string - * [.hasDescription()](#module_@asyncapi/parser+CorrelationId+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+CorrelationId+description) ⇒ string \| null - * [.hasExtensions()](#module_@asyncapi/parser+CorrelationId+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+CorrelationId+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+CorrelationId+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+CorrelationId+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+CorrelationId+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+CorrelationId+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+CorrelationId+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+CorrelationId+ext) ⇒ any - - - -#### correlationId.location() ⇒ string -**Kind**: instance method of [CorrelationId](#module_@asyncapi/parser+CorrelationId) - - -#### correlationId.hasDescription() ⇒ boolean -**Kind**: instance method of [CorrelationId](#module_@asyncapi/parser+CorrelationId) -**Mixes**: [hasDescription](#MixinDescription.hasDescription) - - -#### correlationId.description() ⇒ string \| null -**Kind**: instance method of [CorrelationId](#module_@asyncapi/parser+CorrelationId) -**Mixes**: [description](#MixinDescription.description) - - -#### correlationId.hasExtensions() ⇒ boolean -**Kind**: instance method of [CorrelationId](#module_@asyncapi/parser+CorrelationId) -**Mixes**: [hasExtensions](#MixinSpecificationExtensions.hasExtensions) - - -#### correlationId.extensions() ⇒ Object.<string, any> -**Kind**: instance method of [CorrelationId](#module_@asyncapi/parser+CorrelationId) -**Mixes**: [extensions](#MixinSpecificationExtensions.extensions) - - -#### correlationId.extensionKeys() ⇒ Array.<string> -**Kind**: instance method of [CorrelationId](#module_@asyncapi/parser+CorrelationId) -**Mixes**: [extensionKeys](#MixinSpecificationExtensions.extensionKeys) - - -#### correlationId.extKeys() ⇒ Array.<string> -**Kind**: instance method of [CorrelationId](#module_@asyncapi/parser+CorrelationId) -**Mixes**: [extKeys](#MixinSpecificationExtensions.extKeys) - - -#### correlationId.hasExtension(key) ⇒ boolean -**Kind**: instance method of [CorrelationId](#module_@asyncapi/parser+CorrelationId) -**Mixes**: [hasExtension](#MixinSpecificationExtensions.hasExtension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### correlationId.extension(key) ⇒ any -**Kind**: instance method of [CorrelationId](#module_@asyncapi/parser+CorrelationId) -**Mixes**: [extension](#MixinSpecificationExtensions.extension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### correlationId.hasExt(key) ⇒ boolean -**Kind**: instance method of [CorrelationId](#module_@asyncapi/parser+CorrelationId) -**Mixes**: [hasExt](#MixinSpecificationExtensions.hasExt) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### correlationId.ext(key) ⇒ any -**Kind**: instance method of [CorrelationId](#module_@asyncapi/parser+CorrelationId) -**Mixes**: [ext](#MixinSpecificationExtensions.ext) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -### @asyncapi/parser.ExternalDocs ⇐ Base -Implements functions to deal with an ExternalDocs object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Base -**Mixes**: [MixinDescription](#MixinDescription), [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -* [.ExternalDocs](#module_@asyncapi/parser+ExternalDocs) ⇐ Base - * [.url()](#module_@asyncapi/parser+ExternalDocs+url) ⇒ string - * [.hasDescription()](#module_@asyncapi/parser+ExternalDocs+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+ExternalDocs+description) ⇒ string \| null - * [.hasExtensions()](#module_@asyncapi/parser+ExternalDocs+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+ExternalDocs+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+ExternalDocs+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+ExternalDocs+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+ExternalDocs+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+ExternalDocs+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+ExternalDocs+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+ExternalDocs+ext) ⇒ any - - - -#### externalDocs.url() ⇒ string -**Kind**: instance method of [ExternalDocs](#module_@asyncapi/parser+ExternalDocs) - - -#### externalDocs.hasDescription() ⇒ boolean -**Kind**: instance method of [ExternalDocs](#module_@asyncapi/parser+ExternalDocs) -**Mixes**: [hasDescription](#MixinDescription.hasDescription) - - -#### externalDocs.description() ⇒ string \| null -**Kind**: instance method of [ExternalDocs](#module_@asyncapi/parser+ExternalDocs) -**Mixes**: [description](#MixinDescription.description) - - -#### externalDocs.hasExtensions() ⇒ boolean -**Kind**: instance method of [ExternalDocs](#module_@asyncapi/parser+ExternalDocs) -**Mixes**: [hasExtensions](#MixinSpecificationExtensions.hasExtensions) - - -#### externalDocs.extensions() ⇒ Object.<string, any> -**Kind**: instance method of [ExternalDocs](#module_@asyncapi/parser+ExternalDocs) -**Mixes**: [extensions](#MixinSpecificationExtensions.extensions) - - -#### externalDocs.extensionKeys() ⇒ Array.<string> -**Kind**: instance method of [ExternalDocs](#module_@asyncapi/parser+ExternalDocs) -**Mixes**: [extensionKeys](#MixinSpecificationExtensions.extensionKeys) - - -#### externalDocs.extKeys() ⇒ Array.<string> -**Kind**: instance method of [ExternalDocs](#module_@asyncapi/parser+ExternalDocs) -**Mixes**: [extKeys](#MixinSpecificationExtensions.extKeys) - - -#### externalDocs.hasExtension(key) ⇒ boolean -**Kind**: instance method of [ExternalDocs](#module_@asyncapi/parser+ExternalDocs) -**Mixes**: [hasExtension](#MixinSpecificationExtensions.hasExtension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### externalDocs.extension(key) ⇒ any -**Kind**: instance method of [ExternalDocs](#module_@asyncapi/parser+ExternalDocs) -**Mixes**: [extension](#MixinSpecificationExtensions.extension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### externalDocs.hasExt(key) ⇒ boolean -**Kind**: instance method of [ExternalDocs](#module_@asyncapi/parser+ExternalDocs) -**Mixes**: [hasExt](#MixinSpecificationExtensions.hasExt) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### externalDocs.ext(key) ⇒ any -**Kind**: instance method of [ExternalDocs](#module_@asyncapi/parser+ExternalDocs) -**Mixes**: [ext](#MixinSpecificationExtensions.ext) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -### @asyncapi/parser.Info ⇐ Base -Implements functions to deal with the Info object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Base -**Mixes**: [MixinDescription](#MixinDescription), [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -* [.Info](#module_@asyncapi/parser+Info) ⇐ Base - * [.title()](#module_@asyncapi/parser+Info+title) ⇒ string - * [.version()](#module_@asyncapi/parser+Info+version) ⇒ string - * [.termsOfService()](#module_@asyncapi/parser+Info+termsOfService) ⇒ string \| undefined - * [.license()](#module_@asyncapi/parser+Info+license) ⇒ License - * [.contact()](#module_@asyncapi/parser+Info+contact) ⇒ Contact - * [.hasDescription()](#module_@asyncapi/parser+Info+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+Info+description) ⇒ string \| null - * [.hasExtensions()](#module_@asyncapi/parser+Info+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+Info+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+Info+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+Info+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+Info+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+Info+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+Info+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+Info+ext) ⇒ any - - - -#### info.title() ⇒ string -**Kind**: instance method of [Info](#module_@asyncapi/parser+Info) - - -#### info.version() ⇒ string -**Kind**: instance method of [Info](#module_@asyncapi/parser+Info) - - -#### info.termsOfService() ⇒ string \| undefined -**Kind**: instance method of [Info](#module_@asyncapi/parser+Info) - - -#### info.license() ⇒ License -**Kind**: instance method of [Info](#module_@asyncapi/parser+Info) - - -#### info.contact() ⇒ Contact -**Kind**: instance method of [Info](#module_@asyncapi/parser+Info) - - -#### info.hasDescription() ⇒ boolean -**Kind**: instance method of [Info](#module_@asyncapi/parser+Info) -**Mixes**: [hasDescription](#MixinDescription.hasDescription) - - -#### info.description() ⇒ string \| null -**Kind**: instance method of [Info](#module_@asyncapi/parser+Info) -**Mixes**: [description](#MixinDescription.description) - - -#### info.hasExtensions() ⇒ boolean -**Kind**: instance method of [Info](#module_@asyncapi/parser+Info) -**Mixes**: [hasExtensions](#MixinSpecificationExtensions.hasExtensions) - - -#### info.extensions() ⇒ Object.<string, any> -**Kind**: instance method of [Info](#module_@asyncapi/parser+Info) -**Mixes**: [extensions](#MixinSpecificationExtensions.extensions) - - -#### info.extensionKeys() ⇒ Array.<string> -**Kind**: instance method of [Info](#module_@asyncapi/parser+Info) -**Mixes**: [extensionKeys](#MixinSpecificationExtensions.extensionKeys) - - -#### info.extKeys() ⇒ Array.<string> -**Kind**: instance method of [Info](#module_@asyncapi/parser+Info) -**Mixes**: [extKeys](#MixinSpecificationExtensions.extKeys) - - -#### info.hasExtension(key) ⇒ boolean -**Kind**: instance method of [Info](#module_@asyncapi/parser+Info) -**Mixes**: [hasExtension](#MixinSpecificationExtensions.hasExtension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### info.extension(key) ⇒ any -**Kind**: instance method of [Info](#module_@asyncapi/parser+Info) -**Mixes**: [extension](#MixinSpecificationExtensions.extension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### info.hasExt(key) ⇒ boolean -**Kind**: instance method of [Info](#module_@asyncapi/parser+Info) -**Mixes**: [hasExt](#MixinSpecificationExtensions.hasExt) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### info.ext(key) ⇒ any -**Kind**: instance method of [Info](#module_@asyncapi/parser+Info) -**Mixes**: [ext](#MixinSpecificationExtensions.ext) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -### @asyncapi/parser.License ⇐ Base -Implements functions to deal with the License object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Base -**Mixes**: [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -* [.License](#module_@asyncapi/parser+License) ⇐ Base - * [.name()](#module_@asyncapi/parser+License+name) ⇒ string - * [.url()](#module_@asyncapi/parser+License+url) ⇒ string - * [.hasExtensions()](#module_@asyncapi/parser+License+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+License+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+License+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+License+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+License+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+License+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+License+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+License+ext) ⇒ any - - - -#### license.name() ⇒ string -**Kind**: instance method of [License](#module_@asyncapi/parser+License) - - -#### license.url() ⇒ string -**Kind**: instance method of [License](#module_@asyncapi/parser+License) - - -#### license.hasExtensions() ⇒ boolean -**Kind**: instance method of [License](#module_@asyncapi/parser+License) -**Mixes**: [hasExtensions](#MixinSpecificationExtensions.hasExtensions) - - -#### license.extensions() ⇒ Object.<string, any> -**Kind**: instance method of [License](#module_@asyncapi/parser+License) -**Mixes**: [extensions](#MixinSpecificationExtensions.extensions) - - -#### license.extensionKeys() ⇒ Array.<string> -**Kind**: instance method of [License](#module_@asyncapi/parser+License) -**Mixes**: [extensionKeys](#MixinSpecificationExtensions.extensionKeys) - - -#### license.extKeys() ⇒ Array.<string> -**Kind**: instance method of [License](#module_@asyncapi/parser+License) -**Mixes**: [extKeys](#MixinSpecificationExtensions.extKeys) - - -#### license.hasExtension(key) ⇒ boolean -**Kind**: instance method of [License](#module_@asyncapi/parser+License) -**Mixes**: [hasExtension](#MixinSpecificationExtensions.hasExtension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### license.extension(key) ⇒ any -**Kind**: instance method of [License](#module_@asyncapi/parser+License) -**Mixes**: [extension](#MixinSpecificationExtensions.extension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### license.hasExt(key) ⇒ boolean -**Kind**: instance method of [License](#module_@asyncapi/parser+License) -**Mixes**: [hasExt](#MixinSpecificationExtensions.hasExt) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### license.ext(key) ⇒ any -**Kind**: instance method of [License](#module_@asyncapi/parser+License) -**Mixes**: [ext](#MixinSpecificationExtensions.ext) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -### @asyncapi/parser.MessageTrait ⇐ MessageTraitable -Implements functions to deal with a MessageTrait object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: MessageTraitable - - -### @asyncapi/parser.MessageTraitable ⇐ Base -Implements functions to deal with a the common properties that Message and MessageTrait objects have. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Base -**Mixes**: [MixinDescription](#MixinDescription), [MixinTags](#MixinTags), [MixinExternalDocs](#MixinExternalDocs), [MixinBindings](#MixinBindings), [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -* [.MessageTraitable](#module_@asyncapi/parser+MessageTraitable) ⇐ Base - * [.headers()](#module_@asyncapi/parser+MessageTraitable+headers) ⇒ Schema - * [.header(name)](#module_@asyncapi/parser+MessageTraitable+header) ⇒ Schema - * [.correlationId()](#module_@asyncapi/parser+MessageTraitable+correlationId) ⇒ CorrelationId - * [.schemaFormat()](#module_@asyncapi/parser+MessageTraitable+schemaFormat) ⇒ string - * [.contentType()](#module_@asyncapi/parser+MessageTraitable+contentType) ⇒ string - * [.name()](#module_@asyncapi/parser+MessageTraitable+name) ⇒ string - * [.title()](#module_@asyncapi/parser+MessageTraitable+title) ⇒ string - * [.summary()](#module_@asyncapi/parser+MessageTraitable+summary) ⇒ string - * [.examples()](#module_@asyncapi/parser+MessageTraitable+examples) ⇒ Array.<any> - * [.hasDescription()](#module_@asyncapi/parser+MessageTraitable+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+MessageTraitable+description) ⇒ string \| null - * [.hasTags()](#module_@asyncapi/parser+MessageTraitable+hasTags) ⇒ boolean - * [.tags()](#module_@asyncapi/parser+MessageTraitable+tags) ⇒ Array.<Tag> - * [.tagNames()](#module_@asyncapi/parser+MessageTraitable+tagNames) ⇒ Array.<string> - * [.hasTag(name)](#module_@asyncapi/parser+MessageTraitable+hasTag) ⇒ boolean - * [.tag(name)](#module_@asyncapi/parser+MessageTraitable+tag) ⇒ Tag \| null - * [.hasExternalDocs()](#module_@asyncapi/parser+MessageTraitable+hasExternalDocs) ⇒ boolean - * [.externalDocs()](#module_@asyncapi/parser+MessageTraitable+externalDocs) ⇒ ExternalDocs \| null - * [.hasBindings()](#module_@asyncapi/parser+MessageTraitable+hasBindings) ⇒ boolean - * [.bindings()](#module_@asyncapi/parser+MessageTraitable+bindings) ⇒ Object - * [.bindingProtocols()](#module_@asyncapi/parser+MessageTraitable+bindingProtocols) ⇒ Array.<string> - * [.hasBinding(name)](#module_@asyncapi/parser+MessageTraitable+hasBinding) ⇒ boolean - * [.binding(name)](#module_@asyncapi/parser+MessageTraitable+binding) ⇒ Object \| null - * [.hasExtensions()](#module_@asyncapi/parser+MessageTraitable+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+MessageTraitable+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+MessageTraitable+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+MessageTraitable+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+MessageTraitable+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+MessageTraitable+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+MessageTraitable+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+MessageTraitable+ext) ⇒ any - - - -#### messageTraitable.headers() ⇒ Schema -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) - - -#### messageTraitable.header(name) ⇒ Schema -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the header. | - - - -#### messageTraitable.correlationId() ⇒ CorrelationId -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) - - -#### messageTraitable.schemaFormat() ⇒ string -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) - - -#### messageTraitable.contentType() ⇒ string -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) - - -#### messageTraitable.name() ⇒ string -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) - - -#### messageTraitable.title() ⇒ string -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) - - -#### messageTraitable.summary() ⇒ string -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) - - -#### messageTraitable.examples() ⇒ Array.<any> -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) - - -#### messageTraitable.hasDescription() ⇒ boolean -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [hasDescription](#MixinDescription.hasDescription) - - -#### messageTraitable.description() ⇒ string \| null -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [description](#MixinDescription.description) - - -#### messageTraitable.hasTags() ⇒ boolean -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [hasTags](#MixinTags.hasTags) - - -#### messageTraitable.tags() ⇒ Array.<Tag> -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [tags](#MixinTags.tags) - - -#### messageTraitable.tagNames() ⇒ Array.<string> -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [tagNames](#MixinTags.tagNames) - - -#### messageTraitable.hasTag(name) ⇒ boolean -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [hasTag](#MixinTags.hasTag) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the tag. | - - - -#### messageTraitable.tag(name) ⇒ Tag \| null -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [tag](#MixinTags.tag) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the tag. | - - - -#### messageTraitable.hasExternalDocs() ⇒ boolean -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [hasExternalDocs](#MixinExternalDocs.hasExternalDocs) - - -#### messageTraitable.externalDocs() ⇒ ExternalDocs \| null -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [externalDocs](#MixinExternalDocs.externalDocs) - - -#### messageTraitable.hasBindings() ⇒ boolean -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [hasBindings](#MixinBindings.hasBindings) - - -#### messageTraitable.bindings() ⇒ Object -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [bindings](#MixinBindings.bindings) - - -#### messageTraitable.bindingProtocols() ⇒ Array.<string> -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [bindingProtocols](#MixinBindings.bindingProtocols) - - -#### messageTraitable.hasBinding(name) ⇒ boolean -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [hasBinding](#MixinBindings.hasBinding) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the binding. | - - - -#### messageTraitable.binding(name) ⇒ Object \| null -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [binding](#MixinBindings.binding) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the binding. | - - - -#### messageTraitable.hasExtensions() ⇒ boolean -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [hasExtensions](#MixinSpecificationExtensions.hasExtensions) - - -#### messageTraitable.extensions() ⇒ Object.<string, any> -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [extensions](#MixinSpecificationExtensions.extensions) - - -#### messageTraitable.extensionKeys() ⇒ Array.<string> -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [extensionKeys](#MixinSpecificationExtensions.extensionKeys) - - -#### messageTraitable.extKeys() ⇒ Array.<string> -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [extKeys](#MixinSpecificationExtensions.extKeys) - - -#### messageTraitable.hasExtension(key) ⇒ boolean -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [hasExtension](#MixinSpecificationExtensions.hasExtension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### messageTraitable.extension(key) ⇒ any -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [extension](#MixinSpecificationExtensions.extension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### messageTraitable.hasExt(key) ⇒ boolean -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [hasExt](#MixinSpecificationExtensions.hasExt) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### messageTraitable.ext(key) ⇒ any -**Kind**: instance method of [MessageTraitable](#module_@asyncapi/parser+MessageTraitable) -**Mixes**: [ext](#MixinSpecificationExtensions.ext) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -### @asyncapi/parser.Message ⇐ MessageTraitable -Implements functions to deal with a Message object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: MessageTraitable - -* [.Message](#module_@asyncapi/parser+Message) ⇐ MessageTraitable - * [.uid()](#module_@asyncapi/parser+Message+uid) ⇒ string - * [.payload()](#module_@asyncapi/parser+Message+payload) ⇒ Schema - * [.traits()](#module_@asyncapi/parser+Message+traits) ⇒ Array.<MessageTrait> - * [.hasTraits()](#module_@asyncapi/parser+Message+hasTraits) ⇒ boolean - * [.originalPayload()](#module_@asyncapi/parser+Message+originalPayload) ⇒ any - * [.originalSchemaFormat()](#module_@asyncapi/parser+Message+originalSchemaFormat) ⇒ string - - - -#### message.uid() ⇒ string -**Kind**: instance method of [Message](#module_@asyncapi/parser+Message) - - -#### message.payload() ⇒ Schema -**Kind**: instance method of [Message](#module_@asyncapi/parser+Message) - - -#### message.traits() ⇒ Array.<MessageTrait> -**Kind**: instance method of [Message](#module_@asyncapi/parser+Message) - - -#### message.hasTraits() ⇒ boolean -**Kind**: instance method of [Message](#module_@asyncapi/parser+Message) - - -#### message.originalPayload() ⇒ any -**Kind**: instance method of [Message](#module_@asyncapi/parser+Message) - - -#### message.originalSchemaFormat() ⇒ string -**Kind**: instance method of [Message](#module_@asyncapi/parser+Message) - - -### @asyncapi/parser.OAuthFlow ⇐ Base -Implements functions to deal with a OAuthFlow object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Base -**Mixes**: [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -* [.OAuthFlow](#module_@asyncapi/parser+OAuthFlow) ⇐ Base - * [.authorizationUrl()](#module_@asyncapi/parser+OAuthFlow+authorizationUrl) ⇒ string - * [.tokenUrl()](#module_@asyncapi/parser+OAuthFlow+tokenUrl) ⇒ string - * [.refreshUrl()](#module_@asyncapi/parser+OAuthFlow+refreshUrl) ⇒ string - * [.scopes()](#module_@asyncapi/parser+OAuthFlow+scopes) ⇒ Object.<string, string> - * [.hasExtensions()](#module_@asyncapi/parser+OAuthFlow+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+OAuthFlow+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+OAuthFlow+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+OAuthFlow+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+OAuthFlow+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+OAuthFlow+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+OAuthFlow+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+OAuthFlow+ext) ⇒ any - - - -#### oAuthFlow.authorizationUrl() ⇒ string -**Kind**: instance method of [OAuthFlow](#module_@asyncapi/parser+OAuthFlow) - - -#### oAuthFlow.tokenUrl() ⇒ string -**Kind**: instance method of [OAuthFlow](#module_@asyncapi/parser+OAuthFlow) - - -#### oAuthFlow.refreshUrl() ⇒ string -**Kind**: instance method of [OAuthFlow](#module_@asyncapi/parser+OAuthFlow) - - -#### oAuthFlow.scopes() ⇒ Object.<string, string> -**Kind**: instance method of [OAuthFlow](#module_@asyncapi/parser+OAuthFlow) - - -#### oAuthFlow.hasExtensions() ⇒ boolean -**Kind**: instance method of [OAuthFlow](#module_@asyncapi/parser+OAuthFlow) -**Mixes**: [hasExtensions](#MixinSpecificationExtensions.hasExtensions) - - -#### oAuthFlow.extensions() ⇒ Object.<string, any> -**Kind**: instance method of [OAuthFlow](#module_@asyncapi/parser+OAuthFlow) -**Mixes**: [extensions](#MixinSpecificationExtensions.extensions) - - -#### oAuthFlow.extensionKeys() ⇒ Array.<string> -**Kind**: instance method of [OAuthFlow](#module_@asyncapi/parser+OAuthFlow) -**Mixes**: [extensionKeys](#MixinSpecificationExtensions.extensionKeys) - - -#### oAuthFlow.extKeys() ⇒ Array.<string> -**Kind**: instance method of [OAuthFlow](#module_@asyncapi/parser+OAuthFlow) -**Mixes**: [extKeys](#MixinSpecificationExtensions.extKeys) - - -#### oAuthFlow.hasExtension(key) ⇒ boolean -**Kind**: instance method of [OAuthFlow](#module_@asyncapi/parser+OAuthFlow) -**Mixes**: [hasExtension](#MixinSpecificationExtensions.hasExtension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### oAuthFlow.extension(key) ⇒ any -**Kind**: instance method of [OAuthFlow](#module_@asyncapi/parser+OAuthFlow) -**Mixes**: [extension](#MixinSpecificationExtensions.extension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### oAuthFlow.hasExt(key) ⇒ boolean -**Kind**: instance method of [OAuthFlow](#module_@asyncapi/parser+OAuthFlow) -**Mixes**: [hasExt](#MixinSpecificationExtensions.hasExt) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### oAuthFlow.ext(key) ⇒ any -**Kind**: instance method of [OAuthFlow](#module_@asyncapi/parser+OAuthFlow) -**Mixes**: [ext](#MixinSpecificationExtensions.ext) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -### @asyncapi/parser.OperationTrait ⇐ OperationTraitable -Implements functions to deal with a OperationTrait object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: OperationTraitable - - -### @asyncapi/parser.OperationTraitable ⇐ Base -Implements functions to deal with the common properties Operation and OperationTrait object have. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Base -**Mixes**: [MixinDescription](#MixinDescription), [MixinTags](#MixinTags), [MixinExternalDocs](#MixinExternalDocs), [MixinBindings](#MixinBindings), [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -* [.OperationTraitable](#module_@asyncapi/parser+OperationTraitable) ⇐ Base - * [.id()](#module_@asyncapi/parser+OperationTraitable+id) ⇒ string - * [.summary()](#module_@asyncapi/parser+OperationTraitable+summary) ⇒ string - * [.hasDescription()](#module_@asyncapi/parser+OperationTraitable+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+OperationTraitable+description) ⇒ string \| null - * [.hasTags()](#module_@asyncapi/parser+OperationTraitable+hasTags) ⇒ boolean - * [.tags()](#module_@asyncapi/parser+OperationTraitable+tags) ⇒ Array.<Tag> - * [.tagNames()](#module_@asyncapi/parser+OperationTraitable+tagNames) ⇒ Array.<string> - * [.hasTag(name)](#module_@asyncapi/parser+OperationTraitable+hasTag) ⇒ boolean - * [.tag(name)](#module_@asyncapi/parser+OperationTraitable+tag) ⇒ Tag \| null - * [.hasExternalDocs()](#module_@asyncapi/parser+OperationTraitable+hasExternalDocs) ⇒ boolean - * [.externalDocs()](#module_@asyncapi/parser+OperationTraitable+externalDocs) ⇒ ExternalDocs \| null - * [.hasBindings()](#module_@asyncapi/parser+OperationTraitable+hasBindings) ⇒ boolean - * [.bindings()](#module_@asyncapi/parser+OperationTraitable+bindings) ⇒ Object - * [.bindingProtocols()](#module_@asyncapi/parser+OperationTraitable+bindingProtocols) ⇒ Array.<string> - * [.hasBinding(name)](#module_@asyncapi/parser+OperationTraitable+hasBinding) ⇒ boolean - * [.binding(name)](#module_@asyncapi/parser+OperationTraitable+binding) ⇒ Object \| null - * [.hasExtensions()](#module_@asyncapi/parser+OperationTraitable+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+OperationTraitable+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+OperationTraitable+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+OperationTraitable+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+OperationTraitable+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+OperationTraitable+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+OperationTraitable+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+OperationTraitable+ext) ⇒ any - - - -#### operationTraitable.id() ⇒ string -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) - - -#### operationTraitable.summary() ⇒ string -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) - - -#### operationTraitable.hasDescription() ⇒ boolean -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [hasDescription](#MixinDescription.hasDescription) - - -#### operationTraitable.description() ⇒ string \| null -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [description](#MixinDescription.description) - - -#### operationTraitable.hasTags() ⇒ boolean -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [hasTags](#MixinTags.hasTags) - - -#### operationTraitable.tags() ⇒ Array.<Tag> -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [tags](#MixinTags.tags) - - -#### operationTraitable.tagNames() ⇒ Array.<string> -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [tagNames](#MixinTags.tagNames) - - -#### operationTraitable.hasTag(name) ⇒ boolean -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [hasTag](#MixinTags.hasTag) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the tag. | - - - -#### operationTraitable.tag(name) ⇒ Tag \| null -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [tag](#MixinTags.tag) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the tag. | - - - -#### operationTraitable.hasExternalDocs() ⇒ boolean -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [hasExternalDocs](#MixinExternalDocs.hasExternalDocs) - - -#### operationTraitable.externalDocs() ⇒ ExternalDocs \| null -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [externalDocs](#MixinExternalDocs.externalDocs) - - -#### operationTraitable.hasBindings() ⇒ boolean -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [hasBindings](#MixinBindings.hasBindings) - - -#### operationTraitable.bindings() ⇒ Object -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [bindings](#MixinBindings.bindings) - - -#### operationTraitable.bindingProtocols() ⇒ Array.<string> -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [bindingProtocols](#MixinBindings.bindingProtocols) - - -#### operationTraitable.hasBinding(name) ⇒ boolean -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [hasBinding](#MixinBindings.hasBinding) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the binding. | - - - -#### operationTraitable.binding(name) ⇒ Object \| null -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [binding](#MixinBindings.binding) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the binding. | - - - -#### operationTraitable.hasExtensions() ⇒ boolean -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [hasExtensions](#MixinSpecificationExtensions.hasExtensions) - - -#### operationTraitable.extensions() ⇒ Object.<string, any> -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [extensions](#MixinSpecificationExtensions.extensions) - - -#### operationTraitable.extensionKeys() ⇒ Array.<string> -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [extensionKeys](#MixinSpecificationExtensions.extensionKeys) - - -#### operationTraitable.extKeys() ⇒ Array.<string> -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [extKeys](#MixinSpecificationExtensions.extKeys) - - -#### operationTraitable.hasExtension(key) ⇒ boolean -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [hasExtension](#MixinSpecificationExtensions.hasExtension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### operationTraitable.extension(key) ⇒ any -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [extension](#MixinSpecificationExtensions.extension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### operationTraitable.hasExt(key) ⇒ boolean -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [hasExt](#MixinSpecificationExtensions.hasExt) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### operationTraitable.ext(key) ⇒ any -**Kind**: instance method of [OperationTraitable](#module_@asyncapi/parser+OperationTraitable) -**Mixes**: [ext](#MixinSpecificationExtensions.ext) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -### @asyncapi/parser.Operation ⇐ OperationTraitable -Implements functions to deal with an Operation object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: OperationTraitable - -* [.Operation](#module_@asyncapi/parser+Operation) ⇐ OperationTraitable - * [.hasMultipleMessages()](#module_@asyncapi/parser+Operation+hasMultipleMessages) ⇒ boolean - * [.traits()](#module_@asyncapi/parser+Operation+traits) ⇒ Array.<OperationTrait> - * [.hasTraits()](#module_@asyncapi/parser+Operation+hasTraits) ⇒ boolean - * [.messages()](#module_@asyncapi/parser+Operation+messages) ⇒ Array.<Message> - * [.message()](#module_@asyncapi/parser+Operation+message) ⇒ Message - - - -#### operation.hasMultipleMessages() ⇒ boolean -**Kind**: instance method of [Operation](#module_@asyncapi/parser+Operation) - - -#### operation.traits() ⇒ Array.<OperationTrait> -**Kind**: instance method of [Operation](#module_@asyncapi/parser+Operation) - - -#### operation.hasTraits() ⇒ boolean -**Kind**: instance method of [Operation](#module_@asyncapi/parser+Operation) - - -#### operation.messages() ⇒ Array.<Message> -**Kind**: instance method of [Operation](#module_@asyncapi/parser+Operation) - - -#### operation.message() ⇒ Message -**Kind**: instance method of [Operation](#module_@asyncapi/parser+Operation) - - -### @asyncapi/parser.PublishOperation ⇐ Operation -Implements functions to deal with a PublishOperation object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Operation - -* [.PublishOperation](#module_@asyncapi/parser+PublishOperation) ⇐ Operation - * [.isPublish()](#module_@asyncapi/parser+PublishOperation+isPublish) ⇒ boolean - * [.isSubscribe()](#module_@asyncapi/parser+PublishOperation+isSubscribe) ⇒ boolean - * [.kind()](#module_@asyncapi/parser+PublishOperation+kind) ⇒ string - - - -#### publishOperation.isPublish() ⇒ boolean -**Kind**: instance method of [PublishOperation](#module_@asyncapi/parser+PublishOperation) - - -#### publishOperation.isSubscribe() ⇒ boolean -**Kind**: instance method of [PublishOperation](#module_@asyncapi/parser+PublishOperation) - - -#### publishOperation.kind() ⇒ string -**Kind**: instance method of [PublishOperation](#module_@asyncapi/parser+PublishOperation) - - -### @asyncapi/parser.SecurityScheme ⇐ Base -Implements functions to deal with a SecurityScheme object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Base -**Mixes**: [MixinDescription](#MixinDescription), [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -* [.SecurityScheme](#module_@asyncapi/parser+SecurityScheme) ⇐ Base - * [.type()](#module_@asyncapi/parser+SecurityScheme+type) ⇒ string - * [.name()](#module_@asyncapi/parser+SecurityScheme+name) ⇒ string - * [.in()](#module_@asyncapi/parser+SecurityScheme+in) ⇒ string - * [.scheme()](#module_@asyncapi/parser+SecurityScheme+scheme) ⇒ string - * [.bearerFormat()](#module_@asyncapi/parser+SecurityScheme+bearerFormat) ⇒ string - * [.openIdConnectUrl()](#module_@asyncapi/parser+SecurityScheme+openIdConnectUrl) ⇒ string - * [.flows()](#module_@asyncapi/parser+SecurityScheme+flows) ⇒ Object.<string, OAuthFlow> - * [.hasDescription()](#module_@asyncapi/parser+SecurityScheme+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+SecurityScheme+description) ⇒ string \| null - * [.hasExtensions()](#module_@asyncapi/parser+SecurityScheme+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+SecurityScheme+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+SecurityScheme+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+SecurityScheme+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+SecurityScheme+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+SecurityScheme+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+SecurityScheme+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+SecurityScheme+ext) ⇒ any - - - -#### securityScheme.type() ⇒ string -**Kind**: instance method of [SecurityScheme](#module_@asyncapi/parser+SecurityScheme) - - -#### securityScheme.name() ⇒ string -**Kind**: instance method of [SecurityScheme](#module_@asyncapi/parser+SecurityScheme) - - -#### securityScheme.in() ⇒ string -**Kind**: instance method of [SecurityScheme](#module_@asyncapi/parser+SecurityScheme) - - -#### securityScheme.scheme() ⇒ string -**Kind**: instance method of [SecurityScheme](#module_@asyncapi/parser+SecurityScheme) - - -#### securityScheme.bearerFormat() ⇒ string -**Kind**: instance method of [SecurityScheme](#module_@asyncapi/parser+SecurityScheme) - - -#### securityScheme.openIdConnectUrl() ⇒ string -**Kind**: instance method of [SecurityScheme](#module_@asyncapi/parser+SecurityScheme) - - -#### securityScheme.flows() ⇒ Object.<string, OAuthFlow> -**Kind**: instance method of [SecurityScheme](#module_@asyncapi/parser+SecurityScheme) - - -#### securityScheme.hasDescription() ⇒ boolean -**Kind**: instance method of [SecurityScheme](#module_@asyncapi/parser+SecurityScheme) -**Mixes**: [hasDescription](#MixinDescription.hasDescription) - - -#### securityScheme.description() ⇒ string \| null -**Kind**: instance method of [SecurityScheme](#module_@asyncapi/parser+SecurityScheme) -**Mixes**: [description](#MixinDescription.description) - - -#### securityScheme.hasExtensions() ⇒ boolean -**Kind**: instance method of [SecurityScheme](#module_@asyncapi/parser+SecurityScheme) -**Mixes**: [hasExtensions](#MixinSpecificationExtensions.hasExtensions) - - -#### securityScheme.extensions() ⇒ Object.<string, any> -**Kind**: instance method of [SecurityScheme](#module_@asyncapi/parser+SecurityScheme) -**Mixes**: [extensions](#MixinSpecificationExtensions.extensions) - - -#### securityScheme.extensionKeys() ⇒ Array.<string> -**Kind**: instance method of [SecurityScheme](#module_@asyncapi/parser+SecurityScheme) -**Mixes**: [extensionKeys](#MixinSpecificationExtensions.extensionKeys) - - -#### securityScheme.extKeys() ⇒ Array.<string> -**Kind**: instance method of [SecurityScheme](#module_@asyncapi/parser+SecurityScheme) -**Mixes**: [extKeys](#MixinSpecificationExtensions.extKeys) - - -#### securityScheme.hasExtension(key) ⇒ boolean -**Kind**: instance method of [SecurityScheme](#module_@asyncapi/parser+SecurityScheme) -**Mixes**: [hasExtension](#MixinSpecificationExtensions.hasExtension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### securityScheme.extension(key) ⇒ any -**Kind**: instance method of [SecurityScheme](#module_@asyncapi/parser+SecurityScheme) -**Mixes**: [extension](#MixinSpecificationExtensions.extension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### securityScheme.hasExt(key) ⇒ boolean -**Kind**: instance method of [SecurityScheme](#module_@asyncapi/parser+SecurityScheme) -**Mixes**: [hasExt](#MixinSpecificationExtensions.hasExt) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### securityScheme.ext(key) ⇒ any -**Kind**: instance method of [SecurityScheme](#module_@asyncapi/parser+SecurityScheme) -**Mixes**: [ext](#MixinSpecificationExtensions.ext) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -### @asyncapi/parser.ServerSecurityRequirement ⇐ Base -Implements functions to deal with a ServerSecurityRequirement object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Base - - -### @asyncapi/parser.ServerVariable ⇐ Base -Implements functions to deal with a ServerVariable object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Base -**Mixes**: [MixinDescription](#MixinDescription), [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -* [.ServerVariable](#module_@asyncapi/parser+ServerVariable) ⇐ Base - * [.allowedValues()](#module_@asyncapi/parser+ServerVariable+allowedValues) ⇒ Array.<any> - * [.allows(name)](#module_@asyncapi/parser+ServerVariable+allows) ⇒ boolean - * [.hasAllowedValues()](#module_@asyncapi/parser+ServerVariable+hasAllowedValues) ⇒ boolean - * [.defaultValue()](#module_@asyncapi/parser+ServerVariable+defaultValue) ⇒ string - * [.hasDefaultValue()](#module_@asyncapi/parser+ServerVariable+hasDefaultValue) ⇒ boolean - * [.examples()](#module_@asyncapi/parser+ServerVariable+examples) ⇒ Array.<string> - * [.hasDescription()](#module_@asyncapi/parser+ServerVariable+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+ServerVariable+description) ⇒ string \| null - * [.hasExtensions()](#module_@asyncapi/parser+ServerVariable+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+ServerVariable+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+ServerVariable+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+ServerVariable+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+ServerVariable+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+ServerVariable+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+ServerVariable+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+ServerVariable+ext) ⇒ any - - - -#### serverVariable.allowedValues() ⇒ Array.<any> -**Kind**: instance method of [ServerVariable](#module_@asyncapi/parser+ServerVariable) - - -#### serverVariable.allows(name) ⇒ boolean -**Kind**: instance method of [ServerVariable](#module_@asyncapi/parser+ServerVariable) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the variable. | - - - -#### serverVariable.hasAllowedValues() ⇒ boolean -**Kind**: instance method of [ServerVariable](#module_@asyncapi/parser+ServerVariable) - - -#### serverVariable.defaultValue() ⇒ string -**Kind**: instance method of [ServerVariable](#module_@asyncapi/parser+ServerVariable) - - -#### serverVariable.hasDefaultValue() ⇒ boolean -**Kind**: instance method of [ServerVariable](#module_@asyncapi/parser+ServerVariable) - - -#### serverVariable.examples() ⇒ Array.<string> -**Kind**: instance method of [ServerVariable](#module_@asyncapi/parser+ServerVariable) - - -#### serverVariable.hasDescription() ⇒ boolean -**Kind**: instance method of [ServerVariable](#module_@asyncapi/parser+ServerVariable) -**Mixes**: [hasDescription](#MixinDescription.hasDescription) - - -#### serverVariable.description() ⇒ string \| null -**Kind**: instance method of [ServerVariable](#module_@asyncapi/parser+ServerVariable) -**Mixes**: [description](#MixinDescription.description) - - -#### serverVariable.hasExtensions() ⇒ boolean -**Kind**: instance method of [ServerVariable](#module_@asyncapi/parser+ServerVariable) -**Mixes**: [hasExtensions](#MixinSpecificationExtensions.hasExtensions) - - -#### serverVariable.extensions() ⇒ Object.<string, any> -**Kind**: instance method of [ServerVariable](#module_@asyncapi/parser+ServerVariable) -**Mixes**: [extensions](#MixinSpecificationExtensions.extensions) - - -#### serverVariable.extensionKeys() ⇒ Array.<string> -**Kind**: instance method of [ServerVariable](#module_@asyncapi/parser+ServerVariable) -**Mixes**: [extensionKeys](#MixinSpecificationExtensions.extensionKeys) - - -#### serverVariable.extKeys() ⇒ Array.<string> -**Kind**: instance method of [ServerVariable](#module_@asyncapi/parser+ServerVariable) -**Mixes**: [extKeys](#MixinSpecificationExtensions.extKeys) - - -#### serverVariable.hasExtension(key) ⇒ boolean -**Kind**: instance method of [ServerVariable](#module_@asyncapi/parser+ServerVariable) -**Mixes**: [hasExtension](#MixinSpecificationExtensions.hasExtension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### serverVariable.extension(key) ⇒ any -**Kind**: instance method of [ServerVariable](#module_@asyncapi/parser+ServerVariable) -**Mixes**: [extension](#MixinSpecificationExtensions.extension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### serverVariable.hasExt(key) ⇒ boolean -**Kind**: instance method of [ServerVariable](#module_@asyncapi/parser+ServerVariable) -**Mixes**: [hasExt](#MixinSpecificationExtensions.hasExt) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### serverVariable.ext(key) ⇒ any -**Kind**: instance method of [ServerVariable](#module_@asyncapi/parser+ServerVariable) -**Mixes**: [ext](#MixinSpecificationExtensions.ext) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -### @asyncapi/parser.Server ⇐ Base -Implements functions to deal with a Server object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Base -**Mixes**: [MixinDescription](#MixinDescription), [MixinBindings](#MixinBindings), [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -* [.Server](#module_@asyncapi/parser+Server) ⇐ Base - * [.url()](#module_@asyncapi/parser+Server+url) ⇒ string - * [.protocol()](#module_@asyncapi/parser+Server+protocol) ⇒ string - * [.protocolVersion()](#module_@asyncapi/parser+Server+protocolVersion) ⇒ string - * [.variables()](#module_@asyncapi/parser+Server+variables) ⇒ Object.<string, ServerVariable> - * [.variable(name)](#module_@asyncapi/parser+Server+variable) ⇒ ServerVariable - * [.hasVariables()](#module_@asyncapi/parser+Server+hasVariables) ⇒ boolean - * [.security()](#module_@asyncapi/parser+Server+security) ⇒ Array.<ServerSecurityRequirement> - * [.hasDescription()](#module_@asyncapi/parser+Server+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+Server+description) ⇒ string \| null - * [.hasBindings()](#module_@asyncapi/parser+Server+hasBindings) ⇒ boolean - * [.bindings()](#module_@asyncapi/parser+Server+bindings) ⇒ Object - * [.bindingProtocols()](#module_@asyncapi/parser+Server+bindingProtocols) ⇒ Array.<string> - * [.hasBinding(name)](#module_@asyncapi/parser+Server+hasBinding) ⇒ boolean - * [.binding(name)](#module_@asyncapi/parser+Server+binding) ⇒ Object \| null - * [.hasExtensions()](#module_@asyncapi/parser+Server+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+Server+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+Server+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+Server+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+Server+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+Server+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+Server+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+Server+ext) ⇒ any - - - -#### server.url() ⇒ string -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) - - -#### server.protocol() ⇒ string -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) - - -#### server.protocolVersion() ⇒ string -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) - - -#### server.variables() ⇒ Object.<string, ServerVariable> -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) - - -#### server.variable(name) ⇒ ServerVariable -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the server variable. | - - - -#### server.hasVariables() ⇒ boolean -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) - - -#### server.security() ⇒ Array.<ServerSecurityRequirement> -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) - - -#### server.hasDescription() ⇒ boolean -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) -**Mixes**: [hasDescription](#MixinDescription.hasDescription) - - -#### server.description() ⇒ string \| null -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) -**Mixes**: [description](#MixinDescription.description) - - -#### server.hasBindings() ⇒ boolean -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) -**Mixes**: [hasBindings](#MixinBindings.hasBindings) - - -#### server.bindings() ⇒ Object -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) -**Mixes**: [bindings](#MixinBindings.bindings) - - -#### server.bindingProtocols() ⇒ Array.<string> -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) -**Mixes**: [bindingProtocols](#MixinBindings.bindingProtocols) - - -#### server.hasBinding(name) ⇒ boolean -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) -**Mixes**: [hasBinding](#MixinBindings.hasBinding) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the binding. | - - - -#### server.binding(name) ⇒ Object \| null -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) -**Mixes**: [binding](#MixinBindings.binding) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the binding. | - - - -#### server.hasExtensions() ⇒ boolean -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) -**Mixes**: [hasExtensions](#MixinSpecificationExtensions.hasExtensions) - - -#### server.extensions() ⇒ Object.<string, any> -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) -**Mixes**: [extensions](#MixinSpecificationExtensions.extensions) - - -#### server.extensionKeys() ⇒ Array.<string> -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) -**Mixes**: [extensionKeys](#MixinSpecificationExtensions.extensionKeys) - - -#### server.extKeys() ⇒ Array.<string> -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) -**Mixes**: [extKeys](#MixinSpecificationExtensions.extKeys) - - -#### server.hasExtension(key) ⇒ boolean -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) -**Mixes**: [hasExtension](#MixinSpecificationExtensions.hasExtension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### server.extension(key) ⇒ any -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) -**Mixes**: [extension](#MixinSpecificationExtensions.extension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### server.hasExt(key) ⇒ boolean -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) -**Mixes**: [hasExt](#MixinSpecificationExtensions.hasExt) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### server.ext(key) ⇒ any -**Kind**: instance method of [Server](#module_@asyncapi/parser+Server) -**Mixes**: [ext](#MixinSpecificationExtensions.ext) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -### @asyncapi/parser.SubscribeOperation ⇐ Operation -Implements functions to deal with a SubscribeOperation object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Operation - -* [.SubscribeOperation](#module_@asyncapi/parser+SubscribeOperation) ⇐ Operation - * [.isPublish()](#module_@asyncapi/parser+SubscribeOperation+isPublish) ⇒ boolean - * [.isSubscribe()](#module_@asyncapi/parser+SubscribeOperation+isSubscribe) ⇒ boolean - * [.kind()](#module_@asyncapi/parser+SubscribeOperation+kind) ⇒ string - - - -#### subscribeOperation.isPublish() ⇒ boolean -**Kind**: instance method of [SubscribeOperation](#module_@asyncapi/parser+SubscribeOperation) - - -#### subscribeOperation.isSubscribe() ⇒ boolean -**Kind**: instance method of [SubscribeOperation](#module_@asyncapi/parser+SubscribeOperation) - - -#### subscribeOperation.kind() ⇒ string -**Kind**: instance method of [SubscribeOperation](#module_@asyncapi/parser+SubscribeOperation) - - -### @asyncapi/parser.Tag ⇐ Base -Implements functions to deal with a Tag object. - -**Kind**: instance class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Base -**Mixes**: [MixinDescription](#MixinDescription), [MixinExternalDocs](#MixinExternalDocs), [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -* [.Tag](#module_@asyncapi/parser+Tag) ⇐ Base - * [.name()](#module_@asyncapi/parser+Tag+name) ⇒ string - * [.hasDescription()](#module_@asyncapi/parser+Tag+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+Tag+description) ⇒ string \| null - * [.hasExternalDocs()](#module_@asyncapi/parser+Tag+hasExternalDocs) ⇒ boolean - * [.externalDocs()](#module_@asyncapi/parser+Tag+externalDocs) ⇒ ExternalDocs \| null - * [.hasExtensions()](#module_@asyncapi/parser+Tag+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+Tag+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+Tag+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+Tag+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+Tag+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+Tag+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+Tag+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+Tag+ext) ⇒ any - - - -#### tag.name() ⇒ string -**Kind**: instance method of [Tag](#module_@asyncapi/parser+Tag) - - -#### tag.hasDescription() ⇒ boolean -**Kind**: instance method of [Tag](#module_@asyncapi/parser+Tag) -**Mixes**: [hasDescription](#MixinDescription.hasDescription) - - -#### tag.description() ⇒ string \| null -**Kind**: instance method of [Tag](#module_@asyncapi/parser+Tag) -**Mixes**: [description](#MixinDescription.description) - - -#### tag.hasExternalDocs() ⇒ boolean -**Kind**: instance method of [Tag](#module_@asyncapi/parser+Tag) -**Mixes**: [hasExternalDocs](#MixinExternalDocs.hasExternalDocs) - - -#### tag.externalDocs() ⇒ ExternalDocs \| null -**Kind**: instance method of [Tag](#module_@asyncapi/parser+Tag) -**Mixes**: [externalDocs](#MixinExternalDocs.externalDocs) - - -#### tag.hasExtensions() ⇒ boolean -**Kind**: instance method of [Tag](#module_@asyncapi/parser+Tag) -**Mixes**: [hasExtensions](#MixinSpecificationExtensions.hasExtensions) - - -#### tag.extensions() ⇒ Object.<string, any> -**Kind**: instance method of [Tag](#module_@asyncapi/parser+Tag) -**Mixes**: [extensions](#MixinSpecificationExtensions.extensions) - - -#### tag.extensionKeys() ⇒ Array.<string> -**Kind**: instance method of [Tag](#module_@asyncapi/parser+Tag) -**Mixes**: [extensionKeys](#MixinSpecificationExtensions.extensionKeys) - - -#### tag.extKeys() ⇒ Array.<string> -**Kind**: instance method of [Tag](#module_@asyncapi/parser+Tag) -**Mixes**: [extKeys](#MixinSpecificationExtensions.extKeys) - - -#### tag.hasExtension(key) ⇒ boolean -**Kind**: instance method of [Tag](#module_@asyncapi/parser+Tag) -**Mixes**: [hasExtension](#MixinSpecificationExtensions.hasExtension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### tag.extension(key) ⇒ any -**Kind**: instance method of [Tag](#module_@asyncapi/parser+Tag) -**Mixes**: [extension](#MixinSpecificationExtensions.extension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### tag.hasExt(key) ⇒ boolean -**Kind**: instance method of [Tag](#module_@asyncapi/parser+Tag) -**Mixes**: [hasExt](#MixinSpecificationExtensions.hasExt) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### tag.ext(key) ⇒ any -**Kind**: instance method of [Tag](#module_@asyncapi/parser+Tag) -**Mixes**: [ext](#MixinSpecificationExtensions.ext) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -### @asyncapi/parser.TraverseSchemas ⇒ boolean -Callback used when crawling a schema. - -**Kind**: static typedef of [@asyncapi/parser](#module_@asyncapi/parser) -**Returns**: boolean - should the crawler continue crawling the schema? - -| Param | Type | Description | -| --- | --- | --- | -| schema | Schema | which is being crawled | -| propName | String | if the schema is from a property get the name of such | -| callbackType | [SchemaIteratorCallbackType](#SchemaIteratorCallbackType) | is the schema a new one or is the crawler finishing one. | - - - -### @asyncapi/parser~ParserError ⇐ Error -Represents an error while trying to parse an AsyncAPI document. - -**Kind**: inner class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Error - -* [~ParserError](#module_@asyncapi/parser+ParserError) ⇐ Error - * [new ParserError(definition)](#new_module_@asyncapi/parser+ParserError_new) - * [.toJS()](#module_@asyncapi/parser+ParserError+toJS) - - - -#### new ParserError(definition) -Instantiates an error - - -| Param | Type | Description | -| --- | --- | --- | -| definition | Object | | -| definition.type | String | The type of the error. | -| definition.title | String | The message of the error. | -| [definition.detail] | String | A string containing more detailed information about the error. | -| [definition.parsedJSON] | Object | The resulting JSON after YAML transformation. Or the JSON object if the this was the initial format. | -| [definition.validationErrors] | Array.<Object> | The errors resulting from the validation. For more information, see https://www.npmjs.com/package/better-ajv-errors. | -| definition.validationErrors.title | String | A validation error message. | -| definition.validationErrors.jsonPointer | String | The path to the field that contains the error. Uses JSON Pointer format. | -| definition.validationErrors.startLine | Number | The line where the error starts in the AsyncAPI document. | -| definition.validationErrors.startColumn | Number | The column where the error starts in the AsyncAPI document. | -| definition.validationErrors.startOffset | Number | The offset (starting from the beginning of the document) where the error starts in the AsyncAPI document. | -| definition.validationErrors.endLine | Number | The line where the error ends in the AsyncAPI document. | -| definition.validationErrors.endColumn | Number | The column where the error ends in the AsyncAPI document. | -| definition.validationErrors.endOffset | Number | The offset (starting from the beginning of the document) where the error ends in the AsyncAPI document. | -| [definition.location] | Object | Error location details after trying to parse an invalid JSON or YAML document. | -| definition.location.startLine | Number | The line of the YAML/JSON document where the error starts. | -| definition.location.startColumn | Number | The column of the YAML/JSON document where the error starts. | -| definition.location.startOffset | Number | The offset (starting from the beginning of the document) where the error starts in the YAML/JSON AsyncAPI document. | -| [definition.refs] | Array.<Object> | Error details after trying to resolve $ref's. | -| definition.refs.title | String | A validation error message. | -| definition.refs.jsonPointer | String | The path to the field that contains the error. Uses JSON Pointer format. | -| definition.refs.startLine | Number | The line where the error starts in the AsyncAPI document. | -| definition.refs.startColumn | Number | The column where the error starts in the AsyncAPI document. | -| definition.refs.startOffset | Number | The offset (starting from the beginning of the document) where the error starts in the AsyncAPI document. | -| definition.refs.endLine | Number | The line where the error ends in the AsyncAPI document. | -| definition.refs.endColumn | Number | The column where the error ends in the AsyncAPI document. | -| definition.refs.endOffset | Number | The offset (starting from the beginning of the document) where the error ends in the AsyncAPI document. | - - - -#### parserError.toJS() -Returns a JS object representation of the error. - -**Kind**: instance method of [ParserError](#module_@asyncapi/parser+ParserError) - - -### @asyncapi/parser~AsyncAPIDocument ⇐ Base -Implements functions to deal with the AsyncAPI document. - -**Kind**: inner class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Base -**Mixes**: [MixinTags](#MixinTags), [MixinExternalDocs](#MixinExternalDocs), [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -* [~AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) ⇐ Base - * _instance_ - * [.version()](#module_@asyncapi/parser+AsyncAPIDocument+version) ⇒ string - * [.info()](#module_@asyncapi/parser+AsyncAPIDocument+info) ⇒ Info - * [.id()](#module_@asyncapi/parser+AsyncAPIDocument+id) ⇒ string - * [.hasServers()](#module_@asyncapi/parser+AsyncAPIDocument+hasServers) ⇒ boolean - * [.servers()](#module_@asyncapi/parser+AsyncAPIDocument+servers) ⇒ Object.<string, Server> - * [.serverNames()](#module_@asyncapi/parser+AsyncAPIDocument+serverNames) ⇒ Array.<string> - * [.server(name)](#module_@asyncapi/parser+AsyncAPIDocument+server) ⇒ Server - * [.hasDefaultContentType()](#module_@asyncapi/parser+AsyncAPIDocument+hasDefaultContentType) ⇒ boolean - * [.defaultContentType()](#module_@asyncapi/parser+AsyncAPIDocument+defaultContentType) ⇒ string \| null - * [.hasChannels()](#module_@asyncapi/parser+AsyncAPIDocument+hasChannels) ⇒ boolean - * [.channels()](#module_@asyncapi/parser+AsyncAPIDocument+channels) ⇒ Object.<string, Channel> - * [.channelNames()](#module_@asyncapi/parser+AsyncAPIDocument+channelNames) ⇒ Array.<string> - * [.channel(name)](#module_@asyncapi/parser+AsyncAPIDocument+channel) ⇒ Channel - * [.hasComponents()](#module_@asyncapi/parser+AsyncAPIDocument+hasComponents) ⇒ boolean - * [.components()](#module_@asyncapi/parser+AsyncAPIDocument+components) ⇒ Components - * [.hasMessages()](#module_@asyncapi/parser+AsyncAPIDocument+hasMessages) ⇒ boolean - * [.allMessages()](#module_@asyncapi/parser+AsyncAPIDocument+allMessages) ⇒ Map.<string, Message> - * [.allSchemas()](#module_@asyncapi/parser+AsyncAPIDocument+allSchemas) ⇒ Map.<string, Schema> - * [.hasCircular()](#module_@asyncapi/parser+AsyncAPIDocument+hasCircular) ⇒ boolean - * [.traverseSchemas(callback, schemaTypesToIterate)](#module_@asyncapi/parser+AsyncAPIDocument+traverseSchemas) - * [.hasTags()](#module_@asyncapi/parser+AsyncAPIDocument+hasTags) ⇒ boolean - * [.tags()](#module_@asyncapi/parser+AsyncAPIDocument+tags) ⇒ Array.<Tag> - * [.tagNames()](#module_@asyncapi/parser+AsyncAPIDocument+tagNames) ⇒ Array.<string> - * [.hasTag(name)](#module_@asyncapi/parser+AsyncAPIDocument+hasTag) ⇒ boolean - * [.tag(name)](#module_@asyncapi/parser+AsyncAPIDocument+tag) ⇒ Tag \| null - * [.hasExternalDocs()](#module_@asyncapi/parser+AsyncAPIDocument+hasExternalDocs) ⇒ boolean - * [.externalDocs()](#module_@asyncapi/parser+AsyncAPIDocument+externalDocs) ⇒ ExternalDocs \| null - * [.hasExtensions()](#module_@asyncapi/parser+AsyncAPIDocument+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+AsyncAPIDocument+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+AsyncAPIDocument+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+AsyncAPIDocument+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+AsyncAPIDocument+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+AsyncAPIDocument+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+AsyncAPIDocument+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+AsyncAPIDocument+ext) ⇒ any - * [.hasTags()](#module_@asyncapi/parser+AsyncAPIDocument+hasTags) ⇒ boolean - * [.tags()](#module_@asyncapi/parser+AsyncAPIDocument+tags) ⇒ Array.<Tag> - * [.tagNames()](#module_@asyncapi/parser+AsyncAPIDocument+tagNames) ⇒ Array.<string> - * [.hasTag(name)](#module_@asyncapi/parser+AsyncAPIDocument+hasTag) ⇒ boolean - * [.tag(name)](#module_@asyncapi/parser+AsyncAPIDocument+tag) ⇒ Tag \| null - * [.hasExternalDocs()](#module_@asyncapi/parser+AsyncAPIDocument+hasExternalDocs) ⇒ boolean - * [.externalDocs()](#module_@asyncapi/parser+AsyncAPIDocument+externalDocs) ⇒ ExternalDocs \| null - * [.hasExtensions()](#module_@asyncapi/parser+AsyncAPIDocument+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+AsyncAPIDocument+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+AsyncAPIDocument+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+AsyncAPIDocument+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+AsyncAPIDocument+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+AsyncAPIDocument+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+AsyncAPIDocument+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+AsyncAPIDocument+ext) ⇒ any - * _static_ - * [.stringify(doc, [space])](#module_@asyncapi/parser+AsyncAPIDocument.stringify) ⇒ string - * [.parse(doc)](#module_@asyncapi/parser+AsyncAPIDocument.parse) ⇒ AsyncAPIDocument - - - -#### asyncAPIDocument.version() ⇒ string -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - - -#### asyncAPIDocument.info() ⇒ Info -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - - -#### asyncAPIDocument.id() ⇒ string -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - - -#### asyncAPIDocument.hasServers() ⇒ boolean -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - - -#### asyncAPIDocument.servers() ⇒ Object.<string, Server> -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - - -#### asyncAPIDocument.serverNames() ⇒ Array.<string> -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - - -#### asyncAPIDocument.server(name) ⇒ Server -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the server. | - - - -#### asyncAPIDocument.hasDefaultContentType() ⇒ boolean -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - - -#### asyncAPIDocument.defaultContentType() ⇒ string \| null -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - - -#### asyncAPIDocument.hasChannels() ⇒ boolean -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - - -#### asyncAPIDocument.channels() ⇒ Object.<string, Channel> -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - - -#### asyncAPIDocument.channelNames() ⇒ Array.<string> -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - - -#### asyncAPIDocument.channel(name) ⇒ Channel -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the channel. | - - - -#### asyncAPIDocument.hasComponents() ⇒ boolean -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - - -#### asyncAPIDocument.components() ⇒ Components -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - - -#### asyncAPIDocument.hasMessages() ⇒ boolean -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - - -#### asyncAPIDocument.allMessages() ⇒ Map.<string, Message> -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - - -#### asyncAPIDocument.allSchemas() ⇒ Map.<string, Schema> -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - - -#### asyncAPIDocument.hasCircular() ⇒ boolean -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - - -#### asyncAPIDocument.traverseSchemas(callback, schemaTypesToIterate) -Traverse schemas in the document and select which types of schemas to include. -By default all schemas are iterated - -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - -| Param | Type | -| --- | --- | -| callback | TraverseSchemas | -| schemaTypesToIterate | [Array.<SchemaTypesToIterate>](#SchemaTypesToIterate) | - - - -#### asyncAPIDocument.hasTags() ⇒ boolean -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [hasTags](#MixinTags.hasTags) - - -#### asyncAPIDocument.tags() ⇒ Array.<Tag> -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [tags](#MixinTags.tags) - - -#### asyncAPIDocument.tagNames() ⇒ Array.<string> -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [tagNames](#MixinTags.tagNames) - - -#### asyncAPIDocument.hasTag(name) ⇒ boolean -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [hasTag](#MixinTags.hasTag) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the tag. | - - - -#### asyncAPIDocument.tag(name) ⇒ Tag \| null -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [tag](#MixinTags.tag) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the tag. | - - - -#### asyncAPIDocument.hasExternalDocs() ⇒ boolean -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [hasExternalDocs](#MixinExternalDocs.hasExternalDocs) - - -#### asyncAPIDocument.externalDocs() ⇒ ExternalDocs \| null -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [externalDocs](#MixinExternalDocs.externalDocs) - - -#### asyncAPIDocument.hasExtensions() ⇒ boolean -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [hasExtensions](#MixinSpecificationExtensions.hasExtensions) - - -#### asyncAPIDocument.extensions() ⇒ Object.<string, any> -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [extensions](#MixinSpecificationExtensions.extensions) - - -#### asyncAPIDocument.extensionKeys() ⇒ Array.<string> -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [extensionKeys](#MixinSpecificationExtensions.extensionKeys) - - -#### asyncAPIDocument.extKeys() ⇒ Array.<string> -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [extKeys](#MixinSpecificationExtensions.extKeys) - - -#### asyncAPIDocument.hasExtension(key) ⇒ boolean -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [hasExtension](#MixinSpecificationExtensions.hasExtension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### asyncAPIDocument.extension(key) ⇒ any -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [extension](#MixinSpecificationExtensions.extension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### asyncAPIDocument.hasExt(key) ⇒ boolean -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [hasExt](#MixinSpecificationExtensions.hasExt) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### asyncAPIDocument.ext(key) ⇒ any -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [ext](#MixinSpecificationExtensions.ext) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### asyncAPIDocument.hasTags() ⇒ boolean -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [hasTags](#MixinTags.hasTags) - - -#### asyncAPIDocument.tags() ⇒ Array.<Tag> -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [tags](#MixinTags.tags) - - -#### asyncAPIDocument.tagNames() ⇒ Array.<string> -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [tagNames](#MixinTags.tagNames) - - -#### asyncAPIDocument.hasTag(name) ⇒ boolean -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [hasTag](#MixinTags.hasTag) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the tag. | - - - -#### asyncAPIDocument.tag(name) ⇒ Tag \| null -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [tag](#MixinTags.tag) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the tag. | - - - -#### asyncAPIDocument.hasExternalDocs() ⇒ boolean -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [hasExternalDocs](#MixinExternalDocs.hasExternalDocs) - - -#### asyncAPIDocument.externalDocs() ⇒ ExternalDocs \| null -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [externalDocs](#MixinExternalDocs.externalDocs) - - -#### asyncAPIDocument.hasExtensions() ⇒ boolean -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [hasExtensions](#MixinSpecificationExtensions.hasExtensions) - - -#### asyncAPIDocument.extensions() ⇒ Object.<string, any> -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [extensions](#MixinSpecificationExtensions.extensions) - - -#### asyncAPIDocument.extensionKeys() ⇒ Array.<string> -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [extensionKeys](#MixinSpecificationExtensions.extensionKeys) - - -#### asyncAPIDocument.extKeys() ⇒ Array.<string> -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [extKeys](#MixinSpecificationExtensions.extKeys) - - -#### asyncAPIDocument.hasExtension(key) ⇒ boolean -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [hasExtension](#MixinSpecificationExtensions.hasExtension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### asyncAPIDocument.extension(key) ⇒ any -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [extension](#MixinSpecificationExtensions.extension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### asyncAPIDocument.hasExt(key) ⇒ boolean -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [hasExt](#MixinSpecificationExtensions.hasExt) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### asyncAPIDocument.ext(key) ⇒ any -**Kind**: instance method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) -**Mixes**: [ext](#MixinSpecificationExtensions.ext) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### AsyncAPIDocument.stringify(doc, [space]) ⇒ string -Converts a valid AsyncAPI document to a JavaScript Object Notation (JSON) string. -A stringified AsyncAPI document using this function should be parsed via the AsyncAPIDocument.parse() function - the JSON.parse() function is not compatible. - -**Kind**: static method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - -| Param | Type | Description | -| --- | --- | --- | -| doc | AsyncAPIDocument | A valid AsyncAPIDocument instance. | -| [space] | number \| string | Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. | - - - -#### AsyncAPIDocument.parse(doc) ⇒ AsyncAPIDocument -Converts a valid stringified AsyncAPIDocument instance into an AsyncAPIDocument instance. - -**Kind**: static method of [AsyncAPIDocument](#module_@asyncapi/parser+AsyncAPIDocument) - -| Param | Type | Description | -| --- | --- | --- | -| doc | string | A valid stringified AsyncAPIDocument instance. | - - - -### @asyncapi/parser~Base -Implements common functionality for all the models. - -**Kind**: inner class of [@asyncapi/parser](#module_@asyncapi/parser) - - -#### base.json([key]) ⇒ any -**Kind**: instance method of [Base](#module_@asyncapi/parser+Base) - -| Param | Type | Description | -| --- | --- | --- | -| [key] | string | A key to retrieve from the JSON object. | - - - -### @asyncapi/parser~Schema ⇐ Base -Implements functions to deal with a Schema object. - -**Kind**: inner class of [@asyncapi/parser](#module_@asyncapi/parser) -**Extends**: Base -**Mixes**: [MixinDescription](#MixinDescription), [MixinExternalDocs](#MixinExternalDocs), [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -* [~Schema](#module_@asyncapi/parser+Schema) ⇐ Base - * [new Schema(json, [options])](#new_module_@asyncapi/parser+Schema_new) - * [.uid()](#module_@asyncapi/parser+Schema+uid) ⇒ string - * [.$id()](#module_@asyncapi/parser+Schema+$id) ⇒ string - * [.multipleOf()](#module_@asyncapi/parser+Schema+multipleOf) ⇒ number - * [.maximum()](#module_@asyncapi/parser+Schema+maximum) ⇒ number - * [.exclusiveMaximum()](#module_@asyncapi/parser+Schema+exclusiveMaximum) ⇒ number - * [.minimum()](#module_@asyncapi/parser+Schema+minimum) ⇒ number - * [.exclusiveMinimum()](#module_@asyncapi/parser+Schema+exclusiveMinimum) ⇒ number - * [.maxLength()](#module_@asyncapi/parser+Schema+maxLength) ⇒ number - * [.minLength()](#module_@asyncapi/parser+Schema+minLength) ⇒ number - * [.pattern()](#module_@asyncapi/parser+Schema+pattern) ⇒ string - * [.maxItems()](#module_@asyncapi/parser+Schema+maxItems) ⇒ number - * [.minItems()](#module_@asyncapi/parser+Schema+minItems) ⇒ number - * [.uniqueItems()](#module_@asyncapi/parser+Schema+uniqueItems) ⇒ boolean - * [.maxProperties()](#module_@asyncapi/parser+Schema+maxProperties) ⇒ number - * [.minProperties()](#module_@asyncapi/parser+Schema+minProperties) ⇒ number - * [.required()](#module_@asyncapi/parser+Schema+required) ⇒ Array.<string> - * [.enum()](#module_@asyncapi/parser+Schema+enum) ⇒ Array.<any> - * [.type()](#module_@asyncapi/parser+Schema+type) ⇒ string \| Array.<string> - * [.allOf()](#module_@asyncapi/parser+Schema+allOf) ⇒ Array.<Schema> - * [.oneOf()](#module_@asyncapi/parser+Schema+oneOf) ⇒ Array.<Schema> - * [.anyOf()](#module_@asyncapi/parser+Schema+anyOf) ⇒ Array.<Schema> - * [.not()](#module_@asyncapi/parser+Schema+not) ⇒ Schema - * [.items()](#module_@asyncapi/parser+Schema+items) ⇒ Schema \| Array.<Schema> - * [.properties()](#module_@asyncapi/parser+Schema+properties) ⇒ Object.<string, Schema> - * [.property(name)](#module_@asyncapi/parser+Schema+property) ⇒ Schema - * [.additionalProperties()](#module_@asyncapi/parser+Schema+additionalProperties) ⇒ boolean \| Schema - * [.additionalItems()](#module_@asyncapi/parser+Schema+additionalItems) ⇒ Schema - * [.patternProperties()](#module_@asyncapi/parser+Schema+patternProperties) ⇒ Object.<string, Schema> - * [.const()](#module_@asyncapi/parser+Schema+const) ⇒ any - * [.contains()](#module_@asyncapi/parser+Schema+contains) ⇒ Schema - * [.dependencies()](#module_@asyncapi/parser+Schema+dependencies) ⇒ Object.<string, (Schema\|Array.<string>)> - * [.propertyNames()](#module_@asyncapi/parser+Schema+propertyNames) ⇒ Schema - * [.if()](#module_@asyncapi/parser+Schema+if) ⇒ Schema - * [.then()](#module_@asyncapi/parser+Schema+then) ⇒ Schema - * [.else()](#module_@asyncapi/parser+Schema+else) ⇒ Schema - * [.format()](#module_@asyncapi/parser+Schema+format) ⇒ string - * [.contentEncoding()](#module_@asyncapi/parser+Schema+contentEncoding) ⇒ string - * [.contentMediaType()](#module_@asyncapi/parser+Schema+contentMediaType) ⇒ string - * [.definitions()](#module_@asyncapi/parser+Schema+definitions) ⇒ Object.<string, Schema> - * [.title()](#module_@asyncapi/parser+Schema+title) ⇒ string - * [.default()](#module_@asyncapi/parser+Schema+default) ⇒ any - * [.deprecated()](#module_@asyncapi/parser+Schema+deprecated) ⇒ boolean - * [.discriminator()](#module_@asyncapi/parser+Schema+discriminator) ⇒ string - * [.readOnly()](#module_@asyncapi/parser+Schema+readOnly) ⇒ boolean - * [.writeOnly()](#module_@asyncapi/parser+Schema+writeOnly) ⇒ boolean - * [.examples()](#module_@asyncapi/parser+Schema+examples) ⇒ Array.<any> - * [.isBooleanSchema()](#module_@asyncapi/parser+Schema+isBooleanSchema) ⇒ boolean - * [.isCircular()](#module_@asyncapi/parser+Schema+isCircular) ⇒ boolean - * [.circularSchema()](#module_@asyncapi/parser+Schema+circularSchema) ⇒ Schema - * ~~[.hasCircularProps()](#module_@asyncapi/parser+Schema+hasCircularProps) ⇒ boolean~~ - * ~~[.circularProps()](#module_@asyncapi/parser+Schema+circularProps) ⇒ Array.<string>~~ - * [.hasDescription()](#module_@asyncapi/parser+Schema+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+Schema+description) ⇒ string \| null - * [.hasExternalDocs()](#module_@asyncapi/parser+Schema+hasExternalDocs) ⇒ boolean - * [.externalDocs()](#module_@asyncapi/parser+Schema+externalDocs) ⇒ ExternalDocs \| null - * [.hasExtensions()](#module_@asyncapi/parser+Schema+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+Schema+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+Schema+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+Schema+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+Schema+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+Schema+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+Schema+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+Schema+ext) ⇒ any - * [.hasDescription()](#module_@asyncapi/parser+Schema+hasDescription) ⇒ boolean - * [.description()](#module_@asyncapi/parser+Schema+description) ⇒ string \| null - * [.hasExternalDocs()](#module_@asyncapi/parser+Schema+hasExternalDocs) ⇒ boolean - * [.externalDocs()](#module_@asyncapi/parser+Schema+externalDocs) ⇒ ExternalDocs \| null - * [.hasExtensions()](#module_@asyncapi/parser+Schema+hasExtensions) ⇒ boolean - * [.extensions()](#module_@asyncapi/parser+Schema+extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#module_@asyncapi/parser+Schema+extensionKeys) ⇒ Array.<string> - * [.extKeys()](#module_@asyncapi/parser+Schema+extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#module_@asyncapi/parser+Schema+hasExtension) ⇒ boolean - * [.extension(key)](#module_@asyncapi/parser+Schema+extension) ⇒ any - * [.hasExt(key)](#module_@asyncapi/parser+Schema+hasExt) ⇒ boolean - * [.ext(key)](#module_@asyncapi/parser+Schema+ext) ⇒ any - - - -#### new Schema(json, [options]) -Instantiates a schema object - - -| Param | Type | Description | -| --- | --- | --- | -| json | any | Schema definition | -| [options] | Object | | -| [options.parent] | Schema | Parent schema definition | - - - -#### schema.uid() ⇒ string -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.$id() ⇒ string -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.multipleOf() ⇒ number -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.maximum() ⇒ number -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.exclusiveMaximum() ⇒ number -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.minimum() ⇒ number -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.exclusiveMinimum() ⇒ number -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.maxLength() ⇒ number -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.minLength() ⇒ number -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.pattern() ⇒ string -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.maxItems() ⇒ number -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.minItems() ⇒ number -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.uniqueItems() ⇒ boolean -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.maxProperties() ⇒ number -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.minProperties() ⇒ number -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.required() ⇒ Array.<string> -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.enum() ⇒ Array.<any> -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.type() ⇒ string \| Array.<string> -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.allOf() ⇒ Array.<Schema> -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.oneOf() ⇒ Array.<Schema> -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.anyOf() ⇒ Array.<Schema> -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.not() ⇒ Schema -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.items() ⇒ Schema \| Array.<Schema> -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.properties() ⇒ Object.<string, Schema> -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.property(name) ⇒ Schema -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the property. | - - - -#### schema.additionalProperties() ⇒ boolean \| Schema -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.additionalItems() ⇒ Schema -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.patternProperties() ⇒ Object.<string, Schema> -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.const() ⇒ any -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.contains() ⇒ Schema -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.dependencies() ⇒ Object.<string, (Schema\|Array.<string>)> -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.propertyNames() ⇒ Schema -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.if() ⇒ Schema -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.then() ⇒ Schema -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.else() ⇒ Schema -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.format() ⇒ string -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.contentEncoding() ⇒ string -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.contentMediaType() ⇒ string -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.definitions() ⇒ Object.<string, Schema> -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.title() ⇒ string -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.default() ⇒ any -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.deprecated() ⇒ boolean -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.discriminator() ⇒ string -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.readOnly() ⇒ boolean -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.writeOnly() ⇒ boolean -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.examples() ⇒ Array.<any> -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.isBooleanSchema() ⇒ boolean -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.isCircular() ⇒ boolean -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.circularSchema() ⇒ Schema -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### ~~schema.hasCircularProps() ⇒ boolean~~ -***Deprecated*** - -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### ~~schema.circularProps() ⇒ Array.<string>~~ -***Deprecated*** - -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) - - -#### schema.hasDescription() ⇒ boolean -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [hasDescription](#MixinDescription.hasDescription) - - -#### schema.description() ⇒ string \| null -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [description](#MixinDescription.description) - - -#### schema.hasExternalDocs() ⇒ boolean -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [hasExternalDocs](#MixinExternalDocs.hasExternalDocs) - - -#### schema.externalDocs() ⇒ ExternalDocs \| null -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [externalDocs](#MixinExternalDocs.externalDocs) - - -#### schema.hasExtensions() ⇒ boolean -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [hasExtensions](#MixinSpecificationExtensions.hasExtensions) - - -#### schema.extensions() ⇒ Object.<string, any> -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [extensions](#MixinSpecificationExtensions.extensions) - - -#### schema.extensionKeys() ⇒ Array.<string> -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [extensionKeys](#MixinSpecificationExtensions.extensionKeys) - - -#### schema.extKeys() ⇒ Array.<string> -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [extKeys](#MixinSpecificationExtensions.extKeys) - - -#### schema.hasExtension(key) ⇒ boolean -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [hasExtension](#MixinSpecificationExtensions.hasExtension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### schema.extension(key) ⇒ any -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [extension](#MixinSpecificationExtensions.extension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### schema.hasExt(key) ⇒ boolean -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [hasExt](#MixinSpecificationExtensions.hasExt) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### schema.ext(key) ⇒ any -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [ext](#MixinSpecificationExtensions.ext) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### schema.hasDescription() ⇒ boolean -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [hasDescription](#MixinDescription.hasDescription) - - -#### schema.description() ⇒ string \| null -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [description](#MixinDescription.description) - - -#### schema.hasExternalDocs() ⇒ boolean -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [hasExternalDocs](#MixinExternalDocs.hasExternalDocs) - - -#### schema.externalDocs() ⇒ ExternalDocs \| null -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [externalDocs](#MixinExternalDocs.externalDocs) - - -#### schema.hasExtensions() ⇒ boolean -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [hasExtensions](#MixinSpecificationExtensions.hasExtensions) - - -#### schema.extensions() ⇒ Object.<string, any> -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [extensions](#MixinSpecificationExtensions.extensions) - - -#### schema.extensionKeys() ⇒ Array.<string> -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [extensionKeys](#MixinSpecificationExtensions.extensionKeys) - - -#### schema.extKeys() ⇒ Array.<string> -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [extKeys](#MixinSpecificationExtensions.extKeys) - - -#### schema.hasExtension(key) ⇒ boolean -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [hasExtension](#MixinSpecificationExtensions.hasExtension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### schema.extension(key) ⇒ any -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [extension](#MixinSpecificationExtensions.extension) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### schema.hasExt(key) ⇒ boolean -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [hasExt](#MixinSpecificationExtensions.hasExt) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -#### schema.ext(key) ⇒ any -**Kind**: instance method of [Schema](#module_@asyncapi/parser+Schema) -**Mixes**: [ext](#MixinSpecificationExtensions.ext) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -### @asyncapi/parser~parse(asyncapiYAMLorJSON, [options]) ⇒ Promise.<AsyncAPIDocument> -Parses and validate an AsyncAPI document from YAML or JSON. - -**Kind**: inner method of [@asyncapi/parser](#module_@asyncapi/parser) -**Returns**: Promise.<AsyncAPIDocument> - The parsed AsyncAPI document. - -| Param | Type | Description | -| --- | --- | --- | -| asyncapiYAMLorJSON | String \| Object | An AsyncAPI document in JSON or YAML format. | -| [options] | ParserOptions | Configuration options object [ParserOptions](ParserOptions) | - - - -### @asyncapi/parser~parseFromUrl(url, [fetchOptions], [options]) ⇒ Promise.<AsyncAPIDocument> -Fetches an AsyncAPI document from the given URL and passes its content to the `parse` method. - -**Kind**: inner method of [@asyncapi/parser](#module_@asyncapi/parser) -**Returns**: Promise.<AsyncAPIDocument> - The parsed AsyncAPI document. - -| Param | Type | Description | -| --- | --- | --- | -| url | String | URL where the AsyncAPI document is located. | -| [fetchOptions] | Object | Configuration to pass to the [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Request) call. | -| [options] | ParserOptions | Configuration to pass to the [ParserOptions](ParserOptions) method. | - - - -### @asyncapi/parser~registerSchemaParser(parserModule) -Registers a new schema parser. Schema parsers are in charge of parsing and transforming payloads to AsyncAPI Schema format. - -**Kind**: inner method of [@asyncapi/parser](#module_@asyncapi/parser) - -| Param | Type | Description | -| --- | --- | --- | -| parserModule | Object | The schema parser module containing parse() and getMimeTypes() functions. | - - - -### @asyncapi/parser~ParserOptions : Object -The complete list of parse configuration options used to parse the given data. - -**Kind**: inner typedef of [@asyncapi/parser](#module_@asyncapi/parser) -**Properties** - -| Name | Type | Description | -| --- | --- | --- | -| [path] | String | Path to the AsyncAPI document. It will be used to resolve relative references. Defaults to current working dir. | -| [parse] | Object | Options object to pass to [json-schema-ref-parser](https://apidevtools.org/json-schema-ref-parser/docs/options.html). | -| [resolve] | Object | Options object to pass to [json-schema-ref-parser](https://apidevtools.org/json-schema-ref-parser/docs/options.html). | -| [applyTraits] | Boolean | Whether to resolve and apply traits or not. Defaults to true. | - - - -## MixinBindings -Implements functions to deal with the common Bindings object. - -**Kind**: global mixin - -* [MixinBindings](#MixinBindings) - * [.hasBindings()](#MixinBindings.hasBindings) ⇒ boolean - * [.bindings()](#MixinBindings.bindings) ⇒ Object - * [.bindingProtocols()](#MixinBindings.bindingProtocols) ⇒ Array.<string> - * [.hasBinding(name)](#MixinBindings.hasBinding) ⇒ boolean - * [.binding(name)](#MixinBindings.binding) ⇒ Object \| null - - - -### MixinBindings.hasBindings() ⇒ boolean -**Kind**: static method of [MixinBindings](#MixinBindings) - - -### MixinBindings.bindings() ⇒ Object -**Kind**: static method of [MixinBindings](#MixinBindings) - - -### MixinBindings.bindingProtocols() ⇒ Array.<string> -**Kind**: static method of [MixinBindings](#MixinBindings) - - -### MixinBindings.hasBinding(name) ⇒ boolean -**Kind**: static method of [MixinBindings](#MixinBindings) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the binding. | - - - -### MixinBindings.binding(name) ⇒ Object \| null -**Kind**: static method of [MixinBindings](#MixinBindings) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the binding. | - - - -## MixinDescription -Implements functions to deal with the description field. - -**Kind**: global mixin - -* [MixinDescription](#MixinDescription) - * [.hasDescription()](#MixinDescription.hasDescription) ⇒ boolean - * [.description()](#MixinDescription.description) ⇒ string \| null - - - -### MixinDescription.hasDescription() ⇒ boolean -**Kind**: static method of [MixinDescription](#MixinDescription) - - -### MixinDescription.description() ⇒ string \| null -**Kind**: static method of [MixinDescription](#MixinDescription) - - -## MixinExternalDocs -Implements functions to deal with the ExternalDocs object. - -**Kind**: global mixin - -* [MixinExternalDocs](#MixinExternalDocs) - * [.hasExternalDocs()](#MixinExternalDocs.hasExternalDocs) ⇒ boolean - * [.externalDocs()](#MixinExternalDocs.externalDocs) ⇒ ExternalDocs \| null - - - -### MixinExternalDocs.hasExternalDocs() ⇒ boolean -**Kind**: static method of [MixinExternalDocs](#MixinExternalDocs) - - -### MixinExternalDocs.externalDocs() ⇒ ExternalDocs \| null -**Kind**: static method of [MixinExternalDocs](#MixinExternalDocs) - - -## MixinSpecificationExtensions -Implements functions to deal with the SpecificationExtensions object. - -**Kind**: global mixin - -* [MixinSpecificationExtensions](#MixinSpecificationExtensions) - * [.hasExtensions()](#MixinSpecificationExtensions.hasExtensions) ⇒ boolean - * [.extensions()](#MixinSpecificationExtensions.extensions) ⇒ Object.<string, any> - * [.extensionKeys()](#MixinSpecificationExtensions.extensionKeys) ⇒ Array.<string> - * [.extKeys()](#MixinSpecificationExtensions.extKeys) ⇒ Array.<string> - * [.hasExtension(key)](#MixinSpecificationExtensions.hasExtension) ⇒ boolean - * [.extension(key)](#MixinSpecificationExtensions.extension) ⇒ any - * [.hasExt(key)](#MixinSpecificationExtensions.hasExt) ⇒ boolean - * [.ext(key)](#MixinSpecificationExtensions.ext) ⇒ any - - - -### MixinSpecificationExtensions.hasExtensions() ⇒ boolean -**Kind**: static method of [MixinSpecificationExtensions](#MixinSpecificationExtensions) - - -### MixinSpecificationExtensions.extensions() ⇒ Object.<string, any> -**Kind**: static method of [MixinSpecificationExtensions](#MixinSpecificationExtensions) - - -### MixinSpecificationExtensions.extensionKeys() ⇒ Array.<string> -**Kind**: static method of [MixinSpecificationExtensions](#MixinSpecificationExtensions) - - -### MixinSpecificationExtensions.extKeys() ⇒ Array.<string> -**Kind**: static method of [MixinSpecificationExtensions](#MixinSpecificationExtensions) - - -### MixinSpecificationExtensions.hasExtension(key) ⇒ boolean -**Kind**: static method of [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -### MixinSpecificationExtensions.extension(key) ⇒ any -**Kind**: static method of [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -### MixinSpecificationExtensions.hasExt(key) ⇒ boolean -**Kind**: static method of [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -### MixinSpecificationExtensions.ext(key) ⇒ any -**Kind**: static method of [MixinSpecificationExtensions](#MixinSpecificationExtensions) - -| Param | Type | Description | -| --- | --- | --- | -| key | string | Extension key. | - - - -## MixinTags -Implements functions to deal with the Tags object. - -**Kind**: global mixin - -* [MixinTags](#MixinTags) - * [.hasTags()](#MixinTags.hasTags) ⇒ boolean - * [.tags()](#MixinTags.tags) ⇒ Array.<Tag> - * [.tagNames()](#MixinTags.tagNames) ⇒ Array.<string> - * [.hasTag(name)](#MixinTags.hasTag) ⇒ boolean - * [.tag(name)](#MixinTags.tag) ⇒ Tag \| null - - - -### MixinTags.hasTags() ⇒ boolean -**Kind**: static method of [MixinTags](#MixinTags) - - -### MixinTags.tags() ⇒ Array.<Tag> -**Kind**: static method of [MixinTags](#MixinTags) - - -### MixinTags.tagNames() ⇒ Array.<string> -**Kind**: static method of [MixinTags](#MixinTags) - - -### MixinTags.hasTag(name) ⇒ boolean -**Kind**: static method of [MixinTags](#MixinTags) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the tag. | - - - -### MixinTags.tag(name) ⇒ Tag \| null -**Kind**: static method of [MixinTags](#MixinTags) - -| Param | Type | Description | -| --- | --- | --- | -| name | string | Name of the tag. | - - - -## SchemaIteratorCallbackType -The different kind of stages when crawling a schema. - -**Kind**: global typedef -**Properties** - -| Name | Type | Description | -| --- | --- | --- | -| NEW_SCHEMA | string | The crawler just started crawling a schema. | -| END_SCHEMA | string | The crawler just finished crawling a schema. | - - - -## SchemaTypesToIterate -The different types of schemas you can iterate - -**Kind**: global typedef -**Properties** - -| Name | Type | Description | -| --- | --- | --- | -| parameters | string | Crawl all schemas in parameters | -| payloads | string | Crawl all schemas in payloads | -| headers | string | Crawl all schemas in headers | -| components | string | Crawl all schemas in components | -| objects | string | Crawl all schemas of type object | -| arrays | string | Crawl all schemas of type array | -| oneOfs | string | Crawl all schemas in oneOf's | -| allOfs | string | Crawl all schemas in allOf's | -| anyOfs | string | Crawl all schemas in anyOf's | -| nots | string | Crawl all schemas in not field | -| propertyNames | string | Crawl all schemas in propertyNames field | -| patternProperties | string | Crawl all schemas in patternProperties field | -| contains | string | Crawl all schemas in contains field | -| ifs | string | Crawl all schemas in if field | -| thenes | string | Crawl all schemas in then field | -| elses | string | Crawl all schemas in else field | -| dependencies | string | Crawl all schemas in dependencies field | -| definitions | string | Crawl all schemas in definitions field | - diff --git a/esm/constants.d.ts b/esm/constants.d.ts new file mode 100644 index 000000000..483ae4850 --- /dev/null +++ b/esm/constants.d.ts @@ -0,0 +1,13 @@ +export declare const xParserSpecParsed = "x-parser-spec-parsed"; +export declare const xParserSpecStringified = "x-parser-spec-stringified"; +export declare const xParserMessageName = "x-parser-message-name"; +export declare const xParserMessageParsed = "x-parser-message-parsed"; +export declare const xParserSchemaId = "x-parser-schema-id"; +export declare const xParserOriginalSchemaFormat = "x-parser-original-schema-format"; +export declare const xParserOriginalPayload = "x-parser-original-payload"; +export declare const xParserOriginalTraits = "x-parser-original-traits"; +export declare const xParserCircular = "x-parser-circular"; +export declare const xParserCircularProps = "x-parser-circular-props"; +export declare const EXTENSION_REGEX: RegExp; +export declare const specVersions: string[]; +export declare const lastVersion: string; diff --git a/esm/constants.js b/esm/constants.js new file mode 100644 index 000000000..c74f2fd84 --- /dev/null +++ b/esm/constants.js @@ -0,0 +1,16 @@ +// @ts-ignore +import specs from '@asyncapi/specs'; +export const xParserSpecParsed = 'x-parser-spec-parsed'; +export const xParserSpecStringified = 'x-parser-spec-stringified'; +export const xParserMessageName = 'x-parser-message-name'; +export const xParserMessageParsed = 'x-parser-message-parsed'; +export const xParserSchemaId = 'x-parser-schema-id'; +export const xParserOriginalSchemaFormat = 'x-parser-original-schema-format'; +export const xParserOriginalPayload = 'x-parser-original-payload'; +export const xParserOriginalTraits = 'x-parser-original-traits'; +export const xParserCircular = 'x-parser-circular'; +export const xParserCircularProps = 'x-parser-circular-props'; +export const EXTENSION_REGEX = /^x-[\w\d.\-_]+$/; +// Only >=2.0.0 versions are supported +export const specVersions = Object.keys(specs).filter((version) => !['1.0.0', '1.1.0', '1.2.0', '2.0.0-rc1', '2.0.0-rc2'].includes(version)); +export const lastVersion = specVersions[specVersions.length - 1]; diff --git a/esm/custom-operations/anonymous-naming.d.ts b/esm/custom-operations/anonymous-naming.d.ts new file mode 100644 index 000000000..25722cee7 --- /dev/null +++ b/esm/custom-operations/anonymous-naming.d.ts @@ -0,0 +1,2 @@ +import type { AsyncAPIDocumentInterface } from '../models'; +export declare function anonymousNaming(document: AsyncAPIDocumentInterface): void; diff --git a/esm/custom-operations/anonymous-naming.js b/esm/custom-operations/anonymous-naming.js new file mode 100644 index 000000000..b27051e68 --- /dev/null +++ b/esm/custom-operations/anonymous-naming.js @@ -0,0 +1,59 @@ +import { xParserMessageName, xParserSchemaId } from '../constants'; +import { traverseAsyncApiDocument } from '../iterator'; +import { setExtension } from '../utils'; +export function anonymousNaming(document) { + assignNameToComponentMessages(document); + assignNameToAnonymousMessages(document); + assignUidToComponentSchemas(document); + assignUidToComponentParameterSchemas(document); + assignUidToChannelParameterSchemas(document); + assignUidToAnonymousSchemas(document); +} +function assignNameToComponentMessages(document) { + document.components().messages().forEach(message => { + if (message.name() === undefined) { + setExtension(xParserMessageName, message.id(), message); + } + }); +} +function assignNameToAnonymousMessages(document) { + let anonymousMessageCounter = 0; + document.messages().forEach(message => { + var _a; + if (message.name() === undefined && ((_a = message.extensions().get(xParserMessageName)) === null || _a === void 0 ? void 0 : _a.value()) === undefined) { + setExtension(xParserMessageName, ``, message); + } + }); +} +function assignUidToComponentParameterSchemas(document) { + document.components().channelParameters().forEach(parameter => { + const schema = parameter.schema(); + if (schema && !schema.uid()) { + setExtension(xParserSchemaId, parameter.id(), schema); + } + }); +} +function assignUidToChannelParameterSchemas(document) { + document.channels().forEach(channel => { + channel.parameters().forEach(parameter => { + const schema = parameter.schema(); + if (schema && !schema.uid()) { + setExtension(xParserSchemaId, parameter.id(), schema); + } + }); + }); +} +function assignUidToComponentSchemas(document) { + document.components().schemas().forEach(schema => { + setExtension(xParserSchemaId, schema.uid(), schema); + }); +} +function assignUidToAnonymousSchemas(doc) { + let anonymousSchemaCounter = 0; + function callback(schema) { + if (!schema.uid()) { + setExtension(xParserSchemaId, ``, schema); + } + } + traverseAsyncApiDocument(doc, callback); +} diff --git a/esm/custom-operations/apply-traits.d.ts b/esm/custom-operations/apply-traits.d.ts new file mode 100644 index 000000000..1be880667 --- /dev/null +++ b/esm/custom-operations/apply-traits.d.ts @@ -0,0 +1,3 @@ +import type { v2 } from '../spec-types'; +export declare function applyTraitsV2(asyncapi: v2.AsyncAPIObject): void; +export declare function applyTraitsV3(asyncapi: v2.AsyncAPIObject): void; diff --git a/esm/custom-operations/apply-traits.js b/esm/custom-operations/apply-traits.js new file mode 100644 index 000000000..1a6f11b15 --- /dev/null +++ b/esm/custom-operations/apply-traits.js @@ -0,0 +1,49 @@ +import { JSONPath } from 'jsonpath-plus'; +import { mergePatch } from '../utils'; +const v2TraitPaths = [ + // operations + '$.channels.*.[publish,subscribe]', + '$.components.channels.*.[publish,subscribe]', + // messages + '$.channels.*.[publish,subscribe].message', + '$.channels.*.[publish,subscribe].message.oneOf.*', + '$.components.channels.*.[publish,subscribe].message', + '$.components.channels.*.[publish,subscribe].message.oneOf.*', + '$.components.messages.*', +]; +export function applyTraitsV2(asyncapi) { + applyAllTraits(asyncapi, v2TraitPaths); +} +const v3TraitPaths = [ + // operations + '$.channels.*.[publish,subscribe]', + '$.components.channels.*.[publish,subscribe]', + // messages + '$.channels.*.[publish,subscribe].message', + '$.channels.*.[publish,subscribe].message.oneOf.*', + '$.components.channels.*.[publish,subscribe].message', + '$.components.channels.*.[publish,subscribe].message.oneOf.*', + '$.components.messages.*', +]; +export function applyTraitsV3(asyncapi) { + applyAllTraits(asyncapi, v3TraitPaths); +} +function applyAllTraits(asyncapi, paths) { + paths.forEach(path => { + JSONPath({ + path, + json: asyncapi, + resultType: 'value', + callback(value) { applyTraits(value); }, + }); + }); +} +function applyTraits(value) { + if (Array.isArray(value.traits)) { + for (const trait of value.traits) { + for (const key in trait) { + value[String(key)] = mergePatch(value[String(key)], trait[String(key)]); + } + } + } +} diff --git a/esm/custom-operations/check-circular-refs.d.ts b/esm/custom-operations/check-circular-refs.d.ts new file mode 100644 index 000000000..b1189cdac --- /dev/null +++ b/esm/custom-operations/check-circular-refs.d.ts @@ -0,0 +1,2 @@ +import type { AsyncAPIDocumentInterface } from '../models'; +export declare function checkCircularRefs(document: AsyncAPIDocumentInterface): void; diff --git a/esm/custom-operations/check-circular-refs.js b/esm/custom-operations/check-circular-refs.js new file mode 100644 index 000000000..148a5f847 --- /dev/null +++ b/esm/custom-operations/check-circular-refs.js @@ -0,0 +1,20 @@ +import { setExtension } from '../utils'; +import { xParserCircular } from '../constants'; +export function checkCircularRefs(document) { + if (hasInlineRef(document.json())) { + setExtension(xParserCircular, true, document); + } +} +function hasInlineRef(data) { + if (data && typeof data === 'object' && !Array.isArray(data)) { + if (Object.prototype.hasOwnProperty.call(data, '$ref')) { + return true; + } + for (const p in data) { + if (hasInlineRef(data[p])) { + return true; + } + } + } + return false; +} diff --git a/esm/custom-operations/index.d.ts b/esm/custom-operations/index.d.ts new file mode 100644 index 000000000..5a984a9f4 --- /dev/null +++ b/esm/custom-operations/index.d.ts @@ -0,0 +1,5 @@ +import type { Parser } from '../parser'; +import type { ParseOptions } from '../parse'; +import type { AsyncAPIDocumentInterface } from '../models'; +import type { DetailedAsyncAPI } from '../types'; +export declare function customOperations(parser: Parser, document: AsyncAPIDocumentInterface, detailed: DetailedAsyncAPI, options: ParseOptions): Promise; diff --git a/esm/custom-operations/index.js b/esm/custom-operations/index.js new file mode 100644 index 000000000..a83d1dd26 --- /dev/null +++ b/esm/custom-operations/index.js @@ -0,0 +1,33 @@ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import { applyTraitsV2 } from './apply-traits'; +import { checkCircularRefs } from './check-circular-refs'; +import { parseSchemasV2 } from './parse-schema'; +import { anonymousNaming } from './anonymous-naming'; +export function customOperations(parser, document, detailed, options) { + return __awaiter(this, void 0, void 0, function* () { + switch (detailed.semver.major) { + case 2: return operationsV2(parser, document, detailed, options); + // case 3: return operationsV3(parser, document, detailed, options); + } + }); +} +function operationsV2(parser, document, detailed, options) { + return __awaiter(this, void 0, void 0, function* () { + checkCircularRefs(document); + anonymousNaming(document); + if (options.applyTraits) { + applyTraitsV2(detailed.parsed); + } + if (options.parseSchemas) { + yield parseSchemasV2(parser, detailed); + } + }); +} diff --git a/esm/custom-operations/parse-schema.d.ts b/esm/custom-operations/parse-schema.d.ts new file mode 100644 index 000000000..2bea575f6 --- /dev/null +++ b/esm/custom-operations/parse-schema.d.ts @@ -0,0 +1,3 @@ +import type { Parser } from '../parser'; +import type { DetailedAsyncAPI } from '../types'; +export declare function parseSchemasV2(parser: Parser, detailed: DetailedAsyncAPI): Promise; diff --git a/esm/custom-operations/parse-schema.js b/esm/custom-operations/parse-schema.js new file mode 100644 index 000000000..5384c3030 --- /dev/null +++ b/esm/custom-operations/parse-schema.js @@ -0,0 +1,75 @@ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import { JSONPath } from 'jsonpath-plus'; +import { xParserOriginalPayload } from '../constants'; +import { parseSchema, getSchemaFormat, getDefaultSchemaFormat } from '../schema-parser'; +const customSchemasPathsV2 = [ + // operations + '$.channels.*.[publish,subscribe].message', + '$.channels.*.[publish,subscribe].message.oneOf.*', + '$.components.channels.*.[publish,subscribe].message', + '$.components.channels.*.[publish,subscribe].message.oneOf.*', + // messages + '$.components.messages.*', +]; +export function parseSchemasV2(parser, detailed) { + return __awaiter(this, void 0, void 0, function* () { + const defaultSchemaFormat = getDefaultSchemaFormat(detailed.semver.version); + const parseItems = []; + const visited = new Set(); + customSchemasPathsV2.forEach(path => { + JSONPath({ + path, + json: detailed.parsed, + resultType: 'all', + callback(result) { + const value = result.value; + if (visited.has(value)) { + return; + } + visited.add(value); + const payload = value.payload; + if (!payload) { + return; + } + const schemaFormat = getSchemaFormat(value.schemaFormat, detailed.semver.version); + parseItems.push({ + input: { + asyncapi: detailed, + data: payload, + meta: { + message: value, + }, + path: [...splitPath(result.path), 'payload'], + schemaFormat, + defaultSchemaFormat, + }, + value, + }); + }, + }); + }); + return Promise.all(parseItems.map(item => parseSchemaV2(parser, item))); + }); +} +function parseSchemaV2(parser, item) { + return __awaiter(this, void 0, void 0, function* () { + const originalData = item.input.data; + const parsedData = item.value.payload = yield parseSchema(parser, item.input); + // save original payload only when data is different (returned by custom parsers) + if (originalData !== parsedData) { + item.value[xParserOriginalPayload] = originalData; + } + }); +} +function splitPath(path) { + // remove $[' from beginning and '] at the end and split by '][' + return path.slice(3).slice(0, -2).split('\'][\''); +} diff --git a/esm/document.d.ts b/esm/document.d.ts new file mode 100644 index 000000000..5707f70cf --- /dev/null +++ b/esm/document.d.ts @@ -0,0 +1,7 @@ +import type { AsyncAPIDocumentInterface } from './models'; +import type { DetailedAsyncAPI } from './types'; +export declare function createAsyncAPIDocument(asyncapi: DetailedAsyncAPI): AsyncAPIDocumentInterface; +export declare function toAsyncAPIDocument(maybeDoc: unknown): AsyncAPIDocumentInterface | undefined; +export declare function isAsyncAPIDocument(maybeDoc: unknown): maybeDoc is AsyncAPIDocumentInterface; +export declare function isParsedDocument(maybeDoc: unknown): maybeDoc is Record; +export declare function isStringifiedDocument(maybeDoc: unknown): maybeDoc is Record; diff --git a/esm/document.js b/esm/document.js new file mode 100644 index 000000000..93e4b3e15 --- /dev/null +++ b/esm/document.js @@ -0,0 +1,39 @@ +import { AsyncAPIDocumentV2, AsyncAPIDocumentV3 } from './models'; +import { unstringify } from './stringify'; +import { createDetailedAsyncAPI } from './utils'; +import { xParserSpecParsed, xParserSpecStringified, } from './constants'; +export function createAsyncAPIDocument(asyncapi) { + switch (asyncapi.semver.major) { + case 2: + return new AsyncAPIDocumentV2(asyncapi.parsed, { asyncapi, pointer: '/' }); + // case 3: + // return new AsyncAPIDocumentV3(asyncapi.parsed, { asyncapi, pointer: '/' }); + default: + throw new Error(`Unsupported AsyncAPI version: ${asyncapi.semver.version}`); + } +} +export function toAsyncAPIDocument(maybeDoc) { + if (isAsyncAPIDocument(maybeDoc)) { + return maybeDoc; + } + if (!isParsedDocument(maybeDoc)) { + return; + } + return unstringify(maybeDoc) || createAsyncAPIDocument(createDetailedAsyncAPI(maybeDoc, maybeDoc)); +} +export function isAsyncAPIDocument(maybeDoc) { + return maybeDoc instanceof AsyncAPIDocumentV2 || maybeDoc instanceof AsyncAPIDocumentV3; +} +export function isParsedDocument(maybeDoc) { + if (typeof maybeDoc !== 'object' || maybeDoc === null) { + return false; + } + return Boolean(maybeDoc[xParserSpecParsed]); +} +export function isStringifiedDocument(maybeDoc) { + if (typeof maybeDoc !== 'object' || maybeDoc === null) { + return false; + } + return (Boolean(maybeDoc[xParserSpecParsed]) && + Boolean(maybeDoc[xParserSpecStringified])); +} diff --git a/esm/from.d.ts b/esm/from.d.ts new file mode 100644 index 000000000..8b3731a20 --- /dev/null +++ b/esm/from.d.ts @@ -0,0 +1,14 @@ +/// +import { readFile } from 'fs/promises'; +import type { RequestInit } from 'node-fetch'; +import type { Parser } from './parser'; +import type { ParseOptions, ParseOutput } from './parse'; +import type { ValidateOptions } from './validate'; +import type { Diagnostic } from './types'; +interface FromResult { + parse: (options?: ParseOptions) => Promise; + validate: (options?: ValidateOptions) => Promise; +} +export declare function fromURL(parser: Parser, source: string, options?: RequestInit): FromResult; +export declare function fromFile(parser: Parser, source: string, options?: Parameters[1]): FromResult; +export {}; diff --git a/esm/from.js b/esm/from.js new file mode 100644 index 000000000..a242f403b --- /dev/null +++ b/esm/from.js @@ -0,0 +1,65 @@ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import { readFile } from 'fs/promises'; +export function fromURL(parser, source, options) { + function fetchUrl() { + return __awaiter(this, void 0, void 0, function* () { + const fetchFn = yield getFetch(); + return (yield fetchFn(source, options)).text(); + }); + } + return { + parse(options = {}) { + return __awaiter(this, void 0, void 0, function* () { + const schema = yield fetchUrl(); + return parser.parse(schema, Object.assign(Object.assign({}, options), { source })); + }); + }, + validate(options = {}) { + return __awaiter(this, void 0, void 0, function* () { + const schema = yield fetchUrl(); + return parser.validate(schema, Object.assign(Object.assign({}, options), { source })); + }); + } + }; +} +export function fromFile(parser, source, options) { + function readFileFn() { + return __awaiter(this, void 0, void 0, function* () { + return (yield readFile(source, options)).toString(); + }); + } + return { + parse(options = {}) { + return __awaiter(this, void 0, void 0, function* () { + const schema = yield readFileFn(); + return parser.parse(schema, Object.assign(Object.assign({}, options), { source })); + }); + }, + validate(options = {}) { + return __awaiter(this, void 0, void 0, function* () { + const schema = yield readFileFn(); + return parser.validate(schema, Object.assign(Object.assign({}, options), { source })); + }); + } + }; +} +let __fetchFn; +function getFetch() { + return __awaiter(this, void 0, void 0, function* () { + if (__fetchFn) { + return __fetchFn; + } + if (typeof fetch === 'undefined') { + return __fetchFn = (yield import('node-fetch')).default; + } + return (__fetchFn = fetch); + }); +} diff --git a/esm/index.d.ts b/esm/index.d.ts new file mode 100644 index 000000000..59f3be0bb --- /dev/null +++ b/esm/index.d.ts @@ -0,0 +1,13 @@ +import { Parser } from './parser'; +export * from './models'; +export { Parser }; +export { stringify, unstringify } from './stringify'; +export { fromURL, fromFile } from './from'; +export { AsyncAPIDocument as OldAsyncAPIDocument } from './old-api/asyncapi'; +export { convertToOldAPI } from './old-api/converter'; +export type { AsyncAPISemver, Input, Diagnostic, SchemaValidateResult } from './types'; +export type { ValidateOptions, ValidateOutput } from './validate'; +export type { ParseOptions, ParseOutput } from './parse'; +export type { StringifyOptions } from './stringify'; +export type { ValidateSchemaInput, ParseSchemaInput, SchemaParser } from './schema-parser'; +export default Parser; diff --git a/esm/index.js b/esm/index.js new file mode 100644 index 000000000..1d2a71185 --- /dev/null +++ b/esm/index.js @@ -0,0 +1,8 @@ +import { Parser } from './parser'; +export * from './models'; +export { Parser }; +export { stringify, unstringify } from './stringify'; +export { fromURL, fromFile } from './from'; +export { AsyncAPIDocument as OldAsyncAPIDocument } from './old-api/asyncapi'; +export { convertToOldAPI } from './old-api/converter'; +export default Parser; diff --git a/esm/iterator.d.ts b/esm/iterator.d.ts new file mode 100644 index 000000000..627928ce4 --- /dev/null +++ b/esm/iterator.d.ts @@ -0,0 +1,42 @@ +import type { AsyncAPIDocumentInterface } from './models/asyncapi'; +import type { SchemaInterface } from './models/schema'; +/** + * The different kind of stages when crawling a schema. + */ +export declare enum SchemaIteratorCallbackType { + NEW_SCHEMA = "NEW_SCHEMA", + END_SCHEMA = "END_SCHEMA" +} +/** + * The different types of schemas you can iterate + */ +export declare enum SchemaTypesToIterate { + Parameters = "parameters", + Payloads = "payloads", + Headers = "headers", + Components = "components", + Objects = "objects", + Arrays = "arrays", + OneOfs = "oneOfs", + AllOfs = "allOfs", + AnyOfs = "anyOfs", + Nots = "nots", + PropertyNames = "propertyNames", + PatternProperties = "patternProperties", + Contains = "contains", + Ifs = "ifs", + Thenes = "thenes", + Elses = "elses", + Dependencies = "dependencies", + Definitions = "definitions" +} +export declare type TraverseOptions = { + callback: TraverseCallback; + schemaTypesToIterate: Array<`${SchemaTypesToIterate}`>; + seenSchemas: Set; +}; +export declare type TraverseCallback = (schema: SchemaInterface, propOrIndex: string | number | null, callbackType: SchemaIteratorCallbackType) => boolean | void; +/** + * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. + */ +export declare function traverseAsyncApiDocument(doc: AsyncAPIDocumentInterface, callback: TraverseCallback, schemaTypesToIterate?: Array<`${SchemaTypesToIterate}`>): void; diff --git a/esm/iterator.js b/esm/iterator.js new file mode 100644 index 000000000..97e19175d --- /dev/null +++ b/esm/iterator.js @@ -0,0 +1,224 @@ +/** + * The different kind of stages when crawling a schema. + */ +export var SchemaIteratorCallbackType; +(function (SchemaIteratorCallbackType) { + SchemaIteratorCallbackType["NEW_SCHEMA"] = "NEW_SCHEMA"; + SchemaIteratorCallbackType["END_SCHEMA"] = "END_SCHEMA"; +})(SchemaIteratorCallbackType || (SchemaIteratorCallbackType = {})); +/** + * The different types of schemas you can iterate + */ +export var SchemaTypesToIterate; +(function (SchemaTypesToIterate) { + SchemaTypesToIterate["Parameters"] = "parameters"; + SchemaTypesToIterate["Payloads"] = "payloads"; + SchemaTypesToIterate["Headers"] = "headers"; + SchemaTypesToIterate["Components"] = "components"; + SchemaTypesToIterate["Objects"] = "objects"; + SchemaTypesToIterate["Arrays"] = "arrays"; + SchemaTypesToIterate["OneOfs"] = "oneOfs"; + SchemaTypesToIterate["AllOfs"] = "allOfs"; + SchemaTypesToIterate["AnyOfs"] = "anyOfs"; + SchemaTypesToIterate["Nots"] = "nots"; + SchemaTypesToIterate["PropertyNames"] = "propertyNames"; + SchemaTypesToIterate["PatternProperties"] = "patternProperties"; + SchemaTypesToIterate["Contains"] = "contains"; + SchemaTypesToIterate["Ifs"] = "ifs"; + SchemaTypesToIterate["Thenes"] = "thenes"; + SchemaTypesToIterate["Elses"] = "elses"; + SchemaTypesToIterate["Dependencies"] = "dependencies"; + SchemaTypesToIterate["Definitions"] = "definitions"; +})(SchemaTypesToIterate || (SchemaTypesToIterate = {})); +/** + * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. + */ +export function traverseAsyncApiDocument(doc, callback, schemaTypesToIterate = []) { + if (schemaTypesToIterate.length === 0) { + schemaTypesToIterate = Object.values(SchemaTypesToIterate); + } + const options = { callback, schemaTypesToIterate, seenSchemas: new Set() }; + if (!doc.channels().isEmpty()) { + doc.channels().all().forEach(channel => { + traverseChannel(channel, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Components) && !doc.components().isEmpty()) { + const components = doc.components(); + Object.values(components.messages().all() || {}).forEach(message => { + traverseMessage(message, options); + }); + Object.values(components.schemas().all() || {}).forEach(schema => { + traverseSchema(schema, null, options); + }); + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Parameters)) { + Object.values(components.channelParameters().filterBy((param) => { return param.hasSchema(); })).forEach(parameter => { + traverseSchema(parameter.schema(), null, options); + }); + } + Object.values(components.messageTraits().all() || {}).forEach(messageTrait => { + traverseMessageTrait(messageTrait, options); + }); + } +} +/* eslint-disable sonarjs/cognitive-complexity */ +/** + * Traverse current schema and all nested schemas. + */ +function traverseSchema(schema, propOrIndex, options) { + if (!schema) + return; + const { schemaTypesToIterate, callback, seenSchemas } = options; + // handle circular references + const jsonSchema = schema.json(); + if (seenSchemas.has(jsonSchema)) + return; + seenSchemas.add(jsonSchema); + // `type` isn't required so save type as array in the fallback + let types = schema.type() || []; + // change primitive type to array of types for easier handling + if (!Array.isArray(types)) { + types = [types]; + } + if (!schemaTypesToIterate.includes(SchemaTypesToIterate.Objects) && types.includes('object')) + return; + if (!schemaTypesToIterate.includes(SchemaTypesToIterate.Arrays) && types.includes('array')) + return; + // check callback `NEW_SCHEMA` case + if (callback(schema, propOrIndex, SchemaIteratorCallbackType.NEW_SCHEMA) === false) + return; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Objects) && types.includes('object')) { + recursiveSchemaObject(schema, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Arrays) && types.includes('array')) { + recursiveSchemaArray(schema, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.OneOfs)) { + (schema.oneOf() || []).forEach((combineSchema, idx) => { + traverseSchema(combineSchema, idx, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.AnyOfs)) { + (schema.anyOf() || []).forEach((combineSchema, idx) => { + traverseSchema(combineSchema, idx, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.AllOfs)) { + (schema.allOf() || []).forEach((combineSchema, idx) => { + traverseSchema(combineSchema, idx, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Nots) && schema.not()) { + traverseSchema(schema.not(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Ifs) && schema.if()) { + traverseSchema(schema.if(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Thenes) && schema.then()) { + traverseSchema(schema.then(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Elses) && schema.else()) { + traverseSchema(schema.else(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Dependencies)) { + Object.entries(schema.dependencies() || {}).forEach(([depName, dep]) => { + // do not iterate dependent required + if (dep && !Array.isArray(dep)) { + traverseSchema(dep, depName, options); + } + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Definitions)) { + Object.entries(schema.definitions() || {}).forEach(([defName, def]) => { + traverseSchema(def, defName, options); + }); + } + callback(schema, propOrIndex, SchemaIteratorCallbackType.END_SCHEMA); + seenSchemas.delete(jsonSchema); +} +/* eslint-enable sonarjs/cognitive-complexity */ +/** + * Recursively go through schema of object type and execute callback. + */ +function recursiveSchemaObject(schema, options) { + Object.entries(schema.properties() || {}).forEach(([propertyName, property]) => { + traverseSchema(property, propertyName, options); + }); + const additionalProperties = schema.additionalProperties(); + if (typeof additionalProperties === 'object') { + traverseSchema(additionalProperties, null, options); + } + const schemaTypesToIterate = options.schemaTypesToIterate; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.PropertyNames) && schema.propertyNames()) { + traverseSchema(schema.propertyNames(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.PatternProperties)) { + Object.entries(schema.patternProperties() || {}).forEach(([propertyName, property]) => { + traverseSchema(property, propertyName, options); + }); + } +} +/** + * Recursively go through schema of array type and execute callback. + */ +function recursiveSchemaArray(schema, options) { + const items = schema.items(); + if (items) { + if (Array.isArray(items)) { + items.forEach((item, idx) => { + traverseSchema(item, idx, options); + }); + } + else { + traverseSchema(items, null, options); + } + } + const additionalItems = schema.additionalItems(); + if (typeof additionalItems === 'object') { + traverseSchema(additionalItems, null, options); + } + if (options.schemaTypesToIterate.includes('contains') && schema.contains()) { + traverseSchema(schema.contains(), null, options); + } +} +/** + * Go through each schema in channel + */ +function traverseChannel(channel, options) { + if (!channel) + return; + const { schemaTypesToIterate } = options; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Parameters)) { + Object.values(channel.parameters().filterBy((param) => { return param.hasSchema(); }) || {}).forEach(parameter => { + traverseSchema(parameter.schema(), null, options); + }); + } + channel.messages().all().forEach(message => { + traverseMessage(message, options); + }); +} +/** + * Go through each schema in a message + */ +function traverseMessage(message, options) { + if (!message) + return; + const { schemaTypesToIterate } = options; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Headers) && message.hasHeaders()) { + traverseSchema(message.headers(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Payloads) && message.hasPayload()) { + traverseSchema(message.payload(), null, options); + } +} +/** + * Go through each schema in a messageTrait + */ +function traverseMessageTrait(messageTrait, options) { + if (!messageTrait) + return; + const { schemaTypesToIterate } = options; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Headers) && messageTrait.hasHeaders()) { + traverseSchema(messageTrait.headers(), null, options); + } +} diff --git a/esm/models/asyncapi.d.ts b/esm/models/asyncapi.d.ts new file mode 100644 index 000000000..f357456fe --- /dev/null +++ b/esm/models/asyncapi.d.ts @@ -0,0 +1,24 @@ +import type { BaseModel } from './base'; +import type { InfoInterface } from './info'; +import type { ChannelsInterface } from './channels'; +import type { ComponentsInterface } from './components'; +import type { MessagesInterface } from './messages'; +import type { ExtensionsMixinInterface } from './mixins'; +import type { OperationsInterface } from './operations'; +import type { SchemasInterface } from './schemas'; +import type { SecuritySchemesInterface } from './security-schemes'; +import type { ServersInterface } from './servers'; +import type { v2 } from '../spec-types'; +export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInterface { + version(): string; + defaultContentType(): string | undefined; + hasDefaultContentType(): boolean; + info(): InfoInterface; + servers(): ServersInterface; + channels(): ChannelsInterface; + operations(): OperationsInterface; + messages(): MessagesInterface; + schemas(): SchemasInterface; + securitySchemes(): SecuritySchemesInterface; + components(): ComponentsInterface; +} diff --git a/esm/models/asyncapi.js b/esm/models/asyncapi.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/asyncapi.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/base.d.ts b/esm/models/base.d.ts new file mode 100644 index 000000000..29aa35fa2 --- /dev/null +++ b/esm/models/base.d.ts @@ -0,0 +1,17 @@ +import type { Constructor, InferModelData, InferModelMetadata } from './utils'; +import type { DetailedAsyncAPI } from '../types'; +export interface ModelMetadata { + asyncapi: DetailedAsyncAPI; + pointer: string; +} +export declare abstract class BaseModel = {}> { + protected readonly _json: J; + protected readonly _meta: ModelMetadata & M; + constructor(_json: J, _meta?: ModelMetadata & M); + json(): T; + json(key: K): J[K]; + meta(): ModelMetadata & M; + meta(key: K): (ModelMetadata & M)[K]; + jsonPath(field?: string | undefined): string; + protected createModel(Model: Constructor, value: InferModelData, meta: Omit & InferModelMetadata): T; +} diff --git a/esm/models/base.js b/esm/models/base.js new file mode 100644 index 000000000..49f1d0dcd --- /dev/null +++ b/esm/models/base.js @@ -0,0 +1,29 @@ +export class BaseModel { + constructor(_json, _meta = {}) { + this._json = _json; + this._meta = _meta; + } + json(key) { + if (key === undefined) + return this._json; + if (this._json === null || this._json === undefined) + return this._json; + return this._json[key]; + } + meta(key) { + if (key === undefined) + return this._meta; + if (!this._meta) + return; + return this._meta[key]; + } + jsonPath(field) { + if (typeof field !== 'string') { + return this._meta.pointer; + } + return `${this._meta.pointer}/${field}`; + } + createModel(Model, value, meta) { + return new Model(value, Object.assign(Object.assign({}, meta), { asyncapi: this._meta.asyncapi })); + } +} diff --git a/esm/models/binding.d.ts b/esm/models/binding.d.ts new file mode 100644 index 000000000..d63cbb8d2 --- /dev/null +++ b/esm/models/binding.d.ts @@ -0,0 +1,7 @@ +import type { BaseModel } from './base'; +import type { ExtensionsMixinInterface } from './mixins'; +export interface BindingInterface = Record> extends BaseModel, ExtensionsMixinInterface { + protocol(): string; + version(): string; + value(): V; +} diff --git a/esm/models/binding.js b/esm/models/binding.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/binding.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/bindings.d.ts b/esm/models/bindings.d.ts new file mode 100644 index 000000000..a9e00490d --- /dev/null +++ b/esm/models/bindings.d.ts @@ -0,0 +1,5 @@ +import type { Collection } from './collection'; +import type { BindingInterface } from './binding'; +import type { ExtensionsMixinInterface } from './mixins'; +export interface BindingsInterface extends Collection, ExtensionsMixinInterface { +} diff --git a/esm/models/bindings.js b/esm/models/bindings.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/bindings.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/channel-parameter.d.ts b/esm/models/channel-parameter.d.ts new file mode 100644 index 000000000..3c787dbd1 --- /dev/null +++ b/esm/models/channel-parameter.d.ts @@ -0,0 +1,10 @@ +import type { BaseModel } from './base'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +import type { SchemaInterface } from './schema'; +export interface ChannelParameterInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { + id(): string; + hasSchema(): boolean; + schema(): SchemaInterface | undefined; + hasLocation(): boolean; + location(): string | undefined; +} diff --git a/esm/models/channel-parameter.js b/esm/models/channel-parameter.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/channel-parameter.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/channel-parameters.d.ts b/esm/models/channel-parameters.d.ts new file mode 100644 index 000000000..599627b77 --- /dev/null +++ b/esm/models/channel-parameters.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { ChannelParameterInterface } from './channel-parameter'; +export declare type ChannelParametersInterface = Collection; diff --git a/esm/models/channel-parameters.js b/esm/models/channel-parameters.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/channel-parameters.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/channel.d.ts b/esm/models/channel.d.ts new file mode 100644 index 000000000..404e37d63 --- /dev/null +++ b/esm/models/channel.d.ts @@ -0,0 +1,14 @@ +import type { BaseModel } from './base'; +import type { ChannelParametersInterface } from './channel-parameters'; +import type { MessagesInterface } from './messages'; +import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +import type { OperationsInterface } from './operations'; +import type { ServersInterface } from './servers'; +export interface ChannelInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface { + id(): string; + address(): string; + servers(): ServersInterface; + operations(): OperationsInterface; + messages(): MessagesInterface; + parameters(): ChannelParametersInterface; +} diff --git a/esm/models/channel.js b/esm/models/channel.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/channel.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/channels.d.ts b/esm/models/channels.d.ts new file mode 100644 index 000000000..028bd4a96 --- /dev/null +++ b/esm/models/channels.d.ts @@ -0,0 +1,6 @@ +import type { Collection } from './collection'; +import type { ChannelInterface } from './channel'; +export interface ChannelsInterface extends Collection { + filterBySend(): ChannelInterface[]; + filterByReceive(): ChannelInterface[]; +} diff --git a/esm/models/channels.js b/esm/models/channels.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/channels.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/collection.d.ts b/esm/models/collection.d.ts new file mode 100644 index 000000000..6c23e3b73 --- /dev/null +++ b/esm/models/collection.d.ts @@ -0,0 +1,19 @@ +import type { BaseModel } from './base'; +import type { DetailedAsyncAPI } from '../types'; +export interface CollectionMetadata { + originalData?: Record; + asyncapi?: DetailedAsyncAPI; + pointer?: string; +} +export declare abstract class Collection = {}> extends Array { + protected readonly collections: T[]; + protected readonly _meta: CollectionMetadata & M; + constructor(collections: T[], _meta?: CollectionMetadata & M); + abstract get(id: string): T | undefined; + has(id: string): boolean; + all(): T[]; + isEmpty(): boolean; + filterBy(filter: (item: T) => boolean): T[]; + meta(): CollectionMetadata & M; + meta & M)>(key: K): (CollectionMetadata & M)[K]; +} diff --git a/esm/models/collection.js b/esm/models/collection.js new file mode 100644 index 000000000..4ff40348f --- /dev/null +++ b/esm/models/collection.js @@ -0,0 +1,26 @@ +export class Collection extends Array { + constructor(collections, _meta = {}) { + super(...collections); + this.collections = collections; + this._meta = _meta; + } + has(id) { + return typeof this.get(id) !== 'undefined'; + } + all() { + return this.collections; + } + isEmpty() { + return this.collections.length === 0; + } + filterBy(filter) { + return this.collections.filter(filter); + } + meta(key) { + if (key === undefined) + return this._meta; + if (!this._meta) + return; + return this._meta[String(key)]; + } +} diff --git a/esm/models/components.d.ts b/esm/models/components.d.ts new file mode 100644 index 000000000..ce8c4f7e7 --- /dev/null +++ b/esm/models/components.d.ts @@ -0,0 +1,32 @@ +import type { BaseModel } from './base'; +import type { BindingsInterface } from './bindings'; +import type { ExtensionsMixinInterface } from './mixins'; +import type { ServersInterface } from './servers'; +import type { ChannelsInterface } from './channels'; +import type { MessagesInterface } from './messages'; +import type { SchemasInterface } from './schemas'; +import type { ChannelParametersInterface } from './channel-parameters'; +import type { ServerVariablesInterface } from './server-variables'; +import type { OperationTraitsInterface } from './operation-traits'; +import type { MessageTraitsInterface } from './message-traits'; +import type { SecuritySchemesInterface } from './security-schemes'; +import type { CorrelationIdsInterface } from './correlation-ids'; +import type { OperationsInterface } from './operations'; +export interface ComponentsInterface extends BaseModel, ExtensionsMixinInterface { + servers(): ServersInterface; + channels(): ChannelsInterface; + messages(): MessagesInterface; + schemas(): SchemasInterface; + channelParameters(): ChannelParametersInterface; + serverVariables(): ServerVariablesInterface; + operations(): OperationsInterface; + operationTraits(): OperationTraitsInterface; + messageTraits(): MessageTraitsInterface; + correlationIds(): CorrelationIdsInterface; + securitySchemes(): SecuritySchemesInterface; + serverBindings(): Record; + channelBindings(): Record; + operationBindings(): Record; + messageBindings(): Record; + isEmpty(): boolean; +} diff --git a/esm/models/components.js b/esm/models/components.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/components.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/contact.d.ts b/esm/models/contact.d.ts new file mode 100644 index 000000000..79bf79984 --- /dev/null +++ b/esm/models/contact.d.ts @@ -0,0 +1,10 @@ +import type { BaseModel } from './base'; +import type { ExtensionsMixinInterface } from './mixins'; +export interface ContactInterface extends BaseModel, ExtensionsMixinInterface { + hasName(): boolean; + name(): string | undefined; + hasUrl(): boolean; + url(): string | undefined; + hasEmail(): boolean; + email(): string | undefined; +} diff --git a/esm/models/contact.js b/esm/models/contact.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/contact.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/correlation-id.d.ts b/esm/models/correlation-id.d.ts new file mode 100644 index 000000000..690a0dbdc --- /dev/null +++ b/esm/models/correlation-id.d.ts @@ -0,0 +1,6 @@ +import type { BaseModel } from './base'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +export interface CorrelationIdInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { + hasLocation(): boolean; + location(): string | undefined; +} diff --git a/esm/models/correlation-id.js b/esm/models/correlation-id.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/correlation-id.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/correlation-ids.d.ts b/esm/models/correlation-ids.d.ts new file mode 100644 index 000000000..09dba456b --- /dev/null +++ b/esm/models/correlation-ids.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { CorrelationIdInterface } from './correlation-id'; +export declare type CorrelationIdsInterface = Collection; diff --git a/esm/models/correlation-ids.js b/esm/models/correlation-ids.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/correlation-ids.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/extension.d.ts b/esm/models/extension.d.ts new file mode 100644 index 000000000..9772edf4a --- /dev/null +++ b/esm/models/extension.d.ts @@ -0,0 +1,6 @@ +import type { BaseModel } from './base'; +export interface ExtensionInterface extends BaseModel { + id(): string; + version(): string; + value(): V; +} diff --git a/esm/models/extension.js b/esm/models/extension.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/extension.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/extensions.d.ts b/esm/models/extensions.d.ts new file mode 100644 index 000000000..a4d4e393f --- /dev/null +++ b/esm/models/extensions.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { ExtensionInterface } from './extension'; +export declare type ExtensionsInterface = Collection; diff --git a/esm/models/extensions.js b/esm/models/extensions.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/extensions.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/external-docs.d.ts b/esm/models/external-docs.d.ts new file mode 100644 index 000000000..bca1e1fef --- /dev/null +++ b/esm/models/external-docs.d.ts @@ -0,0 +1,5 @@ +import type { BaseModel } from './base'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +export interface ExternalDocumentationInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { + url(): string; +} diff --git a/esm/models/external-docs.js b/esm/models/external-docs.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/external-docs.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/index.d.ts b/esm/models/index.d.ts new file mode 100644 index 000000000..72c426a08 --- /dev/null +++ b/esm/models/index.d.ts @@ -0,0 +1,44 @@ +export * from './v2'; +export * from './v3'; +export * from './asyncapi'; +export * from './base'; +export * from './binding'; +export * from './bindings'; +export * from './channel-parameter'; +export * from './channel-parameters'; +export * from './channel'; +export * from './channels'; +export * from './collection'; +export * from './components'; +export * from './contact'; +export * from './correlation-id'; +export * from './correlation-ids'; +export * from './extension'; +export * from './extensions'; +export * from './external-docs'; +export * from './info'; +export * from './license'; +export * from './message-example'; +export * from './message-examples'; +export * from './message-trait'; +export * from './message-traits'; +export * from './message'; +export * from './messages'; +export * from './oauth-flow'; +export * from './oauth-flows'; +export * from './operation-trait'; +export * from './operation-traits'; +export * from './operation'; +export * from './operations'; +export * from './schema'; +export * from './schemas'; +export * from './security-requirement'; +export * from './security-requirements'; +export * from './security-scheme'; +export * from './security-schemes'; +export * from './server-variable'; +export * from './server-variables'; +export * from './server'; +export * from './servers'; +export * from './tag'; +export * from './tags'; diff --git a/esm/models/index.js b/esm/models/index.js new file mode 100644 index 000000000..72c426a08 --- /dev/null +++ b/esm/models/index.js @@ -0,0 +1,44 @@ +export * from './v2'; +export * from './v3'; +export * from './asyncapi'; +export * from './base'; +export * from './binding'; +export * from './bindings'; +export * from './channel-parameter'; +export * from './channel-parameters'; +export * from './channel'; +export * from './channels'; +export * from './collection'; +export * from './components'; +export * from './contact'; +export * from './correlation-id'; +export * from './correlation-ids'; +export * from './extension'; +export * from './extensions'; +export * from './external-docs'; +export * from './info'; +export * from './license'; +export * from './message-example'; +export * from './message-examples'; +export * from './message-trait'; +export * from './message-traits'; +export * from './message'; +export * from './messages'; +export * from './oauth-flow'; +export * from './oauth-flows'; +export * from './operation-trait'; +export * from './operation-traits'; +export * from './operation'; +export * from './operations'; +export * from './schema'; +export * from './schemas'; +export * from './security-requirement'; +export * from './security-requirements'; +export * from './security-scheme'; +export * from './security-schemes'; +export * from './server-variable'; +export * from './server-variables'; +export * from './server'; +export * from './servers'; +export * from './tag'; +export * from './tags'; diff --git a/esm/models/info.d.ts b/esm/models/info.d.ts new file mode 100644 index 000000000..33ce92d33 --- /dev/null +++ b/esm/models/info.d.ts @@ -0,0 +1,16 @@ +import type { ContactInterface } from './contact'; +import type { LicenseInterface } from './license'; +import type { BaseModel } from './base'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; +export interface InfoInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { + title(): string; + version(): string; + hasId(): boolean; + id(): string | undefined; + hasTermsOfService(): boolean; + termsOfService(): string | undefined; + hasContact(): boolean; + contact(): ContactInterface | undefined; + hasLicense(): boolean; + license(): LicenseInterface | undefined; +} diff --git a/esm/models/info.js b/esm/models/info.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/info.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/license.d.ts b/esm/models/license.d.ts new file mode 100644 index 000000000..55d4949b0 --- /dev/null +++ b/esm/models/license.d.ts @@ -0,0 +1,7 @@ +import type { BaseModel } from './base'; +import type { ExtensionsMixinInterface } from './mixins'; +export interface LicenseInterface extends BaseModel, ExtensionsMixinInterface { + name(): string; + hasUrl(): boolean; + url(): string | undefined; +} diff --git a/esm/models/license.js b/esm/models/license.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/license.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/message-example.d.ts b/esm/models/message-example.d.ts new file mode 100644 index 000000000..f929d876f --- /dev/null +++ b/esm/models/message-example.d.ts @@ -0,0 +1,12 @@ +import type { BaseModel } from './base'; +import type { ExtensionsMixinInterface } from './mixins'; +export interface MessageExampleInterface extends BaseModel, ExtensionsMixinInterface { + hasName(): boolean; + name(): string | undefined; + hasSummary(): boolean; + summary(): string | undefined; + hasHeaders(): boolean; + headers(): Record | undefined; + hasPayload(): boolean; + payload(): Record | undefined; +} diff --git a/esm/models/message-example.js b/esm/models/message-example.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/message-example.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/message-examples.d.ts b/esm/models/message-examples.d.ts new file mode 100644 index 000000000..de760b44a --- /dev/null +++ b/esm/models/message-examples.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { MessageExampleInterface } from './message-example'; +export declare type MessageExamplesInterface = Collection; diff --git a/esm/models/message-examples.js b/esm/models/message-examples.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/message-examples.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/message-trait.d.ts b/esm/models/message-trait.d.ts new file mode 100644 index 000000000..072afe0b3 --- /dev/null +++ b/esm/models/message-trait.d.ts @@ -0,0 +1,24 @@ +import type { BaseModel } from './base'; +import type { CorrelationIdInterface } from './correlation-id'; +import type { MessageExamplesInterface } from './message-examples'; +import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; +import type { SchemaInterface } from './schema'; +export interface MessageTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { + id(): string; + schemaFormat(): string; + hasMessageId(): boolean; + messageId(): string | undefined; + hasCorrelationId(): boolean; + correlationId(): CorrelationIdInterface | undefined; + hasContentType(): boolean; + contentType(): string | undefined; + hasHeaders(): boolean; + headers(): SchemaInterface | undefined; + hasName(): boolean; + name(): string | undefined; + hasTitle(): boolean; + title(): string | undefined; + hasSummary(): boolean; + summary(): string | undefined; + examples(): MessageExamplesInterface; +} diff --git a/esm/models/message-trait.js b/esm/models/message-trait.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/message-trait.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/message-traits.d.ts b/esm/models/message-traits.d.ts new file mode 100644 index 000000000..e440e2a55 --- /dev/null +++ b/esm/models/message-traits.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { MessageTraitInterface } from './message-trait'; +export declare type MessageTraitsInterface = Collection; diff --git a/esm/models/message-traits.js b/esm/models/message-traits.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/message-traits.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/message.d.ts b/esm/models/message.d.ts new file mode 100644 index 000000000..c030c3912 --- /dev/null +++ b/esm/models/message.d.ts @@ -0,0 +1,15 @@ +import type { BaseModel } from './base'; +import type { ChannelsInterface } from './channels'; +import type { MessageTraitsInterface } from './message-traits'; +import type { MessageTraitInterface } from './message-trait'; +import type { OperationsInterface } from './operations'; +import type { SchemaInterface } from './schema'; +import type { ServersInterface } from './servers'; +export interface MessageInterface extends BaseModel, MessageTraitInterface { + hasPayload(): boolean; + payload(): SchemaInterface | undefined; + servers(): ServersInterface; + channels(): ChannelsInterface; + operations(): OperationsInterface; + traits(): MessageTraitsInterface; +} diff --git a/esm/models/message.js b/esm/models/message.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/message.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/messages.d.ts b/esm/models/messages.d.ts new file mode 100644 index 000000000..614bbd142 --- /dev/null +++ b/esm/models/messages.d.ts @@ -0,0 +1,6 @@ +import type { Collection } from './collection'; +import type { MessageInterface } from './message'; +export interface MessagesInterface extends Collection { + filterBySend(): MessageInterface[]; + filterByReceive(): MessageInterface[]; +} diff --git a/esm/models/messages.js b/esm/models/messages.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/messages.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/mixins.d.ts b/esm/models/mixins.d.ts new file mode 100644 index 000000000..f910ef8ef --- /dev/null +++ b/esm/models/mixins.d.ts @@ -0,0 +1,21 @@ +import type { BindingsInterface } from './bindings'; +import type { ExtensionsInterface } from './extensions'; +import type { ExternalDocumentationInterface } from './external-docs'; +import type { TagsInterface } from './tags'; +export interface BindingsMixinInterface { + bindings(): BindingsInterface; +} +export interface DescriptionMixinInterface { + hasDescription(): boolean; + description(): string | undefined; +} +export interface ExtensionsMixinInterface { + extensions(): ExtensionsInterface; +} +export interface ExternalDocumentationMixinInterface { + hasExternalDocs(): boolean; + externalDocs(): ExternalDocumentationInterface | undefined; +} +export interface TagsMixinInterface { + tags(): TagsInterface; +} diff --git a/esm/models/mixins.js b/esm/models/mixins.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/mixins.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/oauth-flow.d.ts b/esm/models/oauth-flow.d.ts new file mode 100644 index 000000000..917293f35 --- /dev/null +++ b/esm/models/oauth-flow.d.ts @@ -0,0 +1,9 @@ +import { BaseModel } from './base'; +import { ExtensionsMixinInterface } from './mixins'; +export interface OAuthFlowInterface = Record> extends BaseModel, ExtensionsMixinInterface { + authorizationUrl(): string | undefined; + hasRefreshUrl(): boolean; + refreshUrl(): string | undefined; + scopes(): Record | undefined; + tokenUrl(): string | undefined; +} diff --git a/esm/models/oauth-flow.js b/esm/models/oauth-flow.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/oauth-flow.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/oauth-flows.d.ts b/esm/models/oauth-flows.d.ts new file mode 100644 index 000000000..9d4a9c332 --- /dev/null +++ b/esm/models/oauth-flows.d.ts @@ -0,0 +1,13 @@ +import type { BaseModel } from './base'; +import type { OAuthFlowInterface } from './oauth-flow'; +import type { ExtensionsMixinInterface } from './mixins'; +export interface OAuthFlowsInterface extends BaseModel, ExtensionsMixinInterface { + hasAuthorizationCode(): boolean; + authorizationCode(): OAuthFlowInterface | undefined; + hasClientCredentials(): boolean; + clientCredentials(): OAuthFlowInterface | undefined; + hasImplicit(): boolean; + implicit(): OAuthFlowInterface | undefined; + hasPassword(): boolean; + password(): OAuthFlowInterface | undefined; +} diff --git a/esm/models/oauth-flows.js b/esm/models/oauth-flows.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/oauth-flows.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/operation-trait.d.ts b/esm/models/operation-trait.d.ts new file mode 100644 index 000000000..7e86617e9 --- /dev/null +++ b/esm/models/operation-trait.d.ts @@ -0,0 +1,11 @@ +import type { BaseModel } from './base'; +import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; +import { SecurityRequirements } from './v2/security-requirements'; +export interface OperationTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { + id(): string; + hasOperationId(): boolean; + operationId(): string | undefined; + hasSummary(): boolean; + summary(): string | undefined; + security(): SecurityRequirements[]; +} diff --git a/esm/models/operation-trait.js b/esm/models/operation-trait.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/operation-trait.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/operation-traits.d.ts b/esm/models/operation-traits.d.ts new file mode 100644 index 000000000..2b9d57562 --- /dev/null +++ b/esm/models/operation-traits.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { OperationTraitInterface } from './operation-trait'; +export declare type OperationTraitsInterface = Collection; diff --git a/esm/models/operation-traits.js b/esm/models/operation-traits.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/operation-traits.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/operation.d.ts b/esm/models/operation.d.ts new file mode 100644 index 000000000..376039f58 --- /dev/null +++ b/esm/models/operation.d.ts @@ -0,0 +1,16 @@ +import type { BaseModel } from './base'; +import type { ChannelsInterface } from './channels'; +import type { MessagesInterface } from './messages'; +import type { OperationTraitsInterface } from './operation-traits'; +import type { OperationTraitInterface } from './operation-trait'; +import type { ServersInterface } from './servers'; +export declare type OperationAction = 'send' | 'receive' | 'publish' | 'subscribe'; +export interface OperationInterface extends BaseModel, OperationTraitInterface { + action(): OperationAction; + isSend(): boolean; + isReceive(): boolean; + servers(): ServersInterface; + channels(): ChannelsInterface; + messages(): MessagesInterface; + traits(): OperationTraitsInterface; +} diff --git a/esm/models/operation.js b/esm/models/operation.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/operation.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/operations.d.ts b/esm/models/operations.d.ts new file mode 100644 index 000000000..378a78e84 --- /dev/null +++ b/esm/models/operations.d.ts @@ -0,0 +1,6 @@ +import type { Collection } from './collection'; +import type { OperationInterface } from './operation'; +export interface OperationsInterface extends Collection { + filterBySend(): OperationInterface[]; + filterByReceive(): OperationInterface[]; +} diff --git a/esm/models/operations.js b/esm/models/operations.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/operations.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/schema.d.ts b/esm/models/schema.d.ts new file mode 100644 index 000000000..6865ca86f --- /dev/null +++ b/esm/models/schema.d.ts @@ -0,0 +1,56 @@ +import type { BaseModel } from './base'; +import type { ExtensionsMixinInterface, ExternalDocumentationMixinInterface } from './mixins'; +import type { v2 } from '../spec-types'; +export interface SchemaInterface extends BaseModel, ExtensionsMixinInterface, ExternalDocumentationMixinInterface { + uid(): string; + $comment(): string | undefined; + $id(): string | undefined; + $schema(): string; + additionalItems(): boolean | SchemaInterface; + additionalProperties(): boolean | SchemaInterface; + allOf(): Array | undefined; + anyOf(): Array | undefined; + const(): any; + contains(): SchemaInterface | undefined; + contentEncoding(): string | undefined; + contentMediaType(): string | undefined; + default(): any; + definitions(): Record | undefined; + description(): string | undefined; + dependencies(): Record> | undefined; + deprecated(): boolean; + discriminator(): string | undefined; + else(): SchemaInterface | undefined; + enum(): Array | undefined; + examples(): Array | undefined; + exclusiveMaximum(): number | undefined; + exclusiveMinimum(): number | undefined; + format(): string | undefined; + isBooleanSchema(): boolean; + if(): SchemaInterface | undefined; + isCircular(): boolean; + items(): SchemaInterface | Array | undefined; + maximum(): number | undefined; + maxItems(): number | undefined; + maxLength(): number | undefined; + maxProperties(): number | undefined; + minimum(): number | undefined; + minItems(): number | undefined; + minLength(): number | undefined; + minProperties(): number | undefined; + multipleOf(): number | undefined; + not(): SchemaInterface | undefined; + oneOf(): Array | undefined; + pattern(): string | undefined; + patternProperties(): Record | undefined; + properties(): Record | undefined; + property(name: string): SchemaInterface | undefined; + propertyNames(): SchemaInterface | undefined; + readOnly(): boolean | undefined; + required(): Array | undefined; + then(): SchemaInterface | undefined; + title(): string | undefined; + type(): string | Array | undefined; + uniqueItems(): boolean | undefined; + writeOnly(): boolean | undefined; +} diff --git a/esm/models/schema.js b/esm/models/schema.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/schema.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/schemas.d.ts b/esm/models/schemas.d.ts new file mode 100644 index 000000000..8985decf1 --- /dev/null +++ b/esm/models/schemas.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { SchemaInterface } from './schema'; +export declare type SchemasInterface = Collection; diff --git a/esm/models/schemas.js b/esm/models/schemas.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/schemas.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/security-requirement.d.ts b/esm/models/security-requirement.d.ts new file mode 100644 index 000000000..e56dbf50e --- /dev/null +++ b/esm/models/security-requirement.d.ts @@ -0,0 +1,6 @@ +import type { BaseModel } from './base'; +import type { SecuritySchemeInterface } from './security-scheme'; +export interface SecurityRequirementInterface extends BaseModel { + scheme(): SecuritySchemeInterface; + scopes(): string[]; +} diff --git a/esm/models/security-requirement.js b/esm/models/security-requirement.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/security-requirement.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/security-requirements.d.ts b/esm/models/security-requirements.d.ts new file mode 100644 index 000000000..223d629cc --- /dev/null +++ b/esm/models/security-requirements.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { SecurityRequirementInterface } from './security-requirement'; +export declare type SecurityRequirementsInterface = Collection; diff --git a/esm/models/security-requirements.js b/esm/models/security-requirements.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/security-requirements.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/security-scheme.d.ts b/esm/models/security-scheme.d.ts new file mode 100644 index 000000000..c891e3af3 --- /dev/null +++ b/esm/models/security-scheme.d.ts @@ -0,0 +1,13 @@ +import type { BaseModel } from './base'; +import type { OAuthFlowsInterface } from './oauth-flows'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +export interface SecuritySchemeInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { + id(): string; + hasBearerFormat(): boolean; + bearerFormat(): string | undefined; + openIdConnectUrl(): string | undefined; + scheme(): string | undefined; + flows(): OAuthFlowsInterface | undefined; + type(): string; + in(): string | undefined; +} diff --git a/esm/models/security-scheme.js b/esm/models/security-scheme.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/security-scheme.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/security-schemes.d.ts b/esm/models/security-schemes.d.ts new file mode 100644 index 000000000..2b8b7642b --- /dev/null +++ b/esm/models/security-schemes.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { SecuritySchemeInterface } from './security-scheme'; +export declare type SecuritySchemesInterface = Collection; diff --git a/esm/models/security-schemes.js b/esm/models/security-schemes.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/security-schemes.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/server-variable.d.ts b/esm/models/server-variable.d.ts new file mode 100644 index 000000000..85faa6989 --- /dev/null +++ b/esm/models/server-variable.d.ts @@ -0,0 +1,10 @@ +import type { BaseModel } from './base'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +export interface ServerVariableInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { + id(): string; + hasDefaultValue(): boolean; + defaultValue(): string | undefined; + hasAllowedValues(): boolean; + allowedValues(): Array; + examples(): Array; +} diff --git a/esm/models/server-variable.js b/esm/models/server-variable.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/server-variable.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/server-variables.d.ts b/esm/models/server-variables.d.ts new file mode 100644 index 000000000..dfe43deb8 --- /dev/null +++ b/esm/models/server-variables.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { ServerVariableInterface } from './server-variable'; +export declare type ServerVariablesInterface = Collection; diff --git a/esm/models/server-variables.js b/esm/models/server-variables.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/server-variables.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/server.d.ts b/esm/models/server.d.ts new file mode 100644 index 000000000..c4cf19dbe --- /dev/null +++ b/esm/models/server.d.ts @@ -0,0 +1,19 @@ +import type { BaseModel } from './base'; +import type { ChannelsInterface } from './channels'; +import type { MessagesInterface } from './messages'; +import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +import type { OperationsInterface } from './operations'; +import type { ServerVariablesInterface } from './server-variables'; +import type { SecurityRequirementsInterface } from './security-requirements'; +export interface ServerInterface extends BaseModel, DescriptionMixinInterface, BindingsMixinInterface, ExtensionsMixinInterface { + id(): string; + url(): string; + protocol(): string; + protocolVersion(): string | undefined; + hasProtocolVersion(): boolean; + channels(): ChannelsInterface; + operations(): OperationsInterface; + messages(): MessagesInterface; + variables(): ServerVariablesInterface; + security(): SecurityRequirementsInterface[]; +} diff --git a/esm/models/server.js b/esm/models/server.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/server.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/servers.d.ts b/esm/models/servers.d.ts new file mode 100644 index 000000000..3108b996e --- /dev/null +++ b/esm/models/servers.d.ts @@ -0,0 +1,6 @@ +import type { Collection } from './collection'; +import type { ServerInterface } from './server'; +export interface ServersInterface extends Collection { + filterBySend(): ServerInterface[]; + filterByReceive(): ServerInterface[]; +} diff --git a/esm/models/servers.js b/esm/models/servers.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/servers.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/tag.d.ts b/esm/models/tag.d.ts new file mode 100644 index 000000000..019512db2 --- /dev/null +++ b/esm/models/tag.d.ts @@ -0,0 +1,5 @@ +import type { BaseModel } from './base'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface } from './mixins'; +export interface TagInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface { + name(): string; +} diff --git a/esm/models/tag.js b/esm/models/tag.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/tag.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/tags.d.ts b/esm/models/tags.d.ts new file mode 100644 index 000000000..d519e6de9 --- /dev/null +++ b/esm/models/tags.d.ts @@ -0,0 +1,3 @@ +import type { Collection } from './collection'; +import type { TagInterface } from './tag'; +export declare type TagsInterface = Collection; diff --git a/esm/models/tags.js b/esm/models/tags.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/models/tags.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/models/utils.d.ts b/esm/models/utils.d.ts new file mode 100644 index 000000000..91938e617 --- /dev/null +++ b/esm/models/utils.d.ts @@ -0,0 +1,10 @@ +import type { BaseModel, ModelMetadata } from './base'; +import type { DetailedAsyncAPI } from '../types'; +export interface Constructor extends Function { + new (...any: any[]): T; +} +export declare type InferModelData = T extends BaseModel ? J : never; +export declare type InferModelMetadata = T extends BaseModel ? M : never; +export declare function createModel(Model: Constructor, value: InferModelData, meta: Omit & { + asyncapi?: DetailedAsyncAPI; +} & InferModelMetadata, parent?: BaseModel): T; diff --git a/esm/models/utils.js b/esm/models/utils.js new file mode 100644 index 000000000..56404c27f --- /dev/null +++ b/esm/models/utils.js @@ -0,0 +1,3 @@ +export function createModel(Model, value, meta, parent) { + return new Model(value, Object.assign(Object.assign({}, meta), { asyncapi: meta.asyncapi || (parent === null || parent === void 0 ? void 0 : parent.meta().asyncapi) })); +} diff --git a/esm/models/v2/asyncapi.d.ts b/esm/models/v2/asyncapi.d.ts new file mode 100644 index 000000000..a1e7468d0 --- /dev/null +++ b/esm/models/v2/asyncapi.d.ts @@ -0,0 +1,26 @@ +import { BaseModel } from '../base'; +import type { AsyncAPIDocumentInterface } from '../asyncapi'; +import type { InfoInterface } from '../info'; +import type { ServersInterface } from '../servers'; +import type { ChannelsInterface } from '../channels'; +import type { ComponentsInterface } from '../components'; +import type { OperationsInterface } from '../operations'; +import type { MessagesInterface } from '../messages'; +import type { SchemasInterface } from '../schemas'; +import type { SecuritySchemesInterface } from '../security-schemes'; +import type { ExtensionsInterface } from '../extensions'; +import type { v2 } from '../../spec-types'; +export declare class AsyncAPIDocument extends BaseModel implements AsyncAPIDocumentInterface { + version(): string; + defaultContentType(): string | undefined; + hasDefaultContentType(): boolean; + info(): InfoInterface; + servers(): ServersInterface; + channels(): ChannelsInterface; + operations(): OperationsInterface; + messages(): MessagesInterface; + schemas(): SchemasInterface; + securitySchemes(): SecuritySchemesInterface; + components(): ComponentsInterface; + extensions(): ExtensionsInterface; +} diff --git a/esm/models/v2/asyncapi.js b/esm/models/v2/asyncapi.js new file mode 100644 index 000000000..ec643d5e9 --- /dev/null +++ b/esm/models/v2/asyncapi.js @@ -0,0 +1,57 @@ +import { BaseModel } from '../base'; +import { Info } from './info'; +import { Channels } from './channels'; +import { Channel } from './channel'; +import { Components } from './components'; +import { Messages } from './messages'; +import { Operations } from './operations'; +import { Servers } from './servers'; +import { Server } from './server'; +import { SecuritySchemes } from './security-schemes'; +import { SecurityScheme } from './security-scheme'; +import { Schemas } from './schemas'; +import { extensions } from './mixins'; +import { tilde } from '../../utils'; +export class AsyncAPIDocument extends BaseModel { + version() { + return this._json.asyncapi; + } + defaultContentType() { + return this._json.defaultContentType; + } + hasDefaultContentType() { + return !!this._json.defaultContentType; + } + info() { + return this.createModel(Info, this._json.info, { pointer: '/info' }); + } + servers() { + return new Servers(Object.entries(this._json.servers || {}).map(([serverName, server]) => this.createModel(Server, server, { id: serverName, pointer: `/servers/${serverName}` }))); + } + channels() { + return new Channels(Object.entries(this._json.channels || {}).map(([channelAddress, channel]) => this.createModel(Channel, channel, { id: channelAddress, address: channelAddress, pointer: `/channels/${tilde(channelAddress)}` }))); + } + operations() { + const operations = []; + this.channels().forEach(channel => operations.push(...channel.operations().all())); + return new Operations(operations); + } + messages() { + const messages = []; + this.operations().forEach(operation => messages.push(...operation.messages().all())); + return new Messages(messages); + } + schemas() { + return new Schemas([]); + } + securitySchemes() { + var _a; + return new SecuritySchemes(Object.entries(((_a = this._json.components) === null || _a === void 0 ? void 0 : _a.securitySchemes) || {}).map(([securitySchemeName, securityScheme]) => this.createModel(SecurityScheme, securityScheme, { id: securitySchemeName, pointer: `/components/securitySchemes/${securitySchemeName}` }))); + } + components() { + return this.createModel(Components, this._json.components || {}, { pointer: '/components' }); + } + extensions() { + return extensions(this); + } +} diff --git a/esm/models/v2/binding.d.ts b/esm/models/v2/binding.d.ts new file mode 100644 index 000000000..6e13a3caf --- /dev/null +++ b/esm/models/v2/binding.d.ts @@ -0,0 +1,12 @@ +import { BaseModel } from '../base'; +import type { BindingInterface } from '../binding'; +import type { ExtensionsInterface } from '../extensions'; +import type { v2 } from '../../spec-types'; +export declare class Binding = Record> extends BaseModel implements BindingInterface { + protocol(): string; + version(): string; + value(): V; + extensions(): ExtensionsInterface; +} diff --git a/esm/models/v2/binding.js b/esm/models/v2/binding.js new file mode 100644 index 000000000..a205c21e8 --- /dev/null +++ b/esm/models/v2/binding.js @@ -0,0 +1,18 @@ +import { BaseModel } from '../base'; +import { extensions } from './mixins'; +export class Binding extends BaseModel { + protocol() { + return this._meta.protocol; + } + version() { + return this._json.bindingVersion || 'latest'; + } + value() { + const value = Object.assign({}, this._json); + delete value.bindingVersion; + return value; + } + extensions() { + return extensions(this); + } +} diff --git a/esm/models/v2/bindings.d.ts b/esm/models/v2/bindings.d.ts new file mode 100644 index 000000000..366f2d369 --- /dev/null +++ b/esm/models/v2/bindings.d.ts @@ -0,0 +1,8 @@ +import { Collection } from '../collection'; +import type { BindingsInterface } from '../bindings'; +import type { BindingInterface } from '../binding'; +import type { ExtensionsInterface } from '../extensions'; +export declare class Bindings extends Collection implements BindingsInterface { + get = Record>(name: string): BindingInterface | undefined; + extensions(): ExtensionsInterface; +} diff --git a/esm/models/v2/bindings.js b/esm/models/v2/bindings.js new file mode 100644 index 000000000..19e2407a9 --- /dev/null +++ b/esm/models/v2/bindings.js @@ -0,0 +1,19 @@ +import { Collection } from '../collection'; +import { Extensions } from './extensions'; +import { Extension } from './extension'; +import { createModel } from '../utils'; +import { EXTENSION_REGEX } from '../../constants'; +export class Bindings extends Collection { + get(name) { + return this.collections.find(binding => binding.protocol() === name); + } + extensions() { + const extensions = []; + Object.entries(this._meta.originalData || {}).forEach(([id, value]) => { + if (EXTENSION_REGEX.test(id)) { + extensions.push(createModel(Extension, value, { id, pointer: `${this._meta.pointer}/${id}`, asyncapi: this._meta.asyncapi })); + } + }); + return new Extensions(extensions); + } +} diff --git a/esm/models/v2/channel-parameter.d.ts b/esm/models/v2/channel-parameter.d.ts new file mode 100644 index 000000000..ba1abeedd --- /dev/null +++ b/esm/models/v2/channel-parameter.d.ts @@ -0,0 +1,17 @@ +import { BaseModel } from '../base'; +import type { ChannelParameterInterface } from '../channel-parameter'; +import type { SchemaInterface } from '../schema'; +import type { ExtensionsInterface } from '../extensions'; +import type { v2 } from '../../spec-types'; +export declare class ChannelParameter extends BaseModel implements ChannelParameterInterface { + id(): string; + hasSchema(): boolean; + schema(): SchemaInterface | undefined; + hasLocation(): boolean; + location(): string | undefined; + hasDescription(): boolean; + description(): string | undefined; + extensions(): ExtensionsInterface; +} diff --git a/esm/models/v2/channel-parameter.js b/esm/models/v2/channel-parameter.js new file mode 100644 index 000000000..2db8d16f4 --- /dev/null +++ b/esm/models/v2/channel-parameter.js @@ -0,0 +1,31 @@ +import { BaseModel } from '../base'; +import { Schema } from './schema'; +import { hasDescription, description, extensions } from './mixins'; +export class ChannelParameter extends BaseModel { + id() { + return this._meta.id; + } + hasSchema() { + return !!this._json.schema; + } + schema() { + if (!this._json.schema) + return undefined; + return this.createModel(Schema, this._json.schema, { pointer: `${this._meta.pointer}/schema` }); + } + hasLocation() { + return !!this._json.location; + } + location() { + return this._json.location; + } + hasDescription() { + return hasDescription(this); + } + description() { + return description(this); + } + extensions() { + return extensions(this); + } +} diff --git a/esm/models/v2/channel-parameters.d.ts b/esm/models/v2/channel-parameters.d.ts new file mode 100644 index 000000000..93abd0a6e --- /dev/null +++ b/esm/models/v2/channel-parameters.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { ChannelParametersInterface } from '../channel-parameters'; +import type { ChannelParameterInterface } from '../channel-parameter'; +export declare class ChannelParameters extends Collection implements ChannelParametersInterface { + get(id: string): ChannelParameterInterface | undefined; +} diff --git a/esm/models/v2/channel-parameters.js b/esm/models/v2/channel-parameters.js new file mode 100644 index 000000000..4f6403734 --- /dev/null +++ b/esm/models/v2/channel-parameters.js @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +export class ChannelParameters extends Collection { + get(id) { + return this.collections.find(parameter => parameter.id() === id); + } +} diff --git a/esm/models/v2/channel.d.ts b/esm/models/v2/channel.d.ts new file mode 100644 index 000000000..669ca948b --- /dev/null +++ b/esm/models/v2/channel.d.ts @@ -0,0 +1,24 @@ +import { BaseModel } from '../base'; +import type { BindingsInterface } from '../bindings'; +import type { ChannelInterface } from '../channel'; +import type { ChannelParametersInterface } from '../channel-parameters'; +import type { ExtensionsInterface } from '../extensions'; +import type { MessagesInterface } from '../messages'; +import type { OperationsInterface } from '../operations'; +import type { ServersInterface } from '../servers'; +import type { v2 } from '../../spec-types'; +export declare class Channel extends BaseModel implements ChannelInterface { + id(): string; + address(): string; + hasDescription(): boolean; + description(): string | undefined; + servers(): ServersInterface; + operations(): OperationsInterface; + messages(): MessagesInterface; + parameters(): ChannelParametersInterface; + bindings(): BindingsInterface; + extensions(): ExtensionsInterface; +} diff --git a/esm/models/v2/channel.js b/esm/models/v2/channel.js new file mode 100644 index 000000000..9a37a97c3 --- /dev/null +++ b/esm/models/v2/channel.js @@ -0,0 +1,63 @@ +import { BaseModel } from '../base'; +import { ChannelParameters } from './channel-parameters'; +import { ChannelParameter } from './channel-parameter'; +import { Messages } from './messages'; +import { Operations } from './operations'; +import { Operation } from './operation'; +import { Servers } from './servers'; +import { Server } from './server'; +import { bindings, hasDescription, description, extensions } from './mixins'; +export class Channel extends BaseModel { + id() { + return this._meta.id; + } + address() { + return this._meta.address; + } + hasDescription() { + return hasDescription(this); + } + description() { + return description(this); + } + servers() { + var _a; + const servers = []; + const allowedServers = this._json.servers || []; + Object.entries(((_a = this._meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed.servers) || {}).forEach(([serverName, server]) => { + if (allowedServers.length === 0 || allowedServers.includes(serverName)) { + servers.push(this.createModel(Server, server, { id: serverName, pointer: `/servers/${serverName}` })); + } + }); + return new Servers(servers); + } + operations() { + const operations = []; + ['publish', 'subscribe'].forEach(operationAction => { + const id = this._json[operationAction] && this._json[operationAction].operationId || `${this.meta().id}_${operationAction}`; + if (this._json[operationAction]) { + operations.push(this.createModel(Operation, this._json[operationAction], { id, action: operationAction, pointer: `${this._meta.pointer}/${operationAction}` })); + } + }); + return new Operations(operations); + } + messages() { + const messages = []; + this.operations().forEach(operation => messages.push(...operation.messages().all())); + return new Messages(messages); + } + parameters() { + return new ChannelParameters(Object.entries(this._json.parameters || {}).map(([channelParameterName, channelParameter]) => { + return this.createModel(ChannelParameter, channelParameter, { + id: channelParameterName, + pointer: `${this._meta.pointer}/parameters/${channelParameterName}` + }); + })); + } + bindings() { + return bindings(this); + } + extensions() { + return extensions(this); + } +} diff --git a/esm/models/v2/channels.d.ts b/esm/models/v2/channels.d.ts new file mode 100644 index 000000000..01b199506 --- /dev/null +++ b/esm/models/v2/channels.d.ts @@ -0,0 +1,8 @@ +import { Collection } from '../collection'; +import type { ChannelsInterface } from '../channels'; +import type { ChannelInterface } from '../channel'; +export declare class Channels extends Collection implements ChannelsInterface { + get(id: string): ChannelInterface | undefined; + filterBySend(): ChannelInterface[]; + filterByReceive(): ChannelInterface[]; +} diff --git a/esm/models/v2/channels.js b/esm/models/v2/channels.js new file mode 100644 index 000000000..fa86c7cae --- /dev/null +++ b/esm/models/v2/channels.js @@ -0,0 +1,12 @@ +import { Collection } from '../collection'; +export class Channels extends Collection { + get(id) { + return this.collections.find(channel => channel.id() === id); + } + filterBySend() { + return this.filterBy(channel => channel.operations().filterBySend().length > 0); + } + filterByReceive() { + return this.filterBy(channel => channel.operations().filterByReceive().length > 0); + } +} diff --git a/esm/models/v2/components.d.ts b/esm/models/v2/components.d.ts new file mode 100644 index 000000000..3d4422373 --- /dev/null +++ b/esm/models/v2/components.d.ts @@ -0,0 +1,39 @@ +import { BaseModel } from '../base'; +import { Collection } from '../collection'; +import { CorrelationIds } from './correlation-ids'; +import type { BindingsInterface } from '../bindings'; +import type { ComponentsInterface } from '../components'; +import type { ExtensionsInterface } from '../extensions'; +import type { Constructor } from '../utils'; +import type { ServersInterface } from '../servers'; +import type { ChannelsInterface } from '../channels'; +import type { MessagesInterface } from '../messages'; +import type { SchemasInterface } from '../schemas'; +import type { ChannelParametersInterface } from '../channel-parameters'; +import type { ServerVariablesInterface } from '../server-variables'; +import type { OperationTraitsInterface } from '../operation-traits'; +import type { SecuritySchemesInterface } from '../security-schemes'; +import type { MessageTraitsInterface } from '../message-traits'; +import type { OperationsInterface } from '../operations'; +import type { v2 } from '../../spec-types'; +export declare class Components extends BaseModel implements ComponentsInterface { + servers(): ServersInterface; + channels(): ChannelsInterface; + messages(): MessagesInterface; + schemas(): SchemasInterface; + channelParameters(): ChannelParametersInterface; + serverVariables(): ServerVariablesInterface; + operations(): OperationsInterface; + operationTraits(): OperationTraitsInterface; + messageTraits(): MessageTraitsInterface; + correlationIds(): CorrelationIds; + securitySchemes(): SecuritySchemesInterface; + serverBindings(): Record; + channelBindings(): Record; + operationBindings(): Record; + messageBindings(): Record; + extensions(): ExtensionsInterface; + isEmpty(): boolean; + protected createCollection, T extends BaseModel>(itemsName: keyof v2.ComponentsObject, collectionModel: Constructor, itemModel: Constructor): M; + protected createBindings(itemsName: 'serverBindings' | 'channelBindings' | 'operationBindings' | 'messageBindings'): Record; +} diff --git a/esm/models/v2/components.js b/esm/models/v2/components.js new file mode 100644 index 000000000..db1589e0f --- /dev/null +++ b/esm/models/v2/components.js @@ -0,0 +1,97 @@ +import { BaseModel } from '../base'; +import { Bindings } from './bindings'; +import { Binding } from './binding'; +import { Channel } from './channel'; +import { ChannelParameter } from './channel-parameter'; +import { CorrelationId } from './correlation-id'; +import { MessageTrait } from './message-trait'; +import { OperationTrait } from './operation-trait'; +import { Schema } from './schema'; +import { SecurityScheme } from './security-scheme'; +import { Server } from './server'; +import { ServerVariable } from './server-variable'; +import { extensions } from './mixins'; +import { Servers } from './servers'; +import { Channels } from './channels'; +import { Messages } from './messages'; +import { Schemas } from './schemas'; +import { ChannelParameters } from './channel-parameters'; +import { ServerVariables } from './server-variables'; +import { OperationTraits } from './operation-traits'; +import { MessageTraits } from './message-traits'; +import { SecuritySchemes } from './security-schemes'; +import { CorrelationIds } from './correlation-ids'; +import { Operations } from './operations'; +import { Message } from './message'; +import { tilde } from '../../utils'; +export class Components extends BaseModel { + servers() { + return this.createCollection('servers', Servers, Server); + } + channels() { + return new Channels(Object.entries(this._json.channels || {}).map(([channelAddress, channel]) => this.createModel(Channel, channel, { id: channelAddress, address: '', pointer: `/components/channels/${tilde(channelAddress)}` }))); + } + messages() { + return this.createCollection('messages', Messages, Message); + } + schemas() { + return this.createCollection('schemas', Schemas, Schema); + } + channelParameters() { + return this.createCollection('parameters', ChannelParameters, ChannelParameter); + } + serverVariables() { + return this.createCollection('serverVariables', ServerVariables, ServerVariable); + } + operations() { + const operations = []; + this.channels().forEach(channel => operations.push(...channel.operations().all())); + return new Operations(operations); + } + operationTraits() { + return this.createCollection('operationTraits', OperationTraits, OperationTrait); + } + messageTraits() { + return this.createCollection('messageTraits', MessageTraits, MessageTrait); + } + correlationIds() { + return this.createCollection('correlationIds', CorrelationIds, CorrelationId); + } + securitySchemes() { + return this.createCollection('securitySchemes', SecuritySchemes, SecurityScheme); + } + serverBindings() { + return this.createBindings('serverBindings'); + } + channelBindings() { + return this.createBindings('channelBindings'); + } + operationBindings() { + return this.createBindings('operationBindings'); + } + messageBindings() { + return this.createBindings('messageBindings'); + } + extensions() { + return extensions(this); + } + isEmpty() { + return Object.keys(this._json).length === 0; + } + createCollection(itemsName, collectionModel, itemModel) { + const collectionItems = []; + Object.entries(this._json[itemsName] || {}).forEach(([id, item]) => { + collectionItems.push(this.createModel(itemModel, item, { id, pointer: `/components/${itemsName}/${id}` })); + }); + return new collectionModel(collectionItems); + } + createBindings(itemsName) { + return Object.entries(this._json[itemsName] || {}).reduce((bindings, [name, item]) => { + const bindingsData = item || {}; + const asyncapi = this.meta('asyncapi'); + const pointer = `components/${itemsName}/${name}`; + bindings[name] = new Bindings(Object.entries(bindingsData).map(([protocol, binding]) => this.createModel(Binding, binding, { protocol, pointer: `${pointer}/${protocol}` })), { originalData: bindingsData, asyncapi, pointer }); + return bindings; + }, {}); + } +} diff --git a/esm/models/v2/contact.d.ts b/esm/models/v2/contact.d.ts new file mode 100644 index 000000000..cde7fe085 --- /dev/null +++ b/esm/models/v2/contact.d.ts @@ -0,0 +1,13 @@ +import { BaseModel } from '../base'; +import type { ContactInterface } from '../contact'; +import type { ExtensionsInterface } from '../extensions'; +import type { v2 } from '../../spec-types'; +export declare class Contact extends BaseModel implements ContactInterface { + hasName(): boolean; + name(): string | undefined; + hasUrl(): boolean; + url(): string | undefined; + hasEmail(): boolean; + email(): string | undefined; + extensions(): ExtensionsInterface; +} diff --git a/esm/models/v2/contact.js b/esm/models/v2/contact.js new file mode 100644 index 000000000..5c92d0a87 --- /dev/null +++ b/esm/models/v2/contact.js @@ -0,0 +1,25 @@ +import { BaseModel } from '../base'; +import { extensions } from './mixins'; +export class Contact extends BaseModel { + hasName() { + return !!this._json.name; + } + name() { + return this._json.name; + } + hasUrl() { + return !!this._json.url; + } + url() { + return this._json.url; + } + hasEmail() { + return !!this._json.email; + } + email() { + return this._json.email; + } + extensions() { + return extensions(this); + } +} diff --git a/esm/models/v2/correlation-id.d.ts b/esm/models/v2/correlation-id.d.ts new file mode 100644 index 000000000..cb1dc1ad6 --- /dev/null +++ b/esm/models/v2/correlation-id.d.ts @@ -0,0 +1,11 @@ +import { BaseModel } from '../base'; +import type { CorrelationIdInterface } from '../correlation-id'; +import type { ExtensionsInterface } from '../extensions'; +import type { v2 } from '../../spec-types'; +export declare class CorrelationId extends BaseModel implements CorrelationIdInterface { + hasDescription(): boolean; + description(): string | undefined; + hasLocation(): boolean; + location(): string | undefined; + extensions(): ExtensionsInterface; +} diff --git a/esm/models/v2/correlation-id.js b/esm/models/v2/correlation-id.js new file mode 100644 index 000000000..2c5f42ecb --- /dev/null +++ b/esm/models/v2/correlation-id.js @@ -0,0 +1,19 @@ +import { BaseModel } from '../base'; +import { hasDescription, description, extensions } from './mixins'; +export class CorrelationId extends BaseModel { + hasDescription() { + return hasDescription(this); + } + description() { + return description(this); + } + hasLocation() { + return !!this._json.location; + } + location() { + return this._json.location; + } + extensions() { + return extensions(this); + } +} diff --git a/esm/models/v2/correlation-ids.d.ts b/esm/models/v2/correlation-ids.d.ts new file mode 100644 index 000000000..77f81c952 --- /dev/null +++ b/esm/models/v2/correlation-ids.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { CorrelationIdsInterface } from '../correlation-ids'; +import type { CorrelationIdInterface } from '../correlation-id'; +export declare class CorrelationIds extends Collection implements CorrelationIdsInterface { + get(id: string): CorrelationIdInterface | undefined; +} diff --git a/esm/models/v2/correlation-ids.js b/esm/models/v2/correlation-ids.js new file mode 100644 index 000000000..003666fc6 --- /dev/null +++ b/esm/models/v2/correlation-ids.js @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +export class CorrelationIds extends Collection { + get(id) { + return this.collections.find(correlationId => correlationId.meta('id') === id); + } +} diff --git a/esm/models/v2/extension.d.ts b/esm/models/v2/extension.d.ts new file mode 100644 index 000000000..6ebfad81c --- /dev/null +++ b/esm/models/v2/extension.d.ts @@ -0,0 +1,10 @@ +import { BaseModel } from '../base'; +import type { ExtensionInterface } from '../extension'; +import type { v2 } from '../../spec-types'; +export declare class Extension extends BaseModel, { + id: string; +}> implements ExtensionInterface { + id(): string; + version(): string; + value(): V; +} diff --git a/esm/models/v2/extension.js b/esm/models/v2/extension.js new file mode 100644 index 000000000..013f5caa1 --- /dev/null +++ b/esm/models/v2/extension.js @@ -0,0 +1,12 @@ +import { BaseModel } from '../base'; +export class Extension extends BaseModel { + id() { + return this._meta.id; + } + version() { + return 'to implement'; + } + value() { + return this._json; + } +} diff --git a/esm/models/v2/extensions.d.ts b/esm/models/v2/extensions.d.ts new file mode 100644 index 000000000..3033f8a44 --- /dev/null +++ b/esm/models/v2/extensions.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExtensionInterface } from '../extension'; +export declare class Extensions extends Collection implements ExtensionsInterface { + get(id: string): ExtensionInterface | undefined; +} diff --git a/esm/models/v2/extensions.js b/esm/models/v2/extensions.js new file mode 100644 index 000000000..c08bbc30b --- /dev/null +++ b/esm/models/v2/extensions.js @@ -0,0 +1,7 @@ +import { Collection } from '../collection'; +export class Extensions extends Collection { + get(id) { + id = id.startsWith('x-') ? id : `x-${id}`; + return this.collections.find(ext => ext.id() === id); + } +} diff --git a/esm/models/v2/external-docs.d.ts b/esm/models/v2/external-docs.d.ts new file mode 100644 index 000000000..279640c89 --- /dev/null +++ b/esm/models/v2/external-docs.d.ts @@ -0,0 +1,10 @@ +import { BaseModel } from '../base'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { ExtensionsInterface } from '../extensions'; +import type { v2 } from '../../spec-types'; +export declare class ExternalDocumentation extends BaseModel implements ExternalDocumentationInterface { + url(): string; + hasDescription(): boolean; + description(): string | undefined; + extensions(): ExtensionsInterface; +} diff --git a/esm/models/v2/external-docs.js b/esm/models/v2/external-docs.js new file mode 100644 index 000000000..4f179e56d --- /dev/null +++ b/esm/models/v2/external-docs.js @@ -0,0 +1,16 @@ +import { BaseModel } from '../base'; +import { hasDescription, description, extensions } from './mixins'; +export class ExternalDocumentation extends BaseModel { + url() { + return this._json.url; + } + hasDescription() { + return hasDescription(this); + } + description() { + return description(this); + } + extensions() { + return extensions(this); + } +} diff --git a/esm/models/v2/index.d.ts b/esm/models/v2/index.d.ts new file mode 100644 index 000000000..5ce2f2622 --- /dev/null +++ b/esm/models/v2/index.d.ts @@ -0,0 +1,37 @@ +export { AsyncAPIDocument as AsyncAPIDocumentV2 } from './asyncapi'; +export { Binding as BindingV2 } from './binding'; +export { Bindings as BindingsV2 } from './bindings'; +export { ChannelParameter as ChannelParameterV2 } from './channel-parameter'; +export { ChannelParameters as ChannelParametersV2 } from './channel-parameters'; +export { Channel as ChannelV2 } from './channel'; +export { Channels as ChannelsV2 } from './channels'; +export { Components as ComponentsV2 } from './components'; +export { Contact as ContactV2 } from './contact'; +export { CorrelationId as CorrelationIdV2 } from './correlation-id'; +export { Extension as ExtensionV2 } from './extension'; +export { Extensions as ExtensionsV2 } from './extensions'; +export { ExternalDocumentation as ExternalDocumentationV2 } from './external-docs'; +export { Info as InfoV2 } from './info'; +export { License as LicenseV2 } from './license'; +export { MessageExample as MessageExampleV2 } from './message-example'; +export { MessageExamples as MessageExamplesV2 } from './message-examples'; +export { MessageTrait as MessageTraitV2 } from './message-trait'; +export { MessageTraits as MessageTraitsV2 } from './message-traits'; +export { Message as MessageV2 } from './message'; +export { Messages as MessagesV2 } from './messages'; +export { OAuthFlow as OAuthFlowV2 } from './oauth-flow'; +export { OAuthFlows as OAuthFlowsV2 } from './oauth-flows'; +export { OperationTrait as OperationTraitV2 } from './operation-trait'; +export { OperationTraits as OperationTraitsV2 } from './operation-traits'; +export { Operation as OperationV2 } from './operation'; +export { Operations as OperationsV2 } from './operations'; +export { Schema as SchemaV2 } from './schema'; +export { Schemas as SchemasV2 } from './schemas'; +export { SecurityScheme as SecuritySchemeV2 } from './security-scheme'; +export { SecuritySchemes as SecuritySchemesV2 } from './security-schemes'; +export { ServerVariable as ServerVariableV2 } from './server-variable'; +export { ServerVariables as ServerVariablesV2 } from './server-variables'; +export { Server as ServerV2 } from './server'; +export { Servers as ServersV2 } from './servers'; +export { Tag as TagV2 } from './tag'; +export { Tags as TagsV2 } from './tags'; diff --git a/esm/models/v2/index.js b/esm/models/v2/index.js new file mode 100644 index 000000000..5ce2f2622 --- /dev/null +++ b/esm/models/v2/index.js @@ -0,0 +1,37 @@ +export { AsyncAPIDocument as AsyncAPIDocumentV2 } from './asyncapi'; +export { Binding as BindingV2 } from './binding'; +export { Bindings as BindingsV2 } from './bindings'; +export { ChannelParameter as ChannelParameterV2 } from './channel-parameter'; +export { ChannelParameters as ChannelParametersV2 } from './channel-parameters'; +export { Channel as ChannelV2 } from './channel'; +export { Channels as ChannelsV2 } from './channels'; +export { Components as ComponentsV2 } from './components'; +export { Contact as ContactV2 } from './contact'; +export { CorrelationId as CorrelationIdV2 } from './correlation-id'; +export { Extension as ExtensionV2 } from './extension'; +export { Extensions as ExtensionsV2 } from './extensions'; +export { ExternalDocumentation as ExternalDocumentationV2 } from './external-docs'; +export { Info as InfoV2 } from './info'; +export { License as LicenseV2 } from './license'; +export { MessageExample as MessageExampleV2 } from './message-example'; +export { MessageExamples as MessageExamplesV2 } from './message-examples'; +export { MessageTrait as MessageTraitV2 } from './message-trait'; +export { MessageTraits as MessageTraitsV2 } from './message-traits'; +export { Message as MessageV2 } from './message'; +export { Messages as MessagesV2 } from './messages'; +export { OAuthFlow as OAuthFlowV2 } from './oauth-flow'; +export { OAuthFlows as OAuthFlowsV2 } from './oauth-flows'; +export { OperationTrait as OperationTraitV2 } from './operation-trait'; +export { OperationTraits as OperationTraitsV2 } from './operation-traits'; +export { Operation as OperationV2 } from './operation'; +export { Operations as OperationsV2 } from './operations'; +export { Schema as SchemaV2 } from './schema'; +export { Schemas as SchemasV2 } from './schemas'; +export { SecurityScheme as SecuritySchemeV2 } from './security-scheme'; +export { SecuritySchemes as SecuritySchemesV2 } from './security-schemes'; +export { ServerVariable as ServerVariableV2 } from './server-variable'; +export { ServerVariables as ServerVariablesV2 } from './server-variables'; +export { Server as ServerV2 } from './server'; +export { Servers as ServersV2 } from './servers'; +export { Tag as TagV2 } from './tag'; +export { Tags as TagsV2 } from './tags'; diff --git a/esm/models/v2/info.d.ts b/esm/models/v2/info.d.ts new file mode 100644 index 000000000..6f87dbdd8 --- /dev/null +++ b/esm/models/v2/info.d.ts @@ -0,0 +1,26 @@ +import { BaseModel } from '../base'; +import type { ContactInterface } from '../contact'; +import type { InfoInterface } from '../info'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { LicenseInterface } from '../license'; +import type { TagsInterface } from '../tags'; +import type { v2 } from '../../spec-types'; +export declare class Info extends BaseModel implements InfoInterface { + title(): string; + version(): string; + hasId(): boolean; + id(): string | undefined; + hasDescription(): boolean; + description(): string | undefined; + hasTermsOfService(): boolean; + termsOfService(): string | undefined; + hasContact(): boolean; + contact(): ContactInterface | undefined; + hasLicense(): boolean; + license(): LicenseInterface | undefined; + hasExternalDocs(): boolean; + externalDocs(): ExternalDocumentationInterface | undefined; + tags(): TagsInterface; + extensions(): ExtensionsInterface; +} diff --git a/esm/models/v2/info.js b/esm/models/v2/info.js new file mode 100644 index 000000000..f11d8dabe --- /dev/null +++ b/esm/models/v2/info.js @@ -0,0 +1,62 @@ +import { BaseModel } from '../base'; +import { Contact } from './contact'; +import { ExternalDocumentation } from './external-docs'; +import { License } from './license'; +import { Tags } from './tags'; +import { Tag } from './tag'; +import { hasDescription, description, extensions } from './mixins'; +export class Info extends BaseModel { + title() { + return this._json.title; + } + version() { + return this._json.version; + } + hasId() { + return !!this._meta.asyncapi.parsed.id; + } + id() { + return this._meta.asyncapi.parsed.id; + } + hasDescription() { + return hasDescription(this); + } + description() { + return description(this); + } + hasTermsOfService() { + return !!this._json.termsOfService; + } + termsOfService() { + return this._json.termsOfService; + } + hasContact() { + return Object.keys(this._json.contact || {}).length > 0; + } + contact() { + const contact = this._json.contact; + return contact && this.createModel(Contact, contact, { pointer: '/info/contact' }); + } + hasLicense() { + return Object.keys(this._json.license || {}).length > 0; + } + license() { + const license = this._json.license; + return license && this.createModel(License, license, { pointer: '/info/license' }); + } + hasExternalDocs() { + return Object.keys(this._meta.asyncapi.parsed.externalDocs || {}).length > 0; + } + externalDocs() { + if (this.hasExternalDocs()) { + return this.createModel(ExternalDocumentation, this._meta.asyncapi.parsed.externalDocs, { pointer: '/externalDocs' }); + } + } + tags() { + const tags = this._meta.asyncapi.parsed.tags || []; + return new Tags(tags.map((tag, idx) => this.createModel(Tag, tag, { pointer: `/tags/${idx}` }))); + } + extensions() { + return extensions(this); + } +} diff --git a/esm/models/v2/license.d.ts b/esm/models/v2/license.d.ts new file mode 100644 index 000000000..351865595 --- /dev/null +++ b/esm/models/v2/license.d.ts @@ -0,0 +1,10 @@ +import { BaseModel } from '../base'; +import type { ExtensionsInterface } from '../extensions'; +import type { LicenseInterface } from '../license'; +import type { v2 } from '../../spec-types'; +export declare class License extends BaseModel implements LicenseInterface { + name(): string; + hasUrl(): boolean; + url(): string | undefined; + extensions(): ExtensionsInterface; +} diff --git a/esm/models/v2/license.js b/esm/models/v2/license.js new file mode 100644 index 000000000..4b4471083 --- /dev/null +++ b/esm/models/v2/license.js @@ -0,0 +1,16 @@ +import { BaseModel } from '../base'; +import { extensions } from './mixins'; +export class License extends BaseModel { + name() { + return this._json.name; + } + hasUrl() { + return !!this._json.url; + } + url() { + return this._json.url; + } + extensions() { + return extensions(this); + } +} diff --git a/esm/models/v2/message-example.d.ts b/esm/models/v2/message-example.d.ts new file mode 100644 index 000000000..e8a843b55 --- /dev/null +++ b/esm/models/v2/message-example.d.ts @@ -0,0 +1,15 @@ +import { BaseModel } from '../base'; +import type { ExtensionsInterface } from '../extensions'; +import type { MessageExampleInterface } from '../message-example'; +import type { v2 } from '../../spec-types'; +export declare class MessageExample extends BaseModel implements MessageExampleInterface { + hasName(): boolean; + name(): string | undefined; + hasSummary(): boolean; + summary(): string | undefined; + hasHeaders(): boolean; + headers(): Record | undefined; + hasPayload(): boolean; + payload(): Record | undefined; + extensions(): ExtensionsInterface; +} diff --git a/esm/models/v2/message-example.js b/esm/models/v2/message-example.js new file mode 100644 index 000000000..1ac519e15 --- /dev/null +++ b/esm/models/v2/message-example.js @@ -0,0 +1,31 @@ +import { BaseModel } from '../base'; +import { extensions } from './mixins'; +export class MessageExample extends BaseModel { + hasName() { + return !!this._json.name; + } + name() { + return this._json.name; + } + hasSummary() { + return !!this._json.summary; + } + summary() { + return this._json.summary; + } + hasHeaders() { + return !!this._json.headers; + } + headers() { + return this._json.headers; + } + hasPayload() { + return !!this._json.payload; + } + payload() { + return this._json.payload; + } + extensions() { + return extensions(this); + } +} diff --git a/esm/models/v2/message-examples.d.ts b/esm/models/v2/message-examples.d.ts new file mode 100644 index 000000000..0784e9dc1 --- /dev/null +++ b/esm/models/v2/message-examples.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { MessageExamplesInterface } from '../message-examples'; +import type { MessageExampleInterface } from '../message-example'; +export declare class MessageExamples extends Collection implements MessageExamplesInterface { + get(name: string): MessageExampleInterface | undefined; +} diff --git a/esm/models/v2/message-examples.js b/esm/models/v2/message-examples.js new file mode 100644 index 000000000..2ba751d5b --- /dev/null +++ b/esm/models/v2/message-examples.js @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +export class MessageExamples extends Collection { + get(name) { + return this.collections.find(example => example.name() === name); + } +} diff --git a/esm/models/v2/message-trait.d.ts b/esm/models/v2/message-trait.d.ts new file mode 100644 index 000000000..50e2dd642 --- /dev/null +++ b/esm/models/v2/message-trait.d.ts @@ -0,0 +1,38 @@ +import { BaseModel } from '../base'; +import type { BindingsInterface } from '../bindings'; +import type { CorrelationIdInterface } from '../correlation-id'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { MessageExamplesInterface } from '../message-examples'; +import type { MessageTraitInterface } from '../message-trait'; +import type { SchemaInterface } from '../schema'; +import type { TagsInterface } from '../tags'; +import type { v2 } from '../../spec-types'; +export declare class MessageTrait extends BaseModel implements MessageTraitInterface { + id(): string; + schemaFormat(): string; + hasMessageId(): boolean; + messageId(): string | undefined; + hasCorrelationId(): boolean; + correlationId(): CorrelationIdInterface | undefined; + hasContentType(): boolean; + contentType(): string | undefined; + hasHeaders(): boolean; + headers(): SchemaInterface | undefined; + hasName(): boolean; + name(): string | undefined; + hasTitle(): boolean; + title(): string | undefined; + hasSummary(): boolean; + summary(): string | undefined; + hasDescription(): boolean; + description(): string | undefined; + hasExternalDocs(): boolean; + externalDocs(): ExternalDocumentationInterface | undefined; + examples(): MessageExamplesInterface; + tags(): TagsInterface; + bindings(): BindingsInterface; + extensions(): ExtensionsInterface; +} diff --git a/esm/models/v2/message-trait.js b/esm/models/v2/message-trait.js new file mode 100644 index 000000000..2fd35ea43 --- /dev/null +++ b/esm/models/v2/message-trait.js @@ -0,0 +1,90 @@ +import { BaseModel } from '../base'; +import { CorrelationId } from './correlation-id'; +import { MessageExamples } from './message-examples'; +import { MessageExample } from './message-example'; +import { Schema } from './schema'; +import { xParserMessageName } from '../../constants'; +import { getDefaultSchemaFormat } from '../../schema-parser'; +import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from './mixins'; +export class MessageTrait extends BaseModel { + id() { + var _a; + return this.messageId() || this._meta.id || ((_a = this.extensions().get(xParserMessageName)) === null || _a === void 0 ? void 0 : _a.value()); + } + schemaFormat() { + return this._json.schemaFormat || getDefaultSchemaFormat(this._meta.asyncapi.semver.version); + } + hasMessageId() { + return !!this._json.messageId; + } + messageId() { + return this._json.messageId; + } + hasCorrelationId() { + return !!this._json.correlationId; + } + correlationId() { + if (!this._json.correlationId) + return undefined; + return this.createModel(CorrelationId, this._json.correlationId, { pointer: `${this._meta.pointer}/correlationId` }); + } + hasContentType() { + return !!this._json.contentType; + } + contentType() { + var _a; + return this._json.contentType || ((_a = this._meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed.defaultContentType); + } + hasHeaders() { + return !!this._json.headers; + } + headers() { + if (!this._json.headers) + return undefined; + return this.createModel(Schema, this._json.headers, { pointer: `${this._meta.pointer}/headers` }); + } + hasName() { + return !!this._json.name; + } + name() { + return this._json.name; + } + hasTitle() { + return !!this._json.title; + } + title() { + return this._json.title; + } + hasSummary() { + return !!this._json.summary; + } + summary() { + return this._json.summary; + } + hasDescription() { + return hasDescription(this); + } + description() { + return description(this); + } + hasExternalDocs() { + return hasExternalDocs(this); + } + externalDocs() { + return externalDocs(this); + } + examples() { + return new MessageExamples((this._json.examples || []).map((example, index) => { + return this.createModel(MessageExample, example, { pointer: `${this._meta.pointer}/examples/${index}` }); + })); + } + tags() { + return tags(this); + } + bindings() { + return bindings(this); + } + extensions() { + return extensions(this); + } +} diff --git a/esm/models/v2/message-traits.d.ts b/esm/models/v2/message-traits.d.ts new file mode 100644 index 000000000..8601210f2 --- /dev/null +++ b/esm/models/v2/message-traits.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { MessageTraitsInterface } from '../message-traits'; +import type { MessageTraitInterface } from '../message-trait'; +export declare class MessageTraits extends Collection implements MessageTraitsInterface { + get(id: string): MessageTraitInterface | undefined; +} diff --git a/esm/models/v2/message-traits.js b/esm/models/v2/message-traits.js new file mode 100644 index 000000000..fc8828184 --- /dev/null +++ b/esm/models/v2/message-traits.js @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +export class MessageTraits extends Collection { + get(id) { + return this.collections.find(trait => trait.id() === id); + } +} diff --git a/esm/models/v2/message.d.ts b/esm/models/v2/message.d.ts new file mode 100644 index 000000000..9d7ee229a --- /dev/null +++ b/esm/models/v2/message.d.ts @@ -0,0 +1,16 @@ +import { MessageTrait } from './message-trait'; +import type { ChannelsInterface } from '../channels'; +import type { MessageInterface } from '../message'; +import type { MessageTraitsInterface } from '../message-traits'; +import type { OperationsInterface } from '../operations'; +import type { ServersInterface } from '../servers'; +import type { SchemaInterface } from '../schema'; +import type { v2 } from '../../spec-types'; +export declare class Message extends MessageTrait implements MessageInterface { + hasPayload(): boolean; + payload(): SchemaInterface | undefined; + servers(): ServersInterface; + channels(): ChannelsInterface; + operations(): OperationsInterface; + traits(): MessageTraitsInterface; +} diff --git a/esm/models/v2/message.js b/esm/models/v2/message.js new file mode 100644 index 000000000..7d98c607b --- /dev/null +++ b/esm/models/v2/message.js @@ -0,0 +1,63 @@ +import { Channels } from './channels'; +import { Operations } from './operations'; +import { Operation } from './operation'; +import { MessageTraits } from './message-traits'; +import { MessageTrait } from './message-trait'; +import { Servers } from './servers'; +import { Schema } from './schema'; +import { tilde } from '../../utils'; +export class Message extends MessageTrait { + hasPayload() { + return !!this._json.payload; + } + payload() { + if (!this._json.payload) + return undefined; + return this.createModel(Schema, this._json.payload, { pointer: `${this._meta.pointer}/payload` }); + } + servers() { + const servers = []; + const serversData = []; + this.channels().forEach(channel => { + channel.servers().forEach(server => { + if (!serversData.includes(server.json())) { + serversData.push(server.json()); + servers.push(server); + } + }); + }); + return new Servers(servers); + } + channels() { + const channels = []; + const channelsData = []; + this.operations().all().forEach(operation => { + operation.channels().forEach(channel => { + if (!channelsData.includes(channel.json())) { + channelsData.push(channel.json()); + channels.push(channel); + } + }); + }); + return new Channels(channels); + } + operations() { + var _a; + const operations = []; + Object.entries(((_a = this._meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed.channels) || {}).forEach(([channelAddress, channel]) => { + ['subscribe', 'publish'].forEach(operationAction => { + const operation = channel[operationAction]; + if (operation && (operation.message === this._json || + (operation.message.oneOf || []).includes(this._json))) { + operations.push(this.createModel(Operation, operation, { id: '', pointer: `/channels/${tilde(channelAddress)}/${operationAction}`, action: operationAction })); + } + }); + }); + return new Operations(operations); + } + traits() { + return new MessageTraits((this._json.traits || []).map((trait, index) => { + return this.createModel(MessageTrait, trait, { id: '', pointer: `${this._meta.pointer}/traits/${index}` }); + })); + } +} diff --git a/esm/models/v2/messages.d.ts b/esm/models/v2/messages.d.ts new file mode 100644 index 000000000..d988f36fb --- /dev/null +++ b/esm/models/v2/messages.d.ts @@ -0,0 +1,8 @@ +import { Collection } from '../collection'; +import type { MessagesInterface } from '../messages'; +import type { MessageInterface } from '../message'; +export declare class Messages extends Collection implements MessagesInterface { + get(name: string): MessageInterface | undefined; + filterBySend(): MessageInterface[]; + filterByReceive(): MessageInterface[]; +} diff --git a/esm/models/v2/messages.js b/esm/models/v2/messages.js new file mode 100644 index 000000000..5d2fb8d72 --- /dev/null +++ b/esm/models/v2/messages.js @@ -0,0 +1,12 @@ +import { Collection } from '../collection'; +export class Messages extends Collection { + get(name) { + return this.collections.find(message => message.id() === name); + } + filterBySend() { + return this.filterBy(message => message.operations().filterBySend().length > 0); + } + filterByReceive() { + return this.filterBy(message => message.operations().filterByReceive().length > 0); + } +} diff --git a/esm/models/v2/mixins.d.ts b/esm/models/v2/mixins.d.ts new file mode 100644 index 000000000..08b4d9d43 --- /dev/null +++ b/esm/models/v2/mixins.d.ts @@ -0,0 +1,25 @@ +import type { BaseModel } from '../base'; +import type { BindingsInterface } from '../bindings'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { TagsInterface } from '../tags'; +import type { v2 } from '../../spec-types'; +export declare function bindings(model: BaseModel<{ + bindings?: Record; +}>): BindingsInterface; +export declare function hasDescription(model: BaseModel<{ + description?: string; +}>): boolean; +export declare function description(model: BaseModel<{ + description?: string; +}>): string | undefined; +export declare function extensions(model: BaseModel): ExtensionsInterface; +export declare function hasExternalDocs(model: BaseModel<{ + externalDocs?: v2.ExternalDocumentationObject; +}>): boolean; +export declare function externalDocs(model: BaseModel<{ + externalDocs?: v2.ExternalDocumentationObject; +}>): ExternalDocumentationInterface | undefined; +export declare function tags(model: BaseModel<{ + tags?: v2.TagsObject; +}>): TagsInterface; diff --git a/esm/models/v2/mixins.js b/esm/models/v2/mixins.js new file mode 100644 index 000000000..16b4d40d0 --- /dev/null +++ b/esm/models/v2/mixins.js @@ -0,0 +1,39 @@ +import { Bindings } from './bindings'; +import { Binding } from './binding'; +import { Extensions } from './extensions'; +import { Extension } from './extension'; +import { ExternalDocumentation } from './external-docs'; +import { Tags } from './tags'; +import { Tag } from './tag'; +import { createModel } from '../utils'; +import { EXTENSION_REGEX } from '../../constants'; +export function bindings(model) { + const bindings = model.json('bindings') || {}; + return new Bindings(Object.entries(bindings || {}).map(([protocol, binding]) => createModel(Binding, binding, { protocol, pointer: model.jsonPath(`bindings/${protocol}`) }, model)), { originalData: bindings, asyncapi: model.meta('asyncapi'), pointer: model.jsonPath('bindings') }); +} +export function hasDescription(model) { + return Boolean(description(model)); +} +export function description(model) { + return model.json('description'); +} +export function extensions(model) { + const extensions = []; + Object.entries(model.json()).forEach(([id, value]) => { + if (EXTENSION_REGEX.test(id)) { + extensions.push(createModel(Extension, value, { id, pointer: model.jsonPath(id) }, model)); + } + }); + return new Extensions(extensions); +} +export function hasExternalDocs(model) { + return Object.keys(model.json('externalDocs') || {}).length > 0; +} +export function externalDocs(model) { + if (hasExternalDocs(model)) { + return new ExternalDocumentation(model.json('externalDocs')); + } +} +export function tags(model) { + return new Tags((model.json('tags') || []).map((tag, idx) => createModel(Tag, tag, { pointer: model.jsonPath(`tags/${idx}`) }, model))); +} diff --git a/esm/models/v2/oauth-flow.d.ts b/esm/models/v2/oauth-flow.d.ts new file mode 100644 index 000000000..e7b13eb0e --- /dev/null +++ b/esm/models/v2/oauth-flow.d.ts @@ -0,0 +1,12 @@ +import { BaseModel } from '../base'; +import type { ExtensionsInterface } from '../extensions'; +import type { OAuthFlowInterface } from '../oauth-flow'; +import type { v2 } from '../../spec-types'; +export declare class OAuthFlow extends BaseModel implements OAuthFlowInterface { + authorizationUrl(): string | undefined; + hasRefreshUrl(): boolean; + refreshUrl(): string | undefined; + scopes(): Record | undefined; + tokenUrl(): string | undefined; + extensions(): ExtensionsInterface; +} diff --git a/esm/models/v2/oauth-flow.js b/esm/models/v2/oauth-flow.js new file mode 100644 index 000000000..16d9a1e2d --- /dev/null +++ b/esm/models/v2/oauth-flow.js @@ -0,0 +1,22 @@ +import { BaseModel } from '../base'; +import { extensions } from './mixins'; +export class OAuthFlow extends BaseModel { + authorizationUrl() { + return this.json().authorizationUrl; + } + hasRefreshUrl() { + return !!this._json.refreshUrl; + } + refreshUrl() { + return this._json.refreshUrl; + } + scopes() { + return this._json.scopes; + } + tokenUrl() { + return this.json().tokenUrl; + } + extensions() { + return extensions(this); + } +} diff --git a/esm/models/v2/oauth-flows.d.ts b/esm/models/v2/oauth-flows.d.ts new file mode 100644 index 000000000..9ff0b07ed --- /dev/null +++ b/esm/models/v2/oauth-flows.d.ts @@ -0,0 +1,16 @@ +import { BaseModel } from '../base'; +import type { ExtensionsInterface } from '../extensions'; +import type { OAuthFlowsInterface } from '../oauth-flows'; +import type { OAuthFlowInterface } from '../oauth-flow'; +import type { v2 } from '../../spec-types'; +export declare class OAuthFlows extends BaseModel implements OAuthFlowsInterface { + hasAuthorizationCode(): boolean; + authorizationCode(): OAuthFlowInterface | undefined; + hasClientCredentials(): boolean; + clientCredentials(): OAuthFlowInterface | undefined; + hasImplicit(): boolean; + implicit(): OAuthFlowInterface | undefined; + hasPassword(): boolean; + password(): OAuthFlowInterface | undefined; + extensions(): ExtensionsInterface; +} diff --git a/esm/models/v2/oauth-flows.js b/esm/models/v2/oauth-flows.js new file mode 100644 index 000000000..ab5147e0e --- /dev/null +++ b/esm/models/v2/oauth-flows.js @@ -0,0 +1,40 @@ +import { BaseModel } from '../base'; +import { OAuthFlow } from './oauth-flow'; +import { extensions } from './mixins'; +export class OAuthFlows extends BaseModel { + hasAuthorizationCode() { + return !!this._json.authorizationCode; + } + authorizationCode() { + if (!this._json.authorizationCode) + return undefined; + return new OAuthFlow(this._json.authorizationCode); + } + hasClientCredentials() { + return !!this._json.clientCredentials; + } + clientCredentials() { + if (!this._json.clientCredentials) + return undefined; + return new OAuthFlow(this._json.clientCredentials); + } + hasImplicit() { + return !!this._json.implicit; + } + implicit() { + if (!this._json.implicit) + return undefined; + return new OAuthFlow(this._json.implicit); + } + hasPassword() { + return !!this._json.password; + } + password() { + if (!this._json.password) + return undefined; + return new OAuthFlow(this._json.password); + } + extensions() { + return extensions(this); + } +} diff --git a/esm/models/v2/operation-trait.d.ts b/esm/models/v2/operation-trait.d.ts new file mode 100644 index 000000000..8836598bc --- /dev/null +++ b/esm/models/v2/operation-trait.d.ts @@ -0,0 +1,30 @@ +import { BaseModel } from '../base'; +import type { BindingsInterface } from '../bindings'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { OperationAction } from '../operation'; +import type { OperationTraitInterface } from '../operation-trait'; +import type { TagsInterface } from '../tags'; +import type { v2 } from '../../spec-types'; +import { SecurityRequirements } from './security-requirements'; +export declare class OperationTrait extends BaseModel implements OperationTraitInterface { + id(): string; + action(): OperationAction; + hasOperationId(): boolean; + operationId(): string | undefined; + hasSummary(): boolean; + summary(): string | undefined; + hasDescription(): boolean; + description(): string | undefined; + hasExternalDocs(): boolean; + isSend(): boolean; + isReceive(): boolean; + externalDocs(): ExternalDocumentationInterface | undefined; + security(): SecurityRequirements[]; + tags(): TagsInterface; + bindings(): BindingsInterface; + extensions(): ExtensionsInterface; +} diff --git a/esm/models/v2/operation-trait.js b/esm/models/v2/operation-trait.js new file mode 100644 index 000000000..349c39742 --- /dev/null +++ b/esm/models/v2/operation-trait.js @@ -0,0 +1,64 @@ +import { BaseModel } from '../base'; +import { SecurityScheme } from './security-scheme'; +import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from './mixins'; +import { SecurityRequirements } from './security-requirements'; +import { SecurityRequirement } from './security-requirement'; +export class OperationTrait extends BaseModel { + id() { + return this.operationId() || this._meta.id; + } + action() { + return this._meta.action; + } + hasOperationId() { + return !!this._json.operationId; + } + operationId() { + return this._json.operationId; + } + hasSummary() { + return !!this._json.summary; + } + summary() { + return this._json.summary; + } + hasDescription() { + return hasDescription(this); + } + description() { + return description(this); + } + hasExternalDocs() { + return hasExternalDocs(this); + } + isSend() { + return this.action() === 'subscribe'; + } + isReceive() { + return this.action() === 'publish'; + } + externalDocs() { + return externalDocs(this); + } + security() { + var _a, _b, _c, _d; + const securitySchemes = (((_d = (_c = (_b = (_a = this._meta) === null || _a === void 0 ? void 0 : _a.asyncapi) === null || _b === void 0 ? void 0 : _b.parsed) === null || _c === void 0 ? void 0 : _c.components) === null || _d === void 0 ? void 0 : _d.securitySchemes) || {}); + return (this._json.security || []).map((requirement, index) => { + const requirements = []; + Object.entries(requirement).forEach(([security, scopes]) => { + const scheme = this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }); + requirements.push(this.createModel(SecurityRequirement, { scheme, scopes }, { id: security, pointer: `${this.meta().pointer}/security/${index}/${security}` })); + }); + return new SecurityRequirements(requirements); + }); + } + tags() { + return tags(this); + } + bindings() { + return bindings(this); + } + extensions() { + return extensions(this); + } +} diff --git a/esm/models/v2/operation-traits.d.ts b/esm/models/v2/operation-traits.d.ts new file mode 100644 index 000000000..0de03b0ff --- /dev/null +++ b/esm/models/v2/operation-traits.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { OperationTraitsInterface } from '../operation-traits'; +import type { OperationTraitInterface } from '../operation-trait'; +export declare class OperationTraits extends Collection implements OperationTraitsInterface { + get(id: string): OperationTraitInterface | undefined; +} diff --git a/esm/models/v2/operation-traits.js b/esm/models/v2/operation-traits.js new file mode 100644 index 000000000..e663f6589 --- /dev/null +++ b/esm/models/v2/operation-traits.js @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +export class OperationTraits extends Collection { + get(id) { + return this.collections.find(trait => trait.id() === id); + } +} diff --git a/esm/models/v2/operation.d.ts b/esm/models/v2/operation.d.ts new file mode 100644 index 000000000..ef5f3e00b --- /dev/null +++ b/esm/models/v2/operation.d.ts @@ -0,0 +1,13 @@ +import { OperationTrait } from './operation-trait'; +import type { ChannelsInterface } from '../channels'; +import type { MessagesInterface } from '../messages'; +import type { OperationInterface } from '../operation'; +import type { OperationTraitsInterface } from '../operation-traits'; +import type { ServersInterface } from '../servers'; +import type { v2 } from '../../spec-types'; +export declare class Operation extends OperationTrait implements OperationInterface { + servers(): ServersInterface; + channels(): ChannelsInterface; + messages(): MessagesInterface; + traits(): OperationTraitsInterface; +} diff --git a/esm/models/v2/operation.js b/esm/models/v2/operation.js new file mode 100644 index 000000000..f45a66609 --- /dev/null +++ b/esm/models/v2/operation.js @@ -0,0 +1,53 @@ +import { Channels } from './channels'; +import { Channel } from './channel'; +import { Messages } from './messages'; +import { Message } from './message'; +import { OperationTraits } from './operation-traits'; +import { OperationTrait } from './operation-trait'; +import { Servers } from './servers'; +import { tilde } from '../../utils'; +export class Operation extends OperationTrait { + servers() { + const servers = []; + const serversData = []; + this.channels().forEach(channel => { + channel.servers().forEach(server => { + if (!serversData.includes(server.json())) { + serversData.push(server.json()); + servers.push(server); + } + }); + }); + return new Servers(servers); + } + channels() { + const channels = []; + Object.entries(this._meta.asyncapi.parsed.channels || {}).forEach(([channelAddress, channel]) => { + if (channel.subscribe === this._json || channel.publish === this._json) { + channels.push(this.createModel(Channel, channel, { id: channelAddress, address: channelAddress, pointer: `/channels/${tilde(channelAddress)}` })); + } + }); + return new Channels(channels); + } + messages() { + let isOneOf = false; + let messages = []; + if (this._json.message) { + if (Array.isArray(this._json.message.oneOf)) { + messages = this._json.message.oneOf; + isOneOf = true; + } + else { + messages = [this._json.message]; + } + } + return new Messages(messages.map((message, index) => { + return this.createModel(Message, message, { id: '', pointer: `${this._meta.pointer}/message${isOneOf ? `/oneOf/${index}` : ''}` }); + })); + } + traits() { + return new OperationTraits((this._json.traits || []).map((trait, index) => { + return this.createModel(OperationTrait, trait, { id: '', pointer: `${this._meta.pointer}/traits/${index}`, action: '' }); + })); + } +} diff --git a/esm/models/v2/operations.d.ts b/esm/models/v2/operations.d.ts new file mode 100644 index 000000000..161cb9b2e --- /dev/null +++ b/esm/models/v2/operations.d.ts @@ -0,0 +1,8 @@ +import { Collection } from '../collection'; +import type { OperationsInterface } from '../operations'; +import type { OperationInterface } from '../operation'; +export declare class Operations extends Collection implements OperationsInterface { + get(id: string): OperationInterface | undefined; + filterBySend(): OperationInterface[]; + filterByReceive(): OperationInterface[]; +} diff --git a/esm/models/v2/operations.js b/esm/models/v2/operations.js new file mode 100644 index 000000000..48e51ae25 --- /dev/null +++ b/esm/models/v2/operations.js @@ -0,0 +1,12 @@ +import { Collection } from '../collection'; +export class Operations extends Collection { + get(id) { + return this.collections.find(operation => operation.id() === id); + } + filterBySend() { + return this.filterBy(operation => operation.isSend()); + } + filterByReceive() { + return this.filterBy(operation => operation.isReceive()); + } +} diff --git a/esm/models/v2/schema.d.ts b/esm/models/v2/schema.d.ts new file mode 100644 index 000000000..ce5ad2a24 --- /dev/null +++ b/esm/models/v2/schema.d.ts @@ -0,0 +1,69 @@ +import { BaseModel } from '../base'; +import type { ModelMetadata } from '../base'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { SchemaInterface } from '../schema'; +import type { v2 } from '../../spec-types'; +export declare class Schema extends BaseModel implements SchemaInterface { + constructor(_json: v2.AsyncAPISchemaObject, _meta?: ModelMetadata & { + id: string; + parent?: Schema; + }); + uid(): string; + $comment(): string | undefined; + $id(): string | undefined; + $schema(): string; + additionalItems(): boolean | SchemaInterface; + additionalProperties(): boolean | SchemaInterface; + allOf(): Array | undefined; + anyOf(): Array | undefined; + const(): any; + contains(): SchemaInterface | undefined; + contentEncoding(): string | undefined; + contentMediaType(): string | undefined; + default(): any; + definitions(): Record | undefined; + description(): string | undefined; + dependencies(): Record> | undefined; + deprecated(): boolean; + discriminator(): string | undefined; + else(): SchemaInterface | undefined; + enum(): Array | undefined; + examples(): Array | undefined; + exclusiveMaximum(): number | undefined; + exclusiveMinimum(): number | undefined; + format(): string | undefined; + isBooleanSchema(): boolean; + if(): SchemaInterface | undefined; + isCircular(): boolean; + items(): SchemaInterface | Array | undefined; + maximum(): number | undefined; + maxItems(): number | undefined; + maxLength(): number | undefined; + maxProperties(): number | undefined; + minimum(): number | undefined; + minItems(): number | undefined; + minLength(): number | undefined; + minProperties(): number | undefined; + multipleOf(): number | undefined; + not(): SchemaInterface | undefined; + oneOf(): Array | undefined; + pattern(): string | undefined; + patternProperties(): Record | undefined; + properties(): Record | undefined; + property(name: string): SchemaInterface | undefined; + propertyNames(): SchemaInterface | undefined; + readOnly(): boolean | undefined; + required(): Array | undefined; + then(): SchemaInterface | undefined; + title(): string | undefined; + type(): string | Array | undefined; + uniqueItems(): boolean | undefined; + writeOnly(): boolean | undefined; + hasExternalDocs(): boolean; + externalDocs(): ExternalDocumentationInterface | undefined; + extensions(): ExtensionsInterface; +} diff --git a/esm/models/v2/schema.js b/esm/models/v2/schema.js new file mode 100644 index 000000000..f6e845972 --- /dev/null +++ b/esm/models/v2/schema.js @@ -0,0 +1,309 @@ +import { BaseModel } from '../base'; +import { xParserSchemaId } from '../../constants'; +import { extensions, hasExternalDocs, externalDocs } from './mixins'; +import { retrievePossibleRef, hasRef } from '../../utils'; +export class Schema extends BaseModel { + constructor(_json, _meta = {}) { + var _a; + _json = retrievePossibleRef(_json, _meta.pointer, (_a = _meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed); + super(_json, _meta); + } + uid() { + var _a; + return this._meta.id || ((_a = this.extensions().get(xParserSchemaId)) === null || _a === void 0 ? void 0 : _a.value()); + } + $comment() { + if (typeof this._json === 'boolean') + return; + return this._json.$comment; + } + $id() { + if (typeof this._json === 'boolean') + return; + return this._json.$id; + } + $schema() { + if (typeof this._json === 'boolean') + return 'http://json-schema.org/draft-07/schema#'; + return this._json.$schema || 'http://json-schema.org/draft-07/schema#'; + } + additionalItems() { + if (typeof this._json === 'boolean') + return this._json; + if (this._json.additionalItems === undefined) + return true; + if (typeof this._json.additionalItems === 'boolean') + return this._json.additionalItems; + return this.createModel(Schema, this._json.additionalItems, { pointer: `${this._meta.pointer}/additionalItems`, parent: this }); + } + additionalProperties() { + if (typeof this._json === 'boolean') + return this._json; + if (this._json.additionalProperties === undefined) + return true; + if (typeof this._json.additionalProperties === 'boolean') + return this._json.additionalProperties; + return this.createModel(Schema, this._json.additionalProperties, { pointer: `${this._meta.pointer}/additionalProperties`, parent: this }); + } + allOf() { + if (typeof this._json === 'boolean') + return; + if (!Array.isArray(this._json.allOf)) + return undefined; + return this._json.allOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/allOf/${index}`, parent: this })); + } + anyOf() { + if (typeof this._json === 'boolean') + return; + if (!Array.isArray(this._json.anyOf)) + return undefined; + return this._json.anyOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/anyOf/${index}`, parent: this })); + } + const() { + if (typeof this._json === 'boolean') + return; + return this._json.const; + } + contains() { + if (typeof this._json === 'boolean' || typeof this._json.contains !== 'object') + return; + return this.createModel(Schema, this._json.contains, { pointer: `${this._meta.pointer}/contains`, parent: this }); + } + contentEncoding() { + if (typeof this._json === 'boolean') + return; + return this._json.contentEncoding; + } + contentMediaType() { + if (typeof this._json === 'boolean') + return; + return this._json.contentMediaType; + } + default() { + if (typeof this._json === 'boolean') + return; + return this._json.default; + } + definitions() { + if (typeof this._json === 'boolean' || typeof this._json.definitions !== 'object') + return; + return Object.entries(this._json.definitions).reduce((acc, [key, s]) => { + acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/definitions/${key}`, parent: this }); + return acc; + }, {}); + } + description() { + if (typeof this._json === 'boolean') + return; + return this._json.description; + } + dependencies() { + if (typeof this._json === 'boolean') + return; + if (typeof this._json.dependencies !== 'object') + return undefined; + return Object.entries(this._json.dependencies).reduce((acc, [key, s]) => { + acc[key] = Array.isArray(s) ? s : this.createModel(Schema, s, { pointer: `${this._meta.pointer}/dependencies/${key}`, parent: this }); + return acc; + }, {}); + } + deprecated() { + if (typeof this._json === 'boolean') + return false; + return this._json.deprecated || false; + } + discriminator() { + if (typeof this._json === 'boolean') + return; + return this._json.discriminator; + } + else() { + if (typeof this._json === 'boolean' || typeof this._json.else !== 'object') + return; + return this.createModel(Schema, this._json.else, { pointer: `${this._meta.pointer}/else`, parent: this }); + } + enum() { + if (typeof this._json === 'boolean') + return; + return this._json.enum; + } + examples() { + if (typeof this._json === 'boolean') + return; + return this._json.examples; + } + exclusiveMaximum() { + if (typeof this._json === 'boolean') + return; + return this._json.exclusiveMaximum; + } + exclusiveMinimum() { + if (typeof this._json === 'boolean') + return; + return this._json.exclusiveMinimum; + } + format() { + if (typeof this._json === 'boolean') + return; + return this._json.format; + } + isBooleanSchema() { + return typeof this._json === 'boolean'; + } + if() { + if (typeof this._json === 'boolean' || typeof this._json.if !== 'object') + return; + return this.createModel(Schema, this._json.if, { pointer: `${this._meta.pointer}/if`, parent: this }); + } + isCircular() { + if (hasRef(this._json)) + return true; + let parent = this._meta.parent; + while (parent) { + if (parent._json === this._json) + return true; + parent = parent._meta.parent; + } + return false; + } + items() { + if (typeof this._json === 'boolean' || typeof this._json.items !== 'object') + return; + if (Array.isArray(this._json.items)) { + return this._json.items.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/items/${index}`, parent: this })); + } + return this.createModel(Schema, this._json.items, { pointer: `${this._meta.pointer}/items`, parent: this }); + } + maximum() { + if (typeof this._json === 'boolean') + return; + return this._json.maximum; + } + maxItems() { + if (typeof this._json === 'boolean') + return; + return this._json.maxItems; + } + maxLength() { + if (typeof this._json === 'boolean') + return; + return this._json.maxLength; + } + maxProperties() { + if (typeof this._json === 'boolean') + return; + return this._json.maxProperties; + } + minimum() { + if (typeof this._json === 'boolean') + return; + return this._json.minimum; + } + minItems() { + if (typeof this._json === 'boolean') + return; + return this._json.minItems; + } + minLength() { + if (typeof this._json === 'boolean') + return; + return this._json.minLength; + } + minProperties() { + if (typeof this._json === 'boolean') + return; + return this._json.minProperties; + } + multipleOf() { + if (typeof this._json === 'boolean') + return; + return this._json.multipleOf; + } + not() { + if (typeof this._json === 'boolean' || typeof this._json.not !== 'object') + return; + return this.createModel(Schema, this._json.not, { pointer: `${this._meta.pointer}/not`, parent: this }); + } + oneOf() { + if (typeof this._json === 'boolean') + return; + if (!Array.isArray(this._json.oneOf)) + return undefined; + return this._json.oneOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/oneOf/${index}`, parent: this })); + } + pattern() { + if (typeof this._json === 'boolean') + return; + return this._json.pattern; + } + patternProperties() { + if (typeof this._json === 'boolean' || typeof this._json.patternProperties !== 'object') + return; + return Object.entries(this._json.patternProperties).reduce((acc, [key, s]) => { + acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/patternProperties/${key}`, parent: this }); + return acc; + }, {}); + } + properties() { + if (typeof this._json === 'boolean' || typeof this._json.properties !== 'object') + return; + return Object.entries(this._json.properties).reduce((acc, [key, s]) => { + acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/properties/${key}`, parent: this }); + return acc; + }, {}); + } + property(name) { + if (typeof this._json === 'boolean' || typeof this._json.properties !== 'object' || typeof this._json.properties[name] !== 'object') + return; + return this.createModel(Schema, this._json.properties[name], { pointer: `${this._meta.pointer}/properties/${name}`, parent: this }); + } + propertyNames() { + if (typeof this._json === 'boolean' || typeof this._json.propertyNames !== 'object') + return; + return this.createModel(Schema, this._json.propertyNames, { pointer: `${this._meta.pointer}/propertyNames`, parent: this }); + } + readOnly() { + if (typeof this._json === 'boolean') + return false; + return this._json.readOnly || false; + } + required() { + if (typeof this._json === 'boolean') + return; + return this._json.required; + } + then() { + if (typeof this._json === 'boolean' || typeof this._json.then !== 'object') + return; + return this.createModel(Schema, this._json.then, { pointer: `${this._meta.pointer}/then`, parent: this }); + } + title() { + if (typeof this._json === 'boolean') + return; + return this._json.title; + } + type() { + if (typeof this._json === 'boolean') + return; + return this._json.type; + } + uniqueItems() { + if (typeof this._json === 'boolean') + return false; + return this._json.uniqueItems || false; + } + writeOnly() { + if (typeof this._json === 'boolean') + return false; + return this._json.writeOnly || false; + } + hasExternalDocs() { + return hasExternalDocs(this); + } + externalDocs() { + return externalDocs(this); + } + extensions() { + return extensions(this); + } +} diff --git a/esm/models/v2/schemas.d.ts b/esm/models/v2/schemas.d.ts new file mode 100644 index 000000000..15c1d17bc --- /dev/null +++ b/esm/models/v2/schemas.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { SchemasInterface } from '../schemas'; +import type { SchemaInterface } from '../schema'; +export declare class Schemas extends Collection implements SchemasInterface { + get(id: string): SchemaInterface | undefined; +} diff --git a/esm/models/v2/schemas.js b/esm/models/v2/schemas.js new file mode 100644 index 000000000..b78ec85fb --- /dev/null +++ b/esm/models/v2/schemas.js @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +export class Schemas extends Collection { + get(id) { + return this.collections.find(schema => schema.uid() === id); + } +} diff --git a/esm/models/v2/security-requirement.d.ts b/esm/models/v2/security-requirement.d.ts new file mode 100644 index 000000000..88cb3a757 --- /dev/null +++ b/esm/models/v2/security-requirement.d.ts @@ -0,0 +1,12 @@ +import { BaseModel } from '../base'; +import type { SecuritySchemeInterface } from '../security-scheme'; +import type { SecurityRequirementInterface } from '../security-requirement'; +export declare class SecurityRequirement extends BaseModel<{ + scopes?: string[]; + scheme: SecuritySchemeInterface; +}, { + id?: string; +}> implements SecurityRequirementInterface { + scheme(): SecuritySchemeInterface; + scopes(): string[]; +} diff --git a/esm/models/v2/security-requirement.js b/esm/models/v2/security-requirement.js new file mode 100644 index 000000000..2ce62cdfa --- /dev/null +++ b/esm/models/v2/security-requirement.js @@ -0,0 +1,9 @@ +import { BaseModel } from '../base'; +export class SecurityRequirement extends BaseModel { + scheme() { + return this._json.scheme; + } + scopes() { + return this._json.scopes || []; + } +} diff --git a/esm/models/v2/security-requirements.d.ts b/esm/models/v2/security-requirements.d.ts new file mode 100644 index 000000000..882dd7bbc --- /dev/null +++ b/esm/models/v2/security-requirements.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { SecurityRequirementsInterface } from '../security-requirements'; +import type { SecurityRequirementInterface } from '../security-requirement'; +export declare class SecurityRequirements extends Collection implements SecurityRequirementsInterface { + get(id: string): SecurityRequirementInterface | undefined; +} diff --git a/esm/models/v2/security-requirements.js b/esm/models/v2/security-requirements.js new file mode 100644 index 000000000..f8c1cbc47 --- /dev/null +++ b/esm/models/v2/security-requirements.js @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +export class SecurityRequirements extends Collection { + get(id) { + return this.collections.find(securityRequirement => securityRequirement.meta('id') === id); + } +} diff --git a/esm/models/v2/security-scheme.d.ts b/esm/models/v2/security-scheme.d.ts new file mode 100644 index 000000000..c87559674 --- /dev/null +++ b/esm/models/v2/security-scheme.d.ts @@ -0,0 +1,20 @@ +import { BaseModel } from '../base'; +import type { ExtensionsInterface } from '../extensions'; +import type { SecuritySchemeInterface } from '../security-scheme'; +import type { OAuthFlowsInterface } from '../oauth-flows'; +import type { v2 } from '../../spec-types'; +export declare class SecurityScheme extends BaseModel implements SecuritySchemeInterface { + id(): string; + hasDescription(): boolean; + description(): string | undefined; + hasBearerFormat(): boolean; + bearerFormat(): string | undefined; + openIdConnectUrl(): string | undefined; + scheme(): string | undefined; + flows(): OAuthFlowsInterface | undefined; + type(): v2.SecuritySchemeType; + in(): v2.SecuritySchemaLocation | undefined; + extensions(): ExtensionsInterface; +} diff --git a/esm/models/v2/security-scheme.js b/esm/models/v2/security-scheme.js new file mode 100644 index 000000000..bd3677e04 --- /dev/null +++ b/esm/models/v2/security-scheme.js @@ -0,0 +1,40 @@ +import { BaseModel } from '../base'; +import { OAuthFlows } from './oauth-flows'; +import { hasDescription, description, extensions } from './mixins'; +export class SecurityScheme extends BaseModel { + id() { + return this._meta.id; + } + hasDescription() { + return hasDescription(this); + } + description() { + return description(this); + } + hasBearerFormat() { + return !!this._json.bearerFormat; + } + bearerFormat() { + return this._json.bearerFormat; + } + openIdConnectUrl() { + return this._json.openIdConnectUrl; + } + scheme() { + return this._json.scheme; + } + flows() { + if (!this._json.flows) + return undefined; + return new OAuthFlows(this._json.flows); + } + type() { + return this._json.type; + } + in() { + return this._json.in; + } + extensions() { + return extensions(this); + } +} diff --git a/esm/models/v2/security-schemes.d.ts b/esm/models/v2/security-schemes.d.ts new file mode 100644 index 000000000..e9d23e914 --- /dev/null +++ b/esm/models/v2/security-schemes.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { SecuritySchemesInterface } from '../security-schemes'; +import type { SecuritySchemeInterface } from '../security-scheme'; +export declare class SecuritySchemes extends Collection implements SecuritySchemesInterface { + get(id: string): SecuritySchemeInterface | undefined; +} diff --git a/esm/models/v2/security-schemes.js b/esm/models/v2/security-schemes.js new file mode 100644 index 000000000..fea91c4b7 --- /dev/null +++ b/esm/models/v2/security-schemes.js @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +export class SecuritySchemes extends Collection { + get(id) { + return this.collections.find(securityScheme => securityScheme.id() === id); + } +} diff --git a/esm/models/v2/server-variable.d.ts b/esm/models/v2/server-variable.d.ts new file mode 100644 index 000000000..973203637 --- /dev/null +++ b/esm/models/v2/server-variable.d.ts @@ -0,0 +1,17 @@ +import { BaseModel } from '../base'; +import type { ExtensionsInterface } from '../extensions'; +import type { ServerVariableInterface } from '../server-variable'; +import type { v2 } from '../../spec-types'; +export declare class ServerVariable extends BaseModel implements ServerVariableInterface { + id(): string; + hasDescription(): boolean; + description(): string | undefined; + hasDefaultValue(): boolean; + defaultValue(): string | undefined; + hasAllowedValues(): boolean; + allowedValues(): Array; + examples(): Array; + extensions(): ExtensionsInterface; +} diff --git a/esm/models/v2/server-variable.js b/esm/models/v2/server-variable.js new file mode 100644 index 000000000..df9caa08d --- /dev/null +++ b/esm/models/v2/server-variable.js @@ -0,0 +1,31 @@ +import { BaseModel } from '../base'; +import { hasDescription, description, extensions } from './mixins'; +export class ServerVariable extends BaseModel { + id() { + return this._meta.id; + } + hasDescription() { + return hasDescription(this); + } + description() { + return description(this); + } + hasDefaultValue() { + return !!this._json.default; + } + defaultValue() { + return this._json.default; + } + hasAllowedValues() { + return !!this._json.enum; + } + allowedValues() { + return this._json.enum || []; + } + examples() { + return this._json.examples || []; + } + extensions() { + return extensions(this); + } +} diff --git a/esm/models/v2/server-variables.d.ts b/esm/models/v2/server-variables.d.ts new file mode 100644 index 000000000..7e3ebe7f4 --- /dev/null +++ b/esm/models/v2/server-variables.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { ServerVariablesInterface } from '../server-variables'; +import type { ServerVariableInterface } from '../server-variable'; +export declare class ServerVariables extends Collection implements ServerVariablesInterface { + get(id: string): ServerVariableInterface | undefined; +} diff --git a/esm/models/v2/server-variables.js b/esm/models/v2/server-variables.js new file mode 100644 index 000000000..3ae580ded --- /dev/null +++ b/esm/models/v2/server-variables.js @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +export class ServerVariables extends Collection { + get(id) { + return this.collections.find(variable => variable.id() === id); + } +} diff --git a/esm/models/v2/server.d.ts b/esm/models/v2/server.d.ts new file mode 100644 index 000000000..674244462 --- /dev/null +++ b/esm/models/v2/server.d.ts @@ -0,0 +1,28 @@ +import { BaseModel } from '../base'; +import { SecurityRequirements } from './security-requirements'; +import type { ChannelsInterface } from '../channels'; +import type { OperationsInterface } from '../operations'; +import type { MessagesInterface } from '../messages'; +import type { ServerInterface } from '../server'; +import type { ServerVariablesInterface } from '../server-variables'; +import type { ExtensionsInterface } from '../extensions'; +import type { BindingsInterface } from '../bindings'; +import type { v2 } from '../../spec-types'; +export declare class Server extends BaseModel implements ServerInterface { + id(): string; + url(): string; + protocol(): string; + hasProtocolVersion(): boolean; + protocolVersion(): string | undefined; + hasDescription(): boolean; + description(): string | undefined; + channels(): ChannelsInterface; + operations(): OperationsInterface; + messages(): MessagesInterface; + variables(): ServerVariablesInterface; + security(): SecurityRequirements[]; + bindings(): BindingsInterface; + extensions(): ExtensionsInterface; +} diff --git a/esm/models/v2/server.js b/esm/models/v2/server.js new file mode 100644 index 000000000..e5f4ac2da --- /dev/null +++ b/esm/models/v2/server.js @@ -0,0 +1,84 @@ +import { BaseModel } from '../base'; +import { Channels } from './channels'; +import { Channel } from './channel'; +import { Messages } from './messages'; +import { Operations } from './operations'; +import { SecurityScheme } from './security-scheme'; +import { ServerVariables } from './server-variables'; +import { ServerVariable } from './server-variable'; +import { SecurityRequirements } from './security-requirements'; +import { SecurityRequirement } from './security-requirement'; +import { bindings, hasDescription, description, extensions } from './mixins'; +import { tilde } from '../../utils'; +export class Server extends BaseModel { + id() { + return this._meta.id; + } + url() { + return this._json.url; + } + protocol() { + return this._json.protocol; + } + hasProtocolVersion() { + return !!this._json.protocolVersion; + } + protocolVersion() { + return this._json.protocolVersion; + } + hasDescription() { + return hasDescription(this); + } + description() { + return description(this); + } + channels() { + var _a; + const channels = []; + Object.entries(((_a = this._meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed.channels) || {}).forEach(([channelAddress, channel]) => { + const allowedServers = channel.servers || []; + if (allowedServers.length === 0 || allowedServers.includes(this._meta.id)) { + channels.push(this.createModel(Channel, channel, { id: channelAddress, address: channelAddress, pointer: `/channels/${tilde(channelAddress)}` })); + } + }); + return new Channels(channels); + } + operations() { + const operations = []; + this.channels().forEach(channel => { + operations.push(...channel.operations().all()); + }); + return new Operations(operations); + } + messages() { + const messages = []; + this.operations().forEach(operation => messages.push(...operation.messages().all())); + return new Messages(messages); + } + variables() { + return new ServerVariables(Object.entries(this._json.variables || {}).map(([serverVariableName, serverVariable]) => { + return this.createModel(ServerVariable, serverVariable, { + id: serverVariableName, + pointer: `${this._meta.pointer}/variables/${serverVariableName}` + }); + })); + } + security() { + var _a, _b, _c, _d; + const securitySchemes = (((_d = (_c = (_b = (_a = this._meta) === null || _a === void 0 ? void 0 : _a.asyncapi) === null || _b === void 0 ? void 0 : _b.parsed) === null || _c === void 0 ? void 0 : _c.components) === null || _d === void 0 ? void 0 : _d.securitySchemes) || {}); + return (this._json.security || []).map((requirement, index) => { + const requirements = []; + Object.entries(requirement).forEach(([security, scopes]) => { + const scheme = this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }); + requirements.push(this.createModel(SecurityRequirement, { scheme, scopes }, { id: security, pointer: `${this.meta().pointer}/security/${index}/${security}` })); + }); + return new SecurityRequirements(requirements); + }); + } + bindings() { + return bindings(this); + } + extensions() { + return extensions(this); + } +} diff --git a/esm/models/v2/servers.d.ts b/esm/models/v2/servers.d.ts new file mode 100644 index 000000000..101c8aa9e --- /dev/null +++ b/esm/models/v2/servers.d.ts @@ -0,0 +1,8 @@ +import { Collection } from '../collection'; +import { ServerInterface } from '../server'; +import { ServersInterface } from '../servers'; +export declare class Servers extends Collection implements ServersInterface { + get(id: string): ServerInterface | undefined; + filterBySend(): ServerInterface[]; + filterByReceive(): ServerInterface[]; +} diff --git a/esm/models/v2/servers.js b/esm/models/v2/servers.js new file mode 100644 index 000000000..39df4d44f --- /dev/null +++ b/esm/models/v2/servers.js @@ -0,0 +1,12 @@ +import { Collection } from '../collection'; +export class Servers extends Collection { + get(id) { + return this.collections.find(server => server.id() === id); + } + filterBySend() { + return this.filterBy(server => server.operations().filterBySend().length > 0); + } + filterByReceive() { + return this.filterBy(server => server.operations().filterByReceive().length > 0); + } +} diff --git a/esm/models/v2/tag.d.ts b/esm/models/v2/tag.d.ts new file mode 100644 index 000000000..a7eaf141f --- /dev/null +++ b/esm/models/v2/tag.d.ts @@ -0,0 +1,13 @@ +import { BaseModel } from '../base'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { TagInterface } from '../tag'; +import type { v2 } from '../../spec-types'; +export declare class Tag extends BaseModel implements TagInterface { + name(): string; + hasDescription(): boolean; + description(): string | undefined; + extensions(): ExtensionsInterface; + hasExternalDocs(): boolean; + externalDocs(): ExternalDocumentationInterface | undefined; +} diff --git a/esm/models/v2/tag.js b/esm/models/v2/tag.js new file mode 100644 index 000000000..ea429df83 --- /dev/null +++ b/esm/models/v2/tag.js @@ -0,0 +1,22 @@ +import { BaseModel } from '../base'; +import { hasDescription, description, extensions, hasExternalDocs, externalDocs } from './mixins'; +export class Tag extends BaseModel { + name() { + return this._json.name; + } + hasDescription() { + return hasDescription(this); + } + description() { + return description(this); + } + extensions() { + return extensions(this); + } + hasExternalDocs() { + return hasExternalDocs(this); + } + externalDocs() { + return externalDocs(this); + } +} diff --git a/esm/models/v2/tags.d.ts b/esm/models/v2/tags.d.ts new file mode 100644 index 000000000..371794b27 --- /dev/null +++ b/esm/models/v2/tags.d.ts @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +import type { TagsInterface } from '../tags'; +import type { TagInterface } from '../tag'; +export declare class Tags extends Collection implements TagsInterface { + get(name: string): TagInterface | undefined; +} diff --git a/esm/models/v2/tags.js b/esm/models/v2/tags.js new file mode 100644 index 000000000..13229669b --- /dev/null +++ b/esm/models/v2/tags.js @@ -0,0 +1,6 @@ +import { Collection } from '../collection'; +export class Tags extends Collection { + get(name) { + return this.collections.find(tag => tag.name() === name); + } +} diff --git a/esm/models/v3/asyncapi.d.ts b/esm/models/v3/asyncapi.d.ts new file mode 100644 index 000000000..e6aa68fa7 --- /dev/null +++ b/esm/models/v3/asyncapi.d.ts @@ -0,0 +1,4 @@ +import { BaseModel } from '../base'; +export declare class AsyncAPIDocument extends BaseModel { + version(): string; +} diff --git a/esm/models/v3/asyncapi.js b/esm/models/v3/asyncapi.js new file mode 100644 index 000000000..bfa2c5856 --- /dev/null +++ b/esm/models/v3/asyncapi.js @@ -0,0 +1,6 @@ +import { BaseModel } from '../base'; +export class AsyncAPIDocument extends BaseModel { + version() { + return this._json.asyncapi; + } +} diff --git a/esm/models/v3/index.d.ts b/esm/models/v3/index.d.ts new file mode 100644 index 000000000..050c2109b --- /dev/null +++ b/esm/models/v3/index.d.ts @@ -0,0 +1 @@ +export { AsyncAPIDocument as AsyncAPIDocumentV3 } from './asyncapi'; diff --git a/esm/models/v3/index.js b/esm/models/v3/index.js new file mode 100644 index 000000000..050c2109b --- /dev/null +++ b/esm/models/v3/index.js @@ -0,0 +1 @@ +export { AsyncAPIDocument as AsyncAPIDocumentV3 } from './asyncapi'; diff --git a/esm/old-api/asyncapi.d.ts b/esm/old-api/asyncapi.d.ts new file mode 100644 index 000000000..a441ac55a --- /dev/null +++ b/esm/old-api/asyncapi.d.ts @@ -0,0 +1,40 @@ +import { SpecificationExtensionsModel } from './mixins'; +import { Info } from './info'; +import { Server } from './server'; +import { Channel } from './channel'; +import { Components } from './components'; +import { Message } from './message'; +import { Schema } from './schema'; +import type { v2 } from '../spec-types'; +import type { SchemaTypesToIterate, TraverseCallback } from './iterator'; +export declare class AsyncAPIDocument extends SpecificationExtensionsModel { + version(): string; + info(): Info; + id(): string | undefined; + externalDocs(): import("./external-docs").ExternalDocs | null; + hasExternalDocs(): boolean; + hasTags(): boolean; + tags(): import("./tag").Tag[]; + tagNames(): string[]; + hasTag(name: string): boolean; + tag(name: string): import("./tag").Tag | null; + hasServers(): boolean; + servers(): Record; + serverNames(): string[]; + server(name: string): Server | null; + hasDefaultContentType(): boolean; + defaultContentType(): string | null; + hasChannels(): boolean; + channels(): Record; + channelNames(): string[]; + channel(name: string): Channel | null; + hasComponents(): boolean; + components(): Components | null; + hasMessages(): boolean; + allMessages(): Map; + allSchemas(): Map; + hasCircular(): boolean; + traverseSchemas(callback: TraverseCallback, schemaTypesToIterate?: Array<`${SchemaTypesToIterate}`>): void; + static stringify(doc: AsyncAPIDocument, space?: number): string | undefined; + static parse(doc: string | Record): AsyncAPIDocument | undefined; +} diff --git a/esm/old-api/asyncapi.js b/esm/old-api/asyncapi.js new file mode 100644 index 000000000..d9e941715 --- /dev/null +++ b/esm/old-api/asyncapi.js @@ -0,0 +1,157 @@ +import { SpecificationExtensionsModel, hasExternalDocs, externalDocs, tagsMixins, createMapOfType, getMapValue } from './mixins'; +import { Info } from './info'; +import { Server } from './server'; +import { Channel } from './channel'; +import { Components } from './components'; +import { traverseAsyncApiDocument } from './iterator'; +import { xParserCircular, xParserSpecStringified, xParserSpecParsed } from '../constants'; +import { refReplacer, traverseStringifiedData } from '../stringify'; +export class AsyncAPIDocument extends SpecificationExtensionsModel { + version() { + return this._json.asyncapi; + } + info() { + return new Info(this._json.info); + } + id() { + return this._json.id; + } + externalDocs() { + return externalDocs(this); + } + hasExternalDocs() { + return hasExternalDocs(this); + } + hasTags() { + return tagsMixins.hasTags(this); + } + tags() { + return tagsMixins.tags(this); + } + tagNames() { + return tagsMixins.tagNames(this); + } + hasTag(name) { + return tagsMixins.hasTag(this, name); + } + tag(name) { + return tagsMixins.tag(this, name); + } + hasServers() { + return !!this._json.servers; + } + servers() { + return createMapOfType(this._json.servers, Server); + } + serverNames() { + if (!this._json.servers) + return []; + return Object.keys(this._json.servers); + } + server(name) { + return getMapValue(this._json.servers, name, Server); + } + hasDefaultContentType() { + return !!this._json.defaultContentType; + } + defaultContentType() { + return this._json.defaultContentType || null; + } + hasChannels() { + return !!this._json.channels; + } + channels() { + return createMapOfType(this._json.channels, Channel); + } + channelNames() { + if (!this._json.channels) + return []; + return Object.keys(this._json.channels); + } + channel(name) { + return getMapValue(this._json.channels, name, Channel); + } + hasComponents() { + return !!this._json.components; + } + components() { + if (!this._json.components) + return null; + return new Components(this._json.components); + } + hasMessages() { + return !!this.allMessages().size; + } + allMessages() { + const messages = new Map(); + if (this.hasChannels()) { + this.channelNames().forEach(channelName => { + const channel = this.channel(channelName); + if (channel) { + if (channel.hasPublish()) { + channel.publish().messages().forEach(m => { + messages.set(m.uid(), m); + }); + } + if (channel.hasSubscribe()) { + channel.subscribe().messages().forEach(m => { + messages.set(m.uid(), m); + }); + } + } + }); + } + if (this.hasComponents()) { + Object.values(this.components().messages()).forEach(m => { + messages.set(m.uid(), m); + }); + } + return messages; + } + allSchemas() { + const schemas = new Map(); + function allSchemasCallback(schema) { + if (schema.uid()) { + schemas.set(schema.uid(), schema); + } + } + traverseAsyncApiDocument(this, allSchemasCallback); + return schemas; + } + hasCircular() { + return !!this._json[xParserCircular]; + } + traverseSchemas(callback, schemaTypesToIterate = []) { + traverseAsyncApiDocument(this, callback, schemaTypesToIterate); + } + static stringify(doc, space) { + const rawDoc = doc.json(); + const copiedDoc = Object.assign({}, rawDoc); + copiedDoc[xParserSpecStringified] = true; + return JSON.stringify(copiedDoc, refReplacer(), space); + } + static parse(doc) { + let parsedJSON = doc; + if (typeof doc === 'string') { + parsedJSON = JSON.parse(doc); + } + else if (typeof doc === 'object') { + // shall copy + parsedJSON = Object.assign({}, parsedJSON); + } + // the `doc` must be an AsyncAPI parsed document + if (typeof parsedJSON !== 'object' || !parsedJSON[xParserSpecParsed]) { + throw new Error('Cannot parse invalid AsyncAPI document'); + } + // if the `doc` is not stringified via the `stringify` static method then immediately return a model. + if (!parsedJSON[xParserSpecStringified]) { + return new AsyncAPIDocument(parsedJSON); + } + // remove `x-parser-spec-stringified` extension + delete parsedJSON[String(xParserSpecStringified)]; + const objToPath = new Map(); + const pathToObj = new Map(); + traverseStringifiedData(parsedJSON, undefined, parsedJSON, objToPath, pathToObj); + return new AsyncAPIDocument(parsedJSON); + } +} diff --git a/esm/old-api/base.d.ts b/esm/old-api/base.d.ts new file mode 100644 index 000000000..0b26cd2c9 --- /dev/null +++ b/esm/old-api/base.d.ts @@ -0,0 +1,8 @@ +export declare abstract class Base = Record> { + protected readonly _json: J; + protected readonly _meta: M; + constructor(_json: J, // TODO: Add error here like in original codebase + _meta?: M); + json(): T; + json(key: K): J[K]; +} diff --git a/esm/old-api/base.js b/esm/old-api/base.js new file mode 100644 index 000000000..e58456a43 --- /dev/null +++ b/esm/old-api/base.js @@ -0,0 +1,14 @@ +export class Base { + constructor(_json, // TODO: Add error here like in original codebase + _meta = {}) { + this._json = _json; + this._meta = _meta; + } + json(key) { + if (key === undefined || typeof this._json !== 'object') + return this._json; + if (!this._json) + return; + return this._json[key]; + } +} diff --git a/esm/old-api/channel-parameter.d.ts b/esm/old-api/channel-parameter.d.ts new file mode 100644 index 000000000..3265c56d0 --- /dev/null +++ b/esm/old-api/channel-parameter.d.ts @@ -0,0 +1,9 @@ +import { SpecificationExtensionsModel } from './mixins'; +import { Schema } from './schema'; +import type { v2 } from '../spec-types'; +export declare class ChannelParameter extends SpecificationExtensionsModel { + description(): string | null; + hasDescription(): boolean; + schema(): Schema | null; + location(): string | undefined; +} diff --git a/esm/old-api/channel-parameter.js b/esm/old-api/channel-parameter.js new file mode 100644 index 000000000..8d952addc --- /dev/null +++ b/esm/old-api/channel-parameter.js @@ -0,0 +1,18 @@ +import { SpecificationExtensionsModel, description, hasDescription } from './mixins'; +import { Schema } from './schema'; +export class ChannelParameter extends SpecificationExtensionsModel { + description() { + return description(this); + } + hasDescription() { + return hasDescription(this); + } + schema() { + if (!this._json.schema) + return null; + return new Schema(this._json.schema); + } + location() { + return this._json.location; + } +} diff --git a/esm/old-api/channel.d.ts b/esm/old-api/channel.d.ts new file mode 100644 index 000000000..8214311fc --- /dev/null +++ b/esm/old-api/channel.d.ts @@ -0,0 +1,23 @@ +import { SpecificationExtensionsModel } from './mixins'; +import { ChannelParameter } from './channel-parameter'; +import { Operation } from './operation'; +import type { v2 } from '../spec-types'; +export declare class Channel extends SpecificationExtensionsModel { + description(): string | null; + hasDescription(): boolean; + hasParameters(): boolean; + parameters(): Record; + parameter(name: string): ChannelParameter | null; + hasServers(): boolean; + servers(): string[]; + server(index: number | string): string | null; + publish(): Operation | null; + subscribe(): Operation | null; + hasPublish(): boolean; + hasSubscribe(): boolean; + hasBindings(): boolean; + bindings(): Record; + bindingProtocols(): string[]; + hasBinding(name: string): boolean; + binding(name: string): v2.Binding | null; +} diff --git a/esm/old-api/channel.js b/esm/old-api/channel.js new file mode 100644 index 000000000..2ff5b1b61 --- /dev/null +++ b/esm/old-api/channel.js @@ -0,0 +1,68 @@ +import { SpecificationExtensionsModel, hasDescription, description, createMapOfType, bindingsMixins, getMapValue } from './mixins'; +import { ChannelParameter } from './channel-parameter'; +import { Operation } from './operation'; +export class Channel extends SpecificationExtensionsModel { + description() { + return description(this); + } + hasDescription() { + return hasDescription(this); + } + hasParameters() { + return !!this._json.parameters; + } + parameters() { + return createMapOfType(this._json.parameters, ChannelParameter); + } + parameter(name) { + return getMapValue(this._json.parameters, name, ChannelParameter); + } + hasServers() { + return !!this._json.servers; + } + servers() { + if (!this._json.servers) + return []; + return this._json.servers; + } + server(index) { + if (!this._json.servers) + return null; + if (typeof index !== 'number') + return null; + if (index > this._json.servers.length - 1) + return null; + return this._json.servers[+index]; + } + publish() { + if (!this._json.publish) + return null; + return new Operation(this._json.publish, { kind: 'publish' }); + } + subscribe() { + if (!this._json.subscribe) + return null; + return new Operation(this._json.subscribe, { kind: 'subscribe' }); + } + hasPublish() { + return !!this._json.publish; + } + hasSubscribe() { + return !!this._json.subscribe; + } + hasBindings() { + return bindingsMixins.hasBindings(this); + } + bindings() { + return bindingsMixins.bindings(this); + } + bindingProtocols() { + return bindingsMixins.bindingProtocols(this); + } + hasBinding(name) { + return bindingsMixins.hasBinding(this, name); + } + binding(name) { + return bindingsMixins.binding(this, name); + } +} diff --git a/esm/old-api/components.d.ts b/esm/old-api/components.d.ts new file mode 100644 index 000000000..7a409a019 --- /dev/null +++ b/esm/old-api/components.d.ts @@ -0,0 +1,44 @@ +import { SpecificationExtensionsModel } from './mixins'; +import { Channel } from './channel'; +import { Message } from './message'; +import { Schema } from './schema'; +import { SecurityScheme } from './security-scheme'; +import { Server } from './server'; +import { ChannelParameter } from './channel-parameter'; +import { CorrelationId } from './correlation-id'; +import { OperationTrait } from './operation-trait'; +import { MessageTrait } from './message-trait'; +import { ServerVariable } from './server-variable'; +import type { v2 } from '../spec-types'; +export declare class Components extends SpecificationExtensionsModel { + hasChannels(): boolean; + channels(): Record; + channel(name: string): Channel | null; + hasMessages(): boolean; + messages(): Record; + message(name: string): Message | null; + hasSchemas(): boolean; + schemas(): Record; + schema(name: string): Schema | null; + hasSecuritySchemes(): boolean; + securitySchemes(): Record; + securityScheme(name: string): SecurityScheme | null; + hasServers(): boolean; + servers(): Record; + server(name: string): Server | null; + hasParameters(): boolean; + parameters(): Record; + parameter(name: string): ChannelParameter | null; + hasCorrelationIds(): boolean; + correlationIds(): Record; + correlationId(name: string): CorrelationId | null; + hasOperationTraits(): boolean; + operationTraits(): Record>; + operationTrait(name: string): OperationTrait | null; + hasMessageTraits(): boolean; + messageTraits(): Record>; + messageTrait(name: string): MessageTrait; + hasServerVariables(): boolean; + serverVariables(): Record; + serverVariable(name: string): ServerVariable | null; +} diff --git a/esm/old-api/components.js b/esm/old-api/components.js new file mode 100644 index 000000000..26fe3ffd6 --- /dev/null +++ b/esm/old-api/components.js @@ -0,0 +1,103 @@ +import { SpecificationExtensionsModel, createMapOfType, getMapValue } from './mixins'; +import { Channel } from './channel'; +import { Message } from './message'; +import { Schema } from './schema'; +import { SecurityScheme } from './security-scheme'; +import { Server } from './server'; +import { ChannelParameter } from './channel-parameter'; +import { CorrelationId } from './correlation-id'; +import { OperationTrait } from './operation-trait'; +import { MessageTrait } from './message-trait'; +import { ServerVariable } from './server-variable'; +export class Components extends SpecificationExtensionsModel { + hasChannels() { + return !!this._json.channels; + } + channels() { + return createMapOfType(this._json.channels, Channel); + } + channel(name) { + return getMapValue(this._json.channels, name, Channel); + } + hasMessages() { + return !!this._json.messages; + } + messages() { + return createMapOfType(this._json.messages, Message); + } + message(name) { + return getMapValue(this._json.messages, name, Message); + } + hasSchemas() { + return !!this._json.schemas; + } + schemas() { + return createMapOfType(this._json.schemas, Schema); + } + schema(name) { + return getMapValue(this._json.schemas, name, Schema); + } + hasSecuritySchemes() { + return !!this._json.securitySchemes; + } + securitySchemes() { + return createMapOfType(this._json.securitySchemes, SecurityScheme); + } + securityScheme(name) { + return getMapValue(this._json.securitySchemes, name, SecurityScheme); + } + hasServers() { + return !!this._json.servers; + } + servers() { + return createMapOfType(this._json.servers, Server); + } + server(name) { + return getMapValue(this._json.servers, name, Server); + } + hasParameters() { + return !!this._json.parameters; + } + parameters() { + return createMapOfType(this._json.parameters, ChannelParameter); + } + parameter(name) { + return getMapValue(this._json.parameters, name, ChannelParameter); + } + hasCorrelationIds() { + return !!this._json.correlationIds; + } + correlationIds() { + return createMapOfType(this._json.correlationIds, CorrelationId); + } + correlationId(name) { + return getMapValue(this._json.correlationIds, name, CorrelationId); + } + hasOperationTraits() { + return !!this._json.operationTraits; + } + operationTraits() { + return createMapOfType(this._json.operationTraits, OperationTrait); + } + operationTrait(name) { + return getMapValue(this._json.operationTraits, name, OperationTrait); + } + hasMessageTraits() { + return !!this._json.messageTraits; + } + messageTraits() { + return createMapOfType(this._json.messageTraits, MessageTrait); + } + messageTrait(name) { + return getMapValue(this._json.messageTraits, name, MessageTrait); + } + hasServerVariables() { + return !!this._json.serverVariables; + } + serverVariables() { + return createMapOfType(this._json.serverVariables, ServerVariable); + } + serverVariable(name) { + return getMapValue(this._json.serverVariables, name, ServerVariable); + } +} diff --git a/esm/old-api/contact.d.ts b/esm/old-api/contact.d.ts new file mode 100644 index 000000000..dd119cb51 --- /dev/null +++ b/esm/old-api/contact.d.ts @@ -0,0 +1,7 @@ +import { SpecificationExtensionsModel } from './mixins'; +import type { v2 } from '../spec-types'; +export declare class Contact extends SpecificationExtensionsModel { + name(): string | undefined; + url(): string | undefined; + email(): string | undefined; +} diff --git a/esm/old-api/contact.js b/esm/old-api/contact.js new file mode 100644 index 000000000..578be5990 --- /dev/null +++ b/esm/old-api/contact.js @@ -0,0 +1,12 @@ +import { SpecificationExtensionsModel } from './mixins'; +export class Contact extends SpecificationExtensionsModel { + name() { + return this._json.name; + } + url() { + return this._json.url; + } + email() { + return this._json.email; + } +} diff --git a/esm/old-api/converter.d.ts b/esm/old-api/converter.d.ts new file mode 100644 index 000000000..96175d630 --- /dev/null +++ b/esm/old-api/converter.d.ts @@ -0,0 +1,3 @@ +import { AsyncAPIDocument } from './asyncapi'; +import type { AsyncAPIDocumentInterface } from '../models/asyncapi'; +export declare function convertToOldAPI(newDocument: AsyncAPIDocumentInterface): AsyncAPIDocument; diff --git a/esm/old-api/converter.js b/esm/old-api/converter.js new file mode 100644 index 000000000..e8cbe7100 --- /dev/null +++ b/esm/old-api/converter.js @@ -0,0 +1,45 @@ +import { AsyncAPIDocument } from './asyncapi'; +import { xParserOriginalPayload, xParserOriginalSchemaFormat, xParserOriginalTraits, xParserMessageParsed } from '../constants'; +import { copy } from '../stringify'; +import { getDefaultSchemaFormat } from '../schema-parser'; +export function convertToOldAPI(newDocument) { + const data = copy(newDocument.json()); + const document = new AsyncAPIDocument(data); + handleMessages(document); + handleOperations(document); + return document; +} +function handleMessages(document) { + const defaultSchemaFormat = getDefaultSchemaFormat(document.version()); + for (const message of document.allMessages().values()) { + const json = message.json(); + if (json.traits) { + json[xParserOriginalTraits] = json.traits; + delete json.traits; + } + json[xParserOriginalSchemaFormat] = json.schemaFormat || defaultSchemaFormat; + json.schemaFormat = defaultSchemaFormat; + json[xParserOriginalPayload] = json[xParserOriginalPayload] || json.payload; + json[xParserMessageParsed] = true; + } +} +function handleOperations(document) { + Object.values(document.channels()).forEach(channel => { + const publish = channel.publish(); + const subscribe = channel.subscribe(); + if (publish) { + const json = publish.json(); + if (json.traits) { + json[xParserOriginalTraits] = json.traits; + delete json.traits; + } + } + if (subscribe) { + const json = subscribe.json(); + if (json.traits) { + json[xParserOriginalTraits] = json.traits; + delete json.traits; + } + } + }); +} diff --git a/esm/old-api/correlation-id.d.ts b/esm/old-api/correlation-id.d.ts new file mode 100644 index 000000000..02fe34b0d --- /dev/null +++ b/esm/old-api/correlation-id.d.ts @@ -0,0 +1,7 @@ +import { SpecificationExtensionsModel } from './mixins'; +import type { v2 } from '../spec-types'; +export declare class CorrelationId extends SpecificationExtensionsModel { + description(): string | null; + hasDescription(): boolean; + location(): string; +} diff --git a/esm/old-api/correlation-id.js b/esm/old-api/correlation-id.js new file mode 100644 index 000000000..778e4607b --- /dev/null +++ b/esm/old-api/correlation-id.js @@ -0,0 +1,12 @@ +import { SpecificationExtensionsModel, description, hasDescription } from './mixins'; +export class CorrelationId extends SpecificationExtensionsModel { + description() { + return description(this); + } + hasDescription() { + return hasDescription(this); + } + location() { + return this._json.location; + } +} diff --git a/esm/old-api/external-docs.d.ts b/esm/old-api/external-docs.d.ts new file mode 100644 index 000000000..67df99a8b --- /dev/null +++ b/esm/old-api/external-docs.d.ts @@ -0,0 +1,15 @@ +import { Base } from './base'; +import type { v2 } from '../spec-types'; +export declare class ExternalDocs extends Base { + url(): string; + hasDescription(): boolean; + description(): string | null; + hasExtensions(): boolean; + extensions(): v2.SpecificationExtensions; + extensionKeys(): string[]; + extKeys(): string[]; + hasExtension(extension: string): boolean; + extension(extension: string): v2.SpecificationExtension; + hasExt(extension: string): boolean; + ext(extension: string): any; +} diff --git a/esm/old-api/external-docs.js b/esm/old-api/external-docs.js new file mode 100644 index 000000000..b74b4a7f9 --- /dev/null +++ b/esm/old-api/external-docs.js @@ -0,0 +1,37 @@ +import { Base } from './base'; +import { description, hasDescription, extensionsMixins } from './mixins'; +export class ExternalDocs extends Base { + url() { + return this._json.url; + } + hasDescription() { + return hasDescription(this); + } + description() { + return description(this); + } + hasExtensions() { + return extensionsMixins.hasExtensions(this); + } + extensions() { + return extensionsMixins.extensions(this); + } + extensionKeys() { + return extensionsMixins.extensionKeys(this); + } + extKeys() { + return extensionsMixins.extKeys(this); + } + hasExtension(extension) { + return extensionsMixins.hasExtension(this, extension); + } + extension(extension) { + return extensionsMixins.extension(this, extension); + } + hasExt(extension) { + return extensionsMixins.hasExt(this, extension); + } + ext(extension) { + return extensionsMixins.ext(this, extension); + } +} diff --git a/esm/old-api/info.d.ts b/esm/old-api/info.d.ts new file mode 100644 index 000000000..94d613d55 --- /dev/null +++ b/esm/old-api/info.d.ts @@ -0,0 +1,13 @@ +import { Contact } from './contact'; +import { License } from './license'; +import { SpecificationExtensionsModel } from './mixins'; +import type { v2 } from '../spec-types'; +export declare class Info extends SpecificationExtensionsModel { + title(): string; + version(): string; + description(): string | null; + hasDescription(): boolean; + termsOfService(): string | undefined; + license(): License | null; + contact(): Contact | null; +} diff --git a/esm/old-api/info.js b/esm/old-api/info.js new file mode 100644 index 000000000..f7fb84b93 --- /dev/null +++ b/esm/old-api/info.js @@ -0,0 +1,30 @@ +import { Contact } from './contact'; +import { License } from './license'; +import { SpecificationExtensionsModel, description, hasDescription } from './mixins'; +export class Info extends SpecificationExtensionsModel { + title() { + return this._json.title; + } + version() { + return this._json.version; + } + description() { + return description(this); + } + hasDescription() { + return hasDescription(this); + } + termsOfService() { + return this._json.termsOfService; + } + license() { + if (!this._json.license) + return null; + return new License(this._json.license); + } + contact() { + if (!this._json.contact) + return null; + return new Contact(this._json.contact); + } +} diff --git a/esm/old-api/iterator.d.ts b/esm/old-api/iterator.d.ts new file mode 100644 index 000000000..01cc614f0 --- /dev/null +++ b/esm/old-api/iterator.d.ts @@ -0,0 +1,42 @@ +import type { AsyncAPIDocument } from './asyncapi'; +import type { Schema } from './schema'; +/** + * The different kind of stages when crawling a schema. + */ +export declare enum SchemaIteratorCallbackType { + NEW_SCHEMA = "NEW_SCHEMA", + END_SCHEMA = "END_SCHEMA" +} +/** + * The different types of schemas you can iterate + */ +export declare enum SchemaTypesToIterate { + parameters = "parameters", + payloads = "payloads", + headers = "headers", + components = "components", + objects = "objects", + arrays = "arrays", + oneOfs = "oneOfs", + allOfs = "allOfs", + anyOfs = "anyOfs", + nots = "nots", + propertyNames = "propertyNames", + patternProperties = "patternProperties", + contains = "contains", + ifs = "ifs", + thenes = "thenes", + elses = "elses", + dependencies = "dependencies", + definitions = "definitions" +} +export declare type TraverseOptions = { + callback: TraverseCallback; + schemaTypesToIterate: Array<`${SchemaTypesToIterate}`>; + seenSchemas: Set; +}; +export declare type TraverseCallback = (schema: Schema, propOrIndex: string | number | null, callbackType: SchemaIteratorCallbackType) => boolean | void; +/** + * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. + */ +export declare function traverseAsyncApiDocument(doc: AsyncAPIDocument, callback: TraverseCallback, schemaTypesToIterate?: Array<`${SchemaTypesToIterate}`>): void; diff --git a/esm/old-api/iterator.js b/esm/old-api/iterator.js new file mode 100644 index 000000000..873ba60e7 --- /dev/null +++ b/esm/old-api/iterator.js @@ -0,0 +1,246 @@ +/** + * The different kind of stages when crawling a schema. + */ +export var SchemaIteratorCallbackType; +(function (SchemaIteratorCallbackType) { + SchemaIteratorCallbackType["NEW_SCHEMA"] = "NEW_SCHEMA"; + SchemaIteratorCallbackType["END_SCHEMA"] = "END_SCHEMA"; +})(SchemaIteratorCallbackType || (SchemaIteratorCallbackType = {})); +/** + * The different types of schemas you can iterate + */ +export var SchemaTypesToIterate; +(function (SchemaTypesToIterate) { + SchemaTypesToIterate["parameters"] = "parameters"; + SchemaTypesToIterate["payloads"] = "payloads"; + SchemaTypesToIterate["headers"] = "headers"; + SchemaTypesToIterate["components"] = "components"; + SchemaTypesToIterate["objects"] = "objects"; + SchemaTypesToIterate["arrays"] = "arrays"; + SchemaTypesToIterate["oneOfs"] = "oneOfs"; + SchemaTypesToIterate["allOfs"] = "allOfs"; + SchemaTypesToIterate["anyOfs"] = "anyOfs"; + SchemaTypesToIterate["nots"] = "nots"; + SchemaTypesToIterate["propertyNames"] = "propertyNames"; + SchemaTypesToIterate["patternProperties"] = "patternProperties"; + SchemaTypesToIterate["contains"] = "contains"; + SchemaTypesToIterate["ifs"] = "ifs"; + SchemaTypesToIterate["thenes"] = "thenes"; + SchemaTypesToIterate["elses"] = "elses"; + SchemaTypesToIterate["dependencies"] = "dependencies"; + SchemaTypesToIterate["definitions"] = "definitions"; +})(SchemaTypesToIterate || (SchemaTypesToIterate = {})); +/** + * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. + */ +export function traverseAsyncApiDocument(doc, callback, schemaTypesToIterate = []) { + if (schemaTypesToIterate.length === 0) { + schemaTypesToIterate = Object.values(SchemaTypesToIterate); + } + const options = { callback, schemaTypesToIterate, seenSchemas: new Set() }; + Object.values(doc.channels()).forEach(channel => { + traverseChannel(channel, options); + }); + const components = doc.components(); + if (schemaTypesToIterate.includes(SchemaTypesToIterate.components) && components) { + Object.values(components.messages()).forEach(message => { + traverseMessage(message, options); + }); + Object.values(components.schemas()).forEach(schema => { + traverseSchema(schema, null, options); + }); + if (schemaTypesToIterate.includes(SchemaTypesToIterate.parameters)) { + Object.values(components.parameters()).forEach(parameter => { + const schema = parameter.schema(); + if (schema) { + traverseSchema(schema, null, options); + } + }); + } + Object.values(components.messageTraits()).forEach(messageTrait => { + traverseMessageTrait(messageTrait, options); + }); + } +} +/* eslint-disable sonarjs/cognitive-complexity */ +/** + * Traverse current schema and all nested schemas. + */ +function traverseSchema(schema, propOrIndex, options) { + if (!schema) + return; + const { schemaTypesToIterate, callback, seenSchemas } = options; + // handle circular references + const jsonSchema = schema.json(); + if (seenSchemas.has(jsonSchema)) + return; + seenSchemas.add(jsonSchema); + // `type` isn't required so save type as array in the fallback + let types = schema.type() || []; + // change primitive type to array of types for easier handling + if (!Array.isArray(types)) { + types = [types]; + } + if (!schemaTypesToIterate.includes(SchemaTypesToIterate.objects) && types.includes('object')) + return; + if (!schemaTypesToIterate.includes(SchemaTypesToIterate.arrays) && types.includes('array')) + return; + // check callback `NEW_SCHEMA` case + if (callback(schema, propOrIndex, SchemaIteratorCallbackType.NEW_SCHEMA) === false) + return; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.objects) && types.includes('object')) { + recursiveSchemaObject(schema, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.arrays) && types.includes('array')) { + recursiveSchemaArray(schema, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.oneOfs)) { + (schema.oneOf() || []).forEach((combineSchema, idx) => { + traverseSchema(combineSchema, idx, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.anyOfs)) { + (schema.anyOf() || []).forEach((combineSchema, idx) => { + traverseSchema(combineSchema, idx, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.allOfs)) { + (schema.allOf() || []).forEach((combineSchema, idx) => { + traverseSchema(combineSchema, idx, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.nots) && schema.not()) { + traverseSchema(schema.not(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.ifs) && schema.if()) { + traverseSchema(schema.if(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.thenes) && schema.then()) { + traverseSchema(schema.then(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.elses) && schema.else()) { + traverseSchema(schema.else(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.dependencies)) { + Object.entries(schema.dependencies() || {}).forEach(([depName, dep]) => { + // do not iterate dependent required + if (dep && !Array.isArray(dep)) { + traverseSchema(dep, depName, options); + } + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.definitions)) { + Object.entries(schema.definitions() || {}).forEach(([defName, def]) => { + traverseSchema(def, defName, options); + }); + } + callback(schema, propOrIndex, SchemaIteratorCallbackType.END_SCHEMA); + seenSchemas.delete(jsonSchema); +} +/* eslint-enable sonarjs/cognitive-complexity */ +/** + * Recursively go through schema of object type and execute callback. + */ +function recursiveSchemaObject(schema, options) { + Object.entries(schema.properties()).forEach(([propertyName, property]) => { + traverseSchema(property, propertyName, options); + }); + const additionalProperties = schema.additionalProperties(); + if (typeof additionalProperties === 'object') { + traverseSchema(additionalProperties, null, options); + } + const schemaTypesToIterate = options.schemaTypesToIterate; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.propertyNames) && schema.propertyNames()) { + traverseSchema(schema.propertyNames(), null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.patternProperties)) { + Object.entries(schema.patternProperties() || {}).forEach(([propertyName, property]) => { + traverseSchema(property, propertyName, options); + }); + } +} +/** + * Recursively go through schema of array type and execute callback. + */ +function recursiveSchemaArray(schema, options) { + const items = schema.items(); + if (items) { + if (Array.isArray(items)) { + items.forEach((item, idx) => { + traverseSchema(item, idx, options); + }); + } + else { + traverseSchema(items, null, options); + } + } + const additionalItems = schema.additionalItems(); + if (typeof additionalItems === 'object') { + traverseSchema(additionalItems, null, options); + } + if (options.schemaTypesToIterate.includes('contains') && schema.contains()) { + traverseSchema(schema.contains(), null, options); + } +} +/** + * Go through each schema in channel + */ +function traverseChannel(channel, options) { + if (!channel) + return; + const { schemaTypesToIterate } = options; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.parameters)) { + Object.values(channel.parameters() || {}).forEach(parameter => { + const schema = parameter.schema(); + if (schema) { + traverseSchema(schema, null, options); + } + }); + } + const publish = channel.publish(); + if (publish) { + publish.messages().forEach(message => { + traverseMessage(message, options); + }); + } + const subscribe = channel.subscribe(); + if (subscribe) { + subscribe.messages().forEach(message => { + traverseMessage(message, options); + }); + } +} +/** + * Go through each schema in a message + */ +function traverseMessage(message, options) { + if (!message) + return; + const { schemaTypesToIterate } = options; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.headers)) { + const headers = message.headers(); + if (headers) { + traverseSchema(headers, null, options); + } + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.payloads)) { + const payload = message.payload(); + if (payload) { + traverseSchema(payload, null, options); + } + } +} +/** + * Go through each schema in a messageTrait + */ +function traverseMessageTrait(messageTrait, options) { + if (!messageTrait) + return; + const { schemaTypesToIterate } = options; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.headers)) { + const headers = messageTrait.headers(); + if (headers) { + traverseSchema(headers, null, options); + } + } +} diff --git a/esm/old-api/license.d.ts b/esm/old-api/license.d.ts new file mode 100644 index 000000000..2e926b988 --- /dev/null +++ b/esm/old-api/license.d.ts @@ -0,0 +1,6 @@ +import { SpecificationExtensionsModel } from './mixins'; +import type { v2 } from '../spec-types'; +export declare class License extends SpecificationExtensionsModel { + name(): string; + url(): string | undefined; +} diff --git a/esm/old-api/license.js b/esm/old-api/license.js new file mode 100644 index 000000000..7393ebc00 --- /dev/null +++ b/esm/old-api/license.js @@ -0,0 +1,9 @@ +import { SpecificationExtensionsModel } from './mixins'; +export class License extends SpecificationExtensionsModel { + name() { + return this._json.name; + } + url() { + return this._json.url; + } +} diff --git a/esm/old-api/message-trait.d.ts b/esm/old-api/message-trait.d.ts new file mode 100644 index 000000000..e4a7f5825 --- /dev/null +++ b/esm/old-api/message-trait.d.ts @@ -0,0 +1,30 @@ +import { SpecificationExtensionsModel } from './mixins'; +import { CorrelationId } from './correlation-id'; +import { Schema } from './schema'; +import type { v2 } from '../spec-types'; +export declare class MessageTrait extends SpecificationExtensionsModel { + id(): string | undefined; + headers(): Schema | null; + header(name: string): Schema | null; + correlationId(): CorrelationId | null; + schemaFormat(): string; + contentType(): string | undefined; + name(): string | undefined; + title(): string | undefined; + summary(): string | undefined; + description(): string | null; + hasDescription(): boolean; + externalDocs(): import("./external-docs").ExternalDocs | null; + hasExternalDocs(): boolean; + hasTags(): boolean; + tags(): import("./tag").Tag[]; + tagNames(): string[]; + hasTag(name: string): boolean; + tag(name: string): import("./tag").Tag | null; + hasBindings(): boolean; + bindings(): Record; + bindingProtocols(): string[]; + hasBinding(name: string): boolean; + binding(name: string): v2.Binding | null; + examples(): v2.MessageExampleObject[] | undefined; +} diff --git a/esm/old-api/message-trait.js b/esm/old-api/message-trait.js new file mode 100644 index 000000000..f8de18056 --- /dev/null +++ b/esm/old-api/message-trait.js @@ -0,0 +1,83 @@ +import { SpecificationExtensionsModel, description, hasDescription, hasExternalDocs, externalDocs, tagsMixins, bindingsMixins, getMapValue } from './mixins'; +import { CorrelationId } from './correlation-id'; +import { Schema } from './schema'; +export class MessageTrait extends SpecificationExtensionsModel { + id() { + return this._json.messageId; + } + headers() { + if (!this._json.headers) + return null; + return new Schema(this._json.headers); + } + header(name) { + if (!this._json.headers) + return null; + return getMapValue(this._json.headers.properties || {}, name, Schema); + } + correlationId() { + if (!this._json.correlationId) + return null; + return new CorrelationId(this._json.correlationId); + } + schemaFormat() { + return this._json.schemaFormat; // Old API points always to the default schema format for given AsyncAPI version, so we need to force returned type as string. + } + contentType() { + return this._json.contentType; + } + name() { + return this._json.name; + } + title() { + return this._json.title; + } + summary() { + return this._json.summary; + } + description() { + return description(this); + } + hasDescription() { + return hasDescription(this); + } + externalDocs() { + return externalDocs(this); + } + hasExternalDocs() { + return hasExternalDocs(this); + } + hasTags() { + return tagsMixins.hasTags(this); + } + tags() { + return tagsMixins.tags(this); + } + tagNames() { + return tagsMixins.tagNames(this); + } + hasTag(name) { + return tagsMixins.hasTag(this, name); + } + tag(name) { + return tagsMixins.tag(this, name); + } + hasBindings() { + return bindingsMixins.hasBindings(this); + } + bindings() { + return bindingsMixins.bindings(this); + } + bindingProtocols() { + return bindingsMixins.bindingProtocols(this); + } + hasBinding(name) { + return bindingsMixins.hasBinding(this, name); + } + binding(name) { + return bindingsMixins.binding(this, name); + } + examples() { + return this._json.examples; + } +} diff --git a/esm/old-api/message.d.ts b/esm/old-api/message.d.ts new file mode 100644 index 000000000..08e26b8f3 --- /dev/null +++ b/esm/old-api/message.d.ts @@ -0,0 +1,11 @@ +import { MessageTrait } from './message-trait'; +import { Schema } from './schema'; +import type { v2 } from '../spec-types'; +export declare class Message extends MessageTrait { + uid(): string; + payload(): Schema | null; + traits(): MessageTrait[]; + hasTraits(): boolean; + originalPayload(): any; + originalSchemaFormat(): string; +} diff --git a/esm/old-api/message.js b/esm/old-api/message.js new file mode 100644 index 000000000..76d709351 --- /dev/null +++ b/esm/old-api/message.js @@ -0,0 +1,28 @@ +import { MessageTrait } from './message-trait'; +import { Schema } from './schema'; +import { xParserMessageName, xParserOriginalTraits, xParserOriginalPayload, xParserOriginalSchemaFormat } from '../constants'; +export class Message extends MessageTrait { + uid() { + return this.id() || this.name() || this.ext(xParserMessageName); + } + payload() { + if (!this._json.payload) + return null; + return new Schema(this._json.payload); + } + traits() { + const traits = this.ext(xParserOriginalTraits) || this._json.traits; + if (!traits) + return []; + return traits.map(t => new MessageTrait(t)); + } + hasTraits() { + return !!this.ext(xParserOriginalTraits) || !!this._json.traits; + } + originalPayload() { + return this.ext(xParserOriginalPayload) || this.payload(); + } + originalSchemaFormat() { + return this.ext(xParserOriginalSchemaFormat) || this.schemaFormat(); + } +} diff --git a/esm/old-api/mixins.d.ts b/esm/old-api/mixins.d.ts new file mode 100644 index 000000000..f0b7021aa --- /dev/null +++ b/esm/old-api/mixins.d.ts @@ -0,0 +1,95 @@ +import { Base } from './base'; +import { ExternalDocs } from './external-docs'; +import { Tag } from './tag'; +import type { v2 } from '../spec-types'; +export declare abstract class SpecificationExtensionsModel = Record> extends Base { + hasExtensions(): boolean; + extensions(): v2.SpecificationExtensions; + extensionKeys(): string[]; + extKeys(): string[]; + hasExtension(extension: string): boolean; + extension(extension: string): v2.SpecificationExtension; + hasExt(extension: string): boolean; + ext(extension: string): any; +} +export declare function hasDescription(model: Base<{ + description?: string; +}>): boolean; +export declare function description(model: Base<{ + description?: string; +}>): string | null; +export declare function hasExternalDocs(model: Base<{ + externalDocs?: v2.ExternalDocumentationObject; +}>): boolean; +export declare function externalDocs(model: Base<{ + externalDocs?: v2.ExternalDocumentationObject; +}>): ExternalDocs | null; +export declare const extensionsMixins: { + hasExtensions(model: Base<{ + [extension: `x-${string}`]: any; + }, Record>): boolean; + extensions(model: Base<{ + [extension: `x-${string}`]: any; + }, Record>): v2.SpecificationExtensions; + extensionKeys(model: Base<{ + [extension: `x-${string}`]: any; + }, Record>): string[]; + extKeys(model: Base<{ + [extension: `x-${string}`]: any; + }, Record>): string[]; + hasExtension(model: Base<{ + [extension: `x-${string}`]: any; + }, Record>, extension: string): boolean; + extension(model: Base<{ + [extension: `x-${string}`]: any; + }, Record>, extension: string): v2.SpecificationExtension | null; + hasExt(model: Base<{ + [extension: `x-${string}`]: any; + }, Record>, extension: string): boolean; + ext(model: Base<{ + [extension: `x-${string}`]: any; + }, Record>, extension: string): any; +}; +export declare const bindingsMixins: { + hasBindings(model: Base<{ + bindings?: Record; + }>): boolean; + bindings(model: Base<{ + bindings?: Record; + }>): Record; + bindingProtocols(model: Base<{ + bindings?: Record; + }>): string[]; + hasBinding(model: Base<{ + bindings?: Record; + }>, name: string): boolean; + binding(model: Base<{ + bindings?: Record; + }>, name: string): v2.Binding | null; +}; +export declare const tagsMixins: { + hasTags(model: Base<{ + tags?: Array; + }>): boolean; + tags(model: Base<{ + tags?: Array; + }>): Array; + tagNames(model: Base<{ + tags?: Array; + }>): string[]; + hasTag(model: Base<{ + tags?: Array; + }>, name: string): boolean; + tag(model: Base<{ + tags?: Array; + }>, name: string): Tag | null; +}; +interface Constructor extends Function { + new (...any: any[]): T; +} +declare type InferModelData = T extends Base ? J : never; +declare type InferModelMetadata = T extends Base ? M : never; +export declare function getMapValue, K extends keyof T>(obj: T | undefined, key: K): T[K] | null; +export declare function getMapValue(obj: Record> | undefined, key: string, Type: Constructor, meta?: InferModelMetadata): T | null; +export declare function createMapOfType(obj: Record> | undefined, Type: Constructor, meta?: InferModelMetadata): Record; +export {}; diff --git a/esm/old-api/mixins.js b/esm/old-api/mixins.js new file mode 100644 index 000000000..8c24d0b52 --- /dev/null +++ b/esm/old-api/mixins.js @@ -0,0 +1,138 @@ +import { Base } from './base'; +import { ExternalDocs } from './external-docs'; +import { Tag } from './tag'; +import { EXTENSION_REGEX } from '../constants'; +export class SpecificationExtensionsModel extends Base { + hasExtensions() { + return extensionsMixins.hasExtensions(this); + } + extensions() { + return extensionsMixins.extensions(this); + } + extensionKeys() { + return extensionsMixins.extensionKeys(this); + } + extKeys() { + return extensionsMixins.extKeys(this); + } + hasExtension(extension) { + return extensionsMixins.hasExtension(this, extension); + } + extension(extension) { + return extensionsMixins.extension(this, extension); + } + hasExt(extension) { + return extensionsMixins.hasExt(this, extension); + } + ext(extension) { + return extensionsMixins.ext(this, extension); + } +} +export function hasDescription(model) { + return Boolean(model.json('description')); +} +export function description(model) { + const description = model.json('description'); + return typeof description === 'string' ? description : null; +} +export function hasExternalDocs(model) { + return Object.keys(model.json('externalDocs') || {}).length > 0; +} +export function externalDocs(model) { + if (typeof model.json('externalDocs') === 'object') { + return new ExternalDocs(model.json('externalDocs')); + } + return null; +} +export const extensionsMixins = { + hasExtensions(model) { + return !!extensionsMixins.extensionKeys(model).length; + }, + extensions(model) { + const result = {}; + Object.entries(model.json()).forEach(([key, value]) => { + if (EXTENSION_REGEX.test(key)) { + result[key] = value; + } + }); + return result; + }, + extensionKeys(model) { + return Object.keys(extensionsMixins.extensions(model)); + }, + extKeys(model) { + return extensionsMixins.extensionKeys(model); + }, + hasExtension(model, extension) { + if (!extension.startsWith('x-')) { + return false; + } + return !!model.json()[extension]; + }, + extension(model, extension) { + if (!extension.startsWith('x-')) { + return null; + } + return model.json()[extension]; + }, + hasExt(model, extension) { + return extensionsMixins.hasExtension(model, extension); + }, + ext(model, extension) { + return extensionsMixins.extension(model, extension); + }, +}; +export const bindingsMixins = { + hasBindings(model) { + return !!Object.keys(bindingsMixins.bindings(model)).length; + }, + bindings(model) { + return model.json('bindings') || {}; + }, + bindingProtocols(model) { + return Object.keys(bindingsMixins.bindings(model)); + }, + hasBinding(model, name) { + return !!bindingsMixins.binding(model, name); + }, + binding(model, name) { + return getMapValue(model.json('bindings'), name); + }, +}; +export const tagsMixins = { + hasTags(model) { + return !!tagsMixins.tags(model).length; + }, + tags(model) { + const tags = model.json('tags'); + return tags ? tags.map(t => new Tag(t)) : []; + }, + tagNames(model) { + const tags = model.json('tags'); + return tags ? tags.map(t => t.name) : []; + }, + hasTag(model, name) { + return !!tagsMixins.tag(model, name); + }, + tag(model, name) { + const tg = (model.json('tags') || []).find(t => t.name === name); + return tg ? new Tag(tg) : null; + }, +}; +export function getMapValue(obj, key, Type, meta) { + if (typeof key !== 'string' || !obj) + return null; + const v = obj[String(key)]; + if (v === undefined) + return null; + return Type ? new Type(v, meta) : v; +} +export function createMapOfType(obj, Type, meta) { + const result = {}; + if (!obj) + return result; + Object.entries(obj).forEach(([key, value]) => { + result[key] = new Type(value, meta); + }); + return result; +} diff --git a/esm/old-api/oauth-flow.d.ts b/esm/old-api/oauth-flow.d.ts new file mode 100644 index 000000000..0621e5b7e --- /dev/null +++ b/esm/old-api/oauth-flow.d.ts @@ -0,0 +1,8 @@ +import { SpecificationExtensionsModel } from './mixins'; +import type { v2 } from '../spec-types'; +export declare class OAuthFlow extends SpecificationExtensionsModel { + authorizationUrl(): string; + tokenUrl(): string; + refreshUrl(): string | undefined; + scopes(): Record; +} diff --git a/esm/old-api/oauth-flow.js b/esm/old-api/oauth-flow.js new file mode 100644 index 000000000..334c5ab3c --- /dev/null +++ b/esm/old-api/oauth-flow.js @@ -0,0 +1,15 @@ +import { SpecificationExtensionsModel } from './mixins'; +export class OAuthFlow extends SpecificationExtensionsModel { + authorizationUrl() { + return this._json.authorizationUrl; + } + tokenUrl() { + return this._json.tokenUrl; + } + refreshUrl() { + return this._json.refreshUrl; + } + scopes() { + return this._json.scopes; + } +} diff --git a/esm/old-api/operation-trait.d.ts b/esm/old-api/operation-trait.d.ts new file mode 100644 index 000000000..9e48932d7 --- /dev/null +++ b/esm/old-api/operation-trait.d.ts @@ -0,0 +1,27 @@ +import { SpecificationExtensionsModel } from './mixins'; +import { SecurityRequirement } from './security-requirement'; +import type { v2 } from '../spec-types'; +export declare class OperationTrait extends SpecificationExtensionsModel { + isPublish(): boolean; + isSubscribe(): boolean; + kind(): "subscribe" | "publish"; + id(): string | undefined; + summary(): string | undefined; + description(): string | null; + hasDescription(): boolean; + externalDocs(): import("./external-docs").ExternalDocs | null; + hasExternalDocs(): boolean; + hasTags(): boolean; + tags(): import("./tag").Tag[]; + tagNames(): string[]; + hasTag(name: string): boolean; + tag(name: string): import("./tag").Tag | null; + hasBindings(): boolean; + bindings(): Record; + bindingProtocols(): string[]; + hasBinding(name: string): boolean; + binding(name: string): v2.Binding | null; + security(): SecurityRequirement[] | null; +} diff --git a/esm/old-api/operation-trait.js b/esm/old-api/operation-trait.js new file mode 100644 index 000000000..b15cdd31e --- /dev/null +++ b/esm/old-api/operation-trait.js @@ -0,0 +1,66 @@ +import { SpecificationExtensionsModel, description, hasDescription, hasExternalDocs, externalDocs, tagsMixins, bindingsMixins } from './mixins'; +import { SecurityRequirement } from './security-requirement'; +export class OperationTrait extends SpecificationExtensionsModel { + isPublish() { + return this._meta.kind === 'publish'; + } + isSubscribe() { + return this._meta.kind === 'subscribe'; + } + kind() { + return this._meta.kind; + } + id() { + return this._json.operationId; + } + summary() { + return this._json.summary; + } + description() { + return description(this); + } + hasDescription() { + return hasDescription(this); + } + externalDocs() { + return externalDocs(this); + } + hasExternalDocs() { + return hasExternalDocs(this); + } + hasTags() { + return tagsMixins.hasTags(this); + } + tags() { + return tagsMixins.tags(this); + } + tagNames() { + return tagsMixins.tagNames(this); + } + hasTag(name) { + return tagsMixins.hasTag(this, name); + } + tag(name) { + return tagsMixins.tag(this, name); + } + hasBindings() { + return bindingsMixins.hasBindings(this); + } + bindings() { + return bindingsMixins.bindings(this); + } + bindingProtocols() { + return bindingsMixins.bindingProtocols(this); + } + hasBinding(name) { + return bindingsMixins.hasBinding(this, name); + } + binding(name) { + return bindingsMixins.binding(this, name); + } + security() { + if (!this._json.security) + return null; + return this._json.security.map(sec => new SecurityRequirement(sec)); + } +} diff --git a/esm/old-api/operation.d.ts b/esm/old-api/operation.d.ts new file mode 100644 index 000000000..057caa8e8 --- /dev/null +++ b/esm/old-api/operation.d.ts @@ -0,0 +1,10 @@ +import { OperationTrait } from './operation-trait'; +import { Message } from './message'; +import type { v2 } from '../spec-types'; +export declare class Operation extends OperationTrait { + traits(): OperationTrait[]; + hasTraits(): boolean; + hasMultipleMessages(): boolean; + messages(): Message[]; + message(index?: number | string): Message | null; +} diff --git a/esm/old-api/operation.js b/esm/old-api/operation.js new file mode 100644 index 000000000..32101c899 --- /dev/null +++ b/esm/old-api/operation.js @@ -0,0 +1,42 @@ +import { OperationTrait } from './operation-trait'; +import { Message } from './message'; +export class Operation extends OperationTrait { + traits() { + const traits = this._json['x-parser-original-traits'] || this._json.traits; + if (!traits) + return []; + return traits.map(t => new OperationTrait(t)); + } + hasTraits() { + return !!this._json['x-parser-original-traits'] || !!this._json.traits; + } + hasMultipleMessages() { + const message = this._json.message; + // eslint-disable-next-line sonarjs/prefer-single-boolean-return + if (message && message.oneOf && message.oneOf.length > 1) + return true; + return false; + } + messages() { + const message = this._json.message; + if (!message) + return []; + if (message.oneOf) + return message.oneOf.map(m => new Message(m)); + return [new Message(message)]; + } + message(index) { + const message = this._json.message; + if (!message) + return null; + if (message.oneOf && message.oneOf.length === 1) + return new Message(message.oneOf[0]); + if (!message.oneOf) + return new Message(message); + if (typeof index !== 'number') + return null; + if (index > message.oneOf.length - 1) + return null; + return new Message(message.oneOf[+index]); + } +} diff --git a/esm/old-api/schema.d.ts b/esm/old-api/schema.d.ts new file mode 100644 index 000000000..b9d2ece2d --- /dev/null +++ b/esm/old-api/schema.d.ts @@ -0,0 +1,63 @@ +import { SpecificationExtensionsModel } from './mixins'; +import type { v2 } from '../spec-types'; +export declare class Schema extends SpecificationExtensionsModel { + uid(): any; + $id(): string | undefined; + multipleOf(): number | undefined; + maximum(): number | undefined; + exclusiveMaximum(): number | undefined; + minimum(): number | undefined; + exclusiveMinimum(): number | undefined; + maxLength(): number | undefined; + minLength(): number | undefined; + pattern(): string | undefined; + maxItems(): number | undefined; + minItems(): number | undefined; + uniqueItems(): boolean | undefined; + maxProperties(): number | undefined; + minProperties(): number | undefined; + required(): string[] | undefined; + enum(): import("json-schema").JSONSchema7Type[] | undefined; + type(): import("json-schema").JSONSchema7TypeName | import("json-schema").JSONSchema7TypeName[] | undefined; + allOf(): Schema[] | null; + oneOf(): Schema[] | null; + anyOf(): Schema[] | null; + not(): Schema | null; + items(): Schema | Schema[] | null; + properties(): Record; + property(name: string): Schema | null; + additionalProperties(): boolean | Schema; + additionalItems(): boolean | Schema; + patternProperties(): Record; + const(): import("json-schema").JSONSchema7Type | undefined; + contains(): Schema | null; + dependencies(): Record | null; + propertyNames(): Schema | null; + if(): Schema | null; + then(): Schema | null; + else(): Schema | null; + format(): string | undefined; + contentEncoding(): string | undefined; + contentMediaType(): string | undefined; + definitions(): Record; + title(): string | undefined; + default(): import("json-schema").JSONSchema7Type | undefined; + deprecated(): boolean | undefined; + discriminator(): string | undefined; + readOnly(): boolean | undefined; + writeOnly(): boolean | undefined; + examples(): import("json-schema").JSONSchema7Type[] | undefined; + isBooleanSchema(): boolean; + description(): string | null; + hasDescription(): boolean; + externalDocs(): import("./external-docs").ExternalDocs | null; + hasExternalDocs(): boolean; + isCircular(): boolean; + circularSchema(): Schema | undefined; + hasCircularProps(): boolean; + circularProps(): any; + protected __get(key: K): v2.AsyncAPISchemaDefinition[K] | undefined; + protected __createChild(s: v2.AsyncAPISchemaObject): Schema; +} diff --git a/esm/old-api/schema.js b/esm/old-api/schema.js new file mode 100644 index 000000000..e1b7a8b98 --- /dev/null +++ b/esm/old-api/schema.js @@ -0,0 +1,249 @@ +import { SpecificationExtensionsModel, createMapOfType, getMapValue, description, hasDescription, hasExternalDocs, externalDocs } from './mixins'; +import { xParserCircular, xParserCircularProps } from '../constants'; +import { hasRef } from '../utils'; +export class Schema extends SpecificationExtensionsModel { + uid() { + return this.$id() || this.ext('x-parser-schema-id'); + } + $id() { + return this.__get('$id'); + } + multipleOf() { + return this.__get('multipleOf'); + } + maximum() { + return this.__get('maximum'); + } + exclusiveMaximum() { + return this.__get('exclusiveMaximum'); + } + minimum() { + return this.__get('minimum'); + } + exclusiveMinimum() { + return this.__get('exclusiveMinimum'); + } + maxLength() { + return this.__get('maxLength'); + } + minLength() { + return this.__get('minLength'); + } + pattern() { + return this.__get('pattern'); + } + maxItems() { + return this.__get('maxItems'); + } + minItems() { + return this.__get('minItems'); + } + uniqueItems() { + return this.__get('uniqueItems'); + } + maxProperties() { + return this.__get('maxProperties'); + } + minProperties() { + return this.__get('minProperties'); + } + required() { + return this.__get('required'); + } + enum() { + return this.__get('enum'); + } + type() { + return this.__get('type'); + } + allOf() { + const allOf = this.__get('allOf'); + return !allOf ? null : allOf.map(this.__createChild); + } + oneOf() { + const oneOf = this.__get('oneOf'); + return !oneOf ? null : oneOf.map(this.__createChild); + } + anyOf() { + const anyOf = this.__get('anyOf'); + return !anyOf ? null : anyOf.map(this.__createChild); + } + not() { + const not = this.__get('not'); + return !not ? null : this.__createChild(not); + } + items() { + const items = this.__get('items'); + if (!items) + return null; + if (Array.isArray(items)) { + return items.map(this.__createChild); + } + return this.__createChild(items); + } + properties() { + return createMapOfType(this.__get('properties'), Schema, { parent: this }); + } + property(name) { + return getMapValue(this.__get('properties'), name, Schema, { parent: this }); + } + additionalProperties() { + if (typeof this._json === 'boolean') + return this._json; + const additionalProperties = this.__get('additionalProperties'); + if (typeof additionalProperties === 'boolean') + return additionalProperties; + if (additionalProperties === undefined) + return true; + if (additionalProperties === null) + return false; + return this.__createChild(additionalProperties); + } + additionalItems() { + if (typeof this._json === 'boolean') + return this._json; + const additionalItems = this.__get('additionalItems'); + if (typeof additionalItems === 'boolean') + return additionalItems; + if (additionalItems === undefined) + return true; + if (additionalItems === null) + return false; + return this.__createChild(additionalItems); + } + patternProperties() { + return createMapOfType(this.__get('patternProperties'), Schema, { parent: this }); + } + const() { + return this.__get('const'); + } + contains() { + const contains = this.__get('contains'); + return typeof contains === 'undefined' ? null : this.__createChild(contains); + } + dependencies() { + const dependencies = this.__get('dependencies'); + if (!dependencies) + return null; + const result = {}; + Object.entries(dependencies).forEach(([key, value]) => { + result[key] = !Array.isArray(value) ? this.__createChild(value) : value; + }); + return result; + } + propertyNames() { + const propertyNames = this.__get('propertyNames'); + return typeof propertyNames === 'undefined' ? null : this.__createChild(propertyNames); + } + if() { + const _if = this.__get('if'); + return typeof _if === 'undefined' ? null : this.__createChild(_if); + } + then() { + const _then = this.__get('then'); + return typeof _then === 'undefined' ? null : this.__createChild(_then); + } + else() { + const _else = this.__get('else'); + return typeof _else === 'undefined' ? null : this.__createChild(_else); + } + format() { + return this.__get('format'); + } + contentEncoding() { + return this.__get('contentEncoding'); + } + contentMediaType() { + return this.__get('contentMediaType'); + } + definitions() { + return createMapOfType(this.__get('definitions'), Schema, { parent: this }); + } + title() { + return this.__get('title'); + } + default() { + return this.__get('default'); + } + deprecated() { + return this.__get('deprecated'); + } + discriminator() { + return this.__get('discriminator'); + } + readOnly() { + return this.__get('readOnly'); + } + writeOnly() { + return this.__get('writeOnly'); + } + examples() { + return this.__get('examples'); + } + isBooleanSchema() { + return typeof this._json === 'boolean'; + } + description() { + return description(this); + } + hasDescription() { + return hasDescription(this); + } + externalDocs() { + return externalDocs(this); + } + hasExternalDocs() { + return hasExternalDocs(this); + } + isCircular() { + if (hasRef(this._json) || this.ext(xParserCircular)) { + return true; + } + let parent = this._meta.parent; + while (parent) { + if (parent._json === this._json) + return true; + parent = parent._meta && parent._meta.parent; + } + return false; + } + circularSchema() { + let parent = this._meta.parent; + while (parent) { + if (parent._json === this._json) + return parent; + parent = parent._meta && parent._meta.parent; + } + } + hasCircularProps() { + if (Array.isArray(this.ext(xParserCircularProps))) { + return this.ext(xParserCircularProps).length > 0; + } + return Object.entries(this.properties() || {}) + .map(([propertyName, property]) => { + if (property.isCircular()) + return propertyName; + }) + .filter(Boolean) + .length > 0; + } + circularProps() { + if (Array.isArray(this.ext(xParserCircularProps))) { + return this.ext(xParserCircularProps); + } + return Object.entries(this.properties() || {}) + .map(([propertyName, property]) => { + if (property.isCircular()) + return propertyName; + }) + .filter(Boolean); + } + __get(key) { + if (typeof this._json === 'boolean') + return; + return this._json[key]; + } + __createChild(s) { + return new Schema(s, { parent: this }); + } +} diff --git a/esm/old-api/security-requirement.d.ts b/esm/old-api/security-requirement.d.ts new file mode 100644 index 000000000..034e0c317 --- /dev/null +++ b/esm/old-api/security-requirement.d.ts @@ -0,0 +1,4 @@ +import { Base } from './base'; +import type { v2 } from '../spec-types'; +export declare class SecurityRequirement extends Base { +} diff --git a/esm/old-api/security-requirement.js b/esm/old-api/security-requirement.js new file mode 100644 index 000000000..c37b25dbf --- /dev/null +++ b/esm/old-api/security-requirement.js @@ -0,0 +1,3 @@ +import { Base } from './base'; +export class SecurityRequirement extends Base { +} diff --git a/esm/old-api/security-scheme.d.ts b/esm/old-api/security-scheme.d.ts new file mode 100644 index 000000000..bde080425 --- /dev/null +++ b/esm/old-api/security-scheme.d.ts @@ -0,0 +1,14 @@ +import { SpecificationExtensionsModel } from './mixins'; +import { OAuthFlow } from './oauth-flow'; +import type { v2 } from '../spec-types'; +export declare class SecurityScheme extends SpecificationExtensionsModel { + type(): v2.SecuritySchemeType; + description(): string | null; + hasDescription(): boolean; + name(): string | undefined; + in(): "user" | "password" | "query" | "header" | "cookie" | undefined; + scheme(): string | undefined; + bearerFormat(): string | undefined; + openIdConnectUrl(): string | undefined; + flows(): Record; +} diff --git a/esm/old-api/security-scheme.js b/esm/old-api/security-scheme.js new file mode 100644 index 000000000..bc06878ca --- /dev/null +++ b/esm/old-api/security-scheme.js @@ -0,0 +1,31 @@ +import { SpecificationExtensionsModel, description, hasDescription, createMapOfType } from './mixins'; +import { OAuthFlow } from './oauth-flow'; +export class SecurityScheme extends SpecificationExtensionsModel { + type() { + return this._json.type; + } + description() { + return description(this); + } + hasDescription() { + return hasDescription(this); + } + name() { + return this._json.name; + } + in() { + return this._json.in; + } + scheme() { + return this._json.scheme; + } + bearerFormat() { + return this._json.bearerFormat; + } + openIdConnectUrl() { + return this._json.openIdConnectUrl; + } + flows() { + return createMapOfType(this._json.flows, OAuthFlow); + } +} diff --git a/esm/old-api/server-variable.d.ts b/esm/old-api/server-variable.d.ts new file mode 100644 index 000000000..ed17f1d6f --- /dev/null +++ b/esm/old-api/server-variable.d.ts @@ -0,0 +1,12 @@ +import { SpecificationExtensionsModel } from './mixins'; +import type { v2 } from '../spec-types'; +export declare class ServerVariable extends SpecificationExtensionsModel { + allowedValues(): string[] | undefined; + allows(name: string): boolean; + hasAllowedValues(): boolean; + description(): string | null; + hasDescription(): boolean; + defaultValue(): string | undefined; + hasDefaultValue(): boolean; + examples(): string[] | undefined; +} diff --git a/esm/old-api/server-variable.js b/esm/old-api/server-variable.js new file mode 100644 index 000000000..4c557c989 --- /dev/null +++ b/esm/old-api/server-variable.js @@ -0,0 +1,29 @@ +import { SpecificationExtensionsModel, description, hasDescription } from './mixins'; +export class ServerVariable extends SpecificationExtensionsModel { + allowedValues() { + return this._json.enum; + } + allows(name) { + if (this._json.enum === undefined) + return true; + return this._json.enum.includes(name); + } + hasAllowedValues() { + return this._json.enum !== undefined; + } + description() { + return description(this); + } + hasDescription() { + return hasDescription(this); + } + defaultValue() { + return this._json.default; + } + hasDefaultValue() { + return this._json.default !== undefined; + } + examples() { + return this._json.examples; + } +} diff --git a/esm/old-api/server.d.ts b/esm/old-api/server.d.ts new file mode 100644 index 000000000..803194b67 --- /dev/null +++ b/esm/old-api/server.d.ts @@ -0,0 +1,20 @@ +import { SpecificationExtensionsModel } from './mixins'; +import { ServerVariable } from './server-variable'; +import { SecurityRequirement } from './security-requirement'; +import type { v2 } from '../spec-types'; +export declare class Server extends SpecificationExtensionsModel { + url(): string; + protocol(): string; + protocolVersion(): string | undefined; + description(): string | null; + hasDescription(): boolean; + variables(): Record; + variable(name: string): ServerVariable | null; + hasVariables(): boolean; + security(): SecurityRequirement[] | null; + hasBindings(): boolean; + bindings(): Record; + bindingProtocols(): string[]; + hasBinding(name: string): boolean; + binding(name: string): v2.Binding | null; +} diff --git a/esm/old-api/server.js b/esm/old-api/server.js new file mode 100644 index 000000000..a1bcbc705 --- /dev/null +++ b/esm/old-api/server.js @@ -0,0 +1,49 @@ +import { SpecificationExtensionsModel, description, hasDescription, createMapOfType, bindingsMixins, getMapValue } from './mixins'; +import { ServerVariable } from './server-variable'; +import { SecurityRequirement } from './security-requirement'; +export class Server extends SpecificationExtensionsModel { + url() { + return this._json.url; + } + protocol() { + return this._json.protocol; + } + protocolVersion() { + return this._json.protocolVersion; + } + description() { + return description(this); + } + hasDescription() { + return hasDescription(this); + } + variables() { + return createMapOfType(this._json.variables, ServerVariable); + } + variable(name) { + return getMapValue(this._json.variables, name, ServerVariable); + } + hasVariables() { + return !!this._json.variables; + } + security() { + if (!this._json.security) + return null; + return this._json.security.map(sec => new SecurityRequirement(sec)); + } + hasBindings() { + return bindingsMixins.hasBindings(this); + } + bindings() { + return bindingsMixins.bindings(this); + } + bindingProtocols() { + return bindingsMixins.bindingProtocols(this); + } + hasBinding(name) { + return bindingsMixins.hasBinding(this, name); + } + binding(name) { + return bindingsMixins.binding(this, name); + } +} diff --git a/esm/old-api/tag.d.ts b/esm/old-api/tag.d.ts new file mode 100644 index 000000000..f895f29e7 --- /dev/null +++ b/esm/old-api/tag.d.ts @@ -0,0 +1,17 @@ +import { Base } from './base'; +import type { v2 } from '../spec-types'; +export declare class Tag extends Base { + name(): string; + description(): string | null; + hasDescription(): boolean; + externalDocs(): import("./external-docs").ExternalDocs | null; + hasExternalDocs(): boolean; + hasExtensions(): boolean; + extensions(): v2.SpecificationExtensions; + extensionKeys(): string[]; + extKeys(): string[]; + hasExtension(extension: string): boolean; + extension(extension: string): v2.SpecificationExtension; + hasExt(extension: string): boolean; + ext(extension: string): any; +} diff --git a/esm/old-api/tag.js b/esm/old-api/tag.js new file mode 100644 index 000000000..27d82558b --- /dev/null +++ b/esm/old-api/tag.js @@ -0,0 +1,43 @@ +import { Base } from './base'; +import { hasDescription, description, hasExternalDocs, externalDocs, extensionsMixins } from './mixins'; +export class Tag extends Base { + name() { + return this._json.name; + } + description() { + return description(this); + } + hasDescription() { + return hasDescription(this); + } + externalDocs() { + return externalDocs(this); + } + hasExternalDocs() { + return hasExternalDocs(this); + } + hasExtensions() { + return extensionsMixins.hasExtensions(this); + } + extensions() { + return extensionsMixins.extensions(this); + } + extensionKeys() { + return extensionsMixins.extensionKeys(this); + } + extKeys() { + return extensionsMixins.extKeys(this); + } + hasExtension(extension) { + return extensionsMixins.hasExtension(this, extension); + } + extension(extension) { + return extensionsMixins.extension(this, extension); + } + hasExt(extension) { + return extensionsMixins.hasExt(this, extension); + } + ext(extension) { + return extensionsMixins.ext(this, extension); + } +} diff --git a/esm/parse.d.ts b/esm/parse.d.ts new file mode 100644 index 000000000..dc70ad660 --- /dev/null +++ b/esm/parse.d.ts @@ -0,0 +1,16 @@ +import { AsyncAPIDocumentInterface } from './models'; +import type { Spectral } from '@stoplight/spectral-core'; +import type { Parser } from './parser'; +import type { ValidateOptions } from './validate'; +import type { Input, Diagnostic } from './types'; +export interface ParseOutput { + document: AsyncAPIDocumentInterface | undefined; + diagnostics: Diagnostic[]; +} +export interface ParseOptions { + source?: string; + applyTraits?: boolean; + parseSchemas?: boolean; + validateOptions?: Omit; +} +export declare function parse(parser: Parser, spectral: Spectral, asyncapi: Input, options?: ParseOptions): Promise; diff --git a/esm/parse.js b/esm/parse.js new file mode 100644 index 000000000..3793da5d1 --- /dev/null +++ b/esm/parse.js @@ -0,0 +1,42 @@ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import { customOperations } from './custom-operations'; +import { validate } from './validate'; +import { copy } from './stringify'; +import { createAsyncAPIDocument } from './document'; +import { createDetailedAsyncAPI, mergePatch, setExtension } from './utils'; +import { xParserSpecParsed } from './constants'; +const defaultOptions = { + applyTraits: true, + parseSchemas: true, + validateOptions: {}, +}; +export function parse(parser, spectral, asyncapi, options = {}) { + return __awaiter(this, void 0, void 0, function* () { + options = mergePatch(defaultOptions, options); + const { validated, diagnostics } = yield validate(spectral, asyncapi, Object.assign(Object.assign({}, options.validateOptions), { source: options.source })); + if (validated === undefined) { + return { + document: undefined, + diagnostics, + }; + } + // unfreeze the object - Spectral makes resolved document "freezed" + const validatedDoc = copy(validated); + const detailed = createDetailedAsyncAPI(asyncapi, validatedDoc); + const document = createAsyncAPIDocument(detailed); + setExtension(xParserSpecParsed, true, document); + yield customOperations(parser, document, detailed, options); + return { + document, + diagnostics, + }; + }); +} diff --git a/esm/parser.d.ts b/esm/parser.d.ts new file mode 100644 index 000000000..e0b0643f5 --- /dev/null +++ b/esm/parser.d.ts @@ -0,0 +1,21 @@ +import type { Spectral } from '@stoplight/spectral-core'; +import type { ParseOptions, ParseOutput } from './parse'; +import type { ValidateOptions } from './validate'; +import type { ResolverOptions } from './resolver'; +import type { SchemaParser } from './schema-parser'; +import type { Diagnostic, Input } from './types'; +export interface ParserOptions { + schemaParsers?: Array; + __unstable?: { + resolver?: ResolverOptions; + }; +} +export declare class Parser { + private readonly options; + readonly parserRegistry: Map>; + protected readonly spectral: Spectral; + constructor(options?: ParserOptions); + parse(asyncapi: Input, options?: ParseOptions): Promise; + validate(asyncapi: Input, options?: ValidateOptions): Promise; + registerSchemaParser(parser: SchemaParser): void; +} diff --git a/esm/parser.js b/esm/parser.js new file mode 100644 index 000000000..3a95c404d --- /dev/null +++ b/esm/parser.js @@ -0,0 +1,49 @@ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import { toAsyncAPIDocument } from './document'; +import { parse } from './parse'; +import { validate } from './validate'; +import { registerSchemaParser } from './schema-parser'; +import { AsyncAPISchemaParser } from './schema-parser/asyncapi-schema-parser'; +import { createSpectral } from './spectral'; +export class Parser { + constructor(options = {}) { + var _a; + this.options = options; + this.parserRegistry = new Map(); + this.spectral = createSpectral(this, options); + this.registerSchemaParser(AsyncAPISchemaParser()); + (_a = this.options.schemaParsers) === null || _a === void 0 ? void 0 : _a.forEach(parser => this.registerSchemaParser(parser)); + } + parse(asyncapi, options) { + return __awaiter(this, void 0, void 0, function* () { + const maybeDocument = toAsyncAPIDocument(asyncapi); + if (maybeDocument) { + return { + document: maybeDocument, + diagnostics: [], + }; + } + return parse(this, this.spectral, asyncapi, options); + }); + } + validate(asyncapi, options) { + return __awaiter(this, void 0, void 0, function* () { + const maybeDocument = toAsyncAPIDocument(asyncapi); + if (maybeDocument) { + return []; + } + return (yield validate(this.spectral, asyncapi, options)).diagnostics; + }); + } + registerSchemaParser(parser) { + return registerSchemaParser(this, parser); + } +} diff --git a/esm/resolver.d.ts b/esm/resolver.d.ts new file mode 100644 index 000000000..90d4232bc --- /dev/null +++ b/esm/resolver.d.ts @@ -0,0 +1,13 @@ +import { Resolver as SpectralResolver } from '@stoplight/spectral-ref-resolver'; +import type Uri from 'urijs'; +export interface Resolver { + schema: 'file' | 'http' | 'https' | string; + order?: number; + canRead?: boolean | ((uri: Uri, ctx?: any) => boolean); + read: (uri: Uri, ctx?: any) => string | undefined | Promise; +} +export interface ResolverOptions { + cache?: boolean; + resolvers?: Array; +} +export declare function createResolver(options?: ResolverOptions): SpectralResolver; diff --git a/esm/resolver.js b/esm/resolver.js new file mode 100644 index 000000000..4ff3c343c --- /dev/null +++ b/esm/resolver.js @@ -0,0 +1,73 @@ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import { Resolver as SpectralResolver } from '@stoplight/spectral-ref-resolver'; +import { Cache } from '@stoplight/json-ref-resolver/cache'; +import { resolveFile, resolveHttp } from '@stoplight/json-ref-readers'; +export function createResolver(options = {}) { + const availableResolvers = [ + ...createDefaultResolvers(), + ...((options === null || options === void 0 ? void 0 : options.resolvers) || []) + ].map(r => (Object.assign(Object.assign({}, r), { order: r.order || Number.MAX_SAFE_INTEGER, canRead: typeof r.canRead === 'undefined' ? true : r.canRead }))); + const availableSchemas = [...new Set(availableResolvers.map(r => r.schema))]; + const resolvers = availableSchemas.reduce((acc, schema) => { + acc[schema] = { resolve: createSchemaResolver(schema, availableResolvers) }; + return acc; + }, {}); + // if cache is enabled, use default Cache instance in SpectralResolver, otherwise use custom one with ttl set to 1ms + const cache = options.cache !== false; + return new SpectralResolver({ + uriCache: cache ? undefined : new Cache({ stdTTL: 1 }), + resolvers: resolvers, + }); +} +function createDefaultResolvers() { + return [ + { + schema: 'file', + read: resolveFile, + }, + { + schema: 'https', + read: resolveHttp, + }, + { + schema: 'http', + read: resolveHttp, + }, + ]; +} +function createSchemaResolver(schema, allResolvers) { + const resolvers = allResolvers.filter(r => r.schema === schema).sort((a, b) => { return a.order - b.order; }); + return (uri, ctx) => __awaiter(this, void 0, void 0, function* () { + let result = undefined; + let lastError; + for (const resolver of resolvers) { + try { + if (!canRead(resolver, uri, ctx)) + continue; + result = yield resolver.read(uri, ctx); + if (typeof result === 'string') { + break; + } + } + catch (e) { + lastError = e; + continue; + } + } + if (typeof result !== 'string') { + throw lastError || new Error(`None of the available resolvers for "${schema}" can resolve the given reference.`); + } + return result; + }); +} +function canRead(resolver, uri, ctx) { + return typeof resolver.canRead === 'function' ? resolver.canRead(uri, ctx) : resolver.canRead; +} diff --git a/esm/schema-parser/asyncapi-schema-parser.d.ts b/esm/schema-parser/asyncapi-schema-parser.d.ts new file mode 100644 index 000000000..9f4f64000 --- /dev/null +++ b/esm/schema-parser/asyncapi-schema-parser.d.ts @@ -0,0 +1,2 @@ +import type { SchemaParser } from '../schema-parser'; +export declare function AsyncAPISchemaParser(): SchemaParser; diff --git a/esm/schema-parser/asyncapi-schema-parser.js b/esm/schema-parser/asyncapi-schema-parser.js new file mode 100644 index 000000000..e30bfce8f --- /dev/null +++ b/esm/schema-parser/asyncapi-schema-parser.js @@ -0,0 +1,88 @@ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import Ajv from 'ajv'; +// @ts-ignore +import specs from '@asyncapi/specs'; +import { specVersions } from '../constants'; +const ajv = new Ajv({ + allErrors: true, + strict: false, + logger: false, +}); +export function AsyncAPISchemaParser() { + return { + validate, + parse, + getMimeTypes, + }; +} +function validate(input) { + return __awaiter(this, void 0, void 0, function* () { + const version = input.asyncapi.semver.version; + const validator = getSchemaValidator(version); + let result = []; + const valid = validator(input.data); + if (!valid && validator.errors) { + result = ajvToSpectralResult(input.path, [...validator.errors]); + } + return result; + }); +} +function parse(input) { + return __awaiter(this, void 0, void 0, function* () { + return input.data; + }); +} +function getMimeTypes() { + const mimeTypes = [ + 'application/schema;version=draft-07', + 'application/schema+json;version=draft-07', + 'application/schema+yaml;version=draft-07', + ]; + specVersions.forEach((version) => { + mimeTypes.push(`application/vnd.aai.asyncapi;version=${version}`, `application/vnd.aai.asyncapi+json;version=${version}`, `application/vnd.aai.asyncapi+yaml;version=${version}`); + }); + return mimeTypes; +} +function ajvToSpectralResult(path, errors) { + return errors.map(error => { + return { + message: error.message, + path: [...path, ...error.instancePath.replace(/^\//, '').split('/')], + }; + }); +} +function getSchemaValidator(version) { + let validator = ajv.getSchema(version); + if (!validator) { + const schema = preparePayloadSchema(specs[version], version); + ajv.addSchema(schema, version); + validator = ajv.getSchema(version); + } + return validator; +} +/** + * To validate the schema of the payload we just need a small portion of official AsyncAPI spec JSON Schema, the Schema Object in particular. The definition of Schema Object must be + * included in the returned JSON Schema. + */ +function preparePayloadSchema(asyncapiSchema, version) { + const payloadSchema = `http://asyncapi.com/definitions/${version}/schema.json`; + const definitions = asyncapiSchema.definitions; + if (definitions === undefined) { + throw new Error('AsyncAPI schema must contain definitions'); + } + // Remove the meta schemas because they are already present within Ajv, and it's not possible to add duplicated schemas. + delete definitions['http://json-schema.org/draft-07/schema']; + delete definitions['http://json-schema.org/draft-04/schema']; + return { + $ref: payloadSchema, + definitions + }; +} diff --git a/esm/schema-parser/avro-schema-parser.d.ts b/esm/schema-parser/avro-schema-parser.d.ts new file mode 100644 index 000000000..ef6e5c387 --- /dev/null +++ b/esm/schema-parser/avro-schema-parser.d.ts @@ -0,0 +1,9 @@ +import type { Schema } from 'avsc'; +import type { SchemaParser } from '../schema-parser'; +import type { v2 } from '../spec-types'; +declare type AvroSchema = Schema & { + [key: string]: any; +}; +export declare function AvroSchemaParser(): SchemaParser; +export declare function avroToJsonSchema(avroDefinition: AvroSchema): Promise; +export {}; diff --git a/esm/schema-parser/avro-schema-parser.js b/esm/schema-parser/avro-schema-parser.js new file mode 100644 index 000000000..8f8700019 --- /dev/null +++ b/esm/schema-parser/avro-schema-parser.js @@ -0,0 +1,339 @@ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import avsc from 'avsc'; +export function AvroSchemaParser() { + return { + validate, + parse, + getMimeTypes, + }; +} +function validate(input) { + return __awaiter(this, void 0, void 0, function* () { + const result = []; + try { + validateAvroSchema(input.data); + } + catch (error) { + if (error instanceof Error) { + result.push({ + message: error.message, + path: input.path, // avsc doesn't throw errors with meaningful paths + }); + } + } + return result; + }); +} +function parse(input) { + var _a, _b; + return __awaiter(this, void 0, void 0, function* () { + const asyncAPISchema = yield avroToJsonSchema(input.data); + // TODO: Should the following modifications to the message object be done in the caller and for all parsers rather than here? + // remove that function when https://github.com/asyncapi/spec/issues/622 will be introduced in AsyncAPI spec + const message = input.meta.message; + const key = (_b = (_a = message === null || message === void 0 ? void 0 : message.bindings) === null || _a === void 0 ? void 0 : _a.kafka) === null || _b === void 0 ? void 0 : _b.key; + if (key) { + const bindingsTransformed = yield avroToJsonSchema(key); + message['x-parser-original-bindings-kafka-key'] = key; + message.bindings.kafka.key = bindingsTransformed; + } + return asyncAPISchema; + }); +} +function getMimeTypes() { + return [ + 'application/vnd.apache.avro;version=1.9.0', + 'application/vnd.apache.avro+json;version=1.9.0', + 'application/vnd.apache.avro+yaml;version=1.9.0', + 'application/vnd.apache.avro;version=1.8.2', + 'application/vnd.apache.avro+json;version=1.8.2', + 'application/vnd.apache.avro+yaml;version=1.8.2' + ]; +} +const BYTES_PATTERN = '^[\u0000-\u00ff]*$'; +const INT_MIN = Math.pow(-2, 31); +const INT_MAX = Math.pow(2, 31) - 1; +const LONG_MIN = Math.pow(-2, 63); +const LONG_MAX = Math.pow(2, 63) - 1; +const typeMappings = { + null: 'null', + boolean: 'boolean', + int: 'integer', + long: 'integer', + float: 'number', + double: 'number', + bytes: 'string', + string: 'string', + fixed: 'string', + map: 'object', + array: 'array', + enum: 'string', + record: 'object', + uuid: 'string', +}; +function commonAttributesMapping(avroDefinition, jsonSchema, recordCache) { + if (avroDefinition.doc) + jsonSchema.description = avroDefinition.doc; + if (avroDefinition.default !== undefined) + jsonSchema.default = avroDefinition.default; + const fullyQualifiedName = getFullyQualifiedName(avroDefinition); + if (fullyQualifiedName !== undefined && recordCache[fullyQualifiedName]) { + jsonSchema['x-parser-schema-id'] = fullyQualifiedName; + } +} +function getFullyQualifiedName(avroDefinition) { + let name; + if (avroDefinition.name) { + if (avroDefinition.namespace) { + name = `${avroDefinition.namespace}.${avroDefinition.name}`; + } + else { + name = avroDefinition.name; + } + } + return name; +} +/** + * Enrich the parent's required attribute with the required record attributes + * @param fieldDefinition the actual field definition + * @param parentJsonSchema the parent json schema which contains the required property to enrich + * @param haveDefaultValue we assure that a required field does not have a default value + */ +function requiredAttributesMapping(fieldDefinition, parentJsonSchema, haveDefaultValue) { + const isUnionWithNull = Array.isArray(fieldDefinition.type) && fieldDefinition.type.includes('null'); + // we assume that a union type without null and a field without default value is required + if (!isUnionWithNull && !haveDefaultValue) { + parentJsonSchema.required = parentJsonSchema.required || []; + parentJsonSchema.required.push(fieldDefinition.name); + } +} +function extractNonNullableTypeIfNeeded(typeInput, jsonSchemaInput) { + let type = typeInput; + let jsonSchema = jsonSchemaInput; + // Map example to first non-null type + if (Array.isArray(typeInput) && typeInput.length > 0) { + const pickSecondType = typeInput.length > 1 && typeInput[0] === 'null'; + type = typeInput[+pickSecondType]; + if (jsonSchema.oneOf !== undefined) { + jsonSchema = jsonSchema.oneOf[0]; + } + } + return { type, jsonSchema }; +} +function exampleAttributeMapping(type, example, jsonSchema) { + if (example === undefined || jsonSchema.examples || Array.isArray(type)) + return; + switch (type) { + case 'boolean': + jsonSchema.examples = [example === 'true']; + break; + case 'int': + jsonSchema.examples = [parseInt(example, 10)]; + break; + default: + jsonSchema.examples = [example]; + } +} +function additionalAttributesMapping(typeInput, avroDefinition, jsonSchemaInput) { + const __ret = extractNonNullableTypeIfNeeded(typeInput, jsonSchemaInput); + const type = __ret.type; + const jsonSchema = __ret.jsonSchema; + exampleAttributeMapping(type, avroDefinition.example, jsonSchema); + function setAdditionalAttribute(...names) { + names.forEach(name => { + let isValueCoherent = true; + if (name === 'minLength' || name === 'maxLength') { + isValueCoherent = avroDefinition[name] > -1; + } + else if (name === 'multipleOf') { + isValueCoherent = avroDefinition[name] > 0; + } + if (avroDefinition[name] !== undefined && isValueCoherent) + jsonSchema[name] = avroDefinition[name]; + }); + } + switch (type) { + case 'int': // int, long, float, and double must support the attributes bellow + case 'long': + case 'float': + case 'double': + setAdditionalAttribute('minimum', 'maximum', 'exclusiveMinimum', 'exclusiveMaximum', 'multipleOf'); + break; + case 'string': + if (avroDefinition.logicalType) { + jsonSchema.format = avroDefinition.logicalType; + } + setAdditionalAttribute('pattern', 'minLength', 'maxLength'); + break; + case 'array': + setAdditionalAttribute('minItems', 'maxItems', 'uniqueItems'); + break; + default: + break; + } +} +function validateAvroSchema(avroDefinition) { + // don't need to use the output from parsing the + // avro definition - we're just using this as a + // validator as this will throw an exception if + // there are any problems with the definition + avsc.Type.forSchema(avroDefinition); +} +/** + * Cache the passed value under the given key. If the key is undefined the value will not be cached. This function + * uses mutation of the passed cache object rather than a copy on write cache strategy. + * + * @param cache Map the cache to store the JsonSchema + * @param key String | Undefined - the fully qualified name of an avro record + * @param value JsonSchema - The json schema from the avro record + */ +function cacheAvroRecordDef(cache, key, value) { + if (key !== undefined) { + cache[key] = value; + } +} +function convertAvroToJsonSchema(avroDefinition, isTopLevel, recordCache = {}) { + return __awaiter(this, void 0, void 0, function* () { + let jsonSchema = {}; + const isUnion = Array.isArray(avroDefinition); + if (isUnion) { + return processUnionSchema(jsonSchema, avroDefinition, isTopLevel, recordCache); + } + // Avro definition can be a string (e.g. "int") + // or an object like { type: "int" } + const type = avroDefinition.type || avroDefinition; + jsonSchema.type = typeMappings[type]; + switch (type) { + case 'int': { + jsonSchema.minimum = INT_MIN; + jsonSchema.maximum = INT_MAX; + break; + } + case 'long': { + jsonSchema.minimum = LONG_MIN; + jsonSchema.maximum = LONG_MAX; + break; + } + case 'bytes': { + jsonSchema.pattern = BYTES_PATTERN; + break; + } + case 'fixed': { + jsonSchema.pattern = BYTES_PATTERN; + jsonSchema.minLength = avroDefinition.size; + jsonSchema.maxLength = avroDefinition.size; + break; + } + case 'map': { + jsonSchema.additionalProperties = yield convertAvroToJsonSchema(avroDefinition.values, false); + break; + } + case 'array': { + jsonSchema.items = yield convertAvroToJsonSchema(avroDefinition.items, false); + break; + } + case 'enum': { + jsonSchema.enum = avroDefinition.symbols; + break; + } + case 'float': // float and double must support the format attribute from the avro type + case 'double': { + jsonSchema.format = type; + break; + } + case 'record': { + const propsMap = yield processRecordSchema(avroDefinition, recordCache, jsonSchema); + cacheAvroRecordDef(recordCache, getFullyQualifiedName(avroDefinition), propsMap); + jsonSchema.properties = Object.fromEntries(propsMap.entries()); + break; + } + default: { + const cachedRecord = recordCache[getFullyQualifiedName(avroDefinition)]; + if (cachedRecord) { + jsonSchema = cachedRecord; + } + break; + } + } + commonAttributesMapping(avroDefinition, jsonSchema, recordCache); + additionalAttributesMapping(type, avroDefinition, jsonSchema); + return jsonSchema; + }); +} +/** + * When a record type is found in an avro schema this function can be used to process the underlying fields and return + * the map of props contained by the record. The record will also be cached. + * + * @param avroDefinition the avro schema to be processed + * @param recordCache the cache of previously processed avro record types + * @param jsonSchema the schema for the record. + * @returns {Promise>} + */ +function processRecordSchema(avroDefinition, recordCache, jsonSchema) { + return __awaiter(this, void 0, void 0, function* () { + const propsMap = new Map(); + for (const field of avroDefinition.fields) { + // If the type is a sub schema it will have been stored in the cache. + if (recordCache[field.type]) { + propsMap.set(field.name, recordCache[field.type]); + } + else { + const def = yield convertAvroToJsonSchema(field.type, false, recordCache); + requiredAttributesMapping(field, jsonSchema, field.default !== undefined); + commonAttributesMapping(field, def, recordCache); + additionalAttributesMapping(field.type, field, def); + propsMap.set(field.name, def); + // If there is a name for the sub record cache it under the name. + const qualifiedFieldName = getFullyQualifiedName(field.type); + cacheAvroRecordDef(recordCache, qualifiedFieldName, def); + } + } + return propsMap; + }); +} +/** + * Handles processing union avro schema types by creating a oneOf jsonSchema definition. This will mutate the passed + * jsonSchema and recordCache objects. + * + * @param jsonSchema the jsonSchema object that will be mutated. + * @param avroDefinition the avro schema to be processed + * @param isTopLevel is this the top level of the schema or is this a sub schema + * @param recordCache the cache of previously processed record types + * @returns {Promise} the mutated jsonSchema that was provided to the function + */ +function processUnionSchema(jsonSchema, avroDefinition, isTopLevel, recordCache) { + return __awaiter(this, void 0, void 0, function* () { + jsonSchema.oneOf = []; + let nullDef = null; + for (const avroDef of avroDefinition) { + const def = yield convertAvroToJsonSchema(avroDef, isTopLevel, recordCache); + // avroDef can be { type: 'int', default: 1 } and this is why avroDef.type has priority here + const defType = avroDef.type || avroDef; + // To prefer non-null values in the examples skip null definition here and push it as the last element after loop + if (defType === 'null') { + nullDef = def; + } + else { + jsonSchema.oneOf.push(def); + const qualifiedName = getFullyQualifiedName(avroDef); + cacheAvroRecordDef(recordCache, qualifiedName, def); + } + } + if (nullDef) + jsonSchema.oneOf.push(nullDef); + return jsonSchema; + }); +} +export function avroToJsonSchema(avroDefinition) { + return __awaiter(this, void 0, void 0, function* () { + return convertAvroToJsonSchema(avroDefinition, true); + }); +} diff --git a/esm/schema-parser/index.d.ts b/esm/schema-parser/index.d.ts new file mode 100644 index 000000000..84aa51571 --- /dev/null +++ b/esm/schema-parser/index.d.ts @@ -0,0 +1,28 @@ +import type { Parser } from '../parser'; +import type { AsyncAPISchema, DetailedAsyncAPI, SchemaValidateResult } from '../types'; +export interface ValidateSchemaInput { + readonly asyncapi: DetailedAsyncAPI; + readonly data: D; + readonly meta: M; + readonly path: Array; + readonly schemaFormat: string; + readonly defaultSchemaFormat: string; +} +export interface ParseSchemaInput { + readonly asyncapi: DetailedAsyncAPI; + readonly data: D; + readonly meta: M; + readonly path: Array; + readonly schemaFormat: string; + readonly defaultSchemaFormat: string; +} +export interface SchemaParser { + validate: (input: ValidateSchemaInput) => void | SchemaValidateResult[] | Promise; + parse: (input: ParseSchemaInput) => AsyncAPISchema | Promise; + getMimeTypes: () => Array; +} +export declare function validateSchema(parser: Parser, input: ValidateSchemaInput): Promise; +export declare function parseSchema(parser: Parser, input: ParseSchemaInput): Promise; +export declare function registerSchemaParser(parser: Parser, schemaParser: SchemaParser): void; +export declare function getSchemaFormat(schematFormat: string | undefined, asyncapiVersion: string): string; +export declare function getDefaultSchemaFormat(asyncapiVersion: string): string; diff --git a/esm/schema-parser/index.js b/esm/schema-parser/index.js new file mode 100644 index 000000000..a82c9dd25 --- /dev/null +++ b/esm/schema-parser/index.js @@ -0,0 +1,58 @@ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +export function validateSchema(parser, input) { + return __awaiter(this, void 0, void 0, function* () { + const schemaParser = parser.parserRegistry.get(input.schemaFormat); + if (schemaParser === undefined) { + const { path, schemaFormat } = input; + path.pop(); // remove 'payload' as last element of path + return [ + { + message: `Unknown schema format: "${schemaFormat}"`, + path: [...path, 'schemaFormat'], + }, + { + message: `Cannot validate and parse given schema due to unknown schema format: "${schemaFormat}"`, + path: [...path, 'payload'], + } + ]; + } + return schemaParser.validate(input); + }); +} +export function parseSchema(parser, input) { + return __awaiter(this, void 0, void 0, function* () { + const schemaParser = parser.parserRegistry.get(input.schemaFormat); + if (schemaParser === undefined) { + throw new Error('Unknown schema format'); + } + return schemaParser.parse(input); + }); +} +export function registerSchemaParser(parser, schemaParser) { + if (typeof schemaParser !== 'object' + || typeof schemaParser.validate !== 'function' + || typeof schemaParser.parse !== 'function' + || typeof schemaParser.getMimeTypes !== 'function') { + throw new Error('Custom parser must have "parse()", "validate()" and "getMimeTypes()" functions.'); + } + schemaParser.getMimeTypes().forEach(schemaFormat => { + parser.parserRegistry.set(schemaFormat, schemaParser); + }); +} +export function getSchemaFormat(schematFormat, asyncapiVersion) { + if (typeof schematFormat === 'string') { + return schematFormat; + } + return getDefaultSchemaFormat(asyncapiVersion); +} +export function getDefaultSchemaFormat(asyncapiVersion) { + return `application/vnd.aai.asyncapi;version=${asyncapiVersion}`; +} diff --git a/esm/schema-parser/openapi-schema-parser.d.ts b/esm/schema-parser/openapi-schema-parser.d.ts new file mode 100644 index 000000000..feb152ee5 --- /dev/null +++ b/esm/schema-parser/openapi-schema-parser.d.ts @@ -0,0 +1,2 @@ +import type { SchemaParser } from '../schema-parser'; +export declare function OpenAPISchemaParser(): SchemaParser; diff --git a/esm/schema-parser/openapi-schema-parser.js b/esm/schema-parser/openapi-schema-parser.js new file mode 100644 index 000000000..7cc56062d --- /dev/null +++ b/esm/schema-parser/openapi-schema-parser.js @@ -0,0 +1,99 @@ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import Ajv from 'ajv'; +import { schemaV3 } from './openapi/schema_v3'; +// eslint-disable-next-line @typescript-eslint/no-var-requires +const toJsonSchema = require('@openapi-contrib/openapi-schema-to-json-schema'); +const ajv = new Ajv({ + allErrors: true, + strict: false, + logger: false, +}); +ajv.addSchema(schemaV3, 'openapi'); +export function OpenAPISchemaParser() { + return { + validate, + parse, + getMimeTypes, + }; +} +function validate(input) { + return __awaiter(this, void 0, void 0, function* () { + const validator = ajv.getSchema('openapi'); + let result = []; + const valid = validator(input.data); + if (!valid && validator.errors) { + result = ajvToSpectralResult(input.path, [...validator.errors]); + } + return result; + }); +} +function parse(input) { + return __awaiter(this, void 0, void 0, function* () { + const transformed = toJsonSchema(input.data, { + cloneSchema: true, + keepNotSupported: [ + 'discriminator', + 'readOnly', + 'writeOnly', + 'deprecated', + 'xml', + 'example', + ], + }); + iterateSchema(transformed); + return transformed; + }); +} +function getMimeTypes() { + return [ + 'application/vnd.oai.openapi;version=3.0.0', + 'application/vnd.oai.openapi+json;version=3.0.0', + 'application/vnd.oai.openapi+yaml;version=3.0.0', + ]; +} +function ajvToSpectralResult(path, errors) { + return errors.map(error => { + return { + message: error.message, + path: [...path, ...error.instancePath.replace(/^\//, '').split('/')], + }; + }); +} +function iterateSchema(schema) { + if (schema.example !== undefined) { + const examples = schema.examples || []; + examples.push(schema.example); + schema.examples = examples; + delete schema.example; + } + if (schema.$schema !== undefined) { + delete schema.$schema; + } + aliasProps(schema.properties); + aliasProps(schema.patternProperties); + aliasProps(schema.additionalProperties); + aliasProps(schema.items); + aliasProps(schema.additionalItems); + aliasProps(schema.oneOf); + aliasProps(schema.anyOf); + aliasProps(schema.allOf); + aliasProps(schema.not); +} +function aliasProps(obj) { + for (const key in obj) { + const prop = obj[key]; + if (prop.xml !== undefined) { + prop['x-xml'] = prop.xml; + delete prop.xml; + } + iterateSchema(obj[key]); + } +} diff --git a/esm/schema-parser/openapi/schema_v3.d.ts b/esm/schema-parser/openapi/schema_v3.d.ts new file mode 100644 index 000000000..e63319cb2 --- /dev/null +++ b/esm/schema-parser/openapi/schema_v3.d.ts @@ -0,0 +1,239 @@ +export declare const schemaV3: { + type: string; + definitions: { + Reference: { + type: string; + required: string[]; + patternProperties: { + '^\\$ref$': { + type: string; + format: string; + }; + }; + }; + Discriminator: { + type: string; + required: string[]; + properties: { + propertyName: { + type: string; + }; + mapping: { + type: string; + additionalProperties: { + type: string; + }; + }; + }; + }; + ExternalDocumentation: { + type: string; + required: string[]; + properties: { + description: { + type: string; + }; + url: { + type: string; + format: string; + }; + }; + patternProperties: { + '^x-': {}; + }; + additionalProperties: boolean; + }; + XML: { + type: string; + properties: { + name: { + type: string; + }; + namespace: { + type: string; + format: string; + }; + prefix: { + type: string; + }; + attribute: { + type: string; + default: boolean; + }; + wrapped: { + type: string; + default: boolean; + }; + }; + patternProperties: { + '^x-': {}; + }; + additionalProperties: boolean; + }; + }; + properties: { + title: { + type: string; + }; + multipleOf: { + type: string; + exclusiveMinimum: number; + }; + maximum: { + type: string; + }; + exclusiveMaximum: { + type: string; + default: boolean; + }; + minimum: { + type: string; + }; + exclusiveMinimum: { + type: string; + default: boolean; + }; + maxLength: { + type: string; + minimum: number; + }; + minLength: { + type: string; + minimum: number; + default: number; + }; + pattern: { + type: string; + format: string; + }; + maxItems: { + type: string; + minimum: number; + }; + minItems: { + type: string; + minimum: number; + default: number; + }; + uniqueItems: { + type: string; + default: boolean; + }; + maxProperties: { + type: string; + minimum: number; + }; + minProperties: { + type: string; + minimum: number; + default: number; + }; + required: { + type: string; + items: { + type: string; + }; + minItems: number; + uniqueItems: boolean; + }; + enum: { + type: string; + items: {}; + minItems: number; + uniqueItems: boolean; + }; + type: { + type: string; + enum: string[]; + }; + not: { + oneOf: { + $ref: string; + }[]; + }; + allOf: { + type: string; + items: { + oneOf: { + $ref: string; + }[]; + }; + }; + oneOf: { + type: string; + items: { + oneOf: { + $ref: string; + }[]; + }; + }; + anyOf: { + type: string; + items: { + oneOf: { + $ref: string; + }[]; + }; + }; + items: { + oneOf: { + $ref: string; + }[]; + }; + properties: { + type: string; + additionalProperties: { + oneOf: { + $ref: string; + }[]; + }; + }; + additionalProperties: { + oneOf: ({ + $ref: string; + type?: undefined; + } | { + type: string; + $ref?: undefined; + })[]; + default: boolean; + }; + description: { + type: string; + }; + format: { + type: string; + }; + default: {}; + nullable: { + type: string; + default: boolean; + }; + discriminator: { + $ref: string; + }; + readOnly: { + type: string; + default: boolean; + }; + writeOnly: { + type: string; + default: boolean; + }; + example: {}; + externalDocs: { + $ref: string; + }; + deprecated: { + type: string; + default: boolean; + }; + xml: { + $ref: string; + }; + }; + patternProperties: { + '^x-': {}; + }; + additionalProperties: boolean; +}; diff --git a/esm/schema-parser/openapi/schema_v3.js b/esm/schema-parser/openapi/schema_v3.js new file mode 100644 index 000000000..c170412e7 --- /dev/null +++ b/esm/schema-parser/openapi/schema_v3.js @@ -0,0 +1,275 @@ +/* eslint-disable */ +// From https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json +export const schemaV3 = { + type: 'object', + definitions: { + Reference: { + type: 'object', + required: ['$ref'], + patternProperties: { + '^\\$ref$': { + type: 'string', + format: 'uri-reference' + } + } + }, + Discriminator: { + type: 'object', + required: ['propertyName'], + properties: { + propertyName: { + type: 'string' + }, + mapping: { + type: 'object', + additionalProperties: { + type: 'string' + } + } + } + }, + ExternalDocumentation: { + type: 'object', + required: ['url'], + properties: { + description: { + type: 'string' + }, + url: { + type: 'string', + format: 'uri-reference' + } + }, + patternProperties: { + '^x-': {} + }, + additionalProperties: false + }, + XML: { + type: 'object', + properties: { + name: { + type: 'string' + }, + namespace: { + type: 'string', + format: 'uri' + }, + prefix: { + type: 'string' + }, + attribute: { + type: 'boolean', + default: false + }, + wrapped: { + type: 'boolean', + default: false + } + }, + patternProperties: { + '^x-': {} + }, + additionalProperties: false + } + }, + properties: { + title: { + type: 'string' + }, + multipleOf: { + type: 'number', + exclusiveMinimum: 0 + }, + maximum: { + type: 'number' + }, + exclusiveMaximum: { + type: 'boolean', + default: false + }, + minimum: { + type: 'number' + }, + exclusiveMinimum: { + type: 'boolean', + default: false + }, + maxLength: { + type: 'integer', + minimum: 0 + }, + minLength: { + type: 'integer', + minimum: 0, + default: 0 + }, + pattern: { + type: 'string', + format: 'regex' + }, + maxItems: { + type: 'integer', + minimum: 0 + }, + minItems: { + type: 'integer', + minimum: 0, + default: 0 + }, + uniqueItems: { + type: 'boolean', + default: false + }, + maxProperties: { + type: 'integer', + minimum: 0 + }, + minProperties: { + type: 'integer', + minimum: 0, + default: 0 + }, + required: { + type: 'array', + items: { + type: 'string' + }, + minItems: 1, + uniqueItems: true + }, + enum: { + type: 'array', + items: {}, + minItems: 1, + uniqueItems: false + }, + type: { + type: 'string', + enum: ['array', 'boolean', 'integer', 'number', 'object', 'string'] + }, + not: { + oneOf: [ + { + $ref: '#' + }, + { + $ref: '#/definitions/Reference' + } + ] + }, + allOf: { + type: 'array', + items: { + oneOf: [ + { + $ref: '#' + }, + { + $ref: '#/definitions/Reference' + } + ] + } + }, + oneOf: { + type: 'array', + items: { + oneOf: [ + { + $ref: '#' + }, + { + $ref: '#/definitions/Reference' + } + ] + } + }, + anyOf: { + type: 'array', + items: { + oneOf: [ + { + $ref: '#' + }, + { + $ref: '#/definitions/Reference' + } + ] + } + }, + items: { + oneOf: [ + { + $ref: '#' + }, + { + $ref: '#/definitions/Reference' + } + ] + }, + properties: { + type: 'object', + additionalProperties: { + oneOf: [ + { + $ref: '#' + }, + { + $ref: '#/definitions/Reference' + } + ] + } + }, + additionalProperties: { + oneOf: [ + { + $ref: '#' + }, + { + $ref: '#/definitions/Reference' + }, + { + type: 'boolean' + } + ], + default: true + }, + description: { + type: 'string' + }, + format: { + type: 'string' + }, + default: {}, + nullable: { + type: 'boolean', + default: false + }, + discriminator: { + $ref: '#/definitions/Discriminator' + }, + readOnly: { + type: 'boolean', + default: false + }, + writeOnly: { + type: 'boolean', + default: false + }, + example: {}, + externalDocs: { + $ref: '#/definitions/ExternalDocumentation' + }, + deprecated: { + type: 'boolean', + default: false + }, + xml: { + $ref: '#/definitions/XML' + } + }, + patternProperties: { + '^x-': {} + }, + additionalProperties: false +}; diff --git a/esm/schema-parser/raml-schema-parser.d.ts b/esm/schema-parser/raml-schema-parser.d.ts new file mode 100644 index 000000000..72250538a --- /dev/null +++ b/esm/schema-parser/raml-schema-parser.d.ts @@ -0,0 +1,2 @@ +import type { SchemaParser } from '../schema-parser'; +export declare function RamlSchemaParser(): SchemaParser; diff --git a/esm/schema-parser/raml-schema-parser.js b/esm/schema-parser/raml-schema-parser.js new file mode 100644 index 000000000..3d000aa67 --- /dev/null +++ b/esm/schema-parser/raml-schema-parser.js @@ -0,0 +1,59 @@ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import yaml from 'js-yaml'; +import * as lib from 'webapi-parser'; +/* eslint-disable */ +const wap = lib.WebApiParser; +const r2j = require('ramldt2jsonschema'); +export function RamlSchemaParser() { + return { + validate, + parse, + getMimeTypes, + }; +} +function parse(input) { + return __awaiter(this, void 0, void 0, function* () { + const payload = formatPayload(input.data); + // Draft 6 is compatible with 7. + const jsonModel = yield r2j.dt2js(payload, 'tmpType', { draft: '06' }); + return jsonModel.definitions.tmpType; + }); +} +function getMimeTypes() { + return [ + 'application/raml+yaml;version=1.0', + ]; +} +function validate(input) { + return __awaiter(this, void 0, void 0, function* () { + const payload = formatPayload(input.data); + const parsed = yield wap.raml10.parse(payload); + const report = yield wap.raml10.validate(parsed); + if (report.conforms) { + // No errors found. + return []; + } + const validateResult = []; + report.results.forEach(result => { + validateResult.push({ + message: result.message, + path: input.path, // RAML parser doesn't provide a path to the error. + }); + }); + return validateResult; + }); +} +function formatPayload(payload) { + if (typeof payload === 'object') { + return `#%RAML 1.0 Library\n${yaml.dump({ types: { tmpType: payload } })}`; + } + return payload; +} diff --git a/esm/schema-parser/spectral-rule-v2.d.ts b/esm/schema-parser/spectral-rule-v2.d.ts new file mode 100644 index 000000000..d8b894057 --- /dev/null +++ b/esm/schema-parser/spectral-rule-v2.d.ts @@ -0,0 +1,3 @@ +import type { RuleDefinition } from '@stoplight/spectral-core'; +import type { Parser } from '../parser'; +export declare function asyncApi2SchemaParserRule(parser: Parser): RuleDefinition; diff --git a/esm/schema-parser/spectral-rule-v2.js b/esm/schema-parser/spectral-rule-v2.js new file mode 100644 index 000000000..188217f6a --- /dev/null +++ b/esm/schema-parser/spectral-rule-v2.js @@ -0,0 +1,77 @@ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import { createRulesetFunction } from '@stoplight/spectral-core'; +import { aas2_0, aas2_1, aas2_2, aas2_3, aas2_4 } from '@stoplight/spectral-formats'; +import { validateSchema, getSchemaFormat, getDefaultSchemaFormat } from './index'; +import { createDetailedAsyncAPI } from '../utils'; +export function asyncApi2SchemaParserRule(parser) { + return { + description: 'Custom schema must be correctly formatted from the point of view of the used format.', + formats: [aas2_0, aas2_1, aas2_2, aas2_3, aas2_4], + message: '{{error}}', + severity: 'error', + type: 'validation', + recommended: true, + given: [ + // operations + '$.channels.*.[publish,subscribe].message', + '$.channels.*.[publish,subscribe].message.oneOf.*', + '$.components.channels.*.[publish,subscribe].message', + '$.components.channels.*.[publish,subscribe].message.oneOf.*', + // messages + '$.components.messages.*', + ], + then: { + function: rulesetFunction(parser), + }, + }; +} +function rulesetFunction(parser) { + return createRulesetFunction({ + input: { + type: 'object', + properties: { + schemaFormat: { + type: 'string', + }, + payload: true, // any value + } + }, + options: null + }, (targetVal = {}, _, ctx) => __awaiter(this, void 0, void 0, function* () { + if (!targetVal.payload) { + return []; + } + const path = [...ctx.path, 'payload']; + const spec = ctx.document.data; + const schemaFormat = getSchemaFormat(targetVal.schemaFormat, spec.asyncapi); + const defaultSchemaFormat = getDefaultSchemaFormat(spec.asyncapi); + const asyncapi = createDetailedAsyncAPI(ctx.document.data, spec); + const input = { + asyncapi, + data: targetVal.payload, + meta: {}, + path, + schemaFormat, + defaultSchemaFormat, + }; + try { + return yield validateSchema(parser, input); + } + catch (err) { + return [ + { + message: `Error thrown during schema validation, name: ${err.name}, message: ${err.message}, stack: ${err.stack}`, + path, + } + ]; + } + })); +} diff --git a/esm/spec-types/index.d.ts b/esm/spec-types/index.d.ts new file mode 100644 index 000000000..ea1e81c97 --- /dev/null +++ b/esm/spec-types/index.d.ts @@ -0,0 +1 @@ +export * as v2 from './v2'; diff --git a/esm/spec-types/index.js b/esm/spec-types/index.js new file mode 100644 index 000000000..ea1e81c97 --- /dev/null +++ b/esm/spec-types/index.js @@ -0,0 +1 @@ +export * as v2 from './v2'; diff --git a/esm/spec-types/v2.d.ts b/esm/spec-types/v2.d.ts new file mode 100644 index 000000000..7c5c379cc --- /dev/null +++ b/esm/spec-types/v2.d.ts @@ -0,0 +1,362 @@ +import type { JSONSchema7Version, JSONSchema7TypeName, JSONSchema7Type } from 'json-schema'; +export declare type AsyncAPIVersion = string; +export declare type Identifier = string; +export declare type DefaultContentType = string; +export interface AsyncAPIObject extends SpecificationExtensions { + asyncapi: AsyncAPIVersion; + id?: Identifier; + info: InfoObject; + defaultContentType?: DefaultContentType; + servers?: ServersObject; + channels: ChannelsObject; + components?: ComponentsObject; + tags?: TagsObject; + externalDocs?: ExternalDocumentationObject; +} +export interface InfoObject extends SpecificationExtensions { + title: string; + version: string; + description?: string; + termsOfService?: string; + contact?: ContactObject; + license?: LicenseObject; +} +export interface ContactObject extends SpecificationExtensions { + name?: string; + url?: string; + email?: string; +} +export interface LicenseObject extends SpecificationExtensions { + name: string; + url?: string; +} +export declare type ServersObject = Record; +export interface ServerObject extends SpecificationExtensions { + url: string; + protocol: string; + protocolVersion?: string; + description?: string; + variables?: Record; + security?: Array; + bindings?: ServerBindingsObject | ReferenceObject; +} +export interface ServerVariableObject extends SpecificationExtensions { + enum?: Array; + default?: string; + description?: string; + examples?: Array; +} +export interface ServerBindingsObject extends SpecificationExtensions { + http?: Binding; + ws?: Binding; + kafka?: Binding; + anypointmq?: Binding; + amqp?: Binding; + amqp1?: Binding; + mqtt?: Binding; + mqtt5?: Binding; + nats?: Binding; + jms?: Binding; + sns?: Binding; + sqs?: Binding; + stomp?: Binding; + redis?: Binding; + mercure?: Binding; + ibmmq?: Binding; +} +export declare type ChannelsObject = Record; +export interface ChannelObject extends SpecificationExtensions { + description?: string; + servers?: Array; + subscribe?: OperationObject; + publish?: OperationObject; + parameters?: ParametersObject; + bindings?: ChannelBindingsObject | ReferenceObject; +} +export interface ChannelBindingsObject extends SpecificationExtensions { + http?: Binding; + ws?: Binding; + kafka?: Binding; + anypointmq?: Binding; + amqp?: Binding; + amqp1?: Binding; + mqtt?: Binding; + mqtt5?: Binding; + nats?: Binding; + jms?: Binding; + sns?: Binding; + sqs?: Binding; + stomp?: Binding; + redis?: Binding; + mercure?: Binding; + ibmmq?: Binding; +} +export interface OperationObject extends OperationTraitObject, SpecificationExtensions { + message?: MessageObject | ReferenceObject | { + oneOf: Array; + }; + traits?: Array; +} +export interface OperationTraitObject extends SpecificationExtensions { + operationId?: string; + summary?: string; + description?: string; + security?: Array; + tags?: TagsObject; + externalDocs?: ExternalDocumentationObject; + bindings?: OperationBindingsObject | ReferenceObject; +} +export interface OperationBindingsObject extends SpecificationExtensions { + http?: Binding; + ws?: Binding; + kafka?: Binding; + anypointmq?: Binding; + amqp?: Binding; + amqp1?: Binding; + mqtt?: Binding; + mqtt5?: Binding; + nats?: Binding; + jms?: Binding; + sns?: Binding; + sqs?: Binding; + stomp?: Binding; + redis?: Binding; + mercure?: Binding; + ibmmq?: Binding; +} +export declare type ParametersObject = Record; +export interface ParameterObject extends SpecificationExtensions { + description?: string; + schema?: SchemaObject; + location?: string; +} +export interface MessageObject extends MessageTraitObject, SpecificationExtensions { + payload?: any; + traits?: Array; +} +export interface MessageTraitObject extends SpecificationExtensions { + messageId?: string; + headers?: SchemaObject; + correlationId?: CorrelationIDObject | ReferenceObject; + schemaFormat?: string; + contentType?: string; + name?: string; + title?: string; + summary?: string; + description?: string; + tags?: TagsObject; + externalDocs?: ExternalDocumentationObject; + bindings?: MessageBindingsObject | ReferenceObject; + examples?: Array; +} +export interface MessageExampleObject extends SpecificationExtensions { + name?: string; + summary?: string; + headers?: Record; + payload?: any; +} +export interface MessageBindingsObject extends SpecificationExtensions { + http?: Binding; + ws?: Binding; + kafka?: Binding; + anypointmq?: Binding; + amqp?: Binding; + amqp1?: Binding; + mqtt?: Binding; + mqtt5?: Binding; + nats?: Binding; + jms?: Binding; + sns?: Binding; + sqs?: Binding; + stomp?: Binding; + redis?: Binding; + mercure?: Binding; + ibmmq?: Binding; +} +export declare type TagsObject = Array; +export interface TagObject extends SpecificationExtensions { + name: string; + description?: string; + externalDocs?: ExternalDocumentationObject; +} +export interface ExternalDocumentationObject extends SpecificationExtensions { + url: string; + description?: string; +} +export interface ComponentsObject extends SpecificationExtensions { + channels?: Record; + servers?: Record; + schemas?: Record; + messages?: Record; + securitySchemes?: Record; + parameters?: Record; + serverVariables?: Record; + correlationIds?: Record; + operationTraits?: Record; + messageTraits?: Record; + serverBindings?: Record; + channelBindings?: Record; + operationBindings?: Record; + messageBindings?: Record; +} +export declare type SchemaObject = AsyncAPISchemaObject | ReferenceObject; +export declare type AsyncAPISchemaObject = AsyncAPISchemaDefinition | boolean; +export interface AsyncAPISchemaDefinition extends SpecificationExtensions { + $id?: string; + $schema?: JSONSchema7Version; + $comment?: string; + type?: JSONSchema7TypeName | JSONSchema7TypeName[]; + enum?: JSONSchema7Type[]; + const?: JSONSchema7Type; + multipleOf?: number; + maximum?: number; + exclusiveMaximum?: number; + minimum?: number; + exclusiveMinimum?: number; + maxLength?: number; + minLength?: number; + pattern?: string; + items?: AsyncAPISchemaObject | AsyncAPISchemaObject[]; + additionalItems?: AsyncAPISchemaObject; + maxItems?: number; + minItems?: number; + uniqueItems?: boolean; + contains?: AsyncAPISchemaObject; + maxProperties?: number; + minProperties?: number; + required?: string[]; + properties?: { + [key: string]: AsyncAPISchemaObject; + }; + patternProperties?: { + [key: string]: AsyncAPISchemaObject; + }; + additionalProperties?: AsyncAPISchemaObject; + dependencies?: { + [key: string]: AsyncAPISchemaObject | string[]; + }; + propertyNames?: AsyncAPISchemaObject; + if?: AsyncAPISchemaObject; + then?: AsyncAPISchemaObject; + else?: AsyncAPISchemaObject; + allOf?: AsyncAPISchemaObject[]; + anyOf?: AsyncAPISchemaObject[]; + oneOf?: AsyncAPISchemaObject[]; + not?: AsyncAPISchemaObject; + format?: string; + contentMediaType?: string; + contentEncoding?: string; + definitions?: { + [key: string]: AsyncAPISchemaObject; + }; + title?: string; + description?: string; + default?: JSONSchema7Type; + readOnly?: boolean; + writeOnly?: boolean; + examples?: Array; + discriminator?: string; + externalDocs?: ExternalDocumentationObject; + deprecated?: boolean; + [keyword: string]: any; +} +export interface SecuritySchemeObject extends SpecificationExtensions { + type: SecuritySchemeType; + description?: string; + name?: string; + in?: 'user' | 'password' | 'query' | 'header' | 'cookie'; + scheme?: string; + bearerFormat?: string; + flows?: OAuthFlowsObject; + openIdConnectUrl?: string; +} +export declare type SecuritySchemeType = 'userPassword' | 'apiKey' | 'X509' | 'symmetricEncryption' | 'asymmetricEncryption' | 'httpApiKey' | 'http' | 'oauth2' | 'openIdConnect' | 'plain' | 'scramSha256' | 'scramSha512' | 'gssapi'; +export declare type SecuritySchemaLocation = 'user' | 'password' | 'query' | 'header' | 'header' | 'cookie'; +export interface SecuritySchemeObjectBase extends SpecificationExtensions { + description?: string; +} +export interface SecuritySchemeObjectUserPassword extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'userPassword'; +} +export interface SecuritySchemeObjectApiKey extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'apiKey'; + in: 'user' | 'password'; +} +export interface SecuritySchemeObjectX509 extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'X509'; +} +export interface SecuritySchemeObjectSymetricEncryption extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'symmetricEncryption'; +} +export interface SecuritySchemeObjectAsymetricEncryption extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'asymmetricEncryption'; +} +export interface SecuritySchemeObjectHttpApiKey extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'httpApiKey'; + name: string; + in: 'query' | 'header' | 'cookie'; +} +export interface SecuritySchemeObjectHttp extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'http'; + scheme: string; + bearerFormat?: string; +} +export interface SecuritySchemeObjectOauth2 extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'oauth2'; + flows: OAuthFlowsObject; +} +export interface SecuritySchemeObjectOpenIdConnect extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'openIdConnect'; + openIdConnectUrl: string; +} +export interface SecuritySchemeObjectPlain extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'plain'; +} +export interface SecuritySchemeObjectScramSha256 extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'scramSha256'; +} +export interface SecuritySchemeObjectScramSha512 extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'scramSha512'; +} +export interface SecuritySchemeObjectGssapi extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'gssapi'; +} +export interface OAuthFlowsObject extends SpecificationExtensions { + implicit?: OAuthFlowObjectImplicit; + password?: OAuthFlowObjectPassword; + clientCredentials?: OAuthFlowObjectClientCredentials; + authorizationCode?: OAuthFlowObjectAuthorizationCode; +} +export declare type OAuthFlowObject = OAuthFlowObjectImplicit & OAuthFlowObjectPassword & OAuthFlowObjectClientCredentials & OAuthFlowObjectAuthorizationCode; +export interface OAuthFlowObjectBase extends SpecificationExtensions { + refreshUrl?: string; + scopes: Record; +} +export interface OAuthFlowObjectImplicit extends OAuthFlowObjectBase, SpecificationExtensions { + authorizationUrl: string; +} +export interface OAuthFlowObjectPassword extends OAuthFlowObjectBase, SpecificationExtensions { + tokenUrl: string; +} +export interface OAuthFlowObjectClientCredentials extends OAuthFlowObjectBase, SpecificationExtensions { + tokenUrl: string; +} +export interface OAuthFlowObjectAuthorizationCode extends OAuthFlowObjectBase, SpecificationExtensions { + authorizationUrl: string; + tokenUrl: string; +} +export declare type SecurityRequirementObject = Record>; +export interface CorrelationIDObject extends SpecificationExtensions { + location: string; + description?: string; +} +export interface Binding { + bindingVersion?: string; +} +export interface SpecificationExtensions { + [extension: `x-${string}`]: SpecificationExtension; +} +export declare type SpecificationExtension = T; +export interface ReferenceObject { + $ref: string; +} diff --git a/esm/spec-types/v2.js b/esm/spec-types/v2.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/spec-types/v2.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/spectral.d.ts b/esm/spectral.d.ts new file mode 100644 index 000000000..8b7d9ec12 --- /dev/null +++ b/esm/spectral.d.ts @@ -0,0 +1,3 @@ +import { Spectral } from '@stoplight/spectral-core'; +import type { Parser, ParserOptions } from './parser'; +export declare function createSpectral(parser: Parser, options?: ParserOptions): Spectral; diff --git a/esm/spectral.js b/esm/spectral.js new file mode 100644 index 000000000..392401d61 --- /dev/null +++ b/esm/spectral.js @@ -0,0 +1,62 @@ +import { Spectral, createRulesetFunction } from '@stoplight/spectral-core'; +import aasRuleset from '@stoplight/spectral-rulesets/dist/asyncapi'; +import { createResolver } from './resolver'; +import { asyncApi2SchemaParserRule } from './schema-parser/spectral-rule-v2'; +import { specVersions } from './constants'; +import { isObject } from './utils'; +export function createSpectral(parser, options = {}) { + var _a; + const spectral = new Spectral({ resolver: createResolver((_a = options.__unstable) === null || _a === void 0 ? void 0 : _a.resolver) }); + const ruleset = configureRuleset(parser); + spectral.setRuleset(ruleset); + return spectral; +} +function configureRuleset(parser) { + return { + extends: [aasRuleset], + rules: { + 'asyncapi-is-asyncapi': asyncApi2IsAsyncApi(), + 'asyncapi-schemas-v2': asyncApi2SchemaParserRule(parser), + // operationId is an optional field + 'asyncapi-operation-operationId': 'warn', + // We do not use these rules from the official ruleset due to the fact + // that the given rules validate only AsyncAPI Schemas and prevent defining schemas in other formats + 'asyncapi-payload-unsupported-schemaFormat': 'off', + 'asyncapi-payload': 'off', + }, + }; +} +function asyncApi2IsAsyncApi() { + return { + description: 'The input must be a document with a supported version of AsyncAPI.', + formats: [() => true], + message: '{{error}}', + severity: 'error', + type: 'validation', + recommended: true, + given: '$', + then: { + function: createRulesetFunction({ + input: null, + options: null, + }, (targetVal) => { + if (!isObject(targetVal) || typeof targetVal.asyncapi !== 'string') { + return [ + { + message: 'This is not an AsyncAPI document. The "asyncapi" field as string is missing.', + path: [], + } + ]; + } + else if (!specVersions.includes(targetVal.asyncapi)) { + return [ + { + message: `Version "${targetVal.asyncapi}" is not supported. Please use "${specVersions[specVersions.length - 1]}" (latest) version of the specification.`, + path: [], + } + ]; + } + }), + }, + }; +} diff --git a/esm/stringify.d.ts b/esm/stringify.d.ts new file mode 100644 index 000000000..88e0df5c1 --- /dev/null +++ b/esm/stringify.d.ts @@ -0,0 +1,9 @@ +import { AsyncAPIDocumentInterface } from './models'; +export interface StringifyOptions { + space?: string | number; +} +export declare function stringify(document: unknown, options?: StringifyOptions): string | undefined; +export declare function unstringify(document: unknown): AsyncAPIDocumentInterface | undefined; +export declare function copy(data: Record): any; +export declare function refReplacer(): (this: unknown, field: string, value: unknown) => unknown; +export declare function traverseStringifiedData(parent: any, field: string | undefined, root: any, objToPath: Map, pathToObj: Map): void; diff --git a/esm/stringify.js b/esm/stringify.js new file mode 100644 index 000000000..82889ee26 --- /dev/null +++ b/esm/stringify.js @@ -0,0 +1,97 @@ +import { createAsyncAPIDocument, isAsyncAPIDocument, isParsedDocument, isStringifiedDocument } from './document'; +import { createDetailedAsyncAPI } from './utils'; +import { xParserSpecStringified } from './constants'; +export function stringify(document, options = {}) { + if (isAsyncAPIDocument(document)) { + document = document.json(); + } + else if (isParsedDocument(document)) { + if (isStringifiedDocument(document)) { + return JSON.stringify(document); + } + } + else { + return; + } + return JSON.stringify(Object.assign(Object.assign({}, document), { [String(xParserSpecStringified)]: true }), refReplacer(), options.space || 2); +} +export function unstringify(document) { + let parsed = document; + if (typeof document === 'string') { + try { + parsed = JSON.parse(document); + } + catch (_) { + return; + } + } + if (!isStringifiedDocument(parsed)) { + return; + } + // shall copy of whole JSON + parsed = Object.assign({}, parsed); + // remove `x-parser-spec-stringified` extension + delete parsed[String(xParserSpecStringified)]; + traverseStringifiedData(document, undefined, document, new Map(), new Map()); + return createAsyncAPIDocument(createDetailedAsyncAPI(document, parsed)); +} +export function copy(data) { + const stringifiedData = JSON.stringify(data, refReplacer()); + const unstringifiedData = JSON.parse(stringifiedData); + traverseStringifiedData(unstringifiedData, undefined, unstringifiedData, new Map(), new Map()); + return unstringifiedData; +} +export function refReplacer() { + const modelPaths = new Map(); + const paths = new Map(); + let init = null; + return function (field, value) { + // `this` points to parent object of given value - some object or array + const pathPart = modelPaths.get(this) + (Array.isArray(this) ? `[${field}]` : `.${field}`); + // check if `objOrPath` has "reference" + const isComplex = value === Object(value); + if (isComplex) { + modelPaths.set(value, pathPart); + } + const savedPath = paths.get(value) || ''; + if (!savedPath && isComplex) { + const valuePath = pathPart.replace(/undefined\.\.?/, ''); + paths.set(value, valuePath); + } + const prefixPath = savedPath[0] === '[' ? '$' : '$.'; + let val = savedPath ? `$ref:${prefixPath}${savedPath}` : value; + if (init === null) { + init = value; + } + else if (val === init) { + val = '$ref:$'; + } + return val; + }; +} +const refRoot = '$ref:$'; +export function traverseStringifiedData(parent, field, root, objToPath, pathToObj) { + let objOrPath = parent; + let path = refRoot; + if (field !== undefined) { + // here can be string with `$ref` prefix or normal value + objOrPath = parent[String(field)]; + const concatenatedPath = field ? `.${field}` : ''; + path = objToPath.get(parent) + (Array.isArray(parent) ? `[${field}]` : concatenatedPath); + } + objToPath.set(objOrPath, path); + pathToObj.set(path, objOrPath); + const ref = pathToObj.get(objOrPath); + if (ref) { + parent[String(field)] = ref; + } + if (objOrPath === refRoot || ref === refRoot) { + parent[String(field)] = root; + } + // traverse all keys, only if object is array/object + if (objOrPath === Object(objOrPath)) { + for (const f in objOrPath) { + traverseStringifiedData(objOrPath, f, root, objToPath, pathToObj); + } + } +} diff --git a/esm/types.d.ts b/esm/types.d.ts new file mode 100644 index 000000000..5924d5951 --- /dev/null +++ b/esm/types.d.ts @@ -0,0 +1,23 @@ +import type { ISpectralDiagnostic, IFunctionResult } from '@stoplight/spectral-core'; +import type { AsyncAPIDocumentInterface } from './models'; +import type { v2 } from './spec-types'; +export declare type MaybeAsyncAPI = { + asyncapi: string; +} & Record; +export interface AsyncAPISemver { + version: string; + major: number; + minor: number; + patch: number; + rc?: number; +} +export interface DetailedAsyncAPI { + source: string | Record; + parsed: AsyncAPIObject; + semver: AsyncAPISemver; +} +export declare type Input = string | MaybeAsyncAPI | AsyncAPIDocumentInterface; +export declare type Diagnostic = ISpectralDiagnostic; +export declare type SchemaValidateResult = IFunctionResult; +export declare type AsyncAPIObject = v2.AsyncAPIObject; +export declare type AsyncAPISchema = v2.AsyncAPISchemaObject; diff --git a/esm/types.js b/esm/types.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/esm/types.js @@ -0,0 +1 @@ +export {}; diff --git a/esm/utils.d.ts b/esm/utils.d.ts new file mode 100644 index 000000000..6460535b6 --- /dev/null +++ b/esm/utils.d.ts @@ -0,0 +1,20 @@ +import type { ISpectralDiagnostic } from '@stoplight/spectral-core'; +import type { BaseModel } from './models'; +import type { AsyncAPISemver, AsyncAPIObject, DetailedAsyncAPI, MaybeAsyncAPI } from './types'; +export declare function createDetailedAsyncAPI(source: string | Record, parsed: AsyncAPIObject): DetailedAsyncAPI; +export declare function getSemver(version: string): AsyncAPISemver; +export declare function normalizeInput(asyncapi: string | MaybeAsyncAPI): string; +export declare function unfreezeObject(data: unknown): any; +export declare function hasErrorDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean; +export declare function hasWarningDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean; +export declare function hasInfoDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean; +export declare function hasHintDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean; +export declare function setExtension(id: string, value: any, model: BaseModel): void; +export declare function mergePatch(origin: unknown, patch: unknown): T; +export declare function isObject(value: unknown): value is Record; +export declare function hasRef(value: unknown): value is { + $ref: string; +}; +export declare function tilde(str: string): string; +export declare function untilde(str: string): string; +export declare function retrievePossibleRef(data: any, pathOfData: string, spec?: any): any; diff --git a/esm/utils.js b/esm/utils.js new file mode 100644 index 000000000..e53660942 --- /dev/null +++ b/esm/utils.js @@ -0,0 +1,120 @@ +import { DiagnosticSeverity } from '@stoplight/types'; +export function createDetailedAsyncAPI(source, parsed) { + return { + source, + parsed, + semver: getSemver(parsed.asyncapi), + }; +} +export function getSemver(version) { + const [major, minor, patchWithRc] = version.split('.'); + const [patch, rc] = patchWithRc.split('-rc'); + return { + version, + major: Number(major), + minor: Number(minor), + patch: Number(patch), + rc: rc && Number(rc), + }; +} +export function normalizeInput(asyncapi) { + if (typeof asyncapi === 'string') { + return asyncapi; + } + return JSON.stringify(asyncapi, undefined, 2); +} +export function unfreezeObject(data) { + return JSON.parse(JSON.stringify(data)); +} +export function hasErrorDiagnostic(diagnostics) { + return diagnostics.some(diagnostic => diagnostic.severity === DiagnosticSeverity.Error); +} +export function hasWarningDiagnostic(diagnostics) { + return diagnostics.some(diagnostic => diagnostic.severity === DiagnosticSeverity.Warning); +} +export function hasInfoDiagnostic(diagnostics) { + return diagnostics.some(diagnostic => diagnostic.severity === DiagnosticSeverity.Information); +} +export function hasHintDiagnostic(diagnostics) { + return diagnostics.some(diagnostic => diagnostic.severity === DiagnosticSeverity.Hint); +} +export function setExtension(id, value, model) { + id = id.startsWith('x-') ? id : `x-${id}`; + const data = model.json(); + data[id] = value; +} +export function mergePatch(origin, patch) { + // If the patch is not an object, it replaces the origin. + if (!isObject(patch)) { + return patch; + } + const result = !isObject(origin) + ? {} // Non objects are being replaced. + : Object.assign({}, origin); // Make sure we never modify the origin. + Object.keys(patch).forEach(key => { + const patchVal = patch[key]; + if (patchVal === null) { + delete result[key]; + } + else { + result[key] = mergePatch(result[key], patchVal); + } + }); + return result; +} +export function isObject(value) { + return Boolean(value) && typeof value === 'object' && Array.isArray(value) === false; +} +export function hasRef(value) { + return isObject(value) && '$ref' in value && typeof value.$ref === 'string'; +} +export function tilde(str) { + return str.replace(/[~/]{1}/g, (sub) => { + switch (sub) { + case '/': return '~1'; + case '~': return '~0'; + } + return sub; + }); +} +export function untilde(str) { + if (!str.includes('~')) + return str; + return str.replace(/~[01]/g, (sub) => { + switch (sub) { + case '~1': return '/'; + case '~0': return '~'; + } + return sub; + }); +} +export function retrievePossibleRef(data, pathOfData, spec = {}) { + if (!hasRef(data)) { + return data; + } + const refPath = serializePath(data.$ref); + if (pathOfData.startsWith(refPath)) { // starts by given path + return retrieveDeepData(spec, splitPath(refPath)) || data; + } + else if (pathOfData.includes(refPath)) { // circular path in substring of path + const substringPath = pathOfData.split(refPath)[0]; + return retrieveDeepData(spec, splitPath(`${substringPath}${refPath}`)) || data; + } + return data; +} +function retrieveDeepData(value, path) { + let index = 0; + const length = path.length; + while (typeof value === 'object' && value && index < length) { + value = value[path[index++]]; + } + return index === length ? value : undefined; +} +function serializePath(path) { + if (path.startsWith('#')) + return path.substring(1); + return path; +} +function splitPath(path) { + return path.split('/').filter(Boolean).map(untilde); +} diff --git a/esm/validate.d.ts b/esm/validate.d.ts new file mode 100644 index 000000000..bd3d1ec0c --- /dev/null +++ b/esm/validate.d.ts @@ -0,0 +1,15 @@ +import type { Spectral, IRunOpts } from '@stoplight/spectral-core'; +import type { Input, Diagnostic } from './types'; +export interface ValidateOptions extends IRunOpts { + source?: string; + allowedSeverity?: { + warning?: boolean; + info?: boolean; + hint?: boolean; + }; +} +export interface ValidateOutput { + validated: unknown; + diagnostics: Diagnostic[]; +} +export declare function validate(spectral: Spectral, asyncapi: Input, options?: ValidateOptions): Promise; diff --git a/esm/validate.js b/esm/validate.js new file mode 100644 index 000000000..892c91cd5 --- /dev/null +++ b/esm/validate.js @@ -0,0 +1,35 @@ +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +import { Document } from '@stoplight/spectral-core'; +import { Yaml } from '@stoplight/spectral-parsers'; +import { normalizeInput, mergePatch, hasErrorDiagnostic, hasWarningDiagnostic, hasInfoDiagnostic, hasHintDiagnostic } from './utils'; +const defaultOptions = { + allowedSeverity: { + warning: true, + info: true, + hint: true, + } +}; +export function validate(spectral, asyncapi, options = {}) { + return __awaiter(this, void 0, void 0, function* () { + const { allowedSeverity } = mergePatch(defaultOptions, options); + const stringifiedDocument = normalizeInput(asyncapi); + const document = new Document(stringifiedDocument, Yaml, options.source); + // eslint-disable-next-line prefer-const + let { resolved: validated, results } = yield spectral.runWithResolved(document); + if (hasErrorDiagnostic(results) || + (!(allowedSeverity === null || allowedSeverity === void 0 ? void 0 : allowedSeverity.warning) && hasWarningDiagnostic(results)) || + (!(allowedSeverity === null || allowedSeverity === void 0 ? void 0 : allowedSeverity.info) && hasInfoDiagnostic(results)) || + (!(allowedSeverity === null || allowedSeverity === void 0 ? void 0 : allowedSeverity.hint) && hasHintDiagnostic(results))) { + validated = undefined; + } + return { validated, diagnostics: results }; + }); +} diff --git a/lib/anonymousNaming.js b/lib/anonymousNaming.js deleted file mode 100644 index 656d23043..000000000 --- a/lib/anonymousNaming.js +++ /dev/null @@ -1,128 +0,0 @@ -const {xParserMessageName, xParserSchemaId} = require('./constants'); -const {traverseAsyncApiDocument} = require('./iterators'); - -/** - * Assign message keys as message name to all the component messages. - * - * @private - * @param {AsyncAPIDocument} doc - */ -function assignNameToComponentMessages(doc) { - if (doc.hasComponents()) { - for (const [key, m] of Object.entries(doc.components().messages())) { - if (m.name() === undefined) { - m.json()[String(xParserMessageName)] = key; - } - } - } -} - -/** - * Assign ids based on parameter keys. - * - * @private - * @param {Record} parameterObject - */ -function assignIdToParameters(parameterObject) { - for (const [parameterKey, parameter] of Object.entries(parameterObject)) { - if (parameter.schema()) { - parameter.schema().json()[String(xParserSchemaId)] = parameterKey; - } - } -} - -/** - * Assign parameter keys as uid for the parameter schema. - * - * @private - * @param {AsyncAPIDocument} doc - */ -function assignUidToParameterSchemas(doc) { - doc.channelNames().forEach(channelName => { - const channel = doc.channel(channelName); - assignIdToParameters(channel.parameters()); - }); -} - -/** - * Assign uid to component schemas. - * - * @private - * @param {AsyncAPIDocument} doc - */ -function assignUidToComponentSchemas(doc) { - if (doc.hasComponents()) { - for (const [key, s] of Object.entries(doc.components().schemas())) { - s.json()[String(xParserSchemaId)] = key; - } - } -} - -/** - * Assign uid to component parameters schemas - * - * @private - * @param {AsyncAPIDocument} doc - */ -function assignUidToComponentParameterSchemas(doc) { - if (doc.hasComponents()) { - assignIdToParameters(doc.components().parameters()); - } -} - -/** - * Assign anonymous names to nameless messages. - * - * @private - * @param {AsyncAPIDocument} doc - */ -function assignNameToAnonymousMessages(doc) { - let anonymousMessageCounter = 0; - - if (doc.hasChannels()) { - doc.channelNames().forEach(channelName => { - const channel = doc.channel(channelName); - if (channel.hasPublish()) addNameToKey(channel.publish().messages(), ++anonymousMessageCounter); - if (channel.hasSubscribe()) addNameToKey(channel.subscribe().messages(), ++anonymousMessageCounter); - }); - } -} - -/** - * Add anonymous name to key if no name provided. - * - * @private - * @param {Message} map of messages - */ -function addNameToKey(messages, number) { - messages.forEach(m => { - if (m.name() === undefined && m.ext(xParserMessageName) === undefined) { - m.json()[String(xParserMessageName)] = ``; - } - }); -} - -/** - * Gives schemas id to all anonymous schemas. - * - * @private - * @param {AsyncAPIDocument} doc - */ -function assignIdToAnonymousSchemas(doc) { - let anonymousSchemaCounter = 0; - const callback = (schema) => { - if (!schema.uid()) { - schema.json()[String(xParserSchemaId)] = ``; - } - }; - traverseAsyncApiDocument(doc, callback); -} - -module.exports = { - assignNameToComponentMessages, - assignUidToParameterSchemas, - assignUidToComponentSchemas, - assignUidToComponentParameterSchemas, - assignNameToAnonymousMessages, - assignIdToAnonymousSchemas -}; diff --git a/lib/asyncapiSchemaFormatParser.js b/lib/asyncapiSchemaFormatParser.js deleted file mode 100644 index 3dc1816d4..000000000 --- a/lib/asyncapiSchemaFormatParser.js +++ /dev/null @@ -1,109 +0,0 @@ -const Ajv = require('ajv'); -const ParserError = require('./errors/parser-error'); -const asyncapi = require('@asyncapi/specs'); -const { improveAjvErrors } = require('./utils'); -const cloneDeep = require('lodash.clonedeep'); - -const ajv = new Ajv({ - jsonPointers: true, - allErrors: true, - schemaId: 'id', - logger: false, -}); -ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-04.json')); - -module.exports = { - parse, - getMimeTypes -}; - -/** - * @private - */ -async function parse({ message, originalAsyncAPIDocument, fileFormat, parsedAsyncAPIDocument, pathToPayload, defaultSchemaFormat }) { - const payload = message.payload; - if (!payload) return; - - message['x-parser-original-schema-format'] = message.schemaFormat || defaultSchemaFormat; - message['x-parser-original-payload'] = cloneDeep(message.payload); - - const validate = getValidator(parsedAsyncAPIDocument.asyncapi); - const valid = validate(payload); - const errors = validate.errors && [...validate.errors]; - - if (!valid) throw new ParserError({ - type: 'schema-validation-errors', - title: 'This is not a valid AsyncAPI Schema Object.', - parsedJSON: parsedAsyncAPIDocument, - validationErrors: improveAjvErrors(addFullPathToDataPath(errors, pathToPayload), originalAsyncAPIDocument, fileFormat), - }); -} - -/** - * @private - */ -function getMimeTypes() { - const mimeTypes = [ - 'application/schema;version=draft-07', - 'application/schema+json;version=draft-07', - 'application/schema+yaml;version=draft-07', - ]; - ['2.0.0', '2.1.0', '2.2.0', '2.3.0', '3.0.0'].forEach(version => { - mimeTypes.push( - `application/vnd.aai.asyncapi;version=${version}`, - `application/vnd.aai.asyncapi+json;version=${version}`, - `application/vnd.aai.asyncapi+yaml;version=${version}`, - ); - }); - return mimeTypes; -} - -/** - * Creates (or reuses) a function that validates an AsyncAPI Schema Object based on the passed AsyncAPI version. - * - * @private - * @param {Object} version AsyncAPI version. - * @returns {Function} Function that validates an AsyncAPI Schema Object based on the passed AsyncAPI version. - */ -function getValidator(version) { - let validate = ajv.getSchema(version); - if (!validate) { - ajv.addSchema(preparePayloadSchema(asyncapi[String(version)]), version); - validate = ajv.getSchema(version); - } - return validate; -} - -/** - * To validate schema of the payload we just need a small portion of official AsyncAPI spec JSON Schema, the definition of the schema must be - * a main part of the JSON Schema - * - * @private - * @param {Object} asyncapiSchema AsyncAPI specification JSON Schema - * @returns {Object} valid JSON Schema document describing format of AsyncAPI-valid schema for message payload - */ -function preparePayloadSchema(asyncapiSchema) { - return { - $ref: '#/definitions/schema', - definitions: asyncapiSchema.definitions - }; -} - -/** - * Errors from Ajv contain dataPath information about parameter relative to parsed payload message. - * This function enriches dataPath with additional information on where is the parameter located in AsyncAPI document - * - * @private - * @param {Array} errors Ajv errors - * @param {String} path Path to location of the payload schema in AsyncAPI Document - * @returns {Array} same object as received in input but with modified datePath property so it contain full path relative to AsyncAPI document - */ -function addFullPathToDataPath(errors, path) { - return errors.map((err) => ({ - ...err, - ...{ - dataPath: `${path}${err.dataPath}` - } - })); -} - diff --git a/lib/browser.js b/lib/browser.js deleted file mode 100644 index 538837ba5..000000000 --- a/lib/browser.js +++ /dev/null @@ -1 +0,0 @@ -window.AsyncAPIParser = require('./index'); \ No newline at end of file diff --git a/lib/constants.js b/lib/constants.js deleted file mode 100644 index de084e0c7..000000000 --- a/lib/constants.js +++ /dev/null @@ -1,15 +0,0 @@ -const xParserSpecParsed = 'x-parser-spec-parsed'; -const xParserSpecStringified = 'x-parser-spec-stringified'; -const xParserMessageName = 'x-parser-message-name'; -const xParserSchemaId = 'x-parser-schema-id'; -const xParserCircle = 'x-parser-circular'; -const xParserCircleProps = 'x-parser-circular-props'; - -module.exports = { - xParserSpecParsed, - xParserSpecStringified, - xParserMessageName, - xParserSchemaId, - xParserCircle, - xParserCircleProps -}; \ No newline at end of file diff --git a/lib/customValidators.js b/lib/customValidators.js deleted file mode 100644 index 851ea01bf..000000000 --- a/lib/customValidators.js +++ /dev/null @@ -1,617 +0,0 @@ -const ParserError = require('./errors/parser-error'); -// eslint-disable-next-line no-unused-vars -const Operation = require('./models/operation'); -const { - parseUrlVariables, - getMissingProps, - groupValidationErrors, - tilde, - parseUrlQueryParameters, - setNotProvidedParams, - getUnknownServers -} = require('./utils'); -const validationError = 'validation-errors'; - -/** - * Validates if variables provided in the url have corresponding variable object defined and if example is correct - * @private - * @param {Object} parsedJSON parsed AsyncAPI document - * @param {String} asyncapiYAMLorJSON AsyncAPI document in string - * @param {String} initialFormat information of the document was originally JSON or YAML - * @returns {Boolean} true in case the document is valid, otherwise throws {@link ParserError} - */ -function validateServerVariables( - parsedJSON, - asyncapiYAMLorJSON, - initialFormat -) { - const srvs = parsedJSON.servers; - if (!srvs) return true; - - const srvsMap = new Map(Object.entries(srvs)); - const notProvidedVariables = new Map(); - const notProvidedExamplesInEnum = new Map(); - - srvsMap.forEach((srvr, srvrName) => { - const variables = parseUrlVariables(srvr.url); - const variablesObj = srvr.variables; - const notProvidedServerVars = notProvidedVariables.get(tilde(srvrName)); - if (!variables) return; - - const missingServerVariables = getMissingProps(variables, variablesObj); - if (missingServerVariables.length) { - notProvidedVariables.set( - tilde(srvrName), - notProvidedServerVars - ? notProvidedServerVars.concat(missingServerVariables) - : missingServerVariables - ); - } - - if (variablesObj) { - setNotValidExamples(variablesObj, srvrName, notProvidedExamplesInEnum); - } - }); - - if (notProvidedVariables.size) { - throw new ParserError({ - type: validationError, - title: 'Not all server variables are described with variable object', - parsedJSON, - validationErrors: groupValidationErrors( - 'servers', - 'server does not have a corresponding variable object for', - notProvidedVariables, - asyncapiYAMLorJSON, - initialFormat - ), - }); - } - - if (notProvidedExamplesInEnum.size) { - throw new ParserError({ - type: validationError, - title: - 'Check your server variables. The example does not match the enum list', - parsedJSON, - validationErrors: groupValidationErrors( - 'servers', - 'server variable provides an example that does not match the enum list', - notProvidedExamplesInEnum, - asyncapiYAMLorJSON, - initialFormat - ), - }); - } - - return true; -} - -/** - * extend map with info about examples that are not part of the enum - * - * @function setNotValidExamples - * @private - * @param {Array} variables server variables object - * @param {String} srvrName name of the server where variables object is located - * @param {Map} notProvidedExamplesInEnum result map of all wrong examples and what variable they belong to - */ -function setNotValidExamples(variables, srvrName, notProvidedExamplesInEnum) { - const variablesMap = new Map(Object.entries(variables)); - variablesMap.forEach((variable, variableName) => { - if (variable.enum && variable.examples) { - const wrongExamples = variable.examples.filter(r => !variable.enum.includes(r)); - if (wrongExamples.length) { - notProvidedExamplesInEnum.set( - `${tilde(srvrName)}/variables/${tilde(variableName)}`, - wrongExamples - ); - } - } - }); -} - -/** - * Validates if operationIds are duplicated in the document - * - * @private - * @param {Object} parsedJSON parsed AsyncAPI document - * @param {String} asyncapiYAMLorJSON AsyncAPI document in string - * @param {String} initialFormat information of the document was originally JSON or YAML - * @returns {Boolean} true in case the document is valid, otherwise throws {@link ParserError} - */ -function validateOperationId( - parsedJSON, - asyncapiYAMLorJSON, - initialFormat, - operations -) { - const chnls = parsedJSON.channels; - if (!chnls) return true; - const chnlsMap = new Map(Object.entries(chnls)); - //it is a map of paths, the one that is a duplicate and the one that is duplicated - const duplicatedOperations = new Map(); - //is is a 2-dimensional array that holds information with operationId value and its path - const allOperations = []; - - const addDuplicateToMap = (op, channelName, opName) => { - const operationId = op.operationId; - if (!operationId) return; - - const operationPath = `${tilde(channelName)}/${opName}/operationId`; - const isOperationIdDuplicated = allOperations.filter( - (v) => v[0] === operationId - ); - if (!isOperationIdDuplicated.length) - return allOperations.push([operationId, operationPath]); - - //isOperationIdDuplicated always holds one record and it is an array of paths, the one that is a duplicate and the one that is duplicated - duplicatedOperations.set(operationPath, isOperationIdDuplicated[0][1]); - }; - - chnlsMap.forEach((chnlObj, chnlName) => { - operations.forEach((opName) => { - const op = chnlObj[String(opName)]; - if (op) addDuplicateToMap(op, chnlName, opName); - }); - }); - - if (duplicatedOperations.size) { - throw new ParserError({ - type: validationError, - title: 'operationId must be unique across all the operations.', - parsedJSON, - validationErrors: groupValidationErrors( - 'channels', - 'is a duplicate of', - duplicatedOperations, - asyncapiYAMLorJSON, - initialFormat - ), - }); - } - - return true; -} - -/** - * Validates if server security is declared properly and the name has a corresponding security schema definition in components with the same name - * - * @private - * @param {Object} parsedJSON parsed AsyncAPI document - * @param {String} asyncapiYAMLorJSON AsyncAPI document in string - * @param {String} initialFormat information of the document was originally JSON or YAML - * @param {String[]} specialSecTypes list of security types that can have data in array - * @returns {Boolean} true in case the document is valid, otherwise throws {@link ParserError} - */ -function validateServerSecurity( - parsedJSON, - asyncapiYAMLorJSON, - initialFormat, - specialSecTypes -) { - const srvs = parsedJSON.servers; - if (!srvs) return true; - - const root = 'servers'; - const srvsMap = new Map(Object.entries(srvs)); - - const missingSecSchema = new Map(), - invalidSecurityValues = new Map(); - - //we need to validate every server specified in the document - srvsMap.forEach((server, serverName) => { - const serverSecInfo = server.security; - - if (!serverSecInfo) return true; - - //server security info is an array of many possible values - serverSecInfo.forEach((secObj) => { - Object.keys(secObj).forEach((secName) => { - //security schema is located in components object, we need to find if there is security schema with the same name as the server security info object - const schema = findSecuritySchema(secName, parsedJSON.components); - const srvrSecurityPath = `${serverName}/security/${secName}`; - - if (!schema.length) return missingSecSchema.set(srvrSecurityPath); - - //findSecuritySchema returns type always on index 1. Type is needed further to validate if server security info can be or not an empty array - const schemaType = schema[1]; - if (!isSrvrSecProperArray(schemaType, specialSecTypes, secObj, secName)) - invalidSecurityValues.set(srvrSecurityPath, schemaType); - }); - }); - }); - - if (missingSecSchema.size) { - throw new ParserError({ - type: validationError, - title: - 'Server security name must correspond to a security scheme which is declared in the security schemes under the components object.', - parsedJSON, - validationErrors: groupValidationErrors( - root, - 'doesn\'t have a corresponding security schema under the components object', - missingSecSchema, - asyncapiYAMLorJSON, - initialFormat - ), - }); - } - - if (invalidSecurityValues.size) { - throw new ParserError({ - type: validationError, - title: - 'Server security value must be an empty array if corresponding security schema type is not oauth2 or openIdConnect.', - parsedJSON, - validationErrors: groupValidationErrors( - root, - 'security info must have an empty array because its corresponding security schema type is', - invalidSecurityValues, - asyncapiYAMLorJSON, - initialFormat - ), - }); - } - - return true; -} - -/** - * Searches for server security corresponding object in security schema object - * @private - * @param {String} securityName name of the server security element that you want to localize in the security schema object - * @param {Object} components components object from the AsyncAPI document - * @returns {String[]} there are 2 elements in array, index 0 is the name of the security schema object and index 1 is it's type - */ -function findSecuritySchema(securityName, components) { - const secSchemes = components && components.securitySchemes; - const secSchemesMap = secSchemes - ? new Map(Object.entries(secSchemes)) - : new Map(); - const schemaInfo = []; - - //using for loop here as there is no point to iterate over all entries as it is enough to find first matching element - for (const [schemaName, schema] of secSchemesMap.entries()) { - if (schemaName === securityName) { - schemaInfo.push(schemaName, schema.type); - return schemaInfo; - } - } - return schemaInfo; -} - -/** - * Validates if given server security is a proper empty array when security type requires it - * @private - * @param {String} schemaType security type, like httpApiKey or userPassword - * @param {String[]} specialSecTypes list of special types that do not have to be an empty array - * @param {Object} secObj server security object - * @param {String} secName name os server security object - * @returns {String[]} there are 2 elements in array, index 0 is the name of the security schema object and index 1 is it's type - */ -function isSrvrSecProperArray(schemaType, specialSecTypes, secObj, secName) { - if (!specialSecTypes.includes(schemaType)) { - const securityObjValue = secObj[String(secName)]; - - return !securityObjValue.length; - } - - return true; -} - -/** - * Validates if parameters specified in the channel have corresponding parameters object defined and if name does not contain url parameters. - * Also validates that all servers listed for this channel are declared in the top-level servers object. - * - * @private - * @param {Object} parsedJSON parsed AsyncAPI document - * @param {String} asyncapiYAMLorJSON AsyncAPI document in string - * @param {String} initialFormat information of the document was originally JSON or YAML - * @returns {Boolean} true in case the document is valid, otherwise throws {@link ParserError} - */ -function validateChannels(parsedJSON, asyncapiYAMLorJSON, initialFormat) { - const chnls = parsedJSON.channels; - if (!chnls) return true; - - const chnlsMap = new Map(Object.entries(chnls)); - const notProvidedParams = new Map(); //return object for missing parameters - const invalidChannelName = new Map(); //return object for invalid channel names with query parameters - const unknownServers = new Map(); //return object for server names not declared in top-level servers object - - chnlsMap.forEach((val, key) => { - const variables = parseUrlVariables(key); - const notProvidedChannelParams = notProvidedParams.get(tilde(key)); - const queryParameters = parseUrlQueryParameters(key); - const unknownServerNames = getUnknownServers(parsedJSON, val); - - //channel variable validation: fill return object with missing parameters - if (variables) { - setNotProvidedParams( - variables, - val, - key, - notProvidedChannelParams, - notProvidedParams - ); - } - - //channel name validation: fill return object with channels containing query parameters - if (queryParameters) { - invalidChannelName.set(tilde(key), queryParameters); - } - - //server validation: fill return object with unknown server names - if (unknownServerNames.length > 0) { - unknownServers.set(tilde(key), unknownServerNames); - } - }); - - //combine validation errors of both checks and output them as one array - const parameterValidationErrors = groupValidationErrors( - 'channels', - 'channel does not have a corresponding parameter object for', - notProvidedParams, - asyncapiYAMLorJSON, - initialFormat - ); - const nameValidationErrors = groupValidationErrors( - 'channels', - 'channel contains invalid name with url query parameters', - invalidChannelName, - asyncapiYAMLorJSON, - initialFormat - ); - const serverValidationErrors = groupValidationErrors( - 'channels', - 'channel contains servers that are not on the servers list in the root of the document', - unknownServers, - asyncapiYAMLorJSON, - initialFormat - ); - const allValidationErrors = parameterValidationErrors.concat(nameValidationErrors).concat(serverValidationErrors); - - //channel variable validation: throw exception if channel validation fails - if (notProvidedParams.size || invalidChannelName.size || unknownServers.size) { - throw new ParserError({ - type: validationError, - title: 'Channel validation failed', - parsedJSON, - validationErrors: allValidationErrors, - }); - } - - return true; -} - -/** - * Validates if tags specified in the following objects have no duplicates: root, operations, operation traits, channels, - * messages and message traits. - * - * @private - * @param {Object} parsedJSON parsed AsyncAPI document - * @param {String} asyncapiYAMLorJSON AsyncAPI document in string - * @param {String} initialFormat information of the document was originally JSON or YAML - * @returns {Boolean} true in case the document is valid, otherwise throws {@link ParserError} - */ -function validateTags(parsedJSON, asyncapiYAMLorJSON, initialFormat) { - const invalidRoot = validateRootTags(parsedJSON); - const invalidChannels = validateAllChannelsTags(parsedJSON); - const invalidOperationTraits = validateOperationTraitTags(parsedJSON); - const invalidMessages = validateMessageTags(parsedJSON); - const invalidMessageTraits = validateMessageTraitsTags(parsedJSON); - const errorMessage = 'contains duplicate tag names'; - - let invalidRootValidationErrors = []; - let invalidChannelsValidationErrors = []; - let invalidOperationTraitsValidationErrors = []; - let invalidMessagesValidationErrors = []; - let invalidMessageTraitsValidationErrors = []; - - if (invalidRoot.size) { - invalidRootValidationErrors = groupValidationErrors( - null, - errorMessage, - invalidRoot, - asyncapiYAMLorJSON, - initialFormat - ); - } - - if (invalidChannels.size) { - invalidChannelsValidationErrors = groupValidationErrors( - 'channels', - errorMessage, - invalidChannels, - asyncapiYAMLorJSON, - initialFormat - ); - } - - if (invalidOperationTraits.size) { - invalidOperationTraitsValidationErrors = groupValidationErrors( - 'components', - errorMessage, - invalidOperationTraits, - asyncapiYAMLorJSON, - initialFormat - ); - } - - if (invalidMessages.size) { - invalidMessagesValidationErrors = groupValidationErrors( - 'components', - errorMessage, - invalidMessages, - asyncapiYAMLorJSON, - initialFormat - ); - } - - if (invalidMessageTraits.size) { - invalidMessageTraitsValidationErrors = groupValidationErrors( - 'components', - errorMessage, - invalidMessageTraits, - asyncapiYAMLorJSON, - initialFormat - ); - } - - const allValidationErrors = invalidRootValidationErrors - .concat(invalidChannelsValidationErrors) - .concat(invalidOperationTraitsValidationErrors) - .concat(invalidMessagesValidationErrors) - .concat(invalidMessageTraitsValidationErrors); - - if (allValidationErrors.length) { - throw new ParserError({ - type: validationError, - title: 'Tags validation failed', - parsedJSON, - validationErrors: allValidationErrors, - }); - } - - return true; -} - -function validateRootTags(parsedJSON) { - const invalidRoot = new Map(); - const duplicateNames = parsedJSON.tags && getDuplicateTagNames(parsedJSON.tags); - - if (duplicateNames && duplicateNames.length) { - invalidRoot.set('tags', duplicateNames.toString()); - } - - return invalidRoot; -} - -function validateOperationTraitTags(parsedJSON) { - const invalidOperationTraits = new Map(); - - if (parsedJSON && parsedJSON.components && parsedJSON.components.operationTraits) { - Object.keys(parsedJSON.components.operationTraits).forEach((operationTrait) => { - // eslint-disable-next-line security/detect-object-injection - const duplicateNames = getDuplicateTagNames(parsedJSON.components.operationTraits[operationTrait].tags); - - if (duplicateNames && duplicateNames.length) { - const operationTraitsPath = `operationTraits/${operationTrait}/tags`; - invalidOperationTraits.set( - operationTraitsPath, - duplicateNames.toString() - ); - } - }); - } - - return invalidOperationTraits; -} - -function validateAllChannelsTags(parsedJSON) { - const chnls = parsedJSON.channels; - if (!chnls) return true; - - const chnlsMap = new Map(Object.entries(chnls)); - const invalidChannels = new Map(); - chnlsMap.forEach((channel, channelName) => validateChannelTags(invalidChannels, channel, channelName)); - - return invalidChannels; -} - -function validateChannelTags(invalidChannels, channel, channelName) { - if (channel.publish) { - validateOperationTags(invalidChannels, channel.publish, `${tilde(channelName)}/publish`); - } - - if (channel.subscribe) { - validateOperationTags(invalidChannels, channel.subscribe, `${tilde(channelName)}/subscribe`); - } -} - -/** - * Check tags in operation and in message. - * - * @private - * @param {Map} invalidChannels map with invalid channel entries - * @param {Operation} operation operation object - * @param {String} operationPath operation path - */ -function validateOperationTags(invalidChannels, operation, operationPath) { - if (!operation) return; - - tryAddInvalidEntries(invalidChannels, `${operationPath}/tags`, operation.tags); - - if (operation.message) { - if (operation.message.oneOf) { - operation.message.oneOf.forEach((message, idx) => { - tryAddInvalidEntries(invalidChannels, `${operationPath}/message/oneOf/${idx}/tags`, message.tags); - }); - } else { - tryAddInvalidEntries(invalidChannels, `${operationPath}/message/tags`, operation.message.tags); - } - } -} - -function tryAddInvalidEntries(invalidChannels, key, tags) { - const duplicateNames = tags && getDuplicateTagNames(tags); - if (duplicateNames && duplicateNames.length) { - invalidChannels.set(key, duplicateNames.toString()); - } -} - -function validateMessageTraitsTags(parsedJSON) { - const invalidMessageTraits = new Map(); - - if (parsedJSON && parsedJSON.components && parsedJSON.components.messageTraits) { - Object.keys(parsedJSON.components.messageTraits).forEach((messageTrait) => { - // eslint-disable-next-line security/detect-object-injection - const duplicateNames = getDuplicateTagNames(parsedJSON.components.messageTraits[messageTrait].tags); - - if (duplicateNames && duplicateNames.length) { - const messageTraitsPath = `messageTraits/${messageTrait}/tags`; - invalidMessageTraits.set(messageTraitsPath, duplicateNames.toString()); - } - }); - } - - return invalidMessageTraits; -} - -function validateMessageTags(parsedJSON) { - const invalidMessages = new Map(); - - if (parsedJSON && parsedJSON.components && parsedJSON.components.messages) { - Object.keys(parsedJSON.components.messages).forEach((message) => { - // eslint-disable-next-line security/detect-object-injection - const duplicateNames = getDuplicateTagNames(parsedJSON.components.messages[message].tags); - - if (duplicateNames && duplicateNames.length) { - const messagePath = `messages/${message}/tags`; - invalidMessages.set(messagePath, duplicateNames.toString()); - } - }); - } - - return invalidMessages; -} - -function getDuplicateTagNames(tags) { - if (!tags) return null; - - const tagNames = tags.map((item) => item.name); - return tagNames.reduce((acc, item, idx, arr) => { - if (arr.indexOf(item) !== idx && acc.indexOf(item) < 0) { - acc.push(item); - } - return acc; - }, []); -} - -module.exports = { - validateServerVariables, - validateOperationId, - validateServerSecurity, - validateChannels, - validateTags, -}; diff --git a/lib/errors/parser-error.js b/lib/errors/parser-error.js deleted file mode 100644 index d8b96f67a..000000000 --- a/lib/errors/parser-error.js +++ /dev/null @@ -1,64 +0,0 @@ -const ERROR_URL_PREFIX = 'https://github.com/asyncapi/parser-js/'; - -const buildError = (from, to) => { - to.type = from.type.startsWith(ERROR_URL_PREFIX) ? from.type : `${ERROR_URL_PREFIX}${from.type}`; - to.title = from.title; - if (from.detail) to.detail = from.detail; - if (from.validationErrors) to.validationErrors = from.validationErrors; - if (from.parsedJSON) to.parsedJSON = from.parsedJSON; - if (from.location) to.location = from.location; - if (from.refs) to.refs = from.refs; - return to; -}; - -/** - * Represents an error while trying to parse an AsyncAPI document. - * @alias module:@asyncapi/parser#ParserError - * @extends Error - */ -class ParserError extends Error { - /** - * Instantiates an error - * @param {Object} definition - * @param {String} definition.type The type of the error. - * @param {String} definition.title The message of the error. - * @param {String} [definition.detail] A string containing more detailed information about the error. - * @param {Object} [definition.parsedJSON] The resulting JSON after YAML transformation. Or the JSON object if the this was the initial format. - * @param {Object[]} [definition.validationErrors] The errors resulting from the validation. For more information, see https://www.npmjs.com/package/better-ajv-errors. - * @param {String} definition.validationErrors.title A validation error message. - * @param {String} definition.validationErrors.jsonPointer The path to the field that contains the error. Uses JSON Pointer format. - * @param {Number} definition.validationErrors.startLine The line where the error starts in the AsyncAPI document. - * @param {Number} definition.validationErrors.startColumn The column where the error starts in the AsyncAPI document. - * @param {Number} definition.validationErrors.startOffset The offset (starting from the beginning of the document) where the error starts in the AsyncAPI document. - * @param {Number} definition.validationErrors.endLine The line where the error ends in the AsyncAPI document. - * @param {Number} definition.validationErrors.endColumn The column where the error ends in the AsyncAPI document. - * @param {Number} definition.validationErrors.endOffset The offset (starting from the beginning of the document) where the error ends in the AsyncAPI document. - * @param {Object} [definition.location] Error location details after trying to parse an invalid JSON or YAML document. - * @param {Number} definition.location.startLine The line of the YAML/JSON document where the error starts. - * @param {Number} definition.location.startColumn The column of the YAML/JSON document where the error starts. - * @param {Number} definition.location.startOffset The offset (starting from the beginning of the document) where the error starts in the YAML/JSON AsyncAPI document. - * @param {Object[]} [definition.refs] Error details after trying to resolve $ref's. - * @param {String} definition.refs.title A validation error message. - * @param {String} definition.refs.jsonPointer The path to the field that contains the error. Uses JSON Pointer format. - * @param {Number} definition.refs.startLine The line where the error starts in the AsyncAPI document. - * @param {Number} definition.refs.startColumn The column where the error starts in the AsyncAPI document. - * @param {Number} definition.refs.startOffset The offset (starting from the beginning of the document) where the error starts in the AsyncAPI document. - * @param {Number} definition.refs.endLine The line where the error ends in the AsyncAPI document. - * @param {Number} definition.refs.endColumn The column where the error ends in the AsyncAPI document. - * @param {Number} definition.refs.endOffset The offset (starting from the beginning of the document) where the error ends in the AsyncAPI document. - */ - constructor(def) { - super(); - buildError(def, this); - this.message = def.title; - } - - /** - * Returns a JS object representation of the error. - */ - toJS() { - return buildError(this, {}); - } -} - -module.exports = ParserError; diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 968931fed..000000000 --- a/lib/index.js +++ /dev/null @@ -1,6 +0,0 @@ -const parser = require('./parser'); -const defaultAsyncAPISchemaParser = require('./asyncapiSchemaFormatParser'); - -parser.registerSchemaParser(defaultAsyncAPISchemaParser); - -module.exports = parser; diff --git a/lib/iterators.js b/lib/iterators.js deleted file mode 100644 index f4c095067..000000000 --- a/lib/iterators.js +++ /dev/null @@ -1,325 +0,0 @@ -/** - * @readonly - * @enum {SchemaIteratorCallbackType} - */ - -/** - * The different kind of stages when crawling a schema. - * - * @typedef SchemaIteratorCallbackType - * @property {string} NEW_SCHEMA The crawler just started crawling a schema. - * @property {string} END_SCHEMA The crawler just finished crawling a schema. - */ -const SchemaIteratorCallbackType = Object.freeze({ - NEW_SCHEMA: 'NEW_SCHEMA', - END_SCHEMA: 'END_SCHEMA' -}); - -/** - * - * @readonly - * @enum {SchemaTypesToIterate} - */ - -/** - * The different types of schemas you can iterate - * - * @typedef SchemaTypesToIterate - * @property {string} parameters Crawl all schemas in parameters - * @property {string} payloads Crawl all schemas in payloads - * @property {string} headers Crawl all schemas in headers - * @property {string} components Crawl all schemas in components - * @property {string} objects Crawl all schemas of type object - * @property {string} arrays Crawl all schemas of type array - * @property {string} oneOfs Crawl all schemas in oneOf's - * @property {string} allOfs Crawl all schemas in allOf's - * @property {string} anyOfs Crawl all schemas in anyOf's - * @property {string} nots Crawl all schemas in not field - * @property {string} propertyNames Crawl all schemas in propertyNames field - * @property {string} patternProperties Crawl all schemas in patternProperties field - * @property {string} contains Crawl all schemas in contains field - * @property {string} ifs Crawl all schemas in if field - * @property {string} thenes Crawl all schemas in then field - * @property {string} elses Crawl all schemas in else field - * @property {string} dependencies Crawl all schemas in dependencies field - * @property {string} definitions Crawl all schemas in definitions field - */ -const SchemaTypesToIterate = Object.freeze({ - parameters: 'parameters', - payloads: 'payloads', - headers: 'headers', - components: 'components', - objects: 'objects', - arrays: 'arrays', - oneOfs: 'oneOfs', - allOfs: 'allOfs', - anyOfs: 'anyOfs', - nots: 'nots', - propertyNames: 'propertyNames', - patternProperties: 'patternProperties', - contains: 'contains', - ifs: 'ifs', - thenes: 'thenes', - elses: 'elses', - dependencies: 'dependencies', - definitions: 'definitions', -}); - -/* eslint-disable sonarjs/cognitive-complexity */ -/** - * Traverse current schema and all nested schemas. - * - * @private - * @param {Schema} schema which is being crawled. - * @param {(String | Number)} propOrIndex if the schema is from a property/index get the name/number of such. - * @param {Object} options - * @param {SchemaIteratorCallbackType} [options.callback] callback used when crawling a schema. - * @param {SchemaTypesToIterate[]} [options.schemaTypesToIterate] list of schema types to crawl. - * @param {Set} [options.seenSchemas] Set which holds all defined schemas in the tree - it is mainly used to check circular references - */ -function traverseSchema(schema, propOrIndex, options) { // NOSONAR - if (!schema) return; - const { callback, schemaTypesToIterate, seenSchemas } = options; - - // handle circular references - const jsonSchema = schema.json(); - if (seenSchemas.has(jsonSchema)) return; - seenSchemas.add(jsonSchema); - - // `type` isn't required so save type as array in the fallback - let types = schema.type() || []; - // change primitive type to array of types for easier handling - if (!Array.isArray(types)) { - types = [types]; - } - if (!schemaTypesToIterate.includes(SchemaTypesToIterate.objects) && types.includes('object')) return; - if (!schemaTypesToIterate.includes(SchemaTypesToIterate.arrays) && types.includes('array')) return; - - // check callback `NEW_SCHEMA` case - if (callback(schema, propOrIndex, SchemaIteratorCallbackType.NEW_SCHEMA) === false) return; - - if (schemaTypesToIterate.includes(SchemaTypesToIterate.objects) && types.includes('object')) { - recursiveSchemaObject(schema, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.arrays) && types.includes('array')) { - recursiveSchemaArray(schema, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.oneOfs)) { - (schema.oneOf() || []).forEach((combineSchema, idx) => { - traverseSchema(combineSchema, idx, options); - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.anyOfs)) { - (schema.anyOf() || []).forEach((combineSchema, idx) => { - traverseSchema(combineSchema, idx, options); - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.allOfs)) { - (schema.allOf() || []).forEach((combineSchema, idx) => { - traverseSchema(combineSchema, idx, options); - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.nots) && schema.not()) { - traverseSchema(schema.not(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.ifs) && schema.if()) { - traverseSchema(schema.if(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.thenes) && schema.then()) { - traverseSchema(schema.then(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.elses) && schema.else()) { - traverseSchema(schema.else(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.dependencies)) { - Object.entries(schema.dependencies() || {}).forEach(([depName, dep]) => { - // do not iterate dependent required - if (dep && !Array.isArray(dep)) { - traverseSchema(dep, depName, options); - } - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.definitions)) { - Object.entries(schema.definitions() || {}).forEach(([defName, def]) => { - traverseSchema(def, defName, options); - }); - } - - callback(schema, propOrIndex, SchemaIteratorCallbackType.END_SCHEMA); - seenSchemas.delete(jsonSchema); -} -/* eslint-enable sonarjs/cognitive-complexity */ - -/** - * Recursively go through schema of object type and execute callback. - * - * @private - * @param {Object} options - * @param {SchemaIteratorCallbackType} [options.callback] callback used when crawling a schema. - * @param {SchemaTypesToIterate[]} [options.schemaTypesToIterate] list of schema types to crawl. - * @param {Set} [options.seenSchemas] Set which holds all defined schemas in the tree - it is mainly used to check circular references - */ -function recursiveSchemaObject(schema, options) { - Object.entries(schema.properties() || {}).forEach(([propertyName, property]) => { - traverseSchema(property, propertyName, options); - }); - - const additionalProperties = schema.additionalProperties(); - if (typeof additionalProperties === 'object') { - traverseSchema(additionalProperties, null, options); - } - - const schemaTypesToIterate = options.schemaTypesToIterate; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.propertyNames) && schema.propertyNames()) { - traverseSchema(schema.propertyNames(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.patternProperties)) { - Object.entries(schema.patternProperties() || {}).forEach(([propertyName, property]) => { - traverseSchema(property, propertyName, options); - }); - } -} - -/** - * Recursively go through schema of array type and execute callback. - * - * @private - * @param {Object} options - * @param {SchemaIteratorCallbackType} [options.callback] callback used when crawling a schema. - * @param {SchemaTypesToIterate[]} [options.schemaTypesToIterate] list of schema types to crawl. - * @param {Set} [options.seenSchemas] Set which holds all defined schemas in the tree - it is mainly used to check circular references - */ -function recursiveSchemaArray(schema, options) { - const items = schema.items(); - if (items) { - if (Array.isArray(items)) { - items.forEach((item, idx) => { - traverseSchema(item, idx, options); - }); - } else { - traverseSchema(items, null, options); - } - } - - const additionalItems = schema.additionalItems(); - if (typeof additionalItems === 'object') { - traverseSchema(additionalItems, null, options); - } - - if (options.schemaTypesToIterate.includes(SchemaTypesToIterate.contains) && schema.contains()) { - traverseSchema(schema.contains(), null, options); - } -} - -/** - * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. - * - * @private - * @param {AsyncAPIDocument} doc parsed AsyncAPI Document - * @param {FoundSchemaCallback} callback callback used when crawling a schema. - * @param {SchemaTypesToIterate[]} schemaTypesToIterate list of schema types to crawl. - */ -function traverseAsyncApiDocument(doc, callback, schemaTypesToIterate) { - if (!schemaTypesToIterate) { - schemaTypesToIterate = Object.values(SchemaTypesToIterate); - } - const options = { callback, schemaTypesToIterate, seenSchemas: new Set() }; - - if (doc.hasChannels()) { - Object.values(doc.channels()).forEach(channel => { - traverseChannel(channel, options); - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.components) && doc.hasComponents()) { - const components = doc.components(); - Object.values(components.messages() || {}).forEach(message => { - traverseMessage(message, options); - }); - Object.values(components.schemas() || {}).forEach(schema => { - traverseSchema(schema, null, options); - }); - if (schemaTypesToIterate.includes(SchemaTypesToIterate.parameters)) { - Object.values(components.parameters() || {}).forEach(parameter => { - traverseSchema(parameter.schema(), null, options); - }); - } - Object.values(components.messageTraits() || {}).forEach(messageTrait => { - traverseMessageTrait(messageTrait, options); - }); - } -} - -/** - * Go through each schema in channel - * - * @private - * @param {Channel} channel - * @param {Object} options - * @param {SchemaIteratorCallbackType} [options.callback] callback used when crawling a schema. - * @param {SchemaTypesToIterate[]} [options.schemaTypesToIterate] list of schema types to crawl. - * @param {Set} [options.seenSchemas] Set which holds all defined schemas in the tree - it is mainly used to check circular references - */ -function traverseChannel(channel, options) { - if (!channel) return; - const { schemaTypesToIterate } = options; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.parameters)) { - Object.values(channel.parameters() || {}).forEach(parameter => { - traverseSchema(parameter.schema(), null, options); - }); - } - if (channel.hasPublish()) { - channel.publish().messages().forEach(message => { - traverseMessage(message, options); - }); - } - if (channel.hasSubscribe()) { - channel.subscribe().messages().forEach(message => { - traverseMessage(message, options); - }); - } -} - -/** - * Go through each schema in a message - * - * @private - * @param {Message} message - * @param {Object} options - * @param {SchemaIteratorCallbackType} [options.callback] callback used when crawling a schema. - * @param {SchemaTypesToIterate[]} [options.schemaTypesToIterate] list of schema types to crawl. - * @param {Set} [options.seenSchemas] Set which holds all defined schemas in the tree - it is mainly used to check circular references - */ -function traverseMessage(message, options) { - if (!message) return; - const { schemaTypesToIterate } = options; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.headers)) { - traverseSchema(message.headers(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.payloads)) { - traverseSchema(message.payload(), null, options); - } -} - -/** - * Go through each schema in a messageTrait - * - * @private - * @param {MessageTrait} messageTrait - * @param {Object} options - * @param {SchemaIteratorCallbackType} [options.callback] callback used when crawling a schema. - * @param {SchemaTypesToIterate[]} [options.schemaTypesToIterate] list of schema types to crawl. - * @param {Set} [options.seenSchemas] Set which holds all defined schemas in the tree - it is mainly used to check circular references - */ -function traverseMessageTrait(messageTrait, options) { - if (!messageTrait) return; - const { schemaTypesToIterate } = options; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.headers)) { - traverseSchema(messageTrait.headers(), null, options); - } -} - -module.exports = { - SchemaIteratorCallbackType, - SchemaTypesToIterate, - traverseAsyncApiDocument, -}; \ No newline at end of file diff --git a/lib/json-parse.js b/lib/json-parse.js deleted file mode 100644 index 1d9666b75..000000000 --- a/lib/json-parse.js +++ /dev/null @@ -1,43 +0,0 @@ -module.exports = (txt, reviver, context = 20) => { - try { - return JSON.parse(txt, reviver); - } catch (e) { - handleJsonNotString(txt); - const syntaxErr = e.message.match(/^Unexpected token.*position\s+(\d+)/i); - const errIdxBrokenJson = e.message.match(/^Unexpected end of JSON.*/i) ? txt.length - 1 : null; - const errIdx = syntaxErr ? +syntaxErr[1] : errIdxBrokenJson; - handleErrIdxNotNull(e, txt, errIdx, context); - e.offset = errIdx; - const lines = txt.substr(0, errIdx).split('\n'); - e.startLine = lines.length; - e.startColumn = lines[lines.length - 1].length; - throw e; - } -}; - -function handleJsonNotString(txt) { - if (typeof txt !== 'string') { - const isEmptyArray = Array.isArray(txt) && txt.length === 0; - const errorMessage = `Cannot parse ${ - isEmptyArray ? 'an empty array' : String(txt)}`; - throw new TypeError(errorMessage); - } -} - -function handleErrIdxNotNull(e, txt, errIdx, context) { - if (errIdx !== null) { - const start = errIdx <= context - ? 0 - : errIdx - context; - const end = errIdx + context >= txt.length - ? txt.length - : errIdx + context; - e.message += ` while parsing near '${ - start === 0 ? '' : '...' - }${txt.slice(start, end)}${ - end === txt.length ? '' : '...' - }'`; - } else { - e.message += ` while parsing '${txt.slice(0, context * 2)}'`; - } -} diff --git a/lib/mixins/bindings.js b/lib/mixins/bindings.js deleted file mode 100644 index 011f7e603..000000000 --- a/lib/mixins/bindings.js +++ /dev/null @@ -1,46 +0,0 @@ -const { getMapValueByKey } = require('../models/utils'); - -/** - * Implements functions to deal with the common Bindings object. - * @mixin - */ -const MixinBindings = { - /** - * @returns {boolean} - */ - hasBindings() { - return !!(this._json.bindings && Object.keys(this._json.bindings).length); - }, - - /** - * @returns {Object} - */ - bindings() { - return this.hasBindings() ? this._json.bindings : {}; - }, - - /** - * @returns {string[]} - */ - bindingProtocols() { - return Object.keys(this.bindings()); - }, - - /** - * @param {string} name - Name of the binding. - * @returns {boolean} - */ - hasBinding(name) { - return this.hasBindings() && !!this._json.bindings[String(name)]; - }, - - /** - * @param {string} name - Name of the binding. - * @returns {(Object | null)} - */ - binding(name) { - return getMapValueByKey(this._json.bindings, name); - }, -}; - -module.exports = MixinBindings; diff --git a/lib/mixins/description.js b/lib/mixins/description.js deleted file mode 100644 index 8c26ffda0..000000000 --- a/lib/mixins/description.js +++ /dev/null @@ -1,23 +0,0 @@ -const { getMapValueByKey } = require('../models/utils'); - -/** - * Implements functions to deal with the description field. - * @mixin - */ -const MixinDescription = { - /** - * @returns {boolean} - */ - hasDescription() { - return !!this._json.description; - }, - - /** - * @returns {(string | null)} - */ - description() { - return getMapValueByKey(this._json, 'description'); - }, -}; - -module.exports = MixinDescription; diff --git a/lib/mixins/external-docs.js b/lib/mixins/external-docs.js deleted file mode 100644 index 178dc5f38..000000000 --- a/lib/mixins/external-docs.js +++ /dev/null @@ -1,25 +0,0 @@ -const { getMapValueOfType } = require('../models/utils'); - -const ExternalDocs = require('../models/external-docs'); - -/** - * Implements functions to deal with the ExternalDocs object. - * @mixin - */ -const MixinExternalDocs = { - /** - * @returns {boolean} - */ - hasExternalDocs() { - return !!(this._json.externalDocs && Object.keys(this._json.externalDocs).length); - }, - - /** - * @returns {(ExternalDocs | null)} - */ - externalDocs() { - return getMapValueOfType(this._json, 'externalDocs', ExternalDocs); - }, -}; - -module.exports = MixinExternalDocs; diff --git a/lib/mixins/specification-extensions.js b/lib/mixins/specification-extensions.js deleted file mode 100644 index d6a9fe889..000000000 --- a/lib/mixins/specification-extensions.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Implements functions to deal with the SpecificationExtensions object. - * @mixin - */ -const MixinSpecificationExtensions = { - /** - * @returns {boolean} - */ - hasExtensions() { - return !!this.extensionKeys().length; - }, - - /** - * @returns {Object} - */ - extensions() { - const result = {}; - Object.entries(this._json).forEach(([key, value]) => { - if ((/^x-[\w\d\.\-\_]+$/).test(key)) { - result[String(key)] = value; - } - }); - return result; - }, - - /** - * @returns {string[]} - */ - extensionKeys() { - return Object.keys(this.extensions()); - }, - - /** - * @returns {string[]} - */ - extKeys() { - return this.extensionKeys(); - }, - - /** - * @param {string} key - Extension key. - * @returns {boolean} - */ - hasExtension(key) { - if (!key.startsWith('x-')) { - return false; - } - return !!this._json[String(key)]; - }, - - /** - * @param {string} key - Extension key. - * @returns {any} - */ - extension(key) { - if (!key.startsWith('x-')) { - return null; - } - return this._json[String(key)]; - }, - - /** - * @param {string} key - Extension key. - * @returns {boolean} - */ - hasExt(key) { - return this.hasExtension(key); - }, - - /** - * @param {string} key - Extension key. - * @returns {any} - */ - ext(key) { - return this.extension(key); - }, -}; - -module.exports = MixinSpecificationExtensions; diff --git a/lib/mixins/tags.js b/lib/mixins/tags.js deleted file mode 100644 index 5bd5a6f2b..000000000 --- a/lib/mixins/tags.js +++ /dev/null @@ -1,47 +0,0 @@ -const Tag = require('../models/tag'); - -/** - * Implements functions to deal with the Tags object. - * @mixin - */ -const MixinTags = { - /** - * @returns {boolean} - */ - hasTags() { - return !!(Array.isArray(this._json.tags) && this._json.tags.length); - }, - - /** - * @returns {Tag[]} - */ - tags() { - return this.hasTags() ? this._json.tags.map(t => new Tag(t)) : []; - }, - - /** - * @returns {string[]} - */ - tagNames() { - return this.hasTags() ? this._json.tags.map(t => t.name) : []; - }, - - /** - * @param {string} name - Name of the tag. - * @returns {boolean} - */ - hasTag(name) { - return this.hasTags() && this._json.tags.some(t => t.name === name); - }, - - /** - * @param {string} name - Name of the tag. - * @returns {(Tag | null)} - */ - tag(name) { - const tg = this.hasTags() && this._json.tags.find(t => t.name === name); - return tg ? new Tag(tg) : null; - }, -}; - -module.exports = MixinTags; diff --git a/lib/models/asyncapi.js b/lib/models/asyncapi.js deleted file mode 100644 index c4b0f6b05..000000000 --- a/lib/models/asyncapi.js +++ /dev/null @@ -1,365 +0,0 @@ -const { createMapOfType, getMapValueOfType, mix } = require('./utils'); - -const Base = require('./base'); -const Info = require('./info'); -const Server = require('./server'); -const Channel = require('./channel'); -const Components = require('./components'); -const MixinExternalDocs = require('../mixins/external-docs'); -const MixinTags = require('../mixins/tags'); -const MixinSpecificationExtensions = require('../mixins/specification-extensions'); -const {xParserSpecParsed, xParserSpecStringified, xParserCircle} = require('../constants'); -const {assignNameToAnonymousMessages, assignNameToComponentMessages, assignUidToComponentSchemas, assignUidToParameterSchemas, assignIdToAnonymousSchemas, assignUidToComponentParameterSchemas} = require('../anonymousNaming'); -const {traverseAsyncApiDocument} = require('../iterators'); - -/** - * Implements functions to deal with the AsyncAPI document. - * @class - * @alias module:@asyncapi/parser#AsyncAPIDocument - * @extends Base - * @mixes MixinTags - * @mixes MixinExternalDocs - * @mixes MixinSpecificationExtensions - * @returns {AsyncAPIDocument} - */ -class AsyncAPIDocument extends Base { - /** - * @constructor - */ - constructor(...args) { - super(...args); - - if (this.ext(xParserSpecParsed) === true) { - return; - } - - assignNameToComponentMessages(this); - assignNameToAnonymousMessages(this); - - assignUidToComponentSchemas(this); - assignUidToComponentParameterSchemas(this); - assignUidToParameterSchemas(this); - assignIdToAnonymousSchemas(this); - - // We add `x-parser-spec-parsed=true` extension to determine that the specification is parsed and validated - // and when the specification is re-passed to the AsyncAPIDocument constructor, - // there is no need to perform the same operations. - this.json()[String(xParserSpecParsed)] = true; - } - - /** - * @returns {string} - */ - version() { - return this._json.asyncapi; - } - - /** - * @returns {Info} - */ - info() { - return new Info(this._json.info); - } - - /** - * @returns {string} - */ - id() { - return this._json.id; - } - - /** - * @returns {boolean} - */ - hasServers() { - return !!this._json.servers; - } - - /** - * @returns {Object} - */ - servers() { - return createMapOfType(this._json.servers, Server); - } - - /** - * @returns {string[]} - */ - serverNames() { - if (!this._json.servers) return []; - return Object.keys(this._json.servers); - } - - /** - * @param {string} name - Name of the server. - * @returns {Server} - */ - server(name) { - return getMapValueOfType(this._json.servers, name, Server); - } - - /** - * @returns {boolean} - */ - hasDefaultContentType() { - return !!this._json.defaultContentType; - } - - /** - * @returns {string|null} - */ - defaultContentType() { - return this._json.defaultContentType || null; - } - - /** - * @returns {boolean} - */ - hasChannels() { - return !!this._json.channels; - } - - /** - * @returns {Object} - */ - channels() { - return createMapOfType(this._json.channels, Channel, this); - } - - /** - * @returns {string[]} - */ - channelNames() { - if (!this._json.channels) return []; - return Object.keys(this._json.channels); - } - - /** - * @param {string} name - Name of the channel. - * @returns {Channel} - */ - channel(name) { - return getMapValueOfType(this._json.channels, name, Channel, this); - } - - /** - * @returns {boolean} - */ - hasComponents() { - return !!this._json.components; - } - - /** - * @returns {Components} - */ - components() { - if (!this._json.components) return null; - return new Components(this._json.components); - } - - /** - * @returns {boolean} - */ - hasMessages() { - return !!this.allMessages().size; - } - - /** - * @returns {Map} - */ - allMessages() { - const messages = new Map(); - - if (this.hasChannels()) { - this.channelNames().forEach(channelName => { - const channel = this.channel(channelName); - if (channel.hasPublish()) { - channel.publish().messages().forEach(m => { - messages.set(m.uid(), m); - }); - } - if (channel.hasSubscribe()) { - channel.subscribe().messages().forEach(m => { - messages.set(m.uid(), m); - }); - } - }); - } - - if (this.hasComponents()) { - Object.values(this.components().messages()).forEach(m => { - messages.set(m.uid(), m); - }); - } - - return messages; - } - - /** - * @returns {Map} - */ - allSchemas() { - const schemas = new Map(); - const allSchemasCallback = (schema) => { - if (schema.uid()) { - schemas.set(schema.uid(), schema); - } - }; - traverseAsyncApiDocument(this, allSchemasCallback); - return schemas; - } - - /** - * @returns {boolean} - */ - hasCircular() { - return !!this._json[String(xParserCircle)]; - } - - /** - * Callback used when crawling a schema. - * @callback module:@asyncapi/parser.TraverseSchemas - * @param {Schema} schema which is being crawled - * @param {String} propName if the schema is from a property get the name of such - * @param {SchemaIteratorCallbackType} callbackType is the schema a new one or is the crawler finishing one. - * @returns {boolean} should the crawler continue crawling the schema? - */ - - /** - * Traverse schemas in the document and select which types of schemas to include. - * By default all schemas are iterated - * @param {TraverseSchemas} callback - * @param {SchemaTypesToIterate[]} schemaTypesToIterate - */ - traverseSchemas(callback, schemaTypesToIterate) { - traverseAsyncApiDocument(this, callback, schemaTypesToIterate); - } - - /** - * Converts a valid AsyncAPI document to a JavaScript Object Notation (JSON) string. - * A stringified AsyncAPI document using this function should be parsed via the AsyncAPIDocument.parse() function - the JSON.parse() function is not compatible. - * - * @param {AsyncAPIDocument} doc A valid AsyncAPIDocument instance. - * @param {(number | string)=} space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. - * @returns {string} - */ - static stringify(doc, space) { - const rawDoc = doc.json(); - const copiedDoc = { ...rawDoc }; - copiedDoc[String(xParserSpecStringified)] = true; - return JSON.stringify(copiedDoc, refReplacer(), space); - } - - /** - * Converts a valid stringified AsyncAPIDocument instance into an AsyncAPIDocument instance. - * - * @param {string} doc A valid stringified AsyncAPIDocument instance. - * @returns {AsyncAPIDocument} - */ - static parse(doc) { - let parsedJSON = doc; - if (typeof doc === 'string') { - parsedJSON = JSON.parse(doc); - } else if (typeof doc === 'object') { - // shall copy - parsedJSON = { ...parsedJSON }; - } - - // the `doc` must be an AsyncAPI parsed document - if (typeof parsedJSON !== 'object' || !parsedJSON[String(xParserSpecParsed)]) { - throw new Error('Cannot parse invalid AsyncAPI document'); - } - // if the `doc` is not stringified via the `stringify` static method then immediately return a model. - if (!parsedJSON[String(xParserSpecStringified)]) { - return new AsyncAPIDocument(parsedJSON); - } - // remove `x-parser-spec-stringified` extension - delete parsedJSON[String(xParserSpecStringified)]; - - const objToPath = new Map(); - const pathToObj = new Map(); - traverseStringifiedDoc(parsedJSON, undefined, parsedJSON, objToPath, pathToObj); - - return new AsyncAPIDocument(parsedJSON); - } -} - -/** - * Replacer function (that transforms the result) for AsyncAPI.stringify() function. - * Handles circular references by replacing it by JSONPath notation. - * - * @private - */ -function refReplacer() { - const modelPaths = new Map(); - const paths = new Map(); - let init = null; - - return function(field, value) { - // `this` points to parent object of given value - some object or array - const pathPart = modelPaths.get(this) + (Array.isArray(this) ? `[${field}]` : `.${ field}`); - - // check if `objOrPath` has "reference" - const isComplex = value === Object(value); - if (isComplex) { - modelPaths.set(value, pathPart); - } - - const savedPath = paths.get(value) || ''; - if (!savedPath && isComplex) { - const valuePath = pathPart.replace(/undefined\.\.?/,''); - paths.set(value, valuePath); - } - - const prefixPath = savedPath[0] === '[' ? '$' : '$.'; - let val = savedPath ? `$ref:${prefixPath}${savedPath}` : value; - if (init === null) { - init = value; - } else if (val === init) { - val = '$ref:$'; - } - return val; - }; -} - -/** - * Traverses stringified AsyncAPIDocument and replaces all JSON Pointer instance with real object reference. - * - * @private - * @param {Object} parent object - * @param {string} field of parent object - * @param {Object} root reference to the original object - * @param {Map} objToPath - * @param {Map} pathToObj - */ -function traverseStringifiedDoc(parent, field, root, objToPath, pathToObj) { - let objOrPath = parent; - let path = '$ref:$'; - - if (field !== undefined) { - // here can be string with `$ref` prefix or normal value - objOrPath = parent[String(field)]; - const concatenatedPath = field ? `.${field}` : ''; - path = objToPath.get(parent) + (Array.isArray(parent) ? `[${field}]` : concatenatedPath); - } - - objToPath.set(objOrPath, path); - pathToObj.set(path, objOrPath); - - const ref = pathToObj.get(objOrPath); - if (ref) { - parent[String(field)] = ref; - } - if (objOrPath === '$ref:$' || ref === '$ref:$') { // NOSONAR - parent[String(field)] = root; - } - - // traverse all keys, only if object is array/object - if (objOrPath === Object(objOrPath)) { - for (const f in objOrPath) { - traverseStringifiedDoc(objOrPath, f, root, objToPath, pathToObj); - } - } -} - -module.exports = mix(AsyncAPIDocument, MixinTags, MixinExternalDocs, MixinSpecificationExtensions); diff --git a/lib/models/base.js b/lib/models/base.js deleted file mode 100644 index e94e121cb..000000000 --- a/lib/models/base.js +++ /dev/null @@ -1,26 +0,0 @@ -const ParserError = require('../errors/parser-error'); - -/** - * Implements common functionality for all the models. - * @class - * @alias module:@asyncapi/parser#Base - * @returns {Base} - */ -class Base { - constructor(json) { - if (json === undefined || json === null) throw new ParserError(`Invalid JSON to instantiate the ${this.constructor.name} object.`); - this._json = json; - } - - /** - * @param {string} [key] A key to retrieve from the JSON object. - * @returns {any} - */ - json(key) { - if (key === undefined) return this._json; - if (!this._json) return; - return this._json[String(key)]; - } -} - -module.exports = Base; diff --git a/lib/models/channel-parameter.js b/lib/models/channel-parameter.js deleted file mode 100644 index 545b6bed3..000000000 --- a/lib/models/channel-parameter.js +++ /dev/null @@ -1,35 +0,0 @@ -const { mix } = require('./utils'); - -const Base = require('./base'); -const Schema = require('./schema'); - -const MixinDescription = require('../mixins/description'); -const MixinSpecificationExtensions = require('../mixins/specification-extensions'); - -/** - * Implements functions to deal with a ChannelParameter object. - * @class - * @alias module:@asyncapi/parser#ChannelParameter - * @extends Base - * @mixes MixinDescription - * @mixes MixinSpecificationExtensions - * @returns {ChannelParameter} - */ -class ChannelParameter extends Base { - /** - * @returns {string} - */ - location() { - return this._json.location; - } - - /** - * @returns {Schema} - */ - schema() { - if (!this._json.schema) return null; - return new Schema(this._json.schema); - } -} - -module.exports = mix(ChannelParameter, MixinDescription, MixinSpecificationExtensions); diff --git a/lib/models/channel.js b/lib/models/channel.js deleted file mode 100644 index 37aeabdb3..000000000 --- a/lib/models/channel.js +++ /dev/null @@ -1,102 +0,0 @@ -const { createMapOfType, getMapValueOfType, mix } = require('./utils'); - -const Base = require('./base'); -const ChannelParameter = require('./channel-parameter'); -const PublishOperation = require('./publish-operation'); -const SubscribeOperation = require('./subscribe-operation'); - -const MixinDescription = require('../mixins/description'); -const MixinBindings = require('../mixins/bindings'); -const MixinSpecificationExtensions = require('../mixins/specification-extensions'); - -/** - * Implements functions to deal with a Channel object. - * @class - * @alias module:@asyncapi/parser#Channel - * @extends Base - * @mixes MixinDescription - * @mixes MixinBindings - * @mixes MixinSpecificationExtensions - * @returns {Channel} - */ -class Channel extends Base { - /** - * @returns {Object} - */ - parameters() { - return createMapOfType(this._json.parameters, ChannelParameter); - } - - /** - * @param {string} name - Name of the parameter. - * @returns {ChannelParameter} - */ - parameter(name) { - return getMapValueOfType(this._json.parameters, name, ChannelParameter); - } - - /** - * @returns {boolean} - */ - hasParameters() { - return !!this._json.parameters; - } - - /** - * @returns {boolean} - */ - hasServers() { - return !!this._json.servers; - } - - /** - * @returns {String[]} - */ - servers() { - if (!this._json.servers) return []; - return this._json.servers; - } - - /** - * @param {number} index - Index of the server. - * @returns {String} - */ - server(index) { - if (!this._json.servers) return null; - if (typeof index !== 'number') return null; - if (index > this._json.servers.length - 1) return null; - return this._json.servers[+index]; - } - - /** - * @returns {PublishOperation} - */ - publish() { - if (!this._json.publish) return null; - return new PublishOperation(this._json.publish); - } - - /** - * @returns {SubscribeOperation} - */ - subscribe() { - if (!this._json.subscribe) return null; - return new SubscribeOperation(this._json.subscribe); - } - - /** - * @returns {boolean} - */ - hasPublish() { - return !!this._json.publish; - } - - /** - * @returns {boolean} - */ - hasSubscribe() { - return !!this._json.subscribe; - } -} - -module.exports = mix(Channel, MixinDescription, MixinBindings, MixinSpecificationExtensions); diff --git a/lib/models/components.js b/lib/models/components.js deleted file mode 100644 index db5afc976..000000000 --- a/lib/models/components.js +++ /dev/null @@ -1,224 +0,0 @@ -const { createMapOfType, getMapValueOfType, mix } = require('./utils'); - -const Base = require('./base'); -const Channel = require('./channel'); -const Message = require('./message'); -const Schema = require('./schema'); -const SecurityScheme = require('./security-scheme'); -const Server = require('./server'); -const ChannelParameter = require('./channel-parameter'); -const CorrelationId = require('./correlation-id'); -const OperationTrait = require('./operation-trait'); -const MessageTrait = require('./message-trait'); - -const MixinSpecificationExtensions = require('../mixins/specification-extensions'); - -/** - * Implements functions to deal with a Components object. - * @class - * @alias module:@asyncapi/parser#Components - * @extends Base - * @mixes MixinSpecificationExtensions - * @returns {Components} - */ -class Components extends Base { - /** - * @returns {Object} - */ - channels() { - return createMapOfType(this._json.channels, Channel); - } - - /** - * @returns {boolean} - */ - hasChannels() { - return !!this._json.channels; - } - - /** - * @param {string} name - Name of the channel. - * @returns {Channel} - */ - channel(name) { - return getMapValueOfType(this._json.channels, name, Channel); - } - - /** - * @returns {Object} - */ - messages() { - return createMapOfType(this._json.messages, Message); - } - - /** - * @returns {boolean} - */ - hasMessages() { - return !!this._json.messages; - } - - /** - * @param {string} name - Name of the message. - * @returns {Message} - */ - message(name) { - return getMapValueOfType(this._json.messages, name, Message); - } - - /** - * @returns {Object} - */ - schemas() { - return createMapOfType(this._json.schemas, Schema); - } - - /** - * @returns {boolean} - */ - hasSchemas() { - return !!this._json.schemas; - } - - /** - * @param {string} name - Name of the schema. - * @returns {Schema} - */ - schema(name) { - return getMapValueOfType(this._json.schemas, name, Schema); - } - - /** - * @returns {Object} - */ - securitySchemes() { - return createMapOfType(this._json.securitySchemes, SecurityScheme); - } - - /** - * @returns {boolean} - */ - hasSecuritySchemes() { - return !!this._json.securitySchemes; - } - - /** - * @param {string} name - Name of the security schema. - * @returns {SecurityScheme} - */ - securityScheme(name) { - return getMapValueOfType(this._json.securitySchemes, name, SecurityScheme); - } - - /** - * @returns {Object} - */ - servers() { - return createMapOfType(this._json.servers, Server); - } - - /** - * @returns {boolean} - */ - hasServers() { - return !!this._json.servers; - } - - /** - * @param {string} name - Name of the server. - * @returns {Server} - */ - server(name) { - return getMapValueOfType(this._json.servers, name, Server); - } - - /** - * @returns {Object} - */ - parameters() { - return createMapOfType(this._json.parameters, ChannelParameter); - } - - /** - * @returns {boolean} - */ - hasParameters() { - return !!this._json.parameters; - } - - /** - * @param {string} name - Name of the channel parameter. - * @returns {ChannelParameter} - */ - parameter(name) { - return getMapValueOfType(this._json.parameters, name, ChannelParameter); - } - - /** - * @returns {Object} - */ - correlationIds() { - return createMapOfType(this._json.correlationIds, CorrelationId); - } - - /** - * @returns {boolean} - */ - hasCorrelationIds() { - return !!this._json.correlationIds; - } - - /** - * @param {string} name - Name of the correlationId. - * @returns {CorrelationId} - */ - correlationId(name) { - return getMapValueOfType(this._json.correlationIds, name, CorrelationId); - } - - /** - * @returns {Object} - */ - operationTraits() { - return createMapOfType(this._json.operationTraits, OperationTrait); - } - - /** - * @returns {boolean} - */ - hasOperationTraits() { - return !!this._json.operationTraits; - } - - /** - * @param {string} name - Name of the operation trait. - * @returns {OperationTrait} - */ - operationTrait(name) { - return getMapValueOfType(this._json.operationTraits, name, OperationTrait); - } - - /** - * @returns {Object} - */ - messageTraits() { - return createMapOfType(this._json.messageTraits, MessageTrait); - } - - /** - * @returns {boolean} - */ - hasMessageTraits() { - return !!this._json.messageTraits; - } - - /** - * @param {string} name - Name of the message trait. - * @returns {MessageTrait} - */ - messageTrait(name) { - return getMapValueOfType(this._json.messageTraits, name, MessageTrait); - } -} - -module.exports = mix(Components, MixinSpecificationExtensions); diff --git a/lib/models/contact.js b/lib/models/contact.js deleted file mode 100644 index 2f479802d..000000000 --- a/lib/models/contact.js +++ /dev/null @@ -1,39 +0,0 @@ - -const { mix } = require('./utils'); - -const Base = require('./base'); - -const MixinSpecificationExtensions = require('../mixins/specification-extensions'); - -/** - * Implements functions to deal with the Contact object. - * @class - * @alias module:@asyncapi/parser#Contact - * @extends Base - * @mixes MixinSpecificationExtensions - * @returns {Contact} - */ -class Contact extends Base { - /** - * @returns {string} - */ - name() { - return this._json.name; - } - - /** - * @returns {string} - */ - url() { - return this._json.url; - } - - /** - * @returns {string} - */ - email() { - return this._json.email; - } -} - -module.exports = mix(Contact, MixinSpecificationExtensions); diff --git a/lib/models/correlation-id.js b/lib/models/correlation-id.js deleted file mode 100644 index f0a9f06cc..000000000 --- a/lib/models/correlation-id.js +++ /dev/null @@ -1,26 +0,0 @@ -const { mix } = require('./utils'); - -const Base = require('./base'); - -const MixinDescription = require('../mixins/description'); -const MixinSpecificationExtensions = require('../mixins/specification-extensions'); - -/** - * Implements functions to deal with a CorrelationId object. - * @class - * @alias module:@asyncapi/parser#CorrelationId - * @extends Base - * @mixes MixinDescription - * @mixes MixinSpecificationExtensions - * @returns {CorrelationId} - */ -class CorrelationId extends Base { - /** - * @returns {string} - */ - location() { - return this._json.location; - } -} - -module.exports = mix(CorrelationId, MixinSpecificationExtensions, MixinDescription); diff --git a/lib/models/external-docs.js b/lib/models/external-docs.js deleted file mode 100644 index dfaf3e31b..000000000 --- a/lib/models/external-docs.js +++ /dev/null @@ -1,26 +0,0 @@ -const { mix } = require('./utils'); - -const Base = require('./base'); - -const MixinDescription = require('../mixins/description'); -const MixinSpecificationExtensions = require('../mixins/specification-extensions'); - -/** - * Implements functions to deal with an ExternalDocs object. - * @class - * @alias module:@asyncapi/parser#ExternalDocs - * @extends Base - * @mixes MixinDescription - * @mixes MixinSpecificationExtensions - * @returns {ExternalDocs} - */ -class ExternalDocs extends Base { - /** - * @returns {string} - */ - url() { - return this._json.url; - } -} - -module.exports = mix(ExternalDocs, MixinDescription, MixinSpecificationExtensions); diff --git a/lib/models/info.js b/lib/models/info.js deleted file mode 100644 index 1b9108f66..000000000 --- a/lib/models/info.js +++ /dev/null @@ -1,58 +0,0 @@ -const { mix } = require('./utils'); - -const Base = require('./base'); -const License = require('./license'); -const Contact = require('./contact'); - -const MixinDescription = require('../mixins/description'); -const MixinSpecificationExtensions = require('../mixins/specification-extensions'); - -/** - * Implements functions to deal with the Info object. - * @class - * @alias module:@asyncapi/parser#Info - * @extends Base - * @mixes MixinDescription - * @mixes MixinSpecificationExtensions - * @returns {Info} - */ -class Info extends Base { - /** - * @returns {string} - */ - title() { - return this._json.title; - } - - /** - * @returns {string} - */ - version() { - return this._json.version; - } - - /** - * @returns {(string | undefined)} - */ - termsOfService() { - return this._json.termsOfService; - } - - /** - * @returns {License} - */ - license() { - if (!this._json.license) return null; - return new License(this._json.license); - } - - /** - * @returns {Contact} - */ - contact() { - if (!this._json.contact) return null; - return new Contact(this._json.contact); - } -} - -module.exports = mix(Info, MixinDescription, MixinSpecificationExtensions); diff --git a/lib/models/license.js b/lib/models/license.js deleted file mode 100644 index 2864caa84..000000000 --- a/lib/models/license.js +++ /dev/null @@ -1,31 +0,0 @@ -const { mix } = require('./utils'); - -const Base = require('./base'); - -const MixinSpecificationExtensions = require('../mixins/specification-extensions'); - -/** - * Implements functions to deal with the License object. - * @class - * @alias module:@asyncapi/parser#License - * @extends Base - * @mixes MixinSpecificationExtensions - * @returns {License} - */ -class License extends Base { - /** - * @returns {string} - */ - name() { - return this._json.name; - } - - /** - * @returns {string} - */ - url() { - return this._json.url; - } -} - -module.exports = mix(License, MixinSpecificationExtensions); diff --git a/lib/models/message-trait.js b/lib/models/message-trait.js deleted file mode 100644 index e0ee414a1..000000000 --- a/lib/models/message-trait.js +++ /dev/null @@ -1,13 +0,0 @@ -const MessageTraitable = require('./message-traitable'); - -/** - * Implements functions to deal with a MessageTrait object. - * @class - * @alias module:@asyncapi/parser#MessageTrait - * @extends MessageTraitable - * @returns {MessageTrait} - */ -class MessageTrait extends MessageTraitable { -} - -module.exports = MessageTrait; diff --git a/lib/models/message-traitable.js b/lib/models/message-traitable.js deleted file mode 100644 index 3b90a0f98..000000000 --- a/lib/models/message-traitable.js +++ /dev/null @@ -1,94 +0,0 @@ -const { getMapValueOfType, mix } = require('./utils'); - -const Base = require('./base'); -const Schema = require('./schema'); -const CorrelationId = require('./correlation-id'); - -const MixinDescription = require('../mixins/description'); -const MixinExternalDocs = require('../mixins/external-docs'); -const MixinTags = require('../mixins/tags'); -const MixinBindings = require('../mixins/bindings'); -const MixinSpecificationExtensions = require('../mixins/specification-extensions'); - -/** - * Implements functions to deal with a the common properties that Message and MessageTrait objects have. - * @class - * @alias module:@asyncapi/parser#MessageTraitable - * @extends Base - * @mixes MixinDescription - * @mixes MixinTags - * @mixes MixinExternalDocs - * @mixes MixinBindings - * @mixes MixinSpecificationExtensions - * @returns {MessageTraitable} - */ -class MessageTraitable extends Base { - /** - * @returns {Schema} - */ - headers() { - if (!this._json.headers) return null; - return new Schema(this._json.headers); - } - - /** - * @param {string} name - Name of the header. - * @returns {Schema} - */ - header(name) { - if (!this._json.headers) return null; - return getMapValueOfType(this._json.headers.properties, name, Schema); - } - - /** - * @returns {CorrelationId} - */ - correlationId() { - if (!this._json.correlationId) return null; - return new CorrelationId(this._json.correlationId); - } - - /** - * @returns {string} - */ - schemaFormat() { - return this._json.schemaFormat; - } - - /** - * @returns {string} - */ - contentType() { - return this._json.contentType; - } - - /** - * @returns {string} - */ - name() { - return this._json.name; - } - - /** - * @returns {string} - */ - title() { - return this._json.title; - } - - /** - * @returns {string} - */ - summary() { - return this._json.summary; - } - - /** - * @returns {any[]} - */ - examples() { - return this._json.examples; - } -} - -module.exports = mix(MessageTraitable, MixinDescription, MixinTags, MixinExternalDocs, MixinBindings, MixinSpecificationExtensions); diff --git a/lib/models/message.js b/lib/models/message.js deleted file mode 100644 index f985f0f9a..000000000 --- a/lib/models/message.js +++ /dev/null @@ -1,59 +0,0 @@ -const MessageTrait = require('./message-trait'); -const MessageTraitable = require('./message-traitable'); -const Schema = require('./schema'); - -/** - * Implements functions to deal with a Message object. - * @class - * @alias module:@asyncapi/parser#Message - * @extends MessageTraitable - * @returns {Message} - */ -class Message extends MessageTraitable { - /** - * @returns {string} - */ - uid() { - return this.name() || this.ext('x-parser-message-name') || Buffer.from(JSON.stringify(this._json)).toString('base64'); - } - - /** - * @returns {Schema} - */ - payload() { - if (!this._json.payload) return null; - return new Schema(this._json.payload); - } - - /** - * @returns {MessageTrait[]} - */ - traits() { - const traits = this._json['x-parser-original-traits'] || this._json.traits; - if (!traits) return []; - return traits.map(t => new MessageTrait(t)); - } - - /** - * @returns {boolean} - */ - hasTraits() { - return !!this._json['x-parser-original-traits'] || !!this._json.traits; - } - - /** - * @returns {any} - */ - originalPayload() { - return this._json['x-parser-original-payload'] || this.payload(); - } - - /** - * @returns {string} - */ - originalSchemaFormat() { - return this._json['x-parser-original-schema-format'] || this.schemaFormat(); - } -} - -module.exports = Message; diff --git a/lib/models/oauth-flow.js b/lib/models/oauth-flow.js deleted file mode 100644 index ba8821cf2..000000000 --- a/lib/models/oauth-flow.js +++ /dev/null @@ -1,45 +0,0 @@ -const { mix } = require('./utils'); - -const Base = require('./base'); - -const MixinSpecificationExtensions = require('../mixins/specification-extensions'); - -/** - * Implements functions to deal with a OAuthFlow object. - * @class - * @alias module:@asyncapi/parser#OAuthFlow - * @extends Base - * @mixes MixinSpecificationExtensions - * @returns {OAuthFlow} - */ -class OAuthFlow extends Base { - /** - * @returns {string} - */ - authorizationUrl() { - return this._json.authorizationUrl; - } - - /** - * @returns {string} - */ - tokenUrl() { - return this._json.tokenUrl; - } - - /** - * @returns {string} - */ - refreshUrl() { - return this._json.refreshUrl; - } - - /** - * @returns {Object} - */ - scopes() { - return this._json.scopes; - } -} - -module.exports = mix(OAuthFlow, MixinSpecificationExtensions); diff --git a/lib/models/operation-trait.js b/lib/models/operation-trait.js deleted file mode 100644 index 1bbc82375..000000000 --- a/lib/models/operation-trait.js +++ /dev/null @@ -1,13 +0,0 @@ -const OperationTraitable = require('./operation-traitable'); - -/** - * Implements functions to deal with a OperationTrait object. - * @class - * @alias module:@asyncapi/parser#OperationTrait - * @extends OperationTraitable - * @returns {OperationTrait} - */ -class OperationTrait extends OperationTraitable { -} - -module.exports = OperationTrait; diff --git a/lib/models/operation-traitable.js b/lib/models/operation-traitable.js deleted file mode 100644 index 3a36006b5..000000000 --- a/lib/models/operation-traitable.js +++ /dev/null @@ -1,39 +0,0 @@ -const { mix } = require('./utils'); - -const Base = require('./base'); - -const MixinDescription = require('../mixins/description'); -const MixinTags = require('../mixins/tags'); -const MixinExternalDocs = require('../mixins/external-docs'); -const MixinBindings = require('../mixins/bindings'); -const MixinSpecificationExtensions = require('../mixins/specification-extensions'); - -/** - * Implements functions to deal with the common properties Operation and OperationTrait object have. - * @class - * @alias module:@asyncapi/parser#OperationTraitable - * @extends Base - * @mixes MixinDescription - * @mixes MixinTags - * @mixes MixinExternalDocs - * @mixes MixinBindings - * @mixes MixinSpecificationExtensions - * @returns {OperationTraitable} - */ -class OperationTraitable extends Base { - /** - * @returns {string} - */ - id() { - return this._json.operationId; - } - - /** - * @returns {string} - */ - summary() { - return this._json.summary; - } -} - -module.exports = mix(OperationTraitable, MixinDescription, MixinTags, MixinExternalDocs, MixinBindings, MixinSpecificationExtensions); diff --git a/lib/models/operation.js b/lib/models/operation.js deleted file mode 100644 index 58f479ca0..000000000 --- a/lib/models/operation.js +++ /dev/null @@ -1,59 +0,0 @@ -const OperationTraitable = require('./operation-traitable'); -const Message = require('./message'); -const OperationTrait = require('./operation-trait'); - -/** - * Implements functions to deal with an Operation object. - * @class - * @alias module:@asyncapi/parser#Operation - * @extends OperationTraitable - * @returns {Operation} - */ -class Operation extends OperationTraitable { - /** - * @returns {boolean} - */ - hasMultipleMessages() { - if (this._json.message && this._json.message.oneOf && this._json.message.oneOf.length > 1) return true; - if (!this._json.message) return false; - return false; - } - - /** - * @returns {OperationTrait[]} - */ - traits() { - const traits = this._json['x-parser-original-traits'] || this._json.traits; - if (!traits) return []; - return traits.map(t => new OperationTrait(t)); - } - - /** - * @returns {boolean} - */ - hasTraits() { - return !!this._json['x-parser-original-traits'] || !!this._json.traits; - } - - /** - * @returns {Message[]} - */ - messages() { - if (!this._json.message) return []; - if (this._json.message.oneOf) return this._json.message.oneOf.map(m => new Message(m)); - return [new Message(this._json.message)]; - } - - /** - * @returns {Message} - */ - message(index) { - if (!this._json.message) return null; - if (!this._json.message.oneOf) return new Message(this._json.message); - if (typeof index !== 'number') return null; - if (index > this._json.message.oneOf.length - 1) return null; - return new Message(this._json.message.oneOf[+index]); - } -} - -module.exports = Operation; diff --git a/lib/models/publish-operation.js b/lib/models/publish-operation.js deleted file mode 100644 index 739c924a8..000000000 --- a/lib/models/publish-operation.js +++ /dev/null @@ -1,33 +0,0 @@ -const Operation = require('./operation'); - -/** - * Implements functions to deal with a PublishOperation object. - * @class - * @alias module:@asyncapi/parser#PublishOperation - * @extends Operation - * @returns {PublishOperation} - */ -class PublishOperation extends Operation { - /** - * @returns {boolean} - */ - isPublish() { - return true; - } - - /** - * @returns {boolean} - */ - isSubscribe() { - return false; - } - - /** - * @returns {string} - */ - kind() { - return 'publish'; - } -} - -module.exports = PublishOperation; diff --git a/lib/models/schema.js b/lib/models/schema.js deleted file mode 100644 index 58eab8cc2..000000000 --- a/lib/models/schema.js +++ /dev/null @@ -1,445 +0,0 @@ -const { createMapOfType, getMapValueOfType, mix } = require('./utils'); - -const Base = require('./base'); - -const {xParserCircle, xParserCircleProps} = require('../constants'); -const MixinDescription = require('../mixins/description'); -const MixinExternalDocs = require('../mixins/external-docs'); -const MixinSpecificationExtensions = require('../mixins/specification-extensions'); - -/** - * Implements functions to deal with a Schema object. - * @class - * @alias module:@asyncapi/parser#Schema - * @extends Base - * @mixes MixinDescription - * @mixes MixinExternalDocs - * @mixes MixinSpecificationExtensions - * @returns {Schema} - */ -class Schema extends Base { - /** - * Instantiates a schema object - * - * @constructor - * @param {any} json Schema definition - * @param {Object=} options - * @param {Schema=} options.parent Parent schema definition - */ - constructor(json, options) { - super(json); - this.options = options || {}; - } - - /** - * @returns {string} - */ - uid() { - return this.$id() || this.ext('x-parser-schema-id'); - } - - /** - * @returns {string} - */ - $id() { - return this._json.$id; - } - - /** - * @returns {number} - */ - multipleOf() { - return this._json.multipleOf; - } - - /** - * @returns {number} - */ - maximum() { - return this._json.maximum; - } - - /** - * @returns {number} - */ - exclusiveMaximum() { - return this._json.exclusiveMaximum; - } - - /** - * @returns {number} - */ - minimum() { - return this._json.minimum; - } - - /** - * @returns {number} - */ - exclusiveMinimum() { - return this._json.exclusiveMinimum; - } - - /** - * @returns {number} - */ - maxLength() { - return this._json.maxLength; - } - - /** - * @returns {number} - */ - minLength() { - return this._json.minLength; - } - - /** - * @returns {string} - */ - pattern() { - return this._json.pattern; - } - - /** - * @returns {number} - */ - maxItems() { - return this._json.maxItems; - } - - /** - * @returns {number} - */ - minItems() { - return this._json.minItems; - } - - /** - * @returns {boolean} - */ - uniqueItems() { - return !!this._json.uniqueItems; - } - - /** - * @returns {number} - */ - maxProperties() { - return this._json.maxProperties; - } - - /** - * @returns {number} - */ - minProperties() { - return this._json.minProperties; - } - - /** - * @returns {string[]} - */ - required() { - return this._json.required; - } - - /** - * @returns {any[]} - */ - enum() { - return this._json.enum; - } - - /** - * @returns {string|string[]} - */ - type() { - return this._json.type; - } - - /** - * @returns {Schema[]} - */ - allOf() { - if (!this._json.allOf) return null; - return this._json.allOf.map(s => new Schema(s, { parent: this })); - } - - /** - * @returns {Schema[]} - */ - oneOf() { - if (!this._json.oneOf) return null; - return this._json.oneOf.map(s => new Schema(s, { parent: this })); - } - - /** - * @returns {Schema[]} - */ - anyOf() { - if (!this._json.anyOf) return null; - return this._json.anyOf.map(s => new Schema(s, { parent: this })); - } - - /** - * @returns {Schema} - */ - not() { - if (!this._json.not) return null; - return new Schema(this._json.not, { parent: this }); - } - - /** - * @returns {Schema|Schema[]} - */ - items() { - if (!this._json.items) return null; - if (Array.isArray(this._json.items)) { - return this._json.items.map(s => new Schema(s, { parent: this })); - } - return new Schema(this._json.items, { parent: this }); - } - - /** - * @returns {Object} - */ - properties() { - return createMapOfType(this._json.properties, Schema, { parent: this }); - } - - /** - * @param {string} name - Name of the property. - * @returns {Schema} - */ - property(name) { - return getMapValueOfType(this._json.properties, name, Schema, { parent: this }); - } - - /** - * @returns {boolean|Schema} - */ - additionalProperties() { - const ap = this._json.additionalProperties; - if (ap === undefined || ap === null) return; - if (typeof ap === 'boolean') return ap; - return new Schema(ap, { parent: this }); - } - - /** - * @returns {Schema} - */ - additionalItems() { - const ai = this._json.additionalItems; - if (ai === undefined || ai === null) return; - return new Schema(ai, { parent: this }); - } - - /** - * @returns {Object} - */ - patternProperties() { - return createMapOfType(this._json.patternProperties, Schema, { parent: this }); - } - - /** - * @returns {any} - */ - const() { - return this._json.const; - } - - /** - * @returns {Schema} - */ - contains() { - if (!this._json.contains) return null; - return new Schema(this._json.contains, { parent: this }); - } - - /** - * @returns {Object} - */ - dependencies() { - if (!this._json.dependencies) return null; - const result = {}; - Object.entries(this._json.dependencies).forEach(([key, value]) => { - result[String(key)] = !Array.isArray(value) ? new Schema(value, { parent: this }) : value; - }); - return result; - } - - /** - * @returns {Schema} - */ - propertyNames() { - if (!this._json.propertyNames) return null; - return new Schema(this._json.propertyNames, { parent: this }); - } - - /** - * @returns {Schema} - */ - if() { - if (!this._json.if) return null; - return new Schema(this._json.if, { parent: this }); - } - - /** - * @returns {Schema} - */ - then() { - if (!this._json.then) return null; - return new Schema(this._json.then, { parent: this }); - } - - /** - * @returns {Schema} - */ - else() { - if (!this._json.else) return null; - return new Schema(this._json.else, { parent: this }); - } - - /** - * @returns {string} - */ - format() { - return this._json.format; - } - - /** - * @returns {string} - */ - contentEncoding() { - return this._json.contentEncoding; - } - - /** - * @returns {string} - */ - contentMediaType() { - return this._json.contentMediaType; - } - - /** - * @returns {Object} - */ - definitions() { - return createMapOfType(this._json.definitions, Schema, { parent: this }); - } - - /** - * @returns {string} - */ - title() { - return this._json.title; - } - - /** - * @returns {any} - */ - default() { - return this._json.default; - } - - /** - * @returns {boolean} - */ - deprecated() { - return this._json.deprecated; - } - - /** - * @returns {string} - */ - discriminator() { - return this._json.discriminator; - } - /** - * @returns {boolean} - */ - readOnly() { - return !!this._json.readOnly; - } - - /** - * @returns {boolean} - */ - writeOnly() { - return !!this._json.writeOnly; - } - - /** - * @returns {any[]} - */ - examples() { - return this._json.examples; - } - - /** - * @returns {boolean} - */ - isBooleanSchema() { - return typeof this._json === 'boolean'; - } - - /** - * @returns {boolean} - */ - isCircular() { - if (!!this.ext(xParserCircle)) { - return true; - } - - let parent = this.options.parent; - while (parent) { - if (parent._json === this._json) return true; - parent = parent.options && parent.options.parent; - } - return false; - } - - /** - * @returns {Schema} - */ - circularSchema() { - let parent = this.options.parent; - while (parent) { - if (parent._json === this._json) return parent; - parent = parent.options && parent.options.parent; - } - } - - /** - * @deprecated - * @returns {boolean} - */ - hasCircularProps() { - if (Array.isArray(this.ext(xParserCircleProps))) { - return this.ext(xParserCircleProps).length > 0; - } - return Object.entries(this.properties() || {}) - .map(([propertyName, property]) => { - if (property.isCircular()) return propertyName; - }) - .filter(Boolean) - .length > 0; - } - - /** - * @deprecated - * @returns {string[]} - */ - circularProps() { - if (Array.isArray(this.ext(xParserCircleProps))) { - return this.ext(xParserCircleProps); - } - return Object.entries(this.properties() || {}) - .map(([propertyName, property]) => { - if (property.isCircular()) return propertyName; - }) - .filter(Boolean); - } -} - -module.exports = mix(Schema, MixinDescription, MixinExternalDocs, MixinSpecificationExtensions); diff --git a/lib/models/security-scheme.js b/lib/models/security-scheme.js deleted file mode 100644 index b65c4a48d..000000000 --- a/lib/models/security-scheme.js +++ /dev/null @@ -1,69 +0,0 @@ -const { createMapOfType, mix } = require('./utils'); - -const Base = require('./base'); -const OAuthFlow = require('./oauth-flow'); - -const MixinDescription = require('../mixins/description'); -const MixinSpecificationExtensions = require('../mixins/specification-extensions'); - -/** - * Implements functions to deal with a SecurityScheme object. - * @class - * @alias module:@asyncapi/parser#SecurityScheme - * @extends Base - * @mixes MixinDescription - * @mixes MixinSpecificationExtensions - * @returns {SecurityScheme} - */ -class SecurityScheme extends Base { - /** - * @returns {string} - */ - type() { - return this._json.type; - } - - /** - * @returns {string} - */ - name() { - return this._json.name; - } - - /** - * @returns {string} - */ - in() { - return this._json.in; - } - - /** - * @returns {string} - */ - scheme() { - return this._json.scheme; - } - - /** - * @returns {string} - */ - bearerFormat() { - return this._json.bearerFormat; - } - - /** - * @returns {string} - */ - openIdConnectUrl() { - return this._json.openIdConnectUrl; - } - - /** - * @returns {Object} - */ - flows() { - return createMapOfType(this._json.flows, OAuthFlow); - } -} - -module.exports = mix(SecurityScheme, MixinDescription, MixinSpecificationExtensions); diff --git a/lib/models/server-security-requirement.js b/lib/models/server-security-requirement.js deleted file mode 100644 index ad5a2be4f..000000000 --- a/lib/models/server-security-requirement.js +++ /dev/null @@ -1,13 +0,0 @@ -const Base = require('./base'); - -/** - * Implements functions to deal with a ServerSecurityRequirement object. - * @class - * @alias module:@asyncapi/parser#ServerSecurityRequirement - * @extends Base - * @returns {ServerSecurityRequirement} - */ -class ServerSecurityRequirement extends Base { -} - -module.exports = ServerSecurityRequirement; diff --git a/lib/models/server-variable.js b/lib/models/server-variable.js deleted file mode 100644 index 386a3bd77..000000000 --- a/lib/models/server-variable.js +++ /dev/null @@ -1,63 +0,0 @@ -const { mix } = require('./utils'); - -const Base = require('./base'); - -const MixinDescription = require('../mixins/description'); -const MixinSpecificationExtensions = require('../mixins/specification-extensions'); - -/** - * Implements functions to deal with a ServerVariable object. - * @class - * @alias module:@asyncapi/parser#ServerVariable - * @extends Base - * @mixes MixinDescription - * @mixes MixinSpecificationExtensions - * @returns {ServerVariable} - */ -class ServerVariable extends Base { - /** - * @returns {any[]} - */ - allowedValues() { - return this._json.enum; - } - - /** - * @param {string} name - Name of the variable. - * @returns {boolean} - */ - allows(name) { - if (this._json.enum === undefined) return true; - return this._json.enum.includes(name); - } - - /** - * @returns {boolean} - */ - hasAllowedValues() { - return this._json.enum !== undefined; - } - - /** - * @returns {string} - */ - defaultValue() { - return this._json.default; - } - - /** - * @returns {boolean} - */ - hasDefaultValue() { - return this._json.default !== undefined; - } - - /** - * @returns {string[]} - */ - examples() { - return this._json.examples; - } -} - -module.exports = mix(ServerVariable, MixinDescription, MixinSpecificationExtensions); diff --git a/lib/models/server.js b/lib/models/server.js deleted file mode 100644 index 19e81a47d..000000000 --- a/lib/models/server.js +++ /dev/null @@ -1,74 +0,0 @@ -const { createMapOfType, getMapValueOfType, mix } = require('./utils'); - -const Base = require('./base'); -const ServerVariable = require('./server-variable'); -const ServerSecurityRequirement = require('./server-security-requirement'); - -const MixinDescription = require('../mixins/description'); -const MixinBindings = require('../mixins/bindings'); -const MixinSpecificationExtensions = require('../mixins/specification-extensions'); - -/** - * Implements functions to deal with a Server object. - * @class - * @alias module:@asyncapi/parser#Server - * @extends Base - * @mixes MixinDescription - * @mixes MixinBindings - * @mixes MixinSpecificationExtensions - * @returns {Server} - */ -class Server extends Base { - /** - * @returns {string} - */ - url() { - return this._json.url; - } - - /** - * @returns {string} - */ - protocol() { - return this._json.protocol; - } - - /** - * @returns {string} - */ - protocolVersion() { - return this._json.protocolVersion; - } - - /** - * @returns {Object} - */ - variables() { - return createMapOfType(this._json.variables, ServerVariable); - } - - /** - * @param {string} name - Name of the server variable. - * @returns {ServerVariable} - */ - variable(name) { - return getMapValueOfType(this._json.variables, name, ServerVariable); - } - - /** - * @returns {boolean} - */ - hasVariables() { - return !!this._json.variables; - } - - /** - * @returns {ServerSecurityRequirement[]} - */ - security() { - if (!this._json.security) return null; - return this._json.security.map(sec => new ServerSecurityRequirement(sec)); - } -} - -module.exports = mix(Server, MixinDescription, MixinBindings, MixinSpecificationExtensions); diff --git a/lib/models/subscribe-operation.js b/lib/models/subscribe-operation.js deleted file mode 100644 index a265bab89..000000000 --- a/lib/models/subscribe-operation.js +++ /dev/null @@ -1,33 +0,0 @@ -const Operation = require('./operation'); - -/** - * Implements functions to deal with a SubscribeOperation object. - * @class - * @alias module:@asyncapi/parser#SubscribeOperation - * @extends Operation - * @returns {SubscribeOperation} - */ -class SubscribeOperation extends Operation { - /** - * @returns {boolean} - */ - isPublish() { - return false; - } - - /** - * @returns {boolean} - */ - isSubscribe() { - return true; - } - - /** - * @returns {string} - */ - kind() { - return 'subscribe'; - } -} - -module.exports = SubscribeOperation; diff --git a/lib/models/tag.js b/lib/models/tag.js deleted file mode 100644 index 92b72968c..000000000 --- a/lib/models/tag.js +++ /dev/null @@ -1,28 +0,0 @@ -const { mix } = require('./utils'); - -const Base = require('./base'); - -const MixinDescription = require('../mixins/description'); -const MixinExternalDocs = require('../mixins/external-docs'); -const MixinSpecificationExtensions = require('../mixins/specification-extensions'); - -/** - * Implements functions to deal with a Tag object. - * @class - * @alias module:@asyncapi/parser#Tag - * @extends Base - * @mixes MixinDescription - * @mixes MixinExternalDocs - * @mixes MixinSpecificationExtensions - * @returns {Tag} - */ -class Tag extends Base { - /** - * @returns {string} - */ - name() { - return this._json.name; - } -} - -module.exports = mix(Tag, MixinDescription, MixinExternalDocs, MixinSpecificationExtensions); diff --git a/lib/models/utils.js b/lib/models/utils.js deleted file mode 100644 index 2d3f7af72..000000000 --- a/lib/models/utils.js +++ /dev/null @@ -1,76 +0,0 @@ -const utils = module.exports; - -const getMapValue = (obj, key, Type, options) => { - if (typeof key !== 'string' || !obj) return null; - const v = obj[String(key)]; - if (v === undefined) return null; - return Type ? new Type(v, options) : v; -}; - -/** - * Creates map of given type from object. - * @private - * @param {Object} obj - * @param {Any} Type - * @param {Object} options - */ -utils.createMapOfType = (obj, Type, options) => { - const result = {}; - if (!obj) return result; - - Object.entries(obj).forEach(([key, value]) => { - result[String(key)] = new Type(value, options); - }); - - return result; -}; - -/** - * Creates given type from value retrieved from object by key. - * @private - * @param {Object} obj - * @param {string} key - * @param {Any} Type - * @param {Object} options - */ -utils.getMapValueOfType = (obj, key, Type, options) => { - return getMapValue(obj, key, Type, options); -}; - -/** - * Retrieves value from object by key. - * @private - * @param {Object} obj - * @param {string} key - */ -utils.getMapValueByKey = (obj, key) => { - return getMapValue(obj, key); -}; - -/** - * Extends a given model with additional methods related to frequently recurring models. - * @function mix - * @private - * @param {Object} model model to extend - * @param {Array} mixins array with mixins to extend the model with - */ -utils.mix = (model, ...mixins) => { - let duplicatedMethods = false; - function checkDuplication(mixin) { - // check duplication of model in mixins array - if (model === mixin) return true; - // check duplication of model's methods - duplicatedMethods = Object.keys(mixin).some(mixinMethod => model.prototype.hasOwnProperty(mixinMethod)); - return duplicatedMethods; - } - - if (mixins.some(checkDuplication)) { - if (duplicatedMethods) { - throw new Error(`invalid mix function: model ${model.name} has at least one method that it is trying to replace by mixin`); - } else { - throw new Error(`invalid mix function: cannot use the model ${model.name} as a mixin`); - } - } - mixins.forEach(mixin => Object.assign(model.prototype, mixin)); - return model; -}; diff --git a/lib/parser.js b/lib/parser.js deleted file mode 100644 index f6176a423..000000000 --- a/lib/parser.js +++ /dev/null @@ -1,316 +0,0 @@ -const path = require('path'); -const fetch = require('node-fetch'); -const Ajv = require('ajv'); -const asyncapi = require('@asyncapi/specs'); -const $RefParser = require('@apidevtools/json-schema-ref-parser'); -const mergePatch = require('tiny-merge-patch').apply; -const ParserError = require('./errors/parser-error'); -const { validateChannels, validateTags, validateServerVariables, validateOperationId, validateServerSecurity } = require('./customValidators.js'); -const { toJS, findRefs, getLocationOf, improveAjvErrors, getDefaultSchemaFormat } = require('./utils'); -const AsyncAPIDocument = require('./models/asyncapi'); - -const OPERATIONS = ['publish', 'subscribe']; -//the only security types that can have a non empty array in the server security item -const SPECIAL_SECURITY_TYPES = ['oauth2', 'openIdConnect']; -const PARSERS = {}; -const xParserCircle = 'x-parser-circular'; -const xParserMessageParsed = 'x-parser-message-parsed'; - -const ajv = new Ajv({ - jsonPointers: true, - allErrors: true, - schemaId: 'id', - logger: false, -}); -ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-04.json')); - -/** - * @module @asyncapi/parser - */ -module.exports = { - parse, - parseFromUrl, - registerSchemaParser, - ParserError, - AsyncAPIDocument, -}; - -/** - * The complete list of parse configuration options used to parse the given data. - * @typedef {Object} ParserOptions - * @property {String=} path - Path to the AsyncAPI document. It will be used to resolve relative references. Defaults to current working dir. - * @property {Object=} parse - Options object to pass to {@link https://apidevtools.org/json-schema-ref-parser/docs/options.html|json-schema-ref-parser}. - * @property {Object=} resolve - Options object to pass to {@link https://apidevtools.org/json-schema-ref-parser/docs/options.html|json-schema-ref-parser}. - * @property {Boolean=} applyTraits - Whether to resolve and apply traits or not. Defaults to true. - */ - -/** - * Parses and validate an AsyncAPI document from YAML or JSON. - * - * @param {(String | Object)} asyncapiYAMLorJSON An AsyncAPI document in JSON or YAML format. - * @param {ParserOptions=} options Configuration options object {@link ParserOptions} - * @returns {Promise} The parsed AsyncAPI document. - */ -async function parse(asyncapiYAMLorJSON, options = {}) { - let parsedJSON; - let initialFormat; - - options.path = options.path || `${process.cwd()}${path.sep}`; - - try { - ({ initialFormat, parsedJSON } = toJS(asyncapiYAMLorJSON)); - - if (typeof parsedJSON !== 'object') { - throw new ParserError({ - type: 'impossible-to-convert-to-json', - title: 'Could not convert AsyncAPI to JSON.', - detail: 'Most probably the AsyncAPI document contains invalid YAML or YAML features not supported in JSON.' - }); - } - - if (!parsedJSON.asyncapi) { - throw new ParserError({ - type: 'missing-asyncapi-field', - title: 'The `asyncapi` field is missing.', - parsedJSON, - }); - } - - if (parsedJSON.asyncapi.startsWith('1.') || !asyncapi[parsedJSON.asyncapi]) { - throw new ParserError({ - type: 'unsupported-version', - title: `Version ${parsedJSON.asyncapi} is not supported.`, - detail: 'Please use latest version of the specification.', - parsedJSON, - validationErrors: [getLocationOf('/asyncapi', asyncapiYAMLorJSON, initialFormat)], - }); - } - - if (options.applyTraits === undefined) options.applyTraits = true; - - const refParser = new $RefParser; - //because of Ajv lacks support for circular refs, parser should not resolve them before Ajv validation and first needs to ignore them and leave circular $refs to successfully validate the document - //this is done pair to advice from Ajv creator https://github.com/ajv-validator/ajv/issues/1122#issuecomment-559378449 - //later we perform full dereference of circular refs if they occure - await dereference(refParser, parsedJSON, initialFormat, asyncapiYAMLorJSON, { ...options, dereference: { circular: 'ignore' } }); - - const validate = getValidator(parsedJSON.asyncapi); - const valid = validate(parsedJSON); - const errors = validate.errors && [...validate.errors]; - - if (!valid) throw new ParserError({ - type: 'validation-errors', - title: 'There were errors validating the AsyncAPI document.', - parsedJSON, - validationErrors: improveAjvErrors(errors, asyncapiYAMLorJSON, initialFormat), - }); - - await customDocumentOperations(parsedJSON, asyncapiYAMLorJSON, initialFormat, options); - if (refParser.$refs.circular) await handleCircularRefs(refParser, parsedJSON, initialFormat, asyncapiYAMLorJSON, options); - } catch (e) { - if (e instanceof ParserError) throw e; - throw new ParserError({ - type: 'unexpected-error', - title: e.message, - parsedJSON, - }); - } - - return new AsyncAPIDocument(parsedJSON); -} - -/** - * Fetches an AsyncAPI document from the given URL and passes its content to the `parse` method. - * - * @param {String} url URL where the AsyncAPI document is located. - * @param {Object=} [fetchOptions] Configuration to pass to the {@link https://developer.mozilla.org/en-US/docs/Web/API/Request|fetch} call. - * @param {ParserOptions=} [options] Configuration to pass to the {@link ParserOptions} method. - * @returns {Promise} The parsed AsyncAPI document. - */ -function parseFromUrl(url, fetchOptions, options) { - //Why not just addinga default to the arguments list? - //All function parameters with default values should be declared after the function parameters without default values. Otherwise, it makes it impossible for callers to take advantage of defaults; they must re-specify the defaulted values or pass undefined in order to "get to" the non-default parameters. - //To not break the API by changing argument position and to silet the linter it is just better to move adding - if (!fetchOptions) fetchOptions = {}; - - return new Promise((resolve, reject) => { - fetch(url, fetchOptions) - .then(res => res.text()) - .then(doc => parse(doc, options)) - .then(result => resolve(result)) - .catch(e => { - if (e instanceof ParserError) return reject(e); - return reject(new ParserError({ - type: 'fetch-url-error', - title: e.message, - })); - }); - }); -} - -async function dereference(refParser, parsedJSON, initialFormat, asyncapiYAMLorJSON, options) { - try { - return await refParser.dereference(options.path, parsedJSON, { - continueOnError: true, - parse: options.parse, - resolve: options.resolve, - dereference: options.dereference, - }); - } catch (err) { - throw new ParserError({ - type: 'dereference-error', - title: err.errors[0].message, - parsedJSON, - refs: findRefs(err.errors, initialFormat, asyncapiYAMLorJSON), - }); - } -} - -/* - * In case of circular refs, this function dereferences the spec again to dereference circular dependencies - * Special property is added to the document that indicates it contains circular refs -*/ -async function handleCircularRefs(refParser, parsedJSON, initialFormat, asyncapiYAMLorJSON, options) { - await dereference(refParser, parsedJSON, initialFormat, asyncapiYAMLorJSON, { ...options, dereference: { circular: true } }); - //mark entire document as containing circular references - parsedJSON[String(xParserCircle)] = true; -} - -/** - * Creates (or reuses) a function that validates an AsyncAPI document based on the passed AsyncAPI version. - * - * @private - * @param {Object} version AsyncAPI version. - * @returns {Function} Function that validates an AsyncAPI document based on the passed AsyncAPI version. - */ -function getValidator(version) { - let validate = ajv.getSchema(version); - if (!validate) { - ajv.addSchema(asyncapi[String(version)], version); - validate = ajv.getSchema(version); - } - return validate; -} - -async function customDocumentOperations(parsedJSON, asyncapiYAMLorJSON, initialFormat, options) { - validateServerVariables(parsedJSON, asyncapiYAMLorJSON, initialFormat); - validateServerSecurity(parsedJSON, asyncapiYAMLorJSON, initialFormat, SPECIAL_SECURITY_TYPES); - - if (!parsedJSON.channels) return; - - validateTags(parsedJSON, asyncapiYAMLorJSON, initialFormat); - validateChannels(parsedJSON, asyncapiYAMLorJSON, initialFormat); - validateOperationId(parsedJSON, asyncapiYAMLorJSON, initialFormat, OPERATIONS); - - await customComponentsMsgOperations(parsedJSON, asyncapiYAMLorJSON, initialFormat, options); - await customChannelsOperations(parsedJSON, asyncapiYAMLorJSON, initialFormat, options); -} - -async function validateAndConvertMessage(msg, originalAsyncAPIDocument, fileFormat, parsedAsyncAPIDocument, pathToPayload) { - //check if the message has been parsed before - if (xParserMessageParsed in msg && msg[String(xParserMessageParsed)] === true) return; - const defaultSchemaFormat = getDefaultSchemaFormat(parsedAsyncAPIDocument.asyncapi); - const schemaFormat = msg.schemaFormat || defaultSchemaFormat; - - await PARSERS[String(schemaFormat)]({ - schemaFormat, - message: msg, - defaultSchemaFormat, - originalAsyncAPIDocument, - parsedAsyncAPIDocument, - fileFormat, - pathToPayload - }); - - msg.schemaFormat = defaultSchemaFormat; - msg[String(xParserMessageParsed)] = true; -} - -/** - * Registers a new schema parser. Schema parsers are in charge of parsing and transforming payloads to AsyncAPI Schema format. - * - * @param {Object} parserModule The schema parser module containing parse() and getMimeTypes() functions. - */ -function registerSchemaParser(parserModule) { - if (typeof parserModule !== 'object' - || typeof parserModule.parse !== 'function' - || typeof parserModule.getMimeTypes !== 'function') - throw new ParserError({ - type: 'impossible-to-register-parser', - title: 'parserModule must have parse() and getMimeTypes() functions.' - }); - - parserModule.getMimeTypes().forEach((schemaFormat) => { - PARSERS[String(schemaFormat)] = parserModule.parse; - }); -} - -function applyTraits(js) { - if (Array.isArray(js.traits)) { - for (const trait of js.traits) { - for (const key in trait) { - js[String(key)] = mergePatch(js[String(key)], trait[String(key)]); - } - } - - js['x-parser-original-traits'] = js.traits; - delete js.traits; - } -} - -/** - * Triggers additional operations on the AsyncAPI channels like traits application or message validation and conversion - * - * @private - * - * @param {Object} parsedJSON parsed AsyncAPI document - * @param {String} asyncapiYAMLorJSON AsyncAPI document in string - * @param {String} initialFormat information of the document was originally JSON or YAML - * @param {ParserOptions} options Configuration options. {@link ParserOptions} - */ -async function customChannelsOperations(parsedJSON, asyncapiYAMLorJSON, initialFormat, options) { - const promisesArray = []; - Object.entries(parsedJSON.channels).forEach(([channelName, channel]) => { - promisesArray.push(...OPERATIONS.map(async (opName) => { - const op = channel[String(opName)]; - if (!op) return; - - const messages = op.message ? (op.message.oneOf || [op.message]) : []; - if (options.applyTraits) { - applyTraits(op); - messages.forEach(m => applyTraits(m)); - } - const pathToPayload = `/channels/${channelName}/${opName}/message/payload`; - for (const m of messages) { - await validateAndConvertMessage(m, asyncapiYAMLorJSON, initialFormat, parsedJSON, pathToPayload); - } - })); - }); - await Promise.all(promisesArray); -} - -/** - * Triggers additional operations on the AsyncAPI messages located in the components section of the document. It triggers operations like traits application, validation and conversion - * - * @private - * - * @param {Object} parsedJSON parsed AsyncAPI document - * @param {String} asyncapiYAMLorJSON AsyncAPI document in string - * @param {String} initialFormat information of the document was originally JSON or YAML - * @param {ParserOptions} options Configuration options. {@link ParserOptions} - */ -async function customComponentsMsgOperations(parsedJSON, asyncapiYAMLorJSON, initialFormat, options) { - if (!parsedJSON.components || !parsedJSON.components.messages) return; - - const promisesArray = []; - - Object.entries(parsedJSON.components.messages).forEach(([messageName, message]) => { - if (options.applyTraits) { - applyTraits(message); - } - const pathToPayload = `/components/messages/${messageName}/payload`; - promisesArray.push(validateAndConvertMessage(message, asyncapiYAMLorJSON, initialFormat, parsedJSON, pathToPayload)); - }); - - await Promise.all(promisesArray); -} diff --git a/lib/utils.js b/lib/utils.js deleted file mode 100644 index 0faf2e0c0..000000000 --- a/lib/utils.js +++ /dev/null @@ -1,322 +0,0 @@ -const YAML = require('js-yaml'); -const { yamlAST, loc } = require('@fmvilas/pseudo-yaml-ast'); -const jsonAST = require('json-to-ast'); -const jsonParseBetterErrors = require('../lib/json-parse'); -const ParserError = require('./errors/parser-error'); - -const jsonPointerToArray = jsonPointer => (jsonPointer || '/').split('/').splice(1); - -const utils = module.exports; - -const getAST = (asyncapiYAMLorJSON, initialFormat) => { - if (initialFormat === 'yaml') { - return yamlAST(asyncapiYAMLorJSON); - } else if (initialFormat === 'json') { - return jsonAST(asyncapiYAMLorJSON); - } -}; - -const findNode = (obj, location) => { - for (const key of location) { - obj = obj ? obj[utils.untilde(key)] : null; - } - return obj; -}; - -const findNodeInAST = (ast, location) => { - let obj = ast; - for (const key of location) { - if (!Array.isArray(obj.children)) return; - let childArray; - - const child = obj.children.find(c => { - if (!c) return; - - if (c.type === 'Object') return childArray = c.children.find(a => a.key.value === utils.untilde(key)); - return c.type === 'Property' && c.key && c.key.value === utils.untilde(key); - }); - - if (!child) return; - obj = childArray ? childArray.value : child.value; - } - return obj; -}; - -const findLocationOf = (keys, ast, initialFormat) => { - if (initialFormat === 'js') return { jsonPointer: `/${keys.join('/')}` }; - - let node; - if (initialFormat === 'yaml') { - node = findNode(ast, keys); - } else if (initialFormat === 'json') { - node = findNodeInAST(ast, keys); - } - - if (!node) return { jsonPointer: `/${keys.join('/')}` }; - - let info; - if (initialFormat === 'yaml') { - // disable eslint because loc is a Symbol - // eslint-disable-next-line security/detect-object-injection - info = node[loc]; - } else if (initialFormat === 'json') { - info = node.loc; - } - - if (!info) return { jsonPointer: `/${keys.join('/')}` }; - - return { - jsonPointer: `/${keys.join('/')}`, - startLine: info.start.line, - startColumn: info.start.column + 1, - startOffset: info.start.offset, - endLine: info.end ? info.end.line : undefined, - endColumn: info.end ? info.end.column + 1 : undefined, - endOffset: info.end ? info.end.offset : undefined, - }; -}; - -utils.tilde = (str) => { - return str.replace(/[~\/]{1}/g, (m) => { - switch (m) { - case '/': return '~1'; - case '~': return '~0'; - } - return m; - }); -}; - -utils.untilde = (str) => { - if (!str.includes('~')) return str; - return str.replace(/~[01]/g, (m) => { - switch (m) { - case '~1': return '/'; - case '~0': return '~'; - } - return m; - }); -}; - -utils.toJS = (asyncapiYAMLorJSON) => { - if (!asyncapiYAMLorJSON) { - throw new ParserError({ - type: 'null-or-falsey-document', - title: 'Document can\'t be null or falsey.', - }); - } - - if (asyncapiYAMLorJSON.constructor && asyncapiYAMLorJSON.constructor.name === 'Object') { - return { - initialFormat: 'js', - parsedJSON: asyncapiYAMLorJSON, - }; - } - - if (typeof asyncapiYAMLorJSON !== 'string') { - throw new ParserError({ - type: 'invalid-document-type', - title: 'The AsyncAPI document has to be either a string or a JS object.', - }); - } - if (asyncapiYAMLorJSON.trimLeft().startsWith('{')) { - try { - return { - initialFormat: 'json', - parsedJSON: jsonParseBetterErrors(asyncapiYAMLorJSON), - }; - } catch (e) { - throw new ParserError({ - type: 'invalid-json', - title: 'The provided JSON is not valid.', - detail: e.message, - location: { - startOffset: e.offset, - startLine: e.startLine, - startColumn: e.startColumn, - }, - }); - } - } else { - try { - return { - initialFormat: 'yaml', - parsedJSON: YAML.safeLoad(asyncapiYAMLorJSON), - }; - } catch (err) { - throw new ParserError({ - type: 'invalid-yaml', - title: 'The provided YAML is not valid.', - detail: err.message, - location: { - startOffset: err.mark.position, - startLine: err.mark.line + 1, - startColumn: err.mark.column + 1, - }, - }); - } - } -}; - -utils.findRefs = (errors, initialFormat, asyncapiYAMLorJSON) => { - let refs = []; - - errors.map(({ path }) => refs.push({ location: [...path.map(utils.tilde), '$ref'] })); - - if (initialFormat === 'js') { - return refs.map(ref => ({ jsonPointer: `/${ref.location.join('/')}` })); - } - - if (initialFormat === 'yaml') { - const pseudoAST = yamlAST(asyncapiYAMLorJSON); - refs = refs.map(ref => findLocationOf(ref.location, pseudoAST, initialFormat)); - } else if (initialFormat === 'json') { - const ast = jsonAST(asyncapiYAMLorJSON); - refs = refs.map(ref => findLocationOf(ref.location, ast, initialFormat)); - } - - return refs; -}; - -utils.getLocationOf = (jsonPointer, asyncapiYAMLorJSON, initialFormat) => { - const ast = getAST(asyncapiYAMLorJSON, initialFormat); - if (!ast) return { jsonPointer }; - - return findLocationOf(jsonPointerToArray(jsonPointer), ast, initialFormat); -}; - -utils.improveAjvErrors = (errors, asyncapiYAMLorJSON, initialFormat) => { - const ast = getAST(asyncapiYAMLorJSON, initialFormat); - return errors.map(error => { - const defaultLocation = { jsonPointer: error.dataPath || '/' }; - const additionalProperty = error.params.additionalProperty; - const jsonPointer = additionalProperty ? `${error.dataPath}/${additionalProperty}`: error.dataPath; - return { - title: `${error.dataPath || '/'} ${error.message}`, - location: ast ? findLocationOf(jsonPointerToArray(jsonPointer), ast, initialFormat) : defaultLocation, - }; - }); -}; - -/** - * It parses the string and returns an array with all values that are between curly braces, including braces - * @function parseUrlVariables - * @private - */ -utils.parseUrlVariables = str => { - if (typeof str !== 'string') return; - - return str.match(/{(.+?)}/g); -}; - -/** - * It parses the string and returns url parameters as string - * @function parseUrlQueryParameters - * @private - */ -utils.parseUrlQueryParameters = str => { - if (typeof str !== 'string') return; - - return str.match(/\?((.*=.*)(&?))/g); -}; - -/** - * Returns an array of not existing properties in provided object with names specified in provided array - * @function getMissingProps - * @private - */ -utils.getMissingProps = (arr, obj) => { - arr = arr.map(val => val.replace(/[{}]/g, '')); - - if (!obj) return arr; - - return arr.filter(val => { - return !obj.hasOwnProperty(val); - }); -}; - -/** - * Returns array of errors messages compatible with validationErrors parameter from ParserError - * - * @function groupValidationErrors - * @private - * @param {String} root name of the root element in the AsyncAPI document, for example channels - * @param {String} errorMessage the text of the custom error message that will follow the path that points the error - * @param {Map} errorElements map of error elements cause the validation error might happen in many places in the document. - * The key should have a path information where the error was found, the value holds information about error element but it is not mandatory - * @param {String} asyncapiYAMLorJSON AsyncAPI document in string - * @param {String} initialFormat information of the document was oryginally JSON or YAML - * @returns {Array} Object has always 2 keys, title and location. Title is a combination of errorElement key + errorMessage + errorElement value. - * Location is the object with information about location of the issue in the file and json Pointer - */ -utils.groupValidationErrors = (root, errorMessage, errorElements, asyncapiYAMLorJSON, initialFormat) => { - const errors = []; - - errorElements.forEach((val, key) => { - if (typeof val === 'string') val = utils.untilde(val); - - const jsonPointer = root ? `/${root}/${key}` : `/${key}`; - errors.push({ - title: val ? `${ utils.untilde(key) } ${errorMessage}: ${val}` : `${ utils.untilde(key) } ${errorMessage}`, - location: utils.getLocationOf(jsonPointer, asyncapiYAMLorJSON, initialFormat) - }); - }); - - return errors; -}; - -/** - * extend map with channel params missing corresponding param object - * - * @function setNotProvidedParams - * @private - * @param {Array} variables array of all identified URL variables in a channel name - * @param {Object} val the channel object for which to identify the missing parameters - * @param {String} key the channel name. - * @param {Array} notProvidedChannelParams concatinated list of missing parameters for all channels - * @param {Map} notProvidedParams result map of all missing parameters extended by this function - */ -utils.setNotProvidedParams = (variables, val, key, notProvidedChannelParams, notProvidedParams) => { - const missingChannelParams = utils.getMissingProps(variables, val.parameters); - - if (missingChannelParams.length) { - notProvidedParams.set(utils.tilde(key), - notProvidedChannelParams - ? notProvidedChannelParams.concat(missingChannelParams) - : missingChannelParams); - } -}; - -/** - * Returns an array of server names listed in a channel's servers list that are not declared in the top-level servers object. - * - * @param {Map} parsedJSON the parsed AsyncAPI document, with potentially a top-level map of servers (keys are server names) - * @param {Object} channel the channel object for which to validate the servers list (array elements are server names) - * @private - */ -utils.getUnknownServers = (parsedJSON, channel) => { - // servers list on channel - if (!channel) return []; // no channel: no unknown servers - const channelServers = channel.servers; - if (!channelServers || channelServers.length === 0) return []; // no servers listed on channel: no unknown servers - - // top-level servers map - const servers = parsedJSON.servers; - if (!servers) return channelServers; // servers list on channel but no top-level servers: all servers are unknown - const serversMap = new Map(Object.entries(servers)); - - // retain only servers listed on channel that are not defined in the top-level servers map - return channelServers.filter(serverName => { - return !serversMap.has(serverName); - }); -}; - -/** - * returns default schema format for a given asyncapi version - * - * @function getDefaultSchemaFormat - * @private - * @param {String} asyncapiVersion AsyncAPI spec version. - */ -utils.getDefaultSchemaFormat = (asyncapiVersion) => { - return `application/vnd.aai.asyncapi;version=${asyncapiVersion}`; -}; diff --git a/package-lock.json b/package-lock.json index 36d8c2d2e..31e7d2b39 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,67 +1,27 @@ { "name": "@asyncapi/parser", - "version": "1.14.1", + "version": "2.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "1.14.1", + "version": "2.0.0", "license": "Apache-2.0", - "dependencies": { - "@apidevtools/json-schema-ref-parser": "^9.0.6", - "@asyncapi/specs": "^2.13.0", - "@fmvilas/pseudo-yaml-ast": "^0.3.1", - "ajv": "^6.10.1", - "js-yaml": "^3.13.1", - "json-to-ast": "^2.1.0", - "lodash.clonedeep": "^4.5.0", - "node-fetch": "^2.6.0", - "tiny-merge-patch": "^0.1.2" - }, "devDependencies": { "@semantic-release/commit-analyzer": "^8.0.1", "@semantic-release/github": "7.2.3", "@semantic-release/npm": "^7.0.3", "@semantic-release/release-notes-generator": "^9.0.1", - "browserify": "^16.3.0", - "browserify-shim": "^3.8.14", - "chai": "^4.2.0", - "chai-as-promised": "^7.1.1", "conventional-changelog-conventionalcommits": "^4.2.3", "eslint": "^7.27.0", "eslint-plugin-mocha": "^7.0.1", "eslint-plugin-security": "^1.4.0", "eslint-plugin-sonarjs": "^0.5.0", - "http-server": "^0.12.3", - "jsdoc-to-markdown": "^5.0.0", "markdown-toc": "^1.2.0", - "mocha": "^6.1.4", - "nyc": "^15.1.0", - "puppeteer": "^7.0.1", - "rimraf": "^3.0.2", - "semantic-release": "17.4.3", - "shx": "^0.3.3", - "start-server-and-test": "^1.11.3", - "tsd-jsdoc": "^2.5.0", - "uglify-es": "^3.3.9" - } - }, - "node_modules/@apidevtools/json-schema-ref-parser": { - "version": "9.0.6", - "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.6.tgz", - "integrity": "sha512-M3YgsLjI0lZxvrpeGVk9Ap032W6TPQkH6pRAZz81Ac3WUNF79VQooAFnp8umjvVzUmD93NkogxEwbSce7qMsUg==", - "dependencies": { - "@jsdevtools/ono": "^7.1.3", - "call-me-maybe": "^1.0.1", - "js-yaml": "^3.13.1" + "semantic-release": "17.4.3" } }, - "node_modules/@asyncapi/specs": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-2.13.0.tgz", - "integrity": "sha512-X0OrxJtzwRH8iLILO/gUTDqjGVPmagmdlgdyuBggYAoGXzF6ZuAws3XCLxtPNve5eA/0V/1puwpUYEGekI22og==" - }, "node_modules/@babel/code-frame": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", @@ -71,224 +31,12 @@ "@babel/highlight": "^7.8.3" } }, - "node_modules/@babel/core": { - "version": "7.10.2", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.10.2.tgz", - "integrity": "sha512-KQmV9yguEjQsXqyOUGKjS4+3K8/DlOCE2pZcq4augdQmtTy5iv5EHtmMSJ7V4c1BIPjuwtZYqYLCq9Ga+hGBRQ==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.10.1", - "@babel/generator": "^7.10.2", - "@babel/helper-module-transforms": "^7.10.1", - "@babel/helpers": "^7.10.1", - "@babel/parser": "^7.10.2", - "@babel/template": "^7.10.1", - "@babel/traverse": "^7.10.1", - "@babel/types": "^7.10.2", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.1", - "json5": "^2.1.2", - "lodash": "^4.17.13", - "resolve": "^1.3.2", - "semver": "^5.4.1", - "source-map": "^0.5.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/core/node_modules/@babel/code-frame": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", - "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.10.1" - } - }, - "node_modules/@babel/core/node_modules/@babel/helper-validator-identifier": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.1.tgz", - "integrity": "sha512-5vW/JXLALhczRCWP0PnFDMCJAchlBvM7f4uk/jXritBnIa6E1KmqmtrS3yn1LAnxFBypQ3eneLuXjsnfQsgILw==", - "dev": true - }, - "node_modules/@babel/core/node_modules/@babel/highlight": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", - "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.10.1", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "node_modules/@babel/core/node_modules/@babel/parser": { - "version": "7.10.2", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.2.tgz", - "integrity": "sha512-PApSXlNMJyB4JiGVhCOlzKIif+TKFTvu0aQAhnTvfP/z3vVSN6ZypH5bfUNwFXXjRQtUEBNFd2PtmCmG2Py3qQ==", - "dev": true, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/core/node_modules/convert-source-map": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", - "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.1.1" - } - }, - "node_modules/@babel/core/node_modules/source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@babel/generator": { - "version": "7.10.2", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.10.2.tgz", - "integrity": "sha512-AxfBNHNu99DTMvlUPlt1h2+Hn7knPpH5ayJ8OqDWSeLld+Fi2AYBTC/IejWDM9Edcii4UzZRCsbUt0WlSDsDsA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.10.2", - "jsesc": "^2.5.1", - "lodash": "^4.17.13", - "source-map": "^0.5.0" - } - }, - "node_modules/@babel/generator/node_modules/source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@babel/helper-function-name": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.1.tgz", - "integrity": "sha512-fcpumwhs3YyZ/ttd5Rz0xn0TpIwVkN7X0V38B9TWNfVF42KEkhkAAuPCQ3oXmtTRtiPJrmZ0TrfS0GKF0eMaRQ==", - "dev": true, - "dependencies": { - "@babel/helper-get-function-arity": "^7.10.1", - "@babel/template": "^7.10.1", - "@babel/types": "^7.10.1" - } - }, - "node_modules/@babel/helper-get-function-arity": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.1.tgz", - "integrity": "sha512-F5qdXkYGOQUb0hpRaPoetF9AnsXknKjWMZ+wmsIRsp5ge5sFh4c3h1eH2pRTTuy9KKAA2+TTYomGXAtEL2fQEw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.10.1" - } - }, - "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.10.1.tgz", - "integrity": "sha512-u7XLXeM2n50gb6PWJ9hoO5oO7JFPaZtrh35t8RqKLT1jFKj9IWeD1zrcrYp1q1qiZTdEarfDWfTIP8nGsu0h5g==", - "dev": true, - "dependencies": { - "@babel/types": "^7.10.1" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.10.1.tgz", - "integrity": "sha512-SFxgwYmZ3HZPyZwJRiVNLRHWuW2OgE5k2nrVs6D9Iv4PPnXVffuEHy83Sfx/l4SqF+5kyJXjAyUmrG7tNm+qVg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.10.1" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.10.1.tgz", - "integrity": "sha512-RLHRCAzyJe7Q7sF4oy2cB+kRnU4wDZY/H2xJFGof+M+SJEGhZsb+GFj5j1AD8NiSaVBJ+Pf0/WObiXu/zxWpFg==", - "dev": true, - "dependencies": { - "@babel/helper-module-imports": "^7.10.1", - "@babel/helper-replace-supers": "^7.10.1", - "@babel/helper-simple-access": "^7.10.1", - "@babel/helper-split-export-declaration": "^7.10.1", - "@babel/template": "^7.10.1", - "@babel/types": "^7.10.1", - "lodash": "^4.17.13" - } - }, - "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.10.1.tgz", - "integrity": "sha512-a0DjNS1prnBsoKx83dP2falChcs7p3i8VMzdrSbfLhuQra/2ENC4sbri34dz/rWmDADsmF1q5GbfaXydh0Jbjg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.10.1" - } - }, - "node_modules/@babel/helper-replace-supers": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.10.1.tgz", - "integrity": "sha512-SOwJzEfpuQwInzzQJGjGaiG578UYmyi2Xw668klPWV5n07B73S0a9btjLk/52Mlcxa+5AdIYqws1KyXRfMoB7A==", - "dev": true, - "dependencies": { - "@babel/helper-member-expression-to-functions": "^7.10.1", - "@babel/helper-optimise-call-expression": "^7.10.1", - "@babel/traverse": "^7.10.1", - "@babel/types": "^7.10.1" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.10.1.tgz", - "integrity": "sha512-VSWpWzRzn9VtgMJBIWTZ+GP107kZdQ4YplJlCmIrjoLVSi/0upixezHCDG8kpPVTBJpKfxTH01wDhh+jS2zKbw==", - "dev": true, - "dependencies": { - "@babel/template": "^7.10.1", - "@babel/types": "^7.10.1" - } - }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.10.1.tgz", - "integrity": "sha512-UQ1LVBPrYdbchNhLwj6fetj46BcFwfS4NllJo/1aJsT+1dLTEnXJL0qHqtY7gPzF8S2fXBJamf1biAXV3X077g==", - "dev": true, - "dependencies": { - "@babel/types": "^7.10.1" - } - }, "node_modules/@babel/helper-validator-identifier": { "version": "7.9.5", "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.5.tgz", "integrity": "sha512-/8arLKUFq882w4tWGj9JYzRpAlZgiWUJ+dtteNTDqrRBz9Iguck9Rn3ykuBDoUwh2TO4tSAJlrxDUOXWklJe4g==", "dev": true }, - "node_modules/@babel/helpers": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.10.1.tgz", - "integrity": "sha512-muQNHF+IdU6wGgkaJyhhEmI54MOZBKsFfsXFhboz1ybwJ1Kl7IHlbm2a++4jwrmY5UYsgitt5lfqo1wMFcHmyw==", - "dev": true, - "dependencies": { - "@babel/template": "^7.10.1", - "@babel/traverse": "^7.10.1", - "@babel/types": "^7.10.1" - } - }, "node_modules/@babel/highlight": { "version": "7.9.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz", @@ -300,148 +48,6 @@ "js-tokens": "^4.0.0" } }, - "node_modules/@babel/parser": { - "version": "7.9.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.9.4.tgz", - "integrity": "sha512-bC49otXX6N0/VYhgOMh4gnP26E9xnDZK3TmbNpxYzzz9BQLBosQwfyOe9/cXUU3txYhTzLCbcqd5c8y/OmCjHA==", - "dev": true, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/template": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.1.tgz", - "integrity": "sha512-OQDg6SqvFSsc9A0ej6SKINWrpJiNonRIniYondK2ViKhB06i3c0s+76XUft71iqBEe9S1OKsHwPAjfHnuvnCig==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.10.1", - "@babel/parser": "^7.10.1", - "@babel/types": "^7.10.1" - } - }, - "node_modules/@babel/template/node_modules/@babel/code-frame": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", - "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.10.1" - } - }, - "node_modules/@babel/template/node_modules/@babel/helper-validator-identifier": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.1.tgz", - "integrity": "sha512-5vW/JXLALhczRCWP0PnFDMCJAchlBvM7f4uk/jXritBnIa6E1KmqmtrS3yn1LAnxFBypQ3eneLuXjsnfQsgILw==", - "dev": true - }, - "node_modules/@babel/template/node_modules/@babel/highlight": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", - "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.10.1", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "node_modules/@babel/template/node_modules/@babel/parser": { - "version": "7.10.2", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.2.tgz", - "integrity": "sha512-PApSXlNMJyB4JiGVhCOlzKIif+TKFTvu0aQAhnTvfP/z3vVSN6ZypH5bfUNwFXXjRQtUEBNFd2PtmCmG2Py3qQ==", - "dev": true, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.10.1.tgz", - "integrity": "sha512-C/cTuXeKt85K+p08jN6vMDz8vSV0vZcI0wmQ36o6mjbuo++kPMdpOYw23W2XH04dbRt9/nMEfA4W3eR21CD+TQ==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.10.1", - "@babel/generator": "^7.10.1", - "@babel/helper-function-name": "^7.10.1", - "@babel/helper-split-export-declaration": "^7.10.1", - "@babel/parser": "^7.10.1", - "@babel/types": "^7.10.1", - "debug": "^4.1.0", - "globals": "^11.1.0", - "lodash": "^4.17.13" - } - }, - "node_modules/@babel/traverse/node_modules/@babel/code-frame": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", - "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.10.1" - } - }, - "node_modules/@babel/traverse/node_modules/@babel/helper-validator-identifier": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.1.tgz", - "integrity": "sha512-5vW/JXLALhczRCWP0PnFDMCJAchlBvM7f4uk/jXritBnIa6E1KmqmtrS3yn1LAnxFBypQ3eneLuXjsnfQsgILw==", - "dev": true - }, - "node_modules/@babel/traverse/node_modules/@babel/highlight": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", - "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.10.1", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "node_modules/@babel/traverse/node_modules/@babel/parser": { - "version": "7.10.2", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.2.tgz", - "integrity": "sha512-PApSXlNMJyB4JiGVhCOlzKIif+TKFTvu0aQAhnTvfP/z3vVSN6ZypH5bfUNwFXXjRQtUEBNFd2PtmCmG2Py3qQ==", - "dev": true, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/traverse/node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/types": { - "version": "7.10.2", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", - "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.10.1", - "lodash": "^4.17.13", - "to-fast-properties": "^2.0.0" - } - }, - "node_modules/@babel/types/node_modules/@babel/helper-validator-identifier": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.1.tgz", - "integrity": "sha512-5vW/JXLALhczRCWP0PnFDMCJAchlBvM7f4uk/jXritBnIa6E1KmqmtrS3yn1LAnxFBypQ3eneLuXjsnfQsgILw==", - "dev": true - }, "node_modules/@eslint/eslintrc": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.1.tgz", @@ -523,225 +129,69 @@ "node": ">=8" } }, - "node_modules/@fmvilas/pseudo-yaml-ast": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@fmvilas/pseudo-yaml-ast/-/pseudo-yaml-ast-0.3.1.tgz", - "integrity": "sha512-8OAB74W2a9M3k9bjYD8AjVXkX+qO8c0SqNT5HlgOqx7AxSw8xdksEcZp7gFtfi+4njSxT6+76ZR+1ubjAwQHOg==", - "dependencies": { - "yaml-ast-parser": "0.0.43" - } - }, - "node_modules/@hapi/address": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@hapi/address/-/address-4.1.0.tgz", - "integrity": "sha512-SkszZf13HVgGmChdHo/PxchnSaCJ6cetVqLzyciudzZRT0jcOouIF/Q93mgjw8cce+D+4F4C1Z/WrfFN+O3VHQ==", - "deprecated": "Moved to 'npm install @sideway/address'", - "dev": true, - "dependencies": { - "@hapi/hoek": "^9.0.0" - } - }, - "node_modules/@hapi/formula": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@hapi/formula/-/formula-2.0.0.tgz", - "integrity": "sha512-V87P8fv7PI0LH7LiVi8Lkf3x+KCO7pQozXRssAHNXXL9L1K+uyu4XypLXwxqVDKgyQai6qj3/KteNlrqDx4W5A==", - "deprecated": "Moved to 'npm install @sideway/formula'", - "dev": true - }, - "node_modules/@hapi/hoek": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.0.4.tgz", - "integrity": "sha512-EwaJS7RjoXUZ2cXXKZZxZqieGtc7RbvQhUy8FwDoMQtxWVi14tFjeFCYPZAM1mBCpOpiBpyaZbb9NeHc7eGKgw==", - "dev": true - }, - "node_modules/@hapi/pinpoint": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@hapi/pinpoint/-/pinpoint-2.0.0.tgz", - "integrity": "sha512-vzXR5MY7n4XeIvLpfl3HtE3coZYO4raKXW766R6DZw/6aLqR26iuZ109K7a0NtF2Db0jxqh7xz2AxkUwpUFybw==", - "deprecated": "Moved to 'npm install @sideway/pinpoint'", - "dev": true - }, - "node_modules/@hapi/topo": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.0.0.tgz", - "integrity": "sha512-tFJlT47db0kMqVm3H4nQYgn6Pwg10GTZHb1pwmSiv1K4ks6drQOtfEF5ZnPjkvC+y4/bUPHK+bc87QvLcL+WMw==", - "dev": true, - "dependencies": { - "@hapi/hoek": "^9.0.0" - } - }, - "node_modules/@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz", + "integrity": "sha512-33g3pMJk3bg5nXbL/+CY6I2eJDzZAni49PfJnL5fghPTggPvBd/pFNSgJsdAgWptuFu7qq/ERvOYFlhvsLTCKA==", "dev": true, "dependencies": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" + "@nodelib/fs.stat": "2.0.4", + "run-parallel": "^1.1.9" }, "engines": { - "node": ">=8" + "node": ">= 8" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "node_modules/@nodelib/fs.stat": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.4.tgz", + "integrity": "sha512-IYlHJA0clt2+Vg7bccq+TzRdJvv19c2INqBSsoOLp1je7xjtr7J26+WXR72MCdvU9q1qTzIWDfhMf+DRvQJK4Q==", "dev": true, "engines": { - "node": ">=6" + "node": ">= 8" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "node_modules/@nodelib/fs.walk": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.6.tgz", + "integrity": "sha512-8Broas6vTtW4GIXTAHDoE32hnN2M5ykgCpWGbuXHQ15vEMqr23pB76e/GZcYsZCHALv50ktd24qhEyKr6wBtow==", "dev": true, "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" + "@nodelib/fs.scandir": "2.1.4", + "fastq": "^1.6.0" }, "engines": { - "node": ">=8" + "node": ">= 8" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "node_modules/@octokit/auth-token": { + "version": "2.4.5", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.5.tgz", + "integrity": "sha512-BpGYsPgJt05M7/L/5FoE1PiAbdxXFZkX/3kDYcsvd1v6UhlnE5e96dTDr0ezX/EFwciQxf3cNV0loipsURU+WA==", "dev": true, "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" + "@octokit/types": "^6.0.3" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "node_modules/@octokit/core": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.4.0.tgz", + "integrity": "sha512-6/vlKPP8NF17cgYXqucdshWqmMZGXkuvtcrWCgU5NOI0Pl2GjlmZyWgBMrU8zJ3v2MJlM6++CiB45VKYmhiWWg==", "dev": true, "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "@octokit/auth-token": "^2.4.4", + "@octokit/graphql": "^4.5.8", + "@octokit/request": "^5.4.12", + "@octokit/request-error": "^2.0.5", + "@octokit/types": "^6.0.3", + "before-after-hook": "^2.2.0", + "universal-user-agent": "^6.0.0" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz", - "integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jsdevtools/ono": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz", - "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==" - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz", - "integrity": "sha512-33g3pMJk3bg5nXbL/+CY6I2eJDzZAni49PfJnL5fghPTggPvBd/pFNSgJsdAgWptuFu7qq/ERvOYFlhvsLTCKA==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "2.0.4", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.4.tgz", - "integrity": "sha512-IYlHJA0clt2+Vg7bccq+TzRdJvv19c2INqBSsoOLp1je7xjtr7J26+WXR72MCdvU9q1qTzIWDfhMf+DRvQJK4Q==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.6.tgz", - "integrity": "sha512-8Broas6vTtW4GIXTAHDoE32hnN2M5ykgCpWGbuXHQ15vEMqr23pB76e/GZcYsZCHALv50ktd24qhEyKr6wBtow==", - "dev": true, - "dependencies": { - "@nodelib/fs.scandir": "2.1.4", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@octokit/auth-token": { - "version": "2.4.5", - "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.5.tgz", - "integrity": "sha512-BpGYsPgJt05M7/L/5FoE1PiAbdxXFZkX/3kDYcsvd1v6UhlnE5e96dTDr0ezX/EFwciQxf3cNV0loipsURU+WA==", - "dev": true, - "dependencies": { - "@octokit/types": "^6.0.3" - } - }, - "node_modules/@octokit/core": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.4.0.tgz", - "integrity": "sha512-6/vlKPP8NF17cgYXqucdshWqmMZGXkuvtcrWCgU5NOI0Pl2GjlmZyWgBMrU8zJ3v2MJlM6++CiB45VKYmhiWWg==", - "dev": true, - "dependencies": { - "@octokit/auth-token": "^2.4.4", - "@octokit/graphql": "^4.5.8", - "@octokit/request": "^5.4.12", - "@octokit/request-error": "^2.0.5", - "@octokit/types": "^6.0.3", - "before-after-hook": "^2.2.0", - "universal-user-agent": "^6.0.0" - } - }, - "node_modules/@octokit/endpoint": { - "version": "6.0.11", - "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.11.tgz", - "integrity": "sha512-fUIPpx+pZyoLW4GCs3yMnlj2LfoXTWDUVPTC4V3MUEKZm48W+XYpeWSZCv+vYF1ZABUm2CqnDVf1sFtIYrj7KQ==", + "node_modules/@octokit/endpoint": { + "version": "6.0.11", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.11.tgz", + "integrity": "sha512-fUIPpx+pZyoLW4GCs3yMnlj2LfoXTWDUVPTC4V3MUEKZm48W+XYpeWSZCv+vYF1ZABUm2CqnDVf1sFtIYrj7KQ==", "dev": true, "dependencies": { "@octokit/types": "^6.0.3", @@ -1210,19 +660,6 @@ "node": ">= 6" } }, - "node_modules/@types/color-name": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", - "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", - "dev": true - }, - "node_modules/@types/node": { - "version": "13.13.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.0.tgz", - "integrity": "sha512-WE4IOAC6r/yBZss1oQGM5zs2D7RuKR6Q+w+X2SouPofnWn+LbCqClRyhO3ZE7Ix8nmFgo/oVuuE01cJT2XB13A==", - "dev": true, - "optional": true - }, "node_modules/@types/normalize-package-data": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", @@ -1241,38 +678,12 @@ "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", "dev": true }, - "node_modules/@types/yauzl": { - "version": "2.9.1", - "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.1.tgz", - "integrity": "sha512-A1b8SU4D10uoPjwb0lnHmmu8wZhR9d+9o2PKBQT2jU5YPTKsxac6M2qGAdY7VcL+dHHhARVUDmeg0rOrcd9EjA==", - "dev": true, - "optional": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/accessory": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/accessory/-/accessory-1.1.0.tgz", - "integrity": "sha1-eDPpg5oy3tdtJgIfNqQXB6Ug9ZM=", - "dev": true, - "dependencies": { - "ap": "~0.2.0", - "balanced-match": "~0.2.0", - "dot-parts": "~1.0.0" - } - }, - "node_modules/accessory/node_modules/balanced-match": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.2.1.tgz", - "integrity": "sha1-e8ZYtL7WHu5CStdPdfXD4sTfPMc=", - "dev": true - }, "node_modules/acorn": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.1.tgz", "integrity": "sha512-add7dgA5ppRPxCFJoAGfMDi7PIBXq1RtGo7BhbLaxwrXPOmw8gq48Y9ozT01hUKy9byMjlR20EJhu5zlkErEkg==", "dev": true, + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -1289,26 +700,6 @@ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/acorn-node": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", - "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", - "dev": true, - "dependencies": { - "acorn": "^7.0.0", - "acorn-walk": "^7.0.0", - "xtend": "^4.0.2" - } - }, - "node_modules/acorn-walk": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.1.1.tgz", - "integrity": "sha512-wdlPY2tm/9XBr7QkKlq0WQVgiuGTX6YWPyRyBviSoScBuLfTVQhvwg6wJ369GJ/1nPfTLMfnrFIfjqVg6d+jQQ==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/agent-base": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.0.tgz", @@ -1347,6 +738,7 @@ "version": "6.12.3", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.3.tgz", "integrity": "sha512-4K0cK3L1hsqk9xIb2z9vs/XU+PGJZ9PNpJRDS9YLzmNdX6jmVPfamLvTJr0aDAusnHyCHO6MjzlkAsgtqp9teA==", + "dev": true, "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -1358,46 +750,6 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/amdefine": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", - "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", - "dev": true, - "optional": true, - "engines": { - "node": ">=0.4.2" - } - }, - "node_modules/ansi-colors": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz", - "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/ansi-escape-sequences": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-escape-sequences/-/ansi-escape-sequences-4.1.0.tgz", - "integrity": "sha512-dzW9kHxH011uBsidTXd14JXgzye/YLb2LzeKZ4bsgl/Knwx8AtbSFkkGxagdNOoh0DlqHCmfiEjWKBaqjOanVw==", - "dev": true, - "dependencies": { - "array-back": "^3.0.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/ansi-escape-sequences/node_modules/array-back": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", - "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", @@ -1437,15 +789,6 @@ "node": ">=0.10.0" } }, - "node_modules/ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", @@ -1473,34 +816,11 @@ "integrity": "sha1-ZlWX3oap/+Oqm/vmyuXG6kJrSXk=", "dev": true }, - "node_modules/ap": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/ap/-/ap-0.2.0.tgz", - "integrity": "sha1-rglCYAspkS8NKxTsYMRejzMLYRA=", - "dev": true - }, - "node_modules/append-transform": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/append-transform/-/append-transform-2.0.0.tgz", - "integrity": "sha512-7yeyCEurROLQJFv5Xj4lEGTy0borxepjFv1g22oAdqFu//SrAlDl1O1Nxx15SH1RoliUml6p8dwJW9jvZughhg==", - "dev": true, - "dependencies": { - "default-require-extensions": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/archy": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", - "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=", - "dev": true - }, "node_modules/argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, "dependencies": { "sprintf-js": "~1.0.2" } @@ -1511,15 +831,6 @@ "integrity": "sha1-oMoMvCmltz6Dbuvhy/bF4OTrgvk=", "dev": true }, - "node_modules/array-back": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-4.0.1.tgz", - "integrity": "sha512-Z/JnaVEXv+A9xabHzN43FiiiWEE7gPCRXMrVmRm00tWbjZRul1iHm7ECzlyNq1p4a4ATXz+G9FJ3GqGOkOV3fg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/array-find-index": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", @@ -1553,51 +864,6 @@ "node": ">=0.10.0" } }, - "node_modules/asn1.js": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", - "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", - "dev": true, - "dependencies": { - "bn.js": "^4.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } - }, - "node_modules/assert": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.0.tgz", - "integrity": "sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==", - "dev": true, - "dependencies": { - "object-assign": "^4.1.1", - "util": "0.10.3" - } - }, - "node_modules/assert/node_modules/inherits": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", - "dev": true - }, - "node_modules/assert/node_modules/util": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", - "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", - "dev": true, - "dependencies": { - "inherits": "2.0.1" - } - }, - "node_modules/assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", - "dev": true, - "engines": { - "node": "*" - } - }, "node_modules/astral-regex": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", @@ -1607,15 +873,6 @@ "node": ">=8" } }, - "node_modules/async": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", - "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", - "dev": true, - "dependencies": { - "lodash": "^4.17.14" - } - }, "node_modules/at-least-node": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", @@ -1634,151 +891,38 @@ "gulp-header": "^1.7.1" } }, - "node_modules/axios": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.19.2.tgz", - "integrity": "sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==", - "deprecated": "Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410", - "dev": true, - "dependencies": { - "follow-redirects": "1.5.10" - } - }, - "node_modules/axios/node_modules/debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/axios/node_modules/follow-redirects": { - "version": "1.5.10", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", - "integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==", - "dev": true, - "dependencies": { - "debug": "=3.1.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/axios/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, "node_modules/balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true }, - "node_modules/base64-js": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz", - "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==", - "dev": true - }, - "node_modules/basic-auth": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-1.1.0.tgz", - "integrity": "sha1-RSIe5Cn37h5QNb4/UVM/HN/SmIQ=", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, "node_modules/before-after-hook": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.1.tgz", "integrity": "sha512-/6FKxSTWoJdbsLDF8tdIjaRiFXiE6UHsEHE3OPI/cwPURCVi1ukP0gmLn7XWEiFk5TcwQjjY5PWsU+j+tgXgmw==", "dev": true }, - "node_modules/bl": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.0.3.tgz", - "integrity": "sha512-fs4G6/Hu4/EE+F75J8DuN/0IpQqNjAdC7aEQv7Qt8MHGUH7Ckv2MwTEEeN9QehD0pfIDkMI1bkHYkKy7xHyKIg==", + "node_modules/bottleneck": { + "version": "2.19.5", + "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz", + "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "node_modules/bl/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "node_modules/bl/node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/bluebird": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", - "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", - "dev": true - }, - "node_modules/bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", - "dev": true - }, - "node_modules/bottleneck": { - "version": "2.19.5", - "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz", - "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==", - "dev": true - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dev": true, "dependencies": { "fill-range": "^7.0.1" @@ -1787,308 +931,12 @@ "node": ">=8" } }, - "node_modules/brorand": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", - "dev": true - }, - "node_modules/browser-pack": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-6.1.0.tgz", - "integrity": "sha512-erYug8XoqzU3IfcU8fUgyHqyOXqIE4tUTTQ+7mqUjQlvnXkOO6OlT9c/ZoJVHYoAaqGxr09CN53G7XIsO4KtWA==", - "dev": true, - "dependencies": { - "combine-source-map": "~0.8.0", - "defined": "^1.0.0", - "JSONStream": "^1.0.3", - "safe-buffer": "^5.1.1", - "through2": "^2.0.0", - "umd": "^3.0.0" - }, - "bin": { - "browser-pack": "bin/cmd.js" - } - }, - "node_modules/browser-pack/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dev": true, - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/browser-resolve": { - "version": "1.11.3", - "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.3.tgz", - "integrity": "sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ==", - "dev": true, - "dependencies": { - "resolve": "1.1.7" - } - }, - "node_modules/browser-resolve/node_modules/resolve": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", - "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", - "dev": true - }, - "node_modules/browser-stdout": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true - }, - "node_modules/browserify": { - "version": "16.5.1", - "resolved": "https://registry.npmjs.org/browserify/-/browserify-16.5.1.tgz", - "integrity": "sha512-EQX0h59Pp+0GtSRb5rL6OTfrttlzv+uyaUVlK6GX3w11SQ0jKPKyjC/54RhPR2ib2KmfcELM06e8FxcI5XNU2A==", - "dev": true, - "dependencies": { - "assert": "^1.4.0", - "browser-pack": "^6.0.1", - "browser-resolve": "^1.11.0", - "browserify-zlib": "~0.2.0", - "buffer": "~5.2.1", - "cached-path-relative": "^1.0.0", - "concat-stream": "^1.6.0", - "console-browserify": "^1.1.0", - "constants-browserify": "~1.0.0", - "crypto-browserify": "^3.0.0", - "defined": "^1.0.0", - "deps-sort": "^2.0.0", - "domain-browser": "^1.2.0", - "duplexer2": "~0.1.2", - "events": "^2.0.0", - "glob": "^7.1.0", - "has": "^1.0.0", - "htmlescape": "^1.1.0", - "https-browserify": "^1.0.0", - "inherits": "~2.0.1", - "insert-module-globals": "^7.0.0", - "JSONStream": "^1.0.3", - "labeled-stream-splicer": "^2.0.0", - "mkdirp-classic": "^0.5.2", - "module-deps": "^6.0.0", - "os-browserify": "~0.3.0", - "parents": "^1.0.1", - "path-browserify": "~0.0.0", - "process": "~0.11.0", - "punycode": "^1.3.2", - "querystring-es3": "~0.2.0", - "read-only-stream": "^2.0.0", - "readable-stream": "^2.0.2", - "resolve": "^1.1.4", - "shasum": "^1.0.0", - "shell-quote": "^1.6.1", - "stream-browserify": "^2.0.0", - "stream-http": "^3.0.0", - "string_decoder": "^1.1.1", - "subarg": "^1.0.0", - "syntax-error": "^1.1.1", - "through2": "^2.0.0", - "timers-browserify": "^1.0.1", - "tty-browserify": "0.0.1", - "url": "~0.11.0", - "util": "~0.10.1", - "vm-browserify": "^1.0.0", - "xtend": "^4.0.0" - }, - "bin": { - "browserify": "bin/cmd.js" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/browserify-aes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", - "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", - "dev": true, - "dependencies": { - "buffer-xor": "^1.0.3", - "cipher-base": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.3", - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "node_modules/browserify-cipher": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", - "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", - "dev": true, - "dependencies": { - "browserify-aes": "^1.0.4", - "browserify-des": "^1.0.0", - "evp_bytestokey": "^1.0.0" - } - }, - "node_modules/browserify-des": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", - "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", - "dev": true, - "dependencies": { - "cipher-base": "^1.0.1", - "des.js": "^1.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "node_modules/browserify-rsa": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", - "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", - "dev": true, - "dependencies": { - "bn.js": "^4.1.0", - "randombytes": "^2.0.1" - } - }, - "node_modules/browserify-shim": { - "version": "3.8.14", - "resolved": "https://registry.npmjs.org/browserify-shim/-/browserify-shim-3.8.14.tgz", - "integrity": "sha1-vxBXAmky0yU8de991xTzuHft7Gs=", - "dev": true, - "dependencies": { - "exposify": "~0.5.0", - "mothership": "~0.2.0", - "rename-function-calls": "~0.1.0", - "resolve": "~0.6.1", - "through": "~2.3.4" - }, - "peerDependencies": { - "browserify": ">= 2.3" - } - }, - "node_modules/browserify-shim/node_modules/resolve": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.6.3.tgz", - "integrity": "sha1-3ZV5gufnNt699TtYpN2RdUV13UY=", - "dev": true - }, - "node_modules/browserify-sign": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.0.4.tgz", - "integrity": "sha1-qk62jl17ZYuqa/alfmMMvXqT0pg=", - "dev": true, - "dependencies": { - "bn.js": "^4.1.1", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.2", - "elliptic": "^6.0.0", - "inherits": "^2.0.1", - "parse-asn1": "^5.0.0" - } - }, - "node_modules/browserify-zlib": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", - "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", - "dev": true, - "dependencies": { - "pako": "~1.0.5" - } - }, - "node_modules/browserify/node_modules/punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true - }, - "node_modules/browserify/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dev": true, - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.2.1.tgz", - "integrity": "sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==", - "dev": true, - "dependencies": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4" - } - }, - "node_modules/buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=", - "dev": true, - "engines": { - "node": "*" - } - }, "node_modules/buffer-from": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", "dev": true }, - "node_modules/buffer-xor": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", - "dev": true - }, - "node_modules/builtin-status-codes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", - "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=", - "dev": true - }, - "node_modules/cache-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/cache-point/-/cache-point-1.0.0.tgz", - "integrity": "sha512-ZqrZp9Hi5Uq7vfSGmNP2bUT/9DzZC2Y/GXjHB8rUJN1a+KLmbV05+vxHipNsg8+CSVgjcVVzLV8VZms6w8ZeRw==", - "dev": true, - "dependencies": { - "array-back": "^4.0.0", - "fs-then-native": "^2.0.0", - "mkdirp2": "^1.0.4" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cached-path-relative": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/cached-path-relative/-/cached-path-relative-1.1.0.tgz", - "integrity": "sha512-WF0LihfemtesFcJgO7xfOoOcnWzY/QHR4qeDqV44jPU3HTI54+LnfXK3SA27AVVGCdZFgjjFFaqUA9Jx7dMJZA==", - "dev": true - }, - "node_modules/caching-transform": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/caching-transform/-/caching-transform-4.0.0.tgz", - "integrity": "sha512-kpqOvwXnjjN44D89K5ccQC+RUrsy7jB/XLlRrx0D7/2HNcTPqzsb6XgYoErwko6QsV184CA2YgS1fxDiiDZMWA==", - "dev": true, - "dependencies": { - "hasha": "^5.0.0", - "make-dir": "^3.0.0", - "package-hash": "^4.0.0", - "write-file-atomic": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/call-me-maybe": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz", - "integrity": "sha1-JtII6onje1y95gJQoV8DHBak1ms=" - }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -2134,47 +982,6 @@ "cdl": "bin/cdl.js" } }, - "node_modules/catharsis": { - "version": "0.8.11", - "resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.8.11.tgz", - "integrity": "sha512-a+xUyMV7hD1BrDQA/3iPV7oc+6W26BgVJO05PGEoatMyIuPScQKsde6i3YorWX1qs+AZjnJ18NqdKoCtKiNh1g==", - "dev": true, - "dependencies": { - "lodash": "^4.17.14" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/chai": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.2.0.tgz", - "integrity": "sha512-XQU3bhBukrOsQCuwZndwGcCVQHyZi53fQ6Ys1Fym7E4olpIqqZZhhoFJoaKVvV17lWQoXYwgWN2nF5crA8J2jw==", - "dev": true, - "dependencies": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.2", - "deep-eql": "^3.0.1", - "get-func-name": "^2.0.0", - "pathval": "^1.1.0", - "type-detect": "^4.0.5" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/chai-as-promised": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/chai-as-promised/-/chai-as-promised-7.1.1.tgz", - "integrity": "sha512-azL6xMoi+uxu6z4rhWQ1jbdUhOMhis2PvscD/xjLqNMkv3BPPp2JyyuTHOrf9BOosGpNQ11v6BKv/g57RXbiaA==", - "dev": true, - "dependencies": { - "check-error": "^1.0.2" - }, - "peerDependencies": { - "chai": ">= 2.1.2 < 5" - } - }, "node_modules/chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", @@ -2189,40 +996,6 @@ "node": ">=4" } }, - "node_modules/check-error": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", - "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/check-more-types": { - "version": "2.24.0", - "resolved": "https://registry.npmjs.org/check-more-types/-/check-more-types-2.24.0.tgz", - "integrity": "sha1-FCD/sQ/URNz8ebQ4kbv//TKoRgA=", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/chownr": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", - "dev": true - }, - "node_modules/cipher-base": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", - "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", - "dev": true, - "dependencies": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, "node_modules/clean-stack": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", @@ -2244,60 +1017,6 @@ "node": ">= 0.2.0" } }, - "node_modules/cliui": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", - "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", - "dev": true, - "dependencies": { - "string-width": "^3.1.0", - "strip-ansi": "^5.2.0", - "wrap-ansi": "^5.1.0" - } - }, - "node_modules/cliui/node_modules/ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/cliui/node_modules/string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "dependencies": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/cliui/node_modules/strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "dependencies": { - "ansi-regex": "^4.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/code-error-fragment": { - "version": "0.0.230", - "resolved": "https://registry.npmjs.org/code-error-fragment/-/code-error-fragment-0.0.230.tgz", - "integrity": "sha512-cadkfKp6932H8UkhzE/gcUqhRMNf8jHzkAN7+5Myabswaghu4xABTgPHDCjW+dBAJxj/SpkTYokpzDqY4pCzQw==", - "engines": { - "node": ">= 4" - } - }, "node_modules/coffee-script": { "version": "1.12.7", "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", @@ -2312,19 +1031,6 @@ "node": ">=0.8.0" } }, - "node_modules/collect-all": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/collect-all/-/collect-all-1.0.3.tgz", - "integrity": "sha512-0y0rBgoX8IzIjBAUnO73SEtSb4Mhk3IoceWJq5zZSxb9mWORhWH8xLYo4EDSOE1jRBk1LhmfjqWFFt10h/+MEA==", - "dev": true, - "dependencies": { - "stream-connect": "^1.0.2", - "stream-via": "^1.0.4" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", @@ -2349,130 +1055,6 @@ "node": ">=0.1.90" } }, - "node_modules/combine-source-map": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.8.0.tgz", - "integrity": "sha1-pY0N8ELBhvz4IqjoAV9UUNLXmos=", - "dev": true, - "dependencies": { - "convert-source-map": "~1.1.0", - "inline-source-map": "~0.6.0", - "lodash.memoize": "~3.0.3", - "source-map": "~0.5.3" - } - }, - "node_modules/combine-source-map/node_modules/source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/command-line-args": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-5.1.1.tgz", - "integrity": "sha512-hL/eG8lrll1Qy1ezvkant+trihbGnaKaeEjj6Scyr3DN+RC7iQ5Rz84IeLERfAWDGo0HBSNAakczwgCilDXnWg==", - "dev": true, - "dependencies": { - "array-back": "^3.0.1", - "find-replace": "^3.0.0", - "lodash.camelcase": "^4.3.0", - "typical": "^4.0.0" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/command-line-args/node_modules/array-back": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", - "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/command-line-args/node_modules/typical": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/typical/-/typical-4.0.0.tgz", - "integrity": "sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/command-line-tool": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/command-line-tool/-/command-line-tool-0.8.0.tgz", - "integrity": "sha512-Xw18HVx/QzQV3Sc5k1vy3kgtOeGmsKIqwtFFoyjI4bbcpSgnw2CWVULvtakyw4s6fhyAdI6soQQhXc2OzJy62g==", - "dev": true, - "dependencies": { - "ansi-escape-sequences": "^4.0.0", - "array-back": "^2.0.0", - "command-line-args": "^5.0.0", - "command-line-usage": "^4.1.0", - "typical": "^2.6.1" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/command-line-tool/node_modules/array-back": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", - "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", - "dev": true, - "dependencies": { - "typical": "^2.6.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/command-line-usage": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/command-line-usage/-/command-line-usage-4.1.0.tgz", - "integrity": "sha512-MxS8Ad995KpdAC0Jopo/ovGIroV/m0KHwzKfXxKag6FHOkGsH8/lv5yjgablcRxCJJC0oJeUMuO/gmaq+Wq46g==", - "dev": true, - "dependencies": { - "ansi-escape-sequences": "^4.0.0", - "array-back": "^2.0.0", - "table-layout": "^0.4.2", - "typical": "^2.6.1" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/command-line-usage/node_modules/array-back": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", - "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", - "dev": true, - "dependencies": { - "typical": "^2.6.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/common-sequence": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/common-sequence/-/common-sequence-2.0.0.tgz", - "integrity": "sha512-f0QqPLpRTgMQn/pQIynf+SdE73Lw5Q1jn4hjirHLgH/NJ71TiHjXusV16BmOyuK5rRQ1W2f++II+TFZbQOh4hA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", - "dev": true - }, "node_modules/compare-func": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.2.tgz", @@ -2513,36 +1095,6 @@ "source-map": "^0.6.1" } }, - "node_modules/config-master": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/config-master/-/config-master-3.1.0.tgz", - "integrity": "sha1-ZnZjWQUFooO/JqSE1oSJ10xUhdo=", - "dev": true, - "dependencies": { - "walk-back": "^2.0.1" - } - }, - "node_modules/config-master/node_modules/walk-back": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/walk-back/-/walk-back-2.0.1.tgz", - "integrity": "sha1-VU4qnYdPrEeoywBr9EwvDEmYoKQ=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/console-browserify": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", - "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==", - "dev": true - }, - "node_modules/constants-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", - "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=", - "dev": true - }, "node_modules/conventional-changelog-angular": { "version": "5.0.6", "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.6.tgz", @@ -2637,27 +1189,12 @@ "node": ">=6.9.0" } }, - "node_modules/convert-source-map": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", - "integrity": "sha1-SCnId+n+SbMWHzvzZziI4gRpmGA=", - "dev": true - }, "node_modules/core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true }, - "node_modules/corser": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/corser/-/corser-2.0.1.tgz", - "integrity": "sha1-jtolLsqrWEDc2XXOuQ2TcMgZ/4c=", - "dev": true, - "engines": { - "node": ">= 0.4.0" - } - }, "node_modules/cosmiconfig": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.0.tgz", @@ -2701,43 +1238,6 @@ "node": ">=8" } }, - "node_modules/create-ecdh": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.3.tgz", - "integrity": "sha512-GbEHQPMOswGpKXM9kCWVrremUcBmjteUaQ01T9rkKCPDXfUHX0IoP9LpHYo2NPFampa4e+/pFDc3jQdxrxQLaw==", - "dev": true, - "dependencies": { - "bn.js": "^4.1.0", - "elliptic": "^6.0.0" - } - }, - "node_modules/create-hash": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", - "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", - "dev": true, - "dependencies": { - "cipher-base": "^1.0.1", - "inherits": "^2.0.1", - "md5.js": "^1.3.4", - "ripemd160": "^2.0.1", - "sha.js": "^2.4.0" - } - }, - "node_modules/create-hmac": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", - "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", - "dev": true, - "dependencies": { - "cipher-base": "^1.0.3", - "create-hash": "^1.1.0", - "inherits": "^2.0.1", - "ripemd160": "^2.0.0", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, "node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", @@ -2767,28 +1267,6 @@ "node": ">= 8" } }, - "node_modules/crypto-browserify": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", - "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", - "dev": true, - "dependencies": { - "browserify-cipher": "^1.0.0", - "browserify-sign": "^4.0.0", - "create-ecdh": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.0", - "diffie-hellman": "^5.0.0", - "inherits": "^2.0.1", - "pbkdf2": "^3.0.3", - "public-encrypt": "^4.0.0", - "randombytes": "^2.0.0", - "randomfill": "^1.0.3" - }, - "engines": { - "node": "*" - } - }, "node_modules/crypto-random-string": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", @@ -2810,12 +1288,6 @@ "node": ">=0.10.0" } }, - "node_modules/dash-ast": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/dash-ast/-/dash-ast-1.0.0.tgz", - "integrity": "sha512-Vy4dx7gquTeMcQR/hDkYLGUnwVil6vk4FOOct+djUnHOUWt+zJPJAaRIXaAFkPXtJjvlY7o3rfRu0/3hpnwoUA==", - "dev": true - }, "node_modules/dateformat": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", @@ -2866,18 +1338,6 @@ "node": ">=0.10.0" } }, - "node_modules/deep-eql": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", - "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", - "dev": true, - "dependencies": { - "type-detect": "^4.0.0" - }, - "engines": { - "node": ">=0.12" - } - }, "node_modules/deep-extend": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", @@ -2893,118 +1353,12 @@ "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", "dev": true }, - "node_modules/default-require-extensions": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-3.0.0.tgz", - "integrity": "sha512-ek6DpXq/SCpvjhpFsLFRVtIxJCRw6fUR42lYMVZuUMK7n8eMz4Uh5clckdBjEpLhn/gEBZo7hDJnJcwdKLKQjg==", - "dev": true, - "dependencies": { - "strip-bom": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/default-require-extensions/node_modules/strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/define-properties": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", - "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", - "dev": true, - "dependencies": { - "object-keys": "^1.0.12" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/define-properties/node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/defined": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz", - "integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=", - "dev": true - }, "node_modules/deprecation": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", "dev": true }, - "node_modules/deps-sort": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/deps-sort/-/deps-sort-2.0.1.tgz", - "integrity": "sha512-1orqXQr5po+3KI6kQb9A4jnXT1PBwggGl2d7Sq2xsnOeI9GPcE/tGcF9UiSZtZBM7MukY4cAh7MemS6tZYipfw==", - "dev": true, - "dependencies": { - "JSONStream": "^1.0.3", - "shasum-object": "^1.0.0", - "subarg": "^1.0.0", - "through2": "^2.0.0" - }, - "bin": { - "deps-sort": "bin/cmd.js" - } - }, - "node_modules/deps-sort/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dev": true, - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/des.js": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.1.tgz", - "integrity": "sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } - }, - "node_modules/detective": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/detective/-/detective-5.2.0.tgz", - "integrity": "sha512-6SsIx+nUUbuK0EthKjv0zrdnajCCXVYGmbYYiYjFVpzcjwEs/JMDZ8tPRG29J/HhN56t3GJp2cGSWDRjjot8Pg==", - "dev": true, - "dependencies": { - "acorn-node": "^1.6.1", - "defined": "^1.0.0", - "minimist": "^1.1.1" - }, - "bin": { - "detective": "bin/detective.js" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/devtools-protocol": { - "version": "0.0.847576", - "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.847576.tgz", - "integrity": "sha512-0M8kobnSQE0Jmly7Mhbeq0W/PpZfnuK+WjN2ZRVPbGqYwCHCioAVp84H0TcLimgECcN5H976y5QiXMGBC9JKmg==", - "dev": true - }, "node_modules/diacritics-map": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/diacritics-map/-/diacritics-map-0.1.0.tgz", @@ -3014,26 +1368,6 @@ "node": ">=0.8.0" } }, - "node_modules/diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/diffie-hellman": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", - "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", - "dev": true, - "dependencies": { - "bn.js": "^4.1.0", - "miller-rabin": "^4.0.0", - "randombytes": "^2.0.0" - } - }, "node_modules/dir-glob": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", @@ -3055,38 +1389,6 @@ "node": ">=8" } }, - "node_modules/dmd": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/dmd/-/dmd-4.0.6.tgz", - "integrity": "sha512-7ZYAnFQ6jGm4SICArwqNPylJ83PaOdPTAkds3Z/s1ueFqSc5ilJ2F0b7uP+35W1PUbemH++gn5/VlC3KwEgiHQ==", - "dev": true, - "dependencies": { - "array-back": "^4.0.1", - "cache-point": "^1.0.0", - "common-sequence": "^2.0.0", - "file-set": "^3.0.0", - "handlebars": "^4.5.3", - "marked": "^0.7.0", - "object-get": "^2.1.0", - "reduce-flatten": "^3.0.0", - "reduce-unique": "^2.0.1", - "reduce-without": "^1.0.1", - "test-value": "^3.0.0", - "walk-back": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/dmd/node_modules/reduce-flatten": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-3.0.0.tgz", - "integrity": "sha512-eczl8wAYBxJ6Egl6I1ECIF+8z6sHu+KE7BzaEDZTpPXKXfy9SUDQlVYwkRcNTjJLC3Iakxbhss50KuT/R6SYfg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/doctrine": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", @@ -3108,22 +1410,6 @@ "node": ">=0.10.0" } }, - "node_modules/domain-browser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", - "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", - "dev": true, - "engines": { - "node": ">=0.4", - "npm": ">=1.2" - } - }, - "node_modules/dot-parts": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dot-parts/-/dot-parts-1.0.1.tgz", - "integrity": "sha1-iEvXvPwwgv+tL+XbU+SU2PPgdD8=", - "dev": true - }, "node_modules/dot-prop": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-3.0.0.tgz", @@ -3136,12 +1422,6 @@ "node": ">=0.10.0" } }, - "node_modules/duplexer": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", - "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", - "dev": true - }, "node_modules/duplexer2": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", @@ -3151,86 +1431,25 @@ "readable-stream": "^2.0.2" } }, - "node_modules/ecstatic": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/ecstatic/-/ecstatic-3.3.2.tgz", - "integrity": "sha512-fLf9l1hnwrHI2xn9mEDT7KIi22UDqA2jaCwyCbSUJh9a1V+LEUSL/JO/6TIz/QyuBURWUHrFL5Kg2TtO1bkkog==", - "deprecated": "This package is unmaintained and deprecated. See the GH Issue 259.", + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", "dev": true, "dependencies": { - "he": "^1.1.1", - "mime": "^1.6.0", - "minimist": "^1.1.0", - "url-join": "^2.0.5" - }, - "bin": { - "ecstatic": "lib/ecstatic.js" + "once": "^1.4.0" } }, - "node_modules/ecstatic/node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "node_modules/enquirer": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", + "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", "dev": true, - "bin": { - "mime": "cli.js" + "dependencies": { + "ansi-colors": "^4.1.1" }, "engines": { - "node": ">=4" - } - }, - "node_modules/ecstatic/node_modules/url-join": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/url-join/-/url-join-2.0.5.tgz", - "integrity": "sha1-WvIvGMBSoACkjXuCxenC4v7tpyg=", - "dev": true - }, - "node_modules/elliptic": { - "version": "6.5.4", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", - "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", - "dev": true, - "dependencies": { - "bn.js": "^4.11.9", - "brorand": "^1.1.0", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.1", - "inherits": "^2.0.4", - "minimalistic-assert": "^1.0.1", - "minimalistic-crypto-utils": "^1.0.1" - } - }, - "node_modules/elliptic/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - }, - "node_modules/emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", - "dev": true - }, - "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dev": true, - "dependencies": { - "once": "^1.4.0" - } - }, - "node_modules/enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", - "dev": true, - "dependencies": { - "ansi-colors": "^4.1.1" - }, - "engines": { - "node": ">=8.6" + "node": ">=8.6" } }, "node_modules/enquirer/node_modules/ansi-colors": { @@ -3242,12 +1461,6 @@ "node": ">=6" } }, - "node_modules/entities": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.0.0.tgz", - "integrity": "sha512-D9f7V0JSRwIxlRI2mjMqufDrRDnx8p+eEOz7aUM9SuvF8gsBzra0/6tbjl1m8eQHrZlYj6PxqE00hZ1SAIKPLw==", - "dev": true - }, "node_modules/env-ci": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/env-ci/-/env-ci-5.0.2.tgz", @@ -3308,63 +1521,6 @@ "is-arrayish": "^0.2.1" } }, - "node_modules/es-abstract": { - "version": "1.17.5", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.5.tgz", - "integrity": "sha512-BR9auzDbySxOcfog0tLECW8l28eRGpDpU3Dm3Hp4q/N+VtLTmyj4EUN088XZWQDW/hzj6sYRDXeOFsaAODKvpg==", - "dev": true, - "dependencies": { - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1", - "is-callable": "^1.1.5", - "is-regex": "^1.0.5", - "object-inspect": "^1.7.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.0", - "string.prototype.trimleft": "^2.1.1", - "string.prototype.trimright": "^2.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-abstract/node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es6-error": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", - "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", - "dev": true - }, "node_modules/escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", @@ -3383,53 +1539,6 @@ "node": ">=0.8.0" } }, - "node_modules/escodegen": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.1.0.tgz", - "integrity": "sha1-xmOSP24gqtSNDA+knzHG1PSTYM8=", - "dev": true, - "dependencies": { - "esprima": "~1.0.4", - "estraverse": "~1.5.0", - "esutils": "~1.0.0" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, - "engines": { - "node": ">=0.4.0" - }, - "optionalDependencies": { - "source-map": "~0.1.30" - } - }, - "node_modules/escodegen/node_modules/esprima": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", - "integrity": "sha1-n1V+CPw7TSbs6d00+Pv0drYlha0=", - "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/escodegen/node_modules/source-map": { - "version": "0.1.43", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", - "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=", - "dev": true, - "optional": true, - "dependencies": { - "amdefine": ">=0.0.4" - }, - "engines": { - "node": ">=0.8.0" - } - }, "node_modules/eslint": { "version": "7.27.0", "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.27.0.tgz", @@ -3820,6 +1929,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, "bin": { "esparse": "bin/esparse.js", "esvalidate": "bin/esvalidate.js" @@ -3870,76 +1980,6 @@ "node": ">=4.0" } }, - "node_modules/estraverse": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.5.1.tgz", - "integrity": "sha1-hno+jlip+EYYr7bC3bzZFrfLr3E=", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/esutils": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-1.0.0.tgz", - "integrity": "sha1-gVHTWOIMisx/t0XnRywAJf5JZXA=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/event-stream": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz", - "integrity": "sha1-SrTJoPWlTbkzi0w02Gv86PSzVXE=", - "dev": true, - "dependencies": { - "duplexer": "~0.1.1", - "from": "~0", - "map-stream": "~0.1.0", - "pause-stream": "0.0.11", - "split": "0.3", - "stream-combiner": "~0.0.4", - "through": "~2.3.1" - } - }, - "node_modules/event-stream/node_modules/split": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", - "integrity": "sha1-zQ7qXmOiEd//frDwkcQTPi0N0o8=", - "dev": true, - "dependencies": { - "through": "2" - }, - "engines": { - "node": "*" - } - }, - "node_modules/eventemitter3": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.4.tgz", - "integrity": "sha512-rlaVLnVxtxvoyLsQQFBx53YmXHDxRIzzTLbdfxqi4yocpSjAxXwkU0cScM5JgSKMqEhrZpnvQ2D9gjylR0AimQ==", - "dev": true - }, - "node_modules/events": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/events/-/events-2.1.0.tgz", - "integrity": "sha512-3Zmiobend8P9DjmKAty0Era4jV8oJ0yGYe2nJJAxgymF9+N8F2m0hhZiMoWtcfepExzNKZumFU3ksdQbInGWCg==", - "dev": true, - "engines": { - "node": ">=0.4.x" - } - }, - "node_modules/evp_bytestokey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", - "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", - "dev": true, - "dependencies": { - "md5.js": "^1.3.4", - "safe-buffer": "^5.1.1" - } - }, "node_modules/execa": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/execa/-/execa-5.0.0.tgz", @@ -4039,74 +2079,6 @@ "node": ">=0.10.0" } }, - "node_modules/exposify": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/exposify/-/exposify-0.5.0.tgz", - "integrity": "sha1-+S0AlMJls/VT4fpFagOhiD0QWcw=", - "dev": true, - "dependencies": { - "globo": "~1.1.0", - "map-obj": "~1.0.1", - "replace-requires": "~1.0.3", - "through2": "~0.4.0", - "transformify": "~0.1.1" - } - }, - "node_modules/exposify/node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - }, - "node_modules/exposify/node_modules/map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/exposify/node_modules/readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "node_modules/exposify/node_modules/string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - }, - "node_modules/exposify/node_modules/through2": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.4.2.tgz", - "integrity": "sha1-2/WGYDEVHsg1K7bE22SiKSqEC5s=", - "dev": true, - "dependencies": { - "readable-stream": "~1.0.17", - "xtend": "~2.1.1" - } - }, - "node_modules/exposify/node_modules/xtend": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-2.1.2.tgz", - "integrity": "sha1-bv7MKk2tjmlixJAbM3znuoe10os=", - "dev": true, - "dependencies": { - "object-keys": "~0.4.0" - }, - "engines": { - "node": ">=0.4" - } - }, "node_modules/extend-shallow": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", @@ -4119,45 +2091,11 @@ "node": ">=0.10.0" } }, - "node_modules/extract-zip": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", - "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", - "dev": true, - "dependencies": { - "debug": "^4.1.1", - "get-stream": "^5.1.0", - "yauzl": "^2.10.0" - }, - "bin": { - "extract-zip": "cli.js" - }, - "engines": { - "node": ">= 10.17.0" - }, - "optionalDependencies": { - "@types/yauzl": "^2.9.1" - } - }, - "node_modules/extract-zip/node_modules/get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dev": true, - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/fast-deep-equal": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz", - "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==" + "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==", + "dev": true }, "node_modules/fast-glob": { "version": "3.2.5", @@ -4179,7 +2117,8 @@ "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true }, "node_modules/fast-levenshtein": { "version": "2.0.6", @@ -4187,12 +2126,6 @@ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "dev": true }, - "node_modules/fast-safe-stringify": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.0.7.tgz", - "integrity": "sha512-Utm6CdzT+6xsDk2m8S6uL8VHxNwI6Jub+e9NYTcAms28T84pTa25GJQV9j0CY0N1rM8hK4x6grpF2BQf+2qwVA==", - "dev": true - }, "node_modules/fastq": { "version": "1.11.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.11.0.tgz", @@ -4202,15 +2135,6 @@ "reusify": "^1.0.4" } }, - "node_modules/fd-slicer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=", - "dev": true, - "dependencies": { - "pend": "~1.2.0" - } - }, "node_modules/figures": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", @@ -4238,19 +2162,6 @@ "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/file-set": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/file-set/-/file-set-3.0.0.tgz", - "integrity": "sha512-B/SdeSIeRv7VlOgIjtH3dkxMI+tEy5m+OeCXfAUsirBoVoY+bGtsmvmmTFPm/G23TBY4RiTtjpcgePCfwXRjqA==", - "dev": true, - "dependencies": { - "array-back": "^4.0.0", - "glob": "^7.1.5" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", @@ -4263,50 +2174,6 @@ "node": ">=8" } }, - "node_modules/find-cache-dir": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.1.tgz", - "integrity": "sha512-t2GDMt3oGC/v+BMwzmllWDuJF/xcDtE5j/fCGbqDD7OLuJkj0cfh1YSA5VKPvwMeLFLNDBkwOKZ2X85jGLVftQ==", - "dev": true, - "dependencies": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/avajs/find-cache-dir?sponsor=1" - } - }, - "node_modules/find-parent-dir": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/find-parent-dir/-/find-parent-dir-0.3.0.tgz", - "integrity": "sha1-M8RLQpqysvBkYpnF+fcY83b/jVQ=", - "dev": true - }, - "node_modules/find-replace": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-replace/-/find-replace-3.0.0.tgz", - "integrity": "sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==", - "dev": true, - "dependencies": { - "array-back": "^3.0.1" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/find-replace/node_modules/array-back": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", - "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/find-up": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", @@ -4334,19 +2201,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/flat": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.0.tgz", - "integrity": "sha512-Px/TiLIznH7gEDlPXcUD4KnBusa6kR6ayRUVcnEAbreRIuhkqow/mun59BuRXwoYk7ZQOLW1ZM05ilIvK38hFw==", - "deprecated": "Fixed a prototype pollution security issue in 4.1.0, please upgrade to ^4.1.1 or ^5.0.1.", - "dev": true, - "dependencies": { - "is-buffer": "~2.0.3" - }, - "bin": { - "flat": "cli.js" - } - }, "node_modules/flat-cache": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", @@ -4360,36 +2214,12 @@ "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/flat/node_modules/is-buffer": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.4.tgz", - "integrity": "sha512-Kq1rokWXOPXWuaMAqZiJW4XxsmD9zGx9q4aePabbn3qCRGedtH7Cm+zV8WETitMfu1wdh+Rvd6w5egwSngUX2A==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/flatted": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.1.1.tgz", "integrity": "sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==", "dev": true }, - "node_modules/follow-redirects": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.0.tgz", - "integrity": "sha512-aq6gF1BEKje4a9i9+5jimNFIpq4Q1WiwBToeRK5NvZBd/TRsmW8BsJfOEGkr76TbOyPVD3OVDN910EcUNtRYEA==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "engines": { - "node": ">=4.0" - } - }, "node_modules/for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", @@ -4399,25 +2229,6 @@ "node": ">=0.10.0" } }, - "node_modules/foreground-child": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-2.0.0.tgz", - "integrity": "sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^3.0.2" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/from": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", - "integrity": "sha1-g8YK/Fi5xWmXAH7Rp2izqzA6RP4=", - "dev": true - }, "node_modules/from2": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", @@ -4428,18 +2239,6 @@ "readable-stream": "^2.0.0" } }, - "node_modules/fromentries": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fromentries/-/fromentries-1.2.0.tgz", - "integrity": "sha512-33X7H/wdfO99GdRLLgkjUrD4geAFdq/Uv0kl3HD4da6HDixd2GUg8Mw7dahLCV9r/EARkmtYBB6Tch4EEokFTQ==", - "dev": true - }, - "node_modules/fs-constants": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", - "dev": true - }, "node_modules/fs-extra": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.0.tgz", @@ -4455,48 +2254,18 @@ "node": ">=10" } }, - "node_modules/fs-then-native": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fs-then-native/-/fs-then-native-2.0.0.tgz", - "integrity": "sha1-GaEk2U2QwiyOBF8ujdbr6jbUjGc=", - "dev": true, - "engines": { - "node": ">=4.0.0" - } - }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, "node_modules/functional-red-black-tree": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", "dev": true }, - "node_modules/gensync": { - "version": "1.0.0-beta.1", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.1.tgz", - "integrity": "sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-assigned-identifiers": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz", - "integrity": "sha512-mBBwmeGTrxEMO4pMaaf/uUEFHnYtwr8FTe8Y/mer4rcV/bye0qGm6pw1bGZFGStxC5O76c5ZAVBGnqHmOaJpdQ==", - "dev": true - }, "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -4506,24 +2275,6 @@ "node": "6.* || 8.* || >= 10.*" } }, - "node_modules/get-func-name": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", - "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", - "dev": true, - "engines": { - "node": "*" - } - }, - "node_modules/get-package-type": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", - "dev": true, - "engines": { - "node": ">=8.0.0" - } - }, "node_modules/get-stream": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", @@ -4648,31 +2399,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/globo": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/globo/-/globo-1.1.0.tgz", - "integrity": "sha1-DSYJiVXepCLrIAGxBImLChAcqvM=", - "dev": true, - "dependencies": { - "accessory": "~1.1.0", - "is-defined": "~1.0.0", - "ternary": "~1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/graceful-fs": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==", "dev": true }, - "node_modules/grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==" - }, "node_modules/gray-matter": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-2.1.1.tgz", @@ -4689,15 +2421,6 @@ "node": ">=0.10.0" } }, - "node_modules/growl": { - "version": "1.10.5", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", - "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", - "dev": true, - "engines": { - "node": ">=4.x" - } - }, "node_modules/gulp-header": { "version": "1.8.12", "resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.12.tgz", @@ -4741,18 +2464,6 @@ "uglify-js": "^3.1.4" } }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, "node_modules/has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", @@ -4762,92 +2473,6 @@ "node": ">=4" } }, - "node_modules/has-require": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/has-require/-/has-require-1.2.2.tgz", - "integrity": "sha1-khZ1qxMNvZdo/I2o8ajiQt+kF3Q=", - "dev": true, - "dependencies": { - "escape-string-regexp": "^1.0.3" - } - }, - "node_modules/has-symbols": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", - "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hash-base": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", - "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", - "dev": true, - "dependencies": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/hash.js": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - } - }, - "node_modules/hasha": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/hasha/-/hasha-5.2.0.tgz", - "integrity": "sha512-2W+jKdQbAdSIrggA8Q35Br8qKadTrqCTC8+XZvBWepKDK6m9XkX6Iz1a2yh2KP01kzAR/dpuMeUnocoLYDcskw==", - "dev": true, - "dependencies": { - "is-stream": "^2.0.0", - "type-fest": "^0.8.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/hasha/node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "dev": true, - "bin": { - "he": "bin/he" - } - }, - "node_modules/hmac-drbg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", - "dev": true, - "dependencies": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" - } - }, "node_modules/hook-std": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/hook-std/-/hook-std-2.0.0.tgz", @@ -4863,35 +2488,6 @@ "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", "dev": true }, - "node_modules/html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true - }, - "node_modules/htmlescape": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/htmlescape/-/htmlescape-1.1.1.tgz", - "integrity": "sha1-OgPtwiFLyjtmQko+eVk0lQnLA1E=", - "dev": true, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/http-proxy": { - "version": "1.18.1", - "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", - "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", - "dev": true, - "dependencies": { - "eventemitter3": "^4.0.0", - "follow-redirects": "^1.0.0", - "requires-port": "^1.0.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, "node_modules/http-proxy-agent": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", @@ -4906,46 +2502,6 @@ "node": ">= 6" } }, - "node_modules/http-server": { - "version": "0.12.3", - "resolved": "https://registry.npmjs.org/http-server/-/http-server-0.12.3.tgz", - "integrity": "sha512-be0dKG6pni92bRjq0kvExtj/NrrAd28/8fCXkaI/4piTwQMSDSLMhWyW0NI1V+DBI3aa1HMlQu46/HjVLfmugA==", - "dev": true, - "dependencies": { - "basic-auth": "^1.0.3", - "colors": "^1.4.0", - "corser": "^2.0.1", - "ecstatic": "^3.3.2", - "http-proxy": "^1.18.0", - "minimist": "^1.2.5", - "opener": "^1.5.1", - "portfinder": "^1.0.25", - "secure-compare": "3.0.1", - "union": "~0.5.0" - }, - "bin": { - "hs": "bin/http-server", - "http-server": "bin/http-server" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/http-server/node_modules/colors": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", - "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", - "dev": true, - "engines": { - "node": ">=0.1.90" - } - }, - "node_modules/https-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", - "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", - "dev": true - }, "node_modules/https-proxy-agent": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", @@ -4968,12 +2524,6 @@ "node": ">=8.12.0" } }, - "node_modules/ieee754": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", - "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==", - "dev": true - }, "node_modules/ignore": { "version": "5.1.8", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", @@ -5057,64 +2607,6 @@ "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", "dev": true }, - "node_modules/inline-source-map": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.6.2.tgz", - "integrity": "sha1-+Tk0ccGKedFyT4Y/o4tYY3Ct4qU=", - "dev": true, - "dependencies": { - "source-map": "~0.5.3" - } - }, - "node_modules/inline-source-map/node_modules/source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/insert-module-globals": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/insert-module-globals/-/insert-module-globals-7.2.0.tgz", - "integrity": "sha512-VE6NlW+WGn2/AeOMd496AHFYmE7eLKkUY6Ty31k4og5vmA3Fjuwe9v6ifH6Xx/Hz27QvdoMoviw1/pqWRB09Sw==", - "dev": true, - "dependencies": { - "acorn-node": "^1.5.2", - "combine-source-map": "^0.8.0", - "concat-stream": "^1.6.1", - "is-buffer": "^1.1.0", - "JSONStream": "^1.0.3", - "path-is-absolute": "^1.0.1", - "process": "~0.11.0", - "through2": "^2.0.0", - "undeclared-identifiers": "^1.1.2", - "xtend": "^4.0.0" - }, - "bin": { - "insert-module-globals": "bin/cmd.js" - } - }, - "node_modules/insert-module-globals/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dev": true, - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "dev": true, - "engines": { - "node": ">= 0.10" - } - }, "node_modules/into-stream": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-5.1.1.tgz", @@ -5140,36 +2632,6 @@ "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", "dev": true }, - "node_modules/is-callable": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.5.tgz", - "integrity": "sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz", - "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-defined": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-defined/-/is-defined-1.0.0.tgz", - "integrity": "sha1-HwfKZ9Vx9ZTEsUQVpF9774j5K/U=", - "dev": true - }, "node_modules/is-extendable": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", @@ -5188,15 +2650,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/is-glob": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", @@ -5245,21 +2698,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-regex": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.5.tgz", - "integrity": "sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ==", - "dev": true, - "dependencies": { - "has": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", @@ -5269,21 +2707,6 @@ "node": ">=8" } }, - "node_modules/is-symbol": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", - "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-text-path": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-1.0.1.tgz", @@ -5296,22 +2719,7 @@ "node": ">=0.10.0" } }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, - "node_modules/is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/isarray": { + "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", @@ -5339,143 +2747,6 @@ "node": ">=10.13" } }, - "node_modules/istanbul-lib-coverage": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz", - "integrity": "sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-hook": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-3.0.0.tgz", - "integrity": "sha512-Pt/uge1Q9s+5VAZ+pCo16TYMWPBIl+oaNIjgLQxcX0itS6ueeaA+pEfThZpH8WxhFgCiEb8sAJY6MdUKgiIWaQ==", - "dev": true, - "dependencies": { - "append-transform": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-instrument": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", - "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", - "dev": true, - "dependencies": { - "@babel/core": "^7.7.5", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.0.0", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/istanbul-lib-processinfo": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-processinfo/-/istanbul-lib-processinfo-2.0.2.tgz", - "integrity": "sha512-kOwpa7z9hme+IBPZMzQ5vdQj8srYgAtaRqeI48NGmAQ+/5yKiHLV0QbYqQpxsdEF0+w14SoB8YbnHKcXE2KnYw==", - "dev": true, - "dependencies": { - "archy": "^1.0.0", - "cross-spawn": "^7.0.0", - "istanbul-lib-coverage": "^3.0.0-alpha.1", - "make-dir": "^3.0.0", - "p-map": "^3.0.0", - "rimraf": "^3.0.0", - "uuid": "^3.3.3" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-processinfo/node_modules/p-map": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz", - "integrity": "sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==", - "dev": true, - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", - "dev": true, - "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-report/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-report/node_modules/supports-color": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", - "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-source-maps": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz", - "integrity": "sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg==", - "dev": true, - "dependencies": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-reports": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.2.tgz", - "integrity": "sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw==", - "dev": true, - "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/java-properties": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/java-properties/-/java-properties-1.0.2.tgz", @@ -5485,19 +2756,6 @@ "node": ">= 0.6.0" } }, - "node_modules/joi": { - "version": "17.2.1", - "resolved": "https://registry.npmjs.org/joi/-/joi-17.2.1.tgz", - "integrity": "sha512-YT3/4Ln+5YRpacdmfEfrrKh50/kkgX3LgBltjqnlMPIYiZ4hxXZuVJcxmsvxsdeHg9soZfE3qXxHC2tMpCCBOA==", - "dev": true, - "dependencies": { - "@hapi/address": "^4.1.0", - "@hapi/formula": "^2.0.0", - "@hapi/hoek": "^9.0.0", - "@hapi/pinpoint": "^2.0.0", - "@hapi/topo": "^5.0.0" - } - }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -5508,6 +2766,7 @@ "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -5516,174 +2775,6 @@ "js-yaml": "bin/js-yaml.js" } }, - "node_modules/js2xmlparser": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.1.tgz", - "integrity": "sha512-KrPTolcw6RocpYjdC7pL7v62e55q7qOMHvLX1UCLc5AAS8qeJ6nukarEJAF2KL2PZxlbGueEbINqZR2bDe/gUw==", - "dev": true, - "dependencies": { - "xmlcreate": "^2.0.3" - } - }, - "node_modules/jsdoc": { - "version": "3.6.4", - "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-3.6.4.tgz", - "integrity": "sha512-3G9d37VHv7MFdheviDCjUfQoIjdv4TC5zTTf5G9VODLtOnVS6La1eoYBDlbWfsRT3/Xo+j2MIqki2EV12BZfwA==", - "dev": true, - "dependencies": { - "@babel/parser": "^7.9.4", - "bluebird": "^3.7.2", - "catharsis": "^0.8.11", - "escape-string-regexp": "^2.0.0", - "js2xmlparser": "^4.0.1", - "klaw": "^3.0.0", - "markdown-it": "^10.0.0", - "markdown-it-anchor": "^5.2.7", - "marked": "^0.8.2", - "mkdirp": "^1.0.4", - "requizzle": "^0.2.3", - "strip-json-comments": "^3.1.0", - "taffydb": "2.6.2", - "underscore": "~1.10.2" - }, - "bin": { - "jsdoc": "jsdoc.js" - }, - "engines": { - "node": ">=8.15.0" - } - }, - "node_modules/jsdoc-api": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/jsdoc-api/-/jsdoc-api-5.0.4.tgz", - "integrity": "sha512-1KMwLnfo0FyhF06TQKzqIm8BiY1yoMIGICxRdJHUjzskaHMzHMmpLlmNFgzoa4pAC8t1CDPK5jWuQTvv1pBsEQ==", - "dev": true, - "dependencies": { - "array-back": "^4.0.0", - "cache-point": "^1.0.0", - "collect-all": "^1.0.3", - "file-set": "^2.0.1", - "fs-then-native": "^2.0.0", - "jsdoc": "^3.6.3", - "object-to-spawn-args": "^1.1.1", - "temp-path": "^1.0.0", - "walk-back": "^3.0.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/jsdoc-api/node_modules/file-set": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/file-set/-/file-set-2.0.1.tgz", - "integrity": "sha512-XgOUUpgR6FbbfYcniLw0qm1Am7PnNYIAkd+eXxRt42LiYhjaso0WiuQ+VmrNdtwotyM+cLCfZ56AZrySP3QnKA==", - "dev": true, - "dependencies": { - "array-back": "^2.0.0", - "glob": "^7.1.3" - } - }, - "node_modules/jsdoc-api/node_modules/file-set/node_modules/array-back": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", - "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", - "dev": true, - "dependencies": { - "typical": "^2.6.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/jsdoc-api/node_modules/walk-back": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/walk-back/-/walk-back-3.0.1.tgz", - "integrity": "sha512-umiNB2qLO731Sxbp6cfZ9pwURJzTnftxE4Gc7hq8n/ehkuXC//s9F65IEIJA2ZytQZ1ZOsm/Fju4IWx0bivkUQ==", - "dev": true, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/jsdoc-parse": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/jsdoc-parse/-/jsdoc-parse-4.0.1.tgz", - "integrity": "sha512-qIObw8yqYZjrP2qxWROB5eLQFLTUX2jRGLhW9hjo2CC2fQVlskidCIzjCoctwsDvauBp2a/lR31jkSleczSo8Q==", - "dev": true, - "dependencies": { - "array-back": "^4.0.0", - "lodash.omit": "^4.5.0", - "lodash.pick": "^4.4.0", - "reduce-extract": "^1.0.0", - "sort-array": "^2.0.0", - "test-value": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jsdoc-to-markdown": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/jsdoc-to-markdown/-/jsdoc-to-markdown-5.0.3.tgz", - "integrity": "sha512-tQv5tBV0fTYidRQtE60lJKxE98mmuLcYuITFDKQiDPE9hGccpeEGUNFcVkInq1vigyuPnZmt79bQ8wv2GKjY0Q==", - "dev": true, - "dependencies": { - "array-back": "^4.0.1", - "command-line-tool": "^0.8.0", - "config-master": "^3.1.0", - "dmd": "^4.0.5", - "jsdoc-api": "^5.0.4", - "jsdoc-parse": "^4.0.1", - "walk-back": "^4.0.0" - }, - "bin": { - "jsdoc2md": "bin/cli.js" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/jsdoc/node_modules/escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jsdoc/node_modules/marked": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/marked/-/marked-0.8.2.tgz", - "integrity": "sha512-EGwzEeCcLniFX51DhTpmTom+dSA/MG/OBUDjnWtHbEnjAH180VzUeAw+oE4+Zv+CoYBWyRlYOTR0N8SO9R1PVw==", - "dev": true, - "bin": { - "marked": "bin/marked" - }, - "engines": { - "node": ">= 8.16.2" - } - }, - "node_modules/jsdoc/node_modules/strip-json-comments": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.0.tgz", - "integrity": "sha512-e6/d0eBu7gHtdCqFt0xJr642LdToM5/cN4Qb9DbHjVx1CP5RyeM+zH7pbecEmDv/lBqb0QH+6Uqq75rxFPkM0w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/json-parse-better-errors": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", @@ -5699,16 +2790,8 @@ "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "node_modules/json-stable-stringify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz", - "integrity": "sha1-YRwj6BTbN1Un34URk9tZ3Sryf0U=", - "dev": true, - "dependencies": { - "jsonify": "~0.0.0" - } + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", @@ -5722,33 +2805,6 @@ "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", "dev": true }, - "node_modules/json-to-ast": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/json-to-ast/-/json-to-ast-2.1.0.tgz", - "integrity": "sha512-W9Lq347r8tA1DfMvAGn9QNcgYm4Wm7Yc+k8e6vezpMnRT+NHbtlxgNBXRVjXe9YM6eTn6+p/MKOlV/aABJcSnQ==", - "dependencies": { - "code-error-fragment": "0.0.230", - "grapheme-splitter": "^1.0.4" - }, - "engines": { - "node": ">= 4" - } - }, - "node_modules/json5": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.3.tgz", - "integrity": "sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==", - "dev": true, - "dependencies": { - "minimist": "^1.2.5" - }, - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/jsonfile": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.0.1.tgz", @@ -5761,15 +2817,6 @@ "graceful-fs": "^4.1.6" } }, - "node_modules/jsonify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", - "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", - "dev": true, - "engines": { - "node": "*" - } - }, "node_modules/jsonparse": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", @@ -5807,34 +2854,6 @@ "node": ">=0.10.0" } }, - "node_modules/klaw": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/klaw/-/klaw-3.0.0.tgz", - "integrity": "sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.1.9" - } - }, - "node_modules/labeled-stream-splicer": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/labeled-stream-splicer/-/labeled-stream-splicer-2.0.2.tgz", - "integrity": "sha512-Ca4LSXFFZUjPScRaqOcFxneA0VpKZr4MMYCljyQr4LIewTLb3Y0IUTIsnBBsVubIeEfxeSZpSjSsRM8APEQaAw==", - "dev": true, - "dependencies": { - "inherits": "^2.0.1", - "stream-splicer": "^2.0.0" - } - }, - "node_modules/lazy-ass": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/lazy-ass/-/lazy-ass-1.6.0.tgz", - "integrity": "sha1-eZllXoZGwX8In90YfRUNMyTVRRM=", - "dev": true, - "engines": { - "node": "> 0.8" - } - }, "node_modules/lazy-cache": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", @@ -5866,15 +2885,6 @@ "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", "dev": true }, - "node_modules/linkify-it": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-2.2.0.tgz", - "integrity": "sha512-GnAl/knGn+i1U/wjBz3akz2stz+HrHLsxMwHQGofCDfPvlf+gDKN58UtfmUquTY4/MXeE2x7k19KQmeoZi94Iw==", - "dev": true, - "dependencies": { - "uc.micro": "^1.0.1" - } - }, "node_modules/list-item": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/list-item/-/list-item-1.1.1.tgz", @@ -5942,12 +2952,6 @@ "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", "dev": true }, - "node_modules/lodash.camelcase": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=", - "dev": true - }, "node_modules/lodash.capitalize": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/lodash.capitalize/-/lodash.capitalize-4.2.1.tgz", @@ -5957,7 +2961,8 @@ "node_modules/lodash.clonedeep": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=" + "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", + "dev": true }, "node_modules/lodash.escaperegexp": { "version": "4.1.2", @@ -5965,12 +2970,6 @@ "integrity": "sha1-ZHYsSGGAglGKw99Mz11YhtriA0c=", "dev": true }, - "node_modules/lodash.flattendeep": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz", - "integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=", - "dev": true - }, "node_modules/lodash.ismatch": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz", @@ -5989,37 +2988,13 @@ "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=", "dev": true }, - "node_modules/lodash.memoize": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-3.0.4.tgz", - "integrity": "sha1-LcvSwofLwKVcxCMovQxzYVDVPj8=", - "dev": true - }, "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, - "node_modules/lodash.omit": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.omit/-/lodash.omit-4.5.0.tgz", - "integrity": "sha1-brGa5aHuHdnfC5aeZs4Lf6MLXmA=", - "dev": true - }, - "node_modules/lodash.padend": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/lodash.padend/-/lodash.padend-4.6.1.tgz", - "integrity": "sha1-U8y6BH0G4VjTEfRdpiX05J5vFm4=", - "dev": true - }, - "node_modules/lodash.pick": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.pick/-/lodash.pick-4.4.0.tgz", - "integrity": "sha1-UvBWEP/53tQiYRRB7R/BI6AwAbM=", - "dev": true - }, - "node_modules/lodash.template": { + "node_modules/lodash.template": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", "integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==", @@ -6056,18 +3031,6 @@ "integrity": "sha1-2ZwHpmnp5tJOE2Lf4mbGdhavEwI=", "dev": true }, - "node_modules/log-symbols": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", - "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", - "dev": true, - "dependencies": { - "chalk": "^2.0.1" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/loud-rejection": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", @@ -6093,30 +3056,6 @@ "node": ">=10" } }, - "node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/make-dir/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/map-obj": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", @@ -6126,37 +3065,6 @@ "node": ">=4" } }, - "node_modules/map-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz", - "integrity": "sha1-5WqpTEyAVaFkBKBnS3jyFffI4ZQ=", - "dev": true - }, - "node_modules/markdown-it": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-10.0.0.tgz", - "integrity": "sha512-YWOP1j7UbDNz+TumYP1kpwnP0aEa711cJjrAQrzd0UXlbJfc5aAq0F/PZHjiioqDC1NKgvIMX+o+9Bk7yuM2dg==", - "dev": true, - "dependencies": { - "argparse": "^1.0.7", - "entities": "~2.0.0", - "linkify-it": "^2.0.0", - "mdurl": "^1.0.1", - "uc.micro": "^1.0.5" - }, - "bin": { - "markdown-it": "bin/markdown-it.js" - } - }, - "node_modules/markdown-it-anchor": { - "version": "5.2.7", - "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-5.2.7.tgz", - "integrity": "sha512-REFmIaSS6szaD1bye80DMbp7ePwsPNvLTR5HunsUcZ0SG0rWJQ+Pz24R4UlTKtjKBPhxo0v0tOBDYjZQQknW8Q==", - "dev": true, - "peerDependencies": { - "markdown-it": "*" - } - }, "node_modules/markdown-link": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/markdown-link/-/markdown-link-0.1.1.tgz", @@ -6197,6 +3105,7 @@ "resolved": "https://registry.npmjs.org/marked/-/marked-0.7.0.tgz", "integrity": "sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==", "dev": true, + "peer": true, "bin": { "marked": "bin/marked" }, @@ -6297,23 +3206,6 @@ "integrity": "sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A==", "dev": true }, - "node_modules/md5.js": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", - "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", - "dev": true, - "dependencies": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "node_modules/mdurl": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", - "integrity": "sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=", - "dev": true - }, "node_modules/meow": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/meow/-/meow-5.0.0.tgz", @@ -6362,19 +3254,6 @@ "node": ">=8" } }, - "node_modules/miller-rabin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", - "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", - "dev": true, - "dependencies": { - "bn.js": "^4.0.0", - "brorand": "^1.0.1" - }, - "bin": { - "miller-rabin": "bin/miller-rabin" - } - }, "node_modules/mime": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/mime/-/mime-2.5.2.tgz", @@ -6396,18 +3275,6 @@ "node": ">=6" } }, - "node_modules/minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", - "dev": true - }, - "node_modules/minimalistic-crypto-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=", - "dev": true - }, "node_modules/minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", @@ -6485,206 +3352,6 @@ "node": ">=0.10.0" } }, - "node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true, - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/mkdirp-classic": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.2.tgz", - "integrity": "sha512-ejdnDQcR75gwknmMw/tx02AuRs8jCtqFoFqDZMjiNxsu85sRIJVXDKHuLYvUUPRBUtV2FpSZa9bL1BUa3BdR2g==", - "dev": true - }, - "node_modules/mkdirp2": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp2/-/mkdirp2-1.0.4.tgz", - "integrity": "sha512-Q2PKB4ZR4UPtjLl76JfzlgSCUZhSV1AXQgAZa1qt5RiaALFjP/CDrGvFBrOz7Ck6McPcwMAxTsJvWOUjOU8XMw==", - "dev": true - }, - "node_modules/mocha": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-6.2.3.tgz", - "integrity": "sha512-0R/3FvjIGH3eEuG17ccFPk117XL2rWxatr81a57D+r/x2uTYZRbdZ4oVidEUMh2W2TJDa7MdAb12Lm2/qrKajg==", - "dev": true, - "dependencies": { - "ansi-colors": "3.2.3", - "browser-stdout": "1.3.1", - "debug": "3.2.6", - "diff": "3.5.0", - "escape-string-regexp": "1.0.5", - "find-up": "3.0.0", - "glob": "7.1.3", - "growl": "1.10.5", - "he": "1.2.0", - "js-yaml": "3.13.1", - "log-symbols": "2.2.0", - "minimatch": "3.0.4", - "mkdirp": "0.5.4", - "ms": "2.1.1", - "node-environment-flags": "1.0.5", - "object.assign": "4.1.0", - "strip-json-comments": "2.0.1", - "supports-color": "6.0.0", - "which": "1.3.1", - "wide-align": "1.1.3", - "yargs": "13.3.2", - "yargs-parser": "13.1.2", - "yargs-unparser": "1.6.0" - }, - "bin": { - "_mocha": "bin/_mocha", - "mocha": "bin/mocha" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/mocha/node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/mocha/node_modules/debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "deprecated": "Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/mocha/node_modules/find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "dependencies": { - "locate-path": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/mocha/node_modules/glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - } - }, - "node_modules/mocha/node_modules/locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/mocha/node_modules/mkdirp": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.4.tgz", - "integrity": "sha512-iG9AK/dJLtJ0XNgTuDbSyNS3zECqDlAhnQW4CsNxBG3LQJBbHmRX1egw39DmtOdCAqY+dKXV+sgPgilNWUKMVw==", - "deprecated": "Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)", - "dev": true, - "dependencies": { - "minimist": "^1.2.5" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, - "node_modules/mocha/node_modules/ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true - }, - "node_modules/mocha/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mocha/node_modules/p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "dependencies": { - "p-limit": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/mocha/node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/mocha/node_modules/supports-color": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", - "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/mocha/node_modules/yargs-parser": { - "version": "13.1.2", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", - "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", - "dev": true, - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - }, "node_modules/modify-values": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/modify-values/-/modify-values-1.0.1.tgz", @@ -6694,54 +3361,6 @@ "node": ">=0.10.0" } }, - "node_modules/module-deps": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/module-deps/-/module-deps-6.2.2.tgz", - "integrity": "sha512-a9y6yDv5u5I4A+IPHTnqFxcaKr4p50/zxTjcQJaX2ws9tN/W6J6YXnEKhqRyPhl494dkcxx951onSKVezmI+3w==", - "dev": true, - "dependencies": { - "browser-resolve": "^1.7.0", - "cached-path-relative": "^1.0.2", - "concat-stream": "~1.6.0", - "defined": "^1.0.0", - "detective": "^5.2.0", - "duplexer2": "^0.1.2", - "inherits": "^2.0.1", - "JSONStream": "^1.0.3", - "parents": "^1.0.0", - "readable-stream": "^2.0.2", - "resolve": "^1.4.0", - "stream-combiner2": "^1.1.1", - "subarg": "^1.0.0", - "through2": "^2.0.0", - "xtend": "^4.0.0" - }, - "bin": { - "module-deps": "bin/cmd.js" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/module-deps/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dev": true, - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/mothership": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/mothership/-/mothership-0.2.0.tgz", - "integrity": "sha1-k9SKL7w+UOKl/I7VhvW8RMZfmpk=", - "dev": true, - "dependencies": { - "find-parent-dir": "~0.3.0" - } - }, "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -6775,20 +3394,11 @@ "lodash.toarray": "^4.4.0" } }, - "node_modules/node-environment-flags": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.5.tgz", - "integrity": "sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ==", - "dev": true, - "dependencies": { - "object.getownpropertydescriptors": "^2.0.3", - "semver": "^5.7.0" - } - }, "node_modules/node-fetch": { "version": "2.6.7", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "dev": true, "dependencies": { "whatwg-url": "^5.0.0" }, @@ -6804,18 +3414,6 @@ } } }, - "node_modules/node-preload": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/node-preload/-/node-preload-0.2.1.tgz", - "integrity": "sha512-RM5oyBy45cLEoHqCeh+MNuFAxO0vTFBLskvQbOKnEE7YTTSN4tbN8QWDIPQ6L+WvKsB/qLEGpYe2ZZ9d4W9OIQ==", - "dev": true, - "dependencies": { - "process-on-spawn": "^1.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/normalize-package-data": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", @@ -11474,4049 +8072,1779 @@ "inBundle": true, "license": "ISC" }, - "node_modules/nyc": { - "version": "15.1.0", - "resolved": "https://registry.npmjs.org/nyc/-/nyc-15.1.0.tgz", - "integrity": "sha512-jMW04n9SxKdKi1ZMGhvUTHBN0EICCRkHemEoE5jm6mTYcqcdas0ATzgUgejlQUHMvpnOZqGB5Xxsv9KxJW1j8A==", + "node_modules/object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", "dev": true, "dependencies": { - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "caching-transform": "^4.0.0", - "convert-source-map": "^1.7.0", - "decamelize": "^1.2.0", - "find-cache-dir": "^3.2.0", - "find-up": "^4.1.0", - "foreground-child": "^2.0.0", - "get-package-type": "^0.1.0", - "glob": "^7.1.6", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-hook": "^3.0.0", - "istanbul-lib-instrument": "^4.0.0", - "istanbul-lib-processinfo": "^2.0.2", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.0.2", - "make-dir": "^3.0.0", - "node-preload": "^0.2.1", - "p-map": "^3.0.0", - "process-on-spawn": "^1.0.0", - "resolve-from": "^5.0.0", - "rimraf": "^3.0.0", - "signal-exit": "^3.0.2", - "spawn-wrap": "^2.0.0", - "test-exclude": "^6.0.0", - "yargs": "^15.0.2" - }, - "bin": { - "nyc": "bin/nyc.js" + "isobject": "^3.0.1" }, "engines": { - "node": ">=8.9" + "node": ">=0.10.0" } }, - "node_modules/nyc/node_modules/ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "node_modules/object.pick/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", "dev": true, "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, - "node_modules/nyc/node_modules/ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "dependencies": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/nyc/node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/nyc/node_modules/cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" + "wrappy": "1" } }, - "node_modules/nyc/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/onetime": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz", + "integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==", "dev": true, "dependencies": { - "color-name": "~1.1.4" + "mimic-fn": "^2.1.0" }, "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/nyc/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/nyc/node_modules/convert-source-map": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", - "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.1.1" + "node": ">=6" } }, - "node_modules/nyc/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/nyc/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "node_modules/optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", "dev": true, "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" }, "engines": { - "node": ">=8" + "node": ">= 0.8.0" } }, - "node_modules/nyc/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "node_modules/p-each-series": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", + "integrity": "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==", "dev": true, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/nyc/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "node_modules/p-filter": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-filter/-/p-filter-2.1.0.tgz", + "integrity": "sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw==", "dev": true, "dependencies": { - "p-locate": "^4.1.0" + "p-map": "^2.0.0" }, "engines": { "node": ">=8" } }, - "node_modules/nyc/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "node_modules/p-is-promise": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-3.0.0.tgz", + "integrity": "sha512-Wo8VsW4IRQSKVXsJCn7TomUaVtyfjVDn3nUP7kE967BQk0CwFpdbZs0X0uk5sW9mkBa9eNM7hCMaG93WUAwxYQ==", "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, - "node_modules/nyc/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "node_modules/p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", "dev": true, "dependencies": { - "p-limit": "^2.2.0" + "p-try": "^1.0.0" }, "engines": { - "node": ">=8" + "node": ">=4" } }, - "node_modules/nyc/node_modules/p-map": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz", - "integrity": "sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==", + "node_modules/p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", "dev": true, "dependencies": { - "aggregate-error": "^3.0.0" + "p-limit": "^1.1.0" }, "engines": { - "node": ">=8" + "node": ">=4" } }, - "node_modules/nyc/node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "node_modules/p-map": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", + "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", "dev": true, "engines": { "node": ">=6" } }, - "node_modules/nyc/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "node_modules/p-reduce": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-reduce/-/p-reduce-2.1.0.tgz", + "integrity": "sha512-2USApvnsutq8uoxZBGbbWM0JIYLiEMJ9RlaN7fAzVNb9OZN0SHjjTTfIcb667XynS5Y1VhwDJVDa72TnPzAYWw==", "dev": true, "engines": { "node": ">=8" } }, - "node_modules/nyc/node_modules/string-width": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", - "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", + "node_modules/p-retry": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.5.0.tgz", + "integrity": "sha512-5Hwh4aVQSu6BEP+w2zKlVXtFAaYQe1qWuVADSgoeVlLjwe/Q/AMSoRR4MDeaAfu8llT+YNbEijWu/YF3m6avkg==", "dev": true, "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" + "@types/retry": "^0.12.0", + "retry": "^0.12.0" }, "engines": { "node": ">=8" } }, - "node_modules/nyc/node_modules/strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "node_modules/p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", "dev": true, - "dependencies": { - "ansi-regex": "^5.0.0" - }, "engines": { - "node": ">=8" + "node": ">=4" } }, - "node_modules/nyc/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" + "callsites": "^3.0.0" }, "engines": { - "node": ">=8" + "node": ">=6" } }, - "node_modules/nyc/node_modules/yargs": { - "version": "15.3.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.3.1.tgz", - "integrity": "sha512-92O1HWEjw27sBfgmXiixJWT5hRBp2eobqXicLtPBIDBhYB+1HpwZlXmbW2luivBJHBzki+7VyCLRtAkScbTBQA==", + "node_modules/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", "dev": true, "dependencies": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.1" + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" }, "engines": { - "node": ">=8" + "node": ">=4" } }, - "node_modules/nyc/node_modules/yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "node_modules/path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", "dev": true, - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - }, "engines": { - "node": ">=6" + "node": ">=4" } }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/object-get": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/object-get/-/object-get-2.1.1.tgz", - "integrity": "sha512-7n4IpLMzGGcLEMiQKsNR7vCe+N5E9LORFrtNUVy4sO3dj9a3HedZCxEL2T7QuLhcHN1NBuBsMOKaOsAYI9IIvg==", - "dev": true - }, - "node_modules/object-inspect": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.7.0.tgz", - "integrity": "sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw==", + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=8" } }, - "node_modules/object-keys": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz", - "integrity": "sha1-KKaq50KN0sOpLz2V8hM13SBOAzY=", - "dev": true - }, - "node_modules/object-to-spawn-args": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-to-spawn-args/-/object-to-spawn-args-1.1.1.tgz", - "integrity": "sha1-d9qIJ/Bz0BHJ4bFz+JV4FHAkZ4U=", + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, - "node_modules/object.assign": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", - "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", + "node_modules/path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", "dev": true, "dependencies": { - "define-properties": "^1.1.2", - "function-bind": "^1.1.1", - "has-symbols": "^1.0.0", - "object-keys": "^1.0.11" + "pify": "^3.0.0" }, "engines": { - "node": ">= 0.4" + "node": ">=4" } }, - "node_modules/object.assign/node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "node_modules/picomatch": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", + "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", "dev": true, "engines": { - "node": ">= 0.4" + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/object.getownpropertydescriptors": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.0.tgz", - "integrity": "sha512-Z53Oah9A3TdLoblT7VKJaTDdXdT+lQO+cNpKVnya5JDe9uLvzu1YyY1yFDFrcxrlRgWrEFH0jJtD/IbuwjcEVg==", + "node_modules/pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", "dev": true, - "dependencies": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.0-next.1" - }, "engines": { - "node": ">= 0.8" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=4" } }, - "node_modules/object.pick": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "node_modules/pkg-conf": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-2.1.0.tgz", + "integrity": "sha1-ISZRTKbyq/69FoWW3xi6V4Z/AFg=", "dev": true, "dependencies": { - "isobject": "^3.0.1" + "find-up": "^2.0.0", + "load-json-file": "^4.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/object.pick/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">= 0.8.0" } }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", "dev": true, - "dependencies": { - "wrappy": "1" + "engines": { + "node": ">=0.4.0" } }, - "node_modules/onetime": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz", - "integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==", + "node_modules/pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", "dev": true, "dependencies": { - "mimic-fn": "^2.1.0" - }, + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true, "engines": { "node": ">=6" } }, - "node_modules/opener": { + "node_modules/q": { "version": "1.5.1", - "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.1.tgz", - "integrity": "sha512-goYSy5c2UXE4Ra1xixabeVh1guIX/ZV/YokJksb6q2lubWu6UbvPQ20p542/sFIll1nl8JnCyK9oBaOcCWXwvA==", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", "dev": true, - "bin": { - "opener": "bin/opener-bin.js" + "engines": { + "node": ">=0.6.0", + "teleport": ">=0.2.0" } }, - "node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/quick-lru": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-1.1.0.tgz", + "integrity": "sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g=", "dev": true, - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - }, "engines": { - "node": ">= 0.8.0" + "node": ">=4" } }, - "node_modules/os-browserify": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", - "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", + "node_modules/ramda": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.27.0.tgz", + "integrity": "sha512-pVzZdDpWwWqEVVLshWUHjNwuVP7SfcmPraYuqocJp1yo2U1R7P+5QAfDhdItkuoGqIBnBYrtPp7rEPqDn9HlZA==", "dev": true }, - "node_modules/p-each-series": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", - "integrity": "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==", + "node_modules/randomatic": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", + "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", "dev": true, - "engines": { - "node": ">=8" + "dependencies": { + "is-number": "^4.0.0", + "kind-of": "^6.0.0", + "math-random": "^1.0.1" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">= 0.10.0" } }, - "node_modules/p-filter": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-filter/-/p-filter-2.1.0.tgz", - "integrity": "sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw==", + "node_modules/randomatic/node_modules/is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", "dev": true, - "dependencies": { - "p-map": "^2.0.0" - }, "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, - "node_modules/p-is-promise": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-3.0.0.tgz", - "integrity": "sha512-Wo8VsW4IRQSKVXsJCn7TomUaVtyfjVDn3nUP7kE967BQk0CwFpdbZs0X0uk5sW9mkBa9eNM7hCMaG93WUAwxYQ==", + "node_modules/randomatic/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true, "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, - "node_modules/p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "node_modules/rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", "dev": true, "dependencies": { - "p-try": "^1.0.0" + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" }, - "engines": { - "node": ">=4" + "bin": { + "rc": "cli.js" } }, - "node_modules/p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "node_modules/read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", "dev": true, "dependencies": { - "p-limit": "^1.1.0" + "load-json-file": "^4.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^3.0.0" }, "engines": { "node": ">=4" } }, - "node_modules/p-map": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", - "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", + "node_modules/read-pkg-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", + "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", "dev": true, + "dependencies": { + "find-up": "^2.0.0", + "read-pkg": "^3.0.0" + }, "engines": { - "node": ">=6" + "node": ">=4" } }, - "node_modules/p-reduce": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-reduce/-/p-reduce-2.1.0.tgz", - "integrity": "sha512-2USApvnsutq8uoxZBGbbWM0JIYLiEMJ9RlaN7fAzVNb9OZN0SHjjTTfIcb667XynS5Y1VhwDJVDa72TnPzAYWw==", + "node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", "dev": true, - "engines": { - "node": ">=8" + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, - "node_modules/p-retry": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.5.0.tgz", - "integrity": "sha512-5Hwh4aVQSu6BEP+w2zKlVXtFAaYQe1qWuVADSgoeVlLjwe/Q/AMSoRR4MDeaAfu8llT+YNbEijWu/YF3m6avkg==", + "node_modules/redent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", + "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", "dev": true, "dependencies": { - "@types/retry": "^0.12.0", - "retry": "^0.12.0" + "indent-string": "^3.0.0", + "strip-indent": "^2.0.0" }, "engines": { - "node": ">=8" + "node": ">=4" } }, - "node_modules/p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "node_modules/redeyed": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/redeyed/-/redeyed-2.1.1.tgz", + "integrity": "sha1-iYS1gV2ZyyIEacme7v/jiRPmzAs=", "dev": true, - "engines": { - "node": ">=4" + "dependencies": { + "esprima": "~4.0.0" } }, - "node_modules/package-hash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/package-hash/-/package-hash-4.0.0.tgz", - "integrity": "sha512-whdkPIooSu/bASggZ96BWVvZTRMOFxnyUG5PnTSGKoJE2gd5mbVNmR2Nj20QFzxYYgAXpoqC+AiXzl+UMRh7zQ==", + "node_modules/regexpp": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz", + "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==", "dev": true, - "dependencies": { - "graceful-fs": "^4.1.15", - "hasha": "^5.0.0", - "lodash.flattendeep": "^4.4.0", - "release-zalgo": "^1.0.0" - }, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" } }, - "node_modules/pako": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", - "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", - "dev": true - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "node_modules/registry-auth-token": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.1.1.tgz", + "integrity": "sha512-9bKS7nTl9+/A1s7tnPeGrUpRcVY+LUh7bfFgzpndALdPfXQBfQV77rQVtqgUV3ti4vc/Ik81Ex8UJDWDQ12zQA==", "dev": true, "dependencies": { - "callsites": "^3.0.0" + "rc": "^1.2.8" }, "engines": { - "node": ">=6" + "node": ">=6.0.0" } }, - "node_modules/parents": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parents/-/parents-1.0.1.tgz", - "integrity": "sha1-/t1NK/GTp3dF/nHjcdc8MwfZx1E=", + "node_modules/remarkable": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/remarkable/-/remarkable-1.7.4.tgz", + "integrity": "sha512-e6NKUXgX95whv7IgddywbeN/ItCkWbISmc2DiqHJb0wTrqZIexqdco5b8Z3XZoo/48IdNVKM9ZCvTPJ4F5uvhg==", "dev": true, "dependencies": { - "path-platform": "~0.11.15" - } - }, - "node_modules/parse-asn1": { - "version": "5.1.5", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.5.tgz", - "integrity": "sha512-jkMYn1dcJqF6d5CpU689bq7w/b5ALS9ROVSpQDPrZsqqesUJii9qutvoT5ltGedNXMO2e16YUWIghG9KxaViTQ==", - "dev": true, - "dependencies": { - "asn1.js": "^4.0.0", - "browserify-aes": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.0", - "pbkdf2": "^3.0.3", - "safe-buffer": "^5.1.1" - } - }, - "node_modules/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", - "dev": true, - "dependencies": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" + "argparse": "^1.0.10", + "autolinker": "~0.28.0" + }, + "bin": { + "remarkable": "bin/remarkable.js" }, "engines": { - "node": ">=4" + "node": ">= 0.10.0" } }, - "node_modules/patch-text": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/patch-text/-/patch-text-1.0.2.tgz", - "integrity": "sha1-S/NuZeUXM9bpjwz2LgkDTaoDSKw=", + "node_modules/repeat-element": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", + "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/path-browserify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", - "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", - "dev": true - }, - "node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "node_modules/repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", "dev": true, "engines": { - "node": ">=4" + "node": ">=0.10" } }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", "dev": true, "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true + "node_modules/resolve": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.16.1.tgz", + "integrity": "sha512-rmAglCSqWWMrrBv/XM6sW0NuRFiKViw/W4d9EbC4pt+49H8JwHy+mcGmALTEg504AUDcLTvb1T2q3E9AnmY+ig==", + "dev": true, + "dependencies": { + "path-parse": "^1.0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "node_modules/path-platform": { - "version": "0.11.15", - "resolved": "https://registry.npmjs.org/path-platform/-/path-platform-0.11.15.tgz", - "integrity": "sha1-6GQhf3TDaFDwhSt43Hv31KVyG/I=", + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, "engines": { - "node": ">= 0.8.0" + "node": ">=8" } }, - "node_modules/path-type": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "node_modules/ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", "dev": true, - "dependencies": { - "pify": "^3.0.0" - }, "engines": { - "node": ">=4" + "node": ">=0.12" } }, - "node_modules/pathval": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", - "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", + "node_modules/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", + "integrity": "sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs=", "dev": true, "engines": { - "node": "*" + "node": ">= 4" } }, - "node_modules/pause-stream": { - "version": "0.0.11", - "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", - "integrity": "sha1-/lo0sMvOErWqaitAPuLnO2AvFEU=", + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", "dev": true, - "dependencies": { - "through": "~2.3" + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" } }, - "node_modules/pbkdf2": { - "version": "3.0.17", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.17.tgz", - "integrity": "sha512-U/il5MsrZp7mGg3mSQfn742na2T+1/vHDCG5/iTI3X9MKUuYUZVLQhyRsg06mCgDBTd57TxzgZt7P+fYfjRLtA==", + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dev": true, "dependencies": { - "create-hash": "^1.1.2", - "create-hmac": "^1.1.4", - "ripemd160": "^2.0.1", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" + "glob": "^7.1.3" }, - "engines": { - "node": ">=0.12" + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/pend": { + "node_modules/run-parallel": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=", - "dev": true - }, - "node_modules/picomatch": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", - "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" } }, - "node_modules/pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", "dev": true, - "engines": { - "node": ">=4" + "dependencies": { + "ret": "~0.1.10" } }, - "node_modules/pkg-conf": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-2.1.0.tgz", - "integrity": "sha1-ISZRTKbyq/69FoWW3xi6V4Z/AFg=", + "node_modules/semantic-release": { + "version": "17.4.3", + "resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-17.4.3.tgz", + "integrity": "sha512-lTOUSrkbaQ+TRs3+BmtJhLtPSyiO7iTGmh5SyuEFqNO8HQbQ4nzXg4UlPrDQasO/C0eFK/V0eCbOzJdjtKBOYw==", "dev": true, "dependencies": { - "find-up": "^2.0.0", - "load-json-file": "^4.0.0" + "@semantic-release/commit-analyzer": "^8.0.0", + "@semantic-release/error": "^2.2.0", + "@semantic-release/github": "^7.0.0", + "@semantic-release/npm": "^7.0.0", + "@semantic-release/release-notes-generator": "^9.0.0", + "aggregate-error": "^3.0.0", + "cosmiconfig": "^7.0.0", + "debug": "^4.0.0", + "env-ci": "^5.0.0", + "execa": "^5.0.0", + "figures": "^3.0.0", + "find-versions": "^4.0.0", + "get-stream": "^6.0.0", + "git-log-parser": "^1.2.0", + "hook-std": "^2.0.0", + "hosted-git-info": "^4.0.0", + "lodash": "^4.17.21", + "marked": "^2.0.0", + "marked-terminal": "^4.1.1", + "micromatch": "^4.0.2", + "p-each-series": "^2.1.0", + "p-reduce": "^2.0.0", + "read-pkg-up": "^7.0.0", + "resolve-from": "^5.0.0", + "semver": "^7.3.2", + "semver-diff": "^3.1.1", + "signale": "^1.2.1", + "yargs": "^16.2.0" + }, + "bin": { + "semantic-release": "bin/semantic-release.js" }, "engines": { - "node": ">=4" + "node": ">=10.18" } }, - "node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "node_modules/semantic-release/node_modules/ansi-regex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", "dev": true, - "dependencies": { - "find-up": "^4.0.0" - }, "engines": { "node": ">=8" } }, - "node_modules/pkg-dir/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "node_modules/semantic-release/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" + "color-convert": "^2.0.1" }, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/pkg-dir/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "node_modules/semantic-release/node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dev": true, "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" } }, - "node_modules/pkg-dir/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "node_modules/semantic-release/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "dependencies": { - "p-try": "^2.0.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=7.0.0" } }, - "node_modules/pkg-dir/node_modules/p-locate": { + "node_modules/semantic-release/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/semantic-release/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/semantic-release/node_modules/find-up": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "dependencies": { - "p-limit": "^2.2.0" + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" }, "engines": { "node": ">=8" } }, - "node_modules/pkg-dir/node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "node_modules/semantic-release/node_modules/hosted-git-info": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", + "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==", "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, "engines": { - "node": ">=6" + "node": ">=10" } }, - "node_modules/pkg-dir/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "node_modules/semantic-release/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, "engines": { "node": ">=8" } }, - "node_modules/portfinder": { - "version": "1.0.28", - "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.28.tgz", - "integrity": "sha512-Se+2isanIcEqf2XMHjyUKskczxbPH7dQnlMjXX6+dybayyHvAf/TCgyMRlzf/B6QDhAEFOGes0pzRo3by4AbMA==", + "node_modules/semantic-release/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, "dependencies": { - "async": "^2.6.2", - "debug": "^3.1.1", - "mkdirp": "^0.5.5" + "p-locate": "^4.1.0" }, "engines": { - "node": ">= 0.12.0" + "node": ">=8" } }, - "node_modules/portfinder/node_modules/debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "deprecated": "Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)", + "node_modules/semantic-release/node_modules/marked": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/marked/-/marked-2.0.3.tgz", + "integrity": "sha512-5otztIIcJfPc2qGTN8cVtOJEjNJZ0jwa46INMagrYfk0EvqtRuEHLsEe0LrFS0/q+ZRKT0+kXK7P2T1AN5lWRA==", "dev": true, - "dependencies": { - "ms": "^2.1.1" + "bin": { + "marked": "bin/marked" + }, + "engines": { + "node": ">= 8.16.2" } }, - "node_modules/portfinder/node_modules/mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "node_modules/semantic-release/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "dependencies": { - "minimist": "^1.2.5" + "p-try": "^2.0.0" }, - "bin": { - "mkdirp": "bin/cmd.js" + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "node_modules/semantic-release/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, "engines": { - "node": ">= 0.8.0" + "node": ">=8" } }, - "node_modules/process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", + "node_modules/semantic-release/node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, "engines": { - "node": ">= 0.6.0" + "node": ">=6" } }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "dev": true - }, - "node_modules/process-on-spawn": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/process-on-spawn/-/process-on-spawn-1.0.0.tgz", - "integrity": "sha512-1WsPDsUSMmZH5LeMLegqkPDrsGgsWwk1Exipy2hvB0o/F0ASzbpIctSCcZIK1ykJvtTJULEH+20WOFjMvGnCTg==", + "node_modules/semantic-release/node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, "dependencies": { - "fromentries": "^1.2.0" + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" }, "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/progress": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "node_modules/semantic-release/node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, "engines": { - "node": ">=0.4.0" + "node": ">=8" } }, - "node_modules/proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", - "dev": true - }, - "node_modules/ps-tree": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/ps-tree/-/ps-tree-1.2.0.tgz", - "integrity": "sha512-0VnamPPYHl4uaU/nSFeZZpR21QAWRz+sRv4iW9+v/GS/J5U5iZB5BNN6J0RMoOvdx2gWM2+ZFMIm58q24e4UYA==", + "node_modules/semantic-release/node_modules/read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", "dev": true, "dependencies": { - "event-stream": "=3.3.4" - }, - "bin": { - "ps-tree": "bin/ps-tree.js" + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" }, "engines": { - "node": ">= 0.10" + "node": ">=8" } }, - "node_modules/public-encrypt": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", - "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", + "node_modules/semantic-release/node_modules/read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", "dev": true, "dependencies": { - "bn.js": "^4.1.0", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "parse-asn1": "^5.0.0", - "randombytes": "^2.0.1", - "safe-buffer": "^5.1.2" + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "node_modules/semantic-release/node_modules/read-pkg/node_modules/type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/semantic-release/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", "dev": true, "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, - "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "node_modules/semantic-release/node_modules/string-width": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", + "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" + }, "engines": { - "node": ">=6" + "node": ">=8" } }, - "node_modules/puppeteer": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-7.0.1.tgz", - "integrity": "sha512-04V05BKQdloUCOa7JyQBaNXPIiVByz1eAFAElcrpMHIQkfu22J0RKFhRWkXZGXdl03yoHuaZwqyB/qG7YJu5Ew==", + "node_modules/semantic-release/node_modules/strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", "dev": true, - "hasInstallScript": true, "dependencies": { - "debug": "^4.1.0", - "devtools-protocol": "0.0.847576", - "extract-zip": "^2.0.0", - "https-proxy-agent": "^5.0.0", - "node-fetch": "^2.6.1", - "pkg-dir": "^4.2.0", - "progress": "^2.0.1", - "proxy-from-env": "^1.0.0", - "rimraf": "^3.0.2", - "tar-fs": "^2.0.0", - "unbzip2-stream": "^1.3.3", - "ws": "^7.2.3" + "ansi-regex": "^5.0.0" }, "engines": { - "node": ">=10.18.1" + "node": ">=8" } }, - "node_modules/q": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", + "node_modules/semantic-release/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", "dev": true, "engines": { - "node": ">=0.6.0", - "teleport": ">=0.2.0" + "node": ">=8" } }, - "node_modules/qs": { - "version": "6.9.4", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.9.4.tgz", - "integrity": "sha512-A1kFqHekCTM7cz0udomYUoYNWjBebHm/5wzU/XqrBRBNWectVH0QIiN+NEcZ0Dte5hvzHwbr8+XQmguPhJ6WdQ==", + "node_modules/semantic-release/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, "engines": { - "node": ">=0.6" + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", - "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", + "node_modules/semantic-release/node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true, "engines": { - "node": ">=0.4.x" + "node": ">=10" } }, - "node_modules/querystring-es3": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", - "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", + "node_modules/semantic-release/node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "dev": true, + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, "engines": { - "node": ">=0.4.x" + "node": ">=10" } }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/quick-lru": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-1.1.0.tgz", - "integrity": "sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g=", + "node_modules/semantic-release/node_modules/yargs-parser": { + "version": "20.2.7", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.7.tgz", + "integrity": "sha512-FiNkvbeHzB/syOjIUxFDCnhSfzAL8R5vs40MgLFBorXACCOAEaWu0gRZl14vG8MR9AOJIZbmkjhusqBYZ3HTHw==", "dev": true, "engines": { - "node": ">=4" + "node": ">=10" } }, - "node_modules/ramda": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.27.0.tgz", - "integrity": "sha512-pVzZdDpWwWqEVVLshWUHjNwuVP7SfcmPraYuqocJp1yo2U1R7P+5QAfDhdItkuoGqIBnBYrtPp7rEPqDn9HlZA==", - "dev": true + "node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } }, - "node_modules/randomatic": { + "node_modules/semver-diff": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", - "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", + "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", + "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", "dev": true, "dependencies": { - "is-number": "^4.0.0", - "kind-of": "^6.0.0", - "math-random": "^1.0.1" + "semver": "^6.3.0" }, "engines": { - "node": ">= 0.10.0" + "node": ">=8" } }, - "node_modules/randomatic/node_modules/is-number": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", - "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "node_modules/semver-diff/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true, - "engines": { - "node": ">=0.10.0" + "bin": { + "semver": "bin/semver.js" } }, - "node_modules/randomatic/node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "node_modules/semver-regex": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.3.tgz", + "integrity": "sha512-Aqi54Mk9uYTjVexLnR67rTyBusmwd04cLkHy9hNvk3+G3nT2Oyg7E0l4XVbOaNwIvQ3hHeYxGcyEy+mKreyBFQ==", "dev": true, "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, - "dependencies": { - "safe-buffer": "^5.1.0" - } - }, - "node_modules/randomfill": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", - "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", - "dev": true, - "dependencies": { - "randombytes": "^2.0.5", - "safe-buffer": "^5.1.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "node_modules/set-getter": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/set-getter/-/set-getter-0.1.1.tgz", + "integrity": "sha512-9sVWOy+gthr+0G9DzqqLaYNA7+5OKkSmcqjL9cBpDEaZrr3ShQlyX2cZ/O/ozE41oxn/Tt0LGEM/w4Rub3A3gw==", "dev": true, "dependencies": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" + "to-object-path": "^0.3.0" }, - "bin": { - "rc": "cli.js" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/read-only-stream": { + "node_modules/shebang-command": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/read-only-stream/-/read-only-stream-2.0.0.tgz", - "integrity": "sha1-JyT9aoET1zdkrCiNQ4YnDB2/F/A=", - "dev": true, - "dependencies": { - "readable-stream": "^2.0.2" - } - }, - "node_modules/read-pkg": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, "dependencies": { - "load-json-file": "^4.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^3.0.0" + "shebang-regex": "^3.0.0" }, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/read-pkg-up": { + "node_modules/shebang-regex": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", - "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, - "dependencies": { - "find-up": "^2.0.0", - "read-pkg": "^3.0.0" - }, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "dev": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } + "node_modules/signal-exit": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", + "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", + "dev": true }, - "node_modules/rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", + "node_modules/signale": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/signale/-/signale-1.4.0.tgz", + "integrity": "sha512-iuh+gPf28RkltuJC7W5MRi6XAjTDCAPC/prJUpQoG4vIP3MJZ+GTydVnodXA7pwvTKb2cA0m9OFZW/cdWy/I/w==", "dev": true, "dependencies": { - "resolve": "^1.1.6" + "chalk": "^2.3.2", + "figures": "^2.0.0", + "pkg-conf": "^2.1.0" }, "engines": { - "node": ">= 0.10" + "node": ">=6" } }, - "node_modules/redent": { + "node_modules/signale/node_modules/figures": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", - "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", + "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", + "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", "dev": true, "dependencies": { - "indent-string": "^3.0.0", - "strip-indent": "^2.0.0" + "escape-string-regexp": "^1.0.5" }, "engines": { "node": ">=4" } }, - "node_modules/redeyed": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/redeyed/-/redeyed-2.1.1.tgz", - "integrity": "sha1-iYS1gV2ZyyIEacme7v/jiRPmzAs=", + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, - "dependencies": { - "esprima": "~4.0.0" + "engines": { + "node": ">=8" } }, - "node_modules/reduce-extract": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/reduce-extract/-/reduce-extract-1.0.0.tgz", - "integrity": "sha1-Z/I4W+2mUGG19fQxJmLosIDKFSU=", + "node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", "dev": true, "dependencies": { - "test-value": "^1.0.1" + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" } }, - "node_modules/reduce-extract/node_modules/array-back": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", - "integrity": "sha1-ZEun8JX3/898Q7Xw3DnTwfA8Bjs=", + "node_modules/slice-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "dependencies": { - "typical": "^2.6.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=0.12.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/reduce-extract/node_modules/test-value": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/test-value/-/test-value-1.1.0.tgz", - "integrity": "sha1-oJE29y7AQ9J8iTcHwrFZv6196T8=", + "node_modules/slice-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "dependencies": { - "array-back": "^1.0.2", - "typical": "^2.4.2" + "color-name": "~1.1.4" }, "engines": { - "node": ">=0.10.0" + "node": ">=7.0.0" } }, - "node_modules/reduce-flatten": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-1.0.1.tgz", - "integrity": "sha1-JYx479FT3fk8tWEjf2EYTzaW4yc=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "node_modules/slice-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, - "node_modules/reduce-unique": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/reduce-unique/-/reduce-unique-2.0.1.tgz", - "integrity": "sha512-x4jH/8L1eyZGR785WY+ePtyMNhycl1N2XOLxhCbzZFaqF4AXjLzqSxa2UHgJ2ZVR/HHyPOvl1L7xRnW8ye5MdA==", + "node_modules/slice-ansi/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, "engines": { - "node": ">=6" + "node": ">=8" } }, - "node_modules/reduce-without": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/reduce-without/-/reduce-without-1.0.1.tgz", - "integrity": "sha1-aK0OrRGFXJo31OglbBW7+Hly/Iw=", + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, - "dependencies": { - "test-value": "^2.0.0" - }, "engines": { "node": ">=0.10.0" } }, - "node_modules/reduce-without/node_modules/array-back": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", - "integrity": "sha1-ZEun8JX3/898Q7Xw3DnTwfA8Bjs=", - "dev": true, - "dependencies": { - "typical": "^2.6.0" - }, - "engines": { - "node": ">=0.12.0" - } + "node_modules/spawn-error-forwarder": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/spawn-error-forwarder/-/spawn-error-forwarder-1.0.0.tgz", + "integrity": "sha1-Gv2Uc46ZmwNG17n8NzvlXgdXcCk=", + "dev": true }, - "node_modules/reduce-without/node_modules/test-value": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/test-value/-/test-value-2.1.0.tgz", - "integrity": "sha1-Edpv9nDzRxpztiXKTz/c97t0gpE=", + "node_modules/spdx-correct": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", + "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", "dev": true, "dependencies": { - "array-back": "^1.0.3", - "typical": "^2.6.0" - }, - "engines": { - "node": ">=0.10.0" + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" } }, - "node_modules/regexpp": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz", - "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==", + "node_modules/spdx-exceptions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", + "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", + "dev": true + }, + "node_modules/spdx-expression-parse": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", + "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" } }, - "node_modules/registry-auth-token": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.1.1.tgz", - "integrity": "sha512-9bKS7nTl9+/A1s7tnPeGrUpRcVY+LUh7bfFgzpndALdPfXQBfQV77rQVtqgUV3ti4vc/Ik81Ex8UJDWDQ12zQA==", + "node_modules/spdx-license-ids": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz", + "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==", + "dev": true + }, + "node_modules/split": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", + "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", "dev": true, "dependencies": { - "rc": "^1.2.8" + "through": "2" }, "engines": { - "node": ">=6.0.0" + "node": "*" } }, - "node_modules/release-zalgo": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/release-zalgo/-/release-zalgo-1.0.0.tgz", - "integrity": "sha1-CXALflB0Mpc5Mw5TXFqQ+2eFFzA=", + "node_modules/split2": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-2.2.0.tgz", + "integrity": "sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw==", "dev": true, "dependencies": { - "es6-error": "^4.0.1" - }, - "engines": { - "node": ">=4" + "through2": "^2.0.2" } }, - "node_modules/remarkable": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/remarkable/-/remarkable-1.7.4.tgz", - "integrity": "sha512-e6NKUXgX95whv7IgddywbeN/ItCkWbISmc2DiqHJb0wTrqZIexqdco5b8Z3XZoo/48IdNVKM9ZCvTPJ4F5uvhg==", + "node_modules/split2/node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", "dev": true, "dependencies": { - "argparse": "^1.0.10", - "autolinker": "~0.28.0" - }, - "bin": { - "remarkable": "bin/remarkable.js" - }, - "engines": { - "node": ">= 0.10.0" + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" } }, - "node_modules/rename-function-calls": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/rename-function-calls/-/rename-function-calls-0.1.1.tgz", - "integrity": "sha1-f4M2nAB6MAf2q+MDPM+BaGoQjgE=", + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "node_modules/stream-combiner2": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", + "integrity": "sha1-+02KFCDqNidk4hrUeAOXvry0HL4=", "dev": true, "dependencies": { - "detective": "~3.1.0" + "duplexer2": "~0.1.0", + "readable-stream": "^2.0.2" } }, - "node_modules/rename-function-calls/node_modules/detective": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detective/-/detective-3.1.0.tgz", - "integrity": "sha1-d3gkRKt1K4jKG+Lp0KA5Xx2iXu0=", + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "dependencies": { - "escodegen": "~1.1.0", - "esprima-fb": "3001.1.0-dev-harmony-fb" + "safe-buffer": "~5.1.0" } }, - "node_modules/rename-function-calls/node_modules/esprima-fb": { - "version": "3001.1.0-dev-harmony-fb", - "resolved": "https://registry.npmjs.org/esprima-fb/-/esprima-fb-3001.0001.0000-dev-harmony-fb.tgz", - "integrity": "sha1-t303q8046gt3Qmu4vCkizmtCZBE=", + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, "engines": { - "node": ">=0.4.0" + "node": ">=4" } }, - "node_modules/repeat-element": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", - "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", + "node_modules/strip-color": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/strip-color/-/strip-color-0.1.0.tgz", + "integrity": "sha1-EG9l09PmotlAHKwOsM6LinArT3s=", "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true, "engines": { - "node": ">=0.10" + "node": ">=6" } }, - "node_modules/replace-requires": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/replace-requires/-/replace-requires-1.0.4.tgz", - "integrity": "sha1-AUtzMLa54lV7cQQ7ZvsCZgw79mc=", + "node_modules/strip-indent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", + "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", "dev": true, - "dependencies": { - "detective": "^4.5.0", - "has-require": "~1.2.1", - "patch-text": "~1.0.2", - "xtend": "~4.0.0" - }, "engines": { "node": ">=0.10.0" } }, - "node_modules/replace-requires/node_modules/acorn": { - "version": "5.7.4", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.4.tgz", - "integrity": "sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg==", + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, - "bin": { - "acorn": "bin/acorn" + "dependencies": { + "has-flag": "^3.0.0" }, "engines": { - "node": ">=0.4.0" + "node": ">=4" } }, - "node_modules/replace-requires/node_modules/detective": { - "version": "4.7.1", - "resolved": "https://registry.npmjs.org/detective/-/detective-4.7.1.tgz", - "integrity": "sha512-H6PmeeUcZloWtdt4DAkFyzFL94arpHr3NOwwmVILFiy+9Qd4JTxxXrzfyGk/lmct2qVGBwTSwSXagqu2BxmWig==", + "node_modules/supports-hyperlinks": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.2.0.tgz", + "integrity": "sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ==", "dev": true, "dependencies": { - "acorn": "^5.2.1", - "defined": "^1.0.0" + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "node_modules/supports-hyperlinks/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "node_modules/supports-hyperlinks/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true - }, - "node_modules/requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=", - "dev": true - }, - "node_modules/requizzle": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.3.tgz", - "integrity": "sha512-YanoyJjykPxGHii0fZP0uUPEXpvqfBDxWV7s6GKAiiOsiqhX6vHNyW3Qzdmqp/iq/ExbhaGbVrjB4ruEVSM4GQ==", + "node_modules/table": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/table/-/table-6.7.1.tgz", + "integrity": "sha512-ZGum47Yi6KOOFDE8m223td53ath2enHcYLgOCjGr5ngu8bdIARQk6mN/wRMv4yMRcHnCSnHbCEha4sobQx5yWg==", "dev": true, "dependencies": { - "lodash": "^4.17.14" + "ajv": "^8.0.1", + "lodash.clonedeep": "^4.5.0", + "lodash.truncate": "^4.4.2", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10.0.0" } }, - "node_modules/resolve": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.16.1.tgz", - "integrity": "sha512-rmAglCSqWWMrrBv/XM6sW0NuRFiKViw/W4d9EbC4pt+49H8JwHy+mcGmALTEg504AUDcLTvb1T2q3E9AnmY+ig==", + "node_modules/table/node_modules/ajv": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.5.0.tgz", + "integrity": "sha512-Y2l399Tt1AguU3BPRP9Fn4eN+Or+StUGWCUpbnFyXSo8NZ9S4uj+AG2pjs5apK+ZMOwYOz1+a+VKvKH7CudXgQ==", "dev": true, "dependencies": { - "path-parse": "^1.0.6" + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/resolve-from": { + "node_modules/table/node_modules/ansi-regex": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", "dev": true, "engines": { "node": ">=8" } }, - "node_modules/ret": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", - "dev": true, - "engines": { - "node": ">=0.12" - } + "node_modules/table/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true }, - "node_modules/retry": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", - "integrity": "sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs=", + "node_modules/table/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, "engines": { - "node": ">= 4" + "node": ">=8" } }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "node_modules/table/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/table/node_modules/string-width": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", + "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" + }, "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/ripemd160": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", - "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", - "dev": true, - "dependencies": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/rxjs": { - "version": "6.6.2", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.2.tgz", - "integrity": "sha512-BHdBMVoWC2sL26w//BCu3YzKT4s2jip/WhwsGEDmeKYBhKDZeYezVUnHatYB7L85v5xs0BAQmg6BEYJEKxBabg==", - "dev": true, - "dependencies": { - "tslib": "^1.9.0" - }, - "engines": { - "npm": ">=2.0.0" - } - }, - "node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "node_modules/safe-regex": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", - "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", - "dev": true, - "dependencies": { - "ret": "~0.1.10" - } - }, - "node_modules/secure-compare": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/secure-compare/-/secure-compare-3.0.1.tgz", - "integrity": "sha1-8aAymzCLIh+uN7mXTz1XjQypmeM=", - "dev": true - }, - "node_modules/semantic-release": { - "version": "17.4.3", - "resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-17.4.3.tgz", - "integrity": "sha512-lTOUSrkbaQ+TRs3+BmtJhLtPSyiO7iTGmh5SyuEFqNO8HQbQ4nzXg4UlPrDQasO/C0eFK/V0eCbOzJdjtKBOYw==", - "dev": true, - "dependencies": { - "@semantic-release/commit-analyzer": "^8.0.0", - "@semantic-release/error": "^2.2.0", - "@semantic-release/github": "^7.0.0", - "@semantic-release/npm": "^7.0.0", - "@semantic-release/release-notes-generator": "^9.0.0", - "aggregate-error": "^3.0.0", - "cosmiconfig": "^7.0.0", - "debug": "^4.0.0", - "env-ci": "^5.0.0", - "execa": "^5.0.0", - "figures": "^3.0.0", - "find-versions": "^4.0.0", - "get-stream": "^6.0.0", - "git-log-parser": "^1.2.0", - "hook-std": "^2.0.0", - "hosted-git-info": "^4.0.0", - "lodash": "^4.17.21", - "marked": "^2.0.0", - "marked-terminal": "^4.1.1", - "micromatch": "^4.0.2", - "p-each-series": "^2.1.0", - "p-reduce": "^2.0.0", - "read-pkg-up": "^7.0.0", - "resolve-from": "^5.0.0", - "semver": "^7.3.2", - "semver-diff": "^3.1.1", - "signale": "^1.2.1", - "yargs": "^16.2.0" - }, - "bin": { - "semantic-release": "bin/semantic-release.js" - }, - "engines": { - "node": ">=10.18" - } - }, - "node_modules/semantic-release/node_modules/ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/semantic-release/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/semantic-release/node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "node_modules/semantic-release/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/semantic-release/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/semantic-release/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/semantic-release/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/semantic-release/node_modules/hosted-git-info": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", - "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semantic-release/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/semantic-release/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/semantic-release/node_modules/marked": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/marked/-/marked-2.0.3.tgz", - "integrity": "sha512-5otztIIcJfPc2qGTN8cVtOJEjNJZ0jwa46INMagrYfk0EvqtRuEHLsEe0LrFS0/q+ZRKT0+kXK7P2T1AN5lWRA==", - "dev": true, - "bin": { - "marked": "bin/marked" - }, - "engines": { - "node": ">= 8.16.2" - } - }, - "node_modules/semantic-release/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/semantic-release/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/semantic-release/node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/semantic-release/node_modules/parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/semantic-release/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/semantic-release/node_modules/read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "dependencies": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/semantic-release/node_modules/read-pkg-up": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", - "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", - "dev": true, - "dependencies": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/semantic-release/node_modules/read-pkg/node_modules/type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/semantic-release/node_modules/semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semantic-release/node_modules/string-width": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", - "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/semantic-release/node_modules/strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/semantic-release/node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/semantic-release/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/semantic-release/node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/semantic-release/node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semantic-release/node_modules/yargs-parser": { - "version": "20.2.7", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.7.tgz", - "integrity": "sha512-FiNkvbeHzB/syOjIUxFDCnhSfzAL8R5vs40MgLFBorXACCOAEaWu0gRZl14vG8MR9AOJIZbmkjhusqBYZ3HTHw==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/semver-diff": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", - "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", - "dev": true, - "dependencies": { - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/semver-diff/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/semver-regex": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.3.tgz", - "integrity": "sha512-Aqi54Mk9uYTjVexLnR67rTyBusmwd04cLkHy9hNvk3+G3nT2Oyg7E0l4XVbOaNwIvQ3hHeYxGcyEy+mKreyBFQ==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true - }, - "node_modules/set-getter": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/set-getter/-/set-getter-0.1.1.tgz", - "integrity": "sha512-9sVWOy+gthr+0G9DzqqLaYNA7+5OKkSmcqjL9cBpDEaZrr3ShQlyX2cZ/O/ozE41oxn/Tt0LGEM/w4Rub3A3gw==", - "dev": true, - "dependencies": { - "to-object-path": "^0.3.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sha.js": { - "version": "2.4.11", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", - "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", - "dev": true, - "dependencies": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - }, - "bin": { - "sha.js": "bin.js" - } - }, - "node_modules/shasum": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz", - "integrity": "sha1-5wEjENj0F/TetXEhUOVni4euVl8=", - "dev": true, - "dependencies": { - "json-stable-stringify": "~0.0.0", - "sha.js": "~2.4.4" - } - }, - "node_modules/shasum-object": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shasum-object/-/shasum-object-1.0.0.tgz", - "integrity": "sha512-Iqo5rp/3xVi6M4YheapzZhhGPVs0yZwHj7wvwQ1B9z8H6zk+FEnI7y3Teq7qwnekfEhu8WmG2z0z4iWZaxLWVg==", - "dev": true, - "dependencies": { - "fast-safe-stringify": "^2.0.7" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/shell-quote": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.2.tgz", - "integrity": "sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==", - "dev": true - }, - "node_modules/shelljs": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", - "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", - "dev": true, - "dependencies": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - }, - "bin": { - "shjs": "bin/shjs" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/shx": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/shx/-/shx-0.3.3.tgz", - "integrity": "sha512-nZJ3HFWVoTSyyB+evEKjJ1STiixGztlqwKLTUNV5KqMWtGey9fTd4KU1gdZ1X9BV6215pswQ/Jew9NsuS/fNDA==", - "dev": true, - "dependencies": { - "minimist": "^1.2.3", - "shelljs": "^0.8.4" - }, - "bin": { - "shx": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/signal-exit": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", - "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", - "dev": true - }, - "node_modules/signale": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/signale/-/signale-1.4.0.tgz", - "integrity": "sha512-iuh+gPf28RkltuJC7W5MRi6XAjTDCAPC/prJUpQoG4vIP3MJZ+GTydVnodXA7pwvTKb2cA0m9OFZW/cdWy/I/w==", - "dev": true, - "dependencies": { - "chalk": "^2.3.2", - "figures": "^2.0.0", - "pkg-conf": "^2.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/signale/node_modules/figures": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", - "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", - "dev": true, - "dependencies": { - "escape-string-regexp": "^1.0.5" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/simple-concat": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.0.tgz", - "integrity": "sha1-c0TLuLbib7J9ZrL8hvn21Zl1IcY=", - "dev": true - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "node_modules/slice-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/slice-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/slice-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/slice-ansi/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/sort-array": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/sort-array/-/sort-array-2.0.0.tgz", - "integrity": "sha1-OKnG2if9fRR7QuYFVPKBGHtN9HI=", - "dev": true, - "dependencies": { - "array-back": "^1.0.4", - "object-get": "^2.1.0", - "typical": "^2.6.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/sort-array/node_modules/array-back": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", - "integrity": "sha1-ZEun8JX3/898Q7Xw3DnTwfA8Bjs=", - "dev": true, - "dependencies": { - "typical": "^2.6.0" - }, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/spawn-error-forwarder": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/spawn-error-forwarder/-/spawn-error-forwarder-1.0.0.tgz", - "integrity": "sha1-Gv2Uc46ZmwNG17n8NzvlXgdXcCk=", - "dev": true - }, - "node_modules/spawn-wrap": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/spawn-wrap/-/spawn-wrap-2.0.0.tgz", - "integrity": "sha512-EeajNjfN9zMnULLwhZZQU3GWBoFNkbngTUPfaawT4RkMiviTxcX0qfhVbGey39mfctfDHkWtuecgQ8NJcyQWHg==", - "dev": true, - "dependencies": { - "foreground-child": "^2.0.0", - "is-windows": "^1.0.2", - "make-dir": "^3.0.0", - "rimraf": "^3.0.0", - "signal-exit": "^3.0.2", - "which": "^2.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/spawn-wrap/node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/spdx-correct": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", - "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", - "dev": true, - "dependencies": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-exceptions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", - "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", - "dev": true - }, - "node_modules/spdx-expression-parse": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", - "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", - "dev": true, - "dependencies": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-license-ids": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz", - "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==", - "dev": true - }, - "node_modules/split": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", - "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", - "dev": true, - "dependencies": { - "through": "2" - }, - "engines": { - "node": "*" - } - }, - "node_modules/split2": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-2.2.0.tgz", - "integrity": "sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw==", - "dev": true, - "dependencies": { - "through2": "^2.0.2" - } - }, - "node_modules/split2/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dev": true, - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" - }, - "node_modules/start-server-and-test": { - "version": "1.11.3", - "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.11.3.tgz", - "integrity": "sha512-7r2lvcnJPECSG+ydMzk1wLt3MdzsHnYj+kXgKyzbvTXul5XYEmYJJ3K7YUGNgo5w/vnZb8L/AZMyg1C17qBdzg==", - "dev": true, - "dependencies": { - "bluebird": "3.7.2", - "check-more-types": "2.24.0", - "debug": "4.1.1", - "execa": "3.4.0", - "lazy-ass": "1.6.0", - "ps-tree": "1.2.0", - "wait-on": "5.2.0" - }, - "bin": { - "server-test": "src/bin/start.js", - "start-server-and-test": "src/bin/start.js", - "start-test": "src/bin/start.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/start-server-and-test/node_modules/execa": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-3.4.0.tgz", - "integrity": "sha512-r9vdGQk4bmCuK1yKQu1KTwcT2zwfWdbdaXfCtAh+5nU/4fSX+JAb7vZGvI5naJrQlvONrEB20jeruESI69530g==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.0", - "get-stream": "^5.0.0", - "human-signals": "^1.1.1", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.0", - "onetime": "^5.1.0", - "p-finally": "^2.0.0", - "signal-exit": "^3.0.2", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": "^8.12.0 || >=9.7.0" - } - }, - "node_modules/start-server-and-test/node_modules/get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dev": true, - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/start-server-and-test/node_modules/p-finally": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-2.0.1.tgz", - "integrity": "sha512-vpm09aKwq6H9phqRQzecoDpD8TmVyGw70qmWlyq5onxY7tqyTTFVvxMykxQSQKILBSFlbXpypIw2T1Ml7+DDtw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/stream-browserify": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", - "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", - "dev": true, - "dependencies": { - "inherits": "~2.0.1", - "readable-stream": "^2.0.2" - } - }, - "node_modules/stream-combiner": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz", - "integrity": "sha1-TV5DPBhSYd3mI8o/RMWGvPXErRQ=", - "dev": true, - "dependencies": { - "duplexer": "~0.1.1" - } - }, - "node_modules/stream-combiner2": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", - "integrity": "sha1-+02KFCDqNidk4hrUeAOXvry0HL4=", - "dev": true, - "dependencies": { - "duplexer2": "~0.1.0", - "readable-stream": "^2.0.2" - } - }, - "node_modules/stream-connect": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/stream-connect/-/stream-connect-1.0.2.tgz", - "integrity": "sha1-GLyB8u2zW4tdmoAJIAqYUxRCipc=", - "dev": true, - "dependencies": { - "array-back": "^1.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/stream-connect/node_modules/array-back": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", - "integrity": "sha1-ZEun8JX3/898Q7Xw3DnTwfA8Bjs=", - "dev": true, - "dependencies": { - "typical": "^2.6.0" - }, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/stream-http": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-3.1.0.tgz", - "integrity": "sha512-cuB6RgO7BqC4FBYzmnvhob5Do3wIdIsXAgGycHJnW+981gHqoYcYz9lqjJrk8WXRddbwPuqPYRl+bag6mYv4lw==", - "dev": true, - "dependencies": { - "builtin-status-codes": "^3.0.0", - "inherits": "^2.0.1", - "readable-stream": "^3.0.6", - "xtend": "^4.0.0" - } - }, - "node_modules/stream-http/node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/stream-splicer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/stream-splicer/-/stream-splicer-2.0.1.tgz", - "integrity": "sha512-Xizh4/NPuYSyAXyT7g8IvdJ9HJpxIGL9PjyhtywCZvvP0OPIdqyrr4dMikeuvY8xahpdKEBlBTySe583totajg==", - "dev": true, - "dependencies": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.2" - } - }, - "node_modules/stream-via": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/stream-via/-/stream-via-1.0.4.tgz", - "integrity": "sha512-DBp0lSvX5G9KGRDTkR/R+a29H+Wk2xItOF+MpZLLNDWbEV9tGPnqLPxHEYjmiz8xGtJHRIqmI+hCjmNzqoA4nQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "dependencies": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.1.tgz", - "integrity": "sha512-LRPxFUaTtpqYsTeNKaFOw3R4bxIzWOnbQ837QfBylo8jIxtcbK/A/sMV7Q+OAV/vWo+7s25pOE10KYSjaSO06g==", - "dev": true, - "dependencies": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.5" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimleft": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.2.tgz", - "integrity": "sha512-gCA0tza1JBvqr3bfAIFJGqfdRTyPae82+KTnm3coDXkZN9wnuW3HjGgN386D7hfv5CHQYCI022/rJPVlqXyHSw==", - "dev": true, - "dependencies": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.5", - "string.prototype.trimstart": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimright": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.2.tgz", - "integrity": "sha512-ZNRQ7sY3KroTaYjRS6EbNiiHrOkjihL9aQE/8gfQ4DtAC/aEBRHFJa44OmoWxGGqXuJlfKkZW4WcXErGr+9ZFg==", - "dev": true, - "dependencies": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.5", - "string.prototype.trimend": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.1.tgz", - "integrity": "sha512-XxZn+QpvrBI1FOcg6dIpxUPgWCPuNXvMD72aaRaUQv1eD4e/Qy8i/hFTe0BUmD60p/QA6bh1avmuPTfNjqVWRw==", - "dev": true, - "dependencies": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.5" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "dependencies": { - "ansi-regex": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-color": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/strip-color/-/strip-color-0.1.0.tgz", - "integrity": "sha1-EG9l09PmotlAHKwOsM6LinArT3s=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/strip-indent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", - "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/subarg": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz", - "integrity": "sha1-9izxdYHplrSPyWVpn1TAauJouNI=", - "dev": true, - "dependencies": { - "minimist": "^1.1.0" - } - }, - "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/supports-hyperlinks": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.2.0.tgz", - "integrity": "sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0", - "supports-color": "^7.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-hyperlinks/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-hyperlinks/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/syntax-error": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", - "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", - "dev": true, - "dependencies": { - "acorn-node": "^1.2.0" - } - }, - "node_modules/table": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/table/-/table-6.7.1.tgz", - "integrity": "sha512-ZGum47Yi6KOOFDE8m223td53ath2enHcYLgOCjGr5ngu8bdIARQk6mN/wRMv4yMRcHnCSnHbCEha4sobQx5yWg==", - "dev": true, - "dependencies": { - "ajv": "^8.0.1", - "lodash.clonedeep": "^4.5.0", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/table-layout": { - "version": "0.4.5", - "resolved": "https://registry.npmjs.org/table-layout/-/table-layout-0.4.5.tgz", - "integrity": "sha512-zTvf0mcggrGeTe/2jJ6ECkJHAQPIYEwDoqsiqBjI24mvRmQbInK5jq33fyypaCBxX08hMkfmdOqj6haT33EqWw==", - "dev": true, - "dependencies": { - "array-back": "^2.0.0", - "deep-extend": "~0.6.0", - "lodash.padend": "^4.6.1", - "typical": "^2.6.1", - "wordwrapjs": "^3.0.0" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/table-layout/node_modules/array-back": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", - "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", - "dev": true, - "dependencies": { - "typical": "^2.6.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/table/node_modules/ajv": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.5.0.tgz", - "integrity": "sha512-Y2l399Tt1AguU3BPRP9Fn4eN+Or+StUGWCUpbnFyXSo8NZ9S4uj+AG2pjs5apK+ZMOwYOz1+a+VKvKH7CudXgQ==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/table/node_modules/ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/table/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/table/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/table/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "node_modules/table/node_modules/string-width": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", - "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/table/node_modules/strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/taffydb": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/taffydb/-/taffydb-2.6.2.tgz", - "integrity": "sha1-fLy2S1oUG2ou/CxdLGe04VCyomg=", - "dev": true - }, - "node_modules/tar-fs": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", - "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", - "dev": true, - "dependencies": { - "chownr": "^1.1.1", - "mkdirp-classic": "^0.5.2", - "pump": "^3.0.0", - "tar-stream": "^2.1.4" - } - }, - "node_modules/tar-stream": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", - "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", - "dev": true, - "dependencies": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/tar-stream/node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/temp-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", - "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/temp-path": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/temp-path/-/temp-path-1.0.0.tgz", - "integrity": "sha1-JLFUOXOrRCiW2a02fdnL2/r+kYs=", - "dev": true - }, - "node_modules/tempy": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/tempy/-/tempy-0.5.0.tgz", - "integrity": "sha512-VEY96x7gbIRfsxqsafy2l5yVxxp3PhwAGoWMyC2D2Zt5DmEv+2tGiPOrquNRpf21hhGnKLVEsuqleqiZmKG/qw==", - "dev": true, - "dependencies": { - "is-stream": "^2.0.0", - "temp-dir": "^2.0.0", - "type-fest": "^0.12.0", - "unique-string": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/tempy/node_modules/type-fest": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.12.0.tgz", - "integrity": "sha512-53RyidyjvkGpnWPMF9bQgFtWp+Sl8O2Rp13VavmJgfAP9WWG6q6TkrKU8iyJdnwnfgHI6k2hTlgqH4aSdjoTbg==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ternary": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/ternary/-/ternary-1.0.0.tgz", - "integrity": "sha1-RXAnJWCMlJnUapYQ6bDkn/JveJ4=", - "dev": true - }, - "node_modules/test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, - "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/test-value": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/test-value/-/test-value-3.0.0.tgz", - "integrity": "sha512-sVACdAWcZkSU9x7AOmJo5TqE+GyNJknHaHsMrR6ZnhjVlVN9Yx6FjHrsKZ3BjIpPCT68zYesPWkakrNupwfOTQ==", - "dev": true, - "dependencies": { - "array-back": "^2.0.0", - "typical": "^2.6.1" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/test-value/node_modules/array-back": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", - "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", - "dev": true, - "dependencies": { - "typical": "^2.6.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/text-extensions": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-1.9.0.tgz", - "integrity": "sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==", - "dev": true, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", - "dev": true - }, - "node_modules/through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", - "dev": true - }, - "node_modules/through2": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", - "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", - "dev": true, - "dependencies": { - "readable-stream": "2 || 3" - } - }, - "node_modules/timers-browserify": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", - "integrity": "sha1-ycWLV1voQHN1y14kYtrO50NZ9B0=", - "dev": true, - "dependencies": { - "process": "~0.11.0" - }, - "engines": { - "node": ">=0.6.0" - } - }, - "node_modules/tiny-merge-patch": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/tiny-merge-patch/-/tiny-merge-patch-0.1.2.tgz", - "integrity": "sha1-Lo3tGcVuoV29OtTtXbHI5a1UTDw=" - }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/to-object-path": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/toml": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/toml/-/toml-2.3.6.tgz", - "integrity": "sha512-gVweAectJU3ebq//Ferr2JUY4WKSDe5N+z0FvjDncLGyHmIDoxgY/2Ie4qfEIDm4IS7OA6Rmdm7pdEEdMcV/xQ==", - "dev": true - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" - }, - "node_modules/transformify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/transformify/-/transformify-0.1.2.tgz", - "integrity": "sha1-mk9CoVRDPdcnuAV1Qoo8nlSJ6/E=", - "dev": true, - "dependencies": { - "readable-stream": "~1.1.9" - } - }, - "node_modules/transformify/node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - }, - "node_modules/transformify/node_modules/readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", - "dev": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "node_modules/transformify/node_modules/string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - }, - "node_modules/traverse": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.6.tgz", - "integrity": "sha1-y99WD9e5r2MlAv7UD5GMFX6pcTc=", - "dev": true - }, - "node_modules/trim-newlines": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", - "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/trim-off-newlines": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.3.tgz", - "integrity": "sha512-kh6Tu6GbeSNMGfrrZh6Bb/4ZEHV1QlB4xNDBeog8Y9/QwFlKTRyWvY3Fs9tRDAMZliVUwieMgEdIeL/FtqjkJg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/tsd-jsdoc": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tsd-jsdoc/-/tsd-jsdoc-2.5.0.tgz", - "integrity": "sha512-80fcJLAiUeerg4xPftp+iEEKWUjJjHk9AvcHwJqA8Zw0R4oASdu3kT/plE/Zj19QUTz8KupyOX25zStlNJjS9g==", - "dev": true, - "dependencies": { - "typescript": "^3.2.1" - }, - "peerDependencies": { - "jsdoc": "^3.6.3" - } - }, - "node_modules/tslib": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", - "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", - "dev": true - }, - "node_modules/tty-browserify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.1.tgz", - "integrity": "sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==", - "dev": true - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", - "dev": true - }, - "node_modules/typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "dev": true, - "dependencies": { - "is-typedarray": "^1.0.0" - } - }, - "node_modules/typescript": { - "version": "3.9.6", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.6.tgz", - "integrity": "sha512-Pspx3oKAPJtjNwE92YS05HQoY7z2SFyOpHo9MqJor3BXAGNaPUs83CuVp9VISFkSjyRfiTpmKuAYGJB7S7hOxw==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/typical": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", - "integrity": "sha1-XAgOXWYcu+OCWdLnCjxyU+hziB0=", - "dev": true - }, - "node_modules/uc.micro": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", - "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==", - "dev": true - }, - "node_modules/uglify-es": { - "version": "3.3.9", - "resolved": "https://registry.npmjs.org/uglify-es/-/uglify-es-3.3.9.tgz", - "integrity": "sha512-r+MU0rfv4L/0eeW3xZrd16t4NZfK8Ld4SWVglYBb7ez5uXFWHuVRs6xCTrf1yirs9a4j4Y27nn7SRfO6v67XsQ==", - "deprecated": "support for ECMAScript is superseded by `uglify-js` as of v3.13.0", - "dev": true, - "dependencies": { - "commander": "~2.13.0", - "source-map": "~0.6.1" - }, - "bin": { - "uglifyjs": "bin/uglifyjs" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/uglify-es/node_modules/commander": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.13.0.tgz", - "integrity": "sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA==", - "dev": true - }, - "node_modules/uglify-js": { - "version": "3.13.5", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.5.tgz", - "integrity": "sha512-xtB8yEqIkn7zmOyS2zUNBsYCBRhDkvlNxMMY2smuJ/qA8NCHeQvKCF3i9Z4k8FJH4+PJvZRtMrPynfZ75+CSZw==", - "dev": true, - "optional": true, - "bin": { - "uglifyjs": "bin/uglifyjs" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/umd": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/umd/-/umd-3.0.3.tgz", - "integrity": "sha512-4IcGSufhFshvLNcMCV80UnQVlZ5pMOC8mvNPForqwA4+lzYQuetTESLDQkeLmihq8bRcnpbQa48Wb8Lh16/xow==", - "dev": true, - "bin": { - "umd": "bin/cli.js" - } - }, - "node_modules/unbzip2-stream": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz", - "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==", - "dev": true, - "dependencies": { - "buffer": "^5.2.1", - "through": "^2.3.8" - } - }, - "node_modules/undeclared-identifiers": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/undeclared-identifiers/-/undeclared-identifiers-1.1.3.tgz", - "integrity": "sha512-pJOW4nxjlmfwKApE4zvxLScM/njmwj/DiUBv7EabwE4O8kRUy+HIwxQtZLBPll/jx1LJyBcqNfB3/cpv9EZwOw==", - "dev": true, - "dependencies": { - "acorn-node": "^1.3.0", - "dash-ast": "^1.0.0", - "get-assigned-identifiers": "^1.2.0", - "simple-concat": "^1.0.0", - "xtend": "^4.0.1" - }, - "bin": { - "undeclared-identifiers": "bin.js" - } - }, - "node_modules/underscore": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.10.2.tgz", - "integrity": "sha512-N4P+Q/BuyuEKFJ43B9gYuOj4TQUHXX+j2FqguVOpjkssLUUrnJofCcBccJSCoeturDoZU6GorDTHSvUDlSQbTg==", - "dev": true - }, - "node_modules/union": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/union/-/union-0.5.0.tgz", - "integrity": "sha512-N6uOhuW6zO95P3Mel2I2zMsbsanvvtgn6jVqJv4vbVcz/JN0OkL9suomjQGmWtxJQXOCqUJvquc1sMeNz/IwlA==", - "dev": true, - "dependencies": { - "qs": "^6.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/unique-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", - "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", - "dev": true, - "dependencies": { - "crypto-random-string": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/universal-user-agent": { + "node_modules/table/node_modules/strip-ansi": { "version": "6.0.0", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", - "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==", - "dev": true - }, - "node_modules/universalify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz", - "integrity": "sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug==", - "dev": true, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/uri-js": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/url": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", - "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", - "dev": true, - "dependencies": { - "punycode": "1.3.2", - "querystring": "0.2.0" - } - }, - "node_modules/url-join": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", - "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==", - "dev": true - }, - "node_modules/url/node_modules/punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", - "dev": true - }, - "node_modules/util": { - "version": "0.10.4", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", - "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", - "dev": true, - "dependencies": { - "inherits": "2.0.3" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true - }, - "node_modules/util/node_modules/inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - }, - "node_modules/uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", - "dev": true, - "bin": { - "uuid": "bin/uuid" - } - }, - "node_modules/v8-compile-cache": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", - "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", - "dev": true - }, - "node_modules/validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, - "dependencies": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "node_modules/vm-browserify": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", - "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", - "dev": true - }, - "node_modules/wait-on": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/wait-on/-/wait-on-5.2.0.tgz", - "integrity": "sha512-U1D9PBgGw2XFc6iZqn45VBubw02VsLwnZWteQ1au4hUVHasTZuFSKRzlTB2dqgLhji16YVI8fgpEpwUdCr8B6g==", - "dev": true, - "dependencies": { - "axios": "^0.19.2", - "joi": "^17.1.1", - "lodash": "^4.17.19", - "minimist": "^1.2.5", - "rxjs": "^6.5.5" - }, - "bin": { - "wait-on": "bin/wait-on" - }, - "engines": { - "node": ">=8.9.0" - } - }, - "node_modules/walk-back": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/walk-back/-/walk-back-4.0.0.tgz", - "integrity": "sha512-kudCA8PXVQfrqv2mFTG72vDBRi8BKWxGgFLwPpzHcpZnSwZk93WMwUDVcLHWNsnm+Y0AC4Vb6MUNRgaHfyV2DQ==", - "dev": true, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, - "node_modules/which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true - }, - "node_modules/wide-align": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", - "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", - "dev": true, - "dependencies": { - "string-width": "^1.0.2 || 2" - } - }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wordwrap": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", - "dev": true - }, - "node_modules/wordwrapjs": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/wordwrapjs/-/wordwrapjs-3.0.0.tgz", - "integrity": "sha512-mO8XtqyPvykVCsrwj5MlOVWvSnCdT+C+QVbm6blradR7JExAhbkZ7hZ9A+9NUtwzSqrlUo9a67ws0EiILrvRpw==", - "dev": true, - "dependencies": { - "reduce-flatten": "^1.0.1", - "typical": "^2.6.1" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/wrap-ansi": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", - "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.0", - "string-width": "^3.0.0", - "strip-ansi": "^5.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/wrap-ansi/node_modules/string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "dependencies": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/wrap-ansi/node_modules/strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "dependencies": { - "ansi-regex": "^4.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true - }, - "node_modules/write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", - "dev": true, - "dependencies": { - "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - } - }, - "node_modules/ws": { - "version": "7.4.6", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz", - "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==", - "dev": true, - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/xmlcreate": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.3.tgz", - "integrity": "sha512-HgS+X6zAztGa9zIK3Y3LXuJes33Lz9x+YyTxgrkIdabu2vqcGOWwdfCpf1hWLRrd553wd4QCDf6BBO6FfdsRiQ==", - "dev": true - }, - "node_modules/xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true, - "engines": { - "node": ">=0.4" - } - }, - "node_modules/y18n": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz", - "integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==", - "dev": true - }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/yaml-ast-parser": { - "version": "0.0.43", - "resolved": "https://registry.npmjs.org/yaml-ast-parser/-/yaml-ast-parser-0.0.43.tgz", - "integrity": "sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A==" - }, - "node_modules/yargs": { - "version": "13.3.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", - "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", "dev": true, "dependencies": { - "cliui": "^5.0.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^13.1.2" + "ansi-regex": "^5.0.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/yargs-parser": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz", - "integrity": "sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ==", + "node_modules/temp-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", + "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", "dev": true, - "dependencies": { - "camelcase": "^4.1.0" + "engines": { + "node": ">=8" } }, - "node_modules/yargs-unparser": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.6.0.tgz", - "integrity": "sha512-W9tKgmSn0DpSatfri0nx52Joq5hVXgeLiqR/5G0sZNDoLZFOr/xjBUDcShCOGNsBnEMNo1KAMBkTej1Hm62HTw==", + "node_modules/tempy": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/tempy/-/tempy-0.5.0.tgz", + "integrity": "sha512-VEY96x7gbIRfsxqsafy2l5yVxxp3PhwAGoWMyC2D2Zt5DmEv+2tGiPOrquNRpf21hhGnKLVEsuqleqiZmKG/qw==", "dev": true, "dependencies": { - "flat": "^4.1.0", - "lodash": "^4.17.15", - "yargs": "^13.3.0" + "is-stream": "^2.0.0", + "temp-dir": "^2.0.0", + "type-fest": "^0.12.0", + "unique-string": "^2.0.0" }, "engines": { - "node": ">=6" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/yargs/node_modules/ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "node_modules/tempy/node_modules/type-fest": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.12.0.tgz", + "integrity": "sha512-53RyidyjvkGpnWPMF9bQgFtWp+Sl8O2Rp13VavmJgfAP9WWG6q6TkrKU8iyJdnwnfgHI6k2hTlgqH4aSdjoTbg==", "dev": true, "engines": { - "node": ">=6" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/yargs/node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "node_modules/text-extensions": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-1.9.0.tgz", + "integrity": "sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==", "dev": true, "engines": { - "node": ">=6" + "node": ">=0.10" } }, - "node_modules/yargs/node_modules/find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", + "dev": true + }, + "node_modules/through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "dev": true + }, + "node_modules/through2": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", + "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", "dev": true, "dependencies": { - "locate-path": "^3.0.0" - }, - "engines": { - "node": ">=6" + "readable-stream": "2 || 3" } }, - "node_modules/yargs/node_modules/locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "node_modules/to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", "dev": true, "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" + "kind-of": "^3.0.2" }, "engines": { - "node": ">=6" + "node": ">=0.10.0" } }, - "node_modules/yargs/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, "dependencies": { - "p-try": "^2.0.0" + "is-number": "^7.0.0" }, "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8.0" } }, - "node_modules/yargs/node_modules/p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "node_modules/toml": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/toml/-/toml-2.3.6.tgz", + "integrity": "sha512-gVweAectJU3ebq//Ferr2JUY4WKSDe5N+z0FvjDncLGyHmIDoxgY/2Ie4qfEIDm4IS7OA6Rmdm7pdEEdMcV/xQ==", + "dev": true + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=", + "dev": true + }, + "node_modules/traverse": { + "version": "0.6.6", + "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.6.tgz", + "integrity": "sha1-y99WD9e5r2MlAv7UD5GMFX6pcTc=", + "dev": true + }, + "node_modules/trim-newlines": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", + "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", "dev": true, - "dependencies": { - "p-limit": "^2.0.0" - }, "engines": { - "node": ">=6" + "node": ">=4" } }, - "node_modules/yargs/node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "node_modules/trim-off-newlines": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.3.tgz", + "integrity": "sha512-kh6Tu6GbeSNMGfrrZh6Bb/4ZEHV1QlB4xNDBeog8Y9/QwFlKTRyWvY3Fs9tRDAMZliVUwieMgEdIeL/FtqjkJg==", "dev": true, "engines": { - "node": ">=6" + "node": ">=0.10.0" } }, - "node_modules/yargs/node_modules/string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, "dependencies": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" + "prelude-ls": "^1.2.1" }, "engines": { - "node": ">=6" + "node": ">= 0.8.0" } }, - "node_modules/yargs/node_modules/strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "node_modules/type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", "dev": true, - "dependencies": { - "ansi-regex": "^4.1.0" - }, "engines": { - "node": ">=6" + "node": ">=8" } }, - "node_modules/yargs/node_modules/yargs-parser": { - "version": "13.1.2", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", - "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", + "node_modules/typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", + "dev": true + }, + "node_modules/uglify-js": { + "version": "3.13.5", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.5.tgz", + "integrity": "sha512-xtB8yEqIkn7zmOyS2zUNBsYCBRhDkvlNxMMY2smuJ/qA8NCHeQvKCF3i9Z4k8FJH4+PJvZRtMrPynfZ75+CSZw==", "dev": true, - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" + "optional": true, + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" } }, - "node_modules/yauzl": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=", + "node_modules/unique-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", + "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", "dev": true, "dependencies": { - "buffer-crc32": "~0.2.3", - "fd-slicer": "~1.1.0" - } - } - }, - "dependencies": { - "@apidevtools/json-schema-ref-parser": { - "version": "9.0.6", - "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.6.tgz", - "integrity": "sha512-M3YgsLjI0lZxvrpeGVk9Ap032W6TPQkH6pRAZz81Ac3WUNF79VQooAFnp8umjvVzUmD93NkogxEwbSce7qMsUg==", - "requires": { - "@jsdevtools/ono": "^7.1.3", - "call-me-maybe": "^1.0.1", - "js-yaml": "^3.13.1" + "crypto-random-string": "^2.0.0" + }, + "engines": { + "node": ">=8" } }, - "@asyncapi/specs": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-2.13.0.tgz", - "integrity": "sha512-X0OrxJtzwRH8iLILO/gUTDqjGVPmagmdlgdyuBggYAoGXzF6ZuAws3XCLxtPNve5eA/0V/1puwpUYEGekI22og==" + "node_modules/universal-user-agent": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", + "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==", + "dev": true }, - "@babel/code-frame": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", - "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", + "node_modules/universalify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz", + "integrity": "sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug==", "dev": true, - "requires": { - "@babel/highlight": "^7.8.3" + "engines": { + "node": ">= 10.0.0" } }, - "@babel/core": { - "version": "7.10.2", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.10.2.tgz", - "integrity": "sha512-KQmV9yguEjQsXqyOUGKjS4+3K8/DlOCE2pZcq4augdQmtTy5iv5EHtmMSJ7V4c1BIPjuwtZYqYLCq9Ga+hGBRQ==", + "node_modules/uri-js": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", "dev": true, - "requires": { - "@babel/code-frame": "^7.10.1", - "@babel/generator": "^7.10.2", - "@babel/helper-module-transforms": "^7.10.1", - "@babel/helpers": "^7.10.1", - "@babel/parser": "^7.10.2", - "@babel/template": "^7.10.1", - "@babel/traverse": "^7.10.1", - "@babel/types": "^7.10.2", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.1", - "json5": "^2.1.2", - "lodash": "^4.17.13", - "resolve": "^1.3.2", - "semver": "^5.4.1", - "source-map": "^0.5.0" - }, "dependencies": { - "@babel/code-frame": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", - "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", - "dev": true, - "requires": { - "@babel/highlight": "^7.10.1" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.1.tgz", - "integrity": "sha512-5vW/JXLALhczRCWP0PnFDMCJAchlBvM7f4uk/jXritBnIa6E1KmqmtrS3yn1LAnxFBypQ3eneLuXjsnfQsgILw==", - "dev": true - }, - "@babel/highlight": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", - "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.10.1", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "@babel/parser": { - "version": "7.10.2", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.2.tgz", - "integrity": "sha512-PApSXlNMJyB4JiGVhCOlzKIif+TKFTvu0aQAhnTvfP/z3vVSN6ZypH5bfUNwFXXjRQtUEBNFd2PtmCmG2Py3qQ==", - "dev": true - }, - "convert-source-map": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", - "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.1" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } + "punycode": "^2.1.0" } }, - "@babel/generator": { - "version": "7.10.2", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.10.2.tgz", - "integrity": "sha512-AxfBNHNu99DTMvlUPlt1h2+Hn7knPpH5ayJ8OqDWSeLld+Fi2AYBTC/IejWDM9Edcii4UzZRCsbUt0WlSDsDsA==", + "node_modules/url-join": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", + "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==", + "dev": true + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dev": true + }, + "node_modules/v8-compile-cache": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", + "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", + "dev": true + }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", "dev": true, - "requires": { - "@babel/types": "^7.10.2", - "jsesc": "^2.5.1", - "lodash": "^4.17.13", - "source-map": "^0.5.0" - }, "dependencies": { - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" } }, - "@babel/helper-function-name": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.1.tgz", - "integrity": "sha512-fcpumwhs3YyZ/ttd5Rz0xn0TpIwVkN7X0V38B9TWNfVF42KEkhkAAuPCQ3oXmtTRtiPJrmZ0TrfS0GKF0eMaRQ==", + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=", + "dev": true + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", "dev": true, - "requires": { - "@babel/helper-get-function-arity": "^7.10.1", - "@babel/template": "^7.10.1", - "@babel/types": "^7.10.1" + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" } }, - "@babel/helper-get-function-arity": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.1.tgz", - "integrity": "sha512-F5qdXkYGOQUb0hpRaPoetF9AnsXknKjWMZ+wmsIRsp5ge5sFh4c3h1eH2pRTTuy9KKAA2+TTYomGXAtEL2fQEw==", + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", "dev": true, - "requires": { - "@babel/types": "^7.10.1" + "engines": { + "node": ">=0.10.0" } }, - "@babel/helper-member-expression-to-functions": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.10.1.tgz", - "integrity": "sha512-u7XLXeM2n50gb6PWJ9hoO5oO7JFPaZtrh35t8RqKLT1jFKj9IWeD1zrcrYp1q1qiZTdEarfDWfTIP8nGsu0h5g==", - "dev": true, - "requires": { - "@babel/types": "^7.10.1" - } + "node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", + "dev": true }, - "@babel/helper-module-imports": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.10.1.tgz", - "integrity": "sha512-SFxgwYmZ3HZPyZwJRiVNLRHWuW2OgE5k2nrVs6D9Iv4PPnXVffuEHy83Sfx/l4SqF+5kyJXjAyUmrG7tNm+qVg==", - "dev": true, - "requires": { - "@babel/types": "^7.10.1" - } + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true }, - "@babel/helper-module-transforms": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.10.1.tgz", - "integrity": "sha512-RLHRCAzyJe7Q7sF4oy2cB+kRnU4wDZY/H2xJFGof+M+SJEGhZsb+GFj5j1AD8NiSaVBJ+Pf0/WObiXu/zxWpFg==", + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "dev": true, - "requires": { - "@babel/helper-module-imports": "^7.10.1", - "@babel/helper-replace-supers": "^7.10.1", - "@babel/helper-simple-access": "^7.10.1", - "@babel/helper-split-export-declaration": "^7.10.1", - "@babel/template": "^7.10.1", - "@babel/types": "^7.10.1", - "lodash": "^4.17.13" + "engines": { + "node": ">=0.4" } }, - "@babel/helper-optimise-call-expression": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.10.1.tgz", - "integrity": "sha512-a0DjNS1prnBsoKx83dP2falChcs7p3i8VMzdrSbfLhuQra/2ENC4sbri34dz/rWmDADsmF1q5GbfaXydh0Jbjg==", - "dev": true, - "requires": { - "@babel/types": "^7.10.1" - } + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true }, - "@babel/helper-replace-supers": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.10.1.tgz", - "integrity": "sha512-SOwJzEfpuQwInzzQJGjGaiG578UYmyi2Xw668klPWV5n07B73S0a9btjLk/52Mlcxa+5AdIYqws1KyXRfMoB7A==", + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", "dev": true, - "requires": { - "@babel/helper-member-expression-to-functions": "^7.10.1", - "@babel/helper-optimise-call-expression": "^7.10.1", - "@babel/traverse": "^7.10.1", - "@babel/types": "^7.10.1" + "engines": { + "node": ">= 6" } }, - "@babel/helper-simple-access": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.10.1.tgz", - "integrity": "sha512-VSWpWzRzn9VtgMJBIWTZ+GP107kZdQ4YplJlCmIrjoLVSi/0upixezHCDG8kpPVTBJpKfxTH01wDhh+jS2zKbw==", + "node_modules/yargs-parser": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz", + "integrity": "sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ==", "dev": true, - "requires": { - "@babel/template": "^7.10.1", - "@babel/types": "^7.10.1" + "dependencies": { + "camelcase": "^4.1.0" } - }, - "@babel/helper-split-export-declaration": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.10.1.tgz", - "integrity": "sha512-UQ1LVBPrYdbchNhLwj6fetj46BcFwfS4NllJo/1aJsT+1dLTEnXJL0qHqtY7gPzF8S2fXBJamf1biAXV3X077g==", + } + }, + "dependencies": { + "@babel/code-frame": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", + "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", "dev": true, "requires": { - "@babel/types": "^7.10.1" + "@babel/highlight": "^7.8.3" } }, "@babel/helper-validator-identifier": { @@ -15525,17 +9853,6 @@ "integrity": "sha512-/8arLKUFq882w4tWGj9JYzRpAlZgiWUJ+dtteNTDqrRBz9Iguck9Rn3ykuBDoUwh2TO4tSAJlrxDUOXWklJe4g==", "dev": true }, - "@babel/helpers": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.10.1.tgz", - "integrity": "sha512-muQNHF+IdU6wGgkaJyhhEmI54MOZBKsFfsXFhboz1ybwJ1Kl7IHlbm2a++4jwrmY5UYsgitt5lfqo1wMFcHmyw==", - "dev": true, - "requires": { - "@babel/template": "^7.10.1", - "@babel/traverse": "^7.10.1", - "@babel/types": "^7.10.1" - } - }, "@babel/highlight": { "version": "7.9.0", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz", @@ -15547,133 +9864,6 @@ "js-tokens": "^4.0.0" } }, - "@babel/parser": { - "version": "7.9.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.9.4.tgz", - "integrity": "sha512-bC49otXX6N0/VYhgOMh4gnP26E9xnDZK3TmbNpxYzzz9BQLBosQwfyOe9/cXUU3txYhTzLCbcqd5c8y/OmCjHA==", - "dev": true - }, - "@babel/template": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.1.tgz", - "integrity": "sha512-OQDg6SqvFSsc9A0ej6SKINWrpJiNonRIniYondK2ViKhB06i3c0s+76XUft71iqBEe9S1OKsHwPAjfHnuvnCig==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.10.1", - "@babel/parser": "^7.10.1", - "@babel/types": "^7.10.1" - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", - "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", - "dev": true, - "requires": { - "@babel/highlight": "^7.10.1" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.1.tgz", - "integrity": "sha512-5vW/JXLALhczRCWP0PnFDMCJAchlBvM7f4uk/jXritBnIa6E1KmqmtrS3yn1LAnxFBypQ3eneLuXjsnfQsgILw==", - "dev": true - }, - "@babel/highlight": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", - "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.10.1", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "@babel/parser": { - "version": "7.10.2", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.2.tgz", - "integrity": "sha512-PApSXlNMJyB4JiGVhCOlzKIif+TKFTvu0aQAhnTvfP/z3vVSN6ZypH5bfUNwFXXjRQtUEBNFd2PtmCmG2Py3qQ==", - "dev": true - } - } - }, - "@babel/traverse": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.10.1.tgz", - "integrity": "sha512-C/cTuXeKt85K+p08jN6vMDz8vSV0vZcI0wmQ36o6mjbuo++kPMdpOYw23W2XH04dbRt9/nMEfA4W3eR21CD+TQ==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.10.1", - "@babel/generator": "^7.10.1", - "@babel/helper-function-name": "^7.10.1", - "@babel/helper-split-export-declaration": "^7.10.1", - "@babel/parser": "^7.10.1", - "@babel/types": "^7.10.1", - "debug": "^4.1.0", - "globals": "^11.1.0", - "lodash": "^4.17.13" - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz", - "integrity": "sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw==", - "dev": true, - "requires": { - "@babel/highlight": "^7.10.1" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.1.tgz", - "integrity": "sha512-5vW/JXLALhczRCWP0PnFDMCJAchlBvM7f4uk/jXritBnIa6E1KmqmtrS3yn1LAnxFBypQ3eneLuXjsnfQsgILw==", - "dev": true - }, - "@babel/highlight": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz", - "integrity": "sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.10.1", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "@babel/parser": { - "version": "7.10.2", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.10.2.tgz", - "integrity": "sha512-PApSXlNMJyB4JiGVhCOlzKIif+TKFTvu0aQAhnTvfP/z3vVSN6ZypH5bfUNwFXXjRQtUEBNFd2PtmCmG2Py3qQ==", - "dev": true - }, - "globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true - } - } - }, - "@babel/types": { - "version": "7.10.2", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz", - "integrity": "sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.10.1", - "lodash": "^4.17.13", - "to-fast-properties": "^2.0.0" - }, - "dependencies": { - "@babel/helper-validator-identifier": { - "version": "7.10.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.1.tgz", - "integrity": "sha512-5vW/JXLALhczRCWP0PnFDMCJAchlBvM7f4uk/jXritBnIa6E1KmqmtrS3yn1LAnxFBypQ3eneLuXjsnfQsgILw==", - "dev": true - } - } - }, "@eslint/eslintrc": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.1.tgz", @@ -15732,131 +9922,6 @@ } } }, - "@fmvilas/pseudo-yaml-ast": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@fmvilas/pseudo-yaml-ast/-/pseudo-yaml-ast-0.3.1.tgz", - "integrity": "sha512-8OAB74W2a9M3k9bjYD8AjVXkX+qO8c0SqNT5HlgOqx7AxSw8xdksEcZp7gFtfi+4njSxT6+76ZR+1ubjAwQHOg==", - "requires": { - "yaml-ast-parser": "0.0.43" - } - }, - "@hapi/address": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@hapi/address/-/address-4.1.0.tgz", - "integrity": "sha512-SkszZf13HVgGmChdHo/PxchnSaCJ6cetVqLzyciudzZRT0jcOouIF/Q93mgjw8cce+D+4F4C1Z/WrfFN+O3VHQ==", - "dev": true, - "requires": { - "@hapi/hoek": "^9.0.0" - } - }, - "@hapi/formula": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@hapi/formula/-/formula-2.0.0.tgz", - "integrity": "sha512-V87P8fv7PI0LH7LiVi8Lkf3x+KCO7pQozXRssAHNXXL9L1K+uyu4XypLXwxqVDKgyQai6qj3/KteNlrqDx4W5A==", - "dev": true - }, - "@hapi/hoek": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.0.4.tgz", - "integrity": "sha512-EwaJS7RjoXUZ2cXXKZZxZqieGtc7RbvQhUy8FwDoMQtxWVi14tFjeFCYPZAM1mBCpOpiBpyaZbb9NeHc7eGKgw==", - "dev": true - }, - "@hapi/pinpoint": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@hapi/pinpoint/-/pinpoint-2.0.0.tgz", - "integrity": "sha512-vzXR5MY7n4XeIvLpfl3HtE3coZYO4raKXW766R6DZw/6aLqR26iuZ109K7a0NtF2Db0jxqh7xz2AxkUwpUFybw==", - "dev": true - }, - "@hapi/topo": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.0.0.tgz", - "integrity": "sha512-tFJlT47db0kMqVm3H4nQYgn6Pwg10GTZHb1pwmSiv1K4ks6drQOtfEF5ZnPjkvC+y4/bUPHK+bc87QvLcL+WMw==", - "dev": true, - "requires": { - "@hapi/hoek": "^9.0.0" - } - }, - "@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", - "dev": true, - "requires": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" - }, - "dependencies": { - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true - }, - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - } - } - }, - "@istanbuljs/schema": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz", - "integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==", - "dev": true - }, - "@jsdevtools/ono": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz", - "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==" - }, "@nodelib/fs.scandir": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz", @@ -16283,19 +10348,6 @@ "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", "dev": true }, - "@types/color-name": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", - "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", - "dev": true - }, - "@types/node": { - "version": "13.13.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.0.tgz", - "integrity": "sha512-WE4IOAC6r/yBZss1oQGM5zs2D7RuKR6Q+w+X2SouPofnWn+LbCqClRyhO3ZE7Ix8nmFgo/oVuuE01cJT2XB13A==", - "dev": true, - "optional": true - }, "@types/normalize-package-data": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", @@ -16314,40 +10366,12 @@ "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", "dev": true }, - "@types/yauzl": { - "version": "2.9.1", - "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.1.tgz", - "integrity": "sha512-A1b8SU4D10uoPjwb0lnHmmu8wZhR9d+9o2PKBQT2jU5YPTKsxac6M2qGAdY7VcL+dHHhARVUDmeg0rOrcd9EjA==", - "dev": true, - "optional": true, - "requires": { - "@types/node": "*" - } - }, - "accessory": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/accessory/-/accessory-1.1.0.tgz", - "integrity": "sha1-eDPpg5oy3tdtJgIfNqQXB6Ug9ZM=", - "dev": true, - "requires": { - "ap": "~0.2.0", - "balanced-match": "~0.2.0", - "dot-parts": "~1.0.0" - }, - "dependencies": { - "balanced-match": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.2.1.tgz", - "integrity": "sha1-e8ZYtL7WHu5CStdPdfXD4sTfPMc=", - "dev": true - } - } - }, "acorn": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.1.tgz", "integrity": "sha512-add7dgA5ppRPxCFJoAGfMDi7PIBXq1RtGo7BhbLaxwrXPOmw8gq48Y9ozT01hUKy9byMjlR20EJhu5zlkErEkg==", - "dev": true + "dev": true, + "peer": true }, "acorn-jsx": { "version": "5.3.1", @@ -16356,23 +10380,6 @@ "dev": true, "requires": {} }, - "acorn-node": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", - "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", - "dev": true, - "requires": { - "acorn": "^7.0.0", - "acorn-walk": "^7.0.0", - "xtend": "^4.0.2" - } - }, - "acorn-walk": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.1.1.tgz", - "integrity": "sha512-wdlPY2tm/9XBr7QkKlq0WQVgiuGTX6YWPyRyBviSoScBuLfTVQhvwg6wJ369GJ/1nPfTLMfnrFIfjqVg6d+jQQ==", - "dev": true - }, "agent-base": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.0.tgz", @@ -16404,6 +10411,7 @@ "version": "6.12.3", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.3.tgz", "integrity": "sha512-4K0cK3L1hsqk9xIb2z9vs/XU+PGJZ9PNpJRDS9YLzmNdX6jmVPfamLvTJr0aDAusnHyCHO6MjzlkAsgtqp9teA==", + "dev": true, "requires": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -16411,36 +10419,6 @@ "uri-js": "^4.2.2" } }, - "amdefine": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", - "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", - "dev": true, - "optional": true - }, - "ansi-colors": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz", - "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", - "dev": true - }, - "ansi-escape-sequences": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-escape-sequences/-/ansi-escape-sequences-4.1.0.tgz", - "integrity": "sha512-dzW9kHxH011uBsidTXd14JXgzye/YLb2LzeKZ4bsgl/Knwx8AtbSFkkGxagdNOoh0DlqHCmfiEjWKBaqjOanVw==", - "dev": true, - "requires": { - "array-back": "^3.0.1" - }, - "dependencies": { - "array-back": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", - "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==", - "dev": true - } - } - }, "ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", @@ -16467,12 +10445,6 @@ "ansi-wrap": "0.1.0" } }, - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", @@ -16494,31 +10466,11 @@ "integrity": "sha1-ZlWX3oap/+Oqm/vmyuXG6kJrSXk=", "dev": true }, - "ap": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/ap/-/ap-0.2.0.tgz", - "integrity": "sha1-rglCYAspkS8NKxTsYMRejzMLYRA=", - "dev": true - }, - "append-transform": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/append-transform/-/append-transform-2.0.0.tgz", - "integrity": "sha512-7yeyCEurROLQJFv5Xj4lEGTy0borxepjFv1g22oAdqFu//SrAlDl1O1Nxx15SH1RoliUml6p8dwJW9jvZughhg==", - "dev": true, - "requires": { - "default-require-extensions": "^3.0.0" - } - }, - "archy": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", - "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=", - "dev": true - }, "argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -16529,12 +10481,6 @@ "integrity": "sha1-oMoMvCmltz6Dbuvhy/bF4OTrgvk=", "dev": true }, - "array-back": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-4.0.1.tgz", - "integrity": "sha512-Z/JnaVEXv+A9xabHzN43FiiiWEE7gPCRXMrVmRm00tWbjZRul1iHm7ECzlyNq1p4a4ATXz+G9FJ3GqGOkOV3fg==", - "dev": true - }, "array-find-index": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", @@ -16559,498 +10505,69 @@ "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", "dev": true }, - "asn1.js": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", - "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", - "dev": true, - "requires": { - "bn.js": "^4.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } - }, - "assert": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.0.tgz", - "integrity": "sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==", - "dev": true, - "requires": { - "object-assign": "^4.1.1", - "util": "0.10.3" - }, - "dependencies": { - "inherits": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", - "dev": true - }, - "util": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", - "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", - "dev": true, - "requires": { - "inherits": "2.0.1" - } - } - } - }, - "assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", - "dev": true - }, "astral-regex": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", - "dev": true - }, - "async": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", - "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", - "dev": true, - "requires": { - "lodash": "^4.17.14" - } - }, - "at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", - "dev": true - }, - "autolinker": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.28.1.tgz", - "integrity": "sha1-BlK0kYgYefB3XazgzcoyM5QqTkc=", - "dev": true, - "requires": { - "gulp-header": "^1.7.1" - } - }, - "axios": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.19.2.tgz", - "integrity": "sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==", - "dev": true, - "requires": { - "follow-redirects": "1.5.10" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "follow-redirects": { - "version": "1.5.10", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", - "integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==", - "dev": true, - "requires": { - "debug": "=3.1.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - } - } - }, - "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true - }, - "base64-js": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz", - "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==", - "dev": true - }, - "basic-auth": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-1.1.0.tgz", - "integrity": "sha1-RSIe5Cn37h5QNb4/UVM/HN/SmIQ=", - "dev": true - }, - "before-after-hook": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.1.tgz", - "integrity": "sha512-/6FKxSTWoJdbsLDF8tdIjaRiFXiE6UHsEHE3OPI/cwPURCVi1ukP0gmLn7XWEiFk5TcwQjjY5PWsU+j+tgXgmw==", - "dev": true - }, - "bl": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.0.3.tgz", - "integrity": "sha512-fs4G6/Hu4/EE+F75J8DuN/0IpQqNjAdC7aEQv7Qt8MHGUH7Ckv2MwTEEeN9QehD0pfIDkMI1bkHYkKy7xHyKIg==", - "dev": true, - "requires": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - }, - "dependencies": { - "buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "requires": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - } - } - }, - "bluebird": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", - "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", - "dev": true - }, - "bn.js": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", - "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", - "dev": true - }, - "bottleneck": { - "version": "2.19.5", - "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz", - "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==", - "dev": true - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "requires": { - "fill-range": "^7.0.1" - } - }, - "brorand": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", - "dev": true - }, - "browser-pack": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-6.1.0.tgz", - "integrity": "sha512-erYug8XoqzU3IfcU8fUgyHqyOXqIE4tUTTQ+7mqUjQlvnXkOO6OlT9c/ZoJVHYoAaqGxr09CN53G7XIsO4KtWA==", - "dev": true, - "requires": { - "combine-source-map": "~0.8.0", - "defined": "^1.0.0", - "JSONStream": "^1.0.3", - "safe-buffer": "^5.1.1", - "through2": "^2.0.0", - "umd": "^3.0.0" - }, - "dependencies": { - "through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dev": true, - "requires": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - } - } - }, - "browser-resolve": { - "version": "1.11.3", - "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.3.tgz", - "integrity": "sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ==", - "dev": true, - "requires": { - "resolve": "1.1.7" - }, - "dependencies": { - "resolve": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", - "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", - "dev": true - } - } - }, - "browser-stdout": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true - }, - "browserify": { - "version": "16.5.1", - "resolved": "https://registry.npmjs.org/browserify/-/browserify-16.5.1.tgz", - "integrity": "sha512-EQX0h59Pp+0GtSRb5rL6OTfrttlzv+uyaUVlK6GX3w11SQ0jKPKyjC/54RhPR2ib2KmfcELM06e8FxcI5XNU2A==", - "dev": true, - "requires": { - "assert": "^1.4.0", - "browser-pack": "^6.0.1", - "browser-resolve": "^1.11.0", - "browserify-zlib": "~0.2.0", - "buffer": "~5.2.1", - "cached-path-relative": "^1.0.0", - "concat-stream": "^1.6.0", - "console-browserify": "^1.1.0", - "constants-browserify": "~1.0.0", - "crypto-browserify": "^3.0.0", - "defined": "^1.0.0", - "deps-sort": "^2.0.0", - "domain-browser": "^1.2.0", - "duplexer2": "~0.1.2", - "events": "^2.0.0", - "glob": "^7.1.0", - "has": "^1.0.0", - "htmlescape": "^1.1.0", - "https-browserify": "^1.0.0", - "inherits": "~2.0.1", - "insert-module-globals": "^7.0.0", - "JSONStream": "^1.0.3", - "labeled-stream-splicer": "^2.0.0", - "mkdirp-classic": "^0.5.2", - "module-deps": "^6.0.0", - "os-browserify": "~0.3.0", - "parents": "^1.0.1", - "path-browserify": "~0.0.0", - "process": "~0.11.0", - "punycode": "^1.3.2", - "querystring-es3": "~0.2.0", - "read-only-stream": "^2.0.0", - "readable-stream": "^2.0.2", - "resolve": "^1.1.4", - "shasum": "^1.0.0", - "shell-quote": "^1.6.1", - "stream-browserify": "^2.0.0", - "stream-http": "^3.0.0", - "string_decoder": "^1.1.1", - "subarg": "^1.0.0", - "syntax-error": "^1.1.1", - "through2": "^2.0.0", - "timers-browserify": "^1.0.1", - "tty-browserify": "0.0.1", - "url": "~0.11.0", - "util": "~0.10.1", - "vm-browserify": "^1.0.0", - "xtend": "^4.0.0" - }, - "dependencies": { - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true - }, - "through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dev": true, - "requires": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - } - } - }, - "browserify-aes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", - "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", - "dev": true, - "requires": { - "buffer-xor": "^1.0.3", - "cipher-base": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.3", - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "browserify-cipher": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", - "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", - "dev": true, - "requires": { - "browserify-aes": "^1.0.4", - "browserify-des": "^1.0.0", - "evp_bytestokey": "^1.0.0" - } - }, - "browserify-des": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", - "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", - "dev": true, - "requires": { - "cipher-base": "^1.0.1", - "des.js": "^1.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "browserify-rsa": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", - "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "randombytes": "^2.0.1" - } - }, - "browserify-shim": { - "version": "3.8.14", - "resolved": "https://registry.npmjs.org/browserify-shim/-/browserify-shim-3.8.14.tgz", - "integrity": "sha1-vxBXAmky0yU8de991xTzuHft7Gs=", - "dev": true, - "requires": { - "exposify": "~0.5.0", - "mothership": "~0.2.0", - "rename-function-calls": "~0.1.0", - "resolve": "~0.6.1", - "through": "~2.3.4" - }, - "dependencies": { - "resolve": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.6.3.tgz", - "integrity": "sha1-3ZV5gufnNt699TtYpN2RdUV13UY=", - "dev": true - } - } - }, - "browserify-sign": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.0.4.tgz", - "integrity": "sha1-qk62jl17ZYuqa/alfmMMvXqT0pg=", - "dev": true, - "requires": { - "bn.js": "^4.1.1", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.2", - "elliptic": "^6.0.0", - "inherits": "^2.0.1", - "parse-asn1": "^5.0.0" - } + "dev": true }, - "browserify-zlib": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", - "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", - "dev": true, - "requires": { - "pako": "~1.0.5" - } + "at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "dev": true }, - "buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.2.1.tgz", - "integrity": "sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==", + "autolinker": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.28.1.tgz", + "integrity": "sha1-BlK0kYgYefB3XazgzcoyM5QqTkc=", "dev": true, "requires": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4" + "gulp-header": "^1.7.1" } }, - "buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=", - "dev": true - }, - "buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true }, - "buffer-xor": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", + "before-after-hook": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.1.tgz", + "integrity": "sha512-/6FKxSTWoJdbsLDF8tdIjaRiFXiE6UHsEHE3OPI/cwPURCVi1ukP0gmLn7XWEiFk5TcwQjjY5PWsU+j+tgXgmw==", "dev": true }, - "builtin-status-codes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", - "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=", + "bottleneck": { + "version": "2.19.5", + "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz", + "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==", "dev": true }, - "cache-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/cache-point/-/cache-point-1.0.0.tgz", - "integrity": "sha512-ZqrZp9Hi5Uq7vfSGmNP2bUT/9DzZC2Y/GXjHB8rUJN1a+KLmbV05+vxHipNsg8+CSVgjcVVzLV8VZms6w8ZeRw==", + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "requires": { - "array-back": "^4.0.0", - "fs-then-native": "^2.0.0", - "mkdirp2": "^1.0.4" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "cached-path-relative": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/cached-path-relative/-/cached-path-relative-1.1.0.tgz", - "integrity": "sha512-WF0LihfemtesFcJgO7xfOoOcnWzY/QHR4qeDqV44jPU3HTI54+LnfXK3SA27AVVGCdZFgjjFFaqUA9Jx7dMJZA==", - "dev": true - }, - "caching-transform": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/caching-transform/-/caching-transform-4.0.0.tgz", - "integrity": "sha512-kpqOvwXnjjN44D89K5ccQC+RUrsy7jB/XLlRrx0D7/2HNcTPqzsb6XgYoErwko6QsV184CA2YgS1fxDiiDZMWA==", + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dev": true, "requires": { - "hasha": "^5.0.0", - "make-dir": "^3.0.0", - "package-hash": "^4.0.0", - "write-file-atomic": "^3.0.0" + "fill-range": "^7.0.1" } }, - "call-me-maybe": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz", - "integrity": "sha1-JtII6onje1y95gJQoV8DHBak1ms=" + "buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "dev": true }, "callsites": { "version": "3.1.0", @@ -17085,38 +10602,6 @@ "redeyed": "~2.1.0" } }, - "catharsis": { - "version": "0.8.11", - "resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.8.11.tgz", - "integrity": "sha512-a+xUyMV7hD1BrDQA/3iPV7oc+6W26BgVJO05PGEoatMyIuPScQKsde6i3YorWX1qs+AZjnJ18NqdKoCtKiNh1g==", - "dev": true, - "requires": { - "lodash": "^4.17.14" - } - }, - "chai": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.2.0.tgz", - "integrity": "sha512-XQU3bhBukrOsQCuwZndwGcCVQHyZi53fQ6Ys1Fym7E4olpIqqZZhhoFJoaKVvV17lWQoXYwgWN2nF5crA8J2jw==", - "dev": true, - "requires": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.2", - "deep-eql": "^3.0.1", - "get-func-name": "^2.0.0", - "pathval": "^1.1.0", - "type-detect": "^4.0.5" - } - }, - "chai-as-promised": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/chai-as-promised/-/chai-as-promised-7.1.1.tgz", - "integrity": "sha512-azL6xMoi+uxu6z4rhWQ1jbdUhOMhis2PvscD/xjLqNMkv3BPPp2JyyuTHOrf9BOosGpNQ11v6BKv/g57RXbiaA==", - "dev": true, - "requires": { - "check-error": "^1.0.2" - } - }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", @@ -17128,34 +10613,6 @@ "supports-color": "^5.3.0" } }, - "check-error": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", - "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", - "dev": true - }, - "check-more-types": { - "version": "2.24.0", - "resolved": "https://registry.npmjs.org/check-more-types/-/check-more-types-2.24.0.tgz", - "integrity": "sha1-FCD/sQ/URNz8ebQ4kbv//TKoRgA=", - "dev": true - }, - "chownr": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", - "dev": true - }, - "cipher-base": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", - "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, "clean-stack": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", @@ -17171,66 +10628,12 @@ "colors": "1.0.3" } }, - "cliui": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", - "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", - "dev": true, - "requires": { - "string-width": "^3.1.0", - "strip-ansi": "^5.2.0", - "wrap-ansi": "^5.1.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, - "code-error-fragment": { - "version": "0.0.230", - "resolved": "https://registry.npmjs.org/code-error-fragment/-/code-error-fragment-0.0.230.tgz", - "integrity": "sha512-cadkfKp6932H8UkhzE/gcUqhRMNf8jHzkAN7+5Myabswaghu4xABTgPHDCjW+dBAJxj/SpkTYokpzDqY4pCzQw==" - }, "coffee-script": { "version": "1.12.7", "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", "integrity": "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==", "dev": true }, - "collect-all": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/collect-all/-/collect-all-1.0.3.tgz", - "integrity": "sha512-0y0rBgoX8IzIjBAUnO73SEtSb4Mhk3IoceWJq5zZSxb9mWORhWH8xLYo4EDSOE1jRBk1LhmfjqWFFt10h/+MEA==", - "dev": true, - "requires": { - "stream-connect": "^1.0.2", - "stream-via": "^1.0.4" - } - }, "color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", @@ -17252,111 +10655,6 @@ "integrity": "sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=", "dev": true }, - "combine-source-map": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.8.0.tgz", - "integrity": "sha1-pY0N8ELBhvz4IqjoAV9UUNLXmos=", - "dev": true, - "requires": { - "convert-source-map": "~1.1.0", - "inline-source-map": "~0.6.0", - "lodash.memoize": "~3.0.3", - "source-map": "~0.5.3" - }, - "dependencies": { - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } - } - }, - "command-line-args": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-5.1.1.tgz", - "integrity": "sha512-hL/eG8lrll1Qy1ezvkant+trihbGnaKaeEjj6Scyr3DN+RC7iQ5Rz84IeLERfAWDGo0HBSNAakczwgCilDXnWg==", - "dev": true, - "requires": { - "array-back": "^3.0.1", - "find-replace": "^3.0.0", - "lodash.camelcase": "^4.3.0", - "typical": "^4.0.0" - }, - "dependencies": { - "array-back": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", - "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==", - "dev": true - }, - "typical": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/typical/-/typical-4.0.0.tgz", - "integrity": "sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==", - "dev": true - } - } - }, - "command-line-tool": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/command-line-tool/-/command-line-tool-0.8.0.tgz", - "integrity": "sha512-Xw18HVx/QzQV3Sc5k1vy3kgtOeGmsKIqwtFFoyjI4bbcpSgnw2CWVULvtakyw4s6fhyAdI6soQQhXc2OzJy62g==", - "dev": true, - "requires": { - "ansi-escape-sequences": "^4.0.0", - "array-back": "^2.0.0", - "command-line-args": "^5.0.0", - "command-line-usage": "^4.1.0", - "typical": "^2.6.1" - }, - "dependencies": { - "array-back": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", - "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", - "dev": true, - "requires": { - "typical": "^2.6.1" - } - } - } - }, - "command-line-usage": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/command-line-usage/-/command-line-usage-4.1.0.tgz", - "integrity": "sha512-MxS8Ad995KpdAC0Jopo/ovGIroV/m0KHwzKfXxKag6FHOkGsH8/lv5yjgablcRxCJJC0oJeUMuO/gmaq+Wq46g==", - "dev": true, - "requires": { - "ansi-escape-sequences": "^4.0.0", - "array-back": "^2.0.0", - "table-layout": "^0.4.2", - "typical": "^2.6.1" - }, - "dependencies": { - "array-back": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", - "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", - "dev": true, - "requires": { - "typical": "^2.6.1" - } - } - } - }, - "common-sequence": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/common-sequence/-/common-sequence-2.0.0.tgz", - "integrity": "sha512-f0QqPLpRTgMQn/pQIynf+SdE73Lw5Q1jn4hjirHLgH/NJ71TiHjXusV16BmOyuK5rRQ1W2f++II+TFZbQOh4hA==", - "dev": true - }, - "commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", - "dev": true - }, "compare-func": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.2.tgz", @@ -17394,35 +10692,6 @@ "source-map": "^0.6.1" } }, - "config-master": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/config-master/-/config-master-3.1.0.tgz", - "integrity": "sha1-ZnZjWQUFooO/JqSE1oSJ10xUhdo=", - "dev": true, - "requires": { - "walk-back": "^2.0.1" - }, - "dependencies": { - "walk-back": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/walk-back/-/walk-back-2.0.1.tgz", - "integrity": "sha1-VU4qnYdPrEeoywBr9EwvDEmYoKQ=", - "dev": true - } - } - }, - "console-browserify": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", - "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==", - "dev": true - }, - "constants-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", - "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=", - "dev": true - }, "conventional-changelog-angular": { "version": "5.0.6", "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.6.tgz", @@ -17495,24 +10764,12 @@ "trim-off-newlines": "^1.0.0" } }, - "convert-source-map": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", - "integrity": "sha1-SCnId+n+SbMWHzvzZziI4gRpmGA=", - "dev": true - }, "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true }, - "corser": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/corser/-/corser-2.0.1.tgz", - "integrity": "sha1-jtolLsqrWEDc2XXOuQ2TcMgZ/4c=", - "dev": true - }, "cosmiconfig": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.0.tgz", @@ -17546,43 +10803,6 @@ } } }, - "create-ecdh": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.3.tgz", - "integrity": "sha512-GbEHQPMOswGpKXM9kCWVrremUcBmjteUaQ01T9rkKCPDXfUHX0IoP9LpHYo2NPFampa4e+/pFDc3jQdxrxQLaw==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "elliptic": "^6.0.0" - } - }, - "create-hash": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", - "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", - "dev": true, - "requires": { - "cipher-base": "^1.0.1", - "inherits": "^2.0.1", - "md5.js": "^1.3.4", - "ripemd160": "^2.0.1", - "sha.js": "^2.4.0" - } - }, - "create-hmac": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", - "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", - "dev": true, - "requires": { - "cipher-base": "^1.0.3", - "create-hash": "^1.1.0", - "inherits": "^2.0.1", - "ripemd160": "^2.0.0", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, "cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", @@ -17605,25 +10825,6 @@ } } }, - "crypto-browserify": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", - "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", - "dev": true, - "requires": { - "browserify-cipher": "^1.0.0", - "browserify-sign": "^4.0.0", - "create-ecdh": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.0", - "diffie-hellman": "^5.0.0", - "inherits": "^2.0.1", - "pbkdf2": "^3.0.3", - "public-encrypt": "^4.0.0", - "randombytes": "^2.0.0", - "randomfill": "^1.0.3" - } - }, "crypto-random-string": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", @@ -17639,12 +10840,6 @@ "array-find-index": "^1.0.1" } }, - "dash-ast": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/dash-ast/-/dash-ast-1.0.0.tgz", - "integrity": "sha512-Vy4dx7gquTeMcQR/hDkYLGUnwVil6vk4FOOct+djUnHOUWt+zJPJAaRIXaAFkPXtJjvlY7o3rfRu0/3hpnwoUA==", - "dev": true - }, "dateformat": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", @@ -17676,73 +10871,24 @@ "map-obj": "^1.0.0" }, "dependencies": { - "map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", - "dev": true - } - } - }, - "deep-eql": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", - "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", - "dev": true, - "requires": { - "type-detect": "^4.0.0" - } - }, - "deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "dev": true - }, - "deep-is": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", - "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", - "dev": true - }, - "default-require-extensions": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-3.0.0.tgz", - "integrity": "sha512-ek6DpXq/SCpvjhpFsLFRVtIxJCRw6fUR42lYMVZuUMK7n8eMz4Uh5clckdBjEpLhn/gEBZo7hDJnJcwdKLKQjg==", - "dev": true, - "requires": { - "strip-bom": "^4.0.0" - }, - "dependencies": { - "strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", - "dev": true - } - } - }, - "define-properties": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", - "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", - "dev": true, - "requires": { - "object-keys": "^1.0.12" - }, - "dependencies": { - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", "dev": true } } }, - "defined": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz", - "integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=", + "deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "dev": true + }, + "deep-is": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", + "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", "dev": true }, "deprecation": { @@ -17751,80 +10897,12 @@ "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", "dev": true }, - "deps-sort": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/deps-sort/-/deps-sort-2.0.1.tgz", - "integrity": "sha512-1orqXQr5po+3KI6kQb9A4jnXT1PBwggGl2d7Sq2xsnOeI9GPcE/tGcF9UiSZtZBM7MukY4cAh7MemS6tZYipfw==", - "dev": true, - "requires": { - "JSONStream": "^1.0.3", - "shasum-object": "^1.0.0", - "subarg": "^1.0.0", - "through2": "^2.0.0" - }, - "dependencies": { - "through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dev": true, - "requires": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - } - } - }, - "des.js": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.1.tgz", - "integrity": "sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } - }, - "detective": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/detective/-/detective-5.2.0.tgz", - "integrity": "sha512-6SsIx+nUUbuK0EthKjv0zrdnajCCXVYGmbYYiYjFVpzcjwEs/JMDZ8tPRG29J/HhN56t3GJp2cGSWDRjjot8Pg==", - "dev": true, - "requires": { - "acorn-node": "^1.6.1", - "defined": "^1.0.0", - "minimist": "^1.1.1" - } - }, - "devtools-protocol": { - "version": "0.0.847576", - "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.847576.tgz", - "integrity": "sha512-0M8kobnSQE0Jmly7Mhbeq0W/PpZfnuK+WjN2ZRVPbGqYwCHCioAVp84H0TcLimgECcN5H976y5QiXMGBC9JKmg==", - "dev": true - }, "diacritics-map": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/diacritics-map/-/diacritics-map-0.1.0.tgz", "integrity": "sha1-bfwP+dAQAKLt8oZTccrDFulJd68=", "dev": true }, - "diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", - "dev": true - }, - "diffie-hellman": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", - "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "miller-rabin": "^4.0.0", - "randombytes": "^2.0.0" - } - }, "dir-glob": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", @@ -17842,34 +10920,6 @@ } } }, - "dmd": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/dmd/-/dmd-4.0.6.tgz", - "integrity": "sha512-7ZYAnFQ6jGm4SICArwqNPylJ83PaOdPTAkds3Z/s1ueFqSc5ilJ2F0b7uP+35W1PUbemH++gn5/VlC3KwEgiHQ==", - "dev": true, - "requires": { - "array-back": "^4.0.1", - "cache-point": "^1.0.0", - "common-sequence": "^2.0.0", - "file-set": "^3.0.0", - "handlebars": "^4.5.3", - "marked": "^0.7.0", - "object-get": "^2.1.0", - "reduce-flatten": "^3.0.0", - "reduce-unique": "^2.0.1", - "reduce-without": "^1.0.1", - "test-value": "^3.0.0", - "walk-back": "^4.0.0" - }, - "dependencies": { - "reduce-flatten": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-3.0.0.tgz", - "integrity": "sha512-eczl8wAYBxJ6Egl6I1ECIF+8z6sHu+KE7BzaEDZTpPXKXfy9SUDQlVYwkRcNTjJLC3Iakxbhss50KuT/R6SYfg==", - "dev": true - } - } - }, "doctrine": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", @@ -17887,18 +10937,6 @@ } } }, - "domain-browser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", - "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", - "dev": true - }, - "dot-parts": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dot-parts/-/dot-parts-1.0.1.tgz", - "integrity": "sha1-iEvXvPwwgv+tL+XbU+SU2PPgdD8=", - "dev": true - }, "dot-prop": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-3.0.0.tgz", @@ -17908,12 +10946,6 @@ "is-obj": "^1.0.0" } }, - "duplexer": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", - "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", - "dev": true - }, "duplexer2": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", @@ -17923,61 +10955,6 @@ "readable-stream": "^2.0.2" } }, - "ecstatic": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/ecstatic/-/ecstatic-3.3.2.tgz", - "integrity": "sha512-fLf9l1hnwrHI2xn9mEDT7KIi22UDqA2jaCwyCbSUJh9a1V+LEUSL/JO/6TIz/QyuBURWUHrFL5Kg2TtO1bkkog==", - "dev": true, - "requires": { - "he": "^1.1.1", - "mime": "^1.6.0", - "minimist": "^1.1.0", - "url-join": "^2.0.5" - }, - "dependencies": { - "mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true - }, - "url-join": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/url-join/-/url-join-2.0.5.tgz", - "integrity": "sha1-WvIvGMBSoACkjXuCxenC4v7tpyg=", - "dev": true - } - } - }, - "elliptic": { - "version": "6.5.4", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", - "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", - "dev": true, - "requires": { - "bn.js": "^4.11.9", - "brorand": "^1.1.0", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.1", - "inherits": "^2.0.4", - "minimalistic-assert": "^1.0.1", - "minimalistic-crypto-utils": "^1.0.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - } - } - }, - "emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", - "dev": true - }, "end-of-stream": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", @@ -18004,12 +10981,6 @@ } } }, - "entities": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.0.0.tgz", - "integrity": "sha512-D9f7V0JSRwIxlRI2mjMqufDrRDnx8p+eEOz7aUM9SuvF8gsBzra0/6tbjl1m8eQHrZlYj6PxqE00hZ1SAIKPLw==", - "dev": true - }, "env-ci": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/env-ci/-/env-ci-5.0.2.tgz", @@ -18057,50 +11028,6 @@ "is-arrayish": "^0.2.1" } }, - "es-abstract": { - "version": "1.17.5", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.5.tgz", - "integrity": "sha512-BR9auzDbySxOcfog0tLECW8l28eRGpDpU3Dm3Hp4q/N+VtLTmyj4EUN088XZWQDW/hzj6sYRDXeOFsaAODKvpg==", - "dev": true, - "requires": { - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1", - "is-callable": "^1.1.5", - "is-regex": "^1.0.5", - "object-inspect": "^1.7.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.0", - "string.prototype.trimleft": "^2.1.1", - "string.prototype.trimright": "^2.1.1" - }, - "dependencies": { - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true - } - } - }, - "es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - } - }, - "es6-error": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", - "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", - "dev": true - }, "escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", @@ -18113,36 +11040,6 @@ "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", "dev": true }, - "escodegen": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.1.0.tgz", - "integrity": "sha1-xmOSP24gqtSNDA+knzHG1PSTYM8=", - "dev": true, - "requires": { - "esprima": "~1.0.4", - "estraverse": "~1.5.0", - "esutils": "~1.0.0", - "source-map": "~0.1.30" - }, - "dependencies": { - "esprima": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", - "integrity": "sha1-n1V+CPw7TSbs6d00+Pv0drYlha0=", - "dev": true - }, - "source-map": { - "version": "0.1.43", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", - "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=", - "dev": true, - "optional": true, - "requires": { - "amdefine": ">=0.0.4" - } - } - } - }, "eslint": { "version": "7.27.0", "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.27.0.tgz", @@ -18435,7 +11332,8 @@ "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true }, "esquery": { "version": "1.4.0", @@ -18471,66 +11369,6 @@ } } }, - "estraverse": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.5.1.tgz", - "integrity": "sha1-hno+jlip+EYYr7bC3bzZFrfLr3E=", - "dev": true - }, - "esutils": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-1.0.0.tgz", - "integrity": "sha1-gVHTWOIMisx/t0XnRywAJf5JZXA=", - "dev": true - }, - "event-stream": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz", - "integrity": "sha1-SrTJoPWlTbkzi0w02Gv86PSzVXE=", - "dev": true, - "requires": { - "duplexer": "~0.1.1", - "from": "~0", - "map-stream": "~0.1.0", - "pause-stream": "0.0.11", - "split": "0.3", - "stream-combiner": "~0.0.4", - "through": "~2.3.1" - }, - "dependencies": { - "split": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", - "integrity": "sha1-zQ7qXmOiEd//frDwkcQTPi0N0o8=", - "dev": true, - "requires": { - "through": "2" - } - } - } - }, - "eventemitter3": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.4.tgz", - "integrity": "sha512-rlaVLnVxtxvoyLsQQFBx53YmXHDxRIzzTLbdfxqi4yocpSjAxXwkU0cScM5JgSKMqEhrZpnvQ2D9gjylR0AimQ==", - "dev": true - }, - "events": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/events/-/events-2.1.0.tgz", - "integrity": "sha512-3Zmiobend8P9DjmKAty0Era4jV8oJ0yGYe2nJJAxgymF9+N8F2m0hhZiMoWtcfepExzNKZumFU3ksdQbInGWCg==", - "dev": true - }, - "evp_bytestokey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", - "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", - "dev": true, - "requires": { - "md5.js": "^1.3.4", - "safe-buffer": "^5.1.1" - } - }, "execa": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/execa/-/execa-5.0.0.tgz", @@ -18607,70 +11445,6 @@ } } }, - "exposify": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/exposify/-/exposify-0.5.0.tgz", - "integrity": "sha1-+S0AlMJls/VT4fpFagOhiD0QWcw=", - "dev": true, - "requires": { - "globo": "~1.1.0", - "map-obj": "~1.0.1", - "replace-requires": "~1.0.3", - "through2": "~0.4.0", - "transformify": "~0.1.1" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - }, - "map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", - "dev": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - }, - "through2": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.4.2.tgz", - "integrity": "sha1-2/WGYDEVHsg1K7bE22SiKSqEC5s=", - "dev": true, - "requires": { - "readable-stream": "~1.0.17", - "xtend": "~2.1.1" - } - }, - "xtend": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-2.1.2.tgz", - "integrity": "sha1-bv7MKk2tjmlixJAbM3znuoe10os=", - "dev": true, - "requires": { - "object-keys": "~0.4.0" - } - } - } - }, "extend-shallow": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", @@ -18680,33 +11454,11 @@ "is-extendable": "^0.1.0" } }, - "extract-zip": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", - "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", - "dev": true, - "requires": { - "@types/yauzl": "^2.9.1", - "debug": "^4.1.1", - "get-stream": "^5.1.0", - "yauzl": "^2.10.0" - }, - "dependencies": { - "get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - } - } - }, "fast-deep-equal": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz", - "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==" + "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==", + "dev": true }, "fast-glob": { "version": "3.2.5", @@ -18725,7 +11477,8 @@ "fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true }, "fast-levenshtein": { "version": "2.0.6", @@ -18733,12 +11486,6 @@ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "dev": true }, - "fast-safe-stringify": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.0.7.tgz", - "integrity": "sha512-Utm6CdzT+6xsDk2m8S6uL8VHxNwI6Jub+e9NYTcAms28T84pTa25GJQV9j0CY0N1rM8hK4x6grpF2BQf+2qwVA==", - "dev": true - }, "fastq": { "version": "1.11.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.11.0.tgz", @@ -18748,15 +11495,6 @@ "reusify": "^1.0.4" } }, - "fd-slicer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=", - "dev": true, - "requires": { - "pend": "~1.2.0" - } - }, "figures": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", @@ -18775,16 +11513,6 @@ "flat-cache": "^3.0.4" } }, - "file-set": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/file-set/-/file-set-3.0.0.tgz", - "integrity": "sha512-B/SdeSIeRv7VlOgIjtH3dkxMI+tEy5m+OeCXfAUsirBoVoY+bGtsmvmmTFPm/G23TBY4RiTtjpcgePCfwXRjqA==", - "dev": true, - "requires": { - "array-back": "^4.0.0", - "glob": "^7.1.5" - } - }, "fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", @@ -18794,40 +11522,6 @@ "to-regex-range": "^5.0.1" } }, - "find-cache-dir": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.1.tgz", - "integrity": "sha512-t2GDMt3oGC/v+BMwzmllWDuJF/xcDtE5j/fCGbqDD7OLuJkj0cfh1YSA5VKPvwMeLFLNDBkwOKZ2X85jGLVftQ==", - "dev": true, - "requires": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - } - }, - "find-parent-dir": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/find-parent-dir/-/find-parent-dir-0.3.0.tgz", - "integrity": "sha1-M8RLQpqysvBkYpnF+fcY83b/jVQ=", - "dev": true - }, - "find-replace": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-replace/-/find-replace-3.0.0.tgz", - "integrity": "sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==", - "dev": true, - "requires": { - "array-back": "^3.0.1" - }, - "dependencies": { - "array-back": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", - "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==", - "dev": true - } - } - }, "find-up": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", @@ -18838,29 +11532,12 @@ } }, "find-versions": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-4.0.0.tgz", - "integrity": "sha512-wgpWy002tA+wgmO27buH/9KzyEOQnKsG/R0yrcjPT9BOFm0zRBVQbZ95nRGXWMywS8YR5knRbpohio0bcJABxQ==", - "dev": true, - "requires": { - "semver-regex": "^3.1.2" - } - }, - "flat": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.0.tgz", - "integrity": "sha512-Px/TiLIznH7gEDlPXcUD4KnBusa6kR6ayRUVcnEAbreRIuhkqow/mun59BuRXwoYk7ZQOLW1ZM05ilIvK38hFw==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-4.0.0.tgz", + "integrity": "sha512-wgpWy002tA+wgmO27buH/9KzyEOQnKsG/R0yrcjPT9BOFm0zRBVQbZ95nRGXWMywS8YR5knRbpohio0bcJABxQ==", "dev": true, "requires": { - "is-buffer": "~2.0.3" - }, - "dependencies": { - "is-buffer": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.4.tgz", - "integrity": "sha512-Kq1rokWXOPXWuaMAqZiJW4XxsmD9zGx9q4aePabbn3qCRGedtH7Cm+zV8WETitMfu1wdh+Rvd6w5egwSngUX2A==", - "dev": true - } + "semver-regex": "^3.1.2" } }, "flat-cache": { @@ -18879,34 +11556,12 @@ "integrity": "sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==", "dev": true }, - "follow-redirects": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.0.tgz", - "integrity": "sha512-aq6gF1BEKje4a9i9+5jimNFIpq4Q1WiwBToeRK5NvZBd/TRsmW8BsJfOEGkr76TbOyPVD3OVDN910EcUNtRYEA==", - "dev": true - }, "for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", "dev": true }, - "foreground-child": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-2.0.0.tgz", - "integrity": "sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.0", - "signal-exit": "^3.0.2" - } - }, - "from": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", - "integrity": "sha1-g8YK/Fi5xWmXAH7Rp2izqzA6RP4=", - "dev": true - }, "from2": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", @@ -18917,18 +11572,6 @@ "readable-stream": "^2.0.0" } }, - "fromentries": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fromentries/-/fromentries-1.2.0.tgz", - "integrity": "sha512-33X7H/wdfO99GdRLLgkjUrD4geAFdq/Uv0kl3HD4da6HDixd2GUg8Mw7dahLCV9r/EARkmtYBB6Tch4EEokFTQ==", - "dev": true - }, - "fs-constants": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", - "dev": true - }, "fs-extra": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.0.tgz", @@ -18941,60 +11584,24 @@ "universalify": "^1.0.0" } }, - "fs-then-native": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fs-then-native/-/fs-then-native-2.0.0.tgz", - "integrity": "sha1-GaEk2U2QwiyOBF8ujdbr6jbUjGc=", - "dev": true - }, "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, "functional-red-black-tree": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", "dev": true }, - "gensync": { - "version": "1.0.0-beta.1", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.1.tgz", - "integrity": "sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg==", - "dev": true - }, - "get-assigned-identifiers": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz", - "integrity": "sha512-mBBwmeGTrxEMO4pMaaf/uUEFHnYtwr8FTe8Y/mer4rcV/bye0qGm6pw1bGZFGStxC5O76c5ZAVBGnqHmOaJpdQ==", - "dev": true - }, "get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true }, - "get-func-name": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", - "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", - "dev": true - }, - "get-package-type": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", - "dev": true - }, "get-stream": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", @@ -19090,28 +11697,12 @@ "slash": "^3.0.0" } }, - "globo": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/globo/-/globo-1.1.0.tgz", - "integrity": "sha1-DSYJiVXepCLrIAGxBImLChAcqvM=", - "dev": true, - "requires": { - "accessory": "~1.1.0", - "is-defined": "~1.0.0", - "ternary": "~1.0.0" - } - }, "graceful-fs": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==", "dev": true }, - "grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==" - }, "gray-matter": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-2.1.1.tgz", @@ -19125,12 +11716,6 @@ "toml": "^2.3.2" } }, - "growl": { - "version": "1.10.5", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", - "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", - "dev": true - }, "gulp-header": { "version": "1.8.12", "resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.12.tgz", @@ -19167,91 +11752,12 @@ "wordwrap": "^1.0.0" } }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", "dev": true }, - "has-require": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/has-require/-/has-require-1.2.2.tgz", - "integrity": "sha1-khZ1qxMNvZdo/I2o8ajiQt+kF3Q=", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.3" - } - }, - "has-symbols": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", - "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", - "dev": true - }, - "hash-base": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", - "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "hash.js": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - } - }, - "hasha": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/hasha/-/hasha-5.2.0.tgz", - "integrity": "sha512-2W+jKdQbAdSIrggA8Q35Br8qKadTrqCTC8+XZvBWepKDK6m9XkX6Iz1a2yh2KP01kzAR/dpuMeUnocoLYDcskw==", - "dev": true, - "requires": { - "is-stream": "^2.0.0", - "type-fest": "^0.8.0" - }, - "dependencies": { - "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true - } - } - }, - "he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "dev": true - }, - "hmac-drbg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", - "dev": true, - "requires": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" - } - }, "hook-std": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/hook-std/-/hook-std-2.0.0.tgz", @@ -19264,29 +11770,6 @@ "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", "dev": true }, - "html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true - }, - "htmlescape": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/htmlescape/-/htmlescape-1.1.1.tgz", - "integrity": "sha1-OgPtwiFLyjtmQko+eVk0lQnLA1E=", - "dev": true - }, - "http-proxy": { - "version": "1.18.1", - "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", - "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", - "dev": true, - "requires": { - "eventemitter3": "^4.0.0", - "follow-redirects": "^1.0.0", - "requires-port": "^1.0.0" - } - }, "http-proxy-agent": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", @@ -19298,38 +11781,6 @@ "debug": "4" } }, - "http-server": { - "version": "0.12.3", - "resolved": "https://registry.npmjs.org/http-server/-/http-server-0.12.3.tgz", - "integrity": "sha512-be0dKG6pni92bRjq0kvExtj/NrrAd28/8fCXkaI/4piTwQMSDSLMhWyW0NI1V+DBI3aa1HMlQu46/HjVLfmugA==", - "dev": true, - "requires": { - "basic-auth": "^1.0.3", - "colors": "^1.4.0", - "corser": "^2.0.1", - "ecstatic": "^3.3.2", - "http-proxy": "^1.18.0", - "minimist": "^1.2.5", - "opener": "^1.5.1", - "portfinder": "^1.0.25", - "secure-compare": "3.0.1", - "union": "~0.5.0" - }, - "dependencies": { - "colors": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", - "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", - "dev": true - } - } - }, - "https-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", - "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", - "dev": true - }, "https-proxy-agent": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", @@ -19346,12 +11797,6 @@ "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", "dev": true }, - "ieee754": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", - "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==", - "dev": true - }, "ignore": { "version": "5.1.8", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", @@ -19419,59 +11864,6 @@ "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", "dev": true }, - "inline-source-map": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.6.2.tgz", - "integrity": "sha1-+Tk0ccGKedFyT4Y/o4tYY3Ct4qU=", - "dev": true, - "requires": { - "source-map": "~0.5.3" - }, - "dependencies": { - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } - } - }, - "insert-module-globals": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/insert-module-globals/-/insert-module-globals-7.2.0.tgz", - "integrity": "sha512-VE6NlW+WGn2/AeOMd496AHFYmE7eLKkUY6Ty31k4og5vmA3Fjuwe9v6ifH6Xx/Hz27QvdoMoviw1/pqWRB09Sw==", - "dev": true, - "requires": { - "acorn-node": "^1.5.2", - "combine-source-map": "^0.8.0", - "concat-stream": "^1.6.1", - "is-buffer": "^1.1.0", - "JSONStream": "^1.0.3", - "path-is-absolute": "^1.0.1", - "process": "~0.11.0", - "through2": "^2.0.0", - "undeclared-identifiers": "^1.1.2", - "xtend": "^4.0.0" - }, - "dependencies": { - "through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dev": true, - "requires": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - } - } - }, - "interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "dev": true - }, "into-stream": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-5.1.1.tgz", @@ -19494,24 +11886,6 @@ "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", "dev": true }, - "is-callable": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.5.tgz", - "integrity": "sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q==", - "dev": true - }, - "is-date-object": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz", - "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==", - "dev": true - }, - "is-defined": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-defined/-/is-defined-1.0.0.tgz", - "integrity": "sha1-HwfKZ9Vx9ZTEsUQVpF9774j5K/U=", - "dev": true - }, "is-extendable": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", @@ -19524,12 +11898,6 @@ "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", "dev": true }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, "is-glob": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", @@ -19563,30 +11931,12 @@ "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", "dev": true }, - "is-regex": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.5.tgz", - "integrity": "sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, "is-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", "dev": true }, - "is-symbol": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", - "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", - "dev": true, - "requires": { - "has-symbols": "^1.0.1" - } - }, "is-text-path": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-1.0.1.tgz", @@ -19596,18 +11946,6 @@ "text-extensions": "^1.0.0" } }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, - "is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "dev": true - }, "isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", @@ -19633,135 +11971,12 @@ "lodash.uniqby": "^4.7.0" } }, - "istanbul-lib-coverage": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz", - "integrity": "sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg==", - "dev": true - }, - "istanbul-lib-hook": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-3.0.0.tgz", - "integrity": "sha512-Pt/uge1Q9s+5VAZ+pCo16TYMWPBIl+oaNIjgLQxcX0itS6ueeaA+pEfThZpH8WxhFgCiEb8sAJY6MdUKgiIWaQ==", - "dev": true, - "requires": { - "append-transform": "^2.0.0" - } - }, - "istanbul-lib-instrument": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", - "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", - "dev": true, - "requires": { - "@babel/core": "^7.7.5", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.0.0", - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "istanbul-lib-processinfo": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-processinfo/-/istanbul-lib-processinfo-2.0.2.tgz", - "integrity": "sha512-kOwpa7z9hme+IBPZMzQ5vdQj8srYgAtaRqeI48NGmAQ+/5yKiHLV0QbYqQpxsdEF0+w14SoB8YbnHKcXE2KnYw==", - "dev": true, - "requires": { - "archy": "^1.0.0", - "cross-spawn": "^7.0.0", - "istanbul-lib-coverage": "^3.0.0-alpha.1", - "make-dir": "^3.0.0", - "p-map": "^3.0.0", - "rimraf": "^3.0.0", - "uuid": "^3.3.3" - }, - "dependencies": { - "p-map": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz", - "integrity": "sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==", - "dev": true, - "requires": { - "aggregate-error": "^3.0.0" - } - } - } - }, - "istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", - "dev": true, - "requires": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", - "supports-color": "^7.1.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", - "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "istanbul-lib-source-maps": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz", - "integrity": "sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg==", - "dev": true, - "requires": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - } - }, - "istanbul-reports": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.2.tgz", - "integrity": "sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw==", - "dev": true, - "requires": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - } - }, "java-properties": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/java-properties/-/java-properties-1.0.2.tgz", "integrity": "sha512-qjdpeo2yKlYTH7nFdK0vbZWuTCesk4o63v5iVOlhMQPfuIZQfW/HI35SjfhA+4qpg36rnFSvUK5b1m+ckIblQQ==", "dev": true }, - "joi": { - "version": "17.2.1", - "resolved": "https://registry.npmjs.org/joi/-/joi-17.2.1.tgz", - "integrity": "sha512-YT3/4Ln+5YRpacdmfEfrrKh50/kkgX3LgBltjqnlMPIYiZ4hxXZuVJcxmsvxsdeHg9soZfE3qXxHC2tMpCCBOA==", - "dev": true, - "requires": { - "@hapi/address": "^4.1.0", - "@hapi/formula": "^2.0.0", - "@hapi/hoek": "^9.0.0", - "@hapi/pinpoint": "^2.0.0", - "@hapi/topo": "^5.0.0" - } - }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -19772,143 +11987,12 @@ "version": "3.13.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" } }, - "js2xmlparser": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.1.tgz", - "integrity": "sha512-KrPTolcw6RocpYjdC7pL7v62e55q7qOMHvLX1UCLc5AAS8qeJ6nukarEJAF2KL2PZxlbGueEbINqZR2bDe/gUw==", - "dev": true, - "requires": { - "xmlcreate": "^2.0.3" - } - }, - "jsdoc": { - "version": "3.6.4", - "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-3.6.4.tgz", - "integrity": "sha512-3G9d37VHv7MFdheviDCjUfQoIjdv4TC5zTTf5G9VODLtOnVS6La1eoYBDlbWfsRT3/Xo+j2MIqki2EV12BZfwA==", - "dev": true, - "requires": { - "@babel/parser": "^7.9.4", - "bluebird": "^3.7.2", - "catharsis": "^0.8.11", - "escape-string-regexp": "^2.0.0", - "js2xmlparser": "^4.0.1", - "klaw": "^3.0.0", - "markdown-it": "^10.0.0", - "markdown-it-anchor": "^5.2.7", - "marked": "^0.8.2", - "mkdirp": "^1.0.4", - "requizzle": "^0.2.3", - "strip-json-comments": "^3.1.0", - "taffydb": "2.6.2", - "underscore": "~1.10.2" - }, - "dependencies": { - "escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true - }, - "marked": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/marked/-/marked-0.8.2.tgz", - "integrity": "sha512-EGwzEeCcLniFX51DhTpmTom+dSA/MG/OBUDjnWtHbEnjAH180VzUeAw+oE4+Zv+CoYBWyRlYOTR0N8SO9R1PVw==", - "dev": true - }, - "strip-json-comments": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.0.tgz", - "integrity": "sha512-e6/d0eBu7gHtdCqFt0xJr642LdToM5/cN4Qb9DbHjVx1CP5RyeM+zH7pbecEmDv/lBqb0QH+6Uqq75rxFPkM0w==", - "dev": true - } - } - }, - "jsdoc-api": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/jsdoc-api/-/jsdoc-api-5.0.4.tgz", - "integrity": "sha512-1KMwLnfo0FyhF06TQKzqIm8BiY1yoMIGICxRdJHUjzskaHMzHMmpLlmNFgzoa4pAC8t1CDPK5jWuQTvv1pBsEQ==", - "dev": true, - "requires": { - "array-back": "^4.0.0", - "cache-point": "^1.0.0", - "collect-all": "^1.0.3", - "file-set": "^2.0.1", - "fs-then-native": "^2.0.0", - "jsdoc": "^3.6.3", - "object-to-spawn-args": "^1.1.1", - "temp-path": "^1.0.0", - "walk-back": "^3.0.1" - }, - "dependencies": { - "file-set": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/file-set/-/file-set-2.0.1.tgz", - "integrity": "sha512-XgOUUpgR6FbbfYcniLw0qm1Am7PnNYIAkd+eXxRt42LiYhjaso0WiuQ+VmrNdtwotyM+cLCfZ56AZrySP3QnKA==", - "dev": true, - "requires": { - "array-back": "^2.0.0", - "glob": "^7.1.3" - }, - "dependencies": { - "array-back": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", - "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", - "dev": true, - "requires": { - "typical": "^2.6.1" - } - } - } - }, - "walk-back": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/walk-back/-/walk-back-3.0.1.tgz", - "integrity": "sha512-umiNB2qLO731Sxbp6cfZ9pwURJzTnftxE4Gc7hq8n/ehkuXC//s9F65IEIJA2ZytQZ1ZOsm/Fju4IWx0bivkUQ==", - "dev": true - } - } - }, - "jsdoc-parse": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/jsdoc-parse/-/jsdoc-parse-4.0.1.tgz", - "integrity": "sha512-qIObw8yqYZjrP2qxWROB5eLQFLTUX2jRGLhW9hjo2CC2fQVlskidCIzjCoctwsDvauBp2a/lR31jkSleczSo8Q==", - "dev": true, - "requires": { - "array-back": "^4.0.0", - "lodash.omit": "^4.5.0", - "lodash.pick": "^4.4.0", - "reduce-extract": "^1.0.0", - "sort-array": "^2.0.0", - "test-value": "^3.0.0" - } - }, - "jsdoc-to-markdown": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/jsdoc-to-markdown/-/jsdoc-to-markdown-5.0.3.tgz", - "integrity": "sha512-tQv5tBV0fTYidRQtE60lJKxE98mmuLcYuITFDKQiDPE9hGccpeEGUNFcVkInq1vigyuPnZmt79bQ8wv2GKjY0Q==", - "dev": true, - "requires": { - "array-back": "^4.0.1", - "command-line-tool": "^0.8.0", - "config-master": "^3.1.0", - "dmd": "^4.0.5", - "jsdoc-api": "^5.0.4", - "jsdoc-parse": "^4.0.1", - "walk-back": "^4.0.0" - } - }, - "jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true - }, "json-parse-better-errors": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", @@ -19924,16 +12008,8 @@ "json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "json-stable-stringify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz", - "integrity": "sha1-YRwj6BTbN1Un34URk9tZ3Sryf0U=", - "dev": true, - "requires": { - "jsonify": "~0.0.0" - } + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true }, "json-stable-stringify-without-jsonify": { "version": "1.0.1", @@ -19947,24 +12023,6 @@ "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", "dev": true }, - "json-to-ast": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/json-to-ast/-/json-to-ast-2.1.0.tgz", - "integrity": "sha512-W9Lq347r8tA1DfMvAGn9QNcgYm4Wm7Yc+k8e6vezpMnRT+NHbtlxgNBXRVjXe9YM6eTn6+p/MKOlV/aABJcSnQ==", - "requires": { - "code-error-fragment": "0.0.230", - "grapheme-splitter": "^1.0.4" - } - }, - "json5": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.3.tgz", - "integrity": "sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } - }, "jsonfile": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.0.1.tgz", @@ -19975,12 +12033,6 @@ "universalify": "^1.0.0" } }, - "jsonify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", - "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", - "dev": true - }, "jsonparse": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", @@ -20006,31 +12058,6 @@ "is-buffer": "^1.1.5" } }, - "klaw": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/klaw/-/klaw-3.0.0.tgz", - "integrity": "sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.9" - } - }, - "labeled-stream-splicer": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/labeled-stream-splicer/-/labeled-stream-splicer-2.0.2.tgz", - "integrity": "sha512-Ca4LSXFFZUjPScRaqOcFxneA0VpKZr4MMYCljyQr4LIewTLb3Y0IUTIsnBBsVubIeEfxeSZpSjSsRM8APEQaAw==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "stream-splicer": "^2.0.0" - } - }, - "lazy-ass": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/lazy-ass/-/lazy-ass-1.6.0.tgz", - "integrity": "sha1-eZllXoZGwX8In90YfRUNMyTVRRM=", - "dev": true - }, "lazy-cache": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", @@ -20056,15 +12083,6 @@ "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", "dev": true }, - "linkify-it": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-2.2.0.tgz", - "integrity": "sha512-GnAl/knGn+i1U/wjBz3akz2stz+HrHLsxMwHQGofCDfPvlf+gDKN58UtfmUquTY4/MXeE2x7k19KQmeoZi94Iw==", - "dev": true, - "requires": { - "uc.micro": "^1.0.1" - } - }, "list-item": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/list-item/-/list-item-1.1.1.tgz", @@ -20122,12 +12140,6 @@ "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", "dev": true }, - "lodash.camelcase": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=", - "dev": true - }, "lodash.capitalize": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/lodash.capitalize/-/lodash.capitalize-4.2.1.tgz", @@ -20137,7 +12149,8 @@ "lodash.clonedeep": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=" + "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", + "dev": true }, "lodash.escaperegexp": { "version": "4.1.2", @@ -20145,12 +12158,6 @@ "integrity": "sha1-ZHYsSGGAglGKw99Mz11YhtriA0c=", "dev": true }, - "lodash.flattendeep": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz", - "integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=", - "dev": true - }, "lodash.ismatch": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz", @@ -20169,36 +12176,12 @@ "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=", "dev": true }, - "lodash.memoize": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-3.0.4.tgz", - "integrity": "sha1-LcvSwofLwKVcxCMovQxzYVDVPj8=", - "dev": true - }, "lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, - "lodash.omit": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.omit/-/lodash.omit-4.5.0.tgz", - "integrity": "sha1-brGa5aHuHdnfC5aeZs4Lf6MLXmA=", - "dev": true - }, - "lodash.padend": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/lodash.padend/-/lodash.padend-4.6.1.tgz", - "integrity": "sha1-U8y6BH0G4VjTEfRdpiX05J5vFm4=", - "dev": true - }, - "lodash.pick": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.pick/-/lodash.pick-4.4.0.tgz", - "integrity": "sha1-UvBWEP/53tQiYRRB7R/BI6AwAbM=", - "dev": true - }, "lodash.template": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", @@ -20236,15 +12219,6 @@ "integrity": "sha1-2ZwHpmnp5tJOE2Lf4mbGdhavEwI=", "dev": true }, - "log-symbols": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", - "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", - "dev": true, - "requires": { - "chalk": "^2.0.1" - } - }, "loud-rejection": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", @@ -20264,55 +12238,12 @@ "yallist": "^4.0.0" } }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, "map-obj": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", "dev": true }, - "map-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz", - "integrity": "sha1-5WqpTEyAVaFkBKBnS3jyFffI4ZQ=", - "dev": true - }, - "markdown-it": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-10.0.0.tgz", - "integrity": "sha512-YWOP1j7UbDNz+TumYP1kpwnP0aEa711cJjrAQrzd0UXlbJfc5aAq0F/PZHjiioqDC1NKgvIMX+o+9Bk7yuM2dg==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "entities": "~2.0.0", - "linkify-it": "^2.0.0", - "mdurl": "^1.0.1", - "uc.micro": "^1.0.5" - } - }, - "markdown-it-anchor": { - "version": "5.2.7", - "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-5.2.7.tgz", - "integrity": "sha512-REFmIaSS6szaD1bye80DMbp7ePwsPNvLTR5HunsUcZ0SG0rWJQ+Pz24R4UlTKtjKBPhxo0v0tOBDYjZQQknW8Q==", - "dev": true, - "requires": {} - }, "markdown-link": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/markdown-link/-/markdown-link-0.1.1.tgz", @@ -20340,10 +12271,10 @@ } }, "marked": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/marked/-/marked-0.7.0.tgz", + "version": "https://registry.npmjs.org/marked/-/marked-0.7.0.tgz", "integrity": "sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==", - "dev": true + "dev": true, + "peer": true }, "marked-terminal": { "version": "4.1.1", @@ -20416,23 +12347,6 @@ "integrity": "sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A==", "dev": true }, - "md5.js": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", - "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", - "dev": true, - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "mdurl": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", - "integrity": "sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=", - "dev": true - }, "meow": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/meow/-/meow-5.0.0.tgz", @@ -20472,16 +12386,6 @@ "picomatch": "^2.0.5" } }, - "miller-rabin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", - "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", - "dev": true, - "requires": { - "bn.js": "^4.0.0", - "brorand": "^1.0.1" - } - }, "mime": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/mime/-/mime-2.5.2.tgz", @@ -20494,18 +12398,6 @@ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true }, - "minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", - "dev": true - }, - "minimalistic-crypto-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=", - "dev": true - }, "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", @@ -20567,213 +12459,12 @@ } } }, - "mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true - }, - "mkdirp-classic": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.2.tgz", - "integrity": "sha512-ejdnDQcR75gwknmMw/tx02AuRs8jCtqFoFqDZMjiNxsu85sRIJVXDKHuLYvUUPRBUtV2FpSZa9bL1BUa3BdR2g==", - "dev": true - }, - "mkdirp2": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp2/-/mkdirp2-1.0.4.tgz", - "integrity": "sha512-Q2PKB4ZR4UPtjLl76JfzlgSCUZhSV1AXQgAZa1qt5RiaALFjP/CDrGvFBrOz7Ck6McPcwMAxTsJvWOUjOU8XMw==", - "dev": true - }, - "mocha": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-6.2.3.tgz", - "integrity": "sha512-0R/3FvjIGH3eEuG17ccFPk117XL2rWxatr81a57D+r/x2uTYZRbdZ4oVidEUMh2W2TJDa7MdAb12Lm2/qrKajg==", - "dev": true, - "requires": { - "ansi-colors": "3.2.3", - "browser-stdout": "1.3.1", - "debug": "3.2.6", - "diff": "3.5.0", - "escape-string-regexp": "1.0.5", - "find-up": "3.0.0", - "glob": "7.1.3", - "growl": "1.10.5", - "he": "1.2.0", - "js-yaml": "3.13.1", - "log-symbols": "2.2.0", - "minimatch": "3.0.4", - "mkdirp": "0.5.4", - "ms": "2.1.1", - "node-environment-flags": "1.0.5", - "object.assign": "4.1.0", - "strip-json-comments": "2.0.1", - "supports-color": "6.0.0", - "which": "1.3.1", - "wide-align": "1.1.3", - "yargs": "13.3.2", - "yargs-parser": "13.1.2", - "yargs-unparser": "1.6.0" - }, - "dependencies": { - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true - }, - "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "glob": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "mkdirp": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.4.tgz", - "integrity": "sha512-iG9AK/dJLtJ0XNgTuDbSyNS3zECqDlAhnQW4CsNxBG3LQJBbHmRX1egw39DmtOdCAqY+dKXV+sgPgilNWUKMVw==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } - }, - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "requires": { - "p-limit": "^2.0.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true - }, - "supports-color": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", - "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - }, - "yargs-parser": { - "version": "13.1.2", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", - "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - } - } - }, "modify-values": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/modify-values/-/modify-values-1.0.1.tgz", "integrity": "sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==", "dev": true }, - "module-deps": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/module-deps/-/module-deps-6.2.2.tgz", - "integrity": "sha512-a9y6yDv5u5I4A+IPHTnqFxcaKr4p50/zxTjcQJaX2ws9tN/W6J6YXnEKhqRyPhl494dkcxx951onSKVezmI+3w==", - "dev": true, - "requires": { - "browser-resolve": "^1.7.0", - "cached-path-relative": "^1.0.2", - "concat-stream": "~1.6.0", - "defined": "^1.0.0", - "detective": "^5.2.0", - "duplexer2": "^0.1.2", - "inherits": "^2.0.1", - "JSONStream": "^1.0.3", - "parents": "^1.0.0", - "readable-stream": "^2.0.2", - "resolve": "^1.4.0", - "stream-combiner2": "^1.1.1", - "subarg": "^1.0.0", - "through2": "^2.0.0", - "xtend": "^4.0.0" - }, - "dependencies": { - "through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dev": true, - "requires": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - } - } - }, - "mothership": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/mothership/-/mothership-0.2.0.tgz", - "integrity": "sha1-k9SKL7w+UOKl/I7VhvW8RMZfmpk=", - "dev": true, - "requires": { - "find-parent-dir": "~0.3.0" - } - }, "ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -20807,31 +12498,13 @@ "lodash.toarray": "^4.4.0" } }, - "node-environment-flags": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.5.tgz", - "integrity": "sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ==", - "dev": true, - "requires": { - "object.getownpropertydescriptors": "^2.0.3", - "semver": "^5.7.0" - } - }, "node-fetch": { "version": "2.6.7", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "requires": { - "whatwg-url": "^5.0.0" - } - }, - "node-preload": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/node-preload/-/node-preload-0.2.1.tgz", - "integrity": "sha512-RM5oyBy45cLEoHqCeh+MNuFAxO0vTFBLskvQbOKnEE7YTTSN4tbN8QWDIPQ6L+WvKsB/qLEGpYe2ZZ9d4W9OIQ==", "dev": true, "requires": { - "process-on-spawn": "^1.0.0" + "whatwg-url": "^5.0.0" } }, "normalize-package-data": { @@ -24402,290 +16075,6 @@ "path-key": "^3.0.0" } }, - "nyc": { - "version": "15.1.0", - "resolved": "https://registry.npmjs.org/nyc/-/nyc-15.1.0.tgz", - "integrity": "sha512-jMW04n9SxKdKi1ZMGhvUTHBN0EICCRkHemEoE5jm6mTYcqcdas0ATzgUgejlQUHMvpnOZqGB5Xxsv9KxJW1j8A==", - "dev": true, - "requires": { - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "caching-transform": "^4.0.0", - "convert-source-map": "^1.7.0", - "decamelize": "^1.2.0", - "find-cache-dir": "^3.2.0", - "find-up": "^4.1.0", - "foreground-child": "^2.0.0", - "get-package-type": "^0.1.0", - "glob": "^7.1.6", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-hook": "^3.0.0", - "istanbul-lib-instrument": "^4.0.0", - "istanbul-lib-processinfo": "^2.0.2", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.0.2", - "make-dir": "^3.0.0", - "node-preload": "^0.2.1", - "p-map": "^3.0.0", - "process-on-spawn": "^1.0.0", - "resolve-from": "^5.0.0", - "rimraf": "^3.0.0", - "signal-exit": "^3.0.2", - "spawn-wrap": "^2.0.0", - "test-exclude": "^6.0.0", - "yargs": "^15.0.2" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true - }, - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true - }, - "cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "convert-source-map": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", - "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.1" - } - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "p-map": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz", - "integrity": "sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==", - "dev": true, - "requires": { - "aggregate-error": "^3.0.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "string-width": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", - "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - } - }, - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.0" - } - }, - "wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - } - }, - "yargs": { - "version": "15.3.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.3.1.tgz", - "integrity": "sha512-92O1HWEjw27sBfgmXiixJWT5hRBp2eobqXicLtPBIDBhYB+1HpwZlXmbW2luivBJHBzki+7VyCLRtAkScbTBQA==", - "dev": true, - "requires": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.1" - } - }, - "yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - } - } - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - }, - "object-get": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/object-get/-/object-get-2.1.1.tgz", - "integrity": "sha512-7n4IpLMzGGcLEMiQKsNR7vCe+N5E9LORFrtNUVy4sO3dj9a3HedZCxEL2T7QuLhcHN1NBuBsMOKaOsAYI9IIvg==", - "dev": true - }, - "object-inspect": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.7.0.tgz", - "integrity": "sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw==", - "dev": true - }, - "object-keys": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz", - "integrity": "sha1-KKaq50KN0sOpLz2V8hM13SBOAzY=", - "dev": true - }, - "object-to-spawn-args": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-to-spawn-args/-/object-to-spawn-args-1.1.1.tgz", - "integrity": "sha1-d9qIJ/Bz0BHJ4bFz+JV4FHAkZ4U=", - "dev": true - }, - "object.assign": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", - "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", - "dev": true, - "requires": { - "define-properties": "^1.1.2", - "function-bind": "^1.1.1", - "has-symbols": "^1.0.0", - "object-keys": "^1.0.11" - }, - "dependencies": { - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true - } - } - }, - "object.getownpropertydescriptors": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.0.tgz", - "integrity": "sha512-Z53Oah9A3TdLoblT7VKJaTDdXdT+lQO+cNpKVnya5JDe9uLvzu1YyY1yFDFrcxrlRgWrEFH0jJtD/IbuwjcEVg==", - "dev": true, - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.0-next.1" - } - }, "object.pick": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", @@ -24721,12 +16110,6 @@ "mimic-fn": "^2.1.0" } }, - "opener": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.1.tgz", - "integrity": "sha512-goYSy5c2UXE4Ra1xixabeVh1guIX/ZV/YokJksb6q2lubWu6UbvPQ20p542/sFIll1nl8JnCyK9oBaOcCWXwvA==", - "dev": true - }, "optionator": { "version": "0.9.1", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", @@ -24741,12 +16124,6 @@ "word-wrap": "^1.2.3" } }, - "os-browserify": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", - "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", - "dev": true - }, "p-each-series": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", @@ -24814,54 +16191,13 @@ "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", "dev": true }, - "package-hash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/package-hash/-/package-hash-4.0.0.tgz", - "integrity": "sha512-whdkPIooSu/bASggZ96BWVvZTRMOFxnyUG5PnTSGKoJE2gd5mbVNmR2Nj20QFzxYYgAXpoqC+AiXzl+UMRh7zQ==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.15", - "hasha": "^5.0.0", - "lodash.flattendeep": "^4.4.0", - "release-zalgo": "^1.0.0" - } - }, - "pako": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", - "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", - "dev": true - }, - "parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "requires": { - "callsites": "^3.0.0" - } - }, - "parents": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parents/-/parents-1.0.1.tgz", - "integrity": "sha1-/t1NK/GTp3dF/nHjcdc8MwfZx1E=", - "dev": true, - "requires": { - "path-platform": "~0.11.15" - } - }, - "parse-asn1": { - "version": "5.1.5", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.5.tgz", - "integrity": "sha512-jkMYn1dcJqF6d5CpU689bq7w/b5ALS9ROVSpQDPrZsqqesUJii9qutvoT5ltGedNXMO2e16YUWIghG9KxaViTQ==", + "parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, "requires": { - "asn1.js": "^4.0.0", - "browserify-aes": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.0", - "pbkdf2": "^3.0.3", - "safe-buffer": "^5.1.1" + "callsites": "^3.0.0" } }, "parse-json": { @@ -24874,18 +16210,6 @@ "json-parse-better-errors": "^1.0.1" } }, - "patch-text": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/patch-text/-/patch-text-1.0.2.tgz", - "integrity": "sha1-S/NuZeUXM9bpjwz2LgkDTaoDSKw=", - "dev": true - }, - "path-browserify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", - "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", - "dev": true - }, "path-exists": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", @@ -24910,12 +16234,6 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, - "path-platform": { - "version": "0.11.15", - "resolved": "https://registry.npmjs.org/path-platform/-/path-platform-0.11.15.tgz", - "integrity": "sha1-6GQhf3TDaFDwhSt43Hv31KVyG/I=", - "dev": true - }, "path-type": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", @@ -24925,40 +16243,6 @@ "pify": "^3.0.0" } }, - "pathval": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", - "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", - "dev": true - }, - "pause-stream": { - "version": "0.0.11", - "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", - "integrity": "sha1-/lo0sMvOErWqaitAPuLnO2AvFEU=", - "dev": true, - "requires": { - "through": "~2.3" - } - }, - "pbkdf2": { - "version": "3.0.17", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.17.tgz", - "integrity": "sha512-U/il5MsrZp7mGg3mSQfn742na2T+1/vHDCG5/iTI3X9MKUuYUZVLQhyRsg06mCgDBTd57TxzgZt7P+fYfjRLtA==", - "dev": true, - "requires": { - "create-hash": "^1.1.2", - "create-hmac": "^1.1.4", - "ripemd160": "^2.0.1", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, - "pend": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=", - "dev": true - }, "picomatch": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", @@ -24981,159 +16265,24 @@ "load-json-file": "^4.0.0" } }, - "pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "requires": { - "find-up": "^4.0.0" - }, - "dependencies": { - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - } - } - }, - "portfinder": { - "version": "1.0.28", - "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.28.tgz", - "integrity": "sha512-Se+2isanIcEqf2XMHjyUKskczxbPH7dQnlMjXX6+dybayyHvAf/TCgyMRlzf/B6QDhAEFOGes0pzRo3by4AbMA==", - "dev": true, - "requires": { - "async": "^2.6.2", - "debug": "^3.1.1", - "mkdirp": "^0.5.5" - }, - "dependencies": { - "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } - } - } - }, "prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true }, - "process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", - "dev": true - }, "process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, - "process-on-spawn": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/process-on-spawn/-/process-on-spawn-1.0.0.tgz", - "integrity": "sha512-1WsPDsUSMmZH5LeMLegqkPDrsGgsWwk1Exipy2hvB0o/F0ASzbpIctSCcZIK1ykJvtTJULEH+20WOFjMvGnCTg==", - "dev": true, - "requires": { - "fromentries": "^1.2.0" - } - }, "progress": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", "dev": true }, - "proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", - "dev": true - }, - "ps-tree": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/ps-tree/-/ps-tree-1.2.0.tgz", - "integrity": "sha512-0VnamPPYHl4uaU/nSFeZZpR21QAWRz+sRv4iW9+v/GS/J5U5iZB5BNN6J0RMoOvdx2gWM2+ZFMIm58q24e4UYA==", - "dev": true, - "requires": { - "event-stream": "=3.3.4" - } - }, - "public-encrypt": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", - "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "parse-asn1": "^5.0.0", - "randombytes": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, "pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", @@ -25147,27 +16296,8 @@ "punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" - }, - "puppeteer": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-7.0.1.tgz", - "integrity": "sha512-04V05BKQdloUCOa7JyQBaNXPIiVByz1eAFAElcrpMHIQkfu22J0RKFhRWkXZGXdl03yoHuaZwqyB/qG7YJu5Ew==", - "dev": true, - "requires": { - "debug": "^4.1.0", - "devtools-protocol": "0.0.847576", - "extract-zip": "^2.0.0", - "https-proxy-agent": "^5.0.0", - "node-fetch": "^2.6.1", - "pkg-dir": "^4.2.0", - "progress": "^2.0.1", - "proxy-from-env": "^1.0.0", - "rimraf": "^3.0.2", - "tar-fs": "^2.0.0", - "unbzip2-stream": "^1.3.3", - "ws": "^7.2.3" - } + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true }, "q": { "version": "1.5.1", @@ -25175,24 +16305,6 @@ "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", "dev": true }, - "qs": { - "version": "6.9.4", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.9.4.tgz", - "integrity": "sha512-A1kFqHekCTM7cz0udomYUoYNWjBebHm/5wzU/XqrBRBNWectVH0QIiN+NEcZ0Dte5hvzHwbr8+XQmguPhJ6WdQ==", - "dev": true - }, - "querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", - "dev": true - }, - "querystring-es3": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", - "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", - "dev": true - }, "queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -25236,25 +16348,6 @@ } } }, - "randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, - "requires": { - "safe-buffer": "^5.1.0" - } - }, - "randomfill": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", - "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", - "dev": true, - "requires": { - "randombytes": "^2.0.5", - "safe-buffer": "^5.1.0" - } - }, "rc": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", @@ -25267,15 +16360,6 @@ "strip-json-comments": "~2.0.1" } }, - "read-only-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/read-only-stream/-/read-only-stream-2.0.0.tgz", - "integrity": "sha1-JyT9aoET1zdkrCiNQ4YnDB2/F/A=", - "dev": true, - "requires": { - "readable-stream": "^2.0.2" - } - }, "read-pkg": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", @@ -25312,15 +16396,6 @@ "util-deprecate": "~1.0.1" } }, - "rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", - "dev": true, - "requires": { - "resolve": "^1.1.6" - } - }, "redent": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", @@ -25340,78 +16415,6 @@ "esprima": "~4.0.0" } }, - "reduce-extract": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/reduce-extract/-/reduce-extract-1.0.0.tgz", - "integrity": "sha1-Z/I4W+2mUGG19fQxJmLosIDKFSU=", - "dev": true, - "requires": { - "test-value": "^1.0.1" - }, - "dependencies": { - "array-back": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", - "integrity": "sha1-ZEun8JX3/898Q7Xw3DnTwfA8Bjs=", - "dev": true, - "requires": { - "typical": "^2.6.0" - } - }, - "test-value": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/test-value/-/test-value-1.1.0.tgz", - "integrity": "sha1-oJE29y7AQ9J8iTcHwrFZv6196T8=", - "dev": true, - "requires": { - "array-back": "^1.0.2", - "typical": "^2.4.2" - } - } - } - }, - "reduce-flatten": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-1.0.1.tgz", - "integrity": "sha1-JYx479FT3fk8tWEjf2EYTzaW4yc=", - "dev": true - }, - "reduce-unique": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/reduce-unique/-/reduce-unique-2.0.1.tgz", - "integrity": "sha512-x4jH/8L1eyZGR785WY+ePtyMNhycl1N2XOLxhCbzZFaqF4AXjLzqSxa2UHgJ2ZVR/HHyPOvl1L7xRnW8ye5MdA==", - "dev": true - }, - "reduce-without": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/reduce-without/-/reduce-without-1.0.1.tgz", - "integrity": "sha1-aK0OrRGFXJo31OglbBW7+Hly/Iw=", - "dev": true, - "requires": { - "test-value": "^2.0.0" - }, - "dependencies": { - "array-back": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", - "integrity": "sha1-ZEun8JX3/898Q7Xw3DnTwfA8Bjs=", - "dev": true, - "requires": { - "typical": "^2.6.0" - } - }, - "test-value": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/test-value/-/test-value-2.1.0.tgz", - "integrity": "sha1-Edpv9nDzRxpztiXKTz/c97t0gpE=", - "dev": true, - "requires": { - "array-back": "^1.0.3", - "typical": "^2.6.0" - } - } - } - }, "regexpp": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz", @@ -25427,15 +16430,6 @@ "rc": "^1.2.8" } }, - "release-zalgo": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/release-zalgo/-/release-zalgo-1.0.0.tgz", - "integrity": "sha1-CXALflB0Mpc5Mw5TXFqQ+2eFFzA=", - "dev": true, - "requires": { - "es6-error": "^4.0.1" - } - }, "remarkable": { "version": "1.7.4", "resolved": "https://registry.npmjs.org/remarkable/-/remarkable-1.7.4.tgz", @@ -25446,33 +16440,6 @@ "autolinker": "~0.28.0" } }, - "rename-function-calls": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/rename-function-calls/-/rename-function-calls-0.1.1.tgz", - "integrity": "sha1-f4M2nAB6MAf2q+MDPM+BaGoQjgE=", - "dev": true, - "requires": { - "detective": "~3.1.0" - }, - "dependencies": { - "detective": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detective/-/detective-3.1.0.tgz", - "integrity": "sha1-d3gkRKt1K4jKG+Lp0KA5Xx2iXu0=", - "dev": true, - "requires": { - "escodegen": "~1.1.0", - "esprima-fb": "3001.1.0-dev-harmony-fb" - } - }, - "esprima-fb": { - "version": "3001.1.0-dev-harmony-fb", - "resolved": "https://registry.npmjs.org/esprima-fb/-/esprima-fb-3001.0001.0000-dev-harmony-fb.tgz", - "integrity": "sha1-t303q8046gt3Qmu4vCkizmtCZBE=", - "dev": true - } - } - }, "repeat-element": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", @@ -25485,36 +16452,6 @@ "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", "dev": true }, - "replace-requires": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/replace-requires/-/replace-requires-1.0.4.tgz", - "integrity": "sha1-AUtzMLa54lV7cQQ7ZvsCZgw79mc=", - "dev": true, - "requires": { - "detective": "^4.5.0", - "has-require": "~1.2.1", - "patch-text": "~1.0.2", - "xtend": "~4.0.0" - }, - "dependencies": { - "acorn": { - "version": "5.7.4", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.4.tgz", - "integrity": "sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg==", - "dev": true - }, - "detective": { - "version": "4.7.1", - "resolved": "https://registry.npmjs.org/detective/-/detective-4.7.1.tgz", - "integrity": "sha512-H6PmeeUcZloWtdt4DAkFyzFL94arpHr3NOwwmVILFiy+9Qd4JTxxXrzfyGk/lmct2qVGBwTSwSXagqu2BxmWig==", - "dev": true, - "requires": { - "acorn": "^5.2.1", - "defined": "^1.0.0" - } - } - } - }, "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -25527,27 +16464,6 @@ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", "dev": true }, - "require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true - }, - "requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=", - "dev": true - }, - "requizzle": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.3.tgz", - "integrity": "sha512-YanoyJjykPxGHii0fZP0uUPEXpvqfBDxWV7s6GKAiiOsiqhX6vHNyW3Qzdmqp/iq/ExbhaGbVrjB4ruEVSM4GQ==", - "dev": true, - "requires": { - "lodash": "^4.17.14" - } - }, "resolve": { "version": "1.16.1", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.16.1.tgz", @@ -25590,16 +16506,6 @@ "glob": "^7.1.3" } }, - "ripemd160": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", - "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", - "dev": true, - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1" - } - }, "run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -25609,15 +16515,6 @@ "queue-microtask": "^1.2.2" } }, - "rxjs": { - "version": "6.6.2", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.2.tgz", - "integrity": "sha512-BHdBMVoWC2sL26w//BCu3YzKT4s2jip/WhwsGEDmeKYBhKDZeYezVUnHatYB7L85v5xs0BAQmg6BEYJEKxBabg==", - "dev": true, - "requires": { - "tslib": "^1.9.0" - } - }, "safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", @@ -25633,12 +16530,6 @@ "ret": "~0.1.10" } }, - "secure-compare": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/secure-compare/-/secure-compare-3.0.1.tgz", - "integrity": "sha1-8aAymzCLIh+uN7mXTz1XjQypmeM=", - "dev": true - }, "semantic-release": { "version": "17.4.3", "resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-17.4.3.tgz", @@ -25939,12 +16830,6 @@ "integrity": "sha512-Aqi54Mk9uYTjVexLnR67rTyBusmwd04cLkHy9hNvk3+G3nT2Oyg7E0l4XVbOaNwIvQ3hHeYxGcyEy+mKreyBFQ==", "dev": true }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true - }, "set-getter": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/set-getter/-/set-getter-0.1.1.tgz", @@ -25954,35 +16839,6 @@ "to-object-path": "^0.3.0" } }, - "sha.js": { - "version": "2.4.11", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", - "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "shasum": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz", - "integrity": "sha1-5wEjENj0F/TetXEhUOVni4euVl8=", - "dev": true, - "requires": { - "json-stable-stringify": "~0.0.0", - "sha.js": "~2.4.4" - } - }, - "shasum-object": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shasum-object/-/shasum-object-1.0.0.tgz", - "integrity": "sha512-Iqo5rp/3xVi6M4YheapzZhhGPVs0yZwHj7wvwQ1B9z8H6zk+FEnI7y3Teq7qwnekfEhu8WmG2z0z4iWZaxLWVg==", - "dev": true, - "requires": { - "fast-safe-stringify": "^2.0.7" - } - }, "shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -25998,33 +16854,6 @@ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true }, - "shell-quote": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.2.tgz", - "integrity": "sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==", - "dev": true - }, - "shelljs": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", - "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", - "dev": true, - "requires": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - } - }, - "shx": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/shx/-/shx-0.3.3.tgz", - "integrity": "sha512-nZJ3HFWVoTSyyB+evEKjJ1STiixGztlqwKLTUNV5KqMWtGey9fTd4KU1gdZ1X9BV6215pswQ/Jew9NsuS/fNDA==", - "dev": true, - "requires": { - "minimist": "^1.2.3", - "shelljs": "^0.8.4" - } - }, "signal-exit": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", @@ -26053,12 +16882,6 @@ } } }, - "simple-concat": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.0.tgz", - "integrity": "sha1-c0TLuLbib7J9ZrL8hvn21Zl1IcY=", - "dev": true - }, "slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", @@ -26108,28 +16931,6 @@ } } }, - "sort-array": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/sort-array/-/sort-array-2.0.0.tgz", - "integrity": "sha1-OKnG2if9fRR7QuYFVPKBGHtN9HI=", - "dev": true, - "requires": { - "array-back": "^1.0.4", - "object-get": "^2.1.0", - "typical": "^2.6.0" - }, - "dependencies": { - "array-back": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", - "integrity": "sha1-ZEun8JX3/898Q7Xw3DnTwfA8Bjs=", - "dev": true, - "requires": { - "typical": "^2.6.0" - } - } - } - }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -26142,31 +16943,6 @@ "integrity": "sha1-Gv2Uc46ZmwNG17n8NzvlXgdXcCk=", "dev": true }, - "spawn-wrap": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/spawn-wrap/-/spawn-wrap-2.0.0.tgz", - "integrity": "sha512-EeajNjfN9zMnULLwhZZQU3GWBoFNkbngTUPfaawT4RkMiviTxcX0qfhVbGey39mfctfDHkWtuecgQ8NJcyQWHg==", - "dev": true, - "requires": { - "foreground-child": "^2.0.0", - "is-windows": "^1.0.2", - "make-dir": "^3.0.0", - "rimraf": "^3.0.0", - "signal-exit": "^3.0.2", - "which": "^2.0.1" - }, - "dependencies": { - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - } - } - }, "spdx-correct": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", @@ -26232,76 +17008,8 @@ "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" - }, - "start-server-and-test": { - "version": "1.11.3", - "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.11.3.tgz", - "integrity": "sha512-7r2lvcnJPECSG+ydMzk1wLt3MdzsHnYj+kXgKyzbvTXul5XYEmYJJ3K7YUGNgo5w/vnZb8L/AZMyg1C17qBdzg==", - "dev": true, - "requires": { - "bluebird": "3.7.2", - "check-more-types": "2.24.0", - "debug": "4.1.1", - "execa": "3.4.0", - "lazy-ass": "1.6.0", - "ps-tree": "1.2.0", - "wait-on": "5.2.0" - }, - "dependencies": { - "execa": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-3.4.0.tgz", - "integrity": "sha512-r9vdGQk4bmCuK1yKQu1KTwcT2zwfWdbdaXfCtAh+5nU/4fSX+JAb7vZGvI5naJrQlvONrEB20jeruESI69530g==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.0", - "get-stream": "^5.0.0", - "human-signals": "^1.1.1", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.0", - "onetime": "^5.1.0", - "p-finally": "^2.0.0", - "signal-exit": "^3.0.2", - "strip-final-newline": "^2.0.0" - } - }, - "get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - }, - "p-finally": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-2.0.1.tgz", - "integrity": "sha512-vpm09aKwq6H9phqRQzecoDpD8TmVyGw70qmWlyq5onxY7tqyTTFVvxMykxQSQKILBSFlbXpypIw2T1Ml7+DDtw==", - "dev": true - } - } - }, - "stream-browserify": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", - "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", - "dev": true, - "requires": { - "inherits": "~2.0.1", - "readable-stream": "^2.0.2" - } - }, - "stream-combiner": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz", - "integrity": "sha1-TV5DPBhSYd3mI8o/RMWGvPXErRQ=", - "dev": true, - "requires": { - "duplexer": "~0.1.1" - } + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true }, "stream-combiner2": { "version": "1.1.1", @@ -26313,67 +17021,6 @@ "readable-stream": "^2.0.2" } }, - "stream-connect": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/stream-connect/-/stream-connect-1.0.2.tgz", - "integrity": "sha1-GLyB8u2zW4tdmoAJIAqYUxRCipc=", - "dev": true, - "requires": { - "array-back": "^1.0.2" - }, - "dependencies": { - "array-back": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", - "integrity": "sha1-ZEun8JX3/898Q7Xw3DnTwfA8Bjs=", - "dev": true, - "requires": { - "typical": "^2.6.0" - } - } - } - }, - "stream-http": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-3.1.0.tgz", - "integrity": "sha512-cuB6RgO7BqC4FBYzmnvhob5Do3wIdIsXAgGycHJnW+981gHqoYcYz9lqjJrk8WXRddbwPuqPYRl+bag6mYv4lw==", - "dev": true, - "requires": { - "builtin-status-codes": "^3.0.0", - "inherits": "^2.0.1", - "readable-stream": "^3.0.6", - "xtend": "^4.0.0" - }, - "dependencies": { - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - } - } - }, - "stream-splicer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/stream-splicer/-/stream-splicer-2.0.1.tgz", - "integrity": "sha512-Xizh4/NPuYSyAXyT7g8IvdJ9HJpxIGL9PjyhtywCZvvP0OPIdqyrr4dMikeuvY8xahpdKEBlBTySe583totajg==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.2" - } - }, - "stream-via": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/stream-via/-/stream-via-1.0.4.tgz", - "integrity": "sha512-DBp0lSvX5G9KGRDTkR/R+a29H+Wk2xItOF+MpZLLNDWbEV9tGPnqLPxHEYjmiz8xGtJHRIqmI+hCjmNzqoA4nQ==", - "dev": true - }, "string_decoder": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", @@ -26383,67 +17030,6 @@ "safe-buffer": "~5.1.0" } }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "string.prototype.trimend": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.1.tgz", - "integrity": "sha512-LRPxFUaTtpqYsTeNKaFOw3R4bxIzWOnbQ837QfBylo8jIxtcbK/A/sMV7Q+OAV/vWo+7s25pOE10KYSjaSO06g==", - "dev": true, - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.5" - } - }, - "string.prototype.trimleft": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.2.tgz", - "integrity": "sha512-gCA0tza1JBvqr3bfAIFJGqfdRTyPae82+KTnm3coDXkZN9wnuW3HjGgN386D7hfv5CHQYCI022/rJPVlqXyHSw==", - "dev": true, - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.5", - "string.prototype.trimstart": "^1.0.0" - } - }, - "string.prototype.trimright": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.2.tgz", - "integrity": "sha512-ZNRQ7sY3KroTaYjRS6EbNiiHrOkjihL9aQE/8gfQ4DtAC/aEBRHFJa44OmoWxGGqXuJlfKkZW4WcXErGr+9ZFg==", - "dev": true, - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.5", - "string.prototype.trimend": "^1.0.0" - } - }, - "string.prototype.trimstart": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.1.tgz", - "integrity": "sha512-XxZn+QpvrBI1FOcg6dIpxUPgWCPuNXvMD72aaRaUQv1eD4e/Qy8i/hFTe0BUmD60p/QA6bh1avmuPTfNjqVWRw==", - "dev": true, - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.5" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - }, "strip-bom": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", @@ -26474,15 +17060,6 @@ "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", "dev": true }, - "subarg": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz", - "integrity": "sha1-9izxdYHplrSPyWVpn1TAauJouNI=", - "dev": true, - "requires": { - "minimist": "^1.1.0" - } - }, "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", @@ -26519,15 +17096,6 @@ } } }, - "syntax-error": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", - "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", - "dev": true, - "requires": { - "acorn-node": "^1.2.0" - } - }, "table": { "version": "6.7.1", "resolved": "https://registry.npmjs.org/table/-/table-6.7.1.tgz", @@ -26600,86 +17168,12 @@ } } }, - "table-layout": { - "version": "0.4.5", - "resolved": "https://registry.npmjs.org/table-layout/-/table-layout-0.4.5.tgz", - "integrity": "sha512-zTvf0mcggrGeTe/2jJ6ECkJHAQPIYEwDoqsiqBjI24mvRmQbInK5jq33fyypaCBxX08hMkfmdOqj6haT33EqWw==", - "dev": true, - "requires": { - "array-back": "^2.0.0", - "deep-extend": "~0.6.0", - "lodash.padend": "^4.6.1", - "typical": "^2.6.1", - "wordwrapjs": "^3.0.0" - }, - "dependencies": { - "array-back": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", - "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", - "dev": true, - "requires": { - "typical": "^2.6.1" - } - } - } - }, - "taffydb": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/taffydb/-/taffydb-2.6.2.tgz", - "integrity": "sha1-fLy2S1oUG2ou/CxdLGe04VCyomg=", - "dev": true - }, - "tar-fs": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", - "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", - "dev": true, - "requires": { - "chownr": "^1.1.1", - "mkdirp-classic": "^0.5.2", - "pump": "^3.0.0", - "tar-stream": "^2.1.4" - } - }, - "tar-stream": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", - "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", - "dev": true, - "requires": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" - }, - "dependencies": { - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - } - } - }, "temp-dir": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", "dev": true }, - "temp-path": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/temp-path/-/temp-path-1.0.0.tgz", - "integrity": "sha1-JLFUOXOrRCiW2a02fdnL2/r+kYs=", - "dev": true - }, "tempy": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/tempy/-/tempy-0.5.0.tgz", @@ -26700,44 +17194,6 @@ } } }, - "ternary": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/ternary/-/ternary-1.0.0.tgz", - "integrity": "sha1-RXAnJWCMlJnUapYQ6bDkn/JveJ4=", - "dev": true - }, - "test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, - "requires": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - } - }, - "test-value": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/test-value/-/test-value-3.0.0.tgz", - "integrity": "sha512-sVACdAWcZkSU9x7AOmJo5TqE+GyNJknHaHsMrR6ZnhjVlVN9Yx6FjHrsKZ3BjIpPCT68zYesPWkakrNupwfOTQ==", - "dev": true, - "requires": { - "array-back": "^2.0.0", - "typical": "^2.6.1" - }, - "dependencies": { - "array-back": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", - "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", - "dev": true, - "requires": { - "typical": "^2.6.1" - } - } - } - }, "text-extensions": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-1.9.0.tgz", @@ -26765,26 +17221,6 @@ "readable-stream": "2 || 3" } }, - "timers-browserify": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", - "integrity": "sha1-ycWLV1voQHN1y14kYtrO50NZ9B0=", - "dev": true, - "requires": { - "process": "~0.11.0" - } - }, - "tiny-merge-patch": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/tiny-merge-patch/-/tiny-merge-patch-0.1.2.tgz", - "integrity": "sha1-Lo3tGcVuoV29OtTtXbHI5a1UTDw=" - }, - "to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", - "dev": true - }, "to-object-path": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", @@ -26812,42 +17248,8 @@ "tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" - }, - "transformify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/transformify/-/transformify-0.1.2.tgz", - "integrity": "sha1-mk9CoVRDPdcnuAV1Qoo8nlSJ6/E=", - "dev": true, - "requires": { - "readable-stream": "~1.1.9" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - }, - "readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", - "dev": true - } - } + "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=", + "dev": true }, "traverse": { "version": "0.6.6", @@ -26867,27 +17269,6 @@ "integrity": "sha512-kh6Tu6GbeSNMGfrrZh6Bb/4ZEHV1QlB4xNDBeog8Y9/QwFlKTRyWvY3Fs9tRDAMZliVUwieMgEdIeL/FtqjkJg==", "dev": true }, - "tsd-jsdoc": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tsd-jsdoc/-/tsd-jsdoc-2.5.0.tgz", - "integrity": "sha512-80fcJLAiUeerg4xPftp+iEEKWUjJjHk9AvcHwJqA8Zw0R4oASdu3kT/plE/Zj19QUTz8KupyOX25zStlNJjS9g==", - "dev": true, - "requires": { - "typescript": "^3.2.1" - } - }, - "tslib": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", - "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", - "dev": true - }, - "tty-browserify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.1.tgz", - "integrity": "sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==", - "dev": true - }, "type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -26897,12 +17278,6 @@ "prelude-ls": "^1.2.1" } }, - "type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true - }, "type-fest": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", @@ -26915,51 +17290,6 @@ "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", "dev": true }, - "typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "dev": true, - "requires": { - "is-typedarray": "^1.0.0" - } - }, - "typescript": { - "version": "3.9.6", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.6.tgz", - "integrity": "sha512-Pspx3oKAPJtjNwE92YS05HQoY7z2SFyOpHo9MqJor3BXAGNaPUs83CuVp9VISFkSjyRfiTpmKuAYGJB7S7hOxw==", - "dev": true - }, - "typical": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", - "integrity": "sha1-XAgOXWYcu+OCWdLnCjxyU+hziB0=", - "dev": true - }, - "uc.micro": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", - "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==", - "dev": true - }, - "uglify-es": { - "version": "3.3.9", - "resolved": "https://registry.npmjs.org/uglify-es/-/uglify-es-3.3.9.tgz", - "integrity": "sha512-r+MU0rfv4L/0eeW3xZrd16t4NZfK8Ld4SWVglYBb7ez5uXFWHuVRs6xCTrf1yirs9a4j4Y27nn7SRfO6v67XsQ==", - "dev": true, - "requires": { - "commander": "~2.13.0", - "source-map": "~0.6.1" - }, - "dependencies": { - "commander": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.13.0.tgz", - "integrity": "sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA==", - "dev": true - } - } - }, "uglify-js": { "version": "3.13.5", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.5.tgz", @@ -26967,50 +17297,6 @@ "dev": true, "optional": true }, - "umd": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/umd/-/umd-3.0.3.tgz", - "integrity": "sha512-4IcGSufhFshvLNcMCV80UnQVlZ5pMOC8mvNPForqwA4+lzYQuetTESLDQkeLmihq8bRcnpbQa48Wb8Lh16/xow==", - "dev": true - }, - "unbzip2-stream": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz", - "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==", - "dev": true, - "requires": { - "buffer": "^5.2.1", - "through": "^2.3.8" - } - }, - "undeclared-identifiers": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/undeclared-identifiers/-/undeclared-identifiers-1.1.3.tgz", - "integrity": "sha512-pJOW4nxjlmfwKApE4zvxLScM/njmwj/DiUBv7EabwE4O8kRUy+HIwxQtZLBPll/jx1LJyBcqNfB3/cpv9EZwOw==", - "dev": true, - "requires": { - "acorn-node": "^1.3.0", - "dash-ast": "^1.0.0", - "get-assigned-identifiers": "^1.2.0", - "simple-concat": "^1.0.0", - "xtend": "^4.0.1" - } - }, - "underscore": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.10.2.tgz", - "integrity": "sha512-N4P+Q/BuyuEKFJ43B9gYuOj4TQUHXX+j2FqguVOpjkssLUUrnJofCcBccJSCoeturDoZU6GorDTHSvUDlSQbTg==", - "dev": true - }, - "union": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/union/-/union-0.5.0.tgz", - "integrity": "sha512-N6uOhuW6zO95P3Mel2I2zMsbsanvvtgn6jVqJv4vbVcz/JN0OkL9suomjQGmWtxJQXOCqUJvquc1sMeNz/IwlA==", - "dev": true, - "requires": { - "qs": "^6.4.0" - } - }, "unique-string": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", @@ -27036,26 +17322,9 @@ "version": "4.2.2", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", - "requires": { - "punycode": "^2.1.0" - } - }, - "url": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", - "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", "dev": true, "requires": { - "punycode": "1.3.2", - "querystring": "0.2.0" - }, - "dependencies": { - "punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", - "dev": true - } + "punycode": "^2.1.0" } }, "url-join": { @@ -27064,35 +17333,12 @@ "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==", "dev": true }, - "util": { - "version": "0.10.4", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", - "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", - "dev": true, - "requires": { - "inherits": "2.0.3" - }, - "dependencies": { - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - } - } - }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "dev": true }, - "uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "dev": true - }, "v8-compile-cache": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", @@ -27109,69 +17355,22 @@ "spdx-expression-parse": "^3.0.0" } }, - "vm-browserify": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", - "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", - "dev": true - }, - "wait-on": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/wait-on/-/wait-on-5.2.0.tgz", - "integrity": "sha512-U1D9PBgGw2XFc6iZqn45VBubw02VsLwnZWteQ1au4hUVHasTZuFSKRzlTB2dqgLhji16YVI8fgpEpwUdCr8B6g==", - "dev": true, - "requires": { - "axios": "^0.19.2", - "joi": "^17.1.1", - "lodash": "^4.17.19", - "minimist": "^1.2.5", - "rxjs": "^6.5.5" - } - }, - "walk-back": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/walk-back/-/walk-back-4.0.0.tgz", - "integrity": "sha512-kudCA8PXVQfrqv2mFTG72vDBRi8BKWxGgFLwPpzHcpZnSwZk93WMwUDVcLHWNsnm+Y0AC4Vb6MUNRgaHfyV2DQ==", - "dev": true - }, "webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" + "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=", + "dev": true }, "whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", + "dev": true, "requires": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" } }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true - }, - "wide-align": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", - "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", - "dev": true, - "requires": { - "string-width": "^1.0.2 || 2" - } - }, "word-wrap": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", @@ -27184,98 +17383,18 @@ "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", "dev": true }, - "wordwrapjs": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/wordwrapjs/-/wordwrapjs-3.0.0.tgz", - "integrity": "sha512-mO8XtqyPvykVCsrwj5MlOVWvSnCdT+C+QVbm6blradR7JExAhbkZ7hZ9A+9NUtwzSqrlUo9a67ws0EiILrvRpw==", - "dev": true, - "requires": { - "reduce-flatten": "^1.0.1", - "typical": "^2.6.1" - } - }, - "wrap-ansi": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", - "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.0", - "string-width": "^3.0.0", - "strip-ansi": "^5.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, - "write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", - "dev": true, - "requires": { - "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - } - }, - "ws": { - "version": "7.4.6", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz", - "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==", - "dev": true, - "requires": {} - }, - "xmlcreate": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.3.tgz", - "integrity": "sha512-HgS+X6zAztGa9zIK3Y3LXuJes33Lz9x+YyTxgrkIdabu2vqcGOWwdfCpf1hWLRrd553wd4QCDf6BBO6FfdsRiQ==", - "dev": true - }, "xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "dev": true }, - "y18n": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz", - "integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==", - "dev": true - }, "yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", @@ -27288,116 +17407,6 @@ "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", "dev": true }, - "yaml-ast-parser": { - "version": "0.0.43", - "resolved": "https://registry.npmjs.org/yaml-ast-parser/-/yaml-ast-parser-0.0.43.tgz", - "integrity": "sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A==" - }, - "yargs": { - "version": "13.3.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", - "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", - "dev": true, - "requires": { - "cliui": "^5.0.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^13.1.2" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true - }, - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "requires": { - "p-limit": "^2.0.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - }, - "yargs-parser": { - "version": "13.1.2", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", - "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - } - } - }, "yargs-parser": { "version": "10.1.0", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz", @@ -27406,27 +17415,6 @@ "requires": { "camelcase": "^4.1.0" } - }, - "yargs-unparser": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.6.0.tgz", - "integrity": "sha512-W9tKgmSn0DpSatfri0nx52Joq5hVXgeLiqR/5G0sZNDoLZFOr/xjBUDcShCOGNsBnEMNo1KAMBkTej1Hm62HTw==", - "dev": true, - "requires": { - "flat": "^4.1.0", - "lodash": "^4.17.15", - "yargs": "^13.3.0" - } - }, - "yauzl": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=", - "dev": true, - "requires": { - "buffer-crc32": "~0.2.3", - "fd-slicer": "~1.1.0" - } } } } diff --git a/package.json b/package.json index dbcf02510..8b79221b3 100644 --- a/package.json +++ b/package.json @@ -1,28 +1,14 @@ { "name": "@asyncapi/parser", - "version": "1.14.1", + "version": "2.0.0", "description": "JavaScript AsyncAPI parser.", - "main": "lib/index.js", - "types": "types.d.ts", - "directories": { - "test": "test" - }, "scripts": { - "test": "npm run test:browser:cleanup && npm run test:lib && npm run test:parseFromUrl && npm run cover:report && npm run test:browser", - "bundle": "browserify \"lib/browser.js\" | uglifyjs > \"dist/bundle.js\"", - "docs": "jsdoc2md \"lib/parser.js\" -f \"lib/**/*.js\" > docs/api/v2.md", - "types": "jsdoc -t \"node_modules/tsd-jsdoc/dist\" -r lib -d \"./\" && node \"./scripts/fix-ts-types.js\"", - "prepublishOnly": "npm run bundle && npm run docs && npm run types", + "prepublishOnly": "npm run bundle && npm run types", "release": "semantic-release", - "lint": "eslint --max-warnings 0 --config \".eslintrc\" \".\"", - "lint:fix": "eslint --max-warnings 0 --config \".eslintrc\" \".\" --fix", - "test:lib": "nyc --silent --no-clean mocha --exclude \"test/browser_test.js\" --exclude \"test/parseFromUrl_test.js\" --recursive", - "test:parseFromUrl": "nyc --silent --no-clean start-server-and-test \"http-server test/sample_browser --cors -s\" 8080 \"mocha test/parseFromUrl_test.js\"", - "cover:report": "nyc report --reporter=text --reporter=html", - "test:browser": "npm run test:browser:cleanup && npm run bundle && shx cp \"dist/bundle.js\" \"test/sample_browser/\" && start-server-and-test \"http-server test/sample_browser --cors -s\" 8080 \"mocha --timeout 20000 test/browser_test.js\" && npm run test:browser:cleanup", - "test:browser:cleanup": "rimraf \"test/sample_browser/bundle.js\"", + "lint": "eslint --no-error-on-unmatched-pattern --max-warnings 0 --config \".eslintrc\" \".\"", + "lint:fix": "eslint --no-error-on-unmatched-pattern --max-warnings 0 --config \".eslintrc\" \".\" --fix", "generate:readme:toc": "markdown-toc -i \"README.md\"", - "generate:assets": "npm run docs && npm run generate:readme:toc && npm run types && npm run bundle", + "generate:assets": "npm run generate:readme:toc", "bump:version": "npm --no-git-tag-version --allow-same-version version $VERSION" }, "bugs": { @@ -32,7 +18,6 @@ "type": "git", "url": "git://github.com/asyncapi/parser-js.git" }, - "author": "Fran Mendez (fmvilas.com)", "publishConfig": { "access": "public" }, @@ -43,54 +28,17 @@ "@semantic-release/github": "7.2.3", "@semantic-release/npm": "^7.0.3", "@semantic-release/release-notes-generator": "^9.0.1", - "browserify": "^16.3.0", - "browserify-shim": "^3.8.14", - "chai": "^4.2.0", - "chai-as-promised": "^7.1.1", "conventional-changelog-conventionalcommits": "^4.2.3", "eslint": "^7.27.0", "eslint-plugin-mocha": "^7.0.1", "eslint-plugin-security": "^1.4.0", "eslint-plugin-sonarjs": "^0.5.0", - "http-server": "^0.12.3", - "jsdoc-to-markdown": "^5.0.0", "markdown-toc": "^1.2.0", - "mocha": "^6.1.4", - "nyc": "^15.1.0", - "puppeteer": "^7.0.1", - "rimraf": "^3.0.2", - "semantic-release": "17.4.3", - "shx": "^0.3.3", - "start-server-and-test": "^1.11.3", - "tsd-jsdoc": "^2.5.0", - "uglify-es": "^3.3.9" - }, - "dependencies": { - "@apidevtools/json-schema-ref-parser": "^9.0.6", - "@asyncapi/specs": "^2.13.0", - "@fmvilas/pseudo-yaml-ast": "^0.3.1", - "ajv": "^6.10.1", - "js-yaml": "^3.13.1", - "json-to-ast": "^2.1.0", - "lodash.clonedeep": "^4.5.0", - "node-fetch": "^2.6.0", - "tiny-merge-patch": "^0.1.2" - }, - "browserify": { - "transform": [ - "browserify-shim" - ] - }, - "browserify-shim": { - "node-fetch": "global:fetch" + "semantic-release": "17.4.3" }, "release": { "branches": [ "master", - { - "name": "2022-04-release", - "prerelease": true - }, { "name": "next-major", "prerelease": true @@ -117,20 +65,9 @@ [ "@semantic-release/github", { - "assets": [ - { - "path": "dist/bundle.js", - "label": "Browser Bundle" - } - ] + "assets": [] } ] ] - }, - "nyc": { - "exclude": [ - "dist/bundle.js", - "test/**/*.js" - ] } } diff --git a/scripts/fix-ts-types.js b/scripts/fix-ts-types.js deleted file mode 100644 index 45f4932cf..000000000 --- a/scripts/fix-ts-types.js +++ /dev/null @@ -1,36 +0,0 @@ -/** - * This script removes unnecessary and broken types from "types.d.ts" file. - * Script should be run on repository's root path. - * - * Example - * - * This: - * - * declare namespace MixinExternalDocs { - * function hasExternalDocs(): boolean; - * function externalDocs(): ExternalDocs | null; - * } - * - * declare interface MixinExternalDocs { - * } - * - * will be shortened to this: - * - * declare interface MixinExternalDocs { - * } - */ - -const fs = require('fs'); -const path = require('path'); - -const tsFile = path.resolve(__dirname, '../types.d.ts'); - -const data = fs.readFileSync(tsFile, 'utf-8'); - -/** - * Find `declare namespace XYZ {...}` declaration and remove it - */ -const namespaceRegex = /(declare namespace)[ A-Za-z]*{((.|\n)+?)(?!(};))}/g; -const newData = data.replace(namespaceRegex, ''); - -fs.writeFileSync(tsFile, newData, 'utf-8'); diff --git a/test/asyncapiSchemaFormatParser_test.js b/test/asyncapiSchemaFormatParser_test.js deleted file mode 100644 index 620c55123..000000000 --- a/test/asyncapiSchemaFormatParser_test.js +++ /dev/null @@ -1,194 +0,0 @@ -const parser = require('../lib'); -const chai = require('chai'); -const fs = require('fs'); -const path = require('path'); -const { offset, checkErrorWrapper } = require('./testsUtils'); - -const expect = chai.expect; - -describe('asyncapiSchemaFormatParser', function() { - it('should throw an error because of invalid schema', async function() { - const invalidAsyncapi = fs.readFileSync(path.resolve(__dirname, './wrong/invalid-payload-asyncapi-format.json'), 'utf8'); - - const parsedJSON = JSON.parse(invalidAsyncapi); - parsedJSON.channels.mychannel.publish.message['x-parser-original-payload'] = { - type: 'object', - additionalProperties: [ - 'invalid_array' - ] - }; - parsedJSON.channels.mychannel.publish.message['x-parser-original-schema-format'] = 'application/vnd.aai.asyncapi;version=2.0.0'; - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/schema-validation-errors', - title: 'This is not a valid AsyncAPI Schema Object.', - parsedJSON, - validationErrors: [{ - title: '/channels/mychannel/publish/message/payload/additionalProperties should be object,boolean', - location: { - jsonPointer: '/channels/mychannel/publish/message/payload/additionalProperties', - startLine: 13, - startColumn: 38, - startOffset: offset(252, 13), - endLine: 15, - endColumn: 15, - endOffset: offset(297, 15) - } - }, - { - title: '/channels/mychannel/publish/message/payload/additionalProperties should be object,boolean', - location: { - jsonPointer: '/channels/mychannel/publish/message/payload/additionalProperties', - startLine: 13, - startColumn: 38, - startOffset: offset(252, 13), - endLine: 15, - endColumn: 15, - endOffset: offset(297, 15) - } - }, - { - title: '/channels/mychannel/publish/message/payload/additionalProperties should be boolean', - location: { - jsonPointer: '/channels/mychannel/publish/message/payload/additionalProperties', - startLine: 13, - startColumn: 38, - startOffset: offset(252, 13), - endLine: 15, - endColumn: 15, - endOffset: offset(297, 15) - } - }, - { - title: '/channels/mychannel/publish/message/payload/additionalProperties should match some schema in anyOf', - location: { - jsonPointer: '/channels/mychannel/publish/message/payload/additionalProperties', - startLine: 13, - startColumn: 38, - startOffset: offset(252, 13), - endLine: 15, - endColumn: 15, - endOffset: offset(297, 15) - } - }] - }; - await checkErrorWrapper(async () => { - await parser.parse(invalidAsyncapi); - }, expectedErrorObject); - }); - - it('should not throw error if payload not provided', async function() { - const inputString = `{ - "asyncapi": "2.0.0", - "info": { - "title": "My API", - "version": "1.0.0" - }, - "channels": { - "mychannel": { - "publish": { - "message": { - } - } - } - } - }`; - const parsedInput = JSON.parse(inputString); - - expect(async () => await parser.parse(parsedInput)).to.not.throw(); - }); - - it('should handle true/false JSON Schemas', async function() { - const inputSpec = { - asyncapi: '2.0.0', - info: { - title: 'Example Spec', - version: '1.0.0', - }, - channels: { - testChannel: { - publish: { - message: { - payload: { - type: 'object', - properties: { - trueSchema: true, - falseSchema: false, - normalSchema: { - type: 'string', - } - }, - } - } - }, - subscribe: { - message: { - headers: true, - payload: false, - } - }, - }, - testChanne2: { - publish: { - message: { - payload: true, - } - } - } - }, - components: { - schemas: { - testSchema: { - type: 'object', - properties: { - trueSchema: true, - falseSchema: false, - normalSchema: { - type: 'string', - } - }, - }, - anySchema: true, - cannotBeDefined: false, - } - } - }; - - expect(async () => await parser.parse(inputSpec)).to.not.throw(); - }); - - it('should deep clone schema into x-parser-original-payload', async function() { - const asyncapi = fs.readFileSync(path.resolve(__dirname, './good/asyncapi-complex-schema.yml'), 'utf8'); - const expectedOriginalPayload = { - type: 'object', - properties: { - id: { - description: 'Id of the streetlight.', - minimum: 0, - type: 'integer' - }, - lumens: { - description: 'Light intensity measured in lumens.', - minimum: 0, - type: 'integer' - }, - sentAt: { - description: 'Date and time when the message was sent.', - format: 'date-time', - type: 'string' - } - } - }; - const expectedOriginalSchemaFormat = 'application/vnd.aai.asyncapi;version=2.0.0'; - - const parsedOutput = await parser.parse(asyncapi); - const parsedMessage = parsedOutput.channel('light/measured').publish().message().json(); - - expect(parsedMessage.payload).to.have.property('x-parser-schema-id'); - expect(parsedMessage).to.have.property('x-parser-original-payload'); - expect(parsedMessage).to.have.property('x-parser-original-schema-format'); - expect(parsedMessage['x-parser-original-payload']).to.deep.equal(expectedOriginalPayload); - expect(parsedMessage['x-parser-original-payload']).to.not.equal(parsedMessage.payload); - expect(parsedMessage['x-parser-original-schema-format']).to.deep.equal(expectedOriginalSchemaFormat); - }); -}); diff --git a/test/browser_test.js b/test/browser_test.js deleted file mode 100644 index a32acf0af..000000000 --- a/test/browser_test.js +++ /dev/null @@ -1,63 +0,0 @@ -const chai = require('chai'); -const puppeteer = require('puppeteer'); - -const expect = chai.expect; -let browser; -let page; - -describe('Check Parser in the browser', function() { - before(async function() { - try { - //use this in case you want to troubleshoot in a real chrome window => browser = await puppeteer.launch({headless: false}); - console.info('starting browser'); - browser = await puppeteer.launch(); - console.info('opening new page'); - page = await browser.newPage(); - page.on('console', msg => { - for (let i = 0; i < msg.args().length; ++i) - console.error(`Browser console content ${i}: ${JSON.stringify(msg.args()[i]._remoteObject, null, 2)}`); - }); - console.info('navigating to localhost'); - await page.goto('http://localhost:8080', { waitUntil: 'networkidle0' }); - } catch (e) { - throw new Error(e); - } - }); - - it('parsing spec as string should complete successfully', async function() { - try { - console.info('getting fromString element'); - const specString = await page.$('#fromString'); - const content = await page.evaluate(element => element.textContent, specString); - expect(content).to.be.equal('2.0.0'); - } catch (e) { - throw new Error(e); - } - }).timeout(5000); - - it('parsing spec from remote should complete successfully', async function() { - try { - //making sure the div element is visible as this is how test script works, that it shows element only when fetching and parsing is done - //this way we are 100% sure test will not go faster than the script in the browser - console.info('waiting for fromUrl element that shows up after spec fetch'); - await page.waitForSelector('#fromUrl', { - visible: true, - }); - console.info('getting fromUrl element'); - const specUrl = await page.$('#fromUrl'); - const content = await page.evaluate(element => element.textContent, specUrl); - - expect(content).to.be.equal('2.0.0'); - } catch (e) { - throw new Error(e); - } - }).timeout(5000); - - after(async function() { - try { - await browser.close(); - } catch (e) { - throw new Error(e); - } - }); -}); diff --git a/test/customValidators_test.js b/test/customValidators_test.js deleted file mode 100644 index 34fd8592c..000000000 --- a/test/customValidators_test.js +++ /dev/null @@ -1,1349 +0,0 @@ -const { - validateServerVariables, - validateOperationId, - validateServerSecurity, - validateChannels, -} = require('../lib/customValidators.js'); -const { checkErrorWrapper } = require('./testsUtils'); - -const chai = require('chai'); -const expect = chai.expect; -const input = 'json'; - -describe('validateServerVariables()', function () { - it('should successfully validate the server variables', async function () { - const inputString = `{ - "servers": { - "dummy": { - "url": "http://localhost:{port}", - "variables": { - "port": { - "default": "3000" - } - } - - } - } - }`; - const parsedInput = JSON.parse(inputString); - - expect(validateServerVariables(parsedInput, inputString, input)).to.equal( - true - ); - }); - - it('should successfully validate if server object not provided', async function () { - const inputString = '{}'; - const parsedInput = JSON.parse(inputString); - - expect(validateServerVariables(parsedInput, inputString, input)).to.equal( - true - ); - }); - - it('should throw error that one of variables is not provided', async function () { - const inputString = `{ - "servers": { - "dummy": { - "url": "http://{host}{port}", - "variables": { - "port": { - "default": "3000" - } - } - } - } - }`; - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Not all server variables are described with variable object', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - 'dummy server does not have a corresponding variable object for: host', - location: { - jsonPointer: '/servers/dummy', - startLine: 3, - startColumn: 19, - startOffset: 39, - endLine: 10, - endColumn: 11, - endOffset: 196, - }, - }, - ], - }; - - await checkErrorWrapper(async () => { - await validateServerVariables(parsedInput, inputString, input); - }, expectedErrorObject); - }); - - it('should throw error that variables are not provided if there is no variables object', async function () { - const inputString = `{ - "servers": { - "dummy": { - "url": "http://{host}{port}" - } - } - }`; - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Not all server variables are described with variable object', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - 'dummy server does not have a corresponding variable object for: host,port', - location: { - jsonPointer: '/servers/dummy', - startLine: 3, - startColumn: 19, - startOffset: 39, - endLine: 5, - endColumn: 11, - endOffset: 89, - }, - }, - ], - }; - - await checkErrorWrapper(async () => { - await validateServerVariables(parsedInput, inputString, input); - }, expectedErrorObject); - }); - - it('should throw error that variables are not provided even if they are but not matching the name', async function () { - const inputString = `{ - "servers": { - "dummy": { - "url": "http://localhost{port}", - "variables": { - "ports": { - "default": "3000" - } - } - } - } - }`; - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Not all server variables are described with variable object', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - 'dummy server does not have a corresponding variable object for: port', - location: { - jsonPointer: '/servers/dummy', - startLine: 3, - startColumn: 19, - startOffset: 39, - endLine: 10, - endColumn: 11, - endOffset: 200, - }, - }, - ], - }; - - await checkErrorWrapper(async () => { - await validateServerVariables(parsedInput, inputString, input); - }, expectedErrorObject); - }); - - it('should throw error', async function () { - const inputString = `{ - "servers": { - "dummy": { - "url": "http://{host}{port}" - } - } - }`; - const parsedInput = JSON.parse(inputString); - - expect(() => - validateServerVariables(parsedInput, inputString, input) - ).to.throw('Not all server variables are described with variable object'); - }); - - // server with a variable that has enum and an example match one of them - it('should successfully validate the server variables that has enum and an example match one of them', async function () { - const inputString = `{ - "servers": { - "dummy": { - "url": "http://localhost:{port}", - "description": "The production API server", - "protocol": "secure-mqtt", - "variables": { - "port": { - "enum": ["8883", "8884"], - "default": "8883", - "examples" : ["8883"] - } - } - } - } - }`; - - const parsedInput = JSON.parse(inputString); - - expect(validateServerVariables(parsedInput, inputString, input)).to.equal( - true - ); - }); - - // server with a variable that has only default and example, no enum - it('should successfully validate the server variables has only default and example, no enum', async function () { - const inputString = `{ - "servers": { - "dummy": - { - "url": "http://localhost:{port}", - "description": "The production API server", - "protocol": "secure-mqtt", - "variables": { - "port": { - "default": "8883", - "examples" : ["8883"] - } - } - } - } - }`; - - const parsedInput = JSON.parse(inputString); - - expect(validateServerVariables(parsedInput, inputString, input)).to.equal( - true - ); - }); - - // server with a variable that has one example and it doesn't match any of provided enum - it('should throw error on the server variables has one example and it does not match any of provided enum', async function () { - const inputString = `{ - "servers": { - "dummy": - { - "url": "http://localhost:{port}", - "description": "The production API server", - "protocol": "secure-mqtt", - "variables": { - "port": { - "enum": ["8883", "8884"], - "examples" : ["8882"] - } - } - } - } - }`; - - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Check your server variables. The example does not match the enum list', - }; - - checkErrorWrapper(() => { - validateServerVariables(parsedInput, inputString, input); - }, expectedErrorObject); - }); - - // server with a variable that has more than one example and only one of them match enum list, - // but the rest don't, - // so validation should fail with clear information which example is wrong and where in the file is it - it('should throw error on the server variables that has wrong examples but not on the ones that have correct examples', async function () { - const inputString = `{ - "servers": { - "dummy": - { - "url": "{protocol}://localhost:{port}/{basePath}", - "description": "The production API server", - "protocol": "secure-mqtt", - "variables": { - "protocol": { - "enum": ["http", "https"], - "examples" : ["http"], - "default": "https" - }, - "port": { - "enum": ["8883", "8884"], - "examples" : ["8883", "8885", "8887"], - "default": "8883" - }, - "basePath": { - "enum": ["v1", "v2", "v3"], - "examples" : ["v4"], - "default": "v2" - } - } - } - } - }`; - - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: - 'Check your server variables. The example does not match the enum list', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - 'dummy/variables/port server variable provides an example that does not match the enum list: 8885,8887', - location: { - jsonPointer: '/servers/dummy/variables/port', - startLine: 14, - startColumn: 22, - startOffset: 398, - endLine: 18, - endColumn: 15, - endOffset: 538, - }, - }, - { - title: - 'dummy/variables/basePath server variable provides an example that does not match the enum list: v4', - location: { - jsonPointer: '/servers/dummy/variables/basePath', - startLine: 19, - startColumn: 26, - startOffset: 564, - endLine: 23, - endColumn: 15, - endOffset: 686, - }, - }, - ], - }; - - await checkErrorWrapper(async () => { - await validateServerVariables(parsedInput, inputString, input); - }, expectedErrorObject); - }); -}); -describe('validateChannel()', function () { - it('should successfully validate if channel object not provided', async function () { - const inputDoc = {}; - - expect(validateChannels(inputDoc, input)).to.equal(true); - }); - - it('should successfully validate channel param', async function () { - const inputString = `{ - "channels": { - "test/{test}": { - "parameters": { - "test": { - "schema": { - "type": "string" - } - } - } - } - } - }`; - const parsedInput = JSON.parse(inputString); - - expect(validateChannels(parsedInput, inputString, input)).to.equal(true); - }); - - it('should successfully validate channel param for 2 channels', async function () { - const inputString = `{ - "channels": { - "test/{test01}": { - "parameters": { - "test01": { - "schema": { - "type": "string" - } - } - } - }, - "test/{test02}": { - "parameters": { - "test02": { - "schema": { - "type": "string" - } - } - } - } - } - }`; - const parsedInput = JSON.parse(inputString); - - expect(validateChannels(parsedInput, inputString, input)).to.equal(true); - }); - - it('should throw error that one of provided channel params is not declared', async function () { - const inputString = `{ - "channels": { - "test/{test}/{testid}": { - "parameters": { - "test": { - "schema": { - "type": "string" - } - } - } - } - } - }`; - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Channel validation failed', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - 'test/{test}/{testid} channel does not have a corresponding parameter object for: testid', - location: { - jsonPointer: '/channels/test~1{test}~1{testid}', - startLine: 3, - startColumn: 34, - startOffset: 54, - endLine: 11, - endColumn: 11, - endOffset: 214, - }, - }, - ], - }; - - await checkErrorWrapper(async () => { - await validateChannels(parsedInput, inputString, input); - }, expectedErrorObject); - }); - - it('should throw error that one of provided channel params is not declared even if other not provided params have a corresponding parameter object', async function () { - const inputString = `{ - "channels": { - "test/{test}": { - "parameters": { - "test1": { - "schema": { - "type": "string" - } - } - } - } - } - }`; - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Channel validation failed', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - 'test/{test} channel does not have a corresponding parameter object for: test', - location: { - jsonPointer: '/channels/test~1{test}', - startLine: 3, - startColumn: 25, - startOffset: 45, - endLine: 11, - endColumn: 11, - endOffset: 206, - }, - }, - ], - }; - - await checkErrorWrapper(async () => { - await validateChannels(parsedInput, inputString, input); - }, expectedErrorObject); - }); - - it('should throw error when there are no parameter objects', async function () { - const inputString = `{ - "channels": { - "test/{test}/{testid}": { - } - } - }`; - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Channel validation failed', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - 'test/{test}/{testid} channel does not have a corresponding parameter object for: test,testid', - location: { - jsonPointer: '/channels/test~1{test}~1{testid}', - startLine: 3, - startColumn: 34, - startOffset: 54, - endLine: 4, - endColumn: 11, - endOffset: 65, - }, - }, - ], - }; - - await checkErrorWrapper(async () => { - await validateChannels(parsedInput, inputString, input); - }, expectedErrorObject); - }); - - it('should throw error', async function () { - const inputString = `{ - "channels": { - "test/{test}/{testid}": { - } - } - }`; - const parsedInput = JSON.parse(inputString); - - expect(() => validateChannels(parsedInput, inputString, input)).to.throw( - 'Channel validation failed' - ); - }); - - it('should successfully validate channel name without variable', async function () { - const inputString = `{ - "channels": { - "test/test01": { - } - } - }`; - const parsedInput = JSON.parse(inputString); - - expect(validateChannels(parsedInput, inputString, input)).to.equal(true); - }); - - it('should successfully validate channel name is just a single slash (/)', async function () { - const inputString = `{ - "channels": { - "/": { - } - } - }`; - const parsedInput = JSON.parse(inputString); - - expect(validateChannels(parsedInput, inputString, input)).to.equal(true); - }); - - it('should throw error that the provided channel name is invalid', async function () { - const inputString = `{ - "channels": { - "/user/signedup?foo=1": { - } - } - }`; - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Channel validation failed', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - '/user/signedup?foo=1 channel contains invalid name with url query parameters: ?foo=1', - location: { - endColumn: 11, - endLine: 4, - endOffset: 65, - jsonPointer: '/channels/~1user~1signedup?foo=1', - startColumn: 34, - startLine: 3, - startOffset: 54, - }, - }, - ], - }; - - await checkErrorWrapper(async () => { - await validateChannels(parsedInput, inputString, input); - }, expectedErrorObject); - }); - - it('should throw error that the provided channel name is invalid when channel name is just a single slash (/)', async function () { - const inputString = `{ - "channels": { - "/?foo=1": { - } - } - }`; - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Channel validation failed', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - '/?foo=1 channel contains invalid name with url query parameters: ?foo=1', - location: { - endColumn: 11, - endLine: 4, - endOffset: 52, - jsonPointer: '/channels/~1?foo=1', - startColumn: 21, - startLine: 3, - startOffset: 41, - }, - }, - ], - }; - - await checkErrorWrapper(async () => { - await validateChannels(parsedInput, inputString, input); - }, expectedErrorObject); - }); - - it('should throw error that channel has invalid name with two query params', async function () { - const inputString = `{ - "channels": { - "/user/signedup?foo=1&bar=0": { - } - } - }`; - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Channel validation failed', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - '/user/signedup?foo=1&bar=0 channel contains invalid name with url query parameters: ?foo=1&bar=0', - location: { - endColumn: 9, - endLine: 4, - endOffset: 65, - jsonPointer: '/channels/~1user~1signedup?foo=1&bar=0', - startColumn: 38, - startLine: 3, - startOffset: 56, - }, - }, - ], - }; - - await checkErrorWrapper(async () => { - await validateChannels(parsedInput, inputString, input); - }, expectedErrorObject); - }); - - it('should throw error that one of the provided channel name is invalid', async function () { - const inputString = `{ - "channels": { - "/user/signedup?foo=1": { - }, - "/user/login": { - } - } - }`; - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Channel validation failed', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - '/user/signedup?foo=1 channel contains invalid name with url query parameters: ?foo=1', - location: { - endColumn: 9, - endLine: 4, - endOffset: 59, - jsonPointer: '/channels/~1user~1signedup?foo=1', - startColumn: 32, - startLine: 3, - startOffset: 50, - }, - }, - ], - }; - - await checkErrorWrapper(async () => { - await validateChannels(parsedInput, inputString, input); - }, expectedErrorObject); - }); - - it('should throw error that both provided channel name is invalid', async function () { - const inputString = `{ - "channels": { - "/user/signedup?foo=1": { - }, - "/user/login?bar=2": { - } - } - }`; - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Channel validation failed', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - '/user/signedup?foo=1 channel contains invalid name with url query parameters: ?foo=1', - location: { - endColumn: 9, - endLine: 4, - endOffset: 59, - jsonPointer: '/channels/~1user~1signedup?foo=1', - startColumn: 32, - startLine: 3, - startOffset: 50, - }, - }, - { - title: - '/user/login?bar=2 channel contains invalid name with url query parameters: ?bar=2', - location: { - endColumn: 9, - endLine: 6, - endOffset: 96, - jsonPointer: '/channels/~1user~1login?bar=2', - startColumn: 28, - startLine: 5, - startOffset: 87, - }, - }, - ], - }; - - await checkErrorWrapper(async () => { - await validateChannels(parsedInput, inputString, input); - }, expectedErrorObject); - }); - - it('should throw error that single channel definition failed both validations', async function () { - const inputString = `{ - "channels": { - "user/{userId}/signedup?foo=1": { - } - } - }`; - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Channel validation failed', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - 'user/{userId}/signedup?foo=1 channel does not have a corresponding parameter object for: userId', - location: { - endColumn: 9, - endLine: 4, - endOffset: 67, - jsonPointer: '/channels/user~1{userId}~1signedup?foo=1', - startColumn: 40, - startLine: 3, - startOffset: 58, - }, - }, - { - title: - 'user/{userId}/signedup?foo=1 channel contains invalid name with url query parameters: ?foo=1', - location: { - endColumn: 9, - endLine: 4, - endOffset: 67, - jsonPointer: '/channels/user~1{userId}~1signedup?foo=1', - startColumn: 40, - startLine: 3, - startOffset: 58, - }, - }, - ], - }; - - await checkErrorWrapper(async () => { - await validateChannels(parsedInput, inputString, input); - }, expectedErrorObject); - }); - - it('should throw error that both provided channels contain errors', async function () { - const inputString = `{ - "channels": { - "/user/signedup?foo=1": { - }, - "test/{test}": { - } - } - }`; - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Channel validation failed', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - 'test/{test} channel does not have a corresponding parameter object for: test', - location: { - endColumn: 9, - endLine: 6, - endOffset: 90, - jsonPointer: '/channels/test~1{test}', - startColumn: 22, - startLine: 5, - startOffset: 81, - }, - }, - { - title: - '/user/signedup?foo=1 channel contains invalid name with url query parameters: ?foo=1', - location: { - endColumn: 9, - endLine: 4, - endOffset: 59, - jsonPointer: '/channels/~1user~1signedup?foo=1', - startColumn: 32, - startLine: 3, - startOffset: 50, - }, - }, - ] - }; - - checkErrorWrapper(() => { - validateChannels(parsedInput, inputString, input); - }, expectedErrorObject); - }); - - it('should successfully validate channel with servers that are all declared in servers object', async function () { - const inputString = `{ - "servers": { - "server1": { - "url": "http://localhost", - "protocol": "kafka" - }, - "server2": { - "url": "http://test.org", - "protocol": "jms" - } - }, - "channels": { - "jmsQueue": { - "servers": ["server2"] - } - } - }`; - const parsedInput = JSON.parse(inputString); - - expect(validateChannels(parsedInput, inputString, input)).to.equal(true); - }); - - it('should throw error that servers list references an unknown server', async function () { - const inputString = `{ - "servers": { - "server1": { - "url": "http://localhost", - "protocol": "kafka" - }, - "server2": { - "url": "http://test.org", - "protocol": "jms" - } - }, - "channels": { - "jmsQueue": { - "servers": ["server2", "unknownServer"] - } - } - }`; - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Channel validation failed', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - 'jmsQueue channel contains servers that are not on the servers list in the root of the document: unknownServer', - location: { - endColumn: 11, - endLine: 15, - endOffset: 325, - jsonPointer: '/channels/jmsQueue', - startColumn: 22, - startLine: 13, - startOffset: 264, - } - } - ] - }; - - await checkErrorWrapper(() => { - validateChannels(parsedInput, inputString, input); - }, expectedErrorObject); - }); - - it('should throw error that servers list references an unknown server in two channels, one is valid', async function () { - const inputString = `{ - "servers": { - "server1": { - "url": "http://localhost", - "protocol": "kafka" - }, - "server2": { - "url": "http://test.org", - "protocol": "jms" - } - }, - "channels": { - "valid": { - "servers": ["server1", "server2"] - }, - "invalid1": { - "servers": ["server1", "unknownServer1", "unknownServe2"] - }, - "invalid2": { - "servers": ["server1", "unknownServer1"] - } - } - }`; - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Channel validation failed', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - 'invalid1 channel contains servers that are not on the servers list in the root of the document: unknownServer1,unknownServe2', - location: { - endColumn: 11, - endLine: 18, - endOffset: 417, - jsonPointer: '/channels/invalid1', - startColumn: 22, - startLine: 16, - startOffset: 338, - } - }, - { - title: - 'invalid2 channel contains servers that are not on the servers list in the root of the document: unknownServer1', - location: { - endColumn: 11, - endLine: 21, - endOffset: 501, - jsonPointer: '/channels/invalid2', - startColumn: 22, - startLine: 19, - startOffset: 439, - } - } - ] - }; - - await checkErrorWrapper(() => { - validateChannels(parsedInput, inputString, input); - }, expectedErrorObject); - }); -}); - -describe('validateOperationId()', function () { - const operations = ['subscribe', 'publish']; - - it('should successfully validate operationId', async function () { - const inputString = `{ - "asyncapi": "2.0.0", - "info": { - "version": "1.0.0" - }, - "channels": { - "test/1": { - "publish": { - "operationId": "test1" - } - }, - "test/2": { - "subscribe": { - "operationId": "test2" - } - } - } - }`; - const parsedInput = JSON.parse(inputString); - - expect( - validateOperationId(parsedInput, inputString, input, operations) - ).to.equal(true); - }); - - it('should successfully validate if channel object not provided', function () { - const inputString = '{}'; - const parsedInput = JSON.parse(inputString); - - expect( - validateOperationId(parsedInput, inputString, input, operations) - ).to.equal(true); - }); - - it('should throw error that operationIds are duplicated and that they duplicate', async function () { - const inputString = `{ - "asyncapi": "2.0.0", - "info": { - "version": "1.0.0" - }, - "channels": { - "test/1": { - "publish": { - "operationId": "test" - } - }, - "test/2": { - "subscribe": { - "operationId": "test" - } - }, - "test/3": { - "subscribe": { - "operationId": "test" - } - }, - "test/4": { - "subscribe": { - "operationId": "test4" - } - } - } - }`; - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'operationId must be unique across all the operations.', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - 'test/2/subscribe/operationId is a duplicate of: test/1/publish/operationId', - location: { - jsonPointer: '/channels/test~12/subscribe/operationId', - startLine: 14, - startColumn: 29, - startOffset: 273, - endLine: 14, - endColumn: 35, - endOffset: 279, - }, - }, - { - title: - 'test/3/subscribe/operationId is a duplicate of: test/1/publish/operationId', - location: { - jsonPointer: '/channels/test~13/subscribe/operationId', - startLine: 19, - startColumn: 29, - startOffset: 375, - endLine: 19, - endColumn: 35, - endOffset: 381, - }, - }, - ], - }; - - await checkErrorWrapper(async () => { - await validateOperationId(parsedInput, inputString, input, operations); - }, expectedErrorObject); - }); -}); - -describe('validateServerSecurity()', function () { - const specialSecTypes = ['oauth2', 'openIdConnect']; - - it('should successfully validate server security', async function () { - const inputString = `{ - "asyncapi": "2.0.0", - "info": { - "version": "1.0.0" - }, - "servers": { - "dummy": { - "url": "http://localhost", - "protocol": "kafka", - "security": [ - { - "simple": [] - } - ] - } - }, - "components": { - "securitySchemes": { - "simple": { - "type": "httpApiKey", - "name": "Api-Key", - "in": "header" - } - } - } - }`; - const parsedInput = JSON.parse(inputString); - - expect( - validateServerSecurity(parsedInput, inputString, input, specialSecTypes) - ).to.equal(true); - }); - - it('should successfully validate if server security not provided', async function () { - const inputString = `{ - "asyncapi": "2.0.0", - "info": { - "version": "1.0.0" - }, - "servers": { - "dummy": { - "url": "http://localhost", - "protocol": "kafka" - } - } - }`; - const parsedInput = JSON.parse(inputString); - - expect( - validateServerSecurity(parsedInput, inputString, input, specialSecTypes) - ).to.equal(true); - }); - - it('should successfully validate server security of special security type like oauth2', async function () { - const inputString = `{ - "asyncapi": "2.0.0", - "info": { - "version": "1.0.0" - }, - "servers": { - "dummy": { - "url": "http://localhost", - "protocol": "kafka", - "security": [ - { - "oauth2": [ - "write:test", - "read:test" - ] - } - ] - } - }, - "components": { - "securitySchemes": { - "oauth2": { - "type": "oauth2", - "flows": {} - } - } - } - }`; - const parsedInput = JSON.parse(inputString); - - expect( - validateServerSecurity(parsedInput, inputString, input, specialSecTypes) - ).to.equal(true); - }); - - it('should throw error that server has no security schema provided when components schema object is there but missing proper values', async function () { - const inputString = `{ - "asyncapi": "2.0.0", - "info": { - "version": "1.0.0" - }, - "servers": { - "dummy": { - "url": "http://localhost", - "protocol": "kafka", - "security": [ - { - "complex": [] - } - ] - } - }, - "components": { - "securitySchemes": { - "simple": { - "type": "httpApiKey", - "name": "Api-Key", - "in": "header" - } - } - } - }`; - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: - 'Server security name must correspond to a security scheme which is declared in the security schemes under the components object.', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - 'dummy/security/complex doesn\'t have a corresponding security schema under the components object', - location: { - jsonPointer: '/servers/dummy/security/complex', - startLine: 12, - startColumn: 27, - startOffset: 250, - endLine: 12, - endColumn: 29, - endOffset: 252, - }, - }, - ], - }; - - await checkErrorWrapper(async () => { - await validateServerSecurity(parsedInput, inputString, input, specialSecTypes); - }, expectedErrorObject); - }); - - it('should throw error that server has no security schema provided when components schema object is not in the document', async function () { - const inputString = `{ - "asyncapi": "2.0.0", - "info": { - "version": "1.0.0" - }, - "servers": { - "dummy": { - "url": "http://localhost", - "protocol": "kafka", - "security": [ - { - "complex": [] - } - ] - } - }, - "components": { - } - }`; - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: - 'Server security name must correspond to a security scheme which is declared in the security schemes under the components object.', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - 'dummy/security/complex doesn\'t have a corresponding security schema under the components object', - location: { - jsonPointer: '/servers/dummy/security/complex', - startLine: 12, - startColumn: 27, - startOffset: 250, - endLine: 12, - endColumn: 29, - endOffset: 252, - }, - }, - ], - }; - - await checkErrorWrapper(async () => { - await validateServerSecurity(parsedInput, inputString, input, specialSecTypes); - }, expectedErrorObject); - }); - - it('should throw error that server security is not declared as empty array', async function () { - const inputString = `{ - "asyncapi": "2.0.0", - "info": { - "version": "1.0.0" - }, - "servers": { - "dummy": { - "url": "http://localhost", - "protocol": "kafka", - "security": [ - { - "basic": ["user", "password"] - }, - { - "apikey": [12345678] - } - ] - } - }, - "components": { - "securitySchemes": { - "basic": { - "type": "userPassword" - }, - "apikey": { - "type": "httpApiKey" - } - } - } - }`; - const parsedInput = JSON.parse(inputString); - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: - 'Server security value must be an empty array if corresponding security schema type is not oauth2 or openIdConnect.', - parsedJSON: parsedInput, - validationErrors: [ - { - title: - 'dummy/security/basic security info must have an empty array because its corresponding security schema type is: userPassword', - location: { - jsonPointer: '/servers/dummy/security/basic', - startLine: 12, - startColumn: 25, - startOffset: 248, - endLine: 12, - endColumn: 45, - endOffset: 268, - }, - }, - { - title: - 'dummy/security/apikey security info must have an empty array because its corresponding security schema type is: httpApiKey', - location: { - jsonPointer: '/servers/dummy/security/apikey', - startLine: 15, - startColumn: 26, - startOffset: 322, - endLine: 15, - endColumn: 36, - endOffset: 332, - }, - }, - ], - }; - - await checkErrorWrapper(async () => { - await validateServerSecurity(parsedInput, inputString, input, specialSecTypes); - }, expectedErrorObject); - }); -}); diff --git a/test/good/asyncapi-complex-schema.yml b/test/good/asyncapi-complex-schema.yml deleted file mode 100644 index 0d53947d1..000000000 --- a/test/good/asyncapi-complex-schema.yml +++ /dev/null @@ -1,35 +0,0 @@ -asyncapi: '2.0.0' -info: - title: Streetlights API - version: '1.0.0' - description: | - The Smartylighting Streetlights API allows you - to remotely manage the city lights. - license: - name: Apache 2.0 - url: 'https://www.apache.org/licenses/LICENSE-2.0' -servers: - mosquitto: - url: mqtt://test.mosquitto.org - protocol: mqtt -channels: - light/measured: - publish: - summary: Inform about environmental lighting conditions for a particular streetlight. - operationId: onLightMeasured - message: - payload: - type: object - properties: - id: - type: integer - minimum: 0 - description: Id of the streetlight. - lumens: - type: integer - minimum: 0 - description: Light intensity measured in lumens. - sentAt: - type: string - format: date-time - description: Date and time when the message was sent. \ No newline at end of file diff --git a/test/good/asyncapi-messages-channels.yml b/test/good/asyncapi-messages-channels.yml deleted file mode 100644 index 42490768a..000000000 --- a/test/good/asyncapi-messages-channels.yml +++ /dev/null @@ -1,35 +0,0 @@ -asyncapi: 2.0.0 -info: - title: My API - version: '1.0.0' - -channels: - mychannel: - publish: - message: - $ref: '#/components/messages/channelMessage' - -components: - messages: - channelMessage: - traits: - - $ref: '#/components/messageTraits/extension' - testMessage: - traits: - - $ref: '#/components/messageTraits/extension' - payload: - $ref: '#/components/schemas/testSchema' - schemas: - testSchema: - type: object - properties: - name: - type: string - messageTraits: - extension: - x-some-extension: 'some extension' - headers: - type: object - properties: - some-common-header: - type: string diff --git a/test/good/asyncapi-messages-example-headers.yml b/test/good/asyncapi-messages-example-headers.yml deleted file mode 100644 index af3b17fe2..000000000 --- a/test/good/asyncapi-messages-example-headers.yml +++ /dev/null @@ -1,26 +0,0 @@ -asyncapi: 2.2.0 -info: - title: My API - version: '1.0.0' - -channels: - myChannel: - subscribe: - message: - x-some-extension: 'some extension' - headers: - type: object - properties: - some-common-header: - type: string - payload: - type: object - properties: - name: - type: string - examples: - - name: Example1 - summary: Example1 summary - headers: - some-common-header: My header - diff --git a/test/good/asyncapi-messages-example-optional.yml b/test/good/asyncapi-messages-example-optional.yml deleted file mode 100644 index 6efe5e2ee..000000000 --- a/test/good/asyncapi-messages-example-optional.yml +++ /dev/null @@ -1,26 +0,0 @@ -asyncapi: 2.2.0 -info: - title: My API - version: '1.0.0' - -channels: - myChannel: - subscribe: - message: - x-some-extension: 'some extension' - headers: - type: object - properties: - some-common-header: - type: string - payload: - type: object - properties: - name: - type: string - examples: - - payload: - name: My name - headers: - some-common-header: My header - diff --git a/test/good/asyncapi-messages-example-payload.yml b/test/good/asyncapi-messages-example-payload.yml deleted file mode 100644 index 87469e9c0..000000000 --- a/test/good/asyncapi-messages-example-payload.yml +++ /dev/null @@ -1,26 +0,0 @@ -asyncapi: 2.1.0 -info: - title: My API - version: '1.0.0' - -channels: - myChannel: - subscribe: - message: - x-some-extension: 'some extension' - headers: - type: object - properties: - some-common-header: - type: string - payload: - type: object - properties: - name: - type: string - examples: - - name: Example1 - summary: Example1 summary - payload: - name: My name - diff --git a/test/good/asyncapi-messages-example.yml b/test/good/asyncapi-messages-example.yml deleted file mode 100644 index e738cdd0d..000000000 --- a/test/good/asyncapi-messages-example.yml +++ /dev/null @@ -1,28 +0,0 @@ -asyncapi: 2.2.0 -info: - title: My API - version: '1.0.0' - -channels: - myChannel: - subscribe: - message: - x-some-extension: 'some extension' - headers: - type: object - properties: - some-common-header: - type: string - payload: - type: object - properties: - name: - type: string - examples: - - name: Example1 - summary: Example1 summary - payload: - name: My name - headers: - some-common-header: My header - diff --git a/test/good/asyncapi-no-channels.yml b/test/good/asyncapi-no-channels.yml deleted file mode 100644 index 7f7806111..000000000 --- a/test/good/asyncapi-no-channels.yml +++ /dev/null @@ -1,27 +0,0 @@ -asyncapi: 2.0.0 -info: - title: My API - version: '1.0.0' -channels: {} - -components: - messages: - testMessage: - traits: - - $ref: '#/components/messageTraits/extension' - payload: - $ref: '#/components/schemas/testSchema' - schemas: - testSchema: - type: object - properties: - name: - type: string - messageTraits: - extension: - x-some-extension: 'some extension' - headers: - type: object - properties: - some-common-header: - type: string diff --git a/test/good/asyncapi-no-components.yml b/test/good/asyncapi-no-components.yml deleted file mode 100644 index 3ddcd8be7..000000000 --- a/test/good/asyncapi-no-components.yml +++ /dev/null @@ -1,13 +0,0 @@ -asyncapi: 2.0.0 -info: - title: My API - version: 1.0.0 -channels: - "/test/tester": - subscribe: - message: - payload: - type: object - properties: - name: - type: string diff --git a/test/good/asyncapi.json b/test/good/asyncapi.json deleted file mode 100644 index e12f4756c..000000000 --- a/test/good/asyncapi.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "asyncapi": "2.0.0", - "info": { - "title": "My API", - "version": "1.0.0" - }, - "channels": { - "mychannel": { - "publish": { - "message": { - "payload": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - } - } - } - } - } - }, "components": { - "messages": { - "testMessage": { - "payload": { - "$ref": "#/components/schemas/testSchema" - } - } - }, - "schemas": { - "testSchema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "test": { - "$ref": "refs/refed.yaml" - } - } - } - } - } -} diff --git a/test/good/asyncapi.yaml b/test/good/asyncapi.yaml deleted file mode 100644 index d6b2d9b9b..000000000 --- a/test/good/asyncapi.yaml +++ /dev/null @@ -1,42 +0,0 @@ -asyncapi: 2.0.0 -info: - title: My API - version: '1.0.0' -channels: - mychannel: - publish: - traits: - - $ref: '#/components/operationTraits/docs' - externalDocs: - x-extension: true - url: 'https://irrelevant.com' - message: - $ref: '#/components/messages/testMessage' - oneOfMessageChannel: - publish: - message: - oneOf: - - $ref: '#/components/messages/testMessage' - -components: - messages: - testMessage: - traits: - - $ref: '#/components/messageTraits/extension' - payload: - $ref: '#/components/schemas/testSchema' - schemas: - testSchema: - type: object - properties: - name: - type: string - test: - $ref: 'refs/refed.yaml' - messageTraits: - extension: - x-some-extension: 'some extension' - operationTraits: - docs: - externalDocs: - url: https://company.com/docs diff --git a/test/good/circular-refs-file-ref.yaml b/test/good/circular-refs-file-ref.yaml deleted file mode 100644 index 91fed68cd..000000000 --- a/test/good/circular-refs-file-ref.yaml +++ /dev/null @@ -1,13 +0,0 @@ -ExternalFile: - type: object - properties: - testExt: - $ref: '#/YetAnother' -YetAnother: - type: object - properties: - children: - type: array - items: - $ref: '#/ExternalFile' - \ No newline at end of file diff --git a/test/good/circular-refs.yaml b/test/good/circular-refs.yaml deleted file mode 100644 index 52886a6df..000000000 --- a/test/good/circular-refs.yaml +++ /dev/null @@ -1,144 +0,0 @@ -asyncapi: 2.0.0 -info: - title: My Circular API - version: '1.0.0' -channels: - recursive: - subscribe: - message: - payload: - $ref: '#/components/schemas/RecursiveSelf' - external/file: - publish: - message: - payload: - $ref: './good/circular-refs-file-ref.yaml#/ExternalFile' - nonRecursive: - subscribe: - message: - payload: - $ref: '#/components/schemas/NonRecursive' - testChannel: - subscribe: - message: - oneOf: - - $ref: '#/components/messages/testMessage' -components: - messages: - testMessage: - contentType: application/json - payload: - $ref: '#/components/schemas/NormalSchemaA' - schemas: - NonRecursive: - type: object - properties: - child: - $ref: '#/components/schemas/NonRecursiveChild' - NonRecursiveChild: - type: object - properties: - value: - type: string - RecursiveSelf: - type: object - properties: - selfChildren: - type: array - items: - $ref: '#/components/schemas/RecursiveSelf' - selfObjectChildren: - type: object - properties: - test: - $ref: '#/components/schemas/RecursiveSelf' - nonRecursive: - type: string - selfSomething: - type: object - properties: - test: - $ref: '#/components/schemas/RecursiveAncestor' - RecursiveAncestor: - type: object - properties: - ancestorChildren: - type: array - items: - $ref: '#/components/schemas/RecursiveSelf' - ancestorSomething: - type: string - NormalSchemaA: - type: object - properties: - schemaBReference: - $ref: '#/components/schemas/NormalSchemaB' - schemaCReference: - $ref: '#/components/schemas/NormalSchemaC' - commonEnumName: - type: string - enum: - - ENUM_1 - - ENUM_2 - NormalSchemaB: - type: string - enum: - - ENUM_A - - ENUM_B - - ENUM_C - - ENUM_D - NormalSchemaC: - allOf: - - $ref: '#/components/schemas/NormalSchemaB' - - type: string - enum: - - ENUM_E - NestedAllOfSchema: - allOf: - - $ref: '#/components/schemas/NormalSchemaA' - - type: object - properties: - parent: - allOf: - - $ref: '#/components/schemas/NestedAllOfSchema' - - $ref: '#/components/schemas/NormalSchemaA' - name: - type: string - required: - - name - OneOf: - type: object - properties: - kind: - oneOf: - - $ref: '#/components/schemas/OneOf' - - type: string - - enum: - - boolean - - string - AnyOf: - anyOf: - - type: integer - - type: number - - type: string - - type: boolean - - type: object - - type: array - items: - $ref: "#/components/schemas/AnyOf" - RecursiveComplex: - type: [object, array] - patternProperties: - ^foo: - $ref: '#/components/schemas/RecursiveSelf' - ^bar: - type: string - contains: - $ref: '#/components/schemas/RecursiveComplex' - items: - - type: string - - $ref: '#/components/schemas/RecursiveComplex' - if: - $ref: '#/components/schemas/RecursiveAncestor' - then: - $ref: '#/components/schemas/RecursiveComplex' \ No newline at end of file diff --git a/test/good/nested-schemas.json b/test/good/nested-schemas.json deleted file mode 100644 index b1c9758ac..000000000 --- a/test/good/nested-schemas.json +++ /dev/null @@ -1,256 +0,0 @@ -{ - "channels": { - "test": { - "parameters": { - "testParam1": { - "schema": { - "$id": "testParamSchema", - "type": "object", - "test": true, - "properties": { - "testParamNestedSchemaProp": { - "$id": "testParamNestedSchemaProp", - "type": "object", - "test": true, - "properties": { - "testParamNestedNestedSchemaProp2": { - "$id": "testParamNestedNestedSchemaProp2", - "test": true, - "type": "string" - } - } - } - } - } - } - }, - "publish": { - "message": { - "headers": { - "$id": "testHeaderSchema", - "type": "object", - "test": true, - "properties": { - "testHeaderNestedSchemaProp": { - "$id": "testHeaderNestedSchemaProp", - "type": "object", - "test": true, - "properties": { - "testprop2": { - "$id": "testHeaderNestedNestedSchemaProp1", - "test": true, - "type": "string" - } - } - }, - "testHeaderNestedSchemaPropArray": { - "$id": "testHeaderNestedSchemaPropArray", - "type": "array", - "test": true, - "items": [ - { - "$id": "testHeaderNestedSchemaPropArrayProp1", - "test": true, - "type": "string" - } - ] - } - } - }, - "payload": { - "$id": "testPayloadSchema", - "type": "object", - "test": true, - "properties": { - "testPayloadNestedSchemaProp": { - "$id": "testPayloadNestedSchemaProp", - "type": "object", - "test": true, - "properties": { - "testPayloadNestedNestedSchemaProp1": { - "$id": "testPayloadNestedNestedSchemaProp1", - "test": true, - "type": "string" - } - } - }, - "testPayloadNestedSchemaPropArray": { - "$id": "testPayloadNestedSchemaPropArray", - "type": "array", - "test": true, - "items": [ - { - "$id": "testPayloadNestedSchemaPropArrayProp1", - "test": true, - "type": "string" - } - ] - } - } - } - } - } - }, - "test2": { - "subscribe": { - "message": { - "payload": { - "$id": "testPayload", - "test": true, - "k": 2 - } - } - } - } - }, - "components": { - "schemas": { - "testSchema": { - "$id": "testComponentSchemaSchema", - "type": "object", - "test": true, - "properties": { - "testprop": { - "$id": "testComponentSchemaNestedSchemaPropAllOf", - "test": true, - "allOf": [ - { - "$id": "testComponentSchemaNestedSchemaPropAllOfSchema1", - "type": "object", - "test": true, - "properties": { - "testprop1": { - "$id": "testComponentSchemaNestedSchemaPropAllOfSchema1Prop1", - "test": true, - "type": "string" - } - } - }, - { - "$id": "testComponentSchemaNestedSchemaPropAllOfSchema2", - "type": "object", - "test": true, - "properties": { - "testprop2": { - "$id": "testComponentSchemaNestedSchemaPropAllOfSchema2Prop1", - "test": true, - "type": "string" - } - } - } - ] - }, - "testArray": { - "$id": "testComponentSchemaNestedSchemaPropArray", - "type": "array", - "test": true, - "items": [ - { - "$id": "testComponentSchemaNestedSchemaPropArrayProp1", - "test": true, - "type": "string" - }, - { - "$id": "testComponentSchemaNestedSchemaPropArrayProp2", - "test": true, - "type": "string" - } - ] - }, - "testPatternProperties": { - "$id": "testComponentSchemaNestedSchemaPropPatternProperties", - "type": "object", - "test": true, - "patternProperties": { - "^S_": { - "$id": "testComponentSchemaNestedSchemaPropPatternPropertiesProp1", - "test": true, - "type": "string" - }, - "^N_": { - "$id": "testComponentSchemaNestedSchemaPropPatternPropertiesProp2", - "test": true, - "type": "number" - } - } - }, - "testConditional": { - "$id": "testComponentSchemaNestedSchemaPropConditional", - "type": "string", - "test": true, - "if": { - "$id": "testComponentSchemaNestedSchemaPropConditionalIf", - "test": true, - "type": "string" - }, - "then": { - "$id": "testComponentSchemaNestedSchemaPropConditionalThen", - "test": true, - "type": "number" - }, - "else": { - "$id": "testComponentSchemaNestedSchemaPropConditionalElse", - "test": true, - "type": "boolean" - } - }, - "testDependencies": { - "$id": "testComponentSchemaNestedSchemaPropDependencies", - "type": "string", - "test": true, - "dependencies": { - "dep1": { - "$id": "testComponentSchemaNestedSchemaPropDependenciesDep1", - "test": true, - "type": "string" - }, - "dep2": ["test1", "test2"], - "dep3": { - "$id": "testComponentSchemaNestedSchemaPropDependenciesDep3", - "test": true, - "type": "number" - } - } - }, - "testDefinitions": { - "$id": "testComponentSchemaNestedSchemaPropDefinitions", - "type": "string", - "test": true, - "definitions": { - "def1": { - "$id": "testComponentSchemaNestedSchemaPropDefinitionsDef1", - "test": true, - "type": "string" - }, - "def2": { - "$id": "testComponentSchemaNestedSchemaPropDefinitionsDef2", - "test": true, - "type": "number" - } - } - }, - "testMisc": { - "$id": "testComponentSchemaNestedSchemaPropMisc", - "type": ["object", "array"], - "test": true, - "not": { - "$id": "testComponentSchemaNestedSchemaPropMiscNot", - "test": true, - "type": "string" - }, - "propertyNames": { - "$id": "testComponentSchemaNestedSchemaPropMiscPropertyNames", - "test": true, - "type": "string" - }, - "contains": { - "$id": "testComponentSchemaNestedSchemaPropMiscContains", - "test": true, - "type": "string" - } - } - } - } - } - } -} diff --git a/test/good/zbos_mqtt-all-asyncapi.json b/test/good/zbos_mqtt-all-asyncapi.json deleted file mode 100644 index 4d3d9ae09..000000000 --- a/test/good/zbos_mqtt-all-asyncapi.json +++ /dev/null @@ -1,23150 +0,0 @@ -{ - "asyncapi": "2.0.0", - "id": "urn:zbos-mqtt-api", - "defaultContentType": "application/json", - "info": { - "title": "ZBOS MQTT API", - "version": "2.6.3", - "description": "API for communication with ZBOS by Zora Robotics.", - "contact": { - "email": "info@zorarobotics.be" - } - }, - "servers": { - "local": { - "url": "127.0.0.1", - "protocol": "mqtt", - "description": "This is the local robot broker.", - "variables": { - "port": { - "enum": [ - "1883", - "9001" - ], - "default": "1883" - } - } - }, - "cloud": { - "url": "zbos-mqtt.zoracloud.com", - "protocol": "mqtt", - "description": "This is the cloud broker.", - "variables": { - "port": { - "enum": [ - "1883", - "1884", - "9001", - "9002" - ] - } - } - } - }, - "channels": { - "zbos/applications/categories/get": { - "publish": { - "summary": "Get application categories", - "description": "Get all application categories.\n", - "tags": [ - { - "name": "Applications", - "description": "All applications related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/applications/categories/get/response/{key}": { - "subscribe": { - "summary": "Response: Get application categories", - "description": "", - "tags": [ - { - "name": "Applications", - "description": "All applications related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string", - "description": "Use name for a static name, or name_key for a translatable name" - }, - "name_key": { - "type": "string", - "description": "Use name for a static name, or name_key for a translatable name" - }, - "weight": { - "type": "integer" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": [ - { - "id": "category_1", - "name": "Category 1", - "weight": 10 - }, - { - "id": "category_2", - "weight": 20, - "name_key": "category_2_key" - } - ] - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/applications/apps/get": { - "publish": { - "summary": "Get applications", - "description": "Get all applications with optional filters.\n", - "tags": [ - { - "name": "Applications", - "description": "All applications related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "limit": { - "type": "integer" - }, - "offset": { - "type": "integer" - }, - "filters": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "Field to check on. Note that the field should be camelCase, not snake_case" - }, - "value": { - "type": "string", - "description": "Value to check on. For numbers you should use 'min' and 'max'." - }, - "min": { - "type": "number", - "description": "Minimum value, only usable for number fields" - }, - "max": { - "type": "number", - "description": "Maximum value, only usable for number fields" - }, - "direction": { - "type": "object", - "description": "Direction to sort on.\nCan be 'asc' or 'desc'.\nThe default direction is 'asc'", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "asc", - "desc" - ] - }, - "operator": { - "type": "object", - "description": "Operator for either the child filters, or this filter object itself.\nCan be 'and', 'or' or 'not'.\nDefault is 'and'.\nThe root operator is always 'and'", - "properties": { - "alternateNames": { - "type": "array", - "items": { - "type": "string" - } - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "and", - "or", - "not" - ] - }, - "match_type": { - "type": "object", - "description": "Match type for string values.\nCan be 'exact', 'contains', 'starts_with', 'ends_with'.\nThe default match_type is 'contains'", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "exact", - "contains", - "starts_with", - "ends_with" - ] - }, - "filters": { - "type": "array", - "description": "Filters on which the operator will be applied.\nIf there are no child filters, the operator will be applied to the filter object itself.", - "items": { - "type": "object" - } - }, - "field_filters": { - "type": "array", - "description": "Filters to apply on the child fields of the field.\nWill only work if the field is an object, array/list or map.", - "items": { - "type": "object" - } - } - } - } - }, - "language": { - "type": "string", - "description": "Optional. Set the language to have all translations filled in.\nThe language format is ISO 639-1 language code, Eg: 'en' or 'en-US'" - } - } - }, - "name": "GetApplicationsRequest", - "examples": [ - { - "payload": { - "key": "abc", - "limit": 20, - "offset": 20, - "filters": [ - { - "field": "category_id", - "value": "category_1", - "operator": "and", - "match_type": "exact" - } - ] - } - } - ] - } - } - }, - "zbos/applications/apps/get/response/{key}": { - "subscribe": { - "summary": "Response: Get applications", - "description": "", - "tags": [ - { - "name": "Applications", - "description": "All applications related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "This could be a package name, or some other defined unique ID" - }, - "name": { - "type": "string", - "description": "Use name for a static name, or name_key for a translatable name" - }, - "name_key": { - "type": "string", - "description": "Use name for a static name, or name_key for a translatable name" - }, - "category_id": { - "type": "string" - }, - "weight": { - "type": "integer" - }, - "actions": { - "type": "array", - "items": { - "type": "object", - "properties": { - "application_id": { - "type": "string" - }, - "name": { - "type": "string", - "description": "Use name for a static name, or name_key for a translatable name" - }, - "name_key": { - "type": "string", - "description": "Use name for a static name, or name_key for a translatable name" - }, - "type": { - "type": "object", - "description": "List of available actions:\nopen: Opens an application handled by the RAILopen_control: Opens an application handled by the control\nsettings: Opens the settings, handled by the control\ndatasource: Edit the datasource, handled by the control\nother: Should be handled by the app itself", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "open", - "open_control", - "settings", - "datasources", - "other" - ] - }, - "data": { - "type": "object", - "description": "Optional data that an action might need." - } - } - } - }, - "optional": { - "type": "boolean", - "description": "Adds this application to the list of optional apps, which determines if the app is shown to the user" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": [ - { - "id": "com.zorabots.application.one", - "name": "Application 1", - "weight": 10, - "actions": [ - { - "name": "Open", - "type": "open", - "data": { - "key1": "value1" - }, - "valid": true, - "application_id": "com.zorabots.application.one" - }, - { - "name": "Settings", - "type": "settings", - "valid": true, - "application_id": "com.zorabots.application.one" - }, - { - "name": "Datasource", - "type": "datasources", - "valid": true, - "application_id": "com.zorabots.application.one" - } - ], - "optional": false, - "category_id": "category_1" - }, - { - "id": "com.zorabots.application.two", - "weight": 20, - "actions": [ - { - "type": "open", - "data": { - "key1": "value1" - }, - "valid": true, - "application_id": "com.zorabots.application.two", - "name_key": "Open" - }, - { - "name": "Some other action", - "type": "other", - "data": { - "key1": "value1" - }, - "valid": true, - "application_id": "com.zorabots.application.two" - } - ], - "optional": false, - "name_key": "application_2_key", - "category_id": "category_1" - } - ] - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/applications/apps/changed/event/{app}": { - "publish": { - "summary": "Application changed", - "description": "Fired when an app was added or changed.\n", - "tags": [ - { - "name": "Applications", - "description": "All applications related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "This could be a package name, or some other defined unique ID" - }, - "name": { - "type": "string", - "description": "Use name for a static name, or name_key for a translatable name" - }, - "name_key": { - "type": "string", - "description": "Use name for a static name, or name_key for a translatable name" - }, - "category_id": { - "type": "string" - }, - "weight": { - "type": "integer" - }, - "actions": { - "type": "array", - "items": { - "type": "object", - "properties": { - "application_id": { - "type": "string" - }, - "name": { - "type": "string", - "description": "Use name for a static name, or name_key for a translatable name" - }, - "name_key": { - "type": "string", - "description": "Use name for a static name, or name_key for a translatable name" - }, - "type": { - "type": "object", - "description": "List of available actions:\nopen: Opens an application handled by the RAILopen_control: Opens an application handled by the control\nsettings: Opens the settings, handled by the control\ndatasource: Edit the datasource, handled by the control\nother: Should be handled by the app itself", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "open", - "open_control", - "settings", - "datasources", - "other" - ] - }, - "data": { - "type": "object", - "description": "Optional data that an action might need." - } - } - } - }, - "optional": { - "type": "boolean", - "description": "Adds this application to the list of optional apps, which determines if the app is shown to the user" - } - } - }, - "name": "Application", - "examples": [ - { - "payload": { - "id": "com.zorabots.application.one", - "name": "Application 1", - "weight": 10, - "actions": [ - { - "name": "Open", - "type": "open", - "data": { - "key1": "value1" - }, - "valid": true, - "application_id": "com.zorabots.application.one" - }, - { - "name": "Settings", - "type": "settings", - "valid": true, - "application_id": "com.zorabots.application.one" - }, - { - "name": "Datasource", - "type": "datasources", - "valid": true, - "application_id": "com.zorabots.application.one" - } - ], - "optional": false, - "category_id": "category_1" - } - } - ] - } - }, - "parameters": { - "app": { - "description": "ID of the app that was changed", - "schema": { - "type": "string" - } - } - } - }, - "zbos/applications/icons/get": { - "publish": { - "summary": "Get application icon", - "description": "Get the application icons for the passed application ID.\n", - "tags": [ - { - "name": "Applications", - "description": "All applications related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "max_width": { - "type": "integer", - "description": "Optional, can be used to decrease payload size" - }, - "max_height": { - "type": "integer", - "description": "Optional, can be used to decrease payload size" - }, - "application_id": { - "type": "string" - } - } - }, - "name": "GetApplicationIconRequest", - "examples": [ - { - "payload": { - "key": "abc", - "valid": true, - "max_width": 100, - "max_height": 100, - "application_id": "com.zorabots.application.one" - } - } - ] - } - } - }, - "zbos/applications/icons/get/response/{key}": { - "subscribe": { - "summary": "Response: Get application icon", - "description": "", - "tags": [ - { - "name": "Applications", - "description": "All applications related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "application_id": { - "type": "string" - }, - "icon": { - "type": "string", - "description": "Base 64 encoded PNG" - } - } - }, - "name": "ApplicationIcon", - "examples": [ - { - "payload": { - "icon": "{base64 encoded png}", - "application_id": "com.zorabots.application.one" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/applications/actions/start": { - "publish": { - "summary": "Start application action", - "description": "Start an application action.\n", - "tags": [ - { - "name": "Applications", - "description": "All applications related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "application_id": { - "type": "string" - }, - "name": { - "type": "string", - "description": "Use name for a static name, or name_key for a translatable name" - }, - "name_key": { - "type": "string", - "description": "Use name for a static name, or name_key for a translatable name" - }, - "type": { - "type": "object", - "description": "List of available actions:\nopen: Opens an application handled by the RAILopen_control: Opens an application handled by the control\nsettings: Opens the settings, handled by the control\ndatasource: Edit the datasource, handled by the control\nother: Should be handled by the app itself", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "open", - "open_control", - "settings", - "datasources", - "other" - ] - }, - "data": { - "type": "object", - "description": "Optional data that an action might need." - } - } - }, - "name": "ApplicationAction", - "examples": [ - { - "payload": { - "name": "Open", - "type": "open", - "data": { - "key1": "value1" - }, - "valid": true, - "application_id": "com.zorabots.application.one" - } - }, - { - "payload": { - "name": "Settings", - "type": "settings", - "valid": true, - "application_id": "com.zorabots.application.one" - } - }, - { - "payload": { - "name": "Datasource", - "type": "datasources", - "valid": true, - "application_id": "com.zorabots.application.one" - } - }, - { - "payload": { - "name": "Some other action", - "type": "other", - "data": { - "key1": "value1" - }, - "valid": true, - "application_id": "com.zorabots.application.one" - } - } - ] - } - } - }, - "zbos/applications/actions/start/response/{key}": { - "subscribe": { - "summary": "Response: Start application action", - "description": "", - "tags": [ - { - "name": "Applications", - "description": "All applications related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/applications/registration/request": { - "publish": { - "summary": "Request application registrations", - "description": "Request all apps to register themselves using the topics below.\n", - "tags": [ - { - "name": "Applications", - "description": "All applications related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/applications/registration/add": { - "publish": { - "summary": "Add application registration", - "description": "Registers an application to the applications list. Should be executed every time the application is started.\n", - "tags": [ - { - "name": "Applications", - "description": "All applications related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "application": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "This could be a package name, or some other defined unique ID" - }, - "name": { - "type": "string", - "description": "Use name for a static name, or name_key for a translatable name" - }, - "name_key": { - "type": "string", - "description": "Use name for a static name, or name_key for a translatable name" - }, - "category_id": { - "type": "string" - }, - "weight": { - "type": "integer" - }, - "actions": { - "type": "array", - "items": { - "type": "object", - "properties": { - "application_id": { - "type": "string" - }, - "name": { - "type": "string", - "description": "Use name for a static name, or name_key for a translatable name" - }, - "name_key": { - "type": "string", - "description": "Use name for a static name, or name_key for a translatable name" - }, - "type": { - "type": "object", - "description": "List of available actions:\nopen: Opens an application handled by the RAILopen_control: Opens an application handled by the control\nsettings: Opens the settings, handled by the control\ndatasource: Edit the datasource, handled by the control\nother: Should be handled by the app itself", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "open", - "open_control", - "settings", - "datasources", - "other" - ] - }, - "data": { - "type": "object", - "description": "Optional data that an action might need." - } - } - } - }, - "optional": { - "type": "boolean", - "description": "Adds this application to the list of optional apps, which determines if the app is shown to the user" - } - } - } - } - }, - "name": "RegisterApplicationRequest", - "examples": [ - { - "payload": { - "key": "abc", - "application": { - "id": "com.zorabots.application.one", - "name": "Application 1", - "weight": 10, - "actions": [ - { - "name": "Open", - "type": "open", - "data": { - "key1": "value1" - }, - "valid": true, - "application_id": "com.zorabots.application.one" - }, - { - "name": "Settings", - "type": "settings", - "valid": true, - "application_id": "com.zorabots.application.one" - } - ], - "optional": false, - "category_id": "category_1" - }, - "valid": false - } - } - ] - } - } - }, - "zbos/applications/registration/add/response/{key}": { - "publish": { - "summary": "Response: Add application registration", - "description": "", - "tags": [ - { - "name": "Applications", - "description": "All applications related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/applications/registration/remove": { - "publish": { - "summary": "Remove application registration", - "description": "Unregister an application from the applications list.\n", - "tags": [ - { - "name": "Applications", - "description": "All applications related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "id": { - "type": "string" - } - } - }, - "name": "UnregisterApplicationRequest", - "examples": [ - { - "payload": { - "key": "abc", - "id": "com.zorabots.application.one", - "valid": true - } - } - ] - } - } - }, - "zbos/applications/registration/remove/response/{key}": { - "publish": { - "summary": "Response: Remove application registration", - "description": "", - "tags": [ - { - "name": "Applications", - "description": "All applications related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/applications/datasources/get": { - "publish": { - "summary": "Get the content of a specific application datasource file", - "description": "Publish on this topic to get the content of a datasource\nPayload is json with a key for the response topic {\"key\":aKey}\n", - "tags": [ - { - "name": "Applications", - "description": "All applications related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "applicationName": { - "type": "string" - }, - "datasourceId": { - "type": "string" - } - } - }, - "name": "DatasourceGetRequest", - "examples": [ - { - "payload": { - "applicationName": "string", - "datasourceId": "string", - "valid": true - } - } - ] - } - } - }, - "zbos/applications/datasources/get/response/{key}": { - "subscribe": { - "summary": "Response: Get datasource", - "description": "Will return a JSON string with the content of the datasource data file\n", - "tags": [ - { - "name": "Applications", - "description": "All applications related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/applications/datasources/set": { - "publish": { - "summary": "Save the datasource", - "description": "Publish on this topic to save the datasource data (changes)\nPayload is json with a key for the response topic {\"key\":aKey}\nThe Payload is a JSON string of an object with following keys: application name, datasource id and datasource data\n", - "tags": [ - { - "name": "Applications", - "description": "All applications related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "applicationName": { - "type": "string" - }, - "datasourceId": { - "type": "string" - }, - "datasourceData": { - "type": "string" - } - } - }, - "name": "DatasourceSetRequest", - "examples": [ - { - "payload": { - "applicationName": "string", - "datasourceId": "string", - "datasourceData": "string", - "valid": true - } - } - ] - } - } - }, - "zbos/applications/datasources/set/response/{key}": { - "subscribe": { - "summary": "Response: Datasource saved", - "description": "A message object (with key 'success') is publish on this topic when the datasource has been saved\n", - "tags": [ - { - "name": "Applications", - "description": "All applications related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/audio/player/start": { - "publish": { - "summary": "Play media", - "description": "Play specific media from audio options\n", - "tags": [ - { - "name": "Audio", - "description": "All audio related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "requestId": { - "type": "string" - }, - "url": { - "type": "string" - }, - "loop": { - "type": "boolean" - } - } - }, - "name": "AudioOptions", - "examples": [ - { - "payload": { - "requestId": "1", - "url": "Url", - "loop": true - } - } - ] - } - } - }, - "zbos/audio/player/stop": { - "publish": { - "summary": "Stop media", - "description": "", - "tags": [ - { - "name": "Audio", - "description": "All audio related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/audio/player/ended": { - "subscribe": { - "summary": "Media ended", - "description": "", - "tags": [ - { - "name": "Audio", - "description": "All audio related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String", - "examples": [ - { - "payload": { - "requestId": "1", - "url": "Url" - } - } - ] - } - } - }, - "zbos/audio/player/pause": { - "publish": { - "summary": "Pause media", - "description": "", - "tags": [ - { - "name": "Audio", - "description": "All audio related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/audio/player/resume": { - "publish": { - "summary": "Resume media", - "description": "", - "tags": [ - { - "name": "Audio", - "description": "All audio related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/audio/volume/set": { - "publish": { - "summary": "Set volume", - "description": "", - "tags": [ - { - "name": "Audio", - "description": "All audio related topics." - } - ], - "message": { - "payload": { - "type": "integer", - "maximum": 100, - "minimum": 0 - }, - "name": "Int" - } - } - }, - "zbos/audio/volume/get": { - "publish": { - "summary": "Get volume", - "description": "see <> for response\n", - "tags": [ - { - "name": "Audio", - "description": "All audio related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/audio/volume/response/{key}": { - "subscribe": { - "summary": "response: Get volume", - "description": "", - "tags": [ - { - "name": "Audio", - "description": "All audio related topics." - } - ], - "message": { - "payload": { - "type": "integer", - "maximum": 100, - "minimum": 0 - }, - "name": "Int" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/audio/volume/event": { - "subscribe": { - "summary": "event: Volume change", - "description": "Notify subscribers of a volume change.\n", - "tags": [ - { - "name": "Audio", - "description": "All audio related topics." - } - ], - "message": { - "payload": { - "type": "integer", - "maximum": 100, - "minimum": 0 - }, - "name": "Int" - } - } - }, - "zbos/audio/beep": { - "publish": { - "summary": "Play beep", - "description": "Publish to play a beep sound. Used by the robot when the hot word is recognized.\n", - "tags": [ - { - "name": "Audio", - "description": "All audio related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/camera/picture/get": { - "publish": { - "summary": "Get picture", - "description": "", - "tags": [ - { - "name": "Camera", - "description": "All camera related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/camera/picture/event": { - "publish": { - "summary": "event: Get picture", - "description": "Picture in base64 formatsee zbos/facetracking/response for response\n", - "tags": [ - { - "name": "Face tracking", - "description": "All face tracking related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/camera/stream/start": { - "publish": { - "summary": "Start the camera stream of the selected camera.", - "description": "", - "tags": [ - { - "name": "Camera", - "description": "All camera related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "cameraId": { - "type": "string", - "description": "Camera id" - }, - "extras": { - "type": "object" - } - } - }, - "name": "StreamStartRequest", - "examples": [ - { - "payload": { - "cameraId": "string", - "extras": {} - } - } - ] - } - } - }, - "zbos/camera/stream/stop": { - "publish": { - "summary": "Stop camera stream", - "description": "", - "tags": [ - { - "name": "Camera", - "description": "All camera related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "requestId": { - "type": "string" - }, - "cameraId": { - "type": "string", - "description": "camera id" - } - } - }, - "name": "VideoOptions", - "examples": [ - { - "payload": { - "requestId": "string", - "cameraId": "string" - } - } - ] - } - } - }, - "zbos/camera/stream/stop/event": { - "subscribe": { - "summary": "Camera stream has stopped", - "description": "", - "tags": [ - { - "name": "Camera", - "description": "All camera related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/camera/stream/init": { - "publish": { - "summary": "Initialize camera stream", - "description": "Send by the robot to start the webrtc handshake\n", - "tags": [ - { - "name": "Camera", - "description": "All camera related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/camera/stream/offer": { - "description": "WebRTC Session Description", - "publish": { - "summary": "Handsake offer for camera stream", - "description": "", - "tags": [ - { - "name": "Camera", - "description": "All camera related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/camera/stream/answer": { - "description": "WebRTC Session Description", - "subscribe": { - "summary": "Handsake answer for camera stream", - "description": "", - "tags": [ - { - "name": "Camera", - "description": "All camera related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "type": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "OFFER", - "PRANSWER", - "ANSWER" - ] - }, - "sdp": { - "type": "string" - } - } - }, - "name": "StreamAnswer", - "examples": [ - { - "payload": { - "type": "ANSWER", - "sdp": "string" - } - } - ] - } - } - }, - "zbos/camera/stream/candidate/core": { - "description": "WebRTC Session Description", - "subscribe": { - "summary": "RTC ICE Candidate Core", - "description": "", - "tags": [ - { - "name": "Camera", - "description": "All camera related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "cameraId": { - "type": "string", - "description": "camera id" - }, - "type": { - "type": "string", - "description": "Always returns \"candidate\"" - }, - "label": { - "type": "integer", - "description": "sdpMLineIndex" - }, - "id": { - "type": "string", - "description": "sdpMid" - }, - "candidate": { - "type": "string" - } - } - }, - "name": "Candidate", - "examples": [ - { - "payload": { - "cameraId": "string", - "type": "string", - "label": 5, - "id": "string", - "candidate": "string" - } - } - ] - } - } - }, - "zbos/camera/stream/candidate/control": { - "subscribe": { - "summary": "RTC ICE Candidate Control", - "description": "", - "tags": [ - { - "name": "Camera", - "description": "All camera related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "cameraId": { - "type": "string", - "description": "camera id" - }, - "type": { - "type": "string", - "description": "Always returns \"candidate\"" - }, - "label": { - "type": "integer", - "description": "sdpMLineIndex" - }, - "id": { - "type": "string", - "description": "sdpMid" - }, - "candidate": { - "type": "string" - } - } - }, - "name": "Candidate", - "examples": [ - { - "payload": { - "cameraId": "string", - "type": "string", - "label": 5, - "id": "string", - "candidate": "string" - } - } - ] - } - } - }, - "zbos/camera/stream/twoway/request": { - "publish": { - "summary": "Request two way camera stream", - "description": "", - "tags": [ - { - "name": "Camera", - "description": "All camera related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/camera/preview/resume": { - "publish": { - "summary": "Resume camera preview", - "description": "", - "tags": [ - { - "name": "Camera", - "description": "All camera related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/camera/preview/pause": { - "publish": { - "summary": "Pause camera preview", - "description": "", - "tags": [ - { - "name": "Camera", - "description": "All camera related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/camera/error": { - "publish": { - "summary": "Camera error", - "description": "", - "tags": [ - { - "name": "Camera", - "description": "All camera related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/camera/qr/scan/start": { - "publish": { - "summary": "Start QR Scanning", - "description": "Start a QR code scan using the camera.\n", - "tags": [ - { - "name": "Camera", - "description": "All camera related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "scan_id": { - "type": "string", - "description": "Unique ID that will be used in related topics." - }, - "scan_timeout": { - "type": "integer", - "description": "Timeout in seconds after which the scan should automatically be stopped.\nPass 0 to not have a timeout. 0 is also the default when no value was passed." - } - } - }, - "name": "QrScanStartRequest", - "examples": [ - { - "payload": { - "scan_id": "abc", - "scan_timeout": 60 - } - }, - { - "payload": { - "scan_id": "xyz", - "scan_timeout": 0 - } - } - ] - } - } - }, - "zbos/camera/qr/scan/stop": { - "publish": { - "summary": "Stop QR Scanning", - "description": "Stop a QR code scan using the camera.\n", - "tags": [ - { - "name": "Camera", - "description": "All camera related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "scan_id": { - "type": "string", - "description": "Unique ID that should be the same as the one used in the start request." - } - } - }, - "name": "QrScanStopRequest", - "examples": [ - { - "payload": { - "scan_id": "abc" - } - } - ] - } - } - }, - "zbos/camera/qr/scan/stopped/event": { - "subscribe": { - "summary": "Event: Stopped QR scanning", - "description": "This event is published when a QR scan has stopped, either manually or due to a timeout.\n", - "tags": [ - { - "name": "Camera", - "description": "All camera related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "scan_id": { - "type": "string", - "description": "Unique ID that will be the same as the one used in the start request." - } - } - }, - "name": "QrScanStoppedEvent", - "examples": [ - { - "payload": { - "scan_id": "abc" - } - } - ] - } - } - }, - "zbos/camera/qr/result/event": { - "subscribe": { - "summary": "QR Result Event", - "description": "This event is published every time a QR code is decoded while a scan is active.\n", - "tags": [ - { - "name": "Camera", - "description": "All camera related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "content": { - "type": "string" - } - } - }, - "name": "QrResultEvent", - "examples": [ - { - "payload": { - "content": "QR Code Content" - } - } - ] - } - } - }, - "zbos/cloud/login": { - "publish": { - "summary": "Login to the cloud", - "description": "see <> for response\n", - "tags": [ - { - "name": "Cloud", - "description": "All cloud related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/cloud/login/response": { - "subscribe": { - "summary": "response: Login to the cloud", - "description": "Response indicating if login to the cloud was successful or not\n", - "tags": [ - { - "name": "Cloud", - "description": "All cloud related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "token": { - "type": "string", - "description": "jwt auth token" - }, - "success": { - "type": "boolean" - } - } - }, - "name": "LoginResponse", - "examples": [ - { - "payload": { - "token": "string", - "success": true - } - } - ] - } - } - }, - "zbos/cloud/config/get": { - "publish": { - "summary": "Get cloud config", - "description": "see <> for response\n", - "tags": [ - { - "name": "Cloud", - "description": "All cloud related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/cloud/config/response/{key}": { - "subscribe": { - "summary": "response: Get cloud config", - "description": "", - "tags": [ - { - "name": "Cloud", - "description": "All cloud related topics." - } - ], - "message": { - "payload": { - "type": "object" - }, - "name": "Map" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/cloud/config/set": { - "publish": { - "summary": "Set cloud config", - "description": "", - "tags": [ - { - "name": "Cloud", - "description": "All cloud related topics." - } - ], - "message": { - "payload": { - "type": "object" - }, - "name": "Map" - } - } - }, - "zbos/cloud/config/event": { - "subscribe": { - "summary": "event: Config cloud", - "description": "", - "tags": [ - { - "name": "Cloud", - "description": "All cloud related topics." - } - ], - "message": { - "payload": { - "type": "object" - }, - "name": "Map" - } - } - }, - "zbos/media/library/resync": { - "publish": { - "summary": "Resync all media libraries", - "description": "see <> for response\n", - "tags": [ - { - "name": "Cloud", - "description": "All cloud related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/media/library/resync/response/{key}": { - "subscribe": { - "summary": "response: Resync all media libraries", - "description": "", - "tags": [ - { - "name": "Cloud", - "description": "All cloud related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/media/library/file/upload": { - "publish": { - "summary": "Upload file in media library", - "description": "see <> for response\n", - "tags": [ - { - "name": "Cloud", - "description": "All cloud related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "file": { - "type": "string" - }, - "storageAccount": { - "type": "string" - }, - "key": { - "type": "string" - }, - "metadata": { - "type": "object" - } - } - }, - "name": "FileUploadRequest", - "examples": [ - { - "payload": { - "file": "string", - "storageAccount": "string", - "key": "string", - "metadata": {} - } - } - ] - } - } - }, - "zbos/media/library/file/upload/response/{key}": { - "subscribe": { - "summary": "response: Upload file in media library", - "description": "", - "tags": [ - { - "name": "Cloud", - "description": "All cloud related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "cloudFileId": { - "type": "string" - } - } - }, - "name": "CloudResult", - "examples": [ - { - "payload": { - "success": false, - "cloudFileId": "string" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/cloud/user/list": { - "publish": { - "summary": "Request users linked to the robot", - "description": "", - "tags": [ - { - "name": "Cloud", - "description": "All cloud related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "offset": { - "type": "number" - }, - "limit": { - "type": "number" - } - } - }, - "name": "LinkedUsersRequest" - } - } - }, - "zbos/cloud/user/list/response/{key}": { - "subscribe": { - "summary": "response: users linked to the robot", - "description": "", - "tags": [ - { - "name": "Cloud", - "description": "All cloud related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "accounts": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "username": { - "type": "string" - }, - "email": { - "type": "string" - }, - "picture": { - "type": "string" - }, - "admin": { - "type": "boolean" - }, - "mqttAccount": { - "type": "string" - } - } - } - }, - "offset": { - "type": "number" - }, - "limit": { - "type": "number" - }, - "numResults": { - "type": "number" - } - } - }, - "name": "LinkedUsersResponse", - "examples": [ - { - "payload": { - "accounts": [ - { - "id": "cffb2596-662f-479a-8f43-af1651a61c6d", - "username": "John Doe", - "email": "someone@zorabots.be", - "picture": "https://lh3.googleusercontent.com/a/AATXAJy1DGqwgHZMEiiz=s96-c", - "admin": true, - "mqttAccount": "c-1b32e964-0d76-4ce4-bc61-f8e05bdcebf9" - } - ], - "offset": 0, - "limit": 20, - "numResults": 1 - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/cloud/license/list": { - "publish": { - "summary": "Request a license list for the robot", - "description": "", - "tags": [ - { - "name": "Cloud", - "description": "All cloud related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "offset": { - "type": "number" - }, - "limit": { - "type": "number" - } - } - }, - "name": "LicenseListRequest" - } - } - }, - "zbos/cloud/license/list/response/{key}": { - "subscribe": { - "summary": "response: Request linking a user to the robot", - "description": "", - "tags": [ - { - "name": "Cloud", - "description": "All cloud related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "licenses": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "serial": { - "type": "string" - }, - "softwareId": { - "type": "string" - }, - "createdTimestamp": { - "type": "integer" - }, - "type": { - "type": "string" - }, - "validFrom": { - "type": "integer" - }, - "validUntil": { - "type": "integer" - } - } - } - }, - "offset": { - "type": "number" - }, - "limit": { - "type": "number" - }, - "numResults": { - "type": "number" - } - } - }, - "name": "LicenseListResponse", - "examples": [ - { - "payload": { - "licenses": [ - { - "id": "7c18ae59-1d2c-4fbb-b7e8-4f07fd7b20d4", - "serial": "SH- J02 000596", - "createdTimestamp": 1618783200, - "type": "LICENSE_TYPE_ROBOT", - "validFrom": 1618783200, - "validUntil": 1651017599 - }, - { - "id": "7c18ae59-1d2c-4fbb-b7e8-4f07fd7b20d4", - "serial": "SH- J02 000596", - "softwareId": "73143543-98bf-4ac6-8992-d8b097bbea27", - "createdTimestamp": 1623329499, - "type": "LICENSE_TYPE_SOFTWARE", - "validFrom": 1623276000, - "validUntil": 1654984799 - } - ], - "offset": 0, - "limit": 20, - "numResults": 2 - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/composition/start": { - "publish": { - "summary": "Start composition", - "description": "Payload is composition json\n", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/composition/start/id": { - "publish": { - "summary": "Start composition by id", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "settings": { - "type": "object", - "properties": { - "pinned": { - "type": "boolean" - }, - "schedulerParallel": { - "type": "boolean" - } - } - }, - "variables": { - "type": "object" - } - } - }, - "name": "CompositionStartRequest", - "examples": [ - { - "payload": { - "id": "string", - "settings": { - "pinned": false, - "schedulerParallel": false - }, - "variables": { - "var1": "var1_value", - "var2": "var2_value" - } - } - } - ] - } - } - }, - "zbos/{source}/start/event": { - "subscribe": { - "summary": "event: Composition started", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - }, - "parameters": { - "source": { - "description": "The source that this composition belongs to", - "schema": { - "type": "string", - "enum": [ - "scheduler/timeline", - "composition" - ] - } - } - } - }, - "zbos/{source}/stop": { - "publish": { - "summary": "Stop composition", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - }, - "parameters": { - "source": { - "description": "The source that this composition belongs to", - "schema": { - "type": "string", - "enum": [ - "scheduler/timeline", - "composition" - ] - } - } - } - }, - "zbos/{source}/stop/event": { - "subscribe": { - "summary": "event: Composition stopped", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "source": { - "description": "The source that this composition belongs to", - "schema": { - "type": "string", - "enum": [ - "scheduler/timeline", - "composition" - ] - } - } - } - }, - "zbos/composition/pause": { - "publish": { - "summary": "Pause composition", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/composition/pause/event": { - "subscribe": { - "summary": "event: Composition paused", - "description": "Timeline ID\n", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/composition/resume": { - "publish": { - "summary": "Resume composition", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/composition/resume/event": { - "subscribe": { - "summary": "event: Composition Resumed", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/{source}/loop/event": { - "subscribe": { - "summary": "event: Composition loop state", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "infinite": { - "type": "boolean" - }, - "repeatTimes": { - "type": "integer", - "description": "Total loop count" - }, - "currentRepeatTimes": { - "type": "integer", - "description": "current loop count" - } - } - }, - "name": "LoopProperty", - "examples": [ - { - "payload": { - "infinite": true, - "currentRepeatTimes": 3 - } - } - ] - } - }, - "parameters": { - "source": { - "description": "The source that this composition belongs to", - "schema": { - "type": "string", - "enum": [ - "scheduler/timeline", - "composition" - ] - } - } - } - }, - "zbos/composition/settings": { - "publish": { - "summary": "Settings for a given composition", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "properties": { - "type": "object", - "properties": { - "loop": { - "type": "object", - "properties": { - "infinite": { - "type": "boolean" - }, - "repeatTimes": { - "type": "integer", - "description": "Total loop count" - }, - "currentRepeatTimes": { - "type": "integer", - "description": "current loop count" - } - } - }, - "general": { - "type": "object", - "properties": { - "stoppable": { - "type": "boolean" - }, - "powerManagement": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "DEFAULT", - "AWARE", - "DISABLED" - ] - } - } - } - } - }, - "timelineId": { - "type": "string", - "description": "Composition ID" - }, - "isScheduler": { - "type": "boolean" - }, - "isPinned": { - "type": "boolean" - }, - "type": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "SIMPLE_COMPOSITION", - "ADVANCED_COMPOSITION" - ] - } - } - }, - "name": "TimelinePropertiesWrapper", - "examples": [ - { - "payload": {} - } - ] - } - } - }, - "zbos/composition/save": { - "publish": { - "summary": "Save composition", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/composition/save/multiple": { - "publish": { - "summary": "Save multiple compositions", - "description": "see <> for response\n", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "Required key" - }, - "compositions": { - "type": "array", - "description": "Array of compositions", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "type": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "SIMPLE_COMPOSITION", - "ADVANCED_COMPOSITION" - ] - } - } - } - } - } - }, - "name": "SaveMultipleCompositionRequest", - "examples": [ - { - "payload": { - "compositions": [ - { - "id": "string", - "name": "string", - "type": "SIMPLE_COMPOSITION" - } - ] - } - } - ] - } - } - }, - "zbos/composition/save/event": { - "subscribe": { - "summary": "event: Composition Saved", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String", - "examples": [ - { - "payload": "string" - } - ] - } - } - }, - "zbos/composition/save/multiple/response/{key}": { - "subscribe": { - "summary": "response: Save multiple compositions", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "object" - }, - "name": "Map" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/composition/load": { - "publish": { - "summary": "Load composition", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - } - } - }, - "name": "CompositionLoadRequest", - "examples": [ - { - "payload": { - "id": "string" - } - } - ] - } - } - }, - "zbos/composition/load/event": { - "subscribe": { - "summary": "event: Composition loaded", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/composition/list": { - "publish": { - "summary": "Get list of compositions", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/composition/list/event": { - "subscribe": { - "summary": "event: Get list of compositions", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "type": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "SIMPLE_COMPOSITION", - "ADVANCED_COMPOSITION" - ] - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "id": "string", - "name": "string", - "type": "SIMPLE_COMPOSITION" - } - } - ] - } - } - }, - "zbos/composition/delete": { - "publish": { - "summary": "Delete composition by id", - "description": "see <> for response\n", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - } - } - }, - "name": "CompositionDeleteRequest", - "examples": [ - { - "payload": { - "id": "string" - } - } - ] - } - } - }, - "zbos/composition/delete/all": { - "publish": { - "summary": "Deletes all compositions", - "description": "see <> for response\n", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/composition/delete/response": { - "subscribe": { - "summary": "response: Delete composition", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - } - }, - "zbos/composition/changed/event": { - "subscribe": { - "summary": "event: Composition changed", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/composition/audio/stop": { - "publish": { - "summary": "Stop audio composition", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/composition/video/stop": { - "publish": { - "summary": "Stop video composition", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/composition/image/stop": { - "publish": { - "summary": "Stop image composition", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/composition/error": { - "subscribe": { - "summary": "event: Composition encountered error", - "description": "List of possible error reasons:\n'INVALID_ID': The block id is malformed/broken.\n'INVALID_TYPE': The block type is malformed/broken.\n'INVALID_BLOCK': One of the properties aside from id and type is malformed/broken.\n", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "type": { - "type": "string", - "description": "Block type that caused the error, 'UNKNOWN' if not known" - }, - "id": { - "type": "string", - "description": "Block ID that caused the error, 'UNKNOWN' if not known" - }, - "reasons": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "name": "CompositionError", - "examples": [ - { - "payload": { - "type": "string", - "id": "string" - } - } - ] - } - } - }, - "zbos/api/request": { - "publish": { - "summary": "Get api", - "description": "see <> for response\n", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "endpoint": { - "type": "string" - }, - "body": { - "type": "string" - }, - "params": { - "type": "object" - }, - "headers": { - "type": "object" - } - } - }, - "name": "ApiRequestBlock", - "examples": [ - { - "payload": {} - } - ] - } - } - }, - "zbos/api/response/{key}": { - "subscribe": { - "summary": "response: Get api", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/composition/default/variable/request": { - "publish": { - "summary": "Get default composition variables", - "description": "Payload \"key\" is optionalsee <> for response\n", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/composition/default/variable/response/{key}": { - "subscribe": { - "summary": "response: Get default composition variables", - "description": "Payload is array of variable names\n", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "string" - } - }, - "name": "Array" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/composition/status/get": { - "publish": { - "summary": "Get composition statussee <> for response", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/composition/status/response/{key}": { - "subscribe": { - "summary": "response: Composition status", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "state": { - "type": "object", - "description": "Default, playing or paused", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "DEFAULT", - "PLAYING", - "PAUSED" - ] - }, - "activeBlocks": { - "type": "array", - "items": { - "type": "string" - } - }, - "properties": { - "type": "object", - "description": "Composition properties", - "properties": { - "loop": { - "type": "object", - "properties": { - "infinite": { - "type": "boolean" - }, - "repeatTimes": { - "type": "integer", - "description": "Total loop count" - }, - "currentRepeatTimes": { - "type": "integer", - "description": "current loop count" - } - } - }, - "general": { - "type": "object", - "properties": { - "stoppable": { - "type": "boolean" - }, - "powerManagement": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "DEFAULT", - "AWARE", - "DISABLED" - ] - } - } - } - } - }, - "playCount": { - "type": "integer", - "description": "Current repeat iteration" - } - } - }, - "name": "CompositionStatus", - "examples": [ - { - "payload": { - "id": "string", - "state": "DEFAULT", - "activeBlocks": [ - "string" - ], - "properties": { - "loop": { - "infinite": true, - "currentRepeatTimes": 3 - }, - "general": { - "powerManagement": "DEFAULT" - } - }, - "playCount": 5 - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/composition/block/start": { - "publish": { - "summary": "Start composition block", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Block ID" - }, - "index": { - "type": "integer" - }, - "blocking": { - "type": "boolean" - }, - "input": { - "type": "object", - "properties": { - "connectors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "connection": { - "type": "object", - "properties": { - "blockId": { - "type": "string" - }, - "connectorId": { - "type": "string" - } - } - } - } - } - } - } - }, - "output": { - "type": "object", - "properties": { - "connectors": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "connection": { - "type": "object", - "properties": { - "blockId": { - "type": "string" - }, - "connectorId": { - "type": "string" - } - } - } - } - } - } - } - }, - "nextBlockId": { - "type": "string" - } - } - }, - "name": "Block", - "examples": [ - { - "payload": { - "index": 5, - "blocking": false, - "nextBlockId": "string" - } - } - ] - } - } - }, - "zbos/{source}/block/start/event": { - "subscribe": { - "summary": "event: Composition block started", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "source": { - "description": "The source that this composition belongs to", - "schema": { - "type": "string", - "enum": [ - "scheduler/timeline", - "composition" - ] - } - } - } - }, - "zbos/composition/block/stop": { - "publish": { - "summary": "Stop composition block", - "description": "Block ID to stop, when key = \"all\", all active blocks will be stopped.\n", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/{source}/block/end/event": { - "subscribe": { - "summary": "event: Composition block ended", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "source": { - "description": "The source that this composition belongs to", - "schema": { - "type": "string", - "enum": [ - "scheduler/timeline", - "composition" - ] - } - } - } - }, - "zbos/{source}/block/pause/event": { - "subscribe": { - "summary": "event: Composition block paused", - "description": "", - "tags": [ - { - "name": "Composer", - "description": "All composer related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "source": { - "description": "The source that this composition belongs to", - "schema": { - "type": "string", - "enum": [ - "scheduler/timeline", - "composition" - ] - } - } - } - }, - "zbos/connection/status/get": { - "publish": { - "summary": "Get the connection status", - "description": "Requesting the connection information for the WiFi, access point and cablesee <> for response\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/connection/status/response/{key}": { - "subscribe": { - "summary": "response: Get the connection status", - "description": "Response with the status information for the WiFi, access point and cable\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "wifi": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ssid": { - "type": "string" - }, - "encryption": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "UNSECURE", - "SHARE", - "WEP", - "WPA", - "WPA_PSK", - "WPA_OR_WPA2", - "WPA_OR_WPA2_PSK", - "WPA2", - "WPA2_PSK", - "WPA2_EAP", - "WAI_CERT", - "WAI_PSK" - ] - }, - "ip4": { - "type": "string" - }, - "ip6": { - "type": "string" - }, - "dhcp": { - "type": "boolean" - }, - "subnetmask": { - "type": "string" - }, - "gateway": { - "type": "string" - }, - "dns": { - "type": "object", - "properties": { - "dns1": { - "type": "string" - }, - "dns2": { - "type": "string" - }, - "adapterName": { - "type": "string" - } - } - }, - "macAddress": { - "type": "string" - }, - "connectionStatus": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "CONNECTING", - "CONNECTED", - "DISCONNECTED" - ] - }, - "hasInternet": { - "type": "boolean" - }, - "adapterName": { - "type": "string" - } - } - } - }, - "cable": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ip4": { - "type": "string" - }, - "ip6": { - "type": "string" - }, - "dhcp": { - "type": "boolean" - }, - "subnetmask": { - "type": "string" - }, - "gateway": { - "type": "string" - }, - "dns": { - "type": "object", - "properties": { - "dns1": { - "type": "string" - }, - "dns2": { - "type": "string" - }, - "adapterName": { - "type": "string" - } - } - }, - "hasConnection": { - "type": "boolean" - }, - "hasInternet": { - "type": "boolean" - }, - "macAddress": { - "type": "string" - }, - "adapterName": { - "type": "string" - } - } - } - }, - "ap": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ssid": { - "type": "string" - }, - "ip": { - "type": "string" - }, - "encryption": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "UNSECURE", - "SHARE", - "WEP", - "WPA", - "WPA_PSK", - "WPA_OR_WPA2", - "WPA_OR_WPA2_PSK", - "WPA2", - "WPA2_PSK", - "WPA2_EAP", - "WAI_CERT", - "WAI_PSK" - ] - }, - "hasConnection": { - "type": "boolean" - }, - "hasInternet": { - "type": "boolean" - }, - "adapterName": { - "type": "string" - } - } - } - }, - "cellular": { - "type": "array", - "items": { - "type": "object", - "properties": { - "hasConnection": { - "type": "boolean" - }, - "hasInternet": { - "type": "boolean" - }, - "macAddress": { - "type": "string" - }, - "adapterName": { - "type": "string" - } - } - } - } - } - }, - "name": "ConnectionStatus", - "examples": [ - { - "payload": { - "wifi": [ - { - "ssid": "ZoraBotsNetwork", - "encryption": "WPA2_PSK", - "ip4": "192.168.0.5", - "ip6": "2a02:1811:b282:ae00:5850:a744:3c37:711b", - "dhcp": true, - "subnetmask": "255.255.254.0", - "gateway": "192.168.0.1", - "dns": { - "dns1": "8.8.8.8", - "dns2": "8.8.4.4", - "valid": true - }, - "macAddress": "76:EA:A5:27:6B:B6", - "connectionStatus": "CONNECTED", - "hasInternet": true, - "adapterName": "wlan0" - } - ], - "cable": [ - { - "ip4": "192.168.0.4", - "ip6": "2a02:1811:b282:ae00:5850:a744:3c37:711a", - "dhcp": true, - "subnetmask": "255.255.254.0", - "gateway": "192.168.0.1", - "dns": { - "dns1": "8.8.8.8", - "dns2": "8.8.4.4", - "valid": true - }, - "hasConnection": true, - "hasInternet": true, - "adapterName": "eth0" - } - ], - "ap": [ - { - "ssid": "ZoraBotsHotspot", - "ip": "192.168.60.1", - "encryption": "WPA2_PSK", - "hasConnection": true, - "hasInternet": true, - "adapterName": "teth0" - } - ], - "cellular": [ - { - "hasConnection": true, - "hasInternet": true, - "macAddress": "some-mac-address", - "adapterName": "ccmni0" - } - ] - } - }, - { - "payload": { - "cable": [ - { - "ip4": "192.168.0.4", - "ip6": "2a02:1811:b282:ae00:5850:a744:3c37:711a", - "dhcp": true, - "subnetmask": "255.255.254.0", - "gateway": "192.168.0.1", - "dns": { - "dns1": "8.8.8.8", - "dns2": "8.8.4.4", - "valid": true - }, - "hasConnection": true, - "hasInternet": true, - "adapterName": "eth0" - } - ] - } - }, - { - "payload": { - "wifi": [ - { - "ssid": "ZoraBotsNetwork", - "encryption": "WPA2_PSK", - "ip4": "192.168.0.5", - "ip6": "2a02:1811:b282:ae00:5850:a744:3c37:711b", - "dhcp": true, - "subnetmask": "255.255.254.0", - "gateway": "192.168.0.1", - "dns": { - "dns1": "8.8.8.8", - "dns2": "8.8.4.4", - "valid": true - }, - "macAddress": "76:EA:A5:27:6B:B6", - "connectionStatus": "CONNECTED", - "hasInternet": true, - "adapterName": "wlan0" - } - ] - } - }, - { - "payload": { - "ap": [ - { - "ssid": "ZoraBotsHotspot", - "ip": "192.168.60.1", - "encryption": "WPA2_PSK", - "hasConnection": true, - "hasInternet": true, - "adapterName": "teth0" - }, - { - "ssid": "ZoraBotsHotspot5GHz", - "ip": "192.168.60.1", - "encryption": "WPA2_PSK", - "hasConnection": true, - "hasInternet": true, - "adapterName": "teth1" - } - ] - } - }, - { - "payload": { - "cellular": [ - { - "hasConnection": true, - "hasInternet": true, - "macAddress": "some-mac-address", - "adapterName": "ccmni0" - } - ] - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/connection/status/event": { - "subscribe": { - "summary": "event: Connection status", - "description": "Periodic status information for the WiFi, access point and cable\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "wifi": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ssid": { - "type": "string" - }, - "encryption": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "UNSECURE", - "SHARE", - "WEP", - "WPA", - "WPA_PSK", - "WPA_OR_WPA2", - "WPA_OR_WPA2_PSK", - "WPA2", - "WPA2_PSK", - "WPA2_EAP", - "WAI_CERT", - "WAI_PSK" - ] - }, - "ip4": { - "type": "string" - }, - "ip6": { - "type": "string" - }, - "dhcp": { - "type": "boolean" - }, - "subnetmask": { - "type": "string" - }, - "gateway": { - "type": "string" - }, - "dns": { - "type": "object", - "properties": { - "dns1": { - "type": "string" - }, - "dns2": { - "type": "string" - }, - "adapterName": { - "type": "string" - } - } - }, - "macAddress": { - "type": "string" - }, - "connectionStatus": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "CONNECTING", - "CONNECTED", - "DISCONNECTED" - ] - }, - "hasInternet": { - "type": "boolean" - }, - "adapterName": { - "type": "string" - } - } - } - }, - "cable": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ip4": { - "type": "string" - }, - "ip6": { - "type": "string" - }, - "dhcp": { - "type": "boolean" - }, - "subnetmask": { - "type": "string" - }, - "gateway": { - "type": "string" - }, - "dns": { - "type": "object", - "properties": { - "dns1": { - "type": "string" - }, - "dns2": { - "type": "string" - }, - "adapterName": { - "type": "string" - } - } - }, - "hasConnection": { - "type": "boolean" - }, - "hasInternet": { - "type": "boolean" - }, - "macAddress": { - "type": "string" - }, - "adapterName": { - "type": "string" - } - } - } - }, - "ap": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ssid": { - "type": "string" - }, - "ip": { - "type": "string" - }, - "encryption": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "UNSECURE", - "SHARE", - "WEP", - "WPA", - "WPA_PSK", - "WPA_OR_WPA2", - "WPA_OR_WPA2_PSK", - "WPA2", - "WPA2_PSK", - "WPA2_EAP", - "WAI_CERT", - "WAI_PSK" - ] - }, - "hasConnection": { - "type": "boolean" - }, - "hasInternet": { - "type": "boolean" - }, - "adapterName": { - "type": "string" - } - } - } - }, - "cellular": { - "type": "array", - "items": { - "type": "object", - "properties": { - "hasConnection": { - "type": "boolean" - }, - "hasInternet": { - "type": "boolean" - }, - "macAddress": { - "type": "string" - }, - "adapterName": { - "type": "string" - } - } - } - } - } - }, - "name": "ConnectionStatus", - "examples": [ - { - "payload": { - "wifi": [ - { - "ssid": "ZoraBotsNetwork", - "encryption": "WPA2_PSK", - "ip4": "192.168.0.5", - "ip6": "2a02:1811:b282:ae00:5850:a744:3c37:711b", - "dhcp": true, - "subnetmask": "255.255.254.0", - "gateway": "192.168.0.1", - "dns": { - "dns1": "8.8.8.8", - "dns2": "8.8.4.4", - "valid": true - }, - "macAddress": "76:EA:A5:27:6B:B6", - "connectionStatus": "CONNECTED", - "hasInternet": true, - "adapterName": "wlan0" - } - ], - "cable": [ - { - "ip4": "192.168.0.4", - "ip6": "2a02:1811:b282:ae00:5850:a744:3c37:711a", - "dhcp": true, - "subnetmask": "255.255.254.0", - "gateway": "192.168.0.1", - "dns": { - "dns1": "8.8.8.8", - "dns2": "8.8.4.4", - "valid": true - }, - "hasConnection": true, - "hasInternet": true, - "adapterName": "eth0" - } - ], - "ap": [ - { - "ssid": "ZoraBotsHotspot", - "ip": "192.168.60.1", - "encryption": "WPA2_PSK", - "hasConnection": true, - "hasInternet": true, - "adapterName": "teth0" - } - ], - "cellular": [ - { - "hasConnection": true, - "hasInternet": true, - "macAddress": "some-mac-address", - "adapterName": "ccmni0" - } - ] - } - }, - { - "payload": { - "cable": [ - { - "ip4": "192.168.0.4", - "ip6": "2a02:1811:b282:ae00:5850:a744:3c37:711a", - "dhcp": true, - "subnetmask": "255.255.254.0", - "gateway": "192.168.0.1", - "dns": { - "dns1": "8.8.8.8", - "dns2": "8.8.4.4", - "valid": true - }, - "hasConnection": true, - "hasInternet": true, - "adapterName": "eth0" - } - ] - } - }, - { - "payload": { - "wifi": [ - { - "ssid": "ZoraBotsNetwork", - "encryption": "WPA2_PSK", - "ip4": "192.168.0.5", - "ip6": "2a02:1811:b282:ae00:5850:a744:3c37:711b", - "dhcp": true, - "subnetmask": "255.255.254.0", - "gateway": "192.168.0.1", - "dns": { - "dns1": "8.8.8.8", - "dns2": "8.8.4.4", - "valid": true - }, - "macAddress": "76:EA:A5:27:6B:B6", - "connectionStatus": "CONNECTED", - "hasInternet": true, - "adapterName": "wlan0" - } - ] - } - }, - { - "payload": { - "ap": [ - { - "ssid": "ZoraBotsHotspot", - "ip": "192.168.60.1", - "encryption": "WPA2_PSK", - "hasConnection": true, - "hasInternet": true, - "adapterName": "teth0" - }, - { - "ssid": "ZoraBotsHotspot5GHz", - "ip": "192.168.60.1", - "encryption": "WPA2_PSK", - "hasConnection": true, - "hasInternet": true, - "adapterName": "teth1" - } - ] - } - }, - { - "payload": { - "cellular": [ - { - "hasConnection": true, - "hasInternet": true, - "macAddress": "some-mac-address", - "adapterName": "ccmni0" - } - ] - } - } - ] - } - } - }, - "zbos/connection/wifi/scan": { - "publish": { - "summary": "Scan for WiFi networks", - "description": "Start scanning for WiFi networks\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/connection/wifi/scan/event": { - "subscribe": { - "summary": "response: Scan for WiFi networks", - "description": "A list of all the scanned WiFi networks the robot can connect to\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ssid": { - "type": "string" - }, - "encryption": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "UNSECURE", - "SHARE", - "WEP", - "WPA", - "WPA_PSK", - "WPA_OR_WPA2", - "WPA_OR_WPA2_PSK", - "WPA2", - "WPA2_PSK", - "WPA2_EAP", - "WAI_CERT", - "WAI_PSK" - ] - }, - "signal": { - "type": "integer" - }, - "isSaved": { - "type": "boolean" - }, - "macAddress": { - "type": "string" - }, - "channel": { - "type": "integer" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "ssid": "ZoraBotsNetwork", - "encryption": "WPA2_PSK", - "signal": -60, - "macAddress": "83:E0:F9:55:95:AF", - "saved": false - } - }, - { - "payload": { - "ssid": "ZoraBotsNetworkEnterprise", - "encryption": "WPA2_EAP", - "signal": -55, - "macAddress": "83:E0:F9:55:95:AF", - "saved": false - } - }, - { - "payload": { - "ssid": "ZoraBotsNetworkOpen", - "encryption": "UNSECURE", - "signal": -50, - "macAddress": "83:E0:F9:55:95:AF", - "saved": false - } - }, - { - "payload": { - "ssid": "ZoraBotsNetworkWEP", - "encryption": "WEP", - "signal": -70, - "macAddress": "83:E0:F9:55:95:AF", - "saved": false - } - } - ] - } - } - }, - "zbos/connection/wifi/connect": { - "publish": { - "summary": "Connect to a network", - "description": "Connect to a specific WiFi network\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "ssid": { - "type": "string" - }, - "encryption": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "UNSECURE", - "SHARE", - "WEP", - "WPA", - "WPA_PSK", - "WPA_OR_WPA2", - "WPA_OR_WPA2_PSK", - "WPA2", - "WPA2_PSK", - "WPA2_EAP", - "WAI_CERT", - "WAI_PSK" - ] - }, - "password": { - "type": "string" - }, - "username": { - "type": "string" - }, - "macAddress": { - "type": "string" - }, - "isSaved": { - "type": "boolean" - }, - "hidden": { - "type": "boolean" - }, - "channel": { - "type": "integer" - }, - "adapterName": { - "type": "string" - } - } - }, - "name": "ConnectToNetwork", - "examples": [ - { - "payload": { - "ssid": "ZoraNetwork1", - "encryption": "WPA2_PSK", - "password": "Nice_try123", - "macAddress": "83:E0:F9:55:95:AF", - "hidden": false, - "adapterName": "wlan0", - "saved": false, - "enterpriseNetwork": false, - "valid": true - } - } - ] - } - } - }, - "zbos/connection/wifi/connect/event": { - "subscribe": { - "summary": "event: Connect to a network", - "description": "A (json) message is published when the connection request was successful or not\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "message": { - "type": "string" - } - } - }, - "name": "ConnectionResponse", - "examples": [ - { - "payload": { - "success": true, - "message": "ZoraBotsNetwork" - } - }, - { - "payload": { - "success": true, - "message": "" - } - }, - { - "payload": { - "success": false, - "message": "INVALID_CREDENTIALS" - } - } - ] - } - } - }, - "zbos/connection/wifi/forget": { - "publish": { - "summary": "Forget a network", - "description": "Forget a network. If the robot is connected to the given network, it will disconnect\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "ssid": { - "type": "string" - }, - "macAddress": { - "type": "string" - }, - "adapterName": { - "type": "string" - } - } - }, - "name": "ForgetNetwork", - "examples": [ - { - "payload": { - "ssid": "ZoraBotsNetworkEnterprise", - "macAddress": "wifi_wxvze5651", - "adapterName": "wlan0", - "valid": true - } - } - ] - } - } - }, - "zbos/connection/wifi/forget/event": { - "subscribe": { - "summary": "event: Forget a network", - "description": "A (json) message is published when the forget request was successful or not\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "message": { - "type": "string" - } - } - }, - "name": "ConnectionResponse", - "examples": [ - { - "payload": { - "success": true, - "message": "ZoraBotsNetwork" - } - }, - { - "payload": { - "success": true, - "message": "" - } - }, - { - "payload": { - "success": false, - "message": "INVALID_CREDENTIALS" - } - } - ] - } - } - }, - "zbos/connection/wifi/list/saved/get": { - "publish": { - "summary": "Get the saved networks", - "description": "Get an overview of all the networks that are saved on the robotsee <> for response\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/connection/wifi/list/saved/response/{key}": { - "subscribe": { - "summary": "response: Get the saved networks", - "description": "A list of all the saved networks that are stored on the robot\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ssid": { - "type": "string" - }, - "encryption": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "UNSECURE", - "SHARE", - "WEP", - "WPA", - "WPA_PSK", - "WPA_OR_WPA2", - "WPA_OR_WPA2_PSK", - "WPA2", - "WPA2_PSK", - "WPA2_EAP", - "WAI_CERT", - "WAI_PSK" - ] - }, - "password": { - "type": "string" - }, - "username": { - "type": "string" - }, - "hidden": { - "type": "boolean" - }, - "networkConfig": { - "type": "object", - "properties": { - "dhcp": { - "type": "boolean" - }, - "fixedIp4": { - "type": "string" - }, - "fixedIp6": { - "type": "string" - }, - "subnetmask": { - "type": "string" - }, - "gateway": { - "type": "string" - }, - "adapterName": { - "type": "string" - } - } - }, - "dns": { - "type": "object", - "properties": { - "dns1": { - "type": "string" - }, - "dns2": { - "type": "string" - }, - "adapterName": { - "type": "string" - } - } - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "ssid": "ZoraBotsNetwork", - "encryption": "WPA2_PSK", - "password": "Nice_try123", - "hidden": false, - "networkConfig": { - "dhcp": false, - "fixedIp4": "192.168.5.2", - "subnetmask": "255.255.255.0", - "gateway": "192.168.5.1", - "valid": true - }, - "dns": { - "dns1": "8.8.8.8", - "dns2": "8.8.4.4", - "valid": true - } - } - }, - { - "payload": { - "ssid": "ZoraBotsNetworkEnterprise", - "encryption": "WPA2_EAP", - "password": "Nice_try123", - "username": "let_me_see", - "hidden": false - } - }, - { - "payload": { - "ssid": "ZoraBotsNetworkOpen", - "encryption": "UNSECURE", - "hidden": false - } - }, - { - "payload": { - "ssid": "ZoraBotsNetworkHidden", - "encryption": "WEP", - "password": "Nice_try123", - "hidden": true - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/connection/wifi/network/configure/set": { - "publish": { - "summary": "Set network configuration", - "description": "Set specific WiFi network configuration (DHCP, IPv4, IPv6, subnetmask, default gateway).see <> for response\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "dhcp": { - "type": "boolean" - }, - "fixedIp4": { - "type": "string" - }, - "fixedIp6": { - "type": "string" - }, - "subnetmask": { - "type": "string" - }, - "gateway": { - "type": "string" - }, - "adapterName": { - "type": "string" - } - } - }, - "name": "NetworkConfig", - "examples": [ - { - "payload": { - "dhcp": false, - "fixedIp4": "192.168.0.101", - "subnetmask": "255.255.254.0", - "gateway": "192.168.0.2", - "adapterName": "wlan0", - "valid": true - } - }, - { - "payload": { - "dhcp": false, - "fixedIp4": "192.168.0.101", - "fixedIp6": "2a02:1811:b282:ae00:5850:a744:3c37:711b", - "subnetmask": "255.255.254.0", - "gateway": "192.168.0.2", - "adapterName": "wlan1", - "valid": true - } - }, - { - "payload": { - "dhcp": true, - "valid": true - } - } - ] - } - } - }, - "zbos/connection/wifi/network/configure/response/{key}": { - "subscribe": { - "summary": "response: Set network configuration", - "description": "A (json) message is published when saving the configuration was successful or not\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "message": { - "type": "string" - } - } - }, - "name": "ConnectionResponse", - "examples": [ - { - "payload": { - "success": true, - "message": "ZoraBotsNetwork" - } - }, - { - "payload": { - "success": true, - "message": "" - } - }, - { - "payload": { - "success": false, - "message": "INVALID_CREDENTIALS" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/connection/wifi/dns/get": { - "publish": { - "summary": "Get DNS configuration", - "description": "Get the DNS configuration of the network the robot is connected tosee <> for response\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/connection/wifi/dns/get/response/{key}": { - "subscribe": { - "summary": "response: Get DNS configuration", - "description": "Response with the DNS configuration of the connected network\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "dns1": { - "type": "string" - }, - "dns2": { - "type": "string" - }, - "adapterName": { - "type": "string" - } - } - }, - "name": "DNSConfig", - "examples": [ - { - "payload": { - "dns1": "8.8.8.8", - "dns2": "8.8.4.4", - "adapterName": "wlan0", - "valid": true - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/connection/wifi/dns/set": { - "publish": { - "summary": "Set DNS configuration", - "description": "Set the DNS configuration of the network the robot is connected to.see <> for response\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "dns1": { - "type": "string" - }, - "dns2": { - "type": "string" - }, - "adapterName": { - "type": "string" - } - } - }, - "name": "DNSConfig", - "examples": [ - { - "payload": { - "dns1": "1.1.1.1", - "dns2": "1.0.0.1", - "adapterName": "wlan0", - "valid": true - } - } - ] - } - } - }, - "zbos/connection/wifi/dns/set/response/{key}": { - "subscribe": { - "summary": "response: Set DNS configuration", - "description": "A (json) message is published when saving the DNS configuration was successful or not\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "message": { - "type": "string" - } - } - }, - "name": "ConnectionResponse", - "examples": [ - { - "payload": { - "success": true, - "message": "ZoraBotsNetwork" - } - }, - { - "payload": { - "success": true, - "message": "" - } - }, - { - "payload": { - "success": false, - "message": "INVALID_CREDENTIALS" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/connection/ap/config/get": { - "publish": { - "summary": "Get access point configuration", - "description": "Get the access point configuration of the network that the robot is broadcastingsee <> for response\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/connection/ap/config/get/response/{key}": { - "subscribe": { - "summary": "response: Get access point configuration", - "description": "Response about the access point that the robot is broadcasting\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "ssid": { - "type": "string" - }, - "password": { - "type": "string" - }, - "adapterName": { - "type": "string" - } - } - }, - "name": "APConfig", - "examples": [ - { - "payload": { - "enabled": true, - "ssid": "ZoraBotsHotspot", - "password": "hotspot_123" - } - }, - { - "payload": { - "enabled": false, - "ssid": "ZoraBotsHotspot", - "password": "hotspot_123", - "adapterName": "teth1" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/connection/ap/config/set": { - "publish": { - "summary": "Set access point configuration", - "description": "Set the access point configuration of the network that the robot is broadcasting.see <> for response\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "ssid": { - "type": "string" - }, - "password": { - "type": "string" - }, - "adapterName": { - "type": "string" - } - } - }, - "name": "APConfig", - "examples": [ - { - "payload": { - "enabled": true, - "ssid": "ZoraBotsHotspot", - "password": "hotspot_123" - } - }, - { - "payload": { - "enabled": false, - "ssid": "ZoraBotsHotspot", - "password": "hotspot_123", - "adapterName": "teth1" - } - } - ] - } - } - }, - "zbos/connection/ap/config/set/response/{key}": { - "subscribe": { - "summary": "response: Set access point configuration", - "description": "A (json) message is published when saving the access point configuration was successful or not\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "message": { - "type": "string" - } - } - }, - "name": "ConnectionResponse", - "examples": [ - { - "payload": { - "success": true, - "message": "ZoraBotsNetwork" - } - }, - { - "payload": { - "success": true, - "message": "" - } - }, - { - "payload": { - "success": false, - "message": "INVALID_CREDENTIALS" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/connection/ap/enable/event": { - "subscribe": { - "summary": "event: Access point enabled", - "description": "Triggered when the access point/hotspot is turned on\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/connection/ap/disable/event": { - "subscribe": { - "summary": "event: Access point disabled", - "description": "Triggered when the access point/hotspot is turned off\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/connection/usb/config/start": { - "publish": { - "summary": "Start connecting to a wifi config", - "description": "Look for a wifi config on the robot and attempt to connect to it\n", - "tags": [ - { - "name": "Connection", - "description": "All connection related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/diagnostics/chassis/get": { - "publish": { - "summary": "Get diagnostics for chassis", - "description": "see <> for response\n", - "tags": [ - { - "name": "Diagnostics", - "description": "All diagnostics related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/diagnostics/chassis/event": { - "subscribe": { - "summary": "event: Chassis state changed", - "description": "An event will be published when there is a problem detected with a motor or motor controller.\n", - "tags": [ - { - "name": "Diagnostics", - "description": "All diagnostics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "partId": { - "type": "string", - "description": "Name of the part" - }, - "partType": { - "type": "object", - "description": "Type of the part", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "MOTOR", - "MOTOR_CONTROLLER", - "SERVO", - "SERVO_CONTROLLER", - "CPU", - "MEMORY", - "LIDAR", - "POWER_BOARD", - "BATTERY" - ] - }, - "info": { - "type": "object", - "properties": { - "translationKey": { - "type": "string", - "description": "status code" - }, - "message": { - "type": "string", - "description": "status message" - } - } - }, - "temperature": { - "type": "string", - "description": "optional, depending on robot" - } - } - }, - "name": "DiagnosticState", - "examples": [ - { - "payload": {} - } - ] - } - } - }, - "zbos/diagnostics/chassis/response/{key}": { - "subscribe": { - "summary": "response: Diagnostics chassis", - "description": "", - "tags": [ - { - "name": "Diagnostics", - "description": "All diagnostics related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "partId": { - "type": "string", - "description": "Name of the part" - }, - "partType": { - "type": "object", - "description": "Type of the part", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "MOTOR", - "MOTOR_CONTROLLER", - "SERVO", - "SERVO_CONTROLLER", - "CPU", - "MEMORY", - "LIDAR", - "POWER_BOARD", - "BATTERY" - ] - }, - "info": { - "type": "object", - "properties": { - "translationKey": { - "type": "string", - "description": "status code" - }, - "message": { - "type": "string", - "description": "status message" - } - } - }, - "temperature": { - "type": "string", - "description": "optional, depending on robot" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": {} - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/diagnostics/servos/get": { - "publish": { - "summary": "Get diagnostics for servos", - "description": "see <> for response\n", - "tags": [ - { - "name": "Diagnostics", - "description": "All diagnostics related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/diagnostics/servos/event": { - "subscribe": { - "summary": "event: Servo state changed", - "description": "An event will be published when there is a problem detected with a servo.\n", - "tags": [ - { - "name": "Diagnostics", - "description": "All diagnostics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "partId": { - "type": "string", - "description": "Name of the part" - }, - "partType": { - "type": "object", - "description": "Type of the part", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "MOTOR", - "MOTOR_CONTROLLER", - "SERVO", - "SERVO_CONTROLLER", - "CPU", - "MEMORY", - "LIDAR", - "POWER_BOARD", - "BATTERY" - ] - }, - "info": { - "type": "object", - "properties": { - "translationKey": { - "type": "string", - "description": "status code" - }, - "message": { - "type": "string", - "description": "status message" - } - } - }, - "temperature": { - "type": "string", - "description": "optional, depending on robot" - } - } - }, - "name": "DiagnosticState", - "examples": [ - { - "payload": {} - } - ] - } - } - }, - "zbos/diagnostics/servos/response/{key}": { - "subscribe": { - "summary": "response: Diagnostics servos", - "description": "", - "tags": [ - { - "name": "Diagnostics", - "description": "All diagnostics related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "partId": { - "type": "string", - "description": "Name of the part" - }, - "partType": { - "type": "object", - "description": "Type of the part", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "MOTOR", - "MOTOR_CONTROLLER", - "SERVO", - "SERVO_CONTROLLER", - "CPU", - "MEMORY", - "LIDAR", - "POWER_BOARD", - "BATTERY" - ] - }, - "info": { - "type": "object", - "properties": { - "translationKey": { - "type": "string", - "description": "status code" - }, - "message": { - "type": "string", - "description": "status message" - } - } - }, - "temperature": { - "type": "string", - "description": "optional, depending on robot" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": {} - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/domotica/get/settings": { - "publish": { - "summary": "Get settings", - "description": "see <> for response\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/domotica/get/settings/response/{key}": { - "subscribe": { - "summary": "response: Get settings", - "description": "", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "brand": { - "type": "string" - }, - "login": { - "type": "string" - }, - "password": { - "type": "string" - }, - "ip": { - "type": "string" - } - } - }, - "name": "Settings", - "examples": [ - { - "payload": { - "brand": "creadomotics", - "login": "admin", - "password": "admin", - "ip": "192.168.0.123" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/domotica/set/setting": { - "publish": { - "summary": "Set settings", - "description": "Sets login, password and ip of a domotics center. Automatically replaces settings from the same brand. Settings are saved to the sd card. If no file exists, it is automatically created.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "brand": { - "type": "string" - }, - "login": { - "type": "string" - }, - "password": { - "type": "string" - }, - "ip": { - "type": "string" - } - } - }, - "name": "Settings", - "examples": [ - { - "payload": { - "brand": "creadomotics", - "login": "admin", - "password": "admin", - "ip": "192.168.0.123" - } - } - ] - } - } - }, - "zbos/domotica/delete/settings/all": { - "publish": { - "summary": "Delete all settings", - "description": "Deletes all the plugin settings/configs from the device.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/domotica/get/status": { - "publish": { - "summary": "Get status", - "description": "see <> for response\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/domotica/get/status/response/{key}": { - "subscribe": { - "summary": "response: Get status", - "description": "", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "brand": { - "type": "string" - }, - "state": { - "type": "object", - "description": "Can be: INITIALIZING, CONNECTING, CONNECTION_FAILED, CONNECTION_SUCCEEDED", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "INITIALIZING", - "CONNECTING", - "CONNECTION_FAILED", - "CONNECTION_SUCCEEDED", - "NOT_CONFIGURED" - ] - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "brand": "creadomotics", - "state": "CONNECTION_FAILED" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/domotica/get/devices": { - "publish": { - "summary": "Get devices", - "description": "see <> for response\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/domotica/get/devices/response/{key}": { - "subscribe": { - "summary": "response: Get devices", - "description": "", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "room": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "type": { - "type": "string" - }, - "brand": { - "type": "string" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "id": "string", - "room": "kitchen", - "tags": [ - "string", - "bar", - "kitchen" - ], - "type": "dimmer", - "brand": "creadomotics", - "validDevice": true - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/domotica/add/device": { - "publish": { - "summary": "Add device", - "description": "Automatically removes device from same brand with same id. devices are saved to the sd card. If no file exists, it is automatically created.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "room": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "type": { - "type": "string" - }, - "brand": { - "type": "string" - } - } - }, - "name": "DomoticaDevice", - "examples": [ - { - "payload": { - "id": "string", - "room": "kitchen", - "tags": [ - "string", - "bar", - "kitchen" - ], - "type": "dimmer", - "brand": "creadomotics", - "validDevice": true - } - } - ] - } - } - }, - "zbos/domotica/delete/device": { - "publish": { - "summary": "Delete device", - "description": "", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "room": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "type": { - "type": "string" - }, - "brand": { - "type": "string" - } - } - }, - "name": "DomoticaDevice", - "examples": [ - { - "payload": { - "id": "string", - "validDevice": false - } - } - ] - } - } - }, - "zbos/domotica/delete/devices/all": { - "publish": { - "summary": "Delete all devices", - "description": "Deletes all locally configured devices.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/domotica/get/rooms": { - "publish": { - "summary": "Get rooms", - "description": "see <> for response\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/domotica/get/rooms/response/{key}": { - "subscribe": { - "summary": "response: Get rooms", - "description": "", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "devices": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "room": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "type": { - "type": "string" - }, - "brand": { - "type": "string" - } - } - } - } - } - }, - "name": "Room", - "examples": [ - { - "payload": {} - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/domotica/set/notifications": { - "publish": { - "summary": "Enable notifications on device state changes", - "description": "To get notifications for all device types, pass \"all\" as a device type.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/domotica/event": { - "subscribe": { - "summary": "event: Domotica state changes", - "description": "", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "room": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "state": { - "type": "object", - "properties": { - "value": { - "type": "object", - "properties": {} - }, - "optionalValue": { - "type": "object", - "properties": {} - }, - "unit": { - "type": "string" - } - } - }, - "type": { - "type": "string" - }, - "id": { - "type": "string" - } - } - }, - "name": "DeviceState", - "examples": [ - { - "payload": { - "room": "kitchen", - "tags": [ - "bar", - "kitchen" - ], - "state": { - "value": "ON" - }, - "type": "motion", - "id": "string" - } - } - ] - } - } - }, - "zbos/domotica/device/event": { - "subscribe": { - "summary": "event: Domotica device", - "description": "Domotica device state changes trigger this event. Has no payload, state is in the topic itself.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/domotica/plugin/event": { - "subscribe": { - "summary": "event: Domotica plugin", - "description": "Plugin state changes (such as connectivity changes) trigger this event.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "brand": { - "type": "string" - }, - "state": { - "type": "object", - "description": "Can be: INITIALIZING, CONNECTING, CONNECTION_FAILED, CONNECTION_SUCCEEDED", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "INITIALIZING", - "CONNECTING", - "CONNECTION_FAILED", - "CONNECTION_SUCCEEDED", - "NOT_CONFIGURED" - ] - } - } - }, - "name": "PluginState", - "examples": [ - { - "payload": { - "brand": "creadomotics", - "state": "INITIALIZING" - } - } - ] - } - } - }, - "zbos/domotica/set/device/bool": { - "publish": { - "summary": "Set device", - "description": "All devices in given room of given type including all given tags will be adressed.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "type": { - "type": "string", - "description": "The device type. Currently supported types are: light, dimmer, switch, plug, door, shutter, speaker." - }, - "state": { - "type": "boolean", - "description": "True for on/open/..., false for off/closed/..." - }, - "room": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "name": "DomoticaSetDeviceOptions", - "examples": [ - { - "payload": { - "type": "string", - "state": true - } - } - ] - } - } - }, - "zbos/domotica/get/light": { - "publish": { - "summary": "Get light", - "description": "All lights in given room including all given tags will be adressed.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "room": { - "type": "string", - "description": "Optional" - }, - "tags": { - "type": "array", - "description": "Optional", - "items": { - "type": "string" - } - } - } - }, - "name": "DomoticaGetOptions", - "examples": [ - { - "payload": { - "room": "kitchen", - "tags": [ - "bar", - "kitchen" - ] - } - } - ] - } - } - }, - "zbos/domotica/set/light": { - "publish": { - "summary": "Set light", - "description": "All lights in given room including all given tags will be adressed.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "state": { - "type": "boolean", - "description": "True for on, false for off" - }, - "room": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "name": "DomoticaSetBooleanOptions", - "examples": [ - { - "payload": { - "room": "kitchen", - "tags": [ - "bar", - "kitchen" - ], - "state": true - } - } - ] - } - } - }, - "zbos/domotica/get/dimmer": { - "publish": { - "summary": "Get dimmer", - "description": "All dimmers in given room including all given tags will be adressed.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "room": { - "type": "string", - "description": "Optional" - }, - "tags": { - "type": "array", - "description": "Optional", - "items": { - "type": "string" - } - } - } - }, - "name": "DomoticaGetOptions", - "examples": [ - { - "payload": { - "room": "kitchen", - "tags": [ - "bar", - "kitchen" - ] - } - } - ] - } - } - }, - "zbos/domotica/set/dimmer": { - "publish": { - "summary": "Set dimmer", - "description": "All dimmers in given room including all given tags will be adressed.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "value": { - "type": "integer", - "description": "Value between 0 and 100 (percentage). To turn off, give value zero" - }, - "room": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "name": "DomoticaSetIntOptions", - "examples": [ - { - "payload": { - "room": "kitchen", - "tags": [ - "bar", - "kitchen" - ], - "value": 100 - } - } - ] - } - } - }, - "zbos/domotica/get/switch": { - "publish": { - "summary": "Get switch", - "description": "All switches in given room including all given tags will be adressed.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "room": { - "type": "string", - "description": "Optional" - }, - "tags": { - "type": "array", - "description": "Optional", - "items": { - "type": "string" - } - } - } - }, - "name": "DomoticaGetOptions", - "examples": [ - { - "payload": { - "room": "kitchen", - "tags": [ - "bar", - "kitchen" - ] - } - } - ] - } - } - }, - "zbos/domotica/set/switch": { - "publish": { - "summary": "Set switch", - "description": "All switches in given room including all given tags will be adressed.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "state": { - "type": "boolean", - "description": "True for on, false for off" - }, - "room": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "name": "DomoticaSetBooleanOptions", - "examples": [ - { - "payload": { - "room": "kitchen", - "tags": [ - "bar", - "kitchen" - ], - "state": true - } - } - ] - } - } - }, - "zbos/domotica/get/door": { - "publish": { - "summary": "Get door", - "description": "All doors in given room including all given tags will be adressed.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "room": { - "type": "string", - "description": "Optional" - }, - "tags": { - "type": "array", - "description": "Optional", - "items": { - "type": "string" - } - } - } - }, - "name": "DomoticaGetOptions", - "examples": [ - { - "payload": { - "room": "kitchen", - "tags": [ - "bar", - "kitchen" - ] - } - } - ] - } - } - }, - "zbos/domotica/set/door": { - "publish": { - "summary": "Set door", - "description": "All doors in given room including all given tags will be adressed.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "state": { - "type": "boolean", - "description": "True for on, false for off" - }, - "room": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "name": "DomoticaSetBooleanOptions", - "examples": [ - { - "payload": { - "room": "kitchen", - "tags": [ - "bar", - "kitchen" - ], - "state": true - } - } - ] - } - } - }, - "zbos/domotica/get/shutter": { - "publish": { - "summary": "Get Shutter", - "description": "All shutters in given room including all given tags will be adressed.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "room": { - "type": "string", - "description": "Optional" - }, - "tags": { - "type": "array", - "description": "Optional", - "items": { - "type": "string" - } - } - } - }, - "name": "DomoticaGetOptions", - "examples": [ - { - "payload": { - "room": "kitchen", - "tags": [ - "bar", - "kitchen" - ] - } - } - ] - } - } - }, - "zbos/domotica/set/shutter": { - "publish": { - "summary": "Set shutter", - "description": "All shutters in given room including all given tags will be adressed.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "state": { - "type": "boolean", - "description": "True for on, false for off" - }, - "room": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "name": "DomoticaSetBooleanOptions", - "examples": [ - { - "payload": { - "room": "kitchen", - "tags": [ - "bar", - "kitchen" - ], - "state": true - } - } - ] - } - } - }, - "zbos/domotica/get/speaker": { - "publish": { - "summary": "Get speaker", - "description": "All speakers in given room including all given tags will be adressed.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "room": { - "type": "string", - "description": "Optional" - }, - "tags": { - "type": "array", - "description": "Optional", - "items": { - "type": "string" - } - } - } - }, - "name": "DomoticaGetOptions", - "examples": [ - { - "payload": { - "room": "kitchen", - "tags": [ - "bar", - "kitchen" - ] - } - } - ] - } - } - }, - "zbos/domotica/set/speaker": { - "publish": { - "summary": "Set speaker", - "description": "All speakers in given room including all given tags will be adressed.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "command": { - "type": "string", - "description": "Supported commands: play, pause, mute, unmute, set volume, increase volume, decrease volume, next song, previous song" - }, - "value": { - "type": "integer", - "description": "Optional. Only used for 'set volume' command. Value between 0 and 100 (percentage)" - }, - "room": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "name": "DomoticaSetSpeakerOptions", - "examples": [ - { - "payload": { - "room": "kitchen", - "tags": [ - "bar", - "kitchen" - ], - "command": "play", - "value": 70 - } - } - ] - } - } - }, - "zbos/domotica/get/doorsensor": { - "publish": { - "summary": "Get doorsensor", - "description": "All doorsensors in given room including all given tags will be adressed.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "room": { - "type": "string", - "description": "Optional" - }, - "tags": { - "type": "array", - "description": "Optional", - "items": { - "type": "string" - } - } - } - }, - "name": "DomoticaGetOptions", - "examples": [ - { - "payload": { - "room": "kitchen", - "tags": [ - "bar", - "kitchen" - ] - } - } - ] - } - } - }, - "zbos/domotica/get/motionsensor": { - "publish": { - "summary": "Get motionsensor", - "description": "All motionsensors in given room including all given tags will be adressed.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "room": { - "type": "string", - "description": "Optional" - }, - "tags": { - "type": "array", - "description": "Optional", - "items": { - "type": "string" - } - } - } - }, - "name": "DomoticaGetOptions", - "examples": [ - { - "payload": { - "room": "kitchen", - "tags": [ - "bar", - "kitchen" - ] - } - } - ] - } - } - }, - "zbos/domotica/get/floodsensor": { - "publish": { - "summary": "Get floodsensor", - "description": "All floodsensors in given room including all given tags will be adressed.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "room": { - "type": "string", - "description": "Optional" - }, - "tags": { - "type": "array", - "description": "Optional", - "items": { - "type": "string" - } - } - } - }, - "name": "DomoticaGetOptions", - "examples": [ - { - "payload": { - "room": "kitchen", - "tags": [ - "bar", - "kitchen" - ] - } - } - ] - } - } - }, - "zbos/domotica/get/lightsensor": { - "publish": { - "summary": "Get lightsensor", - "description": "All lightsensors in given room including all given tags will be adressed.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "room": { - "type": "string", - "description": "Optional" - }, - "tags": { - "type": "array", - "description": "Optional", - "items": { - "type": "string" - } - } - } - }, - "name": "DomoticaGetOptions", - "examples": [ - { - "payload": { - "room": "kitchen", - "tags": [ - "bar", - "kitchen" - ] - } - } - ] - } - } - }, - "zbos/domotica/get/temperature": { - "publish": { - "summary": "Get temperature", - "description": "All temperature sensors in given room including all given tags will be adressed.\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "room": { - "type": "string", - "description": "Optional" - }, - "tags": { - "type": "array", - "description": "Optional", - "items": { - "type": "string" - } - } - } - }, - "name": "DomoticaGetOptions", - "examples": [ - { - "payload": { - "room": "kitchen", - "tags": [ - "bar", - "kitchen" - ] - } - } - ] - } - } - }, - "zbos/domotica/play/scene": { - "publish": { - "summary": "Set scene", - "description": "All scenes in given room will be adressed. Use scene property to specify specific scene. Scene names can be found in the tags of scene objects.see <> for response\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "room": { - "type": "string" - }, - "scene": { - "type": "string", - "description": "Optional" - } - } - }, - "name": "DomoticaPlaySceneOptions", - "examples": [ - { - "payload": { - "room": "kitchen", - "scene": "demo scene" - } - } - ] - } - } - }, - "zbos/domotica/response/{key}": { - "subscribe": { - "summary": "Domotics response", - "description": "Response for the various device getters: get light, get dimmer, etc\n", - "tags": [ - { - "name": "Domotics", - "description": "All domotics related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": {} - }, - "name": "Any" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/facetracking/start": { - "publish": { - "summary": "Start continuous facetracking, see <> for events", - "description": "", - "tags": [ - { - "name": "Face tracking", - "description": "All face tracking related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/facetracking/stop": { - "publish": { - "summary": "Stop continuous facetracking", - "description": "", - "tags": [ - { - "name": "Face tracking", - "description": "All face tracking related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/facetracking/detected/faces": { - "subscribe": { - "summary": "event: Detected faces", - "description": "", - "tags": [ - { - "name": "Face tracking", - "description": "All face tracking related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "name": { - "type": "string" - }, - "role": { - "type": "string" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "uuid": "some uuid", - "name": "some name", - "role": "some description" - } - }, - { - "payload": { - "name": "unknown" - } - } - ] - } - } - }, - "zbos/facetracking/response": { - "subscribe": { - "summary": "response: Face", - "description": "", - "tags": [ - { - "name": "Face tracking", - "description": "All face tracking related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "name": { - "type": "string" - }, - "role": { - "type": "string" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "uuid": "some uuid", - "name": "some name", - "role": "some description" - } - }, - { - "payload": { - "name": "unknown" - } - } - ] - } - } - }, - "zbos/facetracking/add_request": { - "publish": { - "summary": "Add a person", - "description": "see <> for response\n", - "tags": [ - { - "name": "Face tracking", - "description": "All face tracking related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "role": { - "type": "string", - "description": "Optional, a descriptor for this person" - }, - "ImageString": { - "type": "string", - "description": "Optional, if this has a value (in base64) the given image will be used. Otherwise, a stream will be started to find a new person" - }, - "options": { - "type": "object", - "description": "Optional, the global options will be used if no value is given", - "properties": { - "mode": { - "type": "object", - "description": "How closely the person must match", - "properties": { - "euclideanThreshold": { - "type": "number" - }, - "cosineThreshold": { - "type": "number" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "LOOSE", - "NORMAL", - "STRICT" - ] - }, - "tries": { - "type": "integer", - "description": "How many times to check for a person before giving up" - }, - "timeout": { - "type": "integer", - "description": "How long to look for a person before giving up" - } - } - } - } - }, - "name": "PersonAddRequest", - "examples": [ - { - "payload": { - "name": "some name", - "role": "some description" - } - }, - { - "payload": { - "name": "another name", - "options": { - "mode": "STRICT", - "tries": 5, - "timeout": 60 - }, - "role": "another description", - "ImageString": "some base64 image" - } - } - ] - } - } - }, - "zbos/facetracking/add_response": { - "subscribe": { - "summary": "response: Add a person", - "description": "", - "tags": [ - { - "name": "Face tracking", - "description": "All face tracking related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - } - }, - "zbos/facetracking/update_request": { - "publish": { - "summary": "Add a new face to an existing person", - "description": "see <> for response\n", - "tags": [ - { - "name": "Face tracking", - "description": "All face tracking related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/facetracking/update_response": { - "subscribe": { - "summary": "response: Add a new face to an existing person", - "description": "", - "tags": [ - { - "name": "Face tracking", - "description": "All face tracking related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - } - }, - "zbos/facetracking/update_person_request": { - "publish": { - "summary": "Update a person", - "description": "see <> for response\n", - "tags": [ - { - "name": "Face tracking", - "description": "All face tracking related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "name": { - "type": "string" - }, - "role": { - "type": "string" - } - } - }, - "name": "Person", - "examples": [ - { - "payload": { - "uuid": "some uuid", - "name": "some new name", - "role": "some new description" - } - } - ] - } - } - }, - "zbos/facetracking/update_person_response": { - "subscribe": { - "summary": "response: Update a person", - "description": "", - "tags": [ - { - "name": "Face tracking", - "description": "All face tracking related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - } - }, - "zbos/facetracking/delete_request": { - "publish": { - "summary": "Delete a person", - "description": "see <> for response\n", - "tags": [ - { - "name": "Face tracking", - "description": "All face tracking related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "name": { - "type": "string" - }, - "role": { - "type": "string" - } - } - }, - "name": "Person", - "examples": [ - { - "payload": { - "uuid": "some uuid" - } - } - ] - } - } - }, - "zbos/facetracking/delete_response": { - "subscribe": { - "summary": "response: Delete a person", - "description": "", - "tags": [ - { - "name": "Face tracking", - "description": "All face tracking related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - } - }, - "zbos/facetracking/name_request": { - "publish": { - "summary": "Request the list of registered persons", - "description": "see <> for response\n", - "tags": [ - { - "name": "Face tracking", - "description": "All face tracking related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/facetracking/name_response": { - "subscribe": { - "summary": "response: Request the list of registered persons", - "description": "", - "tags": [ - { - "name": "Face tracking", - "description": "All face tracking related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "name": { - "type": "string" - }, - "role": { - "type": "string" - } - } - } - }, - "name": "Array" - } - } - }, - "zbos/facetracking/persondata_request": { - "publish": { - "summary": "Request all data of a person", - "description": "see <> for response\n", - "tags": [ - { - "name": "Face tracking", - "description": "All face tracking related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "name": { - "type": "string" - }, - "role": { - "type": "string" - } - } - }, - "name": "Person", - "examples": [ - { - "payload": { - "uuid": "some uuid" - } - } - ] - } - } - }, - "zbos/facetracking/persondata_response": { - "subscribe": { - "summary": "response: Request all data of a person", - "description": "", - "tags": [ - { - "name": "Face tracking", - "description": "All face tracking related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "name": { - "type": "string" - }, - "role": { - "type": "string" - }, - "image": { - "type": "string", - "description": "A base64 image of this person" - } - } - }, - "name": "PersonGetResponse", - "examples": [ - { - "payload": { - "uuid": "some uuid", - "name": "some name", - "image": "some base64 image", - "role": "some description" - } - } - ] - } - } - }, - "zbos/kiosk/resume/event": { - "subscribe": { - "summary": "event: Kiosk is active", - "description": "Fired when kiosk is active after being moved to the background\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/remote/kiosk/apps/home": { - "publish": { - "summary": "Open home screen", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/remote/kiosk/apps/start": { - "publish": { - "summary": "Start application remotely on Kiosk", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "appName": { - "type": "string" - }, - "extras": { - "type": "object" - } - } - }, - "name": "ApplicationStartRequest", - "examples": [ - { - "payload": {} - } - ] - } - } - }, - "zbos/remote/kiosk/apps/get": { - "publish": { - "summary": "Get installed applications on Kiosk", - "description": "Request a list of all installed & listed applications from the Kiosksee <> for response\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/remote/kiosk/apps/response/{key}": { - "subscribe": { - "summary": "response: Get installed applications on Kiosk", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "app_name": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "image_base64": { - "type": "string" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "app_name": "string", - "package_name": "string", - "image_base64": "string" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/remote/kiosk/apps/all/get": { - "publish": { - "summary": "Get installed applications on Kiosk", - "description": "Request a list of all installed & listed applications from the Kiosksee <> for response\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/remote/kiosk/apps/all/response/{key}": { - "subscribe": { - "summary": "response: Get installed applications on Kiosk", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "app_name": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "image_base64": { - "type": "string" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "app_name": "string", - "package_name": "string", - "image_base64": "string" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/remote/kiosk/multimedia/{type}/show": { - "publish": { - "summary": "Show multimedia", - "description": "see <> for response\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - }, - "parameters": { - "type": { - "description": "Type of multimedia", - "schema": { - "type": "string" - } - } - } - }, - "zbos/remote/kiosk/multimedia/{type}/show/response/{key}": { - "subscribe": { - "summary": "response: Show multimedia", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - }, - "parameters": { - "type": { - "description": "Type of multimedia", - "schema": { - "type": "string" - } - }, - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/remote/kiosk/input/show": { - "publish": { - "summary": "Show input prompt", - "description": "see <> for response\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "question": { - "type": "string" - }, - "textType": { - "type": "string" - }, - "confirmText": { - "type": "string" - } - } - }, - "name": "InputBlock", - "examples": [ - { - "payload": { - "question": "string" - } - } - ] - } - } - }, - "zbos/remote/kiosk/input/show/response/{key}": { - "subscribe": { - "summary": "response: Show input prompt", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "input": { - "type": "string" - } - } - }, - "name": "InputResponse", - "examples": [ - { - "payload": { - "input": "input" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/remote/kiosk/print/show": { - "publish": { - "summary": "Show print dialog", - "description": "see <> for response\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "file_path": { - "type": "string", - "description": "Required. The path to a PDF file to print." - }, - "media_size": { - "type": "string", - "description": "Optional. The format of the paper to be printed, defaults to 'Letter'" - }, - "printer_name": { - "type": "string", - "description": "Optional, only used when auto print is enabled. The name of or part of the name of a printer, defaults to first available printer" - }, - "auto_print": { - "type": "boolean", - "description": "Optional. Whether to use the accessibility service to automatically print to the desired printer without user input" - } - } - }, - "name": "PrintOptions", - "examples": [ - { - "payload": { - "key": "some_key", - "file_path": "/sdcard/zbos_media_library/dummy.pdf", - "media_size": "ISO_A4", - "printer_name": "HP LaserJet Pro", - "auto_print": true - } - } - ] - } - } - }, - "zbos/remote/kiosk/print/show/response/{key}": { - "subscribe": { - "summary": "response: Show print dialog", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/remote/kiosk/text/overlay/show": { - "publish": { - "summary": "Show text overlay", - "description": "see <> for response\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "text": { - "type": "string" - }, - "textColor": { - "type": "string" - }, - "backgroundColor": { - "type": "string" - } - } - }, - "name": "TextOverlayOptions", - "examples": [ - { - "payload": { - "key": "some_key", - "text": "Hello George, nice to meet you!", - "textColor": "#00FF00", - "backgroundColor": "#FF0000" - } - } - ] - } - } - }, - "zbos/remote/kiosk/text/overlay/show/response/{key}": { - "subscribe": { - "summary": "response: Show text overlay", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/remote/kiosk/text/overlay/hide": { - "publish": { - "summary": "Hide text overlay", - "description": "see <> for response\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/remote/kiosk/text/overlay/hide/response/{key}": { - "subscribe": { - "summary": "response: Hide text overlay", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/remote/kiosk/microphone/show": { - "publish": { - "summary": "Show microphone in composition", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/remote/kiosk/multimedia/image/show": { - "publish": { - "summary": "Show image", - "description": "see <> for response\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "path": { - "type": "string" - }, - "extension": { - "type": "string" - }, - "fileName": { - "type": "string" - }, - "style": { - "type": "object", - "properties": { - "backgroundColor": { - "type": "string" - } - } - }, - "url": { - "type": "string" - } - } - }, - "name": "Image", - "examples": [ - { - "payload": { - "id": "string", - "style": { - "backgroundColor": "string" - }, - "url": "string" - } - } - ] - } - } - }, - "zbos/remote/kiosk/multimedia/image/show/response/{key}": { - "subscribe": { - "summary": "response: Show image", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "path": { - "type": "string" - }, - "extension": { - "type": "string" - }, - "fileName": { - "type": "string" - }, - "style": { - "type": "object", - "properties": { - "backgroundColor": { - "type": "string" - } - } - }, - "url": { - "type": "string" - } - } - }, - "name": "Image", - "examples": [ - { - "payload": { - "id": "string", - "style": { - "backgroundColor": "string" - }, - "url": "string" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/remote/kiosk/multimedia/image/stop": { - "publish": { - "summary": "Stop showing image", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/remote/kiosk/multimedia/image/{filename}/end": { - "subscribe": { - "summary": "event: Image ended", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - }, - "parameters": { - "filename": { - "description": "Name of the file", - "schema": { - "type": "string" - } - } - } - }, - "zbos/remote/kiosk/multimedia/video/show": { - "publish": { - "summary": "Show video", - "description": "see <> for response\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "repeat": { - "type": "boolean" - }, - "audioUrl": { - "type": "string" - }, - "videoOnly": { - "type": "boolean" - }, - "showControls": { - "type": "boolean" - } - } - }, - "name": "Video", - "examples": [ - { - "payload": { - "id": "string", - "url": "string", - "repeat": true, - "audioUrl": "string", - "videoOnly": false, - "showControls": true, - "remoteVideo": false - } - } - ] - } - } - }, - "zbos/remote/kiosk/multimedia/video/show/response/{key}": { - "subscribe": { - "summary": "response: Show video", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "repeat": { - "type": "boolean" - }, - "audioUrl": { - "type": "string" - }, - "videoOnly": { - "type": "boolean" - }, - "showControls": { - "type": "boolean" - } - } - }, - "name": "Video", - "examples": [ - { - "payload": { - "id": "string", - "url": "string", - "repeat": true, - "audioUrl": "string", - "videoOnly": false, - "showControls": true, - "remoteVideo": false - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/remote/kiosk/multimedia/video/stop": { - "publish": { - "summary": "Stop video", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/remote/kiosk/multimedia/video/{filename}/end": { - "subscribe": { - "summary": "event: Video ended", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - }, - "parameters": { - "filename": { - "description": "Name of the file", - "schema": { - "type": "string" - } - } - } - }, - "zbos/remote/kiosk/multimedia/page/show": { - "publish": { - "summary": "Show page in kiosk", - "description": "see <> for response\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "blocking": { - "type": "boolean" - }, - "id": { - "type": "string" - }, - "index": { - "type": "integer" - }, - "url": { - "type": "string" - } - } - }, - "name": "OpenBrowserBlock", - "examples": [ - { - "payload": {} - } - ] - } - } - }, - "zbos/remote/kiosk/multimedia/page/show/response/{key}": { - "subscribe": { - "summary": "response: Show page in kiosk", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "blocking": { - "type": "boolean" - }, - "id": { - "type": "string" - }, - "index": { - "type": "integer" - }, - "url": { - "type": "string" - } - } - }, - "name": "OpenBrowserBlock", - "examples": [ - { - "payload": {} - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/remote/kiosk/action/start": { - "publish": { - "summary": "Start action", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": {} - }, - "name": "Action" - } - } - }, - "zbos/remote/kiosk/settings/lock/state/get": { - "publish": { - "summary": "Get current lockstate", - "description": "see <> for response\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/remote/kiosk/settings/lock/state/response": { - "subscribe": { - "summary": "response: Get current lockstate", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "isLocked": { - "type": "boolean" - }, - "isPincodeSet": { - "type": "boolean" - } - } - }, - "name": "LockStatus", - "examples": [ - { - "payload": { - "locked": true, - "pincodeSet": false - } - } - ] - } - } - }, - "zbos/remote/kiosk/settings/unlock": { - "publish": { - "summary": "Unlock settings page", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/remote/kiosk/settings/lock": { - "publish": { - "summary": "Lock settings page", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/remote/kiosk/settings/lock/event": { - "subscribe": { - "summary": "response: Lock settings page", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "response": { - "type": "string" - }, - "success": { - "type": "boolean" - } - } - }, - "name": "LockResponse", - "examples": [ - { - "payload": {} - } - ] - } - } - }, - "zbos/remote/kiosk/settings/unlock/event": { - "subscribe": { - "summary": "response: Unlock settings page", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "response": { - "type": "string" - }, - "success": { - "type": "boolean" - } - } - }, - "name": "LockResponse", - "examples": [ - { - "payload": {} - } - ] - } - } - }, - "zbos/remote/kiosk/settings/pincode/change/event": { - "subscribe": { - "summary": "response: Change current pincode", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "response": { - "type": "string" - }, - "success": { - "type": "boolean" - } - } - }, - "name": "LockResponse", - "examples": [ - { - "payload": {} - } - ] - } - } - }, - "zbos/remote/kiosk/settings/pincode/remove": { - "publish": { - "summary": "Remove current pincode", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/remote/kiosk/settings/pincode/remove/event": { - "subscribe": { - "summary": "response: Remove current pincode", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "response": { - "type": "string" - }, - "success": { - "type": "boolean" - } - } - }, - "name": "LockResponse", - "examples": [ - { - "payload": {} - } - ] - } - } - }, - "zbos/kiosk/datasource/get/all": { - "publish": { - "summary": "Get all datasources", - "description": "see <> for response\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/kiosk/datasource/get/all/response/{key}": { - "subscribe": { - "summary": "response: Get all datasources", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "id": "string", - "name": "string" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/kiosk/datasource/get": { - "publish": { - "summary": "Get specific datasources", - "description": "see <> for response\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "name": "SimpleDataSource", - "examples": [ - { - "payload": { - "id": "string", - "name": "string" - } - } - ] - } - } - }, - "zbos/kiosk/datasource/get/response/{key}": { - "subscribe": { - "summary": "response: Get specific datasources", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/kiosk/datasource/current/get": { - "publish": { - "summary": "Get active datasources", - "description": "see <> for response\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/kiosk/datasource/current/get/response/{key}": { - "subscribe": { - "summary": "response: Get active datasources", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/kiosk/datasource/set": { - "publish": { - "summary": "Set current Kiosk datasources", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - } - } - }, - "name": "ChangeDatasourceRequest", - "examples": [ - { - "payload": { - "id": "string" - } - } - ] - } - } - }, - "zbos/kiosk/datasource/save": { - "publish": { - "summary": "Save or add a datasource", - "description": "see <> for response\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "name": "SimpleDataSource", - "examples": [ - { - "payload": { - "id": "string", - "name": "String" - } - } - ] - } - } - }, - "zbos/kiosk/datasource/save/event/{kiosk_id}": { - "subscribe": { - "summary": "response: Get active datasources", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "kiosk_id": { - "description": "ID of kiosk", - "schema": { - "type": "string" - } - } - } - }, - "zbos/kiosk/datasource/delete": { - "publish": { - "summary": "Delete a datasource", - "description": "see <> for response\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "name": "SimpleDataSource", - "examples": [ - { - "payload": { - "id": "string" - } - } - ] - } - } - }, - "zbos/kiosk/datasource/delete/event/{kiosk_id}": { - "subscribe": { - "summary": "response: Delete a datasource", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "kiosk_id": { - "description": "ID of kiosk", - "schema": { - "type": "string" - } - } - } - }, - "zbos/kiosk/composition/pin/lock": { - "publish": { - "summary": "Pin a composition", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - } - } - }, - "name": "PinnedComposition", - "examples": [ - { - "payload": { - "id": "string" - } - } - ] - } - } - }, - "zbos/kiosk/composition/pin/unlock": { - "publish": { - "summary": "Unpin a composition", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/kiosk/composition/pin/get": { - "publish": { - "summary": "Request the current pin status & pinned composition.", - "description": "see <> for response\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/kiosk/composition/pin/get/response/{key}": { - "subscribe": { - "summary": "response: pin status & pinned composition", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "isPinned": { - "type": "boolean" - }, - "id": { - "type": "string" - } - } - }, - "name": "PinnedCompositionState", - "examples": [ - { - "payload": { - "id": "string", - "pinned": true - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/kiosk/app/pin/lock": { - "publish": { - "summary": "Pin an app, if installed", - "description": "A locked app will be launched immediately when the kiosk opens.\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "packageName": { - "type": "string" - } - } - }, - "name": "PinnedApplication", - "examples": [ - { - "payload": { - "packageName": "string" - } - } - ] - } - } - }, - "zbos/kiosk/app/pin/unlock": { - "publish": { - "summary": "Unpin an app.", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/kiosk/app/pin/get": { - "publish": { - "summary": "Request the current pin status & pinned app.", - "description": "see <> for response\n", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/kiosk/app/pin/get/response/{key}": { - "subscribe": { - "summary": "response: pin status & pinned app", - "description": "", - "tags": [ - { - "name": "Kiosk", - "description": "All kiosk related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "isPinned": { - "type": "boolean" - }, - "packageName": { - "type": "string" - } - } - }, - "name": "PinnedApplicationState", - "examples": [ - { - "payload": { - "packageName": "string", - "pinned": true - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/leds/chestlight/set": { - "publish": { - "summary": "Set chest light color", - "description": "", - "tags": [ - { - "name": "Leds", - "description": "All leds related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "part": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "CHEST", - "MOUTH", - "EYES", - "HEAD", - "SPEECH" - ] - }, - "color": { - "type": "string", - "description": "The format is \"#FF0000\" (red)" - }, - "breathe": { - "type": "boolean" - }, - "breathDuration": { - "type": "integer" - }, - "duration": { - "type": "integer" - } - } - }, - "name": "LedOptions", - "examples": [ - { - "payload": { - "part": "CHEST", - "color": "#ff077e", - "breathDuration": 1500, - "duration": -1 - } - } - ] - } - } - }, - "zbos/media/library/list": { - "publish": { - "summary": "List all media libraries", - "description": "[DEPRECATED]\nPlease use <>\n\n", - "tags": [ - { - "name": "Media", - "description": "All media related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/media/library/list/event": { - "subscribe": { - "summary": "event: Listing all media libraries", - "description": "", - "tags": [ - { - "name": "Media", - "description": "All media related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/media/library/list/get": { - "publish": { - "summary": "Get a list of media items", - "description": "see <> for response\n", - "tags": [ - { - "name": "Media", - "description": "All media related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "limit": { - "type": "integer" - }, - "offset": { - "type": "integer" - }, - "filters": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "Field to check on. Note that the field should be camelCase, not snake_case" - }, - "value": { - "type": "string", - "description": "Value to check on. For numbers you should use 'min' and 'max'." - }, - "min": { - "type": "number", - "description": "Minimum value, only usable for number fields" - }, - "max": { - "type": "number", - "description": "Maximum value, only usable for number fields" - }, - "direction": { - "type": "object", - "description": "Direction to sort on.\nCan be 'asc' or 'desc'.\nThe default direction is 'asc'", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "asc", - "desc" - ] - }, - "operator": { - "type": "object", - "description": "Operator for either the child filters, or this filter object itself.\nCan be 'and', 'or' or 'not'.\nDefault is 'and'.\nThe root operator is always 'and'", - "properties": { - "alternateNames": { - "type": "array", - "items": { - "type": "string" - } - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "and", - "or", - "not" - ] - }, - "match_type": { - "type": "object", - "description": "Match type for string values.\nCan be 'exact', 'contains', 'starts_with', 'ends_with'.\nThe default match_type is 'contains'", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "exact", - "contains", - "starts_with", - "ends_with" - ] - }, - "filters": { - "type": "array", - "description": "Filters on which the operator will be applied.\nIf there are no child filters, the operator will be applied to the filter object itself.", - "items": { - "type": "object" - } - }, - "field_filters": { - "type": "array", - "description": "Filters to apply on the child fields of the field.\nWill only work if the field is an object, array/list or map.", - "items": { - "type": "object" - } - } - } - } - }, - "sort": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "Field to check on. Note that the field should be camelCase, not snake_case" - }, - "value": { - "type": "string", - "description": "Value to check on. For numbers you should use 'min' and 'max'." - }, - "min": { - "type": "number", - "description": "Minimum value, only usable for number fields" - }, - "max": { - "type": "number", - "description": "Maximum value, only usable for number fields" - }, - "direction": { - "type": "object", - "description": "Direction to sort on.\nCan be 'asc' or 'desc'.\nThe default direction is 'asc'", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "asc", - "desc" - ] - }, - "operator": { - "type": "object", - "description": "Operator for either the child filters, or this filter object itself.\nCan be 'and', 'or' or 'not'.\nDefault is 'and'.\nThe root operator is always 'and'", - "properties": { - "alternateNames": { - "type": "array", - "items": { - "type": "string" - } - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "and", - "or", - "not" - ] - }, - "match_type": { - "type": "object", - "description": "Match type for string values.\nCan be 'exact', 'contains', 'starts_with', 'ends_with'.\nThe default match_type is 'contains'", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "exact", - "contains", - "starts_with", - "ends_with" - ] - }, - "filters": { - "type": "array", - "description": "Filters on which the operator will be applied.\nIf there are no child filters, the operator will be applied to the filter object itself.", - "items": { - "type": "object" - } - }, - "field_filters": { - "type": "array", - "description": "Filters to apply on the child fields of the field.\nWill only work if the field is an object, array/list or map.", - "items": { - "type": "object" - } - } - } - } - } - } - }, - "name": "FilteringRequest", - "examples": [ - { - "payload": { - "key": "Test123", - "limit": 50, - "offset": 10, - "filters": [ - { - "operator": "or", - "match_type": "contains" - }, - { - "field": "type", - "value": "image", - "operator": "and", - "match_type": "contains" - }, - { - "field": "date", - "operator": "and", - "match_type": "contains" - } - ], - "sort": [ - { - "field": "extension", - "operator": "and", - "match_type": "contains" - }, - { - "field": "name", - "operator": "and", - "match_type": "contains" - } - ] - } - } - ] - } - } - }, - "zbos/media/library/list/response/{key}": { - "subscribe": { - "summary": "response: Get a list of media items", - "description": "", - "tags": [ - { - "name": "Media", - "description": "All media related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "fileId": { - "type": "string" - }, - "path": { - "type": "string" - }, - "fileName": { - "type": "string" - }, - "extension": { - "type": "string" - }, - "type": { - "type": "string" - }, - "mimeType": { - "type": "string" - }, - "downloadPath": { - "type": "string" - }, - "previewPath": { - "type": "string" - }, - "thumbnailPath": { - "type": "string" - }, - "checksum": { - "type": "string" - }, - "cloudFileId": { - "type": "string" - }, - "size": { - "type": "number" - }, - "modifiedAt": { - "type": "number" - }, - "isDefaultAsset": { - "type": "boolean" - }, - "fullPath": { - "type": "string" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": [ - { - "fileId": "string", - "path": "string", - "fileName": "string", - "extension": "string", - "type": "string", - "mimeType": "string", - "downloadPath": "string", - "previewPath": "string", - "thumbnailPath": "string", - "checksum": "string", - "cloudFileId": "string", - "size": 0, - "modifiedAt": 0, - "defaultAsset": false - } - ] - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/media/library/event": { - "subscribe": { - "summary": "Library item changed event", - "description": "This event is published when an item in the media library list changes\n", - "tags": [ - { - "name": "Media", - "description": "All media related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/media/sync/device/get": { - "publish": { - "summary": "Get media sync devices", - "description": "", - "tags": [ - { - "name": "Media", - "description": "All media related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/media/sync/device/event": { - "subscribe": { - "summary": "event: Media sync devices", - "description": "", - "tags": [ - { - "name": "Media", - "description": "All media related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/media/export/get": { - "publish": { - "summary": "Get all media exports", - "description": "", - "tags": [ - { - "name": "Media", - "description": "All media related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "clientId": { - "type": "string" - }, - "compositionId": { - "type": "string" - }, - "compositionName": { - "type": "string" - }, - "mediaPaths": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "name": "ExportRequestDto", - "examples": [ - { - "payload": { - "clientId": "string", - "compositionId": "string", - "compositionName": "string", - "mediaPaths": [ - "string" - ] - } - } - ] - } - } - }, - "zbos/media/export/event": { - "subscribe": { - "summary": "event: All media exported", - "description": "", - "tags": [ - { - "name": "Media", - "description": "All media related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "clientId": { - "type": "string" - }, - "compositionId": { - "type": "string" - }, - "compositionName": { - "type": "string" - }, - "mediaPaths": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "name": "ExportRequestDto", - "examples": [ - { - "payload": { - "clientId": "string", - "compositionId": "string", - "compositionName": "string", - "mediaPaths": [ - "string" - ] - } - } - ] - } - } - }, - "zbos/media/apk/install": { - "publish": { - "summary": "Install APK", - "description": "", - "tags": [ - { - "name": "Media", - "description": "All media related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/media/delete/all": { - "publish": { - "summary": "Delete all media", - "description": "", - "tags": [ - { - "name": "Media", - "description": "All media related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/monitoring/event/{source}/{type}": { - "subscribe": { - "summary": "Monitoring event", - "description": "", - "tags": [ - { - "name": "Monitoring", - "description": "All monitoring related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Mandatory. A unique ID for the event" - }, - "timestamp": { - "type": "number", - "description": "Mandatory. The time at which the event occurred" - }, - "type": { - "type": "string", - "description": "Mandatory. The type of event this is, no dots allowed" - }, - "source": { - "type": "string", - "description": "Mandatory. What device produced this event, no dots allowed" - }, - "value": { - "type": "string", - "description": "Optional. A value relating to the event such as a temperature" - }, - "data": { - "type": "object", - "description": "Optional. Extra data related to the event" - }, - "unit": { - "type": "string", - "description": "Optional. The type of unit the value is expressed in such as °C" - }, - "alarms": { - "type": "array", - "description": "Optional. Alarms attached to this event", - "items": { - "type": "object", - "properties": { - "type": { - "type": "object", - "description": "Mandatory. The type of alarm", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "ItemOmission", - "ItemCommission", - "ServiceOmission", - "ServiceCommission", - "TransientServiceOmission", - "TransientServiceCommission", - "EarlyServiceOmission", - "LateServiceCommission", - "EarlyServiceStart", - "LateServiceStart", - "BoundedOmissionInterval", - "UndetectableValueError", - "BelowRange", - "AboveRange", - "BoundedValueChange", - "StuckValue", - "OutOfBounds", - "OutOfOrder", - "OutOfCalibration", - "EarlyDelivery", - "LateDelivery", - "HighRate", - "LowRate", - "RateJitter", - "EarlyService", - "DelayedService", - "SymmetricReplicationError", - "AsymmetricApproximateValue", - "AsymmetricExactValue", - "AsymmetricItemOmission", - "AsymmetricServiceOmission", - "AsymmetricTiming", - "ReadWriteRace", - "WriteWriteRace", - "Deadlock", - "Starvation", - "AuthorizationError", - "AuthenticationError" - ] - }, - "severity": { - "type": "integer", - "description": "Mandatory. How critical the alarm is" - }, - "persist": { - "type": "boolean", - "description": "Mandatory. If this is an ongoing alarm" - }, - "timestamp": { - "type": "number", - "description": "Mandatory. When the alarm initially started" - } - } - } - } - } - }, - "name": "MonitoringEvent" - } - }, - "parameters": { - "source": { - "description": "Source of monitoring event", - "schema": { - "type": "string" - } - }, - "type": { - "description": "Type of monitoring event", - "schema": { - "type": "string" - } - } - } - }, - "zbos/monitoring/list/get": { - "publish": { - "summary": "Get monitoring events", - "description": "", - "tags": [ - { - "name": "Monitoring", - "description": "All monitoring related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "limit": { - "type": "integer" - }, - "offset": { - "type": "integer" - }, - "filters": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "Field to check on. Note that the field should be camelCase, not snake_case" - }, - "value": { - "type": "string", - "description": "Value to check on. For numbers you should use 'min' and 'max'." - }, - "min": { - "type": "number", - "description": "Minimum value, only usable for number fields" - }, - "max": { - "type": "number", - "description": "Maximum value, only usable for number fields" - }, - "direction": { - "type": "object", - "description": "Direction to sort on.\nCan be 'asc' or 'desc'.\nThe default direction is 'asc'", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "asc", - "desc" - ] - }, - "operator": { - "type": "object", - "description": "Operator for either the child filters, or this filter object itself.\nCan be 'and', 'or' or 'not'.\nDefault is 'and'.\nThe root operator is always 'and'", - "properties": { - "alternateNames": { - "type": "array", - "items": { - "type": "string" - } - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "and", - "or", - "not" - ] - }, - "match_type": { - "type": "object", - "description": "Match type for string values.\nCan be 'exact', 'contains', 'starts_with', 'ends_with'.\nThe default match_type is 'contains'", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "exact", - "contains", - "starts_with", - "ends_with" - ] - }, - "filters": { - "type": "array", - "description": "Filters on which the operator will be applied.\nIf there are no child filters, the operator will be applied to the filter object itself.", - "items": { - "type": "object" - } - }, - "field_filters": { - "type": "array", - "description": "Filters to apply on the child fields of the field.\nWill only work if the field is an object, array/list or map.", - "items": { - "type": "object" - } - } - } - } - }, - "sort": { - "type": "array", - "items": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "Field to check on. Note that the field should be camelCase, not snake_case" - }, - "value": { - "type": "string", - "description": "Value to check on. For numbers you should use 'min' and 'max'." - }, - "min": { - "type": "number", - "description": "Minimum value, only usable for number fields" - }, - "max": { - "type": "number", - "description": "Maximum value, only usable for number fields" - }, - "direction": { - "type": "object", - "description": "Direction to sort on.\nCan be 'asc' or 'desc'.\nThe default direction is 'asc'", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "asc", - "desc" - ] - }, - "operator": { - "type": "object", - "description": "Operator for either the child filters, or this filter object itself.\nCan be 'and', 'or' or 'not'.\nDefault is 'and'.\nThe root operator is always 'and'", - "properties": { - "alternateNames": { - "type": "array", - "items": { - "type": "string" - } - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "and", - "or", - "not" - ] - }, - "match_type": { - "type": "object", - "description": "Match type for string values.\nCan be 'exact', 'contains', 'starts_with', 'ends_with'.\nThe default match_type is 'contains'", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "exact", - "contains", - "starts_with", - "ends_with" - ] - }, - "filters": { - "type": "array", - "description": "Filters on which the operator will be applied.\nIf there are no child filters, the operator will be applied to the filter object itself.", - "items": { - "type": "object" - } - }, - "field_filters": { - "type": "array", - "description": "Filters to apply on the child fields of the field.\nWill only work if the field is an object, array/list or map.", - "items": { - "type": "object" - } - } - } - } - } - } - }, - "name": "FilteringRequest", - "examples": [ - { - "payload": { - "key": "Test123", - "limit": 50, - "offset": 10, - "filters": [ - { - "operator": "or", - "match_type": "contains" - }, - { - "field": "type", - "value": "image", - "operator": "and", - "match_type": "contains" - }, - { - "field": "date", - "operator": "and", - "match_type": "contains" - } - ], - "sort": [ - { - "field": "extension", - "operator": "and", - "match_type": "contains" - }, - { - "field": "name", - "operator": "and", - "match_type": "contains" - } - ] - } - } - ] - } - } - }, - "zbos/monitoring/list/get/response/{key}": { - "subscribe": { - "summary": "response: Get monitoring events", - "description": "", - "tags": [ - { - "name": "Monitoring", - "description": "All monitoring related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Mandatory. A unique ID for the event" - }, - "timestamp": { - "type": "number", - "description": "Mandatory. The time at which the event occurred" - }, - "type": { - "type": "string", - "description": "Mandatory. The type of event this is, no dots allowed" - }, - "source": { - "type": "string", - "description": "Mandatory. What device produced this event, no dots allowed" - }, - "value": { - "type": "string", - "description": "Optional. A value relating to the event such as a temperature" - }, - "data": { - "type": "object", - "description": "Optional. Extra data related to the event" - }, - "unit": { - "type": "string", - "description": "Optional. The type of unit the value is expressed in such as °C" - }, - "alarms": { - "type": "array", - "description": "Optional. Alarms attached to this event", - "items": { - "type": "object", - "properties": { - "type": { - "type": "object", - "description": "Mandatory. The type of alarm", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "ItemOmission", - "ItemCommission", - "ServiceOmission", - "ServiceCommission", - "TransientServiceOmission", - "TransientServiceCommission", - "EarlyServiceOmission", - "LateServiceCommission", - "EarlyServiceStart", - "LateServiceStart", - "BoundedOmissionInterval", - "UndetectableValueError", - "BelowRange", - "AboveRange", - "BoundedValueChange", - "StuckValue", - "OutOfBounds", - "OutOfOrder", - "OutOfCalibration", - "EarlyDelivery", - "LateDelivery", - "HighRate", - "LowRate", - "RateJitter", - "EarlyService", - "DelayedService", - "SymmetricReplicationError", - "AsymmetricApproximateValue", - "AsymmetricExactValue", - "AsymmetricItemOmission", - "AsymmetricServiceOmission", - "AsymmetricTiming", - "ReadWriteRace", - "WriteWriteRace", - "Deadlock", - "Starvation", - "AuthorizationError", - "AuthenticationError" - ] - }, - "severity": { - "type": "integer", - "description": "Mandatory. How critical the alarm is" - }, - "persist": { - "type": "boolean", - "description": "Mandatory. If this is an ongoing alarm" - }, - "timestamp": { - "type": "number", - "description": "Mandatory. When the alarm initially started" - } - } - } - } - } - } - }, - "name": "Array" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/monitoring/registration/request": { - "subscribe": { - "summary": "Request monitoring registrations", - "description": "Request all monitoring services to register themselves using the topics below.\n", - "tags": [ - { - "name": "Monitoring", - "description": "All monitoring related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/monitoring/add": { - "publish": { - "summary": "Add monitoring service", - "description": "Add monitoring service with their default values and extra settings.\nSettings can be retrieved using the settings API, see <>\n", - "tags": [ - { - "name": "Monitoring", - "description": "All monitoring related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "service": { - "type": "object", - "properties": { - "source": { - "type": "string", - "description": "Mandatory. The source of this monitoring service" - }, - "type": { - "type": "string", - "description": "Mandatory. The type of this monitoring service" - }, - "default_settings": { - "type": "object", - "description": "Optional. Any default settings to be overridden", - "properties": { - "enabled": { - "type": "boolean" - }, - "storage_type": { - "type": "object", - "properties": { - "labelKey": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "disk", - "memory" - ] - }, - "persistence_type": { - "type": "object", - "properties": { - "labelKey": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "hours", - "days", - "weeks", - "months", - "items" - ] - }, - "persistence_value": { - "type": "integer" - }, - "cloud_sync": { - "type": "boolean" - }, - "push_notifications": { - "type": "boolean" - }, - "email_notifications": { - "type": "boolean" - } - } - }, - "extraSettings": { - "type": "object", - "description": "Optional. Any extra settings to be registered" - } - } - } - } - }, - "name": "AddMonitoringServiceRequest", - "examples": [ - { - "payload": { - "key": "some_key", - "service": { - "source": "camera", - "type": "mask", - "extraSettings": { - "some_setting": { - "type": "boolean", - "default_value": "true", - "label_key": "some_setting" - } - }, - "default_settings": { - "enabled": true, - "storage_type": "disk", - "persistence_type": "days", - "persistence_value": 7 - } - } - } - } - ] - } - } - }, - "zbos/monitoring/add/response/{key}": { - "subscribe": { - "summary": "Response: Add monitoring service", - "description": "", - "tags": [ - { - "name": "Monitoring", - "description": "All monitoring related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/monitoring/event/add": { - "publish": { - "summary": "Add a new event", - "description": "", - "tags": [ - { - "name": "Monitoring", - "description": "All monitoring related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "event": { - "type": "object", - "properties": { - "timestamp": { - "type": "number", - "description": "Mandatory. The time at which the event occurred" - }, - "type": { - "type": "string", - "description": "Mandatory. The type of event this is, no dots allowed" - }, - "source": { - "type": "string", - "description": "Mandatory. What device produced this event, no dots allowed" - }, - "value": { - "type": "string", - "description": "Optional. A value relating to the event such as a temperature" - }, - "data": { - "type": "object", - "description": "Optional. Extra data related to the event" - }, - "unit": { - "type": "string", - "description": "Optional. The type of unit the value is expressed in such as °C" - }, - "alarms": { - "type": "array", - "description": "Optional. Alarms attached to this event", - "items": { - "type": "object", - "properties": { - "type": { - "type": "object", - "description": "Mandatory. The type of alarm", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "ItemOmission", - "ItemCommission", - "ServiceOmission", - "ServiceCommission", - "TransientServiceOmission", - "TransientServiceCommission", - "EarlyServiceOmission", - "LateServiceCommission", - "EarlyServiceStart", - "LateServiceStart", - "BoundedOmissionInterval", - "UndetectableValueError", - "BelowRange", - "AboveRange", - "BoundedValueChange", - "StuckValue", - "OutOfBounds", - "OutOfOrder", - "OutOfCalibration", - "EarlyDelivery", - "LateDelivery", - "HighRate", - "LowRate", - "RateJitter", - "EarlyService", - "DelayedService", - "SymmetricReplicationError", - "AsymmetricApproximateValue", - "AsymmetricExactValue", - "AsymmetricItemOmission", - "AsymmetricServiceOmission", - "AsymmetricTiming", - "ReadWriteRace", - "WriteWriteRace", - "Deadlock", - "Starvation", - "AuthorizationError", - "AuthenticationError" - ] - }, - "severity": { - "type": "integer", - "description": "Mandatory. How critical the alarm is" - }, - "persist": { - "type": "boolean", - "description": "Mandatory. If this is an ongoing alarm" - }, - "timestamp": { - "type": "number", - "description": "Mandatory. When the alarm initially started" - } - } - } - } - } - } - } - }, - "name": "AddMonitoringEventRequest", - "examples": [ - { - "payload": { - "key": "some_key", - "event": { - "timestamp": 1.349333576093E12, - "type": "SomeType", - "source": "SomeSource", - "valid": true - } - } - } - ] - } - } - }, - "zbos/monitoring/event/add/response/{key}": { - "subscribe": { - "summary": "response: Add a new event", - "description": "", - "tags": [ - { - "name": "Monitoring", - "description": "All monitoring related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/monitoring/event/delete": { - "publish": { - "summary": "Delete an event", - "description": "", - "tags": [ - { - "name": "Monitoring", - "description": "All monitoring related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Mandatory. A unique ID for the event" - }, - "timestamp": { - "type": "number", - "description": "Mandatory. The time at which the event occurred" - }, - "type": { - "type": "string", - "description": "Mandatory. The type of event this is, no dots allowed" - }, - "source": { - "type": "string", - "description": "Mandatory. What device produced this event, no dots allowed" - }, - "value": { - "type": "string", - "description": "Optional. A value relating to the event such as a temperature" - }, - "data": { - "type": "object", - "description": "Optional. Extra data related to the event" - }, - "unit": { - "type": "string", - "description": "Optional. The type of unit the value is expressed in such as °C" - }, - "alarms": { - "type": "array", - "description": "Optional. Alarms attached to this event", - "items": { - "type": "object", - "properties": { - "type": { - "type": "object", - "description": "Mandatory. The type of alarm", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "ItemOmission", - "ItemCommission", - "ServiceOmission", - "ServiceCommission", - "TransientServiceOmission", - "TransientServiceCommission", - "EarlyServiceOmission", - "LateServiceCommission", - "EarlyServiceStart", - "LateServiceStart", - "BoundedOmissionInterval", - "UndetectableValueError", - "BelowRange", - "AboveRange", - "BoundedValueChange", - "StuckValue", - "OutOfBounds", - "OutOfOrder", - "OutOfCalibration", - "EarlyDelivery", - "LateDelivery", - "HighRate", - "LowRate", - "RateJitter", - "EarlyService", - "DelayedService", - "SymmetricReplicationError", - "AsymmetricApproximateValue", - "AsymmetricExactValue", - "AsymmetricItemOmission", - "AsymmetricServiceOmission", - "AsymmetricTiming", - "ReadWriteRace", - "WriteWriteRace", - "Deadlock", - "Starvation", - "AuthorizationError", - "AuthenticationError" - ] - }, - "severity": { - "type": "integer", - "description": "Mandatory. How critical the alarm is" - }, - "persist": { - "type": "boolean", - "description": "Mandatory. If this is an ongoing alarm" - }, - "timestamp": { - "type": "number", - "description": "Mandatory. When the alarm initially started" - } - } - } - } - } - }, - "name": "MonitoringEvent", - "examples": [ - { - "payload": { - "id": "some_id", - "timestamp": 1.349333576093E12, - "type": "SomeType", - "source": "SomeSource", - "valid": true - } - } - ] - } - } - }, - "zbos/monitoring/event/delete/event": { - "subscribe": { - "summary": "event: Delete an event", - "description": "", - "tags": [ - { - "name": "Monitoring", - "description": "All monitoring related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "The key used by the add request" - }, - "success": { - "type": "boolean", - "description": "Did the operation succeed" - }, - "id": { - "type": "string", - "description": "The ID of the new event" - } - } - }, - "name": "MonitoringResponse" - } - } - }, - "zbos/motion/animation/run": { - "publish": { - "summary": "Fires specific animation ID", - "description": "", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "requestId": { - "type": "string" - }, - "type": { - "type": "string" - }, - "animationId": { - "type": "string" - } - } - }, - "name": "AnimationOptions", - "examples": [ - { - "payload": { - "requestId": "string", - "type": "string", - "animationId": "string" - } - } - ] - } - } - }, - "zbos/motion/animation/stop": { - "publish": { - "summary": "Stops all animations", - "description": "", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/motion/animation/get": { - "publish": { - "summary": "Get available animations", - "description": "see <> for response\n", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/motion/animation/response/{key}": { - "subscribe": { - "summary": "response: Get available animations", - "description": "", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animation": { - "type": "string" - }, - "type": { - "type": "string" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "id": "string", - "name": "string", - "animation": "string", - "type": "string" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/motion/animation/event": { - "subscribe": { - "summary": "Event: animation started/stopped", - "description": "A message (Boolean) is publish on this topic when an animation started or stopped running\n", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "payload": { - "type": "boolean" - }, - "name": "Boolean" - } - } - }, - "zbos/motion/dance/start": { - "publish": { - "summary": "Starts dance", - "description": "", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "requestId": { - "type": "string" - }, - "danceId": { - "type": "string" - } - } - }, - "name": "DanceOptions", - "examples": [ - { - "payload": { - "requestId": "string", - "danceId": "string" - } - } - ] - } - } - }, - "zbos/motion/dance/start/random": { - "publish": { - "summary": "Start random dance", - "description": "Start a random default dance\n", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/motion/dance/stop": { - "publish": { - "summary": "Stops dance", - "description": "", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/motion/dance/get": { - "publish": { - "summary": "Get available dances", - "description": "see <> for response\n", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/motion/dance/response/{key}": { - "subscribe": { - "summary": "response: Get available dances", - "description": "", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animation": { - "type": "string" - }, - "song": { - "type": "string" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "id": "string", - "name": "string", - "animation": "string", - "song": "string" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/motion/control/head": { - "publish": { - "summary": "Move the robot head", - "description": "Publish on this topic to move the head of the robot\n", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "yaw": { - "type": "number", - "description": "Desired yaw for this part if supported, -100 to 100" - }, - "pitch": { - "type": "number", - "description": "Desired pitch for this part if supported, -100 to 100" - }, - "angle": { - "type": "object", - "description": "The direction the part should move in", - "properties": { - "degree": { - "type": "number", - "maximum": 360, - "minimum": 0, - "description": "Angle between 0 and 360" - } - } - }, - "force": { - "type": "number", - "description": "How strongly to perform the movement, 0 to 100" - }, - "distance": { - "type": "number", - "description": "How far the part should move, in meters" - }, - "relative_rotation": { - "type": "number", - "description": "The direction the part should move in relative to its current rotation where negative values rotate to the left and positive values rotate to the right, -360 to 360" - }, - "partName": { - "type": "string" - } - } - }, - "name": "MobilityRequest", - "examples": [ - { - "payload": { - "yaw": 10.0, - "pitch": 0.0, - "angle": { - "degree": 90.0 - }, - "force": 50.0, - "distance": 2.0, - "relative_rotation": 0.0 - } - } - ] - } - } - }, - "zbos/motion/control/movement": { - "publish": { - "summary": "Drive the robot", - "description": "Publish on this topic to drive the robot\n", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "yaw": { - "type": "number", - "description": "Desired yaw for this part if supported, -100 to 100" - }, - "pitch": { - "type": "number", - "description": "Desired pitch for this part if supported, -100 to 100" - }, - "angle": { - "type": "object", - "description": "The direction the part should move in", - "properties": { - "degree": { - "type": "number", - "maximum": 360, - "minimum": 0, - "description": "Angle between 0 and 360" - } - } - }, - "force": { - "type": "number", - "description": "How strongly to perform the movement, 0 to 100" - }, - "distance": { - "type": "number", - "description": "How far the part should move, in meters" - }, - "relative_rotation": { - "type": "number", - "description": "The direction the part should move in relative to its current rotation where negative values rotate to the left and positive values rotate to the right, -360 to 360" - }, - "partName": { - "type": "string" - } - } - }, - "name": "MobilityRequest", - "examples": [ - { - "payload": { - "yaw": 10.0, - "pitch": 0.0, - "angle": { - "degree": 90.0 - }, - "force": 50.0, - "distance": 2.0, - "relative_rotation": 0.0 - } - } - ] - } - } - }, - "zbos/motion/control/part/{name}": { - "publish": { - "summary": "Move a specific part of the robot", - "description": "Publish on this topic to move a specific part of the robot, like an arm or a leg\n", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "yaw": { - "type": "number", - "description": "Desired yaw for this part if supported, -100 to 100" - }, - "pitch": { - "type": "number", - "description": "Desired pitch for this part if supported, -100 to 100" - }, - "angle": { - "type": "object", - "description": "The direction the part should move in", - "properties": { - "degree": { - "type": "number", - "maximum": 360, - "minimum": 0, - "description": "Angle between 0 and 360" - } - } - }, - "force": { - "type": "number", - "description": "How strongly to perform the movement, 0 to 100" - }, - "distance": { - "type": "number", - "description": "How far the part should move, in meters" - }, - "relative_rotation": { - "type": "number", - "description": "The direction the part should move in relative to its current rotation where negative values rotate to the left and positive values rotate to the right, -360 to 360" - }, - "partName": { - "type": "string" - } - } - }, - "name": "MobilityRequest", - "examples": [ - { - "payload": { - "yaw": 10.0, - "pitch": 0.0, - "angle": { - "degree": 90.0 - }, - "force": 50.0, - "distance": 2.0, - "relative_rotation": 0.0 - } - } - ] - } - }, - "parameters": { - "name": { - "description": "Name of the part which you want to control", - "schema": { - "type": "string" - } - } - } - }, - "zbos/motion/event": { - "subscribe": { - "summary": "Event: started/stopped", - "description": "A message (Boolean) is publish on this topic when the robot chassis starts, or stops moving.\n", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "payload": { - "type": "boolean" - }, - "name": "Boolean" - } - } - }, - "zbos/emotion/eyes/run": { - "publish": { - "summary": "Run animation for the eyes", - "description": "", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "requestId": { - "type": "string" - }, - "emotionId": { - "type": "string" - } - } - }, - "name": "EmotionOptions", - "examples": [ - { - "payload": { - "emotionId": "2" - } - } - ] - } - } - }, - "zbos/emotion/eyes/get": { - "publish": { - "summary": "Get list of available emotions for the eyes", - "description": "see <> for response\n", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/emotion/eyes/response/{key}": { - "subscribe": { - "summary": "response: Get list of available emotions for the eyes", - "description": "", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animation": { - "type": "string" - }, - "translationkey": { - "type": "string" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "id": "2", - "name": "Eyeroll" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/followme/enable": { - "publish": { - "summary": "Enable follow me", - "description": "", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/followme/disable": { - "publish": { - "summary": "Disable follow me", - "description": "", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/followme/event": { - "subscribe": { - "summary": "response: follow me status", - "description": "", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/gestures/data": { - "publish": { - "summary": "Gestures data", - "description": "", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/gestures/enable": { - "publish": { - "summary": "Enable gestures", - "description": "", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/gestures/disable": { - "publish": { - "summary": "Disable gestures", - "description": "", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/gym/get/all": { - "publish": { - "summary": "Get all the gym movements that can be used in the composer", - "description": "see <> for response\n", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/gym/get/all/response/{key}": { - "subscribe": { - "summary": "response: Get all gym movements", - "description": "", - "tags": [ - { - "name": "Motion", - "description": "All motion related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "categories": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "translation": { - "type": "string" - }, - "exercises": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "translation": { - "type": "string" - }, - "speedIn_min": { - "type": "number" - }, - "speedIn_max": { - "type": "number" - }, - "speedOut_min": { - "type": "number" - }, - "speedOut_max": { - "type": "number" - }, - "duty_min": { - "type": "number" - }, - "duty_max": { - "type": "number" - }, - "period_min": { - "type": "number" - }, - "period_max": { - "type": "number" - }, - "cycles_min": { - "type": "integer" - }, - "cycles_max": { - "type": "integer" - }, - "profiles": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "code": { - "type": "string" - }, - "translation": { - "type": "string" - } - } - } - } - } - } - } - } - } - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "categories": [ - { - "name": "string", - "translation": "string", - "exercises": [ - { - "name": "string", - "translation": "string", - "profiles": [ - { - "name": "string", - "code": "string", - "translation": "string" - } - ], - "speedIn_min": 15.0, - "speedIn_max": 50.0, - "speedOut_min": 25.0, - "speedOut_max": 60.0, - "duty_min": 5.0, - "duty_max": 10.0, - "period_min": 5.0, - "period_max": 10.0, - "cycles_min": 5, - "cycles_max": 10 - } - ] - } - ] - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/security/motiondetect/start": { - "publish": { - "summary": "Start motion detection", - "description": "", - "tags": [ - { - "name": "Motion detection", - "description": "All motion detection related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "Required key" - }, - "unit": { - "type": "string", - "description": "Can be \"s\", \"h\" or \"m\" (seconds, hours, minutes), used for duration. Defaults to seconds" - }, - "initialDelay": { - "type": "number", - "minimum": 0, - "description": "How long to wait until starting motion detection, in milliseconds. Defaults to 2000, lower values may cause false positives" - }, - "interval": { - "type": "number", - "minimum": 0, - "description": "How often the camera should check for motion, in milliseconds. Defaults to 200" - }, - "duration": { - "type": "number", - "minimum": 0, - "description": "The maximum time the motion detection will be active, after the time is elapsed, the motion detection will stop. Defaults to 10" - }, - "stopOnDetection": { - "type": "boolean", - "description": "If true the motion detection will stop after the first detection. Defaults to true" - }, - "upload": { - "type": "boolean", - "description": "If true, the picture with motion detected will be uploaded to the cloud. A notification is sent to zbos-control (if enabled). Defaults to false" - }, - "stopAfterDuration": { - "type": "boolean", - "description": "If true the motion detection will stop at the end of the duration. Defaults to true" - } - } - }, - "name": "MotionDetectionOptions", - "examples": [ - { - "payload": { - "key": "test", - "unit": "h", - "initialDelay": 2500, - "interval": 250, - "duration": 7, - "stopOnDetection": true, - "upload": true, - "stopAfterDuration": true - } - } - ] - } - } - }, - "zbos/security/motiondetect/stop": { - "publish": { - "summary": "Stop motion detection", - "description": "", - "tags": [ - { - "name": "Motion detection", - "description": "All motion detection related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/security/motiondetect/event/{key}": { - "subscribe": { - "summary": "event: Motion detected", - "description": "", - "tags": [ - { - "name": "Motion detection", - "description": "All motion detection related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "image": { - "type": "string", - "description": "Image of the detected motion, only given if upload is enabled in motion detection options." - } - } - }, - "name": "MotionDetectionEvent", - "examples": [ - { - "payload": { - "image": "SomeBase64Image" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/security/motiondetect/started/{key}": { - "subscribe": { - "summary": "Motion detection started", - "description": "", - "tags": [ - { - "name": "Motion detection", - "description": "All motion detection related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/security/motiondetect/stopped/{key}": { - "subscribe": { - "summary": "Motion detection stopped", - "description": "", - "tags": [ - { - "name": "Motion detection", - "description": "All motion detection related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/security/motiondetect/timeout/event/{key}": { - "subscribe": { - "summary": "event: Motion detection timeout", - "description": "", - "tags": [ - { - "name": "Motion detection", - "description": "All motion detection related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/sensors/touch/get": { - "publish": { - "summary": "Get all touch sensors", - "description": "see <> for response\n", - "tags": [ - { - "name": "Sensors", - "description": "All sensors related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/sensors/touch/response/{key}": { - "subscribe": { - "summary": "response: Get all touch sensors", - "description": "", - "tags": [ - { - "name": "Sensors", - "description": "All sensors related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "TOUCHSENSOR", - "TOUCHSENSOR_GROUP" - ] - }, - "translationkey": { - "type": "string" - } - } - }, - "name": "AvailableSensor", - "examples": [ - { - "payload": { - "id": "string", - "type": "TOUCHSENSOR", - "translationkey": "string" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/sensors/event": { - "subscribe": { - "summary": "event: Sensor", - "description": "", - "tags": [ - { - "name": "Sensors", - "description": "All sensors related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "string" - }, - "source": { - "type": "string" - }, - "state": { - "type": "string" - } - } - }, - "name": "SensorEvent", - "examples": [ - { - "payload": { - "id": "string", - "type": "string", - "state": "string" - } - } - ] - } - } - }, - "zbos/settings/get": { - "publish": { - "summary": "Get settings", - "description": "Get all settings for the provided category\n", - "tags": [ - { - "name": "Settings", - "description": "All settings related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "category": { - "type": "string" - }, - "setting_keys": { - "type": "array", - "description": "Optional, will return all settings if not set.", - "items": { - "type": "string" - } - }, - "subcategories": { - "type": "object", - "description": "Optional, will return all subcategories if not set." - } - } - }, - "name": "GetSettingsRequest", - "examples": [ - { - "payload": { - "key": "abc", - "category": "category_1" - } - }, - { - "payload": { - "key": "abc", - "category": "category_1", - "setting_keys": [ - "setting_key_1", - "setting_key_2" - ] - } - } - ] - } - } - }, - "zbos/settings/get/response/{key}": { - "publish": { - "summary": "Response: Get settings", - "description": "", - "tags": [ - { - "name": "Settings", - "description": "All settings related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "label_key": { - "type": "string", - "description": "Translation key should use the dot notation: {category}.{key}" - }, - "description_key": { - "type": "string", - "description": "Optional description key\nTranslation key should use the dot notation: {category}.{key}" - }, - "settings": { - "type": "object" - }, - "subcategories": { - "type": "object", - "description": "Optional subcategories" - }, - "orphaned": { - "type": "boolean", - "description": "The orphaned state indicates that this category was not added again since boot." - } - } - }, - "name": "SettingsCategory", - "examples": [ - { - "payload": { - "category": { - "settings": { - "setting_key_1": { - "value": "Value 1", - "type": "string", - "required": true, - "label_key": "translations_category.setting_1_label", - "description_key": "translations_category.setting_1_description" - }, - "setting_key_2": { - "value": "100", - "type": "integer", - "range": { - "min": 0, - "max": 150 - }, - "required": false, - "label_key": "translations_category.setting_2_label", - "description_key": "translations_category.setting_2_description" - }, - "setting_key_3": { - "value": "100.50", - "type": "number", - "range": { - "min": 1, - "max": 150 - }, - "required": true, - "label_key": "translations_category.setting_3_label", - "description_key": "translations_category.setting_3_description" - }, - "setting_key_4": { - "value": "true", - "type": "boolean", - "label_key": "translations_category.setting_4_label", - "description_key": "translations_category.setting_4_description" - }, - "setting_key_5": { - "value": "option_1", - "type": "select_single", - "options": [ - { - "key": "option_1", - "value": "Option 1", - "label_key": "translations_category.setting_5_option_1" - }, - { - "key": "option_2", - "value": "Option 2", - "label_key": "translations_category.setting_5_option_2" - } - ], - "label_key": "translations_category.translations_category.setting_5_label", - "description_key": "translations_category.setting_5_description" - }, - "setting_key_6": { - "values": [ - "option_1", - "option_2" - ], - "type": "select_multi", - "options": [ - { - "key": "option_1", - "value": "Option 1", - "label_key": "translations_category.setting_6_option_1" - }, - { - "key": "option_2", - "value": "Option 2", - "label_key": "translations_category.setting_6_option_2" - }, - { - "key": "option_3", - "value": "Option 3", - "label_key": "translations_category.setting_6_option_3" - } - ], - "label_key": "translations_category.setting_6_label", - "description_key": "translations_category.setting_6_description" - } - }, - "label_key": "translations_category.category_1_label" - } - } - }, - { - "payload": { - "category": { - "settings": { - "setting_key_1": { - "value": "Value 1", - "type": "string", - "required": true, - "label_key": "translations_category.setting_1_label", - "description_key": "translations_category.setting_1_description" - }, - "setting_key_2": { - "value": "100", - "type": "integer", - "range": { - "min": 0, - "max": 150 - }, - "required": false, - "label_key": "translations_category.setting_2_label", - "description_key": "translations_category.setting_2_description" - }, - "setting_key_3": { - "value": "100.50", - "type": "number", - "range": { - "min": 1, - "max": 150 - }, - "required": true, - "label_key": "translations_category.setting_3_label", - "description_key": "translations_category.setting_3_description" - }, - "setting_key_4": { - "value": "true", - "type": "boolean", - "label_key": "translations_category.setting_4_label", - "description_key": "translations_category.setting_4_description" - }, - "setting_key_5": { - "value": "option_1", - "type": "select_single", - "options": [ - { - "key": "option_1", - "value": "Option 1", - "label_key": "translations_category.setting_5_option_1" - }, - { - "key": "option_2", - "value": "Option 2", - "label_key": "translations_category.setting_5_option_2" - } - ], - "label_key": "translations_category.translations_category.setting_5_label", - "description_key": "translations_category.setting_5_description" - }, - "setting_key_6": { - "values": [ - "option_1", - "option_2" - ], - "type": "select_multi", - "options": [ - { - "key": "option_1", - "value": "Option 1", - "label_key": "translations_category.setting_6_option_1" - }, - { - "key": "option_2", - "value": "Option 2", - "label_key": "translations_category.setting_6_option_2" - }, - { - "key": "option_3", - "value": "Option 3", - "label_key": "translations_category.setting_6_option_3" - } - ], - "label_key": "translations_category.setting_6_label", - "description_key": "translations_category.setting_6_description" - } - }, - "subcategories": { - "category_2a": { - "settings": {}, - "label_key": "translations_category.category_2a_label" - } - }, - "label_key": "translations_category.category_2_label" - } - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/settings/request": { - "publish": { - "summary": "Request settings registrations", - "description": "Request all setting providers to register their settings using the topics below.\n", - "tags": [ - { - "name": "Settings", - "description": "All settings related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/settings/add": { - "publish": { - "summary": "Add settings", - "description": "Add settings with their default values.\nThese default values will be used as long as they are not updated via <>\n", - "tags": [ - { - "name": "Settings", - "description": "All settings related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "category_name": { - "type": "string" - }, - "file": { - "type": "string", - "description": "Optional. Use either category or file" - }, - "category": { - "type": "object", - "description": "Optional. Use either category or file", - "properties": { - "label_key": { - "type": "string", - "description": "Translation key should use the dot notation: {category}.{key}" - }, - "description_key": { - "type": "string", - "description": "Optional description key\nTranslation key should use the dot notation: {category}.{key}" - }, - "settings": { - "type": "object" - }, - "subcategories": { - "type": "object", - "description": "Optional subcategories" - } - } - } - } - }, - "name": "AddSettingsRequest", - "examples": [ - { - "payload": { - "key": "abc", - "category": { - "settings": { - "setting_key_1": { - "type": "string", - "required": true, - "default_value": "Value 1", - "label_key": "translations_category.setting_1_label", - "description_key": "translations_category.setting_1_description" - }, - "setting_key_2": { - "type": "integer", - "range": { - "min": 0, - "max": 150 - }, - "required": false, - "default_value": "100", - "label_key": "translations_category.setting_2_label", - "description_key": "translations_category.setting_2_description" - }, - "setting_key_3": { - "type": "number", - "range": { - "min": 1, - "max": 150 - }, - "required": true, - "default_value": "100.50", - "label_key": "translations_category.setting_3_label", - "description_key": "translations_category.setting_3_description" - }, - "setting_key_4": { - "type": "boolean", - "default_value": "true", - "label_key": "translations_category.setting_4_label", - "description_key": "translations_category.setting_4_description" - }, - "setting_key_5": { - "type": "select_single", - "options": [ - { - "key": "option_1", - "value": "Option 1", - "label_key": "translations_category.setting_5_option_1" - }, - { - "key": "option_2", - "value": "Option 2", - "label_key": "translations_category.setting_5_option_2" - } - ], - "default_value": "option_1", - "label_key": "translations_category.translations_category.setting_5_label", - "description_key": "translations_category.setting_5_description" - }, - "setting_key_6": { - "type": "select_multi", - "options": [ - { - "key": "option_1", - "value": "Option 1", - "label_key": "translations_category.setting_6_option_1" - }, - { - "key": "option_2", - "value": "Option 2", - "label_key": "translations_category.setting_6_option_2" - }, - { - "key": "option_3", - "value": "Option 3", - "label_key": "translations_category.setting_6_option_3" - } - ], - "label_key": "translations_category.setting_6_label", - "description_key": "translations_category.setting_6_description" - } - }, - "label_key": "translations_category.category_1_label" - }, - "category_name": "category_1" - } - }, - { - "payload": { - "key": "abc", - "category": { - "settings": { - "setting_key_1": { - "type": "string", - "required": true, - "default_value": "Value 1", - "label_key": "translations_category.setting_1_label", - "description_key": "translations_category.setting_1_description" - }, - "setting_key_2": { - "type": "integer", - "range": { - "min": 0, - "max": 150 - }, - "required": false, - "default_value": "100", - "label_key": "translations_category.setting_2_label", - "description_key": "translations_category.setting_2_description" - }, - "setting_key_3": { - "type": "number", - "range": { - "min": 1, - "max": 150 - }, - "required": true, - "default_value": "100.50", - "label_key": "translations_category.setting_3_label", - "description_key": "translations_category.setting_3_description" - }, - "setting_key_4": { - "type": "boolean", - "default_value": "true", - "label_key": "translations_category.setting_4_label", - "description_key": "translations_category.setting_4_description" - }, - "setting_key_5": { - "type": "select_single", - "options": [ - { - "key": "option_1", - "value": "Option 1", - "label_key": "translations_category.setting_5_option_1" - }, - { - "key": "option_2", - "value": "Option 2", - "label_key": "translations_category.setting_5_option_2" - } - ], - "default_value": "option_1", - "label_key": "translations_category.translations_category.setting_5_label", - "description_key": "translations_category.setting_5_description" - }, - "setting_key_6": { - "type": "select_multi", - "options": [ - { - "key": "option_1", - "value": "Option 1", - "label_key": "translations_category.setting_6_option_1" - }, - { - "key": "option_2", - "value": "Option 2", - "label_key": "translations_category.setting_6_option_2" - }, - { - "key": "option_3", - "value": "Option 3", - "label_key": "translations_category.setting_6_option_3" - } - ], - "label_key": "translations_category.setting_6_label", - "description_key": "translations_category.setting_6_description" - } - }, - "subcategories": { - "category_2a": { - "settings": {}, - "label_key": "translations_category.category_2a_label" - } - }, - "label_key": "translations_category.category_2_label" - }, - "category_name": "category_2" - } - }, - { - "payload": { - "key": "abc", - "file": "path/to/file.json", - "category_name": "category_3" - } - } - ] - } - } - }, - "zbos/settings/add/response/{key}": { - "publish": { - "summary": "Response: Add settings", - "description": "", - "tags": [ - { - "name": "Settings", - "description": "All settings related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/settings/update": { - "publish": { - "summary": "Update settings", - "description": "Update settings overriding the default values.\n", - "tags": [ - { - "name": "Settings", - "description": "All settings related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "category_name": { - "type": "string" - }, - "category": { - "type": "object", - "properties": { - "settings": { - "type": "object" - }, - "subcategories": { - "type": "object", - "description": "Optional subcategories" - } - } - } - } - }, - "name": "UpdateSettingsRequest", - "examples": [ - { - "payload": { - "key": "abc", - "category": { - "settings": { - "setting_key_1": { - "value": "Value 1B" - }, - "setting_key_2": { - "value": "50" - }, - "setting_key_3": { - "value": "110.20" - }, - "setting_key_4": { - "value": "false" - }, - "setting_key_5": { - "value": "option_2" - }, - "setting_key_6": { - "values": [ - "option_2", - "option_3" - ] - } - }, - "subcategories": { - "category_1a": { - "settings": { - "setting_key_1a": { - "value": "Value 1A" - } - } - } - } - }, - "category_name": "category_1" - } - } - ] - } - } - }, - "zbos/settings/update/response/{key}": { - "publish": { - "summary": "Response: Update settings", - "description": "", - "tags": [ - { - "name": "Settings", - "description": "All settings related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/settings/changed/event/{category}": { - "publish": { - "summary": "Event: Settings changed", - "description": "", - "tags": [ - { - "name": "Settings", - "description": "All settings related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "category_name": { - "type": "string" - }, - "category": { - "type": "object", - "properties": { - "settings": { - "type": "object" - }, - "subcategories": { - "type": "object", - "description": "Optional subcategories" - } - } - } - } - }, - "name": "SettingsChangedEvent", - "examples": [ - { - "payload": { - "category": { - "settings": { - "setting_key_1": { - "type": "string", - "value": "Value 1" - }, - "setting_key_2": { - "type": "integer", - "value": "100" - }, - "setting_key_3": { - "type": "number", - "value": "100.50" - }, - "setting_key_4": { - "type": "boolean", - "value": "true" - }, - "setting_key_5": { - "type": "select_single", - "value": "option_1", - "options": [ - { - "key": "option_1", - "value": "Option 1", - "label_key": "translations_category.setting_5_option_1" - }, - { - "key": "option_2", - "value": "Option 2", - "label_key": "translations_category.setting_5_option_2" - } - ] - }, - "setting_key_6": { - "type": "select_multi", - "values": [ - "option_1", - "option_2" - ], - "options": [ - { - "key": "option_1", - "value": "Option 1", - "label_key": "translations_category.setting_6_option_1" - }, - { - "key": "option_2", - "value": "Option 2", - "label_key": "translations_category.setting_6_option_2" - }, - { - "key": "option_3", - "value": "Option 3", - "label_key": "translations_category.setting_6_option_3" - } - ] - } - } - }, - "category_name": "category_1" - } - } - ] - } - }, - "parameters": { - "category": { - "description": "ID of the settings category that was changed", - "schema": { - "type": "string" - } - } - } - }, - "zbos/settings/reset": { - "publish": { - "summary": "Reset settings", - "description": "Reset settings to their default values\n", - "tags": [ - { - "name": "Settings", - "description": "All settings related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "category": { - "type": "string" - } - } - }, - "name": "ResetSettingsRequest", - "examples": [ - { - "payload": { - "key": "abc", - "category": "category_1" - } - } - ] - } - } - }, - "zbos/settings/reset/response/{key}": { - "publish": { - "summary": "Response: Reset settings", - "description": "", - "tags": [ - { - "name": "Settings", - "description": "All settings related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/sip/config/event": { - "subscribe": { - "summary": "SIP config changed", - "description": "", - "tags": [ - { - "name": "SIP", - "description": "All sip related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/sip/errors/get": { - "publish": { - "summary": "Get SIP errors", - "description": "see <> for response\n", - "tags": [ - { - "name": "SIP", - "description": "All sip related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/sip/errors/response/{key}": { - "subscribe": { - "summary": "response: SIP errors", - "description": "", - "tags": [ - { - "name": "SIP", - "description": "All sip related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "error": { - "type": "string" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "error": "string" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/sip/call/end": { - "publish": { - "summary": "End the current SIP call", - "description": "", - "tags": [ - { - "name": "SIP", - "description": "All sip related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/sip/call/end/event": { - "subscribe": { - "summary": "The current SIP call has ended", - "description": "", - "tags": [ - { - "name": "SIP", - "description": "All sip related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - } - } - }, - "name": "CallEndInfo", - "examples": [ - { - "payload": { - "success": true - } - } - ] - } - } - }, - "zbos/slam/start": { - "publish": { - "summary": "Start slam service", - "description": "see <> for response\n", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/start/response/{key}": { - "subscribe": { - "summary": "response: Start slam", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/slam/stop": { - "publish": { - "summary": "Stop slam service", - "description": "see <> for response\n", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/stop/response/{key}": { - "subscribe": { - "summary": "response: Stop slam", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/slam/error": { - "subscribe": { - "summary": "ERROR in Slam", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "errorCode": { - "type": "string" - }, - "message": { - "type": "string" - } - } - }, - "name": "SlamError", - "examples": [ - { - "payload": { - "errorCode": "String", - "message": "string" - } - } - ] - } - } - }, - "zbos/slam/collision/start/event": { - "subscribe": { - "summary": "One or more collisions have started", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "TOUCHSENSOR", - "TOUCHSENSOR_GROUP" - ] - }, - "translationkey": { - "type": "string" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "id": "string", - "type": "TOUCHSENSOR", - "translationkey": "string" - } - } - ] - } - } - }, - "zbos/slam/collision/end/event": { - "subscribe": { - "summary": "One or more collisions have stopped", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "TOUCHSENSOR", - "TOUCHSENSOR_GROUP" - ] - }, - "translationkey": { - "type": "string" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "id": "string", - "type": "TOUCHSENSOR", - "translationkey": "string" - } - } - ] - } - } - }, - "zbos/slam/status/get": { - "publish": { - "summary": "Get SLAM status", - "description": "see <> for response\n", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/slam/status/response/{key}": { - "subscribe": { - "summary": "response: Get SLAM status", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "mappingConfigurable": { - "type": "boolean" - }, - "mappingEnabled": { - "type": "boolean" - } - } - }, - "name": "SlamStatus", - "examples": [ - { - "payload": { - "mappingConfigurable": true, - "mappingEnabled": true - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/slam/status/event": { - "subscribe": { - "summary": "event: Status SLAM", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "mappingConfigurable": { - "type": "boolean" - }, - "mappingEnabled": { - "type": "boolean" - } - } - }, - "name": "SlamStatus", - "examples": [ - { - "payload": { - "mappingConfigurable": true, - "mappingEnabled": true - } - } - ] - } - } - }, - "zbos/slam/mapview/clear": { - "publish": { - "summary": "Clear current map view", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/mapview/clear/event": { - "subscribe": { - "summary": "event: Map view cleared", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/mapview/current": { - "subscribe": { - "summary": "event: Map view changed", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/slam/mapview/current/get": { - "publish": { - "summary": "Get current map view", - "description": "see <> for response\n", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/slam/mapview/current/response/{key}": { - "subscribe": { - "summary": "response: Get current map view", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "mapName": { - "type": "string" - }, - "data": { - "type": "string" - } - } - }, - "name": "RemoteMapResponseObject", - "examples": [ - { - "payload": { - "mapName": "string", - "data": "string" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/slam/mapping/enable": { - "publish": { - "summary": "Enable SLAM mapping", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/mapping/disable": { - "publish": { - "summary": "Disable SLAM mapping", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/mapping/extend/start": { - "publish": { - "summary": "Start extending SLAM mapping", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/mapping/extend/cancel": { - "publish": { - "summary": "Stop extending SLAM mapping", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/mapping/extend/get": { - "publish": { - "summary": "Get extending SLAM mapping", - "description": "see <> for response\n", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/slam/mapping/extend/response/{key}": { - "subscribe": { - "summary": "response: Get extending SLAM mapping", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/slam/mapping/extend/started": { - "subscribe": { - "summary": "event: SLAM mapping extending started", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/mapping/extend/stopped": { - "subscribe": { - "summary": "event: SLAM mapping extending stopped", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/mapping/extend/failed": { - "subscribe": { - "summary": "event: SLAM mapping extending failed", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/mapping/extend/canceled": { - "subscribe": { - "summary": "event: SLAM mapping extending canceled", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/maps/list/get": { - "publish": { - "summary": "Get maps", - "description": "see <> for response\n", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/slam/maps/list/response/{key}": { - "subscribe": { - "summary": "event: Get all maps", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "string" - } - }, - "name": "Array" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/slam/maps/get/current": { - "publish": { - "summary": "Get current maps", - "description": "see <> for response\n", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/slam/maps/get/current/response/{key}": { - "subscribe": { - "summary": "event: Get current maps", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "mapName": { - "type": "string" - }, - "poiList": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "uuid": { - "type": "string" - }, - "type": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "DEFAULT", - "CHARGING_STATION", - "INTERACTIVE" - ] - }, - "coordinate": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - }, - "z": { - "type": "number" - }, - "rotation": { - "type": "number" - }, - "rawX": { - "type": "number" - }, - "rawY": { - "type": "number" - }, - "rawZ": { - "type": "number" - }, - "orientation": { - "type": "object", - "properties": { - "yaw": { - "type": "number" - }, - "pitch": { - "type": "number" - }, - "roll": { - "type": "number" - } - } - } - } - }, - "inAction": { - "type": "object", - "properties": { - "actionType": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "MQTT", - "API" - ] - }, - "radius": { - "type": "number" - }, - "target": { - "type": "string", - "description": "Mqtt topic or API url" - }, - "data": { - "type": "string", - "description": "Mqtt payload or post body" - } - } - }, - "outAction": { - "type": "object", - "properties": { - "actionType": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "MQTT", - "API" - ] - }, - "radius": { - "type": "number" - }, - "target": { - "type": "string", - "description": "Mqtt topic or API url" - }, - "data": { - "type": "string", - "description": "Mqtt payload or post body" - } - } - } - } - } - } - } - }, - "name": "SlamMap", - "examples": [ - { - "payload": { - "mapName": "string", - "poiList": [ - { - "name": "string", - "uuid": "string", - "type": "DEFAULT", - "coordinate": { - "x": 15.0, - "y": 15.0, - "rotation": 90.0, - "rawX": 14.8, - "rawY": 15.4 - }, - "inAction": { - "actionType": "MQTT", - "radius": 270.0, - "target": "string", - "data": "string" - }, - "outAction": { - "actionType": "MQTT", - "radius": 270.0, - "target": "string", - "data": "string" - } - } - ] - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/slam/maps/load": { - "publish": { - "summary": "Load map", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String", - "examples": [ - { - "payload": "string" - } - ] - } - } - }, - "zbos/slam/maps/load/event": { - "subscribe": { - "summary": "event: Load map", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/maps/save": { - "publish": { - "summary": "Save map", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String", - "examples": [ - { - "payload": "string" - } - ] - } - } - }, - "zbos/slam/maps/save/event": { - "subscribe": { - "summary": "event: Save map", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/maps/delete": { - "publish": { - "summary": "Delete map", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String", - "examples": [ - { - "payload": "string" - } - ] - } - } - }, - "zbos/slam/maps/delete/all": { - "publish": { - "summary": "Deletes all maps", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/maps/delete/event": { - "subscribe": { - "summary": "event: Delete map", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/location/current": { - "subscribe": { - "summary": "event: Location changed", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - }, - "z": { - "type": "number" - }, - "rotation": { - "type": "number" - }, - "rawX": { - "type": "number" - }, - "rawY": { - "type": "number" - }, - "rawZ": { - "type": "number" - }, - "orientation": { - "type": "object", - "properties": { - "yaw": { - "type": "number" - }, - "pitch": { - "type": "number" - }, - "roll": { - "type": "number" - } - } - } - } - }, - "name": "ZbosLocation", - "examples": [ - { - "payload": { - "x": 15.0, - "y": 15.0, - "rotation": 90.0, - "rawX": 14.8, - "rawY": 15.4 - } - }, - { - "payload": { - "rawX": 0.5, - "rawY": -0.4, - "rawZ": 0.8, - "orientation": { - "yaw": 0.0, - "pitch": 0.0, - "roll": 3.14 - } - } - } - ] - } - } - }, - "zbos/slam/location/current/get": { - "publish": { - "summary": "Get robot location", - "description": "see <> for response\n", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/slam/location/current/response/{key}": { - "subscribe": { - "summary": "response: Get robot location", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - }, - "z": { - "type": "number" - }, - "rotation": { - "type": "number" - }, - "rawX": { - "type": "number" - }, - "rawY": { - "type": "number" - }, - "rawZ": { - "type": "number" - }, - "orientation": { - "type": "object", - "properties": { - "yaw": { - "type": "number" - }, - "pitch": { - "type": "number" - }, - "roll": { - "type": "number" - } - } - } - } - }, - "name": "ZbosLocation", - "examples": [ - { - "payload": { - "x": 15.0, - "y": 15.0, - "rotation": 90.0, - "rawX": 14.8, - "rawY": 15.4 - } - }, - { - "payload": { - "rawX": 0.5, - "rawY": -0.4, - "rawZ": 0.8, - "orientation": { - "yaw": 0.0, - "pitch": 0.0, - "roll": 3.14 - } - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/slam/location/current/set": { - "publish": { - "summary": "Set robot location", - "description": "see <> for response\n", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "Required random key" - }, - "coordinate": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - }, - "z": { - "type": "number" - }, - "rotation": { - "type": "number" - }, - "rawX": { - "type": "number" - }, - "rawY": { - "type": "number" - }, - "rawZ": { - "type": "number" - }, - "orientation": { - "type": "object", - "properties": { - "yaw": { - "type": "number" - }, - "pitch": { - "type": "number" - }, - "roll": { - "type": "number" - } - } - } - } - } - } - }, - "name": "ZbosSetLocationRequest", - "examples": [ - { - "payload": { - "key": "string", - "coordinate": { - "x": 15.0, - "y": 15.0, - "rotation": 90.0, - "rawX": 14.8, - "rawY": 15.4 - } - } - } - ] - } - } - }, - "zbos/slam/location/current/set/response/{key}": { - "subscribe": { - "summary": "response: Set robot location", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/slam/location/recover": { - "publish": { - "summary": "Recover robot location", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/location/recover/started": { - "subscribe": { - "summary": "Location revocery started", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/location/recover/stopped": { - "subscribe": { - "summary": "Location revocery stopped", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/location/recover/failed": { - "subscribe": { - "summary": "Location revocery failed", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/location/reset/chargingstation": { - "publish": { - "summary": "Reset robot to charging station", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/location/reset/chargingstation/started": { - "subscribe": { - "summary": "Reset robot to charging station started", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/location/reset/chargingstation/stopped": { - "subscribe": { - "summary": "Reset robot to charging station stopped", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/location/home": { - "subscribe": { - "summary": "Home location changed", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - }, - "z": { - "type": "number" - }, - "rotation": { - "type": "number" - }, - "rawX": { - "type": "number" - }, - "rawY": { - "type": "number" - }, - "rawZ": { - "type": "number" - }, - "orientation": { - "type": "object", - "properties": { - "yaw": { - "type": "number" - }, - "pitch": { - "type": "number" - }, - "roll": { - "type": "number" - } - } - } - } - }, - "name": "ZbosLocation", - "examples": [ - { - "payload": { - "x": 15.0, - "y": 15.0, - "rotation": 90.0, - "rawX": 14.8, - "rawY": 15.4 - } - } - ] - } - } - }, - "zbos/slam/location/home/get": { - "publish": { - "summary": "Get home location", - "description": "see <> for response\n", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/slam/location/home/response/{key}": { - "subscribe": { - "summary": "response: Get home location", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - }, - "z": { - "type": "number" - }, - "rotation": { - "type": "number" - }, - "rawX": { - "type": "number" - }, - "rawY": { - "type": "number" - }, - "rawZ": { - "type": "number" - }, - "orientation": { - "type": "object", - "properties": { - "yaw": { - "type": "number" - }, - "pitch": { - "type": "number" - }, - "roll": { - "type": "number" - } - } - } - } - }, - "name": "ZbosLocation", - "examples": [ - { - "payload": { - "x": 15.0, - "y": 15.0, - "rotation": 90.0, - "rawX": 14.8, - "rawY": 15.4 - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/slam/walls/clear": { - "publish": { - "summary": "clear all walls", - "description": "Save is optional, if false, then the map will not be saved. By default the map will be saved.\n", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "save": { - "type": "boolean" - } - } - }, - "name": "WallClearRequest", - "examples": [ - { - "payload": { - "save": true - } - } - ] - } - } - }, - "zbos/slam/walls/clear/event": { - "subscribe": { - "summary": "response: Clear all walls", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/walls/current": { - "subscribe": { - "summary": "Walls changed", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/slam/walls/current/get": { - "publish": { - "summary": "Get current walls", - "description": "see <> for response\n", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/slam/walls/current/response/{key}": { - "subscribe": { - "summary": "response: Get current walls", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "startPoint": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - } - } - }, - "endPoint": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - } - } - }, - "segmentId": { - "type": "string" - }, - "save": { - "type": "boolean" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "startPoint": { - "x": 1.0, - "y": 1.0 - }, - "endPoint": { - "x": 5.0, - "y": 5.0 - }, - "segmentId": "string", - "save": true - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/slam/walls/add": { - "publish": { - "summary": "Add wall", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "startPoint": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - } - } - }, - "endPoint": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - } - } - }, - "segmentId": { - "type": "string" - }, - "save": { - "type": "boolean" - } - } - }, - "name": "Wall", - "examples": [ - { - "payload": { - "startPoint": { - "x": 1.0, - "y": 1.0 - }, - "endPoint": { - "x": 5.0, - "y": 5.0 - }, - "segmentId": "string", - "save": true - } - } - ] - } - } - }, - "zbos/slam/walls/add/event": { - "subscribe": { - "summary": "event: Add wall", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "startPoint": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - } - } - }, - "endPoint": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - } - } - }, - "segmentId": { - "type": "string" - }, - "save": { - "type": "boolean" - } - } - }, - "name": "Wall", - "examples": [ - { - "payload": { - "startPoint": { - "x": 1.0, - "y": 1.0 - }, - "endPoint": { - "x": 5.0, - "y": 5.0 - }, - "segmentId": "string", - "save": true - } - } - ] - } - } - }, - "zbos/slam/walls/remove": { - "publish": { - "summary": "Remove wall", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "segmentId": { - "type": "string" - }, - "save": { - "type": "boolean" - } - } - }, - "name": "WallRemoveRequest", - "examples": [ - { - "payload": { - "segmentId": "id5", - "save": true - } - } - ] - } - } - }, - "zbos/slam/walls/remove/multiple": { - "publish": { - "summary": "Remove walls", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "segmentId": { - "type": "string" - }, - "save": { - "type": "boolean" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": [ - { - "segmentId": "id5", - "save": true - }, - { - "segmentId": "id7", - "save": true - } - ] - } - ] - } - } - }, - "zbos/slam/walls/remove/event": { - "subscribe": { - "summary": "event: Remove wall", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/walls/update": { - "publish": { - "summary": "Update wall", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "startPoint": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - } - } - }, - "endPoint": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - } - } - }, - "segmentId": { - "type": "string" - }, - "save": { - "type": "boolean" - } - } - }, - "name": "Wall", - "examples": [ - { - "payload": { - "startPoint": { - "x": 1.0, - "y": 1.0 - }, - "endPoint": { - "x": 5.0, - "y": 5.0 - }, - "segmentId": "string", - "save": true - } - } - ] - } - } - }, - "zbos/slam/walls/update/multiple": { - "publish": { - "summary": "Update walls", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "startPoint": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - } - } - }, - "endPoint": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - } - } - }, - "segmentId": { - "type": "string" - }, - "save": { - "type": "boolean" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": [ - { - "startPoint": { - "x": 1.0, - "y": 1.0 - }, - "endPoint": { - "x": 5.0, - "y": 5.0 - }, - "segmentId": "string", - "save": true - }, - { - "startPoint": { - "x": 10.0, - "y": 5.0 - }, - "endPoint": { - "x": 20.0, - "y": 10.0 - }, - "segmentId": "another_id", - "save": true - } - ] - } - ] - } - } - }, - "zbos/slam/walls/update/event": { - "subscribe": { - "summary": "event: Update wall", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "startPoint": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - } - } - }, - "endPoint": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - } - } - }, - "segmentId": { - "type": "string" - }, - "save": { - "type": "boolean" - } - } - }, - "name": "Wall", - "examples": [ - { - "payload": { - "startPoint": { - "x": 1.0, - "y": 1.0 - }, - "endPoint": { - "x": 5.0, - "y": 5.0 - }, - "segmentId": "string", - "save": true - } - } - ] - } - } - }, - "zbos/slam/interaction/moveto": { - "publish": { - "summary": "Move robot to coordinates", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "mapName": { - "type": "string" - }, - "coordinate": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - }, - "z": { - "type": "number" - } - } - }, - "orientation": { - "type": "object", - "properties": { - "yaw": { - "type": "number" - }, - "pitch": { - "type": "number" - }, - "roll": { - "type": "number" - } - } - }, - "speed": { - "type": "integer" - } - } - }, - "name": "ZbosMoveToPointRequest", - "examples": [ - { - "payload": { - "mapName": "First floor", - "coordinate": { - "x": 39.0, - "y": 40.0, - "z": 0.0 - } - } - } - ] - } - } - }, - "zbos/slam/interaction/moveto/started": { - "subscribe": { - "summary": "MoveTo started", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/slam/interaction/moveto/stopped": { - "subscribe": { - "summary": "MoveTo stopped", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/slam/interaction/moveto/failed": { - "subscribe": { - "summary": "MoveTo failed", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/slam/interaction/moveto/aborted": { - "subscribe": { - "summary": "MoveTo aborted", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/slam/interaction/moveto/blocked": { - "subscribe": { - "summary": "MoveTo Blocked", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/slam/interaction/moveto/retrying": { - "subscribe": { - "summary": "MoveTo retrying", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/slam/interaction/stop": { - "publish": { - "summary": "Stop moving", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/interaction/stop/event": { - "subscribe": { - "summary": "event: Movement stopped", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/laserscan/enable": { - "publish": { - "summary": "Enable laserscan", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/laserscan/disable": { - "publish": { - "summary": "disable laserscan", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/laserscan/current": { - "subscribe": { - "summary": "event: Laserscan changed", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "angle": { - "type": "number" - }, - "distance": { - "type": "number" - } - } - }, - "name": "ZbosLaserScan", - "examples": [ - { - "payload": { - "angle": 0.0, - "distance": 15.0 - } - } - ] - } - } - }, - "zbos/slam/poi/current": { - "subscribe": { - "summary": "event: POI changed", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "mapName": { - "type": "string" - }, - "poiList": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "uuid": { - "type": "string" - }, - "type": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "DEFAULT", - "CHARGING_STATION", - "INTERACTIVE" - ] - }, - "coordinate": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - }, - "z": { - "type": "number" - }, - "rotation": { - "type": "number" - }, - "rawX": { - "type": "number" - }, - "rawY": { - "type": "number" - }, - "rawZ": { - "type": "number" - }, - "orientation": { - "type": "object", - "properties": { - "yaw": { - "type": "number" - }, - "pitch": { - "type": "number" - }, - "roll": { - "type": "number" - } - } - } - } - }, - "inAction": { - "type": "object", - "properties": { - "actionType": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "MQTT", - "API" - ] - }, - "radius": { - "type": "number" - }, - "target": { - "type": "string", - "description": "Mqtt topic or API url" - }, - "data": { - "type": "string", - "description": "Mqtt payload or post body" - } - } - }, - "outAction": { - "type": "object", - "properties": { - "actionType": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "MQTT", - "API" - ] - }, - "radius": { - "type": "number" - }, - "target": { - "type": "string", - "description": "Mqtt topic or API url" - }, - "data": { - "type": "string", - "description": "Mqtt payload or post body" - } - } - } - } - } - } - } - }, - "name": "SlamMap", - "examples": [ - { - "payload": { - "mapName": "First floor", - "poiList": [ - { - "name": "string", - "uuid": "string", - "type": "DEFAULT", - "coordinate": { - "x": 15.0, - "y": 15.0, - "rotation": 90.0, - "rawX": 14.8, - "rawY": 15.4 - }, - "inAction": { - "actionType": "MQTT", - "radius": 270.0, - "target": "string", - "data": "string" - }, - "outAction": { - "actionType": "MQTT", - "radius": 270.0, - "target": "string", - "data": "string" - } - } - ] - } - } - ] - } - } - }, - "zbos/slam/poi/clear": { - "publish": { - "summary": "Clear all pois", - "description": "Save is optional, if false, then the map will not be saved. By default the map will be saved.\n", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "mapName": { - "type": "string" - }, - "save": { - "type": "boolean" - } - } - }, - "name": "ZbosClearPoiRequest", - "examples": [ - { - "payload": { - "mapName": "First floor", - "save": true - } - } - ] - } - } - }, - "zbos/slam/poi/clear/event": { - "subscribe": { - "summary": "event: Clear all pois", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/poi/list/all/get": { - "publish": { - "summary": "Get list of pois for all maps", - "description": "see <> for response\n", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/slam/poi/list/all/response/{key}": { - "subscribe": { - "summary": "event: Get list of pois for all maps", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "mapName": { - "type": "string" - }, - "poiList": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "uuid": { - "type": "string" - }, - "type": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "DEFAULT", - "CHARGING_STATION", - "INTERACTIVE" - ] - }, - "coordinate": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - }, - "z": { - "type": "number" - }, - "rotation": { - "type": "number" - }, - "rawX": { - "type": "number" - }, - "rawY": { - "type": "number" - }, - "rawZ": { - "type": "number" - }, - "orientation": { - "type": "object", - "properties": { - "yaw": { - "type": "number" - }, - "pitch": { - "type": "number" - }, - "roll": { - "type": "number" - } - } - } - } - }, - "inAction": { - "type": "object", - "properties": { - "actionType": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "MQTT", - "API" - ] - }, - "radius": { - "type": "number" - }, - "target": { - "type": "string", - "description": "Mqtt topic or API url" - }, - "data": { - "type": "string", - "description": "Mqtt payload or post body" - } - } - }, - "outAction": { - "type": "object", - "properties": { - "actionType": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "MQTT", - "API" - ] - }, - "radius": { - "type": "number" - }, - "target": { - "type": "string", - "description": "Mqtt topic or API url" - }, - "data": { - "type": "string", - "description": "Mqtt payload or post body" - } - } - } - } - } - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "mapName": "First floor", - "poiList": [ - { - "name": "string", - "uuid": "string", - "type": "DEFAULT", - "coordinate": { - "x": 15.0, - "y": 15.0, - "rotation": 90.0, - "rawX": 14.8, - "rawY": 15.4 - }, - "inAction": { - "actionType": "MQTT", - "radius": 270.0, - "target": "string", - "data": "string" - }, - "outAction": { - "actionType": "MQTT", - "radius": 270.0, - "target": "string", - "data": "string" - } - } - ] - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/slam/poi/list/get": { - "publish": { - "summary": "Get list of pois for current map", - "description": "see <> for response\n", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "Required random key" - }, - "mapName": { - "type": "string" - } - } - }, - "name": "ZbosMapDetailRequest", - "examples": [ - { - "payload": { - "key": "_dfse", - "mapName": "First floor" - } - } - ] - } - } - }, - "zbos/slam/poi/list/response/{key}": { - "subscribe": { - "summary": "event: Get list of pois for current map", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "mapName": { - "type": "string" - }, - "poiList": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "uuid": { - "type": "string" - }, - "type": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "DEFAULT", - "CHARGING_STATION", - "INTERACTIVE" - ] - }, - "coordinate": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - }, - "z": { - "type": "number" - }, - "rotation": { - "type": "number" - }, - "rawX": { - "type": "number" - }, - "rawY": { - "type": "number" - }, - "rawZ": { - "type": "number" - }, - "orientation": { - "type": "object", - "properties": { - "yaw": { - "type": "number" - }, - "pitch": { - "type": "number" - }, - "roll": { - "type": "number" - } - } - } - } - }, - "inAction": { - "type": "object", - "properties": { - "actionType": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "MQTT", - "API" - ] - }, - "radius": { - "type": "number" - }, - "target": { - "type": "string", - "description": "Mqtt topic or API url" - }, - "data": { - "type": "string", - "description": "Mqtt payload or post body" - } - } - }, - "outAction": { - "type": "object", - "properties": { - "actionType": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "MQTT", - "API" - ] - }, - "radius": { - "type": "number" - }, - "target": { - "type": "string", - "description": "Mqtt topic or API url" - }, - "data": { - "type": "string", - "description": "Mqtt payload or post body" - } - } - } - } - } - } - } - }, - "name": "SlamMap", - "examples": [ - { - "payload": { - "mapName": "First floor", - "poiList": [ - { - "name": "string", - "uuid": "string", - "type": "DEFAULT", - "coordinate": { - "x": 15.0, - "y": 15.0, - "rotation": 90.0, - "rawX": 14.8, - "rawY": 15.4 - }, - "inAction": { - "actionType": "MQTT", - "radius": 270.0, - "target": "string", - "data": "string" - }, - "outAction": { - "actionType": "MQTT", - "radius": 270.0, - "target": "string", - "data": "string" - } - } - ] - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/slam/poi/add": { - "publish": { - "summary": "Add poi", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "mapName": { - "type": "string" - }, - "poi": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "uuid": { - "type": "string" - }, - "type": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "DEFAULT", - "CHARGING_STATION", - "INTERACTIVE" - ] - }, - "coordinate": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - }, - "z": { - "type": "number" - }, - "rotation": { - "type": "number" - }, - "rawX": { - "type": "number" - }, - "rawY": { - "type": "number" - }, - "rawZ": { - "type": "number" - }, - "orientation": { - "type": "object", - "properties": { - "yaw": { - "type": "number" - }, - "pitch": { - "type": "number" - }, - "roll": { - "type": "number" - } - } - } - } - }, - "inAction": { - "type": "object", - "properties": { - "actionType": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "MQTT", - "API" - ] - }, - "radius": { - "type": "number" - }, - "target": { - "type": "string", - "description": "Mqtt topic or API url" - }, - "data": { - "type": "string", - "description": "Mqtt payload or post body" - } - } - }, - "outAction": { - "type": "object", - "properties": { - "actionType": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "MQTT", - "API" - ] - }, - "radius": { - "type": "number" - }, - "target": { - "type": "string", - "description": "Mqtt topic or API url" - }, - "data": { - "type": "string", - "description": "Mqtt payload or post body" - } - } - } - } - }, - "save": { - "type": "boolean" - } - } - }, - "name": "ZbosAddPoiRequest", - "examples": [ - { - "payload": { - "mapName": "First floor", - "poi": { - "name": "Home", - "uuid": "string", - "type": "DEFAULT", - "coordinate": { - "x": 15.0, - "y": 15.0, - "rotation": 90.0 - } - }, - "save": false - } - } - ] - } - } - }, - "zbos/slam/poi/add/event": { - "subscribe": { - "summary": "event: Add poi", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "uuid": { - "type": "string" - }, - "type": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "DEFAULT", - "CHARGING_STATION", - "INTERACTIVE" - ] - }, - "coordinate": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - }, - "z": { - "type": "number" - }, - "rotation": { - "type": "number" - }, - "rawX": { - "type": "number" - }, - "rawY": { - "type": "number" - }, - "rawZ": { - "type": "number" - }, - "orientation": { - "type": "object", - "properties": { - "yaw": { - "type": "number" - }, - "pitch": { - "type": "number" - }, - "roll": { - "type": "number" - } - } - } - } - }, - "inAction": { - "type": "object", - "properties": { - "actionType": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "MQTT", - "API" - ] - }, - "radius": { - "type": "number" - }, - "target": { - "type": "string", - "description": "Mqtt topic or API url" - }, - "data": { - "type": "string", - "description": "Mqtt payload or post body" - } - } - }, - "outAction": { - "type": "object", - "properties": { - "actionType": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "MQTT", - "API" - ] - }, - "radius": { - "type": "number" - }, - "target": { - "type": "string", - "description": "Mqtt topic or API url" - }, - "data": { - "type": "string", - "description": "Mqtt payload or post body" - } - } - } - } - }, - "name": "Poi", - "examples": [ - { - "payload": { - "name": "string", - "uuid": "string", - "type": "DEFAULT", - "coordinate": { - "x": 15.0, - "y": 15.0, - "rotation": 90.0 - } - } - } - ] - } - } - }, - "zbos/slam/poi/edit": { - "publish": { - "summary": "Edit poi", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "mapName": { - "type": "string" - }, - "poi": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "uuid": { - "type": "string" - }, - "type": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "DEFAULT", - "CHARGING_STATION", - "INTERACTIVE" - ] - }, - "coordinate": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - }, - "z": { - "type": "number" - }, - "rotation": { - "type": "number" - }, - "rawX": { - "type": "number" - }, - "rawY": { - "type": "number" - }, - "rawZ": { - "type": "number" - }, - "orientation": { - "type": "object", - "properties": { - "yaw": { - "type": "number" - }, - "pitch": { - "type": "number" - }, - "roll": { - "type": "number" - } - } - } - } - }, - "inAction": { - "type": "object", - "properties": { - "actionType": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "MQTT", - "API" - ] - }, - "radius": { - "type": "number" - }, - "target": { - "type": "string", - "description": "Mqtt topic or API url" - }, - "data": { - "type": "string", - "description": "Mqtt payload or post body" - } - } - }, - "outAction": { - "type": "object", - "properties": { - "actionType": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "MQTT", - "API" - ] - }, - "radius": { - "type": "number" - }, - "target": { - "type": "string", - "description": "Mqtt topic or API url" - }, - "data": { - "type": "string", - "description": "Mqtt payload or post body" - } - } - } - } - }, - "save": { - "type": "boolean" - } - } - }, - "name": "ZbosEditPoiRequest", - "examples": [ - { - "payload": { - "mapName": "First floor", - "poi": { - "name": "Home", - "uuid": "string", - "type": "DEFAULT", - "coordinate": { - "x": 15.0, - "y": 15.0, - "rotation": 90.0 - } - }, - "save": false - } - } - ] - } - } - }, - "zbos/slam/poi/edit/event": { - "subscribe": { - "summary": "event: Edit poi", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/poi/remove/name": { - "publish": { - "summary": "Remove poi by name", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "mapName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "save": { - "type": "boolean" - } - } - }, - "name": "ZbosRemovePoiByNameRequest", - "examples": [ - { - "payload": { - "mapName": "First floor", - "name": "Home", - "save": false - } - } - ] - } - } - }, - "zbos/slam/poi/remove/name/event": { - "subscribe": { - "summary": "event: Remove poi by name", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/poi/remove/uuid": { - "publish": { - "summary": "Remove poi by uuid", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "mapName": { - "type": "string" - }, - "uuid": { - "type": "string" - }, - "save": { - "type": "boolean" - } - } - }, - "name": "ZbosRemovePoiByUUIDRequest", - "examples": [ - { - "payload": { - "mapName": "First floor", - "uuid": "abcd-qsdf-qsdfd-qsdf", - "save": false - } - } - ] - } - } - }, - "zbos/slam/poi/remove/uuid/event": { - "subscribe": { - "summary": "event: Remove poi by uuid", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/poi/moveto/uuid": { - "publish": { - "summary": "Move robot to poi", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "mapName": { - "type": "string" - }, - "uuid": { - "type": "string" - }, - "speed": { - "type": "integer", - "$ref": "#/components/schemas/percentage" - } - } - }, - "name": "ZbosMoveToPoiByUUIDRequest", - "examples": [ - { - "payload": { - "mapName": "First floor", - "uuid": "abcd-qsdf-qsdfd-qsdf", - "speed": 50 - } - } - ] - } - } - }, - "zbos/slam/path/remaining/current": { - "subscribe": { - "summary": "Path remaining changed", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "remainingPathPoints": { - "type": "array", - "items": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - }, - "z": { - "type": "number" - } - } - } - }, - "remainingMilestones": { - "type": "array", - "items": { - "type": "object", - "properties": { - "x": { - "type": "number" - }, - "y": { - "type": "number" - }, - "z": { - "type": "number" - } - } - } - } - } - }, - "name": "ZbosRemainingPathObject", - "examples": [ - { - "payload": { - "remainingPathPoints": [ - { - "x": 50.0, - "y": 35.0, - "z": 1.0 - } - ], - "remainingMilestones": [ - { - "x": 50.0, - "y": 35.0, - "z": 1.0 - } - ] - } - } - ] - } - } - }, - "zbos/slam/charging/required/started": { - "subscribe": { - "summary": "Charging required", - "description": "Is published when battery is low/critical to indicate the robot is going to try charge itself.\n", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/charging/required/stopped": { - "subscribe": { - "summary": "Battery is not critical", - "description": "Is published when robot has stopped charging itself\n", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/charging/goto": { - "publish": { - "summary": "Go to charging station", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/charging/goto/started": { - "subscribe": { - "summary": "Move to charging station started", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/charging/goto/stopped": { - "subscribe": { - "summary": "Move to charging station stopped", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/charging/goto/failed": { - "subscribe": { - "summary": "Move to charging station failed", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/docking/undock/start": { - "publish": { - "summary": "Undock", - "description": "Leave charging station\n", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/docking/undock/started": { - "subscribe": { - "summary": "Undocking started", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/docking/undock/finished": { - "subscribe": { - "summary": "Undocking finished", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/slam/docking/undock/failed": { - "subscribe": { - "summary": "Undocking failed", - "description": "", - "tags": [ - { - "name": "SLAM", - "description": "All slam related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/dialog/languages/available/get": { - "publish": { - "summary": "Get available languages", - "description": "Legacy topic for getting all installed languages (both tts and asr combined). Better not to use this.see <> for response\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/dialog/languages/available/response/{key}": { - "subscribe": { - "summary": "response: Get available languages", - "description": "response: Legacy topic for getting all installed languages (both tts and asr combined)\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "string" - } - }, - "name": "Array", - "examples": [ - { - "payload": "en-US" - }, - { - "payload": "nl-BE" - }, - { - "payload": "fr-FR" - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/dialog/languages/current/get": { - "publish": { - "summary": "Get current language", - "description": "see <> for response\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/dialog/languages/current/response/{key}": { - "subscribe": { - "summary": "response: Get current language", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String", - "examples": [ - { - "payload": "en-US" - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/dialog/languages/current/set": { - "publish": { - "summary": "Set current language", - "description": "Set the active language, example: 'en-US'. Note: this will be probably be changed to <> in a future release.\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String", - "examples": [ - { - "payload": "en-US" - } - ] - } - } - }, - "zbos/dialog/set/message": { - "publish": { - "summary": "Speak a message", - "description": "Use this to make the robot say something.\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String", - "examples": [ - { - "payload": "Hello world" - } - ] - } - } - }, - "zbos/dialog/set": { - "publish": { - "summary": "Speak a message with parameters", - "description": "Use this to make the robot say something with parameters. Only message is required, other params are optional.\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "requestId": { - "type": "string" - }, - "message": { - "type": "string" - }, - "speed": { - "type": "integer" - }, - "language": { - "type": "string", - "description": "Language string like \"en-US\"" - }, - "volume": { - "type": "integer" - }, - "gesticulation": { - "type": "boolean" - }, - "voice": { - "type": "string" - }, - "pitch": { - "type": "integer" - }, - "blocking": { - "type": "boolean" - } - } - }, - "name": "DialogOptions", - "examples": [ - { - "payload": { - "requestId": "1", - "message": "Hello world", - "speed": 50, - "language": "en-US", - "volume": 50, - "gesticulation": true, - "voice": "Ava", - "pitch": 120 - } - } - ] - } - } - }, - "zbos/dialog/languages/current/event": { - "subscribe": { - "summary": "event: Current language", - "description": "Event when the system is done with changing language to a new language.\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String", - "examples": [ - { - "payload": "en-US" - } - ] - } - } - }, - "zbos/dialog/animatedspeech/enable": { - "publish": { - "summary": "Enable animated speech", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/dialog/animatedspeech/disable": { - "publish": { - "summary": "Disable animated speech", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/dialog/animatedspeech/get": { - "publish": { - "summary": "Get status of animated speech", - "description": "see <> for response\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/dialog/animatedspeech/response/{key}": { - "subscribe": { - "summary": "response: Get status of animated speech", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "boolean" - }, - "name": "Boolean" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/dialog/tts/start": { - "publish": { - "summary": "event: TTS started", - "description": "Event when the robot starts speaking and what it is saying\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String", - "examples": [ - { - "payload": "Hi, my name is James" - } - ] - } - } - }, - "zbos/dialog/tts/stop": { - "publish": { - "summary": "Stop robot speech", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/dialog/pause/hotword": { - "publish": { - "summary": "pause hotword recognition", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/dialog/resume/hotword": { - "publish": { - "summary": "resume hotword recognition", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/dialog/tts/end": { - "subscribe": { - "summary": "event: TTS ended", - "description": "Event when the robot has finished speaking\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/dialog/hotword/recognised": { - "subscribe": { - "summary": "event: robot has recognised a hotword", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/event/dialog/listen/started": { - "subscribe": { - "summary": "event: robot starts listening", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/event/dialog/listen/stopped": { - "subscribe": { - "summary": "event: robot stops listening", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/dialog/listen/start": { - "publish": { - "summary": "Start listening", - "description": "Start listening for hotword and commands\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/dialog/listen/stop": { - "publish": { - "summary": "Stop listening", - "description": "Cancel hotword recognition\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/dialog/service/start": { - "publish": { - "summary": "Start dialog service", - "description": "Start the dialog service so the robot can listen to the mic.\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/dialog/service/stop": { - "publish": { - "summary": "Stop dialog service", - "description": "Stop the dialog service so the mic is free to use by other applications.\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/dialog/service/stopped": { - "subscribe": { - "summary": "Event: dialog service stopped", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/dialog/service/started": { - "subscribe": { - "summary": "Event: dialog service started", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/iflytek/rotation/started": { - "subscribe": { - "summary": "Iflytek rotation started", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/iflytek/rotation/stopped": { - "subscribe": { - "summary": "Iflytek rotation stopped", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/tts/phonemereached": { - "subscribe": { - "summary": "event. Phoneme reached", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "jawOpen": { - "type": "boolean" - }, - "lipTension": { - "type": "integer" - }, - "mouthHeight": { - "type": "integer" - }, - "mouthUpturn": { - "type": "integer" - }, - "mouthWidth": { - "type": "integer" - }, - "teethLowerVisible": { - "type": "integer" - }, - "teethUpperVisible": { - "type": "integer" - }, - "tonguePosition": { - "type": "integer" - } - } - }, - "name": "PhonemeInfo", - "examples": [ - { - "payload": { - "jawOpen": false, - "lipTension": 0, - "mouthHeight": 10, - "mouthUpturn": 0, - "mouthWidth": 5, - "teethLowerVisible": 1, - "teethUpperVisible": 1, - "tonguePosition": 1 - } - } - ] - } - } - }, - "zbos/dialog/grammars/add/multiple": { - "publish": { - "summary": "Grammars: add multiple", - "description": "This is an extension for the grammar add topic. It removes all grammars first and then triggers a single platform reload. Hence grammars are added a lot faster.see <> for response\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "a unique id of the grammar. This must be unique among the application (next field)." - }, - "app": { - "type": "string", - "description": "The application name. This will be used to determined which MQTT topic will be used to post the json output to." - }, - "continuous": { - "type": "boolean" - }, - "input": { - "type": "object", - "description": "Contains an array for each language with all the possible sentences. The sentences need to be in a format that the speech software understands." - }, - "variables": { - "type": "object" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "id": "question_1_variable", - "app": "App", - "continuous": true, - "input": { - "nl-BE": [ - "Ken jij $name" - ], - "en-US": [ - "Do you know $name" - ] - }, - "variables": { - "name": { - "nl-BE": [ - { - "input": "Arno", - "data": "name_in_dutch" - }, - { - "input": "Gilles", - "data": "name_in_dutch" - } - ], - "en-US": [ - { - "input": "Arno", - "data": "name_in_english" - }, - { - "input": "Gilles", - "data": "name_in_english" - } - ] - } - } - } - } - ] - } - } - }, - "zbos/dialog/grammars/add/response": { - "subscribe": { - "summary": "response: grammar add", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - } - }, - "zbos/dialog/grammars/remove/multiple": { - "publish": { - "summary": "Grammars: remove multiple", - "description": "This is an extension for the grammar remove topic. It removes all grammars first and then triggers a single platform reload. Hence grammars are removed a lot faster.see <> for response\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "a unique id of the grammar. This must be unique among the application (next field)." - }, - "app": { - "type": "string", - "description": "The application name. This will be used to determined which MQTT topic will be used to post the json output to." - }, - "continuous": { - "type": "boolean" - }, - "input": { - "type": "object", - "description": "Contains an array for each language with all the possible sentences. The sentences need to be in a format that the speech software understands." - }, - "variables": { - "type": "object" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "id": "id send in add", - "app": "app from add" - } - } - ] - } - } - }, - "zbos/dialog/grammars/remove/response": { - "subscribe": { - "summary": "response: grammar add", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - } - }, - "zbos/dialog/grammars/match/{appId}": { - "publish": { - "summary": "Event: grammar match", - "description": "Event when a custom grammar match is found, the output data is posted here. \n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "app": { - "type": "string" - }, - "triggered-by": { - "type": "string", - "description": "The id of the grammer that has matched with the user input. This is the id from the input json." - }, - "language": { - "type": "string", - "description": "Language that speech software was configured in when the sentence is recognised." - }, - "variables": { - "type": "object" - } - } - }, - "name": "GrammarMatch", - "examples": [ - { - "payload": { - "language": "en-US", - "variables": { - "beverage": { - "input": "Wine", - "data": "this is wine" - }, - "dish": { - "input": "hamburger", - "data": "this is a hamburger" - } - }, - "triggered-by": "input ID" - } - } - ] - } - }, - "parameters": { - "appId": { - "description": "Should be replaced by the app id used in the 'zbos/dialog/grammars/add/multiple' topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/dialog/custom/grammar/rules/get": { - "publish": { - "summary": "Gets all custom grammar rules", - "description": "see <> for response\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/dialog/custom/grammar/rules/get/response": { - "subscribe": { - "summary": "response: Get all custom grammar rules", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "string" - } - }, - "name": "Array" - } - } - }, - "zbos/dialog/tts/languages/get": { - "publish": { - "summary": "Get TTS languages", - "description": "Get a list of languages that the TTS engine can use to talk.see <> for response\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/dialog/tts/languages/response/{key}": { - "subscribe": { - "summary": "response: TTS languages list", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String", - "examples": [ - { - "payload": "BE" - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/dialog/tts/languages/current/get": { - "publish": { - "summary": "Get current TTS language", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/dialog/tts/languages/current/set": { - "publish": { - "summary": "Set TTS language", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String", - "examples": [ - { - "payload": "nl-BE" - } - ] - } - } - }, - "zbos/dialog/asr/languages/get": { - "publish": { - "summary": "Get ASR languages", - "description": "Get a list of languages recognized by the ASR engine. note: For now this is limited to the language code defined in the config. No Vocon load check is done yet.see <> for response\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/dialog/asr/languages/response/{key}": { - "subscribe": { - "summary": "response: ASR languages list", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String", - "examples": [ - { - "payload": "nl-BE" - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/dialog/asr/languages/current/get": { - "publish": { - "summary": "Get current ASR language", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/dialog/asr/languages/current/set": { - "publish": { - "summary": "Set ASR language", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String", - "examples": [ - { - "payload": "nl-BE" - } - ] - } - } - }, - "zbos/asr/recognition/result": { - "subscribe": { - "summary": "Speech recognised event", - "description": "Event send by the dialog service when user said something. Mainly for subtitles.\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String", - "examples": [ - { - "payload": "Okay James" - } - ] - } - } - }, - "zbos/dialog/grammars/load": { - "publish": { - "summary": "Grammars: load", - "description": "Request from speech software to load custom grammars from the storage on the robot.see <> for response\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/dialog/grammars/load/response": { - "subscribe": { - "summary": "response: loaded grammars", - "description": "Response from the RIL with all the rules stored in a file on the robot.\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/dialog/speech/provider/start": { - "publish": { - "summary": "Start speech provider", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/dialog/speech/provider/stop": { - "publish": { - "summary": "Stop speech provider", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/dialog/text/command": { - "publish": { - "summary": "Send a text message to dialog system", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/dialog/language/setup/start": { - "publish": { - "summary": "Start language setup", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/dialog/language/setup/stop": { - "publish": { - "summary": "Stop language setup", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/dialog/set/config": { - "publish": { - "summary": "Set the current speech config", - "description": "see <> for response\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "config_items": { - "type": "object", - "description": "One or more config items." - }, - "key": { - "type": "string", - "description": "Required random key" - } - } - }, - "name": "SetDialogConfigRequest", - "examples": [ - { - "payload": { - "key": "ABCxyz", - "config_items": {} - } - } - ] - } - } - }, - "zbos/dialog/set/config/response/{key}": { - "subscribe": { - "summary": "response: Speech config was set", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "config_items": { - "type": "object", - "description": "One or more config items." - }, - "key": { - "type": "string", - "description": "Required random key" - } - } - }, - "name": "SetDialogConfigRequest", - "examples": [ - { - "payload": { - "key": "ABCxyz", - "config_items": {} - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/dialog/get/config": { - "publish": { - "summary": "Get the current speech config", - "description": "see <> for response\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "config_items": { - "type": "array", - "description": "One or more config keys.", - "items": { - "type": "string" - } - }, - "key": { - "type": "string", - "description": "Required random key" - } - } - }, - "name": "GetDialogConfigRequest", - "examples": [ - { - "payload": { - "key": "ABCxyz", - "config_items": [] - } - } - ] - } - } - }, - "zbos/dialog/get/config/response": { - "subscribe": { - "summary": "response: Current dialog config", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "config_items": { - "type": "array", - "description": "One or more config keys.", - "items": { - "type": "string" - } - }, - "key": { - "type": "string", - "description": "Required random key" - } - } - }, - "name": "GetDialogConfigRequest", - "examples": [ - { - "payload": { - "key": "ABCxyz", - "config_items": [] - } - } - ] - } - } - }, - "zbos/dialog/reset/config": { - "publish": { - "summary": "Reset the current speech config", - "description": "see <> for response\n", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/dialog/reset/config/response": { - "subscribe": { - "summary": "response: Config has been reset", - "description": "", - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - } - }, - "zbos/notification/all/event": { - "subscribe": { - "summary": "Notify everything", - "description": "", - "tags": [ - { - "name": "Status", - "description": "All status related topics." - } - ], - "message": { - "$ref": "#/components/messages/notificationMessage" - } - } - }, - "zbos/notification/info/event": { - "subscribe": { - "summary": "Notify information", - "description": "", - "tags": [ - { - "name": "Status", - "description": "All status related topics." - } - ], - "message": { - "$ref": "#/components/messages/notificationMessage" - } - } - }, - "zbos/notification/warning/event": { - "subscribe": { - "summary": "Notify warnings", - "description": "", - "tags": [ - { - "name": "Status", - "description": "All status related topics." - } - ], - "message": { - "$ref": "#/components/messages/notificationMessage" - } - } - }, - "zbos/notification/error/event": { - "subscribe": { - "summary": "Notify errors", - "description": "", - "tags": [ - { - "name": "Status", - "description": "All status related topics." - } - ], - "message": { - "$ref": "#/components/messages/notificationMessage" - } - } - }, - "zbos/survey/get": { - "publish": { - "summary": "Get survey", - "description": "see <> for response\n", - "tags": [ - { - "name": "Survey", - "description": "All survey related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/survey/get/response/{key}": { - "subscribe": { - "summary": "response: Get survey", - "description": "", - "tags": [ - { - "name": "Survey", - "description": "All survey related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/survey/all/get": { - "publish": { - "summary": "Get all surveys", - "description": "see <> for response\n", - "tags": [ - { - "name": "Survey", - "description": "All survey related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/survey/all/get/response/{key}": { - "subscribe": { - "summary": "response: Get all surveys", - "description": "", - "tags": [ - { - "name": "Survey", - "description": "All survey related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "type": { - "type": "string" - }, - "meta": { - "type": "object", - "properties": { - "languages": { - "type": "array", - "items": { - "type": "string" - } - }, - "default_language": { - "type": "string" - }, - "version": { - "type": "string" - }, - "created_on": { - "type": "string" - }, - "last_updated_on": { - "type": "string" - } - } - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "id": "string", - "name": "string" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/survey/save": { - "publish": { - "summary": "Add/save survey", - "description": "", - "tags": [ - { - "name": "Survey", - "description": "All survey related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "type": { - "type": "string" - }, - "meta": { - "type": "object", - "properties": { - "languages": { - "type": "array", - "items": { - "type": "string" - } - }, - "default_language": { - "type": "string" - }, - "version": { - "type": "string" - }, - "created_on": { - "type": "string" - }, - "last_updated_on": { - "type": "string" - } - } - } - } - }, - "name": "SimpleSurvey", - "examples": [ - { - "payload": { - "id": "string" - } - } - ] - } - } - }, - "zbos/survey/save/event": { - "subscribe": { - "summary": "event: Survey added/saved", - "description": "", - "tags": [ - { - "name": "Survey", - "description": "All survey related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - } - }, - "zbos/survey/delete": { - "publish": { - "summary": "Delete survey", - "description": "", - "tags": [ - { - "name": "Survey", - "description": "All survey related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "type": { - "type": "string" - }, - "meta": { - "type": "object", - "properties": { - "languages": { - "type": "array", - "items": { - "type": "string" - } - }, - "default_language": { - "type": "string" - }, - "version": { - "type": "string" - }, - "created_on": { - "type": "string" - }, - "last_updated_on": { - "type": "string" - } - } - } - } - }, - "name": "SimpleSurvey", - "examples": [ - { - "payload": { - "id": "string" - } - } - ] - } - } - }, - "zbos/survey/delete/event": { - "subscribe": { - "summary": "event: Survey deleted", - "description": "", - "tags": [ - { - "name": "Survey", - "description": "All survey related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - } - }, - "zbos/alarm/trigger": { - "publish": { - "summary": "Call for help", - "description": "Send an Alarm message, trigger alarm, call for help.\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "serverDomain": { - "type": "string" - }, - "localUsername": { - "type": "string" - }, - "localPassword": { - "type": "string" - }, - "localPort": { - "type": "integer" - }, - "peerUsername": { - "type": "string" - }, - "peerPassword": { - "type": "string" - }, - "peerPort": { - "type": "integer" - }, - "metaData": { - "type": "object" - }, - "alarmType": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "DEFAULT", - "VERKLIZAN", - "SENSOR" - ] - }, - "callTimeout": { - "type": "integer" - }, - "hangupAllowed": { - "type": "boolean" - }, - "enabled": { - "type": "boolean" - } - } - }, - "name": "SipConfig", - "examples": [ - { - "payload": { - "serverDomain": "string", - "localUsername": "string", - "localPassword": "string", - "localPort": 5060, - "peerUsername": "string", - "peerPassword": "string", - "peerPort": 5060, - "metaData": {}, - "alarmType": "DEFAULT", - "callTimeout": 120000, - "hangupAllowed": false, - "enabled": false - } - } - ] - } - } - }, - "zbos/alarm/trigger/event": { - "subscribe": { - "summary": "event: Trigger alarm and call for help", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/alarm/call/started": { - "subscribe": { - "summary": "Alarm call started", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/alarm/call/established": { - "subscribe": { - "summary": "Alarm call established", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/alarm/call/ended": { - "subscribe": { - "summary": "Alarm call ended", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/alarm/set": { - "publish": { - "summary": "Set alarm call", - "description": "see <> for response\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "alarmServiceProvider": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "verklizan", - "sensor" - ] - }, - "metadata": { - "type": "object" - } - } - }, - "name": "ZbosAlarm", - "examples": [ - { - "payload": { - "key": "string", - "alarmServiceProvider": "sensor", - "metadata": {} - } - } - ] - } - } - }, - "zbos/alarm/set/response": { - "subscribe": { - "summary": "response: Set alarm call", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - } - }, - "zbos/alarm/event": { - "subscribe": { - "summary": "Alarm has been received", - "description": "An event indicating an alarm was triggered\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "object" - }, - "name": "Map" - } - } - }, - "zbos/alarm/config/get": { - "publish": { - "summary": "Get alarm configs", - "description": "Get an object containing all alarm configssee <> for response\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/alarm/config/get/response/{key}": { - "subscribe": { - "summary": "Get alarm configs response", - "description": "Response of configs by alarm name\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "object" - }, - "name": "HashMap" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/alarm/config/set": { - "publish": { - "summary": "Set alarm config ", - "description": "Sets the config for a specific alarm type\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "type": { - "type": "string" - }, - "config": { - "type": "object" - } - } - }, - "name": "AlarmConfigRequest", - "examples": [ - { - "payload": { - "type": "string", - "config": { - "string": "string" - } - } - } - ] - } - } - }, - "zbos/alarm/config/set/event": { - "subscribe": { - "summary": "Set alarm config response", - "description": "An event indicating the alarm config was changed\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "error": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "MALFORMED_REQUEST", - "MISSING_CONFIG_PROPERTY", - "TYPE_NOT_FOUND" - ] - } - } - }, - "name": "AlarmConfigResult", - "examples": [ - { - "payload": { - "type": "string", - "config": { - "string": "string" - } - } - } - ] - } - } - }, - "zbos/alarm/database/get": { - "publish": { - "summary": "Get alarm database", - "description": "Retrieves a list of all the alarms stored in the databasesee <> for response\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/alarm/database/get/response/{key}": { - "subscribe": { - "summary": "Get alarm database response", - "description": "The response to a database get request\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "string" - }, - "downloadPath": { - "type": "string" - }, - "previewPath": { - "type": "string" - }, - "mediaFile": { - "type": "string" - }, - "timestamp": { - "type": "number" - }, - "metadata": { - "type": "object" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "id": "string", - "type": "string", - "downloadPath": "string", - "previewPath": "string", - "mediaFile": "string", - "timestamp": 1012001, - "metadata": {} - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/alarm/database/remove": { - "publish": { - "summary": "Remove alarm database", - "description": "Remove all alarms from the database\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/alarm/database/remove/event": { - "subscribe": { - "summary": "Remove alarm database response", - "description": "An event indicating the alarm database was removed\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - } - }, - "zbos/alarm/images/remove": { - "publish": { - "summary": "Remove alarm images", - "description": "Remove all alarm images from the robot\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/alarm/images/remove/event": { - "subscribe": { - "summary": "Remove alarm images response", - "description": "An event indicating images were removed\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - } - }, - "zbos/alarm/all/remove": { - "publish": { - "summary": "Remove alarm images and database", - "description": "Remove all alarm images and database entries from the robot\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/alarm/all/remove/event": { - "subscribe": { - "summary": "Remove alarm images and database response", - "description": "An event indicating images and databases were removed\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - } - }, - "zbos/status/battery/get": { - "publish": { - "summary": "Get battery status", - "description": "see <> for response\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/status/battery/response/{key}": { - "subscribe": { - "summary": "response: Get battery status", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "level": { - "type": "integer", - "$ref": "#/components/schemas/percentage" - }, - "charging": { - "type": "boolean" - }, - "docked": { - "type": "boolean" - } - } - }, - "name": "BatteryEvent", - "examples": [ - { - "payload": { - "level": 50, - "charging": true, - "docked": true - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/status/battery/event": { - "subscribe": { - "summary": "event: Battery change", - "description": "A message (json) is published on this topic when the robot battery status changes. Level is the battery level in percent. If the battery status is not yet available, then the level is -1.\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "level": { - "type": "integer", - "$ref": "#/components/schemas/percentage" - }, - "charging": { - "type": "boolean" - }, - "docked": { - "type": "boolean" - } - } - }, - "name": "BatteryEvent", - "examples": [ - { - "payload": { - "level": 50, - "charging": true, - "docked": true - } - } - ] - } - } - }, - "zbos/status/battery/low/set": { - "publish": { - "summary": "Set the battery low level threshold", - "description": "At what battery percentage the robot will act as if it is at low battery\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "percent": { - "type": "integer", - "$ref": "#/components/schemas/percentage" - } - } - }, - "name": "BatterySetRequest", - "examples": [ - { - "payload": { - "percent": 30 - } - } - ] - } - } - }, - "zbos/status/battery/low/get": { - "publish": { - "summary": "Get the battery low level threshold", - "description": "see <> for response\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/status/battery/low/response/{key}": { - "subscribe": { - "summary": "Response: battery low level", - "description": "Response which shows the battery low level threshold\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/status/battery/critical/set": { - "publish": { - "summary": "Set the battery critical level threshold", - "description": "At what battery percentage the robot will act as if it is at critical battery\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "percent": { - "type": "integer", - "$ref": "#/components/schemas/percentage" - } - } - }, - "name": "BatterySetRequest", - "examples": [ - { - "payload": { - "percent": 10 - } - } - ] - } - } - }, - "zbos/status/battery/critical/get": { - "publish": { - "summary": "Get the battery critical level threshold", - "description": "see <> for response\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/status/battery/critical/response/{key}": { - "subscribe": { - "summary": "Response: battery critical level", - "description": "Response which shows the battery critical level threshold\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/system/robot/identification/get": { - "publish": { - "summary": "Request robot identification", - "description": "Use this to ask a detailed list of robot specifics like serial, features, ...\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/system/robot/identification/event": { - "subscribe": { - "summary": "response: Robot identification", - "description": "A detailed list of robot specifics\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "robot_type": { - "type": "string" - }, - "body_id": { - "type": "string" - }, - "serial": { - "type": "string" - }, - "name": { - "type": "string" - }, - "versions": { - "type": "object" - }, - "network_info": { - "type": "object", - "properties": { - "ip": { - "type": "string" - }, - "mac_address": { - "type": "string" - }, - "ssid": { - "type": "string" - } - } - }, - "features": { - "type": "object", - "properties": { - "audio": { - "type": "object", - "properties": { - "control_parameters": { - "type": "object", - "properties": { - "pitch": { - "type": "object", - "properties": { - "min": { - "type": "integer" - }, - "step": { - "type": "integer" - }, - "default": { - "type": "integer" - }, - "max": { - "type": "integer" - } - } - }, - "speed": { - "type": "object", - "properties": { - "min": { - "type": "integer" - }, - "step": { - "type": "integer" - }, - "default": { - "type": "integer" - }, - "max": { - "type": "integer" - } - } - }, - "volume": { - "type": "object", - "properties": { - "min": { - "type": "integer" - }, - "step": { - "type": "integer" - }, - "default": { - "type": "integer" - }, - "max": { - "type": "integer" - } - } - } - } - } - } - }, - "external_displays": { - "type": "array", - "items": { - "type": "object", - "properties": { - "video": { - "type": "boolean" - }, - "audio": { - "type": "boolean" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - } - } - } - }, - "cameras": { - "type": "array", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "primary": { - "type": "boolean" - }, - "rotation": { - "type": "integer" - }, - "image_rotation": { - "type": "integer" - } - } - } - }, - "can_poi": { - "type": "boolean" - }, - "can_move": { - "type": "boolean" - }, - "can_dance": { - "type": "boolean" - }, - "can_speech": { - "type": "boolean" - }, - "has_storage": { - "type": "boolean" - }, - "can_animate": { - "type": "boolean" - }, - "can_gym": { - "type": "boolean" - }, - "has_sensors": { - "type": "boolean" - }, - "has_emotions": { - "type": "boolean" - }, - "can_video_stream": { - "type": "boolean" - }, - "can_take_picture": { - "type": "boolean" - }, - "has_slam_image_map": { - "type": "boolean" - }, - "has_security_mode": { - "type": "boolean" - }, - "can_detect_motion": { - "type": "boolean" - }, - "can_face_recognize": { - "type": "boolean" - }, - "can_poi_interactive": { - "type": "boolean" - }, - "has_monitoring": { - "type": "boolean" - }, - "has_qr_scanner": { - "type": "boolean" - }, - "can_change_ntp_server": { - "type": "boolean" - }, - "voice_feature": { - "type": "object", - "properties": { - "supports_gesticulate": { - "type": "boolean" - }, - "supports_language": { - "type": "boolean" - }, - "supports_pitch": { - "type": "boolean" - }, - "supports_speed": { - "type": "boolean" - }, - "supports_volume": { - "type": "boolean" - }, - "supports_speech_volume": { - "type": "boolean" - }, - "control_parameters": { - "type": "object", - "properties": { - "pitch": { - "type": "object", - "properties": { - "min": { - "type": "integer" - }, - "step": { - "type": "integer" - }, - "default": { - "type": "integer" - }, - "max": { - "type": "integer" - } - } - }, - "speed": { - "type": "object", - "properties": { - "min": { - "type": "integer" - }, - "step": { - "type": "integer" - }, - "default": { - "type": "integer" - }, - "max": { - "type": "integer" - } - } - }, - "volume": { - "type": "object", - "properties": { - "min": { - "type": "integer" - }, - "step": { - "type": "integer" - }, - "default": { - "type": "integer" - }, - "max": { - "type": "integer" - } - } - } - } - } - } - }, - "listen_feature": { - "type": "object", - "properties": { - "can_trigger_manual": { - "type": "boolean" - }, - "can_trigger_hotword": { - "type": "boolean" - } - } - }, - "slam_feature": { - "type": "object", - "properties": { - "can_navigate": { - "type": "boolean" - }, - "can_extend_map": { - "type": "boolean" - }, - "can_manage_pois": { - "type": "boolean" - }, - "can_manage_walls": { - "type": "boolean" - }, - "has_docking_station": { - "type": "boolean" - } - } - }, - "voip_feature": { - "type": "object", - "properties": { - "supports_voip": { - "type": "boolean" - } - } - }, - "face_recognition_feature": { - "type": "object", - "properties": { - "can_detect_known_faces": { - "type": "boolean" - }, - "can_detect_number_of_faces": { - "type": "boolean" - } - } - }, - "time_feature": { - "type": "object", - "properties": { - "can_change_time_zone": { - "type": "boolean" - } - } - }, - "print_feature": { - "type": "object", - "properties": { - "can_print": { - "type": "boolean" - } - } - }, - "health_certificates_feature": { - "type": "object", - "properties": { - "can_check_certificates": { - "type": "boolean" - } - } - } - } - }, - "hardware": { - "type": "object", - "properties": { - "heads": { - "type": "array", - "items": { - "type": "object", - "properties": { - "moveable": { - "type": "boolean" - }, - "can_reset_to_default_position": { - "type": "boolean" - } - } - } - }, - "parts": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "moveable": { - "type": "boolean" - }, - "can_reset_to_default_position": { - "type": "boolean" - } - } - } - }, - "usb": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "USB_1", - "USB_1_1", - "USB_2", - "USB_3", - "USB_3_1", - "USB_3_2", - "USB_4" - ] - } - } - } - } - } - }, - "composer": { - "type": "object", - "properties": { - "simple": { - "type": "object", - "properties": { - "dance": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "speech": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "animation": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "emotion": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "wait_duration": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "wait_sensor": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "wait_face": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "wait_voice": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "wait_qr_code": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "wait_monitoring": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "motion_head": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "motion_detection": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "multimedia": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "poi": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "mqtt": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "app_start": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "change_datasource": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "input": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "multimedia_stop": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "browser": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "gym": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "print": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "text_overlay": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - } - } - }, - "advanced": { - "type": "object", - "properties": { - "math_formula": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "math_operations": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "if_else": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "variables": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "api": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "loop": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "start": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "stop": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - }, - "health_certificate": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "enabled_sources": { - "type": "array", - "items": { - "type": "object", - "properties": { - "topicName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "scheduler", - "composer" - ] - } - }, - "can_block": { - "type": "boolean" - } - } - } - } - } - } - }, - "supported_file_types": { - "type": "array", - "items": { - "type": "object", - "properties": { - "mime_type": { - "type": "string" - }, - "type": { - "type": "string" - } - } - } - }, - "connection_features": { - "type": "object", - "properties": { - "has_wifi": { - "type": "boolean" - }, - "has_cable": { - "type": "boolean" - }, - "has_hotspot": { - "type": "boolean" - }, - "cable_features": { - "type": "object", - "properties": { - "adapter_names": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "wifi_features": { - "type": "object", - "properties": { - "can_configure": { - "type": "boolean" - }, - "adapter_names": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "hotspot_features": { - "type": "object", - "properties": { - "can_activate": { - "type": "boolean" - }, - "can_change_ssid": { - "type": "boolean" - }, - "can_change_password": { - "type": "boolean" - }, - "adapter_names": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - } - } - }, - "name": "RobotIdentification", - "examples": [ - { - "payload": { - "serial": "SH-J01-00096", - "name": "Jamesy", - "versions": {}, - "features": { - "audio": { - "control_parameters": { - "pitch": { - "min": 0, - "step": 1, - "default": 50, - "max": 100 - }, - "speed": { - "min": 0, - "step": 1, - "default": 50, - "max": 100 - }, - "volume": { - "min": 0, - "step": 1, - "default": 50, - "max": 100 - } - } - }, - "cameras": [ - { - "key": "kiosk", - "primary": true, - "rotation": 0 - } - ], - "external_displays": [ - { - "video": true, - "audio": true, - "width": 1280, - "height": 800 - } - ], - "can_poi": true, - "can_move": true, - "can_dance": false, - "can_speech": true, - "has_storage": true, - "can_animate": false, - "can_gym": false, - "has_sensors": true, - "has_emotions": false, - "can_video_stream": true, - "can_take_picture": true, - "has_slam_image_map": true, - "has_security_mode": true, - "can_detect_motion": true, - "can_face_recognize": true, - "can_poi_interactive": true, - "has_monitoring": false, - "has_qr_scanner": false, - "can_change_ntp_server": false, - "voice_feature": { - "supports_gesticulate": false, - "supports_language": true, - "supports_pitch": true, - "supports_speed": true, - "supports_volume": true, - "supports_speech_volume": true - }, - "listen_feature": { - "can_trigger_manual": true, - "can_trigger_hotword": true - }, - "slam_feature": { - "can_navigate": true, - "can_extend_map": true, - "can_manage_pois": true, - "can_manage_walls": true, - "has_docking_station": false - }, - "voip_feature": { - "supports_voip": true - }, - "face_recognition_feature": { - "can_detect_known_faces": false, - "can_detect_number_of_faces": true - }, - "time_feature": { - "can_change_time_zone": true - }, - "print_feature": { - "can_print": true - }, - "health_certificates_feature": { - "can_check_certificates": true - } - }, - "hardware": { - "heads": [ - { - "moveable": true, - "can_reset_to_default_position": true - } - ], - "parts": [ - { - "name": "Leg", - "moveable": false, - "can_reset_to_default_position": false - } - ] - }, - "composer": { - "simple": { - "dance": { - "enabled": false, - "enabled_sources": [], - "can_block": true - }, - "speech": { - "enabled": true, - "enabled_sources": [ - "scheduler", - "composer" - ], - "can_block": true - }, - "animation": { - "enabled": false, - "enabled_sources": [], - "can_block": true - }, - "emotion": { - "enabled": false, - "enabled_sources": [], - "can_block": true - }, - "multimedia": { - "enabled": true, - "enabled_sources": [ - "scheduler", - "composer" - ], - "can_block": true - }, - "poi": { - "enabled": true, - "enabled_sources": [ - "scheduler", - "composer" - ], - "can_block": true - }, - "mqtt": { - "enabled": true, - "enabled_sources": [ - "scheduler", - "composer" - ], - "can_block": true - }, - "input": { - "enabled": true, - "enabled_sources": [ - "composer" - ], - "can_block": true - }, - "browser": { - "enabled": true, - "enabled_sources": [ - "scheduler", - "composer" - ], - "can_block": true - }, - "gym": { - "enabled": false, - "enabled_sources": [], - "can_block": true - }, - "wait_duration": { - "enabled": true, - "enabled_sources": [ - "composer" - ], - "can_block": true - }, - "wait_sensor": { - "enabled": true, - "enabled_sources": [ - "composer" - ], - "can_block": true - }, - "wait_face": { - "enabled": false, - "enabled_sources": [], - "can_block": true - }, - "wait_voice": { - "enabled": false, - "enabled_sources": [], - "can_block": true - }, - "wait_qr_code": { - "enabled": false, - "enabled_sources": [], - "can_block": true - }, - "motion_head": { - "enabled": true, - "enabled_sources": [ - "scheduler", - "composer" - ], - "can_block": true - }, - "motion_detection": { - "enabled": true, - "enabled_sources": [ - "composer" - ], - "can_block": true - }, - "app_start": { - "enabled": true, - "enabled_sources": [ - "scheduler", - "composer" - ], - "can_block": true - }, - "change_datasource": { - "enabled": true, - "enabled_sources": [ - "scheduler", - "composer" - ], - "can_block": true - }, - "multimedia_stop": { - "enabled": true, - "enabled_sources": [ - "scheduler", - "composer" - ], - "can_block": true - } - }, - "advanced": { - "variables": { - "enabled": false, - "enabled_sources": [], - "can_block": true - }, - "api": { - "enabled": false, - "enabled_sources": [], - "can_block": true - }, - "loop": { - "enabled": false, - "enabled_sources": [], - "can_block": true - }, - "start": { - "enabled": false, - "enabled_sources": [], - "can_block": true - }, - "stop": { - "enabled": false, - "enabled_sources": [], - "can_block": true - }, - "math_formula": { - "enabled": false, - "enabled_sources": [], - "can_block": true - }, - "math_operations": { - "enabled": false, - "enabled_sources": [], - "can_block": true - }, - "if_else": { - "enabled": false, - "enabled_sources": [], - "can_block": true - } - } - }, - "robot_type": "James", - "body_id": "D2EE32C8F3EFF59FDFEAF6E21834F71C", - "network_info": { - "ip": "172.16.0.100", - "ssid": "string", - "mac_address": "02:00:00:00:00:00" - }, - "supported_file_types": [ - { - "type": "string", - "mime_type": "string" - } - ], - "connection_features": { - "has_wifi": true, - "has_cable": false, - "has_hotspot": true, - "cable_features": { - "adapter_names": [] - }, - "wifi_features": { - "can_configure": false, - "adapter_names": [ - "wlan0" - ] - }, - "hotspot_features": { - "can_activate": true, - "can_change_ssid": true, - "can_change_password": true, - "adapter_names": [ - "WIFI1", - "WIFI2" - ] - } - } - } - } - ] - } - } - }, - "zbos/system/name/set": { - "publish": { - "summary": "Set robot name", - "description": "Use this to change the robot name. The change will be published through <>\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String", - "examples": [ - { - "payload": "Betsy" - } - ] - } - } - }, - "zbos/system/version/get": { - "publish": { - "summary": "Get system version", - "description": "see <> for response\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/system/version/response/{key}": { - "subscribe": { - "summary": "response: Get system version", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "version": { - "type": "string" - } - } - }, - "name": "AppVersion", - "examples": [ - { - "payload": { - "name": "CR-16", - "version": "4.2.0" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/system/serial/get": { - "publish": { - "summary": "Get system serial number", - "description": "see <> for response\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/system/serial/response/{key}": { - "subscribe": { - "summary": "response: Get system serial number", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/event/system/poke": { - "subscribe": { - "summary": "Poke robot", - "description": "When robot receives this event, it responds by showing he received the event. This can be by flashing a led. This is useful to see which robot your are controlling.\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/system/ready/event": { - "subscribe": { - "summary": "event: System ready", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/system/ready/request": { - "publish": { - "summary": "Get system ready", - "description": "see <> for response\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/system/ready/response/{key}": { - "subscribe": { - "summary": "response: System ready", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/system/hotword/rotation": { - "publish": { - "summary": "Enable hotword rotation", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/system/hotword/rotation/changed/event": { - "subscribe": { - "summary": "Hotword rotation changed event", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/system/hotword/rotation/get": { - "publish": { - "summary": "Get hotword rotation", - "description": "see <> for response\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/system/hotword/rotation/response/{key}": { - "subscribe": { - "summary": "Response: hotword rotation", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/system/adblogs/upload": { - "publish": { - "summary": "Enable adb logs upload", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/system/adblogs/changed/event": { - "subscribe": { - "summary": "Adb logs changed event", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/system/adblogs/get": { - "publish": { - "summary": "Get adb logs", - "description": "see <> for response\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/system/adblogs/response/{key}": { - "subscribe": { - "summary": "Response: Get adb logs", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/system/cloud/enable": { - "publish": { - "summary": "Enable cloud broker", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/system/cloud/enable/changing/event": { - "subscribe": { - "summary": "Cloud broker state is currently changing", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/system/cloud/enable/changed/event": { - "subscribe": { - "summary": "Cloud broker enable changed event", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/system/cloud/enable/get": { - "publish": { - "summary": "Get cloud broker enabled state", - "description": "see <> for response\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/system/cloud/enable/response/{key}": { - "subscribe": { - "summary": "Response: cloud broker enabled state", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/system/license/get": { - "publish": { - "summary": "Retrieve license information about this robot", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/system/license/response/{key}": { - "subscribe": { - "summary": "response: Retrieve license information about this robot", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "valid_until": { - "type": "number" - }, - "created_timestamp": { - "type": "number" - }, - "status": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "valid", - "expired", - "missing", - "factory" - ] - }, - "valid_from": { - "type": "number" - } - } - }, - "name": "LicenseResult", - "examples": [ - { - "payload": { - "id": "some_id", - "status": "valid", - "valid_until": 1.7764632E9, - "created_timestamp": 1.6187832E9, - "valid_from": 1.6187832E9 - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/system/license/event": { - "subscribe": { - "summary": "event: License information has changed", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "valid_until": { - "type": "number" - }, - "created_timestamp": { - "type": "number" - }, - "status": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "valid", - "expired", - "missing", - "factory" - ] - }, - "valid_from": { - "type": "number" - } - } - }, - "name": "LicenseResult", - "examples": [ - { - "payload": { - "id": "some_id", - "status": "valid", - "valid_until": 1.7764632E9, - "created_timestamp": 1.6187832E9, - "valid_from": 1.6187832E9 - } - } - ] - } - } - }, - "zbos/cloud/broker/status/event": { - "subscribe": { - "summary": "event: Broker status", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "connected": { - "type": "boolean" - }, - "graceful": { - "type": "boolean" - } - } - }, - "name": "BrokerStatus", - "examples": [ - { - "payload": { - "connected": true, - "graceful": true - } - } - ] - } - } - }, - "zbos/system/multimedia/rename": { - "publish": { - "summary": "Rename file", - "description": "Rename a multimedia filesee <> for response\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "path": { - "type": "string", - "description": "Path of existing file" - }, - "name": { - "type": "string", - "description": "New name of file with extension" - } - } - }, - "name": "RenameRequest", - "examples": [ - { - "payload": { - "path": "string", - "name": "string" - } - } - ] - } - } - }, - "zbos/system/multimedia/rename/response": { - "subscribe": { - "summary": "response: Rename file", - "description": "", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - } - }, - "zbos/system/multimedia/delete/request": { - "publish": { - "summary": "Remove a file from the robot", - "description": "Removes a file from the robot; limited to files inside of the zbos_media_library directory.see zbos/system/multimedia/delete/response/{key} for response\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "path": { - "type": "string" - } - } - }, - "name": "DeleteRequest", - "examples": [ - { - "payload": { - "path": "string" - } - } - ] - } - } - }, - "zbos/system/multimedia/delete/response/{key}": { - "subscribe": { - "summary": "response: Remove a file from the robot", - "description": "Result if file is successfully deleted\n", - "tags": [ - { - "name": "System", - "description": "All system related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "error": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "ordinal": { - "type": "integer" - } - }, - "enum": [ - "FILE_NOT_EXIST", - "NOT_PERMITTED", - "FAILED" - ] - } - } - }, - "name": "DeleteResponse", - "examples": [ - { - "payload": { - "success": false, - "error": "FILE_NOT_EXIST" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/time/info/get": { - "publish": { - "summary": "Get Time information, such as the accuracy", - "description": "see <> for response\n", - "tags": [ - { - "name": "Time", - "description": "All time related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/time/info/response/{key}": { - "subscribe": { - "summary": "response: Time information", - "description": "", - "tags": [ - { - "name": "Time", - "description": "All time related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "accurate": { - "type": "boolean" - } - } - }, - "name": "TimeInfo", - "examples": [ - { - "payload": { - "accurate": true - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/quiet/hours": { - "publish": { - "summary": "Quiet hours", - "description": "", - "tags": [ - { - "name": "Time", - "description": "All time related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/scheduler/save": { - "publish": { - "summary": "Save schedule", - "description": "", - "tags": [ - { - "name": "Time", - "description": "All time related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/scheduler/save/event": { - "subscribe": { - "summary": "event: Schedule saved", - "description": "", - "tags": [ - { - "name": "Time", - "description": "All time related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "name": "SimpleScheduler", - "examples": [ - { - "payload": { - "id": "string", - "name": "string" - } - } - ] - } - } - }, - "zbos/scheduler/load": { - "publish": { - "summary": "Get schedule", - "description": "see <> for response\n", - "tags": [ - { - "name": "Time", - "description": "All time related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "name": "SimpleScheduler", - "examples": [ - { - "payload": { - "id": "string" - } - } - ] - } - } - }, - "zbos/scheduler/load/response/{key}": { - "subscribe": { - "summary": "response: Get schedule", - "description": "", - "tags": [ - { - "name": "Time", - "description": "All time related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/scheduler/delete": { - "publish": { - "summary": "Delete schedule", - "description": "", - "tags": [ - { - "name": "Time", - "description": "All time related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "name": "SimpleScheduler", - "examples": [ - { - "payload": { - "id": "string" - } - } - ] - } - } - }, - "zbos/scheduler/delete/event": { - "subscribe": { - "summary": "event: Schedule deleted", - "description": "", - "tags": [ - { - "name": "Time", - "description": "All time related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/scheduler/list/get": { - "publish": { - "summary": "Get all schedules", - "description": "see <> for response\n", - "tags": [ - { - "name": "Time", - "description": "All time related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/scheduler/list/response/{key}": { - "subscribe": { - "summary": "response: Get all schedules", - "description": "", - "tags": [ - { - "name": "Time", - "description": "All time related topics." - } - ], - "message": { - "payload": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - } - }, - "name": "Array", - "examples": [ - { - "payload": { - "id": "string", - "name": "string" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/scheduler/start": { - "publish": { - "summary": "Start schedule by name", - "description": "", - "tags": [ - { - "name": "Time", - "description": "All time related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "name": "SimpleScheduler", - "examples": [ - { - "payload": { - "name": "string" - } - } - ] - } - } - }, - "zbos/scheduler/start/event": { - "subscribe": { - "summary": "event: Started schedule", - "description": "", - "tags": [ - { - "name": "Time", - "description": "All time related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/scheduler/start/id": { - "publish": { - "summary": "Start schedule by id", - "description": "", - "tags": [ - { - "name": "Time", - "description": "All time related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "name": "SimpleScheduler", - "examples": [ - { - "payload": { - "id": "string" - } - } - ] - } - } - }, - "zbos/scheduler/stop": { - "publish": { - "summary": "Stop schedule", - "description": "", - "tags": [ - { - "name": "Time", - "description": "All time related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/scheduler/stop/event": { - "subscribe": { - "summary": "event: Schedule stopped", - "description": "", - "tags": [ - { - "name": "Time", - "description": "All time related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - } - }, - "zbos/scheduler/current/get": { - "publish": { - "summary": "Get current schedule", - "description": "see <> for response\n", - "tags": [ - { - "name": "Time", - "description": "All time related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/scheduler/current/get/response/{key}": { - "subscribe": { - "summary": "response: Get current schedule", - "description": "", - "tags": [ - { - "name": "Time", - "description": "All time related topics." - } - ], - "message": { - "payload": { - "type": "string" - }, - "name": "String" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/translations/get": { - "publish": { - "summary": "Get translations", - "description": "Get translations for the provided category and language.\nYou have two ways to get the translations: either pass the category + the corresponding keys,\nor only pass the keys, but prefix each one with the category and a dot. Eg: {category}.{key}\n\n", - "tags": [ - { - "name": "Translations", - "description": "All translations related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "category": { - "type": "string", - "description": "Optional when using the dot notation in the translations keys." - }, - "language": { - "type": "string", - "description": "ISO 639-1 language code, Eg: 'en' or 'en-US'" - }, - "translation_keys": { - "type": "array", - "description": "Optional if the category is set. In that case it will return all translations for that category.", - "items": { - "type": "string" - } - } - } - }, - "name": "GetTranslationsRequest", - "examples": [ - { - "payload": { - "key": "abc", - "category": "category_1", - "language": "en-US" - } - }, - { - "payload": { - "key": "abc", - "category": "category_1", - "language": "en-US", - "translation_keys": [ - "translation_key_1", - "translation_key_2" - ] - } - }, - { - "payload": { - "key": "abc", - "language": "en-US", - "translation_keys": [ - "category_1.translation_key_1", - "category_1.translation_key_2" - ] - } - } - ] - } - } - }, - "zbos/translations/get/response/{key}": { - "publish": { - "summary": "Response: Get translations", - "description": "", - "tags": [ - { - "name": "Translations", - "description": "All translations related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "translations": { - "type": "object" - } - } - }, - "name": "GetTranslationsResponse", - "examples": [ - { - "payload": { - "translations": { - "translation_key_1": "Translation 1", - "translation_key_2": "Translation 2" - }, - "valid": true - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/translations/request": { - "publish": { - "summary": "Request translation registrations", - "description": "Request all translation providers to register their translations using the topics below.\n", - "tags": [ - { - "name": "Translations", - "description": "All translations related topics." - } - ], - "message": { - "$ref": "#/components/messages/emptyMessage" - } - } - }, - "zbos/translations/add": { - "publish": { - "summary": "Add translations", - "description": "Add translations with their default values.\nThese default values will be used as long as they are not updated via zbos/translations/update\n", - "tags": [ - { - "name": "Translations", - "description": "All translations related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "category": { - "type": "string" - }, - "language": { - "type": "string", - "description": "ISO 639-1 language code, Eg: 'en' or 'en-US'" - }, - "file": { - "type": "string", - "description": "Optional. Use either translations or file.\nThe file location should be a path accessible for the RAIL.\nThe content should be a json object with key-value pairs.\nDots (.) are not allowed in the keys and will be replaced with underscores (_)\"" - }, - "translations": { - "type": "object", - "description": "Optional. Use either translations or file\nDots (.) are not allowed in the keys and will be replaced with underscores (_)" - } - } - }, - "name": "AddTranslationsRequest", - "examples": [ - { - "payload": { - "key": "abc", - "category": "category_1", - "language": "en-US", - "translations": { - "translation_key_1": "Translation 1", - "translation_key_2": "Translation 2" - }, - "valid": true - } - }, - { - "payload": { - "key": "abc", - "category": "category_1", - "language": "en-US", - "file": "path/to/file.json", - "valid": true - } - } - ] - } - } - }, - "zbos/translations/add/response/{key}": { - "publish": { - "summary": "Response: Add translations", - "description": "", - "tags": [ - { - "name": "Translations", - "description": "All translations related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/translations/update": { - "publish": { - "summary": "Update translations", - "description": "Update translations overriding the default values.\n", - "tags": [ - { - "name": "Translations", - "description": "All translations related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "category": { - "type": "string" - }, - "language": { - "type": "string", - "description": "ISO 639-1 language code, Eg: 'en' or 'en-US'" - }, - "file": { - "type": "string", - "description": "Optional. Use either translations or file.\nThe file location should be a path accessible for the RAIL.\nThe content should be a json object with key-value pairs." - }, - "translations": { - "type": "object", - "description": "Optional. Use either translations or file" - } - } - }, - "name": "UpdateTranslationsRequest", - "examples": [ - { - "payload": { - "key": "abc", - "category": "category_1", - "language": "en-US", - "translations": { - "translation_key_1": "Translation 1", - "translation_key_2": "Translation 2" - }, - "valid": true - } - }, - { - "payload": { - "key": "abc", - "category": "category_1", - "language": "en-US", - "file": "path/to/file.json", - "valid": true - } - } - ] - } - } - }, - "zbos/translations/update/response/{key}": { - "publish": { - "summary": "Response: Update translations", - "description": "", - "tags": [ - { - "name": "Translations", - "description": "All translations related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/translations/changed/event/{category}": { - "publish": { - "summary": "Event: Translations changed", - "description": "", - "tags": [ - { - "name": "Translations", - "description": "All translations related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "category": { - "type": "string" - }, - "language": { - "type": "string", - "description": "ISO 639-1 language code, Eg: 'en' or 'en-US'" - } - } - }, - "name": "TranslationsChangedEvent", - "examples": [ - { - "payload": { - "category": "category_1", - "language": "en-US", - "valid": true - } - } - ] - } - }, - "parameters": { - "category": { - "description": "ID of the translations category that was changed", - "schema": { - "type": "string" - } - } - } - }, - "zbos/translations/reset": { - "publish": { - "summary": "Reset translations", - "description": "Reset translations to their default values\n", - "tags": [ - { - "name": "Translations", - "description": "All translations related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "category": { - "type": "string" - }, - "language": { - "type": "string", - "description": "ISO 639-1 language code, Eg: 'en' or 'en-US'" - } - } - }, - "name": "ResetTranslationsRequest", - "examples": [ - { - "payload": { - "key": "abc", - "category": "category_1", - "language": "en-US", - "valid": true - } - } - ] - } - } - }, - "zbos/translations/reset/response/{key}": { - "publish": { - "summary": "Response: Reset translations", - "description": "", - "tags": [ - { - "name": "Translations", - "description": "All translations related topics." - } - ], - "message": { - "$ref": "#/components/messages/successMessage" - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/variables/get": { - "publish": { - "summary": "Get all variables", - "description": "see <> for response\n", - "tags": [ - { - "name": "Variables", - "description": "All variables related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/variables/response/{key}": { - "subscribe": { - "summary": "response: Get all variables", - "description": "", - "tags": [ - { - "name": "Variables", - "description": "All variables related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "variables": { - "type": "array", - "description": "A list of all variables, not present when status is false.", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "id": { - "type": "string" - }, - "state": { - "type": "string" - } - } - } - }, - "status": { - "type": "boolean", - "description": "Will be present when status is false (error message)" - }, - "message": { - "type": "string" - } - } - }, - "name": "GlobalVariables", - "examples": [ - { - "payload": { - "variables": [ - { - "name": "string", - "value": "string" - } - ], - "status": true, - "message": "string" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - }, - "zbos/variables/set": { - "publish": { - "summary": "Set variables", - "description": "Saving the global variables on the robot.see <> for response\n", - "tags": [ - { - "name": "Variables", - "description": "All variables related topics." - } - ], - "message": { - "$ref": "#/components/messages/keyMessage" - } - } - }, - "zbos/variables/set/response/{key}": { - "subscribe": { - "summary": "response: indicates if the save was successful or not", - "description": "", - "tags": [ - { - "name": "Variables", - "description": "All variables related topics." - } - ], - "message": { - "payload": { - "type": "object", - "properties": { - "variables": { - "type": "array", - "description": "A list of all variables, not present when status is false.", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - }, - "id": { - "type": "string" - }, - "state": { - "type": "string" - } - } - } - }, - "status": { - "type": "boolean", - "description": "Will be present when status is false (error message)" - }, - "message": { - "type": "string" - } - } - }, - "name": "GlobalVariables", - "examples": [ - { - "payload": { - "variables": [ - { - "name": "string", - "value": "string" - } - ], - "status": true, - "message": "string" - } - } - ] - } - }, - "parameters": { - "key": { - "description": "Request key to create a unique subscription topic", - "schema": { - "type": "string" - } - } - } - } - }, - "components": { - "schemas": { - "percentage": { - "type": "integer", - "maximum": 100, - "minimum": 0, - "description": "Percentage value between with range 0 to 100" - }, - "key": { - "type": "string", - "description": "Required random key" - } - }, - "messages": { - "emptyMessage": { - "payload": { - "type": "object" - }, - "name": "EmptyMessage", - "summary": "Empty message" - }, - "keyMessage": { - "payload": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "Required random key" - } - } - }, - "name": "KeyResult", - "summary": "Random key", - "examples": [ - { - "payload": { - "key": "ABCxyz" - } - } - ] - }, - "successMessage": { - "payload": { - "type": "object", - "properties": { - "success": { - "type": "boolean" - }, - "message": { - "type": "string", - "description": "Optional error message" - } - } - }, - "name": "SuccessMessage", - "summary": "Success message", - "examples": [ - { - "payload": { - "success": true - } - } - ] - }, - "notificationMessage": { - "payload": { - "type": "object", - "properties": { - "message": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "translate": { - "type": "boolean" - }, - "formatArguments": { - "type": "array", - "items": { - "type": "string" - } - }, - "translationCategory": { - "type": "string" - } - } - } - } - }, - "name": "NotificationOptions", - "summary": "Message json", - "examples": [ - { - "payload": { - "message": { - "message": "string", - "translate": true, - "formatArguments": [ - "string" - ] - } - } - } - ] - } - } - }, - "tags": [ - { - "name": "Speech", - "description": "All speech related topics." - }, - { - "name": "Motion", - "description": "All motion related topics." - }, - { - "name": "Audio", - "description": "All audio related topics." - }, - { - "name": "Status", - "description": "All status related topics." - }, - { - "name": "System", - "description": "All system related topics." - }, - { - "name": "Sensors", - "description": "All sensors related topics." - }, - { - "name": "Leds", - "description": "All leds related topics." - }, - { - "name": "Composer", - "description": "All composer related topics." - }, - { - "name": "Kiosk", - "description": "All kiosk related topics." - }, - { - "name": "Media", - "description": "All media related topics." - }, - { - "name": "Applications", - "description": "All applications related topics." - }, - { - "name": "Translations", - "description": "All translations related topics." - }, - { - "name": "Settings", - "description": "All settings related topics." - }, - { - "name": "Camera", - "description": "All camera related topics." - }, - { - "name": "Domotics", - "description": "All domotics related topics." - }, - { - "name": "Cloud", - "description": "All cloud related topics." - }, - { - "name": "SLAM", - "description": "All slam related topics." - }, - { - "name": "Wifi", - "description": "All wifi related topics." - }, - { - "name": "Connection", - "description": "All connection related topics." - }, - { - "name": "Survey", - "description": "All survey related topics." - }, - { - "name": "Motion detection", - "description": "All motion detection related topics." - }, - { - "name": "Face tracking", - "description": "All face tracking related topics." - }, - { - "name": "SIP", - "description": "All sip related topics." - }, - { - "name": "Time", - "description": "All time related topics." - }, - { - "name": "Variables", - "description": "All variables related topics." - }, - { - "name": "Diagnostics", - "description": "All diagnostics related topics." - } - ] -} \ No newline at end of file diff --git a/test/json-parse_test.js b/test/json-parse_test.js deleted file mode 100644 index a49a168c7..000000000 --- a/test/json-parse_test.js +++ /dev/null @@ -1,76 +0,0 @@ -const chai = require('chai'); -const chaiAsPromised = require('chai-as-promised'); -const jsonParseBetterErrors = require('../lib/json-parse'); -const { checkErrorWrapper } = require('./testsUtils'); - -chai.use(chaiAsPromised); - -describe('jsonParseBetterErrors', function () { - it('should throw error if passed value is an array', async function () { - const expectedErrorObject = { - message: 'Cannot parse an empty array', - }; - await checkErrorWrapper(async () => { - await jsonParseBetterErrors([]); - }, expectedErrorObject); - }); - - it('should throw error if passed value is a Map', async function () { - const expectedErrorObject = { - message: 'Cannot parse [object Map]', - }; - await checkErrorWrapper(async () => { - await jsonParseBetterErrors(new Map()); - }, expectedErrorObject); - }); - - it('should throw error if passed value is a Set', async function () { - const expectedErrorObject = { - message: 'Cannot parse [object Set]', - }; - - await checkErrorWrapper(async () => { - await jsonParseBetterErrors(new Set()); - }, expectedErrorObject); - }); - - it('should throw error if passed value is a WeakMap', async function () { - const expectedErrorObject = { - message: 'Cannot parse [object WeakMap]', - }; - - await checkErrorWrapper(async () => { - await jsonParseBetterErrors(new WeakMap()); - }, expectedErrorObject); - }); - - it('should throw error if passed value is a WeakSet', async function () { - const expectedErrorObject = { - message: 'Cannot parse [object WeakSet]', - }; - - await checkErrorWrapper(async () => { - await jsonParseBetterErrors(new WeakSet()); - }, expectedErrorObject); - }); - - it('should throw error if passed value is a Symbol', async function () { - const expectedErrorObject = { - message: 'Cannot parse Symbol(test)', - }; - - await checkErrorWrapper(async () => { - await jsonParseBetterErrors(Symbol('test')); - }, expectedErrorObject); - }); - - it('should throw error if passed value is a function', async function () { - const expectedErrorObject = { - message: 'Cannot parse () => {}', - }; - - await checkErrorWrapper(async () => { - await jsonParseBetterErrors(() => {}); - }, expectedErrorObject); - }); -}); diff --git a/test/mixins/bindings_test.js b/test/mixins/bindings_test.js deleted file mode 100644 index 20fda958d..000000000 --- a/test/mixins/bindings_test.js +++ /dev/null @@ -1,89 +0,0 @@ -const { expect } = require('chai'); -const { mix } = require('../../lib/models/utils'); - -const Base = require('../../lib/models/base'); -const MixinBindings = require('../../lib/mixins/bindings'); - -const Model = mix(class extends Base {}, MixinBindings); - -const doc1 = { bindings: { amqp: { test: 'test1' } } }; -const doc2 = { bindings: {} }; -const doc3 = {}; -const d1 = new Model(doc1); -const d2 = new Model(doc2); -const d3 = new Model(doc3); - -describe('MixinBindings', function() { - describe('#hasBindings()', function() { - it('should return a boolean indicating if the object has bindings', function() { - expect(d1.hasBindings()).to.be.equal(true); - expect(d2.hasBindings()).to.be.equal(false); - expect(d3.hasBindings()).to.be.equal(false); - }); - }); - - describe('#bindings()', function() { - it('should return a map of bindings', function() { - expect(d1.bindings()).to.deep.equal(doc1.bindings); - }); - it('should return an empty object', function() { - expect(d2.bindings()).to.deep.equal({}); - expect(d3.bindings()).to.deep.equal({}); - }); - }); - - describe('#bindingProtocols()', function() { - it('should return an array of protocol names', function() { - expect(d1.bindingProtocols()).to.deep.equal(['amqp']); - }); - it('should return an empty array', function() { - expect(d2.bindingProtocols()).to.deep.equal([]); - expect(d3.bindingProtocols()).to.deep.equal([]); - }); - }); - - describe('#hasBinding()', function() { - it('should return a boolean indicating if the bindings object has appropriate binding by name', function() { - expect(d1.hasBinding('amqp')).to.be.equal(true); - expect(d1.hasBinding('http')).to.be.equal(false); - expect(d2.hasBinding('amqp')).to.be.equal(false); - expect(d3.hasBinding('amqp')).to.be.equal(false); - }); - }); - - describe('#binding()', function() { - it('should return a binding object', function() { - expect(d1.binding('amqp')).to.deep.equal(doc1.bindings.amqp); - }); - it('should return a null', function() { - expect(d1.binding('http')).to.be.equal(null); - expect(d2.binding('amqp')).to.be.equal(null); - expect(d3.binding('amqp')).to.be.equal(null); - }); - }); -}); - -function assertMixinBindingsInheritance(model) { - describe('MixinBindingsInheritance', function() { - it(`check if ${model.name} model has inherited methods from MixinBindings`, function() { - expect(model.prototype.hasBindings).not.to.be.equal(undefined); - expect(model.prototype.hasBindings === MixinBindings.hasBindings).to.be.equal(true); - - expect(model.prototype.bindings).not.to.be.equal(undefined); - expect(model.prototype.bindings === MixinBindings.bindings).to.be.equal(true); - - expect(model.prototype.bindingProtocols).not.to.be.equal(undefined); - expect(model.prototype.bindingProtocols === MixinBindings.bindingProtocols).to.be.equal(true); - - expect(model.prototype.hasBinding).not.to.be.equal(undefined); - expect(model.prototype.hasBinding === MixinBindings.hasBinding).to.be.equal(true); - - expect(model.prototype.binding).not.to.be.equal(undefined); - expect(model.prototype.binding === MixinBindings.binding).to.be.equal(true); - }); - }); -} - -module.exports = { - assertMixinBindingsInheritance, -}; diff --git a/test/mixins/description_test.js b/test/mixins/description_test.js deleted file mode 100644 index 6d402e1a7..000000000 --- a/test/mixins/description_test.js +++ /dev/null @@ -1,50 +0,0 @@ -const { expect } = require('chai'); -const { mix } = require('../../lib/models/utils'); - -const Base = require('../../lib/models/base'); -const MixinDescription = require('../../lib/mixins/description'); - -const Model = mix(class extends Base {}, MixinDescription); - -const doc1 = { description: 'Testing' }; -const doc2 = { description: '' }; -const doc3 = {}; -const d1 = new Model(doc1); -const d2 = new Model(doc2); -const d3 = new Model(doc3); - -describe('MixinDescription', function() { - describe('#hasDescription()', function() { - it('should return a boolean indicating if the object has description', function() { - expect(d1.hasDescription()).to.be.equal(true); - expect(d2.hasDescription()).to.be.equal(false); - expect(d3.hasDescription()).to.be.equal(false); - }); - }); - - describe('#description()', function() { - it('should return a value', function() { - expect(d1.description()).to.be.equal(doc1.description); - expect(d2.description()).to.be.equal(''); - }); - it('should return a null', function() { - expect(d3.description()).to.be.equal(null); - }); - }); -}); - -function assertMixinDescriptionInheritance(model) { - describe('MixinDescriptionInheritance', function() { - it(`check if ${model.name} model has inherited methods from MixinDescription`, function() { - expect(model.prototype.hasDescription).not.to.be.equal(undefined); - expect(model.prototype.hasDescription === MixinDescription.hasDescription).to.be.equal(true); - - expect(model.prototype.description).not.to.be.equal(undefined); - expect(model.prototype.description === MixinDescription.description).to.be.equal(true); - }); - }); -} - -module.exports = { - assertMixinDescriptionInheritance, -}; diff --git a/test/mixins/external-docs_test.js b/test/mixins/external-docs_test.js deleted file mode 100644 index e6c86d0a5..000000000 --- a/test/mixins/external-docs_test.js +++ /dev/null @@ -1,54 +0,0 @@ -const { expect } = require('chai'); -const { mix } = require('../../lib/models/utils'); - -const Base = require('../../lib/models/base'); -const ExternalDocs = require('../../lib/models/external-docs'); -const MixinExternalDocs = require('../../lib/mixins/external-docs'); - -const Model = mix(class extends Base {}, MixinExternalDocs); - -const doc1 = { externalDocs: { url: 'test.com' } }; -const doc2 = { externalDocs: {} }; -const doc3 = {}; -const d1 = new Model(doc1); -const d2 = new Model(doc2); -const d3 = new Model(doc3); - -describe('MixinExternalDocs', function() { - describe('#hasExternalDocs()', function() { - it('should return a boolean indicating if the object has externalDocs', function() { - expect(d1.hasExternalDocs()).to.be.equal(true); - expect(d2.hasExternalDocs()).to.be.equal(false); - expect(d3.hasExternalDocs()).to.be.equal(false); - }); - }); - - describe('#externalDocs()', function() { - it('should return a externalDocs object', function() { - expect(d1.externalDocs() instanceof ExternalDocs).to.be.equal(true); - expect(d1.externalDocs().json()).to.deep.equal(doc1.externalDocs); - - expect(d2.externalDocs() instanceof ExternalDocs).to.be.equal(true); - expect(d2.externalDocs().json()).to.deep.equal(doc2.externalDocs); - }); - it('should return a null', function() { - expect(d3.externalDocs()).to.be.equal(null); - }); - }); -}); - -function assertMixinExternalDocsInheritance(model) { - describe('MixinExternalDocsInheritance', function() { - it(`check if ${model.name} model has inherited methods from MixinExternalDocs`, function() { - expect(model.prototype.hasExternalDocs).not.to.be.equal(undefined); - expect(model.prototype.hasExternalDocs === MixinExternalDocs.hasExternalDocs).to.be.equal(true); - - expect(model.prototype.externalDocs).not.to.be.equal(undefined); - expect(model.prototype.externalDocs === MixinExternalDocs.externalDocs).to.be.equal(true); - }); - }); -} - -module.exports = { - assertMixinExternalDocsInheritance, -}; diff --git a/test/mixins/specification-extensions_test.js b/test/mixins/specification-extensions_test.js deleted file mode 100644 index 2a9c43d0f..000000000 --- a/test/mixins/specification-extensions_test.js +++ /dev/null @@ -1,143 +0,0 @@ -const { expect } = require('chai'); -const { mix } = require('../../lib/models/utils'); - -const Base = require('../../lib/models/base'); -const MixinSpecificationExtensions = require('../../lib/mixins/specification-extensions'); - -const Model = mix(class extends Base {}, MixinSpecificationExtensions); - -const doc1 = { 'x-test': 'testing', test: 'testing' }; -const doc2 = { test: 'testing' }; -const doc3 = {}; -const d1 = new Model(doc1); -const d2 = new Model(doc2); -const d3 = new Model(doc3); - -describe('MixinSpecificationExtensions', function() { - describe('#hasExtensions()', function() { - it('should return a boolean indicating if the object has extensions', function() { - expect(d1.hasExtensions()).to.be.equal(true); - expect(d2.hasExtensions()).to.be.equal(false); - expect(d3.hasExtensions()).to.be.equal(false); - }); - }); - - describe('#extensions()', function() { - it('should return a object with extensions', function() { - expect(d1.extensions()).to.deep.equal({ 'x-test': 'testing'}); - }); - it('should return a empty object', function() { - expect(d2.extensions()).to.deep.equal({}); - expect(d3.extensions()).to.deep.equal({}); - }); - }); - - describe('#extensionKeys()', function() { - it('should return an array of extension keys', function() { - expect(d1.extensionKeys()).to.deep.equal(['x-test']); - }); - it('should return an empty array', function() { - expect(d2.extensionKeys()).to.deep.equal([]); - expect(d3.extensionKeys()).to.deep.equal([]); - }); - }); - - describe('#extKeys()', function() { - it('should return an array of extension keys', function() { - expect(d1.extKeys()).to.deep.equal(['x-test']); - }); - it('should return a null', function() { - expect(d2.extKeys()).to.deep.equal([]); - expect(d3.extKeys()).to.deep.equal([]); - }); - }); - - describe('#hasExtension()', function() { - it('should return a boolean indicating if the object has appropriate extension by key', function() { - expect(d1.hasExtension('x-test')).to.be.equal(true); - expect(d1.hasExtension('x-test2')).to.be.equal(false); - expect(d2.hasExtension('x-test')).to.be.equal(false); - expect(d3.hasExtension('x-test')).to.be.equal(false); - }); - it('should return false key is not prefixed by `x-`', function() { - expect(d1.hasExtension('test')).to.be.equal(false); - }); - }); - - describe('#extension()', function() { - it('should return a value', function() { - expect(d1.extension('x-test')).to.be.equal('testing'); - }); - it('should return an undefined', function() { - expect(d1.extension('x-test2')).to.be.equal(undefined); - expect(d2.extension('x-test')).to.be.equal(undefined); - expect(d3.extension('x-test')).to.be.equal(undefined); - }); - it('should return null if key is not prefixed by `x-`', function() { - expect(d1.extension('test')).to.be.equal(null); - }); - }); - - describe('#hasExt()', function() { - it('should return a boolean indicating if the object has appropriate extension by key', function() { - expect(d1.hasExt('x-test')).to.be.equal(true); - expect(d1.hasExt('x-test2')).to.be.equal(false); - expect(d2.hasExt('x-test')).to.be.equal(false); - expect(d3.hasExt('x-test')).to.be.equal(false); - }); - it('should return false key is not prefixed by `x-`', function() { - expect(d1.hasExt('test')).to.be.equal(false); - }); - }); - - describe('#ext()', function() { - it('should return a value', function() { - expect(d1.ext('x-test')).to.be.equal('testing'); - }); - it('should return an undefined', function() { - expect(d1.ext('x-test2')).to.be.equal(undefined); - expect(d2.ext('x-test')).to.be.equal(undefined); - expect(d3.ext('x-test')).to.be.equal(undefined); - }); - it('should return null if key is not prefixed by `x-`', function() { - expect(d1.ext('test')).to.be.equal(null); - }); - }); -}); - -function assertMixinSpecificationExtensionsInheritance(model) { - describe('MixinSpecificationExtensionsInheritance', function() { - it(`check if ${model.name} model has inherited methods from MixinSpecificationExtensions`, function() { - expect(model.prototype.hasExtensions).not.to.be.equal(undefined); - expect(model.prototype.hasExtensions === MixinSpecificationExtensions.hasExtensions).to.be.equal(true); - - expect(model.prototype.extensions).not.to.be.equal(undefined); - expect(model.prototype.extensions === MixinSpecificationExtensions.extensions).to.be.equal(true); - - expect(model.prototype.extensionKeys).not.to.be.equal(undefined); - expect(model.prototype.extensionKeys === MixinSpecificationExtensions.extensionKeys).to.be.equal(true); - - expect(model.prototype.extKeys).not.to.be.equal(undefined); - expect(model.prototype.extKeys === MixinSpecificationExtensions.extKeys).to.be.equal(true); - - expect(model.prototype.extension).not.to.be.equal(undefined); - expect(model.prototype.extension === MixinSpecificationExtensions.extension).to.be.equal(true); - - expect(model.prototype.hasExtension).not.to.be.equal(undefined); - expect(model.prototype.hasExtension === MixinSpecificationExtensions.hasExtension).to.be.equal(true); - - expect(model.prototype.extension).not.to.be.equal(undefined); - expect(model.prototype.extension === MixinSpecificationExtensions.extension).to.be.equal(true); - - expect(model.prototype.hasExt).not.to.be.equal(undefined); - expect(model.prototype.hasExt === MixinSpecificationExtensions.hasExt).to.be.equal(true); - - expect(model.prototype.ext).not.to.be.equal(undefined); - expect(model.prototype.ext === MixinSpecificationExtensions.ext).to.be.equal(true); - }); - }); -} - -module.exports = { - assertMixinSpecificationExtensionsInheritance, -}; diff --git a/test/mixins/tags_test.js b/test/mixins/tags_test.js deleted file mode 100644 index ee57b2f99..000000000 --- a/test/mixins/tags_test.js +++ /dev/null @@ -1,101 +0,0 @@ -const { expect } = require('chai'); -const { mix } = require('../../lib/models/utils'); - -const Base = require('../../lib/models/base'); -const Tag = require('../../lib/models/tag'); -const MixinTags = require('../../lib/mixins/tags'); - -const Model = mix(class extends Base {}, MixinTags); - -const doc1 = { tags: [{ name: 'test1' }, { name: 'test2' }] }; -const doc2 = { tags: [] }; -const doc3 = {}; -const d1 = new Model(doc1); -const d2 = new Model(doc2); -const d3 = new Model(doc3); - -describe('MixinTags', function() { - describe('#hasTags()', function() { - it('should return a boolean indicating if the object has tags', function() { - expect(d1.hasTags()).to.be.equal(true); - expect(d2.hasTags()).to.be.equal(false); - expect(d3.hasTags()).to.be.equal(false); - }); - }); - - describe('#tags()', function() { - it('should return an array of tag objects', function() { - expect(Array.isArray(d1.tags())).to.be.equal(true); - d1.tags().forEach((tag, i) => { - expect(tag instanceof Tag).to.be.equal(true); - expect(tag.json()).to.deep.equal(doc1.tags[i]); - }); - }); - it('should return an empty array', function() { - expect(d2.tags()).to.deep.equal([]); - expect(d3.tags()).to.deep.equal([]); - }); - }); - - describe('#tagNames()', function() { - it('should return an array of tag names', function() { - expect(d1.tagNames()).to.deep.equal(['test1', 'test2']); - }); - it('should return an empty array', function() { - expect(d2.tagNames()).to.deep.equal([]); - expect(d3.tagNames()).to.deep.equal([]); - }); - }); - - describe('#hasTag()', function() { - it('should return a boolean indicating if the tags object has appropriate tag by name', function() { - expect(d1.hasTag('test1')).to.be.equal(true); - expect(d1.hasTag('test2')).to.be.equal(true); - expect(d1.hasTag('test3')).to.be.equal(false); - expect(d2.hasTag('test1')).to.be.equal(false); - expect(d3.hasTag('test1')).to.be.equal(false); - }); - }); - - describe('#tag()', function() { - it('should return a tag object', function() { - expect(d1.tag('test1')).not.to.be.equal(null); - expect(d1.tag('test1') instanceof Tag).to.be.equal(true); - expect(d1.tag('test2')).not.to.be.equal(null); - expect(d1.tag('test2') instanceof Tag).to.be.equal(true); - }); - it('should return a null', function() { - expect(d1.tag('test3')).to.be.equal(null); - expect(d1.tag('test3') instanceof Tag).not.to.be.equal(true); - expect(d2.tag('test1')).to.be.equal(null); - expect(d2.tag('test1') instanceof Tag).not.to.be.equal(true); - expect(d3.tag('test1')).to.be.equal(null); - expect(d3.tag('test1') instanceof Tag).not.to.be.equal(true); - }); - }); -}); - -function assertMixinTagsInheritance(model) { - describe('MixinTagsInheritance', function() { - it(`check if ${model.name} model has inherited methods from MixinTags`, function() { - expect(model.prototype.hasTags).not.to.be.equal(undefined); - expect(model.prototype.hasTags === MixinTags.hasTags).to.be.equal(true); - - expect(model.prototype.tags).not.to.be.equal(undefined); - expect(model.prototype.tags === MixinTags.tags).to.be.equal(true); - - expect(model.prototype.tagNames).not.to.be.equal(undefined); - expect(model.prototype.tagNames === MixinTags.tagNames).to.be.equal(true); - - expect(model.prototype.hasTag).not.to.be.equal(undefined); - expect(model.prototype.hasTag === MixinTags.hasTag).to.be.equal(true); - - expect(model.prototype.tag).not.to.be.equal(undefined); - expect(model.prototype.tag === MixinTags.tag).to.be.equal(true); - }); - }); -} - -module.exports = { - assertMixinTagsInheritance, -}; diff --git a/test/models/asyncapi_test.js b/test/models/asyncapi_test.js deleted file mode 100644 index 27682a36a..000000000 --- a/test/models/asyncapi_test.js +++ /dev/null @@ -1,1096 +0,0 @@ -const { expect } = require('chai'); -const fs = require('fs'); -const path = require('path'); - -const parser = require('../../lib'); -const AsyncAPIDocument = require('../../lib/models/asyncapi'); -const { xParserMessageName, xParserSchemaId } = require('../../lib/constants'); - -const { assertMixinTagsInheritance } = require('../mixins/tags_test'); -const { assertMixinExternalDocsInheritance } = require('../mixins/external-docs_test'); -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -const simpleInputJSON = fs.readFileSync(path.resolve(__dirname, '../good/asyncapi.json'), 'utf8'); -const simpleOutputJSON = '{"asyncapi":"2.0.0","info":{"title":"My API","version":"1.0.0"},"channels":{"mychannel":{"publish":{"message":{"payload":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""},"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"name":{"type":"string"}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":""}}}},"components":{"messages":{"testMessage":{"payload":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""},"test":{"type":"object","properties":{"testing":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"},"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"name":{"type":"string"},"test":{"type":"object","properties":{"testing":{"type":"string"}}}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":"testMessage"}},"schemas":{"testSchema":"$ref:$.components.messages.testMessage.payload"}},"x-parser-spec-parsed":true,"x-parser-spec-stringified":true}'; -const circularYAML = fs.readFileSync(path.resolve(__dirname, '../good/circular-refs.yaml'), 'utf8'); -const circularOutputYAML = '{"asyncapi":"2.0.0","info":{"title":"My Circular API","version":"1.0.0"},"channels":{"recursive":{"subscribe":{"message":{"payload":{"type":"object","properties":{"selfChildren":{"type":"array","items":"$ref:$.channels.recursive.subscribe.message.payload","x-parser-schema-id":""},"selfObjectChildren":{"type":"object","properties":{"test":"$ref:$.channels.recursive.subscribe.message.payload","nonRecursive":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""},"selfSomething":{"type":"object","properties":{"test":{"type":"object","properties":{"ancestorChildren":{"type":"array","items":"$ref:$.channels.recursive.subscribe.message.payload","x-parser-schema-id":""},"ancestorSomething":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":"RecursiveAncestor"}},"x-parser-schema-id":""}},"x-parser-schema-id":"RecursiveSelf"},"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":"$ref:$.channels.recursive.subscribe.message.payload","schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":""}}},"external/file":{"publish":{"message":{"payload":{"type":"object","properties":{"testExt":{"type":"object","properties":{"children":{"type":"array","items":"$ref:$.channels.external/file.publish.message.payload","x-parser-schema-id":""}},"x-parser-schema-id":""}},"x-parser-schema-id":""},"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":"$ref:$.channels.external/file.publish.message.payload","schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":""}}},"nonRecursive":{"subscribe":{"message":{"payload":{"type":"object","properties":{"child":{"type":"object","properties":{"value":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":"NonRecursiveChild"}},"x-parser-schema-id":"NonRecursive"},"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"child":{"type":"object","properties":{"value":{"type":"string"}}}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":""}}},"testChannel":{"subscribe":{"message":{"oneOf":[{"contentType":"application/json","payload":{"type":"object","properties":{"schemaBReference":{"type":"string","enum":["ENUM_A","ENUM_B","ENUM_C","ENUM_D"],"x-parser-schema-id":"NormalSchemaB"},"schemaCReference":{"allOf":["$ref:$.channels.testChannel.subscribe.message.oneOf[0].payload.properties.schemaBReference",{"type":"string","enum":["ENUM_E"],"x-parser-schema-id":""}],"x-parser-schema-id":"NormalSchemaC"},"commonEnumName":{"type":"string","enum":["ENUM_1","ENUM_2"],"x-parser-schema-id":""}},"x-parser-schema-id":"NormalSchemaA"},"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"schemaBReference":{"type":"string","enum":["ENUM_A","ENUM_B","ENUM_C","ENUM_D"]},"schemaCReference":{"allOf":["$ref:$.channels.testChannel.subscribe.message.oneOf[0].x-parser-original-payload.properties.schemaBReference",{"type":"string","enum":["ENUM_E"]}]},"commonEnumName":{"type":"string","enum":["ENUM_1","ENUM_2"]}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":"testMessage"}]}}}},"components":{"messages":{"testMessage":"$ref:$.channels.testChannel.subscribe.message.oneOf[0]"},"schemas":{"NonRecursive":"$ref:$.channels.nonRecursive.subscribe.message.payload","NonRecursiveChild":"$ref:$.channels.nonRecursive.subscribe.message.payload.properties.child","RecursiveSelf":"$ref:$.channels.recursive.subscribe.message.payload","RecursiveAncestor":"$ref:$.channels.recursive.subscribe.message.payload.properties.selfSomething.properties.test","NormalSchemaA":"$ref:$.channels.testChannel.subscribe.message.oneOf[0].payload","NormalSchemaB":"$ref:$.channels.testChannel.subscribe.message.oneOf[0].payload.properties.schemaBReference","NormalSchemaC":"$ref:$.channels.testChannel.subscribe.message.oneOf[0].payload.properties.schemaCReference","NestedAllOfSchema":{"allOf":["$ref:$.channels.testChannel.subscribe.message.oneOf[0].payload",{"type":"object","properties":{"parent":{"allOf":["$ref:$.components.schemas.NestedAllOfSchema","$ref:$.channels.testChannel.subscribe.message.oneOf[0].payload"],"x-parser-schema-id":""},"name":{"type":"string","x-parser-schema-id":""}},"required":["name"],"x-parser-schema-id":""}],"x-parser-schema-id":"NestedAllOfSchema"},"OneOf":{"type":"object","properties":{"kind":{"oneOf":["$ref:$.components.schemas.OneOf",{"type":"string","x-parser-schema-id":""},{"enum":["boolean","string"],"x-parser-schema-id":""}],"x-parser-schema-id":""}},"x-parser-schema-id":"OneOf"},"AnyOf":{"anyOf":[{"type":"integer","x-parser-schema-id":""},{"type":"number","x-parser-schema-id":""},{"type":"string","x-parser-schema-id":""},{"type":"boolean","x-parser-schema-id":""},{"type":"object","x-parser-schema-id":""},{"type":"array","items":"$ref:$.components.schemas.AnyOf","x-parser-schema-id":""}],"x-parser-schema-id":"AnyOf"},"RecursiveComplex":{"type":["object","array"],"patternProperties":{"^foo":"$ref:$.channels.recursive.subscribe.message.payload","^bar":{"type":"string","x-parser-schema-id":""}},"contains":"$ref:$.components.schemas.RecursiveComplex","items":[{"type":"string","x-parser-schema-id":""},"$ref:$.components.schemas.RecursiveComplex"],"if":"$ref:$.channels.recursive.subscribe.message.payload.properties.selfSomething.properties.test","then":"$ref:$.components.schemas.RecursiveComplex","x-parser-schema-id":"RecursiveComplex"}}},"x-parser-circular":true,"x-parser-spec-parsed":true,"x-parser-spec-stringified":true}'; - -describe('AsyncAPIDocument', function() { - describe('constructor', function() { - it('should not change assigned uids', function() { - const schema = {}; - const message = { - payload: schema, - }; - - const inputDoc = { - channels: { - channel: { - subscribe: { - message, - }, - publish: { - message: { - payload: {} - } - } - } - }, - components: { - messages: { - someMessage: message, - }, - schemas: { - someSchema: schema, - } - } - }; - - let d = new AsyncAPIDocument(inputDoc); // NOSONAR - d = new AsyncAPIDocument(JSON.parse(JSON.stringify(d.json()))); // NOSONAR - - expect(d.json().channels.channel.subscribe.message[xParserMessageName]).to.be.equal('someMessage'); - expect(d.json().channels.channel.subscribe.message.payload[xParserSchemaId]).to.be.equal('someSchema'); - - expect(d.json().channels.channel.publish.message[xParserMessageName]).to.be.equal(''); - expect(d.json().channels.channel.publish.message.payload[xParserSchemaId]).to.be.equal(''); - - expect(d.json().components.messages.someMessage[xParserMessageName]).to.be.equal('someMessage'); - expect(d.json().components.messages.someMessage.payload[xParserSchemaId]).to.be.equal('someSchema'); - - expect(d.json().components.schemas.someSchema[xParserSchemaId]).to.be.equal('someSchema'); - }); - }); - - describe('assignUidToParameterSchemas()', function() { - it('should assign uids to parameters', function() { - const inputDoc = { channels: { 'smartylighting/{streetlightId}': { parameters: { streetlightId: { schema: { type: 'string' } } } } } }; - const expectedDoc = { channels: { 'smartylighting/{streetlightId}': { parameters: { streetlightId: { schema: { type: 'string', 'x-parser-schema-id': 'streetlightId' } } } } }, 'x-parser-spec-parsed': true }; - const d = new AsyncAPIDocument(inputDoc); - expect(d.json()).to.be.deep.equal(expectedDoc); - }); - }); - - describe('assignUidToComponentParameterSchemas()', function() { - it('should assign uids to component parameters', function() { - const inputDoc = { channels: { 'smartylighting/{streetlightId}': {}, components: { parameters: { streetlightId: { schema: { type: 'string' } } } } } }; - const expectedDoc = { channels: { 'smartylighting/{streetlightId}': {}, components: { parameters: {streetlightId: { schema: { type: 'string', 'x-parser-schema-id': 'streetlightId' } } } } }, 'x-parser-spec-parsed': true }; - const d = new AsyncAPIDocument(inputDoc); - expect(d.json()).to.be.deep.equal(expectedDoc); - }); - }); - - describe('#info()', function() { - it('should return an info object', function() { - const doc = { info: { title: 'Test', version: '1.2.3', license: { name: 'Apache 2.0', url: 'https://www.apache.org/licenses/LICENSE-2.0' } } }; - const d = new AsyncAPIDocument(doc); - expect(d.info().constructor.name).to.be.equal('Info'); - expect(d.info().json()).to.be.equal(doc.info); - }); - }); - - describe('#id()', function() { - it('should return the id string', function() { - const doc = { id: 'urn:test' }; - const d = new AsyncAPIDocument(doc); - expect(d.id()).to.be.equal(doc.id); - }); - }); - - describe('#hasServers()', function() { - it('should return a boolean indicating if the AsyncAPI document has servers', function() { - const doc = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; - const docNoServers = { test: 'testing' }; - const d = new AsyncAPIDocument(doc); - const d2 = new AsyncAPIDocument(docNoServers); - expect(d.hasServers()).to.equal(true); - expect(d2.hasServers()).to.equal(false); - }); - }); - - describe('#servers()', function() { - it('should return a map of server objects', function() { - const doc = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; - const d = new AsyncAPIDocument(doc); - expect(typeof d.servers()).to.be.equal('object'); - expect(d.servers().test1.constructor.name).to.equal('Server'); - expect(d.servers().test1.json()).to.equal(doc.servers.test1); - expect(d.servers().test2.constructor.name).to.equal('Server'); - expect(d.servers().test2.json()).to.equal(doc.servers.test2); - }); - - it('should return an empty object if the AsyncAPI document has no defined servers', function() { - const doc = {}; - const d = new AsyncAPIDocument(doc); - expect(typeof d.servers()).to.be.equal('object'); - expect(d.servers()).to.deep.equal({}); - }); - }); - - describe('#serverNames()', function() { - it('should return an array of strings', function() { - const doc = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; - const d = new AsyncAPIDocument(doc); - expect(Array.isArray(d.serverNames())).to.be.equal(true); - expect(d.serverNames()).to.deep.equal(['test1', 'test2']); - }); - - it('should return an empty array if the AsyncAPI document has no defined servers', function() { - const doc = {}; - const d = new AsyncAPIDocument(doc); - expect(Array.isArray(d.serverNames())).to.be.equal(true); - expect(d.serverNames()).to.deep.equal([]); - }); - }); - - describe('#server()', function() { - it('should return a specific server object', function() { - const doc = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; - const d = new AsyncAPIDocument(doc); - expect(d.server('test1').constructor.name).to.equal('Server'); - expect(d.server('test1').json()).to.equal(doc.servers.test1); - }); - - it('should return null if a server name is not provided', function() { - const doc = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; - const d = new AsyncAPIDocument(doc); - expect(d.server()).to.equal(null); - }); - - it('should return null if a server name is not found', function() { - const doc = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; - const d = new AsyncAPIDocument(doc); - expect(d.server('not found')).to.equal(null); - }); - }); - - describe('#hasDefaultContentType()', function() { - it('should return true if field exists', function() { - const doc = { defaultContentType: 'application/json' }; - const d = new AsyncAPIDocument(doc); - expect(d.hasDefaultContentType()).to.be.equal(true); - }); - - it('should return false if field does not exist', function() { - const doc = {}; - const d = new AsyncAPIDocument(doc); - expect(d.hasDefaultContentType()).to.be.equal(false); - }); - }); - - describe('#defaultContentType()', function() { - it('should return string if field exists', function() { - const doc = { defaultContentType: 'application/json' }; - const d = new AsyncAPIDocument(doc); - expect(d.defaultContentType()).to.be.equal('application/json'); - }); - - it('should return null if field does not exist', function() { - const doc = {}; - const d = new AsyncAPIDocument(doc); - expect(d.defaultContentType()).to.be.equal(null); - }); - }); - - describe('#hasChannels()', function() { - it('should return a boolean indicating if the AsyncAPI document has channels', function() { - const doc = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; - const docNoChannels = { test: 'testing' }; - const d = new AsyncAPIDocument(doc); - const d2 = new AsyncAPIDocument(docNoChannels); - expect(d.hasChannels()).to.equal(true); - expect(d2.hasChannels()).to.equal(false); - }); - }); - - describe('#channels()', function() { - it('should return a map of channel objects', function() { - const doc = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; - const d = new AsyncAPIDocument(doc); - expect(typeof d.channels()).to.be.equal('object'); - expect(d.channels().test1.constructor.name).to.equal('Channel'); - expect(d.channels().test1.json()).to.equal(doc.channels.test1); - expect(d.channels().test2.constructor.name).to.equal('Channel'); - expect(d.channels().test2.json()).to.equal(doc.channels.test2); - }); - - it('should return an empty object if the AsyncAPI document has no defined channels', function() { - const doc = {}; - const d = new AsyncAPIDocument(doc); - expect(typeof d.channels()).to.be.equal('object'); - expect(d.servers()).to.deep.equal({}); - }); - }); - - describe('#channelNames()', function() { - it('should return an array of strings', function() { - const doc = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; - const d = new AsyncAPIDocument(doc); - expect(Array.isArray(d.channelNames())).to.be.equal(true); - expect(d.channelNames()).to.deep.equal(['test1', 'test2']); - }); - - it('should return an empty array if the AsyncAPI document has no defined channels', function() { - const doc = {}; - const d = new AsyncAPIDocument(doc); - expect(Array.isArray(d.channelNames())).to.be.equal(true); - expect(d.channelNames()).to.deep.equal([]); - }); - }); - - describe('#channel()', function() { - it('should return a specific channel object', function() { - const doc = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; - const d = new AsyncAPIDocument(doc); - expect(d.channel('test1').constructor.name).to.equal('Channel'); - expect(d.channel('test1').json()).to.equal(doc.channels.test1); - }); - - it('should return null if a channel name is not provided', function() { - const doc = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; - const d = new AsyncAPIDocument(doc); - expect(d.channel()).to.equal(null); - }); - - it('should return null if a channel name is not found', function() { - const doc = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; - const d = new AsyncAPIDocument(doc); - expect(d.channel('not found')).to.equal(null); - }); - }); - - describe('#hasComponents()', function() { - it('should return a boolean indicating if the AsyncAPI document has components', function() { - const doc = { components: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; - const docNoComponents = { test: 'testing' }; - const d = new AsyncAPIDocument(doc); - const d2 = new AsyncAPIDocument(docNoComponents); - expect(d.hasComponents()).to.equal(true); - expect(d2.hasComponents()).to.equal(false); - }); - }); - - describe('#components()', function() { - it('should return the components object', function() { - const doc = { components: { test: 'testing' } }; - const d = new AsyncAPIDocument(doc); - expect(d.components().constructor.name).to.equal('Components'); - expect(d.components().json()).to.equal(doc.components); - }); - }); - - describe('#hasMessages()', function() { - it('should return true if there is a message in components but not in channels', function() { - const doc = { components: { messages: { test: { test: true, k: 3 } } } }; - const d = new AsyncAPIDocument(doc); - expect(d.hasMessages()).to.equal(true); - }); - it('should return true if there is a message in channels operations but not in components', function() { - const doc = { channels: { test: { publish: { message: { name: 'test', test: false, k: 1 } } } } }; - const d = new AsyncAPIDocument(doc); - expect(d.hasMessages()).to.equal(true); - }); - it('should return false if there are no messages neither in components nor in channels operations', function() { - const doc = { channels: { test: { publish: { } } }, components: { } }; - const d = new AsyncAPIDocument(doc); - expect(d.hasMessages()).to.equal(false); - }); - }); - - describe('#allMessages()', function() { - it('should return an array with all the messages used in the document and overwrite the message from channel', function() { - const doc = { channels: { test: { publish: { message: { name: 'test', test: false, k: 1 } } } }, components: { messages: { test: { test: true, k: 3 } } } }; - const d = new AsyncAPIDocument(doc); - const allMessages = d.allMessages(); - expect(allMessages.size).to.be.equal(1); - expect(allMessages.get('test').constructor.name).to.be.equal('Message'); - expect(allMessages.get('test').json().test).to.be.equal(true); - }); - it('should return an array with all the messages used in the document', function() { - const doc = { channels: { test: { publish: { message: { test: true, k: 1 } } }, test2: { subscribe: { message: { name: 'test', test: true, k: 2 } } } }, components: { messages: { test: { test: true, k: 3 } } } }; - const d = new AsyncAPIDocument(doc); - expect(d.allMessages().size).to.be.equal(2); - d.allMessages().forEach(t => { - expect(t.constructor.name).to.be.equal('Message'); - expect(t.json().test).to.be.equal(true); - }); - }); - }); - - describe('#allSchemas()', function() { - it('should return additional items schemas when no items specified', function() { - const doc = { - channels: { - some_channel: { - subscribe: { - message: { - name: 'some_map', - payload: { - type: 'array', - $id: 'payloadSchema', - test: true, - additionalItems: { - type: 'string', - $id: 'additionalItemSchema', - test: true - } - } - } - } - } - } - }; - const d = new AsyncAPIDocument(doc); - const schemas = d.allSchemas(); - expect(schemas.size).to.be.equal(2); - //Ensure the actual keys are as expected - const schemaKeys = Array.from(schemas.keys()); - expect(schemaKeys).to.deep.equal([ - 'payloadSchema', - 'additionalItemSchema' - ]); - for (const t of schemas.values()) { - expect(t.constructor.name).to.be.equal('Schema'); - expect(t.json().test).to.be.equal(true); - } - }); - it('should return additional property schemas when no properties are specified', function() { - const doc = { - channels: { - some_channel: { - subscribe: { - message: { - name: 'some_map', - payload: { - type: 'object', - $id: 'payloadSchema', - test: true, - additionalProperties: { - type: 'string', - $id: 'additionalPropSchema', - test: true - } - } - } - } - } - } - }; - const d = new AsyncAPIDocument(doc); - const schemas = d.allSchemas(); - expect(schemas.size).to.be.equal(2); - //Ensure the actual keys are as expected - const schemaKeys = Array.from(schemas.keys()); - expect(schemaKeys).to.deep.equal([ - 'payloadSchema', - 'additionalPropSchema' - ]); - for (const t of schemas.values()) { - expect(t.constructor.name).to.be.equal('Schema'); - expect(t.json().test).to.be.equal(true); - } - }); - it('should return a map with all the schemas used in the document', function() { - const doc = { channels: { test: { parameters: { testParam1: { schema: { $id: 'testParamSchema', test: true, k: 0 } } }, publish: { message: { headers: { test: true, k: 1 }, payload: { test: true, k: 2 } } } }, test2: { subscribe: { message: { payload: { $id: 'testPayload', test: true, k: 2 } } } } }, components: { schemas: { testSchema: { test: true, k: 3 } } } }; - const d = new AsyncAPIDocument(doc); - const schemas = d.allSchemas(); - expect(schemas.size).to.be.equal(5); - - //Ensure the actual keys are as expected - const schemaKeys = Array.from(schemas.keys()); - expect(schemaKeys).to.deep.equal([ - 'testParamSchema', - '', - '', - 'testPayload', - 'testSchema' - ]); - for (const t of schemas.values()) { - expect(t.constructor.name).to.be.equal('Schema'); - expect(t.json().test).to.be.equal(true); - } - }); - it('should return a map with all the nested schemas', function() { - const doc = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../good/nested-schemas.json'), 'utf8')); - const d = new AsyncAPIDocument(doc); - const schemas = d.allSchemas(); - - //Ensure the actual keys are as expected - const schemaKeys = Array.from(schemas.keys()); - expect(schemaKeys).to.deep.equal([ - 'testParamSchema', - 'testParamNestedSchemaProp', - 'testParamNestedNestedSchemaProp2', - 'testHeaderSchema', - 'testHeaderNestedSchemaProp', - 'testHeaderNestedNestedSchemaProp1', - 'testHeaderNestedSchemaPropArray', - 'testHeaderNestedSchemaPropArrayProp1', - 'testPayloadSchema', - 'testPayloadNestedSchemaProp', - 'testPayloadNestedNestedSchemaProp1', - 'testPayloadNestedSchemaPropArray', - 'testPayloadNestedSchemaPropArrayProp1', - 'testPayload', - 'testComponentSchemaSchema', - 'testComponentSchemaNestedSchemaPropAllOf', - 'testComponentSchemaNestedSchemaPropAllOfSchema1', - 'testComponentSchemaNestedSchemaPropAllOfSchema1Prop1', - 'testComponentSchemaNestedSchemaPropAllOfSchema2', - 'testComponentSchemaNestedSchemaPropAllOfSchema2Prop1', - 'testComponentSchemaNestedSchemaPropArray', - 'testComponentSchemaNestedSchemaPropArrayProp1', - 'testComponentSchemaNestedSchemaPropArrayProp2', - 'testComponentSchemaNestedSchemaPropPatternProperties', - 'testComponentSchemaNestedSchemaPropPatternPropertiesProp1', - 'testComponentSchemaNestedSchemaPropPatternPropertiesProp2', - 'testComponentSchemaNestedSchemaPropConditional', - 'testComponentSchemaNestedSchemaPropConditionalIf', - 'testComponentSchemaNestedSchemaPropConditionalThen', - 'testComponentSchemaNestedSchemaPropConditionalElse', - 'testComponentSchemaNestedSchemaPropDependencies', - 'testComponentSchemaNestedSchemaPropDependenciesDep1', - 'testComponentSchemaNestedSchemaPropDependenciesDep3', - 'testComponentSchemaNestedSchemaPropDefinitions', - 'testComponentSchemaNestedSchemaPropDefinitionsDef1', - 'testComponentSchemaNestedSchemaPropDefinitionsDef2', - 'testComponentSchemaNestedSchemaPropMisc', - 'testComponentSchemaNestedSchemaPropMiscPropertyNames', - 'testComponentSchemaNestedSchemaPropMiscContains', - 'testComponentSchemaNestedSchemaPropMiscNot', - ]); - for (const t of schemas.values()) { - expect(t.constructor.name).to.be.equal('Schema'); - expect(t.json().test).to.be.equal(true); - } - }); - }); - - /* eslint-disable sonarjs/cognitive-complexity */ - describe('#traverseSchemas()', function() { // NOSONAR - const parameterSchemas = [ - 'testParamSchema', - 'testParamNestedSchemaProp', - 'testParamNestedNestedSchemaProp2' - ]; - const headerObjectSchemas = [ - 'testHeaderSchema', - 'testHeaderNestedSchemaProp', - 'testHeaderNestedNestedSchemaProp1', - ]; - const headerArraySchemas = [ - 'testHeaderNestedSchemaPropArray', - 'testHeaderNestedSchemaPropArrayProp1' - ]; - const payloadObjectSchemas = [ - 'testPayloadSchema', - 'testPayloadNestedSchemaProp', - 'testPayloadNestedNestedSchemaProp1' - ]; - const payloadArraySchemas = [ - 'testPayloadNestedSchemaPropArray', - 'testPayloadNestedSchemaPropArrayProp1' - ]; - const payloadSchemas = [ - 'testPayload' - ]; - const componentObjectAllOfSchema = [ - 'testComponentSchemaNestedSchemaPropAllOf', - ]; - const componentObjectAllOfSchemas = [ - 'testComponentSchemaNestedSchemaPropAllOf', - 'testComponentSchemaNestedSchemaPropAllOfSchema1', - 'testComponentSchemaNestedSchemaPropAllOfSchema1Prop1', - 'testComponentSchemaNestedSchemaPropAllOfSchema2', - 'testComponentSchemaNestedSchemaPropAllOfSchema2Prop1', - ]; - const componentObjectSchemas = [ - 'testComponentSchemaSchema' - ]; - const componentArraySchemas = [ - 'testComponentSchemaNestedSchemaPropArray', - 'testComponentSchemaNestedSchemaPropArrayProp1', - 'testComponentSchemaNestedSchemaPropArrayProp2' - ]; - const componentPatternPropertiesSchema = [ - 'testComponentSchemaNestedSchemaPropPatternProperties', - ]; - const componentPatternPropertiesSchemas = [ - ...componentPatternPropertiesSchema, - 'testComponentSchemaNestedSchemaPropPatternPropertiesProp1', - 'testComponentSchemaNestedSchemaPropPatternPropertiesProp2', - ]; - const componentConditionalSchema = [ - 'testComponentSchemaNestedSchemaPropConditional', - ]; - const componentConditionalSchemas = [ - ...componentConditionalSchema, - 'testComponentSchemaNestedSchemaPropConditionalIf', - 'testComponentSchemaNestedSchemaPropConditionalThen', - 'testComponentSchemaNestedSchemaPropConditionalElse', - ]; - const componentDependenciesSchema = [ - 'testComponentSchemaNestedSchemaPropDependencies', - ]; - const componentDependenciesSchemas = [ - ...componentDependenciesSchema, - 'testComponentSchemaNestedSchemaPropDependenciesDep1', - 'testComponentSchemaNestedSchemaPropDependenciesDep3', - ]; - const componentDefinitionsSchema = [ - 'testComponentSchemaNestedSchemaPropDefinitions', - ]; - const componentDefinitionsSchemas = [ - ...componentDefinitionsSchema, - 'testComponentSchemaNestedSchemaPropDefinitionsDef1', - 'testComponentSchemaNestedSchemaPropDefinitionsDef2', - ]; - const componentMiscSchema = [ - 'testComponentSchemaNestedSchemaPropMisc', - ]; - const componentMiscSchemas = [ - ...componentMiscSchema, - 'testComponentSchemaNestedSchemaPropMiscPropertyNames', - 'testComponentSchemaNestedSchemaPropMiscContains', - 'testComponentSchemaNestedSchemaPropMiscNot', - ]; - it('should not include parameter schemas if defined', function() { - const doc = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../good/nested-schemas.json'), 'utf8')); - const d = new AsyncAPIDocument(doc); - const schemas = new Map(); - const cb = (schema) => { - schemas.set(schema.uid(), schema); - }; - const typesToTraverse = [ - 'objects', - 'arrays', - 'components', - 'oneOfs', - 'allOfs', - 'anyOfs', - 'payloads', - 'headers', - 'patternProperties', - 'ifs', - 'thenes', - 'elses', - 'dependencies', - 'definitions', - ]; - d.traverseSchemas(cb, typesToTraverse); - - //Ensure the actual keys are as expected - const schemaKeys = Array.from(schemas.keys()); - expect(schemaKeys).to.deep.equal([ - ...headerObjectSchemas, - ...headerArraySchemas, - ...payloadObjectSchemas, - ...payloadArraySchemas, - ...payloadSchemas, - ...componentObjectSchemas, - ...componentObjectAllOfSchemas, - ...componentArraySchemas, - ...componentPatternPropertiesSchemas, - ...componentConditionalSchemas, - ...componentDependenciesSchemas, - ...componentDefinitionsSchemas, - ...componentMiscSchema, - ]); - for (const t of schemas.values()) { - expect(t.constructor.name).to.be.equal('Schema'); - expect(t.json().test).to.be.equal(true); - } - }); - it('should not include payload schemas if defined', function() { - const doc = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../good/nested-schemas.json'), 'utf8')); - const d = new AsyncAPIDocument(doc); - const schemas = new Map(); - const cb = (schema) => { - schemas.set(schema.uid(), schema); - }; - const typesToTraverse = [ - 'objects', - 'arrays', - 'components', - 'oneOfs', - 'allOfs', - 'anyOfs', - 'parameters', - 'headers', - 'patternProperties', - 'ifs', - 'thenes', - 'elses', - 'dependencies', - 'definitions', - ]; - d.traverseSchemas(cb, typesToTraverse); - - //Ensure the actual keys are as expected - const schemaKeys = Array.from(schemas.keys()); - expect(schemaKeys).to.deep.equal([ - ...parameterSchemas, - ...headerObjectSchemas, - ...headerArraySchemas, - ...componentObjectSchemas, - ...componentObjectAllOfSchemas, - ...componentArraySchemas, - ...componentPatternPropertiesSchemas, - ...componentConditionalSchemas, - ...componentDependenciesSchemas, - ...componentDefinitionsSchemas, - ...componentMiscSchema, - ]); - for (const t of schemas.values()) { - expect(t.constructor.name).to.be.equal('Schema'); - expect(t.json().test).to.be.equal(true); - } - }); - it('should not include header schemas if defined', function() { - const doc = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../good/nested-schemas.json'), 'utf8')); - const d = new AsyncAPIDocument(doc); - const schemas = new Map(); - const cb = (schema) => { - schemas.set(schema.uid(), schema); - }; - const typesToTraverse = [ - 'objects', - 'arrays', - 'components', - 'oneOfs', - 'allOfs', - 'anyOfs', - 'parameters', - 'payloads', - 'patternProperties', - 'ifs', - 'thenes', - 'elses', - 'dependencies', - 'definitions', - ]; - d.traverseSchemas(cb, typesToTraverse); - - //Ensure the actual keys are as expected - const schemaKeys = Array.from(schemas.keys()); - expect(schemaKeys).to.deep.equal([ - ...parameterSchemas, - ...payloadObjectSchemas, - ...payloadArraySchemas, - ...payloadSchemas, - ...componentObjectSchemas, - ...componentObjectAllOfSchemas, - ...componentArraySchemas, - ...componentPatternPropertiesSchemas, - ...componentConditionalSchemas, - ...componentDependenciesSchemas, - ...componentDefinitionsSchemas, - ...componentMiscSchema, - ]); - for (const t of schemas.values()) { - expect(t.constructor.name).to.be.equal('Schema'); - expect(t.json().test).to.be.equal(true); - } - }); - it('should not include arrays if defined', function() { - const doc = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../good/nested-schemas.json'), 'utf8')); - const d = new AsyncAPIDocument(doc); - const schemas = new Map(); - const cb = (schema) => { - schemas.set(schema.uid(), schema); - }; - const typesToTraverse = [ - 'objects', - 'components', - 'oneOfs', - 'allOfs', - 'anyOfs', - 'parameters', - 'payloads', - 'headers', - 'patternProperties', - 'ifs', - 'thenes', - 'elses', - 'dependencies', - 'definitions', - ]; - d.traverseSchemas(cb, typesToTraverse); - - //Ensure the actual keys are as expected - const schemaKeys = Array.from(schemas.keys()); - expect(schemaKeys).to.deep.equal([ - ...parameterSchemas, - ...headerObjectSchemas, - ...payloadObjectSchemas, - ...payloadSchemas, - ...componentObjectSchemas, - ...componentObjectAllOfSchemas, - ...componentPatternPropertiesSchemas, - ...componentConditionalSchemas, - ...componentDependenciesSchemas, - ...componentDefinitionsSchemas, - ]); - for (const t of schemas.values()) { - expect(t.constructor.name).to.be.equal('Schema'); - expect(t.json().test).to.be.equal(true); - } - }); - it('should not include components if defined', function() { - const doc = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../good/nested-schemas.json'), 'utf8')); - const d = new AsyncAPIDocument(doc); - const schemas = new Map(); - const cb = (schema) => { - schemas.set(schema.uid(), schema); - }; - const typesToTraverse = [ - 'objects', - 'arrays', - 'oneOfs', - 'allOfs', - 'anyOfs', - 'parameters', - 'payloads', - 'headers', - ]; - d.traverseSchemas(cb, typesToTraverse); - - //Ensure the actual keys are as expected - const schemaKeys = Array.from(schemas.keys()); - expect(schemaKeys).to.deep.equal([ - ...parameterSchemas, - ...headerObjectSchemas, - ...headerArraySchemas, - ...payloadObjectSchemas, - ...payloadArraySchemas, - ...payloadSchemas, - ]); - for (const t of schemas.values()) { - expect(t.constructor.name).to.be.equal('Schema'); - expect(t.json().test).to.be.equal(true); - } - }); - it('should not include combined schemas if defined', function() { - const doc = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../good/nested-schemas.json'), 'utf8')); - const d = new AsyncAPIDocument(doc); - const schemas = new Map(); - const cb = (schema) => { - schemas.set(schema.uid(), schema); - }; - const typesToTraverse = [ - 'objects', - 'arrays', - 'parameters', - 'payloads', - 'headers', - 'components', - 'patternProperties', - 'ifs', - 'thenes', - 'elses', - 'dependencies', - 'definitions', - ]; - d.traverseSchemas(cb, typesToTraverse); - - //Ensure the actual keys are as expected - const schemaKeys = Array.from(schemas.keys()); - expect(schemaKeys).to.deep.equal([ - ...parameterSchemas, - ...headerObjectSchemas, - ...headerArraySchemas, - ...payloadObjectSchemas, - ...payloadArraySchemas, - ...payloadSchemas, - ...componentObjectSchemas, - ...componentObjectAllOfSchema, - ...componentArraySchemas, - ...componentPatternPropertiesSchemas, - ...componentConditionalSchemas, - ...componentDependenciesSchemas, - ...componentDefinitionsSchemas, - ...componentMiscSchema, - ]); - for (const t of schemas.values()) { - expect(t.constructor.name).to.be.equal('Schema'); - expect(t.json().test).to.be.equal(true); - } - }); - it('should not include conditional schemas if defined', function() { - const doc = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../good/nested-schemas.json'), 'utf8')); - const d = new AsyncAPIDocument(doc); - const schemas = new Map(); - const cb = (schema) => { - schemas.set(schema.uid(), schema); - }; - const typesToTraverse = [ - 'objects', - 'arrays', - 'parameters', - 'payloads', - 'headers', - 'components', - 'patternProperties', - 'dependencies', - 'definitions', - ]; - d.traverseSchemas(cb, typesToTraverse); - - //Ensure the actual keys are as expected - const schemaKeys = Array.from(schemas.keys()); - expect(schemaKeys).to.deep.equal([ - ...parameterSchemas, - ...headerObjectSchemas, - ...headerArraySchemas, - ...payloadObjectSchemas, - ...payloadArraySchemas, - ...payloadSchemas, - ...componentObjectSchemas, - ...componentObjectAllOfSchema, - ...componentArraySchemas, - ...componentPatternPropertiesSchemas, - ...componentConditionalSchema, - ...componentDependenciesSchemas, - ...componentDefinitionsSchemas, - ...componentMiscSchema, - ]); - for (const t of schemas.values()) { - expect(t.constructor.name).to.be.equal('Schema'); - expect(t.json().test).to.be.equal(true); - } - }); - it('should not include dependencies schemas if defined', function() { - const doc = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../good/nested-schemas.json'), 'utf8')); - const d = new AsyncAPIDocument(doc); - const schemas = new Map(); - const cb = (schema) => { - schemas.set(schema.uid(), schema); - }; - const typesToTraverse = [ - 'objects', - 'arrays', - 'parameters', - 'payloads', - 'headers', - 'components', - 'patternProperties', - 'ifs', - 'thenes', - 'elses', - 'definitions', - ]; - d.traverseSchemas(cb, typesToTraverse); - - //Ensure the actual keys are as expected - const schemaKeys = Array.from(schemas.keys()); - expect(schemaKeys).to.deep.equal([ - ...parameterSchemas, - ...headerObjectSchemas, - ...headerArraySchemas, - ...payloadObjectSchemas, - ...payloadArraySchemas, - ...payloadSchemas, - ...componentObjectSchemas, - ...componentObjectAllOfSchema, - ...componentArraySchemas, - ...componentPatternPropertiesSchemas, - ...componentConditionalSchemas, - ...componentDependenciesSchema, - ...componentDefinitionsSchemas, - ...componentMiscSchema, - ]); - for (const t of schemas.values()) { - expect(t.constructor.name).to.be.equal('Schema'); - expect(t.json().test).to.be.equal(true); - } - }); - it('should not include definitions schemas if defined', function() { - const doc = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../good/nested-schemas.json'), 'utf8')); - const d = new AsyncAPIDocument(doc); - const schemas = new Map(); - const cb = (schema) => { - schemas.set(schema.uid(), schema); - }; - const typesToTraverse = [ - 'objects', - 'arrays', - 'parameters', - 'payloads', - 'headers', - 'components', - 'patternProperties', - 'ifs', - 'thenes', - 'elses', - 'dependencies', - ]; - d.traverseSchemas(cb, typesToTraverse); - - //Ensure the actual keys are as expected - const schemaKeys = Array.from(schemas.keys()); - expect(schemaKeys).to.deep.equal([ - ...parameterSchemas, - ...headerObjectSchemas, - ...headerArraySchemas, - ...payloadObjectSchemas, - ...payloadArraySchemas, - ...payloadSchemas, - ...componentObjectSchemas, - ...componentObjectAllOfSchema, - ...componentArraySchemas, - ...componentPatternPropertiesSchemas, - ...componentConditionalSchemas, - ...componentDependenciesSchemas, - ...componentDefinitionsSchema, - ...componentMiscSchema, - ]); - for (const t of schemas.values()) { - expect(t.constructor.name).to.be.equal('Schema'); - expect(t.json().test).to.be.equal(true); - } - }); - it('should include all schemas', function() { - const doc = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../good/nested-schemas.json'), 'utf8')); - const d = new AsyncAPIDocument(doc); - const schemas = new Map(); - const cb = (schema) => { - schemas.set(schema.uid(), schema); - }; - d.traverseSchemas(cb); - - //Ensure the actual keys are as expected - const schemaKeys = Array.from(schemas.keys()); - expect(schemaKeys).to.deep.equal([ - ...parameterSchemas, - ...headerObjectSchemas, - ...headerArraySchemas, - ...payloadObjectSchemas, - ...payloadArraySchemas, - ...payloadSchemas, - ...componentObjectSchemas, - ...componentObjectAllOfSchemas, - ...componentArraySchemas, - ...componentPatternPropertiesSchemas, - ...componentConditionalSchemas, - ...componentDependenciesSchemas, - ...componentDefinitionsSchemas, - ...componentMiscSchemas, - ]); - for (const t of schemas.values()) { - expect(t.constructor.name).to.be.equal('Schema'); - expect(t.json().test).to.be.equal(true); - } - }); - }); - /* eslint-enable sonarjs/cognitive-complexity */ - - describe('#stringify()', function() { - it('should stringify simple document', async function() { - const doc = await parser.parse(simpleInputJSON, { path: path.join(__filename, '../../') }); - const stringified = AsyncAPIDocument.stringify(doc); - expect(stringified).to.be.equal(simpleOutputJSON); - }); - - it('should stringify document with circular references', async function() { - const doc = await parser.parse(circularYAML, { path: path.join(__filename, '../../') }); - const stringified = AsyncAPIDocument.stringify(doc); - expect(stringified).to.be.equal(circularOutputYAML); - }); - - it('should copy object', async function() { - const doc = await parser.parse(simpleInputJSON, { path: path.join(__filename, '../../') }); - const stringified = AsyncAPIDocument.stringify(doc); - expect(doc.json()['x-parser-spec-stringified']).to.be.equal(undefined); - expect(JSON.parse(stringified)['x-parser-spec-stringified']).to.be.equal(true); - }); - }); - - describe('#parse()', function() { - it('should parse stringified simple document', async function() { - const parsedDoc = await parser.parse(simpleInputJSON, { path: path.join(__filename, '../../') }); - const doc = AsyncAPIDocument.parse(simpleOutputJSON); - expect(JSON.stringify(doc.json())).to.be.equal(JSON.stringify(parsedDoc.json())); - }); - - it('should not parse invalid document', async function() { - const parsedDoc = await parser.parse(simpleInputJSON, { path: path.join(__filename, '../../') }); - delete parsedDoc.json()['x-parser-spec-parsed']; - - let error; - try { - AsyncAPIDocument.parse(parsedDoc); - } catch (err) { - error = err; - } - expect(error.message).to.be.equal('Cannot parse invalid AsyncAPI document'); - }); - - it('should parse stringified document with circular references', async function() { - // Test circular references to ensure that every circular reference has this same reference after parsing - const result = AsyncAPIDocument.parse(circularOutputYAML); - - // not testing on a model level as required xParserCircle value is added before model construction so we need to test through calling parser function - expect(result.hasCircular()).to.equal(true); - - // we want false here, even though this schema has some circular refs in some props, it is not circular, but just specific items - expect(result.components().schema('RecursiveSelf').isCircular()).to.equal(false); - expect(result.components().schema('NonRecursive').isCircular()).to.equal(false); - expect(result.components().schema('RecursiveSelf').properties()['selfChildren'].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveSelf').properties()['selfChildren'].items().isCircular()).to.equal(true); - expect(result.components().schema('RecursiveSelf').properties()['selfObjectChildren'].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveSelf').properties()['selfObjectChildren'].properties()['test'].isCircular()).to.equal(true); - expect(result.components().schema('NonRecursive').properties()['child'].isCircular()).to.equal(false); - - // NormalSchemaB is referred twice, from NormalSchemaA and NormalSchemaC. - // If seenObjects array is not handled properly, once NormalSchemaB is seen for a second time while traversing NormalSchemaC, then NormalSchemaC is marked as object holding circular refs - // This is why it is important to check that NormalSchemaC is or sure not marked as circular - expect(result.components().schema('NormalSchemaC').isCircular()).to.equal(false); - - // NestedAllOfSchema has circular reference - expect(result.components().schema('NestedAllOfSchema').allOf()[0].isCircular()).to.equal(false); - expect(result.components().schema('NestedAllOfSchema').allOf()[1].properties()['parent'].allOf()[0].isCircular()).to.equal(true); - expect(result.components().schema('NestedAllOfSchema').allOf()[1].properties()['parent'].allOf()[1].isCircular()).to.equal(false); - - // OneOf has circular reference - expect(result.components().schema('OneOf').properties()['kind'].isCircular()).to.equal(false); - expect(result.components().schema('OneOf').properties()['kind'].oneOf()[0].isCircular()).to.equal(true); - - // AnyOf has circular reference - expect(result.components().schema('AnyOf').anyOf()[5].isCircular()).to.equal(false); - expect(result.components().schema('AnyOf').anyOf()[5].items().isCircular()).to.equal(true); - - // external/file channel has deep circular reference - expect(result.channel('external/file').publish().messages()[0].payload().properties()['testExt'].properties()['children'].isCircular()).to.equal(false); - expect(result.channel('external/file').publish().messages()[0].payload().properties()['testExt'].properties()['children'].items().isCircular()).to.equal(true); - - // RecursiveSelf and RecursiveAncestor have deep circular references - expect(result.components().schema('RecursiveSelf').properties()['selfSomething'].properties()['test'].properties()['ancestorChildren'].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveSelf').properties()['selfSomething'].properties()['test'].properties()['ancestorChildren'].items().isCircular()).to.equal(true); - expect(result.components().schema('RecursiveAncestor').properties()['ancestorChildren'].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveAncestor').properties()['ancestorChildren'].items().properties()['selfSomething'].properties()['test'].isCircular()).to.equal(true); - - // RecursiveComplex has complex deep circular references - expect(result.components().schema('RecursiveComplex').contains().isCircular()).to.equal(true); - expect(result.components().schema('RecursiveComplex').items()[0].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveComplex').items()[1].isCircular()).to.equal(true); - expect(result.components().schema('RecursiveComplex').then().isCircular()).to.equal(true); - expect(result.components().schema('RecursiveComplex').if().properties()['ancestorChildren'].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveComplex').if().properties()['ancestorChildren'].items().properties()['selfSomething'].properties()['test'].isCircular()).to.equal(true); - expect(result.components().schema('RecursiveComplex').patternProperties()['^bar'].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveComplex').patternProperties()['^foo'].properties()['selfChildren'].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveComplex').patternProperties()['^foo'].properties()['selfChildren'].items().isCircular()).to.equal(true); - expect(result.components().schema('RecursiveComplex').patternProperties()['^foo'].properties()['selfObjectChildren'].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveComplex').patternProperties()['^foo'].properties()['selfObjectChildren'].properties()['test'].isCircular()).to.equal(true); - expect(result.components().schema('RecursiveComplex').patternProperties()['^foo'].properties()['selfSomething'].properties()['test'].properties()['ancestorChildren'].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveComplex').patternProperties()['^foo'].properties()['selfSomething'].properties()['test'].properties()['ancestorChildren'].items().isCircular()).to.equal(true); - }); - }); - - describe('mixins', function() { - it('model should inherit from mixins', function() { - assertMixinTagsInheritance(AsyncAPIDocument); - assertMixinExternalDocsInheritance(AsyncAPIDocument); - assertMixinSpecificationExtensionsInheritance(AsyncAPIDocument); - }); - }); -}); diff --git a/test/models/base_test.js b/test/models/base_test.js deleted file mode 100644 index fe244f122..000000000 --- a/test/models/base_test.js +++ /dev/null @@ -1,25 +0,0 @@ -const { expect } = require('chai'); - -const Base = require('../../lib/models/base'); - -describe('Base', function() { - describe('#json()', function() { - it('should return the whole JSON object', function() { - const doc = { test: 'testing' }; - const d = new Base(doc); - expect(d.json()).to.be.deep.equal(doc); - }); - - it('should return the value of a given key', function() { - const doc = { test: 'testing' }; - const d = new Base(doc); - expect(d.json('test')).to.be.equal(doc.test); - }); - - it('should return the value of a given key, even when this is falsy', function() { - const doc = { 0: 'testing' }; - const d = new Base(doc); - expect(d.json(0)).to.be.equal(doc[0]); - }); - }); -}); diff --git a/test/models/channel-parameter_test.js b/test/models/channel-parameter_test.js deleted file mode 100644 index 99778e906..000000000 --- a/test/models/channel-parameter_test.js +++ /dev/null @@ -1,31 +0,0 @@ -const { expect } = require('chai'); -const js = { description: 'param1', location: '$message.headers#/x-param1', schema: { type: 'string' }, 'x-test': 'testing' }; - -const ChannelParameter = require('../../lib/models/channel-parameter'); - -const { assertMixinDescriptionInheritance } = require('../mixins/description_test'); -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -describe('ChannelParameter', function() { - describe('#location()', function() { - it('should return a string', function() { - const d = new ChannelParameter(js); - expect(d.location()).to.be.equal(js.location); - }); - }); - - describe('#schema()', function() { - it('should return a Schema object', function() { - const d = new ChannelParameter(js); - expect(d.schema().constructor.name).to.be.equal('Schema'); - expect(d.schema().json()).to.equal(js.schema); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinDescriptionInheritance(ChannelParameter); - assertMixinSpecificationExtensionsInheritance(ChannelParameter); - }); - }); -}); diff --git a/test/models/channel_test.js b/test/models/channel_test.js deleted file mode 100644 index 131550d31..000000000 --- a/test/models/channel_test.js +++ /dev/null @@ -1,137 +0,0 @@ -const { expect } = require('chai'); -const js = { description: 'test', parameters: { param1: { description: 'param1', location: '$message.headers#/x-param1', schema: { type: 'string' } } }, bindings: { amqp: 'test' }, 'x-test': 'testing' }; -const jsWithServers = { description: 'channel with servers', servers: ['server1', 'server2'] }; -const jsWithoutServers = { description: 'channel without servers' }; - -const Channel = require('../../lib/models/channel'); - -const { assertMixinDescriptionInheritance } = require('../mixins/description_test'); -const { assertMixinBindingsInheritance } = require('../mixins/bindings_test'); -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); -const { isString } = require('lodash'); - -describe('Channel', function() { - describe('#hasParameters()', function() { - it('should return a boolean indicating if the AsyncAPI document has channel parameters', function() { - const doc = { parameters: { test1param: { description: 'test1param' } } }; - const docNoChannelParams = { description: 'test' }; - const d = new Channel(doc); - const d2 = new Channel(docNoChannelParams); - expect(d.hasParameters()).to.equal(true); - expect(d2.hasParameters()).to.equal(false); - }); - }); - - describe('#parameters()', function() { - it('should return a map of ChannelParameter objects', function() { - const d = new Channel(js); - expect(typeof d.parameters()).to.be.equal('object'); - expect(d.parameters().param1.constructor.name).to.equal('ChannelParameter'); - expect(d.parameters().param1.json()).to.equal(js.parameters.param1); - }); - }); - - describe('#parameter()', function() { - it('should return a specific ChannelParameter object', function() { - const d = new Channel(js); - expect(d.parameter('param1').constructor.name).to.be.equal('ChannelParameter'); - expect(d.parameter('param1').json()).to.equal(js.parameters.param1); - }); - }); - - describe('#hasServers()', function() { - it('should return a boolean indicating if the channel has a servers list', function() { - const d1 = new Channel(jsWithServers); - const d2 = new Channel(jsWithoutServers); - expect(d1.hasServers()).to.equal(true); - expect(d2.hasServers()).to.equal(false); - }); - }); - - describe('#servers()', function() { - it('should return an array of String server names if the channel has a servers list', function() { - const d = new Channel(jsWithServers); - expect(Array.isArray(d.servers())).to.equal(true); - d.servers().forEach((s, i) => { - expect(isString(s)).to.equal(true); - expect(s).to.equal(jsWithServers.servers[i]); - }); - }); - - it('should return an empty array if the channel doesn\'t have servers', function() { - const d = new Channel(jsWithoutServers); - expect(Array.isArray(d.servers())).to.equal(true); - expect(d.servers().length).to.equal(0); - }); - }); - - describe('#server()', function() { - it('should return null if the channel doesn\'t have servers', function() { - const d = new Channel(jsWithoutServers); - expect(d.server()).to.be.equal(null); - }); - - it('should return a specific server String name', function() { - const d = new Channel(jsWithServers); - jsWithServers.servers.forEach((s, i) => { - expect(d.server(i)).to.equal(s); - }); - }); - - it('should return null when index is out of bounds', function() { - const d1 = new Channel(jsWithServers); - const d2 = new Channel(jsWithoutServers); - expect(d1.server(100)).to.equal(null); - expect(d2.server(1)).to.equal(null); - }); - - it('should return null if index is not a number', function() { - const d = new Channel(jsWithServers); - expect(d.server('0')).to.equal(null); - }); - }); - - describe('#publish()', function() { - it('should return a PublishOperation object', function() { - const jsWithPub = { publish: { description: 'pub' } }; - const d = new Channel(jsWithPub); - expect(d.publish().constructor.name).to.be.equal('PublishOperation'); - expect(d.publish().json()).to.equal(jsWithPub.publish); - }); - }); - - describe('#subscribe()', function() { - it('should return a SubscribeOperation object', function() { - const jsWithSub = { subscribe: { description: 'sub' } }; - const d = new Channel(jsWithSub); - expect(d.subscribe().constructor.name).to.be.equal('SubscribeOperation'); - expect(d.subscribe().json()).to.equal(jsWithSub.subscribe); - }); - }); - - describe('#hasPublish()', function() { - it('should return true if the channel contains the publish operation', function() { - const d = new Channel({ publish: { description: 'pub' } }); - expect(d.hasPublish()).to.be.equal(true); - const d2 = new Channel({ subscribe: { description: 'sub' } }); - expect(d2.hasPublish()).to.be.equal(false); - }); - }); - - describe('#hasSubscribe()', function() { - it('should return true if the channel contains the publish operation', function() { - const d = new Channel({ publish: { description: 'pub' } }); - expect(d.hasSubscribe()).to.be.equal(false); - const d2 = new Channel({ subscribe: { description: 'sub' } }); - expect(d2.hasSubscribe()).to.be.equal(true); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinDescriptionInheritance(Channel); - assertMixinBindingsInheritance(Channel); - assertMixinSpecificationExtensionsInheritance(Channel); - }); - }); -}); diff --git a/test/models/components_test.js b/test/models/components_test.js deleted file mode 100644 index 5bdb59b15..000000000 --- a/test/models/components_test.js +++ /dev/null @@ -1,472 +0,0 @@ -const { expect } = require('chai'); - -const Components = require('../../lib/models/components'); - -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -describe('Components', function() { - describe('#channels()', function() { - it('should return a map of Channel objects', function() { - const doc = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; - const d = new Components(doc); - expect(typeof d.channels()).to.be.equal('object'); - expect(d.channels().test1.constructor.name).to.equal('Channel'); - expect(d.channels().test1.json()).to.equal(doc.channels.test1); - expect(d.channels().test2.constructor.name).to.equal('Channel'); - expect(d.channels().test2.json()).to.equal(doc.channels.test2); - }); - - it('should return an empty object if the components field has no defined channels', function() { - const doc = {}; - const d = new Components(doc); - expect(typeof d.channels()).to.be.equal('object'); - expect(d.channels()).to.deep.equal({}); - }); - }); - - describe('#hasChannels()', function() { - it('should return a boolean indicating if the components field has channels', function() { - const doc = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; - const docNoChannels = { schemas: {} }; - const d = new Components(doc); - const d2 = new Components(docNoChannels); - expect(d.hasChannels()).to.equal(true); - expect(d2.hasChannels()).to.equal(false); - }); - }); - - describe('#channel()', function() { - it('should return a specific Channel object', function() { - const doc = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; - const d = new Components(doc); - expect(d.channel('test1').constructor.name).to.equal('Channel'); - expect(d.channel('test1').json()).to.equal(doc.channels.test1); - }); - - it('should return null if a channel name is not provided', function() { - const doc = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; - const d = new Components(doc); - expect(d.channel()).to.equal(null); - }); - - it('should return null if a channel name is not found', function() { - const doc = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; - const d = new Components(doc); - expect(d.channel('not found')).to.equal(null); - }); - }); - - describe('#messages()', function() { - it('should return a map of Message objects', function() { - const doc = { messages: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(typeof d.messages()).to.be.equal('object'); - expect(d.messages().test1.constructor.name).to.equal('Message'); - expect(d.messages().test1.json()).to.equal(doc.messages.test1); - expect(d.messages().test2.constructor.name).to.equal('Message'); - expect(d.messages().test2.json()).to.equal(doc.messages.test2); - }); - - it('should return an empty object if the components field has no defined messages', function() { - const doc = {}; - const d = new Components(doc); - expect(typeof d.messages()).to.be.equal('object'); - expect(d.messages()).to.deep.equal({}); - }); - }); - - describe('#hasMessages()', function() { - it('should return a boolean indicating if the components field has messages', function() { - const doc = { messages: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const docNoMessages = { schemas: {} }; - const d = new Components(doc); - const d2 = new Components(docNoMessages); - expect(d.hasMessages()).to.equal(true); - expect(d2.hasMessages()).to.equal(false); - }); - }); - - describe('#message()', function() { - it('should return a specific Message object', function() { - const doc = { messages: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.message('test1').constructor.name).to.equal('Message'); - expect(d.message('test1').json()).to.equal(doc.messages.test1); - }); - - it('should return null if a message name is not provided', function() { - const doc = { messages: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.message()).to.equal(null); - }); - - it('should return null if a message name is not found', function() { - const doc = { messages: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.message('not found')).to.equal(null); - }); - }); - - describe('#schemas()', function() { - it('should return a map of Schema objects', function() { - const doc = { schemas: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(typeof d.schemas()).to.be.equal('object'); - expect(d.schemas().test1.constructor.name).to.equal('Schema'); - expect(d.schemas().test1.json()).to.equal(doc.schemas.test1); - expect(d.schemas().test2.constructor.name).to.equal('Schema'); - expect(d.schemas().test2.json()).to.equal(doc.schemas.test2); - }); - - it('should return an empty object if the components field has no defined schemas', function() { - const doc = {}; - const d = new Components(doc); - expect(typeof d.schemas()).to.be.equal('object'); - expect(d.schemas()).to.deep.equal({}); - }); - }); - - describe('#hasSchemas()', function() { - it('should return a boolean indicating if the components field has schemas', function() { - const doc = { schemas: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const docNoSchemas = { messages: {} }; - const d = new Components(doc); - const d2 = new Components(docNoSchemas); - expect(d.hasSchemas()).to.equal(true); - expect(d2.hasSchemas()).to.equal(false); - }); - }); - - describe('#schema()', function() { - it('should return a specific Schema object', function() { - const doc = { schemas: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.schema('test1').constructor.name).to.equal('Schema'); - expect(d.schema('test1').json()).to.equal(doc.schemas.test1); - }); - - it('should return null if a schema name is not provided', function() { - const doc = { schemas: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.schema()).to.equal(null); - }); - - it('should return null if a schema name is not found', function() { - const doc = { schemas: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.schema('not found')).to.equal(null); - }); - }); - - describe('#securitySchemes()', function() { - it('should return a map of Security Scheme objects', function() { - const doc = { securitySchemes: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(typeof d.securitySchemes()).to.be.equal('object'); - expect(d.securitySchemes().test1.constructor.name).to.equal('SecurityScheme'); - expect(d.securitySchemes().test1.json()).to.equal(doc.securitySchemes.test1); - expect(d.securitySchemes().test2.constructor.name).to.equal('SecurityScheme'); - expect(d.securitySchemes().test2.json()).to.equal(doc.securitySchemes.test2); - }); - - it('should return an empty object if the components field has no defined securitySchemes', function() { - const doc = {}; - const d = new Components(doc); - expect(typeof d.securitySchemes()).to.be.equal('object'); - expect(d.securitySchemes()).to.deep.equal({}); - }); - }); - - describe('#hasSecuritySchemes()', function() { - it('should return a boolean indicating if the components field has securitySchemes', function() { - const doc = { securitySchemes: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const docNoSchemas = { messages: {} }; - const d = new Components(doc); - const d2 = new Components(docNoSchemas); - expect(d.hasSecuritySchemes()).to.equal(true); - expect(d2.hasSecuritySchemes()).to.equal(false); - }); - }); - - describe('#securityScheme()', function() { - it('should return a specific securityScheme object', function() { - const doc = { securitySchemes: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.securityScheme('test1').constructor.name).to.equal('SecurityScheme'); - expect(d.securityScheme('test1').json()).to.equal(doc.securitySchemes.test1); - }); - - it('should return null if a securityScheme name is not provided', function() { - const doc = { securitySchemes: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.securityScheme()).to.equal(null); - }); - - it('should return null if a securityScheme name is not found', function() { - const doc = { securitySchemes: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.securityScheme('not found')).to.equal(null); - }); - }); - - describe('#servers()', function() { - it('should return a map of Server objects', function() { - const doc = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; - const d = new Components(doc); - expect(typeof d.servers()).to.be.equal('object'); - expect(d.servers().test1.constructor.name).to.equal('Server'); - expect(d.servers().test1.json()).to.equal(doc.servers.test1); - expect(d.servers().test2.constructor.name).to.equal('Server'); - expect(d.servers().test2.json()).to.equal(doc.servers.test2); - }); - - it('should return an empty object if the components field has no defined servers', function() { - const doc = {}; - const d = new Components(doc); - expect(typeof d.servers()).to.be.equal('object'); - expect(d.servers()).to.deep.equal({}); - }); - }); - - describe('#hasServers()', function() { - it('should return a boolean indicating if the components field has servers', function() { - const doc = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; - const docNoServers = { schemas: {} }; - const d = new Components(doc); - const d2 = new Components(docNoServers); - expect(d.hasServers()).to.equal(true); - expect(d2.hasServers()).to.equal(false); - }); - }); - - describe('#server()', function() { - it('should return a specific Server object', function() { - const doc = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; - const d = new Components(doc); - expect(d.server('test1').constructor.name).to.equal('Server'); - expect(d.server('test1').json()).to.equal(doc.servers.test1); - }); - - it('should return null if a message name is not provided', function() { - const doc = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; - const d = new Components(doc); - expect(d.server()).to.equal(null); - }); - - it('should return null if a message name is not found', function() { - const doc = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; - const d = new Components(doc); - expect(d.server('not found')).to.equal(null); - }); - }); - - describe('#parameters()', function() { - it('should return a map of ChannelParameter objects', function() { - const doc = { parameters: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(typeof d.parameters()).to.be.equal('object'); - expect(d.parameters().test1.constructor.name).to.equal('ChannelParameter'); - expect(d.parameters().test1.json()).to.equal(doc.parameters.test1); - expect(d.parameters().test2.constructor.name).to.equal('ChannelParameter'); - expect(d.parameters().test2.json()).to.equal(doc.parameters.test2); - }); - - it('should return an empty object if the components field has no defined parameters', function() { - const doc = {}; - const d = new Components(doc); - expect(typeof d.parameters()).to.be.equal('object'); - expect(d.parameters()).to.deep.equal({}); - }); - }); - - describe('#hasParameters()', function() { - it('should return a boolean indicating if the components field has parameters', function() { - const doc = { parameters: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const docNoSchemas = { messages: {} }; - const d = new Components(doc); - const d2 = new Components(docNoSchemas); - expect(d.hasParameters()).to.equal(true); - expect(d2.hasParameters()).to.equal(false); - }); - }); - - describe('#parameter()', function() { - it('should return a specific parameter object', function() { - const doc = { parameters: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.parameter('test1').constructor.name).to.equal('ChannelParameter'); - expect(d.parameter('test1').json()).to.equal(doc.parameters.test1); - }); - - it('should return null if a parameter name is not provided', function() { - const doc = { parameters: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.parameter()).to.equal(null); - }); - - it('should return null if a parameter name is not found', function() { - const doc = { parameters: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.parameter('not found')).to.equal(null); - }); - }); - - describe('#correlationIds()', function() { - it('should return a map of CorrelationId objects', function() { - const doc = { correlationIds: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(typeof d.correlationIds()).to.be.equal('object'); - expect(d.correlationIds().test1.constructor.name).to.equal('CorrelationId'); - expect(d.correlationIds().test1.json()).to.equal(doc.correlationIds.test1); - expect(d.correlationIds().test2.constructor.name).to.equal('CorrelationId'); - expect(d.correlationIds().test2.json()).to.equal(doc.correlationIds.test2); - }); - - it('should return an empty object if the components field has no defined correlationIds', function() { - const doc = {}; - const d = new Components(doc); - expect(typeof d.correlationIds()).to.be.equal('object'); - expect(d.correlationIds()).to.deep.equal({}); - }); - }); - - describe('#hasCorrelationIds()', function() { - it('should return a boolean indicating if the components field has correlationIds', function() { - const doc = { correlationIds: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const docNoSchemas = { messages: {} }; - const d = new Components(doc); - const d2 = new Components(docNoSchemas); - expect(d.hasCorrelationIds()).to.equal(true); - expect(d2.hasCorrelationIds()).to.equal(false); - }); - }); - - describe('#correlationId()', function() { - it('should return a specific correlationId object', function() { - const doc = { correlationIds: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.correlationId('test1').constructor.name).to.equal('CorrelationId'); - expect(d.correlationId('test1').json()).to.equal(doc.correlationIds.test1); - }); - - it('should return null if a correlationId name is not provided', function() { - const doc = { correlationIds: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.correlationId()).to.equal(null); - }); - - it('should return null if a correlationId name is not found', function() { - const doc = { correlationIds: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.correlationId('not found')).to.equal(null); - }); - }); - - describe('#operationTraits()', function() { - it('should return a map of OperationTrait objects', function() { - const doc = { operationTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(typeof d.operationTraits()).to.be.equal('object'); - expect(d.operationTraits().test1.constructor.name).to.equal('OperationTrait'); - expect(d.operationTraits().test1.json()).to.equal(doc.operationTraits.test1); - expect(d.operationTraits().test2.constructor.name).to.equal('OperationTrait'); - expect(d.operationTraits().test2.json()).to.equal(doc.operationTraits.test2); - }); - - it('should return an empty object if the components field has no defined operationTraits', function() { - const doc = {}; - const d = new Components(doc); - expect(typeof d.operationTraits()).to.be.equal('object'); - expect(d.operationTraits()).to.deep.equal({}); - }); - }); - - describe('#hasOperationTraits()', function() { - it('should return a boolean indicating if the components field has operationTraits', function() { - const doc = { operationTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const docNoSchemas = { messages: {} }; - const d = new Components(doc); - const d2 = new Components(docNoSchemas); - expect(d.hasOperationTraits()).to.equal(true); - expect(d2.hasOperationTraits()).to.equal(false); - }); - }); - - describe('#operationTrait()', function() { - it('should return a specific operationTrait object', function() { - const doc = { operationTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.operationTrait('test1').constructor.name).to.equal('OperationTrait'); - expect(d.operationTrait('test1').json()).to.equal(doc.operationTraits.test1); - }); - - it('should return null if a operationTrait name is not provided', function() { - const doc = { operationTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.operationTrait()).to.equal(null); - }); - - it('should return null if a operationTrait name is not found', function() { - const doc = { operationTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.operationTrait('not found')).to.equal(null); - }); - }); - - describe('#messageTraits()', function() { - it('should return a map of MessageTrait objects', function() { - const doc = { messageTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(typeof d.messageTraits()).to.be.equal('object'); - expect(d.messageTraits().test1.constructor.name).to.equal('MessageTrait'); - expect(d.messageTraits().test1.json()).to.equal(doc.messageTraits.test1); - expect(d.messageTraits().test2.constructor.name).to.equal('MessageTrait'); - expect(d.messageTraits().test2.json()).to.equal(doc.messageTraits.test2); - }); - - it('should return an empty object if the components field has no defined messageTraits', function() { - const doc = {}; - const d = new Components(doc); - expect(typeof d.messageTraits()).to.be.equal('object'); - expect(d.messageTraits()).to.deep.equal({}); - }); - }); - - describe('#hasMessageTraits()', function() { - it('should return a boolean indicating if the components field has messageTraits', function() { - const doc = { messageTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const docNoSchemas = { messages: {} }; - const d = new Components(doc); - const d2 = new Components(docNoSchemas); - expect(d.hasMessageTraits()).to.equal(true); - expect(d2.hasMessageTraits()).to.equal(false); - }); - }); - - describe('#messageTrait()', function() { - it('should return a specific messageTrait object', function() { - const doc = { messageTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.messageTrait('test1').constructor.name).to.equal('MessageTrait'); - expect(d.messageTrait('test1').json()).to.equal(doc.messageTraits.test1); - }); - - it('should return null if a messageTrait name is not provided', function() { - const doc = { messageTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.messageTrait()).to.equal(null); - }); - - it('should return null if a messageTrait name is not found', function() { - const doc = { messageTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; - const d = new Components(doc); - expect(d.messageTrait('not found')).to.equal(null); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinSpecificationExtensionsInheritance(Components); - }); - }); -}); diff --git a/test/models/contact_test.js b/test/models/contact_test.js deleted file mode 100644 index 26c5d8f0d..000000000 --- a/test/models/contact_test.js +++ /dev/null @@ -1,35 +0,0 @@ -const { expect } = require('chai'); -const js = { name: 'Fran', url: 'https://www.asyncapi.com', email: 'fmvilas@gmail.com', 'x-test': 'testing' }; - -const Contact = require('../../lib/models/contact'); - -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -describe('Contact', function() { - describe('#name()', function() { - it('should return a string', function() { - const d = new Contact(js); - expect(d.name()).to.be.equal(js.name); - }); - }); - - describe('#url()', function() { - it('should return a string', function() { - const d = new Contact(js); - expect(d.url()).to.be.equal(js.url); - }); - }); - - describe('#email()', function() { - it('should return a string', function() { - const d = new Contact(js); - expect(d.email()).to.be.equal(js.email); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinSpecificationExtensionsInheritance(Contact); - }); - }); -}); diff --git a/test/models/correlation-id_test.js b/test/models/correlation-id_test.js deleted file mode 100644 index f9c105fed..000000000 --- a/test/models/correlation-id_test.js +++ /dev/null @@ -1,23 +0,0 @@ -const { expect } = require('chai'); -const js = { location: '$message.header#/correlationId' }; - -const CorrelationId = require('../../lib/models/correlation-id'); - -const { assertMixinDescriptionInheritance } = require('../mixins/description_test'); -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -describe('CorrelationId', function() { - describe('#location()', function() { - it('should return a string', function() { - const c = new CorrelationId(js); - expect(c.location()).to.be.equal(js.location); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinDescriptionInheritance(CorrelationId); - assertMixinSpecificationExtensionsInheritance(CorrelationId); - }); - }); -}); diff --git a/test/models/external-docs_test.js b/test/models/external-docs_test.js deleted file mode 100644 index 744a89221..000000000 --- a/test/models/external-docs_test.js +++ /dev/null @@ -1,23 +0,0 @@ -const { expect } = require('chai'); -const js = { url: 'somewhere' }; - -const ExternalDocs = require('../../lib/models/external-docs'); - -const { assertMixinDescriptionInheritance } = require('../mixins/description_test'); -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -describe('ExternalDocs', function() { - describe('#url()', function() { - it('should return a string', function() { - const d = new ExternalDocs(js); - expect(d.url()).to.be.equal(js.url); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinDescriptionInheritance(ExternalDocs); - assertMixinSpecificationExtensionsInheritance(ExternalDocs); - }); - }); -}); diff --git a/test/models/info_test.js b/test/models/info_test.js deleted file mode 100644 index 21ce92e54..000000000 --- a/test/models/info_test.js +++ /dev/null @@ -1,63 +0,0 @@ -const { expect } = require('chai'); -const js = { title: 'Test', version: '1.2.3', license: { name: 'Apache 2.0', url: 'https://www.apache.org/licenses/LICENSE-2.0' }, contact: { name: 'Fran', url: 'https://www.asyncapi.com', email: 'fmvilas@gmail.com' }, 'x-test': 'testing' }; - -const Info = require('../../lib/models/info'); - -const { assertMixinDescriptionInheritance } = require('../mixins/description_test'); -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -describe('Info', function() { - describe('#title()', function() { - it('should return a string', function() { - const d = new Info(js); - expect(d.title()).to.be.equal(js.title); - }); - }); - - describe('#version()', function() { - it('should return a string', function() { - const d = new Info(js); - expect(d.version()).to.be.equal(js.version); - }); - }); - - describe('#termsOfService()', function() { - it('should return a string', function() { - const d = new Info(js); - expect(d.termsOfService()).to.be.equal(js.termsOfService); - }); - }); - - describe('#license()', function() { - it('should return a license object', function() { - const d = new Info(js); - expect(d.license().constructor.name).to.be.equal('License'); - expect(d.license().json()).to.be.equal(js.license); - }); - - it('should return null if a license object is not given', function() { - const d = new Info({}); - expect(d.license()).to.be.equal(null); - }); - }); - - describe('#contact()', function() { - it('should return a license object', function() { - const d = new Info(js); - expect(d.contact().constructor.name).to.be.equal('Contact'); - expect(d.contact().json()).to.be.equal(js.contact); - }); - - it('should return null if a contact object is not given', function() { - const d = new Info({}); - expect(d.contact()).to.be.equal(null); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinDescriptionInheritance(Info); - assertMixinSpecificationExtensionsInheritance(Info); - }); - }); -}); diff --git a/test/models/license_test.js b/test/models/license_test.js deleted file mode 100644 index 2fa5de5ad..000000000 --- a/test/models/license_test.js +++ /dev/null @@ -1,28 +0,0 @@ -const { expect } = require('chai'); -const js = { name: 'Apache 2.0', url: 'https://www.apache.org/licenses/LICENSE-2.0', 'x-test': 'testing' }; - -const License = require('../../lib/models/license'); - -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -describe('License', function() { - describe('#name()', function() { - it('should return a string', function() { - const d = new License(js); - expect(d.name()).to.be.equal(js.name); - }); - }); - - describe('#url()', function() { - it('should return a string', function() { - const d = new License(js); - expect(d.url()).to.be.equal(js.url); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinSpecificationExtensionsInheritance(License); - }); - }); -}); diff --git a/test/models/message-trait_test.js b/test/models/message-trait_test.js deleted file mode 100644 index 62ab012d8..000000000 --- a/test/models/message-trait_test.js +++ /dev/null @@ -1,109 +0,0 @@ -const { expect } = require('chai'); -const js = { schemaFormat: 'mySchema', headers: { properties: { test1: { type: 'string' }, test2: { type: 'number' } } }, correlationId: { test: true }, contentType: 'application/json', name: 'test', title: 'Test', summary: 'test', description: 'testing', externalDocs: { test: true }, tags: [{ name: 'tag1' }], bindings: { amqp: { test: true } }, examples: [{name: 'test', summary: 'test summary', payload: {test: true}}], 'x-test': 'testing' }; - -const MessageTrait = require('../../lib/models/message-trait'); - -const { assertMixinDescriptionInheritance } = require('../mixins/description_test'); -const { assertMixinExternalDocsInheritance } = require('../mixins/external-docs_test'); -const { assertMixinTagsInheritance } = require('../mixins/tags_test'); -const { assertMixinBindingsInheritance } = require('../mixins/bindings_test'); -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -describe('MessageTrait', function() { - describe('#headers()', function() { - it('should return a map of Schema objects', function() { - const d = new MessageTrait(js); - expect(d.headers().constructor.name).to.be.equal('Schema'); - expect(d.headers().json()).to.equal(js.headers); - }); - }); - - describe('#header()', function() { - it('should return a specific Schema object', function() { - const d = new MessageTrait(js); - expect(d.header('test1').constructor.name).to.be.equal('Schema'); - expect(d.header('test1').json()).to.equal(js.headers.properties.test1); - }); - }); - - describe('#payload()', function() { - it('should NOT have a payload method', function() { - const d = new MessageTrait(js); - expect(d.payload).to.be.equal(undefined); - }); - }); - - describe('#originalPayload()', function() { - it('should NOT have an originalPayload method', function() { - const d = new MessageTrait(js); - expect(d.originalPayload).to.be.equal(undefined); - }); - }); - - describe('#correlationId()', function() { - it('should return a CorrelationId object', function() { - const d = new MessageTrait(js); - expect(d.correlationId().json()).to.equal(js.correlationId); - }); - }); - - describe('#schemaFormat()', function() { - it('should return a string', function() { - const d = new MessageTrait(js); - expect(d.schemaFormat()).to.equal('mySchema'); - }); - }); - - describe('#originalSchemaFormat()', function() { - it('should NOT have an originalSchemaFormat method', function() { - const d = new MessageTrait(js); - expect(d.originalSchemaFormat).to.be.equal(undefined); - }); - }); - - describe('#contentType()', function() { - it('should return a string', function() { - const d = new MessageTrait(js); - expect(d.contentType()).to.equal(js.contentType); - }); - }); - - describe('#name()', function() { - it('should return a string', function() { - const d = new MessageTrait(js); - expect(d.name()).to.equal(js.name); - }); - }); - - describe('#title()', function() { - it('should return a string', function() { - const d = new MessageTrait(js); - expect(d.title()).to.equal(js.title); - }); - }); - - describe('#summary()', function() { - it('should return a string', function() { - const d = new MessageTrait(js); - expect(d.summary()).to.equal(js.summary); - }); - }); - - describe('#examples()', function() { - it('should return an array of examples', function() { - const d = new MessageTrait(js); - expect(Array.isArray(d.examples())).to.be.equal(true); - expect(d.examples()).to.be.equal(js.examples); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinDescriptionInheritance(MessageTrait); - assertMixinExternalDocsInheritance(MessageTrait); - assertMixinTagsInheritance(MessageTrait); - assertMixinBindingsInheritance(MessageTrait); - assertMixinSpecificationExtensionsInheritance(MessageTrait); - }); - }); -}); diff --git a/test/models/message-traitable_test.js b/test/models/message-traitable_test.js deleted file mode 100644 index 0189c84a6..000000000 --- a/test/models/message-traitable_test.js +++ /dev/null @@ -1,109 +0,0 @@ -const { expect } = require('chai'); -const js = { schemaFormat: 'mySchema', headers: { properties: { test1: { type: 'string' }, test2: { type: 'number' } } }, correlationId: { test: true }, contentType: 'application/json', name: 'test', title: 'Test', summary: 'test', description: 'testing', externalDocs: { test: true }, tags: [{ name: 'tag1' }], bindings: { amqp: { test: true } }, examples: [{name: 'test', summary: 'test summary', payload: {test: true}}], 'x-test': 'testing' }; - -const MessageTraitable = require('../../lib/models/message-traitable'); - -const { assertMixinDescriptionInheritance } = require('../mixins/description_test'); -const { assertMixinExternalDocsInheritance } = require('../mixins/external-docs_test'); -const { assertMixinTagsInheritance } = require('../mixins/tags_test'); -const { assertMixinBindingsInheritance } = require('../mixins/bindings_test'); -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -describe('MessageTraitable', function() { - describe('#headers()', function() { - it('should return a map of Schema objects', function() { - const d = new MessageTraitable(js); - expect(d.headers().constructor.name).to.be.equal('Schema'); - expect(d.headers().json()).to.equal(js.headers); - }); - }); - - describe('#header()', function() { - it('should return a specific Schema object', function() { - const d = new MessageTraitable(js); - expect(d.header('test1').constructor.name).to.be.equal('Schema'); - expect(d.header('test1').json()).to.equal(js.headers.properties.test1); - }); - }); - - describe('#payload()', function() { - it('should NOT have a payload method', function() { - const d = new MessageTraitable(js); - expect(d.payload).to.be.equal(undefined); - }); - }); - - describe('#originalPayload()', function() { - it('should NOT have an originalPayload method', function() { - const d = new MessageTraitable(js); - expect(d.originalPayload).to.be.equal(undefined); - }); - }); - - describe('#correlationId()', function() { - it('should return a CorrelationId object', function() { - const d = new MessageTraitable(js); - expect(d.correlationId().json()).to.equal(js.correlationId); - }); - }); - - describe('#schemaFormat()', function() { - it('should return a string', function() { - const d = new MessageTraitable(js); - expect(d.schemaFormat()).to.equal('mySchema'); - }); - }); - - describe('#originalSchemaFormat()', function() { - it('should NOT have an originalSchemaFormat method', function() { - const d = new MessageTraitable(js); - expect(d.originalSchemaFormat).to.be.equal(undefined); - }); - }); - - describe('#contentType()', function() { - it('should return a string', function() { - const d = new MessageTraitable(js); - expect(d.contentType()).to.equal(js.contentType); - }); - }); - - describe('#name()', function() { - it('should return a string', function() { - const d = new MessageTraitable(js); - expect(d.name()).to.equal(js.name); - }); - }); - - describe('#title()', function() { - it('should return a string', function() { - const d = new MessageTraitable(js); - expect(d.title()).to.equal(js.title); - }); - }); - - describe('#summary()', function() { - it('should return a string', function() { - const d = new MessageTraitable(js); - expect(d.summary()).to.equal(js.summary); - }); - }); - - describe('#examples()', function() { - it('should return an array of examples', function() { - const d = new MessageTraitable(js); - expect(Array.isArray(d.examples())).to.be.equal(true); - expect(d.examples()).to.be.equal(js.examples); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinDescriptionInheritance(MessageTraitable); - assertMixinExternalDocsInheritance(MessageTraitable); - assertMixinTagsInheritance(MessageTraitable); - assertMixinBindingsInheritance(MessageTraitable); - assertMixinSpecificationExtensionsInheritance(MessageTraitable); - }); - }); -}); diff --git a/test/models/message_test.js b/test/models/message_test.js deleted file mode 100644 index 4b4556b00..000000000 --- a/test/models/message_test.js +++ /dev/null @@ -1,164 +0,0 @@ -const { expect } = require('chai'); -const js = { schemaFormat: 'mySchema', traits: [{headers: {type: 'object',properties: {'my-app-header': {type: 'integer',minimum: 0,maximum: 100}}}}], headers: { properties: { test1: { type: 'string' }, test2: { type: 'number' } } }, payload: { test: true }, 'x-parser-original-payload': { testing: true }, correlationId: { test: true }, 'x-parser-original-schema-format': 'application/vnd.apache.avro;version=1.9.0', contentType: 'application/json', name: 'test', title: 'Test', summary: 'test', description: 'testing', externalDocs: { test: true }, tags: [{ name: 'tag1' }], bindings: { amqp: { test: true } }, examples: [{name: 'test', summary: 'test summary', payload: {test: true}}], 'x-test': 'testing' }; - -const Message = require('../../lib/models/message'); - -const { assertMixinDescriptionInheritance } = require('../mixins/description_test'); -const { assertMixinExternalDocsInheritance } = require('../mixins/external-docs_test'); -const { assertMixinTagsInheritance } = require('../mixins/tags_test'); -const { assertMixinBindingsInheritance } = require('../mixins/bindings_test'); -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -describe('Message', function() { - describe('#uid()', function() { - it('should return a string with the name', function() { - const d = new Message(js); - expect(d.uid()).to.be.equal('test'); - }); - - it('should return a string with the x-parser-message-name extension when name is not available', function() { - const msg = { ...js, ...{ 'x-parser-message-name': 'test' } }; - const d = new Message(msg); - expect(d.uid()).to.be.equal('test'); - }); - - it('should return a string with the base64 representation of the object when x-parser-message-name extension and name are not available', function() { - const msg = { ...js, ...{ name: undefined } }; - const d = new Message(msg); - expect(d.uid()).to.be.equal('eyJzY2hlbWFGb3JtYXQiOiJteVNjaGVtYSIsInRyYWl0cyI6W3siaGVhZGVycyI6eyJ0eXBlIjoib2JqZWN0IiwicHJvcGVydGllcyI6eyJteS1hcHAtaGVhZGVyIjp7InR5cGUiOiJpbnRlZ2VyIiwibWluaW11bSI6MCwibWF4aW11bSI6MTAwfX19fV0sImhlYWRlcnMiOnsicHJvcGVydGllcyI6eyJ0ZXN0MSI6eyJ0eXBlIjoic3RyaW5nIn0sInRlc3QyIjp7InR5cGUiOiJudW1iZXIifX19LCJwYXlsb2FkIjp7InRlc3QiOnRydWV9LCJ4LXBhcnNlci1vcmlnaW5hbC1wYXlsb2FkIjp7InRlc3RpbmciOnRydWV9LCJjb3JyZWxhdGlvbklkIjp7InRlc3QiOnRydWV9LCJ4LXBhcnNlci1vcmlnaW5hbC1zY2hlbWEtZm9ybWF0IjoiYXBwbGljYXRpb24vdm5kLmFwYWNoZS5hdnJvO3ZlcnNpb249MS45LjAiLCJjb250ZW50VHlwZSI6ImFwcGxpY2F0aW9uL2pzb24iLCJ0aXRsZSI6IlRlc3QiLCJzdW1tYXJ5IjoidGVzdCIsImRlc2NyaXB0aW9uIjoidGVzdGluZyIsImV4dGVybmFsRG9jcyI6eyJ0ZXN0Ijp0cnVlfSwidGFncyI6W3sibmFtZSI6InRhZzEifV0sImJpbmRpbmdzIjp7ImFtcXAiOnsidGVzdCI6dHJ1ZX19LCJleGFtcGxlcyI6W3sibmFtZSI6InRlc3QiLCJzdW1tYXJ5IjoidGVzdCBzdW1tYXJ5IiwicGF5bG9hZCI6eyJ0ZXN0Ijp0cnVlfX1dLCJ4LXRlc3QiOiJ0ZXN0aW5nIn0='); - }); - }); - - describe('#headers()', function() { - it('should return a map of Schema objects', function() { - const d = new Message(js); - expect(d.headers().constructor.name).to.be.equal('Schema'); - expect(d.headers().json()).to.equal(js.headers); - }); - }); - - describe('#header()', function() { - it('should return a specific Schema object', function() { - const d = new Message(js); - expect(d.header('test1').constructor.name).to.be.equal('Schema'); - expect(d.header('test1').json()).to.equal(js.headers.properties.test1); - }); - }); - - describe('#payload()', function() { - it('should return payload as a Schema object', function() { - const d = new Message(js); - expect(d.payload().constructor.name).to.be.equal('Schema'); - expect(d.payload().json()).to.equal(js.payload); - }); - }); - - describe('#originalPayload()', function() { - it('should return the original payload', function() { - const d = new Message(js); - expect(d.originalPayload()).to.equal(js['x-parser-original-payload']); - }); - }); - - describe('#correlationId()', function() { - it('should return a CorrelationId object', function() { - const d = new Message(js); - expect(d.correlationId().json()).to.equal(js.correlationId); - }); - }); - - describe('#schemaFormat()', function() { - it('should return a string', function() { - const d = new Message(js); - expect(d.schemaFormat()).to.equal('mySchema'); - }); - }); - - describe('#originalSchemaFormat()', function() { - it('should return a string', function() { - const d = new Message(js); - expect(d.originalSchemaFormat()).to.equal(js['x-parser-original-schema-format']); - }); - }); - - describe('#contentType()', function() { - it('should return a string', function() { - const d = new Message(js); - expect(d.contentType()).to.equal(js.contentType); - }); - }); - - describe('#name()', function() { - it('should return a string', function() { - const d = new Message(js); - expect(d.name()).to.equal(js.name); - }); - }); - - describe('#title()', function() { - it('should return a string', function() { - const d = new Message(js); - expect(d.title()).to.equal(js.title); - }); - }); - - describe('#summary()', function() { - it('should return a string', function() { - const d = new Message(js); - expect(d.summary()).to.equal(js.summary); - }); - }); - - describe('#traits()', function() { - it('should return a list of traits from traits', function() { - const d = new Message(js); - expect(d.traits()[0].json()).to.equal(js.traits[0]); - }); - - it('should return a list of traits from x-parser-original-traits', function() { - const { traits, ...newJs } = js; - newJs['x-parser-original-traits'] = traits; - const d = new Message(newJs); - expect(d.traits()[0].json()).to.be.equal(newJs['x-parser-original-traits'][0]); - }); - }); - - describe('#hasTraits()', function() { - it('should return true if in traits', function() { - const d = new Message(js); - expect(d.hasTraits()).to.equal(true); - }); - - it('should return true if in x-parser-original-traits', function() { - const { traits, ...newJs } = js; - newJs['x-parser-original-traits'] = traits; - const d = new Message(newJs); - expect(d.hasTraits()).to.equal(true); - }); - - it('should return false', function() { - // eslint-disable-next-line no-unused-vars - const { traits, ...newJs } = js; - const d = new Message(newJs); - expect(d.hasTraits()).to.equal(false); - }); - }); - - describe('#examples()', function() { - it('should return an array of examples', function() { - const d = new Message(js); - expect(Array.isArray(d.examples())).to.be.equal(true); - expect(d.examples()).to.be.equal(js.examples); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinDescriptionInheritance(Message); - assertMixinExternalDocsInheritance(Message); - assertMixinTagsInheritance(Message); - assertMixinBindingsInheritance(Message); - assertMixinSpecificationExtensionsInheritance(Message); - }); - }); -}); diff --git a/test/models/oauth-flow_test.js b/test/models/oauth-flow_test.js deleted file mode 100644 index 4201a1eb2..000000000 --- a/test/models/oauth-flow_test.js +++ /dev/null @@ -1,43 +0,0 @@ -const { expect } = require('chai'); -const js = { authorizationUrl: 'testing', refreshUrl: 'testing', tokenUrl: 'testing', scopes: { test: 'testing' }, 'x-test': 'testing' }; - -const OAuthFlow = require('../../lib/models/oauth-flow'); - -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -describe('OAuthFlow', function() { - describe('#authorizationUrl()', function() { - it('should return a string', function() { - const d = new OAuthFlow(js); - expect(d.authorizationUrl()).to.be.equal(js.authorizationUrl); - }); - }); - - describe('#tokenUrl()', function() { - it('should return a string', function() { - const d = new OAuthFlow(js); - expect(d.tokenUrl()).to.be.equal(js.tokenUrl); - }); - }); - - describe('#refreshUrl()', function() { - it('should return a string', function() { - const d = new OAuthFlow(js); - expect(d.refreshUrl()).to.be.equal(js.refreshUrl); - }); - }); - - describe('#scopes()', function() { - it('should return a Map of strings', function() { - const d = new OAuthFlow(js); - expect(typeof d.scopes()).to.be.equal('object'); - expect(d.scopes()).to.equal(js.scopes); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinSpecificationExtensionsInheritance(OAuthFlow); - }); - }); -}); diff --git a/test/models/operation-trait_test.js b/test/models/operation-trait_test.js deleted file mode 100644 index f8893e021..000000000 --- a/test/models/operation-trait_test.js +++ /dev/null @@ -1,50 +0,0 @@ -const { expect } = require('chai'); -const js = { summary: 't', description: 'test', operationId: 'test', tags: [{name: 'tag1'}], externalDocs: { url: 'somewhere' }, bindings: { amqp: { test: true } }, 'x-test': 'testing' }; - -const OperationTrait = require('../../lib/models/operation-trait'); - -const { assertMixinDescriptionInheritance } = require('../mixins/description_test'); -const { assertMixinExternalDocsInheritance } = require('../mixins/external-docs_test'); -const { assertMixinTagsInheritance } = require('../mixins/tags_test'); -const { assertMixinBindingsInheritance } = require('../mixins/bindings_test'); -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -describe('OperationTrait', function() { - describe('#summary()', function() { - it('should return a string', function() { - const d = new OperationTrait(js); - expect(d.summary()).to.be.equal(js.summary); - }); - }); - - describe('#id()', function() { - it('should return a string', function() { - const d = new OperationTrait(js); - expect(d.id()).to.be.equal(js.operationId); - }); - }); - - describe('#messages()', function() { - it('should NOT have a messages method', function() { - const d = new OperationTrait(js); - expect(d.messages).to.be.equal(undefined); - }); - }); - - describe('#message()', function() { - it('should NOT have a message method', function() { - const d = new OperationTrait(js); - expect(d.message).to.be.equal(undefined); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinDescriptionInheritance(OperationTrait); - assertMixinExternalDocsInheritance(OperationTrait); - assertMixinTagsInheritance(OperationTrait); - assertMixinBindingsInheritance(OperationTrait); - assertMixinSpecificationExtensionsInheritance(OperationTrait); - }); - }); -}); diff --git a/test/models/operation-traitable_test.js b/test/models/operation-traitable_test.js deleted file mode 100644 index 4f3fb9e4a..000000000 --- a/test/models/operation-traitable_test.js +++ /dev/null @@ -1,50 +0,0 @@ -const { expect } = require('chai'); -const js = { summary: 't', description: 'test', operationId: 'test', tags: [{name: 'tag1'}], externalDocs: { url: 'somewhere' }, bindings: { amqp: { test: true } }, 'x-test': 'testing' }; - -const OperationTraitable = require('../../lib/models/operation-traitable'); - -const { assertMixinDescriptionInheritance } = require('../mixins/description_test'); -const { assertMixinExternalDocsInheritance } = require('../mixins/external-docs_test'); -const { assertMixinTagsInheritance } = require('../mixins/tags_test'); -const { assertMixinBindingsInheritance } = require('../mixins/bindings_test'); -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -describe('OperationTraitable', function() { - describe('#summary()', function() { - it('should return a string', function() { - const d = new OperationTraitable(js); - expect(d.summary()).to.be.equal(js.summary); - }); - }); - - describe('#id()', function() { - it('should return a string', function() { - const d = new OperationTraitable(js); - expect(d.id()).to.be.equal(js.operationId); - }); - }); - - describe('#messages()', function() { - it('should NOT have a messages method', function() { - const d = new OperationTraitable(js); - expect(d.messages).to.be.equal(undefined); - }); - }); - - describe('#message()', function() { - it('should NOT have a message method', function() { - const d = new OperationTraitable(js); - expect(d.message).to.be.equal(undefined); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinDescriptionInheritance(OperationTraitable); - assertMixinExternalDocsInheritance(OperationTraitable); - assertMixinTagsInheritance(OperationTraitable); - assertMixinBindingsInheritance(OperationTraitable); - assertMixinSpecificationExtensionsInheritance(OperationTraitable); - }); - }); -}); diff --git a/test/models/operation_test.js b/test/models/operation_test.js deleted file mode 100644 index dd80c5ccd..000000000 --- a/test/models/operation_test.js +++ /dev/null @@ -1,125 +0,0 @@ -const { expect } = require('chai'); -const js = { summary: 't', description: 'test', traits: [{bindings: {kafka: {clientId: 'my-app-id'}}}], operationId: 'test', tags: [{name: 'tag1'}], externalDocs: { url: 'somewhere' }, bindings: { amqp: { test: true } }, message: { test: true }, 'x-test': 'testing' }; - -const Operation = require('../../lib/models/operation'); - -const { assertMixinDescriptionInheritance } = require('../mixins/description_test'); -const { assertMixinExternalDocsInheritance } = require('../mixins/external-docs_test'); -const { assertMixinTagsInheritance } = require('../mixins/tags_test'); -const { assertMixinBindingsInheritance } = require('../mixins/bindings_test'); -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -describe('Operation', function() { - describe('#summary()', function() { - it('should return a string', function() { - const d = new Operation(js); - expect(d.summary()).to.be.equal(js.summary); - }); - }); - - describe('#traits()', function() { - it('should return a list of traits', function() { - const d = new Operation(js); - expect(d.traits()[0].json()).to.equal(js.traits[0]); - }); - - it('should return a list of traits from x-parser-original-traits', function() { - const { traits, ...newJs } = js; - newJs['x-parser-original-traits'] = traits; - const d = new Operation(newJs); - expect(d.traits()[0].json()).to.be.equal(newJs['x-parser-original-traits'][0]); - }); - }); - - describe('#hasTraits()', function() { - it('should return true', function() { - const d = new Operation(js); - expect(d.hasTraits()).to.equal(true); - }); - - it('should return true if in x-parser-original-traits', function() { - const { traits, ...newJs } = js; - newJs['x-parser-original-traits'] = traits; - const d = new Operation(newJs); - expect(d.hasTraits()).to.equal(true); - }); - - it('should return false', function() { - // eslint-disable-next-line no-unused-vars - const { traits, ...newJs } = js; - const d = new Operation(newJs); - expect(d.hasTraits()).to.equal(false); - }); - }); - - describe('#id()', function() { - it('should return a string', function() { - const d = new Operation(js); - expect(d.id()).to.be.equal(js.operationId); - }); - }); - - describe('#messages()', function() { - it('should return an array of Message objects', function() { - const d = new Operation(js); - expect(Array.isArray(d.messages())).to.be.equal(true); - d.messages().forEach(m => { - expect(m.constructor.name).to.be.equal('Message'); - expect(m.json()).to.be.equal(js.message); - }); - }); - - it('should return an array of Message objects when using oneOf', function() { - const doc = { message: { oneOf: [{test: true }, {test: false}] } }; - const d = new Operation(doc); - expect(Array.isArray(d.messages())).to.be.equal(true); - d.messages().forEach((m, i) => { - expect(m.constructor.name).to.be.equal('Message'); - expect(m.json()).to.be.equal(doc.message.oneOf[i]); - }); - }); - }); - - describe('#message()', function() { - it('should return null if channel doesn\'t have a message', function() { - const doc = { }; - const d = new Operation(doc); - expect(d.message()).to.be.equal(null); - }); - - it('should return a specific Message object', function() { - const doc = { message: { oneOf: [{ test: true }, { test: false }] } }; - const d = new Operation(doc); - expect(d.message(0).json()).to.be.deep.equal(doc.message.oneOf[0]); - expect(d.message(1).json()).to.be.deep.equal(doc.message.oneOf[1]); - }); - - it('should return null when index is out of bounds', function() { - const doc = { message: { oneOf: [{ test: true }, { test: false }] } }; - const d = new Operation(doc); - expect(d.message(100)).to.be.equal(null); - }); - - it('should return null if index is not a number', function() { - const doc = { message: { oneOf: [{ test: true }, { test: false }] } }; - const d = new Operation(doc); - expect(d.message('0')).to.be.equal(null); - }); - - it('should return message object if no index is provided and message is not oneOf', function() { - const doc = { message: { test: true } }; - const d = new Operation(doc); - expect(d.message().json()).to.be.deep.equal(doc.message); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinDescriptionInheritance(Operation); - assertMixinExternalDocsInheritance(Operation); - assertMixinTagsInheritance(Operation); - assertMixinBindingsInheritance(Operation); - assertMixinSpecificationExtensionsInheritance(Operation); - }); - }); -}); diff --git a/test/models/schema_test.js b/test/models/schema_test.js deleted file mode 100644 index aaf85fea1..000000000 --- a/test/models/schema_test.js +++ /dev/null @@ -1,761 +0,0 @@ -const { expect } = require('chai'); - -const Schema = require('../../lib/models/schema'); - -const { assertMixinDescriptionInheritance } = require('../mixins/description_test'); -const { assertMixinExternalDocsInheritance } = require('../mixins/external-docs_test'); -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -describe('Schema', function() { - describe('#multipleOf()', function() { - it('should return a number', function() { - const doc = { type: 'number', multipleOf: 1.0 }; - const d = new Schema(doc); - expect(typeof d.multipleOf()).to.be.equal('number'); - expect(d.multipleOf()).to.be.equal(doc.multipleOf); - }); - }); - - describe('#uid()', function() { - it('should return a string', function() { - const doc = { $id: 'test' }; - const d = new Schema(doc); - expect(typeof d.uid()).to.be.equal('string'); - expect(d.uid()).to.be.equal(doc.$id); - }); - - it('should return a string with the value of x-parser-schema-id when $id is not available', function() { - const doc = { 'x-parser-schema-id': 'test' }; - const d = new Schema(doc); - expect(typeof d.uid()).to.be.equal('string'); - expect(d.uid()).to.be.equal(doc['x-parser-schema-id']); - }); - }); - - describe('#$id()', function() { - it('should return a string', function() { - const doc = { $id: 'test' }; - const d = new Schema(doc); - expect(typeof d.$id()).to.be.equal('string'); - expect(d.$id()).to.be.equal(doc.$id); - }); - }); - - describe('#maximum()', function() { - it('should return a number', function() { - const doc = { type: 'number', maximum: 10 }; - const d = new Schema(doc); - expect(typeof d.maximum()).to.be.equal('number'); - expect(d.maximum()).to.be.equal(doc.maximum); - }); - }); - - describe('#exclusiveMaximum()', function() { - it('should return a number', function() { - const doc = { type: 'number', exclusiveMaximum: 10 }; - const d = new Schema(doc); - expect(typeof d.exclusiveMaximum()).to.be.equal('number'); - expect(d.exclusiveMaximum()).to.be.equal(doc.exclusiveMaximum); - }); - }); - - describe('#minimum()', function() { - it('should return a number', function() { - const doc = { type: 'number', minimum: 10 }; - const d = new Schema(doc); - expect(typeof d.minimum()).to.be.equal('number'); - expect(d.minimum()).to.be.equal(doc.minimum); - }); - }); - - describe('#exclusiveMinimum()', function() { - it('should return a number', function() { - const doc = { type: 'number', exclusiveMinimum: 10 }; - const d = new Schema(doc); - expect(typeof d.exclusiveMinimum()).to.be.equal('number'); - expect(d.exclusiveMinimum()).to.be.equal(doc.exclusiveMinimum); - }); - }); - - describe('#maxLength()', function() { - it('should return a number', function() { - const doc = { type: 'string', maxLength: 10 }; - const d = new Schema(doc); - expect(typeof d.maxLength()).to.be.equal('number'); - expect(d.maxLength()).to.be.equal(doc.maxLength); - }); - }); - - describe('#minLength()', function() { - it('should return a number', function() { - const doc = { type: 'string', minLength: 10 }; - const d = new Schema(doc); - expect(typeof d.minLength()).to.be.equal('number'); - expect(d.minLength()).to.be.equal(doc.minLength); - }); - }); - - describe('#pattern()', function() { - it('should return a string', function() { - const doc = { type: 'string', pattern: '^test' }; - const d = new Schema(doc); - expect(typeof d.pattern()).to.be.equal('string'); - expect(d.pattern()).to.be.equal(doc.pattern); - }); - }); - - describe('#maxItems()', function() { - it('should return a number', function() { - const doc = { type: 'array', maxItems: 10 }; - const d = new Schema(doc); - expect(typeof d.maxItems()).to.be.equal('number'); - expect(d.maxItems()).to.be.equal(doc.maxItems); - }); - }); - - describe('#minItems()', function() { - it('should return a number', function() { - const doc = { type: 'array', minItems: 10 }; - const d = new Schema(doc); - expect(typeof d.minItems()).to.be.equal('number'); - expect(d.minItems()).to.be.equal(doc.minItems); - }); - }); - - describe('#uniqueItems()', function() { - it('should return a boolean', function() { - const doc = { type: 'array', uniqueItems: true }; - const d = new Schema(doc); - expect(typeof d.uniqueItems()).to.be.equal('boolean'); - expect(d.uniqueItems()).to.be.equal(doc.uniqueItems); - }); - }); - - describe('#maxProperties()', function() { - it('should return a number', function() { - const doc = { type: 'object', maxProperties: 10 }; - const d = new Schema(doc); - expect(typeof d.maxProperties()).to.be.equal('number'); - expect(d.maxProperties()).to.be.equal(doc.maxProperties); - }); - }); - - describe('#minProperties()', function() { - it('should return a number', function() { - const doc = { type: 'object', minProperties: 10 }; - const d = new Schema(doc); - expect(typeof d.minProperties()).to.be.equal('number'); - expect(d.minProperties()).to.be.equal(doc.minProperties); - }); - }); - - describe('#required()', function() { - it('should return a number', function() { - const doc = { type: 'object', required: ['test'] }; - const d = new Schema(doc); - expect(Array.isArray(d.required())).to.be.equal(true); - expect(d.required()).to.be.equal(doc.required); - }); - }); - - describe('#enum()', function() { - it('should return a number', function() { - const doc = { type: 'string', enum: ['test'] }; - const d = new Schema(doc); - expect(Array.isArray(d.enum())).to.be.equal(true); - expect(d.enum()).to.be.equal(doc.enum); - }); - }); - - describe('#type()', function() { - it('should return a string', function() { - const doc = { type: 'string' }; - const d = new Schema(doc); - expect(typeof d.type()).to.be.equal('string'); - expect(d.type()).to.be.equal(doc.type); - }); - - it('should return an array of strings', function() { - const doc = { type: ['number', 'string'] }; - const d = new Schema(doc); - expect(Array.isArray(d.type())).to.be.equal(true); - expect(d.type()).to.be.equal(doc.type); - }); - }); - - describe('#allOf()', function() { - it('should return an array of Schema objects', function() { - const doc = { allOf: [{ type: 'string' }, { type: 'number' }] }; - const d = new Schema(doc); - expect(Array.isArray(d.allOf())).to.be.equal(true); - d.allOf().forEach((s, i) => { - expect(s.constructor.name).to.be.equal('Schema'); - expect(s.json()).to.be.equal(doc.allOf[i]); - }); - }); - }); - - describe('#oneOf()', function() { - it('should return an array of Schema objects', function() { - const doc = { oneOf: [{ type: 'string' }, { type: 'number' }] }; - const d = new Schema(doc); - expect(Array.isArray(d.oneOf())).to.be.equal(true); - d.oneOf().forEach((s, i) => { - expect(s.constructor.name).to.be.equal('Schema'); - expect(s.json()).to.be.equal(doc.oneOf[i]); - }); - }); - }); - - describe('#anyOf()', function() { - it('should return an array of Schema objects', function() { - const doc = { anyOf: [{ type: 'string' }, { type: 'number' }] }; - const d = new Schema(doc); - expect(Array.isArray(d.anyOf())).to.be.equal(true); - d.anyOf().forEach((s, i) => { - expect(s.constructor.name).to.be.equal('Schema'); - expect(s.json()).to.be.equal(doc.anyOf[i]); - }); - }); - }); - - describe('#not()', function() { - it('should return a Schema object', function() { - const doc = { not: { type: 'string' } }; - const d = new Schema(doc); - expect(d.not().constructor.name).to.be.equal('Schema'); - expect(d.not().json()).to.be.equal(doc.not); - }); - - it('should return null when not is omitted from the json document', function() { - const doc = {}; - const d = new Schema(doc); - expect(d.not()).to.be.equal(null); - }); - }); - - describe('#items()', function() { - it('should return a Schema object', function() { - const doc = { items: { type: 'string' } }; - const d = new Schema(doc); - expect(d.items().constructor.name).to.be.equal('Schema'); - expect(d.items().json()).to.be.equal(doc.items); - }); - - it('should return an array of Schema objects', function() { - const doc = { items: [{ type: 'string' }, { type: 'number' }] }; - const d = new Schema(doc); - expect(Array.isArray(d.items())).to.be.equal(true); - d.items().forEach((s, i) => { - expect(s.constructor.name).to.be.equal('Schema'); - expect(s.json()).to.be.equal(doc.items[i]); - }); - }); - }); - - describe('#properties()', function() { - it('should return a map of Schema objects', function() { - const doc = { properties: { test: { type: 'string' } } }; - const d = new Schema(doc); - expect(typeof d.properties()).to.be.equal('object'); - Object.keys(d.properties()).forEach(key => { - const s = d.properties()[key]; - expect(s.constructor.name).to.be.equal('Schema'); - expect(s.json()).to.be.equal(doc.properties[key]); - }); - }); - }); - - describe('#property()', function() { - it('should return a specific Schema object', function() { - const doc = { properties: { test: { type: 'string' } } }; - const d = new Schema(doc); - expect(d.property('test').constructor.name).to.be.equal('Schema'); - expect(d.property('test').json()).to.equal(doc.properties.test); - }); - }); - - describe('#additionalProperties()', function() { - it('should return a Schema object', function() { - const doc = { additionalProperties: { type: 'string' } }; - const d = new Schema(doc); - expect(d.additionalProperties().constructor.name).to.be.equal('Schema'); - expect(d.additionalProperties().json()).to.be.equal(doc.additionalProperties); - }); - - it('should return a boolean', function() { - const doc = { additionalProperties: true }; - const d = new Schema(doc); - expect(typeof d.additionalProperties()).to.be.equal('boolean'); - expect(d.additionalProperties()).to.be.equal(doc.additionalProperties); - }); - - it('should return undefined when not defined', function() { - const doc = {}; - const d = new Schema(doc); - expect(d.additionalProperties()).to.be.equal(undefined); - }); - - it('should return undefined when null', function() { - const doc = { additionalProperties: null }; - const d = new Schema(doc); - expect(d.additionalProperties()).to.be.equal(undefined); - }); - }); - - describe('#additionalItems()', function() { - it('should return a Schema object', function() { - const doc = { additionalItems: { type: 'string' } }; - const d = new Schema(doc); - expect(d.additionalItems().constructor.name).to.be.equal('Schema'); - expect(d.additionalItems().json()).to.be.equal(doc.additionalItems); - }); - - it('should return undefined when not defined', function() { - const doc = {}; - const d = new Schema(doc); - expect(d.additionalItems()).to.be.equal(undefined); - }); - - it('should return undefined when null', function() { - const doc = { additionalItems: null }; - const d = new Schema(doc); - expect(d.additionalItems()).to.be.equal(undefined); - }); - }); - - describe('#patternProperties()', function() { - it('should return a map of Schema objects', function() { - const doc = { patternProperties: { test: { type: 'string' } } }; - const d = new Schema(doc); - expect(typeof d.patternProperties()).to.be.equal('object'); - Object.keys(d.patternProperties()).forEach(key => { - const s = d.patternProperties()[key]; - expect(s.constructor.name).to.be.equal('Schema'); - expect(s.json()).to.be.equal(doc.patternProperties[key]); - }); - }); - }); - - describe('#const()', function() { - it('should return a number', function() { - const doc = { type: 'object', const: 10 }; - const d = new Schema(doc); - expect(typeof d.const()).to.be.equal('number'); - expect(d.const()).to.be.equal(doc.const); - }); - - it('should return null', function() { - const doc = { type: 'object', const: null }; - const d = new Schema(doc); - expect(d.const()).to.be.equal(doc.const); - }); - - it('should return an object', function() { - const doc = { type: 'object', const: { test: true } }; - const d = new Schema(doc); - expect(typeof d.const()).to.be.equal('object'); - expect(d.const()).to.be.equal(doc.const); - }); - - it('should return an array', function() { - const doc = { type: 'object', const: ['test'] }; - const d = new Schema(doc); - expect(Array.isArray(d.const())).to.be.equal(true); - expect(d.const()).to.be.equal(doc.const); - }); - }); - - describe('#contains()', function() { - it('should return a Schema object', function() { - const doc = { contains: { type: 'string' } }; - const d = new Schema(doc); - expect(d.contains().constructor.name).to.be.equal('Schema'); - expect(d.contains().json()).to.be.equal(doc.contains); - }); - - it('should return null when contains is omitted from the json document', function() { - const doc = {}; - const d = new Schema(doc); - expect(d.contains()).to.be.equal(null); - }); - }); - - describe('#dependencies()', function() { - it('should return a map with an array value', function() { - const doc = { properties: { test: { type: 'string' }, test2: { type: 'number' } }, dependencies: { test: ['test2'] } }; - const d = new Schema(doc); - expect(typeof d.dependencies()).to.be.equal('object'); - Object.keys(d.dependencies()).forEach(key => { - const v = d.dependencies()[key]; - expect(Array.isArray(v)).to.be.equal(true); - expect(v).to.be.equal(doc.dependencies[key]); - }); - }); - - it('should return a map with a Schema value', function() { - const doc = { properties: { test: { type: 'string' } }, dependencies: { test: { properties: { test2: { type: 'number' } } } } }; - const d = new Schema(doc); - expect(typeof d.dependencies()).to.be.equal('object'); - Object.keys(d.dependencies()).forEach(key => { - const s = d.dependencies()[key]; - expect(s.constructor.name).to.be.equal('Schema'); - expect(s.json()).to.be.equal(doc.dependencies[key]); - }); - }); - - it('should return null when dependencies are omitted from the json document', function() { - const doc = {}; - const d = new Schema(doc); - expect(d.dependencies()).to.be.equal(null); - }); - }); - - describe('#propertyNames()', function() { - it('should return a Schema object', function() { - const doc = { propertyNames: { type: 'string' } }; - const d = new Schema(doc); - expect(d.propertyNames().constructor.name).to.be.equal('Schema'); - expect(d.propertyNames().json()).to.be.equal(doc.propertyNames); - }); - - it('should return null when propertyNames are omitted from the json document', function() { - const doc = {}; - const d = new Schema(doc); - expect(d.propertyNames()).to.be.equal(null); - }); - }); - - describe('#if()', function() { - it('should return a Schema object', function() { - const doc = { if: { type: 'string' } }; - const d = new Schema(doc); - expect(d.if().constructor.name).to.be.equal('Schema'); - expect(d.if().json()).to.be.equal(doc.if); - }); - - it('should return null when if is omitted from the json document', function() { - const doc = {}; - const d = new Schema(doc); - expect(d.if()).to.be.equal(null); - }); - }); - - describe('#then()', function() { - it('should return a Schema object', function() { - const doc = { then: { type: 'string' } }; - const d = new Schema(doc); - expect(d.then().constructor.name).to.be.equal('Schema'); - expect(d.then().json()).to.be.equal(doc.then); - }); - - it('should return null when then is omitted from the json document', function() { - const doc = {}; - const d = new Schema(doc); - expect(d.then()).to.be.equal(null); - }); - }); - - describe('#else()', function() { - it('should return a Schema object', function() { - const doc = { else: { type: 'string' } }; - const d = new Schema(doc); - expect(d.else().constructor.name).to.be.equal('Schema'); - expect(d.else().json()).to.be.equal(doc.else); - }); - - it('should return null when else is omitted from the json document', function() { - const doc = {}; - const d = new Schema(doc); - expect(d.else()).to.be.equal(null); - }); - }); - - describe('#format()', function() { - it('should return a string', function() { - const doc = { type: 'string', format: 'email' }; - const d = new Schema(doc); - expect(typeof d.format()).to.be.equal('string'); - expect(d.format()).to.be.equal(doc.format); - }); - }); - - describe('#contentEncoding()', function() { - it('should return a string', function() { - const doc = { type: 'string', contentEncoding: 'base64' }; - const d = new Schema(doc); - expect(typeof d.contentEncoding()).to.be.equal('string'); - expect(d.contentEncoding()).to.be.equal(doc.contentEncoding); - }); - }); - - describe('#contentMediaType()', function() { - it('should return a string', function() { - const doc = { type: 'string', contentMediaType: 'text/html' }; - const d = new Schema(doc); - expect(typeof d.contentMediaType()).to.be.equal('string'); - expect(d.contentMediaType()).to.be.equal(doc.contentMediaType); - }); - }); - - describe('#definitions()', function() { - it('should return a map of Schema objects', function() { - const doc = { definitions: { test: { type: 'string' } } }; - const d = new Schema(doc); - expect(typeof d.definitions()).to.be.equal('object'); - Object.keys(d.definitions()).forEach(key => { - const s = d.definitions()[key]; - expect(s.constructor.name).to.be.equal('Schema'); - expect(s.json()).to.be.equal(doc.definitions[key]); - }); - }); - }); - - describe('#title()', function() { - it('should return a string', function() { - const doc = { type: 'string', title: 'test' }; - const d = new Schema(doc); - expect(typeof d.title()).to.be.equal('string'); - expect(d.title()).to.be.equal(doc.title); - }); - }); - - describe('#default()', function() { - it('should return a value', function() { - const doc = { type: 'string', default: 'test' }; - const d = new Schema(doc); - expect(d.default()).to.be.equal('test'); - }); - }); - - describe('#deprecated()', function() { - it('should return a boolean', function() { - const doc = { type: 'string', deprecated: true }; - const d = new Schema(doc); - expect(typeof d.deprecated()).to.be.equal('boolean'); - expect(d.deprecated()).to.be.equal(doc.deprecated); - }); - }); - - describe('#discriminator()', function() { - it('should return a string', function() { - const doc = { type: 'string', discriminator: 'someType' }; - const d = new Schema(doc); - expect(typeof d.discriminator()).to.be.equal('string'); - expect(d.discriminator()).to.be.equal(doc.discriminator); - }); - }); - - describe('#readOnly()', function() { - it('should return a boolean', function() { - const doc = { type: 'string', readOnly: true }; - const d = new Schema(doc); - expect(typeof d.readOnly()).to.be.equal('boolean'); - expect(d.readOnly()).to.be.equal(doc.readOnly); - }); - }); - - describe('#writeOnly()', function() { - it('should return a boolean', function() { - const doc = { type: 'string', writeOnly: true }; - const d = new Schema(doc); - expect(typeof d.writeOnly()).to.be.equal('boolean'); - expect(d.writeOnly()).to.be.equal(doc.writeOnly); - }); - }); - - describe('#examples()', function() { - it('should return an array', function() { - const doc = { type: 'string', examples: ['test'] }; - const d = new Schema(doc); - expect(Array.isArray(d.examples())).to.be.equal(true); - expect(d.examples()).to.be.equal(doc.examples); - }); - }); - - describe('#isBooleanSchema()', function() { - it('should return a true when schema is true', function() { - const d = new Schema(true); - expect(d.isBooleanSchema()).to.be.equal(true); - }); - - it('_json property should equal to true when schema is true', function() { - const d = new Schema(true); - expect(d.json()).to.be.equal(true); - }); - - it('should return a true when schema is false', function() { - const d = new Schema(false); - expect(d.isBooleanSchema()).to.be.equal(true); - }); - - it('_json property should equal to false when schema is false', function() { - const d = new Schema(false); - expect(d.json()).to.be.equal(false); - }); - }); - - describe('#isCircular()', function() { - it('should return a true when appropriate extension is injected', function() { - const doc = { 'x-parser-circular': true }; - const d = new Schema(doc); - expect(d.isCircular()).to.be.equal(true); - }); - - it('should return a true when schema has circular reference', function() { - const doc = { - properties: { - nonCircular: { - type: 'string', - }, - circular: {}, - } - }; - doc.properties.circular = doc; - const d = new Schema(doc); - expect(d.isCircular()).to.be.equal(false); - expect(d.properties()['nonCircular'].isCircular()).to.be.equal(false); - expect(d.properties()['circular'].isCircular()).to.be.equal(true); - }); - }); - - describe('#circularSchema()', function() { - it('should return a circular schema', function() { - const doc = { - properties: { - nonCircular: { - type: 'string', - }, - circular: {}, - } - }; - doc.properties.circular = doc; - const d = new Schema(doc); - expect(d.isCircular()).to.be.equal(false); - expect(d.properties()['nonCircular'].circularSchema()).to.be.equal(undefined); - expect(d.properties()['circular'].circularSchema()).to.be.equal(d); - }); - }); - - describe('#circularProps()', function() { - it('should return values from appropriate extenion', function() { - const doc = { - properties: { - nonCircular: { - type: 'string', - }, - circular1: {}, - circular2: {}, - }, - 'x-parser-circular-props': [ - 'circular1', - 'circular2', - ] - }; - const d = new Schema(doc); - expect(d.circularProps()).to.deep.equal([ - 'circular1', - 'circular2', - ]); - }); - - it('should return empty array if circular properties do not exist', function() { - const doc = { - properties: { - nonCircular1: { - type: 'string', - }, - nonCircular2: { - type: 'number', - }, - nonCircular3: { - type: 'integer', - }, - } - }; - const d = new Schema(doc); - expect(d.circularProps()).to.deep.equal([]); - }); - - it('should return names of circular properties', function() { - const doc = { - properties: { - nonCircular: { - type: 'string', - }, - circular1: {}, - circular2: {}, - } - }; - doc.properties.circular1 = doc; - doc.properties.circular2 = doc; - const d = new Schema(doc); - expect(d.circularProps()).to.deep.equal([ - 'circular1', - 'circular2', - ]); - }); - }); - - describe('#hasCircularProps()', function() { - it('should return true when appropriate extenion is injected', function() { - const doc = { - properties: { - nonCircular: { - type: 'string', - }, - circular1: {}, - circular2: {}, - }, - 'x-parser-circular-props': [ - 'circular1', - 'circular2', - ] - }; - const d = new Schema(doc); - expect(d.hasCircularProps()).to.be.equal(true); - }); - - it('should return false when circular properties do not exist', function() { - const doc = { - properties: { - nonCircular1: { - type: 'string', - }, - nonCircular2: { - type: 'number', - }, - nonCircular3: { - type: 'integer', - }, - } - }; - const d = new Schema(doc); - expect(d.hasCircularProps()).to.be.equal(false); - }); - - it('should return true when circular properties exist', function() { - const doc = { - properties: { - nonCircular: { - type: 'string', - }, - circular1: {}, - circular2: {}, - } - }; - doc.properties.circular1 = doc; - doc.properties.circular2 = doc; - const d = new Schema(doc); - expect(d.hasCircularProps()).to.be.equal(true); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinDescriptionInheritance(Schema); - assertMixinExternalDocsInheritance(Schema); - assertMixinSpecificationExtensionsInheritance(Schema); - }); - }); -}); diff --git a/test/models/security-scheme_test.js b/test/models/security-scheme_test.js deleted file mode 100644 index 75c2f03bb..000000000 --- a/test/models/security-scheme_test.js +++ /dev/null @@ -1,67 +0,0 @@ -const { expect } = require('chai'); -const js = { type: 'testing', description: 'testing', name: 'testing', in: 'testing', scheme: 'testing', bearerFormat: 'testing', openIdConnectUrl: 'testing', flows: { test: { testing: true } }, 'x-test': 'testing' }; - -const SecurityScheme = require('../../lib/models/security-scheme'); - -const { assertMixinDescriptionInheritance } = require('../mixins/description_test'); -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -describe('SecurityScheme', function() { - describe('#type()', function() { - it('should return a string', function() { - const d = new SecurityScheme(js); - expect(d.type()).to.be.equal(js.type); - }); - }); - - describe('#name()', function() { - it('should return a string', function() { - const d = new SecurityScheme(js); - expect(d.name()).to.be.equal(js.name); - }); - }); - - describe('#in()', function() { - it('should return a string', function() { - const d = new SecurityScheme(js); - expect(d.in()).to.be.equal(js.in); - }); - }); - - describe('#scheme()', function() { - it('should return a string', function() { - const d = new SecurityScheme(js); - expect(d.scheme()).to.be.equal(js.scheme); - }); - }); - - describe('#bearerFormat()', function() { - it('should return a string', function() { - const d = new SecurityScheme(js); - expect(d.bearerFormat()).to.be.equal(js.bearerFormat); - }); - }); - - describe('#openIdConnectUrl()', function() { - it('should return a string', function() { - const d = new SecurityScheme(js); - expect(d.openIdConnectUrl()).to.be.equal(js.openIdConnectUrl); - }); - }); - - describe('#flows()', function() { - it('should return a map of OAuthFlow objects', function() { - const d = new SecurityScheme(js); - expect(typeof d.flows()).to.be.equal('object'); - expect(d.flows().test.constructor.name).to.equal('OAuthFlow'); - expect(d.flows().test.json()).to.equal(js.flows.test); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinDescriptionInheritance(SecurityScheme); - assertMixinSpecificationExtensionsInheritance(SecurityScheme); - }); - }); -}); diff --git a/test/models/server-variable_test.js b/test/models/server-variable_test.js deleted file mode 100644 index e965f2db6..000000000 --- a/test/models/server-variable_test.js +++ /dev/null @@ -1,73 +0,0 @@ -const { expect } = require('chai'); -const js = { enum: ['value1', 'value2'], default: 'value1', description: 'test1', examples: ['value2'], 'x-test': 'testing' }; - -const ServerVariable = require('../../lib/models/server-variable'); - -const { assertMixinDescriptionInheritance } = require('../mixins/description_test'); -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -describe('ServerVariable', function() { - describe('#allowedValues()', function() { - it('should return an array of strings', function() { - const d = new ServerVariable(js); - expect(d.allowedValues()).to.be.equal(js.enum); - }); - }); - - describe('#hasAllowedValues()', function() { - it('should return a true when enum is present', function() { - const d = new ServerVariable(js); - expect(d.hasAllowedValues()).to.be.equal(true); - }); - - it('should return a false when enum is not present', function() { - const d = new ServerVariable({}); - expect(d.hasAllowedValues()).to.be.equal(false); - }); - }); - - describe('#allows()', function() { - it('should return true if the value is in the enum', function() { - const d = new ServerVariable(js); - expect(d.allows('value1')).to.be.equal(true); - }); - - it('should return false if the value is not in the enum', function() { - const d = new ServerVariable(js); - expect(d.allows('not found')).to.be.equal(false); - }); - }); - - describe('#defaultValue()', function() { - it('should return a string', function() { - const d = new ServerVariable(js); - expect(d.defaultValue()).to.be.equal(js.default); - }); - }); - - describe('#hasDefaultValue()', function() { - it('should return true if default is present', function() { - const d = new ServerVariable(js); - expect(d.hasDefaultValue()).to.be.equal(true); - }); - - it('should return false if the value is not in the enum', function() { - const d = new ServerVariable({}); - expect(d.hasDefaultValue()).to.be.equal(false); - }); - }); - - describe('#examples()', function() { - it('should return an array of strings', function() { - const d = new ServerVariable(js); - expect(d.examples()).to.be.equal(js.examples); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinDescriptionInheritance(ServerVariable); - assertMixinSpecificationExtensionsInheritance(ServerVariable); - }); - }); -}); diff --git a/test/models/server_test.js b/test/models/server_test.js deleted file mode 100644 index 68087d7ec..000000000 --- a/test/models/server_test.js +++ /dev/null @@ -1,78 +0,0 @@ -const { expect } = require('chai'); -const js = { url: 'test.com', protocol: 'amqp', protocolVersion: '0-9-1', description: 'test', variables: { test1: { enum: ['value1', 'value2'], default: 'value1', description: 'test1', examples: ['value2'] } }, security: [{ oauth2: ['user:read'] }], bindings: { amqp: 'test' }, 'x-test': 'testing' }; - -const Server = require('../../lib/models/server'); - -const { assertMixinDescriptionInheritance } = require('../mixins/description_test'); -const { assertMixinBindingsInheritance } = require('../mixins/bindings_test'); -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -describe('Server', function() { - describe('#url()', function() { - it('should return a string', function() { - const d = new Server(js); - expect(d.url()).to.be.equal(js.url); - }); - }); - - describe('#protocol()', function() { - it('should return a string', function() { - const d = new Server(js); - expect(d.protocol()).to.be.equal(js.protocol); - }); - }); - - describe('#protocolVersion()', function() { - it('should return a string', function() { - const d = new Server(js); - expect(d.protocolVersion()).to.be.equal(js.protocolVersion); - }); - }); - - describe('#hasVariables()', function() { - it('should return a boolean indicating if a server URL has variables', function() { - const doc = { url: 'test1:{port}', variables: { port: { desc: 'test1' } } }; - const docNoServerVariables = { url: 'test' }; - const d = new Server(doc); - const d2 = new Server(docNoServerVariables); - expect(d.hasVariables()).to.equal(true); - expect(d2.hasVariables()).to.equal(false); - }); - }); - - describe('#variables()', function() { - it('should return a map of ServerVariable objects', function() { - const d = new Server(js); - expect(typeof d.variables()).to.be.equal('object'); - expect(d.variables().test1.constructor.name).to.equal('ServerVariable'); - expect(d.variables().test1.json()).to.equal(js.variables.test1); - }); - }); - - describe('#variable()', function() { - it('should return a specific ServerVariable object', function() { - const d = new Server(js); - expect(d.variable('test1').constructor.name).to.equal('ServerVariable'); - expect(d.variable('test1').json()).to.equal(js.variables.test1); - }); - }); - - describe('#security()', function() { - it('should return an array of security requirements objects', function() { - const d = new Server(js); - expect(Array.isArray(d.security())).to.equal(true); - d.security().forEach((s, i) => { - expect(s.constructor.name).to.equal('ServerSecurityRequirement'); - expect(s.json()).to.equal(js.security[i]); - }); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinDescriptionInheritance(Server); - assertMixinBindingsInheritance(Server); - assertMixinSpecificationExtensionsInheritance(Server); - }); - }); -}); diff --git a/test/models/tag_test.js b/test/models/tag_test.js deleted file mode 100644 index c38a09ebe..000000000 --- a/test/models/tag_test.js +++ /dev/null @@ -1,25 +0,0 @@ -const { expect } = require('chai'); -const js = { name: 'test', description: 'Testing', externalDocs: { url: 'somewhere' }, 'x-test': 'testing' }; - -const Tag = require('../../lib/models/tag'); - -const { assertMixinDescriptionInheritance } = require('../mixins/description_test'); -const { assertMixinExternalDocsInheritance } = require('../mixins/external-docs_test'); -const { assertMixinSpecificationExtensionsInheritance } = require('../mixins/specification-extensions_test'); - -describe('Tag', function() { - describe('#name()', function() { - it('should return a string', function() { - const d = new Tag(js); - expect(d.name()).to.be.equal(js.name); - }); - }); - - describe('#mixins', function() { - it('model should inherit from mixins', function() { - assertMixinDescriptionInheritance(Tag); - assertMixinExternalDocsInheritance(Tag); - assertMixinSpecificationExtensionsInheritance(Tag); - }); - }); -}); diff --git a/test/models/utils_test.js b/test/models/utils_test.js deleted file mode 100644 index 1254c2b84..000000000 --- a/test/models/utils_test.js +++ /dev/null @@ -1,52 +0,0 @@ -const { expect } = require('chai'); - -const utils = require('../../lib/models/utils'); - -describe('utils', function() { - describe('mix()', function() { - const Mixin = { - utilFn() { - // This is intentional - }, - }; - - it('should create mixed object', function() { - const Model = utils.mix(class {}, Mixin); - - expect(Model.prototype.utilFn).not.to.be.equal(undefined); - expect(Model.prototype.utilFn === Mixin.utilFn).to.be.equal(true); - }); - - it('should throw error if one of mixins is a model reference', function() { - class Base {} - - let error = undefined; - try { - utils.mix(Base, Mixin, Base); - } catch (e) { - error = e; - } - - expect(error).not.to.be.equal(undefined); - expect(error.message).to.be.equal(`invalid mix function: cannot use the model ${Base.name} as a mixin`); - }); - - it('should throw error if model has method identically like in one of mixins', function() { - class Base { - utilFn() { - // This is intentional - } - } - - let error = undefined; - try { - utils.mix(Base, Mixin); - } catch (e) { - error = e; - } - - expect(error).not.to.be.equal(undefined); - expect(error.message).to.be.equal(`invalid mix function: model ${Base.name} has at least one method that it is trying to replace by mixin`); - }); - }); -}); diff --git a/test/parseFromUrl_test.js b/test/parseFromUrl_test.js deleted file mode 100644 index aa4a33ca0..000000000 --- a/test/parseFromUrl_test.js +++ /dev/null @@ -1,76 +0,0 @@ -const chai = require('chai'); -const chaiAsPromised = require('chai-as-promised'); -const parser = require('../lib'); -const { checkErrorWrapper } = require('./testsUtils'); - -chai.use(chaiAsPromised); -const expect = chai.expect; - -const validOutputJSON = '{"asyncapi":"2.0.0","info":{"title":"My API","version":"1.0.0"},"channels":{"/test/tester":{"subscribe":{"message":{"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":""}}}},"x-parser-spec-parsed":true}'; - -describe('parseFromUrl()', function() { - it('should parse YAML correctly from URL', async function() { - const result = await parser.parseFromUrl('http://localhost:8080/asyncapi.yaml'); - expect(JSON.stringify(result.json())).to.equal(validOutputJSON); - }); - - it('should parse 2 AsyncAPI specs in Promise.all() from URL', async function() { - const input = [ - parser.parseFromUrl('http://localhost:8080/asyncapi.yaml'), - parser.parseFromUrl('http://localhost:8080/asyncapi.yaml') - ]; - const result = await Promise.all(input); - expect(JSON.stringify(result[0].json())).to.equal(validOutputJSON); - expect(JSON.stringify(result[1].json())).to.equal(validOutputJSON); - }); - - it('should fail when url is not absolute and not valid', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/fetch-url-error', - message: 'Only absolute URLs are supported', - }; - - await checkErrorWrapper(async () => { - await parser.parseFromUrl('invalidURL'); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parseFromUrl(''); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parseFromUrl(false); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parseFromUrl(undefined); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parseFromUrl(NaN); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parseFromUrl(true); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parseFromUrl([]); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parseFromUrl(new Map()); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parseFromUrl(new Set()); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parseFromUrl(new WeakMap()); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parseFromUrl(new WeakSet()); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parseFromUrl(1); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parseFromUrl(() => {}); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parseFromUrl('asynapi.org'); - }, expectedErrorObject); - }); -}); diff --git a/test/parse_test.js b/test/parse_test.js deleted file mode 100644 index d2635ca88..000000000 --- a/test/parse_test.js +++ /dev/null @@ -1,946 +0,0 @@ -const chai = require('chai'); -const chaiAsPromised = require('chai-as-promised'); -const fs = require('fs'); -const path = require('path'); -const parser = require('../lib'); -const { xParserSpecParsed } = require('../lib/constants'); -const { offset, checkErrorWrapper } = require('./testsUtils'); - -chai.use(chaiAsPromised); -const expect = chai.expect; - -const invalidYAML = fs.readFileSync(path.resolve(__dirname, './wrong/malformed-asyncapi.yaml'), 'utf8'); -const inputYAML = fs.readFileSync(path.resolve(__dirname, './good/asyncapi.yaml'), 'utf8'); -const inputYAMLNoComponents = fs.readFileSync(path.resolve(__dirname, './good/asyncapi-no-components.yml'), 'utf8'); -const inputYAMLNoChannels = fs.readFileSync(path.resolve(__dirname, './good/asyncapi-no-channels.yml'), 'utf8'); -const inputYAMLMessagesChannels = fs.readFileSync(path.resolve(__dirname, './good/asyncapi-messages-channels.yml'), 'utf8'); -const inputYAMLCircular = fs.readFileSync(path.resolve(__dirname, './good/circular-refs.yaml'), 'utf8'); -const inputJSON = fs.readFileSync(path.resolve(__dirname, './good/asyncapi.json'), 'utf8'); -const invalidAsyncapiYAML = fs.readFileSync(path.resolve(__dirname, './wrong/invalid-asyncapi.yaml'), 'utf8'); -const invalidAsyncpiJSON = fs.readFileSync(path.resolve(__dirname, './wrong/invalid-asyncapi.json'), 'utf8'); -const outputJSONForObjectInput = '{"asyncapi":"2.0.0","info":{"title":"My API","version":"1.0.0"},"channels":{"mychannel":{"publish":{"message":{"payload":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""},"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"name":{"type":"string"}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":""}}}},"components":{"messages":{"testMessage":{"payload":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""},"test":{"type":"object","properties":{"testing":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"},"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"name":{"type":"string"},"test":{"type":"object","properties":{"testing":{"type":"string"}}}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":"testMessage"}},"schemas":{"testSchema":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""},"test":{"type":"object","properties":{"testing":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"}}},"x-parser-spec-parsed":true}'; -const outputJSON = '{"asyncapi":"2.0.0","info":{"title":"My API","version":"1.0.0"},"channels":{"mychannel":{"publish":{"externalDocs":{"x-extension":true,"url":"https://company.com/docs"},"message":{"payload":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""},"test":{"type":"object","properties":{"testing":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"},"x-some-extension":"some extension","x-parser-original-traits":[{"x-some-extension":"some extension"}],"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"name":{"type":"string"},"test":{"type":"object","properties":{"testing":{"type":"string"}}}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":"testMessage"},"x-parser-original-traits":[{"externalDocs":{"url":"https://company.com/docs"}}]}},"oneOfMessageChannel":{"publish":{"message":{"oneOf":[{"payload":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""},"test":{"type":"object","properties":{"testing":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"},"x-some-extension":"some extension","x-parser-original-traits":[{"x-some-extension":"some extension"}],"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"name":{"type":"string"},"test":{"type":"object","properties":{"testing":{"type":"string"}}}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":"testMessage"}]}}}},"components":{"messages":{"testMessage":{"payload":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""},"test":{"type":"object","properties":{"testing":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"},"x-some-extension":"some extension","x-parser-original-traits":[{"x-some-extension":"some extension"}],"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"name":{"type":"string"},"test":{"type":"object","properties":{"testing":{"type":"string"}}}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":"testMessage"}},"schemas":{"testSchema":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""},"test":{"type":"object","properties":{"testing":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"}},"messageTraits":{"extension":{"x-some-extension":"some extension"}},"operationTraits":{"docs":{"externalDocs":{"url":"https://company.com/docs"}}}},"x-parser-spec-parsed":true}'; -const outputJSONNoComponents = '{"asyncapi":"2.0.0","info":{"title":"My API","version":"1.0.0"},"channels":{"/test/tester":{"subscribe":{"message":{"payload":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""},"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"name":{"type":"string"}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":""}}}},"x-parser-spec-parsed":true}'; -const invalidYamlOutput = '{"asyncapi":"2.0.0","info":{"test": true,"version":"1.0.0"},"channels":{"mychannel":{"publish":{"traits":[{"externalDocs":{"url":"https://company.com/docs"}}],"externalDocs":{"x-extension":true,"url":"https://irrelevant.com"},"message":{"traits":[{"x-some-extension":"some extension"}],"payload":{"type":"object","properties":{"name":{"type":"string"},"test":{"type":"object","properties":{"testing":{"type":"string"}}}}}}}}},"test":true,"components":{"messages":{"testMessage":{"traits":[{"x-some-extension":"some extension"}],"payload":{"type":"object","properties":{"name":{"type":"string"},"test":{"type":"object","properties":{"testing":{"type":"string"}}}}}}},"schemas":{"testSchema":{"type":"object","properties":{"name":{"type":"string"},"test":{"type":"object","properties":{"testing":{"type":"string"}}}}}},"messageTraits":{"extension":{"x-some-extension":"some extension"}},"operationTraits":{"docs":{"externalDocs":{"url":"https://company.com/docs"}}}}}'; -const invalidJsonOutput = '{"asyncapi":"2.0.0","info":{"test":true,"version":"1.0.0"},"channels":{"mychannel":{"publish":{"message":{"payload":{"type":"object","properties":{"name":{"type":"string"}}}}}}},"test":true,"components":{"messages":{"testMessage":{"payload":{"type":"object","properties":{"name":{"type":"string"},"test":{"type":"object","properties":{"testing":{"type":"string"}}}}}}},"schemas":{"testSchema":{"type":"object","properties":{"name":{"type":"string"},"test":{"type":"object","properties":{"testing":{"type":"string"}}}}}}}}'; -const outputJsonWithRefs = '{"asyncapi":"2.0.0","info":{"title":"My API","version":"1.0.0"},"channels":{"mychannel":{"publish":{"traits":[{"externalDocs":{"url":"https://company.com/docs"}}],"externalDocs":{"x-extension":true,"url":"https://irrelevant.com"},"message":{"traits":[{"x-some-extension":"some extension"}],"payload":{"type":"object","properties":{"name":{"type":"string"},"test":null}}}}},"oneOfMessageChannel":{"publish":{"message":{"oneOf":[{"traits":[{"x-some-extension":"some extension"}],"payload":{"type":"object","properties":{"name":{"type":"string"},"test":null}}}]}}}},"components":{"messages":{"testMessage":{"traits":[{"x-some-extension":"some extension"}],"payload":{"type":"object","properties":{"name":{"type":"string"},"test":null}}}},"schemas":{"testSchema":{"type":"object","properties":{"name":{"type":"string"},"test":null}}},"messageTraits":{"extension":{"x-some-extension":"some extension"}},"operationTraits":{"docs":{"externalDocs":{"url":"https://company.com/docs"}}}}}'; -const invalidAsyncAPI = '{"asyncapi":"2.0.0","info":{}}'; -const outputJSONNoChannels = '{"asyncapi":"2.0.0","info":{"title":"My API","version":"1.0.0"},"channels":{},"components":{"messages":{"testMessage":{"payload":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"},"x-some-extension":"some extension","headers":{"type":"object","properties":{"some-common-header":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""},"x-parser-original-traits":[{"x-some-extension":"some extension","headers":{"type":"object","properties":{"some-common-header":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}}],"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"name":{"type":"string"}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":"testMessage"}},"schemas":{"testSchema":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"}},"messageTraits":{"extension":{"x-some-extension":"some extension","headers":{"type":"object","properties":{"some-common-header":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}}}},"x-parser-spec-parsed":true}'; -const outputJSONMessagesChannels = '{"asyncapi":"2.0.0","info":{"title":"My API","version":"1.0.0"},"channels":{"mychannel":{"publish":{"message":{"x-some-extension":"some extension","headers":{"type":"object","properties":{"some-common-header":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""},"x-parser-original-traits":[{"x-some-extension":"some extension","headers":{"type":"object","properties":{"some-common-header":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}}],"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":"channelMessage"}}}},"components":{"messages":{"channelMessage":{"x-some-extension":"some extension","headers":{"type":"object","properties":{"some-common-header":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""},"x-parser-original-traits":[{"x-some-extension":"some extension","headers":{"type":"object","properties":{"some-common-header":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}}],"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":"channelMessage"},"testMessage":{"payload":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"},"x-some-extension":"some extension","headers":{"type":"object","properties":{"some-common-header":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""},"x-parser-original-traits":[{"x-some-extension":"some extension","headers":{"type":"object","properties":{"some-common-header":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}}],"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"name":{"type":"string"}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":"testMessage"}},"schemas":{"testSchema":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"}},"messageTraits":{"extension":{"x-some-extension":"some extension","headers":{"type":"object","properties":{"some-common-header":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}}}},"x-parser-spec-parsed":true}'; - -// Source: https://github.com/asyncapi/tck/blob/master/tests/asyncapi-2.0/AsyncAPI%20Object/invalid-duplicate-tags.yaml -const invalidRootWithDuplicateTags = fs.readFileSync(path.resolve(__dirname, './wrong/invalid-asyncapi-root-with-duplicate-tags.yaml'), 'utf8'); -const invalidRootWithDuplicateTagsJSON = '{"asyncapi":"2.0.0","tags":[{"name":"user","description":"user signed up"},{"name":"user"}],"info":{"title":"Signup service example (internal)","version":"0.1.0"},"channels":{"\/user\/signedup":{"subscribe":{"message":{"payload":{"type":"object","properties":{"email":{"type":"string","format":"email"}}}}}}}}'; - -// Source: https://github.com/asyncapi/tck/blob/master/tests/asyncapi-2.0/Operation%20Object/invalid-duplicate-tags.yaml -const invalidOperationWithDuplicateTags = fs.readFileSync(path.resolve(__dirname, './wrong/invalid-operation-with-duplicate-tags.yaml'), 'utf8'); -const invalidOperationWithDuplicateTagsJSON = '{"asyncapi":"2.0.0","info":{"title":"Signup service example (internal)","version":"0.1.0"},"channels":{"\/user\/signedup":{"subscribe":{"operationId":"userSignedUp","summary":"user signed up","description":"user signed up to load some data","message":{"payload":{"type":"object","properties":{"email":{"type":"string","format":"email"}}}},"tags":[{"name":"user","description":"user signed up"},{"name":"user"}]}}}}'; - -// Source: https://github.com/asyncapi/tck/blob/master/tests/asyncapi-2.0/Operation%20Trait%20Object/invalid-duplicate-tags.yaml -const invalidOperationTraitsWithDuplicateTags = fs.readFileSync(path.resolve(__dirname, './wrong/invalid-operation-traits-with-duplicate-tags.yaml'), 'utf8'); -const invalidOperationTraitsWithDuplicateTagsJSON = '{"asyncapi":"2.0.0","info":{"title":"Signup service example (internal)","version":"0.1.0"},"channels":{"\/user\/signedup":{"subscribe":{"message":{"payload":{"type":"object","properties":{"email":{"type":"string","format":"email"}}}},"traits":[{"tags":[{"description":"user signed up","name":"user"},{"name":"user"}]}]}}},"components":{"operationTraits":{"userSignedUpTrait":{"tags":[{"name":"user","description":"user signed up"},{"name":"user"}]}}}}'; - -// Source: https://github.com/asyncapi/tck/blob/master/tests/asyncapi-2.0/Message%20Object/invalid-duplicate-tags.yaml -const invalidMessageWithDuplicateTags = fs.readFileSync(path.resolve(__dirname, './wrong/invalid-message-with-duplicate-tags.yaml'), 'utf8'); -const invalidMessageWithDuplicateTagsJSON = '{"asyncapi":"2.0.0","info":{"title":"Signup service example (internal)","version":"0.1.0"},"channels":{"\/user\/signedup":{"subscribe":{"message":{"contentType":"application\/json","tags":[{"name":"user","description":"user signed up"},{"name":"user"}]}}}}}'; - -const invalidMessageOneOfWithDuplicateTags = fs.readFileSync(path.resolve(__dirname, './wrong/invalid-operation-with-oneof-and-duplicate-tags.yaml'), 'utf8'); -const invalidMessageOneOfWithDuplicateTagsJSON = '{"asyncapi":"2.0.0","info":{"title":"Signup service example (internal)","version":"0.1.0"},"channels":{"\/user\/signedup":{"publish":{"operationId":"userSignedUp","summary":"user signed up","description":"user signed up to load some data","message":{"oneOf":[{"tags":[{"description":"Description for first tag","name":"user"},{"name":"user"},{"name":"user2"}]},{"contentType":"application\/json","tags":[{"description":"Description for first tag","name":"user"},{"name":"user"},{"name":"user2"}]},{"payload":null,"tags":[{"description":"Description for user3 tag","name":"user3"},{"name":"user3"}]}]}}}},"components":{"messages":{"testMessage1":{"tags":[{"name":"user","description":"Description for first tag"},{"name":"user"},{"name":"user2"}]},"testMessage2":{"tags":[{"name":"user","description":"Description for first tag"},{"name":"user"},{"name":"user2"}],"contentType":"application\/json"}}}}'; - -// Source: https://github.com/asyncapi/tck/blob/master/tests/asyncapi-2.0/Message%20Trait%20Object/invalid-duplicate-tags.yaml -const invalidMessageTraitWithDuplicateTags = fs.readFileSync(path.resolve(__dirname, './wrong/invalid-message-traits-with-duplicate-tags.yaml'), 'utf8'); -const invalidMessageTraitWithDuplicateTagsJSON = '{"asyncapi":"2.0.0","info":{"title":"Signup service example (internal)","version":"0.1.0"},"channels":{"\/user\/signedup":{"subscribe":{"message":{"traits":[{"contentType":"application\/json","tags":[{"description":"user signed up","name":"user"},{"name":"user"}]}]}}}},"components":{"messageTraits":{"signedUpMessage":{"tags":[{"name":"user","description":"user signed up"},{"name":"user"}],"contentType":"application\/json"}}}}'; - -describe('parse()', function() { - it('should parse YAML', async function() { - const result = await parser.parse(inputYAML, { path: __filename }); - expect(JSON.stringify(result.json())).to.equal(outputJSON); - }); - - it('should parse AsyncAPI document passed as JS object', async function() { - const object = JSON.parse(inputJSON); - const result = await parser.parse(object, { path: __filename }); - expect(JSON.stringify(result.json())).to.equal(outputJSONForObjectInput); - }); - - it('should parse YAML correctly when no components object', async function() { - const result = await parser.parse(inputYAMLNoComponents, { path: __filename }); - expect(JSON.stringify(result.json())).to.equal(outputJSONNoComponents); - }); - - it('should parse 2 AsyncAPI specs in Promise.all() and not fail with resolving references', async function() { - const input = [ - parser.parse(inputYAML, { path: __filename }), - parser.parse(inputYAML, { path: __filename }) - ]; - const result = await Promise.all(input); - expect(JSON.stringify(result[0].json())).to.equal(outputJSON); - expect(JSON.stringify(result[1].json())).to.equal(outputJSON); - }); - - it('should apply traits to messages even with empty channels object', async function() { - const result = await parser.parse(inputYAMLNoChannels, { path: __filename }); - expect(JSON.stringify(result.json())).to.equal(outputJSONNoChannels); - }); - - it('should apply traits to messages used and not used in a channel', async function() { - const result = await parser.parse(inputYAMLMessagesChannels, { path: __filename }); - expect(JSON.stringify(result.json())).to.equal(outputJSONMessagesChannels); - }); - - it('should fail when asyncapi is not valid', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'There were errors validating the AsyncAPI document.', - parsedJSON: JSON.parse(invalidAsyncAPI), - validationErrors: [{ - title: '/info should have required property \'title\'', - location: { - endColumn: 31, - endLine: 1, - endOffset: 29, - jsonPointer: '/info', - startColumn: 29, - startLine: 1, - startOffset: 27 - } - }, - { - title: '/info should have required property \'version\'', - location: { - endColumn: 31, - endLine: 1, - endOffset: 29, - jsonPointer: '/info', - startColumn: 29, - startLine: 1, - startOffset: 27 - } - }, - { - title: '/ should have required property \'channels\'', - location: { jsonPointer: '/' } - }] - }; - - await checkErrorWrapper(async () => { - await parser.parse(invalidAsyncAPI); - }, expectedErrorObject); - }); - - it('should fail when asyncapi is not valid (yaml)', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'There were errors validating the AsyncAPI document.', - parsedJSON: JSON.parse(invalidYamlOutput), - validationErrors: [ - { - title: '/ should NOT have additional properties', - location: { - jsonPointer: '/test', - startLine: 15, - startColumn: 1, - startOffset: offset(305,15), - endLine: 15, - endColumn: 11, - endOffset: offset(315,15) - } - }, - { - title: '/info should NOT have additional properties', - location: { - jsonPointer: '/info/test', - startLine: 3, - startColumn: 3, - startOffset: offset(24,3), - endLine: 3, - endColumn: 13, - endOffset: offset(34,3) - } - }, - { - title: '/info should have required property \'title\'', - location: { - jsonPointer: '/info', - startLine: 2, - startColumn: 1, - startOffset: offset(16,2), - endLine: 4, - endColumn: 19, - endOffset: offset(53,4) - } - } - ] - - }; - - await checkErrorWrapper(async () => { - await parser.parse(invalidAsyncapiYAML, { path: __filename }); - }, expectedErrorObject); - }); - - it('should fail when asyncapi is not valid (ref with line break) (yaml)', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'There were errors validating the AsyncAPI document.', - validationErrors: [ - { - title: '/channels/smartylighting~1streetlights~11~10~1action~1{streetlightId}~1turn~1off/parameters/streetlightId/$ref should match format \"uri-reference\"', - location: { - jsonPointer: '/channels/smartylighting~1streetlights~11~10~1action~1{streetlightId}~1turn~1off/parameters/streetlightId/$ref', - startLine: 67, - startColumn: 9, - startOffset: offset(1970, 67), - endLine: 68, - endColumn: 46, - endOffset: offset(2024, 68), - } - } - ] - }; - - await checkErrorWrapper(async () => { - await parser.parse(fs.readFileSync(path.resolve(__dirname, './wrong/invalid-asyncapi-with-ref-with-line-break.yaml'), 'utf8'), { - path: __filename, - }); - }, expectedErrorObject); - }); - - it('should fail when asyncapi is not valid (json)', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'There were errors validating the AsyncAPI document.', - parsedJSON: JSON.parse(invalidJsonOutput), - validationErrors: [ - { - title: '/ should NOT have additional properties', - location: { - jsonPointer: '/test', - startLine: 23, - startColumn: 11, - startOffset: offset(299,23), - endLine: 23, - endColumn: 15, - endOffset: offset(303,23) - } - }, - { - title: '/info should NOT have additional properties', - location: { - jsonPointer: '/info/test', - startLine: 4, - startColumn: 12, - startOffset: offset(45,4), - endLine: 4, - endColumn: 16, - endOffset: offset(49,4) - } - }, - { - title: '/info should have required property \'title\'', - location: { - jsonPointer: '/info', - startLine: 3, - startColumn: 11, - startOffset: offset(33,3), - endLine: 6, - endColumn: 4, - endOffset: offset(74,6) - } - } - ] - - }; - - await checkErrorWrapper(async () => { - await parser.parse(invalidAsyncpiJSON, { path: __filename }); - }, expectedErrorObject); - }); - - it('should fail when it is not possible to convert asyncapi to json', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/impossible-to-convert-to-json', - title: 'Could not convert AsyncAPI to JSON.', - detail: 'Most probably the AsyncAPI document contains invalid YAML or YAML features not supported in JSON.' - }; - - await checkErrorWrapper(async () => { - await parser.parse('bad'); - }, expectedErrorObject); - }); - - it('should fail when asyncapi is not present', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/missing-asyncapi-field', - title: 'The `asyncapi` field is missing.', - parsedJSON: JSON.parse('{"bad":true}') - }; - - await checkErrorWrapper(async () => { - await parser.parse('bad: true'); - }, expectedErrorObject); - }); - - it('should fail when asyncapi version is not supported', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/unsupported-version', - title: 'Version 1.2.0 is not supported.', - detail: 'Please use latest version of the specification.', - parsedJSON: JSON.parse('{"asyncapi":"1.2.0"}'), - validationErrors: [ - { - jsonPointer: '/asyncapi', - startLine: 1, - startColumn: 1, - startOffset: 0, - endLine: 1, - endColumn: 16, - endOffset: 15 - } - ] - }; - - await checkErrorWrapper(async () => { - await parser.parse('asyncapi: 1.2.0'); - }, expectedErrorObject); - }); - - it('should fail when asyncapi is not yaml nor json', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/invalid-yaml', - title: 'The provided YAML is not valid.', - detail: 'duplicated mapping key at line 2, column -4:\n bad:\n ^', - location: { startOffset: 5, startLine: 2, startColumn: -4 } - }; - - await checkErrorWrapper(async () => { - await parser.parse('bad:\nbad:'); - }, expectedErrorObject); - }); - - it('should fail to resolve relative files when options.path is not provided', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/dereference-error', - title: `Error opening file "${path.resolve(process.cwd(), 'refs/refed.yaml')}" \nENOENT: no such file or directory, open '${path.resolve(process.cwd(), 'refs/refed.yaml')}'`, - parsedJSON: JSON.parse(outputJsonWithRefs), - refs: [ - { - jsonPointer: '/components/schemas/testSchema/properties/test/$ref', - startLine: 35, - startColumn: 11, - startOffset: offset(736, 35), - endLine: 35, - endColumn: 34, - endOffset: offset(759, 35) - } - ] - }; - await checkErrorWrapper(async () => { - await parser.parse(inputYAML); - }, expectedErrorObject); - }); - - it('should offer information about YAML line and column where $ref errors are located', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/dereference-error', - title: `Error opening file "${path.resolve(process.cwd(), 'refs/refed.yaml')}" \nENOENT: no such file or directory, open '${path.resolve(process.cwd(), 'refs/refed.yaml')}'`, - refs: [ - { - jsonPointer: '/components/schemas/testSchema/properties/test/$ref', - startLine: 35, - startColumn: 11, - startOffset: offset(736, 35), - endLine: 35, - endColumn: 34, - endOffset: offset(759, 35) - } - ] - }; - - await checkErrorWrapper(async () => { - await parser.parse(inputYAML); - }, expectedErrorObject); - }); - - it('should offer information about JSON line and column where $ref errors are located', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/dereference-error', - title: `Error opening file "${path.resolve(process.cwd(), 'refs/refed.yaml')}" \nENOENT: no such file or directory, open '${path.resolve(process.cwd(), 'refs/refed.yaml')}'`, - refs: [ - { - jsonPointer: '/components/schemas/testSchema/properties/test/$ref', - startLine: 38, - startColumn: 21, - startOffset: offset(599, 38), - endLine: 38, - endColumn: 38, - endOffset: offset(616, 38) - } - ] - }; - - await checkErrorWrapper(async () => { - await parser.parse(inputJSON); - }, expectedErrorObject); - }); - - it('should not offer information about JS line and column where $ref errors are located if format is JS', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/dereference-error', - title: `Error opening file "${path.resolve(process.cwd(), 'refs/refed.yaml')}" \nENOENT: no such file or directory, open '${path.resolve(process.cwd(), 'refs/refed.yaml')}'`, - refs: [ - { - jsonPointer: '/components/schemas/testSchema/properties/test/$ref', - } - ] - }; - - await checkErrorWrapper(async () => { - await parser.parse(JSON.parse(inputJSON)); - }, expectedErrorObject); - }); - - it('should offer information about missing HTTP $refs', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/dereference-error', - title: 'Error downloading https://example.com/components/messages/testMessage \nHTTP ERROR 404', - refs: [ - { - jsonPointer: '/channels/mychannel/publish/message/$ref', - startLine: 9, - startColumn: 9, - startOffset: offset(116, 9), - endLine: 9, - endColumn: 68, - endOffset: offset(175, 9), - } - ] - }; - - await checkErrorWrapper(async () => { - await parser.parse(fs.readFileSync(path.resolve(__dirname, './wrong/inexisting-http-ref.yaml'), 'utf8'), { - path: 'https://example.com', - resolve: { - file: false - } - }); - }, expectedErrorObject); - }); - - it('should offer information about missing root $refs', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/dereference-error', - title: 'Error downloading https://example.com/components/messages/testMessage \nHTTP ERROR 404', - refs: [ - { - jsonPointer: '/channels/mychannel/subscribe/message/$ref', - startLine: 9, - startColumn: 9, - startOffset: offset(118, 9), - endLine: 9, - endColumn: 49, - endOffset: offset(158, 9), - } - ] - }; - - await checkErrorWrapper(async () => { - await parser.parse(fs.readFileSync(path.resolve(__dirname, './wrong/inexisting-root-ref.yaml'), 'utf8'), { - path: 'https://example.com', - resolve: { - file: false - } - }); - }, expectedErrorObject); - }); - - it('should offer information about missing local $refs', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/dereference-error', - title: 'Token "components" does not exist.', - refs: [ - { - jsonPointer: '/channels/mychannel2/publish/message/$ref', - startLine: 9, - startColumn: 9, - startOffset: offset(117, 9), - endLine: 9, - endColumn: 50, - endOffset: offset(158, 9), - } - ] - }; - - await checkErrorWrapper(async () => { - await parser.parse(fs.readFileSync(path.resolve(__dirname, './wrong/inexisting-local-ref.yaml'), 'utf8'), { - path: 'https://example.com', - resolve: { - file: false - } - }); - }, expectedErrorObject); - }); - - it('should throw proper error even if issue is inside $refed file of a $refed file', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/schema-validation-errors', - title: 'This is not a valid AsyncAPI Schema Object.' - }; - - await checkErrorWrapper(async () => { - await parser.parse(fs.readFileSync(path.resolve(__dirname, './wrong/good-ref-to-broken-file.yaml'), 'utf8'), { - path: __filename, - }); - }, expectedErrorObject); - }); - - it('should throw error if document is invalid YAML', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/invalid-yaml', - title: 'The provided YAML is not valid.', - detail: 'bad indentation of a mapping entry at line 19, column 11:\n $ref: "#/components/schemas/sentAt"\n ^', - location: { startOffset: offset(460, 19), startLine: 19, startColumn: 11 } - }; - - await checkErrorWrapper(async () => { - await parser.parse(invalidYAML, { path: __filename }); - }, expectedErrorObject); - }); - - it('should throw error if document is invalid JSON', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/invalid-json', - title: 'The provided JSON is not valid.', - detail: 'Unexpected token j in JSON at position 12 while parsing near \' {"invalid "json" }\'', - location: { startOffset: 12, startLine: 1, startColumn: 12 } - }; - - await checkErrorWrapper(async () => { - await parser.parse(' {"invalid "json" }'); - }, expectedErrorObject); - }); - - it('should throw error if document is null or falsey', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/null-or-falsey-document', - title: 'Document can\'t be null or falsey.', - }; - await checkErrorWrapper(async () => { - await parser.parse(''); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parse(false); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parse(null); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parse(undefined); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parse(NaN); - }, expectedErrorObject); - }); - - it('should throw error if document is not string nor object', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/invalid-document-type', - title: 'The AsyncAPI document has to be either a string or a JS object.', - }; - - await checkErrorWrapper(async () => { - await parser.parse(true); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parse([]); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parse(new Map()); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parse(new Set()); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parse(new WeakMap()); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parse(new WeakSet()); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parse(1); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parse(Symbol('test')); - }, expectedErrorObject); - await checkErrorWrapper(async () => { - await parser.parse(() => {}); - }, expectedErrorObject); - }); - - it('Should include schemas after circular property', async function() { - const input = '{"asyncapi":"2.0.0","info":{"title":"My API","version":"1.0.0"},"channels":{"test":{"publish":{"message":{"payload":{"$ref":"#/components/schemas/testSchema"}}}}},"components":{"schemas":{"testSchema":{"$id":"testSchema","type":"object","test":true,"properties":{"recursiveTestProp":{"$ref":"#/components/schemas/testSchema"},"testProp":{"$id":"testString","type":"string"}}}}}}'; - const result = await parser.parse(input, { path: __filename }); - const schemas = new Map(); - const cb = (schema) => { - schemas.set(schema.uid(), schema); - }; - result.traverseSchemas(cb); - - //Ensure the actual keys are as expected - const schemaKeys = Array.from(schemas.keys()); - expect(schemaKeys).to.deep.equal([ - 'testSchema', - 'testString' - ]); - }); - - it('should properly mark circular references', async function() { - const result = await parser.parse(inputYAMLCircular, { path: __filename }); - - //not testing on a model level as required xParserCircle value is added before model construction so we need to test through calling parser function - expect(result.hasCircular()).to.equal(true); - - // we want false here, even though this schema has some circular refs in some props, it is not circular, but just specific items - expect(result.components().schema('RecursiveSelf').isCircular()).to.equal(false); - expect(result.components().schema('NonRecursive').isCircular()).to.equal(false); - expect(result.components().schema('RecursiveSelf').properties()['selfChildren'].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveSelf').properties()['selfChildren'].items().isCircular()).to.equal(true); - expect(result.components().schema('RecursiveSelf').properties()['selfObjectChildren'].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveSelf').properties()['selfObjectChildren'].properties()['test'].isCircular()).to.equal(true); - expect(result.components().schema('NonRecursive').properties()['child'].isCircular()).to.equal(false); - - // NormalSchemaB is referred twice, from NormalSchemaA and NormalSchemaC. - // If seenObjects array is not handled properly, once NormalSchemaB is seen for a second time while traversing NormalSchemaC, then NormalSchemaC is marked as object holding circular refs - // This is why it is important to check that NormalSchemaC is or sure not marked as circular - expect(result.components().schema('NormalSchemaC').isCircular()).to.equal(false); - - // NestedAllOfSchema has circular reference - expect(result.components().schema('NestedAllOfSchema').allOf()[0].isCircular()).to.equal(false); - expect(result.components().schema('NestedAllOfSchema').allOf()[1].properties()['parent'].allOf()[0].isCircular()).to.equal(true); - expect(result.components().schema('NestedAllOfSchema').allOf()[1].properties()['parent'].allOf()[1].isCircular()).to.equal(false); - - // OneOf has circular reference - expect(result.components().schema('OneOf').properties()['kind'].isCircular()).to.equal(false); - expect(result.components().schema('OneOf').properties()['kind'].oneOf()[0].isCircular()).to.equal(true); - - // AnyOf has circular reference - expect(result.components().schema('AnyOf').anyOf()[5].isCircular()).to.equal(false); - expect(result.components().schema('AnyOf').anyOf()[5].items().isCircular()).to.equal(true); - - // external/file channel has deep circular reference - expect(result.channel('external/file').publish().messages()[0].payload().properties()['testExt'].properties()['children'].isCircular()).to.equal(false); - expect(result.channel('external/file').publish().messages()[0].payload().properties()['testExt'].properties()['children'].items().isCircular()).to.equal(true); - - // RecursiveSelf and RecursiveAncestor have deep circular references - expect(result.components().schema('RecursiveSelf').properties()['selfSomething'].properties()['test'].properties()['ancestorChildren'].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveSelf').properties()['selfSomething'].properties()['test'].properties()['ancestorChildren'].items().isCircular()).to.equal(true); - expect(result.components().schema('RecursiveAncestor').properties()['ancestorChildren'].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveAncestor').properties()['ancestorChildren'].items().properties()['selfSomething'].properties()['test'].isCircular()).to.equal(true); - - // RecursiveComplex has complex deep circular references - expect(result.components().schema('RecursiveComplex').contains().isCircular()).to.equal(true); - expect(result.components().schema('RecursiveComplex').items()[0].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveComplex').items()[1].isCircular()).to.equal(true); - expect(result.components().schema('RecursiveComplex').then().isCircular()).to.equal(true); - expect(result.components().schema('RecursiveComplex').if().properties()['ancestorChildren'].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveComplex').if().properties()['ancestorChildren'].items().properties()['selfSomething'].properties()['test'].isCircular()).to.equal(true); - expect(result.components().schema('RecursiveComplex').patternProperties()['^bar'].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveComplex').patternProperties()['^foo'].properties()['selfChildren'].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveComplex').patternProperties()['^foo'].properties()['selfChildren'].items().isCircular()).to.equal(true); - expect(result.components().schema('RecursiveComplex').patternProperties()['^foo'].properties()['selfObjectChildren'].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveComplex').patternProperties()['^foo'].properties()['selfObjectChildren'].properties()['test'].isCircular()).to.equal(true); - expect(result.components().schema('RecursiveComplex').patternProperties()['^foo'].properties()['selfSomething'].properties()['test'].properties()['ancestorChildren'].isCircular()).to.equal(false); - expect(result.components().schema('RecursiveComplex').patternProperties()['^foo'].properties()['selfSomething'].properties()['test'].properties()['ancestorChildren'].items().isCircular()).to.equal(true); - }); - - /* - * Duplicate tags tests - */ - it('should throw error that the provided root object has duplicate tags', async function () { - const parsedJSON = JSON.parse(invalidRootWithDuplicateTagsJSON); - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Tags validation failed', - parsedJSON, - validationErrors: [{ - title: 'tags contains duplicate tag names: user', - location: { - jsonPointer: '/tags', - startLine: 3, - startColumn: 1, - startOffset: offset(17, 3), - endLine: 8, - endColumn: 1, - endOffset: offset(86, 8), - } - }] - }; - - await checkErrorWrapper(async () => { - await parser.parse(invalidRootWithDuplicateTags); - }, expectedErrorObject); - }); - - it('should throw error that the provided operation object has duplicate tags', async function () { - const parsedJSON = JSON.parse(invalidOperationWithDuplicateTagsJSON); - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Tags validation failed', - parsedJSON, - validationErrors: [{ - title: '/user/signedup/subscribe/tags contains duplicate tag names: user', - location: { - jsonPointer: '/channels/~1user~1signedup/subscribe/tags', - startLine: 20, - startColumn: 7, - startOffset: offset(398, 20), - endLine: 24, - endColumn: 1, - endOffset: offset(484, 24), - } - }] - }; - - await checkErrorWrapper(async () => { - await parser.parse(invalidOperationWithDuplicateTags); - }, expectedErrorObject); - }); - - it('should throw error that the provided operation trait object has duplicate tags', async function () { - const parsedJSON = JSON.parse(invalidOperationTraitsWithDuplicateTagsJSON); - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Tags validation failed', - parsedJSON, - validationErrors: [{ - title: 'operationTraits/userSignedUpTrait/tags contains duplicate tag names: user', - location: { - jsonPointer: '/components/operationTraits/userSignedUpTrait/tags', - startLine: 23, - startColumn: 7, - startOffset: offset(418, 23), - endLine: 27, - endColumn: 1, - endOffset: offset(504, 27), - } - }] - }; - - await checkErrorWrapper(async () => { - await parser.parse(invalidOperationTraitsWithDuplicateTags); - }, expectedErrorObject); - }); - - it('should throw error that the provided message object has duplicate tags', async function () { - const parsedJSON = JSON.parse(invalidMessageWithDuplicateTagsJSON); - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Tags validation failed', - parsedJSON, - validationErrors: [{ - title: '/user/signedup/subscribe/message/tags contains duplicate tag names: user', - location: { - jsonPointer: '/channels/~1user~1signedup/subscribe/message/tags', - startLine: 12, - startColumn: 9, - startOffset: offset(188, 12), - endLine: 16, - endColumn: 1, - endOffset: offset(280, 16), - } - }] - }; - - await checkErrorWrapper(async () => { - await parser.parse(invalidMessageWithDuplicateTags); - }, expectedErrorObject); - }); - - it('should throw error that the provided message objects in oneOf has duplicate tags', async function () { - const parsedJSON = JSON.parse(invalidMessageOneOfWithDuplicateTagsJSON); - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Tags validation failed', - parsedJSON, - validationErrors: [{ - title: '/user/signedup/publish/message/oneOf/0/tags contains duplicate tag names: user', - location: { - jsonPointer: '/channels/~1user~1signedup/publish/message/oneOf/0/tags', - } - }, - { - title: '/user/signedup/publish/message/oneOf/1/tags contains duplicate tag names: user', - location: { - jsonPointer: '/channels/~1user~1signedup/publish/message/oneOf/1/tags', - } - }, - { - title: '/user/signedup/publish/message/oneOf/2/tags contains duplicate tag names: user3', - location: { - jsonPointer: '/channels/~1user~1signedup/publish/message/oneOf/2/tags', - startLine: 18, - startColumn: 13, - startOffset: offset(412, 18), - endLine: 23, - endColumn: 1, - endOffset: offset(530, 23), - } - }, - { - title: 'messages/testMessage1/tags contains duplicate tag names: user', - location: { - jsonPointer: '/components/messages/testMessage1/tags', - startLine: 26, - startColumn: 7, - startOffset: offset(578, 26), - endLine: 31, - endColumn: 5, - endOffset: offset(701, 31), - } - }, - { - title: 'messages/testMessage2/tags contains duplicate tag names: user', - location: { - jsonPointer: '/components/messages/testMessage2/tags', - startLine: 32, - startColumn: 7, - startOffset: offset(721, 32), - endLine: 37, - endColumn: 7, - endOffset: offset(846, 37), - } - }] - }; - - await checkErrorWrapper(async () => { - await parser.parse(invalidMessageOneOfWithDuplicateTags); - }, expectedErrorObject); - }); - - it('should throw error that the provided message trait object has duplicate tags', async function () { - const parsedJSON = JSON.parse(invalidMessageTraitWithDuplicateTagsJSON); - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'Tags validation failed', - parsedJSON, - validationErrors: [{ - title: 'messageTraits/signedUpMessage/tags contains duplicate tag names: user', - location: { - jsonPointer: '/components/messageTraits/signedUpMessage/tags', - startLine: 17, - startColumn: 7, - startOffset: offset(278, 17), - endLine: 21, - endColumn: 7, - endOffset: offset(370, 21), - } - }] - }; - - await checkErrorWrapper(async () => { - await parser.parse(invalidMessageTraitWithDuplicateTags); - }, expectedErrorObject); - }); -}); - -it('should not apply traits', async function() { - const outputJsonNoApplyTraits = '{"asyncapi":"2.0.0","info":{"title":"My API","version":"1.0.0"},"channels":{"mychannel":{"publish":{"traits":[{"externalDocs":{"url":"https://company.com/docs"}}],"externalDocs":{"x-extension":true,"url":"https://irrelevant.com"},"message":{"traits":[{"x-some-extension":"some extension"}],"payload":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""},"test":{"type":"object","properties":{"testing":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"},"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"name":{"type":"string"},"test":{"type":"object","properties":{"testing":{"type":"string"}}}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":"testMessage"}}},"oneOfMessageChannel":{"publish":{"message":{"oneOf":[{"traits":[{"x-some-extension":"some extension"}],"payload":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""},"test":{"type":"object","properties":{"testing":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"},"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"name":{"type":"string"},"test":{"type":"object","properties":{"testing":{"type":"string"}}}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":"testMessage"}]}}}},"components":{"messages":{"testMessage":{"traits":[{"x-some-extension":"some extension"}],"payload":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""},"test":{"type":"object","properties":{"testing":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"},"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"name":{"type":"string"},"test":{"type":"object","properties":{"testing":{"type":"string"}}}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":"testMessage"}},"schemas":{"testSchema":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""},"test":{"type":"object","properties":{"testing":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"}},"messageTraits":{"extension":{"x-some-extension":"some extension"}},"operationTraits":{"docs":{"externalDocs":{"url":"https://company.com/docs"}}}},"x-parser-spec-parsed":true}'; - const result = await parser.parse(inputYAML, { path: __filename, applyTraits: false }); - - await expect(JSON.stringify(result.json())).to.equal(outputJsonNoApplyTraits); -}); - -it('should apply traits', async function() { - const outputJsonApplyTraits = '{"asyncapi":"2.0.0","info":{"title":"My API","version":"1.0.0"},"channels":{"mychannel":{"publish":{"externalDocs":{"x-extension":true,"url":"https://company.com/docs"},"message":{"payload":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""},"test":{"type":"object","properties":{"testing":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"},"x-some-extension":"some extension","x-parser-original-traits":[{"x-some-extension":"some extension"}],"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"name":{"type":"string"},"test":{"type":"object","properties":{"testing":{"type":"string"}}}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":"testMessage"},"x-parser-original-traits":[{"externalDocs":{"url":"https://company.com/docs"}}]}},"oneOfMessageChannel":{"publish":{"message":{"oneOf":[{"payload":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""},"test":{"type":"object","properties":{"testing":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"},"x-some-extension":"some extension","x-parser-original-traits":[{"x-some-extension":"some extension"}],"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"name":{"type":"string"},"test":{"type":"object","properties":{"testing":{"type":"string"}}}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":"testMessage"}]}}}},"components":{"messages":{"testMessage":{"payload":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""},"test":{"type":"object","properties":{"testing":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"},"x-some-extension":"some extension","x-parser-original-traits":[{"x-some-extension":"some extension"}],"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"name":{"type":"string"},"test":{"type":"object","properties":{"testing":{"type":"string"}}}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":"testMessage"}},"schemas":{"testSchema":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""},"test":{"type":"object","properties":{"testing":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"}},"messageTraits":{"extension":{"x-some-extension":"some extension"}},"operationTraits":{"docs":{"externalDocs":{"url":"https://company.com/docs"}}}},"x-parser-spec-parsed":true}'; - const result = await parser.parse(inputYAML, { path: __filename, applyTraits: true }); - await expect(JSON.stringify(result.json())).to.equal(outputJsonApplyTraits); -}); - -it('should apply `x-parser-spec-parsed` extension', async function() { - const parsedSpec = await parser.parse(inputYAML, { path: __filename }); - await expect(parsedSpec.json()[String(xParserSpecParsed)]).to.equal(true); -}); - -it('should parse and include examples', async function() { - let result = await parser.parse(fs.readFileSync(path.resolve(__dirname, './good/asyncapi-messages-example.yml'), 'utf8'), { path: __filename }); - expect(result.channel('myChannel').subscribe().messages()[0].examples()[0].name).to.equal('Example1'); - expect(result.channel('myChannel').subscribe().messages()[0].examples()[0].summary).to.equal('Example1 summary'); - expect(result.channel('myChannel').subscribe().messages()[0].examples()[0].payload.name).to.equal('My name'); - expect(result.channel('myChannel').subscribe().messages()[0].examples()[0].headers['some-common-header']).to.equal('My header'); - - result = await parser.parse(fs.readFileSync(path.resolve(__dirname, './good/asyncapi-messages-example-payload.yml'), 'utf8'), { path: __filename }); - expect(result.channel('myChannel').subscribe().messages()[0].examples()[0].name).to.equal('Example1'); - expect(result.channel('myChannel').subscribe().messages()[0].examples()[0].summary).to.equal('Example1 summary'); - expect(result.channel('myChannel').subscribe().messages()[0].examples()[0].payload.name).to.equal('My name'); - - result = await parser.parse(fs.readFileSync(path.resolve(__dirname, './good/asyncapi-messages-example-headers.yml'), 'utf8'), { path: __filename }); - expect(result.channel('myChannel').subscribe().messages()[0].examples()[0].name).to.equal('Example1'); - expect(result.channel('myChannel').subscribe().messages()[0].examples()[0].summary).to.equal('Example1 summary'); - expect(result.channel('myChannel').subscribe().messages()[0].examples()[0].headers['some-common-header']).to.equal('My header'); - - result = await parser.parse(fs.readFileSync(path.resolve(__dirname, './good/asyncapi-messages-example-optional.yml'), 'utf8'), { path: __filename }); - expect(result.channel('myChannel').subscribe().messages()[0].examples()[0].name).to.equal(undefined); - expect(result.channel('myChannel').subscribe().messages()[0].examples()[0].summary).to.equal(undefined); - expect(result.channel('myChannel').subscribe().messages()[0].examples()[0].payload.name).to.equal('My name'); - expect(result.channel('myChannel').subscribe().messages()[0].examples()[0].headers['some-common-header']).to.equal('My header'); -}); - -it('should fail on invalid examples', async function() { - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/validation-errors', - title: 'There were errors validating the AsyncAPI document.', - }; - - await checkErrorWrapper(async () => { - await parser.parse(fs.readFileSync(path.resolve(__dirname, './wrong/invalid-asyncapi-messages-example.yml'), 'utf8'), { path: __filename }); - }, expectedErrorObject); -}); - -describe('memory usage', function () { - it('should use this same instance of validation function in each call', async function() { - this.timeout(12500); - const asyncapi = fs.readFileSync(path.resolve(__dirname, './good/zbos_mqtt-all-asyncapi.json'), 'utf8'); - - for (let i = 0, l = 25; i < l; i++) { - await parser.parse(asyncapi); - const used = process.memoryUsage().heapUsed / 1024 / 1024; - expect(used < 100).to.equal(true); // less than 100 MB - } - }); -}); - -describe('registerSchemaParser()', function() { - it('no errors can be thrown', function() { - const parserModule = { - parse: () => {}, - getMimeTypes: () => ['schemaFormat1', 'schemaFormat2'] - }; - - expect(() => parser.registerSchemaParser(parserModule)).to.not.throw(); - }); - - it('should throw error that required functions are missing', async function() { - const parserModule = { - parse: () => {} - }; - - const expectedErrorObject = { - type: 'https://github.com/asyncapi/parser-js/impossible-to-register-parser', - title: 'parserModule must have parse() and getMimeTypes() functions.' - }; - - await checkErrorWrapper(async () => { - parser.registerSchemaParser(parserModule); - }, expectedErrorObject); - }); - - it('should show that for 2.0 default schema format is 2.0 and for 2.1 it is 2.1 and so on', async function() { - const result20 = await parser.parse(inputYAML, { path: __filename }); - const result21 = await parser.parse(fs.readFileSync(path.resolve(__dirname, './good/asyncapi-messages-example-payload.yml'), 'utf8'), { path: __filename }); - const result22 = await parser.parse(fs.readFileSync(path.resolve(__dirname, './good/asyncapi-messages-example.yml'), 'utf8'), { path: __filename }); - - expect(result20.channel('mychannel').publish().messages()[0].schemaFormat()).to.equal('application/vnd.aai.asyncapi;version=2.0.0'); - expect(result21.channel('myChannel').subscribe().messages()[0].schemaFormat()).to.equal('application/vnd.aai.asyncapi;version=2.1.0'); - expect(result22.channel('myChannel').subscribe().messages()[0].schemaFormat()).to.equal('application/vnd.aai.asyncapi;version=2.2.0'); - }); -}); diff --git a/test/refs/refed.yaml b/test/refs/refed.yaml deleted file mode 100644 index 1b912b83b..000000000 --- a/test/refs/refed.yaml +++ /dev/null @@ -1,4 +0,0 @@ -type: object -properties: - testing: - $ref: 'refed2.yaml' diff --git a/test/refs/refed2.yaml b/test/refs/refed2.yaml deleted file mode 100644 index 5c21d88b9..000000000 --- a/test/refs/refed2.yaml +++ /dev/null @@ -1 +0,0 @@ -type: string diff --git a/test/sample_browser/asyncapi.yaml b/test/sample_browser/asyncapi.yaml deleted file mode 100644 index 95eaabca1..000000000 --- a/test/sample_browser/asyncapi.yaml +++ /dev/null @@ -1,8 +0,0 @@ -asyncapi: 2.0.0 -info: - title: My API - version: 1.0.0 -channels: - "/test/tester": - subscribe: - message: {} \ No newline at end of file diff --git a/test/sample_browser/index.html b/test/sample_browser/index.html deleted file mode 100644 index e24c90c1a..000000000 --- a/test/sample_browser/index.html +++ /dev/null @@ -1,27 +0,0 @@ - -
-
- - - - - \ No newline at end of file diff --git a/test/testsUtils.js b/test/testsUtils.js deleted file mode 100644 index 9bad14f62..000000000 --- a/test/testsUtils.js +++ /dev/null @@ -1,48 +0,0 @@ -const chai = require('chai'); -const chaiAsPromised = require('chai-as-promised'); -const ParserError = require('../lib/errors/parser-error'); - -chai.use(chaiAsPromised); -const expect = chai.expect; - -const testsUtils = module.exports; - -/** - * Tests helper for testing start and end offset position of error in file to make sure tests work on Windows too - * - * @function offset - * @private - * @param {Number} oset end or start offset number - * @returns {Number} calculated offset number - */ -testsUtils.offset = (oset) => oset; - -/* eslint-disable sonarjs/cognitive-complexity */ -/** - * Disabled the rule for this function as there is no way to make it shorter in a meaningfull way - * This function should always be used in tests where errors are evaluated to make sure they always work even if proper error is not thrown - * @private - * @param {Function} fn Function that you want to test - * @param {Object} validationObject Error object to evaluate against the error thrown by fn() -*/ -testsUtils.checkErrorWrapper = async (fn, validationObject) => { - const { type, message, title, refs, detail, location, validationErrors, parsedJSON } = validationObject; - - try { - await fn(); - throw Error('This error should not be reachable. If you reached it, it means the function did not throw a proper error and executed successfully.'); - } catch (e) { - const isProperError = e instanceof ParserError; - if (!isProperError) console.log(e); - - if (isProperError) expect(e instanceof ParserError).to.equal(true); - if (type) expect(e).to.have.own.property('type', type); - if (message) expect(e).to.have.own.property('message', message); - if (title) expect(e).to.have.own.property('title', title); - if (detail) expect(e).to.have.own.property('detail', detail); - if (refs) expect(e.refs).to.deep.equal(refs); - if (location) expect(e.location).to.deep.equal(location); - if (validationErrors) expect(e.validationErrors).to.deep.equal(validationErrors); - if (parsedJSON) expect(e.parsedJSON).to.deep.equal(parsedJSON); - } -}; diff --git a/test/wrong/good-ref-to-broken-file.yaml b/test/wrong/good-ref-to-broken-file.yaml deleted file mode 100644 index 1fa768daa..000000000 --- a/test/wrong/good-ref-to-broken-file.yaml +++ /dev/null @@ -1,9 +0,0 @@ -asyncapi: 2.0.0 -info: - title: My API - version: '1.0.0' -channels: - mychannel: - publish: - message: - $ref: 'wrong/good-refed-file.yml' \ No newline at end of file diff --git a/test/wrong/good-refed-file.yml b/test/wrong/good-refed-file.yml deleted file mode 100644 index d156ee3a9..000000000 --- a/test/wrong/good-refed-file.yml +++ /dev/null @@ -1,2 +0,0 @@ -payload: - $ref: refed-file-broken-schema.yml \ No newline at end of file diff --git a/test/wrong/inexisting-http-ref.yaml b/test/wrong/inexisting-http-ref.yaml deleted file mode 100644 index 818a61ebd..000000000 --- a/test/wrong/inexisting-http-ref.yaml +++ /dev/null @@ -1,9 +0,0 @@ -asyncapi: 2.0.0 -info: - title: My API - version: '1.0.0' -channels: - mychannel: - publish: - message: - $ref: 'https://example.com/components/messages/testMessage' diff --git a/test/wrong/inexisting-local-ref.yaml b/test/wrong/inexisting-local-ref.yaml deleted file mode 100644 index 1125436b5..000000000 --- a/test/wrong/inexisting-local-ref.yaml +++ /dev/null @@ -1,9 +0,0 @@ -asyncapi: 2.0.0 -info: - title: My API - version: '1.0.0' -channels: - mychannel2: - publish: - message: - $ref: '#/components/messages/testMessage' diff --git a/test/wrong/inexisting-root-ref.yaml b/test/wrong/inexisting-root-ref.yaml deleted file mode 100644 index 7110403d0..000000000 --- a/test/wrong/inexisting-root-ref.yaml +++ /dev/null @@ -1,9 +0,0 @@ -asyncapi: 2.0.0 -info: - title: My API - version: '1.0.0' -channels: - mychannel: - subscribe: - message: - $ref: '/components/messages/testMessage' diff --git a/test/wrong/invalid-asyncapi-messages-example.yml b/test/wrong/invalid-asyncapi-messages-example.yml deleted file mode 100644 index 7f5c10d00..000000000 --- a/test/wrong/invalid-asyncapi-messages-example.yml +++ /dev/null @@ -1,24 +0,0 @@ -asyncapi: 2.2.0 -info: - title: My API - version: '1.0.0' - -channels: - myChannel: - subscribe: - message: - x-some-extension: 'some extension' - headers: - type: object - properties: - some-common-header: - type: string - payload: - type: object - properties: - name: - type: string - examples: - - name: Example1 - summary: Example1 summary - diff --git a/test/wrong/invalid-asyncapi-root-with-duplicate-tags.yaml b/test/wrong/invalid-asyncapi-root-with-duplicate-tags.yaml deleted file mode 100644 index 828e5846d..000000000 --- a/test/wrong/invalid-asyncapi-root-with-duplicate-tags.yaml +++ /dev/null @@ -1,21 +0,0 @@ -asyncapi: 2.0.0 - -tags: - - name: user - description: user signed up - - name: user - -info: - title: Signup service example (internal) - version: 0.1.0 - -channels: - /user/signedup: - subscribe: - message: - payload: - type: object - properties: - email: - type: string - format: email diff --git a/test/wrong/invalid-asyncapi-with-ref-with-line-break.yaml b/test/wrong/invalid-asyncapi-with-ref-with-line-break.yaml deleted file mode 100644 index 8e2c27654..000000000 --- a/test/wrong/invalid-asyncapi-with-ref-with-line-break.yaml +++ /dev/null @@ -1,210 +0,0 @@ -asyncapi: 2.0.0 -info: - title: Streetlights APIs - version: 1.0.0 - description: | - The Smartylighting Streetlights API allows you to remotely manage the city lights. - - ### Check out its awesome features: - - * Turn a specific streetlight on/off 🌃 - * Dim a specific streetlight 😎 - * Receive real-time information about environmental lighting conditions 📈 - license: - name: Apache 2.0 - url: https://www.apache.org/licenses/LICENSE-2.0 - -servers: - production: - url: api.streetlights.smartylighting.com:{port} - protocol: mqtt - description: Test broker - variables: - port: - description: Secure connection (TLS) is available through port 8883. - default: '1883' - enum: - - '1883' - - '8883' - security: - - apiKey: [] - - supportedOauthFlows: - - streetlights:on - - streetlights:off - - streetlights:dim - - openIdConnectWellKnown: [] - -defaultContentType: application/json - -channels: - smartylighting/streetlights/1/0/event/{streetlightId}/lighting/measured: - description: The topic on which measured values may be produced and consumed. - parameters: - streetlightId: - $ref: '#/components/parameters/streetlightId' - subscribe: - summary: Receive information about environmental lighting conditions of a particular streetlight. - operationId: receiveLightMeasurement - traits: - - $ref: '#/components/operationTraits/kafka' - message: - $ref: '#/components/messages/lightMeasured' - - smartylighting/streetlights/1/0/action/{streetlightId}/turn/on: - parameters: - streetlightId: - $ref: '#/components/parameters/streetlightId' - publish: - operationId: turnOn - traits: - - $ref: '#/components/operationTraits/kafka' - message: - $ref: '#/components/messages/turnOnOff' - - smartylighting/streetlights/1/0/action/{streetlightId}/turn/off: - parameters: - streetlightId: - $ref: '# - /components/parameters/streetlightId' - publish: - operationId: turnOff - traits: - - $ref: '#/components/operationTraits/kafka' - message: - $ref: '#/components/messages/turnOnOff' - - smartylighting/streetlights/1/0/action/{streetlightId}/dim: - parameters: - streetlightId: - $ref: '#/components/parameters/streetlightId' - publish: - operationId: dimLight - traits: - - $ref: '#/components/operationTraits/kafka' - message: - $ref: '#/components/messages/dimLight' - -components: - messages: - lightMeasured: - name: lightMeasured - title: Light measured - summary: Inform about environmental lighting conditions for a particular streetlight. - contentType: application/json - traits: - - $ref: '#/components/messageTraits/commonHeaders' - payload: - $ref: "#/components/schemas/lightMeasuredPayload" - turnOnOff: - name: turnOnOff - title: Turn on/off - summary: Command a particular streetlight to turn the lights on or off. - traits: - - $ref: '#/components/messageTraits/commonHeaders' - payload: - $ref: "#/components/schemas/turnOnOffPayload" - dimLight: - name: dimLight - title: Dim light - summary: Command a particular streetlight to dim the lights. - traits: - - $ref: '#/components/messageTraits/commonHeaders' - payload: - $ref: "#/components/schemas/dimLightPayload" - - schemas: - lightMeasuredPayload: - type: object - properties: - lumens: - type: integer - minimum: 0 - description: Light intensity measured in lumens. - sentAt: - $ref: "#/components/schemas/sentAt" - turnOnOffPayload: - type: object - properties: - command: - type: string - enum: - - on - - off - description: Whether to turn on or off the light. - sentAt: - $ref: "#/components/schemas/sentAt" - dimLightPayload: - type: object - properties: - percentage: - type: integer - description: Percentage to which the light should be dimmed to. - minimum: 0 - maximum: 100 - sentAt: - $ref: "#/components/schemas/sentAt" - sentAt: - type: string - format: date-time - description: Date and time when the message was sent. - - securitySchemes: - apiKey: - type: apiKey - in: user - description: Provide your API key as the user and leave the password empty. - supportedOauthFlows: - type: oauth2 - description: Flows to support OAuth 2.0 - flows: - implicit: - authorizationUrl: 'https://authserver.example/auth' - scopes: - 'streetlights:on': Ability to switch lights on - 'streetlights:off': Ability to switch lights off - 'streetlights:dim': Ability to dim the lights - password: - tokenUrl: 'https://authserver.example/token' - scopes: - 'streetlights:on': Ability to switch lights on - 'streetlights:off': Ability to switch lights off - 'streetlights:dim': Ability to dim the lights - clientCredentials: - tokenUrl: 'https://authserver.example/token' - scopes: - 'streetlights:on': Ability to switch lights on - 'streetlights:off': Ability to switch lights off - 'streetlights:dim': Ability to dim the lights - authorizationCode: - authorizationUrl: 'https://authserver.example/auth' - tokenUrl: 'https://authserver.example/token' - refreshUrl: 'https://authserver.example/refresh' - scopes: - 'streetlights:on': Ability to switch lights on - 'streetlights:off': Ability to switch lights off - 'streetlights:dim': Ability to dim the lights - openIdConnectWellKnown: - type: openIdConnect - openIdConnectUrl: 'https://authserver.example/.well-known' - - parameters: - streetlightId: - description: The ID of the streetlight. - schema: - type: string - - messageTraits: - commonHeaders: - headers: - type: object - properties: - my-app-header: - type: integer - minimum: 0 - maximum: 100 - - operationTraits: - kafka: - bindings: - kafka: - clientId: my-app-id diff --git a/test/wrong/invalid-asyncapi.json b/test/wrong/invalid-asyncapi.json deleted file mode 100644 index d561b6d26..000000000 --- a/test/wrong/invalid-asyncapi.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "asyncapi": "2.0.0", - "info": { - "test": true, - "version": "1.0.0" - }, - "channels": { - "mychannel": { - "publish": { - "message": { - "payload": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - } - } - } - } - } - }, - "test": true, - "components": { - "messages": { - "testMessage": { - "payload": { - "$ref": "#/components/schemas/testSchema" - } - } - }, - "schemas": { - "testSchema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "test": { - "$ref": "refs/refed.yaml" - } - } - } - } - } -} diff --git a/test/wrong/invalid-asyncapi.yaml b/test/wrong/invalid-asyncapi.yaml deleted file mode 100644 index fc7525865..000000000 --- a/test/wrong/invalid-asyncapi.yaml +++ /dev/null @@ -1,37 +0,0 @@ -asyncapi: 2.0.0 -info: - test: true - version: '1.0.0' -channels: - mychannel: - publish: - traits: - - $ref: '#/components/operationTraits/docs' - externalDocs: - x-extension: true - url: 'https://irrelevant.com' - message: - $ref: '#/components/messages/testMessage' -test: true -components: - messages: - testMessage: - traits: - - $ref: '#/components/messageTraits/extension' - payload: - $ref: '#/components/schemas/testSchema' - schemas: - testSchema: - type: object - properties: - name: - type: string - test: - $ref: 'refs/refed.yaml' - messageTraits: - extension: - x-some-extension: 'some extension' - operationTraits: - docs: - externalDocs: - url: https://company.com/docs diff --git a/test/wrong/invalid-message-traits-with-duplicate-tags.yaml b/test/wrong/invalid-message-traits-with-duplicate-tags.yaml deleted file mode 100644 index a5b043b6a..000000000 --- a/test/wrong/invalid-message-traits-with-duplicate-tags.yaml +++ /dev/null @@ -1,21 +0,0 @@ -asyncapi: 2.0.0 - -info: - title: Signup service example (internal) - version: 0.1.0 - -channels: - /user/signedup: - subscribe: - message: - traits: - - $ref: "#/components/messageTraits/signedUpMessage" - -components: - messageTraits: - signedUpMessage: - tags: - - name: user - description: user signed up - - name: user - contentType: application/json diff --git a/test/wrong/invalid-message-with-duplicate-tags.yaml b/test/wrong/invalid-message-with-duplicate-tags.yaml deleted file mode 100644 index b606c5814..000000000 --- a/test/wrong/invalid-message-with-duplicate-tags.yaml +++ /dev/null @@ -1,15 +0,0 @@ -asyncapi: 2.0.0 - -info: - title: Signup service example (internal) - version: 0.1.0 - -channels: - /user/signedup: - subscribe: - message: - contentType: application/json - tags: - - name: user - description: user signed up - - name: user diff --git a/test/wrong/invalid-operation-traits-with-duplicate-tags.yaml b/test/wrong/invalid-operation-traits-with-duplicate-tags.yaml deleted file mode 100644 index a54b6d8ba..000000000 --- a/test/wrong/invalid-operation-traits-with-duplicate-tags.yaml +++ /dev/null @@ -1,26 +0,0 @@ -asyncapi: 2.0.0 - -info: - title: Signup service example (internal) - version: 0.1.0 - -channels: - /user/signedup: - subscribe: - message: - payload: - type: object - properties: - email: - type: string - format: email - traits: - - $ref: "#/components/operationTraits/userSignedUpTrait" - -components: - operationTraits: - userSignedUpTrait: - tags: - - name: user - description: user signed up - - name: user diff --git a/test/wrong/invalid-operation-with-duplicate-tags.yaml b/test/wrong/invalid-operation-with-duplicate-tags.yaml deleted file mode 100644 index a93e83816..000000000 --- a/test/wrong/invalid-operation-with-duplicate-tags.yaml +++ /dev/null @@ -1,23 +0,0 @@ -asyncapi: 2.0.0 - -info: - title: Signup service example (internal) - version: 0.1.0 - -channels: - /user/signedup: - subscribe: - operationId: userSignedUp - summary: user signed up - description: user signed up to load some data - message: - payload: - type: object - properties: - email: - type: string - format: email - tags: - - name: user - description: user signed up - - name: user diff --git a/test/wrong/invalid-operation-with-oneof-and-duplicate-tags.yaml b/test/wrong/invalid-operation-with-oneof-and-duplicate-tags.yaml deleted file mode 100644 index 53089a035..000000000 --- a/test/wrong/invalid-operation-with-oneof-and-duplicate-tags.yaml +++ /dev/null @@ -1,37 +0,0 @@ -asyncapi: 2.0.0 - -info: - title: Signup service example (internal) - version: 0.1.0 - -channels: - /user/signedup: - publish: - operationId: userSignedUp - summary: user signed up - description: user signed up to load some data - message: - oneOf: - - $ref: "#/components/messages/testMessage1" - - $ref: "#/components/messages/testMessage2" - - payload: - tags: - - name: user3 - description: Description for user3 tag - - name: user3 - -components: - messages: - testMessage1: - tags: - - name: user - description: Description for first tag - - name: user - - name: user2 - testMessage2: - tags: - - name: user - description: Description for first tag - - name: user - - name: user2 - contentType: application/json diff --git a/test/wrong/invalid-payload-asyncapi-format.json b/test/wrong/invalid-payload-asyncapi-format.json deleted file mode 100644 index 52619b61c..000000000 --- a/test/wrong/invalid-payload-asyncapi-format.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "asyncapi": "2.0.0", - "info": { - "title": "My API", - "version": "1.0.0" - }, - "channels": { - "mychannel": { - "publish": { - "message": { - "payload": { - "type": "object", - "additionalProperties": [ - "invalid_array" - ] - } - } - } - } - } -} \ No newline at end of file diff --git a/test/wrong/malformed-asyncapi.yaml b/test/wrong/malformed-asyncapi.yaml deleted file mode 100644 index 439fa931e..000000000 --- a/test/wrong/malformed-asyncapi.yaml +++ /dev/null @@ -1,25 +0,0 @@ -asyncapi: 2.0.0 -info: - title: "Test" - version: '1.0.0' -channels: - destinationInformation: - subscribe: - summary: Card_DestinationInformation. - message: - summary: Load or update Card_DestinationInformation. - payload: - type: object - properties: - lumens: - type: integer - minimum: 0 - description: Light intensity measured in lumens. - sentAt: - $ref: "#/components/schemas/sentAt" -components: - schemas: - sentAt: - type: string - format: date-time - description: Date and time when the message was sent. diff --git a/test/wrong/refed-file-broken-schema.yml b/test/wrong/refed-file-broken-schema.yml deleted file mode 100644 index 1341bd105..000000000 --- a/test/wrong/refed-file-broken-schema.yml +++ /dev/null @@ -1,4 +0,0 @@ -type: string -properties: - name: - type: string \ No newline at end of file diff --git a/types.d.ts b/types.d.ts deleted file mode 100644 index 1bb7a936a..000000000 --- a/types.d.ts +++ /dev/null @@ -1,1192 +0,0 @@ -/** - * The different kind of stages when crawling a schema. - * @property NEW_SCHEMA - The crawler just started crawling a schema. - * @property END_SCHEMA - The crawler just finished crawling a schema. - */ -declare type SchemaIteratorCallbackType = { - NEW_SCHEMA: string; - END_SCHEMA: string; -}; - -/** - * The different types of schemas you can iterate - * @property parameters - Crawl all schemas in parameters - * @property payloads - Crawl all schemas in payloads - * @property headers - Crawl all schemas in headers - * @property components - Crawl all schemas in components - * @property objects - Crawl all schemas of type object - * @property arrays - Crawl all schemas of type array - * @property oneOfs - Crawl all schemas in oneOf's - * @property allOfs - Crawl all schemas in allOf's - * @property anyOfs - Crawl all schemas in anyOf's - * @property nots - Crawl all schemas in not field - * @property propertyNames - Crawl all schemas in propertyNames field - * @property patternProperties - Crawl all schemas in patternProperties field - * @property contains - Crawl all schemas in contains field - * @property ifs - Crawl all schemas in if field - * @property thenes - Crawl all schemas in then field - * @property elses - Crawl all schemas in else field - * @property dependencies - Crawl all schemas in dependencies field - * @property definitions - Crawl all schemas in definitions field - */ -declare type SchemaTypesToIterate = { - parameters: string; - payloads: string; - headers: string; - components: string; - objects: string; - arrays: string; - oneOfs: string; - allOfs: string; - anyOfs: string; - nots: string; - propertyNames: string; - patternProperties: string; - contains: string; - ifs: string; - thenes: string; - elses: string; - dependencies: string; - definitions: string; -}; - - - -/** - * Implements functions to deal with the common Bindings object. - */ -declare interface MixinBindings { -} - - - -/** - * Implements functions to deal with the description field. - */ -declare interface MixinDescription { -} - - - -/** - * Implements functions to deal with the ExternalDocs object. - */ -declare interface MixinExternalDocs { -} - - - -/** - * Implements functions to deal with the SpecificationExtensions object. - */ -declare interface MixinSpecificationExtensions { -} - - - -/** - * Implements functions to deal with the Tags object. - */ -declare interface MixinTags { -} - -declare module "@asyncapi/parser" { - /** - * Instantiates an error - * @param definition.type - The type of the error. - * @param definition.title - The message of the error. - * @param [definition.detail] - A string containing more detailed information about the error. - * @param [definition.parsedJSON] - The resulting JSON after YAML transformation. Or the JSON object if the this was the initial format. - * @param [definition.validationErrors] - The errors resulting from the validation. For more information, see https://www.npmjs.com/package/better-ajv-errors. - * @param definition.validationErrors.title - A validation error message. - * @param definition.validationErrors.jsonPointer - The path to the field that contains the error. Uses JSON Pointer format. - * @param definition.validationErrors.startLine - The line where the error starts in the AsyncAPI document. - * @param definition.validationErrors.startColumn - The column where the error starts in the AsyncAPI document. - * @param definition.validationErrors.startOffset - The offset (starting from the beginning of the document) where the error starts in the AsyncAPI document. - * @param definition.validationErrors.endLine - The line where the error ends in the AsyncAPI document. - * @param definition.validationErrors.endColumn - The column where the error ends in the AsyncAPI document. - * @param definition.validationErrors.endOffset - The offset (starting from the beginning of the document) where the error ends in the AsyncAPI document. - * @param [definition.location] - Error location details after trying to parse an invalid JSON or YAML document. - * @param definition.location.startLine - The line of the YAML/JSON document where the error starts. - * @param definition.location.startColumn - The column of the YAML/JSON document where the error starts. - * @param definition.location.startOffset - The offset (starting from the beginning of the document) where the error starts in the YAML/JSON AsyncAPI document. - * @param [definition.refs] - Error details after trying to resolve $ref's. - * @param definition.refs.title - A validation error message. - * @param definition.refs.jsonPointer - The path to the field that contains the error. Uses JSON Pointer format. - * @param definition.refs.startLine - The line where the error starts in the AsyncAPI document. - * @param definition.refs.startColumn - The column where the error starts in the AsyncAPI document. - * @param definition.refs.startOffset - The offset (starting from the beginning of the document) where the error starts in the AsyncAPI document. - * @param definition.refs.endLine - The line where the error ends in the AsyncAPI document. - * @param definition.refs.endColumn - The column where the error ends in the AsyncAPI document. - * @param definition.refs.endOffset - The offset (starting from the beginning of the document) where the error ends in the AsyncAPI document. - */ - class ParserError extends Error { - constructor(definition: { - type: string; - title: string; - detail?: string; - parsedJSON?: any; - validationErrors?: { - title: string; - jsonPointer: string; - startLine: number; - startColumn: number; - startOffset: number; - endLine: number; - endColumn: number; - endOffset: number; - }[]; - location?: { - startLine: number; - startColumn: number; - startOffset: number; - }; - refs?: { - title: string; - jsonPointer: string; - startLine: number; - startColumn: number; - startOffset: number; - endLine: number; - endColumn: number; - endOffset: number; - }[]; - }); - /** - * Returns a JS object representation of the error. - */ - toJS(): void; - } - interface AsyncAPIDocument extends MixinTags, MixinExternalDocs, MixinSpecificationExtensions { - } - /** - * Implements functions to deal with the AsyncAPI document. - */ - class AsyncAPIDocument extends Base implements MixinTags, MixinExternalDocs, MixinSpecificationExtensions { - version(): string; - info(): Info; - id(): string; - hasServers(): boolean; - servers(): { - [key: string]: Server; - }; - serverNames(): string[]; - /** - * @param name - Name of the server. - */ - server(name: string): Server; - hasDefaultContentType(): boolean; - defaultContentType(): string | null; - hasChannels(): boolean; - channels(): { - [key: string]: Channel; - }; - channelNames(): string[]; - /** - * @param name - Name of the channel. - */ - channel(name: string): Channel; - hasComponents(): boolean; - components(): Components; - hasMessages(): boolean; - allMessages(): Map; - allSchemas(): Map; - hasCircular(): boolean; - /** - * Traverse schemas in the document and select which types of schemas to include. - * By default all schemas are iterated - */ - traverseSchemas(callback: TraverseSchemas, schemaTypesToIterate: SchemaTypesToIterate[]): void; - /** - * Converts a valid AsyncAPI document to a JavaScript Object Notation (JSON) string. - * A stringified AsyncAPI document using this function should be parsed via the AsyncAPIDocument.parse() function - the JSON.parse() function is not compatible. - * @param doc - A valid AsyncAPIDocument instance. - * @param [space] - Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. - */ - static stringify(doc: AsyncAPIDocument, space?: number | string): string; - /** - * Converts a valid stringified AsyncAPIDocument instance into an AsyncAPIDocument instance. - * @param doc - A valid stringified AsyncAPIDocument instance. - */ - static parse(doc: string): AsyncAPIDocument; - hasTags(): boolean; - tags(): Tag[]; - tagNames(): string[]; - /** - * @param name - Name of the tag. - */ - hasTag(name: string): boolean; - /** - * @param name - Name of the tag. - */ - tag(name: string): Tag | null; - hasExternalDocs(): boolean; - externalDocs(): ExternalDocs | null; - hasExtensions(): boolean; - extensions(): { - [key: string]: any; - }; - extensionKeys(): string[]; - extKeys(): string[]; - /** - * @param key - Extension key. - */ - hasExtension(key: string): boolean; - /** - * @param key - Extension key. - */ - extension(key: string): any; - /** - * @param key - Extension key. - */ - hasExt(key: string): boolean; - /** - * @param key - Extension key. - */ - ext(key: string): any; - hasTags(): boolean; - tags(): Tag[]; - tagNames(): string[]; - /** - * @param name - Name of the tag. - */ - hasTag(name: string): boolean; - /** - * @param name - Name of the tag. - */ - tag(name: string): Tag | null; - hasExternalDocs(): boolean; - externalDocs(): ExternalDocs | null; - hasExtensions(): boolean; - extensions(): { - [key: string]: any; - }; - extensionKeys(): string[]; - extKeys(): string[]; - /** - * @param key - Extension key. - */ - hasExtension(key: string): boolean; - /** - * @param key - Extension key. - */ - extension(key: string): any; - /** - * @param key - Extension key. - */ - hasExt(key: string): boolean; - /** - * @param key - Extension key. - */ - ext(key: string): any; - } - /** - * Callback used when crawling a schema. - * @param schema - which is being crawled - * @param propName - if the schema is from a property get the name of such - * @param callbackType - is the schema a new one or is the crawler finishing one. - */ - type TraverseSchemas = (schema: Schema, propName: string, callbackType: SchemaIteratorCallbackType) => boolean; - class Base { - /** - * @param [key] - A key to retrieve from the JSON object. - */ - json(key?: string): any; - } - interface ChannelParameter extends MixinDescription, MixinSpecificationExtensions { - } - /** - * Implements functions to deal with a ChannelParameter object. - */ - class ChannelParameter extends Base implements MixinDescription, MixinSpecificationExtensions { - location(): string; - schema(): Schema; - hasDescription(): boolean; - description(): string | null; - hasExtensions(): boolean; - extensions(): { - [key: string]: any; - }; - extensionKeys(): string[]; - extKeys(): string[]; - /** - * @param key - Extension key. - */ - hasExtension(key: string): boolean; - /** - * @param key - Extension key. - */ - extension(key: string): any; - /** - * @param key - Extension key. - */ - hasExt(key: string): boolean; - /** - * @param key - Extension key. - */ - ext(key: string): any; - } - interface Channel extends MixinDescription, MixinBindings, MixinSpecificationExtensions { - } - /** - * Implements functions to deal with a Channel object. - */ - class Channel extends Base implements MixinDescription, MixinBindings, MixinSpecificationExtensions { - parameters(): { - [key: string]: ChannelParameter; - }; - /** - * @param name - Name of the parameter. - */ - parameter(name: string): ChannelParameter; - hasParameters(): boolean; - hasServers(): boolean; - servers(): String[]; - /** - * @param index - Index of the server. - */ - server(index: number): string; - publish(): PublishOperation; - subscribe(): SubscribeOperation; - hasPublish(): boolean; - hasSubscribe(): boolean; - hasDescription(): boolean; - description(): string | null; - hasBindings(): boolean; - bindings(): any; - bindingProtocols(): string[]; - /** - * @param name - Name of the binding. - */ - hasBinding(name: string): boolean; - /** - * @param name - Name of the binding. - */ - binding(name: string): any | null; - hasExtensions(): boolean; - extensions(): { - [key: string]: any; - }; - extensionKeys(): string[]; - extKeys(): string[]; - /** - * @param key - Extension key. - */ - hasExtension(key: string): boolean; - /** - * @param key - Extension key. - */ - extension(key: string): any; - /** - * @param key - Extension key. - */ - hasExt(key: string): boolean; - /** - * @param key - Extension key. - */ - ext(key: string): any; - } - interface Components extends MixinSpecificationExtensions { - } - /** - * Implements functions to deal with a Components object. - */ - class Components extends Base implements MixinSpecificationExtensions { - channels(): { - [key: string]: Channel; - }; - hasChannels(): boolean; - /** - * @param name - Name of the channel. - */ - channel(name: string): Channel; - messages(): { - [key: string]: Message; - }; - hasMessages(): boolean; - /** - * @param name - Name of the message. - */ - message(name: string): Message; - schemas(): { - [key: string]: Schema; - }; - hasSchemas(): boolean; - /** - * @param name - Name of the schema. - */ - schema(name: string): Schema; - securitySchemes(): { - [key: string]: SecurityScheme; - }; - hasSecuritySchemes(): boolean; - /** - * @param name - Name of the security schema. - */ - securityScheme(name: string): SecurityScheme; - servers(): { - [key: string]: Server; - }; - hasServers(): boolean; - /** - * @param name - Name of the server. - */ - server(name: string): Server; - parameters(): { - [key: string]: ChannelParameter; - }; - hasParameters(): boolean; - /** - * @param name - Name of the channel parameter. - */ - parameter(name: string): ChannelParameter; - correlationIds(): { - [key: string]: CorrelationId; - }; - hasCorrelationIds(): boolean; - /** - * @param name - Name of the correlationId. - */ - correlationId(name: string): CorrelationId; - operationTraits(): { - [key: string]: OperationTrait; - }; - hasOperationTraits(): boolean; - /** - * @param name - Name of the operation trait. - */ - operationTrait(name: string): OperationTrait; - messageTraits(): { - [key: string]: MessageTrait; - }; - hasMessageTraits(): boolean; - /** - * @param name - Name of the message trait. - */ - messageTrait(name: string): MessageTrait; - hasExtensions(): boolean; - extensions(): { - [key: string]: any; - }; - extensionKeys(): string[]; - extKeys(): string[]; - /** - * @param key - Extension key. - */ - hasExtension(key: string): boolean; - /** - * @param key - Extension key. - */ - extension(key: string): any; - /** - * @param key - Extension key. - */ - hasExt(key: string): boolean; - /** - * @param key - Extension key. - */ - ext(key: string): any; - } - interface Contact extends MixinSpecificationExtensions { - } - /** - * Implements functions to deal with the Contact object. - */ - class Contact extends Base implements MixinSpecificationExtensions { - name(): string; - url(): string; - email(): string; - hasExtensions(): boolean; - extensions(): { - [key: string]: any; - }; - extensionKeys(): string[]; - extKeys(): string[]; - /** - * @param key - Extension key. - */ - hasExtension(key: string): boolean; - /** - * @param key - Extension key. - */ - extension(key: string): any; - /** - * @param key - Extension key. - */ - hasExt(key: string): boolean; - /** - * @param key - Extension key. - */ - ext(key: string): any; - } - interface CorrelationId extends MixinDescription, MixinSpecificationExtensions { - } - /** - * Implements functions to deal with a CorrelationId object. - */ - class CorrelationId extends Base implements MixinDescription, MixinSpecificationExtensions { - location(): string; - hasDescription(): boolean; - description(): string | null; - hasExtensions(): boolean; - extensions(): { - [key: string]: any; - }; - extensionKeys(): string[]; - extKeys(): string[]; - /** - * @param key - Extension key. - */ - hasExtension(key: string): boolean; - /** - * @param key - Extension key. - */ - extension(key: string): any; - /** - * @param key - Extension key. - */ - hasExt(key: string): boolean; - /** - * @param key - Extension key. - */ - ext(key: string): any; - } - interface ExternalDocs extends MixinDescription, MixinSpecificationExtensions { - } - /** - * Implements functions to deal with an ExternalDocs object. - */ - class ExternalDocs extends Base implements MixinDescription, MixinSpecificationExtensions { - url(): string; - hasDescription(): boolean; - description(): string | null; - hasExtensions(): boolean; - extensions(): { - [key: string]: any; - }; - extensionKeys(): string[]; - extKeys(): string[]; - /** - * @param key - Extension key. - */ - hasExtension(key: string): boolean; - /** - * @param key - Extension key. - */ - extension(key: string): any; - /** - * @param key - Extension key. - */ - hasExt(key: string): boolean; - /** - * @param key - Extension key. - */ - ext(key: string): any; - } - interface Info extends MixinDescription, MixinSpecificationExtensions { - } - /** - * Implements functions to deal with the Info object. - */ - class Info extends Base implements MixinDescription, MixinSpecificationExtensions { - title(): string; - version(): string; - termsOfService(): string | undefined; - license(): License; - contact(): Contact; - hasDescription(): boolean; - description(): string | null; - hasExtensions(): boolean; - extensions(): { - [key: string]: any; - }; - extensionKeys(): string[]; - extKeys(): string[]; - /** - * @param key - Extension key. - */ - hasExtension(key: string): boolean; - /** - * @param key - Extension key. - */ - extension(key: string): any; - /** - * @param key - Extension key. - */ - hasExt(key: string): boolean; - /** - * @param key - Extension key. - */ - ext(key: string): any; - } - interface License extends MixinSpecificationExtensions { - } - /** - * Implements functions to deal with the License object. - */ - class License extends Base implements MixinSpecificationExtensions { - name(): string; - url(): string; - hasExtensions(): boolean; - extensions(): { - [key: string]: any; - }; - extensionKeys(): string[]; - extKeys(): string[]; - /** - * @param key - Extension key. - */ - hasExtension(key: string): boolean; - /** - * @param key - Extension key. - */ - extension(key: string): any; - /** - * @param key - Extension key. - */ - hasExt(key: string): boolean; - /** - * @param key - Extension key. - */ - ext(key: string): any; - } - /** - * Implements functions to deal with a MessageTrait object. - */ - class MessageTrait extends MessageTraitable { - } - interface MessageTraitable extends MixinDescription, MixinTags, MixinExternalDocs, MixinBindings, MixinSpecificationExtensions { - } - /** - * Implements functions to deal with a the common properties that Message and MessageTrait objects have. - */ - class MessageTraitable extends Base implements MixinDescription, MixinTags, MixinExternalDocs, MixinBindings, MixinSpecificationExtensions { - headers(): Schema; - /** - * @param name - Name of the header. - */ - header(name: string): Schema; - correlationId(): CorrelationId; - schemaFormat(): string; - contentType(): string; - name(): string; - title(): string; - summary(): string; - examples(): any[]; - hasDescription(): boolean; - description(): string | null; - hasTags(): boolean; - tags(): Tag[]; - tagNames(): string[]; - /** - * @param name - Name of the tag. - */ - hasTag(name: string): boolean; - /** - * @param name - Name of the tag. - */ - tag(name: string): Tag | null; - hasExternalDocs(): boolean; - externalDocs(): ExternalDocs | null; - hasBindings(): boolean; - bindings(): any; - bindingProtocols(): string[]; - /** - * @param name - Name of the binding. - */ - hasBinding(name: string): boolean; - /** - * @param name - Name of the binding. - */ - binding(name: string): any | null; - hasExtensions(): boolean; - extensions(): { - [key: string]: any; - }; - extensionKeys(): string[]; - extKeys(): string[]; - /** - * @param key - Extension key. - */ - hasExtension(key: string): boolean; - /** - * @param key - Extension key. - */ - extension(key: string): any; - /** - * @param key - Extension key. - */ - hasExt(key: string): boolean; - /** - * @param key - Extension key. - */ - ext(key: string): any; - } - /** - * Implements functions to deal with a Message object. - */ - class Message extends MessageTraitable { - uid(): string; - payload(): Schema; - traits(): MessageTrait[]; - hasTraits(): boolean; - originalPayload(): any; - originalSchemaFormat(): string; - } - interface OAuthFlow extends MixinSpecificationExtensions { - } - /** - * Implements functions to deal with a OAuthFlow object. - */ - class OAuthFlow extends Base implements MixinSpecificationExtensions { - authorizationUrl(): string; - tokenUrl(): string; - refreshUrl(): string; - scopes(): { - [key: string]: string; - }; - hasExtensions(): boolean; - extensions(): { - [key: string]: any; - }; - extensionKeys(): string[]; - extKeys(): string[]; - /** - * @param key - Extension key. - */ - hasExtension(key: string): boolean; - /** - * @param key - Extension key. - */ - extension(key: string): any; - /** - * @param key - Extension key. - */ - hasExt(key: string): boolean; - /** - * @param key - Extension key. - */ - ext(key: string): any; - } - /** - * Implements functions to deal with a OperationTrait object. - */ - class OperationTrait extends OperationTraitable { - } - interface OperationTraitable extends MixinDescription, MixinTags, MixinExternalDocs, MixinBindings, MixinSpecificationExtensions { - } - /** - * Implements functions to deal with the common properties Operation and OperationTrait object have. - */ - class OperationTraitable extends Base implements MixinDescription, MixinTags, MixinExternalDocs, MixinBindings, MixinSpecificationExtensions { - id(): string; - summary(): string; - hasDescription(): boolean; - description(): string | null; - hasTags(): boolean; - tags(): Tag[]; - tagNames(): string[]; - /** - * @param name - Name of the tag. - */ - hasTag(name: string): boolean; - /** - * @param name - Name of the tag. - */ - tag(name: string): Tag | null; - hasExternalDocs(): boolean; - externalDocs(): ExternalDocs | null; - hasBindings(): boolean; - bindings(): any; - bindingProtocols(): string[]; - /** - * @param name - Name of the binding. - */ - hasBinding(name: string): boolean; - /** - * @param name - Name of the binding. - */ - binding(name: string): any | null; - hasExtensions(): boolean; - extensions(): { - [key: string]: any; - }; - extensionKeys(): string[]; - extKeys(): string[]; - /** - * @param key - Extension key. - */ - hasExtension(key: string): boolean; - /** - * @param key - Extension key. - */ - extension(key: string): any; - /** - * @param key - Extension key. - */ - hasExt(key: string): boolean; - /** - * @param key - Extension key. - */ - ext(key: string): any; - } - /** - * Implements functions to deal with an Operation object. - */ - class Operation extends OperationTraitable { - hasMultipleMessages(): boolean; - traits(): OperationTrait[]; - hasTraits(): boolean; - messages(): Message[]; - message(): Message; - } - /** - * Implements functions to deal with a PublishOperation object. - */ - class PublishOperation extends Operation { - isPublish(): boolean; - isSubscribe(): boolean; - kind(): string; - } - interface Schema extends MixinDescription, MixinExternalDocs, MixinSpecificationExtensions { - } - /** - * Instantiates a schema object - * @param json - Schema definition - * @param [options.parent] - Parent schema definition - */ - class Schema extends Base implements MixinDescription, MixinExternalDocs, MixinSpecificationExtensions { - constructor(json: any, options?: { - parent?: Schema; - }); - uid(): string; - $id(): string; - multipleOf(): number; - maximum(): number; - exclusiveMaximum(): number; - minimum(): number; - exclusiveMinimum(): number; - maxLength(): number; - minLength(): number; - pattern(): string; - maxItems(): number; - minItems(): number; - uniqueItems(): boolean; - maxProperties(): number; - minProperties(): number; - required(): string[]; - enum(): any[]; - type(): string | string[]; - allOf(): Schema[]; - oneOf(): Schema[]; - anyOf(): Schema[]; - not(): Schema; - items(): Schema | Schema[]; - properties(): { - [key: string]: Schema; - }; - /** - * @param name - Name of the property. - */ - property(name: string): Schema; - additionalProperties(): boolean | Schema; - additionalItems(): Schema; - patternProperties(): { - [key: string]: Schema; - }; - const(): any; - contains(): Schema; - dependencies(): { - [key: string]: Schema | string[]; - }; - propertyNames(): Schema; - if(): Schema; - then(): Schema; - else(): Schema; - format(): string; - contentEncoding(): string; - contentMediaType(): string; - definitions(): { - [key: string]: Schema; - }; - title(): string; - default(): any; - deprecated(): boolean; - discriminator(): string; - readOnly(): boolean; - writeOnly(): boolean; - examples(): any[]; - isBooleanSchema(): boolean; - isCircular(): boolean; - circularSchema(): Schema; - hasCircularProps(): boolean; - circularProps(): string[]; - hasDescription(): boolean; - description(): string | null; - hasExternalDocs(): boolean; - externalDocs(): ExternalDocs | null; - hasExtensions(): boolean; - extensions(): { - [key: string]: any; - }; - extensionKeys(): string[]; - extKeys(): string[]; - /** - * @param key - Extension key. - */ - hasExtension(key: string): boolean; - /** - * @param key - Extension key. - */ - extension(key: string): any; - /** - * @param key - Extension key. - */ - hasExt(key: string): boolean; - /** - * @param key - Extension key. - */ - ext(key: string): any; - hasDescription(): boolean; - description(): string | null; - hasExternalDocs(): boolean; - externalDocs(): ExternalDocs | null; - hasExtensions(): boolean; - extensions(): { - [key: string]: any; - }; - extensionKeys(): string[]; - extKeys(): string[]; - /** - * @param key - Extension key. - */ - hasExtension(key: string): boolean; - /** - * @param key - Extension key. - */ - extension(key: string): any; - /** - * @param key - Extension key. - */ - hasExt(key: string): boolean; - /** - * @param key - Extension key. - */ - ext(key: string): any; - } - interface SecurityScheme extends MixinDescription, MixinSpecificationExtensions { - } - /** - * Implements functions to deal with a SecurityScheme object. - */ - class SecurityScheme extends Base implements MixinDescription, MixinSpecificationExtensions { - type(): string; - name(): string; - in(): string; - scheme(): string; - bearerFormat(): string; - openIdConnectUrl(): string; - flows(): { - [key: string]: OAuthFlow; - }; - hasDescription(): boolean; - description(): string | null; - hasExtensions(): boolean; - extensions(): { - [key: string]: any; - }; - extensionKeys(): string[]; - extKeys(): string[]; - /** - * @param key - Extension key. - */ - hasExtension(key: string): boolean; - /** - * @param key - Extension key. - */ - extension(key: string): any; - /** - * @param key - Extension key. - */ - hasExt(key: string): boolean; - /** - * @param key - Extension key. - */ - ext(key: string): any; - } - /** - * Implements functions to deal with a ServerSecurityRequirement object. - */ - class ServerSecurityRequirement extends Base { - } - interface ServerVariable extends MixinDescription, MixinSpecificationExtensions { - } - /** - * Implements functions to deal with a ServerVariable object. - */ - class ServerVariable extends Base implements MixinDescription, MixinSpecificationExtensions { - allowedValues(): any[]; - /** - * @param name - Name of the variable. - */ - allows(name: string): boolean; - hasAllowedValues(): boolean; - defaultValue(): string; - hasDefaultValue(): boolean; - examples(): string[]; - hasDescription(): boolean; - description(): string | null; - hasExtensions(): boolean; - extensions(): { - [key: string]: any; - }; - extensionKeys(): string[]; - extKeys(): string[]; - /** - * @param key - Extension key. - */ - hasExtension(key: string): boolean; - /** - * @param key - Extension key. - */ - extension(key: string): any; - /** - * @param key - Extension key. - */ - hasExt(key: string): boolean; - /** - * @param key - Extension key. - */ - ext(key: string): any; - } - interface Server extends MixinDescription, MixinBindings, MixinSpecificationExtensions { - } - /** - * Implements functions to deal with a Server object. - */ - class Server extends Base implements MixinDescription, MixinBindings, MixinSpecificationExtensions { - url(): string; - protocol(): string; - protocolVersion(): string; - variables(): { - [key: string]: ServerVariable; - }; - /** - * @param name - Name of the server variable. - */ - variable(name: string): ServerVariable; - hasVariables(): boolean; - security(): ServerSecurityRequirement[]; - hasDescription(): boolean; - description(): string | null; - hasBindings(): boolean; - bindings(): any; - bindingProtocols(): string[]; - /** - * @param name - Name of the binding. - */ - hasBinding(name: string): boolean; - /** - * @param name - Name of the binding. - */ - binding(name: string): any | null; - hasExtensions(): boolean; - extensions(): { - [key: string]: any; - }; - extensionKeys(): string[]; - extKeys(): string[]; - /** - * @param key - Extension key. - */ - hasExtension(key: string): boolean; - /** - * @param key - Extension key. - */ - extension(key: string): any; - /** - * @param key - Extension key. - */ - hasExt(key: string): boolean; - /** - * @param key - Extension key. - */ - ext(key: string): any; - } - /** - * Implements functions to deal with a SubscribeOperation object. - */ - class SubscribeOperation extends Operation { - isPublish(): boolean; - isSubscribe(): boolean; - kind(): string; - } - interface Tag extends MixinDescription, MixinExternalDocs, MixinSpecificationExtensions { - } - /** - * Implements functions to deal with a Tag object. - */ - class Tag extends Base implements MixinDescription, MixinExternalDocs, MixinSpecificationExtensions { - name(): string; - hasDescription(): boolean; - description(): string | null; - hasExternalDocs(): boolean; - externalDocs(): ExternalDocs | null; - hasExtensions(): boolean; - extensions(): { - [key: string]: any; - }; - extensionKeys(): string[]; - extKeys(): string[]; - /** - * @param key - Extension key. - */ - hasExtension(key: string): boolean; - /** - * @param key - Extension key. - */ - extension(key: string): any; - /** - * @param key - Extension key. - */ - hasExt(key: string): boolean; - /** - * @param key - Extension key. - */ - ext(key: string): any; - } - /** - * The complete list of parse configuration options used to parse the given data. - * @property [path] - Path to the AsyncAPI document. It will be used to resolve relative references. Defaults to current working dir. - * @property [parse] - Options object to pass to {@link https://apidevtools.org/json-schema-ref-parser/docs/options.html|json-schema-ref-parser}. - * @property [resolve] - Options object to pass to {@link https://apidevtools.org/json-schema-ref-parser/docs/options.html|json-schema-ref-parser}. - * @property [applyTraits] - Whether to resolve and apply traits or not. Defaults to true. - */ - type ParserOptions = { - path?: string; - parse?: any; - resolve?: any; - applyTraits?: boolean; - }; - /** - * Parses and validate an AsyncAPI document from YAML or JSON. - * @param asyncapiYAMLorJSON - An AsyncAPI document in JSON or YAML format. - * @param [options] - Configuration options object {@link ParserOptions} - * @returns The parsed AsyncAPI document. - */ - function parse(asyncapiYAMLorJSON: string | any, options?: ParserOptions): Promise; - /** - * Fetches an AsyncAPI document from the given URL and passes its content to the `parse` method. - * @param url - URL where the AsyncAPI document is located. - * @param [fetchOptions] - Configuration to pass to the {@link https://developer.mozilla.org/en-US/docs/Web/API/Request|fetch} call. - * @param [options] - Configuration to pass to the {@link ParserOptions} method. - * @returns The parsed AsyncAPI document. - */ - function parseFromUrl(url: string, fetchOptions?: any, options?: ParserOptions): Promise; - /** - * Registers a new schema parser. Schema parsers are in charge of parsing and transforming payloads to AsyncAPI Schema format. - * @param parserModule - The schema parser module containing parse() and getMimeTypes() functions. - */ - function registerSchemaParser(parserModule: any): void; -} - From 5be4fb5edea4f8508e2c0adefcaf91b42170a50f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Tue, 8 Mar 2022 15:29:07 +0100 Subject: [PATCH 005/126] chore: init architecture (#484) --- .eslintignore | 4 +- .eslintrc | 2 +- .gitignore | 2 + .npmignore | 4 +- CODEOWNERS | 2 +- jest.config.ts | 26 + package-lock.json | 25472 +++++++++++++++++++++++++------------ package.json | 24 +- src/index.ts | 1 + src/models/asyncapi.ts | 3 + src/models/base.ts | 11 + src/models/index.ts | 2 + test/models/base.spec.ts | 23 + tsconfig.json | 25 + 14 files changed, 17549 insertions(+), 8052 deletions(-) create mode 100644 jest.config.ts create mode 100644 src/index.ts create mode 100644 src/models/asyncapi.ts create mode 100644 src/models/base.ts create mode 100644 src/models/index.ts create mode 100644 test/models/base.spec.ts create mode 100644 tsconfig.json diff --git a/.eslintignore b/.eslintignore index b512c09d4..7079b9966 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,3 @@ -node_modules \ No newline at end of file +node_modules +coverage +lib diff --git a/.eslintrc b/.eslintrc index 329b5967f..1c2ac9111 100644 --- a/.eslintrc +++ b/.eslintrc @@ -106,4 +106,4 @@ overrides: prefer-arrow-callback: 0 sonarjs/no-duplicate-string: 0 security/detect-object-injection: 0 - security/detect-non-literal-fs-filename: 0 \ No newline at end of file + security/detect-non-literal-fs-filename: 0 diff --git a/.gitignore b/.gitignore index 5aa32a21e..85b23547f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ node_modules .vscode .DS_Store +coverage +lib diff --git a/.npmignore b/.npmignore index 5b32d80e3..0a6120ec2 100644 --- a/.npmignore +++ b/.npmignore @@ -4,4 +4,6 @@ .all-contributorsrc .editorconfig assets/logo.png -vscode \ No newline at end of file +vscode +coverage +node_modules diff --git a/CODEOWNERS b/CODEOWNERS index e86689005..90134c914 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -5,4 +5,4 @@ # For more details, read the following article on GitHub: https://help.github.com/articles/about-codeowners/. # The default owners are automatically added as reviewers when you open a pull request unless different owners are specified in the file. -* @fmvilas @magicmatatjahu @jonaslagoni @derberg @asyncapi-bot-eve +* @fmvilas @magicmatatjahu @jonaslagoni @derberg @smoya @asyncapi-bot-eve diff --git a/jest.config.ts b/jest.config.ts new file mode 100644 index 000000000..e8ae860c9 --- /dev/null +++ b/jest.config.ts @@ -0,0 +1,26 @@ +import type { Config } from '@jest/types'; + +const config: Config.InitialOptions = { + coverageReporters: [ + 'json-summary', + 'lcov', + 'text' + ], + preset: 'ts-jest', + // The root of your source code, typically /src + // `` is a token Jest substitutes + roots: [''], + + // Test spec file resolution pattern + // Matches parent folder `__tests__` and filename + // should contain `test` or `spec`. + testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$', + // Module file extensions for importing + moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], + testTimeout: 10000, + collectCoverageFrom: [ + 'src/**' + ], +}; + +export default config; \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 31e7d2b39..75f26a462 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,1477 +8,1680 @@ "name": "@asyncapi/parser", "version": "2.0.0", "license": "Apache-2.0", + "dependencies": { + "@stoplight/spectral-core": "^1.10.1", + "@stoplight/spectral-functions": "^1.5.1", + "@stoplight/spectral-parsers": "^1.0.1", + "@stoplight/spectral-rulesets": "^1.4.3" + }, "devDependencies": { + "@jest/types": "^27.5.1", "@semantic-release/commit-analyzer": "^8.0.1", "@semantic-release/github": "7.2.3", "@semantic-release/npm": "^7.0.3", "@semantic-release/release-notes-generator": "^9.0.1", + "@types/jest": "^27.4.1", + "@types/js-yaml": "^4.0.5", "conventional-changelog-conventionalcommits": "^4.2.3", + "cross-env": "^7.0.3", "eslint": "^7.27.0", "eslint-plugin-mocha": "^7.0.1", "eslint-plugin-security": "^1.4.0", "eslint-plugin-sonarjs": "^0.5.0", + "jest": "^27.5.1", "markdown-toc": "^1.2.0", - "semantic-release": "17.4.3" + "semantic-release": "17.4.3", + "ts-jest": "^27.1.3", + "ts-node": "^10.7.0", + "typescript": "^4.6.2" } }, - "node_modules/@babel/code-frame": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", - "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", + "node_modules/@ampproject/remapping": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.1.2.tgz", + "integrity": "sha512-hoyByceqwKirw7w3Z7gnIIZC3Wx3J484Y3L/cMpXFbr7d9ZQj2mODrirNzcJa+SM3UlpWXYvKV4RlRpFXlWgXg==", "dev": true, "dependencies": { - "@babel/highlight": "^7.8.3" + "@jridgewell/trace-mapping": "^0.3.0" + }, + "engines": { + "node": ">=6.0.0" } }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.9.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.5.tgz", - "integrity": "sha512-/8arLKUFq882w4tWGj9JYzRpAlZgiWUJ+dtteNTDqrRBz9Iguck9Rn3ykuBDoUwh2TO4tSAJlrxDUOXWklJe4g==", - "dev": true + "node_modules/@asyncapi/specs": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-2.13.1.tgz", + "integrity": "sha512-Hl44ml5/yDtBnOlk0A7RWl+Xy8JcWRni/2QVT1tkmQmwg6ylW+nfIXn2Zzi9Hww+oCkgyrqMXe45rlcJVhKlDQ==" }, - "node_modules/@babel/highlight": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz", - "integrity": "sha512-lJZPilxX7Op3Nv/2cvFdnlepPXDxi29wxteT57Q965oc5R9v86ztx0jfxVrTcBk8C2kcPkkDa2Z4T3ZsPPVWsQ==", + "node_modules/@babel/code-frame": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", + "integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.9.0", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" + "@babel/highlight": "^7.16.7" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@eslint/eslintrc": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.1.tgz", - "integrity": "sha512-5v7TDE9plVhvxQeWLXDTvFvJBdH6pEsdnl2g/dAptmuFEPedQ4Erq5rsDsX+mvAM610IhNaO2W5V1dOOnDKxkQ==", + "node_modules/@babel/compat-data": { + "version": "7.17.0", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.17.0.tgz", + "integrity": "sha512-392byTlpGWXMv4FbyWw3sAZ/FrW/DrwqLGXpy0mbyNe9Taqv1mg9yON5/o0cnr8XYCkFTZbC1eV+c+LAROgrng==", "dev": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.1.1", - "espree": "^7.3.0", - "globals": "^12.1.0", - "ignore": "^4.0.6", - "import-fresh": "^3.2.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", - "strip-json-comments": "^3.1.1" + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.17.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.17.5.tgz", + "integrity": "sha512-/BBMw4EvjmyquN5O+t5eh0+YqB3XXJkYD2cjKpYtWOfFy4lQ4UozNSmxAcWT8r2XtZs0ewG+zrfsqeR15i1ajA==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.1.0", + "@babel/code-frame": "^7.16.7", + "@babel/generator": "^7.17.3", + "@babel/helper-compilation-targets": "^7.16.7", + "@babel/helper-module-transforms": "^7.16.7", + "@babel/helpers": "^7.17.2", + "@babel/parser": "^7.17.3", + "@babel/template": "^7.16.7", + "@babel/traverse": "^7.17.3", + "@babel/types": "^7.17.0", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.1.2", + "semver": "^6.3.0" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" } }, - "node_modules/@eslint/eslintrc/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.17.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.3.tgz", + "integrity": "sha512-+R6Dctil/MgUsZsZAkYgK+ADNSZzJRRy0TvY65T71z/CR854xHQ1EweBYXdfT+HNeN7w0cSJJEzgxZMv40pxsg==", "dev": true, "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "@babel/types": "^7.17.0", + "jsesc": "^2.5.1", + "source-map": "^0.5.0" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "12.4.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", - "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", + "node_modules/@babel/generator/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.7.tgz", + "integrity": "sha512-mGojBwIWcwGD6rfqgRXVlVYmPAv7eOpIemUG3dGnDdCY4Pae70ROij3XmfrH6Fa1h1aiDylpglbZyktfzyo/hA==", "dev": true, "dependencies": { - "type-fest": "^0.8.1" + "@babel/compat-data": "^7.16.4", + "@babel/helper-validator-option": "^7.16.7", + "browserslist": "^4.17.5", + "semver": "^6.3.0" }, "engines": { - "node": ">=8" + "node": ">=6.9.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "node_modules/@eslint/eslintrc/node_modules/ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true, - "engines": { - "node": ">= 4" + "bin": { + "semver": "bin/semver.js" } }, - "node_modules/@eslint/eslintrc/node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "node_modules/@babel/helper-environment-visitor": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.16.7.tgz", + "integrity": "sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag==", "dev": true, + "dependencies": { + "@babel/types": "^7.16.7" + }, "engines": { - "node": ">=8" + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.16.7.tgz", + "integrity": "sha512-QfDfEnIUyyBSR3HtrtGECuZ6DAyCkYFp7GHl75vFtTnn6pjKeK0T1DB5lLkFvBea8MdaiUABx3osbgLyInoejA==", + "dev": true, + "dependencies": { + "@babel/helper-get-function-arity": "^7.16.7", + "@babel/template": "^7.16.7", + "@babel/types": "^7.16.7" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@eslint/eslintrc/node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "node_modules/@babel/helper-get-function-arity": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.16.7.tgz", + "integrity": "sha512-flc+RLSOBXzNzVhcLu6ujeHUrD6tANAOU5ojrRx/as+tbzf8+stUCj7+IfRRoAbEZqj/ahXEMsjhOhgeZsrnTw==", "dev": true, + "dependencies": { + "@babel/types": "^7.16.7" + }, "engines": { - "node": ">=8" + "node": ">=6.9.0" } }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz", - "integrity": "sha512-33g3pMJk3bg5nXbL/+CY6I2eJDzZAni49PfJnL5fghPTggPvBd/pFNSgJsdAgWptuFu7qq/ERvOYFlhvsLTCKA==", + "node_modules/@babel/helper-hoist-variables": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz", + "integrity": "sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==", "dev": true, "dependencies": { - "@nodelib/fs.stat": "2.0.4", - "run-parallel": "^1.1.9" + "@babel/types": "^7.16.7" }, "engines": { - "node": ">= 8" + "node": ">=6.9.0" } }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.4.tgz", - "integrity": "sha512-IYlHJA0clt2+Vg7bccq+TzRdJvv19c2INqBSsoOLp1je7xjtr7J26+WXR72MCdvU9q1qTzIWDfhMf+DRvQJK4Q==", + "node_modules/@babel/helper-module-imports": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz", + "integrity": "sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==", "dev": true, + "dependencies": { + "@babel/types": "^7.16.7" + }, "engines": { - "node": ">= 8" + "node": ">=6.9.0" } }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.6.tgz", - "integrity": "sha512-8Broas6vTtW4GIXTAHDoE32hnN2M5ykgCpWGbuXHQ15vEMqr23pB76e/GZcYsZCHALv50ktd24qhEyKr6wBtow==", + "node_modules/@babel/helper-module-transforms": { + "version": "7.17.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.17.6.tgz", + "integrity": "sha512-2ULmRdqoOMpdvkbT8jONrZML/XALfzxlb052bldftkicAUy8AxSCkD5trDPQcwHNmolcl7wP6ehNqMlyUw6AaA==", "dev": true, "dependencies": { - "@nodelib/fs.scandir": "2.1.4", - "fastq": "^1.6.0" + "@babel/helper-environment-visitor": "^7.16.7", + "@babel/helper-module-imports": "^7.16.7", + "@babel/helper-simple-access": "^7.16.7", + "@babel/helper-split-export-declaration": "^7.16.7", + "@babel/helper-validator-identifier": "^7.16.7", + "@babel/template": "^7.16.7", + "@babel/traverse": "^7.17.3", + "@babel/types": "^7.17.0" }, "engines": { - "node": ">= 8" + "node": ">=6.9.0" } }, - "node_modules/@octokit/auth-token": { - "version": "2.4.5", - "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.5.tgz", - "integrity": "sha512-BpGYsPgJt05M7/L/5FoE1PiAbdxXFZkX/3kDYcsvd1v6UhlnE5e96dTDr0ezX/EFwciQxf3cNV0loipsURU+WA==", + "node_modules/@babel/helper-plugin-utils": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz", + "integrity": "sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.16.7.tgz", + "integrity": "sha512-ZIzHVyoeLMvXMN/vok/a4LWRy8G2v205mNP0XOuf9XRLyX5/u9CnVulUtDgUTama3lT+bf/UqucuZjqiGuTS1g==", "dev": true, "dependencies": { - "@octokit/types": "^6.0.3" + "@babel/types": "^7.16.7" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@octokit/core": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.4.0.tgz", - "integrity": "sha512-6/vlKPP8NF17cgYXqucdshWqmMZGXkuvtcrWCgU5NOI0Pl2GjlmZyWgBMrU8zJ3v2MJlM6++CiB45VKYmhiWWg==", + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz", + "integrity": "sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==", "dev": true, "dependencies": { - "@octokit/auth-token": "^2.4.4", - "@octokit/graphql": "^4.5.8", - "@octokit/request": "^5.4.12", - "@octokit/request-error": "^2.0.5", - "@octokit/types": "^6.0.3", - "before-after-hook": "^2.2.0", - "universal-user-agent": "^6.0.0" + "@babel/types": "^7.16.7" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@octokit/endpoint": { - "version": "6.0.11", - "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.11.tgz", - "integrity": "sha512-fUIPpx+pZyoLW4GCs3yMnlj2LfoXTWDUVPTC4V3MUEKZm48W+XYpeWSZCv+vYF1ZABUm2CqnDVf1sFtIYrj7KQ==", + "node_modules/@babel/helper-validator-identifier": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz", + "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz", + "integrity": "sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.17.2", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.17.2.tgz", + "integrity": "sha512-0Qu7RLR1dILozr/6M0xgj+DFPmi6Bnulgm9M8BVa9ZCWxDqlSnqt3cf8IDPB5m45sVXUZ0kuQAgUrdSFFH79fQ==", "dev": true, "dependencies": { - "@octokit/types": "^6.0.3", - "is-plain-object": "^5.0.0", - "universal-user-agent": "^6.0.0" + "@babel/template": "^7.16.7", + "@babel/traverse": "^7.17.0", + "@babel/types": "^7.17.0" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@octokit/graphql": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.6.2.tgz", - "integrity": "sha512-WmsIR1OzOr/3IqfG9JIczI8gMJUMzzyx5j0XXQ4YihHtKlQc+u35VpVoOXhlKAlaBntvry1WpAzPl/a+s3n89Q==", + "node_modules/@babel/highlight": { + "version": "7.16.10", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.16.10.tgz", + "integrity": "sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfTBFxdw==", "dev": true, "dependencies": { - "@octokit/request": "^5.3.0", - "@octokit/types": "^6.0.3", - "universal-user-agent": "^6.0.0" + "@babel/helper-validator-identifier": "^7.16.7", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@octokit/openapi-types": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-7.0.0.tgz", - "integrity": "sha512-gV/8DJhAL/04zjTI95a7FhQwS6jlEE0W/7xeYAzuArD0KVAVWDLP2f3vi98hs3HLTczxXdRK/mF0tRoQPpolEw==", - "dev": true + "node_modules/@babel/parser": { + "version": "7.17.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.17.3.tgz", + "integrity": "sha512-7yJPvPV+ESz2IUTPbOL+YkIGyCqOyNIzdguKQuJGnH7bg1WTIifuM21YqokFt/THWh1AkCRn9IgoykTRCBVpzA==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } }, - "node_modules/@octokit/plugin-paginate-rest": { - "version": "2.13.3", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.13.3.tgz", - "integrity": "sha512-46lptzM9lTeSmIBt/sVP/FLSTPGx6DCzAdSX3PfeJ3mTf4h9sGC26WpaQzMEq/Z44cOcmx8VsOhO+uEgE3cjYg==", + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, "dependencies": { - "@octokit/types": "^6.11.0" + "@babel/helper-plugin-utils": "^7.8.0" }, "peerDependencies": { - "@octokit/core": ">=2" + "@babel/core": "^7.0.0-0" } }, - "node_modules/@octokit/plugin-request-log": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.3.tgz", - "integrity": "sha512-4RFU4li238jMJAzLgAwkBAw+4Loile5haQMQr+uhFq27BmyJXcXSKvoQKqh0agsZEiUlW6iSv3FAgvmGkur7OQ==", + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, "peerDependencies": { - "@octokit/core": ">=3" + "@babel/core": "^7.0.0-0" } }, - "node_modules/@octokit/plugin-rest-endpoint-methods": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.0.1.tgz", - "integrity": "sha512-vvWbPtPqLyIzJ7A4IPdTl+8IeuKAwMJ4LjvmqWOOdfSuqWQYZXq2CEd0hsnkidff2YfKlguzujHs/reBdAx8Sg==", + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, "dependencies": { - "@octokit/types": "^6.13.1", - "deprecation": "^2.3.1" + "@babel/helper-plugin-utils": "^7.12.13" }, "peerDependencies": { - "@octokit/core": ">=3" + "@babel/core": "^7.0.0-0" } }, - "node_modules/@octokit/request": { - "version": "5.4.15", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.4.15.tgz", - "integrity": "sha512-6UnZfZzLwNhdLRreOtTkT9n57ZwulCve8q3IT/Z477vThu6snfdkBuhxnChpOKNGxcQ71ow561Qoa6uqLdPtag==", + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", "dev": true, "dependencies": { - "@octokit/endpoint": "^6.0.1", - "@octokit/request-error": "^2.0.0", - "@octokit/types": "^6.7.1", - "is-plain-object": "^5.0.0", - "node-fetch": "^2.6.1", - "universal-user-agent": "^6.0.0" + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@octokit/request-error": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.0.5.tgz", - "integrity": "sha512-T/2wcCFyM7SkXzNoyVNWjyVlUwBvW3igM3Btr/eKYiPmucXTtkxt2RBsf6gn3LTzaLSLTQtNmvg+dGsOxQrjZg==", + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, "dependencies": { - "@octokit/types": "^6.0.3", - "deprecation": "^2.0.0", - "once": "^1.4.0" + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@octokit/rest": { - "version": "18.5.3", - "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-18.5.3.tgz", - "integrity": "sha512-KPAsUCr1DOdLVbZJgGNuE/QVLWEaVBpFQwDAz/2Cnya6uW2wJ/P5RVGk0itx7yyN1aGa8uXm2pri4umEqG1JBA==", + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, "dependencies": { - "@octokit/core": "^3.2.3", - "@octokit/plugin-paginate-rest": "^2.6.2", - "@octokit/plugin-request-log": "^1.0.2", - "@octokit/plugin-rest-endpoint-methods": "5.0.1" + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@octokit/types": { - "version": "6.14.2", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.14.2.tgz", - "integrity": "sha512-wiQtW9ZSy4OvgQ09iQOdyXYNN60GqjCL/UdMsepDr1Gr0QzpW6irIKbH3REuAHXAhxkEk9/F2a3Gcs1P6kW5jA==", + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, "dependencies": { - "@octokit/openapi-types": "^7.0.0" + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@semantic-release/commit-analyzer": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/@semantic-release/commit-analyzer/-/commit-analyzer-8.0.1.tgz", - "integrity": "sha512-5bJma/oB7B4MtwUkZC2Bf7O1MHfi4gWe4mA+MIQ3lsEV0b422Bvl1z5HRpplDnMLHH3EXMoRdEng6Ds5wUqA3A==", + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, "dependencies": { - "conventional-changelog-angular": "^5.0.0", - "conventional-commits-filter": "^2.0.0", - "conventional-commits-parser": "^3.0.7", - "debug": "^4.0.0", - "import-from": "^3.0.0", - "lodash": "^4.17.4", - "micromatch": "^4.0.2" - }, - "engines": { - "node": ">=10.18" + "@babel/helper-plugin-utils": "^7.10.4" }, "peerDependencies": { - "semantic-release": ">=16.0.0 <18.0.0" + "@babel/core": "^7.0.0-0" } }, - "node_modules/@semantic-release/error": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@semantic-release/error/-/error-2.2.0.tgz", - "integrity": "sha512-9Tj/qn+y2j+sjCI3Jd+qseGtHjOAeg7dU2/lVcqIQ9TV3QDaDXDYXcoOHU+7o2Hwh8L8ymL4gfuO7KxDs3q2zg==", - "dev": true - }, - "node_modules/@semantic-release/github": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/@semantic-release/github/-/github-7.2.3.tgz", - "integrity": "sha512-lWjIVDLal+EQBzy697ayUNN8MoBpp+jYIyW2luOdqn5XBH4d9bQGfTnjuLyzARZBHejqh932HVjiH/j4+R7VHw==", + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, "dependencies": { - "@octokit/rest": "^18.0.0", - "@semantic-release/error": "^2.2.0", - "aggregate-error": "^3.0.0", - "bottleneck": "^2.18.1", - "debug": "^4.0.0", - "dir-glob": "^3.0.0", - "fs-extra": "^10.0.0", - "globby": "^11.0.0", - "http-proxy-agent": "^4.0.0", - "https-proxy-agent": "^5.0.0", - "issue-parser": "^6.0.0", - "lodash": "^4.17.4", - "mime": "^2.4.3", - "p-filter": "^2.0.0", - "p-retry": "^4.0.0", - "url-join": "^4.0.0" - }, - "engines": { - "node": ">=10.18" + "@babel/helper-plugin-utils": "^7.8.0" }, "peerDependencies": { - "semantic-release": ">=16.0.0 <18.0.0" + "@babel/core": "^7.0.0-0" } }, - "node_modules/@semantic-release/github/node_modules/fs-extra": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz", - "integrity": "sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==", + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" + "@babel/helper-plugin-utils": "^7.8.0" }, - "engines": { - "node": ">=12" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@semantic-release/github/node_modules/universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, - "engines": { - "node": ">= 10.0.0" + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@semantic-release/npm": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/@semantic-release/npm/-/npm-7.0.5.tgz", - "integrity": "sha512-D+oEmsx9aHE1q806NFQwSC9KdBO8ri/VO99eEz0wWbX2jyLqVyWr7t0IjKC8aSnkkQswg/4KN/ZjfF6iz1XOpw==", + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dev": true, "dependencies": { - "@semantic-release/error": "^2.2.0", - "aggregate-error": "^3.0.0", - "execa": "^4.0.0", - "fs-extra": "^9.0.0", - "lodash": "^4.17.15", - "nerf-dart": "^1.0.0", - "normalize-url": "^5.0.0", - "npm": "^6.10.3", - "rc": "^1.2.8", - "read-pkg": "^5.0.0", - "registry-auth-token": "^4.0.0", - "semver": "^7.1.2", - "tempy": "^0.5.0" + "@babel/helper-plugin-utils": "^7.14.5" }, "engines": { - "node": ">=10.18" + "node": ">=6.9.0" }, "peerDependencies": { - "semantic-release": ">=16.0.0 <18.0.0" + "@babel/core": "^7.0.0-0" } }, - "node_modules/@semantic-release/npm/node_modules/execa": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-4.0.0.tgz", - "integrity": "sha512-JbDUxwV3BoT5ZVXQrSVbAiaXhXUkIwvbhPIwZ0N13kX+5yCzOhUNdocxB/UQRuYOHRYYwAxKYwJYc0T4D12pDA==", + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.16.7.tgz", + "integrity": "sha512-YhUIJHHGkqPgEcMYkPCKTyGUdoGKWtopIycQyjJH8OjvRgOYsXsaKehLVPScKJWAULPxMa4N1vCe6szREFlZ7A==", "dev": true, "dependencies": { - "cross-spawn": "^7.0.0", - "get-stream": "^5.0.0", - "human-signals": "^1.1.1", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.0", - "onetime": "^5.1.0", - "signal-exit": "^3.0.2", - "strip-final-newline": "^2.0.0" + "@babel/helper-plugin-utils": "^7.16.7" }, "engines": { - "node": ">=10" + "node": ">=6.9.0" }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@semantic-release/npm/node_modules/get-stream": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", - "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", + "node_modules/@babel/template": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz", + "integrity": "sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==", "dev": true, "dependencies": { - "pump": "^3.0.0" + "@babel/code-frame": "^7.16.7", + "@babel/parser": "^7.16.7", + "@babel/types": "^7.16.7" }, "engines": { - "node": ">=8" + "node": ">=6.9.0" } }, - "node_modules/@semantic-release/npm/node_modules/parse-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", - "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", + "node_modules/@babel/traverse": { + "version": "7.17.3", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.17.3.tgz", + "integrity": "sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1", - "lines-and-columns": "^1.1.6" + "@babel/code-frame": "^7.16.7", + "@babel/generator": "^7.17.3", + "@babel/helper-environment-visitor": "^7.16.7", + "@babel/helper-function-name": "^7.16.7", + "@babel/helper-hoist-variables": "^7.16.7", + "@babel/helper-split-export-declaration": "^7.16.7", + "@babel/parser": "^7.17.3", + "@babel/types": "^7.17.0", + "debug": "^4.1.0", + "globals": "^11.1.0" }, "engines": { - "node": ">=8" + "node": ">=6.9.0" } }, - "node_modules/@semantic-release/npm/node_modules/read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "node_modules/@babel/traverse/node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", "dev": true, - "dependencies": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, "engines": { - "node": ">=8" + "node": ">=4" } }, - "node_modules/@semantic-release/npm/node_modules/semver": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", - "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", + "node_modules/@babel/types": { + "version": "7.17.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz", + "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==", "dev": true, - "bin": { - "semver": "bin/semver.js" + "dependencies": { + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" }, "engines": { - "node": ">=10" + "node": ">=6.9.0" } }, - "node_modules/@semantic-release/release-notes-generator": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/@semantic-release/release-notes-generator/-/release-notes-generator-9.0.1.tgz", - "integrity": "sha512-bOoTiH6SiiR0x2uywSNR7uZcRDl22IpZhj+Q5Bn0v+98MFtOMhCxFhbrKQjhbYoZw7vps1mvMRmFkp/g6R9cvQ==", + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@cspotcode/source-map-consumer": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz", + "integrity": "sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==", "dev": true, - "dependencies": { - "conventional-changelog-angular": "^5.0.0", - "conventional-changelog-writer": "^4.0.0", - "conventional-commits-filter": "^2.0.0", - "conventional-commits-parser": "^3.0.0", - "debug": "^4.0.0", - "get-stream": "^5.0.0", - "import-from": "^3.0.0", - "into-stream": "^5.0.0", - "lodash": "^4.17.4", - "read-pkg-up": "^7.0.0" - }, "engines": { - "node": ">=10.18" - }, - "peerDependencies": { - "semantic-release": ">=15.8.0 <18.0.0" + "node": ">= 12" } }, - "node_modules/@semantic-release/release-notes-generator/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "node_modules/@cspotcode/source-map-support": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.7.0.tgz", + "integrity": "sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==", "dev": true, "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" + "@cspotcode/source-map-consumer": "0.8.0" }, "engines": { - "node": ">=8" + "node": ">=12" } }, - "node_modules/@semantic-release/release-notes-generator/node_modules/get-stream": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", - "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", + "node_modules/@eslint/eslintrc": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.1.tgz", + "integrity": "sha512-5v7TDE9plVhvxQeWLXDTvFvJBdH6pEsdnl2g/dAptmuFEPedQ4Erq5rsDsX+mvAM610IhNaO2W5V1dOOnDKxkQ==", "dev": true, "dependencies": { - "pump": "^3.0.0" + "ajv": "^6.12.4", + "debug": "^4.1.1", + "espree": "^7.3.0", + "globals": "^12.1.0", + "ignore": "^4.0.6", + "import-fresh": "^3.2.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "strip-json-comments": "^3.1.1" }, "engines": { - "node": ">=8" + "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/@semantic-release/release-notes-generator/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "node_modules/@eslint/eslintrc/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, "dependencies": { - "p-locate": "^4.1.0" + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" }, - "engines": { - "node": ">=8" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/@semantic-release/release-notes-generator/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "12.4.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", + "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", "dev": true, "dependencies": { - "p-try": "^2.0.0" + "type-fest": "^0.8.1" }, "engines": { - "node": ">=6" + "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@semantic-release/release-notes-generator/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "node_modules/@eslint/eslintrc/node_modules/ignore": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, "engines": { - "node": ">=8" + "node": ">= 4" } }, - "node_modules/@semantic-release/release-notes-generator/node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, + "node_modules/@eslint/eslintrc/node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, "engines": { - "node": ">=6" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@semantic-release/release-notes-generator/node_modules/parse-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", - "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", + "node_modules/@eslint/eslintrc/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1", - "lines-and-columns": "^1.1.6" + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" }, "engines": { "node": ">=8" } }, - "node_modules/@semantic-release/release-notes-generator/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "node_modules/@istanbuljs/load-nyc-config/node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true, "engines": { - "node": ">=8" + "node": ">=6" } }, - "node_modules/@semantic-release/release-notes-generator/node_modules/read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "dependencies": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" }, "engines": { "node": ">=8" } }, - "node_modules/@semantic-release/release-notes-generator/node_modules/read-pkg-up": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", - "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, "dependencies": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" + "p-locate": "^4.1.0" }, "engines": { "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@semantic-release/release-notes-generator/node_modules/read-pkg/node_modules/type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, "engines": { "node": ">=8" } }, - "node_modules/@semantic-release/release-notes-generator/node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, "engines": { - "node": ">=8" + "node": ">=6" } }, - "node_modules/@tootallnate/once": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", - "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "node_modules/@istanbuljs/load-nyc-config/node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, "engines": { - "node": ">= 6" + "node": ">=8" } }, - "node_modules/@types/normalize-package-data": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", - "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", - "dev": true - }, - "node_modules/@types/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", - "dev": true - }, - "node_modules/@types/retry": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", - "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", - "dev": true + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "engines": { + "node": ">=8" + } }, - "node_modules/acorn": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.1.tgz", - "integrity": "sha512-add7dgA5ppRPxCFJoAGfMDi7PIBXq1RtGo7BhbLaxwrXPOmw8gq48Y9ozT01hUKy9byMjlR20EJhu5zlkErEkg==", + "node_modules/@jest/console": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-27.5.1.tgz", + "integrity": "sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==", "dev": true, - "peer": true, - "bin": { - "acorn": "bin/acorn" + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0" }, "engines": { - "node": ">=0.4.0" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/acorn-jsx": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.1.tgz", - "integrity": "sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==", + "node_modules/@jest/console/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/agent-base": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.0.tgz", - "integrity": "sha512-j1Q7cSCqN+AwrmDd+pzgqc0/NpC655x2bUf5ZjRIO77DcNBFmh+OgRNzF6OKdCC9RSCb19fGd99+bhXFdkRNqw==", + "node_modules/@jest/console/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "dependencies": { - "debug": "4" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">= 6.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/aggregate-error": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.0.1.tgz", - "integrity": "sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA==", + "node_modules/@jest/console/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=8" + "node": ">=7.0.0" } }, - "node_modules/aggregate-error/node_modules/indent-string": { + "node_modules/@jest/console/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/console/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, "engines": { "node": ">=8" } }, - "node_modules/ajv": { - "version": "6.12.3", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.3.tgz", - "integrity": "sha512-4K0cK3L1hsqk9xIb2z9vs/XU+PGJZ9PNpJRDS9YLzmNdX6jmVPfamLvTJr0aDAusnHyCHO6MjzlkAsgtqp9teA==", + "node_modules/@jest/console/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "has-flag": "^4.0.0" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "engines": { + "node": ">=8" } }, - "node_modules/ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "node_modules/@jest/core": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-27.5.1.tgz", + "integrity": "sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==", "dev": true, "dependencies": { - "type-fest": "^0.21.3" + "@jest/console": "^27.5.1", + "@jest/reporters": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^27.5.1", + "jest-config": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-resolve-dependencies": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "jest-watcher": "^27.5.1", + "micromatch": "^4.0.4", + "rimraf": "^3.0.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" }, "engines": { - "node": ">=8" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } } }, - "node_modules/ansi-escapes/node_modules/type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "node_modules/@jest/core/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, "engines": { - "node": ">=10" + "node": ">=8" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/ansi-red": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", - "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=", + "node_modules/@jest/core/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "dependencies": { - "ansi-wrap": "0.1.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "node_modules/@jest/core/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "dependencies": { - "color-convert": "^1.9.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=4" + "node": ">=7.0.0" } }, - "node_modules/ansi-wrap": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", - "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ansicolors": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.3.2.tgz", - "integrity": "sha1-ZlWX3oap/+Oqm/vmyuXG6kJrSXk=", - "dev": true - }, - "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/argv-formatter": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/argv-formatter/-/argv-formatter-1.0.0.tgz", - "integrity": "sha1-oMoMvCmltz6Dbuvhy/bF4OTrgvk=", + "node_modules/@jest/core/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "node_modules/array-find-index": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", - "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", + "node_modules/@jest/core/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/array-ify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", - "integrity": "sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=", - "dev": true - }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "node_modules/@jest/core/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, "engines": { "node": ">=8" } }, - "node_modules/arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "node_modules/@jest/environment": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", + "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", "dev": true, + "dependencies": { + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1" + }, "engines": { - "node": ">=0.10.0" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "node_modules/@jest/fake-timers": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", + "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "@sinonjs/fake-timers": "^8.0.1", + "@types/node": "*", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + }, "engines": { - "node": ">=8" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "node_modules/@jest/globals": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-27.5.1.tgz", + "integrity": "sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==", "dev": true, + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/types": "^27.5.1", + "expect": "^27.5.1" + }, "engines": { - "node": ">= 4.0.0" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/autolinker": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.28.1.tgz", - "integrity": "sha1-BlK0kYgYefB3XazgzcoyM5QqTkc=", + "node_modules/@jest/reporters": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-27.5.1.tgz", + "integrity": "sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==", "dev": true, "dependencies": { - "gulp-header": "^1.7.1" + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.2", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-haste-map": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "slash": "^3.0.0", + "source-map": "^0.6.0", + "string-length": "^4.0.1", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^8.1.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } } }, - "node_modules/balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true - }, - "node_modules/before-after-hook": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.1.tgz", - "integrity": "sha512-/6FKxSTWoJdbsLDF8tdIjaRiFXiE6UHsEHE3OPI/cwPURCVi1ukP0gmLn7XWEiFk5TcwQjjY5PWsU+j+tgXgmw==", - "dev": true - }, - "node_modules/bottleneck": { - "version": "2.19.5", - "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz", - "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==", - "dev": true + "node_modules/@jest/reporters/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "node_modules/@jest/reporters/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "node_modules/@jest/reporters/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "dependencies": { - "fill-range": "^7.0.1" + "color-name": "~1.1.4" }, "engines": { - "node": ">=8" + "node": ">=7.0.0" } }, - "node_modules/buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "node_modules/@jest/reporters/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "node_modules/@jest/reporters/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, "engines": { - "node": ">=6" + "node": ">=8" } }, - "node_modules/camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "node_modules/@jest/reporters/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/camelcase-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", - "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", + "node_modules/@jest/source-map": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-27.5.1.tgz", + "integrity": "sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==", "dev": true, "dependencies": { - "camelcase": "^4.1.0", - "map-obj": "^2.0.0", - "quick-lru": "^1.0.0" + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9", + "source-map": "^0.6.0" }, "engines": { - "node": ">=4" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/cardinal": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/cardinal/-/cardinal-2.1.1.tgz", - "integrity": "sha1-fMEFXYItISlU0HsIXeolHMe8VQU=", + "node_modules/@jest/test-result": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-27.5.1.tgz", + "integrity": "sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==", "dev": true, "dependencies": { - "ansicolors": "~0.3.2", - "redeyed": "~2.1.0" + "@jest/console": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" }, - "bin": { - "cdl": "bin/cdl.js" + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "node_modules/@jest/test-sequencer": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz", + "integrity": "sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==", "dev": true, "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "@jest/test-result": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-runtime": "^27.5.1" }, "engines": { - "node": ">=4" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "node_modules/@jest/transform": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.5.1.tgz", + "integrity": "sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==", "dev": true, + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/types": "^27.5.1", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-util": "^27.5.1", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" + }, "engines": { - "node": ">=6" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/cli-table": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/cli-table/-/cli-table-0.3.6.tgz", - "integrity": "sha512-ZkNZbnZjKERTY5NwC2SeMeLeifSPq/pubeRoTpdr3WchLlnZg6hEgvHkK5zL7KNFdd9PmHN8lxrENUwI3cE8vQ==", + "node_modules/@jest/transform/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "dependencies": { - "colors": "1.0.3" + "color-convert": "^2.0.1" }, "engines": { - "node": ">= 0.2.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/coffee-script": { - "version": "1.12.7", - "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", - "integrity": "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==", - "deprecated": "CoffeeScript on NPM has moved to \"coffeescript\" (no hyphen)", + "node_modules/@jest/transform/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "bin": { - "cake": "bin/cake", - "coffee": "bin/coffee" + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=0.8.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "node_modules/@jest/transform/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "dependencies": { - "color-name": "1.1.3" + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, - "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "node_modules/@jest/transform/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "node_modules/colors": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz", - "integrity": "sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=", + "node_modules/@jest/transform/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, "engines": { - "node": ">=0.1.90" - } - }, - "node_modules/compare-func": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.2.tgz", - "integrity": "sha1-md0LpFfh+bxyKxLAjsM+6rMfpkg=", - "dev": true, - "dependencies": { - "array-ify": "^1.0.0", - "dot-prop": "^3.0.0" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true - }, - "node_modules/concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", - "dev": true, - "engines": [ - "node >= 0.8" - ], - "dependencies": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" - } - }, - "node_modules/concat-with-sourcemaps": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", - "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", - "dev": true, - "dependencies": { - "source-map": "^0.6.1" + "node": ">=8" } }, - "node_modules/conventional-changelog-angular": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.6.tgz", - "integrity": "sha512-QDEmLa+7qdhVIv8sFZfVxU1VSyVvnXPsxq8Vam49mKUcO1Z8VTLEJk9uI21uiJUsnmm0I4Hrsdc9TgkOQo9WSA==", + "node_modules/@jest/transform/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "dependencies": { - "compare-func": "^1.3.1", - "q": "^1.5.1" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=6.9.0" + "node": ">=8" } }, - "node_modules/conventional-changelog-conventionalcommits": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.2.3.tgz", - "integrity": "sha512-atGa+R4vvEhb8N/8v3IoW59gCBJeeFiX6uIbPu876ENAmkMwsenyn0R21kdDHJFLQdy6zW4J6b4xN8KI3b9oww==", + "node_modules/@jest/types": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", + "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", "dev": true, "dependencies": { - "compare-func": "^1.3.1", - "lodash": "^4.17.15", - "q": "^1.5.1" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=6.9.0" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/conventional-changelog-writer": { - "version": "4.0.11", - "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-4.0.11.tgz", - "integrity": "sha512-g81GQOR392I+57Cw3IyP1f+f42ME6aEkbR+L7v1FBBWolB0xkjKTeCWVguzRrp6UiT1O6gBpJbEy2eq7AnV1rw==", + "node_modules/@jest/types/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "dependencies": { - "compare-func": "^1.3.1", - "conventional-commits-filter": "^2.0.2", - "dateformat": "^3.0.0", - "handlebars": "^4.4.0", - "json-stringify-safe": "^5.0.1", - "lodash": "^4.17.15", - "meow": "^5.0.0", - "semver": "^6.0.0", - "split": "^1.0.0", - "through2": "^3.0.0" - }, - "bin": { - "conventional-changelog-writer": "cli.js" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/conventional-changelog-writer/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/conventional-commits-filter": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-2.0.2.tgz", - "integrity": "sha512-WpGKsMeXfs21m1zIw4s9H5sys2+9JccTzpN6toXtxhpw2VNF2JUXwIakthKBy+LN4DvJm+TzWhxOMWOs1OFCFQ==", + "node_modules/@jest/types/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "dependencies": { - "lodash.ismatch": "^4.4.0", - "modify-values": "^1.0.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=6.9.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/conventional-commits-parser": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.0.8.tgz", - "integrity": "sha512-YcBSGkZbYp7d+Cr3NWUeXbPDFUN6g3SaSIzOybi8bjHL5IJ5225OSCxJJ4LgziyEJ7AaJtE9L2/EU6H7Nt/DDQ==", + "node_modules/@jest/types/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "dependencies": { - "is-text-path": "^1.0.1", - "JSONStream": "^1.0.4", - "lodash": "^4.17.15", - "meow": "^5.0.0", - "split2": "^2.0.0", - "through2": "^3.0.0", - "trim-off-newlines": "^1.0.0" - }, - "bin": { - "conventional-commits-parser": "cli.js" + "color-name": "~1.1.4" }, "engines": { - "node": ">=6.9.0" + "node": ">=7.0.0" } }, - "node_modules/core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "node_modules/@jest/types/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "node_modules/cosmiconfig": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.0.tgz", - "integrity": "sha512-pondGvTuVYDk++upghXJabWzL6Kxu6f26ljFw64Swq9v6sQPUL3EUlVDV56diOjpCayKihL6hVe8exIACU4XcA==", + "node_modules/@jest/types/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "dependencies": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.2.1", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.10.0" - }, "engines": { - "node": ">=10" + "node": ">=8" } }, - "node_modules/cosmiconfig/node_modules/parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "node_modules/@jest/types/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" + "has-flag": "^4.0.0" }, "engines": { "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/cosmiconfig/node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "node_modules/@jridgewell/resolve-uri": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.0.5.tgz", + "integrity": "sha512-VPeQ7+wH0itvQxnG+lIzWgkysKIr3L9sslimFW55rHMdGu/qCQ5z5h9zq4gI8uBtqkpHhsF4Z/OwExufUCThew==", "dev": true, "engines": { - "node": ">=8" + "node": ">=6.0.0" } }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.11", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.11.tgz", + "integrity": "sha512-Fg32GrJo61m+VqYSdRSjRXMjQ06j8YIYfcTqndLYVAaHmroZHLJZCydsWBOTDqXS2v+mjxohBWEMfg97GXmYQg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.4.tgz", + "integrity": "sha512-vFv9ttIedivx0ux3QSjhgtCVjPZd5l46ZOMDSCwnH1yUO2e964gO8LZGyv2QkqcgR6TnBU1v+1IFqmeoG+0UJQ==", "dev": true, "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@jsep-plugin/regex": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.1.tgz", + "integrity": "sha512-GroTtexnEfdVOvvALjW/JfV+wgRMadZKEA/lf9gE09zJejHhcBl+cqJxk2px9ub8k3gUrPe1j81Z1V4RDaSy8A==", + "engines": { + "node": ">= 10.16.0" }, + "peerDependencies": { + "jsep": "^0.4.0||^1.0.0" + } + }, + "node_modules/@jsep-plugin/ternary": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.0.tgz", + "integrity": "sha512-dS+vdBz0y71mRspSsv/c+YUm8xXKiEqgZF7+ERxNLWyycMOOtR9CQjV+MexpTCCh76iBrMHcWul9rzoZdfJm0g==", "engines": { - "node": ">= 8" + "node": ">= 10.16.0" + }, + "peerDependencies": { + "jsep": "^0.4.0||^1.0.0" } }, - "node_modules/cross-spawn/node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz", + "integrity": "sha512-33g3pMJk3bg5nXbL/+CY6I2eJDzZAni49PfJnL5fghPTggPvBd/pFNSgJsdAgWptuFu7qq/ERvOYFlhvsLTCKA==", "dev": true, "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" + "@nodelib/fs.stat": "2.0.4", + "run-parallel": "^1.1.9" }, "engines": { "node": ">= 8" } }, - "node_modules/crypto-random-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", - "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", + "node_modules/@nodelib/fs.stat": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.4.tgz", + "integrity": "sha512-IYlHJA0clt2+Vg7bccq+TzRdJvv19c2INqBSsoOLp1je7xjtr7J26+WXR72MCdvU9q1qTzIWDfhMf+DRvQJK4Q==", "dev": true, "engines": { - "node": ">=8" + "node": ">= 8" } }, - "node_modules/currently-unhandled": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", - "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", + "node_modules/@nodelib/fs.walk": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.6.tgz", + "integrity": "sha512-8Broas6vTtW4GIXTAHDoE32hnN2M5ykgCpWGbuXHQ15vEMqr23pB76e/GZcYsZCHALv50ktd24qhEyKr6wBtow==", "dev": true, "dependencies": { - "array-find-index": "^1.0.1" + "@nodelib/fs.scandir": "2.1.4", + "fastq": "^1.6.0" }, "engines": { - "node": ">=0.10.0" + "node": ">= 8" } }, - "node_modules/dateformat": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", - "integrity": "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==", + "node_modules/@octokit/auth-token": { + "version": "2.4.5", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.5.tgz", + "integrity": "sha512-BpGYsPgJt05M7/L/5FoE1PiAbdxXFZkX/3kDYcsvd1v6UhlnE5e96dTDr0ezX/EFwciQxf3cNV0loipsURU+WA==", "dev": true, - "engines": { - "node": "*" + "dependencies": { + "@octokit/types": "^6.0.3" } }, - "node_modules/debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", - "deprecated": "Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/decamelize-keys": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", - "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=", + "node_modules/@octokit/core": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.4.0.tgz", + "integrity": "sha512-6/vlKPP8NF17cgYXqucdshWqmMZGXkuvtcrWCgU5NOI0Pl2GjlmZyWgBMrU8zJ3v2MJlM6++CiB45VKYmhiWWg==", "dev": true, "dependencies": { - "decamelize": "^1.1.0", - "map-obj": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" + "@octokit/auth-token": "^2.4.4", + "@octokit/graphql": "^4.5.8", + "@octokit/request": "^5.4.12", + "@octokit/request-error": "^2.0.5", + "@octokit/types": "^6.0.3", + "before-after-hook": "^2.2.0", + "universal-user-agent": "^6.0.0" } }, - "node_modules/decamelize-keys/node_modules/map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", + "node_modules/@octokit/endpoint": { + "version": "6.0.11", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.11.tgz", + "integrity": "sha512-fUIPpx+pZyoLW4GCs3yMnlj2LfoXTWDUVPTC4V3MUEKZm48W+XYpeWSZCv+vYF1ZABUm2CqnDVf1sFtIYrj7KQ==", "dev": true, - "engines": { - "node": ">=0.10.0" + "dependencies": { + "@octokit/types": "^6.0.3", + "is-plain-object": "^5.0.0", + "universal-user-agent": "^6.0.0" } }, - "node_modules/deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "node_modules/@octokit/graphql": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.6.2.tgz", + "integrity": "sha512-WmsIR1OzOr/3IqfG9JIczI8gMJUMzzyx5j0XXQ4YihHtKlQc+u35VpVoOXhlKAlaBntvry1WpAzPl/a+s3n89Q==", "dev": true, - "engines": { - "node": ">=4.0.0" + "dependencies": { + "@octokit/request": "^5.3.0", + "@octokit/types": "^6.0.3", + "universal-user-agent": "^6.0.0" } }, - "node_modules/deep-is": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", - "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", - "dev": true - }, - "node_modules/deprecation": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", - "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", + "node_modules/@octokit/openapi-types": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-7.0.0.tgz", + "integrity": "sha512-gV/8DJhAL/04zjTI95a7FhQwS6jlEE0W/7xeYAzuArD0KVAVWDLP2f3vi98hs3HLTczxXdRK/mF0tRoQPpolEw==", "dev": true }, - "node_modules/diacritics-map": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/diacritics-map/-/diacritics-map-0.1.0.tgz", - "integrity": "sha1-bfwP+dAQAKLt8oZTccrDFulJd68=", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "node_modules/@octokit/plugin-paginate-rest": { + "version": "2.13.3", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.13.3.tgz", + "integrity": "sha512-46lptzM9lTeSmIBt/sVP/FLSTPGx6DCzAdSX3PfeJ3mTf4h9sGC26WpaQzMEq/Z44cOcmx8VsOhO+uEgE3cjYg==", "dev": true, "dependencies": { - "path-type": "^4.0.0" + "@octokit/types": "^6.11.0" }, - "engines": { - "node": ">=8" + "peerDependencies": { + "@octokit/core": ">=2" } }, - "node_modules/dir-glob/node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "node_modules/@octokit/plugin-request-log": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.3.tgz", + "integrity": "sha512-4RFU4li238jMJAzLgAwkBAw+4Loile5haQMQr+uhFq27BmyJXcXSKvoQKqh0agsZEiUlW6iSv3FAgvmGkur7OQ==", "dev": true, - "engines": { - "node": ">=8" + "peerDependencies": { + "@octokit/core": ">=3" } }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "node_modules/@octokit/plugin-rest-endpoint-methods": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.0.1.tgz", + "integrity": "sha512-vvWbPtPqLyIzJ7A4IPdTl+8IeuKAwMJ4LjvmqWOOdfSuqWQYZXq2CEd0hsnkidff2YfKlguzujHs/reBdAx8Sg==", "dev": true, "dependencies": { - "esutils": "^2.0.2" + "@octokit/types": "^6.13.1", + "deprecation": "^2.3.1" }, - "engines": { - "node": ">=6.0.0" + "peerDependencies": { + "@octokit/core": ">=3" } }, - "node_modules/doctrine/node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "node_modules/@octokit/request": { + "version": "5.4.15", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.4.15.tgz", + "integrity": "sha512-6UnZfZzLwNhdLRreOtTkT9n57ZwulCve8q3IT/Z477vThu6snfdkBuhxnChpOKNGxcQ71ow561Qoa6uqLdPtag==", "dev": true, - "engines": { - "node": ">=0.10.0" + "dependencies": { + "@octokit/endpoint": "^6.0.1", + "@octokit/request-error": "^2.0.0", + "@octokit/types": "^6.7.1", + "is-plain-object": "^5.0.0", + "node-fetch": "^2.6.1", + "universal-user-agent": "^6.0.0" } }, - "node_modules/dot-prop": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-3.0.0.tgz", - "integrity": "sha1-G3CK8JSknJoOfbyteQq6U52sEXc=", + "node_modules/@octokit/request-error": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.0.5.tgz", + "integrity": "sha512-T/2wcCFyM7SkXzNoyVNWjyVlUwBvW3igM3Btr/eKYiPmucXTtkxt2RBsf6gn3LTzaLSLTQtNmvg+dGsOxQrjZg==", "dev": true, "dependencies": { - "is-obj": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" + "@octokit/types": "^6.0.3", + "deprecation": "^2.0.0", + "once": "^1.4.0" } }, - "node_modules/duplexer2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", - "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", + "node_modules/@octokit/rest": { + "version": "18.5.3", + "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-18.5.3.tgz", + "integrity": "sha512-KPAsUCr1DOdLVbZJgGNuE/QVLWEaVBpFQwDAz/2Cnya6uW2wJ/P5RVGk0itx7yyN1aGa8uXm2pri4umEqG1JBA==", "dev": true, "dependencies": { - "readable-stream": "^2.0.2" + "@octokit/core": "^3.2.3", + "@octokit/plugin-paginate-rest": "^2.6.2", + "@octokit/plugin-request-log": "^1.0.2", + "@octokit/plugin-rest-endpoint-methods": "5.0.1" } }, - "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "node_modules/@octokit/types": { + "version": "6.14.2", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.14.2.tgz", + "integrity": "sha512-wiQtW9ZSy4OvgQ09iQOdyXYNN60GqjCL/UdMsepDr1Gr0QzpW6irIKbH3REuAHXAhxkEk9/F2a3Gcs1P6kW5jA==", "dev": true, "dependencies": { - "once": "^1.4.0" + "@octokit/openapi-types": "^7.0.0" } }, - "node_modules/enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "node_modules/@semantic-release/commit-analyzer": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/@semantic-release/commit-analyzer/-/commit-analyzer-8.0.1.tgz", + "integrity": "sha512-5bJma/oB7B4MtwUkZC2Bf7O1MHfi4gWe4mA+MIQ3lsEV0b422Bvl1z5HRpplDnMLHH3EXMoRdEng6Ds5wUqA3A==", "dev": true, "dependencies": { - "ansi-colors": "^4.1.1" + "conventional-changelog-angular": "^5.0.0", + "conventional-commits-filter": "^2.0.0", + "conventional-commits-parser": "^3.0.7", + "debug": "^4.0.0", + "import-from": "^3.0.0", + "lodash": "^4.17.4", + "micromatch": "^4.0.2" }, "engines": { - "node": ">=8.6" + "node": ">=10.18" + }, + "peerDependencies": { + "semantic-release": ">=16.0.0 <18.0.0" } }, - "node_modules/enquirer/node_modules/ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", + "node_modules/@semantic-release/error": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@semantic-release/error/-/error-2.2.0.tgz", + "integrity": "sha512-9Tj/qn+y2j+sjCI3Jd+qseGtHjOAeg7dU2/lVcqIQ9TV3QDaDXDYXcoOHU+7o2Hwh8L8ymL4gfuO7KxDs3q2zg==", + "dev": true + }, + "node_modules/@semantic-release/github": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/@semantic-release/github/-/github-7.2.3.tgz", + "integrity": "sha512-lWjIVDLal+EQBzy697ayUNN8MoBpp+jYIyW2luOdqn5XBH4d9bQGfTnjuLyzARZBHejqh932HVjiH/j4+R7VHw==", "dev": true, + "dependencies": { + "@octokit/rest": "^18.0.0", + "@semantic-release/error": "^2.2.0", + "aggregate-error": "^3.0.0", + "bottleneck": "^2.18.1", + "debug": "^4.0.0", + "dir-glob": "^3.0.0", + "fs-extra": "^10.0.0", + "globby": "^11.0.0", + "http-proxy-agent": "^4.0.0", + "https-proxy-agent": "^5.0.0", + "issue-parser": "^6.0.0", + "lodash": "^4.17.4", + "mime": "^2.4.3", + "p-filter": "^2.0.0", + "p-retry": "^4.0.0", + "url-join": "^4.0.0" + }, "engines": { - "node": ">=6" + "node": ">=10.18" + }, + "peerDependencies": { + "semantic-release": ">=16.0.0 <18.0.0" } }, - "node_modules/env-ci": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/env-ci/-/env-ci-5.0.2.tgz", - "integrity": "sha512-Xc41mKvjouTXD3Oy9AqySz1IeyvJvHZ20Twf5ZLYbNpPPIuCnL/qHCmNlD01LoNy0JTunw9HPYVptD19Ac7Mbw==", + "node_modules/@semantic-release/github/node_modules/fs-extra": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz", + "integrity": "sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==", "dev": true, "dependencies": { - "execa": "^4.0.0", - "java-properties": "^1.0.0" + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" }, "engines": { - "node": ">=10.13" + "node": ">=12" } }, - "node_modules/env-ci/node_modules/execa": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", - "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", - "dev": true, + "node_modules/@semantic-release/github/node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@semantic-release/npm": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/@semantic-release/npm/-/npm-7.0.5.tgz", + "integrity": "sha512-D+oEmsx9aHE1q806NFQwSC9KdBO8ri/VO99eEz0wWbX2jyLqVyWr7t0IjKC8aSnkkQswg/4KN/ZjfF6iz1XOpw==", + "dev": true, + "dependencies": { + "@semantic-release/error": "^2.2.0", + "aggregate-error": "^3.0.0", + "execa": "^4.0.0", + "fs-extra": "^9.0.0", + "lodash": "^4.17.15", + "nerf-dart": "^1.0.0", + "normalize-url": "^5.0.0", + "npm": "^6.10.3", + "rc": "^1.2.8", + "read-pkg": "^5.0.0", + "registry-auth-token": "^4.0.0", + "semver": "^7.1.2", + "tempy": "^0.5.0" + }, + "engines": { + "node": ">=10.18" + }, + "peerDependencies": { + "semantic-release": ">=16.0.0 <18.0.0" + } + }, + "node_modules/@semantic-release/npm/node_modules/execa": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-4.0.0.tgz", + "integrity": "sha512-JbDUxwV3BoT5ZVXQrSVbAiaXhXUkIwvbhPIwZ0N13kX+5yCzOhUNdocxB/UQRuYOHRYYwAxKYwJYc0T4D12pDA==", + "dev": true, "dependencies": { "cross-spawn": "^7.0.0", "get-stream": "^5.0.0", @@ -1497,901 +1700,1005 @@ "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, - "node_modules/env-ci/node_modules/get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "node_modules/@semantic-release/npm/node_modules/get-stream": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", + "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", "dev": true, "dependencies": { "pump": "^3.0.0" }, "engines": { "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "node_modules/@semantic-release/npm/node_modules/parse-json": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", + "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", "dev": true, "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true, + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1", + "lines-and-columns": "^1.1.6" + }, "engines": { - "node": ">=6" + "node": ">=8" } }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "node_modules/@semantic-release/npm/node_modules/read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", "dev": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, "engines": { - "node": ">=0.8.0" + "node": ">=8" } }, - "node_modules/eslint": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.27.0.tgz", - "integrity": "sha512-JZuR6La2ZF0UD384lcbnd0Cgg6QJjiCwhMD6eU4h/VGPcVGwawNNzKU41tgokGXnfjOOyI6QIffthhJTPzzuRA==", + "node_modules/@semantic-release/npm/node_modules/semver": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", "dev": true, - "dependencies": { - "@babel/code-frame": "7.12.11", - "@eslint/eslintrc": "^0.4.1", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.0.1", - "doctrine": "^3.0.0", - "enquirer": "^2.3.5", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^2.1.0", - "eslint-visitor-keys": "^2.0.0", - "espree": "^7.3.1", - "esquery": "^1.4.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.0.0", - "globals": "^13.6.0", - "ignore": "^4.0.6", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "js-yaml": "^3.13.1", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.0.4", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "progress": "^2.0.0", - "regexpp": "^3.1.0", - "semver": "^7.2.1", - "strip-ansi": "^6.0.0", - "strip-json-comments": "^3.1.0", - "table": "^6.0.9", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" - }, "bin": { - "eslint": "bin/eslint.js" + "semver": "bin/semver.js" }, "engines": { - "node": "^10.12.0 || >=12.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">=10" } }, - "node_modules/eslint-plugin-mocha": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-7.0.1.tgz", - "integrity": "sha512-zkQRW9UigRaayGm/pK9TD5RjccKXSgQksNtpsXbG9b6L5I+jNx7m98VUbZ4w1H1ArlNA+K7IOH+z8TscN6sOYg==", + "node_modules/@semantic-release/release-notes-generator": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/@semantic-release/release-notes-generator/-/release-notes-generator-9.0.1.tgz", + "integrity": "sha512-bOoTiH6SiiR0x2uywSNR7uZcRDl22IpZhj+Q5Bn0v+98MFtOMhCxFhbrKQjhbYoZw7vps1mvMRmFkp/g6R9cvQ==", "dev": true, "dependencies": { - "eslint-utils": "^2.0.0", - "ramda": "^0.27.0" + "conventional-changelog-angular": "^5.0.0", + "conventional-changelog-writer": "^4.0.0", + "conventional-commits-filter": "^2.0.0", + "conventional-commits-parser": "^3.0.0", + "debug": "^4.0.0", + "get-stream": "^5.0.0", + "import-from": "^3.0.0", + "into-stream": "^5.0.0", + "lodash": "^4.17.4", + "read-pkg-up": "^7.0.0" }, "engines": { - "node": ">=10.0.0" + "node": ">=10.18" }, "peerDependencies": { - "eslint": ">=7.0.0" + "semantic-release": ">=15.8.0 <18.0.0" } }, - "node_modules/eslint-plugin-security": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-1.4.0.tgz", - "integrity": "sha512-xlS7P2PLMXeqfhyf3NpqbvbnW04kN8M9NtmhpR3XGyOvt/vNKS7XPXT5EDbwKW9vCjWH4PpfQvgD/+JgN0VJKA==", + "node_modules/@semantic-release/release-notes-generator/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "dependencies": { - "safe-regex": "^1.1.0" - } - }, - "node_modules/eslint-plugin-sonarjs": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.5.0.tgz", - "integrity": "sha512-XW5MnzlRjhXpIdbULC/qAdJYHWw3rRLws/DyawdlPU/IdVr9AmRK1r2LaCvabwKOAW2XYYSo3kDX58E4MrB7PQ==", - "dev": true, - "engines": { - "node": ">=6" + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" }, - "peerDependencies": { - "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" + "engines": { + "node": ">=8" } }, - "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "node_modules/@semantic-release/release-notes-generator/node_modules/get-stream": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", + "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", "dev": true, "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" + "pump": "^3.0.0" }, "engines": { - "node": ">=8.0.0" + "node": ">=8" } }, - "node_modules/eslint-scope/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "node_modules/@semantic-release/release-notes-generator/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, "engines": { - "node": ">=4.0" + "node": ">=8" } }, - "node_modules/eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "node_modules/@semantic-release/release-notes-generator/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "dependencies": { - "eslint-visitor-keys": "^1.1.0" + "p-try": "^2.0.0" }, "engines": { "node": ">=6" }, "funding": { - "url": "https://github.com/sponsors/mysticatea" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint-visitor-keys": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.2.0.tgz", - "integrity": "sha512-WFb4ihckKil6hu3Dp798xdzSfddwKKU3+nGniKF6HfeW6OLd2OUDEPP7TcHtB5+QXOKg2s6B2DaMPE1Nn/kxKQ==", + "node_modules/@semantic-release/release-notes-generator/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/eslint/node_modules/@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", + "node_modules/@semantic-release/release-notes-generator/node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, - "dependencies": { - "@babel/highlight": "^7.10.4" - } - }, - "node_modules/eslint/node_modules/@babel/helper-validator-identifier": { - "version": "7.14.0", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.0.tgz", - "integrity": "sha512-V3ts7zMSu5lfiwWDVWzRDGIN+lnCEUdaXgtVHJgLb1rGaA6jMrtB9EmE7L18foXJIE8Un/A/h6NJfGQp/e1J4A==", - "dev": true - }, - "node_modules/eslint/node_modules/@babel/highlight": { - "version": "7.14.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.0.tgz", - "integrity": "sha512-YSCOwxvTYEIMSGaBQb5kDDsCopDdiUGsqpatp3fOlI4+2HQSkTmEVWnVuySdAC5EWCqSWWTv0ib63RjR7dTBdg==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.14.0", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" + "engines": { + "node": ">=6" } }, - "node_modules/eslint/node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "node_modules/@semantic-release/release-notes-generator/node_modules/parse-json": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", + "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", "dev": true, "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1", + "lines-and-columns": "^1.1.6" }, "engines": { - "node": ">=4" - } - }, - "node_modules/eslint/node_modules/@babel/highlight/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true, - "engines": { - "node": ">=0.8.0" + "node": ">=8" } }, - "node_modules/eslint/node_modules/ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "node_modules/@semantic-release/release-notes-generator/node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, "engines": { "node": ">=8" } }, - "node_modules/eslint/node_modules/chalk": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", - "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", + "node_modules/@semantic-release/release-notes-generator/node_modules/read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", "dev": true, "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">=8" } }, - "node_modules/eslint/node_modules/chalk/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/@semantic-release/release-notes-generator/node_modules/read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", "dev": true, "dependencies": { - "color-convert": "^2.0.1" + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" }, "engines": { "node": ">=8" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/node_modules/chalk/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/@semantic-release/release-notes-generator/node_modules/read-pkg/node_modules/type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, "engines": { "node": ">=8" } }, - "node_modules/eslint/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/@semantic-release/release-notes-generator/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, "engines": { - "node": ">=7.0.0" + "node": ">=8" } }, - "node_modules/eslint/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/eslint/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "node_modules/@sinonjs/commons": { + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.3.tgz", + "integrity": "sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ==", "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "dependencies": { + "type-detect": "4.0.8" } }, - "node_modules/eslint/node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "node_modules/@sinonjs/fake-timers": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", + "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", "dev": true, - "engines": { - "node": ">=10" + "dependencies": { + "@sinonjs/commons": "^1.7.0" } }, - "node_modules/eslint/node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, + "node_modules/@stoplight/json": { + "version": "3.17.2", + "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.17.2.tgz", + "integrity": "sha512-NwIVzanXRUy291J5BMkncCZRMG1Lx+aq+VidGQgfkJjgo8vh1Y/PSAz7fSU8gVGSZBCcqmOkMI7R4zw7DlfTwA==", + "dependencies": { + "@stoplight/ordered-object-literal": "^1.0.2", + "@stoplight/types": "^12.3.0", + "jsonc-parser": "~2.2.1", + "lodash": "^4.17.21", + "safe-stable-stringify": "^1.1" + }, "engines": { - "node": ">=0.10.0" + "node": ">=8.3.0" } }, - "node_modules/eslint/node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "node_modules/eslint/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, + "node_modules/@stoplight/json-ref-readers": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@stoplight/json-ref-readers/-/json-ref-readers-1.2.2.tgz", + "integrity": "sha512-nty0tHUq2f1IKuFYsLM4CXLZGHdMn+X/IwEUIpeSOXt0QjMUbL0Em57iJUDzz+2MkWG83smIigNZ3fauGjqgdQ==", + "dependencies": { + "node-fetch": "^2.6.0", + "tslib": "^1.14.1" + }, "engines": { - "node": ">=8" + "node": ">=8.3.0" } }, - "node_modules/eslint/node_modules/ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", - "dev": true, - "engines": { - "node": ">= 4" - } + "node_modules/@stoplight/json-ref-readers/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, - "node_modules/eslint/node_modules/semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, + "node_modules/@stoplight/json-ref-resolver": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.3.tgz", + "integrity": "sha512-SgoKXwVnlpIZUyAFX4W79eeuTWvXmNlMfICZixL16GZXnkjcW+uZnfmAU0ZIjcnaTgaI4mjfxn8LAP2KR6Cr0A==", "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" + "@stoplight/json": "^3.17.0", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^12.3.0", + "@types/urijs": "^1.19.16", + "dependency-graph": "~0.11.0", + "fast-memoize": "^2.5.2", + "immer": "^9.0.6", + "lodash.get": "^4.4.2", + "lodash.set": "^4.3.2", + "tslib": "^2.3.1", + "urijs": "^1.19.6" }, "engines": { - "node": ">=10" + "node": ">=8.3.0" } }, - "node_modules/eslint/node_modules/strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, + "node_modules/@stoplight/lifecycle": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/@stoplight/lifecycle/-/lifecycle-2.3.2.tgz", + "integrity": "sha512-v0u8p27FA/eg04b4z6QXw4s0NeeFcRzyvseBW0+k/q4jtpg7EhVCqy42EbbbU43NTNDpIeQ81OcvkFz+6CYshw==", "dependencies": { - "ansi-regex": "^5.0.0" + "wolfy87-eventemitter": "~5.2.8" }, + "engines": { + "node": ">=8.3.0" + } + }, + "node_modules/@stoplight/ordered-object-literal": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@stoplight/ordered-object-literal/-/ordered-object-literal-1.0.2.tgz", + "integrity": "sha512-0ZMS/9sNU3kVo/6RF3eAv7MK9DY8WLjiVJB/tVyfF2lhr2R4kqh534jZ0PlrFB9CRXrdndzn1DbX6ihKZXft2w==", "engines": { "node": ">=8" } }, - "node_modules/eslint/node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, + "node_modules/@stoplight/path": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@stoplight/path/-/path-1.3.2.tgz", + "integrity": "sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ==", "engines": { "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/espree": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", - "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", - "dev": true, + "node_modules/@stoplight/spectral-core": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.11.0.tgz", + "integrity": "sha512-82xWLbQn67cLLKL7lQJsXTFLIHSOlwv4Faq2IxsUFMWqQ84znwd7FxOkfk9K2I0ncR+XuaftWRtN9ySvVSJkAw==", + "dependencies": { + "@stoplight/better-ajv-errors": "1.0.1", + "@stoplight/json": "~3.17.1", + "@stoplight/lifecycle": "2.3.2", + "@stoplight/path": "1.3.2", + "@stoplight/spectral-parsers": "^1.0.0", + "@stoplight/spectral-ref-resolver": "^1.0.0", + "@stoplight/spectral-runtime": "^1.0.0", + "@stoplight/types": "12.3.0", + "ajv": "^8.6.0", + "ajv-errors": "~3.0.0", + "ajv-formats": "~2.1.0", + "blueimp-md5": "2.18.0", + "json-schema": "0.4.0", + "jsonpath-plus": "6.0.1", + "lodash": "~4.17.21", + "lodash.topath": "^4.5.2", + "minimatch": "3.0.4", + "nimma": "0.1.8", + "pony-cause": "^1.0.0", + "simple-eval": "1.0.0", + "tslib": "^2.3.0" + }, + "engines": { + "node": "^12.20 || >= 14.13" + } + }, + "node_modules/@stoplight/spectral-core/node_modules/@stoplight/better-ajv-errors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.1.tgz", + "integrity": "sha512-rgxT+ZMeZbYRiOLNk6Oy6e/Ig1iQKo0IL8v/Y9E/0FewzgtkGs/p5dMeUpIFZXWj3RZaEPmfL9yh0oUEmNXZjg==", "dependencies": { - "acorn": "^7.4.0", - "acorn-jsx": "^5.3.1", - "eslint-visitor-keys": "^1.3.0" + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": "^12.20 || >= 14.13" + }, + "peerDependencies": { + "ajv": ">=8" } }, - "node_modules/espree/node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true, - "bin": { - "acorn": "bin/acorn" + "node_modules/@stoplight/spectral-core/node_modules/ajv": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz", + "integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" }, - "engines": { - "node": ">=0.4.0" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/espree/node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true, - "engines": { - "node": ">=4" + "node_modules/@stoplight/spectral-core/node_modules/ajv-errors": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", + "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", + "peerDependencies": { + "ajv": "^8.0.1" } }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } + "node_modules/@stoplight/spectral-core/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, - "node_modules/esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", - "dev": true, + "node_modules/@stoplight/spectral-formats": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.1.0.tgz", + "integrity": "sha512-ZpEHNkS30qfPbxHJAf3OwZ7g0LkSG2UZXhl3/Jsf6WGivVcuQUY+ZK4c1ZJqBNct1JF1ujP3FgF26xDdTrOtDw==", "dependencies": { - "estraverse": "^5.1.0" + "@stoplight/json": "^3.17.0", + "@stoplight/spectral-core": "^1.8.0", + "@types/json-schema": "^7.0.7", + "tslib": "^2.3.1" }, "engines": { - "node": ">=0.10" + "node": ">=12" } }, - "node_modules/esquery/node_modules/estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true, + "node_modules/@stoplight/spectral-functions": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-functions/-/spectral-functions-1.6.1.tgz", + "integrity": "sha512-f4cFtbI35bQtY0t4fYhKtS+/nMU3UsAeFlqm4tARGGG5WjOv4ieCFNFbgodKNiO3F4O+syMEjVQuXlBNPuY7jw==", + "dependencies": { + "@stoplight/better-ajv-errors": "1.0.1", + "@stoplight/json": "~3.17.1", + "@stoplight/spectral-core": "^1.7.0", + "@stoplight/spectral-formats": "^1.0.0", + "@stoplight/spectral-runtime": "^1.1.0", + "@stoplight/types": "12.3.0", + "ajv": "^8.6.3", + "ajv-draft-04": "~1.0.0", + "ajv-errors": "~3.0.0", + "ajv-formats": "~2.1.0", + "lodash": "~4.17.21", + "tslib": "^2.3.0" + }, "engines": { - "node": ">=4.0" + "node": ">=12" } }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, + "node_modules/@stoplight/spectral-functions/node_modules/@stoplight/better-ajv-errors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.1.tgz", + "integrity": "sha512-rgxT+ZMeZbYRiOLNk6Oy6e/Ig1iQKo0IL8v/Y9E/0FewzgtkGs/p5dMeUpIFZXWj3RZaEPmfL9yh0oUEmNXZjg==", "dependencies": { - "estraverse": "^5.2.0" + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" }, "engines": { - "node": ">=4.0" + "node": "^12.20 || >= 14.13" + }, + "peerDependencies": { + "ajv": ">=8" } }, - "node_modules/esrecurse/node_modules/estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true, - "engines": { - "node": ">=4.0" + "node_modules/@stoplight/spectral-functions/node_modules/ajv": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz", + "integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/execa": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.0.0.tgz", - "integrity": "sha512-ov6w/2LCiuyO4RLYGdpFGjkcs0wMTgGE8PrkTHikeUy5iJekXyPIKUjifk5CsE0pt7sMCrMZ3YNqoCj6idQOnQ==", - "dev": true, + "node_modules/@stoplight/spectral-functions/node_modules/ajv-draft-04": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", + "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", + "peerDependencies": { + "ajv": "^8.5.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/@stoplight/spectral-functions/node_modules/ajv-errors": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", + "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", + "peerDependencies": { + "ajv": "^8.0.1" + } + }, + "node_modules/@stoplight/spectral-functions/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/@stoplight/spectral-parsers": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-parsers/-/spectral-parsers-1.0.1.tgz", + "integrity": "sha512-JGKlrTxhjUzIGo2FOCf8Qp0WKTWXedoRNPovqYPE8pAp08epqU8DzHwl/i46BGH5yfTmouKMZgBN/PV2+Cr5jw==", "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" + "@stoplight/json": "3.17.0", + "@stoplight/types": "12.3.0", + "@stoplight/yaml": "4.2.2", + "tslib": "^2.3.1" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" + "node": ">=12" } }, - "node_modules/execa/node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true, + "node_modules/@stoplight/spectral-parsers/node_modules/@stoplight/json": { + "version": "3.17.0", + "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.17.0.tgz", + "integrity": "sha512-WW0z2bb0D4t8FTl+zNTCu46J8lEOsrUhBPgwEYQ3Ri2Y0MiRE4U1/9ZV8Ki+pIJznZgY9i42bbFwOBxyZn5/6w==", + "dependencies": { + "@stoplight/ordered-object-literal": "^1.0.2", + "@stoplight/types": "^12.3.0", + "jsonc-parser": "~2.2.1", + "lodash": "^4.17.21", + "safe-stable-stringify": "^1.1" + }, "engines": { - "node": ">=10.17.0" + "node": ">=8.3.0" } }, - "node_modules/execa/node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, + "node_modules/@stoplight/spectral-ref-resolver": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-ref-resolver/-/spectral-ref-resolver-1.0.1.tgz", + "integrity": "sha512-0tY7nTOccvTsa3c4QbSWfJ8wGfPO1RXvmKnmBjuyLfoTMNuhkHPII9gKhCjygsshzsBLxs2IyRHZYhWYVnEbCA==", "dependencies": { - "mimic-fn": "^2.1.0" + "@stoplight/json-ref-readers": "1.2.2", + "@stoplight/json-ref-resolver": "3.1.3", + "@stoplight/spectral-runtime": "^1.0.0", + "dependency-graph": "0.11.0", + "tslib": "^2.3.1" }, "engines": { - "node": ">=6" + "node": ">=12" + } + }, + "node_modules/@stoplight/spectral-rulesets": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-rulesets/-/spectral-rulesets-1.6.0.tgz", + "integrity": "sha512-iRfcG5Ucp2OPGszaergiN+shVkD9XO1VKRmFqXlYbLxI8oi0jBAFXQr+tKJGt6ErXBQQoaIx2Liiirgq7kR3Nw==", + "dependencies": { + "@asyncapi/specs": "^2.13.0", + "@stoplight/better-ajv-errors": "1.0.1", + "@stoplight/json": "^3.17.0", + "@stoplight/spectral-core": "^1.8.1", + "@stoplight/spectral-formats": "^1.1.0", + "@stoplight/spectral-functions": "^1.5.1", + "@stoplight/spectral-runtime": "^1.1.1", + "@stoplight/types": "^12.3.0", + "@types/json-schema": "^7.0.7", + "ajv": "^8.8.2", + "ajv-formats": "~2.1.0", + "json-schema-traverse": "^1.0.0", + "lodash": "~4.17.21", + "tslib": "^2.3.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">=12" } }, - "node_modules/expand-range": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", - "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", - "dev": true, + "node_modules/@stoplight/spectral-rulesets/node_modules/@stoplight/better-ajv-errors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.1.tgz", + "integrity": "sha512-rgxT+ZMeZbYRiOLNk6Oy6e/Ig1iQKo0IL8v/Y9E/0FewzgtkGs/p5dMeUpIFZXWj3RZaEPmfL9yh0oUEmNXZjg==", "dependencies": { - "fill-range": "^2.1.0" + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" }, "engines": { - "node": ">=0.10.0" + "node": "^12.20 || >= 14.13" + }, + "peerDependencies": { + "ajv": ">=8" } }, - "node_modules/expand-range/node_modules/fill-range": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", - "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", - "dev": true, + "node_modules/@stoplight/spectral-rulesets/node_modules/ajv": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz", + "integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==", "dependencies": { - "is-number": "^2.1.0", - "isobject": "^2.0.0", - "randomatic": "^3.0.0", - "repeat-element": "^1.1.2", - "repeat-string": "^1.5.2" + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" }, - "engines": { - "node": ">=0.10.0" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/expand-range/node_modules/is-number": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", - "dev": true, + "node_modules/@stoplight/spectral-rulesets/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/@stoplight/spectral-runtime": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-runtime/-/spectral-runtime-1.1.2.tgz", + "integrity": "sha512-fr5zRceXI+hrl82yAVoME+4GvJie8v3wmOe9tU+ZLRRNonizthy8qDi0Z/z4olE+vGreSDcuDOZ7JjRxFW5kTw==", "dependencies": { - "kind-of": "^3.0.2" + "@stoplight/json": "^3.17.0", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^12.3.0", + "abort-controller": "^3.0.0", + "lodash": "^4.17.21", + "node-fetch": "^2.6.7", + "tslib": "^2.3.1" }, "engines": { - "node": ">=0.10.0" + "node": ">=12" } }, - "node_modules/expand-range/node_modules/isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "dev": true, + "node_modules/@stoplight/types": { + "version": "12.3.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-12.3.0.tgz", + "integrity": "sha512-hgzUR1z5BlYvIzUeFK5pjs5JXSvEutA9Pww31+dVicBlunsG1iXopDx/cvfBY7rHOrgtZDuvyeK4seqkwAZ6Cg==", "dependencies": { - "isarray": "1.0.0" + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, + "node_modules/@stoplight/yaml": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@stoplight/yaml/-/yaml-4.2.2.tgz", + "integrity": "sha512-N086FU8pmSpjc5TvMBjmlTniZVh3OXzmEh6SYljSLiuv6aMxgjyjf13YrAlUqgu0b4b6pQ5zmkjrfo9i0SiLsw==", "dependencies": { - "is-extendable": "^0.1.0" + "@stoplight/ordered-object-literal": "^1.0.1", + "@stoplight/types": "^12.0.0", + "@stoplight/yaml-ast-parser": "0.0.48", + "tslib": "^2.2.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=10.8" } }, - "node_modules/fast-deep-equal": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz", - "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==", - "dev": true + "node_modules/@stoplight/yaml-ast-parser": { + "version": "0.0.48", + "resolved": "https://registry.npmjs.org/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.48.tgz", + "integrity": "sha512-sV+51I7WYnLJnKPn2EMWgS4EUfoP4iWEbrWwbXsj0MZCB/xOK8j6+C9fntIdOM50kpx45ZLC3s6kwKivWuqvyg==" }, - "node_modules/fast-glob": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.5.tgz", - "integrity": "sha512-2DtFcgT68wiTTiwZ2hNdJfcHNke9XOfnwmBRWXhmeKM8rF0TGwmC/Qto3S7RoZKp5cilZbxzO5iTNTQsJ+EeDg==", + "node_modules/@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", "dev": true, - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.0", - "merge2": "^1.3.0", - "micromatch": "^4.0.2", - "picomatch": "^2.2.1" - }, "engines": { - "node": ">=8" + "node": ">= 6" } }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "node_modules/@tsconfig/node10": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.8.tgz", + "integrity": "sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==", "dev": true }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "node_modules/@tsconfig/node12": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.9.tgz", + "integrity": "sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==", "dev": true }, - "node_modules/fastq": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.11.0.tgz", - "integrity": "sha512-7Eczs8gIPDrVzT+EksYBcupqMyxSHXXrHOLRRxU2/DicV8789MRBRR8+Hc2uWzUupOs4YS4JzBmBxjjCVBxD/g==", - "dev": true, - "dependencies": { - "reusify": "^1.0.4" - } + "node_modules/@tsconfig/node14": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.1.tgz", + "integrity": "sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==", + "dev": true }, - "node_modules/figures": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", - "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", - "dev": true, - "dependencies": { - "escape-string-regexp": "^1.0.5" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "node_modules/@tsconfig/node16": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.2.tgz", + "integrity": "sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==", + "dev": true }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "node_modules/@types/babel__core": { + "version": "7.1.18", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.18.tgz", + "integrity": "sha512-S7unDjm/C7z2A2R9NzfKCK1I+BAALDtxEmsJBwlB3EzNfb929ykjL++1CK9LO++EIp2fQrC8O+BwjKvz6UeDyQ==", "dev": true, "dependencies": { - "flat-cache": "^3.0.4" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" } }, - "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "node_modules/@types/babel__generator": { + "version": "7.6.4", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", + "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", "dev": true, "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" + "@babel/types": "^7.0.0" } }, - "node_modules/find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "node_modules/@types/babel__template": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", + "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", "dev": true, "dependencies": { - "locate-path": "^2.0.0" - }, - "engines": { - "node": ">=4" + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" } }, - "node_modules/find-versions": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-4.0.0.tgz", - "integrity": "sha512-wgpWy002tA+wgmO27buH/9KzyEOQnKsG/R0yrcjPT9BOFm0zRBVQbZ95nRGXWMywS8YR5knRbpohio0bcJABxQ==", + "node_modules/@types/babel__traverse": { + "version": "7.14.2", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.14.2.tgz", + "integrity": "sha512-K2waXdXBi2302XUdcHcR1jCeU0LL4TD9HRs/gk0N2Xvrht+G/BfJa4QObBQZfhMdxiCpV3COl5Nfq4uKTeTnJA==", "dev": true, "dependencies": { - "semver-regex": "^3.1.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "@babel/types": "^7.3.0" } }, - "node_modules/flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "node_modules/@types/graceful-fs": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz", + "integrity": "sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==", "dev": true, "dependencies": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" + "@types/node": "*" } }, - "node_modules/flatted": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.1.1.tgz", - "integrity": "sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==", + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", + "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", "dev": true }, - "node_modules/for-in": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", "dev": true, - "engines": { - "node": ">=0.10.0" + "dependencies": { + "@types/istanbul-lib-coverage": "*" } }, - "node_modules/from2": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", - "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", + "node_modules/@types/istanbul-reports": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", "dev": true, "dependencies": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.0" + "@types/istanbul-lib-report": "*" } }, - "node_modules/fs-extra": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.0.tgz", - "integrity": "sha512-pmEYSk3vYsG/bF651KPUXZ+hvjpgWYw/Gc7W9NFUe3ZVLczKKWIij3IKpOrQcdw4TILtibFslZ0UmR8Vvzig4g==", + "node_modules/@types/jest": { + "version": "27.4.1", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.4.1.tgz", + "integrity": "sha512-23iPJADSmicDVrWk+HT58LMJtzLAnB2AgIzplQuq/bSrGaxCrlvRFjGbXmamnnk/mAmCdLStiGqggu28ocUyiw==", "dev": true, "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^1.0.0" - }, - "engines": { - "node": ">=10" + "jest-matcher-utils": "^27.0.0", + "pretty-format": "^27.0.0" } }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "node_modules/@types/js-yaml": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz", + "integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==", "dev": true }, - "node_modules/functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "node_modules/@types/json-schema": { + "version": "7.0.9", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz", + "integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==" + }, + "node_modules/@types/node": { + "version": "17.0.21", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.21.tgz", + "integrity": "sha512-DBZCJbhII3r90XbQxI8Y9IjjiiOGlZ0Hr32omXIZvwwZ7p4DMMXGrKXVyPfuoBOri9XNtL0UK69jYIBIsRX3QQ==", "dev": true }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "node_modules/@types/normalize-package-data": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", + "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", + "dev": true + }, + "node_modules/@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", + "dev": true + }, + "node_modules/@types/prettier": { + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.4.4.tgz", + "integrity": "sha512-ReVR2rLTV1kvtlWFyuot+d1pkpG2Fw/XKE3PDAdj57rbM97ttSp9JZ2UsP+2EHTylra9cUf6JA7tGwW1INzUrA==", + "dev": true + }, + "node_modules/@types/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", + "dev": true + }, + "node_modules/@types/stack-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", + "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", + "dev": true + }, + "node_modules/@types/urijs": { + "version": "1.19.19", + "resolved": "https://registry.npmjs.org/@types/urijs/-/urijs-1.19.19.tgz", + "integrity": "sha512-FDJNkyhmKLw7uEvTxx5tSXfPeQpO0iy73Ry+PmYZJvQy0QIWX8a7kJ4kLWRf+EbTPJEPDSgPXHaM7pzr5lmvCg==" + }, + "node_modules/@types/yargs": { + "version": "16.0.4", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", + "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", + "dev": true + }, + "node_modules/abab": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz", + "integrity": "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==", + "dev": true + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "dependencies": { + "event-target-shim": "^5.0.0" + }, "engines": { - "node": "6.* || 8.* || >= 10.*" + "node": ">=6.5" } }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "node_modules/acorn": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz", + "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==", "dev": true, - "engines": { - "node": ">=10" + "bin": { + "acorn": "bin/acorn" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">=0.4.0" } }, - "node_modules/git-log-parser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/git-log-parser/-/git-log-parser-1.2.0.tgz", - "integrity": "sha1-LmpMGxP8AAKCB7p5WnrDFme5/Uo=", + "node_modules/acorn-globals": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", + "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", "dev": true, "dependencies": { - "argv-formatter": "~1.0.0", - "spawn-error-forwarder": "~1.0.0", - "split2": "~1.0.0", - "stream-combiner2": "~1.1.1", - "through2": "~2.0.0", - "traverse": "~0.6.6" + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1" } }, - "node_modules/git-log-parser/node_modules/split2": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-1.0.0.tgz", - "integrity": "sha1-UuLiIdiMdfmnP5BVbiY/+WdysxQ=", + "node_modules/acorn-globals/node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", "dev": true, - "dependencies": { - "through2": "~2.0.0" + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" } }, - "node_modules/git-log-parser/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "node_modules/acorn-jsx": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.1.tgz", + "integrity": "sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==", "dev": true, - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/glob": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "node_modules/acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=0.4.0" } }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "node_modules/agent-base": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.0.tgz", + "integrity": "sha512-j1Q7cSCqN+AwrmDd+pzgqc0/NpC655x2bUf5ZjRIO77DcNBFmh+OgRNzF6OKdCC9RSCb19fGd99+bhXFdkRNqw==", "dev": true, "dependencies": { - "is-glob": "^4.0.1" + "debug": "4" }, "engines": { - "node": ">= 6" + "node": ">= 6.0.0" } }, - "node_modules/globals": { - "version": "13.9.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.9.0.tgz", - "integrity": "sha512-74/FduwI/JaIrr1H8e71UbDE+5x7pIPs1C2rrwC52SszOo043CsWOZEMW7o2Y58xwm9b+0RBKDxY5n2sUpEFxA==", + "node_modules/aggregate-error": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.0.1.tgz", + "integrity": "sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA==", "dev": true, "dependencies": { - "type-fest": "^0.20.2" + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" }, "engines": { "node": ">=8" + } + }, + "node_modules/aggregate-error/node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ajv": { + "version": "6.12.3", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.3.tgz", + "integrity": "sha512-4K0cK3L1hsqk9xIb2z9vs/XU+PGJZ9PNpJRDS9YLzmNdX6jmVPfamLvTJr0aDAusnHyCHO6MjzlkAsgtqp9teA==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/globals/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-formats/node_modules/ajv": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz", + "integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, "engines": { - "node": ">=10" + "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/globby": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.3.tgz", - "integrity": "sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg==", + "node_modules/ansi-escapes/node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.1.1", - "ignore": "^5.1.4", - "merge2": "^1.3.0", - "slash": "^3.0.0" - }, "engines": { "node": ">=10" }, @@ -2399,1053 +2706,5518 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/graceful-fs": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", - "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==", - "dev": true - }, - "node_modules/gray-matter": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-2.1.1.tgz", - "integrity": "sha1-MELZrewqHe1qdwep7SOA+KF6Qw4=", + "node_modules/ansi-red": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", + "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=", "dev": true, "dependencies": { - "ansi-red": "^0.1.1", - "coffee-script": "^1.12.4", - "extend-shallow": "^2.0.1", - "js-yaml": "^3.8.1", - "toml": "^2.3.2" + "ansi-wrap": "0.1.0" }, "engines": { "node": ">=0.10.0" } }, - "node_modules/gulp-header": { - "version": "1.8.12", - "resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.12.tgz", - "integrity": "sha512-lh9HLdb53sC7XIZOYzTXM4lFuXElv3EVkSDhsd7DoJBj7hm+Ni7D3qYbb+Rr8DuM8nRanBvkVO9d7askreXGnQ==", - "deprecated": "Removed event-stream from gulp-header", + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, - "dependencies": { - "concat-with-sourcemaps": "*", - "lodash.template": "^4.4.0", - "through2": "^2.0.0" + "engines": { + "node": ">=8" } }, - "node_modules/gulp-header/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" } }, - "node_modules/handlebars": { - "version": "4.7.7", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", - "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", + "node_modules/ansi-wrap": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", + "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ansicolors": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.3.2.tgz", + "integrity": "sha1-ZlWX3oap/+Oqm/vmyuXG6kJrSXk=", + "dev": true + }, + "node_modules/anymatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", + "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", "dev": true, "dependencies": { - "minimist": "^1.2.5", - "neo-async": "^2.6.0", - "source-map": "^0.6.1", - "wordwrap": "^1.0.0" - }, - "bin": { - "handlebars": "bin/handlebars" + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" }, "engines": { - "node": ">=0.4.7" - }, - "optionalDependencies": { - "uglify-js": "^3.1.4" + "node": ">= 8" } }, - "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/argv-formatter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/argv-formatter/-/argv-formatter-1.0.0.tgz", + "integrity": "sha1-oMoMvCmltz6Dbuvhy/bF4OTrgvk=", + "dev": true + }, + "node_modules/array-find-index": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", + "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", "dev": true, "engines": { - "node": ">=4" + "node": ">=0.10.0" } }, - "node_modules/hook-std": { + "node_modules/array-ify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", + "integrity": "sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=", + "dev": true + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/astral-regex": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/hook-std/-/hook-std-2.0.0.tgz", - "integrity": "sha512-zZ6T5WcuBMIUVh49iPQS9t977t7C0l7OtHrpeMb5uk48JdflRX0NSFvCekfYNmGQETnLq9W/isMyHl69kxGi8g==", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", "dev": true, "engines": { "node": ">=8" } }, - "node_modules/hosted-git-info": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "node_modules/astring": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/astring/-/astring-1.8.1.tgz", + "integrity": "sha512-Aj3mbwVzj7Vve4I/v2JYOPFkCGM2YS7OqQTNSxmUR+LECRpokuPgAYghePgr6SALDo5bD5DlfbSaYjOzGJZOLQ==", + "bin": { + "astring": "bin/astring" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", "dev": true }, - "node_modules/http-proxy-agent": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", - "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", "dev": true, - "dependencies": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - }, "engines": { - "node": ">= 6" + "node": ">= 4.0.0" } }, - "node_modules/https-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", - "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", + "node_modules/autolinker": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.28.1.tgz", + "integrity": "sha1-BlK0kYgYefB3XazgzcoyM5QqTkc=", "dev": true, "dependencies": { - "agent-base": "6", - "debug": "4" + "gulp-header": "^1.7.1" + } + }, + "node_modules/babel-jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz", + "integrity": "sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==", + "dev": true, + "dependencies": { + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" }, "engines": { - "node": ">= 6" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" } }, - "node_modules/human-signals": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", - "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "node_modules/babel-jest/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, "engines": { - "node": ">=8.12.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/ignore": { - "version": "5.1.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", - "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", + "node_modules/babel-jest/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, "engines": { - "node": ">= 4" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/import-fresh": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", - "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", + "node_modules/babel-jest/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=6" + "node": ">=7.0.0" } }, - "node_modules/import-fresh/node_modules/resolve-from": { + "node_modules/babel-jest/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/babel-jest/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/import-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/import-from/-/import-from-3.0.0.tgz", - "integrity": "sha512-CiuXOFFSzkU5x/CR0+z7T91Iht4CXgfCxVOFRhh2Zyhg5wOpWvvDLQUsWl+gcN+QscYBjez8hDCt85O7RLDttQ==", + "node_modules/babel-jest/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "dependencies": { - "resolve-from": "^5.0.0" + "has-flag": "^4.0.0" }, "engines": { "node": ">=8" } }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, "engines": { - "node": ">=0.8.19" + "node": ">=8" } }, - "node_modules/indent-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", - "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "node_modules/babel-plugin-jest-hoist": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz", + "integrity": "sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==", "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.0.0", + "@types/babel__traverse": "^7.0.6" + }, "engines": { - "node": ">=4" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz", + "integrity": "sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==", "dev": true, "dependencies": { - "once": "^1.3.0", - "wrappy": "1" + "babel-plugin-jest-hoist": "^27.5.1", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "node_modules/balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + }, + "node_modules/before-after-hook": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.1.tgz", + "integrity": "sha512-/6FKxSTWoJdbsLDF8tdIjaRiFXiE6UHsEHE3OPI/cwPURCVi1ukP0gmLn7XWEiFk5TcwQjjY5PWsU+j+tgXgmw==", "dev": true }, - "node_modules/ini": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.7.tgz", - "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", + "node_modules/blueimp-md5": { + "version": "2.18.0", + "resolved": "https://registry.npmjs.org/blueimp-md5/-/blueimp-md5-2.18.0.tgz", + "integrity": "sha512-vE52okJvzsVWhcgUHOv+69OG3Mdg151xyn41aVQN/5W5S+S43qZhxECtYLAEHMSFWX6Mv5IZrzj3T5+JqXfj5Q==" + }, + "node_modules/bottleneck": { + "version": "2.19.5", + "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz", + "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==", "dev": true }, - "node_modules/into-stream": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-5.1.1.tgz", - "integrity": "sha512-krrAJ7McQxGGmvaYbB7Q1mcA+cRwg9Ij2RfWIeVesNBgVDZmzY/Fa4IpZUT3bmdRzMzdf/mzltCG2Dq99IZGBA==", + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dev": true, "dependencies": { - "from2": "^2.3.0", - "p-is-promise": "^3.0.0" + "fill-range": "^7.0.1" }, "engines": { "node": ">=8" } }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true - }, - "node_modules/is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "node_modules/browser-process-hrtime": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", + "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", "dev": true }, - "node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "node_modules/browserslist": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.20.0.tgz", + "integrity": "sha512-bnpOoa+DownbciXj0jVGENf8VYQnE2LNWomhYuCsMmmx9Jd9lwq0WXODuwpSsp8AVdKM2/HorrzxAfbKvWTByQ==", "dev": true, + "dependencies": { + "caniuse-lite": "^1.0.30001313", + "electron-to-chromium": "^1.4.76", + "escalade": "^3.1.1", + "node-releases": "^2.0.2", + "picocolors": "^1.0.0" + }, + "bin": { + "browserslist": "cli.js" + }, "engines": { - "node": ">=0.10.0" + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" } }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", "dev": true, + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, "engines": { - "node": ">=0.10.0" + "node": ">= 6" } }, - "node_modules/is-glob": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", - "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", "dev": true, "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" + "node-int64": "^0.4.0" } }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "node_modules/buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "dev": true + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true, "engines": { - "node": ">=0.12.0" + "node": ">=6" } }, - "node_modules/is-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", - "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", + "node_modules/camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/is-plain-obj": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", - "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", + "node_modules/camelcase-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", + "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", "dev": true, + "dependencies": { + "camelcase": "^4.1.0", + "map-obj": "^2.0.0", + "quick-lru": "^1.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/is-plain-object": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", - "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", + "node_modules/caniuse-lite": { + "version": "1.0.30001314", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001314.tgz", + "integrity": "sha512-0zaSO+TnCHtHJIbpLroX7nsD+vYuOVjl3uzFbJO1wMVbuveJA0RK2WcQA9ZUIOiO0/ArMiMgHJLxfEZhQiC0kw==", "dev": true, - "engines": { - "node": ">=0.10.0" + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" } }, - "node_modules/is-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", - "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", + "node_modules/cardinal": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/cardinal/-/cardinal-2.1.1.tgz", + "integrity": "sha1-fMEFXYItISlU0HsIXeolHMe8VQU=", "dev": true, - "engines": { - "node": ">=8" + "dependencies": { + "ansicolors": "~0.3.2", + "redeyed": "~2.1.0" + }, + "bin": { + "cdl": "bin/cdl.js" } }, - "node_modules/is-text-path": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-1.0.1.tgz", - "integrity": "sha1-Thqg+1G/vLPpJogAE5cgLBd1tm4=", + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, "dependencies": { - "text-extensions": "^1.0.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.3.0.tgz", + "integrity": "sha512-riT/3vI5YpVH6/qomlDnJow6TBee2PBKSEpx3O32EGPYbWGIRsIlGRms3Sm74wYE1JMo8RnO04Hb12+v1J5ICw==", "dev": true }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "node_modules/cjs-module-lexer": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", + "integrity": "sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==", "dev": true }, - "node_modules/issue-parser": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/issue-parser/-/issue-parser-6.0.0.tgz", - "integrity": "sha512-zKa/Dxq2lGsBIXQ7CUZWTHfvxPC2ej0KfO7fIPqLlHB9J2hJ7rGhZ5rilhuufylr4RXYPzJUeFjKxz305OsNlA==", + "node_modules/clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/cli-table": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/cli-table/-/cli-table-0.3.6.tgz", + "integrity": "sha512-ZkNZbnZjKERTY5NwC2SeMeLeifSPq/pubeRoTpdr3WchLlnZg6hEgvHkK5zL7KNFdd9PmHN8lxrENUwI3cE8vQ==", "dev": true, "dependencies": { - "lodash.capitalize": "^4.2.1", - "lodash.escaperegexp": "^4.1.2", - "lodash.isplainobject": "^4.0.6", - "lodash.isstring": "^4.0.1", - "lodash.uniqby": "^4.7.0" + "colors": "1.0.3" }, "engines": { - "node": ">=10.13" + "node": ">= 0.2.0" } }, - "node_modules/java-properties": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/java-properties/-/java-properties-1.0.2.tgz", - "integrity": "sha512-qjdpeo2yKlYTH7nFdK0vbZWuTCesk4o63v5iVOlhMQPfuIZQfW/HI35SjfhA+4qpg36rnFSvUK5b1m+ckIblQQ==", + "node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dev": true, - "engines": { - "node": ">= 0.6.0" + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" } }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", + "dev": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } }, - "node_modules/js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "node_modules/coffee-script": { + "version": "1.12.7", + "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", + "integrity": "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==", + "deprecated": "CoffeeScript on NPM has moved to \"coffeescript\" (no hyphen)", "dev": true, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, "bin": { - "js-yaml": "bin/js-yaml.js" + "cake": "bin/cake", + "coffee": "bin/coffee" + }, + "engines": { + "node": ">=0.8.0" } }, - "node_modules/json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "node_modules/collect-v8-coverage": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", + "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", "dev": true }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", "dev": true }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", - "dev": true - }, - "node_modules/json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", - "dev": true + "node_modules/colors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz", + "integrity": "sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=", + "dev": true, + "engines": { + "node": ">=0.1.90" + } }, - "node_modules/jsonfile": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.0.1.tgz", - "integrity": "sha512-jR2b5v7d2vIOust+w3wtFKZIfpC2pnRmFAhAC/BuweZFQR8qZzxH1OyrQ10HmdVYiXWkYUqPVsz91cG7EL2FBg==", + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dev": true, "dependencies": { - "universalify": "^1.0.0" + "delayed-stream": "~1.0.0" }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" + "engines": { + "node": ">= 0.8" } }, - "node_modules/jsonparse": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", - "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=", + "node_modules/compare-func": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.2.tgz", + "integrity": "sha1-md0LpFfh+bxyKxLAjsM+6rMfpkg=", + "dev": true, + "dependencies": { + "array-ify": "^1.0.0", + "dot-prop": "^3.0.0" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "node_modules/concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", "dev": true, "engines": [ - "node >= 0.2.0" - ] + "node >= 0.8" + ], + "dependencies": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } }, - "node_modules/JSONStream": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", - "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", + "node_modules/concat-with-sourcemaps": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", + "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", "dev": true, "dependencies": { - "jsonparse": "^1.2.0", - "through": ">=2.2.7 <3" + "source-map": "^0.6.1" + } + }, + "node_modules/conventional-changelog-angular": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.6.tgz", + "integrity": "sha512-QDEmLa+7qdhVIv8sFZfVxU1VSyVvnXPsxq8Vam49mKUcO1Z8VTLEJk9uI21uiJUsnmm0I4Hrsdc9TgkOQo9WSA==", + "dev": true, + "dependencies": { + "compare-func": "^1.3.1", + "q": "^1.5.1" }, - "bin": { - "JSONStream": "bin.js" + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/conventional-changelog-conventionalcommits": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.2.3.tgz", + "integrity": "sha512-atGa+R4vvEhb8N/8v3IoW59gCBJeeFiX6uIbPu876ENAmkMwsenyn0R21kdDHJFLQdy6zW4J6b4xN8KI3b9oww==", + "dev": true, + "dependencies": { + "compare-func": "^1.3.1", + "lodash": "^4.17.15", + "q": "^1.5.1" }, "engines": { - "node": "*" + "node": ">=6.9.0" } }, - "node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "node_modules/conventional-changelog-writer": { + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-4.0.11.tgz", + "integrity": "sha512-g81GQOR392I+57Cw3IyP1f+f42ME6aEkbR+L7v1FBBWolB0xkjKTeCWVguzRrp6UiT1O6gBpJbEy2eq7AnV1rw==", "dev": true, "dependencies": { - "is-buffer": "^1.1.5" + "compare-func": "^1.3.1", + "conventional-commits-filter": "^2.0.2", + "dateformat": "^3.0.0", + "handlebars": "^4.4.0", + "json-stringify-safe": "^5.0.1", + "lodash": "^4.17.15", + "meow": "^5.0.0", + "semver": "^6.0.0", + "split": "^1.0.0", + "through2": "^3.0.0" + }, + "bin": { + "conventional-changelog-writer": "cli.js" }, "engines": { - "node": ">=0.10.0" + "node": ">=6.9.0" } }, - "node_modules/lazy-cache": { + "node_modules/conventional-changelog-writer/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/conventional-commits-filter": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", - "integrity": "sha1-uRkKT5EzVGlIQIWfio9whNiCImQ=", + "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-2.0.2.tgz", + "integrity": "sha512-WpGKsMeXfs21m1zIw4s9H5sys2+9JccTzpN6toXtxhpw2VNF2JUXwIakthKBy+LN4DvJm+TzWhxOMWOs1OFCFQ==", "dev": true, "dependencies": { - "set-getter": "^0.1.0" + "lodash.ismatch": "^4.4.0", + "modify-values": "^1.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=6.9.0" } }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "node_modules/conventional-commits-parser": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.0.8.tgz", + "integrity": "sha512-YcBSGkZbYp7d+Cr3NWUeXbPDFUN6g3SaSIzOybi8bjHL5IJ5225OSCxJJ4LgziyEJ7AaJtE9L2/EU6H7Nt/DDQ==", "dev": true, "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" + "is-text-path": "^1.0.1", + "JSONStream": "^1.0.4", + "lodash": "^4.17.15", + "meow": "^5.0.0", + "split2": "^2.0.0", + "through2": "^3.0.0", + "trim-off-newlines": "^1.0.0" + }, + "bin": { + "conventional-commits-parser": "cli.js" }, "engines": { - "node": ">= 0.8.0" + "node": ">=6.9.0" } }, - "node_modules/lines-and-columns": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", - "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", + "node_modules/convert-source-map": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", + "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.1" + } + }, + "node_modules/core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true }, - "node_modules/list-item": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/list-item/-/list-item-1.1.1.tgz", - "integrity": "sha1-DGXQDih8tmPMs8s4Sad+iewmilY=", + "node_modules/cosmiconfig": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.0.tgz", + "integrity": "sha512-pondGvTuVYDk++upghXJabWzL6Kxu6f26ljFw64Swq9v6sQPUL3EUlVDV56diOjpCayKihL6hVe8exIACU4XcA==", "dev": true, "dependencies": { - "expand-range": "^1.8.1", - "extend-shallow": "^2.0.1", - "is-number": "^2.1.0", - "repeat-string": "^1.5.2" + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=10" } }, - "node_modules/list-item/node_modules/is-number": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", + "node_modules/cosmiconfig/node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, "dependencies": { - "kind-of": "^3.0.2" + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" }, "engines": { - "node": ">=0.10.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/load-json-file": { + "node_modules/cosmiconfig/node_modules/path-type": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", - "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, + "node_modules/cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", "dev": true, "dependencies": { - "graceful-fs": "^4.1.2", - "parse-json": "^4.0.0", - "pify": "^3.0.0", - "strip-bom": "^3.0.0" + "cross-spawn": "^7.0.1" + }, + "bin": { + "cross-env": "src/bin/cross-env.js", + "cross-env-shell": "src/bin/cross-env-shell.js" }, "engines": { - "node": ">=4" + "node": ">=10.14", + "npm": ">=6", + "yarn": ">=1" } }, - "node_modules/locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, "dependencies": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, "engines": { - "node": ">=4" + "node": ">= 8" } }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "node_modules/lodash._reinterpolate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", - "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", - "dev": true - }, - "node_modules/lodash.capitalize": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/lodash.capitalize/-/lodash.capitalize-4.2.1.tgz", - "integrity": "sha1-+CbJtOKoUR2E46yinbBeGk87cqk=", - "dev": true - }, - "node_modules/lodash.clonedeep": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", - "dev": true - }, - "node_modules/lodash.escaperegexp": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.escaperegexp/-/lodash.escaperegexp-4.1.2.tgz", - "integrity": "sha1-ZHYsSGGAglGKw99Mz11YhtriA0c=", - "dev": true - }, - "node_modules/lodash.ismatch": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz", - "integrity": "sha1-dWy1FQyjum8RCFp4hJZF8Yj4Xzc=", - "dev": true - }, - "node_modules/lodash.isplainobject": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=", - "dev": true - }, - "node_modules/lodash.isstring": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", - "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=", - "dev": true - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "node_modules/lodash.template": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", - "integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==", + "node_modules/cross-spawn/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, "dependencies": { - "lodash._reinterpolate": "^3.0.0", - "lodash.templatesettings": "^4.0.0" + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" } }, - "node_modules/lodash.templatesettings": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz", - "integrity": "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==", + "node_modules/crypto-random-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", + "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", "dev": true, - "dependencies": { - "lodash._reinterpolate": "^3.0.0" + "engines": { + "node": ">=8" } }, - "node_modules/lodash.toarray": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.toarray/-/lodash.toarray-4.4.0.tgz", - "integrity": "sha1-JMS/zWsvuji/0FlNsRedjptlZWE=", + "node_modules/cssom": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", + "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", "dev": true }, - "node_modules/lodash.truncate": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", - "integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=", - "dev": true + "node_modules/cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "dev": true, + "dependencies": { + "cssom": "~0.3.6" + }, + "engines": { + "node": ">=8" + } }, - "node_modules/lodash.uniqby": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz", - "integrity": "sha1-2ZwHpmnp5tJOE2Lf4mbGdhavEwI=", + "node_modules/cssstyle/node_modules/cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", "dev": true }, - "node_modules/loud-rejection": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", - "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", + "node_modules/currently-unhandled": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", + "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", "dev": true, "dependencies": { - "currently-unhandled": "^0.4.1", - "signal-exit": "^3.0.0" + "array-find-index": "^1.0.1" }, "engines": { "node": ">=0.10.0" } }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "node_modules/data-urls": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", + "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", "dev": true, "dependencies": { - "yallist": "^4.0.0" + "abab": "^2.0.3", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0" }, "engines": { "node": ">=10" } }, - "node_modules/map-obj": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", - "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", + "node_modules/data-urls/node_modules/tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", "dev": true, + "dependencies": { + "punycode": "^2.1.1" + }, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/markdown-link": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/markdown-link/-/markdown-link-0.1.1.tgz", - "integrity": "sha1-MsXGUZmmRXMWMi0eQinRNAfIx88=", + "node_modules/data-urls/node_modules/webidl-conversions": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", + "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=10.4" } }, - "node_modules/markdown-toc": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/markdown-toc/-/markdown-toc-1.2.0.tgz", - "integrity": "sha512-eOsq7EGd3asV0oBfmyqngeEIhrbkc7XVP63OwcJBIhH2EpG2PzFcbZdhy1jutXSlRBBVMNXHvMtSr5LAxSUvUg==", + "node_modules/data-urls/node_modules/whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", "dev": true, "dependencies": { - "concat-stream": "^1.5.2", - "diacritics-map": "^0.1.0", - "gray-matter": "^2.1.0", - "lazy-cache": "^2.0.2", - "list-item": "^1.1.1", - "markdown-link": "^0.1.1", - "minimist": "^1.2.0", - "mixin-deep": "^1.1.3", - "object.pick": "^1.2.0", - "remarkable": "^1.7.1", - "repeat-string": "^1.6.1", - "strip-color": "^0.1.0" - }, - "bin": { - "markdown-toc": "cli.js" + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=10" } }, - "node_modules/marked": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/marked/-/marked-0.7.0.tgz", - "integrity": "sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==", + "node_modules/dateformat": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", + "integrity": "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==", "dev": true, - "peer": true, - "bin": { - "marked": "bin/marked" - }, "engines": { - "node": ">=0.10.0" + "node": "*" } }, - "node_modules/marked-terminal": { + "node_modules/debug": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/marked-terminal/-/marked-terminal-4.1.1.tgz", - "integrity": "sha512-t7Mdf6T3PvOEyN01c3tYxDzhyKZ8xnkp8Rs6Fohno63L/0pFTJ5Qtwto2AQVuDtbQiWzD+4E5AAu1Z2iLc8miQ==", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "deprecated": "Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)", "dev": true, "dependencies": { - "ansi-escapes": "^4.3.1", - "cardinal": "^2.1.1", - "chalk": "^4.1.0", - "cli-table": "^0.3.1", - "node-emoji": "^1.10.0", - "supports-hyperlinks": "^2.1.0" - }, - "peerDependencies": { - "marked": "^1.0.0 || ^2.0.0" + "ms": "^2.1.1" } }, - "node_modules/marked-terminal/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">=0.10.0" } }, - "node_modules/marked-terminal/node_modules/chalk": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", - "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", + "node_modules/decamelize-keys": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", + "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=", "dev": true, "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "decamelize": "^1.1.0", + "map-obj": "^1.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">=0.10.0" } }, - "node_modules/marked-terminal/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/decamelize-keys/node_modules/map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, "engines": { - "node": ">=7.0.0" + "node": ">=0.10.0" } }, - "node_modules/marked-terminal/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "node_modules/decimal.js": { + "version": "10.3.1", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.3.1.tgz", + "integrity": "sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ==", "dev": true }, - "node_modules/marked-terminal/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } + "node_modules/dedent": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", + "integrity": "sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=", + "dev": true }, - "node_modules/marked-terminal/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, "engines": { - "node": ">=8" + "node": ">=4.0.0" } }, - "node_modules/math-random": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.4.tgz", - "integrity": "sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A==", + "node_modules/deep-is": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", + "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", "dev": true }, - "node_modules/meow": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-5.0.0.tgz", - "integrity": "sha512-CbTqYU17ABaLefO8vCU153ZZlprKYWDljcndKKDCFcYQITzWCXZAVk4QMFZPgvzrnUQ3uItnIE/LoUOwrT15Ig==", + "node_modules/deepmerge": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", + "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", "dev": true, - "dependencies": { - "camelcase-keys": "^4.0.0", - "decamelize-keys": "^1.0.0", - "loud-rejection": "^1.0.0", - "minimist-options": "^3.0.1", - "normalize-package-data": "^2.3.4", - "read-pkg-up": "^3.0.0", - "redent": "^2.0.0", - "trim-newlines": "^2.0.0", - "yargs-parser": "^10.0.0" - }, "engines": { - "node": ">=6" + "node": ">=0.10.0" } }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", "dev": true, "engines": { - "node": ">= 8" + "node": ">=0.4.0" } }, - "node_modules/micromatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", - "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", + "node_modules/dependency-graph": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", + "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/deprecation": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", + "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", + "dev": true + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", "dev": true, - "dependencies": { - "braces": "^3.0.1", - "picomatch": "^2.0.5" - }, "engines": { "node": ">=8" } }, - "node_modules/mime": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.5.2.tgz", - "integrity": "sha512-tqkh47FzKeCPD2PUiPB6pkbMzsCasjxAfC62/Wap5qrUWcb+sFasXUC5I3gYM5iBM8v/Qpn4UK0x+j0iHyFPDg==", + "node_modules/diacritics-map": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/diacritics-map/-/diacritics-map-0.1.0.tgz", + "integrity": "sha1-bfwP+dAQAKLt8oZTccrDFulJd68=", "dev": true, - "bin": { - "mime": "cli.js" - }, "engines": { - "node": ">=4.0.0" + "node": ">=0.8.0" } }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", "dev": true, "engines": { - "node": ">=6" + "node": ">=0.3.1" } }, - "node_modules/minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "node_modules/diff-sequences": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", + "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, "engines": { - "node": "*" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - }, - "node_modules/minimist-options": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-3.0.2.tgz", - "integrity": "sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ==", + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", "dev": true, "dependencies": { - "arrify": "^1.0.1", - "is-plain-obj": "^1.1.0" + "path-type": "^4.0.0" }, "engines": { - "node": ">= 4" + "node": ">=8" } }, - "node_modules/mixin-deep": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", - "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "node_modules/dir-glob/node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true, - "dependencies": { - "for-in": "^1.0.2", - "is-extendable": "^1.0.1" - }, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/mixin-deep/node_modules/is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "dev": true, "dependencies": { - "is-plain-object": "^2.0.4" + "esutils": "^2.0.2" }, "engines": { - "node": ">=0.10.0" + "node": ">=6.0.0" } }, - "node_modules/mixin-deep/node_modules/is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "node_modules/domexception": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", + "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", "dev": true, "dependencies": { - "isobject": "^3.0.1" + "webidl-conversions": "^5.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/mixin-deep/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "node_modules/domexception/node_modules/webidl-conversions": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", + "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/modify-values": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/modify-values/-/modify-values-1.0.1.tgz", - "integrity": "sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==", + "node_modules/dot-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-3.0.0.tgz", + "integrity": "sha1-G3CK8JSknJoOfbyteQq6U52sEXc=", "dev": true, + "dependencies": { + "is-obj": "^1.0.0" + }, "engines": { "node": ">=0.10.0" } }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true + "node_modules/duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", + "dev": true, + "dependencies": { + "readable-stream": "^2.0.2" + } }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "node_modules/electron-to-chromium": { + "version": "1.4.77", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.77.tgz", + "integrity": "sha512-fiDxw8mO9Ph1Z0bjX2sFTPpi0J0QkOiwOJF+5Q0J0baNc/F9lLePAvDPlnoxvbUYYMizqrKPeotRRkJ9LtxAew==", "dev": true }, - "node_modules/neo-async": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz", - "integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==", - "dev": true + "node_modules/emittery": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", + "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } }, - "node_modules/nerf-dart": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/nerf-dart/-/nerf-dart-1.0.0.tgz", - "integrity": "sha1-5tq3/r9a2Bbqgc9cYpxaDr3nLBo=", + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, - "node_modules/node-emoji": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.10.0.tgz", - "integrity": "sha512-Yt3384If5H6BYGVHiHwTL+99OzJKHhgp82S8/dktEK73T26BazdgZ4JZh92xSVtGNJvz9UbXdNAc5hcrXV42vw==", + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", "dev": true, "dependencies": { - "lodash.toarray": "^4.4.0" + "once": "^1.4.0" } }, - "node_modules/node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "node_modules/enquirer": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", + "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", "dev": true, "dependencies": { - "whatwg-url": "^5.0.0" + "ansi-colors": "^4.1.1" }, "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } + "node": ">=8.6" } }, - "node_modules/normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "node_modules/enquirer/node_modules/ansi-colors": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", + "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", "dev": true, - "dependencies": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" + "engines": { + "node": ">=6" } }, - "node_modules/normalize-url": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-5.3.1.tgz", - "integrity": "sha512-K1c7+vaAP+Yh5bOGmA10PGPpp+6h7WZrl7GwqKhUflBc9flU9pzG27DDeB9+iuhZkE3BJZOcgN1P/2sS5pqrWw==", + "node_modules/env-ci": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/env-ci/-/env-ci-5.0.2.tgz", + "integrity": "sha512-Xc41mKvjouTXD3Oy9AqySz1IeyvJvHZ20Twf5ZLYbNpPPIuCnL/qHCmNlD01LoNy0JTunw9HPYVptD19Ac7Mbw==", "dev": true, - "engines": { - "node": ">=10" + "dependencies": { + "execa": "^4.0.0", + "java-properties": "^1.0.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">=10.13" } }, - "node_modules/npm": { - "version": "6.14.6", - "resolved": "https://registry.npmjs.org/npm/-/npm-6.14.6.tgz", - "integrity": "sha512-axnz6iHFK6WPE0js/+mRp+4IOwpHn5tJEw5KB6FiCU764zmffrhsYHbSHi2kKqNkRBt53XasXjngZfBD3FQzrQ==", - "bundleDependencies": [ - "abbrev", - "ansicolors", - "ansistyles", + "node_modules/env-ci/node_modules/execa": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", + "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "get-stream": "^5.0.0", + "human-signals": "^1.1.1", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.0", + "onetime": "^5.1.0", + "signal-exit": "^3.0.2", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/env-ci/node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/escodegen": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", + "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", + "dev": true, + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/escodegen/node_modules/levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "dev": true, + "dependencies": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/escodegen/node_modules/optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dev": true, + "dependencies": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/escodegen/node_modules/prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/escodegen/node_modules/type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "dev": true, + "dependencies": { + "prelude-ls": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/eslint": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.27.0.tgz", + "integrity": "sha512-JZuR6La2ZF0UD384lcbnd0Cgg6QJjiCwhMD6eU4h/VGPcVGwawNNzKU41tgokGXnfjOOyI6QIffthhJTPzzuRA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "7.12.11", + "@eslint/eslintrc": "^0.4.1", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.0.1", + "doctrine": "^3.0.0", + "enquirer": "^2.3.5", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^5.1.1", + "eslint-utils": "^2.1.0", + "eslint-visitor-keys": "^2.0.0", + "espree": "^7.3.1", + "esquery": "^1.4.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^5.0.0", + "globals": "^13.6.0", + "ignore": "^4.0.6", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-yaml": "^3.13.1", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.0.4", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "progress": "^2.0.0", + "regexpp": "^3.1.0", + "semver": "^7.2.1", + "strip-ansi": "^6.0.0", + "strip-json-comments": "^3.1.0", + "table": "^6.0.9", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-plugin-mocha": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-7.0.1.tgz", + "integrity": "sha512-zkQRW9UigRaayGm/pK9TD5RjccKXSgQksNtpsXbG9b6L5I+jNx7m98VUbZ4w1H1ArlNA+K7IOH+z8TscN6sOYg==", + "dev": true, + "dependencies": { + "eslint-utils": "^2.0.0", + "ramda": "^0.27.0" + }, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-plugin-security": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-1.4.0.tgz", + "integrity": "sha512-xlS7P2PLMXeqfhyf3NpqbvbnW04kN8M9NtmhpR3XGyOvt/vNKS7XPXT5EDbwKW9vCjWH4PpfQvgD/+JgN0VJKA==", + "dev": true, + "dependencies": { + "safe-regex": "^1.1.0" + } + }, + "node_modules/eslint-plugin-sonarjs": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.5.0.tgz", + "integrity": "sha512-XW5MnzlRjhXpIdbULC/qAdJYHWw3rRLws/DyawdlPU/IdVr9AmRK1r2LaCvabwKOAW2XYYSo3kDX58E4MrB7PQ==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-scope/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/eslint-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", + "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^1.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.2.0.tgz", + "integrity": "sha512-WFb4ihckKil6hu3Dp798xdzSfddwKKU3+nGniKF6HfeW6OLd2OUDEPP7TcHtB5+QXOKg2s6B2DaMPE1Nn/kxKQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/@babel/code-frame": { + "version": "7.12.11", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", + "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.10.4" + } + }, + "node_modules/eslint/node_modules/chalk": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", + "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/eslint/node_modules/chalk/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/eslint/node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/eslint/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/eslint/node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/eslint/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/ignore": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/eslint/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/eslint/node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/espree": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", + "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", + "dev": true, + "dependencies": { + "acorn": "^7.4.0", + "acorn-jsx": "^5.3.1", + "eslint-visitor-keys": "^1.3.0" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/espree/node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", + "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/execa": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.0.0.tgz", + "integrity": "sha512-ov6w/2LCiuyO4RLYGdpFGjkcs0wMTgGE8PrkTHikeUy5iJekXyPIKUjifk5CsE0pt7sMCrMZ3YNqoCj6idQOnQ==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/execa/node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/execa/node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expand-range": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", + "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", + "dev": true, + "dependencies": { + "fill-range": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-range/node_modules/fill-range": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", + "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", + "dev": true, + "dependencies": { + "is-number": "^2.1.0", + "isobject": "^2.0.0", + "randomatic": "^3.0.0", + "repeat-element": "^1.1.2", + "repeat-string": "^1.5.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-range/node_modules/is-number": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", + "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-range/node_modules/isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "dependencies": { + "isarray": "1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expect": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", + "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz", + "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==" + }, + "node_modules/fast-glob": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.5.tgz", + "integrity": "sha512-2DtFcgT68wiTTiwZ2hNdJfcHNke9XOfnwmBRWXhmeKM8rF0TGwmC/Qto3S7RoZKp5cilZbxzO5iTNTQsJ+EeDg==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.0", + "merge2": "^1.3.0", + "micromatch": "^4.0.2", + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "dev": true + }, + "node_modules/fast-memoize": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz", + "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==" + }, + "node_modules/fastq": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.11.0.tgz", + "integrity": "sha512-7Eczs8gIPDrVzT+EksYBcupqMyxSHXXrHOLRRxU2/DicV8789MRBRR8+Hc2uWzUupOs4YS4JzBmBxjjCVBxD/g==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fb-watchman": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz", + "integrity": "sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/figures": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", + "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^1.0.5" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "dependencies": { + "locate-path": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/find-versions": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-4.0.0.tgz", + "integrity": "sha512-wgpWy002tA+wgmO27buH/9KzyEOQnKsG/R0yrcjPT9BOFm0zRBVQbZ95nRGXWMywS8YR5knRbpohio0bcJABxQ==", + "dev": true, + "dependencies": { + "semver-regex": "^3.1.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.1.1.tgz", + "integrity": "sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==", + "dev": true + }, + "node_modules/for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/from2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", + "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", + "dev": true, + "dependencies": { + "inherits": "^2.0.1", + "readable-stream": "^2.0.0" + } + }, + "node_modules/fs-extra": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.0.tgz", + "integrity": "sha512-pmEYSk3vYsG/bF651KPUXZ+hvjpgWYw/Gc7W9NFUe3ZVLczKKWIij3IKpOrQcdw4TILtibFslZ0UmR8Vvzig4g==", + "dev": true, + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^1.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "node_modules/functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "dev": true + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/git-log-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/git-log-parser/-/git-log-parser-1.2.0.tgz", + "integrity": "sha1-LmpMGxP8AAKCB7p5WnrDFme5/Uo=", + "dev": true, + "dependencies": { + "argv-formatter": "~1.0.0", + "spawn-error-forwarder": "~1.0.0", + "split2": "~1.0.0", + "stream-combiner2": "~1.1.1", + "through2": "~2.0.0", + "traverse": "~0.6.6" + } + }, + "node_modules/git-log-parser/node_modules/split2": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-1.0.0.tgz", + "integrity": "sha1-UuLiIdiMdfmnP5BVbiY/+WdysxQ=", + "dev": true, + "dependencies": { + "through2": "~2.0.0" + } + }, + "node_modules/git-log-parser/node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/globals": { + "version": "13.9.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.9.0.tgz", + "integrity": "sha512-74/FduwI/JaIrr1H8e71UbDE+5x7pIPs1C2rrwC52SszOo043CsWOZEMW7o2Y58xwm9b+0RBKDxY5n2sUpEFxA==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globals/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.3.tgz", + "integrity": "sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.1.1", + "ignore": "^5.1.4", + "merge2": "^1.3.0", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.9", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz", + "integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==", + "dev": true + }, + "node_modules/gray-matter": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-2.1.1.tgz", + "integrity": "sha1-MELZrewqHe1qdwep7SOA+KF6Qw4=", + "dev": true, + "dependencies": { + "ansi-red": "^0.1.1", + "coffee-script": "^1.12.4", + "extend-shallow": "^2.0.1", + "js-yaml": "^3.8.1", + "toml": "^2.3.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-header": { + "version": "1.8.12", + "resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.12.tgz", + "integrity": "sha512-lh9HLdb53sC7XIZOYzTXM4lFuXElv3EVkSDhsd7DoJBj7hm+Ni7D3qYbb+Rr8DuM8nRanBvkVO9d7askreXGnQ==", + "deprecated": "Removed event-stream from gulp-header", + "dev": true, + "dependencies": { + "concat-with-sourcemaps": "*", + "lodash.template": "^4.4.0", + "through2": "^2.0.0" + } + }, + "node_modules/gulp-header/node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/handlebars": { + "version": "4.7.7", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", + "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.5", + "neo-async": "^2.6.0", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" + }, + "bin": { + "handlebars": "bin/handlebars" + }, + "engines": { + "node": ">=0.4.7" + }, + "optionalDependencies": { + "uglify-js": "^3.1.4" + } + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/hook-std": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hook-std/-/hook-std-2.0.0.tgz", + "integrity": "sha512-zZ6T5WcuBMIUVh49iPQS9t977t7C0l7OtHrpeMb5uk48JdflRX0NSFvCekfYNmGQETnLq9W/isMyHl69kxGi8g==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, + "node_modules/html-encoding-sniffer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", + "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", + "dev": true, + "dependencies": { + "whatwg-encoding": "^1.0.5" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "dev": true, + "dependencies": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", + "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", + "dev": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/human-signals": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", + "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "dev": true, + "engines": { + "node": ">=8.12.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ignore": { + "version": "5.1.8", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", + "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/immer": { + "version": "9.0.12", + "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.12.tgz", + "integrity": "sha512-lk7UNmSbAukB5B6dh9fnh5D0bJTOFKxVg2cyJWTYrWRfhLrLMBquONcUs3aFq507hNoIZEDDh8lb8UtOizSMhA==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/import-fresh": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", + "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/import-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/import-from/-/import-from-3.0.0.tgz", + "integrity": "sha512-CiuXOFFSzkU5x/CR0+z7T91Iht4CXgfCxVOFRhh2Zyhg5wOpWvvDLQUsWl+gcN+QscYBjez8hDCt85O7RLDttQ==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/ini": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.7.tgz", + "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", + "dev": true + }, + "node_modules/into-stream": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-5.1.1.tgz", + "integrity": "sha512-krrAJ7McQxGGmvaYbB7Q1mcA+cRwg9Ij2RfWIeVesNBgVDZmzY/Fa4IpZUT3bmdRzMzdf/mzltCG2Dq99IZGBA==", + "dev": true, + "dependencies": { + "from2": "^2.3.0", + "p-is-promise": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "dev": true + }, + "node_modules/is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "node_modules/is-core-module": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz", + "integrity": "sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-glob": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", + "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-plain-object": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", + "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", + "dev": true + }, + "node_modules/is-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", + "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-text-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-1.0.1.tgz", + "integrity": "sha1-Thqg+1G/vLPpJogAE5cgLBd1tm4=", + "dev": true, + "dependencies": { + "text-extensions": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "node_modules/issue-parser": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/issue-parser/-/issue-parser-6.0.0.tgz", + "integrity": "sha512-zKa/Dxq2lGsBIXQ7CUZWTHfvxPC2ej0KfO7fIPqLlHB9J2hJ7rGhZ5rilhuufylr4RXYPzJUeFjKxz305OsNlA==", + "dev": true, + "dependencies": { + "lodash.capitalize": "^4.2.1", + "lodash.escaperegexp": "^4.1.2", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.uniqby": "^4.7.0" + }, + "engines": { + "node": ">=10.13" + } + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", + "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.1.0.tgz", + "integrity": "sha512-czwUz525rkOFDJxfKK6mYfIs9zBKILyrZQxjz3ABhjQXhbhFsSbo1HW/BFcsDnfJYJWA6thRR5/TUY2qs5W99Q==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.4.tgz", + "integrity": "sha512-r1/DshN4KSE7xWEknZLLLLDn5CJybV3nw01VTkp6D5jzLuELlcbudfj/eSQFvrKsJuTVCGnePO7ho82Nw9zzfw==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/java-properties": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/java-properties/-/java-properties-1.0.2.tgz", + "integrity": "sha512-qjdpeo2yKlYTH7nFdK0vbZWuTCesk4o63v5iVOlhMQPfuIZQfW/HI35SjfhA+4qpg36rnFSvUK5b1m+ckIblQQ==", + "dev": true, + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", + "integrity": "sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ==", + "dev": true, + "dependencies": { + "@jest/core": "^27.5.1", + "import-local": "^3.0.2", + "jest-cli": "^27.5.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz", + "integrity": "sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "execa": "^5.0.0", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-circus": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-27.5.1.tgz", + "integrity": "sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==", + "dev": true, + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^0.7.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-circus/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-circus/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-circus/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-circus/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-27.5.1.tgz", + "integrity": "sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==", + "dev": true, + "dependencies": { + "@jest/core": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "import-local": "^3.0.2", + "jest-config": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "prompts": "^2.0.1", + "yargs": "^16.2.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-cli/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-cli/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-cli/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-cli/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-cli/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-config": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-27.5.1.tgz", + "integrity": "sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.8.0", + "@jest/test-sequencer": "^27.5.1", + "@jest/types": "^27.5.1", + "babel-jest": "^27.5.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.9", + "jest-circus": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-jasmine2": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-config/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-config/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-config/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-config/node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-config/node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-config/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-diff": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", + "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-diff/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-diff/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-diff/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-diff/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-docblock": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.5.1.tgz", + "integrity": "sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==", + "dev": true, + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-each": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-27.5.1.tgz", + "integrity": "sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-each/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-each/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-each/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-each/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-environment-jsdom": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz", + "integrity": "sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==", + "dev": true, + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1", + "jsdom": "^16.6.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz", + "integrity": "sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==", + "dev": true, + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", + "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", + "dev": true, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.5.1.tgz", + "integrity": "sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^27.5.1", + "jest-serializer": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "micromatch": "^4.0.4", + "walker": "^1.0.7" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-jasmine2": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz", + "integrity": "sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-jasmine2/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-jasmine2/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-jasmine2/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-jasmine2/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-leak-detector": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz", + "integrity": "sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==", + "dev": true, + "dependencies": { + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", + "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-matcher-utils/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-matcher-utils/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", + "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-message-util/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-message-util/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-message-util/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-mock": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", + "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz", + "integrity": "sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz", + "integrity": "sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==", + "dev": true, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz", + "integrity": "sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "resolve": "^1.20.0", + "resolve.exports": "^1.1.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz", + "integrity": "sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-snapshot": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-resolve/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-resolve/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-resolve/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-resolve/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-resolve/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-resolve/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runner": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-27.5.1.tgz", + "integrity": "sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==", + "dev": true, + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-leak-detector": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "source-map-support": "^0.5.6", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-runner/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-runner/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-runner/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-runner/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-runner/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runner/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.5.1.tgz", + "integrity": "sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==", + "dev": true, + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/globals": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "execa": "^5.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-runtime/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-runtime/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-runtime/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-serializer": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz", + "integrity": "sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==", + "dev": true, + "dependencies": { + "@types/node": "*", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", + "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.7.2", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/traverse": "^7.7.2", + "@babel/types": "^7.0.0", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.1.5", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "natural-compare": "^1.4.0", + "pretty-format": "^27.5.1", + "semver": "^7.3.2" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-snapshot/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", + "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-util/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-util/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-util/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-util/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-validate": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-27.5.1.tgz", + "integrity": "sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "leven": "^3.1.0", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-validate/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-validate/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-validate/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-validate/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-validate/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watcher": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.5.1.tgz", + "integrity": "sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "jest-util": "^27.5.1", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-watcher/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-watcher/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-watcher/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-watcher/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-watcher/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watcher/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/jest-worker/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsdom": { + "version": "16.7.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", + "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", + "dev": true, + "dependencies": { + "abab": "^2.0.5", + "acorn": "^8.2.4", + "acorn-globals": "^6.0.0", + "cssom": "^0.4.4", + "cssstyle": "^2.3.0", + "data-urls": "^2.0.0", + "decimal.js": "^10.2.1", + "domexception": "^2.0.1", + "escodegen": "^2.0.0", + "form-data": "^3.0.0", + "html-encoding-sniffer": "^2.0.1", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.0", + "parse5": "6.0.1", + "saxes": "^5.0.1", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.0.0", + "w3c-hr-time": "^1.0.2", + "w3c-xmlserializer": "^2.0.0", + "webidl-conversions": "^6.1.0", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.5.0", + "ws": "^7.4.6", + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsdom/node_modules/tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "dev": true, + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jsdom/node_modules/webidl-conversions": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", + "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", + "dev": true, + "engines": { + "node": ">=10.4" + } + }, + "node_modules/jsdom/node_modules/whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "dev": true, + "dependencies": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsep": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.3.0.tgz", + "integrity": "sha512-gUqWoMxGo5xME0fLpbX36kYkCtxqKvyZYxntXTCpaVg45oW1nppWB9QcOiubAi0c/oRkDuv3/wEi2WbIh9uRqQ==", + "engines": { + "node": ">= 10.16.0" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json-schema": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", + "dev": true + }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", + "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.5" + }, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonc-parser": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.2.1.tgz", + "integrity": "sha512-o6/yDBYccGvTz1+QFevz6l6OBZ2+fMVu2JZ9CIhzsYRX4mjaK5IyX9eldUdCmga16zlgQxyrj5pt9kzuj2C02w==" + }, + "node_modules/jsonfile": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.0.1.tgz", + "integrity": "sha512-jR2b5v7d2vIOust+w3wtFKZIfpC2pnRmFAhAC/BuweZFQR8qZzxH1OyrQ10HmdVYiXWkYUqPVsz91cG7EL2FBg==", + "dev": true, + "dependencies": { + "universalify": "^1.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsonparse": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", + "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=", + "dev": true, + "engines": [ + "node >= 0.2.0" + ] + }, + "node_modules/jsonpath-plus": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-6.0.1.tgz", + "integrity": "sha512-EvGovdvau6FyLexFH2OeXfIITlgIbgZoAZe3usiySeaIDm5QS+A10DKNpaPBBqqRSZr2HN6HVNXxtwUAr2apEw==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/jsonpointer": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.0.tgz", + "integrity": "sha512-PNYZIdMjVIvVgDSYKTT63Y+KZ6IZvGRNNWcxwD+GNnUz1MKPfv30J8ueCjdwcN0nDx2SlshgyB7Oy0epAzVRRg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/JSONStream": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", + "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", + "dev": true, + "dependencies": { + "jsonparse": "^1.2.0", + "through": ">=2.2.7 <3" + }, + "bin": { + "JSONStream": "bin.js" + }, + "engines": { + "node": "*" + } + }, + "node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/lazy-cache": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", + "integrity": "sha1-uRkKT5EzVGlIQIWfio9whNiCImQ=", + "dev": true, + "dependencies": { + "set-getter": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lines-and-columns": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", + "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", + "dev": true + }, + "node_modules/list-item": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/list-item/-/list-item-1.1.1.tgz", + "integrity": "sha1-DGXQDih8tmPMs8s4Sad+iewmilY=", + "dev": true, + "dependencies": { + "expand-range": "^1.8.1", + "extend-shallow": "^2.0.1", + "is-number": "^2.1.0", + "repeat-string": "^1.5.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/list-item/node_modules/is-number": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", + "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "dev": true, + "dependencies": { + "graceful-fs": "^4.1.2", + "parse-json": "^4.0.0", + "pify": "^3.0.0", + "strip-bom": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "dependencies": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash._reinterpolate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", + "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", + "dev": true + }, + "node_modules/lodash.capitalize": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/lodash.capitalize/-/lodash.capitalize-4.2.1.tgz", + "integrity": "sha1-+CbJtOKoUR2E46yinbBeGk87cqk=", + "dev": true + }, + "node_modules/lodash.clonedeep": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", + "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", + "dev": true + }, + "node_modules/lodash.escaperegexp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.escaperegexp/-/lodash.escaperegexp-4.1.2.tgz", + "integrity": "sha1-ZHYsSGGAglGKw99Mz11YhtriA0c=", + "dev": true + }, + "node_modules/lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=" + }, + "node_modules/lodash.ismatch": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz", + "integrity": "sha1-dWy1FQyjum8RCFp4hJZF8Yj4Xzc=", + "dev": true + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=", + "dev": true + }, + "node_modules/lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=", + "dev": true + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", + "dev": true + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/lodash.set": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", + "integrity": "sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM=" + }, + "node_modules/lodash.template": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", + "integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==", + "dev": true, + "dependencies": { + "lodash._reinterpolate": "^3.0.0", + "lodash.templatesettings": "^4.0.0" + } + }, + "node_modules/lodash.templatesettings": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz", + "integrity": "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==", + "dev": true, + "dependencies": { + "lodash._reinterpolate": "^3.0.0" + } + }, + "node_modules/lodash.toarray": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.toarray/-/lodash.toarray-4.4.0.tgz", + "integrity": "sha1-JMS/zWsvuji/0FlNsRedjptlZWE=", + "dev": true + }, + "node_modules/lodash.topath": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/lodash.topath/-/lodash.topath-4.5.2.tgz", + "integrity": "sha1-NhY1Hzu6YZlKCTGYlmC9AyVP0Ak=" + }, + "node_modules/lodash.truncate": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", + "integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=", + "dev": true + }, + "node_modules/lodash.uniqby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz", + "integrity": "sha1-2ZwHpmnp5tJOE2Lf4mbGdhavEwI=", + "dev": true + }, + "node_modules/loud-rejection": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", + "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", + "dev": true, + "dependencies": { + "currently-unhandled": "^0.4.1", + "signal-exit": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/map-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", + "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/markdown-link": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/markdown-link/-/markdown-link-0.1.1.tgz", + "integrity": "sha1-MsXGUZmmRXMWMi0eQinRNAfIx88=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/markdown-toc": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/markdown-toc/-/markdown-toc-1.2.0.tgz", + "integrity": "sha512-eOsq7EGd3asV0oBfmyqngeEIhrbkc7XVP63OwcJBIhH2EpG2PzFcbZdhy1jutXSlRBBVMNXHvMtSr5LAxSUvUg==", + "dev": true, + "dependencies": { + "concat-stream": "^1.5.2", + "diacritics-map": "^0.1.0", + "gray-matter": "^2.1.0", + "lazy-cache": "^2.0.2", + "list-item": "^1.1.1", + "markdown-link": "^0.1.1", + "minimist": "^1.2.0", + "mixin-deep": "^1.1.3", + "object.pick": "^1.2.0", + "remarkable": "^1.7.1", + "repeat-string": "^1.6.1", + "strip-color": "^0.1.0" + }, + "bin": { + "markdown-toc": "cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/marked": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-0.7.0.tgz", + "integrity": "sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==", + "dev": true, + "peer": true, + "bin": { + "marked": "bin/marked" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/marked-terminal": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/marked-terminal/-/marked-terminal-4.1.1.tgz", + "integrity": "sha512-t7Mdf6T3PvOEyN01c3tYxDzhyKZ8xnkp8Rs6Fohno63L/0pFTJ5Qtwto2AQVuDtbQiWzD+4E5AAu1Z2iLc8miQ==", + "dev": true, + "dependencies": { + "ansi-escapes": "^4.3.1", + "cardinal": "^2.1.1", + "chalk": "^4.1.0", + "cli-table": "^0.3.1", + "node-emoji": "^1.10.0", + "supports-hyperlinks": "^2.1.0" + }, + "peerDependencies": { + "marked": "^1.0.0 || ^2.0.0" + } + }, + "node_modules/marked-terminal/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/marked-terminal/node_modules/chalk": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", + "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/marked-terminal/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/marked-terminal/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/marked-terminal/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/marked-terminal/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/math-random": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.4.tgz", + "integrity": "sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A==", + "dev": true + }, + "node_modules/meow": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-5.0.0.tgz", + "integrity": "sha512-CbTqYU17ABaLefO8vCU153ZZlprKYWDljcndKKDCFcYQITzWCXZAVk4QMFZPgvzrnUQ3uItnIE/LoUOwrT15Ig==", + "dev": true, + "dependencies": { + "camelcase-keys": "^4.0.0", + "decamelize-keys": "^1.0.0", + "loud-rejection": "^1.0.0", + "minimist-options": "^3.0.1", + "normalize-package-data": "^2.3.4", + "read-pkg-up": "^3.0.0", + "redent": "^2.0.0", + "trim-newlines": "^2.0.0", + "yargs-parser": "^10.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", + "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", + "dev": true, + "dependencies": { + "braces": "^3.0.1", + "picomatch": "^2.2.3" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.5.2.tgz", + "integrity": "sha512-tqkh47FzKeCPD2PUiPB6pkbMzsCasjxAfC62/Wap5qrUWcb+sFasXUC5I3gYM5iBM8v/Qpn4UK0x+j0iHyFPDg==", + "dev": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/mime-db": { + "version": "1.51.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz", + "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.34", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz", + "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==", + "dev": true, + "dependencies": { + "mime-db": "1.51.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, + "node_modules/minimist-options": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-3.0.2.tgz", + "integrity": "sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ==", + "dev": true, + "dependencies": { + "arrify": "^1.0.1", + "is-plain-obj": "^1.1.0" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/mixin-deep": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "dev": true, + "dependencies": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/mixin-deep/node_modules/is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/mixin-deep/node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/mixin-deep/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/modify-values": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/modify-values/-/modify-values-1.0.1.tgz", + "integrity": "sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "dev": true + }, + "node_modules/neo-async": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz", + "integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==", + "dev": true + }, + "node_modules/nerf-dart": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/nerf-dart/-/nerf-dart-1.0.0.tgz", + "integrity": "sha1-5tq3/r9a2Bbqgc9cYpxaDr3nLBo=", + "dev": true + }, + "node_modules/nimma": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/nimma/-/nimma-0.1.8.tgz", + "integrity": "sha512-9gbBqjwngJHJYIIY9OARuCU3eyy/Pl4rRmZAkj1lBMaJVWZZPUOyj90I9jMBe8uNlp4+55J3W2z2CPSJFFar/g==", + "dependencies": { + "@jsep-plugin/regex": "^1.0.1", + "@jsep-plugin/ternary": "^1.0.2", + "astring": "^1.8.1", + "jsep": "^1.2.0" + }, + "engines": { + "node": "^12.20 || >=14.13" + }, + "optionalDependencies": { + "jsonpath-plus": "^6.0.1", + "lodash.topath": "^4.5.2" + } + }, + "node_modules/node-emoji": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.10.0.tgz", + "integrity": "sha512-Yt3384If5H6BYGVHiHwTL+99OzJKHhgp82S8/dktEK73T26BazdgZ4JZh92xSVtGNJvz9UbXdNAc5hcrXV42vw==", + "dev": true, + "dependencies": { + "lodash.toarray": "^4.4.0" + } + }, + "node_modules/node-fetch": { + "version": "2.6.7", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", + "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.2.tgz", + "integrity": "sha512-XxYDdcQ6eKqp/YjI+tb2C5WM2LgjnZrfYg4vgQt49EK268b6gYCHsBLrK2qvJo4FmCtqmKezb0WZFK4fkrZNsg==", + "dev": true + }, + "node_modules/normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-url": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-5.3.1.tgz", + "integrity": "sha512-K1c7+vaAP+Yh5bOGmA10PGPpp+6h7WZrl7GwqKhUflBc9flU9pzG27DDeB9+iuhZkE3BJZOcgN1P/2sS5pqrWw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm": { + "version": "6.14.6", + "resolved": "https://registry.npmjs.org/npm/-/npm-6.14.6.tgz", + "integrity": "sha512-axnz6iHFK6WPE0js/+mRp+4IOwpHn5tJEw5KB6FiCU764zmffrhsYHbSHi2kKqNkRBt53XasXjngZfBD3FQzrQ==", + "bundleDependencies": [ + "abbrev", + "ansicolors", + "ansistyles", "aproba", "archy", "bin-links", @@ -3569,1312 +8341,3125 @@ ], "dev": true, "dependencies": { - "abbrev": "~1.1.1", - "ansicolors": "~0.3.2", - "ansistyles": "~0.1.3", - "aproba": "^2.0.0", - "archy": "~1.0.0", - "bin-links": "^1.1.7", - "bluebird": "^3.5.5", - "byte-size": "^5.0.1", - "cacache": "^12.0.3", - "call-limit": "^1.1.1", - "chownr": "^1.1.4", - "ci-info": "^2.0.0", - "cli-columns": "^3.1.2", - "cli-table3": "^0.5.1", - "cmd-shim": "^3.0.3", - "columnify": "~1.5.4", - "config-chain": "^1.1.12", - "debuglog": "*", - "detect-indent": "~5.0.0", - "detect-newline": "^2.1.0", - "dezalgo": "~1.0.3", - "editor": "~1.0.0", - "figgy-pudding": "^3.5.1", - "find-npm-prefix": "^1.0.2", - "fs-vacuum": "~1.2.10", - "fs-write-stream-atomic": "~1.0.10", - "gentle-fs": "^2.3.0", - "glob": "^7.1.6", - "graceful-fs": "^4.2.4", - "has-unicode": "~2.0.1", - "hosted-git-info": "^2.8.8", - "iferr": "^1.0.2", - "imurmurhash": "*", - "infer-owner": "^1.0.4", - "inflight": "~1.0.6", - "inherits": "^2.0.4", - "ini": "^1.3.5", - "init-package-json": "^1.10.3", - "is-cidr": "^3.0.0", - "json-parse-better-errors": "^1.0.2", - "JSONStream": "^1.3.5", - "lazy-property": "~1.0.0", - "libcipm": "^4.0.7", - "libnpm": "^3.0.1", - "libnpmaccess": "^3.0.2", - "libnpmhook": "^5.0.3", - "libnpmorg": "^1.0.1", - "libnpmsearch": "^2.0.2", - "libnpmteam": "^1.0.2", - "libnpx": "^10.2.2", - "lock-verify": "^2.1.0", - "lockfile": "^1.0.4", - "lodash._baseindexof": "*", - "lodash._baseuniq": "~4.6.0", - "lodash._bindcallback": "*", - "lodash._cacheindexof": "*", - "lodash._createcache": "*", - "lodash._getnative": "*", - "lodash.clonedeep": "~4.5.0", - "lodash.restparam": "*", - "lodash.union": "~4.6.0", - "lodash.uniq": "~4.5.0", - "lodash.without": "~4.4.0", - "lru-cache": "^5.1.1", - "meant": "~1.0.1", - "mississippi": "^3.0.0", - "mkdirp": "^0.5.5", - "move-concurrently": "^1.0.1", - "node-gyp": "^5.1.0", - "nopt": "^4.0.3", - "normalize-package-data": "^2.5.0", - "npm-audit-report": "^1.3.2", - "npm-cache-filename": "~1.0.2", - "npm-install-checks": "^3.0.2", - "npm-lifecycle": "^3.1.4", - "npm-package-arg": "^6.1.1", - "npm-packlist": "^1.4.8", - "npm-pick-manifest": "^3.0.2", - "npm-profile": "^4.0.4", - "npm-registry-fetch": "^4.0.5", - "npm-user-validate": "~1.0.0", - "npmlog": "~4.1.2", - "once": "~1.4.0", - "opener": "^1.5.1", - "osenv": "^0.1.5", - "pacote": "^9.5.12", - "path-is-inside": "~1.0.2", - "promise-inflight": "~1.0.1", - "qrcode-terminal": "^0.12.0", - "query-string": "^6.8.2", - "qw": "~1.0.1", - "read": "~1.0.7", - "read-cmd-shim": "^1.0.5", - "read-installed": "~4.0.3", - "read-package-json": "^2.1.1", - "read-package-tree": "^5.3.1", - "readable-stream": "^3.6.0", - "readdir-scoped-modules": "^1.1.0", - "request": "^2.88.0", - "retry": "^0.12.0", - "rimraf": "^2.7.1", - "safe-buffer": "^5.1.2", - "semver": "^5.7.1", - "sha": "^3.0.0", - "slide": "~1.1.6", - "sorted-object": "~2.0.1", - "sorted-union-stream": "~2.1.3", - "ssri": "^6.0.1", - "stringify-package": "^1.0.1", - "tar": "^4.4.13", - "text-table": "~0.2.0", - "tiny-relative-date": "^1.3.0", - "uid-number": "0.0.6", - "umask": "~1.1.0", - "unique-filename": "^1.1.1", - "unpipe": "~1.0.0", - "update-notifier": "^2.5.0", - "uuid": "^3.3.3", - "validate-npm-package-license": "^3.0.4", - "validate-npm-package-name": "~3.0.0", - "which": "^1.3.1", - "worker-farm": "^1.7.0", - "write-file-atomic": "^2.4.3" + "abbrev": "~1.1.1", + "ansicolors": "~0.3.2", + "ansistyles": "~0.1.3", + "aproba": "^2.0.0", + "archy": "~1.0.0", + "bin-links": "^1.1.7", + "bluebird": "^3.5.5", + "byte-size": "^5.0.1", + "cacache": "^12.0.3", + "call-limit": "^1.1.1", + "chownr": "^1.1.4", + "ci-info": "^2.0.0", + "cli-columns": "^3.1.2", + "cli-table3": "^0.5.1", + "cmd-shim": "^3.0.3", + "columnify": "~1.5.4", + "config-chain": "^1.1.12", + "debuglog": "*", + "detect-indent": "~5.0.0", + "detect-newline": "^2.1.0", + "dezalgo": "~1.0.3", + "editor": "~1.0.0", + "figgy-pudding": "^3.5.1", + "find-npm-prefix": "^1.0.2", + "fs-vacuum": "~1.2.10", + "fs-write-stream-atomic": "~1.0.10", + "gentle-fs": "^2.3.0", + "glob": "^7.1.6", + "graceful-fs": "^4.2.4", + "has-unicode": "~2.0.1", + "hosted-git-info": "^2.8.8", + "iferr": "^1.0.2", + "imurmurhash": "*", + "infer-owner": "^1.0.4", + "inflight": "~1.0.6", + "inherits": "^2.0.4", + "ini": "^1.3.5", + "init-package-json": "^1.10.3", + "is-cidr": "^3.0.0", + "json-parse-better-errors": "^1.0.2", + "JSONStream": "^1.3.5", + "lazy-property": "~1.0.0", + "libcipm": "^4.0.7", + "libnpm": "^3.0.1", + "libnpmaccess": "^3.0.2", + "libnpmhook": "^5.0.3", + "libnpmorg": "^1.0.1", + "libnpmsearch": "^2.0.2", + "libnpmteam": "^1.0.2", + "libnpx": "^10.2.2", + "lock-verify": "^2.1.0", + "lockfile": "^1.0.4", + "lodash._baseindexof": "*", + "lodash._baseuniq": "~4.6.0", + "lodash._bindcallback": "*", + "lodash._cacheindexof": "*", + "lodash._createcache": "*", + "lodash._getnative": "*", + "lodash.clonedeep": "~4.5.0", + "lodash.restparam": "*", + "lodash.union": "~4.6.0", + "lodash.uniq": "~4.5.0", + "lodash.without": "~4.4.0", + "lru-cache": "^5.1.1", + "meant": "~1.0.1", + "mississippi": "^3.0.0", + "mkdirp": "^0.5.5", + "move-concurrently": "^1.0.1", + "node-gyp": "^5.1.0", + "nopt": "^4.0.3", + "normalize-package-data": "^2.5.0", + "npm-audit-report": "^1.3.2", + "npm-cache-filename": "~1.0.2", + "npm-install-checks": "^3.0.2", + "npm-lifecycle": "^3.1.4", + "npm-package-arg": "^6.1.1", + "npm-packlist": "^1.4.8", + "npm-pick-manifest": "^3.0.2", + "npm-profile": "^4.0.4", + "npm-registry-fetch": "^4.0.5", + "npm-user-validate": "~1.0.0", + "npmlog": "~4.1.2", + "once": "~1.4.0", + "opener": "^1.5.1", + "osenv": "^0.1.5", + "pacote": "^9.5.12", + "path-is-inside": "~1.0.2", + "promise-inflight": "~1.0.1", + "qrcode-terminal": "^0.12.0", + "query-string": "^6.8.2", + "qw": "~1.0.1", + "read": "~1.0.7", + "read-cmd-shim": "^1.0.5", + "read-installed": "~4.0.3", + "read-package-json": "^2.1.1", + "read-package-tree": "^5.3.1", + "readable-stream": "^3.6.0", + "readdir-scoped-modules": "^1.1.0", + "request": "^2.88.0", + "retry": "^0.12.0", + "rimraf": "^2.7.1", + "safe-buffer": "^5.1.2", + "semver": "^5.7.1", + "sha": "^3.0.0", + "slide": "~1.1.6", + "sorted-object": "~2.0.1", + "sorted-union-stream": "~2.1.3", + "ssri": "^6.0.1", + "stringify-package": "^1.0.1", + "tar": "^4.4.13", + "text-table": "~0.2.0", + "tiny-relative-date": "^1.3.0", + "uid-number": "0.0.6", + "umask": "~1.1.0", + "unique-filename": "^1.1.1", + "unpipe": "~1.0.0", + "update-notifier": "^2.5.0", + "uuid": "^3.3.3", + "validate-npm-package-license": "^3.0.4", + "validate-npm-package-name": "~3.0.0", + "which": "^1.3.1", + "worker-farm": "^1.7.0", + "write-file-atomic": "^2.4.3" + }, + "bin": { + "npm": "bin/npm-cli.js", + "npx": "bin/npx-cli.js" + }, + "engines": { + "node": "6 >=6.2.0 || 8 || >=9.3.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/abbrev": { + "version": "1.1.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/agent-base": { + "version": "4.3.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "es6-promisify": "^5.0.0" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/npm/node_modules/agentkeepalive": { + "version": "3.5.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/npm/node_modules/ajv": { + "version": "5.5.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "co": "^4.6.0", + "fast-deep-equal": "^1.0.0", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.3.0" + } + }, + "node_modules/npm/node_modules/ansi-align": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "string-width": "^2.0.0" + } + }, + "node_modules/npm/node_modules/ansi-regex": { + "version": "2.1.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/ansi-styles": { + "version": "3.2.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/ansicolors": { + "version": "0.3.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/ansistyles": { + "version": "0.1.3", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/aproba": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/archy": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/are-we-there-yet": { + "version": "1.1.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" + } + }, + "node_modules/npm/node_modules/are-we-there-yet/node_modules/readable-stream": { + "version": "2.3.6", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/npm/node_modules/are-we-there-yet/node_modules/string_decoder": { + "version": "1.1.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/npm/node_modules/asap": { + "version": "2.0.6", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/asn1": { + "version": "0.2.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "safer-buffer": "~2.1.0" + } + }, + "node_modules/npm/node_modules/assert-plus": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/npm/node_modules/asynckit": { + "version": "0.4.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/aws-sign2": { + "version": "0.7.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/aws4": { + "version": "1.8.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/balanced-match": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/bcrypt-pbkdf": { + "version": "1.0.2", + "dev": true, + "inBundle": true, + "license": "BSD-3-Clause", + "optional": true, + "dependencies": { + "tweetnacl": "^0.14.3" + } + }, + "node_modules/npm/node_modules/bin-links": { + "version": "1.1.7", + "dev": true, + "inBundle": true, + "license": "Artistic-2.0", + "dependencies": { + "bluebird": "^3.5.3", + "cmd-shim": "^3.0.0", + "gentle-fs": "^2.3.0", + "graceful-fs": "^4.1.15", + "npm-normalize-package-bin": "^1.0.0", + "write-file-atomic": "^2.3.0" + } + }, + "node_modules/npm/node_modules/bluebird": { + "version": "3.5.5", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/boxen": { + "version": "1.3.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-align": "^2.0.0", + "camelcase": "^4.0.0", + "chalk": "^2.0.1", + "cli-boxes": "^1.0.0", + "string-width": "^2.0.0", + "term-size": "^1.2.0", + "widest-line": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/brace-expansion": { + "version": "1.1.11", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/npm/node_modules/buffer-from": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/builtins": { + "version": "1.0.3", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/byline": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/byte-size": { + "version": "5.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/npm/node_modules/cacache": { + "version": "12.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "bluebird": "^3.5.5", + "chownr": "^1.1.1", + "figgy-pudding": "^3.5.1", + "glob": "^7.1.4", + "graceful-fs": "^4.1.15", + "infer-owner": "^1.0.3", + "lru-cache": "^5.1.1", + "mississippi": "^3.0.0", + "mkdirp": "^0.5.1", + "move-concurrently": "^1.0.1", + "promise-inflight": "^1.0.1", + "rimraf": "^2.6.3", + "ssri": "^6.0.1", + "unique-filename": "^1.1.1", + "y18n": "^4.0.0" + } + }, + "node_modules/npm/node_modules/call-limit": { + "version": "1.1.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/camelcase": { + "version": "4.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/capture-stack-trace": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/caseless": { + "version": "0.12.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0" + }, + "node_modules/npm/node_modules/chalk": { + "version": "2.4.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/chownr": { + "version": "1.1.4", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/ci-info": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/cidr-regex": { + "version": "2.0.10", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "ip-regex": "^2.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/cli-boxes": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/cli-columns": { + "version": "3.1.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "string-width": "^2.0.0", + "strip-ansi": "^3.0.1" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/npm/node_modules/cli-table3": { + "version": "0.5.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "object-assign": "^4.1.0", + "string-width": "^2.1.1" + }, + "engines": { + "node": ">=6" + }, + "optionalDependencies": { + "colors": "^1.1.2" + } + }, + "node_modules/npm/node_modules/cliui": { + "version": "4.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "string-width": "^2.1.1", + "strip-ansi": "^4.0.0", + "wrap-ansi": "^2.0.0" + } + }, + "node_modules/npm/node_modules/cliui/node_modules/ansi-regex": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/cliui/node_modules/strip-ansi": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/clone": { + "version": "1.0.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/npm/node_modules/cmd-shim": { + "version": "3.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "graceful-fs": "^4.1.2", + "mkdirp": "~0.5.0" + } + }, + "node_modules/npm/node_modules/co": { + "version": "4.6.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/npm/node_modules/code-point-at": { + "version": "1.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/color-convert": { + "version": "1.9.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "color-name": "^1.1.1" + } + }, + "node_modules/npm/node_modules/color-name": { + "version": "1.1.3", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/colors": { + "version": "1.3.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/npm/node_modules/columnify": { + "version": "1.5.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "strip-ansi": "^3.0.0", + "wcwidth": "^1.0.0" + } + }, + "node_modules/npm/node_modules/combined-stream": { + "version": "1.0.6", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/npm/node_modules/concat-map": { + "version": "0.0.1", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/concat-stream": { + "version": "1.6.2", + "dev": true, + "engines": [ + "node >= 0.8" + ], + "inBundle": true, + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "node_modules/npm/node_modules/concat-stream/node_modules/readable-stream": { + "version": "2.3.6", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/npm/node_modules/concat-stream/node_modules/string_decoder": { + "version": "1.1.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/npm/node_modules/config-chain": { + "version": "1.1.12", + "dev": true, + "inBundle": true, + "dependencies": { + "ini": "^1.3.4", + "proto-list": "~1.2.1" + } + }, + "node_modules/npm/node_modules/configstore": { + "version": "3.1.2", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "dot-prop": "^4.1.0", + "graceful-fs": "^4.1.2", + "make-dir": "^1.0.0", + "unique-string": "^1.0.0", + "write-file-atomic": "^2.0.0", + "xdg-basedir": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/console-control-strings": { + "version": "1.1.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/copy-concurrently": { + "version": "1.0.5", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^1.1.1", + "fs-write-stream-atomic": "^1.0.8", + "iferr": "^0.1.5", + "mkdirp": "^0.5.1", + "rimraf": "^2.5.4", + "run-queue": "^1.0.0" + } + }, + "node_modules/npm/node_modules/copy-concurrently/node_modules/aproba": { + "version": "1.2.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/copy-concurrently/node_modules/iferr": { + "version": "0.1.5", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/core-util-is": { + "version": "1.0.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/create-error-class": { + "version": "3.0.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "capture-stack-trace": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/cross-spawn": { + "version": "5.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "lru-cache": "^4.0.1", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "node_modules/npm/node_modules/cross-spawn/node_modules/lru-cache": { + "version": "4.1.5", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" + } + }, + "node_modules/npm/node_modules/cross-spawn/node_modules/yallist": { + "version": "2.1.2", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/crypto-random-string": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/cyclist": { + "version": "0.2.2", + "dev": true, + "inBundle": true + }, + "node_modules/npm/node_modules/dashdash": { + "version": "1.14.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/npm/node_modules/debug": { + "version": "3.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/npm/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/debuglog": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/decamelize": { + "version": "1.2.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/decode-uri-component": { + "version": "0.2.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/npm/node_modules/deep-extend": { + "version": "0.6.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/npm/node_modules/defaults": { + "version": "1.0.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "clone": "^1.0.2" + } + }, + "node_modules/npm/node_modules/define-properties": { + "version": "1.1.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "object-keys": "^1.0.12" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/npm/node_modules/delayed-stream": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/npm/node_modules/delegates": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/detect-indent": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/detect-newline": { + "version": "2.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/dezalgo": { + "version": "1.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "asap": "^2.0.0", + "wrappy": "1" + } + }, + "node_modules/npm/node_modules/dot-prop": { + "version": "4.2.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "is-obj": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/dotenv": { + "version": "5.0.1", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.6.0" + } + }, + "node_modules/npm/node_modules/duplexer3": { + "version": "0.1.4", + "dev": true, + "inBundle": true, + "license": "BSD-3-Clause" + }, + "node_modules/npm/node_modules/duplexify": { + "version": "3.6.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.0.0", + "stream-shift": "^1.0.0" + } + }, + "node_modules/npm/node_modules/duplexify/node_modules/readable-stream": { + "version": "2.3.6", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/npm/node_modules/duplexify/node_modules/string_decoder": { + "version": "1.1.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/npm/node_modules/ecc-jsbn": { + "version": "0.1.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "node_modules/npm/node_modules/editor": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/encoding": { + "version": "0.1.12", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "iconv-lite": "~0.4.13" + } + }, + "node_modules/npm/node_modules/end-of-stream": { + "version": "1.4.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/npm/node_modules/env-paths": { + "version": "2.2.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/err-code": { + "version": "1.1.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/errno": { + "version": "0.1.7", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "prr": "~1.0.1" + }, + "bin": { + "errno": "cli.js" + } + }, + "node_modules/npm/node_modules/es-abstract": { + "version": "1.12.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "es-to-primitive": "^1.1.1", + "function-bind": "^1.1.1", + "has": "^1.0.1", + "is-callable": "^1.1.3", + "is-regex": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/npm/node_modules/es-to-primitive": { + "version": "1.2.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/npm/node_modules/es6-promise": { + "version": "4.2.8", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/es6-promisify": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "es6-promise": "^4.0.3" + } + }, + "node_modules/npm/node_modules/escape-string-regexp": { + "version": "1.0.5", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/npm/node_modules/execa": { + "version": "0.7.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "cross-spawn": "^5.0.1", + "get-stream": "^3.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/execa/node_modules/get-stream": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/extend": { + "version": "3.0.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/extsprintf": { + "version": "1.3.0", + "dev": true, + "engines": [ + "node >=0.6.0" + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/fast-deep-equal": { + "version": "1.1.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/fast-json-stable-stringify": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/figgy-pudding": { + "version": "3.5.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/find-npm-prefix": { + "version": "1.0.2", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/find-up": { + "version": "2.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "locate-path": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/flush-write-stream": { + "version": "1.0.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "inherits": "^2.0.1", + "readable-stream": "^2.0.4" + } + }, + "node_modules/npm/node_modules/flush-write-stream/node_modules/readable-stream": { + "version": "2.3.6", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/npm/node_modules/flush-write-stream/node_modules/string_decoder": { + "version": "1.1.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/npm/node_modules/forever-agent": { + "version": "0.6.1", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/form-data": { + "version": "2.3.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "1.0.6", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 0.12" + } + }, + "node_modules/npm/node_modules/from2": { + "version": "2.3.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "inherits": "^2.0.1", + "readable-stream": "^2.0.0" + } + }, + "node_modules/npm/node_modules/from2/node_modules/readable-stream": { + "version": "2.3.6", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/npm/node_modules/from2/node_modules/string_decoder": { + "version": "1.1.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/npm/node_modules/fs-minipass": { + "version": "1.2.7", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^2.6.0" + } + }, + "node_modules/npm/node_modules/fs-minipass/node_modules/minipass": { + "version": "2.9.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "safe-buffer": "^5.1.2", + "yallist": "^3.0.0" + } + }, + "node_modules/npm/node_modules/fs-vacuum": { + "version": "1.2.10", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "graceful-fs": "^4.1.2", + "path-is-inside": "^1.0.1", + "rimraf": "^2.5.2" + } + }, + "node_modules/npm/node_modules/fs-write-stream-atomic": { + "version": "1.0.10", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "graceful-fs": "^4.1.2", + "iferr": "^0.1.5", + "imurmurhash": "^0.1.4", + "readable-stream": "1 || 2" + } + }, + "node_modules/npm/node_modules/fs-write-stream-atomic/node_modules/iferr": { + "version": "0.1.5", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/fs-write-stream-atomic/node_modules/readable-stream": { + "version": "2.3.6", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/npm/node_modules/fs-write-stream-atomic/node_modules/string_decoder": { + "version": "1.1.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/npm/node_modules/fs.realpath": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/function-bind": { + "version": "1.1.1", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/gauge": { + "version": "2.7.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" + } + }, + "node_modules/npm/node_modules/gauge/node_modules/aproba": { + "version": "1.2.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/gauge/node_modules/string-width": { + "version": "1.0.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/genfun": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/gentle-fs": { + "version": "2.3.0", + "dev": true, + "inBundle": true, + "license": "Artistic-2.0", + "dependencies": { + "aproba": "^1.1.2", + "chownr": "^1.1.2", + "cmd-shim": "^3.0.3", + "fs-vacuum": "^1.2.10", + "graceful-fs": "^4.1.11", + "iferr": "^0.1.5", + "infer-owner": "^1.0.4", + "mkdirp": "^0.5.1", + "path-is-inside": "^1.0.2", + "read-cmd-shim": "^1.0.1", + "slide": "^1.1.6" + } + }, + "node_modules/npm/node_modules/gentle-fs/node_modules/aproba": { + "version": "1.2.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/gentle-fs/node_modules/iferr": { + "version": "0.1.5", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/get-caller-file": { + "version": "1.0.3", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/get-stream": { + "version": "4.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/getpass": { + "version": "0.1.7", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0" + } + }, + "node_modules/npm/node_modules/glob": { + "version": "7.1.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/global-dirs": { + "version": "0.1.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ini": "^1.3.4" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/got": { + "version": "6.7.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "create-error-class": "^3.0.0", + "duplexer3": "^0.1.4", + "get-stream": "^3.0.0", + "is-redirect": "^1.0.0", + "is-retry-allowed": "^1.0.0", + "is-stream": "^1.0.0", + "lowercase-keys": "^1.0.0", + "safe-buffer": "^5.0.1", + "timed-out": "^4.0.0", + "unzip-response": "^2.0.1", + "url-parse-lax": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/got/node_modules/get-stream": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/graceful-fs": { + "version": "4.2.4", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/har-schema": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/har-validator": { + "version": "5.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "ajv": "^5.3.0", + "har-schema": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/has": { + "version": "1.0.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/npm/node_modules/has-flag": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/has-symbols": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/npm/node_modules/has-unicode": { + "version": "2.0.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/hosted-git-info": { + "version": "2.8.8", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/http-cache-semantics": { + "version": "3.8.1", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause" + }, + "node_modules/npm/node_modules/http-proxy-agent": { + "version": "2.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "4", + "debug": "3.1.0" + }, + "engines": { + "node": ">= 4.5.0" + } + }, + "node_modules/npm/node_modules/http-signature": { + "version": "1.2.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" }, - "bin": { - "npm": "bin/npm-cli.js", - "npx": "bin/npx-cli.js" + "engines": { + "node": ">=0.8", + "npm": ">=1.3.7" + } + }, + "node_modules/npm/node_modules/https-proxy-agent": { + "version": "2.2.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "^4.3.0", + "debug": "^3.1.0" }, "engines": { - "node": "6 >=6.2.0 || 8 || >=9.3.0" + "node": ">= 4.5.0" } }, - "node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "node_modules/npm/node_modules/humanize-ms": { + "version": "1.2.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ms": "^2.0.0" + } + }, + "node_modules/npm/node_modules/iconv-lite": { + "version": "0.4.23", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/iferr": { + "version": "1.0.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/npm/node_modules/ignore-walk": { + "version": "3.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minimatch": "^3.0.4" + } + }, + "node_modules/npm/node_modules/import-lazy": { + "version": "2.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/imurmurhash": { + "version": "0.1.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/npm/node_modules/infer-owner": { + "version": "1.0.4", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/inflight": { + "version": "1.0.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/npm/node_modules/inherits": { + "version": "2.0.4", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/ini": { + "version": "1.3.5", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/init-package-json": { + "version": "1.10.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.1", + "npm-package-arg": "^4.0.0 || ^5.0.0 || ^6.0.0", + "promzard": "^0.3.0", + "read": "~1.0.1", + "read-package-json": "1 || 2", + "semver": "2.x || 3.x || 4 || 5", + "validate-npm-package-license": "^3.0.1", + "validate-npm-package-name": "^3.0.0" + } + }, + "node_modules/npm/node_modules/invert-kv": { + "version": "2.0.0", "dev": true, - "dependencies": { - "path-key": "^3.0.0" - }, + "inBundle": true, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=4" } }, - "node_modules/npm/node_modules/abbrev": { - "version": "1.1.1", + "node_modules/npm/node_modules/ip": { + "version": "1.1.5", "dev": true, "inBundle": true, - "license": "ISC" + "license": "MIT" }, - "node_modules/npm/node_modules/agent-base": { - "version": "4.3.0", + "node_modules/npm/node_modules/ip-regex": { + "version": "2.1.0", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "es6-promisify": "^5.0.0" - }, "engines": { - "node": ">= 4.0.0" + "node": ">=4" } }, - "node_modules/npm/node_modules/agentkeepalive": { - "version": "3.5.2", + "node_modules/npm/node_modules/is-callable": { + "version": "1.1.4", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "humanize-ms": "^1.2.1" - }, "engines": { - "node": ">= 4.0.0" + "node": ">= 0.4" } }, - "node_modules/npm/node_modules/ajv": { - "version": "5.5.2", + "node_modules/npm/node_modules/is-ci": { + "version": "1.2.1", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "co": "^4.6.0", - "fast-deep-equal": "^1.0.0", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.3.0" + "ci-info": "^1.5.0" + }, + "bin": { + "is-ci": "bin.js" } }, - "node_modules/npm/node_modules/ansi-align": { - "version": "2.0.0", + "node_modules/npm/node_modules/is-ci/node_modules/ci-info": { + "version": "1.6.0", "dev": true, "inBundle": true, - "license": "ISC", + "license": "MIT" + }, + "node_modules/npm/node_modules/is-cidr": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", "dependencies": { - "string-width": "^2.0.0" + "cidr-regex": "^2.0.10" + }, + "engines": { + "node": ">=6" } }, - "node_modules/npm/node_modules/ansi-regex": { - "version": "2.1.1", + "node_modules/npm/node_modules/is-date-object": { + "version": "1.0.1", "dev": true, "inBundle": true, "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" } }, - "node_modules/npm/node_modules/ansi-styles": { - "version": "3.2.1", + "node_modules/npm/node_modules/is-fullwidth-code-point": { + "version": "1.0.0", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "color-convert": "^1.9.0" + "number-is-nan": "^1.0.0" }, "engines": { - "node": ">=4" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/ansicolors": { - "version": "0.3.2", + "node_modules/npm/node_modules/is-installed-globally": { + "version": "0.1.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "dependencies": { + "global-dirs": "^0.1.0", + "is-path-inside": "^1.0.0" + }, + "engines": { + "node": ">=4" + } }, - "node_modules/npm/node_modules/ansistyles": { - "version": "0.1.3", + "node_modules/npm/node_modules/is-npm": { + "version": "1.0.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/npm/node_modules/aproba": { - "version": "2.0.0", + "node_modules/npm/node_modules/is-obj": { + "version": "1.0.1", "dev": true, "inBundle": true, - "license": "ISC" + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/npm/node_modules/archy": { - "version": "1.0.0", + "node_modules/npm/node_modules/is-path-inside": { + "version": "1.0.1", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "dependencies": { + "path-is-inside": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/npm/node_modules/are-we-there-yet": { - "version": "1.1.4", + "node_modules/npm/node_modules/is-redirect": { + "version": "1.0.0", "dev": true, "inBundle": true, - "license": "ISC", - "dependencies": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" + "license": "MIT", + "engines": { + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/are-we-there-yet/node_modules/readable-stream": { - "version": "2.3.6", + "node_modules/npm/node_modules/is-regex": { + "version": "1.0.4", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "has": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" } }, - "node_modules/npm/node_modules/are-we-there-yet/node_modules/string_decoder": { - "version": "1.1.1", + "node_modules/npm/node_modules/is-retry-allowed": { + "version": "1.2.0", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "safe-buffer": "~5.1.0" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/asap": { - "version": "2.0.6", + "node_modules/npm/node_modules/is-stream": { + "version": "1.1.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/npm/node_modules/asn1": { - "version": "0.2.4", + "node_modules/npm/node_modules/is-symbol": { + "version": "1.0.2", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "safer-buffer": "~2.1.0" + "has-symbols": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" } }, - "node_modules/npm/node_modules/assert-plus": { + "node_modules/npm/node_modules/is-typedarray": { "version": "1.0.0", "dev": true, "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=0.8" - } + "license": "MIT" }, - "node_modules/npm/node_modules/asynckit": { - "version": "0.4.0", + "node_modules/npm/node_modules/isarray": { + "version": "1.0.0", "dev": true, "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/aws-sign2": { - "version": "0.7.0", + "node_modules/npm/node_modules/isexe": { + "version": "2.0.0", "dev": true, "inBundle": true, - "license": "Apache-2.0", - "engines": { - "node": "*" - } + "license": "ISC" }, - "node_modules/npm/node_modules/aws4": { - "version": "1.8.0", + "node_modules/npm/node_modules/isstream": { + "version": "0.1.2", "dev": true, "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/balanced-match": { - "version": "1.0.0", + "node_modules/npm/node_modules/jsbn": { + "version": "0.1.1", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "optional": true }, - "node_modules/npm/node_modules/bcrypt-pbkdf": { + "node_modules/npm/node_modules/json-parse-better-errors": { "version": "1.0.2", "dev": true, "inBundle": true, - "license": "BSD-3-Clause", - "optional": true, - "dependencies": { - "tweetnacl": "^0.14.3" - } + "license": "MIT" }, - "node_modules/npm/node_modules/bin-links": { - "version": "1.1.7", + "node_modules/npm/node_modules/json-schema": { + "version": "0.2.3", + "dev": true, + "inBundle": true + }, + "node_modules/npm/node_modules/json-schema-traverse": { + "version": "0.3.1", "dev": true, "inBundle": true, - "license": "Artistic-2.0", - "dependencies": { - "bluebird": "^3.5.3", - "cmd-shim": "^3.0.0", - "gentle-fs": "^2.3.0", - "graceful-fs": "^4.1.15", - "npm-normalize-package-bin": "^1.0.0", - "write-file-atomic": "^2.3.0" - } + "license": "MIT" }, - "node_modules/npm/node_modules/bluebird": { - "version": "3.5.5", + "node_modules/npm/node_modules/json-stringify-safe": { + "version": "5.0.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/jsonparse": { + "version": "1.3.1", "dev": true, + "engines": [ + "node >= 0.2.0" + ], "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/boxen": { - "version": "1.3.0", + "node_modules/npm/node_modules/JSONStream": { + "version": "1.3.5", + "dev": true, + "inBundle": true, + "license": "(MIT OR Apache-2.0)", + "dependencies": { + "jsonparse": "^1.2.0", + "through": ">=2.2.7 <3" + }, + "bin": { + "JSONStream": "bin.js" + }, + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/jsprim": { + "version": "1.4.1", "dev": true, + "engines": [ + "node >=0.6.0" + ], "inBundle": true, "license": "MIT", "dependencies": { - "ansi-align": "^2.0.0", - "camelcase": "^4.0.0", - "chalk": "^2.0.1", - "cli-boxes": "^1.0.0", - "string-width": "^2.0.0", - "term-size": "^1.2.0", - "widest-line": "^2.0.0" - }, - "engines": { - "node": ">=4" + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" } }, - "node_modules/npm/node_modules/brace-expansion": { - "version": "1.1.11", + "node_modules/npm/node_modules/latest-version": { + "version": "3.1.0", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "package-json": "^4.0.0" + }, + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/buffer-from": { + "node_modules/npm/node_modules/lazy-property": { "version": "1.0.0", "dev": true, "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/builtins": { - "version": "1.0.3", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/npm/node_modules/byline": { - "version": "5.0.0", + "node_modules/npm/node_modules/lcid": { + "version": "2.0.0", "dev": true, "inBundle": true, "license": "MIT", + "dependencies": { + "invert-kv": "^2.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">=6" } }, - "node_modules/npm/node_modules/byte-size": { - "version": "5.0.1", + "node_modules/npm/node_modules/libcipm": { + "version": "4.0.7", "dev": true, "inBundle": true, "license": "MIT", - "engines": { - "node": ">=6.0.0" + "dependencies": { + "bin-links": "^1.1.2", + "bluebird": "^3.5.1", + "figgy-pudding": "^3.5.1", + "find-npm-prefix": "^1.0.2", + "graceful-fs": "^4.1.11", + "ini": "^1.3.5", + "lock-verify": "^2.0.2", + "mkdirp": "^0.5.1", + "npm-lifecycle": "^3.0.0", + "npm-logical-tree": "^1.2.1", + "npm-package-arg": "^6.1.0", + "pacote": "^9.1.0", + "read-package-json": "^2.0.13", + "rimraf": "^2.6.2", + "worker-farm": "^1.6.0" } }, - "node_modules/npm/node_modules/cacache": { - "version": "12.0.3", + "node_modules/npm/node_modules/libnpm": { + "version": "3.0.1", "dev": true, "inBundle": true, "license": "ISC", "dependencies": { - "bluebird": "^3.5.5", - "chownr": "^1.1.1", - "figgy-pudding": "^3.5.1", - "glob": "^7.1.4", - "graceful-fs": "^4.1.15", - "infer-owner": "^1.0.3", - "lru-cache": "^5.1.1", - "mississippi": "^3.0.0", - "mkdirp": "^0.5.1", - "move-concurrently": "^1.0.1", - "promise-inflight": "^1.0.1", - "rimraf": "^2.6.3", - "ssri": "^6.0.1", - "unique-filename": "^1.1.1", - "y18n": "^4.0.0" + "bin-links": "^1.1.2", + "bluebird": "^3.5.3", + "find-npm-prefix": "^1.0.2", + "libnpmaccess": "^3.0.2", + "libnpmconfig": "^1.2.1", + "libnpmhook": "^5.0.3", + "libnpmorg": "^1.0.1", + "libnpmpublish": "^1.1.2", + "libnpmsearch": "^2.0.2", + "libnpmteam": "^1.0.2", + "lock-verify": "^2.0.2", + "npm-lifecycle": "^3.0.0", + "npm-logical-tree": "^1.2.1", + "npm-package-arg": "^6.1.0", + "npm-profile": "^4.0.2", + "npm-registry-fetch": "^4.0.0", + "npmlog": "^4.1.2", + "pacote": "^9.5.3", + "read-package-json": "^2.0.13", + "stringify-package": "^1.0.0" } }, - "node_modules/npm/node_modules/call-limit": { - "version": "1.1.1", + "node_modules/npm/node_modules/libnpmaccess": { + "version": "3.0.2", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "get-stream": "^4.0.0", + "npm-package-arg": "^6.1.0", + "npm-registry-fetch": "^4.0.0" + } }, - "node_modules/npm/node_modules/camelcase": { - "version": "4.1.0", + "node_modules/npm/node_modules/libnpmconfig": { + "version": "1.2.1", "dev": true, "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=4" + "license": "ISC", + "dependencies": { + "figgy-pudding": "^3.5.1", + "find-up": "^3.0.0", + "ini": "^1.3.5" } }, - "node_modules/npm/node_modules/capture-stack-trace": { - "version": "1.0.0", + "node_modules/npm/node_modules/libnpmconfig/node_modules/find-up": { + "version": "3.0.0", "dev": true, "inBundle": true, "license": "MIT", + "dependencies": { + "locate-path": "^3.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">=6" } }, - "node_modules/npm/node_modules/caseless": { - "version": "0.12.0", + "node_modules/npm/node_modules/libnpmconfig/node_modules/locate-path": { + "version": "3.0.0", "dev": true, "inBundle": true, - "license": "Apache-2.0" + "license": "MIT", + "dependencies": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=6" + } }, - "node_modules/npm/node_modules/chalk": { - "version": "2.4.1", + "node_modules/npm/node_modules/libnpmconfig/node_modules/p-limit": { + "version": "2.2.0", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "p-try": "^2.0.0" }, "engines": { - "node": ">=4" + "node": ">=6" } }, - "node_modules/npm/node_modules/chownr": { - "version": "1.1.4", + "node_modules/npm/node_modules/libnpmconfig/node_modules/p-locate": { + "version": "3.0.0", "dev": true, "inBundle": true, - "license": "ISC" + "license": "MIT", + "dependencies": { + "p-limit": "^2.0.0" + }, + "engines": { + "node": ">=6" + } }, - "node_modules/npm/node_modules/ci-info": { - "version": "2.0.0", + "node_modules/npm/node_modules/libnpmconfig/node_modules/p-try": { + "version": "2.2.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">=6" + } }, - "node_modules/npm/node_modules/cidr-regex": { - "version": "2.0.10", + "node_modules/npm/node_modules/libnpmhook": { + "version": "5.0.3", "dev": true, "inBundle": true, - "license": "BSD-2-Clause", + "license": "ISC", "dependencies": { - "ip-regex": "^2.1.0" - }, - "engines": { - "node": ">=4" + "aproba": "^2.0.0", + "figgy-pudding": "^3.4.1", + "get-stream": "^4.0.0", + "npm-registry-fetch": "^4.0.0" } }, - "node_modules/npm/node_modules/cli-boxes": { - "version": "1.0.0", + "node_modules/npm/node_modules/libnpmorg": { + "version": "1.0.1", "dev": true, "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "figgy-pudding": "^3.4.1", + "get-stream": "^4.0.0", + "npm-registry-fetch": "^4.0.0" } }, - "node_modules/npm/node_modules/cli-columns": { - "version": "3.1.2", + "node_modules/npm/node_modules/libnpmpublish": { + "version": "1.1.2", "dev": true, "inBundle": true, - "license": "MIT", + "license": "ISC", "dependencies": { - "string-width": "^2.0.0", - "strip-ansi": "^3.0.1" - }, - "engines": { - "node": ">= 4" + "aproba": "^2.0.0", + "figgy-pudding": "^3.5.1", + "get-stream": "^4.0.0", + "lodash.clonedeep": "^4.5.0", + "normalize-package-data": "^2.4.0", + "npm-package-arg": "^6.1.0", + "npm-registry-fetch": "^4.0.0", + "semver": "^5.5.1", + "ssri": "^6.0.1" } }, - "node_modules/npm/node_modules/cli-table3": { - "version": "0.5.1", + "node_modules/npm/node_modules/libnpmsearch": { + "version": "2.0.2", "dev": true, "inBundle": true, - "license": "MIT", + "license": "ISC", "dependencies": { - "object-assign": "^4.1.0", - "string-width": "^2.1.1" - }, - "engines": { - "node": ">=6" - }, - "optionalDependencies": { - "colors": "^1.1.2" + "figgy-pudding": "^3.5.1", + "get-stream": "^4.0.0", + "npm-registry-fetch": "^4.0.0" } }, - "node_modules/npm/node_modules/cliui": { - "version": "4.1.0", + "node_modules/npm/node_modules/libnpmteam": { + "version": "1.0.2", "dev": true, "inBundle": true, "license": "ISC", "dependencies": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0", - "wrap-ansi": "^2.0.0" + "aproba": "^2.0.0", + "figgy-pudding": "^3.4.1", + "get-stream": "^4.0.0", + "npm-registry-fetch": "^4.0.0" } }, - "node_modules/npm/node_modules/cliui/node_modules/ansi-regex": { - "version": "3.0.0", + "node_modules/npm/node_modules/libnpx": { + "version": "10.2.2", "dev": true, "inBundle": true, - "license": "MIT", + "license": "ISC", + "dependencies": { + "dotenv": "^5.0.1", + "npm-package-arg": "^6.0.0", + "rimraf": "^2.6.2", + "safe-buffer": "^5.1.0", + "update-notifier": "^2.3.0", + "which": "^1.3.0", + "y18n": "^4.0.0", + "yargs": "^11.0.0" + }, "engines": { "node": ">=4" } }, - "node_modules/npm/node_modules/cliui/node_modules/strip-ansi": { - "version": "4.0.0", + "node_modules/npm/node_modules/locate-path": { + "version": "2.0.0", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "ansi-regex": "^3.0.0" + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" }, "engines": { "node": ">=4" } }, - "node_modules/npm/node_modules/clone": { - "version": "1.0.4", + "node_modules/npm/node_modules/lock-verify": { + "version": "2.1.0", "dev": true, "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=0.8" + "license": "ISC", + "dependencies": { + "npm-package-arg": "^6.1.0", + "semver": "^5.4.1" } }, - "node_modules/npm/node_modules/cmd-shim": { - "version": "3.0.3", + "node_modules/npm/node_modules/lockfile": { + "version": "1.0.4", "dev": true, "inBundle": true, "license": "ISC", "dependencies": { - "graceful-fs": "^4.1.2", - "mkdirp": "~0.5.0" + "signal-exit": "^3.0.2" } }, - "node_modules/npm/node_modules/co": { + "node_modules/npm/node_modules/lodash._baseindexof": { + "version": "3.1.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/lodash._baseuniq": { "version": "4.6.0", "dev": true, "inBundle": true, "license": "MIT", - "engines": { - "iojs": ">= 1.0.0", - "node": ">= 0.12.0" + "dependencies": { + "lodash._createset": "~4.0.0", + "lodash._root": "~3.0.0" } }, - "node_modules/npm/node_modules/code-point-at": { - "version": "1.1.0", + "node_modules/npm/node_modules/lodash._bindcallback": { + "version": "3.0.1", "dev": true, "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } + "license": "MIT" }, - "node_modules/npm/node_modules/color-convert": { - "version": "1.9.1", + "node_modules/npm/node_modules/lodash._cacheindexof": { + "version": "3.0.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/lodash._createcache": { + "version": "3.1.2", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "color-name": "^1.1.1" + "lodash._getnative": "^3.0.0" } }, - "node_modules/npm/node_modules/color-name": { - "version": "1.1.3", + "node_modules/npm/node_modules/lodash._createset": { + "version": "4.0.3", "dev": true, "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/colors": { - "version": "1.3.3", + "node_modules/npm/node_modules/lodash._getnative": { + "version": "3.9.1", "dev": true, "inBundle": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=0.1.90" - } + "license": "MIT" }, - "node_modules/npm/node_modules/columnify": { - "version": "1.5.4", + "node_modules/npm/node_modules/lodash._root": { + "version": "3.0.1", "dev": true, "inBundle": true, - "license": "MIT", - "dependencies": { - "strip-ansi": "^3.0.0", - "wcwidth": "^1.0.0" - } + "license": "MIT" }, - "node_modules/npm/node_modules/combined-stream": { - "version": "1.0.6", + "node_modules/npm/node_modules/lodash.clonedeep": { + "version": "4.5.0", "dev": true, "inBundle": true, - "license": "MIT", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } + "license": "MIT" }, - "node_modules/npm/node_modules/concat-map": { - "version": "0.0.1", + "node_modules/npm/node_modules/lodash.restparam": { + "version": "3.6.1", "dev": true, "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/concat-stream": { - "version": "1.6.2", + "node_modules/npm/node_modules/lodash.union": { + "version": "4.6.0", "dev": true, - "engines": [ - "node >= 0.8" - ], "inBundle": true, - "license": "MIT", - "dependencies": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" - } + "license": "MIT" }, - "node_modules/npm/node_modules/concat-stream/node_modules/readable-stream": { - "version": "2.3.6", + "node_modules/npm/node_modules/lodash.uniq": { + "version": "4.5.0", "dev": true, "inBundle": true, - "license": "MIT", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } + "license": "MIT" }, - "node_modules/npm/node_modules/concat-stream/node_modules/string_decoder": { - "version": "1.1.1", + "node_modules/npm/node_modules/lodash.without": { + "version": "4.4.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/lowercase-keys": { + "version": "1.0.1", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "safe-buffer": "~5.1.0" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/config-chain": { - "version": "1.1.12", + "node_modules/npm/node_modules/lru-cache": { + "version": "5.1.1", "dev": true, "inBundle": true, + "license": "ISC", "dependencies": { - "ini": "^1.3.4", - "proto-list": "~1.2.1" + "yallist": "^3.0.2" } }, - "node_modules/npm/node_modules/configstore": { - "version": "3.1.2", + "node_modules/npm/node_modules/make-dir": { + "version": "1.3.0", "dev": true, "inBundle": true, - "license": "BSD-2-Clause", + "license": "MIT", "dependencies": { - "dot-prop": "^4.1.0", - "graceful-fs": "^4.1.2", - "make-dir": "^1.0.0", - "unique-string": "^1.0.0", - "write-file-atomic": "^2.0.0", - "xdg-basedir": "^3.0.0" + "pify": "^3.0.0" }, "engines": { "node": ">=4" } }, - "node_modules/npm/node_modules/console-control-strings": { - "version": "1.1.0", + "node_modules/npm/node_modules/make-fetch-happen": { + "version": "5.0.2", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "dependencies": { + "agentkeepalive": "^3.4.1", + "cacache": "^12.0.0", + "http-cache-semantics": "^3.8.1", + "http-proxy-agent": "^2.1.0", + "https-proxy-agent": "^2.2.3", + "lru-cache": "^5.1.1", + "mississippi": "^3.0.0", + "node-fetch-npm": "^2.0.2", + "promise-retry": "^1.1.1", + "socks-proxy-agent": "^4.0.0", + "ssri": "^6.0.0" + } }, - "node_modules/npm/node_modules/copy-concurrently": { - "version": "1.0.5", + "node_modules/npm/node_modules/map-age-cleaner": { + "version": "0.1.3", "dev": true, "inBundle": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "aproba": "^1.1.1", - "fs-write-stream-atomic": "^1.0.8", - "iferr": "^0.1.5", - "mkdirp": "^0.5.1", - "rimraf": "^2.5.4", - "run-queue": "^1.0.0" + "p-defer": "^1.0.0" + }, + "engines": { + "node": ">=6" } }, - "node_modules/npm/node_modules/copy-concurrently/node_modules/aproba": { - "version": "1.2.0", + "node_modules/npm/node_modules/meant": { + "version": "1.0.1", "dev": true, "inBundle": true, - "license": "ISC" + "license": "MIT" }, - "node_modules/npm/node_modules/copy-concurrently/node_modules/iferr": { - "version": "0.1.5", + "node_modules/npm/node_modules/mem": { + "version": "4.3.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "dependencies": { + "map-age-cleaner": "^0.1.1", + "mimic-fn": "^2.0.0", + "p-is-promise": "^2.0.0" + }, + "engines": { + "node": ">=6" + } }, - "node_modules/npm/node_modules/core-util-is": { - "version": "1.0.2", + "node_modules/npm/node_modules/mem/node_modules/mimic-fn": { + "version": "2.1.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">=6" + } }, - "node_modules/npm/node_modules/create-error-class": { - "version": "3.0.2", + "node_modules/npm/node_modules/mime-db": { + "version": "1.35.0", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "capture-stack-trace": "^1.0.0" - }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.6" } }, - "node_modules/npm/node_modules/cross-spawn": { - "version": "5.1.0", + "node_modules/npm/node_modules/mime-types": { + "version": "2.1.19", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "lru-cache": "^4.0.1", - "shebang-command": "^1.2.0", - "which": "^1.2.9" + "mime-db": "~1.35.0" + }, + "engines": { + "node": ">= 0.6" } }, - "node_modules/npm/node_modules/cross-spawn/node_modules/lru-cache": { - "version": "4.1.5", + "node_modules/npm/node_modules/minimatch": { + "version": "3.0.4", "dev": true, "inBundle": true, "license": "ISC", "dependencies": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" } }, - "node_modules/npm/node_modules/cross-spawn/node_modules/yallist": { - "version": "2.1.2", - "dev": true, - "inBundle": true, - "license": "ISC" - }, - "node_modules/npm/node_modules/crypto-random-string": { - "version": "1.0.0", + "node_modules/npm/node_modules/minizlib": { + "version": "1.3.3", "dev": true, "inBundle": true, "license": "MIT", - "engines": { - "node": ">=4" + "dependencies": { + "minipass": "^2.9.0" } }, - "node_modules/npm/node_modules/cyclist": { - "version": "0.2.2", + "node_modules/npm/node_modules/minizlib/node_modules/minipass": { + "version": "2.9.0", "dev": true, - "inBundle": true + "inBundle": true, + "license": "ISC", + "dependencies": { + "safe-buffer": "^5.1.2", + "yallist": "^3.0.0" + } }, - "node_modules/npm/node_modules/dashdash": { - "version": "1.14.1", + "node_modules/npm/node_modules/mississippi": { + "version": "3.0.0", "dev": true, "inBundle": true, - "license": "MIT", + "license": "BSD-2-Clause", "dependencies": { - "assert-plus": "^1.0.0" + "concat-stream": "^1.5.0", + "duplexify": "^3.4.2", + "end-of-stream": "^1.1.0", + "flush-write-stream": "^1.0.0", + "from2": "^2.1.0", + "parallel-transform": "^1.1.0", + "pump": "^3.0.0", + "pumpify": "^1.3.3", + "stream-each": "^1.1.0", + "through2": "^2.0.0" }, "engines": { - "node": ">=0.10" + "node": ">=4.0.0" } }, - "node_modules/npm/node_modules/debug": { - "version": "3.1.0", + "node_modules/npm/node_modules/mkdirp": { + "version": "0.5.5", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "ms": "2.0.0" + "minimist": "^1.2.5" + }, + "bin": { + "mkdirp": "bin/cmd.js" } }, - "node_modules/npm/node_modules/debug/node_modules/ms": { - "version": "2.0.0", + "node_modules/npm/node_modules/mkdirp/node_modules/minimist": { + "version": "1.2.5", "dev": true, "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/debuglog": { + "node_modules/npm/node_modules/move-concurrently": { "version": "1.0.1", "dev": true, "inBundle": true, - "license": "MIT", - "engines": { - "node": "*" + "license": "ISC", + "dependencies": { + "aproba": "^1.1.1", + "copy-concurrently": "^1.0.0", + "fs-write-stream-atomic": "^1.0.8", + "mkdirp": "^0.5.1", + "rimraf": "^2.5.4", + "run-queue": "^1.0.3" } }, - "node_modules/npm/node_modules/decamelize": { + "node_modules/npm/node_modules/move-concurrently/node_modules/aproba": { "version": "1.2.0", "dev": true, "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } + "license": "ISC" }, - "node_modules/npm/node_modules/decode-uri-component": { - "version": "0.2.0", + "node_modules/npm/node_modules/ms": { + "version": "2.1.1", "dev": true, "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=0.10" - } + "license": "MIT" }, - "node_modules/npm/node_modules/deep-extend": { - "version": "0.6.0", + "node_modules/npm/node_modules/mute-stream": { + "version": "0.0.7", "dev": true, "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=4.0.0" - } + "license": "ISC" }, - "node_modules/npm/node_modules/defaults": { - "version": "1.0.3", + "node_modules/npm/node_modules/nice-try": { + "version": "1.0.5", "dev": true, "inBundle": true, - "license": "MIT", - "dependencies": { - "clone": "^1.0.2" - } + "license": "MIT" }, - "node_modules/npm/node_modules/define-properties": { - "version": "1.1.3", + "node_modules/npm/node_modules/node-fetch-npm": { + "version": "2.0.2", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "object-keys": "^1.0.12" + "encoding": "^0.1.11", + "json-parse-better-errors": "^1.0.0", + "safe-buffer": "^5.1.1" }, "engines": { - "node": ">= 0.4" + "node": ">=4" } }, - "node_modules/npm/node_modules/delayed-stream": { - "version": "1.0.0", + "node_modules/npm/node_modules/node-gyp": { + "version": "5.1.0", "dev": true, "inBundle": true, "license": "MIT", + "dependencies": { + "env-paths": "^2.2.0", + "glob": "^7.1.4", + "graceful-fs": "^4.2.2", + "mkdirp": "^0.5.1", + "nopt": "^4.0.1", + "npmlog": "^4.1.2", + "request": "^2.88.0", + "rimraf": "^2.6.3", + "semver": "^5.7.1", + "tar": "^4.4.12", + "which": "^1.3.1" + }, + "bin": { + "node-gyp": "bin/node-gyp.js" + }, "engines": { - "node": ">=0.4.0" + "node": ">= 6.0.0" } }, - "node_modules/npm/node_modules/delegates": { - "version": "1.0.0", + "node_modules/npm/node_modules/nopt": { + "version": "4.0.3", "dev": true, "inBundle": true, - "license": "MIT" + "license": "ISC", + "dependencies": { + "abbrev": "1", + "osenv": "^0.1.4" + }, + "bin": { + "nopt": "bin/nopt.js" + } }, - "node_modules/npm/node_modules/detect-indent": { - "version": "5.0.0", + "node_modules/npm/node_modules/normalize-package-data": { + "version": "2.5.0", "dev": true, "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=4" + "license": "BSD-2-Clause", + "dependencies": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" } }, - "node_modules/npm/node_modules/detect-newline": { - "version": "2.1.0", + "node_modules/npm/node_modules/normalize-package-data/node_modules/resolve": { + "version": "1.10.0", "dev": true, "inBundle": true, "license": "MIT", - "engines": { - "node": ">=0.10.0" + "dependencies": { + "path-parse": "^1.0.6" } }, - "node_modules/npm/node_modules/dezalgo": { - "version": "1.0.3", + "node_modules/npm/node_modules/npm-audit-report": { + "version": "1.3.2", "dev": true, "inBundle": true, "license": "ISC", "dependencies": { - "asap": "^2.0.0", - "wrappy": "1" + "cli-table3": "^0.5.0", + "console-control-strings": "^1.1.0" } }, - "node_modules/npm/node_modules/dot-prop": { - "version": "4.2.0", + "node_modules/npm/node_modules/npm-bundled": { + "version": "1.1.1", "dev": true, "inBundle": true, - "license": "MIT", + "license": "ISC", "dependencies": { - "is-obj": "^1.0.0" - }, - "engines": { - "node": ">=4" + "npm-normalize-package-bin": "^1.0.1" } }, - "node_modules/npm/node_modules/dotenv": { - "version": "5.0.1", + "node_modules/npm/node_modules/npm-cache-filename": { + "version": "1.0.2", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/npm-install-checks": { + "version": "3.0.2", "dev": true, "inBundle": true, "license": "BSD-2-Clause", - "engines": { - "node": ">=4.6.0" + "dependencies": { + "semver": "^2.3.0 || 3.x || 4 || 5" + } + }, + "node_modules/npm/node_modules/npm-lifecycle": { + "version": "3.1.4", + "dev": true, + "inBundle": true, + "license": "Artistic-2.0", + "dependencies": { + "byline": "^5.0.0", + "graceful-fs": "^4.1.15", + "node-gyp": "^5.0.2", + "resolve-from": "^4.0.0", + "slide": "^1.1.6", + "uid-number": "0.0.6", + "umask": "^1.1.0", + "which": "^1.3.1" } }, - "node_modules/npm/node_modules/duplexer3": { - "version": "0.1.4", + "node_modules/npm/node_modules/npm-logical-tree": { + "version": "1.2.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/npm-normalize-package-bin": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/npm-package-arg": { + "version": "6.1.1", "dev": true, "inBundle": true, - "license": "BSD-3-Clause" + "license": "ISC", + "dependencies": { + "hosted-git-info": "^2.7.1", + "osenv": "^0.1.5", + "semver": "^5.6.0", + "validate-npm-package-name": "^3.0.0" + } }, - "node_modules/npm/node_modules/duplexify": { - "version": "3.6.0", + "node_modules/npm/node_modules/npm-packlist": { + "version": "1.4.8", "dev": true, "inBundle": true, - "license": "MIT", + "license": "ISC", "dependencies": { - "end-of-stream": "^1.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.0.0", - "stream-shift": "^1.0.0" + "ignore-walk": "^3.0.1", + "npm-bundled": "^1.0.1", + "npm-normalize-package-bin": "^1.0.1" } }, - "node_modules/npm/node_modules/duplexify/node_modules/readable-stream": { - "version": "2.3.6", + "node_modules/npm/node_modules/npm-pick-manifest": { + "version": "3.0.2", "dev": true, "inBundle": true, - "license": "MIT", + "license": "ISC", "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "figgy-pudding": "^3.5.1", + "npm-package-arg": "^6.0.0", + "semver": "^5.4.1" } }, - "node_modules/npm/node_modules/duplexify/node_modules/string_decoder": { - "version": "1.1.1", + "node_modules/npm/node_modules/npm-profile": { + "version": "4.0.4", "dev": true, "inBundle": true, - "license": "MIT", + "license": "ISC", "dependencies": { - "safe-buffer": "~5.1.0" + "aproba": "^1.1.2 || 2", + "figgy-pudding": "^3.4.1", + "npm-registry-fetch": "^4.0.0" } }, - "node_modules/npm/node_modules/ecc-jsbn": { - "version": "0.1.2", + "node_modules/npm/node_modules/npm-registry-fetch": { + "version": "4.0.5", "dev": true, "inBundle": true, - "license": "MIT", - "optional": true, + "license": "ISC", "dependencies": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" + "bluebird": "^3.5.1", + "figgy-pudding": "^3.4.1", + "JSONStream": "^1.3.4", + "lru-cache": "^5.1.1", + "make-fetch-happen": "^5.0.0", + "npm-package-arg": "^6.1.0", + "safe-buffer": "^5.2.0" } }, - "node_modules/npm/node_modules/editor": { - "version": "1.0.0", + "node_modules/npm/node_modules/npm-registry-fetch/node_modules/safe-buffer": { + "version": "5.2.1", "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/encoding": { - "version": "0.1.12", + "node_modules/npm/node_modules/npm-run-path": { + "version": "2.0.2", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "iconv-lite": "~0.4.13" + "path-key": "^2.0.0" + }, + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/end-of-stream": { - "version": "1.4.1", + "node_modules/npm/node_modules/npm-user-validate": { + "version": "1.0.0", "dev": true, "inBundle": true, - "license": "MIT", + "license": "BSD-2-Clause" + }, + "node_modules/npm/node_modules/npmlog": { + "version": "4.1.2", + "dev": true, + "inBundle": true, + "license": "ISC", "dependencies": { - "once": "^1.4.0" + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" } }, - "node_modules/npm/node_modules/env-paths": { - "version": "2.2.0", + "node_modules/npm/node_modules/number-is-nan": { + "version": "1.0.1", "dev": true, "inBundle": true, "license": "MIT", "engines": { - "node": ">=6" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/err-code": { - "version": "1.1.2", + "node_modules/npm/node_modules/oauth-sign": { + "version": "0.9.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "Apache-2.0", + "engines": { + "node": "*" + } }, - "node_modules/npm/node_modules/errno": { - "version": "0.1.7", + "node_modules/npm/node_modules/object-assign": { + "version": "4.1.1", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "prr": "~1.0.1" - }, - "bin": { - "errno": "cli.js" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/es-abstract": { - "version": "1.12.0", + "node_modules/npm/node_modules/object-keys": { + "version": "1.0.12", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "es-to-primitive": "^1.1.1", - "function-bind": "^1.1.1", - "has": "^1.0.1", - "is-callable": "^1.1.3", - "is-regex": "^1.0.4" - }, "engines": { "node": ">= 0.4" } }, - "node_modules/npm/node_modules/es-to-primitive": { - "version": "1.2.0", + "node_modules/npm/node_modules/object.getownpropertydescriptors": { + "version": "2.0.3", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" + "define-properties": "^1.1.2", + "es-abstract": "^1.5.1" }, "engines": { - "node": ">= 0.4" + "node": ">= 0.8" } }, - "node_modules/npm/node_modules/es6-promise": { - "version": "4.2.8", + "node_modules/npm/node_modules/once": { + "version": "1.4.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "ISC", + "dependencies": { + "wrappy": "1" + } }, - "node_modules/npm/node_modules/es6-promisify": { - "version": "5.0.0", + "node_modules/npm/node_modules/opener": { + "version": "1.5.1", "dev": true, "inBundle": true, - "license": "MIT", - "dependencies": { - "es6-promise": "^4.0.3" + "license": "(WTFPL OR MIT)", + "bin": { + "opener": "bin/opener-bin.js" } }, - "node_modules/npm/node_modules/escape-string-regexp": { - "version": "1.0.5", + "node_modules/npm/node_modules/os-homedir": { + "version": "1.0.2", "dev": true, "inBundle": true, "license": "MIT", "engines": { - "node": ">=0.8.0" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/execa": { - "version": "0.7.0", + "node_modules/npm/node_modules/os-locale": { + "version": "3.1.0", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "cross-spawn": "^5.0.1", - "get-stream": "^3.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" + "execa": "^1.0.0", + "lcid": "^2.0.0", + "mem": "^4.0.0" }, "engines": { - "node": ">=4" + "node": ">=6" } }, - "node_modules/npm/node_modules/execa/node_modules/get-stream": { - "version": "3.0.0", + "node_modules/npm/node_modules/os-locale/node_modules/cross-spawn": { + "version": "6.0.5", "dev": true, "inBundle": true, "license": "MIT", + "dependencies": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + }, "engines": { - "node": ">=4" + "node": ">=4.8" } }, - "node_modules/npm/node_modules/extend": { - "version": "3.0.2", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/npm/node_modules/extsprintf": { - "version": "1.3.0", - "dev": true, - "engines": [ - "node >=0.6.0" - ], - "inBundle": true, - "license": "MIT" - }, - "node_modules/npm/node_modules/fast-deep-equal": { - "version": "1.1.0", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/npm/node_modules/fast-json-stable-stringify": { - "version": "2.0.0", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/npm/node_modules/figgy-pudding": { - "version": "3.5.1", + "node_modules/npm/node_modules/os-locale/node_modules/execa": { + "version": "1.0.0", "dev": true, "inBundle": true, - "license": "ISC" + "license": "MIT", + "dependencies": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + }, + "engines": { + "node": ">=6" + } }, - "node_modules/npm/node_modules/find-npm-prefix": { + "node_modules/npm/node_modules/os-tmpdir": { "version": "1.0.2", "dev": true, "inBundle": true, - "license": "ISC" - }, - "node_modules/npm/node_modules/find-up": { - "version": "2.1.0", - "dev": true, - "inBundle": true, "license": "MIT", - "dependencies": { - "locate-path": "^2.0.0" - }, "engines": { - "node": ">=4" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/flush-write-stream": { - "version": "1.0.3", + "node_modules/npm/node_modules/osenv": { + "version": "0.1.5", "dev": true, "inBundle": true, - "license": "MIT", + "license": "ISC", "dependencies": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.4" + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" } }, - "node_modules/npm/node_modules/flush-write-stream/node_modules/readable-stream": { - "version": "2.3.6", + "node_modules/npm/node_modules/p-defer": { + "version": "1.0.0", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/flush-write-stream/node_modules/string_decoder": { - "version": "1.1.1", + "node_modules/npm/node_modules/p-finally": { + "version": "1.0.0", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "safe-buffer": "~5.1.0" + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/forever-agent": { - "version": "0.6.1", + "node_modules/npm/node_modules/p-is-promise": { + "version": "2.1.0", "dev": true, "inBundle": true, - "license": "Apache-2.0", + "license": "MIT", "engines": { - "node": "*" + "node": ">=6" } }, - "node_modules/npm/node_modules/form-data": { - "version": "2.3.2", + "node_modules/npm/node_modules/p-limit": { + "version": "1.2.0", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "1.0.6", - "mime-types": "^2.1.12" + "p-try": "^1.0.0" }, "engines": { - "node": ">= 0.12" + "node": ">=4" } }, - "node_modules/npm/node_modules/from2": { - "version": "2.3.0", + "node_modules/npm/node_modules/p-locate": { + "version": "2.0.0", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.0" + "p-limit": "^1.1.0" + }, + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/from2/node_modules/readable-stream": { - "version": "2.3.6", + "node_modules/npm/node_modules/p-try": { + "version": "1.0.0", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/from2/node_modules/string_decoder": { - "version": "1.1.1", + "node_modules/npm/node_modules/package-json": { + "version": "4.0.1", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "safe-buffer": "~5.1.0" + "got": "^6.7.1", + "registry-auth-token": "^3.0.1", + "registry-url": "^3.0.3", + "semver": "^5.1.0" + }, + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/fs-minipass": { - "version": "1.2.7", + "node_modules/npm/node_modules/pacote": { + "version": "9.5.12", "dev": true, "inBundle": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "minipass": "^2.6.0" + "bluebird": "^3.5.3", + "cacache": "^12.0.2", + "chownr": "^1.1.2", + "figgy-pudding": "^3.5.1", + "get-stream": "^4.1.0", + "glob": "^7.1.3", + "infer-owner": "^1.0.4", + "lru-cache": "^5.1.1", + "make-fetch-happen": "^5.0.0", + "minimatch": "^3.0.4", + "minipass": "^2.3.5", + "mississippi": "^3.0.0", + "mkdirp": "^0.5.1", + "normalize-package-data": "^2.4.0", + "npm-normalize-package-bin": "^1.0.0", + "npm-package-arg": "^6.1.0", + "npm-packlist": "^1.1.12", + "npm-pick-manifest": "^3.0.0", + "npm-registry-fetch": "^4.0.0", + "osenv": "^0.1.5", + "promise-inflight": "^1.0.1", + "promise-retry": "^1.1.1", + "protoduck": "^5.0.1", + "rimraf": "^2.6.2", + "safe-buffer": "^5.1.2", + "semver": "^5.6.0", + "ssri": "^6.0.1", + "tar": "^4.4.10", + "unique-filename": "^1.1.1", + "which": "^1.3.1" } }, - "node_modules/npm/node_modules/fs-minipass/node_modules/minipass": { + "node_modules/npm/node_modules/pacote/node_modules/minipass": { "version": "2.9.0", "dev": true, "inBundle": true, @@ -4884,36 +11469,18 @@ "yallist": "^3.0.0" } }, - "node_modules/npm/node_modules/fs-vacuum": { - "version": "1.2.10", - "dev": true, - "inBundle": true, - "license": "ISC", - "dependencies": { - "graceful-fs": "^4.1.2", - "path-is-inside": "^1.0.1", - "rimraf": "^2.5.2" - } - }, - "node_modules/npm/node_modules/fs-write-stream-atomic": { - "version": "1.0.10", + "node_modules/npm/node_modules/parallel-transform": { + "version": "1.1.0", "dev": true, "inBundle": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "graceful-fs": "^4.1.2", - "iferr": "^0.1.5", - "imurmurhash": "^0.1.4", - "readable-stream": "1 || 2" + "cyclist": "~0.2.2", + "inherits": "^2.0.3", + "readable-stream": "^2.1.5" } }, - "node_modules/npm/node_modules/fs-write-stream-atomic/node_modules/iferr": { - "version": "0.1.5", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/npm/node_modules/fs-write-stream-atomic/node_modules/readable-stream": { + "node_modules/npm/node_modules/parallel-transform/node_modules/readable-stream": { "version": "2.3.6", "dev": true, "inBundle": true, @@ -4928,7 +11495,7 @@ "util-deprecate": "~1.0.1" } }, - "node_modules/npm/node_modules/fs-write-stream-atomic/node_modules/string_decoder": { + "node_modules/npm/node_modules/parallel-transform/node_modules/string_decoder": { "version": "1.1.1", "dev": true, "inBundle": true, @@ -4937,1782 +11504,1940 @@ "safe-buffer": "~5.1.0" } }, - "node_modules/npm/node_modules/fs.realpath": { - "version": "1.0.0", - "dev": true, - "inBundle": true, - "license": "ISC" - }, - "node_modules/npm/node_modules/function-bind": { - "version": "1.1.1", + "node_modules/npm/node_modules/path-exists": { + "version": "3.0.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">=4" + } }, - "node_modules/npm/node_modules/gauge": { - "version": "2.7.4", + "node_modules/npm/node_modules/path-is-absolute": { + "version": "1.0.1", "dev": true, "inBundle": true, - "license": "ISC", - "dependencies": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" + "license": "MIT", + "engines": { + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/gauge/node_modules/aproba": { - "version": "1.2.0", + "node_modules/npm/node_modules/path-is-inside": { + "version": "1.0.2", "dev": true, "inBundle": true, - "license": "ISC" + "license": "(WTFPL OR MIT)" }, - "node_modules/npm/node_modules/gauge/node_modules/string-width": { - "version": "1.0.2", + "node_modules/npm/node_modules/path-key": { + "version": "2.0.1", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - }, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/npm/node_modules/genfun": { - "version": "5.0.0", + "node_modules/npm/node_modules/path-parse": { + "version": "1.0.6", "dev": true, "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/gentle-fs": { - "version": "2.3.0", + "node_modules/npm/node_modules/performance-now": { + "version": "2.1.0", "dev": true, "inBundle": true, - "license": "Artistic-2.0", - "dependencies": { - "aproba": "^1.1.2", - "chownr": "^1.1.2", - "cmd-shim": "^3.0.3", - "fs-vacuum": "^1.2.10", - "graceful-fs": "^4.1.11", - "iferr": "^0.1.5", - "infer-owner": "^1.0.4", - "mkdirp": "^0.5.1", - "path-is-inside": "^1.0.2", - "read-cmd-shim": "^1.0.1", - "slide": "^1.1.6" + "license": "MIT" + }, + "node_modules/npm/node_modules/pify": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/gentle-fs/node_modules/aproba": { - "version": "1.2.0", + "node_modules/npm/node_modules/prepend-http": { + "version": "1.0.4", "dev": true, "inBundle": true, - "license": "ISC" + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/npm/node_modules/gentle-fs/node_modules/iferr": { - "version": "0.1.5", + "node_modules/npm/node_modules/process-nextick-args": { + "version": "2.0.0", "dev": true, "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/get-caller-file": { - "version": "1.0.3", + "node_modules/npm/node_modules/promise-inflight": { + "version": "1.0.1", "dev": true, "inBundle": true, "license": "ISC" }, - "node_modules/npm/node_modules/get-stream": { - "version": "4.1.0", + "node_modules/npm/node_modules/promise-retry": { + "version": "1.1.1", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "pump": "^3.0.0" + "err-code": "^1.0.0", + "retry": "^0.10.0" }, "engines": { - "node": ">=6" + "node": ">=0.12" } }, - "node_modules/npm/node_modules/getpass": { - "version": "0.1.7", + "node_modules/npm/node_modules/promise-retry/node_modules/retry": { + "version": "0.10.1", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "assert-plus": "^1.0.0" + "engines": { + "node": "*" } }, - "node_modules/npm/node_modules/glob": { - "version": "7.1.6", + "node_modules/npm/node_modules/promzard": { + "version": "0.3.0", "dev": true, "inBundle": true, "license": "ISC", "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "read": "1" } }, - "node_modules/npm/node_modules/global-dirs": { - "version": "0.1.1", + "node_modules/npm/node_modules/proto-list": { + "version": "1.2.4", "dev": true, "inBundle": true, - "license": "MIT", - "dependencies": { - "ini": "^1.3.4" - }, - "engines": { - "node": ">=4" - } + "license": "ISC" }, - "node_modules/npm/node_modules/got": { - "version": "6.7.1", + "node_modules/npm/node_modules/protoduck": { + "version": "5.0.1", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "create-error-class": "^3.0.0", - "duplexer3": "^0.1.4", - "get-stream": "^3.0.0", - "is-redirect": "^1.0.0", - "is-retry-allowed": "^1.0.0", - "is-stream": "^1.0.0", - "lowercase-keys": "^1.0.0", - "safe-buffer": "^5.0.1", - "timed-out": "^4.0.0", - "unzip-response": "^2.0.1", - "url-parse-lax": "^1.0.0" - }, - "engines": { - "node": ">=4" + "genfun": "^5.0.0" } }, - "node_modules/npm/node_modules/got/node_modules/get-stream": { - "version": "3.0.0", + "node_modules/npm/node_modules/prr": { + "version": "1.0.1", "dev": true, "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=4" - } + "license": "MIT" }, - "node_modules/npm/node_modules/graceful-fs": { - "version": "4.2.4", + "node_modules/npm/node_modules/pseudomap": { + "version": "1.0.2", "dev": true, "inBundle": true, "license": "ISC" }, - "node_modules/npm/node_modules/har-schema": { - "version": "2.0.0", + "node_modules/npm/node_modules/psl": { + "version": "1.1.29", "dev": true, "inBundle": true, - "license": "ISC", - "engines": { - "node": ">=4" - } + "license": "MIT" }, - "node_modules/npm/node_modules/har-validator": { - "version": "5.1.0", + "node_modules/npm/node_modules/pump": { + "version": "3.0.0", "dev": true, "inBundle": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "ajv": "^5.3.0", - "har-schema": "^2.0.0" - }, - "engines": { - "node": ">=4" + "end-of-stream": "^1.1.0", + "once": "^1.3.1" } }, - "node_modules/npm/node_modules/has": { - "version": "1.0.3", + "node_modules/npm/node_modules/pumpify": { + "version": "1.5.1", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" + "duplexify": "^3.6.0", + "inherits": "^2.0.3", + "pump": "^2.0.0" } }, - "node_modules/npm/node_modules/has-flag": { - "version": "3.0.0", + "node_modules/npm/node_modules/pumpify/node_modules/pump": { + "version": "2.0.1", "dev": true, "inBundle": true, "license": "MIT", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/npm/node_modules/punycode": { + "version": "1.4.1", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/qrcode-terminal": { + "version": "0.12.0", + "dev": true, + "inBundle": true, + "bin": { + "qrcode-terminal": "bin/qrcode-terminal.js" + } + }, + "node_modules/npm/node_modules/qs": { + "version": "6.5.2", + "dev": true, + "inBundle": true, + "license": "BSD-3-Clause", "engines": { - "node": ">=4" + "node": ">=0.6" } }, - "node_modules/npm/node_modules/has-symbols": { - "version": "1.0.0", + "node_modules/npm/node_modules/query-string": { + "version": "6.8.2", "dev": true, "inBundle": true, "license": "MIT", + "dependencies": { + "decode-uri-component": "^0.2.0", + "split-on-first": "^1.0.0", + "strict-uri-encode": "^2.0.0" + }, "engines": { - "node": ">= 0.4" + "node": ">=6" } }, - "node_modules/npm/node_modules/has-unicode": { - "version": "2.0.1", + "node_modules/npm/node_modules/qw": { + "version": "1.0.1", "dev": true, "inBundle": true, "license": "ISC" }, - "node_modules/npm/node_modules/hosted-git-info": { - "version": "2.8.8", + "node_modules/npm/node_modules/rc": { + "version": "1.2.8", "dev": true, "inBundle": true, - "license": "ISC" + "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", + "dependencies": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "bin": { + "rc": "cli.js" + } }, - "node_modules/npm/node_modules/http-cache-semantics": { - "version": "3.8.1", + "node_modules/npm/node_modules/rc/node_modules/minimist": { + "version": "1.2.5", "dev": true, "inBundle": true, - "license": "BSD-2-Clause" + "license": "MIT" }, - "node_modules/npm/node_modules/http-proxy-agent": { - "version": "2.1.0", + "node_modules/npm/node_modules/read": { + "version": "1.0.7", "dev": true, "inBundle": true, - "license": "MIT", + "license": "ISC", "dependencies": { - "agent-base": "4", - "debug": "3.1.0" + "mute-stream": "~0.0.4" }, "engines": { - "node": ">= 4.5.0" + "node": ">=0.8" } }, - "node_modules/npm/node_modules/http-signature": { - "version": "1.2.0", + "node_modules/npm/node_modules/read-cmd-shim": { + "version": "1.0.5", "dev": true, "inBundle": true, - "license": "MIT", + "license": "ISC", "dependencies": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" + "graceful-fs": "^4.1.2" + } + }, + "node_modules/npm/node_modules/read-installed": { + "version": "4.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "debuglog": "^1.0.1", + "read-package-json": "^2.0.0", + "readdir-scoped-modules": "^1.0.0", + "semver": "2 || 3 || 4 || 5", + "slide": "~1.1.3", + "util-extend": "^1.0.1" }, - "engines": { - "node": ">=0.8", - "npm": ">=1.3.7" + "optionalDependencies": { + "graceful-fs": "^4.1.2" + } + }, + "node_modules/npm/node_modules/read-package-json": { + "version": "2.1.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.1", + "json-parse-better-errors": "^1.0.1", + "normalize-package-data": "^2.0.0", + "npm-normalize-package-bin": "^1.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.2" + } + }, + "node_modules/npm/node_modules/read-package-tree": { + "version": "5.3.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "read-package-json": "^2.0.0", + "readdir-scoped-modules": "^1.0.0", + "util-promisify": "^2.1.0" } }, - "node_modules/npm/node_modules/https-proxy-agent": { - "version": "2.2.4", + "node_modules/npm/node_modules/readable-stream": { + "version": "3.6.0", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "agent-base": "^4.3.0", - "debug": "^3.1.0" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" }, "engines": { - "node": ">= 4.5.0" + "node": ">= 6" } }, - "node_modules/npm/node_modules/humanize-ms": { - "version": "1.2.1", + "node_modules/npm/node_modules/readdir-scoped-modules": { + "version": "1.1.0", "dev": true, "inBundle": true, - "license": "MIT", + "license": "ISC", "dependencies": { - "ms": "^2.0.0" + "debuglog": "^1.0.1", + "dezalgo": "^1.0.0", + "graceful-fs": "^4.1.2", + "once": "^1.3.0" } }, - "node_modules/npm/node_modules/iconv-lite": { - "version": "0.4.23", + "node_modules/npm/node_modules/registry-auth-token": { + "version": "3.4.0", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" + "rc": "^1.1.6", + "safe-buffer": "^5.0.1" } }, - "node_modules/npm/node_modules/iferr": { - "version": "1.0.2", + "node_modules/npm/node_modules/registry-url": { + "version": "3.1.0", "dev": true, "inBundle": true, "license": "MIT", + "dependencies": { + "rc": "^1.0.1" + }, "engines": { - "node": ">=6.0.0" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/ignore-walk": { - "version": "3.0.3", + "node_modules/npm/node_modules/request": { + "version": "2.88.0", "dev": true, "inBundle": true, - "license": "ISC", + "license": "Apache-2.0", "dependencies": { - "minimatch": "^3.0.4" - } - }, - "node_modules/npm/node_modules/import-lazy": { - "version": "2.1.0", - "dev": true, - "inBundle": true, - "license": "MIT", + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.0", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.4.3", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + }, "engines": { - "node": ">=4" + "node": ">= 4" } }, - "node_modules/npm/node_modules/imurmurhash": { - "version": "0.1.4", + "node_modules/npm/node_modules/require-directory": { + "version": "2.1.1", "dev": true, "inBundle": true, "license": "MIT", "engines": { - "node": ">=0.8.19" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/infer-owner": { - "version": "1.0.4", + "node_modules/npm/node_modules/require-main-filename": { + "version": "1.0.1", "dev": true, "inBundle": true, "license": "ISC" }, - "node_modules/npm/node_modules/inflight": { - "version": "1.0.6", + "node_modules/npm/node_modules/resolve-from": { + "version": "4.0.0", "dev": true, "inBundle": true, - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" + "license": "MIT", + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/inherits": { - "version": "2.0.4", + "node_modules/npm/node_modules/retry": { + "version": "0.12.0", "dev": true, "inBundle": true, - "license": "ISC" + "license": "MIT", + "engines": { + "node": ">= 4" + } }, - "node_modules/npm/node_modules/ini": { - "version": "1.3.5", + "node_modules/npm/node_modules/rimraf": { + "version": "2.7.1", "dev": true, "inBundle": true, "license": "ISC", - "engines": { - "node": "*" + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" } }, - "node_modules/npm/node_modules/init-package-json": { - "version": "1.10.3", + "node_modules/npm/node_modules/run-queue": { + "version": "1.0.3", "dev": true, "inBundle": true, "license": "ISC", "dependencies": { - "glob": "^7.1.1", - "npm-package-arg": "^4.0.0 || ^5.0.0 || ^6.0.0", - "promzard": "^0.3.0", - "read": "~1.0.1", - "read-package-json": "1 || 2", - "semver": "2.x || 3.x || 4 || 5", - "validate-npm-package-license": "^3.0.1", - "validate-npm-package-name": "^3.0.0" + "aproba": "^1.1.1" } }, - "node_modules/npm/node_modules/invert-kv": { - "version": "2.0.0", + "node_modules/npm/node_modules/run-queue/node_modules/aproba": { + "version": "1.2.0", "dev": true, "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=4" - } + "license": "ISC" }, - "node_modules/npm/node_modules/ip": { - "version": "1.1.5", + "node_modules/npm/node_modules/safe-buffer": { + "version": "5.1.2", "dev": true, "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/ip-regex": { - "version": "2.1.0", + "node_modules/npm/node_modules/safer-buffer": { + "version": "2.1.2", "dev": true, "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=4" - } + "license": "MIT" }, - "node_modules/npm/node_modules/is-callable": { - "version": "1.1.4", + "node_modules/npm/node_modules/semver": { + "version": "5.7.1", "dev": true, "inBundle": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" + "license": "ISC", + "bin": { + "semver": "bin/semver" } }, - "node_modules/npm/node_modules/is-ci": { - "version": "1.2.1", + "node_modules/npm/node_modules/semver-diff": { + "version": "2.1.0", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "ci-info": "^1.5.0" + "semver": "^5.0.3" }, - "bin": { - "is-ci": "bin.js" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/is-ci/node_modules/ci-info": { - "version": "1.6.0", + "node_modules/npm/node_modules/set-blocking": { + "version": "2.0.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "ISC" }, - "node_modules/npm/node_modules/is-cidr": { + "node_modules/npm/node_modules/sha": { "version": "3.0.0", "dev": true, "inBundle": true, - "license": "BSD-2-Clause", + "license": "(BSD-2-Clause OR MIT)", "dependencies": { - "cidr-regex": "^2.0.10" - }, - "engines": { - "node": ">=6" + "graceful-fs": "^4.1.2" } }, - "node_modules/npm/node_modules/is-date-object": { - "version": "1.0.1", + "node_modules/npm/node_modules/shebang-command": { + "version": "1.2.0", "dev": true, "inBundle": true, "license": "MIT", + "dependencies": { + "shebang-regex": "^1.0.0" + }, "engines": { - "node": ">= 0.4" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/is-fullwidth-code-point": { + "node_modules/npm/node_modules/shebang-regex": { "version": "1.0.0", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "number-is-nan": "^1.0.0" - }, "engines": { "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/is-installed-globally": { - "version": "0.1.0", + "node_modules/npm/node_modules/signal-exit": { + "version": "3.0.2", "dev": true, "inBundle": true, - "license": "MIT", - "dependencies": { - "global-dirs": "^0.1.0", - "is-path-inside": "^1.0.0" - }, - "engines": { - "node": ">=4" - } + "license": "ISC" }, - "node_modules/npm/node_modules/is-npm": { - "version": "1.0.0", + "node_modules/npm/node_modules/slide": { + "version": "1.1.6", "dev": true, "inBundle": true, - "license": "MIT", + "license": "ISC", "engines": { - "node": ">=0.10.0" + "node": "*" } }, - "node_modules/npm/node_modules/is-obj": { - "version": "1.0.1", + "node_modules/npm/node_modules/smart-buffer": { + "version": "4.1.0", "dev": true, "inBundle": true, "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">= 6.0.0", + "npm": ">= 3.0.0" } }, - "node_modules/npm/node_modules/is-path-inside": { - "version": "1.0.1", + "node_modules/npm/node_modules/socks": { + "version": "2.3.3", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "path-is-inside": "^1.0.1" + "ip": "1.1.5", + "smart-buffer": "^4.1.0" }, "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/npm/node_modules/is-redirect": { - "version": "1.0.0", - "dev": true, - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" + "node": ">= 6.0.0", + "npm": ">= 3.0.0" } }, - "node_modules/npm/node_modules/is-regex": { - "version": "1.0.4", + "node_modules/npm/node_modules/socks-proxy-agent": { + "version": "4.0.2", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "has": "^1.0.1" + "agent-base": "~4.2.1", + "socks": "~2.3.2" }, "engines": { - "node": ">= 0.4" + "node": ">= 6" } }, - "node_modules/npm/node_modules/is-retry-allowed": { - "version": "1.2.0", + "node_modules/npm/node_modules/socks-proxy-agent/node_modules/agent-base": { + "version": "4.2.1", "dev": true, "inBundle": true, "license": "MIT", + "dependencies": { + "es6-promisify": "^5.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">= 4.0.0" } }, - "node_modules/npm/node_modules/is-stream": { - "version": "1.1.0", + "node_modules/npm/node_modules/sorted-object": { + "version": "2.0.1", + "dev": true, + "inBundle": true, + "license": "(WTFPL OR MIT)" + }, + "node_modules/npm/node_modules/sorted-union-stream": { + "version": "2.1.3", "dev": true, "inBundle": true, "license": "MIT", - "engines": { - "node": ">=0.10.0" + "dependencies": { + "from2": "^1.3.0", + "stream-iterate": "^1.1.0" } }, - "node_modules/npm/node_modules/is-symbol": { - "version": "1.0.2", + "node_modules/npm/node_modules/sorted-union-stream/node_modules/from2": { + "version": "1.3.0", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "has-symbols": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" + "inherits": "~2.0.1", + "readable-stream": "~1.1.10" } }, - "node_modules/npm/node_modules/is-typedarray": { - "version": "1.0.0", + "node_modules/npm/node_modules/sorted-union-stream/node_modules/isarray": { + "version": "0.0.1", "dev": true, "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/isarray": { - "version": "1.0.0", + "node_modules/npm/node_modules/sorted-union-stream/node_modules/readable-stream": { + "version": "1.1.14", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "node_modules/npm/node_modules/sorted-union-stream/node_modules/string_decoder": { + "version": "0.10.31", "dev": true, "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/isexe": { - "version": "2.0.0", + "node_modules/npm/node_modules/spdx-correct": { + "version": "3.0.0", "dev": true, "inBundle": true, - "license": "ISC" + "license": "Apache-2.0", + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } }, - "node_modules/npm/node_modules/isstream": { - "version": "0.1.2", + "node_modules/npm/node_modules/spdx-exceptions": { + "version": "2.1.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "CC-BY-3.0" }, - "node_modules/npm/node_modules/jsbn": { - "version": "0.1.1", + "node_modules/npm/node_modules/spdx-expression-parse": { + "version": "3.0.0", "dev": true, "inBundle": true, "license": "MIT", - "optional": true + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } }, - "node_modules/npm/node_modules/json-parse-better-errors": { - "version": "1.0.2", + "node_modules/npm/node_modules/spdx-license-ids": { + "version": "3.0.5", "dev": true, "inBundle": true, - "license": "MIT" + "license": "CC0-1.0" }, - "node_modules/npm/node_modules/json-schema": { - "version": "0.2.3", + "node_modules/npm/node_modules/split-on-first": { + "version": "1.1.0", "dev": true, - "inBundle": true + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } }, - "node_modules/npm/node_modules/json-schema-traverse": { - "version": "0.3.1", + "node_modules/npm/node_modules/sshpk": { + "version": "1.14.2", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "dependencies": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "dashdash": "^1.12.0", + "getpass": "^0.1.1", + "safer-buffer": "^2.0.2" + }, + "bin": { + "sshpk-conv": "bin/sshpk-conv", + "sshpk-sign": "bin/sshpk-sign", + "sshpk-verify": "bin/sshpk-verify" + }, + "engines": { + "node": ">=0.10.0" + }, + "optionalDependencies": { + "bcrypt-pbkdf": "^1.0.0", + "ecc-jsbn": "~0.1.1", + "jsbn": "~0.1.0", + "tweetnacl": "~0.14.0" + } }, - "node_modules/npm/node_modules/json-stringify-safe": { - "version": "5.0.1", + "node_modules/npm/node_modules/ssri": { + "version": "6.0.1", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "dependencies": { + "figgy-pudding": "^3.5.1" + } }, - "node_modules/npm/node_modules/jsonparse": { - "version": "1.3.1", + "node_modules/npm/node_modules/stream-each": { + "version": "1.2.2", "dev": true, - "engines": [ - "node >= 0.2.0" - ], "inBundle": true, - "license": "MIT" + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.1.0", + "stream-shift": "^1.0.0" + } }, - "node_modules/npm/node_modules/JSONStream": { - "version": "1.3.5", + "node_modules/npm/node_modules/stream-iterate": { + "version": "1.2.0", "dev": true, "inBundle": true, - "license": "(MIT OR Apache-2.0)", + "license": "MIT", "dependencies": { - "jsonparse": "^1.2.0", - "through": ">=2.2.7 <3" - }, - "bin": { - "JSONStream": "bin.js" - }, - "engines": { - "node": "*" + "readable-stream": "^2.1.5", + "stream-shift": "^1.0.0" } }, - "node_modules/npm/node_modules/jsprim": { - "version": "1.4.1", + "node_modules/npm/node_modules/stream-iterate/node_modules/readable-stream": { + "version": "2.3.6", "dev": true, - "engines": [ - "node >=0.6.0" - ], "inBundle": true, "license": "MIT", "dependencies": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, - "node_modules/npm/node_modules/latest-version": { - "version": "3.1.0", + "node_modules/npm/node_modules/stream-iterate/node_modules/string_decoder": { + "version": "1.1.1", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "package-json": "^4.0.0" - }, - "engines": { - "node": ">=4" + "safe-buffer": "~5.1.0" } }, - "node_modules/npm/node_modules/lazy-property": { + "node_modules/npm/node_modules/stream-shift": { "version": "1.0.0", "dev": true, "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/lcid": { + "node_modules/npm/node_modules/strict-uri-encode": { "version": "2.0.0", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "invert-kv": "^2.0.0" - }, "engines": { - "node": ">=6" + "node": ">=4" } }, - "node_modules/npm/node_modules/libcipm": { - "version": "4.0.7", + "node_modules/npm/node_modules/string_decoder": { + "version": "1.3.0", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "bin-links": "^1.1.2", - "bluebird": "^3.5.1", - "figgy-pudding": "^3.5.1", - "find-npm-prefix": "^1.0.2", - "graceful-fs": "^4.1.11", - "ini": "^1.3.5", - "lock-verify": "^2.0.2", - "mkdirp": "^0.5.1", - "npm-lifecycle": "^3.0.0", - "npm-logical-tree": "^1.2.1", - "npm-package-arg": "^6.1.0", - "pacote": "^9.1.0", - "read-package-json": "^2.0.13", - "rimraf": "^2.6.2", - "worker-farm": "^1.6.0" + "safe-buffer": "~5.2.0" } }, - "node_modules/npm/node_modules/libnpm": { - "version": "3.0.1", + "node_modules/npm/node_modules/string_decoder/node_modules/safe-buffer": { + "version": "5.2.0", "dev": true, "inBundle": true, - "license": "ISC", + "license": "MIT" + }, + "node_modules/npm/node_modules/string-width": { + "version": "2.1.1", + "dev": true, + "inBundle": true, + "license": "MIT", "dependencies": { - "bin-links": "^1.1.2", - "bluebird": "^3.5.3", - "find-npm-prefix": "^1.0.2", - "libnpmaccess": "^3.0.2", - "libnpmconfig": "^1.2.1", - "libnpmhook": "^5.0.3", - "libnpmorg": "^1.0.1", - "libnpmpublish": "^1.1.2", - "libnpmsearch": "^2.0.2", - "libnpmteam": "^1.0.2", - "lock-verify": "^2.0.2", - "npm-lifecycle": "^3.0.0", - "npm-logical-tree": "^1.2.1", - "npm-package-arg": "^6.1.0", - "npm-profile": "^4.0.2", - "npm-registry-fetch": "^4.0.0", - "npmlog": "^4.1.2", - "pacote": "^9.5.3", - "read-package-json": "^2.0.13", - "stringify-package": "^1.0.0" + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + }, + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/libnpmaccess": { - "version": "3.0.2", + "node_modules/npm/node_modules/string-width/node_modules/ansi-regex": { + "version": "3.0.0", "dev": true, "inBundle": true, - "license": "ISC", - "dependencies": { - "aproba": "^2.0.0", - "get-stream": "^4.0.0", - "npm-package-arg": "^6.1.0", - "npm-registry-fetch": "^4.0.0" + "license": "MIT", + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/libnpmconfig": { - "version": "1.2.1", + "node_modules/npm/node_modules/string-width/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", "dev": true, "inBundle": true, - "license": "ISC", - "dependencies": { - "figgy-pudding": "^3.5.1", - "find-up": "^3.0.0", - "ini": "^1.3.5" + "license": "MIT", + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/libnpmconfig/node_modules/find-up": { - "version": "3.0.0", + "node_modules/npm/node_modules/string-width/node_modules/strip-ansi": { + "version": "4.0.0", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "locate-path": "^3.0.0" + "ansi-regex": "^3.0.0" }, "engines": { - "node": ">=6" + "node": ">=4" } }, - "node_modules/npm/node_modules/libnpmconfig/node_modules/locate-path": { - "version": "3.0.0", + "node_modules/npm/node_modules/stringify-package": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/strip-ansi": { + "version": "3.0.1", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" + "ansi-regex": "^2.0.0" }, "engines": { - "node": ">=6" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/libnpmconfig/node_modules/p-limit": { - "version": "2.2.0", + "node_modules/npm/node_modules/strip-eof": { + "version": "1.0.0", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "p-try": "^2.0.0" - }, "engines": { - "node": ">=6" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/libnpmconfig/node_modules/p-locate": { - "version": "3.0.0", + "node_modules/npm/node_modules/strip-json-comments": { + "version": "2.0.1", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "p-limit": "^2.0.0" - }, "engines": { - "node": ">=6" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/libnpmconfig/node_modules/p-try": { - "version": "2.2.0", + "node_modules/npm/node_modules/supports-color": { + "version": "5.4.0", "dev": true, "inBundle": true, "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, "engines": { - "node": ">=6" + "node": ">=4" } }, - "node_modules/npm/node_modules/libnpmhook": { - "version": "5.0.3", + "node_modules/npm/node_modules/tar": { + "version": "4.4.13", "dev": true, "inBundle": true, "license": "ISC", "dependencies": { - "aproba": "^2.0.0", - "figgy-pudding": "^3.4.1", - "get-stream": "^4.0.0", - "npm-registry-fetch": "^4.0.0" + "chownr": "^1.1.1", + "fs-minipass": "^1.2.5", + "minipass": "^2.8.6", + "minizlib": "^1.2.1", + "mkdirp": "^0.5.0", + "safe-buffer": "^5.1.2", + "yallist": "^3.0.3" + }, + "engines": { + "node": ">=4.5" } }, - "node_modules/npm/node_modules/libnpmorg": { - "version": "1.0.1", + "node_modules/npm/node_modules/tar/node_modules/minipass": { + "version": "2.9.0", "dev": true, "inBundle": true, "license": "ISC", "dependencies": { - "aproba": "^2.0.0", - "figgy-pudding": "^3.4.1", - "get-stream": "^4.0.0", - "npm-registry-fetch": "^4.0.0" + "safe-buffer": "^5.1.2", + "yallist": "^3.0.0" } }, - "node_modules/npm/node_modules/libnpmpublish": { - "version": "1.1.2", + "node_modules/npm/node_modules/term-size": { + "version": "1.2.0", "dev": true, "inBundle": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "aproba": "^2.0.0", - "figgy-pudding": "^3.5.1", - "get-stream": "^4.0.0", - "lodash.clonedeep": "^4.5.0", - "normalize-package-data": "^2.4.0", - "npm-package-arg": "^6.1.0", - "npm-registry-fetch": "^4.0.0", - "semver": "^5.5.1", - "ssri": "^6.0.1" + "execa": "^0.7.0" + }, + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/libnpmsearch": { - "version": "2.0.2", + "node_modules/npm/node_modules/text-table": { + "version": "0.2.0", "dev": true, "inBundle": true, - "license": "ISC", + "license": "MIT" + }, + "node_modules/npm/node_modules/through": { + "version": "2.3.8", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/through2": { + "version": "2.0.3", + "dev": true, + "inBundle": true, + "license": "MIT", "dependencies": { - "figgy-pudding": "^3.5.1", - "get-stream": "^4.0.0", - "npm-registry-fetch": "^4.0.0" + "readable-stream": "^2.1.5", + "xtend": "~4.0.1" } }, - "node_modules/npm/node_modules/libnpmteam": { - "version": "1.0.2", + "node_modules/npm/node_modules/through2/node_modules/readable-stream": { + "version": "2.3.6", "dev": true, "inBundle": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "aproba": "^2.0.0", - "figgy-pudding": "^3.4.1", - "get-stream": "^4.0.0", - "npm-registry-fetch": "^4.0.0" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, - "node_modules/npm/node_modules/libnpx": { - "version": "10.2.2", + "node_modules/npm/node_modules/through2/node_modules/string_decoder": { + "version": "1.1.1", "dev": true, "inBundle": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "dotenv": "^5.0.1", - "npm-package-arg": "^6.0.0", - "rimraf": "^2.6.2", - "safe-buffer": "^5.1.0", - "update-notifier": "^2.3.0", - "which": "^1.3.0", - "y18n": "^4.0.0", - "yargs": "^11.0.0" - }, - "engines": { - "node": ">=4" + "safe-buffer": "~5.1.0" } }, - "node_modules/npm/node_modules/locate-path": { - "version": "2.0.0", + "node_modules/npm/node_modules/timed-out": { + "version": "4.0.1", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - }, "engines": { - "node": ">=4" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/lock-verify": { - "version": "2.1.0", + "node_modules/npm/node_modules/tiny-relative-date": { + "version": "1.3.0", "dev": true, "inBundle": true, - "license": "ISC", + "license": "MIT" + }, + "node_modules/npm/node_modules/tough-cookie": { + "version": "2.4.3", + "dev": true, + "inBundle": true, + "license": "BSD-3-Clause", "dependencies": { - "npm-package-arg": "^6.1.0", - "semver": "^5.4.1" + "psl": "^1.1.24", + "punycode": "^1.4.1" + }, + "engines": { + "node": ">=0.8" } }, - "node_modules/npm/node_modules/lockfile": { - "version": "1.0.4", + "node_modules/npm/node_modules/tunnel-agent": { + "version": "0.6.0", "dev": true, "inBundle": true, - "license": "ISC", + "license": "Apache-2.0", "dependencies": { - "signal-exit": "^3.0.2" + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" } }, - "node_modules/npm/node_modules/lodash._baseindexof": { - "version": "3.1.0", + "node_modules/npm/node_modules/tweetnacl": { + "version": "0.14.5", + "dev": true, + "inBundle": true, + "license": "Unlicense", + "optional": true + }, + "node_modules/npm/node_modules/typedarray": { + "version": "0.0.6", "dev": true, "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/lodash._baseuniq": { - "version": "4.6.0", + "node_modules/npm/node_modules/uid-number": { + "version": "0.0.6", "dev": true, "inBundle": true, - "license": "MIT", - "dependencies": { - "lodash._createset": "~4.0.0", - "lodash._root": "~3.0.0" + "license": "ISC", + "engines": { + "node": "*" } }, - "node_modules/npm/node_modules/lodash._bindcallback": { - "version": "3.0.1", + "node_modules/npm/node_modules/umask": { + "version": "1.1.0", "dev": true, "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/lodash._cacheindexof": { - "version": "3.0.2", + "node_modules/npm/node_modules/unique-filename": { + "version": "1.1.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "unique-slug": "^2.0.0" + } + }, + "node_modules/npm/node_modules/unique-slug": { + "version": "2.0.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4" + } }, - "node_modules/npm/node_modules/lodash._createcache": { - "version": "3.1.2", + "node_modules/npm/node_modules/unique-string": { + "version": "1.0.0", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "lodash._getnative": "^3.0.0" + "crypto-random-string": "^1.0.0" + }, + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/lodash._createset": { - "version": "4.0.3", + "node_modules/npm/node_modules/unpipe": { + "version": "1.0.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">= 0.8" + } }, - "node_modules/npm/node_modules/lodash._getnative": { - "version": "3.9.1", + "node_modules/npm/node_modules/unzip-response": { + "version": "2.0.1", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">=4" + } }, - "node_modules/npm/node_modules/lodash._root": { - "version": "3.0.1", + "node_modules/npm/node_modules/update-notifier": { + "version": "2.5.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "BSD-2-Clause", + "dependencies": { + "boxen": "^1.2.1", + "chalk": "^2.0.1", + "configstore": "^3.0.0", + "import-lazy": "^2.1.0", + "is-ci": "^1.0.10", + "is-installed-globally": "^0.1.0", + "is-npm": "^1.0.0", + "latest-version": "^3.0.0", + "semver-diff": "^2.0.0", + "xdg-basedir": "^3.0.0" + }, + "engines": { + "node": ">=4" + } }, - "node_modules/npm/node_modules/lodash.clonedeep": { - "version": "4.5.0", + "node_modules/npm/node_modules/url-parse-lax": { + "version": "1.0.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "dependencies": { + "prepend-http": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/npm/node_modules/lodash.restparam": { - "version": "3.6.1", + "node_modules/npm/node_modules/util-deprecate": { + "version": "1.0.2", "dev": true, "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/lodash.union": { - "version": "4.6.0", + "node_modules/npm/node_modules/util-extend": { + "version": "1.0.3", "dev": true, "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/lodash.uniq": { - "version": "4.5.0", + "node_modules/npm/node_modules/util-promisify": { + "version": "2.1.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "dependencies": { + "object.getownpropertydescriptors": "^2.0.3" + } }, - "node_modules/npm/node_modules/lodash.without": { - "version": "4.4.0", + "node_modules/npm/node_modules/uuid": { + "version": "3.3.3", "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "bin": { + "uuid": "bin/uuid" + } }, - "node_modules/npm/node_modules/lowercase-keys": { - "version": "1.0.1", + "node_modules/npm/node_modules/validate-npm-package-license": { + "version": "3.0.4", "dev": true, "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" + "license": "Apache-2.0", + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" } }, - "node_modules/npm/node_modules/lru-cache": { - "version": "5.1.1", + "node_modules/npm/node_modules/validate-npm-package-name": { + "version": "3.0.0", "dev": true, "inBundle": true, "license": "ISC", "dependencies": { - "yallist": "^3.0.2" + "builtins": "^1.0.3" } }, - "node_modules/npm/node_modules/make-dir": { - "version": "1.3.0", + "node_modules/npm/node_modules/verror": { + "version": "1.10.0", "dev": true, + "engines": [ + "node >=0.6.0" + ], "inBundle": true, "license": "MIT", "dependencies": { - "pify": "^3.0.0" - }, - "engines": { - "node": ">=4" + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" } }, - "node_modules/npm/node_modules/make-fetch-happen": { - "version": "5.0.2", + "node_modules/npm/node_modules/wcwidth": { + "version": "1.0.1", "dev": true, "inBundle": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "agentkeepalive": "^3.4.1", - "cacache": "^12.0.0", - "http-cache-semantics": "^3.8.1", - "http-proxy-agent": "^2.1.0", - "https-proxy-agent": "^2.2.3", - "lru-cache": "^5.1.1", - "mississippi": "^3.0.0", - "node-fetch-npm": "^2.0.2", - "promise-retry": "^1.1.1", - "socks-proxy-agent": "^4.0.0", - "ssri": "^6.0.0" + "defaults": "^1.0.3" } }, - "node_modules/npm/node_modules/map-age-cleaner": { - "version": "0.1.3", + "node_modules/npm/node_modules/which": { + "version": "1.3.1", "dev": true, "inBundle": true, - "license": "MIT", + "license": "ISC", "dependencies": { - "p-defer": "^1.0.0" + "isexe": "^2.0.0" }, - "engines": { - "node": ">=6" + "bin": { + "which": "bin/which" } }, - "node_modules/npm/node_modules/meant": { - "version": "1.0.1", + "node_modules/npm/node_modules/which-module": { + "version": "2.0.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "ISC" }, - "node_modules/npm/node_modules/mem": { - "version": "4.3.0", + "node_modules/npm/node_modules/wide-align": { + "version": "1.1.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "string-width": "^1.0.2" + } + }, + "node_modules/npm/node_modules/wide-align/node_modules/string-width": { + "version": "1.0.2", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "map-age-cleaner": "^0.1.1", - "mimic-fn": "^2.0.0", - "p-is-promise": "^2.0.0" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" }, "engines": { - "node": ">=6" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/mem/node_modules/mimic-fn": { - "version": "2.1.0", + "node_modules/npm/node_modules/widest-line": { + "version": "2.0.1", "dev": true, "inBundle": true, "license": "MIT", + "dependencies": { + "string-width": "^2.1.1" + }, "engines": { - "node": ">=6" + "node": ">=4" } }, - "node_modules/npm/node_modules/mime-db": { - "version": "1.35.0", + "node_modules/npm/node_modules/worker-farm": { + "version": "1.7.0", "dev": true, "inBundle": true, "license": "MIT", - "engines": { - "node": ">= 0.6" + "dependencies": { + "errno": "~0.1.7" } }, - "node_modules/npm/node_modules/mime-types": { - "version": "2.1.19", + "node_modules/npm/node_modules/wrap-ansi": { + "version": "2.1.0", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "mime-db": "~1.35.0" + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" }, "engines": { - "node": ">= 0.6" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/minimatch": { - "version": "3.0.4", + "node_modules/npm/node_modules/wrap-ansi/node_modules/string-width": { + "version": "1.0.2", "dev": true, "inBundle": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "brace-expansion": "^1.1.7" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" }, "engines": { - "node": "*" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/minizlib": { - "version": "1.3.3", + "node_modules/npm/node_modules/wrappy": { + "version": "1.0.2", "dev": true, "inBundle": true, - "license": "MIT", - "dependencies": { - "minipass": "^2.9.0" - } + "license": "ISC" }, - "node_modules/npm/node_modules/minizlib/node_modules/minipass": { - "version": "2.9.0", + "node_modules/npm/node_modules/write-file-atomic": { + "version": "2.4.3", "dev": true, "inBundle": true, "license": "ISC", "dependencies": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" + "graceful-fs": "^4.1.11", + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.2" } }, - "node_modules/npm/node_modules/mississippi": { + "node_modules/npm/node_modules/xdg-basedir": { "version": "3.0.0", "dev": true, - "inBundle": true, - "license": "BSD-2-Clause", - "dependencies": { - "concat-stream": "^1.5.0", - "duplexify": "^3.4.2", - "end-of-stream": "^1.1.0", - "flush-write-stream": "^1.0.0", - "from2": "^2.1.0", - "parallel-transform": "^1.1.0", - "pump": "^3.0.0", - "pumpify": "^1.3.3", - "stream-each": "^1.1.0", - "through2": "^2.0.0" - }, + "inBundle": true, + "license": "MIT", "engines": { - "node": ">=4.0.0" + "node": ">=4" } }, - "node_modules/npm/node_modules/mkdirp": { - "version": "0.5.5", + "node_modules/npm/node_modules/xtend": { + "version": "4.0.1", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "minimist": "^1.2.5" - }, - "bin": { - "mkdirp": "bin/cmd.js" + "engines": { + "node": ">=0.4" } }, - "node_modules/npm/node_modules/mkdirp/node_modules/minimist": { - "version": "1.2.5", + "node_modules/npm/node_modules/y18n": { + "version": "4.0.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "ISC" }, - "node_modules/npm/node_modules/move-concurrently": { - "version": "1.0.1", + "node_modules/npm/node_modules/yallist": { + "version": "3.0.3", "dev": true, "inBundle": true, - "license": "ISC", - "dependencies": { - "aproba": "^1.1.1", - "copy-concurrently": "^1.0.0", - "fs-write-stream-atomic": "^1.0.8", - "mkdirp": "^0.5.1", - "rimraf": "^2.5.4", - "run-queue": "^1.0.3" - } + "license": "ISC" }, - "node_modules/npm/node_modules/move-concurrently/node_modules/aproba": { - "version": "1.2.0", + "node_modules/npm/node_modules/yargs": { + "version": "11.1.1", "dev": true, "inBundle": true, - "license": "ISC" + "license": "MIT", + "dependencies": { + "cliui": "^4.0.0", + "decamelize": "^1.1.1", + "find-up": "^2.1.0", + "get-caller-file": "^1.0.1", + "os-locale": "^3.1.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1", + "yargs-parser": "^9.0.2" + } }, - "node_modules/npm/node_modules/ms": { - "version": "2.1.1", + "node_modules/npm/node_modules/yargs-parser": { + "version": "9.0.2", "dev": true, "inBundle": true, - "license": "MIT" + "license": "ISC", + "dependencies": { + "camelcase": "^4.1.0" + } }, - "node_modules/npm/node_modules/mute-stream": { - "version": "0.0.7", + "node_modules/npm/node_modules/yargs/node_modules/y18n": { + "version": "3.2.1", "dev": true, "inBundle": true, "license": "ISC" }, - "node_modules/npm/node_modules/nice-try": { - "version": "1.0.5", - "dev": true, - "inBundle": true, - "license": "MIT" + "node_modules/nwsapi": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.0.tgz", + "integrity": "sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==", + "dev": true }, - "node_modules/npm/node_modules/node-fetch-npm": { - "version": "2.0.2", + "node_modules/object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "encoding": "^0.1.11", - "json-parse-better-errors": "^1.0.0", - "safe-buffer": "^5.1.1" + "isobject": "^3.0.1" }, "engines": { - "node": ">=4" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/node-gyp": { + "node_modules/object.pick/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { "version": "5.1.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz", + "integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "env-paths": "^2.2.0", - "glob": "^7.1.4", - "graceful-fs": "^4.2.2", - "mkdirp": "^0.5.1", - "nopt": "^4.0.1", - "npmlog": "^4.1.2", - "request": "^2.88.0", - "rimraf": "^2.6.3", - "semver": "^5.7.1", - "tar": "^4.4.12", - "which": "^1.3.1" - }, - "bin": { - "node-gyp": "bin/node-gyp.js" + "mimic-fn": "^2.1.0" }, "engines": { - "node": ">= 6.0.0" + "node": ">=6" } }, - "node_modules/npm/node_modules/nopt": { - "version": "4.0.3", + "node_modules/optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", "dev": true, - "inBundle": true, - "license": "ISC", "dependencies": { - "abbrev": "1", - "osenv": "^0.1.4" + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" }, - "bin": { - "nopt": "bin/nopt.js" + "engines": { + "node": ">= 0.8.0" } }, - "node_modules/npm/node_modules/normalize-package-data": { - "version": "2.5.0", + "node_modules/p-each-series": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", + "integrity": "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-filter": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-filter/-/p-filter-2.1.0.tgz", + "integrity": "sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw==", "dev": true, - "inBundle": true, - "license": "BSD-2-Clause", "dependencies": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" + "p-map": "^2.0.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/npm/node_modules/normalize-package-data/node_modules/resolve": { - "version": "1.10.0", + "node_modules/p-is-promise": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-3.0.0.tgz", + "integrity": "sha512-Wo8VsW4IRQSKVXsJCn7TomUaVtyfjVDn3nUP7kE967BQk0CwFpdbZs0X0uk5sW9mkBa9eNM7hCMaG93WUAwxYQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "path-parse": "^1.0.6" + "p-try": "^1.0.0" + }, + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/npm-audit-report": { - "version": "1.3.2", + "node_modules/p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", "dev": true, - "inBundle": true, - "license": "ISC", "dependencies": { - "cli-table3": "^0.5.0", - "console-control-strings": "^1.1.0" + "p-limit": "^1.1.0" + }, + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/npm-bundled": { - "version": "1.1.1", + "node_modules/p-map": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", + "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/p-reduce": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-reduce/-/p-reduce-2.1.0.tgz", + "integrity": "sha512-2USApvnsutq8uoxZBGbbWM0JIYLiEMJ9RlaN7fAzVNb9OZN0SHjjTTfIcb667XynS5Y1VhwDJVDa72TnPzAYWw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-retry": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.5.0.tgz", + "integrity": "sha512-5Hwh4aVQSu6BEP+w2zKlVXtFAaYQe1qWuVADSgoeVlLjwe/Q/AMSoRR4MDeaAfu8llT+YNbEijWu/YF3m6avkg==", "dev": true, - "inBundle": true, - "license": "ISC", "dependencies": { - "npm-normalize-package-bin": "^1.0.1" + "@types/retry": "^0.12.0", + "retry": "^0.12.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/npm/node_modules/npm-cache-filename": { - "version": "1.0.2", + "node_modules/p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", "dev": true, - "inBundle": true, - "license": "ISC" + "engines": { + "node": ">=4" + } }, - "node_modules/npm/node_modules/npm-install-checks": { - "version": "3.0.2", + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, - "inBundle": true, - "license": "BSD-2-Clause", "dependencies": { - "semver": "^2.3.0 || 3.x || 4 || 5" + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "node_modules/npm/node_modules/npm-lifecycle": { - "version": "3.1.4", + "node_modules/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", "dev": true, - "inBundle": true, - "license": "Artistic-2.0", "dependencies": { - "byline": "^5.0.0", - "graceful-fs": "^4.1.15", - "node-gyp": "^5.0.2", - "resolve-from": "^4.0.0", - "slide": "^1.1.6", - "uid-number": "0.0.6", - "umask": "^1.1.0", - "which": "^1.3.1" + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" + }, + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/npm-logical-tree": { - "version": "1.2.1", + "node_modules/parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", + "dev": true + }, + "node_modules/path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", "dev": true, - "inBundle": true, - "license": "ISC" + "engines": { + "node": ">=4" + } }, - "node_modules/npm/node_modules/npm-normalize-package-bin": { + "node_modules/path-is-absolute": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true, - "inBundle": true, - "license": "ISC" + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/npm/node_modules/npm-package-arg": { - "version": "6.1.1", + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, - "inBundle": true, - "license": "ISC", - "dependencies": { - "hosted-git-info": "^2.7.1", - "osenv": "^0.1.5", - "semver": "^5.6.0", - "validate-npm-package-name": "^3.0.0" + "engines": { + "node": ">=8" } }, - "node_modules/npm/node_modules/npm-packlist": { - "version": "1.4.8", + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", "dev": true, - "inBundle": true, - "license": "ISC", "dependencies": { - "ignore-walk": "^3.0.1", - "npm-bundled": "^1.0.1", - "npm-normalize-package-bin": "^1.0.1" + "pify": "^3.0.0" + }, + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/npm-pick-manifest": { - "version": "3.0.2", + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, - "inBundle": true, - "license": "ISC", - "dependencies": { - "figgy-pudding": "^3.5.1", - "npm-package-arg": "^6.0.0", - "semver": "^5.4.1" + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/npm/node_modules/npm-profile": { - "version": "4.0.4", + "node_modules/pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", "dev": true, - "inBundle": true, - "license": "ISC", - "dependencies": { - "aproba": "^1.1.2 || 2", - "figgy-pudding": "^3.4.1", - "npm-registry-fetch": "^4.0.0" + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/npm-registry-fetch": { + "node_modules/pirates": { "version": "4.0.5", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", + "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", "dev": true, - "inBundle": true, - "license": "ISC", - "dependencies": { - "bluebird": "^3.5.1", - "figgy-pudding": "^3.4.1", - "JSONStream": "^1.3.4", - "lru-cache": "^5.1.1", - "make-fetch-happen": "^5.0.0", - "npm-package-arg": "^6.1.0", - "safe-buffer": "^5.2.0" + "engines": { + "node": ">= 6" } }, - "node_modules/npm/node_modules/npm-registry-fetch/node_modules/safe-buffer": { - "version": "5.2.1", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "inBundle": true, - "license": "MIT" - }, - "node_modules/npm/node_modules/npm-run-path": { - "version": "2.0.2", + "node_modules/pkg-conf": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-2.1.0.tgz", + "integrity": "sha1-ISZRTKbyq/69FoWW3xi6V4Z/AFg=", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "path-key": "^2.0.0" + "find-up": "^2.0.0", + "load-json-file": "^4.0.0" }, "engines": { "node": ">=4" } }, - "node_modules/npm/node_modules/npm-user-validate": { - "version": "1.0.0", - "dev": true, - "inBundle": true, - "license": "BSD-2-Clause" - }, - "node_modules/npm/node_modules/npmlog": { - "version": "4.1.2", + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, - "inBundle": true, - "license": "ISC", "dependencies": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "node_modules/npm/node_modules/number-is-nan": { - "version": "1.0.1", - "dev": true, - "inBundle": true, - "license": "MIT", + "find-up": "^4.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/npm/node_modules/oauth-sign": { - "version": "0.9.0", + "node_modules/pkg-dir/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, "engines": { - "node": "*" + "node": ">=8" } }, - "node_modules/npm/node_modules/object-assign": { - "version": "4.1.1", + "node_modules/pkg-dir/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, - "inBundle": true, - "license": "MIT", + "dependencies": { + "p-locate": "^4.1.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/npm/node_modules/object-keys": { - "version": "1.0.12", + "node_modules/pkg-dir/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, - "inBundle": true, - "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, "engines": { - "node": ">= 0.4" + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/npm/node_modules/object.getownpropertydescriptors": { - "version": "2.0.3", + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "define-properties": "^1.1.2", - "es-abstract": "^1.5.1" + "p-limit": "^2.2.0" }, "engines": { - "node": ">= 0.8" + "node": ">=8" } }, - "node_modules/npm/node_modules/once": { - "version": "1.4.0", + "node_modules/pkg-dir/node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, - "inBundle": true, - "license": "ISC", - "dependencies": { - "wrappy": "1" + "engines": { + "node": ">=6" } }, - "node_modules/npm/node_modules/opener": { - "version": "1.5.1", + "node_modules/pkg-dir/node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, - "inBundle": true, - "license": "(WTFPL OR MIT)", - "bin": { - "opener": "bin/opener-bin.js" + "engines": { + "node": ">=8" } }, - "node_modules/npm/node_modules/os-homedir": { - "version": "1.0.2", - "dev": true, - "inBundle": true, - "license": "MIT", + "node_modules/pony-cause": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pony-cause/-/pony-cause-1.1.1.tgz", + "integrity": "sha512-PxkIc/2ZpLiEzQXu5YRDOUgBlfGYBY8156HY5ZcRAwwonMk5W/MrJP2LLkG/hF7GEQzaHo2aS7ho6ZLCOvf+6g==", "engines": { - "node": ">=0.10.0" + "node": ">=12.0.0" } }, - "node_modules/npm/node_modules/os-locale": { - "version": "3.1.0", + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "execa": "^1.0.0", - "lcid": "^2.0.0", - "mem": "^4.0.0" - }, "engines": { - "node": ">=6" + "node": ">= 0.8.0" } }, - "node_modules/npm/node_modules/os-locale/node_modules/cross-spawn": { - "version": "6.0.5", + "node_modules/pretty-format": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", + "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^17.0.1" }, "engines": { - "node": ">=4.8" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/npm/node_modules/os-locale/node_modules/execa": { - "version": "1.0.0", + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - }, "engines": { - "node": ">=6" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/npm/node_modules/os-tmpdir": { - "version": "1.0.2", + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", "dev": true, - "inBundle": true, - "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=0.4.0" } }, - "node_modules/npm/node_modules/osenv": { - "version": "0.1.5", + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", "dev": true, - "inBundle": true, - "license": "ISC", "dependencies": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" } }, - "node_modules/npm/node_modules/p-defer": { - "version": "1.0.0", + "node_modules/psl": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", + "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", + "dev": true + }, + "node_modules/pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", "dev": true, - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=4" + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" } }, - "node_modules/npm/node_modules/p-finally": { - "version": "1.0.0", - "dev": true, - "inBundle": true, - "license": "MIT", + "node_modules/punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", "engines": { - "node": ">=4" + "node": ">=6" } }, - "node_modules/npm/node_modules/p-is-promise": { - "version": "2.1.0", + "node_modules/q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", "dev": true, - "inBundle": true, - "license": "MIT", "engines": { - "node": ">=6" + "node": ">=0.6.0", + "teleport": ">=0.2.0" } }, - "node_modules/npm/node_modules/p-limit": { - "version": "1.2.0", + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/quick-lru": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-1.1.0.tgz", + "integrity": "sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g=", "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "p-try": "^1.0.0" - }, "engines": { "node": ">=4" } }, - "node_modules/npm/node_modules/p-locate": { - "version": "2.0.0", + "node_modules/ramda": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.27.0.tgz", + "integrity": "sha512-pVzZdDpWwWqEVVLshWUHjNwuVP7SfcmPraYuqocJp1yo2U1R7P+5QAfDhdItkuoGqIBnBYrtPp7rEPqDn9HlZA==", + "dev": true + }, + "node_modules/randomatic": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", + "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "p-limit": "^1.1.0" + "is-number": "^4.0.0", + "kind-of": "^6.0.0", + "math-random": "^1.0.1" }, "engines": { - "node": ">=4" + "node": ">= 0.10.0" } }, - "node_modules/npm/node_modules/p-try": { - "version": "1.0.0", + "node_modules/randomatic/node_modules/is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", "dev": true, - "inBundle": true, - "license": "MIT", "engines": { - "node": ">=4" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/package-json": { - "version": "4.0.1", + "node_modules/randomatic/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "got": "^6.7.1", - "registry-auth-token": "^3.0.1", - "registry-url": "^3.0.3", - "semver": "^5.1.0" - }, "engines": { - "node": ">=4" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/pacote": { - "version": "9.5.12", + "node_modules/rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "bluebird": "^3.5.3", - "cacache": "^12.0.2", - "chownr": "^1.1.2", - "figgy-pudding": "^3.5.1", - "get-stream": "^4.1.0", - "glob": "^7.1.3", - "infer-owner": "^1.0.4", - "lru-cache": "^5.1.1", - "make-fetch-happen": "^5.0.0", - "minimatch": "^3.0.4", - "minipass": "^2.3.5", - "mississippi": "^3.0.0", - "mkdirp": "^0.5.1", - "normalize-package-data": "^2.4.0", - "npm-normalize-package-bin": "^1.0.0", - "npm-package-arg": "^6.1.0", - "npm-packlist": "^1.1.12", - "npm-pick-manifest": "^3.0.0", - "npm-registry-fetch": "^4.0.0", - "osenv": "^0.1.5", - "promise-inflight": "^1.0.1", - "promise-retry": "^1.1.1", - "protoduck": "^5.0.1", - "rimraf": "^2.6.2", - "safe-buffer": "^5.1.2", - "semver": "^5.6.0", - "ssri": "^6.0.1", - "tar": "^4.4.10", - "unique-filename": "^1.1.1", - "which": "^1.3.1" + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "bin": { + "rc": "cli.js" } }, - "node_modules/npm/node_modules/pacote/node_modules/minipass": { - "version": "2.9.0", + "node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "dev": true + }, + "node_modules/read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", "dev": true, - "inBundle": true, - "license": "ISC", "dependencies": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" + "load-json-file": "^4.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^3.0.0" + }, + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/parallel-transform": { - "version": "1.1.0", + "node_modules/read-pkg-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", + "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "cyclist": "~0.2.2", - "inherits": "^2.0.3", - "readable-stream": "^2.1.5" + "find-up": "^2.0.0", + "read-pkg": "^3.0.0" + }, + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/parallel-transform/node_modules/readable-stream": { - "version": "2.3.6", + "node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -6723,870 +13448,879 @@ "util-deprecate": "~1.0.1" } }, - "node_modules/npm/node_modules/parallel-transform/node_modules/string_decoder": { - "version": "1.1.1", + "node_modules/redent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", + "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/npm/node_modules/path-exists": { - "version": "3.0.0", - "dev": true, - "inBundle": true, - "license": "MIT", + "indent-string": "^3.0.0", + "strip-indent": "^2.0.0" + }, "engines": { "node": ">=4" } }, - "node_modules/npm/node_modules/path-is-absolute": { - "version": "1.0.1", + "node_modules/redeyed": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/redeyed/-/redeyed-2.1.1.tgz", + "integrity": "sha1-iYS1gV2ZyyIEacme7v/jiRPmzAs=", "dev": true, - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" + "dependencies": { + "esprima": "~4.0.0" } }, - "node_modules/npm/node_modules/path-is-inside": { - "version": "1.0.2", + "node_modules/regexpp": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz", + "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==", "dev": true, - "inBundle": true, - "license": "(WTFPL OR MIT)" + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } }, - "node_modules/npm/node_modules/path-key": { - "version": "2.0.1", + "node_modules/registry-auth-token": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.1.1.tgz", + "integrity": "sha512-9bKS7nTl9+/A1s7tnPeGrUpRcVY+LUh7bfFgzpndALdPfXQBfQV77rQVtqgUV3ti4vc/Ik81Ex8UJDWDQ12zQA==", "dev": true, - "inBundle": true, - "license": "MIT", + "dependencies": { + "rc": "^1.2.8" + }, "engines": { - "node": ">=4" + "node": ">=6.0.0" } }, - "node_modules/npm/node_modules/path-parse": { - "version": "1.0.6", + "node_modules/remarkable": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/remarkable/-/remarkable-1.7.4.tgz", + "integrity": "sha512-e6NKUXgX95whv7IgddywbeN/ItCkWbISmc2DiqHJb0wTrqZIexqdco5b8Z3XZoo/48IdNVKM9ZCvTPJ4F5uvhg==", "dev": true, - "inBundle": true, - "license": "MIT" + "dependencies": { + "argparse": "^1.0.10", + "autolinker": "~0.28.0" + }, + "bin": { + "remarkable": "bin/remarkable.js" + }, + "engines": { + "node": ">= 0.10.0" + } }, - "node_modules/npm/node_modules/performance-now": { - "version": "2.1.0", + "node_modules/repeat-element": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", + "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", "dev": true, - "inBundle": true, - "license": "MIT" + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/npm/node_modules/pify": { - "version": "3.0.0", + "node_modules/repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", "dev": true, - "inBundle": true, - "license": "MIT", "engines": { - "node": ">=4" + "node": ">=0.10" } }, - "node_modules/npm/node_modules/prepend-http": { - "version": "1.0.4", + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", "dev": true, - "inBundle": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/process-nextick-args": { - "version": "2.0.0", - "dev": true, - "inBundle": true, - "license": "MIT" + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/npm/node_modules/promise-inflight": { - "version": "1.0.1", + "node_modules/resolve": { + "version": "1.22.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz", + "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==", "dev": true, - "inBundle": true, - "license": "ISC" + "dependencies": { + "is-core-module": "^2.8.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "node_modules/npm/node_modules/promise-retry": { - "version": "1.1.1", + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "err-code": "^1.0.0", - "retry": "^0.10.0" + "resolve-from": "^5.0.0" }, "engines": { - "node": ">=0.12" + "node": ">=8" } }, - "node_modules/npm/node_modules/promise-retry/node_modules/retry": { - "version": "0.10.1", + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, - "inBundle": true, - "license": "MIT", "engines": { - "node": "*" + "node": ">=8" } }, - "node_modules/npm/node_modules/promzard": { - "version": "0.3.0", + "node_modules/resolve.exports": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.0.tgz", + "integrity": "sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ==", "dev": true, - "inBundle": true, - "license": "ISC", - "dependencies": { - "read": "1" + "engines": { + "node": ">=10" } }, - "node_modules/npm/node_modules/proto-list": { - "version": "1.2.4", - "dev": true, - "inBundle": true, - "license": "ISC" - }, - "node_modules/npm/node_modules/protoduck": { - "version": "5.0.1", + "node_modules/ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "genfun": "^5.0.0" + "engines": { + "node": ">=0.12" } }, - "node_modules/npm/node_modules/prr": { - "version": "1.0.1", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/npm/node_modules/pseudomap": { - "version": "1.0.2", + "node_modules/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", + "integrity": "sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs=", "dev": true, - "inBundle": true, - "license": "ISC" + "engines": { + "node": ">= 4" + } }, - "node_modules/npm/node_modules/psl": { - "version": "1.1.29", + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", "dev": true, - "inBundle": true, - "license": "MIT" + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } }, - "node_modules/npm/node_modules/pump": { - "version": "3.0.0", + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/npm/node_modules/pumpify": { - "version": "1.5.1", + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "dev": true, - "inBundle": true, - "license": "MIT", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], "dependencies": { - "duplexify": "^3.6.0", - "inherits": "^2.0.3", - "pump": "^2.0.0" + "queue-microtask": "^1.2.2" } }, - "node_modules/npm/node_modules/pumpify/node_modules/pump": { - "version": "2.0.1", + "node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" + "ret": "~0.1.10" } }, - "node_modules/npm/node_modules/punycode": { - "version": "1.4.1", - "dev": true, - "inBundle": true, - "license": "MIT" + "node_modules/safe-stable-stringify": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz", + "integrity": "sha512-ERq4hUjKDbJfE4+XtZLFPCDi8Vb1JqaxAPTxWFLBx8XcAlf9Bda/ZJdVezs/NAfsMQScyIlUMx+Yeu7P7rx5jw==" }, - "node_modules/npm/node_modules/qrcode-terminal": { - "version": "0.12.0", - "dev": true, - "inBundle": true, - "bin": { - "qrcode-terminal": "bin/qrcode-terminal.js" - } + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true }, - "node_modules/npm/node_modules/qs": { - "version": "6.5.2", + "node_modules/saxes": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", + "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", "dev": true, - "inBundle": true, - "license": "BSD-3-Clause", + "dependencies": { + "xmlchars": "^2.2.0" + }, "engines": { - "node": ">=0.6" + "node": ">=10" } }, - "node_modules/npm/node_modules/query-string": { - "version": "6.8.2", + "node_modules/semantic-release": { + "version": "17.4.3", + "resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-17.4.3.tgz", + "integrity": "sha512-lTOUSrkbaQ+TRs3+BmtJhLtPSyiO7iTGmh5SyuEFqNO8HQbQ4nzXg4UlPrDQasO/C0eFK/V0eCbOzJdjtKBOYw==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "decode-uri-component": "^0.2.0", - "split-on-first": "^1.0.0", - "strict-uri-encode": "^2.0.0" + "@semantic-release/commit-analyzer": "^8.0.0", + "@semantic-release/error": "^2.2.0", + "@semantic-release/github": "^7.0.0", + "@semantic-release/npm": "^7.0.0", + "@semantic-release/release-notes-generator": "^9.0.0", + "aggregate-error": "^3.0.0", + "cosmiconfig": "^7.0.0", + "debug": "^4.0.0", + "env-ci": "^5.0.0", + "execa": "^5.0.0", + "figures": "^3.0.0", + "find-versions": "^4.0.0", + "get-stream": "^6.0.0", + "git-log-parser": "^1.2.0", + "hook-std": "^2.0.0", + "hosted-git-info": "^4.0.0", + "lodash": "^4.17.21", + "marked": "^2.0.0", + "marked-terminal": "^4.1.1", + "micromatch": "^4.0.2", + "p-each-series": "^2.1.0", + "p-reduce": "^2.0.0", + "read-pkg-up": "^7.0.0", + "resolve-from": "^5.0.0", + "semver": "^7.3.2", + "semver-diff": "^3.1.1", + "signale": "^1.2.1", + "yargs": "^16.2.0" + }, + "bin": { + "semantic-release": "bin/semantic-release.js" }, "engines": { - "node": ">=6" + "node": ">=10.18" } }, - "node_modules/npm/node_modules/qw": { - "version": "1.0.1", - "dev": true, - "inBundle": true, - "license": "ISC" - }, - "node_modules/npm/node_modules/rc": { - "version": "1.2.8", + "node_modules/semantic-release/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, - "inBundle": true, - "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", "dependencies": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" }, - "bin": { - "rc": "cli.js" + "engines": { + "node": ">=8" } }, - "node_modules/npm/node_modules/rc/node_modules/minimist": { - "version": "1.2.5", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/npm/node_modules/read": { - "version": "1.0.7", + "node_modules/semantic-release/node_modules/hosted-git-info": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", + "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==", "dev": true, - "inBundle": true, - "license": "ISC", "dependencies": { - "mute-stream": "~0.0.4" + "lru-cache": "^6.0.0" }, "engines": { - "node": ">=0.8" + "node": ">=10" } }, - "node_modules/npm/node_modules/read-cmd-shim": { - "version": "1.0.5", + "node_modules/semantic-release/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, - "inBundle": true, - "license": "ISC", "dependencies": { - "graceful-fs": "^4.1.2" + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/npm/node_modules/read-installed": { - "version": "4.0.3", + "node_modules/semantic-release/node_modules/marked": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/marked/-/marked-2.0.3.tgz", + "integrity": "sha512-5otztIIcJfPc2qGTN8cVtOJEjNJZ0jwa46INMagrYfk0EvqtRuEHLsEe0LrFS0/q+ZRKT0+kXK7P2T1AN5lWRA==", "dev": true, - "inBundle": true, - "license": "ISC", - "dependencies": { - "debuglog": "^1.0.1", - "read-package-json": "^2.0.0", - "readdir-scoped-modules": "^1.0.0", - "semver": "2 || 3 || 4 || 5", - "slide": "~1.1.3", - "util-extend": "^1.0.1" + "bin": { + "marked": "bin/marked" }, - "optionalDependencies": { - "graceful-fs": "^4.1.2" + "engines": { + "node": ">= 8.16.2" } }, - "node_modules/npm/node_modules/read-package-json": { - "version": "2.1.1", + "node_modules/semantic-release/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, - "inBundle": true, - "license": "ISC", "dependencies": { - "glob": "^7.1.1", - "json-parse-better-errors": "^1.0.1", - "normalize-package-data": "^2.0.0", - "npm-normalize-package-bin": "^1.0.0" + "p-try": "^2.0.0" }, - "optionalDependencies": { - "graceful-fs": "^4.1.2" + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/npm/node_modules/read-package-tree": { - "version": "5.3.1", + "node_modules/semantic-release/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, - "inBundle": true, - "license": "ISC", "dependencies": { - "read-package-json": "^2.0.0", - "readdir-scoped-modules": "^1.0.0", - "util-promisify": "^2.1.0" + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/npm/node_modules/readable-stream": { - "version": "3.6.0", + "node_modules/semantic-release/node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, "engines": { - "node": ">= 6" + "node": ">=6" } }, - "node_modules/npm/node_modules/readdir-scoped-modules": { - "version": "1.1.0", + "node_modules/semantic-release/node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, - "inBundle": true, - "license": "ISC", "dependencies": { - "debuglog": "^1.0.1", - "dezalgo": "^1.0.0", - "graceful-fs": "^4.1.2", - "once": "^1.3.0" + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/npm/node_modules/registry-auth-token": { - "version": "3.4.0", + "node_modules/semantic-release/node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "rc": "^1.1.6", - "safe-buffer": "^5.0.1" + "engines": { + "node": ">=8" } }, - "node_modules/npm/node_modules/registry-url": { - "version": "3.1.0", + "node_modules/semantic-release/node_modules/read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "rc": "^1.0.1" + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/npm/node_modules/request": { - "version": "2.88.0", + "node_modules/semantic-release/node_modules/read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.0", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.4.3", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" }, "engines": { - "node": ">= 4" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/npm/node_modules/require-directory": { - "version": "2.1.1", + "node_modules/semantic-release/node_modules/read-pkg/node_modules/type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", "dev": true, - "inBundle": true, - "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/npm/node_modules/require-main-filename": { - "version": "1.0.1", - "dev": true, - "inBundle": true, - "license": "ISC" - }, - "node_modules/npm/node_modules/resolve-from": { - "version": "4.0.0", + "node_modules/semantic-release/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", "dev": true, - "inBundle": true, - "license": "MIT", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, "engines": { - "node": ">=4" + "node": ">=10" } }, - "node_modules/npm/node_modules/retry": { - "version": "0.12.0", + "node_modules/semantic-release/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", "dev": true, - "inBundle": true, - "license": "MIT", "engines": { - "node": ">= 4" + "node": ">=8" } }, - "node_modules/npm/node_modules/rimraf": { - "version": "2.7.1", + "node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", "dev": true, - "inBundle": true, - "license": "ISC", - "dependencies": { - "glob": "^7.1.3" - }, "bin": { - "rimraf": "bin.js" + "semver": "bin/semver" } }, - "node_modules/npm/node_modules/run-queue": { - "version": "1.0.3", + "node_modules/semver-diff": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", + "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", "dev": true, - "inBundle": true, - "license": "ISC", "dependencies": { - "aproba": "^1.1.1" + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/npm/node_modules/run-queue/node_modules/aproba": { - "version": "1.2.0", - "dev": true, - "inBundle": true, - "license": "ISC" - }, - "node_modules/npm/node_modules/safe-buffer": { - "version": "5.1.2", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/npm/node_modules/safer-buffer": { - "version": "2.1.2", + "node_modules/semver-diff/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true, - "inBundle": true, - "license": "MIT" + "bin": { + "semver": "bin/semver.js" + } }, - "node_modules/npm/node_modules/semver": { - "version": "5.7.1", + "node_modules/semver-regex": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.3.tgz", + "integrity": "sha512-Aqi54Mk9uYTjVexLnR67rTyBusmwd04cLkHy9hNvk3+G3nT2Oyg7E0l4XVbOaNwIvQ3hHeYxGcyEy+mKreyBFQ==", "dev": true, - "inBundle": true, - "license": "ISC", - "bin": { - "semver": "bin/semver" + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/npm/node_modules/semver-diff": { - "version": "2.1.0", + "node_modules/set-getter": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/set-getter/-/set-getter-0.1.1.tgz", + "integrity": "sha512-9sVWOy+gthr+0G9DzqqLaYNA7+5OKkSmcqjL9cBpDEaZrr3ShQlyX2cZ/O/ozE41oxn/Tt0LGEM/w4Rub3A3gw==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "semver": "^5.0.3" + "to-object-path": "^0.3.0" }, "engines": { "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/set-blocking": { + "node_modules/shebang-command": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, - "inBundle": true, - "license": "ISC" + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } }, - "node_modules/npm/node_modules/sha": { + "node_modules/shebang-regex": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, - "inBundle": true, - "license": "(BSD-2-Clause OR MIT)", - "dependencies": { - "graceful-fs": "^4.1.2" + "engines": { + "node": ">=8" } }, - "node_modules/npm/node_modules/shebang-command": { - "version": "1.2.0", + "node_modules/signal-exit": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", + "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", + "dev": true + }, + "node_modules/signale": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/signale/-/signale-1.4.0.tgz", + "integrity": "sha512-iuh+gPf28RkltuJC7W5MRi6XAjTDCAPC/prJUpQoG4vIP3MJZ+GTydVnodXA7pwvTKb2cA0m9OFZW/cdWy/I/w==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "shebang-regex": "^1.0.0" + "chalk": "^2.3.2", + "figures": "^2.0.0", + "pkg-conf": "^2.1.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=6" } }, - "node_modules/npm/node_modules/shebang-regex": { - "version": "1.0.0", + "node_modules/signale/node_modules/figures": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", + "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", "dev": true, - "inBundle": true, - "license": "MIT", + "dependencies": { + "escape-string-regexp": "^1.0.5" + }, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/npm/node_modules/signal-exit": { - "version": "3.0.2", - "dev": true, - "inBundle": true, - "license": "ISC" - }, - "node_modules/npm/node_modules/slide": { - "version": "1.1.6", - "dev": true, - "inBundle": true, - "license": "ISC", + "node_modules/simple-eval": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/simple-eval/-/simple-eval-1.0.0.tgz", + "integrity": "sha512-kpKJR+bqTscgC0xuAl2xHN6bB12lHjC2DCUfqjAx19bQyO3R2EVLOurm3H9AUltv/uFVcSCVNc6faegR+8NYLw==", + "dependencies": { + "jsep": "^1.1.2" + }, "engines": { - "node": "*" + "node": ">=12" } }, - "node_modules/npm/node_modules/smart-buffer": { - "version": "4.1.0", + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, - "inBundle": true, - "license": "MIT", "engines": { - "node": ">= 6.0.0", - "npm": ">= 3.0.0" + "node": ">=8" } }, - "node_modules/npm/node_modules/socks": { - "version": "2.3.3", + "node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "ip": "1.1.5", - "smart-buffer": "^4.1.0" + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" }, "engines": { - "node": ">= 6.0.0", - "npm": ">= 3.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" } }, - "node_modules/npm/node_modules/socks-proxy-agent": { - "version": "4.0.2", + "node_modules/slice-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "agent-base": "~4.2.1", - "socks": "~2.3.2" + "color-convert": "^2.0.1" }, "engines": { - "node": ">= 6" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/npm/node_modules/socks-proxy-agent/node_modules/agent-base": { - "version": "4.2.1", + "node_modules/slice-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "es6-promisify": "^5.0.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">= 4.0.0" + "node": ">=7.0.0" } }, - "node_modules/npm/node_modules/sorted-object": { - "version": "2.0.1", - "dev": true, - "inBundle": true, - "license": "(WTFPL OR MIT)" - }, - "node_modules/npm/node_modules/sorted-union-stream": { - "version": "2.1.3", - "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "from2": "^1.3.0", - "stream-iterate": "^1.1.0" - } + "node_modules/slice-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, - "node_modules/npm/node_modules/sorted-union-stream/node_modules/from2": { - "version": "1.3.0", + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "inherits": "~2.0.1", - "readable-stream": "~1.1.10" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/sorted-union-stream/node_modules/isarray": { - "version": "0.0.1", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/npm/node_modules/sorted-union-stream/node_modules/readable-stream": { - "version": "1.1.14", + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" } }, - "node_modules/npm/node_modules/sorted-union-stream/node_modules/string_decoder": { - "version": "0.10.31", - "dev": true, - "inBundle": true, - "license": "MIT" + "node_modules/spawn-error-forwarder": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/spawn-error-forwarder/-/spawn-error-forwarder-1.0.0.tgz", + "integrity": "sha1-Gv2Uc46ZmwNG17n8NzvlXgdXcCk=", + "dev": true }, - "node_modules/npm/node_modules/spdx-correct": { - "version": "3.0.0", + "node_modules/spdx-correct": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", + "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { "spdx-expression-parse": "^3.0.0", "spdx-license-ids": "^3.0.0" } }, - "node_modules/npm/node_modules/spdx-exceptions": { - "version": "2.1.0", - "dev": true, - "inBundle": true, - "license": "CC-BY-3.0" + "node_modules/spdx-exceptions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", + "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", + "dev": true }, - "node_modules/npm/node_modules/spdx-expression-parse": { + "node_modules/spdx-expression-parse": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", + "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { "spdx-exceptions": "^2.1.0", "spdx-license-ids": "^3.0.0" } }, - "node_modules/npm/node_modules/spdx-license-ids": { + "node_modules/spdx-license-ids": { "version": "3.0.5", - "dev": true, - "inBundle": true, - "license": "CC0-1.0" - }, - "node_modules/npm/node_modules/split-on-first": { - "version": "1.1.0", - "dev": true, - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=6" - } + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz", + "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==", + "dev": true }, - "node_modules/npm/node_modules/sshpk": { - "version": "1.14.2", + "node_modules/split": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", + "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "dashdash": "^1.12.0", - "getpass": "^0.1.1", - "safer-buffer": "^2.0.2" - }, - "bin": { - "sshpk-conv": "bin/sshpk-conv", - "sshpk-sign": "bin/sshpk-sign", - "sshpk-verify": "bin/sshpk-verify" + "through": "2" }, "engines": { - "node": ">=0.10.0" - }, - "optionalDependencies": { - "bcrypt-pbkdf": "^1.0.0", - "ecc-jsbn": "~0.1.1", - "jsbn": "~0.1.0", - "tweetnacl": "~0.14.0" - } - }, - "node_modules/npm/node_modules/ssri": { - "version": "6.0.1", - "dev": true, - "inBundle": true, - "license": "ISC", - "dependencies": { - "figgy-pudding": "^3.5.1" + "node": "*" } }, - "node_modules/npm/node_modules/stream-each": { - "version": "1.2.2", + "node_modules/split2": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-2.2.0.tgz", + "integrity": "sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "end-of-stream": "^1.1.0", - "stream-shift": "^1.0.0" + "through2": "^2.0.2" } }, - "node_modules/npm/node_modules/stream-iterate": { - "version": "1.2.0", + "node_modules/split2/node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "readable-stream": "^2.1.5", - "stream-shift": "^1.0.0" + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" } }, - "node_modules/npm/node_modules/stream-iterate/node_modules/readable-stream": { - "version": "2.3.6", - "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true }, - "node_modules/npm/node_modules/stream-iterate/node_modules/string_decoder": { - "version": "1.1.1", + "node_modules/stack-utils": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.5.tgz", + "integrity": "sha512-xrQcmYhOsn/1kX+Vraq+7j4oE2j/6BFscZ0etmYg81xuM8Gq0022Pxb8+IqgOFUIaxHs0KaSb7T1+OegiNrNFA==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "safe-buffer": "~5.1.0" + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" } }, - "node_modules/npm/node_modules/stream-shift": { - "version": "1.0.0", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/npm/node_modules/strict-uri-encode": { + "node_modules/stack-utils/node_modules/escape-string-regexp": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", "dev": true, - "inBundle": true, - "license": "MIT", "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/npm/node_modules/string_decoder": { - "version": "1.3.0", + "node_modules/stream-combiner2": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", + "integrity": "sha1-+02KFCDqNidk4hrUeAOXvry0HL4=", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "safe-buffer": "~5.2.0" + "duplexer2": "~0.1.0", + "readable-stream": "^2.0.2" } }, - "node_modules/npm/node_modules/string_decoder/node_modules/safe-buffer": { - "version": "5.2.0", + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, - "inBundle": true, - "license": "MIT" + "dependencies": { + "safe-buffer": "~5.1.0" + } }, - "node_modules/npm/node_modules/string-width": { - "version": "2.1.1", + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" }, "engines": { - "node": ">=4" + "node": ">=10" } }, - "node_modules/npm/node_modules/string-width/node_modules/ansi-regex": { - "version": "3.0.0", + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, - "inBundle": true, - "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/npm/node_modules/string-width/node_modules/is-fullwidth-code-point": { - "version": "2.0.0", + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, - "inBundle": true, - "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/npm/node_modules/string-width/node_modules/strip-ansi": { - "version": "4.0.0", + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^3.0.0" - }, "engines": { "node": ">=4" } }, - "node_modules/npm/node_modules/stringify-package": { - "version": "1.0.1", + "node_modules/strip-color": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/strip-color/-/strip-color-0.1.0.tgz", + "integrity": "sha1-EG9l09PmotlAHKwOsM6LinArT3s=", "dev": true, - "inBundle": true, - "license": "ISC" + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/npm/node_modules/strip-ansi": { - "version": "3.0.1", + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^2.0.0" - }, "engines": { - "node": ">=0.10.0" + "node": ">=6" } }, - "node_modules/npm/node_modules/strip-eof": { - "version": "1.0.0", + "node_modules/strip-indent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", + "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", "dev": true, - "inBundle": true, - "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/npm/node_modules/strip-json-comments": { + "node_modules/strip-json-comments": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", "dev": true, - "inBundle": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/supports-color": { - "version": "5.4.0", + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { "has-flag": "^3.0.0" }, @@ -7594,3578 +14328,5348 @@ "node": ">=4" } }, - "node_modules/npm/node_modules/tar": { - "version": "4.4.13", + "node_modules/supports-hyperlinks": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.2.0.tgz", + "integrity": "sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ==", "dev": true, - "inBundle": true, - "license": "ISC", "dependencies": { - "chownr": "^1.1.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.8.6", - "minizlib": "^1.2.1", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.2", - "yallist": "^3.0.3" + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" }, "engines": { - "node": ">=4.5" + "node": ">=8" } }, - "node_modules/npm/node_modules/tar/node_modules/minipass": { - "version": "2.9.0", + "node_modules/supports-hyperlinks/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "inBundle": true, - "license": "ISC", - "dependencies": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" + "engines": { + "node": ">=8" } }, - "node_modules/npm/node_modules/term-size": { - "version": "1.2.0", + "node_modules/supports-hyperlinks/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "execa": "^0.7.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/npm/node_modules/text-table": { - "version": "0.2.0", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/npm/node_modules/through": { - "version": "2.3.8", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/npm/node_modules/through2": { - "version": "2.0.3", + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "readable-stream": "^2.1.5", - "xtend": "~4.0.1" + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/npm/node_modules/through2/node_modules/readable-stream": { - "version": "2.3.6", - "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } + "node_modules/symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true }, - "node_modules/npm/node_modules/through2/node_modules/string_decoder": { - "version": "1.1.1", + "node_modules/table": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/table/-/table-6.7.1.tgz", + "integrity": "sha512-ZGum47Yi6KOOFDE8m223td53ath2enHcYLgOCjGr5ngu8bdIARQk6mN/wRMv4yMRcHnCSnHbCEha4sobQx5yWg==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "safe-buffer": "~5.1.0" + "ajv": "^8.0.1", + "lodash.clonedeep": "^4.5.0", + "lodash.truncate": "^4.4.2", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10.0.0" } }, - "node_modules/npm/node_modules/timed-out": { - "version": "4.0.1", + "node_modules/table/node_modules/ajv": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.5.0.tgz", + "integrity": "sha512-Y2l399Tt1AguU3BPRP9Fn4eN+Or+StUGWCUpbnFyXSo8NZ9S4uj+AG2pjs5apK+ZMOwYOz1+a+VKvKH7CudXgQ==", "dev": true, - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/npm/node_modules/tiny-relative-date": { - "version": "1.3.0", - "dev": true, - "inBundle": true, - "license": "MIT" + "node_modules/table/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true }, - "node_modules/npm/node_modules/tough-cookie": { - "version": "2.4.3", + "node_modules/temp-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", + "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", "dev": true, - "inBundle": true, - "license": "BSD-3-Clause", - "dependencies": { - "psl": "^1.1.24", - "punycode": "^1.4.1" - }, "engines": { - "node": ">=0.8" + "node": ">=8" } }, - "node_modules/npm/node_modules/tunnel-agent": { - "version": "0.6.0", + "node_modules/tempy": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/tempy/-/tempy-0.5.0.tgz", + "integrity": "sha512-VEY96x7gbIRfsxqsafy2l5yVxxp3PhwAGoWMyC2D2Zt5DmEv+2tGiPOrquNRpf21hhGnKLVEsuqleqiZmKG/qw==", "dev": true, - "inBundle": true, - "license": "Apache-2.0", "dependencies": { - "safe-buffer": "^5.0.1" + "is-stream": "^2.0.0", + "temp-dir": "^2.0.0", + "type-fest": "^0.12.0", + "unique-string": "^2.0.0" }, "engines": { - "node": "*" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/npm/node_modules/tweetnacl": { - "version": "0.14.5", - "dev": true, - "inBundle": true, - "license": "Unlicense", - "optional": true - }, - "node_modules/npm/node_modules/typedarray": { - "version": "0.0.6", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/npm/node_modules/uid-number": { - "version": "0.0.6", + "node_modules/tempy/node_modules/type-fest": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.12.0.tgz", + "integrity": "sha512-53RyidyjvkGpnWPMF9bQgFtWp+Sl8O2Rp13VavmJgfAP9WWG6q6TkrKU8iyJdnwnfgHI6k2hTlgqH4aSdjoTbg==", "dev": true, - "inBundle": true, - "license": "ISC", "engines": { - "node": "*" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/npm/node_modules/umask": { - "version": "1.1.0", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/npm/node_modules/unique-filename": { - "version": "1.1.1", + "node_modules/terminal-link": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", + "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", "dev": true, - "inBundle": true, - "license": "ISC", "dependencies": { - "unique-slug": "^2.0.0" + "ansi-escapes": "^4.2.1", + "supports-hyperlinks": "^2.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/npm/node_modules/unique-slug": { - "version": "2.0.0", + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, - "inBundle": true, - "license": "ISC", "dependencies": { - "imurmurhash": "^0.1.4" + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" } }, - "node_modules/npm/node_modules/unique-string": { - "version": "1.0.0", + "node_modules/text-extensions": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-1.9.0.tgz", + "integrity": "sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==", "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "crypto-random-string": "^1.0.0" - }, "engines": { - "node": ">=4" + "node": ">=0.10" } }, - "node_modules/npm/node_modules/unpipe": { - "version": "1.0.0", + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", + "dev": true + }, + "node_modules/throat": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.1.tgz", + "integrity": "sha512-8hmiGIJMDlwjg7dlJ4yKGLK8EsYqKgPWbG3b4wjJddKNwc7N7Dpn08Df4szr/sZdMVeOstrdYSsqzX6BYbcB+w==", + "dev": true + }, + "node_modules/through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "dev": true + }, + "node_modules/through2": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", + "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", "dev": true, - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">= 0.8" + "dependencies": { + "readable-stream": "2 || 3" } }, - "node_modules/npm/node_modules/unzip-response": { - "version": "2.0.1", + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", "dev": true, - "inBundle": true, - "license": "MIT", "engines": { "node": ">=4" } }, - "node_modules/npm/node_modules/update-notifier": { - "version": "2.5.0", + "node_modules/to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", "dev": true, - "inBundle": true, - "license": "BSD-2-Clause", "dependencies": { - "boxen": "^1.2.1", - "chalk": "^2.0.1", - "configstore": "^3.0.0", - "import-lazy": "^2.1.0", - "is-ci": "^1.0.10", - "is-installed-globally": "^0.1.0", - "is-npm": "^1.0.0", - "latest-version": "^3.0.0", - "semver-diff": "^2.0.0", - "xdg-basedir": "^3.0.0" + "kind-of": "^3.0.2" }, "engines": { - "node": ">=4" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/url-parse-lax": { - "version": "1.0.0", + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "prepend-http": "^1.0.1" + "is-number": "^7.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=8.0" } }, - "node_modules/npm/node_modules/util-deprecate": { - "version": "1.0.2", - "dev": true, - "inBundle": true, - "license": "MIT" - }, - "node_modules/npm/node_modules/util-extend": { - "version": "1.0.3", - "dev": true, - "inBundle": true, - "license": "MIT" + "node_modules/toml": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/toml/-/toml-2.3.6.tgz", + "integrity": "sha512-gVweAectJU3ebq//Ferr2JUY4WKSDe5N+z0FvjDncLGyHmIDoxgY/2Ie4qfEIDm4IS7OA6Rmdm7pdEEdMcV/xQ==", + "dev": true }, - "node_modules/npm/node_modules/util-promisify": { - "version": "2.1.0", + "node_modules/tough-cookie": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.0.0.tgz", + "integrity": "sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "object.getownpropertydescriptors": "^2.0.3" + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.1.2" + }, + "engines": { + "node": ">=6" } }, - "node_modules/npm/node_modules/uuid": { - "version": "3.3.3", + "node_modules/tough-cookie/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", "dev": true, - "inBundle": true, - "license": "MIT", - "bin": { - "uuid": "bin/uuid" + "engines": { + "node": ">= 4.0.0" } }, - "node_modules/npm/node_modules/validate-npm-package-license": { - "version": "3.0.4", - "dev": true, - "inBundle": true, - "license": "Apache-2.0", - "dependencies": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" }, - "node_modules/npm/node_modules/validate-npm-package-name": { - "version": "3.0.0", + "node_modules/traverse": { + "version": "0.6.6", + "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.6.tgz", + "integrity": "sha1-y99WD9e5r2MlAv7UD5GMFX6pcTc=", + "dev": true + }, + "node_modules/trim-newlines": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", + "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", "dev": true, - "inBundle": true, - "license": "ISC", - "dependencies": { - "builtins": "^1.0.3" + "engines": { + "node": ">=4" } }, - "node_modules/npm/node_modules/verror": { - "version": "1.10.0", + "node_modules/trim-off-newlines": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.3.tgz", + "integrity": "sha512-kh6Tu6GbeSNMGfrrZh6Bb/4ZEHV1QlB4xNDBeog8Y9/QwFlKTRyWvY3Fs9tRDAMZliVUwieMgEdIeL/FtqjkJg==", "dev": true, - "engines": [ - "node >=0.6.0" - ], - "inBundle": true, - "license": "MIT", - "dependencies": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/wcwidth": { - "version": "1.0.1", + "node_modules/ts-jest": { + "version": "27.1.3", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-27.1.3.tgz", + "integrity": "sha512-6Nlura7s6uM9BVUAoqLH7JHyMXjz8gluryjpPXxr3IxZdAXnU6FhjvVLHFtfd1vsE1p8zD1OJfskkc0jhTSnkA==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "defaults": "^1.0.3" + "bs-logger": "0.x", + "fast-json-stable-stringify": "2.x", + "jest-util": "^27.0.0", + "json5": "2.x", + "lodash.memoize": "4.x", + "make-error": "1.x", + "semver": "7.x", + "yargs-parser": "20.x" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@types/jest": "^27.0.0", + "babel-jest": ">=27.0.0 <28", + "esbuild": "~0.14.0", + "jest": "^27.0.0", + "typescript": ">=3.8 <5.0" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@types/jest": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + } } }, - "node_modules/npm/node_modules/which": { - "version": "1.3.1", + "node_modules/ts-jest/node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", "dev": true, - "inBundle": true, - "license": "ISC", "dependencies": { - "isexe": "^2.0.0" + "lru-cache": "^6.0.0" }, "bin": { - "which": "bin/which" + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, - "node_modules/npm/node_modules/which-module": { - "version": "2.0.0", + "node_modules/ts-jest/node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "dev": true, - "inBundle": true, - "license": "ISC" + "engines": { + "node": ">=10" + } }, - "node_modules/npm/node_modules/wide-align": { - "version": "1.1.2", + "node_modules/ts-node": { + "version": "10.7.0", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.7.0.tgz", + "integrity": "sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A==", "dev": true, - "inBundle": true, - "license": "ISC", "dependencies": { - "string-width": "^1.0.2" + "@cspotcode/source-map-support": "0.7.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.0", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } } }, - "node_modules/npm/node_modules/wide-align/node_modules/string-width": { - "version": "1.0.2", + "node_modules/ts-node/node_modules/acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - }, "engines": { - "node": ">=0.10.0" + "node": ">=0.4.0" } }, - "node_modules/npm/node_modules/widest-line": { - "version": "2.0.1", + "node_modules/tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "string-width": "^2.1.1" + "prelude-ls": "^1.2.1" }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, "engines": { "node": ">=4" } }, - "node_modules/npm/node_modules/worker-farm": { - "version": "1.7.0", + "node_modules/type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "errno": "~0.1.7" + "engines": { + "node": ">=8" } }, - "node_modules/npm/node_modules/wrap-ansi": { - "version": "2.1.0", + "node_modules/typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", + "dev": true + }, + "node_modules/typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" + "is-typedarray": "^1.0.0" + } + }, + "node_modules/typescript": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.2.tgz", + "integrity": "sha512-HM/hFigTBHZhLXshn9sN37H085+hQGeJHJ/X7LpBWLID/fbc2acUMfU+lGD98X81sKP+pFa9f0DZmCwB9GnbAg==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" }, "engines": { - "node": ">=0.10.0" + "node": ">=4.2.0" } }, - "node_modules/npm/node_modules/wrap-ansi/node_modules/string-width": { - "version": "1.0.2", + "node_modules/uglify-js": { + "version": "3.13.5", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.5.tgz", + "integrity": "sha512-xtB8yEqIkn7zmOyS2zUNBsYCBRhDkvlNxMMY2smuJ/qA8NCHeQvKCF3i9Z4k8FJH4+PJvZRtMrPynfZ75+CSZw==", "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "optional": true, + "bin": { + "uglifyjs": "bin/uglifyjs" }, "engines": { - "node": ">=0.10.0" + "node": ">=0.8.0" } }, - "node_modules/npm/node_modules/wrappy": { - "version": "1.0.2", + "node_modules/unique-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", + "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", "dev": true, - "inBundle": true, - "license": "ISC" + "dependencies": { + "crypto-random-string": "^2.0.0" + }, + "engines": { + "node": ">=8" + } }, - "node_modules/npm/node_modules/write-file-atomic": { - "version": "2.4.3", + "node_modules/universal-user-agent": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", + "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==", + "dev": true + }, + "node_modules/universalify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz", + "integrity": "sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug==", "dev": true, - "inBundle": true, - "license": "ISC", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/uri-js": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", "dependencies": { - "graceful-fs": "^4.1.11", - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.2" + "punycode": "^2.1.0" } }, - "node_modules/npm/node_modules/xdg-basedir": { + "node_modules/urijs": { + "version": "1.19.10", + "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.10.tgz", + "integrity": "sha512-EzauQlgKuJgsXOqoMrCiePBf4At5jVqRhXykF3Wfb8ZsOBMxPcfiVBcsHXug4Aepb/ICm2PIgqAUGMelgdrWEg==" + }, + "node_modules/url-join": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", + "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==", + "dev": true + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dev": true + }, + "node_modules/utility-types": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", + "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/v8-compile-cache": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", + "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", + "dev": true + }, + "node_modules/v8-compile-cache-lib": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.0.tgz", + "integrity": "sha512-mpSYqfsFvASnSn5qMiwrr4VKfumbPyONLCOPmsR3A6pTY/r0+tSaVbgPWSAIuzbk3lCTa+FForeTiO+wBQGkjA==", + "dev": true + }, + "node_modules/v8-to-istanbul": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz", + "integrity": "sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==", "dev": true, - "inBundle": true, - "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0", + "source-map": "^0.7.3" + }, "engines": { - "node": ">=4" + "node": ">=10.12.0" } }, - "node_modules/npm/node_modules/xtend": { - "version": "4.0.1", + "node_modules/v8-to-istanbul/node_modules/source-map": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", + "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", "dev": true, - "inBundle": true, - "license": "MIT", "engines": { - "node": ">=0.4" + "node": ">= 8" } }, - "node_modules/npm/node_modules/y18n": { - "version": "4.0.0", + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", "dev": true, - "inBundle": true, - "license": "ISC" + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } }, - "node_modules/npm/node_modules/yallist": { - "version": "3.0.3", + "node_modules/w3c-hr-time": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", + "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", "dev": true, - "inBundle": true, - "license": "ISC" + "dependencies": { + "browser-process-hrtime": "^1.0.0" + } }, - "node_modules/npm/node_modules/yargs": { - "version": "11.1.1", + "node_modules/w3c-xmlserializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", + "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", "dev": true, - "inBundle": true, - "license": "MIT", "dependencies": { - "cliui": "^4.0.0", - "decamelize": "^1.1.1", - "find-up": "^2.1.0", - "get-caller-file": "^1.0.1", - "os-locale": "^3.1.0", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^2.0.0", - "which-module": "^2.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^9.0.2" + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" } }, - "node_modules/npm/node_modules/yargs-parser": { - "version": "9.0.2", + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", "dev": true, - "inBundle": true, - "license": "ISC", "dependencies": { - "camelcase": "^4.1.0" + "makeerror": "1.0.12" } }, - "node_modules/npm/node_modules/yargs/node_modules/y18n": { - "version": "3.2.1", + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" + }, + "node_modules/whatwg-encoding": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", + "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", "dev": true, - "inBundle": true, - "license": "ISC" + "dependencies": { + "iconv-lite": "0.4.24" + } + }, + "node_modules/whatwg-mimetype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", + "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", + "dev": true + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } }, - "node_modules/object.pick": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "node_modules/wolfy87-eventemitter": { + "version": "5.2.9", + "resolved": "https://registry.npmjs.org/wolfy87-eventemitter/-/wolfy87-eventemitter-5.2.9.tgz", + "integrity": "sha512-P+6vtWyuDw+MB01X7UeF8TaHBvbCovf4HPEMF/SV7BdDc1SMTiBy13SRD71lQh4ExFTG1d/WNzDGDCyOKSMblw==" + }, + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", "dev": true, - "dependencies": { - "isobject": "^3.0.1" - }, "engines": { "node": ">=0.10.0" } }, - "node_modules/object.pick/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", + "dev": true + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "dependencies": { - "wrappy": "1" + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/onetime": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz", - "integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==", + "node_modules/wrap-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "dependencies": { - "mimic-fn": "^2.1.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=6" + "node": ">=7.0.0" } }, - "node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "node_modules/wrap-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "node_modules/write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", "dev": true, "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - }, + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "node_modules/ws": { + "version": "7.5.7", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.7.tgz", + "integrity": "sha512-KMvVuFzpKBuiIXW3E4u3mySRO2/mCHSyZDJQM5NQ9Q9KHWHWh0NHgfbRMLLrceUK5qAL4ytALJbpRMjixFZh8A==", + "dev": true, "engines": { - "node": ">= 0.8.0" + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } } }, - "node_modules/p-each-series": { + "node_modules/xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", + "dev": true + }, + "node_modules/xmlchars": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", - "integrity": "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "dev": true, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.4" } }, - "node_modules/p-filter": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-filter/-/p-filter-2.1.0.tgz", - "integrity": "sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw==", + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true, - "dependencies": { - "p-map": "^2.0.0" - }, "engines": { - "node": ">=8" + "node": ">=10" } }, - "node_modules/p-is-promise": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-3.0.0.tgz", - "integrity": "sha512-Wo8VsW4IRQSKVXsJCn7TomUaVtyfjVDn3nUP7kE967BQk0CwFpdbZs0X0uk5sW9mkBa9eNM7hCMaG93WUAwxYQ==", + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", "dev": true, "engines": { - "node": ">=8" + "node": ">= 6" } }, - "node_modules/p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "dev": true, "dependencies": { - "p-try": "^1.0.0" + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" }, "engines": { - "node": ">=4" + "node": ">=10" } }, - "node_modules/p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "node_modules/yargs-parser": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz", + "integrity": "sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ==", "dev": true, "dependencies": { - "p-limit": "^1.1.0" - }, + "camelcase": "^4.1.0" + } + }, + "node_modules/yargs/node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, "engines": { - "node": ">=4" + "node": ">=10" } }, - "node_modules/p-map": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", - "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", "dev": true, "engines": { "node": ">=6" } + } + }, + "dependencies": { + "@ampproject/remapping": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.1.2.tgz", + "integrity": "sha512-hoyByceqwKirw7w3Z7gnIIZC3Wx3J484Y3L/cMpXFbr7d9ZQj2mODrirNzcJa+SM3UlpWXYvKV4RlRpFXlWgXg==", + "dev": true, + "requires": { + "@jridgewell/trace-mapping": "^0.3.0" + } }, - "node_modules/p-reduce": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-reduce/-/p-reduce-2.1.0.tgz", - "integrity": "sha512-2USApvnsutq8uoxZBGbbWM0JIYLiEMJ9RlaN7fAzVNb9OZN0SHjjTTfIcb667XynS5Y1VhwDJVDa72TnPzAYWw==", + "@asyncapi/specs": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-2.13.1.tgz", + "integrity": "sha512-Hl44ml5/yDtBnOlk0A7RWl+Xy8JcWRni/2QVT1tkmQmwg6ylW+nfIXn2Zzi9Hww+oCkgyrqMXe45rlcJVhKlDQ==" + }, + "@babel/code-frame": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", + "integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==", "dev": true, - "engines": { - "node": ">=8" + "requires": { + "@babel/highlight": "^7.16.7" } }, - "node_modules/p-retry": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.5.0.tgz", - "integrity": "sha512-5Hwh4aVQSu6BEP+w2zKlVXtFAaYQe1qWuVADSgoeVlLjwe/Q/AMSoRR4MDeaAfu8llT+YNbEijWu/YF3m6avkg==", + "@babel/compat-data": { + "version": "7.17.0", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.17.0.tgz", + "integrity": "sha512-392byTlpGWXMv4FbyWw3sAZ/FrW/DrwqLGXpy0mbyNe9Taqv1mg9yON5/o0cnr8XYCkFTZbC1eV+c+LAROgrng==", + "dev": true + }, + "@babel/core": { + "version": "7.17.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.17.5.tgz", + "integrity": "sha512-/BBMw4EvjmyquN5O+t5eh0+YqB3XXJkYD2cjKpYtWOfFy4lQ4UozNSmxAcWT8r2XtZs0ewG+zrfsqeR15i1ajA==", "dev": true, - "dependencies": { - "@types/retry": "^0.12.0", - "retry": "^0.12.0" + "requires": { + "@ampproject/remapping": "^2.1.0", + "@babel/code-frame": "^7.16.7", + "@babel/generator": "^7.17.3", + "@babel/helper-compilation-targets": "^7.16.7", + "@babel/helper-module-transforms": "^7.16.7", + "@babel/helpers": "^7.17.2", + "@babel/parser": "^7.17.3", + "@babel/template": "^7.16.7", + "@babel/traverse": "^7.17.3", + "@babel/types": "^7.17.0", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.1.2", + "semver": "^6.3.0" }, - "engines": { - "node": ">=8" + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } } }, - "node_modules/p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "@babel/generator": { + "version": "7.17.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.3.tgz", + "integrity": "sha512-+R6Dctil/MgUsZsZAkYgK+ADNSZzJRRy0TvY65T71z/CR854xHQ1EweBYXdfT+HNeN7w0cSJJEzgxZMv40pxsg==", "dev": true, - "engines": { - "node": ">=4" + "requires": { + "@babel/types": "^7.17.0", + "jsesc": "^2.5.1", + "source-map": "^0.5.0" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } } }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "@babel/helper-compilation-targets": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.7.tgz", + "integrity": "sha512-mGojBwIWcwGD6rfqgRXVlVYmPAv7eOpIemUG3dGnDdCY4Pae70ROij3XmfrH6Fa1h1aiDylpglbZyktfzyo/hA==", "dev": true, - "dependencies": { - "callsites": "^3.0.0" + "requires": { + "@babel/compat-data": "^7.16.4", + "@babel/helper-validator-option": "^7.16.7", + "browserslist": "^4.17.5", + "semver": "^6.3.0" }, - "engines": { - "node": ">=6" + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } } }, - "node_modules/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "@babel/helper-environment-visitor": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.16.7.tgz", + "integrity": "sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag==", "dev": true, - "dependencies": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" - }, - "engines": { - "node": ">=4" + "requires": { + "@babel/types": "^7.16.7" } }, - "node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "@babel/helper-function-name": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.16.7.tgz", + "integrity": "sha512-QfDfEnIUyyBSR3HtrtGECuZ6DAyCkYFp7GHl75vFtTnn6pjKeK0T1DB5lLkFvBea8MdaiUABx3osbgLyInoejA==", "dev": true, - "engines": { - "node": ">=4" + "requires": { + "@babel/helper-get-function-arity": "^7.16.7", + "@babel/template": "^7.16.7", + "@babel/types": "^7.16.7" } }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "@babel/helper-get-function-arity": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.16.7.tgz", + "integrity": "sha512-flc+RLSOBXzNzVhcLu6ujeHUrD6tANAOU5ojrRx/as+tbzf8+stUCj7+IfRRoAbEZqj/ahXEMsjhOhgeZsrnTw==", "dev": true, - "engines": { - "node": ">=0.10.0" + "requires": { + "@babel/types": "^7.16.7" } }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "@babel/helper-hoist-variables": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz", + "integrity": "sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==", "dev": true, - "engines": { - "node": ">=8" + "requires": { + "@babel/types": "^7.16.7" } }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true + "@babel/helper-module-imports": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz", + "integrity": "sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==", + "dev": true, + "requires": { + "@babel/types": "^7.16.7" + } }, - "node_modules/path-type": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "@babel/helper-module-transforms": { + "version": "7.17.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.17.6.tgz", + "integrity": "sha512-2ULmRdqoOMpdvkbT8jONrZML/XALfzxlb052bldftkicAUy8AxSCkD5trDPQcwHNmolcl7wP6ehNqMlyUw6AaA==", "dev": true, - "dependencies": { - "pify": "^3.0.0" - }, - "engines": { - "node": ">=4" + "requires": { + "@babel/helper-environment-visitor": "^7.16.7", + "@babel/helper-module-imports": "^7.16.7", + "@babel/helper-simple-access": "^7.16.7", + "@babel/helper-split-export-declaration": "^7.16.7", + "@babel/helper-validator-identifier": "^7.16.7", + "@babel/template": "^7.16.7", + "@babel/traverse": "^7.17.3", + "@babel/types": "^7.17.0" } }, - "node_modules/picomatch": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", - "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", + "@babel/helper-plugin-utils": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz", + "integrity": "sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==", + "dev": true + }, + "@babel/helper-simple-access": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.16.7.tgz", + "integrity": "sha512-ZIzHVyoeLMvXMN/vok/a4LWRy8G2v205mNP0XOuf9XRLyX5/u9CnVulUtDgUTama3lT+bf/UqucuZjqiGuTS1g==", "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" + "requires": { + "@babel/types": "^7.16.7" } }, - "node_modules/pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "@babel/helper-split-export-declaration": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz", + "integrity": "sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==", "dev": true, - "engines": { - "node": ">=4" + "requires": { + "@babel/types": "^7.16.7" } }, - "node_modules/pkg-conf": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-2.1.0.tgz", - "integrity": "sha1-ISZRTKbyq/69FoWW3xi6V4Z/AFg=", + "@babel/helper-validator-identifier": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz", + "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==", + "dev": true + }, + "@babel/helper-validator-option": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz", + "integrity": "sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ==", + "dev": true + }, + "@babel/helpers": { + "version": "7.17.2", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.17.2.tgz", + "integrity": "sha512-0Qu7RLR1dILozr/6M0xgj+DFPmi6Bnulgm9M8BVa9ZCWxDqlSnqt3cf8IDPB5m45sVXUZ0kuQAgUrdSFFH79fQ==", "dev": true, - "dependencies": { - "find-up": "^2.0.0", - "load-json-file": "^4.0.0" - }, - "engines": { - "node": ">=4" + "requires": { + "@babel/template": "^7.16.7", + "@babel/traverse": "^7.17.0", + "@babel/types": "^7.17.0" } }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "@babel/highlight": { + "version": "7.16.10", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.16.10.tgz", + "integrity": "sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfTBFxdw==", "dev": true, - "engines": { - "node": ">= 0.8.0" + "requires": { + "@babel/helper-validator-identifier": "^7.16.7", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" } }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "@babel/parser": { + "version": "7.17.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.17.3.tgz", + "integrity": "sha512-7yJPvPV+ESz2IUTPbOL+YkIGyCqOyNIzdguKQuJGnH7bg1WTIifuM21YqokFt/THWh1AkCRn9IgoykTRCBVpzA==", "dev": true }, - "node_modules/progress": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, - "engines": { - "node": ">=0.4.0" + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" } }, - "node_modules/pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", "dev": true, - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" } }, - "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, - "engines": { - "node": ">=6" + "requires": { + "@babel/helper-plugin-utils": "^7.12.13" } }, - "node_modules/q": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", + "@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", "dev": true, - "engines": { - "node": ">=0.6.0", - "teleport": ">=0.2.0" + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" } }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } }, - "node_modules/quick-lru": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-1.1.0.tgz", - "integrity": "sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g=", + "@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, - "engines": { - "node": ">=4" + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" } }, - "node_modules/ramda": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.27.0.tgz", - "integrity": "sha512-pVzZdDpWwWqEVVLshWUHjNwuVP7SfcmPraYuqocJp1yo2U1R7P+5QAfDhdItkuoGqIBnBYrtPp7rEPqDn9HlZA==", - "dev": true + "@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } }, - "node_modules/randomatic": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", - "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", + "@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, - "dependencies": { - "is-number": "^4.0.0", - "kind-of": "^6.0.0", - "math-random": "^1.0.1" - }, - "engines": { - "node": ">= 0.10.0" + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" } }, - "node_modules/randomatic/node_modules/is-number": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", - "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, - "engines": { - "node": ">=0.10.0" + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" } }, - "node_modules/randomatic/node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, - "engines": { - "node": ">=0.10.0" + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" } }, - "node_modules/rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, - "dependencies": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "bin": { - "rc": "cli.js" + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" } }, - "node_modules/read-pkg": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dev": true, - "dependencies": { - "load-json-file": "^4.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^3.0.0" - }, - "engines": { - "node": ">=4" + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" } }, - "node_modules/read-pkg-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", - "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", + "@babel/plugin-syntax-typescript": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.16.7.tgz", + "integrity": "sha512-YhUIJHHGkqPgEcMYkPCKTyGUdoGKWtopIycQyjJH8OjvRgOYsXsaKehLVPScKJWAULPxMa4N1vCe6szREFlZ7A==", "dev": true, - "dependencies": { - "find-up": "^2.0.0", - "read-pkg": "^3.0.0" - }, - "engines": { - "node": ">=4" + "requires": { + "@babel/helper-plugin-utils": "^7.16.7" } }, - "node_modules/readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "@babel/template": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz", + "integrity": "sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==", "dev": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "requires": { + "@babel/code-frame": "^7.16.7", + "@babel/parser": "^7.16.7", + "@babel/types": "^7.16.7" } }, - "node_modules/redent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", - "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", + "@babel/traverse": { + "version": "7.17.3", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.17.3.tgz", + "integrity": "sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw==", "dev": true, - "dependencies": { - "indent-string": "^3.0.0", - "strip-indent": "^2.0.0" + "requires": { + "@babel/code-frame": "^7.16.7", + "@babel/generator": "^7.17.3", + "@babel/helper-environment-visitor": "^7.16.7", + "@babel/helper-function-name": "^7.16.7", + "@babel/helper-hoist-variables": "^7.16.7", + "@babel/helper-split-export-declaration": "^7.16.7", + "@babel/parser": "^7.17.3", + "@babel/types": "^7.17.0", + "debug": "^4.1.0", + "globals": "^11.1.0" }, - "engines": { - "node": ">=4" + "dependencies": { + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + } } }, - "node_modules/redeyed": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/redeyed/-/redeyed-2.1.1.tgz", - "integrity": "sha1-iYS1gV2ZyyIEacme7v/jiRPmzAs=", + "@babel/types": { + "version": "7.17.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz", + "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" + } + }, + "@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "@cspotcode/source-map-consumer": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz", + "integrity": "sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==", + "dev": true + }, + "@cspotcode/source-map-support": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.7.0.tgz", + "integrity": "sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==", "dev": true, - "dependencies": { - "esprima": "~4.0.0" + "requires": { + "@cspotcode/source-map-consumer": "0.8.0" } }, - "node_modules/regexpp": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz", - "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==", + "@eslint/eslintrc": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.1.tgz", + "integrity": "sha512-5v7TDE9plVhvxQeWLXDTvFvJBdH6pEsdnl2g/dAptmuFEPedQ4Erq5rsDsX+mvAM610IhNaO2W5V1dOOnDKxkQ==", "dev": true, - "engines": { - "node": ">=8" + "requires": { + "ajv": "^6.12.4", + "debug": "^4.1.1", + "espree": "^7.3.0", + "globals": "^12.1.0", + "ignore": "^4.0.6", + "import-fresh": "^3.2.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "strip-json-comments": "^3.1.1" }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" + "dependencies": { + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "globals": { + "version": "12.4.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", + "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", + "dev": true, + "requires": { + "type-fest": "^0.8.1" + } + }, + "ignore": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "dev": true + }, + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true + }, + "type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true + } } }, - "node_modules/registry-auth-token": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.1.1.tgz", - "integrity": "sha512-9bKS7nTl9+/A1s7tnPeGrUpRcVY+LUh7bfFgzpndALdPfXQBfQV77rQVtqgUV3ti4vc/Ik81Ex8UJDWDQ12zQA==", + "@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", "dev": true, - "dependencies": { - "rc": "^1.2.8" + "requires": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" }, - "engines": { - "node": ">=6.0.0" + "dependencies": { + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + } } }, - "node_modules/remarkable": { - "version": "1.7.4", - "resolved": "https://registry.npmjs.org/remarkable/-/remarkable-1.7.4.tgz", - "integrity": "sha512-e6NKUXgX95whv7IgddywbeN/ItCkWbISmc2DiqHJb0wTrqZIexqdco5b8Z3XZoo/48IdNVKM9ZCvTPJ4F5uvhg==", + "@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true + }, + "@jest/console": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-27.5.1.tgz", + "integrity": "sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==", "dev": true, - "dependencies": { - "argparse": "^1.0.10", - "autolinker": "~0.28.0" - }, - "bin": { - "remarkable": "bin/remarkable.js" + "requires": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0" }, - "engines": { - "node": ">= 0.10.0" + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, - "node_modules/repeat-element": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", - "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", + "@jest/core": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-27.5.1.tgz", + "integrity": "sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==", "dev": true, - "engines": { - "node": ">=0.10.0" + "requires": { + "@jest/console": "^27.5.1", + "@jest/reporters": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^27.5.1", + "jest-config": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-resolve-dependencies": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "jest-watcher": "^27.5.1", + "micromatch": "^4.0.4", + "rimraf": "^3.0.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, - "node_modules/repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "@jest/environment": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", + "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", "dev": true, - "engines": { - "node": ">=0.10" + "requires": { + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1" } }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "@jest/fake-timers": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", + "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", "dev": true, - "engines": { - "node": ">=0.10.0" + "requires": { + "@jest/types": "^27.5.1", + "@sinonjs/fake-timers": "^8.0.1", + "@types/node": "*", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" } }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "@jest/globals": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-27.5.1.tgz", + "integrity": "sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==", "dev": true, - "engines": { - "node": ">=0.10.0" + "requires": { + "@jest/environment": "^27.5.1", + "@jest/types": "^27.5.1", + "expect": "^27.5.1" } }, - "node_modules/resolve": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.16.1.tgz", - "integrity": "sha512-rmAglCSqWWMrrBv/XM6sW0NuRFiKViw/W4d9EbC4pt+49H8JwHy+mcGmALTEg504AUDcLTvb1T2q3E9AnmY+ig==", + "@jest/reporters": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-27.5.1.tgz", + "integrity": "sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==", "dev": true, - "dependencies": { - "path-parse": "^1.0.6" + "requires": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.2", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-haste-map": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "slash": "^3.0.0", + "source-map": "^0.6.0", + "string-length": "^4.0.1", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^8.1.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "engines": { - "node": ">=8" + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, - "node_modules/ret": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "@jest/source-map": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-27.5.1.tgz", + "integrity": "sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==", "dev": true, - "engines": { - "node": ">=0.12" + "requires": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9", + "source-map": "^0.6.0" } }, - "node_modules/retry": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", - "integrity": "sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs=", + "@jest/test-result": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-27.5.1.tgz", + "integrity": "sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==", "dev": true, - "engines": { - "node": ">= 4" + "requires": { + "@jest/console": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" } }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "@jest/test-sequencer": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz", + "integrity": "sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==", "dev": true, - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" + "requires": { + "@jest/test-result": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-runtime": "^27.5.1" } }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "@jest/transform": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.5.1.tgz", + "integrity": "sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==", "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" + "requires": { + "@babel/core": "^7.1.0", + "@jest/types": "^27.5.1", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-util": "^27.5.1", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "@jest/types": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", + "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } }, - { - "type": "consulting", - "url": "https://feross.org/support" + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } } - ], - "dependencies": { - "queue-microtask": "^1.2.2" } }, - "node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "@jridgewell/resolve-uri": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.0.5.tgz", + "integrity": "sha512-VPeQ7+wH0itvQxnG+lIzWgkysKIr3L9sslimFW55rHMdGu/qCQ5z5h9zq4gI8uBtqkpHhsF4Z/OwExufUCThew==", + "dev": true + }, + "@jridgewell/sourcemap-codec": { + "version": "1.4.11", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.11.tgz", + "integrity": "sha512-Fg32GrJo61m+VqYSdRSjRXMjQ06j8YIYfcTqndLYVAaHmroZHLJZCydsWBOTDqXS2v+mjxohBWEMfg97GXmYQg==", + "dev": true + }, + "@jridgewell/trace-mapping": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.4.tgz", + "integrity": "sha512-vFv9ttIedivx0ux3QSjhgtCVjPZd5l46ZOMDSCwnH1yUO2e964gO8LZGyv2QkqcgR6TnBU1v+1IFqmeoG+0UJQ==", + "dev": true, + "requires": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "@jsep-plugin/regex": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.1.tgz", + "integrity": "sha512-GroTtexnEfdVOvvALjW/JfV+wgRMadZKEA/lf9gE09zJejHhcBl+cqJxk2px9ub8k3gUrPe1j81Z1V4RDaSy8A==", + "requires": {} + }, + "@jsep-plugin/ternary": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.0.tgz", + "integrity": "sha512-dS+vdBz0y71mRspSsv/c+YUm8xXKiEqgZF7+ERxNLWyycMOOtR9CQjV+MexpTCCh76iBrMHcWul9rzoZdfJm0g==", + "requires": {} + }, + "@nodelib/fs.scandir": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz", + "integrity": "sha512-33g3pMJk3bg5nXbL/+CY6I2eJDzZAni49PfJnL5fghPTggPvBd/pFNSgJsdAgWptuFu7qq/ERvOYFlhvsLTCKA==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "2.0.4", + "run-parallel": "^1.1.9" + } + }, + "@nodelib/fs.stat": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.4.tgz", + "integrity": "sha512-IYlHJA0clt2+Vg7bccq+TzRdJvv19c2INqBSsoOLp1je7xjtr7J26+WXR72MCdvU9q1qTzIWDfhMf+DRvQJK4Q==", "dev": true }, - "node_modules/safe-regex": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", - "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "@nodelib/fs.walk": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.6.tgz", + "integrity": "sha512-8Broas6vTtW4GIXTAHDoE32hnN2M5ykgCpWGbuXHQ15vEMqr23pB76e/GZcYsZCHALv50ktd24qhEyKr6wBtow==", "dev": true, - "dependencies": { - "ret": "~0.1.10" + "requires": { + "@nodelib/fs.scandir": "2.1.4", + "fastq": "^1.6.0" } }, - "node_modules/semantic-release": { - "version": "17.4.3", - "resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-17.4.3.tgz", - "integrity": "sha512-lTOUSrkbaQ+TRs3+BmtJhLtPSyiO7iTGmh5SyuEFqNO8HQbQ4nzXg4UlPrDQasO/C0eFK/V0eCbOzJdjtKBOYw==", + "@octokit/auth-token": { + "version": "2.4.5", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.5.tgz", + "integrity": "sha512-BpGYsPgJt05M7/L/5FoE1PiAbdxXFZkX/3kDYcsvd1v6UhlnE5e96dTDr0ezX/EFwciQxf3cNV0loipsURU+WA==", "dev": true, - "dependencies": { - "@semantic-release/commit-analyzer": "^8.0.0", - "@semantic-release/error": "^2.2.0", - "@semantic-release/github": "^7.0.0", - "@semantic-release/npm": "^7.0.0", - "@semantic-release/release-notes-generator": "^9.0.0", - "aggregate-error": "^3.0.0", - "cosmiconfig": "^7.0.0", - "debug": "^4.0.0", - "env-ci": "^5.0.0", - "execa": "^5.0.0", - "figures": "^3.0.0", - "find-versions": "^4.0.0", - "get-stream": "^6.0.0", - "git-log-parser": "^1.2.0", - "hook-std": "^2.0.0", - "hosted-git-info": "^4.0.0", - "lodash": "^4.17.21", - "marked": "^2.0.0", - "marked-terminal": "^4.1.1", - "micromatch": "^4.0.2", - "p-each-series": "^2.1.0", - "p-reduce": "^2.0.0", - "read-pkg-up": "^7.0.0", - "resolve-from": "^5.0.0", - "semver": "^7.3.2", - "semver-diff": "^3.1.1", - "signale": "^1.2.1", - "yargs": "^16.2.0" - }, - "bin": { - "semantic-release": "bin/semantic-release.js" - }, - "engines": { - "node": ">=10.18" + "requires": { + "@octokit/types": "^6.0.3" } }, - "node_modules/semantic-release/node_modules/ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "@octokit/core": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.4.0.tgz", + "integrity": "sha512-6/vlKPP8NF17cgYXqucdshWqmMZGXkuvtcrWCgU5NOI0Pl2GjlmZyWgBMrU8zJ3v2MJlM6++CiB45VKYmhiWWg==", "dev": true, - "engines": { - "node": ">=8" + "requires": { + "@octokit/auth-token": "^2.4.4", + "@octokit/graphql": "^4.5.8", + "@octokit/request": "^5.4.12", + "@octokit/request-error": "^2.0.5", + "@octokit/types": "^6.0.3", + "before-after-hook": "^2.2.0", + "universal-user-agent": "^6.0.0" } }, - "node_modules/semantic-release/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "@octokit/endpoint": { + "version": "6.0.11", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.11.tgz", + "integrity": "sha512-fUIPpx+pZyoLW4GCs3yMnlj2LfoXTWDUVPTC4V3MUEKZm48W+XYpeWSZCv+vYF1ZABUm2CqnDVf1sFtIYrj7KQ==", "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "requires": { + "@octokit/types": "^6.0.3", + "is-plain-object": "^5.0.0", + "universal-user-agent": "^6.0.0" } }, - "node_modules/semantic-release/node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "@octokit/graphql": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.6.2.tgz", + "integrity": "sha512-WmsIR1OzOr/3IqfG9JIczI8gMJUMzzyx5j0XXQ4YihHtKlQc+u35VpVoOXhlKAlaBntvry1WpAzPl/a+s3n89Q==", "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" + "requires": { + "@octokit/request": "^5.3.0", + "@octokit/types": "^6.0.3", + "universal-user-agent": "^6.0.0" } }, - "node_modules/semantic-release/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "@octokit/openapi-types": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-7.0.0.tgz", + "integrity": "sha512-gV/8DJhAL/04zjTI95a7FhQwS6jlEE0W/7xeYAzuArD0KVAVWDLP2f3vi98hs3HLTczxXdRK/mF0tRoQPpolEw==", + "dev": true + }, + "@octokit/plugin-paginate-rest": { + "version": "2.13.3", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.13.3.tgz", + "integrity": "sha512-46lptzM9lTeSmIBt/sVP/FLSTPGx6DCzAdSX3PfeJ3mTf4h9sGC26WpaQzMEq/Z44cOcmx8VsOhO+uEgE3cjYg==", "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" + "requires": { + "@octokit/types": "^6.11.0" } }, - "node_modules/semantic-release/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "@octokit/plugin-request-log": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.3.tgz", + "integrity": "sha512-4RFU4li238jMJAzLgAwkBAw+4Loile5haQMQr+uhFq27BmyJXcXSKvoQKqh0agsZEiUlW6iSv3FAgvmGkur7OQ==", + "dev": true, + "requires": {} }, - "node_modules/semantic-release/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true + "@octokit/plugin-rest-endpoint-methods": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.0.1.tgz", + "integrity": "sha512-vvWbPtPqLyIzJ7A4IPdTl+8IeuKAwMJ4LjvmqWOOdfSuqWQYZXq2CEd0hsnkidff2YfKlguzujHs/reBdAx8Sg==", + "dev": true, + "requires": { + "@octokit/types": "^6.13.1", + "deprecation": "^2.3.1" + } }, - "node_modules/semantic-release/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "@octokit/request": { + "version": "5.4.15", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.4.15.tgz", + "integrity": "sha512-6UnZfZzLwNhdLRreOtTkT9n57ZwulCve8q3IT/Z477vThu6snfdkBuhxnChpOKNGxcQ71ow561Qoa6uqLdPtag==", "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" + "requires": { + "@octokit/endpoint": "^6.0.1", + "@octokit/request-error": "^2.0.0", + "@octokit/types": "^6.7.1", + "is-plain-object": "^5.0.0", + "node-fetch": "^2.6.1", + "universal-user-agent": "^6.0.0" } }, - "node_modules/semantic-release/node_modules/hosted-git-info": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", - "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==", + "@octokit/request-error": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.0.5.tgz", + "integrity": "sha512-T/2wcCFyM7SkXzNoyVNWjyVlUwBvW3igM3Btr/eKYiPmucXTtkxt2RBsf6gn3LTzaLSLTQtNmvg+dGsOxQrjZg==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "engines": { - "node": ">=10" + "requires": { + "@octokit/types": "^6.0.3", + "deprecation": "^2.0.0", + "once": "^1.4.0" } }, - "node_modules/semantic-release/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "@octokit/rest": { + "version": "18.5.3", + "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-18.5.3.tgz", + "integrity": "sha512-KPAsUCr1DOdLVbZJgGNuE/QVLWEaVBpFQwDAz/2Cnya6uW2wJ/P5RVGk0itx7yyN1aGa8uXm2pri4umEqG1JBA==", "dev": true, - "engines": { - "node": ">=8" + "requires": { + "@octokit/core": "^3.2.3", + "@octokit/plugin-paginate-rest": "^2.6.2", + "@octokit/plugin-request-log": "^1.0.2", + "@octokit/plugin-rest-endpoint-methods": "5.0.1" } }, - "node_modules/semantic-release/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "@octokit/types": { + "version": "6.14.2", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.14.2.tgz", + "integrity": "sha512-wiQtW9ZSy4OvgQ09iQOdyXYNN60GqjCL/UdMsepDr1Gr0QzpW6irIKbH3REuAHXAhxkEk9/F2a3Gcs1P6kW5jA==", "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" + "requires": { + "@octokit/openapi-types": "^7.0.0" } }, - "node_modules/semantic-release/node_modules/marked": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/marked/-/marked-2.0.3.tgz", - "integrity": "sha512-5otztIIcJfPc2qGTN8cVtOJEjNJZ0jwa46INMagrYfk0EvqtRuEHLsEe0LrFS0/q+ZRKT0+kXK7P2T1AN5lWRA==", + "@semantic-release/commit-analyzer": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/@semantic-release/commit-analyzer/-/commit-analyzer-8.0.1.tgz", + "integrity": "sha512-5bJma/oB7B4MtwUkZC2Bf7O1MHfi4gWe4mA+MIQ3lsEV0b422Bvl1z5HRpplDnMLHH3EXMoRdEng6Ds5wUqA3A==", + "dev": true, + "requires": { + "conventional-changelog-angular": "^5.0.0", + "conventional-commits-filter": "^2.0.0", + "conventional-commits-parser": "^3.0.7", + "debug": "^4.0.0", + "import-from": "^3.0.0", + "lodash": "^4.17.4", + "micromatch": "^4.0.2" + } + }, + "@semantic-release/error": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@semantic-release/error/-/error-2.2.0.tgz", + "integrity": "sha512-9Tj/qn+y2j+sjCI3Jd+qseGtHjOAeg7dU2/lVcqIQ9TV3QDaDXDYXcoOHU+7o2Hwh8L8ymL4gfuO7KxDs3q2zg==", + "dev": true + }, + "@semantic-release/github": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/@semantic-release/github/-/github-7.2.3.tgz", + "integrity": "sha512-lWjIVDLal+EQBzy697ayUNN8MoBpp+jYIyW2luOdqn5XBH4d9bQGfTnjuLyzARZBHejqh932HVjiH/j4+R7VHw==", "dev": true, - "bin": { - "marked": "bin/marked" + "requires": { + "@octokit/rest": "^18.0.0", + "@semantic-release/error": "^2.2.0", + "aggregate-error": "^3.0.0", + "bottleneck": "^2.18.1", + "debug": "^4.0.0", + "dir-glob": "^3.0.0", + "fs-extra": "^10.0.0", + "globby": "^11.0.0", + "http-proxy-agent": "^4.0.0", + "https-proxy-agent": "^5.0.0", + "issue-parser": "^6.0.0", + "lodash": "^4.17.4", + "mime": "^2.4.3", + "p-filter": "^2.0.0", + "p-retry": "^4.0.0", + "url-join": "^4.0.0" }, - "engines": { - "node": ">= 8.16.2" + "dependencies": { + "fs-extra": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz", + "integrity": "sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, + "universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true + } } }, - "node_modules/semantic-release/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "@semantic-release/npm": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/@semantic-release/npm/-/npm-7.0.5.tgz", + "integrity": "sha512-D+oEmsx9aHE1q806NFQwSC9KdBO8ri/VO99eEz0wWbX2jyLqVyWr7t0IjKC8aSnkkQswg/4KN/ZjfF6iz1XOpw==", "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" + "requires": { + "@semantic-release/error": "^2.2.0", + "aggregate-error": "^3.0.0", + "execa": "^4.0.0", + "fs-extra": "^9.0.0", + "lodash": "^4.17.15", + "nerf-dart": "^1.0.0", + "normalize-url": "^5.0.0", + "npm": "^6.10.3", + "rc": "^1.2.8", + "read-pkg": "^5.0.0", + "registry-auth-token": "^4.0.0", + "semver": "^7.1.2", + "tempy": "^0.5.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "dependencies": { + "execa": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-4.0.0.tgz", + "integrity": "sha512-JbDUxwV3BoT5ZVXQrSVbAiaXhXUkIwvbhPIwZ0N13kX+5yCzOhUNdocxB/UQRuYOHRYYwAxKYwJYc0T4D12pDA==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.0", + "get-stream": "^5.0.0", + "human-signals": "^1.1.1", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.0", + "onetime": "^5.1.0", + "signal-exit": "^3.0.2", + "strip-final-newline": "^2.0.0" + } + }, + "get-stream": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", + "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "parse-json": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", + "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1", + "lines-and-columns": "^1.1.6" + } + }, + "read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "requires": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + } + }, + "semver": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", + "dev": true + } } }, - "node_modules/semantic-release/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "@semantic-release/release-notes-generator": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/@semantic-release/release-notes-generator/-/release-notes-generator-9.0.1.tgz", + "integrity": "sha512-bOoTiH6SiiR0x2uywSNR7uZcRDl22IpZhj+Q5Bn0v+98MFtOMhCxFhbrKQjhbYoZw7vps1mvMRmFkp/g6R9cvQ==", "dev": true, - "dependencies": { - "p-limit": "^2.2.0" + "requires": { + "conventional-changelog-angular": "^5.0.0", + "conventional-changelog-writer": "^4.0.0", + "conventional-commits-filter": "^2.0.0", + "conventional-commits-parser": "^3.0.0", + "debug": "^4.0.0", + "get-stream": "^5.0.0", + "import-from": "^3.0.0", + "into-stream": "^5.0.0", + "lodash": "^4.17.4", + "read-pkg-up": "^7.0.0" }, - "engines": { - "node": ">=8" + "dependencies": { + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "get-stream": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", + "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "parse-json": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", + "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1", + "lines-and-columns": "^1.1.6" + } + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, + "read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "requires": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "dependencies": { + "type-fest": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", + "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dev": true + } + } + }, + "read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "requires": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + } + }, + "type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true + } } }, - "node_modules/semantic-release/node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "@sinonjs/commons": { + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.3.tgz", + "integrity": "sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ==", "dev": true, - "engines": { - "node": ">=6" + "requires": { + "type-detect": "4.0.8" } }, - "node_modules/semantic-release/node_modules/parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "@sinonjs/fake-timers": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", + "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", "dev": true, - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "requires": { + "@sinonjs/commons": "^1.7.0" } }, - "node_modules/semantic-release/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" + "@stoplight/json": { + "version": "3.17.2", + "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.17.2.tgz", + "integrity": "sha512-NwIVzanXRUy291J5BMkncCZRMG1Lx+aq+VidGQgfkJjgo8vh1Y/PSAz7fSU8gVGSZBCcqmOkMI7R4zw7DlfTwA==", + "requires": { + "@stoplight/ordered-object-literal": "^1.0.2", + "@stoplight/types": "^12.3.0", + "jsonc-parser": "~2.2.1", + "lodash": "^4.17.21", + "safe-stable-stringify": "^1.1" } }, - "node_modules/semantic-release/node_modules/read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "dependencies": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" + "@stoplight/json-ref-readers": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@stoplight/json-ref-readers/-/json-ref-readers-1.2.2.tgz", + "integrity": "sha512-nty0tHUq2f1IKuFYsLM4CXLZGHdMn+X/IwEUIpeSOXt0QjMUbL0Em57iJUDzz+2MkWG83smIigNZ3fauGjqgdQ==", + "requires": { + "node-fetch": "^2.6.0", + "tslib": "^1.14.1" }, - "engines": { - "node": ">=8" + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + } } }, - "node_modules/semantic-release/node_modules/read-pkg-up": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", - "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", - "dev": true, - "dependencies": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "@stoplight/json-ref-resolver": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.3.tgz", + "integrity": "sha512-SgoKXwVnlpIZUyAFX4W79eeuTWvXmNlMfICZixL16GZXnkjcW+uZnfmAU0ZIjcnaTgaI4mjfxn8LAP2KR6Cr0A==", + "requires": { + "@stoplight/json": "^3.17.0", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^12.3.0", + "@types/urijs": "^1.19.16", + "dependency-graph": "~0.11.0", + "fast-memoize": "^2.5.2", + "immer": "^9.0.6", + "lodash.get": "^4.4.2", + "lodash.set": "^4.3.2", + "tslib": "^2.3.1", + "urijs": "^1.19.6" + } + }, + "@stoplight/lifecycle": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/@stoplight/lifecycle/-/lifecycle-2.3.2.tgz", + "integrity": "sha512-v0u8p27FA/eg04b4z6QXw4s0NeeFcRzyvseBW0+k/q4jtpg7EhVCqy42EbbbU43NTNDpIeQ81OcvkFz+6CYshw==", + "requires": { + "wolfy87-eventemitter": "~5.2.8" } }, - "node_modules/semantic-release/node_modules/read-pkg/node_modules/type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", - "dev": true, - "engines": { - "node": ">=8" + "@stoplight/ordered-object-literal": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@stoplight/ordered-object-literal/-/ordered-object-literal-1.0.2.tgz", + "integrity": "sha512-0ZMS/9sNU3kVo/6RF3eAv7MK9DY8WLjiVJB/tVyfF2lhr2R4kqh534jZ0PlrFB9CRXrdndzn1DbX6ihKZXft2w==" + }, + "@stoplight/path": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@stoplight/path/-/path-1.3.2.tgz", + "integrity": "sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ==" + }, + "@stoplight/spectral-core": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.11.0.tgz", + "integrity": "sha512-82xWLbQn67cLLKL7lQJsXTFLIHSOlwv4Faq2IxsUFMWqQ84znwd7FxOkfk9K2I0ncR+XuaftWRtN9ySvVSJkAw==", + "requires": { + "@stoplight/better-ajv-errors": "1.0.1", + "@stoplight/json": "~3.17.1", + "@stoplight/lifecycle": "2.3.2", + "@stoplight/path": "1.3.2", + "@stoplight/spectral-parsers": "^1.0.0", + "@stoplight/spectral-ref-resolver": "^1.0.0", + "@stoplight/spectral-runtime": "^1.0.0", + "@stoplight/types": "12.3.0", + "ajv": "^8.6.0", + "ajv-errors": "~3.0.0", + "ajv-formats": "~2.1.0", + "blueimp-md5": "2.18.0", + "json-schema": "0.4.0", + "jsonpath-plus": "6.0.1", + "lodash": "~4.17.21", + "lodash.topath": "^4.5.2", + "minimatch": "3.0.4", + "nimma": "0.1.8", + "pony-cause": "^1.0.0", + "simple-eval": "1.0.0", + "tslib": "^2.3.0" + }, + "dependencies": { + "@stoplight/better-ajv-errors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.1.tgz", + "integrity": "sha512-rgxT+ZMeZbYRiOLNk6Oy6e/Ig1iQKo0IL8v/Y9E/0FewzgtkGs/p5dMeUpIFZXWj3RZaEPmfL9yh0oUEmNXZjg==", + "requires": { + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" + } + }, + "ajv": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz", + "integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "ajv-errors": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", + "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", + "requires": {} + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + } } }, - "node_modules/semantic-release/node_modules/semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" + "@stoplight/spectral-formats": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.1.0.tgz", + "integrity": "sha512-ZpEHNkS30qfPbxHJAf3OwZ7g0LkSG2UZXhl3/Jsf6WGivVcuQUY+ZK4c1ZJqBNct1JF1ujP3FgF26xDdTrOtDw==", + "requires": { + "@stoplight/json": "^3.17.0", + "@stoplight/spectral-core": "^1.8.0", + "@types/json-schema": "^7.0.7", + "tslib": "^2.3.1" } }, - "node_modules/semantic-release/node_modules/string-width": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", - "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" + "@stoplight/spectral-functions": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-functions/-/spectral-functions-1.6.1.tgz", + "integrity": "sha512-f4cFtbI35bQtY0t4fYhKtS+/nMU3UsAeFlqm4tARGGG5WjOv4ieCFNFbgodKNiO3F4O+syMEjVQuXlBNPuY7jw==", + "requires": { + "@stoplight/better-ajv-errors": "1.0.1", + "@stoplight/json": "~3.17.1", + "@stoplight/spectral-core": "^1.7.0", + "@stoplight/spectral-formats": "^1.0.0", + "@stoplight/spectral-runtime": "^1.1.0", + "@stoplight/types": "12.3.0", + "ajv": "^8.6.3", + "ajv-draft-04": "~1.0.0", + "ajv-errors": "~3.0.0", + "ajv-formats": "~2.1.0", + "lodash": "~4.17.21", + "tslib": "^2.3.0" + }, + "dependencies": { + "@stoplight/better-ajv-errors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.1.tgz", + "integrity": "sha512-rgxT+ZMeZbYRiOLNk6Oy6e/Ig1iQKo0IL8v/Y9E/0FewzgtkGs/p5dMeUpIFZXWj3RZaEPmfL9yh0oUEmNXZjg==", + "requires": { + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" + } + }, + "ajv": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz", + "integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "ajv-draft-04": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", + "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", + "requires": {} + }, + "ajv-errors": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", + "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", + "requires": {} + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + } } }, - "node_modules/semantic-release/node_modules/strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, + "@stoplight/spectral-parsers": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-parsers/-/spectral-parsers-1.0.1.tgz", + "integrity": "sha512-JGKlrTxhjUzIGo2FOCf8Qp0WKTWXedoRNPovqYPE8pAp08epqU8DzHwl/i46BGH5yfTmouKMZgBN/PV2+Cr5jw==", + "requires": { + "@stoplight/json": "3.17.0", + "@stoplight/types": "12.3.0", + "@stoplight/yaml": "4.2.2", + "tslib": "^2.3.1" + }, "dependencies": { - "ansi-regex": "^5.0.0" + "@stoplight/json": { + "version": "3.17.0", + "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.17.0.tgz", + "integrity": "sha512-WW0z2bb0D4t8FTl+zNTCu46J8lEOsrUhBPgwEYQ3Ri2Y0MiRE4U1/9ZV8Ki+pIJznZgY9i42bbFwOBxyZn5/6w==", + "requires": { + "@stoplight/ordered-object-literal": "^1.0.2", + "@stoplight/types": "^12.3.0", + "jsonc-parser": "~2.2.1", + "lodash": "^4.17.21", + "safe-stable-stringify": "^1.1" + } + } + } + }, + "@stoplight/spectral-ref-resolver": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-ref-resolver/-/spectral-ref-resolver-1.0.1.tgz", + "integrity": "sha512-0tY7nTOccvTsa3c4QbSWfJ8wGfPO1RXvmKnmBjuyLfoTMNuhkHPII9gKhCjygsshzsBLxs2IyRHZYhWYVnEbCA==", + "requires": { + "@stoplight/json-ref-readers": "1.2.2", + "@stoplight/json-ref-resolver": "3.1.3", + "@stoplight/spectral-runtime": "^1.0.0", + "dependency-graph": "0.11.0", + "tslib": "^2.3.1" + } + }, + "@stoplight/spectral-rulesets": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-rulesets/-/spectral-rulesets-1.6.0.tgz", + "integrity": "sha512-iRfcG5Ucp2OPGszaergiN+shVkD9XO1VKRmFqXlYbLxI8oi0jBAFXQr+tKJGt6ErXBQQoaIx2Liiirgq7kR3Nw==", + "requires": { + "@asyncapi/specs": "^2.13.0", + "@stoplight/better-ajv-errors": "1.0.1", + "@stoplight/json": "^3.17.0", + "@stoplight/spectral-core": "^1.8.1", + "@stoplight/spectral-formats": "^1.1.0", + "@stoplight/spectral-functions": "^1.5.1", + "@stoplight/spectral-runtime": "^1.1.1", + "@stoplight/types": "^12.3.0", + "@types/json-schema": "^7.0.7", + "ajv": "^8.8.2", + "ajv-formats": "~2.1.0", + "json-schema-traverse": "^1.0.0", + "lodash": "~4.17.21", + "tslib": "^2.3.0" }, - "engines": { - "node": ">=8" + "dependencies": { + "@stoplight/better-ajv-errors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.1.tgz", + "integrity": "sha512-rgxT+ZMeZbYRiOLNk6Oy6e/Ig1iQKo0IL8v/Y9E/0FewzgtkGs/p5dMeUpIFZXWj3RZaEPmfL9yh0oUEmNXZjg==", + "requires": { + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" + } + }, + "ajv": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz", + "integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + } } }, - "node_modules/semantic-release/node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true, - "engines": { - "node": ">=8" + "@stoplight/spectral-runtime": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-runtime/-/spectral-runtime-1.1.2.tgz", + "integrity": "sha512-fr5zRceXI+hrl82yAVoME+4GvJie8v3wmOe9tU+ZLRRNonizthy8qDi0Z/z4olE+vGreSDcuDOZ7JjRxFW5kTw==", + "requires": { + "@stoplight/json": "^3.17.0", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^12.3.0", + "abort-controller": "^3.0.0", + "lodash": "^4.17.21", + "node-fetch": "^2.6.7", + "tslib": "^2.3.1" } }, - "node_modules/semantic-release/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "@stoplight/types": { + "version": "12.3.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-12.3.0.tgz", + "integrity": "sha512-hgzUR1z5BlYvIzUeFK5pjs5JXSvEutA9Pww31+dVicBlunsG1iXopDx/cvfBY7rHOrgtZDuvyeK4seqkwAZ6Cg==", + "requires": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + } + }, + "@stoplight/yaml": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@stoplight/yaml/-/yaml-4.2.2.tgz", + "integrity": "sha512-N086FU8pmSpjc5TvMBjmlTniZVh3OXzmEh6SYljSLiuv6aMxgjyjf13YrAlUqgu0b4b6pQ5zmkjrfo9i0SiLsw==", + "requires": { + "@stoplight/ordered-object-literal": "^1.0.1", + "@stoplight/types": "^12.0.0", + "@stoplight/yaml-ast-parser": "0.0.48", + "tslib": "^2.2.0" + } + }, + "@stoplight/yaml-ast-parser": { + "version": "0.0.48", + "resolved": "https://registry.npmjs.org/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.48.tgz", + "integrity": "sha512-sV+51I7WYnLJnKPn2EMWgS4EUfoP4iWEbrWwbXsj0MZCB/xOK8j6+C9fntIdOM50kpx45ZLC3s6kwKivWuqvyg==" + }, + "@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "dev": true + }, + "@tsconfig/node10": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.8.tgz", + "integrity": "sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==", + "dev": true + }, + "@tsconfig/node12": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.9.tgz", + "integrity": "sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==", + "dev": true + }, + "@tsconfig/node14": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.1.tgz", + "integrity": "sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==", + "dev": true + }, + "@tsconfig/node16": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.2.tgz", + "integrity": "sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==", + "dev": true + }, + "@types/babel__core": { + "version": "7.1.18", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.18.tgz", + "integrity": "sha512-S7unDjm/C7z2A2R9NzfKCK1I+BAALDtxEmsJBwlB3EzNfb929ykjL++1CK9LO++EIp2fQrC8O+BwjKvz6UeDyQ==", "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + "requires": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" } }, - "node_modules/semantic-release/node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "@types/babel__generator": { + "version": "7.6.4", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", + "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", "dev": true, - "engines": { - "node": ">=10" + "requires": { + "@babel/types": "^7.0.0" } }, - "node_modules/semantic-release/node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "@types/babel__template": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", + "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", "dev": true, - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" + "requires": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" } }, - "node_modules/semantic-release/node_modules/yargs-parser": { - "version": "20.2.7", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.7.tgz", - "integrity": "sha512-FiNkvbeHzB/syOjIUxFDCnhSfzAL8R5vs40MgLFBorXACCOAEaWu0gRZl14vG8MR9AOJIZbmkjhusqBYZ3HTHw==", + "@types/babel__traverse": { + "version": "7.14.2", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.14.2.tgz", + "integrity": "sha512-K2waXdXBi2302XUdcHcR1jCeU0LL4TD9HRs/gk0N2Xvrht+G/BfJa4QObBQZfhMdxiCpV3COl5Nfq4uKTeTnJA==", "dev": true, - "engines": { - "node": ">=10" + "requires": { + "@babel/types": "^7.3.0" } }, - "node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "@types/graceful-fs": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz", + "integrity": "sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==", "dev": true, - "bin": { - "semver": "bin/semver" + "requires": { + "@types/node": "*" } }, - "node_modules/semver-diff": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", - "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", + "@types/istanbul-lib-coverage": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", + "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", + "dev": true + }, + "@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", "dev": true, - "dependencies": { - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8" + "requires": { + "@types/istanbul-lib-coverage": "*" } }, - "node_modules/semver-diff/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "@types/istanbul-reports": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", "dev": true, - "bin": { - "semver": "bin/semver.js" + "requires": { + "@types/istanbul-lib-report": "*" } }, - "node_modules/semver-regex": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.3.tgz", - "integrity": "sha512-Aqi54Mk9uYTjVexLnR67rTyBusmwd04cLkHy9hNvk3+G3nT2Oyg7E0l4XVbOaNwIvQ3hHeYxGcyEy+mKreyBFQ==", + "@types/jest": { + "version": "27.4.1", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.4.1.tgz", + "integrity": "sha512-23iPJADSmicDVrWk+HT58LMJtzLAnB2AgIzplQuq/bSrGaxCrlvRFjGbXmamnnk/mAmCdLStiGqggu28ocUyiw==", "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "requires": { + "jest-matcher-utils": "^27.0.0", + "pretty-format": "^27.0.0" } }, - "node_modules/set-getter": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/set-getter/-/set-getter-0.1.1.tgz", - "integrity": "sha512-9sVWOy+gthr+0G9DzqqLaYNA7+5OKkSmcqjL9cBpDEaZrr3ShQlyX2cZ/O/ozE41oxn/Tt0LGEM/w4Rub3A3gw==", + "@types/js-yaml": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz", + "integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==", + "dev": true + }, + "@types/json-schema": { + "version": "7.0.9", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz", + "integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==" + }, + "@types/node": { + "version": "17.0.21", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.21.tgz", + "integrity": "sha512-DBZCJbhII3r90XbQxI8Y9IjjiiOGlZ0Hr32omXIZvwwZ7p4DMMXGrKXVyPfuoBOri9XNtL0UK69jYIBIsRX3QQ==", + "dev": true + }, + "@types/normalize-package-data": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", + "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", + "dev": true + }, + "@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", + "dev": true + }, + "@types/prettier": { + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.4.4.tgz", + "integrity": "sha512-ReVR2rLTV1kvtlWFyuot+d1pkpG2Fw/XKE3PDAdj57rbM97ttSp9JZ2UsP+2EHTylra9cUf6JA7tGwW1INzUrA==", + "dev": true + }, + "@types/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", + "dev": true + }, + "@types/stack-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", + "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", + "dev": true + }, + "@types/urijs": { + "version": "1.19.19", + "resolved": "https://registry.npmjs.org/@types/urijs/-/urijs-1.19.19.tgz", + "integrity": "sha512-FDJNkyhmKLw7uEvTxx5tSXfPeQpO0iy73Ry+PmYZJvQy0QIWX8a7kJ4kLWRf+EbTPJEPDSgPXHaM7pzr5lmvCg==" + }, + "@types/yargs": { + "version": "16.0.4", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", + "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", "dev": true, - "dependencies": { - "to-object-path": "^0.3.0" - }, - "engines": { - "node": ">=0.10.0" + "requires": { + "@types/yargs-parser": "*" } }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "@types/yargs-parser": { + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", + "dev": true + }, + "abab": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz", + "integrity": "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==", + "dev": true + }, + "abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "requires": { + "event-target-shim": "^5.0.0" + } + }, + "acorn": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz", + "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==", + "dev": true + }, + "acorn-globals": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", + "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" + "requires": { + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1" }, - "engines": { - "node": ">=8" + "dependencies": { + "acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true + } } }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "acorn-jsx": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.1.tgz", + "integrity": "sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==", "dev": true, - "engines": { - "node": ">=8" - } + "requires": {} }, - "node_modules/signal-exit": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", - "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", + "acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", "dev": true }, - "node_modules/signale": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/signale/-/signale-1.4.0.tgz", - "integrity": "sha512-iuh+gPf28RkltuJC7W5MRi6XAjTDCAPC/prJUpQoG4vIP3MJZ+GTydVnodXA7pwvTKb2cA0m9OFZW/cdWy/I/w==", + "agent-base": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.0.tgz", + "integrity": "sha512-j1Q7cSCqN+AwrmDd+pzgqc0/NpC655x2bUf5ZjRIO77DcNBFmh+OgRNzF6OKdCC9RSCb19fGd99+bhXFdkRNqw==", "dev": true, - "dependencies": { - "chalk": "^2.3.2", - "figures": "^2.0.0", - "pkg-conf": "^2.1.0" - }, - "engines": { - "node": ">=6" + "requires": { + "debug": "4" } }, - "node_modules/signale/node_modules/figures": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", - "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", + "aggregate-error": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.0.1.tgz", + "integrity": "sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA==", "dev": true, - "dependencies": { - "escape-string-regexp": "^1.0.5" + "requires": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" }, - "engines": { - "node": ">=4" + "dependencies": { + "indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true + } } }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "ajv": { + "version": "6.12.3", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.3.tgz", + "integrity": "sha512-4K0cK3L1hsqk9xIb2z9vs/XU+PGJZ9PNpJRDS9YLzmNdX6jmVPfamLvTJr0aDAusnHyCHO6MjzlkAsgtqp9teA==", "dev": true, - "engines": { - "node": ">=8" + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" } }, - "node_modules/slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=10" + "ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "requires": { + "ajv": "^8.0.0" }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" + "dependencies": { + "ajv": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz", + "integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + } } }, - "node_modules/slice-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" + "requires": { + "type-fest": "^0.21.3" }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "dependencies": { + "type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true + } } }, - "node_modules/slice-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "ansi-red": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", + "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=", "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" + "requires": { + "ansi-wrap": "0.1.0" } }, - "node_modules/slice-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true }, - "node_modules/slice-ansi/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, - "engines": { - "node": ">=8" + "requires": { + "color-convert": "^1.9.0" } }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "ansi-wrap": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", + "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=", + "dev": true }, - "node_modules/spawn-error-forwarder": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/spawn-error-forwarder/-/spawn-error-forwarder-1.0.0.tgz", - "integrity": "sha1-Gv2Uc46ZmwNG17n8NzvlXgdXcCk=", + "ansicolors": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.3.2.tgz", + "integrity": "sha1-ZlWX3oap/+Oqm/vmyuXG6kJrSXk=", "dev": true }, - "node_modules/spdx-correct": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", - "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", + "anymatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", + "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", "dev": true, - "dependencies": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" } }, - "node_modules/spdx-exceptions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", - "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", + "arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", "dev": true }, - "node_modules/spdx-expression-parse": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", - "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, - "dependencies": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" + "requires": { + "sprintf-js": "~1.0.2" } }, - "node_modules/spdx-license-ids": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz", - "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==", + "argv-formatter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/argv-formatter/-/argv-formatter-1.0.0.tgz", + "integrity": "sha1-oMoMvCmltz6Dbuvhy/bF4OTrgvk=", "dev": true }, - "node_modules/split": { + "array-find-index": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", + "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", + "dev": true + }, + "array-ify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", + "integrity": "sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=", + "dev": true + }, + "array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true + }, + "arrify": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", - "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "dev": true + }, + "astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true + }, + "astring": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/astring/-/astring-1.8.1.tgz", + "integrity": "sha512-Aj3mbwVzj7Vve4I/v2JYOPFkCGM2YS7OqQTNSxmUR+LECRpokuPgAYghePgr6SALDo5bD5DlfbSaYjOzGJZOLQ==" + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "dev": true + }, + "at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "dev": true + }, + "autolinker": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.28.1.tgz", + "integrity": "sha1-BlK0kYgYefB3XazgzcoyM5QqTkc=", "dev": true, - "dependencies": { - "through": "2" - }, - "engines": { - "node": "*" + "requires": { + "gulp-header": "^1.7.1" } }, - "node_modules/split2": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-2.2.0.tgz", - "integrity": "sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw==", + "babel-jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz", + "integrity": "sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==", "dev": true, + "requires": { + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, "dependencies": { - "through2": "^2.0.2" + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, - "node_modules/split2/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", "dev": true, - "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" } }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true - }, - "node_modules/stream-combiner2": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", - "integrity": "sha1-+02KFCDqNidk4hrUeAOXvry0HL4=", + "babel-plugin-jest-hoist": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz", + "integrity": "sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==", "dev": true, - "dependencies": { - "duplexer2": "~0.1.0", - "readable-stream": "^2.0.2" + "requires": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.0.0", + "@types/babel__traverse": "^7.0.6" } }, - "node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", "dev": true, - "dependencies": { - "safe-buffer": "~5.1.0" + "requires": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + } + }, + "babel-preset-jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz", + "integrity": "sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==", + "dev": true, + "requires": { + "babel-plugin-jest-hoist": "^27.5.1", + "babel-preset-current-node-syntax": "^1.0.0" } }, - "node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + }, + "before-after-hook": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.1.tgz", + "integrity": "sha512-/6FKxSTWoJdbsLDF8tdIjaRiFXiE6UHsEHE3OPI/cwPURCVi1ukP0gmLn7XWEiFk5TcwQjjY5PWsU+j+tgXgmw==", + "dev": true + }, + "blueimp-md5": { + "version": "2.18.0", + "resolved": "https://registry.npmjs.org/blueimp-md5/-/blueimp-md5-2.18.0.tgz", + "integrity": "sha512-vE52okJvzsVWhcgUHOv+69OG3Mdg151xyn41aVQN/5W5S+S43qZhxECtYLAEHMSFWX6Mv5IZrzj3T5+JqXfj5Q==" + }, + "bottleneck": { + "version": "2.19.5", + "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz", + "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dev": true, - "engines": { - "node": ">=4" + "requires": { + "fill-range": "^7.0.1" } }, - "node_modules/strip-color": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/strip-color/-/strip-color-0.1.0.tgz", - "integrity": "sha1-EG9l09PmotlAHKwOsM6LinArT3s=", + "browser-process-hrtime": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", + "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", + "dev": true + }, + "browserslist": { + "version": "4.20.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.20.0.tgz", + "integrity": "sha512-bnpOoa+DownbciXj0jVGENf8VYQnE2LNWomhYuCsMmmx9Jd9lwq0WXODuwpSsp8AVdKM2/HorrzxAfbKvWTByQ==", "dev": true, - "engines": { - "node": ">=0.10.0" + "requires": { + "caniuse-lite": "^1.0.30001313", + "electron-to-chromium": "^1.4.76", + "escalade": "^3.1.1", + "node-releases": "^2.0.2", + "picocolors": "^1.0.0" } }, - "node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", "dev": true, - "engines": { - "node": ">=6" + "requires": { + "fast-json-stable-stringify": "2.x" } }, - "node_modules/strip-indent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", - "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", + "bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", "dev": true, - "engines": { - "node": ">=4" + "requires": { + "node-int64": "^0.4.0" } }, - "node_modules/strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "dev": true + }, + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true + }, + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + }, + "camelcase-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", + "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", "dev": true, - "engines": { - "node": ">=0.10.0" + "requires": { + "camelcase": "^4.1.0", + "map-obj": "^2.0.0", + "quick-lru": "^1.0.0" } }, - "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "caniuse-lite": { + "version": "1.0.30001314", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001314.tgz", + "integrity": "sha512-0zaSO+TnCHtHJIbpLroX7nsD+vYuOVjl3uzFbJO1wMVbuveJA0RK2WcQA9ZUIOiO0/ArMiMgHJLxfEZhQiC0kw==", + "dev": true + }, + "cardinal": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/cardinal/-/cardinal-2.1.1.tgz", + "integrity": "sha1-fMEFXYItISlU0HsIXeolHMe8VQU=", "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" + "requires": { + "ansicolors": "~0.3.2", + "redeyed": "~2.1.0" } }, - "node_modules/supports-hyperlinks": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.2.0.tgz", - "integrity": "sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ==", + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, - "dependencies": { - "has-flag": "^4.0.0", - "supports-color": "^7.0.0" - }, - "engines": { - "node": ">=8" + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" } }, - "node_modules/supports-hyperlinks/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true + }, + "ci-info": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.3.0.tgz", + "integrity": "sha512-riT/3vI5YpVH6/qomlDnJow6TBee2PBKSEpx3O32EGPYbWGIRsIlGRms3Sm74wYE1JMo8RnO04Hb12+v1J5ICw==", + "dev": true + }, + "cjs-module-lexer": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", + "integrity": "sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==", + "dev": true + }, + "clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "dev": true + }, + "cli-table": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/cli-table/-/cli-table-0.3.6.tgz", + "integrity": "sha512-ZkNZbnZjKERTY5NwC2SeMeLeifSPq/pubeRoTpdr3WchLlnZg6hEgvHkK5zL7KNFdd9PmHN8lxrENUwI3cE8vQ==", "dev": true, - "engines": { - "node": ">=8" + "requires": { + "colors": "1.0.3" } }, - "node_modules/supports-hyperlinks/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" } }, - "node_modules/table": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/table/-/table-6.7.1.tgz", - "integrity": "sha512-ZGum47Yi6KOOFDE8m223td53ath2enHcYLgOCjGr5ngu8bdIARQk6mN/wRMv4yMRcHnCSnHbCEha4sobQx5yWg==", + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", + "dev": true + }, + "coffee-script": { + "version": "1.12.7", + "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", + "integrity": "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==", + "dev": true + }, + "collect-v8-coverage": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", + "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", + "dev": true + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, - "dependencies": { - "ajv": "^8.0.1", - "lodash.clonedeep": "^4.5.0", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10.0.0" + "requires": { + "color-name": "1.1.3" } }, - "node_modules/table/node_modules/ajv": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.5.0.tgz", - "integrity": "sha512-Y2l399Tt1AguU3BPRP9Fn4eN+Or+StUGWCUpbnFyXSo8NZ9S4uj+AG2pjs5apK+ZMOwYOz1+a+VKvKH7CudXgQ==", + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "colors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz", + "integrity": "sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=", + "dev": true + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "requires": { + "delayed-stream": "~1.0.0" } }, - "node_modules/table/node_modules/ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "compare-func": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.2.tgz", + "integrity": "sha1-md0LpFfh+bxyKxLAjsM+6rMfpkg=", "dev": true, - "engines": { - "node": ">=8" + "requires": { + "array-ify": "^1.0.0", + "dot-prop": "^3.0.0" } }, - "node_modules/table/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, - "node_modules/table/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", "dev": true, - "engines": { - "node": ">=8" + "requires": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" } }, - "node_modules/table/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "node_modules/table/node_modules/string-width": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", - "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", + "concat-with-sourcemaps": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", + "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" + "requires": { + "source-map": "^0.6.1" } }, - "node_modules/table/node_modules/strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "conventional-changelog-angular": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.6.tgz", + "integrity": "sha512-QDEmLa+7qdhVIv8sFZfVxU1VSyVvnXPsxq8Vam49mKUcO1Z8VTLEJk9uI21uiJUsnmm0I4Hrsdc9TgkOQo9WSA==", "dev": true, - "dependencies": { - "ansi-regex": "^5.0.0" - }, - "engines": { - "node": ">=8" + "requires": { + "compare-func": "^1.3.1", + "q": "^1.5.1" } }, - "node_modules/temp-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", - "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", + "conventional-changelog-conventionalcommits": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.2.3.tgz", + "integrity": "sha512-atGa+R4vvEhb8N/8v3IoW59gCBJeeFiX6uIbPu876ENAmkMwsenyn0R21kdDHJFLQdy6zW4J6b4xN8KI3b9oww==", "dev": true, - "engines": { - "node": ">=8" + "requires": { + "compare-func": "^1.3.1", + "lodash": "^4.17.15", + "q": "^1.5.1" } }, - "node_modules/tempy": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/tempy/-/tempy-0.5.0.tgz", - "integrity": "sha512-VEY96x7gbIRfsxqsafy2l5yVxxp3PhwAGoWMyC2D2Zt5DmEv+2tGiPOrquNRpf21hhGnKLVEsuqleqiZmKG/qw==", + "conventional-changelog-writer": { + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-4.0.11.tgz", + "integrity": "sha512-g81GQOR392I+57Cw3IyP1f+f42ME6aEkbR+L7v1FBBWolB0xkjKTeCWVguzRrp6UiT1O6gBpJbEy2eq7AnV1rw==", "dev": true, - "dependencies": { - "is-stream": "^2.0.0", - "temp-dir": "^2.0.0", - "type-fest": "^0.12.0", - "unique-string": "^2.0.0" - }, - "engines": { - "node": ">=10" + "requires": { + "compare-func": "^1.3.1", + "conventional-commits-filter": "^2.0.2", + "dateformat": "^3.0.0", + "handlebars": "^4.4.0", + "json-stringify-safe": "^5.0.1", + "lodash": "^4.17.15", + "meow": "^5.0.0", + "semver": "^6.0.0", + "split": "^1.0.0", + "through2": "^3.0.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } } }, - "node_modules/tempy/node_modules/type-fest": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.12.0.tgz", - "integrity": "sha512-53RyidyjvkGpnWPMF9bQgFtWp+Sl8O2Rp13VavmJgfAP9WWG6q6TkrKU8iyJdnwnfgHI6k2hTlgqH4aSdjoTbg==", + "conventional-commits-filter": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-2.0.2.tgz", + "integrity": "sha512-WpGKsMeXfs21m1zIw4s9H5sys2+9JccTzpN6toXtxhpw2VNF2JUXwIakthKBy+LN4DvJm+TzWhxOMWOs1OFCFQ==", "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "requires": { + "lodash.ismatch": "^4.4.0", + "modify-values": "^1.0.0" } }, - "node_modules/text-extensions": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-1.9.0.tgz", - "integrity": "sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==", + "conventional-commits-parser": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.0.8.tgz", + "integrity": "sha512-YcBSGkZbYp7d+Cr3NWUeXbPDFUN6g3SaSIzOybi8bjHL5IJ5225OSCxJJ4LgziyEJ7AaJtE9L2/EU6H7Nt/DDQ==", "dev": true, - "engines": { - "node": ">=0.10" + "requires": { + "is-text-path": "^1.0.1", + "JSONStream": "^1.0.4", + "lodash": "^4.17.15", + "meow": "^5.0.0", + "split2": "^2.0.0", + "through2": "^3.0.0", + "trim-off-newlines": "^1.0.0" } }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", - "dev": true + "convert-source-map": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", + "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.1" + } }, - "node_modules/through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true }, - "node_modules/through2": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", - "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", + "cosmiconfig": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.0.tgz", + "integrity": "sha512-pondGvTuVYDk++upghXJabWzL6Kxu6f26ljFw64Swq9v6sQPUL3EUlVDV56diOjpCayKihL6hVe8exIACU4XcA==", "dev": true, + "requires": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, "dependencies": { - "readable-stream": "2 || 3" + "parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + } + }, + "path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true + } } }, - "node_modules/to-object-path": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", + "create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, + "cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" + "requires": { + "cross-spawn": "^7.0.1" } }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, - "dependencies": { - "is-number": "^7.0.0" + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, - "engines": { - "node": ">=8.0" + "dependencies": { + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + } } }, - "node_modules/toml": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/toml/-/toml-2.3.6.tgz", - "integrity": "sha512-gVweAectJU3ebq//Ferr2JUY4WKSDe5N+z0FvjDncLGyHmIDoxgY/2Ie4qfEIDm4IS7OA6Rmdm7pdEEdMcV/xQ==", - "dev": true - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=", + "crypto-random-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", + "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", "dev": true }, - "node_modules/traverse": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.6.tgz", - "integrity": "sha1-y99WD9e5r2MlAv7UD5GMFX6pcTc=", + "cssom": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", + "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", "dev": true }, - "node_modules/trim-newlines": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", - "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", + "cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", "dev": true, - "engines": { - "node": ">=4" + "requires": { + "cssom": "~0.3.6" + }, + "dependencies": { + "cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", + "dev": true + } } }, - "node_modules/trim-off-newlines": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.3.tgz", - "integrity": "sha512-kh6Tu6GbeSNMGfrrZh6Bb/4ZEHV1QlB4xNDBeog8Y9/QwFlKTRyWvY3Fs9tRDAMZliVUwieMgEdIeL/FtqjkJg==", + "currently-unhandled": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", + "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", "dev": true, - "engines": { - "node": ">=0.10.0" + "requires": { + "array-find-index": "^1.0.1" } }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "data-urls": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", + "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1" + "requires": { + "abab": "^2.0.3", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0" }, - "engines": { - "node": ">= 0.8.0" + "dependencies": { + "tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "dev": true, + "requires": { + "punycode": "^2.1.1" + } + }, + "webidl-conversions": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", + "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", + "dev": true + }, + "whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "dev": true, + "requires": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + } + } } }, - "node_modules/type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "dateformat": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", + "integrity": "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==", + "dev": true + }, + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", "dev": true, - "engines": { - "node": ">=8" + "requires": { + "ms": "^2.1.1" } }, - "node_modules/typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", "dev": true }, - "node_modules/uglify-js": { - "version": "3.13.5", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.5.tgz", - "integrity": "sha512-xtB8yEqIkn7zmOyS2zUNBsYCBRhDkvlNxMMY2smuJ/qA8NCHeQvKCF3i9Z4k8FJH4+PJvZRtMrPynfZ75+CSZw==", + "decamelize-keys": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", + "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=", "dev": true, - "optional": true, - "bin": { - "uglifyjs": "bin/uglifyjs" + "requires": { + "decamelize": "^1.1.0", + "map-obj": "^1.0.0" }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/unique-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", - "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", - "dev": true, "dependencies": { - "crypto-random-string": "^2.0.0" - }, - "engines": { - "node": ">=8" + "map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", + "dev": true + } } }, - "node_modules/universal-user-agent": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", - "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==", + "decimal.js": { + "version": "10.3.1", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.3.1.tgz", + "integrity": "sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ==", "dev": true }, - "node_modules/universalify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz", - "integrity": "sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug==", - "dev": true, - "engines": { - "node": ">= 10.0.0" - } + "dedent": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", + "integrity": "sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=", + "dev": true }, - "node_modules/uri-js": { + "deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "dev": true + }, + "deep-is": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", + "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", + "dev": true + }, + "deepmerge": { "version": "4.2.2", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", - "dev": true, - "dependencies": { - "punycode": "^2.1.0" - } + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", + "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "dev": true }, - "node_modules/url-join": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", - "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==", + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", "dev": true }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dependency-graph": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", + "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==" + }, + "deprecation": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", + "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", "dev": true }, - "node_modules/v8-compile-cache": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", - "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", + "detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", "dev": true }, - "node_modules/validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "diacritics-map": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/diacritics-map/-/diacritics-map-0.1.0.tgz", + "integrity": "sha1-bfwP+dAQAKLt8oZTccrDFulJd68=", + "dev": true + }, + "diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true + }, + "diff-sequences": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", + "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", + "dev": true + }, + "dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", "dev": true, + "requires": { + "path-type": "^4.0.0" + }, "dependencies": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" + "path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true + } } }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=", - "dev": true + "doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", + "domexception": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", + "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", "dev": true, + "requires": { + "webidl-conversions": "^5.0.0" + }, "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" + "webidl-conversions": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", + "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", + "dev": true + } } }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dot-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-3.0.0.tgz", + "integrity": "sha1-G3CK8JSknJoOfbyteQq6U52sEXc=", "dev": true, - "engines": { - "node": ">=0.10.0" + "requires": { + "is-obj": "^1.0.0" } }, - "node_modules/wordwrap": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", - "dev": true + "duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", + "dev": true, + "requires": { + "readable-stream": "^2.0.2" + } }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "electron-to-chromium": { + "version": "1.4.77", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.77.tgz", + "integrity": "sha512-fiDxw8mO9Ph1Z0bjX2sFTPpi0J0QkOiwOJF+5Q0J0baNc/F9lLePAvDPlnoxvbUYYMizqrKPeotRRkJ9LtxAew==", "dev": true }, - "node_modules/xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true, - "engines": { - "node": ">=0.4" - } + "emittery": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", + "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==", + "dev": true }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, - "node_modules/yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", "dev": true, - "engines": { - "node": ">= 6" + "requires": { + "once": "^1.4.0" } }, - "node_modules/yargs-parser": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz", - "integrity": "sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ==", + "enquirer": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", + "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", "dev": true, + "requires": { + "ansi-colors": "^4.1.1" + }, "dependencies": { - "camelcase": "^4.1.0" + "ansi-colors": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", + "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", + "dev": true + } } - } - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", - "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", + }, + "env-ci": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/env-ci/-/env-ci-5.0.2.tgz", + "integrity": "sha512-Xc41mKvjouTXD3Oy9AqySz1IeyvJvHZ20Twf5ZLYbNpPPIuCnL/qHCmNlD01LoNy0JTunw9HPYVptD19Ac7Mbw==", + "dev": true, + "requires": { + "execa": "^4.0.0", + "java-properties": "^1.0.0" + }, + "dependencies": { + "execa": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", + "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.0", + "get-stream": "^5.0.0", + "human-signals": "^1.1.1", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.0", + "onetime": "^5.1.0", + "signal-exit": "^3.0.2", + "strip-final-newline": "^2.0.0" + } + }, + "get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + } + } + }, + "error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "dev": true, "requires": { - "@babel/highlight": "^7.8.3" + "is-arrayish": "^0.2.1" } }, - "@babel/helper-validator-identifier": { - "version": "7.9.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.5.tgz", - "integrity": "sha512-/8arLKUFq882w4tWGj9JYzRpAlZgiWUJ+dtteNTDqrRBz9Iguck9Rn3ykuBDoUwh2TO4tSAJlrxDUOXWklJe4g==", + "escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", "dev": true }, - "@babel/highlight": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz", - "integrity": "sha512-lJZPilxX7Op3Nv/2cvFdnlepPXDxi29wxteT57Q965oc5R9v86ztx0jfxVrTcBk8C2kcPkkDa2Z4T3ZsPPVWsQ==", + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "escodegen": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", + "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", "dev": true, "requires": { - "@babel/helper-validator-identifier": "^7.9.0", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1", + "source-map": "~0.6.1" + }, + "dependencies": { + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + } + }, + "optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dev": true, + "requires": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + } + }, + "prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", + "dev": true + }, + "type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2" + } + } } }, - "@eslint/eslintrc": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.1.tgz", - "integrity": "sha512-5v7TDE9plVhvxQeWLXDTvFvJBdH6pEsdnl2g/dAptmuFEPedQ4Erq5rsDsX+mvAM610IhNaO2W5V1dOOnDKxkQ==", + "eslint": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.27.0.tgz", + "integrity": "sha512-JZuR6La2ZF0UD384lcbnd0Cgg6QJjiCwhMD6eU4h/VGPcVGwawNNzKU41tgokGXnfjOOyI6QIffthhJTPzzuRA==", "dev": true, "requires": { - "ajv": "^6.12.4", - "debug": "^4.1.1", - "espree": "^7.3.0", - "globals": "^12.1.0", + "@babel/code-frame": "7.12.11", + "@eslint/eslintrc": "^0.4.1", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.0.1", + "doctrine": "^3.0.0", + "enquirer": "^2.3.5", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^5.1.1", + "eslint-utils": "^2.1.0", + "eslint-visitor-keys": "^2.0.0", + "espree": "^7.3.1", + "esquery": "^1.4.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^5.0.0", + "globals": "^13.6.0", "ignore": "^4.0.6", - "import-fresh": "^3.2.1", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", "js-yaml": "^3.13.1", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", "minimatch": "^3.0.4", - "strip-json-comments": "^3.1.1" + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "progress": "^2.0.0", + "regexpp": "^3.1.0", + "semver": "^7.2.1", + "strip-ansi": "^6.0.0", + "strip-json-comments": "^3.1.0", + "table": "^6.0.9", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" }, "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "@babel/code-frame": { + "version": "7.12.11", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", + "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", "dev": true, "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "@babel/highlight": "^7.10.4" } }, - "globals": { - "version": "12.4.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", - "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", + "chalk": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", + "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", "dev": true, "requires": { - "type-fest": "^0.8.1" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" } }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true + }, + "eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, "ignore": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", "dev": true }, + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, "strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - }, - "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true - } - } - }, - "@nodelib/fs.scandir": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz", - "integrity": "sha512-33g3pMJk3bg5nXbL/+CY6I2eJDzZAni49PfJnL5fghPTggPvBd/pFNSgJsdAgWptuFu7qq/ERvOYFlhvsLTCKA==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "2.0.4", - "run-parallel": "^1.1.9" - } - }, - "@nodelib/fs.stat": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.4.tgz", - "integrity": "sha512-IYlHJA0clt2+Vg7bccq+TzRdJvv19c2INqBSsoOLp1je7xjtr7J26+WXR72MCdvU9q1qTzIWDfhMf+DRvQJK4Q==", - "dev": true - }, - "@nodelib/fs.walk": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.6.tgz", - "integrity": "sha512-8Broas6vTtW4GIXTAHDoE32hnN2M5ykgCpWGbuXHQ15vEMqr23pB76e/GZcYsZCHALv50ktd24qhEyKr6wBtow==", - "dev": true, - "requires": { - "@nodelib/fs.scandir": "2.1.4", - "fastq": "^1.6.0" - } - }, - "@octokit/auth-token": { - "version": "2.4.5", - "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.5.tgz", - "integrity": "sha512-BpGYsPgJt05M7/L/5FoE1PiAbdxXFZkX/3kDYcsvd1v6UhlnE5e96dTDr0ezX/EFwciQxf3cNV0loipsURU+WA==", - "dev": true, - "requires": { - "@octokit/types": "^6.0.3" - } - }, - "@octokit/core": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.4.0.tgz", - "integrity": "sha512-6/vlKPP8NF17cgYXqucdshWqmMZGXkuvtcrWCgU5NOI0Pl2GjlmZyWgBMrU8zJ3v2MJlM6++CiB45VKYmhiWWg==", - "dev": true, - "requires": { - "@octokit/auth-token": "^2.4.4", - "@octokit/graphql": "^4.5.8", - "@octokit/request": "^5.4.12", - "@octokit/request-error": "^2.0.5", - "@octokit/types": "^6.0.3", - "before-after-hook": "^2.2.0", - "universal-user-agent": "^6.0.0" - } - }, - "@octokit/endpoint": { - "version": "6.0.11", - "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.11.tgz", - "integrity": "sha512-fUIPpx+pZyoLW4GCs3yMnlj2LfoXTWDUVPTC4V3MUEKZm48W+XYpeWSZCv+vYF1ZABUm2CqnDVf1sFtIYrj7KQ==", - "dev": true, - "requires": { - "@octokit/types": "^6.0.3", - "is-plain-object": "^5.0.0", - "universal-user-agent": "^6.0.0" + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true + } } }, - "@octokit/graphql": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.6.2.tgz", - "integrity": "sha512-WmsIR1OzOr/3IqfG9JIczI8gMJUMzzyx5j0XXQ4YihHtKlQc+u35VpVoOXhlKAlaBntvry1WpAzPl/a+s3n89Q==", + "eslint-plugin-mocha": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-7.0.1.tgz", + "integrity": "sha512-zkQRW9UigRaayGm/pK9TD5RjccKXSgQksNtpsXbG9b6L5I+jNx7m98VUbZ4w1H1ArlNA+K7IOH+z8TscN6sOYg==", "dev": true, "requires": { - "@octokit/request": "^5.3.0", - "@octokit/types": "^6.0.3", - "universal-user-agent": "^6.0.0" + "eslint-utils": "^2.0.0", + "ramda": "^0.27.0" } }, - "@octokit/openapi-types": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-7.0.0.tgz", - "integrity": "sha512-gV/8DJhAL/04zjTI95a7FhQwS6jlEE0W/7xeYAzuArD0KVAVWDLP2f3vi98hs3HLTczxXdRK/mF0tRoQPpolEw==", - "dev": true - }, - "@octokit/plugin-paginate-rest": { - "version": "2.13.3", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.13.3.tgz", - "integrity": "sha512-46lptzM9lTeSmIBt/sVP/FLSTPGx6DCzAdSX3PfeJ3mTf4h9sGC26WpaQzMEq/Z44cOcmx8VsOhO+uEgE3cjYg==", + "eslint-plugin-security": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-1.4.0.tgz", + "integrity": "sha512-xlS7P2PLMXeqfhyf3NpqbvbnW04kN8M9NtmhpR3XGyOvt/vNKS7XPXT5EDbwKW9vCjWH4PpfQvgD/+JgN0VJKA==", "dev": true, "requires": { - "@octokit/types": "^6.11.0" + "safe-regex": "^1.1.0" } }, - "@octokit/plugin-request-log": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.3.tgz", - "integrity": "sha512-4RFU4li238jMJAzLgAwkBAw+4Loile5haQMQr+uhFq27BmyJXcXSKvoQKqh0agsZEiUlW6iSv3FAgvmGkur7OQ==", + "eslint-plugin-sonarjs": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.5.0.tgz", + "integrity": "sha512-XW5MnzlRjhXpIdbULC/qAdJYHWw3rRLws/DyawdlPU/IdVr9AmRK1r2LaCvabwKOAW2XYYSo3kDX58E4MrB7PQ==", "dev": true, "requires": {} }, - "@octokit/plugin-rest-endpoint-methods": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.0.1.tgz", - "integrity": "sha512-vvWbPtPqLyIzJ7A4IPdTl+8IeuKAwMJ4LjvmqWOOdfSuqWQYZXq2CEd0hsnkidff2YfKlguzujHs/reBdAx8Sg==", + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, "requires": { - "@octokit/types": "^6.13.1", - "deprecation": "^2.3.1" + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "dependencies": { + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true + } } }, - "@octokit/request": { - "version": "5.4.15", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.4.15.tgz", - "integrity": "sha512-6UnZfZzLwNhdLRreOtTkT9n57ZwulCve8q3IT/Z477vThu6snfdkBuhxnChpOKNGxcQ71ow561Qoa6uqLdPtag==", + "eslint-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", + "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", "dev": true, "requires": { - "@octokit/endpoint": "^6.0.1", - "@octokit/request-error": "^2.0.0", - "@octokit/types": "^6.7.1", - "is-plain-object": "^5.0.0", - "node-fetch": "^2.6.1", - "universal-user-agent": "^6.0.0" + "eslint-visitor-keys": "^1.1.0" } }, - "@octokit/request-error": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.0.5.tgz", - "integrity": "sha512-T/2wcCFyM7SkXzNoyVNWjyVlUwBvW3igM3Btr/eKYiPmucXTtkxt2RBsf6gn3LTzaLSLTQtNmvg+dGsOxQrjZg==", - "dev": true, - "requires": { - "@octokit/types": "^6.0.3", - "deprecation": "^2.0.0", - "once": "^1.4.0" - } + "eslint-visitor-keys": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.2.0.tgz", + "integrity": "sha512-WFb4ihckKil6hu3Dp798xdzSfddwKKU3+nGniKF6HfeW6OLd2OUDEPP7TcHtB5+QXOKg2s6B2DaMPE1Nn/kxKQ==", + "dev": true }, - "@octokit/rest": { - "version": "18.5.3", - "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-18.5.3.tgz", - "integrity": "sha512-KPAsUCr1DOdLVbZJgGNuE/QVLWEaVBpFQwDAz/2Cnya6uW2wJ/P5RVGk0itx7yyN1aGa8uXm2pri4umEqG1JBA==", + "espree": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", + "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", "dev": true, "requires": { - "@octokit/core": "^3.2.3", - "@octokit/plugin-paginate-rest": "^2.6.2", - "@octokit/plugin-request-log": "^1.0.2", - "@octokit/plugin-rest-endpoint-methods": "5.0.1" + "acorn": "^7.4.0", + "acorn-jsx": "^5.3.1", + "eslint-visitor-keys": "^1.3.0" + }, + "dependencies": { + "acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true + }, + "eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true + } } }, - "@octokit/types": { - "version": "6.14.2", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.14.2.tgz", - "integrity": "sha512-wiQtW9ZSy4OvgQ09iQOdyXYNN60GqjCL/UdMsepDr1Gr0QzpW6irIKbH3REuAHXAhxkEk9/F2a3Gcs1P6kW5jA==", - "dev": true, - "requires": { - "@octokit/openapi-types": "^7.0.0" - } + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true }, - "@semantic-release/commit-analyzer": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/@semantic-release/commit-analyzer/-/commit-analyzer-8.0.1.tgz", - "integrity": "sha512-5bJma/oB7B4MtwUkZC2Bf7O1MHfi4gWe4mA+MIQ3lsEV0b422Bvl1z5HRpplDnMLHH3EXMoRdEng6Ds5wUqA3A==", + "esquery": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", + "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", "dev": true, "requires": { - "conventional-changelog-angular": "^5.0.0", - "conventional-commits-filter": "^2.0.0", - "conventional-commits-parser": "^3.0.7", - "debug": "^4.0.0", - "import-from": "^3.0.0", - "lodash": "^4.17.4", - "micromatch": "^4.0.2" + "estraverse": "^5.1.0" } }, - "@semantic-release/error": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@semantic-release/error/-/error-2.2.0.tgz", - "integrity": "sha512-9Tj/qn+y2j+sjCI3Jd+qseGtHjOAeg7dU2/lVcqIQ9TV3QDaDXDYXcoOHU+7o2Hwh8L8ymL4gfuO7KxDs3q2zg==", - "dev": true - }, - "@semantic-release/github": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/@semantic-release/github/-/github-7.2.3.tgz", - "integrity": "sha512-lWjIVDLal+EQBzy697ayUNN8MoBpp+jYIyW2luOdqn5XBH4d9bQGfTnjuLyzARZBHejqh932HVjiH/j4+R7VHw==", + "esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, "requires": { - "@octokit/rest": "^18.0.0", - "@semantic-release/error": "^2.2.0", - "aggregate-error": "^3.0.0", - "bottleneck": "^2.18.1", - "debug": "^4.0.0", - "dir-glob": "^3.0.0", - "fs-extra": "^10.0.0", - "globby": "^11.0.0", - "http-proxy-agent": "^4.0.0", - "https-proxy-agent": "^5.0.0", - "issue-parser": "^6.0.0", - "lodash": "^4.17.4", - "mime": "^2.4.3", - "p-filter": "^2.0.0", - "p-retry": "^4.0.0", - "url-join": "^4.0.0" - }, - "dependencies": { - "fs-extra": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz", - "integrity": "sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==", - "dev": true, - "requires": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - }, - "universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", - "dev": true - } + "estraverse": "^5.2.0" } }, - "@semantic-release/npm": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/@semantic-release/npm/-/npm-7.0.5.tgz", - "integrity": "sha512-D+oEmsx9aHE1q806NFQwSC9KdBO8ri/VO99eEz0wWbX2jyLqVyWr7t0IjKC8aSnkkQswg/4KN/ZjfF6iz1XOpw==", - "dev": true, - "requires": { - "@semantic-release/error": "^2.2.0", - "aggregate-error": "^3.0.0", - "execa": "^4.0.0", - "fs-extra": "^9.0.0", - "lodash": "^4.17.15", - "nerf-dart": "^1.0.0", - "normalize-url": "^5.0.0", - "npm": "^6.10.3", - "rc": "^1.2.8", - "read-pkg": "^5.0.0", - "registry-auth-token": "^4.0.0", - "semver": "^7.1.2", - "tempy": "^0.5.0" - }, - "dependencies": { - "execa": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-4.0.0.tgz", - "integrity": "sha512-JbDUxwV3BoT5ZVXQrSVbAiaXhXUkIwvbhPIwZ0N13kX+5yCzOhUNdocxB/UQRuYOHRYYwAxKYwJYc0T4D12pDA==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.0", - "get-stream": "^5.0.0", - "human-signals": "^1.1.1", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.0", - "onetime": "^5.1.0", - "signal-exit": "^3.0.2", - "strip-final-newline": "^2.0.0" - } - }, - "get-stream": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", - "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - }, - "parse-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", - "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1", - "lines-and-columns": "^1.1.6" - } + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==" + }, + "execa": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.0.0.tgz", + "integrity": "sha512-ov6w/2LCiuyO4RLYGdpFGjkcs0wMTgGE8PrkTHikeUy5iJekXyPIKUjifk5CsE0pt7sMCrMZ3YNqoCj6idQOnQ==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "dependencies": { + "human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true }, - "read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, "requires": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" + "mimic-fn": "^2.1.0" } - }, - "semver": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", - "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", - "dev": true } } }, - "@semantic-release/release-notes-generator": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/@semantic-release/release-notes-generator/-/release-notes-generator-9.0.1.tgz", - "integrity": "sha512-bOoTiH6SiiR0x2uywSNR7uZcRDl22IpZhj+Q5Bn0v+98MFtOMhCxFhbrKQjhbYoZw7vps1mvMRmFkp/g6R9cvQ==", + "exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "dev": true + }, + "expand-range": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", + "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", "dev": true, "requires": { - "conventional-changelog-angular": "^5.0.0", - "conventional-changelog-writer": "^4.0.0", - "conventional-commits-filter": "^2.0.0", - "conventional-commits-parser": "^3.0.0", - "debug": "^4.0.0", - "get-stream": "^5.0.0", - "import-from": "^3.0.0", - "into-stream": "^5.0.0", - "lodash": "^4.17.4", - "read-pkg-up": "^7.0.0" + "fill-range": "^2.1.0" }, "dependencies": { - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "get-stream": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", - "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true - }, - "parse-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", - "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", + "fill-range": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", + "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", "dev": true, "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1", - "lines-and-columns": "^1.1.6" + "is-number": "^2.1.0", + "isobject": "^2.0.0", + "randomatic": "^3.0.0", + "repeat-element": "^1.1.2", + "repeat-string": "^1.5.2" } }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "is-number": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", + "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", "dev": true, "requires": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "dependencies": { - "type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", - "dev": true - } + "kind-of": "^3.0.2" } }, - "read-pkg-up": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", - "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", "dev": true, "requires": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" + "isarray": "1.0.0" } - }, - "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true } } }, - "@tootallnate/once": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", - "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", - "dev": true + "expect": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", + "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", + "dev": true, + "requires": { + "@jest/types": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1" + } }, - "@types/normalize-package-data": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", - "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", - "dev": true + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } }, - "@types/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", + "fast-deep-equal": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz", + "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==" + }, + "fast-glob": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.5.tgz", + "integrity": "sha512-2DtFcgT68wiTTiwZ2hNdJfcHNke9XOfnwmBRWXhmeKM8rF0TGwmC/Qto3S7RoZKp5cilZbxzO5iTNTQsJ+EeDg==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.0", + "merge2": "^1.3.0", + "micromatch": "^4.0.2", + "picomatch": "^2.2.1" + } + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "dev": true }, - "@types/retry": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", - "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "dev": true }, - "acorn": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.1.tgz", - "integrity": "sha512-add7dgA5ppRPxCFJoAGfMDi7PIBXq1RtGo7BhbLaxwrXPOmw8gq48Y9ozT01hUKy9byMjlR20EJhu5zlkErEkg==", + "fast-memoize": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz", + "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==" + }, + "fastq": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.11.0.tgz", + "integrity": "sha512-7Eczs8gIPDrVzT+EksYBcupqMyxSHXXrHOLRRxU2/DicV8789MRBRR8+Hc2uWzUupOs4YS4JzBmBxjjCVBxD/g==", "dev": true, - "peer": true + "requires": { + "reusify": "^1.0.4" + } }, - "acorn-jsx": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.1.tgz", - "integrity": "sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==", + "fb-watchman": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz", + "integrity": "sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==", "dev": true, - "requires": {} + "requires": { + "bser": "2.1.1" + } }, - "agent-base": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.0.tgz", - "integrity": "sha512-j1Q7cSCqN+AwrmDd+pzgqc0/NpC655x2bUf5ZjRIO77DcNBFmh+OgRNzF6OKdCC9RSCb19fGd99+bhXFdkRNqw==", + "figures": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", + "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", "dev": true, "requires": { - "debug": "4" + "escape-string-regexp": "^1.0.5" } }, - "aggregate-error": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.0.1.tgz", - "integrity": "sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA==", + "file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", "dev": true, "requires": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, - "dependencies": { - "indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true - } + "flat-cache": "^3.0.4" } }, - "ajv": { - "version": "6.12.3", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.3.tgz", - "integrity": "sha512-4K0cK3L1hsqk9xIb2z9vs/XU+PGJZ9PNpJRDS9YLzmNdX6jmVPfamLvTJr0aDAusnHyCHO6MjzlkAsgtqp9teA==", + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", "dev": true, "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "to-regex-range": "^5.0.1" } }, - "ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", "dev": true, "requires": { - "type-fest": "^0.21.3" - }, - "dependencies": { - "type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true - } + "locate-path": "^2.0.0" } }, - "ansi-red": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", - "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=", + "find-versions": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-4.0.0.tgz", + "integrity": "sha512-wgpWy002tA+wgmO27buH/9KzyEOQnKsG/R0yrcjPT9BOFm0zRBVQbZ95nRGXWMywS8YR5knRbpohio0bcJABxQ==", "dev": true, "requires": { - "ansi-wrap": "0.1.0" + "semver-regex": "^3.1.2" } }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", "dev": true, "requires": { - "color-convert": "^1.9.0" + "flatted": "^3.1.0", + "rimraf": "^3.0.2" } }, - "ansi-wrap": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", - "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=", + "flatted": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.1.1.tgz", + "integrity": "sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==", "dev": true }, - "ansicolors": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.3.2.tgz", - "integrity": "sha1-ZlWX3oap/+Oqm/vmyuXG6kJrSXk=", + "for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", "dev": true }, - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", "dev": true, "requires": { - "sprintf-js": "~1.0.2" + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" } }, - "argv-formatter": { + "from2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", + "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "readable-stream": "^2.0.0" + } + }, + "fs-extra": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.0.tgz", + "integrity": "sha512-pmEYSk3vYsG/bF651KPUXZ+hvjpgWYw/Gc7W9NFUe3ZVLczKKWIij3IKpOrQcdw4TILtibFslZ0UmR8Vvzig4g==", + "dev": true, + "requires": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^1.0.0" + } + }, + "fs.realpath": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/argv-formatter/-/argv-formatter-1.0.0.tgz", - "integrity": "sha1-oMoMvCmltz6Dbuvhy/bF4OTrgvk=", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, - "array-find-index": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", - "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", + "fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "optional": true + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "dev": true }, - "array-ify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", - "integrity": "sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=", + "functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", "dev": true }, - "array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true }, - "arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true }, - "astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", "dev": true }, - "at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true }, - "autolinker": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.28.1.tgz", - "integrity": "sha1-BlK0kYgYefB3XazgzcoyM5QqTkc=", + "git-log-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/git-log-parser/-/git-log-parser-1.2.0.tgz", + "integrity": "sha1-LmpMGxP8AAKCB7p5WnrDFme5/Uo=", "dev": true, "requires": { - "gulp-header": "^1.7.1" + "argv-formatter": "~1.0.0", + "spawn-error-forwarder": "~1.0.0", + "split2": "~1.0.0", + "stream-combiner2": "~1.1.1", + "through2": "~2.0.0", + "traverse": "~0.6.6" + }, + "dependencies": { + "split2": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-1.0.0.tgz", + "integrity": "sha1-UuLiIdiMdfmnP5BVbiY/+WdysxQ=", + "dev": true, + "requires": { + "through2": "~2.0.0" + } + }, + "through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "requires": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + } } }, - "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true - }, - "before-after-hook": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.1.tgz", - "integrity": "sha512-/6FKxSTWoJdbsLDF8tdIjaRiFXiE6UHsEHE3OPI/cwPURCVi1ukP0gmLn7XWEiFk5TcwQjjY5PWsU+j+tgXgmw==", - "dev": true - }, - "bottleneck": { - "version": "2.19.5", - "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz", - "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==", - "dev": true + "glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + }, + "globals": { + "version": "13.9.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.9.0.tgz", + "integrity": "sha512-74/FduwI/JaIrr1H8e71UbDE+5x7pIPs1C2rrwC52SszOo043CsWOZEMW7o2Y58xwm9b+0RBKDxY5n2sUpEFxA==", "dev": true, "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "type-fest": "^0.20.2" + }, + "dependencies": { + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true + } } }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "globby": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.3.tgz", + "integrity": "sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg==", "dev": true, "requires": { - "fill-range": "^7.0.1" + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.1.1", + "ignore": "^5.1.4", + "merge2": "^1.3.0", + "slash": "^3.0.0" } }, - "buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", - "dev": true - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true - }, - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "graceful-fs": { + "version": "4.2.9", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz", + "integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==", "dev": true }, - "camelcase-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", - "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", + "gray-matter": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-2.1.1.tgz", + "integrity": "sha1-MELZrewqHe1qdwep7SOA+KF6Qw4=", "dev": true, "requires": { - "camelcase": "^4.1.0", - "map-obj": "^2.0.0", - "quick-lru": "^1.0.0" + "ansi-red": "^0.1.1", + "coffee-script": "^1.12.4", + "extend-shallow": "^2.0.1", + "js-yaml": "^3.8.1", + "toml": "^2.3.2" } }, - "cardinal": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/cardinal/-/cardinal-2.1.1.tgz", - "integrity": "sha1-fMEFXYItISlU0HsIXeolHMe8VQU=", + "gulp-header": { + "version": "1.8.12", + "resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.12.tgz", + "integrity": "sha512-lh9HLdb53sC7XIZOYzTXM4lFuXElv3EVkSDhsd7DoJBj7hm+Ni7D3qYbb+Rr8DuM8nRanBvkVO9d7askreXGnQ==", "dev": true, "requires": { - "ansicolors": "~0.3.2", - "redeyed": "~2.1.0" + "concat-with-sourcemaps": "*", + "lodash.template": "^4.4.0", + "through2": "^2.0.0" + }, + "dependencies": { + "through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "requires": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + } } }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "handlebars": { + "version": "4.7.7", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", + "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", "dev": true, "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "minimist": "^1.2.5", + "neo-async": "^2.6.0", + "source-map": "^0.6.1", + "uglify-js": "^3.1.4", + "wordwrap": "^1.0.0" } }, - "clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "dev": true - }, - "cli-table": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/cli-table/-/cli-table-0.3.6.tgz", - "integrity": "sha512-ZkNZbnZjKERTY5NwC2SeMeLeifSPq/pubeRoTpdr3WchLlnZg6hEgvHkK5zL7KNFdd9PmHN8lxrENUwI3cE8vQ==", + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", "dev": true, "requires": { - "colors": "1.0.3" + "function-bind": "^1.1.1" } }, - "coffee-script": { - "version": "1.12.7", - "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", - "integrity": "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==", + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", "dev": true }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "hook-std": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hook-std/-/hook-std-2.0.0.tgz", + "integrity": "sha512-zZ6T5WcuBMIUVh49iPQS9t977t7C0l7OtHrpeMb5uk48JdflRX0NSFvCekfYNmGQETnLq9W/isMyHl69kxGi8g==", "dev": true }, - "colors": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz", - "integrity": "sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=", + "hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", "dev": true }, - "compare-func": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.2.tgz", - "integrity": "sha1-md0LpFfh+bxyKxLAjsM+6rMfpkg=", + "html-encoding-sniffer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", + "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", "dev": true, "requires": { - "array-ify": "^1.0.0", - "dot-prop": "^3.0.0" + "whatwg-encoding": "^1.0.5" } }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true }, - "concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", "dev": true, "requires": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" } }, - "concat-with-sourcemaps": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", - "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", + "https-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", + "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", "dev": true, "requires": { - "source-map": "^0.6.1" + "agent-base": "6", + "debug": "4" } }, - "conventional-changelog-angular": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.6.tgz", - "integrity": "sha512-QDEmLa+7qdhVIv8sFZfVxU1VSyVvnXPsxq8Vam49mKUcO1Z8VTLEJk9uI21uiJUsnmm0I4Hrsdc9TgkOQo9WSA==", - "dev": true, - "requires": { - "compare-func": "^1.3.1", - "q": "^1.5.1" - } + "human-signals": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", + "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "dev": true }, - "conventional-changelog-conventionalcommits": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.2.3.tgz", - "integrity": "sha512-atGa+R4vvEhb8N/8v3IoW59gCBJeeFiX6uIbPu876ENAmkMwsenyn0R21kdDHJFLQdy6zW4J6b4xN8KI3b9oww==", + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dev": true, "requires": { - "compare-func": "^1.3.1", - "lodash": "^4.17.15", - "q": "^1.5.1" + "safer-buffer": ">= 2.1.2 < 3" } }, - "conventional-changelog-writer": { - "version": "4.0.11", - "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-4.0.11.tgz", - "integrity": "sha512-g81GQOR392I+57Cw3IyP1f+f42ME6aEkbR+L7v1FBBWolB0xkjKTeCWVguzRrp6UiT1O6gBpJbEy2eq7AnV1rw==", + "ignore": { + "version": "5.1.8", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", + "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", + "dev": true + }, + "immer": { + "version": "9.0.12", + "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.12.tgz", + "integrity": "sha512-lk7UNmSbAukB5B6dh9fnh5D0bJTOFKxVg2cyJWTYrWRfhLrLMBquONcUs3aFq507hNoIZEDDh8lb8UtOizSMhA==" + }, + "import-fresh": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", + "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", "dev": true, "requires": { - "compare-func": "^1.3.1", - "conventional-commits-filter": "^2.0.2", - "dateformat": "^3.0.0", - "handlebars": "^4.4.0", - "json-stringify-safe": "^5.0.1", - "lodash": "^4.17.15", - "meow": "^5.0.0", - "semver": "^6.0.0", - "split": "^1.0.0", - "through2": "^3.0.0" + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" }, "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true } } }, - "conventional-commits-filter": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-2.0.2.tgz", - "integrity": "sha512-WpGKsMeXfs21m1zIw4s9H5sys2+9JccTzpN6toXtxhpw2VNF2JUXwIakthKBy+LN4DvJm+TzWhxOMWOs1OFCFQ==", + "import-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/import-from/-/import-from-3.0.0.tgz", + "integrity": "sha512-CiuXOFFSzkU5x/CR0+z7T91Iht4CXgfCxVOFRhh2Zyhg5wOpWvvDLQUsWl+gcN+QscYBjez8hDCt85O7RLDttQ==", "dev": true, - "requires": { - "lodash.ismatch": "^4.4.0", - "modify-values": "^1.0.0" + "requires": { + "resolve-from": "^5.0.0" } }, - "conventional-commits-parser": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.0.8.tgz", - "integrity": "sha512-YcBSGkZbYp7d+Cr3NWUeXbPDFUN6g3SaSIzOybi8bjHL5IJ5225OSCxJJ4LgziyEJ7AaJtE9L2/EU6H7Nt/DDQ==", + "import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", "dev": true, "requires": { - "is-text-path": "^1.0.1", - "JSONStream": "^1.0.4", - "lodash": "^4.17.15", - "meow": "^5.0.0", - "split2": "^2.0.0", - "through2": "^3.0.0", - "trim-off-newlines": "^1.0.0" + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" } }, - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", "dev": true }, - "cosmiconfig": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.0.tgz", - "integrity": "sha512-pondGvTuVYDk++upghXJabWzL6Kxu6f26ljFw64Swq9v6sQPUL3EUlVDV56diOjpCayKihL6hVe8exIACU4XcA==", + "indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "requires": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.2.1", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.10.0" - }, - "dependencies": { - "parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - } - }, - "path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true - } + "once": "^1.3.0", + "wrappy": "1" } }, - "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "ini": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.7.tgz", + "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", + "dev": true + }, + "into-stream": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-5.1.1.tgz", + "integrity": "sha512-krrAJ7McQxGGmvaYbB7Q1mcA+cRwg9Ij2RfWIeVesNBgVDZmzY/Fa4IpZUT3bmdRzMzdf/mzltCG2Dq99IZGBA==", "dev": true, "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "dependencies": { - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - } + "from2": "^2.3.0", + "p-is-promise": "^3.0.0" } }, - "crypto-random-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", - "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", "dev": true }, - "currently-unhandled": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", - "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "is-core-module": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz", + "integrity": "sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==", "dev": true, "requires": { - "array-find-index": "^1.0.1" + "has": "^1.0.3" } }, - "dateformat": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", - "integrity": "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==", + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", "dev": true }, - "debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true + }, + "is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true + }, + "is-glob": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", + "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", "dev": true, "requires": { - "ms": "^2.1.1" + "is-extglob": "^2.1.1" } }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true }, - "decamelize-keys": { + "is-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", + "dev": true + }, + "is-plain-obj": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", - "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", + "dev": true + }, + "is-plain-object": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", + "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", + "dev": true + }, + "is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", + "dev": true + }, + "is-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", + "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", + "dev": true + }, + "is-text-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-1.0.1.tgz", + "integrity": "sha1-Thqg+1G/vLPpJogAE5cgLBd1tm4=", "dev": true, "requires": { - "decamelize": "^1.1.0", - "map-obj": "^1.0.0" - }, - "dependencies": { - "map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", - "dev": true - } + "text-extensions": "^1.0.0" } }, - "deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", "dev": true }, - "deep-is": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", - "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true }, - "deprecation": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", - "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", "dev": true }, - "diacritics-map": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/diacritics-map/-/diacritics-map-0.1.0.tgz", - "integrity": "sha1-bfwP+dAQAKLt8oZTccrDFulJd68=", + "issue-parser": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/issue-parser/-/issue-parser-6.0.0.tgz", + "integrity": "sha512-zKa/Dxq2lGsBIXQ7CUZWTHfvxPC2ej0KfO7fIPqLlHB9J2hJ7rGhZ5rilhuufylr4RXYPzJUeFjKxz305OsNlA==", + "dev": true, + "requires": { + "lodash.capitalize": "^4.2.1", + "lodash.escaperegexp": "^4.1.2", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.uniqby": "^4.7.0" + } + }, + "istanbul-lib-coverage": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", + "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", "dev": true }, - "dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "istanbul-lib-instrument": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.1.0.tgz", + "integrity": "sha512-czwUz525rkOFDJxfKK6mYfIs9zBKILyrZQxjz3ABhjQXhbhFsSbo1HW/BFcsDnfJYJWA6thRR5/TUY2qs5W99Q==", "dev": true, "requires": { - "path-type": "^4.0.0" + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" }, "dependencies": { - "path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true } } }, - "doctrine": { + "istanbul-lib-report": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", "dev": true, "requires": { - "esutils": "^2.0.2" + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" }, "dependencies": { - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } } } }, - "dot-prop": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-3.0.0.tgz", - "integrity": "sha1-G3CK8JSknJoOfbyteQq6U52sEXc=", + "istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", "dev": true, "requires": { - "is-obj": "^1.0.0" + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" } }, - "duplexer2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", - "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", + "istanbul-reports": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.4.tgz", + "integrity": "sha512-r1/DshN4KSE7xWEknZLLLLDn5CJybV3nw01VTkp6D5jzLuELlcbudfj/eSQFvrKsJuTVCGnePO7ho82Nw9zzfw==", "dev": true, "requires": { - "readable-stream": "^2.0.2" + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" } }, - "end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "java-properties": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/java-properties/-/java-properties-1.0.2.tgz", + "integrity": "sha512-qjdpeo2yKlYTH7nFdK0vbZWuTCesk4o63v5iVOlhMQPfuIZQfW/HI35SjfhA+4qpg36rnFSvUK5b1m+ckIblQQ==", + "dev": true + }, + "jest": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", + "integrity": "sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ==", "dev": true, "requires": { - "once": "^1.4.0" + "@jest/core": "^27.5.1", + "import-local": "^3.0.2", + "jest-cli": "^27.5.1" } }, - "enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "jest-changed-files": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz", + "integrity": "sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==", "dev": true, "requires": { - "ansi-colors": "^4.1.1" - }, - "dependencies": { - "ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", - "dev": true - } + "@jest/types": "^27.5.1", + "execa": "^5.0.0", + "throat": "^6.0.1" } }, - "env-ci": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/env-ci/-/env-ci-5.0.2.tgz", - "integrity": "sha512-Xc41mKvjouTXD3Oy9AqySz1IeyvJvHZ20Twf5ZLYbNpPPIuCnL/qHCmNlD01LoNy0JTunw9HPYVptD19Ac7Mbw==", + "jest-circus": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-27.5.1.tgz", + "integrity": "sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==", "dev": true, "requires": { - "execa": "^4.0.0", - "java-properties": "^1.0.0" + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^0.7.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3", + "throat": "^6.0.1" }, "dependencies": { - "execa": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", - "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { - "cross-spawn": "^7.0.0", - "get-stream": "^5.0.0", - "human-signals": "^1.1.1", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.0", - "onetime": "^5.1.0", - "signal-exit": "^3.0.2", - "strip-final-newline": "^2.0.0" + "color-convert": "^2.0.1" } }, - "get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { - "pump": "^3.0.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" } } } }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "eslint": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.27.0.tgz", - "integrity": "sha512-JZuR6La2ZF0UD384lcbnd0Cgg6QJjiCwhMD6eU4h/VGPcVGwawNNzKU41tgokGXnfjOOyI6QIffthhJTPzzuRA==", + "jest-cli": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-27.5.1.tgz", + "integrity": "sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==", "dev": true, "requires": { - "@babel/code-frame": "7.12.11", - "@eslint/eslintrc": "^0.4.1", - "ajv": "^6.10.0", + "@jest/core": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.0.1", - "doctrine": "^3.0.0", - "enquirer": "^2.3.5", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^2.1.0", - "eslint-visitor-keys": "^2.0.0", - "espree": "^7.3.1", - "esquery": "^1.4.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.0.0", - "globals": "^13.6.0", - "ignore": "^4.0.6", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "js-yaml": "^3.13.1", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.0.4", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "progress": "^2.0.0", - "regexpp": "^3.1.0", - "semver": "^7.2.1", - "strip-ansi": "^6.0.0", - "strip-json-comments": "^3.1.0", - "table": "^6.0.9", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "import-local": "^3.0.2", + "jest-config": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "prompts": "^2.0.1", + "yargs": "^16.2.0" }, "dependencies": { - "@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { - "@babel/highlight": "^7.10.4" + "color-convert": "^2.0.1" } }, - "@babel/helper-validator-identifier": { - "version": "7.14.0", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.0.tgz", - "integrity": "sha512-V3ts7zMSu5lfiwWDVWzRDGIN+lnCEUdaXgtVHJgLb1rGaA6jMrtB9EmE7L18foXJIE8Un/A/h6NJfGQp/e1J4A==", - "dev": true + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } }, - "@babel/highlight": { - "version": "7.14.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.14.0.tgz", - "integrity": "sha512-YSCOwxvTYEIMSGaBQb5kDDsCopDdiUGsqpatp3fOlI4+2HQSkTmEVWnVuySdAC5EWCqSWWTv0ib63RjR7dTBdg==", + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { - "@babel/helper-validator-identifier": "^7.14.0", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "dependencies": { - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - } + "color-name": "~1.1.4" } }, - "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-config": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-27.5.1.tgz", + "integrity": "sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==", + "dev": true, + "requires": { + "@babel/core": "^7.8.0", + "@jest/test-sequencer": "^27.5.1", + "@jest/types": "^27.5.1", + "babel-jest": "^27.5.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.9", + "jest-circus": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-jasmine2": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, "chalk": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", - "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } } }, "color-convert": { @@ -11183,58 +19687,22 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - }, - "eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, "has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, - "ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", - "dev": true - }, - "semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, "requires": { - "ansi-regex": "^5.0.0" + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" } }, "strip-json-comments": { @@ -11242,741 +19710,1027 @@ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } } } }, - "eslint-plugin-mocha": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-7.0.1.tgz", - "integrity": "sha512-zkQRW9UigRaayGm/pK9TD5RjccKXSgQksNtpsXbG9b6L5I+jNx7m98VUbZ4w1H1ArlNA+K7IOH+z8TscN6sOYg==", - "dev": true, - "requires": { - "eslint-utils": "^2.0.0", - "ramda": "^0.27.0" - } - }, - "eslint-plugin-security": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-1.4.0.tgz", - "integrity": "sha512-xlS7P2PLMXeqfhyf3NpqbvbnW04kN8M9NtmhpR3XGyOvt/vNKS7XPXT5EDbwKW9vCjWH4PpfQvgD/+JgN0VJKA==", - "dev": true, - "requires": { - "safe-regex": "^1.1.0" - } - }, - "eslint-plugin-sonarjs": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.5.0.tgz", - "integrity": "sha512-XW5MnzlRjhXpIdbULC/qAdJYHWw3rRLws/DyawdlPU/IdVr9AmRK1r2LaCvabwKOAW2XYYSo3kDX58E4MrB7PQ==", - "dev": true, - "requires": {} - }, - "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "jest-diff": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", + "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", "dev": true, "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" + "chalk": "^4.0.0", + "diff-sequences": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" }, "dependencies": { - "estraverse": { + "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true - } - } - }, - "eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^1.1.0" - } - }, - "eslint-visitor-keys": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.2.0.tgz", - "integrity": "sha512-WFb4ihckKil6hu3Dp798xdzSfddwKKU3+nGniKF6HfeW6OLd2OUDEPP7TcHtB5+QXOKg2s6B2DaMPE1Nn/kxKQ==", - "dev": true - }, - "espree": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", - "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", - "dev": true, - "requires": { - "acorn": "^7.4.0", - "acorn-jsx": "^5.3.1", - "eslint-visitor-keys": "^1.3.0" - }, - "dependencies": { - "acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } }, - "eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true - } - } - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true - }, - "esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", - "dev": true, - "requires": { - "estraverse": "^5.1.0" - }, - "dependencies": { - "estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", - "dev": true - } - } - }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "requires": { - "estraverse": "^5.2.0" - }, - "dependencies": { - "estraverse": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", - "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true - } - } - }, - "execa": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.0.0.tgz", - "integrity": "sha512-ov6w/2LCiuyO4RLYGdpFGjkcs0wMTgGE8PrkTHikeUy5iJekXyPIKUjifk5CsE0pt7sMCrMZ3YNqoCj6idQOnQ==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "dependencies": { - "human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, - "onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { - "mimic-fn": "^2.1.0" + "has-flag": "^4.0.0" } } } }, - "expand-range": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", - "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", + "jest-docblock": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.5.1.tgz", + "integrity": "sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==", "dev": true, "requires": { - "fill-range": "^2.1.0" + "detect-newline": "^3.0.0" + } + }, + "jest-each": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-27.5.1.tgz", + "integrity": "sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==", + "dev": true, + "requires": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1" }, "dependencies": { - "fill-range": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", - "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { - "is-number": "^2.1.0", - "isobject": "^2.0.0", - "randomatic": "^3.0.0", - "repeat-element": "^1.1.2", - "repeat-string": "^1.5.2" + "color-convert": "^2.0.1" } }, - "is-number": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { - "kind-of": "^3.0.2" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" } }, - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { - "isarray": "1.0.0" + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" } } } }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "jest-environment-jsdom": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz", + "integrity": "sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==", "dev": true, "requires": { - "is-extendable": "^0.1.0" + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1", + "jsdom": "^16.6.0" } }, - "fast-deep-equal": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz", - "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==", - "dev": true - }, - "fast-glob": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.5.tgz", - "integrity": "sha512-2DtFcgT68wiTTiwZ2hNdJfcHNke9XOfnwmBRWXhmeKM8rF0TGwmC/Qto3S7RoZKp5cilZbxzO5iTNTQsJ+EeDg==", + "jest-environment-node": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz", + "integrity": "sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==", "dev": true, "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.0", - "merge2": "^1.3.0", - "micromatch": "^4.0.2", - "picomatch": "^2.2.1" + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" } }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "jest-get-type": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", + "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", "dev": true }, - "fastq": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.11.0.tgz", - "integrity": "sha512-7Eczs8gIPDrVzT+EksYBcupqMyxSHXXrHOLRRxU2/DicV8789MRBRR8+Hc2uWzUupOs4YS4JzBmBxjjCVBxD/g==", + "jest-haste-map": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.5.1.tgz", + "integrity": "sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==", "dev": true, "requires": { - "reusify": "^1.0.4" - } - }, - "figures": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", - "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", + "@jest/types": "^27.5.1", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.3.2", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^27.5.1", + "jest-serializer": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "micromatch": "^4.0.4", + "walker": "^1.0.7" + } + }, + "jest-jasmine2": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz", + "integrity": "sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==", "dev": true, "requires": { - "escape-string-regexp": "^1.0.5" + "@jest/environment": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "throat": "^6.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, - "file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "jest-leak-detector": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz", + "integrity": "sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==", "dev": true, "requires": { - "flat-cache": "^3.0.4" + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" } }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "jest-matcher-utils": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", + "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", "dev": true, "requires": { - "to-regex-range": "^5.0.1" + "chalk": "^4.0.0", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "jest-message-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", + "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", "dev": true, "requires": { - "locate-path": "^2.0.0" + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, - "find-versions": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-4.0.0.tgz", - "integrity": "sha512-wgpWy002tA+wgmO27buH/9KzyEOQnKsG/R0yrcjPT9BOFm0zRBVQbZ95nRGXWMywS8YR5knRbpohio0bcJABxQ==", + "jest-mock": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", + "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", "dev": true, "requires": { - "semver-regex": "^3.1.2" + "@jest/types": "^27.5.1", + "@types/node": "*" } }, - "flat-cache": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "jest-pnp-resolver": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz", + "integrity": "sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==", "dev": true, - "requires": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - } - }, - "flatted": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.1.1.tgz", - "integrity": "sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==", - "dev": true + "requires": {} }, - "for-in": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "jest-regex-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz", + "integrity": "sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==", "dev": true }, - "from2": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", - "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", + "jest-resolve": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz", + "integrity": "sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==", "dev": true, "requires": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.0" + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "resolve": "^1.20.0", + "resolve.exports": "^1.1.0", + "slash": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, - "fs-extra": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.0.tgz", - "integrity": "sha512-pmEYSk3vYsG/bF651KPUXZ+hvjpgWYw/Gc7W9NFUe3ZVLczKKWIij3IKpOrQcdw4TILtibFslZ0UmR8Vvzig4g==", + "jest-resolve-dependencies": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz", + "integrity": "sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==", "dev": true, "requires": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^1.0.0" + "@jest/types": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-snapshot": "^27.5.1" } }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true - }, - "functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", - "dev": true - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true - }, - "get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "dev": true - }, - "git-log-parser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/git-log-parser/-/git-log-parser-1.2.0.tgz", - "integrity": "sha1-LmpMGxP8AAKCB7p5WnrDFme5/Uo=", + "jest-runner": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-27.5.1.tgz", + "integrity": "sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==", "dev": true, "requires": { - "argv-formatter": "~1.0.0", - "spawn-error-forwarder": "~1.0.0", - "split2": "~1.0.0", - "stream-combiner2": "~1.1.1", - "through2": "~2.0.0", - "traverse": "~0.6.6" + "@jest/console": "^27.5.1", + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-leak-detector": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "source-map-support": "^0.5.6", + "throat": "^6.0.1" }, "dependencies": { - "split2": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-1.0.0.tgz", - "integrity": "sha1-UuLiIdiMdfmnP5BVbiY/+WdysxQ=", + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { - "through2": "~2.0.0" + "color-convert": "^2.0.1" } }, - "through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" } } } }, - "glob": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "jest-runtime": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.5.1.tgz", + "integrity": "sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==", "dev": true, "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/globals": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "execa": "^5.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "jest-serializer": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz", + "integrity": "sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==", "dev": true, "requires": { - "is-glob": "^4.0.1" + "@types/node": "*", + "graceful-fs": "^4.2.9" } }, - "globals": { - "version": "13.9.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.9.0.tgz", - "integrity": "sha512-74/FduwI/JaIrr1H8e71UbDE+5x7pIPs1C2rrwC52SszOo043CsWOZEMW7o2Y58xwm9b+0RBKDxY5n2sUpEFxA==", + "jest-snapshot": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", + "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", "dev": true, "requires": { - "type-fest": "^0.20.2" + "@babel/core": "^7.7.2", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/traverse": "^7.7.2", + "@babel/types": "^7.0.0", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.1.5", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "natural-compare": "^1.4.0", + "pretty-format": "^27.5.1", + "semver": "^7.3.2" }, "dependencies": { - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true + }, + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } } } }, - "globby": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.3.tgz", - "integrity": "sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg==", - "dev": true, - "requires": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.1.1", - "ignore": "^5.1.4", - "merge2": "^1.3.0", - "slash": "^3.0.0" - } - }, - "graceful-fs": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", - "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==", - "dev": true - }, - "gray-matter": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-2.1.1.tgz", - "integrity": "sha1-MELZrewqHe1qdwep7SOA+KF6Qw4=", - "dev": true, - "requires": { - "ansi-red": "^0.1.1", - "coffee-script": "^1.12.4", - "extend-shallow": "^2.0.1", - "js-yaml": "^3.8.1", - "toml": "^2.3.2" - } - }, - "gulp-header": { - "version": "1.8.12", - "resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.12.tgz", - "integrity": "sha512-lh9HLdb53sC7XIZOYzTXM4lFuXElv3EVkSDhsd7DoJBj7hm+Ni7D3qYbb+Rr8DuM8nRanBvkVO9d7askreXGnQ==", + "jest-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", + "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", "dev": true, "requires": { - "concat-with-sourcemaps": "*", - "lodash.template": "^4.4.0", - "through2": "^2.0.0" + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" }, "dependencies": { - "through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" } } } }, - "handlebars": { - "version": "4.7.7", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", - "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", - "dev": true, - "requires": { - "minimist": "^1.2.5", - "neo-async": "^2.6.0", - "source-map": "^0.6.1", - "uglify-js": "^3.1.4", - "wordwrap": "^1.0.0" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "hook-std": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/hook-std/-/hook-std-2.0.0.tgz", - "integrity": "sha512-zZ6T5WcuBMIUVh49iPQS9t977t7C0l7OtHrpeMb5uk48JdflRX0NSFvCekfYNmGQETnLq9W/isMyHl69kxGi8g==", - "dev": true - }, - "hosted-git-info": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", - "dev": true - }, - "http-proxy-agent": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", - "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", - "dev": true, - "requires": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - } - }, - "https-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", - "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", + "jest-validate": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-27.5.1.tgz", + "integrity": "sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==", "dev": true, "requires": { - "agent-base": "6", - "debug": "4" + "@jest/types": "^27.5.1", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "leven": "^3.1.0", + "pretty-format": "^27.5.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, - "human-signals": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", - "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", - "dev": true - }, - "ignore": { - "version": "5.1.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", - "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", - "dev": true - }, - "import-fresh": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", - "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", + "jest-watcher": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.5.1.tgz", + "integrity": "sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==", "dev": true, "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "jest-util": "^27.5.1", + "string-length": "^4.0.1" }, "dependencies": { - "resolve-from": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } } } }, - "import-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/import-from/-/import-from-3.0.0.tgz", - "integrity": "sha512-CiuXOFFSzkU5x/CR0+z7T91Iht4CXgfCxVOFRhh2Zyhg5wOpWvvDLQUsWl+gcN+QscYBjez8hDCt85O7RLDttQ==", - "dev": true, - "requires": { - "resolve-from": "^5.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true - }, - "indent-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", - "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "ini": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.7.tgz", - "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", - "dev": true - }, - "into-stream": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-5.1.1.tgz", - "integrity": "sha512-krrAJ7McQxGGmvaYbB7Q1mcA+cRwg9Ij2RfWIeVesNBgVDZmzY/Fa4IpZUT3bmdRzMzdf/mzltCG2Dq99IZGBA==", - "dev": true, - "requires": { - "from2": "^2.3.0", - "p-is-promise": "^3.0.0" - } - }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true - }, - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", - "dev": true - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true - }, - "is-glob": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", - "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "is-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", - "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", - "dev": true - }, - "is-plain-obj": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", - "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", - "dev": true - }, - "is-plain-object": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", - "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", - "dev": true - }, - "is-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", - "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", - "dev": true - }, - "is-text-path": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-1.0.1.tgz", - "integrity": "sha1-Thqg+1G/vLPpJogAE5cgLBd1tm4=", - "dev": true, - "requires": { - "text-extensions": "^1.0.0" - } - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true - }, - "issue-parser": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/issue-parser/-/issue-parser-6.0.0.tgz", - "integrity": "sha512-zKa/Dxq2lGsBIXQ7CUZWTHfvxPC2ej0KfO7fIPqLlHB9J2hJ7rGhZ5rilhuufylr4RXYPzJUeFjKxz305OsNlA==", + "jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", "dev": true, "requires": { - "lodash.capitalize": "^4.2.1", - "lodash.escaperegexp": "^4.1.2", - "lodash.isplainobject": "^4.0.6", - "lodash.isstring": "^4.0.1", - "lodash.uniqby": "^4.7.0" + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, - "java-properties": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/java-properties/-/java-properties-1.0.2.tgz", - "integrity": "sha512-qjdpeo2yKlYTH7nFdK0vbZWuTCesk4o63v5iVOlhMQPfuIZQfW/HI35SjfhA+4qpg36rnFSvUK5b1m+ckIblQQ==", - "dev": true - }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -11993,6 +20747,80 @@ "esprima": "^4.0.0" } }, + "jsdom": { + "version": "16.7.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", + "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", + "dev": true, + "requires": { + "abab": "^2.0.5", + "acorn": "^8.2.4", + "acorn-globals": "^6.0.0", + "cssom": "^0.4.4", + "cssstyle": "^2.3.0", + "data-urls": "^2.0.0", + "decimal.js": "^10.2.1", + "domexception": "^2.0.1", + "escodegen": "^2.0.0", + "form-data": "^3.0.0", + "html-encoding-sniffer": "^2.0.1", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.0", + "parse5": "6.0.1", + "saxes": "^5.0.1", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.0.0", + "w3c-hr-time": "^1.0.2", + "w3c-xmlserializer": "^2.0.0", + "webidl-conversions": "^6.1.0", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.5.0", + "ws": "^7.4.6", + "xml-name-validator": "^3.0.0" + }, + "dependencies": { + "tr46": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "dev": true, + "requires": { + "punycode": "^2.1.1" + } + }, + "webidl-conversions": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", + "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", + "dev": true + }, + "whatwg-url": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", + "dev": true, + "requires": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + } + } + } + }, + "jsep": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.3.0.tgz", + "integrity": "sha512-gUqWoMxGo5xME0fLpbX36kYkCtxqKvyZYxntXTCpaVg45oW1nppWB9QcOiubAi0c/oRkDuv3/wEi2WbIh9uRqQ==" + }, + "jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true + }, "json-parse-better-errors": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", @@ -12005,6 +20833,11 @@ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true }, + "json-schema": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" + }, "json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", @@ -12023,6 +20856,20 @@ "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", "dev": true }, + "json5": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", + "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", + "dev": true, + "requires": { + "minimist": "^1.2.5" + } + }, + "jsonc-parser": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.2.1.tgz", + "integrity": "sha512-o6/yDBYccGvTz1+QFevz6l6OBZ2+fMVu2JZ9CIhzsYRX4mjaK5IyX9eldUdCmga16zlgQxyrj5pt9kzuj2C02w==" + }, "jsonfile": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.0.1.tgz", @@ -12039,6 +20886,16 @@ "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=", "dev": true }, + "jsonpath-plus": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-6.0.1.tgz", + "integrity": "sha512-EvGovdvau6FyLexFH2OeXfIITlgIbgZoAZe3usiySeaIDm5QS+A10DKNpaPBBqqRSZr2HN6HVNXxtwUAr2apEw==" + }, + "jsonpointer": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.0.tgz", + "integrity": "sha512-PNYZIdMjVIvVgDSYKTT63Y+KZ6IZvGRNNWcxwD+GNnUz1MKPfv30J8ueCjdwcN0nDx2SlshgyB7Oy0epAzVRRg==" + }, "JSONStream": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", @@ -12058,6 +20915,12 @@ "is-buffer": "^1.1.5" } }, + "kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true + }, "lazy-cache": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", @@ -12067,6 +20930,11 @@ "set-getter": "^0.1.0" } }, + "leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==" + }, "levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", @@ -12131,8 +20999,7 @@ "lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, "lodash._reinterpolate": { "version": "3.0.0", @@ -12158,6 +21025,11 @@ "integrity": "sha1-ZHYsSGGAglGKw99Mz11YhtriA0c=", "dev": true }, + "lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=" + }, "lodash.ismatch": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz", @@ -12176,12 +21048,23 @@ "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=", "dev": true }, + "lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", + "dev": true + }, "lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, + "lodash.set": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", + "integrity": "sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM=" + }, "lodash.template": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", @@ -12207,6 +21090,11 @@ "integrity": "sha1-JMS/zWsvuji/0FlNsRedjptlZWE=", "dev": true }, + "lodash.topath": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/lodash.topath/-/lodash.topath-4.5.2.tgz", + "integrity": "sha1-NhY1Hzu6YZlKCTGYlmC9AyVP0Ak=" + }, "lodash.truncate": { "version": "4.4.2", "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", @@ -12238,6 +21126,38 @@ "yallist": "^4.0.0" } }, + "make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "requires": { + "semver": "^6.0.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "requires": { + "tmpl": "1.0.5" + } + }, "map-obj": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", @@ -12377,13 +21297,13 @@ "dev": true }, "micromatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", - "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", + "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", "dev": true, "requires": { "braces": "^3.0.1", - "picomatch": "^2.0.5" + "picomatch": "^2.2.3" } }, "mime": { @@ -12392,6 +21312,21 @@ "integrity": "sha512-tqkh47FzKeCPD2PUiPB6pkbMzsCasjxAfC62/Wap5qrUWcb+sFasXUC5I3gYM5iBM8v/Qpn4UK0x+j0iHyFPDg==", "dev": true }, + "mime-db": { + "version": "1.51.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz", + "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==", + "dev": true + }, + "mime-types": { + "version": "2.1.34", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz", + "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==", + "dev": true, + "requires": { + "mime-db": "1.51.0" + } + }, "mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", @@ -12402,7 +21337,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -12489,6 +21423,19 @@ "integrity": "sha1-5tq3/r9a2Bbqgc9cYpxaDr3nLBo=", "dev": true }, + "nimma": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/nimma/-/nimma-0.1.8.tgz", + "integrity": "sha512-9gbBqjwngJHJYIIY9OARuCU3eyy/Pl4rRmZAkj1lBMaJVWZZPUOyj90I9jMBe8uNlp4+55J3W2z2CPSJFFar/g==", + "requires": { + "@jsep-plugin/regex": "^1.0.1", + "@jsep-plugin/ternary": "^1.0.2", + "astring": "^1.8.1", + "jsep": "^1.2.0", + "jsonpath-plus": "^6.0.1", + "lodash.topath": "^4.5.2" + } + }, "node-emoji": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.10.0.tgz", @@ -12502,11 +21449,22 @@ "version": "2.6.7", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "dev": true, "requires": { "whatwg-url": "^5.0.0" } }, + "node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=", + "dev": true + }, + "node-releases": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.2.tgz", + "integrity": "sha512-XxYDdcQ6eKqp/YjI+tb2C5WM2LgjnZrfYg4vgQt49EK268b6gYCHsBLrK2qvJo4FmCtqmKezb0WZFK4fkrZNsg==", + "dev": true + }, "normalize-package-data": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", @@ -12519,6 +21477,12 @@ "validate-npm-package-license": "^3.0.1" } }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true + }, "normalize-url": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-5.3.1.tgz", @@ -16075,6 +25039,12 @@ "path-key": "^3.0.0" } }, + "nwsapi": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.0.tgz", + "integrity": "sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==", + "dev": true + }, "object.pick": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", @@ -16210,6 +25180,12 @@ "json-parse-better-errors": "^1.0.1" } }, + "parse5": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", + "dev": true + }, "path-exists": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", @@ -16243,10 +25219,16 @@ "pify": "^3.0.0" } }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, "picomatch": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", - "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true }, "pify": { @@ -16255,6 +25237,12 @@ "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", "dev": true }, + "pirates": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", + "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", + "dev": true + }, "pkg-conf": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-2.1.0.tgz", @@ -16265,12 +25253,96 @@ "load-json-file": "^4.0.0" } }, + "pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "requires": { + "find-up": "^4.0.0" + }, + "dependencies": { + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + } + } + }, + "pony-cause": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pony-cause/-/pony-cause-1.1.1.tgz", + "integrity": "sha512-PxkIc/2ZpLiEzQXu5YRDOUgBlfGYBY8156HY5ZcRAwwonMk5W/MrJP2LLkG/hF7GEQzaHo2aS7ho6ZLCOvf+6g==" + }, "prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true }, + "pretty-format": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", + "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^17.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } + } + }, "process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -16283,6 +25355,22 @@ "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", "dev": true }, + "prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "requires": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + } + }, + "psl": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", + "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", + "dev": true + }, "pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", @@ -16296,8 +25384,7 @@ "punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" }, "q": { "version": "1.5.1", @@ -16360,6 +25447,12 @@ "strip-json-comments": "~2.0.1" } }, + "react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "dev": true + }, "read-pkg": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", @@ -16461,16 +25554,26 @@ "require-from-string": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==" }, "resolve": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.16.1.tgz", - "integrity": "sha512-rmAglCSqWWMrrBv/XM6sW0NuRFiKViw/W4d9EbC4pt+49H8JwHy+mcGmALTEg504AUDcLTvb1T2q3E9AnmY+ig==", + "version": "1.22.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz", + "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==", "dev": true, "requires": { - "path-parse": "^1.0.6" + "is-core-module": "^2.8.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } + }, + "resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "requires": { + "resolve-from": "^5.0.0" } }, "resolve-from": { @@ -16479,6 +25582,12 @@ "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true }, + "resolve.exports": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.0.tgz", + "integrity": "sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ==", + "dev": true + }, "ret": { "version": "0.1.15", "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", @@ -16530,6 +25639,26 @@ "ret": "~0.1.10" } }, + "safe-stable-stringify": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz", + "integrity": "sha512-ERq4hUjKDbJfE4+XtZLFPCDi8Vb1JqaxAPTxWFLBx8XcAlf9Bda/ZJdVezs/NAfsMQScyIlUMx+Yeu7P7rx5jw==" + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, + "saxes": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", + "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", + "dev": true, + "requires": { + "xmlchars": "^2.2.0" + } + }, "semantic-release": { "version": "17.4.3", "resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-17.4.3.tgz", @@ -16566,53 +25695,6 @@ "yargs": "^16.2.0" }, "dependencies": { - "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, "find-up": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", @@ -16632,12 +25714,6 @@ "lru-cache": "^6.0.0" } }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, "locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", @@ -16735,68 +25811,10 @@ "lru-cache": "^6.0.0" } }, - "string-width": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", - "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - } - }, - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.0" - } - }, "type-fest": { "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true - }, - "wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - } - }, - "y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true - }, - "yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, - "requires": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - } - }, - "yargs-parser": { - "version": "20.2.7", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.7.tgz", - "integrity": "sha512-FiNkvbeHzB/syOjIUxFDCnhSfzAL8R5vs40MgLFBorXACCOAEaWu0gRZl14vG8MR9AOJIZbmkjhusqBYZ3HTHw==", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", "dev": true } } @@ -16882,6 +25900,20 @@ } } }, + "simple-eval": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/simple-eval/-/simple-eval-1.0.0.tgz", + "integrity": "sha512-kpKJR+bqTscgC0xuAl2xHN6bB12lHjC2DCUfqjAx19bQyO3R2EVLOurm3H9AUltv/uFVcSCVNc6faegR+8NYLw==", + "requires": { + "jsep": "^1.1.2" + } + }, + "sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, "slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", @@ -16922,12 +25954,6 @@ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true } } }, @@ -16937,6 +25963,16 @@ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true }, + "source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, "spawn-error-forwarder": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/spawn-error-forwarder/-/spawn-error-forwarder-1.0.0.tgz", @@ -17011,6 +26047,23 @@ "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", "dev": true }, + "stack-utils": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.5.tgz", + "integrity": "sha512-xrQcmYhOsn/1kX+Vraq+7j4oE2j/6BFscZ0etmYg81xuM8Gq0022Pxb8+IqgOFUIaxHs0KaSb7T1+OegiNrNFA==", + "dev": true, + "requires": { + "escape-string-regexp": "^2.0.0" + }, + "dependencies": { + "escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true + } + } + }, "stream-combiner2": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", @@ -17030,6 +26083,36 @@ "safe-buffer": "~5.1.0" } }, + "string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "requires": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + } + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + }, "strip-bom": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", @@ -17096,6 +26179,18 @@ } } }, + "supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true + }, + "symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true + }, "table": { "version": "6.7.1", "resolved": "https://registry.npmjs.org/table/-/table-6.7.1.tgz", @@ -17122,49 +26217,11 @@ "uri-js": "^4.2.2" } }, - "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, "json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "dev": true - }, - "string-width": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", - "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - } - }, - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.0" - } } } }, @@ -17194,6 +26251,27 @@ } } }, + "terminal-link": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", + "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", + "dev": true, + "requires": { + "ansi-escapes": "^4.2.1", + "supports-hyperlinks": "^2.0.0" + } + }, + "test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "requires": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + } + }, "text-extensions": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-1.9.0.tgz", @@ -17206,6 +26284,12 @@ "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", "dev": true }, + "throat": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.1.tgz", + "integrity": "sha512-8hmiGIJMDlwjg7dlJ4yKGLK8EsYqKgPWbG3b4wjJddKNwc7N7Dpn08Df4szr/sZdMVeOstrdYSsqzX6BYbcB+w==", + "dev": true + }, "through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", @@ -17221,6 +26305,18 @@ "readable-stream": "2 || 3" } }, + "tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", + "dev": true + }, "to-object-path": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", @@ -17245,11 +26341,29 @@ "integrity": "sha512-gVweAectJU3ebq//Ferr2JUY4WKSDe5N+z0FvjDncLGyHmIDoxgY/2Ie4qfEIDm4IS7OA6Rmdm7pdEEdMcV/xQ==", "dev": true }, + "tough-cookie": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.0.0.tgz", + "integrity": "sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg==", + "dev": true, + "requires": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.1.2" + }, + "dependencies": { + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + } + } + }, "tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=", - "dev": true + "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" }, "traverse": { "version": "0.6.6", @@ -17269,6 +26383,73 @@ "integrity": "sha512-kh6Tu6GbeSNMGfrrZh6Bb/4ZEHV1QlB4xNDBeog8Y9/QwFlKTRyWvY3Fs9tRDAMZliVUwieMgEdIeL/FtqjkJg==", "dev": true }, + "ts-jest": { + "version": "27.1.3", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-27.1.3.tgz", + "integrity": "sha512-6Nlura7s6uM9BVUAoqLH7JHyMXjz8gluryjpPXxr3IxZdAXnU6FhjvVLHFtfd1vsE1p8zD1OJfskkc0jhTSnkA==", + "dev": true, + "requires": { + "bs-logger": "0.x", + "fast-json-stable-stringify": "2.x", + "jest-util": "^27.0.0", + "json5": "2.x", + "lodash.memoize": "4.x", + "make-error": "1.x", + "semver": "7.x", + "yargs-parser": "20.x" + }, + "dependencies": { + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true + } + } + }, + "ts-node": { + "version": "10.7.0", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.7.0.tgz", + "integrity": "sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A==", + "dev": true, + "requires": { + "@cspotcode/source-map-support": "0.7.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.0", + "yn": "3.1.1" + }, + "dependencies": { + "acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true + } + } + }, + "tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + }, "type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -17278,6 +26459,12 @@ "prelude-ls": "^1.2.1" } }, + "type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true + }, "type-fest": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", @@ -17290,6 +26477,21 @@ "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", "dev": true }, + "typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dev": true, + "requires": { + "is-typedarray": "^1.0.0" + } + }, + "typescript": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.2.tgz", + "integrity": "sha512-HM/hFigTBHZhLXshn9sN37H085+hQGeJHJ/X7LpBWLID/fbc2acUMfU+lGD98X81sKP+pFa9f0DZmCwB9GnbAg==", + "dev": true + }, "uglify-js": { "version": "3.13.5", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.5.tgz", @@ -17322,11 +26524,15 @@ "version": "4.2.2", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", - "dev": true, "requires": { "punycode": "^2.1.0" } }, + "urijs": { + "version": "1.19.10", + "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.10.tgz", + "integrity": "sha512-EzauQlgKuJgsXOqoMrCiePBf4At5jVqRhXykF3Wfb8ZsOBMxPcfiVBcsHXug4Aepb/ICm2PIgqAUGMelgdrWEg==" + }, "url-join": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", @@ -17339,12 +26545,42 @@ "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "dev": true }, + "utility-types": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", + "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==" + }, "v8-compile-cache": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", "dev": true }, + "v8-compile-cache-lib": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.0.tgz", + "integrity": "sha512-mpSYqfsFvASnSn5qMiwrr4VKfumbPyONLCOPmsR3A6pTY/r0+tSaVbgPWSAIuzbk3lCTa+FForeTiO+wBQGkjA==", + "dev": true + }, + "v8-to-istanbul": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz", + "integrity": "sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0", + "source-map": "^0.7.3" + }, + "dependencies": { + "source-map": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", + "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", + "dev": true + } + } + }, "validate-npm-package-license": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", @@ -17355,22 +26591,67 @@ "spdx-expression-parse": "^3.0.0" } }, + "w3c-hr-time": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", + "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", + "dev": true, + "requires": { + "browser-process-hrtime": "^1.0.0" + } + }, + "w3c-xmlserializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", + "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", + "dev": true, + "requires": { + "xml-name-validator": "^3.0.0" + } + }, + "walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "requires": { + "makeerror": "1.0.12" + } + }, "webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=", + "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" + }, + "whatwg-encoding": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", + "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", + "dev": true, + "requires": { + "iconv-lite": "0.4.24" + } + }, + "whatwg-mimetype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", + "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", "dev": true }, "whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", - "dev": true, "requires": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" } }, + "wolfy87-eventemitter": { + "version": "5.2.9", + "resolved": "https://registry.npmjs.org/wolfy87-eventemitter/-/wolfy87-eventemitter-5.2.9.tgz", + "integrity": "sha512-P+6vtWyuDw+MB01X7UeF8TaHBvbCovf4HPEMF/SV7BdDc1SMTiBy13SRD71lQh4ExFTG1d/WNzDGDCyOKSMblw==" + }, "word-wrap": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", @@ -17383,18 +26664,92 @@ "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", "dev": true }, + "wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + } + } + }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, + "write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "ws": { + "version": "7.5.7", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.7.tgz", + "integrity": "sha512-KMvVuFzpKBuiIXW3E4u3mySRO2/mCHSyZDJQM5NQ9Q9KHWHWh0NHgfbRMLLrceUK5qAL4ytALJbpRMjixFZh8A==", + "dev": true, + "requires": {} + }, + "xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", + "dev": true + }, + "xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true + }, "xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "dev": true }, + "y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true + }, "yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", @@ -17407,6 +26762,29 @@ "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", "dev": true }, + "yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "requires": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "dependencies": { + "yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true + } + } + }, "yargs-parser": { "version": "10.1.0", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz", @@ -17415,6 +26793,12 @@ "requires": { "camelcase": "^4.1.0" } + }, + "yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true } } } diff --git a/package.json b/package.json index 8b79221b3..6d72d98e9 100644 --- a/package.json +++ b/package.json @@ -3,13 +3,15 @@ "version": "2.0.0", "description": "JavaScript AsyncAPI parser.", "scripts": { - "prepublishOnly": "npm run bundle && npm run types", - "release": "semantic-release", + "build": "tsc", + "test": "cross-env CI=true jest --coverage", "lint": "eslint --no-error-on-unmatched-pattern --max-warnings 0 --config \".eslintrc\" \".\"", "lint:fix": "eslint --no-error-on-unmatched-pattern --max-warnings 0 --config \".eslintrc\" \".\" --fix", "generate:readme:toc": "markdown-toc -i \"README.md\"", "generate:assets": "npm run generate:readme:toc", - "bump:version": "npm --no-git-tag-version --allow-same-version version $VERSION" + "bump:version": "npm --no-git-tag-version --allow-same-version version $VERSION", + "prepublishOnly": "npm run bundle && npm run types", + "release": "semantic-release" }, "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" @@ -24,17 +26,31 @@ "license": "Apache-2.0", "homepage": "https://github.com/asyncapi/parser-js", "devDependencies": { + "@jest/types": "^27.5.1", "@semantic-release/commit-analyzer": "^8.0.1", "@semantic-release/github": "7.2.3", "@semantic-release/npm": "^7.0.3", "@semantic-release/release-notes-generator": "^9.0.1", + "@types/jest": "^27.4.1", + "@types/js-yaml": "^4.0.5", "conventional-changelog-conventionalcommits": "^4.2.3", + "cross-env": "^7.0.3", "eslint": "^7.27.0", "eslint-plugin-mocha": "^7.0.1", "eslint-plugin-security": "^1.4.0", "eslint-plugin-sonarjs": "^0.5.0", + "jest": "^27.5.1", "markdown-toc": "^1.2.0", - "semantic-release": "17.4.3" + "semantic-release": "17.4.3", + "ts-jest": "^27.1.3", + "ts-node": "^10.7.0", + "typescript": "^4.6.2" + }, + "dependencies": { + "@stoplight/spectral-core": "^1.10.1", + "@stoplight/spectral-functions": "^1.5.1", + "@stoplight/spectral-parsers": "^1.0.1", + "@stoplight/spectral-rulesets": "^1.4.3" }, "release": { "branches": [ diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 000000000..e9644dae4 --- /dev/null +++ b/src/index.ts @@ -0,0 +1 @@ +export * from './models'; diff --git a/src/models/asyncapi.ts b/src/models/asyncapi.ts new file mode 100644 index 000000000..1bd6f2c31 --- /dev/null +++ b/src/models/asyncapi.ts @@ -0,0 +1,3 @@ +import { BaseModel } from "./base"; + +export class AsyncAPIDocument extends BaseModel {} diff --git a/src/models/base.ts b/src/models/base.ts new file mode 100644 index 000000000..fc465c747 --- /dev/null +++ b/src/models/base.ts @@ -0,0 +1,11 @@ +export class BaseModel { + constructor( + private readonly _json: Record, + ) {} + + json(key?: string | number): any { + if (key === undefined) return this._json; + if (!this._json) return; + return this._json[String(key)]; + } +} diff --git a/src/models/index.ts b/src/models/index.ts new file mode 100644 index 000000000..6c71b9145 --- /dev/null +++ b/src/models/index.ts @@ -0,0 +1,2 @@ +export * from './asyncapi'; +export * from './base'; diff --git a/test/models/base.spec.ts b/test/models/base.spec.ts new file mode 100644 index 000000000..b26931a29 --- /dev/null +++ b/test/models/base.spec.ts @@ -0,0 +1,23 @@ +import { BaseModel } from '../../src/models/base'; + +describe('Base model', function() { + describe('.json()', function() { + it('should return the whole JSON object', function() { + const doc = { test: 'testing' }; + const d = new BaseModel(doc); + expect(d.json()).toEqual(doc); + }); + + it('should return the value of a given key', function() { + const doc = { test: 'testing' }; + const d = new BaseModel(doc); + expect(d.json('test')).toEqual(doc.test); + }); + + it('should return the value of a given key, even when this is falsy', function() { + const doc = { 0: 'testing' }; + const d = new BaseModel(doc); + expect(d.json(0)).toEqual(doc[0]); + }); + }); +}); diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 000000000..f7bc416f1 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "outDir": "./lib", + "baseUrl": "./src", + "target": "es6", + "lib": [ + "esnext" + ], + "declaration": true, + "allowJs": true, + "skipLibCheck": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "noFallthroughCasesInSwitch": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + }, + "include": [ + "src" + ] +} \ No newline at end of file From 33fad5829a7b38a32da39719748616ff9009a018 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Wed, 9 Mar 2022 12:04:52 +0100 Subject: [PATCH 006/126] refactor: add info and dependant models (#485) --- src/models/asyncapi.ts | 11 ++++- src/models/contact.ts | 15 ++++++ src/models/index.ts | 3 ++ src/models/info.ts | 31 +++++++++++++ src/models/license.ts | 11 +++++ test/models/asyncapi.spec.ts | 26 +++++++++++ test/models/contact.spec.ts | 45 ++++++++++++++++++ test/models/info.spec.ts | 89 ++++++++++++++++++++++++++++++++++++ test/models/license.spec.ts | 31 +++++++++++++ 9 files changed, 261 insertions(+), 1 deletion(-) create mode 100644 src/models/contact.ts create mode 100644 src/models/info.ts create mode 100644 src/models/license.ts create mode 100644 test/models/asyncapi.spec.ts create mode 100644 test/models/contact.spec.ts create mode 100644 test/models/info.spec.ts create mode 100644 test/models/license.spec.ts diff --git a/src/models/asyncapi.ts b/src/models/asyncapi.ts index 1bd6f2c31..e2d881b37 100644 --- a/src/models/asyncapi.ts +++ b/src/models/asyncapi.ts @@ -1,3 +1,12 @@ import { BaseModel } from "./base"; +import { Info } from "./info"; -export class AsyncAPIDocument extends BaseModel {} +export class AsyncAPIDocument extends BaseModel { + version(): string { + return this.json("asyncapi"); + } + + info(): Info { + return new Info(this.json("info")); + } +} diff --git a/src/models/contact.ts b/src/models/contact.ts new file mode 100644 index 000000000..76b6c43d0 --- /dev/null +++ b/src/models/contact.ts @@ -0,0 +1,15 @@ +import { BaseModel } from "./base"; + +export class Contact extends BaseModel { + name(): string { + return this.json("name"); + } + + url(): string { + return this.json("url"); + } + + email(): string { + return this.json("email"); + } +} \ No newline at end of file diff --git a/src/models/index.ts b/src/models/index.ts index 6c71b9145..175d27111 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -1,2 +1,5 @@ export * from './asyncapi'; export * from './base'; +export * from './contact'; +export * from './info'; +export * from './license'; \ No newline at end of file diff --git a/src/models/info.ts b/src/models/info.ts new file mode 100644 index 000000000..0ba3af1f5 --- /dev/null +++ b/src/models/info.ts @@ -0,0 +1,31 @@ +import { BaseModel } from "./base"; +import { Contact } from "./contact"; +import { License } from "./license"; + +export class Info extends BaseModel { + title(): string { + return this.json("title"); + } + + version(): string { + return this.json("version"); + } + + description(): string { + return this.json("description"); + } + + termsOfService(): string { + return this.json("termsOfService"); + } + + contact(): Contact | undefined { + const doc = this.json("contact"); + return doc && new Contact(doc); + } + + license(): License | undefined { + const doc = this.json("license"); + return doc && new License(doc); + } +} \ No newline at end of file diff --git a/src/models/license.ts b/src/models/license.ts new file mode 100644 index 000000000..8f2b4c939 --- /dev/null +++ b/src/models/license.ts @@ -0,0 +1,11 @@ +import { BaseModel } from "./base"; + +export class License extends BaseModel { + name(): string { + return this.json("name"); + } + + url(): string { + return this.json("url"); + } +} \ No newline at end of file diff --git a/test/models/asyncapi.spec.ts b/test/models/asyncapi.spec.ts new file mode 100644 index 000000000..f73e9b404 --- /dev/null +++ b/test/models/asyncapi.spec.ts @@ -0,0 +1,26 @@ +import { AsyncAPIDocument } from '../../src/models/asyncapi'; +import { Info } from '../../src/models/info'; + +describe('AsyncAPIDocument model', function() { + describe('.version()', function() { + it('should return the value', function() { + const doc = { asyncapi: "3.0.0" }; + const d = new AsyncAPIDocument(doc); + expect(d.version()).toEqual(doc.asyncapi); + }); + + it('should return undefined when there is no value', function() { + const doc = { }; + const d = new AsyncAPIDocument(doc); + expect(d.version()).toBeUndefined(); + }); + }); + + describe('.info()', function() { + it('should return an Info object', function() { + const doc = { info: { name: "LeChuck" } }; + const d = new AsyncAPIDocument(doc); + expect(d.info() instanceof Info).toBeTruthy(); + }); + }); +}); diff --git a/test/models/contact.spec.ts b/test/models/contact.spec.ts new file mode 100644 index 000000000..32c92d478 --- /dev/null +++ b/test/models/contact.spec.ts @@ -0,0 +1,45 @@ +import { Contact } from '../../src/models/contact'; + +describe('Contact model', function() { + describe('.name()', function() { + it('should return the value', function() { + const doc = { name: "LeChuck" }; + const d = new Contact(doc); + expect(d.name()).toEqual(doc.name); + }); + + it('should return undefined when there is no value', function() { + const doc = { }; + const d = new Contact(doc); + expect(d.name()).toBeUndefined(); + }); + }); + + describe('.url()', function() { + it('should return the value', function() { + const doc = { url: "https://example.com" }; + const d = new Contact(doc); + expect(d.url()).toEqual(doc.url); + }); + + it('should return undefined when there is no value', function() { + const doc = { }; + const d = new Contact(doc); + expect(d.url()).toBeUndefined(); + }); + }); + + describe('.email()', function() { + it('should return the value', function() { + const doc = { email: "lechuck@example.com" }; + const d = new Contact(doc); + expect(d.email()).toEqual(doc.email); + }); + + it('should return undefined when there is no value', function() { + const doc = { }; + const d = new Contact(doc); + expect(d.email()).toBeUndefined(); + }); + }); +}); diff --git a/test/models/info.spec.ts b/test/models/info.spec.ts new file mode 100644 index 000000000..32abd3314 --- /dev/null +++ b/test/models/info.spec.ts @@ -0,0 +1,89 @@ +import { Contact } from '../../src/models/contact'; +import { Info } from '../../src/models/info'; +import { License } from '../../src/models/license'; + +describe('Info model', function() { + describe('.title()', function() { + it('should return the value', function() { + const doc = { title: "Example API" }; + const d = new Info(doc); + expect(d.title()).toEqual(doc.title); + }); + + it('should return undefined when there is no value', function() { + const doc = { }; + const d = new Info(doc); + expect(d.title()).toBeUndefined(); + }); + }); + + describe('.version()', function() { + it('should return the value', function() { + const doc = { version: "1.0.0" }; + const d = new Info(doc); + expect(d.version()).toEqual(doc.version); + }); + + it('should return undefined when there is no value', function() { + const doc = { }; + const d = new Info(doc); + expect(d.version()).toBeUndefined(); + }); + }); + + describe('.description()', function() { + it('should return the value', function() { + const doc = { description: "This is the API of Example" }; + const d = new Info(doc); + expect(d.description()).toEqual(doc.description); + }); + + it('should return undefined when there is no value', function() { + const doc = { }; + const d = new Info(doc); + expect(d.description()).toBeUndefined(); + }); + }); + + describe('.termsOfService()', function() { + it('should return the value', function() { + const doc = { termsOfService: "These are the terms of service" }; + const d = new Info(doc); + expect(d.termsOfService()).toEqual(doc.termsOfService); + }); + + it('should return undefined when there is no value', function() { + const doc = { }; + const d = new Info(doc); + expect(d.termsOfService()).toBeUndefined(); + }); + }); + + describe('.contact()', function() { + it('should return a Contact object', function() { + const doc = { contact: { name: "LeChuck" } }; + const d = new Info(doc); + expect(d.contact() instanceof Contact).toBeTruthy(); + }); + + it('should return undefined when there is no value', function() { + const doc = { }; + const d = new Info(doc); + expect(d.contact()).toBeUndefined(); + }); + }); + + describe('.license()', function() { + it('should return a License object', function() { + const doc = { license: { name: "Apache 2.0" } }; + const d = new Info(doc); + expect(d.license() instanceof License).toBeTruthy(); + }); + + it('should return undefined when there is no value', function() { + const doc = { }; + const d = new Info(doc); + expect(d.license()).toBeUndefined(); + }); + }); +}); diff --git a/test/models/license.spec.ts b/test/models/license.spec.ts new file mode 100644 index 000000000..7bcd1671a --- /dev/null +++ b/test/models/license.spec.ts @@ -0,0 +1,31 @@ +import { License } from '../../src/models/license'; + +describe('License model', function() { + describe('.name()', function() { + it('should return the value', function() { + const doc = { name: "Apache 2.0" }; + const d = new License(doc); + expect(d.name()).toEqual(doc.name); + }); + + it('should return undefined when there is no value', function() { + const doc = { }; + const d = new License(doc); + expect(d.name()).toBeUndefined(); + }); + }); + + describe('.url()', function() { + it('should return the value', function() { + const doc = { url: "https://www.apache.org/licenses/LICENSE-2.0.html" }; + const d = new License(doc); + expect(d.url()).toEqual(doc.url); + }); + + it('should return undefined when there is no value', function() { + const doc = { }; + const d = new License(doc); + expect(d.url()).toBeUndefined(); + }); + }); +}); From aaef7e6f648ad306618d3fd9e4a9021c47bd5d44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Wed, 9 Mar 2022 12:12:16 +0100 Subject: [PATCH 007/126] refactor: add stringify functionality (#486) --- src/constants.ts | 11 ++++ src/index.ts | 2 + src/models/base.ts | 4 +- src/stringify.ts | 99 ++++++++++++++++++++++++++++++++ src/utils.ts | 38 +++++++++++++ test/stringify.spec.ts | 61 ++++++++++++++++++++ test/utils.spec.ts | 125 +++++++++++++++++++++++++++++++++++++++++ 7 files changed, 339 insertions(+), 1 deletion(-) create mode 100644 src/constants.ts create mode 100644 src/stringify.ts create mode 100644 src/utils.ts create mode 100644 test/stringify.spec.ts create mode 100644 test/utils.spec.ts diff --git a/src/constants.ts b/src/constants.ts new file mode 100644 index 000000000..aff8af592 --- /dev/null +++ b/src/constants.ts @@ -0,0 +1,11 @@ +export const xParserSpecParsed = 'x-parser-spec-parsed'; +export const xParserSpecStringified = 'x-parser-spec-stringified'; + +export const xParserMessageName = 'x-parser-message-name'; +export const xParserSchemaId = 'x-parser-schema-id'; + +export const xParserOriginalSchema = 'x-parser-original-schema'; +export const xParserOriginalSchemaFormat = 'x-parser-original-schema-format'; +export const xParserOriginalTraits = 'x-parser-original-traits'; + +export const xParserCircular = 'x-parser-circular'; diff --git a/src/index.ts b/src/index.ts index e9644dae4..815c4aa3a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1 +1,3 @@ export * from './models'; + +export { stringify, unstringify } from './stringify'; diff --git a/src/models/base.ts b/src/models/base.ts index fc465c747..bda573a79 100644 --- a/src/models/base.ts +++ b/src/models/base.ts @@ -3,7 +3,9 @@ export class BaseModel { private readonly _json: Record, ) {} - json(key?: string | number): any { + json>(): T; + json(key: string | number): T; + json(key?: string | number) { if (key === undefined) return this._json; if (!this._json) return; return this._json[String(key)]; diff --git a/src/stringify.ts b/src/stringify.ts new file mode 100644 index 000000000..c2679d0a9 --- /dev/null +++ b/src/stringify.ts @@ -0,0 +1,99 @@ +import { AsyncAPIDocument } from './models'; + +import { isAsyncAPIDocument, isParsedDocument, isStringifiedDocument } from './utils'; +import { xParserSpecStringified } from './constants'; + +export function stringify(document: unknown, space?: string | number): string | undefined { + if (isAsyncAPIDocument(document)) { + document = document.json(); + } else if (isParsedDocument(document)) { + if (isStringifiedDocument(document)) { + return JSON.stringify(document); + } + document = document; + } else { + return; + } + + return JSON.stringify({ + ...document as Record, + [String(xParserSpecStringified)]: true, + }, refReplacer(), space); +} + +export function unstringify(document: unknown): AsyncAPIDocument | undefined { + if (!isStringifiedDocument(document)) { + return; + } + + // shall copy of whole JSON + document = { ...document }; + // remove `x-parser-spec-stringified` extension + delete (>document)[String(xParserSpecStringified)]; + + traverseStringifiedDoc(document, undefined, document, new Map(), new Map()); + return new AsyncAPIDocument(>document); +} + +function refReplacer() { + const modelPaths = new Map(); + const paths = new Map(); + let init: unknown = null; + + return function(this: unknown, field: string, value: unknown) { + // `this` points to parent object of given value - some object or array + const pathPart = modelPaths.get(this) + (Array.isArray(this) ? `[${field}]` : `.${field}`); + + // check if `objOrPath` has "reference" + const isComplex = value === Object(value); + if (isComplex) { + modelPaths.set(value, pathPart); + } + + const savedPath = paths.get(value) || ''; + if (!savedPath && isComplex) { + const valuePath = pathPart.replace(/undefined\.\.?/,''); + paths.set(value, valuePath); + } + + const prefixPath = savedPath[0] === '[' ? '$' : '$.'; + let val = savedPath ? `$ref:${prefixPath}${savedPath}` : value; + if (init === null) { + init = value; + } else if (val === init) { + val = '$ref:$'; + } + return val; + }; +} + +const refRoot = '$ref:$'; +function traverseStringifiedDoc(parent: any, field: string | undefined, root: any, objToPath: Map, pathToObj: Map) { + let objOrPath = parent; + let path = refRoot; + + if (field !== undefined) { + // here can be string with `$ref` prefix or normal value + objOrPath = parent[String(field)]; + const concatenatedPath = field ? `.${field}` : ''; + path = objToPath.get(parent) + (Array.isArray(parent) ? `[${field}]` : concatenatedPath); + } + + objToPath.set(objOrPath, path); + pathToObj.set(path, objOrPath); + + const ref = pathToObj.get(objOrPath); + if (ref) { + parent[String(field)] = ref; + } + if (objOrPath === refRoot || ref === refRoot) { + parent[String(field)] = root; + } + + // traverse all keys, only if object is array/object + if (objOrPath === Object(objOrPath)) { + for (const f in objOrPath) { + traverseStringifiedDoc(objOrPath, f, root, objToPath, pathToObj); + } + } +} \ No newline at end of file diff --git a/src/utils.ts b/src/utils.ts new file mode 100644 index 000000000..26370bb48 --- /dev/null +++ b/src/utils.ts @@ -0,0 +1,38 @@ +import { AsyncAPIDocument } from './models'; +import { unstringify } from './stringify'; + +import { + xParserSpecParsed, + xParserSpecStringified, +} from './constants'; + +export function toAsyncAPIDocument(maybeDoc: unknown): AsyncAPIDocument | undefined { + if (isAsyncAPIDocument(maybeDoc)) { + return maybeDoc; + } + if (!isParsedDocument(maybeDoc)) { + return; + } + return unstringify(maybeDoc) || new AsyncAPIDocument(maybeDoc); +} + +export function isAsyncAPIDocument(maybeDoc: unknown): maybeDoc is AsyncAPIDocument { + return maybeDoc instanceof AsyncAPIDocument; +} + +export function isParsedDocument(maybeDoc: unknown): maybeDoc is Record { + if (typeof maybeDoc !== 'object' || maybeDoc === null) { + return false; + } + return Boolean((maybeDoc as Record)[xParserSpecParsed]); +} + +export function isStringifiedDocument(maybeDoc: unknown): maybeDoc is Record { + if (typeof maybeDoc !== 'object' || maybeDoc === null) { + return false; + } + return ( + Boolean((maybeDoc as Record)[xParserSpecParsed]) && + Boolean((maybeDoc as Record)[xParserSpecStringified]) + ); +} diff --git a/test/stringify.spec.ts b/test/stringify.spec.ts new file mode 100644 index 000000000..e23e9598d --- /dev/null +++ b/test/stringify.spec.ts @@ -0,0 +1,61 @@ +import { xParserSpecParsed, xParserSpecStringified } from '../src/constants'; +import { AsyncAPIDocument, BaseModel } from '../src/models'; +import { stringify, unstringify } from '../src/stringify'; + +describe('stringify & unstringify', function() { + describe('stringify()', function() { + it('should not stringify normal object', function() { + expect(stringify({})).toEqual(undefined); + }); + + it('should not stringify null object', function() { + expect(stringify(null)).toEqual(undefined); + }); + + it('should not stringify primitive', function() { + expect(stringify('AsyncAPI rocks!')).toEqual(undefined); + }); + + it('should not stringify BaseModel instance', function() { + expect(stringify(new BaseModel({}))).toEqual(undefined); + }); + + it('should stringify parsed document', function() { + expect(typeof stringify({ [xParserSpecParsed]: true })).toEqual('string'); + }); + + it('should stringify (skip) stringified document', function() { + expect(typeof stringify({ [xParserSpecParsed]: true, [xParserSpecStringified]: true })).toEqual('string'); + }); + + it('should stringify AsyncAPIDocument instance', function() { + expect(typeof stringify(new AsyncAPIDocument({ asyncapi: '2.0.0' }))).toEqual('string'); + }); + }); + + describe('unstringify()', function() { + it('should not unstringify normal object', function() { + expect(unstringify({})).toEqual(undefined); + }); + + it('should not unstringify null object', function() { + expect(unstringify(null)).toEqual(undefined); + }); + + it('should not stringify primitive', function() { + expect(unstringify('AsyncAPI rocks!')).toEqual(undefined); + }); + + it('should not stringify BaseModel instance', function() { + expect(unstringify(new BaseModel({}))).toEqual(undefined); + }); + + it('should not unstringify parsed document', function() { + expect(unstringify({ [xParserSpecParsed]: true })).toEqual(undefined); + }); + + it('should unstringify stringified document', function() { + expect(unstringify({ [xParserSpecParsed]: true, [xParserSpecStringified]: true })).not.toEqual(undefined); + }); + }); +}); diff --git a/test/utils.spec.ts b/test/utils.spec.ts new file mode 100644 index 000000000..c2077a2d8 --- /dev/null +++ b/test/utils.spec.ts @@ -0,0 +1,125 @@ +import { xParserSpecParsed, xParserSpecStringified } from '../src/constants'; +import { AsyncAPIDocument, BaseModel } from '../src/models'; +import { toAsyncAPIDocument, isAsyncAPIDocument, isParsedDocument, isStringifiedDocument } from '../src/utils'; + +describe('utils', function() { + describe('toAsyncAPIDocument()', function() { + it('normal object should not return AsyncAPIDocument instance', function() { + expect(toAsyncAPIDocument({})).toEqual(undefined); + }); + + it('null object should not return AsyncAPIDocument instance', function() { + expect(toAsyncAPIDocument(null)).toEqual(undefined); + }); + + it('primitive should not return AsyncAPIDocument instance', function() { + expect(toAsyncAPIDocument('AsyncAPI rocks!')).toEqual(undefined); + }); + + it('BaseModel instance should not return AsyncAPIDocument instance', function() { + expect(toAsyncAPIDocument(new BaseModel({}))).toEqual(undefined); + }); + + it('AsyncAPIDocument instance should return AsyncAPIDocument instance', function() { + expect(toAsyncAPIDocument(new AsyncAPIDocument({ asyncapi: '2.0.0' }))).toBeInstanceOf(AsyncAPIDocument); + }); + + it('parsed document should return AsyncAPIDocument instance', function() { + expect(toAsyncAPIDocument({ [xParserSpecParsed]: true })).toBeInstanceOf(AsyncAPIDocument); + }); + + it('stringified document should return AsyncAPIDocument instance', function() { + expect(toAsyncAPIDocument({ [xParserSpecParsed]: true, [xParserSpecStringified]: true })).toBeInstanceOf(AsyncAPIDocument); + }); + + it('stringified document (with missed parsed extension) should not return AsyncAPIDocument instance', function() { + expect(toAsyncAPIDocument({ [xParserSpecStringified]: true })).toEqual(undefined); + }); + }); + + describe('isAsyncAPIDocument()', function() { + it('normal object should not be AsyncAPI document', function() { + expect(isAsyncAPIDocument({})).toEqual(false); + }); + + it('null object should not be AsyncAPI document', function() { + expect(isAsyncAPIDocument(null)).toEqual(false); + }); + + it('primitive should not be AsyncAPI document', function() { + expect(isAsyncAPIDocument('AsyncAPI rocks!')).toEqual(false); + }); + + it('BaseModel instance should not be AsyncAPI document', function() { + expect(isAsyncAPIDocument(new BaseModel({}))).toEqual(false); + }); + + it('AsyncAPIDocument instance should be AsyncAPI document', function() { + expect(isAsyncAPIDocument(new AsyncAPIDocument({ asyncapi: '2.0.0' }))).toEqual(true); + }); + }); + + describe('isParsedDocument()', function() { + it('normal object should not be parsed document', function() { + expect(isParsedDocument({})).toEqual(false); + }); + + it('null object should not be parsed document', function() { + expect(isParsedDocument(null)).toEqual(false); + }); + + it('primitive should not be parsed document', function() { + expect(isParsedDocument('AsyncAPI rocks!')).toEqual(false); + }); + + it('BaseModel instance should not be AsyncAPI document', function() { + expect(isParsedDocument(new BaseModel({}))).toEqual(false); + }); + + it('AsyncAPIDocument instance should not be parsed document', function() { + expect(isParsedDocument(new AsyncAPIDocument({ asyncapi: '2.0.0' }))).toEqual(false); + }); + + it('AsyncAPIDocument instance with proper extension should not be parsed document', function() { + expect(isParsedDocument(new AsyncAPIDocument({ asyncapi: '2.0.0', [xParserSpecParsed]: true }))).toEqual(false); + }); + + it('object with proper extension should be parsed document', function() { + expect(isParsedDocument({ [xParserSpecParsed]: true })).toEqual(true); + }); + }); + + describe('isStringifiedDocument()', function() { + it('normal object should not be parsed document', function() { + expect(isStringifiedDocument({})).toEqual(false); + }); + + it('null object should not be parsed document', function() { + expect(isStringifiedDocument(null)).toEqual(false); + }); + + it('primitive should not be parsed document', function() { + expect(isStringifiedDocument('AsyncAPI rocks!')).toEqual(false); + }); + + it('BaseModel instance should not be AsyncAPI document', function() { + expect(isStringifiedDocument(new BaseModel({}))).toEqual(false); + }); + + it('AsyncAPIDocument instance should not be parsed document', function() { + expect(isStringifiedDocument(new AsyncAPIDocument({ asyncapi: '2.0.0' }))).toEqual(false); + }); + + it('AsyncAPIDocument instance with proper extension should not be parsed document', function() { + expect(isStringifiedDocument(new AsyncAPIDocument({ asyncapi: '2.0.0', [xParserSpecParsed]: true, [xParserSpecStringified]: true }))).toEqual(false); + }); + + it('object with only stringified extension should not be parsed document', function() { + expect(isStringifiedDocument({ [xParserSpecStringified]: true })).toEqual(false); + }); + + it('object with proper extensions should be parsed document', function() { + expect(isStringifiedDocument({ [xParserSpecParsed]: true, [xParserSpecStringified]: true })).toEqual(true); + }); + }); +}); From 24a6eeaef3668850fcfb20879444ce89c34f4cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Wed, 9 Mar 2022 18:04:50 +0100 Subject: [PATCH 008/126] refactor: init parse, lint and validate functions (#487) --- jest.config.ts | 5 +++ src/index.ts | 7 ++++ src/lint.ts | 73 ++++++++++++++++++++++++++++++++++++ src/models/base.ts | 4 +- src/parse.ts | 64 ++++++++++++++++++++++++++++++++ src/stringify.ts | 8 +++- src/types.ts | 13 +++++++ src/utils.ts | 16 ++++++++ test/lint.spec.ts | 91 +++++++++++++++++++++++++++++++++++++++++++++ test/parse.spec.ts | 33 +++++++++++++++++ test/utils.spec.ts | 92 +++++++++++++++++++++++++++++++++++++++++++++- 11 files changed, 401 insertions(+), 5 deletions(-) create mode 100644 src/lint.ts create mode 100644 src/parse.ts create mode 100644 src/types.ts create mode 100644 test/lint.spec.ts create mode 100644 test/parse.spec.ts diff --git a/jest.config.ts b/jest.config.ts index e8ae860c9..72a24eb07 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -10,6 +10,11 @@ const config: Config.InitialOptions = { // The root of your source code, typically /src // `` is a token Jest substitutes roots: [''], + moduleNameMapper: { + '^nimma/legacy$': '/node_modules/nimma/dist/legacy/cjs/index.js', + '^nimma/(.*)': '/node_modules/nimma/dist/cjs/$1', + '^@stoplight/spectral-ruleset-bundler/(.*)$': '/node_modules/@stoplight/spectral-ruleset-bundler/dist/$1' + }, // Test spec file resolution pattern // Matches parent folder `__tests__` and filename diff --git a/src/index.ts b/src/index.ts index 815c4aa3a..9809b29cd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,10 @@ export * from './models'; +export { lint, validate } from './lint'; +export { parse } from './parse'; export { stringify, unstringify } from './stringify'; + +export type { LintOptions, ValidateOptions, ValidateOutput } from './lint'; +export type { StringifyOptions } from './stringify'; +export type { ParseOptions } from './parse'; +export type { ParserInput, ParserOutput, Diagnostic } from './types'; diff --git a/src/lint.ts b/src/lint.ts new file mode 100644 index 000000000..f108ea5ae --- /dev/null +++ b/src/lint.ts @@ -0,0 +1,73 @@ +import { + IConstructorOpts, + IRunOpts, + Spectral, + Ruleset, + RulesetDefinition, +} from "@stoplight/spectral-core"; +import { asyncapi as aasRuleset } from "@stoplight/spectral-rulesets"; + +import { toAsyncAPIDocument, normalizeInput, hasWarningDiagnostic, hasErrorDiagnostic } from "./utils"; + +import type { AsyncAPIDocument } from "./models/asyncapi"; +import type { ParserInput, Diagnostic } from "./types"; + +export interface LintOptions extends IConstructorOpts, IRunOpts { + ruleset?: RulesetDefinition | Ruleset; +} + +export interface ValidateOptions extends LintOptions { + allowedSeverity?: { + warning?: boolean; + }; +} + +export interface ValidateOutput { + validated: unknown; + diagnostics: Diagnostic[]; +} + +export async function lint(asyncapi: ParserInput, options?: LintOptions): Promise { + if (toAsyncAPIDocument(asyncapi)) { + return; + } + const document = normalizeInput(asyncapi as Exclude); + return (await validate(document, options)).diagnostics; +} + +export async function validate(asyncapi: string, options?: ValidateOptions): Promise { + const { ruleset, allowedSeverity, ...restOptions } = normalizeOptions(options); + const spectral = new Spectral(restOptions); + + spectral.setRuleset(ruleset!); + let { resolved, results } = await spectral.runWithResolved(asyncapi); + + if ( + hasErrorDiagnostic(results) || + (!allowedSeverity?.warning && hasWarningDiagnostic(results)) + ) { + resolved = undefined; + } + + return { validated: resolved, diagnostics: results }; +} + +const defaultOptions: ValidateOptions = { + // TODO: fix that type + ruleset: aasRuleset as any, + allowedSeverity: { + warning: true, + } +}; +function normalizeOptions(options?: ValidateOptions): ValidateOptions { + if (!options || typeof options !== 'object') { + return defaultOptions; + } + // shall copy + options = { ...defaultOptions, ...options }; + + // severity + options.allowedSeverity = { ...defaultOptions.allowedSeverity, ...(options.allowedSeverity || {}) }; + + return options; +} diff --git a/src/models/base.ts b/src/models/base.ts index bda573a79..f5ac549b5 100644 --- a/src/models/base.ts +++ b/src/models/base.ts @@ -3,8 +3,8 @@ export class BaseModel { private readonly _json: Record, ) {} - json>(): T; - json(key: string | number): T; + json>(): T; + json(key: string | number): T; json(key?: string | number) { if (key === undefined) return this._json; if (!this._json) return; diff --git a/src/parse.ts b/src/parse.ts new file mode 100644 index 000000000..9fe9a1253 --- /dev/null +++ b/src/parse.ts @@ -0,0 +1,64 @@ +import { AsyncAPIDocument } from "./models"; +import { normalizeInput, toAsyncAPIDocument } from "./utils"; +import { validate } from "./lint"; + +import type { ParserInput, ParserOutput } from './types'; +import type { ValidateOptions } from './lint'; + +export interface ParseOptions { + applyTraits?: boolean; + validateOptions?: ValidateOptions; +} + +export async function parse(asyncapi: ParserInput, options?: ParseOptions): Promise { + let maybeDocument = toAsyncAPIDocument(asyncapi); + if (maybeDocument) { + return { + source: asyncapi, + parsed: maybeDocument, + diagnostics: [], + }; + } + + try { + const document = normalizeInput(asyncapi as Exclude); + options = normalizeOptions(options); + + const { validated, diagnostics } = await validate(document, options.validateOptions); + if (validated === undefined) { + return { + source: asyncapi, + parsed: undefined, + diagnostics, + }; + } + + const parsed = new AsyncAPIDocument(validated as Record); + return { + source: asyncapi, + parsed, + diagnostics, + }; + } catch(err) { + // TODO: throw proper error + throw Error(); + } +} + +const defaultOptions: ParseOptions = { + applyTraits: true, +}; +function normalizeOptions(options?: ParseOptions): ParseOptions { + if (!options || typeof options !== 'object') { + return defaultOptions; + } + // shall copy + options = { ...defaultOptions, ...options }; + + // traits + if (options.applyTraits === undefined) { + options.applyTraits = true; + } + + return options; +} diff --git a/src/stringify.ts b/src/stringify.ts index c2679d0a9..d4287a8b3 100644 --- a/src/stringify.ts +++ b/src/stringify.ts @@ -3,7 +3,11 @@ import { AsyncAPIDocument } from './models'; import { isAsyncAPIDocument, isParsedDocument, isStringifiedDocument } from './utils'; import { xParserSpecStringified } from './constants'; -export function stringify(document: unknown, space?: string | number): string | undefined { +export interface StringifyOptions { + space?: string | number; +} + +export function stringify(document: unknown, options: StringifyOptions = {}): string | undefined { if (isAsyncAPIDocument(document)) { document = document.json(); } else if (isParsedDocument(document)) { @@ -18,7 +22,7 @@ export function stringify(document: unknown, space?: string | number): string | return JSON.stringify({ ...document as Record, [String(xParserSpecStringified)]: true, - }, refReplacer(), space); + }, refReplacer(), options.space || 2); } export function unstringify(document: unknown): AsyncAPIDocument | undefined { diff --git a/src/types.ts b/src/types.ts new file mode 100644 index 000000000..73bf56bdd --- /dev/null +++ b/src/types.ts @@ -0,0 +1,13 @@ +import type { ISpectralDiagnostic } from '@stoplight/spectral-core'; +import type { AsyncAPIDocument } from './models/asyncapi'; + +export type MaybeAsyncAPI = { asyncapi: unknown } & Record; +export type ParserInput = string | MaybeAsyncAPI | AsyncAPIDocument; + +export type Diagnostic = ISpectralDiagnostic; + +export interface ParserOutput { + source: ParserInput; + parsed: AsyncAPIDocument | undefined; + diagnostics: Diagnostic[]; +} diff --git a/src/utils.ts b/src/utils.ts index 26370bb48..253a8026e 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,3 +1,4 @@ +import { DiagnosticSeverity } from '@stoplight/types'; import { AsyncAPIDocument } from './models'; import { unstringify } from './stringify'; @@ -6,6 +7,9 @@ import { xParserSpecStringified, } from './constants'; +import type { ISpectralDiagnostic } from '@stoplight/spectral-core'; +import type { MaybeAsyncAPI } from 'types'; + export function toAsyncAPIDocument(maybeDoc: unknown): AsyncAPIDocument | undefined { if (isAsyncAPIDocument(maybeDoc)) { return maybeDoc; @@ -36,3 +40,15 @@ export function isStringifiedDocument(maybeDoc: unknown): maybeDoc is Record)[xParserSpecStringified]) ); } + +export function normalizeInput(asyncapi: string | MaybeAsyncAPI): string { + return JSON.stringify(asyncapi, undefined, 2); +}; + +export function hasErrorDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean { + return diagnostics.some(diagnostic => diagnostic.severity === DiagnosticSeverity.Error); +} + +export function hasWarningDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean { + return diagnostics.some(diagnostic => diagnostic.severity === DiagnosticSeverity.Warning); +} diff --git a/test/lint.spec.ts b/test/lint.spec.ts new file mode 100644 index 000000000..8e4d657fc --- /dev/null +++ b/test/lint.spec.ts @@ -0,0 +1,91 @@ +import { lint, validate } from '../src/lint'; +import { hasErrorDiagnostic, hasWarningDiagnostic } from '../src/utils'; + +describe('lint() & validate()', function() { + describe('lint()', function() { + it('should lint invalid document', async function() { + const document = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + } + + const diagnostics = await lint(document); + if (!diagnostics) { + return; + } + + expect(diagnostics.length > 0).toEqual(true); + expect(hasErrorDiagnostic(diagnostics)).toEqual(true); + expect(hasWarningDiagnostic(diagnostics)).toEqual(true); + }); + + it('should lint valid document', async function() { + const document = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: {} + } + + const diagnostics = await lint(document); + if (!diagnostics) { + return; + } + + expect(diagnostics.length > 0).toEqual(true); + expect(hasErrorDiagnostic(diagnostics)).toEqual(false); + expect(hasWarningDiagnostic(diagnostics)).toEqual(true); + }); + }); + + describe('validate()', function() { + it('should validate invalid document', async function() { + const document = JSON.stringify({ + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + }, undefined, 2); + const { validated, diagnostics } = await validate(document); + + expect(validated).toBeUndefined(); + expect(diagnostics.length > 0).toEqual(true); + }); + + it('should validate valid document', async function() { + const document = JSON.stringify({ + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: {} + }, undefined, 2); + const { validated, diagnostics } = await validate(document); + + expect(validated).not.toBeUndefined(); + expect(diagnostics.length > 0).toEqual(true); + }); + + it('should validate valid document - do not allow warning severity', async function() { + const document = JSON.stringify({ + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: {} + }, undefined, 2); + const { validated, diagnostics } = await validate(document, { allowedSeverity: { warning: false } }); + + expect(validated).toBeUndefined(); + expect(diagnostics.length > 0).toEqual(true); + }); + }); +}); diff --git a/test/parse.spec.ts b/test/parse.spec.ts new file mode 100644 index 000000000..3d17329f3 --- /dev/null +++ b/test/parse.spec.ts @@ -0,0 +1,33 @@ +import { AsyncAPIDocument } from '../src/models/asyncapi'; +import { parse } from '../src/parse'; + +describe('parse()', function() { + it('should parse valid document', async function() { + const document = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: {} + } + const { parsed, diagnostics } = await parse(document); + + expect(parsed).toBeInstanceOf(AsyncAPIDocument); + expect(diagnostics.length > 0).toEqual(true); + }); + + it('should parse invalid document', async function() { + const document = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + } + const { parsed, diagnostics } = await parse(document); + + expect(parsed).toEqual(undefined); + expect(diagnostics.length > 0).toEqual(true); + }); +}); diff --git a/test/utils.spec.ts b/test/utils.spec.ts index c2077a2d8..136ec2044 100644 --- a/test/utils.spec.ts +++ b/test/utils.spec.ts @@ -1,6 +1,16 @@ +import { DiagnosticSeverity } from '@stoplight/types'; import { xParserSpecParsed, xParserSpecStringified } from '../src/constants'; import { AsyncAPIDocument, BaseModel } from '../src/models'; -import { toAsyncAPIDocument, isAsyncAPIDocument, isParsedDocument, isStringifiedDocument } from '../src/utils'; +import { + toAsyncAPIDocument, + isAsyncAPIDocument, + isParsedDocument, + isStringifiedDocument, + hasErrorDiagnostic, + hasWarningDiagnostic, +} from '../src/utils'; + +import type { Diagnostic } from '../src/types'; describe('utils', function() { describe('toAsyncAPIDocument()', function() { @@ -122,4 +132,84 @@ describe('utils', function() { expect(isStringifiedDocument({ [xParserSpecParsed]: true, [xParserSpecStringified]: true })).toEqual(true); }); }); + + describe('hasErrorDiagnostic()', function() { + const simpleDiagnostic: Diagnostic = { + code: 'test-code', + message: 'test-message', + range: { start: { line: 0, character: 0 }, end: { line: 0, character: 0 } }, + severity: DiagnosticSeverity.Error, + path: [], + } + + it('should return true when diagnostics have at least one error', function() { + const diagnostics: Diagnostic[] = [ + { + ...simpleDiagnostic, + severity: DiagnosticSeverity.Error, + }, + { + ...simpleDiagnostic, + severity: DiagnosticSeverity.Warning, + } + ] + + expect(hasErrorDiagnostic(diagnostics)).toEqual(true); + }); + + it('should return false when diagnostics have no error', function() { + const diagnostics: Diagnostic[] = [ + { + ...simpleDiagnostic, + severity: DiagnosticSeverity.Warning, + }, + { + ...simpleDiagnostic, + severity: DiagnosticSeverity.Warning, + } + ] + + expect(hasErrorDiagnostic(diagnostics)).toEqual(false); + }); + }); + + describe('hasErrorDiagnostic()', function() { + const simpleDiagnostic: Diagnostic = { + code: 'test-code', + message: 'test-message', + range: { start: { line: 0, character: 0 }, end: { line: 0, character: 0 } }, + severity: DiagnosticSeverity.Error, + path: [], + } + + it('should return true when diagnostics have at least one warning', function() { + const diagnostics: Diagnostic[] = [ + { + ...simpleDiagnostic, + severity: DiagnosticSeverity.Error, + }, + { + ...simpleDiagnostic, + severity: DiagnosticSeverity.Warning, + } + ] + + expect(hasWarningDiagnostic(diagnostics)).toEqual(true); + }); + + it('should return false when diagnostics have no warning', function() { + const diagnostics: Diagnostic[] = [ + { + ...simpleDiagnostic, + severity: DiagnosticSeverity.Error, + }, + { + ...simpleDiagnostic, + severity: DiagnosticSeverity.Error, + } + ] + + expect(hasWarningDiagnostic(diagnostics)).toEqual(false); + }); + }); }); From 542724400c72edcf30186ad23079a6582e76a671 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Fri, 11 Mar 2022 11:46:09 +0100 Subject: [PATCH 009/126] refactor: interface and implementations for each major spec version (#488) --- src/lint.ts | 4 +-- src/models/asyncapi.ts | 28 +++++++++++++----- src/models/contact.ts | 16 +++------- src/models/index.ts | 6 ++-- src/models/info.ts | 37 ++++++----------------- src/models/license.ts | 11 ++----- src/models/v2/asyncapi.ts | 13 ++++++++ src/models/v2/contact.ts | 16 ++++++++++ src/models/v2/index.ts | 4 +++ src/models/v2/info.ts | 32 ++++++++++++++++++++ src/models/v2/license.ts | 12 ++++++++ src/models/v3/asyncapi.ts | 13 ++++++++ src/models/v3/contact.ts | 16 ++++++++++ src/models/v3/index.ts | 4 +++ src/models/v3/info.ts | 32 ++++++++++++++++++++ src/models/v3/license.ts | 12 ++++++++ src/parse.ts | 6 ++-- src/stringify.ts | 6 ++-- src/types.ts | 6 ++-- src/utils.ts | 10 +++---- test/models/asyncapi.spec.ts | 26 ---------------- test/models/v2/asyncapi.spec.ts | 44 ++++++++++++++++++++++++++++ test/models/{ => v2}/contact.spec.ts | 2 +- test/models/{ => v2}/info.spec.ts | 6 ++-- test/models/{ => v2}/license.spec.ts | 2 +- test/parse.spec.ts | 4 +-- test/stringify.spec.ts | 6 ++-- test/utils.spec.ts | 18 ++++++------ 28 files changed, 274 insertions(+), 118 deletions(-) create mode 100644 src/models/v2/asyncapi.ts create mode 100644 src/models/v2/contact.ts create mode 100644 src/models/v2/index.ts create mode 100644 src/models/v2/info.ts create mode 100644 src/models/v2/license.ts create mode 100644 src/models/v3/asyncapi.ts create mode 100644 src/models/v3/contact.ts create mode 100644 src/models/v3/index.ts create mode 100644 src/models/v3/info.ts create mode 100644 src/models/v3/license.ts delete mode 100644 test/models/asyncapi.spec.ts create mode 100644 test/models/v2/asyncapi.spec.ts rename test/models/{ => v2}/contact.spec.ts (95%) rename test/models/{ => v2}/info.spec.ts (93%) rename test/models/{ => v2}/license.spec.ts (93%) diff --git a/src/lint.ts b/src/lint.ts index f108ea5ae..33d2559de 100644 --- a/src/lint.ts +++ b/src/lint.ts @@ -9,7 +9,7 @@ import { asyncapi as aasRuleset } from "@stoplight/spectral-rulesets"; import { toAsyncAPIDocument, normalizeInput, hasWarningDiagnostic, hasErrorDiagnostic } from "./utils"; -import type { AsyncAPIDocument } from "./models/asyncapi"; +import type { AsyncAPIDocumentInterface } from "./models/asyncapi"; import type { ParserInput, Diagnostic } from "./types"; export interface LintOptions extends IConstructorOpts, IRunOpts { @@ -31,7 +31,7 @@ export async function lint(asyncapi: ParserInput, options?: LintOptions): Promis if (toAsyncAPIDocument(asyncapi)) { return; } - const document = normalizeInput(asyncapi as Exclude); + const document = normalizeInput(asyncapi as Exclude); return (await validate(document, options)).diagnostics; } diff --git a/src/models/asyncapi.ts b/src/models/asyncapi.ts index e2d881b37..b370204c0 100644 --- a/src/models/asyncapi.ts +++ b/src/models/asyncapi.ts @@ -1,12 +1,26 @@ +import { InfoInterface } from "./info"; import { BaseModel } from "./base"; -import { Info } from "./info"; +import { AsyncAPIDocumentV2 } from "./v2"; +import { AsyncAPIDocumentV3 } from "./v3"; -export class AsyncAPIDocument extends BaseModel { - version(): string { - return this.json("asyncapi"); +export interface AsyncAPIDocumentInterface extends BaseModel { + version(): string; + info(): InfoInterface +} + +export function newAsyncAPIDocument(json: Record): AsyncAPIDocumentInterface { + const version = json['asyncapi']; // Maybe this should be an arg. + if (version == undefined || version == null || version == '') { + throw new Error('Missing AsyncAPI version in document'); } - info(): Info { - return new Info(this.json("info")); + const major = version.split(".")[0]; + switch (major) { + case '2': + return new AsyncAPIDocumentV2(json); + case '3': + return new AsyncAPIDocumentV3(json); + default: + throw new Error(`Unsupported version: ${version}`); } -} +} \ No newline at end of file diff --git a/src/models/contact.ts b/src/models/contact.ts index 76b6c43d0..7564d384d 100644 --- a/src/models/contact.ts +++ b/src/models/contact.ts @@ -1,15 +1,7 @@ import { BaseModel } from "./base"; -export class Contact extends BaseModel { - name(): string { - return this.json("name"); - } - - url(): string { - return this.json("url"); - } - - email(): string { - return this.json("email"); - } +export interface ContactInterface extends BaseModel { + name(): string; + url(): string; + email(): string; } \ No newline at end of file diff --git a/src/models/index.ts b/src/models/index.ts index 175d27111..dc0a434a7 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -1,5 +1,7 @@ +export * from './v2'; +export * from './v3'; export * from './asyncapi'; export * from './base'; -export * from './contact'; export * from './info'; -export * from './license'; \ No newline at end of file +export * from './contact'; +export * from './license'; diff --git a/src/models/info.ts b/src/models/info.ts index 0ba3af1f5..8909b8bfd 100644 --- a/src/models/info.ts +++ b/src/models/info.ts @@ -1,31 +1,12 @@ +import { ContactInterface } from "./contact"; +import { LicenseInterface } from "./license"; import { BaseModel } from "./base"; -import { Contact } from "./contact"; -import { License } from "./license"; -export class Info extends BaseModel { - title(): string { - return this.json("title"); - } - - version(): string { - return this.json("version"); - } - - description(): string { - return this.json("description"); - } - - termsOfService(): string { - return this.json("termsOfService"); - } - - contact(): Contact | undefined { - const doc = this.json("contact"); - return doc && new Contact(doc); - } - - license(): License | undefined { - const doc = this.json("license"); - return doc && new License(doc); - } +export interface InfoInterface extends BaseModel { + title(): string; + version(): string; + description(): string; + termsOfService(): string; + contact(): ContactInterface | undefined; + license(): LicenseInterface | undefined; } \ No newline at end of file diff --git a/src/models/license.ts b/src/models/license.ts index 8f2b4c939..aeb50ee7e 100644 --- a/src/models/license.ts +++ b/src/models/license.ts @@ -1,11 +1,6 @@ import { BaseModel } from "./base"; -export class License extends BaseModel { - name(): string { - return this.json("name"); - } - - url(): string { - return this.json("url"); - } +export interface LicenseInterface extends BaseModel { + name(): string; + url(): string; } \ No newline at end of file diff --git a/src/models/v2/asyncapi.ts b/src/models/v2/asyncapi.ts new file mode 100644 index 000000000..e170a7716 --- /dev/null +++ b/src/models/v2/asyncapi.ts @@ -0,0 +1,13 @@ +import { AsyncAPIDocumentInterface } from "../../models"; +import { BaseModel } from "../base"; +import { Info } from "./info"; + +export class AsyncAPIDocument extends BaseModel implements AsyncAPIDocumentInterface { + version(): string { + return this.json("asyncapi"); + } + + info(): Info { + return new Info(this.json("info")); + } +} diff --git a/src/models/v2/contact.ts b/src/models/v2/contact.ts new file mode 100644 index 000000000..d16af7df3 --- /dev/null +++ b/src/models/v2/contact.ts @@ -0,0 +1,16 @@ +import { ContactInterface } from "../../models/contact"; +import { BaseModel } from "../base"; + +export class Contact extends BaseModel implements ContactInterface { + name(): string { + return this.json("name"); + } + + url(): string { + return this.json("url"); + } + + email(): string { + return this.json("email"); + } +} \ No newline at end of file diff --git a/src/models/v2/index.ts b/src/models/v2/index.ts new file mode 100644 index 000000000..a06d7d121 --- /dev/null +++ b/src/models/v2/index.ts @@ -0,0 +1,4 @@ +export { AsyncAPIDocument as AsyncAPIDocumentV2 } from './asyncapi'; +export { Contact as ContactV2 } from './contact'; +export { Info as InfoV2 } from './info'; +export { License as LicenseV2 } from './license'; \ No newline at end of file diff --git a/src/models/v2/info.ts b/src/models/v2/info.ts new file mode 100644 index 000000000..d6f594e8b --- /dev/null +++ b/src/models/v2/info.ts @@ -0,0 +1,32 @@ +import { InfoInterface } from "../../models/info"; +import { BaseModel } from "../base"; +import { Contact } from "./contact"; +import { License } from "./license"; + +export class Info extends BaseModel implements InfoInterface { + title(): string { + return this.json("title"); + } + + version(): string { + return this.json("version"); + } + + description(): string { + return this.json("description"); + } + + termsOfService(): string { + return this.json("termsOfService"); + } + + contact(): Contact | undefined { + const doc = this.json("contact"); + return doc && new Contact(doc); + } + + license(): License | undefined { + const doc = this.json("license"); + return doc && new License(doc); + } +} \ No newline at end of file diff --git a/src/models/v2/license.ts b/src/models/v2/license.ts new file mode 100644 index 000000000..67eb74d97 --- /dev/null +++ b/src/models/v2/license.ts @@ -0,0 +1,12 @@ +import { LicenseInterface } from "../../models/license"; +import { BaseModel } from "../base"; + +export class License extends BaseModel implements LicenseInterface { + name(): string { + return this.json("name"); + } + + url(): string { + return this.json("url"); + } +} \ No newline at end of file diff --git a/src/models/v3/asyncapi.ts b/src/models/v3/asyncapi.ts new file mode 100644 index 000000000..08802da35 --- /dev/null +++ b/src/models/v3/asyncapi.ts @@ -0,0 +1,13 @@ +import { AsyncAPIDocumentInterface } from "../../models/asyncapi"; +import { BaseModel } from "../base"; +import { Info } from "./info"; + +export class AsyncAPIDocument extends BaseModel implements AsyncAPIDocumentInterface { + version(): string { + return this.json("asyncapi"); + } + + info(): Info { + return new Info(this.json("info")); + } +} diff --git a/src/models/v3/contact.ts b/src/models/v3/contact.ts new file mode 100644 index 000000000..d16af7df3 --- /dev/null +++ b/src/models/v3/contact.ts @@ -0,0 +1,16 @@ +import { ContactInterface } from "../../models/contact"; +import { BaseModel } from "../base"; + +export class Contact extends BaseModel implements ContactInterface { + name(): string { + return this.json("name"); + } + + url(): string { + return this.json("url"); + } + + email(): string { + return this.json("email"); + } +} \ No newline at end of file diff --git a/src/models/v3/index.ts b/src/models/v3/index.ts new file mode 100644 index 000000000..7be2b264d --- /dev/null +++ b/src/models/v3/index.ts @@ -0,0 +1,4 @@ +export { AsyncAPIDocument as AsyncAPIDocumentV3 } from './asyncapi'; +export { Contact as ContactV3 } from './contact'; +export { Info as InfoV3 } from './info'; +export { License as LicenseV3 } from './license'; \ No newline at end of file diff --git a/src/models/v3/info.ts b/src/models/v3/info.ts new file mode 100644 index 000000000..d6f594e8b --- /dev/null +++ b/src/models/v3/info.ts @@ -0,0 +1,32 @@ +import { InfoInterface } from "../../models/info"; +import { BaseModel } from "../base"; +import { Contact } from "./contact"; +import { License } from "./license"; + +export class Info extends BaseModel implements InfoInterface { + title(): string { + return this.json("title"); + } + + version(): string { + return this.json("version"); + } + + description(): string { + return this.json("description"); + } + + termsOfService(): string { + return this.json("termsOfService"); + } + + contact(): Contact | undefined { + const doc = this.json("contact"); + return doc && new Contact(doc); + } + + license(): License | undefined { + const doc = this.json("license"); + return doc && new License(doc); + } +} \ No newline at end of file diff --git a/src/models/v3/license.ts b/src/models/v3/license.ts new file mode 100644 index 000000000..67eb74d97 --- /dev/null +++ b/src/models/v3/license.ts @@ -0,0 +1,12 @@ +import { LicenseInterface } from "../../models/license"; +import { BaseModel } from "../base"; + +export class License extends BaseModel implements LicenseInterface { + name(): string { + return this.json("name"); + } + + url(): string { + return this.json("url"); + } +} \ No newline at end of file diff --git a/src/parse.ts b/src/parse.ts index 9fe9a1253..10c700316 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -1,4 +1,4 @@ -import { AsyncAPIDocument } from "./models"; +import { AsyncAPIDocumentInterface, newAsyncAPIDocument } from "./models"; import { normalizeInput, toAsyncAPIDocument } from "./utils"; import { validate } from "./lint"; @@ -21,7 +21,7 @@ export async function parse(asyncapi: ParserInput, options?: ParseOptions): Prom } try { - const document = normalizeInput(asyncapi as Exclude); + const document = normalizeInput(asyncapi as Exclude); options = normalizeOptions(options); const { validated, diagnostics } = await validate(document, options.validateOptions); @@ -33,7 +33,7 @@ export async function parse(asyncapi: ParserInput, options?: ParseOptions): Prom }; } - const parsed = new AsyncAPIDocument(validated as Record); + const parsed = newAsyncAPIDocument(validated as Record); return { source: asyncapi, parsed, diff --git a/src/stringify.ts b/src/stringify.ts index d4287a8b3..1f0d3910d 100644 --- a/src/stringify.ts +++ b/src/stringify.ts @@ -1,4 +1,4 @@ -import { AsyncAPIDocument } from './models'; +import { AsyncAPIDocumentInterface, newAsyncAPIDocument } from './models'; import { isAsyncAPIDocument, isParsedDocument, isStringifiedDocument } from './utils'; import { xParserSpecStringified } from './constants'; @@ -25,7 +25,7 @@ export function stringify(document: unknown, options: StringifyOptions = {}): st }, refReplacer(), options.space || 2); } -export function unstringify(document: unknown): AsyncAPIDocument | undefined { +export function unstringify(document: unknown): AsyncAPIDocumentInterface | undefined { if (!isStringifiedDocument(document)) { return; } @@ -36,7 +36,7 @@ export function unstringify(document: unknown): AsyncAPIDocument | undefined { delete (>document)[String(xParserSpecStringified)]; traverseStringifiedDoc(document, undefined, document, new Map(), new Map()); - return new AsyncAPIDocument(>document); + return newAsyncAPIDocument(>document); } function refReplacer() { diff --git a/src/types.ts b/src/types.ts index 73bf56bdd..9cf8431ba 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,13 +1,13 @@ import type { ISpectralDiagnostic } from '@stoplight/spectral-core'; -import type { AsyncAPIDocument } from './models/asyncapi'; +import type { AsyncAPIDocumentInterface } from './models/asyncapi'; export type MaybeAsyncAPI = { asyncapi: unknown } & Record; -export type ParserInput = string | MaybeAsyncAPI | AsyncAPIDocument; +export type ParserInput = string | MaybeAsyncAPI | AsyncAPIDocumentInterface; export type Diagnostic = ISpectralDiagnostic; export interface ParserOutput { source: ParserInput; - parsed: AsyncAPIDocument | undefined; + parsed: AsyncAPIDocumentInterface | undefined; diagnostics: Diagnostic[]; } diff --git a/src/utils.ts b/src/utils.ts index 253a8026e..69fc1ffa6 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,5 +1,5 @@ import { DiagnosticSeverity } from '@stoplight/types'; -import { AsyncAPIDocument } from './models'; +import { newAsyncAPIDocument, AsyncAPIDocumentInterface, AsyncAPIDocumentV2, AsyncAPIDocumentV3 } from './models'; import { unstringify } from './stringify'; import { @@ -10,18 +10,18 @@ import { import type { ISpectralDiagnostic } from '@stoplight/spectral-core'; import type { MaybeAsyncAPI } from 'types'; -export function toAsyncAPIDocument(maybeDoc: unknown): AsyncAPIDocument | undefined { +export function toAsyncAPIDocument(maybeDoc: unknown): AsyncAPIDocumentInterface | undefined { if (isAsyncAPIDocument(maybeDoc)) { return maybeDoc; } if (!isParsedDocument(maybeDoc)) { return; } - return unstringify(maybeDoc) || new AsyncAPIDocument(maybeDoc); + return unstringify(maybeDoc) || newAsyncAPIDocument(maybeDoc); } -export function isAsyncAPIDocument(maybeDoc: unknown): maybeDoc is AsyncAPIDocument { - return maybeDoc instanceof AsyncAPIDocument; +export function isAsyncAPIDocument(maybeDoc: unknown): maybeDoc is AsyncAPIDocumentInterface { + return maybeDoc instanceof AsyncAPIDocumentV2 || maybeDoc instanceof AsyncAPIDocumentV3; } export function isParsedDocument(maybeDoc: unknown): maybeDoc is Record { diff --git a/test/models/asyncapi.spec.ts b/test/models/asyncapi.spec.ts deleted file mode 100644 index f73e9b404..000000000 --- a/test/models/asyncapi.spec.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { AsyncAPIDocument } from '../../src/models/asyncapi'; -import { Info } from '../../src/models/info'; - -describe('AsyncAPIDocument model', function() { - describe('.version()', function() { - it('should return the value', function() { - const doc = { asyncapi: "3.0.0" }; - const d = new AsyncAPIDocument(doc); - expect(d.version()).toEqual(doc.asyncapi); - }); - - it('should return undefined when there is no value', function() { - const doc = { }; - const d = new AsyncAPIDocument(doc); - expect(d.version()).toBeUndefined(); - }); - }); - - describe('.info()', function() { - it('should return an Info object', function() { - const doc = { info: { name: "LeChuck" } }; - const d = new AsyncAPIDocument(doc); - expect(d.info() instanceof Info).toBeTruthy(); - }); - }); -}); diff --git a/test/models/v2/asyncapi.spec.ts b/test/models/v2/asyncapi.spec.ts new file mode 100644 index 000000000..cad7e418f --- /dev/null +++ b/test/models/v2/asyncapi.spec.ts @@ -0,0 +1,44 @@ +import { newAsyncAPIDocument, AsyncAPIDocumentV2, InfoV2, AsyncAPIDocumentV3 } from '../../../src/models'; + +describe('AsyncAPIDocument model', function() { + describe('.version()', function() { + it('should return the value', function() { + const doc = { asyncapi: "3.0.0" }; + const d = new AsyncAPIDocumentV2(doc); + expect(d.version()).toEqual(doc.asyncapi); + }); + + it('should return undefined when there is no value', function() { + const doc = { }; + const d = new AsyncAPIDocumentV2(doc); + expect(d.version()).toBeUndefined(); + }); + }); + + describe('.info()', function() { + it('should return an Info object', function() { + const doc = { info: { name: "LeChuck" } }; + const d = new AsyncAPIDocumentV2(doc); + expect(d.info() instanceof InfoV2).toBeTruthy(); + }); + }); +}); + +describe('AsyncAPIDocument factory', function() { + it('should create a valid document from v2.0.0', function() { + const doc = { asyncapi: "2.0.0" }; + const d = newAsyncAPIDocument(doc) + expect(d.version()).toEqual(doc.asyncapi); + expect(d).toBeInstanceOf(AsyncAPIDocumentV2); + }); + it('should create a valid document from v3.0.0', function() { + const doc = { asyncapi: "3.0.0" }; + const d = newAsyncAPIDocument(doc) + expect(d.version()).toEqual(doc.asyncapi); + expect(d).toBeInstanceOf(AsyncAPIDocumentV3); + }); + it('should fail trying to create a document from a non supported spec version', function() { + const doc = { asyncapi: "99.99.99" }; + expect(() => newAsyncAPIDocument(doc)).toThrow("Unsupported version: 99.99.99"); + }); +}); diff --git a/test/models/contact.spec.ts b/test/models/v2/contact.spec.ts similarity index 95% rename from test/models/contact.spec.ts rename to test/models/v2/contact.spec.ts index 32c92d478..d9194f3e7 100644 --- a/test/models/contact.spec.ts +++ b/test/models/v2/contact.spec.ts @@ -1,4 +1,4 @@ -import { Contact } from '../../src/models/contact'; +import { Contact } from '../../../src/models/v2/contact'; describe('Contact model', function() { describe('.name()', function() { diff --git a/test/models/info.spec.ts b/test/models/v2/info.spec.ts similarity index 93% rename from test/models/info.spec.ts rename to test/models/v2/info.spec.ts index 32abd3314..4d7380629 100644 --- a/test/models/info.spec.ts +++ b/test/models/v2/info.spec.ts @@ -1,6 +1,6 @@ -import { Contact } from '../../src/models/contact'; -import { Info } from '../../src/models/info'; -import { License } from '../../src/models/license'; +import { Contact } from '../../../src/models/v2/contact'; +import { Info } from '../../../src/models/v2/info'; +import { License } from '../../../src/models/v2/license'; describe('Info model', function() { describe('.title()', function() { diff --git a/test/models/license.spec.ts b/test/models/v2/license.spec.ts similarity index 93% rename from test/models/license.spec.ts rename to test/models/v2/license.spec.ts index 7bcd1671a..992b54791 100644 --- a/test/models/license.spec.ts +++ b/test/models/v2/license.spec.ts @@ -1,4 +1,4 @@ -import { License } from '../../src/models/license'; +import { License } from '../../../src/models/v2/license'; describe('License model', function() { describe('.name()', function() { diff --git a/test/parse.spec.ts b/test/parse.spec.ts index 3d17329f3..964fcb4f6 100644 --- a/test/parse.spec.ts +++ b/test/parse.spec.ts @@ -1,4 +1,4 @@ -import { AsyncAPIDocument } from '../src/models/asyncapi'; +import { AsyncAPIDocumentV2 } from '../src/models'; import { parse } from '../src/parse'; describe('parse()', function() { @@ -13,7 +13,7 @@ describe('parse()', function() { } const { parsed, diagnostics } = await parse(document); - expect(parsed).toBeInstanceOf(AsyncAPIDocument); + expect(parsed).toBeInstanceOf(AsyncAPIDocumentV2); expect(diagnostics.length > 0).toEqual(true); }); diff --git a/test/stringify.spec.ts b/test/stringify.spec.ts index e23e9598d..6c515f886 100644 --- a/test/stringify.spec.ts +++ b/test/stringify.spec.ts @@ -1,5 +1,5 @@ import { xParserSpecParsed, xParserSpecStringified } from '../src/constants'; -import { AsyncAPIDocument, BaseModel } from '../src/models'; +import { BaseModel, newAsyncAPIDocument } from '../src/models'; import { stringify, unstringify } from '../src/stringify'; describe('stringify & unstringify', function() { @@ -29,7 +29,7 @@ describe('stringify & unstringify', function() { }); it('should stringify AsyncAPIDocument instance', function() { - expect(typeof stringify(new AsyncAPIDocument({ asyncapi: '2.0.0' }))).toEqual('string'); + expect(typeof stringify(newAsyncAPIDocument({ asyncapi: '2.0.0' }))).toEqual('string'); }); }); @@ -55,7 +55,7 @@ describe('stringify & unstringify', function() { }); it('should unstringify stringified document', function() { - expect(unstringify({ [xParserSpecParsed]: true, [xParserSpecStringified]: true })).not.toEqual(undefined); + expect(unstringify({ asyncapi: '2.0.0', [xParserSpecParsed]: true, [xParserSpecStringified]: true })).not.toEqual(undefined); }); }); }); diff --git a/test/utils.spec.ts b/test/utils.spec.ts index 136ec2044..b84e01ead 100644 --- a/test/utils.spec.ts +++ b/test/utils.spec.ts @@ -1,6 +1,6 @@ import { DiagnosticSeverity } from '@stoplight/types'; import { xParserSpecParsed, xParserSpecStringified } from '../src/constants'; -import { AsyncAPIDocument, BaseModel } from '../src/models'; +import { newAsyncAPIDocument, BaseModel, AsyncAPIDocumentV2 } from '../src/models'; import { toAsyncAPIDocument, isAsyncAPIDocument, @@ -31,15 +31,15 @@ describe('utils', function() { }); it('AsyncAPIDocument instance should return AsyncAPIDocument instance', function() { - expect(toAsyncAPIDocument(new AsyncAPIDocument({ asyncapi: '2.0.0' }))).toBeInstanceOf(AsyncAPIDocument); + expect(toAsyncAPIDocument(newAsyncAPIDocument({ asyncapi: '2.0.0' }))).toBeInstanceOf(AsyncAPIDocumentV2); }); it('parsed document should return AsyncAPIDocument instance', function() { - expect(toAsyncAPIDocument({ [xParserSpecParsed]: true })).toBeInstanceOf(AsyncAPIDocument); + expect(toAsyncAPIDocument({ asyncapi: '2.0.0', [xParserSpecParsed]: true })).toBeInstanceOf(AsyncAPIDocumentV2); }); it('stringified document should return AsyncAPIDocument instance', function() { - expect(toAsyncAPIDocument({ [xParserSpecParsed]: true, [xParserSpecStringified]: true })).toBeInstanceOf(AsyncAPIDocument); + expect(toAsyncAPIDocument({ asyncapi: '2.0.0', [xParserSpecParsed]: true, [xParserSpecStringified]: true })).toBeInstanceOf(AsyncAPIDocumentV2); }); it('stringified document (with missed parsed extension) should not return AsyncAPIDocument instance', function() { @@ -65,7 +65,7 @@ describe('utils', function() { }); it('AsyncAPIDocument instance should be AsyncAPI document', function() { - expect(isAsyncAPIDocument(new AsyncAPIDocument({ asyncapi: '2.0.0' }))).toEqual(true); + expect(isAsyncAPIDocument(newAsyncAPIDocument({ asyncapi: '2.0.0' }))).toEqual(true); }); }); @@ -87,11 +87,11 @@ describe('utils', function() { }); it('AsyncAPIDocument instance should not be parsed document', function() { - expect(isParsedDocument(new AsyncAPIDocument({ asyncapi: '2.0.0' }))).toEqual(false); + expect(isParsedDocument(newAsyncAPIDocument({ asyncapi: '2.0.0' }))).toEqual(false); }); it('AsyncAPIDocument instance with proper extension should not be parsed document', function() { - expect(isParsedDocument(new AsyncAPIDocument({ asyncapi: '2.0.0', [xParserSpecParsed]: true }))).toEqual(false); + expect(isParsedDocument(newAsyncAPIDocument({ asyncapi: '2.0.0', [xParserSpecParsed]: true }))).toEqual(false); }); it('object with proper extension should be parsed document', function() { @@ -117,11 +117,11 @@ describe('utils', function() { }); it('AsyncAPIDocument instance should not be parsed document', function() { - expect(isStringifiedDocument(new AsyncAPIDocument({ asyncapi: '2.0.0' }))).toEqual(false); + expect(isStringifiedDocument(newAsyncAPIDocument({ asyncapi: '2.0.0' }))).toEqual(false); }); it('AsyncAPIDocument instance with proper extension should not be parsed document', function() { - expect(isStringifiedDocument(new AsyncAPIDocument({ asyncapi: '2.0.0', [xParserSpecParsed]: true, [xParserSpecStringified]: true }))).toEqual(false); + expect(isStringifiedDocument(newAsyncAPIDocument({ asyncapi: '2.0.0', [xParserSpecParsed]: true, [xParserSpecStringified]: true }))).toEqual(false); }); it('object with only stringified extension should not be parsed document', function() { From 0f4355464bfa17208c27f6d9d66b06e38a92e4dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Fri, 11 Mar 2022 15:15:14 +0100 Subject: [PATCH 010/126] refactor: init custom parser functionality (#489) --- package-lock.json | 17 ++- package.json | 5 +- src/constants.ts | 1 - src/custom-operations/apply-traits.ts | 60 +++++++++ src/custom-operations/index.ts | 27 ++++ src/custom-operations/parse-schema.ts | 66 ++++++++++ src/index.ts | 7 +- src/parse.ts | 29 ++++- src/schema-parser/asyncapi-schema-parser.ts | 33 +++++ src/schema-parser/index.ts | 67 ++++++++++ src/stringify.ts | 8 ++ src/types.ts | 19 ++- src/utils.ts | 47 ++++++- test/utils.spec.ts | 137 ++++++++++++++++++++ 14 files changed, 511 insertions(+), 12 deletions(-) create mode 100644 src/custom-operations/apply-traits.ts create mode 100644 src/custom-operations/index.ts create mode 100644 src/custom-operations/parse-schema.ts create mode 100644 src/schema-parser/asyncapi-schema-parser.ts create mode 100644 src/schema-parser/index.ts diff --git a/package-lock.json b/package-lock.json index 75f26a462..5d8c96516 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,9 @@ "@stoplight/spectral-core": "^1.10.1", "@stoplight/spectral-functions": "^1.5.1", "@stoplight/spectral-parsers": "^1.0.1", - "@stoplight/spectral-rulesets": "^1.4.3" + "@stoplight/spectral-rulesets": "^1.4.3", + "jsonpath-plus": "^6.0.1", + "lodash": "^4.17.21" }, "devDependencies": { "@jest/types": "^27.5.1", @@ -22,6 +24,7 @@ "@semantic-release/release-notes-generator": "^9.0.1", "@types/jest": "^27.4.1", "@types/js-yaml": "^4.0.5", + "@types/lodash": "^4.14.179", "conventional-changelog-conventionalcommits": "^4.2.3", "cross-env": "^7.0.3", "eslint": "^7.27.0", @@ -2468,6 +2471,12 @@ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz", "integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==" }, + "node_modules/@types/lodash": { + "version": "4.14.179", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.179.tgz", + "integrity": "sha512-uwc1x90yCKqGcIOAT6DwOSuxnrAbpkdPsUOZtwrXb4D/6wZs+6qG7QnIawDuZWg0sWpxl+ltIKCaLoMlna678w==", + "dev": true + }, "node_modules/@types/node": { "version": "17.0.21", "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.21.tgz", @@ -17088,6 +17097,12 @@ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz", "integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==" }, + "@types/lodash": { + "version": "4.14.179", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.179.tgz", + "integrity": "sha512-uwc1x90yCKqGcIOAT6DwOSuxnrAbpkdPsUOZtwrXb4D/6wZs+6qG7QnIawDuZWg0sWpxl+ltIKCaLoMlna678w==", + "dev": true + }, "@types/node": { "version": "17.0.21", "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.21.tgz", diff --git a/package.json b/package.json index 6d72d98e9..47f171034 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "@semantic-release/release-notes-generator": "^9.0.1", "@types/jest": "^27.4.1", "@types/js-yaml": "^4.0.5", + "@types/lodash": "^4.14.179", "conventional-changelog-conventionalcommits": "^4.2.3", "cross-env": "^7.0.3", "eslint": "^7.27.0", @@ -50,7 +51,9 @@ "@stoplight/spectral-core": "^1.10.1", "@stoplight/spectral-functions": "^1.5.1", "@stoplight/spectral-parsers": "^1.0.1", - "@stoplight/spectral-rulesets": "^1.4.3" + "@stoplight/spectral-rulesets": "^1.4.3", + "jsonpath-plus": "^6.0.1", + "lodash": "^4.17.21" }, "release": { "branches": [ diff --git a/src/constants.ts b/src/constants.ts index aff8af592..27c1faf72 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -4,7 +4,6 @@ export const xParserSpecStringified = 'x-parser-spec-stringified'; export const xParserMessageName = 'x-parser-message-name'; export const xParserSchemaId = 'x-parser-schema-id'; -export const xParserOriginalSchema = 'x-parser-original-schema'; export const xParserOriginalSchemaFormat = 'x-parser-original-schema-format'; export const xParserOriginalTraits = 'x-parser-original-traits'; diff --git a/src/custom-operations/apply-traits.ts b/src/custom-operations/apply-traits.ts new file mode 100644 index 000000000..210668994 --- /dev/null +++ b/src/custom-operations/apply-traits.ts @@ -0,0 +1,60 @@ +import { JSONPath } from 'jsonpath-plus'; + +import { xParserOriginalTraits } from '../constants'; +import { mergePatch } from '../utils'; + +const v2TraitPaths = [ + // operations + '$.channels.*.[publish,subscribe]', + '$.components.channels.*.[publish,subscribe]', + // messages + '$.channels.*.[publish,subscribe].message', + '$.channels.*.[publish,subscribe].message.oneOf.*', + '$.components.channels.*.[publish,subscribe].message', + '$.components.channels.*.[publish,subscribe].message.oneOf.*', + '$.components.messages.*', +]; + +export function applyTraitsV2(asyncapi: Record) { + applyAllTraits(asyncapi, v2TraitPaths); +} + +const v3TraitPaths = [ + // operations + '$.channels.*.[publish,subscribe]', + '$.components.channels.*.[publish,subscribe]', + // messages + '$.channels.*.[publish,subscribe].message', + '$.channels.*.[publish,subscribe].message.oneOf.*', + '$.components.channels.*.[publish,subscribe].message', + '$.components.channels.*.[publish,subscribe].message.oneOf.*', + '$.components.messages.*', +]; + +export function applyTraitsV3(asyncapi: Record) { + applyAllTraits(asyncapi, v3TraitPaths); +} + +function applyAllTraits(asyncapi: Record, paths: string[]) { + paths.forEach(path => { + JSONPath({ + path, + json: asyncapi, + resultType: 'value', + callback(value) { applyTraits(value); }, + }); + }); +} + +function applyTraits(value: Record) { + if (Array.isArray(value.traits)) { + for (const trait of value.traits) { + for (const key in trait) { + value[String(key)] = mergePatch(value[String(key)], trait[String(key)]); + } + } + + value[xParserOriginalTraits] = value.traits; + delete value.traits; + } +} diff --git a/src/custom-operations/index.ts b/src/custom-operations/index.ts new file mode 100644 index 000000000..c900d3a02 --- /dev/null +++ b/src/custom-operations/index.ts @@ -0,0 +1,27 @@ +import { applyTraitsV2, applyTraitsV3 } from './apply-traits'; +import { parseSchemasV2 } from './parse-schema'; + +import type { ParseOptions } from "../parse"; +import type { DetailedAsyncAPI } from "../types"; + +export async function customOperations(detailed: DetailedAsyncAPI, options: ParseOptions): Promise { + switch (detailed.semver.major) { + case 2: return operationsV2(detailed, options); + case 3: return operationsV3(detailed, options); + } +} + +async function operationsV2(detailed: DetailedAsyncAPI, options: ParseOptions): Promise { + if (options.applyTraits) { + applyTraitsV2(detailed.parsed); + } + if (options.parseSchemas) { + await parseSchemasV2(detailed); + } +} + +async function operationsV3(detailed: DetailedAsyncAPI, options: ParseOptions): Promise { + if (options.applyTraits) { + applyTraitsV3(detailed.parsed); + } +} \ No newline at end of file diff --git a/src/custom-operations/parse-schema.ts b/src/custom-operations/parse-schema.ts new file mode 100644 index 000000000..2196368ac --- /dev/null +++ b/src/custom-operations/parse-schema.ts @@ -0,0 +1,66 @@ +import { JSONPath } from 'jsonpath-plus'; +import { toPath } from 'lodash'; + +import { parseSchema, getDefaultSchemaFormat } from '../schema-parser'; +import { xParserOriginalSchemaFormat } from '../constants'; + +import type { ParseSchemaInput } from "../schema-parser"; +import type { DetailedAsyncAPI } from "../types"; + +interface ToParseItem { + input: ParseSchemaInput; + value: any; +} + +const customSchemasPathsV2 = [ + '$.channels.*.[publish,subscribe].message', + '$.channels.*.[publish,subscribe].message.oneOf.*', + '$.components.channels.*.[publish,subscribe].message', + '$.components.channels.*.[publish,subscribe].message.oneOf.*', + '$.components.messages.*', +]; + +export async function parseSchemasV2(detailed: DetailedAsyncAPI) { + const defaultSchemaFormat = getDefaultSchemaFormat(detailed.parsed.asyncapi as string); + const parseItems: Array = []; + + const visited: Set = new Set(); + customSchemasPathsV2.forEach(path => { + JSONPath({ + path, + json: detailed.parsed, + resultType: 'all', + callback(result) { + const value = result.value; + if (visited.has(value)) { + return; + } + visited.add(value); + + const payload = value.payload; + if (!payload) { + return; + } + + parseItems.push({ + input: { + asyncapi: detailed, + data: payload, + meta: undefined, + path: [...toPath(result.path.slice(1)), 'payload'], + schemaFormat: value.schemaFormat || defaultSchemaFormat, + defaultSchemaFormat, + }, + value, + }); + }, + }); + }); + + return Promise.all(parseItems.map(parseSchemaV2)); +} + +async function parseSchemaV2(item: ToParseItem) { + item.value[xParserOriginalSchemaFormat] = item.input.schemaFormat; + item.value.payload = await parseSchema(item.input); +} diff --git a/src/index.ts b/src/index.ts index 9809b29cd..6f8386342 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,7 +4,12 @@ export { lint, validate } from './lint'; export { parse } from './parse'; export { stringify, unstringify } from './stringify'; +export { registerSchemaParser } from './schema-parser'; +export { AsyncAPISchemaParser } from './schema-parser/asyncapi-schema-parser'; + export type { LintOptions, ValidateOptions, ValidateOutput } from './lint'; export type { StringifyOptions } from './stringify'; export type { ParseOptions } from './parse'; -export type { ParserInput, ParserOutput, Diagnostic } from './types'; +export type { AsyncAPISemver, ParserInput, ParserOutput, Diagnostic, SchemaValidateResult } from './types'; + +export type { ValidateSchemaInput, ParseSchemaInput, SchemaParser } from './schema-parser' diff --git a/src/parse.ts b/src/parse.ts index 10c700316..c5ce643cc 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -1,12 +1,18 @@ import { AsyncAPIDocumentInterface, newAsyncAPIDocument } from "./models"; -import { normalizeInput, toAsyncAPIDocument } from "./utils"; + +import { customOperations } from './custom-operations'; import { validate } from "./lint"; +import { stringify, unstringify } from './stringify'; +import { createDetailedAsyncAPI, normalizeInput, toAsyncAPIDocument } from "./utils"; + +import { xParserSpecParsed } from './constants'; import type { ParserInput, ParserOutput } from './types'; import type { ValidateOptions } from './lint'; export interface ParseOptions { applyTraits?: boolean; + parseSchemas?: boolean; validateOptions?: ValidateOptions; } @@ -33,15 +39,24 @@ export async function parse(asyncapi: ParserInput, options?: ParseOptions): Prom }; } - const parsed = newAsyncAPIDocument(validated as Record); + const doc = { + ...(validated as Record), + [xParserSpecParsed]: true, + } + const parsed = unstringify(stringify(doc))?.json()!; + + const detailed = createDetailedAsyncAPI(asyncapi as string | Record, parsed); + await customOperations(detailed, options); + const parsedDoc = newAsyncAPIDocument(parsed); + return { source: asyncapi, - parsed, + parsed: parsedDoc, diagnostics, }; } catch(err) { // TODO: throw proper error - throw Error(); + throw err; } } @@ -55,10 +70,14 @@ function normalizeOptions(options?: ParseOptions): ParseOptions { // shall copy options = { ...defaultOptions, ...options }; - // traits + // applyTraits if (options.applyTraits === undefined) { options.applyTraits = true; } + // parseSchemas + if (options.parseSchemas === undefined) { + options.parseSchemas = true; + } return options; } diff --git a/src/schema-parser/asyncapi-schema-parser.ts b/src/schema-parser/asyncapi-schema-parser.ts new file mode 100644 index 000000000..a75ef58a5 --- /dev/null +++ b/src/schema-parser/asyncapi-schema-parser.ts @@ -0,0 +1,33 @@ +import { SchemaParser } from "../schema-parser"; + +export function AsyncAPISchemaParser(): SchemaParser { + return { + validate, + parse, + getMimeTypes, + } +} + +function validate() { + +} + +function parse() { + +} + +function getMimeTypes() { + const mimeTypes = [ + 'application/schema;version=draft-07', + 'application/schema+json;version=draft-07', + 'application/schema+yaml;version=draft-07', + ]; + ['2.0.0', '2.1.0', '2.2.0', '2.3.0'].forEach(version => { + mimeTypes.push( + `application/vnd.aai.asyncapi;version=${version}`, + `application/vnd.aai.asyncapi+json;version=${version}`, + `application/vnd.aai.asyncapi+yaml;version=${version}`, + ); + }); + return mimeTypes; +} diff --git a/src/schema-parser/index.ts b/src/schema-parser/index.ts new file mode 100644 index 000000000..e2be6368f --- /dev/null +++ b/src/schema-parser/index.ts @@ -0,0 +1,67 @@ +import type { DetailedAsyncAPI, SchemaValidateResult } from '../types'; + +export interface ValidateSchemaInput { + readonly asyncapi: DetailedAsyncAPI; + readonly data: D; + readonly meta: M; + readonly path: Array; + readonly schemaFormat: string; + readonly defaultSchemaFormat: string; +} + +export interface ParseSchemaInput { + readonly asyncapi: DetailedAsyncAPI; + readonly data: D; + readonly meta: M; + readonly path: Array; + readonly schemaFormat: string; + readonly defaultSchemaFormat: string; +} + +export interface SchemaParser { + validate: (input: ValidateSchemaInput) => void | SchemaValidateResult[] | Promise; + parse: (input: ParseSchemaInput) => unknown | Promise; + getMimeTypes: () => Array; +} + +const PARSERS = new Map(); + +export async function validateSchema(input: ParseSchemaInput) { + const parser = getSchemaParser(input.schemaFormat); + if (parser === undefined) { + // throw appropriate error + throw new Error(); + } + return parser.validate(input); +} + +export async function parseSchema(input: ParseSchemaInput) { + const parser = getSchemaParser(input.schemaFormat); + if (parser === undefined) { + return; + } + return parser.parse(input); +} + +export function registerSchemaParser(parser: SchemaParser) { + if ( + typeof parser !== 'object' + || typeof parser.validate !== 'function' + || typeof parser.parse !== 'function' + || typeof parser.getMimeTypes !== 'function' + ) { + throw new Error('custom parser must have "parse()", "validate()" and "getMimeTypes()" functions.'); + } + + parser.getMimeTypes().forEach(schemaFormat => { + PARSERS.set(schemaFormat, parser); + }); +} + +export function getSchemaParser(mimeType: string) { + return PARSERS.get(mimeType); +} + +export function getDefaultSchemaFormat(asyncapiVersion: string) { + return `application/vnd.aai.asyncapi;version=${asyncapiVersion}`; +} diff --git a/src/stringify.ts b/src/stringify.ts index 1f0d3910d..b49e4ed61 100644 --- a/src/stringify.ts +++ b/src/stringify.ts @@ -26,6 +26,14 @@ export function stringify(document: unknown, options: StringifyOptions = {}): st } export function unstringify(document: unknown): AsyncAPIDocumentInterface | undefined { + if (typeof document === 'string') { + try { + document = JSON.parse(document); + } catch(_) { + return; + } + } + if (!isStringifiedDocument(document)) { return; } diff --git a/src/types.ts b/src/types.ts index 9cf8431ba..7294aab80 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,10 +1,25 @@ -import type { ISpectralDiagnostic } from '@stoplight/spectral-core'; +import type { ISpectralDiagnostic, IFunctionResult } from '@stoplight/spectral-core'; import type { AsyncAPIDocumentInterface } from './models/asyncapi'; -export type MaybeAsyncAPI = { asyncapi: unknown } & Record; +export type MaybeAsyncAPI = { asyncapi: string } & Record; +export interface AsyncAPISemver { + version: string; + major: number; + minor: number; + patch: number; + rc?: number; +} + +export interface DetailedAsyncAPI { + source: string | Record; + parsed: Record; + semver: AsyncAPISemver; +} + export type ParserInput = string | MaybeAsyncAPI | AsyncAPIDocumentInterface; export type Diagnostic = ISpectralDiagnostic; +export type SchemaValidateResult = IFunctionResult; export interface ParserOutput { source: ParserInput; diff --git a/src/utils.ts b/src/utils.ts index 69fc1ffa6..6c48e1048 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -8,7 +8,7 @@ import { } from './constants'; import type { ISpectralDiagnostic } from '@stoplight/spectral-core'; -import type { MaybeAsyncAPI } from 'types'; +import type { AsyncAPISemver, DetailedAsyncAPI, MaybeAsyncAPI } from 'types'; export function toAsyncAPIDocument(maybeDoc: unknown): AsyncAPIDocumentInterface | undefined { if (isAsyncAPIDocument(maybeDoc)) { @@ -41,6 +41,26 @@ export function isStringifiedDocument(maybeDoc: unknown): maybeDoc is Record, parsed: Record): DetailedAsyncAPI { + return { + source, + parsed, + semver: getSemver((parsed as MaybeAsyncAPI).asyncapi), + } +} + +export function getSemver(version: string): AsyncAPISemver { + const [major, minor, patchWithRc] = version.split('.'); + const [patch, rc] = patchWithRc.split('-rc'); + return { + version, + major: Number(major), + minor: Number(minor), + patch: Number(patch), + rc: rc && Number(rc), + } as AsyncAPISemver; +} + export function normalizeInput(asyncapi: string | MaybeAsyncAPI): string { return JSON.stringify(asyncapi, undefined, 2); }; @@ -52,3 +72,28 @@ export function hasErrorDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean export function hasWarningDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean { return diagnostics.some(diagnostic => diagnostic.severity === DiagnosticSeverity.Warning); } + +export function mergePatch(origin: unknown, patch: unknown) { + // If the patch is not an object, it replaces the origin. + if (!isObject(patch)) { + return patch; + } + + const result = !isObject(origin) + ? {} // Non objects are being replaced. + : Object.assign({}, origin); // Make sure we never modify the origin. + + Object.keys(patch).forEach(key => { + const patchVal = patch[key]; + if (patchVal === null) { + delete result[key]; + } else { + result[key] = mergePatch(result[key], patchVal); + } + }); + return result; +} + +export function isObject(value: unknown): value is Record { + return Boolean(value) && typeof value === 'object' && Array.isArray(value) === false; +} \ No newline at end of file diff --git a/test/utils.spec.ts b/test/utils.spec.ts index b84e01ead..b8e6afd5d 100644 --- a/test/utils.spec.ts +++ b/test/utils.spec.ts @@ -1,4 +1,6 @@ import { DiagnosticSeverity } from '@stoplight/types'; +import { cloneDeep } from 'lodash'; + import { xParserSpecParsed, xParserSpecStringified } from '../src/constants'; import { newAsyncAPIDocument, BaseModel, AsyncAPIDocumentV2 } from '../src/models'; import { @@ -8,6 +10,10 @@ import { isStringifiedDocument, hasErrorDiagnostic, hasWarningDiagnostic, + createDetailedAsyncAPI, + getSemver, + mergePatch, + normalizeInput, } from '../src/utils'; import type { Diagnostic } from '../src/types'; @@ -212,4 +218,135 @@ describe('utils', function() { expect(hasWarningDiagnostic(diagnostics)).toEqual(false); }); }); + + describe('createDetailedAsyncAPI()', function() { + it('should create detailed object', function () { + const source = "{ asyncapi: '2.1.37' }"; + const parsed = { asyncapi: '2.1.37' }; + const detailed = createDetailedAsyncAPI(source, parsed); + expect(detailed.source).toEqual(source); + expect(detailed.parsed).toEqual(parsed); + expect(detailed.semver.version).toEqual('2.1.37'); + expect(detailed.semver.major).toEqual(2); + expect(detailed.semver.minor).toEqual(1); + expect(detailed.semver.patch).toEqual(37); + expect(detailed.semver.rc).toEqual(undefined); + }); + }); + + describe('getSemver()', function() { + it('should split version', function () { + const semver = getSemver('2.1.37'); + expect(semver.version).toEqual('2.1.37'); + expect(semver.major).toEqual(2); + expect(semver.minor).toEqual(1); + expect(semver.patch).toEqual(37); + expect(semver.rc).toEqual(undefined); + }); + + it('should split version with release candidate', function () { + const semver = getSemver('2.1.37-rc69'); + expect(semver.version).toEqual('2.1.37-rc69'); + expect(semver.major).toEqual(2); + expect(semver.minor).toEqual(1); + expect(semver.patch).toEqual(37); + expect(semver.rc).toEqual(69); + }); + }); + + describe('normalizeInput()', function() { + it('should stringify input', function () { + const source = { asyncapi: '2.1.37' }; + const normalized = JSON.stringify(source, undefined, 2); + expect(normalizeInput(source)).toEqual(normalized); + }); + }); + + describe('mergePatch()', function() { + it('should replace an attribute', function () { + expect(mergePatch({ a: 'b' }, { a: 'c' })).toEqual({ a: 'c' }); + }); + + it('should add an attribute', function () { + expect(mergePatch({ a: 'b' }, { b: 'c' })).toEqual({ + a: 'b', + b: 'c', + }); + }); + + it('should delete attribute', function () { + expect(mergePatch({ a: 'b' }, { a: null })).toEqual({}); + }); + + it('should delete attribute without affecting others', function () { + expect(mergePatch({ a: 'b', b: 'c' }, { a: null })).toEqual({ + b: 'c', + }); + }); + + it('should replace array with a string', function () { + expect(mergePatch({ a: ['b'] }, { a: 'c' })).toEqual({ a: 'c' }); + }); + + it('should replace an string with an array', function () { + expect(mergePatch({ a: 'c' }, { a: ['b'] })).toEqual({ a: ['b'] }); + }); + + it('should apply recursively', function () { + expect(mergePatch({ a: { b: 'c' } }, { a: { b: 'd', c: null } })).toEqual({ + a: { b: 'd' }, + }); + }); + + it('should replace an object array with a number array', function () { + expect(mergePatch({ a: [{ b: 'c' }] }, { a: [1] })).toEqual({ + a: [1], + }); + }); + + it('should replace an array', function () { + expect(mergePatch(['a', 'b'], ['c', 'd'])).toEqual(['c', 'd']); + }); + + it('should replace an object with an array', function () { + expect(mergePatch({ a: 'b' }, ['c'])).toEqual(['c']); + }); + + it('should replace an object with null', function () { + expect(mergePatch({ a: 'foo' }, null)).toEqual(null); + }); + + it('should replace an object with a string', function () { + expect(mergePatch({ a: 'foo' }, 'bar')).toEqual('bar'); + }); + + it('should not change null attributes', function () { + expect(mergePatch({ e: null }, { a: 1 })).toEqual({ e: null, a: 1 }); + }); + + it('should not set an attribute to null', function () { + expect(mergePatch([1, 2], { a: 'b', c: null })).toEqual({ a: 'b' }); + }); + + it('should not set an attribute to null in a sub object', function () { + expect(mergePatch({}, { a: { bb: { ccc: null } } })).toEqual({ + a: { bb: {} }, + }); + }); + + it('should not directly edit the origin', function () { + const origin = { a: { b: 10 }, c: 5 }; + const clone = cloneDeep(origin); + const patched = mergePatch(origin, { a: { b: 8 } }) as Record; + expect(patched).not.toEqual(origin); + expect(patched.a).not.toEqual(origin.a); + expect(origin).toEqual(clone); + }); + + it('should recycle properties if possible', function () { + const origin = { a: { b: 10 }, c: 5 }; + const patched = mergePatch(origin, { c: 8 }) as Record; + expect(patched.a).toEqual(origin.a); + }); + }); }); From 8a32da73505cc85fed0d432e2f58401e958bf2f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Wed, 16 Mar 2022 10:49:28 +0100 Subject: [PATCH 011/126] refactor: add needed mixins (#491) --- src/constants.ts | 2 + src/models/asyncapi.ts | 37 +++++---- src/models/base.ts | 2 +- src/models/mixins/bindings.ts | 33 ++++++++ src/models/mixins/description.ts | 16 ++++ src/models/mixins/external-docs.ts | 17 ++++ src/models/mixins/index.ts | 41 ++++++++++ src/models/mixins/specification-extensions.ts | 39 ++++++++++ src/models/mixins/tags.ts | 36 +++++++++ src/models/v2/asyncapi.ts | 21 +++-- src/models/v3/asyncapi.ts | 19 +++-- test/models/mixins/bindings.spec.ts | 49 ++++++++++++ test/models/mixins/description.spec.ts | 32 ++++++++ test/models/mixins/external-docs.spec.ts | 36 +++++++++ test/models/mixins/inheritance.ts | 77 +++++++++++++++++++ .../mixins/specification-extensions.spec.ts | 60 +++++++++++++++ test/models/mixins/tags.spec.ts | 55 +++++++++++++ test/models/v2/asyncapi.spec.ts | 14 ++++ 18 files changed, 553 insertions(+), 33 deletions(-) create mode 100644 src/models/mixins/bindings.ts create mode 100644 src/models/mixins/description.ts create mode 100644 src/models/mixins/external-docs.ts create mode 100644 src/models/mixins/index.ts create mode 100644 src/models/mixins/specification-extensions.ts create mode 100644 src/models/mixins/tags.ts create mode 100644 test/models/mixins/bindings.spec.ts create mode 100644 test/models/mixins/description.spec.ts create mode 100644 test/models/mixins/external-docs.spec.ts create mode 100644 test/models/mixins/inheritance.ts create mode 100644 test/models/mixins/specification-extensions.spec.ts create mode 100644 test/models/mixins/tags.spec.ts diff --git a/src/constants.ts b/src/constants.ts index 27c1faf72..ac5f77c51 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -8,3 +8,5 @@ export const xParserOriginalSchemaFormat = 'x-parser-original-schema-format'; export const xParserOriginalTraits = 'x-parser-original-traits'; export const xParserCircular = 'x-parser-circular'; + +export const EXTENSION_REGEX = /^x-[\w\d\.\-\_]+$/; diff --git a/src/models/asyncapi.ts b/src/models/asyncapi.ts index b370204c0..e5f95f030 100644 --- a/src/models/asyncapi.ts +++ b/src/models/asyncapi.ts @@ -1,26 +1,29 @@ import { InfoInterface } from "./info"; import { BaseModel } from "./base"; + import { AsyncAPIDocumentV2 } from "./v2"; import { AsyncAPIDocumentV3 } from "./v3"; -export interface AsyncAPIDocumentInterface extends BaseModel { - version(): string; - info(): InfoInterface +import { ExternalDocsMixinInterface, SpecificationExtensionsMixinInterface, TagsMixinInterface } from "./mixins"; + +export interface AsyncAPIDocumentInterface extends BaseModel, ExternalDocsMixinInterface, SpecificationExtensionsMixinInterface, TagsMixinInterface { + version(): string; + info(): InfoInterface; } export function newAsyncAPIDocument(json: Record): AsyncAPIDocumentInterface { - const version = json['asyncapi']; // Maybe this should be an arg. - if (version == undefined || version == null || version == '') { - throw new Error('Missing AsyncAPI version in document'); - } + const version = json['asyncapi']; // Maybe this should be an arg. + if (version == undefined || version == null || version == '') { + throw new Error('Missing AsyncAPI version in document'); + } - const major = version.split(".")[0]; - switch (major) { - case '2': - return new AsyncAPIDocumentV2(json); - case '3': - return new AsyncAPIDocumentV3(json); - default: - throw new Error(`Unsupported version: ${version}`); - } -} \ No newline at end of file + const major = version.split(".")[0]; + switch (major) { + case '2': + return new AsyncAPIDocumentV2(json); + case '3': + return new AsyncAPIDocumentV3(json); + default: + throw new Error(`Unsupported version: ${version}`); + } +} diff --git a/src/models/base.ts b/src/models/base.ts index f5ac549b5..7e09c8007 100644 --- a/src/models/base.ts +++ b/src/models/base.ts @@ -1,6 +1,6 @@ export class BaseModel { constructor( - private readonly _json: Record, + protected readonly _json: Record, ) {} json>(): T; diff --git a/src/models/mixins/bindings.ts b/src/models/mixins/bindings.ts new file mode 100644 index 000000000..41ec9a5d0 --- /dev/null +++ b/src/models/mixins/bindings.ts @@ -0,0 +1,33 @@ +import { BaseModel } from "../base"; + +export interface BindingsMixinInterface { + hasBindings(): boolean; + hasBindings(protocol: string): boolean; + bindings(): any[]; // TODO: Change type to Tag + bindings(protocol: string): any; // TODO: Change type to Tag +} + +export abstract class BindingsMixin extends BaseModel implements BindingsMixinInterface { + hasBindings(): boolean; + hasBindings(protocol: string): boolean; + hasBindings(protocol?: string): boolean { + const bindings = this.bindings(protocol!); + if (typeof protocol === 'string') { + return Boolean(bindings); + } + return Object.keys(bindings || {}).length > 0; + }; + + + bindings(): any[]; + bindings(protocol: string): any; + bindings(protocol?: string): any | any[] { + if (typeof protocol === 'string') { + if (this._json.bindings && typeof this._json.bindings === 'object') { + return this._json.bindings[protocol]; + } + return; + } + return this._json.bindings || {}; + }; +} diff --git a/src/models/mixins/description.ts b/src/models/mixins/description.ts new file mode 100644 index 000000000..f97746b3f --- /dev/null +++ b/src/models/mixins/description.ts @@ -0,0 +1,16 @@ +import { BaseModel } from "../base"; + +export interface DescriptionMixinInterface { + hasDescription(): boolean; + description(): string | undefined; +} + +export abstract class DescriptionMixin extends BaseModel implements DescriptionMixinInterface { + hasDescription() { + return Boolean(this._json.description); + }; + + description(): string | undefined { + return this._json.description; + } +} diff --git a/src/models/mixins/external-docs.ts b/src/models/mixins/external-docs.ts new file mode 100644 index 000000000..6dd0e3969 --- /dev/null +++ b/src/models/mixins/external-docs.ts @@ -0,0 +1,17 @@ +import { BaseModel } from "../base"; + +export interface ExternalDocsMixinInterface { + hasExternalDocs(): boolean; + externalDocs(): any; // TODO: Change type to ExternalDocs +} + +export abstract class ExternalDocsMixin extends BaseModel implements ExternalDocsMixinInterface { + hasExternalDocs(): boolean { + return !!(this._json.externalDocs && Object.keys(this._json.externalDocs).length); + }; + + // TODO: implement it when the ExternalDocs class will be implemented + externalDocs(): any { + return; + }; +} diff --git a/src/models/mixins/index.ts b/src/models/mixins/index.ts new file mode 100644 index 000000000..6a3397514 --- /dev/null +++ b/src/models/mixins/index.ts @@ -0,0 +1,41 @@ +import type { BaseModel } from '../base'; + +export * from './bindings'; +export * from './description'; +export * from './external-docs'; +export * from './specification-extensions'; +export * from './tags'; + +export interface Constructor extends Function { + new (...any: any[]): T; +} + +export interface MixinType extends Function { + prototype: T; +} + +export function Mixin(a: typeof BaseModel): typeof BaseModel; +export function Mixin(a: typeof BaseModel, b: MixinType): typeof BaseModel & Constructor; +export function Mixin(a: typeof BaseModel, b: MixinType, c: MixinType): typeof BaseModel & Constructor & Constructor; +export function Mixin(a: typeof BaseModel, b: MixinType, c: MixinType, d: MixinType): typeof BaseModel & Constructor & Constructor & Constructor; +export function Mixin(a: typeof BaseModel, b: MixinType, c: MixinType, d: MixinType, e: MixinType): typeof BaseModel & Constructor & Constructor & Constructor & Constructor; +export function Mixin(a: typeof BaseModel, b: MixinType, c: MixinType, d: MixinType, e: MixinType, f: MixinType): typeof BaseModel & Constructor & Constructor & Constructor & Constructor & Constructor; +export function Mixin(baseModel: typeof BaseModel, ...constructors: any[]) { + return mixin(class extends baseModel {}, constructors); +} + +function mixin(derivedCtor: any, constructors: any[]): typeof BaseModel { + constructors.forEach((baseCtor) => { + Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => { + if (name === 'constructor') { + return; + } + Object.defineProperty( + derivedCtor.prototype, + name, + Object.getOwnPropertyDescriptor(baseCtor.prototype, name) || Object.create(null), + ); + }); + }); + return derivedCtor; +} \ No newline at end of file diff --git a/src/models/mixins/specification-extensions.ts b/src/models/mixins/specification-extensions.ts new file mode 100644 index 000000000..873e2fe45 --- /dev/null +++ b/src/models/mixins/specification-extensions.ts @@ -0,0 +1,39 @@ +import { BaseModel } from "../base"; + +import { EXTENSION_REGEX } from '../../constants'; + +export interface SpecificationExtensionsMixinInterface { + hasExtensions(): boolean; + hasExtensions(name: string): boolean; + extensions(): Record; + extensions(name: string): any; +} + +export abstract class SpecificationExtensionsMixin extends BaseModel implements SpecificationExtensionsMixinInterface { + hasExtensions(): boolean; + hasExtensions(name: string): boolean; + hasExtensions(name?: string): boolean { + const extensions = this.extensions(name!); + if (typeof name === 'string') { + return Boolean(extensions); + } + return Object.keys(extensions || {}).length > 0; + }; + + extensions(): any[]; + extensions(name: string): any; + extensions(name?: string): any | any[] { + if (typeof name === 'string') { + name = name.startsWith('x-') ? name : `x-${name}`; + return this._json[name]; + } + + const result: Record = {}; + Object.entries(this._json).forEach(([key, value]) => { + if (EXTENSION_REGEX.test(key)) { + result[String(key)] = value; + } + }); + return result; + }; +} diff --git a/src/models/mixins/tags.ts b/src/models/mixins/tags.ts new file mode 100644 index 000000000..2554b39a3 --- /dev/null +++ b/src/models/mixins/tags.ts @@ -0,0 +1,36 @@ +import { BaseModel } from "../base"; + +export interface TagsMixinInterface { + hasTags(): boolean; + hasTags(name: string): boolean; + tags(): any[]; // TODO: Change type to Tag + tags(name: string): any; // TODO: Change type to Tag +} + +export abstract class TagsMixin extends BaseModel implements TagsMixinInterface { + hasTags(): boolean; + hasTags(name: string): boolean; + hasTags(name?: string): boolean { + if (!Array.isArray(this._json.tags) || !this._json.tags.length) { + return false; + } + if (typeof name === 'string') { + return this._json.tags.some((t: any) => t.name === name); + } + return true; + }; + + + // TODO: return instance(s) of Tag model when the Tag class will be implemented + tags(): any[]; // TODO: Change type to Tag + tags(name: string): any; // TODO: Change type to Tag + tags(name?: string): any | any[] { // TODO: Change type to Tag + if (typeof name === 'string') { + if (Array.isArray(this._json.tags)) { + return this._json.tags.find((t: any) => t.name === name); + } + return; + } + return this._json.tags || []; + }; +} diff --git a/src/models/v2/asyncapi.ts b/src/models/v2/asyncapi.ts index e170a7716..7614fd5fc 100644 --- a/src/models/v2/asyncapi.ts +++ b/src/models/v2/asyncapi.ts @@ -2,12 +2,17 @@ import { AsyncAPIDocumentInterface } from "../../models"; import { BaseModel } from "../base"; import { Info } from "./info"; -export class AsyncAPIDocument extends BaseModel implements AsyncAPIDocumentInterface { - version(): string { - return this.json("asyncapi"); - } - - info(): Info { - return new Info(this.json("info")); - } +import { Mixin, ExternalDocsMixin, SpecificationExtensionsMixin, TagsMixin } from '../mixins'; + +export class AsyncAPIDocument + extends Mixin(BaseModel, ExternalDocsMixin, SpecificationExtensionsMixin, TagsMixin) + implements AsyncAPIDocumentInterface { + + version(): string { + return this.json("asyncapi"); + } + + info(): Info { + return new Info(this.json("info")); + } } diff --git a/src/models/v3/asyncapi.ts b/src/models/v3/asyncapi.ts index 08802da35..113a738fe 100644 --- a/src/models/v3/asyncapi.ts +++ b/src/models/v3/asyncapi.ts @@ -2,12 +2,17 @@ import { AsyncAPIDocumentInterface } from "../../models/asyncapi"; import { BaseModel } from "../base"; import { Info } from "./info"; -export class AsyncAPIDocument extends BaseModel implements AsyncAPIDocumentInterface { - version(): string { - return this.json("asyncapi"); - } +import { Mixin, ExternalDocsMixin, SpecificationExtensionsMixin, TagsMixin } from '../mixins'; - info(): Info { - return new Info(this.json("info")); - } +export class AsyncAPIDocument + extends Mixin(BaseModel, ExternalDocsMixin, SpecificationExtensionsMixin, TagsMixin) + implements AsyncAPIDocumentInterface { + + version(): string { + return this.json("asyncapi"); + } + + info(): Info { + return new Info(this.json("info")); + } } diff --git a/test/models/mixins/bindings.spec.ts b/test/models/mixins/bindings.spec.ts new file mode 100644 index 000000000..6438e391d --- /dev/null +++ b/test/models/mixins/bindings.spec.ts @@ -0,0 +1,49 @@ +import { BaseModel } from '../../../src/models/base'; +import { BindingsMixin, Mixin } from '../../../src/models/mixins'; + +class Model extends Mixin(BaseModel, BindingsMixin) {}; + +const doc1 = { bindings: { amqp: { test: 'test1' } } }; +const doc2 = { bindings: {} }; +const doc3 = {}; +const d1 = new Model(doc1); +const d2 = new Model(doc2); +const d3 = new Model(doc3); + +describe('Bindings mixin', function() { + describe('.hasBindings()', function() { + it('should return a boolean indicating if the object has bindings', function() { + expect(d1.hasBindings()).toEqual(true); + expect(d2.hasBindings()).toEqual(false); + expect(d3.hasBindings()).toEqual(false); + }); + + it('should return a boolean indicating if the bindings object has appropriate binding by name', function() { + expect(d1.hasBindings('amqp')).toEqual(true); + expect(d1.hasBindings('http')).toEqual(false); + expect(d2.hasBindings('amqp')).toEqual(false); + expect(d3.hasBindings('amqp')).toEqual(false); + }); + }); + + describe('.bindings()', function() { + it('should return a map of bindings', function() { + expect(d1.bindings()).toEqual(doc1.bindings); + }); + + it('should return an empty object', function() { + expect(d2.bindings()).toEqual({}); + expect(d3.bindings()).toEqual({}); + }); + + it('should return a binding object', function() { + expect(d1.bindings('amqp')).toEqual(doc1.bindings.amqp); + }); + + it('should return a undefined', function() { + expect(d1.bindings('http')).toEqual(undefined); + expect(d2.bindings('amqp')).toEqual(undefined); + expect(d3.bindings('amqp')).toEqual(undefined); + }); + }); +}); diff --git a/test/models/mixins/description.spec.ts b/test/models/mixins/description.spec.ts new file mode 100644 index 000000000..99027ac2b --- /dev/null +++ b/test/models/mixins/description.spec.ts @@ -0,0 +1,32 @@ +import { BaseModel } from '../../../src/models/base'; +import { DescriptionMixin, Mixin } from '../../../src/models/mixins'; + +class Model extends Mixin(BaseModel, DescriptionMixin) {}; + +const doc1 = { description: 'Testing' }; +const doc2 = { description: '' }; +const doc3 = {}; +const d1 = new Model(doc1); +const d2 = new Model(doc2); +const d3 = new Model(doc3); + +describe('Description mixin', function() { + describe('.hasDescription()', function() { + it('should return a boolean indicating if the object has description', function() { + expect(d1.hasDescription()).toEqual(true); + expect(d2.hasDescription()).toEqual(false); + expect(d3.hasDescription()).toEqual(false); + }); + }); + + describe('.description()', function() { + it('should return a value', function() { + expect(d1.description()).toEqual(doc1.description); + expect(d2.description()).toEqual(''); + }); + + it('should return an undefined', function() { + expect(d3.description()).toEqual(undefined); + }); + }); +}); diff --git a/test/models/mixins/external-docs.spec.ts b/test/models/mixins/external-docs.spec.ts new file mode 100644 index 000000000..ce722b893 --- /dev/null +++ b/test/models/mixins/external-docs.spec.ts @@ -0,0 +1,36 @@ +import { BaseModel } from '../../../src/models/base'; +import { ExternalDocsMixin, Mixin } from '../../../src/models/mixins'; + +class Model extends Mixin(BaseModel, ExternalDocsMixin) {}; + +const doc1 = { externalDocs: { url: 'test.com' } }; +const doc2 = { externalDocs: {} }; +const doc3 = {}; +const d1 = new Model(doc1); +const d2 = new Model(doc2); +const d3 = new Model(doc3); + +describe('ExternalDocs mixin', function() { + describe('.hasExternalDocs()', function() { + it('should return a boolean indicating if the object has externalDocs', function() { + expect(d1.hasExternalDocs()).toEqual(true); + expect(d2.hasExternalDocs()).toEqual(false); + expect(d3.hasExternalDocs()).toEqual(false); + }); + }); + + // TODO: implement it when the ExternalDocs class will be implemented + describe('.externalDocs()', function() { + // it('should return a externalDocs object', function() { + // expect(d1.externalDocs() instanceof ExternalDocs).toEqual(true); + // expect(d1.externalDocs().json()).toEqual(doc1.externalDocs); + + // expect(d2.externalDocs() instanceof ExternalDocs).toEqual(true); + // expect(d2.externalDocs().json()).toEqual(doc2.externalDocs); + // }); + + it('should return a undefined', function() { + expect(d3.externalDocs()).toEqual(undefined); + }); + }); +}); diff --git a/test/models/mixins/inheritance.ts b/test/models/mixins/inheritance.ts new file mode 100644 index 000000000..439027488 --- /dev/null +++ b/test/models/mixins/inheritance.ts @@ -0,0 +1,77 @@ +import { + BindingsMixin, + DescriptionMixin, + ExternalDocsMixin, + SpecificationExtensionsMixin, + TagsMixin, +} from '../../../src/models/mixins'; + +export function assertBindingsMixinInheritance(model: typeof BindingsMixin) { + describe('BindingsMixin inheritance', function() { + it(`check if ${model.name} model has inherited methods from BindingsMixin`, function() { + expect(model.prototype.hasBindings).not.toEqual(undefined); + expect(typeof model.prototype.hasBindings).toEqual('function'); + expect(model.prototype.hasBindings === BindingsMixin.prototype.hasBindings).toEqual(true); + + expect(model.prototype.bindings).not.toEqual(undefined); + expect(typeof model.prototype.bindings).toEqual('function'); + expect(model.prototype.bindings === BindingsMixin.prototype.bindings).toEqual(true); + }); + }); +} + +export function assertDescriptionMixinInheritance(model: typeof DescriptionMixin) { + describe('DescriptionMixin inheritance', function() { + it(`check if ${model.name} model has inherited methods from DescriptionMixin`, function() { + expect(model.prototype.hasDescription).not.toEqual(undefined); + expect(typeof model.prototype.hasDescription).toEqual('function'); + expect(model.prototype.hasDescription === DescriptionMixin.prototype.hasDescription).toEqual(true); + + expect(model.prototype.description).not.toEqual(undefined); + expect(typeof model.prototype.description).toEqual('function'); + expect(model.prototype.description === DescriptionMixin.prototype.description).toEqual(true); + }); + }); +} + +export function assertExternalDocsMixinInheritance(model: typeof ExternalDocsMixin) { + describe('ExternalDocsMixin inheritance', function() { + it(`check if ${model.name} model has inherited methods from ExternalDocsMixin`, function() { + expect(model.prototype.hasExternalDocs).not.toEqual(undefined); + expect(typeof model.prototype.hasExternalDocs).toEqual('function'); + expect(model.prototype.hasExternalDocs === ExternalDocsMixin.prototype.hasExternalDocs).toEqual(true); + + expect(model.prototype.externalDocs).not.toEqual(undefined); + expect(typeof model.prototype.externalDocs).toEqual('function'); + expect(model.prototype.externalDocs === ExternalDocsMixin.prototype.externalDocs).toEqual(true); + }); + }); +} + +export function assertSpecificationExtensionsMixinInheritance(model: typeof SpecificationExtensionsMixin) { + describe('SpecificationExtensionsMixin inheritance', function() { + it(`check if ${model.name} model has inherited methods from SpecificationExtensionsMixin`, function() { + expect(model.prototype.hasExtensions).not.toEqual(undefined); + expect(typeof model.prototype.hasExtensions).toEqual('function'); + expect(model.prototype.hasExtensions === SpecificationExtensionsMixin.prototype.hasExtensions).toEqual(true); + + expect(model.prototype.extensions).not.toEqual(undefined); + expect(typeof model.prototype.extensions).toEqual('function'); + expect(model.prototype.extensions === SpecificationExtensionsMixin.prototype.extensions).toEqual(true); + }); + }); +} + +export function assertTagsMixinInheritance(model: typeof TagsMixin) { + describe('TagsMixin inheritance', function() { + it(`check if ${model.name} model has inherited methods from TagsMixin`, function() { + expect(model.prototype.hasTags).not.toEqual(undefined); + expect(typeof model.prototype.hasTags).toEqual('function'); + expect(model.prototype.hasTags === TagsMixin.prototype.hasTags).toEqual(true); + + expect(model.prototype.tags).not.toEqual(undefined); + expect(typeof model.prototype.tags).toEqual('function'); + expect(model.prototype.tags === TagsMixin.prototype.tags).toEqual(true); + }); + }); +} diff --git a/test/models/mixins/specification-extensions.spec.ts b/test/models/mixins/specification-extensions.spec.ts new file mode 100644 index 000000000..3b08b33ab --- /dev/null +++ b/test/models/mixins/specification-extensions.spec.ts @@ -0,0 +1,60 @@ +import { BaseModel } from '../../../src/models/base'; +import { Mixin, SpecificationExtensionsMixin } from '../../../src/models/mixins'; + +class Model extends Mixin(BaseModel, SpecificationExtensionsMixin) {}; + +const doc1 = { 'x-test': 'testing', test: 'testing' }; +const doc2 = { test: 'testing' }; +const doc3 = {}; +const d1 = new Model(doc1); +const d2 = new Model(doc2); +const d3 = new Model(doc3); + +describe('SpecificationExtensions mixin', function() { + describe('.hasExtensions()', function() { + it('should return a boolean indicating if the object has extensions', function() { + expect(d1.hasExtensions()).toEqual(true); + expect(d2.hasExtensions()).toEqual(false); + expect(d3.hasExtensions()).toEqual(false); + }); + + it('should return a boolean indicating if the object has appropriate extension by key', function() { + expect(d1.hasExtensions('x-test')).toEqual(true); + expect(d1.hasExtensions('x-test2')).toEqual(false); + expect(d2.hasExtensions('x-test')).toEqual(false); + expect(d3.hasExtensions('x-test')).toEqual(false); + }); + + it('should return a boolean indicating if the object has appropriate extension by key (without x- prefix)', function() { + expect(d1.hasExtensions('test')).toEqual(true); + expect(d1.hasExtensions('test2')).toEqual(false); + expect(d2.hasExtensions('test')).toEqual(false); + expect(d3.hasExtensions('test')).toEqual(false); + }); + }); + + describe('.extensions()', function() { + it('should return a object with extensions', function() { + expect(d1.extensions()).toEqual({ 'x-test': 'testing' }); + }); + + it('should return a empty object', function() { + expect(d2.extensions()).toEqual({}); + expect(d3.extensions()).toEqual({}); + }); + + it('should return a value by key', function() { + expect(d1.extensions('x-test')).toEqual('testing'); + }); + + it('should return a value by key (without x- prefix)', function() { + expect(d1.extensions('test')).toEqual('testing'); + }); + + it('should return an undefined', function() { + expect(d1.extensions('x-test2')).toEqual(undefined); + expect(d2.extensions('x-test')).toEqual(undefined); + expect(d3.extensions('x-test')).toEqual(undefined); + }); + }); +}); diff --git a/test/models/mixins/tags.spec.ts b/test/models/mixins/tags.spec.ts new file mode 100644 index 000000000..c1389391d --- /dev/null +++ b/test/models/mixins/tags.spec.ts @@ -0,0 +1,55 @@ +import { BaseModel } from '../../../src/models/base'; +import { Mixin, TagsMixin } from '../../../src/models/mixins'; + +class Model extends Mixin(BaseModel, TagsMixin) {}; + +const doc1 = { tags: [{ name: 'test1' }, { name: 'test2' }] }; +const doc2 = { tags: [] }; +const doc3 = {}; +const d1 = new Model(doc1); +const d2 = new Model(doc2); +const d3 = new Model(doc3); + +describe('Tags mixin', function() { + describe('#hasTags()', function() { + it('should return a boolean indicating if the object has tags', function() { + expect(d1.hasTags()).toEqual(true); + expect(d2.hasTags()).toEqual(false); + expect(d3.hasTags()).toEqual(false); + }); + + it('should return a boolean indicating if the tags object has appropriate tag by name', function() { + expect(d1.hasTags('test1')).toEqual(true); + expect(d1.hasTags('test2')).toEqual(true); + expect(d1.hasTags('test3')).toEqual(false); + expect(d2.hasTags('test1')).toEqual(false); + expect(d3.hasTags('test1')).toEqual(false); + }); + }); + + describe('#tags()', function() { + it('should return an array of tag objects', function() { + expect(Array.isArray(d1.tags())).toEqual(true); + d1.tags().forEach((tag, i) => { + expect(tag).toEqual(doc1.tags[i]); + }); + }); + + it('should return an empty array', function() { + expect(d2.tags()).toEqual([]); + expect(d3.tags()).toEqual([]); + }); + + it('should return a tag object', function() { + expect(d1.tags('test1')).not.toEqual(undefined); + expect(d1.tags('test1')).toEqual(doc1.tags[0]); + expect(d1.tags('test2')).not.toEqual(undefined); + expect(d1.tags('test2')).toEqual(doc1.tags[1]); + }); + it('should return a undefined', function() { + expect(d1.tags('test3')).toEqual(undefined); + expect(d2.tags('test1')).toEqual(undefined); + expect(d3.tags('test1')).toEqual(undefined); + }); + }); +}); diff --git a/test/models/v2/asyncapi.spec.ts b/test/models/v2/asyncapi.spec.ts index cad7e418f..662938fd0 100644 --- a/test/models/v2/asyncapi.spec.ts +++ b/test/models/v2/asyncapi.spec.ts @@ -1,5 +1,11 @@ import { newAsyncAPIDocument, AsyncAPIDocumentV2, InfoV2, AsyncAPIDocumentV3 } from '../../../src/models'; +import { + assertExternalDocsMixinInheritance, + assertSpecificationExtensionsMixinInheritance, + assertTagsMixinInheritance, +} from '../mixins/inheritance'; + describe('AsyncAPIDocument model', function() { describe('.version()', function() { it('should return the value', function() { @@ -22,6 +28,12 @@ describe('AsyncAPIDocument model', function() { expect(d.info() instanceof InfoV2).toBeTruthy(); }); }); + + describe('mixins', function() { + assertExternalDocsMixinInheritance(AsyncAPIDocumentV2); + assertSpecificationExtensionsMixinInheritance(AsyncAPIDocumentV2); + assertTagsMixinInheritance(AsyncAPIDocumentV2); + }); }); describe('AsyncAPIDocument factory', function() { @@ -31,12 +43,14 @@ describe('AsyncAPIDocument factory', function() { expect(d.version()).toEqual(doc.asyncapi); expect(d).toBeInstanceOf(AsyncAPIDocumentV2); }); + it('should create a valid document from v3.0.0', function() { const doc = { asyncapi: "3.0.0" }; const d = newAsyncAPIDocument(doc) expect(d.version()).toEqual(doc.asyncapi); expect(d).toBeInstanceOf(AsyncAPIDocumentV3); }); + it('should fail trying to create a document from a non supported spec version', function() { const doc = { asyncapi: "99.99.99" }; expect(() => newAsyncAPIDocument(doc)).toThrow("Unsupported version: 99.99.99"); From 2c60eae70d55a52b1646ef6439b05a92db511e30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Mon, 21 Mar 2022 13:25:54 +0100 Subject: [PATCH 012/126] refactor: adjust mixins to the IntentAPI (#499) --- src/models/asyncapi.ts | 9 +-- src/models/binding.ts | 8 ++ src/models/bindings.ts | 4 + src/models/collection.ts | 20 +++++ src/models/contact.ts | 15 ++-- src/models/extension.ts | 7 ++ src/models/extensions.ts | 4 + src/models/external-docs.ts | 8 ++ src/models/info.ts | 28 ++++--- src/models/license.ts | 13 +-- src/models/mixins.ts | 26 ++++++ src/models/mixins/bindings.ts | 33 -------- src/models/mixins/external-docs.ts | 17 ---- src/models/mixins/specification-extensions.ts | 39 --------- src/models/mixins/tags.ts | 36 --------- src/models/tag.ts | 8 ++ src/models/tags.ts | 4 + src/models/{mixins/index.ts => utils.ts} | 20 ++--- src/models/v2/asyncapi.ts | 14 ++-- src/models/v2/contact.ts | 38 ++++++--- src/models/v2/index.ts | 6 +- src/models/v2/info.ts | 72 ++++++++++++----- src/models/v2/license.ts | 24 ++++-- src/models/v2/mixins/bindings.ts | 51 ++++++++++++ src/models/{ => v2}/mixins/description.ts | 9 +-- src/models/v2/mixins/extensions.ts | 51 ++++++++++++ src/models/v2/mixins/external-docs.ts | 30 +++++++ src/models/v2/mixins/tags.ts | 37 +++++++++ src/models/v3/asyncapi.ts | 5 +- src/models/v3/contact.ts | 38 ++++++--- src/models/v3/index.ts | 6 +- src/models/v3/info.ts | 72 ++++++++++++----- src/models/v3/license.ts | 24 ++++-- src/models/v3/mixins/bindings.ts | 51 ++++++++++++ src/models/v3/mixins/description.ts | 13 +++ src/models/v3/mixins/extensions.ts | 51 ++++++++++++ src/models/v3/mixins/external-docs.ts | 30 +++++++ src/models/v3/mixins/tags.ts | 37 +++++++++ test/models/collection.spec.ts | 79 ++++++++++++++++++ test/models/mixins/bindings.spec.ts | 49 ------------ test/models/mixins/external-docs.spec.ts | 36 --------- .../mixins/specification-extensions.spec.ts | 60 -------------- test/models/mixins/tags.spec.ts | 55 ------------- test/models/v2/asyncapi.spec.ts | 12 +-- test/models/v2/contact.spec.ts | 50 ++++++++++++ test/models/v2/external-docs.spec.ts | 21 +++++ test/models/v2/info.spec.ts | 80 +++++++++++++------ test/models/v2/license.spec.ts | 24 +++++- test/models/v2/mixins/bindings.spec.ts | 25 ++++++ .../{ => v2}/mixins/description.spec.ts | 23 +++--- test/models/v2/mixins/extensions.spec.ts | 25 ++++++ test/models/v2/mixins/external-docs.spec.ts | 36 +++++++++ test/models/{ => v2}/mixins/inheritance.ts | 54 +++++-------- test/models/v2/mixins/tags.spec.ts | 25 ++++++ test/models/v2/tag.spec.ts | 23 ++++++ 55 files changed, 1091 insertions(+), 544 deletions(-) create mode 100644 src/models/binding.ts create mode 100644 src/models/bindings.ts create mode 100644 src/models/collection.ts create mode 100644 src/models/extension.ts create mode 100644 src/models/extensions.ts create mode 100644 src/models/external-docs.ts create mode 100644 src/models/mixins.ts delete mode 100644 src/models/mixins/bindings.ts delete mode 100644 src/models/mixins/external-docs.ts delete mode 100644 src/models/mixins/specification-extensions.ts delete mode 100644 src/models/mixins/tags.ts create mode 100644 src/models/tag.ts create mode 100644 src/models/tags.ts rename src/models/{mixins/index.ts => utils.ts} (68%) create mode 100644 src/models/v2/mixins/bindings.ts rename src/models/{ => v2}/mixins/description.ts (61%) create mode 100644 src/models/v2/mixins/extensions.ts create mode 100644 src/models/v2/mixins/external-docs.ts create mode 100644 src/models/v2/mixins/tags.ts create mode 100644 src/models/v3/mixins/bindings.ts create mode 100644 src/models/v3/mixins/description.ts create mode 100644 src/models/v3/mixins/extensions.ts create mode 100644 src/models/v3/mixins/external-docs.ts create mode 100644 src/models/v3/mixins/tags.ts create mode 100644 test/models/collection.spec.ts delete mode 100644 test/models/mixins/bindings.spec.ts delete mode 100644 test/models/mixins/external-docs.spec.ts delete mode 100644 test/models/mixins/specification-extensions.spec.ts delete mode 100644 test/models/mixins/tags.spec.ts create mode 100644 test/models/v2/external-docs.spec.ts create mode 100644 test/models/v2/mixins/bindings.spec.ts rename test/models/{ => v2}/mixins/description.spec.ts (60%) create mode 100644 test/models/v2/mixins/extensions.spec.ts create mode 100644 test/models/v2/mixins/external-docs.spec.ts rename test/models/{ => v2}/mixins/inheritance.ts (61%) create mode 100644 test/models/v2/mixins/tags.spec.ts create mode 100644 test/models/v2/tag.spec.ts diff --git a/src/models/asyncapi.ts b/src/models/asyncapi.ts index e5f95f030..6fb68a1ab 100644 --- a/src/models/asyncapi.ts +++ b/src/models/asyncapi.ts @@ -1,12 +1,11 @@ -import { InfoInterface } from "./info"; -import { BaseModel } from "./base"; - import { AsyncAPIDocumentV2 } from "./v2"; import { AsyncAPIDocumentV3 } from "./v3"; -import { ExternalDocsMixinInterface, SpecificationExtensionsMixinInterface, TagsMixinInterface } from "./mixins"; +import type { InfoInterface } from "./info"; +import type { BaseModel } from "./base"; +import type { ExtensionsMixinInterface } from "./mixins"; -export interface AsyncAPIDocumentInterface extends BaseModel, ExternalDocsMixinInterface, SpecificationExtensionsMixinInterface, TagsMixinInterface { +export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInterface { version(): string; info(): InfoInterface; } diff --git a/src/models/binding.ts b/src/models/binding.ts new file mode 100644 index 000000000..298c1eeb7 --- /dev/null +++ b/src/models/binding.ts @@ -0,0 +1,8 @@ +import type { BaseModel } from "./base"; +import type { ExtensionsMixinInterface } from './mixins'; + +export interface BindingInterface extends BaseModel, ExtensionsMixinInterface { + protocol(): string; + version(): string; + value(): any; +} \ No newline at end of file diff --git a/src/models/bindings.ts b/src/models/bindings.ts new file mode 100644 index 000000000..9902a9c78 --- /dev/null +++ b/src/models/bindings.ts @@ -0,0 +1,4 @@ +import type { Collection } from './collection'; +import type { BindingInterface } from './binding'; + +export interface BindingsInterface extends Collection {} \ No newline at end of file diff --git a/src/models/collection.ts b/src/models/collection.ts new file mode 100644 index 000000000..9e8c89604 --- /dev/null +++ b/src/models/collection.ts @@ -0,0 +1,20 @@ +import type { BaseModel } from "./base"; + +export abstract class Collection extends Array { + constructor( + protected readonly collections: T[] + ) { + super(...collections); + } + + abstract get(id: string): T | undefined; + abstract has(id: string): boolean; + + all(): T[] { + return this.collections; + } + + isEmpty(): boolean { + return this.collections.length === 0; + } +} \ No newline at end of file diff --git a/src/models/contact.ts b/src/models/contact.ts index 7564d384d..709299095 100644 --- a/src/models/contact.ts +++ b/src/models/contact.ts @@ -1,7 +1,12 @@ -import { BaseModel } from "./base"; +import type { BaseModel } from "./base"; -export interface ContactInterface extends BaseModel { - name(): string; - url(): string; - email(): string; +import type { ExtensionsMixinInterface } from "./mixins"; + +export interface ContactInterface extends BaseModel, ExtensionsMixinInterface { + hasName(): boolean; + name(): string | undefined; + hasUrl(): boolean; + url(): string | undefined; + hasEmail(): boolean; + email(): string | undefined; } \ No newline at end of file diff --git a/src/models/extension.ts b/src/models/extension.ts new file mode 100644 index 000000000..a21d16024 --- /dev/null +++ b/src/models/extension.ts @@ -0,0 +1,7 @@ +import type { BaseModel } from "./base"; + +export interface ExtensionInterface extends BaseModel { + id(): string; + version(): string; + value(): any; +} diff --git a/src/models/extensions.ts b/src/models/extensions.ts new file mode 100644 index 000000000..a1693ec6c --- /dev/null +++ b/src/models/extensions.ts @@ -0,0 +1,4 @@ +import type { Collection } from './collection'; +import type { ExtensionInterface } from './extension'; + +export interface ExtensionsInterface extends Collection {} \ No newline at end of file diff --git a/src/models/external-docs.ts b/src/models/external-docs.ts new file mode 100644 index 000000000..891d53392 --- /dev/null +++ b/src/models/external-docs.ts @@ -0,0 +1,8 @@ +import type { BaseModel } from "./base"; +import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins' + +export interface ExternalDocumentationInterface + extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { + + url(): string; +} \ No newline at end of file diff --git a/src/models/info.ts b/src/models/info.ts index 8909b8bfd..64c97df5a 100644 --- a/src/models/info.ts +++ b/src/models/info.ts @@ -1,12 +1,18 @@ -import { ContactInterface } from "./contact"; -import { LicenseInterface } from "./license"; -import { BaseModel } from "./base"; +import type { ContactInterface } from "./contact"; +import type { LicenseInterface } from "./license"; +import type { BaseModel } from "./base"; -export interface InfoInterface extends BaseModel { - title(): string; - version(): string; - description(): string; - termsOfService(): string; - contact(): ContactInterface | undefined; - license(): LicenseInterface | undefined; -} \ No newline at end of file +import type { DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from "./mixins"; + +export interface InfoInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { + title(): string; + version(): string; + hasId(): boolean; + id(): string | undefined; + hasTermsOfService(): boolean; + termsOfService(): string | undefined; + hasContact(): boolean; + contact(): ContactInterface | undefined; + hasLicense(): boolean; + license(): LicenseInterface | undefined; +} diff --git a/src/models/license.ts b/src/models/license.ts index aeb50ee7e..b98f88e2a 100644 --- a/src/models/license.ts +++ b/src/models/license.ts @@ -1,6 +1,9 @@ -import { BaseModel } from "./base"; +import type { BaseModel } from "./base"; -export interface LicenseInterface extends BaseModel { - name(): string; - url(): string; -} \ No newline at end of file +import type { ExtensionsMixinInterface } from "./mixins"; + +export interface LicenseInterface extends BaseModel, ExtensionsMixinInterface { + name(): string; + hasUrl(): boolean; + url(): string | undefined; +} diff --git a/src/models/mixins.ts b/src/models/mixins.ts new file mode 100644 index 000000000..7cd305208 --- /dev/null +++ b/src/models/mixins.ts @@ -0,0 +1,26 @@ +import type { BindingsInterface } from './bindings'; +import type { ExtensionsInterface } from './extensions'; +import type { ExternalDocumentationInterface } from './external-docs'; +import type { TagsInterface } from './tags'; + +export interface BindingsMixinInterface { + bindings(): BindingsInterface; +} + +export interface DescriptionMixinInterface { + hasDescription(): boolean; + description(): string | undefined; +} + +export interface ExtensionsMixinInterface { + extensions(): ExtensionsInterface; +} + +export interface ExternalDocumentationMixinInterface { + hasExternalDocs(): boolean; + externalDocs(): ExternalDocumentationInterface | undefined; +} + +export interface TagsMixinInterface { + tags(): TagsInterface; +} \ No newline at end of file diff --git a/src/models/mixins/bindings.ts b/src/models/mixins/bindings.ts deleted file mode 100644 index 41ec9a5d0..000000000 --- a/src/models/mixins/bindings.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { BaseModel } from "../base"; - -export interface BindingsMixinInterface { - hasBindings(): boolean; - hasBindings(protocol: string): boolean; - bindings(): any[]; // TODO: Change type to Tag - bindings(protocol: string): any; // TODO: Change type to Tag -} - -export abstract class BindingsMixin extends BaseModel implements BindingsMixinInterface { - hasBindings(): boolean; - hasBindings(protocol: string): boolean; - hasBindings(protocol?: string): boolean { - const bindings = this.bindings(protocol!); - if (typeof protocol === 'string') { - return Boolean(bindings); - } - return Object.keys(bindings || {}).length > 0; - }; - - - bindings(): any[]; - bindings(protocol: string): any; - bindings(protocol?: string): any | any[] { - if (typeof protocol === 'string') { - if (this._json.bindings && typeof this._json.bindings === 'object') { - return this._json.bindings[protocol]; - } - return; - } - return this._json.bindings || {}; - }; -} diff --git a/src/models/mixins/external-docs.ts b/src/models/mixins/external-docs.ts deleted file mode 100644 index 6dd0e3969..000000000 --- a/src/models/mixins/external-docs.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { BaseModel } from "../base"; - -export interface ExternalDocsMixinInterface { - hasExternalDocs(): boolean; - externalDocs(): any; // TODO: Change type to ExternalDocs -} - -export abstract class ExternalDocsMixin extends BaseModel implements ExternalDocsMixinInterface { - hasExternalDocs(): boolean { - return !!(this._json.externalDocs && Object.keys(this._json.externalDocs).length); - }; - - // TODO: implement it when the ExternalDocs class will be implemented - externalDocs(): any { - return; - }; -} diff --git a/src/models/mixins/specification-extensions.ts b/src/models/mixins/specification-extensions.ts deleted file mode 100644 index 873e2fe45..000000000 --- a/src/models/mixins/specification-extensions.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { BaseModel } from "../base"; - -import { EXTENSION_REGEX } from '../../constants'; - -export interface SpecificationExtensionsMixinInterface { - hasExtensions(): boolean; - hasExtensions(name: string): boolean; - extensions(): Record; - extensions(name: string): any; -} - -export abstract class SpecificationExtensionsMixin extends BaseModel implements SpecificationExtensionsMixinInterface { - hasExtensions(): boolean; - hasExtensions(name: string): boolean; - hasExtensions(name?: string): boolean { - const extensions = this.extensions(name!); - if (typeof name === 'string') { - return Boolean(extensions); - } - return Object.keys(extensions || {}).length > 0; - }; - - extensions(): any[]; - extensions(name: string): any; - extensions(name?: string): any | any[] { - if (typeof name === 'string') { - name = name.startsWith('x-') ? name : `x-${name}`; - return this._json[name]; - } - - const result: Record = {}; - Object.entries(this._json).forEach(([key, value]) => { - if (EXTENSION_REGEX.test(key)) { - result[String(key)] = value; - } - }); - return result; - }; -} diff --git a/src/models/mixins/tags.ts b/src/models/mixins/tags.ts deleted file mode 100644 index 2554b39a3..000000000 --- a/src/models/mixins/tags.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { BaseModel } from "../base"; - -export interface TagsMixinInterface { - hasTags(): boolean; - hasTags(name: string): boolean; - tags(): any[]; // TODO: Change type to Tag - tags(name: string): any; // TODO: Change type to Tag -} - -export abstract class TagsMixin extends BaseModel implements TagsMixinInterface { - hasTags(): boolean; - hasTags(name: string): boolean; - hasTags(name?: string): boolean { - if (!Array.isArray(this._json.tags) || !this._json.tags.length) { - return false; - } - if (typeof name === 'string') { - return this._json.tags.some((t: any) => t.name === name); - } - return true; - }; - - - // TODO: return instance(s) of Tag model when the Tag class will be implemented - tags(): any[]; // TODO: Change type to Tag - tags(name: string): any; // TODO: Change type to Tag - tags(name?: string): any | any[] { // TODO: Change type to Tag - if (typeof name === 'string') { - if (Array.isArray(this._json.tags)) { - return this._json.tags.find((t: any) => t.name === name); - } - return; - } - return this._json.tags || []; - }; -} diff --git a/src/models/tag.ts b/src/models/tag.ts new file mode 100644 index 000000000..32bd1fcea --- /dev/null +++ b/src/models/tag.ts @@ -0,0 +1,8 @@ +import type { BaseModel } from "./base"; +import type { DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface } from './mixins' + +export interface TagInterface + extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface { + + name(): string; +} \ No newline at end of file diff --git a/src/models/tags.ts b/src/models/tags.ts new file mode 100644 index 000000000..ceaa5df2b --- /dev/null +++ b/src/models/tags.ts @@ -0,0 +1,4 @@ +import type { Collection } from './collection'; +import type { TagInterface } from './tag'; + +export interface TagsInterface extends Collection {} \ No newline at end of file diff --git a/src/models/mixins/index.ts b/src/models/utils.ts similarity index 68% rename from src/models/mixins/index.ts rename to src/models/utils.ts index 6a3397514..0b73d948a 100644 --- a/src/models/mixins/index.ts +++ b/src/models/utils.ts @@ -1,10 +1,4 @@ -import type { BaseModel } from '../base'; - -export * from './bindings'; -export * from './description'; -export * from './external-docs'; -export * from './specification-extensions'; -export * from './tags'; +import type { BaseModel } from './base'; export interface Constructor extends Function { new (...any: any[]): T; @@ -18,22 +12,22 @@ export function Mixin(a: typeof BaseModel): typeof BaseModel; export function Mixin(a: typeof BaseModel, b: MixinType): typeof BaseModel & Constructor; export function Mixin(a: typeof BaseModel, b: MixinType, c: MixinType): typeof BaseModel & Constructor & Constructor; export function Mixin(a: typeof BaseModel, b: MixinType, c: MixinType, d: MixinType): typeof BaseModel & Constructor & Constructor & Constructor; -export function Mixin(a: typeof BaseModel, b: MixinType, c: MixinType, d: MixinType, e: MixinType): typeof BaseModel & Constructor & Constructor & Constructor & Constructor; +export function Mixin(a: typeof BaseModel, b: MixinType, c: MixinType, d: MixinType, e: MixinType): typeof BaseModel & Constructor & Constructor & Constructor & Constructor; export function Mixin(a: typeof BaseModel, b: MixinType, c: MixinType, d: MixinType, e: MixinType, f: MixinType): typeof BaseModel & Constructor & Constructor & Constructor & Constructor & Constructor; -export function Mixin(baseModel: typeof BaseModel, ...constructors: any[]) { - return mixin(class extends baseModel {}, constructors); +export function Mixin(baseCtor: typeof BaseModel, ...constructors: any[]) { + return mixin(class extends baseCtor {}, constructors); } function mixin(derivedCtor: any, constructors: any[]): typeof BaseModel { - constructors.forEach((baseCtor) => { - Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => { + constructors.forEach((ctor) => { + Object.getOwnPropertyNames(ctor.prototype).forEach((name) => { if (name === 'constructor') { return; } Object.defineProperty( derivedCtor.prototype, name, - Object.getOwnPropertyDescriptor(baseCtor.prototype, name) || Object.create(null), + Object.getOwnPropertyDescriptor(ctor.prototype, name) || Object.create(null), ); }); }); diff --git a/src/models/v2/asyncapi.ts b/src/models/v2/asyncapi.ts index 7614fd5fc..e690f3fcb 100644 --- a/src/models/v2/asyncapi.ts +++ b/src/models/v2/asyncapi.ts @@ -1,18 +1,20 @@ -import { AsyncAPIDocumentInterface } from "../../models"; import { BaseModel } from "../base"; import { Info } from "./info"; -import { Mixin, ExternalDocsMixin, SpecificationExtensionsMixin, TagsMixin } from '../mixins'; +import { Mixin } from '../utils'; +import { ExtensionsMixin } from './mixins/extensions'; + +import { AsyncAPIDocumentInterface, InfoInterface } from "../../models"; export class AsyncAPIDocument - extends Mixin(BaseModel, ExternalDocsMixin, SpecificationExtensionsMixin, TagsMixin) + extends Mixin(BaseModel, ExtensionsMixin) implements AsyncAPIDocumentInterface { version(): string { - return this.json("asyncapi"); + return this._json.asyncapi; } - info(): Info { - return new Info(this.json("info")); + info(): InfoInterface { + return new Info(this._json.info); } } diff --git a/src/models/v2/contact.ts b/src/models/v2/contact.ts index d16af7df3..c7ecb5122 100644 --- a/src/models/v2/contact.ts +++ b/src/models/v2/contact.ts @@ -1,16 +1,32 @@ -import { ContactInterface } from "../../models/contact"; import { BaseModel } from "../base"; -export class Contact extends BaseModel implements ContactInterface { - name(): string { - return this.json("name"); - } +import { Mixin } from '../utils'; +import { ExtensionsMixin } from './mixins/extensions'; - url(): string { - return this.json("url"); - } +import type { ContactInterface } from "../../models/contact"; - email(): string { - return this.json("email"); - } +export class Contact extends Mixin(BaseModel, ExtensionsMixin) implements ContactInterface { + hasName(): boolean { + return !!this._json.name; + } + + name(): string | undefined { + return this._json.name; + } + + hasUrl(): boolean { + return !!this._json.url; + } + + url(): string | undefined { + return this._json.url; + } + + hasEmail(): boolean { + return !!this._json.email; + } + + email(): string | undefined { + return this._json.email; + } } \ No newline at end of file diff --git a/src/models/v2/index.ts b/src/models/v2/index.ts index a06d7d121..34c57b438 100644 --- a/src/models/v2/index.ts +++ b/src/models/v2/index.ts @@ -1,4 +1,8 @@ export { AsyncAPIDocument as AsyncAPIDocumentV2 } from './asyncapi'; export { Contact as ContactV2 } from './contact'; export { Info as InfoV2 } from './info'; -export { License as LicenseV2 } from './license'; \ No newline at end of file +export { License as LicenseV2 } from './license'; +export { Bindings as BindingsV2, Binding as BindingV2 } from './mixins/bindings'; +export { Extensions as ExtensionsV2, Extension as ExtensionV2 } from './mixins/extensions'; +export { ExternalDocumentation as ExternalDocumentationV2 } from './mixins/external-docs'; +export { Tags as TagsV2, Tag as TagV2 } from './mixins/tags'; \ No newline at end of file diff --git a/src/models/v2/info.ts b/src/models/v2/info.ts index d6f594e8b..9c12dd292 100644 --- a/src/models/v2/info.ts +++ b/src/models/v2/info.ts @@ -1,32 +1,60 @@ -import { InfoInterface } from "../../models/info"; import { BaseModel } from "../base"; import { Contact } from "./contact"; import { License } from "./license"; -export class Info extends BaseModel implements InfoInterface { - title(): string { - return this.json("title"); - } +import { Mixin } from '../utils'; +import { DescriptionMixin } from './mixins/description'; +import { ExtensionsMixin } from './mixins/extensions'; +import { ExternalDocumentationMixin } from './mixins/external-docs'; +import { TagsMixin } from './mixins/tags'; - version(): string { - return this.json("version"); - } +import type { InfoInterface } from "../../models/info"; - description(): string { - return this.json("description"); - } +export class Info + extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin, ExternalDocumentationMixin, TagsMixin) + implements InfoInterface { - termsOfService(): string { - return this.json("termsOfService"); - } + title(): string { + return this._json.title; + } - contact(): Contact | undefined { - const doc = this.json("contact"); - return doc && new Contact(doc); - } + version(): string { + return this._json.version; + } - license(): License | undefined { - const doc = this.json("license"); - return doc && new License(doc); - } + // TODO: Implement it + id(): string | undefined { + return; + } + + // TODO: Implement it + hasId(): boolean { + return true; + } + + hasTermsOfService(): boolean { + return !!this._json.termsOfService; + } + + termsOfService(): string | undefined { + return this._json.termsOfService; + } + + hasContact(): boolean { + return Object.keys(this._json.contact || {}).length > 0; + } + + contact(): Contact | undefined { + const contact = this._json.contact; + return contact && new Contact(contact); + } + + hasLicense(): boolean { + return Object.keys(this._json.license || {}).length > 0; + } + + license(): License | undefined { + const license = this._json.license; + return license && new License(license); + } } \ No newline at end of file diff --git a/src/models/v2/license.ts b/src/models/v2/license.ts index 67eb74d97..834f43b29 100644 --- a/src/models/v2/license.ts +++ b/src/models/v2/license.ts @@ -1,12 +1,20 @@ -import { LicenseInterface } from "../../models/license"; import { BaseModel } from "../base"; -export class License extends BaseModel implements LicenseInterface { - name(): string { - return this.json("name"); - } +import { Mixin } from '../utils'; +import { ExtensionsMixin } from './mixins/extensions'; - url(): string { - return this.json("url"); - } +import type { LicenseInterface } from "../../models/license"; + +export class License extends Mixin(BaseModel, ExtensionsMixin) implements LicenseInterface { + name(): string { + return this._json.name; + } + + hasUrl(): boolean { + return !!this._json.url; + } + + url(): string | undefined { + return this._json.url; + } } \ No newline at end of file diff --git a/src/models/v2/mixins/bindings.ts b/src/models/v2/mixins/bindings.ts new file mode 100644 index 000000000..13dd7a228 --- /dev/null +++ b/src/models/v2/mixins/bindings.ts @@ -0,0 +1,51 @@ +import { BaseModel } from "../../base"; +import { Collection } from '../../collection'; + +import { Mixin } from '../../utils'; +import { ExtensionsMixin } from './extensions'; + +import type { BindingsMixinInterface } from "../../mixins"; +import type { BindingsInterface } from "../../bindings"; +import type { BindingInterface } from "../../binding"; + +export class Binding extends Mixin(BaseModel, ExtensionsMixin) implements BindingInterface { + constructor( + private readonly _protocol: string, + _json: Record, + ) { + super(_json); + } + + protocol(): string { + return this._protocol; + } + + version(): string { + return this._json.bindingVersion; + } + + value(): any { + const value = { ...this._json }; + delete value.bindingVersion; + return value; + } +} + +export class Bindings extends Collection implements BindingsInterface { + override get(name: string): BindingInterface | undefined { + return this.collections.find(binding => binding.protocol() === name); + }; + + override has(name: string): boolean { + return this.collections.some(binding => binding.protocol() === name); + }; +} + +export abstract class BindingsMixin extends BaseModel implements BindingsMixinInterface { + bindings(): BindingsInterface { + const bindings: Record = this._json.bindings || {}; + return new Bindings( + Object.entries(bindings).map(([protocol, binding]) => new Binding(protocol, binding)) + ); + } +} diff --git a/src/models/mixins/description.ts b/src/models/v2/mixins/description.ts similarity index 61% rename from src/models/mixins/description.ts rename to src/models/v2/mixins/description.ts index f97746b3f..c60f5c8e7 100644 --- a/src/models/mixins/description.ts +++ b/src/models/v2/mixins/description.ts @@ -1,9 +1,6 @@ -import { BaseModel } from "../base"; +import { BaseModel } from "../../base"; -export interface DescriptionMixinInterface { - hasDescription(): boolean; - description(): string | undefined; -} +import type { DescriptionMixinInterface } from "../../mixins"; export abstract class DescriptionMixin extends BaseModel implements DescriptionMixinInterface { hasDescription() { @@ -13,4 +10,4 @@ export abstract class DescriptionMixin extends BaseModel implements DescriptionM description(): string | undefined { return this._json.description; } -} +} \ No newline at end of file diff --git a/src/models/v2/mixins/extensions.ts b/src/models/v2/mixins/extensions.ts new file mode 100644 index 000000000..61ee70409 --- /dev/null +++ b/src/models/v2/mixins/extensions.ts @@ -0,0 +1,51 @@ +import { Collection } from '../../collection'; +import { BaseModel } from "../../base"; + +import type { ExtensionsMixinInterface } from "../../mixins"; +import type { ExtensionsInterface } from "../../extensions"; +import type { ExtensionInterface } from "../../extension"; + +import { EXTENSION_REGEX } from '../../../constants'; + +export class Extension extends BaseModel implements ExtensionInterface { + constructor( + private readonly _id: string, + _json: Record, + ) { + super(_json); + } + + id(): string { + return this._id; + } + + version(): string { + return 'to implement'; + } + + value(): any { + return this._json; + } +} + +export class Extensions extends Collection implements ExtensionsInterface { + override get(name: string): ExtensionInterface | undefined { + return this.collections.find(ext => ext.id() === name); + }; + + override has(name: string): boolean { + return this.collections.some(ext => ext.id() === name); + }; +} + +export abstract class ExtensionsMixin extends BaseModel implements ExtensionsMixinInterface { + extensions(): ExtensionsInterface { + const extensions: Extension[] = []; + Object.entries(this._json).forEach(([key, value]) => { + if (EXTENSION_REGEX.test(key)) { + extensions.push(new Extension(key, value)); + } + }); + return new Extensions(extensions); + }; +} \ No newline at end of file diff --git a/src/models/v2/mixins/external-docs.ts b/src/models/v2/mixins/external-docs.ts new file mode 100644 index 000000000..d400201ca --- /dev/null +++ b/src/models/v2/mixins/external-docs.ts @@ -0,0 +1,30 @@ +import { BaseModel } from "../../base"; + +import { Mixin } from '../../utils'; +import { DescriptionMixin } from './description'; +import { ExtensionsMixin } from './extensions'; + +import type { ExternalDocumentationInterface } from '../../external-docs'; +import type { ExternalDocumentationMixinInterface } from "../../mixins"; + +export class ExternalDocumentation + extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) + implements ExternalDocumentationInterface { + + url(): string { + return this._json.url; + } +} + +export abstract class ExternalDocumentationMixin extends BaseModel implements ExternalDocumentationMixinInterface { + hasExternalDocs(): boolean { + return Object.keys(this._json.externalDocs || {}).length > 0; + }; + + externalDocs(): ExternalDocumentationInterface | undefined { + if (this.hasExternalDocs()) { + return new ExternalDocumentation(this._json.externalDocs); + } + return; + }; +} \ No newline at end of file diff --git a/src/models/v2/mixins/tags.ts b/src/models/v2/mixins/tags.ts new file mode 100644 index 000000000..6cdee98b9 --- /dev/null +++ b/src/models/v2/mixins/tags.ts @@ -0,0 +1,37 @@ +import { BaseModel } from "../../base"; +import { Collection } from "../../collection"; + +import { Mixin } from '../../utils'; +import { DescriptionMixin } from './description'; +import { ExtensionsMixin } from './extensions'; +import { ExternalDocumentationMixin } from './external-docs'; + +import type { TagsMixinInterface } from "../../mixins"; +import type { TagsInterface } from "../../tags"; +import type { TagInterface } from "../../tag"; + +export class Tag + extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin, ExternalDocumentationMixin) + implements TagInterface { + + name(): string { + return this._json.name; + } +} + +export class Tags extends Collection implements TagsInterface { + override get(name: string): TagInterface | undefined { + return this.collections.find(tag => tag.name() === name); + }; + + override has(name: string): boolean { + return this.collections.some(tag => tag.name() === name); + }; +} + +export abstract class TagsMixin extends BaseModel implements TagsMixinInterface { + tags(): TagsInterface { + const tags = this._json.tags || []; + return new Tags(tags.map((tag: any) => new Tag(tag))); + } +} \ No newline at end of file diff --git a/src/models/v3/asyncapi.ts b/src/models/v3/asyncapi.ts index 113a738fe..f48ee2ea6 100644 --- a/src/models/v3/asyncapi.ts +++ b/src/models/v3/asyncapi.ts @@ -2,10 +2,11 @@ import { AsyncAPIDocumentInterface } from "../../models/asyncapi"; import { BaseModel } from "../base"; import { Info } from "./info"; -import { Mixin, ExternalDocsMixin, SpecificationExtensionsMixin, TagsMixin } from '../mixins'; +import { Mixin } from '../utils'; +import { ExtensionsMixin } from './mixins/extensions'; export class AsyncAPIDocument - extends Mixin(BaseModel, ExternalDocsMixin, SpecificationExtensionsMixin, TagsMixin) + extends Mixin(BaseModel, ExtensionsMixin) implements AsyncAPIDocumentInterface { version(): string { diff --git a/src/models/v3/contact.ts b/src/models/v3/contact.ts index d16af7df3..c7ecb5122 100644 --- a/src/models/v3/contact.ts +++ b/src/models/v3/contact.ts @@ -1,16 +1,32 @@ -import { ContactInterface } from "../../models/contact"; import { BaseModel } from "../base"; -export class Contact extends BaseModel implements ContactInterface { - name(): string { - return this.json("name"); - } +import { Mixin } from '../utils'; +import { ExtensionsMixin } from './mixins/extensions'; - url(): string { - return this.json("url"); - } +import type { ContactInterface } from "../../models/contact"; - email(): string { - return this.json("email"); - } +export class Contact extends Mixin(BaseModel, ExtensionsMixin) implements ContactInterface { + hasName(): boolean { + return !!this._json.name; + } + + name(): string | undefined { + return this._json.name; + } + + hasUrl(): boolean { + return !!this._json.url; + } + + url(): string | undefined { + return this._json.url; + } + + hasEmail(): boolean { + return !!this._json.email; + } + + email(): string | undefined { + return this._json.email; + } } \ No newline at end of file diff --git a/src/models/v3/index.ts b/src/models/v3/index.ts index 7be2b264d..967ba16c8 100644 --- a/src/models/v3/index.ts +++ b/src/models/v3/index.ts @@ -1,4 +1,8 @@ export { AsyncAPIDocument as AsyncAPIDocumentV3 } from './asyncapi'; export { Contact as ContactV3 } from './contact'; export { Info as InfoV3 } from './info'; -export { License as LicenseV3 } from './license'; \ No newline at end of file +export { License as LicenseV3 } from './license'; +export { Bindings as BindingsV3, Binding as BindingV3 } from './mixins/bindings'; +export { Extensions as ExtensionsV3, Extension as ExtensionV3 } from './mixins/extensions'; +export { ExternalDocumentation as ExternalDocumentationV3 } from './mixins/external-docs'; +export { Tags as TagsV3, Tag as TagV3 } from './mixins/tags'; \ No newline at end of file diff --git a/src/models/v3/info.ts b/src/models/v3/info.ts index d6f594e8b..9c12dd292 100644 --- a/src/models/v3/info.ts +++ b/src/models/v3/info.ts @@ -1,32 +1,60 @@ -import { InfoInterface } from "../../models/info"; import { BaseModel } from "../base"; import { Contact } from "./contact"; import { License } from "./license"; -export class Info extends BaseModel implements InfoInterface { - title(): string { - return this.json("title"); - } +import { Mixin } from '../utils'; +import { DescriptionMixin } from './mixins/description'; +import { ExtensionsMixin } from './mixins/extensions'; +import { ExternalDocumentationMixin } from './mixins/external-docs'; +import { TagsMixin } from './mixins/tags'; - version(): string { - return this.json("version"); - } +import type { InfoInterface } from "../../models/info"; - description(): string { - return this.json("description"); - } +export class Info + extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin, ExternalDocumentationMixin, TagsMixin) + implements InfoInterface { - termsOfService(): string { - return this.json("termsOfService"); - } + title(): string { + return this._json.title; + } - contact(): Contact | undefined { - const doc = this.json("contact"); - return doc && new Contact(doc); - } + version(): string { + return this._json.version; + } - license(): License | undefined { - const doc = this.json("license"); - return doc && new License(doc); - } + // TODO: Implement it + id(): string | undefined { + return; + } + + // TODO: Implement it + hasId(): boolean { + return true; + } + + hasTermsOfService(): boolean { + return !!this._json.termsOfService; + } + + termsOfService(): string | undefined { + return this._json.termsOfService; + } + + hasContact(): boolean { + return Object.keys(this._json.contact || {}).length > 0; + } + + contact(): Contact | undefined { + const contact = this._json.contact; + return contact && new Contact(contact); + } + + hasLicense(): boolean { + return Object.keys(this._json.license || {}).length > 0; + } + + license(): License | undefined { + const license = this._json.license; + return license && new License(license); + } } \ No newline at end of file diff --git a/src/models/v3/license.ts b/src/models/v3/license.ts index 67eb74d97..834f43b29 100644 --- a/src/models/v3/license.ts +++ b/src/models/v3/license.ts @@ -1,12 +1,20 @@ -import { LicenseInterface } from "../../models/license"; import { BaseModel } from "../base"; -export class License extends BaseModel implements LicenseInterface { - name(): string { - return this.json("name"); - } +import { Mixin } from '../utils'; +import { ExtensionsMixin } from './mixins/extensions'; - url(): string { - return this.json("url"); - } +import type { LicenseInterface } from "../../models/license"; + +export class License extends Mixin(BaseModel, ExtensionsMixin) implements LicenseInterface { + name(): string { + return this._json.name; + } + + hasUrl(): boolean { + return !!this._json.url; + } + + url(): string | undefined { + return this._json.url; + } } \ No newline at end of file diff --git a/src/models/v3/mixins/bindings.ts b/src/models/v3/mixins/bindings.ts new file mode 100644 index 000000000..dc6770263 --- /dev/null +++ b/src/models/v3/mixins/bindings.ts @@ -0,0 +1,51 @@ +import { BaseModel } from "../../base"; +import { Collection } from '../../collection'; + +import { Mixin } from '../../utils'; +import { ExtensionsMixin } from './extensions'; + +import type { BindingsMixinInterface } from "../../mixins"; +import type { BindingsInterface } from "../../bindings"; +import type { BindingInterface } from "../../binding"; + +export class Binding extends Mixin(BaseModel, ExtensionsMixin) implements BindingInterface { + constructor( + private readonly _protocol: string, + _json: Record, + ) { + super(_json); + } + + protocol(): string { + return this._protocol; + } + + version(): string { + return this._json.bindingVersion; + } + + value(): any { + const value = { ...this._json }; + delete value.bindingVersion; + return value; + } +} + +export class Bindings extends Collection implements BindingsInterface { + override get(name: string): BindingInterface | undefined { + return this.collections.find(binding => binding.protocol() === name); + }; + + override has(name: string): boolean { + return this.collections.some(binding => binding.protocol() === name); + }; +} + +export abstract class BindingsMixin extends BaseModel implements BindingsMixinInterface { + bindings(): BindingsInterface { + const bindings: Record = this._json.bindings || {}; + return new Bindings( + Object.entries(bindings).map(([protocol, binding]) => new Binding(protocol, binding)) + ); + } +} \ No newline at end of file diff --git a/src/models/v3/mixins/description.ts b/src/models/v3/mixins/description.ts new file mode 100644 index 000000000..c60f5c8e7 --- /dev/null +++ b/src/models/v3/mixins/description.ts @@ -0,0 +1,13 @@ +import { BaseModel } from "../../base"; + +import type { DescriptionMixinInterface } from "../../mixins"; + +export abstract class DescriptionMixin extends BaseModel implements DescriptionMixinInterface { + hasDescription() { + return Boolean(this._json.description); + }; + + description(): string | undefined { + return this._json.description; + } +} \ No newline at end of file diff --git a/src/models/v3/mixins/extensions.ts b/src/models/v3/mixins/extensions.ts new file mode 100644 index 000000000..61ee70409 --- /dev/null +++ b/src/models/v3/mixins/extensions.ts @@ -0,0 +1,51 @@ +import { Collection } from '../../collection'; +import { BaseModel } from "../../base"; + +import type { ExtensionsMixinInterface } from "../../mixins"; +import type { ExtensionsInterface } from "../../extensions"; +import type { ExtensionInterface } from "../../extension"; + +import { EXTENSION_REGEX } from '../../../constants'; + +export class Extension extends BaseModel implements ExtensionInterface { + constructor( + private readonly _id: string, + _json: Record, + ) { + super(_json); + } + + id(): string { + return this._id; + } + + version(): string { + return 'to implement'; + } + + value(): any { + return this._json; + } +} + +export class Extensions extends Collection implements ExtensionsInterface { + override get(name: string): ExtensionInterface | undefined { + return this.collections.find(ext => ext.id() === name); + }; + + override has(name: string): boolean { + return this.collections.some(ext => ext.id() === name); + }; +} + +export abstract class ExtensionsMixin extends BaseModel implements ExtensionsMixinInterface { + extensions(): ExtensionsInterface { + const extensions: Extension[] = []; + Object.entries(this._json).forEach(([key, value]) => { + if (EXTENSION_REGEX.test(key)) { + extensions.push(new Extension(key, value)); + } + }); + return new Extensions(extensions); + }; +} \ No newline at end of file diff --git a/src/models/v3/mixins/external-docs.ts b/src/models/v3/mixins/external-docs.ts new file mode 100644 index 000000000..d400201ca --- /dev/null +++ b/src/models/v3/mixins/external-docs.ts @@ -0,0 +1,30 @@ +import { BaseModel } from "../../base"; + +import { Mixin } from '../../utils'; +import { DescriptionMixin } from './description'; +import { ExtensionsMixin } from './extensions'; + +import type { ExternalDocumentationInterface } from '../../external-docs'; +import type { ExternalDocumentationMixinInterface } from "../../mixins"; + +export class ExternalDocumentation + extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) + implements ExternalDocumentationInterface { + + url(): string { + return this._json.url; + } +} + +export abstract class ExternalDocumentationMixin extends BaseModel implements ExternalDocumentationMixinInterface { + hasExternalDocs(): boolean { + return Object.keys(this._json.externalDocs || {}).length > 0; + }; + + externalDocs(): ExternalDocumentationInterface | undefined { + if (this.hasExternalDocs()) { + return new ExternalDocumentation(this._json.externalDocs); + } + return; + }; +} \ No newline at end of file diff --git a/src/models/v3/mixins/tags.ts b/src/models/v3/mixins/tags.ts new file mode 100644 index 000000000..6cdee98b9 --- /dev/null +++ b/src/models/v3/mixins/tags.ts @@ -0,0 +1,37 @@ +import { BaseModel } from "../../base"; +import { Collection } from "../../collection"; + +import { Mixin } from '../../utils'; +import { DescriptionMixin } from './description'; +import { ExtensionsMixin } from './extensions'; +import { ExternalDocumentationMixin } from './external-docs'; + +import type { TagsMixinInterface } from "../../mixins"; +import type { TagsInterface } from "../../tags"; +import type { TagInterface } from "../../tag"; + +export class Tag + extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin, ExternalDocumentationMixin) + implements TagInterface { + + name(): string { + return this._json.name; + } +} + +export class Tags extends Collection implements TagsInterface { + override get(name: string): TagInterface | undefined { + return this.collections.find(tag => tag.name() === name); + }; + + override has(name: string): boolean { + return this.collections.some(tag => tag.name() === name); + }; +} + +export abstract class TagsMixin extends BaseModel implements TagsMixinInterface { + tags(): TagsInterface { + const tags = this._json.tags || []; + return new Tags(tags.map((tag: any) => new Tag(tag))); + } +} \ No newline at end of file diff --git a/test/models/collection.spec.ts b/test/models/collection.spec.ts new file mode 100644 index 000000000..f3a5e45bd --- /dev/null +++ b/test/models/collection.spec.ts @@ -0,0 +1,79 @@ +import { BaseModel } from '../../src/models/base'; +import { Collection } from '../../src/models/collection'; + +describe('Collection model', function() { + class ItemModel extends BaseModel { + name(): string | undefined { + return this._json.name; + } + }; + + class Model extends Collection { + override get(name: string): ItemModel | undefined { + return this.collections.find(item => item.name() === name); + }; + + override has(name: string): boolean { + return this.collections.some(item => item.name() === name); + }; + }; + + describe('.isEmpty()', function() { + it('should return true if collection is empty', function() { + const d = new Model([]); + expect(d.isEmpty()).toEqual(true); + }); + + it('should return false if collection is not empty', function() { + const doc = { name: 'name' }; + const item = new ItemModel(doc); + const d = new Model([item]); + expect(d.isEmpty()).toEqual(false); + }); + }); + + describe('.all()', function() { + it('should return the whole collections', function() { + const doc1 = { name: 'name1' }; + const doc2 = { name: 'name1' }; + const item1 = new ItemModel(doc1); + const item2 = new ItemModel(doc2); + const d = new Model([item1, item2]); + expect(d.all().length).toEqual(2); + expect(d.all()).toEqual([item1, item2]); + }); + }); + + describe('.has()', function() { + it('should return true if collection has given item', function() { + const doc = { name: 'name' }; + const item = new ItemModel(doc); + const d = new Model([item]); + expect(d.has('name')).toEqual(true); + }); + + it('should return false if collection has not given item', function() { + const doc = { name: 'name' }; + const item = new ItemModel(doc); + const d = new Model([item]); + expect(d.has('name1')).toEqual(false); + }); + }); + + describe('.get()', function() { + it('should return instance of ItemModel if collection has given item', function() { + const doc = { name: 'name' }; + const item = new ItemModel(doc); + const d = new Model([item]); + expect(d.get('name')).toBeInstanceOf(ItemModel); + expect(d.get('name')).toEqual(item); + }); + + it('should return undefined if collection has not given item', function() { + const doc = { name: 'name' }; + const item = new ItemModel(doc); + const d = new Model([item]); + expect(d.get('name1')).toEqual(undefined); + }); + }); +}); diff --git a/test/models/mixins/bindings.spec.ts b/test/models/mixins/bindings.spec.ts deleted file mode 100644 index 6438e391d..000000000 --- a/test/models/mixins/bindings.spec.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { BaseModel } from '../../../src/models/base'; -import { BindingsMixin, Mixin } from '../../../src/models/mixins'; - -class Model extends Mixin(BaseModel, BindingsMixin) {}; - -const doc1 = { bindings: { amqp: { test: 'test1' } } }; -const doc2 = { bindings: {} }; -const doc3 = {}; -const d1 = new Model(doc1); -const d2 = new Model(doc2); -const d3 = new Model(doc3); - -describe('Bindings mixin', function() { - describe('.hasBindings()', function() { - it('should return a boolean indicating if the object has bindings', function() { - expect(d1.hasBindings()).toEqual(true); - expect(d2.hasBindings()).toEqual(false); - expect(d3.hasBindings()).toEqual(false); - }); - - it('should return a boolean indicating if the bindings object has appropriate binding by name', function() { - expect(d1.hasBindings('amqp')).toEqual(true); - expect(d1.hasBindings('http')).toEqual(false); - expect(d2.hasBindings('amqp')).toEqual(false); - expect(d3.hasBindings('amqp')).toEqual(false); - }); - }); - - describe('.bindings()', function() { - it('should return a map of bindings', function() { - expect(d1.bindings()).toEqual(doc1.bindings); - }); - - it('should return an empty object', function() { - expect(d2.bindings()).toEqual({}); - expect(d3.bindings()).toEqual({}); - }); - - it('should return a binding object', function() { - expect(d1.bindings('amqp')).toEqual(doc1.bindings.amqp); - }); - - it('should return a undefined', function() { - expect(d1.bindings('http')).toEqual(undefined); - expect(d2.bindings('amqp')).toEqual(undefined); - expect(d3.bindings('amqp')).toEqual(undefined); - }); - }); -}); diff --git a/test/models/mixins/external-docs.spec.ts b/test/models/mixins/external-docs.spec.ts deleted file mode 100644 index ce722b893..000000000 --- a/test/models/mixins/external-docs.spec.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { BaseModel } from '../../../src/models/base'; -import { ExternalDocsMixin, Mixin } from '../../../src/models/mixins'; - -class Model extends Mixin(BaseModel, ExternalDocsMixin) {}; - -const doc1 = { externalDocs: { url: 'test.com' } }; -const doc2 = { externalDocs: {} }; -const doc3 = {}; -const d1 = new Model(doc1); -const d2 = new Model(doc2); -const d3 = new Model(doc3); - -describe('ExternalDocs mixin', function() { - describe('.hasExternalDocs()', function() { - it('should return a boolean indicating if the object has externalDocs', function() { - expect(d1.hasExternalDocs()).toEqual(true); - expect(d2.hasExternalDocs()).toEqual(false); - expect(d3.hasExternalDocs()).toEqual(false); - }); - }); - - // TODO: implement it when the ExternalDocs class will be implemented - describe('.externalDocs()', function() { - // it('should return a externalDocs object', function() { - // expect(d1.externalDocs() instanceof ExternalDocs).toEqual(true); - // expect(d1.externalDocs().json()).toEqual(doc1.externalDocs); - - // expect(d2.externalDocs() instanceof ExternalDocs).toEqual(true); - // expect(d2.externalDocs().json()).toEqual(doc2.externalDocs); - // }); - - it('should return a undefined', function() { - expect(d3.externalDocs()).toEqual(undefined); - }); - }); -}); diff --git a/test/models/mixins/specification-extensions.spec.ts b/test/models/mixins/specification-extensions.spec.ts deleted file mode 100644 index 3b08b33ab..000000000 --- a/test/models/mixins/specification-extensions.spec.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { BaseModel } from '../../../src/models/base'; -import { Mixin, SpecificationExtensionsMixin } from '../../../src/models/mixins'; - -class Model extends Mixin(BaseModel, SpecificationExtensionsMixin) {}; - -const doc1 = { 'x-test': 'testing', test: 'testing' }; -const doc2 = { test: 'testing' }; -const doc3 = {}; -const d1 = new Model(doc1); -const d2 = new Model(doc2); -const d3 = new Model(doc3); - -describe('SpecificationExtensions mixin', function() { - describe('.hasExtensions()', function() { - it('should return a boolean indicating if the object has extensions', function() { - expect(d1.hasExtensions()).toEqual(true); - expect(d2.hasExtensions()).toEqual(false); - expect(d3.hasExtensions()).toEqual(false); - }); - - it('should return a boolean indicating if the object has appropriate extension by key', function() { - expect(d1.hasExtensions('x-test')).toEqual(true); - expect(d1.hasExtensions('x-test2')).toEqual(false); - expect(d2.hasExtensions('x-test')).toEqual(false); - expect(d3.hasExtensions('x-test')).toEqual(false); - }); - - it('should return a boolean indicating if the object has appropriate extension by key (without x- prefix)', function() { - expect(d1.hasExtensions('test')).toEqual(true); - expect(d1.hasExtensions('test2')).toEqual(false); - expect(d2.hasExtensions('test')).toEqual(false); - expect(d3.hasExtensions('test')).toEqual(false); - }); - }); - - describe('.extensions()', function() { - it('should return a object with extensions', function() { - expect(d1.extensions()).toEqual({ 'x-test': 'testing' }); - }); - - it('should return a empty object', function() { - expect(d2.extensions()).toEqual({}); - expect(d3.extensions()).toEqual({}); - }); - - it('should return a value by key', function() { - expect(d1.extensions('x-test')).toEqual('testing'); - }); - - it('should return a value by key (without x- prefix)', function() { - expect(d1.extensions('test')).toEqual('testing'); - }); - - it('should return an undefined', function() { - expect(d1.extensions('x-test2')).toEqual(undefined); - expect(d2.extensions('x-test')).toEqual(undefined); - expect(d3.extensions('x-test')).toEqual(undefined); - }); - }); -}); diff --git a/test/models/mixins/tags.spec.ts b/test/models/mixins/tags.spec.ts deleted file mode 100644 index c1389391d..000000000 --- a/test/models/mixins/tags.spec.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { BaseModel } from '../../../src/models/base'; -import { Mixin, TagsMixin } from '../../../src/models/mixins'; - -class Model extends Mixin(BaseModel, TagsMixin) {}; - -const doc1 = { tags: [{ name: 'test1' }, { name: 'test2' }] }; -const doc2 = { tags: [] }; -const doc3 = {}; -const d1 = new Model(doc1); -const d2 = new Model(doc2); -const d3 = new Model(doc3); - -describe('Tags mixin', function() { - describe('#hasTags()', function() { - it('should return a boolean indicating if the object has tags', function() { - expect(d1.hasTags()).toEqual(true); - expect(d2.hasTags()).toEqual(false); - expect(d3.hasTags()).toEqual(false); - }); - - it('should return a boolean indicating if the tags object has appropriate tag by name', function() { - expect(d1.hasTags('test1')).toEqual(true); - expect(d1.hasTags('test2')).toEqual(true); - expect(d1.hasTags('test3')).toEqual(false); - expect(d2.hasTags('test1')).toEqual(false); - expect(d3.hasTags('test1')).toEqual(false); - }); - }); - - describe('#tags()', function() { - it('should return an array of tag objects', function() { - expect(Array.isArray(d1.tags())).toEqual(true); - d1.tags().forEach((tag, i) => { - expect(tag).toEqual(doc1.tags[i]); - }); - }); - - it('should return an empty array', function() { - expect(d2.tags()).toEqual([]); - expect(d3.tags()).toEqual([]); - }); - - it('should return a tag object', function() { - expect(d1.tags('test1')).not.toEqual(undefined); - expect(d1.tags('test1')).toEqual(doc1.tags[0]); - expect(d1.tags('test2')).not.toEqual(undefined); - expect(d1.tags('test2')).toEqual(doc1.tags[1]); - }); - it('should return a undefined', function() { - expect(d1.tags('test3')).toEqual(undefined); - expect(d2.tags('test1')).toEqual(undefined); - expect(d3.tags('test1')).toEqual(undefined); - }); - }); -}); diff --git a/test/models/v2/asyncapi.spec.ts b/test/models/v2/asyncapi.spec.ts index 662938fd0..24c98cbc9 100644 --- a/test/models/v2/asyncapi.spec.ts +++ b/test/models/v2/asyncapi.spec.ts @@ -1,10 +1,8 @@ import { newAsyncAPIDocument, AsyncAPIDocumentV2, InfoV2, AsyncAPIDocumentV3 } from '../../../src/models'; import { - assertExternalDocsMixinInheritance, - assertSpecificationExtensionsMixinInheritance, - assertTagsMixinInheritance, -} from '../mixins/inheritance'; + assertExtensionsMixinInheritance, +} from './mixins/inheritance'; describe('AsyncAPIDocument model', function() { describe('.version()', function() { @@ -29,10 +27,8 @@ describe('AsyncAPIDocument model', function() { }); }); - describe('mixins', function() { - assertExternalDocsMixinInheritance(AsyncAPIDocumentV2); - assertSpecificationExtensionsMixinInheritance(AsyncAPIDocumentV2); - assertTagsMixinInheritance(AsyncAPIDocumentV2); + describe('mixins inheritance', function() { + assertExtensionsMixinInheritance(AsyncAPIDocumentV2); }); }); diff --git a/test/models/v2/contact.spec.ts b/test/models/v2/contact.spec.ts index d9194f3e7..b7b9a8bb6 100644 --- a/test/models/v2/contact.spec.ts +++ b/test/models/v2/contact.spec.ts @@ -1,6 +1,24 @@ import { Contact } from '../../../src/models/v2/contact'; +import { + assertExtensionsMixinInheritance, +} from './mixins/inheritance'; + describe('Contact model', function() { + describe('.hasName()', function() { + it('should return true when there is a value', function() { + const doc = { name: "LeChuck" }; + const d = new Contact(doc); + expect(d.hasName()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new Contact(doc); + expect(d.hasName()).toEqual(false); + }); + }); + describe('.name()', function() { it('should return the value', function() { const doc = { name: "LeChuck" }; @@ -15,6 +33,20 @@ describe('Contact model', function() { }); }); + describe('.hasUrl()', function() { + it('should return true when there is a value', function() { + const doc = { url: "https://example.com" }; + const d = new Contact(doc); + expect(d.hasUrl()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new Contact(doc); + expect(d.hasUrl()).toEqual(false); + }); + }); + describe('.url()', function() { it('should return the value', function() { const doc = { url: "https://example.com" }; @@ -29,6 +61,20 @@ describe('Contact model', function() { }); }); + describe('.hasEmail()', function() { + it('should return true when there is a value', function() { + const doc = { email: "lechuck@example.com" }; + const d = new Contact(doc); + expect(d.hasEmail()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new Contact(doc); + expect(d.hasEmail()).toEqual(false); + }); + }); + describe('.email()', function() { it('should return the value', function() { const doc = { email: "lechuck@example.com" }; @@ -42,4 +88,8 @@ describe('Contact model', function() { expect(d.email()).toBeUndefined(); }); }); + + describe('mixins inheritance', function() { + assertExtensionsMixinInheritance(Contact); + }); }); diff --git a/test/models/v2/external-docs.spec.ts b/test/models/v2/external-docs.spec.ts new file mode 100644 index 000000000..579247c5a --- /dev/null +++ b/test/models/v2/external-docs.spec.ts @@ -0,0 +1,21 @@ +import { ExternalDocumentation } from '../../../src/models/v2/mixins/external-docs'; + +import { + assertDescriptionMixinInheritance, + assertExtensionsMixinInheritance, +} from './mixins/inheritance'; + +describe('ExternalDocumentation model', function() { + describe('.name()', function() { + it('should return the value', function() { + const doc = { url: 'somewhere' }; + const d = new ExternalDocumentation(doc); + expect(d.url()).toEqual(doc.url); + }); + }); + + describe('mixins inheritance', function() { + assertDescriptionMixinInheritance(ExternalDocumentation); + assertExtensionsMixinInheritance(ExternalDocumentation); + }); +}); diff --git a/test/models/v2/info.spec.ts b/test/models/v2/info.spec.ts index 4d7380629..6d9e97d55 100644 --- a/test/models/v2/info.spec.ts +++ b/test/models/v2/info.spec.ts @@ -1,7 +1,14 @@ -import { Contact } from '../../../src/models/v2/contact'; import { Info } from '../../../src/models/v2/info'; +import { Contact } from '../../../src/models/v2/contact'; import { License } from '../../../src/models/v2/license'; +import { + assertDescriptionMixinInheritance, + assertExtensionsMixinInheritance, + assertExternalDocumentationMixinInheritance, + assertTagsMixinInheritance +} from './mixins/inheritance'; + describe('Info model', function() { describe('.title()', function() { it('should return the value', function() { @@ -9,12 +16,6 @@ describe('Info model', function() { const d = new Info(doc); expect(d.title()).toEqual(doc.title); }); - - it('should return undefined when there is no value', function() { - const doc = { }; - const d = new Info(doc); - expect(d.title()).toBeUndefined(); - }); }); describe('.version()', function() { @@ -23,25 +24,19 @@ describe('Info model', function() { const d = new Info(doc); expect(d.version()).toEqual(doc.version); }); - - it('should return undefined when there is no value', function() { - const doc = { }; - const d = new Info(doc); - expect(d.version()).toBeUndefined(); - }); }); - describe('.description()', function() { - it('should return the value', function() { - const doc = { description: "This is the API of Example" }; + describe('.hasTermsOfService()', function() { + it('should return true when there is a value', function() { + const doc = { termsOfService: "These are the terms of service" }; const d = new Info(doc); - expect(d.description()).toEqual(doc.description); + expect(d.hasTermsOfService()).toEqual(true); }); - it('should return undefined when there is no value', function() { - const doc = { }; + it('should return false when there is no value', function() { + const doc = {}; const d = new Info(doc); - expect(d.description()).toBeUndefined(); + expect(d.hasTermsOfService()).toEqual(false); }); }); @@ -53,37 +48,72 @@ describe('Info model', function() { }); it('should return undefined when there is no value', function() { - const doc = { }; + const doc = {}; const d = new Info(doc); expect(d.termsOfService()).toBeUndefined(); }); }); + + describe('.hasContact()', function() { + it('should return true when there is a value', function() { + const doc = { contact: { name: "LeChuck" } }; + const d = new Info(doc); + expect(d.hasContact()).toEqual(true); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new Info(doc); + expect(d.hasContact()).toEqual(false); + }); + }); describe('.contact()', function() { it('should return a Contact object', function() { const doc = { contact: { name: "LeChuck" } }; const d = new Info(doc); - expect(d.contact() instanceof Contact).toBeTruthy(); + expect(d.contact()).toBeInstanceOf(Contact); }); it('should return undefined when there is no value', function() { - const doc = { }; + const doc = {}; const d = new Info(doc); expect(d.contact()).toBeUndefined(); }); }); + describe('.hasLicense()', function() { + it('should return true when there is a value', function() { + const doc = { license: { name: "Apache 2.0" } }; + const d = new Info(doc); + expect(d.hasLicense()).toEqual(true); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new Info(doc); + expect(d.hasLicense()).toEqual(false); + }); + }); + describe('.license()', function() { it('should return a License object', function() { const doc = { license: { name: "Apache 2.0" } }; const d = new Info(doc); - expect(d.license() instanceof License).toBeTruthy(); + expect(d.license()).toBeInstanceOf(License); }); it('should return undefined when there is no value', function() { - const doc = { }; + const doc = {}; const d = new Info(doc); expect(d.license()).toBeUndefined(); }); }); + + describe('mixins inheritance', function() { + assertDescriptionMixinInheritance(Info); + assertExtensionsMixinInheritance(Info); + assertExternalDocumentationMixinInheritance(Info); + assertTagsMixinInheritance(Info); + }); }); diff --git a/test/models/v2/license.spec.ts b/test/models/v2/license.spec.ts index 992b54791..855ba320a 100644 --- a/test/models/v2/license.spec.ts +++ b/test/models/v2/license.spec.ts @@ -1,5 +1,9 @@ import { License } from '../../../src/models/v2/license'; +import { + assertExtensionsMixinInheritance, +} from './mixins/inheritance'; + describe('License model', function() { describe('.name()', function() { it('should return the value', function() { @@ -7,11 +11,19 @@ describe('License model', function() { const d = new License(doc); expect(d.name()).toEqual(doc.name); }); + }); + + describe('.hasUrl()', function() { + it('should return true when there is a value', function() { + const doc = { url: "https://www.apache.org/licenses/LICENSE-2.0.html" }; + const d = new License(doc); + expect(d.hasUrl()).toEqual(true); + }); - it('should return undefined when there is no value', function() { - const doc = { }; + it('should return false when there is no value', function() { + const doc = {}; const d = new License(doc); - expect(d.name()).toBeUndefined(); + expect(d.hasUrl()).toEqual(false); }); }); @@ -23,9 +35,13 @@ describe('License model', function() { }); it('should return undefined when there is no value', function() { - const doc = { }; + const doc = {}; const d = new License(doc); expect(d.url()).toBeUndefined(); }); }); + + describe('mixins inheritance', function() { + assertExtensionsMixinInheritance(License); + }); }); diff --git a/test/models/v2/mixins/bindings.spec.ts b/test/models/v2/mixins/bindings.spec.ts new file mode 100644 index 000000000..cb85bf53d --- /dev/null +++ b/test/models/v2/mixins/bindings.spec.ts @@ -0,0 +1,25 @@ +import { BaseModel } from '../../../../src/models/base'; +import { Mixin } from '../../../../src/models/utils'; +import { BindingsMixin } from '../../../../src/models/v2/mixins/bindings'; + +describe('Bindings mixin', function() { + class Model extends Mixin(BaseModel, BindingsMixin) {}; + + const doc1 = { bindings: { amqp: { test: 'test1' } } }; + const doc2 = { bindings: {} }; + const doc3 = {}; + const d1 = new Model(doc1); + const d2 = new Model(doc2); + const d3 = new Model(doc3); + + describe('.bindings()', function() { + it('should return a collection of bindings', function() { + expect(d1.bindings().length).toEqual(1); + }); + + it('should return an empty object', function() { + expect(d2.bindings().length).toEqual(0); + expect(d3.bindings().length).toEqual(0); + }); + }); +}); \ No newline at end of file diff --git a/test/models/mixins/description.spec.ts b/test/models/v2/mixins/description.spec.ts similarity index 60% rename from test/models/mixins/description.spec.ts rename to test/models/v2/mixins/description.spec.ts index 99027ac2b..32ba29999 100644 --- a/test/models/mixins/description.spec.ts +++ b/test/models/v2/mixins/description.spec.ts @@ -1,16 +1,17 @@ -import { BaseModel } from '../../../src/models/base'; -import { DescriptionMixin, Mixin } from '../../../src/models/mixins'; +import { BaseModel } from '../../../../src/models/base'; +import { Mixin } from '../../../../src/models/utils'; +import { DescriptionMixin } from '../../../../src/models/v2/mixins/description'; -class Model extends Mixin(BaseModel, DescriptionMixin) {}; +describe('Description mixin', function() { + class Model extends Mixin(BaseModel, DescriptionMixin) {}; -const doc1 = { description: 'Testing' }; -const doc2 = { description: '' }; -const doc3 = {}; -const d1 = new Model(doc1); -const d2 = new Model(doc2); -const d3 = new Model(doc3); + const doc1 = { description: 'Testing' }; + const doc2 = { description: '' }; + const doc3 = {}; + const d1 = new Model(doc1); + const d2 = new Model(doc2); + const d3 = new Model(doc3); -describe('Description mixin', function() { describe('.hasDescription()', function() { it('should return a boolean indicating if the object has description', function() { expect(d1.hasDescription()).toEqual(true); @@ -29,4 +30,4 @@ describe('Description mixin', function() { expect(d3.description()).toEqual(undefined); }); }); -}); +}); \ No newline at end of file diff --git a/test/models/v2/mixins/extensions.spec.ts b/test/models/v2/mixins/extensions.spec.ts new file mode 100644 index 000000000..51e28ed15 --- /dev/null +++ b/test/models/v2/mixins/extensions.spec.ts @@ -0,0 +1,25 @@ +import { BaseModel } from '../../../../src/models/base'; +import { Mixin } from '../../../../src/models/utils'; +import { ExtensionsMixin } from '../../../../src/models/v2/mixins/extensions'; + +describe('Extensions mixin', function() { + class Model extends Mixin(BaseModel, ExtensionsMixin) {}; + + const doc1 = { 'x-test': 'testing', test: 'testing' }; + const doc2 = { test: 'testing' }; + const doc3 = {}; + const d1 = new Model(doc1); + const d2 = new Model(doc2); + const d3 = new Model(doc3); + + describe('.extensions()', function() { + it('should return a collection with extensions', function() { + expect(d1.extensions().length).toEqual(1); + }); + + it('should return a empty object', function() { + expect(d2.extensions().length).toEqual(0); + expect(d3.extensions().length).toEqual(0); + }); + }); +}); \ No newline at end of file diff --git a/test/models/v2/mixins/external-docs.spec.ts b/test/models/v2/mixins/external-docs.spec.ts new file mode 100644 index 000000000..6cf9c995a --- /dev/null +++ b/test/models/v2/mixins/external-docs.spec.ts @@ -0,0 +1,36 @@ +import { BaseModel } from '../../../../src/models/base'; +import { Mixin } from '../../../../src/models/utils'; +import { ExternalDocumentationV2 } from '../../../../src/models/v2'; +import { ExternalDocumentationMixin } from '../../../../src/models/v2/mixins/external-docs'; + +describe('ExternalDocs mixin', function() { + class Model extends Mixin(BaseModel, ExternalDocumentationMixin) {}; + + const doc1 = { externalDocs: { url: 'test.com' } }; + const doc2 = { externalDocs: {} }; + const doc3 = {}; + const d1 = new Model(doc1); + const d2 = new Model(doc2); + const d3 = new Model(doc3); + + describe('.hasExternalDocs()', function() { + it('should return a boolean indicating if the object has externalDocs', function() { + expect(d1.hasExternalDocs()).toEqual(true); + expect(d2.hasExternalDocs()).toEqual(false); + expect(d3.hasExternalDocs()).toEqual(false); + }); + }); + + // TODO: implement it when the ExternalDocs class will be implemented + describe('.externalDocs()', function() { + it('should return a externalDocs object', function() { + expect(d1.externalDocs()).toBeInstanceOf(ExternalDocumentationV2); + expect(d1.externalDocs()!.json()).toEqual(doc1.externalDocs); + }); + + it('should return a undefined', function() { + expect(d2.externalDocs()).toEqual(undefined); + expect(d3.externalDocs()).toEqual(undefined); + }); + }); +}); \ No newline at end of file diff --git a/test/models/mixins/inheritance.ts b/test/models/v2/mixins/inheritance.ts similarity index 61% rename from test/models/mixins/inheritance.ts rename to test/models/v2/mixins/inheritance.ts index 439027488..d1b473e36 100644 --- a/test/models/mixins/inheritance.ts +++ b/test/models/v2/mixins/inheritance.ts @@ -1,18 +1,12 @@ -import { - BindingsMixin, - DescriptionMixin, - ExternalDocsMixin, - SpecificationExtensionsMixin, - TagsMixin, -} from '../../../src/models/mixins'; +import { BindingsMixin } from '../../../../src/models/v2/mixins/bindings'; +import { DescriptionMixin } from '../../../../src/models/v2/mixins/description'; +import { ExtensionsMixin } from '../../../../src/models/v2/mixins/extensions'; +import { ExternalDocumentationMixin } from '../../../../src/models/v2/mixins/external-docs'; +import { TagsMixin } from '../../../../src/models/v2/mixins/tags'; export function assertBindingsMixinInheritance(model: typeof BindingsMixin) { describe('BindingsMixin inheritance', function() { it(`check if ${model.name} model has inherited methods from BindingsMixin`, function() { - expect(model.prototype.hasBindings).not.toEqual(undefined); - expect(typeof model.prototype.hasBindings).toEqual('function'); - expect(model.prototype.hasBindings === BindingsMixin.prototype.hasBindings).toEqual(true); - expect(model.prototype.bindings).not.toEqual(undefined); expect(typeof model.prototype.bindings).toEqual('function'); expect(model.prototype.bindings === BindingsMixin.prototype.bindings).toEqual(true); @@ -34,30 +28,26 @@ export function assertDescriptionMixinInheritance(model: typeof DescriptionMixin }); } -export function assertExternalDocsMixinInheritance(model: typeof ExternalDocsMixin) { +export function assertExtensionsMixinInheritance(model: typeof ExtensionsMixin) { + describe('SpecificationExtensionsMixin inheritance', function() { + it(`check if ${model.name} model has inherited methods from ExtensionsMixin`, function() { + expect(model.prototype.extensions).not.toEqual(undefined); + expect(typeof model.prototype.extensions).toEqual('function'); + expect(model.prototype.extensions === ExtensionsMixin.prototype.extensions).toEqual(true); + }); + }); +} + +export function assertExternalDocumentationMixinInheritance(model: typeof ExternalDocumentationMixin) { describe('ExternalDocsMixin inheritance', function() { - it(`check if ${model.name} model has inherited methods from ExternalDocsMixin`, function() { + it(`check if ${model.name} model has inherited methods from ExternalDocumentationMixin`, function() { expect(model.prototype.hasExternalDocs).not.toEqual(undefined); expect(typeof model.prototype.hasExternalDocs).toEqual('function'); - expect(model.prototype.hasExternalDocs === ExternalDocsMixin.prototype.hasExternalDocs).toEqual(true); + expect(model.prototype.hasExternalDocs === ExternalDocumentationMixin.prototype.hasExternalDocs).toEqual(true); expect(model.prototype.externalDocs).not.toEqual(undefined); expect(typeof model.prototype.externalDocs).toEqual('function'); - expect(model.prototype.externalDocs === ExternalDocsMixin.prototype.externalDocs).toEqual(true); - }); - }); -} - -export function assertSpecificationExtensionsMixinInheritance(model: typeof SpecificationExtensionsMixin) { - describe('SpecificationExtensionsMixin inheritance', function() { - it(`check if ${model.name} model has inherited methods from SpecificationExtensionsMixin`, function() { - expect(model.prototype.hasExtensions).not.toEqual(undefined); - expect(typeof model.prototype.hasExtensions).toEqual('function'); - expect(model.prototype.hasExtensions === SpecificationExtensionsMixin.prototype.hasExtensions).toEqual(true); - - expect(model.prototype.extensions).not.toEqual(undefined); - expect(typeof model.prototype.extensions).toEqual('function'); - expect(model.prototype.extensions === SpecificationExtensionsMixin.prototype.extensions).toEqual(true); + expect(model.prototype.externalDocs === ExternalDocumentationMixin.prototype.externalDocs).toEqual(true); }); }); } @@ -65,13 +55,9 @@ export function assertSpecificationExtensionsMixinInheritance(model: typeof Spec export function assertTagsMixinInheritance(model: typeof TagsMixin) { describe('TagsMixin inheritance', function() { it(`check if ${model.name} model has inherited methods from TagsMixin`, function() { - expect(model.prototype.hasTags).not.toEqual(undefined); - expect(typeof model.prototype.hasTags).toEqual('function'); - expect(model.prototype.hasTags === TagsMixin.prototype.hasTags).toEqual(true); - expect(model.prototype.tags).not.toEqual(undefined); expect(typeof model.prototype.tags).toEqual('function'); expect(model.prototype.tags === TagsMixin.prototype.tags).toEqual(true); }); }); -} +} \ No newline at end of file diff --git a/test/models/v2/mixins/tags.spec.ts b/test/models/v2/mixins/tags.spec.ts new file mode 100644 index 000000000..29a658254 --- /dev/null +++ b/test/models/v2/mixins/tags.spec.ts @@ -0,0 +1,25 @@ +import { BaseModel } from '../../../../src/models/base'; +import { Mixin } from '../../../../src/models/utils'; +import { TagsMixin } from '../../../../src/models/v2/mixins/tags'; + +describe('Tags mixin', function() { + class Model extends Mixin(BaseModel, TagsMixin) {}; + + const doc1 = { tags: [{ name: 'test1' }, { name: 'test2' }] }; + const doc2 = { tags: [] }; + const doc3 = {}; + const d1 = new Model(doc1); + const d2 = new Model(doc2); + const d3 = new Model(doc3); + + describe('#tags()', function() { + it('should return an array of tag objects', function() { + expect(d1.tags().length).toEqual(2); + }); + + it('should return an empty array', function() { + expect(d2.tags().length).toEqual(0); + expect(d3.tags().length).toEqual(0); + }); + }); +}); \ No newline at end of file diff --git a/test/models/v2/tag.spec.ts b/test/models/v2/tag.spec.ts new file mode 100644 index 000000000..8bda373bc --- /dev/null +++ b/test/models/v2/tag.spec.ts @@ -0,0 +1,23 @@ +import { Tag } from '../../../src/models/v2/mixins/tags'; + +import { + assertDescriptionMixinInheritance, + assertExtensionsMixinInheritance, + assertExternalDocumentationMixinInheritance +} from './mixins/inheritance'; + +describe('Tag model', function() { + describe('.name()', function() { + it('should return the value', function() { + const doc = { name: "LeChuck" }; + const d = new Tag(doc); + expect(d.name()).toEqual(doc.name); + }); + }); + + describe('mixins inheritance', function() { + assertDescriptionMixinInheritance(Tag); + assertExtensionsMixinInheritance(Tag); + assertExternalDocumentationMixinInheritance(Tag); + }); +}); From 69a0aef8e1431207c4e52e562d07366ba4f0183b Mon Sep 17 00:00:00 2001 From: souvik Date: Fri, 25 Mar 2022 17:35:25 +0530 Subject: [PATCH 013/126] refactor: add models for server object (#497) --- .sonarcloud.properties | 2 + src/models/asyncapi.ts | 2 + src/models/server.ts | 10 ++++ src/models/servers.ts | 4 ++ src/models/utils.ts | 10 ++++ src/models/v2/asyncapi.ts | 13 ++++- src/models/v2/index.ts | 4 +- src/models/v2/server.ts | 34 ++++++++++++ src/models/v2/servers.ts | 13 +++++ src/models/v3/asyncapi.ts | 13 ++++- src/models/v3/index.ts | 4 +- src/models/v3/server.ts | 34 ++++++++++++ src/models/v3/servers.ts | 13 +++++ test/models/v2/asyncapi.spec.ts | 14 ++++- test/models/v2/server.spec.ts | 92 +++++++++++++++++++++++++++++++++ 15 files changed, 256 insertions(+), 6 deletions(-) create mode 100644 .sonarcloud.properties create mode 100644 src/models/server.ts create mode 100644 src/models/servers.ts create mode 100644 src/models/v2/server.ts create mode 100644 src/models/v2/servers.ts create mode 100644 src/models/v3/server.ts create mode 100644 src/models/v3/servers.ts create mode 100644 test/models/v2/server.spec.ts diff --git a/.sonarcloud.properties b/.sonarcloud.properties new file mode 100644 index 000000000..1b41ae5b3 --- /dev/null +++ b/.sonarcloud.properties @@ -0,0 +1,2 @@ +# Disable specific duplicate code since it would introduce more complexity to reduce it. +sonar.cpd.exclusions=src/models/**/*.ts \ No newline at end of file diff --git a/src/models/asyncapi.ts b/src/models/asyncapi.ts index 6fb68a1ab..0c20dfcb5 100644 --- a/src/models/asyncapi.ts +++ b/src/models/asyncapi.ts @@ -4,10 +4,12 @@ import { AsyncAPIDocumentV3 } from "./v3"; import type { InfoInterface } from "./info"; import type { BaseModel } from "./base"; import type { ExtensionsMixinInterface } from "./mixins"; +import { ServersInterface } from "./servers"; export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInterface { version(): string; info(): InfoInterface; + servers(): ServersInterface } export function newAsyncAPIDocument(json: Record): AsyncAPIDocumentInterface { diff --git a/src/models/server.ts b/src/models/server.ts new file mode 100644 index 000000000..d9526fd3d --- /dev/null +++ b/src/models/server.ts @@ -0,0 +1,10 @@ +import { BaseModel } from "./base"; +import { BindingsMixinInterface, DescriptionMixinInterface } from './mixins'; + +export interface ServerInterface extends BaseModel, DescriptionMixinInterface, BindingsMixinInterface { + id(): string + protocol(): string | undefined; + protocolVersion(): string; + hasProtocolVersion(): boolean; + url(): string; +} \ No newline at end of file diff --git a/src/models/servers.ts b/src/models/servers.ts new file mode 100644 index 000000000..d8360d487 --- /dev/null +++ b/src/models/servers.ts @@ -0,0 +1,4 @@ +import { Collection } from "./collection"; +import {ServerInterface} from "./server"; + +export interface ServersInterface extends Collection {} \ No newline at end of file diff --git a/src/models/utils.ts b/src/models/utils.ts index 0b73d948a..e2befd7a8 100644 --- a/src/models/utils.ts +++ b/src/models/utils.ts @@ -32,4 +32,14 @@ function mixin(derivedCtor: any, constructors: any[]): typeof BaseModel { }); }); return derivedCtor; +} + +export function createArrayFromMap(json: Record){ + const ArrayObject = []; + for (const [key, value] of Object.entries(json)) { + value['id'] = key; + ArrayObject.push(value); + }; + + return ArrayObject; } \ No newline at end of file diff --git a/src/models/v2/asyncapi.ts b/src/models/v2/asyncapi.ts index e690f3fcb..a220e9fa9 100644 --- a/src/models/v2/asyncapi.ts +++ b/src/models/v2/asyncapi.ts @@ -5,9 +5,12 @@ import { Mixin } from '../utils'; import { ExtensionsMixin } from './mixins/extensions'; import { AsyncAPIDocumentInterface, InfoInterface } from "../../models"; +import { ServersInterface } from "models/servers"; +import { Servers } from "./servers"; +import { Server } from "./server"; -export class AsyncAPIDocument - extends Mixin(BaseModel, ExtensionsMixin) +export class AsyncAPIDocument + extends Mixin(BaseModel, ExtensionsMixin) implements AsyncAPIDocumentInterface { version(): string { @@ -17,4 +20,10 @@ export class AsyncAPIDocument info(): InfoInterface { return new Info(this._json.info); } + + servers(): ServersInterface { + return new Servers( + Object.entries(this._json.servers).map(([serverName, server]) => new Server(serverName, server as Record)) + ); + } } diff --git a/src/models/v2/index.ts b/src/models/v2/index.ts index 34c57b438..64a301036 100644 --- a/src/models/v2/index.ts +++ b/src/models/v2/index.ts @@ -5,4 +5,6 @@ export { License as LicenseV2 } from './license'; export { Bindings as BindingsV2, Binding as BindingV2 } from './mixins/bindings'; export { Extensions as ExtensionsV2, Extension as ExtensionV2 } from './mixins/extensions'; export { ExternalDocumentation as ExternalDocumentationV2 } from './mixins/external-docs'; -export { Tags as TagsV2, Tag as TagV2 } from './mixins/tags'; \ No newline at end of file +export { Tags as TagsV2, Tag as TagV2 } from './mixins/tags'; +export { Server as ServerV2 } from './server'; +export { Servers as ServersV2 } from './servers'; \ No newline at end of file diff --git a/src/models/v2/server.ts b/src/models/v2/server.ts new file mode 100644 index 000000000..3f52dc724 --- /dev/null +++ b/src/models/v2/server.ts @@ -0,0 +1,34 @@ +import { Mixin } from '../utils'; +import { BaseModel } from '../base'; +import { ServerInterface } from '../server'; +import { DescriptionMixin } from './mixins/description'; +import { BindingsMixin } from './mixins/bindings'; + +export class Server extends Mixin(BaseModel, DescriptionMixin, BindingsMixin) implements ServerInterface { + constructor( + private readonly _id: string, + _json: Record + ){ + super(_json); + } + + id(): string { + return this._id; + } + + protocol(): string | undefined { + return this.json('protocol'); + } + + hasProtocolVersion(): boolean { + return !!this.json('protocolVersion'); + } + + protocolVersion(): string { + return this.json('protocolVersion'); + } + + url(): string { + return this.json('url'); + } +} \ No newline at end of file diff --git a/src/models/v2/servers.ts b/src/models/v2/servers.ts new file mode 100644 index 000000000..c8e9fa0dc --- /dev/null +++ b/src/models/v2/servers.ts @@ -0,0 +1,13 @@ +import { Collection } from '../collection'; +import { ServerInterface } from '../server'; +import { ServersInterface } from '../servers'; + +export class Servers extends Collection implements ServersInterface { + override get(id: string): ServerInterface | undefined { + return this.collections.find(server => server.id() === id); + } + + override has(id: string): boolean { + return this.collections.some(server => server.id() === id); + } +} \ No newline at end of file diff --git a/src/models/v3/asyncapi.ts b/src/models/v3/asyncapi.ts index f48ee2ea6..5da958d7c 100644 --- a/src/models/v3/asyncapi.ts +++ b/src/models/v3/asyncapi.ts @@ -4,11 +4,14 @@ import { Info } from "./info"; import { Mixin } from '../utils'; import { ExtensionsMixin } from './mixins/extensions'; +import { ServersInterface } from "models/servers"; +import { Servers } from "./servers"; +import { Server } from "./server"; export class AsyncAPIDocument extends Mixin(BaseModel, ExtensionsMixin) implements AsyncAPIDocumentInterface { - + version(): string { return this.json("asyncapi"); } @@ -16,4 +19,12 @@ export class AsyncAPIDocument info(): Info { return new Info(this.json("info")); } + + servers(): ServersInterface { + return new Servers( + Object.entries(this._json.servers).map( + ([serverName, server]) => new Server(serverName, server as Record) + ) + ) + } } diff --git a/src/models/v3/index.ts b/src/models/v3/index.ts index 967ba16c8..c974ffbeb 100644 --- a/src/models/v3/index.ts +++ b/src/models/v3/index.ts @@ -5,4 +5,6 @@ export { License as LicenseV3 } from './license'; export { Bindings as BindingsV3, Binding as BindingV3 } from './mixins/bindings'; export { Extensions as ExtensionsV3, Extension as ExtensionV3 } from './mixins/extensions'; export { ExternalDocumentation as ExternalDocumentationV3 } from './mixins/external-docs'; -export { Tags as TagsV3, Tag as TagV3 } from './mixins/tags'; \ No newline at end of file +export { Tags as TagsV3, Tag as TagV3 } from './mixins/tags'; +export { Server as ServerV3 } from './server'; +export { Servers as ServersV3 } from './servers'; \ No newline at end of file diff --git a/src/models/v3/server.ts b/src/models/v3/server.ts new file mode 100644 index 000000000..3f52dc724 --- /dev/null +++ b/src/models/v3/server.ts @@ -0,0 +1,34 @@ +import { Mixin } from '../utils'; +import { BaseModel } from '../base'; +import { ServerInterface } from '../server'; +import { DescriptionMixin } from './mixins/description'; +import { BindingsMixin } from './mixins/bindings'; + +export class Server extends Mixin(BaseModel, DescriptionMixin, BindingsMixin) implements ServerInterface { + constructor( + private readonly _id: string, + _json: Record + ){ + super(_json); + } + + id(): string { + return this._id; + } + + protocol(): string | undefined { + return this.json('protocol'); + } + + hasProtocolVersion(): boolean { + return !!this.json('protocolVersion'); + } + + protocolVersion(): string { + return this.json('protocolVersion'); + } + + url(): string { + return this.json('url'); + } +} \ No newline at end of file diff --git a/src/models/v3/servers.ts b/src/models/v3/servers.ts new file mode 100644 index 000000000..c8e9fa0dc --- /dev/null +++ b/src/models/v3/servers.ts @@ -0,0 +1,13 @@ +import { Collection } from '../collection'; +import { ServerInterface } from '../server'; +import { ServersInterface } from '../servers'; + +export class Servers extends Collection implements ServersInterface { + override get(id: string): ServerInterface | undefined { + return this.collections.find(server => server.id() === id); + } + + override has(id: string): boolean { + return this.collections.some(server => server.id() === id); + } +} \ No newline at end of file diff --git a/test/models/v2/asyncapi.spec.ts b/test/models/v2/asyncapi.spec.ts index 24c98cbc9..60ee2499c 100644 --- a/test/models/v2/asyncapi.spec.ts +++ b/test/models/v2/asyncapi.spec.ts @@ -1,4 +1,4 @@ -import { newAsyncAPIDocument, AsyncAPIDocumentV2, InfoV2, AsyncAPIDocumentV3 } from '../../../src/models'; +import { newAsyncAPIDocument, AsyncAPIDocumentV2, InfoV2, AsyncAPIDocumentV3, ServersV2 } from '../../../src/models'; import { assertExtensionsMixinInheritance, @@ -27,6 +27,18 @@ describe('AsyncAPIDocument model', function() { }); }); + describe('.servers()', function(){ + it('should return an servers object', function(){ + const doc = {servers: { + development: { + + } + }}; + const d = new AsyncAPIDocumentV2(doc); + expect(d.servers() instanceof ServersV2).toBeTruthy(); + }) + }) + describe('mixins inheritance', function() { assertExtensionsMixinInheritance(AsyncAPIDocumentV2); }); diff --git a/test/models/v2/server.spec.ts b/test/models/v2/server.spec.ts new file mode 100644 index 000000000..ccb318834 --- /dev/null +++ b/test/models/v2/server.spec.ts @@ -0,0 +1,92 @@ +import { Server } from '../../../src/models/v2/server'; +import { Servers } from '../../../src/models/v2/servers'; + +const doc = { + 'development': { + protocol: 'mqtt', + protocolVersion: '1.0.0', + url: 'development.gigantic-server.com' + } +}; +const docItem = new Server('development', doc.development); +const emptyItem = new Server('',{}); + +describe('Servers model', function () { + describe('.isEmpty()', function () { + it('should return true if collection is empty', function () { + const servers = new Servers([]); + expect(servers.isEmpty()).toBeTruthy(); + }); + + it('should return false if collection is not empty', function () { + const servers = new Servers([docItem]); + expect(servers.isEmpty()).toBeFalsy(); + }); + }) + + describe('.get(id)', function () { + it('should return a specific server Object if it is present', function () { + const servers = new Servers([docItem]); + expect(servers.get('development')).toBeTruthy(); + }); + + it('should return undefined if a server is said Id is missing ', function () { + const servers = new Servers([]); + expect(servers.get('development')).toBeUndefined(); + }); + }) + + describe('.has(id)', function () { + + const servers = new Servers([docItem]); + + it('should return true if the said name is available', function () { + expect(servers.has('development')).toBeTruthy(); + }) + + it('should return false if the server name is missing', function () { + expect(servers.has('production')).toBeFalsy(); + }) + }) +}) + +describe('Server Model', function () { + + describe('.id()', function () { + it('should return name if present', function () { + expect(docItem.id()).toMatch('development'); + }); + }); + + describe('protocol()', function () { + it('should return protocol ', function () { + expect(docItem.protocol()).toMatch(doc.development.protocol); + }); + }); + + describe('.hasProtocolVersion()', function () { + it('should return true if protocolVersion is not missing', function () { + expect(docItem.hasProtocolVersion()).toBeTruthy(); + }); + + it('should be false when protocolVersion is missing', function () { + expect(emptyItem.hasProtocolVersion()).toBeFalsy(); + }); + }) + + describe('.protocolVersion()', function () { + it('should return protocolVersion', function () { + expect(docItem.protocolVersion()).toMatch(doc.development.protocolVersion); + }); + + it('should return undefined protocolVersion when protocolVersion is missing', function () { + expect(emptyItem.protocolVersion()).toBeUndefined(); + }) + }) + + describe('.url()', function () { + it('should return url', function () { + expect(docItem.url()).toMatch(doc.development.url); + }); + }); +}) \ No newline at end of file From 11cb0e9e0504983fb25079d165abde64383c9a90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Fri, 25 Mar 2022 13:44:56 +0100 Subject: [PATCH 014/126] refactor: add metadata to models (#496) --- src/models/asyncapi.ts | 25 ++--- src/models/base.ts | 31 +++++- src/models/server.ts | 16 +-- src/models/utils.ts | 2 +- src/models/v2/asyncapi.ts | 14 ++- src/models/v2/info.ts | 36 ++++-- src/models/v2/license.ts | 2 +- src/models/v2/mixins/bindings.ts | 8 +- src/models/v2/mixins/extensions.ts | 8 +- src/models/v2/mixins/tags.ts | 6 +- src/models/v2/server.ts | 65 ++++++----- src/models/v2/servers.ts | 14 +-- src/models/v3/asyncapi.ts | 25 +++-- src/models/v3/info.ts | 36 ++++-- src/models/v3/mixins/bindings.ts | 10 +- src/models/v3/mixins/extensions.ts | 10 +- src/models/v3/mixins/tags.ts | 4 +- src/models/v3/server.ts | 65 ++++++----- src/models/v3/servers.ts | 14 +-- src/parse.ts | 2 +- src/stringify.ts | 13 ++- src/types.ts | 8 +- src/utils.ts | 2 +- test/models/base.spec.ts | 8 +- test/models/v2/asyncapi.spec.ts | 28 +++-- test/models/v2/info.spec.ts | 111 ++++++++++++++++++- test/models/v2/mixins/external-docs.spec.ts | 1 - test/models/v2/mixins/inheritance.ts | 12 +- test/models/v2/server.spec.ts | 115 +++++++------------- test/models/v2/servers.spec.ts | 49 +++++++++ test/stringify.spec.ts | 11 +- test/utils.spec.ts | 35 ++++-- 32 files changed, 513 insertions(+), 273 deletions(-) create mode 100644 test/models/v2/servers.spec.ts diff --git a/src/models/asyncapi.ts b/src/models/asyncapi.ts index 0c20dfcb5..76aca11eb 100644 --- a/src/models/asyncapi.ts +++ b/src/models/asyncapi.ts @@ -4,27 +4,22 @@ import { AsyncAPIDocumentV3 } from "./v3"; import type { InfoInterface } from "./info"; import type { BaseModel } from "./base"; import type { ExtensionsMixinInterface } from "./mixins"; -import { ServersInterface } from "./servers"; +import type { ServersInterface } from "./servers"; +import type { DetailedAsyncAPI } from "../types"; export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInterface { version(): string; info(): InfoInterface; - servers(): ServersInterface + servers(): ServersInterface; } -export function newAsyncAPIDocument(json: Record): AsyncAPIDocumentInterface { - const version = json['asyncapi']; // Maybe this should be an arg. - if (version == undefined || version == null || version == '') { - throw new Error('Missing AsyncAPI version in document'); - } - - const major = version.split(".")[0]; - switch (major) { - case '2': - return new AsyncAPIDocumentV2(json); - case '3': - return new AsyncAPIDocumentV3(json); +export function newAsyncAPIDocument(asyncapi: DetailedAsyncAPI): AsyncAPIDocumentInterface { + switch (asyncapi.semver.major) { + case 2: + return new AsyncAPIDocumentV2(asyncapi.parsed, { parent: null, asyncapi, pointer: '/' }); + case 3: + return new AsyncAPIDocumentV3(asyncapi.parsed, { parent: null, asyncapi, pointer: '/' }); default: - throw new Error(`Unsupported version: ${version}`); + throw new Error(`Unsupported AsyncAPI version: ${asyncapi.semver.version}`); } } diff --git a/src/models/base.ts b/src/models/base.ts index 7e09c8007..7e7bb8b7a 100644 --- a/src/models/base.ts +++ b/src/models/base.ts @@ -1,6 +1,16 @@ -export class BaseModel { +import type { Constructor } from "./utils"; +import type { DetailedAsyncAPI } from "../types"; + +export interface ModelMetadata

{ + asyncapi: DetailedAsyncAPI; + pointer: string; + parent: P | null; +} + +export abstract class BaseModel { constructor( protected readonly _json: Record, + protected readonly _meta: ModelMetadata = {} as any, ) {} json>(): T; @@ -10,4 +20,23 @@ export class BaseModel { if (!this._json) return; return this._json[String(key)]; } + + meta(): ModelMetadata { + return this._meta!; + } + + jsonPath(field?: string): string | undefined { + if (typeof field !== 'string') { + return this._meta?.pointer; + } + return `${this._meta?.pointer}/${field}`; + } + + protected createModel(Model: Constructor, value: any, { id, parent, pointer }: { id?: string, parent?: any, pointer: string | number }): T { + const meta = { asyncapi: this._meta.asyncapi, parent: parent || this, pointer } as ModelMetadata; + if (id) { + return new Model(id, value, meta); + } + return new Model(value, meta); + } } diff --git a/src/models/server.ts b/src/models/server.ts index d9526fd3d..70576066b 100644 --- a/src/models/server.ts +++ b/src/models/server.ts @@ -1,10 +1,10 @@ -import { BaseModel } from "./base"; -import { BindingsMixinInterface, DescriptionMixinInterface } from './mixins'; +import type { BaseModel } from "./base"; +import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; -export interface ServerInterface extends BaseModel, DescriptionMixinInterface, BindingsMixinInterface { - id(): string - protocol(): string | undefined; - protocolVersion(): string; - hasProtocolVersion(): boolean; - url(): string; +export interface ServerInterface extends BaseModel, DescriptionMixinInterface, BindingsMixinInterface, ExtensionsMixinInterface { + id(): string + url(): string; + protocol(): string | undefined; + protocolVersion(): string; + hasProtocolVersion(): boolean; } \ No newline at end of file diff --git a/src/models/utils.ts b/src/models/utils.ts index e2befd7a8..c97451818 100644 --- a/src/models/utils.ts +++ b/src/models/utils.ts @@ -1,6 +1,6 @@ import type { BaseModel } from './base'; -export interface Constructor extends Function { +export interface Constructor extends Function { new (...any: any[]): T; } diff --git a/src/models/v2/asyncapi.ts b/src/models/v2/asyncapi.ts index a220e9fa9..65d35296b 100644 --- a/src/models/v2/asyncapi.ts +++ b/src/models/v2/asyncapi.ts @@ -1,13 +1,13 @@ import { BaseModel } from "../base"; import { Info } from "./info"; +import { Servers } from "./servers"; +import { Server } from "./server"; import { Mixin } from '../utils'; import { ExtensionsMixin } from './mixins/extensions'; -import { AsyncAPIDocumentInterface, InfoInterface } from "../../models"; -import { ServersInterface } from "models/servers"; -import { Servers } from "./servers"; -import { Server } from "./server"; +import type { AsyncAPIDocumentInterface, InfoInterface } from "../../models"; +import type { ServersInterface } from "models/servers"; export class AsyncAPIDocument extends Mixin(BaseModel, ExtensionsMixin) @@ -18,12 +18,14 @@ export class AsyncAPIDocument } info(): InfoInterface { - return new Info(this._json.info); + return this.createModel(Info, this._json.info, { pointer: '/info' }); } servers(): ServersInterface { return new Servers( - Object.entries(this._json.servers).map(([serverName, server]) => new Server(serverName, server as Record)) + Object.entries(this._json.servers).map(([serverName, server]) => + this.createModel(Server, server, { id: serverName, pointer: `/servers/${serverName}` }) + ) ); } } diff --git a/src/models/v2/info.ts b/src/models/v2/info.ts index 9c12dd292..5d53573fc 100644 --- a/src/models/v2/info.ts +++ b/src/models/v2/info.ts @@ -5,13 +5,15 @@ import { License } from "./license"; import { Mixin } from '../utils'; import { DescriptionMixin } from './mixins/description'; import { ExtensionsMixin } from './mixins/extensions'; -import { ExternalDocumentationMixin } from './mixins/external-docs'; -import { TagsMixin } from './mixins/tags'; +import { ExternalDocumentation } from './mixins/external-docs'; +import { Tags, Tag } from './mixins/tags'; import type { InfoInterface } from "../../models/info"; +import type { ExternalDocumentationInterface } from "../../models/external-docs"; +import type { TagsInterface } from "../../models/tags"; export class Info - extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin, ExternalDocumentationMixin, TagsMixin) + extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements InfoInterface { title(): string { @@ -22,14 +24,12 @@ export class Info return this._json.version; } - // TODO: Implement it id(): string | undefined { - return; + return this._meta.asyncapi.parsed.id as string; } - // TODO: Implement it hasId(): boolean { - return true; + return !!this._meta.asyncapi.parsed.id; } hasTermsOfService(): boolean { @@ -46,7 +46,7 @@ export class Info contact(): Contact | undefined { const contact = this._json.contact; - return contact && new Contact(contact); + return contact && this.createModel(Contact, contact, { pointer: '/info/contact' }); } hasLicense(): boolean { @@ -55,6 +55,22 @@ export class Info license(): License | undefined { const license = this._json.license; - return license && new License(license); + return license && this.createModel(License, license, { pointer: `/info/license` }); + } + + hasExternalDocs(): boolean { + return Object.keys(this._meta.asyncapi.parsed.externalDocs || {}).length > 0; + }; + + externalDocs(): ExternalDocumentationInterface | undefined { + if (this.hasExternalDocs()) { + return this.createModel(ExternalDocumentation, this._meta.asyncapi.parsed.externalDocs, { pointer: `/externalDocs` }); + } + return; + }; + + tags(): TagsInterface { + const tags = this._meta.asyncapi.parsed.tags || []; + return new Tags(tags.map((tag: any, idx: number) => this.createModel(Tag, tag, { pointer: `/tags/${idx}` }))); } -} \ No newline at end of file +} diff --git a/src/models/v2/license.ts b/src/models/v2/license.ts index 834f43b29..69cb09e35 100644 --- a/src/models/v2/license.ts +++ b/src/models/v2/license.ts @@ -17,4 +17,4 @@ export class License extends Mixin(BaseModel, ExtensionsMixin) implements Licens url(): string | undefined { return this._json.url; } -} \ No newline at end of file +} diff --git a/src/models/v2/mixins/bindings.ts b/src/models/v2/mixins/bindings.ts index 13dd7a228..b1dfe9b2e 100644 --- a/src/models/v2/mixins/bindings.ts +++ b/src/models/v2/mixins/bindings.ts @@ -4,6 +4,7 @@ import { Collection } from '../../collection'; import { Mixin } from '../../utils'; import { ExtensionsMixin } from './extensions'; +import type { ModelMetadata } from "../../base"; import type { BindingsMixinInterface } from "../../mixins"; import type { BindingsInterface } from "../../bindings"; import type { BindingInterface } from "../../binding"; @@ -12,8 +13,9 @@ export class Binding extends Mixin(BaseModel, ExtensionsMixin) implements Bindin constructor( private readonly _protocol: string, _json: Record, + _meta: ModelMetadata = {} as any, ) { - super(_json); + super(_json, _meta); } protocol(): string { @@ -45,7 +47,9 @@ export abstract class BindingsMixin extends BaseModel implements BindingsMixinIn bindings(): BindingsInterface { const bindings: Record = this._json.bindings || {}; return new Bindings( - Object.entries(bindings).map(([protocol, binding]) => new Binding(protocol, binding)) + Object.entries(bindings).map(([protocol, binding]) => + this.createModel(Binding, binding, { id: protocol, pointer: `${this._meta.pointer}/bindings/${protocol}` }) + ) ); } } diff --git a/src/models/v2/mixins/extensions.ts b/src/models/v2/mixins/extensions.ts index 61ee70409..b95175fa5 100644 --- a/src/models/v2/mixins/extensions.ts +++ b/src/models/v2/mixins/extensions.ts @@ -1,6 +1,7 @@ import { Collection } from '../../collection'; import { BaseModel } from "../../base"; +import type { ModelMetadata } from "../../base"; import type { ExtensionsMixinInterface } from "../../mixins"; import type { ExtensionsInterface } from "../../extensions"; import type { ExtensionInterface } from "../../extension"; @@ -11,8 +12,9 @@ export class Extension extends BaseModel implements ExtensionInterface { constructor( private readonly _id: string, _json: Record, + _meta: ModelMetadata = {} as any, ) { - super(_json); + super(_json, _meta); } id(): string { @@ -43,7 +45,9 @@ export abstract class ExtensionsMixin extends BaseModel implements ExtensionsMix const extensions: Extension[] = []; Object.entries(this._json).forEach(([key, value]) => { if (EXTENSION_REGEX.test(key)) { - extensions.push(new Extension(key, value)); + extensions.push( + this.createModel(Extension, value, { id: key, pointer: `${this._meta.pointer}/${key}` }) + ); } }); return new Extensions(extensions); diff --git a/src/models/v2/mixins/tags.ts b/src/models/v2/mixins/tags.ts index 6cdee98b9..0134183e5 100644 --- a/src/models/v2/mixins/tags.ts +++ b/src/models/v2/mixins/tags.ts @@ -32,6 +32,10 @@ export class Tags extends Collection implements TagsInterface { export abstract class TagsMixin extends BaseModel implements TagsMixinInterface { tags(): TagsInterface { const tags = this._json.tags || []; - return new Tags(tags.map((tag: any) => new Tag(tag))); + return new Tags( + tags.map((tag: any, idx: number) => + this.createModel(Tag, tag, { pointer: `${this._meta.pointer}/tags/${idx}` }) + ) + ); } } \ No newline at end of file diff --git a/src/models/v2/server.ts b/src/models/v2/server.ts index 3f52dc724..672af9696 100644 --- a/src/models/v2/server.ts +++ b/src/models/v2/server.ts @@ -1,34 +1,39 @@ -import { Mixin } from '../utils'; import { BaseModel } from '../base'; -import { ServerInterface } from '../server'; -import { DescriptionMixin } from './mixins/description'; + +import { Mixin } from '../utils'; import { BindingsMixin } from './mixins/bindings'; +import { DescriptionMixin } from './mixins/description'; +import { ExtensionsMixin } from './mixins/extensions'; + +import type { ModelMetadata } from "../base"; +import type { ServerInterface } from '../server'; + +export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, ExtensionsMixin) implements ServerInterface { + constructor( + private readonly _id: string, + _json: Record, + _meta: ModelMetadata = {} as any, + ) { + super(_json, _meta); + } + + id(): string { + return this._id; + } + + url(): string { + return this._json.url; + } + + protocol(): string | undefined { + return this._json.protocol; + } + + hasProtocolVersion(): boolean { + return !!this._json.protocolVersion; + } -export class Server extends Mixin(BaseModel, DescriptionMixin, BindingsMixin) implements ServerInterface { - constructor( - private readonly _id: string, - _json: Record - ){ - super(_json); - } - - id(): string { - return this._id; - } - - protocol(): string | undefined { - return this.json('protocol'); - } - - hasProtocolVersion(): boolean { - return !!this.json('protocolVersion'); - } - - protocolVersion(): string { - return this.json('protocolVersion'); - } - - url(): string { - return this.json('url'); - } + protocolVersion(): string { + return this._json.protocolVersion; + } } \ No newline at end of file diff --git a/src/models/v2/servers.ts b/src/models/v2/servers.ts index c8e9fa0dc..68da626c9 100644 --- a/src/models/v2/servers.ts +++ b/src/models/v2/servers.ts @@ -3,11 +3,11 @@ import { ServerInterface } from '../server'; import { ServersInterface } from '../servers'; export class Servers extends Collection implements ServersInterface { - override get(id: string): ServerInterface | undefined { - return this.collections.find(server => server.id() === id); - } + override get(id: string): ServerInterface | undefined { + return this.collections.find(server => server.id() === id); + } - override has(id: string): boolean { - return this.collections.some(server => server.id() === id); - } -} \ No newline at end of file + override has(id: string): boolean { + return this.collections.some(server => server.id() === id); + } +} diff --git a/src/models/v3/asyncapi.ts b/src/models/v3/asyncapi.ts index 5da958d7c..65d35296b 100644 --- a/src/models/v3/asyncapi.ts +++ b/src/models/v3/asyncapi.ts @@ -1,30 +1,31 @@ -import { AsyncAPIDocumentInterface } from "../../models/asyncapi"; import { BaseModel } from "../base"; import { Info } from "./info"; +import { Servers } from "./servers"; +import { Server } from "./server"; import { Mixin } from '../utils'; import { ExtensionsMixin } from './mixins/extensions'; -import { ServersInterface } from "models/servers"; -import { Servers } from "./servers"; -import { Server } from "./server"; -export class AsyncAPIDocument - extends Mixin(BaseModel, ExtensionsMixin) +import type { AsyncAPIDocumentInterface, InfoInterface } from "../../models"; +import type { ServersInterface } from "models/servers"; + +export class AsyncAPIDocument + extends Mixin(BaseModel, ExtensionsMixin) implements AsyncAPIDocumentInterface { version(): string { - return this.json("asyncapi"); + return this._json.asyncapi; } - info(): Info { - return new Info(this.json("info")); + info(): InfoInterface { + return this.createModel(Info, this._json.info, { pointer: '/info' }); } servers(): ServersInterface { return new Servers( - Object.entries(this._json.servers).map( - ([serverName, server]) => new Server(serverName, server as Record) + Object.entries(this._json.servers).map(([serverName, server]) => + this.createModel(Server, server, { id: serverName, pointer: `/servers/${serverName}` }) ) - ) + ); } } diff --git a/src/models/v3/info.ts b/src/models/v3/info.ts index 9c12dd292..6e5cfc62e 100644 --- a/src/models/v3/info.ts +++ b/src/models/v3/info.ts @@ -5,13 +5,15 @@ import { License } from "./license"; import { Mixin } from '../utils'; import { DescriptionMixin } from './mixins/description'; import { ExtensionsMixin } from './mixins/extensions'; -import { ExternalDocumentationMixin } from './mixins/external-docs'; -import { TagsMixin } from './mixins/tags'; +import { ExternalDocumentation } from './mixins/external-docs'; +import { Tags, Tag } from './mixins/tags'; import type { InfoInterface } from "../../models/info"; +import type { ExternalDocumentationInterface } from "../../models/external-docs"; +import type { TagsInterface } from "../../models/tags"; export class Info - extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin, ExternalDocumentationMixin, TagsMixin) + extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements InfoInterface { title(): string { @@ -22,14 +24,12 @@ export class Info return this._json.version; } - // TODO: Implement it id(): string | undefined { - return; + return this._meta.asyncapi.parsed.id as string; } - // TODO: Implement it hasId(): boolean { - return true; + return !!this._meta.asyncapi.parsed.id; } hasTermsOfService(): boolean { @@ -46,7 +46,7 @@ export class Info contact(): Contact | undefined { const contact = this._json.contact; - return contact && new Contact(contact); + return contact && this.createModel(Contact, contact, { pointer: '/info/contact' }); } hasLicense(): boolean { @@ -55,6 +55,22 @@ export class Info license(): License | undefined { const license = this._json.license; - return license && new License(license); + return license && this.createModel(License, license, { pointer: `/info/license` }); + } + + hasExternalDocs(): boolean { + return Object.keys(this._meta.asyncapi.parsed.externalDocs || {}).length > 0; + }; + + externalDocs(): ExternalDocumentationInterface | undefined { + if (this.hasExternalDocs()) { + return this.createModel(ExternalDocumentation, this._meta.asyncapi.parsed.externalDocs, { pointer: `/externalDocs` }); + } + return; + }; + + tags(): TagsInterface { + const tags = this._json.tags || []; + return new Tags(tags.map((tag: any, idx: number) => this.createModel(Tag, tag, { pointer: `/tags/${idx}` }))); } -} \ No newline at end of file +} diff --git a/src/models/v3/mixins/bindings.ts b/src/models/v3/mixins/bindings.ts index dc6770263..ae646e166 100644 --- a/src/models/v3/mixins/bindings.ts +++ b/src/models/v3/mixins/bindings.ts @@ -4,6 +4,7 @@ import { Collection } from '../../collection'; import { Mixin } from '../../utils'; import { ExtensionsMixin } from './extensions'; +import type { ModelMetadata } from "../../base"; import type { BindingsMixinInterface } from "../../mixins"; import type { BindingsInterface } from "../../bindings"; import type { BindingInterface } from "../../binding"; @@ -12,8 +13,9 @@ export class Binding extends Mixin(BaseModel, ExtensionsMixin) implements Bindin constructor( private readonly _protocol: string, _json: Record, + _meta: ModelMetadata, ) { - super(_json); + super(_json, _meta); } protocol(): string { @@ -45,7 +47,9 @@ export abstract class BindingsMixin extends BaseModel implements BindingsMixinIn bindings(): BindingsInterface { const bindings: Record = this._json.bindings || {}; return new Bindings( - Object.entries(bindings).map(([protocol, binding]) => new Binding(protocol, binding)) + Object.entries(bindings).map(([protocol, binding]) => + this.createModel(Binding, binding, { id: protocol, pointer: `${this._meta.pointer}/bindings/${protocol}` }) + ) ); } -} \ No newline at end of file +} diff --git a/src/models/v3/mixins/extensions.ts b/src/models/v3/mixins/extensions.ts index 61ee70409..9e5cb45dc 100644 --- a/src/models/v3/mixins/extensions.ts +++ b/src/models/v3/mixins/extensions.ts @@ -1,6 +1,7 @@ import { Collection } from '../../collection'; import { BaseModel } from "../../base"; +import type { ModelMetadata } from "../../base"; import type { ExtensionsMixinInterface } from "../../mixins"; import type { ExtensionsInterface } from "../../extensions"; import type { ExtensionInterface } from "../../extension"; @@ -11,8 +12,9 @@ export class Extension extends BaseModel implements ExtensionInterface { constructor( private readonly _id: string, _json: Record, + _meta: ModelMetadata, ) { - super(_json); + super(_json, _meta); } id(): string { @@ -43,9 +45,11 @@ export abstract class ExtensionsMixin extends BaseModel implements ExtensionsMix const extensions: Extension[] = []; Object.entries(this._json).forEach(([key, value]) => { if (EXTENSION_REGEX.test(key)) { - extensions.push(new Extension(key, value)); + extensions.push( + this.createModel(Extension, value, { id: key, pointer: `${this._meta.pointer}/${key}` }) + ); } }); return new Extensions(extensions); }; -} \ No newline at end of file +} diff --git a/src/models/v3/mixins/tags.ts b/src/models/v3/mixins/tags.ts index 6cdee98b9..e490069e9 100644 --- a/src/models/v3/mixins/tags.ts +++ b/src/models/v3/mixins/tags.ts @@ -32,6 +32,6 @@ export class Tags extends Collection implements TagsInterface { export abstract class TagsMixin extends BaseModel implements TagsMixinInterface { tags(): TagsInterface { const tags = this._json.tags || []; - return new Tags(tags.map((tag: any) => new Tag(tag))); + return new Tags(tags.map((tag: any, idx: number) => this.createModel(Tag, tag, { pointer: `${this._meta.pointer}/tags/${idx}` }))); } -} \ No newline at end of file +} diff --git a/src/models/v3/server.ts b/src/models/v3/server.ts index 3f52dc724..672af9696 100644 --- a/src/models/v3/server.ts +++ b/src/models/v3/server.ts @@ -1,34 +1,39 @@ -import { Mixin } from '../utils'; import { BaseModel } from '../base'; -import { ServerInterface } from '../server'; -import { DescriptionMixin } from './mixins/description'; + +import { Mixin } from '../utils'; import { BindingsMixin } from './mixins/bindings'; +import { DescriptionMixin } from './mixins/description'; +import { ExtensionsMixin } from './mixins/extensions'; + +import type { ModelMetadata } from "../base"; +import type { ServerInterface } from '../server'; + +export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, ExtensionsMixin) implements ServerInterface { + constructor( + private readonly _id: string, + _json: Record, + _meta: ModelMetadata = {} as any, + ) { + super(_json, _meta); + } + + id(): string { + return this._id; + } + + url(): string { + return this._json.url; + } + + protocol(): string | undefined { + return this._json.protocol; + } + + hasProtocolVersion(): boolean { + return !!this._json.protocolVersion; + } -export class Server extends Mixin(BaseModel, DescriptionMixin, BindingsMixin) implements ServerInterface { - constructor( - private readonly _id: string, - _json: Record - ){ - super(_json); - } - - id(): string { - return this._id; - } - - protocol(): string | undefined { - return this.json('protocol'); - } - - hasProtocolVersion(): boolean { - return !!this.json('protocolVersion'); - } - - protocolVersion(): string { - return this.json('protocolVersion'); - } - - url(): string { - return this.json('url'); - } + protocolVersion(): string { + return this._json.protocolVersion; + } } \ No newline at end of file diff --git a/src/models/v3/servers.ts b/src/models/v3/servers.ts index c8e9fa0dc..68da626c9 100644 --- a/src/models/v3/servers.ts +++ b/src/models/v3/servers.ts @@ -3,11 +3,11 @@ import { ServerInterface } from '../server'; import { ServersInterface } from '../servers'; export class Servers extends Collection implements ServersInterface { - override get(id: string): ServerInterface | undefined { - return this.collections.find(server => server.id() === id); - } + override get(id: string): ServerInterface | undefined { + return this.collections.find(server => server.id() === id); + } - override has(id: string): boolean { - return this.collections.some(server => server.id() === id); - } -} \ No newline at end of file + override has(id: string): boolean { + return this.collections.some(server => server.id() === id); + } +} diff --git a/src/parse.ts b/src/parse.ts index c5ce643cc..2564f64af 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -47,7 +47,7 @@ export async function parse(asyncapi: ParserInput, options?: ParseOptions): Prom const detailed = createDetailedAsyncAPI(asyncapi as string | Record, parsed); await customOperations(detailed, options); - const parsedDoc = newAsyncAPIDocument(parsed); + const parsedDoc = newAsyncAPIDocument(detailed); return { source: asyncapi, diff --git a/src/stringify.ts b/src/stringify.ts index b49e4ed61..32240adee 100644 --- a/src/stringify.ts +++ b/src/stringify.ts @@ -1,6 +1,6 @@ import { AsyncAPIDocumentInterface, newAsyncAPIDocument } from './models'; -import { isAsyncAPIDocument, isParsedDocument, isStringifiedDocument } from './utils'; +import { createDetailedAsyncAPI, isAsyncAPIDocument, isParsedDocument, isStringifiedDocument } from './utils'; import { xParserSpecStringified } from './constants'; export interface StringifyOptions { @@ -26,25 +26,26 @@ export function stringify(document: unknown, options: StringifyOptions = {}): st } export function unstringify(document: unknown): AsyncAPIDocumentInterface | undefined { + let parsed: unknown = document; if (typeof document === 'string') { try { - document = JSON.parse(document); + parsed = JSON.parse(document); } catch(_) { return; } } - if (!isStringifiedDocument(document)) { + if (!isStringifiedDocument(parsed)) { return; } // shall copy of whole JSON - document = { ...document }; + parsed = { ...parsed }; // remove `x-parser-spec-stringified` extension - delete (>document)[String(xParserSpecStringified)]; + delete (>parsed)[String(xParserSpecStringified)]; traverseStringifiedDoc(document, undefined, document, new Map(), new Map()); - return newAsyncAPIDocument(>document); + return newAsyncAPIDocument(createDetailedAsyncAPI(document as string, parsed as Record)); } function refReplacer() { diff --git a/src/types.ts b/src/types.ts index 7294aab80..13e882b8a 100644 --- a/src/types.ts +++ b/src/types.ts @@ -11,8 +11,8 @@ export interface AsyncAPISemver { } export interface DetailedAsyncAPI { - source: string | Record; - parsed: Record; + source: string | Record; + parsed: Record; semver: AsyncAPISemver; } @@ -26,3 +26,7 @@ export interface ParserOutput { parsed: AsyncAPIDocumentInterface | undefined; diagnostics: Diagnostic[]; } + +export interface Constructor { + new (...args: any[]): T +} \ No newline at end of file diff --git a/src/utils.ts b/src/utils.ts index 6c48e1048..da88db8ad 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -17,7 +17,7 @@ export function toAsyncAPIDocument(maybeDoc: unknown): AsyncAPIDocumentInterface if (!isParsedDocument(maybeDoc)) { return; } - return unstringify(maybeDoc) || newAsyncAPIDocument(maybeDoc); + return unstringify(maybeDoc) || newAsyncAPIDocument(createDetailedAsyncAPI(maybeDoc, maybeDoc)); } export function isAsyncAPIDocument(maybeDoc: unknown): maybeDoc is AsyncAPIDocumentInterface { diff --git a/test/models/base.spec.ts b/test/models/base.spec.ts index b26931a29..eb101e38f 100644 --- a/test/models/base.spec.ts +++ b/test/models/base.spec.ts @@ -1,22 +1,24 @@ import { BaseModel } from '../../src/models/base'; describe('Base model', function() { + class Model extends BaseModel {} + describe('.json()', function() { it('should return the whole JSON object', function() { const doc = { test: 'testing' }; - const d = new BaseModel(doc); + const d = new Model(doc); expect(d.json()).toEqual(doc); }); it('should return the value of a given key', function() { const doc = { test: 'testing' }; - const d = new BaseModel(doc); + const d = new Model(doc); expect(d.json('test')).toEqual(doc.test); }); it('should return the value of a given key, even when this is falsy', function() { const doc = { 0: 'testing' }; - const d = new BaseModel(doc); + const d = new Model(doc); expect(d.json(0)).toEqual(doc[0]); }); }); diff --git a/test/models/v2/asyncapi.spec.ts b/test/models/v2/asyncapi.spec.ts index 60ee2499c..fab5cd43f 100644 --- a/test/models/v2/asyncapi.spec.ts +++ b/test/models/v2/asyncapi.spec.ts @@ -1,4 +1,11 @@ -import { newAsyncAPIDocument, AsyncAPIDocumentV2, InfoV2, AsyncAPIDocumentV3, ServersV2 } from '../../../src/models'; +import { + newAsyncAPIDocument, + AsyncAPIDocumentV2, + InfoV2, + ServersV2, + AsyncAPIDocumentV3 +} from '../../../src/models'; +import { createDetailedAsyncAPI } from '../../../src/utils'; import { assertExtensionsMixinInheritance, @@ -23,19 +30,15 @@ describe('AsyncAPIDocument model', function() { it('should return an Info object', function() { const doc = { info: { name: "LeChuck" } }; const d = new AsyncAPIDocumentV2(doc); - expect(d.info() instanceof InfoV2).toBeTruthy(); + expect(d.info()).toBeInstanceOf(InfoV2); }); }); describe('.servers()', function(){ it('should return an servers object', function(){ - const doc = {servers: { - development: { - - } - }}; + const doc = { servers: { development: {} } }; const d = new AsyncAPIDocumentV2(doc); - expect(d.servers() instanceof ServersV2).toBeTruthy(); + expect(d.servers()).toBeInstanceOf(ServersV2); }) }) @@ -47,20 +50,23 @@ describe('AsyncAPIDocument model', function() { describe('AsyncAPIDocument factory', function() { it('should create a valid document from v2.0.0', function() { const doc = { asyncapi: "2.0.0" }; - const d = newAsyncAPIDocument(doc) + const detailed = createDetailedAsyncAPI(doc, doc); + const d = newAsyncAPIDocument(detailed) expect(d.version()).toEqual(doc.asyncapi); expect(d).toBeInstanceOf(AsyncAPIDocumentV2); }); it('should create a valid document from v3.0.0', function() { const doc = { asyncapi: "3.0.0" }; - const d = newAsyncAPIDocument(doc) + const detailed = createDetailedAsyncAPI(doc, doc); + const d = newAsyncAPIDocument(detailed) expect(d.version()).toEqual(doc.asyncapi); expect(d).toBeInstanceOf(AsyncAPIDocumentV3); }); it('should fail trying to create a document from a non supported spec version', function() { const doc = { asyncapi: "99.99.99" }; - expect(() => newAsyncAPIDocument(doc)).toThrow("Unsupported version: 99.99.99"); + const detailed = createDetailedAsyncAPI(doc, doc); + expect(() => newAsyncAPIDocument(detailed)).toThrow("Unsupported AsyncAPI version: 99.99.99"); }); }); diff --git a/test/models/v2/info.spec.ts b/test/models/v2/info.spec.ts index 6d9e97d55..708917cf6 100644 --- a/test/models/v2/info.spec.ts +++ b/test/models/v2/info.spec.ts @@ -1,12 +1,13 @@ import { Info } from '../../../src/models/v2/info'; import { Contact } from '../../../src/models/v2/contact'; import { License } from '../../../src/models/v2/license'; +import { ExternalDocumentation } from '../../../src/models/v2/mixins/external-docs'; +import { Tags, Tag } from '../../../src/models/v2/mixins/tags'; +import { createDetailedAsyncAPI } from '../../../src/utils'; import { assertDescriptionMixinInheritance, assertExtensionsMixinInheritance, - assertExternalDocumentationMixinInheritance, - assertTagsMixinInheritance } from './mixins/inheritance'; describe('Info model', function() { @@ -26,6 +27,38 @@ describe('Info model', function() { }); }); + describe('.hasId()', function() { + it('should return true when there is a value', function() { + const doc = { asyncapi: '2.0.0', id: 'someId' }; + const asyncapi = createDetailedAsyncAPI(doc, doc); + const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + expect(d.hasId()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = { asyncapi: '2.0.0' }; + const asyncapi = createDetailedAsyncAPI(doc, doc); + const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + expect(d.hasId()).toEqual(false); + }); + }); + + describe('.id()', function() { + it('should return the value', function() { + const doc = { asyncapi: '2.0.0', id: 'someId' }; + const asyncapi = createDetailedAsyncAPI(doc, doc); + const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + expect(d.id()).toEqual(doc.id); + }); + + it('should return undefined when there is no value', function() { + const doc = { asyncapi: '2.0.0' }; + const asyncapi = createDetailedAsyncAPI(doc, doc); + const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + expect(d.id()).toEqual(undefined); + }); + }); + describe('.hasTermsOfService()', function() { it('should return true when there is a value', function() { const doc = { termsOfService: "These are the terms of service" }; @@ -61,7 +94,7 @@ describe('Info model', function() { expect(d.hasContact()).toEqual(true); }); - it('should return undefined when there is no value', function() { + it('should return false when there is no value', function() { const doc = {}; const d = new Info(doc); expect(d.hasContact()).toEqual(false); @@ -89,7 +122,7 @@ describe('Info model', function() { expect(d.hasLicense()).toEqual(true); }); - it('should return undefined when there is no value', function() { + it('should return false when there is no value', function() { const doc = {}; const d = new Info(doc); expect(d.hasLicense()).toEqual(false); @@ -110,10 +143,76 @@ describe('Info model', function() { }); }); + describe('.hasExternalDocs()', function() { + it('should return true when there is a value', function() { + const doc = { asyncapi: '2.0.0', externalDocs: { url: 'https://example.com' } }; + const asyncapi = createDetailedAsyncAPI(doc, doc); + const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + expect(d.hasExternalDocs()).toEqual(true); + }); + + it('should return false when there is an empty object', function() { + const doc = { asyncapi: '2.0.0', externalDocs: {} }; + const asyncapi = createDetailedAsyncAPI(doc, doc); + const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + expect(d.hasExternalDocs()).toEqual(false); + }); + + it('should return false when there is no value', function() { + const doc = { asyncapi: '2.0.0' }; + const asyncapi = createDetailedAsyncAPI(doc, doc); + const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + expect(d.hasExternalDocs()).toEqual(false); + }); + }); + + describe('.externalDocs()', function() { + it('should return the value', function() { + const doc = { asyncapi: '2.0.0', externalDocs: { url: 'https://example.com' } }; + const asyncapi = createDetailedAsyncAPI(doc, doc); + const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + expect(d.externalDocs()).toBeInstanceOf(ExternalDocumentation); + expect(d.externalDocs()!.json()).toEqual(doc.externalDocs); + }); + + it('should return undefined when there is an empty object', function() { + const doc = { asyncapi: '2.0.0', externalDocs: {} }; + const asyncapi = createDetailedAsyncAPI(doc, doc); + const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + expect(d.externalDocs()).toEqual(undefined); + }); + + it('should return undefined when there is no value', function() { + const doc = { asyncapi: '2.0.0' }; + const asyncapi = createDetailedAsyncAPI(doc, doc); + const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + expect(d.externalDocs()).toEqual(undefined); + }); + }); + + describe('.tags()', function() { + it('should return the collection of tags', function() { + const tags = [{ name: 'one' }, { name: 'two' }]; + const doc = { asyncapi: '2.0.0', tags }; + const asyncapi = createDetailedAsyncAPI(doc, doc); + const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + expect(d.tags()).toBeInstanceOf(Tags); + expect(d.tags().length).toEqual(2); + expect(d.tags().all()[0]).toBeInstanceOf(Tag); + expect(d.tags().all()[1]).toBeInstanceOf(Tag); + }); + + it('should return empty array when there is an empty collection', function() { + const doc = { asyncapi: '2.0.0' }; + const asyncapi = createDetailedAsyncAPI(doc, doc); + const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + expect(d.tags()).toBeInstanceOf(Tags); + expect(d.tags().all()).toEqual([]); + }); + }); + describe('mixins inheritance', function() { assertDescriptionMixinInheritance(Info); assertExtensionsMixinInheritance(Info); - assertExternalDocumentationMixinInheritance(Info); - assertTagsMixinInheritance(Info); }); }); diff --git a/test/models/v2/mixins/external-docs.spec.ts b/test/models/v2/mixins/external-docs.spec.ts index 6cf9c995a..f9aac7bc9 100644 --- a/test/models/v2/mixins/external-docs.spec.ts +++ b/test/models/v2/mixins/external-docs.spec.ts @@ -21,7 +21,6 @@ describe('ExternalDocs mixin', function() { }); }); - // TODO: implement it when the ExternalDocs class will be implemented describe('.externalDocs()', function() { it('should return a externalDocs object', function() { expect(d1.externalDocs()).toBeInstanceOf(ExternalDocumentationV2); diff --git a/test/models/v2/mixins/inheritance.ts b/test/models/v2/mixins/inheritance.ts index d1b473e36..f0fa18333 100644 --- a/test/models/v2/mixins/inheritance.ts +++ b/test/models/v2/mixins/inheritance.ts @@ -4,7 +4,9 @@ import { ExtensionsMixin } from '../../../../src/models/v2/mixins/extensions'; import { ExternalDocumentationMixin } from '../../../../src/models/v2/mixins/external-docs'; import { TagsMixin } from '../../../../src/models/v2/mixins/tags'; -export function assertBindingsMixinInheritance(model: typeof BindingsMixin) { +import type { Constructor } from '../../../../src/models/utils'; + +export function assertBindingsMixinInheritance(model: Constructor) { describe('BindingsMixin inheritance', function() { it(`check if ${model.name} model has inherited methods from BindingsMixin`, function() { expect(model.prototype.bindings).not.toEqual(undefined); @@ -14,7 +16,7 @@ export function assertBindingsMixinInheritance(model: typeof BindingsMixin) { }); } -export function assertDescriptionMixinInheritance(model: typeof DescriptionMixin) { +export function assertDescriptionMixinInheritance(model: Constructor) { describe('DescriptionMixin inheritance', function() { it(`check if ${model.name} model has inherited methods from DescriptionMixin`, function() { expect(model.prototype.hasDescription).not.toEqual(undefined); @@ -28,7 +30,7 @@ export function assertDescriptionMixinInheritance(model: typeof DescriptionMixin }); } -export function assertExtensionsMixinInheritance(model: typeof ExtensionsMixin) { +export function assertExtensionsMixinInheritance(model: Constructor) { describe('SpecificationExtensionsMixin inheritance', function() { it(`check if ${model.name} model has inherited methods from ExtensionsMixin`, function() { expect(model.prototype.extensions).not.toEqual(undefined); @@ -38,7 +40,7 @@ export function assertExtensionsMixinInheritance(model: typeof ExtensionsMixin) }); } -export function assertExternalDocumentationMixinInheritance(model: typeof ExternalDocumentationMixin) { +export function assertExternalDocumentationMixinInheritance(model: Constructor) { describe('ExternalDocsMixin inheritance', function() { it(`check if ${model.name} model has inherited methods from ExternalDocumentationMixin`, function() { expect(model.prototype.hasExternalDocs).not.toEqual(undefined); @@ -52,7 +54,7 @@ export function assertExternalDocumentationMixinInheritance(model: typeof Extern }); } -export function assertTagsMixinInheritance(model: typeof TagsMixin) { +export function assertTagsMixinInheritance(model: Constructor) { describe('TagsMixin inheritance', function() { it(`check if ${model.name} model has inherited methods from TagsMixin`, function() { expect(model.prototype.tags).not.toEqual(undefined); diff --git a/test/models/v2/server.spec.ts b/test/models/v2/server.spec.ts index ccb318834..3a43ee1da 100644 --- a/test/models/v2/server.spec.ts +++ b/test/models/v2/server.spec.ts @@ -1,92 +1,61 @@ import { Server } from '../../../src/models/v2/server'; -import { Servers } from '../../../src/models/v2/servers'; + +import { + assertDescriptionMixinInheritance, + assertExtensionsMixinInheritance, +} from './mixins/inheritance'; const doc = { - 'development': { - protocol: 'mqtt', - protocolVersion: '1.0.0', - url: 'development.gigantic-server.com' - } + 'development': { + protocol: 'mqtt', + protocolVersion: '1.0.0', + url: 'development.gigantic-server.com' + } }; const docItem = new Server('development', doc.development); const emptyItem = new Server('',{}); -describe('Servers model', function () { - describe('.isEmpty()', function () { - it('should return true if collection is empty', function () { - const servers = new Servers([]); - expect(servers.isEmpty()).toBeTruthy(); - }); - - it('should return false if collection is not empty', function () { - const servers = new Servers([docItem]); - expect(servers.isEmpty()).toBeFalsy(); - }); - }) - - describe('.get(id)', function () { - it('should return a specific server Object if it is present', function () { - const servers = new Servers([docItem]); - expect(servers.get('development')).toBeTruthy(); - }); - - it('should return undefined if a server is said Id is missing ', function () { - const servers = new Servers([]); - expect(servers.get('development')).toBeUndefined(); - }); - }) - - describe('.has(id)', function () { - - const servers = new Servers([docItem]); - - it('should return true if the said name is available', function () { - expect(servers.has('development')).toBeTruthy(); - }) - - it('should return false if the server name is missing', function () { - expect(servers.has('production')).toBeFalsy(); - }) - }) -}) - describe('Server Model', function () { - - describe('.id()', function () { - it('should return name if present', function () { - expect(docItem.id()).toMatch('development'); - }); + describe('.id()', function () { + it('should return name if present', function () { + expect(docItem.id()).toMatch('development'); }); + }); - describe('protocol()', function () { - it('should return protocol ', function () { - expect(docItem.protocol()).toMatch(doc.development.protocol); - }); + describe('protocol()', function () { + it('should return protocol ', function () { + expect(docItem.protocol()).toMatch(doc.development.protocol); }); + }); - describe('.hasProtocolVersion()', function () { - it('should return true if protocolVersion is not missing', function () { - expect(docItem.hasProtocolVersion()).toBeTruthy(); - }); + describe('.hasProtocolVersion()', function () { + it('should return true if protocolVersion is not missing', function () { + expect(docItem.hasProtocolVersion()).toBeTruthy(); + }); - it('should be false when protocolVersion is missing', function () { - expect(emptyItem.hasProtocolVersion()).toBeFalsy(); - }); - }) + it('should be false when protocolVersion is missing', function () { + expect(emptyItem.hasProtocolVersion()).toBeFalsy(); + }); + }) - describe('.protocolVersion()', function () { - it('should return protocolVersion', function () { - expect(docItem.protocolVersion()).toMatch(doc.development.protocolVersion); - }); + describe('.protocolVersion()', function () { + it('should return value', function () { + expect(docItem.protocolVersion()).toMatch(doc.development.protocolVersion); + }); - it('should return undefined protocolVersion when protocolVersion is missing', function () { - expect(emptyItem.protocolVersion()).toBeUndefined(); - }) + it('should return undefined when protocolVersion is missing', function () { + expect(emptyItem.protocolVersion()).toBeUndefined(); }) + }) - describe('.url()', function () { - it('should return url', function () { - expect(docItem.url()).toMatch(doc.development.url); - }); + describe('.url()', function () { + it('should return value', function () { + expect(docItem.url()).toMatch(doc.development.url); }); + }); + + describe('mixins inheritance', function() { + assertDescriptionMixinInheritance(Server); + assertExtensionsMixinInheritance(Server); + }); }) \ No newline at end of file diff --git a/test/models/v2/servers.spec.ts b/test/models/v2/servers.spec.ts new file mode 100644 index 000000000..f76ff7f3c --- /dev/null +++ b/test/models/v2/servers.spec.ts @@ -0,0 +1,49 @@ +import { Servers } from '../../../src/models/v2/servers'; +import { Server } from '../../../src/models/v2/server'; + +const doc = { + 'development': { + protocol: 'mqtt', + protocolVersion: '1.0.0', + url: 'development.gigantic-server.com' + } +}; +const docItem = new Server('development', doc.development); + +describe('Servers model', function () { + describe('.isEmpty()', function () { + it('should return true if collection is empty', function () { + const servers = new Servers([]); + expect(servers.isEmpty()).toBeTruthy(); + }); + + it('should return false if collection is not empty', function () { + const servers = new Servers([docItem]); + expect(servers.isEmpty()).toBeFalsy(); + }); + }); + + describe('.get(id)', function () { + it('should return a specific server Object if it is present', function () { + const servers = new Servers([docItem]); + expect(servers.get('development')).toBeTruthy(); + }); + + it('should return undefined if a server is said Id is missing ', function () { + const servers = new Servers([]); + expect(servers.get('development')).toBeUndefined(); + }); + }); + + describe('.has(id)', function () { + const servers = new Servers([docItem]); + + it('should return true if the said name is available', function () { + expect(servers.has('development')).toBeTruthy(); + }) + + it('should return false if the server name is missing', function () { + expect(servers.has('production')).toBeFalsy(); + }) + }) +}) \ No newline at end of file diff --git a/test/stringify.spec.ts b/test/stringify.spec.ts index 6c515f886..14c79eee9 100644 --- a/test/stringify.spec.ts +++ b/test/stringify.spec.ts @@ -1,8 +1,11 @@ import { xParserSpecParsed, xParserSpecStringified } from '../src/constants'; import { BaseModel, newAsyncAPIDocument } from '../src/models'; import { stringify, unstringify } from '../src/stringify'; +import { createDetailedAsyncAPI } from '../src/utils'; describe('stringify & unstringify', function() { + class Model extends BaseModel {} + describe('stringify()', function() { it('should not stringify normal object', function() { expect(stringify({})).toEqual(undefined); @@ -17,7 +20,7 @@ describe('stringify & unstringify', function() { }); it('should not stringify BaseModel instance', function() { - expect(stringify(new BaseModel({}))).toEqual(undefined); + expect(stringify(new Model({}))).toEqual(undefined); }); it('should stringify parsed document', function() { @@ -29,7 +32,9 @@ describe('stringify & unstringify', function() { }); it('should stringify AsyncAPIDocument instance', function() { - expect(typeof stringify(newAsyncAPIDocument({ asyncapi: '2.0.0' }))).toEqual('string'); + const doc = { asyncapi: '2.0.0' }; + const detailed = createDetailedAsyncAPI(doc, doc); + expect(typeof stringify(newAsyncAPIDocument(detailed))).toEqual('string'); }); }); @@ -47,7 +52,7 @@ describe('stringify & unstringify', function() { }); it('should not stringify BaseModel instance', function() { - expect(unstringify(new BaseModel({}))).toEqual(undefined); + expect(unstringify(new Model({}))).toEqual(undefined); }); it('should not unstringify parsed document', function() { diff --git a/test/utils.spec.ts b/test/utils.spec.ts index b8e6afd5d..e5ebfdca3 100644 --- a/test/utils.spec.ts +++ b/test/utils.spec.ts @@ -19,7 +19,10 @@ import { import type { Diagnostic } from '../src/types'; describe('utils', function() { + class Model extends BaseModel {} + describe('toAsyncAPIDocument()', function() { + it('normal object should not return AsyncAPIDocument instance', function() { expect(toAsyncAPIDocument({})).toEqual(undefined); }); @@ -33,11 +36,13 @@ describe('utils', function() { }); it('BaseModel instance should not return AsyncAPIDocument instance', function() { - expect(toAsyncAPIDocument(new BaseModel({}))).toEqual(undefined); + expect(toAsyncAPIDocument(new Model({}))).toEqual(undefined); }); it('AsyncAPIDocument instance should return AsyncAPIDocument instance', function() { - expect(toAsyncAPIDocument(newAsyncAPIDocument({ asyncapi: '2.0.0' }))).toBeInstanceOf(AsyncAPIDocumentV2); + const doc = { asyncapi: '2.0.0' }; + const detailed = createDetailedAsyncAPI(doc, doc); + expect(toAsyncAPIDocument(newAsyncAPIDocument(detailed))).toBeInstanceOf(AsyncAPIDocumentV2); }); it('parsed document should return AsyncAPIDocument instance', function() { @@ -67,11 +72,13 @@ describe('utils', function() { }); it('BaseModel instance should not be AsyncAPI document', function() { - expect(isAsyncAPIDocument(new BaseModel({}))).toEqual(false); + expect(isAsyncAPIDocument(new Model({}))).toEqual(false); }); it('AsyncAPIDocument instance should be AsyncAPI document', function() { - expect(isAsyncAPIDocument(newAsyncAPIDocument({ asyncapi: '2.0.0' }))).toEqual(true); + const doc = { asyncapi: '2.0.0' }; + const detailed = createDetailedAsyncAPI(doc, doc); + expect(isAsyncAPIDocument(newAsyncAPIDocument(detailed))).toEqual(true); }); }); @@ -89,15 +96,19 @@ describe('utils', function() { }); it('BaseModel instance should not be AsyncAPI document', function() { - expect(isParsedDocument(new BaseModel({}))).toEqual(false); + expect(isParsedDocument(new Model({}))).toEqual(false); }); it('AsyncAPIDocument instance should not be parsed document', function() { - expect(isParsedDocument(newAsyncAPIDocument({ asyncapi: '2.0.0' }))).toEqual(false); + const doc = { asyncapi: '2.0.0' }; + const detailed = createDetailedAsyncAPI(doc, doc); + expect(isParsedDocument(newAsyncAPIDocument(detailed))).toEqual(false); }); it('AsyncAPIDocument instance with proper extension should not be parsed document', function() { - expect(isParsedDocument(newAsyncAPIDocument({ asyncapi: '2.0.0', [xParserSpecParsed]: true }))).toEqual(false); + const doc = { asyncapi: '2.0.0', [xParserSpecParsed]: true }; + const detailed = createDetailedAsyncAPI(doc, doc); + expect(isParsedDocument(newAsyncAPIDocument(detailed))).toEqual(false); }); it('object with proper extension should be parsed document', function() { @@ -119,15 +130,19 @@ describe('utils', function() { }); it('BaseModel instance should not be AsyncAPI document', function() { - expect(isStringifiedDocument(new BaseModel({}))).toEqual(false); + expect(isStringifiedDocument(new Model({}))).toEqual(false); }); it('AsyncAPIDocument instance should not be parsed document', function() { - expect(isStringifiedDocument(newAsyncAPIDocument({ asyncapi: '2.0.0' }))).toEqual(false); + const doc = { asyncapi: '2.0.0' }; + const detailed = createDetailedAsyncAPI(doc, doc); + expect(isStringifiedDocument(newAsyncAPIDocument(detailed))).toEqual(false); }); it('AsyncAPIDocument instance with proper extension should not be parsed document', function() { - expect(isStringifiedDocument(newAsyncAPIDocument({ asyncapi: '2.0.0', [xParserSpecParsed]: true, [xParserSpecStringified]: true }))).toEqual(false); + const doc = { asyncapi: '2.0.0', [xParserSpecParsed]: true, [xParserSpecStringified]: true }; + const detailed = createDetailedAsyncAPI(doc, doc); + expect(isStringifiedDocument(newAsyncAPIDocument(detailed))).toEqual(false); }); it('object with only stringified extension should not be parsed document', function() { From 49afdba6cd90eac8c4f8810d4cf9845483d3f50e Mon Sep 17 00:00:00 2001 From: souvik Date: Mon, 4 Apr 2022 16:12:09 +0530 Subject: [PATCH 015/126] refactor: port server-variable model to ts (#507) --- src/models/server-variable.ts | 11 +++++++++ src/models/server-variables.ts | 4 ++++ src/models/server.ts | 2 ++ src/models/v2/server-variable.ts | 35 +++++++++++++++++++++++++++ src/models/v2/server-variables.ts | 15 ++++++++++++ src/models/v2/server.ts | 17 ++++++++++++++ src/models/v3/server-variable.ts | 28 ++++++++++++++++++++++ src/models/v3/server-variables.ts | 14 +++++++++++ src/models/v3/server.ts | 17 ++++++++++++++ test/models/v2/server-variable.ts | 39 +++++++++++++++++++++++++++++++ test/models/v2/server.spec.ts | 15 +++++++++++- 11 files changed, 196 insertions(+), 1 deletion(-) create mode 100644 src/models/server-variable.ts create mode 100644 src/models/server-variables.ts create mode 100644 src/models/v2/server-variable.ts create mode 100644 src/models/v2/server-variables.ts create mode 100644 src/models/v3/server-variable.ts create mode 100644 src/models/v3/server-variables.ts create mode 100644 test/models/v2/server-variable.ts diff --git a/src/models/server-variable.ts b/src/models/server-variable.ts new file mode 100644 index 000000000..0f49d4150 --- /dev/null +++ b/src/models/server-variable.ts @@ -0,0 +1,11 @@ +import {BaseModel} from './base'; +import { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; + +export interface ServerVariableInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { + id(): string; + hasDefaultValue(): boolean; + defaultValue(): string | undefined; + hasAllowedValue(): boolean; + allowedValue(): any[] + examples(): Array +} \ No newline at end of file diff --git a/src/models/server-variables.ts b/src/models/server-variables.ts new file mode 100644 index 000000000..4a908a830 --- /dev/null +++ b/src/models/server-variables.ts @@ -0,0 +1,4 @@ +import { Collection } from './collection'; +import { ServerVariableInterface } from './server-variable'; + +export interface ServerVariablesInterface extends Collection { } \ No newline at end of file diff --git a/src/models/server.ts b/src/models/server.ts index 70576066b..92bfc0050 100644 --- a/src/models/server.ts +++ b/src/models/server.ts @@ -1,5 +1,6 @@ import type { BaseModel } from "./base"; import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +import { ServerVariablesInterface } from "./server-variables"; export interface ServerInterface extends BaseModel, DescriptionMixinInterface, BindingsMixinInterface, ExtensionsMixinInterface { id(): string @@ -7,4 +8,5 @@ export interface ServerInterface extends BaseModel, DescriptionMixinInterface, B protocol(): string | undefined; protocolVersion(): string; hasProtocolVersion(): boolean; + variables(): ServerVariablesInterface } \ No newline at end of file diff --git a/src/models/v2/server-variable.ts b/src/models/v2/server-variable.ts new file mode 100644 index 000000000..9325a10fc --- /dev/null +++ b/src/models/v2/server-variable.ts @@ -0,0 +1,35 @@ +import { BaseModel, ModelMetadata } from '../base'; +import { Mixin } from '../utils'; +import { ServerVariableInterface } from '../server-variable'; +import { DescriptionMixin } from './mixins/description'; +import { ExtensionsMixin } from './mixins/extensions'; + + +export class ServerVariable extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements ServerVariableInterface { + constructor( + private readonly _id: string, + _json: Record, + _meta: ModelMetadata = {} as any + ){ + super(_json, _meta); + } + id(): string { + return this._id; + } + hasDefaultValue(): boolean { + return !!this._json.default + } + defaultValue(): string | undefined { + return this._json.default; + } + hasAllowedValue(): boolean { + return !!this._json.enum; + } + allowedValue(): any[] { + return this._json.enum; + } + examples(): string[] { + return this._json.examples + } + +} \ No newline at end of file diff --git a/src/models/v2/server-variables.ts b/src/models/v2/server-variables.ts new file mode 100644 index 000000000..b61cb55d0 --- /dev/null +++ b/src/models/v2/server-variables.ts @@ -0,0 +1,15 @@ +import { ServerVariablesInterface } from '../server-variables'; +import { Collection } from '../collection'; +import { ServerVariableInterface } from '../server-variable'; + +export class ServerVariables extends Collection implements ServerVariablesInterface { + get(id: string): ServerVariableInterface | undefined { + return this.collections.find(serverVariable => serverVariable.id() === id); + } + + has(id: string): boolean { + return this.collections.some(serverVariable => serverVariable.id() === id); + } + +} + diff --git a/src/models/v2/server.ts b/src/models/v2/server.ts index 672af9696..53ac4f6a1 100644 --- a/src/models/v2/server.ts +++ b/src/models/v2/server.ts @@ -7,6 +7,9 @@ import { ExtensionsMixin } from './mixins/extensions'; import type { ModelMetadata } from "../base"; import type { ServerInterface } from '../server'; +import { ServerVariablesInterface } from '../server-variables'; +import { ServerVariables } from './server-variables'; +import { ServerVariable } from './server-variable'; export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, ExtensionsMixin) implements ServerInterface { constructor( @@ -36,4 +39,18 @@ export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, Ex protocolVersion(): string { return this._json.protocolVersion; } + + variables(): ServerVariablesInterface { + return new ServerVariables( + Object.entries( + this._json.variables + ).map( + ([serverVariableName, serverVariable]) => this.createModel( + ServerVariable, serverVariable, { + id: serverVariableName, + pointer: `${this._meta.pointer}/variables/${serverVariableName}` + } + ) + )) + } } \ No newline at end of file diff --git a/src/models/v3/server-variable.ts b/src/models/v3/server-variable.ts new file mode 100644 index 000000000..1f931e83f --- /dev/null +++ b/src/models/v3/server-variable.ts @@ -0,0 +1,28 @@ +import { BaseModel } from '../base'; +import { Mixin } from '../utils'; +import { ServerVariableInterface } from '../server-variable'; +import { DescriptionMixin } from './mixins/description'; +import { ExtensionsMixin } from './mixins/extensions'; + + +export class ServerVariable extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements ServerVariableInterface { + id(): string { + throw new Error('Method not implemented.'); + } + hasDefaultValue(): boolean { + return !!this._json.default + } + defaultValue(): string | undefined { + return this._json.default; + } + hasAllowedValue(): boolean { + return !!this._json.enum + } + allowedValue(): any[] { + return this._json.enum + } + examples(): string[] { + return this._json.examples + } + +} \ No newline at end of file diff --git a/src/models/v3/server-variables.ts b/src/models/v3/server-variables.ts new file mode 100644 index 000000000..037cf7540 --- /dev/null +++ b/src/models/v3/server-variables.ts @@ -0,0 +1,14 @@ +import { ServerVariablesInterface } from '../server-variables'; +import { Collection } from '../collection'; +import { ServerVariableInterface } from '../server-variable'; + +export class ServerVariables extends Collection implements ServerVariablesInterface { + get(id: string): ServerVariableInterface | undefined { + return this.collections.find(serverVariable => serverVariable.id() === id); + } + + has(id: string): boolean { + return this.collections.some(serverVariable => serverVariable.id() === id); + } + +} \ No newline at end of file diff --git a/src/models/v3/server.ts b/src/models/v3/server.ts index 672af9696..4a454b932 100644 --- a/src/models/v3/server.ts +++ b/src/models/v3/server.ts @@ -4,6 +4,9 @@ import { Mixin } from '../utils'; import { BindingsMixin } from './mixins/bindings'; import { DescriptionMixin } from './mixins/description'; import { ExtensionsMixin } from './mixins/extensions'; +import { ServerVariable } from './server-variable'; +import { ServerVariables } from './server-variables'; +import { ServerVariablesInterface } from '../server-variables'; import type { ModelMetadata } from "../base"; import type { ServerInterface } from '../server'; @@ -36,4 +39,18 @@ export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, Ex protocolVersion(): string { return this._json.protocolVersion; } + + variables(): ServerVariablesInterface { + return new ServerVariables( + Object.entries( + this._json.variables + ).map( + ([serverVariableName, serverVariable]) => this.createModel( + ServerVariable, serverVariable, { + id: serverVariableName, + pointer: `${this._meta.pointer}/variables/${serverVariableName}` + } + ) + )) + } } \ No newline at end of file diff --git a/test/models/v2/server-variable.ts b/test/models/v2/server-variable.ts new file mode 100644 index 000000000..4ff3fef4d --- /dev/null +++ b/test/models/v2/server-variable.ts @@ -0,0 +1,39 @@ +import {ServerVariable} from '../../../src/models/v2/server-variable'; + +const doc = { + description: 'Secure connection (TLS) is available through port 8883.', + default: '1883', + enum: ['1883', '8883'] +} + +const sv = new ServerVariable('doc', doc); + +describe('server variable ', function() { + describe('.id()', function() { + expect(sv.id()).toMatch('doc'); + }) + + describe('.hasDefaultValue()', function() { + it('should return true if default value is passed', function(){ + expect(sv.hasDefaultValue()).toBeTruthy(); + }) + }) + + describe('.defaultValue()', function(){ + it('should return default value', function() { + expect(sv.defaultValue()).toMatch(doc.default); + }) + }) + + describe('.hasAllowedValue()', function() { + it('should return true when enum is passed', function(){ + expect(sv.hasAllowedValue()).toBeTruthy(); + }) + }) + + describe('.allowedValue()', function(){ + it('should return enum object', function(){ + expect(sv.allowedValue()).toEqual(doc.enum) + }) + }) +}) \ No newline at end of file diff --git a/test/models/v2/server.spec.ts b/test/models/v2/server.spec.ts index 3a43ee1da..b1f04a4db 100644 --- a/test/models/v2/server.spec.ts +++ b/test/models/v2/server.spec.ts @@ -1,4 +1,5 @@ import { Server } from '../../../src/models/v2/server'; +import {ServerVariables} from '../../../src/models/v2/server-variables'; import { assertDescriptionMixinInheritance, @@ -9,7 +10,13 @@ const doc = { 'development': { protocol: 'mqtt', protocolVersion: '1.0.0', - url: 'development.gigantic-server.com' + url: 'development.gigantic-server.com', + variables: { + username: { + default: 'demo', + description: 'This value is assigned by the service provider, in this example `gigantic-server.com`' + } + } } }; const docItem = new Server('development', doc.development); @@ -54,6 +61,12 @@ describe('Server Model', function () { }); }); + describe('.servers()', function(){ + it('should return ServerVariables object', function(){ + expect(docItem.variables() instanceof ServerVariables).toBeTruthy(); + }) + }) + describe('mixins inheritance', function() { assertDescriptionMixinInheritance(Server); assertExtensionsMixinInheritance(Server); From 12a0a01fece8809c0b3711fd5be588c0cbb4326a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Tue, 5 Apr 2022 15:44:47 +0200 Subject: [PATCH 016/126] refactor: add Parser class (#511) --- src/custom-operations/index.ts | 15 ++++---- src/custom-operations/parse-schema.ts | 9 ++--- src/index.ts | 10 ++---- src/lint.ts | 50 +++++++++++++-------------- src/parse.ts | 29 +++++++++------- src/parser.ts | 48 +++++++++++++++++++++++++ src/schema-parser/index.ts | 37 +++++++++----------- src/types.ts | 13 ------- src/utils.ts | 3 ++ test/lint.spec.ts | 13 ++++--- test/parse.spec.ts | 7 ++-- test/parser.spec.ts | 29 ++++++++++++++++ 12 files changed, 166 insertions(+), 97 deletions(-) create mode 100644 src/parser.ts create mode 100644 test/parser.spec.ts diff --git a/src/custom-operations/index.ts b/src/custom-operations/index.ts index c900d3a02..377dcacc3 100644 --- a/src/custom-operations/index.ts +++ b/src/custom-operations/index.ts @@ -1,27 +1,28 @@ import { applyTraitsV2, applyTraitsV3 } from './apply-traits'; import { parseSchemasV2 } from './parse-schema'; +import type { Parser } from '../parser'; import type { ParseOptions } from "../parse"; import type { DetailedAsyncAPI } from "../types"; -export async function customOperations(detailed: DetailedAsyncAPI, options: ParseOptions): Promise { +export async function customOperations(parser: Parser, detailed: DetailedAsyncAPI, options: ParseOptions): Promise { switch (detailed.semver.major) { - case 2: return operationsV2(detailed, options); - case 3: return operationsV3(detailed, options); + case 2: return operationsV2(parser, detailed, options); + case 3: return operationsV3(parser, detailed, options); } } -async function operationsV2(detailed: DetailedAsyncAPI, options: ParseOptions): Promise { +async function operationsV2(parser: Parser, detailed: DetailedAsyncAPI, options: ParseOptions): Promise { if (options.applyTraits) { applyTraitsV2(detailed.parsed); } if (options.parseSchemas) { - await parseSchemasV2(detailed); + await parseSchemasV2(parser, detailed); } } -async function operationsV3(detailed: DetailedAsyncAPI, options: ParseOptions): Promise { +async function operationsV3(parser: Parser, detailed: DetailedAsyncAPI, options: ParseOptions): Promise { if (options.applyTraits) { applyTraitsV3(detailed.parsed); } -} \ No newline at end of file +} diff --git a/src/custom-operations/parse-schema.ts b/src/custom-operations/parse-schema.ts index 2196368ac..0884d5f41 100644 --- a/src/custom-operations/parse-schema.ts +++ b/src/custom-operations/parse-schema.ts @@ -4,6 +4,7 @@ import { toPath } from 'lodash'; import { parseSchema, getDefaultSchemaFormat } from '../schema-parser'; import { xParserOriginalSchemaFormat } from '../constants'; +import type { Parser } from '../parser'; import type { ParseSchemaInput } from "../schema-parser"; import type { DetailedAsyncAPI } from "../types"; @@ -20,7 +21,7 @@ const customSchemasPathsV2 = [ '$.components.messages.*', ]; -export async function parseSchemasV2(detailed: DetailedAsyncAPI) { +export async function parseSchemasV2(parser: Parser, detailed: DetailedAsyncAPI) { const defaultSchemaFormat = getDefaultSchemaFormat(detailed.parsed.asyncapi as string); const parseItems: Array = []; @@ -57,10 +58,10 @@ export async function parseSchemasV2(detailed: DetailedAsyncAPI) { }); }); - return Promise.all(parseItems.map(parseSchemaV2)); + return Promise.all(parseItems.map(item => parseSchemaV2(parser, item))); } -async function parseSchemaV2(item: ToParseItem) { +async function parseSchemaV2(parser: Parser, item: ToParseItem) { item.value[xParserOriginalSchemaFormat] = item.input.schemaFormat; - item.value.payload = await parseSchema(item.input); + item.value.payload = await parseSchema(parser, item.input); } diff --git a/src/index.ts b/src/index.ts index 6f8386342..178636e8a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,15 +1,11 @@ export * from './models'; -export { lint, validate } from './lint'; -export { parse } from './parse'; +export { Parser } from './parser'; export { stringify, unstringify } from './stringify'; - -export { registerSchemaParser } from './schema-parser'; export { AsyncAPISchemaParser } from './schema-parser/asyncapi-schema-parser'; +export type { AsyncAPISemver, Diagnostic, SchemaValidateResult } from './types'; export type { LintOptions, ValidateOptions, ValidateOutput } from './lint'; +export type { ParseInput, ParseOptions, ParseOutput } from './parse'; export type { StringifyOptions } from './stringify'; -export type { ParseOptions } from './parse'; -export type { AsyncAPISemver, ParserInput, ParserOutput, Diagnostic, SchemaValidateResult } from './types'; - export type { ValidateSchemaInput, ParseSchemaInput, SchemaParser } from './schema-parser' diff --git a/src/lint.ts b/src/lint.ts index 33d2559de..8035c5ead 100644 --- a/src/lint.ts +++ b/src/lint.ts @@ -1,22 +1,19 @@ -import { - IConstructorOpts, - IRunOpts, - Spectral, - Ruleset, - RulesetDefinition, -} from "@stoplight/spectral-core"; -import { asyncapi as aasRuleset } from "@stoplight/spectral-rulesets"; - +import { Document } from "@stoplight/spectral-core"; +import { Yaml } from "@stoplight/spectral-parsers"; import { toAsyncAPIDocument, normalizeInput, hasWarningDiagnostic, hasErrorDiagnostic } from "./utils"; +import type { IRunOpts } from "@stoplight/spectral-core"; +import type { Parser } from './parser'; import type { AsyncAPIDocumentInterface } from "./models/asyncapi"; -import type { ParserInput, Diagnostic } from "./types"; +import type { ParseInput } from "./parse"; +import type { Diagnostic } from "./types"; -export interface LintOptions extends IConstructorOpts, IRunOpts { - ruleset?: RulesetDefinition | Ruleset; +export interface LintOptions extends IRunOpts { + path?: string; } -export interface ValidateOptions extends LintOptions { +export interface ValidateOptions extends IRunOpts { + path?: string; allowedSeverity?: { warning?: boolean; }; @@ -27,20 +24,24 @@ export interface ValidateOutput { diagnostics: Diagnostic[]; } -export async function lint(asyncapi: ParserInput, options?: LintOptions): Promise { +export async function lint(parser: Parser, asyncapi: ParseInput, options?: LintOptions): Promise { + const result = await validate(parser, asyncapi, options); + return result.diagnostics; +} + +export async function validate(parser: Parser, asyncapi: ParseInput, options: ValidateOptions = {}): Promise { if (toAsyncAPIDocument(asyncapi)) { - return; + return { + validated: asyncapi, + diagnostics: [], + } } - const document = normalizeInput(asyncapi as Exclude); - return (await validate(document, options)).diagnostics; -} -export async function validate(asyncapi: string, options?: ValidateOptions): Promise { - const { ruleset, allowedSeverity, ...restOptions } = normalizeOptions(options); - const spectral = new Spectral(restOptions); + const stringifiedDocument = normalizeInput(asyncapi as Exclude); + const document = new Document(stringifiedDocument, Yaml, options.path); - spectral.setRuleset(ruleset!); - let { resolved, results } = await spectral.runWithResolved(asyncapi); + const { allowedSeverity } = normalizeOptions(options); + let { resolved, results } = await parser.spectral.runWithResolved(document); if ( hasErrorDiagnostic(results) || @@ -53,8 +54,6 @@ export async function validate(asyncapi: string, options?: ValidateOptions): Pro } const defaultOptions: ValidateOptions = { - // TODO: fix that type - ruleset: aasRuleset as any, allowedSeverity: { warning: true, } @@ -65,7 +64,6 @@ function normalizeOptions(options?: ValidateOptions): ValidateOptions { } // shall copy options = { ...defaultOptions, ...options }; - // severity options.allowedSeverity = { ...defaultOptions.allowedSeverity, ...(options.allowedSeverity || {}) }; diff --git a/src/parse.ts b/src/parse.ts index 2564f64af..80c952e84 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -2,13 +2,20 @@ import { AsyncAPIDocumentInterface, newAsyncAPIDocument } from "./models"; import { customOperations } from './custom-operations'; import { validate } from "./lint"; -import { stringify, unstringify } from './stringify'; import { createDetailedAsyncAPI, normalizeInput, toAsyncAPIDocument } from "./utils"; import { xParserSpecParsed } from './constants'; -import type { ParserInput, ParserOutput } from './types'; +import type { Parser } from './parser'; import type { ValidateOptions } from './lint'; +import type { MaybeAsyncAPI, Diagnostic } from './types'; + +export type ParseInput = string | MaybeAsyncAPI | AsyncAPIDocumentInterface; +export interface ParseOutput { + source: ParseInput; + parsed: AsyncAPIDocumentInterface | undefined; + diagnostics: Diagnostic[]; +} export interface ParseOptions { applyTraits?: boolean; @@ -16,7 +23,7 @@ export interface ParseOptions { validateOptions?: ValidateOptions; } -export async function parse(asyncapi: ParserInput, options?: ParseOptions): Promise { +export async function parse(parser: Parser, asyncapi: ParseInput, options?: ParseOptions): Promise { let maybeDocument = toAsyncAPIDocument(asyncapi); if (maybeDocument) { return { @@ -27,10 +34,10 @@ export async function parse(asyncapi: ParserInput, options?: ParseOptions): Prom } try { - const document = normalizeInput(asyncapi as Exclude); + const document = normalizeInput(asyncapi as Exclude); options = normalizeOptions(options); - const { validated, diagnostics } = await validate(document, options.validateOptions); + const { validated, diagnostics } = await validate(parser, document, options.validateOptions); if (validated === undefined) { return { source: asyncapi, @@ -39,14 +46,12 @@ export async function parse(asyncapi: ParserInput, options?: ParseOptions): Prom }; } - const doc = { - ...(validated as Record), - [xParserSpecParsed]: true, - } - const parsed = unstringify(stringify(doc))?.json()!; + // unfreeze the object - Spectral makes resolved document "freezed" + const validatedDoc = JSON.parse(JSON.stringify(validated)); + validatedDoc[String(xParserSpecParsed)] = true; - const detailed = createDetailedAsyncAPI(asyncapi as string | Record, parsed); - await customOperations(detailed, options); + const detailed = createDetailedAsyncAPI(asyncapi as string | Record, validatedDoc); + await customOperations(parser, detailed, options); const parsedDoc = newAsyncAPIDocument(detailed); return { diff --git a/src/parser.ts b/src/parser.ts new file mode 100644 index 000000000..3d106fe50 --- /dev/null +++ b/src/parser.ts @@ -0,0 +1,48 @@ +import { Spectral } from "@stoplight/spectral-core"; +import { asyncapi as aasRuleset } from "@stoplight/spectral-rulesets"; + +import { parse } from "./parse"; +import { lint, validate } from "./lint"; +import { registerSchemaParser } from './schema-parser'; + +import type { IConstructorOpts } from "@stoplight/spectral-core"; +import type { ParseInput, ParseOptions } from "./parse"; +import type { LintOptions, ValidateOptions } from "./lint"; +import type { SchemaParser } from './schema-parser'; + +export interface ParserOptions { + spectral?: Spectral | IConstructorOpts; +} + +export class Parser { + public readonly parserRegistry = new Map(); + public readonly spectral: Spectral; + + constructor(options?: ParserOptions) { + const { spectral } = options || {}; + if (spectral instanceof Spectral) { + this.spectral = spectral; + } else { + this.spectral = new Spectral(spectral); + } + + // TODO: fix type + this.spectral.setRuleset(aasRuleset as any); + } + + parse(asyncapi: ParseInput, options?: ParseOptions) { + return parse(this, asyncapi, options); + } + + lint(asyncapi: ParseInput, options?: LintOptions) { + return lint(this, asyncapi, options); + } + + validate(asyncapi: ParseInput, options?: ValidateOptions) { + return validate(this, asyncapi, options); + } + + registerSchemaParser(parser: SchemaParser) { + return registerSchemaParser(this, parser); + } +} diff --git a/src/schema-parser/index.ts b/src/schema-parser/index.ts index e2be6368f..3966782fe 100644 --- a/src/schema-parser/index.ts +++ b/src/schema-parser/index.ts @@ -1,3 +1,4 @@ +import type { Parser } from '../parser'; import type { DetailedAsyncAPI, SchemaValidateResult } from '../types'; export interface ValidateSchemaInput { @@ -24,44 +25,38 @@ export interface SchemaParser { getMimeTypes: () => Array; } -const PARSERS = new Map(); - -export async function validateSchema(input: ParseSchemaInput) { - const parser = getSchemaParser(input.schemaFormat); - if (parser === undefined) { +export async function validateSchema(parser: Parser, input: ParseSchemaInput) { + const schemaParser = parser.parserRegistry.get(input.schemaFormat); + if (schemaParser === undefined) { // throw appropriate error throw new Error(); } - return parser.validate(input); + return schemaParser.validate(input); } -export async function parseSchema(input: ParseSchemaInput) { - const parser = getSchemaParser(input.schemaFormat); - if (parser === undefined) { +export async function parseSchema(parser: Parser, input: ParseSchemaInput) { + const schemaParser = parser.parserRegistry.get(input.schemaFormat); + if (schemaParser === undefined) { return; } - return parser.parse(input); + return schemaParser.parse(input); } -export function registerSchemaParser(parser: SchemaParser) { +export function registerSchemaParser(parser: Parser, schemaParser: SchemaParser) { if ( - typeof parser !== 'object' - || typeof parser.validate !== 'function' - || typeof parser.parse !== 'function' - || typeof parser.getMimeTypes !== 'function' + typeof schemaParser !== 'object' + || typeof schemaParser.validate !== 'function' + || typeof schemaParser.parse !== 'function' + || typeof schemaParser.getMimeTypes !== 'function' ) { throw new Error('custom parser must have "parse()", "validate()" and "getMimeTypes()" functions.'); } - parser.getMimeTypes().forEach(schemaFormat => { - PARSERS.set(schemaFormat, parser); + schemaParser.getMimeTypes().forEach(schemaFormat => { + parser.parserRegistry.set(schemaFormat, schemaParser); }); } -export function getSchemaParser(mimeType: string) { - return PARSERS.get(mimeType); -} - export function getDefaultSchemaFormat(asyncapiVersion: string) { return `application/vnd.aai.asyncapi;version=${asyncapiVersion}`; } diff --git a/src/types.ts b/src/types.ts index 13e882b8a..94f03e353 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,5 +1,4 @@ import type { ISpectralDiagnostic, IFunctionResult } from '@stoplight/spectral-core'; -import type { AsyncAPIDocumentInterface } from './models/asyncapi'; export type MaybeAsyncAPI = { asyncapi: string } & Record; export interface AsyncAPISemver { @@ -16,17 +15,5 @@ export interface DetailedAsyncAPI { semver: AsyncAPISemver; } -export type ParserInput = string | MaybeAsyncAPI | AsyncAPIDocumentInterface; - export type Diagnostic = ISpectralDiagnostic; export type SchemaValidateResult = IFunctionResult; - -export interface ParserOutput { - source: ParserInput; - parsed: AsyncAPIDocumentInterface | undefined; - diagnostics: Diagnostic[]; -} - -export interface Constructor { - new (...args: any[]): T -} \ No newline at end of file diff --git a/src/utils.ts b/src/utils.ts index da88db8ad..0a3db9522 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -62,6 +62,9 @@ export function getSemver(version: string): AsyncAPISemver { } export function normalizeInput(asyncapi: string | MaybeAsyncAPI): string { + if (typeof asyncapi === 'string') { + return asyncapi; + } return JSON.stringify(asyncapi, undefined, 2); }; diff --git a/test/lint.spec.ts b/test/lint.spec.ts index 8e4d657fc..d0ee912c7 100644 --- a/test/lint.spec.ts +++ b/test/lint.spec.ts @@ -1,7 +1,10 @@ import { lint, validate } from '../src/lint'; +import { Parser } from '../src/parser'; import { hasErrorDiagnostic, hasWarningDiagnostic } from '../src/utils'; describe('lint() & validate()', function() { + const parser = new Parser(); + describe('lint()', function() { it('should lint invalid document', async function() { const document = { @@ -12,7 +15,7 @@ describe('lint() & validate()', function() { }, } - const diagnostics = await lint(document); + const diagnostics = await lint(parser, document); if (!diagnostics) { return; } @@ -32,7 +35,7 @@ describe('lint() & validate()', function() { channels: {} } - const diagnostics = await lint(document); + const diagnostics = await lint(parser, document); if (!diagnostics) { return; } @@ -52,7 +55,7 @@ describe('lint() & validate()', function() { version: '1.0', }, }, undefined, 2); - const { validated, diagnostics } = await validate(document); + const { validated, diagnostics } = await validate(parser, document); expect(validated).toBeUndefined(); expect(diagnostics.length > 0).toEqual(true); @@ -67,7 +70,7 @@ describe('lint() & validate()', function() { }, channels: {} }, undefined, 2); - const { validated, diagnostics } = await validate(document); + const { validated, diagnostics } = await validate(parser, document); expect(validated).not.toBeUndefined(); expect(diagnostics.length > 0).toEqual(true); @@ -82,7 +85,7 @@ describe('lint() & validate()', function() { }, channels: {} }, undefined, 2); - const { validated, diagnostics } = await validate(document, { allowedSeverity: { warning: false } }); + const { validated, diagnostics } = await validate(parser, document, { allowedSeverity: { warning: false } }); expect(validated).toBeUndefined(); expect(diagnostics.length > 0).toEqual(true); diff --git a/test/parse.spec.ts b/test/parse.spec.ts index 964fcb4f6..4c4e23c3b 100644 --- a/test/parse.spec.ts +++ b/test/parse.spec.ts @@ -1,7 +1,10 @@ import { AsyncAPIDocumentV2 } from '../src/models'; +import { Parser } from '../src/parser'; import { parse } from '../src/parse'; describe('parse()', function() { + const parser = new Parser(); + it('should parse valid document', async function() { const document = { asyncapi: '2.0.0', @@ -11,7 +14,7 @@ describe('parse()', function() { }, channels: {} } - const { parsed, diagnostics } = await parse(document); + const { parsed, diagnostics } = await parse(parser, document); expect(parsed).toBeInstanceOf(AsyncAPIDocumentV2); expect(diagnostics.length > 0).toEqual(true); @@ -25,7 +28,7 @@ describe('parse()', function() { version: '1.0', }, } - const { parsed, diagnostics } = await parse(document); + const { parsed, diagnostics } = await parse(parser, document); expect(parsed).toEqual(undefined); expect(diagnostics.length > 0).toEqual(true); diff --git a/test/parser.spec.ts b/test/parser.spec.ts new file mode 100644 index 000000000..8f17a0554 --- /dev/null +++ b/test/parser.spec.ts @@ -0,0 +1,29 @@ +import { Spectral } from "@stoplight/spectral-core"; +import { Parser } from '../src/parser'; +import { AsyncAPISchemaParser } from '../src/schema-parser/asyncapi-schema-parser'; + +describe('Parser class', function() { + it('should create Parser instance', async function() { + const parser = new Parser(); + expect(parser).toBeInstanceOf(Parser); + }); + + it('should have default Spectral instance if no instance is specified in the constructor', async function() { + const parser = new Parser(); + expect(parser.spectral).toBeInstanceOf(Spectral); + }); + + it('should have Spectral instance given in constructor', async function() { + const spectral = new Spectral(); + const parser = new Parser({ spectral }); + expect(parser.spectral).toBeInstanceOf(Spectral); + expect(parser.spectral).toEqual(spectral); + }); + + it('should register schema parser', async function() { + const parser = new Parser(); + const schemaParser = AsyncAPISchemaParser(); + parser.registerSchemaParser(schemaParser); + expect(parser.parserRegistry.size).toBeGreaterThan(1); + }); +}); From b7845cfed08e7705928af90ef6325a057f968034 Mon Sep 17 00:00:00 2001 From: souvik Date: Thu, 28 Apr 2022 17:10:50 +0530 Subject: [PATCH 017/126] refactor: port security scheme model to ts (#513) --- src/models/oauth-flow.ts | 10 ++++ src/models/oauth-flows.ts | 14 ++++++ src/models/security-scheme.ts | 18 +++++++ src/models/security-schemes.ts | 4 ++ src/models/v2/index.ts | 8 ++- src/models/v2/oauth-flow.ts | 23 +++++++++ src/models/v2/oauth-flows.ts | 39 +++++++++++++++ src/models/v2/security-scheme.ts | 55 +++++++++++++++++++++ src/models/v2/security-schemes.ts | 12 +++++ src/models/v2/server.ts | 5 +- src/models/v3/index.ts | 8 ++- src/models/v3/oauth-flow.ts | 24 +++++++++ src/models/v3/oauth-flows.ts | 40 +++++++++++++++ src/models/v3/security-scheme.ts | 55 +++++++++++++++++++++ src/models/v3/security-schemes.ts | 12 +++++ src/models/v3/server.ts | 6 ++- test/models/v2/oauth-flow.ts | 34 +++++++++++++ test/models/v2/oauth-flows.ts | 36 ++++++++++++++ test/models/v2/security-scheme.spec.ts | 68 ++++++++++++++++++++++++++ test/models/v2/server.spec.ts | 12 ++--- 20 files changed, 471 insertions(+), 12 deletions(-) create mode 100644 src/models/oauth-flow.ts create mode 100644 src/models/oauth-flows.ts create mode 100644 src/models/security-scheme.ts create mode 100644 src/models/security-schemes.ts create mode 100644 src/models/v2/oauth-flow.ts create mode 100644 src/models/v2/oauth-flows.ts create mode 100644 src/models/v2/security-scheme.ts create mode 100644 src/models/v2/security-schemes.ts create mode 100644 src/models/v3/oauth-flow.ts create mode 100644 src/models/v3/oauth-flows.ts create mode 100644 src/models/v3/security-scheme.ts create mode 100644 src/models/v3/security-schemes.ts create mode 100644 test/models/v2/oauth-flow.ts create mode 100644 test/models/v2/oauth-flows.ts create mode 100644 test/models/v2/security-scheme.spec.ts diff --git a/src/models/oauth-flow.ts b/src/models/oauth-flow.ts new file mode 100644 index 000000000..0fdbc90e6 --- /dev/null +++ b/src/models/oauth-flow.ts @@ -0,0 +1,10 @@ +import { BaseModel } from './base'; +import { ExtensionsMixinInterface } from './mixins'; + +export interface OAuthFlowInterface extends BaseModel, ExtensionsMixinInterface { + authorizationUrl(): string | undefined; + hasRefreshUrl(): boolean; + refreshUrl(): string | undefined; + scopes(): Record | undefined; + tokenUrl(): string | undefined; +} \ No newline at end of file diff --git a/src/models/oauth-flows.ts b/src/models/oauth-flows.ts new file mode 100644 index 000000000..b9e040d3c --- /dev/null +++ b/src/models/oauth-flows.ts @@ -0,0 +1,14 @@ +import { OAuthFlowInterface } from './oauth-flow'; +import { BaseModel } from './base'; +import {ExtensionsMixinInterface} from './mixins'; + +export interface OAuthFlowsInterface extends BaseModel, ExtensionsMixinInterface { + hasAuthorizationCode(): boolean; + authorizationCode(): OAuthFlowInterface | undefined; + hasClientCredentials(): boolean + clientCredentials(): OAuthFlowInterface | undefined; + hasImplicit(): boolean; + implicit(): OAuthFlowInterface | undefined; + hasPassword(): boolean; + password(): OAuthFlowInterface | undefined; +} \ No newline at end of file diff --git a/src/models/security-scheme.ts b/src/models/security-scheme.ts new file mode 100644 index 000000000..d4ab1813e --- /dev/null +++ b/src/models/security-scheme.ts @@ -0,0 +1,18 @@ +import { BaseModel } from './base'; +import { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +import { OAuthFlowsInterface } from './oauth-flows'; + +export type SecuritySchemaType = 'userPassword' | 'apiKey' | 'X509' | 'symmetricEncryption' | 'asymmetricEncryption' | 'httpApiKey' | 'http' | 'oauth2' | 'openIdConnect' | 'plain' | 'scramSha256' | 'scramSha512' | 'gssapi'; + + +export interface SecuritySchemeInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { + id(): string + hasBearerFormat(): boolean; + bearerFormat(): string | undefined; + openIdConnectUrl(): string; + scheme(): string | undefined; + flows(): OAuthFlowsInterface | undefined; + scopes(): string[]; + type(): SecuritySchemaType; + in(): string | undefined; +} \ No newline at end of file diff --git a/src/models/security-schemes.ts b/src/models/security-schemes.ts new file mode 100644 index 000000000..377919fc1 --- /dev/null +++ b/src/models/security-schemes.ts @@ -0,0 +1,4 @@ +import {Collection} from './collection'; +import { SecuritySchemeInterface } from './security-scheme'; + +export interface SecuritySchemesInterface extends Collection {} \ No newline at end of file diff --git a/src/models/v2/index.ts b/src/models/v2/index.ts index 64a301036..2445a397b 100644 --- a/src/models/v2/index.ts +++ b/src/models/v2/index.ts @@ -7,4 +7,10 @@ export { Extensions as ExtensionsV2, Extension as ExtensionV2 } from './mixins/e export { ExternalDocumentation as ExternalDocumentationV2 } from './mixins/external-docs'; export { Tags as TagsV2, Tag as TagV2 } from './mixins/tags'; export { Server as ServerV2 } from './server'; -export { Servers as ServersV2 } from './servers'; \ No newline at end of file +export { Servers as ServersV2 } from './servers'; +export { SecurityScheme as SecuritySchemeV2 } from './security-scheme'; +export { SecuritySchemes as SecuritySchemesV2 } from './security-schemes'; +export { ServerVariable as ServerVariableV2 } from './server-variable'; +export { ServerVariables as ServerVariablesV2 } from './server-variables'; +export {OAuthFlow as OAuthFlowV2} from './oauth-flow'; +export {OAuthFlows as OAuthFlowsV2} from './oauth-flows'; diff --git a/src/models/v2/oauth-flow.ts b/src/models/v2/oauth-flow.ts new file mode 100644 index 000000000..2891357f9 --- /dev/null +++ b/src/models/v2/oauth-flow.ts @@ -0,0 +1,23 @@ +import { OAuthFlowInterface } from '../oauth-flow'; +import { BaseModel } from '../base'; +import { Mixin } from '../utils'; +import { ExtensionsMixin } from './mixins/extensions'; + +export class OAuthFlow extends Mixin(BaseModel, ExtensionsMixin) implements OAuthFlowInterface { + authorizationUrl(): string | undefined { + return this._json.authorizationUrl; + } + hasRefreshUrl(): boolean { + return !!this._json.refreshUrl; + } + refreshUrl(): string | undefined { + return this._json.refreshUrl; + } + scopes(): Record | undefined { + return this._json.scopes; + } + tokenUrl(): string | undefined { + return this._json.tokenUrl; + } + +} \ No newline at end of file diff --git a/src/models/v2/oauth-flows.ts b/src/models/v2/oauth-flows.ts new file mode 100644 index 000000000..51399a416 --- /dev/null +++ b/src/models/v2/oauth-flows.ts @@ -0,0 +1,39 @@ +import { OAuthFlowsInterface } from '../oauth-flows'; +import { BaseModel } from '../base'; +import { Mixin } from '../utils'; +import { ExtensionsMixin } from './mixins/extensions'; +import { OAuthFlowInterface } from 'models/oauth-flow'; +import { OAuthFlow } from './oauth-flow'; + +export class OAuthFlows extends Mixin(BaseModel, ExtensionsMixin) implements OAuthFlowsInterface { + hasAuthorizationCode(): boolean { + return !!this._json.authorizationCode; + } + authorizationCode(): OAuthFlowInterface | undefined { + if (!this._json.authorizationCode) return undefined; + return new OAuthFlow(this._json.authorizationCode); + } + hasClientCredentials(): boolean { + return !!this._json.clientCredentials; + } + clientCredentials(): OAuthFlowInterface | undefined { + if (!this._json.clientCredentials) return undefined; + return new OAuthFlow(this._json.clientCredentials); + } + hasImplicit(): boolean { + return !!this._json.implicit; + } + implicit(): OAuthFlowInterface | undefined { + if (!this._json.implicit) return undefined; + return new OAuthFlow(this._json.implicit); + } + hasPassword(): boolean { + return !!this._json.password; + } + password(): OAuthFlowInterface | undefined { + if (!this._json.password) return undefined; + return new OAuthFlow(this._json.password); + } + + +} \ No newline at end of file diff --git a/src/models/v2/security-scheme.ts b/src/models/v2/security-scheme.ts new file mode 100644 index 000000000..ce2785970 --- /dev/null +++ b/src/models/v2/security-scheme.ts @@ -0,0 +1,55 @@ +import { BaseModel, ModelMetadata } from '../base'; +import { Mixin } from '../utils'; +import { DescriptionMixin } from './mixins/description'; +import { ExtensionsMixin } from './mixins/extensions'; +import { SecuritySchemaType, SecuritySchemeInterface } from '../security-scheme'; +import { OAuthFlowsInterface } from 'models/oauth-flows'; +import { OAuthFlows } from './oauth-flows'; + +export class SecurityScheme extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements SecuritySchemeInterface { + constructor( + private readonly _id: string, + _json: Record, + _meta: ModelMetadata = {} as any + ) { + super(_json, _meta); + } + + id(): string { + return this._id; + } + + hasBearerFormat(): boolean { + return !!this._json.bearerFormat; + } + + bearerFormat(): string | undefined { + return this._json.bearerFormat; + } + + openIdConnectUrl(): string { + return this._json.openIdConnectUrl; + } + + scheme(): string | undefined { + return this._json.scheme + } + + flows(): OAuthFlowsInterface | undefined { + if(!this._json.flows) return undefined; + return new OAuthFlows(this._json.flows); + } + + scopes(): string[] { + return this._json.scopes; + } + + type(): SecuritySchemaType { + return this._json.type; + } + + in(): string | undefined { + return this._json.in; + } + +} \ No newline at end of file diff --git a/src/models/v2/security-schemes.ts b/src/models/v2/security-schemes.ts new file mode 100644 index 000000000..500ded280 --- /dev/null +++ b/src/models/v2/security-schemes.ts @@ -0,0 +1,12 @@ +import { SecuritySchemesInterface } from '../security-schemes'; +import { Collection } from '../collection'; +import { SecuritySchemeInterface } from '../security-scheme'; + +export class SecuritySchemes extends Collection implements SecuritySchemesInterface { + get(id: string): SecuritySchemeInterface | undefined { + return this.collections.find(securityScheme => securityScheme.id() === id); + } + has(id: string): boolean { + return this.collections.some(securityScheme => securityScheme.id() === id); + } +} \ No newline at end of file diff --git a/src/models/v2/server.ts b/src/models/v2/server.ts index 53ac4f6a1..165e82a3d 100644 --- a/src/models/v2/server.ts +++ b/src/models/v2/server.ts @@ -47,10 +47,11 @@ export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, Ex ).map( ([serverVariableName, serverVariable]) => this.createModel( ServerVariable, serverVariable, { - id: serverVariableName, - pointer: `${this._meta.pointer}/variables/${serverVariableName}` + id: serverVariableName, + pointer: `${this._meta.pointer}/variables/${serverVariableName}` } ) )) } + } \ No newline at end of file diff --git a/src/models/v3/index.ts b/src/models/v3/index.ts index c974ffbeb..053a83fa4 100644 --- a/src/models/v3/index.ts +++ b/src/models/v3/index.ts @@ -7,4 +7,10 @@ export { Extensions as ExtensionsV3, Extension as ExtensionV3 } from './mixins/e export { ExternalDocumentation as ExternalDocumentationV3 } from './mixins/external-docs'; export { Tags as TagsV3, Tag as TagV3 } from './mixins/tags'; export { Server as ServerV3 } from './server'; -export { Servers as ServersV3 } from './servers'; \ No newline at end of file +export { Servers as ServersV3 } from './servers'; +export { SecurityScheme as SecuritySchemeV3 } from './security-scheme'; +export { SecuritySchemes as SecuritySchemesV3 } from './security-schemes'; +export { ServerVariable as ServerVariableV3 } from './server-variable'; +export { ServerVariables as ServerVariablesV3 } from './server-variables'; +export {OAuthFlow as OAuthFlowV3} from './oauth-flow'; +export {OAuthFlows as OAuthFlowsV3} from './oauth-flows'; diff --git a/src/models/v3/oauth-flow.ts b/src/models/v3/oauth-flow.ts new file mode 100644 index 000000000..70cb6846f --- /dev/null +++ b/src/models/v3/oauth-flow.ts @@ -0,0 +1,24 @@ + +import { OAuthFlowInterface } from '../oauth-flow'; +import { BaseModel } from '../base'; +import { Mixin } from '../utils'; +import { ExtensionsMixin } from './mixins/extensions'; + +export class OAuthFlow extends Mixin(BaseModel, ExtensionsMixin) implements OAuthFlowInterface { + authorizationUrl(): string | undefined { + return this._json.authorizationUrl; + } + hasRefreshUrl(): boolean { + return !!this._json.refreshUrl; + } + refreshUrl(): string | undefined { + return this._json.refreshUrl; + } + scopes(): Record | undefined { + return this._json.scopes; + } + tokenUrl(): string | undefined { + return this._json.tokenUrl; + } + +} \ No newline at end of file diff --git a/src/models/v3/oauth-flows.ts b/src/models/v3/oauth-flows.ts new file mode 100644 index 000000000..592f49ab7 --- /dev/null +++ b/src/models/v3/oauth-flows.ts @@ -0,0 +1,40 @@ + +import { OAuthFlowsInterface } from '../oauth-flows'; +import { BaseModel } from '../base'; +import { Mixin } from '../utils'; +import { ExtensionsMixin } from './mixins/extensions'; +import { OAuthFlowInterface } from 'models/oauth-flow'; +import { OAuthFlow } from './oauth-flow'; + +export class OAuthFlows extends Mixin(BaseModel, ExtensionsMixin) implements OAuthFlowsInterface { + hasAuthorizationCode(): boolean { + return !!this._json.authorizationCode; + } + authorizationCode(): OAuthFlowInterface | undefined { + if (!this._json.authorizationCode) return undefined; + return new OAuthFlow(this._json.authorizationCode); + } + hasClientCredentials(): boolean { + return !!this._json.clientCredentials; + } + clientCredentials(): OAuthFlowInterface | undefined { + if (!this._json.clientCredentials) return undefined; + return new OAuthFlow(this._json.clientCredentials); + } + hasImplicit(): boolean { + return !!this._json.implicit; + } + implicit(): OAuthFlowInterface | undefined { + if (!this._json.implicit) return undefined; + return new OAuthFlow(this._json.implicit); + } + hasPassword(): boolean { + return !!this._json.password; + } + password(): OAuthFlowInterface | undefined { + if (!this._json.password) return undefined; + return new OAuthFlow(this._json.password); + } + + +} \ No newline at end of file diff --git a/src/models/v3/security-scheme.ts b/src/models/v3/security-scheme.ts new file mode 100644 index 000000000..ce2785970 --- /dev/null +++ b/src/models/v3/security-scheme.ts @@ -0,0 +1,55 @@ +import { BaseModel, ModelMetadata } from '../base'; +import { Mixin } from '../utils'; +import { DescriptionMixin } from './mixins/description'; +import { ExtensionsMixin } from './mixins/extensions'; +import { SecuritySchemaType, SecuritySchemeInterface } from '../security-scheme'; +import { OAuthFlowsInterface } from 'models/oauth-flows'; +import { OAuthFlows } from './oauth-flows'; + +export class SecurityScheme extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements SecuritySchemeInterface { + constructor( + private readonly _id: string, + _json: Record, + _meta: ModelMetadata = {} as any + ) { + super(_json, _meta); + } + + id(): string { + return this._id; + } + + hasBearerFormat(): boolean { + return !!this._json.bearerFormat; + } + + bearerFormat(): string | undefined { + return this._json.bearerFormat; + } + + openIdConnectUrl(): string { + return this._json.openIdConnectUrl; + } + + scheme(): string | undefined { + return this._json.scheme + } + + flows(): OAuthFlowsInterface | undefined { + if(!this._json.flows) return undefined; + return new OAuthFlows(this._json.flows); + } + + scopes(): string[] { + return this._json.scopes; + } + + type(): SecuritySchemaType { + return this._json.type; + } + + in(): string | undefined { + return this._json.in; + } + +} \ No newline at end of file diff --git a/src/models/v3/security-schemes.ts b/src/models/v3/security-schemes.ts new file mode 100644 index 000000000..500ded280 --- /dev/null +++ b/src/models/v3/security-schemes.ts @@ -0,0 +1,12 @@ +import { SecuritySchemesInterface } from '../security-schemes'; +import { Collection } from '../collection'; +import { SecuritySchemeInterface } from '../security-scheme'; + +export class SecuritySchemes extends Collection implements SecuritySchemesInterface { + get(id: string): SecuritySchemeInterface | undefined { + return this.collections.find(securityScheme => securityScheme.id() === id); + } + has(id: string): boolean { + return this.collections.some(securityScheme => securityScheme.id() === id); + } +} \ No newline at end of file diff --git a/src/models/v3/server.ts b/src/models/v3/server.ts index 4a454b932..ce67bb8bb 100644 --- a/src/models/v3/server.ts +++ b/src/models/v3/server.ts @@ -11,6 +11,7 @@ import { ServerVariablesInterface } from '../server-variables'; import type { ModelMetadata } from "../base"; import type { ServerInterface } from '../server'; + export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, ExtensionsMixin) implements ServerInterface { constructor( private readonly _id: string, @@ -47,10 +48,11 @@ export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, Ex ).map( ([serverVariableName, serverVariable]) => this.createModel( ServerVariable, serverVariable, { - id: serverVariableName, - pointer: `${this._meta.pointer}/variables/${serverVariableName}` + id: serverVariableName, + pointer: `${this._meta.pointer}/variables/${serverVariableName}` } ) )) } + } \ No newline at end of file diff --git a/test/models/v2/oauth-flow.ts b/test/models/v2/oauth-flow.ts new file mode 100644 index 000000000..3bddb0e84 --- /dev/null +++ b/test/models/v2/oauth-flow.ts @@ -0,0 +1,34 @@ +import { OAuthFlow } from '../../../src/models/v2/oauth-flow'; + +const flowObject = { + "authorizationUrl": "https://example.com/api/oauth/dialog", + "scopes": { + "write:pets": "modify pets in your account", + "read:pets": "read your pets" + } +} + +const flow = new OAuthFlow(flowObject); +const emptyObject = new OAuthFlow({}); + + +describe('OAuth Flow', function(){ + describe('.authorizationUrl()', function(){ + it('should reutrn undefined if no authorizationUrl present', function(){ + expect(emptyObject.authorizationUrl()).toBeUndefined(); + }) + + it('should return authrozationUrl ', function(){ + expect(flow.authorizationUrl()).toMatch(flowObject.authorizationUrl); + }) + }) + + describe('.scopes()', function() { + it('should return scopes if present', function() { + expect(emptyObject.scopes()).toBeUndefined(); + expect(flow.scopes()['write:pets']).toMatch(flowObject.scopes['write:pets']); + }) + }) + + +}) \ No newline at end of file diff --git a/test/models/v2/oauth-flows.ts b/test/models/v2/oauth-flows.ts new file mode 100644 index 000000000..3f85ab013 --- /dev/null +++ b/test/models/v2/oauth-flows.ts @@ -0,0 +1,36 @@ +import {OAuthFlows} from '../../../src/models/v2/oauth-flows'; +import {OAuthFlow} from '../../../src/models/v2/oauth-flow'; + +const oAuthFlowsObject = { + "implicit": { + "authorizationUrl": "https://example.com/api/oauth/dialog", + "scopes": { + "write:pets": "modify pets in your account", + "read:pets": "read your pets" + } + }, + "authorizationCode": { + "authorizationUrl": "https://example.com/api/oauth/dialog", + "tokenUrl": "https://example.com/api/oauth/token", + "scopes": { + "write:pets": "modify pets in your account", + "read:pets": "read your pets" + } + } +} + +const flows = new OAuthFlows(oAuthFlowsObject); + +describe('OAuth Flows', function() { + describe('.hasImplicit()', function(){ + it('should return true', function(){ + expect(flows.hasImplicit()).toBeTruthy(); + }) + }) + + describe('.implicit()', function() { + it('should return OAuthflow object', function() { + expect(flows.implicit() instanceof OAuthFlow).toBeTruthy(); + }) + }) +}) \ No newline at end of file diff --git a/test/models/v2/security-scheme.spec.ts b/test/models/v2/security-scheme.spec.ts new file mode 100644 index 000000000..e8e8ae590 --- /dev/null +++ b/test/models/v2/security-scheme.spec.ts @@ -0,0 +1,68 @@ +import { SecurityScheme } from '../../../src/models/v2/security-scheme'; +import {OAuthFlows} from '../../../src/models/v2/oauth-flows'; + +const doc1 = { + type: 'http', + in: 'header', + scheme: 'bearer', + bearerFormat: 'JWT', + openIdConnectUrl: 'https://server.com/.well-known/openid-configuration', + flows: { + implicit: { + authorizationUrl: "https://example.com/api/oauth/dialog", + scopes: { + "write:pets": "modify pets in your account", + "read:pets": "read your pets" + } + } + } +} + +const sc1 = new SecurityScheme('api_key', doc1); +const emptyItem = new SecurityScheme('', {}); + +describe('Security Scheme', function () { + describe('.id()', function () { + it('should return name if present', function () { + expect(sc1.id()).toMatch('api_key'); + }); + }) + + describe('.type()', function () { + it('should return type when it is present', function () { + expect(sc1.type()).toMatch(doc1.type); + }) + }) + + describe('.hasBearerFormat()', function () { + it('should return true if bearerFormat is present', function () { + expect(sc1.hasBearerFormat()).toBeTruthy(); + }) + + it('should return false if bearerFormat is not present', function () { + expect(emptyItem.hasBearerFormat()).toBeFalsy(); + }) + }) + + describe('.in()', function () { + it('should return in if present', function () { + expect(sc1.in()).toMatch(doc1.in); + expect(emptyItem.in()).toBeUndefined(); + }) + }) + + describe('.openIdConnectUrl()', function () { + it('should return openIdConnectUrl value', function () { + expect(sc1.openIdConnectUrl()).toMatch(doc1.openIdConnectUrl); + }) + }) + describe('.flows()', function () { + it('should return undefined if flow object is not present', function () { + expect(emptyItem.flows()).toBeUndefined(); + }); + + it('should return OAuthFlows object', function() { + expect(sc1.flows() instanceof OAuthFlows).toBeTruthy(); + }) + }) +}) diff --git a/test/models/v2/server.spec.ts b/test/models/v2/server.spec.ts index b1f04a4db..39dcc7f7f 100644 --- a/test/models/v2/server.spec.ts +++ b/test/models/v2/server.spec.ts @@ -1,7 +1,7 @@ import { Server } from '../../../src/models/v2/server'; -import {ServerVariables} from '../../../src/models/v2/server-variables'; +import { ServerVariables } from '../../../src/models/v2/server-variables'; -import { +import { assertDescriptionMixinInheritance, assertExtensionsMixinInheritance, } from './mixins/inheritance'; @@ -20,7 +20,7 @@ const doc = { } }; const docItem = new Server('development', doc.development); -const emptyItem = new Server('',{}); +const emptyItem = new Server('', {}); describe('Server Model', function () { describe('.id()', function () { @@ -61,13 +61,13 @@ describe('Server Model', function () { }); }); - describe('.servers()', function(){ - it('should return ServerVariables object', function(){ + describe('.servers()', function () { + it('should return ServerVariables object', function () { expect(docItem.variables() instanceof ServerVariables).toBeTruthy(); }) }) - describe('mixins inheritance', function() { + describe('mixins inheritance', function () { assertDescriptionMixinInheritance(Server); assertExtensionsMixinInheritance(Server); }); From e444b879473b556b6716db1e36f2d9789abb111e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Thu, 28 Apr 2022 19:16:51 +0200 Subject: [PATCH 018/126] refactor: add all missed interfaces (#538) --- src/models/channel-parameter.ts | 3 +++ src/models/channel-parameters.ts | 4 ++++ src/models/channel.ts | 3 +++ src/models/channels.ts | 4 ++++ src/models/collection.ts | 4 ++-- src/models/components.ts | 32 ++++++++++++++++++++++++++++++++ src/models/contact.ts | 1 - src/models/correlation-id.ts | 3 +++ src/models/info.ts | 1 - src/models/license.ts | 1 - src/models/message-example.ts | 3 +++ src/models/message-trait.ts | 3 +++ src/models/message-traits.ts | 4 ++++ src/models/message.ts | 4 ++++ src/models/messages.ts | 4 ++++ src/models/operation-trait.ts | 3 +++ src/models/operation-traits.ts | 4 ++++ src/models/operation.ts | 4 ++++ src/models/operations.ts | 4 ++++ src/models/schema.ts | 3 +++ src/models/schemas.ts | 4 ++++ src/models/server-variable.ts | 18 +++++++++--------- src/models/server-variables.ts | 4 ++-- src/models/server.ts | 2 +- src/models/servers.ts | 4 ++-- src/models/utils.ts | 10 ---------- 26 files changed, 105 insertions(+), 29 deletions(-) create mode 100644 src/models/channel-parameter.ts create mode 100644 src/models/channel-parameters.ts create mode 100644 src/models/channel.ts create mode 100644 src/models/channels.ts create mode 100644 src/models/components.ts create mode 100644 src/models/correlation-id.ts create mode 100644 src/models/message-example.ts create mode 100644 src/models/message-trait.ts create mode 100644 src/models/message-traits.ts create mode 100644 src/models/message.ts create mode 100644 src/models/messages.ts create mode 100644 src/models/operation-trait.ts create mode 100644 src/models/operation-traits.ts create mode 100644 src/models/operation.ts create mode 100644 src/models/operations.ts create mode 100644 src/models/schema.ts create mode 100644 src/models/schemas.ts diff --git a/src/models/channel-parameter.ts b/src/models/channel-parameter.ts new file mode 100644 index 000000000..bc60be07b --- /dev/null +++ b/src/models/channel-parameter.ts @@ -0,0 +1,3 @@ +import type { BaseModel } from "./base"; + +export interface ChannelParameterInterface extends BaseModel {} diff --git a/src/models/channel-parameters.ts b/src/models/channel-parameters.ts new file mode 100644 index 000000000..07ef58853 --- /dev/null +++ b/src/models/channel-parameters.ts @@ -0,0 +1,4 @@ +import type { Collection } from "./collection"; +import type { ChannelParameterInterface } from "./channel-parameter"; + +export interface ChannelParametersInterface extends Collection {} \ No newline at end of file diff --git a/src/models/channel.ts b/src/models/channel.ts new file mode 100644 index 000000000..75dae611b --- /dev/null +++ b/src/models/channel.ts @@ -0,0 +1,3 @@ +import type { BaseModel } from "./base"; + +export interface ChannelInterface extends BaseModel {} diff --git a/src/models/channels.ts b/src/models/channels.ts new file mode 100644 index 000000000..7383d16e0 --- /dev/null +++ b/src/models/channels.ts @@ -0,0 +1,4 @@ +import type { Collection } from "./collection"; +import type { ChannelInterface } from "./channel"; + +export interface ChannelsInterface extends Collection {} \ No newline at end of file diff --git a/src/models/collection.ts b/src/models/collection.ts index 9e8c89604..05c83c6ab 100644 --- a/src/models/collection.ts +++ b/src/models/collection.ts @@ -1,6 +1,6 @@ import type { BaseModel } from "./base"; -export abstract class Collection extends Array { +export abstract class Collection> extends Array { constructor( protected readonly collections: T[] ) { @@ -17,4 +17,4 @@ export abstract class Collection extends Array { isEmpty(): boolean { return this.collections.length === 0; } -} \ No newline at end of file +} diff --git a/src/models/components.ts b/src/models/components.ts new file mode 100644 index 000000000..9bca87a5a --- /dev/null +++ b/src/models/components.ts @@ -0,0 +1,32 @@ +import type { BaseModel } from './base'; +import type { Collection } from './collection'; +import type { ServersInterface } from './servers'; +import type { ChannelsInterface } from './channels'; +import type { OperationsInterface } from './operations'; +import type { OperationsTraitsInterface } from './operation-traits'; +import type { MessagesInterface } from './messages'; +import type { MessagesTraitsInterface } from './message-traits'; +import type { SchemasInterface } from './schemas'; +import type { ChannelParametersInterface } from './channel-parameters'; +import type { ServerVariablesInterface } from './server-variables'; +import type { CorrelationIdInterface } from './correlation-id'; +import type { BindingsInterface } from './bindings'; +import type { ExtensionsMixinInterface } from './mixins'; + +export interface Components extends BaseModel, ExtensionsMixinInterface { + servers(): ServersInterface; + channels(): ChannelsInterface; + operations(): OperationsInterface; + messages(): MessagesInterface; + schemas(): SchemasInterface; + channelParameters(): ChannelParametersInterface; + serverVariables(): ServerVariablesInterface; + operationTraits(): OperationsTraitsInterface; + messageTraits(): MessagesTraitsInterface; + correlationIds(): Collection; + securitySchemes(): any; // TODO: Fix type after merging Souvik PR + serverBindings(): Collection; + channelBindings(): Collection; + operationBindings(): Collection; + messageBindings(): Collection; +} diff --git a/src/models/contact.ts b/src/models/contact.ts index 709299095..f21dce2f7 100644 --- a/src/models/contact.ts +++ b/src/models/contact.ts @@ -1,5 +1,4 @@ import type { BaseModel } from "./base"; - import type { ExtensionsMixinInterface } from "./mixins"; export interface ContactInterface extends BaseModel, ExtensionsMixinInterface { diff --git a/src/models/correlation-id.ts b/src/models/correlation-id.ts new file mode 100644 index 000000000..347908f40 --- /dev/null +++ b/src/models/correlation-id.ts @@ -0,0 +1,3 @@ +import type { BaseModel } from "./base"; + +export interface CorrelationIdInterface extends BaseModel {} diff --git a/src/models/info.ts b/src/models/info.ts index 64c97df5a..4bb02e3f7 100644 --- a/src/models/info.ts +++ b/src/models/info.ts @@ -1,7 +1,6 @@ import type { ContactInterface } from "./contact"; import type { LicenseInterface } from "./license"; import type { BaseModel } from "./base"; - import type { DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from "./mixins"; export interface InfoInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { diff --git a/src/models/license.ts b/src/models/license.ts index b98f88e2a..42e254961 100644 --- a/src/models/license.ts +++ b/src/models/license.ts @@ -1,5 +1,4 @@ import type { BaseModel } from "./base"; - import type { ExtensionsMixinInterface } from "./mixins"; export interface LicenseInterface extends BaseModel, ExtensionsMixinInterface { diff --git a/src/models/message-example.ts b/src/models/message-example.ts new file mode 100644 index 000000000..273f24b1c --- /dev/null +++ b/src/models/message-example.ts @@ -0,0 +1,3 @@ +import type { BaseModel } from "./base"; + +export interface MessageExample extends BaseModel {} diff --git a/src/models/message-trait.ts b/src/models/message-trait.ts new file mode 100644 index 000000000..b148318c0 --- /dev/null +++ b/src/models/message-trait.ts @@ -0,0 +1,3 @@ +import type { BaseModel } from "./base"; + +export interface MessageTraitInterface extends BaseModel {} diff --git a/src/models/message-traits.ts b/src/models/message-traits.ts new file mode 100644 index 000000000..3730bbde7 --- /dev/null +++ b/src/models/message-traits.ts @@ -0,0 +1,4 @@ +import type { Collection } from "./collection"; +import type { MessageTraitInterface } from "./message-trait"; + +export interface MessagesTraitsInterface extends Collection {} \ No newline at end of file diff --git a/src/models/message.ts b/src/models/message.ts new file mode 100644 index 000000000..25c764a1f --- /dev/null +++ b/src/models/message.ts @@ -0,0 +1,4 @@ +import type { BaseModel } from "./base"; +import type { MessageTraitInterface } from "./message-trait"; + +export interface MessageInterface extends BaseModel, MessageTraitInterface {} diff --git a/src/models/messages.ts b/src/models/messages.ts new file mode 100644 index 000000000..c48a45dab --- /dev/null +++ b/src/models/messages.ts @@ -0,0 +1,4 @@ +import type { Collection } from "./collection"; +import type { MessageInterface } from "./message"; + +export interface MessagesInterface extends Collection {} \ No newline at end of file diff --git a/src/models/operation-trait.ts b/src/models/operation-trait.ts new file mode 100644 index 000000000..fe7ca9039 --- /dev/null +++ b/src/models/operation-trait.ts @@ -0,0 +1,3 @@ +import type { BaseModel } from "./base"; + +export interface OperationTraitInterface extends BaseModel {} diff --git a/src/models/operation-traits.ts b/src/models/operation-traits.ts new file mode 100644 index 000000000..31e8bcc8f --- /dev/null +++ b/src/models/operation-traits.ts @@ -0,0 +1,4 @@ +import type { Collection } from "./collection"; +import type { OperationTraitInterface } from "./operation-trait"; + +export interface OperationsTraitsInterface extends Collection {} \ No newline at end of file diff --git a/src/models/operation.ts b/src/models/operation.ts new file mode 100644 index 000000000..5eeaaef04 --- /dev/null +++ b/src/models/operation.ts @@ -0,0 +1,4 @@ +import type { BaseModel } from "./base"; +import type { OperationTraitInterface } from "./operation-trait"; + +export interface OperationInterface extends BaseModel, OperationTraitInterface {} diff --git a/src/models/operations.ts b/src/models/operations.ts new file mode 100644 index 000000000..199e19e85 --- /dev/null +++ b/src/models/operations.ts @@ -0,0 +1,4 @@ +import type { Collection } from "./collection"; +import type { OperationInterface } from "./operation"; + +export interface OperationsInterface extends Collection {} \ No newline at end of file diff --git a/src/models/schema.ts b/src/models/schema.ts new file mode 100644 index 000000000..5a8af5d6e --- /dev/null +++ b/src/models/schema.ts @@ -0,0 +1,3 @@ +import type { BaseModel } from "./base"; + +export interface SchemaInterface extends BaseModel {} diff --git a/src/models/schemas.ts b/src/models/schemas.ts new file mode 100644 index 000000000..394fd6552 --- /dev/null +++ b/src/models/schemas.ts @@ -0,0 +1,4 @@ +import type { Collection } from "./collection"; +import type { SchemaInterface } from "./schema"; + +export interface SchemasInterface extends Collection {} diff --git a/src/models/server-variable.ts b/src/models/server-variable.ts index 0f49d4150..906b7063a 100644 --- a/src/models/server-variable.ts +++ b/src/models/server-variable.ts @@ -1,11 +1,11 @@ -import {BaseModel} from './base'; -import { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +import type { BaseModel } from './base'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; export interface ServerVariableInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { - id(): string; - hasDefaultValue(): boolean; - defaultValue(): string | undefined; - hasAllowedValue(): boolean; - allowedValue(): any[] - examples(): Array -} \ No newline at end of file + id(): string; + hasDefaultValue(): boolean; + defaultValue(): string | undefined; + hasAllowedValue(): boolean; + allowedValue(): Array; + examples(): Array; +} diff --git a/src/models/server-variables.ts b/src/models/server-variables.ts index 4a908a830..3438381c1 100644 --- a/src/models/server-variables.ts +++ b/src/models/server-variables.ts @@ -1,4 +1,4 @@ -import { Collection } from './collection'; -import { ServerVariableInterface } from './server-variable'; +import type { Collection } from './collection'; +import type { ServerVariableInterface } from './server-variable'; export interface ServerVariablesInterface extends Collection { } \ No newline at end of file diff --git a/src/models/server.ts b/src/models/server.ts index 92bfc0050..5f673b886 100644 --- a/src/models/server.ts +++ b/src/models/server.ts @@ -1,6 +1,6 @@ import type { BaseModel } from "./base"; import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; -import { ServerVariablesInterface } from "./server-variables"; +import type { ServerVariablesInterface } from "./server-variables"; export interface ServerInterface extends BaseModel, DescriptionMixinInterface, BindingsMixinInterface, ExtensionsMixinInterface { id(): string diff --git a/src/models/servers.ts b/src/models/servers.ts index d8360d487..23b9a33e3 100644 --- a/src/models/servers.ts +++ b/src/models/servers.ts @@ -1,4 +1,4 @@ -import { Collection } from "./collection"; -import {ServerInterface} from "./server"; +import type { Collection } from "./collection"; +import type { ServerInterface } from "./server"; export interface ServersInterface extends Collection {} \ No newline at end of file diff --git a/src/models/utils.ts b/src/models/utils.ts index c97451818..2da3454f4 100644 --- a/src/models/utils.ts +++ b/src/models/utils.ts @@ -33,13 +33,3 @@ function mixin(derivedCtor: any, constructors: any[]): typeof BaseModel { }); return derivedCtor; } - -export function createArrayFromMap(json: Record){ - const ArrayObject = []; - for (const [key, value] of Object.entries(json)) { - value['id'] = key; - ArrayObject.push(value); - }; - - return ArrayObject; -} \ No newline at end of file From 3627d02230e1e77061aadf37cb5fc89bdfc31765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Fri, 6 May 2022 09:59:08 +0200 Subject: [PATCH 019/126] refactor: port message, operation, correlation-id and security-requirements models (#542) --- src/models/asyncapi.ts | 4 +- src/models/base.ts | 8 +- src/models/channel-parameter.ts | 10 +- src/models/channel.ts | 12 +- src/models/components.ts | 11 +- src/models/correlation-id.ts | 6 +- src/models/message-example.ts | 12 +- src/models/message-examples.ts | 4 + src/models/message-trait.ts | 23 ++- src/models/message-traits.ts | 2 +- src/models/message.ts | 8 +- src/models/oauth-flow.ts | 12 +- src/models/oauth-flows.ts | 24 +-- src/models/operation-trait.ts | 13 +- src/models/operation-traits.ts | 2 +- src/models/operation.ts | 9 +- src/models/schema.ts | 3 +- src/models/security-scheme.ts | 27 ++- src/models/security-schemes.ts | 6 +- src/models/server-variable.ts | 4 +- src/models/server.ts | 8 +- src/models/v2/asyncapi.ts | 5 +- src/models/v2/correlation-id.ts | 17 ++ src/models/v2/index.ts | 4 +- src/models/v2/info.ts | 25 ++- src/models/v2/message-example.ts | 40 ++++ src/models/v2/message-examples.ts | 14 ++ src/models/v2/message-trait.ts | 98 +++++++++ src/models/v2/message-traits.ts | 14 ++ src/models/v2/message.ts | 26 +++ src/models/v2/messages.ts | 14 ++ src/models/v2/mixins/extensions.ts | 2 + src/models/v2/oauth-flow.ts | 37 ++-- src/models/v2/oauth-flows.ts | 73 ++++--- src/models/v2/operation-trait.ts | 62 ++++++ src/models/v2/operation-traits.ts | 14 ++ src/models/v2/operation.ts | 35 ++++ src/models/v2/operations.ts | 14 ++ src/models/v2/schema.ts | 8 + src/models/v2/security-scheme.ts | 102 +++++----- src/models/v2/security-schemes.ts | 20 +- src/models/v2/server-variable.ts | 63 +++--- src/models/v2/server-variables.ts | 19 +- src/models/v2/server.ts | 38 ++-- src/models/v3/oauth-flows.ts | 2 +- src/models/v3/security-scheme.ts | 2 +- src/models/v3/server-variable.ts | 54 +++-- src/models/v3/server.ts | 27 ++- test/models/v2/correlation-id.spec.ts | 41 ++++ test/models/v2/info.spec.ts | 24 +-- test/models/v2/message-example.spec.ts | 123 ++++++++++++ test/models/v2/message-examples.spec.ts | 45 +++++ test/models/v2/message-trait.spec.ts | 256 ++++++++++++++++++++++++ test/models/v2/message-traits.spec.ts | 45 +++++ test/models/v2/message.spec.ts | 81 ++++++++ test/models/v2/messages.spec.ts | 45 +++++ test/models/v2/oauth-flow.spec.ts | 31 +++ test/models/v2/oauth-flow.ts | 34 ---- test/models/v2/oauth-flows.spec.ts | 36 ++++ test/models/v2/oauth-flows.ts | 36 ---- test/models/v2/operation-trait.spec.ts | 117 +++++++++++ test/models/v2/operation-traits.spec.ts | 45 +++++ test/models/v2/operation.spec.ts | 80 ++++++++ test/models/v2/operations.spec.ts | 45 +++++ test/models/v2/server-variable.spec.ts | 39 ++++ test/models/v2/server-variable.ts | 39 ---- test/models/v2/server.spec.ts | 26 ++- test/models/v2/servers.spec.ts | 14 +- test/models/v2/tags.spec.ts | 44 ++++ 69 files changed, 1884 insertions(+), 399 deletions(-) create mode 100644 src/models/message-examples.ts create mode 100644 src/models/v2/correlation-id.ts create mode 100644 src/models/v2/message-example.ts create mode 100644 src/models/v2/message-examples.ts create mode 100644 src/models/v2/message-trait.ts create mode 100644 src/models/v2/message-traits.ts create mode 100644 src/models/v2/message.ts create mode 100644 src/models/v2/messages.ts create mode 100644 src/models/v2/operation-trait.ts create mode 100644 src/models/v2/operation-traits.ts create mode 100644 src/models/v2/operation.ts create mode 100644 src/models/v2/operations.ts create mode 100644 src/models/v2/schema.ts create mode 100644 test/models/v2/correlation-id.spec.ts create mode 100644 test/models/v2/message-example.spec.ts create mode 100644 test/models/v2/message-examples.spec.ts create mode 100644 test/models/v2/message-trait.spec.ts create mode 100644 test/models/v2/message-traits.spec.ts create mode 100644 test/models/v2/message.spec.ts create mode 100644 test/models/v2/messages.spec.ts create mode 100644 test/models/v2/oauth-flow.spec.ts delete mode 100644 test/models/v2/oauth-flow.ts create mode 100644 test/models/v2/oauth-flows.spec.ts delete mode 100644 test/models/v2/oauth-flows.ts create mode 100644 test/models/v2/operation-trait.spec.ts create mode 100644 test/models/v2/operation-traits.spec.ts create mode 100644 test/models/v2/operation.spec.ts create mode 100644 test/models/v2/operations.spec.ts create mode 100644 test/models/v2/server-variable.spec.ts delete mode 100644 test/models/v2/server-variable.ts create mode 100644 test/models/v2/tags.spec.ts diff --git a/src/models/asyncapi.ts b/src/models/asyncapi.ts index 76aca11eb..1c2944484 100644 --- a/src/models/asyncapi.ts +++ b/src/models/asyncapi.ts @@ -16,9 +16,9 @@ export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInt export function newAsyncAPIDocument(asyncapi: DetailedAsyncAPI): AsyncAPIDocumentInterface { switch (asyncapi.semver.major) { case 2: - return new AsyncAPIDocumentV2(asyncapi.parsed, { parent: null, asyncapi, pointer: '/' }); + return new AsyncAPIDocumentV2(asyncapi.parsed, { asyncapi, pointer: '/' }); case 3: - return new AsyncAPIDocumentV3(asyncapi.parsed, { parent: null, asyncapi, pointer: '/' }); + return new AsyncAPIDocumentV3(asyncapi.parsed, { asyncapi, pointer: '/' }); default: throw new Error(`Unsupported AsyncAPI version: ${asyncapi.semver.version}`); } diff --git a/src/models/base.ts b/src/models/base.ts index 7e7bb8b7a..ca3efcc85 100644 --- a/src/models/base.ts +++ b/src/models/base.ts @@ -1,10 +1,10 @@ import type { Constructor } from "./utils"; import type { DetailedAsyncAPI } from "../types"; -export interface ModelMetadata

+
+ + + + + \ No newline at end of file diff --git a/test/schema-parser/spectral-rule-v2.spec.ts b/test/schema-parser/spectral-rule-v2.spec.ts index 445322ba5..90b4db5ba 100644 --- a/test/schema-parser/spectral-rule-v2.spec.ts +++ b/test/schema-parser/spectral-rule-v2.spec.ts @@ -7,7 +7,7 @@ import type { SchemaValidateResult } from '../../src/types'; describe('aas2schemaParserRule', function() { const parser = new Parser(); - it('should validate AsyncAPI Schema with valid schema', async function() { + it.only('should validate AsyncAPI Schema with valid schema', async function() { const document = { asyncapi: '2.0.0', info: { diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 000000000..7b69b8959 --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,48 @@ +/* eslint-disable */ +const path = require('path'); + +module.exports = { + entry: './src/index.ts', + target: 'web', + mode: 'production', + + output: { + path: path.resolve(__dirname, 'browser'), + filename: 'index.js', + globalObject: '(typeof self !== \'undefined\' ? self : this)', + library: { + name: 'AsyncAPIParser', + type: 'umd', + export: 'default', + }, + }, + + module: { + rules: [ + { + test: /\.tsx?$/, + loader: 'ts-loader', + exclude: /node_modules/, + options: { + configFile: 'tsconfig.json', + transpileOnly: true, + }, + }, + ], + }, + resolve: { + extensions: ['.ts', '.tsx', '.js'], + fallback: { + fs: false, + path: false, + buffer: require.resolve('buffer/'), + } + }, + + plugins: [ + /** + * Uncomment plugin when you wanna see dependency map of bundled package + */ + // (require('webpack-bundle-analyzer').BundleAnalyzerPlugin()), + ], +}; \ No newline at end of file From 3f27890bc6210ae5eaf4f2bdcef9522d84003ecb Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Tue, 13 Sep 2022 11:14:40 +0200 Subject: [PATCH 048/126] refactor: add iterator for traversing an AsyncAPI doc (#604) --- .eslintrc | 1 - src/iterator.ts | 249 ++++++++++++++++++++++++++++++++++++++++++ test/iterator.spec.ts | 130 ++++++++++++++++++++++ 3 files changed, 379 insertions(+), 1 deletion(-) create mode 100644 src/iterator.ts create mode 100644 test/iterator.spec.ts diff --git a/.eslintrc b/.eslintrc index 0ad8c6c4d..2c285fcc7 100644 --- a/.eslintrc +++ b/.eslintrc @@ -58,7 +58,6 @@ rules: no-empty-character-class: 2 no-self-compare: 2 valid-typeof: 2 - no-unused-vars: [2, { "args": "none" }] handle-callback-err: 2 no-shadow-restricted-names: 2 no-new-require: 2 diff --git a/src/iterator.ts b/src/iterator.ts new file mode 100644 index 000000000..c066f4690 --- /dev/null +++ b/src/iterator.ts @@ -0,0 +1,249 @@ +import { AsyncAPIDocumentInterface } from 'models'; +import { ChannelInterface } from 'models/channel'; +import { ChannelParameterInterface } from 'models/channel-parameter'; +import { MessageInterface } from 'models/message'; +import { MessageTraitInterface } from 'models/message-trait'; +import { SchemaInterface } from 'models/schema'; + +/** + * The different kind of stages when crawling a schema. + */ +export enum SchemaIteratorCallbackType { + NEW_SCHEMA = 'NEW_SCHEMA', // The crawler just started crawling a schema. + END_SCHEMA = 'END_SCHEMA', // The crawler just finished crawling a schema. +} + +/** + * The different types of schemas you can iterate + */ +export enum SchemaTypesToIterate { + Parameters = 'parameters', // Crawl all schemas in payloads + Payloads = 'payloads', // Crawl all schemas in payloads + Headers = 'headers', // Crawl all schemas in headers + Components = 'components', // Crawl all schemas in components + Objects = 'objects', // Crawl all schemas of type object + Arrays = 'arrays', // Crawl all schemas of type array + OneOfs = 'oneOfs', // Crawl all schemas in oneOf's + AllOfs = 'allOfs', // Crawl all schemas in allOf's + AnyOfs = 'anyOfs', // Crawl all schemas in anyOf's + Nots = 'nots', // Crawl all schemas in not field + PropertyNames = 'propertyNames', // Crawl all schemas in propertyNames field + PatternProperties = 'patternProperties', // Crawl all schemas in patternProperties field + Contains = 'contains', // Crawl all schemas in contains field + Ifs = 'ifs', // Crawl all schemas in if field + Thenes = 'thenes', // Crawl all schemas in then field + Elses = 'elses', // Crawl all schemas in else field + Dependencies = 'dependencies', // Crawl all schemas in dependencies field + Definitions = 'definitions', // Crawl all schemas in definitions field +} + +export type TraverseOptions = { + callback: Function + schemaTypesToIterate: SchemaTypesToIterate[] + seenSchemas: Set +} + +export type TraverseCallback = (schema: SchemaInterface, propOrIndex: string | number | null, callbackType: SchemaIteratorCallbackType) => void + +/** + * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. + */ +export function traverseAsyncApiDocument(doc: AsyncAPIDocumentInterface, callback: TraverseCallback, schemaTypesToIterate: SchemaTypesToIterate[]) { + if (schemaTypesToIterate.length === 0) { + schemaTypesToIterate = Object.values(SchemaTypesToIterate); + } + const options: TraverseOptions = { callback, schemaTypesToIterate, seenSchemas: new Set() }; + + if (!doc.channels().isEmpty()) { + doc.channels().all().forEach(channel => { + traverseChannel(channel, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Components) && !doc.components().isEmpty()) { + const components = doc.components(); + Object.values(components.messages().all() || {}).forEach(message => { + traverseMessage(message, options); + }); + Object.values(components.schemas().all() || {}).forEach(schema => { + traverseSchema(schema, null, options); + }); + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Parameters)) { + Object.values(components.channelParameters().filterBy((param: ChannelParameterInterface) => { return param.hasSchema(); })).forEach(parameter => { + traverseSchema(parameter.schema() as SchemaInterface, null, options); + }); + } + Object.values(components.messageTraits().all() || {}).forEach(messageTrait => { + traverseMessageTrait(messageTrait, options); + }); + } +} + +/* eslint-disable sonarjs/cognitive-complexity */ +/** + * Traverse current schema and all nested schemas. + */ +function traverseSchema(schema: SchemaInterface, propOrIndex: string | number | null, options: TraverseOptions) { // NOSONAR + if (!schema) return; + + const { schemaTypesToIterate, callback, seenSchemas } = options; + + // handle circular references + const jsonSchema = schema.json(); + if (seenSchemas.has(jsonSchema)) return; + seenSchemas.add(jsonSchema); + + // `type` isn't required so save type as array in the fallback + let types = schema.type() || []; + // change primitive type to array of types for easier handling + if (!Array.isArray(types)) { + types = [types]; + } + + if (!schemaTypesToIterate.includes(SchemaTypesToIterate.Objects) && types.includes('object')) return; + if (!schemaTypesToIterate.includes(SchemaTypesToIterate.Arrays) && types.includes('array')) return; + + // check callback `NEW_SCHEMA` case + if (callback(schema, propOrIndex, SchemaIteratorCallbackType.NEW_SCHEMA) === false) return; + + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Objects) && types.includes('object')) { + recursiveSchemaObject(schema, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Arrays) && types.includes('array')) { + recursiveSchemaArray(schema, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.OneOfs)) { + (schema.oneOf() || []).forEach((combineSchema, idx) => { + traverseSchema(combineSchema, idx, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.AnyOfs)) { + (schema.anyOf() || []).forEach((combineSchema, idx) => { + traverseSchema(combineSchema, idx, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.AllOfs)) { + (schema.allOf() || []).forEach((combineSchema, idx) => { + traverseSchema(combineSchema, idx, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Nots) && schema.not()) { + traverseSchema(schema.not() as SchemaInterface, null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Ifs) && schema.if()) { + traverseSchema(schema.if() as SchemaInterface, null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Thenes) && schema.then()) { + traverseSchema(schema.then() as SchemaInterface, null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Elses) && schema.else()) { + traverseSchema(schema.else() as SchemaInterface, null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Dependencies)) { + Object.entries(schema.dependencies() || {}).forEach(([depName, dep]) => { + // do not iterate dependent required + if (dep && !Array.isArray(dep)) { + traverseSchema(dep, depName, options); + } + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Definitions)) { + Object.entries(schema.definitions() || {}).forEach(([defName, def]) => { + traverseSchema(def, defName, options); + }); + } + + callback(schema, propOrIndex, SchemaIteratorCallbackType.END_SCHEMA); + seenSchemas.delete(jsonSchema); +} +/* eslint-enable sonarjs/cognitive-complexity */ + +/** + * Recursively go through schema of object type and execute callback. + */ +function recursiveSchemaObject(schema: SchemaInterface, options: TraverseOptions) { + Object.entries(schema.properties() || {}).forEach(([propertyName, property]) => { + traverseSchema(property, propertyName, options); + }); + + const additionalProperties = schema.additionalProperties(); + if (typeof additionalProperties === 'object') { + traverseSchema(additionalProperties, null, options); + } + + const schemaTypesToIterate = options.schemaTypesToIterate; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.PropertyNames) && schema.propertyNames()) { + traverseSchema(schema.propertyNames() as SchemaInterface, null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.PatternProperties)) { + Object.entries(schema.patternProperties() || {}).forEach(([propertyName, property]) => { + traverseSchema(property, propertyName, options); + }); + } +} + +/** + * Recursively go through schema of array type and execute callback. + */ +function recursiveSchemaArray(schema: SchemaInterface, options: any) { + const items = schema.items(); + if (items) { + if (Array.isArray(items)) { + items.forEach((item, idx) => { + traverseSchema(item, idx, options); + }); + } else { + traverseSchema(items, null, options); + } + } + + const additionalItems = schema.additionalItems(); + if (typeof additionalItems === 'object') { + traverseSchema(additionalItems, null, options); + } + + if (options.schemaTypesToIterate.includes('contains') && schema.contains()) { + traverseSchema(schema.contains() as SchemaInterface, null, options); + } +} + +/** + * Go through each schema in channel + */ +function traverseChannel(channel: ChannelInterface, options: TraverseOptions) { + if (!channel) return; + const { schemaTypesToIterate } = options; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Parameters)) { + Object.values(channel.parameters().filterBy((param: ChannelParameterInterface) => { return param.hasSchema(); }) || {}).forEach(parameter => { + traverseSchema(parameter.schema() as SchemaInterface, null, options); + }); + } + + channel.messages().all().forEach(message => { + traverseMessage(message, options); + }); +} + +/** + * Go through each schema in a message + */ +function traverseMessage(message: MessageInterface, options: TraverseOptions) { + if (!message) return; + const { schemaTypesToIterate } = options; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Headers) && message.hasHeaders()) { + traverseSchema(message.headers() as SchemaInterface, null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Payloads) && message.hasPayload()) { + traverseSchema(message.payload() as SchemaInterface, null, options); + } +} + +/** + * Go through each schema in a messageTrait + */ +function traverseMessageTrait(messageTrait: MessageTraitInterface, options: TraverseOptions) { + if (!messageTrait) return; + const { schemaTypesToIterate } = options; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.Headers) && messageTrait.hasHeaders()) { + traverseSchema(messageTrait.headers() as SchemaInterface, null, options); + } +} \ No newline at end of file diff --git a/test/iterator.spec.ts b/test/iterator.spec.ts new file mode 100644 index 000000000..3fa39d82c --- /dev/null +++ b/test/iterator.spec.ts @@ -0,0 +1,130 @@ +import { SchemaIteratorCallbackType, SchemaTypesToIterate, traverseAsyncApiDocument, TraverseCallback } from '../src/iterator'; +import { Parser } from '../src/parser'; +import { parse } from '../src/parse'; +import { AsyncAPIDocumentInterface, AsyncAPIDocumentV2, SchemaV2 } from '../src/models'; +import { SchemaInterface } from '../src/models/schema'; + +const document = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + myChannel: { + publish: { + operationId: 'MyOperation', + message: { + payload: { + type: 'object', + properties: { + exampleField: { + type: 'string' + }, + exampleNumber: { + type: 'number' + } + } + } + } + } + } + }, + components: { + schemas: { + anotherSchema: { + type: 'object', + properties: { + anotherExampleField: { + type: 'string' + }, + anotherExampleNumber: { + type: 'number' + } + } + } + } + } +}; + +type expectedCallback = { + schema: SchemaInterface, + propOrIndex: string | number | null, + callbackType: SchemaIteratorCallbackType, +} + +describe('Traverse AsyncAPI document', function() { + const parser = new Parser(); + describe('traverseAsyncApiDocument()', function() { + it('should traverse all possible schemas from a valid document', async function() { + const { parsed } = await parse(parser, document); + expect(parsed).toBeInstanceOf(AsyncAPIDocumentV2); + + const payload = parsed?.messages().all()[0].payload() as SchemaV2; + const componentsSchema = parsed?.components().schemas().all()[0] as SchemaV2; + const expectedCalls = [ + // Schema from channels + call(payload, SchemaIteratorCallbackType.NEW_SCHEMA), + call(payload, SchemaIteratorCallbackType.NEW_SCHEMA, 'exampleField'), + call(payload, SchemaIteratorCallbackType.END_SCHEMA, 'exampleField'), + call(payload, SchemaIteratorCallbackType.NEW_SCHEMA, 'exampleNumber'), + call(payload, SchemaIteratorCallbackType.END_SCHEMA, 'exampleNumber'), + call(payload, SchemaIteratorCallbackType.END_SCHEMA), + // Schema from components + call(componentsSchema, SchemaIteratorCallbackType.NEW_SCHEMA), + call(componentsSchema, SchemaIteratorCallbackType.NEW_SCHEMA, 'anotherExampleField'), + call(componentsSchema, SchemaIteratorCallbackType.END_SCHEMA, 'anotherExampleField'), + call(componentsSchema, SchemaIteratorCallbackType.NEW_SCHEMA, 'anotherExampleNumber'), + call(componentsSchema, SchemaIteratorCallbackType.END_SCHEMA, 'anotherExampleNumber'), + call(componentsSchema, SchemaIteratorCallbackType.END_SCHEMA) + ]; + + testCallback(expectedCalls, parsed as AsyncAPIDocumentInterface, []); + }); + + it('should traverse few schemas from a valid document', async function() { + const { parsed } = await parse(parser, document); + expect(parsed).toBeInstanceOf(AsyncAPIDocumentV2); + + const componentsSchema = parsed?.components().schemas().all()[0] as SchemaV2; + const expectedCalls = [ + // Schema from components + call(componentsSchema, SchemaIteratorCallbackType.NEW_SCHEMA), + call(componentsSchema, SchemaIteratorCallbackType.NEW_SCHEMA, 'anotherExampleField'), + call(componentsSchema, SchemaIteratorCallbackType.END_SCHEMA, 'anotherExampleField'), + call(componentsSchema, SchemaIteratorCallbackType.NEW_SCHEMA, 'anotherExampleNumber'), + call(componentsSchema, SchemaIteratorCallbackType.END_SCHEMA, 'anotherExampleNumber'), + call(componentsSchema, SchemaIteratorCallbackType.END_SCHEMA) + ]; + + testCallback(expectedCalls, parsed as AsyncAPIDocumentInterface, [SchemaTypesToIterate.Components, SchemaTypesToIterate.Objects]); + }); + }); +}); + +function testCallback(expectedCalls: expectedCallback[], document: AsyncAPIDocumentInterface, schemaTypesToIterate: SchemaTypesToIterate[]) { + let callsLeft = expectedCalls.length; + const callback = function(schema: SchemaInterface, propOrIndex: string | number | null, callbackType: SchemaIteratorCallbackType): void { + callsLeft--; + const expected = expectedCalls.shift(); + expect(schema).toEqual(expected?.schema); + expect(propOrIndex).toEqual(expected?.propOrIndex); + expect(callbackType).toEqual(expected?.callbackType); + }; + + traverseAsyncApiDocument(document, callback, schemaTypesToIterate); + expect(callsLeft).toEqual(0); +} + +function call(schema: SchemaInterface, callbackType: SchemaIteratorCallbackType, propOrIndex: string | number | null = null): expectedCallback { + let schemaProperties = schema; + if (propOrIndex) { + schemaProperties = (schema.properties() as Record)[propOrIndex as string]; + } + + return { + schema: schemaProperties, + propOrIndex, + callbackType, + }; +} \ No newline at end of file From d8c3c036de1bc1e267b2567ed8319a7af063f361 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Thu, 15 Sep 2022 09:21:39 +0200 Subject: [PATCH 049/126] refactor: add migration function from v2 to v1 API (#607) --- README.md | 68 ++++- src/constants.ts | 1 + src/custom-operations/anonymous-naming.ts | 71 +++++ src/custom-operations/apply-traits.ts | 4 - src/custom-operations/check-circular-refs.ts | 24 ++ src/custom-operations/index.ts | 21 +- src/custom-operations/parse-schema.ts | 10 +- src/index.ts | 3 + src/iterator.ts | 78 ++--- src/models/index.ts | 40 ++- src/models/v2/message-trait.ts | 3 +- src/models/v2/schema.ts | 3 +- src/old-api/asyncapi.ts | 19 +- src/old-api/components.ts | 8 +- src/old-api/external-docs.ts | 37 ++- src/old-api/iterator.ts | 272 ++++++++++++++++++ src/old-api/message-trait.ts | 2 +- src/old-api/message.ts | 12 +- src/old-api/migrator.ts | 52 ++++ src/old-api/mixins.ts | 74 +++-- src/old-api/tag.ts | 37 ++- src/parse.ts | 14 +- src/stringify.ts | 2 +- src/utils.ts | 7 + test/browser/sample-page.html | 6 +- .../anonymous-naming.spec.ts | 177 ++++++++++++ .../check-circular-refs.spec.ts | 61 ++++ test/custom-operations/parse-schema.spec.ts | 26 +- test/iterator.spec.ts | 28 +- test/old-api/iterator.spec.ts | 135 +++++++++ test/old-api/migrator.spec.ts | 262 +++++++++++++++++ test/parse.spec.ts | 34 +-- 32 files changed, 1421 insertions(+), 170 deletions(-) create mode 100644 src/custom-operations/anonymous-naming.ts create mode 100644 src/custom-operations/check-circular-refs.ts create mode 100644 src/old-api/iterator.ts create mode 100644 src/old-api/migrator.ts create mode 100644 test/custom-operations/anonymous-naming.spec.ts create mode 100644 test/custom-operations/check-circular-refs.spec.ts create mode 100644 test/old-api/iterator.spec.ts create mode 100644 test/old-api/migrator.spec.ts diff --git a/README.md b/README.md index a6c8b0004..003cda979 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,11 @@ Use this package to validate and parse AsyncAPI documents —either YAML or JSON ![npm](https://img.shields.io/npm/v/@asyncapi/parser?style=for-the-badge) ![npm](https://img.shields.io/npm/dt/@asyncapi/parser?style=for-the-badge) -> :warning: This package doesn't support AsyncAPI 1.x anymore. We recommend to upgrade to the latest AsyncAPI version using the [AsyncAPI converter](https://github.com/asyncapi/converter-js). If you need to convert documents on the fly, you may use the [Node.js](https://github.com/asyncapi/converter-js) or [Go](https://github.com/asyncapi/converter-go) converters. +> **Warning** +> This package doesn't support AsyncAPI 1.x anymore. We recommend to upgrade to the latest AsyncAPI version using the [AsyncAPI converter](https://github.com/asyncapi/converter-js). If you need to convert documents on the fly, you may use the [Node.js](https://github.com/asyncapi/converter-js) or [Go](https://github.com/asyncapi/converter-go) converters. + +> **Warning** +> This package has rewrited Model API (old one) to [Intent API](https://github.com/asyncapi/parser-api). If you still need to use the old API, read the [Convert to the old API](#convert-to-the-old-api) section. @@ -19,12 +23,15 @@ Use this package to validate and parse AsyncAPI documents —either YAML or JSON * [Example using RAML data types](#example-using-raml-data-types) * [Example with stringify and unstringify parsed document](#example-with-stringify-and-unstringify-parsed-document) - [API documentation](#api-documentation) -- [Using in the browser](#using-in-the-browser) +- [Using in the browser/SPA applications](#using-in-the-browserspa-applications) - [Custom schema parsers](#custom-schema-parsers) * [Official supported custom schema parsers](#official-supported-custom-schema-parsers) - [Custom extensions](#custom-extensions) - [Circular references](#circular-references) - [Stringify](#stringify) +- [Convert to the old API](#convert-to-the-old-api) +- [Bundler configuration](#bundler-configuration) + * [Webpack](#webpack) - [Develop](#develop) - [Contributing](#contributing) - [Contributors](#contributors) @@ -176,7 +183,7 @@ Direct access to the parsed JSON document is always available through the `doc.j See [API documentation](./docs/api.md) for more examples and full API reference information. -## Using in the browser/SPA apps +## Using in the browser/SPA applications The package contains a built-in version of the parser. To use it, you need to import the parser into the HTML file as below: @@ -185,7 +192,7 @@ The package contains a built-in version of the parser. To use it, you need to im ``` @@ -195,11 +202,11 @@ Or, if you want to use the parser in a JS SPA-type application where you have a import Parser from '@asyncapi/parser/browser'; const parser = new Parser(); -const { parsed, diagnostics } = parser.parse(...); +const { document, diagnostics } = parser.parse(...); ``` > **Note** -> Using the above code, we import the entire bundled parser into application. This may result in duplicate code in the final application bundle, only if the application uses the same dependencies what the parser. If, on the other hand, you want to have the smallest bundle possible, we recommend using the following import and properly configure bundler. +> Using the above code, we import the entire bundled parser into application. This may result in a duplicate code in the final application bundle, only if the application uses the same dependencies what the parser. If, on the other hand, you want to have the smallest bundle as possible, we recommend using the following import and properly configure bundler. Otherwise, if your application is bundled via bundlers like `webpack` and you can configure it, you can import the parser like a regular package: @@ -207,7 +214,7 @@ Otherwise, if your application is bundled via bundlers like `webpack` and you ca import { Parser } from '@asyncapi/parser'; const parser = new Parser(); -const { parsed, diagnostics } = parser.parse(...); +const { document, diagnostics } = parser.parse(...); ``` > **Note** @@ -252,38 +259,55 @@ AsyncAPI doesn't enforce one schema format. The payload of the messages can be d In AsyncAPI Initiative we support below custom schema parsers. To install them, run below comamnds: -- Avro schema: +- [Avro schema](https://www.github.com/asyncapi/avro-schema-parser): ```bash npm install @asyncapi/avro-schema-parser yarn add @asyncapi/avro-schema-parser ``` -- OpenAPI (3.0.0) Schema Object: +- [OpenAPI (3.0.0) Schema Object](https://www.github.com/asyncapi/openapi-schema-parser): ```bash npm install @asyncapi/openapi-schema-parser yarn add @asyncapi/openapi-schema-parser ``` -- RAML data type: +- [RAML data type](https://www.github.com/asyncapi/raml-dt-schema-parser): ```bash npm install @asyncapi/raml-dt-schema-parser yarn add @asyncapi/raml-dt-schema-parser ``` - > **NOTE**: That custom parser works only in the NodeJS environment. Do not use it in browser applications! + > **Note** + > That custom parser works only in the NodeJS environment. Do not use it in browser applications! ## Custom extensions -TBD +The parser uses custom extensions to define additional information about the spec. Each has a different purpose but all of them are there to make it much easier to work with the AsyncAPI document. These extensions are prefixed with `x-parser-`. The following extensions are used: + +- `x-parser-spec-parsed` is used to specify if the AsyncAPI document is already parsed by the parser. Property `x-parser-spec-parsed` is added to the root of the document with the `true` value. +- `x-parser-message-name` is used to specify the name of the message if it is not provided. For messages without names, the parser generates anonymous names. Property `x-parser-message-name` is added to a message object with a value that follows this pattern: ``. This value is returned by `message.id()` (`message.uid()` in the [old API](#convert-to-the-old-api)) when regular `name` property is not present. +- `x-parser-original-payload` holds the original payload of the message. You can use different formats for payloads with the AsyncAPI documents and the parser converts them to. For example, it converts payload described with Avro schema to AsyncAPI schema. The original payload is preserved in the extension. +- [`x-parser-circular`](#circular-references). + +In addition, the [`migrateToOldAPI()` function](#convert-to-the-old-api) which converts new API to an old one adds additional extensions: + +- `x-parser-message-parsed` is used to specify if the message is already parsed by the message parser. Property `x-parser-message-parsed` is added to the message object with the `true` value. +- `x-parser-schema-id` is used to specify the ID of the schema if it is not provided. For schemas without IDs, the parser generates anonymous names. Property `x-parser-schema-id` is added to every object of a schema with a value that follows this pattern: ``. This value is returned by `schema.uid()` when regular `$id` property is not present. +- `x-parser-original-traits` is where traits are stored after they are applied on the AsyncAPI document. The reason is because the original `traits` property is removed. +- `x-parser-original-schema-format` holds information about the original schema format of the payload. You can use different schema formats with the AsyncAPI documents and the parser converts them to AsyncAPI schema. This is why different schema format is set, and the original one is preserved in the extension. -> **NOTE**: All extensions added by the parser (including all properties) should be retrieved using special functions. Names of extensions and their location may change, and their eventual changes will not be announced. +> **Warning** +> All extensions added by the parser (including all properties) should be retrieved using special functions. Names of extensions and their location may change, and their eventual changes will not be announced. ## Circular references -TBD +Parser dereferences all circular references by default. In addition, to simplify interactions with the parser, the following is added: + +- `x-parser-circular` property is added to the root of the AsyncAPI document to indicate that the document contains circular references. In old API the Parser exposes `hasCircular()` function to check if given AsyncAPI document has circular references. +- `isCircular()` function is added to the [Schema Model](./src/models/schema.ts) to determine if a given schema is circular with respect to previously occurring schemas in the tree. ## Stringify @@ -300,11 +324,27 @@ For that, the Parser supports the ability to stringify a parsed AsyncAPI documen To parse a stringified document into an AsyncAPIDocument instance, you must use the `unstringify` function (also exposed by package). It isn't compatible with the native `JSON.parse()` method. It replaces the given references pointed by the [JSON Pointer](https://datatracker.ietf.org/doc/html/rfc6901) path, with an `$ref:` prefix to the original objects. A few advantages of this solution: + - The string remains as small as possible due to the use of [JSON Pointers](https://datatracker.ietf.org/doc/html/rfc6901). - All references (also circular) are preserved. Check [example](#example-with-stringify-and-unstringify-parsed-documentstringify). +## Convert to the old API + +Version `2.0.0` of package introduced a lot of breaking changes, including changing the API of the returned parsed document (parser uses [New API](https://github.com/asyncapi/parser-api)). Due to the fact that a large part of the AsyncAPI tooling ecosystem uses a Parser with the old API and rewriting the tool for the new one can be time-consuming and difficult, the package exposes the `migrateToOldAPI()` function to convert new API to old one: + +```js +import { Parser, migrateToOldAPI } from '@asyncapi/parser'; + +const parser = new Parser(); +const { document } = parser.parse(...); +const oldAsyncAPIDocument = migrateToOldAPI(document); +``` + +> **Note** +> The old api will be supported only for a certain period of time. The target date for turning off support of the old API is around the end of January 2023. + ## Bundler configuration ### Webpack diff --git a/src/constants.ts b/src/constants.ts index 54256868e..f2797dc32 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -5,6 +5,7 @@ export const xParserSpecParsed = 'x-parser-spec-parsed'; export const xParserSpecStringified = 'x-parser-spec-stringified'; export const xParserMessageName = 'x-parser-message-name'; +export const xParserMessageParsed = 'x-parser-message-parsed'; export const xParserSchemaId = 'x-parser-schema-id'; export const xParserOriginalSchemaFormat = 'x-parser-original-schema-format'; diff --git a/src/custom-operations/anonymous-naming.ts b/src/custom-operations/anonymous-naming.ts new file mode 100644 index 000000000..53fd00053 --- /dev/null +++ b/src/custom-operations/anonymous-naming.ts @@ -0,0 +1,71 @@ +import { xParserMessageName, xParserSchemaId } from '../constants'; +import { traverseAsyncApiDocument } from '../iterator'; +import { setExtension } from '../utils'; + +import type { + AsyncAPIDocumentInterface, + SchemaInterface +} from '../models'; + +export function anonymousNaming(document: AsyncAPIDocumentInterface) { + assignNameToComponentMessages(document); + assignNameToAnonymousMessages(document); + + assignUidToComponentSchemas(document); + assignUidToComponentParameterSchemas(document); + assignUidToChannelParameterSchemas(document); + assignUidToAnonymousSchemas(document); +} + +function assignNameToComponentMessages(document: AsyncAPIDocumentInterface) { + document.components().messages().forEach(message => { + if (message.name() === undefined) { + setExtension(xParserMessageName, message.id(), message); + } + }); +} + +function assignNameToAnonymousMessages(document: AsyncAPIDocumentInterface) { + let anonymousMessageCounter = 0; + document.messages().forEach(message => { + if (message.name() === undefined && message.extensions().get(xParserMessageName) === undefined) { + setExtension(xParserMessageName, ``, message); + } + }); +} + +function assignUidToComponentParameterSchemas(document: AsyncAPIDocumentInterface) { + document.components().channelParameters().forEach(parameter => { + const schema = parameter.schema(); + if (schema && !schema.uid()) { + setExtension(xParserSchemaId, parameter.id(), schema); + } + }); +} + +function assignUidToChannelParameterSchemas(document: AsyncAPIDocumentInterface) { + document.channels().forEach(channel => { + channel.parameters().forEach(parameter => { + const schema = parameter.schema(); + if (schema && !schema.uid()) { + setExtension(xParserSchemaId, parameter.id(), schema); + } + }); + }); +} + +function assignUidToComponentSchemas(document: AsyncAPIDocumentInterface) { + document.components().schemas().forEach(schema => { + setExtension(xParserSchemaId, schema.uid(), schema); + }); +} + +function assignUidToAnonymousSchemas(doc: AsyncAPIDocumentInterface) { + let anonymousSchemaCounter = 0; + function callback(schema: SchemaInterface) { + if (!schema.uid()) { + setExtension(xParserSchemaId, ``, schema); + } + } + traverseAsyncApiDocument(doc, callback); +} diff --git a/src/custom-operations/apply-traits.ts b/src/custom-operations/apply-traits.ts index 348052ebe..cc6191857 100644 --- a/src/custom-operations/apply-traits.ts +++ b/src/custom-operations/apply-traits.ts @@ -1,6 +1,5 @@ import { JSONPath } from 'jsonpath-plus'; -import { xParserOriginalTraits } from '../constants'; import { mergePatch } from '../utils'; import type { v2 } from '../spec-types'; @@ -55,8 +54,5 @@ function applyTraits(value: Record) { value[String(key)] = mergePatch(value[String(key)], trait[String(key)]); } } - - value[xParserOriginalTraits] = value.traits; - delete value.traits; } } diff --git a/src/custom-operations/check-circular-refs.ts b/src/custom-operations/check-circular-refs.ts new file mode 100644 index 000000000..f49e3a694 --- /dev/null +++ b/src/custom-operations/check-circular-refs.ts @@ -0,0 +1,24 @@ +import { setExtension } from '../utils'; +import { xParserCircular } from '../constants'; + +import type { AsyncAPIDocumentInterface } from '../models'; + +export function checkCircularRefs(document: AsyncAPIDocumentInterface) { + if (hasInlineRef(document.json())) { + setExtension(xParserCircular, true, document); + } +} + +function hasInlineRef(data: Record): boolean { + if (data && typeof data === 'object' && !Array.isArray(data)) { + if (Object.prototype.hasOwnProperty.call(data, '$ref')) { + return true; + } + for (const p in data) { + if (hasInlineRef(data[p])) { + return true; + } + } + } + return false; +} diff --git a/src/custom-operations/index.ts b/src/custom-operations/index.ts index 49f29aa6e..5bf91a714 100644 --- a/src/custom-operations/index.ts +++ b/src/custom-operations/index.ts @@ -1,18 +1,24 @@ -import { applyTraitsV2, applyTraitsV3 } from './apply-traits'; +import { applyTraitsV2 } from './apply-traits'; +import { checkCircularRefs } from './check-circular-refs'; import { parseSchemasV2 } from './parse-schema'; +import { anonymousNaming } from './anonymous-naming'; import type { Parser } from '../parser'; import type { ParseOptions } from '../parse'; +import type { AsyncAPIDocumentInterface } from '../models'; import type { DetailedAsyncAPI } from '../types'; -export async function customOperations(parser: Parser, detailed: DetailedAsyncAPI, options: ParseOptions): Promise { +export async function customOperations(parser: Parser, document: AsyncAPIDocumentInterface, detailed: DetailedAsyncAPI, options: ParseOptions): Promise { switch (detailed.semver.major) { - case 2: return operationsV2(parser, detailed, options); - case 3: return operationsV3(parser, detailed, options); + case 2: return operationsV2(parser, document, detailed, options); + // case 3: return operationsV3(parser, document, detailed, options); } } -async function operationsV2(parser: Parser, detailed: DetailedAsyncAPI, options: ParseOptions): Promise { +async function operationsV2(parser: Parser, document: AsyncAPIDocumentInterface, detailed: DetailedAsyncAPI, options: ParseOptions): Promise { + checkCircularRefs(document); + anonymousNaming(document); + if (options.applyTraits) { applyTraitsV2(detailed.parsed); } @@ -21,8 +27,3 @@ async function operationsV2(parser: Parser, detailed: DetailedAsyncAPI, options: } } -async function operationsV3(parser: Parser, detailed: DetailedAsyncAPI, options: ParseOptions): Promise { - if (options.applyTraits) { - applyTraitsV3(detailed.parsed); - } -} diff --git a/src/custom-operations/parse-schema.ts b/src/custom-operations/parse-schema.ts index 77c0c8ec1..6221af6cf 100644 --- a/src/custom-operations/parse-schema.ts +++ b/src/custom-operations/parse-schema.ts @@ -66,11 +66,15 @@ export async function parseSchemasV2(parser: Parser, detailed: DetailedAsyncAPI) } async function parseSchemaV2(parser: Parser, item: ToParseItem) { - item.value[xParserOriginalPayload] = item.input.data; - item.value.payload = await parseSchema(parser, item.input); + const originalData = item.input.data; + const parsedData = item.value.payload = await parseSchema(parser, item.input); + // save original payload only when data is different (returned by custom parsers) + if (originalData !== parsedData) { + item.value[xParserOriginalPayload] = originalData; + } } function splitPath(path: string): string[] { // remove $[' from beginning and '] at the end and split by '][' return path.slice(3).slice(0, -2).split('\'][\''); -} \ No newline at end of file +} diff --git a/src/index.ts b/src/index.ts index 7cea42b90..88ee5d743 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,6 +6,9 @@ export { Parser }; export { stringify, unstringify } from './stringify'; export { AsyncAPISchemaParser } from './schema-parser/asyncapi-schema-parser'; +export { AsyncAPIDocument as OldAsyncAPIDocument } from './old-api/asyncapi'; +export { migrateToOldAPI } from './old-api/migrator'; + export type { AsyncAPISemver, Diagnostic, SchemaValidateResult } from './types'; export type { LintOptions, ValidateOptions, ValidateOutput } from './lint'; export type { ParseInput, ParseOptions, ParseOutput } from './parse'; diff --git a/src/iterator.ts b/src/iterator.ts index c066f4690..cf8e65e61 100644 --- a/src/iterator.ts +++ b/src/iterator.ts @@ -1,54 +1,54 @@ -import { AsyncAPIDocumentInterface } from 'models'; -import { ChannelInterface } from 'models/channel'; -import { ChannelParameterInterface } from 'models/channel-parameter'; -import { MessageInterface } from 'models/message'; -import { MessageTraitInterface } from 'models/message-trait'; -import { SchemaInterface } from 'models/schema'; - +import type { AsyncAPIDocumentInterface } from './models/asyncapi'; +import type { ChannelInterface } from './models/channel'; +import type { ChannelParameterInterface } from './models/channel-parameter'; +import type { MessageInterface } from './models/message'; +import type { MessageTraitInterface } from './models/message-trait'; +import type { SchemaInterface } from './models/schema'; + /** * The different kind of stages when crawling a schema. */ export enum SchemaIteratorCallbackType { - NEW_SCHEMA = 'NEW_SCHEMA', // The crawler just started crawling a schema. - END_SCHEMA = 'END_SCHEMA', // The crawler just finished crawling a schema. + NEW_SCHEMA = 'NEW_SCHEMA', // The crawler just started crawling a schema. + END_SCHEMA = 'END_SCHEMA', // The crawler just finished crawling a schema. } /** * The different types of schemas you can iterate */ export enum SchemaTypesToIterate { - Parameters = 'parameters', // Crawl all schemas in payloads - Payloads = 'payloads', // Crawl all schemas in payloads - Headers = 'headers', // Crawl all schemas in headers - Components = 'components', // Crawl all schemas in components - Objects = 'objects', // Crawl all schemas of type object - Arrays = 'arrays', // Crawl all schemas of type array - OneOfs = 'oneOfs', // Crawl all schemas in oneOf's - AllOfs = 'allOfs', // Crawl all schemas in allOf's - AnyOfs = 'anyOfs', // Crawl all schemas in anyOf's - Nots = 'nots', // Crawl all schemas in not field - PropertyNames = 'propertyNames', // Crawl all schemas in propertyNames field - PatternProperties = 'patternProperties', // Crawl all schemas in patternProperties field - Contains = 'contains', // Crawl all schemas in contains field - Ifs = 'ifs', // Crawl all schemas in if field - Thenes = 'thenes', // Crawl all schemas in then field - Elses = 'elses', // Crawl all schemas in else field - Dependencies = 'dependencies', // Crawl all schemas in dependencies field - Definitions = 'definitions', // Crawl all schemas in definitions field + Parameters = 'parameters', // Crawl all schemas in payloads + Payloads = 'payloads', // Crawl all schemas in payloads + Headers = 'headers', // Crawl all schemas in headers + Components = 'components', // Crawl all schemas in components + Objects = 'objects', // Crawl all schemas of type object + Arrays = 'arrays', // Crawl all schemas of type array + OneOfs = 'oneOfs', // Crawl all schemas in oneOf's + AllOfs = 'allOfs', // Crawl all schemas in allOf's + AnyOfs = 'anyOfs', // Crawl all schemas in anyOf's + Nots = 'nots', // Crawl all schemas in not field + PropertyNames = 'propertyNames', // Crawl all schemas in propertyNames field + PatternProperties = 'patternProperties', // Crawl all schemas in patternProperties field + Contains = 'contains', // Crawl all schemas in contains field + Ifs = 'ifs', // Crawl all schemas in if field + Thenes = 'thenes', // Crawl all schemas in then field + Elses = 'elses', // Crawl all schemas in else field + Dependencies = 'dependencies', // Crawl all schemas in dependencies field + Definitions = 'definitions', // Crawl all schemas in definitions field } - + export type TraverseOptions = { - callback: Function - schemaTypesToIterate: SchemaTypesToIterate[] - seenSchemas: Set + callback: TraverseCallback + schemaTypesToIterate: SchemaTypesToIterate[] + seenSchemas: Set } - -export type TraverseCallback = (schema: SchemaInterface, propOrIndex: string | number | null, callbackType: SchemaIteratorCallbackType) => void + +export type TraverseCallback = (schema: SchemaInterface, propOrIndex: string | number | null, callbackType: SchemaIteratorCallbackType) => boolean | void; /** * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. */ -export function traverseAsyncApiDocument(doc: AsyncAPIDocumentInterface, callback: TraverseCallback, schemaTypesToIterate: SchemaTypesToIterate[]) { +export function traverseAsyncApiDocument(doc: AsyncAPIDocumentInterface, callback: TraverseCallback, schemaTypesToIterate: SchemaTypesToIterate[] = []) { if (schemaTypesToIterate.length === 0) { schemaTypesToIterate = Object.values(SchemaTypesToIterate); } @@ -156,7 +156,7 @@ function traverseSchema(schema: SchemaInterface, propOrIndex: string | number | seenSchemas.delete(jsonSchema); } /* eslint-enable sonarjs/cognitive-complexity */ - + /** * Recursively go through schema of object type and execute callback. */ @@ -180,7 +180,7 @@ function recursiveSchemaObject(schema: SchemaInterface, options: TraverseOptions }); } } - + /** * Recursively go through schema of array type and execute callback. */ @@ -205,7 +205,7 @@ function recursiveSchemaArray(schema: SchemaInterface, options: any) { traverseSchema(schema.contains() as SchemaInterface, null, options); } } - + /** * Go through each schema in channel */ @@ -222,7 +222,7 @@ function traverseChannel(channel: ChannelInterface, options: TraverseOptions) { traverseMessage(message, options); }); } - + /** * Go through each schema in a message */ @@ -236,7 +236,7 @@ function traverseMessage(message: MessageInterface, options: TraverseOptions) { traverseSchema(message.payload() as SchemaInterface, null, options); } } - + /** * Go through each schema in a messageTrait */ diff --git a/src/models/index.ts b/src/models/index.ts index dc0a434a7..1161d0a38 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -1,7 +1,45 @@ export * from './v2'; export * from './v3'; + export * from './asyncapi'; export * from './base'; -export * from './info'; +export * from './binding'; +export * from './bindings'; +export * from './channel-parameter'; +export * from './channel-parameters'; +export * from './channel'; +export * from './channels'; +export * from './collection'; +export * from './components'; export * from './contact'; +export * from './correlation-id'; +export * from './correlation-ids'; +export * from './extension'; +export * from './extensions'; +export * from './external-docs'; +export * from './info'; export * from './license'; +export * from './message-example'; +export * from './message-examples'; +export * from './message-trait'; +export * from './message-traits'; +export * from './message'; +export * from './messages'; +export * from './oauth-flow'; +export * from './oauth-flows'; +export * from './operation-trait'; +export * from './operation-traits'; +export * from './operation'; +export * from './operations'; +export * from './schema'; +export * from './schemas'; +export * from './security-requirement'; +export * from './security-requirements'; +export * from './security-scheme'; +export * from './security-schemes'; +export * from './server-variable'; +export * from './server-variables'; +export * from './server'; +export * from './servers'; +export * from './tag'; +export * from './tags'; \ No newline at end of file diff --git a/src/models/v2/message-trait.ts b/src/models/v2/message-trait.ts index 50634fe0f..914757e79 100644 --- a/src/models/v2/message-trait.ts +++ b/src/models/v2/message-trait.ts @@ -4,6 +4,7 @@ import { MessageExamples } from './message-examples'; import { MessageExample } from './message-example'; import { Schema } from './schema'; +import { xParserMessageName } from '../../constants'; import { getDefaultSchemaFormat } from '../../schema-parser'; import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from './mixins'; @@ -20,7 +21,7 @@ import type { v2 } from '../../spec-types'; export class MessageTrait extends BaseModel implements MessageTraitInterface { id(): string { - return this.messageId() || this._meta.id; + return this.messageId() || this._meta.id || this.extensions().get(xParserMessageName)?.value() as string; } schemaFormat(): string { diff --git a/src/models/v2/schema.ts b/src/models/v2/schema.ts index a7546cbc4..ee551ae63 100644 --- a/src/models/v2/schema.ts +++ b/src/models/v2/schema.ts @@ -1,5 +1,6 @@ import { BaseModel } from '../base'; +import { xParserSchemaId } from '../../constants'; import { extensions, hasExternalDocs, externalDocs } from './mixins'; import { retrievePossibleRef, hasRef } from '../../utils'; @@ -20,7 +21,7 @@ export class Schema extends BaseModel() as string; } $comment(): string | undefined { diff --git a/src/old-api/asyncapi.ts b/src/old-api/asyncapi.ts index c1bdf59b6..89c543302 100644 --- a/src/old-api/asyncapi.ts +++ b/src/old-api/asyncapi.ts @@ -6,11 +6,13 @@ import { Components } from './components'; import { Message } from './message'; import { Schema } from './schema'; +import { traverseAsyncApiDocument } from './iterator'; import { xParserCircular } from '../constants'; import { stringify, unstringify } from '../stringify'; import type { v2 } from '../spec-types'; import type { Operation } from './operation'; +import type { SchemaTypesToIterate, TraverseCallback } from './iterator'; export class AsyncAPIDocument extends SpecificationExtensionsModel { version() { @@ -137,19 +139,24 @@ export class AsyncAPIDocument extends SpecificationExtensionsModel { - return new Map(); + const schemas = new Map(); + function allSchemasCallback(schema: Schema) { + if (schema.uid()) { + schemas.set(schema.uid(), schema); + } + } + traverseAsyncApiDocument(this, allSchemasCallback); + return schemas; } hasCircular() { return !!this._json[xParserCircular]; } - // TODO: Make traversing for old API and enable that function - // traverseSchemas(callback, schemaTypesToIterate) { - // traverseAsyncApiDocument(this, callback, schemaTypesToIterate); - // } + traverseSchemas(callback: TraverseCallback, schemaTypesToIterate: SchemaTypesToIterate[]) { + traverseAsyncApiDocument(this, callback, schemaTypesToIterate); + } static stringify(doc: AsyncAPIDocument, space: number): string | undefined { return stringify(doc, { space }); diff --git a/src/old-api/components.ts b/src/old-api/components.ts index e4db7cb41..4091b9fb0 100644 --- a/src/old-api/components.ts +++ b/src/old-api/components.ts @@ -113,12 +113,12 @@ export class Components extends SpecificationExtensionsModel, MessageTrait); + messageTraits(): Record> { + return createMapOfType(this._json.messageTraits as Record, MessageTrait) as Record>; } - messageTrait(name: string) { - return getMapValue(this._json.messageTraits as Record, name, MessageTrait); + messageTrait(name: string): MessageTrait { + return getMapValue(this._json.messageTraits as Record, name, MessageTrait) as MessageTrait; } hasServerVariables() { diff --git a/src/old-api/external-docs.ts b/src/old-api/external-docs.ts index 1602bbcc7..d19bf2e3c 100644 --- a/src/old-api/external-docs.ts +++ b/src/old-api/external-docs.ts @@ -1,8 +1,9 @@ -import { SpecificationExtensionsModel, description, hasDescription } from './mixins'; +import { Base } from './base'; +import { description, hasDescription, extensionsMixins } from './mixins'; import type { v2 } from '../spec-types'; -export class ExternalDocs extends SpecificationExtensionsModel { +export class ExternalDocs extends Base { url() { return this._json.url; } @@ -14,4 +15,36 @@ export class ExternalDocs extends SpecificationExtensionsModel +} + +export type TraverseCallback = (schema: Schema, propOrIndex: string | number | null, callbackType: SchemaIteratorCallbackType) => boolean | void; + +/** + * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. + */ +export function traverseAsyncApiDocument(doc: AsyncAPIDocument, callback: TraverseCallback, schemaTypesToIterate: SchemaTypesToIterate[] = []) { + if (schemaTypesToIterate.length === 0) { + schemaTypesToIterate = Object.values(SchemaTypesToIterate); + } + const options: TraverseOptions = { callback, schemaTypesToIterate, seenSchemas: new Set() }; + + Object.values(doc.channels()).forEach(channel => { + traverseChannel(channel, options); + }); + + const components = doc.components(); + if (schemaTypesToIterate.includes(SchemaTypesToIterate.components) && components) { + Object.values(components.messages()).forEach(message => { + traverseMessage(message, options); + }); + Object.values(components.schemas()).forEach(schema => { + traverseSchema(schema, null, options); + }); + if (schemaTypesToIterate.includes(SchemaTypesToIterate.parameters)) { + Object.values(components.parameters()).forEach(parameter => { + const schema = parameter.schema(); + if (schema) { + traverseSchema(schema, null, options); + } + }); + } + Object.values(components.messageTraits()).forEach(messageTrait => { + traverseMessageTrait(messageTrait, options); + }); + } +} + +/* eslint-disable sonarjs/cognitive-complexity */ +/** + * Traverse current schema and all nested schemas. + */ +function traverseSchema(schema: Schema, propOrIndex: string | number | null, options: TraverseOptions) { // NOSONAR + if (!schema) return; + + const { schemaTypesToIterate, callback, seenSchemas } = options; + + // handle circular references + const jsonSchema = schema.json(); + if (seenSchemas.has(jsonSchema)) return; + seenSchemas.add(jsonSchema); + + // `type` isn't required so save type as array in the fallback + let types = schema.type() || []; + // change primitive type to array of types for easier handling + if (!Array.isArray(types)) { + types = [types]; + } + + if (!schemaTypesToIterate.includes(SchemaTypesToIterate.objects) && types.includes('object')) return; + if (!schemaTypesToIterate.includes(SchemaTypesToIterate.arrays) && types.includes('array')) return; + + // check callback `NEW_SCHEMA` case + if (callback(schema, propOrIndex, SchemaIteratorCallbackType.NEW_SCHEMA) === false) return; + + if (schemaTypesToIterate.includes(SchemaTypesToIterate.objects) && types.includes('object')) { + recursiveSchemaObject(schema, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.arrays) && types.includes('array')) { + recursiveSchemaArray(schema, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.oneOfs)) { + (schema.oneOf() || []).forEach((combineSchema, idx) => { + traverseSchema(combineSchema, idx, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.anyOfs)) { + (schema.anyOf() || []).forEach((combineSchema, idx) => { + traverseSchema(combineSchema, idx, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.allOfs)) { + (schema.allOf() || []).forEach((combineSchema, idx) => { + traverseSchema(combineSchema, idx, options); + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.nots) && schema.not()) { + traverseSchema(schema.not() as Schema, null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.ifs) && schema.if()) { + traverseSchema(schema.if() as Schema, null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.thenes) && schema.then()) { + traverseSchema(schema.then() as Schema, null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.elses) && schema.else()) { + traverseSchema(schema.else() as Schema, null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.dependencies)) { + Object.entries(schema.dependencies() || {}).forEach(([depName, dep]) => { + // do not iterate dependent required + if (dep && !Array.isArray(dep)) { + traverseSchema(dep, depName, options); + } + }); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.definitions)) { + Object.entries(schema.definitions() || {}).forEach(([defName, def]) => { + traverseSchema(def, defName, options); + }); + } + + callback(schema, propOrIndex, SchemaIteratorCallbackType.END_SCHEMA); + seenSchemas.delete(jsonSchema); +} +/* eslint-enable sonarjs/cognitive-complexity */ + +/** + * Recursively go through schema of object type and execute callback. + */ +function recursiveSchemaObject(schema: Schema, options: TraverseOptions) { + Object.entries(schema.properties()).forEach(([propertyName, property]) => { + traverseSchema(property, propertyName, options); + }); + + const additionalProperties = schema.additionalProperties(); + if (typeof additionalProperties === 'object') { + traverseSchema(additionalProperties, null, options); + } + + const schemaTypesToIterate = options.schemaTypesToIterate; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.propertyNames) && schema.propertyNames()) { + traverseSchema(schema.propertyNames() as Schema, null, options); + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.patternProperties)) { + Object.entries(schema.patternProperties() || {}).forEach(([propertyName, property]) => { + traverseSchema(property, propertyName, options); + }); + } +} + +/** + * Recursively go through schema of array type and execute callback. + */ +function recursiveSchemaArray(schema: Schema, options: any) { + const items = schema.items(); + if (items) { + if (Array.isArray(items)) { + items.forEach((item, idx) => { + traverseSchema(item, idx, options); + }); + } else { + traverseSchema(items, null, options); + } + } + + const additionalItems = schema.additionalItems(); + if (typeof additionalItems === 'object') { + traverseSchema(additionalItems, null, options); + } + + if (options.schemaTypesToIterate.includes('contains') && schema.contains()) { + traverseSchema(schema.contains() as Schema, null, options); + } +} + +/** + * Go through each schema in channel + */ +function traverseChannel(channel: Channel, options: TraverseOptions) { + if (!channel) return; + const { schemaTypesToIterate } = options; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.parameters)) { + Object.values(channel.parameters() || {}).forEach(parameter => { + const schema = parameter.schema(); + if (schema) { + traverseSchema(schema, null, options); + } + }); + } + + const publish = channel.publish(); + if (publish) { + publish.messages().forEach(message => { + traverseMessage(message, options); + }); + } + + const subscribe = channel.subscribe(); + if (subscribe) { + subscribe.messages().forEach(message => { + traverseMessage(message, options); + }); + } +} + +/** + * Go through each schema in a message + */ +function traverseMessage(message: Message, options: TraverseOptions) { + if (!message) return; + const { schemaTypesToIterate } = options; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.headers)) { + const headers = message.headers(); + if (headers) { + traverseSchema(headers, null, options); + } + } + if (schemaTypesToIterate.includes(SchemaTypesToIterate.payloads)) { + const payload = message.payload(); + if (payload) { + traverseSchema(payload, null, options); + } + } +} + +/** + * Go through each schema in a messageTrait + */ +function traverseMessageTrait(messageTrait: MessageTrait, options: TraverseOptions) { + if (!messageTrait) return; + const { schemaTypesToIterate } = options; + if (schemaTypesToIterate.includes(SchemaTypesToIterate.headers)) { + const headers = messageTrait.headers(); + if (headers) { + traverseSchema(headers, null, options); + } + } +} diff --git a/src/old-api/message-trait.ts b/src/old-api/message-trait.ts index 5feec3545..8d762dc61 100644 --- a/src/old-api/message-trait.ts +++ b/src/old-api/message-trait.ts @@ -4,7 +4,7 @@ import { Schema } from './schema'; import type { v2 } from '../spec-types'; -export class MessageTrait extends SpecificationExtensionsModel { +export class MessageTrait extends SpecificationExtensionsModel { id() { return this._json.messageId; } diff --git a/src/old-api/message.ts b/src/old-api/message.ts index 9211d206c..fb1b380c4 100644 --- a/src/old-api/message.ts +++ b/src/old-api/message.ts @@ -1,11 +1,13 @@ import { MessageTrait } from './message-trait'; import { Schema } from './schema'; +import { xParserMessageName, xParserOriginalTraits, xParserOriginalPayload, xParserOriginalSchemaFormat } from '../constants'; + import type { v2 } from '../spec-types'; export class Message extends MessageTrait { uid() { - return this.id() || this.name() || this.ext('x-parser-message-name') as string || Buffer.from(JSON.stringify(this._json)).toString('base64'); + return this.id() || this.name() || this.ext(xParserMessageName) as string; } payload() { @@ -14,20 +16,20 @@ export class Message extends MessageTrait { } traits() { - const traits: v2.MessageTraitObject[] = this._json['x-parser-original-traits'] || this._json.traits; + const traits: v2.MessageTraitObject[] = this.ext(xParserOriginalTraits) || this._json.traits; if (!traits) return []; return traits.map(t => new MessageTrait(t)); } hasTraits() { - return !!this._json['x-parser-original-traits'] || !!this._json.traits; + return !!this.ext(xParserOriginalTraits) || !!this._json.traits; } originalPayload() { - return this._json['x-parser-original-payload'] || this.payload(); + return this.ext(xParserOriginalPayload) || this.payload(); } originalSchemaFormat() { - return this._json['x-parser-original-schema-format'] as string || this.schemaFormat(); + return this.ext(xParserOriginalSchemaFormat) as string || this.schemaFormat(); } } diff --git a/src/old-api/migrator.ts b/src/old-api/migrator.ts new file mode 100644 index 000000000..fdeea2728 --- /dev/null +++ b/src/old-api/migrator.ts @@ -0,0 +1,52 @@ +import { AsyncAPIDocument } from './asyncapi'; +import { xParserOriginalPayload, xParserOriginalSchemaFormat, xParserOriginalTraits, xParserMessageParsed } from '../constants'; +import { copy } from '../stringify'; +import { getDefaultSchemaFormat } from '../schema-parser'; + +import type { AsyncAPIDocumentInterface } from '../models/asyncapi'; + +export function migrateToOldAPI(newDocument: AsyncAPIDocumentInterface): AsyncAPIDocument { + const data = copy(newDocument.json()); + const document = new AsyncAPIDocument(data); + + handleMessages(document); + handleOperations(document); + + return document; +} + +function handleMessages(document: AsyncAPIDocument) { + const defaultSchemaFormat = getDefaultSchemaFormat(document.version()); + for (const message of document.allMessages().values()) { + const json = message.json(); + if (json.traits) { + json[xParserOriginalTraits] = json.traits; + delete json.traits; + } + json[xParserOriginalSchemaFormat] = json.schemaFormat || defaultSchemaFormat; + json.schemaFormat = defaultSchemaFormat; + json[xParserOriginalPayload] = json[xParserOriginalPayload] || json.payload; + json[xParserMessageParsed] = true; + } +} + +function handleOperations(document: AsyncAPIDocument) { + Object.values(document.channels()).forEach(channel => { + const publish = channel.publish(); + const subscribe = channel.subscribe(); + if (publish) { + const json = publish.json(); + if (json.traits) { + json[xParserOriginalTraits] = json.traits; + delete json.traits; + } + } + if (subscribe) { + const json = subscribe.json(); + if (json.traits) { + json[xParserOriginalTraits] = json.traits; + delete json.traits; + } + } + }); +} diff --git a/src/old-api/mixins.ts b/src/old-api/mixins.ts index 69f41a621..7b0debbdd 100644 --- a/src/old-api/mixins.ts +++ b/src/old-api/mixins.ts @@ -8,47 +8,35 @@ import type { v2 } from '../spec-types'; export abstract class SpecificationExtensionsModel = Record> extends Base { hasExtensions() { - return !!this.extensionKeys().length; + return extensionsMixins.hasExtensions(this); } extensions(): v2.SpecificationExtensions { - const result: v2.SpecificationExtensions = {}; - Object.entries(this._json).forEach(([key, value]) => { - if (EXTENSION_REGEX.test(key)) { - result[key as 'x-'] = value; - } - }); - return result; + return extensionsMixins.extensions(this); } extensionKeys() { - return Object.keys(this.extensions()); + return extensionsMixins.extensionKeys(this); } extKeys() { - return this.extensionKeys(); + return extensionsMixins.extKeys(this); } hasExtension(extension: string) { - if (!extension.startsWith('x-')) { - return false; - } - return !!(this._json as Record)[extension]; + return extensionsMixins.hasExtension(this, extension); } extension(extension: string): v2.SpecificationExtension { - if (!extension.startsWith('x-')) { - return null; - } - return (this._json as Record)[extension]; + return extensionsMixins.extension(this, extension); } hasExt(extension: string) { - return this.hasExtension(extension); + return extensionsMixins.hasExt(this, extension); } ext(extension: string) { - return this.extension(extension); + return extensionsMixins.ext(this, extension); } } @@ -70,6 +58,52 @@ export function externalDocs(model: Base<{ externalDocs?: v2.ExternalDocumentati } } +export const extensionsMixins = { + hasExtensions(model: Base<{ [extension: `x-${string}`]: v2.SpecificationExtension; }>) { + return !!extensionsMixins.extensionKeys(model).length; + }, + + extensions(model: Base<{ [extension: `x-${string}`]: v2.SpecificationExtension; }>): v2.SpecificationExtensions { + const result: v2.SpecificationExtensions = {}; + Object.entries(model.json()).forEach(([key, value]) => { + if (EXTENSION_REGEX.test(key)) { + result[key as 'x-'] = value; + } + }); + return result; + }, + + extensionKeys(model: Base<{ [extension: `x-${string}`]: v2.SpecificationExtension; }>) { + return Object.keys(extensionsMixins.extensions(model)); + }, + + extKeys(model: Base<{ [extension: `x-${string}`]: v2.SpecificationExtension; }>) { + return extensionsMixins.extensionKeys(model); + }, + + hasExtension(model: Base<{ [extension: `x-${string}`]: v2.SpecificationExtension; }>, extension: string) { + if (!extension.startsWith('x-')) { + return false; + } + return !!(model.json() as Record)[extension]; + }, + + extension(model: Base<{ [extension: `x-${string}`]: v2.SpecificationExtension; }>, extension: string): v2.SpecificationExtension | null { + if (!extension.startsWith('x-')) { + return null; + } + return (model.json() as Record)[extension]; + }, + + hasExt(model: Base<{ [extension: `x-${string}`]: v2.SpecificationExtension; }>, extension: string) { + return extensionsMixins.hasExtension(model, extension); + }, + + ext(model: Base<{ [extension: `x-${string}`]: v2.SpecificationExtension; }>, extension: string) { + return extensionsMixins.extension(model, extension); + }, +}; + export const bindingsMixins = { hasBindings(model: Base<{ bindings?: Record }>) { return !!Object.keys(bindingsMixins.bindings(model)).length; diff --git a/src/old-api/tag.ts b/src/old-api/tag.ts index 578143700..5b13faf9d 100644 --- a/src/old-api/tag.ts +++ b/src/old-api/tag.ts @@ -1,8 +1,9 @@ -import { SpecificationExtensionsModel, hasDescription, description, hasExternalDocs, externalDocs } from './mixins'; +import { Base } from './base'; +import { hasDescription, description, hasExternalDocs, externalDocs, extensionsMixins } from './mixins'; import type { v2 } from '../spec-types'; -export class Tag extends SpecificationExtensionsModel { +export class Tag extends Base { name() { return this._json.name; } @@ -22,4 +23,36 @@ export class Tag extends SpecificationExtensionsModel { hasExternalDocs() { return hasExternalDocs(this); } + + hasExtensions() { + return extensionsMixins.hasExtensions(this); + } + + extensions(): v2.SpecificationExtensions { + return extensionsMixins.extensions(this); + } + + extensionKeys() { + return extensionsMixins.extensionKeys(this); + } + + extKeys() { + return extensionsMixins.extKeys(this); + } + + hasExtension(extension: string) { + return extensionsMixins.hasExtension(this, extension); + } + + extension(extension: string): v2.SpecificationExtension { + return extensionsMixins.extension(this, extension); + } + + hasExt(extension: string) { + return extensionsMixins.hasExt(this, extension); + } + + ext(extension: string) { + return extensionsMixins.ext(this, extension); + } } diff --git a/src/parse.ts b/src/parse.ts index b9edf9b45..00e84ce9f 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -2,7 +2,7 @@ import { AsyncAPIDocumentInterface, newAsyncAPIDocument } from './models'; import { customOperations } from './custom-operations'; import { validate } from './lint'; -import { unfreeze } from './stringify'; +import { copy } from './stringify'; import { toAsyncAPIDocument } from './document'; import { createDetailedAsyncAPI, normalizeInput } from './utils'; @@ -15,7 +15,7 @@ import type { MaybeAsyncAPI, Diagnostic } from './types'; export type ParseInput = string | MaybeAsyncAPI | AsyncAPIDocumentInterface; export interface ParseOutput { source: ParseInput; - parsed: AsyncAPIDocumentInterface | undefined; + document: AsyncAPIDocumentInterface | undefined; diagnostics: Diagnostic[]; } @@ -30,7 +30,7 @@ export async function parse(parser: Parser, asyncapi: ParseInput, options?: Pars if (maybeDocument) { return { source: asyncapi, - parsed: maybeDocument, + document: maybeDocument, diagnostics: [], }; } @@ -43,22 +43,22 @@ export async function parse(parser: Parser, asyncapi: ParseInput, options?: Pars if (validated === undefined) { return { source: asyncapi, - parsed: undefined, + document: undefined, diagnostics, }; } // unfreeze the object - Spectral makes resolved document "freezed" - const validatedDoc = unfreeze(validated as Record); + const validatedDoc = copy(validated as Record); validatedDoc[String(xParserSpecParsed)] = true; const detailed = createDetailedAsyncAPI(asyncapi as string | Record, validatedDoc); - await customOperations(parser, detailed, options); const parsedDoc = newAsyncAPIDocument(detailed); + await customOperations(parser, parsedDoc, detailed, options); return { source: asyncapi, - parsed: parsedDoc, + document: parsedDoc, diagnostics, }; } catch (err: any) { diff --git a/src/stringify.ts b/src/stringify.ts index 4c786ef19..5f2b3e5f3 100644 --- a/src/stringify.ts +++ b/src/stringify.ts @@ -50,7 +50,7 @@ export function unstringify(document: unknown): AsyncAPIDocumentInterface | unde return newAsyncAPIDocument(createDetailedAsyncAPI(document as string, parsed as DetailedAsyncAPI['parsed'])); } -export function unfreeze(data: Record) { +export function copy(data: Record) { const stringifiedData = JSON.stringify(data, refReplacer()); const unstringifiedData = JSON.parse(stringifiedData); traverseStringifiedData(unstringifiedData, undefined, unstringifiedData, new Map(), new Map()); diff --git a/src/utils.ts b/src/utils.ts index cd5ae9173..a7e7bd7dc 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,6 +1,7 @@ import { DiagnosticSeverity } from '@stoplight/types'; import type { ISpectralDiagnostic } from '@stoplight/spectral-core'; +import type { BaseModel } from './models'; import type { AsyncAPISemver, AsyncAPIObject, DetailedAsyncAPI, MaybeAsyncAPI } from './types'; export function createDetailedAsyncAPI(source: string | Record, parsed: AsyncAPIObject): DetailedAsyncAPI { @@ -42,6 +43,12 @@ export function hasWarningDiagnostic(diagnostics: ISpectralDiagnostic[]): boolea return diagnostics.some(diagnostic => diagnostic.severity === DiagnosticSeverity.Warning); } +export function setExtension(id: string, value: any, model: BaseModel): void { + id = id.startsWith('x-') ? id : `x-${id}`; + const data = model.json(); + data[id] = value; +} + export function mergePatch(origin: unknown, patch: unknown) { // If the patch is not an object, it replaces the origin. if (!isObject(patch)) { diff --git a/test/browser/sample-page.html b/test/browser/sample-page.html index b1cb1a7f1..b30811629 100644 --- a/test/browser/sample-page.html +++ b/test/browser/sample-page.html @@ -15,9 +15,9 @@ try { const parser = new window.AsyncAPIParser(); const spec = '{ "asyncapi": "2.0.0", "info": { "title": "My API", "version": "1.0.0" }, "channels": { "/test/tester": { "subscribe": { "operationId": "subscribeOperation", "message": { } } } } }'; - const { parsed, diagnostics } = await parser.parse(spec); + const { document: parsedDocument, diagnostics } = await parser.parse(spec); - document.getElementById('content').innerHTML = parsed.version(); + document.getElementById('content').innerHTML = parsedDocument.version(); document.getElementById('diagnostics').innerHTML = String(diagnostics.length); } catch (error) { console.error(error) @@ -25,4 +25,4 @@ } parse(); - \ No newline at end of file + diff --git a/test/custom-operations/anonymous-naming.spec.ts b/test/custom-operations/anonymous-naming.spec.ts new file mode 100644 index 000000000..a5a57a76c --- /dev/null +++ b/test/custom-operations/anonymous-naming.spec.ts @@ -0,0 +1,177 @@ +import { Parser } from '../../src/parser'; +import { xParserMessageName, xParserSchemaId } from '../../src/constants'; + +describe('custom operations - anonymous naming', function() { + const parser = new Parser(); + + it('should assign x-parser-message-name to anonymous message', async function() { + const { document } = await parser.parse({ + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'operation', + message: { + payload: {} + } + } + } + } + }); + + expect(document?.messages()).toHaveLength(1); + expect(document?.messages()[0].extensions().get(xParserMessageName)?.value()).toEqual(''); + }); + + it('should assign x-parser-message-name to component messages', async function() { + const { document } = await parser.parse({ + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'operation', + message: { + payload: {} + } + } + } + }, + components: { + messages: { + message: { + payload: {} + } + } + } + }); + + expect(document?.components().messages()).toHaveLength(1); + expect(document?.components().messages()[0].extensions().get(xParserMessageName)?.value()).toEqual('message'); + }); + + it('should not override x-parser-message-name if it exists', async function() { + const { document } = await parser.parse({ + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'operation', + message: { + $ref: '#/components/messages/message' + } + } + } + }, + components: { + messages: { + message: { + payload: {} + } + } + } + }); + + expect(document?.messages()).toHaveLength(1); + expect(document?.messages()[0].extensions().get(xParserMessageName)?.value()).toEqual('message'); + }); + + it('should assign x-parser-schema-id to anonymous schema', async function() { + const { document } = await parser.parse({ + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'operation1', + message: { + payload: {} + } + }, + subscribe: { + operationId: 'operation2', + message: { + payload: {} + } + } + } + } + }); + + expect(document?.messages()[0].payload()?.extensions().get(xParserSchemaId)?.value()).toEqual(''); + expect(document?.messages()[1].payload()?.extensions().get(xParserSchemaId)?.value()).toEqual(''); + }); + + it('should assign x-parser-schema-id to component schemas', async function() { + const { document } = await parser.parse({ + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'operation', + message: { + payload: {} + } + } + } + }, + components: { + schemas: { + schema1: {}, + schema2: {} + } + } + }); + + expect(document?.components().schemas()).toHaveLength(2); + expect(document?.components().schemas()[0].extensions().get(xParserSchemaId)?.value()).toEqual('schema1'); + expect(document?.components().schemas()[1].extensions().get(xParserSchemaId)?.value()).toEqual('schema2'); + }); + + it('should not override x-parser-schema-id if it exists', async function() { + const { document } = await parser.parse({ + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'operation', + message: { + payload: { + $ref: '#/components/schemas/schema' + } + } + } + } + }, + components: { + schemas: { + schema: {}, + } + } + }); + + expect(document?.messages()[0].payload()?.extensions().get(xParserSchemaId)?.value()).toEqual('schema'); + }); +}); diff --git a/test/custom-operations/check-circular-refs.spec.ts b/test/custom-operations/check-circular-refs.spec.ts new file mode 100644 index 000000000..89bfdb92c --- /dev/null +++ b/test/custom-operations/check-circular-refs.spec.ts @@ -0,0 +1,61 @@ +import { Parser } from '../../src/parser'; +import { xParserCircular } from '../../src/constants'; + +describe('custom operations - check circular references', function() { + const parser = new Parser(); + + it('should not assign x-parser-circular extension when document has not circular schemas', async function() { + const { document } = await parser.parse({ + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'operation', + message: { + payload: { + property1: { + $ref: '#/channels/channel/publish/message/payload/property2' + }, + property2: { + type: 'string', + } + }, + } + } + } + } + }); + + expect(document?.extensions().get(xParserCircular)?.value()).toEqual(undefined); + }); + + it('should assign x-parser-circular extension when document has circular schemas', async function() { + const { document } = await parser.parse({ + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'operation', + message: { + payload: { + property: { + $ref: '#/channels/channel/publish/message/payload' + }, + }, + } + } + } + } + }); + + expect(document?.extensions().get(xParserCircular)?.value()).toEqual(true); + }); +}); diff --git a/test/custom-operations/parse-schema.spec.ts b/test/custom-operations/parse-schema.spec.ts index 883d8b32e..baac015a8 100644 --- a/test/custom-operations/parse-schema.spec.ts +++ b/test/custom-operations/parse-schema.spec.ts @@ -9,7 +9,7 @@ describe('custom operations - parse schemas', function() { const parser = new Parser(); it('should parse valid schema format', async function() { - const document = { + const documentRaw = { asyncapi: '2.0.0', info: { title: 'Valid AsyncApi document', @@ -29,18 +29,16 @@ describe('custom operations - parse schemas', function() { } } }; - const { parsed, diagnostics } = await parse(parser, document); + const { document, diagnostics } = await parse(parser, documentRaw); - expect(parsed).toBeInstanceOf(AsyncAPIDocumentV2); + expect(document).toBeInstanceOf(AsyncAPIDocumentV2); expect(diagnostics.length > 0).toEqual(true); - expect((parsed?.json()?.channels?.channel?.publish?.message as v2.MessageObject)?.payload).toEqual({ type: 'object' }); - expect((parsed?.json()?.channels?.channel?.publish?.message as v2.MessageObject)?.[xParserOriginalPayload]).toEqual({ type: 'object' }); - expect((parsed?.json()?.channels?.channel?.publish?.message as v2.MessageObject)?.payload).toEqual((parsed?.json()?.channels?.channel?.publish?.message as v2.MessageObject)?.[xParserOriginalPayload]); + expect((document?.json()?.channels?.channel?.publish?.message as v2.MessageObject)?.payload).toEqual({ type: 'object', 'x-parser-schema-id': '' }); }); it('should parse valid default schema format', async function() { - const document = { + const documentRaw = { asyncapi: '2.0.0', info: { title: 'Valid AsyncApi document', @@ -59,18 +57,16 @@ describe('custom operations - parse schemas', function() { } } }; - const { parsed, diagnostics } = await parse(parser, document); + const { document, diagnostics } = await parse(parser, documentRaw); - expect(parsed).toBeInstanceOf(AsyncAPIDocumentV2); + expect(document).toBeInstanceOf(AsyncAPIDocumentV2); expect(diagnostics.length > 0).toEqual(true); - expect((parsed?.json()?.channels?.channel?.publish?.message as v2.MessageObject)?.payload).toEqual({ type: 'object' }); - expect((parsed?.json()?.channels?.channel?.publish?.message as v2.MessageObject)?.[xParserOriginalPayload]).toEqual({ type: 'object' }); - expect((parsed?.json()?.channels?.channel?.publish?.message as v2.MessageObject)?.payload).toEqual((parsed?.json()?.channels?.channel?.publish?.message as v2.MessageObject)?.[xParserOriginalPayload]); + expect((document?.json()?.channels?.channel?.publish?.message as v2.MessageObject)?.payload).toEqual({ type: 'object', 'x-parser-schema-id': '' }); }); it('should parse invalid schema format', async function() { - const document = { + const documentRaw = { asyncapi: '2.0.0', info: { title: 'Valid AsyncApi document', @@ -90,9 +86,9 @@ describe('custom operations - parse schemas', function() { } } }; - const { parsed, diagnostics } = await parse(parser, document); + const { document, diagnostics } = await parse(parser, documentRaw); - expect(parsed).toBeUndefined(); + expect(document).toBeUndefined(); expect(diagnostics.length > 0).toEqual(true); }); }); diff --git a/test/iterator.spec.ts b/test/iterator.spec.ts index 3fa39d82c..a90b33907 100644 --- a/test/iterator.spec.ts +++ b/test/iterator.spec.ts @@ -1,10 +1,10 @@ -import { SchemaIteratorCallbackType, SchemaTypesToIterate, traverseAsyncApiDocument, TraverseCallback } from '../src/iterator'; +import { SchemaIteratorCallbackType, SchemaTypesToIterate, traverseAsyncApiDocument } from '../src/iterator'; import { Parser } from '../src/parser'; import { parse } from '../src/parse'; import { AsyncAPIDocumentInterface, AsyncAPIDocumentV2, SchemaV2 } from '../src/models'; import { SchemaInterface } from '../src/models/schema'; -const document = { +const documentRaw = { asyncapi: '2.0.0', info: { title: 'Valid AsyncApi document', @@ -47,7 +47,7 @@ const document = { } }; -type expectedCallback = { +type ExpectedCallback = { schema: SchemaInterface, propOrIndex: string | number | null, callbackType: SchemaIteratorCallbackType, @@ -57,11 +57,11 @@ describe('Traverse AsyncAPI document', function() { const parser = new Parser(); describe('traverseAsyncApiDocument()', function() { it('should traverse all possible schemas from a valid document', async function() { - const { parsed } = await parse(parser, document); - expect(parsed).toBeInstanceOf(AsyncAPIDocumentV2); + const { document } = await parse(parser, documentRaw); + expect(document).toBeInstanceOf(AsyncAPIDocumentV2); - const payload = parsed?.messages().all()[0].payload() as SchemaV2; - const componentsSchema = parsed?.components().schemas().all()[0] as SchemaV2; + const payload = document?.messages().all()[0].payload() as SchemaV2; + const componentsSchema = document?.components().schemas().all()[0] as SchemaV2; const expectedCalls = [ // Schema from channels call(payload, SchemaIteratorCallbackType.NEW_SCHEMA), @@ -79,14 +79,14 @@ describe('Traverse AsyncAPI document', function() { call(componentsSchema, SchemaIteratorCallbackType.END_SCHEMA) ]; - testCallback(expectedCalls, parsed as AsyncAPIDocumentInterface, []); + testCallback(expectedCalls, document as AsyncAPIDocumentInterface, []); }); it('should traverse few schemas from a valid document', async function() { - const { parsed } = await parse(parser, document); - expect(parsed).toBeInstanceOf(AsyncAPIDocumentV2); + const { document } = await parse(parser, documentRaw); + expect(document).toBeInstanceOf(AsyncAPIDocumentV2); - const componentsSchema = parsed?.components().schemas().all()[0] as SchemaV2; + const componentsSchema = document?.components().schemas().all()[0] as SchemaV2; const expectedCalls = [ // Schema from components call(componentsSchema, SchemaIteratorCallbackType.NEW_SCHEMA), @@ -97,12 +97,12 @@ describe('Traverse AsyncAPI document', function() { call(componentsSchema, SchemaIteratorCallbackType.END_SCHEMA) ]; - testCallback(expectedCalls, parsed as AsyncAPIDocumentInterface, [SchemaTypesToIterate.Components, SchemaTypesToIterate.Objects]); + testCallback(expectedCalls, document as AsyncAPIDocumentInterface, [SchemaTypesToIterate.Components, SchemaTypesToIterate.Objects]); }); }); }); -function testCallback(expectedCalls: expectedCallback[], document: AsyncAPIDocumentInterface, schemaTypesToIterate: SchemaTypesToIterate[]) { +function testCallback(expectedCalls: ExpectedCallback[], document: AsyncAPIDocumentInterface, schemaTypesToIterate: SchemaTypesToIterate[]) { let callsLeft = expectedCalls.length; const callback = function(schema: SchemaInterface, propOrIndex: string | number | null, callbackType: SchemaIteratorCallbackType): void { callsLeft--; @@ -116,7 +116,7 @@ function testCallback(expectedCalls: expectedCallback[], document: AsyncAPIDocum expect(callsLeft).toEqual(0); } -function call(schema: SchemaInterface, callbackType: SchemaIteratorCallbackType, propOrIndex: string | number | null = null): expectedCallback { +function call(schema: SchemaInterface, callbackType: SchemaIteratorCallbackType, propOrIndex: string | number | null = null): ExpectedCallback { let schemaProperties = schema; if (propOrIndex) { schemaProperties = (schema.properties() as Record)[propOrIndex as string]; diff --git a/test/old-api/iterator.spec.ts b/test/old-api/iterator.spec.ts new file mode 100644 index 000000000..fcd0599f6 --- /dev/null +++ b/test/old-api/iterator.spec.ts @@ -0,0 +1,135 @@ +import { migrateToOldAPI } from '../../src/old-api/migrator'; +import { SchemaIteratorCallbackType, SchemaTypesToIterate, traverseAsyncApiDocument } from '../../src/old-api/iterator'; +import { Parser } from '../../src/parser'; +import { AsyncAPIDocument } from '../../src/old-api/asyncapi'; +import { Schema } from '../../src/old-api/schema'; + +const documentRaw = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + myChannel: { + publish: { + operationId: 'MyOperation', + message: { + payload: { + type: 'object', + properties: { + exampleField: { + type: 'string' + }, + exampleNumber: { + type: 'number' + } + } + } + } + } + } + }, + components: { + schemas: { + anotherSchema: { + type: 'object', + properties: { + anotherExampleField: { + type: 'string' + }, + anotherExampleNumber: { + type: 'number' + } + } + } + } + } +}; + +type ExpectedCallback = { + schema: Schema, + propOrIndex: string | number | null, + callbackType: SchemaIteratorCallbackType, +} + +describe('Traverse AsyncAPI document - old API', function() { + const parser = new Parser(); + + describe('traverseAsyncApiDocument()', function() { + it('should traverse all possible schemas from a valid document', async function() { + const { document } = await parser.parse(documentRaw); + const oldDocument = migrateToOldAPI(document!); + + expect(oldDocument).toBeInstanceOf(AsyncAPIDocument); + + const payload = oldDocument?.channel('myChannel')?.publish()?.message()?.payload() as Schema; + const componentsSchema = oldDocument?.components()?.schemas()['anotherSchema'] as Schema; + const expectedCalls = [ + // Schema from channels + call(payload, SchemaIteratorCallbackType.NEW_SCHEMA), + call(payload, SchemaIteratorCallbackType.NEW_SCHEMA, 'exampleField'), + call(payload, SchemaIteratorCallbackType.END_SCHEMA, 'exampleField'), + call(payload, SchemaIteratorCallbackType.NEW_SCHEMA, 'exampleNumber'), + call(payload, SchemaIteratorCallbackType.END_SCHEMA, 'exampleNumber'), + call(payload, SchemaIteratorCallbackType.END_SCHEMA), + // Schema from components + call(componentsSchema, SchemaIteratorCallbackType.NEW_SCHEMA), + call(componentsSchema, SchemaIteratorCallbackType.NEW_SCHEMA, 'anotherExampleField'), + call(componentsSchema, SchemaIteratorCallbackType.END_SCHEMA, 'anotherExampleField'), + call(componentsSchema, SchemaIteratorCallbackType.NEW_SCHEMA, 'anotherExampleNumber'), + call(componentsSchema, SchemaIteratorCallbackType.END_SCHEMA, 'anotherExampleNumber'), + call(componentsSchema, SchemaIteratorCallbackType.END_SCHEMA) + ]; + + testCallback(expectedCalls, oldDocument, []); + }); + + it('should traverse few schemas from a valid document', async function() { + const { document } = await parser.parse(documentRaw); + const oldDocument = migrateToOldAPI(document!); + + expect(oldDocument).toBeInstanceOf(AsyncAPIDocument); + + const componentsSchema = oldDocument?.components()?.schemas()['anotherSchema'] as Schema; + const expectedCalls = [ + // Schema from components + call(componentsSchema, SchemaIteratorCallbackType.NEW_SCHEMA), + call(componentsSchema, SchemaIteratorCallbackType.NEW_SCHEMA, 'anotherExampleField'), + call(componentsSchema, SchemaIteratorCallbackType.END_SCHEMA, 'anotherExampleField'), + call(componentsSchema, SchemaIteratorCallbackType.NEW_SCHEMA, 'anotherExampleNumber'), + call(componentsSchema, SchemaIteratorCallbackType.END_SCHEMA, 'anotherExampleNumber'), + call(componentsSchema, SchemaIteratorCallbackType.END_SCHEMA) + ]; + + testCallback(expectedCalls, oldDocument, [SchemaTypesToIterate.components, SchemaTypesToIterate.objects]); + }); + }); +}); + +function testCallback(expectedCalls: ExpectedCallback[], document: AsyncAPIDocument, schemaTypesToIterate: SchemaTypesToIterate[]) { + let callsLeft = expectedCalls.length; + const callback = function(schema: Schema, propOrIndex: string | number | null, callbackType: SchemaIteratorCallbackType): void { + callsLeft--; + const expected = expectedCalls.shift(); + expect(schema).toEqual(expected?.schema); + expect(propOrIndex).toEqual(expected?.propOrIndex); + expect(callbackType).toEqual(expected?.callbackType); + }; + + traverseAsyncApiDocument(document, callback, schemaTypesToIterate); + expect(callsLeft).toEqual(0); +} + +function call(schema: Schema, callbackType: SchemaIteratorCallbackType, propOrIndex: string | number | null = null): ExpectedCallback { + let schemaProperties = schema; + if (propOrIndex) { + schemaProperties = schema.properties()[propOrIndex as string]; + } + + return { + schema: schemaProperties, + propOrIndex, + callbackType, + }; +} \ No newline at end of file diff --git a/test/old-api/migrator.spec.ts b/test/old-api/migrator.spec.ts new file mode 100644 index 000000000..310eee3d4 --- /dev/null +++ b/test/old-api/migrator.spec.ts @@ -0,0 +1,262 @@ +import { migrateToOldAPI } from '../../src/old-api/migrator'; +import { AsyncAPIDocument as OldAsyncAPIDocument } from '../../src/old-api/asyncapi'; +import { AsyncAPIDocumentV2 } from '../../src'; +import { anonymousNaming } from '../../src/custom-operations/anonymous-naming'; +import { checkCircularRefs } from '../../src/custom-operations/check-circular-refs'; +import { getDefaultSchemaFormat } from '../../src/schema-parser'; +import { xParserCircular, xParserOriginalTraits, xParserOriginalSchemaFormat, xParserMessageParsed, xParserOriginalPayload } from '../../src/constants'; + +describe('migrateToOldAPI()', function() { + it('should return AsyncAPIDocument instance', function() { + const newApi = new AsyncAPIDocumentV2({} as any); + expect(migrateToOldAPI(newApi)).toBeInstanceOf(OldAsyncAPIDocument); + }); + + it('should not assign x-parser-circular extension when document has not circular schemas', function() { + const newApi = new AsyncAPIDocumentV2({ + channels: { + channel: { + publish: { + message: { + payload: {}, + } + } + } + } + } as any); + + checkCircularRefs(newApi); + expect(migrateToOldAPI(newApi).ext(xParserCircular)).toEqual(undefined); + }); + + it('should assign x-parser-circular extension when document has circular schemas', function() { + const newApi = new AsyncAPIDocumentV2({ + channels: { + channel: { + publish: { + message: { + payload: { + properties: { + property: { + $ref: '#/channels/channel/publish/message/payload', + } + } + } + } + } + } + } + } as any); + + checkCircularRefs(newApi); + expect(migrateToOldAPI(newApi).ext(xParserCircular)).toEqual(true); + }); + + it('should assign x-parser-original-schema-format to the message object to the default one when field isn not defined', function() { + const newApi = new AsyncAPIDocumentV2({ + asyncapi: '2.0.0', + channels: { + channel: { + publish: { + message: { + payload: {}, + traits: [ + {}, + {}, + ] + } + }, + subscribe: { + message: { + payload: {}, + traits: [ + {}, + {}, + ] + } + } + } + } + } as any); + + // apply anonymous naming + anonymousNaming(newApi); + const oldApi = migrateToOldAPI(newApi); + expect(oldApi.json().channels.channel?.publish?.message?.[xParserOriginalSchemaFormat]).toEqual(getDefaultSchemaFormat('2.0.0')); + expect((oldApi.json().channels.channel?.publish?.message as any)?.schemaFormat).toEqual(getDefaultSchemaFormat('2.0.0')); + expect(oldApi.json().channels.channel?.subscribe?.message?.[xParserOriginalSchemaFormat]).toEqual(getDefaultSchemaFormat('2.0.0')); + expect((oldApi.json().channels.channel?.subscribe?.message as any)?.schemaFormat).toEqual(getDefaultSchemaFormat('2.0.0')); + }); + + it('should reuse schema format in the message object', function() { + const newApi = new AsyncAPIDocumentV2({ + asyncapi: '2.0.0', + channels: { + channel: { + publish: { + message: { + schemaFormat: 'custom1', + payload: {}, + traits: [ + {}, + {}, + ] + } + }, + subscribe: { + message: { + schemaFormat: 'custom2', + payload: {}, + traits: [ + {}, + {}, + ] + } + } + } + } + } as any); + + // apply anonymous naming + anonymousNaming(newApi); + const oldApi = migrateToOldAPI(newApi); + expect(oldApi.json().channels.channel?.publish?.message?.[xParserOriginalSchemaFormat]).toEqual('custom1'); + expect((oldApi.json().channels.channel?.publish?.message as any)?.schemaFormat).toEqual(getDefaultSchemaFormat('2.0.0')); + expect(oldApi.json().channels.channel?.subscribe?.message?.[xParserOriginalSchemaFormat]).toEqual('custom2'); + expect((oldApi.json().channels.channel?.subscribe?.message as any)?.schemaFormat).toEqual(getDefaultSchemaFormat('2.0.0')); + }); + + it('should assign x-parser-message-parsed to the message object', function() { + const newApi = new AsyncAPIDocumentV2({ + asyncapi: '2.0.0', + channels: { + channel: { + publish: { + message: { + payload: {}, + traits: [ + {}, + {}, + ] + } + }, + subscribe: { + message: { + payload: {}, + traits: [ + {}, + {}, + ] + } + } + } + } + } as any); + + // apply anonymous naming + anonymousNaming(newApi); + const oldApi = migrateToOldAPI(newApi); + expect(oldApi.json().channels.channel?.publish?.message?.[xParserMessageParsed]).toEqual(true); + expect(oldApi.json().channels.channel?.subscribe?.message?.[xParserMessageParsed]).toEqual(true); + }); + + it('should assign original payload extension to the message object', function() { + const newApi = new AsyncAPIDocumentV2({ + asyncapi: '2.0.0', + channels: { + channel: { + publish: { + message: { + payload: { + type: 'string', + }, + traits: [ + {}, + {}, + ] + } + }, + subscribe: { + message: { + payload: { + type: 'number', + }, + traits: [ + {}, + {}, + ] + } + } + } + } + } as any); + + // apply anonymous naming + anonymousNaming(newApi); + const oldApi = migrateToOldAPI(newApi); + expect(oldApi.json().channels.channel?.publish?.message?.[xParserOriginalPayload]).toEqual({ type: 'string', 'x-parser-schema-id': '' }); + expect(oldApi.json().channels.channel?.subscribe?.message?.[xParserOriginalPayload]).toEqual({ type: 'number', 'x-parser-schema-id': '' }); + }); + + it('should remove traits from message object and assign them to the extension', function() { + const newApi = new AsyncAPIDocumentV2({ + channels: { + channel: { + publish: { + message: { + payload: {}, + traits: [ + {}, + {}, + ] + } + }, + subscribe: { + message: { + payload: {}, + traits: [ + {}, + {}, + ] + } + } + } + } + } as any); + + // apply anonymous naming + anonymousNaming(newApi); + const oldApi = migrateToOldAPI(newApi); + expect(oldApi.json().channels.channel?.publish?.message?.[xParserOriginalTraits]).toEqual([{}, {}]); + expect((oldApi.json().channels.channel?.publish?.message as any)?.traits).toBeUndefined(); + expect(oldApi.json().channels.channel?.subscribe?.message?.[xParserOriginalTraits]).toEqual([{}, {}]); + expect((oldApi.json().channels.channel?.subscribe?.message as any)?.traits).toBeUndefined(); + }); + + it('should remove traits from operation object and assign them to the extension', function() { + const newApi = new AsyncAPIDocumentV2({ + channels: { + channel: { + publish: { + traits: [ + {}, + {}, + ], + }, + subscribe: { + traits: [ + {}, + {}, + ], + } + } + } + } as any); + + const oldApi = migrateToOldAPI(newApi); + expect(oldApi.json().channels.channel?.publish?.[xParserOriginalTraits]).toEqual([{}, {}]); + expect(oldApi.json().channels.channel?.publish?.traits).toBeUndefined(); + expect(oldApi.json().channels.channel?.subscribe?.[xParserOriginalTraits]).toEqual([{}, {}]); + expect(oldApi.json().channels.channel?.subscribe?.traits).toBeUndefined(); + }); +}); diff --git a/test/parse.spec.ts b/test/parse.spec.ts index 91d92cc76..d26afa76a 100644 --- a/test/parse.spec.ts +++ b/test/parse.spec.ts @@ -6,7 +6,7 @@ describe('parse()', function() { const parser = new Parser(); it('should parse valid document', async function() { - const document = { + const documentRaw = { asyncapi: '2.0.0', info: { title: 'Valid AsyncApi document', @@ -14,28 +14,28 @@ describe('parse()', function() { }, channels: {} }; - const { parsed, diagnostics } = await parse(parser, document); + const { document, diagnostics } = await parse(parser, documentRaw); - expect(parsed).toBeInstanceOf(AsyncAPIDocumentV2); + expect(document).toBeInstanceOf(AsyncAPIDocumentV2); expect(diagnostics.length > 0).toEqual(true); }); it('should parse invalid document', async function() { - const document = { + const documentRaw = { asyncapi: '2.0.0', info: { title: 'Invalid AsyncApi document', version: '1.0', }, }; - const { parsed, diagnostics } = await parse(parser, document); + const { document, diagnostics } = await parse(parser, documentRaw); - expect(parsed).toEqual(undefined); + expect(document).toEqual(undefined); expect(diagnostics.length > 0).toEqual(true); }); it('should preserve references', async function() { - const document = { + const documentRaw = { asyncapi: '2.0.0', info: { title: 'Valid AsyncApi document', @@ -67,11 +67,11 @@ describe('parse()', function() { } } }; - const { parsed } = await parse(parser, document); + const { document } = await parse(parser, documentRaw); - const publishMessage = parsed?.channels().get('channel')?.operations().get('publishOperation')?.messages()[0]; - const subscribeMessage = parsed?.channels().get('channel')?.operations().get('subscribeOperation')?.messages()[0]; - const componentsMessage = parsed?.components()?.messages()?.get('message'); + const publishMessage = document?.channels().get('channel')?.operations().get('publishOperation')?.messages()[0]; + const subscribeMessage = document?.channels().get('channel')?.operations().get('subscribeOperation')?.messages()[0]; + const componentsMessage = document?.components()?.messages()?.get('message'); expect(publishMessage?.json() !== undefined).toEqual(true); expect(subscribeMessage?.json() !== undefined).toEqual(true); expect(componentsMessage?.json() !== undefined).toEqual(true); @@ -81,7 +81,7 @@ describe('parse()', function() { }); it('should parse circular references (in this same document)', async function() { - const document = { + const documentRaw = { asyncapi: '2.0.0', info: { title: 'Valid AsyncApi document', @@ -107,16 +107,16 @@ describe('parse()', function() { } } }; - const { parsed } = await parse(parser, document); + const { document } = await parse(parser, documentRaw); - const messagePayload = parsed?.channels().get('channel')?.operations().get('someId')?.messages()[0].payload(); + const messagePayload = document?.channels().get('channel')?.operations().get('someId')?.messages()[0].payload(); expect(messagePayload?.json() !== undefined).toEqual(true); expect(messagePayload?.properties()?.['circular'].json() !== undefined).toEqual(true); expect(messagePayload?.properties()?.['circular'].json() === messagePayload?.json()).toEqual(true); // expect that same reference }); it('should parse circular references (in external file)', async function() { - const document = { + const documentRaw = { asyncapi: '2.0.0', info: { title: 'Valid AsyncApi document', @@ -142,9 +142,9 @@ describe('parse()', function() { } } }; - const { parsed } = await parse(parser, document, { validateOptions: { path: __filename } }); + const { document } = await parse(parser, documentRaw, { validateOptions: { path: __filename } }); - const messagePayload = parsed?.channels().get('channel')?.operations().get('someId')?.messages()[0].payload(); + const messagePayload = document?.channels().get('channel')?.operations().get('someId')?.messages()[0].payload(); const circular = messagePayload?.properties()?.['circular']; const deepProperty = circular?.properties()?.['deepProperty']; const deepCircular = deepProperty?.properties()?.['circular']; From ac49c9f0bd135933dc45cd7ac1e532e7aa6ec7db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Thu, 15 Sep 2022 09:41:45 +0200 Subject: [PATCH 050/126] refactor: add fromURL and fromFile utils (#610) --- README.md | 38 ++++ package-lock.json | 485 ++++++++++++++++++++++++++++------------- package.json | 5 +- src/from.ts | 58 +++++ src/index.ts | 2 +- src/lint.ts | 4 +- src/parse.ts | 9 +- src/spectral.ts | 2 + test/from.spec.ts | 37 ++++ test/mocks/simple.yaml | 24 ++ test/parse.spec.ts | 2 +- tsconfig.json | 3 +- 12 files changed, 511 insertions(+), 158 deletions(-) create mode 100644 src/from.ts create mode 100644 test/from.spec.ts create mode 100644 test/mocks/simple.yaml diff --git a/README.md b/README.md index 003cda979..7efcef6d2 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,24 @@ yarn add @asyncapi/parser The parser by default supports AsyncAPI Schema Format and JSON Schema Format for schemas. For additional formats, check [Custom schema parsers](#custom-schema-parsers) section. +## Usage + +The package exposes the main class `Parser`, which has two main functions: + +- `validate()` - function that validates the passed AsyncAPI document. Returns array of all possible errors against the validation conditions. +- `parse()` - function that validates the passed AsyncAPI document, and then if it's valid, parses the input. It returns an object that contains: + - `document` object, which is an parsed AsyncAPI document with [`AsyncAPIDocumentInterface`](./src/models/asyncapi.ts) API. If the schema is invalid against the validation conditions, the field has `undefined` value. + - `diagnostics` array that contains all possible errors against the validation conditions. +- `registerSchemaParser()` - function that registers custom schema parsers. For more info, please check [Custom schema parsers](#custom-schema-parsers) section. + +Natively `Parser` class does not contain methods that operate on the source (AsyncAPI document) from a file or URL. However, the package exposes utils that make this possible: + +```ts +import { fromURL, fromFile } from '@asyncapi/parser'; +``` + +Check out the [examples](#examples) of using the above mentioned functionalities. + ## Examples ### Example with parsing @@ -125,6 +143,26 @@ Head over to [asyncapi/openapi-schema-parser](https://www.github.com/asyncapi/op Head over to [asyncapi/raml-dt-schema-parser](https://www.github.com/asyncapi/raml-dt-schema-parser) for more information. +### Example with performing actions on HTTP source + +```ts +import { Parser, fromURL } from '@asyncapi/parser'; + +const parser = new Parser(); + +const { document, diagnostics } = await (await fromURL(parser, 'https://example.com/')).parse(); +``` + +### Example with performing actions on file source + +```ts +import { Parser, fromFile } from '@asyncapi/parser'; + +const parser = new Parser(); + +const { document, diagnostics } = await (await fromFile(parser, './asyncapi.yaml')).parse(); +``` + ### [Example with stringify and unstringify parsed document](#stringify) ```ts diff --git a/package-lock.json b/package-lock.json index a5cbe3f12..bf9df1ae8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,9 +17,11 @@ "@stoplight/spectral-rulesets": "^1.12.0", "ajv": "^8.11.0", "avsc": "^5.7.5", + "fetch-mock-jest": "^1.5.1", "js-yaml": "^4.1.0", "jsonpath-plus": "^7.2.0", "lodash": "^4.17.21", + "node-fetch": "2.6.7", "ramldt2jsonschema": "^1.2.3", "webapi-parser": "^0.5.0" }, @@ -35,6 +37,7 @@ "@types/js-yaml": "^4.0.5", "@types/json-schema": "^7.0.11", "@types/lodash": "^4.14.179", + "@types/node-fetch": "^2.6.2", "@typescript-eslint/eslint-plugin": "^5.36.2", "@typescript-eslint/parser": "^5.36.2", "conventional-changelog-conventionalcommits": "^4.2.3", @@ -77,7 +80,6 @@ }, "node_modules/@ampproject/remapping": { "version": "2.1.2", - "dev": true, "license": "Apache-2.0", "dependencies": { "@jridgewell/trace-mapping": "^0.3.0" @@ -93,7 +95,6 @@ }, "node_modules/@babel/code-frame": { "version": "7.16.7", - "dev": true, "license": "MIT", "dependencies": { "@babel/highlight": "^7.16.7" @@ -104,7 +105,6 @@ }, "node_modules/@babel/compat-data": { "version": "7.17.0", - "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -112,7 +112,6 @@ }, "node_modules/@babel/core": { "version": "7.17.5", - "dev": true, "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.1.0", @@ -141,7 +140,6 @@ }, "node_modules/@babel/core/node_modules/semver": { "version": "6.3.0", - "dev": true, "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -149,7 +147,6 @@ }, "node_modules/@babel/generator": { "version": "7.17.3", - "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.17.0", @@ -162,7 +159,6 @@ }, "node_modules/@babel/generator/node_modules/source-map": { "version": "0.5.7", - "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" @@ -170,7 +166,6 @@ }, "node_modules/@babel/helper-compilation-targets": { "version": "7.16.7", - "dev": true, "license": "MIT", "dependencies": { "@babel/compat-data": "^7.16.4", @@ -187,7 +182,6 @@ }, "node_modules/@babel/helper-compilation-targets/node_modules/semver": { "version": "6.3.0", - "dev": true, "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -195,7 +189,6 @@ }, "node_modules/@babel/helper-environment-visitor": { "version": "7.16.7", - "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.16.7" @@ -206,7 +199,6 @@ }, "node_modules/@babel/helper-function-name": { "version": "7.16.7", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-get-function-arity": "^7.16.7", @@ -219,7 +211,6 @@ }, "node_modules/@babel/helper-get-function-arity": { "version": "7.16.7", - "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.16.7" @@ -230,7 +221,6 @@ }, "node_modules/@babel/helper-hoist-variables": { "version": "7.16.7", - "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.16.7" @@ -241,7 +231,6 @@ }, "node_modules/@babel/helper-module-imports": { "version": "7.16.7", - "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.16.7" @@ -252,7 +241,6 @@ }, "node_modules/@babel/helper-module-transforms": { "version": "7.17.6", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-environment-visitor": "^7.16.7", @@ -278,7 +266,6 @@ }, "node_modules/@babel/helper-simple-access": { "version": "7.16.7", - "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.16.7" @@ -289,7 +276,6 @@ }, "node_modules/@babel/helper-split-export-declaration": { "version": "7.16.7", - "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.16.7" @@ -300,7 +286,6 @@ }, "node_modules/@babel/helper-validator-identifier": { "version": "7.16.7", - "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -308,7 +293,6 @@ }, "node_modules/@babel/helper-validator-option": { "version": "7.16.7", - "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -316,7 +300,6 @@ }, "node_modules/@babel/helpers": { "version": "7.17.2", - "dev": true, "license": "MIT", "dependencies": { "@babel/template": "^7.16.7", @@ -329,7 +312,6 @@ }, "node_modules/@babel/highlight": { "version": "7.16.10", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-validator-identifier": "^7.16.7", @@ -342,7 +324,6 @@ }, "node_modules/@babel/parser": { "version": "7.17.3", - "dev": true, "license": "MIT", "bin": { "parser": "bin/babel-parser.js" @@ -516,7 +497,6 @@ }, "node_modules/@babel/runtime": { "version": "7.19.0", - "dev": true, "license": "MIT", "dependencies": { "regenerator-runtime": "^0.13.4" @@ -539,7 +519,6 @@ }, "node_modules/@babel/template": { "version": "7.16.7", - "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.16.7", @@ -552,7 +531,6 @@ }, "node_modules/@babel/traverse": { "version": "7.17.3", - "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.16.7", @@ -572,7 +550,6 @@ }, "node_modules/@babel/traverse/node_modules/globals": { "version": "11.12.0", - "dev": true, "license": "MIT", "engines": { "node": ">=4" @@ -580,7 +557,6 @@ }, "node_modules/@babel/types": { "version": "7.17.0", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-validator-identifier": "^7.16.7", @@ -1916,7 +1892,6 @@ }, "node_modules/@jridgewell/resolve-uri": { "version": "3.0.5", - "dev": true, "license": "MIT", "engines": { "node": ">=6.0.0" @@ -1943,12 +1918,10 @@ }, "node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.11", - "dev": true, "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.15", - "dev": true, "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.0.3", @@ -2910,6 +2883,16 @@ "version": "17.0.21", "license": "MIT" }, + "node_modules/@types/node-fetch": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.2.tgz", + "integrity": "sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==", + "dev": true, + "dependencies": { + "@types/node": "*", + "form-data": "^3.0.0" + } + }, "node_modules/@types/normalize-package-data": { "version": "2.4.0", "dev": true, @@ -3529,7 +3512,6 @@ }, "node_modules/ansi-styles": { "version": "3.2.1", - "dev": true, "license": "MIT", "dependencies": { "color-convert": "^1.9.0" @@ -3660,6 +3642,12 @@ "astring": "bin/astring" } }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true + }, "node_modules/at-least-node": { "version": "1.0.0", "dev": true, @@ -3817,7 +3805,6 @@ }, "node_modules/browserslist": { "version": "4.21.3", - "dev": true, "funding": [ { "type": "opencollective", @@ -3933,7 +3920,6 @@ }, "node_modules/caniuse-lite": { "version": "1.0.30001387", - "dev": true, "funding": [ { "type": "opencollective", @@ -3960,7 +3946,6 @@ }, "node_modules/chalk": { "version": "2.4.2", - "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^3.2.1", @@ -4094,7 +4079,6 @@ }, "node_modules/color-convert": { "version": "1.9.3", - "dev": true, "license": "MIT", "dependencies": { "color-name": "1.1.3" @@ -4102,7 +4086,6 @@ }, "node_modules/color-name": { "version": "1.1.3", - "dev": true, "license": "MIT" }, "node_modules/colorette": { @@ -4119,6 +4102,18 @@ "node": ">=0.1.90" } }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/commander": { "version": "5.1.0", "license": "MIT", @@ -4250,12 +4245,21 @@ }, "node_modules/convert-source-map": { "version": "1.8.0", - "dev": true, "license": "MIT", "dependencies": { "safe-buffer": "~5.1.1" } }, + "node_modules/core-js": { + "version": "3.25.1", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.25.1.tgz", + "integrity": "sha512-sr0FY4lnO1hkQ4gLDr24K0DGnweGO1QwSj5BpfQjpSJPdqWalja4cTps29Y/PJVG/P7FYlPDkH3hO+Tr0CvDgQ==", + "hasInstallScript": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, "node_modules/core-js-pure": { "version": "3.25.0", "dev": true, @@ -4392,7 +4396,6 @@ }, "node_modules/debug": { "version": "4.3.4", - "dev": true, "license": "MIT", "dependencies": { "ms": "2.1.2" @@ -4474,6 +4477,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/dependency-graph": { "version": "0.11.0", "license": "MIT", @@ -4581,7 +4593,6 @@ }, "node_modules/electron-to-chromium": { "version": "1.4.242", - "dev": true, "license": "ISC" }, "node_modules/emittery": { @@ -4774,7 +4785,6 @@ }, "node_modules/escalade": { "version": "3.1.1", - "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -4782,7 +4792,6 @@ }, "node_modules/escape-string-regexp": { "version": "1.0.5", - "dev": true, "license": "MIT", "engines": { "node": ">=0.8.0" @@ -5805,6 +5814,84 @@ "pend": "~1.2.0" } }, + "node_modules/fetch-mock": { + "version": "9.11.0", + "resolved": "https://registry.npmjs.org/fetch-mock/-/fetch-mock-9.11.0.tgz", + "integrity": "sha512-PG1XUv+x7iag5p/iNHD4/jdpxL9FtVSqRMUQhPab4hVDt80T1MH5ehzVrL2IdXO9Q2iBggArFvPqjUbHFuI58Q==", + "dependencies": { + "@babel/core": "^7.0.0", + "@babel/runtime": "^7.0.0", + "core-js": "^3.0.0", + "debug": "^4.1.1", + "glob-to-regexp": "^0.4.0", + "is-subset": "^0.1.1", + "lodash.isequal": "^4.5.0", + "path-to-regexp": "^2.2.1", + "querystring": "^0.2.0", + "whatwg-url": "^6.5.0" + }, + "engines": { + "node": ">=4.0.0" + }, + "funding": { + "type": "charity", + "url": "https://www.justgiving.com/refugee-support-europe" + }, + "peerDependencies": { + "node-fetch": "*" + }, + "peerDependenciesMeta": { + "node-fetch": { + "optional": true + } + } + }, + "node_modules/fetch-mock-jest": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/fetch-mock-jest/-/fetch-mock-jest-1.5.1.tgz", + "integrity": "sha512-+utwzP8C+Pax1GSka3nFXILWMY3Er2L+s090FOgqVNrNCPp0fDqgXnAHAJf12PLHi0z4PhcTaZNTz8e7K3fjqQ==", + "dependencies": { + "fetch-mock": "^9.11.0" + }, + "engines": { + "node": ">=8.0.0" + }, + "funding": { + "type": "charity", + "url": "https://www.justgiving.com/refugee-support-europe" + }, + "peerDependencies": { + "node-fetch": "*" + }, + "peerDependenciesMeta": { + "node-fetch": { + "optional": true + } + } + }, + "node_modules/fetch-mock/node_modules/tr46": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", + "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/fetch-mock/node_modules/webidl-conversions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", + "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==" + }, + "node_modules/fetch-mock/node_modules/whatwg-url": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-6.5.0.tgz", + "integrity": "sha512-rhRZRqx/TLJQWUpQ6bmrt2UV4f0HCQ463yQuONJqC6fO2VoEb1pTYddbe59SkYq87aoM5A3bdhMZiUiVws+fzQ==", + "dependencies": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + }, "node_modules/figures": { "version": "3.2.0", "dev": true, @@ -5891,6 +5978,20 @@ "node": ">=0.10.0" } }, + "node_modules/form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/from2": { "version": "2.3.0", "dev": true, @@ -5971,7 +6072,6 @@ }, "node_modules/gensync": { "version": "1.0.0-beta.2", - "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -6093,8 +6193,7 @@ "node_modules/glob-to-regexp": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", - "dev": true + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" }, "node_modules/globals": { "version": "13.17.0", @@ -6271,7 +6370,6 @@ }, "node_modules/has-flag": { "version": "3.0.0", - "dev": true, "license": "MIT", "engines": { "node": ">=4" @@ -6726,6 +6824,11 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-subset": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-subset/-/is-subset-0.1.1.tgz", + "integrity": "sha512-6Ybun0IkarhmEqxXCNw/C0bna6Zb/TkfUX9UbwJtK6ObwAVCxmAP308WWTHviM/zAqXk05cdhYsUsZeGQh99iw==" + }, "node_modules/is-symbol": { "version": "1.0.4", "license": "MIT", @@ -9379,7 +9482,6 @@ }, "node_modules/js-tokens": { "version": "4.0.0", - "dev": true, "license": "MIT" }, "node_modules/js-yaml": { @@ -9408,7 +9510,6 @@ }, "node_modules/jsesc": { "version": "2.5.2", - "dev": true, "license": "MIT", "bin": { "jsesc": "bin/jsesc" @@ -9468,7 +9569,6 @@ }, "node_modules/json5": { "version": "2.2.0", - "dev": true, "license": "MIT", "dependencies": { "minimist": "^1.2.5" @@ -9699,6 +9799,11 @@ "version": "4.4.2", "license": "MIT" }, + "node_modules/lodash.isequal": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", + "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==" + }, "node_modules/lodash.ismatch": { "version": "4.4.0", "dev": true, @@ -9733,6 +9838,11 @@ "dev": true, "license": "MIT" }, + "node_modules/lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==" + }, "node_modules/lodash.template": { "version": "4.5.0", "dev": true, @@ -10114,7 +10224,6 @@ }, "node_modules/minimist": { "version": "1.2.6", - "dev": true, "license": "MIT" }, "node_modules/minimist-options": { @@ -10197,7 +10306,6 @@ }, "node_modules/ms": { "version": "2.1.2", - "dev": true, "license": "MIT" }, "node_modules/natural-compare": { @@ -10251,7 +10359,8 @@ }, "node_modules/node-fetch": { "version": "2.6.7", - "license": "MIT", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", + "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -10274,7 +10383,6 @@ }, "node_modules/node-releases": { "version": "2.0.6", - "dev": true, "license": "MIT" }, "node_modules/normalize-package-data": { @@ -15200,6 +15308,11 @@ "dev": true, "license": "MIT" }, + "node_modules/path-to-regexp": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-2.4.0.tgz", + "integrity": "sha512-G6zHoVqC6GGTQkZwF4lkuEyMbVOjoBKAEybQUypI1WTkqinCOrq2x6U2+phkJ1XsEMTy4LjtwPI7HW+NVrRR2w==" + }, "node_modules/pend": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", @@ -15208,7 +15321,6 @@ }, "node_modules/picocolors": { "version": "1.0.0", - "dev": true, "license": "ISC" }, "node_modules/picomatch": { @@ -15469,6 +15581,15 @@ "teleport": ">=0.2.0" } }, + "node_modules/querystring": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.1.tgz", + "integrity": "sha512-wkvS7mL/JMugcup3/rMitHmd9ecIGd2lhFhK9N3UUQ450h66d1r3Y9nvXzQAW1Lq+wyx61k/1pfKS5KuKiyEbg==", + "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", + "engines": { + "node": ">=0.4.x" + } + }, "node_modules/queue-microtask": { "version": "1.2.3", "dev": true, @@ -15745,7 +15866,6 @@ }, "node_modules/regenerator-runtime": { "version": "0.13.9", - "dev": true, "license": "MIT" }, "node_modules/regexp-tree": { @@ -15937,7 +16057,6 @@ }, "node_modules/safe-buffer": { "version": "5.1.2", - "dev": true, "license": "MIT" }, "node_modules/safe-regex": { @@ -16464,7 +16583,6 @@ }, "node_modules/supports-color": { "version": "5.5.0", - "dev": true, "license": "MIT", "dependencies": { "has-flag": "^3.0.0" @@ -16753,7 +16871,6 @@ }, "node_modules/to-fast-properties": { "version": "2.0.0", - "dev": true, "license": "MIT", "engines": { "node": ">=4" @@ -16797,7 +16914,8 @@ }, "node_modules/tr46": { "version": "0.0.3", - "license": "MIT" + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, "node_modules/traverse": { "version": "0.6.6", @@ -17108,7 +17226,6 @@ }, "node_modules/update-browserslist-db": { "version": "1.0.7", - "dev": true, "funding": [ { "type": "opencollective", @@ -17230,7 +17347,8 @@ }, "node_modules/webidl-conversions": { "version": "3.0.1", - "license": "BSD-2-Clause" + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" }, "node_modules/webpack": { "version": "5.74.0", @@ -17504,7 +17622,8 @@ }, "node_modules/whatwg-url": { "version": "5.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" @@ -17706,7 +17825,6 @@ "dependencies": { "@ampproject/remapping": { "version": "2.1.2", - "dev": true, "requires": { "@jridgewell/trace-mapping": "^0.3.0" } @@ -17718,18 +17836,15 @@ }, "@babel/code-frame": { "version": "7.16.7", - "dev": true, "requires": { "@babel/highlight": "^7.16.7" } }, "@babel/compat-data": { - "version": "7.17.0", - "dev": true + "version": "7.17.0" }, "@babel/core": { "version": "7.17.5", - "dev": true, "requires": { "@ampproject/remapping": "^2.1.0", "@babel/code-frame": "^7.16.7", @@ -17749,14 +17864,12 @@ }, "dependencies": { "semver": { - "version": "6.3.0", - "dev": true + "version": "6.3.0" } } }, "@babel/generator": { "version": "7.17.3", - "dev": true, "requires": { "@babel/types": "^7.17.0", "jsesc": "^2.5.1", @@ -17764,14 +17877,12 @@ }, "dependencies": { "source-map": { - "version": "0.5.7", - "dev": true + "version": "0.5.7" } } }, "@babel/helper-compilation-targets": { "version": "7.16.7", - "dev": true, "requires": { "@babel/compat-data": "^7.16.4", "@babel/helper-validator-option": "^7.16.7", @@ -17780,21 +17891,18 @@ }, "dependencies": { "semver": { - "version": "6.3.0", - "dev": true + "version": "6.3.0" } } }, "@babel/helper-environment-visitor": { "version": "7.16.7", - "dev": true, "requires": { "@babel/types": "^7.16.7" } }, "@babel/helper-function-name": { "version": "7.16.7", - "dev": true, "requires": { "@babel/helper-get-function-arity": "^7.16.7", "@babel/template": "^7.16.7", @@ -17803,28 +17911,24 @@ }, "@babel/helper-get-function-arity": { "version": "7.16.7", - "dev": true, "requires": { "@babel/types": "^7.16.7" } }, "@babel/helper-hoist-variables": { "version": "7.16.7", - "dev": true, "requires": { "@babel/types": "^7.16.7" } }, "@babel/helper-module-imports": { "version": "7.16.7", - "dev": true, "requires": { "@babel/types": "^7.16.7" } }, "@babel/helper-module-transforms": { "version": "7.17.6", - "dev": true, "requires": { "@babel/helper-environment-visitor": "^7.16.7", "@babel/helper-module-imports": "^7.16.7", @@ -17842,29 +17946,24 @@ }, "@babel/helper-simple-access": { "version": "7.16.7", - "dev": true, "requires": { "@babel/types": "^7.16.7" } }, "@babel/helper-split-export-declaration": { "version": "7.16.7", - "dev": true, "requires": { "@babel/types": "^7.16.7" } }, "@babel/helper-validator-identifier": { - "version": "7.16.7", - "dev": true + "version": "7.16.7" }, "@babel/helper-validator-option": { - "version": "7.16.7", - "dev": true + "version": "7.16.7" }, "@babel/helpers": { "version": "7.17.2", - "dev": true, "requires": { "@babel/template": "^7.16.7", "@babel/traverse": "^7.17.0", @@ -17873,7 +17972,6 @@ }, "@babel/highlight": { "version": "7.16.10", - "dev": true, "requires": { "@babel/helper-validator-identifier": "^7.16.7", "chalk": "^2.0.0", @@ -17881,8 +17979,7 @@ } }, "@babel/parser": { - "version": "7.17.3", - "dev": true + "version": "7.17.3" }, "@babel/plugin-syntax-async-generators": { "version": "7.8.4", @@ -17984,7 +18081,6 @@ }, "@babel/runtime": { "version": "7.19.0", - "dev": true, "requires": { "regenerator-runtime": "^0.13.4" } @@ -17999,7 +18095,6 @@ }, "@babel/template": { "version": "7.16.7", - "dev": true, "requires": { "@babel/code-frame": "^7.16.7", "@babel/parser": "^7.16.7", @@ -18008,7 +18103,6 @@ }, "@babel/traverse": { "version": "7.17.3", - "dev": true, "requires": { "@babel/code-frame": "^7.16.7", "@babel/generator": "^7.17.3", @@ -18023,14 +18117,12 @@ }, "dependencies": { "globals": { - "version": "11.12.0", - "dev": true + "version": "11.12.0" } } }, "@babel/types": { "version": "7.17.0", - "dev": true, "requires": { "@babel/helper-validator-identifier": "^7.16.7", "to-fast-properties": "^2.0.0" @@ -18922,8 +19014,7 @@ } }, "@jridgewell/resolve-uri": { - "version": "3.0.5", - "dev": true + "version": "3.0.5" }, "@jridgewell/set-array": { "version": "1.1.2", @@ -18942,12 +19033,10 @@ } }, "@jridgewell/sourcemap-codec": { - "version": "1.4.11", - "dev": true + "version": "1.4.11" }, "@jridgewell/trace-mapping": { "version": "0.3.15", - "dev": true, "requires": { "@jridgewell/resolve-uri": "^3.0.3", "@jridgewell/sourcemap-codec": "^1.4.10" @@ -19656,6 +19745,16 @@ "@types/node": { "version": "17.0.21" }, + "@types/node-fetch": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.2.tgz", + "integrity": "sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==", + "dev": true, + "requires": { + "@types/node": "*", + "form-data": "^3.0.0" + } + }, "@types/normalize-package-data": { "version": "2.4.0", "dev": true @@ -20080,7 +20179,6 @@ }, "ansi-styles": { "version": "3.2.1", - "dev": true, "requires": { "color-convert": "^1.9.0" } @@ -20163,6 +20261,12 @@ "astring": { "version": "1.8.3" }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true + }, "at-least-node": { "version": "1.0.0", "dev": true @@ -20274,7 +20378,6 @@ }, "browserslist": { "version": "4.21.3", - "dev": true, "requires": { "caniuse-lite": "^1.0.30001370", "electron-to-chromium": "^1.4.202", @@ -20334,8 +20437,7 @@ } }, "caniuse-lite": { - "version": "1.0.30001387", - "dev": true + "version": "1.0.30001387" }, "cardinal": { "version": "2.1.1", @@ -20347,7 +20449,6 @@ }, "chalk": { "version": "2.4.2", - "dev": true, "requires": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -20439,14 +20540,12 @@ }, "color-convert": { "version": "1.9.3", - "dev": true, "requires": { "color-name": "1.1.3" } }, "color-name": { - "version": "1.1.3", - "dev": true + "version": "1.1.3" }, "colorette": { "version": "2.0.19", @@ -20458,6 +20557,15 @@ "version": "1.0.3", "dev": true }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "requires": { + "delayed-stream": "~1.0.0" + } + }, "commander": { "version": "5.1.0" }, @@ -20550,11 +20658,15 @@ }, "convert-source-map": { "version": "1.8.0", - "dev": true, "requires": { "safe-buffer": "~5.1.1" } }, + "core-js": { + "version": "3.25.1", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.25.1.tgz", + "integrity": "sha512-sr0FY4lnO1hkQ4gLDr24K0DGnweGO1QwSj5BpfQjpSJPdqWalja4cTps29Y/PJVG/P7FYlPDkH3hO+Tr0CvDgQ==" + }, "core-js-pure": { "version": "3.25.0", "dev": true @@ -20642,7 +20754,6 @@ }, "debug": { "version": "4.3.4", - "dev": true, "requires": { "ms": "2.1.2" } @@ -20688,6 +20799,12 @@ "object-keys": "^1.1.1" } }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true + }, "dependency-graph": { "version": "0.11.0" }, @@ -20758,8 +20875,7 @@ } }, "electron-to-chromium": { - "version": "1.4.242", - "dev": true + "version": "1.4.242" }, "emittery": { "version": "0.10.2", @@ -20893,12 +21009,10 @@ } }, "escalade": { - "version": "3.1.1", - "dev": true + "version": "3.1.1" }, "escape-string-regexp": { - "version": "1.0.5", - "dev": true + "version": "1.0.5" }, "eslint": { "version": "8.23.0", @@ -21558,6 +21672,56 @@ "pend": "~1.2.0" } }, + "fetch-mock": { + "version": "9.11.0", + "resolved": "https://registry.npmjs.org/fetch-mock/-/fetch-mock-9.11.0.tgz", + "integrity": "sha512-PG1XUv+x7iag5p/iNHD4/jdpxL9FtVSqRMUQhPab4hVDt80T1MH5ehzVrL2IdXO9Q2iBggArFvPqjUbHFuI58Q==", + "requires": { + "@babel/core": "^7.0.0", + "@babel/runtime": "^7.0.0", + "core-js": "^3.0.0", + "debug": "^4.1.1", + "glob-to-regexp": "^0.4.0", + "is-subset": "^0.1.1", + "lodash.isequal": "^4.5.0", + "path-to-regexp": "^2.2.1", + "querystring": "^0.2.0", + "whatwg-url": "^6.5.0" + }, + "dependencies": { + "tr46": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", + "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==", + "requires": { + "punycode": "^2.1.0" + } + }, + "webidl-conversions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", + "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==" + }, + "whatwg-url": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-6.5.0.tgz", + "integrity": "sha512-rhRZRqx/TLJQWUpQ6bmrt2UV4f0HCQ463yQuONJqC6fO2VoEb1pTYddbe59SkYq87aoM5A3bdhMZiUiVws+fzQ==", + "requires": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + } + } + }, + "fetch-mock-jest": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/fetch-mock-jest/-/fetch-mock-jest-1.5.1.tgz", + "integrity": "sha512-+utwzP8C+Pax1GSka3nFXILWMY3Er2L+s090FOgqVNrNCPp0fDqgXnAHAJf12PLHi0z4PhcTaZNTz8e7K3fjqQ==", + "requires": { + "fetch-mock": "^9.11.0" + } + }, "figures": { "version": "3.2.0", "dev": true, @@ -21609,6 +21773,17 @@ "version": "1.0.2", "dev": true }, + "form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + }, "from2": { "version": "2.3.0", "dev": true, @@ -21662,8 +21837,7 @@ "version": "1.2.3" }, "gensync": { - "version": "1.0.0-beta.2", - "dev": true + "version": "1.0.0-beta.2" }, "get-caller-file": { "version": "2.0.5", @@ -21743,8 +21917,7 @@ "glob-to-regexp": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", - "dev": true + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" }, "globals": { "version": "13.17.0", @@ -21859,8 +22032,7 @@ "version": "1.0.2" }, "has-flag": { - "version": "3.0.0", - "dev": true + "version": "3.0.0" }, "has-property-descriptors": { "version": "1.0.0", @@ -22108,6 +22280,11 @@ "has-tostringtag": "^1.0.0" } }, + "is-subset": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-subset/-/is-subset-0.1.1.tgz", + "integrity": "sha512-6Ybun0IkarhmEqxXCNw/C0bna6Zb/TkfUX9UbwJtK6ObwAVCxmAP308WWTHviM/zAqXk05cdhYsUsZeGQh99iw==" + }, "is-symbol": { "version": "1.0.4", "requires": { @@ -23851,8 +24028,7 @@ } }, "js-tokens": { - "version": "4.0.0", - "dev": true + "version": "4.0.0" }, "js-yaml": { "version": "4.1.0", @@ -23869,8 +24045,7 @@ "version": "1.3.0" }, "jsesc": { - "version": "2.5.2", - "dev": true + "version": "2.5.2" }, "json-parse-better-errors": { "version": "1.0.2", @@ -23916,7 +24091,6 @@ }, "json5": { "version": "2.2.0", - "dev": true, "requires": { "minimist": "^1.2.5" } @@ -24067,6 +24241,11 @@ "lodash.get": { "version": "4.4.2" }, + "lodash.isequal": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", + "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==" + }, "lodash.ismatch": { "version": "4.4.0", "dev": true @@ -24094,6 +24273,11 @@ "version": "4.1.1", "dev": true }, + "lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==" + }, "lodash.template": { "version": "4.5.0", "dev": true, @@ -24337,8 +24521,7 @@ } }, "minimist": { - "version": "1.2.6", - "dev": true + "version": "1.2.6" }, "minimist-options": { "version": "4.1.0", @@ -24396,8 +24579,7 @@ "dev": true }, "ms": { - "version": "2.1.2", - "dev": true + "version": "2.1.2" }, "natural-compare": { "version": "1.4.0", @@ -24439,6 +24621,8 @@ }, "node-fetch": { "version": "2.6.7", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", + "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", "requires": { "whatwg-url": "^5.0.0" } @@ -24448,8 +24632,7 @@ "dev": true }, "node-releases": { - "version": "2.0.6", - "dev": true + "version": "2.0.6" }, "normalize-package-data": { "version": "2.5.0", @@ -28154,6 +28337,11 @@ "version": "1.0.7", "dev": true }, + "path-to-regexp": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-2.4.0.tgz", + "integrity": "sha512-G6zHoVqC6GGTQkZwF4lkuEyMbVOjoBKAEybQUypI1WTkqinCOrq2x6U2+phkJ1XsEMTy4LjtwPI7HW+NVrRR2w==" + }, "pend": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", @@ -28161,8 +28349,7 @@ "dev": true }, "picocolors": { - "version": "1.0.0", - "dev": true + "version": "1.0.0" }, "picomatch": { "version": "2.3.1", @@ -28321,6 +28508,11 @@ "version": "1.5.1", "dev": true }, + "querystring": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.1.tgz", + "integrity": "sha512-wkvS7mL/JMugcup3/rMitHmd9ecIGd2lhFhK9N3UUQ450h66d1r3Y9nvXzQAW1Lq+wyx61k/1pfKS5KuKiyEbg==" + }, "queue-microtask": { "version": "1.2.3", "dev": true @@ -28501,8 +28693,7 @@ } }, "regenerator-runtime": { - "version": "0.13.9", - "dev": true + "version": "0.13.9" }, "regexp-tree": { "version": "0.1.24", @@ -28597,8 +28788,7 @@ } }, "safe-buffer": { - "version": "5.1.2", - "dev": true + "version": "5.1.2" }, "safe-regex": { "version": "2.1.1", @@ -28973,7 +29163,6 @@ }, "supports-color": { "version": "5.5.0", - "dev": true, "requires": { "has-flag": "^3.0.0" } @@ -29166,8 +29355,7 @@ "dev": true }, "to-fast-properties": { - "version": "2.0.0", - "dev": true + "version": "2.0.0" }, "to-object-path": { "version": "0.3.0", @@ -29194,7 +29382,9 @@ "dev": true }, "tr46": { - "version": "0.0.3" + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, "traverse": { "version": "0.6.6", @@ -29394,7 +29584,6 @@ }, "update-browserslist-db": { "version": "1.0.7", - "dev": true, "requires": { "escalade": "^3.1.1", "picocolors": "^1.0.0" @@ -29479,7 +29668,9 @@ } }, "webidl-conversions": { - "version": "3.0.1" + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" }, "webpack": { "version": "5.74.0", @@ -29658,6 +29849,8 @@ }, "whatwg-url": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", "requires": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" diff --git a/package.json b/package.json index e267697ad..86576e891 100644 --- a/package.json +++ b/package.json @@ -44,9 +44,11 @@ "@stoplight/spectral-rulesets": "^1.12.0", "ajv": "^8.11.0", "avsc": "^5.7.5", + "fetch-mock-jest": "^1.5.1", "js-yaml": "^4.1.0", "jsonpath-plus": "^7.2.0", "lodash": "^4.17.21", + "node-fetch": "2.6.7", "ramldt2jsonschema": "^1.2.3", "webapi-parser": "^0.5.0" }, @@ -62,6 +64,7 @@ "@types/js-yaml": "^4.0.5", "@types/json-schema": "^7.0.11", "@types/lodash": "^4.14.179", + "@types/node-fetch": "^2.6.2", "@typescript-eslint/eslint-plugin": "^5.36.2", "@typescript-eslint/parser": "^5.36.2", "conventional-changelog-conventionalcommits": "^4.2.3", @@ -124,4 +127,4 @@ ] ] } -} \ No newline at end of file +} diff --git a/src/from.ts b/src/from.ts new file mode 100644 index 000000000..d1246e6da --- /dev/null +++ b/src/from.ts @@ -0,0 +1,58 @@ +import { readFile } from 'fs/promises'; + +import type { RequestInit } from 'node-fetch'; +import type { Parser } from './parser'; +import type { ParseInput, ParseOptions, ParseOutput } from './parse'; +import type { ValidateOptions, ValidateOutput } from './lint'; + +interface FromResult { + parse: (options?: ParseOptions) => Promise; + validate: (options?: ValidateOptions) => Promise; +} + +export function fromURL(parser: Parser, source: string, options?: RequestInit): FromResult { + async function fetchUrl(): Promise { + const fetchFn = await getFetch(); + return (await fetchFn(source, options as any)).text(); + } + + return { + async parse(options: ParseOptions = {}) { + const schema = await fetchUrl(); + return parser.parse(schema, { ...options, source }); + }, + async validate(options: ValidateOptions = {}) { + const schema = await fetchUrl(); + return parser.validate(schema, { ...options, source }); + } + }; +} + +export function fromFile(parser: Parser, source: string, options?: Parameters[1]): FromResult { + async function readFileFn(): Promise { + return (await readFile(source, options)).toString(); + } + + return { + async parse(options: ParseOptions = {}) { + const schema = await readFileFn(); + return parser.parse(schema, { ...options, source }); + }, + async validate(options: ValidateOptions = {}) { + const schema = await readFileFn(); + return parser.validate(schema, { ...options, source }); + } + }; +} + +let __fetchFn: typeof fetch | undefined; +async function getFetch(): Promise { + if (__fetchFn) { + return __fetchFn; + } + + if (typeof fetch === 'undefined') { + return __fetchFn = (await import('node-fetch')).default as unknown as typeof fetch; + } + return (__fetchFn = fetch); +} diff --git a/src/index.ts b/src/index.ts index 88ee5d743..cac2d23e4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,7 +4,7 @@ export * from './models'; export { Parser }; export { stringify, unstringify } from './stringify'; -export { AsyncAPISchemaParser } from './schema-parser/asyncapi-schema-parser'; +export { fromURL, fromFile } from './from'; export { AsyncAPIDocument as OldAsyncAPIDocument } from './old-api/asyncapi'; export { migrateToOldAPI } from './old-api/migrator'; diff --git a/src/lint.ts b/src/lint.ts index 07aaef547..a79c1405c 100644 --- a/src/lint.ts +++ b/src/lint.ts @@ -14,7 +14,7 @@ export interface LintOptions extends IRunOpts { } export interface ValidateOptions extends IRunOpts { - path?: string; + source?: string; allowedSeverity?: { warning?: boolean; }; @@ -39,7 +39,7 @@ export async function validate(parser: Parser, asyncapi: ParseInput, options: Va } const stringifiedDocument = normalizeInput(asyncapi as Exclude); - const document = new Document(stringifiedDocument, Yaml, options.path); + const document = new Document(stringifiedDocument, Yaml, options.source); const { allowedSeverity } = normalizeOptions(options); // eslint-disable-next-line prefer-const diff --git a/src/parse.ts b/src/parse.ts index 00e84ce9f..4e73fb0ea 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -14,22 +14,21 @@ import type { MaybeAsyncAPI, Diagnostic } from './types'; export type ParseInput = string | MaybeAsyncAPI | AsyncAPIDocumentInterface; export interface ParseOutput { - source: ParseInput; document: AsyncAPIDocumentInterface | undefined; diagnostics: Diagnostic[]; } export interface ParseOptions { + source?: string; applyTraits?: boolean; parseSchemas?: boolean; - validateOptions?: ValidateOptions; + validateOptions?: Omit; } export async function parse(parser: Parser, asyncapi: ParseInput, options?: ParseOptions): Promise { const maybeDocument = toAsyncAPIDocument(asyncapi); if (maybeDocument) { return { - source: asyncapi, document: maybeDocument, diagnostics: [], }; @@ -39,10 +38,9 @@ export async function parse(parser: Parser, asyncapi: ParseInput, options?: Pars const document = normalizeInput(asyncapi as Exclude); options = normalizeOptions(options); - const { validated, diagnostics } = await validate(parser, document, options.validateOptions); + const { validated, diagnostics } = await validate(parser, document, { ...options.validateOptions, source: options.source }); if (validated === undefined) { return { - source: asyncapi, document: undefined, diagnostics, }; @@ -57,7 +55,6 @@ export async function parse(parser: Parser, asyncapi: ParseInput, options?: Pars await customOperations(parser, parsedDoc, detailed, options); return { - source: asyncapi, document: parsedDoc, diagnostics, }; diff --git a/src/spectral.ts b/src/spectral.ts index f486a5610..e27896857 100644 --- a/src/spectral.ts +++ b/src/spectral.ts @@ -20,6 +20,8 @@ function configureRuleset(parser: Parser): RulesetDefinition { rules: { 'asyncapi-is-asyncapi': asyncApi2IsAsyncApi(), 'asyncapi-schemas-v2': asyncApi2SchemaParserRule(parser), + // operationId is optional field + 'asyncapi-operation-operationId': 'warn', // We do not use these rules from the official ruleset due to the fact // that the given rules validate only AsyncAPI Schemas and prevent defining schemas in other formats 'asyncapi-payload-unsupported-schemaFormat': 'off', diff --git a/test/from.spec.ts b/test/from.spec.ts new file mode 100644 index 000000000..0105deb75 --- /dev/null +++ b/test/from.spec.ts @@ -0,0 +1,37 @@ +import path from 'path'; +import { Parser } from '../src/parser'; +import { fromURL, fromFile } from '../src/from'; +import { hasErrorDiagnostic, hasWarningDiagnostic } from '../src/utils'; + +describe('fromURL() & fromFile()', function() { + const parser = new Parser(); + + describe('fromURL()', function() { + it('should operate on existing HTTP source', async function() { + const { document, diagnostics } = await fromURL(parser, 'https://raw.githubusercontent.com/asyncapi/spec/master/examples/simple.yml').parse(); + expect(document).not.toBeUndefined(); + expect(diagnostics.length > 0).toEqual(true); + expect(hasWarningDiagnostic(diagnostics)).toEqual(true); + }); + + it('should throw error on nonexisting HTTP source', async function() { + const { document, diagnostics } = await fromURL(parser, 'https://raw.githubusercontent.com/asyncapi/spec/master/examples/non-existing-spec.yml').parse(); + expect(document).toBeUndefined(); + expect(diagnostics.length > 0).toEqual(true); + expect(hasErrorDiagnostic(diagnostics)).toEqual(true); + }); + }); + + describe('fromFile()', function() { + it('should operate on existing file source', async function() { + const { document, diagnostics } = await fromFile(parser, path.resolve(__dirname, './mocks/simple.yaml')).parse(); + expect(document).not.toBeUndefined(); + expect(diagnostics.length > 0).toEqual(true); + expect(hasWarningDiagnostic(diagnostics)).toEqual(true); + }); + + it('should throw error on nonexisting file source', async function() { + expect(() => fromFile(parser, path.resolve(__dirname, './mocks/non-existing-spec.yaml')).parse()).rejects.toThrow(); + }); + }); +}); diff --git a/test/mocks/simple.yaml b/test/mocks/simple.yaml new file mode 100644 index 000000000..050c78afa --- /dev/null +++ b/test/mocks/simple.yaml @@ -0,0 +1,24 @@ +asyncapi: '2.4.0' +info: + title: Account Service + version: 1.0.0 + description: This service is in charge of processing user signups +channels: + user/signedup: + subscribe: + operationId: 'subscribe' + message: + $ref: '#/components/messages/UserSignedUp' +components: + messages: + UserSignedUp: + payload: + type: object + properties: + displayName: + type: string + description: Name of the user + email: + type: string + format: email + description: Email of the user \ No newline at end of file diff --git a/test/parse.spec.ts b/test/parse.spec.ts index d26afa76a..366287336 100644 --- a/test/parse.spec.ts +++ b/test/parse.spec.ts @@ -142,7 +142,7 @@ describe('parse()', function() { } } }; - const { document } = await parse(parser, documentRaw, { validateOptions: { path: __filename } }); + const { document } = await parse(parser, documentRaw, { source: __filename }); const messagePayload = document?.channels().get('channel')?.operations().get('someId')?.messages()[0].payload(); const circular = messagePayload?.properties()?.['circular']; diff --git a/tsconfig.json b/tsconfig.json index f7bc416f1..65f9ca854 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,8 @@ "baseUrl": "./src", "target": "es6", "lib": [ - "esnext" + "esnext", + "DOM" ], "declaration": true, "allowJs": true, From 5048612c8db3b3e29bb4a062cd996e4b7b246817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Thu, 15 Sep 2022 14:42:12 +0200 Subject: [PATCH 051/126] refactor: export cjs and esm modules (#615) --- .eslintignore | 2 ++ .gitignore | 2 ++ package.json | 12 +++++++++--- tsconfig.cjs.json | 7 +++++++ tsconfig.json | 4 ++-- 5 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 tsconfig.cjs.json diff --git a/.eslintignore b/.eslintignore index ec1bad9ab..329c07896 100644 --- a/.eslintignore +++ b/.eslintignore @@ -4,4 +4,6 @@ node_modules /docs /coverage /lib +/esm +/cjs /browser \ No newline at end of file diff --git a/.gitignore b/.gitignore index ec1bad9ab..329c07896 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,6 @@ node_modules /docs /coverage /lib +/esm +/cjs /browser \ No newline at end of file diff --git a/package.json b/package.json index 86576e891..eefd13ff7 100644 --- a/package.json +++ b/package.json @@ -15,14 +15,20 @@ "license": "Apache-2.0", "homepage": "https://github.com/asyncapi/parser-js", "sideEffects": false, + "main": "cjs/index.js", + "module": "esm/index.js", + "types": "esm/index.d.ts", "files": [ - "./lib", - "./browser", + "/esm", + "/cjs", + "/browser", "LICENSE", "README.md" ], "scripts": { - "build": "tsc", + "build": "npm run build:esm && npm run build:cjs && npm run build:browser", + "build:esm": "tsc", + "build:cjs": "tsc --project ./tsconfig.cjs.json", "build:browser": "webpack", "test": "npm run test:unit && npm run test:browser", "test:unit": "cross-env CI=true jest --coverage --testPathIgnorePatterns=test/browser/*", diff --git a/tsconfig.cjs.json b/tsconfig.cjs.json new file mode 100644 index 000000000..a21e300b0 --- /dev/null +++ b/tsconfig.cjs.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "module": "commonjs", + "outDir": "./cjs" + } +} diff --git a/tsconfig.json b/tsconfig.json index 65f9ca854..cf73ca08b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,9 @@ { "compilerOptions": { - "outDir": "./lib", + "outDir": "./esm", "baseUrl": "./src", "target": "es6", + "module": "esnext", "lib": [ "esnext", "DOM" @@ -15,7 +16,6 @@ "strict": true, "forceConsistentCasingInFileNames": true, "noFallthroughCasesInSwitch": true, - "module": "esnext", "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true, From 1b11a9e92d975cfa020ed1f7689f1ad2738f43b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Thu, 15 Sep 2022 14:43:00 +0200 Subject: [PATCH 052/126] refactor: improve internal code (#614) --- README.md | 4 +- src/document.ts | 16 +++- src/from.ts | 11 ++- src/index.ts | 6 +- src/lint.ts | 73 -------------- src/models/asyncapi.ts | 14 --- src/parse.ts | 88 ++++++----------- src/parser.ts | 51 +++++----- src/schema-parser/asyncapi-schema-parser.ts | 10 +- src/schema-parser/avro-schema-parser.ts | 2 +- src/schema-parser/index.ts | 14 ++- src/schema-parser/openapi-schema-parser.ts | 12 +-- src/schema-parser/raml-schema-parser.ts | 4 +- src/schema-parser/spectral-rule-v2.ts | 37 ++------ src/spectral.ts | 10 +- src/stringify.ts | 6 +- src/types.ts | 2 + src/utils.ts | 14 ++- src/validate.ts | 49 ++++++++++ test/custom-operations/parse-schema.spec.ts | 8 +- test/document.spec.ts | 31 ++++-- test/iterator.spec.ts | 6 +- test/lint.spec.ts | 94 ------------------- test/models/asyncapi.spec.ts | 19 ---- test/parse.spec.ts | 11 +-- test/parser.spec.ts | 13 +-- .../asyncapi-schema-parser.spec.ts | 8 +- .../avro/avro-schema-parser.spec.ts | 8 +- .../openapi/openapi-schema-parser.spec.ts | 12 +-- .../raml/raml-schema-parser.spec.ts | 2 +- test/schema-parser/spectral-rule-v2.spec.ts | 73 ++++++-------- test/{spectral.test.ts => spectral.spec.ts} | 48 ++++------ test/stringify.spec.ts | 5 +- test/utils.spec.ts | 84 ++++++++++++++++- test/utils.ts | 10 ++ test/validate.spec.ts | 56 +++++++++++ 36 files changed, 436 insertions(+), 475 deletions(-) delete mode 100644 src/lint.ts create mode 100644 src/validate.ts delete mode 100644 test/lint.spec.ts delete mode 100644 test/models/asyncapi.spec.ts rename test/{spectral.test.ts => spectral.spec.ts} (51%) create mode 100644 test/utils.ts create mode 100644 test/validate.spec.ts diff --git a/README.md b/README.md index 7efcef6d2..cea839591 100644 --- a/README.md +++ b/README.md @@ -150,7 +150,7 @@ import { Parser, fromURL } from '@asyncapi/parser'; const parser = new Parser(); -const { document, diagnostics } = await (await fromURL(parser, 'https://example.com/')).parse(); +const { document, diagnostics } = await fromURL(parser, 'https://example.com/').parse(); ``` ### Example with performing actions on file source @@ -160,7 +160,7 @@ import { Parser, fromFile } from '@asyncapi/parser'; const parser = new Parser(); -const { document, diagnostics } = await (await fromFile(parser, './asyncapi.yaml')).parse(); +const { document, diagnostics } = await fromFile(parser, './asyncapi.yaml').parse(); ``` ### [Example with stringify and unstringify parsed document](#stringify) diff --git a/src/document.ts b/src/document.ts index d37112fb8..1ae04f9b3 100644 --- a/src/document.ts +++ b/src/document.ts @@ -1,4 +1,4 @@ -import { newAsyncAPIDocument, AsyncAPIDocumentV2, AsyncAPIDocumentV3 } from './models'; +import { AsyncAPIDocumentV2, AsyncAPIDocumentV3 } from './models'; import { unstringify } from './stringify'; import { createDetailedAsyncAPI } from './utils'; @@ -8,6 +8,18 @@ import { } from './constants'; import type { AsyncAPIDocumentInterface } from './models'; +import type { DetailedAsyncAPI } from './types'; + +export function createAsyncAPIDocument(asyncapi: DetailedAsyncAPI): AsyncAPIDocumentInterface { + switch (asyncapi.semver.major) { + case 2: + return new AsyncAPIDocumentV2(asyncapi.parsed, { asyncapi, pointer: '/' }); + // case 3: + // return new AsyncAPIDocumentV3(asyncapi.parsed, { asyncapi, pointer: '/' }); + default: + throw new Error(`Unsupported AsyncAPI version: ${asyncapi.semver.version}`); + } +} export function toAsyncAPIDocument(maybeDoc: unknown): AsyncAPIDocumentInterface | undefined { if (isAsyncAPIDocument(maybeDoc)) { @@ -16,7 +28,7 @@ export function toAsyncAPIDocument(maybeDoc: unknown): AsyncAPIDocumentInterface if (!isParsedDocument(maybeDoc)) { return; } - return unstringify(maybeDoc) || newAsyncAPIDocument(createDetailedAsyncAPI(maybeDoc, maybeDoc as any)); + return unstringify(maybeDoc) || createAsyncAPIDocument(createDetailedAsyncAPI(maybeDoc, maybeDoc as any)); } export function isAsyncAPIDocument(maybeDoc: unknown): maybeDoc is AsyncAPIDocumentInterface { diff --git a/src/from.ts b/src/from.ts index d1246e6da..5bd32c4de 100644 --- a/src/from.ts +++ b/src/from.ts @@ -2,16 +2,17 @@ import { readFile } from 'fs/promises'; import type { RequestInit } from 'node-fetch'; import type { Parser } from './parser'; -import type { ParseInput, ParseOptions, ParseOutput } from './parse'; -import type { ValidateOptions, ValidateOutput } from './lint'; +import type { ParseOptions, ParseOutput } from './parse'; +import type { ValidateOptions } from './validate'; +import type { Input, Diagnostic } from './types'; interface FromResult { parse: (options?: ParseOptions) => Promise; - validate: (options?: ValidateOptions) => Promise; + validate: (options?: ValidateOptions) => Promise; } export function fromURL(parser: Parser, source: string, options?: RequestInit): FromResult { - async function fetchUrl(): Promise { + async function fetchUrl(): Promise { const fetchFn = await getFetch(); return (await fetchFn(source, options as any)).text(); } @@ -29,7 +30,7 @@ export function fromURL(parser: Parser, source: string, options?: RequestInit): } export function fromFile(parser: Parser, source: string, options?: Parameters[1]): FromResult { - async function readFileFn(): Promise { + async function readFileFn(): Promise { return (await readFile(source, options)).toString(); } diff --git a/src/index.ts b/src/index.ts index cac2d23e4..f745b67da 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,9 +9,9 @@ export { fromURL, fromFile } from './from'; export { AsyncAPIDocument as OldAsyncAPIDocument } from './old-api/asyncapi'; export { migrateToOldAPI } from './old-api/migrator'; -export type { AsyncAPISemver, Diagnostic, SchemaValidateResult } from './types'; -export type { LintOptions, ValidateOptions, ValidateOutput } from './lint'; -export type { ParseInput, ParseOptions, ParseOutput } from './parse'; +export type { AsyncAPISemver, Input, Diagnostic, SchemaValidateResult } from './types'; +export type { ValidateOptions, ValidateOutput } from './validate'; +export type { ParseOptions, ParseOutput } from './parse'; export type { StringifyOptions } from './stringify'; export type { ValidateSchemaInput, ParseSchemaInput, SchemaParser } from './schema-parser'; diff --git a/src/lint.ts b/src/lint.ts deleted file mode 100644 index a79c1405c..000000000 --- a/src/lint.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { Document } from '@stoplight/spectral-core'; -import { Yaml } from '@stoplight/spectral-parsers'; -import { toAsyncAPIDocument } from './document'; -import { normalizeInput, hasWarningDiagnostic, hasErrorDiagnostic } from './utils'; - -import type { IRunOpts } from '@stoplight/spectral-core'; -import type { Parser } from './parser'; -import type { AsyncAPIDocumentInterface } from './models/asyncapi'; -import type { ParseInput } from './parse'; -import type { Diagnostic } from './types'; - -export interface LintOptions extends IRunOpts { - path?: string; -} - -export interface ValidateOptions extends IRunOpts { - source?: string; - allowedSeverity?: { - warning?: boolean; - }; -} - -export interface ValidateOutput { - validated: unknown; - diagnostics: Diagnostic[]; -} - -export async function lint(parser: Parser, asyncapi: ParseInput, options?: LintOptions): Promise { - const result = await validate(parser, asyncapi, options); - return result.diagnostics; -} - -export async function validate(parser: Parser, asyncapi: ParseInput, options: ValidateOptions = {}): Promise { - if (toAsyncAPIDocument(asyncapi)) { - return { - validated: asyncapi, - diagnostics: [], - }; - } - - const stringifiedDocument = normalizeInput(asyncapi as Exclude); - const document = new Document(stringifiedDocument, Yaml, options.source); - - const { allowedSeverity } = normalizeOptions(options); - // eslint-disable-next-line prefer-const - let { resolved, results } = await parser.spectral.runWithResolved(document); - - if ( - hasErrorDiagnostic(results) || - (!allowedSeverity?.warning && hasWarningDiagnostic(results)) - ) { - resolved = undefined; - } - - return { validated: resolved, diagnostics: results }; -} - -const defaultOptions: ValidateOptions = { - allowedSeverity: { - warning: true, - } -}; -function normalizeOptions(options?: ValidateOptions): ValidateOptions { - if (!options || typeof options !== 'object') { - return defaultOptions; - } - // shall copy - options = { ...defaultOptions, ...options }; - // severity - options.allowedSeverity = { ...defaultOptions.allowedSeverity, ...(options.allowedSeverity || {}) }; - - return options; -} diff --git a/src/models/asyncapi.ts b/src/models/asyncapi.ts index b79d36e81..4787ad961 100644 --- a/src/models/asyncapi.ts +++ b/src/models/asyncapi.ts @@ -1,5 +1,3 @@ -import { AsyncAPIDocumentV2 } from './v2'; - import type { BaseModel } from './base'; import type { InfoInterface } from './info'; import type { ChannelsInterface } from './channels'; @@ -10,7 +8,6 @@ import type { OperationsInterface } from './operations'; import type { SchemasInterface } from './schemas'; import type { SecuritySchemesInterface } from './security-schemes'; import type { ServersInterface } from './servers'; -import type { DetailedAsyncAPI } from '../types'; import type { v2 } from '../spec-types'; @@ -27,14 +24,3 @@ export interface AsyncAPIDocumentInterface extends BaseModel, securitySchemes(): SecuritySchemesInterface; components(): ComponentsInterface; } - -export function newAsyncAPIDocument(asyncapi: DetailedAsyncAPI): AsyncAPIDocumentInterface { - switch (asyncapi.semver.major) { - case 2: - return new AsyncAPIDocumentV2(asyncapi.parsed, { asyncapi, pointer: '/' }); - // case 3: - // return new AsyncAPIDocumentV3(asyncapi.parsed, { asyncapi, pointer: '/' }); - default: - throw new Error(`Unsupported AsyncAPI version: ${asyncapi.semver.version}`); - } -} diff --git a/src/parse.ts b/src/parse.ts index 4e73fb0ea..255ec7555 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -1,18 +1,18 @@ -import { AsyncAPIDocumentInterface, newAsyncAPIDocument } from './models'; +import { AsyncAPIDocumentInterface } from './models'; import { customOperations } from './custom-operations'; -import { validate } from './lint'; +import { validate } from './validate'; import { copy } from './stringify'; -import { toAsyncAPIDocument } from './document'; -import { createDetailedAsyncAPI, normalizeInput } from './utils'; +import { createAsyncAPIDocument } from './document'; +import { createDetailedAsyncAPI, mergePatch, setExtension } from './utils'; import { xParserSpecParsed } from './constants'; +import type { Spectral } from '@stoplight/spectral-core'; import type { Parser } from './parser'; -import type { ValidateOptions } from './lint'; -import type { MaybeAsyncAPI, Diagnostic } from './types'; +import type { ValidateOptions } from './validate'; +import type { Input, Diagnostic } from './types'; -export type ParseInput = string | MaybeAsyncAPI | AsyncAPIDocumentInterface; export interface ParseOutput { document: AsyncAPIDocumentInterface | undefined; diagnostics: Diagnostic[]; @@ -25,64 +25,32 @@ export interface ParseOptions { validateOptions?: Omit; } -export async function parse(parser: Parser, asyncapi: ParseInput, options?: ParseOptions): Promise { - const maybeDocument = toAsyncAPIDocument(asyncapi); - if (maybeDocument) { - return { - document: maybeDocument, - diagnostics: [], - }; - } - - try { - const document = normalizeInput(asyncapi as Exclude); - options = normalizeOptions(options); - - const { validated, diagnostics } = await validate(parser, document, { ...options.validateOptions, source: options.source }); - if (validated === undefined) { - return { - document: undefined, - diagnostics, - }; - } - - // unfreeze the object - Spectral makes resolved document "freezed" - const validatedDoc = copy(validated as Record); - validatedDoc[String(xParserSpecParsed)] = true; - - const detailed = createDetailedAsyncAPI(asyncapi as string | Record, validatedDoc); - const parsedDoc = newAsyncAPIDocument(detailed); - await customOperations(parser, parsedDoc, detailed, options); - - return { - document: parsedDoc, - diagnostics, - }; - } catch (err: any) { - // TODO: throw proper error - throw new Error(err.message); - } -} - const defaultOptions: ParseOptions = { applyTraits: true, parseSchemas: true, + validateOptions: {}, }; -function normalizeOptions(options?: ParseOptions): ParseOptions { - if (!options || typeof options !== 'object') { - return defaultOptions; - } - // shall copy - options = { ...defaultOptions, ...options }; - // applyTraits - if (options.applyTraits === undefined) { - options.applyTraits = true; - } - // parseSchemas - if (options.parseSchemas === undefined) { - options.parseSchemas = true; +export async function parse(parser: Parser, spectral: Spectral, asyncapi: Input, options: ParseOptions = {}): Promise { + options = mergePatch(defaultOptions, options); + const { validated, diagnostics } = await validate(spectral, asyncapi, { ...options.validateOptions, source: options.source }); + if (validated === undefined) { + return { + document: undefined, + diagnostics, + }; } - return options; + // unfreeze the object - Spectral makes resolved document "freezed" + const validatedDoc = copy(validated as Record); + + const detailed = createDetailedAsyncAPI(asyncapi as string | Record, validatedDoc); + const document = createAsyncAPIDocument(detailed); + setExtension(xParserSpecParsed, true, document); + await customOperations(parser, document, detailed, options); + + return { + document, + diagnostics, + }; } diff --git a/src/parser.ts b/src/parser.ts index 5d7ad13af..2e48a44dc 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -1,48 +1,47 @@ import { Spectral } from '@stoplight/spectral-core'; +import { toAsyncAPIDocument } from './document'; import { parse } from './parse'; -import { lint, validate } from './lint'; +import { validate } from './validate'; import { registerSchemaParser } from './schema-parser'; import { AsyncAPISchemaParser } from './schema-parser/asyncapi-schema-parser'; -import { configureSpectral } from './spectral'; +import { createSpectral } from './spectral'; -import type { IConstructorOpts } from '@stoplight/spectral-core'; -import type { ParseInput, ParseOptions } from './parse'; -import type { LintOptions, ValidateOptions } from './lint'; +import type { ParseOptions, ParseOutput } from './parse'; +import type { ValidateOptions } from './validate'; import type { SchemaParser } from './schema-parser'; +import type { Diagnostic, Input } from './types'; -export interface ParserOptions { - spectral?: Spectral | IConstructorOpts; -} +export interface ParserOptions {} export class Parser { public readonly parserRegistry = new Map(); - public readonly spectral: Spectral; + protected readonly spectral: Spectral; constructor( - private readonly options?: ParserOptions + private readonly _: ParserOptions = {} ) { - const { spectral } = this.options || {}; - if (spectral instanceof Spectral) { - this.spectral = spectral; - } else { - this.spectral = new Spectral(spectral); - } - + this.spectral = createSpectral(this); this.registerSchemaParser(AsyncAPISchemaParser()); - configureSpectral(this); } - parse(asyncapi: ParseInput, options?: ParseOptions) { - return parse(this, asyncapi, options); - } - - lint(asyncapi: ParseInput, options?: LintOptions) { - return lint(this, asyncapi, options); + async parse(asyncapi: Input, options?: ParseOptions): Promise { + const maybeDocument = toAsyncAPIDocument(asyncapi); + if (maybeDocument) { + return { + document: maybeDocument, + diagnostics: [], + }; + } + return parse(this, this.spectral, asyncapi, options); } - validate(asyncapi: ParseInput, options?: ValidateOptions) { - return validate(this, asyncapi, options); + async validate(asyncapi: Input, options?: ValidateOptions): Promise { + const maybeDocument = toAsyncAPIDocument(asyncapi); + if (maybeDocument) { + return []; + } + return (await validate(this.spectral, asyncapi, options)).diagnostics; } registerSchemaParser(parser: SchemaParser) { diff --git a/src/schema-parser/asyncapi-schema-parser.ts b/src/schema-parser/asyncapi-schema-parser.ts index 07ffb61d4..ca46d26f6 100644 --- a/src/schema-parser/asyncapi-schema-parser.ts +++ b/src/schema-parser/asyncapi-schema-parser.ts @@ -30,7 +30,7 @@ async function validate(input: ValidateSchemaInput): Promise, errors: ErrorObject[]): SchemaValidateResult[] { return errors.map(error => { return { message: error.message, - path: error.instancePath.replace(/^\//, '').split('/'), - } as SchemaValidateResult; - }); + path: [...path, ...error.instancePath.replace(/^\//, '').split('/')], + }; + }) as SchemaValidateResult[]; } function getSchemaValidator(version: string): ValidateFunction { diff --git a/src/schema-parser/avro-schema-parser.ts b/src/schema-parser/avro-schema-parser.ts index ca1c42488..530fffb2f 100644 --- a/src/schema-parser/avro-schema-parser.ts +++ b/src/schema-parser/avro-schema-parser.ts @@ -26,7 +26,7 @@ async function validate(input: ValidateSchemaInput): Promise { export async function validateSchema(parser: Parser, input: ValidateSchemaInput) { const schemaParser = parser.parserRegistry.get(input.schemaFormat); if (schemaParser === undefined) { - throw new Error('Unknown schema format'); + const { path, schemaFormat } = input; + path.pop(); // remove 'payload' as last element of path + + return [ + { + message: `Unknown schema format: "${schemaFormat}"`, + path: [...path, 'schemaFormat'], + }, + { + message: `Cannot validate and parse given schema due to unknown schema format: "${schemaFormat}"`, + path: [...path, 'payload'], + } + ] as SchemaValidateResult[]; } return schemaParser.validate(input); } diff --git a/src/schema-parser/openapi-schema-parser.ts b/src/schema-parser/openapi-schema-parser.ts index b3f87a574..42ea8d3d9 100644 --- a/src/schema-parser/openapi-schema-parser.ts +++ b/src/schema-parser/openapi-schema-parser.ts @@ -29,7 +29,7 @@ async function validate(input: ValidateSchemaInput): Promise, errors: ErrorObject[]): SchemaValidateResult[] { return errors.map(error => { - const errorPath = error.instancePath.replace(/^\//, '').split('/'); - return { message: error.message, - path: errorPath, - } as SchemaValidateResult; - }); + path: [...path, ...error.instancePath.replace(/^\//, '').split('/')], + }; + }) as SchemaValidateResult[]; } function iterateSchema(schema: any) { diff --git a/src/schema-parser/raml-schema-parser.ts b/src/schema-parser/raml-schema-parser.ts index 62b5b835b..55127021b 100644 --- a/src/schema-parser/raml-schema-parser.ts +++ b/src/schema-parser/raml-schema-parser.ts @@ -44,8 +44,8 @@ async function validate(input: ValidateSchemaInput): Promise { validateResult.push({ message: result.message, - path: [], // RAML parser doesn't provide a path to the error. - } as SchemaValidateResult); + path: input.path, // RAML parser doesn't provide a path to the error. + }); }); return validateResult; diff --git a/src/schema-parser/spectral-rule-v2.ts b/src/schema-parser/spectral-rule-v2.ts index f7bb49d30..da592a282 100644 --- a/src/schema-parser/spectral-rule-v2.ts +++ b/src/schema-parser/spectral-rule-v2.ts @@ -42,7 +42,7 @@ function rulesetFunction(parser: Parser) { schemaFormat: { type: 'string', }, - payload: true, // any + payload: true, // any value } }, options: null @@ -56,8 +56,7 @@ function rulesetFunction(parser: Parser) { const spec = ctx.document.data as v2.AsyncAPIObject; const schemaFormat = getSchemaFormat(targetVal.schemaFormat, spec.asyncapi); const defaultSchemaFormat = getDefaultSchemaFormat(spec.asyncapi); - // we don't have a parsed specification yet because we are still executing code in the context of spectral - const asyncapi = createDetailedAsyncAPI(ctx.document.source as string, spec); + const asyncapi = createDetailedAsyncAPI(ctx.document.data as Record, spec); const input: ValidateSchemaInput = { asyncapi, @@ -68,34 +67,16 @@ function rulesetFunction(parser: Parser) { defaultSchemaFormat, }; - let result: SchemaValidateResult[] | void; try { - result = await validateSchema(parser, input); + return await validateSchema(parser, input); } catch (err: any) { - if (err instanceof Error) { - if (err.message === 'Unknown schema format') { - path.pop(); // remove 'payload' as last element of path - path.push('schemaFormat'); - return [ - { - message: `Unknown schema format: "${schemaFormat}"`, - path, - } - ] as SchemaValidateResult[]; - } - return [ - { - message: `Error thrown during schema validation, name: ${err.name}, message: ${err.message}, stack: ${err.stack}`, - path, - } - ] as SchemaValidateResult[]; - } + return [ + { + message: `Error thrown during schema validation, name: ${err.name}, message: ${err.message}, stack: ${err.stack}`, + path, + } + ] as SchemaValidateResult[]; } - - return result && result.map(r => ({ - ...r, - path: r.path ? [...path, ...r.path] : path, - })); } ); } diff --git a/src/spectral.ts b/src/spectral.ts index e27896857..7155ff2ac 100644 --- a/src/spectral.ts +++ b/src/spectral.ts @@ -1,4 +1,4 @@ -import { createRulesetFunction } from '@stoplight/spectral-core'; +import { Spectral, createRulesetFunction } from '@stoplight/spectral-core'; import aasRuleset from '@stoplight/spectral-rulesets/dist/asyncapi'; import { asyncApi2SchemaParserRule } from './schema-parser/spectral-rule-v2'; @@ -9,9 +9,11 @@ import type { RuleDefinition, RulesetDefinition } from '@stoplight/spectral-core import type { Parser } from './parser'; import type { MaybeAsyncAPI } from './types'; -export function configureSpectral(parser: Parser) { +export function createSpectral(parser: Parser): Spectral { const ruleset = configureRuleset(parser); - parser.spectral.setRuleset(ruleset); + const spectral = new Spectral(); + spectral.setRuleset(ruleset); + return spectral; } function configureRuleset(parser: Parser): RulesetDefinition { @@ -20,7 +22,7 @@ function configureRuleset(parser: Parser): RulesetDefinition { rules: { 'asyncapi-is-asyncapi': asyncApi2IsAsyncApi(), 'asyncapi-schemas-v2': asyncApi2SchemaParserRule(parser), - // operationId is optional field + // operationId is an optional field 'asyncapi-operation-operationId': 'warn', // We do not use these rules from the official ruleset due to the fact // that the given rules validate only AsyncAPI Schemas and prevent defining schemas in other formats diff --git a/src/stringify.ts b/src/stringify.ts index 5f2b3e5f3..95d3c253b 100644 --- a/src/stringify.ts +++ b/src/stringify.ts @@ -1,6 +1,6 @@ -import { AsyncAPIDocumentInterface, newAsyncAPIDocument } from './models'; +import { AsyncAPIDocumentInterface } from './models'; -import { isAsyncAPIDocument, isParsedDocument, isStringifiedDocument } from './document'; +import { createAsyncAPIDocument, isAsyncAPIDocument, isParsedDocument, isStringifiedDocument } from './document'; import { createDetailedAsyncAPI } from './utils'; import { xParserSpecStringified } from './constants'; @@ -47,7 +47,7 @@ export function unstringify(document: unknown): AsyncAPIDocumentInterface | unde delete (>parsed)[String(xParserSpecStringified)]; traverseStringifiedData(document, undefined, document, new Map(), new Map()); - return newAsyncAPIDocument(createDetailedAsyncAPI(document as string, parsed as DetailedAsyncAPI['parsed'])); + return createAsyncAPIDocument(createDetailedAsyncAPI(document as string, parsed as DetailedAsyncAPI['parsed'])); } export function copy(data: Record) { diff --git a/src/types.ts b/src/types.ts index a12e45e3c..1e2cdacfe 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,4 +1,5 @@ import type { ISpectralDiagnostic, IFunctionResult } from '@stoplight/spectral-core'; +import type { AsyncAPIDocumentInterface } from './models'; import type { v2 } from './spec-types'; export type MaybeAsyncAPI = { asyncapi: string } & Record; @@ -16,6 +17,7 @@ export interface DetailedAsyncAPI { semver: AsyncAPISemver; } +export type Input = string | MaybeAsyncAPI | AsyncAPIDocumentInterface; export type Diagnostic = ISpectralDiagnostic; export type SchemaValidateResult = IFunctionResult; export type AsyncAPIObject = v2.AsyncAPIObject; diff --git a/src/utils.ts b/src/utils.ts index a7e7bd7dc..1b218dbb8 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -43,16 +43,24 @@ export function hasWarningDiagnostic(diagnostics: ISpectralDiagnostic[]): boolea return diagnostics.some(diagnostic => diagnostic.severity === DiagnosticSeverity.Warning); } +export function hasInfoDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean { + return diagnostics.some(diagnostic => diagnostic.severity === DiagnosticSeverity.Information); +} + +export function hasHintDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean { + return diagnostics.some(diagnostic => diagnostic.severity === DiagnosticSeverity.Hint); +} + export function setExtension(id: string, value: any, model: BaseModel): void { id = id.startsWith('x-') ? id : `x-${id}`; const data = model.json(); data[id] = value; } -export function mergePatch(origin: unknown, patch: unknown) { +export function mergePatch(origin: unknown, patch: unknown): T { // If the patch is not an object, it replaces the origin. if (!isObject(patch)) { - return patch; + return patch as T; } const result = !isObject(origin) @@ -67,7 +75,7 @@ export function mergePatch(origin: unknown, patch: unknown) { result[key] = mergePatch(result[key], patchVal); } }); - return result; + return result as T; } export function isObject(value: unknown): value is Record { diff --git a/src/validate.ts b/src/validate.ts new file mode 100644 index 000000000..66e308629 --- /dev/null +++ b/src/validate.ts @@ -0,0 +1,49 @@ +import { Document } from '@stoplight/spectral-core'; +import { Yaml } from '@stoplight/spectral-parsers'; +import { normalizeInput, mergePatch, hasErrorDiagnostic, hasWarningDiagnostic, hasInfoDiagnostic, hasHintDiagnostic } from './utils'; + +import type { Spectral, IRunOpts } from '@stoplight/spectral-core'; +import type { AsyncAPIDocumentInterface } from './models'; +import type { Input, Diagnostic } from './types'; + +export interface ValidateOptions extends IRunOpts { + source?: string; + allowedSeverity?: { + warning?: boolean; + info?: boolean; + hint?: boolean; + }; +} + +export interface ValidateOutput { + validated: unknown; + diagnostics: Diagnostic[]; +} + +const defaultOptions: ValidateOptions = { + allowedSeverity: { + warning: true, + info: true, + hint: true, + } +}; + +export async function validate(spectral: Spectral, asyncapi: Input, options: ValidateOptions = {}): Promise { + const { allowedSeverity } = mergePatch(defaultOptions, options); + const stringifiedDocument = normalizeInput(asyncapi as Exclude); + const document = new Document(stringifiedDocument, Yaml, options.source); + + // eslint-disable-next-line prefer-const + let { resolved: validated, results } = await spectral.runWithResolved(document); + + if ( + hasErrorDiagnostic(results) || + (!allowedSeverity?.warning && hasWarningDiagnostic(results)) || + (!allowedSeverity?.info && hasInfoDiagnostic(results)) || + (!allowedSeverity?.hint && hasHintDiagnostic(results)) + ) { + validated = undefined; + } + + return { validated, diagnostics: results }; +} diff --git a/test/custom-operations/parse-schema.spec.ts b/test/custom-operations/parse-schema.spec.ts index baac015a8..5461e338c 100644 --- a/test/custom-operations/parse-schema.spec.ts +++ b/test/custom-operations/parse-schema.spec.ts @@ -1,7 +1,5 @@ import { AsyncAPIDocumentV2 } from '../../src/models'; import { Parser } from '../../src/parser'; -import { parse } from '../../src/parse'; -import { xParserOriginalPayload } from '../../src/constants'; import type { v2 } from '../../src/spec-types'; @@ -29,7 +27,7 @@ describe('custom operations - parse schemas', function() { } } }; - const { document, diagnostics } = await parse(parser, documentRaw); + const { document, diagnostics } = await parser.parse(documentRaw); expect(document).toBeInstanceOf(AsyncAPIDocumentV2); expect(diagnostics.length > 0).toEqual(true); @@ -57,7 +55,7 @@ describe('custom operations - parse schemas', function() { } } }; - const { document, diagnostics } = await parse(parser, documentRaw); + const { document, diagnostics } = await parser.parse(documentRaw); expect(document).toBeInstanceOf(AsyncAPIDocumentV2); expect(diagnostics.length > 0).toEqual(true); @@ -86,7 +84,7 @@ describe('custom operations - parse schemas', function() { } } }; - const { document, diagnostics } = await parse(parser, documentRaw); + const { document, diagnostics } = await parser.parse(documentRaw); expect(document).toBeUndefined(); expect(diagnostics.length > 0).toEqual(true); diff --git a/test/document.spec.ts b/test/document.spec.ts index d5ceb8c98..a009db5e4 100644 --- a/test/document.spec.ts +++ b/test/document.spec.ts @@ -1,6 +1,7 @@ import { xParserSpecParsed, xParserSpecStringified } from '../src/constants'; -import { newAsyncAPIDocument, BaseModel, AsyncAPIDocumentV2 } from '../src/models'; +import { BaseModel, AsyncAPIDocumentV2 } from '../src/models'; import { + createAsyncAPIDocument, toAsyncAPIDocument, isAsyncAPIDocument, isParsedDocument, @@ -11,6 +12,22 @@ import { createDetailedAsyncAPI } from '../src/utils'; describe('utils', function() { class Model extends BaseModel {} + describe('createAsyncAPIDocument()', function() { + it('should create a valid document from v2.0.0', function() { + const doc = { asyncapi: '2.0.0' }; + const detailed = createDetailedAsyncAPI(doc, doc as any); + const d = createAsyncAPIDocument(detailed); + expect(d.version()).toEqual(doc.asyncapi); + expect(d).toBeInstanceOf(AsyncAPIDocumentV2); + }); + + it('should fail trying to create a document from a non supported spec version', function() { + const doc = { asyncapi: '99.99.99' }; + const detailed = createDetailedAsyncAPI(doc, doc as any); + expect(() => createAsyncAPIDocument(detailed)).toThrow('Unsupported AsyncAPI version: 99.99.99'); + }); + }); + describe('toAsyncAPIDocument()', function() { it('normal object should not return AsyncAPIDocument instance', function() { expect(toAsyncAPIDocument({})).toEqual(undefined); @@ -31,7 +48,7 @@ describe('utils', function() { it('AsyncAPIDocument instance should return AsyncAPIDocument instance', function() { const doc = { asyncapi: '2.0.0' }; const detailed = createDetailedAsyncAPI(doc, doc as any); - expect(toAsyncAPIDocument(newAsyncAPIDocument(detailed))).toBeInstanceOf(AsyncAPIDocumentV2); + expect(toAsyncAPIDocument(createAsyncAPIDocument(detailed))).toBeInstanceOf(AsyncAPIDocumentV2); }); it('parsed document should return AsyncAPIDocument instance', function() { @@ -67,7 +84,7 @@ describe('utils', function() { it('AsyncAPIDocument instance should be AsyncAPI document', function() { const doc = { asyncapi: '2.0.0' }; const detailed = createDetailedAsyncAPI(doc, doc as any); - expect(isAsyncAPIDocument(newAsyncAPIDocument(detailed))).toEqual(true); + expect(isAsyncAPIDocument(createAsyncAPIDocument(detailed))).toEqual(true); }); }); @@ -91,13 +108,13 @@ describe('utils', function() { it('AsyncAPIDocument instance should not be parsed document', function() { const doc = { asyncapi: '2.0.0' }; const detailed = createDetailedAsyncAPI(doc, doc as any); - expect(isParsedDocument(newAsyncAPIDocument(detailed))).toEqual(false); + expect(isParsedDocument(createAsyncAPIDocument(detailed))).toEqual(false); }); it('AsyncAPIDocument instance with proper extension should not be parsed document', function() { const doc = { asyncapi: '2.0.0', [xParserSpecParsed]: true }; const detailed = createDetailedAsyncAPI(doc, doc as any); - expect(isParsedDocument(newAsyncAPIDocument(detailed))).toEqual(false); + expect(isParsedDocument(createAsyncAPIDocument(detailed))).toEqual(false); }); it('object with proper extension should be parsed document', function() { @@ -125,13 +142,13 @@ describe('utils', function() { it('AsyncAPIDocument instance should not be parsed document', function() { const doc = { asyncapi: '2.0.0' }; const detailed = createDetailedAsyncAPI(doc, doc as any); - expect(isStringifiedDocument(newAsyncAPIDocument(detailed))).toEqual(false); + expect(isStringifiedDocument(createAsyncAPIDocument(detailed))).toEqual(false); }); it('AsyncAPIDocument instance with proper extension should not be parsed document', function() { const doc = { asyncapi: '2.0.0', [xParserSpecParsed]: true, [xParserSpecStringified]: true }; const detailed = createDetailedAsyncAPI(doc, doc as any); - expect(isStringifiedDocument(newAsyncAPIDocument(detailed))).toEqual(false); + expect(isStringifiedDocument(createAsyncAPIDocument(detailed))).toEqual(false); }); it('object with only stringified extension should not be parsed document', function() { diff --git a/test/iterator.spec.ts b/test/iterator.spec.ts index a90b33907..410e85d84 100644 --- a/test/iterator.spec.ts +++ b/test/iterator.spec.ts @@ -1,6 +1,5 @@ import { SchemaIteratorCallbackType, SchemaTypesToIterate, traverseAsyncApiDocument } from '../src/iterator'; import { Parser } from '../src/parser'; -import { parse } from '../src/parse'; import { AsyncAPIDocumentInterface, AsyncAPIDocumentV2, SchemaV2 } from '../src/models'; import { SchemaInterface } from '../src/models/schema'; @@ -55,9 +54,10 @@ type ExpectedCallback = { describe('Traverse AsyncAPI document', function() { const parser = new Parser(); + describe('traverseAsyncApiDocument()', function() { it('should traverse all possible schemas from a valid document', async function() { - const { document } = await parse(parser, documentRaw); + const { document } = await parser.parse(documentRaw); expect(document).toBeInstanceOf(AsyncAPIDocumentV2); const payload = document?.messages().all()[0].payload() as SchemaV2; @@ -83,7 +83,7 @@ describe('Traverse AsyncAPI document', function() { }); it('should traverse few schemas from a valid document', async function() { - const { document } = await parse(parser, documentRaw); + const { document } = await parser.parse(documentRaw); expect(document).toBeInstanceOf(AsyncAPIDocumentV2); const componentsSchema = document?.components().schemas().all()[0] as SchemaV2; diff --git a/test/lint.spec.ts b/test/lint.spec.ts deleted file mode 100644 index 0bcd98cc1..000000000 --- a/test/lint.spec.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { lint, validate } from '../src/lint'; -import { Parser } from '../src/parser'; -import { hasErrorDiagnostic, hasWarningDiagnostic } from '../src/utils'; - -describe('lint() & validate()', function() { - const parser = new Parser(); - - describe('lint()', function() { - it('should lint invalid document', async function() { - const document = { - asyncapi: '2.0.0', - info: { - title: 'Valid AsyncApi document', - version: '1.0', - }, - }; - - const diagnostics = await lint(parser, document); - if (!diagnostics) { - return; - } - - expect(diagnostics.length > 0).toEqual(true); - expect(hasErrorDiagnostic(diagnostics)).toEqual(true); - expect(hasWarningDiagnostic(diagnostics)).toEqual(true); - }); - - it('should lint valid document', async function() { - const document = { - asyncapi: '2.0.0', - info: { - title: 'Valid AsyncApi document', - version: '1.0', - }, - channels: {} - }; - - const diagnostics = await lint(parser, document); - if (!diagnostics) { - return; - } - - expect(diagnostics.length > 0).toEqual(true); - expect(hasErrorDiagnostic(diagnostics)).toEqual(false); - expect(hasWarningDiagnostic(diagnostics)).toEqual(true); - }); - }); - - describe('validate()', function() { - it('should validate invalid document', async function() { - const document = JSON.stringify({ - asyncapi: '2.0.0', - info: { - title: 'Valid AsyncApi document', - version: '1.0', - }, - }, undefined, 2); - const { validated, diagnostics } = await validate(parser, document); - - expect(validated).toBeUndefined(); - expect(diagnostics.length > 0).toEqual(true); - }); - - it('should validate valid document', async function() { - const document = JSON.stringify({ - asyncapi: '2.0.0', - info: { - title: 'Valid AsyncApi document', - version: '1.0', - }, - channels: {} - }, undefined, 2); - const { validated, diagnostics } = await validate(parser, document); - - expect(validated).not.toBeUndefined(); - expect(diagnostics.length > 0).toEqual(true); - }); - - it('should validate valid document - do not allow warning severity', async function() { - const document = JSON.stringify({ - asyncapi: '2.0.0', - info: { - title: 'Valid AsyncApi document', - version: '1.0', - }, - channels: {} - }, undefined, 2); - const { validated, diagnostics } = await validate(parser, document, { allowedSeverity: { warning: false } }); - - expect(validated).toBeUndefined(); - expect(diagnostics.length > 0).toEqual(true); - }); - }); -}); diff --git a/test/models/asyncapi.spec.ts b/test/models/asyncapi.spec.ts deleted file mode 100644 index cd28e785a..000000000 --- a/test/models/asyncapi.spec.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { AsyncAPIDocumentV2, newAsyncAPIDocument } from '../../src/models'; - -import { createDetailedAsyncAPI } from '../../src/utils'; - -describe('AsyncAPIDocument factory', function() { - it('should create a valid document from v2.0.0', function() { - const doc = { asyncapi: '2.0.0' }; - const detailed = createDetailedAsyncAPI(doc, doc as any); - const d = newAsyncAPIDocument(detailed); - expect(d.version()).toEqual(doc.asyncapi); - expect(d).toBeInstanceOf(AsyncAPIDocumentV2); - }); - - it('should fail trying to create a document from a non supported spec version', function() { - const doc = { asyncapi: '99.99.99' }; - const detailed = createDetailedAsyncAPI(doc, doc as any); - expect(() => newAsyncAPIDocument(detailed)).toThrow('Unsupported AsyncAPI version: 99.99.99'); - }); -}); diff --git a/test/parse.spec.ts b/test/parse.spec.ts index 366287336..933352f99 100644 --- a/test/parse.spec.ts +++ b/test/parse.spec.ts @@ -1,6 +1,5 @@ import { AsyncAPIDocumentV2 } from '../src/models'; import { Parser } from '../src/parser'; -import { parse } from '../src/parse'; describe('parse()', function() { const parser = new Parser(); @@ -14,7 +13,7 @@ describe('parse()', function() { }, channels: {} }; - const { document, diagnostics } = await parse(parser, documentRaw); + const { document, diagnostics } = await parser.parse(documentRaw); expect(document).toBeInstanceOf(AsyncAPIDocumentV2); expect(diagnostics.length > 0).toEqual(true); @@ -28,7 +27,7 @@ describe('parse()', function() { version: '1.0', }, }; - const { document, diagnostics } = await parse(parser, documentRaw); + const { document, diagnostics } = await parser.parse(documentRaw); expect(document).toEqual(undefined); expect(diagnostics.length > 0).toEqual(true); @@ -67,7 +66,7 @@ describe('parse()', function() { } } }; - const { document } = await parse(parser, documentRaw); + const { document } = await parser.parse(documentRaw); const publishMessage = document?.channels().get('channel')?.operations().get('publishOperation')?.messages()[0]; const subscribeMessage = document?.channels().get('channel')?.operations().get('subscribeOperation')?.messages()[0]; @@ -107,7 +106,7 @@ describe('parse()', function() { } } }; - const { document } = await parse(parser, documentRaw); + const { document } = await parser.parse(documentRaw); const messagePayload = document?.channels().get('channel')?.operations().get('someId')?.messages()[0].payload(); expect(messagePayload?.json() !== undefined).toEqual(true); @@ -142,7 +141,7 @@ describe('parse()', function() { } } }; - const { document } = await parse(parser, documentRaw, { source: __filename }); + const { document } = await parser.parse(documentRaw, { source: __filename }); const messagePayload = document?.channels().get('channel')?.operations().get('someId')?.messages()[0].payload(); const circular = messagePayload?.properties()?.['circular']; diff --git a/test/parser.spec.ts b/test/parser.spec.ts index dbb6f1576..5c82fde6c 100644 --- a/test/parser.spec.ts +++ b/test/parser.spec.ts @@ -8,21 +8,14 @@ describe('Parser class', function() { expect(parser).toBeInstanceOf(Parser); }); - it('should have default Spectral instance if no instance is specified in the constructor', async function() { - const parser = new Parser(); - expect(parser.spectral).toBeInstanceOf(Spectral); - }); - it('should have Spectral instance given in constructor', async function() { - const spectral = new Spectral(); - const parser = new Parser({ spectral }); - expect(parser.spectral).toBeInstanceOf(Spectral); - expect(parser.spectral).toEqual(spectral); + const parser = new Parser(); + expect((parser as any).spectral).toBeInstanceOf(Spectral); }); it('should register schema parser', async function() { const parser = new Parser(); parser.registerSchemaParser(AsyncAPISchemaParser()); - expect(parser.parserRegistry.size).toBeGreaterThan(1); + expect((parser as any).parserRegistry.size).toBeGreaterThan(1); }); }); diff --git a/test/schema-parser/asyncapi-schema-parser.spec.ts b/test/schema-parser/asyncapi-schema-parser.spec.ts index 856e2307b..53e246fc8 100644 --- a/test/schema-parser/asyncapi-schema-parser.spec.ts +++ b/test/schema-parser/asyncapi-schema-parser.spec.ts @@ -67,19 +67,19 @@ describe('AsyncAPISchemaParser', function () { const expectedResult: SchemaValidateResult[] = [ { message: 'must be object,boolean', - path: ['properties', 'name', 'if'] + path: ['components', 'schemas', 'schema1', 'payload', 'properties', 'name', 'if'] }, { message: 'must be array', - path: ['oneOf'] + path: ['components', 'schemas', 'schema1', 'payload', 'oneOf'] }, { message: 'must be array', - path: ['oneOf'] + path: ['components', 'schemas', 'schema1', 'payload', 'oneOf'] }, { message: 'must be object,boolean', - path: ['properties', 'name', 'if'] + path: ['components', 'schemas', 'schema1', 'payload', 'properties', 'name', 'if'] } ]; diff --git a/test/schema-parser/avro/avro-schema-parser.spec.ts b/test/schema-parser/avro/avro-schema-parser.spec.ts index 0eb729d2d..3afa487a6 100644 --- a/test/schema-parser/avro/avro-schema-parser.spec.ts +++ b/test/schema-parser/avro/avro-schema-parser.spec.ts @@ -152,7 +152,7 @@ describe('avroToJsonSchema()', function () { it('transforms fixed values', async function () { const schema = {type: 'fixed', size: 5}; - const result = await avroToJsonSchema(schema as AvroSchema); + const result = await avroToJsonSchema(schema as any); expect(result).toEqual({type: 'string', pattern: BYTES_PATTERN, minLength: 5, maxLength: 5}); }); @@ -182,7 +182,7 @@ describe('avroToJsonSchema()', function () { default: 'one' }; - const result = await avroToJsonSchema(schema as AvroSchema); + const result = await avroToJsonSchema(schema as any); expect(result).toEqual({ type: 'string', enum: ['one', 'two', 'three'], @@ -229,7 +229,7 @@ describe('avroToJsonSchema()', function () { const schema = {type: 'record', fields: [{name: 'field1', type: 'string', default: 'AsyncAPI rocks!'}]}; expect( - await avroToJsonSchema(schema as AvroSchema) + await avroToJsonSchema(schema as any) ).toEqual({ type: 'object', properties: {field1: {type: 'string', default: 'AsyncAPI rocks!'}} @@ -280,7 +280,7 @@ describe('supportExampleAttribute', function () { {name: 'example', type: ['null', 'int'], example: 3} ] }; - const result = await avroToJsonSchema(schema as AvroSchema); + const result = await avroToJsonSchema(schema as any); expect(result).toEqual({ type: 'object', 'x-parser-schema-id': 'MyName', diff --git a/test/schema-parser/openapi/openapi-schema-parser.spec.ts b/test/schema-parser/openapi/openapi-schema-parser.spec.ts index 644b73013..7165ab916 100644 --- a/test/schema-parser/openapi/openapi-schema-parser.spec.ts +++ b/test/schema-parser/openapi/openapi-schema-parser.spec.ts @@ -31,27 +31,27 @@ describe('OpenAPISchemaParser', function () { expect(result).toEqual([ { message: 'must be equal to one of the allowed values', - path: ['properties', 'name', 'type'] + path: ['channels', 'myChannel', 'publish', 'message', 'payload', 'properties', 'name', 'type'] }, { message: 'must have required property \'$ref\'', - path: ['properties', 'name'] + path: ['channels', 'myChannel', 'publish', 'message', 'payload', 'properties', 'name'] }, { message: 'must match exactly one schema in oneOf', - path: ['properties','name'] + path: ['channels', 'myChannel', 'publish', 'message', 'payload', 'properties','name'] }, { message: 'must be string', - path: ['properties','surname','format'] + path: ['channels', 'myChannel', 'publish', 'message', 'payload', 'properties','surname','format'] }, { message: 'must have required property \'$ref\'', - path: ['properties','surname'] + path: ['channels', 'myChannel', 'publish', 'message', 'payload', 'properties','surname'] }, { message: 'must match exactly one schema in oneOf', - path: ['properties','surname'] + path: ['channels', 'myChannel', 'publish', 'message', 'payload', 'properties','surname'] } ]); }); diff --git a/test/schema-parser/raml/raml-schema-parser.spec.ts b/test/schema-parser/raml/raml-schema-parser.spec.ts index f7f907dca..e3cbe66e0 100644 --- a/test/schema-parser/raml/raml-schema-parser.spec.ts +++ b/test/schema-parser/raml/raml-schema-parser.spec.ts @@ -46,7 +46,7 @@ describe('validate()', function() { const result = (results as SchemaValidateResult[])[0]; expect(result.message).toEqual('Property \'examples\' should be a map'); - expect(result.path).toEqual([]); // Validator doesn't provide info about the error path + expect(result.path).toEqual(['otherchannel', 'subscribe', 'message', 'payload']); // Validator doesn't provide info about the error path }); }); diff --git a/test/schema-parser/spectral-rule-v2.spec.ts b/test/schema-parser/spectral-rule-v2.spec.ts index 90b4db5ba..0b39626b6 100644 --- a/test/schema-parser/spectral-rule-v2.spec.ts +++ b/test/schema-parser/spectral-rule-v2.spec.ts @@ -1,13 +1,11 @@ import { Parser } from '../../src/parser'; -import { validate } from '../../src/lint'; -import type { ISpectralDiagnostic } from '@stoplight/spectral-core'; -import type { SchemaValidateResult } from '../../src/types'; +import { filterDiagnostics, expectDiagnostics } from '../utils'; describe('aas2schemaParserRule', function() { const parser = new Parser(); - it.only('should validate AsyncAPI Schema with valid schema', async function() { + it('should validate AsyncAPI Schema with valid schema', async function() { const document = { asyncapi: '2.0.0', info: { @@ -26,9 +24,9 @@ describe('aas2schemaParserRule', function() { } } }; - const { diagnostics } = await validate(parser, document); - const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); - expect(filteredDiagnostics).toHaveLength(0); + + const diagnostics = await parser.validate(document); + expectDiagnostics(diagnostics, 'asyncapi-schemas-v2', []); }); it('should validate AsyncAPI Schema with invalid schema', async function() { @@ -55,10 +53,9 @@ describe('aas2schemaParserRule', function() { } } }; - const { diagnostics } = await validate(parser, document); - const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); - const expectedResult: SchemaValidateResult[] = [ + const diagnostics = await parser.validate(document); + expectDiagnostics(diagnostics, 'asyncapi-schemas-v2', [ { message: 'must be array', path: ['channels', 'channel', 'publish', 'message', 'payload', 'oneOf'] @@ -67,9 +64,7 @@ describe('aas2schemaParserRule', function() { message: 'must be object,boolean', path: ['channels', 'channel', 'publish', 'message', 'payload', 'properties', 'name', 'if'] } - ]; - - expect(filteredDiagnostics).toEqual(expectedResult.map(e => expect.objectContaining(e))); + ]); }); it('should validate AsyncAPI Schema with invalid schema (components.messages case)', async function() { @@ -95,10 +90,9 @@ describe('aas2schemaParserRule', function() { } } }; - const { diagnostics } = await validate(parser, document); - const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); - const expectedResult: SchemaValidateResult[] = [ + const diagnostics = await parser.validate(document); + expectDiagnostics(diagnostics, 'asyncapi-schemas-v2', [ { message: 'must be array', path: ['components', 'messages', 'message', 'payload', 'oneOf'] @@ -107,9 +101,7 @@ describe('aas2schemaParserRule', function() { message: 'must be object,boolean', path: ['components', 'messages', 'message', 'payload', 'properties', 'name', 'if'] } - ]; - - expect(filteredDiagnostics).toEqual(expectedResult.map(e => expect.objectContaining(e))); + ]); }); it('should validate AsyncAPI Schema with invalid schema (components.channels case)', async function() { @@ -139,10 +131,9 @@ describe('aas2schemaParserRule', function() { } } }; - const { diagnostics } = await validate(parser, document); - const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); - const expectedResult: SchemaValidateResult[] = [ + const diagnostics = await parser.validate(document); + expectDiagnostics(diagnostics, 'asyncapi-schemas-v2', [ { message: 'must be array', path: ['components', 'channels', 'channel', 'publish', 'message', 'payload', 'oneOf'] @@ -151,9 +142,7 @@ describe('aas2schemaParserRule', function() { message: 'must be object,boolean', path: ['components', 'channels', 'channel', 'publish', 'message', 'payload', 'properties', 'name', 'if'] } - ]; - - expect(filteredDiagnostics).toEqual(expectedResult.map(e => expect.objectContaining(e))); + ]); }); it('should validate AsyncAPI Schema with invalid schema (oneOf case)', async function() { @@ -189,10 +178,9 @@ describe('aas2schemaParserRule', function() { } } }; - const { diagnostics } = await validate(parser, document); - const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); - const expectedResult: SchemaValidateResult[] = [ + const diagnostics = await parser.validate(document); + expectDiagnostics(diagnostics, 'asyncapi-schemas-v2', [ { message: 'must be array', path: ['channels', 'channel', 'publish', 'message', 'oneOf', '0', 'payload', 'oneOf'] @@ -205,9 +193,7 @@ describe('aas2schemaParserRule', function() { message: 'must be array', path: ['channels', 'channel', 'publish', 'message', 'oneOf', '1', 'payload', 'oneOf'] } - ]; - - expect(filteredDiagnostics).toEqual(expectedResult.map(e => expect.objectContaining(e))); + ]); }); it('should validate AsyncAPI Schema with supported schema format', async function() { @@ -230,9 +216,9 @@ describe('aas2schemaParserRule', function() { } } }; - const { diagnostics } = await validate(parser, document); - const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); - expect(filteredDiagnostics).toHaveLength(0); + + const diagnostics = await parser.validate(document); + expectDiagnostics(diagnostics, 'asyncapi-schemas-v2', []); }); it('should validate AsyncAPI Schema with non supported schema format', async function() { @@ -255,17 +241,18 @@ describe('aas2schemaParserRule', function() { } } }; - const { diagnostics } = await validate(parser, document); - const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); - const expectedResult: SchemaValidateResult[] = [ + const diagnostics = await parser.validate(document); + expectDiagnostics(diagnostics, 'asyncapi-schemas-v2', [ { message: 'Unknown schema format: "not existing"', path: ['channels', 'channel', 'publish', 'message', 'schemaFormat'] }, - ]; - - expect(filteredDiagnostics).toEqual(expectedResult.map(e => expect.objectContaining(e))); + { + message: 'Cannot validate and parse given schema due to unknown schema format: "not existing"', + path: ['channels', 'channel', 'publish', 'message', 'payload'] + }, + ]); }); it('should not contain errors from asyncapi-payload-unsupported-schemaFormat and asyncapi-payload rules', async function() { @@ -292,14 +279,10 @@ describe('aas2schemaParserRule', function() { } } }; - const { diagnostics } = await validate(parser, document); + const diagnostics = await parser.validate(document); expect(filterDiagnostics(diagnostics, 'asyncapi-schemas-v2')).toHaveLength(2); expect(filterDiagnostics(diagnostics, 'asyncapi-payload-unsupported-schemaFormat')).toHaveLength(0); expect(filterDiagnostics(diagnostics, 'asyncapi-payload')).toHaveLength(0); }); }); - -function filterDiagnostics(diagnostics: ISpectralDiagnostic[], code: string) { - return diagnostics.filter(d => d.code === code); -} diff --git a/test/spectral.test.ts b/test/spectral.spec.ts similarity index 51% rename from test/spectral.test.ts rename to test/spectral.spec.ts index a1c80be57..01aa86fb4 100644 --- a/test/spectral.test.ts +++ b/test/spectral.spec.ts @@ -1,71 +1,61 @@ +import { Spectral } from '@stoplight/spectral-core'; import { Parser } from '../src/parser'; -import { validate } from '../src/lint'; - +import { createSpectral } from '../src/spectral'; import { specVersions } from '../src/constants'; -import type { ISpectralDiagnostic } from '@stoplight/spectral-core'; -import type { SchemaValidateResult } from '../src/types'; +import { expectDiagnostics } from './utils'; describe('Custom Spectral instance', function() { const parser = new Parser(); + describe('createSpectral()', function() { + it('should create Spectral instance', async function() { + const spectral = createSpectral(parser); + expect(spectral).toBeInstanceOf(Spectral); + }); + }); + describe('asyncapi-is-asyncapi Spectral rule', function() { it('should throw error when input is not an AsyncAPI document (empty input case)', async function() { - const { diagnostics } = await validate(parser, ''); + const diagnostics = await parser.validate(''); expect(diagnostics.length > 0).toEqual(true); - const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-is-asyncapi'); - - const expectedResult: SchemaValidateResult[] = [ + expectDiagnostics(diagnostics, 'asyncapi-is-asyncapi', [ { message: 'This is not an AsyncAPI document. The "asyncapi" field as string is missing.', path: [] }, - ]; - - expect(filteredDiagnostics).toEqual(expectedResult.map(e => expect.objectContaining(e))); + ]); }); it('should throw error when input is not an AsyncAPI document (another spec case)', async function() { const document = { openapi: '3.0.0', }; - const { diagnostics } = await validate(parser, document as any); + const diagnostics = await parser.validate(document as any); expect(diagnostics.length > 0).toEqual(true); - const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-is-asyncapi'); - - const expectedResult: SchemaValidateResult[] = [ + expectDiagnostics(diagnostics, 'asyncapi-is-asyncapi', [ { message: 'This is not an AsyncAPI document. The "asyncapi" field as string is missing.', path: [] }, - ]; - - expect(filteredDiagnostics).toEqual(expectedResult.map(e => expect.objectContaining(e))); + ]); }); it('should throw error when input is an unsupported version of AsyncAPI', async function() { const document = { asyncapi: '2.1.37', }; - const { diagnostics } = await validate(parser, document as any); + const diagnostics = await parser.validate(document as any); expect(diagnostics.length > 0).toEqual(true); - const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-is-asyncapi'); - - const expectedResult: SchemaValidateResult[] = [ + expectDiagnostics(diagnostics, 'asyncapi-is-asyncapi', [ { message: `Version "2.1.37" is not supported. Please use "${specVersions[specVersions.length - 1]}" (latest) version of the specification.`, path: [] }, - ]; - - expect(filteredDiagnostics).toEqual(expectedResult.map(e => expect.objectContaining(e))); + ]); }); }); }); - -function filterDiagnostics(diagnostics: ISpectralDiagnostic[], code: string) { - return diagnostics.filter(d => d.code === code); -} \ No newline at end of file diff --git a/test/stringify.spec.ts b/test/stringify.spec.ts index ac052053d..1025ddf3a 100644 --- a/test/stringify.spec.ts +++ b/test/stringify.spec.ts @@ -1,6 +1,7 @@ import { xParserSpecParsed, xParserSpecStringified } from '../src/constants'; -import { BaseModel, newAsyncAPIDocument } from '../src/models'; +import { BaseModel } from '../src/models'; import { stringify, unstringify } from '../src/stringify'; +import { createAsyncAPIDocument } from '../src/document'; import { createDetailedAsyncAPI } from '../src/utils'; describe('stringify & unstringify', function() { @@ -34,7 +35,7 @@ describe('stringify & unstringify', function() { it('should stringify AsyncAPIDocument instance', function() { const doc = { asyncapi: '2.0.0' }; const detailed = createDetailedAsyncAPI(doc, doc as any); - expect(typeof stringify(newAsyncAPIDocument(detailed))).toEqual('string'); + expect(typeof stringify(createAsyncAPIDocument(detailed))).toEqual('string'); }); }); diff --git a/test/utils.spec.ts b/test/utils.spec.ts index 723de2174..ecee75519 100644 --- a/test/utils.spec.ts +++ b/test/utils.spec.ts @@ -4,6 +4,8 @@ import { cloneDeep } from 'lodash'; import { hasErrorDiagnostic, hasWarningDiagnostic, + hasInfoDiagnostic, + hasHintDiagnostic, createDetailedAsyncAPI, getSemver, mergePatch, @@ -53,7 +55,7 @@ describe('utils', function() { }); }); - describe('hasErrorDiagnostic()', function() { + describe('hasWarningDiagnostic()', function() { const simpleDiagnostic: Diagnostic = { code: 'test-code', message: 'test-message', @@ -93,6 +95,86 @@ describe('utils', function() { }); }); + describe('hasInfoDiagnostic()', function() { + const simpleDiagnostic: Diagnostic = { + code: 'test-code', + message: 'test-message', + range: { start: { line: 0, character: 0 }, end: { line: 0, character: 0 } }, + severity: DiagnosticSeverity.Error, + path: [], + }; + + it('should return true when diagnostics have at least one info', function() { + const diagnostics: Diagnostic[] = [ + { + ...simpleDiagnostic, + severity: DiagnosticSeverity.Error, + }, + { + ...simpleDiagnostic, + severity: DiagnosticSeverity.Information, + } + ]; + + expect(hasInfoDiagnostic(diagnostics)).toEqual(true); + }); + + it('should return false when diagnostics have no info', function() { + const diagnostics: Diagnostic[] = [ + { + ...simpleDiagnostic, + severity: DiagnosticSeverity.Error, + }, + { + ...simpleDiagnostic, + severity: DiagnosticSeverity.Error, + } + ]; + + expect(hasInfoDiagnostic(diagnostics)).toEqual(false); + }); + }); + + describe('hasHintDiagnostic()', function() { + const simpleDiagnostic: Diagnostic = { + code: 'test-code', + message: 'test-message', + range: { start: { line: 0, character: 0 }, end: { line: 0, character: 0 } }, + severity: DiagnosticSeverity.Error, + path: [], + }; + + it('should return true when diagnostics have at least one hint', function() { + const diagnostics: Diagnostic[] = [ + { + ...simpleDiagnostic, + severity: DiagnosticSeverity.Error, + }, + { + ...simpleDiagnostic, + severity: DiagnosticSeverity.Hint, + } + ]; + + expect(hasHintDiagnostic(diagnostics)).toEqual(true); + }); + + it('should return false when diagnostics have no hint', function() { + const diagnostics: Diagnostic[] = [ + { + ...simpleDiagnostic, + severity: DiagnosticSeverity.Error, + }, + { + ...simpleDiagnostic, + severity: DiagnosticSeverity.Error, + } + ]; + + expect(hasHintDiagnostic(diagnostics)).toEqual(false); + }); + }); + describe('createDetailedAsyncAPI()', function() { it('should create detailed object', function () { const source = '{ asyncapi: \'2.1.37\' }'; diff --git a/test/utils.ts b/test/utils.ts new file mode 100644 index 000000000..85928a6ff --- /dev/null +++ b/test/utils.ts @@ -0,0 +1,10 @@ +import type { ISpectralDiagnostic } from '@stoplight/spectral-core'; +import type { SchemaValidateResult } from '../src/types'; + +export function filterDiagnostics(diagnostics: ISpectralDiagnostic[], code: string) { + return diagnostics.filter(d => d.code === code); +} + +export function expectDiagnostics(diagnostics: ISpectralDiagnostic[], code: string, results: SchemaValidateResult[]) { + expect(filterDiagnostics(diagnostics, code)).toEqual(results.map(e => expect.objectContaining(e))); +} diff --git a/test/validate.spec.ts b/test/validate.spec.ts new file mode 100644 index 000000000..46b375ec2 --- /dev/null +++ b/test/validate.spec.ts @@ -0,0 +1,56 @@ +import { Parser } from '../src/parser'; +import { hasErrorDiagnostic, hasWarningDiagnostic } from '../src/utils'; + +describe('validate()', function() { + const parser = new Parser(); + + describe('validate()', function() { + it('should validate invalid document', async function() { + const documentRaw = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + }; + const diagnostics = await parser.validate(documentRaw); + + expect(diagnostics.length > 0).toEqual(true); + expect(hasErrorDiagnostic(diagnostics)).toEqual(true); + expect(hasWarningDiagnostic(diagnostics)).toEqual(true); + }); + + it('should validate valid document', async function() { + const documentRaw = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: {} + }; + const diagnostics = await parser.validate(documentRaw); + + expect(diagnostics.length > 0).toEqual(true); + expect(hasErrorDiagnostic(diagnostics)).toEqual(false); + expect(hasWarningDiagnostic(diagnostics)).toEqual(true); + }); + + it('should validate valid document - do not allow warning severity', async function() { + const documentRaw = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: {} + }; + const { document, diagnostics } = await parser.parse(documentRaw, { validateOptions: { allowedSeverity: { warning: false } } }); + + expect(document).toBeUndefined(); + expect(diagnostics.length > 0).toEqual(true); + expect(hasErrorDiagnostic(diagnostics)).toEqual(false); + expect(hasWarningDiagnostic(diagnostics)).toEqual(true); + }); + }); +}); From 9e5d254ef2f98651d0c8986e6640788f80b4272f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Mon, 19 Sep 2022 12:18:12 +0200 Subject: [PATCH 053/126] refactor: fix TS imports and change name of migrator to converter (#618) --- README.md | 10 ++++----- src/index.ts | 2 +- src/models/v2/channel.ts | 4 ++-- src/old-api/{migrator.ts => converter.ts} | 2 +- .../{migrator.spec.ts => converter.spec.ts} | 22 +++++++++---------- test/old-api/iterator.spec.ts | 6 ++--- 6 files changed, 23 insertions(+), 23 deletions(-) rename src/old-api/{migrator.ts => converter.ts} (96%) rename test/old-api/{migrator.spec.ts => converter.spec.ts} (93%) diff --git a/README.md b/README.md index cea839591..bf431d414 100644 --- a/README.md +++ b/README.md @@ -330,7 +330,7 @@ The parser uses custom extensions to define additional information about the spe - `x-parser-original-payload` holds the original payload of the message. You can use different formats for payloads with the AsyncAPI documents and the parser converts them to. For example, it converts payload described with Avro schema to AsyncAPI schema. The original payload is preserved in the extension. - [`x-parser-circular`](#circular-references). -In addition, the [`migrateToOldAPI()` function](#convert-to-the-old-api) which converts new API to an old one adds additional extensions: +In addition, the [`convertToOldAPI()` function](#convert-to-the-old-api) which converts new API to an old one adds additional extensions: - `x-parser-message-parsed` is used to specify if the message is already parsed by the message parser. Property `x-parser-message-parsed` is added to the message object with the `true` value. - `x-parser-schema-id` is used to specify the ID of the schema if it is not provided. For schemas without IDs, the parser generates anonymous names. Property `x-parser-schema-id` is added to every object of a schema with a value that follows this pattern: ``. This value is returned by `schema.uid()` when regular `$id` property is not present. @@ -370,17 +370,17 @@ Check [example](#example-with-stringify-and-unstringify-parsed-documentstringify ## Convert to the old API -Version `2.0.0` of package introduced a lot of breaking changes, including changing the API of the returned parsed document (parser uses [New API](https://github.com/asyncapi/parser-api)). Due to the fact that a large part of the AsyncAPI tooling ecosystem uses a Parser with the old API and rewriting the tool for the new one can be time-consuming and difficult, the package exposes the `migrateToOldAPI()` function to convert new API to old one: +Version `2.0.0` of package introduced a lot of breaking changes, including changing the API of the returned parsed document (parser uses [New API](https://github.com/asyncapi/parser-api)). Due to the fact that a large part of the AsyncAPI tooling ecosystem uses a Parser with the old API and rewriting the tool for the new one can be time-consuming and difficult, the package exposes the `convertToOldAPI()` function to convert new API to old one: ```js -import { Parser, migrateToOldAPI } from '@asyncapi/parser'; +import { Parser, convertToOldAPI } from '@asyncapi/parser'; const parser = new Parser(); const { document } = parser.parse(...); -const oldAsyncAPIDocument = migrateToOldAPI(document); +const oldAsyncAPIDocument = convertToOldAPI(document); ``` -> **Note** +> **Warning** > The old api will be supported only for a certain period of time. The target date for turning off support of the old API is around the end of January 2023. ## Bundler configuration diff --git a/src/index.ts b/src/index.ts index f745b67da..5c0a79ed5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,7 @@ export { stringify, unstringify } from './stringify'; export { fromURL, fromFile } from './from'; export { AsyncAPIDocument as OldAsyncAPIDocument } from './old-api/asyncapi'; -export { migrateToOldAPI } from './old-api/migrator'; +export { convertToOldAPI } from './old-api/converter'; export type { AsyncAPISemver, Input, Diagnostic, SchemaValidateResult } from './types'; export type { ValidateOptions, ValidateOutput } from './validate'; diff --git a/src/models/v2/channel.ts b/src/models/v2/channel.ts index 5486e8713..60a6fc7dc 100644 --- a/src/models/v2/channel.ts +++ b/src/models/v2/channel.ts @@ -9,10 +9,10 @@ import { Server } from './server'; import { bindings, hasDescription, description, extensions } from './mixins'; -import type { BindingsInterface } from 'models/bindings'; +import type { BindingsInterface } from '../bindings'; import type { ChannelInterface } from '../channel'; import type { ChannelParametersInterface } from '../channel-parameters'; -import type { ExtensionsInterface } from 'models/extensions'; +import type { ExtensionsInterface } from '../extensions'; import type { MessagesInterface } from '../messages'; import type { MessageInterface } from '../message'; import type { OperationsInterface } from '../operations'; diff --git a/src/old-api/migrator.ts b/src/old-api/converter.ts similarity index 96% rename from src/old-api/migrator.ts rename to src/old-api/converter.ts index fdeea2728..17b751045 100644 --- a/src/old-api/migrator.ts +++ b/src/old-api/converter.ts @@ -5,7 +5,7 @@ import { getDefaultSchemaFormat } from '../schema-parser'; import type { AsyncAPIDocumentInterface } from '../models/asyncapi'; -export function migrateToOldAPI(newDocument: AsyncAPIDocumentInterface): AsyncAPIDocument { +export function convertToOldAPI(newDocument: AsyncAPIDocumentInterface): AsyncAPIDocument { const data = copy(newDocument.json()); const document = new AsyncAPIDocument(data); diff --git a/test/old-api/migrator.spec.ts b/test/old-api/converter.spec.ts similarity index 93% rename from test/old-api/migrator.spec.ts rename to test/old-api/converter.spec.ts index 310eee3d4..5d05b7473 100644 --- a/test/old-api/migrator.spec.ts +++ b/test/old-api/converter.spec.ts @@ -1,4 +1,4 @@ -import { migrateToOldAPI } from '../../src/old-api/migrator'; +import { convertToOldAPI } from '../../src/old-api/converter'; import { AsyncAPIDocument as OldAsyncAPIDocument } from '../../src/old-api/asyncapi'; import { AsyncAPIDocumentV2 } from '../../src'; import { anonymousNaming } from '../../src/custom-operations/anonymous-naming'; @@ -6,10 +6,10 @@ import { checkCircularRefs } from '../../src/custom-operations/check-circular-re import { getDefaultSchemaFormat } from '../../src/schema-parser'; import { xParserCircular, xParserOriginalTraits, xParserOriginalSchemaFormat, xParserMessageParsed, xParserOriginalPayload } from '../../src/constants'; -describe('migrateToOldAPI()', function() { +describe('convertToOldAPI()', function() { it('should return AsyncAPIDocument instance', function() { const newApi = new AsyncAPIDocumentV2({} as any); - expect(migrateToOldAPI(newApi)).toBeInstanceOf(OldAsyncAPIDocument); + expect(convertToOldAPI(newApi)).toBeInstanceOf(OldAsyncAPIDocument); }); it('should not assign x-parser-circular extension when document has not circular schemas', function() { @@ -26,7 +26,7 @@ describe('migrateToOldAPI()', function() { } as any); checkCircularRefs(newApi); - expect(migrateToOldAPI(newApi).ext(xParserCircular)).toEqual(undefined); + expect(convertToOldAPI(newApi).ext(xParserCircular)).toEqual(undefined); }); it('should assign x-parser-circular extension when document has circular schemas', function() { @@ -49,7 +49,7 @@ describe('migrateToOldAPI()', function() { } as any); checkCircularRefs(newApi); - expect(migrateToOldAPI(newApi).ext(xParserCircular)).toEqual(true); + expect(convertToOldAPI(newApi).ext(xParserCircular)).toEqual(true); }); it('should assign x-parser-original-schema-format to the message object to the default one when field isn not defined', function() { @@ -81,7 +81,7 @@ describe('migrateToOldAPI()', function() { // apply anonymous naming anonymousNaming(newApi); - const oldApi = migrateToOldAPI(newApi); + const oldApi = convertToOldAPI(newApi); expect(oldApi.json().channels.channel?.publish?.message?.[xParserOriginalSchemaFormat]).toEqual(getDefaultSchemaFormat('2.0.0')); expect((oldApi.json().channels.channel?.publish?.message as any)?.schemaFormat).toEqual(getDefaultSchemaFormat('2.0.0')); expect(oldApi.json().channels.channel?.subscribe?.message?.[xParserOriginalSchemaFormat]).toEqual(getDefaultSchemaFormat('2.0.0')); @@ -119,7 +119,7 @@ describe('migrateToOldAPI()', function() { // apply anonymous naming anonymousNaming(newApi); - const oldApi = migrateToOldAPI(newApi); + const oldApi = convertToOldAPI(newApi); expect(oldApi.json().channels.channel?.publish?.message?.[xParserOriginalSchemaFormat]).toEqual('custom1'); expect((oldApi.json().channels.channel?.publish?.message as any)?.schemaFormat).toEqual(getDefaultSchemaFormat('2.0.0')); expect(oldApi.json().channels.channel?.subscribe?.message?.[xParserOriginalSchemaFormat]).toEqual('custom2'); @@ -155,7 +155,7 @@ describe('migrateToOldAPI()', function() { // apply anonymous naming anonymousNaming(newApi); - const oldApi = migrateToOldAPI(newApi); + const oldApi = convertToOldAPI(newApi); expect(oldApi.json().channels.channel?.publish?.message?.[xParserMessageParsed]).toEqual(true); expect(oldApi.json().channels.channel?.subscribe?.message?.[xParserMessageParsed]).toEqual(true); }); @@ -193,7 +193,7 @@ describe('migrateToOldAPI()', function() { // apply anonymous naming anonymousNaming(newApi); - const oldApi = migrateToOldAPI(newApi); + const oldApi = convertToOldAPI(newApi); expect(oldApi.json().channels.channel?.publish?.message?.[xParserOriginalPayload]).toEqual({ type: 'string', 'x-parser-schema-id': '' }); expect(oldApi.json().channels.channel?.subscribe?.message?.[xParserOriginalPayload]).toEqual({ type: 'number', 'x-parser-schema-id': '' }); }); @@ -226,7 +226,7 @@ describe('migrateToOldAPI()', function() { // apply anonymous naming anonymousNaming(newApi); - const oldApi = migrateToOldAPI(newApi); + const oldApi = convertToOldAPI(newApi); expect(oldApi.json().channels.channel?.publish?.message?.[xParserOriginalTraits]).toEqual([{}, {}]); expect((oldApi.json().channels.channel?.publish?.message as any)?.traits).toBeUndefined(); expect(oldApi.json().channels.channel?.subscribe?.message?.[xParserOriginalTraits]).toEqual([{}, {}]); @@ -253,7 +253,7 @@ describe('migrateToOldAPI()', function() { } } as any); - const oldApi = migrateToOldAPI(newApi); + const oldApi = convertToOldAPI(newApi); expect(oldApi.json().channels.channel?.publish?.[xParserOriginalTraits]).toEqual([{}, {}]); expect(oldApi.json().channels.channel?.publish?.traits).toBeUndefined(); expect(oldApi.json().channels.channel?.subscribe?.[xParserOriginalTraits]).toEqual([{}, {}]); diff --git a/test/old-api/iterator.spec.ts b/test/old-api/iterator.spec.ts index fcd0599f6..0b0d9d59a 100644 --- a/test/old-api/iterator.spec.ts +++ b/test/old-api/iterator.spec.ts @@ -1,4 +1,4 @@ -import { migrateToOldAPI } from '../../src/old-api/migrator'; +import { convertToOldAPI } from '../../src/old-api/converter'; import { SchemaIteratorCallbackType, SchemaTypesToIterate, traverseAsyncApiDocument } from '../../src/old-api/iterator'; import { Parser } from '../../src/parser'; import { AsyncAPIDocument } from '../../src/old-api/asyncapi'; @@ -59,7 +59,7 @@ describe('Traverse AsyncAPI document - old API', function() { describe('traverseAsyncApiDocument()', function() { it('should traverse all possible schemas from a valid document', async function() { const { document } = await parser.parse(documentRaw); - const oldDocument = migrateToOldAPI(document!); + const oldDocument = convertToOldAPI(document!); expect(oldDocument).toBeInstanceOf(AsyncAPIDocument); @@ -87,7 +87,7 @@ describe('Traverse AsyncAPI document - old API', function() { it('should traverse few schemas from a valid document', async function() { const { document } = await parser.parse(documentRaw); - const oldDocument = migrateToOldAPI(document!); + const oldDocument = convertToOldAPI(document!); expect(oldDocument).toBeInstanceOf(AsyncAPIDocument); From 5a8108b00a4f07b5a34c89586d6c4650112f98eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Thu, 22 Sep 2022 12:46:12 +0200 Subject: [PATCH 054/126] refactor: add tests for old api (#622) --- src/custom-operations/anonymous-naming.ts | 2 +- src/iterator.ts | 4 +- src/models/v2/asyncapi.ts | 2 +- src/old-api/asyncapi.ts | 43 +- src/old-api/iterator.ts | 4 +- src/old-api/mixins.ts | 10 +- src/old-api/schema.ts | 11 +- src/spec-types/v2.ts | 128 +-- src/stringify.ts | 4 +- .../anonymous-naming.spec.ts | 64 ++ test/mocks/circular-refs.yaml | 30 + test/mocks/nested-schemas.yaml | 189 +++ test/mocks/refs-1.yaml | 4 + test/mocks/refs-2.yaml | 1 + test/mocks/simple-with-refs.yaml | 26 + test/mocks/simple.yaml | 7 +- test/old-api/asyncapi.spec.ts | 1013 +++++++++++++++++ test/old-api/base.spec.ts | 25 + test/old-api/channel-parameter.spec.ts | 27 + test/old-api/channel.spec.ts | 132 +++ test/old-api/components.spec.ts | 526 +++++++++ test/old-api/contact.spec.ts | 29 + test/old-api/correlation-id.spec.ts | 16 + test/old-api/external-docs.spec.ts | 16 + test/old-api/info.spec.ts | 58 + test/old-api/license.spec.ts | 22 + test/old-api/message-trait.spec.ts | 107 ++ test/old-api/message.spec.ts | 155 +++ test/old-api/mixins.spec.ts | 92 ++ test/old-api/mixins.ts | 310 +++++ test/old-api/oauth-flow.spec.ts | 37 + test/old-api/operation-trait.spec.ts | 40 + test/old-api/operation.spec.ts | 133 +++ test/old-api/schema.spec.ts | 777 +++++++++++++ test/old-api/security-scheme.spec.ts | 63 + test/old-api/server-variable.spec.ts | 66 ++ test/old-api/server.spec.ts | 74 ++ test/old-api/tag.spec.ts | 17 + 38 files changed, 4172 insertions(+), 92 deletions(-) create mode 100644 test/mocks/circular-refs.yaml create mode 100644 test/mocks/nested-schemas.yaml create mode 100644 test/mocks/refs-1.yaml create mode 100644 test/mocks/refs-2.yaml create mode 100644 test/mocks/simple-with-refs.yaml create mode 100644 test/old-api/asyncapi.spec.ts create mode 100644 test/old-api/base.spec.ts create mode 100644 test/old-api/channel-parameter.spec.ts create mode 100644 test/old-api/channel.spec.ts create mode 100644 test/old-api/components.spec.ts create mode 100644 test/old-api/contact.spec.ts create mode 100644 test/old-api/correlation-id.spec.ts create mode 100644 test/old-api/external-docs.spec.ts create mode 100644 test/old-api/info.spec.ts create mode 100644 test/old-api/license.spec.ts create mode 100644 test/old-api/message-trait.spec.ts create mode 100644 test/old-api/message.spec.ts create mode 100644 test/old-api/mixins.spec.ts create mode 100644 test/old-api/mixins.ts create mode 100644 test/old-api/oauth-flow.spec.ts create mode 100644 test/old-api/operation-trait.spec.ts create mode 100644 test/old-api/operation.spec.ts create mode 100644 test/old-api/schema.spec.ts create mode 100644 test/old-api/security-scheme.spec.ts create mode 100644 test/old-api/server-variable.spec.ts create mode 100644 test/old-api/server.spec.ts create mode 100644 test/old-api/tag.spec.ts diff --git a/src/custom-operations/anonymous-naming.ts b/src/custom-operations/anonymous-naming.ts index 53fd00053..42c1b3655 100644 --- a/src/custom-operations/anonymous-naming.ts +++ b/src/custom-operations/anonymous-naming.ts @@ -28,7 +28,7 @@ function assignNameToComponentMessages(document: AsyncAPIDocumentInterface) { function assignNameToAnonymousMessages(document: AsyncAPIDocumentInterface) { let anonymousMessageCounter = 0; document.messages().forEach(message => { - if (message.name() === undefined && message.extensions().get(xParserMessageName) === undefined) { + if (message.name() === undefined && message.extensions().get(xParserMessageName)?.value() === undefined) { setExtension(xParserMessageName, ``, message); } }); diff --git a/src/iterator.ts b/src/iterator.ts index cf8e65e61..b6b2eb1f3 100644 --- a/src/iterator.ts +++ b/src/iterator.ts @@ -39,7 +39,7 @@ export enum SchemaTypesToIterate { export type TraverseOptions = { callback: TraverseCallback - schemaTypesToIterate: SchemaTypesToIterate[] + schemaTypesToIterate: Array<`${SchemaTypesToIterate}`>; seenSchemas: Set } @@ -48,7 +48,7 @@ export type TraverseCallback = (schema: SchemaInterface, propOrIndex: string | n /** * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. */ -export function traverseAsyncApiDocument(doc: AsyncAPIDocumentInterface, callback: TraverseCallback, schemaTypesToIterate: SchemaTypesToIterate[] = []) { +export function traverseAsyncApiDocument(doc: AsyncAPIDocumentInterface, callback: TraverseCallback, schemaTypesToIterate: Array<`${SchemaTypesToIterate}`> = []) { if (schemaTypesToIterate.length === 0) { schemaTypesToIterate = Object.values(SchemaTypesToIterate); } diff --git a/src/models/v2/asyncapi.ts b/src/models/v2/asyncapi.ts index 1e53b4894..fc14f4689 100644 --- a/src/models/v2/asyncapi.ts +++ b/src/models/v2/asyncapi.ts @@ -88,7 +88,7 @@ export class AsyncAPIDocument extends BaseModel implements As } components(): ComponentsInterface { - return new Components(this._json.components || {}); + return this.createModel(Components, this._json.components || {}, { pointer: '/components' }); } extensions(): ExtensionsInterface { diff --git a/src/old-api/asyncapi.ts b/src/old-api/asyncapi.ts index 89c543302..5ebea4c98 100644 --- a/src/old-api/asyncapi.ts +++ b/src/old-api/asyncapi.ts @@ -7,8 +7,8 @@ import { Message } from './message'; import { Schema } from './schema'; import { traverseAsyncApiDocument } from './iterator'; -import { xParserCircular } from '../constants'; -import { stringify, unstringify } from '../stringify'; +import { xParserCircular, xParserSpecStringified, xParserSpecParsed } from '../constants'; +import { refReplacer, traverseStringifiedData } from '../stringify'; import type { v2 } from '../spec-types'; import type { Operation } from './operation'; @@ -154,16 +154,41 @@ export class AsyncAPIDocument extends SpecificationExtensionsModel = []) { traverseAsyncApiDocument(this, callback, schemaTypesToIterate); } - static stringify(doc: AsyncAPIDocument, space: number): string | undefined { - return stringify(doc, { space }); + static stringify(doc: AsyncAPIDocument, space?: number): string | undefined { + const rawDoc = doc.json(); + const copiedDoc = { ...rawDoc }; + copiedDoc[xParserSpecStringified] = true; + return JSON.stringify(copiedDoc, refReplacer(), space); } - static parse(doc: string): AsyncAPIDocument | undefined { - const possibleDocument = unstringify(doc); - return possibleDocument ? new AsyncAPIDocument(possibleDocument.json()) : undefined; + static parse(doc: string | Record): AsyncAPIDocument | undefined { + let parsedJSON = doc; + if (typeof doc === 'string') { + parsedJSON = JSON.parse(doc); + } else if (typeof doc === 'object') { + // shall copy + parsedJSON = { ...(parsedJSON as Record) }; + } + + // the `doc` must be an AsyncAPI parsed document + if (typeof parsedJSON !== 'object' || !parsedJSON[xParserSpecParsed]) { + throw new Error('Cannot parse invalid AsyncAPI document'); + } + // if the `doc` is not stringified via the `stringify` static method then immediately return a model. + if (!parsedJSON[xParserSpecStringified]) { + return new AsyncAPIDocument(parsedJSON as v2.AsyncAPIObject); + } + // remove `x-parser-spec-stringified` extension + delete parsedJSON[String(xParserSpecStringified)]; + + const objToPath = new Map(); + const pathToObj = new Map(); + traverseStringifiedData(parsedJSON, undefined, parsedJSON, objToPath, pathToObj); + + return new AsyncAPIDocument(parsedJSON as v2.AsyncAPIObject); } -} \ No newline at end of file +} diff --git a/src/old-api/iterator.ts b/src/old-api/iterator.ts index 519ea0c2d..0d4f78ad7 100644 --- a/src/old-api/iterator.ts +++ b/src/old-api/iterator.ts @@ -38,7 +38,7 @@ export enum SchemaTypesToIterate { export type TraverseOptions = { callback: TraverseCallback - schemaTypesToIterate: SchemaTypesToIterate[] + schemaTypesToIterate: Array<`${SchemaTypesToIterate}`>; seenSchemas: Set } @@ -47,7 +47,7 @@ export type TraverseCallback = (schema: Schema, propOrIndex: string | number | n /** * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. */ -export function traverseAsyncApiDocument(doc: AsyncAPIDocument, callback: TraverseCallback, schemaTypesToIterate: SchemaTypesToIterate[] = []) { +export function traverseAsyncApiDocument(doc: AsyncAPIDocument, callback: TraverseCallback, schemaTypesToIterate: Array<`${SchemaTypesToIterate}`> = []) { if (schemaTypesToIterate.length === 0) { schemaTypesToIterate = Object.values(SchemaTypesToIterate); } diff --git a/src/old-api/mixins.ts b/src/old-api/mixins.ts index 7b0debbdd..7f8734ed8 100644 --- a/src/old-api/mixins.ts +++ b/src/old-api/mixins.ts @@ -44,18 +44,20 @@ export function hasDescription(model: Base<{ description?: string }>) { return Boolean(model.json('description')); } -export function description(model: Base<{ description?: string }>): string | undefined { - return model.json('description'); +export function description(model: Base<{ description?: string }>): string | null { + const description = model.json('description'); + return typeof description === 'string' ? description : null; } export function hasExternalDocs(model: Base<{ externalDocs?: v2.ExternalDocumentationObject }>): boolean { return Object.keys(model.json('externalDocs') || {}).length > 0; } -export function externalDocs(model: Base<{ externalDocs?: v2.ExternalDocumentationObject }>): ExternalDocs | undefined { - if (hasExternalDocs(model)) { +export function externalDocs(model: Base<{ externalDocs?: v2.ExternalDocumentationObject }>): ExternalDocs | null { + if (typeof model.json('externalDocs') === 'object') { return new ExternalDocs(model.json('externalDocs') as v2.ExternalDocumentationObject); } + return null; } export const extensionsMixins = { diff --git a/src/old-api/schema.ts b/src/old-api/schema.ts index cfc55fc25..329311591 100644 --- a/src/old-api/schema.ts +++ b/src/old-api/schema.ts @@ -1,5 +1,6 @@ import { SpecificationExtensionsModel, createMapOfType, getMapValue, description, hasDescription, hasExternalDocs, externalDocs } from './mixins'; import { xParserCircular, xParserCircularProps } from '../constants'; +import { hasRef } from '../utils'; import type { Base } from './base'; import type { v2 } from '../spec-types'; @@ -117,15 +118,19 @@ export class Schema extends SpecificationExtensionsModel; @@ -86,22 +86,22 @@ export interface ChannelObject extends SpecificationExtensions { } export interface ChannelBindingsObject extends SpecificationExtensions { - http: Binding; - ws: Binding; - kafka: Binding; - anypointmq: Binding; - amqp: Binding; - amqp1: Binding; - mqtt: Binding; - mqtt5: Binding; - nats: Binding; - jms: Binding; - sns: Binding; - sqs: Binding; - stomp: Binding; - redis: Binding; - mercure: Binding; - ibmmq: Binding; + http?: Binding; + ws?: Binding; + kafka?: Binding; + anypointmq?: Binding; + amqp?: Binding; + amqp1?: Binding; + mqtt?: Binding; + mqtt5?: Binding; + nats?: Binding; + jms?: Binding; + sns?: Binding; + sqs?: Binding; + stomp?: Binding; + redis?: Binding; + mercure?: Binding; + ibmmq?: Binding; } export interface OperationObject extends OperationTraitObject, SpecificationExtensions { @@ -120,22 +120,22 @@ export interface OperationTraitObject extends SpecificationExtensions { } export interface OperationBindingsObject extends SpecificationExtensions { - http: Binding; - ws: Binding; - kafka: Binding; - anypointmq: Binding; - amqp: Binding; - amqp1: Binding; - mqtt: Binding; - mqtt5: Binding; - nats: Binding; - jms: Binding; - sns: Binding; - sqs: Binding; - stomp: Binding; - redis: Binding; - mercure: Binding; - ibmmq: Binding; + http?: Binding; + ws?: Binding; + kafka?: Binding; + anypointmq?: Binding; + amqp?: Binding; + amqp1?: Binding; + mqtt?: Binding; + mqtt5?: Binding; + nats?: Binding; + jms?: Binding; + sns?: Binding; + sqs?: Binding; + stomp?: Binding; + redis?: Binding; + mercure?: Binding; + ibmmq?: Binding; } export type ParametersObject = Record; @@ -175,22 +175,22 @@ export interface MessageExampleObject extends SpecificationExtensions { } export interface MessageBindingsObject extends SpecificationExtensions { - http: Binding; - ws: Binding; - kafka: Binding; - anypointmq: Binding; - amqp: Binding; - amqp1: Binding; - mqtt: Binding; - mqtt5: Binding; - nats: Binding; - jms: Binding; - sns: Binding; - sqs: Binding; - stomp: Binding; - redis: Binding; - mercure: Binding; - ibmmq: Binding; + http?: Binding; + ws?: Binding; + kafka?: Binding; + anypointmq?: Binding; + amqp?: Binding; + amqp1?: Binding; + mqtt?: Binding; + mqtt5?: Binding; + nats?: Binding; + jms?: Binding; + sns?: Binding; + sqs?: Binding; + stomp?: Binding; + redis?: Binding; + mercure?: Binding; + ibmmq?: Binding; } export type TagsObject = Array; diff --git a/src/stringify.ts b/src/stringify.ts index 95d3c253b..b1b9e2783 100644 --- a/src/stringify.ts +++ b/src/stringify.ts @@ -57,7 +57,7 @@ export function copy(data: Record) { return unstringifiedData; } -function refReplacer() { +export function refReplacer() { const modelPaths = new Map(); const paths = new Map(); let init: unknown = null; @@ -90,7 +90,7 @@ function refReplacer() { } const refRoot = '$ref:$'; -function traverseStringifiedData(parent: any, field: string | undefined, root: any, objToPath: Map, pathToObj: Map) { +export function traverseStringifiedData(parent: any, field: string | undefined, root: any, objToPath: Map, pathToObj: Map) { let objOrPath = parent; let path = refRoot; diff --git a/test/custom-operations/anonymous-naming.spec.ts b/test/custom-operations/anonymous-naming.spec.ts index a5a57a76c..cbd92d923 100644 --- a/test/custom-operations/anonymous-naming.spec.ts +++ b/test/custom-operations/anonymous-naming.spec.ts @@ -174,4 +174,68 @@ describe('custom operations - anonymous naming', function() { expect(document?.messages()[0].payload()?.extensions().get(xParserSchemaId)?.value()).toEqual('schema'); }); + + it('should apply anonymous ids across whole document', async function() { + const { document, diagnostics } = await parser.parse({ + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + 'channel/{streetlightId}': { + parameters: { + streetlightId: { + schema: { + type: 'string', + } + } + }, + subscribe: { + message: { + $ref: '#/components/messages/someMessage', + }, + }, + publish: { + message: { + payload: {} + } + } + } + }, + components: { + parameters: { + someParameter: { + schema: { + type: 'string', + } + } + }, + messages: { + someMessage: { + payload: { + $ref: '#/components/schemas/someSchema', + }, + }, + }, + schemas: { + someSchema: {}, + } + } + }); + + expect(document?.json()?.channels?.['channel/{streetlightId}']?.subscribe?.message?.[xParserMessageName]).toEqual('someMessage'); + expect((document?.json()?.channels?.['channel/{streetlightId}']?.subscribe?.message as any)?.payload?.[xParserSchemaId]).toEqual('someSchema'); + + expect(document?.json()?.channels?.['channel/{streetlightId}']?.publish?.message?.[xParserMessageName]).toEqual(''); + expect((document?.json()?.channels?.['channel/{streetlightId}']?.publish?.message as any)?.payload?.[xParserSchemaId]).toEqual(''); + + expect((document?.json()?.channels?.['channel/{streetlightId}']?.parameters?.streetlightId as any)?.schema?.[xParserSchemaId]).toEqual('streetlightId'); + + expect(document?.json()?.components?.messages?.someMessage?.[xParserMessageName]).toEqual('someMessage'); + expect((document?.json()?.channels?.['channel/{streetlightId}']?.subscribe?.message as any)?.payload?.[xParserSchemaId]).toEqual('someSchema'); + expect((document?.json()?.components?.parameters?.someParameter as any)?.schema?.[xParserSchemaId]).toEqual('someParameter'); + + expect(document?.json()?.components?.schemas?.someSchema?.[xParserSchemaId]).toEqual('someSchema'); + }); }); diff --git a/test/mocks/circular-refs.yaml b/test/mocks/circular-refs.yaml new file mode 100644 index 000000000..e990f293f --- /dev/null +++ b/test/mocks/circular-refs.yaml @@ -0,0 +1,30 @@ +asyncapi: 2.0.0 +info: + title: Test API + version: 1.0.0 +channels: + mychannel: + publish: + message: + payload: + type: object + properties: + name: + type: string +components: + messages: + testMessage: + payload: + $ref: "#/components/schemas/testSchema" + schemas: + testSchema: + type: object + properties: + name: + type: string + deep: + type: object + properties: + circular: + $ref: '#/components/schemas/testSchema' + diff --git a/test/mocks/nested-schemas.yaml b/test/mocks/nested-schemas.yaml new file mode 100644 index 000000000..f176aaf3a --- /dev/null +++ b/test/mocks/nested-schemas.yaml @@ -0,0 +1,189 @@ +asyncapi: '2.0.0' +info: + title: AsyncAPi Document with Nested schemas + version: 0.1.0 +channels: + test: + parameters: + testParam1: + schema: + $id: testParamSchema + type: object + test: true + properties: + testParamNestedSchemaProp: + $id: testParamNestedSchemaProp + type: object + test: true + properties: + testParamNestedNestedSchemaProp2: + $id: testParamNestedNestedSchemaProp2 + test: true + type: string + publish: + message: + headers: + $id: testHeaderSchema + type: object + test: true + properties: + testHeaderNestedSchemaProp: + $id: testHeaderNestedSchemaProp + type: object + test: true + properties: + testprop2: + $id: testHeaderNestedNestedSchemaProp1 + test: true + type: string + testHeaderNestedSchemaPropArray: + $id: testHeaderNestedSchemaPropArray + type: array + test: true + items: + - $id: testHeaderNestedSchemaPropArrayProp1 + test: true + type: string + payload: + $id: testPayloadSchema + type: object + test: true + properties: + testPayloadNestedSchemaProp: + $id: testPayloadNestedSchemaProp + type: object + test: true + properties: + testPayloadNestedNestedSchemaProp1: + $id: testPayloadNestedNestedSchemaProp1 + test: true + type: string + testPayloadNestedSchemaPropArray: + $id: testPayloadNestedSchemaPropArray + type: array + test: true + items: + - $id: testPayloadNestedSchemaPropArrayProp1 + test: true + type: string + test2: + subscribe: + message: + payload: + $id: testPayload + test: true + k: 2 +components: + schemas: + testSchema: + $id: testComponentSchemaSchema + type: object + test: true + properties: + testprop: + $id: testComponentSchemaNestedSchemaPropAllOf + test: true + allOf: + - $id: testComponentSchemaNestedSchemaPropAllOfSchema1 + type: object + test: true + properties: + testprop1: + $id: testComponentSchemaNestedSchemaPropAllOfSchema1Prop1 + test: true + type: string + - $id: testComponentSchemaNestedSchemaPropAllOfSchema2 + type: object + test: true + properties: + testprop2: + $id: testComponentSchemaNestedSchemaPropAllOfSchema2Prop1 + test: true + type: string + testArray: + $id: testComponentSchemaNestedSchemaPropArray + type: array + test: true + items: + - $id: testComponentSchemaNestedSchemaPropArrayProp1 + test: true + type: string + - $id: testComponentSchemaNestedSchemaPropArrayProp2 + test: true + type: string + testPatternProperties: + $id: testComponentSchemaNestedSchemaPropPatternProperties + type: object + test: true + patternProperties: + "^S_": + $id: testComponentSchemaNestedSchemaPropPatternPropertiesProp1 + test: true + type: string + "^N_": + $id: testComponentSchemaNestedSchemaPropPatternPropertiesProp2 + test: true + type: number + testConditional: + $id: testComponentSchemaNestedSchemaPropConditional + type: string + test: true + if: + $id: testComponentSchemaNestedSchemaPropConditionalIf + test: true + type: string + then: + $id: testComponentSchemaNestedSchemaPropConditionalThen + test: true + type: number + else: + $id: testComponentSchemaNestedSchemaPropConditionalElse + test: true + type: boolean + testDependencies: + $id: testComponentSchemaNestedSchemaPropDependencies + type: string + test: true + dependencies: + dep1: + $id: testComponentSchemaNestedSchemaPropDependenciesDep1 + test: true + type: string + dep2: + - test1 + - test2 + dep3: + $id: testComponentSchemaNestedSchemaPropDependenciesDep3 + test: true + type: number + testDefinitions: + $id: testComponentSchemaNestedSchemaPropDefinitions + type: string + test: true + definitions: + def1: + $id: testComponentSchemaNestedSchemaPropDefinitionsDef1 + test: true + type: string + def2: + $id: testComponentSchemaNestedSchemaPropDefinitionsDef2 + test: true + type: number + testMisc: + $id: testComponentSchemaNestedSchemaPropMisc + type: + - object + - array + test: true + not: + $id: testComponentSchemaNestedSchemaPropMiscNot + test: true + type: string + propertyNames: + $id: testComponentSchemaNestedSchemaPropMiscPropertyNames + test: true + type: string + contains: + $id: testComponentSchemaNestedSchemaPropMiscContains + test: true + type: string diff --git a/test/mocks/refs-1.yaml b/test/mocks/refs-1.yaml new file mode 100644 index 000000000..e798a0ffe --- /dev/null +++ b/test/mocks/refs-1.yaml @@ -0,0 +1,4 @@ +type: object +properties: + testing: + $ref: './refs-2.yaml' \ No newline at end of file diff --git a/test/mocks/refs-2.yaml b/test/mocks/refs-2.yaml new file mode 100644 index 000000000..2d8bb0e0f --- /dev/null +++ b/test/mocks/refs-2.yaml @@ -0,0 +1 @@ +type: string \ No newline at end of file diff --git a/test/mocks/simple-with-refs.yaml b/test/mocks/simple-with-refs.yaml new file mode 100644 index 000000000..37d5000af --- /dev/null +++ b/test/mocks/simple-with-refs.yaml @@ -0,0 +1,26 @@ +asyncapi: 2.0.0 +info: + title: Test API + version: 1.0.0 +channels: + mychannel: + publish: + message: + payload: + type: object + properties: + name: + type: string +components: + messages: + testMessage: + payload: + $ref: "#/components/schemas/testSchema" + schemas: + testSchema: + type: object + properties: + name: + type: string + test: + $ref: ./refs-1.yaml diff --git a/test/mocks/simple.yaml b/test/mocks/simple.yaml index 050c78afa..67e0fb378 100644 --- a/test/mocks/simple.yaml +++ b/test/mocks/simple.yaml @@ -1,8 +1,7 @@ -asyncapi: '2.4.0' +asyncapi: '2.0.0' info: - title: Account Service - version: 1.0.0 - description: This service is in charge of processing user signups + title: Simple AsyncAPI Document + version: 0.1.0 channels: user/signedup: subscribe: diff --git a/test/old-api/asyncapi.spec.ts b/test/old-api/asyncapi.spec.ts new file mode 100644 index 000000000..6741e5758 --- /dev/null +++ b/test/old-api/asyncapi.spec.ts @@ -0,0 +1,1013 @@ +import fs from 'fs'; +import path from 'path'; + +import { Parser, convertToOldAPI } from '../../src'; +import { xParserSpecParsed, xParserSpecStringified } from '../../src/constants'; +import { AsyncAPIDocument } from '../../src/old-api/asyncapi'; +import { Info } from '../../src/old-api/info'; +import { Server } from '../../src/old-api/server'; +import { Channel } from '../../src/old-api/channel'; +import { Components } from '../../src/old-api/components'; +import { Message } from '../../src/old-api/message'; +import { Schema } from '../../src/old-api/schema'; +import { assertExternalDocumentationMixin, assertExtensionsMixin, assertTagsMixin } from './mixins'; + +/* +const simpleInputJSON = fs.readFileSync(path.resolve(__dirname, '../good/asyncapi.json'), 'utf8'); +const simpleOutputJSON = '{"asyncapi":"2.0.0","info":{"title":"My API","version":"1.0.0"},"channels":{"mychannel":{"publish":{"message":{"payload":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""},"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"name":{"type":"string"}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":""}}}},"components":{"messages":{"testMessage":{"payload":{"type":"object","properties":{"name":{"type":"string","x-parser-schema-id":""},"test":{"type":"object","properties":{"testing":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""}},"x-parser-schema-id":"testSchema"},"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"name":{"type":"string"},"test":{"type":"object","properties":{"testing":{"type":"string"}}}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":"testMessage"}},"schemas":{"testSchema":"$ref:$.components.messages.testMessage.payload"}},"x-parser-spec-parsed":true,"x-parser-spec-stringified":true}'; +const circularYAML = fs.readFileSync(path.resolve(__dirname, '../good/circular-refs.yaml'), 'utf8'); +const circularOutputYAML = '{"asyncapi":"2.0.0","info":{"title":"My Circular API","version":"1.0.0"},"channels":{"recursive":{"subscribe":{"message":{"payload":{"type":"object","properties":{"selfChildren":{"type":"array","items":"$ref:$.channels.recursive.subscribe.message.payload","x-parser-schema-id":""},"selfObjectChildren":{"type":"object","properties":{"test":"$ref:$.channels.recursive.subscribe.message.payload","nonRecursive":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":""},"selfSomething":{"type":"object","properties":{"test":{"type":"object","properties":{"ancestorChildren":{"type":"array","items":"$ref:$.channels.recursive.subscribe.message.payload","x-parser-schema-id":""},"ancestorSomething":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":"RecursiveAncestor"}},"x-parser-schema-id":""}},"x-parser-schema-id":"RecursiveSelf"},"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":"$ref:$.channels.recursive.subscribe.message.payload","schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":""}}},"external/file":{"publish":{"message":{"payload":{"type":"object","properties":{"testExt":{"type":"object","properties":{"children":{"type":"array","items":"$ref:$.channels.external/file.publish.message.payload","x-parser-schema-id":""}},"x-parser-schema-id":""}},"x-parser-schema-id":""},"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":"$ref:$.channels.external/file.publish.message.payload","schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":""}}},"nonRecursive":{"subscribe":{"message":{"payload":{"type":"object","properties":{"child":{"type":"object","properties":{"value":{"type":"string","x-parser-schema-id":""}},"x-parser-schema-id":"NonRecursiveChild"}},"x-parser-schema-id":"NonRecursive"},"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"child":{"type":"object","properties":{"value":{"type":"string"}}}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":""}}},"testChannel":{"subscribe":{"message":{"oneOf":[{"contentType":"application/json","payload":{"type":"object","properties":{"schemaBReference":{"type":"string","enum":["ENUM_A","ENUM_B","ENUM_C","ENUM_D"],"x-parser-schema-id":"NormalSchemaB"},"schemaCReference":{"allOf":["$ref:$.channels.testChannel.subscribe.message.oneOf[0].payload.properties.schemaBReference",{"type":"string","enum":["ENUM_E"],"x-parser-schema-id":""}],"x-parser-schema-id":"NormalSchemaC"},"commonEnumName":{"type":"string","enum":["ENUM_1","ENUM_2"],"x-parser-schema-id":""}},"x-parser-schema-id":"NormalSchemaA"},"x-parser-original-schema-format":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-original-payload":{"type":"object","properties":{"schemaBReference":{"type":"string","enum":["ENUM_A","ENUM_B","ENUM_C","ENUM_D"]},"schemaCReference":{"allOf":["$ref:$.channels.testChannel.subscribe.message.oneOf[0].x-parser-original-payload.properties.schemaBReference",{"type":"string","enum":["ENUM_E"]}]},"commonEnumName":{"type":"string","enum":["ENUM_1","ENUM_2"]}}},"schemaFormat":"application/vnd.aai.asyncapi;version=2.0.0","x-parser-message-parsed":true,"x-parser-message-name":"testMessage"}]}}}},"components":{"messages":{"testMessage":"$ref:$.channels.testChannel.subscribe.message.oneOf[0]"},"schemas":{"NonRecursive":"$ref:$.channels.nonRecursive.subscribe.message.payload","NonRecursiveChild":"$ref:$.channels.nonRecursive.subscribe.message.payload.properties.child","RecursiveSelf":"$ref:$.channels.recursive.subscribe.message.payload","RecursiveAncestor":"$ref:$.channels.recursive.subscribe.message.payload.properties.selfSomething.properties.test","NormalSchemaA":"$ref:$.channels.testChannel.subscribe.message.oneOf[0].payload","NormalSchemaB":"$ref:$.channels.testChannel.subscribe.message.oneOf[0].payload.properties.schemaBReference","NormalSchemaC":"$ref:$.channels.testChannel.subscribe.message.oneOf[0].payload.properties.schemaCReference","NestedAllOfSchema":{"allOf":["$ref:$.channels.testChannel.subscribe.message.oneOf[0].payload",{"type":"object","properties":{"parent":{"allOf":["$ref:$.components.schemas.NestedAllOfSchema","$ref:$.channels.testChannel.subscribe.message.oneOf[0].payload"],"x-parser-schema-id":""},"name":{"type":"string","x-parser-schema-id":""}},"required":["name"],"x-parser-schema-id":""}],"x-parser-schema-id":"NestedAllOfSchema"},"OneOf":{"type":"object","properties":{"kind":{"oneOf":["$ref:$.components.schemas.OneOf",{"type":"string","x-parser-schema-id":""},{"enum":["boolean","string"],"x-parser-schema-id":""}],"x-parser-schema-id":""}},"x-parser-schema-id":"OneOf"},"AnyOf":{"anyOf":[{"type":"integer","x-parser-schema-id":""},{"type":"number","x-parser-schema-id":""},{"type":"string","x-parser-schema-id":""},{"type":"boolean","x-parser-schema-id":""},{"type":"object","x-parser-schema-id":""},{"type":"array","items":"$ref:$.components.schemas.AnyOf","x-parser-schema-id":""}],"x-parser-schema-id":"AnyOf"},"RecursiveComplex":{"type":["object","array"],"patternProperties":{"^foo":"$ref:$.channels.recursive.subscribe.message.payload","^bar":{"type":"string","x-parser-schema-id":""}},"contains":"$ref:$.components.schemas.RecursiveComplex","items":[{"type":"string","x-parser-schema-id":""},"$ref:$.components.schemas.RecursiveComplex"],"if":"$ref:$.channels.recursive.subscribe.message.payload.properties.selfSomething.properties.test","then":"$ref:$.components.schemas.RecursiveComplex","x-parser-schema-id":"RecursiveComplex"}}},"x-parser-circular":true,"x-parser-spec-parsed":true,"x-parser-spec-stringified":true}'; +*/ + +describe('AsyncAPIDocument', function() { + const parser = new Parser(); + + describe('info()', function() { + it('should return an info object', function() { + const doc: any = { info: { title: 'Test', version: '1.2.3', license: { name: 'Apache 2.0', url: 'https://www.apache.org/licenses/LICENSE-2.0' } } }; + const d = new AsyncAPIDocument(doc); + expect(d.info()).toBeInstanceOf(Info); + expect(d.info().json()).toEqual(doc.info); + }); + }); + + describe('id()', function() { + it('should return the id string', function() { + const doc: any = { id: 'urn:test' }; + const d = new AsyncAPIDocument(doc); + expect(d.id()).toEqual(doc.id); + }); + }); + + describe('hasServers()', function() { + it('should return a boolean indicating if the AsyncAPI document has servers', function() { + const doc: any = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; + const docNoServers: any = { test: 'testing' }; + const d = new AsyncAPIDocument(doc); + const d2 = new AsyncAPIDocument(docNoServers); + expect(d.hasServers()).toEqual(true); + expect(d2.hasServers()).toEqual(false); + }); + }); + + describe('servers()', function() { + it('should return a map of server objects', function() { + const doc: any = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; + const d = new AsyncAPIDocument(doc); + expect(typeof d.servers()).toEqual('object'); + expect(d.servers().test1).toBeInstanceOf(Server); + expect(d.servers().test1.json()).toEqual(doc.servers.test1); + expect(d.servers().test2).toBeInstanceOf(Server); + expect(d.servers().test2.json()).toEqual(doc.servers.test2); + }); + + it('should return an empty object if the AsyncAPI document has no defined servers', function() { + const doc: any = {}; + const d = new AsyncAPIDocument(doc); + expect(typeof d.servers()).toEqual('object'); + expect(d.servers()).toEqual({}); + }); + }); + + describe('serverNames()', function() { + it('should return an array of strings', function() { + const doc: any = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; + const d = new AsyncAPIDocument(doc); + expect(Array.isArray(d.serverNames())).toEqual(true); + expect(d.serverNames()).toEqual(['test1', 'test2']); + }); + + it('should return an empty array if the AsyncAPI document has no defined servers', function() { + const doc: any = {}; + const d = new AsyncAPIDocument(doc); + expect(Array.isArray(d.serverNames())).toEqual(true); + expect(d.serverNames()).toEqual([]); + }); + }); + + describe('server()', function() { + it('should return a specific server object', function() { + const doc: any = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; + const d = new AsyncAPIDocument(doc); + expect(d.server('test1')).toBeInstanceOf(Server); + expect(d.server('test1')?.json()).toEqual(doc.servers.test1); + }); + + it('should return null if a server name is not provided', function() { + const doc: any = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; + const d = new AsyncAPIDocument(doc); + expect(d.server(undefined as any)).toEqual(null); + }); + + it('should return null if a server name is not found', function() { + const doc: any = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; + const d = new AsyncAPIDocument(doc); + expect(d.server('not found')).toEqual(null); + }); + }); + + describe('hasDefaultContentType()', function() { + it('should return true if field exists', function() { + const doc: any = { defaultContentType: 'application/json' }; + const d = new AsyncAPIDocument(doc); + expect(d.hasDefaultContentType()).toEqual(true); + }); + + it('should return false if field does not exist', function() { + const doc: any = {}; + const d = new AsyncAPIDocument(doc); + expect(d.hasDefaultContentType()).toEqual(false); + }); + }); + + describe('defaultContentType()', function() { + it('should return string if field exists', function() { + const doc: any = { defaultContentType: 'application/json' }; + const d = new AsyncAPIDocument(doc); + expect(d.defaultContentType()).toEqual('application/json'); + }); + + it('should return null if field does not exist', function() { + const doc: any = {}; + const d = new AsyncAPIDocument(doc); + expect(d.defaultContentType()).toEqual(null); + }); + }); + + describe('hasChannels()', function() { + it('should return a boolean indicating if the AsyncAPI document has channels', function() { + const doc: any = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; + const docNoChannels: any = { test: 'testing' }; + const d = new AsyncAPIDocument(doc); + const d2 = new AsyncAPIDocument(docNoChannels); + expect(d.hasChannels()).toEqual(true); + expect(d2.hasChannels()).toEqual(false); + }); + }); + + describe('channels()', function() { + it('should return a map of channel objects', function() { + const doc: any = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; + const d = new AsyncAPIDocument(doc); + expect(typeof d.channels()).toEqual('object'); + expect(d.channels().test1).toBeInstanceOf(Channel); + expect(d.channels().test1.json()).toEqual(doc.channels.test1); + expect(d.channels().test2).toBeInstanceOf(Channel); + expect(d.channels().test2.json()).toEqual(doc.channels.test2); + }); + + it('should return an empty object if the AsyncAPI document has no defined channels', function() { + const doc: any = {}; + const d = new AsyncAPIDocument(doc); + expect(typeof d.channels()).toEqual('object'); + expect(d.servers()).toEqual({}); + }); + }); + + describe('channelNames()', function() { + it('should return an array of strings', function() { + const doc: any = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; + const d = new AsyncAPIDocument(doc); + expect(Array.isArray(d.channelNames())).toEqual(true); + expect(d.channelNames()).toEqual(['test1', 'test2']); + }); + + it('should return an empty array if the AsyncAPI document has no defined channels', function() { + const doc: any = {}; + const d = new AsyncAPIDocument(doc); + expect(Array.isArray(d.channelNames())).toEqual(true); + expect(d.channelNames()).toEqual([]); + }); + }); + + describe('channel()', function() { + it('should return a specific channel object', function() { + const doc: any = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; + const d = new AsyncAPIDocument(doc); + expect(d.channel('test1')).toBeInstanceOf(Channel); + expect(d.channel('test1')?.json()).toEqual(doc.channels.test1); + }); + + it('should return null if a channel name is not provided', function() { + const doc: any = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; + const d = new AsyncAPIDocument(doc); + expect(d.channel(undefined as any)).toEqual(null); + }); + + it('should return null if a channel name is not found', function() { + const doc: any = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; + const d = new AsyncAPIDocument(doc); + expect(d.channel('not found')).toEqual(null); + }); + }); + + describe('hasComponents()', function() { + it('should return a boolean indicating if the AsyncAPI document has components', function() { + const doc: any = { components: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; + const docNoComponents: any = { test: 'testing' }; + const d = new AsyncAPIDocument(doc); + const d2 = new AsyncAPIDocument(docNoComponents); + expect(d.hasComponents()).toEqual(true); + expect(d2.hasComponents()).toEqual(false); + }); + }); + + describe('components()', function() { + it('should return the components object', function() { + const doc: any = { components: { test: 'testing' } }; + const d = new AsyncAPIDocument(doc); + expect(d.components()).toBeInstanceOf(Components); + expect(d.components()?.json()).toEqual(doc.components); + }); + }); + + describe('hasMessages()', function() { + it('should return true if there is a message in components but not in channels', function() { + const doc: any = { components: { messages: { test: { test: true, k: 3 } } } }; + const d = new AsyncAPIDocument(doc); + expect(d.hasMessages()).toEqual(true); + }); + it('should return true if there is a message in channels operations but not in components', function() { + const doc: any = { channels: { test: { publish: { message: { name: 'test', test: false, k: 1 } } } } }; + const d = new AsyncAPIDocument(doc); + expect(d.hasMessages()).toEqual(true); + }); + it('should return false if there are no messages neither in components nor in channels operations', function() { + const doc: any = { channels: { test: { publish: { } } }, components: { } }; + const d = new AsyncAPIDocument(doc); + expect(d.hasMessages()).toEqual(false); + }); + }); + + describe('allMessages()', function() { + it('should return an array with all the messages used in the document and overwrite the message from channel', async function() { + const doc: any = { asyncapi: '2.0.0', info: { title: 'AsyncAPI Test', version: '0.1.0' }, channels: { test: { publish: { message: { name: 'test' } } } }, components: { messages: { test: {} } } }; + const { document } = await parser.parse(doc); + const d = convertToOldAPI(document!); + const allMessages = d.allMessages(); + expect(allMessages.size).toEqual(1); + expect(allMessages.get('test')).toBeInstanceOf(Message); + }); + + it('should return an array with all the messages used in the document', async function() { + const doc: any = { asyncapi: '2.0.0', info: { title: 'AsyncAPI Test', version: '0.1.0' }, channels: { test: { publish: { message: {} } }, test2: { subscribe: { message: { name: 'test' } } } }, components: { messages: { test: {} } } }; + const { document } = await parser.parse(doc); + const d = convertToOldAPI(document!); + expect(d.allMessages().size).toEqual(2); + d.allMessages().forEach(t => { + expect(t).toBeInstanceOf(Message); + }); + }); + }); + + describe('allSchemas()', function() { + it('should return additional items schemas when no items specified', async function() { + const doc: any = { + asyncapi: '2.0.0', + info: { + title: 'AsyncAPI Test', + version: '0.1.0', + }, + channels: { + some_channel: { + subscribe: { + message: { + name: 'some_map', + payload: { + type: 'array', + $id: 'payloadSchema', + test: true, + additionalItems: { + type: 'string', + $id: 'additionalItemSchema', + test: true + } + } + } + } + } + } + }; + const { document } = await parser.parse(doc); + const d = convertToOldAPI(document!); + const schemas = d.allSchemas(); + expect(schemas.size).toEqual(2); + //Ensure the actual keys are as expected + const schemaKeys = Array.from(schemas.keys()); + expect(schemaKeys).toEqual([ + 'payloadSchema', + 'additionalItemSchema' + ]); + for (const t of schemas.values()) { + expect(t).toBeInstanceOf(Schema); + expect((t.json() as any).test).toEqual(true); + } + }); + + it('should return additional property schemas when no properties are specified', async function() { + const doc: any = { + asyncapi: '2.0.0', + info: { + title: 'AsyncAPI Test', + version: '0.1.0', + }, + channels: { + some_channel: { + subscribe: { + message: { + name: 'some_map', + payload: { + type: 'object', + $id: 'payloadSchema', + test: true, + additionalProperties: { + type: 'string', + $id: 'additionalPropSchema', + test: true + } + } + } + } + } + } + }; + const { document } = await parser.parse(doc); + const d = convertToOldAPI(document!); + const schemas = d.allSchemas(); + expect(schemas.size).toEqual(2); + //Ensure the actual keys are as expected + const schemaKeys = Array.from(schemas.keys()); + expect(schemaKeys).toEqual([ + 'payloadSchema', + 'additionalPropSchema' + ]); + for (const t of schemas.values()) { + expect(t).toBeInstanceOf(Schema); + expect((t.json() as any).test).toEqual(true); + } + }); + + it('should return a map with all the schemas used in the document', async function() { + const doc: any = { asyncapi: '2.0.0', info: { title: 'AsyncAPI Test', version: '0.1.0' }, channels: { test: { parameters: { testParam1: { schema: { $id: 'testParamSchema', test: true, k: 0 } } }, publish: { message: { headers: { type: 'object', test: true, k: 1 }, payload: { test: true, k: 2 } } } }, test2: { subscribe: { message: { payload: { $id: 'testPayload', test: true, k: 2 } } } } }, components: { schemas: { testSchema: { test: true, k: 3 } } } }; + const { document } = await parser.parse(doc); + const d = convertToOldAPI(document!); + const schemas = d.allSchemas(); + expect(schemas.size).toEqual(5); + + //Ensure the actual keys are as expected + const schemaKeys = Array.from(schemas.keys()); + expect(schemaKeys).toEqual([ + 'testParamSchema', + '', + '', + 'testPayload', + 'testSchema' + ]); + for (const t of schemas.values()) { + expect(t).toBeInstanceOf(Schema); + expect((t.json() as any).test).toEqual(true); + } + }); + + it('should return a map with all the nested schemas', async function() { + const nestedSchemas = fs.readFileSync(path.resolve(__dirname, '../mocks/nested-schemas.yaml'), 'utf8'); + const { document } = await parser.parse(nestedSchemas); + const d = convertToOldAPI(document!); + const schemas = d.allSchemas(); + + // const doc = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../mocks/nested-schemas.json'), 'utf8')); + // const d = new AsyncAPIDocument(doc); + + //Ensure the actual keys are as expected + const schemaKeys = Array.from(schemas.keys()); + expect(schemaKeys).toEqual([ + 'testParamSchema', + 'testParamNestedSchemaProp', + 'testParamNestedNestedSchemaProp2', + 'testHeaderSchema', + 'testHeaderNestedSchemaProp', + 'testHeaderNestedNestedSchemaProp1', + 'testHeaderNestedSchemaPropArray', + 'testHeaderNestedSchemaPropArrayProp1', + 'testPayloadSchema', + 'testPayloadNestedSchemaProp', + 'testPayloadNestedNestedSchemaProp1', + 'testPayloadNestedSchemaPropArray', + 'testPayloadNestedSchemaPropArrayProp1', + 'testPayload', + 'testComponentSchemaSchema', + 'testComponentSchemaNestedSchemaPropAllOf', + 'testComponentSchemaNestedSchemaPropAllOfSchema1', + 'testComponentSchemaNestedSchemaPropAllOfSchema1Prop1', + 'testComponentSchemaNestedSchemaPropAllOfSchema2', + 'testComponentSchemaNestedSchemaPropAllOfSchema2Prop1', + 'testComponentSchemaNestedSchemaPropArray', + 'testComponentSchemaNestedSchemaPropArrayProp1', + 'testComponentSchemaNestedSchemaPropArrayProp2', + 'testComponentSchemaNestedSchemaPropPatternProperties', + 'testComponentSchemaNestedSchemaPropPatternPropertiesProp1', + 'testComponentSchemaNestedSchemaPropPatternPropertiesProp2', + 'testComponentSchemaNestedSchemaPropConditional', + 'testComponentSchemaNestedSchemaPropConditionalIf', + 'testComponentSchemaNestedSchemaPropConditionalThen', + 'testComponentSchemaNestedSchemaPropConditionalElse', + 'testComponentSchemaNestedSchemaPropDependencies', + 'testComponentSchemaNestedSchemaPropDependenciesDep1', + 'testComponentSchemaNestedSchemaPropDependenciesDep3', + 'testComponentSchemaNestedSchemaPropDefinitions', + 'testComponentSchemaNestedSchemaPropDefinitionsDef1', + 'testComponentSchemaNestedSchemaPropDefinitionsDef2', + 'testComponentSchemaNestedSchemaPropMisc', + 'testComponentSchemaNestedSchemaPropMiscPropertyNames', + 'testComponentSchemaNestedSchemaPropMiscContains', + 'testComponentSchemaNestedSchemaPropMiscNot', + ]); + for (const t of schemas.values()) { + expect(t).toBeInstanceOf(Schema); + expect((t.json() as any).test).toEqual(true); + } + }); + }); + + /* eslint-disable sonarjs/cognitive-complexity */ + describe('traverseSchemas()', function() { // NOSONAR + let d: AsyncAPIDocument; + beforeEach(async () => { + const nestedSchemas = fs.readFileSync(path.resolve(__dirname, '../mocks/nested-schemas.yaml'), 'utf8'); + const { document } = await parser.parse(nestedSchemas); + d = convertToOldAPI(document!); + }); + + const parameterSchemas = [ + 'testParamSchema', + 'testParamNestedSchemaProp', + 'testParamNestedNestedSchemaProp2' + ]; + const headerObjectSchemas = [ + 'testHeaderSchema', + 'testHeaderNestedSchemaProp', + 'testHeaderNestedNestedSchemaProp1', + ]; + const headerArraySchemas = [ + 'testHeaderNestedSchemaPropArray', + 'testHeaderNestedSchemaPropArrayProp1' + ]; + const payloadObjectSchemas = [ + 'testPayloadSchema', + 'testPayloadNestedSchemaProp', + 'testPayloadNestedNestedSchemaProp1' + ]; + const payloadArraySchemas = [ + 'testPayloadNestedSchemaPropArray', + 'testPayloadNestedSchemaPropArrayProp1' + ]; + const payloadSchemas = [ + 'testPayload' + ]; + const componentObjectAllOfSchema = [ + 'testComponentSchemaNestedSchemaPropAllOf', + ]; + const componentObjectAllOfSchemas = [ + 'testComponentSchemaNestedSchemaPropAllOf', + 'testComponentSchemaNestedSchemaPropAllOfSchema1', + 'testComponentSchemaNestedSchemaPropAllOfSchema1Prop1', + 'testComponentSchemaNestedSchemaPropAllOfSchema2', + 'testComponentSchemaNestedSchemaPropAllOfSchema2Prop1', + ]; + const componentObjectSchemas = [ + 'testComponentSchemaSchema' + ]; + const componentArraySchemas = [ + 'testComponentSchemaNestedSchemaPropArray', + 'testComponentSchemaNestedSchemaPropArrayProp1', + 'testComponentSchemaNestedSchemaPropArrayProp2' + ]; + const componentPatternPropertiesSchema = [ + 'testComponentSchemaNestedSchemaPropPatternProperties', + ]; + const componentPatternPropertiesSchemas = [ + ...componentPatternPropertiesSchema, + 'testComponentSchemaNestedSchemaPropPatternPropertiesProp1', + 'testComponentSchemaNestedSchemaPropPatternPropertiesProp2', + ]; + const componentConditionalSchema = [ + 'testComponentSchemaNestedSchemaPropConditional', + ]; + const componentConditionalSchemas = [ + ...componentConditionalSchema, + 'testComponentSchemaNestedSchemaPropConditionalIf', + 'testComponentSchemaNestedSchemaPropConditionalThen', + 'testComponentSchemaNestedSchemaPropConditionalElse', + ]; + const componentDependenciesSchema = [ + 'testComponentSchemaNestedSchemaPropDependencies', + ]; + const componentDependenciesSchemas = [ + ...componentDependenciesSchema, + 'testComponentSchemaNestedSchemaPropDependenciesDep1', + 'testComponentSchemaNestedSchemaPropDependenciesDep3', + ]; + const componentDefinitionsSchema = [ + 'testComponentSchemaNestedSchemaPropDefinitions', + ]; + const componentDefinitionsSchemas = [ + ...componentDefinitionsSchema, + 'testComponentSchemaNestedSchemaPropDefinitionsDef1', + 'testComponentSchemaNestedSchemaPropDefinitionsDef2', + ]; + const componentMiscSchema = [ + 'testComponentSchemaNestedSchemaPropMisc', + ]; + const componentMiscSchemas = [ + ...componentMiscSchema, + 'testComponentSchemaNestedSchemaPropMiscPropertyNames', + 'testComponentSchemaNestedSchemaPropMiscContains', + 'testComponentSchemaNestedSchemaPropMiscNot', + ]; + + it('should not include parameter schemas if defined', function() { + const schemas = new Map(); + const cb = (schema) => { + schemas.set(schema.uid(), schema); + }; + d.traverseSchemas(cb, [ + 'objects', + 'arrays', + 'components', + 'oneOfs', + 'allOfs', + 'anyOfs', + 'payloads', + 'headers', + 'patternProperties', + 'ifs', + 'thenes', + 'elses', + 'dependencies', + 'definitions', + ]); + + //Ensure the actual keys are as expected + const schemaKeys = Array.from(schemas.keys()); + expect(schemaKeys).toEqual([ + ...headerObjectSchemas, + ...headerArraySchemas, + ...payloadObjectSchemas, + ...payloadArraySchemas, + ...payloadSchemas, + ...componentObjectSchemas, + ...componentObjectAllOfSchemas, + ...componentArraySchemas, + ...componentPatternPropertiesSchemas, + ...componentConditionalSchemas, + ...componentDependenciesSchemas, + ...componentDefinitionsSchemas, + ...componentMiscSchema, + ]); + for (const t of schemas.values()) { + expect(t).toBeInstanceOf(Schema); + expect(t.json().test).toEqual(true); + } + }); + + it('should not include payload schemas if defined', function() { + const schemas = new Map(); + const cb = (schema) => { + schemas.set(schema.uid(), schema); + }; + d.traverseSchemas(cb, [ + 'objects', + 'arrays', + 'components', + 'oneOfs', + 'allOfs', + 'anyOfs', + 'parameters', + 'headers', + 'patternProperties', + 'ifs', + 'thenes', + 'elses', + 'dependencies', + 'definitions', + ]); + + //Ensure the actual keys are as expected + const schemaKeys = Array.from(schemas.keys()); + expect(schemaKeys).toEqual([ + ...parameterSchemas, + ...headerObjectSchemas, + ...headerArraySchemas, + ...componentObjectSchemas, + ...componentObjectAllOfSchemas, + ...componentArraySchemas, + ...componentPatternPropertiesSchemas, + ...componentConditionalSchemas, + ...componentDependenciesSchemas, + ...componentDefinitionsSchemas, + ...componentMiscSchema, + ]); + for (const t of schemas.values()) { + expect(t).toBeInstanceOf(Schema); + expect(t.json().test).toEqual(true); + } + }); + + it('should not include header schemas if defined', function() { + const schemas = new Map(); + const cb = (schema) => { + schemas.set(schema.uid(), schema); + }; + d.traverseSchemas(cb, [ + 'objects', + 'arrays', + 'components', + 'oneOfs', + 'allOfs', + 'anyOfs', + 'parameters', + 'payloads', + 'patternProperties', + 'ifs', + 'thenes', + 'elses', + 'dependencies', + 'definitions', + ]); + + //Ensure the actual keys are as expected + const schemaKeys = Array.from(schemas.keys()); + expect(schemaKeys).toEqual([ + ...parameterSchemas, + ...payloadObjectSchemas, + ...payloadArraySchemas, + ...payloadSchemas, + ...componentObjectSchemas, + ...componentObjectAllOfSchemas, + ...componentArraySchemas, + ...componentPatternPropertiesSchemas, + ...componentConditionalSchemas, + ...componentDependenciesSchemas, + ...componentDefinitionsSchemas, + ...componentMiscSchema, + ]); + for (const t of schemas.values()) { + expect(t).toBeInstanceOf(Schema); + expect(t.json().test).toEqual(true); + } + }); + + it('should not include arrays if defined', function() { + const schemas = new Map(); + const cb = (schema) => { + schemas.set(schema.uid(), schema); + }; + d.traverseSchemas(cb, [ + 'objects', + 'components', + 'oneOfs', + 'allOfs', + 'anyOfs', + 'parameters', + 'payloads', + 'headers', + 'patternProperties', + 'ifs', + 'thenes', + 'elses', + 'dependencies', + 'definitions', + ]); + + //Ensure the actual keys are as expected + const schemaKeys = Array.from(schemas.keys()); + expect(schemaKeys).toEqual([ + ...parameterSchemas, + ...headerObjectSchemas, + ...payloadObjectSchemas, + ...payloadSchemas, + ...componentObjectSchemas, + ...componentObjectAllOfSchemas, + ...componentPatternPropertiesSchemas, + ...componentConditionalSchemas, + ...componentDependenciesSchemas, + ...componentDefinitionsSchemas, + ]); + for (const t of schemas.values()) { + expect(t).toBeInstanceOf(Schema); + expect(t.json().test).toEqual(true); + } + }); + + it('should not include components if defined', function() { + const schemas = new Map(); + const cb = (schema) => { + schemas.set(schema.uid(), schema); + }; + d.traverseSchemas(cb, [ + 'objects', + 'arrays', + 'oneOfs', + 'allOfs', + 'anyOfs', + 'parameters', + 'payloads', + 'headers', + ]); + + //Ensure the actual keys are as expected + const schemaKeys = Array.from(schemas.keys()); + expect(schemaKeys).toEqual([ + ...parameterSchemas, + ...headerObjectSchemas, + ...headerArraySchemas, + ...payloadObjectSchemas, + ...payloadArraySchemas, + ...payloadSchemas, + ]); + for (const t of schemas.values()) { + expect(t).toBeInstanceOf(Schema); + expect(t.json().test).toEqual(true); + } + }); + + it('should not include combined schemas if defined', function() { + const schemas = new Map(); + const cb = (schema) => { + schemas.set(schema.uid(), schema); + }; + d.traverseSchemas(cb, [ + 'objects', + 'arrays', + 'parameters', + 'payloads', + 'headers', + 'components', + 'patternProperties', + 'ifs', + 'thenes', + 'elses', + 'dependencies', + 'definitions', + ]); + + //Ensure the actual keys are as expected + const schemaKeys = Array.from(schemas.keys()); + expect(schemaKeys).toEqual([ + ...parameterSchemas, + ...headerObjectSchemas, + ...headerArraySchemas, + ...payloadObjectSchemas, + ...payloadArraySchemas, + ...payloadSchemas, + ...componentObjectSchemas, + ...componentObjectAllOfSchema, + ...componentArraySchemas, + ...componentPatternPropertiesSchemas, + ...componentConditionalSchemas, + ...componentDependenciesSchemas, + ...componentDefinitionsSchemas, + ...componentMiscSchema, + ]); + for (const t of schemas.values()) { + expect(t).toBeInstanceOf(Schema); + expect(t.json().test).toEqual(true); + } + }); + + it('should not include conditional schemas if defined', function() { + const schemas = new Map(); + const cb = (schema) => { + schemas.set(schema.uid(), schema); + }; + d.traverseSchemas(cb, [ + 'objects', + 'arrays', + 'parameters', + 'payloads', + 'headers', + 'components', + 'patternProperties', + 'dependencies', + 'definitions', + ]); + + //Ensure the actual keys are as expected + const schemaKeys = Array.from(schemas.keys()); + expect(schemaKeys).toEqual([ + ...parameterSchemas, + ...headerObjectSchemas, + ...headerArraySchemas, + ...payloadObjectSchemas, + ...payloadArraySchemas, + ...payloadSchemas, + ...componentObjectSchemas, + ...componentObjectAllOfSchema, + ...componentArraySchemas, + ...componentPatternPropertiesSchemas, + ...componentConditionalSchema, + ...componentDependenciesSchemas, + ...componentDefinitionsSchemas, + ...componentMiscSchema, + ]); + for (const t of schemas.values()) { + expect(t).toBeInstanceOf(Schema); + expect(t.json().test).toEqual(true); + } + }); + + it('should not include dependencies schemas if defined', function() { + const schemas = new Map(); + const cb = (schema) => { + schemas.set(schema.uid(), schema); + }; + d.traverseSchemas(cb, [ + 'objects', + 'arrays', + 'parameters', + 'payloads', + 'headers', + 'components', + 'patternProperties', + 'ifs', + 'thenes', + 'elses', + 'definitions', + ]); + + //Ensure the actual keys are as expected + const schemaKeys = Array.from(schemas.keys()); + expect(schemaKeys).toEqual([ + ...parameterSchemas, + ...headerObjectSchemas, + ...headerArraySchemas, + ...payloadObjectSchemas, + ...payloadArraySchemas, + ...payloadSchemas, + ...componentObjectSchemas, + ...componentObjectAllOfSchema, + ...componentArraySchemas, + ...componentPatternPropertiesSchemas, + ...componentConditionalSchemas, + ...componentDependenciesSchema, + ...componentDefinitionsSchemas, + ...componentMiscSchema, + ]); + for (const t of schemas.values()) { + expect(t).toBeInstanceOf(Schema); + expect(t.json().test).toEqual(true); + } + }); + + it('should not include definitions schemas if defined', function() { + const schemas = new Map(); + const cb = (schema) => { + schemas.set(schema.uid(), schema); + }; + d.traverseSchemas(cb, [ + 'objects', + 'arrays', + 'parameters', + 'payloads', + 'headers', + 'components', + 'patternProperties', + 'ifs', + 'thenes', + 'elses', + 'dependencies', + ]); + + //Ensure the actual keys are as expected + const schemaKeys = Array.from(schemas.keys()); + expect(schemaKeys).toEqual([ + ...parameterSchemas, + ...headerObjectSchemas, + ...headerArraySchemas, + ...payloadObjectSchemas, + ...payloadArraySchemas, + ...payloadSchemas, + ...componentObjectSchemas, + ...componentObjectAllOfSchema, + ...componentArraySchemas, + ...componentPatternPropertiesSchemas, + ...componentConditionalSchemas, + ...componentDependenciesSchemas, + ...componentDefinitionsSchema, + ...componentMiscSchema, + ]); + for (const t of schemas.values()) { + expect(t).toBeInstanceOf(Schema); + expect(t.json().test).toEqual(true); + } + }); + it('should include all schemas', function() { + const schemas = new Map(); + const cb = (schema) => { + schemas.set(schema.uid(), schema); + }; + d.traverseSchemas(cb); + + //Ensure the actual keys are as expected + const schemaKeys = Array.from(schemas.keys()); + expect(schemaKeys).toEqual([ + ...parameterSchemas, + ...headerObjectSchemas, + ...headerArraySchemas, + ...payloadObjectSchemas, + ...payloadArraySchemas, + ...payloadSchemas, + ...componentObjectSchemas, + ...componentObjectAllOfSchemas, + ...componentArraySchemas, + ...componentPatternPropertiesSchemas, + ...componentConditionalSchemas, + ...componentDependenciesSchemas, + ...componentDefinitionsSchemas, + ...componentMiscSchemas, + ]); + for (const t of schemas.values()) { + expect(t).toBeInstanceOf(Schema); + expect(t.json().test).toEqual(true); + } + }); + }); + /* eslint-enable sonarjs/cognitive-complexity */ + + describe('stringify()', function() { + it('should stringify simple document', async function() { + const source = path.resolve(__dirname, '../mocks/simple-with-refs.yaml'); + const nestedSchemas = fs.readFileSync(source, 'utf8'); + const { document } = await parser.parse(nestedSchemas, { source }); + const doc = convertToOldAPI(document!); + const output = {asyncapi: '2.0.0',info: {title: 'Test API',version: '1.0.0'},channels: {mychannel: {publish: {message: {payload: {type: 'object',properties: {name: {type: 'string','x-parser-schema-id': ''}},'x-parser-schema-id': ''},'x-parser-message-name': '','x-parser-original-schema-format': 'application/vnd.aai.asyncapi;version=2.0.0',schemaFormat: 'application/vnd.aai.asyncapi;version=2.0.0','x-parser-original-payload': '$ref:$.channels.mychannel.publish.message.payload','x-parser-message-parsed': true}}}},components: {messages: {testMessage: {payload: {type: 'object',properties: {name: {type: 'string','x-parser-schema-id': ''},test: {type: 'object',properties: {testing: {type: 'string','x-parser-schema-id': ''}},'x-parser-schema-id': ''}},'x-parser-schema-id': 'testSchema'},'x-parser-message-name': 'testMessage','x-parser-original-schema-format': 'application/vnd.aai.asyncapi;version=2.0.0',schemaFormat: 'application/vnd.aai.asyncapi;version=2.0.0','x-parser-original-payload': '$ref:$.components.messages.testMessage.payload','x-parser-message-parsed': true}},schemas: {testSchema: '$ref:$.components.messages.testMessage.payload'}},'x-parser-spec-parsed': true,'x-parser-spec-stringified': true}; + + const stringified = AsyncAPIDocument.stringify(doc); + expect(stringified).toEqual(JSON.stringify(output)); + }); + + it('should stringify document with circular references', async function() { + const source = path.resolve(__dirname, '../mocks/circular-refs.yaml'); + const nestedSchemas = fs.readFileSync(source, 'utf8'); + const { document } = await parser.parse(nestedSchemas, { source }); + const doc = convertToOldAPI(document!); + const output = {asyncapi: '2.0.0',info: {title: 'Test API',version: '1.0.0'},channels: {mychannel: {publish: {message: {payload: {type: 'object',properties: {name: {type: 'string','x-parser-schema-id': ''}},'x-parser-schema-id': ''},'x-parser-message-name': '','x-parser-original-schema-format': 'application/vnd.aai.asyncapi;version=2.0.0',schemaFormat: 'application/vnd.aai.asyncapi;version=2.0.0','x-parser-original-payload': '$ref:$.channels.mychannel.publish.message.payload','x-parser-message-parsed': true}}}},components: {messages: {testMessage: {payload: {type: 'object',properties: {name: {type: 'string','x-parser-schema-id': ''},deep: {type: 'object',properties: {circular: {$ref: '#/components/schemas/testSchema','x-parser-schema-id': ''}},'x-parser-schema-id': ''}},'x-parser-schema-id': 'testSchema'},'x-parser-message-name': 'testMessage','x-parser-original-schema-format': 'application/vnd.aai.asyncapi;version=2.0.0',schemaFormat: 'application/vnd.aai.asyncapi;version=2.0.0','x-parser-original-payload': '$ref:$.components.messages.testMessage.payload','x-parser-message-parsed': true}},schemas: {testSchema: '$ref:$.components.messages.testMessage.payload'}},'x-parser-spec-parsed': true,'x-parser-circular': true,'x-parser-spec-stringified': true}; + + const stringified = AsyncAPIDocument.stringify(doc); + expect(stringified).toEqual(JSON.stringify(output)); + }); + + it('should copy object', async function() { + const source = path.resolve(__dirname, '../mocks/simple-with-refs.yaml'); + const nestedSchemas = fs.readFileSync(source, 'utf8'); + const { document } = await parser.parse(nestedSchemas, { source }); + const doc = convertToOldAPI(document!); + const stringified = AsyncAPIDocument.stringify(doc) as string; + expect(doc.json()[xParserSpecStringified]).toEqual(undefined); + expect(JSON.parse(stringified)[xParserSpecStringified]).toEqual(true); + }); + }); + + describe('parse()', function() { + it('should parse stringified simple document', async function() { + const source = path.resolve(__dirname, '../mocks/simple-with-refs.yaml'); + const nestedSchemas = fs.readFileSync(source, 'utf8'); + const { document } = await parser.parse(nestedSchemas, { source }); + const oldDoc = convertToOldAPI(document!); + const output = {asyncapi: '2.0.0',info: {title: 'Test API',version: '1.0.0'},channels: {mychannel: {publish: {message: {payload: {type: 'object',properties: {name: {type: 'string','x-parser-schema-id': ''}},'x-parser-schema-id': ''},'x-parser-message-name': '','x-parser-original-schema-format': 'application/vnd.aai.asyncapi;version=2.0.0',schemaFormat: 'application/vnd.aai.asyncapi;version=2.0.0','x-parser-original-payload': '$ref:$.channels.mychannel.publish.message.payload','x-parser-message-parsed': true}}}},components: {messages: {testMessage: {payload: {type: 'object',properties: {name: {type: 'string','x-parser-schema-id': ''},test: {type: 'object',properties: {testing: {type: 'string','x-parser-schema-id': ''}},'x-parser-schema-id': ''}},'x-parser-schema-id': 'testSchema'},'x-parser-message-name': 'testMessage','x-parser-original-schema-format': 'application/vnd.aai.asyncapi;version=2.0.0',schemaFormat: 'application/vnd.aai.asyncapi;version=2.0.0','x-parser-original-payload': '$ref:$.components.messages.testMessage.payload','x-parser-message-parsed': true}},schemas: {testSchema: '$ref:$.components.messages.testMessage.payload'}},'x-parser-spec-parsed': true,'x-parser-spec-stringified': true}; + const doc = AsyncAPIDocument.parse(output) as AsyncAPIDocument; + expect(JSON.stringify(doc.json())).toEqual(JSON.stringify(oldDoc.json())); + }); + + it('should not parse invalid document', async function() { + const source = path.resolve(__dirname, '../mocks/simple-with-refs.yaml'); + const nestedSchemas = fs.readFileSync(source, 'utf8'); + const { document } = await parser.parse(nestedSchemas, { source }); + const doc = convertToOldAPI(document!); + delete doc.json()[xParserSpecParsed]; + + let error; + try { + AsyncAPIDocument.parse(doc); + } catch (err) { + error = err; + } + expect(error.message).toEqual('Cannot parse invalid AsyncAPI document'); + }); + + it('should parse stringified document with circular references', async function() { + const circularOutput = {asyncapi: '2.0.0',info: {title: 'Test API',version: '1.0.0'},channels: {mychannel: {publish: {message: {payload: {type: 'object',properties: {name: {type: 'string','x-parser-schema-id': ''}},'x-parser-schema-id': ''},'x-parser-message-name': '','x-parser-original-schema-format': 'application/vnd.aai.asyncapi;version=2.0.0',schemaFormat: 'application/vnd.aai.asyncapi;version=2.0.0','x-parser-original-payload': '$ref:$.channels.mychannel.publish.message.payload','x-parser-message-parsed': true}}}},components: {messages: {testMessage: {payload: {type: 'object',properties: {name: {type: 'string','x-parser-schema-id': ''},deep: {type: 'object',properties: {circular: {$ref: '#/components/schemas/testSchema','x-parser-schema-id': ''}},'x-parser-schema-id': ''}},'x-parser-schema-id': 'testSchema'},'x-parser-message-name': 'testMessage','x-parser-original-schema-format': 'application/vnd.aai.asyncapi;version=2.0.0',schemaFormat: 'application/vnd.aai.asyncapi;version=2.0.0','x-parser-original-payload': '$ref:$.components.messages.testMessage.payload','x-parser-message-parsed': true}},schemas: {testSchema: '$ref:$.components.messages.testMessage.payload'}},'x-parser-spec-parsed': true,'x-parser-circular': true,'x-parser-spec-stringified': true}; + const result = AsyncAPIDocument.parse(circularOutput) as AsyncAPIDocument; + + expect(result.hasCircular()).toEqual(true); + expect(result.components()?.schema('testSchema')?.isCircular()).toEqual(false); + expect(result.components()?.schema('testSchema')?.properties()['name']?.isCircular()).toEqual(false); + expect(result.components()?.schema('testSchema')?.properties()['deep']?.isCircular()).toEqual(false); + expect(result.components()?.schema('testSchema')?.properties()['deep']?.properties()['circular']?.isCircular()).toEqual(true); + }); + }); + + assertTagsMixin(AsyncAPIDocument); + assertExtensionsMixin(AsyncAPIDocument); + assertExternalDocumentationMixin(AsyncAPIDocument); +}); \ No newline at end of file diff --git a/test/old-api/base.spec.ts b/test/old-api/base.spec.ts new file mode 100644 index 000000000..a0b706d46 --- /dev/null +++ b/test/old-api/base.spec.ts @@ -0,0 +1,25 @@ +import { Base } from '../../src/old-api/base'; + +describe('Base', function() { + class Model extends Base {} + + describe('json()', function() { + it('should return the whole JSON object', function() { + const doc = { test: 'testing' }; + const d = new Model(doc); + expect(d.json()).toEqual(doc); + }); + + it('should return the value of a given key', function() { + const doc = { test: 'testing' }; + const d = new Model(doc); + expect(d.json('test')).toEqual(doc.test); + }); + + it('should return the value of a given key, even when this is falsy', function() { + const doc = { 0: 'testing' }; + const d = new Model(doc); + expect(d.json(0)).toEqual(doc[0]); + }); + }); +}); \ No newline at end of file diff --git a/test/old-api/channel-parameter.spec.ts b/test/old-api/channel-parameter.spec.ts new file mode 100644 index 000000000..c4978ba62 --- /dev/null +++ b/test/old-api/channel-parameter.spec.ts @@ -0,0 +1,27 @@ +import { ChannelParameter } from '../../src/old-api/channel-parameter'; +import { Schema } from '../../src/old-api/schema'; +import { assertDescriptionMixin, assertExtensionsMixin } from './mixins'; + +import type { v2 } from '../../src/spec-types'; + +describe('ChannelParameter', function() { + const json: v2.ParameterObject = { description: 'param1', location: '$message.headers#/x-param1', schema: { type: 'string' }, 'x-test': 'testing' }; + + describe('location()', function() { + it('should return a string', function() { + const d = new ChannelParameter(json); + expect(d.location()).toEqual(json.location); + }); + }); + + describe('schema()', function() { + it('should return a Schema object', function() { + const d = new ChannelParameter(json); + expect(d.schema()).toBeInstanceOf(Schema); + expect(d.schema()?.json()).toEqual(json.schema); + }); + }); + + assertDescriptionMixin(ChannelParameter); + assertExtensionsMixin(ChannelParameter); +}); \ No newline at end of file diff --git a/test/old-api/channel.spec.ts b/test/old-api/channel.spec.ts new file mode 100644 index 000000000..64253c219 --- /dev/null +++ b/test/old-api/channel.spec.ts @@ -0,0 +1,132 @@ +import { Channel } from '../../src/old-api/channel'; +import { ChannelParameter } from '../../src/old-api/channel-parameter'; +import { Operation } from '../../src/old-api/operation'; +import { assertDescriptionMixin, assertExtensionsMixin, assertBindingsMixin } from './mixins'; + +describe('Channel', function() { + const json: any = { description: 'test', parameters: { param1: { description: 'param1', location: '$message.headers#/x-param1', schema: { type: 'string' } } }, bindings: { amqp: 'test' }, 'x-test': 'testing' }; + const jsonWithServers = { description: 'channel with servers', servers: ['server1', 'server2'] }; + const jsonWithoutServers = { description: 'channel without servers' }; + + describe('hasParameters()', function() { + it('should return a boolean indicating if the AsyncAPI document has channel parameters', function() { + const doc = { parameters: { test1param: { description: 'test1param' } } }; + const docNoChannelParams = { description: 'test' }; + const d = new Channel(doc); + const d2 = new Channel(docNoChannelParams); + expect(d.hasParameters()).toEqual(true); + expect(d2.hasParameters()).toEqual(false); + }); + }); + + describe('parameters()', function() { + it('should return a map of ChannelParameter objects', function() { + const d = new Channel(json); + expect(typeof d.parameters()).toEqual('object'); + expect(d.parameters().param1).toBeInstanceOf(ChannelParameter); + expect(d.parameters().param1.json()).toEqual(json.parameters.param1); + }); + }); + + describe('parameter()', function() { + it('should return a specific ChannelParameter object', function() { + const d = new Channel(json); + expect(d.parameter('param1')).toBeInstanceOf(ChannelParameter); + expect(d.parameter('param1')?.json()).toEqual(json.parameters.param1); + }); + }); + + describe('hasServers()', function() { + it('should return a boolean indicating if the channel has a servers list', function() { + const d1 = new Channel(jsonWithServers); + const d2 = new Channel(jsonWithoutServers); + expect(d1.hasServers()).toEqual(true); + expect(d2.hasServers()).toEqual(false); + }); + }); + + describe('servers()', function() { + it('should return an array of String server names if the channel has a servers list', function() { + const d = new Channel(jsonWithServers); + expect(Array.isArray(d.servers())).toEqual(true); + d.servers().forEach((s, i) => { + expect(typeof s === 'string').toEqual(true); + expect(s).toEqual(jsonWithServers.servers[i]); + }); + }); + + it('should return an empty array if the channel doesn\'t have servers', function() { + const d = new Channel(jsonWithoutServers); + expect(Array.isArray(d.servers())).toEqual(true); + expect(d.servers().length).toEqual(0); + }); + }); + + describe('server()', function() { + it('should return null if the channel doesn\'t have servers', function() { + const d = new Channel(jsonWithoutServers); + expect(d.server(undefined as any)).toEqual(null); + }); + + it('should return a specific server String name', function() { + const d = new Channel(jsonWithServers); + jsonWithServers.servers.forEach((s, i) => { + expect(d.server(i)).toEqual(s); + }); + }); + + it('should return null when index is out of bounds', function() { + const d1 = new Channel(jsonWithServers); + const d2 = new Channel(jsonWithoutServers); + expect(d1.server(100)).toEqual(null); + expect(d2.server(1)).toEqual(null); + }); + + it('should return null if index is not a number', function() { + const d = new Channel(jsonWithServers); + expect(d.server('0')).toEqual(null); + }); + }); + + describe('publish()', function() { + it('should return a publish Operation object', function() { + const jsWithPub = { publish: { description: 'pub' } }; + const d = new Channel(jsWithPub); + expect(d.publish()).toBeInstanceOf(Operation); + expect(d.publish()?.kind()).toEqual('publish'); + expect(d.publish()?.json()).toEqual(jsWithPub.publish); + }); + }); + + describe('subscribe()', function() { + it('should return a subscribe Operation object', function() { + const jsWithSub = { subscribe: { description: 'sub' } }; + const d = new Channel(jsWithSub); + expect(d.subscribe()).toBeInstanceOf(Operation); + expect(d.subscribe()?.kind()).toEqual('subscribe'); + expect(d.subscribe()?.json()).toEqual(jsWithSub.subscribe); + }); + }); + + describe('hasPublish()', function() { + it('should return true if the channel contains the publish operation', function() { + const d = new Channel({ publish: { description: 'pub' } }); + expect(d.hasPublish()).toEqual(true); + const d2 = new Channel({ subscribe: { description: 'sub' } }); + expect(d2.hasPublish()).toEqual(false); + }); + }); + + describe('hasSubscribe()', function() { + it('should return true if the channel contains the publish operation', function() { + const d = new Channel({ publish: { description: 'pub' } }); + expect(d.hasSubscribe()).toEqual(false); + const d2 = new Channel({ subscribe: { description: 'sub' } }); + expect(d2.hasSubscribe()).toEqual(true); + }); + }); + + assertDescriptionMixin(Channel); + assertExtensionsMixin(Channel); + assertBindingsMixin(Channel); +}); \ No newline at end of file diff --git a/test/old-api/components.spec.ts b/test/old-api/components.spec.ts new file mode 100644 index 000000000..bf04213dd --- /dev/null +++ b/test/old-api/components.spec.ts @@ -0,0 +1,526 @@ +import { Components } from '../../src/old-api/components'; +import { Channel } from '../../src/old-api/channel'; +import { Message } from '../../src/old-api/message'; +import { Schema } from '../../src/old-api/schema'; +import { SecurityScheme } from '../../src/old-api/security-scheme'; +import { Server } from '../../src/old-api/server'; +import { ChannelParameter } from '../../src/old-api/channel-parameter'; +import { CorrelationId } from '../../src/old-api/correlation-id'; +import { OperationTrait } from '../../src/old-api/operation-trait'; +import { MessageTrait } from '../../src/old-api/message-trait'; +import { ServerVariable } from '../../src/old-api/server-variable'; +import { assertExtensionsMixin } from './mixins'; + +describe('Components', function() { + describe('channels()', function() { + it('should return a map of Channel objects', function() { + const doc = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; + const d = new Components(doc); + expect(typeof d.channels()).toEqual('object'); + expect(d.channels().test1).toBeInstanceOf(Channel); + expect(d.channels().test1.json()).toEqual(doc.channels.test1); + expect(d.channels().test2).toBeInstanceOf(Channel); + expect(d.channels().test2.json()).toEqual(doc.channels.test2); + }); + + it('should return an empty object if the components field has no defined channels', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.channels()).toEqual('object'); + expect(d.channels()).toEqual({}); + }); + }); + + describe('hasChannels()', function() { + it('should return a boolean indicating if the components field has channels', function() { + const doc = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; + const docNoChannels = { schemas: {} }; + const d = new Components(doc); + const d2 = new Components(docNoChannels); + expect(d.hasChannels()).toEqual(true); + expect(d2.hasChannels()).toEqual(false); + }); + }); + + describe('channel()', function() { + it('should return a specific Channel object', function() { + const doc = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; + const d = new Components(doc); + expect(d.channel('test1')).toBeInstanceOf(Channel); + expect(d.channel('test1')?.json()).toEqual(doc.channels.test1); + }); + + it('should return null if a channel name is not provided', function() { + const doc = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; + const d = new Components(doc); + expect(d.channel(undefined as any)).toEqual(null); + }); + + it('should return null if a channel name is not found', function() { + const doc = { channels: { test1: { description: 'test1' }, test2: { description: 'test2' } } }; + const d = new Components(doc); + expect(d.channel('not found')).toEqual(null); + }); + }); + + describe('messages()', function() { + it('should return a map of Message objects', function() { + const doc = { messages: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(typeof d.messages()).toEqual('object'); + expect(d.messages().test1).toBeInstanceOf(Message); + expect(d.messages().test1.json()).toEqual(doc.messages.test1); + expect(d.messages().test2).toBeInstanceOf(Message); + expect(d.messages().test2.json()).toEqual(doc.messages.test2); + }); + + it('should return an empty object if the components field has no defined messages', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.messages()).toEqual('object'); + expect(d.messages()).toEqual({}); + }); + }); + + describe('hasMessages()', function() { + it('should return a boolean indicating if the components field has messages', function() { + const doc = { messages: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const docNoMessages = { schemas: {} }; + const d = new Components(doc); + const d2 = new Components(docNoMessages); + expect(d.hasMessages()).toEqual(true); + expect(d2.hasMessages()).toEqual(false); + }); + }); + + describe('message()', function() { + it('should return a specific Message object', function() { + const doc = { messages: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.message('test1')).toBeInstanceOf(Message); + expect(d.message('test1')?.json()).toEqual(doc.messages.test1); + }); + + it('should return null if a message name is not provided', function() { + const doc = { messages: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.message(undefined as any)).toEqual(null); + }); + + it('should return null if a message name is not found', function() { + const doc = { messages: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.message('not found')).toEqual(null); + }); + }); + + describe('schemas()', function() { + it('should return a map of Schema objects', function() { + const doc = { schemas: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(typeof d.schemas()).toEqual('object'); + expect(d.schemas().test1).toBeInstanceOf(Schema); + expect(d.schemas().test1.json()).toEqual(doc.schemas.test1); + expect(d.schemas().test2).toBeInstanceOf(Schema); + expect(d.schemas().test2.json()).toEqual(doc.schemas.test2); + }); + + it('should return an empty object if the components field has no defined schemas', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.schemas()).toEqual('object'); + expect(d.schemas()).toEqual({}); + }); + }); + + describe('hasSchemas()', function() { + it('should return a boolean indicating if the components field has schemas', function() { + const doc = { schemas: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const docNoSchemas = { messages: {} }; + const d = new Components(doc); + const d2 = new Components(docNoSchemas); + expect(d.hasSchemas()).toEqual(true); + expect(d2.hasSchemas()).toEqual(false); + }); + }); + + describe('schema()', function() { + it('should return a specific Schema object', function() { + const doc = { schemas: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.schema('test1')).toBeInstanceOf(Schema); + expect(d.schema('test1')?.json()).toEqual(doc.schemas.test1); + }); + + it('should return null if a schema name is not provided', function() { + const doc = { schemas: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.schema(undefined as any)).toEqual(null); + }); + + it('should return null if a schema name is not found', function() { + const doc = { schemas: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.schema('not found')).toEqual(null); + }); + }); + + describe('securitySchemes()', function() { + it('should return a map of Security Scheme objects', function() { + const doc: any = { securitySchemes: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(typeof d.securitySchemes()).toEqual('object'); + expect(d.securitySchemes().test1).toBeInstanceOf(SecurityScheme); + expect(d.securitySchemes().test1.json()).toEqual(doc.securitySchemes.test1); + expect(d.securitySchemes().test2).toBeInstanceOf(SecurityScheme); + expect(d.securitySchemes().test2.json()).toEqual(doc.securitySchemes.test2); + }); + + it('should return an empty object if the components field has no defined securitySchemes', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.securitySchemes()).toEqual('object'); + expect(d.securitySchemes()).toEqual({}); + }); + }); + + describe('hasSecuritySchemes()', function() { + it('should return a boolean indicating if the components field has securitySchemes', function() { + const doc: any = { securitySchemes: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const docNoSchemas = { messages: {} }; + const d = new Components(doc); + const d2 = new Components(docNoSchemas); + expect(d.hasSecuritySchemes()).toEqual(true); + expect(d2.hasSecuritySchemes()).toEqual(false); + }); + }); + + describe('securityScheme()', function() { + it('should return a specific securityScheme object', function() { + const doc: any = { securitySchemes: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.securityScheme('test1')).toBeInstanceOf(SecurityScheme); + expect(d.securityScheme('test1')?.json()).toEqual(doc.securitySchemes.test1); + }); + + it('should return null if a securityScheme name is not provided', function() { + const doc: any = { securitySchemes: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.securityScheme(undefined as any)).toEqual(null); + }); + + it('should return null if a securityScheme name is not found', function() { + const doc: any = { securitySchemes: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.securityScheme('not found')).toEqual(null); + }); + }); + + describe('servers()', function() { + it('should return a map of Server objects', function() { + const doc: any = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; + const d = new Components(doc); + expect(typeof d.servers()).toEqual('object'); + expect(d.servers().test1).toBeInstanceOf(Server); + expect(d.servers().test1.json()).toEqual(doc.servers.test1); + expect(d.servers().test2).toBeInstanceOf(Server); + expect(d.servers().test2.json()).toEqual(doc.servers.test2); + }); + + it('should return an empty object if the components field has no defined servers', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.servers()).toEqual('object'); + expect(d.servers()).toEqual({}); + }); + }); + + describe('hasServers()', function() { + it('should return a boolean indicating if the components field has servers', function() { + const doc: any = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; + const docNoServers = { schemas: {} }; + const d = new Components(doc); + const d2 = new Components(docNoServers); + expect(d.hasServers()).toEqual(true); + expect(d2.hasServers()).toEqual(false); + }); + }); + + describe('server()', function() { + it('should return a specific Server object', function() { + const doc: any = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; + const d = new Components(doc); + expect(d.server('test1')).toBeInstanceOf(Server); + expect(d.server('test1')?.json()).toEqual(doc.servers.test1); + }); + + it('should return null if a message name is not provided', function() { + const doc: any = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; + const d = new Components(doc); + expect(d.server(undefined as any)).toEqual(null); + }); + + it('should return null if a message name is not found', function() { + const doc: any = { servers: { test1: { url: 'test1' }, test2: { url: 'test2' } } }; + const d = new Components(doc); + expect(d.server('not found')).toEqual(null); + }); + }); + + describe('parameters()', function() { + it('should return a map of ChannelParameter objects', function() { + const doc = { parameters: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(typeof d.parameters()).toEqual('object'); + expect(d.parameters().test1).toBeInstanceOf(ChannelParameter); + expect(d.parameters().test1.json()).toEqual(doc.parameters.test1); + expect(d.parameters().test2).toBeInstanceOf(ChannelParameter); + expect(d.parameters().test2.json()).toEqual(doc.parameters.test2); + }); + + it('should return an empty object if the components field has no defined parameters', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.parameters()).toEqual('object'); + expect(d.parameters()).toEqual({}); + }); + }); + + describe('hasParameters()', function() { + it('should return a boolean indicating if the components field has parameters', function() { + const doc = { parameters: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const docNoSchemas = { messages: {} }; + const d = new Components(doc); + const d2 = new Components(docNoSchemas); + expect(d.hasParameters()).toEqual(true); + expect(d2.hasParameters()).toEqual(false); + }); + }); + + describe('parameter()', function() { + it('should return a specific parameter object', function() { + const doc = { parameters: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.parameter('test1')).toBeInstanceOf(ChannelParameter); + expect(d.parameter('test1')?.json()).toEqual(doc.parameters.test1); + }); + + it('should return null if a parameter name is not provided', function() { + const doc = { parameters: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.parameter(undefined as any)).toEqual(null); + }); + + it('should return null if a parameter name is not found', function() { + const doc = { parameters: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.parameter('not found')).toEqual(null); + }); + }); + + describe('correlationIds()', function() { + it('should return a map of CorrelationId objects', function() { + const doc: any = { correlationIds: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(typeof d.correlationIds()).toEqual('object'); + expect(d.correlationIds().test1).toBeInstanceOf(CorrelationId); + expect(d.correlationIds().test1.json()).toEqual(doc.correlationIds.test1); + expect(d.correlationIds().test2).toBeInstanceOf(CorrelationId); + expect(d.correlationIds().test2.json()).toEqual(doc.correlationIds.test2); + }); + + it('should return an empty object if the components field has no defined correlationIds', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.correlationIds()).toEqual('object'); + expect(d.correlationIds()).toEqual({}); + }); + }); + + describe('hasCorrelationIds()', function() { + it('should return a boolean indicating if the components field has correlationIds', function() { + const doc: any = { correlationIds: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const docNoSchemas = { messages: {} }; + const d = new Components(doc); + const d2 = new Components(docNoSchemas); + expect(d.hasCorrelationIds()).toEqual(true); + expect(d2.hasCorrelationIds()).toEqual(false); + }); + }); + + describe('correlationId()', function() { + it('should return a specific correlationId object', function() { + const doc: any = { correlationIds: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.correlationId('test1')).toBeInstanceOf(CorrelationId); + expect(d.correlationId('test1')?.json()).toEqual(doc.correlationIds.test1); + }); + + it('should return null if a correlationId name is not provided', function() { + const doc: any = { correlationIds: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.correlationId(undefined as any)).toEqual(null); + }); + + it('should return null if a correlationId name is not found', function() { + const doc: any = { correlationIds: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.correlationId('not found')).toEqual(null); + }); + }); + + describe('operationTraits()', function() { + it('should return a map of OperationTrait objects', function() { + const doc = { operationTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(typeof d.operationTraits()).toEqual('object'); + expect(d.operationTraits().test1).toBeInstanceOf(OperationTrait); + expect(d.operationTraits().test1.json()).toEqual(doc.operationTraits.test1); + expect(d.operationTraits().test2).toBeInstanceOf(OperationTrait); + expect(d.operationTraits().test2.json()).toEqual(doc.operationTraits.test2); + }); + + it('should return an empty object if the components field has no defined operationTraits', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.operationTraits()).toEqual('object'); + expect(d.operationTraits()).toEqual({}); + }); + }); + + describe('hasOperationTraits()', function() { + it('should return a boolean indicating if the components field has operationTraits', function() { + const doc = { operationTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const docNoSchemas = { messages: {} }; + const d = new Components(doc); + const d2 = new Components(docNoSchemas); + expect(d.hasOperationTraits()).toEqual(true); + expect(d2.hasOperationTraits()).toEqual(false); + }); + }); + + describe('operationTrait()', function() { + it('should return a specific operationTrait object', function() { + const doc = { operationTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.operationTrait('test1')).toBeInstanceOf(OperationTrait); + expect(d.operationTrait('test1')?.json()).toEqual(doc.operationTraits.test1); + }); + + it('should return null if a operationTrait name is not provided', function() { + const doc = { operationTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.operationTrait(undefined as any)).toEqual(null); + }); + + it('should return null if a operationTrait name is not found', function() { + const doc = { operationTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.operationTrait('not found')).toEqual(null); + }); + }); + + describe('messageTraits()', function() { + it('should return a map of MessageTrait objects', function() { + const doc = { messageTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(typeof d.messageTraits()).toEqual('object'); + expect(d.messageTraits().test1).toBeInstanceOf(MessageTrait); + expect(d.messageTraits().test1.json()).toEqual(doc.messageTraits.test1); + expect(d.messageTraits().test2).toBeInstanceOf(MessageTrait); + expect(d.messageTraits().test2.json()).toEqual(doc.messageTraits.test2); + }); + + it('should return an empty object if the components field has no defined messageTraits', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.messageTraits()).toEqual('object'); + expect(d.messageTraits()).toEqual({}); + }); + }); + + describe('hasMessageTraits()', function() { + it('should return a boolean indicating if the components field has messageTraits', function() { + const doc = { messageTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const docNoSchemas = { messages: {} }; + const d = new Components(doc); + const d2 = new Components(docNoSchemas); + expect(d.hasMessageTraits()).toEqual(true); + expect(d2.hasMessageTraits()).toEqual(false); + }); + }); + + describe('messageTrait()', function() { + it('should return a specific messageTrait object', function() { + const doc = { messageTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.messageTrait('test1')).toBeInstanceOf(MessageTrait); + expect(d.messageTrait('test1').json()).toEqual(doc.messageTraits.test1); + }); + + it('should return null if a messageTrait name is not provided', function() { + const doc = { messageTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.messageTrait(undefined as any)).toEqual(null); + }); + + it('should return null if a messageTrait name is not found', function() { + const doc = { messageTraits: { test1: { test: 'test1' }, test2: { test: 'test2' } } }; + const d = new Components(doc); + expect(d.messageTrait('not found')).toEqual(null); + }); + }); + + describe('serverVariables()', function() { + it('should return a map of ServerVariable objects', function() { + const doc = { serverVariables: { test1: {test: 'test1'}, test2: {test: 'test2'} } }; + const d = new Components(doc); + expect(typeof d.serverVariables()).toEqual('object'); + expect(d.serverVariables().test1).toBeInstanceOf(ServerVariable); + expect(d.serverVariables().test1.json()).toEqual(doc.serverVariables.test1); + expect(d.serverVariables().test2).toBeInstanceOf(ServerVariable); + expect(d.serverVariables().test2.json()).toEqual(doc.serverVariables.test2); + }); + + it('should return an empty object if the components field has no defined serverVariables', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.serverVariables()).toEqual('object'); + expect(d.serverVariables()).toEqual({}); + }); + }); + + describe('hasServerVariables()', function() { + it('should return a boolean indicating if the components field has serverVariables', function() { + const doc = { serverVariables: { test1: {test: 'test1'}, test2: {test: 'test2'} } }; + const docNoSchemas = { servers: {} }; + const d = new Components(doc); + const d2 = new Components(docNoSchemas); + expect(d.hasServerVariables()).toEqual(true); + expect(d2.hasServerVariables()).toEqual(false); + }); + }); + + describe('serverVariable()', function() { + it('should return a specific serverVariable object', function() { + const doc = { serverVariables: { test1: {test: 'test1'}, test2: {test: 'test2'} } }; + const d = new Components(doc); + expect(d.serverVariable('test1')).toBeInstanceOf(ServerVariable); + expect(d.serverVariable('test1')?.json()).toEqual(doc.serverVariables.test1); + }); + + it('should return null if a serverVariable name is not provided', function() { + const doc = { serverVariables: { test1: {test: 'test1'}, test2: {test: 'test2'} } }; + const d = new Components(doc); + expect(d.serverVariable(undefined as any)).toEqual(null); + }); + + it('should return null if a serverVariable name is not found', function() { + const doc = { serverVariables: { test1: {test: 'test1'}, test2: {test: 'test2'} } }; + const d = new Components(doc); + expect(d.serverVariable('not found')).toEqual(null); + }); + }); + + assertExtensionsMixin(Components); +}); diff --git a/test/old-api/contact.spec.ts b/test/old-api/contact.spec.ts new file mode 100644 index 000000000..1e8a00bde --- /dev/null +++ b/test/old-api/contact.spec.ts @@ -0,0 +1,29 @@ +import { Contact } from '../../src/old-api/contact'; +import { assertExtensionsMixin } from './mixins'; + +describe('Contact', function() { + const json = { name: 'Fran', url: 'https://www.asyncapi.com', email: 'fmvilas@gmail.com', 'x-test': 'testing' }; + + describe('name()', function() { + it('should return a string', function() { + const d = new Contact(json); + expect(d.name()).toEqual(json.name); + }); + }); + + describe('url()', function() { + it('should return a string', function() { + const d = new Contact(json); + expect(d.url()).toEqual(json.url); + }); + }); + + describe('email()', function() { + it('should return a string', function() { + const d = new Contact(json); + expect(d.email()).toEqual(json.email); + }); + }); + + assertExtensionsMixin(Contact); +}); \ No newline at end of file diff --git a/test/old-api/correlation-id.spec.ts b/test/old-api/correlation-id.spec.ts new file mode 100644 index 000000000..ba6ddfe6a --- /dev/null +++ b/test/old-api/correlation-id.spec.ts @@ -0,0 +1,16 @@ +import { CorrelationId } from '../../src/old-api/correlation-id'; +import { assertDescriptionMixin, assertExtensionsMixin } from './mixins'; + +describe('CorrelationId', function() { + const json = { location: '$message.header#/correlationId' }; + + describe('location()', function() { + it('should return a string', function() { + const c = new CorrelationId(json); + expect(c.location()).toEqual(json.location); + }); + }); + + assertDescriptionMixin(CorrelationId); + assertExtensionsMixin(CorrelationId); +}); \ No newline at end of file diff --git a/test/old-api/external-docs.spec.ts b/test/old-api/external-docs.spec.ts new file mode 100644 index 000000000..b5d91acfc --- /dev/null +++ b/test/old-api/external-docs.spec.ts @@ -0,0 +1,16 @@ +import { ExternalDocs } from '../../src/old-api/external-docs'; +import { assertDescriptionMixin, assertExtensionsMixin } from './mixins'; + +describe('ExternalDocs', function() { + const json = { url: 'somewhere' }; + + describe('url()', function() { + it('should return a string', function() { + const d = new ExternalDocs(json); + expect(d.url()).toEqual(json.url); + }); + }); + + assertDescriptionMixin(ExternalDocs); + assertExtensionsMixin(ExternalDocs); +}); \ No newline at end of file diff --git a/test/old-api/info.spec.ts b/test/old-api/info.spec.ts new file mode 100644 index 000000000..595dc0ba3 --- /dev/null +++ b/test/old-api/info.spec.ts @@ -0,0 +1,58 @@ +import { Info } from '../../src/old-api/info'; +import { Contact } from '../../src/old-api/contact'; +import { License } from '../../src/old-api/license'; +import { assertDescriptionMixin, assertExtensionsMixin } from './mixins'; + +describe('Info', function() { + const json = { title: 'Test', version: '1.2.3', termsOfService: '...', license: { name: 'Apache 2.0', url: 'https://www.apache.org/licenses/LICENSE-2.0' }, contact: { name: 'Fran', url: 'https://www.asyncapi.com', email: 'fmvilas@gmail.com' }, 'x-test': 'testing' }; + + describe('title()', function() { + it('should return a string', function() { + const d = new Info(json); + expect(d.title()).toEqual(json.title); + }); + }); + + describe('version()', function() { + it('should return a string', function() { + const d = new Info(json); + expect(d.version()).toEqual(json.version); + }); + }); + + describe('termsOfService()', function() { + it('should return a string', function() { + const d = new Info(json); + expect(d.termsOfService()).toEqual(json.termsOfService); + }); + }); + + describe('license()', function() { + it('should return a license object', function() { + const d = new Info(json); + expect(d.license()).toBeInstanceOf(License); + expect(d.license()?.json()).toEqual(json.license); + }); + + it('should return null if a license object is not given', function() { + const d = new Info({ ...json, license: undefined }); + expect(d.license()).toEqual(null); + }); + }); + + describe('contact()', function() { + it('should return a license object', function() { + const d = new Info(json); + expect(d.contact()).toBeInstanceOf(Contact); + expect(d.contact()?.json()).toEqual(json.contact); + }); + + it('should return null if a contact object is not given', function() { + const d = new Info({ ...json, contact: undefined }); + expect(d.contact()).toEqual(null); + }); + }); + + assertDescriptionMixin(Info); + assertExtensionsMixin(Info); +}); \ No newline at end of file diff --git a/test/old-api/license.spec.ts b/test/old-api/license.spec.ts new file mode 100644 index 000000000..0e143a530 --- /dev/null +++ b/test/old-api/license.spec.ts @@ -0,0 +1,22 @@ +import { License } from '../../src/old-api/license'; +import { assertExtensionsMixin } from './mixins'; + +describe('License', function() { + const json = { name: 'Apache 2.0', url: 'https://www.apache.org/licenses/LICENSE-2.0', 'x-test': 'testing' }; + + describe('name()', function() { + it('should return a string', function() { + const d = new License(json); + expect(d.name()).toEqual(json.name); + }); + }); + + describe('url()', function() { + it('should return a string', function() { + const d = new License(json); + expect(d.url()).toEqual(json.url); + }); + }); + + assertExtensionsMixin(License); +}); \ No newline at end of file diff --git a/test/old-api/message-trait.spec.ts b/test/old-api/message-trait.spec.ts new file mode 100644 index 000000000..874ae06d9 --- /dev/null +++ b/test/old-api/message-trait.spec.ts @@ -0,0 +1,107 @@ +import { MessageTrait } from '../../src/old-api/message-trait'; +import { Schema } from '../../src/old-api/schema'; +import { assertDescriptionMixin, assertExternalDocumentationMixin, assertExtensionsMixin, assertBindingsMixin, assertTagsMixin } from './mixins'; + +describe('MessageTrait', function() { + const json: any = { messageId: 'someId', schemaFormat: 'mySchema', headers: { properties: { test1: { type: 'string' }, test2: { type: 'number' } } }, correlationId: { test: true }, contentType: 'application/json', name: 'test', title: 'Test', summary: 'test', description: 'testing', externalDocs: { test: true }, tags: [{ name: 'tag1' }], bindings: { amqp: { test: true } }, examples: [{name: 'test', summary: 'test summary', payload: {test: true}}], 'x-test': 'testing' }; + + describe('headers()', function() { + it('should return a map of Schema objects', function() { + const d = new MessageTrait(json); + expect(d.headers()).toBeInstanceOf(Schema); + expect(d.headers()?.json()).toEqual(json.headers); + }); + }); + + describe('header()', function() { + it('should return a specific Schema object', function() { + const d = new MessageTrait(json); + expect(d.header('test1')).toBeInstanceOf(Schema); + expect(d.header('test1')?.json()).toEqual(json.headers.properties.test1); + }); + }); + + describe('payload()', function() { + it('should NOT have a payload method', function() { + const d = new MessageTrait(json); + expect((d as any).payload).toEqual(undefined); + }); + }); + + describe('originalPayload()', function() { + it('should NOT have an originalPayload method', function() { + const d = new MessageTrait(json); + expect((d as any).originalPayload).toEqual(undefined); + }); + }); + + describe('id()', function() { + it('should return a string', function() { + const d = new MessageTrait(json); + expect(d.id()).toEqual(json.messageId); + }); + }); + + describe('correlationId()', function() { + it('should return a CorrelationId object', function() { + const d = new MessageTrait(json); + expect(d.correlationId()?.json()).toEqual(json.correlationId); + }); + }); + + describe('schemaFormat()', function() { + it('should return a string', function() { + const d = new MessageTrait(json); + expect(d.schemaFormat()).toEqual('mySchema'); + }); + }); + + describe('originalSchemaFormat()', function() { + it('should NOT have an originalSchemaFormat method', function() { + const d = new MessageTrait(json); + expect((d as any).originalSchemaFormat).toEqual(undefined); + }); + }); + + describe('contentType()', function() { + it('should return a string', function() { + const d = new MessageTrait(json); + expect(d.contentType()).toEqual(json.contentType); + }); + }); + + describe('name()', function() { + it('should return a string', function() { + const d = new MessageTrait(json); + expect(d.name()).toEqual(json.name); + }); + }); + + describe('title()', function() { + it('should return a string', function() { + const d = new MessageTrait(json); + expect(d.title()).toEqual(json.title); + }); + }); + + describe('summary()', function() { + it('should return a string', function() { + const d = new MessageTrait(json); + expect(d.summary()).toEqual(json.summary); + }); + }); + + describe('examples()', function() { + it('should return an array of examples', function() { + const d = new MessageTrait(json); + expect(Array.isArray(d.examples())).toEqual(true); + expect(d.examples()).toEqual(json.examples); + }); + }); + + assertDescriptionMixin(MessageTrait); + assertExternalDocumentationMixin(MessageTrait); + assertBindingsMixin(MessageTrait); + assertTagsMixin(MessageTrait); + assertExtensionsMixin(MessageTrait); +}); \ No newline at end of file diff --git a/test/old-api/message.spec.ts b/test/old-api/message.spec.ts new file mode 100644 index 000000000..53b654e10 --- /dev/null +++ b/test/old-api/message.spec.ts @@ -0,0 +1,155 @@ +import { Message } from '../../src/old-api/message'; +import { Schema } from '../../src/old-api/schema'; +import { assertDescriptionMixin, assertExternalDocumentationMixin, assertExtensionsMixin, assertBindingsMixin, assertTagsMixin } from './mixins'; + +describe('Message', function() { + const json: any = { schemaFormat: 'mySchema', traits: [{headers: {type: 'object',properties: {'my-app-header': {type: 'integer',minimum: 0,maximum: 100}}}}], headers: { properties: { test1: { type: 'string' }, test2: { type: 'number' } } }, payload: { test: true }, 'x-parser-original-payload': { testing: true }, correlationId: { test: true }, 'x-parser-original-schema-format': 'application/vnd.apache.avro;version=1.9.0', contentType: 'application/json', messageId: 'test', title: 'Test', summary: 'test', description: 'testing', externalDocs: { test: true }, tags: [{ name: 'tag1' }], bindings: { amqp: { test: true } }, examples: [{name: 'test', summary: 'test summary', payload: {test: true}}], 'x-test': 'testing' }; + + describe('uid()', function() { + it('should return a string with the messageId', function() { + const d = new Message(json); + expect(d.uid()).toEqual('test'); + }); + + it('should return a string with the name when messageId is not available', function() { + const msg = { ...json, ...{ name: 'test', messageId: undefined } }; + const d = new Message(msg); + expect(d.uid()).toEqual('test'); + }); + + it('should return a string with the x-parser-message-name extension when name and messageId are not available', function() { + const msg = { ...json, ...{ 'x-parser-message-name': 'test', messageId: undefined } }; + const d = new Message(msg); + expect(d.uid()).toEqual('test'); + }); + }); + + describe('headers()', function() { + it('should return a map of Schema objects', function() { + const d = new Message(json); + expect(d.headers()).toBeInstanceOf(Schema); + expect(d.headers()?.json()).toEqual(json.headers); + }); + }); + + describe('header()', function() { + it('should return a specific Schema object', function() { + const d = new Message(json); + expect(d.header('test1')).toBeInstanceOf(Schema); + expect(d.header('test1')?.json()).toEqual(json.headers.properties.test1); + }); + }); + + describe('payload()', function() { + it('should return payload as a Schema object', function() { + const d = new Message(json); + expect(d.payload()).toBeInstanceOf(Schema); + expect(d.payload()?.json()).toEqual(json.payload); + }); + }); + + describe('originalPayload()', function() { + it('should return the original payload', function() { + const d = new Message(json); + expect(d.originalPayload()).toEqual(json['x-parser-original-payload']); + }); + }); + + describe('correlationId()', function() { + it('should return a CorrelationId object', function() { + const d = new Message(json); + expect(d.correlationId()?.json()).toEqual(json.correlationId); + }); + }); + + describe('schemaFormat()', function() { + it('should return a string', function() { + const d = new Message(json); + expect(d.schemaFormat()).toEqual('mySchema'); + }); + }); + + describe('originalSchemaFormat()', function() { + it('should return a string', function() { + const d = new Message(json); + expect(d.originalSchemaFormat()).toEqual(json['x-parser-original-schema-format']); + }); + }); + + describe('contentType()', function() { + it('should return a string', function() { + const d = new Message(json); + expect(d.contentType()).toEqual(json.contentType); + }); + }); + + describe('name()', function() { + it('should return a string', function() { + const d = new Message(json); + expect(d.name()).toEqual(json.name); + }); + }); + + describe('title()', function() { + it('should return a string', function() { + const d = new Message(json); + expect(d.title()).toEqual(json.title); + }); + }); + + describe('summary()', function() { + it('should return a string', function() { + const d = new Message(json); + expect(d.summary()).toEqual(json.summary); + }); + }); + + describe('traits()', function() { + it('should return a list of traits from traits', function() { + const d = new Message(json); + expect(d.traits()[0].json()).toEqual(json.traits[0]); + }); + + it('should return a list of traits from x-parser-original-traits', function() { + const { traits, ...newJs } = json; + newJs['x-parser-original-traits'] = traits; + const d = new Message(newJs); + expect(d.traits()[0].json()).toEqual(newJs['x-parser-original-traits'][0]); + }); + }); + + describe('hasTraits()', function() { + it('should return true if in traits', function() { + const d = new Message(json); + expect(d.hasTraits()).toEqual(true); + }); + + it('should return true if in x-parser-original-traits', function() { + const { traits, ...newJs } = json; + newJs['x-parser-original-traits'] = traits; + const d = new Message(newJs); + expect(d.hasTraits()).toEqual(true); + }); + + it('should return false', function() { + // eslint-disable-next-line no-unused-vars + const { traits, ...newJs } = json; + const d = new Message(newJs); + expect(d.hasTraits()).toEqual(false); + }); + }); + + describe('examples()', function() { + it('should return an array of examples', function() { + const d = new Message(json); + expect(Array.isArray(d.examples())).toEqual(true); + expect(d.examples()).toEqual(json.examples); + }); + }); + + assertDescriptionMixin(Message); + assertExternalDocumentationMixin(Message); + assertBindingsMixin(Message); + assertTagsMixin(Message); + assertExtensionsMixin(Message); +}); \ No newline at end of file diff --git a/test/old-api/mixins.spec.ts b/test/old-api/mixins.spec.ts new file mode 100644 index 000000000..016e0532c --- /dev/null +++ b/test/old-api/mixins.spec.ts @@ -0,0 +1,92 @@ +import { Base } from '../../src/old-api/base'; +import { SpecificationExtensionsModel, hasDescription, description, hasExternalDocs, externalDocs, bindingsMixins, tagsMixins } from '../../src/old-api/mixins'; + +import { assertDescriptionMixin, assertExternalDocumentationMixin, assertBindingsMixin, assertExtensionsMixin, assertTagsMixin } from './mixins'; + +describe('mixins', function() { + describe('description', function() { + class Model extends Base { + hasDescription() { + return hasDescription(this); + } + + description() { + return description(this); + } + } + + assertDescriptionMixin(Model); + }); + + describe('externalDocs', function() { + class Model extends Base { + hasExternalDocs() { + return hasExternalDocs(this); + } + + externalDocs() { + return externalDocs(this); + } + } + + assertExternalDocumentationMixin(Model); + }); + + describe('bindings', function() { + class Model extends Base { + hasBindings() { + return bindingsMixins.hasBindings(this as any); + } + + bindings() { + return bindingsMixins.bindings(this as any); + } + + bindingProtocols() { + return bindingsMixins.bindingProtocols(this as any); + } + + hasBinding(name: string): boolean { + return bindingsMixins.hasBinding(this as any, name); + } + + binding(name: string) { + return bindingsMixins.binding(this as any, name); + } + } + + assertBindingsMixin(Model); + }); + + describe('extensions', function() { + class Model extends SpecificationExtensionsModel {} + + assertExtensionsMixin(Model); + }); + + describe('tags', function() { + class Model extends Base { + hasTags() { + return tagsMixins.hasTags(this); + } + + tags() { + return tagsMixins.tags(this); + } + + tagNames() { + return tagsMixins.tagNames(this); + } + + hasTag(name: string) { + return tagsMixins.hasTag(this, name); + } + + tag(name: string) { + return tagsMixins.tag(this, name); + } + } + + assertTagsMixin(Model); + }); +}); diff --git a/test/old-api/mixins.ts b/test/old-api/mixins.ts new file mode 100644 index 000000000..9621b70ca --- /dev/null +++ b/test/old-api/mixins.ts @@ -0,0 +1,310 @@ +import { ExternalDocs } from '../../src/old-api/external-docs'; +import { Tag } from '../../src/old-api/tag'; + +export function assertDescriptionMixin(Model: any) { + describe('description', function() { + const doc1 = { description: 'Testing' }; + const doc2 = { description: '' }; + const doc3 = {}; + const d1 = new Model(doc1); + const d2 = new Model(doc2); + const d3 = new Model(doc3); + + describe('hasDescription()', function() { + it('should return a boolean indicating if the object has description', function() { + expect(d1.hasDescription()).toEqual(true); + expect(d2.hasDescription()).toEqual(false); + expect(d3.hasDescription()).toEqual(false); + }); + }); + + describe('description()', function() { + it('should return a value', function() { + expect(d1.description()).toEqual(doc1.description); + expect(d2.description()).toEqual(''); + }); + + it('should return a null', function() { + expect(d3.description()).toEqual(null); + }); + }); + }); +} + +export function assertExternalDocumentationMixin(Model: any) { + describe('externalDocs', function() { + const doc1 = { externalDocs: { url: 'test.com' } }; + const doc2 = { externalDocs: {} }; + const doc3 = {}; + const d1 = new Model(doc1); + const d2 = new Model(doc2); + const d3 = new Model(doc3); + + describe('hasExternalDocs()', function() { + it('should return a boolean indicating if the object has externalDocs', function() { + expect(d1.hasExternalDocs()).toEqual(true); + expect(d2.hasExternalDocs()).toEqual(false); + expect(d3.hasExternalDocs()).toEqual(false); + }); + }); + + describe('externalDocs()', function() { + it('should return a externalDocs object', function() { + expect(d1.externalDocs() instanceof ExternalDocs).toEqual(true); + expect(d1.externalDocs()?.json()).toEqual(doc1.externalDocs); + + expect(d2.externalDocs() instanceof ExternalDocs).toEqual(true); + expect(d2.externalDocs()?.json()).toEqual(doc2.externalDocs); + }); + + it('should return a null', function() { + expect(d3.externalDocs()).toEqual(null); + }); + }); + }); +} + +export function assertBindingsMixin(Model: any) { + describe('bindings', function() { + const doc1 = { bindings: { amqp: { test: 'test1' } } }; + const doc2 = { bindings: {} }; + const doc3 = {}; + const d1 = new Model(doc1); + const d2 = new Model(doc2); + const d3 = new Model(doc3); + + describe('hasBindings()', function() { + it('should return a boolean indicating if the object has bindings', function() { + expect(d1.hasBindings()).toEqual(true); + expect(d2.hasBindings()).toEqual(false); + expect(d3.hasBindings()).toEqual(false); + }); + }); + + describe('bindings()', function() { + it('should return a map of bindings', function() { + expect(d1.bindings()).toEqual(doc1.bindings); + }); + + it('should return an empty object', function() { + expect(d2.bindings()).toEqual({}); + expect(d3.bindings()).toEqual({}); + }); + }); + + describe('bindingProtocols()', function() { + it('should return an array of protocol names', function() { + expect(d1.bindingProtocols()).toEqual(['amqp']); + }); + + it('should return an empty array', function() { + expect(d2.bindingProtocols()).toEqual([]); + expect(d3.bindingProtocols()).toEqual([]); + }); + }); + + describe('hasBinding()', function() { + it('should return a boolean indicating if the bindings object has appropriate binding by name', function() { + expect(d1.hasBinding('amqp')).toEqual(true); + expect(d1.hasBinding('http')).toEqual(false); + expect(d2.hasBinding('amqp')).toEqual(false); + expect(d3.hasBinding('amqp')).toEqual(false); + }); + }); + + describe('binding()', function() { + it('should return a binding object', function() { + expect(d1.binding('amqp')).toEqual(doc1.bindings.amqp); + }); + + it('should return a null', function() { + expect(d1.binding('http')).toEqual(null); + expect(d2.binding('amqp')).toEqual(null); + expect(d3.binding('amqp')).toEqual(null); + }); + }); + }); +} + +export function assertExtensionsMixin(Model: any) { + describe('extensions', function() { + const doc1 = { 'x-test': 'testing', test: 'testing' }; + const doc2 = { test: 'testing' }; + const doc3 = {}; + const d1 = new Model(doc1); + const d2 = new Model(doc2); + const d3 = new Model(doc3); + + describe('hasExtensions()', function() { + it('should return a boolean indicating if the object has extensions', function() { + expect(d1.hasExtensions()).toEqual(true); + expect(d2.hasExtensions()).toEqual(false); + expect(d3.hasExtensions()).toEqual(false); + }); + }); + + describe('extensions()', function() { + it('should return a object with extensions', function() { + expect(d1.extensions()).toEqual({ 'x-test': 'testing'}); + }); + + it('should return a empty object', function() { + expect(d2.extensions()).toEqual({}); + expect(d3.extensions()).toEqual({}); + }); + }); + + describe('extensionKeys()', function() { + it('should return an array of extension keys', function() { + expect(d1.extensionKeys()).toEqual(['x-test']); + }); + + it('should return an empty array', function() { + expect(d2.extensionKeys()).toEqual([]); + expect(d3.extensionKeys()).toEqual([]); + }); + }); + + describe('extKeys()', function() { + it('should return an array of extension keys', function() { + expect(d1.extKeys()).toEqual(['x-test']); + }); + + it('should return a null', function() { + expect(d2.extKeys()).toEqual([]); + expect(d3.extKeys()).toEqual([]); + }); + }); + + describe('hasExtension()', function() { + it('should return a boolean indicating if the object has appropriate extension by key', function() { + expect(d1.hasExtension('x-test')).toEqual(true); + expect(d1.hasExtension('x-test2')).toEqual(false); + expect(d2.hasExtension('x-test')).toEqual(false); + expect(d3.hasExtension('x-test')).toEqual(false); + }); + + it('should return false key is not prefixed by `x-`', function() { + expect(d1.hasExtension('test')).toEqual(false); + }); + }); + + describe('extension()', function() { + it('should return a value', function() { + expect(d1.extension('x-test')).toEqual('testing'); + }); + + it('should return an undefined', function() { + expect(d1.extension('x-test2')).toEqual(undefined); + expect(d2.extension('x-test')).toEqual(undefined); + expect(d3.extension('x-test')).toEqual(undefined); + }); + + it('should return null if key is not prefixed by `x-`', function() { + expect(d1.extension('test')).toEqual(null); + }); + }); + + describe('hasExt()', function() { + it('should return a boolean indicating if the object has appropriate extension by key', function() { + expect(d1.hasExt('x-test')).toEqual(true); + expect(d1.hasExt('x-test2')).toEqual(false); + expect(d2.hasExt('x-test')).toEqual(false); + expect(d3.hasExt('x-test')).toEqual(false); + }); + + it('should return false key is not prefixed by `x-`', function() { + expect(d1.hasExt('test')).toEqual(false); + }); + }); + + describe('ext()', function() { + it('should return a value', function() { + expect(d1.ext('x-test')).toEqual('testing'); + }); + + it('should return an undefined', function() { + expect(d1.ext('x-test2')).toEqual(undefined); + expect(d2.ext('x-test')).toEqual(undefined); + expect(d3.ext('x-test')).toEqual(undefined); + }); + + it('should return null if key is not prefixed by `x-`', function() { + expect(d1.ext('test')).toEqual(null); + }); + }); + }); +} + +export function assertTagsMixin(Model: any) { + describe('tags', function() { + const doc1 = { tags: [{ name: 'test1' }, { name: 'test2' }] }; + const doc2 = { tags: [] }; + const doc3 = {}; + const d1 = new Model(doc1); + const d2 = new Model(doc2); + const d3 = new Model(doc3); + + describe('hasTags()', function() { + it('should return a boolean indicating if the object has tags', function() { + expect(d1.hasTags()).toEqual(true); + expect(d2.hasTags()).toEqual(false); + expect(d3.hasTags()).toEqual(false); + }); + }); + + describe('tags()', function() { + it('should return an array of tag objects', function() { + expect(Array.isArray(d1.tags())).toEqual(true); + d1.tags().forEach((tag, i) => { + expect(tag instanceof Tag).toEqual(true); + expect(tag.json()).toEqual(doc1.tags[i]); + }); + }); + + it('should return an empty array', function() { + expect(d2.tags()).toEqual([]); + expect(d3.tags()).toEqual([]); + }); + }); + + describe('tagNames()', function() { + it('should return an array of tag names', function() { + expect(d1.tagNames()).toEqual(['test1', 'test2']); + }); + + it('should return an empty array', function() { + expect(d2.tagNames()).toEqual([]); + expect(d3.tagNames()).toEqual([]); + }); + }); + + describe('hasTag()', function() { + it('should return a boolean indicating if the tags object has appropriate tag by name', function() { + expect(d1.hasTag('test1')).toEqual(true); + expect(d1.hasTag('test2')).toEqual(true); + expect(d1.hasTag('test3')).toEqual(false); + expect(d2.hasTag('test1')).toEqual(false); + expect(d3.hasTag('test1')).toEqual(false); + }); + }); + + describe('tag()', function() { + it('should return a tag object', function() { + expect(d1.tag('test1')).not.toEqual(null); + expect(d1.tag('test1') instanceof Tag).toEqual(true); + expect(d1.tag('test2')).not.toEqual(null); + expect(d1.tag('test2') instanceof Tag).toEqual(true); + }); + + it('should return a null', function() { + expect(d1.tag('test3')).toEqual(null); + expect(d1.tag('test3') instanceof Tag).not.toEqual(true); + expect(d2.tag('test1')).toEqual(null); + expect(d2.tag('test1') instanceof Tag).not.toEqual(true); + expect(d3.tag('test1')).toEqual(null); + expect(d3.tag('test1') instanceof Tag).not.toEqual(true); + }); + }); + }); +} \ No newline at end of file diff --git a/test/old-api/oauth-flow.spec.ts b/test/old-api/oauth-flow.spec.ts new file mode 100644 index 000000000..8b7ab0647 --- /dev/null +++ b/test/old-api/oauth-flow.spec.ts @@ -0,0 +1,37 @@ +import { OAuthFlow } from '../../src/old-api/oauth-flow'; +import { assertExtensionsMixin } from './mixins'; + +describe('OAuthFlow', function() { + const json = { authorizationUrl: 'testing', refreshUrl: 'testing', tokenUrl: 'testing', scopes: { test: 'testing' }, 'x-test': 'testing' }; + + describe('authorizationUrl()', function() { + it('should return a string', function() { + const d = new OAuthFlow(json); + expect(d.authorizationUrl()).toEqual(json.authorizationUrl); + }); + }); + + describe('tokenUrl()', function() { + it('should return a string', function() { + const d = new OAuthFlow(json); + expect(d.tokenUrl()).toEqual(json.tokenUrl); + }); + }); + + describe('refreshUrl()', function() { + it('should return a string', function() { + const d = new OAuthFlow(json); + expect(d.refreshUrl()).toEqual(json.refreshUrl); + }); + }); + + describe('scopes()', function() { + it('should return a Map of strings', function() { + const d = new OAuthFlow(json); + expect(typeof d.scopes()).toEqual('object'); + expect(d.scopes()).toEqual(json.scopes); + }); + }); + + assertExtensionsMixin(OAuthFlow); +}); \ No newline at end of file diff --git a/test/old-api/operation-trait.spec.ts b/test/old-api/operation-trait.spec.ts new file mode 100644 index 000000000..e9b6b21b1 --- /dev/null +++ b/test/old-api/operation-trait.spec.ts @@ -0,0 +1,40 @@ +import { OperationTrait } from '../../src/old-api/operation-trait'; +import { assertDescriptionMixin, assertExternalDocumentationMixin, assertExtensionsMixin, assertBindingsMixin, assertTagsMixin } from './mixins'; + +describe('OperationTrait', function() { + const json: any = { summary: 't', description: 'test', operationId: 'test', tags: [{name: 'tag1'}], externalDocs: { url: 'somewhere' }, bindings: { amqp: { test: true } }, 'x-test': 'testing' }; + + describe('summary()', function() { + it('should return a string', function() { + const d = new OperationTrait(json); + expect(d.summary()).toEqual(json.summary); + }); + }); + + describe('id()', function() { + it('should return a string', function() { + const d = new OperationTrait(json); + expect(d.id()).toEqual(json.operationId); + }); + }); + + describe('messages()', function() { + it('should NOT have a messages method', function() { + const d = new OperationTrait(json); + expect((d as any).messages).toEqual(undefined); + }); + }); + + describe('message()', function() { + it('should NOT have a message method', function() { + const d = new OperationTrait(json); + expect((d as any).message).toEqual(undefined); + }); + }); + + assertDescriptionMixin(OperationTrait); + assertExternalDocumentationMixin(OperationTrait); + assertBindingsMixin(OperationTrait); + assertTagsMixin(OperationTrait); + assertExtensionsMixin(OperationTrait); +}); \ No newline at end of file diff --git a/test/old-api/operation.spec.ts b/test/old-api/operation.spec.ts new file mode 100644 index 000000000..75c900db2 --- /dev/null +++ b/test/old-api/operation.spec.ts @@ -0,0 +1,133 @@ +import { Operation } from '../../src/old-api/operation'; +import { SecurityRequirement } from '../../src/old-api/security-requirement'; +import { assertDescriptionMixin, assertExternalDocumentationMixin, assertExtensionsMixin, assertBindingsMixin, assertTagsMixin } from './mixins'; + +describe('Operation', function() { + const json: any = { summary: 't', description: 'test', traits: [{bindings: {kafka: {clientId: 'my-app-id'}}}], operationId: 'test', tags: [{name: 'tag1'}], externalDocs: { url: 'somewhere' }, bindings: { amqp: { test: true } }, message: { test: true }, 'x-test': 'testing', security: [{ oauth2: ['user:read'] }]}; + + describe('summary()', function() { + it('should return a string', function() { + const d = new Operation(json); + expect(d.summary()).toEqual(json.summary); + }); + }); + + describe('traits()', function() { + it('should return a list of traits', function() { + const d = new Operation(json); + expect(d.traits()[0].json()).toEqual(json.traits[0]); + }); + + it('should return a list of traits from x-parser-original-traits', function() { + const { traits, ...newJs } = json; + newJs['x-parser-original-traits'] = traits; + const d = new Operation(newJs); + expect(d.traits()[0].json()).toEqual(newJs['x-parser-original-traits'][0]); + }); + }); + + describe('hasTraits()', function() { + it('should return true', function() { + const d = new Operation(json); + expect(d.hasTraits()).toEqual(true); + }); + + it('should return true if in x-parser-original-traits', function() { + const { traits, ...newJs } = json; + newJs['x-parser-original-traits'] = traits; + const d = new Operation(newJs); + expect(d.hasTraits()).toEqual(true); + }); + + it('should return false', function() { + const { traits, ...newJs } = json; + const d = new Operation(newJs); + expect(d.hasTraits()).toEqual(false); + }); + }); + + describe('id()', function() { + it('should return a string', function() { + const d = new Operation(json); + expect(d.id()).toEqual(json.operationId); + }); + }); + + describe('messages()', function() { + it('should return an array of Message objects', function() { + const d = new Operation(json); + expect(Array.isArray(d.messages())).toEqual(true); + d.messages().forEach(m => { + expect(m.constructor.name).toEqual('Message'); + expect(m.json()).toEqual(json.message); + }); + }); + + it('should return an array of Message objects when using oneOf', function() { + const doc = { message: { oneOf: [{test: true }, {test: false}] } }; + const d = new Operation(doc); + expect(Array.isArray(d.messages())).toEqual(true); + d.messages().forEach((m, i) => { + expect(m.constructor.name).toEqual('Message'); + expect(m.json()).toEqual(doc.message.oneOf[i]); + }); + }); + }); + + describe('message()', function() { + it('should return null if channel doesn\'t have a message', function() { + const doc = { }; + const d = new Operation(doc); + expect(d.message()).toEqual(null); + }); + + it('should return a specific Message object', function() { + const doc = { message: { oneOf: [{ test: true }, { test: false }] } }; + const d = new Operation(doc); + expect(d.message(0)?.json()).toEqual(doc.message.oneOf[0]); + expect(d.message(1)?.json()).toEqual(doc.message.oneOf[1]); + }); + + it('should return a Message object if no index is provided and message is oneOf from one element', function() { + const doc = { message: { oneOf: [{ test: true }] } }; + const d = new Operation(doc); + expect(d.message()?.json()).toEqual(doc.message.oneOf[0]); + }); + + it('should return null when index is out of bounds', function() { + const doc = { message: { oneOf: [{ test: true }, { test: false }] } }; + const d = new Operation(doc); + expect(d.message(100)).toEqual(null); + }); + + it('should return null if index is not a number', function() { + const doc = { message: { oneOf: [{ test: true }, { test: false }] } }; + const d = new Operation(doc); + expect(d.message('0')).toEqual(null); + }); + + it('should return message object if no index is provided and message is not oneOf', function() { + const doc = { message: { test: true } }; + const d = new Operation(doc); + expect(d.message()?.json()).toEqual(doc.message); + }); + }); + + describe('security()', function() { + it('should return an array of security requirements objects', function() { + const d = new Operation(json); + expect(Array.isArray(d.security())).toEqual(true); + expect(d.security()).toHaveLength(1); + d.security()?.forEach((s, i) => { + expect(s).toBeInstanceOf(SecurityRequirement); + expect(s.json()).toEqual(json.security[i]); + }); + }); + }); + + assertDescriptionMixin(Operation); + assertExternalDocumentationMixin(Operation); + assertBindingsMixin(Operation); + assertTagsMixin(Operation); + assertExtensionsMixin(Operation); +}); \ No newline at end of file diff --git a/test/old-api/schema.spec.ts b/test/old-api/schema.spec.ts new file mode 100644 index 000000000..0aa828187 --- /dev/null +++ b/test/old-api/schema.spec.ts @@ -0,0 +1,777 @@ +import { Schema } from '../../src/old-api/schema'; +import { assertDescriptionMixin, assertExtensionsMixin, assertExternalDocumentationMixin } from './mixins'; + +describe('Schema', function() { + describe('uid()', function() { + it('should return a string', function() { + const doc: any = { $id: 'test' }; + const d = new Schema(doc); + expect(typeof d.uid()).toEqual('string'); + expect(d.uid()).toEqual(doc.$id); + }); + + it('should return a string with the value of x-parser-schema-id when $id is not available', function() { + const doc: any = { 'x-parser-schema-id': 'test' }; + const d = new Schema(doc); + expect(typeof d.uid()).toEqual('string'); + expect(d.uid()).toEqual(doc['x-parser-schema-id']); + }); + }); + + describe('$id()', function() { + it('should return a string', function() { + const doc: any = { $id: 'test' }; + const d = new Schema(doc); + expect(typeof d.$id()).toEqual('string'); + expect(d.$id()).toEqual(doc.$id); + }); + }); + + describe('maximum()', function() { + it('should return a number', function() { + const doc: any = { type: 'number', maximum: 10 }; + const d = new Schema(doc); + expect(typeof d.maximum()).toEqual('number'); + expect(d.maximum()).toEqual(doc.maximum); + }); + }); + + describe('exclusiveMaximum()', function() { + it('should return a number', function() { + const doc: any = { type: 'number', exclusiveMaximum: 10 }; + const d = new Schema(doc); + expect(typeof d.exclusiveMaximum()).toEqual('number'); + expect(d.exclusiveMaximum()).toEqual(doc.exclusiveMaximum); + }); + }); + + describe('minimum()', function() { + it('should return a number', function() { + const doc: any = { type: 'number', minimum: 10 }; + const d = new Schema(doc); + expect(typeof d.minimum()).toEqual('number'); + expect(d.minimum()).toEqual(doc.minimum); + }); + }); + + describe('exclusiveMinimum()', function() { + it('should return a number', function() { + const doc: any = { type: 'number', exclusiveMinimum: 10 }; + const d = new Schema(doc); + expect(typeof d.exclusiveMinimum()).toEqual('number'); + expect(d.exclusiveMinimum()).toEqual(doc.exclusiveMinimum); + }); + }); + + describe('multipleOf()', function() { + it('should return a number', function() { + const doc: any = { type: 'number', multipleOf: 1.0 }; + const d = new Schema(doc); + expect(typeof d.multipleOf()).toEqual('number'); + expect(d.multipleOf()).toEqual(doc.multipleOf); + }); + }); + + describe('maxLength()', function() { + it('should return a number', function() { + const doc: any = { type: 'string', maxLength: 10 }; + const d = new Schema(doc); + expect(typeof d.maxLength()).toEqual('number'); + expect(d.maxLength()).toEqual(doc.maxLength); + }); + }); + + describe('minLength()', function() { + it('should return a number', function() { + const doc: any = { type: 'string', minLength: 10 }; + const d = new Schema(doc); + expect(typeof d.minLength()).toEqual('number'); + expect(d.minLength()).toEqual(doc.minLength); + }); + }); + + describe('pattern()', function() { + it('should return a string', function() { + const doc: any = { type: 'string', pattern: '^test' }; + const d = new Schema(doc); + expect(typeof d.pattern()).toEqual('string'); + expect(d.pattern()).toEqual(doc.pattern); + }); + }); + + describe('maxItems()', function() { + it('should return a number', function() { + const doc: any = { type: 'array', maxItems: 10 }; + const d = new Schema(doc); + expect(typeof d.maxItems()).toEqual('number'); + expect(d.maxItems()).toEqual(doc.maxItems); + }); + }); + + describe('minItems()', function() { + it('should return a number', function() { + const doc: any = { type: 'array', minItems: 10 }; + const d = new Schema(doc); + expect(typeof d.minItems()).toEqual('number'); + expect(d.minItems()).toEqual(doc.minItems); + }); + }); + + describe('uniqueItems()', function() { + it('should return a boolean', function() { + const doc: any = { type: 'array', uniqueItems: true }; + const d = new Schema(doc); + expect(typeof d.uniqueItems()).toEqual('boolean'); + expect(d.uniqueItems()).toEqual(doc.uniqueItems); + }); + }); + + describe('maxProperties()', function() { + it('should return a number', function() { + const doc: any = { type: 'object', maxProperties: 10 }; + const d = new Schema(doc); + expect(typeof d.maxProperties()).toEqual('number'); + expect(d.maxProperties()).toEqual(doc.maxProperties); + }); + }); + + describe('minProperties()', function() { + it('should return a number', function() { + const doc: any = { type: 'object', minProperties: 10 }; + const d = new Schema(doc); + expect(typeof d.minProperties()).toEqual('number'); + expect(d.minProperties()).toEqual(doc.minProperties); + }); + }); + + describe('required()', function() { + it('should return a number', function() { + const doc: any = { type: 'object', required: ['test'] }; + const d = new Schema(doc); + expect(Array.isArray(d.required())).toEqual(true); + expect(d.required()).toEqual(doc.required); + }); + }); + + describe('enum()', function() { + it('should return a number', function() { + const doc: any = { type: 'string', enum: ['test'] }; + const d = new Schema(doc); + expect(Array.isArray(d.enum())).toEqual(true); + expect(d.enum()).toEqual(doc.enum); + }); + }); + + describe('type()', function() { + it('should return a string', function() { + const doc: any = { type: 'string' }; + const d = new Schema(doc); + expect(typeof d.type()).toEqual('string'); + expect(d.type()).toEqual(doc.type); + }); + + it('should return an array of strings', function() { + const doc: any = { type: ['number', 'string'] }; + const d = new Schema(doc); + expect(Array.isArray(d.type())).toEqual(true); + expect(d.type()).toEqual(doc.type); + }); + }); + + describe('allOf()', function() { + it('should return an array of Schema objects', function() { + const doc: any = { allOf: [{ type: 'string' }, { type: 'number' }] }; + const d = new Schema(doc); + expect(Array.isArray(d.allOf())).toEqual(true); + d.allOf()?.forEach((s, i) => { + expect(s).toBeInstanceOf(Schema); + expect(s.json()).toEqual(doc.allOf[i]); + }); + }); + }); + + describe('oneOf()', function() { + it('should return an array of Schema objects', function() { + const doc: any = { oneOf: [{ type: 'string' }, { type: 'number' }] }; + const d = new Schema(doc); + expect(Array.isArray(d.oneOf())).toEqual(true); + d.oneOf()?.forEach((s, i) => { + expect(s).toBeInstanceOf(Schema); + expect(s.json()).toEqual(doc.oneOf[i]); + }); + }); + }); + + describe('anyOf()', function() { + it('should return an array of Schema objects', function() { + const doc: any = { anyOf: [{ type: 'string' }, { type: 'number' }] }; + const d = new Schema(doc); + expect(Array.isArray(d.anyOf())).toEqual(true); + d.anyOf()?.forEach((s, i) => { + expect(s).toBeInstanceOf(Schema); + expect(s.json()).toEqual(doc.anyOf[i]); + }); + }); + }); + + describe('not()', function() { + it('should return a Schema object', function() { + const doc: any = { not: { type: 'string' } }; + const d = new Schema(doc); + expect(d.not()).toBeInstanceOf(Schema); + expect(d.not()?.json()).toEqual(doc.not); + }); + + it('should return null when not is omitted from the json document', function() { + const doc: any = {}; + const d = new Schema(doc); + expect(d.not()).toEqual(null); + }); + }); + + describe('items()', function() { + it('should return a Schema object', function() { + const doc: any = { items: { type: 'string' } }; + const d = new Schema(doc); + expect(d.items()).toBeInstanceOf(Schema); + expect((d.items() as Schema).json()).toEqual(doc.items); + }); + + it('should return an array of Schema objects', function() { + const doc: any = { items: [{ type: 'string' }, { type: 'number' }] }; + const d = new Schema(doc); + expect(Array.isArray(d.items())).toEqual(true); + (d.items() as Schema[]).forEach((s, i) => { + expect(s).toBeInstanceOf(Schema); + expect(s.json()).toEqual(doc.items[i]); + }); + }); + }); + + describe('properties()', function() { + it('should return a map of Schema objects', function() { + const doc: any = { properties: { test: { type: 'string' } } }; + const d = new Schema(doc); + expect(typeof d.properties()).toEqual('object'); + Object.keys(d.properties()).forEach(key => { + const s = d.properties()[key]; + expect(s).toBeInstanceOf(Schema); + expect(s.json()).toEqual(doc.properties[key]); + }); + }); + }); + + describe('property()', function() { + it('should return a specific Schema object', function() { + const doc: any = { properties: { test: { type: 'string' } } }; + const d = new Schema(doc); + expect(d.property('test')).toBeInstanceOf(Schema); + expect(d.property('test')?.json()).toEqual(doc.properties.test); + }); + }); + + describe('additionalProperties()', function() { + it('should return a Schema object', function() { + const doc: any = { additionalProperties: { type: 'string' } }; + const d = new Schema(doc); + expect(d.additionalProperties()).toBeInstanceOf(Schema); + expect((d.additionalProperties() as Schema).json()).toEqual(doc.additionalProperties); + }); + + it('should return a boolean', function() { + const doc: any = { additionalProperties: true }; + const d = new Schema(doc); + expect(typeof d.additionalProperties()).toEqual('boolean'); + expect(d.additionalProperties()).toEqual(doc.additionalProperties); + }); + + it('should return true when not defined', function() { + const doc: any = {}; + const d = new Schema(doc); + expect(d.additionalProperties()).toEqual(true); + }); + + it('should return false when null', function() { + const doc: any = { additionalProperties: null }; + const d = new Schema(doc); + expect(d.additionalProperties()).toEqual(false); + }); + }); + + describe('additionalItems()', function() { + it('should return a Schema object', function() { + const doc: any = { additionalItems: { type: 'string' } }; + const d = new Schema(doc); + expect(d.additionalItems()).toBeInstanceOf(Schema); + expect((d.additionalItems() as Schema).json()).toEqual(doc.additionalItems); + }); + + it('should return a boolean', function() { + const doc: any = { additionalItems: true }; + const d = new Schema(doc); + expect(typeof d.additionalItems()).toEqual('boolean'); + expect(d.additionalItems()).toEqual(doc.additionalItems); + }); + + it('should return true when not defined', function() { + const doc: any = {}; + const d = new Schema(doc); + expect(d.additionalItems()).toEqual(true); + }); + + it('should return false when null', function() { + const doc: any = { additionalItems: null }; + const d = new Schema(doc); + expect(d.additionalItems()).toEqual(false); + }); + }); + + describe('patternProperties()', function() { + it('should return a map of Schema objects', function() { + const doc: any = { patternProperties: { test: { type: 'string' } } }; + const d = new Schema(doc); + expect(typeof d.patternProperties()).toEqual('object'); + Object.keys(d.patternProperties()).forEach(key => { + const s = d.patternProperties()[key]; + expect(s).toBeInstanceOf(Schema); + expect(s.json()).toEqual(doc.patternProperties[key]); + }); + }); + }); + + describe('const()', function() { + it('should return a number', function() { + const doc: any = { type: 'object', const: 10 }; + const d = new Schema(doc); + expect(typeof d.const()).toEqual('number'); + expect(d.const()).toEqual(doc.const); + }); + + it('should return null', function() { + const doc: any = { type: 'object', const: null }; + const d = new Schema(doc); + expect(d.const()).toEqual(doc.const); + }); + + it('should return an object', function() { + const doc: any = { type: 'object', const: { test: true } }; + const d = new Schema(doc); + expect(typeof d.const()).toEqual('object'); + expect(d.const()).toEqual(doc.const); + }); + + it('should return an array', function() { + const doc: any = { type: 'object', const: ['test'] }; + const d = new Schema(doc); + expect(Array.isArray(d.const())).toEqual(true); + expect(d.const()).toEqual(doc.const); + }); + }); + + describe('contains()', function() { + it('should return a Schema object', function() { + const doc: any = { contains: { type: 'string' } }; + const d = new Schema(doc); + expect(d.contains()).toBeInstanceOf(Schema); + expect(d.contains()?.json()).toEqual(doc.contains); + }); + + it('should return null when contains is omitted from the json document', function() { + const doc: any = {}; + const d = new Schema(doc); + expect(d.contains()).toEqual(null); + }); + }); + + describe('dependencies()', function() { + it('should return a map with an array value', function() { + const doc: any = { properties: { test: { type: 'string' }, test2: { type: 'number' } }, dependencies: { test: ['test2'] } }; + const d = new Schema(doc); + expect(typeof d.dependencies()).toEqual('object'); + Object.keys(d.dependencies() || {}).forEach(key => { + const v = d.dependencies()![key]; + expect(Array.isArray(v)).toEqual(true); + expect(v).toEqual(doc.dependencies[key]); + }); + }); + + it('should return a map with a Schema value', function() { + const doc: any = { properties: { test: { type: 'string' } }, dependencies: { test: { properties: { test2: { type: 'number' } } } } }; + const d = new Schema(doc); + expect(typeof d.dependencies()).toEqual('object'); + Object.keys(d.dependencies() || {}).forEach(key => { + const s = d.dependencies()![key]; + expect(s).toBeInstanceOf(Schema); + expect((s as Schema).json()).toEqual(doc.dependencies[key]); + }); + }); + + it('should return null when dependencies are omitted from the json document', function() { + const doc: any = {}; + const d = new Schema(doc); + expect(d.dependencies()).toEqual(null); + }); + }); + + describe('propertyNames()', function() { + it('should return a Schema object', function() { + const doc: any = { propertyNames: { type: 'string' } }; + const d = new Schema(doc); + expect(d.propertyNames()).toBeInstanceOf(Schema); + expect(d.propertyNames()?.json()).toEqual(doc.propertyNames); + }); + + it('should return null when propertyNames are omitted from the json document', function() { + const doc: any = {}; + const d = new Schema(doc); + expect(d.propertyNames()).toEqual(null); + }); + }); + + describe('if()', function() { + it('should return a Schema object', function() { + const doc: any = { if: { type: 'string' } }; + const d = new Schema(doc); + expect(d.if()).toBeInstanceOf(Schema); + expect(d.if()?.json()).toEqual(doc.if); + }); + + it('should return null when if is omitted from the json document', function() { + const doc: any = {}; + const d = new Schema(doc); + expect(d.if()).toEqual(null); + }); + }); + + describe('then()', function() { + it('should return a Schema object', function() { + const doc: any = { then: { type: 'string' } }; + const d = new Schema(doc); + expect(d.then()).toBeInstanceOf(Schema); + expect(d.then()?.json()).toEqual(doc.then); + }); + + it('should return null when then is omitted from the json document', function() { + const doc: any = {}; + const d = new Schema(doc); + expect(d.then()).toEqual(null); + }); + }); + + describe('else()', function() { + it('should return a Schema object', function() { + const doc: any = { else: { type: 'string' } }; + const d = new Schema(doc); + expect(d.else()).toBeInstanceOf(Schema); + expect(d.else()?.json()).toEqual(doc.else); + }); + + it('should return null when else is omitted from the json document', function() { + const doc: any = {}; + const d = new Schema(doc); + expect(d.else()).toEqual(null); + }); + }); + + describe('format()', function() { + it('should return a string', function() { + const doc: any = { type: 'string', format: 'email' }; + const d = new Schema(doc); + expect(typeof d.format()).toEqual('string'); + expect(d.format()).toEqual(doc.format); + }); + }); + + describe('contentEncoding()', function() { + it('should return a string', function() { + const doc: any = { type: 'string', contentEncoding: 'base64' }; + const d = new Schema(doc); + expect(typeof d.contentEncoding()).toEqual('string'); + expect(d.contentEncoding()).toEqual(doc.contentEncoding); + }); + }); + + describe('contentMediaType()', function() { + it('should return a string', function() { + const doc: any = { type: 'string', contentMediaType: 'text/html' }; + const d = new Schema(doc); + expect(typeof d.contentMediaType()).toEqual('string'); + expect(d.contentMediaType()).toEqual(doc.contentMediaType); + }); + }); + + describe('definitions()', function() { + it('should return a map of Schema objects', function() { + const doc: any = { definitions: { test: { type: 'string' } } }; + const d = new Schema(doc); + expect(typeof d.definitions()).toEqual('object'); + Object.keys(d.definitions()).forEach(key => { + const s = d.definitions()[key]; + expect(s).toBeInstanceOf(Schema); + expect(s.json()).toEqual(doc.definitions[key]); + }); + }); + }); + + describe('title()', function() { + it('should return a string', function() { + const doc: any = { type: 'string', title: 'test' }; + const d = new Schema(doc); + expect(typeof d.title()).toEqual('string'); + expect(d.title()).toEqual(doc.title); + }); + }); + + describe('default()', function() { + it('should return a value', function() { + const doc: any = { type: 'string', default: 'test' }; + const d = new Schema(doc); + expect(d.default()).toEqual('test'); + }); + }); + + describe('deprecated()', function() { + it('should return a boolean', function() { + const doc: any = { type: 'string', deprecated: true }; + const d = new Schema(doc); + expect(typeof d.deprecated()).toEqual('boolean'); + expect(d.deprecated()).toEqual(doc.deprecated); + }); + }); + + describe('discriminator()', function() { + it('should return a string', function() { + const doc: any = { type: 'string', discriminator: 'someType' }; + const d = new Schema(doc); + expect(typeof d.discriminator()).toEqual('string'); + expect(d.discriminator()).toEqual(doc.discriminator); + }); + }); + + describe('readOnly()', function() { + it('should return a boolean', function() { + const doc: any = { type: 'string', readOnly: true }; + const d = new Schema(doc); + expect(typeof d.readOnly()).toEqual('boolean'); + expect(d.readOnly()).toEqual(doc.readOnly); + }); + }); + + describe('writeOnly()', function() { + it('should return a boolean', function() { + const doc: any = { type: 'string', writeOnly: true }; + const d = new Schema(doc); + expect(typeof d.writeOnly()).toEqual('boolean'); + expect(d.writeOnly()).toEqual(doc.writeOnly); + }); + }); + + describe('examples()', function() { + it('should return an array', function() { + const doc: any = { type: 'string', examples: ['test'] }; + const d = new Schema(doc); + expect(Array.isArray(d.examples())).toEqual(true); + expect(d.examples()).toEqual(doc.examples); + }); + }); + + describe('isBooleanSchema()', function() { + it('should return a true when schema is true', function() { + const d = new Schema(true as any); + expect(d.isBooleanSchema()).toEqual(true); + }); + + it('_json property should equal to true when schema is true', function() { + const d = new Schema(true as any); + expect(d.json()).toEqual(true); + }); + + it('should return a true when schema is false', function() { + const d = new Schema(false as any); + expect(d.isBooleanSchema()).toEqual(true); + }); + + it('_json property should equal to false when schema is false', function() { + const d = new Schema(false as any); + expect(d.json()).toEqual(false); + }); + }); + + describe('isCircular()', function() { + it('should return a true when appropriate extension is injected', function() { + const doc: any = { 'x-parser-circular': true }; + const d = new Schema(doc); + expect(d.isCircular()).toEqual(true); + }); + + it('should return a true when schema has circular reference', function() { + const doc: any = { + properties: { + nonCircular: { + type: 'string', + }, + circular: {}, + } + }; + doc.properties.circular = doc; + const d = new Schema(doc); + expect(d.isCircular()).toEqual(false); + expect(d.properties()['nonCircular'].isCircular()).toEqual(false); + expect(d.properties()['circular'].isCircular()).toEqual(true); + }); + + it('should return a true when schema has unresolved $ref', function() { + const doc: any = { + properties: { + nonCircular: { + type: 'string', + }, + circular: { + $ref: '../../', + }, + } + }; + doc.properties.circular = doc; + const d = new Schema(doc); + expect(d.isCircular()).toEqual(false); + expect(d.properties()['nonCircular'].isCircular()).toEqual(false); + expect(d.properties()['circular'].isCircular()).toEqual(true); + }); + }); + + describe('circularSchema()', function() { + it('should return a circular schema', function() { + const doc: any = { + properties: { + nonCircular: { + type: 'string', + }, + circular: {}, + } + }; + doc.properties.circular = doc; + const d = new Schema(doc); + expect(d.isCircular()).toEqual(false); + expect(d.properties()['nonCircular'].circularSchema()).toEqual(undefined); + expect(d.properties()['circular'].circularSchema()).toEqual(d); + }); + }); + + describe('circularProps()', function() { + it('should return values from appropriate extenion', function() { + const doc: any = { + properties: { + nonCircular: { + type: 'string', + }, + circular1: {}, + circular2: {}, + }, + 'x-parser-circular-props': [ + 'circular1', + 'circular2', + ] + }; + const d = new Schema(doc); + expect(d.circularProps()).toEqual([ + 'circular1', + 'circular2', + ]); + }); + + it('should return empty array if circular properties do not exist', function() { + const doc: any = { + properties: { + nonCircular1: { + type: 'string', + }, + nonCircular2: { + type: 'number', + }, + nonCircular3: { + type: 'integer', + }, + } + }; + const d = new Schema(doc); + expect(d.circularProps()).toEqual([]); + }); + + it('should return names of circular properties', function() { + const doc: any = { + properties: { + nonCircular: { + type: 'string', + }, + circular1: {}, + circular2: {}, + } + }; + doc.properties.circular1 = doc; + doc.properties.circular2 = doc; + const d = new Schema(doc); + expect(d.circularProps()).toEqual([ + 'circular1', + 'circular2', + ]); + }); + }); + + describe('hasCircularProps()', function() { + it('should return true when appropriate extenion is injected', function() { + const doc: any = { + properties: { + nonCircular: { + type: 'string', + }, + circular1: {}, + circular2: {}, + }, + 'x-parser-circular-props': [ + 'circular1', + 'circular2', + ] + }; + const d = new Schema(doc); + expect(d.hasCircularProps()).toEqual(true); + }); + + it('should return false when circular properties do not exist', function() { + const doc: any = { + properties: { + nonCircular1: { + type: 'string', + }, + nonCircular2: { + type: 'number', + }, + nonCircular3: { + type: 'integer', + }, + } + }; + const d = new Schema(doc); + expect(d.hasCircularProps()).toEqual(false); + }); + + it('should return true when circular properties exist', function() { + const doc: any = { + properties: { + nonCircular: { + type: 'string', + }, + circular1: {}, + circular2: {}, + } + }; + doc.properties.circular1 = doc; + doc.properties.circular2 = doc; + const d = new Schema(doc); + expect(d.hasCircularProps()).toEqual(true); + }); + }); + + assertDescriptionMixin(Schema); + assertExtensionsMixin(Schema); + assertExternalDocumentationMixin(Schema); +}); \ No newline at end of file diff --git a/test/old-api/security-scheme.spec.ts b/test/old-api/security-scheme.spec.ts new file mode 100644 index 000000000..7a71a63df --- /dev/null +++ b/test/old-api/security-scheme.spec.ts @@ -0,0 +1,63 @@ +import { SecurityScheme } from '../../src/old-api/security-scheme'; +import { OAuthFlow } from '../../src/old-api/oauth-flow'; +import { assertDescriptionMixin, assertExtensionsMixin } from './mixins'; + +import type { v2 } from '../../src/spec-types'; + +describe('SecurityScheme', function() { + const json: v2.SecuritySchemeObject = { type: 'apiKey', description: 'testing', name: 'testing', in: 'cookie', scheme: 'testing', bearerFormat: 'testing', openIdConnectUrl: 'testing', flows: { authorizationCode: { authorizationUrl: '', tokenUrl: '', scopes: {}, } }, 'x-test': 'testing' }; + + describe('type()', function() { + it('should return a string', function() { + const d = new SecurityScheme(json); + expect(d.type()).toEqual(json.type); + }); + }); + + describe('name()', function() { + it('should return a string', function() { + const d = new SecurityScheme(json); + expect(d.name()).toEqual(json.name); + }); + }); + + describe('in()', function() { + it('should return a string', function() { + const d = new SecurityScheme(json); + expect(d.in()).toEqual(json.in); + }); + }); + + describe('scheme()', function() { + it('should return a string', function() { + const d = new SecurityScheme(json); + expect(d.scheme()).toEqual(json.scheme); + }); + }); + + describe('bearerFormat()', function() { + it('should return a string', function() { + const d = new SecurityScheme(json); + expect(d.bearerFormat()).toEqual(json.bearerFormat); + }); + }); + + describe('openIdConnectUrl()', function() { + it('should return a string', function() { + const d = new SecurityScheme(json); + expect(d.openIdConnectUrl()).toEqual(json.openIdConnectUrl); + }); + }); + + describe('flows()', function() { + it('should return a map of OAuthFlow objects', function() { + const d = new SecurityScheme(json); + expect(typeof d.flows()).toEqual('object'); + expect(d.flows().authorizationCode).toBeInstanceOf(OAuthFlow); + expect(d.flows().authorizationCode.json()).toEqual(json.flows?.authorizationCode); + }); + }); + + assertDescriptionMixin(SecurityScheme); + assertExtensionsMixin(SecurityScheme); +}); \ No newline at end of file diff --git a/test/old-api/server-variable.spec.ts b/test/old-api/server-variable.spec.ts new file mode 100644 index 000000000..99c544a4c --- /dev/null +++ b/test/old-api/server-variable.spec.ts @@ -0,0 +1,66 @@ +import { ServerVariable } from '../../src/old-api/server-variable'; +import { assertDescriptionMixin, assertExtensionsMixin } from './mixins'; + +describe('ServerVariable', function() { + const json = { enum: ['value1', 'value2'], default: 'value1', description: 'test1', examples: ['value2'], 'x-test': 'testing' }; + + describe('allowedValues()', function() { + it('should return an array of strings', function() { + const d = new ServerVariable(json); + expect(d.allowedValues()).toEqual(json.enum); + }); + }); + + describe('hasAllowedValues()', function() { + it('should return a true when enum is present', function() { + const d = new ServerVariable(json); + expect(d.hasAllowedValues()).toEqual(true); + }); + + it('should return a false when enum is not present', function() { + const d = new ServerVariable({}); + expect(d.hasAllowedValues()).toEqual(false); + }); + }); + + describe('allows()', function() { + it('should return true if the value is in the enum', function() { + const d = new ServerVariable(json); + expect(d.allows('value1')).toEqual(true); + }); + + it('should return false if the value is not in the enum', function() { + const d = new ServerVariable(json); + expect(d.allows('not found')).toEqual(false); + }); + }); + + describe('defaultValue()', function() { + it('should return a string', function() { + const d = new ServerVariable(json); + expect(d.defaultValue()).toEqual(json.default); + }); + }); + + describe('hasDefaultValue()', function() { + it('should return true if default is present', function() { + const d = new ServerVariable(json); + expect(d.hasDefaultValue()).toEqual(true); + }); + + it('should return false if the value is not in the enum', function() { + const d = new ServerVariable({}); + expect(d.hasDefaultValue()).toEqual(false); + }); + }); + + describe('examples()', function() { + it('should return an array of strings', function() { + const d = new ServerVariable(json); + expect(d.examples()).toEqual(json.examples); + }); + }); + + assertDescriptionMixin(ServerVariable); + assertExtensionsMixin(ServerVariable); +}); \ No newline at end of file diff --git a/test/old-api/server.spec.ts b/test/old-api/server.spec.ts new file mode 100644 index 000000000..d9d569405 --- /dev/null +++ b/test/old-api/server.spec.ts @@ -0,0 +1,74 @@ +import { Server } from '../../src/old-api/server'; +import { ServerVariable } from '../../src/old-api/server-variable'; +import { SecurityRequirement } from '../../src/old-api/security-requirement'; +import { assertDescriptionMixin, assertExtensionsMixin, assertBindingsMixin } from './mixins'; + +import type { v2 } from '../../src/spec-types'; + +describe('Server', function() { + const json: v2.ServerObject = { url: 'test.com', protocol: 'amqp', protocolVersion: '0-9-1', description: 'test', variables: { test1: { enum: ['value1', 'value2'], default: 'value1', description: 'test1', examples: ['value2'] } }, security: [{ oauth2: ['user:read'] }], bindings: { amqp: {} }, 'x-test': 'testing' }; + + describe('url()', function() { + it('should return a string', function() { + const d = new Server(json); + expect(d.url()).toEqual(json.url); + }); + }); + + describe('protocol()', function() { + it('should return a string', function() { + const d = new Server(json); + expect(d.protocol()).toEqual(json.protocol); + }); + }); + + describe('protocolVersion()', function() { + it('should return a string', function() { + const d = new Server(json); + expect(d.protocolVersion()).toEqual(json.protocolVersion); + }); + }); + + describe('hasVariables()', function() { + it('should return a boolean indicating if a server URL has variables', function() { + const doc = { url: 'test1:{port}', variables: { port: { desc: 'test1' } } } as any; + const docNoServerVariables = { url: 'test' } as any; + const d = new Server(doc); + const d2 = new Server(docNoServerVariables); + expect(d.hasVariables()).toEqual(true); + expect(d2.hasVariables()).toEqual(false); + }); + }); + + describe('variables()', function() { + it('should return a map of ServerVariable objects', function() { + const d = new Server(json); + expect(typeof d.variables()).toEqual('object'); + expect(d.variables().test1).toBeInstanceOf(ServerVariable); + expect(d.variables().test1.json()).toEqual(json?.variables?.test1); + }); + }); + + describe('variable()', function() { + it('should return a specific ServerVariable object', function() { + const d = new Server(json); + expect(d.variable('test1')).toBeInstanceOf(ServerVariable); + expect(d.variable('test1')?.json()).toEqual(json?.variables?.test1); + }); + }); + + describe('security()', function() { + it('should return an array of security requirements objects', function() { + const d = new Server(json); + expect(Array.isArray(d.security())).toEqual(true); + d.security()?.forEach((s, i) => { + expect(s).toBeInstanceOf(SecurityRequirement); + expect(s.json()).toEqual(json?.security?.[i]); + }); + }); + }); + + assertDescriptionMixin(Server); + assertExtensionsMixin(Server); + assertBindingsMixin(Server); +}); \ No newline at end of file diff --git a/test/old-api/tag.spec.ts b/test/old-api/tag.spec.ts new file mode 100644 index 000000000..96567d159 --- /dev/null +++ b/test/old-api/tag.spec.ts @@ -0,0 +1,17 @@ +import { Tag } from '../../src/old-api/tag'; +import { assertDescriptionMixin, assertExtensionsMixin, assertExternalDocumentationMixin } from './mixins'; + +describe('Tag', function() { + const json = { name: 'test', description: 'Testing', externalDocs: { url: 'somewhere' }, 'x-test': 'testing' }; + + describe('name()', function() { + it('should return a string', function() { + const d = new Tag(json); + expect(d.name()).toEqual(json.name); + }); + }); + + assertDescriptionMixin(Tag); + assertExtensionsMixin(Tag); + assertExternalDocumentationMixin(Tag); +}); \ No newline at end of file From 981c1827b5b3bc66535381c696b2c3b70b2eb90e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Fri, 23 Sep 2022 10:29:27 +0200 Subject: [PATCH 055/126] refactor: add possibility to pass custom resolvers (unstable) (#593) --- package-lock.json | 897 +++++++++------------------------ package.json | 2 + src/parser.ts | 16 +- src/resolver.ts | 86 ++++ src/spectral.ts | 7 +- test/mocks/simple-message.yaml | 5 + test/resolver.spec.ts | 150 ++++++ 7 files changed, 510 insertions(+), 653 deletions(-) create mode 100644 src/resolver.ts create mode 100644 test/mocks/simple-message.yaml create mode 100644 test/resolver.spec.ts diff --git a/package-lock.json b/package-lock.json index bf9df1ae8..428a09cd4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,7 @@ "dependencies": { "@asyncapi/specs": "^3.1.0", "@openapi-contrib/openapi-schema-to-json-schema": "^3.2.0", + "@stoplight/json-ref-resolver": "^3.1.4", "@stoplight/spectral-core": "^1.14.1", "@stoplight/spectral-functions": "^1.7.1", "@stoplight/spectral-parsers": "^1.0.2", @@ -38,6 +39,7 @@ "@types/json-schema": "^7.0.11", "@types/lodash": "^4.14.179", "@types/node-fetch": "^2.6.2", + "@types/urijs": "^1.19.19", "@typescript-eslint/eslint-plugin": "^5.36.2", "@typescript-eslint/parser": "^5.36.2", "conventional-changelog-conventionalcommits": "^4.2.3", @@ -59,25 +61,6 @@ "webpack-cli": "^4.10.0" } }, - "../asyncapi-node": { - "name": "@asyncapi/specs", - "version": "3.1.0", - "extraneous": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.11" - }, - "devDependencies": { - "@semantic-release/commit-analyzer": "^8.0.1", - "@semantic-release/github": "7.2.3", - "@semantic-release/npm": "^7.0.3", - "@semantic-release/release-notes-generator": "^9.0.1", - "conventional-changelog-conventionalcommits": "^4.2.3", - "mocha": "^8.2.1", - "nyc": "^15.1.0", - "semantic-release": "19.0.3" - } - }, "node_modules/@ampproject/remapping": { "version": "2.1.2", "license": "Apache-2.0", @@ -90,8 +73,7 @@ }, "node_modules/@asyncapi/specs": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-3.1.0.tgz", - "integrity": "sha512-6xFvzDd54+M9g6EM259Y4a4iiFb2VzPr6eoxA/ttwTu7NRxaGScocXskXtuz53ZWx9BWZWuzwDYKfM3KBkDfiQ==" + "license": "Apache-2.0" }, "node_modules/@babel/code-frame": { "version": "7.16.7", @@ -593,9 +575,8 @@ }, "node_modules/@discoveryjs/json-ext": { "version": "0.5.7", - "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", - "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", "dev": true, + "license": "MIT", "engines": { "node": ">=10.0.0" } @@ -1878,9 +1859,8 @@ }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/set-array": "^1.0.1", "@jridgewell/sourcemap-codec": "^1.4.10", @@ -1899,18 +1879,16 @@ }, "node_modules/@jridgewell/set-array": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/source-map": { "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", - "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/gen-mapping": "^0.3.0", "@jridgewell/trace-mapping": "^0.3.9" @@ -2109,9 +2087,8 @@ }, "node_modules/@polka/url": { "version": "1.0.0-next.21", - "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz", - "integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@semantic-release/commit-analyzer": { "version": "8.0.1", @@ -2358,20 +2335,20 @@ "license": "0BSD" }, "node_modules/@stoplight/json-ref-resolver": { - "version": "3.1.3", - "license": "Apache-2.0", + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.4.tgz", + "integrity": "sha512-842JVmMsi++qpDuIX+JpQvK7YY8FXEZZb+/z4xuRfStOAVEryJT/tbgGOWxniSdxEl9Eni5D/I2afMyy6BuiNw==", "dependencies": { "@stoplight/json": "^3.17.0", "@stoplight/path": "^1.3.2", - "@stoplight/types": "^12.3.0", - "@types/urijs": "^1.19.16", + "@stoplight/types": "^12.3.0 || ^13.0.0", + "@types/urijs": "^1.19.19", "dependency-graph": "~0.11.0", "fast-memoize": "^2.5.2", "immer": "^9.0.6", - "lodash.get": "^4.4.2", - "lodash.set": "^4.3.2", + "lodash": "^4.17.21", "tslib": "^2.3.1", - "urijs": "^1.19.6" + "urijs": "^1.19.11" }, "engines": { "node": ">=8.3.0" @@ -2559,6 +2536,27 @@ "node": ">=12" } }, + "node_modules/@stoplight/spectral-ref-resolver/node_modules/@stoplight/json-ref-resolver": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.3.tgz", + "integrity": "sha512-SgoKXwVnlpIZUyAFX4W79eeuTWvXmNlMfICZixL16GZXnkjcW+uZnfmAU0ZIjcnaTgaI4mjfxn8LAP2KR6Cr0A==", + "dependencies": { + "@stoplight/json": "^3.17.0", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^12.3.0", + "@types/urijs": "^1.19.16", + "dependency-graph": "~0.11.0", + "fast-memoize": "^2.5.2", + "immer": "^9.0.6", + "lodash.get": "^4.4.2", + "lodash.set": "^4.3.2", + "tslib": "^2.3.1", + "urijs": "^1.19.6" + }, + "engines": { + "node": ">=8.3.0" + } + }, "node_modules/@stoplight/spectral-rulesets": { "version": "1.12.0", "license": "Apache-2.0", @@ -2793,9 +2791,8 @@ }, "node_modules/@types/eslint": { "version": "8.4.6", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.6.tgz", - "integrity": "sha512-/fqTbjxyFUaYNO7VcW5g+4npmqVACz1bB7RTHYuLj+PRjw9hrCwrUXVQFpChUS0JsyEFvMZ7U/PfmvWgxJhI9g==", "dev": true, + "license": "MIT", "dependencies": { "@types/estree": "*", "@types/json-schema": "*" @@ -2803,9 +2800,8 @@ }, "node_modules/@types/eslint-scope": { "version": "3.7.4", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", - "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", "dev": true, + "license": "MIT", "dependencies": { "@types/eslint": "*", "@types/estree": "*" @@ -2813,9 +2809,8 @@ }, "node_modules/@types/estree": { "version": "0.0.51", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", - "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/graceful-fs": { "version": "4.1.5", @@ -2885,9 +2880,8 @@ }, "node_modules/@types/node-fetch": { "version": "2.6.2", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.2.tgz", - "integrity": "sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*", "form-data": "^3.0.0" @@ -2920,7 +2914,8 @@ }, "node_modules/@types/urijs": { "version": "1.19.19", - "license": "MIT" + "resolved": "https://registry.npmjs.org/@types/urijs/-/urijs-1.19.19.tgz", + "integrity": "sha512-FDJNkyhmKLw7uEvTxx5tSXfPeQpO0iy73Ry+PmYZJvQy0QIWX8a7kJ4kLWRf+EbTPJEPDSgPXHaM7pzr5lmvCg==" }, "node_modules/@types/yargs": { "version": "17.0.12", @@ -2937,9 +2932,8 @@ }, "node_modules/@types/yauzl": { "version": "2.10.0", - "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==", "dev": true, + "license": "MIT", "optional": true, "dependencies": { "@types/node": "*" @@ -3172,9 +3166,8 @@ }, "node_modules/@webassemblyjs/ast": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", - "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", "dev": true, + "license": "MIT", "dependencies": { "@webassemblyjs/helper-numbers": "1.11.1", "@webassemblyjs/helper-wasm-bytecode": "1.11.1" @@ -3182,27 +3175,23 @@ }, "node_modules/@webassemblyjs/floating-point-hex-parser": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", - "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@webassemblyjs/helper-api-error": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", - "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@webassemblyjs/helper-buffer": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", - "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@webassemblyjs/helper-numbers": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", - "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", "dev": true, + "license": "MIT", "dependencies": { "@webassemblyjs/floating-point-hex-parser": "1.11.1", "@webassemblyjs/helper-api-error": "1.11.1", @@ -3211,15 +3200,13 @@ }, "node_modules/@webassemblyjs/helper-wasm-bytecode": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", - "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@webassemblyjs/helper-wasm-section": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", - "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", "dev": true, + "license": "MIT", "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-buffer": "1.11.1", @@ -3229,33 +3216,29 @@ }, "node_modules/@webassemblyjs/ieee754": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", - "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", "dev": true, + "license": "MIT", "dependencies": { "@xtuc/ieee754": "^1.2.0" } }, "node_modules/@webassemblyjs/leb128": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", - "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", "dev": true, + "license": "Apache-2.0", "dependencies": { "@xtuc/long": "4.2.2" } }, "node_modules/@webassemblyjs/utf8": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", - "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@webassemblyjs/wasm-edit": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", - "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", "dev": true, + "license": "MIT", "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-buffer": "1.11.1", @@ -3269,9 +3252,8 @@ }, "node_modules/@webassemblyjs/wasm-gen": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", - "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", "dev": true, + "license": "MIT", "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-wasm-bytecode": "1.11.1", @@ -3282,9 +3264,8 @@ }, "node_modules/@webassemblyjs/wasm-opt": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", - "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", "dev": true, + "license": "MIT", "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-buffer": "1.11.1", @@ -3294,9 +3275,8 @@ }, "node_modules/@webassemblyjs/wasm-parser": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", - "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", "dev": true, + "license": "MIT", "dependencies": { "@webassemblyjs/ast": "1.11.1", "@webassemblyjs/helper-api-error": "1.11.1", @@ -3308,9 +3288,8 @@ }, "node_modules/@webassemblyjs/wast-printer": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", - "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", "dev": true, + "license": "MIT", "dependencies": { "@webassemblyjs/ast": "1.11.1", "@xtuc/long": "4.2.2" @@ -3318,9 +3297,8 @@ }, "node_modules/@webpack-cli/configtest": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz", - "integrity": "sha512-4FB8Tj6xyVkyqjj1OaTqCjXYULB9FMkqQ8yGrZjRDrYh0nOE+7Lhs45WioWQQMV+ceFlE368Ukhe6xdvJM9Egg==", "dev": true, + "license": "MIT", "peerDependencies": { "webpack": "4.x.x || 5.x.x", "webpack-cli": "4.x.x" @@ -3328,9 +3306,8 @@ }, "node_modules/@webpack-cli/info": { "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.5.0.tgz", - "integrity": "sha512-e8tSXZpw2hPl2uMJY6fsMswaok5FdlGNRTktvFk2sD8RjH0hE2+XistawJx1vmKteh4NmGmNUrp+Tb2w+udPcQ==", "dev": true, + "license": "MIT", "dependencies": { "envinfo": "^7.7.3" }, @@ -3340,9 +3317,8 @@ }, "node_modules/@webpack-cli/serve": { "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.7.0.tgz", - "integrity": "sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==", "dev": true, + "license": "MIT", "peerDependencies": { "webpack-cli": "4.x.x" }, @@ -3354,15 +3330,13 @@ }, "node_modules/@xtuc/ieee754": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", - "dev": true + "dev": true, + "license": "BSD-3-Clause" }, "node_modules/@xtuc/long": { "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", - "dev": true + "dev": true, + "license": "Apache-2.0" }, "node_modules/abort-controller": { "version": "3.0.0", @@ -3387,9 +3361,8 @@ }, "node_modules/acorn-import-assertions": { "version": "1.8.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", - "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", "dev": true, + "license": "MIT", "peerDependencies": { "acorn": "^8" } @@ -3644,9 +3617,8 @@ }, "node_modules/asynckit": { "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/at-least-node": { "version": "1.0.0", @@ -3727,8 +3699,6 @@ }, "node_modules/base64-js": { "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", "dev": true, "funding": [ { @@ -3743,7 +3713,8 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/before-after-hook": { "version": "2.2.1", @@ -3752,9 +3723,8 @@ }, "node_modules/bl": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", - "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", "dev": true, + "license": "MIT", "dependencies": { "buffer": "^5.5.0", "inherits": "^2.0.4", @@ -3763,9 +3733,8 @@ }, "node_modules/bl/node_modules/readable-stream": { "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", "dev": true, + "license": "MIT", "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -3839,8 +3808,6 @@ }, "node_modules/buffer": { "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", "dev": true, "funding": [ { @@ -3856,6 +3823,7 @@ "url": "https://feross.org/support" } ], + "license": "MIT", "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" @@ -3863,9 +3831,8 @@ }, "node_modules/buffer-crc32": { "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", "dev": true, + "license": "MIT", "engines": { "node": "*" } @@ -3966,15 +3933,13 @@ }, "node_modules/chownr": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/chrome-trace-event": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.0" } @@ -4019,9 +3984,8 @@ }, "node_modules/clone-deep": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", - "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", "dev": true, + "license": "MIT", "dependencies": { "is-plain-object": "^2.0.4", "kind-of": "^6.0.2", @@ -4033,9 +3997,8 @@ }, "node_modules/clone-deep/node_modules/is-plain-object": { "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", "dev": true, + "license": "MIT", "dependencies": { "isobject": "^3.0.1" }, @@ -4045,9 +4008,8 @@ }, "node_modules/clone-deep/node_modules/kind-of": { "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -4090,9 +4052,8 @@ }, "node_modules/colorette": { "version": "2.0.19", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz", - "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/colors": { "version": "1.0.3", @@ -4104,9 +4065,8 @@ }, "node_modules/combined-stream": { "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dev": true, + "license": "MIT", "dependencies": { "delayed-stream": "~1.0.0" }, @@ -4252,9 +4212,8 @@ }, "node_modules/core-js": { "version": "3.25.1", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.25.1.tgz", - "integrity": "sha512-sr0FY4lnO1hkQ4gLDr24K0DGnweGO1QwSj5BpfQjpSJPdqWalja4cTps29Y/PJVG/P7FYlPDkH3hO+Tr0CvDgQ==", "hasInstallScript": true, + "license": "MIT", "funding": { "type": "opencollective", "url": "https://opencollective.com/core-js" @@ -4339,9 +4298,8 @@ }, "node_modules/cross-fetch": { "version": "3.1.5", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", - "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", "dev": true, + "license": "MIT", "dependencies": { "node-fetch": "2.6.7" } @@ -4479,9 +4437,8 @@ }, "node_modules/delayed-stream": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.4.0" } @@ -4508,9 +4465,8 @@ }, "node_modules/devtools-protocol": { "version": "0.0.1036444", - "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1036444.tgz", - "integrity": "sha512-0y4f/T8H9lsESV9kKP1HDUXgHxCdniFeJh6Erq+FbdOEvp/Ydp9t8kcAAM5gOd17pMrTDlFWntoHtzzeTUWKNw==", - "dev": true + "dev": true, + "license": "BSD-3-Clause" }, "node_modules/diacritics-map": { "version": "0.1.0", @@ -4579,9 +4535,8 @@ }, "node_modules/duplexer": { "version": "0.1.2", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", - "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/duplexer2": { "version": "0.1.4", @@ -4621,9 +4576,8 @@ }, "node_modules/enhanced-resolve": { "version": "5.10.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.10.0.tgz", - "integrity": "sha512-T0yTFjdpldGY8PmuXXR0PyQ1ufZpEGiHVrp7zHKB7jdR4qlmZHhONVM5AQOAWXuF/w3dnHbEQVrNptJgt7F+cQ==", "dev": true, + "license": "MIT", "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.2.0" @@ -4682,9 +4636,8 @@ }, "node_modules/envinfo": { "version": "7.8.1", - "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", - "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", "dev": true, + "license": "MIT", "bin": { "envinfo": "dist/cli.js" }, @@ -4756,9 +4709,8 @@ }, "node_modules/es-module-lexer": { "version": "0.9.3", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", - "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/es-shim-unscopables": { "version": "1.0.0", @@ -5423,9 +5375,8 @@ }, "node_modules/events": { "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.8.x" } @@ -5710,9 +5661,8 @@ }, "node_modules/extract-zip": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", - "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "debug": "^4.1.1", "get-stream": "^5.1.0", @@ -5730,9 +5680,8 @@ }, "node_modules/extract-zip/node_modules/get-stream": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", "dev": true, + "license": "MIT", "dependencies": { "pump": "^3.0.0" }, @@ -5782,9 +5731,8 @@ }, "node_modules/fastest-levenshtein": { "version": "1.0.16", - "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", - "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 4.9.1" } @@ -5807,17 +5755,15 @@ }, "node_modules/fd-slicer": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", "dev": true, + "license": "MIT", "dependencies": { "pend": "~1.2.0" } }, "node_modules/fetch-mock": { "version": "9.11.0", - "resolved": "https://registry.npmjs.org/fetch-mock/-/fetch-mock-9.11.0.tgz", - "integrity": "sha512-PG1XUv+x7iag5p/iNHD4/jdpxL9FtVSqRMUQhPab4hVDt80T1MH5ehzVrL2IdXO9Q2iBggArFvPqjUbHFuI58Q==", + "license": "MIT", "dependencies": { "@babel/core": "^7.0.0", "@babel/runtime": "^7.0.0", @@ -5848,8 +5794,7 @@ }, "node_modules/fetch-mock-jest": { "version": "1.5.1", - "resolved": "https://registry.npmjs.org/fetch-mock-jest/-/fetch-mock-jest-1.5.1.tgz", - "integrity": "sha512-+utwzP8C+Pax1GSka3nFXILWMY3Er2L+s090FOgqVNrNCPp0fDqgXnAHAJf12PLHi0z4PhcTaZNTz8e7K3fjqQ==", + "license": "MIT", "dependencies": { "fetch-mock": "^9.11.0" }, @@ -5871,21 +5816,18 @@ }, "node_modules/fetch-mock/node_modules/tr46": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", - "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==", + "license": "MIT", "dependencies": { "punycode": "^2.1.0" } }, "node_modules/fetch-mock/node_modules/webidl-conversions": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", - "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==" + "license": "BSD-2-Clause" }, "node_modules/fetch-mock/node_modules/whatwg-url": { "version": "6.5.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-6.5.0.tgz", - "integrity": "sha512-rhRZRqx/TLJQWUpQ6bmrt2UV4f0HCQ463yQuONJqC6fO2VoEb1pTYddbe59SkYq87aoM5A3bdhMZiUiVws+fzQ==", + "license": "MIT", "dependencies": { "lodash.sortby": "^4.7.0", "tr46": "^1.0.1", @@ -5980,9 +5922,8 @@ }, "node_modules/form-data": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", "dev": true, + "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", @@ -6003,9 +5944,8 @@ }, "node_modules/fs-constants": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/fs-extra": { "version": "9.0.0", @@ -6192,8 +6132,7 @@ }, "node_modules/glob-to-regexp": { "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" + "license": "BSD-2-Clause" }, "node_modules/globals": { "version": "13.17.0", @@ -6310,9 +6249,8 @@ }, "node_modules/gzip-size": { "version": "6.0.0", - "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", - "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", "dev": true, + "license": "MIT", "dependencies": { "duplexer": "^0.1.2" }, @@ -6441,9 +6379,8 @@ }, "node_modules/https-proxy-agent": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", "dev": true, + "license": "MIT", "dependencies": { "agent-base": "6", "debug": "4" @@ -6462,8 +6399,6 @@ }, "node_modules/ieee754": { "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", "dev": true, "funding": [ { @@ -6478,7 +6413,8 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "BSD-3-Clause" }, "node_modules/ignore": { "version": "5.2.0", @@ -6594,9 +6530,8 @@ }, "node_modules/interpret": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", - "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.10" } @@ -6826,8 +6761,7 @@ }, "node_modules/is-subset": { "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-subset/-/is-subset-0.1.1.tgz", - "integrity": "sha512-6Ybun0IkarhmEqxXCNw/C0bna6Zb/TkfUX9UbwJtK6ObwAVCxmAP308WWTHviM/zAqXk05cdhYsUsZeGQh99iw==" + "license": "MIT" }, "node_modules/is-symbol": { "version": "1.0.4", @@ -6875,9 +6809,8 @@ }, "node_modules/isobject": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -9444,9 +9377,8 @@ }, "node_modules/jest-worker": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -9458,18 +9390,16 @@ }, "node_modules/jest-worker/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/jest-worker/node_modules/supports-color": { "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -9752,9 +9682,8 @@ }, "node_modules/loader-runner": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", - "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.11.5" } @@ -9797,12 +9726,12 @@ }, "node_modules/lodash.get": { "version": "4.4.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==" }, "node_modules/lodash.isequal": { "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", - "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==" + "license": "MIT" }, "node_modules/lodash.ismatch": { "version": "4.4.0", @@ -9831,7 +9760,8 @@ }, "node_modules/lodash.set": { "version": "4.3.2", - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", + "integrity": "sha512-4hNPN5jlm/N/HLMCO43v8BXKq9Z7QdAGc/VGrRD61w8gN9g/6jF9A4L1pbUgBLCffi0w9VsXfTOij5x8iTyFvg==" }, "node_modules/lodash.snakecase": { "version": "4.1.1", @@ -9840,8 +9770,7 @@ }, "node_modules/lodash.sortby": { "version": "4.7.0", - "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", - "integrity": "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==" + "license": "MIT" }, "node_modules/lodash.template": { "version": "4.5.0", @@ -10177,18 +10106,16 @@ }, "node_modules/mime-db": { "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } }, "node_modules/mime-types": { "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dev": true, + "license": "MIT", "dependencies": { "mime-db": "1.52.0" }, @@ -10283,9 +10210,8 @@ }, "node_modules/mkdirp-classic": { "version": "0.5.3", - "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", - "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/modify-values": { "version": "1.0.1", @@ -10297,9 +10223,8 @@ }, "node_modules/mrmime": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-1.0.1.tgz", - "integrity": "sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" } @@ -10315,9 +10240,8 @@ }, "node_modules/neo-async": { "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/nerf-dart": { "version": "1.0.0", @@ -10359,8 +10283,7 @@ }, "node_modules/node-fetch": { "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "license": "MIT", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -15139,9 +15062,8 @@ }, "node_modules/opener": { "version": "1.5.2", - "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", - "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", "dev": true, + "license": "(WTFPL OR MIT)", "bin": { "opener": "bin/opener-bin.js" } @@ -15275,9 +15197,8 @@ }, "node_modules/path-browserify": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", - "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/path-exists": { "version": "3.0.0", @@ -15310,14 +15231,12 @@ }, "node_modules/path-to-regexp": { "version": "2.4.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-2.4.0.tgz", - "integrity": "sha512-G6zHoVqC6GGTQkZwF4lkuEyMbVOjoBKAEybQUypI1WTkqinCOrq2x6U2+phkJ1XsEMTy4LjtwPI7HW+NVrRR2w==" + "license": "MIT" }, "node_modules/pend": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/picocolors": { "version": "1.0.0", @@ -15508,9 +15427,8 @@ }, "node_modules/progress": { "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.4.0" } @@ -15529,9 +15447,8 @@ }, "node_modules/proxy-from-env": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/pump": { "version": "3.0.0", @@ -15551,10 +15468,9 @@ }, "node_modules/puppeteer": { "version": "17.1.2", - "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-17.1.2.tgz", - "integrity": "sha512-xgFOxUl4hRjwQpODZSeJlE/rUzi8OmHtc3T4ir4CRYGzVmaTVHAl8VGpI0ooy752u2DFeMxvQdHmxNnLqPImIg==", "dev": true, "hasInstallScript": true, + "license": "Apache-2.0", "dependencies": { "cross-fetch": "3.1.5", "debug": "4.3.4", @@ -15583,9 +15499,7 @@ }, "node_modules/querystring": { "version": "0.2.1", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.1.tgz", - "integrity": "sha512-wkvS7mL/JMugcup3/rMitHmd9ecIGd2lhFhK9N3UUQ450h66d1r3Y9nvXzQAW1Lq+wyx61k/1pfKS5KuKiyEbg==", - "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", + "license": "MIT", "engines": { "node": ">=0.4.x" } @@ -15673,9 +15587,8 @@ }, "node_modules/randombytes": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dev": true, + "license": "MIT", "dependencies": { "safe-buffer": "^5.1.0" } @@ -15834,9 +15747,8 @@ }, "node_modules/rechoir": { "version": "0.7.1", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", - "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", "dev": true, + "license": "MIT", "dependencies": { "resolve": "^1.9.0" }, @@ -16073,9 +15985,8 @@ }, "node_modules/schema-utils": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", "dev": true, + "license": "MIT", "dependencies": { "@types/json-schema": "^7.0.8", "ajv": "^6.12.5", @@ -16091,9 +16002,8 @@ }, "node_modules/schema-utils/node_modules/ajv": { "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, + "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -16107,9 +16017,8 @@ }, "node_modules/schema-utils/node_modules/ajv-keywords": { "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", "dev": true, + "license": "MIT", "peerDependencies": { "ajv": "^6.9.1" } @@ -16220,9 +16129,8 @@ }, "node_modules/serialize-javascript": { "version": "6.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", - "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "randombytes": "^2.1.0" } @@ -16240,9 +16148,8 @@ }, "node_modules/shallow-clone": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", - "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", "dev": true, + "license": "MIT", "dependencies": { "kind-of": "^6.0.2" }, @@ -16252,9 +16159,8 @@ }, "node_modules/shallow-clone/node_modules/kind-of": { "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -16331,9 +16237,8 @@ }, "node_modules/sirv": { "version": "1.0.19", - "resolved": "https://registry.npmjs.org/sirv/-/sirv-1.0.19.tgz", - "integrity": "sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==", "dev": true, + "license": "MIT", "dependencies": { "@polka/url": "^1.0.0-next.20", "mrmime": "^1.0.0", @@ -16644,18 +16549,16 @@ }, "node_modules/tapable": { "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/tar-fs": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", - "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", "dev": true, + "license": "MIT", "dependencies": { "chownr": "^1.1.1", "mkdirp-classic": "^0.5.2", @@ -16665,9 +16568,8 @@ }, "node_modules/tar-stream": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", - "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", "dev": true, + "license": "MIT", "dependencies": { "bl": "^4.0.3", "end-of-stream": "^1.4.1", @@ -16681,9 +16583,8 @@ }, "node_modules/tar-stream/node_modules/readable-stream": { "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", "dev": true, + "license": "MIT", "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -16746,9 +16647,8 @@ }, "node_modules/terser": { "version": "5.15.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.15.0.tgz", - "integrity": "sha512-L1BJiXVmheAQQy+as0oF3Pwtlo4s3Wi1X2zNZ2NxOB4wx9bdS9Vk67XQENLFdLYGCK/Z2di53mTj/hBafR+dTA==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "@jridgewell/source-map": "^0.3.2", "acorn": "^8.5.0", @@ -16764,9 +16664,8 @@ }, "node_modules/terser-webpack-plugin": { "version": "5.3.6", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.6.tgz", - "integrity": "sha512-kfLFk+PoLUQIbLmB1+PZDMRSZS99Mp+/MHqDNmMA6tOItzRt+Npe3E+fsMs5mfcM0wCtrrdU387UnV+vnSffXQ==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "^0.3.14", "jest-worker": "^27.4.5", @@ -16798,15 +16697,13 @@ }, "node_modules/terser/node_modules/commander": { "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/terser/node_modules/source-map-support": { "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", "dev": true, + "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -16905,17 +16802,15 @@ }, "node_modules/totalist": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", - "integrity": "sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/tr46": { "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + "license": "MIT" }, "node_modules/traverse": { "version": "0.6.6", @@ -16932,9 +16827,8 @@ }, "node_modules/ts-loader": { "version": "9.3.1", - "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.3.1.tgz", - "integrity": "sha512-OkyShkcZTsTwyS3Kt7a4rsT/t2qvEVQuKCTg4LJmpj9fhFR7ukGdZwV6Qq3tRUkqcXtfGpPR7+hFKHCG/0d3Lw==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.1.0", "enhanced-resolve": "^5.0.0", @@ -16951,9 +16845,8 @@ }, "node_modules/ts-loader/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -16966,9 +16859,8 @@ }, "node_modules/ts-loader/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -16982,9 +16874,8 @@ }, "node_modules/ts-loader/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -16994,24 +16885,21 @@ }, "node_modules/ts-loader/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/ts-loader/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/ts-loader/node_modules/semver": { "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", "dev": true, + "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -17024,9 +16912,8 @@ }, "node_modules/ts-loader/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -17192,9 +17079,8 @@ }, "node_modules/unbzip2-stream": { "version": "1.4.3", - "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz", - "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==", "dev": true, + "license": "MIT", "dependencies": { "buffer": "^5.2.1", "through": "^2.3.8" @@ -17313,9 +17199,8 @@ }, "node_modules/watchpack": { "version": "2.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", - "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", "dev": true, + "license": "MIT", "dependencies": { "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.1.2" @@ -17347,14 +17232,12 @@ }, "node_modules/webidl-conversions": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + "license": "BSD-2-Clause" }, "node_modules/webpack": { "version": "5.74.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.74.0.tgz", - "integrity": "sha512-A2InDwnhhGN4LYctJj6M1JEaGL7Luj6LOmyBHjcI8529cm5p6VXiTIW2sn6ffvEAKmveLzvu4jrihwXtPojlAA==", "dev": true, + "license": "MIT", "dependencies": { "@types/eslint-scope": "^3.7.3", "@types/estree": "^0.0.51", @@ -17399,9 +17282,8 @@ }, "node_modules/webpack-bundle-analyzer": { "version": "4.6.1", - "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.6.1.tgz", - "integrity": "sha512-oKz9Oz9j3rUciLNfpGFjOb49/jEpXNmWdVH8Ls//zNcnLlQdTGXQQMsBbb/gR7Zl8WNLxVCq+0Hqbx3zv6twBw==", "dev": true, + "license": "MIT", "dependencies": { "acorn": "^8.0.4", "acorn-walk": "^8.0.0", @@ -17422,9 +17304,8 @@ }, "node_modules/webpack-bundle-analyzer/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -17437,9 +17318,8 @@ }, "node_modules/webpack-bundle-analyzer/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -17453,9 +17333,8 @@ }, "node_modules/webpack-bundle-analyzer/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -17465,33 +17344,29 @@ }, "node_modules/webpack-bundle-analyzer/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/webpack-bundle-analyzer/node_modules/commander": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", "dev": true, + "license": "MIT", "engines": { "node": ">= 10" } }, "node_modules/webpack-bundle-analyzer/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/webpack-bundle-analyzer/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -17501,9 +17376,8 @@ }, "node_modules/webpack-bundle-analyzer/node_modules/ws": { "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=8.3.0" }, @@ -17522,9 +17396,8 @@ }, "node_modules/webpack-cli": { "version": "4.10.0", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.10.0.tgz", - "integrity": "sha512-NLhDfH/h4O6UOy+0LSso42xvYypClINuMNBVVzX4vX98TmTaTUxwRbXdhucbFMd2qLaCTcLq/PdYrvi8onw90w==", "dev": true, + "license": "MIT", "dependencies": { "@discoveryjs/json-ext": "^0.5.0", "@webpack-cli/configtest": "^1.2.0", @@ -17569,18 +17442,16 @@ }, "node_modules/webpack-cli/node_modules/commander": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", "dev": true, + "license": "MIT", "engines": { "node": ">= 10" } }, "node_modules/webpack-merge": { "version": "5.8.0", - "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", - "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", "dev": true, + "license": "MIT", "dependencies": { "clone-deep": "^4.0.1", "wildcard": "^2.0.0" @@ -17591,18 +17462,16 @@ }, "node_modules/webpack-sources": { "version": "3.2.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", - "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", "dev": true, + "license": "MIT", "engines": { "node": ">=10.13.0" } }, "node_modules/webpack/node_modules/eslint-scope": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^4.1.1" @@ -17613,17 +17482,15 @@ }, "node_modules/webpack/node_modules/estraverse": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=4.0" } }, "node_modules/whatwg-url": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" @@ -17645,9 +17512,8 @@ }, "node_modules/wildcard": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", - "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/wolfy87-eventemitter": { "version": "5.2.9", @@ -17719,9 +17585,8 @@ }, "node_modules/ws": { "version": "8.8.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.8.1.tgz", - "integrity": "sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10.0.0" }, @@ -17794,9 +17659,8 @@ }, "node_modules/yauzl": { "version": "2.10.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", "dev": true, + "license": "MIT", "dependencies": { "buffer-crc32": "~0.2.3", "fd-slicer": "~1.1.0" @@ -17830,9 +17694,7 @@ } }, "@asyncapi/specs": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-3.1.0.tgz", - "integrity": "sha512-6xFvzDd54+M9g6EM259Y4a4iiFb2VzPr6eoxA/ttwTu7NRxaGScocXskXtuz53ZWx9BWZWuzwDYKfM3KBkDfiQ==" + "version": "3.1.0" }, "@babel/code-frame": { "version": "7.16.7", @@ -18151,8 +18013,6 @@ }, "@discoveryjs/json-ext": { "version": "0.5.7", - "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", - "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", "dev": true }, "@eslint/eslintrc": { @@ -19004,8 +18864,6 @@ }, "@jridgewell/gen-mapping": { "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", "dev": true, "requires": { "@jridgewell/set-array": "^1.0.1", @@ -19018,14 +18876,10 @@ }, "@jridgewell/set-array": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", "dev": true }, "@jridgewell/source-map": { "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", - "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", "dev": true, "requires": { "@jridgewell/gen-mapping": "^0.3.0", @@ -19178,8 +19032,6 @@ }, "@polka/url": { "version": "1.0.0-next.21", - "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz", - "integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==", "dev": true }, "@semantic-release/commit-analyzer": { @@ -19366,19 +19218,20 @@ } }, "@stoplight/json-ref-resolver": { - "version": "3.1.3", + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.4.tgz", + "integrity": "sha512-842JVmMsi++qpDuIX+JpQvK7YY8FXEZZb+/z4xuRfStOAVEryJT/tbgGOWxniSdxEl9Eni5D/I2afMyy6BuiNw==", "requires": { "@stoplight/json": "^3.17.0", "@stoplight/path": "^1.3.2", - "@stoplight/types": "^12.3.0", - "@types/urijs": "^1.19.16", + "@stoplight/types": "^12.3.0 || ^13.0.0", + "@types/urijs": "^1.19.19", "dependency-graph": "~0.11.0", "fast-memoize": "^2.5.2", "immer": "^9.0.6", - "lodash.get": "^4.4.2", - "lodash.set": "^4.3.2", + "lodash": "^4.17.21", "tslib": "^2.3.1", - "urijs": "^1.19.6" + "urijs": "^1.19.11" } }, "@stoplight/lifecycle": { @@ -19498,6 +19351,26 @@ "@stoplight/spectral-runtime": "^1.0.0", "dependency-graph": "0.11.0", "tslib": "^2.3.1" + }, + "dependencies": { + "@stoplight/json-ref-resolver": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.3.tgz", + "integrity": "sha512-SgoKXwVnlpIZUyAFX4W79eeuTWvXmNlMfICZixL16GZXnkjcW+uZnfmAU0ZIjcnaTgaI4mjfxn8LAP2KR6Cr0A==", + "requires": { + "@stoplight/json": "^3.17.0", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^12.3.0", + "@types/urijs": "^1.19.16", + "dependency-graph": "~0.11.0", + "fast-memoize": "^2.5.2", + "immer": "^9.0.6", + "lodash.get": "^4.4.2", + "lodash.set": "^4.3.2", + "tslib": "^2.3.1", + "urijs": "^1.19.6" + } + } } }, "@stoplight/spectral-rulesets": { @@ -19666,8 +19539,6 @@ }, "@types/eslint": { "version": "8.4.6", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.6.tgz", - "integrity": "sha512-/fqTbjxyFUaYNO7VcW5g+4npmqVACz1bB7RTHYuLj+PRjw9hrCwrUXVQFpChUS0JsyEFvMZ7U/PfmvWgxJhI9g==", "dev": true, "requires": { "@types/estree": "*", @@ -19676,8 +19547,6 @@ }, "@types/eslint-scope": { "version": "3.7.4", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", - "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", "dev": true, "requires": { "@types/eslint": "*", @@ -19686,8 +19555,6 @@ }, "@types/estree": { "version": "0.0.51", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", - "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", "dev": true }, "@types/graceful-fs": { @@ -19747,8 +19614,6 @@ }, "@types/node-fetch": { "version": "2.6.2", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.2.tgz", - "integrity": "sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==", "dev": true, "requires": { "@types/node": "*", @@ -19776,7 +19641,9 @@ "dev": true }, "@types/urijs": { - "version": "1.19.19" + "version": "1.19.19", + "resolved": "https://registry.npmjs.org/@types/urijs/-/urijs-1.19.19.tgz", + "integrity": "sha512-FDJNkyhmKLw7uEvTxx5tSXfPeQpO0iy73Ry+PmYZJvQy0QIWX8a7kJ4kLWRf+EbTPJEPDSgPXHaM7pzr5lmvCg==" }, "@types/yargs": { "version": "17.0.12", @@ -19791,8 +19658,6 @@ }, "@types/yauzl": { "version": "2.10.0", - "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==", "dev": true, "optional": true, "requires": { @@ -19913,8 +19778,6 @@ }, "@webassemblyjs/ast": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", - "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", "dev": true, "requires": { "@webassemblyjs/helper-numbers": "1.11.1", @@ -19923,26 +19786,18 @@ }, "@webassemblyjs/floating-point-hex-parser": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", - "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", "dev": true }, "@webassemblyjs/helper-api-error": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", - "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", "dev": true }, "@webassemblyjs/helper-buffer": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", - "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", "dev": true }, "@webassemblyjs/helper-numbers": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", - "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", "dev": true, "requires": { "@webassemblyjs/floating-point-hex-parser": "1.11.1", @@ -19952,14 +19807,10 @@ }, "@webassemblyjs/helper-wasm-bytecode": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", - "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", "dev": true }, "@webassemblyjs/helper-wasm-section": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", - "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", "dev": true, "requires": { "@webassemblyjs/ast": "1.11.1", @@ -19970,8 +19821,6 @@ }, "@webassemblyjs/ieee754": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", - "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", "dev": true, "requires": { "@xtuc/ieee754": "^1.2.0" @@ -19979,8 +19828,6 @@ }, "@webassemblyjs/leb128": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", - "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", "dev": true, "requires": { "@xtuc/long": "4.2.2" @@ -19988,14 +19835,10 @@ }, "@webassemblyjs/utf8": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", - "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", "dev": true }, "@webassemblyjs/wasm-edit": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", - "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", "dev": true, "requires": { "@webassemblyjs/ast": "1.11.1", @@ -20010,8 +19853,6 @@ }, "@webassemblyjs/wasm-gen": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", - "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", "dev": true, "requires": { "@webassemblyjs/ast": "1.11.1", @@ -20023,8 +19864,6 @@ }, "@webassemblyjs/wasm-opt": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", - "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", "dev": true, "requires": { "@webassemblyjs/ast": "1.11.1", @@ -20035,8 +19874,6 @@ }, "@webassemblyjs/wasm-parser": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", - "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", "dev": true, "requires": { "@webassemblyjs/ast": "1.11.1", @@ -20049,8 +19886,6 @@ }, "@webassemblyjs/wast-printer": { "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", - "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", "dev": true, "requires": { "@webassemblyjs/ast": "1.11.1", @@ -20059,15 +19894,11 @@ }, "@webpack-cli/configtest": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz", - "integrity": "sha512-4FB8Tj6xyVkyqjj1OaTqCjXYULB9FMkqQ8yGrZjRDrYh0nOE+7Lhs45WioWQQMV+ceFlE368Ukhe6xdvJM9Egg==", "dev": true, "requires": {} }, "@webpack-cli/info": { "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.5.0.tgz", - "integrity": "sha512-e8tSXZpw2hPl2uMJY6fsMswaok5FdlGNRTktvFk2sD8RjH0hE2+XistawJx1vmKteh4NmGmNUrp+Tb2w+udPcQ==", "dev": true, "requires": { "envinfo": "^7.7.3" @@ -20075,21 +19906,15 @@ }, "@webpack-cli/serve": { "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.7.0.tgz", - "integrity": "sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==", "dev": true, "requires": {} }, "@xtuc/ieee754": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", "dev": true }, "@xtuc/long": { "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", "dev": true }, "abort-controller": { @@ -20104,8 +19929,6 @@ }, "acorn-import-assertions": { "version": "1.8.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", - "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", "dev": true, "requires": {} }, @@ -20263,8 +20086,6 @@ }, "asynckit": { "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", "dev": true }, "at-least-node": { @@ -20323,8 +20144,6 @@ }, "base64-js": { "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", "dev": true }, "before-after-hook": { @@ -20333,8 +20152,6 @@ }, "bl": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", - "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", "dev": true, "requires": { "buffer": "^5.5.0", @@ -20344,8 +20161,6 @@ "dependencies": { "readable-stream": { "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", "dev": true, "requires": { "inherits": "^2.0.3", @@ -20394,8 +20209,6 @@ }, "buffer": { "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", "dev": true, "requires": { "base64-js": "^1.3.1", @@ -20404,8 +20217,6 @@ }, "buffer-crc32": { "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", "dev": true }, "buffer-from": { @@ -20461,14 +20272,10 @@ }, "chownr": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", "dev": true }, "chrome-trace-event": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", "dev": true }, "ci-info": { @@ -20501,8 +20308,6 @@ }, "clone-deep": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", - "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", "dev": true, "requires": { "is-plain-object": "^2.0.4", @@ -20512,8 +20317,6 @@ "dependencies": { "is-plain-object": { "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", "dev": true, "requires": { "isobject": "^3.0.1" @@ -20521,8 +20324,6 @@ }, "kind-of": { "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true } } @@ -20549,8 +20350,6 @@ }, "colorette": { "version": "2.0.19", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz", - "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==", "dev": true }, "colors": { @@ -20559,8 +20358,6 @@ }, "combined-stream": { "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dev": true, "requires": { "delayed-stream": "~1.0.0" @@ -20663,9 +20460,7 @@ } }, "core-js": { - "version": "3.25.1", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.25.1.tgz", - "integrity": "sha512-sr0FY4lnO1hkQ4gLDr24K0DGnweGO1QwSj5BpfQjpSJPdqWalja4cTps29Y/PJVG/P7FYlPDkH3hO+Tr0CvDgQ==" + "version": "3.25.1" }, "core-js-pure": { "version": "3.25.0", @@ -20715,8 +20510,6 @@ }, "cross-fetch": { "version": "3.1.5", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", - "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", "dev": true, "requires": { "node-fetch": "2.6.7" @@ -20801,8 +20594,6 @@ }, "delayed-stream": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", "dev": true }, "dependency-graph": { @@ -20818,8 +20609,6 @@ }, "devtools-protocol": { "version": "0.0.1036444", - "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1036444.tgz", - "integrity": "sha512-0y4f/T8H9lsESV9kKP1HDUXgHxCdniFeJh6Erq+FbdOEvp/Ydp9t8kcAAM5gOd17pMrTDlFWntoHtzzeTUWKNw==", "dev": true }, "diacritics-map": { @@ -20863,8 +20652,6 @@ }, "duplexer": { "version": "0.1.2", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", - "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", "dev": true }, "duplexer2": { @@ -20894,8 +20681,6 @@ }, "enhanced-resolve": { "version": "5.10.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.10.0.tgz", - "integrity": "sha512-T0yTFjdpldGY8PmuXXR0PyQ1ufZpEGiHVrp7zHKB7jdR4qlmZHhONVM5AQOAWXuF/w3dnHbEQVrNptJgt7F+cQ==", "dev": true, "requires": { "graceful-fs": "^4.2.4", @@ -20936,8 +20721,6 @@ }, "envinfo": { "version": "7.8.1", - "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", - "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", "dev": true }, "error-ex": { @@ -20989,8 +20772,6 @@ }, "es-module-lexer": { "version": "0.9.3", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", - "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", "dev": true }, "es-shim-unscopables": { @@ -21406,8 +21187,6 @@ }, "events": { "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", "dev": true }, "execa": { @@ -21594,8 +21373,6 @@ }, "extract-zip": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", - "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", "dev": true, "requires": { "@types/yauzl": "^2.9.1", @@ -21606,8 +21383,6 @@ "dependencies": { "get-stream": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", "dev": true, "requires": { "pump": "^3.0.0" @@ -21645,8 +21420,6 @@ }, "fastest-levenshtein": { "version": "1.0.16", - "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", - "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", "dev": true }, "fastq": { @@ -21665,8 +21438,6 @@ }, "fd-slicer": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", "dev": true, "requires": { "pend": "~1.2.0" @@ -21674,8 +21445,6 @@ }, "fetch-mock": { "version": "9.11.0", - "resolved": "https://registry.npmjs.org/fetch-mock/-/fetch-mock-9.11.0.tgz", - "integrity": "sha512-PG1XUv+x7iag5p/iNHD4/jdpxL9FtVSqRMUQhPab4hVDt80T1MH5ehzVrL2IdXO9Q2iBggArFvPqjUbHFuI58Q==", "requires": { "@babel/core": "^7.0.0", "@babel/runtime": "^7.0.0", @@ -21691,21 +21460,15 @@ "dependencies": { "tr46": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", - "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==", "requires": { "punycode": "^2.1.0" } }, "webidl-conversions": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", - "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==" + "version": "4.0.2" }, "whatwg-url": { "version": "6.5.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-6.5.0.tgz", - "integrity": "sha512-rhRZRqx/TLJQWUpQ6bmrt2UV4f0HCQ463yQuONJqC6fO2VoEb1pTYddbe59SkYq87aoM5A3bdhMZiUiVws+fzQ==", "requires": { "lodash.sortby": "^4.7.0", "tr46": "^1.0.1", @@ -21716,8 +21479,6 @@ }, "fetch-mock-jest": { "version": "1.5.1", - "resolved": "https://registry.npmjs.org/fetch-mock-jest/-/fetch-mock-jest-1.5.1.tgz", - "integrity": "sha512-+utwzP8C+Pax1GSka3nFXILWMY3Er2L+s090FOgqVNrNCPp0fDqgXnAHAJf12PLHi0z4PhcTaZNTz8e7K3fjqQ==", "requires": { "fetch-mock": "^9.11.0" } @@ -21775,8 +21536,6 @@ }, "form-data": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", "dev": true, "requires": { "asynckit": "^0.4.0", @@ -21794,8 +21553,6 @@ }, "fs-constants": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", "dev": true }, "fs-extra": { @@ -21915,9 +21672,7 @@ } }, "glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==" + "version": "0.4.1" }, "globals": { "version": "13.17.0", @@ -22000,8 +21755,6 @@ }, "gzip-size": { "version": "6.0.0", - "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", - "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", "dev": true, "requires": { "duplexer": "^0.1.2" @@ -22072,8 +21825,6 @@ }, "https-proxy-agent": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", "dev": true, "requires": { "agent-base": "6", @@ -22086,8 +21837,6 @@ }, "ieee754": { "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", "dev": true }, "ignore": { @@ -22160,8 +21909,6 @@ }, "interpret": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", - "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", "dev": true }, "into-stream": { @@ -22281,9 +22028,7 @@ } }, "is-subset": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-subset/-/is-subset-0.1.1.tgz", - "integrity": "sha512-6Ybun0IkarhmEqxXCNw/C0bna6Zb/TkfUX9UbwJtK6ObwAVCxmAP308WWTHviM/zAqXk05cdhYsUsZeGQh99iw==" + "version": "0.1.1" }, "is-symbol": { "version": "1.0.4", @@ -22314,8 +22059,6 @@ }, "isobject": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", "dev": true }, "issue-parser": { @@ -24001,8 +23744,6 @@ }, "jest-worker": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", "dev": true, "requires": { "@types/node": "*", @@ -24012,14 +23753,10 @@ "dependencies": { "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "supports-color": { "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -24207,8 +23944,6 @@ }, "loader-runner": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", - "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", "dev": true }, "locate-path": { @@ -24239,12 +23974,12 @@ "dev": true }, "lodash.get": { - "version": "4.4.2" + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==" }, "lodash.isequal": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", - "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==" + "version": "4.5.0" }, "lodash.ismatch": { "version": "4.4.0", @@ -24267,16 +24002,16 @@ "dev": true }, "lodash.set": { - "version": "4.3.2" + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", + "integrity": "sha512-4hNPN5jlm/N/HLMCO43v8BXKq9Z7QdAGc/VGrRD61w8gN9g/6jF9A4L1pbUgBLCffi0w9VsXfTOij5x8iTyFvg==" }, "lodash.snakecase": { "version": "4.1.1", "dev": true }, "lodash.sortby": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", - "integrity": "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==" + "version": "4.7.0" }, "lodash.template": { "version": "4.5.0", @@ -24493,14 +24228,10 @@ }, "mime-db": { "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "dev": true }, "mime-types": { "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dev": true, "requires": { "mime-db": "1.52.0" @@ -24564,8 +24295,6 @@ }, "mkdirp-classic": { "version": "0.5.3", - "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", - "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", "dev": true }, "modify-values": { @@ -24574,8 +24303,6 @@ }, "mrmime": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-1.0.1.tgz", - "integrity": "sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==", "dev": true }, "ms": { @@ -24587,8 +24314,6 @@ }, "neo-async": { "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", "dev": true }, "nerf-dart": { @@ -24621,8 +24346,6 @@ }, "node-fetch": { "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", "requires": { "whatwg-url": "^5.0.0" } @@ -28235,8 +27958,6 @@ }, "opener": { "version": "1.5.2", - "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", - "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", "dev": true }, "optionator": { @@ -28317,8 +28038,6 @@ }, "path-browserify": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", - "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", "dev": true }, "path-exists": { @@ -28338,14 +28057,10 @@ "dev": true }, "path-to-regexp": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-2.4.0.tgz", - "integrity": "sha512-G6zHoVqC6GGTQkZwF4lkuEyMbVOjoBKAEybQUypI1WTkqinCOrq2x6U2+phkJ1XsEMTy4LjtwPI7HW+NVrRR2w==" + "version": "2.4.0" }, "pend": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", "dev": true }, "picocolors": { @@ -28456,8 +28171,6 @@ }, "progress": { "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", "dev": true }, "prompts": { @@ -28470,8 +28183,6 @@ }, "proxy-from-env": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", "dev": true }, "pump": { @@ -28487,8 +28198,6 @@ }, "puppeteer": { "version": "17.1.2", - "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-17.1.2.tgz", - "integrity": "sha512-xgFOxUl4hRjwQpODZSeJlE/rUzi8OmHtc3T4ir4CRYGzVmaTVHAl8VGpI0ooy752u2DFeMxvQdHmxNnLqPImIg==", "dev": true, "requires": { "cross-fetch": "3.1.5", @@ -28509,9 +28218,7 @@ "dev": true }, "querystring": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.1.tgz", - "integrity": "sha512-wkvS7mL/JMugcup3/rMitHmd9ecIGd2lhFhK9N3UUQ450h66d1r3Y9nvXzQAW1Lq+wyx61k/1pfKS5KuKiyEbg==" + "version": "0.2.1" }, "queue-microtask": { "version": "1.2.3", @@ -28560,8 +28267,6 @@ }, "randombytes": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dev": true, "requires": { "safe-buffer": "^5.1.0" @@ -28670,8 +28375,6 @@ }, "rechoir": { "version": "0.7.1", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", - "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", "dev": true, "requires": { "resolve": "^1.9.0" @@ -28802,8 +28505,6 @@ }, "schema-utils": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", - "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", "dev": true, "requires": { "@types/json-schema": "^7.0.8", @@ -28813,8 +28514,6 @@ "dependencies": { "ajv": { "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, "requires": { "fast-deep-equal": "^3.1.1", @@ -28825,8 +28524,6 @@ }, "ajv-keywords": { "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", "dev": true, "requires": {} } @@ -28905,8 +28602,6 @@ }, "serialize-javascript": { "version": "6.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", - "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", "dev": true, "requires": { "randombytes": "^2.1.0" @@ -28921,8 +28616,6 @@ }, "shallow-clone": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", - "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", "dev": true, "requires": { "kind-of": "^6.0.2" @@ -28930,8 +28623,6 @@ "dependencies": { "kind-of": { "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true } } @@ -28985,8 +28676,6 @@ }, "sirv": { "version": "1.0.19", - "resolved": "https://registry.npmjs.org/sirv/-/sirv-1.0.19.tgz", - "integrity": "sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==", "dev": true, "requires": { "@polka/url": "^1.0.0-next.20", @@ -29198,14 +28887,10 @@ }, "tapable": { "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", "dev": true }, "tar-fs": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", - "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", "dev": true, "requires": { "chownr": "^1.1.1", @@ -29216,8 +28901,6 @@ }, "tar-stream": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", - "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", "dev": true, "requires": { "bl": "^4.0.3", @@ -29229,8 +28912,6 @@ "dependencies": { "readable-stream": { "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", "dev": true, "requires": { "inherits": "^2.0.3", @@ -29270,8 +28951,6 @@ }, "terser": { "version": "5.15.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.15.0.tgz", - "integrity": "sha512-L1BJiXVmheAQQy+as0oF3Pwtlo4s3Wi1X2zNZ2NxOB4wx9bdS9Vk67XQENLFdLYGCK/Z2di53mTj/hBafR+dTA==", "dev": true, "requires": { "@jridgewell/source-map": "^0.3.2", @@ -29282,14 +28961,10 @@ "dependencies": { "commander": { "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", "dev": true }, "source-map-support": { "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", "dev": true, "requires": { "buffer-from": "^1.0.0", @@ -29300,8 +28975,6 @@ }, "terser-webpack-plugin": { "version": "5.3.6", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.6.tgz", - "integrity": "sha512-kfLFk+PoLUQIbLmB1+PZDMRSZS99Mp+/MHqDNmMA6tOItzRt+Npe3E+fsMs5mfcM0wCtrrdU387UnV+vnSffXQ==", "dev": true, "requires": { "@jridgewell/trace-mapping": "^0.3.14", @@ -29377,14 +29050,10 @@ }, "totalist": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", - "integrity": "sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==", "dev": true }, "tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + "version": "0.0.3" }, "traverse": { "version": "0.6.6", @@ -29396,8 +29065,6 @@ }, "ts-loader": { "version": "9.3.1", - "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.3.1.tgz", - "integrity": "sha512-OkyShkcZTsTwyS3Kt7a4rsT/t2qvEVQuKCTg4LJmpj9fhFR7ukGdZwV6Qq3tRUkqcXtfGpPR7+hFKHCG/0d3Lw==", "dev": true, "requires": { "chalk": "^4.1.0", @@ -29408,8 +29075,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -29417,8 +29082,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -29427,8 +29090,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -29436,20 +29097,14 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "semver": { "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -29457,8 +29112,6 @@ }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -29559,8 +29212,6 @@ }, "unbzip2-stream": { "version": "1.4.3", - "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz", - "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==", "dev": true, "requires": { "buffer": "^5.2.1", @@ -29639,8 +29290,6 @@ }, "watchpack": { "version": "2.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", - "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", "dev": true, "requires": { "glob-to-regexp": "^0.4.1", @@ -29668,14 +29317,10 @@ } }, "webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + "version": "3.0.1" }, "webpack": { "version": "5.74.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.74.0.tgz", - "integrity": "sha512-A2InDwnhhGN4LYctJj6M1JEaGL7Luj6LOmyBHjcI8529cm5p6VXiTIW2sn6ffvEAKmveLzvu4jrihwXtPojlAA==", "dev": true, "requires": { "@types/eslint-scope": "^3.7.3", @@ -29706,8 +29351,6 @@ "dependencies": { "eslint-scope": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, "requires": { "esrecurse": "^4.3.0", @@ -29716,16 +29359,12 @@ }, "estraverse": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", "dev": true } } }, "webpack-bundle-analyzer": { "version": "4.6.1", - "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.6.1.tgz", - "integrity": "sha512-oKz9Oz9j3rUciLNfpGFjOb49/jEpXNmWdVH8Ls//zNcnLlQdTGXQQMsBbb/gR7Zl8WNLxVCq+0Hqbx3zv6twBw==", "dev": true, "requires": { "acorn": "^8.0.4", @@ -29741,8 +29380,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -29750,8 +29387,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -29760,8 +29395,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -29769,26 +29402,18 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "commander": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -29796,8 +29421,6 @@ }, "ws": { "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", "dev": true, "requires": {} } @@ -29805,8 +29428,6 @@ }, "webpack-cli": { "version": "4.10.0", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.10.0.tgz", - "integrity": "sha512-NLhDfH/h4O6UOy+0LSso42xvYypClINuMNBVVzX4vX98TmTaTUxwRbXdhucbFMd2qLaCTcLq/PdYrvi8onw90w==", "dev": true, "requires": { "@discoveryjs/json-ext": "^0.5.0", @@ -29825,16 +29446,12 @@ "dependencies": { "commander": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", "dev": true } } }, "webpack-merge": { "version": "5.8.0", - "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", - "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", "dev": true, "requires": { "clone-deep": "^4.0.1", @@ -29843,14 +29460,10 @@ }, "webpack-sources": { "version": "3.2.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", - "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", "dev": true }, "whatwg-url": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", "requires": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" @@ -29868,8 +29481,6 @@ }, "wildcard": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", - "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", "dev": true }, "wolfy87-eventemitter": { @@ -29918,8 +29529,6 @@ }, "ws": { "version": "8.8.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.8.1.tgz", - "integrity": "sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==", "dev": true, "requires": {} }, @@ -29958,8 +29567,6 @@ }, "yauzl": { "version": "2.10.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", "dev": true, "requires": { "buffer-crc32": "~0.2.3", diff --git a/package.json b/package.json index eefd13ff7..9d77182d9 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "dependencies": { "@asyncapi/specs": "^3.1.0", "@openapi-contrib/openapi-schema-to-json-schema": "^3.2.0", + "@stoplight/json-ref-resolver": "^3.1.4", "@stoplight/spectral-core": "^1.14.1", "@stoplight/spectral-functions": "^1.7.1", "@stoplight/spectral-parsers": "^1.0.2", @@ -71,6 +72,7 @@ "@types/json-schema": "^7.0.11", "@types/lodash": "^4.14.179", "@types/node-fetch": "^2.6.2", + "@types/urijs": "^1.19.19", "@typescript-eslint/eslint-plugin": "^5.36.2", "@typescript-eslint/parser": "^5.36.2", "conventional-changelog-conventionalcommits": "^4.2.3", diff --git a/src/parser.ts b/src/parser.ts index 2e48a44dc..9041f31bb 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -1,5 +1,3 @@ -import { Spectral } from '@stoplight/spectral-core'; - import { toAsyncAPIDocument } from './document'; import { parse } from './parse'; import { validate } from './validate'; @@ -7,22 +5,30 @@ import { registerSchemaParser } from './schema-parser'; import { AsyncAPISchemaParser } from './schema-parser/asyncapi-schema-parser'; import { createSpectral } from './spectral'; +import type { Spectral } from '@stoplight/spectral-core'; import type { ParseOptions, ParseOutput } from './parse'; import type { ValidateOptions } from './validate'; +import type { ResolverOptions } from './resolver'; import type { SchemaParser } from './schema-parser'; import type { Diagnostic, Input } from './types'; -export interface ParserOptions {} +export interface ParserOptions { + schemaParsers?: Array; + __unstable?: { + resolver?: ResolverOptions; + }; +} export class Parser { public readonly parserRegistry = new Map(); protected readonly spectral: Spectral; constructor( - private readonly _: ParserOptions = {} + private readonly options: ParserOptions = {} ) { - this.spectral = createSpectral(this); + this.spectral = createSpectral(this, options); this.registerSchemaParser(AsyncAPISchemaParser()); + this.options.schemaParsers?.forEach(parser => this.registerSchemaParser(parser)); } async parse(asyncapi: Input, options?: ParseOptions): Promise { diff --git a/src/resolver.ts b/src/resolver.ts new file mode 100644 index 000000000..49caf287f --- /dev/null +++ b/src/resolver.ts @@ -0,0 +1,86 @@ +import { Resolver as SpectralResolver } from '@stoplight/spectral-ref-resolver'; +import { Cache } from '@stoplight/json-ref-resolver/cache'; +import { resolveFile, resolveHttp } from '@stoplight/json-ref-readers'; + +import type Uri from 'urijs'; + +export interface Resolver { + schema: 'file' | 'http' | 'https' | string; + order?: number; + canRead?: boolean | ((uri: Uri, ctx?: any) => boolean); + read: (uri: Uri, ctx?: any) => string | undefined | Promise; +} + +export interface ResolverOptions { + cache?: boolean; + resolvers?: Array; +} + +export function createResolver(options: ResolverOptions = {}): SpectralResolver { + const availableResolvers: Array = [ + ...createDefaultResolvers(), + ...(options?.resolvers || []) + ].map(r => ({ + ...r, + order: r.order || Number.MAX_SAFE_INTEGER, + canRead: typeof r.canRead === 'undefined' ? true: r.canRead, + })); + const availableSchemas = [...new Set(availableResolvers.map(r => r.schema))]; + const resolvers = availableSchemas.reduce((acc, schema) => { + acc[schema] = { resolve: createSchemaResolver(schema, availableResolvers) }; + return acc; + }, {} as Record string | Promise }>); + + // if cache is enabled, use default Cache instance in SpectralResolver, otherwise use custom one with ttl set to 1ms + const cache = options.cache !== false; + return new SpectralResolver({ + uriCache: cache ? undefined : new Cache({ stdTTL: 1 }), + resolvers: resolvers as any, + }); +} + +function createDefaultResolvers(): Array { + return [ + { + schema: 'file', + read: resolveFile as (input: Uri, ctx?: any) => string | Promise, + }, + { + schema: 'https', + read: resolveHttp as (input: Uri, ctx?: any) => string | Promise, + }, + { + schema: 'http', + read: resolveHttp as (input: Uri, ctx?: any) => string | Promise, + }, + ]; +} + +function createSchemaResolver(schema: string, allResolvers: Array): (uri: Uri, ctx?: any) => string | Promise { + const resolvers = allResolvers.filter(r => r.schema === schema).sort((a, b) => { return (a.order as number) - (b.order as number); }); + return async (uri, ctx) => { + let result: string | undefined = undefined; + let lastError: Error | undefined; + for (const resolver of resolvers) { + try { + if (!canRead(resolver, uri, ctx)) continue; + + result = await resolver.read(uri, ctx); + if (typeof result === 'string') { + break; + } + } catch (e: any) { + lastError = e; + continue; + } + } + if (typeof result !== 'string') { + throw lastError || new Error(`None of the available resolvers for "${schema}" can resolve the given reference.`); + } + return result; + }; +} + +function canRead(resolver: Resolver, uri: Uri, ctx?: any) { + return typeof resolver.canRead === 'function' ? resolver.canRead(uri, ctx) : resolver.canRead; +} diff --git a/src/spectral.ts b/src/spectral.ts index 7155ff2ac..229e68980 100644 --- a/src/spectral.ts +++ b/src/spectral.ts @@ -1,17 +1,18 @@ import { Spectral, createRulesetFunction } from '@stoplight/spectral-core'; import aasRuleset from '@stoplight/spectral-rulesets/dist/asyncapi'; +import { createResolver } from './resolver'; import { asyncApi2SchemaParserRule } from './schema-parser/spectral-rule-v2'; import { specVersions } from './constants'; import { isObject } from './utils'; import type { RuleDefinition, RulesetDefinition } from '@stoplight/spectral-core'; -import type { Parser } from './parser'; +import type { Parser, ParserOptions } from './parser'; import type { MaybeAsyncAPI } from './types'; -export function createSpectral(parser: Parser): Spectral { +export function createSpectral(parser: Parser, options: ParserOptions = {}): Spectral { + const spectral = new Spectral({ resolver: createResolver(options.__unstable?.resolver) }); const ruleset = configureRuleset(parser); - const spectral = new Spectral(); spectral.setRuleset(ruleset); return spectral; } diff --git a/test/mocks/simple-message.yaml b/test/mocks/simple-message.yaml new file mode 100644 index 000000000..14ef70324 --- /dev/null +++ b/test/mocks/simple-message.yaml @@ -0,0 +1,5 @@ +payload: + type: object + properties: + someProperty: + type: string \ No newline at end of file diff --git a/test/resolver.spec.ts b/test/resolver.spec.ts new file mode 100644 index 000000000..45425e909 --- /dev/null +++ b/test/resolver.spec.ts @@ -0,0 +1,150 @@ +import { AsyncAPIDocumentV2 } from '../src/models'; +import { Parser } from '../src/parser'; + +describe('custom resolver', function() { + it('should resolve document references', async function() { + const parser = new Parser(); + + const documentRaw = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'publish', + message: { + $ref: '#/components/messages/message' + } + }, + } + }, + components: { + messages: { + message: { + payload: { + type: 'string' + } + } + } + } + }; + const { document } = await parser.parse(documentRaw); + + expect(document).toBeInstanceOf(AsyncAPIDocumentV2); + const refMessage = document?.channels().get('channel')?.operations().get('publish')?.messages()[0]; + expect(refMessage?.json()).not.toBeUndefined(); + expect(refMessage?.json() === document?.components().messages().get('message')?.json()).toEqual(true); + }); + + it('should resolve file references', async function() { + const parser = new Parser(); + + const documentRaw = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'publish', + message: { + $ref: './mocks/simple-message.yaml' + } + }, + } + }, + }; + const { document } = await parser.parse(documentRaw, { source: __filename }); + + expect(document).toBeInstanceOf(AsyncAPIDocumentV2); + const refMessage = document?.channels().get('channel')?.operations().get('publish')?.messages()[0]; + expect(refMessage?.json()).not.toBeUndefined(); + expect(refMessage?.json('$ref')).toBeUndefined(); + }); + + it('should resolve http references', async function() { + const parser = new Parser(); + + const documentRaw = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'publish', + message: { + $ref: 'https://raw.githubusercontent.com/asyncapi/spec/v2.0.0/examples/2.0.0/streetlights.yml#/components/messages/lightMeasured' + } + }, + } + }, + }; + const { document } = await parser.parse(documentRaw); + expect(document).toBeInstanceOf(AsyncAPIDocumentV2); // we should have parsed document + }); + + it('should resolve custom protocols', async function() { + const parser = new Parser({ + __unstable: { + resolver: { + resolvers: [ + { + schema: 'customProtocol', + read(uri) { + if (uri.path() === '/someRef') { + return '{"someRef": "value"}'; + } + return '{"anotherRef": "value"}'; + }, + } + ] + } + } + }); + + const documentRaw = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'publish', + message: { + payload: { + $ref: 'customProtocol:///someRef' + } + } + }, + subscribe: { + operationId: 'subscribe', + message: { + payload: { + $ref: 'customProtocol:///anotherRef' + } + } + }, + } + }, + }; + const { document } = await parser.parse(documentRaw); + + expect(document).toBeInstanceOf(AsyncAPIDocumentV2); + const someRef = document?.channels().get('channel')?.operations().get('publish')?.messages()[0]?.payload(); + expect(someRef?.json()).toEqual({ someRef: 'value', 'x-parser-schema-id': '' }); + expect(someRef?.json('$ref' as any)).toBeUndefined(); + const anotherRef = document?.channels().get('channel')?.operations().get('subscribe')?.messages()[0]?.payload(); + expect(anotherRef?.json()).toEqual({ anotherRef: 'value', 'x-parser-schema-id': '' }); + expect(anotherRef?.json('$ref' as any)).toBeUndefined(); + }); +}); From cabf30945249c58b527c7787e603c576986a51c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Fri, 23 Sep 2022 10:33:56 +0200 Subject: [PATCH 056/126] refactor: apply latest changes to the avro schema parser (#623) --- src/schema-parser/avro-schema-parser.ts | 24 +++-- .../avro/asyncapi-avro-148-1.9.0.json | 67 ++++++++++++++ .../avro/avro-schema-parser.spec.ts | 87 ++++++++++++++++--- 3 files changed, 157 insertions(+), 21 deletions(-) create mode 100644 test/schema-parser/avro/asyncapi-avro-148-1.9.0.json diff --git a/src/schema-parser/avro-schema-parser.ts b/src/schema-parser/avro-schema-parser.ts index 530fffb2f..f81f395ef 100644 --- a/src/schema-parser/avro-schema-parser.ts +++ b/src/schema-parser/avro-schema-parser.ts @@ -84,12 +84,12 @@ const typeMappings: Record = { uuid: 'string', }; -function commonAttributesMapping(avroDefinition: AvroSchema, jsonSchema: v2.AsyncAPISchemaDefinition, isTopLevel: boolean): void { +function commonAttributesMapping(avroDefinition: AvroSchema, jsonSchema: v2.AsyncAPISchemaDefinition, recordCache: { [key:string]: AsyncAPISchema }): void { if (avroDefinition.doc) jsonSchema.description = avroDefinition.doc; if (avroDefinition.default !== undefined) jsonSchema.default = avroDefinition.default; const fullyQualifiedName = getFullyQualifiedName(avroDefinition); - if (isTopLevel && fullyQualifiedName !== undefined) { + if (fullyQualifiedName !== undefined && recordCache[fullyQualifiedName]) { jsonSchema['x-parser-schema-id'] = fullyQualifiedName; } } @@ -180,7 +180,9 @@ function additionalAttributesMapping(typeInput: any, avroDefinition: AvroSchema, setAdditionalAttribute('minimum', 'maximum', 'exclusiveMinimum', 'exclusiveMaximum', 'multipleOf'); break; case 'string': - jsonSchema.format = avroDefinition.logicalType; + if (avroDefinition.logicalType) { + jsonSchema.format = avroDefinition.logicalType; + } setAdditionalAttribute('pattern', 'minLength', 'maxLength'); break; case 'array': @@ -207,14 +209,14 @@ function validateAvroSchema(avroDefinition: AvroSchema): void | never { * @param key String | Undefined - the fully qualified name of an avro record * @param value JsonSchema - The json schema from the avro record */ -function cacheAvroRecordDef(cache: {[key:string]: AsyncAPISchema}, key: string, value: AsyncAPISchema): void { +function cacheAvroRecordDef(cache: { [key:string]: AsyncAPISchema }, key: string, value: AsyncAPISchema): void { if (key !== undefined) { cache[key] = value; } } async function convertAvroToJsonSchema(avroDefinition: AvroSchema , isTopLevel: boolean, recordCache: Map | any = {}): Promise { - const jsonSchema: v2.AsyncAPISchemaDefinition = {}; + let jsonSchema: v2.AsyncAPISchemaDefinition = {}; const isUnion = Array.isArray(avroDefinition); if (isUnion) { @@ -266,12 +268,20 @@ async function convertAvroToJsonSchema(avroDefinition: AvroSchema , isTopLevel: } case 'record': { const propsMap = await processRecordSchema(avroDefinition, recordCache, jsonSchema); + cacheAvroRecordDef(recordCache, getFullyQualifiedName(avroDefinition), propsMap); jsonSchema.properties = Object.fromEntries(propsMap.entries()); break; } + default: { + const cachedRecord = recordCache[getFullyQualifiedName(avroDefinition)]; + if (cachedRecord) { + jsonSchema = cachedRecord; + } + break; + } } - commonAttributesMapping(avroDefinition, jsonSchema, isTopLevel); + commonAttributesMapping(avroDefinition, jsonSchema, recordCache); additionalAttributesMapping(type, avroDefinition, jsonSchema); return jsonSchema; @@ -296,7 +306,7 @@ async function processRecordSchema(avroDefinition: AvroSchema, recordCache: Reco const def = await convertAvroToJsonSchema(field.type, false, recordCache); requiredAttributesMapping(field, jsonSchema, field.default !== undefined); - commonAttributesMapping(field, def, false); + commonAttributesMapping(field, def, recordCache); additionalAttributesMapping(field.type, field, def); propsMap.set(field.name, def); diff --git a/test/schema-parser/avro/asyncapi-avro-148-1.9.0.json b/test/schema-parser/avro/asyncapi-avro-148-1.9.0.json new file mode 100644 index 000000000..7bf12c833 --- /dev/null +++ b/test/schema-parser/avro/asyncapi-avro-148-1.9.0.json @@ -0,0 +1,67 @@ +{ + "schemaFormat": "application/vnd.apache.avro;version=1.9.0", + "payload": { + "type":"record", + "name":"RecordWithReferences", + "namespace":"com.example", + "fields":[ + { + "name":"Record1", + "type":{ + "type":"record", + "name":"Record1", + "doc":"Reused in other fields", + "fields":[ + { + "name":"string", + "type":"string", + "doc":"field in Record1" + } + ] + } + }, + { + "name":"FieldThatDefineRecordInUnion", + "type":[ + "null", + { + "type":"record", + "name":"RecordDefinedInUnion", + "namespace":"com.example.model", + "doc":"", + "fields":[ + { + "name":"number", + "type":"long", + "doc":"field in RecordDefinedInUnion", + "minimum": 0, + "maximum": 2 + } + ] + } + ], + "default":null + }, + { + "name":"FieldThatReuseRecordDefinedInUnion", + "type":[ + "null", + "com.example.model.RecordDefinedInUnion" + ], + "default":null + }, + { + "name":"FieldThatReuseRecord1", + "type":[ + "null", + "Record1" + ], + "default":null + }, + { + "name": "simpleField", + "type": "string" + } + ] + } +} \ No newline at end of file diff --git a/test/schema-parser/avro/avro-schema-parser.spec.ts b/test/schema-parser/avro/avro-schema-parser.spec.ts index 3afa487a6..41ff8118c 100644 --- a/test/schema-parser/avro/avro-schema-parser.spec.ts +++ b/test/schema-parser/avro/avro-schema-parser.spec.ts @@ -1,36 +1,38 @@ +import fs from 'fs'; +import path from 'path'; import { AvroSchemaParser, avroToJsonSchema } from '../../../src/schema-parser/avro-schema-parser'; -import * as fs from 'fs'; -import * as path from 'path'; -import type { Schema as AvroSchema } from 'avsc'; import type { ParseSchemaInput } from '../../../src/schema-parser'; const inputWithAvro182 = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.8.2.json'), 'utf8')); -const outputWithAvro182 = '{"type":"object","required":["name","favoriteProgrammingLanguage","address"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"]},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}}}}'; +const outputWithAvro182 = '{"type":"object","required":["name","favoriteProgrammingLanguage","address"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"]},"address":{"type":"object","x-parser-schema-id":"Address","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}}}}'; const inputWithAvro190 = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.9.0.json'), 'utf8')); -const outputWithAvro190 = '{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"Person"}'; +const outputWithAvro190 = '{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","x-parser-schema-id":"Address","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"Person"}'; const inputWithAvro190WithNamespace = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.9.0-namespace.json'), 'utf8')); -const outputWithAvro190WithNamespace = '{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"}'; +const outputWithAvro190WithNamespace = '{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","x-parser-schema-id":"Address","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"}'; const inputWithAvro190WithBindings = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.9.0-bindings.json'), 'utf8')); -const outputWithAvro190WithBindings = '{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"}'; -const outputWithAvro190WithBindingsKafkaKeyTransformed = '{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"}'; +const outputWithAvro190WithBindings = '{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","x-parser-schema-id":"Address","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"}'; +const outputWithAvro190WithBindingsKafkaKeyTransformed = '{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}},"x-parser-schema-id":"Address"},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"}'; const outputWithAvro190WithBindingsKafkaKeyOriginal = '{"name":"Person","namespace":"com.company","type":"record","fields":[{"name":"name","type":"string","example":"Donkey"},{"name":"age","type":["null","int"],"default":null,"example":123},{"name":"favoriteProgrammingLanguage","type":{"name":"ProgrammingLanguage","type":"enum","symbols":["JS","Java","Go","Rust","C"],"default":"JS"}},{"name":"address","type":{"name":"Address","type":"record","fields":[{"name":"zipcode","type":"int","example":53003}]}},{"name":"someid","type":"string","logicalType":"uuid"}]}'; const inputWithAvroAdditionalAttributes = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.9.0-additional-attributes.json'), 'utf8')); -const outputWithAvroAdditionalAttributes = '{"type":"object","required":["name","serialNo","favoriteProgrammingLanguage","certifications","address","weight","height","someid"],"properties":{"name":{"type":"string","examples":["Donkey"],"minLength":0},"serialNo":{"type":"string","minLength":0,"maxLength":50},"email":{"oneOf":[{"type":"string","examples":["donkey@asyncapi.com"],"pattern":"^[\\\\w-\\\\.]+@([\\\\w-]+\\\\.)+[\\\\w-]{2,4}$"},{"type":"null"}]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123],"exclusiveMinimum":0,"exclusiveMaximum":200},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"certifications":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":500,"uniqueItems":true},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]},"country":{"oneOf":[{"type":"string"},{"type":"null"}]}}},"weight":{"type":"number","format":"float","examples":[65.1],"minimum":0,"maximum":500},"height":{"type":"number","format":"double","examples":[1.85],"minimum":0,"maximum":3},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"}'; +const outputWithAvroAdditionalAttributes = '{"type":"object","required":["name","serialNo","favoriteProgrammingLanguage","certifications","address","weight","height","someid"],"properties":{"name":{"type":"string","examples":["Donkey"],"minLength":0},"serialNo":{"type":"string","minLength":0,"maxLength":50},"email":{"oneOf":[{"type":"string","examples":["donkey@asyncapi.com"],"pattern":"^[\\\\w-\\\\.]+@([\\\\w-]+\\\\.)+[\\\\w-]{2,4}$"},{"type":"null"}]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123],"exclusiveMinimum":0,"exclusiveMaximum":200},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"certifications":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":500,"uniqueItems":true},"address":{"type":"object","x-parser-schema-id":"Address","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]},"country":{"oneOf":[{"type":"string"},{"type":"null"}]}}},"weight":{"type":"number","format":"float","examples":[65.1],"minimum":0,"maximum":500},"height":{"type":"number","format":"double","examples":[1.85],"minimum":0,"maximum":3},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"}'; const inputWithInvalidAvro = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-invalid.json'), 'utf8')); const inputWithBrokenAvro = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-broken.json'), 'utf8')); const inputWithSubAvro190 = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-111-1.9.0.json'), 'utf8')); -const outputWithSubAvro190 = '{"type":"object","required":["metadata","auth_code","triggered_by"],"properties":{"metadata":{"type":"object","required":["id","timestamp"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for this specific event"},"timestamp":{"type":"integer","minimum":-9223372036854776000,"maximum":9223372036854776000,"description":"Instant the event took place (not necessary when it was published)"},"correlation_id":{"oneOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"id of the event that resulted in this\\nevent being published (optional)","default":null},"publisher_context":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"null"}],"description":"optional set of key-value pairs of context to be echoed back\\nin any resulting message (like a richer\\ncorrelationId.\\n\\nThese values are likely only meaningful to the publisher\\nof the correlated event","default":null}},"description":"Metadata to be associated with every published event"},"auth_code":{"type":"object","required":["value","nonce","key"],"properties":{"value":{"type":"string","description":"A sequence of bytes that has been AES encrypted in CTR mode."},"nonce":{"type":"string","description":"A nonce, used by the CTR encryption mode for our encrypted value. Not encrypted, not a secret."},"key":{"type":"string","description":"An AES key, used to encrypt the value field, that has itself been encrypted using RSA."}},"description":"Encrypted auth_code received when user authorizes the app."},"refresh_token":{"type":"object","required":["value","nonce","key"],"properties":{"value":{"type":"string","description":"A sequence of bytes that has been AES encrypted in CTR mode."},"nonce":{"type":"string","description":"A nonce, used by the CTR encryption mode for our encrypted value. Not encrypted, not a secret."},"key":{"type":"string","description":"An AES key, used to encrypt the value field, that has itself been encrypted using RSA."}},"description":"Encrypted auth_code received when user authorizes the app."},"triggered_by":{"type":"string","format":"uuid","description":"ID of the user who triggered this event."}},"description":"An example schema to illustrate the issue","x-parser-schema-id":"com.foo.connections.ConnectionRequested"}'; +const outputWithSubAvro190 = '{"type":"object","required":["metadata","auth_code","triggered_by"],"properties":{"metadata":{"type":"object","x-parser-schema-id":"com.foo.EventMetadata","required":["id","timestamp"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for this specific event"},"timestamp":{"type":"integer","minimum":-9223372036854776000,"maximum":9223372036854776000,"description":"Instant the event took place (not necessary when it was published)"},"correlation_id":{"oneOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"id of the event that resulted in this\\nevent being published (optional)","default":null},"publisher_context":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"null"}],"description":"optional set of key-value pairs of context to be echoed back\\nin any resulting message (like a richer\\ncorrelationId.\\n\\nThese values are likely only meaningful to the publisher\\nof the correlated event","default":null}},"description":"Metadata to be associated with every published event"},"auth_code":{"type":"object","x-parser-schema-id":"com.foo.EncryptedString","required":["value","nonce","key"],"properties":{"value":{"type":"string","description":"A sequence of bytes that has been AES encrypted in CTR mode."},"nonce":{"type":"string","description":"A nonce, used by the CTR encryption mode for our encrypted value. Not encrypted, not a secret."},"key":{"type":"string","description":"An AES key, used to encrypt the value field, that has itself been encrypted using RSA."}},"description":"Encrypted auth_code received when user authorizes the app."},"refresh_token":{"type":"object","required":["value","nonce","key"],"properties":{"value":{"type":"string","description":"A sequence of bytes that has been AES encrypted in CTR mode."},"nonce":{"type":"string","description":"A nonce, used by the CTR encryption mode for our encrypted value. Not encrypted, not a secret."},"key":{"type":"string","description":"An AES key, used to encrypt the value field, that has itself been encrypted using RSA."}},"description":"Encrypted auth_code received when user authorizes the app.","x-parser-schema-id":"com.foo.EncryptedString"},"triggered_by":{"type":"string","format":"uuid","description":"ID of the user who triggered this event."}},"description":"An example schema to illustrate the issue","x-parser-schema-id":"com.foo.connections.ConnectionRequested"}'; const inputWithOneOfReferenceAvro190 = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-113-1.9.0.json'), 'utf8')); const outputWithOneOfReferenceAvro190 = '{"oneOf":[{"type":"object","required":["streetaddress","city"],"properties":{"streetaddress":{"type":"string"},"city":{"type":"string"}},"x-parser-schema-id":"com.example.Address"},{"type":"object","required":["firstname","lastname"],"properties":{"firstname":{"type":"string"},"lastname":{"type":"string"},"address":{"type":"object","required":["streetaddress","city"],"properties":{"streetaddress":{"type":"string"},"city":{"type":"string"}},"x-parser-schema-id":"com.example.Address"}},"x-parser-schema-id":"com.example.Person"}]}'; +const inputWithRecordReferencesAvro190 = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-148-1.9.0.json'), 'utf8')); +const outputWithRecordReferencesAvro190 = '{"type":"object","required":["Record1","simpleField"],"properties":{"Record1":{"type":"object","required":["string"],"properties":{"string":{"type":"string","description":"field in Record1"}},"description":"Reused in other fields","x-parser-schema-id":"Record1"},"FieldThatDefineRecordInUnion":{"oneOf":[{"type":"object","required":["number"],"properties":{"number":{"type":"integer","minimum":0,"maximum":2,"description":"field in RecordDefinedInUnion"}},"x-parser-schema-id":"com.example.model.RecordDefinedInUnion"},{"type":"null"}],"default":null},"FieldThatReuseRecordDefinedInUnion":{"oneOf":[{},{"type":"null"}],"default":null},"FieldThatReuseRecord1":{"oneOf":[{},{"type":"null"}],"default":null},"simpleField":{"type":"string"}},"x-parser-schema-id":"com.example.RecordWithReferences"}'; + describe('AvroSchemaParser', function () { const parser = AvroSchemaParser(); @@ -90,16 +92,16 @@ describe('AvroSchemaParser', function () { await doTest(inputWithOneOfReferenceAvro190, outputWithOneOfReferenceAvro190); }); + it('Issue #148 should handle records references in a top level record', async function() { + await doTest(inputWithRecordReferencesAvro190, outputWithRecordReferencesAvro190); + }); + async function doTest(originalInput: ParseSchemaInput, expectedOutput: any) { const input = {...originalInput}; const result = await parser.parse(input); // Check that the return value of parse() is the expected JSON Schema. expect(result).toEqual(JSON.parse(expectedOutput)); - - // // Check that the message got modified, i.e. adding extensions, setting the payload, etc. - // const message = (input.meta as any).message; - // expect(JSON.stringify(message)).toEqual(expectedOutput); } }); @@ -246,6 +248,63 @@ describe('avroToJsonSchema()', function () { ] }); }); + + it('support record references', async function () { + const result = await avroToJsonSchema({ + type: 'record', + doc: 'My test record', + name: 'MyName', + fields: [ + { + name: 'key1', + type: {type: 'record', name: 'recordKey1', doc: 'Key1 docs', fields: [{type: 'string', name: 'test'}]} + }, + {name: 'key2', type: {type: 'record', fields: [{name: 'recordReference', type: 'recordKey1'}]}}, + ] + } as any); + expect(result).toEqual({ + description: 'My test record', + properties: { + key1: { + description: 'Key1 docs', + properties: { + test: { + type: 'string' + } + }, + required: [ + 'test' + ], + type: 'object', + 'x-parser-schema-id': 'recordKey1' + }, + key2: { + properties: { + recordReference: { + description: 'Key1 docs', + properties: { + test: { + type: 'string' + } + }, + required: [ + 'test' + ], + type: 'object', + 'x-parser-schema-id': 'recordKey1' + } + }, + type: 'object' + } + }, + required: [ + 'key1', + 'key2' + ], + type: 'object', + 'x-parser-schema-id': 'MyName' + }); + }); }); function toParseInput(raw: string): ParseSchemaInput { From f93506bfdb3b44c21755de5eadcbd0289a48f29f Mon Sep 17 00:00:00 2001 From: Matatjahu Date: Mon, 3 Oct 2022 14:29:09 +0200 Subject: [PATCH 057/126] remove unnecessary folders --- browser/index.js | 8 - browser/index.js.LICENSE.txt | 84 ---- cjs/constants.d.ts | 13 - cjs/constants.js | 22 -- cjs/custom-operations/anonymous-naming.d.ts | 2 - cjs/custom-operations/anonymous-naming.js | 63 --- cjs/custom-operations/apply-traits.d.ts | 3 - cjs/custom-operations/apply-traits.js | 54 --- .../check-circular-refs.d.ts | 2 - cjs/custom-operations/check-circular-refs.js | 24 -- cjs/custom-operations/index.d.ts | 5 - cjs/custom-operations/index.js | 37 -- cjs/custom-operations/parse-schema.d.ts | 3 - cjs/custom-operations/parse-schema.js | 79 ---- cjs/document.d.ts | 7 - cjs/document.js | 47 --- cjs/from.d.ts | 14 - cjs/from.js | 93 ----- cjs/index.d.ts | 13 - cjs/index.js | 31 -- cjs/iterator.d.ts | 42 -- cjs/iterator.js | 228 ----------- cjs/models/asyncapi.d.ts | 24 -- cjs/models/asyncapi.js | 2 - cjs/models/base.d.ts | 17 - cjs/models/base.js | 33 -- cjs/models/binding.d.ts | 7 - cjs/models/binding.js | 2 - cjs/models/bindings.d.ts | 5 - cjs/models/bindings.js | 2 - cjs/models/channel-parameter.d.ts | 10 - cjs/models/channel-parameter.js | 2 - cjs/models/channel-parameters.d.ts | 3 - cjs/models/channel-parameters.js | 2 - cjs/models/channel.d.ts | 14 - cjs/models/channel.js | 2 - cjs/models/channels.d.ts | 6 - cjs/models/channels.js | 2 - cjs/models/collection.d.ts | 19 - cjs/models/collection.js | 30 -- cjs/models/components.d.ts | 32 -- cjs/models/components.js | 2 - cjs/models/contact.d.ts | 10 - cjs/models/contact.js | 2 - cjs/models/correlation-id.d.ts | 6 - cjs/models/correlation-id.js | 2 - cjs/models/correlation-ids.d.ts | 3 - cjs/models/correlation-ids.js | 2 - cjs/models/extension.d.ts | 6 - cjs/models/extension.js | 2 - cjs/models/extensions.d.ts | 3 - cjs/models/extensions.js | 2 - cjs/models/external-docs.d.ts | 5 - cjs/models/external-docs.js | 2 - cjs/models/index.d.ts | 44 --- cjs/models/index.js | 60 --- cjs/models/info.d.ts | 16 - cjs/models/info.js | 2 - cjs/models/license.d.ts | 7 - cjs/models/license.js | 2 - cjs/models/message-example.d.ts | 12 - cjs/models/message-example.js | 2 - cjs/models/message-examples.d.ts | 3 - cjs/models/message-examples.js | 2 - cjs/models/message-trait.d.ts | 24 -- cjs/models/message-trait.js | 2 - cjs/models/message-traits.d.ts | 3 - cjs/models/message-traits.js | 2 - cjs/models/message.d.ts | 15 - cjs/models/message.js | 2 - cjs/models/messages.d.ts | 6 - cjs/models/messages.js | 2 - cjs/models/mixins.d.ts | 21 - cjs/models/mixins.js | 2 - cjs/models/oauth-flow.d.ts | 9 - cjs/models/oauth-flow.js | 2 - cjs/models/oauth-flows.d.ts | 13 - cjs/models/oauth-flows.js | 2 - cjs/models/operation-trait.d.ts | 11 - cjs/models/operation-trait.js | 2 - cjs/models/operation-traits.d.ts | 3 - cjs/models/operation-traits.js | 2 - cjs/models/operation.d.ts | 16 - cjs/models/operation.js | 2 - cjs/models/operations.d.ts | 6 - cjs/models/operations.js | 2 - cjs/models/schema.d.ts | 56 --- cjs/models/schema.js | 2 - cjs/models/schemas.d.ts | 3 - cjs/models/schemas.js | 2 - cjs/models/security-requirement.d.ts | 6 - cjs/models/security-requirement.js | 2 - cjs/models/security-requirements.d.ts | 3 - cjs/models/security-requirements.js | 2 - cjs/models/security-scheme.d.ts | 13 - cjs/models/security-scheme.js | 2 - cjs/models/security-schemes.d.ts | 3 - cjs/models/security-schemes.js | 2 - cjs/models/server-variable.d.ts | 10 - cjs/models/server-variable.js | 2 - cjs/models/server-variables.d.ts | 3 - cjs/models/server-variables.js | 2 - cjs/models/server.d.ts | 19 - cjs/models/server.js | 2 - cjs/models/servers.d.ts | 6 - cjs/models/servers.js | 2 - cjs/models/tag.d.ts | 5 - cjs/models/tag.js | 2 - cjs/models/tags.d.ts | 3 - cjs/models/tags.js | 2 - cjs/models/utils.d.ts | 10 - cjs/models/utils.js | 7 - cjs/models/v2/asyncapi.d.ts | 26 -- cjs/models/v2/asyncapi.js | 61 --- cjs/models/v2/binding.d.ts | 12 - cjs/models/v2/binding.js | 22 -- cjs/models/v2/bindings.d.ts | 8 - cjs/models/v2/bindings.js | 23 -- cjs/models/v2/channel-parameter.d.ts | 17 - cjs/models/v2/channel-parameter.js | 35 -- cjs/models/v2/channel-parameters.d.ts | 6 - cjs/models/v2/channel-parameters.js | 10 - cjs/models/v2/channel.d.ts | 24 -- cjs/models/v2/channel.js | 67 ---- cjs/models/v2/channels.d.ts | 8 - cjs/models/v2/channels.js | 16 - cjs/models/v2/components.d.ts | 39 -- cjs/models/v2/components.js | 101 ----- cjs/models/v2/contact.d.ts | 13 - cjs/models/v2/contact.js | 29 -- cjs/models/v2/correlation-id.d.ts | 11 - cjs/models/v2/correlation-id.js | 23 -- cjs/models/v2/correlation-ids.d.ts | 6 - cjs/models/v2/correlation-ids.js | 10 - cjs/models/v2/extension.d.ts | 10 - cjs/models/v2/extension.js | 16 - cjs/models/v2/extensions.d.ts | 6 - cjs/models/v2/extensions.js | 11 - cjs/models/v2/external-docs.d.ts | 10 - cjs/models/v2/external-docs.js | 20 - cjs/models/v2/index.d.ts | 37 -- cjs/models/v2/index.js | 77 ---- cjs/models/v2/info.d.ts | 26 -- cjs/models/v2/info.js | 66 ---- cjs/models/v2/license.d.ts | 10 - cjs/models/v2/license.js | 20 - cjs/models/v2/message-example.d.ts | 15 - cjs/models/v2/message-example.js | 35 -- cjs/models/v2/message-examples.d.ts | 6 - cjs/models/v2/message-examples.js | 10 - cjs/models/v2/message-trait.d.ts | 38 -- cjs/models/v2/message-trait.js | 94 ----- cjs/models/v2/message-traits.d.ts | 6 - cjs/models/v2/message-traits.js | 10 - cjs/models/v2/message.d.ts | 16 - cjs/models/v2/message.js | 67 ---- cjs/models/v2/messages.d.ts | 8 - cjs/models/v2/messages.js | 16 - cjs/models/v2/mixins.d.ts | 25 -- cjs/models/v2/mixins.js | 49 --- cjs/models/v2/oauth-flow.d.ts | 12 - cjs/models/v2/oauth-flow.js | 26 -- cjs/models/v2/oauth-flows.d.ts | 16 - cjs/models/v2/oauth-flows.js | 44 --- cjs/models/v2/operation-trait.d.ts | 30 -- cjs/models/v2/operation-trait.js | 68 ---- cjs/models/v2/operation-traits.d.ts | 6 - cjs/models/v2/operation-traits.js | 10 - cjs/models/v2/operation.d.ts | 13 - cjs/models/v2/operation.js | 57 --- cjs/models/v2/operations.d.ts | 8 - cjs/models/v2/operations.js | 16 - cjs/models/v2/schema.d.ts | 69 ---- cjs/models/v2/schema.js | 313 --------------- cjs/models/v2/schemas.d.ts | 6 - cjs/models/v2/schemas.js | 10 - cjs/models/v2/security-requirement.d.ts | 12 - cjs/models/v2/security-requirement.js | 13 - cjs/models/v2/security-requirements.d.ts | 6 - cjs/models/v2/security-requirements.js | 10 - cjs/models/v2/security-scheme.d.ts | 20 - cjs/models/v2/security-scheme.js | 44 --- cjs/models/v2/security-schemes.d.ts | 6 - cjs/models/v2/security-schemes.js | 10 - cjs/models/v2/server-variable.d.ts | 17 - cjs/models/v2/server-variable.js | 35 -- cjs/models/v2/server-variables.d.ts | 6 - cjs/models/v2/server-variables.js | 10 - cjs/models/v2/server.d.ts | 28 -- cjs/models/v2/server.js | 88 ----- cjs/models/v2/servers.d.ts | 8 - cjs/models/v2/servers.js | 16 - cjs/models/v2/tag.d.ts | 13 - cjs/models/v2/tag.js | 26 -- cjs/models/v2/tags.d.ts | 6 - cjs/models/v2/tags.js | 10 - cjs/models/v3/asyncapi.d.ts | 4 - cjs/models/v3/asyncapi.js | 10 - cjs/models/v3/index.d.ts | 1 - cjs/models/v3/index.js | 5 - cjs/old-api/asyncapi.d.ts | 40 -- cjs/old-api/asyncapi.js | 161 -------- cjs/old-api/base.d.ts | 8 - cjs/old-api/base.js | 18 - cjs/old-api/channel-parameter.d.ts | 9 - cjs/old-api/channel-parameter.js | 22 -- cjs/old-api/channel.d.ts | 23 -- cjs/old-api/channel.js | 72 ---- cjs/old-api/components.d.ts | 44 --- cjs/old-api/components.js | 107 ------ cjs/old-api/contact.d.ts | 7 - cjs/old-api/contact.js | 16 - cjs/old-api/converter.d.ts | 3 - cjs/old-api/converter.js | 49 --- cjs/old-api/correlation-id.d.ts | 7 - cjs/old-api/correlation-id.js | 16 - cjs/old-api/external-docs.d.ts | 15 - cjs/old-api/external-docs.js | 41 -- cjs/old-api/info.d.ts | 13 - cjs/old-api/info.js | 34 -- cjs/old-api/iterator.d.ts | 42 -- cjs/old-api/iterator.js | 250 ------------ cjs/old-api/license.d.ts | 6 - cjs/old-api/license.js | 13 - cjs/old-api/message-trait.d.ts | 30 -- cjs/old-api/message-trait.js | 87 ----- cjs/old-api/message.d.ts | 11 - cjs/old-api/message.js | 32 -- cjs/old-api/mixins.d.ts | 95 ----- cjs/old-api/mixins.js | 148 ------- cjs/old-api/oauth-flow.d.ts | 8 - cjs/old-api/oauth-flow.js | 19 - cjs/old-api/operation-trait.d.ts | 27 -- cjs/old-api/operation-trait.js | 70 ---- cjs/old-api/operation.d.ts | 10 - cjs/old-api/operation.js | 46 --- cjs/old-api/schema.d.ts | 63 --- cjs/old-api/schema.js | 253 ------------ cjs/old-api/security-requirement.d.ts | 4 - cjs/old-api/security-requirement.js | 7 - cjs/old-api/security-scheme.d.ts | 14 - cjs/old-api/security-scheme.js | 35 -- cjs/old-api/server-variable.d.ts | 12 - cjs/old-api/server-variable.js | 33 -- cjs/old-api/server.d.ts | 20 - cjs/old-api/server.js | 53 --- cjs/old-api/tag.d.ts | 17 - cjs/old-api/tag.js | 47 --- cjs/parse.d.ts | 16 - cjs/parse.js | 46 --- cjs/parser.d.ts | 21 - cjs/parser.js | 53 --- cjs/resolver.d.ts | 13 - cjs/resolver.js | 77 ---- cjs/schema-parser/asyncapi-schema-parser.d.ts | 2 - cjs/schema-parser/asyncapi-schema-parser.js | 95 ----- cjs/schema-parser/avro-schema-parser.d.ts | 9 - cjs/schema-parser/avro-schema-parser.js | 347 ----------------- cjs/schema-parser/index.d.ts | 28 -- cjs/schema-parser/index.js | 66 ---- cjs/schema-parser/openapi-schema-parser.d.ts | 2 - cjs/schema-parser/openapi-schema-parser.js | 106 ----- cjs/schema-parser/openapi/schema_v3.d.ts | 239 ------------ cjs/schema-parser/openapi/schema_v3.js | 278 -------------- cjs/schema-parser/raml-schema-parser.d.ts | 2 - cjs/schema-parser/raml-schema-parser.js | 89 ----- cjs/schema-parser/spectral-rule-v2.d.ts | 3 - cjs/schema-parser/spectral-rule-v2.js | 81 ---- cjs/spec-types/index.d.ts | 1 - cjs/spec-types/index.js | 27 -- cjs/spec-types/v2.d.ts | 362 ------------------ cjs/spec-types/v2.js | 2 - cjs/spectral.d.ts | 3 - cjs/spectral.js | 69 ---- cjs/stringify.d.ts | 9 - cjs/stringify.js | 105 ----- cjs/types.d.ts | 23 -- cjs/types.js | 2 - cjs/utils.d.ts | 20 - cjs/utils.js | 138 ------- cjs/validate.d.ts | 15 - cjs/validate.js | 39 -- esm/constants.d.ts | 13 - esm/constants.js | 16 - esm/custom-operations/anonymous-naming.d.ts | 2 - esm/custom-operations/anonymous-naming.js | 59 --- esm/custom-operations/apply-traits.d.ts | 3 - esm/custom-operations/apply-traits.js | 49 --- .../check-circular-refs.d.ts | 2 - esm/custom-operations/check-circular-refs.js | 20 - esm/custom-operations/index.d.ts | 5 - esm/custom-operations/index.js | 33 -- esm/custom-operations/parse-schema.d.ts | 3 - esm/custom-operations/parse-schema.js | 75 ---- esm/document.d.ts | 7 - esm/document.js | 39 -- esm/from.d.ts | 14 - esm/from.js | 65 ---- esm/index.d.ts | 13 - esm/index.js | 8 - esm/iterator.d.ts | 42 -- esm/iterator.js | 224 ----------- esm/models/asyncapi.d.ts | 24 -- esm/models/asyncapi.js | 1 - esm/models/base.d.ts | 17 - esm/models/base.js | 29 -- esm/models/binding.d.ts | 7 - esm/models/binding.js | 1 - esm/models/bindings.d.ts | 5 - esm/models/bindings.js | 1 - esm/models/channel-parameter.d.ts | 10 - esm/models/channel-parameter.js | 1 - esm/models/channel-parameters.d.ts | 3 - esm/models/channel-parameters.js | 1 - esm/models/channel.d.ts | 14 - esm/models/channel.js | 1 - esm/models/channels.d.ts | 6 - esm/models/channels.js | 1 - esm/models/collection.d.ts | 19 - esm/models/collection.js | 26 -- esm/models/components.d.ts | 32 -- esm/models/components.js | 1 - esm/models/contact.d.ts | 10 - esm/models/contact.js | 1 - esm/models/correlation-id.d.ts | 6 - esm/models/correlation-id.js | 1 - esm/models/correlation-ids.d.ts | 3 - esm/models/correlation-ids.js | 1 - esm/models/extension.d.ts | 6 - esm/models/extension.js | 1 - esm/models/extensions.d.ts | 3 - esm/models/extensions.js | 1 - esm/models/external-docs.d.ts | 5 - esm/models/external-docs.js | 1 - esm/models/index.d.ts | 44 --- esm/models/index.js | 44 --- esm/models/info.d.ts | 16 - esm/models/info.js | 1 - esm/models/license.d.ts | 7 - esm/models/license.js | 1 - esm/models/message-example.d.ts | 12 - esm/models/message-example.js | 1 - esm/models/message-examples.d.ts | 3 - esm/models/message-examples.js | 1 - esm/models/message-trait.d.ts | 24 -- esm/models/message-trait.js | 1 - esm/models/message-traits.d.ts | 3 - esm/models/message-traits.js | 1 - esm/models/message.d.ts | 15 - esm/models/message.js | 1 - esm/models/messages.d.ts | 6 - esm/models/messages.js | 1 - esm/models/mixins.d.ts | 21 - esm/models/mixins.js | 1 - esm/models/oauth-flow.d.ts | 9 - esm/models/oauth-flow.js | 1 - esm/models/oauth-flows.d.ts | 13 - esm/models/oauth-flows.js | 1 - esm/models/operation-trait.d.ts | 11 - esm/models/operation-trait.js | 1 - esm/models/operation-traits.d.ts | 3 - esm/models/operation-traits.js | 1 - esm/models/operation.d.ts | 16 - esm/models/operation.js | 1 - esm/models/operations.d.ts | 6 - esm/models/operations.js | 1 - esm/models/schema.d.ts | 56 --- esm/models/schema.js | 1 - esm/models/schemas.d.ts | 3 - esm/models/schemas.js | 1 - esm/models/security-requirement.d.ts | 6 - esm/models/security-requirement.js | 1 - esm/models/security-requirements.d.ts | 3 - esm/models/security-requirements.js | 1 - esm/models/security-scheme.d.ts | 13 - esm/models/security-scheme.js | 1 - esm/models/security-schemes.d.ts | 3 - esm/models/security-schemes.js | 1 - esm/models/server-variable.d.ts | 10 - esm/models/server-variable.js | 1 - esm/models/server-variables.d.ts | 3 - esm/models/server-variables.js | 1 - esm/models/server.d.ts | 19 - esm/models/server.js | 1 - esm/models/servers.d.ts | 6 - esm/models/servers.js | 1 - esm/models/tag.d.ts | 5 - esm/models/tag.js | 1 - esm/models/tags.d.ts | 3 - esm/models/tags.js | 1 - esm/models/utils.d.ts | 10 - esm/models/utils.js | 3 - esm/models/v2/asyncapi.d.ts | 26 -- esm/models/v2/asyncapi.js | 57 --- esm/models/v2/binding.d.ts | 12 - esm/models/v2/binding.js | 18 - esm/models/v2/bindings.d.ts | 8 - esm/models/v2/bindings.js | 19 - esm/models/v2/channel-parameter.d.ts | 17 - esm/models/v2/channel-parameter.js | 31 -- esm/models/v2/channel-parameters.d.ts | 6 - esm/models/v2/channel-parameters.js | 6 - esm/models/v2/channel.d.ts | 24 -- esm/models/v2/channel.js | 63 --- esm/models/v2/channels.d.ts | 8 - esm/models/v2/channels.js | 12 - esm/models/v2/components.d.ts | 39 -- esm/models/v2/components.js | 97 ----- esm/models/v2/contact.d.ts | 13 - esm/models/v2/contact.js | 25 -- esm/models/v2/correlation-id.d.ts | 11 - esm/models/v2/correlation-id.js | 19 - esm/models/v2/correlation-ids.d.ts | 6 - esm/models/v2/correlation-ids.js | 6 - esm/models/v2/extension.d.ts | 10 - esm/models/v2/extension.js | 12 - esm/models/v2/extensions.d.ts | 6 - esm/models/v2/extensions.js | 7 - esm/models/v2/external-docs.d.ts | 10 - esm/models/v2/external-docs.js | 16 - esm/models/v2/index.d.ts | 37 -- esm/models/v2/index.js | 37 -- esm/models/v2/info.d.ts | 26 -- esm/models/v2/info.js | 62 --- esm/models/v2/license.d.ts | 10 - esm/models/v2/license.js | 16 - esm/models/v2/message-example.d.ts | 15 - esm/models/v2/message-example.js | 31 -- esm/models/v2/message-examples.d.ts | 6 - esm/models/v2/message-examples.js | 6 - esm/models/v2/message-trait.d.ts | 38 -- esm/models/v2/message-trait.js | 90 ----- esm/models/v2/message-traits.d.ts | 6 - esm/models/v2/message-traits.js | 6 - esm/models/v2/message.d.ts | 16 - esm/models/v2/message.js | 63 --- esm/models/v2/messages.d.ts | 8 - esm/models/v2/messages.js | 12 - esm/models/v2/mixins.d.ts | 25 -- esm/models/v2/mixins.js | 39 -- esm/models/v2/oauth-flow.d.ts | 12 - esm/models/v2/oauth-flow.js | 22 -- esm/models/v2/oauth-flows.d.ts | 16 - esm/models/v2/oauth-flows.js | 40 -- esm/models/v2/operation-trait.d.ts | 30 -- esm/models/v2/operation-trait.js | 64 ---- esm/models/v2/operation-traits.d.ts | 6 - esm/models/v2/operation-traits.js | 6 - esm/models/v2/operation.d.ts | 13 - esm/models/v2/operation.js | 53 --- esm/models/v2/operations.d.ts | 8 - esm/models/v2/operations.js | 12 - esm/models/v2/schema.d.ts | 69 ---- esm/models/v2/schema.js | 309 --------------- esm/models/v2/schemas.d.ts | 6 - esm/models/v2/schemas.js | 6 - esm/models/v2/security-requirement.d.ts | 12 - esm/models/v2/security-requirement.js | 9 - esm/models/v2/security-requirements.d.ts | 6 - esm/models/v2/security-requirements.js | 6 - esm/models/v2/security-scheme.d.ts | 20 - esm/models/v2/security-scheme.js | 40 -- esm/models/v2/security-schemes.d.ts | 6 - esm/models/v2/security-schemes.js | 6 - esm/models/v2/server-variable.d.ts | 17 - esm/models/v2/server-variable.js | 31 -- esm/models/v2/server-variables.d.ts | 6 - esm/models/v2/server-variables.js | 6 - esm/models/v2/server.d.ts | 28 -- esm/models/v2/server.js | 84 ---- esm/models/v2/servers.d.ts | 8 - esm/models/v2/servers.js | 12 - esm/models/v2/tag.d.ts | 13 - esm/models/v2/tag.js | 22 -- esm/models/v2/tags.d.ts | 6 - esm/models/v2/tags.js | 6 - esm/models/v3/asyncapi.d.ts | 4 - esm/models/v3/asyncapi.js | 6 - esm/models/v3/index.d.ts | 1 - esm/models/v3/index.js | 1 - esm/old-api/asyncapi.d.ts | 40 -- esm/old-api/asyncapi.js | 157 -------- esm/old-api/base.d.ts | 8 - esm/old-api/base.js | 14 - esm/old-api/channel-parameter.d.ts | 9 - esm/old-api/channel-parameter.js | 18 - esm/old-api/channel.d.ts | 23 -- esm/old-api/channel.js | 68 ---- esm/old-api/components.d.ts | 44 --- esm/old-api/components.js | 103 ----- esm/old-api/contact.d.ts | 7 - esm/old-api/contact.js | 12 - esm/old-api/converter.d.ts | 3 - esm/old-api/converter.js | 45 --- esm/old-api/correlation-id.d.ts | 7 - esm/old-api/correlation-id.js | 12 - esm/old-api/external-docs.d.ts | 15 - esm/old-api/external-docs.js | 37 -- esm/old-api/info.d.ts | 13 - esm/old-api/info.js | 30 -- esm/old-api/iterator.d.ts | 42 -- esm/old-api/iterator.js | 246 ------------ esm/old-api/license.d.ts | 6 - esm/old-api/license.js | 9 - esm/old-api/message-trait.d.ts | 30 -- esm/old-api/message-trait.js | 83 ---- esm/old-api/message.d.ts | 11 - esm/old-api/message.js | 28 -- esm/old-api/mixins.d.ts | 95 ----- esm/old-api/mixins.js | 138 ------- esm/old-api/oauth-flow.d.ts | 8 - esm/old-api/oauth-flow.js | 15 - esm/old-api/operation-trait.d.ts | 27 -- esm/old-api/operation-trait.js | 66 ---- esm/old-api/operation.d.ts | 10 - esm/old-api/operation.js | 42 -- esm/old-api/schema.d.ts | 63 --- esm/old-api/schema.js | 249 ------------ esm/old-api/security-requirement.d.ts | 4 - esm/old-api/security-requirement.js | 3 - esm/old-api/security-scheme.d.ts | 14 - esm/old-api/security-scheme.js | 31 -- esm/old-api/server-variable.d.ts | 12 - esm/old-api/server-variable.js | 29 -- esm/old-api/server.d.ts | 20 - esm/old-api/server.js | 49 --- esm/old-api/tag.d.ts | 17 - esm/old-api/tag.js | 43 --- esm/parse.d.ts | 16 - esm/parse.js | 42 -- esm/parser.d.ts | 21 - esm/parser.js | 49 --- esm/resolver.d.ts | 13 - esm/resolver.js | 73 ---- esm/schema-parser/asyncapi-schema-parser.d.ts | 2 - esm/schema-parser/asyncapi-schema-parser.js | 88 ----- esm/schema-parser/avro-schema-parser.d.ts | 9 - esm/schema-parser/avro-schema-parser.js | 339 ---------------- esm/schema-parser/index.d.ts | 28 -- esm/schema-parser/index.js | 58 --- esm/schema-parser/openapi-schema-parser.d.ts | 2 - esm/schema-parser/openapi-schema-parser.js | 99 ----- esm/schema-parser/openapi/schema_v3.d.ts | 239 ------------ esm/schema-parser/openapi/schema_v3.js | 275 ------------- esm/schema-parser/raml-schema-parser.d.ts | 2 - esm/schema-parser/raml-schema-parser.js | 59 --- esm/schema-parser/spectral-rule-v2.d.ts | 3 - esm/schema-parser/spectral-rule-v2.js | 77 ---- esm/spec-types/index.d.ts | 1 - esm/spec-types/index.js | 1 - esm/spec-types/v2.d.ts | 362 ------------------ esm/spec-types/v2.js | 1 - esm/spectral.d.ts | 3 - esm/spectral.js | 62 --- esm/stringify.d.ts | 9 - esm/stringify.js | 97 ----- esm/types.d.ts | 23 -- esm/types.js | 1 - esm/utils.d.ts | 20 - esm/utils.js | 120 ------ esm/validate.d.ts | 15 - esm/validate.js | 35 -- 562 files changed, 16343 deletions(-) delete mode 100644 browser/index.js delete mode 100644 browser/index.js.LICENSE.txt delete mode 100644 cjs/constants.d.ts delete mode 100644 cjs/constants.js delete mode 100644 cjs/custom-operations/anonymous-naming.d.ts delete mode 100644 cjs/custom-operations/anonymous-naming.js delete mode 100644 cjs/custom-operations/apply-traits.d.ts delete mode 100644 cjs/custom-operations/apply-traits.js delete mode 100644 cjs/custom-operations/check-circular-refs.d.ts delete mode 100644 cjs/custom-operations/check-circular-refs.js delete mode 100644 cjs/custom-operations/index.d.ts delete mode 100644 cjs/custom-operations/index.js delete mode 100644 cjs/custom-operations/parse-schema.d.ts delete mode 100644 cjs/custom-operations/parse-schema.js delete mode 100644 cjs/document.d.ts delete mode 100644 cjs/document.js delete mode 100644 cjs/from.d.ts delete mode 100644 cjs/from.js delete mode 100644 cjs/index.d.ts delete mode 100644 cjs/index.js delete mode 100644 cjs/iterator.d.ts delete mode 100644 cjs/iterator.js delete mode 100644 cjs/models/asyncapi.d.ts delete mode 100644 cjs/models/asyncapi.js delete mode 100644 cjs/models/base.d.ts delete mode 100644 cjs/models/base.js delete mode 100644 cjs/models/binding.d.ts delete mode 100644 cjs/models/binding.js delete mode 100644 cjs/models/bindings.d.ts delete mode 100644 cjs/models/bindings.js delete mode 100644 cjs/models/channel-parameter.d.ts delete mode 100644 cjs/models/channel-parameter.js delete mode 100644 cjs/models/channel-parameters.d.ts delete mode 100644 cjs/models/channel-parameters.js delete mode 100644 cjs/models/channel.d.ts delete mode 100644 cjs/models/channel.js delete mode 100644 cjs/models/channels.d.ts delete mode 100644 cjs/models/channels.js delete mode 100644 cjs/models/collection.d.ts delete mode 100644 cjs/models/collection.js delete mode 100644 cjs/models/components.d.ts delete mode 100644 cjs/models/components.js delete mode 100644 cjs/models/contact.d.ts delete mode 100644 cjs/models/contact.js delete mode 100644 cjs/models/correlation-id.d.ts delete mode 100644 cjs/models/correlation-id.js delete mode 100644 cjs/models/correlation-ids.d.ts delete mode 100644 cjs/models/correlation-ids.js delete mode 100644 cjs/models/extension.d.ts delete mode 100644 cjs/models/extension.js delete mode 100644 cjs/models/extensions.d.ts delete mode 100644 cjs/models/extensions.js delete mode 100644 cjs/models/external-docs.d.ts delete mode 100644 cjs/models/external-docs.js delete mode 100644 cjs/models/index.d.ts delete mode 100644 cjs/models/index.js delete mode 100644 cjs/models/info.d.ts delete mode 100644 cjs/models/info.js delete mode 100644 cjs/models/license.d.ts delete mode 100644 cjs/models/license.js delete mode 100644 cjs/models/message-example.d.ts delete mode 100644 cjs/models/message-example.js delete mode 100644 cjs/models/message-examples.d.ts delete mode 100644 cjs/models/message-examples.js delete mode 100644 cjs/models/message-trait.d.ts delete mode 100644 cjs/models/message-trait.js delete mode 100644 cjs/models/message-traits.d.ts delete mode 100644 cjs/models/message-traits.js delete mode 100644 cjs/models/message.d.ts delete mode 100644 cjs/models/message.js delete mode 100644 cjs/models/messages.d.ts delete mode 100644 cjs/models/messages.js delete mode 100644 cjs/models/mixins.d.ts delete mode 100644 cjs/models/mixins.js delete mode 100644 cjs/models/oauth-flow.d.ts delete mode 100644 cjs/models/oauth-flow.js delete mode 100644 cjs/models/oauth-flows.d.ts delete mode 100644 cjs/models/oauth-flows.js delete mode 100644 cjs/models/operation-trait.d.ts delete mode 100644 cjs/models/operation-trait.js delete mode 100644 cjs/models/operation-traits.d.ts delete mode 100644 cjs/models/operation-traits.js delete mode 100644 cjs/models/operation.d.ts delete mode 100644 cjs/models/operation.js delete mode 100644 cjs/models/operations.d.ts delete mode 100644 cjs/models/operations.js delete mode 100644 cjs/models/schema.d.ts delete mode 100644 cjs/models/schema.js delete mode 100644 cjs/models/schemas.d.ts delete mode 100644 cjs/models/schemas.js delete mode 100644 cjs/models/security-requirement.d.ts delete mode 100644 cjs/models/security-requirement.js delete mode 100644 cjs/models/security-requirements.d.ts delete mode 100644 cjs/models/security-requirements.js delete mode 100644 cjs/models/security-scheme.d.ts delete mode 100644 cjs/models/security-scheme.js delete mode 100644 cjs/models/security-schemes.d.ts delete mode 100644 cjs/models/security-schemes.js delete mode 100644 cjs/models/server-variable.d.ts delete mode 100644 cjs/models/server-variable.js delete mode 100644 cjs/models/server-variables.d.ts delete mode 100644 cjs/models/server-variables.js delete mode 100644 cjs/models/server.d.ts delete mode 100644 cjs/models/server.js delete mode 100644 cjs/models/servers.d.ts delete mode 100644 cjs/models/servers.js delete mode 100644 cjs/models/tag.d.ts delete mode 100644 cjs/models/tag.js delete mode 100644 cjs/models/tags.d.ts delete mode 100644 cjs/models/tags.js delete mode 100644 cjs/models/utils.d.ts delete mode 100644 cjs/models/utils.js delete mode 100644 cjs/models/v2/asyncapi.d.ts delete mode 100644 cjs/models/v2/asyncapi.js delete mode 100644 cjs/models/v2/binding.d.ts delete mode 100644 cjs/models/v2/binding.js delete mode 100644 cjs/models/v2/bindings.d.ts delete mode 100644 cjs/models/v2/bindings.js delete mode 100644 cjs/models/v2/channel-parameter.d.ts delete mode 100644 cjs/models/v2/channel-parameter.js delete mode 100644 cjs/models/v2/channel-parameters.d.ts delete mode 100644 cjs/models/v2/channel-parameters.js delete mode 100644 cjs/models/v2/channel.d.ts delete mode 100644 cjs/models/v2/channel.js delete mode 100644 cjs/models/v2/channels.d.ts delete mode 100644 cjs/models/v2/channels.js delete mode 100644 cjs/models/v2/components.d.ts delete mode 100644 cjs/models/v2/components.js delete mode 100644 cjs/models/v2/contact.d.ts delete mode 100644 cjs/models/v2/contact.js delete mode 100644 cjs/models/v2/correlation-id.d.ts delete mode 100644 cjs/models/v2/correlation-id.js delete mode 100644 cjs/models/v2/correlation-ids.d.ts delete mode 100644 cjs/models/v2/correlation-ids.js delete mode 100644 cjs/models/v2/extension.d.ts delete mode 100644 cjs/models/v2/extension.js delete mode 100644 cjs/models/v2/extensions.d.ts delete mode 100644 cjs/models/v2/extensions.js delete mode 100644 cjs/models/v2/external-docs.d.ts delete mode 100644 cjs/models/v2/external-docs.js delete mode 100644 cjs/models/v2/index.d.ts delete mode 100644 cjs/models/v2/index.js delete mode 100644 cjs/models/v2/info.d.ts delete mode 100644 cjs/models/v2/info.js delete mode 100644 cjs/models/v2/license.d.ts delete mode 100644 cjs/models/v2/license.js delete mode 100644 cjs/models/v2/message-example.d.ts delete mode 100644 cjs/models/v2/message-example.js delete mode 100644 cjs/models/v2/message-examples.d.ts delete mode 100644 cjs/models/v2/message-examples.js delete mode 100644 cjs/models/v2/message-trait.d.ts delete mode 100644 cjs/models/v2/message-trait.js delete mode 100644 cjs/models/v2/message-traits.d.ts delete mode 100644 cjs/models/v2/message-traits.js delete mode 100644 cjs/models/v2/message.d.ts delete mode 100644 cjs/models/v2/message.js delete mode 100644 cjs/models/v2/messages.d.ts delete mode 100644 cjs/models/v2/messages.js delete mode 100644 cjs/models/v2/mixins.d.ts delete mode 100644 cjs/models/v2/mixins.js delete mode 100644 cjs/models/v2/oauth-flow.d.ts delete mode 100644 cjs/models/v2/oauth-flow.js delete mode 100644 cjs/models/v2/oauth-flows.d.ts delete mode 100644 cjs/models/v2/oauth-flows.js delete mode 100644 cjs/models/v2/operation-trait.d.ts delete mode 100644 cjs/models/v2/operation-trait.js delete mode 100644 cjs/models/v2/operation-traits.d.ts delete mode 100644 cjs/models/v2/operation-traits.js delete mode 100644 cjs/models/v2/operation.d.ts delete mode 100644 cjs/models/v2/operation.js delete mode 100644 cjs/models/v2/operations.d.ts delete mode 100644 cjs/models/v2/operations.js delete mode 100644 cjs/models/v2/schema.d.ts delete mode 100644 cjs/models/v2/schema.js delete mode 100644 cjs/models/v2/schemas.d.ts delete mode 100644 cjs/models/v2/schemas.js delete mode 100644 cjs/models/v2/security-requirement.d.ts delete mode 100644 cjs/models/v2/security-requirement.js delete mode 100644 cjs/models/v2/security-requirements.d.ts delete mode 100644 cjs/models/v2/security-requirements.js delete mode 100644 cjs/models/v2/security-scheme.d.ts delete mode 100644 cjs/models/v2/security-scheme.js delete mode 100644 cjs/models/v2/security-schemes.d.ts delete mode 100644 cjs/models/v2/security-schemes.js delete mode 100644 cjs/models/v2/server-variable.d.ts delete mode 100644 cjs/models/v2/server-variable.js delete mode 100644 cjs/models/v2/server-variables.d.ts delete mode 100644 cjs/models/v2/server-variables.js delete mode 100644 cjs/models/v2/server.d.ts delete mode 100644 cjs/models/v2/server.js delete mode 100644 cjs/models/v2/servers.d.ts delete mode 100644 cjs/models/v2/servers.js delete mode 100644 cjs/models/v2/tag.d.ts delete mode 100644 cjs/models/v2/tag.js delete mode 100644 cjs/models/v2/tags.d.ts delete mode 100644 cjs/models/v2/tags.js delete mode 100644 cjs/models/v3/asyncapi.d.ts delete mode 100644 cjs/models/v3/asyncapi.js delete mode 100644 cjs/models/v3/index.d.ts delete mode 100644 cjs/models/v3/index.js delete mode 100644 cjs/old-api/asyncapi.d.ts delete mode 100644 cjs/old-api/asyncapi.js delete mode 100644 cjs/old-api/base.d.ts delete mode 100644 cjs/old-api/base.js delete mode 100644 cjs/old-api/channel-parameter.d.ts delete mode 100644 cjs/old-api/channel-parameter.js delete mode 100644 cjs/old-api/channel.d.ts delete mode 100644 cjs/old-api/channel.js delete mode 100644 cjs/old-api/components.d.ts delete mode 100644 cjs/old-api/components.js delete mode 100644 cjs/old-api/contact.d.ts delete mode 100644 cjs/old-api/contact.js delete mode 100644 cjs/old-api/converter.d.ts delete mode 100644 cjs/old-api/converter.js delete mode 100644 cjs/old-api/correlation-id.d.ts delete mode 100644 cjs/old-api/correlation-id.js delete mode 100644 cjs/old-api/external-docs.d.ts delete mode 100644 cjs/old-api/external-docs.js delete mode 100644 cjs/old-api/info.d.ts delete mode 100644 cjs/old-api/info.js delete mode 100644 cjs/old-api/iterator.d.ts delete mode 100644 cjs/old-api/iterator.js delete mode 100644 cjs/old-api/license.d.ts delete mode 100644 cjs/old-api/license.js delete mode 100644 cjs/old-api/message-trait.d.ts delete mode 100644 cjs/old-api/message-trait.js delete mode 100644 cjs/old-api/message.d.ts delete mode 100644 cjs/old-api/message.js delete mode 100644 cjs/old-api/mixins.d.ts delete mode 100644 cjs/old-api/mixins.js delete mode 100644 cjs/old-api/oauth-flow.d.ts delete mode 100644 cjs/old-api/oauth-flow.js delete mode 100644 cjs/old-api/operation-trait.d.ts delete mode 100644 cjs/old-api/operation-trait.js delete mode 100644 cjs/old-api/operation.d.ts delete mode 100644 cjs/old-api/operation.js delete mode 100644 cjs/old-api/schema.d.ts delete mode 100644 cjs/old-api/schema.js delete mode 100644 cjs/old-api/security-requirement.d.ts delete mode 100644 cjs/old-api/security-requirement.js delete mode 100644 cjs/old-api/security-scheme.d.ts delete mode 100644 cjs/old-api/security-scheme.js delete mode 100644 cjs/old-api/server-variable.d.ts delete mode 100644 cjs/old-api/server-variable.js delete mode 100644 cjs/old-api/server.d.ts delete mode 100644 cjs/old-api/server.js delete mode 100644 cjs/old-api/tag.d.ts delete mode 100644 cjs/old-api/tag.js delete mode 100644 cjs/parse.d.ts delete mode 100644 cjs/parse.js delete mode 100644 cjs/parser.d.ts delete mode 100644 cjs/parser.js delete mode 100644 cjs/resolver.d.ts delete mode 100644 cjs/resolver.js delete mode 100644 cjs/schema-parser/asyncapi-schema-parser.d.ts delete mode 100644 cjs/schema-parser/asyncapi-schema-parser.js delete mode 100644 cjs/schema-parser/avro-schema-parser.d.ts delete mode 100644 cjs/schema-parser/avro-schema-parser.js delete mode 100644 cjs/schema-parser/index.d.ts delete mode 100644 cjs/schema-parser/index.js delete mode 100644 cjs/schema-parser/openapi-schema-parser.d.ts delete mode 100644 cjs/schema-parser/openapi-schema-parser.js delete mode 100644 cjs/schema-parser/openapi/schema_v3.d.ts delete mode 100644 cjs/schema-parser/openapi/schema_v3.js delete mode 100644 cjs/schema-parser/raml-schema-parser.d.ts delete mode 100644 cjs/schema-parser/raml-schema-parser.js delete mode 100644 cjs/schema-parser/spectral-rule-v2.d.ts delete mode 100644 cjs/schema-parser/spectral-rule-v2.js delete mode 100644 cjs/spec-types/index.d.ts delete mode 100644 cjs/spec-types/index.js delete mode 100644 cjs/spec-types/v2.d.ts delete mode 100644 cjs/spec-types/v2.js delete mode 100644 cjs/spectral.d.ts delete mode 100644 cjs/spectral.js delete mode 100644 cjs/stringify.d.ts delete mode 100644 cjs/stringify.js delete mode 100644 cjs/types.d.ts delete mode 100644 cjs/types.js delete mode 100644 cjs/utils.d.ts delete mode 100644 cjs/utils.js delete mode 100644 cjs/validate.d.ts delete mode 100644 cjs/validate.js delete mode 100644 esm/constants.d.ts delete mode 100644 esm/constants.js delete mode 100644 esm/custom-operations/anonymous-naming.d.ts delete mode 100644 esm/custom-operations/anonymous-naming.js delete mode 100644 esm/custom-operations/apply-traits.d.ts delete mode 100644 esm/custom-operations/apply-traits.js delete mode 100644 esm/custom-operations/check-circular-refs.d.ts delete mode 100644 esm/custom-operations/check-circular-refs.js delete mode 100644 esm/custom-operations/index.d.ts delete mode 100644 esm/custom-operations/index.js delete mode 100644 esm/custom-operations/parse-schema.d.ts delete mode 100644 esm/custom-operations/parse-schema.js delete mode 100644 esm/document.d.ts delete mode 100644 esm/document.js delete mode 100644 esm/from.d.ts delete mode 100644 esm/from.js delete mode 100644 esm/index.d.ts delete mode 100644 esm/index.js delete mode 100644 esm/iterator.d.ts delete mode 100644 esm/iterator.js delete mode 100644 esm/models/asyncapi.d.ts delete mode 100644 esm/models/asyncapi.js delete mode 100644 esm/models/base.d.ts delete mode 100644 esm/models/base.js delete mode 100644 esm/models/binding.d.ts delete mode 100644 esm/models/binding.js delete mode 100644 esm/models/bindings.d.ts delete mode 100644 esm/models/bindings.js delete mode 100644 esm/models/channel-parameter.d.ts delete mode 100644 esm/models/channel-parameter.js delete mode 100644 esm/models/channel-parameters.d.ts delete mode 100644 esm/models/channel-parameters.js delete mode 100644 esm/models/channel.d.ts delete mode 100644 esm/models/channel.js delete mode 100644 esm/models/channels.d.ts delete mode 100644 esm/models/channels.js delete mode 100644 esm/models/collection.d.ts delete mode 100644 esm/models/collection.js delete mode 100644 esm/models/components.d.ts delete mode 100644 esm/models/components.js delete mode 100644 esm/models/contact.d.ts delete mode 100644 esm/models/contact.js delete mode 100644 esm/models/correlation-id.d.ts delete mode 100644 esm/models/correlation-id.js delete mode 100644 esm/models/correlation-ids.d.ts delete mode 100644 esm/models/correlation-ids.js delete mode 100644 esm/models/extension.d.ts delete mode 100644 esm/models/extension.js delete mode 100644 esm/models/extensions.d.ts delete mode 100644 esm/models/extensions.js delete mode 100644 esm/models/external-docs.d.ts delete mode 100644 esm/models/external-docs.js delete mode 100644 esm/models/index.d.ts delete mode 100644 esm/models/index.js delete mode 100644 esm/models/info.d.ts delete mode 100644 esm/models/info.js delete mode 100644 esm/models/license.d.ts delete mode 100644 esm/models/license.js delete mode 100644 esm/models/message-example.d.ts delete mode 100644 esm/models/message-example.js delete mode 100644 esm/models/message-examples.d.ts delete mode 100644 esm/models/message-examples.js delete mode 100644 esm/models/message-trait.d.ts delete mode 100644 esm/models/message-trait.js delete mode 100644 esm/models/message-traits.d.ts delete mode 100644 esm/models/message-traits.js delete mode 100644 esm/models/message.d.ts delete mode 100644 esm/models/message.js delete mode 100644 esm/models/messages.d.ts delete mode 100644 esm/models/messages.js delete mode 100644 esm/models/mixins.d.ts delete mode 100644 esm/models/mixins.js delete mode 100644 esm/models/oauth-flow.d.ts delete mode 100644 esm/models/oauth-flow.js delete mode 100644 esm/models/oauth-flows.d.ts delete mode 100644 esm/models/oauth-flows.js delete mode 100644 esm/models/operation-trait.d.ts delete mode 100644 esm/models/operation-trait.js delete mode 100644 esm/models/operation-traits.d.ts delete mode 100644 esm/models/operation-traits.js delete mode 100644 esm/models/operation.d.ts delete mode 100644 esm/models/operation.js delete mode 100644 esm/models/operations.d.ts delete mode 100644 esm/models/operations.js delete mode 100644 esm/models/schema.d.ts delete mode 100644 esm/models/schema.js delete mode 100644 esm/models/schemas.d.ts delete mode 100644 esm/models/schemas.js delete mode 100644 esm/models/security-requirement.d.ts delete mode 100644 esm/models/security-requirement.js delete mode 100644 esm/models/security-requirements.d.ts delete mode 100644 esm/models/security-requirements.js delete mode 100644 esm/models/security-scheme.d.ts delete mode 100644 esm/models/security-scheme.js delete mode 100644 esm/models/security-schemes.d.ts delete mode 100644 esm/models/security-schemes.js delete mode 100644 esm/models/server-variable.d.ts delete mode 100644 esm/models/server-variable.js delete mode 100644 esm/models/server-variables.d.ts delete mode 100644 esm/models/server-variables.js delete mode 100644 esm/models/server.d.ts delete mode 100644 esm/models/server.js delete mode 100644 esm/models/servers.d.ts delete mode 100644 esm/models/servers.js delete mode 100644 esm/models/tag.d.ts delete mode 100644 esm/models/tag.js delete mode 100644 esm/models/tags.d.ts delete mode 100644 esm/models/tags.js delete mode 100644 esm/models/utils.d.ts delete mode 100644 esm/models/utils.js delete mode 100644 esm/models/v2/asyncapi.d.ts delete mode 100644 esm/models/v2/asyncapi.js delete mode 100644 esm/models/v2/binding.d.ts delete mode 100644 esm/models/v2/binding.js delete mode 100644 esm/models/v2/bindings.d.ts delete mode 100644 esm/models/v2/bindings.js delete mode 100644 esm/models/v2/channel-parameter.d.ts delete mode 100644 esm/models/v2/channel-parameter.js delete mode 100644 esm/models/v2/channel-parameters.d.ts delete mode 100644 esm/models/v2/channel-parameters.js delete mode 100644 esm/models/v2/channel.d.ts delete mode 100644 esm/models/v2/channel.js delete mode 100644 esm/models/v2/channels.d.ts delete mode 100644 esm/models/v2/channels.js delete mode 100644 esm/models/v2/components.d.ts delete mode 100644 esm/models/v2/components.js delete mode 100644 esm/models/v2/contact.d.ts delete mode 100644 esm/models/v2/contact.js delete mode 100644 esm/models/v2/correlation-id.d.ts delete mode 100644 esm/models/v2/correlation-id.js delete mode 100644 esm/models/v2/correlation-ids.d.ts delete mode 100644 esm/models/v2/correlation-ids.js delete mode 100644 esm/models/v2/extension.d.ts delete mode 100644 esm/models/v2/extension.js delete mode 100644 esm/models/v2/extensions.d.ts delete mode 100644 esm/models/v2/extensions.js delete mode 100644 esm/models/v2/external-docs.d.ts delete mode 100644 esm/models/v2/external-docs.js delete mode 100644 esm/models/v2/index.d.ts delete mode 100644 esm/models/v2/index.js delete mode 100644 esm/models/v2/info.d.ts delete mode 100644 esm/models/v2/info.js delete mode 100644 esm/models/v2/license.d.ts delete mode 100644 esm/models/v2/license.js delete mode 100644 esm/models/v2/message-example.d.ts delete mode 100644 esm/models/v2/message-example.js delete mode 100644 esm/models/v2/message-examples.d.ts delete mode 100644 esm/models/v2/message-examples.js delete mode 100644 esm/models/v2/message-trait.d.ts delete mode 100644 esm/models/v2/message-trait.js delete mode 100644 esm/models/v2/message-traits.d.ts delete mode 100644 esm/models/v2/message-traits.js delete mode 100644 esm/models/v2/message.d.ts delete mode 100644 esm/models/v2/message.js delete mode 100644 esm/models/v2/messages.d.ts delete mode 100644 esm/models/v2/messages.js delete mode 100644 esm/models/v2/mixins.d.ts delete mode 100644 esm/models/v2/mixins.js delete mode 100644 esm/models/v2/oauth-flow.d.ts delete mode 100644 esm/models/v2/oauth-flow.js delete mode 100644 esm/models/v2/oauth-flows.d.ts delete mode 100644 esm/models/v2/oauth-flows.js delete mode 100644 esm/models/v2/operation-trait.d.ts delete mode 100644 esm/models/v2/operation-trait.js delete mode 100644 esm/models/v2/operation-traits.d.ts delete mode 100644 esm/models/v2/operation-traits.js delete mode 100644 esm/models/v2/operation.d.ts delete mode 100644 esm/models/v2/operation.js delete mode 100644 esm/models/v2/operations.d.ts delete mode 100644 esm/models/v2/operations.js delete mode 100644 esm/models/v2/schema.d.ts delete mode 100644 esm/models/v2/schema.js delete mode 100644 esm/models/v2/schemas.d.ts delete mode 100644 esm/models/v2/schemas.js delete mode 100644 esm/models/v2/security-requirement.d.ts delete mode 100644 esm/models/v2/security-requirement.js delete mode 100644 esm/models/v2/security-requirements.d.ts delete mode 100644 esm/models/v2/security-requirements.js delete mode 100644 esm/models/v2/security-scheme.d.ts delete mode 100644 esm/models/v2/security-scheme.js delete mode 100644 esm/models/v2/security-schemes.d.ts delete mode 100644 esm/models/v2/security-schemes.js delete mode 100644 esm/models/v2/server-variable.d.ts delete mode 100644 esm/models/v2/server-variable.js delete mode 100644 esm/models/v2/server-variables.d.ts delete mode 100644 esm/models/v2/server-variables.js delete mode 100644 esm/models/v2/server.d.ts delete mode 100644 esm/models/v2/server.js delete mode 100644 esm/models/v2/servers.d.ts delete mode 100644 esm/models/v2/servers.js delete mode 100644 esm/models/v2/tag.d.ts delete mode 100644 esm/models/v2/tag.js delete mode 100644 esm/models/v2/tags.d.ts delete mode 100644 esm/models/v2/tags.js delete mode 100644 esm/models/v3/asyncapi.d.ts delete mode 100644 esm/models/v3/asyncapi.js delete mode 100644 esm/models/v3/index.d.ts delete mode 100644 esm/models/v3/index.js delete mode 100644 esm/old-api/asyncapi.d.ts delete mode 100644 esm/old-api/asyncapi.js delete mode 100644 esm/old-api/base.d.ts delete mode 100644 esm/old-api/base.js delete mode 100644 esm/old-api/channel-parameter.d.ts delete mode 100644 esm/old-api/channel-parameter.js delete mode 100644 esm/old-api/channel.d.ts delete mode 100644 esm/old-api/channel.js delete mode 100644 esm/old-api/components.d.ts delete mode 100644 esm/old-api/components.js delete mode 100644 esm/old-api/contact.d.ts delete mode 100644 esm/old-api/contact.js delete mode 100644 esm/old-api/converter.d.ts delete mode 100644 esm/old-api/converter.js delete mode 100644 esm/old-api/correlation-id.d.ts delete mode 100644 esm/old-api/correlation-id.js delete mode 100644 esm/old-api/external-docs.d.ts delete mode 100644 esm/old-api/external-docs.js delete mode 100644 esm/old-api/info.d.ts delete mode 100644 esm/old-api/info.js delete mode 100644 esm/old-api/iterator.d.ts delete mode 100644 esm/old-api/iterator.js delete mode 100644 esm/old-api/license.d.ts delete mode 100644 esm/old-api/license.js delete mode 100644 esm/old-api/message-trait.d.ts delete mode 100644 esm/old-api/message-trait.js delete mode 100644 esm/old-api/message.d.ts delete mode 100644 esm/old-api/message.js delete mode 100644 esm/old-api/mixins.d.ts delete mode 100644 esm/old-api/mixins.js delete mode 100644 esm/old-api/oauth-flow.d.ts delete mode 100644 esm/old-api/oauth-flow.js delete mode 100644 esm/old-api/operation-trait.d.ts delete mode 100644 esm/old-api/operation-trait.js delete mode 100644 esm/old-api/operation.d.ts delete mode 100644 esm/old-api/operation.js delete mode 100644 esm/old-api/schema.d.ts delete mode 100644 esm/old-api/schema.js delete mode 100644 esm/old-api/security-requirement.d.ts delete mode 100644 esm/old-api/security-requirement.js delete mode 100644 esm/old-api/security-scheme.d.ts delete mode 100644 esm/old-api/security-scheme.js delete mode 100644 esm/old-api/server-variable.d.ts delete mode 100644 esm/old-api/server-variable.js delete mode 100644 esm/old-api/server.d.ts delete mode 100644 esm/old-api/server.js delete mode 100644 esm/old-api/tag.d.ts delete mode 100644 esm/old-api/tag.js delete mode 100644 esm/parse.d.ts delete mode 100644 esm/parse.js delete mode 100644 esm/parser.d.ts delete mode 100644 esm/parser.js delete mode 100644 esm/resolver.d.ts delete mode 100644 esm/resolver.js delete mode 100644 esm/schema-parser/asyncapi-schema-parser.d.ts delete mode 100644 esm/schema-parser/asyncapi-schema-parser.js delete mode 100644 esm/schema-parser/avro-schema-parser.d.ts delete mode 100644 esm/schema-parser/avro-schema-parser.js delete mode 100644 esm/schema-parser/index.d.ts delete mode 100644 esm/schema-parser/index.js delete mode 100644 esm/schema-parser/openapi-schema-parser.d.ts delete mode 100644 esm/schema-parser/openapi-schema-parser.js delete mode 100644 esm/schema-parser/openapi/schema_v3.d.ts delete mode 100644 esm/schema-parser/openapi/schema_v3.js delete mode 100644 esm/schema-parser/raml-schema-parser.d.ts delete mode 100644 esm/schema-parser/raml-schema-parser.js delete mode 100644 esm/schema-parser/spectral-rule-v2.d.ts delete mode 100644 esm/schema-parser/spectral-rule-v2.js delete mode 100644 esm/spec-types/index.d.ts delete mode 100644 esm/spec-types/index.js delete mode 100644 esm/spec-types/v2.d.ts delete mode 100644 esm/spec-types/v2.js delete mode 100644 esm/spectral.d.ts delete mode 100644 esm/spectral.js delete mode 100644 esm/stringify.d.ts delete mode 100644 esm/stringify.js delete mode 100644 esm/types.d.ts delete mode 100644 esm/types.js delete mode 100644 esm/utils.d.ts delete mode 100644 esm/utils.js delete mode 100644 esm/validate.d.ts delete mode 100644 esm/validate.js diff --git a/browser/index.js b/browser/index.js deleted file mode 100644 index 9fca377ae..000000000 --- a/browser/index.js +++ /dev/null @@ -1,8 +0,0 @@ -/*! For license information please see index.js.LICENSE.txt */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AsyncAPIParser=t():e.AsyncAPIParser=t()}("undefined"!=typeof self?self:this,(()=>(()=>{var e={1005:(e,t,r)=>{e.exports={"1.0.0":r(6767),"1.1.0":r(8732),"1.2.0":r(5655),"2.0.0-rc1":r(3561),"2.0.0-rc2":r(8319),"2.0.0":r(9284),"2.1.0":r(8369),"2.2.0":r(9320),"2.3.0":r(8722),"2.4.0":r(5771)}},6064:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(7464);t.resolveFile=function(e){return new Promise(((t,r)=>{const i=e.href();n.readFile(i,"utf8",((e,n)=>{e?r(e):t(n)}))}))}},2462:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8605),i=r(3300);class o extends Error{constructor(){super(...arguments),this.name="OpenError"}}t.OpenError=o;class s extends Error{constructor(){super(...arguments),this.name="ReadError"}}function a(e,t={}){return n.__awaiter(this,void 0,void 0,(function*(){const r=e.href(),n=yield i.default(r,t);if(n.ok)return n.text();if(404===n.status)throw new o(`Page not found: ${r}`);throw new s(`${n.status} ${n.statusText}`)}))}t.NetworkError=s,t.resolveHttp=a,t.createResolveHttp=function(e={}){return t=>a(t,e)}},5738:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2462);t.createResolveHttp=n.createResolveHttp,t.resolveHttp=n.resolveHttp,t.NetworkError=n.NetworkError,t.OpenError=n.OpenError;var i=r(6064);t.resolveFile=i.resolveFile},8605:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>o,__asyncDelegator:()=>j,__asyncGenerator:()=>b,__asyncValues:()=>$,__await:()=>v,__awaiter:()=>u,__classPrivateFieldGet:()=>w,__classPrivateFieldSet:()=>S,__createBinding:()=>l,__decorate:()=>a,__exportStar:()=>d,__extends:()=>i,__generator:()=>f,__importDefault:()=>P,__importStar:()=>x,__makeTemplateObject:()=>_,__metadata:()=>p,__param:()=>c,__read:()=>m,__rest:()=>s,__spread:()=>y,__spreadArrays:()=>g,__values:()=>h});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}function c(e,t){return function(r,n){t(r,n,e)}}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function f(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function y(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{(r=i[e](t)).value instanceof v?Promise.resolve(r.value.v).then(c,p):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function c(e){a("next",e)}function p(e){a("throw",e)}function u(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function j(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:v(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function $(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function P(e){return e&&e.__esModule?e:{default:e}}function w(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},9655:(e,t)=>{"use strict";t.C=class{constructor(e={}){this._stats={hits:0,misses:0},this._data={},this._stdTTL=e.stdTTL}get stats(){return this._stats}get(e){const t=this._data[e];if(t&&(!this._stdTTL||(new Date).getTime()-t.ts{"use strict";r.r(t),r.d(t,{BUNDLE_ROOT:()=>J,ERRORS_ROOT:()=>W,KEYS:()=>Pe,bundleTarget:()=>Q,decodePointer:()=>M,decodePointerFragment:()=>X,decycle:()=>Z,encodePointer:()=>ee,encodePointerFragment:()=>R,extractPointerFromRef:()=>te,extractSourceFromRef:()=>L,getFirstPrimitiveProperty:()=>re,getJsonPathForPosition:()=>ne,getLastPathSegment:()=>ie,getLocationForJsonPath:()=>oe,hasRef:()=>I,isLocalRef:()=>T,isPlainObject:()=>S,parseTree:()=>ae,parseWithPointers:()=>se,pathToPointer:()=>D,pointerToPath:()=>q,renameObjectKey:()=>fe,reparentBundleTarget:()=>de,resolveExternalRef:()=>me,resolveExternalRefWithLocation:()=>ye,resolveInlineRef:()=>V,resolveInlineRefWithLocation:()=>H,safeParse:()=>ge,safeStringify:()=>be,startsWith:()=>je,stringify:()=>$e,toPropertyPath:()=>_e,trapAccess:()=>Se,traverse:()=>G,trimStart:()=>Oe});var n,i=r(6486),o=r(5966);function s(e,t){void 0===t&&(t=!1);var r=e.length,n=0,i="",o=0,s=16,u=0,f=0,l=0,d=0,h=0;function m(t,r){for(var i=0,o=0;i=48&&s<=57)o=16*o+s-48;else if(s>=65&&s<=70)o=16*o+s-65+10;else{if(!(s>=97&&s<=102))break;o=16*o+s-97+10}n++,i++}return i=r)return o=r,s=17;var t=e.charCodeAt(n);if(a(t)){do{n++,i+=String.fromCharCode(t),t=e.charCodeAt(n)}while(a(t));return s=15}if(c(t))return n++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(n)&&(n++,i+="\n"),u++,l=n,s=14;switch(t){case 123:return n++,s=1;case 125:return n++,s=2;case 91:return n++,s=3;case 93:return n++,s=4;case 58:return n++,s=6;case 44:return n++,s=5;case 34:return n++,i=function(){for(var t="",i=n;;){if(n>=r){t+=e.substring(i,n),h=2;break}var o=e.charCodeAt(n);if(34===o){t+=e.substring(i,n),n++;break}if(92!==o){if(o>=0&&o<=31){if(c(o)){t+=e.substring(i,n),h=2;break}h=6}n++}else{if(t+=e.substring(i,n),++n>=r){h=2;break}switch(e.charCodeAt(n++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var s=m(4,!0);s>=0?t+=String.fromCharCode(s):h=4;break;default:h=5}i=n}}return t}(),s=10;case 47:var y=n-1;if(47===e.charCodeAt(n+1)){for(n+=2;n=12&&e<=15);return e}:y,getToken:function(){return s},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return n-o},getTokenStartLine:function(){return f},getTokenStartCharacter:function(){return o-d},getTokenError:function(){return h}}}function a(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function c(e){return 10===e||13===e||8232===e||8233===e}function p(e){return e>=48&&e<=57}!function(e){e.DEFAULT={allowTrailingComma:!1}}(n||(n={}));var u=s,f=function e(t,r,n){if(void 0===n&&(n=!1),function(e,t,r){return void 0===r&&(r=!1),t>=e.offset&&t0)for(var n=i.getToken();17!==n;){if(-1!==t.indexOf(n)){b();break}if(-1!==r.indexOf(n))break;n=b()}}function $(e){var t=i.getTokenValue();return e?d(t):p(t),b(),!0}return b(),17===i.getToken()?!!r.allowEmptyContent||(j(4,[],[]),!1):function e(){switch(i.getToken()){case 3:return function(){f(),b();for(var t=!1;4!==i.getToken()&&17!==i.getToken();){if(5===i.getToken()){if(t||j(4,[],[]),h(","),b(),4===i.getToken()&&v)break}else t&&j(6,[],[]);e()||j(4,[],[4,5]),t=!0}return l(),4!==i.getToken()?j(8,[4],[]):b(),!0}();case 1:return function(){c(),b();for(var t=!1;2!==i.getToken()&&17!==i.getToken();){if(5===i.getToken()){if(t||j(4,[],[]),h(","),b(),2===i.getToken()&&v)break}else t&&j(6,[],[]);(10!==i.getToken()?(j(3,[],[2,5]),0):($(!1),6===i.getToken()?(h(":"),b(),e()||j(4,[],[2,5])):j(5,[],[2,5]),1))||j(4,[],[2,5]),t=!0}return u(),2!==i.getToken()?j(7,[2],[]):b(),!0}();case 10:return $(!0);default:return function(){switch(i.getToken()){case 11:var e=0;try{"number"!=typeof(e=JSON.parse(i.getTokenValue()))&&(j(2),e=0)}catch(e){j(2)}d(e);break;case 7:d(null);break;case 8:d(!0);break;case 9:d(!1);break;default:return!1}return b(),!0}()}}()?(17!==i.getToken()&&j(9,[],[]),!0):(j(4,[],[]),!1)};function h(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return""}const m=`__object_order_${Math.floor(Date.now()/36e5)}__`,y=Symbol.for(m),g=(String(y),{defineProperty:(e,t,r)=>(!(t in e)&&y in e?e[y].push(t):"value"in r&&t===y&&-1===r.value.lastIndexOf(y)&&r.value.push(y),Reflect.defineProperty(e,t,r)),deleteProperty(e,t){const r=t in e,n=Reflect.deleteProperty(e,t);if(n&&r&&y in e){const r=e[y].indexOf(t);-1!==r&&e[y].splice(r,1)}return n},ownKeys:e=>y in e?e[y]:Reflect.ownKeys(e),set(e,t,r){const n=t in e,i=Reflect.set(e,t,r);return i&&!n&&y in e&&e[y].push(t),i}});function v(e,t=Reflect.ownKeys(e)){"undefined"!=typeof process&&b(process)&&b(process.env);const r=new Proxy(e,g);return function(e,t){y in e?(e[y].length=0,e[y].push(...t)):Reflect.defineProperty(e,y,{configurable:!0,value:t})}(r,t),r}function b(e){return null!==e&&"object"==typeof e}var j,$,_,x;!function(e){e.Simple="simple",e.Matrix="matrix",e.Label="label",e.Form="form",e.CommaDelimited="commaDelimited",e.SpaceDelimited="spaceDelimited",e.PipeDelimited="pipeDelimited",e.DeepObject="deepObject"}(j||(j={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Information=2]="Information",e[e.Hint=3]="Hint"}($||($={})),function(e){e.Article="article",e.HttpService="http_service",e.HttpServer="http_server",e.HttpOperation="http_operation",e.Model="model",e.Generic="generic",e.Unknown="unknown",e.TableOfContents="table_of_contents",e.SpectralRuleset="spectral_ruleset",e.Styleguide="styleguide",e.Image="image"}(_||(_={})),function(e){e.Json="json",e.Markdown="markdown",e.Yaml="yaml",e.Apng="apng",e.Avif="avif",e.Bmp="bmp",e.Gif="gif",e.Jpeg="jpeg",e.Png="png",e.Svg="svg",e.Webp="webp"}(x||(x={}));var P=r(7668),w=r.n(P);function S(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype||"function"==typeof e.constructor&&Function.toString.call(Object)===Function.toString.call(e.constructor)}function O(e,t,r){if(!S(e)&&!Array.isArray(e)||!(t in e))throw new ReferenceError(`Could not resolve '${r}'`)}function E(e){if("string"!=typeof e.$ref)throw new TypeError("$ref should be a string")}const A=e=>S(e)&&"$ref"in e,I=e=>A(e)&&"string"==typeof e.$ref,T=e=>e.length>0&&("#"===e||/^#\S*$/.test(e)),k=(e,t,r)=>{const n=e.toString();let i="",o=n,s=0,a=o.indexOf(t);for(;a>-1;)i+=n.substring(s,s+a)+r,o=o.substring(a+t.length,o.length),s+=a+t.length,a=o.indexOf(t);return o.length>0&&(i+=n.substring(n.length-o.length,n.length)),i},R=e=>"number"==typeof e?e:k(k(e,"~","~0"),"/","~1"),D=e=>C(e),C=e=>{if(e&&"object"!=typeof e)throw new TypeError("Invalid type: path must be an array of segments.");return 0===e.length?"#":`#/${e.map(R).join("/")}`};function F(e){try{return decodeURIComponent(e)}catch(t){return e}}const N=/%[0-9a-f]+/gi,M=e=>{let t;try{t=decodeURIComponent(e)}catch(r){t=e.replace(N,F)}return k(k(t,"~1","/"),"~0","~")},q=e=>U(e),U=e=>{if("string"!=typeof e)throw new TypeError("Invalid type: JSON Pointers are represented as strings.");if(0===e.length||"#"!==e[0])throw new URIError("Invalid JSON Pointer syntax; URI fragment identifiers must begin with a hash.");if(1===e.length)return[];if("/"!==e[1])throw new URIError("Invalid JSON Pointer syntax.");return(e=>{const t=e.length,r=[];let n=-1;for(;++n{if("string"!=typeof e||0===e.length||T(e))return null;const t=e.indexOf("#");return-1===t?e:e.slice(0,t)};function z(e,t){return S(t)&&S(e)&&("summary"in e||"description"in e)?Object.assign(Object.assign(Object.assign({},t),"description"in e?{description:e.description}:null),"summary"in e?{summary:e.summary}:null):t}function*B(e,t,r){A(e.value)&&(E(e.value),yield[-1,e.value]);for(const[n,i]of t.entries())O(e.value,i,r),e.value=e.value[i],A(e.value)&&(E(e.value),yield[n,e.value])}function V(e,t){return H(e,t).value}function H(e,t){return function e(t,r,n,i){if(null!==L(r))throw new ReferenceError("Cannot resolve external references");const o=q(r);let s=[...o];"#"===r&&A(t)&&(E(t),o.unshift(...q(t.$ref)));const a={value:t};for(const[c,p]of B(a,o,r)){if(n.includes(p))return{source:null,location:null!=i?i:s,value:n[n.length-1]};n.push(p);const r=e(t,p.$ref,n,s);a.value=r.value,(s=r.location).push(...o.slice(c+1))}return{source:null,location:s,value:n.length>0?z(n[n.length-1],a.value):a.value}}(e,t,[])}const K=(e,t,r)=>{const n={value:e,path:r};t.onEnter&&t.onEnter(n);for(const n of Object.keys(e)){const i=e[n];t.onProperty&&t.onProperty({parent:e,parentPath:r,property:n,propertyValue:i}),"object"==typeof i&&null!==i&&K(i,t,r.concat(n))}t.onLeave&&t.onLeave(n)},G=(e,t)=>{"object"==typeof e&&null!==e&&K(e,"function"==typeof t?{onProperty:t}:t,[])},J="#/__bundled__",W="#/__errors__",Q=({document:e,path:t,bundleRoot:r="#/__bundled__",errorsRoot:n="#/__errors__",cloneDocument:o=!0,keyProvider:s},a)=>{if(t===r||t===n)throw new Error("Roots do not make any sense");const c=o?(0,i.cloneDeep)(e):e;return Y(c,q(r),q(n),s)(t,{[t]:!0},a)},Y=(e,t,r,n)=>{const o=new Set,s=(a,c,p,u={},f={},l={})=>{const d=q(a),h=(0,i.get)(e,d);G(p||h,{onEnter:({value:r})=>{if(I(r)&&T(r.$ref)){const p=r.$ref;if(l[p])return;if(p===a&&(u[p]="#"),u[p])return void(r.$ref=u[p]);let d,h,m,y,g;try{let r;d=q(p),n&&(r=n({document:e,path:d})),r||(r=(({document:e,path:t})=>Array.isArray((0,i.get)(e,t.slice(0,-1)))?`${t[t.length-2]}_${t[t.length-1]}`:String(t[t.length-1]))({document:e,path:d})),m=r;let s=1;for(;o.has(m);)if(m=`${r}_${++s}`,s>20)throw new Error(`Keys ${r}_2 through ${r}_20 already taken.`);o.add(m),h=[...t,m],y=D(h)}catch(e){l[p]=e instanceof Error?e.message:String(e)}if(!d||!h||!y)return;if("object"==typeof e&&null!==e&&!(g=(0,i.get)(e,d)))try{g=V(Object(e),p)}catch(e){}void 0!==g&&(u[p]=y,r.$ref=y,(0,i.has)(f,h)||(Array.isArray(g)?(0,i.set)(f,h,new Array(g.length).fill(null)):"object"==typeof g&&(0,i.setWith)(f,h,{},Object),(0,i.set)(f,h,g),c[p]||(c[p]=!0,s(a,c,g,u,f,l),c[p]=!1)))}}});const m=(0,i.get)(f,t);return m&&Object.keys(m).length&&(0,i.set)(h,t,m),(Object.keys(l).length||(0,i.has)(e,r))&&(0,i.set)(h,r,(0,i.has)(e,r)?(0,i.get)(e,r):l),h};return s},X=e=>k(k(e,"~1","/"),"~0","~"),Z=(e,t)=>{const r=new WeakMap;return function e(n,i){let o;if(t&&(n=t(n)),S(n)||Array.isArray(n)){const t=r.get(n);return t?{$ref:t}:(r.set(n,D(i)),Array.isArray(n)?o=n.map(((t,r)=>e(t,[...i,String(r)]))):(o={},Object.keys(n).forEach((t=>{o[t]=e(n[t],[...i,t])}))),r.delete(n),o)}return n}(e,[])},ee=e=>k(k(e,"~","~0"),"//","/~1"),te=e=>{if("string"!=typeof e||0===e.length)return null;const t=e.indexOf("#");return-1===t?null:e.slice(t)},re=e=>{const t=u(e,!0);if(t.scan(),1!==t.getToken())return;if(t.scan(),2===t.getToken())return;if(10!==t.getToken())throw new SyntaxError("Unexpected character");const r=t.getTokenValue();if(t.scan(),6!==t.getToken())throw new SyntaxError("Colon expected");switch(t.scan(),t.getToken()){case 10:return[r,t.getTokenValue()];case 11:return[r,Number(t.getTokenValue())];case 8:return[r,!0];case 9:return[r,!1];case 7:return[r,null];case 16:throw new SyntaxError("Unexpected character");case 17:throw new SyntaxError("Unexpected end of file");default:return}},ne=({lineMap:e,ast:t},r)=>{const n=e[r.line],i=e[r.line+1];if(void 0===n)return;const o=f(t,void 0===i?n+r.character:Math.min(i,n+r.character),!0);if(void 0===o)return;const s=l(o);return 0!==s.length?s:void 0};function ie(e){return X(e.split("/").pop()||"")}const oe=({ast:e},t,r=!1)=>{const n=function(e,t,r){e:for(const n of t){const t=Number.isInteger(Number(n))?Number(n):n;if("string"==typeof t||"number"==typeof t&&"array"!==e.type){if("object"!==e.type||!Array.isArray(e.children))return r?e:void 0;for(const r of e.children)if(Array.isArray(r.children)&&r.children[0].value===String(t)&&2===r.children.length){e=r.children[1];continue e}return r?e:void 0}if("array"!==e.type||t<0||!Array.isArray(e.children)||t>=e.children.length)return r?e:void 0;e=e.children[t]}return e}(e,t,r);if(void 0!==n&&void 0!==n.range)return{range:n.range}},se=(e,t={disallowComments:!0})=>{const r=[],{ast:n,data:i,lineMap:o}=ae(e,r,t);return{data:i,diagnostics:r,ast:n,lineMap:o}};function ae(e,t=[],r){const n=pe(e);let i={type:"array",offset:-1,length:-1,children:[],parent:void 0},o=null,s=[];const a=new WeakMap,c=[];function p(e){"property"===i.type&&(i.length=e-i.offset,i=i.parent)}function u(e,t,r){return{start:{line:e,character:t},end:{line:e,character:t+r}}}function f(e){return i.children.push(e),e}function l(e){Array.isArray(s)?s.push(e):null!==o&&(s[o]=e)}function m(e){l(e),c.push(s),s=e,o=null}function g(){s=c.pop()}d(e,{onObjectBegin:(e,t,n,o)=>{i=f({type:"object",offset:e,length:-1,parent:i,children:[],range:u(n,o,t)}),!1===r.ignoreDuplicateKeys&&a.set(i,[]),m(function(e){return e?v({}):{}}(!0===r.preserveKeyOrder))},onObjectProperty:(e,n,c,p,l)=>{if((i=f({type:"property",offset:n,length:-1,parent:i,children:[]})).children.push({type:"string",value:e,offset:n,length:c,parent:i}),!1===r.ignoreDuplicateKeys){const r=a.get(i.parent);r&&(0!==r.length&&r.includes(e)?t.push({range:u(p,l,c),message:"DuplicateKey",severity:$.Error,path:ue(i),code:20}):r.push(e))}!0===r.preserveKeyOrder&&function(e,t){if(!(t in e))return;const r=e[y],n=r.indexOf(t);-1!==n&&(r.splice(n,1),r.push(t))}(s,e),o=e},onObjectEnd:(e,t,n,o)=>{!1===r.ignoreDuplicateKeys&&a.delete(i),i.length=e+t-i.offset,i.range&&(i.range.end.line=n,i.range.end.character=o+t),i=i.parent,p(e+t),g()},onArrayBegin:(e,t,r,n)=>{i=f({type:"array",offset:e,length:-1,parent:i,children:[],range:u(r,n,t)}),m([])},onArrayEnd:(e,t,r,n)=>{i.length=e+t-i.offset,i.range&&(i.range.end.line=r,i.range.end.character=n+t),i=i.parent,p(e+t),g()},onLiteralValue:(e,t,r,n,o)=>{f({type:ce(e),offset:t,length:r,parent:i,value:e,range:u(n,o,r)}),p(t+r),l(e)},onSeparator:(e,t)=>{"property"===i.type&&(":"===e?i.colonOffset=t:","===e&&p(t))},onError:(e,r,n,i,o)=>{t.push({range:u(i,o,n),message:h(e),severity:$.Error,code:e})}},r);const b=i.children[0];return b&&delete b.parent,{ast:b,data:s[0],lineMap:n}}function ce(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return"null"}}const pe=e=>{const t=[0];let r=0;for(;r{if(!e||!Object.hasOwnProperty.call(e,t)||t===r)return e;const n={};for(const[i,o]of Object.entries(e))i===t?n[r]=o:i in n||(n[i]=o);return n};function le(e){return S(e)||Array.isArray(e)}function de(e,t,r){if(r.length<=1||t.length<=1)throw Error("Source/target path must not be empty and point at root");if(0===t.indexOf(r))throw Error("Target path cannot be contained within source");const n=q(t);let i=e;for(const e of n){if(!le(i))return;i=i[e]}if(!le(i))return;const o=q(r);let s=e;for(const[e,t]of o.entries()){if(!le(s)||t in s)return;const r=e===o.length-1?i:{};s[t]=r,s=r}delete e[n[0]],function e(t,r,n){for(const i of Object.keys(t)){const o=t[i];if("$ref"!==i)le(o)&&e(o,r,n);else{if("string"!=typeof o||!T(o))continue;0===o.indexOf(r)&&(t[i]=o.replace(r,n))}}}(e,t,r)}async function he(e,t,r,n,i){let s=function(e,t){const r=L(t);return null===r?e:(0,o.isAbsolute)(r)?r:(0,o.join)((0,o.dirname)(e),r)}(t,r);const a=te(r)||"#",c=await e[s],p=q(a);let u=[...p];const f={value:c};for(const[r,o]of B(f,p,a)){if(n.includes(o))return{source:t,location:null!=i?i:u,value:n[n.length-1]};n.push(o);const a=await he(e,s,o.$ref,n,u);({source:s,location:u}=a),f.value=a.value,u.push(...p.slice(r+1))}return{source:s,location:u,value:n.length>0?z(n[n.length-1],f.value):f.value}}async function me(e,t,r){return(await ye(e,t,r)).value}function ye(e,t,r){return he(e,t,r,[])}const ge=(e,t)=>{if("string"!=typeof e)return e;try{const r=ve(e);return"string"==typeof r?r:JSON.parse(e,t)}catch(e){return}},ve=e=>{const t=Number(e);return Number.isFinite(t)?String(t)===e?t:e:NaN},be=(e,t,r)=>{if("string"==typeof e)return e;try{return JSON.stringify(e,t,r)}catch(n){return w()(e,t,r)}},je=(e,t)=>{if(e instanceof Array){if(t instanceof Array){if(t.length>e.length)return!1;for(const r in t){if(!t.hasOwnProperty(r))continue;const n=parseInt(e[r]),i=parseInt(t[r]);if(isNaN(n)&&isNaN(i)){if(e[r]!==t[r])return!1}else if(n!==i)return!1}}}else{if("string"!=typeof e)return!1;if("string"==typeof t)return e.startsWith(t)}return!0},$e=(e,t,r)=>{const n=be(e,t,r);if(void 0===n)throw new Error("The value could not be stringified");return n};function _e(e){return e.replace(/^(\/|#\/)/,"").split("/").map(X).map(xe).join(".")}function xe(e){return e.includes(".")?`["${e.replace(/"/g,'\\"')}"]`:e}const Pe=Symbol.for(m),we={ownKeys:e=>Pe in e?e[Pe]:Reflect.ownKeys(e)},Se=e=>new Proxy(e,we);function Oe(e,t){if("string"==typeof e&&"string"==typeof t)return(0,i.trimStart)(e,t);if(!(e&&Array.isArray(e)&&e.length&&t&&Array.isArray(t)&&t.length))return e;let r=0;for(const n in e)if(e.hasOwnProperty(n)){if(e[n]!==t[n])break;r++}return e.slice(r)}},6288:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);class i{constructor(){this._state="deactivated"}get state(){return this._state}activate(){return n.__awaiter(this,void 0,void 0,(function*(){switch(this._state){case"activated":return;case"deactivated":try{return this._state="isActivating",yield this.doActivate(),void(this._state="activated")}catch(e){throw this._state="deactivated",e}default:throw new Error(`Cannot call activate on an Activatable in state '${this._state}'`)}}))}deactivate(){return n.__awaiter(this,void 0,void 0,(function*(){switch(this._state){case"deactivated":return;case"activated":try{return this._state="isDeactivating",yield this.doDeactivate(),void(this._state="deactivated")}catch(e){throw this._state="activated",e}default:throw new Error(`Cannot call deactivate on an Activatable in state '${this._state}'`)}}))}}t.Activatable=i,t.ActivatableCollection=class extends i{constructor(){super(...arguments),this.activatables=[]}doActivate(){return n.__awaiter(this,void 0,void 0,(function*(){const e=[];try{for(const t of this.activatables)yield t.activate(),e.push(t)}catch(t){e.reverse();for(const t of e)try{yield t.deactivate()}catch(e){}throw t}}))}doDeactivate(){return n.__awaiter(this,void 0,void 0,(function*(){for(const e of[...this.activatables].reverse())yield e.deactivate()}))}push(e){this.activatables.push(e)}}},4213:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(655).__exportStar(r(6288),t)},9902:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);t.AsyncDisposableSet=class{constructor(){this.disposables=new Set}get disposed(){return 0===this.disposables.size}dispose(){return n.__awaiter(this,void 0,void 0,(function*(){for(;!this.disposed;)yield Promise.all([...this.disposables].map((e=>e.dispose())))}))}push(e){this.disposables.add(e);const t=e.dispose.bind(e);return e.dispose=()=>n.__awaiter(this,void 0,void 0,(function*(){yield t(),this.disposables.delete(e)})),e}pushAll(e){return e.map((e=>this.push(e)))}}},4889:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncDisposer=class{constructor(e){this.dispose=e}}},1861:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8767);t.DisposableCollection=class{constructor(){this.disposables=[]}get disposed(){return 0===this.disposables.length}dispose(){if(!this.disposed)for(;!this.disposed;)this.disposables.pop().dispose()}push(e){this.disposables.push(e);const t=e.dispose.bind(e),r=n.createDisposable((()=>{const t=this.disposables.indexOf(e);-1!==t&&this.disposables.splice(t,1)}));return e.dispose=()=>{r.dispose(),t()},r}pushAll(e){return e.map((e=>this.push(e)))}}},3994:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DisposableSet=class{constructor(){this.disposables=new Set}get disposed(){return 0===this.disposables.size}dispose(){for(const e of this.disposables)e.dispose()}push(e){this.disposables.add(e);const t=e.dispose.bind(e);return e.dispose=()=>{t(),this.disposables.delete(e)},e}pushAll(e){return e.map((e=>this.push(e)))}}},298:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Disposer=class{constructor(e){this.dispose=e}}},8767:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDisposable=function(e){return{dispose:e}}},1014:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);n.__exportStar(r(4889),t),n.__exportStar(r(9902),t),n.__exportStar(r(298),t),n.__exportStar(r(3994),t),n.__exportStar(r(8767),t),n.__exportStar(r(1861),t)},5e3:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4795),i=r(1014);t.EventEmitter=class{constructor(){this._emitter=new n,this._registeredListeners=new Map}on(e,t){let r=this._registeredListeners.get(e);if(void 0===r)r=new WeakSet,this._registeredListeners.set(e,r);else if(r.has(t))throw new Error(`Double-registered for '${e}' event.`);const n=(...e)=>{try{t(...e)}catch(e){console.error(e)}};return r.add(t),this._emitter.on(String(e),n),i.createDisposable((()=>{var i;null===(i=r)||void 0===i||i.delete(t),this._emitter.off(String(e),n)}))}emit(e,...t){this._emitter.trigger(String(e),t)}get hasListeners(){const e=this._emitter.getListeners(/.*/);for(const t in e){if(!{}.hasOwnProperty.call(e,t))continue;const r=e[t];if(void 0!==r&&r.length>0)return!0}return!1}dispose(){this._registeredListeners.clear(),this._emitter.removeAllListeners()}createEmitGroup(){const e=this,t=[];let r=!1;return{get queueCount(){return t.length},emit(n,...i){r?e.emit(n,...i):t.push([n,i])},flush(){for(const[r,n]of t)try{e.emit(r,...n)}catch(e){}this.reset(),r=!0},reset(){t.length=0,r=!1}}}}},8357:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(655).__exportStar(r(5e3),t)},7747:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);n.__exportStar(r(4213),t),n.__exportStar(r(1014),t),n.__exportStar(r(8357),t)},5966:(e,t,r)=>{"use strict";function n(e){let t="";return e.absolute&&("file"===e.protocol?(e.drive&&(t+=e.drive),t+="/"):(t+=e.protocol+"://",e.origin&&(t+=e.origin+"/"))),""===(t+=e.path.join("/"))&&(t="."),t}function i(e,t,r,n){this.message=e,this.expected=t,this.found=r,this.location=n,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,i)}function o(e){if("string"!=typeof e)throw new Error(`@stoplight/path: Cannot parse ${e} because it is not a string`);return function(e,t){t=void 0!==t?t:{};var r,n,o,s,a={},c={Path:T},p=T,u=S("http://",!0),f=S("https://",!0),l=S("file://",!0),d=S("file:",!0),h=/^[A-Za-z]/,m=O([["A","Z"],["a","z"]],!1,!1),y=S(":",!1),g=S(".",!1),v=S("/",!1),b=S("\\",!1),j=/^[^\/\\]/,$=O(["/","\\"],!0,!1),_=0,x=[{line:1,column:1}],P=0,w=[];if("startRule"in t){if(!(t.startRule in c))throw new Error("Can't start parsing from rule \""+t.startRule+'".');p=c[t.startRule]}function S(e,t){return{type:"literal",text:e,ignoreCase:t}}function O(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function E(t){var r,n=x[t];if(n)return n;for(r=t-1;!x[r];)r--;for(n={line:(n=x[r]).line,column:n.column};rP&&(P=_,w=[]),w.push(e))}function T(){var t;return(t=function(){var e,t,r,n,i;return e=_,(t=k())!==a&&(r=R())!==a&&(n=C())!==a&&(i=F())!==a?(t=function(e,t,r,n){return{protocol:e,origin:t,absolute:!0,...r,...n}}(t,r,n,i),e=t):(_=e,e=a),e===a&&(e=_,(t=k())!==a&&(r=R())!==a&&(n=function(){var e;return(e="")!==a&&(e={drive:null}),e}())!==a?(t=function(e,t,r){return{protocol:e,origin:t,absolute:!0,...r,path:[]}}(t,r,n),e=t):(_=e,e=a)),e}())===a&&(t=function(){var t,r,n,i;return t=_,(r=function(){var t;return"file://"===e.substr(_,7).toLowerCase()?(t=e.substr(_,7),_+=7):(t=a,I(l)),t===a&&("file:"===e.substr(_,5).toLowerCase()?(t=e.substr(_,5),_+=5):(t=a,I(d))),t!==a&&(t="file"),t}())!==a&&(n=D())!==a&&(i=F())!==a?(r=function(e,t,r){return{protocol:e,origin:null,absolute:!0,...t,...r}}(r,n,i),t=r):(_=t,t=a),t}())===a&&(t=function(){var e,t,r;return e=_,(t=D())!==a&&(r=F())!==a?(t=function(e,t){return{protocol:"file",origin:null,absolute:!0,...e,...t}}(t,r),e=t):(_=e,e=a),e}())===a&&(t=function(){var t,r,n;return t=_,(r=function(){var t;return(t=function(){var t,r,n;return t=_,46===e.charCodeAt(_)?(r=".",_++):(r=a,I(g)),r!==a&&(n=M())!==a?t=r=[r,n]:(_=t,t=a),t}())===a&&(t=""),t}())!==a&&(n=F())!==a?(r=function(e){return{protocol:null,origin:null,absolute:!1,drive:null,...e}}(n),t=r):(_=t,t=a),t}()),t}function k(){var t,r;return"http://"===e.substr(_,7).toLowerCase()?(r=e.substr(_,7),_+=7):(r=a,I(u)),r!==a&&(r="http"),(t=r)===a&&(t=function(){var t;return"https://"===e.substr(_,8).toLowerCase()?(t=e.substr(_,8),_+=8):(t=a,I(f)),t!==a&&(t="https"),t}()),t}function R(){var t,r,n;if(t=_,r=[],(n=q())!==a)for(;n!==a;)r.push(n),n=q();else r=a;return(t=r!==a?e.substring(t,_):r)===a&&(t=_,(r="")!==a&&(r=null),t=r),t}function D(){var t;return(t=function(){var t,r,n,i;return t=_,(r=M())===a&&(r=null),r!==a?(h.test(e.charAt(_))?(n=e.charAt(_),_++):(n=a,I(m)),n!==a?(58===e.charCodeAt(_)?(i=":",_++):(i=a,I(y)),i!==a&&M()!==a?(r=function(e){return{drive:e.toLowerCase()+":"}}(n),t=r):(_=t,t=a)):(_=t,t=a)):(_=t,t=a),t}())===a&&(t=C()),t}function C(){var e;return(e=M())!==a&&(e={drive:null}),e}function F(){var e;return(e=function e(){var t,r,n;return t=_,(r=N())!==a&&M()!==a&&(n=e())!==a?(r=function(e,t){return[e,...t]}(r,n),t=r):(_=t,t=a),t===a&&(t=_,(r=N())!==a&&(r=function(e){return[e]}(r)),t=r),t}())!==a&&(e=function(e){return{path:e}}(e)),e}function N(){var t,r,n;if(t=_,r=[],(n=q())!==a)for(;n!==a;)r.push(n),n=q();else r=a;return(t=r!==a?e.substring(t,_):r)===a&&(t=""),t}function M(){var t;return 47===e.charCodeAt(_)?(t="/",_++):(t=a,I(v)),t===a&&(92===e.charCodeAt(_)?(t="\\",_++):(t=a,I(b))),t}function q(){var t;return j.test(e.charAt(_))?(t=e.charAt(_),_++):(t=a,I($)),t}if((r=p())!==a&&_===e.length)return r;throw r!==a&&_""!==e&&"."!==e));const r=[];for(const n of t)".."===n&&r.length&&".."!==r[r.length-1]?r.pop():".."===n&&e.absolute||r.push(n);return e.path=r,e}function c(e){let t=e.lastIndexOf(".");".."===e&&(t=-1),"."===e&&(t=-1);let r=e,n="";return t>0&&(r=e.slice(0,t),n=e.slice(t)),{name:r,ext:n}}r.r(t),r.d(t,{basename:()=>p,deserializeSrn:()=>j,dirname:()=>u,extname:()=>f,format:()=>n,isAbsolute:()=>l,isURL:()=>d,join:()=>h,normalize:()=>s,parse:()=>o,relative:()=>m,resolve:()=>y,sep:()=>g,serializeSrn:()=>$,startsWithWindowsDrive:()=>v,stripRoot:()=>b,toFSPath:()=>s}),function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(i,Error),i.buildMessage=function(e,t){var r={literal:function(e){return'"'+i(e.text)+'"'},class:function(e){var t,r="";for(t=0;t0){for(t=1,n=1;t{const r=a(o(e)).path.pop();if(!r)return"";const{name:n,ext:i}=c(r);return!0===t||t===i?n:`${n}${i}`},u=e=>{const t=a(o(e));return t.path.pop(),n(a(t))},f=e=>{const t=a(o(e)).path.pop();if(!t)return"";const{ext:r}=c(t);return r};function l(e){return o(e).absolute}function d(e){const t=o(e);return"http"===t.protocol||"https"===t.protocol}const h=(...e)=>{if(0===e.length)return".";const t=e.map(o),r=Object.assign({},t[0]);for(let n=1;nnull!==o(e).drive,b=e=>o(e).path.filter(Boolean).join("/");function j(e){const[t,r,n,...i]=e.split("/"),o=i.length?`/${i.join("/")}`:void 0;let s,a;return o&&(s=i.find((e=>e.includes("."))))&&(a=c(s).ext),{shortcode:t,orgSlug:r,projectSlug:n,uri:o,file:s,ext:a}}function $({shortcode:e,orgSlug:t,projectSlug:r,uri:n=""}){return[e,t,r,n.replace(/^\//,"")].filter(Boolean).join("/")}},9049:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1581),i=r(3487),o=r(7023),s=r(4815),a=r(4181),c=r(2141),p="errorMessage",u=new n.Name("emUsed"),f={required:"missingProperty",dependencies:"property",dependentRequired:"property"},l=/\$\{[^}]+\}/,d=/\$\{([^}]+)\}/g,h=/^""\s*\+\s*|\s*\+\s*""$/g;const m=(e,t={})=>{if(!e.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(e.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return e.addKeyword(function(e){return{keyword:p,schemaType:["string","object"],post:!0,code(t){const{gen:r,data:m,schema:y,schemaValue:g,it:v}=t;if(!1===v.createErrors)return;const b=y,j=i.strConcat(c.default.instancePath,v.errorPath);function $(e,t){return i.and(n._`${e}.keyword !== ${p}`,n._`!${e}.${u}`,n._`${e}.instancePath === ${j}`,n._`${e}.keyword in ${t}`,n._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,n._`/^\\/[^\\/]*$/.test(${e}.schemaPath.slice(${v.errSchemaPath.length}))`)}function _(e,t){const n=[];for(const r in e){const e=t[r];l.test(e)&&n.push([r,P(e)])}return r.object(...n)}function x(e){return l.test(e)?new o._Code(o.safeStringify(e).replace(d,((e,t)=>`" + JSON.stringify(${s.getData(t,v)}) + "`)).replace(h,"")):n.stringify(e)}function P(e){return n._`function(){return ${x(e)}}`}r.if(n._`${c.default.errors} > 0`,(()=>{if("object"==typeof b){const[o,s]=function(e){let t,r;for(const n in e){if("properties"===n||"items"===n)continue;const i=e[n];if("object"==typeof i){t||(t={});const e=t[n]={};for(const t in i)e[t]=[]}else r||(r={}),r[n]=[]}return[t,r]}(b);s&&function(i){const o=r.const("emErrors",n.stringify(i)),s=r.const("templates",_(i,y));r.forOf("err",c.default.vErrors,(e=>r.if($(e,o),(()=>r.code(n._`${o}[${e}.keyword].push(${e})`).assign(n._`${e}.${u}`,!0)))));const{singleError:p}=e;if(p){const e=r.let("message",n._`""`),i=r.let("paramsErrors",n._`[]`);f((t=>{r.if(e,(()=>r.code(n._`${e} += ${"string"==typeof p?p:";"}`))),r.code(n._`${e} += ${l(t)}`),r.assign(i,n._`${i}.concat(${o}[${t}])`)})),a.reportError(t,{message:e,params:n._`{errors: ${i}}`})}else f((e=>a.reportError(t,{message:l(e),params:n._`{errors: ${o}[${e}]}`})));function f(e){r.forIn("key",o,(t=>r.if(n._`${o}[${t}].length`,(()=>e(t)))))}function l(e){return n._`${e} in ${s} ? ${s}[${e}]() : ${g}[${e}]`}}(s),o&&function(e){const i=r.const("emErrors",n.stringify(e)),o=[];for(const t in e)o.push([t,_(e[t],y[t])]);const s=r.const("templates",r.object(...o)),p=r.scopeValue("obj",{ref:f,code:n.stringify(f)}),l=r.let("emPropParams"),d=r.let("emParamsErrors");r.forOf("err",c.default.vErrors,(e=>r.if($(e,i),(()=>{r.assign(l,n._`${p}[${e}.keyword]`),r.assign(d,n._`${i}[${e}.keyword][${e}.params[${l}]]`),r.if(d,(()=>r.code(n._`${d}.push(${e})`).assign(n._`${e}.${u}`,!0)))})))),r.forIn("key",i,(e=>r.forIn("keyProp",n._`${i}[${e}]`,(o=>{r.assign(d,n._`${i}[${e}][${o}]`),r.if(n._`${d}.length`,(()=>{const i=r.const("tmpl",n._`${s}[${e}] && ${s}[${e}][${o}]`);a.reportError(t,{message:n._`${i} ? ${i}() : ${g}[${e}][${o}]`,params:n._`{errors: ${d}}`})}))}))))}(o),function(e){const{props:o,items:s}=e;if(!o&&!s)return;const f=n._`typeof ${m} == "object"`,l=n._`Array.isArray(${m})`,d=r.let("emErrors");let h,v;const b=r.let("templates");function $(e,t){r.assign(d,n.stringify(e)),r.assign(b,_(e,t))}o&&s?(h=r.let("emChildKwd"),r.if(f),r.if(l,(()=>{$(s,y.items),r.assign(h,n.str`items`)}),(()=>{$(o,y.properties),r.assign(h,n.str`properties`)})),v=n._`[${h}]`):s?(r.if(l),$(s,y.items),v=n._`.items`):o&&(r.if(i.and(f,i.not(l))),$(o,y.properties),v=n._`.properties`),r.forOf("err",c.default.vErrors,(e=>function(e,t,o){r.if(i.and(n._`${e}.keyword !== ${p}`,n._`!${e}.${u}`,n._`${e}.instancePath.indexOf(${j}) === 0`),(()=>{const i=r.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:n._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),s=r.const("emMatches",n._`${i}.exec(${e}.instancePath.slice(${j}.length))`),a=r.const("emChild",n._`${s} && ${s}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);r.if(n._`${a} !== undefined && ${a} in ${t}`,(()=>o(a)))}))}(e,d,(t=>r.code(n._`${d}[${t}].push(${e})`).assign(n._`${e}.${u}`,!0))))),r.forIn("key",d,(e=>r.if(n._`${d}[${e}].length`,(()=>{a.reportError(t,{message:n._`${e} in ${b} ? ${b}[${e}]() : ${g}${v}[${e}]`,params:n._`{errors: ${d}[${e}]}`}),r.assign(n._`${c.default.vErrors}[${c.default.errors}-1].instancePath`,n._`${j} + "/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})))),r.endIf()}(function({properties:e,items:t}){const r={};if(e){r.props={};for(const t in e)r.props[t]=[]}if(t){r.items={};for(let e=0;er.if(function(e){return i.and(n._`${e}.keyword !== ${p}`,n._`!${e}.${u}`,i.or(n._`${e}.instancePath === ${j}`,i.and(n._`${e}.instancePath.indexOf(${j}) === 0`,n._`${e}.instancePath[${j}.length] === "/"`)),n._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,n._`${e}.schemaPath[${v.errSchemaPath}.length] === "/"`)}(e),(()=>r.code(n._`${o}.push(${e})`).assign(n._`${e}.${u}`,!0))))),r.if(n._`${o}.length`,(()=>a.reportError(t,{message:x(e),params:n._`{errors: ${o}}`})))}(o),e.keepErrors||function(){const e=r.const("emErrs",n._`[]`);r.forOf("err",c.default.vErrors,(t=>r.if(n._`!${t}.${u}`,(()=>r.code(n._`${e}.push(${t})`))))),r.assign(c.default.vErrors,e).assign(c.default.errors,n._`${e}.length`)}()}))},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}(t))};t.default=m,e.exports=m,e.exports.default=m},9848:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aas2_4=t.aas2_3=t.aas2_2=t.aas2_1=t.aas2_0=t.asyncapi2=t.asyncApi2=t.aas2=void 0;const n=r(7953),i=/^2\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$/,o=/^2\.0(?:\.[0-9]*)?$/,s=/^2\.1(?:\.[0-9]*)?$/,a=/^2\.2(?:\.[0-9]*)?$/,c=/^2\.3(?:\.[0-9]*)?$/,p=/^2\.4(?:\.[0-9]*)?$/,u=e=>(0,n.isPlainObject)(e)&&"asyncapi"in e&&i.test(String(e.asyncapi));t.aas2=u,t.aas2.displayName="AsyncAPI 2.x",t.asyncApi2=t.aas2,t.asyncapi2=t.aas2,t.aas2_0=e=>u(e)&&o.test(String(e.asyncapi)),t.aas2_0.displayName="AsyncAPI 2.0.x",t.aas2_1=e=>u(e)&&s.test(String(e.asyncapi)),t.aas2_1.displayName="AsyncAPI 2.1.x",t.aas2_2=e=>u(e)&&a.test(String(e.asyncapi)),t.aas2_2.displayName="AsyncAPI 2.2.x",t.aas2_3=e=>u(e)&&c.test(String(e.asyncapi)),t.aas2_3.displayName="AsyncAPI 2.3.x",t.aas2_4=e=>u(e)&&p.test(String(e.asyncapi)),t.aas2_4.displayName="AsyncAPI 2.4.x"},683:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);(0,n.__exportStar)(r(6967),t),(0,n.__exportStar)(r(9848),t),(0,n.__exportStar)(r(1400),t)},1400:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detectDialect=t.extractDraftVersion=t.jsonSchemaDraft2020_12=t.jsonSchemaDraft2019_09=t.jsonSchemaDraft7=t.jsonSchemaDraft6=t.jsonSchemaDraft4=t.jsonSchemaLoose=t.jsonSchema=void 0;const n=r(7953),i=["array","boolean","integer","null","number","object","string"],o=["allOf","oneOf","anyOf","not","if"],s=/^https?:\/\/json-schema.org\/(?:draft-0([467])|draft\/(20(?:19-09|20-12)))\/(?:hyper-)?schema#?$/,a=e=>function(e){return(0,n.isPlainObject)(e)&&"$schema"in e&&"string"==typeof e.$schema}(e)&&e.$schema.includes("//json-schema.org/");function c(e,t){const r=t=>a(t)&&p(t.$schema)===e;return r.displayName=t,r}function p(e){var t;const r=s.exec(e);return null!==r?`draft${null!==(t=r[1])&&void 0!==t?t:r[2]}`:null}t.jsonSchema=a,t.jsonSchema.displayName="JSON Schema",t.jsonSchemaLoose=e=>(0,n.isPlainObject)(e)&&(a(e)||(e=>"type"in e&&("string"==typeof e.type?i.includes(e.type):Array.isArray(e.type)&&e.type.every((e=>i.includes(e)))))(e)||(e=>o.some((t=>t in e&&"object"==typeof e[t]&&null!==e[t])))(e)),t.jsonSchemaLoose.displayName="JSON Schema (loose)",t.jsonSchemaDraft4=c("draft4","JSON Schema Draft 4"),t.jsonSchemaDraft6=c("draft6","JSON Schema Draft 6"),t.jsonSchemaDraft7=c("draft7","JSON Schema Draft 7"),t.jsonSchemaDraft2019_09=c("draft2019-09","JSON Schema Draft 2019-09"),t.jsonSchemaDraft2020_12=c("draft2020-12","JSON Schema Draft 2020-12"),t.extractDraftVersion=p,t.detectDialect=function(e){return a(e)?p(e.$schema):null}},6967:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oas3_1=t.oas3_0=t.oas3=t.oas2=void 0;const n=r(7953);t.oas2=e=>(0,n.isPlainObject)(e)&&"swagger"in e&&2===parseInt(String(e.swagger)),t.oas2.displayName="OpenAPI 2.0 (Swagger)";const i=e=>(0,n.isPlainObject)(e)&&"openapi"in e&&3===Number.parseInt(String(e.openapi));t.oas3=i,t.oas3.displayName="OpenAPI 3.x",t.oas3_0=e=>i(e)&&/^3\.0(?:\.[0-9]*)?$/.test(String(e.openapi)),t.oas3_0.displayName="OpenAPI 3.0.x",t.oas3_1=e=>i(e)&&/^3\.1(?:\.[0-9]*)?$/.test(String(e.openapi)),t.oas3_1.displayName="OpenAPI 3.1.x"},5787:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6486),i=r(309),o=r(1403),s=r(8208),a=(e,t)=>"number"!=typeof e&&!Number.isNaN(Number(e))||"number"!=typeof t&&Number.isNaN(Number(t))?"string"!=typeof e||"string"!=typeof t?0:e.localeCompare(t):Math.min(1,Math.max(-1,Number(e)-Number(t)));function c(e){return"string"==typeof e||"number"==typeof e}t.default=(0,i.createRulesetFunction)({input:{type:["object","array"]},options:s.optionSchemas.alphabetical},(function(e,t,{path:r,documentInventory:i}){var s,p;let u;if(u=Array.isArray(e)?e:Object.keys(null!==(p=null===(s=i.findAssociatedItemForPath(r,!0))||void 0===s?void 0:s.document.trapAccess(e))&&void 0!==p?p:e),u.length<2)return;const f=null==t?void 0:t.keyedBy;if(void 0!==f){const e=[];for(const t of u){if(!(0,n.isObject)(t))return[{message:'#{{print("property")}}must be an object'}];e.push(t[f])}u=e}if(!u.every(c))return[{message:'#{{print("property")}}must be one of the allowed types: number, string'}];const l=((e,t)=>{for(let r=0;r=1)return[r,r+1];return null})(u,a);return null!=l?[{...void 0===f?{path:[...r,Array.isArray(e)?l[0]:u[l[0]]]}:null,message:void 0!==f?"properties must follow the alphabetical order":`${(0,o.printValue)(u[l[0]])} must be placed after ${(0,o.printValue)(u[l[1]])}`}]:void 0}))},4202:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CasingType=void 0;const n=r(6486),i=r(309),o=r(8208),s=r(2599);Object.defineProperty(t,"CasingType",{enumerable:!0,get:function(){return s.CasingType}});const a={[s.CasingType.flat]:"[a-z][a-z{__DIGITS__}]*",[s.CasingType.camel]:"[a-z][a-z{__DIGITS__}]*(?:[A-Z{__DIGITS__}](?:[a-z{__DIGITS__}]+|$))*",[s.CasingType.pascal]:"[A-Z][a-z{__DIGITS__}]*(?:[A-Z{__DIGITS__}](?:[a-z{__DIGITS__}]+|$))*",[s.CasingType.kebab]:"[a-z][a-z{__DIGITS__}]*(?:-[a-z{__DIGITS__}]+)*",[s.CasingType.cobol]:"[A-Z][A-Z{__DIGITS__}]*(?:-[A-Z{__DIGITS__}]+)*",[s.CasingType.snake]:"[a-z][a-z{__DIGITS__}]*(?:_[a-z{__DIGITS__}]+)*",[s.CasingType.macro]:"[A-Z][A-Z{__DIGITS__}]*(?:_[A-Z{__DIGITS__}]+)*"};t.default=(0,i.createRulesetFunction)({input:{type:"string",minLength:1},options:o.optionSchemas.casing},(function(e,t){if(1!==e.length||void 0===t.separator||!0!==t.separator.allowLeading||e!==t.separator.char)return c(a[t.type],t).test(e)?void 0:[{message:`must be ${t.type} case`}]}));const c=(e,t)=>{const r=!0!==t.disallowDigits,i=e.replace(/\{__DIGITS__\}/g,r?"0-9":"");if(void 0===t.separator)return new RegExp(`^${i}$`);const o=`[${(0,n.escapeRegExp)(t.separator.char)}]`,s=!0===t.separator.allowLeading?`${o}?`:"";return new RegExp(`^${s}${i}(?:${o}${i})*$`)}},9550:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(8208);t.default=(0,n.createRulesetFunction)({input:null,options:i.optionSchemas.defined},(function(e){if(void 0===e)return[{message:'#{{print("property")}}must be defined'}]}))},551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(1403),o=r(8208);t.default=(0,n.createRulesetFunction)({input:{type:["string","number","null","boolean"]},options:o.optionSchemas.enumeration},(function(e,{values:t}){if(!t.includes(e))return[{message:`#{{print("value")}} must be equal to one of the allowed values: ${t.map(i.printValue).join(", ")}`}]}))},7546:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(8208);t.default=(0,n.createRulesetFunction)({input:null,options:i.optionSchemas.falsy},(function(e){if(e)return[{message:'#{{print("property")}}must be falsy'}]}))},4133:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xor=t.unreferencedReusableObject=t.undefined=t.truthy=t.schema=t.pattern=t.length=t.falsy=t.enumeration=t.defined=t.casing=t.alphabetical=void 0;const n=r(655),i=(0,n.__importDefault)(r(5787));Object.defineProperty(t,"alphabetical",{enumerable:!0,get:function(){return i.default}});const o=(0,n.__importDefault)(r(4202));Object.defineProperty(t,"casing",{enumerable:!0,get:function(){return o.default}});const s=(0,n.__importDefault)(r(9550));Object.defineProperty(t,"defined",{enumerable:!0,get:function(){return s.default}});const a=(0,n.__importDefault)(r(551));Object.defineProperty(t,"enumeration",{enumerable:!0,get:function(){return a.default}});const c=(0,n.__importDefault)(r(7546));Object.defineProperty(t,"falsy",{enumerable:!0,get:function(){return c.default}});const p=(0,n.__importDefault)(r(5285));Object.defineProperty(t,"length",{enumerable:!0,get:function(){return p.default}});const u=(0,n.__importDefault)(r(3609));Object.defineProperty(t,"pattern",{enumerable:!0,get:function(){return u.default}});const f=(0,n.__importDefault)(r(7952));Object.defineProperty(t,"schema",{enumerable:!0,get:function(){return f.default}});const l=(0,n.__importDefault)(r(9719));Object.defineProperty(t,"truthy",{enumerable:!0,get:function(){return l.default}});const d=(0,n.__importDefault)(r(9298));Object.defineProperty(t,"undefined",{enumerable:!0,get:function(){return d.default}});const h=(0,n.__importDefault)(r(3789));Object.defineProperty(t,"unreferencedReusableObject",{enumerable:!0,get:function(){return h.default}});const m=(0,n.__importDefault)(r(7217));Object.defineProperty(t,"xor",{enumerable:!0,get:function(){return m.default}})},5285:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(1403),o=r(7953),s=r(8208);t.default=(0,n.createRulesetFunction)({input:{type:["array","object","string","number"]},options:s.optionSchemas.length},(function(e,t){let r,n;return r=(0,o.isPlainObject)(e)?Object.keys(e).length:Array.isArray(e)?e.length:"number"==typeof e?e:e.length,"min"in t&&rt.max&&(null!=n?n:n=[]).push({message:`#{{print("property")}}must be shorter than ${(0,i.printValue)(t.max)}`}),n}))},8208:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optionSchemas=void 0;const n=r(2599);t.optionSchemas={alphabetical:{type:["object","null"],properties:{keyedBy:{type:"string",description:"The key to sort an object by."}},additionalProperties:!1,errorMessage:{type:'"alphabetical" function has invalid options specified. Example valid options: null (no options), { "keyedBy": "my-key" }'}},casing:{required:["type"],type:"object",properties:{type:{type:"string",enum:Object.values(n.CasingType),errorMessage:`"casing" function and its "type" option accept the following values: ${Object.values(n.CasingType).join(", ")}`,description:"The casing type to match against."},disallowDigits:{type:"boolean",default:!1,description:"If not true, digits are allowed."},separator:{type:"object",required:["char"],additionalProperties:!1,properties:{char:{type:"string",maxLength:1,errorMessage:'"casing" function and its "separator.char" option accepts only char, i.e. "I" or "/"',description:"The additional char to separate groups of words."},allowLeading:{type:"boolean",description:"Can the group separator char be used at the first char?"}}}},additionalProperties:!1,errorMessage:{type:'"casing" function has invalid options specified. Example valid options: { "type": "camel" }, { "type": "pascal", "disallowDigits": true }'}},defined:null,enumeration:{type:"object",additionalProperties:!1,properties:{values:{type:"array",items:{type:["string","number","null","boolean"]},errorMessage:'"enumeration" and its "values" option support only arrays of primitive values, i.e. ["Berlin", "London", "Paris"]',description:"An array of possible values."}},required:["values"],errorMessage:{type:'"enumeration" function has invalid options specified. Example valid options: { "values": ["Berlin", "London", "Paris"] }, { "values": [2, 3, 5, 8, 13, 21] }'}},falsy:null,length:{type:"object",properties:{min:{type:"number",description:"The minimum length to match."},max:{type:"number",description:"The maximum length to match."}},minProperties:1,additionalProperties:!1,errorMessage:{type:'"length" function has invalid options specified. Example valid options: { "min": 2 }, { "max": 5 }, { "min": 0, "max": 10 }'}},pattern:{type:"object",additionalProperties:!1,properties:{match:{anyOf:[{type:"string"},{type:"object",properties:{exec:{},test:{},flags:{type:"string"}},required:["test","flags"],"x-internal":!0}],errorMessage:'"pattern" function and its "match" option must be string or RegExp instance',description:"If provided, value must match this regex."},notMatch:{anyOf:[{type:"string"},{type:"object",properties:{exec:{},test:{},flags:{type:"string"}},required:["test","flags"],"x-internal":!0}],errorMessage:'"pattern" function and its "notMatch" option must be string or RegExp instance',description:"If provided, value must _not_ match this regex."}},minProperties:1,errorMessage:{type:'"pattern" function has invalid options specified. Example valid options: { "match": "^Stoplight" }, { "notMatch": "Swagger" }, { "match": "Stoplight", "notMatch": "Swagger" }',minProperties:'"pattern" function has invalid options specified. Example valid options: { "match": "^Stoplight" }, { "notMatch": "Swagger" }, { "match": "Stoplight", "notMatch": "Swagger" }'}},truthy:null,undefined:null,schema:{additionalProperties:!1,properties:{schema:{type:"object",description:"Any valid JSON Schema document."},dialect:{enum:["auto","draft4","draft6","draft7","draft2019-09","draft2020-12"],default:"auto",description:"The JSON Schema draft used by function."},allErrors:{type:"boolean",default:!1,description:"Returns all errors when true; otherwise only returns the first error."},prepareResults:{"x-internal":!0}},required:["schema"],type:"object",errorMessage:{type:'"schema" function has invalid options specified. Example valid options: { "schema": { /* any JSON Schema can be defined here */ } , { "schema": { "type": "object" }, "dialect": "auto" }'}},unreferencedReusableObject:{type:"object",properties:{reusableObjectsLocation:{type:"string",format:"json-pointer-uri-fragment",errorMessage:'"unreferencedReusableObject" and its "reusableObjectsLocation" option support only valid JSON Pointer fragments, i.e. "#", "#/foo", "#/paths/~1user"',description:"A local json pointer to the document member holding the reusable objects (eg. #/definitions for an OAS2 document, #/components/schemas for an OAS3 document)."}},additionalProperties:!1,required:["reusableObjectsLocation"],errorMessage:{type:'"unreferencedReusableObject" function has invalid options specified. Example valid options: { "reusableObjectsLocation": "#/components/schemas" }, { "reusableObjectsLocation": "#/$defs" }',required:'"unreferencedReusableObject" function is missing "reusableObjectsLocation" option. Example valid options: { "reusableObjectsLocation": "#/components/schemas" }, { "reusableObjectsLocation": "#/$defs" }'}},xor:{type:"object",properties:{properties:{type:"array",items:{type:"string"},minItems:2,maxItems:2,errorMessage:'"xor" and its "properties" option support 2-item tuples, i.e. ["id", "name"]',description:"The properties to check."}},additionalProperties:!1,required:["properties"],errorMessage:{type:'"xor" function has invalid options specified. Example valid options: { "properties": ["id", "name"] }, { "properties": ["country", "street"] }'}}}},3609:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(1403),o=r(8208),s=/^\/(.+)\/([a-z]*)$/,a=new Map;function c(e){const t=a.get(e);if(void 0!==t)return t.lastIndex=0,t;const r=function(e){const t=s.exec(e);return null!==t?new RegExp(t[1],t[2]):new RegExp(e)}(e);return a.set(e,r),r}t.default=(0,n.createRulesetFunction)({input:{type:"string"},options:o.optionSchemas.pattern},(function(e,t){let r;return"match"in t&&(c(t.match).test(e)||(r=[{message:`#{{print("value")}} must match the pattern ${(0,i.printValue)(t.match)}`}])),"notMatch"in t&&c(t.notMatch).test(e)&&(null!=r?r:r=[]).push({message:`#{{print("value")}} must not match the pattern ${(0,i.printValue)(t.notMatch)}`}),r}))},8178:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createAjvInstances=void 0;const n=r(655),i=(0,n.__importDefault)(r(1581)),o=(0,n.__importDefault)(r(6533)),s=(0,n.__importDefault)(r(5128)),a=(0,n.__importDefault)(r(1e3)),c=(0,n.__importDefault)(r(5477)),p=(0,n.__importDefault)(r(4606)),u=(0,n.__importStar)(r(18)),f=(0,n.__importStar)(r(9081)),l={warn(...e){const t=e[0];if("string"==typeof t){if(t.startsWith("unknown format"))return;console.warn(...e)}},log:console.log,error:console.error};function d(e,t){const r=new e({allErrors:t,meta:!0,messages:!0,strict:!1,allowUnionTypes:!0,logger:l,unicodeRegExp:!1});return(0,c.default)(r),t&&(0,p.default)(r),e===i.default&&(r.addSchema(f),r.addSchema(u)),r}function h(e){let t,r;return{get default(){return null!=t||(t=d(e,!1)),t},get allErrors(){return null!=r||(r=d(e,!0)),r}}}t.createAjvInstances=function(){const e={auto:h(i.default),draft4:h(a.default),"draft2019-09":h(o.default),"draft2020-12":h(s.default)},t=new WeakMap;return function(r,n,i){var o,s,a,c;const p=(null!==(o=e[n])&&void 0!==o?o:e.auto)[i?"allErrors":"default"],u=r.$id;if("string"==typeof u)return null!==(s=p.getSchema(u))&&void 0!==s?s:p.compile(r);{const e=null!==(a=t.get(p))&&void 0!==a?a:t.set(p,new WeakMap).get(p);return null!==(c=e.get(r))&&void 0!==c?c:e.set(r,p.compile(r)).get(r)}}}},7952:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655),i=(0,n.__importDefault)(r(654)),o=r(683),s=r(8178),a=(0,n.__importDefault)(r(6646)),c=r(309),p=r(6486),u=r(8208),f=new WeakMap;t.default=(0,c.createRulesetFunction)({input:null,options:u.optionSchemas.schema},(function(e,t,{path:r,rule:n,documentInventory:c}){var u,l,d;if(void 0===e)return[{path:r,message:'#{{print("property")}}must exist'}];const h=null!==(u=f.get(c))&&void 0!==u?u:f.set(c,(0,s.createAjvInstances)()).get(c),m=[],{allErrors:y=!1,schema:g}=t;try{const n=h(g,null!==(l=void 0===t.dialect||"auto"===t.dialect?(0,o.detectDialect)(g):null==t?void 0:t.dialect)&&void 0!==l?l:"draft7",y);!1===(null==n?void 0:n(e))&&Array.isArray(n.errors)&&(null===(d=t.prepareResults)||void 0===d||d.call(t,n.errors),m.push(...(0,i.default)(g,n.errors,{propertyPath:r,targetValue:e}).map((({suggestion:e,error:t,path:n})=>({message:void 0!==e?`${t}. ${e}`:t,path:[...r,...""!==n?n.replace(/^\//,"").split("/"):[]]})))))}catch(e){if(!(0,p.isError)(e))throw new Error("Unexpected error");n.resolved&&e instanceof a.default||m.push({message:e.message,path:r})}return m}))},9719:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(8208);t.default=(0,n.createRulesetFunction)({input:null,options:i.optionSchemas.truthy},(function(e){if(!e)return[{message:'#{{print("property")}}must be truthy'}]}))},2599:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.CasingType=void 0,(r=t.CasingType||(t.CasingType={})).flat="flat",r.camel="camel",r.pascal="pascal",r.kebab="kebab",r.cobol="cobol",r.snake="snake",r.macro="macro"},9298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(8208);t.default=(0,n.createRulesetFunction)({input:null,options:i.optionSchemas.undefined},(function(e){if(void 0!==e)return[{message:'#{{print("property")}}must be undefined'}]}))},3789:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(1403),o=r(7953),s=r(8208);t.default=(0,n.createRulesetFunction)({input:{type:"object"},options:s.optionSchemas.unreferencedReusableObject},(function(e,t,{document:r,documentInventory:n}){var s;const a=n.graph;if(null===a)throw new Error("unreferencedReusableObject requires dependency graph");const c=null!==(s=r.source)&&void 0!==s?s:"",p=Object.keys(e).map((e=>`${c}${t.reusableObjectsLocation}/${e}`)),u=new Set(a.overallOrder().map((e=>(0,o.decodePointer)(e))));return p.filter((e=>!u.has(e))).map((e=>({message:"Potential orphaned reusable object has been detected",path:(0,i.safePointerToPath)(e)})))}))},7217:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(1403),o=r(8208);t.default=(0,n.createRulesetFunction)({input:{type:"object"},options:o.optionSchemas.xor},(function(e,{properties:t}){if(2!==t.length)return;const r=[];return 1!==Object.keys(e).filter((e=>-1!==t.indexOf(e))).length&&r.push({message:`${(0,i.printValue)(t[0])} and ${(0,i.printValue)(t[1])} must not be both defined or both undefined`}),r}))},1e3:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=r(7159),i=r(32),o=r(1240),s=r(2165),a=["/properties"],c="http://json-schema.org/draft-04/schema";class p extends n.default{constructor(e={}){super({...e,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),i.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=p,Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var u=r(7159);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var f=r(7159);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return f._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return f.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return f.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return f.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return f.CodeGen}})},8005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=["$schema","id","$defs",{keyword:"$comment"},"definitions",r(8280).default];t.default=n},32:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8005),i=r(3806),o=r(8200),s=r(9502),a=[n.default,i.default,o.default(),s.default,["title","description","default"]];t.default=a},3806:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6453),i=r(4275),o=r(430),s=r(3229),a=r(4336),c=r(498),p=r(3301),u=r(1687),f=r(2958),l=r(4693),d=r(966),h=[n.default,i.default,o.default,s.default,a.default,c.default,p.default,u.default,f.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,d.default];t.default=h},6453:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(7159),i=r(3487).operators,o={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:i.LTE,fail:i.GT},{okStr:"<",ok:i.LT,fail:i.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:i.GTE,fail:i.LT},{okStr:">",ok:i.GT,fail:i.LTE}]}},s={message:e=>n.str`must be ${c(e).okStr} ${e.schemaCode}`,params:e=>n._`{comparison: ${c(e).okStr}, limit: ${e.schemaCode}}`},a={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:s,code(e){const{data:t,schemaCode:r}=e;e.fail$data(n._`${t} ${c(e).fail} ${r} || isNaN(${t})`)}};function c(e){var t;const r=e.keyword,n=(null===(t=e.parentSchema)||void 0===t?void 0:t[o[r].exclusive])?1:0;return o[r].ops[n]}t.default=a},4275:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},n={keyword:Object.keys(r),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){const n=r[e];if(void 0===t[n])throw new Error(`${e} can only be used with ${n}`)}};t.default=n},4606:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1581),i=r(3487),o=r(7023),s=r(4815),a=r(4181),c=r(2141),p="errorMessage",u=new n.Name("emUsed"),f={required:"missingProperty",dependencies:"property",dependentRequired:"property"},l=/\$\{[^}]+\}/,d=/\$\{([^}]+)\}/g,h=/^""\s*\+\s*|\s*\+\s*""$/g;const m=(e,t={})=>{if(!e.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(e.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return e.addKeyword(function(e){return{keyword:p,schemaType:["string","object"],post:!0,code(t){const{gen:r,data:m,schema:y,schemaValue:g,it:v}=t;if(!1===v.createErrors)return;const b=y,j=i.strConcat(c.default.instancePath,v.errorPath);function $(e,t){return i.and(n._`${e}.keyword !== ${p}`,n._`!${e}.${u}`,n._`${e}.instancePath === ${j}`,n._`${e}.keyword in ${t}`,n._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,n._`/^\\/[^\\/]*$/.test(${e}.schemaPath.slice(${v.errSchemaPath.length}))`)}function _(e,t){const n=[];for(const r in e){const e=t[r];l.test(e)&&n.push([r,P(e)])}return r.object(...n)}function x(e){return l.test(e)?new o._Code(o.safeStringify(e).replace(d,((e,t)=>`" + JSON.stringify(${s.getData(t,v)}) + "`)).replace(h,"")):n.stringify(e)}function P(e){return n._`function(){return ${x(e)}}`}r.if(n._`${c.default.errors} > 0`,(()=>{if("object"==typeof b){const[o,s]=function(e){let t,r;for(const n in e){if("properties"===n||"items"===n)continue;const i=e[n];if("object"==typeof i){t||(t={});const e=t[n]={};for(const t in i)e[t]=[]}else r||(r={}),r[n]=[]}return[t,r]}(b);s&&function(i){const o=r.const("emErrors",n.stringify(i)),s=r.const("templates",_(i,y));r.forOf("err",c.default.vErrors,(e=>r.if($(e,o),(()=>r.code(n._`${o}[${e}.keyword].push(${e})`).assign(n._`${e}.${u}`,!0)))));const{singleError:p}=e;if(p){const e=r.let("message",n._`""`),i=r.let("paramsErrors",n._`[]`);f((t=>{r.if(e,(()=>r.code(n._`${e} += ${"string"==typeof p?p:";"}`))),r.code(n._`${e} += ${l(t)}`),r.assign(i,n._`${i}.concat(${o}[${t}])`)})),a.reportError(t,{message:e,params:n._`{errors: ${i}}`})}else f((e=>a.reportError(t,{message:l(e),params:n._`{errors: ${o}[${e}]}`})));function f(e){r.forIn("key",o,(t=>r.if(n._`${o}[${t}].length`,(()=>e(t)))))}function l(e){return n._`${e} in ${s} ? ${s}[${e}]() : ${g}[${e}]`}}(s),o&&function(e){const i=r.const("emErrors",n.stringify(e)),o=[];for(const t in e)o.push([t,_(e[t],y[t])]);const s=r.const("templates",r.object(...o)),p=r.scopeValue("obj",{ref:f,code:n.stringify(f)}),l=r.let("emPropParams"),d=r.let("emParamsErrors");r.forOf("err",c.default.vErrors,(e=>r.if($(e,i),(()=>{r.assign(l,n._`${p}[${e}.keyword]`),r.assign(d,n._`${i}[${e}.keyword][${e}.params[${l}]]`),r.if(d,(()=>r.code(n._`${d}.push(${e})`).assign(n._`${e}.${u}`,!0)))})))),r.forIn("key",i,(e=>r.forIn("keyProp",n._`${i}[${e}]`,(o=>{r.assign(d,n._`${i}[${e}][${o}]`),r.if(n._`${d}.length`,(()=>{const i=r.const("tmpl",n._`${s}[${e}] && ${s}[${e}][${o}]`);a.reportError(t,{message:n._`${i} ? ${i}() : ${g}[${e}][${o}]`,params:n._`{errors: ${d}}`})}))}))))}(o),function(e){const{props:o,items:s}=e;if(!o&&!s)return;const f=n._`typeof ${m} == "object"`,l=n._`Array.isArray(${m})`,d=r.let("emErrors");let h,v;const b=r.let("templates");function $(e,t){r.assign(d,n.stringify(e)),r.assign(b,_(e,t))}o&&s?(h=r.let("emChildKwd"),r.if(f),r.if(l,(()=>{$(s,y.items),r.assign(h,n.str`items`)}),(()=>{$(o,y.properties),r.assign(h,n.str`properties`)})),v=n._`[${h}]`):s?(r.if(l),$(s,y.items),v=n._`.items`):o&&(r.if(i.and(f,i.not(l))),$(o,y.properties),v=n._`.properties`),r.forOf("err",c.default.vErrors,(e=>function(e,t,o){r.if(i.and(n._`${e}.keyword !== ${p}`,n._`!${e}.${u}`,n._`${e}.instancePath.indexOf(${j}) === 0`),(()=>{const i=r.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:n._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),s=r.const("emMatches",n._`${i}.exec(${e}.instancePath.slice(${j}.length))`),a=r.const("emChild",n._`${s} && ${s}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);r.if(n._`${a} !== undefined && ${a} in ${t}`,(()=>o(a)))}))}(e,d,(t=>r.code(n._`${d}[${t}].push(${e})`).assign(n._`${e}.${u}`,!0))))),r.forIn("key",d,(e=>r.if(n._`${d}[${e}].length`,(()=>{a.reportError(t,{message:n._`${e} in ${b} ? ${b}[${e}]() : ${g}${v}[${e}]`,params:n._`{errors: ${d}[${e}]}`}),r.assign(n._`${c.default.vErrors}[${c.default.errors}-1].instancePath`,n._`${j} + "/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})))),r.endIf()}(function({properties:e,items:t}){const r={};if(e){r.props={};for(const t in e)r.props[t]=[]}if(t){r.items={};for(let e=0;er.if(function(e){return i.and(n._`${e}.keyword !== ${p}`,n._`!${e}.${u}`,i.or(n._`${e}.instancePath === ${j}`,i.and(n._`${e}.instancePath.indexOf(${j}) === 0`,n._`${e}.instancePath[${j}.length] === "/"`)),n._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,n._`${e}.schemaPath[${v.errSchemaPath}.length] === "/"`)}(e),(()=>r.code(n._`${o}.push(${e})`).assign(n._`${e}.${u}`,!0))))),r.if(n._`${o}.length`,(()=>a.reportError(t,{message:x(e),params:n._`{errors: ${o}}`})))}(o),e.keepErrors||function(){const e=r.const("emErrs",n._`[]`);r.forOf("err",c.default.vErrors,(t=>r.if(n._`!${t}.${u}`,(()=>r.code(n._`${e}.push(${t})`))))),r.assign(c.default.vErrors,e).assign(c.default.errors,n._`${e}.length`)}()}))},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}(t))};t.default=m,e.exports=m,e.exports.default=m},644:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);(0,n.__exportStar)(r(7657),t),(0,n.__exportStar)(r(8450),t),(0,n.__exportStar)(r(7858),t)},7657:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Json=t.parseJson=void 0;const n=r(7953);t.parseJson=e=>(0,n.parseWithPointers)(e,{ignoreDuplicateKeys:!1,preserveKeyOrder:!0}),t.Json={parse:t.parseJson,getLocationForJsonPath:n.getLocationForJsonPath,trapAccess:n.trapAccess}},7858:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Yaml=t.parseYaml=void 0;const n=r(8748);t.parseYaml=e=>(0,n.parseWithPointers)(e,{ignoreDuplicateKeys:!1,mergeKeys:!0,preserveKeyOrder:!0}),t.Yaml={parse:t.parseYaml,getLocationForJsonPath:n.getLocationForJsonPath,trapAccess:n.trapAccess}},3871:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHttpAndFileResolver=t.ResolverDepGraph=t.Resolver=t.httpAndFileResolver=void 0;const n=r(655),i=r(5738),o=r(5594);Object.defineProperty(t,"Resolver",{enumerable:!0,get:function(){return o.Resolver}});const s=r(1403),a=r(5357);function c(e){const t=i.createResolveHttp({...s.DEFAULT_REQUEST_OPTIONS,...e});return new o.Resolver({resolvers:{https:{resolve:t},http:{resolve:t},file:{resolve:i.resolveFile}}})}n.__exportStar(r(5927),t),t.httpAndFileResolver=c(),t.ResolverDepGraph=a.DepGraph,t.createHttpAndFileResolver=c},5927:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4399:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cache=class{constructor(e={}){this._stats={hits:0,misses:0},this._data={},this._stdTTL=e.stdTTL}get stats(){return this._stats}get(e){const t=this._data[e];if(t&&(!this._stdTTL||(new Date).getTime()-t.ts{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(7953),i=r(5357),o=r(9208),s=r(8634);t.ResolveCrawler=class{constructor(e,t,r){this._resolved=r,this.resolvers=[],this.pointerGraph=new i.DepGraph({circular:!0}),this.pointerStemGraph=new i.DepGraph({circular:!0}),this.computeGraph=(e,t=[],r="#",n=[])=>{r||(r="#");let i=this._runner.computeRef({val:e,jsonPointer:r,pointerStack:n});if(void 0!==i)this._resolveRef({ref:i,val:e,parentPath:t,pointerStack:n,parentPointer:r,cacheKey:r,resolvingPointer:this.jsonPointer});else if("object"==typeof e)for(const o in e){if(!e.hasOwnProperty(o))continue;const a=e[o],c=s.addToJSONPointer(r,o);i=this._runner.computeRef({key:o,val:a,jsonPointer:c,pointerStack:n}),t.push(o),void 0!==i?this._resolveRef({ref:i,val:a,parentPath:t,parentPointer:c,pointerStack:n,cacheKey:s.uriToJSONPointer(i),resolvingPointer:this.jsonPointer}):"object"==typeof a&&this.computeGraph(a,t,c,n),t.pop()}},this._resolveRef=e=>{const{pointerStack:t,parentPath:r,parentPointer:i,ref:a}=e;if(s.uriIsJSONPointer(a)){if(this._runner.dereferenceInline){const e=s.uriToJSONPointer(a);let c;try{c=n.pointerToPath(e)}catch(e){return void this._resolved.errors.push({code:"PARSE_POINTER",message:`'${a}' JSON pointer is invalid`,uri:this._runner.baseUri,uriStack:this._runner.uriStack,pointerStack:[],path:[]})}let p=c.length>0;for(const e in c)if(r[e]!==c[e]){p=!1;break}if(p)return;this.pointerStemGraph.hasNode(e)||this.pointerStemGraph.addNode(e);let u="#",f="";for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(655).__exportStar(r(1844),t);var n=r(4399);t.Cache=n.Cache;var i=r(4281);t.defaultGetRef=i.defaultGetRef},1844:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(5357),i=r(4399),o=r(4281);t.Resolver=class{constructor(e={}){this.ctx={},this.uriCache=e.uriCache||new i.Cache,this.resolvers=e.resolvers||{},this.getRef=e.getRef,this.transformRef=e.transformRef,this.dereferenceInline=void 0===e.dereferenceInline||e.dereferenceInline,this.dereferenceRemote=void 0===e.dereferenceRemote||e.dereferenceRemote,this.parseResolveResult=e.parseResolveResult,this.transformDereferenceResult=e.transformDereferenceResult,this.ctx=e.ctx}resolve(e,t={}){const r=new n.DepGraph({circular:!0});return new o.ResolveRunner(e,r,Object.assign(Object.assign({uriCache:this.uriCache,resolvers:this.resolvers,getRef:this.getRef,transformRef:this.transformRef,dereferenceInline:this.dereferenceInline,dereferenceRemote:this.dereferenceRemote,parseResolveResult:this.parseResolveResult,transformDereferenceResult:this.transformDereferenceResult},t),{ctx:Object.assign({},this.ctx||{},t.ctx||{})})).resolve(t)}}},4281:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655),i=r(7953),o=r(5966),s=r(5357),a=r(8172),c=r(9208),p=r(1468),u=r(4998),f=r(9177),l=r(4399),d=r(6701),h=r(8634),m=r(3316);let y=0;t.defaultGetRef=(e,t)=>{if(t&&"object"==typeof t&&"string"==typeof t.$ref)return t.$ref};class g{constructor(e,r=new s.DepGraph({circular:!0}),a={}){this.ctx={},this.computeRef=e=>{const t=this.getRef(e.key,e.val);if(void 0===t)return;let r=new f.ExtendedURI(t);if("#"!==t[0])if(this.isFile(r)){let e=r.toString();r.is("absolute")||(e=this.baseUri.toString()?o.join(o.dirname(this.baseUri.toString()),o.stripRoot(e)):""),e&&(r=new u(o.toFSPath(e)).fragment(r.fragment()))}else(r.scheme().includes("http")||""===r.scheme()&&this.baseUri.scheme().includes("http"))&&""!==this.baseUri.authority()&&""===r.authority()&&(r=r.absoluteTo(this.baseUri));return this.transformRef?this.transformRef(Object.assign(Object.assign({},e),{ref:r,uri:this.baseUri}),this.ctx):r},this.atMaxUriDepth=()=>this.uriStack.length>=100,this.lookupUri=e=>n.__awaiter(this,void 0,void 0,(function*(){const{ref:t}=e;let r=t.scheme();!this.resolvers[r]&&this.isFile(t)&&(r="file");const n=this.resolvers[r];if(!n)throw new Error(`No resolver defined for scheme '${t.scheme()||"file"}' in ref ${t.toString()}`);let i=yield n.resolve(t,this.ctx);if(this.parseResolveResult)try{i=(yield this.parseResolveResult({uriResult:i,result:i,targetAuthority:t,parentAuthority:this.baseUri,parentPath:e.parentPath,fragment:e.fragment})).result}catch(e){throw new Error(`Could not parse remote reference response for '${t.toString()}' - ${String(e)}`)}return new g(i,this.graph,{depth:this.depth+1,baseUri:t.toString(),root:t,uriStack:this.uriStack,uriCache:this.uriCache,resolvers:this.resolvers,transformRef:this.transformRef,parseResolveResult:this.parseResolveResult,transformDereferenceResult:this.transformDereferenceResult,dereferenceRemote:this.dereferenceRemote,dereferenceInline:this.dereferenceInline,ctx:this.ctx})})),this.lookupAndResolveUri=e=>n.__awaiter(this,void 0,void 0,(function*(){const{val:t,ref:r,resolvingPointer:n,parentPointer:o,pointerStack:s}=e,a=e.parentPath?e.parentPath.slice():[],c=this.computeUriCacheKey(r),u={uri:r,pointerStack:s,targetPath:n===o?[]:a};if(this.uriStack.includes(c))return u.resolved={result:t,graph:this.graph,refMap:{},errors:[],runner:this},u;{let e;const n=this.baseUri.toString(),o=n&&0!==this.depth?n:null;try{if(this.atMaxUriDepth())throw new Error(`Max uri depth (${this.uriStack.length}) reached. Halting, this is probably a circular loop.`);e=yield this.lookupUri({ref:r.clone().fragment(""),fragment:r.fragment(),cacheKey:c,parentPath:a}),o&&(e.uriStack=e.uriStack.concat(o))}catch(e){u.error={code:"RESOLVE_URI",message:String(e),uri:r,uriStack:o?this.uriStack.concat(o):this.uriStack,pointerStack:s,path:a}}if(e&&(u.resolved=yield e.resolve({jsonPointer:h.uriToJSONPointer(r),parentPath:a}),u.resolved.errors.length))for(const e of u.resolved.errors)if("POINTER_MISSING"===e.code&&e.path.join("/")===r.fragment().slice(1)){const n=r.fragment?i.trimStart(e.path,i.trimStart(r.fragment(),"/").split("/")):e.path;n&&n.length?p(u.resolved.result,n,t):u.resolved.result&&(u.resolved.result=t)}}return u})),this.id=y+=1,this.depth=a.depth||0,this._source=e,this.resolvers=a.resolvers||{};const c=a.baseUri||"";let d=new u(c||"");this.isFile(d)&&(d=new u(o.toFSPath(c))),this.baseUri=d,this.uriStack=a.uriStack||[],this.uriCache=a.uriCache||new l.Cache,this.root=a.root&&a.root.toString()||this.baseUri.toString()||"root",this.graph=r,this.graph.hasNode(this.root)||this.graph.addNode(this.root,{refMap:{},data:this._source}),this.baseUri&&0===this.depth&&this.uriCache.set(this.computeUriCacheKey(this.baseUri),this),this.getRef=a.getRef||t.defaultGetRef,this.transformRef=a.transformRef,this.depth?this.dereferenceInline=!0:this.dereferenceInline=void 0===a.dereferenceInline||a.dereferenceInline,this.dereferenceRemote=void 0===a.dereferenceRemote||a.dereferenceRemote,this.parseResolveResult=a.parseResolveResult,this.transformDereferenceResult=a.transformDereferenceResult,this.ctx=a.ctx,this.lookupUri=m(this.lookupUri,{serializer:this._cacheKeySerializer,cache:{create:()=>this.uriCache}})}get source(){return this._source}resolve(e){return n.__awaiter(this,void 0,void 0,(function*(){const t={result:this.source,graph:this.graph,refMap:{},errors:[],runner:this};let r;const n=e&&e.jsonPointer&&e.jsonPointer.trim();if(n&&"#"!==n&&"#/"!==n){try{r=i.pointerToPath(n)}catch(e){return t.errors.push({code:"PARSE_POINTER",message:`'${n}' JSON pointer is invalid`,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[],path:[]}),t}t.result=c(t.result,r)}if(void 0===t.result)return t.errors.push({code:"POINTER_MISSING",message:`'${n}' does not exist @ '${this.baseUri.toString()}'`,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[],path:r||[]}),t;const o=new d.ResolveCrawler(this,n,t);o.computeGraph(t.result,r,n||"");let s=[];if(o.resolvers.length&&(s=yield Promise.all(o.resolvers)),s.length)for(const e of s){let n=e.targetPath;n.length||(n=r||[]),t.refMap[String(this.baseUri.clone().fragment(i.pathToPointer(n)))]=String(e.uri),this._setGraphNodeEdge(String(this.root),i.pathToPointer(n),String(e.uri)),e.error&&t.errors.push(e.error),e.resolved&&(e.resolved.errors&&(t.errors=t.errors.concat(e.resolved.errors)),void 0!==e.resolved.result&&(this._source=a.default(this._source,(t=>{if(e.resolved){if(!n.length)return e.resolved.result;p(t,n,e.resolved.result),this._setGraphNodeData(String(e.uri),e.resolved.result)}}))))}if("object"==typeof this._source?(this.dereferenceInline&&(this._source=a.default(this._source,(e=>{let r=[];try{r=o.pointerGraph.overallOrder();for(const n of r){const r=o.pointerGraph.dependantsOf(n);if(!r.length)continue;const s=i.pointerToPath(n),u=0===s.length?a.original(e):c(e,s);for(const a of r){let r;const c=i.pointerToPath(a),f=o.pointerStemGraph.dependenciesOf(n);for(const e of f)if(i.startsWith(c,i.pointerToPath(e))){r=!0;break}r||(t.refMap[i.pathToPointer(c)]=i.pathToPointer(s),this._setGraphNodeEdge(this.root,i.pathToPointer(c),i.pathToPointer(s)),void 0!==u?(p(e,c,u),this._setGraphNodeData(i.pathToPointer(s),u)):t.errors.push({code:"POINTER_MISSING",message:`'${n}' does not exist`,path:c,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[]}))}}}catch(e){}}))),t.result=r?c(this._source,r):this._source):t.result=this._source,this.transformDereferenceResult){const i=new u(n||"");try{const{result:r,error:n}=yield this.transformDereferenceResult({source:this.source,result:t.result,targetAuthority:i,parentAuthority:this.baseUri,parentPath:e&&e.parentPath||[],fragment:i.fragment()});if(t.result=r,n)throw new Error(`Could not transform dereferenced result for '${i.toString()}' - ${String(n)}`)}catch(e){t.errors.push({code:"TRANSFORM_DEREFERENCED",message:`Error: Could not transform dereferenced result for '${this.baseUri.toString()}${""!==i.fragment()?`#${i.fragment()}`:""}' - ${String(e)}`,uri:i,uriStack:this.uriStack,pointerStack:[],path:r})}}return this._setGraphNodeData(this.root,this._source),t}))}_cacheKeySerializer(e){return e&&"object"==typeof e&&e.cacheKey?e.cacheKey:JSON.stringify(arguments)}computeUriCacheKey(e){return e.clone().fragment("").toString()}isFile(e){const t=e.scheme();if("file"===t)return!0;if(t){if(!this.resolvers[t])return!0}else{if("/"===e.toString().charAt(0))return!0;if(this.baseUri){const e=this.baseUri.scheme();return Boolean(!e||"file"===e||!this.resolvers[e])}}return!1}_setGraphNodeData(e,t){if(!this.graph.hasNode(e))return;const r=this.graph.getNodeData(e)||{};r.data=t,this.graph.setNodeData(e,r)}_setGraphNodeEdge(e,t,r){if(!this.graph.hasNode(e))return;const n=this.graph.getNodeData(e)||{};n.refMap=n.refMap||{},n.refMap[t]=r,this.graph.setNodeData(e,n)}}t.ResolveRunner=g},9177:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4998);t.ExtendedURI=class extends n{constructor(e){super(e),this._value=e}get length(){return this._value.length}}},8634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=(e,t,r)=>{const n=e.toString();let i="",o=n,s=0,a=o.indexOf(t);for(;a>-1;)i+=n.substring(s,s+a)+r,o=o.substring(a+t.length,o.length),s+=a+t.length,a=o.indexOf(t);return o.length>0&&(i+=n.substring(n.length-o.length,n.length)),i};t.addToJSONPointer=(e,t)=>{return`${e}/${n=t,r(r(n,"~","~0"),"/","~1")}`;var n},t.uriToJSONPointer=e=>"length"in e&&0===e.length?"":""!==e.fragment()?`#${e.fragment()}`:""===e.href()?"#":"",t.uriIsJSONPointer=e=>(!("length"in e)||e.length>0)&&""===e.path()},2613:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(7341),o=r(918),s=r(3874);t.default=(0,n.createRulesetFunction)({input:{type:"object",properties:{parameters:{type:"object"}},required:["parameters"]},options:null},(function(e,t,r){const n=r.path[r.path.length-1],a=[],c=(0,i.parseUrlVariables)(n);if(0===c.length)return;const p=(0,o.getMissingProps)(c,e.parameters);p.length&&a.push({message:`Not all channel's parameters are described with "parameters" object. Missed: ${p.join(", ")}.`,path:[...r.path,"parameters"]});const u=(0,s.getRedundantProps)(c,e.parameters);return u.length&&u.forEach((e=>{a.push({message:`Channel's "parameters" object has redundant defined "${e}" parameter.`,path:[...r.path,"parameters",e]})})),a}))},6722:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309);t.default=(0,n.createRulesetFunction)({input:{type:"object",properties:{servers:{type:"object"},channels:{type:"object",additionalProperties:{type:"object",properties:{servers:{type:"array",items:{type:"string"}}}}}}},options:null},(function(e,t){var r,n;const i=[];if(!e.channels)return i;const o=Object.keys(null!==(r=e.servers)&&void 0!==r?r:{});return Object.entries(null!==(n=e.channels)&&void 0!==n?n:{}).forEach((([e,t])=>{t.servers&&t.servers.forEach(((t,r)=>{o.includes(t)||i.push({message:'Channel contains server that are not defined on the "servers" object.',path:["channels",e,"servers",r]})}))})),i}))},3344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareResults=void 0;const n=r(655),i=r(309),o=r(4133),s=r(683),a=(0,n.__importStar)(r(5610)),c=(0,n.__importStar)(r(925)),p=(0,n.__importStar)(r(7674)),u=(0,n.__importStar)(r(8198)),f=(0,n.__importStar)(r(7474));function l(e){return"oneOf"===e.keyword||"required"===e.keyword&&"$ref"===e.params.missingProperty}const d=[{path:/^components\/securitySchemes\/[^/]+$/,message:"Invalid security scheme"}];function h(e){for(const t of e)"additionalProperties"===t.keyword&&(t.instancePath=`${t.instancePath}/${String(t.params.additionalProperty)}`);for(let t=0;t0&&l(r)&&e[t-1].instancePath.startsWith(r.instancePath)&&(e.splice(t,1),t--)}}t.prepareResults=h,t.default=(0,i.createRulesetFunction)({input:null,options:null},(function(e,t,r){const n=r.document.formats;if(null==n)return;const i=function(e){switch(!0){case e.has(s.aas2_0):return a;case e.has(s.aas2_1):return c;case e.has(s.aas2_2):return p;case e.has(s.aas2_3):return u;case e.has(s.aas2_4):return f;default:return}}(n);if(void 0===i)return;const l=(0,o.schema)(e,{allErrors:!0,schema:i,prepareResults:h},r);return Array.isArray(l)&&function(e){for(const t of e){if(void 0===t.path)continue;const e=t.path.join("/");for(const r of d)if(r.path.test(e)){t.message=r.message;break}}}(l),l}))},6567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(4133);function o(e,t,r,n,o){return(0,i.schema)(e,{allErrors:!0,schema:n},{...o,path:[...o.path,...t,r]})}t.default=(0,n.createRulesetFunction)({input:{type:"object",properties:{name:{type:"string"},summary:{type:"string"}}},options:null},(function(e,t,r){if(!e.examples)return;const n=(i=e,Array.isArray(i.examples)&&null!==(s=i.examples.map(((e,t)=>({path:["examples",t],value:e}))))&&void 0!==s?s:[]);var i,s;const a=[];for(const t of n){if(void 0!==t.value.payload){const n=o(t.value.payload,t.path,"payload",e.payload,r);Array.isArray(n)&&a.push(...n)}if(void 0!==t.value.headers){const n=o(t.value.headers,t.path,"headers",e.headers,r);Array.isArray(n)&&a.push(...n)}}return a}))},6275:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(7953),o=r(1021);function s(e){if(Array.isArray(e.traits))for(let t=e.traits.length-1;t>=0;t--){const r=e.traits[t];if((0,i.isPlainObject)(r)&&"string"==typeof r.messageId)return{messageId:r.messageId,path:["traits",t,"messageId"]}}if("string"==typeof e.messageId)return{messageId:e.messageId,path:["messageId"]}}t.default=(0,n.createRulesetFunction)({input:{type:"object",properties:{channels:{type:"object",properties:{subscribe:{type:"object",properties:{message:{oneOf:[{type:"object"},{type:"object",properties:{oneOf:{type:"array"}}}]}}},publish:{type:"object",properties:{message:{oneOf:[{type:"object"},{type:"object",properties:{oneOf:{type:"array"}}}]}}}}}}},options:null},(function(e,t){const r=[],n=(0,o.getAllMessages)(e),i=[];for(const{path:e,message:t}of n){const n=s(t);void 0!==n&&(i.includes(n.messageId)?r.push({message:'"messageId" must be unique across all the messages.',path:[...e,...n.path]}):i.push(n.messageId))}return r}))},2654:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(7953),o=r(1543);function s(e){if(Array.isArray(e.traits))for(let t=e.traits.length-1;t>=0;t--){const r=e.traits[t];if((0,i.isPlainObject)(r)&&"string"==typeof r.operationId)return{operationId:r.operationId,path:["traits",t,"operationId"]}}if("string"==typeof e.operationId)return{operationId:e.operationId,path:["operationId"]}}t.default=(0,n.createRulesetFunction)({input:{type:"object",properties:{channels:{type:"object",properties:{subscribe:{type:"object"},publish:{type:"object"}}}}},options:null},(function(e,t){const r=[],n=(0,o.getAllOperations)(e),i=[];for(const{path:e,operation:t}of n){const n=s(t);void 0!==n&&(i.includes(n.operationId)?r.push({message:'"operationId" must be unique across all the operations.',path:[...e,...n.path]}):i.push(n.operationId))}return r}))},490:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655),i=(0,n.__importDefault)(r(1581)),o=(0,n.__importDefault)(r(5477)),s=r(309),a=(0,n.__importDefault)(r(654)),c=(0,n.__importStar)(r(8198)),p={$ref:"asyncapi2#/definitions/schema"},u=new i.default({allErrors:!0,strict:!1});(0,o.default)(u),u.addSchema(c,"asyncapi2");const f=u.compile(p);t.default=(0,s.createRulesetFunction)({input:null,options:null},(function(e,t,r){return f(e),(0,a.default)(p,f.errors,{propertyPath:r.path,targetValue:e}).map((({suggestion:e,error:t,path:n})=>({message:void 0!==e?`${t}. ${e}`:t,path:[...r.path,...""!==n?n.replace(/^\//,"").split("/"):[]]})))}))},588:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(4133);t.default=(0,n.createRulesetFunction)({input:{type:"object",properties:{default:{},examples:{type:"array"}},errorMessage:'#{{print("property")}must be an object containing "default" or an "examples" array'},errorOnInvalidInput:!0,options:{type:"object",properties:{type:{enum:["default","examples"]}},additionalProperties:!1,required:["type"]}},(function(e,t,r){const n=e,o=(s=e,"default"===t.type?[{path:["default"],value:s.default}]:Array.isArray(s.examples)?Array.from(s.examples.entries()).map((([e,t])=>({path:["examples",e],value:t}))):[]);var s;const a=[];for(const e of o){const t=(0,i.schema)(e.value,{schema:n,allErrors:!0},{...r,path:[...r.path,...e.path]});Array.isArray(t)&&a.push(...t)}return a}))},1269:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(7953),o=["implicit","password","clientCredentials","authorizationCode"];t.default=(0,n.createRulesetFunction)({input:{type:"object",additionalProperties:{type:"array",items:{type:"string"}}},options:{type:"object",properties:{objectType:{type:"string",enum:["Server","Operation"]}}}},(function(e={},{objectType:t},r){var n,s;const a=[],c=r.document.data,p=null!==(s=null===(n=null==c?void 0:c.components)||void 0===n?void 0:n.securitySchemes)&&void 0!==s?s:{},u=Object.keys(p);return Object.keys(e).forEach((n=>{var s;u.includes(n)||a.push({message:`${t} must not reference an undefined security scheme.`,path:[...r.path,n]});const c=p[n];if("oauth2"===(null==c?void 0:c.type)){const t=function(e){const t=[];return o.forEach((r=>{const n=e[r];(0,i.isPlainObject)(n)&&(0,i.isPlainObject)(n)&&t.push(...Object.keys(n.scopes))})),Array.from(new Set(t))}(null!==(s=c.flows)&&void 0!==s?s:{});e[n].forEach(((e,i)=>{t.includes(e)||a.push({message:`Non-existing security scope for the specified security scheme. Available: [${t.join(", ")}]`,path:[...r.path,n,i]})}))}})),a}))},6556:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309),i=r(7341),o=r(918),s=r(3874);t.default=(0,n.createRulesetFunction)({input:{type:"object",properties:{url:{type:"string"},variables:{type:"object"}},required:["url","variables"]},options:null},(function(e,t,r){const n=[],a=(0,i.parseUrlVariables)(e.url);if(0===a.length)return n;const c=(0,o.getMissingProps)(a,e.variables);c.length&&n.push({message:`Not all server's variables are described with "variables" object. Missed: ${c.join(", ")}.`,path:[...r.path,"variables"]});const p=(0,s.getRedundantProps)(a,e.variables);return p.length&&p.forEach((e=>{n.push({message:`Server's "variables" object has redundant defined "${e}" url variable.`,path:[...r.path,"variables",e]})})),n}))},1021:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAllMessages=void 0;const n=r(7953),i=r(1543);t.getAllMessages=function*(e){for(const{path:t,operation:r}of(0,i.getAllOperations)(e)){if(!(0,n.isPlainObject)(r))continue;const e=r.message;if((0,n.isPlainObject)(e))if(Array.isArray(e.oneOf))for(const[r,i]of e.oneOf.entries())(0,n.isPlainObject)(i)&&(yield{path:[...t,"message","oneOf",r],message:i});else yield{path:[...t,"message"],message:e}}}},1543:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAllOperations=void 0;const n=r(7953);t.getAllOperations=function*(e){const t=null==e?void 0:e.channels;if(!(0,n.isPlainObject)(t))return{};for(const[e,r]of Object.entries(t))(0,n.isPlainObject)(r)&&((0,n.isPlainObject)(r.subscribe)&&(yield{path:["channels",e,"subscribe"],kind:"subscribe",operation:r.subscribe}),(0,n.isPlainObject)(r.publish)&&(yield{path:["channels",e,"publish"],kind:"publish",operation:r.publish}))}},918:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMissingProps=void 0,t.getMissingProps=function(e=[],t={}){return Object.keys(t).length?e.filter((e=>!Object.prototype.hasOwnProperty.call(t,e))):e}},3874:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRedundantProps=void 0,t.getRedundantProps=function(e=[],t={}){return e.length?Object.keys(t).filter((t=>!e.includes(t))):Object.keys(t)}},7341:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUrlVariables=void 0,t.parseUrlVariables=function(e){if("string"!=typeof e)return[];const t=e.match(/{(.+?)}/g);return t&&0!==t.length?t.map((e=>e.slice(1,-1))):[]}},3326:(e,t,r)=>{"use strict";const n=r(655),i=r(683),o=r(4133),s=(0,n.__importDefault)(r(2613)),a=(0,n.__importDefault)(r(6722)),c=(0,n.__importDefault)(r(3344)),p=(0,n.__importDefault)(r(6567)),u=(0,n.__importDefault)(r(6275)),f=(0,n.__importDefault)(r(2654)),l=(0,n.__importDefault)(r(588)),d=(0,n.__importDefault)(r(490)),h=(0,n.__importDefault)(r(6556)),m=r(9517),y=(0,n.__importDefault)(r(1269));t.Z={documentationUrl:"https://meta.stoplight.io/docs/spectral/docs/reference/asyncapi-rules.md",formats:[i.aas2_0,i.aas2_1,i.aas2_2,i.aas2_3,i.aas2_4],rules:{"asyncapi-channel-no-empty-parameter":{description:"Channel path must not have empty parameter substitution pattern.",recommended:!0,type:"style",given:"$.channels",then:{field:"@key",function:o.pattern,functionOptions:{notMatch:"{}"}}},"asyncapi-channel-no-query-nor-fragment":{description:'Channel path must not include query ("?") or fragment ("#") delimiter.',recommended:!0,type:"style",given:"$.channels",then:{field:"@key",function:o.pattern,functionOptions:{notMatch:"[\\?#]"}}},"asyncapi-channel-no-trailing-slash":{description:"Channel path must not end with slash.",recommended:!0,type:"style",given:"$.channels",then:{field:"@key",function:o.pattern,functionOptions:{notMatch:".+\\/$"}}},"asyncapi-channel-parameters":{description:"Channel parameters must be defined and there must be no redundant parameters.",message:"{{error}}",severity:"error",type:"validation",recommended:!0,given:["$.channels.*","$.components.channels.*"],then:{function:s.default}},"asyncapi-channel-servers":{description:'Channel servers must be defined in the "servers" object.',message:"{{error}}",severity:"error",type:"validation",recommended:!0,given:"$",then:{function:a.default}},"asyncapi-headers-schema-type-object":{description:'Headers schema type must be "object".',message:'Headers schema type must be "object" ({{error}}).',severity:"error",recommended:!0,type:"validation",given:["$.components.messageTraits.*.headers","$.components.messages.*.headers","$.channels.*.[publish,subscribe].message.headers"],then:{function:o.schema,functionOptions:{allErrors:!0,schema:{type:"object",properties:{type:{enum:["object"]}},required:["type"]}}}},"asyncapi-info-contact-properties":{description:'Contact object must have "name", "url" and "email".',recommended:!0,type:"style",given:"$.info.contact",then:[{field:"name",function:o.truthy},{field:"url",function:o.truthy},{field:"email",function:o.truthy}]},"asyncapi-info-contact":{description:'Info object must have "contact" object.',recommended:!0,type:"style",given:"$",then:{field:"info.contact",function:o.truthy}},"asyncapi-info-description":{description:'Info "description" must be present and non-empty string.',recommended:!0,type:"style",given:"$",then:{field:"info.description",function:o.truthy}},"asyncapi-info-license-url":{description:'License object must include "url".',recommended:!1,type:"style",given:"$",then:{field:"info.license.url",function:o.truthy}},"asyncapi-info-license":{description:'Info object must have "license" object.',recommended:!0,type:"style",given:"$",then:{field:"info.license",function:o.truthy}},"asyncapi-message-examples":{description:'Examples of message object should follow by "payload" and "headers" schemas.',message:"{{error}}",severity:"error",type:"validation",recommended:!0,given:["$.channels.*.[publish,subscribe].message","$.channels.*.[publish,subscribe].message.oneOf.*","$.components.channels.*.[publish,subscribe].message","$.components.channels.*.[publish,subscribe].message.oneOf.*","$.components.messages.*","$.channels.*.[publish,subscribe].message.traits.*","$.channels.*.[publish,subscribe].message.oneOf.*.traits.*","$.components.channels.*.[publish,subscribe].message.traits.*","$.components.channels.*.[publish,subscribe].message.oneOf.*.traits.*","$.components.messages.*.traits.*","$.components.messageTraits.*"],then:{function:p.default}},"asyncapi-message-messageId-uniqueness":{description:'"messageId" must be unique across all the messages.',severity:"error",recommended:!0,type:"validation",given:"$",then:{function:u.default}},"asyncapi-operation-description":{description:'Operation "description" must be present and non-empty string.',recommended:!0,type:"style",given:"$.channels[*][publish,subscribe]",then:{field:"description",function:o.truthy}},"asyncapi-operation-operationId-uniqueness":{description:'"operationId" must be unique across all the operations.',severity:"error",recommended:!0,type:"validation",given:"$",then:{function:f.default}},"asyncapi-operation-operationId":{description:'Operation must have "operationId".',severity:"error",recommended:!0,type:"validation",given:"$.channels[*][publish,subscribe]",then:{field:"operationId",function:o.truthy}},"asyncapi-operation-security":{description:"Operation have to reference a defined security schemes.",message:"{{error}}",severity:"error",type:"validation",recommended:!0,given:"$.channels[*][publish,subscribe].security.*",then:{function:y.default,functionOptions:{objectType:"Operation"}}},"asyncapi-parameter-description":{description:'Parameter objects must have "description".',recommended:!1,type:"style",given:["$.components.parameters.*","$.channels.*.parameters.*"],then:{field:"description",function:o.truthy}},"asyncapi-payload-default":{description:"Default must be valid against its defined schema.",message:"{{error}}",severity:"error",recommended:!0,type:"validation",given:["$.components.messageTraits[?(@.schemaFormat === void 0)].payload.default^","$.components.messages[?(@.schemaFormat === void 0)].payload.default^","$.channels[*][publish,subscribe][?(@property === 'message' && @.schemaFormat === void 0)].payload.default^"],then:{function:l.default,functionOptions:{type:"default"}}},"asyncapi-payload-examples":{description:"Examples must be valid against their defined schema.",message:"{{error}}",severity:"error",recommended:!0,type:"validation",given:["$.components.messageTraits[?(@.schemaFormat === void 0)].payload.examples^","$.components.messages[?(@.schemaFormat === void 0)].payload.examples^","$.channels[*][publish,subscribe][?(@property === 'message' && @.schemaFormat === void 0)].payload.examples^"],then:{function:l.default,functionOptions:{type:"examples"}}},"asyncapi-payload-unsupported-schemaFormat":{description:'Message schema validation is only supported with default unspecified "schemaFormat".',severity:"info",recommended:!0,type:"validation",given:["$.components.messageTraits.*","$.components.messages.*","$.channels[*][publish,subscribe].message"],then:{field:"schemaFormat",function:o.undefined}},"asyncapi-payload":{description:"Payloads must be valid against AsyncAPI Schema object.",message:"{{error}}",severity:"error",recommended:!0,type:"validation",given:["$.components.messageTraits[?(@.schemaFormat === void 0)].payload","$.components.messages[?(@.schemaFormat === void 0)].payload","$.channels[*][publish,subscribe][?(@property === 'message' && @.schemaFormat === void 0)].payload"],then:{function:d.default}},"asyncapi-schema-default":{description:"Default must be valid against its defined schema.",message:"{{error}}",severity:"error",recommended:!0,type:"validation",given:["$.components.schemas.*.default^","$.components.parameters.*.schema.default^","$.channels.*.parameters.*.schema.default^"],then:{function:l.default,functionOptions:{type:"default"}}},"asyncapi-schema-examples":{description:"Examples must be valid against their defined schema.",message:"{{error}}",severity:"error",recommended:!0,type:"validation",given:["$.components.schemas.*.examples^","$.components.parameters.*.schema.examples^","$.channels.*.parameters.*.schema.examples^"],then:{function:l.default,functionOptions:{type:"examples"}}},"asyncapi-schema":{description:"Validate structure of AsyncAPI v2 specification.",message:"{{error}}",severity:"error",recommended:!0,type:"validation",given:"$",then:{function:c.default}},"asyncapi-server-variables":{description:"Server variables must be defined and there must be no redundant variables.",message:"{{error}}",severity:"error",type:"validation",recommended:!0,given:["$.servers.*","$.components.servers.*"],then:{function:h.default}},"asyncapi-server-no-empty-variable":{description:"Server URL must not have empty variable substitution pattern.",recommended:!0,type:"style",given:"$.servers[*].url",then:{function:o.pattern,functionOptions:{notMatch:"{}"}}},"asyncapi-server-no-trailing-slash":{description:"Server URL must not end with slash.",recommended:!0,type:"style",given:"$.servers[*].url",then:{function:o.pattern,functionOptions:{notMatch:"/$"}}},"asyncapi-server-not-example-com":{description:"Server URL must not point at example.com.",recommended:!1,type:"style",given:"$.servers[*].url",then:{function:o.pattern,functionOptions:{notMatch:"example\\.com"}}},"asyncapi-server-security":{description:"Server have to reference a defined security schemes.",message:"{{error}}",severity:"error",type:"validation",recommended:!0,given:"$.servers.*.security.*",then:{function:y.default,functionOptions:{objectType:"Server"}}},"asyncapi-servers":{description:'AsyncAPI object must have non-empty "servers" object.',recommended:!0,type:"validation",given:"$",then:{field:"servers",function:o.schema,functionOptions:{schema:{type:"object",minProperties:1},allErrors:!0}}},"asyncapi-tag-description":{description:'Tag object must have "description".',recommended:!1,type:"style",given:"$.tags[*]",then:{field:"description",function:o.truthy}},"asyncapi-tags-alphabetical":{description:'AsyncAPI object must have alphabetical "tags".',recommended:!1,type:"style",given:"$",then:{field:"tags",function:o.alphabetical,functionOptions:{keyedBy:"name"}}},"asyncapi-tags-uniqueness":{description:"Each tag must have a unique name.",message:"{{error}}",severity:"error",recommended:!0,type:"validation",given:["$.tags","$.channels.*.[publish,subscribe].tags","$.components.channels.*.[publish,subscribe].tags","$.channels.*.[publish,subscribe].traits.*.tags","$.components.channels.*.[publish,subscribe].traits.*.tags","$.components.operationTraits.*.tags","$.channels.*.[publish,subscribe].message.tags","$.channels.*.[publish,subscribe].message.oneOf.*.tags","$.components.channels.*.[publish,subscribe].message.tags","$.components.channels.*.[publish,subscribe].message.oneOf.*.tags","$.components.messages.*.tags","$.channels.*.[publish,subscribe].message.traits.*.tags","$.channels.*.[publish,subscribe].message.oneOf.*.traits.*.tags","$.components.channels.*.[publish,subscribe].message.traits.*.tags","$.components.channels.*.[publish,subscribe].message.oneOf.*.traits.*.tags","$.components.messages.*.traits.*.tags","$.components.messageTraits.*.tags"],then:{function:m.uniquenessTags}},"asyncapi-tags":{description:'AsyncAPI object must have non-empty "tags" array.',recommended:!0,type:"style",given:"$",then:{field:"tags",function:o.truthy}},"asyncapi-unused-components-schema":{description:"Potentially unused components schema has been detected.",recommended:!0,type:"style",resolved:!1,given:"$.components.schemas",then:{function:o.unreferencedReusableObject,functionOptions:{reusableObjectsLocation:"#/components/schemas"}}},"asyncapi-unused-components-server":{description:"Potentially unused components server has been detected.",recommended:!0,type:"style",resolved:!1,given:"$.components.servers",then:{function:o.unreferencedReusableObject,functionOptions:{reusableObjectsLocation:"#/components/servers"}}}}}},9517:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniquenessTags=void 0;const n=(0,r(655).__importDefault)(r(9234));Object.defineProperty(t,"uniquenessTags",{enumerable:!0,get:function(){return n.default}})},9234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(309);t.default=(0,n.createRulesetFunction)({input:{type:"array",items:{type:"object",properties:{name:{type:"string"}},required:["name"]}},options:null},(function(e,t,r){const n=e.map((e=>e.name)).reduce(((e,t,r,n)=>(n.indexOf(t)!==r&&e.push(r),e)),[]);if(0===n.length)return[];const i=[];for(const t of n){const n=e[t].name;i.push({message:`"tags" object contains duplicate tag name "${n}".`,path:[...r.path,t,"name"]})}return i}))},9358:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_REQUEST_OPTIONS=void 0;const n=(0,r(655).__importDefault)(r(3300));t.DEFAULT_REQUEST_OPTIONS={},t.default=async(e,r={})=>(0,n.default)(e,{...r,...t.DEFAULT_REQUEST_OPTIONS})},1403:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_REQUEST_OPTIONS=t.fetch=void 0;const n=r(655);(0,n.__exportStar)(r(3309),t);var i=r(9358);Object.defineProperty(t,"fetch",{enumerable:!0,get:function(){return(0,n.__importDefault)(i).default}}),Object.defineProperty(t,"DEFAULT_REQUEST_OPTIONS",{enumerable:!0,get:function(){return i.DEFAULT_REQUEST_OPTIONS}}),(0,n.__exportStar)(r(3336),t)},3336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readParsable=t.readFile=void 0;const n=r(655),i=r(5966),o=(0,n.__importDefault)(r(8599)),s=(0,n.__importStar)(r(1872)),a=r(6486),c=(0,n.__importDefault)(r(9358)),p=r(8842);async function u(e,t){if((0,i.isURL)(e)){let r,n=null;try{const i={};if(i.agent=t.agent,void 0!==t.timeout){const e=new o.default;n=setTimeout((()=>{e.abort()}),t.timeout),i.signal=e.signal}if(r=await(0,c.default)(e,i),!r.ok)throw new Error(r.statusText);return await r.text()}catch(e){throw(0,a.isError)(e)&&"AbortError"===e.name?new Error("Timeout"):e}finally{null!==n&&clearTimeout(n)}}else try{return await new Promise(((r,n)=>{s.readFile(e,t.encoding,((e,t)=>{null!==e?n(e):r(t)}))}))}catch(t){throw new Error(`Could not read ${e}: ${(0,p.printError)(t)}`)}}t.readFile=u,t.readParsable=async function(e,t){try{return await u(e,t)}catch(t){throw new Error(`Could not parse ${e}: ${(0,p.printError)(t)}`)}}},7699:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeSegmentFragment=void 0;const n=r(7953);t.decodeSegmentFragment=function(e){return"string"!=typeof e?String(e):(0,n.decodePointerFragment)(e)}},3309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);(0,n.__exportStar)(r(7699),t),(0,n.__exportStar)(r(8842),t),(0,n.__exportStar)(r(8067),t),(0,n.__exportStar)(r(3115),t),(0,n.__exportStar)(r(5514),t)},8842:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printError=void 0;const n=r(6486);t.printError=function(e){return(0,n.isError)(e)?e.message:"unknown error"}},8067:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printPath=t.PrintStyle=void 0;const n=r(7953);var i;!function(e){e.Dot="dot",e.Pointer="pointer",e.EscapedPointer="escapedPointer"}(i=t.PrintStyle||(t.PrintStyle={}));const o=e=>"number"==typeof e?e:(0,n.decodePointerFragment)(e);t.printPath=(e,t)=>{switch(t){case i.Dot:return(0,n.decodePointerFragment)((e=>e.reduce(((e,t,r)=>{var n;return`${e}${null!==(n=(e=>{return"number"==typeof e?`[${e}]`:0===e.length?"['']":/\s/.test(e)?`['${e}']`:"number"!=typeof(t=e)&&Number.isNaN(Number(t))?null:`[${e}]`;var t})(t))&&void 0!==n?n:`${0===r?"":"."}${t}`}`}),""))(e));case i.Pointer:return 0===e.length?"#":`#/${(0,n.decodePointerFragment)(e.join("/"))}`;case i.EscapedPointer:return(0,n.pathToPointer)(e.map(o));default:return String(e)}}},3115:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printValue=void 0;const n=r(6486),i=r(7953);t.printValue=function(e){return void 0===e?"undefined":(0,n.isObject)(e)?Array.isArray(e)?"Array[]":e instanceof RegExp?String(e.source):!(0,i.isPlainObject)(e)&&"constructor"in e&&"string"==typeof e.constructor.name?e.constructor.name:"Object{}":JSON.stringify(e)}},5514:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClosestJsonPath=t.safePointerToPath=t.getEndRef=t.traverseObjUntilRef=t.isAbsoluteRef=t.startsWithProtocol=void 0;const n=r(7953),i=r(5966),o=r(6486),s=/^[a-z]+:\/\//i;t.startsWithProtocol=e=>s.test(e),t.isAbsoluteRef=e=>(0,i.isAbsolute)(e)||(0,t.startsWithProtocol)(e),t.traverseObjUntilRef=(e,t)=>{let r=e;for(const e of t.slice()){if(!(0,o.isObject)(r))throw new TypeError("Segment is not a part of the object");if(!(e in r)){if((0,n.hasRef)(r))return r.$ref;throw new Error("Segment is not a part of the object")}r=r[e],t.shift()}return(0,n.isPlainObject)(r)&&(0,n.hasRef)(r)&&1===Object.keys(r).length?r.$ref:null},t.getEndRef=(e,t)=>{for(;t in e;)t=e[t];return t},t.safePointerToPath=e=>{const t=(0,n.extractPointerFromRef)(e);return null!==t?(0,n.pointerToPath)(t):[]},t.getClosestJsonPath=(e,t)=>{const r=[];if(!(0,o.isObject)(e))return r;let n=e;for(const e of t){if(!(0,o.isObject)(n)||!(e in n))break;r.push(e),n=n[e]}return r}},3694:(e,t)=>{"use strict";var r;t.__esModule=!0,(r=t.DiagnosticSeverity||(t.DiagnosticSeverity={}))[r.Error=0]="Error",r[r.Warning=1]="Warning",r[r.Information=2]="Information",r[r.Hint=3]="Hint"},8050:(e,t)=>{"use strict";var r;t.__esModule=!0,(r=t.HttpParamStyles||(t.HttpParamStyles={})).Simple="simple",r.Matrix="matrix",r.Label="label",r.Form="form",r.CommaDelimited="commaDelimited",r.SpaceDelimited="spaceDelimited",r.PipeDelimited="pipeDelimited",r.DeepObject="deepObject"},4418:(e,t,r)=>{"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}t.__esModule=!0,n(r(8050)),n(r(6165)),n(r(3694)),n(r(5085))},6165:(e,t)=>{"use strict";t.__esModule=!0},5085:(e,t)=>{"use strict";var r,n;t.__esModule=!0,(n=t.NodeType||(t.NodeType={})).Article="article",n.HttpService="http_service",n.HttpServer="http_server",n.HttpOperation="http_operation",n.Model="model",n.Generic="generic",n.Unknown="unknown",n.TableOfContents="table_of_contents",n.SpectralRuleset="spectral_ruleset",(r=t.NodeFormat||(t.NodeFormat={})).Json="json",r.Markdown="markdown",r.Yaml="yaml"},4369:(e,t)=>{"use strict";function r(e){return null==e}Object.defineProperty(t,"__esModule",{value:!0}),t.isNothing=r,t.isObject=function(e){return"object"==typeof e&&null!==e},t.toArray=function(e){return Array.isArray(e)?e:r(e)?[]:[e]},t.extend=function(e,t){var r,n,i,o;if(t)for(r=0,n=(o=Object.keys(t)).length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4369),i=r(4057),o=r(8707),s=r(1225),a=Object.prototype.toString,c=Object.prototype.hasOwnProperty,p={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},u=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function f(e){var t,r,o;if(t=e.toString(16).toUpperCase(),e<=255)r="x",o=2;else if(e<=65535)r="u",o=4;else{if(!(e<=4294967295))throw new i("code point within a string may not be greater than 0xFFFFFFFF");r="U",o=8}return"\\"+r+n.repeat("0",o-t.length)+t}function l(e){this.schema=e.schema||o,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=n.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,i,o,s,a,p;if(null===t)return{};for(r={},i=0,o=(n=Object.keys(t)).length;i-1&&r>=e.flowLevel;switch(function(e,t,r,n,i){var o,s,a,c,p=!1,u=!1,f=-1!==n,l=-1,d=y(c=e.charCodeAt(0))&&65279!==c&&!m(c)&&45!==c&&63!==c&&58!==c&&44!==c&&91!==c&&93!==c&&123!==c&&125!==c&&35!==c&&38!==c&&42!==c&&33!==c&&124!==c&&61!==c&&62!==c&&39!==c&&34!==c&&37!==c&&64!==c&&96!==c&&!m(e.charCodeAt(e.length-1));if(t)for(o=0;o0?e.charCodeAt(o-1):null,d=d&&g(s,a)}else{for(o=0;on&&" "!==e[l+1],l=o);else if(!y(s))return 5;a=o>0?e.charCodeAt(o-1):null,d=d&&g(s,a)}u=u||f&&o-l-1>n&&" "!==e[l+1]}return p||u?r>9&&v(e)?5:u?4:3:d&&!i(e)?1:2}(t,a,e.indent,s,(function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r"+j(t,e.indent)+$(d(function(e,t){for(var r,n,i,o=/(\n+)([^\n]*)/g,s=(i=-1!==(i=e.indexOf("\n"))?i:e.length,o.lastIndex=i,_(e.slice(0,i),t)),a="\n"===e[0]||" "===e[0];n=o.exec(e);){var c=n[1],p=n[2];r=" "===p[0],s+=c+(a||r||""===p?"":"\n")+_(p,t),a=r}return s}(t,s),o));case 5:return'"'+function(e){for(var t,r,n,i="",o=0;o=55296&&t<=56319&&(r=e.charCodeAt(o+1))>=56320&&r<=57343?(i+=f(1024*(t-55296)+r-56320+65536),o++):i+=!(n=p[t])&&y(t)?e[o]:n||f(t);return i}(t)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function j(e,t){var r=v(e)?String(t):"",n="\n"===e[e.length-1];return r+(!n||"\n"!==e[e.length-2]&&"\n"!==e?n?"":"-":"+")+"\n"}function $(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function _(e,t){if(""===e||" "===e[0])return e;for(var r,n,i=/ [^ ]/g,o=0,s=0,a=0,c="";r=i.exec(e);)(a=r.index)-o>t&&(n=s>o?s:a,c+="\n"+e.slice(o,n),o=n+1),s=a;return c+="\n",e.length-o>t&&s>o?c+=e.slice(o,s)+"\n"+e.slice(s+1):c+=e.slice(o),c.slice(1)}function x(e,t,r){var n,o,s,p,u,f;for(s=0,p=(o=r?e.explicitTypes:e.implicitTypes).length;s tag resolver accepts not "'+f+'" style');n=u.represent[f](t,f)}e.dump=n}return!0}return!1}function P(e,t,r,n,o,s){e.tag=null,e.dump=r,x(e,r,!1)||x(e,r,!0);var c=a.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var p,u,f="[object Object]"===c||"[object Array]"===c;if(f&&(u=-1!==(p=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||u||2!==e.indent&&t>0)&&(o=!1),u&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(f&&u&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),"[object Object]"===c)n&&0!==Object.keys(e.dump).length?(function(e,t,r,n){var o,s,a,c,p,u,f="",l=e.tag,d=Object.keys(r);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new i("sortKeys must be a boolean or a function");for(o=0,s=d.length;o1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,p&&(u+=h(e,t)),P(e,t+1,c,!0,p)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",f+=u+=e.dump));e.tag=l,e.dump=f||"{}"}(e,t,e.dump,o),u&&(e.dump="&ref_"+p+e.dump)):(function(e,t,r){var n,i,o,s,a,c="",p=e.tag,u=Object.keys(r);for(n=0,i=u.length;n1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),P(e,t,s,!1,!1)&&(c+=a+=e.dump));e.tag=p,e.dump="{"+c+"}"}(e,t,e.dump),u&&(e.dump="&ref_"+p+" "+e.dump));else if("[object Array]"===c){var l=e.noArrayIndent&&t>0?t-1:t;n&&0!==e.dump.length?(function(e,t,r,n){var i,o,s="",a=e.tag;for(i=0,o=r.length;i "+e.dump)}return!0}function w(e,t){var r,n,i=[],o=[];for(S(e,i,o),r=0,n=o.length;r{"use strict";class t{constructor(e,t=null,r=!1){this.name="YAMLException",this.reason=e,this.mark=t,this.message=this.toString(!1),this.isWarning=r}static isInstance(e){if(null!=e&&e.getClassIdentifier&&"function"==typeof e.getClassIdentifier)for(let r of e.getClassIdentifier())if(r==t.CLASS_IDENTIFIER)return!0;return!1}getClassIdentifier(){return[].concat(t.CLASS_IDENTIFIER)}toString(e=!1){var t;return t="JS-YAML: "+(this.reason||"(unknown reason)"),!e&&this.mark&&(t+=" "+this.mark.toString()),t}}t.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",e.exports=t},9581:(e,t,r)=>{"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0});var i=r(5519);t.load=i.load,t.loadAll=i.loadAll,t.safeLoad=i.safeLoad,t.safeLoadAll=i.safeLoadAll;var o=r(4991);t.dump=o.dump,t.safeDump=o.safeDump,t.YAMLException=r(4057),n(r(3382)),n(r(6133))},5519:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3382),i=r(4369),o=r(4057),s=r(3887),a=r(1225),c=r(8707);var p=Object.prototype.hasOwnProperty,u=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=/[\x85\u2028\u2029]/,l=/[,\[\]\{\}]/,d=/^(?:!|!!|![a-z\-]+!)$/i,h=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function m(e){return 10===e||13===e}function y(e){return 9===e||32===e}function g(e){return 9===e||32===e||10===e||13===e}function v(e){return 44===e||91===e||93===e||123===e||125===e}function b(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function j(e){return 120===e?2:117===e?4:85===e?8:0}function $(e){return 48<=e&&e<=57?e-48:-1}function _(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var x,P=new Array(256),w=new Array(256),S=new Array(256),O=new Array(256),E=0;E<256;E++)O[E]=w[E]=48===(x=E)?"\0":97===x?"":98===x?"\b":116===x||9===x?"\t":110===x?"\n":118===x?"\v":102===x?"\f":114===x?"\r":101===x?"":32===x?" ":34===x?'"':47===x?"/":92===x?"\\":78===x?"…":95===x?" ":76===x?"\u2028":80===x?"\u2029":"",P[E]=w[E]?1:0,S[E]=1,P[E]||(O[E]="\\"+String.fromCharCode(E));class A{constructor(e,t){this.errorMap={},this.errors=[],this.lines=[],this.input=e,this.filename=t.filename||null,this.schema=t.schema||c,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.allowAnyEscape=t.allowAnyEscape||!1,this.ignoreDuplicateKeys=t.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}}function I(e,t,r=!1){return new o(t,new s(e.filename,e.input,e.position,e.line,e.position-e.lineStart),r)}function T(e,t,r,n=!1,i=!1){var a=function(e,t){for(var r,n=0;nt);n++)r=e.lines[n];return r||{start:0,line:0}}(e,t);if(a){var c=r+t;if(!e.errorMap[c]){var p=new s(e.filename,e.input,t,a.line,t-a.start);i&&(p.toLineEnd=!0);var u=new o(r,p,n);e.errors.push(u)}}}function k(e,t){var r=I(e,t),n=r.message+r.mark.position;if(!e.errorMap[n]){e.errors.push(r),e.errorMap[n]=1;for(var i=e.position;;){if(e.position>=e.input.length-1)return;var o=e.input.charAt(e.position);if("\n"==o)return e.position--,void(e.position==i&&(e.position+=1));if("\r"==o)return e.position--,void(e.position==i&&(e.position+=1));e.position++}}}function R(e,t){var r=I(e,t);e.onWarning&&e.onWarning.call(null,r)}var D={YAML:function(e,t,r){var n,i,o;null!==e.version&&k(e,"duplication of %YAML directive"),1!==r.length&&k(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&k(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),o=parseInt(n[2],10),1!==i&&k(e,"found incompatible YAML document (version 1.2 is required)"),e.version=r[0],e.checkLineBreaks=o<2,2!==o&&k(e,"found incompatible YAML document (version 1.2 is required)")},TAG:function(e,t,r){var n,i;2!==r.length&&k(e,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],d.test(n)||k(e,"ill-formed tag handle (first argument) of the TAG directive"),p.call(e.tagMap,n)&&k(e,'there is a previously declared suffix for "'+n+'" tag handle'),h.test(i)||k(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[n]=i}};function C(e,t,r,n){var i,o,s,a,c=e.result;if(-1==c.startPosition&&(c.startPosition=t),t<=r){if(a=e.input.slice(t,r),n)for(i=0,o=a.length;i{t.key&&t.key.value===(s.key&&s.key.value)&&(T(e,s.key.startPosition,"duplicate key"),T(e,t.key.startPosition,"duplicate key"))})),t.mappings.push(s),t.endPosition=o?o.endPosition:i.endPosition+1,t}}function N(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):k(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function M(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);0!==i;){for(;y(i);)9===i&&e.errors.push(I(e,"Using tabs can lead to unpredictable results",!0)),i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!m(i))break;for(N(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent1&&(t.value+=i.repeat("\n",r-1))}function L(e,t){var r,i,o=e.tag,s=e.anchor,a=n.newItems(),c=!1;for(null!==e.anchor&&(a.anchorId=e.anchor,e.anchorMap[e.anchor]=a),a.startPosition=e.position,i=e.input.charCodeAt(e.position);0!==i&&45===i&&g(e.input.charCodeAt(e.position+1));)if(c=!0,e.position++,M(e,!0,-1)&&e.lineIndent<=t)a.items.push(null),i=e.input.charCodeAt(e.position);else if(r=e.line,V(e,t,3,!1,!0),e.result&&(e.result.parent=a,a.items.push(e.result)),M(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==i)k(e,"bad indentation of a sequence entry");else if(e.lineIndentt?E=1:e.lineIndent===t?E=0:e.lineIndentt?E=1:e.lineIndent===t?E=0:e.lineIndent0;)if(m(a=e.input.charCodeAt(--e.position))){e.position++;break}}}else 63===a?(d&&(F(e,u,0,f,null),f=l=null),h=!0,d=!0,o=!0):d?(d=!1,o=!0):k(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,a=i;if((e.line===s||e.lineIndent>t)&&(V(e,t,4,!0,o)&&(d?f=e.result:l=e.result),d||(F(e,u,0,f,l),f=l=null),M(e,!0,-1),a=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==a)k(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===s?k(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):p?k(e,"repeat of an indentation width identifier"):(u=t+s-1,p=!0)}if(y(a)){do{a=e.input.charCodeAt(++e.position)}while(y(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!m(a)&&0!==a)}for(;0!==a;){for(N(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!p||e.lineIndentu&&(u=e.lineIndent),m(a))f++;else{if(e.lineIndent0){for(o=a,s=0;o>0;o--)(a=b(c=e.input.charCodeAt(++e.position)))>=0?s=(s<<4)+a:k(e,"expected hexadecimal character");p.value+=_(s),e.position++}else k(e,"unknown escape sequence");r=i=e.position}else m(c)?(C(e,r,i,!0),U(0,p,M(e,!1,t)),r=i=e.position):e.position===e.lineStart&&q(e)?k(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}k(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?I=!0:function(e){var t,r,i;if(e.length,e.input,42!==(i=e.input.charCodeAt(e.position)))return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!g(i)&&!v(i);)i=e.input.charCodeAt(++e.position);return e.position<=t&&(k(e,"name of an alias node must contain at least one character"),e.position=t+1),r=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(r)||(k(e,'unidentified alias "'+r+'"'),e.position<=t&&(e.position=t+1)),e.result=n.newAnchorRef(r,t,e.position,e.anchorMap[r]),M(e,!0,-1),!0}(e)?(I=!0,null===e.tag&&null===e.anchor||k(e,"alias node should not have any properties")):function(e,t,r){var i,o,s,a,c,p,u,f,l=e.kind,d=e.result,h=n.newScalar();if(h.plainScalar=!0,e.result=h,g(f=e.input.charCodeAt(e.position))||v(f)||35===f||38===f||42===f||33===f||124===f||62===f||39===f||34===f||37===f||64===f||96===f)return!1;if((63===f||45===f)&&(g(i=e.input.charCodeAt(e.position+1))||r&&v(i)))return!1;for(e.kind="scalar",o=s=e.position,a=!1;0!==f;){if(58===f){if(g(i=e.input.charCodeAt(e.position+1))||r&&v(i))break}else if(35===f){if(g(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&q(e)||r&&v(f))break;if(m(f)){if(c=e.line,p=e.lineStart,u=e.lineIndent,M(e,!1,-1),e.lineIndent>=t){a=!0,f=e.input.charCodeAt(e.position);continue}e.position=s,e.line=c,e.lineStart=p,e.lineIndent=u;break}}if(a&&(C(e,o,s,!1),U(0,h,e.line-c),o=s=e.position,a=!1),y(f)||(s=e.position+1),f=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return C(e,o,s,!1),-1!=e.result.startPosition?(h.rawValue=e.input.substring(h.startPosition,h.endPosition),!0):(e.kind=l,e.result=d,!1)}(e,h,1===r)&&(I=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result,e.result.anchorId=e.anchor)):0===E&&(I=u&&L(e,x))),null!==e.tag&&"!"!==e.tag)if("!include"==e.tag)e.result||(e.result=n.newScalar(),e.result.startPosition=e.position,e.result.endPosition=e.position,k(e,"!include without value")),e.result.kind=n.Kind.INCLUDE_REF;else if("?"===e.tag)for(f=0,l=e.implicitTypes.length;f tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result)?(e.result=d.construct(e.result),null!==e.anchor&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result)):k(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):T(e,R,"unknown tag <"+e.tag+">",!1,!0);return null!==e.tag||null!==e.anchor||I}function H(e){var t,r,n,i,o=e.position,s=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(i=e.input.charCodeAt(e.position))&&(M(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(s=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!g(i);)i=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&k(e,"directive name must not be less than one character in length");0!==i;){for(;y(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!m(i));break}if(m(i))break;for(t=e.position;0!==i&&!g(i);)i=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==i&&N(e),p.call(D,r)?D[r](e,r,n):(R(e,'unknown document directive "'+r+'"'),e.position++)}M(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,M(e,!0,-1)):s&&k(e,"directives end mark is expected"),V(e,e.lineIndent-1,4,!1,!0),M(e,!0,-1),e.checkLineBreaks&&f.test(e.input.slice(o,e.position))&&R(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&q(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,M(e,!0,-1)):e.position0&&(o[s-1].endPosition=r);for(let e of o)e.errors=n.errors,e.startPosition>e.endPosition&&(e.startPosition=e.endPosition);return o}function G(e,t,r={}){var n,i,o=K(e,r);for(n=0,i=o.length;n{"use strict";const n=r(4369);e.exports=class{constructor(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}getSnippet(e=0,t=75){var r,i,o,s,a;if(!this.buffer)return null;for(e=e||4,t=t||75,r="",i=this.position;i>0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>t/2-1){r=" ... ",i+=5;break}for(o="",s=this.position;st/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),n.repeat(" ",e)+r+a+o+"\n"+n.repeat(" ",e+this.position-i+r.length)+"^"}toString(e=!0){var t,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(r+=":\n"+t),r}}},6133:(e,t)=>{"use strict";function r(e){const t=function(e){return 0===e.lastIndexOf("0o",0)?parseInt(e.substring(2),8):parseInt(e)}(e);if(Number.isNaN(t))throw`Invalid integer "${e}"`;return t}var n;Object.defineProperty(t,"__esModule",{value:!0}),t.parseYamlBoolean=function(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw`Invalid boolean "${e}"`},t.parseYamlInteger=r,t.parseYamlBigInteger=function(e){const t=r(e);return t>Number.MAX_SAFE_INTEGER&&-1===e.lastIndexOf("0o",0)?BigInt(e):t},t.parseYamlFloat=function(e){if([".nan",".NaN",".NAN"].lastIndexOf(e)>=0)return NaN;const t=/^([-+])?(?:\.inf|\.Inf|\.INF)$/.exec(e);if(t)return"-"===t[1]?-1/0:1/0;const r=parseFloat(e);if(!isNaN(r))return r;throw`Invalid float "${e}"`},function(e){e[e.null=0]="null",e[e.bool=1]="bool",e[e.int=2]="int",e[e.float=3]="float",e[e.string=4]="string"}(n=t.ScalarType||(t.ScalarType={})),t.determineScalarType=function(e){if(void 0===e)return n.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return n.string;const t=e.value;return["null","Null","NULL","~",""].indexOf(t)>=0||null==t?n.null:["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0?n.bool:/^[-+]?[0-9]+$/.test(t)||/^0o[0-7]+$/.test(t)||/^0x[0-9a-fA-F]+$/.test(t)?n.int:/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/.test(t)||/^[-+]?(\.inf|\.Inf|\.INF)$/.test(t)||[".nan",".NaN",".NAN"].indexOf(t)>=0?n.float:n.string}},3463:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4369),i=r(4057),o=r(7947);function s(e,t,r){var n=[];return e.include.forEach((function(e){r=s(e,t,r)})),e[t].forEach((function(e){r.forEach((function(t,r){t.tag===e.tag&&n.push(r)})),r.push(e)})),r.filter((function(e,t){return-1===n.indexOf(t)}))}class a{constructor(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach((function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=s(this,"implicit",[]),this.compiledExplicit=s(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,r={};function n(e){r[e.tag]=e}for(e=0,t=arguments.length;e{"use strict";const n=r(3463);e.exports=new n.Schema({include:[r(6315)]})},8707:(e,t,r)=>{"use strict";const n=r(3463);var i=new n.Schema({include:[r(1225)],explicit:[r(389),r(3592)]});n.Schema.DEFAULT=i,e.exports=i},1225:(e,t,r)=>{"use strict";var n=new(r(3463).Schema)({include:[r(8644)],implicit:[r(5973),r(5665)],explicit:[r(7841),r(8364),r(7064),r(2978)]});e.exports=n},9215:(e,t,r)=>{"use strict";const n=r(3463);e.exports=new n.Schema({explicit:[r(8930),r(7017),r(3865)]})},6315:(e,t,r)=>{"use strict";const n=r(3463);e.exports=new n.Schema({include:[r(9215)],implicit:[r(82),r(7586),r(583),r(6109)]})},7947:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4057);var i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];t.Type=class{constructor(e,t){var r,s;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===i.indexOf(t))throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(r=t.styleAliases||null,s={},null!==r&&Object.keys(r).forEach((function(e){r[e].forEach((function(t){s[String(t)]=e}))})),s),-1===o.indexOf(this.kind))throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}},7841:(e,t,r)=>{"use strict";var n=r(8764).lW;const i=r(7947);var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new i.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,i=e.length,s=o;for(r=0;r64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,i=e.replace(/[\r\n=]/g,""),s=i.length,a=o,c=0,p=[];for(t=0;t>16&255),p.push(c>>8&255),p.push(255&c)),c=c<<6|a.indexOf(i.charAt(t));return 0==(r=s%4*6)?(p.push(c>>16&255),p.push(c>>8&255),p.push(255&c)):18===r?(p.push(c>>10&255),p.push(c>>2&255)):12===r&&p.push(c>>4&255),n?new n(p):p},predicate:function(e){return n&&n.isBuffer(e)},represent:function(e){var t,r,n="",i=0,s=e.length,a=o;for(t=0;t>18&63],n+=a[i>>12&63],n+=a[i>>6&63],n+=a[63&i]),i=(i<<8)+e[t];return 0==(r=s%3)?(n+=a[i>>18&63],n+=a[i>>12&63],n+=a[i>>6&63],n+=a[63&i]):2===r?(n+=a[i>>10&63],n+=a[i>>4&63],n+=a[i<<2&63],n+=a[64]):1===r&&(n+=a[i>>2&63],n+=a[i<<4&63],n+=a[64],n+=a[64]),n}})},7586:(e,t,r)=>{"use strict";const n=r(7947);e.exports=new n.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},6109:(e,t,r)=>{"use strict";const n=r(4369),i=r(7947);var o=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");e.exports=new i.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!!o.test(e)},construct:function(e){var t,r,n,i;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,i=[],0<="+-".indexOf(t[0])&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:0<=t.indexOf(":")?(t.split(":").forEach((function(e){i.unshift(parseFloat(e,10))})),t=0,n=1,i.forEach((function(e){t+=e*n,n*=60})),r*t):r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(0!=e%1||n.isNegativeZero(e))},represent:function(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(e))return"-0.0";return e.toString(10)},defaultStyle:"lowercase"})},583:(e,t,r)=>{"use strict";const n=r(4369),i=r(7947);function o(e){return 48<=e&&e<=55}function s(e){return 48<=e&&e<=57}e.exports=new i.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=e.length,i=0,a=!1;if(!n)return!1;if("-"!==(t=e[i])&&"+"!==t||(t=e[++i]),"0"===t){if(i+1===n)return!0;if("b"===(t=e[++i])){for(i++;i{"use strict";const n=r(7947);e.exports=new n.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";if("/"===t[0]){if(r&&(n=r[1]),n.length>3)return!1;if("/"!==t[t.length-n.length-1])return!1;t=t.slice(1,t.length-n.length-1)}try{return new RegExp(t,n),!0}catch(e){return!1}},construct:function(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return"/"===t[0]&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},389:(e,t,r)=>{"use strict";const n=r(7947);e.exports=new n.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}})},3865:(e,t,r)=>{"use strict";const n=r(7947);e.exports=new n.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},5665:(e,t,r)=>{"use strict";const n=r(7947);e.exports=new n.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},82:(e,t,r)=>{"use strict";const n=r(7947);e.exports=new n.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},8364:(e,t,r)=>{"use strict";const n=r(7947);var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=new n.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,s,a,c=[],p=e;for(t=0,r=p.length;t{"use strict";const n=r(7947),i=r(3382);var o=Object.prototype.toString;e.exports=new n.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;if(e.kind!=i.Kind.SEQ)return!1;var t,r,n,s=e.items;for(t=0,r=s.length;t{"use strict";const n=r(7947);e.exports=new n.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},2978:(e,t,r)=>{"use strict";const n=r(7947),i=r(3382);Object.prototype.hasOwnProperty,e.exports=new n.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){return null===e||e.kind==i.Kind.MAP},construct:function(e){return null!==e?e:{}}})},8930:(e,t,r)=>{"use strict";const n=r(7947);e.exports=new n.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},5973:(e,t,r)=>{"use strict";const n=r(7947);var i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");e.exports=new n.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&null!==i.exec(e)},construct:function(e){var t,r,n,o,s,a,c,p,u=0,f=null;if(null===(t=i.exec(e)))throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(r,n,o));if(s=+t[4],a=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(f=-f)),p=new Date(Date.UTC(r,n,o,s,a,c,u)),f&&p.setTime(p.getTime()-f),p},instanceOf:Date,represent:function(e){return e.toISOString()}})},3382:(e,t)=>{"use strict";var r;function n(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:r.SEQ,parent:null}}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.SCALAR=0]="SCALAR",e[e.MAPPING=1]="MAPPING",e[e.MAP=2]="MAP",e[e.SEQ=3]="SEQ",e[e.ANCHOR_REF=4]="ANCHOR_REF",e[e.INCLUDE_REF=5]="INCLUDE_REF"}(r=t.Kind||(t.Kind={})),t.newMapping=function(e,t){var n=t?t.endPosition:e.endPosition+1;return{key:e,value:t,startPosition:e.startPosition,endPosition:n,kind:r.MAPPING,parent:null,errors:[]}},t.newAnchorRef=function(e,t,n,i){return{errors:[],referencesAnchor:e,value:i,startPosition:t,endPosition:n,kind:r.ANCHOR_REF,parent:null}},t.newScalar=function(e=""){const t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:r.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return"string"!=typeof e&&(t.valueObject=e),t},t.newItems=n,t.newSeq=function(){return n()},t.newMap=function(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:r.MAP,parent:null}}},1728:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(517),i=r(4042);t.buildJsonPath=function(e){const t=[];let r=e;for(;e;){switch(e.kind){case n.Kind.SCALAR:t.unshift(e.value);break;case n.Kind.MAPPING:r!==e.key&&(t.length>0&&i.isObject(e.value)&&e.value.value===t[0]?t[0]=e.key.value:t.unshift(e.key.value));break;case n.Kind.SEQ:if(r){const i=e.items.indexOf(r);r.kind===n.Kind.SCALAR?t[0]=i:-1!==i&&t.unshift(i)}}r=e,e=e.parent}return t}},1919:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(517),i=r(4042);t.dereferenceAnchor=(e,r)=>{if(!i.isObject(e))return e;if(e.kind===n.Kind.ANCHOR_REF&&e.referencesAnchor===r)return null;switch(e.kind){case n.Kind.MAP:return Object.assign({},e,{mappings:e.mappings.map((e=>t.dereferenceAnchor(e,r)))});case n.Kind.SEQ:return Object.assign({},e,{items:e.items.map((e=>t.dereferenceAnchor(e,r)))});case n.Kind.MAPPING:return Object.assign({},e,{value:t.dereferenceAnchor(e.value,r)});case n.Kind.SCALAR:return e;case n.Kind.ANCHOR_REF:return i.isObject(e.value)&&o(e)?null:e;default:return e}};const o=e=>{const{referencesAnchor:t}=e;let r=e;for(;r=r.parent;)if("anchorId"in r&&r.anchorId===t)return!0;return!1}},9169:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1728),i=r(517),o=r(4042);function s(e,t,r){const n=r[t-1]+1,o=r[t];switch(e.kind){case i.Kind.MAPPING:return e.key;case i.Kind.MAP:if(0!==e.mappings.length)for(const i of e.mappings)if(i.startPosition>n&&i.startPosition<=o)return s(i,t,r);break;case i.Kind.SEQ:if(0!==e.items.length)for(const i of e.items)if(null!==i&&i.startPosition>n&&i.startPosition<=o)return s(i,t,r)}return e}function a(e,t,r,n){for(const s of function*(e){switch(e.kind){case i.Kind.MAP:if(0!==e.mappings.length)for(const t of e.mappings)o.isObject(t)&&(yield t);break;case i.Kind.MAPPING:o.isObject(e.key)&&(yield e.key),o.isObject(e.value)&&(yield e.value);break;case i.Kind.SEQ:if(0!==e.items.length)for(const t of e.items)o.isObject(t)&&(yield t);break;case i.Kind.SCALAR:yield e}}(e))if(s.startPosition<=t&&t<=s.endPosition)return s.kind===i.Kind.SCALAR?s:a(s,t,r,n);if(n[r-1]===n[r]-1)return e;if(e.startPosition{if(r>=t.length||i>=t[r])return;const s=0===r?0:t[r-1]+1,c=a(e,Math.min(t[r]-1,s+i),r,t);if(!o.isObject(c))return;const p=n.buildJsonPath(c);return 0!==p.length?p:void 0}},6465:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3661),i=r(517),o=r(4042);function s(e,t){if(e.parent&&e.parent.kind===i.Kind.MAPPING){if(null===e.parent.value)return e.parent.endPosition;if(e.kind!==i.Kind.SCALAR)return e.parent.key.endPosition+1}return null===e.parent&&t-e.startPosition==0?0:e.startPosition}function a(e){switch(e.kind){case i.Kind.SEQ:const{items:t}=e;if(0!==t.length){const e=t[t.length-1];if(null!==e)return a(e)}break;case i.Kind.MAPPING:if(null!==e.value)return a(e.value);break;case i.Kind.MAP:if(null!==e.value&&0!==e.mappings.length)return a(e.mappings[e.mappings.length-1]);break;case i.Kind.SCALAR:if(null!==e.parent&&e.parent.kind===i.Kind.MAPPING&&null===e.parent.value)return e.parent.endPosition}return e.endPosition}function c(e,t){return t?e.reduce(((e,t)=>(o.isObject(t)&&("<<"===t.key.value?e.push(...p(t.value)):e.push(t)),e)),[]):e}function p(e){if(!o.isObject(e))return[];switch(e.kind){case i.Kind.SEQ:return e.items.reduceRight(((e,t)=>(e.push(...p(t)),e)),[]);case i.Kind.MAP:return e.mappings;case i.Kind.ANCHOR_REF:return p(e.value);default:return[]}}t.getLocationForJsonPath=({ast:e,lineMap:t,metadata:r},n,p=!1)=>{const f=function(e,t,{closest:r,mergeKeys:n}){e:for(const s of t){if(!o.isObject(e))return r?e:void 0;switch(e.kind){case i.Kind.MAP:const t=c(e.mappings,n);for(let r=t.length-1;r>=0;r--){const n=t[r];if(n.key.value===s){e=null===n.value?n.key:n.value;continue e}}return r?e:void 0;case i.Kind.SEQ:for(let t=0;t0?t[0]:0),end:a(f)})};const u=(e,{start:t=0,end:r=0})=>{const i=n.lineForPosition(t,e),o=n.lineForPosition(r,e);return{range:{start:{line:i,character:t-(0===i?0:e[i-1])},end:{line:o,character:r-(0===o?0:e[o-1])}}}}},8748:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);n.__exportStar(r(1728),t),n.__exportStar(r(1919),t),n.__exportStar(r(9169),t),n.__exportStar(r(6465),t),n.__exportStar(r(3661),t),n.__exportStar(r(4467),t),n.__exportStar(r(4273),t),n.__exportStar(r(3451),t),n.__exportStar(r(517),t),n.__exportStar(r(7051),t)},3661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lineForPosition=(e,r,n=0,i)=>{if(0===e||0===r.length||e=r[o]&&!r[o+1])return o+1;const s=r[Math.min(o+1,r.length)];return e===r[o]-1?o:e>=r[o]&&e<=s?e===s?o+2:o+1:e>r[o]?t.lineForPosition(e,r,o+1,i):t.lineForPosition(e,r,n,o-1)}},4467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9581),i=r(4273);t.parse=e=>i.walkAST(n.load(e),void 0,[],[])},4273:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1762),i=r(5839),o=r(9581),s=r(1728),a=r(1919),c=r(3661),p=r(517),u=r(4042);function f(e){switch(o.determineScalarType(e)){case p.ScalarType.null:return null;case p.ScalarType.string:return String(e.value);case p.ScalarType.bool:return o.parseYamlBoolean(e.value);case p.ScalarType.int:return o.parseYamlBigInteger(e.value);case p.ScalarType.float:return o.parseYamlFloat(e.value)}}t.parseWithPointers=(e,r)=>{const n=l(e),i=o.load(e,Object.assign({},r,{ignoreDuplicateKeys:!0})),s={ast:i,lineMap:n,data:void 0,diagnostics:[],metadata:r};return i?(s.data=t.walkAST(i,r,n,s.diagnostics),i.errors&&s.diagnostics.push(...h(i.errors,n)),s.diagnostics.length>0&&s.diagnostics.sort(((e,t)=>e.range.start.line-t.range.start.line)),Array.isArray(s.ast.errors)&&(s.ast.errors.length=0),s):s},t.walkAST=(e,r,n,i)=>{if(e)switch(e.kind){case p.Kind.MAP:{const o=void 0!==r&&!0===r.preserveKeyOrder,s=y(o),a=[],c=void 0!==r&&!0===r.mergeKeys,p=void 0!==r&&!1===r.json,u=void 0!==r&&!1===r.ignoreDuplicateKeys;for(const l of e.mappings){if(!b(l,n,i,p))continue;const e=String(f(l.key));if((p||u)&&(!c||"<<"!==e))if(a.includes(e)){if(p)throw new Error("Duplicate YAML mapping key encountered");u&&i.push($(l.key,n,"duplicate key"))}else a.push(e);if(c&&"<<"===e){const e=m(t.walkAST(l.value,r,n,i),o);Object.assign(s,e)}else s[e]=t.walkAST(l.value,r,n,i),o&&v(s,e)}return s}case p.Kind.SEQ:return e.items.map((e=>t.walkAST(e,r,n,i)));case p.Kind.SCALAR:{const t=void 0!==r&&!0===r.bigInt,n=f(e);return t||"bigint"!=typeof n?n:Number(n)}case p.Kind.ANCHOR_REF:return u.isObject(e.value)&&(e.value=a.dereferenceAnchor(e.value,e.referencesAnchor)),t.walkAST(e.value,r,n,i);default:return null}return e};const l=e=>{const t=[];let r=0;for(;r{const r=[];let n=-1,o=0;for(const s of e){const e={code:s.name,message:s.reason,severity:s.isWarning?i.DiagnosticSeverity.Warning:i.DiagnosticSeverity.Error,range:{start:{line:s.mark.line,character:s.mark.column},end:{line:s.mark.line,character:s.mark.toLineEnd?d(t,s.mark.line):s.mark.column}}};"missed comma between flow collection entries"===s.reason?n=-1===n?o:n:-1!==n&&(r[n].range.end=e.range.end,r[n].message="invalid mixed usage of block and flow styles",r.length=n+1,o=r.length,n=-1),r.push(e),o++}return r},m=(e,t)=>Array.isArray(e)?e.reduceRight(t?(e,t)=>{const r=Object.keys(t);Object.assign(e,t);for(let t=r.length-1;t>=0;t--)i=e,o=r[t],g(i,o),n.getOrder(i).unshift(o);var i,o;return e}:(e,t)=>Object.assign(e,t),y(t)):"object"!=typeof e||null===e?null:Object(e);function y(e){return e?n.default({}):{}}function g(e,t){if(!(t in e))return;const r=n.getOrder(e),i=r.indexOf(t);-1!==i&&r.splice(i,1)}function v(e,t){g(e,t),n.getOrder(e).push(t)}function b(e,t,r,n){if(e.key.kind!==p.Kind.SCALAR)return n||r.push(j(e.key,t,"mapping key must be a string scalar",n)),!1;if(!n){const i=typeof f(e.key);"string"!==i&&r.push(j(e.key,t,`mapping key must be a string scalar rather than ${null===e.key.valueObject?"null":i}`,n))}return!0}function j(e,t,r,n){const o=$(e,t,r);return o.code="YAMLIncompatibleValue",o.severity=n?i.DiagnosticSeverity.Hint:i.DiagnosticSeverity.Warning,o}function $(e,t,r){const n=c.lineForPosition(e.startPosition,t),o=c.lineForPosition(e.endPosition,t);return{code:"YAMLException",message:r,severity:i.DiagnosticSeverity.Error,path:s.buildJsonPath(e),range:{start:{line:n,character:0===n?e.startPosition:e.startPosition-t[n-1]},end:{line:o,character:0===o?e.endPosition:e.endPosition-t[o-1]}}}}},3451:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9581);t.safeStringify=(e,t)=>"string"==typeof e?e:n.safeDump(e,t)},7051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1762);t.KEYS=Symbol.for(n.ORDER_KEY_ID);const i={ownKeys:e=>t.KEYS in e?e[t.KEYS]:Reflect.ownKeys(e)};t.trapAccess=e=>new Proxy(e,i)},517:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9581);t.Kind=n.Kind,t.ScalarType=n.ScalarType},4042:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=e=>null!==e&&"object"==typeof e},8599:e=>{"use strict";const{AbortController:t,AbortSignal:r}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=r,e.exports.default=t},6870:(e,t)=>{"use strict";function r(e,t){return{validate:e,compare:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0,t.fullFormats={date:r(o,s),time:r(c,p),"date-time":r((function(e){const t=e.split(u);return 2===t.length&&o(t[0])&&c(t[1],!0)}),f),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return l.test(e)&&d.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(e){if(y.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(e){return h.lastIndex=0,h.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=2147483647&&e>=-2147483648}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:m},double:{type:"number",validate:m},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:r(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:r(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,p),"date-time":r(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(e){const t=n.exec(e);if(!t)return!1;const r=+t[1],o=+t[2],s=+t[3];return o>=1&&o<=12&&s>=1&&s<=(2===o&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:i[o])}function s(e,t){if(e&&t)return e>t?1:e(t=n[1]+n[2]+n[3]+(n[4]||""))?1:e{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6870),i=r(7963),o=r(3487),s=new o.Name("fullFormats"),a=new o.Name("fastFormats"),c=(e,t={keywords:!0})=>{if(Array.isArray(t))return p(e,t,n.fullFormats,s),e;const[r,o]="fast"===t.mode?[n.fastFormats,a]:[n.fullFormats,s];return p(e,t.formats||n.formatNames,r,o),t.keywords&&i.default(e),e};function p(e,t,r,n){var i,s;null!==(i=(s=e.opts.code).formats)&&void 0!==i||(s.formats=o._`require("ajv-formats/dist/formats").${n}`);for(const n of t)e.addFormat(n,r[n])}c.get=(e,t="full")=>{const r=("fast"===t?n.fastFormats:n.fullFormats)[e];if(!r)throw new Error(`Unknown format "${e}"`);return r},e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c},7963:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const n=r(1581),i=r(3487),o=i.operators,s={formatMaximum:{okStr:"<=",ok:o.LTE,fail:o.GT},formatMinimum:{okStr:">=",ok:o.GTE,fail:o.LT},formatExclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},formatExclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},a={message:({keyword:e,schemaCode:t})=>i.str`should be ${s[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>i._`{comparison: ${s[e].okStr}, limit: ${t}}`};t.formatLimitDefinition={keyword:Object.keys(s),type:"string",schemaType:"string",$data:!0,error:a,code(e){const{gen:t,data:r,schemaCode:o,keyword:a,it:c}=e,{opts:p,self:u}=c;if(!p.validateFormats)return;const f=new n.KeywordCxt(c,u.RULES.all.format.definition,"format");function l(e){return i._`${e}.compare(${r}, ${o}) ${s[a].fail} 0`}f.$data?function(){const r=t.scopeValue("formats",{ref:u.formats,code:p.code.formats}),n=t.const("fmt",i._`${r}[${f.schemaCode}]`);e.fail$data(i.or(i._`typeof ${n} != "object"`,i._`${n} instanceof RegExp`,i._`typeof ${n}.compare != "function"`,l(n)))}():function(){const r=f.schema,n=u.formats[r];if(!n||!0===n)return;if("object"!=typeof n||n instanceof RegExp||"function"!=typeof n.compare)throw new Error(`"${a}": format "${r}" does not define "compare" function`);const o=t.scopeValue("formats",{key:r,ref:n,code:p.code.formats?i._`${p.code.formats}${i.getProperty(r)}`:void 0});e.fail$data(l(o))}()},dependencies:["format"]},t.default=e=>(e.addKeyword(t.formatLimitDefinition),e)},6533:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=r(7159),i=r(3924),o=r(6121),s=r(1448),a=r(808),c=r(1240),p=r(2500),u="https://json-schema.org/draft/2019-09/schema";class f extends n.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(o.default),i.default.forEach((e=>this.addVocabulary(e))),this.addVocabulary(s.default),this.addVocabulary(a.default),this.opts.discriminator&&this.addKeyword(c.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:e,meta:t}=this.opts;t&&(p.default.call(this,e),this.refs["http://json-schema.org/schema"]=u)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(u)?u:void 0)}}e.exports=t=f,Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var l=r(4815);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var d=r(3487);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}})},5128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=r(7159),i=r(7299),o=r(1240),s=r(4087),a="https://json-schema.org/draft/2020-12/schema";class c extends n.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),i.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:e,meta:t}=this.opts;t&&(s.default.call(this,e),this.refs["http://json-schema.org/schema"]=a)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var p=r(4815);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var u=r(3487);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}})},1581:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const n=r(7159),i=r(3924),o=r(1240),s=r(98),a=["/properties"],c="http://json-schema.org/draft-07/schema";class p extends n.default{_addVocabularies(){super._addVocabularies(),i.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=p,Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var u=r(4815);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var f=r(3487);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return f._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return f.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return f.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return f.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return f.CodeGen}})},7023:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends r{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=n;class i extends r{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const r=[e[0]];let n=0;for(;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const n=r(7023),i=r(8490);var o=r(7023);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var s=r(8490);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const r=e?i.varKinds.var:this.varKind,n=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${n};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=T(this.rhs,e,t)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class p extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof n.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=T(this.rhs,e,t),this}get names(){return I(this.lhs instanceof n.Name?{}:{...this.lhs.names},this.rhs)}}class u extends p{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class f extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class l extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class h extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=T(this.code,e,t),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class m extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const i=r[n];i.optimizeNames(e,t)||(k(e,i.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>A(e,t.names)),{})}}class y extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class g extends m{}class v extends y{}v.kind="else";class b extends y{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof b?t:t.nodes:this.nodes.length?this:new b(R(e),t instanceof b?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=T(this.condition,e,t),this}get names(){const e=super.names;return I(e,this.condition),this.else&&A(e,this.else.names),e}}b.kind="if";class j extends y{}j.kind="for";class $ extends j{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=T(this.iteration,e,t),this}get names(){return A(super.names,this.iteration.names)}}class _ extends j{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?i.varKinds.var:this.varKind,{name:r,from:n,to:o}=this;return`for(${t} ${r}=${n}; ${r}<${o}; ${r}++)`+super.render(e)}get names(){const e=I(super.names,this.from);return I(e,this.to)}}class x extends j{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=T(this.iterable,e,t),this}get names(){return A(super.names,this.iterable.names)}}class P extends y{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}P.kind="func";class w extends m{render(e){return"return "+super.render(e)}}w.kind="return";class S extends y{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&A(e,this.catch.names),this.finally&&A(e,this.finally.names),e}}class O extends y{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}O.kind="catch";class E extends y{render(e){return"finally"+super.render(e)}}function A(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function I(e,t){return t instanceof n._CodeOrName?A(e,t.names):e}function T(e,t,r){return e instanceof n.Name?o(e):(i=e)instanceof n._Code&&i._items.some((e=>e instanceof n.Name&&1===t[e.str]&&void 0!==r[e.str]))?new n._Code(e._items.reduce(((e,t)=>(t instanceof n.Name&&(t=o(t)),t instanceof n._Code?e.push(...t._items):e.push(t),e)),[])):e;var i;function o(e){const n=r[e.str];return void 0===n||1!==t[e.str]?e:(delete t[e.str],n)}}function k(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function R(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:n._`!${N(e)}`}E.kind="finally",t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const i=this._scope.toName(t);return void 0!==r&&n&&(this._constants[i.str]=r),this._leafNode(new c(e,i,r)),i}const(e,t,r){return this._def(i.varKinds.const,e,t,r)}let(e,t,r){return this._def(i.varKinds.let,e,t,r)}var(e,t,r){return this._def(i.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new p(e,t,r))}add(e,r){return this._leafNode(new u(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==n.nil&&this._leafNode(new h(e)),this}object(...e){const t=["{"];for(const[r,i]of e)t.length>1&&t.push(","),t.push(r),(r!==i||this.opts.es5)&&(t.push(":"),(0,n.addCodeArg)(t,i));return t.push("}"),new n._Code(t)}if(e,t,r){if(this._blockNode(new b(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new b(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(b,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new $(e),t)}forRange(e,t,r,n,o=(this.opts.es5?i.varKinds.var:i.varKinds.let)){const s=this._scope.toName(e);return this._for(new _(o,s,t,r),(()=>n(s)))}forOf(e,t,r,o=i.varKinds.const){const s=this._scope.toName(e);if(this.opts.es5){const e=t instanceof n.Name?t:this.var("_arr",t);return this.forRange("_i",0,n._`${e}.length`,(t=>{this.var(s,n._`${e}[${t}]`),r(s)}))}return this._for(new x("of",o,s,t),(()=>r(s)))}forIn(e,t,r,o=(this.opts.es5?i.varKinds.var:i.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,n._`Object.keys(${t})`,r);const s=this._scope.toName(e);return this._for(new x("in",o,s,t),(()=>r(s)))}endFor(){return this._endBlockNode(j)}label(e){return this._leafNode(new f(e))}break(e){return this._leafNode(new l(e))}return(e){const t=new w;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(w)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new S;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new O(e),t(e)}return r&&(this._currNode=n.finally=new E,this.code(r)),this._endBlockNode(O,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=n.nil,r,i){return this._blockNode(new P(e,t,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(P)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof b))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=R;const D=F(t.operators.AND);t.and=function(...e){return e.reduce(D)};const C=F(t.operators.OR);function F(e){return(t,r)=>t===n.nil?r:r===n.nil?t:n._`${N(t)} ${e} ${N(r)}`}function N(e){return e instanceof n.Name?e:n._`(${e})`}t.or=function(...e){return e.reduce(C)}},8490:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const n=r(7023);class i extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};class s{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof n.Name?e:this.name(e)}name(e){return new n.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=s;class a extends n.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=n._`.${new n.Name(t)}[${r}]`}}t.ValueScopeName=a;const c=n._`\n`;t.ValueScope=class extends s{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:n.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:i}=n,o=null!==(r=t.key)&&void 0!==r?r:t.ref;let s=this._values[i];if(s){const e=s.get(o);if(e)return e}else s=this._values[i]=new Map;s.set(o,n);const a=this._scope[i]||(this._scope[i]=[]),c=a.length;return a[c]=t.ref,n.setValue(t,{property:i,itemIndex:c}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return n._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(e,r,s={},a){let c=n.nil;for(const p in e){const u=e[p];if(!u)continue;const f=s[p]=s[p]||new Map;u.forEach((e=>{if(f.has(e))return;f.set(e,o.Started);let s=r(e);if(s){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;c=n._`${c}${r} ${e} = ${s};${this.opts._n}`}else{if(!(s=null==a?void 0:a(e)))throw new i(e);c=n._`${c}${s}${this.opts._n}`}f.set(e,o.Completed)}))}return c}}},4181:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const n=r(3487),i=r(6776),o=r(2141);function s(e,t){const r=e.const("err",t);e.if(n._`${o.default.vErrors} === null`,(()=>e.assign(o.default.vErrors,n._`[${r}]`)),n._`${o.default.vErrors}.push(${r})`),e.code(n._`${o.default.errors}++`)}function a(e,t){const{gen:r,validateName:i,schemaEnv:o}=e;o.$async?r.throw(n._`new ${e.ValidationError}(${t})`):(r.assign(n._`${i}.errors`,t),r.return(!1))}t.keywordError={message:({keyword:e})=>n.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?n.str`"${e}" keyword must be ${t} ($data)`:n.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,r=t.keywordError,i,o){const{it:c}=e,{gen:u,compositeRule:f,allErrors:l}=c,d=p(e,r,i);(null!=o?o:f||l)?s(u,d):a(c,n._`[${d}]`)},t.reportExtraError=function(e,r=t.keywordError,n){const{it:i}=e,{gen:c,compositeRule:u,allErrors:f}=i;s(c,p(e,r,n)),u||f||a(i,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(n._`${o.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(n._`${o.default.vErrors}.length`,t)),(()=>e.assign(o.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:r,data:i,errsCount:s,it:a}){if(void 0===s)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",s,o.default.errors,(s=>{e.const(c,n._`${o.default.vErrors}[${s}]`),e.if(n._`${c}.instancePath === undefined`,(()=>e.assign(n._`${c}.instancePath`,(0,n.strConcat)(o.default.instancePath,a.errorPath)))),e.assign(n._`${c}.schemaPath`,n.str`${a.errSchemaPath}/${t}`),a.opts.verbose&&(e.assign(n._`${c}.schema`,r),e.assign(n._`${c}.data`,i))}))};const c={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function p(e,t,r){const{createErrors:i}=e.it;return!1===i?n._`{}`:function(e,t,r={}){const{gen:i,it:s}=e,a=[u(s,r),f(e,r)];return function(e,{params:t,message:r},i){const{keyword:s,data:a,schemaValue:p,it:u}=e,{opts:f,propertyName:l,topSchemaRef:d,schemaPath:h}=u;i.push([c.keyword,s],[c.params,"function"==typeof t?t(e):t||n._`{}`]),f.messages&&i.push([c.message,"function"==typeof r?r(e):r]),f.verbose&&i.push([c.schema,p],[c.parentSchema,n._`${d}${h}`],[o.default.data,a]),l&&i.push([c.propertyName,l])}(e,t,a),i.object(...a)}(e,t,r)}function u({errorPath:e},{instancePath:t}){const r=t?n.str`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[o.default.instancePath,(0,n.strConcat)(o.default.instancePath,r)]}function f({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:o}){let s=o?t:n.str`${t}/${e}`;return r&&(s=n.str`${s}${(0,i.getErrorPath)(r,i.Type.Str)}`),[c.schemaPath,s]}},5173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const n=r(3487),i=r(7426),o=r(2141),s=r(2531),a=r(6776),c=r(4815);class p{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,s.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function u(e){const t=l.call(this,e);if(t)return t;const r=(0,s.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:a,lines:p}=this.opts.code,{ownProperties:u}=this.opts,f=new n.CodeGen(this.scope,{es5:a,lines:p,ownProperties:u});let d;e.$async&&(d=f.scopeValue("Error",{ref:i.default,code:n._`require("ajv/dist/runtime/validation_error").default`}));const h=f.scopeName("validate");e.validateName=h;const m={gen:f,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:f.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,n.stringify)(e.schema)}:{ref:e.schema}),validateName:h,ValidationError:d,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:n.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:n._`""`,opts:this.opts,self:this};let y;try{this._compilations.add(e),(0,c.validateFunctionCode)(m),f.optimize(this.opts.code.optimize);const t=f.toString();y=`${f.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(y=this.opts.code.process(y,e));const r=new Function(`${o.default.self}`,`${o.default.scope}`,y)(this,this.scope.get());if(this.scope.value(h,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:h,validateCode:t,scopeValues:f._values}),this.opts.unevaluated){const{props:e,items:t}=m;r.evaluated={props:e instanceof n.Name?void 0:e,items:t instanceof n.Name?void 0:t,dynamicProps:e instanceof n.Name,dynamicItems:t instanceof n.Name},r.source&&(r.source.evaluated=(0,n.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,y&&this.logger.error("Error compiling schema, function code:",y),t}finally{this._compilations.delete(e)}}function f(e){return(0,s.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:u.call(this,e)}function l(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function d(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||h.call(this,e,t)}function h(e,t){const r=this.opts.uriResolver.parse(t),n=(0,s._getFullPath)(this.opts.uriResolver,r);let i=(0,s.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return y.call(this,r,e);const o=(0,s.normalizeId)(n),a=this.refs[o]||this.schemas[o];if("string"==typeof a){const t=h.call(this,e,a);if("object"!=typeof(null==t?void 0:t.schema))return;return y.call(this,r,t)}if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||u.call(this,a),o===(0,s.normalizeId)(t)){const{schema:t}=a,{schemaId:r}=this.opts,n=t[r];return n&&(i=(0,s.resolveUrl)(this.opts.uriResolver,i,n)),new p({schema:t,schemaId:r,root:e,baseId:i})}return y.call(this,r,a)}}t.SchemaEnv=p,t.compileSchema=u,t.resolveRef=function(e,t,r){var n;r=(0,s.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let o=d.call(this,e,r);if(void 0===o){const i=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:s}=this.opts;i&&(o=new p({schema:i,schemaId:s,root:e,baseId:t}))}return void 0!==o?e.refs[r]=f.call(this,o):void 0},t.getCompilingSchema=l,t.resolveSchema=h;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,{baseId:t,schema:r,root:n}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,a.unescapeFragment)(n)];if(void 0===e)return;const i="object"==typeof(r=e)&&r[this.opts.schemaId];!m.has(n)&&i&&(t=(0,s.resolveUrl)(this.opts.uriResolver,t,i))}let o;if("boolean"!=typeof r&&r.$ref&&!(0,a.schemaHasRulesButRef)(r,this.RULES)){const e=(0,s.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=h.call(this,n,e)}const{schemaId:c}=this.opts;return o=o||new p({schema:r,schemaId:c,root:n,baseId:t}),o.schema!==o.root.schema?o:void 0}},2141:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")};t.default=i},6646:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2531);class i extends Error{constructor(e,t,r,i){super(i||`can't resolve reference ${r} from id ${t}`),this.missingRef=(0,n.resolveUrl)(e,t,r),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(e,this.missingRef))}}t.default=i},2531:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const n=r(6776),i=r(4063),o=r(1371),s=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!c(e):!!t&&p(e)<=t)};const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(const t in e){if(a.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(c))return!0;if("object"==typeof r&&c(r))return!0}return!1}function p(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!s.has(r)&&("object"==typeof e[r]&&(0,n.eachItem)(e[r],(e=>t+=p(e))),t===1/0))return 1/0}return t}function u(e,t="",r){!1!==r&&(t=d(t));const n=e.parse(t);return f(e,n)}function f(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=u,t._getFullPath=f;const l=/#\/?$/;function d(e){return e?e.replace(l,""):""}t.normalizeId=d,t.resolveUrl=function(e,t,r){return r=d(r),e.resolve(t,r)};const h=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,s=d(e[r]||t),a={"":s},c=u(n,s,!1),p={},f=new Set;return o(e,{allKeys:!0},((e,t,n,i)=>{if(void 0===i)return;const o=c+t;let s=a[i];function u(t){const r=this.opts.uriResolver.resolve;if(t=d(s?r(s,t):t),f.has(t))throw m(t);f.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?l(e,n.schema,t):t!==d(o)&&("#"===t[0]?(l(e,p[t],t),p[t]=e):this.refs[t]=o),t}function y(e){if("string"==typeof e){if(!h.test(e))throw new Error(`invalid anchor "${e}"`);u.call(this,`#${e}`)}}"string"==typeof e[r]&&(s=u.call(this,e[r])),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),a[t]=s})),p;function l(e,t,r){if(void 0!==t&&!i(e,t))throw m(r)}function m(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},3141:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&r.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},6776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const n=r(3487),i=r(7023);function o(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const i=n.RULES.keywords;for(const r in t)i[r]||h(e,`unknown keyword: "${r}"`)}function s(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function p({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:i}){return(o,s,a,c)=>{const p=void 0===a?s:a instanceof n.Name?(s instanceof n.Name?e(o,s,a):t(o,s,a),a):s instanceof n.Name?(t(o,a,s),s):r(s,a);return c!==n.Name||p instanceof n.Name?p:i(o,p)}}function u(e,t){if(!0===t)return e.var("props",!0);const r=e.var("props",n._`{}`);return void 0!==t&&f(e,r,t),r}function f(e,t,r){Object.keys(r).forEach((r=>e.assign(n._`${t}${(0,n.getProperty)(r)}`,!0)))}t.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!s(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=s,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},r,i,o){if(!o){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return n._`${r}`}return n._`${e}${t}${(0,n.getProperty)(i)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(a(e))},t.escapeJsonPointer=a,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},t.mergeEvaluated={props:p({mergeNames:(e,t,r)=>e.if(n._`${r} !== true && ${t} !== undefined`,(()=>{e.if(n._`${t} === true`,(()=>e.assign(r,!0)),(()=>e.assign(r,n._`${r} || {}`).code(n._`Object.assign(${r}, ${t})`)))})),mergeToName:(e,t,r)=>e.if(n._`${r} !== true`,(()=>{!0===t?e.assign(r,!0):(e.assign(r,n._`${r} || {}`),f(e,r,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:u}),items:p({mergeNames:(e,t,r)=>e.if(n._`${r} !== true && ${t} !== undefined`,(()=>e.assign(r,n._`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`))),mergeToName:(e,t,r)=>e.if(n._`${r} !== true`,(()=>e.assign(r,!0===t||n._`${r} > ${t} ? ${r} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=u,t.setEvaluated=f;const l={};var d;function h(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:l[t.code]||(l[t.code]=new i._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(d=t.Type||(t.Type={})),t.getErrorPath=function(e,t,r){if(e instanceof n.Name){const i=t===d.Num;return r?i?n._`"[" + ${e} + "]"`:n._`"['" + ${e} + "']"`:i?n._`"/" + ${e}`:n._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,n.getProperty)(e).toString():"/"+a(e)},t.checkStrictMode=h},7745:(e,t)=>{"use strict";function r(e,t){return t.rules.some((t=>n(e,t)))}function n(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},n){const i=t.RULES.types[n];return i&&!0!==i&&r(e,i)},t.shouldUseGroup=r,t.shouldUseRule=n},5667:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const n=r(4181),i=r(3487),o=r(2141),s={message:"boolean schema is false"};function a(e,t){const{gen:r,data:i}=e,o={gen:r,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,n.reportError)(o,s,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:r,validateName:n}=e;!1===r?a(e,!1):"object"==typeof r&&!0===r.$async?t.return(o.default.data):(t.assign(i._`${n}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),a(e)):r.var(t,!0)}},453:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const n=r(3141),i=r(7745),o=r(4181),s=r(3487),a=r(6776);var c;function p(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(n.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(c=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=p(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=p,t.coerceAndCheckDataType=function(e,t){const{gen:r,data:n,opts:o}=e,a=function(e,t){return t?e.filter((e=>u.has(e)||"array"===t&&"array"===e)):[]}(t,o.coerceTypes),p=t.length>0&&!(0===a.length&&1===t.length&&(0,i.schemaHasRulesForType)(e,t[0]));if(p){const i=l(t,n,o.strictNumbers,c.Wrong);r.if(i,(()=>{a.length?function(e,t,r){const{gen:n,data:i,opts:o}=e,a=n.let("dataType",s._`typeof ${i}`),c=n.let("coerced",s._`undefined`);"array"===o.coerceTypes&&n.if(s._`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,(()=>n.assign(i,s._`${i}[0]`).assign(a,s._`typeof ${i}`).if(l(t,i,o.strictNumbers),(()=>n.assign(c,i))))),n.if(s._`${c} !== undefined`);for(const e of r)(u.has(e)||"array"===e&&"array"===o.coerceTypes)&&p(e);function p(e){switch(e){case"string":return void n.elseIf(s._`${a} == "number" || ${a} == "boolean"`).assign(c,s._`"" + ${i}`).elseIf(s._`${i} === null`).assign(c,s._`""`);case"number":return void n.elseIf(s._`${a} == "boolean" || ${i} === null - || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,s._`+${i}`);case"integer":return void n.elseIf(s._`${a} === "boolean" || ${i} === null - || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,s._`+${i}`);case"boolean":return void n.elseIf(s._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf(s._`${i} === "true" || ${i} === 1`).assign(c,!0);case"null":return n.elseIf(s._`${i} === "" || ${i} === 0 || ${i} === false`),void n.assign(c,null);case"array":n.elseIf(s._`${a} === "string" || ${a} === "number" - || ${a} === "boolean" || ${i} === null`).assign(c,s._`[${i}]`)}}n.else(),h(e),n.endIf(),n.if(s._`${c} !== undefined`,(()=>{n.assign(i,c),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(s._`${t} !== undefined`,(()=>e.assign(s._`${t}[${r}]`,n)))}(e,c)}))}(e,t,a):h(e)}))}return p};const u=new Set(["string","number","integer","boolean","null"]);function f(e,t,r,n=c.Correct){const i=n===c.Correct?s.operators.EQ:s.operators.NEQ;let o;switch(e){case"null":return s._`${t} ${i} null`;case"array":o=s._`Array.isArray(${t})`;break;case"object":o=s._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a(s._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return s._`typeof ${t} ${i} ${e}`}return n===c.Correct?o:(0,s.not)(o);function a(e=s.nil){return(0,s.and)(s._`typeof ${t} == "number"`,e,r?s._`isFinite(${t})`:s.nil)}}function l(e,t,r,n){if(1===e.length)return f(e[0],t,r,n);let i;const o=(0,a.toHash)(e);if(o.array&&o.object){const e=s._`typeof ${t} != "object"`;i=o.null?e:s._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else i=s.nil;o.number&&delete o.integer;for(const e in o)i=(0,s.and)(i,f(e,t,r,n));return i}t.checkDataType=f,t.checkDataTypes=l;const d={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?s._`{type: ${e}}`:s._`{type: ${t}}`};function h(e){const t=function(e){const{gen:t,data:r,schema:n}=e,i=(0,a.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}(e);(0,o.reportError)(t,d)}t.reportTypeError=h},313:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const n=r(3487),i=r(6776);function o(e,t,r){const{gen:o,compositeRule:s,data:a,opts:c}=e;if(void 0===r)return;const p=n._`${a}${(0,n.getProperty)(t)}`;if(s)return void(0,i.checkStrictMode)(e,`default is ignored for: ${p}`);let u=n._`${p} === undefined`;"empty"===c.useDefaults&&(u=n._`${u} || ${p} === null || ${p} === ""`),o.if(u,n._`${p} = ${(0,n.stringify)(r)}`)}t.assignDefaults=function(e,t){const{properties:r,items:n}=e.schema;if("object"===t&&r)for(const t in r)o(e,t,r[t].default);else"array"===t&&Array.isArray(n)&&n.forEach(((t,r)=>o(e,r,t.default)))}},4815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const n=r(5667),i=r(453),o=r(7745),s=r(453),a=r(313),c=r(5005),p=r(3099),u=r(3487),f=r(2141),l=r(2531),d=r(6776),h=r(4181);function m({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,u._`${f.default.data}, ${f.default.valCxt}`,n.$async,(()=>{e.code(u._`"use strict"; ${y(r,i)}`),function(e,t){e.if(f.default.valCxt,(()=>{e.var(f.default.instancePath,u._`${f.default.valCxt}.${f.default.instancePath}`),e.var(f.default.parentData,u._`${f.default.valCxt}.${f.default.parentData}`),e.var(f.default.parentDataProperty,u._`${f.default.valCxt}.${f.default.parentDataProperty}`),e.var(f.default.rootData,u._`${f.default.valCxt}.${f.default.rootData}`),t.dynamicRef&&e.var(f.default.dynamicAnchors,u._`${f.default.valCxt}.${f.default.dynamicAnchors}`)}),(()=>{e.var(f.default.instancePath,u._`""`),e.var(f.default.parentData,u._`undefined`),e.var(f.default.parentDataProperty,u._`undefined`),e.var(f.default.rootData,f.default.data),t.dynamicRef&&e.var(f.default.dynamicAnchors,u._`{}`)}))}(e,i),e.code(o)})):e.func(t,u._`${f.default.data}, ${function(e){return u._`{${f.default.instancePath}="", ${f.default.parentData}, ${f.default.parentDataProperty}, ${f.default.rootData}=${f.default.data}${e.dynamicRef?u._`, ${f.default.dynamicAnchors}={}`:u.nil}}={}`}(i)}`,n.$async,(()=>e.code(y(r,i)).code(o)))}function y(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?u._`/*# sourceURL=${r} */`:u.nil}function g({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function b(e){(0,d.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function j(e,t){if(e.opts.jtd)return _(e,[],!1,t);const r=(0,i.getSchemaTypes)(e.schema);_(e,r,!(0,i.coerceAndCheckDataType)(e,r),t)}function $({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const o=r.$comment;if(!0===i.$comment)e.code(u._`${f.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const r=u.str`${n}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code(u._`${f.default.self}.opts.$comment(${o}, ${r}, ${i}.schema)`)}}function _(e,t,r,n){const{gen:i,schema:a,data:c,allErrors:p,opts:l,self:h}=e,{RULES:m}=h;function y(d){(0,o.shouldUseGroup)(a,d)&&(d.type?(i.if((0,s.checkDataType)(d.type,c,l.strictNumbers)),x(e,d),1===t.length&&t[0]===d.type&&r&&(i.else(),(0,s.reportTypeError)(e)),i.endIf()):x(e,d),p||i.if(u._`${f.default.errors} === ${n||0}`))}!a.$ref||!l.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(a,m)?(l.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{P(e.dataTypes,t)||w(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),e.dataTypes=e.dataTypes.filter((e=>P(t,e)))):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&w(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){const{type:r}=i.definition;r.length&&!r.some((e=>{return n=e,(r=t).includes(n)||"number"===n&&r.includes("integer");var r,n}))&&w(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(e,e.dataTypes))}(e,t),i.block((()=>{for(const e of m.rules)y(e);y(m.post)}))):i.block((()=>O(e,"$ref",m.all.$ref.definition)))}function x(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,a.assignDefaults)(e,t.type),r.block((()=>{for(const r of t.rules)(0,o.shouldUseRule)(n,r)&&O(e,r.keyword,r.definition,t.type)}))}function P(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function w(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,d.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){v(e)&&(b(e),g(e))?function(e){const{schema:t,opts:r,gen:n}=e;m(e,(()=>{r.$comment&&t.$comment&&$(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,d.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(f.default.vErrors,null),n.let(f.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",u._`${r}.evaluated`),t.if(u._`${e.evaluated}.dynamicProps`,(()=>t.assign(u._`${e.evaluated}.props`,u._`undefined`))),t.if(u._`${e.evaluated}.dynamicItems`,(()=>t.assign(u._`${e.evaluated}.items`,u._`undefined`)))}(e),j(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if(u._`${f.default.errors} === 0`,(()=>t.return(f.default.data)),(()=>t.throw(u._`new ${i}(${f.default.vErrors})`))):(t.assign(u._`${n}.errors`,f.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof u.Name&&e.assign(u._`${t}.props`,r),n instanceof u.Name&&e.assign(u._`${t}.items`,n)}(e),t.return(u._`${f.default.errors} === 0`))}(e)}))}(e):m(e,(()=>(0,n.topBoolOrEmptySchema)(e)))};class S{constructor(e,t,r){if((0,c.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",I(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",f.default.errors))}result(e,t,r){this.failResult((0,u.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,u.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(u._`${t} !== undefined && (${(0,u.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?h.reportExtraError:h.reportError)(this,this.def.error,t)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=u.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=u.nil,t=u.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:i,def:o}=this;r.if((0,u.or)(u._`${n} === undefined`,t)),e!==u.nil&&r.assign(e,!0),(i.length||o.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==u.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:i}=this;return(0,u.or)(function(){if(r.length){if(!(t instanceof u.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return u._`${(0,s.checkDataTypes)(e,t,i.opts.strictNumbers,s.DataType.Wrong)}`}return u.nil}(),function(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return u._`!${r}(${t})`}return u.nil}())}subschema(e,t){const r=(0,p.getSubschema)(this.it,e);(0,p.extendSubschemaData)(r,this.it,e),(0,p.extendSubschemaMode)(r,e);const i={...this.it,...r,items:void 0,props:void 0};return function(e,t){v(e)&&(b(e),g(e))?function(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&$(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,l.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=n.const("_errs",f.default.errors);j(e,o),n.var(t,u._`${o} === ${f.default.errors}`)}(e,t):(0,n.boolOrEmptySchema)(e,t)}(i,t),i}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=d.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=d.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,u.Name))),!0}}function O(e,t,r,n){const i=new S(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,c.funcKeywordCode)(i,r):"macro"in r?(0,c.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,c.funcKeywordCode)(i,r)}t.KeywordCxt=S;const E=/^\/(?:[^~]|~0|~1)*$/,A=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function I(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(""===e)return f.default.rootData;if("/"===e[0]){if(!E.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=f.default.rootData}else{const s=A.exec(e);if(!s)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+s[1];if(i=s[2],"#"===i){if(a>=t)throw new Error(c("property/index",a));return n[t-a]}if(a>t)throw new Error(c("data",a));if(o=r[t-a],!i)return o}let s=o;const a=i.split("/");for(const e of a)e&&(o=u._`${o}${(0,u.getProperty)((0,d.unescapeJsonPointer)(e))}`,s=u._`${s} && ${o}`);return s;function c(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=I},5005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const n=r(3487),i=r(2141),o=r(412),s=r(4181);function a(e){const{gen:t,data:r,it:i}=e;t.if(i.parentData,(()=>t.assign(r,n._`${i.parentData}[${i.parentDataProperty}]`)))}function c(e,t,r){if(void 0===r)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,n.stringify)(r)})}t.macroKeywordCode=function(e,t){const{gen:r,keyword:i,schema:o,parentSchema:s,it:a}=e,p=t.macro.call(a.self,o,s,a),u=c(r,i,p);!1!==a.opts.validateSchema&&a.self.validateSchema(p,!0);const f=r.name("valid");e.subschema({schema:p,schemaPath:n.nil,errSchemaPath:`${a.errSchemaPath}/${i}`,topSchemaRef:u,compositeRule:!0},f),e.pass(f,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var r;const{gen:p,keyword:u,schema:f,parentSchema:l,$data:d,it:h}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,t);const m=!d&&t.compile?t.compile.call(h.self,f,l,h):t.validate,y=c(p,u,m),g=p.let("valid");function v(r=(t.async?n._`await `:n.nil)){const s=h.opts.passContext?i.default.this:i.default.self,a=!("compile"in t&&!d||!1===t.schema);p.assign(g,n._`${r}${(0,o.callValidateCode)(e,y,s,a)}`,t.modifying)}function b(e){var r;p.if((0,n.not)(null!==(r=t.valid)&&void 0!==r?r:g),e)}e.block$data(g,(function(){if(!1===t.errors)v(),t.modifying&&a(e),b((()=>e.error()));else{const r=t.async?function(){const e=p.let("ruleErrs",null);return p.try((()=>v(n._`await `)),(t=>p.assign(g,!1).if(n._`${t} instanceof ${h.ValidationError}`,(()=>p.assign(e,n._`${t}.errors`)),(()=>p.throw(t))))),e}():function(){const e=n._`${y}.errors`;return p.assign(e,null),v(n.nil),e}();t.modifying&&a(e),b((()=>function(e,t){const{gen:r}=e;r.if(n._`Array.isArray(${t})`,(()=>{r.assign(i.default.vErrors,n._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,n._`${i.default.vErrors}.length`),(0,s.extendErrors)(e)}),(()=>e.error()))}(e,r)))}})),e.ok(null!==(r=t.valid)&&void 0!==r?r:g)},t.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const s=i.dependencies;if(null==s?void 0:s.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},3099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const n=r(3487),i=r(6776);t.getSubschema=function(e,{keyword:t,schemaProp:r,schema:o,schemaPath:s,errSchemaPath:a,topSchemaRef:c}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===r?{schema:o,schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[r],schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(r)}`}}if(void 0!==o){if(void 0===s||void 0===a||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:s,topSchemaRef:c,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:o,data:s,dataTypes:a,propertyName:c}){if(void 0!==s&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:p}=t;if(void 0!==r){const{errorPath:s,dataPathArr:a,opts:c}=t;u(p.let("data",n._`${t.data}${(0,n.getProperty)(r)}`,!0)),e.errorPath=n.str`${s}${(0,i.getErrorPath)(r,o,c.jsPropertySyntax)}`,e.parentDataProperty=n._`${r}`,e.dataPathArr=[...a,e.parentDataProperty]}function u(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}void 0!==s&&(u(s instanceof n.Name?s:p.let("data",s,!0)),void 0!==c&&(e.propertyName=c)),a&&(e.dataTypes=a)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){void 0!==n&&(e.compositeRule=n),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}},7159:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r(4815);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return n.KeywordCxt}});var i=r(3487);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});const o=r(7426),s=r(6646),a=r(3141),c=r(5173),p=r(3487),u=r(2531),f=r(453),l=r(6776),d=r(4775),h=r(3589),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";const y=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function j(e){var t,r,n,i,o,s,a,c,p,u,f,l,d,y,g,v,b,j,$,_,x,P,w,S,O;const E=e.strict,A=null===(t=e.code)||void 0===t?void 0:t.optimize,I=!0===A||void 0===A?1:A||0,T=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:m,k=null!==(i=e.uriResolver)&&void 0!==i?i:h.default;return{strictSchema:null===(s=null!==(o=e.strictSchema)&&void 0!==o?o:E)||void 0===s||s,strictNumbers:null===(c=null!==(a=e.strictNumbers)&&void 0!==a?a:E)||void 0===c||c,strictTypes:null!==(u=null!==(p=e.strictTypes)&&void 0!==p?p:E)&&void 0!==u?u:"log",strictTuples:null!==(l=null!==(f=e.strictTuples)&&void 0!==f?f:E)&&void 0!==l?l:"log",strictRequired:null!==(y=null!==(d=e.strictRequired)&&void 0!==d?d:E)&&void 0!==y&&y,code:e.code?{...e.code,optimize:I,regExp:T}:{optimize:I,regExp:T},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(j=e.messages)||void 0===j||j,inlineRefs:null===($=e.inlineRefs)||void 0===$||$,schemaId:null!==(_=e.schemaId)&&void 0!==_?_:"$id",addUsedSchema:null===(x=e.addUsedSchema)||void 0===x||x,validateSchema:null===(P=e.validateSchema)||void 0===P||P,validateFormats:null===(w=e.validateFormats)||void 0===w||w,unicodeRegExp:null===(S=e.unicodeRegExp)||void 0===S||S,int32range:null===(O=e.int32range)||void 0===O||O,uriResolver:k}}class ${constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...j(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new p.ValueScope({scope:{},prefixes:g,es5:t,lines:r}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),_.call(this,v,e,"NOT SUPPORTED"),_.call(this,b,e,"DEPRECATED","warn"),this._metaOpts=O.call(this),e.formats&&w.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&S.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),P.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=d;"id"===r&&(n={...d},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await i.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||o.call(this,r)}async function i(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof s.default))throw t;return a.call(this,t),await c.call(this,t.missingSchema),o.call(this,e)}}function a({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const r=await p.call(this,e);this.refs[e]||await i.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function p(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let i;if("object"==typeof e){const{schemaId:t}=this.opts;if(i=e[t],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${t} must be string`)}return t=(0,u.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=x.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new c.SchemaEnv({schema:{},schemaId:r});if(t=c.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=x.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,u.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(I.call(this,r,t),!t)return(0,l.eachItem)(r,(e=>T.call(this,e))),this;R.call(this,t);const n={...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)};return(0,l.eachItem)(r,0===n.type.length?e=>T.call(this,e,n):e=>n.type.forEach((t=>T.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let i=e;for(const e of t)i=i[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,o=i[e];n&&o&&(i[e]=C(o))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:s}=this.opts;if("object"==typeof e)o=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(void 0!==a)return a;r=(0,u.normalizeId)(o||r);const p=u.getSchemaRefs.call(this,e,r);return a=new c.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:p}),this._cache.set(a.schema,a),i&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=a),n&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):c.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}function _(e,t,r,n="error"){for(const i in e){const o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}function x(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function P(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function w(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function S(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function O(){const e={...this.opts};for(const t of y)delete e[t];return e}t.default=$,$.ValidationError=o.default,$.MissingRefError=s.default;const E={log(){},warn(){},error(){}},A=/^[a-z_$][a-z0-9_$:-]*$/i;function I(e,t){const{RULES:r}=this;if((0,l.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!A.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function T(e,t,r){var n;const i=null==t?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let s=i?o.post:o.rules.find((({type:e})=>e===r));if(s||(s={type:r,rules:[]},o.rules.push(s)),o.keywords[e]=!0,!t)return;const a={keyword:e,definition:{...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)}};t.before?k.call(this,s,a,t.before):s.rules.push(a),o.all[e]=a,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function k(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function R(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=C(t)),e.validateSchema=this.compile(t,!0))}const D={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function C(e){return{anyOf:[e,D]}}},2500:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3329),i=r(8161),o=r(6422),s=r(4052),a=r(877),c=r(5032),p=r(2374),u=["/properties"];t.default=function(e){return[n,i,o,s,t(this,a),c,t(this,p)].forEach((e=>this.addMetaSchema(e,void 0,!1))),this;function t(t,r){return e?t.$dataMetaSchema(r,u):r}}},4087:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2577),i=r(996),o=r(5568),s=r(6795),a=r(235),c=r(2567),p=r(1233),u=r(1968),f=["/properties"];t.default=function(e){return[n,i,o,s,a,t(this,c),p,t(this,u)].forEach((e=>this.addMetaSchema(e,void 0,!1))),this;function t(t,r){return e?t.$dataMetaSchema(r,f):r}}},3510:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4063);n.code='require("ajv/dist/runtime/equal").default',t.default=n},4499:(e,t)=>{"use strict";function r(e){const t=e.length;let r,n=0,i=0;for(;i=55296&&r<=56319&&i{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(540);n.code='require("ajv/dist/runtime/uri").default',t.default=n},7426:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=r},4783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const n=r(3487),i=r(6776),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>n.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?s(e,n):(0,i.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function s(e,t){const{gen:r,schema:o,data:s,keyword:a,it:c}=e;c.items=!0;const p=r.const("len",n._`${s}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(n._`${p} <= ${t.length}`);else if("object"==typeof o&&!(0,i.alwaysValidSchema)(c,o)){const o=r.var("valid",n._`${p} <= ${t.length}`);r.if((0,n.not)(o),(()=>function(o){r.forRange("i",t.length,p,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:i.Type.Num},o),c.allErrors||r.if((0,n.not)(o),(()=>r.break()))}))}(o))),e.ok(o)}}t.validateAdditionalItems=s,t.default=o},9351:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(412),i=r(3487),o=r(2141),s=r(6776),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>i._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:a,data:c,errsCount:p,it:u}=e;if(!p)throw new Error("ajv implementation error");const{allErrors:f,opts:l}=u;if(u.props=!0,"all"!==l.removeAdditional&&(0,s.alwaysValidSchema)(u,r))return;const d=(0,n.allSchemaProperties)(a.properties),h=(0,n.allSchemaProperties)(a.patternProperties);function m(e){t.code(i._`delete ${c}[${e}]`)}function y(n){if("all"===l.removeAdditional||l.removeAdditional&&!1===r)m(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(f||t.break());if("object"==typeof r&&!(0,s.alwaysValidSchema)(u,r)){const r=t.name("valid");"failing"===l.removeAdditional?(g(n,r,!1),t.if((0,i.not)(r),(()=>{e.reset(),m(n)}))):(g(n,r),f||t.if((0,i.not)(r),(()=>t.break())))}}}function g(t,r,n){const i={keyword:"additionalProperties",dataProp:t,dataPropType:s.Type.Str};!1===n&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,r)}t.forIn("key",c,(r=>{d.length||h.length?t.if(function(r){let o;if(d.length>8){const e=(0,s.schemaRefOrVal)(u,a.properties,"properties");o=(0,n.isOwnProperty)(t,e,r)}else o=d.length?(0,i.or)(...d.map((e=>i._`${r} === ${e}`))):i.nil;return h.length&&(o=(0,i.or)(o,...h.map((t=>i._`${(0,n.usePattern)(e,t)}.test(${r})`)))),(0,i.not)(o)}(r),(()=>y(r))):y(r)})),e.ok(i._`${p} === ${o.default.errors}`)}};t.default=a},1125:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6776),i={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach(((t,r)=>{if((0,n.alwaysValidSchema)(i,t))return;const s=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(s)}))}};t.default=i},19:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:r(412).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=n},9864:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?n.str`must contain at least ${e} valid item(s)`:n.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?n._`{minContains: ${e}}`:n._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:o,data:s,it:a}=e;let c,p;const{minContains:u,maxContains:f}=o;a.opts.next?(c=void 0===u?1:u,p=f):c=1;const l=t.const("len",n._`${s}.length`);if(e.setParams({min:c,max:p}),void 0===p&&0===c)return void(0,i.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==p&&c>p)return(0,i.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,i.alwaysValidSchema)(a,r)){let t=n._`${l} >= ${c}`;return void 0!==p&&(t=n._`${t} && ${l} <= ${p}`),void e.pass(t)}a.items=!0;const d=t.name("valid");function h(){const e=t.name("_valid"),r=t.let("count",0);m(e,(()=>t.if(e,(()=>function(e){t.code(n._`${e}++`),void 0===p?t.if(n._`${e} >= ${c}`,(()=>t.assign(d,!0).break())):(t.if(n._`${e} > ${p}`,(()=>t.assign(d,!1).break())),1===c?t.assign(d,!0):t.if(n._`${e} >= ${c}`,(()=>t.assign(d,!0))))}(r)))))}function m(r,n){t.forRange("i",0,l,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:i.Type.Num,compositeRule:!0},r),n()}))}void 0===p&&1===c?m(d,(()=>t.if(d,(()=>t.break())))):0===c?(t.let(d,!0),void 0!==p&&t.if(n._`${s}.length > 0`,h)):(t.let(d,!1),h()),e.result(d,(()=>e.reset()))}};t.default=o},7772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const n=r(3487),i=r(6776),o=r(412);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>{const i=1===t?"property":"properties";return n.str`must have ${i} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:i}})=>n._`{property: ${e}, - missingProperty: ${i}, - depsCount: ${t}, - deps: ${r}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e)"__proto__"!==n&&((Array.isArray(e[n])?t:r)[n]=e[n]);return[t,r]}(e);a(e,t),c(e,r)}};function a(e,t=e.schema){const{gen:r,data:i,it:s}=e;if(0===Object.keys(t).length)return;const a=r.let("missing");for(const c in t){const p=t[c];if(0===p.length)continue;const u=(0,o.propertyInData)(r,i,c,s.opts.ownProperties);e.setParams({property:c,depsCount:p.length,deps:p.join(", ")}),s.allErrors?r.if(u,(()=>{for(const t of p)(0,o.checkReportMissingProp)(e,t)})):(r.if(n._`${u} && (${(0,o.checkMissingProp)(e,p,a)})`),(0,o.reportMissingProp)(e,a),r.else())}}function c(e,t=e.schema){const{gen:r,data:n,keyword:s,it:a}=e,c=r.name("valid");for(const p in t)(0,i.alwaysValidSchema)(a,t[p])||(r.if((0,o.propertyInData)(r,n,p,a.opts.ownProperties),(()=>{const t=e.subschema({keyword:s,schemaProp:p},c);e.mergeValidEvaluated(t,c)}),(()=>r.var(c,!0))),e.ok(c))}t.validatePropertyDeps=a,t.validateSchemaDeps=c,t.default=s},7274:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(7772),i={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,n.validateSchemaDeps)(e)};t.default=i},9434:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>n.str`must match "${e.ifClause}" schema`,params:({params:e})=>n._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:o}=e;void 0===r.then&&void 0===r.else&&(0,i.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const a=s(o,"then"),c=s(o,"else");if(!a&&!c)return;const p=t.let("valid",!0),u=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}(),e.reset(),a&&c){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(u,f("then",r),f("else",r))}else a?t.if(u,f("then")):t.if((0,n.not)(u),f("else"));function f(r,i){return()=>{const o=e.subschema({keyword:r},u);t.assign(p,u),e.mergeValidEvaluated(o,p),i?t.assign(i,n._`${r}`):e.setParams({ifClause:r})}}e.pass(p,(()=>e.error(!0)))}};function s(e,t){const r=e.schema[t];return void 0!==r&&!(0,i.alwaysValidSchema)(e,r)}t.default=o},8200:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4783),i=r(2924),o=r(4665),s=r(1119),a=r(9864),c=r(7772),p=r(3708),u=r(9351),f=r(6239),l=r(2296),d=r(5697),h=r(19),m=r(4200),y=r(1125),g=r(9434),v=r(6552);t.default=function(e=!1){const t=[d.default,h.default,m.default,y.default,g.default,v.default,p.default,u.default,c.default,f.default,l.default];return e?t.push(i.default,s.default):t.push(n.default,o.default),t.push(a.default),t}},4665:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const n=r(3487),i=r(6776),o=r(412),s={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return a(e,"additionalItems",t);r.items=!0,(0,i.alwaysValidSchema)(r,t)||e.ok((0,o.validateArray)(e))}};function a(e,t,r=e.schema){const{gen:o,parentSchema:s,data:a,keyword:c,it:p}=e;!function(e){const{opts:n,errSchemaPath:o}=p,s=r.length,a=s===e.minItems&&(s===e.maxItems||!1===e[t]);if(n.strictTuples&&!a){const e=`"${c}" is ${s}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,i.checkStrictMode)(p,e,n.strictTuples)}}(s),p.opts.unevaluated&&r.length&&!0!==p.items&&(p.items=i.mergeEvaluated.items(o,r.length,p.items));const u=o.name("valid"),f=o.const("len",n._`${a}.length`);r.forEach(((t,r)=>{(0,i.alwaysValidSchema)(p,t)||(o.if(n._`${f} > ${r}`,(()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},u))),e.ok(u))}))}t.validateTuple=a,t.default=s},1119:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o=r(412),s=r(4783),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>n.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:a}=r;n.items=!0,(0,i.alwaysValidSchema)(n,t)||(a?(0,s.validateAdditionalItems)(e,a):e.ok((0,o.validateArray)(e)))}};t.default=a},5697:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6776),i={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:i}=e;if((0,n.alwaysValidSchema)(i,r))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=i},4200:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>n._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:o,it:s}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(s.opts.discriminator&&o.discriminator)return;const a=r,c=t.let("valid",!1),p=t.let("passing",null),u=t.name("_valid");e.setParams({passing:p}),t.block((function(){a.forEach(((r,o)=>{let a;(0,i.alwaysValidSchema)(s,r)?t.var(u,!0):a=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},u),o>0&&t.if(n._`${u} && ${c}`).assign(c,!1).assign(p,n._`[${p}, ${o}]`).else(),t.if(u,(()=>{t.assign(c,!0),t.assign(p,o),a&&e.mergeEvaluated(a,n.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=o},2296:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(412),i=r(3487),o=r(6776),s=r(6776),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:a,parentSchema:c,it:p}=e,{opts:u}=p,f=(0,n.allSchemaProperties)(r),l=f.filter((e=>(0,o.alwaysValidSchema)(p,r[e])));if(0===f.length||l.length===f.length&&(!p.opts.unevaluated||!0===p.props))return;const d=u.strictSchema&&!u.allowMatchingProperties&&c.properties,h=t.name("valid");!0===p.props||p.props instanceof i.Name||(p.props=(0,s.evaluatedPropsToName)(t,p.props));const{props:m}=p;function y(e){for(const t in d)new RegExp(e).test(t)&&(0,o.checkStrictMode)(p,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(r){t.forIn("key",a,(o=>{t.if(i._`${(0,n.usePattern)(e,r)}.test(${o})`,(()=>{const n=l.includes(r);n||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:o,dataPropType:s.Type.Str},h),p.opts.unevaluated&&!0!==m?t.assign(i._`${m}[${o}]`,!0):n||p.allErrors||t.if((0,i.not)(h),(()=>t.break()))}))}))}!function(){for(const e of f)d&&y(e),p.allErrors?g(e):(t.var(h,!0),g(e),t.if(h))}()}};t.default=a},2924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4665),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n.validateTuple)(e,"items")};t.default=i},6239:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4815),i=r(412),o=r(6776),s=r(9351),a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:a,data:c,it:p}=e;"all"===p.opts.removeAdditional&&void 0===a.additionalProperties&&s.default.code(new n.KeywordCxt(p,s.default,"additionalProperties"));const u=(0,i.allSchemaProperties)(r);for(const e of u)p.definedProperties.add(e);p.opts.unevaluated&&u.length&&!0!==p.props&&(p.props=o.mergeEvaluated.props(t,(0,o.toHash)(u),p.props));const f=u.filter((e=>!(0,o.alwaysValidSchema)(p,r[e])));if(0===f.length)return;const l=t.name("valid");for(const r of f)d(r)?h(r):(t.if((0,i.propertyInData)(t,c,r,p.opts.ownProperties)),h(r),p.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(l);function d(e){return p.opts.useDefaults&&!p.compositeRule&&void 0!==r[e].default}function h(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},l)}}};t.default=a},3708:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>n._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:o,it:s}=e;if((0,i.alwaysValidSchema)(s,r))return;const a=t.name("valid");t.forIn("key",o,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,n.not)(a),(()=>{e.error(!0),s.allErrors||t.break()}))})),e.ok(a)}};t.default=o},6552:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6776),i={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,n.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};t.default=i},412:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const n=r(3487),i=r(6776),o=r(2141),s=r(6776);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:n._`Object.prototype.hasOwnProperty`})}function c(e,t,r){return n._`${a(e)}.call(${t}, ${r})`}function p(e,t,r,i){const o=n._`${t}${(0,n.getProperty)(r)} === undefined`;return i?(0,n.or)(o,(0,n.not)(c(e,t,r))):o}function u(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:r,data:i,it:o}=e;r.if(p(r,i,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:n._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},i,o){return(0,n.or)(...i.map((i=>(0,n.and)(p(e,t,i,r.ownProperties),n._`${o} = ${i}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=c,t.propertyInData=function(e,t,r,i){const o=n._`${t}${(0,n.getProperty)(r)} !== undefined`;return i?n._`${o} && ${c(e,t,r)}`:o},t.noPropertyInData=p,t.allSchemaProperties=u,t.schemaProperties=function(e,t){return u(t).filter((r=>!(0,i.alwaysValidSchema)(e,t[r])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:i,schemaPath:s,errorPath:a},it:c},p,u,f){const l=f?n._`${e}, ${t}, ${i}${s}`:t,d=[[o.default.instancePath,(0,n.strConcat)(o.default.instancePath,a)],[o.default.parentData,c.parentData],[o.default.parentDataProperty,c.parentDataProperty],[o.default.rootData,o.default.rootData]];c.opts.dynamicRef&&d.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const h=n._`${l}, ${r.object(...d)}`;return u!==n.nil?n._`${p}.call(${u}, ${h})`:n._`${p}(${h})`};const f=n._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){const i=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(r,i);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:n._`${"new RegExp"===o.code?f:(0,s.useFunc)(e,o)}(${r}, ${i})`})},t.validateArray=function(e){const{gen:t,data:r,keyword:o,it:s}=e,a=t.name("valid");if(s.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(a,!0),c((()=>t.break())),a;function c(s){const c=t.const("len",n._`${r}.length`);t.forRange("i",0,c,(r=>{e.subschema({keyword:o,dataProp:r,dataPropType:i.Type.Num},a),t.if((0,n.not)(a),s)}))}},t.validateUnion=function(e){const{gen:t,schema:r,keyword:o,it:s}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>(0,i.alwaysValidSchema)(s,e)))&&!s.opts.unevaluated)return;const a=t.let("valid",!1),c=t.name("_valid");t.block((()=>r.forEach(((r,i)=>{const s=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},c);t.assign(a,n._`${a} || ${c}`),e.mergeValidEvaluated(s,c)||t.if((0,n.not)(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}},8386:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=r},5684:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8386),i=r(8280),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,i.default];t.default=o},8280:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const n=r(6646),i=r(412),o=r(3487),s=r(2141),a=r(5173),c=r(6776),p={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:i}=e,{baseId:s,schemaEnv:c,validateName:p,opts:l,self:d}=i,{root:h}=c;if(("#"===r||"#/"===r)&&s===h.baseId)return function(){if(c===h)return f(e,p,c,c.$async);const r=t.scopeValue("root",{ref:h});return f(e,o._`${r}.validate`,h,h.$async)}();const m=a.resolveRef.call(d,h,s,r);if(void 0===m)throw new n.default(i.opts.uriResolver,s,r);return m instanceof a.SchemaEnv?function(t){const r=u(e,t);f(e,r,t,t.$async)}(m):function(n){const i=t.scopeValue("schema",!0===l.code.source?{ref:n,code:(0,o.stringify)(n)}:{ref:n}),s=t.name("valid"),a=e.subschema({schema:n,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:r},s);e.mergeEvaluated(a),e.ok(s)}(m)}};function u(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):o._`${r.scopeValue("wrapper",{ref:t})}.validate`}function f(e,t,r,n){const{gen:a,it:p}=e,{allErrors:u,schemaEnv:f,opts:l}=p,d=l.passContext?s.default.this:o.nil;function h(e){const t=o._`${e}.errors`;a.assign(s.default.vErrors,o._`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`),a.assign(s.default.errors,o._`${s.default.vErrors}.length`)}function m(e){var t;if(!p.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==p.props)if(n&&!n.dynamicProps)void 0!==n.props&&(p.props=c.mergeEvaluated.props(a,n.props,p.props));else{const t=a.var("props",o._`${e}.evaluated.props`);p.props=c.mergeEvaluated.props(a,t,p.props,o.Name)}if(!0!==p.items)if(n&&!n.dynamicItems)void 0!==n.items&&(p.items=c.mergeEvaluated.items(a,n.items,p.items));else{const t=a.var("items",o._`${e}.evaluated.items`);p.items=c.mergeEvaluated.items(a,t,p.items,o.Name)}}n?function(){if(!f.$async)throw new Error("async schema referenced by sync schema");const r=a.let("valid");a.try((()=>{a.code(o._`await ${(0,i.callValidateCode)(e,t,d)}`),m(t),u||a.assign(r,!0)}),(e=>{a.if(o._`!(${e} instanceof ${p.ValidationError})`,(()=>a.throw(e))),h(e),u||a.assign(r,!1)})),e.ok(r)}():e.result((0,i.callValidateCode)(e,t,d),(()=>m(t)),(()=>h(t)))}t.getValidate=u,t.callRef=f,t.default=p},1240:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(9306),o=r(5173),s=r(6776),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>n._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:a,parentSchema:c,it:p}=e,{oneOf:u}=c;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=a.propertyName;if("string"!=typeof f)throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!u)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),d=t.const("tag",n._`${r}${(0,n.getProperty)(f)}`);function h(r){const i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},i);return e.mergeEvaluated(o,n.Name),i}t.if(n._`typeof ${d} == "string"`,(()=>function(){const r=function(){var e;const t={},r=i(c);let n=!0;for(let t=0;te.error(!1,{discrError:i.DiscrError.Tag,tag:d,tagName:f}))),e.ok(l)}};t.default=a},9306:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(r=t.DiscrError||(t.DiscrError={})).Tag="tag",r.Mapping="mapping"},7299:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(5684),i=r(2649),o=r(8200),s=r(6121),a=r(1448),c=r(808),p=r(9502),u=r(6167),f=[s.default,n.default,i.default,(0,o.default)(!0),p.default,u.metadataVocabulary,u.contentVocabulary,a.default,c.default];t.default=f},3924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(5684),i=r(2649),o=r(8200),s=r(9502),a=r(6167),c=[n.default,i.default,(0,o.default)(),s.default,a.metadataVocabulary,a.contentVocabulary];t.default=c},6215:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dynamicAnchor=void 0;const n=r(3487),i=r(2141),o=r(5173),s=r(8280),a={keyword:"$dynamicAnchor",schemaType:"string",code:e=>c(e,e.schema)};function c(e,t){const{gen:r,it:a}=e;a.schemaEnv.root.dynamicAnchors[t]=!0;const c=n._`${i.default.dynamicAnchors}${(0,n.getProperty)(t)}`,p="#"===a.errSchemaPath?a.validateName:function(e){const{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:a,localRefs:c,meta:p}=t.root,{schemaId:u}=n.opts,f=new o.SchemaEnv({schema:r,schemaId:u,root:i,baseId:a,localRefs:c,meta:p});return o.compileSchema.call(n,f),(0,s.getValidate)(e,f)}(e);r.if(n._`!${c}`,(()=>r.assign(c,p)))}t.dynamicAnchor=c,t.default=a},5026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dynamicRef=void 0;const n=r(3487),i=r(2141),o=r(8280),s={keyword:"$dynamicRef",schemaType:"string",code:e=>a(e,e.schema)};function a(e,t){const{gen:r,keyword:s,it:a}=e;if("#"!==t[0])throw new Error(`"${s}" only supports hash fragment reference`);const c=t.slice(1);if(a.allErrors)p();else{const t=r.let("valid",!1);p(t),e.ok(t)}function p(e){if(a.schemaEnv.root.dynamicAnchors[c]){const t=r.let("_v",n._`${i.default.dynamicAnchors}${(0,n.getProperty)(c)}`);r.if(t,u(t,e),u(a.validateName,e))}else u(a.validateName,e)()}function u(t,n){return n?()=>r.block((()=>{(0,o.callRef)(e,t),r.let(n,!0)})):()=>(0,o.callRef)(e,t)}}t.dynamicRef=a,t.default=s},6121:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6215),i=r(5026),o=r(4094),s=r(3944),a=[n.default,i.default,o.default,s.default];t.default=a},4094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6215),i=r(6776),o={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,n.dynamicAnchor)(e,""):(0,i.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};t.default=o},3944:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(5026),i={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,n.dynamicRef)(e,e.schema)};t.default=i},9651:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>n.str`must match format "${e}"`,params:({schemaCode:e})=>n._`{format: ${e}}`},code(e,t){const{gen:r,data:i,$data:o,schema:s,schemaCode:a,it:c}=e,{opts:p,errSchemaPath:u,schemaEnv:f,self:l}=c;p.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:l.formats,code:p.code.formats}),s=r.const("fDef",n._`${o}[${a}]`),c=r.let("fType"),u=r.let("format");r.if(n._`typeof ${s} == "object" && !(${s} instanceof RegExp)`,(()=>r.assign(c,n._`${s}.type || "string"`).assign(u,n._`${s}.validate`)),(()=>r.assign(c,n._`"string"`).assign(u,s))),e.fail$data((0,n.or)(!1===p.strictSchema?n.nil:n._`${a} && !${u}`,function(){const e=f.$async?n._`(${s}.async ? await ${u}(${i}) : ${u}(${i}))`:n._`${u}(${i})`,r=n._`(typeof ${u} == "function" ? ${e} : ${u}.test(${i}))`;return n._`${u} && ${u} !== true && ${c} === ${t} && !${r}`}()))}():function(){const o=l.formats[s];if(!o)return void function(){if(!1!==p.strictSchema)throw new Error(e());function e(){return`unknown format "${s}" ignored in schema at path "${u}"`}l.logger.warn(e())}();if(!0===o)return;const[a,c,d]=function(e){const t=e instanceof RegExp?(0,n.regexpCode)(e):p.code.formats?n._`${p.code.formats}${(0,n.getProperty)(s)}`:void 0,i=r.scopeValue("formats",{key:s,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,i]:[e.type||"string",e.validate,n._`${i}.validate`]}(o);a===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!f.$async)throw new Error("async format in sync schema");return n._`await ${d}(${i})`}return"function"==typeof c?n._`${d}(${i})`:n._`${d}.test(${i})`}())}())}};t.default=i},9502:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=[r(9651).default];t.default=n},6167:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},1448:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8921),i=r(7274),o=r(1298),s=[n.default,i.default,o.default];t.default=s},808:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1782),i=r(4641),o=[n.default,i.default];t.default=o},4641:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:e}})=>n.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{gen:t,schema:r,data:o,it:s}=e,a=s.items||0;if(!0===a)return;const c=t.const("len",n._`${o}.length`);if(!1===r)e.setParams({len:a}),e.fail(n._`${c} > ${a}`);else if("object"==typeof r&&!(0,i.alwaysValidSchema)(s,r)){const r=t.var("valid",n._`${c} <= ${a}`);t.if((0,n.not)(r),(()=>function(r,o){t.forRange("i",o,c,(o=>{e.subschema({keyword:"unevaluatedItems",dataProp:o,dataPropType:i.Type.Num},r),s.allErrors||t.if((0,n.not)(r),(()=>t.break()))}))}(r,a))),e.ok(r)}s.items=!0}};t.default=o},1782:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o=r(2141),s={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:e})=>n._`{unevaluatedProperty: ${e.unevaluatedProperty}}`},code(e){const{gen:t,schema:r,data:s,errsCount:a,it:c}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:p,props:u}=c;function f(o){if(!1===r)return e.setParams({unevaluatedProperty:o}),e.error(),void(p||t.break());if(!(0,i.alwaysValidSchema)(c,r)){const r=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:o,dataPropType:i.Type.Str},r),p||t.if((0,n.not)(r),(()=>t.break()))}}u instanceof n.Name?t.if(n._`${u} !== true`,(()=>t.forIn("key",s,(e=>t.if(function(e,t){return n._`!${e} || !${e}[${t}]`}(u,e),(()=>f(e))))))):!0!==u&&t.forIn("key",s,(e=>void 0===u?f(e):t.if(function(e,t){const r=[];for(const i in e)!0===e[i]&&r.push(n._`${t} !== ${i}`);return(0,n.and)(...r)}(u,e),(()=>f(e))))),c.props=!0,e.ok(n._`${a} === ${o.default.errors}`)}};t.default=s},4693:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o=r(3510),s={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>n._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:s,schemaCode:a,schema:c}=e;s||c&&"object"==typeof c?e.fail$data(n._`!${(0,i.useFunc)(t,o.default)}(${r}, ${a})`):e.fail(n._`${c} !== ${r}`)}};t.default=s},8921:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(7772),i={keyword:"dependentRequired",type:"object",schemaType:"object",error:n.error,code:e=>(0,n.validatePropertyDeps)(e)};t.default=i},966:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o=r(3510),s={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>n._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:s,schema:a,schemaCode:c,it:p}=e;if(!s&&0===a.length)throw new Error("enum must have non-empty array");const u=a.length>=p.opts.loopEnum;let f;const l=()=>null!=f?f:f=(0,i.useFunc)(t,o.default);let d;if(u||s)d=t.let("valid"),e.block$data(d,(function(){t.assign(d,!1),t.forOf("v",c,(e=>t.if(n._`${l()}(${r}, ${e})`,(()=>t.assign(d,!0).break()))))}));else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",c);d=(0,n.or)(...a.map(((t,i)=>function(e,t){const i=a[t];return"object"==typeof i&&null!==i?n._`${l()}(${r}, ${e}[${t}])`:n._`${r} === ${i}`}(e,i))))}e.pass(d)}};t.default=s},2649:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3983),i=r(430),o=r(3229),s=r(4336),a=r(498),c=r(3301),p=r(1687),u=r(2958),f=r(4693),l=r(966),d=[n.default,i.default,o.default,s.default,a.default,c.default,p.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},f.default,l.default];t.default=d},1298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6776),i={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){void 0===t.contains&&(0,n.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};t.default=i},1687:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:i}=e,o="maxItems"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`${r}.length ${o} ${i}`)}};t.default=i},3229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),o=r(4499),s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:s,it:a}=e,c="maxLength"===t?n.operators.GT:n.operators.LT,p=!1===a.opts.unicode?n._`${r}.length`:n._`${(0,i.useFunc)(e.gen,o.default)}(${r})`;e.fail$data(n._`${p} ${c} ${s}`)}};t.default=s},3983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=n.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},s={message:({keyword:e,schemaCode:t})=>n.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>n._`{comparison: ${o[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:s,code(e){const{keyword:t,data:r,schemaCode:i}=e;e.fail$data(n._`${r} ${o[t].fail} ${i} || isNaN(${r})`)}};t.default=a},498:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:i}=e,o="maxProperties"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`Object.keys(${r}).length ${o} ${i}`)}};t.default=i},430:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>n.str`must be multiple of ${e}`,params:({schemaCode:e})=>n._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:i,it:o}=e,s=o.opts.multipleOfPrecision,a=t.let("res"),c=s?n._`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:n._`${a} !== parseInt(${a})`;e.fail$data(n._`(${i} === 0 || (${a} = ${r}/${i}, ${c}))`)}};t.default=i},4336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(412),i=r(3487),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match pattern "${e}"`,params:({schemaCode:e})=>i._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:o,schemaCode:s,it:a}=e,c=a.opts.unicodeRegExp?"u":"",p=r?i._`(new RegExp(${s}, ${c}))`:(0,n.usePattern)(e,o);e.fail$data(i._`!${p}.test(${t})`)}};t.default=o},3301:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(412),i=r(3487),o=r(6776),s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>i.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>i._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:s,data:a,$data:c,it:p}=e,{opts:u}=p;if(!c&&0===r.length)return;const f=r.length>=u.loopRequired;if(p.allErrors?function(){if(f||c)e.block$data(i.nil,l);else for(const t of r)(0,n.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(f||c){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,o){e.setParams({missingProperty:r}),t.forOf(r,s,(()=>{t.assign(o,(0,n.propertyInData)(t,a,r,u.ownProperties)),t.if((0,i.not)(o),(()=>{e.error(),t.break()}))}),i.nil)}(o,r))),e.ok(r)}else t.if((0,n.checkMissingProp)(e,r,o)),(0,n.reportMissingProp)(e,o),t.else()}(),u.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${p.schemaEnv.baseId+p.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(p,t,p.opts.strictRequired)}}function l(){t.forOf("prop",s,(r=>{e.setParams({missingProperty:r}),t.if((0,n.noPropertyInData)(t,a,r,u.ownProperties),(()=>e.error()))}))}}};t.default=s},2958:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(453),i=r(3487),o=r(6776),s=r(3510),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>i.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>i._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:r,$data:a,schema:c,parentSchema:p,schemaCode:u,it:f}=e;if(!a&&!c)return;const l=t.let("valid"),d=p.items?(0,n.getSchemaTypes)(p.items):[];function h(o,s){const a=t.name("item"),c=(0,n.checkDataTypes)(d,a,f.opts.strictNumbers,n.DataType.Wrong),p=t.const("indices",i._`{}`);t.for(i._`;${o}--;`,(()=>{t.let(a,i._`${r}[${o}]`),t.if(c,i._`continue`),d.length>1&&t.if(i._`typeof ${a} == "string"`,i._`${a} += "_"`),t.if(i._`typeof ${p}[${a}] == "number"`,(()=>{t.assign(s,i._`${p}[${a}]`),e.error(),t.assign(l,!1).break()})).code(i._`${p}[${a}] = ${o}`)}))}function m(n,a){const c=(0,o.useFunc)(t,s.default),p=t.name("outer");t.label(p).for(i._`;${n}--;`,(()=>t.for(i._`${a} = ${n}; ${a}--;`,(()=>t.if(i._`${c}(${r}[${n}], ${r}[${a}])`,(()=>{e.error(),t.assign(l,!1).break(p)}))))))}e.block$data(l,(function(){const n=t.let("i",i._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(l,!0),t.if(i._`${n} > 1`,(()=>(d.length>0&&!d.some((e=>"object"===e||"array"===e))?h:m)(n,o)))}),i._`${u} === false`),e.ok(l)}};t.default=a},1371:e=>{"use strict";var t=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(e,n,i,o,s,a,c,p,u,f){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var l in n(o,s,a,c,p,u,f),o){var d=o[l];if(Array.isArray(d)){if(l in t.arrayKeywords)for(var h=0;h{"use strict";function r(e,t){for(var r=0;r":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},o=17;t.NEEDS_PARENTHESES=o;var s,a,c,p,u,f,l={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:o,ClassExpression:o,FunctionExpression:o,ObjectExpression:o,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function d(e,t){var r=e.generator;if(e.write("("),null!=t&&t.length>0){r[t[0].type](t[0],e);for(var n=t.length,i=1;i0){e.write(n);for(var s=1;s0){r.VariableDeclarator(n[0],e);for(var o=1;o0){t.write(n),i&&null!=e.comments&&g(t,e.comments,o,n);for(var a=s.length,c=0;c0){for(;i0&&t.write(", ");var o=r[i],s=o.type[6];if("D"===s)t.write(o.local.name,o),i++;else{if("N"!==s)break;t.write("* as "+o.local.name,o),i++}}if(i0)for(var i=0;;){var o=r[i],s=o.local.name;if(t.write(s,o),s!==o.exported.name&&t.write(" as "+o.exported.name),!(++i "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression:function(e,t){t.write("this",e)},Super:function(e,t){t.write("super",e)},RestElement:c=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:c,YieldExpression:function(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression:function(e,t){t.write("await ",e),m(t,e.argument,e)},TemplateLiteral:function(e,t){var r=e.quasis,n=e.expressions;t.write("`");for(var i=n.length,o=0;o0)for(var r=e.elements,n=r.length,i=0;;){var o=r[i];if(null!=o&&this[o.type](o,t),!(++i0){t.write(n),i&&null!=e.comments&&g(t,e.comments,o,n);for(var s=","+n,a=e.properties,c=a.length,p=0;;){var u=a[p];if(i&&null!=u.comments&&g(t,u.comments,o,n),t.write(o),this[u.type](u,t),!(++p0)for(var r=e.properties,n=r.length,i=0;this[r[i].type](r[i],t),++i1)&&("U"!==i[0]||"n"!==i[1]&&"p"!==i[1]||!n.prefix||n.operator[0]!==r||"+"!==r&&"-"!==r)||t.write(" "),o?(t.write(r.length>1?" (":"("),this[i](n,t),t.write(")")):this[i](n,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression:function(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression:function(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern:function(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:p=function(e,t){var r="in"===e.operator;r&&t.write("("),m(t,e.left,e,!1),t.write(" "+e.operator+" "),m(t,e.right,e,!0),r&&t.write(")")},LogicalExpression:p,ConditionalExpression:function(e,t){var r=e.test,n=t.expressionsPrecedence[r.type];n===o||n<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[r.type](r,t),t.write(")")):this[r.type](r,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression:function(e,t){t.write("new ");var r=t.expressionsPrecedence[e.callee.type];r===o||r0&&(this.lineEndSize>0&&(1===p.length?e[c-1]===p:e.endsWith(p))?(this.line+=this.lineEndSize,this.column=0):this.column+=c)}},{key:"toString",value:function(){return this.output}}])&&r(t.prototype,n),e}()},5623:e=>{"use strict";function t(e,t,i){e instanceof RegExp&&(e=r(e,i)),t instanceof RegExp&&(t=r(t,i));var o=n(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function r(e,t){var r=t.match(e);return r?r[0]:null}function n(e,t,r){var n,i,o,s,a,c=r.indexOf(e),p=r.indexOf(t,c+1),u=c;if(c>=0&&p>0){for(n=[],o=r.length;u>=0&&!a;)u==c?(n.push(u),c=r.indexOf(e,u+1)):1==n.length?a=[n.pop(),p]:((i=n.pop())=0?c:p;n.length&&(a=[o,s])}return a}e.exports=t,t.range=n},9742:(e,t)=>{"use strict";t.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=c(e),s=o[0],a=o[1],p=new i(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),u=0,f=a>0?s-4:s;for(r=0;r>16&255,p[u++]=t>>8&255,p[u++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,p[u++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,p[u++]=t>>8&255,p[u++]=255&t),p},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=16383,a=0,c=n-i;ac?c:a+s));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function p(e,t,n){for(var i,o,s=[],a=t;a>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},9560:function(e,t,r){var n;!function(i){"use strict";function o(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function s(e,t,r,n,i,s){return o((a=o(o(t,e),o(n,s)))<<(c=i)|a>>>32-c,r);var a,c}function a(e,t,r,n,i,o,a){return s(t&r|~t&n,e,t,i,o,a)}function c(e,t,r,n,i,o,a){return s(t&n|r&~n,e,t,i,o,a)}function p(e,t,r,n,i,o,a){return s(t^r^n,e,t,i,o,a)}function u(e,t,r,n,i,o,a){return s(r^(t|~n),e,t,i,o,a)}function f(e,t){var r,n,i,s,f;e[t>>5]|=128<>>9<<4)]=t;var l=1732584193,d=-271733879,h=-1732584194,m=271733878;for(r=0;r>5]>>>t%32&255);return r}function d(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+n.charAt(15&t);return i}function m(e){return unescape(encodeURIComponent(e))}function y(e){return function(e){return l(f(d(e),8*e.length))}(m(e))}function g(e,t){return function(e,t){var r,n,i=d(e),o=[],s=[];for(o[15]=s[15]=void 0,i.length>16&&(i=f(i,8*e.length)),r=0;r<16;r+=1)o[r]=909522486^i[r],s[r]=1549556828^i[r];return n=f(o.concat(d(t)),512+8*t.length),l(f(s.concat(n),640))}(m(e),m(t))}function v(e,t,r){return t?r?g(t,e):h(g(t,e)):r?y(e):h(y(e))}void 0===(n=function(){return v}.call(t,r,t,e))||(e.exports=n)}()},3644:(e,t,r)=>{var n=r(1048),i=r(5623);e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),g(function(e){return e.split("\\\\").join(o).split("\\{").join(s).split("\\}").join(a).split("\\,").join(c).split("\\.").join(p)}(e),!0).map(f)):[]};var o="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",c="\0COMMA"+Math.random()+"\0",p="\0PERIOD"+Math.random()+"\0";function u(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function f(e){return e.split(o).join("\\").split(s).join("{").split(a).join("}").split(c).join(",").split(p).join(".")}function l(e){if(!e)return[""];var t=[],r=i("{","}",e);if(!r)return e.split(",");var n=r.pre,o=r.body,s=r.post,a=n.split(",");a[a.length-1]+="{"+o+"}";var c=l(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),t.push.apply(t,a),t}function d(e){return"{"+e+"}"}function h(e){return/^-?0\d/.test(e)}function m(e,t){return e<=t}function y(e,t){return e>=t}function g(e,t){var r=[],o=i("{","}",e);if(!o||/\$$/.test(o.pre))return[e];var s,c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),f=c||p,v=o.body.indexOf(",")>=0;if(!f&&!v)return o.post.match(/,.*\}/)?g(e=o.pre+"{"+o.body+a+o.post):[e];if(f)s=o.body.split(/\.\./);else if(1===(s=l(o.body)).length&&1===(s=g(s[0],!1).map(d)).length)return($=o.post.length?g(o.post,!1):[""]).map((function(e){return o.pre+s[0]+e}));var b,j=o.pre,$=o.post.length?g(o.post,!1):[""];if(f){var _=u(s[0]),x=u(s[1]),P=Math.max(s[0].length,s[1].length),w=3==s.length?Math.abs(u(s[2])):1,S=m;x<_&&(w*=-1,S=y);var O=s.some(h);b=[];for(var E=_;S(E,x);E+=w){var A;if(p)"\\"===(A=String.fromCharCode(E))&&(A="");else if(A=String(E),O){var I=P-A.length;if(I>0){var T=new Array(I+1).join("0");A=E<0?"-"+T+A.slice(1):T+A}}b.push(A)}}else b=n(s,(function(e){return g(e,!1)}));for(var k=0;k{"use strict";var n=r(9742),i=r(645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=c,t.h2=50;var s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return p(e,t,r)}function p(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|m(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(L(e,Uint8Array)){var t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return l(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer))return d(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(L(e,SharedArrayBuffer)||e&&L(e.buffer,SharedArrayBuffer)))return d(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);var i=function(e){if(c.isBuffer(e)){var t=0|h(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||z(e.length)?a(0):l(e):"Buffer"===e.type&&Array.isArray(e.data)?l(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return u(e),a(e<0?0:0|h(e))}function l(e){for(var t=e.length<0?0:0|h(e.length),r=a(t),n=0;n=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||L(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return M(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(e).length;default:if(i)return n?-1:M(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,r);case"utf8":case"utf-8":return S(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return A(this,t,r);case"base64":return w(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),z(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){var o,s=1,a=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,r/=2}function p(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var u=-1;for(o=r;oa&&(r=a-c),o=r;o>=0;o--){for(var f=!0,l=0;li&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var s=0;s>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function w(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function S(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:p>223?3:p>191?2:1;if(i+f<=r)switch(f){case 1:p<128&&(u=p);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&p)<<6|63&o)>127&&(u=c);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(c=(15&p)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&p)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=f}return function(e){var t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);for(var r="",n=0;nn.length?c.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else{if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i)}i+=o.length}return n},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tr&&(e+=" ... "),""},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(L(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(o,s),p=this.slice(n,i),u=e.slice(t,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return j(this,e,t,r);case"utf8":case"utf-8":return $(this,e,t,r);case"ascii":case"latin1":case"binary":return _(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,r,n,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function D(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(e,t,r,n,o){return t=+t,r>>>=0,o||D(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function F(e,t,r,n,o){return t=+t,r>>>=0,o||D(e,0,r,8),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||k(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||k(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||k(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||k(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||k(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||k(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||k(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||k(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||k(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||k(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||R(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,n||R(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);R(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o>0)-a&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);R(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function q(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function z(e){return e!=e}var B=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},1924:(e,t,r)=>{"use strict";var n=r(210),i=r(5559),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},5559:(e,t,r)=>{"use strict";var n=r(8612),i=r(210),o=i("%Function.prototype.apply%"),s=i("%Function.prototype.call%"),a=i("%Reflect.apply%",!0)||n.call(s,o),c=i("%Object.getOwnPropertyDescriptor%",!0),p=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(p)try{p({},"a",{value:1})}catch(e){p=null}e.exports=function(e){var t=a(n,s,arguments);if(c&&p){var r=c(t,"length");r.configurable&&p(t,"length",{value:1+u(0,e.length-(arguments.length-1))})}return t};var f=function(){return a(n,o,arguments)};p?p(e.exports,"apply",{value:f}):e.exports.apply=f},1048:e=>{e.exports=function(e,r){for(var n=[],i=0;i{"use strict";var n=r(2215),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=Object.defineProperty,c=r(1044)(),p=a&&c,u=function(e,t,r,n){var i;(!(t in e)||"function"==typeof(i=n)&&"[object Function]"===o.call(i)&&n())&&(p?a(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},f=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=s.call(o,Object.getOwnPropertySymbols(t)));for(var a=0;a{function r(e,t,r,n){var o={};return function(s){if(!o[s]){var a={},c=[],p=[];for(p.push({node:s,processed:!1});p.length>0;){var u=p[p.length-1],f=u.processed,l=u.node;if(f)p.pop(),c.pop(),a[l]=!1,o[l]=!0,t&&0!==e[l].length||r.push(l);else{if(o[l]){p.pop();continue}if(a[l]){if(n){p.pop();continue}throw c.push(l),new i(c)}a[l]=!0,c.push(l);for(var d=e[l],h=d.length-1;h>=0;h--)p.push({node:d[h],processed:!1});u.processed=!0}}}}}var n=t.DepGraph=function(e){this.nodes={},this.outgoingEdges={},this.incomingEdges={},this.circular=e&&!!e.circular};n.prototype={size:function(){return Object.keys(this.nodes).length},addNode:function(e,t){this.hasNode(e)||(this.nodes[e]=2===arguments.length?t:e,this.outgoingEdges[e]=[],this.incomingEdges[e]=[])},removeNode:function(e){this.hasNode(e)&&(delete this.nodes[e],delete this.outgoingEdges[e],delete this.incomingEdges[e],[this.incomingEdges,this.outgoingEdges].forEach((function(t){Object.keys(t).forEach((function(r){var n=t[r].indexOf(e);n>=0&&t[r].splice(n,1)}),this)})))},hasNode:function(e){return this.nodes.hasOwnProperty(e)},getNodeData:function(e){if(this.hasNode(e))return this.nodes[e];throw new Error("Node does not exist: "+e)},setNodeData:function(e,t){if(!this.hasNode(e))throw new Error("Node does not exist: "+e);this.nodes[e]=t},addDependency:function(e,t){if(!this.hasNode(e))throw new Error("Node does not exist: "+e);if(!this.hasNode(t))throw new Error("Node does not exist: "+t);return-1===this.outgoingEdges[e].indexOf(t)&&this.outgoingEdges[e].push(t),-1===this.incomingEdges[t].indexOf(e)&&this.incomingEdges[t].push(e),!0},removeDependency:function(e,t){var r;this.hasNode(e)&&(r=this.outgoingEdges[e].indexOf(t))>=0&&this.outgoingEdges[e].splice(r,1),this.hasNode(t)&&(r=this.incomingEdges[t].indexOf(e))>=0&&this.incomingEdges[t].splice(r,1)},clone:function(){var e=this,t=new n;return Object.keys(e.nodes).forEach((function(r){t.nodes[r]=e.nodes[r],t.outgoingEdges[r]=e.outgoingEdges[r].slice(0),t.incomingEdges[r]=e.incomingEdges[r].slice(0)})),t},directDependenciesOf:function(e){if(this.hasNode(e))return this.outgoingEdges[e].slice(0);throw new Error("Node does not exist: "+e)},directDependantsOf:function(e){if(this.hasNode(e))return this.incomingEdges[e].slice(0);throw new Error("Node does not exist: "+e)},dependenciesOf:function(e,t){if(this.hasNode(e)){var n=[];r(this.outgoingEdges,t,n,this.circular)(e);var i=n.indexOf(e);return i>=0&&n.splice(i,1),n}throw new Error("Node does not exist: "+e)},dependantsOf:function(e,t){if(this.hasNode(e)){var n=[];r(this.incomingEdges,t,n,this.circular)(e);var i=n.indexOf(e);return i>=0&&n.splice(i,1),n}throw new Error("Node does not exist: "+e)},overallOrder:function(e){var t=this,n=[],i=Object.keys(this.nodes);if(0===i.length)return n;if(!this.circular){var o=r(this.outgoingEdges,!1,[],this.circular);i.forEach((function(e){o(e)}))}var s=r(this.outgoingEdges,e,n,this.circular);return i.filter((function(e){return 0===t.incomingEdges[e].length})).forEach((function(e){s(e)})),this.circular&&i.filter((function(e){return-1===n.indexOf(e)})).forEach((function(e){s(e)})),n},entryNodes:function(){var e=this;return Object.keys(this.nodes).filter((function(t){return 0===e.incomingEdges[t].length}))}},n.prototype.directDependentsOf=n.prototype.directDependantsOf,n.prototype.dependentsOf=n.prototype.dependantsOf;var i=t.DepGraphCycleError=function(e){var t="Dependency Cycle Found: "+e.join(" -> "),r=new Error(t);return r.cyclePath=e,Object.setPrototypeOf(r,Object.getPrototypeOf(this)),Error.captureStackTrace&&Error.captureStackTrace(r,i),r};i.prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(i,Error)},9373:(e,t,r)=>{"use strict";var n=r(3854),i=r(1146),o=r(7730),s=r(7364),a=r(6975),c=r(90),p=r(5688),u=r(3633),f=r(210),l=r(7113),d=r(1044)(),h=f("%Error%");function m(e,t){var r=new h(t);p(r,y),delete r.constructor;var o=c(e,l({AdvanceStringIndex:n,GetMethod:s,IsArray:a,Type:u},e));return i(r,"errors",o),r}d&&Object.defineProperty(m,"prototype",{writable:!1});var y=m.prototype;if(!o(y,"constructor",m)||!o(y,"message","")||!o(y,"name","AggregateError"))throw new h("unable to install AggregateError.prototype properties; please report this!");p(m.prototype,Error.prototype),e.exports=m},6630:(e,t,r)=>{"use strict";var n=r(8612),i=r(4289),o=r(5972).functionsHaveConfigurableNames(),s=r(9373),a=r(7114),c=r(4534),p=a(),u=n.call(p);Object.defineProperty&&(o&&Object.defineProperty(u,"name",{value:p.name}),Object.defineProperty(u,"prototype",{value:p.prototype})),i(u,{getPolyfill:a,implementation:s,shim:c}),e.exports=u},7114:(e,t,r)=>{"use strict";var n=r(9373);e.exports=function(){return"function"==typeof AggregateError?AggregateError:n}},4534:(e,t,r)=>{"use strict";var n=r(4289),i=r(2503)(),o=r(7114);e.exports=function(){var e=o();return n(i,{AggregateError:e},{AggregateError:function(){return i.AggregateError!==e}}),e}},4063:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var s=o[i];if(!e(t[s],r[s]))return!1}return!0}return t!=t&&r!=r}},3316:e=>{function t(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),s=t.get(o);return void 0===s&&(s=e.call(this,n),t.set(o,s)),s}function r(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function n(e,t,r,n,i){return r.bind(t,e,n,i)}function i(e,i){return n(e,this,1===e.length?t:r,i.cache.create(),i.serializer)}function o(){return JSON.stringify(arguments)}function s(){this.cache=Object.create(null)}s.prototype.has=function(e){return e in this.cache},s.prototype.get=function(e){return this.cache[e]},s.prototype.set=function(e,t){this.cache[e]=t};var a={create:function(){return new s}};e.exports=function(e,t){var r=t&&t.cache?t.cache:a,n=t&&t.serializer?t.serializer:o;return(t&&t.strategy?t.strategy:i)(e,{cache:r,serializer:n})},e.exports.strategies={variadic:function(e,t){return n(e,this,r,t.cache.create(),t.serializer)},monadic:function(e,r){return n(e,this,t,r.cache.create(),r.serializer)}}},7648:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,i="[object Function]";e.exports=function(e){var o=this;if("function"!=typeof o||n.call(o)!==i)throw new TypeError(t+o);for(var s,a=r.call(arguments,1),c=function(){if(this instanceof s){var t=o.apply(this,a.concat(r.call(arguments)));return Object(t)===t?t:this}return o.apply(e,a.concat(r.call(arguments)))},p=Math.max(0,o.length-a.length),u=[],f=0;f{"use strict";var n=r(7648);e.exports=Function.prototype.bind||n},5972:e=>{"use strict";var t=function(){return"string"==typeof function(){}.name},r=Object.getOwnPropertyDescriptor;if(r)try{r([],"length")}catch(e){r=null}t.functionsHaveConfigurableNames=function(){if(!t()||!r)return!1;var e=r((function(){}),"name");return!!e&&!!e.configurable};var n=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof n&&""!==function(){}.bind().name},e.exports=t},210:(e,t,r)=>{"use strict";var n,i=SyntaxError,o=Function,s=TypeError,a=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var p=function(){throw new s},u=c?function(){try{return p}catch(e){try{return c(arguments,"callee").get}catch(e){return p}}}():p,f=r(1405)(),l=Object.getPrototypeOf||function(e){return e.__proto__},d={},h="undefined"==typeof Uint8Array?n:l(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?l([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?l(l([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?l((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?l((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?l(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":h,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},y=function e(t){var r;if("%AsyncFunction%"===t)r=a("async function () {}");else if("%GeneratorFunction%"===t)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=a("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(r=l(i.prototype))}return m[t]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(8612),b=r(7642),j=v.call(Function.call,Array.prototype.concat),$=v.call(Function.apply,Array.prototype.splice),_=v.call(Function.call,String.prototype.replace),x=v.call(Function.call,String.prototype.slice),P=v.call(Function.call,RegExp.prototype.exec),w=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,O=function(e){var t=x(e,0,1),r=x(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return _(e,w,(function(e,t,r,i){n[n.length]=r?_(i,S,"$1"):t||e})),n},E=function(e,t){var r,n=e;if(b(g,n)&&(n="%"+(r=g[n])[0]+"%"),b(m,n)){var o=m[n];if(o===d&&(o=y(n)),void 0===o&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/g,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=O(e),n=r.length>0?r[0]:"",o=E("%"+n+"%",t),a=o.name,p=o.value,u=!1,f=o.alias;f&&(n=f[0],$(r,j([0,1],f)));for(var l=1,d=!0;l=r.length){var v=c(p,h);p=(d=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:p[h]}else d=b(p,h),p=p[h];d&&!u&&(m[a]=p)}}return p}},1221:e=>{"use strict";"undefined"!=typeof self?e.exports=self:"undefined"!=typeof window?e.exports=window:e.exports=Function("return this")()},2503:(e,t,r)=>{"use strict";var n=r(4289),i=r(1221),o=r(2168),s=r(9471),a=o(),c=function(){return a};n(c,{getPolyfill:o,implementation:i,shim:s}),e.exports=c},2168:(e,t,r)=>{"use strict";var n=r(1221);e.exports=function(){return"object"==typeof r.g&&r.g&&r.g.Math===Math&&r.g.Array===Array?r.g:n}},9471:(e,t,r)=>{"use strict";var n=r(4289),i=r(2168);e.exports=function(){var e=i();if(n.supportsDescriptors){var t=Object.getOwnPropertyDescriptor(e,"globalThis");t&&(!t.configurable||!t.enumerable&&t.writable&&globalThis===e)||Object.defineProperty(e,"globalThis",{configurable:!0,enumerable:!1,value:e,writable:!0})}else"object"==typeof globalThis&&globalThis===e||(e.globalThis=e);return e}},1044:(e,t,r)=>{"use strict";var n=r(210)("%Object.defineProperty%",!0),i=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},1405:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(5419);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},6410:(e,t,r)=>{"use strict";var n=r(5419);e.exports=function(){return n()&&!!Symbol.toStringTag}},7642:(e,t,r)=>{"use strict";var n=r(8612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},645:(e,t)=>{t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,c=(1<>1,u=-7,f=r?i-1:0,l=r?-1:1,d=e[t+f];for(f+=l,o=d&(1<<-u)-1,d>>=-u,u+=a;u>0;o=256*o+e[t+f],f+=l,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=256*s+e[t+f],f+=l,u-=8);if(0===o)o=1-p;else{if(o===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=p}return(d?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,c,p=8*o-i-1,u=(1<>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+f>=1?l/c:l*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=u?(a=0,s=u):s+f>=1?(a=(t*c-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[r+d]=255&a,d+=h,a/=256,i-=8);for(s=s<0;e[r+d]=255&s,d+=h,s/=256,p-=8);e[r+d-h]|=128*m}},8172:(e,t,r)=>{"use strict";function n(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:h(e)?3:0}function p(e,t){return 2===c(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){return 2===c(e)?e.get(t):e[t]}function f(e,t,r){var n=c(e);2===n?e.set(t,r):3===n?(e.delete(t),e.add(r)):e[t]=r}function l(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return J&&e instanceof Map}function h(e){return W&&e instanceof Set}function m(e){return e.o||e.t}function y(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ne(e);delete t[Z];for(var r=re(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=v),Object.freeze(e),t&&a(e,(function(e,t){return g(t,!0)}),!0)),e}function v(){n(2)}function b(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function j(e){var t=ie[e];return t||n(18,e),t}function $(e,t){ie[e]||(ie[e]=t)}function _(){return K}function x(e,t){t&&(j("Patches"),e.u=[],e.s=[],e.v=t)}function P(e){w(e),e.p.forEach(O),e.p=null}function w(e){e===K&&(K=e.l)}function S(e){return K={p:[],l:K,h:e,m:!0,_:0}}function O(e){var t=e[Z];0===t.i||1===t.i?t.j():t.O=!0}function E(e,t){t._=t.p.length;var r=t.p[0],i=void 0!==e&&e!==r;return t.h.g||j("ES5").S(t,e,i),i?(r[Z].P&&(P(t),n(4)),o(e)&&(e=A(t,e),t.l||T(t,e)),t.u&&j("Patches").M(r[Z].t,e,t.u,t.s)):e=A(t,r,[]),P(t),t.u&&t.v(t.u,t.s),e!==Y?e:void 0}function A(e,t,r){if(b(t))return t;var n=t[Z];if(!n)return a(t,(function(i,o){return I(e,n,t,i,o,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return T(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=4===n.i||5===n.i?n.o=y(n.k):n.o;a(3===n.i?new Set(i):i,(function(t,o){return I(e,n,i,t,o,r)})),T(e,i,!1),r&&e.u&&j("Patches").R(n,r,e.u,e.s)}return n.o}function I(e,t,r,n,s,a){if(i(s)){var c=A(e,s,a&&t&&3!==t.i&&!p(t.D,n)?a.concat(n):void 0);if(f(r,n,c),!i(c))return;e.m=!1}if(o(s)&&!b(s)){if(!e.h.F&&e._<1)return;A(e,s),t&&t.A.l||T(e,s)}}function T(e,t,r){void 0===r&&(r=!1),e.h.F&&e.m&&g(t,r)}function k(e,t){var r=e[Z];return(r?m(r):e)[t]}function R(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function D(e){e.P||(e.P=!0,e.l&&D(e.l))}function C(e){e.o||(e.o=y(e.t))}function F(e,t,r){var n=d(t)?j("MapSet").N(t,r):h(t)?j("MapSet").T(t,r):e.g?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:_(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=n,o=oe;r&&(i=[n],o=se);var s=Proxy.revocable(i,o),a=s.revoke,c=s.proxy;return n.k=c,n.j=a,c}(t,r):j("ES5").J(t,r);return(r?r.A:_()).p.push(n),n}function N(e){return i(e)||n(22,e),function e(t){if(!o(t))return t;var r,n=t[Z],i=c(t);if(n){if(!n.P&&(n.i<4||!j("ES5").K(n)))return n.t;n.I=!0,r=M(t,i),n.I=!1}else r=M(t,i);return a(r,(function(t,i){n&&u(n.t,t)===i||f(r,t,e(i))})),3===i?new Set(r):r}(e)}function M(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return y(e)}function q(){function e(e,t){var r=o[e];return r?r.enumerable=t:o[e]=r={configurable:!0,enumerable:t,get:function(){var t=this[Z];return oe.get(t,e)},set:function(t){var r=this[Z];oe.set(r,e,t)}},r}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][Z];if(!i.P)switch(i.i){case 5:n(i)&&D(i);break;case 4:r(i)&&D(i)}}}function r(e){for(var t=e.t,r=e.k,n=re(r),i=n.length-1;i>=0;i--){var o=n[i];if(o!==Z){var s=t[o];if(void 0===s&&!p(t,o))return!0;var a=r[o],c=a&&a[Z];if(c?c.t!==s:!l(a,s))return!0}}var u=!!t[Z];return n.length!==re(t).length+(u?0:1)}function n(e){var t=e.k;if(t.length!==e.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);if(r&&!r.get)return!0;for(var n=0;nae,applyPatches:()=>de,castDraft:()=>B,castImmutable:()=>V,createDraft:()=>he,current:()=>N,default:()=>ye,enableAllPlugins:()=>z,enableES5:()=>q,enableMapSet:()=>L,enablePatches:()=>U,finishDraft:()=>me,freeze:()=>g,immerable:()=>X,isDraft:()=>i,isDraftable:()=>o,nothing:()=>Y,original:()=>s,produce:()=>pe,produceWithPatches:()=>ue,setAutoFreeze:()=>fe,setUseProxies:()=>le});var H,K,G="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),J="undefined"!=typeof Map,W="undefined"!=typeof Set,Q="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Y=G?Symbol.for("immer-nothing"):((H={})["immer-nothing"]=!0,H),X=G?Symbol.for("immer-draftable"):"__$immer_draftable",Z=G?Symbol.for("immer-state"):"__$immer_state",ee="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",te=""+Object.prototype.constructor,re="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ne=Object.getOwnPropertyDescriptors||function(e){var t={};return re(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},ie={},oe={get:function(e,t){if(t===Z)return e;var r=m(e);if(!p(r,t))return function(e,t,r){var n,i=R(t,r);return i?"value"in i?i.value:null===(n=i.get)||void 0===n?void 0:n.call(e.k):void 0}(e,r,t);var n=r[t];return e.I||!o(n)?n:n===k(e.t,t)?(C(e),e.o[t]=F(e.A.h,n,e)):n},has:function(e,t){return t in m(e)},ownKeys:function(e){return Reflect.ownKeys(m(e))},set:function(e,t,r){var n=R(m(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=k(m(e),t),o=null==i?void 0:i[Z];if(o&&o.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(l(r,i)&&(void 0!==r||p(e.t,t)))return!0;C(e),D(e)}return e.o[t]===r&&"number"!=typeof r&&(void 0!==r||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==k(e.t,t)||t in e.t?(e.D[t]=!1,C(e),D(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=m(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){n(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){n(12)}},se={};a(oe,(function(e,t){se[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),se.deleteProperty=function(e,t){return se.set.call(this,e,t,void 0)},se.set=function(e,t,r){return oe.set.call(this,e[0],t,r,e[0])};var ae=function(){function e(e){var t=this;this.g=Q,this.F=!0,this.produce=function(e,r,i){if("function"==typeof e&&"function"!=typeof r){var s=r;r=e;var a=t;return function(e){var t=this;void 0===e&&(e=s);for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));var o=j("Patches").$;return i(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),ce=new ae,pe=ce.produce,ue=ce.produceWithPatches.bind(ce),fe=ce.setAutoFreeze.bind(ce),le=ce.setUseProxies.bind(ce),de=ce.applyPatches.bind(ce),he=ce.createDraft.bind(ce),me=ce.finishDraft.bind(ce);const ye=pe},5320:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,s=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},a=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,p="object"==typeof document&&void 0===document.all&&void 0!==document.all?document.all:{};e.exports=i?function(e){if(e===p)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!s(e)}:function(e){if(e===p)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(c)return function(e){try{return!s(e)&&(n.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=a.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},8420:(e,t,r)=>{"use strict";var n,i,o,s,a=r(1924),c=r(6410)();if(c){n=a("Object.prototype.hasOwnProperty"),i=a("RegExp.prototype.exec"),o={};var p=function(){throw o};s={toString:p,valueOf:p},"symbol"==typeof Symbol.toPrimitive&&(s[Symbol.toPrimitive]=p)}var u=a("Object.prototype.toString"),f=Object.getOwnPropertyDescriptor;e.exports=c?function(e){if(!e||"object"!=typeof e)return!1;var t=f(e,"lastIndex");if(!t||!n(t,"value"))return!1;try{i(e,s)}catch(e){return e===o}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===u(e)}},9981:(e,t,r)=>{"use strict";var n=String.prototype.valueOf,i=Object.prototype.toString,o=r(6410)();e.exports=function(e){return"string"==typeof e||"object"==typeof e&&(o?function(e){try{return n.call(e),!0}catch(e){return!1}}(e):"[object String]"===i.call(e))}},9038:(e,t)=>{var r=/~/,n=/~[01]/g;function i(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function o(e){return r.test(e)?e.replace(n,i):e}function s(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e)){for(const t of e)if("string"!=typeof t&&"number"!=typeof t)throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function a(e,t){if("object"!=typeof e)throw new Error("Invalid input object.");var r=(t=s(t)).length;if(1===r)return e;for(var n=1;ns,void 0===e[n]&&(Array.isArray(e)&&"-"===n&&(n=e.length),i&&(""!==t[s]&&t[s]<1/0||"-"===t[s]?e[n]=[]:e[n]={})),!i)break;e=e[n]}var c=e[n];return void 0===r?delete e[n]:e[n]=r,c}(e,t,r)}t.get=a,t.set=c,t.compile=function(e){var t=s(e);return{get:function(e){return a(e,t)},set:function(e,r){return c(e,t,r)}}}},2937:e=>{"use strict";const t=[],r=[],n=(e,n)=>{if(e===n)return 0;const i=e;e.length>n.length&&(e=n,n=i);let o=e.length,s=n.length;for(;o>0&&e.charCodeAt(~-o)===n.charCodeAt(~-s);)o--,s--;let a,c,p,u,f=0;for(;fc?u>c?c+1:u:u>p?p+1:u;return c};e.exports=n,e.exports.default=n},9208:(e,t,r)=>{var n,i="__lodash_hash_undefined__",o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/,a=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,u=/^\[object .+?Constructor\]$/,f="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,l="object"==typeof self&&self&&self.Object===Object&&self,d=f||l||Function("return this")(),h=Array.prototype,m=Function.prototype,y=Object.prototype,g=d["__core-js_shared__"],v=(n=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",b=m.toString,j=y.hasOwnProperty,$=y.toString,_=RegExp("^"+b.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=d.Symbol,P=h.splice,w=D(d,"Map"),S=D(Object,"create"),O=x?x.prototype:void 0,E=O?O.toString:void 0;function A(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},I.prototype.set=function(e,t){var r=this.__data__,n=k(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},T.prototype.clear=function(){this.__data__={hash:new A,map:new(w||I),string:new A}},T.prototype.delete=function(e){return R(this,e).delete(e)},T.prototype.get=function(e){return R(this,e).get(e)},T.prototype.has=function(e){return R(this,e).has(e)},T.prototype.set=function(e,t){return R(this,e).set(e,t),this};var C=N((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(U(e))return E?E.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return a.test(e)&&r.push(""),e.replace(c,(function(e,t,n,i){r.push(n?i.replace(p,"$1"):t||e)})),r}));function F(e){if("string"==typeof e||U(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function N(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s),s};return r.cache=new(N.Cache||T),r}N.Cache=T;var M=Array.isArray;function q(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function U(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==$.call(e)}e.exports=function(e,t,r){var n=null==e?void 0:function(e,t){var r;t=function(e,t){if(M(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!U(e))||s.test(e)||!o.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:M(r=t)?r:C(r);for(var n=0,i=t.length;null!=e&&n{var n,i="__lodash_hash_undefined__",o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/,a=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,u=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,l="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,d="object"==typeof self&&self&&self.Object===Object&&self,h=l||d||Function("return this")(),m=Array.prototype,y=Function.prototype,g=Object.prototype,v=h["__core-js_shared__"],b=(n=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",j=y.toString,$=g.hasOwnProperty,_=g.toString,x=RegExp("^"+j.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=h.Symbol,w=m.splice,S=F(h,"Map"),O=F(Object,"create"),E=P?P.prototype:void 0,A=E?E.toString:void 0;function I(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1},T.prototype.set=function(e,t){var r=this.__data__,n=D(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},k.prototype.clear=function(){this.__data__={hash:new I,map:new(S||T),string:new I}},k.prototype.delete=function(e){return C(this,e).delete(e)},k.prototype.get=function(e){return C(this,e).get(e)},k.prototype.has=function(e){return C(this,e).has(e)},k.prototype.set=function(e,t){return C(this,e).set(e,t),this};var M=U((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(V(e))return A?A.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return a.test(e)&&r.push(""),e.replace(c,(function(e,t,n,i){r.push(n?i.replace(p,"$1"):t||e)})),r}));function q(e){if("string"==typeof e||V(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function U(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s),s};return r.cache=new(U.Cache||k),r}function L(e,t){return e===t||e!=e&&t!=t}U.Cache=k;var z=Array.isArray;function B(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function V(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==_.call(e)}e.exports=function(e,t,r){return null==e?e:function(e,t,r,n){if(!B(e))return e;t=function(e,t){if(z(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!V(e))||s.test(e)||!o.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:function(e){return z(e)?e:M(e)}(t);for(var i=-1,a=t.length,c=a-1,p=e;null!=p&&++i{var n,i="__lodash_hash_undefined__",o=/^\./,s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,c=/^\[object .+?Constructor\]$/,p="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,u="object"==typeof self&&self&&self.Object===Object&&self,f=p||u||Function("return this")(),l=Array.prototype,d=Function.prototype,h=Object.prototype,m=f["__core-js_shared__"],y=(n=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",g=d.toString,v=h.hasOwnProperty,b=h.toString,j=RegExp("^"+g.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=f.Symbol,_=l.splice,x=k(f,"Map"),P=k(Object,"create"),w=$?$.prototype:void 0,S=w?w.toString:void 0;function O(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1},E.prototype.set=function(e,t){var r=this.__data__,n=I(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},A.prototype.clear=function(){this.__data__={hash:new O,map:new(x||E),string:new O}},A.prototype.delete=function(e){return T(this,e).delete(e)},A.prototype.get=function(e){return T(this,e).get(e)},A.prototype.has=function(e){return T(this,e).has(e)},A.prototype.set=function(e,t){return T(this,e).set(e,t),this};var R=C((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(M(e))return S?S.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return o.test(e)&&r.push(""),e.replace(s,(function(e,t,n,i){r.push(n?i.replace(a,"$1"):t||e)})),r}));function D(e){if("string"==typeof e||M(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function C(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s),s};return r.cache=new(C.Cache||A),r}C.Cache=A;var F=Array.isArray;function N(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function M(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==b.call(e)}e.exports=function(e){return F(e)?function(e,t){for(var r=-1,n=e?e.length:0,i=Array(n);++r"']/g,G=RegExp(H.source),J=RegExp(K.source),W=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,re=RegExp(te.source),ne=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,le=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,ge=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,je=/['\n\r\u2028\u2029\\]/g,$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="a-z\\xdf-\\xf6\\xf8-\\xff",xe="A-Z\\xc0-\\xd6\\xd8-\\xde",Pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",we="["+Pe+"]",Se="["+$e+"]",Oe="\\d+",Ee="["+_e+"]",Ae="[^\\ud800-\\udfff"+Pe+Oe+"\\u2700-\\u27bf"+_e+xe+"]",Ie="\\ud83c[\\udffb-\\udfff]",Te="[^\\ud800-\\udfff]",ke="(?:\\ud83c[\\udde6-\\uddff]){2}",Re="[\\ud800-\\udbff][\\udc00-\\udfff]",De="["+xe+"]",Ce="(?:"+Ee+"|"+Ae+")",Fe="(?:"+De+"|"+Ae+")",Ne="(?:['’](?:d|ll|m|re|s|t|ve))?",Me="(?:['’](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Se+"|"+Ie+")?",Ue="[\\ufe0e\\ufe0f]?",Le=Ue+qe+"(?:\\u200d(?:"+[Te,ke,Re].join("|")+")"+Ue+qe+")*",ze="(?:"+["[\\u2700-\\u27bf]",ke,Re].join("|")+")"+Le,Be="(?:"+[Te+Se+"?",Se,ke,Re,"[\\ud800-\\udfff]"].join("|")+")",Ve=RegExp("['’]","g"),He=RegExp(Se,"g"),Ke=RegExp(Ie+"(?="+Ie+")|"+Be+Le,"g"),Ge=RegExp([De+"?"+Ee+"+"+Ne+"(?="+[we,De,"$"].join("|")+")",Fe+"+"+Me+"(?="+[we,De+Ce,"$"].join("|")+")",De+"?"+Ce+"+"+Ne,De+"+"+Me,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,ze].join("|"),"g"),Je=RegExp("[\\u200d\\ud800-\\udfff"+$e+"\\ufe0e\\ufe0f]"),We=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ye=-1,Xe={};Xe[R]=Xe[D]=Xe[C]=Xe[F]=Xe[N]=Xe[M]=Xe[q]=Xe[U]=Xe[L]=!0,Xe[m]=Xe[y]=Xe[T]=Xe[g]=Xe[k]=Xe[v]=Xe[b]=Xe[j]=Xe[_]=Xe[x]=Xe[P]=Xe[S]=Xe[O]=Xe[E]=Xe[I]=!1;var Ze={};Ze[m]=Ze[y]=Ze[T]=Ze[k]=Ze[g]=Ze[v]=Ze[R]=Ze[D]=Ze[C]=Ze[F]=Ze[N]=Ze[_]=Ze[x]=Ze[P]=Ze[S]=Ze[O]=Ze[E]=Ze[A]=Ze[M]=Ze[q]=Ze[U]=Ze[L]=!0,Ze[b]=Ze[j]=Ze[I]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,rt=parseInt,nt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,it="object"==typeof self&&self&&self.Object===Object&&self,ot=nt||it||Function("return this")(),st=t&&!t.nodeType&&t,at=st&&e&&!e.nodeType&&e,ct=at&&at.exports===st,pt=ct&&nt.process,ut=function(){try{return at&&at.require&&at.require("util").types||pt&&pt.binding&&pt.binding("util")}catch(e){}}(),ft=ut&&ut.isArrayBuffer,lt=ut&&ut.isDate,dt=ut&&ut.isMap,ht=ut&&ut.isRegExp,mt=ut&&ut.isSet,yt=ut&&ut.isTypedArray;function gt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function vt(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i-1}function Pt(e,t,r){for(var n=-1,i=null==e?0:e.length;++n-1;);return r}function Gt(e,t){for(var r=e.length;r--&&Rt(t,e[r],0)>-1;);return r}function Jt(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var Wt=Mt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Qt=Mt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Yt(e){return"\\"+et[e]}function Xt(e){return Je.test(e)}function Zt(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function er(e,t){return function(r){return e(t(r))}}function tr(e,t){for(var r=-1,n=e.length,i=0,o=[];++r",""":'"',"'":"'"}),cr=function e(t){var r,n=(t=null==t?ot:cr.defaults(ot.Object(),t,cr.pick(ot,Qe))).Array,ie=t.Date,$e=t.Error,_e=t.Function,xe=t.Math,Pe=t.Object,we=t.RegExp,Se=t.String,Oe=t.TypeError,Ee=n.prototype,Ae=_e.prototype,Ie=Pe.prototype,Te=t["__core-js_shared__"],ke=Ae.toString,Re=Ie.hasOwnProperty,De=0,Ce=(r=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Fe=Ie.toString,Ne=ke.call(Pe),Me=ot._,qe=we("^"+ke.call(Re).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=ct?t.Buffer:i,Le=t.Symbol,ze=t.Uint8Array,Be=Ue?Ue.allocUnsafe:i,Ke=er(Pe.getPrototypeOf,Pe),Je=Pe.create,et=Ie.propertyIsEnumerable,nt=Ee.splice,it=Le?Le.isConcatSpreadable:i,st=Le?Le.iterator:i,at=Le?Le.toStringTag:i,pt=function(){try{var e=po(Pe,"defineProperty");return e({},"",{}),e}catch(e){}}(),ut=t.clearTimeout!==ot.clearTimeout&&t.clearTimeout,It=ie&&ie.now!==ot.Date.now&&ie.now,Mt=t.setTimeout!==ot.setTimeout&&t.setTimeout,pr=xe.ceil,ur=xe.floor,fr=Pe.getOwnPropertySymbols,lr=Ue?Ue.isBuffer:i,dr=t.isFinite,hr=Ee.join,mr=er(Pe.keys,Pe),yr=xe.max,gr=xe.min,vr=ie.now,br=t.parseInt,jr=xe.random,$r=Ee.reverse,_r=po(t,"DataView"),xr=po(t,"Map"),Pr=po(t,"Promise"),wr=po(t,"Set"),Sr=po(t,"WeakMap"),Or=po(Pe,"create"),Er=Sr&&new Sr,Ar={},Ir=qo(_r),Tr=qo(xr),kr=qo(Pr),Rr=qo(wr),Dr=qo(Sr),Cr=Le?Le.prototype:i,Fr=Cr?Cr.valueOf:i,Nr=Cr?Cr.toString:i;function Mr(e){if(ra(e)&&!Hs(e)&&!(e instanceof zr)){if(e instanceof Lr)return e;if(Re.call(e,"__wrapped__"))return Uo(e)}return new Lr(e)}var qr=function(){function e(){}return function(t){if(!ta(t))return{};if(Je)return Je(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function Ur(){}function Lr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function zr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Br(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function an(e,t,r,n,o,s){var a,c=1&t,p=2&t,u=4&t;if(r&&(a=o?r(e,n,o,s):r(e)),a!==i)return a;if(!ta(e))return e;var f=Hs(e);if(f){if(a=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!c)return Oi(e,a)}else{var l=lo(e),d=l==j||l==$;if(Ws(e))return $i(e,c);if(l==P||l==m||d&&!o){if(a=p||d?{}:mo(e),!c)return p?function(e,t){return Ei(e,fo(e),t)}(e,function(e,t){return e&&Ei(t,Ra(t),e)}(a,e)):function(e,t){return Ei(e,uo(e),t)}(e,rn(a,e))}else{if(!Ze[l])return o?e:{};a=function(e,t,r){var n,i=e.constructor;switch(t){case T:return _i(e);case g:case v:return new i(+e);case k:return function(e,t){var r=t?_i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case R:case D:case C:case F:case N:case M:case q:case U:case L:return xi(e,r);case _:return new i;case x:case E:return new i(e);case S:return function(e){var t=new e.constructor(e.source,le.exec(e));return t.lastIndex=e.lastIndex,t}(e);case O:return new i;case A:return n=e,Fr?Pe(Fr.call(n)):{}}}(e,l,c)}}s||(s=new Gr);var h=s.get(e);if(h)return h;s.set(e,a),aa(e)?e.forEach((function(n){a.add(an(n,t,r,n,e,s))})):na(e)&&e.forEach((function(n,i){a.set(i,an(n,t,r,i,e,s))}));var y=f?i:(u?p?ro:to:p?Ra:ka)(e);return bt(y||e,(function(n,i){y&&(n=e[i=n]),Zr(a,i,an(n,t,r,i,e,s))})),a}function cn(e,t,r){var n=r.length;if(null==e)return!n;for(e=Pe(e);n--;){var o=r[n],s=t[o],a=e[o];if(a===i&&!(o in e)||!s(a))return!1}return!0}function pn(e,t,r){if("function"!=typeof e)throw new Oe(o);return Io((function(){e.apply(i,r)}),t)}function un(e,t,r,n){var i=-1,o=xt,s=!0,a=e.length,c=[],p=t.length;if(!a)return c;r&&(t=wt(t,Bt(r))),n?(o=Pt,s=!1):t.length>=200&&(o=Ht,s=!1,t=new Kr(t));e:for(;++i-1},Vr.prototype.set=function(e,t){var r=this.__data__,n=en(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Hr.prototype.clear=function(){this.size=0,this.__data__={hash:new Br,map:new(xr||Vr),string:new Br}},Hr.prototype.delete=function(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t},Hr.prototype.get=function(e){return ao(this,e).get(e)},Hr.prototype.has=function(e){return ao(this,e).has(e)},Hr.prototype.set=function(e,t){var r=ao(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Kr.prototype.add=Kr.prototype.push=function(e){return this.__data__.set(e,s),this},Kr.prototype.has=function(e){return this.__data__.has(e)},Gr.prototype.clear=function(){this.__data__=new Vr,this.size=0},Gr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Gr.prototype.get=function(e){return this.__data__.get(e)},Gr.prototype.has=function(e){return this.__data__.has(e)},Gr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Vr){var n=r.__data__;if(!xr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Hr(n)}return r.set(e,t),this.size=r.size,this};var fn=Ti(bn),ln=Ti(jn,!0);function dn(e,t){var r=!0;return fn(e,(function(e,n,i){return r=!!t(e,n,i)})),r}function hn(e,t,r){for(var n=-1,o=e.length;++n0&&r(a)?t>1?yn(a,t-1,r,n,i):St(i,a):n||(i[i.length]=a)}return i}var gn=ki(),vn=ki(!0);function bn(e,t){return e&&gn(e,t,ka)}function jn(e,t){return e&&vn(e,t,ka)}function $n(e,t){return _t(t,(function(t){return Xs(e[t])}))}function _n(e,t){for(var r=0,n=(t=gi(t,e)).length;null!=e&&rt}function Sn(e,t){return null!=e&&Re.call(e,t)}function On(e,t){return null!=e&&t in Pe(e)}function En(e,t,r){for(var o=r?Pt:xt,s=e[0].length,a=e.length,c=a,p=n(a),u=1/0,f=[];c--;){var l=e[c];c&&t&&(l=wt(l,Bt(t))),u=gr(l.length,u),p[c]=!r&&(t||s>=120&&l.length>=120)?new Kr(c&&l):i}l=e[0];var d=-1,h=p[0];e:for(;++d=a?c:c*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}));n--;)e[n]=e[n].value;return e}(i)}function Bn(e,t,r){for(var n=-1,i=t.length,o={};++n-1;)a!==e&&nt.call(a,c,1),nt.call(e,c,1);return e}function Hn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;go(i)?nt.call(e,i,1):pi(e,i)}}return e}function Kn(e,t){return e+ur(jr()*(t-e+1))}function Gn(e,t){var r="";if(!e||t<1||t>f)return r;do{t%2&&(r+=e),(t=ur(t/2))&&(e+=e)}while(t);return r}function Jn(e,t){return To(wo(e,t,ic),e+"")}function Wn(e){return Wr(La(e))}function Qn(e,t){var r=La(e);return Do(r,sn(t,0,r.length))}function Yn(e,t,r,n){if(!ta(e))return e;for(var o=-1,s=(t=gi(t,e)).length,a=s-1,c=e;null!=c&&++oo?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=n(o);++i>>1,s=e[o];null!==s&&!pa(s)&&(r?s<=t:s=200){var p=t?null:Gi(e);if(p)return rr(p);s=!1,i=Ht,c=new Kr}else c=t?[]:a;e:for(;++n=n?e:ti(e,t,r)}var ji=ut||function(e){return ot.clearTimeout(e)};function $i(e,t){if(t)return e.slice();var r=e.length,n=Be?Be(r):new e.constructor(r);return e.copy(n),n}function _i(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function xi(e,t){var r=t?_i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Pi(e,t){if(e!==t){var r=e!==i,n=null===e,o=e==e,s=pa(e),a=t!==i,c=null===t,p=t==t,u=pa(t);if(!c&&!u&&!s&&e>t||s&&a&&p&&!c&&!u||n&&a&&p||!r&&p||!o)return 1;if(!n&&!s&&!u&&e1?r[o-1]:i,a=o>2?r[2]:i;for(s=e.length>3&&"function"==typeof s?(o--,s):i,a&&vo(r[0],r[1],a)&&(s=o<3?i:s,o=1),t=Pe(t);++n-1?o[s?t[a]:a]:i}}function Ni(e){return eo((function(t){var r=t.length,n=r,s=Lr.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new Oe(o);if(s&&!c&&"wrapper"==io(a))var c=new Lr([],!0)}for(n=c?n:r;++n1&&b.reverse(),d&&fc))return!1;var u=s.get(e),f=s.get(t);if(u&&f)return u==t&&f==e;var l=-1,d=!0,h=2&r?new Kr:i;for(s.set(e,t),s.set(t,e);++l-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return bt(h,(function(r){var n="_."+r[0];t&r[1]&&!xt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(n),r)))}function Ro(e){var t=0,r=0;return function(){var n=vr(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Do(e,t){var r=-1,n=e.length,o=n-1;for(t=t===i?n:t;++r1?e[t-1]:i;return r="function"==typeof r?(e.pop(),r):i,ss(e,r)}));function ds(e){var t=Mr(e);return t.__chain__=!0,t}function hs(e,t){return t(e)}var ms=eo((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return on(t,e)};return!(t>1||this.__actions__.length)&&n instanceof zr&&go(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:hs,args:[o],thisArg:i}),new Lr(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ys=Ai((function(e,t,r){Re.call(e,r)?++e[r]:nn(e,r,1)})),gs=Fi(Vo),vs=Fi(Ho);function bs(e,t){return(Hs(e)?bt:fn)(e,so(t,3))}function js(e,t){return(Hs(e)?jt:ln)(e,so(t,3))}var $s=Ai((function(e,t,r){Re.call(e,r)?e[r].push(t):nn(e,r,[t])})),_s=Jn((function(e,t,r){var i=-1,o="function"==typeof t,s=Gs(e)?n(e.length):[];return fn(e,(function(e){s[++i]=o?gt(t,e,r):An(e,t,r)})),s})),xs=Ai((function(e,t,r){nn(e,r,t)}));function Ps(e,t){return(Hs(e)?wt:Nn)(e,so(t,3))}var ws=Ai((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]})),Ss=Jn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&vo(e,t[0],t[1])?t=[]:r>2&&vo(t[0],t[1],t[2])&&(t=[t[0]]),zn(e,yn(t,1),[])})),Os=It||function(){return ot.Date.now()};function Es(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,Wi(e,p,i,i,i,i,t)}function As(e,t){var r;if("function"!=typeof t)throw new Oe(o);return e=ma(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var Is=Jn((function(e,t,r){var n=1;if(r.length){var i=tr(r,oo(Is));n|=c}return Wi(e,n,t,r,i)})),Ts=Jn((function(e,t,r){var n=3;if(r.length){var i=tr(r,oo(Ts));n|=c}return Wi(t,n,e,r,i)}));function ks(e,t,r){var n,s,a,c,p,u,f=0,l=!1,d=!1,h=!0;if("function"!=typeof e)throw new Oe(o);function m(t){var r=n,o=s;return n=s=i,f=t,c=e.apply(o,r)}function y(e){return f=e,p=Io(v,t),l?m(e):c}function g(e){var r=e-u;return u===i||r>=t||r<0||d&&e-f>=a}function v(){var e=Os();if(g(e))return b(e);p=Io(v,function(e){var r=t-(e-u);return d?gr(r,a-(e-f)):r}(e))}function b(e){return p=i,h&&n?m(e):(n=s=i,c)}function j(){var e=Os(),r=g(e);if(n=arguments,s=this,u=e,r){if(p===i)return y(u);if(d)return ji(p),p=Io(v,t),m(u)}return p===i&&(p=Io(v,t)),c}return t=ga(t)||0,ta(r)&&(l=!!r.leading,a=(d="maxWait"in r)?yr(ga(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),j.cancel=function(){p!==i&&ji(p),f=0,n=u=s=p=i},j.flush=function(){return p===i?c:b(Os())},j}var Rs=Jn((function(e,t){return pn(e,1,t)})),Ds=Jn((function(e,t,r){return pn(e,ga(t)||0,r)}));function Cs(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(o);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Cs.Cache||Hr),r}function Fs(e){if("function"!=typeof e)throw new Oe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Cs.Cache=Hr;var Ns=vi((function(e,t){var r=(t=1==t.length&&Hs(t[0])?wt(t[0],Bt(so())):wt(yn(t,1),Bt(so()))).length;return Jn((function(n){for(var i=-1,o=gr(n.length,r);++i=t})),Vs=In(function(){return arguments}())?In:function(e){return ra(e)&&Re.call(e,"callee")&&!et.call(e,"callee")},Hs=n.isArray,Ks=ft?Bt(ft):function(e){return ra(e)&&Pn(e)==T};function Gs(e){return null!=e&&ea(e.length)&&!Xs(e)}function Js(e){return ra(e)&&Gs(e)}var Ws=lr||gc,Qs=lt?Bt(lt):function(e){return ra(e)&&Pn(e)==v};function Ys(e){if(!ra(e))return!1;var t=Pn(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!oa(e)}function Xs(e){if(!ta(e))return!1;var t=Pn(e);return t==j||t==$||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Zs(e){return"number"==typeof e&&e==ma(e)}function ea(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ra(e){return null!=e&&"object"==typeof e}var na=dt?Bt(dt):function(e){return ra(e)&&lo(e)==_};function ia(e){return"number"==typeof e||ra(e)&&Pn(e)==x}function oa(e){if(!ra(e)||Pn(e)!=P)return!1;var t=Ke(e);if(null===t)return!0;var r=Re.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ke.call(r)==Ne}var sa=ht?Bt(ht):function(e){return ra(e)&&Pn(e)==S},aa=mt?Bt(mt):function(e){return ra(e)&&lo(e)==O};function ca(e){return"string"==typeof e||!Hs(e)&&ra(e)&&Pn(e)==E}function pa(e){return"symbol"==typeof e||ra(e)&&Pn(e)==A}var ua=yt?Bt(yt):function(e){return ra(e)&&ea(e.length)&&!!Xe[Pn(e)]},fa=Vi(Fn),la=Vi((function(e,t){return e<=t}));function da(e){if(!e)return[];if(Gs(e))return ca(e)?or(e):Oi(e);if(st&&e[st])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[st]());var t=lo(e);return(t==_?Zt:t==O?rr:La)(e)}function ha(e){return e?(e=ga(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ma(e){var t=ha(e),r=t%1;return t==t?r?t-r:t:0}function ya(e){return e?sn(ma(e),0,d):0}function ga(e){if("number"==typeof e)return e;if(pa(e))return l;if(ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=zt(e);var r=he.test(e);return r||ye.test(e)?rt(e.slice(2),r?2:8):de.test(e)?l:+e}function va(e){return Ei(e,Ra(e))}function ba(e){return null==e?"":ai(e)}var ja=Ii((function(e,t){if(_o(t)||Gs(t))Ei(t,ka(t),e);else for(var r in t)Re.call(t,r)&&Zr(e,r,t[r])})),$a=Ii((function(e,t){Ei(t,Ra(t),e)})),_a=Ii((function(e,t,r,n){Ei(t,Ra(t),e,n)})),xa=Ii((function(e,t,r,n){Ei(t,ka(t),e,n)})),Pa=eo(on),wa=Jn((function(e,t){e=Pe(e);var r=-1,n=t.length,o=n>2?t[2]:i;for(o&&vo(t[0],t[1],o)&&(n=1);++r1),t})),Ei(e,ro(e),r),n&&(r=an(r,7,Xi));for(var i=t.length;i--;)pi(r,t[i]);return r})),Na=eo((function(e,t){return null==e?{}:function(e,t){return Bn(e,t,(function(t,r){return Ea(e,r)}))}(e,t)}));function Ma(e,t){if(null==e)return{};var r=wt(ro(e),(function(e){return[e]}));return t=so(t),Bn(e,r,(function(e,r){return t(e,r[0])}))}var qa=Ji(ka),Ua=Ji(Ra);function La(e){return null==e?[]:Vt(e,ka(e))}var za=Di((function(e,t,r){return t=t.toLowerCase(),e+(r?Ba(t):t)}));function Ba(e){return Ya(ba(e).toLowerCase())}function Va(e){return(e=ba(e))&&e.replace(ve,Wt).replace(He,"")}var Ha=Di((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Ka=Di((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ga=Ri("toLowerCase"),Ja=Di((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()})),Wa=Di((function(e,t,r){return e+(r?" ":"")+Ya(t)})),Qa=Di((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Ya=Ri("toUpperCase");function Xa(e,t,r){return e=ba(e),(t=r?i:t)===i?function(e){return We.test(e)}(e)?function(e){return e.match(Ge)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Za=Jn((function(e,t){try{return gt(e,i,t)}catch(e){return Ys(e)?e:new $e(e)}})),ec=eo((function(e,t){return bt(t,(function(t){t=Mo(t),nn(e,t,Is(e[t],e))})),e}));function tc(e){return function(){return e}}var rc=Ni(),nc=Ni(!0);function ic(e){return e}function oc(e){return Dn("function"==typeof e?e:an(e,1))}var sc=Jn((function(e,t){return function(r){return An(r,e,t)}})),ac=Jn((function(e,t){return function(r){return An(e,r,t)}}));function cc(e,t,r){var n=ka(t),i=$n(t,n);null!=r||ta(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=$n(t,ka(t)));var o=!(ta(r)&&"chain"in r&&!r.chain),s=Xs(e);return bt(i,(function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__),i=r.__actions__=Oi(this.__actions__);return i.push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,St([this.value()],arguments))})})),e}function pc(){}var uc=Li(wt),fc=Li($t),lc=Li(At);function dc(e){return bo(e)?Nt(Mo(e)):function(e){return function(t){return _n(t,e)}}(e)}var hc=Bi(),mc=Bi(!0);function yc(){return[]}function gc(){return!1}var vc,bc=Ui((function(e,t){return e+t}),0),jc=Ki("ceil"),$c=Ui((function(e,t){return e/t}),1),_c=Ki("floor"),xc=Ui((function(e,t){return e*t}),1),Pc=Ki("round"),wc=Ui((function(e,t){return e-t}),0);return Mr.after=function(e,t){if("function"!=typeof t)throw new Oe(o);return e=ma(e),function(){if(--e<1)return t.apply(this,arguments)}},Mr.ary=Es,Mr.assign=ja,Mr.assignIn=$a,Mr.assignInWith=_a,Mr.assignWith=xa,Mr.at=Pa,Mr.before=As,Mr.bind=Is,Mr.bindAll=ec,Mr.bindKey=Ts,Mr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Hs(e)?e:[e]},Mr.chain=ds,Mr.chunk=function(e,t,r){t=(r?vo(e,t,r):t===i)?1:yr(ma(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,a=0,c=n(pr(o/t));so?0:o+r),(n=n===i||n>o?o:ma(n))<0&&(n+=o),n=r>n?0:ya(n);r>>0)?(e=ba(e))&&("string"==typeof t||null!=t&&!sa(t))&&!(t=ai(t))&&Xt(e)?bi(or(e),0,r):e.split(t,r):[]},Mr.spread=function(e,t){if("function"!=typeof e)throw new Oe(o);return t=null==t?0:yr(ma(t),0),Jn((function(r){var n=r[t],i=bi(r,0,t);return n&&St(i,n),gt(e,this,i)}))},Mr.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},Mr.take=function(e,t,r){return e&&e.length?ti(e,0,(t=r||t===i?1:ma(t))<0?0:t):[]},Mr.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?ti(e,(t=n-(t=r||t===i?1:ma(t)))<0?0:t,n):[]},Mr.takeRightWhile=function(e,t){return e&&e.length?fi(e,so(t,3),!1,!0):[]},Mr.takeWhile=function(e,t){return e&&e.length?fi(e,so(t,3)):[]},Mr.tap=function(e,t){return t(e),e},Mr.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new Oe(o);return ta(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ks(e,t,{leading:n,maxWait:t,trailing:i})},Mr.thru=hs,Mr.toArray=da,Mr.toPairs=qa,Mr.toPairsIn=Ua,Mr.toPath=function(e){return Hs(e)?wt(e,Mo):pa(e)?[e]:Oi(No(ba(e)))},Mr.toPlainObject=va,Mr.transform=function(e,t,r){var n=Hs(e),i=n||Ws(e)||ua(e);if(t=so(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:ta(e)&&Xs(o)?qr(Ke(e)):{}}return(i?bt:bn)(e,(function(e,n,i){return t(r,e,n,i)})),r},Mr.unary=function(e){return Es(e,1)},Mr.union=rs,Mr.unionBy=ns,Mr.unionWith=is,Mr.uniq=function(e){return e&&e.length?ci(e):[]},Mr.uniqBy=function(e,t){return e&&e.length?ci(e,so(t,2)):[]},Mr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ci(e,i,t):[]},Mr.unset=function(e,t){return null==e||pi(e,t)},Mr.unzip=os,Mr.unzipWith=ss,Mr.update=function(e,t,r){return null==e?e:ui(e,t,yi(r))},Mr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:ui(e,t,yi(r),n)},Mr.values=La,Mr.valuesIn=function(e){return null==e?[]:Vt(e,Ra(e))},Mr.without=as,Mr.words=Xa,Mr.wrap=function(e,t){return Ms(yi(t),e)},Mr.xor=cs,Mr.xorBy=ps,Mr.xorWith=us,Mr.zip=fs,Mr.zipObject=function(e,t){return hi(e||[],t||[],Zr)},Mr.zipObjectDeep=function(e,t){return hi(e||[],t||[],Yn)},Mr.zipWith=ls,Mr.entries=qa,Mr.entriesIn=Ua,Mr.extend=$a,Mr.extendWith=_a,cc(Mr,Mr),Mr.add=bc,Mr.attempt=Za,Mr.camelCase=za,Mr.capitalize=Ba,Mr.ceil=jc,Mr.clamp=function(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=(r=ga(r))==r?r:0),t!==i&&(t=(t=ga(t))==t?t:0),sn(ga(e),t,r)},Mr.clone=function(e){return an(e,4)},Mr.cloneDeep=function(e){return an(e,5)},Mr.cloneDeepWith=function(e,t){return an(e,5,t="function"==typeof t?t:i)},Mr.cloneWith=function(e,t){return an(e,4,t="function"==typeof t?t:i)},Mr.conformsTo=function(e,t){return null==t||cn(e,t,ka(t))},Mr.deburr=Va,Mr.defaultTo=function(e,t){return null==e||e!=e?t:e},Mr.divide=$c,Mr.endsWith=function(e,t,r){e=ba(e),t=ai(t);var n=e.length,o=r=r===i?n:sn(ma(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t},Mr.eq=Ls,Mr.escape=function(e){return(e=ba(e))&&J.test(e)?e.replace(K,Qt):e},Mr.escapeRegExp=function(e){return(e=ba(e))&&re.test(e)?e.replace(te,"\\$&"):e},Mr.every=function(e,t,r){var n=Hs(e)?$t:dn;return r&&vo(e,t,r)&&(t=i),n(e,so(t,3))},Mr.find=gs,Mr.findIndex=Vo,Mr.findKey=function(e,t){return Tt(e,so(t,3),bn)},Mr.findLast=vs,Mr.findLastIndex=Ho,Mr.findLastKey=function(e,t){return Tt(e,so(t,3),jn)},Mr.floor=_c,Mr.forEach=bs,Mr.forEachRight=js,Mr.forIn=function(e,t){return null==e?e:gn(e,so(t,3),Ra)},Mr.forInRight=function(e,t){return null==e?e:vn(e,so(t,3),Ra)},Mr.forOwn=function(e,t){return e&&bn(e,so(t,3))},Mr.forOwnRight=function(e,t){return e&&jn(e,so(t,3))},Mr.get=Oa,Mr.gt=zs,Mr.gte=Bs,Mr.has=function(e,t){return null!=e&&ho(e,t,Sn)},Mr.hasIn=Ea,Mr.head=Go,Mr.identity=ic,Mr.includes=function(e,t,r,n){e=Gs(e)?e:La(e),r=r&&!n?ma(r):0;var i=e.length;return r<0&&(r=yr(i+r,0)),ca(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Rt(e,t,r)>-1},Mr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:ma(r);return i<0&&(i=yr(n+i,0)),Rt(e,t,i)},Mr.inRange=function(e,t,r){return t=ha(t),r===i?(r=t,t=0):r=ha(r),function(e,t,r){return e>=gr(t,r)&&e=-9007199254740991&&e<=f},Mr.isSet=aa,Mr.isString=ca,Mr.isSymbol=pa,Mr.isTypedArray=ua,Mr.isUndefined=function(e){return e===i},Mr.isWeakMap=function(e){return ra(e)&&lo(e)==I},Mr.isWeakSet=function(e){return ra(e)&&"[object WeakSet]"==Pn(e)},Mr.join=function(e,t){return null==e?"":hr.call(e,t)},Mr.kebabCase=Ha,Mr.last=Yo,Mr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n;return r!==i&&(o=(o=ma(r))<0?yr(n+o,0):gr(o,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,o):kt(e,Ct,o,!0)},Mr.lowerCase=Ka,Mr.lowerFirst=Ga,Mr.lt=fa,Mr.lte=la,Mr.max=function(e){return e&&e.length?hn(e,ic,wn):i},Mr.maxBy=function(e,t){return e&&e.length?hn(e,so(t,2),wn):i},Mr.mean=function(e){return Ft(e,ic)},Mr.meanBy=function(e,t){return Ft(e,so(t,2))},Mr.min=function(e){return e&&e.length?hn(e,ic,Fn):i},Mr.minBy=function(e,t){return e&&e.length?hn(e,so(t,2),Fn):i},Mr.stubArray=yc,Mr.stubFalse=gc,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=xc,Mr.nth=function(e,t){return e&&e.length?Ln(e,ma(t)):i},Mr.noConflict=function(){return ot._===this&&(ot._=Me),this},Mr.noop=pc,Mr.now=Os,Mr.pad=function(e,t,r){e=ba(e);var n=(t=ma(t))?ir(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return zi(ur(i),r)+e+zi(pr(i),r)},Mr.padEnd=function(e,t,r){e=ba(e);var n=(t=ma(t))?ir(e):0;return t&&nt){var n=e;e=t,t=n}if(r||e%1||t%1){var o=jr();return gr(e+o*(t-e+tt("1e-"+((o+"").length-1))),t)}return Kn(e,t)},Mr.reduce=function(e,t,r){var n=Hs(e)?Ot:qt,i=arguments.length<3;return n(e,so(t,4),r,i,fn)},Mr.reduceRight=function(e,t,r){var n=Hs(e)?Et:qt,i=arguments.length<3;return n(e,so(t,4),r,i,ln)},Mr.repeat=function(e,t,r){return t=(r?vo(e,t,r):t===i)?1:ma(t),Gn(ba(e),t)},Mr.replace=function(){var e=arguments,t=ba(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Mr.result=function(e,t,r){var n=-1,o=(t=gi(t,e)).length;for(o||(o=1,e=i);++nf)return[];var r=d,n=gr(e,d);t=so(t),e-=d;for(var i=Lt(n,t);++r=s)return e;var c=r-ir(n);if(c<1)return n;var p=a?bi(a,0,c).join(""):e.slice(0,c);if(o===i)return p+n;if(a&&(c+=p.length-c),sa(o)){if(e.slice(c).search(o)){var u,f=p;for(o.global||(o=we(o.source,ba(le.exec(o))+"g")),o.lastIndex=0;u=o.exec(f);)var l=u.index;p=p.slice(0,l===i?c:l)}}else if(e.indexOf(ai(o),c)!=c){var d=p.lastIndexOf(o);d>-1&&(p=p.slice(0,d))}return p+n},Mr.unescape=function(e){return(e=ba(e))&&G.test(e)?e.replace(H,ar):e},Mr.uniqueId=function(e){var t=++De;return ba(e)+t},Mr.upperCase=Qa,Mr.upperFirst=Ya,Mr.each=bs,Mr.eachRight=js,Mr.first=Go,cc(Mr,(vc={},bn(Mr,(function(e,t){Re.call(Mr.prototype,t)||(vc[t]=e)})),vc),{chain:!1}),Mr.VERSION="4.17.21",bt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Mr[e].placeholder=Mr})),bt(["drop","take"],(function(e,t){zr.prototype[e]=function(r){r=r===i?1:yr(ma(r),0);var n=this.__filtered__&&!t?new zr(this):this.clone();return n.__filtered__?n.__takeCount__=gr(r,n.__takeCount__):n.__views__.push({size:gr(r,d),type:e+(n.__dir__<0?"Right":"")}),n},zr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),bt(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;zr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:so(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),bt(["head","last"],(function(e,t){var r="take"+(t?"Right":"");zr.prototype[e]=function(){return this[r](1).value()[0]}})),bt(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");zr.prototype[e]=function(){return this.__filtered__?new zr(this):this[r](1)}})),zr.prototype.compact=function(){return this.filter(ic)},zr.prototype.find=function(e){return this.filter(e).head()},zr.prototype.findLast=function(e){return this.reverse().find(e)},zr.prototype.invokeMap=Jn((function(e,t){return"function"==typeof e?new zr(this):this.map((function(r){return An(r,e,t)}))})),zr.prototype.reject=function(e){return this.filter(Fs(so(e)))},zr.prototype.slice=function(e,t){e=ma(e);var r=this;return r.__filtered__&&(e>0||t<0)?new zr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(r=(t=ma(t))<0?r.dropRight(-t):r.take(t-e)),r)},zr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},zr.prototype.toArray=function(){return this.take(d)},bn(zr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=Mr[n?"take"+("last"==t?"Right":""):t],s=n||/^find/.test(t);o&&(Mr.prototype[t]=function(){var t=this.__wrapped__,a=n?[1]:arguments,c=t instanceof zr,p=a[0],u=c||Hs(t),f=function(e){var t=o.apply(Mr,St([e],a));return n&&l?t[0]:t};u&&r&&"function"==typeof p&&1!=p.length&&(c=u=!1);var l=this.__chain__,d=!!this.__actions__.length,h=s&&!l,m=c&&!d;if(!s&&u){t=m?t:new zr(this);var y=e.apply(t,a);return y.__actions__.push({func:hs,args:[f],thisArg:i}),new Lr(y,l)}return h&&m?e.apply(this,a):(y=this.thru(f),h?n?y.value()[0]:y.value():y)})})),bt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ee[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Mr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(Hs(i)?i:[],e)}return this[r]((function(r){return t.apply(Hs(r)?r:[],e)}))}})),bn(zr.prototype,(function(e,t){var r=Mr[t];if(r){var n=r.name+"";Re.call(Ar,n)||(Ar[n]=[]),Ar[n].push({name:t,func:r})}})),Ar[Mi(i,2).name]=[{name:"wrapper",func:i}],zr.prototype.clone=function(){var e=new zr(this.__wrapped__);return e.__actions__=Oi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oi(this.__views__),e},zr.prototype.reverse=function(){if(this.__filtered__){var e=new zr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},zr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Hs(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Mr.prototype.plant=function(e){for(var t,r=this;r instanceof Ur;){var n=Uo(r);n.__index__=0,n.__values__=i,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t},Mr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof zr){var t=e;return this.__actions__.length&&(t=new zr(this)),(t=t.reverse()).__actions__.push({func:hs,args:[ts],thisArg:i}),new Lr(t,this.__chain__)}return this.thru(ts)},Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=function(){return li(this.__wrapped__,this.__actions__)},Mr.prototype.first=Mr.prototype.head,st&&(Mr.prototype[st]=function(){return this}),Mr}();ot._=cr,(n=function(){return cr}.call(t,r,t,e))===i||(e.exports=n)}.call(this)},1171:(e,t,r)=>{e.exports=l,l.Minimatch=d;var n=function(){try{return r(67)}catch(e){}}()||{sep:"/"};l.sep=n.sep;var i=l.GLOBSTAR=d.GLOBSTAR={},o=r(3644),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",c="[^/]*?",p="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{}),u=/\/+/;function f(e,t){t=t||{};var r={};return Object.keys(e).forEach((function(t){r[t]=e[t]})),Object.keys(t).forEach((function(e){r[e]=t[e]})),r}function l(e,t,r){return m(t),r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&new d(t,r).match(e)}function d(e,t){if(!(this instanceof d))return new d(e,t);m(e),t||(t={}),e=e.trim(),t.allowWindowsEscape||"/"===n.sep||(e=e.split(n.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}function h(e,t){return t||(t=this instanceof d?this.options:{}),e=void 0===e?this.pattern:e,m(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:o(e)}l.filter=function(e,t){return t=t||{},function(r,n,i){return l(r,e,t)}},l.defaults=function(e){if(!e||"object"!=typeof e||!Object.keys(e).length)return l;var t=l,r=function(r,n,i){return t(r,n,f(e,i))};return(r.Minimatch=function(r,n){return new t.Minimatch(r,f(e,n))}).defaults=function(r){return t.defaults(f(e,r)).Minimatch},r.filter=function(r,n){return t.filter(r,f(e,n))},r.defaults=function(r){return t.defaults(f(e,r))},r.makeRe=function(r,n){return t.makeRe(r,f(e,n))},r.braceExpand=function(r,n){return t.braceExpand(r,f(e,n))},r.match=function(r,n,i){return t.match(r,n,f(e,i))},r},d.defaults=function(e){return l.defaults(e).Minimatch},d.prototype.debug=function(){},d.prototype.make=function(){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,r),r=this.globParts=r.map((function(e){return e.split(u)})),this.debug(this.pattern,r),r=r.map((function(e,t,r){return e.map(this.parse,this)}),this),this.debug(this.pattern,r),r=r.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,r),this.set=r}else this.empty=!0;else this.comment=!0},d.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=0;if(!this.options.nonegate){for(var n=0,i=e.length;n65536)throw new TypeError("pattern is too long")};d.prototype.parse=function(e,t){m(e);var r=this.options;if("**"===e){if(!r.noglobstar)return i;e="*"}if(""===e)return"";var n,o="",u=!!r.nocase,f=!1,l=[],d=[],h=!1,g=-1,v=-1,b="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",j=this;function $(){if(n){switch(n){case"*":o+=c,u=!0;break;case"?":o+=a,u=!0;break;default:o+="\\"+n}j.debug("clearStateChar %j %j",n,o),n=!1}}for(var _,x=0,P=e.length;x-1;T--){var k=d[T],R=o.slice(0,k.reStart),D=o.slice(k.reStart,k.reEnd-8),C=o.slice(k.reEnd-8,k.reEnd),F=o.slice(k.reEnd);C+=F;var N=R.split("(").length-1,M=F;for(x=0;x=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,l,t,d),l!==a))}if("string"==typeof u?(p=f===u,this.debug("string match",u,f,p)):(p=f.match(u),this.debug("pattern match",u,f,p)),!p)return!1}if(o===a&&s===c)return!0;if(o===a)return r;if(s===c)return o===a-1&&""===e[o];throw new Error("wtf?")}},3300:(e,t)=>{"use strict";var r=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r)return r;throw new Error("unable to locate global object")}();e.exports=t=r.fetch,r.fetch&&(t.default=r.fetch.bind(r)),t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response},12:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,s=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=a&&c&&"function"==typeof c.get?c.get:null,u=a&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,l="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,j=String.prototype.toUpperCase,$=String.prototype.toLowerCase,_=RegExp.prototype.test,x=Array.prototype.concat,P=Array.prototype.join,w=Array.prototype.slice,S=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,E=Object.getOwnPropertySymbols,A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,k=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function D(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-S(-e):S(e);if(n!==e){var i=String(n),o=v.call(t,i.length+1);return b.call(i,r,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var C=r(4654),F=C.custom,N=z(F)?F:null;function M(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function q(e){return b.call(String(e),/"/g,""")}function U(e){return!("[object Array]"!==H(e)||T&&"object"==typeof e&&T in e)}function L(e){return!("[object RegExp]"!==H(e)||T&&"object"==typeof e&&T in e)}function z(e){if(I)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,n,i){var a=r||{};if(V(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!V(a,"customInspect")||a.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return G(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var j=String(t);return m?D(t,j):j}if("bigint"==typeof t){var _=String(t)+"n";return m?D(t,_):_}var S=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=S&&S>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var E,F=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=P.call(Array(e.indent+1)," ")}return{base:r,prev:P.call(Array(t+1),r)}}(a,n);if(void 0===i)i=[];else if(K(i,t)>=0)return"[Circular]";function B(t,r,o){if(r&&(i=w.call(i)).push(r),o){var s={depth:a.depth};return V(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,n+1,i)}return e(t,a,n+1,i)}if("function"==typeof t&&!L(t)){var J=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ee=Z(t,B);return"[Function"+(J?": "+J:" (anonymous)")+"]"+(ee.length>0?" { "+P.call(ee,", ")+" }":"")}if(z(t)){var te=I?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(t);return"object"!=typeof t||I?te:W(te)}if((E=t)&&"object"==typeof E&&("undefined"!=typeof HTMLElement&&E instanceof HTMLElement||"string"==typeof E.nodeName&&"function"==typeof E.getAttribute)){for(var re="<"+$.call(String(t.nodeName)),ne=t.attributes||[],ie=0;ie"}if(U(t)){if(0===t.length)return"[]";var oe=Z(t,B);return F&&!function(e){for(var t=0;t=0)return!1;return!0}(oe)?"["+X(oe,F)+"]":"[ "+P.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==H(e)||T&&"object"==typeof e&&T in e)}(t)){var se=Z(t,B);return"cause"in Error.prototype||!("cause"in t)||k.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+P.call(se,", ")+" }":"{ ["+String(t)+"] "+P.call(x.call("[cause]: "+B(t.cause),se),", ")+" }"}if("object"==typeof t&&c){if(N&&"function"==typeof t[N]&&C)return C(t,{depth:S-n});if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{p.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return s.call(t,(function(e,r){ae.push(B(r,t,!0)+" => "+B(e,t))})),Y("Map",o.call(t),ae,F)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return u.call(t,(function(e){ce.push(B(e,t))})),Y("Set",p.call(t),ce,F)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{l.call(e,l)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e,l);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if(function(e){return!("[object Number]"!==H(e)||T&&"object"==typeof e&&T in e)}(t))return W(B(Number(t)));if(function(e){if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}(t))return W(B(O.call(t)));if(function(e){return!("[object Boolean]"!==H(e)||T&&"object"==typeof e&&T in e)}(t))return W(h.call(t));if(function(e){return!("[object String]"!==H(e)||T&&"object"==typeof e&&T in e)}(t))return W(B(String(t)));if(!function(e){return!("[object Date]"!==H(e)||T&&"object"==typeof e&&T in e)}(t)&&!L(t)){var pe=Z(t,B),ue=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",le=!ue&&T&&Object(t)===t&&T in t?v.call(H(t),8,-1):fe?"Object":"",de=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(le||fe?"["+P.call(x.call([],le||[],fe||[]),": ")+"] ":"");return 0===pe.length?de+"{}":F?de+"{"+X(pe,F)+"}":de+"{ "+P.call(pe,", ")+" }"}return String(t)};var B=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return B.call(e,t)}function H(e){return m.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return G(v.call(e,0,t.maxStringLength),t)+n}return M(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,J),"single",t)}function J(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+j.call(t.toString(16))}function W(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function Y(e,t,r,n){return e+" ("+t+") {"+(n?X(r,n):P.call(r,", "))+"}"}function X(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+P.call(e,","+r)+"\n"+t.prev}function Z(e,t){var r=U(e),n=[];if(r){n.length=e.length;for(var i=0;i{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=r(1414),a=Object.prototype.propertyIsEnumerable,c=!a.call({toString:null},"toString"),p=a.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!l["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=s(e),a=t&&"[object String]"===o.call(e),l=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var h=p&&r;if(a&&e.length>0&&!i.call(e,0))for(var m=0;m0)for(var y=0;y{"use strict";var n=Array.prototype.slice,i=r(1414),o=Object.keys,s=o?function(e){return o(e)}:r(8987),a=Object.keys;s.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?a(n.call(e)):a(e)})}else Object.keys=s;return Object.keys||s},e.exports=s},1414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},905:e=>{"use strict";class t extends Error{constructor(e,{cause:r}={}){super(e),this.name=t.name,r&&(this.cause=r),this.message=e}}const r=e=>{if(!e)return;const t=e.cause;if("function"==typeof t){const t=e.cause();return t instanceof Error?t:void 0}return t instanceof Error?t:void 0},n=(e,t)=>{if(!(e instanceof Error))return"";const i=e.stack||"";if(t.has(e))return i+"\ncauses have become circular...";const o=r(e);return o?(t.add(e),i+"\ncaused by: "+n(o,t)):i},i=(e,t,n)=>{if(!(e instanceof Error))return"";const o=n?"":e.message||"";if(t.has(e))return o+": ...";const s=r(e);if(s){t.add(e);const r="function"==typeof e.cause;return o+(r?"":": ")+i(s,t,r)}return o};e.exports={ErrorWithCause:t,findCauseByReference:(e,t)=>{if(!e||!t)return;if(!(e instanceof Error))return;if(!(t.prototype instanceof Error)&&t!==Error)return;const n=new Set;let i=e;for(;i&&!n.has(i);){if(n.add(i),i instanceof t)return i;i=r(i)}},getErrorCause:r,stackWithCauses:e=>n(e,new Set),messageWithCauses:e=>i(e,new Set)}},7668:(e,t,r)=>{"use strict";const n=r(4725);e.exports=n,n.default=n},4725:e=>{"use strict";e.exports=function(e,r,n){var i,o="";if(t="",arguments.length>1){if("number"==typeof n)for(i=0;i100)return e.replace(n,o);for(var t="",s=0,a=0;an;)e[r]=e[r-1],r--;e[r]=n}return e}},655:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>o,__asyncDelegator:()=>$,__asyncGenerator:()=>j,__asyncValues:()=>_,__await:()=>b,__awaiter:()=>u,__classPrivateFieldGet:()=>O,__classPrivateFieldSet:()=>E,__createBinding:()=>l,__decorate:()=>a,__exportStar:()=>d,__extends:()=>i,__generator:()=>f,__importDefault:()=>S,__importStar:()=>w,__makeTemplateObject:()=>x,__metadata:()=>p,__param:()=>c,__read:()=>m,__rest:()=>s,__spread:()=>y,__spreadArray:()=>v,__spreadArrays:()=>g,__values:()=>h});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}function c(e,t){return function(r,n){t(r,n,e)}}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function f(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function y(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{(r=i[e](t)).value instanceof b?Promise.resolve(r.value.v).then(c,p):u(o[0][2],r)}catch(e){u(o[0][3],e)}var r}function c(e){a("next",e)}function p(e){a("throw",e)}function u(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function $(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var P=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&l(t,e,r);return P(t,e),t}function S(e){return e&&e.__esModule?e:{default:e}}function O(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function E(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}},540:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),r=0;r1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,i=1;i= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,y=String.fromCharCode;function g(e){throw new RangeError(h[e])}function v(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+function(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}((e=e.replace(d,".")).split("."),t).join(".")}function b(e){for(var t=[],r=0,n=e.length;r=55296&&i<=56319&&r>1,e+=m(e/t);e>455;n+=u)e=m(e/35);return m(n+36*e/(e+38))},_=function(e){var t,r=[],n=e.length,i=0,o=128,s=72,a=e.lastIndexOf("-");a<0&&(a=0);for(var c=0;c=128&&g("not-basic"),r.push(e.charCodeAt(c));for(var f=a>0?a+1:0;f=n&&g("invalid-input");var y=(t=e.charCodeAt(f++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:u;(y>=u||y>m((p-i)/d))&&g("overflow"),i+=y*d;var v=h<=s?1:h>=s+26?26:h-s;if(ym(p/b)&&g("overflow"),d*=b}var j=r.length+1;s=$(i-l,j,0==l),m(i/j)>p-o&&g("overflow"),o+=m(i/j),i%=j,r.splice(i++,0,o)}return String.fromCodePoint.apply(String,r)},x=function(e){var t=[],r=(e=b(e)).length,n=128,i=0,o=72,s=!0,a=!1,c=void 0;try{for(var f,l=e[Symbol.iterator]();!(s=(f=l.next()).done);s=!0){var d=f.value;d<128&&t.push(y(d))}}catch(e){a=!0,c=e}finally{try{!s&&l.return&&l.return()}finally{if(a)throw c}}var h=t.length,v=h;for(h&&t.push("-");v=n&&E<_&&(_=E)}}catch(e){P=!0,w=e}finally{try{!x&&O.return&&O.return()}finally{if(P)throw w}}var A=v+1;_-n>m((p-i)/A)&&g("overflow"),i+=(_-n)*A,n=_;var I=!0,T=!1,k=void 0;try{for(var R,D=e[Symbol.iterator]();!(I=(R=D.next()).done);I=!0){var C=R.value;if(Cp&&g("overflow"),C==n){for(var F=i,N=u;;N+=u){var M=N<=o?1:N>=o+26?26:N-o;if(F>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function E(e){for(var t="",r=0,n=e.length;r=194&&i<224){if(n-r>=6){var o=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&i)<<6|63&o)}else t+=e.substr(r,6);r+=6}else if(i>=224){if(n-r>=9){var s=parseInt(e.substr(r+4,2),16),a=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&i)<<12|(63&s)<<6|63&a)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function A(e,t){function r(e){var r=E(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,O).replace(t.PCT_ENCODED,i)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,O).replace(t.PCT_ENCODED,i)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,O).replace(t.PCT_ENCODED,i)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,O).replace(t.PCT_ENCODED,i)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,O).replace(t.PCT_ENCODED,i)),e}function I(e){return e.replace(/^0*(.*)/,"$1")||"0"}function T(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=c(r,2)[1];return n?n.split(".").map(I).join("."):e}function k(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=c(r,3),i=n[1],o=n[2];if(i){for(var s=i.toLowerCase().split("::").reverse(),a=c(s,2),p=a[0],u=a[1],f=u?u.split(":").map(I):[],l=p.split(":").map(I),d=t.IPV4ADDRESS.test(l[l.length-1]),h=d?7:8,m=l.length-h,y=Array(h),g=0;g1){var j=y.slice(0,v.index),$=y.slice(v.index+v.length);b=j.join(":")+"::"+$.join(":")}else b=y.join(":");return o&&(b+="%"+o),b}return e}var R=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,D=void 0==="".match(/(){0}/)[1];function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?a:s;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var i=e.match(R);if(i){D?(r.scheme=i[1],r.userinfo=i[3],r.host=i[4],r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=i[7],r.fragment=i[8],isNaN(r.port)&&(r.port=i[5])):(r.scheme=i[1]||void 0,r.userinfo=-1!==e.indexOf("@")?i[3]:void 0,r.host=-1!==e.indexOf("//")?i[4]:void 0,r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=-1!==e.indexOf("?")?i[7]:void 0,r.fragment=-1!==e.indexOf("#")?i[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),r.host&&(r.host=k(T(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var o=S[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)A(r,n);else{if(r.host&&(t.domainHost||o&&o.domainHost))try{r.host=P(r.host.replace(n.PCT_ENCODED,E).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}A(r,s)}o&&o.parse&&o.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function F(e,t){var r=!1!==t.iri?a:s,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(k(T(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"==typeof e.port&&(n.push(":"),n.push(e.port.toString(10))),n.length?n.join(""):void 0}var N=/^\.\.?\//,M=/^\/\.(\/|$)/,q=/^\/\.\.(\/|$)/,U=/^\/?(?:.|\n)*?(?=\/|$)/;function L(e){for(var t=[];e.length;)if(e.match(N))e=e.replace(N,"");else if(e.match(M))e=e.replace(M,"/");else if(e.match(q))e=e.replace(q,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(U);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?a:s,n=[],i=S[(t.scheme||e.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||i&&i.domainHost)try{e.host=t.iri?w(e.host):P(e.host.replace(r.PCT_ENCODED,E).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}A(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var o=F(e,t);if(void 0!==o&&("suffix"!==t.reference&&n.push("//"),n.push(o),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var c=e.path;t.absolutePath||i&&i.absolutePath||(c=L(c)),void 0===o&&(c=c.replace(/^\/\//,"/%2F")),n.push(c)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function B(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=C(z(e,r),r),t=C(z(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=L(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=L(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=L(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=L(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function V(e,t){return e&&e.toString().replace(t&&t.iri?a.PCT_ENCODED:s.PCT_ENCODED,E)}var H={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){return e.port!==("https"!==String(e.scheme).toLowerCase()?80:443)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},K={scheme:"https",domainHost:H.domainHost,parse:H.parse,serialize:H.serialize},G={},J="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",W="[0-9A-Fa-f]",Q=r(r("%[EFef][0-9A-Fa-f]%"+W+W+"%"+W+W)+"|"+r("%[89A-Fa-f][0-9A-Fa-f]%"+W+W)+"|"+r("%"+W+W)),Y=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),X=new RegExp(J,"g"),Z=new RegExp(Q,"g"),ee=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',Y),"g"),te=new RegExp(t("[^]",J,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),re=te;function ne(e){var t=E(e);return t.match(X)?t:e}var ie={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var i=!1,o={},s=r.query.split("&"),a=0,c=s.length;a1;a++)r.splice(0,1);n[s]=r.join("")}var c=-1,p=0,u=0,f=-1,l=!1;for(s=0;sp&&(c=f,p=u)):"0"===n[s]&&(l=!0,f=s,u=1);u>p&&(c=f,p=u),p>1&&n.splice(c,p,""),i=n.length;var d="";for(""===n[0]&&(d=":"),s=0;s=e.length-1)return!1;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return!1;var i=r.list[e.slice(t+1)];return!!i&&i.indexOf(" "+e.slice(n+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var n=r.list[e.slice(t+1)];return!!n&&n.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return null;var i=r.list[e.slice(t+1)];return i?i.indexOf(" "+e.slice(n+1,t)+" ")<0?null:e.slice(n+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return r}))},4998:function(e,t,r){var n,i,o;!function(s,a){"use strict";e.exports?e.exports=a(r(3132),r(2251),r(6106)):(i=[r(3132),r(2251),r(6106)],void 0===(o="function"==typeof(n=a)?n.apply(t,i):n)||(e.exports=o))}(0,(function(e,t,r,n){"use strict";var i=n&&n.URI;function o(e,t){var r=arguments.length>=1,n=arguments.length>=2;if(!(this instanceof o))return r?n?new o(e,t):new o(e):new o;if(void 0===e){if(r)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&r)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}o.version="1.19.11";var s=o.prototype,a=Object.prototype.hasOwnProperty;function c(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function p(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function u(e){return"Array"===p(e)}function f(e,t){var r,n,i={};if("RegExp"===p(t))i=null;else if(u(t))for(r=0,n=t.length;r]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,o.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},o.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,o.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,o.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},o.hostProtocols=["http","https"],o.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,o.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},o.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return o.domAttributes[t]}},o.encode=y,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=y,o.decode=decodeURIComponent},o.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},o.encodeQuery=function(e,t){var r=o.encode(e+"");return void 0===t&&(t=o.escapeQuerySpace),t?r.replace(/%20/g,"+"):r},o.decodeQuery=function(e,t){e+="",void 0===t&&(t=o.escapeQuerySpace);try{return o.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var g,v={encode:"encode",decode:"decode"},b=function(e,t){return function(r){try{return o[t](r+"").replace(o.characters[e][t].expression,(function(r){return o.characters[e][t].map[r]}))}catch(e){return r}}};for(g in v)o[g+"PathSegment"]=b("pathname",v[g]),o[g+"UrnPathSegment"]=b("urnpath",v[g]);var j=function(e,t,r){return function(n){var i;i=r?function(e){return o[t](o[r](e))}:o[t];for(var s=(n+"").split(e),a=0,c=s.length;a-1&&(t.fragment=e.substring(r+1)||null,e=e.substring(0,r)),(r=e.indexOf("?"))>-1&&(t.query=e.substring(r+1)||null,e=e.substring(0,r)),"//"===(e=(e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://")).replace(/^[/\\]{2,}/i,"//")).substring(0,2)?(t.protocol=null,e=e.substring(2),e=o.parseAuthority(e,t)):(r=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,r)||null,t.protocol&&!t.protocol.match(o.protocol_expression)?t.protocol=void 0:"//"===e.substring(r+1,r+3).replace(/\\/g,"/")?(e=e.substring(r+3),e=o.parseAuthority(e,t)):(e=e.substring(r+1),t.urn=!0)),t.path=e,t},o.parseHost=function(e,t){e||(e="");var r,n,i=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===i&&(i=e.length),"["===e.charAt(0))r=e.indexOf("]"),t.hostname=e.substring(1,r)||null,t.port=e.substring(r+2,i)||null,"/"===t.port&&(t.port=null);else{var s=e.indexOf(":"),a=e.indexOf("/"),c=e.indexOf(":",s+1);-1!==c&&(-1===a||c-1?i:e.length-1);return s>-1&&(-1===i||s-1?d.slice(0,h)+d.slice(h).replace(s,""):d.replace(s,"")).length<=p[0].length||r.ignore&&r.ignore.test(d))){var g=t(d,u,l=u+d.length,e);void 0!==g?(g=String(g),e=e.slice(0,u)+g+e.slice(l),n.lastIndex=u+g.length):n.lastIndex=l}}return n.lastIndex=0,e},o.ensureValidHostname=function(t,r){var n=!!t,i=!1;if(!!r&&(i=l(o.hostProtocols,r)),i&&!n)throw new TypeError("Hostname cannot be empty, if protocol is "+r);if(t&&t.match(o.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(o.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},o.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},o.noConflict=function(e){if(e){var t={URI:this.noConflict()};return n.URITemplate&&"function"==typeof n.URITemplate.noConflict&&(t.URITemplate=n.URITemplate.noConflict()),n.IPv6&&"function"==typeof n.IPv6.noConflict&&(t.IPv6=n.IPv6.noConflict()),n.SecondLevelDomains&&"function"==typeof n.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=n.SecondLevelDomains.noConflict()),t}return n.URI===this&&(n.URI=i),this},s.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=o.build(this._parts),this._deferred_build=!1),this},s.clone=function(){return new o(this)},s.valueOf=s.toString=function(){return this.build(!1)._string},s.protocol=$("protocol"),s.username=$("username"),s.password=$("password"),s.hostname=$("hostname"),s.port=$("port"),s.query=_("query","?"),s.fragment=_("fragment","#"),s.search=function(e,t){var r=this.query(e,t);return"string"==typeof r&&r.length?"?"+r:r},s.hash=function(e,t){var r=this.fragment(e,t);return"string"==typeof r&&r.length?"#"+r:r},s.pathname=function(e,t){if(void 0===e||!0===e){var r=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?o.decodeUrnPath:o.decodePath)(r):r}return this._parts.urn?this._parts.path=e?o.recodeUrnPath(e):"":this._parts.path=e?o.recodePath(e):"/",this.build(!t),this},s.path=s.pathname,s.href=function(e,t){var r;if(void 0===e)return this.toString();this._string="",this._parts=o._parts();var n=e instanceof o,i="object"==typeof e&&(e.hostname||e.path||e.pathname);if(e.nodeName&&(e=e[o.getDomAttribute(e)]||"",i=!1),!n&&i&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=o.parse(String(e),this._parts);else{if(!n&&!i)throw new TypeError("invalid input");var s=n?e._parts:e;for(r in s)"query"!==r&&a.call(this._parts,r)&&(this._parts[r]=s[r]);s.query&&this.query(s.query,!1)}return this.build(!t),this},s.is=function(e){var t=!1,n=!1,i=!1,s=!1,a=!1,c=!1,p=!1,u=!this._parts.urn;switch(this._parts.hostname&&(u=!1,n=o.ip4_expression.test(this._parts.hostname),i=o.ip6_expression.test(this._parts.hostname),a=(s=!(t=n||i))&&r&&r.has(this._parts.hostname),c=s&&o.idn_expression.test(this._parts.hostname),p=s&&o.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return u;case"absolute":return!u;case"domain":case"name":return s;case"sld":return a;case"ip":return t;case"ip4":case"ipv4":case"inet4":return n;case"ip6":case"ipv6":case"inet6":return i;case"idn":return c;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return p}return null};var x=s.protocol,P=s.port,w=s.hostname;s.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(o.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return x.call(this,e,t)},s.scheme=s.protocol,s.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),o.ensureValidPort(e))),P.call(this,e,t))},s.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var r={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==o.parseHost(e,r))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=r.hostname,this._parts.preventInvalidHostname&&o.ensureValidHostname(e,this._parts.protocol)}return w.call(this,e,t)},s.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=this.protocol();return this.authority()?(r?r+"://":"")+this.authority():""}var n=o(e);return this.protocol(n.protocol()).authority(n.authority()).build(!t),this},s.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?o.buildHost(this._parts):"";if("/"!==o.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},s.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?o.buildAuthority(this._parts):"";if("/"!==o.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},s.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=o.buildUserinfo(this._parts);return r?r.substring(0,r.length-1):r}return"@"!==e[e.length-1]&&(e+="@"),o.parseUserinfo(e,this._parts),this.build(!t),this},s.resource=function(e,t){var r;return void 0===e?this.path()+this.search()+this.hash():(r=o.parse(e),this._parts.path=r.path,this._parts.query=r.query,this._parts.fragment=r.fragment,this.build(!t),this)},s.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,r)||""}var n=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,n),s=new RegExp("^"+c(i));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&o.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(s,e),this.build(!t),this},s.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.match(/\./g);if(r&&r.length<2)return this._parts.hostname;var n=this._parts.hostname.length-this.tld(t).length-1;return n=this._parts.hostname.lastIndexOf(".",n-1)+1,this._parts.hostname.substring(n)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(o.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var i=new RegExp(c(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this},s.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.lastIndexOf("."),i=this._parts.hostname.substring(n+1);return!0!==t&&r&&r.list[i.toLowerCase()]&&r.get(this._parts.hostname)||i}var o;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!r||!r.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');o=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");o=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,e)}return this.build(!t),this},s.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var r=this._parts.path.length-this.filename().length-1,n=this._parts.path.substring(0,r)||(this._parts.hostname?"/":"");return e?o.decodePath(n):n}var i=this._parts.path.length-this.filename().length,s=this._parts.path.substring(0,i),a=new RegExp("^"+c(s));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=o.recodePath(e),this._parts.path=this._parts.path.replace(a,e),this.build(!t),this},s.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var r=this._parts.path.lastIndexOf("/"),n=this._parts.path.substring(r+1);return e?o.decodePathSegment(n):n}var i=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(i=!0);var s=new RegExp(c(this.filename())+"$");return e=o.recodePath(e),this._parts.path=this._parts.path.replace(s,e),i?this.normalizePath(t):this.build(!t),this},s.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var r,n,i=this.filename(),s=i.lastIndexOf(".");return-1===s?"":(r=i.substring(s+1),n=/^[a-z0-9%]+$/i.test(r)?r:"",e?o.decodePathSegment(n):n)}"."===e.charAt(0)&&(e=e.substring(1));var a,p=this.suffix();if(p)a=e?new RegExp(c(p)+"$"):new RegExp(c("."+p)+"$");else{if(!e)return this;this._parts.path+="."+o.recodePath(e)}return a&&(e=o.recodePath(e),this._parts.path=this._parts.path.replace(a,e)),this.build(!t),this},s.segment=function(e,t,r){var n=this._parts.urn?":":"/",i=this.path(),o="/"===i.substring(0,1),s=i.split(n);if(void 0!==e&&"number"!=typeof e&&(r=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(o&&s.shift(),e<0&&(e=Math.max(s.length+e,0)),void 0===t)return void 0===e?s:s[e];if(null===e||void 0===s[e])if(u(t)){s=[];for(var a=0,c=t.length;a= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,h=String.fromCharCode;function m(e){throw new RangeError(l[e])}function y(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function g(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+y((e=e.replace(f,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+h(e)})).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function $(e,t,r){var n=0;for(e=r?d(e/700):e>>1,e+=d(e/t);e>455;n+=c)e=d(e/35);return d(n+36*e/(e+38))}function _(e){var t,r,n,i,o,s,p,u,f,l,h,y=[],g=e.length,v=0,j=128,_=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n=128&&m("not-basic"),y.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=g&&m("invalid-input"),((u=(h=e.charCodeAt(i++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:c)>=c||u>d((a-v)/s))&&m("overflow"),v+=u*s,!(u<(f=p<=_?1:p>=_+26?26:p-_));p+=c)s>d(a/(l=c-f))&&m("overflow"),s*=l;_=$(v-o,t=y.length+1,0==o),d(v/t)>a-j&&m("overflow"),j+=d(v/t),v%=t,y.splice(v++,0,j)}return b(y)}function x(e){var t,r,n,i,o,s,p,u,f,l,y,g,b,_,x,P=[];for(g=(e=v(e)).length,t=128,r=0,o=72,s=0;s=t&&yd((a-r)/(b=n+1))&&m("overflow"),r+=(p-t)*b,t=p,s=0;sa&&m("overflow"),y==t){for(u=r,f=c;!(u<(l=f<=o?1:f>=o+26?26:f-o));f+=c)x=u-l,_=c-l,P.push(h(j(l+x%_,0))),u=d(x/_);P.push(h(j(u,0))),o=$(r,b,n==i),r=0,++n}++r,++t}return P.join("")}s={version:"1.3.2",ucs2:{decode:v,encode:b},decode:_,encode:x,toASCII:function(e){return g(e,(function(e){return u.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return g(e,(function(e){return p.test(e)?_(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return s}.call(t,r,t,e))||(e.exports=n)}()},4795:function(e,t,r){var n;!function(t){"use strict";function i(){}var o=i.prototype,s=t.EventEmitter;function a(e,t){for(var r=e.length;r--;)if(e[r].listener===t)return r;return-1}function c(e){return function(){return this[e].apply(this,arguments)}}function p(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!=typeof e)&&p(e.listener)}o.getListeners=function(e){var t,r,n=this._getEvents();if(e instanceof RegExp)for(r in t={},n)n.hasOwnProperty(r)&&e.test(r)&&(t[r]=n[r]);else t=n[e]||(n[e]=[]);return t},o.flattenListeners=function(e){var t,r=[];for(t=0;t{},1872:()=>{},67:()=>{},4654:()=>{},654:(e,t,r)=>{"use strict";var n=r(9038),i=r(2937);function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=o(n),a=o(i);const c=e=>void 0!==e,p=e=>t=>t.keyword===e,u=p("anyOf"),f=p("enum"),l=e=>e&&e.errors||[],d=e=>{return e&&(t=e.children,Object.values(t))||[];var t},h=e=>t=>t.reduce(((e,t)=>e.concat(t)),e),m=/['"]/g,y=/NOT/g,g=/^[a-z]/;function v(e){return e.replace(m,'"').replace(y,"not")}function b(e){return e.toUpperCase()}class j{constructor(e={isIdentifierLocation:!1},{data:t,schema:r,propPath:n}){this.options=e,this.data=t,this.schema=r,this.propPath=n}getError(){throw new Error(`Implement the 'getError' method inside ${this.constructor.name}!`)}getPrettyPropertyName(e){const t=this.getPropertyName(e);return null===t?(typeof this.getPropertyValue(e)).replace(g,b):`"${t}" property`}getPropertyName(e){const t=function(e){const t=e.lastIndexOf("/");return-1!==t?e.slice(t+1):null}(e);return null!==t?t:0===this.propPath.length?null:this.propPath[this.propPath.length-1]}getPropertyValue(e){return""===e?this.data:s.default.get(this.data,e)}}class $ extends j{getError(){const{message:e,instancePath:t}=this.options;return{error:`${this.getPrettyPropertyName(t)} ${v(e)}`,path:t}}}class _ extends j{constructor(...e){super(...e)}getError(){const{params:e,instancePath:t}=this.options;return{error:`Property "${e.additionalProperty}" is not expected to be here`,path:t}}}class x extends j{getError(){const{message:e,instancePath:t,params:r}=this.options,n=this.findBestMatch(),i={error:`${this.getPrettyPropertyName(t)} ${e}: ${r.allowedValues.map((e=>"string"==typeof e?`"${e}"`:JSON.stringify(e))).join(", ")}`,path:t};return null!==n&&(i.suggestion=`Did you mean "${n}"?`),i}findBestMatch(){const{instancePath:e,params:{allowedValues:t}}=this.options,r=this.getPropertyValue(e);if("string"!=typeof r)return null;const n=t.filter((e=>"string"==typeof e)).map((e=>({value:e,weight:a.default(e,r.toString())}))).sort(((e,t)=>e.weight>t.weight?1:e.weight0&&delete e.errors,e.errors&&e.errors.length&&l(e).every(f)&&(e=>t=>{return d(e).filter((n=t,r=e=>n===e,e=>!r(e)));var r,n})(t)(e).filter(c).some(l)&&delete t.children[r],Object.entries(e.children).forEach((([t,r])=>E(r,e,t)))}function A(e,t){const r=l(e);if(r.length&&r.every(f)){const e=[...new Set(h([])(r.map((e=>e.params.allowedValues))))],n=r[0];return[new x({...n,params:{allowedValues:e}},t)]}return h(r.reduce(((e,r)=>{switch(r.keyword){case"additionalProperties":return e.concat(new _(r,t));case"required":return e.concat(new $(r,t));case"type":return e.concat(new w(r,t));case"errorMessage":return e.concat(new S(r,t));default:return e.concat(new P(r,t))}}),[]))(d(e).map((e=>A(e,t))))}var I=(e,t)=>{const r=function(e=[]){const t={children:{}};return e.forEach((e=>{const{instancePath:r}=e,n=""===r?[""]:r.match(O);n&&n.reduce(((t,r,i)=>(t.children[r]=t.children[r]||{children:{},errors:[]},i===n.length-1&&t.children[r].errors.push(e),t.children[r])),t)})),t}(e||[]);return E(r),A(r,t)};const T=e=>e.getError();e.exports=(e,t,{propertyPath:r,targetValue:n})=>I(t,{data:n,schema:e,propPath:r}).map(T)},1762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=`__object_order_${Math.floor(Date.now()/36e5)}__`,n=Symbol.for(r),i=String(n),o={defineProperty:(e,t,r)=>(!(t in e)&&n in e?e[n].push(t):"value"in r&&t===n&&-1===r.value.lastIndexOf(n)&&r.value.push(n),Reflect.defineProperty(e,t,r)),deleteProperty(e,t){const r=t in e,i=Reflect.deleteProperty(e,t);if(i&&r&&n in e){const r=e[n].indexOf(t);-1!==r&&e[n].splice(r,1)}return i},ownKeys:e=>n in e?e[n]:Reflect.ownKeys(e),set(e,t,r){const i=t in e,o=Reflect.set(e,t,r);return o&&!i&&n in e&&e[n].push(t),o}};function s(e,t=Reflect.ownKeys(e)){d(e);const r=new Proxy(e,o);return a(r,t),r}function a(e,t){return n in e?(e[n].length=0,e[n].push(...t),!0):Reflect.defineProperty(e,n,{configurable:!0,value:t})}function c(e){const t=e.slice();for(let e=0;ee!==n))}),t)for(const t of Object.keys(e)){if(t===i)continue;const n=e[t];l(n)&&(r[t]=Array.isArray(n)?c(n):p(n,!0))}return r}function u(e){for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_PARSER_OPTIONS=void 0;const n=r(2749);t.DEFAULT_PARSER_OPTIONS=Object.freeze({incompatibleValues:n.DiagnosticSeverity.Error,duplicateKeys:n.DiagnosticSeverity.Error})},5786:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isParsedResult=t.ParsedDocument=t.Document=t.normalizeSource=void 0;const n=r(5966),i=r(6789),o=r(1403),s=r(7953);function a(e){return void 0===e?null:e.length>0&&!(0,o.startsWithProtocol)(e)?(0,n.normalize)(e):e}t.normalizeSource=a,t.Document=class{constructor(e,t,r){this.input=e,this.parser=t,this.parserResult=t.parse(e),this.source=a(r),this.diagnostics=(0,i.formatParserDiagnostics)(this.parserResult.diagnostics,this.source)}getRangeForJsonPath(e,t){var r;return null===(r=this.parser.getLocationForJsonPath(this.parserResult,e,t))||void 0===r?void 0:r.range}trapAccess(e){return this.parser.trapAccess(e)}static get DEFAULT_RANGE(){return{start:{character:0,line:0},end:{character:0,line:0}}}get data(){return this.parserResult.data}},t.ParsedDocument=class{constructor(e){this.parserResult=e,this.source=a(e.source),this.diagnostics=(0,i.formatParserDiagnostics)(this.parserResult.parsed.diagnostics,this.source)}trapAccess(e){return e}getRangeForJsonPath(e,t){var r;return null===(r=this.parserResult.getLocationForJsonPath(this.parserResult.parsed,e,t))||void 0===r?void 0:r.range}get data(){return this.parserResult.parsed.data}},t.isParsedResult=e=>(0,s.isPlainObject)(e)&&(0,s.isPlainObject)(e.parsed)&&"function"==typeof e.getLocationForJsonPath},827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentInventory=void 0;const n=r(655),i=r(7953),o=r(5966),s=r(6486),a=r(5786),c=r(6789),p=(0,n.__importStar)(r(644)),u=r(1403);class f{constructor(e,t){this.document=e,this.resolver=t,this.diagnostics=[],this.parseResolveResult=e=>{const t=e.targetAuthority.href().replace(/\/$/,""),r=(0,o.extname)(t),n=String(e.result),i=".json"===r?p.Json:p.Yaml,s=new a.Document(n,i,t);return e.result=s.data,s.diagnostics.length>0&&this.diagnostics.push(...(0,c.formatParserDiagnostics)(s.diagnostics,s.source)),this.referencedDocuments[t]=s,Promise.resolve(e)},this.graph=null,this.errors=null;const r=t.uriCache,n=f._cachedRemoteDocuments.get(r);void 0!==n?this.referencedDocuments=n:(this.referencedDocuments={},f._cachedRemoteDocuments.set(r,this.referencedDocuments))}get source(){return this.document.source}get unresolved(){return this.document.data}get formats(){var e;return null!==(e=this.document.formats)&&void 0!==e?e:null}async resolve(){if(!(0,s.isObjectLike)(this.document.data))return this.graph=null,this.resolved=this.document.data,void(this.errors=null);const e=await this.resolver.resolve(this.document.data,{...null!==this.document.source?{baseUri:this.document.source}:null,parseResolveResult:this.parseResolveResult});this.graph=e.graph,this.resolved=e.result,this.errors=(0,c.formatResolverErrors)(this.document,e.errors)}findAssociatedItemForPath(e,t){if(!t){const t=(0,u.getClosestJsonPath)(this.unresolved,e);return{document:this.document,path:t,missingPropertyPath:e}}try{const t=(0,u.getClosestJsonPath)(this.resolved,e);if(null===(0,u.traverseObjUntilRef)(this.unresolved,t))return{document:this.document,path:(0,u.getClosestJsonPath)(this.unresolved,e),missingPropertyPath:e};const r=0===t.length?[]:e.slice(e.lastIndexOf(t[t.length-1])+1);let{source:n}=this;if(null===n||null===this.graph)return null;let s=this.graph.getNodeData(n).refMap,a=this.document;const c=["#",...e.map(String)];let p="";for(const t of c)for(p.length>0&&(p+="/"),p+=(0,i.encodePointerFragment)(t);p in s;){const t=s[p];if((0,i.isLocalRef)(t))p=t;else{const r=(0,i.extractSourceFromRef)(t);if(null===r)return{document:a,path:(0,u.getClosestJsonPath)(a.data,e),missingPropertyPath:e};n=(0,u.isAbsoluteRef)(r)?r:(0,o.resolve)(n,"..",r);const c=n===this.document.source?this.document:this.referencedDocuments[n];if(null==c)return{document:a,path:(0,u.getClosestJsonPath)(a.data,e),missingPropertyPath:e};a=c,s=this.graph.getNodeData(n).refMap,p=t.indexOf("#")>=0?t.slice(t.indexOf("#")):"#"}}const f=(0,u.getClosestJsonPath)(a.data,this.convertRefMapKeyToPath(p));return{document:a,path:f,missingPropertyPath:[...f,...r]}}catch{return null}}convertRefMapKeyToPath(e){return e.startsWith("#/")&&(e=e.slice(2)),e.split("/").map(i.decodePointerFragment)}}t.DocumentInventory=f,f._cachedRemoteDocuments=new WeakMap},6789:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatResolverErrors=t.formatParserDiagnostics=t.prettyPrintResolverErrorMessage=t.getDiagnosticErrorMessage=void 0;const n=r(2749),i=r(6486),o=r(5786),s=e=>e.toUpperCase(),a=(e,t,r)=>`${t} ${r.toLowerCase()}`;function c(e){const t=p(e.path);let r=e.message.replace(/^[a-z]/,s);return"YAMLException"!==e.code&&(r=r.replace(/([a-z])([A-Z])/g,a)),void 0!==t&&(r=r.replace(/(Duplicate key)/,`$1: ${t}`)),r}t.getDiagnosticErrorMessage=c,t.prettyPrintResolverErrorMessage=e=>e.replace(/^Error\s*:\s*/,"");const p=e=>{if(void 0!==e&&e.length>0)return e[e.length-1]};t.formatParserDiagnostics=function(e,t){return e.map((e=>{var r;return{...e,code:"parser",message:c(e),path:null!==(r=e.path)&&void 0!==r?r:[],...null!==t?{source:t}:null}}))},t.formatResolverErrors=(e,r)=>(0,i.uniqBy)(r,"message").map((r=>{var i;const s=[...r.path,"$ref"],a=null!==(i=e.getRangeForJsonPath(s,!0))&&void 0!==i?i:o.Document.DEFAULT_RANGE,c=r.uriStack.length>0?r.uriStack[r.uriStack.length-1]:e.source;return{code:"invalid-ref",path:s,message:(0,t.prettyPrintResolverErrorMessage)(r.message),severity:n.DiagnosticSeverity.Error,range:a,...null!==c?{source:c}:null}}))},6309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAggregateError=void 0;const n=r(6486);t.isAggregateError=function(e){return(0,n.isError)(e)&&"AggregateError"===e.constructor.name}},309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParsedDocument=t.Document=void 0;const n=r(655);(0,n.__exportStar)(r(37),t),(0,n.__exportStar)(r(4840),t);var i=r(5786);Object.defineProperty(t,"Document",{enumerable:!0,get:function(){return i.Document}}),Object.defineProperty(t,"ParsedDocument",{enumerable:!0,get:function(){return i.ParsedDocument}}),(0,n.__exportStar)(r(7690),t)},2810:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAlias=t.resolveAliasForFormats=void 0;const n=r(3504),i=/^#([A-Za-z0-9_-]+)/;function o({targets:e},t){if(null===t||0===t.size)return null;for(let r=e.length-1;r>=0;r--){const n=e[r];for(const e of n.formats)if(t.has(e))return n.given}return null}function s(e,t,r,a){var c;const p=[];if(t.startsWith("#")){const u=null===(c=i.exec(t))||void 0===c?void 0:c[1];if(null==u)throw new ReferenceError("Alias must match /^#([A-Za-z0-9_-]+)/");if(a.has(u)){const e=[...a,u];throw new ReferenceError(`Alias "${e[0]}" is circular. Resolution stack: ${e.join(" -> ")}`)}if(a.add(u),null===e||!(u in e))throw new ReferenceError(`Alias "${u}" does not exist`);const f=e[u];let l;l=(0,n.isSimpleAliasDefinition)(f)?f:(0,n.isScopedAliasDefinition)(f)?o(f,r):null,null!==l&&p.push(...l.flatMap((n=>s(e,n+t.slice(u.length+1),r,new Set([...a])))))}else p.push(t);return p}t.resolveAliasForFormats=o,t.resolveAlias=function(e,t,r){return s(e,t,r,new Set)}},4231:(e,t)=>{"use strict";function r(e){var t;return null!==(t=e.displayName)&&void 0!==t?t:e.name}Object.defineProperty(t,"__esModule",{value:!0}),t.Formats=void 0;class n extends Set{toJSON(){return Array.from(this).map(r)}}t.Formats=n},9641:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createRulesetFunction=t.RulesetFunctionValidationError=void 0;const n=r(655),i=(0,n.__importDefault)(r(1581)),o=(0,n.__importDefault)(r(5477)),s=(0,n.__importDefault)(r(9049)),a=r(1403),c=r(3916),p=r(6486),u=r(6630),f=new i.default({allErrors:!0,allowUnionTypes:!0,strict:!0,keywords:["x-internal"]});(0,s.default)(f),(0,o.default)(f);class l extends c.RulesetValidationError{constructor(e,t){super(l.printMessage(e,t),t.instancePath.slice(1).split("/"))}static printMessage(e,t){var r;switch(t.keyword){case"type":return`"${e}" function and its "${(0,a.printPath)(t.instancePath.slice(1).split("/"),a.PrintStyle.Dot)}" option accepts only the following types: ${Array.isArray(t.params.type)?t.params.type.join(", "):String(t.params.type)}`;case"required":{const r=t.params.missingProperty;return`"${e}" function is missing "${""===t.instancePath?r:(0,a.printPath)([...t.instancePath.slice(1).split("/"),r],a.PrintStyle.Dot)}" option`}case"additionalProperties":{const r=t.params.additionalProperty;return`"${e}" function does not support "${""===t.instancePath?r:(0,a.printPath)([...t.instancePath.slice(1).split("/"),r],a.PrintStyle.Dot)}" option`}case"enum":return`"${e}" function and its "${(0,a.printPath)(t.instancePath.slice(1).split("/"),a.PrintStyle.Dot)}" option accepts only the following values: ${t.params.allowedValues.map(a.printValue).join(", ")}`;default:return null!==(r=t.message)&&void 0!==r?r:"unknown error"}}}t.RulesetFunctionValidationError=l;const d=e=>null===e;t.createRulesetFunction=function({input:e,errorOnInvalidInput:t=!1,options:r},n){const i=null===r?d:f.compile(r),o=null!==e?f.compile(e):e,s=function(e,r,...i){var a,c,p;return!1===(null==o?void 0:o(e))?t?[{message:null!==(p=null===(c=null===(a=o.errors)||void 0===a?void 0:a.find((e=>"errorMessage"===e.keyword)))||void 0===c?void 0:c.message)&&void 0!==p?p:"invalid input"}]:void 0:(s.validator(r),n(e,r,...i))};Reflect.defineProperty(s,"name",{value:n.name});const a=new WeakSet;return s.validator=function(e){if(!(0,p.isObject)(e)||!a.has(e)){if(!i(e))throw null===r?new c.RulesetValidationError(`"${n.name||""}" function does not accept any options`,[]):"errors"in i&&Array.isArray(i.errors)&&i.errors.length>0?new u(i.errors.map((e=>new l(n.name||"",e)))):new c.RulesetValidationError(`"functionOptions" of "${n.name||""}" function must be valid`,[]);(0,p.isObject)(e)&&a.add(e)}},Reflect.defineProperty(s,"schemas",{enumerable:!1,value:{input:e,options:r}}),s}},7690:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rule=t.Ruleset=t.createRulesetFunction=t.getDiagnosticSeverity=t.RulesetValidationError=t.assertValidRuleset=void 0;var n=r(3916);Object.defineProperty(t,"assertValidRuleset",{enumerable:!0,get:function(){return n.assertValidRuleset}}),Object.defineProperty(t,"RulesetValidationError",{enumerable:!0,get:function(){return n.RulesetValidationError}});var i=r(5647);Object.defineProperty(t,"getDiagnosticSeverity",{enumerable:!0,get:function(){return i.getDiagnosticSeverity}});var o=r(9641);Object.defineProperty(t,"createRulesetFunction",{enumerable:!0,get:function(){return o.createRulesetFunction}});var s=r(3711);Object.defineProperty(t,"Ruleset",{enumerable:!0,get:function(){return s.Ruleset}});var a=r(8203);Object.defineProperty(t,"Rule",{enumerable:!0,get:function(){return a.Rule}})},1761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeRule=void 0;const n=r(4931),i=r(8203);function o(e,t){if(void 0===e)throw new ReferenceError(`Cannot extend non-existing rule: "${t}"`)}t.mergeRule=function(e,t,r,s){switch(typeof r){case"boolean":o(e,t),e.enabled=r;break;case"string":case"number":o(e,t),e.severity=r,"off"===r?e.enabled=!1:e.enabled||(e.enabled=!0);break;case"object":if(void 0===e)return(0,n.assertValidRule)(r,t),new i.Rule(t,r,s);Object.assign(e,r,{enabled:!0,owner:e.owner});break;default:throw new Error("Invalid value")}return e}},8476:(e,t)=>{"use strict";function r(e){return Array.isArray(e)?e[0]:e}Object.defineProperty(t,"__esModule",{value:!0}),t.mergeRulesets=void 0,t.mergeRulesets=function(e,t,n){const i={...e,...t};if("extends"in i&&"extends"in i){const e=(o=i.extends,(Array.isArray(o)?o:[o]).map(r));i.extends=[...(Array.isArray(i.extends)?i.extends:[i.extends]).filter((t=>!e.includes(r(t)))),...Array.isArray(i.extends)?i.extends:[i.extends]]}var o;if("aliases"in e&&"aliases"in t&&(i.aliases={...e.aliases,...t.aliases}),!("rules"in e)||!("rules"in t))return i;if(n)i.rules={...e.rules,...t.rules};else{const t=i;"extends"in t?Array.isArray(t.extends)?t.extends=[...t.extends,e]:t.extends=[t.extends,e]:t.extends=e}return i}},8203:(e,t,r)=>{"use strict";var n,i,o,s;Object.defineProperty(t,"__esModule",{value:!0}),t.Rule=void 0;const a=r(655),c=r(6486),p=r(5966),u=r(7953),f=r(1403),l=r(5647),d=r(2913),h=r(4231),m=r(2810);class y{constructor(e,t,r){var c,p,u;this.name=e,this.definition=t,this.owner=r,n.set(this,void 0),i.set(this,void 0),o.set(this,void 0),s.set(this,void 0),this.recommended=!1!==t.recommended,(0,a.__classPrivateFieldSet)(this,i,this.recommended,"f"),this.description=null!==(c=t.description)&&void 0!==c?c:null,this.message=null!==(p=t.message)&&void 0!==p?p:null,this.documentationUrl=null!==(u=t.documentationUrl)&&void 0!==u?u:null,this.severity=t.severity,this.resolved=!1!==t.resolved,this.formats="formats"in t?new h.Formats(t.formats):null,this.then=t.then,this.given=t.given}get enabled(){return(0,a.__classPrivateFieldGet)(this,i,"f")||void 0!==this.overrides}set enabled(e){(0,a.__classPrivateFieldSet)(this,i,e,"f")}getSeverityForSource(e,t){if(void 0===this.overrides||0===this.overrides.definition.size)return this.severity;const r=(0,p.relative)((0,p.dirname)(this.overrides.rulesetSource),e),n=[];for(const[e,t]of this.overrides.definition.entries())(0,d.minimatch)(r,e)&&n.push(t);if(0===n.length)return this.severity;let i=this.severity,o="";const s=(0,u.pathToPointer)(t);for(const e of n)for(const[t,r]of e.entries())t.length>=o.length&&s.startsWith(t)&&(o=t,i=r);return i}get severity(){return(0,a.__classPrivateFieldGet)(this,n,"f")}set severity(e){void 0===e?(0,a.__classPrivateFieldSet)(this,n,l.DEFAULT_SEVERITY_LEVEL,"f"):(0,a.__classPrivateFieldSet)(this,n,(0,l.getDiagnosticSeverity)(e),"f")}get then(){return(0,a.__classPrivateFieldGet)(this,o,"f")}set then(e){(0,a.__classPrivateFieldSet)(this,o,Array.isArray(e)?e:[e],"f")}get given(){return(0,a.__classPrivateFieldGet)(this,s,"f")}set given(e){const t=Array.isArray(e)?e:[e];(0,a.__classPrivateFieldSet)(this,s,this.owner.hasComplexAliases?t:t.flatMap((e=>(0,m.resolveAlias)(this.owner.aliases,e,null))).filter(c.isString),"f")}getGivenForFormats(e){return this.owner.hasComplexAliases?(0,a.__classPrivateFieldGet)(this,s,"f").flatMap((t=>(0,m.resolveAlias)(this.owner.aliases,t,e))):(0,a.__classPrivateFieldGet)(this,s,"f")}matchesFormat(e){if(null===this.formats)return!0;if(null===e)return!1;for(const t of e)if(this.formats.has(t))return!0;return!1}clone(){return new y(this.name,this.definition,this.owner)}toJSON(){return{name:this.name,recommended:this.recommended,enabled:this.enabled,description:this.description,message:this.message,documentationUrl:this.documentationUrl,severity:this.severity,resolved:this.resolved,formats:this.formats,then:this.then.map((e=>({...e.function,function:e.function.name,..."functionOptions"in e?{functionOptions:(0,f.printValue)(e.functionOptions)}:null}))),given:Array.isArray(this.definition.given)?this.definition.given:[this.definition.given],owner:this.owner.id}}}t.Rule=y,n=new WeakMap,i=new WeakMap,o=new WeakMap,s=new WeakMap},3711:(e,t,r)=>{"use strict";var n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.Ruleset=void 0;const s=r(655),a=r(5966),c=r(7953),p=r(2913),u=r(3916),f=r(1761),l=r(309),d=r(8476),h=r(4231),m=r(3504),y=Symbol("@stoplight/spectral/ruleset/#stack"),g=/^\.?spectral\.(ya?ml|json|m?js)$/;let v=1;class b{constructor(e,t){var r;let a;if(this.maybeDefinition=e,n.add(this),this.id=v++,this.formats=new h.Formats,i.set(this,void 0),(0,c.isPlainObject)(e)&&"extends"in e){const{extends:t,...r}=e;(0,u.assertValidRuleset)({extends:[],...r}),a=e}else(0,u.assertValidRuleset)(e),a=e;this.definition=a,(0,s.__classPrivateFieldSet)(this,i,{severity:"recommended",...t},"f");let p=!1;this.aliases=void 0===a.aliases?null:Object.fromEntries(Object.entries(a.aliases).map((e=>{const[t,r]=e;if((0,m.isSimpleAliasDefinition)(r))return e;p=!0;const n=r.targets.map((e=>({formats:new h.Formats(e.formats),given:e.given})));return[t,{...r,targets:n}]}))),this.hasComplexAliases=p;const f=null!==(r=null==t?void 0:t[y])&&void 0!==r?r:new Map;if(f.set(this.definition,this),this.extends="extends"in a?(Array.isArray(a.extends)?a.extends:[a.extends]).reduce(((e,t)=>{let r,n="recommended";return Array.isArray(t)?[r,n]=t:r=t,void 0!==f.get(r)||e.push(new b(r,{severity:n,[y]:f})),e}),[]):null,1===f.size&&a.overrides?this.overrides=a.overrides:this.overrides=null,f.delete(this.definition),Array.isArray(this.definition.formats))for(const e of this.definition.formats)this.formats.add(e);if(Array.isArray(this.extends))for(const{formats:e}of this.extends)for(const t of e)this.formats.add(t);this.rules=(0,s.__classPrivateFieldGet)(this,n,"m",o).call(this)}get source(){var e;return null!==(e=(0,s.__classPrivateFieldGet)(this,i,"f").source)&&void 0!==e?e:null}fromSource(e){if(null===this.overrides)return this;const{source:t}=this;if(null===e)throw new Error("Document must have some source assigned. If you use Spectral programmatically make sure to pass the source to Document");if(null===t)throw new Error("Ruleset must have some source assigned. If you use Spectral programmatically make sure to pass the source to Ruleset");const r=(0,a.relative)((0,a.dirname)(t),e),n={},i=this.overrides.flatMap((({files:e,...i})=>{var o,s;const a=[];for(const u of e){const e=null!==(o=(0,c.extractSourceFromRef)(u))&&void 0!==o?o:u;if(!(0,p.minimatch)(r,e))continue;const f=(0,c.extractPointerFromRef)(u);if(e===u)a.push(u);else{if(!("rules"in i)||null===f)throw new Error("Unknown error. The ruleset is presumably invalid.");for(const[r,o]of Object.entries(i.rules)){if("object"==typeof o||"boolean"==typeof o)throw new Error("Unknown error. The ruleset is presumably invalid.");const{definition:i}=null!==(s=n[r])&&void 0!==s?s:n[r]={rulesetSource:t,definition:new Map},a=(0,l.getDiagnosticSeverity)(o);let c=i.get(e);void 0===c&&(c=new Map,i.set(e,c)),c.set(f,a)}}}return 0===a.length?[]:i})),{overrides:o,...s}=this.definition;if(0===i.length&&0===Object.keys(n).length)return this;const u=0===i.length?null:i.length>1?i.slice(1).reduce(((e,t)=>(0,d.mergeRulesets)(e,t,!0)),i[0]):i[0],f=new b(null===u?s:(0,d.mergeRulesets)(s,u,!1),{severity:"recommended",source:t});for(const[e,t]of Object.entries(n))e in f.rules&&(f.rules[e].overrides=t);return f}get parserOptions(){return{...l.DEFAULT_PARSER_OPTIONS,...this.definition.parserOptions}}static isDefaultRulesetFile(e){return g.test(e)}toJSON(){return{id:this.id,extends:this.extends,source:this.source,aliases:this.aliases,formats:0===this.formats.size?null:this.formats,rules:this.rules,overrides:this.overrides,parserOptions:this.parserOptions}}}t.Ruleset=b,i=new WeakMap,n=new WeakSet,o=function(){const e={};if(null!==this.extends&&this.extends.length>0)for(const t of this.extends)if(t!==this)for(const r of Object.values(t.rules))e[r.name]=r;if("rules"in this.definition)for(const[t,r]of Object.entries(this.definition.rules)){const n=(0,f.mergeRule)(e[t],t,r,this);if(e[t]=n,n.owner===this&&(n.enabled="all"===(0,s.__classPrivateFieldGet)(this,i,"f").severity||"recommended"===(0,s.__classPrivateFieldGet)(this,i,"f").severity&&n.recommended),null!==n.formats)for(const e of n.formats)this.formats.add(e);else n.owner!==this?n.formats=void 0===n.owner.definition.formats?null:new h.Formats(n.owner.definition.formats):void 0!==this.definition.formats&&(n.formats=new h.Formats(this.definition.formats));void 0!==this.definition.documentationUrl&&null===n.documentationUrl&&(n.documentationUrl=`${this.definition.documentationUrl}#${t}`)}return e}},3504:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScopedAliasDefinition=t.isValidAliasTarget=t.isSimpleAliasDefinition=void 0;const n=r(7953),i=r(6486);function o(e){const t=e.formats;return!!(Array.isArray(t)||t instanceof Set)&&Array.isArray(e.given)&&e.given.every(i.isString)}t.isSimpleAliasDefinition=function(e){return Array.isArray(e)},t.isValidAliasTarget=o,t.isScopedAliasDefinition=function(e){return(0,n.isPlainObject)(e)&&Array.isArray(e.targets)&&e.targets.every(o)}},2913:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.minimatch=void 0;const n=(0,r(655).__importDefault)(r(1171)),i={matchBase:!0};t.minimatch=function(e,t){return(0,n.default)(e,t,i)}},5647:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDiagnosticSeverity=t.DEFAULT_SEVERITY_LEVEL=void 0;const n=r(2749);t.DEFAULT_SEVERITY_LEVEL=n.DiagnosticSeverity.Warning;const i={error:n.DiagnosticSeverity.Error,warn:n.DiagnosticSeverity.Warning,info:n.DiagnosticSeverity.Information,hint:n.DiagnosticSeverity.Hint,off:-1};t.getDiagnosticSeverity=function(e){return Number.isNaN(Number(e))?i[e]:Number(e)}},575:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createValidator=void 0;const n=r(655),i=(0,n.__importStar)(r(1581)),o=(0,n.__importDefault)(r(2141)),s=(0,n.__importDefault)(r(5477)),a=(0,n.__importDefault)(r(9049)),c=(0,n.__importStar)(r(3263)),p=(0,n.__importStar)(r(1128)),u=(0,n.__importStar)(r(8129)),f=(0,n.__importStar)(r(7831)),l=(0,n.__importStar)(r(4051)),d=r(8956),h=r(3221),m={js:null,json:null};t.createValidator=function(e){const t=m[e];if(null!==t)return t;const r=new i.default({allErrors:!0,strict:!0,strictRequired:!1,keywords:["$anchor"],schemas:[c,p],passContext:!0});(0,s.default)(r),(0,a.default)(r),r.addKeyword({keyword:"x-spectral-runtime",schemaType:"string",error:{message(e){var t;return i._`${void 0!==(null===(t=e.params)||void 0===t?void 0:t.message)?e.params.message:""}`},params(e){var t;return i._`{ errors: ${void 0!==(null===(t=e.params)||void 0===t?void 0:t.errors)&&e.params.errors} || [] }`}},code(e){const{data:t}=e;switch(e.schema){case"format":e.fail(i._`typeof ${t} !== "function"`);break;case"ruleset-function":{const r=e.gen.const("spectralFunction",i._`this.validateFunction(${t}.function, ${t}.functionOptions === void 0 ? null : ${t}.functionOptions, ${o.default.instancePath})`);e.gen.if(i._`${r} !== void 0`),e.error(!1,{errors:r}),e.gen.endIf();break}case"alias":{const r=e.gen.const("spectralAlias",i._`this.validateAlias(${o.default.rootData}, ${t}, ${o.default.instancePath})`);e.gen.if(i._`${r} !== void 0`),e.error(!1,{errors:r}),e.gen.endIf();break}}}}),"js"===e?r.addSchema(f):r.addSchema(l);const n=new Proxy(r.compile(u),{apply:(e,t,r)=>Reflect.apply(e,{validateAlias:d.validateAlias,validateFunction:h.validateFunction},r)});return m[e]=n,n}},4931:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidRule=t.assertValidRuleset=void 0;const n=r(655),i=r(7953),o=r(575),s=r(2997),a=(0,n.__importDefault)(r(6630));t.assertValidRuleset=function(e,t="js"){var r;if(!(0,i.isPlainObject)(e))throw new s.RulesetValidationError("Provided ruleset is not an object",[]);if(!("rules"in e)&&!("extends"in e)&&!("overrides"in e))throw new s.RulesetValidationError("Ruleset must have rules or extends or overrides defined",[]);const n=(0,o.createValidator)(t);if(!n(e))throw new a.default((0,s.convertAjvErrors)(null!==(r=n.errors)&&void 0!==r?r:[]))},t.assertValidRule=function(e,t){if(!function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&("given"in e||"then"in e)}(e))throw new s.RulesetValidationError("Rule definition expected",["rules",t])}},2997:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertAjvErrors=t.RulesetValidationError=void 0;const n=r(6309);class i extends Error{constructor(e,t){super(e),this.message=e,this.path=t}}t.RulesetValidationError=i;const o=/^\/rules\/[^/]+/,s=/^\/(?:aliases|extends|overrides(?:\/\d+\/extends)?)/;function a(e){return(0,n.isAggregateError)(e)?e.errors.flatMap(a):e}t.convertAjvErrors=function(e){const t=[...e].sort(((e,t)=>{const r=e.instancePath.length-t.instancePath.length;return 0===r?"errorMessage"===e.keyword&&"errorMessage"!==t.keyword?-1:0:r})).filter(((e,t,r)=>0===t||r[t-1].instancePath!==e.instancePath)),r=[];e:for(let e=0;e{var t;return"x-spectral-runtime"===e.keyword?a(e.params.errors):new i(null!==(t=e.message)&&void 0!==t?t:"unknown error",e.instancePath.slice(1).split("/"))}))}},3916:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidRuleset=t.RulesetValidationError=void 0;var n=r(2997);Object.defineProperty(t,"RulesetValidationError",{enumerable:!0,get:function(){return n.RulesetValidationError}});var i=r(4931);Object.defineProperty(t,"assertValidRuleset",{enumerable:!0,get:function(){return i.assertValidRuleset}})},8956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAlias=void 0;const n=r(7953),i=r(6486),o=r(2810),s=r(4231),a=r(1328);function c(e,t){if(!Array.isArray(e))return null;const r=Number(t);if(Number.isNaN(r))return null;if(r<0&&r>=e.length)return null;const i=e[r];return(0,n.isPlainObject)(i)&&(0,n.isPlainObject)(i.aliases)?i.aliases:null}t.validateAlias=function(e,t,r){try{const n=r.slice(1).split("/"),a=(0,i.get)(e,[...n.slice(0,n.indexOf("rules")+2),"formats"]),p="overrides"===n[0]?{...e.aliases,...c(e.overrides,n[1])}:e.aliases;(0,o.resolveAlias)(null!=p?p:null,t,Array.isArray(a)?new s.Formats(a):null)}catch(e){return(0,a.wrapError)(e,r)}}},1328:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapError=void 0;const n=r(655),i=r(6486),o=(0,n.__importDefault)(r(6630)),s=r(2997),a=r(6309);function c(e){return e instanceof s.RulesetValidationError?(e.path.unshift(...this),e):new s.RulesetValidationError((0,i.isError)(e)?e.message:String(e),[...this])}t.wrapError=function(e,t){const r=t.slice(1).split("/");return(0,a.isAggregateError)(e)?new o.default(e.errors.map(c,r)):c.call(r,e)}},3221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateFunction=void 0;const n=r(1328);t.validateFunction=function(e,t,r){try{if(function(e){if("function"!=typeof e)throw Error("Function is not defined")}(e),!("validator"in e))return;e.validator.bind(e)(t)}catch(e){return(0,n.wrapError)(e,r)}}},8876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RunnerRuntime=t.Runner=void 0;var n=r(6125);Object.defineProperty(t,"Runner",{enumerable:!0,get:function(){return n.Runner}});var i=r(2797);Object.defineProperty(t,"RunnerRuntime",{enumerable:!0,get:function(){return i.RunnerRuntime}})},6859:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lintNode=void 0;const n=r(1403),i=r(6486),o=r(905),s=r(5786),a=r(2055);function c(e,t,r,o){var c,p,u,f,l;for(const d of t){const t=(null!==(c=d.path)&&void 0!==c?c:o).map(n.decodeSegmentFragment),h=e.documentInventory.findAssociatedItemForPath(t,r.resolved),m=null!==(p=null==h?void 0:h.path)&&void 0!==p?p:(0,n.getClosestJsonPath)(e.documentInventory.resolved,t),y=null==h?void 0:h.document.source,g=null!==(u=null==h?void 0:h.document)&&void 0!==u?u:e.documentInventory.document,v=null!==(f=g.getRangeForJsonPath(m,!0))&&void 0!==f?f:s.Document.DEFAULT_RANGE,b=0===m.length?g.data:(0,i.get)(g.data,m),j={property:void 0!==(null==h?void 0:h.missingPropertyPath)&&h.missingPropertyPath.length>m.length?(0,n.printPath)(h.missingPropertyPath.slice(m.length-1),n.PrintStyle.Dot):m.length>0?m[m.length-1]:"",error:d.message,path:(0,n.printPath)(m,n.PrintStyle.EscapedPointer),description:r.description,value:b},$=(0,a.message)(d.message,j);j.error=$;const _=null!=y?r.getSeverityForSource(y,m):r.severity;-1!==_&&e.results.push({code:r.name,message:(null===r.message?null!==(l=r.description)&&void 0!==l?l:$:(0,a.message)(r.message,j)).trim(),path:m,severity:_,...null!==y?{source:y}:null,range:v})}}t.lintNode=(e,t,r)=>{var n;const s={document:e.documentInventory.document,documentInventory:e.documentInventory,rule:r,path:[]},p=t.path.length>0&&"$"===t.path[0]?t.path.slice(1):t.path;for(const u of r.then){const f=(0,a.getLintTargets)(t.value,u.field);for(const t of f){const a=t.path.length>0?[...p,...t.path]:p;let f;try{f=u.function(t.value,null!==(n=u.functionOptions)&&void 0!==n?n:null,{...s,path:a})}catch(e){throw new o.ErrorWithCause(`Function "${u.function.name}" threw an exception${(0,i.isError)(e)?`: ${e.message}`:""}`,{cause:e})}void 0!==f&&("then"in f?e.promises.push(f.then((t=>void 0===t?void 0:void c(e,t,r,a)))):c(e,f,r,a))}}}},6125:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Runner=void 0;const n=r(655),i=r(396),o=r(6859),s=(0,n.__importDefault)(r(691)),a=r(5160),c=r(7953);function p(e,t,r){var n;if((0,c.isPlainObject)(e)||Array.isArray(e))new s.default(r,{fallback:a.jsonPathPlus,unsafe:!1,output:"auto",customShorthands:{}}).query(e,Object.entries(t).reduce(((e,[t,r])=>(e[t]=e=>{for(const t of r)t(e)},e)),{}));else for(const r of null!==(n=t.$)&&void 0!==n?n:[])r({path:[],value:e})}t.Runner=class{constructor(e,t){var r;this.runtime=e,this.inventory=t,this.results=[...this.inventory.diagnostics,...null!==(r=this.inventory.errors)&&void 0!==r?r:[]]}get document(){return this.inventory.document}addResult(e){this.results.push(e)}async run(e){var t,r,n;this.runtime.emit("setup");const{inventory:i}=this,{rules:s}=e,a=null!==(t=this.document.formats)&&void 0!==t?t:null,c={ruleset:e,documentInventory:i,results:this.results,promises:[]},u=Object.values(s).filter((e=>e.enabled)).filter((e=>e.matchesFormat(i.formats))),f={resolved:{},unresolved:{}};for(const e of u)for(const t of e.getGivenForFormats(a)){const i=t=>{(0,o.lintNode)(c,t,e)};(null!==(r=(n=f[e.resolved?"resolved":"unresolved"])[t])&&void 0!==r?r:n[t]=[]).push(i)}const l=Object.keys(f.resolved),d=Object.keys(f.unresolved);l.length>0&&p(c.documentInventory.resolved,f.resolved,l),d.length>0&&p(c.documentInventory.unresolved,f.unresolved,d),this.runtime.emit("beforeTeardown");try{c.promises.length>0&&await Promise.all(c.promises)}finally{this.runtime.emit("afterTeardown")}}getResults(e){return(0,i.prepareResults)(this.results,e)}}},2797:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RunnerRuntime=void 0;const n=r(7747);class i extends n.EventEmitter{constructor(){super(),this.revokables=[]}persist(e){const{proxy:t,revoke:r}=Proxy.revocable(e,{});return this.revokables.push(r),t}revoke(){let e;for(;e=this.revokables.shift();)e()}spawn(){return this.persist(Object.freeze({on:this.hijackDisposable(this.on)}))}hijackDisposable(e){return(...t)=>{this.revokables.push(e.apply(this,t).dispose)}}}t.RunnerRuntime=i},2776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLintTargets=void 0;const n=r(6879),i=r(6486);t.getLintTargets=(e,t)=>{const r=[];if((0,i.isObject)(e)&&"string"==typeof t)if("@key"===t)for(const t of Object.keys(e))r.push({path:[t],value:t});else t.startsWith("$")?(0,n.JSONPath)({path:t,json:e,resultType:"all",callback(e){r.push({path:(0,i.toPath)(e.path.slice(1)),value:e.value})}}):r.push({path:(0,i.toPath)(t),value:(0,i.get)(e,t)});else r.push({path:[],value:e});return 0===r.length&&r.push({path:[],value:void 0}),r}},2055:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);(0,n.__exportStar)(r(2776),t),(0,n.__exportStar)(r(1667),t)},1667:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.message=void 0;const n=r(1403),i=new(r(9342).Replacer)(2);i.addFunction("print",(function(e){if("string"!=typeof e)return"";const{property:t,value:r}=this;switch(e){case"property":return void 0!==t&&""!==t?`"${t}" property `:"The document ";case"value":return(0,n.printValue)(r);default:return e in this&&null!==this[e]?String(this[e]):""}})),t.message=i.print.bind(i)},4840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Spectral=void 0;const n=r(655),i=r(7953),o=r(2749),s=(0,n.__importStar)(r(644)),a=r(3871),c=r(6486),p=r(5786),u=r(827),f=r(8876),l=r(396),d=r(3711),h=r(3850),m=r(7690);c.memoize.Cache=WeakMap,(0,n.__exportStar)(r(4489),t),t.Spectral=class{constructor(e){this.opts=e,this._computeFingerprint=(0,c.memoize)(l.defaultComputeResultFingerprint),void 0!==(null==e?void 0:e.resolver)?this._resolver=e.resolver:this._resolver=(0,a.createHttpAndFileResolver)(),this.runtime=new f.RunnerRuntime}parseDocument(e){return e instanceof p.Document?e:(0,p.isParsedResult)(e)?new p.ParsedDocument(e):new p.Document("string"==typeof e?e:(0,i.stringify)(e,void 0,2),s.Yaml)}async runWithResolved(e,t={}){if(void 0===this.ruleset)throw new Error("No ruleset has been defined. Have you called setRuleset()?");const r=this.parseDocument(e),n=this.ruleset.fromSource(r.source),i=new u.DocumentInventory(r,this._resolver);await i.resolve();const o=new f.Runner(this.runtime,i);if(o.results.push(...this._filterParserErrors(r.diagnostics,n.parserOptions)),void 0===r.formats){const e=[...n.formats].filter((e=>e(i.resolved,r.source)));0===e.length&&!0!==t.ignoreUnknownFormat?(r.formats=null,n.formats.size>0&&o.addResult(this._generateUnrecognizedFormatError(r,Array.from(n.formats)))):r.formats=new Set(e)}await o.run(n);const s=o.getResults(this._computeFingerprint);return{resolved:i.resolved,results:s}}async run(e,t={}){return(await this.runWithResolved(e,t)).results}setRuleset(e){this.runtime.revoke(),this.ruleset=e instanceof d.Ruleset?e:new d.Ruleset(e)}_generateUnrecognizedFormatError(e,t){return(0,h.generateDocumentWideResult)(e,`The provided document does not match any of the registered formats [${t.map((e=>{var t;return null!==(t=e.displayName)&&void 0!==t?t:e.name})).join(", ")}]`,o.DiagnosticSeverity.Warning,"unrecognized-format")}_filterParserErrors(e,t){return e.reduce(((e,r)=>{if("parser"!==r.code)return e;let n;if(r.message.startsWith("Mapping key must be a string scalar rather than"))n=(0,m.getDiagnosticSeverity)(t.incompatibleValues);else{if(!r.message.startsWith("Duplicate key"))return e.push(r),e;n=(0,m.getDiagnosticSeverity)(t.duplicateKeys)}return-1!==n&&(e.push(r),r.severity=n),e}),[])}}},1095:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4489:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);(0,n.__exportStar)(r(5445),t),(0,n.__exportStar)(r(1095),t)},5445:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateDocumentWideResult=void 0;const n=r(5786);t.generateDocumentWideResult=(e,t,r,i)=>{var o;return{range:null!==(o=e.getRangeForJsonPath([],!0))&&void 0!==o?o:n.Document.DEFAULT_RANGE,message:t,code:i,severity:r,...null!==e.source?{source:e.source}:null,path:[]}}},396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(655);(0,n.__exportStar)(r(7926),t),(0,n.__exportStar)(r(4838),t)},7926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareResults=t.defaultComputeResultFingerprint=void 0;const n=r(9560),i=r(6486),o=r(4838);t.defaultComputeResultFingerprint=(e,t)=>{let r=String(e.code);return e.path.length>0?r+=JSON.stringify(e.path):r+=JSON.stringify(e.range),void 0!==e.source&&(r+=e.source),void 0!==e.message&&(r+=e.message),t(r)},t.prepareResults=(e,t)=>(s(e,t),c(a(e)));const s=(e,t)=>{for(const r of e)Object.defineProperty(r,"fingerprint",{value:t(r,n)});return e},a=e=>(0,i.uniqBy)([...e],"fingerprint"),c=e=>[...e].sort(o.compareResults)},9342:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Replacer=void 0;const n=(0,r(655).__importDefault)(r(1378));t.Replacer=class{constructor(e){this.regex=new RegExp(`#?${"{".repeat(e)}([^}\n]+)${"}".repeat(e)}`,"g"),this.functions={}}addFunction(e,t){this.functions[e]=t}print(e,t){return e.replace(this.regex,((r,i,o)=>"#"===e[o]?String((0,n.default)(i,{...Object.entries(this.functions).reduce(((e,[r,n])=>(e[r]=n.bind(t),e)),{}),...t})):i in t?String(t[i]):""))}}},4838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortResults=t.compareResults=t.comparePosition=void 0;const r=e=>e<0?-1:e>0?1:0;t.comparePosition=(e,t)=>{const n=e.line-t.line;if(0!==n)return r(n);const i=e.character-t.character;return r(i)},t.compareResults=(e,n)=>{const i=((e,t)=>void 0===e&&void 0===t?0:void 0===e?-1:void 0===t?1:e.localeCompare(t))(e.source,n.source);if(0!==i)return r(i);const o=(0,t.comparePosition)(e.range.start,n.range.start);if(0!==o)return o;const s=((e,t)=>void 0===e&&void 0===t?0:void 0===e?-1:void 0===t?1:String(e).localeCompare(String(t),void 0,{numeric:!0}))(e.code,n.code);if(0!==s)return r(s);const a=e.path.join().localeCompare(n.path.join());return r(a)},t.sortResults=e=>[...e].sort(t.compareResults)},2749:(e,t)=>{"use strict";var r,n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.HttpParamStyles=void 0,(r=t.HttpParamStyles||(t.HttpParamStyles={})).Simple="simple",r.Matrix="matrix",r.Label="label",r.Form="form",r.CommaDelimited="commaDelimited",r.SpaceDelimited="spaceDelimited",r.PipeDelimited="pipeDelimited",r.DeepObject="deepObject",t.DiagnosticSeverity=void 0,(n=t.DiagnosticSeverity||(t.DiagnosticSeverity={}))[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Information=2]="Information",n[n.Hint=3]="Hint",t.NodeType=void 0,(i=t.NodeType||(t.NodeType={})).Article="article",i.HttpService="http_service",i.HttpServer="http_server",i.HttpOperation="http_operation",i.Model="model",i.Generic="generic",i.Unknown="unknown",i.TableOfContents="table_of_contents",i.SpectralRuleset="spectral_ruleset",i.Styleguide="styleguide",i.Image="image",t.NodeFormat=void 0,(o=t.NodeFormat||(t.NodeFormat={})).Json="json",o.Markdown="markdown",o.Yaml="yaml",o.Apng="apng",o.Avif="avif",o.Bmp="bmp",o.Gif="gif",o.Jpeg="jpeg",o.Png="png",o.Svg="svg",o.Webp="webp"},5839:(e,t)=>{"use strict";var r,n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.HttpParamStyles=void 0,(r=t.HttpParamStyles||(t.HttpParamStyles={})).Simple="simple",r.Matrix="matrix",r.Label="label",r.Form="form",r.CommaDelimited="commaDelimited",r.SpaceDelimited="spaceDelimited",r.PipeDelimited="pipeDelimited",r.DeepObject="deepObject",t.DiagnosticSeverity=void 0,(n=t.DiagnosticSeverity||(t.DiagnosticSeverity={}))[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Information=2]="Information",n[n.Hint=3]="Hint",t.NodeType=void 0,(i=t.NodeType||(t.NodeType={})).Article="article",i.HttpService="http_service",i.HttpServer="http_server",i.HttpOperation="http_operation",i.Model="model",i.Generic="generic",i.Unknown="unknown",i.TableOfContents="table_of_contents",i.SpectralRuleset="spectral_ruleset",i.Styleguide="styleguide",i.Image="image",t.NodeFormat=void 0,(o=t.NodeFormat||(t.NodeFormat={})).Json="json",o.Markdown="markdown",o.Yaml="yaml",o.Apng="apng",o.Avif="avif",o.Bmp="bmp",o.Gif="gif",o.Jpeg="jpeg",o.Png="png",o.Svg="svg",o.Webp="webp"},3854:(e,t,r)=>{"use strict";var n=r(210),i=r(2432),o=r(7312),s=r(3633),a=r(1645),c=n("%TypeError%");e.exports=function(e,t,r){if("String"!==s(e))throw new c("Assertion failed: `S` must be a String");if(!o(t)||t<0||t>a)throw new c("Assertion failed: `length` must be an integer >= 0 and <= 2**53");if("Boolean"!==s(r))throw new c("Assertion failed: `unicode` must be a Boolean");return r?t+1>=e.length?t+1:t+i(e,t)["[[CodeUnitCount]]"]:t+1}},581:(e,t,r)=>{"use strict";var n=r(210),i=r(1924),o=n("%TypeError%"),s=r(6975),a=n("%Reflect.apply%",!0)||i("%Function.prototype.apply%");e.exports=function(e,t){var r=arguments.length>2?arguments[2]:[];if(!s(r))throw new o("Assertion failed: optional `argumentsList`, if provided, must be a List");return a(e,t,r)}},2432:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(1924),o=r(9544),s=r(5424),a=r(3633),c=r(4857),p=i("String.prototype.charAt"),u=i("String.prototype.charCodeAt");e.exports=function(e,t){if("String"!==a(e))throw new n("Assertion failed: `string` must be a String");var r=e.length;if(t<0||t>=r)throw new n("Assertion failed: `position` must be >= 0, and < the length of `string`");var i=u(e,t),f=p(e,t),l=o(i),d=s(i);if(!l&&!d)return{"[[CodePoint]]":f,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!1};if(d||t+1===r)return{"[[CodePoint]]":f,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0};var h=u(e,t+1);return s(h)?{"[[CodePoint]]":c(i,h),"[[CodeUnitCount]]":2,"[[IsUnpairedSurrogate]]":!1}:{"[[CodePoint]]":f,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0}}},4210:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(3682),o=r(8334),s=r(697),a=r(3746),c=r(4914),p=r(4305),u=r(484),f=r(3633);e.exports=function(e,t,r){if("Object"!==f(e))throw new n("Assertion failed: Type(O) is not Object");if(!p(t))throw new n("Assertion failed: IsPropertyKey(P) is not true");var l=s(e,t),d=!l||c(e);return!(l&&!l["[[Configurable]]"]||!d)&&i(a,u,o,e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":r,"[[Writable]]":!0})}},1146:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(4210),o=r(4305),s=r(3633);e.exports=function(e,t,r){if("Object"!==s(e))throw new n("Assertion failed: Type(O) is not Object");if(!o(t))throw new n("Assertion failed: IsPropertyKey(P) is not true");var a=i(e,t,r);if(!a)throw new n("unable to create data property");return a}},7730:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(3682),o=r(8334),s=r(3746),a=r(4305),c=r(484),p=r(3633);e.exports=function(e,t,r){if("Object"!==p(e))throw new n("Assertion failed: Type(O) is not Object");if(!a(t))throw new n("Assertion failed: IsPropertyKey(P) is not true");return i(s,c,o,e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":r,"[[Writable]]":!0})}},8334:(e,t,r)=>{"use strict";var n=r(2188),i=r(7141),o=r(3633);e.exports=function(e){return void 0!==e&&n(o,"Property Descriptor","Desc",e),i(e)}},1391:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(12),o=r(4305),s=r(3633);e.exports=function(e,t){if("Object"!==s(e))throw new n("Assertion failed: Type(O) is not Object");if(!o(t))throw new n("Assertion failed: IsPropertyKey(P) is not true, got "+i(t));return e[t]}},6400:(e,t,r)=>{"use strict";var n=r(210),i=n("%TypeError%"),o=n("%Symbol.asyncIterator%",!0),s=r(12),a=r(1405)(),c=r(7113),p=r(3854),u=r(581),f=r(7364),l=r(6975),d=r(3633);e.exports=function(e,t,r){var n=t;if(arguments.length<2&&(n="sync"),"sync"!==n&&"async"!==n)throw new i("Assertion failed: `hint` must be one of 'sync' or 'async', got "+s(t));var h=r;if(arguments.length<3)if("async"===n){if(a&&o&&(h=f(e,o)),void 0===h)throw new i("async from sync iterators aren't currently supported")}else h=c({AdvanceStringIndex:p,GetMethod:f,IsArray:l},e);var m=u(h,e);if("Object"!==d(m))throw new i("iterator must return an object");return m}},7364:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(631),o=r(1787),s=r(4305);e.exports=function(e,t){if(!s(t))throw new n("Assertion failed: IsPropertyKey(P) is not true");var r=i(e,t);if(null!=r){if(!o(r))throw new n(t+"is not a function");return r}}},631:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(4305),o=r(821);e.exports=function(e,t){if(!i(t))throw new n("Assertion failed: IsPropertyKey(P) is not true");return o(e)[t]}},1189:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(581),o=r(6975),s=r(631),a=r(4305);e.exports=function(e,t){if(!a(t))throw new n("Assertion failed: P must be a Property Key");var r=arguments.length>2?arguments[2]:[];if(!o(r))throw new n("Assertion failed: optional `argumentsList`, if provided, must be a List");var c=s(e,t);return i(c,e,r)}},6975:(e,t,r)=>{"use strict";e.exports=r(675)},1787:(e,t,r)=>{"use strict";e.exports=r(5320)},3746:(e,t,r)=>{"use strict";var n=r(7642),i=r(2188),o=r(3633);e.exports=function(e){return void 0!==e&&(i(o,"Property Descriptor","Desc",e),!(!n(e,"[[Value]]")&&!n(e,"[[Writable]]")))}},4914:(e,t,r)=>{"use strict";var n=r(210),i=n("%Object.preventExtensions%",!0),o=n("%Object.isExtensible%",!0),s=r(4790);e.exports=i?function(e){return!s(e)&&o(e)}:function(e){return!s(e)}},7312:(e,t,r)=>{"use strict";var n=r(4908),i=r(375),o=r(3633),s=r(9086),a=r(2633);e.exports=function(e){if("Number"!==o(e)||s(e)||!a(e))return!1;var t=n(e);return i(t)===t}},4305:e=>{"use strict";e.exports=function(e){return"string"==typeof e||"symbol"==typeof e}},840:(e,t,r)=>{"use strict";var n=r(210)("%Symbol.match%",!0),i=r(8420),o=r(9731);e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(n){var t=e[n];if(void 0!==t)return o(t)}return i(e)}},90:(e,t,r)=>{"use strict";var n=r(1924)("Array.prototype.push"),i=r(6400),o=r(3152),s=r(3452);e.exports=function(e){var t;t=arguments.length>1?i(e,"sync",arguments[1]):i(e,"sync");for(var r=[],a=!0;a;)if(a=o(t)){var c=s(a);n(r,c)}return r}},1433:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(1391),o=r(9731),s=r(3633);e.exports=function(e){if("Object"!==s(e))throw new n("Assertion failed: Type(iterResult) is not Object");return o(i(e,"done"))}},9634:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(1189),o=r(3633);e.exports=function(e,t){var r=i(e,"next",arguments.length<2?[]:[t]);if("Object"!==o(r))throw new n("iterator next must return an object");return r}},3152:(e,t,r)=>{"use strict";var n=r(1433),i=r(9634);e.exports=function(e){var t=i(e);return!0!==n(t)&&t}},3452:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(1391),o=r(3633);e.exports=function(e){if("Object"!==o(e))throw new n("Assertion failed: Type(iterResult) is not Object");return i(e,"value")}},697:(e,t,r)=>{"use strict";var n=r(210),i=r(882),o=n("%TypeError%"),s=r(1924)("Object.prototype.propertyIsEnumerable"),a=r(7642),c=r(6975),p=r(4305),u=r(840),f=r(9916),l=r(3633);e.exports=function(e,t){if("Object"!==l(e))throw new o("Assertion failed: O must be an Object");if(!p(t))throw new o("Assertion failed: P must be a Property Key");if(a(e,t)){if(!i){var r=c(e)&&"length"===t,n=u(e)&&"lastIndex"===t;return{"[[Configurable]]":!(r||n),"[[Enumerable]]":s(e,t),"[[Value]]":e[t],"[[Writable]]":!0}}return f(i(e,t))}}},1793:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(5693),o=r(3633);e.exports=function(e){if("Object"!==o(e))throw new n("Assertion failed: O must be an Object");if(!i)throw new n("This environment does not support fetching prototypes.");return i(e)}},5688:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%"),i=r(2105),o=r(1793),s=r(3633);e.exports=function(e,t){if("Object"!==s(t)&&"Null"!==s(t))throw new n("Assertion failed: V must be Object or Null");try{i(e,t)}catch(e){return!1}return o(e)===t}},9619:(e,t,r)=>{"use strict";e.exports=r(4559)},484:(e,t,r)=>{"use strict";var n=r(9086);e.exports=function(e,t){return e===t?0!==e||1/e==1/t:n(e)&&n(t)}},9731:e=>{"use strict";e.exports=function(e){return!!e}},821:(e,t,r)=>{"use strict";var n=r(210)("%Object%"),i=r(9619);e.exports=function(e){return i(e),n(e)}},9916:(e,t,r)=>{"use strict";var n=r(7642),i=r(210)("%TypeError%"),o=r(3633),s=r(9731),a=r(1787);e.exports=function(e){if("Object"!==o(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(n(e,"enumerable")&&(t["[[Enumerable]]"]=s(e.enumerable)),n(e,"configurable")&&(t["[[Configurable]]"]=s(e.configurable)),n(e,"value")&&(t["[[Value]]"]=e.value),n(e,"writable")&&(t["[[Writable]]"]=s(e.writable)),n(e,"get")){var r=e.get;if(void 0!==r&&!a(r))throw new i("getter must be a function");t["[[Get]]"]=r}if(n(e,"set")){var c=e.set;if(void 0!==c&&!a(c))throw new i("setter must be a function");t["[[Set]]"]=c}if((n(t,"[[Get]]")||n(t,"[[Set]]"))&&(n(t,"[[Value]]")||n(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},3633:(e,t,r)=>{"use strict";var n=r(3951);e.exports=function(e){return"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":n(e)}},4857:(e,t,r)=>{"use strict";var n=r(210),i=n("%TypeError%"),o=n("%String.fromCharCode%"),s=r(9544),a=r(5424);e.exports=function(e,t){if(!s(e)||!a(t))throw new i("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");return o(e)+o(t)}},4908:(e,t,r)=>{"use strict";var n=r(210)("%Math.abs%");e.exports=function(e){return n(e)}},375:e=>{"use strict";var t=Math.floor;e.exports=function(e){return t(e)}},4559:(e,t,r)=>{"use strict";var n=r(210)("%TypeError%");e.exports=function(e,t){if(null==e)throw new n(t||"Cannot call method on "+e);return e}},3951:e=>{"use strict";e.exports=function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0}},3682:(e,t,r)=>{"use strict";var n=r(1044),i=r(210),o=n()&&i("%Object.defineProperty%",!0),s=n.hasArrayLengthDefineBug(),a=s&&r(675),c=r(1924)("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,r,n,i,p){if(!o){if(!e(p))return!1;if(!p["[[Configurable]]"]||!p["[[Writable]]"])return!1;if(i in n&&c(n,i)!==!!p["[[Enumerable]]"])return!1;var u=p["[[Value]]"];return n[i]=u,t(n[i],u)}return s&&"length"===i&&"[[Value]]"in p&&a(n)&&n.length!==p["[[Value]]"]?(n.length=p["[[Value]]"],n.length===p["[[Value]]"]):(o(n,i,r(p)),!0)}},675:(e,t,r)=>{"use strict";var n=r(210)("%Array%"),i=!n.isArray&&r(1924)("Object.prototype.toString");e.exports=n.isArray||function(e){return"[object Array]"===i(e)}},2188:(e,t,r)=>{"use strict";var n=r(210),i=n("%TypeError%"),o=n("%SyntaxError%"),s=r(7642),a={"Property Descriptor":function(e){var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in e)if(s(e,r)&&!t[r])return!1;var n=s(e,"[[Value]]"),o=s(e,"[[Get]]")||s(e,"[[Set]]");if(n&&o)throw new i("Property Descriptors may not be both accessor and data descriptors");return!0},"Match Record":r(4377)};e.exports=function(e,t,r,n){var s=a[t];if("function"!=typeof s)throw new o("unknown record type: "+t);if("Object"!==e(n)||!s(n))throw new i(r+" must be a "+t)}},7141:e=>{"use strict";e.exports=function(e){if(void 0===e)return e;var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=!!e["[[Configurable]]"]),t}},7113:(e,t,r)=>{"use strict";var n=r(1405)(),i=r(210),o=r(1924),s=r(9981),a=i("%Symbol.iterator%",!0),c=o("String.prototype.slice"),p=i("%String%",!0);e.exports=function(e,t){var r;return n?r=e.GetMethod(t,a):e.IsArray(t)?r=function(){var e=-1,t=this;return{next:function(){return{done:(e+=1)>=t.length,value:t[e]}}}}:s(t)&&(r=function(){var r=0;return{next:function(){var n=e.AdvanceStringIndex(p(t),r,!0),i=c(t,r,n);return r=n,{done:n>t.length,value:i}}}}),r}},882:(e,t,r)=>{"use strict";var n=r(210)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},5693:(e,t,r)=>{"use strict";var n=r(210),i=n("%Object.getPrototypeOf%",!0),o=n("%Array.prototype%");e.exports=i||([].__proto__===o?function(e){return e.__proto__}:null)},2633:e=>{"use strict";var t=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!t(e)&&e!==1/0&&e!==-1/0}},9544:e=>{"use strict";e.exports=function(e){return"number"==typeof e&&e>=55296&&e<=56319}},4377:(e,t,r)=>{"use strict";var n=r(7642);e.exports=function(e){return n(e,"[[StartIndex]]")&&n(e,"[[EndIndex]]")&&e["[[StartIndex]]"]>=0&&e["[[EndIndex]]"]>=e["[[StartIndex]]"]&&String(parseInt(e["[[StartIndex]]"],10))===String(e["[[StartIndex]]"])&&String(parseInt(e["[[EndIndex]]"],10))===String(e["[[EndIndex]]"])}},9086:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},4790:e=>{"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},5424:e=>{"use strict";e.exports=function(e){return"number"==typeof e&&e>=56320&&e<=57343}},1645:(e,t,r)=>{"use strict";var n=r(210),i=n("%Math%"),o=n("%Number%");e.exports=o.MAX_SAFE_INTEGER||i.pow(2,53)-1},2105:(e,t,r)=>{"use strict";var n=r(210),i=n("%Object.setPrototypeOf%",!0),o=n("%Array.prototype%");e.exports=i||([].__proto__!==o?null:function(e,t){return e.__proto__=t,e})},3612:e=>{"use strict";class t{static get version(){return"1.0.2"}static toString(){return"JavaScript Expression Parser (JSEP) v"+t.version}static addUnaryOp(e){return t.max_unop_len=Math.max(e.length,t.max_unop_len),t.unary_ops[e]=1,t}static addBinaryOp(e,r,n){return t.max_binop_len=Math.max(e.length,t.max_binop_len),t.binary_ops[e]=r,n?t.right_associative.add(e):t.right_associative.delete(e),t}static addIdentifierChar(e){return t.additional_identifier_chars.add(e),t}static addLiteral(e,r){return t.literals[e]=r,t}static removeUnaryOp(e){return delete t.unary_ops[e],e.length===t.max_unop_len&&(t.max_unop_len=t.getMaxKeyLen(t.unary_ops)),t}static removeAllUnaryOps(){return t.unary_ops={},t.max_unop_len=0,t}static removeIdentifierChar(e){return t.additional_identifier_chars.delete(e),t}static removeBinaryOp(e){return delete t.binary_ops[e],e.length===t.max_binop_len&&(t.max_binop_len=t.getMaxKeyLen(t.binary_ops)),t.right_associative.delete(e),t}static removeAllBinaryOps(){return t.binary_ops={},t.max_binop_len=0,t}static removeLiteral(e){return delete t.literals[e],t}static removeAllLiterals(){return t.literals={},t}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new t(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map((e=>e.length)))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return t.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!t.binary_ops[String.fromCharCode(e)]||t.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return t.isIdentifierStart(e)||t.isDecimalDigit(e)}throwError(e){const t=new Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}runHook(e,r){if(t.hooks[e]){const n={context:this,node:r};return t.hooks.run(e,n),n.node}return r}searchHook(e){if(t.hooks[e]){const r={context:this};return t.hooks[e].find((function(e){return e.call(r.context,r),r.node})),r.node}}gobbleSpaces(){let e=this.code;for(;e===t.SPACE_CODE||e===t.TAB_CODE||e===t.LF_CODE||e===t.CR_CODE;)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");const e=this.gobbleExpressions(),r=1===e.length?e[0]:{type:t.COMPOUND,body:e};return this.runHook("after-all",r)}gobbleExpressions(e){let r,n,i=[];for(;this.index0;){if(t.binary_ops.hasOwnProperty(e)&&(!t.isIdentifierStart(this.code)||this.index+e.lengtho.right_a&&e.right_a?n>e.prec:n<=e.prec;for(;i.length>2&&c(i[i.length-2]);)a=i.pop(),r=i.pop().value,s=i.pop(),e={type:t.BINARY_EXP,operator:r,left:s,right:a},i.push(e);e=this.gobbleToken(),e||this.throwError("Expected expression after "+p),i.push(o,e)}for(c=i.length-1,e=i[c];c>1;)e={type:t.BINARY_EXP,operator:i[c-1].value,left:i[c-2],right:e},c-=2;return e}gobbleToken(){let e,r,n,i;if(this.gobbleSpaces(),i=this.searchHook("gobble-token"),i)return this.runHook("after-token",i);if(e=this.code,t.isDecimalDigit(e)||e===t.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===t.SQUOTE_CODE||e===t.DQUOTE_CODE)i=this.gobbleStringLiteral();else if(e===t.OBRACK_CODE)i=this.gobbleArray();else{for(r=this.expr.substr(this.index,t.max_unop_len),n=r.length;n>0;){if(t.unary_ops.hasOwnProperty(r)&&(!t.isIdentifierStart(this.code)||this.index+r.length=r.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}if(o===t.COMMA_CODE){if(this.index++,i++,i!==r.length)if(e===t.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===t.CBRACK_CODE)for(let e=r.length;e{if("object"!=typeof e||!e.name||!e.init)throw new Error("Invalid JSEP plugin format");this.registered[e.name]||(e.init(this.jsep),this.registered[e.name]=e)}))}}(t),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10},right_associative:new Set,additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),t.max_unop_len=t.getMaxKeyLen(t.unary_ops),t.max_binop_len=t.getMaxKeyLen(t.binary_ops);const n=e=>new t(e).parse();Object.getOwnPropertyNames(t).forEach((e=>{void 0===n[e]&&"prototype"!==e&&(n[e]=t[e])})),n.Jsep=t;var i={name:"ternary",init(e){e.hooks.add("after-expression",(function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;const r=t.node,n=this.gobbleExpression();if(n||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;const i=this.gobbleExpression();if(i||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:r,consequent:n,alternate:i},r.operator&&e.binary_ops[r.operator]<=.9){let n=r;for(;n.right.operator&&e.binary_ops[n.right.operator]<=.9;)n=n.right;t.node.test=n.right,n.right=t.node,t.node=r}}else this.throwError("Expected :")}}))}};n.plugins.register(i),e.exports=n},1458:(e,t)=>{"use strict";function r(e){return{type:"StringLiteral",value:e}}function n(e){return{type:"BooleanLiteral",value:e}}function i(e){return{type:"NumericLiteral",value:e}}function o(e){return{type:"Identifier",name:e}}function s(e,t){return{type:"CallExpression",callee:e,arguments:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayExpression=function(e){return{type:"ArrayExpression",elements:e}},t.arrowFunctionExpression=function(e,t,r=!1){return{type:"ArrowFunctionExpression",params:e,body:t,async:r}},t.assignmentExpression=function(e,t,r){return{type:"AssignmentExpression",operator:e,left:t,right:r}},t.binaryExpression=function(e,t,r){return{type:"BinaryExpression",operator:e,left:t,right:r}},t.blockStatement=function(e,t){return{type:"BlockStatement",body:e,directives:t}},t.booleanLiteral=n,t.callExpression=s,t.conditionalExpression=function(e,t,r){return{type:"ConditionalExpression",test:e,consequent:t,alternate:r}},t.exportDefaultDeclaration=function(e){return{type:"ExportDefaultDeclaration",declaration:e}},t.expressionStatement=function(e){return{type:"ExpressionStatement",expression:e}},t.forOfStatement=function(e,t,r,n){return{type:"ForOfStatement",left:e,right:t,body:r,await:n}},t.functionDeclaration=function(e,t,r){return{type:"FunctionDeclaration",id:e,params:t,body:r}},t.identifier=o,t.ifStatement=function(e,t,r){return{type:"IfStatement",test:e,consequent:t,alternate:r}},t.importDeclaration=function(e,t){return{type:"ImportDeclaration",specifiers:e,source:t}},t.importSpecifier=function(e,t){return{type:"ImportSpecifier",local:e,imported:t}},t.literal=function(e){switch(typeof e){case"number":return i(e);case"string":return r(e);case"boolean":return n(e)}},t.logicalExpression=function(e,t,r){return{type:"LogicalExpression",operator:e,left:t,right:r}},t.memberExpression=function(e,t,r=!1,n=null){return{type:"MemberExpression",object:e,property:t,computed:r,optional:n}},t.newExpression=function(e,t){return{type:"NewExpression",callee:e,arguments:t}},t.nullLiteral=function(){return{type:"NullLiteral",value:null}},t.numericLiteral=i,t.objectExpression=function(e){return{type:"ObjectExpression",properties:e}},t.objectMethod=function(e,t,r,n,i=!1,o=!1,s=!1){return{type:"ObjectMethod",kind:e,key:t,params:r,body:n,computed:i,generator:o,async:s}},t.objectProperty=function(e,t,r=!1,n=!1,i=null){return{type:"ObjectProperty",key:e,value:t,computed:r,shorthand:n,decorators:i}},t.program=function(e){return{type:"Program",body:e}},t.regExpLiteral=function(e,t=""){return{type:"RegExpLiteral",pattern:e,flags:t}},t.returnStatement=function(e){return{type:"ReturnStatement",argument:e}},t.safeBinaryExpression=function(e,t,n){let i=n;return("NumericLiteral"===n.type||"StringLiteral"===n.type&&Number.isSafeInteger(Number(n.value)))&&(i=r(String(n.value))),{type:"BinaryExpression",operator:e,left:i===n?t:s(o("String"),[t]),right:i}},t.sequenceExpression=function(e){return{type:"SequenceExpression",expressions:e}},t.stringLiteral=r,t.templateElement=function(e,t=!1){return{type:"TemplateElement",value:e,tail:t}},t.templateLiteral=function(e,t){return{type:"TemplateLiteral",quasis:e,expressions:t}},t.tryStatement=function(e,t=null,r=null){return{type:"TryStatement",block:e,handler:t,finalizer:r}},t.unaryExpression=function(e,t,r=!0){return{type:"UnaryExpression",operator:e,argument:t,prefix:r}},t.variableDeclaration=function(e,t){return{type:"VariableDeclaration",kind:e,declarations:t}},t.variableDeclarator=function(e,t){return{type:"VariableDeclarator",id:e,init:t}}},1077:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1458);function i(e){return`nimma_${e}`}function o(e){return n.identifier(i(e))}t.default=class{#e=new Set;#t=new Map;#r;#n="";runtimeDeps=new Map;constructor(e,t){this.#r=t;for(const[t,r]of Object.entries(e)){const e=[];for(const{imported:s,local:a,value:c}of r)this.#t.set(a,c),this.runtimeDeps.set(i(a),c),e.push(n.importSpecifier(o(a),n.identifier(s))),this.#e.add(n.importDeclaration(e,n.stringLiteral(t)))}}get extraCode(){return this.#n||(this.#n=function(e){const t=Reflect.apply(Function.toString,e,[]),r=t.indexOf(")")+1,n=t.slice(r).replace(/^\s*(=>\s*)?/,"");return`${t.slice(t.indexOf("("),r).split(/[,\s]+/).splice(0,3).join(", ")} => ${n}`}(this.#r)),this.#n}attach(e){for(const t of this.#e)e.push(t,"program");const t=n.identifier("fallback"),r=Array.from(this.#t.keys());return e.push(n.variableDeclaration("const",[n.variableDeclarator(t,n.callExpression(n.memberExpression(n.callExpression(n.identifier("Function"),[n.templateLiteral([n.templateElement({raw:`return ${this.extraCode}`})],[])]),n.identifier("call")),[n.objectExpression(r.map((e=>n.objectProperty(n.stringLiteral(e),o(e)))))]))]),"program"),t}}},5160:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4029);t.jsonPathPlus=n.default},4029:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4268),i=r(782),o=r(1077);function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=s(i),c=new o.default({"jsonpath-plus":[{imported:"JSONPath",local:"JSONPath",value:n.JSONPath}],"lodash.topath":[{imported:"default",local:"toPath",value:a.default}]},(function(e,t,r){this.JSONPath({callback:e=>{r({path:this.toPath(e.path.slice(1)),value:e.value})},json:e,path:t,resultType:"all"})}));t.default=c},3369:(e,t)=>{"use strict";function r(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function n(e,t){return t.get?t.get.call(e):t.value}function i(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}Object.defineProperty(t,"__esModule",{value:!0}),t.classApplyDescriptorGet=n,t.classApplyDescriptorSet=i,t.classExtractFieldDescriptor=r,t.classPrivateFieldGet=function(e,t){return n(e,r(e,t,"get"))},t.classPrivateFieldSet=function(e,t,n){return i(e,r(e,t,"set"),n),n},t.defineProperty=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},1282:(e,t)=>{"use strict";function r(e){return{type:"StringLiteral",value:e}}function n(e){return{type:"BooleanLiteral",value:e}}function i(e){return{type:"NumericLiteral",value:e}}function o(e){return{type:"Identifier",name:e}}function s(e,t){return{type:"CallExpression",callee:e,arguments:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayExpression=function(e){return{type:"ArrayExpression",elements:e}},t.arrowFunctionExpression=function(e,t,r=!1){return{type:"ArrowFunctionExpression",params:e,body:t,async:r}},t.assignmentExpression=function(e,t,r){return{type:"AssignmentExpression",operator:e,left:t,right:r}},t.binaryExpression=function(e,t,r){return{type:"BinaryExpression",operator:e,left:t,right:r}},t.blockStatement=function(e,t){return{type:"BlockStatement",body:e,directives:t}},t.booleanLiteral=n,t.callExpression=s,t.conditionalExpression=function(e,t,r){return{type:"ConditionalExpression",test:e,consequent:t,alternate:r}},t.exportDefaultDeclaration=function(e){return{type:"ExportDefaultDeclaration",declaration:e}},t.expressionStatement=function(e){return{type:"ExpressionStatement",expression:e}},t.forOfStatement=function(e,t,r,n){return{type:"ForOfStatement",left:e,right:t,body:r,await:n}},t.functionDeclaration=function(e,t,r){return{type:"FunctionDeclaration",id:e,params:t,body:r}},t.identifier=o,t.ifStatement=function(e,t,r){return{type:"IfStatement",test:e,consequent:t,alternate:r}},t.importDeclaration=function(e,t){return{type:"ImportDeclaration",specifiers:e,source:t}},t.importSpecifier=function(e,t){return{type:"ImportSpecifier",local:e,imported:t}},t.literal=function(e){switch(typeof e){case"number":return i(e);case"string":return r(e);case"boolean":return n(e)}},t.logicalExpression=function(e,t,r){return{type:"LogicalExpression",operator:e,left:t,right:r}},t.memberExpression=function(e,t,r=!1,n=null){return{type:"MemberExpression",object:e,property:t,computed:r,optional:n}},t.newExpression=function(e,t){return{type:"NewExpression",callee:e,arguments:t}},t.nullLiteral=function(){return{type:"NullLiteral",value:null}},t.numericLiteral=i,t.objectExpression=function(e){return{type:"ObjectExpression",properties:e}},t.objectMethod=function(e,t,r,n,i=!1,o=!1,s=!1){return{type:"ObjectMethod",kind:e,key:t,params:r,body:n,computed:i,generator:o,async:s}},t.objectProperty=function(e,t,r=!1,n=!1,i=null){return{type:"ObjectProperty",key:e,value:t,computed:r,shorthand:n,decorators:i}},t.program=function(e){return{type:"Program",body:e}},t.regExpLiteral=function(e,t=""){return{type:"RegExpLiteral",pattern:e,flags:t}},t.returnStatement=function(e){return{type:"ReturnStatement",argument:e}},t.safeBinaryExpression=function(e,t,n){let i=n;return("NumericLiteral"===n.type||"StringLiteral"===n.type&&Number.isSafeInteger(Number(n.value)))&&(i=r(String(n.value))),{type:"BinaryExpression",operator:e,left:i===n?t:s(o("String"),[t]),right:i}},t.sequenceExpression=function(e){return{type:"SequenceExpression",expressions:e}},t.stringLiteral=r,t.templateElement=function(e,t=!1){return{type:"TemplateElement",value:e,tail:t}},t.templateLiteral=function(e,t){return{type:"TemplateLiteral",quasis:e,expressions:t}},t.tryStatement=function(e,t=null,r=null){return{type:"TryStatement",block:e,handler:t,finalizer:r}},t.unaryExpression=function(e,t,r=!0){return{type:"UnaryExpression",operator:e,argument:t,prefix:r}},t.variableDeclaration=function(e,t){return{type:"VariableDeclaration",kind:e,declarations:t}},t.variableDeclarator=function(e,t){return{type:"VariableDeclarator",id:e,init:t}}},9918:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7955),i=r(1282),o=r(6582),s=r(9120),a=r(3264);function c(e,{deep:t,value:r}){if(e.feedback.bailed)return i.safeBinaryExpression("!==",a.default.property,i.literal(r));if(e.state.inverted)return i.safeBinaryExpression("!==",0===e.state.pos?a.default.property:i.memberExpression(a.default.path,i.binaryExpression("-",a.default.depth,i.numericLiteral(Math.abs(e.state.pos))),!0),i.literal(r));if(t){var n;const t=null===e.nextNode||"KeyExpression"===e.nextNode;(n=e.feedback).mutatesPos||(n.mutatesPos=!t);const s=i.sequenceExpression([i.assignmentExpression("=",o.default.pos,t?i.conditionalExpression(i.safeBinaryExpression("!==",a.default.property,i.literal(r)),i.numericLiteral(-1),a.default.depth):i.callExpression(i.memberExpression(a.default.path,i.identifier("indexOf")),[i.literal(r),0===e.state.pos?o.default.pos:i.binaryExpression("+",o.default.pos,i.numericLiteral(1))])),i.binaryExpression("===",o.default.pos,i.numericLiteral(-1))]);return t?i.logicalExpression("||",i.binaryExpression("<",a.default.depth,0===e.state.pos?o.default.pos:i.binaryExpression("+",o.default.pos,i.numericLiteral(e.state.pos))),s):s}let s;e.feedback.fixed||0===e.state.absolutePos||(s=i.binaryExpression("<",a.default.depth,0===e.state.pos?o.default.pos:i.binaryExpression("+",o.default.pos,i.numericLiteral(e.state.pos))));const c=i.safeBinaryExpression("!==",i.memberExpression(a.default.path,0===e.state.pos?i.numericLiteral(0):e.feedback.fixed?i.numericLiteral(e.state.pos):i.binaryExpression("+",o.default.pos,i.numericLiteral(e.state.pos)),!0),i.literal(r));return void 0!==s?i.logicalExpression("||",s,c):c}const p=i.identifier("inBounds");function u(e,t,r){switch(t.type){case"LogicalExpression":case"BinaryExpression":if("in"===t.operator)t.operator="===",t.left=i.callExpression(i.memberExpression(t.right,i.identifier("includes")),[u(e,t.left,r)]),t.right=i.booleanLiteral(!0);else if("~="===t.operator){if(t.operator="===","Literal"!==t.right.type)throw SyntaxError("Expected string");t.left=i.callExpression(i.memberExpression(i.regExpLiteral(t.right.value,""),i.identifier("test")),[u(e,t.left,r)]),t.right=i.booleanLiteral(!0)}else t.left=u(e,t.left,r),t.right=u(e,t.right,r),d(t.left),d(t.right);break;case"UnaryExpression":return t.argument=u(e,t.argument,r),d(t.argument),t;case"MemberExpression":t.object=u(e,t.object,r),d(t.object),t.property=u(e,t.property,r),t.computed&&d(t.property);break;case"CallExpression":if("Identifier"===t.callee.type&&t.callee.name.startsWith("@"))return f(e,t.callee.name,r);t.callee=u(e,t.callee,r),t.arguments=t.arguments.map((t=>u(e,t,r))),"MemberExpression"===t.callee.type&&t.callee.object===s.default.property&&t.callee.property.name in String.prototype&&(t.callee.object=i.callExpression(i.identifier("String"),[t.callee.object])),d(t.callee);break;case"Identifier":if(t.name.startsWith("@"))return f(e,t.name,r);if("undefined"===t.name)return i.unaryExpression("void",i.numericLiteral(0));if("index"===t.name)return s.default.index}return t}function f(e,t,r){switch(t){case"@":return h(s.default.value,r);case"@root":return h(s.default.root,r);case"@path":return h(s.default.path,r);case"@property":return h(s.default.property,r);case"@parent":return h(s.default.parentValue,r);case"@parentProperty":return h(s.default.parentProperty,r);case"@string":case"@number":case"@boolean":return i.binaryExpression("===",i.unaryExpression("typeof",h(s.default.value,r)),i.stringLiteral(t.slice(1)));case"@scalar":return i.logicalExpression("||",i.binaryExpression("===",h(s.default.value,r),i.nullLiteral()),i.binaryExpression("!==",i.unaryExpression("typeof",h(s.default.value,r)),i.stringLiteral("object")));case"@array":return i.callExpression(i.memberExpression(i.identifier("Array"),i.identifier("isArray")),[h(s.default.value,r)]);case"@null":return i.binaryExpression("===",h(s.default.value,r),i.nullLiteral());case"@object":return i.logicalExpression("&&",i.binaryExpression("!==",h(s.default.value,r),i.nullLiteral()),i.binaryExpression("===",i.unaryExpression("typeof",h(s.default.value,r)),i.stringLiteral("object")));case"@integer":return i.callExpression(i.memberExpression(i.identifier("Number"),i.identifier("isInteger")),[h(s.default.value,r)]);default:if(t.startsWith("@@")){const r=t.slice(2);return e.attachCustomShorthand(r),i.callExpression(i.memberExpression(o.default.shorthands,i.identifier(r)),[a.default._])}throw new SyntaxError(`Unsupported shorthand '${t}'`)}}const l=[a.default._.name,"index"];function d(e){if("Identifier"===e.type&&!l.includes(e.name))throw ReferenceError(`'${e.name}' is not defined`)}function h(e,t){return"MemberExpression"===e.type&&0!==t?{...e,object:i.callExpression(s.default.at,[i.numericLiteral(t)])}:e}t.generateFilterScriptExpression=function(e,{deep:t,value:r},s){var c;const p=n.default(r);d(p);const f=i.unaryExpression("!",u(s,p,e.state.fixed&&e.state.pos>0&&null!==e.nextNode?e.state.pos+1:e.state.inverted&&0!==e.state.pos?e.state.pos-1:0));if(e.feedback.bailed||!t||e.state.inverted)return f;(c=e.feedback).mutatesPos||(c.mutatesPos=null!==e.nextNode&&"KeyExpression"!==e.nextNode);const l=i.sequenceExpression([i.assignmentExpression("=",o.default.pos,i.conditionalExpression(f,i.numericLiteral(-1),a.default.depth)),i.binaryExpression("===",o.default.pos,i.numericLiteral(-1))]);return 0===e.state.pos?l:i.logicalExpression("||",i.binaryExpression("<",a.default.depth,0===e.state.pos?o.default.pos:i.binaryExpression("+",o.default.pos,i.numericLiteral(e.state.pos))),l)},t.generateMemberExpression=c,t.generateMultipleMemberExpression=function(e,t){return t.value.slice(1).reduce(((r,n)=>i.logicalExpression("&&",r,c(e,{type:"MemberExpression",value:n,deep:t.deep}))),c(e,{type:"MemberExpression",value:t.value[0],deep:t.deep}))},t.generateSliceExpression=function(e,t,r){const n=e.state.inverted?i.binaryExpression("-",a.default.depth,i.numericLiteral(e.state.pos)):0===e.state.pos?i.numericLiteral(0):e.feedback.fixed?i.numericLiteral(e.state.pos):i.binaryExpression("+",o.default.pos,i.numericLiteral(e.state.pos)),c=e.feedback.bailed?a.default.property:i.memberExpression(a.default.path,n,!0),u=i.binaryExpression("!==",i.unaryExpression("typeof",c),i.stringLiteral("number"));return t.value.some((e=>Number.isFinite(e)&&e<0))?(r.addRuntimeDependency(p.name),i.binaryExpression("||",u,i.unaryExpression("!",i.callExpression(p,[0===e.state.absolutePos?h(s.default.value,e.state.absolutePos-2):h(s.default.value,e.state.absolutePos),i.memberExpression(a.default.path,e.feedback.bailed?i.binaryExpression("-",i.memberExpression(a.default.path,i.identifier("length")),i.numericLiteral(1)):n,!0),...t.value.map((e=>i.numericLiteral(e)))])))):t.value.reduce(((e,r,n)=>{if(0===n&&0===r)return e;if(1===n&&!Number.isFinite(r))return e;if(2===n&&1===r)return e;const o=0===n?"<":1===n?">=":"%",s=i.binaryExpression(o,c,i.numericLiteral(Number(r)));return i.logicalExpression("||",e,"%"===o?i.logicalExpression("&&",i.binaryExpression("!==",c,i.numericLiteral(t.value[0])),i.binaryExpression("!==",s,i.numericLiteral(t.value[0]))):s)}),u)},t.generateWildcardExpression=function(e){return e.feedback.bailed?i.booleanLiteral(!1):null!==e.nextNode||e.feedback.fixed?null:i.sequenceExpression([i.assignmentExpression("=",o.default.pos,i.conditionalExpression(i.binaryExpression("<",a.default.depth,i.numericLiteral(e.state.pos)),i.numericLiteral(-1),a.default.depth)),i.binaryExpression("===",o.default.pos,i.numericLiteral(-1))])},t.rewriteESTree=u},3455:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(5439),o=r(260),s=r(7099),a=r(8113),c=r(2271),p=r(8598),u=r(6582),f=r(3264),l=r(1321),d=r(9918);const h=n.variableDeclaration("let",[n.variableDeclarator(u.default.pos,n.numericLiteral(0))]);t.default=function(e,t){const r=new l.default(t),m=new Map,y=new Map;e:for(const[t,l]of e){const e=new s.default(l);if(-1===e.length)continue;const b=JSON.stringify(e.nodes),j=m.get(b);if(void 0!==j){var g,v;null!==(g=null===(v=y.get(j))||void 0===v?void 0:v.push(t))&&void 0!==g||y.set(j,[t]);let n=r.getMethodByHash(j).body.body;e.feedback.bailed&&(n=n[0].expression.arguments[1].body.body),n.push(c.default(t,e.modifiers));continue}m.set(b,t),(e.feedback.bailed||l.length>0&&o.isDeep(l[0]))&&r.traversalZones.destroy();const $={id:t,iterator:e};r.ctx=$;for(const e of i.default)if(e(l,r,$))continue e;const _=e.feedback.bailed?[]:[n.ifStatement(n.binaryExpression(e.feedback.fixed?"!==":"<",f.default.depth,n.numericLiteral(e.length-1)),n.returnStatement())].concat(e.feedback.fixed?[]:h),x=e.feedback.bailed?null:r.traversalZones.create(),P=e.feedback.inverseAt;for(const t of e){let i;switch((o.isDeep(t)||P===e.state.absolutePos)&&(null==x||x.allIn()),t.type){case"MemberExpression":i=d.generateMemberExpression(e,t),null==x||x.expand(t.value);break;case"MultipleMemberExpression":i=d.generateMultipleMemberExpression(e,t),null==x||x.expandMultiple(t.value);break;case"SliceExpression":i=d.generateSliceExpression(e,t,r),null==x||x.resize();break;case"ScriptFilterExpression":i=d.generateFilterScriptExpression(e,t,r),null==x||x.resize();break;case"WildcardExpression":if(i=d.generateWildcardExpression(e),null==x||x.resize(),null===i)continue}e.feedback.bailed?_.push(n.objectExpression([n.objectProperty(n.identifier("fn"),n.arrowFunctionExpression([f.default._],i)),n.objectProperty(n.identifier("deep"),n.booleanLiteral(t.deep))])):_.push(n.ifStatement(i,n.returnStatement()))}e.feedback.fixed||e.feedback.bailed||e.state.inverted||_.push(n.ifStatement(n.binaryExpression("!==",f.default.depth,0===e.state.pos?u.default.pos:n.binaryExpression("+",u.default.pos,n.numericLiteral(e.state.pos))),n.returnStatement()));const w=e.feedback.bailed?"body":"traverse";e.feedback.bailed?_.splice(0,_.length,n.expressionStatement(n.callExpression(f.default.bail,[n.stringLiteral(t),n.arrowFunctionExpression([f.default._],n.blockStatement([n.expressionStatement(c.default($.id,e.modifiers).expression)])),n.arrayExpression([..._])]))):_.push(c.default($.id,e.modifiers)),"body"===w?r.push(n.expressionStatement(n.callExpression(n.memberExpression(u.default.tree,n.stringLiteral(t),!0),p.default)),w):r.push(n.stringLiteral(t),w),a.default(_,e),r.push(n.blockStatement(_),"tree-method"),null==x||x.attach()}return r}},7822:(e,t,r)=>{"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(1326));const o={...i.baseGenerator,BooleanLiteral(e,t){t.write(`${e.value}`,e)},NullLiteral(e,t){t.write("null",e)},NumericLiteral(e,t){t.write(e.value,e)},ObjectMethod(e,t){const{key:r,type:n,...i}=e;return this.ObjectProperty({key:e.key,value:{type:"FunctionExpression",...i}},t)},ObjectProperty(e,t){return this.Property({...e,kind:"init"},t)},RegExpLiteral(e,t){t.write(`/${e.pattern}/${e.flags}`,e)},StringLiteral(e,t){t.write(JSON.stringify(e.value),e)}};t.default=function(e){return i.generate(e,{generator:o})}},6763:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(2271),o=r(9120);const s=n.identifier("isObject"),a=n.ifStatement(n.unaryExpression("!",n.callExpression(s,[o.default.value])),n.returnStatement()),c=i.default("$..",{keyed:!1,parents:0});t.default=(e,t,r)=>1===e.length&&"AllParentExpression"===e[0].type&&(t.addRuntimeDependency(s.name),t.push(n.blockStatement([a,i.default(r.id,r.iterator.modifiers)]),"tree-method"),t.push(n.stringLiteral(r.id),"traverse"),t.push(c,"body"),!0)},3324:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(260),o=r(2271),s=r(3264);t.default=(e,t,r)=>!(1!==e.length||!i.isDeep(e[0])||!i.isMemberExpression(e[0])||(t.push(n.blockStatement([n.ifStatement(n.safeBinaryExpression("!==",s.default.property,n.stringLiteral(e[0].value)),n.returnStatement()),o.default(r.id,r.iterator.modifiers)]),"tree-method"),t.push(n.stringLiteral(r.id),"traverse"),0))},1435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(260),o=r(2271);t.default=(e,t,r)=>!(1!==e.length||!i.isWildcardExpression(e[0])||!i.isDeep(e[0])||(t.push(n.blockStatement([o.default(r.id,r.iterator.modifiers)]),"tree-method"),t.push(n.stringLiteral(r.id),"traverse"),0))},2667:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(260),o=r(2271),s=r(9120),a=r(3264),c=r(5742);const p=n.identifier("value"),u=n.identifier("isObject"),f=n.identifier("get"),l=n.ifStatement(n.unaryExpression("!",n.callExpression(u,[p])),n.returnStatement()),d=n.ifStatement(n.binaryExpression("===",a.default._,n.nullLiteral()),n.returnStatement());function h(e){return n.literal(e.value)}t.default=(e,t,r)=>{if(!e.every(i.isMemberExpression)||e.some(i.isDeep))return!1;const m=n.variableDeclaration("const",[n.variableDeclarator(p,e.slice(0,-1).reduce(((e,r)=>"ES2018"===t.format?(e.arguments[1].elements.push(n.literal(r.value)),e):n.memberExpression(e,n.literal(r.value),!0,!0)),"ES2018"===t.format&&e.length>0?n.callExpression(n.identifier("get"),[s.default.root,n.arrayExpression([])]):s.default.root))]);return t.addRuntimeDependency(u.name),"ES2018"===t.format&&t.addRuntimeDependency(f.name),t.pushAll([[n.blockStatement([m,l,n.expressionStatement(n.assignmentExpression("=",a.default._,n.callExpression(a.default.fork,[n.arrayExpression(e.map(h))]))),d,o.default(r.id,r.iterator.modifiers)]),"tree-method"],[c.default(r.id),"body"]]),!0}},5439:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6763),i=r(3324),o=r(1435),s=r(2667),a=r(7041),c=r(4097),p=r(8756),u=[c.default,a.default,i.default,o.default,p.default,s.default,n.default];t.default=u},7041:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7955),i=r(1282),o=r(9918),s=r(260),a=r(2271),c=r(3264);const p=i.ifStatement(i.binaryExpression("!==",c.default.depth,i.numericLiteral(0)),i.returnStatement());t.default=(e,t,r)=>{if(1!==e.length||!s.isScriptFilterExpression(e[0]))return!1;const c=i.unaryExpression("!",o.rewriteESTree(t,n.default(e[0].value),0),!0);var u;return t.pushAll([[i.blockStatement([...s.isDeep(e[0])?[]:[p],i.ifStatement(c,i.returnStatement()),a.default(r.id,r.iterator.modifiers)]),"tree-method"],[i.stringLiteral(r.id),"traverse"]]),s.isDeep(e[0])||null===(u=t.traversalZones.create())||void 0===u||u.resize().attach(),!0}},4097:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2271).default("$",{keyed:!1,parents:0});t.default=(e,t)=>!(e.length>0||(t.push(n,"body"),0))},8756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(260),o=r(2271),s=r(3264);const a=n.ifStatement(n.binaryExpression("!==",s.default.depth,n.numericLiteral(0)),n.returnStatement());t.default=(e,t,r)=>{var s;return!(1!==e.length||!i.isWildcardExpression(e[0])||i.isDeep(e[0])||(t.push(n.blockStatement([a,o.default(r.id,r.iterator.modifiers)]),"tree-method"),t.push(n.stringLiteral(r.id),"traverse"),null===(s=t.traversalZones.create())||void 0===s||s.resize().attach(),0))}},260:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDeep=function(e){return e.deep},t.isMemberExpression=function(e){return"MemberExpression"===e.type},t.isModifierExpression=function(e){return"KeyExpression"===e.type||"ParentExpression"===e.type},t.isScriptFilterExpression=function(e){return"ScriptFilterExpression"===e.type},t.isWildcardExpression=function(e){return"WildcardExpression"===e.type}},7099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3369),i=r(260);let o;function s(e){let t=!1;for(let r=0;r1}t=!0}}return!1}var a=new WeakMap;o=Symbol.iterator;class c{constructor(e){n.defineProperty(this,"nodes",void 0),a.set(this,{writable:!0,value:void 0}),this.modifiers=c.trim(e),this.nodes=c.compact(e),n.classPrivateFieldSet(this,a,-1),this.feedback=c.analyze(this.nodes,this.modifiers.keyed||this.modifiers.parents>0),this.length=this.nodes.length,this.state={absolutePos:-1,fixed:!0,inverted:!1,pos:-1},this.feedback.fixed&&this.modifiers.parents>this.length&&(this.length=-1)}get nextNode(){return n.classPrivateFieldGet(this,a)+10&&i.isModifierExpression(e[e.length-1]);)switch(e.pop().type){case"KeyExpression":t.keyed=!0,t.parents=0;break;case"ParentExpression":t.parents++}return t}static analyze(e){const t={bailed:s(e),fixed:!0,inverseAt:-1};if(t.bailed)return t.fixed=!1,t;let r=-1;for(let n=0;n1&&-1!==r&&r{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6582),i=r(3264);function o(e,t){return e.splice(t,1),t-1}function s(e,t,r){return null===t?r:null===r?t:(e.left=t,e.right=r,e)}function a(e){switch(e.type){case"AssignmentExpression":return e.left!==n.default.pos?e:a(e.right);case"ConditionalExpression":return"NumericLiteral"===e.consequent.type&&-1===e.consequent.value?a(e.test):e;case"SequenceExpression":return a(e.expressions[0]);case"LogicalExpression":return s(e,a(e.left),a(e.right));case"BinaryExpression":return function(e){return"<"===e.operator&&e.left===i.default.depth?null:s(e,a(e.left),a(e.right))}(e);case"IfStatement":return a(e.test);case"Identifier":return e===n.default.pos?null:e;case"MemberExpression":return e.property=a(e.property),e;default:return e}}t.default=function(e,t){if(t.feedback.mutatesPos)return;let r=Math.max(0,Math.min(1,t.length));for(;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282);t.default=function e(t){switch(typeof t){case"boolean":return n.booleanLiteral(t);case"string":return n.stringLiteral(t);case"number":return n.numericLiteral(t);case"object":return null===t?n.nullLiteral():Array.isArray(t)?n.arrayExpression(t.map(e)):n.objectExpression(Object.keys(t).map((r=>n.objectProperty(n.stringLiteral(r),e(t[r])))))}}},2271:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(3264);t.default=function(e,{parents:t,keyed:r}){return n.expressionStatement(n.callExpression(i.default.emit,[n.stringLiteral(e),n.numericLiteral(t),n.booleanLiteral(r)]))}},4168:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(3264);t.default=function(e,t){const r=n.identifier("path");return n.forOfStatement(n.variableDeclaration("const",[n.variableDeclarator(r)]),n.arrayExpression(t.map(n.stringLiteral)),n.blockStatement([n.callExpression(e,[n.identifier("input"),r,n.memberExpression(i.default.callbacks,r,!0)])]))}},8598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=[r(3264).default._];t.default=n},6582:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i={pos:n.identifier("pos"),shorthands:n.identifier("shorthands"),tree:n.identifier("tree")};t.default=i},9120:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(3264),o={at:n.memberExpression(i.default.sandbox,n.identifier("at")),index:n.memberExpression(i.default.sandbox,n.identifier("index")),parent:n.memberExpression(i.default.sandbox,n.identifier("parent")),parentProperty:n.memberExpression(i.default.sandbox,n.identifier("parentProperty")),parentValue:n.memberExpression(i.default.sandbox,n.identifier("parentValue")),path:n.memberExpression(i.default.sandbox,n.identifier("path")),property:n.memberExpression(i.default.sandbox,n.identifier("property")),root:n.memberExpression(i.default.sandbox,n.identifier("root")),value:n.memberExpression(i.default.sandbox,n.identifier("value"))};t.default=o},3264:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282);const i=n.identifier("scope");var o={_:i,bail:n.memberExpression(i,n.identifier("bail")),callbacks:n.memberExpression(i,n.identifier("callbacks")),depth:n.memberExpression(i,n.identifier("depth")),destroy:n.memberExpression(i,n.identifier("destroy")),emit:n.memberExpression(i,n.identifier("emit")),fork:n.memberExpression(i,n.identifier("fork")),path:n.memberExpression(i,n.identifier("path")),property:n.memberExpression(i,n.identifier("property")),sandbox:n.memberExpression(i,n.identifier("sandbox")),traverse:n.memberExpression(i,n.identifier("traverse")),value:n.memberExpression(i,n.identifier("value"))};t.default=o},5742:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1282),i=r(8598),o=r(6582);t.default=function(e){const t=n.stringLiteral(e);return n.expressionStatement(n.callExpression(n.memberExpression(o.default.tree,t,!0),i.default))}},3143:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3369),i=r(2512);r(5685);var o=r(1282),s=r(7032),a=new WeakMap,c=new WeakMap,p=new WeakMap,u=new WeakMap,f=new WeakMap;class l{constructor(e){p.set(this,{writable:!0,value:void 0}),u.set(this,{writable:!0,value:void 0}),f.set(this,{writable:!0,value:void 0}),n.classPrivateFieldSet(this,p,e),this.root={},n.classPrivateFieldSet(this,u,[this.root]),n.classPrivateFieldSet(this,f,new Map)}attach(){n.classPrivateFieldGet(this,p).attach(this.root),n.classPrivateFieldGet(this,f).clear()}expand(e){let t=0;for(const r of n.classPrivateFieldGet(this,u))if(null!==r){if("**"===e){const t=n.classPrivateFieldGet(this,f).get(r);if(void 0!==t&&"*"in t){delete t["*"],t["**"]=null;continue}r[e]=null}else r[e]={},n.classPrivateFieldGet(this,f).set(r[e],r);n.classPrivateFieldGet(this,u)[t++]=r[e]}return this}expandMultiple(e){const t=n.classPrivateFieldGet(this,u)[0];if(null===t)return this;let r=0;for(const i of e)t[i]="**"===i?null:{},n.classPrivateFieldGet(this,u).lengthObject.assign(t,e[r])),{})}function h(e,t){if("*"in t){const r=d(e);h(r,d(t)),e["*"]="*"in r?{"*":r["*"]}:r}else for(const r of Object.keys(t))r in e?i.default(t[r])&&h(e[r],t[r]):e[r]=t[r]}function m(e){const t=e[0];for(let r=1;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3369),i=r(7955),o=r(1282),s=r(7822),a=r(4168),c=r(8598),p=r(6582),u=r(3264),f=r(5742),l=r(3143);const d=[o.identifier("input"),o.identifier("callbacks")],h=o.variableDeclaration("const",[o.variableDeclarator(u.default._,o.newExpression(o.identifier("Scope"),d))]);var m=new WeakMap,y=new WeakMap,g=new WeakMap,v=new WeakMap,b=new WeakMap,j=new WeakMap,$=new WeakMap;t.default=class{constructor({customShorthands:e,format:t,npmProvider:r}){m.set(this,{writable:!0,value:o.objectExpression([])}),y.set(this,{writable:!0,value:o.objectExpression([])}),g.set(this,{writable:!0,value:new Set(["Scope"])}),v.set(this,{writable:!0,value:new Set}),b.set(this,{writable:!0,value:new Set}),j.set(this,{writable:!0,value:new Set}),$.set(this,{writable:!0,value:void 0}),this.format=t,this.npmProvider=r,this.ctx=null,this.traversalZones=new l.default,n.classPrivateFieldSet(this,$,e)}addRuntimeDependency(e){n.classPrivateFieldGet(this,g).has(e)||n.classPrivateFieldGet(this,g).add(e)}attachFallbackExpressions(e,t){this.push(a.default(e.attach(this),t),"body")}attachCustomShorthand(e){if(null===n.classPrivateFieldGet(this,$)||!(e in n.classPrivateFieldGet(this,$)))throw new ReferenceError(`Shorthand '${e}' is not defined`);n.classPrivateFieldGet(this,y).properties.push(o.objectMethod("method",o.identifier(e),c.default,o.blockStatement([o.returnStatement(i.default(n.classPrivateFieldGet(this,$)[e]))])))}getMethodByHash(e){return n.classPrivateFieldGet(this,m).properties.find((t=>t.key.value===e))}push(e,t){switch(t){case"tree-method":n.classPrivateFieldGet(this,m).properties.push(o.objectMethod("method",o.stringLiteral(this.ctx.id),c.default,e));break;case"program":n.classPrivateFieldGet(this,v).has(e)||n.classPrivateFieldGet(this,v).add(e);break;case"body":n.classPrivateFieldGet(this,b).has(e)||n.classPrivateFieldGet(this,b).add(e);break;case"traverse":n.classPrivateFieldGet(this,j).add(f.default(e.value))}}pushAll(e){for(const t of e)this.push(...t)}toString(){var e;const t=this.traversalZones.root;return s.default(o.program([o.importDeclaration([...n.classPrivateFieldGet(this,g)].map((e=>o.importSpecifier(o.identifier(e),o.identifier(e)))),o.stringLiteral(`${null!==(e=this.npmProvider)&&void 0!==e?e:""}nimma/legacy/runtime`)),...n.classPrivateFieldGet(this,v),t,0===n.classPrivateFieldGet(this,m).properties.length?null:o.variableDeclaration("const",[o.variableDeclarator(p.default.tree,n.classPrivateFieldGet(this,m))]),0===n.classPrivateFieldGet(this,y).properties.length?null:o.variableDeclaration("const",[o.variableDeclarator(p.default.shorthands,n.classPrivateFieldGet(this,y))]),o.exportDefaultDeclaration(o.functionDeclaration(null,d,o.blockStatement([h,o.tryStatement(o.blockStatement([...n.classPrivateFieldGet(this,b),0===n.classPrivateFieldGet(this,j).size?null:o.expressionStatement(o.callExpression(u.default.traverse,[o.arrowFunctionExpression([],o.blockStatement(Array.from(n.classPrivateFieldGet(this,j)))),null===t?o.nullLiteral():t.declarations[0].id]))].filter(Boolean)),null,o.blockStatement([o.expressionStatement(o.callExpression(u.default.destroy,[]))]))].filter(Boolean))))].filter(Boolean)))}}},4530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3369),i=r(3455),o=r(2176),s=r(3574),a=r(3040);const c=/import\s*({[^}]+})\s*from\s*['"][^'"]+['"];?/;var p=new WeakMap,u=new WeakMap;t.default=class{constructor(e,{fallback:t=null,unsafe:r=!0,output:o="auto",npmProvider:c=null,customShorthands:f=null}={}){p.set(this,{writable:!0,value:void 0}),u.set(this,{writable:!0,value:void 0}),n.classPrivateFieldSet(this,p,t),n.classPrivateFieldSet(this,u,null);const{erroredExpressions:l,mappedExpressions:d}=a.default(e,r,null!==t);this.tree=i.default(d,{customShorthands:f,format:"auto"===o?s.default():o,npmProvider:c}),l.length>0&&this.tree.attachFallbackExpressions(t,l),this.sourceCode=String(this.tree)}query(e,t){if(null!==n.classPrivateFieldGet(this,u))return void n.classPrivateFieldGet(this,u).call(this,e,t);const r="__nimma_globals__",i=this.sourceCode.replace("export default function","return function").replace(c,`const $1 = ${r};`).replace(RegExp(c.source,"g"),"");n.classPrivateFieldSet(this,u,Function(r,...null===n.classPrivateFieldGet(this,p)?[]:Array.from(n.classPrivateFieldGet(this,p).runtimeDeps.keys()),i)(o,...null===n.classPrivateFieldGet(this,p)?[]:Array.from(n.classPrivateFieldGet(this,p).runtimeDeps.values()))),n.classPrivateFieldGet(this,u).call(this,e,t)}}},3574:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){try{return Function("a","a?.b")({}),"ES2021"}catch{return"ES2018"}}},3040:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7099),i=r(3046),o=r(5685);function s([,e]){return e}function a([e]){return e}t.default=function(e,t,r){const c=[],p=[];for(const r of new Set(e))try{const e=i.default(r);if(!1===t&&n.default.analyze(e).bailed)throw SyntaxError("Unsafe expressions are ignored, but no fallback was specified");c.push([r,e])}catch(e){p.push([r,e])}if(!r&&p.length>0)throw new o.default(p.map(s),`Error parsing ${p.map(a).join(", ")}`);return{erroredExpressions:p.map(a),mappedExpressions:c}}},691:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4530);t.default=n.default},3046:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1742),i=r(1491);const{parse:o}=i;t.default=function(e){try{return o(e)}catch(t){throw new n.default(t.message,e,{cause:t})}}},7955:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5215),i=r(3738),o=r(3612);function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=s(n),c=s(i),p=s(o);p.default.addIdentifierChar("@"),p.default.addUnaryOp("void"),p.default.addBinaryOp("in",12),p.default.addBinaryOp("~=",20),p.default.plugins.register(a.default,c.default),t.default=e=>p.default.parse(e)},1491:(e,t)=>{"use strict";function r(e,t,n,i){var o=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(o,r.prototype),o.expected=t,o.found=n,o.location=i,o.name="SyntaxError",o}function n(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(r,Error),r.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var r,i=null;for(r=0;r0){for(t=1,r=1;t!|&+~%\^*\/;\-[\]]/,x=ce("$",!1),P=ce("[",!1),w=ce("]",!1),S=ce(",",!1),O=ce("..",!1),E=ce("(",!1),A=ce(")",!1),I=ce("?(",!1),T=ce(":",!1),k=ce("@",!1),R=pe([["a","z"]],!1,!1),D=ce("()",!1),C=ce("~",!1),F=ce("^",!1),N=ce(".",!1),M=pe(["@","["],!1,!1),q=pe(["$","_","-"],!1,!1),U=ce('"',!1),L=pe(['"'],!0,!1),z=ce("'",!1),B=pe(["'"],!0,!1),V=ce("-",!1),H=ce("*",!1),K=pe([["A","Z"],["a","z"]],!1,!1),G=pe([["0","9"]],!1,!1),J=pe([" ","\t"],!1,!1),W=pe(['"'],!1,!1),Q=pe(["'"],!1,!1),Y=pe([" ","$","@",".",",","_","=","<",">","!","|","&","+","~","%","^","*","/",";","-","[","]"],!1,!1),X=ce(".length",!1),Z=function(e,t){return{...t,deep:e}},ee=function(e){return{type:"ScriptFilterExpression",value:e}},te=0,re=0,ne=[{line:1,column:1}],ie=0,oe=[],se=0;if("startRule"in t){if(!(t.startRule in s))throw new Error("Can't start parsing from rule \""+t.startRule+'".');a=s[t.startRule]}function ae(){return e.substring(re,te)}function ce(e,t){return{type:"literal",text:e,ignoreCase:t}}function pe(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ue(t){var r,n=ne[t];if(n)return n;for(r=t-1;!ne[r];)r--;for(n={line:(n=ne[r]).line,column:n.column};rie&&(ie=te,oe=[]),oe.push(e))}function de(){var t,r,n,o,s,a,c;if(t=te,r=function(){var t;return 36===e.charCodeAt(te)?(t="$",te++):(t=i,0===se&&le(x)),t}(),r!==i){for(n=[],(o=me())===i&&(o=te,(s=ve())!==i&&(a=he())!==i?(re=o,o=Z(s,a)):(te=o,o=i));o!==i;)n.push(o),(o=me())===i&&(o=te,(s=ve())!==i&&(a=he())!==i?(re=o,o=Z(s,a)):(te=o,o=i));if(o=[],(s=ge())!==i)for(;s!==i;)o.push(s),s=ge();else o=i;o===i&&(o=null),re=t,c=o,t=n.concat(Array.isArray(c)?c:null===c?[]:c)}else te=t,t=i;return t}function he(){var t,r,n,o,s;if(t=function(){var t,r,n,o,s;return t=te,(r=be())===i&&(r=te,91===e.charCodeAt(te)?(n=c,te++):(n=i,0===se&&le(P)),n!==i&&(o=je())!==i?(93===e.charCodeAt(te)?(s=p,te++):(s=i,0===se&&le(w)),s!==i?(re=r,r=o):(te=r,r=i)):(te=r,r=i)),r!==i&&(re=t,r={type:"MemberExpression",value:r}),r}(),t===i&&(t=te,(r=_e())===i&&(r=te,91===e.charCodeAt(te)?(n=c,te++):(n=i,0===se&&le(P)),n!==i&&(o=_e())!==i?(93===e.charCodeAt(te)?(s=p,te++):(s=i,0===se&&le(w)),s!==i?r=n=[n,o,s]:(te=r,r=i)):(te=r,r=i)),r!==i&&(re=t,r={type:"WildcardExpression"}),(t=r)===i&&(t=te,91===e.charCodeAt(te)?(r=c,te++):(r=i,0===se&&le(P)),r!==i?(n=function(){var t,r,n,o;return t=te,40===e.charCodeAt(te)?(r="(",te++):(r=i,0===se&&le(E)),r!==i?(n=function(){var t,r,n;return t=te,64===e.charCodeAt(te)?(r="@",te++):(r=i,0===se&&le(k)),r!==i?(n=function(){var t,r,n,o,s,a,c,p;if(t=te,e.substr(te,7)===f?(r=f,te+=7):(r=i,0===se&&le(X)),r!==i){for(n=[],o=we();o!==i;)n.push(o),o=we();if(45===e.charCodeAt(te)?(o="-",te++):(o=i,0===se&&le(V)),o!==i){for(s=[],a=we();a!==i;)s.push(a),a=we();if(a=te,c=[],(p=Pe())!==i)for(;p!==i;)c.push(p),p=Pe();else c=i;(a=c!==i?e.substring(a,te):c)!==i?(re=t,t={type:"SliceExpression",value:[-a,1/0,1]}):(te=t,t=i)}else te=t,t=i}else te=t,t=i;return t}(),n!==i?(re=t,t=n):(te=t,t=i)):(te=t,t=i),t}(),n!==i?(41===e.charCodeAt(te)?(o=")",te++):(o=i,0===se&&le(A)),o!==i?(re=t,t=n):(te=t,t=i)):(te=t,t=i)):(te=t,t=i),t}(),n!==i?(93===e.charCodeAt(te)?(o=p,te++):(o=i,0===se&&le(w)),o!==i?(re=t,t=n):(te=t,t=i)):(te=t,t=i)):(te=t,t=i),t===i&&(t=te,91===e.charCodeAt(te)?(r=c,te++):(r=i,0===se&&le(P)),r!==i?(n=function(){var t,r,n,o;return t=te,"?("===e.substr(te,2)?(r="?(",te+=2):(r=i,0===se&&le(I)),r!==i?(n=function(){var t,r,n;if(t=te,r=[],(n=xe())===i&&(n=Pe())===i&&(n=we())===i&&(n=Ee())===i&&(n=Oe())===i&&(n=Se())===i&&(n=Ae()),n!==i)for(;n!==i;)r.push(n),(n=xe())===i&&(n=Pe())===i&&(n=we())===i&&(n=Ee())===i&&(n=Oe())===i&&(n=Se())===i&&(n=Ae());else r=i;return t=r!==i?e.substring(t,te):r}(),n!==i?(41===e.charCodeAt(te)?(o=")",te++):(o=i,0===se&&le(A)),o!==i?(re=t,t={type:"ScriptFilterExpression",value:n}):(te=t,t=i)):(te=t,t=i)):(te=t,t=i),t}(),n!==i?(93===e.charCodeAt(te)?(o=p,te++):(o=i,0===se&&le(w)),o!==i?(re=t,t=n):(te=t,t=i)):(te=t,t=i)):(te=t,t=i),t===i&&(t=te,(r=ye())===i&&(r=function(){var t,r,n,o,s;return t=te,r=te,n=te,64===e.charCodeAt(te)?(o="@",te++):(o=i,0===se&&le(k)),o!==i&&(s=ye())!==i?(re=n,n=s.value):(te=n,n=i),(r=n!==i?e.substring(r,te):n)!==i&&(re=t,r=ee(r)),r}()),r!==i&&(re=t),(t=r)===i))))){if(t=te,91===e.charCodeAt(te)?(r=c,te++):(r=i,0===se&&le(P)),r!==i){for(n=[],o=te,(s=je())!==i?(44===e.charCodeAt(te)?te++:0===se&&le(S),re=o,o=s):(te=o,o=i);o!==i;)n.push(o),o=te,(s=je())!==i?(44===e.charCodeAt(te)?te++:0===se&&le(S),re=o,o=s):(te=o,o=i);93===e.charCodeAt(te)?(o=p,te++):(o=i,0===se&&le(w)),o!==i?(re=t,t={type:"MultipleMemberExpression",value:[...new Set(n)]}):(te=t,t=i)}else te=t,t=i;t===i&&(t=te,91===e.charCodeAt(te)?(r=c,te++):(r=i,0===se&&le(P)),r!==i?(n=function(){var t,r,n,o,s,a,c;return t=te,r=te,n=te,o=te,(s=$e())!==i?(58===e.charCodeAt(te)?(a=":",te++):(a=i,0===se&&le(T)),a!==i?((c=$e())===i&&(c=null),o=s=[s,a,c]):(te=o,o=i)):(te=o,o=i),o===i&&(o=te,58===e.charCodeAt(te)?(s=":",te++):(s=i,0===se&&le(T)),s!==i?((a=$e())===i&&(a=null),o=s=[s,a]):(te=o,o=i),o===i&&(o=$e())),o!==i?(s=te,58===e.charCodeAt(te)?(a=":",te++):(a=i,0===se&&le(T)),a!==i&&(c=$e())!==i?s=a=[a,c]:(te=s,s=i),s===i&&(s=null),n=o=[o,s]):(te=n,n=i),(r=n!==i?e.substring(r,te):n)!==i&&(re=t,r={type:"SliceExpression",value:r.split(":").reduce(((e,t,r)=>(""!==t&&(e[r]=Number(t)),e)),[0,1/0,1])}),r}(),n!==i?(93===e.charCodeAt(te)?(o=p,te++):(o=i,0===se&&le(w)),o!==i?(re=t,t=n):(te=t,t=i)):(te=t,t=i)):(te=t,t=i))}return t}function me(){var t,r;return t=te,re=te,(/^\$\.{2}[~^]*$/.test(e)?void 0:i)!==i?(e.substr(te,2)===u?(r=u,te+=2):(r=i,0===se&&le(O)),r!==i?(re=t,t={type:"AllParentExpression"}):(te=t,t=i)):(te=t,t=i),t}function ye(){var t,r,n,o,s,a;if(t=te,r=te,n=te,64===e.charCodeAt(te)?(o="@",te++):(o=i,0===se&&le(k)),o!==i){if(s=[],l.test(e.charAt(te))?(a=e.charAt(te),te++):(a=i,0===se&&le(R)),a!==i)for(;a!==i;)s.push(a),l.test(e.charAt(te))?(a=e.charAt(te),te++):(a=i,0===se&&le(R));else s=i;s!==i?("()"===e.substr(te,2)?(a="()",te+=2):(a=i,0===se&&le(D)),a!==i?n=o=[o,s,a]:(te=n,n=i)):(te=n,n=i)}else te=n,n=i;return(r=n!==i?e.substring(r,te):n)!==i&&(re=t,r=ee(r)),r}function ge(){var t;return(t=function(){var t,r;return t=te,126===e.charCodeAt(te)?(r="~",te++):(r=i,0===se&&le(C)),r!==i&&(re=t,r={type:"KeyExpression"}),r}())===i&&(t=function(){var t,r;return t=te,94===e.charCodeAt(te)?(r="^",te++):(r=i,0===se&&le(F)),r!==i&&(re=t,r={type:"ParentExpression"}),r}()),t}function ve(){var t,r,n,o;return t=te,e.substr(te,2)===u?(r=u,te+=2):(r=i,0===se&&le(O)),r!==i&&(re=t,r=!0),(t=r)===i&&(t=te,46===e.charCodeAt(te)?(r=".",te++):(r=i,0===se&&le(N)),r!==i?(n=te,se++,91===e.charCodeAt(te)?(o=c,te++):(o=i,0===se&&le(P)),se--,o!==i?(te=n,n=void 0):n=i,n!==i?(re=t,t=!0):(te=t,t=i)):(te=t,t=i),t===i&&(t=te,46===e.charCodeAt(te)?(r=".",te++):(r=i,0===se&&le(N)),r!==i&&(re=t,r=!1),(t=r)===i&&(t=te,r=te,se++,d.test(e.charAt(te))?(n=e.charAt(te),te++):(n=i,0===se&&le(M)),se--,n!==i?(te=r,r=void 0):r=i,r!==i&&(re=t,r=!1),t=r))),t}function be(){var t,r,n;if(t=te,r=[],h.test(e.charAt(te))?(n=e.charAt(te),te++):(n=i,0===se&&le(q)),n===i&&(n=xe())===i&&(n=Pe()),n!==i)for(;n!==i;)r.push(n),h.test(e.charAt(te))?(n=e.charAt(te),te++):(n=i,0===se&&le(q)),n===i&&(n=xe())===i&&(n=Pe());else r=i;return r!==i?e.substring(t,te):r}function je(){var t,r,n,o,s,a,c;if(t=te,(r=be())!==i&&(re=t,r=(c=r).length>0&&Number.isSafeInteger(Number(c))?Number(c):c),(t=r)===i){if(t=te,r=te,34===e.charCodeAt(te)?(n='"',te++):(n=i,0===se&&le(U)),n!==i){for(o=te,s=[],m.test(e.charAt(te))?(a=e.charAt(te),te++):(a=i,0===se&&le(L));a!==i;)s.push(a),m.test(e.charAt(te))?(a=e.charAt(te),te++):(a=i,0===se&&le(L));o=e.substring(o,te),34===e.charCodeAt(te)?(s='"',te++):(s=i,0===se&&le(U)),s!==i?r=n=[n,o,s]:(te=r,r=i)}else te=r,r=i;if(r===i)if(r=te,39===e.charCodeAt(te)?(n="'",te++):(n=i,0===se&&le(z)),n!==i){for(o=te,s=[],y.test(e.charAt(te))?(a=e.charAt(te),te++):(a=i,0===se&&le(B));a!==i;)s.push(a),y.test(e.charAt(te))?(a=e.charAt(te),te++):(a=i,0===se&&le(B));o=e.substring(o,te),39===e.charCodeAt(te)?(s="'",te++):(s=i,0===se&&le(z)),s!==i?r=n=[n,o,s]:(te=r,r=i)}else te=r,r=i;r!==i&&(re=t,r=ae().slice(1,-1)),t=r}return t}function $e(){var t,r,n;if(t=te,45===e.charCodeAt(te)?te++:0===se&&le(V),r=[],(n=Pe())!==i)for(;n!==i;)r.push(n),n=Pe();else r=i;return r!==i?(re=t,t=Number(ae())):(te=t,t=i),t}function _e(){var t;return 42===e.charCodeAt(te)?(t="*",te++):(t=i,0===se&&le(H)),t}function xe(){var t;return g.test(e.charAt(te))?(t=e.charAt(te),te++):(t=i,0===se&&le(K)),t}function Pe(){var t;return v.test(e.charAt(te))?(t=e.charAt(te),te++):(t=i,0===se&&le(G)),t}function we(){var t;return b.test(e.charAt(te))?(t=e.charAt(te),te++):(t=i,0===se&&le(J)),t}function Se(){var t,r,n,o;if(t=te,91===e.charCodeAt(te)?(r=c,te++):(r=i,0===se&&le(P)),r!==i){for(n=[],(o=Pe())===i&&(o=xe())===i&&(o=Oe())===i&&(o=Ae());o!==i;)n.push(o),(o=Pe())===i&&(o=xe())===i&&(o=Oe())===i&&(o=Ae());93===e.charCodeAt(te)?(o=p,te++):(o=i,0===se&&le(w)),o!==i?t=r=[r,n,o]:(te=t,t=i)}else te=t,t=i;return t}function Oe(){var t,r,n,o;if(t=te,j.test(e.charAt(te))?(r=e.charAt(te),te++):(r=i,0===se&&le(W)),r!==i){for(n=[],m.test(e.charAt(te))?(o=e.charAt(te),te++):(o=i,0===se&&le(L));o!==i;)n.push(o),m.test(e.charAt(te))?(o=e.charAt(te),te++):(o=i,0===se&&le(L));j.test(e.charAt(te))?(o=e.charAt(te),te++):(o=i,0===se&&le(W)),o!==i?t=r=[r,n,o]:(te=t,t=i)}else te=t,t=i;if(t===i)if(t=te,$.test(e.charAt(te))?(r=e.charAt(te),te++):(r=i,0===se&&le(Q)),r!==i){for(n=[],y.test(e.charAt(te))?(o=e.charAt(te),te++):(o=i,0===se&&le(B));o!==i;)n.push(o),y.test(e.charAt(te))?(o=e.charAt(te),te++):(o=i,0===se&&le(B));$.test(e.charAt(te))?(o=e.charAt(te),te++):(o=i,0===se&&le(Q)),o!==i?t=r=[r,n,o]:(te=t,t=i)}else te=t,t=i;return t}function Ee(){var t;return _.test(e.charAt(te))?(t=e.charAt(te),te++):(t=i,0===se&&le(Y)),t}function Ae(){var t,r,n,o;if(t=te,40===e.charCodeAt(te)?(r="(",te++):(r=i,0===se&&le(E)),r!==i){for(n=[],(o=Oe())===i&&(o=xe())===i&&(o=Pe())===i&&(o=Se())===i&&(o=Ee())===i&&(o=we())===i&&(o=Ae());o!==i;)n.push(o),(o=Oe())===i&&(o=xe())===i&&(o=Pe())===i&&(o=Se())===i&&(o=Ee())===i&&(o=we())===i&&(o=Ae());41===e.charCodeAt(te)?(o=")",te++):(o=i,0===se&&le(A)),o!==i?t=r=[r,n,o]:(te=t,t=i)}else te=t,t=i;return t}if((n=a())!==i&&te===e.length)return n;throw n!==i&&te{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2512);t.default=function(e,t){if(0===t.length||!n.default(e))return e;let r=e;for(const e of t.slice(0,t.length-1))if(r=r[e],!n.default(r))return;return r[t[t.length-1]]}},9489:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n,i){const o=r<0?Math.max(0,r+e.length):Math.min(e.length,r),s=n<0?Math.max(0,n+e.length):Math.min(e.length,n);return t>=o&&t0&&(t+r)%i==0)}},2512:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"object"==typeof e&&null!==e}},5685:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=r(2512),o=null!==(n=globalThis.AggregateError)&&void 0!==n?n:class extends Error{constructor(e,t=""){if(super(t),!Array.isArray(e)&&(r=e,!i.default(r)||"function"!=typeof r[Symbol.iterator]))throw new TypeError(`${e} is not an iterable`);var r;this.errors=[...e]}};t.default=o},4284:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e,t){super(e),void 0!==t&&"cause"in t&&(this.cause=t.cause)}}t.default=r},1742:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4284);class i extends n.default{constructor(e,t,r){super(e,r),this.input=t}}t.default=i},5524:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4284);class i extends n.default{}t.default=i},2176:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2889),i=r(9489),o=r(2512),s=r(5643);t.get=n.default,t.inBounds=i.default,t.isObject=o.default,t.Scope=s.default},3334:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5524);function i(e){return"string"==typeof e||"number"==typeof e?JSON.stringify(e):"unknown"}function o(e){return e instanceof Error?`${e.constructor.name}(${i(e.message)})`:i(e)}t.default=function(e,t){const r={};for(const i of Object.keys(e)){const s=e[i];r[i]=(...e)=>{try{s(...e)}catch(e){const r=`${s.name||i} threw: ${o(e)}`;t.push(new n.default(r,{cause:e}))}}}return r}},8889:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3369),i=r(2512);function o(e,t){return e+`[${"string"==typeof t?`'${t}'`:t}]`}var s=new WeakMap,a=new WeakMap,c=new WeakMap,p=new WeakMap;class u{constructor(e,t,r=null){p.set(this,{get:f,set:void 0}),s.set(this,{writable:!0,value:void 0}),a.set(this,{writable:!0,value:void 0}),c.set(this,{writable:!0,value:void 0}),this.root=t,n.classPrivateFieldSet(this,a,e),n.classPrivateFieldSet(this,s,null!=r?r:[[0,t]]),n.classPrivateFieldSet(this,c,void 0)}get path(){return`$${n.classPrivateFieldGet(this,a).reduce(o,"")}`}get depth(){return n.classPrivateFieldGet(this,a).length-1}get value(){var e;return void 0!==n.classPrivateFieldGet(this,c)?n.classPrivateFieldGet(this,c):null!==(e=n.classPrivateFieldGet(this,c))&&void 0!==e?e:n.classPrivateFieldSet(this,c,n.classPrivateFieldGet(this,s)[n.classPrivateFieldGet(this,s).length-1][1])}get property(){return e=n.classPrivateFieldGet(this,a),(t=this.depth)>=0&&e.length>t?e[t]:null;var e,t}get parentValue(){var e;return null===(e=n.classPrivateFieldGet(this,p))||void 0===e?void 0:e[1]}get parentProperty(){var e;return n.classPrivateFieldGet(this,a)[null===(e=n.classPrivateFieldGet(this,p))||void 0===e?void 0:e[0]]}destroy(){n.classPrivateFieldGet(this,s).length=0}push(){const e=null!==this.property&&i.default(this.value)?this.value[this.property]:null;return n.classPrivateFieldGet(this,s).push([n.classPrivateFieldGet(this,a).length,e]),n.classPrivateFieldSet(this,c,e),this}pop(){const e=Math.max(0,n.classPrivateFieldGet(this,a).length+1);for(;n.classPrivateFieldGet(this,s).length>e;)n.classPrivateFieldGet(this,s).pop();return n.classPrivateFieldSet(this,c,void 0),this}at(e){if(Math.abs(e)>n.classPrivateFieldGet(this,s).length)return null;const t=(e<0?n.classPrivateFieldGet(this,s).length:0)+e,r=n.classPrivateFieldGet(this,s).slice(0,t+1);return new u(n.classPrivateFieldGet(this,a).slice(0,r[r.length-1][0]),r[r.length-1][1],r)}}function f(){if(!(n.classPrivateFieldGet(this,s).length<3))return n.classPrivateFieldGet(this,s)[n.classPrivateFieldGet(this,s).length-3]}t.Sandbox=u},5643:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3369),i=r(5685),o=r(3334),s=r(8889),a=r(9699),c=new WeakMap,p=new WeakMap;class u{constructor(e,t,r=null){c.set(this,{writable:!0,value:void 0}),p.set(this,{writable:!0,value:void 0}),this.root=e,n.classPrivateFieldSet(this,c,r),this.path=[],this.errors=[],this.sandbox=new s.Sandbox(this.path,e,null),this.callbacks=o.default(t,this.errors);const i=this;n.classPrivateFieldSet(this,p,{path:this.path,get value(){return i.value}})}get depth(){return this.path.length-1}get property(){return this.sandbox.property}get value(){return this.sandbox.value}enter(e){return this.path.push(e),this.sandbox=this.sandbox.push(),this.path.length}exit(e){const t=Math.max(0,e-1);for(;this.path.length>t;)this.path.pop();return this.sandbox=this.sandbox.pop(),this.path.length}fork(e){const t=new u(this.root,this.callbacks,this);for(const r of e)if(t.enter(r),void 0===t.value)return null;return t}traverse(e,t){null!==t?a.zonedTraverse.call(this,e,t):a.traverse.call(this,e)}bail(e,t,r){const n=this.fork(this.path);a.bailedTraverse.call(n,t,r)}emit(e,t,r){var i;const o=this.callbacks[e];if(0===t&&!r)return void o(n.classPrivateFieldGet(this,p));if(0!==t&&t>this.depth+1)return;const s=0===t?n.classPrivateFieldGet(this,p):{path:n.classPrivateFieldGet(this,p).path.slice(0,Math.max(0,n.classPrivateFieldGet(this,p).path.length-t)),value:(null!==(i=this.sandbox.at(-t-1))&&void 0!==i?i:this.sandbox.at(0)).value};o(r?{path:s.path,value:0===s.path.length?void 0:s.path[s.path.length-1]}:s)}destroy(){if(this.path.length=0,this.sandbox.destroy(),this.sandbox=null,this.errors.length>0)throw new i.default(this.errors,"Error running Nimma")}}t.default=u},9699:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2512);function i(e,t,r,i,s){const a=t[e],c=r.enter(e),p=null!==s&&s.length>0&&!s[0].fn(r);(null===s||1===s.length&&p)&&i(r),n.default(a)&&(null===s?o(a,r,i,s):s.length>0&&(p&&o(a,r,i,s.slice(1)),s[0].deep&&(r.exit(c),r.enter(e),o(a,r,i,s)))),r.exit(c)}function o(e,t,r,n){if(Array.isArray(e))for(let o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3612),i=r(9445);function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=o(n);t.default=(e,t)=>{const r="object"==typeof e?e:function(e){try{return s.default(e)}catch(e){throw SyntaxError(e.message)}}(e);return i.default(r,Object.freeze(t))}},9445:(e,t)=>{"use strict";function r(e,t){switch(e.type){case"Program":return function(e,t){if(1!==e.body.length)throw SyntaxError("Too complex expression");return r(e.body[0],t)}(e,t);case"ExpressionStatement":return r(e.expression,t);case"MemberExpression":return function(e,t){const n=r(e.object,t),i="Identifier"===e.property.type?e.property.name:r(e.property,t);return"function"==typeof n[i]?n[i].bind(n):n[i]}(e,t);case"LogicalExpression":case"BinaryExpression":return function(e,t){return function(e,t){return Function("lhs, rhs",`return lhs ${e.operator} rhs`)(r(e.left,t),r(e.right,t))}(e,t)}(e,t);case"ConditionalExpression":return function(e,t){return Function("t, c, a","return t ? c : a")(r(e.test,t),r(e.consequent,t),r(e.alternate,t))}(e,t);case"UnaryExpression":return function(e,t){if(!e.prefix||"UnaryExpression"===e.argument.type)throw SyntaxError("Unexpected operator");return Function("v",`return ${e.operator}v`)(r(e.argument,t))}(e,t);case"CallExpression":return function(e,t){return Reflect.apply(r(e.callee,t),null,e.arguments.map((e=>r(e,t))))}(e,t);case"NewExpression":return function(e,t){return Reflect.construct(r(e.callee,t),e.arguments.map((e=>r(e,t))))}(e,t);case"ArrayExpression":return function(e,t){return e.elements.map((e=>r(e,t)))}(e,t);case"ThisExpression":return t;case"Identifier":return function(e,t){if(void 0===t||!(e in t))throw ReferenceError(`${e} is not defined`);return Reflect.get(t,e,t)}(e.name,t);case"Literal":return e.value;default:throw SyntaxError("Unexpected node")}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},5215:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var n={name:"regex",init(e){e.hooks.add("gobble-token",(function(t){if(47===this.code){const r=++this.index;let n=!1;for(;this.index=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57))break;o+=this.char}try{i=new RegExp(n,o)}catch(e){this.throwError(e.message)}return t.node={type:e.LITERAL,value:i,raw:this.expr.slice(r-1,this.index)},t.node=this.gobbleTokenProperty(t.node),t.node}this.code===e.OBRACK_CODE?n=!0:n&&this.code===e.CBRACK_CODE&&(n=!1),this.index+=92===this.code?2:1}this.throwError("Unclosed Regex")}}))}}},3738:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var n={name:"ternary",init(e){e.hooks.add("after-expression",(function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;const r=t.node,n=this.gobbleExpression();if(n||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;const i=this.gobbleExpression();if(i||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:r,consequent:n,alternate:i},r.operator&&e.binary_ops[r.operator]<=.9){let n=r;for(;n.right.operator&&e.binary_ops[n.right.operator]<=.9;)n=n.right;t.node.test=n.right,n.right=t.node,t.node=r}}else this.throwError("Expected :")}}))}}},6879:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);rb});var m=Object.prototype.hasOwnProperty;function y(e,t){return(e=e.slice()).push(t),e}function g(e,t){return(t=t.slice()).unshift(e),t}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(o,e);var t,r,n=(t=o,r=p(),function(){var e,n=a(t);if(r){var i=a(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return l(this,e)});function o(e){var t;return i(this,o),(t=n.call(this,'JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)')).avoidNew=!0,t.value=e,t.name="NewError",t}return s(o)}(f(Error));function b(e,t,r,i,o){if(!(this instanceof b))try{return new b(e,t,r,i,o)}catch(e){if(!e.avoidNew)throw e;return e.value}"string"==typeof e&&(o=i,i=r,r=t,t=e,e=null);var s=e&&"object"===n(e);if(e=e||{},this.json=e.json||r,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=!m.call(e,"wrap")||e.wrap,this.sandbox=e.sandbox||{},this.preventEval=e.preventEval||!1,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||i||null,this.otherTypeCallback=e.otherTypeCallback||o||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==e.autostart){var a={path:s?e.path:t};s?"json"in e&&(a.json=e.json):a.json=r;var c=this.evaluate(a);if(!c||"object"!==n(c))throw new v(c);return c}}b.prototype.evaluate=function(e,t,r,i){var o=this,s=this.parent,a=this.parentProperty,c=this.flatten,p=this.wrap;if(this.currResultType=this.resultType,this.currPreventEval=this.preventEval,this.currSandbox=this.sandbox,r=r||this.callback,this.currOtherTypeCallback=i||this.otherTypeCallback,t=t||this.json,(e=e||this.path)&&"object"===n(e)&&!Array.isArray(e)){if(!e.path&&""!==e.path)throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!m.call(e,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');t=e.json,c=m.call(e,"flatten")?e.flatten:c,this.currResultType=m.call(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=m.call(e,"sandbox")?e.sandbox:this.currSandbox,p=m.call(e,"wrap")?e.wrap:p,this.currPreventEval=m.call(e,"preventEval")?e.preventEval:this.currPreventEval,r=m.call(e,"callback")?e.callback:r,this.currOtherTypeCallback=m.call(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,s=m.call(e,"parent")?e.parent:s,a=m.call(e,"parentProperty")?e.parentProperty:a,e=e.path}if(s=s||null,a=a||null,Array.isArray(e)&&(e=b.toPathString(e)),(e||""===e)&&t){var u=b.toPathArray(e);"$"===u[0]&&u.length>1&&u.shift(),this._hasParentSelector=null;var f=this._trace(u,t,["$"],s,a,r).filter((function(e){return e&&!e.isParentSelector}));return f.length?p||1!==f.length||f[0].hasArrExpr?f.reduce((function(e,t){var r=o._getPreferredOutput(t);return c&&Array.isArray(r)?e=e.concat(r):e.push(r),e}),[]):this._getPreferredOutput(f[0]):p?[]:void 0}},b.prototype._getPreferredOutput=function(e){var t=this.currResultType;switch(t){case"all":var r=Array.isArray(e.path)?e.path:b.toPathArray(e.path);return e.pointer=b.toPointer(r),e.path="string"==typeof e.path?e.path:b.toPathString(e.path),e;case"value":case"parent":case"parentProperty":return e[t];case"path":return b.toPathString(e[t]);case"pointer":return b.toPointer(e.path);default:throw new TypeError("Unknown result type")}},b.prototype._handleCallback=function(e,t,r){if(t){var n=this._getPreferredOutput(e);e.path="string"==typeof e.path?e.path:b.toPathString(e.path),t(n,r,e)}},b.prototype._trace=function(e,t,r,i,o,s,a,c){var p,u=this;if(!e.length)return p={path:r,value:t,parent:i,parentProperty:o,hasArrExpr:a},this._handleCallback(p,s,"value"),p;var f=e[0],l=e.slice(1),h=[];function v(e){Array.isArray(e)?e.forEach((function(e){h.push(e)})):h.push(e)}if(("string"!=typeof f||c)&&t&&m.call(t,f))v(this._trace(l,t[f],y(r,f),t,f,s,a));else if("*"===f)this._walk(f,l,t,r,i,o,s,(function(e,t,r,n,i,o,s,a){v(u._trace(g(e,r),n,i,o,s,a,!0,!0))}));else if(".."===f)v(this._trace(l,t,r,i,o,s,a)),this._walk(f,l,t,r,i,o,s,(function(e,t,r,i,o,s,a,c){"object"===n(i[e])&&v(u._trace(g(t,r),i[e],y(o,e),i,e,c,!0))}));else{if("^"===f)return this._hasParentSelector=!0,{path:r.slice(0,-1),expr:l,isParentSelector:!0};if("~"===f)return p={path:y(r,f),value:o,parent:i,parentProperty:null},this._handleCallback(p,s,"property"),p;if("$"===f)v(this._trace(l,t,r,null,null,s,a));else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(f))v(this._slice(f,l,t,r,i,o,s));else if(0===f.indexOf("?(")){if(this.currPreventEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");this._walk(f,l,t,r,i,o,s,(function(e,t,r,n,i,o,s,a){u._eval(t.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/,"$1"),n[e],e,i,o,s)&&v(u._trace(g(e,r),n,i,o,s,a,!0))}))}else if("("===f[0]){if(this.currPreventEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");v(this._trace(g(this._eval(f,t,r[r.length-1],r.slice(0,-1),i,o),l),t,r,i,o,s,a))}else if("@"===f[0]){var b=!1,j=f.slice(1,-2);switch(j){case"scalar":t&&["object","function"].includes(n(t))||(b=!0);break;case"boolean":case"string":case"undefined":case"function":n(t)===j&&(b=!0);break;case"integer":!Number.isFinite(t)||t%1||(b=!0);break;case"number":Number.isFinite(t)&&(b=!0);break;case"nonFinite":"number"!=typeof t||Number.isFinite(t)||(b=!0);break;case"object":t&&n(t)===j&&(b=!0);break;case"array":Array.isArray(t)&&(b=!0);break;case"other":b=this.currOtherTypeCallback(t,r,i,o);break;case"null":null===t&&(b=!0);break;default:throw new TypeError("Unknown value type "+j)}if(b)return p={path:r,value:t,parent:i,parentProperty:o},this._handleCallback(p,s,"value"),p}else if("`"===f[0]&&t&&m.call(t,f.slice(1))){var $=f.slice(1);v(this._trace(l,t[$],y(r,$),t,$,s,a,!0))}else if(f.includes(",")){var _,x=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=d(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}(f.split(","));try{for(x.s();!(_=x.n()).done;){var P=_.value;v(this._trace(g(P,l),t,r,i,o,s,!0))}}catch(e){x.e(e)}finally{x.f()}}else!c&&t&&m.call(t,f)&&v(this._trace(l,t[f],y(r,f),t,f,s,a,!0))}if(this._hasParentSelector)for(var w=0;w-1?t.slice(0,a+1)+" return "+t.slice(a+1):" return "+t;return u(Function,r.concat([c])).apply(void 0,function(e){if(Array.isArray(e))return h(e)}(s=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||d(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}]),e}();b.prototype.vm={Script:j}},4268:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function a(e,t,r){return a=s()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&o(i,r.prototype),i},a.apply(null,arguments)}function c(e){var t="function"==typeof Map?new Map:void 0;return c=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return a(e,arguments,i(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),o(n,e)},c(e)}function p(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rg});var d=Object.prototype.hasOwnProperty;function h(e,t){return(e=e.slice()).push(t),e}function m(e,t){return(t=t.slice()).unshift(e),t}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(a,e);var t,r,n=(t=a,r=s(),function(){var e,n=i(t);if(r){var o=i(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return p(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=n.call(this,'JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)')).avoidNew=!0,t.value=e,t.name="NewError",t}return a}(c(Error));function g(e,t,r,i,o){if(!(this instanceof g))try{return new g(e,t,r,i,o)}catch(e){if(!e.avoidNew)throw e;return e.value}"string"==typeof e&&(o=i,i=r,r=t,t=e,e=null);var s=e&&"object"===n(e);if(e=e||{},this.json=e.json||r,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=!d.call(e,"wrap")||e.wrap,this.sandbox=e.sandbox||{},this.preventEval=e.preventEval||!1,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||i||null,this.otherTypeCallback=e.otherTypeCallback||o||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==e.autostart){var a={path:s?e.path:t};s?"json"in e&&(a.json=e.json):a.json=r;var c=this.evaluate(a);if(!c||"object"!==n(c))throw new y(c);return c}}g.prototype.evaluate=function(e,t,r,i){var o=this,s=this.parent,a=this.parentProperty,c=this.flatten,p=this.wrap;if(this.currResultType=this.resultType,this.currPreventEval=this.preventEval,this.currSandbox=this.sandbox,r=r||this.callback,this.currOtherTypeCallback=i||this.otherTypeCallback,t=t||this.json,(e=e||this.path)&&"object"===n(e)&&!Array.isArray(e)){if(!e.path&&""!==e.path)throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!d.call(e,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');t=e.json,c=d.call(e,"flatten")?e.flatten:c,this.currResultType=d.call(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=d.call(e,"sandbox")?e.sandbox:this.currSandbox,p=d.call(e,"wrap")?e.wrap:p,this.currPreventEval=d.call(e,"preventEval")?e.preventEval:this.currPreventEval,r=d.call(e,"callback")?e.callback:r,this.currOtherTypeCallback=d.call(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,s=d.call(e,"parent")?e.parent:s,a=d.call(e,"parentProperty")?e.parentProperty:a,e=e.path}if(s=s||null,a=a||null,Array.isArray(e)&&(e=g.toPathString(e)),(e||""===e)&&t){var u=g.toPathArray(e);"$"===u[0]&&u.length>1&&u.shift(),this._hasParentSelector=null;var f=this._trace(u,t,["$"],s,a,r).filter((function(e){return e&&!e.isParentSelector}));return f.length?p||1!==f.length||f[0].hasArrExpr?f.reduce((function(e,t){var r=o._getPreferredOutput(t);return c&&Array.isArray(r)?e=e.concat(r):e.push(r),e}),[]):this._getPreferredOutput(f[0]):p?[]:void 0}},g.prototype._getPreferredOutput=function(e){var t=this.currResultType;switch(t){case"all":var r=Array.isArray(e.path)?e.path:g.toPathArray(e.path);return e.pointer=g.toPointer(r),e.path="string"==typeof e.path?e.path:g.toPathString(e.path),e;case"value":case"parent":case"parentProperty":return e[t];case"path":return g.toPathString(e[t]);case"pointer":return g.toPointer(e.path);default:throw new TypeError("Unknown result type")}},g.prototype._handleCallback=function(e,t,r){if(t){var n=this._getPreferredOutput(e);e.path="string"==typeof e.path?e.path:g.toPathString(e.path),t(n,r,e)}},g.prototype._trace=function(e,t,r,i,o,s,a,c){var p,u=this;if(!e.length)return p={path:r,value:t,parent:i,parentProperty:o,hasArrExpr:a},this._handleCallback(p,s,"value"),p;var l=e[0],y=e.slice(1),g=[];function v(e){Array.isArray(e)?e.forEach((function(e){g.push(e)})):g.push(e)}if(("string"!=typeof l||c)&&t&&d.call(t,l))v(this._trace(y,t[l],h(r,l),t,l,s,a));else if("*"===l)this._walk(l,y,t,r,i,o,s,(function(e,t,r,n,i,o,s,a){v(u._trace(m(e,r),n,i,o,s,a,!0,!0))}));else if(".."===l)v(this._trace(y,t,r,i,o,s,a)),this._walk(l,y,t,r,i,o,s,(function(e,t,r,i,o,s,a,c){"object"===n(i[e])&&v(u._trace(m(t,r),i[e],h(o,e),i,e,c,!0))}));else{if("^"===l)return this._hasParentSelector=!0,{path:r.slice(0,-1),expr:y,isParentSelector:!0};if("~"===l)return p={path:h(r,l),value:o,parent:i,parentProperty:null},this._handleCallback(p,s,"property"),p;if("$"===l)v(this._trace(y,t,r,null,null,s,a));else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(l))v(this._slice(l,y,t,r,i,o,s));else if(0===l.indexOf("?(")){if(this.currPreventEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");this._walk(l,y,t,r,i,o,s,(function(e,t,r,n,i,o,s,a){u._eval(t.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/,"$1"),n[e],e,i,o,s)&&v(u._trace(m(e,r),n,i,o,s,a,!0))}))}else if("("===l[0]){if(this.currPreventEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");v(this._trace(m(this._eval(l,t,r[r.length-1],r.slice(0,-1),i,o),y),t,r,i,o,s,a))}else if("@"===l[0]){var b=!1,j=l.slice(1,-2);switch(j){case"scalar":t&&["object","function"].includes(n(t))||(b=!0);break;case"boolean":case"string":case"undefined":case"function":n(t)===j&&(b=!0);break;case"integer":!Number.isFinite(t)||t%1||(b=!0);break;case"number":Number.isFinite(t)&&(b=!0);break;case"nonFinite":"number"!=typeof t||Number.isFinite(t)||(b=!0);break;case"object":t&&n(t)===j&&(b=!0);break;case"array":Array.isArray(t)&&(b=!0);break;case"other":b=this.currOtherTypeCallback(t,r,i,o);break;case"null":null===t&&(b=!0);break;default:throw new TypeError("Unknown value type "+j)}if(b)return p={path:r,value:t,parent:i,parentProperty:o},this._handleCallback(p,s,"value"),p}else if("`"===l[0]&&t&&d.call(t,l.slice(1))){var $=l.slice(1);v(this._trace(y,t[$],h(r,$),t,$,s,a,!0))}else if(l.includes(",")){var _,x=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=f(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}(l.split(","));try{for(x.s();!(_=x.n()).done;){var P=_.value;v(this._trace(m(P,y),t,r,i,o,s,!0))}}catch(e){x.e(e)}finally{x.f()}}else!c&&t&&d.call(t,l)&&v(this._trace(y,t[l],h(r,l),t,l,s,a,!0))}if(this._hasParentSelector)for(var w=0;w-1?e.slice(0,s+1)+" return "+e.slice(s+1):" return "+e;return a(Function,u(r).concat([c])).apply(void 0,u(i))}}},6767:e=>{"use strict";e.exports=JSON.parse('{"id":"http://asyncapi.com/definitions/1.0.0/asyncapi.json","$schema":"http://json-schema.org/draft-04/schema","title":"AsyncAPI 1.0 schema.","type":"object","required":["asyncapi","info","topics"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["1.0.0"],"description":"The AsyncAPI specification version of this document."},"info":{"$ref":"http://asyncapi.com/definitions/1.0.0/info.json"},"baseTopic":{"type":"string","pattern":"^[^/.]","description":"The base topic to the API. Example: \'hitch\'.","default":""},"servers":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.0.0/server.json"},"uniqueItems":true},"topics":{"$ref":"http://asyncapi.com/definitions/1.0.0/topics.json"},"components":{"$ref":"http://asyncapi.com/definitions/1.0.0/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.0.0/tag.json"},"uniqueItems":true},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.0.0/SecurityRequirement.json"}},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.0.0/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/1.0.0/vendorExtension.json":{"id":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/1.0.0/info.json":{"id":"http://asyncapi.com/definitions/1.0.0/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/1.0.0/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/1.0.0/license.json"}}},"http://asyncapi.com/definitions/1.0.0/contact.json":{"id":"http://asyncapi.com/definitions/1.0.0/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.0.0/license.json":{"id":"http://asyncapi.com/definitions/1.0.0/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.0.0/server.json":{"id":"http://asyncapi.com/definitions/1.0.0/server.json","type":"object","description":"An object representing a Server.","required":["url","scheme"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"scheme":{"type":"string","description":"The transfer protocol.","enum":["kafka","kafka-secure","amqp","amqps","mqtt","mqtts","secure-mqtt","ws","wss","stomp","stomps"]},"schemeVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/1.0.0/serverVariables.json"}}},"http://asyncapi.com/definitions/1.0.0/serverVariables.json":{"id":"http://asyncapi.com/definitions/1.0.0/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.0.0/serverVariable.json"}},"http://asyncapi.com/definitions/1.0.0/serverVariable.json":{"id":"http://asyncapi.com/definitions/1.0.0/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","minProperties":1,"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"}}},"http://asyncapi.com/definitions/1.0.0/topics.json":{"id":"http://asyncapi.com/definitions/1.0.0/topics.json","type":"object","description":"Relative paths to the individual topics. They must be relative to the \'baseTopic\'.","patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"},"^[^.]":{"$ref":"http://asyncapi.com/definitions/1.0.0/topicItem.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/1.0.0/topicItem.json":{"id":"http://asyncapi.com/definitions/1.0.0/topicItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}},"minProperties":1,"properties":{"$ref":{"type":"string"},"publish":{"$ref":"http://asyncapi.com/definitions/1.0.0/message.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/1.0.0/message.json"},"deprecated":{"type":"boolean","default":false}}},"http://asyncapi.com/definitions/1.0.0/message.json":{"id":"http://asyncapi.com/definitions/1.0.0/message.json","type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}},"properties":{"$ref":{"type":"string"},"headers":{"$ref":"http://asyncapi.com/definitions/1.0.0/schema.json"},"payload":{"$ref":"http://asyncapi.com/definitions/1.0.0/schema.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.0.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.0.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"example":{}}},"http://asyncapi.com/definitions/1.0.0/schema.json":{"id":"http://asyncapi.com/definitions/1.0.0/schema.json","type":"object","description":"A deterministic version of a JSON Schema object.","patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}},"properties":{"$ref":{"type":"string"},"format":{"type":"string"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"multipleOf":{"$ref":"http://json-schema.org/draft-04/schema#/properties/multipleOf"},"maximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/maximum"},"exclusiveMaximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},"minimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/minimum"},"exclusiveMinimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},"maxLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"pattern":{"$ref":"http://json-schema.org/draft-04/schema#/properties/pattern"},"maxItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"uniqueItems":{"$ref":"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"maxProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"required":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"enum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/enum"},"additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/1.0.0/schema.json"},{"type":"boolean"}],"default":{}},"type":{"$ref":"http://json-schema.org/draft-04/schema#/properties/type"},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/1.0.0/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.0.0/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.0.0/schema.json"}},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.0.0/schema.json"},"default":{}},"discriminator":{"type":"string"},"readOnly":{"type":"boolean","default":false},"xml":{"$ref":"http://asyncapi.com/definitions/1.0.0/xml.json"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.0.0/externalDocs.json"},"example":{}},"additionalProperties":false},"http://json-schema.org/draft-04/schema":{"id":"http://json-schema.org/draft-04/schema","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string"},"$schema":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}},"http://asyncapi.com/definitions/1.0.0/xml.json":{"id":"http://asyncapi.com/definitions/1.0.0/xml.json","type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"namespace":{"type":"string"},"prefix":{"type":"string"},"attribute":{"type":"boolean","default":false},"wrapped":{"type":"boolean","default":false}}},"http://asyncapi.com/definitions/1.0.0/externalDocs.json":{"id":"http://asyncapi.com/definitions/1.0.0/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.0.0/tag.json":{"id":"http://asyncapi.com/definitions/1.0.0/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.0.0/externalDocs.json"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.0.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.0.0/components.json":{"id":"http://asyncapi.com/definitions/1.0.0/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/1.0.0/schemas.json"},"messages":{"$ref":"http://asyncapi.com/definitions/1.0.0/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/1.0.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/1.0.0/SecurityScheme.json"}]}}}}},"http://asyncapi.com/definitions/1.0.0/schemas.json":{"id":"http://asyncapi.com/definitions/1.0.0/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.0.0/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/1.0.0/messages.json":{"id":"http://asyncapi.com/definitions/1.0.0/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.0.0/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/1.0.0/Reference.json":{"id":"http://asyncapi.com/definitions/1.0.0/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"type":"string","format":"uri"}}},"http://asyncapi.com/definitions/1.0.0/SecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.0.0/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/1.0.0/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/1.0.0/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/1.0.0/X509.json"},{"$ref":"http://asyncapi.com/definitions/1.0.0/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/1.0.0/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/1.0.0/HTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/1.0.0/userPassword.json":{"id":"http://asyncapi.com/definitions/1.0.0/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.0.0/apiKey.json":{"id":"http://asyncapi.com/definitions/1.0.0/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.0.0/X509.json":{"id":"http://asyncapi.com/definitions/1.0.0/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.0.0/symmetricEncryption.json":{"id":"http://asyncapi.com/definitions/1.0.0/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.0.0/asymmetricEncryption.json":{"id":"http://asyncapi.com/definitions/1.0.0/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.0.0/HTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.0.0/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/1.0.0/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/1.0.0/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/1.0.0/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/1.0.0/NonBearerHTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.0.0/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.0.0/BearerHTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.0.0/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.0.0/APIKeyHTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.0.0/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.0.0/SecurityRequirement.json":{"id":"http://asyncapi.com/definitions/1.0.0/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},8732:e=>{"use strict";e.exports=JSON.parse('{"id":"http://asyncapi.com/definitions/1.1.0/asyncapi.json","$schema":"http://json-schema.org/draft-04/schema","title":"AsyncAPI 1.1.0 schema.","type":"object","required":["asyncapi","info","topics"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["1.0.0","1.1.0"],"description":"The AsyncAPI specification version of this document."},"info":{"$ref":"http://asyncapi.com/definitions/1.1.0/info.json"},"baseTopic":{"type":"string","pattern":"^[^/.]","description":"The base topic to the API. Example: \'hitch\'.","default":""},"servers":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.1.0/server.json"},"uniqueItems":true},"topics":{"$ref":"http://asyncapi.com/definitions/1.1.0/topics.json"},"components":{"$ref":"http://asyncapi.com/definitions/1.1.0/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.1.0/tag.json"},"uniqueItems":true},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.1.0/SecurityRequirement.json"}},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.1.0/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/1.1.0/vendorExtension.json":{"id":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/1.1.0/info.json":{"id":"http://asyncapi.com/definitions/1.1.0/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/1.1.0/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/1.1.0/license.json"}}},"http://asyncapi.com/definitions/1.1.0/contact.json":{"id":"http://asyncapi.com/definitions/1.1.0/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.1.0/license.json":{"id":"http://asyncapi.com/definitions/1.1.0/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.1.0/server.json":{"id":"http://asyncapi.com/definitions/1.1.0/server.json","type":"object","description":"An object representing a Server.","required":["url","scheme"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"scheme":{"type":"string","description":"The transfer protocol.","enum":["kafka","kafka-secure","amqp","amqps","mqtt","mqtts","secure-mqtt","ws","wss","stomp","stomps","jms"]},"schemeVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/1.1.0/serverVariables.json"}}},"http://asyncapi.com/definitions/1.1.0/serverVariables.json":{"id":"http://asyncapi.com/definitions/1.1.0/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.1.0/serverVariable.json"}},"http://asyncapi.com/definitions/1.1.0/serverVariable.json":{"id":"http://asyncapi.com/definitions/1.1.0/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","minProperties":1,"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"}}},"http://asyncapi.com/definitions/1.1.0/topics.json":{"id":"http://asyncapi.com/definitions/1.1.0/topics.json","type":"object","description":"Relative paths to the individual topics. They must be relative to the \'baseTopic\'.","patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"},"^[^.]":{"$ref":"http://asyncapi.com/definitions/1.1.0/topicItem.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/1.1.0/topicItem.json":{"id":"http://asyncapi.com/definitions/1.1.0/topicItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}},"minProperties":1,"properties":{"$ref":{"type":"string"},"parameters":{"type":"array","uniqueItems":true,"minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.1.0/parameter.json"}},"publish":{"$ref":"http://asyncapi.com/definitions/1.1.0/operation.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/1.1.0/operation.json"},"deprecated":{"type":"boolean","default":false}}},"http://asyncapi.com/definitions/1.1.0/parameter.json":{"id":"http://asyncapi.com/definitions/1.1.0/parameter.json","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"schema":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"}}},"http://asyncapi.com/definitions/1.1.0/schema.json":{"id":"http://asyncapi.com/definitions/1.1.0/schema.json","type":"object","description":"A deterministic version of a JSON Schema object.","patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}},"properties":{"$ref":{"type":"string"},"format":{"type":"string"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"multipleOf":{"$ref":"http://json-schema.org/draft-04/schema#/properties/multipleOf"},"maximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/maximum"},"exclusiveMaximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},"minimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/minimum"},"exclusiveMinimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},"maxLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"pattern":{"$ref":"http://json-schema.org/draft-04/schema#/properties/pattern"},"maxItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"uniqueItems":{"$ref":"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"maxProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"required":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"enum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/enum"},"additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"},{"type":"boolean"}],"default":{}},"type":{"$ref":"http://json-schema.org/draft-04/schema#/properties/type"},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"}},"oneOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"}},"anyOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"}},"not":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"},"default":{}},"discriminator":{"type":"string"},"readOnly":{"type":"boolean","default":false},"xml":{"$ref":"http://asyncapi.com/definitions/1.1.0/xml.json"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.1.0/externalDocs.json"},"example":{}},"additionalProperties":false},"http://json-schema.org/draft-04/schema":{"id":"http://json-schema.org/draft-04/schema","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string"},"$schema":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}},"http://asyncapi.com/definitions/1.1.0/xml.json":{"id":"http://asyncapi.com/definitions/1.1.0/xml.json","type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"namespace":{"type":"string"},"prefix":{"type":"string"},"attribute":{"type":"boolean","default":false},"wrapped":{"type":"boolean","default":false}}},"http://asyncapi.com/definitions/1.1.0/externalDocs.json":{"id":"http://asyncapi.com/definitions/1.1.0/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.1.0/operation.json":{"id":"http://asyncapi.com/definitions/1.1.0/operation.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/1.1.0/message.json"},{"type":"object","required":["oneOf"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}},"properties":{"oneOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/1.1.0/message.json"}}}}]},"http://asyncapi.com/definitions/1.1.0/message.json":{"id":"http://asyncapi.com/definitions/1.1.0/message.json","type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}},"properties":{"$ref":{"type":"string"},"headers":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"},"payload":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.1.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.1.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"example":{}}},"http://asyncapi.com/definitions/1.1.0/tag.json":{"id":"http://asyncapi.com/definitions/1.1.0/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.1.0/externalDocs.json"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.1.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.1.0/components.json":{"id":"http://asyncapi.com/definitions/1.1.0/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/1.1.0/schemas.json"},"messages":{"$ref":"http://asyncapi.com/definitions/1.1.0/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/1.1.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/1.1.0/SecurityScheme.json"}]}}}}},"http://asyncapi.com/definitions/1.1.0/schemas.json":{"id":"http://asyncapi.com/definitions/1.1.0/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.1.0/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/1.1.0/messages.json":{"id":"http://asyncapi.com/definitions/1.1.0/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.1.0/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/1.1.0/Reference.json":{"id":"http://asyncapi.com/definitions/1.1.0/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"type":"string","format":"uri"}}},"http://asyncapi.com/definitions/1.1.0/SecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.1.0/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/1.1.0/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/1.1.0/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/1.1.0/X509.json"},{"$ref":"http://asyncapi.com/definitions/1.1.0/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/1.1.0/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/1.1.0/HTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/1.1.0/userPassword.json":{"id":"http://asyncapi.com/definitions/1.1.0/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.1.0/apiKey.json":{"id":"http://asyncapi.com/definitions/1.1.0/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.1.0/X509.json":{"id":"http://asyncapi.com/definitions/1.1.0/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.1.0/symmetricEncryption.json":{"id":"http://asyncapi.com/definitions/1.1.0/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.1.0/asymmetricEncryption.json":{"id":"http://asyncapi.com/definitions/1.1.0/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.1.0/HTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.1.0/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/1.1.0/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/1.1.0/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/1.1.0/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/1.1.0/NonBearerHTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.1.0/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.1.0/BearerHTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.1.0/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.1.0/APIKeyHTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.1.0/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.1.0/SecurityRequirement.json":{"id":"http://asyncapi.com/definitions/1.1.0/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},5655:e=>{"use strict";e.exports=JSON.parse('{"id":"http://asyncapi.com/definitions/1.2.0/asyncapi.json","$schema":"http://json-schema.org/draft-04/schema","title":"AsyncAPI 1.2.0 schema.","type":"object","required":["asyncapi","info"],"oneOf":[{"required":["topics"]},{"required":["stream"]},{"required":["events"]}],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["1.0.0","1.1.0","1.2.0"],"description":"The AsyncAPI specification version of this document."},"info":{"$ref":"http://asyncapi.com/definitions/1.2.0/info.json"},"baseTopic":{"type":"string","pattern":"^[^/.]","description":"The base topic to the API. Example: \'hitch\'.","default":""},"servers":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.2.0/server.json"},"uniqueItems":true},"topics":{"$ref":"http://asyncapi.com/definitions/1.2.0/topics.json"},"stream":{"$ref":"http://asyncapi.com/definitions/1.2.0/stream.json","description":"The list of messages a consumer can read or write from/to a streaming API."},"events":{"$ref":"http://asyncapi.com/definitions/1.2.0/events.json","description":"The list of messages an events API sends and/or receives."},"components":{"$ref":"http://asyncapi.com/definitions/1.2.0/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.2.0/tag.json"},"uniqueItems":true},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.2.0/SecurityRequirement.json"}},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.2.0/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/1.2.0/vendorExtension.json":{"id":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/1.2.0/info.json":{"id":"http://asyncapi.com/definitions/1.2.0/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/1.2.0/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/1.2.0/license.json"}}},"http://asyncapi.com/definitions/1.2.0/contact.json":{"id":"http://asyncapi.com/definitions/1.2.0/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.2.0/license.json":{"id":"http://asyncapi.com/definitions/1.2.0/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.2.0/server.json":{"id":"http://asyncapi.com/definitions/1.2.0/server.json","type":"object","description":"An object representing a Server.","required":["url","scheme"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"scheme":{"type":"string","description":"The transfer protocol.","enum":["kafka","kafka-secure","amqp","amqps","mqtt","mqtts","secure-mqtt","ws","wss","stomp","stomps","jms","http","https"]},"schemeVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/1.2.0/serverVariables.json"}}},"http://asyncapi.com/definitions/1.2.0/serverVariables.json":{"id":"http://asyncapi.com/definitions/1.2.0/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.2.0/serverVariable.json"}},"http://asyncapi.com/definitions/1.2.0/serverVariable.json":{"id":"http://asyncapi.com/definitions/1.2.0/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","minProperties":1,"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"}}},"http://asyncapi.com/definitions/1.2.0/topics.json":{"id":"http://asyncapi.com/definitions/1.2.0/topics.json","type":"object","description":"Relative paths to the individual topics. They must be relative to the \'baseTopic\'.","patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"},"^[^.]":{"$ref":"http://asyncapi.com/definitions/1.2.0/topicItem.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/1.2.0/topicItem.json":{"id":"http://asyncapi.com/definitions/1.2.0/topicItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"minProperties":1,"properties":{"$ref":{"type":"string"},"parameters":{"type":"array","uniqueItems":true,"minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/parameter.json"}},"publish":{"$ref":"http://asyncapi.com/definitions/1.2.0/operation.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/1.2.0/operation.json"},"deprecated":{"type":"boolean","default":false}}},"http://asyncapi.com/definitions/1.2.0/parameter.json":{"id":"http://asyncapi.com/definitions/1.2.0/parameter.json","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"schema":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"},"$ref":{"type":"string"}}},"http://asyncapi.com/definitions/1.2.0/schema.json":{"id":"http://asyncapi.com/definitions/1.2.0/schema.json","type":"object","description":"A deterministic version of a JSON Schema object.","patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"properties":{"$ref":{"type":"string"},"format":{"type":"string"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"multipleOf":{"$ref":"http://json-schema.org/draft-04/schema#/properties/multipleOf"},"maximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/maximum"},"exclusiveMaximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},"minimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/minimum"},"exclusiveMinimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},"maxLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"pattern":{"$ref":"http://json-schema.org/draft-04/schema#/properties/pattern"},"maxItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"uniqueItems":{"$ref":"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"maxProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"required":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"enum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/enum"},"additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"},{"type":"boolean"}],"default":{}},"type":{"$ref":"http://json-schema.org/draft-04/schema#/properties/type"},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"}},"oneOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"}},"anyOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"}},"not":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"},"default":{}},"discriminator":{"type":"string"},"readOnly":{"type":"boolean","default":false},"xml":{"$ref":"http://asyncapi.com/definitions/1.2.0/xml.json"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.2.0/externalDocs.json"},"example":{}},"additionalProperties":false},"http://json-schema.org/draft-04/schema":{"id":"http://json-schema.org/draft-04/schema","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string"},"$schema":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}},"http://asyncapi.com/definitions/1.2.0/xml.json":{"id":"http://asyncapi.com/definitions/1.2.0/xml.json","type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"namespace":{"type":"string"},"prefix":{"type":"string"},"attribute":{"type":"boolean","default":false},"wrapped":{"type":"boolean","default":false}}},"http://asyncapi.com/definitions/1.2.0/externalDocs.json":{"id":"http://asyncapi.com/definitions/1.2.0/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.2.0/operation.json":{"id":"http://asyncapi.com/definitions/1.2.0/operation.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/1.2.0/message.json"},{"type":"object","required":["oneOf"],"additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"properties":{"oneOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/message.json"}}}}]},"http://asyncapi.com/definitions/1.2.0/message.json":{"id":"http://asyncapi.com/definitions/1.2.0/message.json","type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"properties":{"$ref":{"type":"string"},"headers":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"},"payload":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/1.2.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.2.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"example":{}}},"http://asyncapi.com/definitions/1.2.0/tag.json":{"id":"http://asyncapi.com/definitions/1.2.0/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/1.2.0/externalDocs.json"}},"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}}},"http://asyncapi.com/definitions/1.2.0/stream.json":{"id":"http://asyncapi.com/definitions/1.2.0/stream.json","title":"Stream Object","type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"minProperties":1,"properties":{"framing":{"title":"Stream Framing Object","type":"object","patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"minProperties":1,"oneOf":[{"additionalProperties":false,"properties":{"type":{"type":"string","enum":["chunked"]},"delimiter":{"type":"string","enum":["\\\\r\\\\n","\\\\n"],"default":"\\\\r\\\\n"}}},{"additionalProperties":false,"properties":{"type":{"type":"string","enum":["sse"]},"delimiter":{"type":"string","enum":["\\\\n\\\\n"],"default":"\\\\n\\\\n"}}}]},"read":{"title":"Stream Read Object","type":"array","uniqueItems":true,"minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/message.json"}},"write":{"title":"Stream Write Object","type":"array","uniqueItems":true,"minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/message.json"}}}},"http://asyncapi.com/definitions/1.2.0/events.json":{"id":"http://asyncapi.com/definitions/1.2.0/events.json","title":"Events Object","type":"object","additionalProperties":false,"patternProperties":{"^x-":{"$ref":"http://asyncapi.com/definitions/1.2.0/vendorExtension.json"}},"minProperties":1,"anyOf":[{"required":["receive"]},{"required":["send"]}],"properties":{"receive":{"title":"Events Receive Object","type":"array","uniqueItems":true,"minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/message.json"}},"send":{"title":"Events Send Object","type":"array","uniqueItems":true,"minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/1.2.0/message.json"}}}},"http://asyncapi.com/definitions/1.2.0/components.json":{"id":"http://asyncapi.com/definitions/1.2.0/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/1.2.0/schemas.json"},"messages":{"$ref":"http://asyncapi.com/definitions/1.2.0/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[a-zA-Z0-9\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/1.2.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/1.2.0/SecurityScheme.json"}]}}},"parameters":{"$ref":"http://asyncapi.com/definitions/1.2.0/parameters.json"}}},"http://asyncapi.com/definitions/1.2.0/schemas.json":{"id":"http://asyncapi.com/definitions/1.2.0/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.2.0/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/1.2.0/messages.json":{"id":"http://asyncapi.com/definitions/1.2.0/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.2.0/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/1.2.0/Reference.json":{"id":"http://asyncapi.com/definitions/1.2.0/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"type":"string","format":"uri"}}},"http://asyncapi.com/definitions/1.2.0/SecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.2.0/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/1.2.0/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/1.2.0/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/1.2.0/X509.json"},{"$ref":"http://asyncapi.com/definitions/1.2.0/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/1.2.0/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/1.2.0/HTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/1.2.0/userPassword.json":{"id":"http://asyncapi.com/definitions/1.2.0/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.2.0/apiKey.json":{"id":"http://asyncapi.com/definitions/1.2.0/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.2.0/X509.json":{"id":"http://asyncapi.com/definitions/1.2.0/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.2.0/symmetricEncryption.json":{"id":"http://asyncapi.com/definitions/1.2.0/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.2.0/asymmetricEncryption.json":{"id":"http://asyncapi.com/definitions/1.2.0/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.2.0/HTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.2.0/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/1.2.0/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/1.2.0/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/1.2.0/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/1.2.0/NonBearerHTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.2.0/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.2.0/BearerHTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.2.0/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.2.0/APIKeyHTTPSecurityScheme.json":{"id":"http://asyncapi.com/definitions/1.2.0/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-":{}},"additionalProperties":false},"http://asyncapi.com/definitions/1.2.0/parameters.json":{"id":"http://asyncapi.com/definitions/1.2.0/parameters.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/1.2.0/parameter.json"},"description":"JSON objects describing re-usable topic parameters."},"http://asyncapi.com/definitions/1.2.0/SecurityRequirement.json":{"id":"http://asyncapi.com/definitions/1.2.0/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},3561:e=>{"use strict";e.exports=JSON.parse('{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/asyncapi.json","$schema":"http://json-schema.org/draft-07/schema","title":"AsyncAPI 2.0.0-rc1 schema.","type":"object","required":["asyncapi","id","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["2.0.0-rc1"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri-reference"},"info":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/info.json"},"servers":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/server.json"},"uniqueItems":true},"defaultContentType":{"type":"string"},"channels":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/channels.json"},"components":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/2.0.0-rc1/info.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/license.json"}}},"http://asyncapi.com/definitions/2.0.0-rc1/contact.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc1/license.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc1/server.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/server.json","type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/serverVariables.json"},"baseChannel":{"type":"string","x-format":"uri-path"},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/SecurityRequirement.json"}}}},"http://asyncapi.com/definitions/2.0.0-rc1/serverVariables.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/serverVariable.json"}},"http://asyncapi.com/definitions/2.0.0-rc1/serverVariable.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","minProperties":1,"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"http://asyncapi.com/definitions/2.0.0-rc1/SecurityRequirement.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"http://asyncapi.com/definitions/2.0.0-rc1/channels.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/channels.json","type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/channelItem.json"}},"http://asyncapi.com/definitions/2.0.0-rc1/channelItem.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/channelItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"minProperties":1,"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json"},"parameters":{"type":"array","uniqueItems":true,"minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/parameter.json"}},"publish":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/operation.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/operation.json"},"deprecated":{"type":"boolean","default":false},"protocolInfo":{"type":"object","additionalProperties":{"type":"object"}}}},"http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json","type":"string","format":"uri"},"http://asyncapi.com/definitions/2.0.0-rc1/parameter.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/parameter.json","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"name":{"type":"string","description":"The name of the parameter."},"schema":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"},"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.0.0-rc1/schema.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json","type":"object","description":"A deterministic version of a JSON Schema object.","patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json"},"format":{"type":"string"},"title":{"$ref":"http://json-schema.org/draft-04/schema#/properties/title"},"description":{"$ref":"http://json-schema.org/draft-04/schema#/properties/description"},"default":{"$ref":"http://json-schema.org/draft-04/schema#/properties/default"},"multipleOf":{"$ref":"http://json-schema.org/draft-04/schema#/properties/multipleOf"},"maximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/maximum"},"exclusiveMaximum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},"minimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/minimum"},"exclusiveMinimum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},"maxLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minLength":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"pattern":{"$ref":"http://json-schema.org/draft-04/schema#/properties/pattern"},"maxItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minItems":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"uniqueItems":{"$ref":"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"maxProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},"minProperties":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},"required":{"$ref":"http://json-schema.org/draft-04/schema#/definitions/stringArray"},"enum":{"$ref":"http://json-schema.org/draft-04/schema#/properties/enum"},"deprecated":{"type":"boolean","default":false},"additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"},{"type":"boolean"}],"default":{}},"type":{"$ref":"http://json-schema.org/draft-04/schema#/properties/type"},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"}},"oneOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"}},"anyOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"}},"not":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"},"default":{}},"discriminator":{"type":"string"},"readOnly":{"type":"boolean","default":false},"xml":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/xml.json"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json"},"example":{},"examples":{"type":"array","items":{}}},"additionalProperties":false},"http://json-schema.org/draft-04/schema":{"id":"http://json-schema.org/draft-04/schema","$schema":"http://json-schema.org/draft-04/schema","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string"},"$schema":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}},"http://asyncapi.com/definitions/2.0.0-rc1/xml.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/xml.json","type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"namespace":{"type":"string"},"prefix":{"type":"string"},"attribute":{"type":"boolean","default":false},"wrapped":{"type":"boolean","default":false}}},"http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc1/operation.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/operation.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json"},"operationId":{"type":"string"},"protocolInfo":{"type":"object","additionalProperties":{"type":"object"}},"message":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/message.json"},{"type":"object","required":["oneOf"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"oneOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/message.json"}}}}]}}},"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json"},"operationId":{"type":"string"},"protocolInfo":{"type":"object","additionalProperties":{"type":"object"}}}},"http://asyncapi.com/definitions/2.0.0-rc1/tag.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc1/message.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/message.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"}]}},"payload":{},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"protocolInfo":{"type":"object","additionalProperties":{"type":"object"}},"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json"}]},{"type":"object","additionalItems":true}]}]}}}},"http://asyncapi.com/definitions/2.0.0-rc1/correlationId.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/correlationId.json","type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(/\\\\w+)+"}}},"http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"}]}},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"protocolInfo":{"type":"object","additionalProperties":{"type":"object"}}}},"http://asyncapi.com/definitions/2.0.0-rc1/components.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schemas.json"},"messages":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/SecurityScheme.json"}]}}},"parameters":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/parameters.json"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/correlationId.json"}]}}},"traits":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/traits.json"}}},"http://asyncapi.com/definitions/2.0.0-rc1/schemas.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/2.0.0-rc1/messages.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/2.0.0-rc1/SecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/X509.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/HTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flows.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/openIdConnect.json"}]},"http://asyncapi.com/definitions/2.0.0-rc1/userPassword.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/apiKey.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/X509.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/symmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/asymmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/HTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.0.0-rc1/NonBearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/BearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/APIKeyHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flows.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flows.json","type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false,"minProperties":1}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json","type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Scopes.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Scopes.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/oauth2Scopes.json","type":"object","additionalProperties":{"type":"string"}},"http://asyncapi.com/definitions/2.0.0-rc1/openIdConnect.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/openIdConnect.json","type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc1/parameters.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/parameters.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/parameter.json"},"description":"JSON objects describing re-usable channel parameters."},"http://asyncapi.com/definitions/2.0.0-rc1/traits.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc1/traits.json","type":"object","additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json"}]}}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},8319:e=>{"use strict";e.exports=JSON.parse('{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/asyncapi.json","$schema":"http://json-schema.org/draft-07/schema","title":"AsyncAPI 2.0.0-rc2 schema.","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["2.0.0-rc2"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/info.json"},"servers":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/server.json"}},"defaultContentType":{"type":"string"},"channels":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/channels.json"},"components":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/2.0.0-rc2/info.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/license.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/contact.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/license.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/server.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/server.json","type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/serverVariables.json"},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/SecurityRequirement.json"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/serverVariables.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/serverVariable.json"}},"http://asyncapi.com/definitions/2.0.0-rc2/serverVariable.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","minProperties":1,"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"http://asyncapi.com/definitions/2.0.0-rc2/SecurityRequirement.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json","type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{}}},"http://asyncapi.com/definitions/2.0.0-rc2/channels.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/channels.json","type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/channelItem.json"}},"http://asyncapi.com/definitions/2.0.0-rc2/channelItem.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/channelItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"minProperties":1,"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/ReferenceObject.json"},"parameters":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/parameter.json"}},"description":{"type":"string","description":"A description of the channel."},"publish":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/operation.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/operation.json"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/ReferenceObject.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/ReferenceObject.json","type":"string","format":"uri-reference"},"http://asyncapi.com/definitions/2.0.0-rc2/parameter.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/parameter.json","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/schema.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json","allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"type":"object","patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"}},"oneOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"}},"anyOf":{"type":"array","minItems":2,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"}},"not":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},"default":{}},"propertyNames":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},"contains":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json"},"deprecated":{"type":"boolean","default":false}}}]},"http://json-schema.org/draft-07/schema":{"$id":"http://json-schema.org/draft-07/schema","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true},"http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/operation.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/operation.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"},"message":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/message.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/tag.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/message.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/message.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/message.json"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},"payload":{},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"http://asyncapi.com/definitions/2.0.0-rc2/correlationId.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/correlationId.json","type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"}]},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/components.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schemas.json"},"messages":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/SecurityScheme.json"}]}}},"parameters":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/parameters.json"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/correlationId.json"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json"}}}},"http://asyncapi.com/definitions/2.0.0-rc2/schemas.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/2.0.0-rc2/messages.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/2.0.0-rc2/SecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/X509.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/HTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flows.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/openIdConnect.json"}]},"http://asyncapi.com/definitions/2.0.0-rc2/userPassword.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/apiKey.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/X509.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/symmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/asymmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/HTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.0.0-rc2/NonBearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/BearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/APIKeyHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flows.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flows.json","type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false,"minProperties":1}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json","type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Scopes.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Scopes.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/oauth2Scopes.json","type":"object","additionalProperties":{"type":"string"}},"http://asyncapi.com/definitions/2.0.0-rc2/openIdConnect.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/openIdConnect.json","type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0-rc2/parameters.json":{"$id":"http://asyncapi.com/definitions/2.0.0-rc2/parameters.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0-rc2/parameter.json"},"description":"JSON objects describing re-usable channel parameters."}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},9284:e=>{"use strict";e.exports=JSON.parse('{"$id":"http://asyncapi.com/definitions/2.0.0/asyncapi.json","$schema":"http://json-schema.org/draft-07/schema","title":"AsyncAPI 2.0.0 schema.","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["2.0.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"http://asyncapi.com/definitions/2.0.0/info.json"},"servers":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/server.json"}},"defaultContentType":{"type":"string"},"channels":{"$ref":"http://asyncapi.com/definitions/2.0.0/channels.json"},"components":{"$ref":"http://asyncapi.com/definitions/2.0.0/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/2.0.0/specificationExtension.json":{"$id":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/2.0.0/info.json":{"$id":"http://asyncapi.com/definitions/2.0.0/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/2.0.0/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/2.0.0/license.json"}}},"http://asyncapi.com/definitions/2.0.0/contact.json":{"$id":"http://asyncapi.com/definitions/2.0.0/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0/license.json":{"$id":"http://asyncapi.com/definitions/2.0.0/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0/server.json":{"$id":"http://asyncapi.com/definitions/2.0.0/server.json","type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/2.0.0/serverVariables.json"},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0/SecurityRequirement.json"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.0.0/serverVariables.json":{"$id":"http://asyncapi.com/definitions/2.0.0/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/serverVariable.json"}},"http://asyncapi.com/definitions/2.0.0/serverVariable.json":{"$id":"http://asyncapi.com/definitions/2.0.0/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"http://asyncapi.com/definitions/2.0.0/SecurityRequirement.json":{"$id":"http://asyncapi.com/definitions/2.0.0/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"http://asyncapi.com/definitions/2.0.0/bindingsObject.json":{"$id":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json","type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{}}},"http://asyncapi.com/definitions/2.0.0/channels.json":{"$id":"http://asyncapi.com/definitions/2.0.0/channels.json","type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/channelItem.json"}},"http://asyncapi.com/definitions/2.0.0/channelItem.json":{"$id":"http://asyncapi.com/definitions/2.0.0/channelItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0/ReferenceObject.json"},"parameters":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/parameter.json"}},"description":{"type":"string","description":"A description of the channel."},"publish":{"$ref":"http://asyncapi.com/definitions/2.0.0/operation.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/2.0.0/operation.json"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.0.0/ReferenceObject.json":{"$id":"http://asyncapi.com/definitions/2.0.0/ReferenceObject.json","type":"string","format":"uri-reference"},"http://asyncapi.com/definitions/2.0.0/parameter.json":{"$id":"http://asyncapi.com/definitions/2.0.0/parameter.json","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.0.0/schema.json":{"$id":"http://asyncapi.com/definitions/2.0.0/schema.json","allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"}},"not":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},"default":{}},"propertyNames":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},"contains":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false}}}]},"http://json-schema.org/draft-07/schema":{"$id":"http://json-schema.org/draft-07/schema","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true},"http://asyncapi.com/definitions/2.0.0/externalDocs.json":{"$id":"http://asyncapi.com/definitions/2.0.0/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0/operation.json":{"$id":"http://asyncapi.com/definitions/2.0.0/operation.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/operationTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/operationTrait.json"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"},"message":{"$ref":"http://asyncapi.com/definitions/2.0.0/message.json"}}},"http://asyncapi.com/definitions/2.0.0/Reference.json":{"$id":"http://asyncapi.com/definitions/2.0.0/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.0.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.0.0/operationTrait.json":{"$id":"http://asyncapi.com/definitions/2.0.0/operationTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.0.0/tag.json":{"$id":"http://asyncapi.com/definitions/2.0.0/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0/externalDocs.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0/message.json":{"$id":"http://asyncapi.com/definitions/2.0.0/message.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/Reference.json"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0/message.json"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"payload":{},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/messageTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/messageTrait.json"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"http://asyncapi.com/definitions/2.0.0/correlationId.json":{"$id":"http://asyncapi.com/definitions/2.0.0/correlationId.json","type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"http://asyncapi.com/definitions/2.0.0/messageTrait.json":{"$id":"http://asyncapi.com/definitions/2.0.0/messageTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.0.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.0.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.0.0/components.json":{"$id":"http://asyncapi.com/definitions/2.0.0/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/2.0.0/schemas.json"},"messages":{"$ref":"http://asyncapi.com/definitions/2.0.0/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/SecurityScheme.json"}]}}},"parameters":{"$ref":"http://asyncapi.com/definitions/2.0.0/parameters.json"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/correlationId.json"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/operationTrait.json"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/messageTrait.json"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/bindingsObject.json"}}}},"http://asyncapi.com/definitions/2.0.0/schemas.json":{"$id":"http://asyncapi.com/definitions/2.0.0/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/2.0.0/messages.json":{"$id":"http://asyncapi.com/definitions/2.0.0/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/2.0.0/SecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/X509.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/HTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/oauth2Flows.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/openIdConnect.json"}]},"http://asyncapi.com/definitions/2.0.0/userPassword.json":{"$id":"http://asyncapi.com/definitions/2.0.0/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/apiKey.json":{"$id":"http://asyncapi.com/definitions/2.0.0/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/X509.json":{"$id":"http://asyncapi.com/definitions/2.0.0/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/symmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.0.0/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/asymmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.0.0/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/HTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.0.0/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.0.0/NonBearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/BearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/APIKeyHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.0.0/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/oauth2Flows.json":{"$id":"http://asyncapi.com/definitions/2.0.0/oauth2Flows.json","type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/oauth2Flow.json"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.0.0/oauth2Flow.json"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.0.0/oauth2Flow.json":{"$id":"http://asyncapi.com/definitions/2.0.0/oauth2Flow.json","type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"http://asyncapi.com/definitions/2.0.0/oauth2Scopes.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/oauth2Scopes.json":{"$id":"http://asyncapi.com/definitions/2.0.0/oauth2Scopes.json","type":"object","additionalProperties":{"type":"string"}},"http://asyncapi.com/definitions/2.0.0/openIdConnect.json":{"$id":"http://asyncapi.com/definitions/2.0.0/openIdConnect.json","type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.0.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.0.0/parameters.json":{"$id":"http://asyncapi.com/definitions/2.0.0/parameters.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.0.0/parameter.json"},"description":"JSON objects describing re-usable channel parameters."}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},8369:e=>{"use strict";e.exports=JSON.parse('{"$id":"http://asyncapi.com/definitions/2.1.0/asyncapi.json","$schema":"http://json-schema.org/draft-07/schema","title":"AsyncAPI 2.1.0 schema.","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["2.1.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"http://asyncapi.com/definitions/2.1.0/info.json"},"servers":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/server.json"}},"defaultContentType":{"type":"string"},"channels":{"$ref":"http://asyncapi.com/definitions/2.1.0/channels.json"},"components":{"$ref":"http://asyncapi.com/definitions/2.1.0/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.1.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.1.0/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/2.1.0/specificationExtension.json":{"$id":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/2.1.0/info.json":{"$id":"http://asyncapi.com/definitions/2.1.0/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/2.1.0/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/2.1.0/license.json"}}},"http://asyncapi.com/definitions/2.1.0/contact.json":{"$id":"http://asyncapi.com/definitions/2.1.0/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.1.0/license.json":{"$id":"http://asyncapi.com/definitions/2.1.0/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.1.0/server.json":{"$id":"http://asyncapi.com/definitions/2.1.0/server.json","type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/2.1.0/serverVariables.json"},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.1.0/SecurityRequirement.json"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.1.0/serverVariables.json":{"$id":"http://asyncapi.com/definitions/2.1.0/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/serverVariable.json"}},"http://asyncapi.com/definitions/2.1.0/serverVariable.json":{"$id":"http://asyncapi.com/definitions/2.1.0/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"http://asyncapi.com/definitions/2.1.0/SecurityRequirement.json":{"$id":"http://asyncapi.com/definitions/2.1.0/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"http://asyncapi.com/definitions/2.1.0/bindingsObject.json":{"$id":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json","type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{},"ibmmq":{}}},"http://asyncapi.com/definitions/2.1.0/channels.json":{"$id":"http://asyncapi.com/definitions/2.1.0/channels.json","type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/channelItem.json"}},"http://asyncapi.com/definitions/2.1.0/channelItem.json":{"$id":"http://asyncapi.com/definitions/2.1.0/channelItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.1.0/ReferenceObject.json"},"parameters":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/parameter.json"}},"description":{"type":"string","description":"A description of the channel."},"publish":{"$ref":"http://asyncapi.com/definitions/2.1.0/operation.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/2.1.0/operation.json"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.1.0/ReferenceObject.json":{"$id":"http://asyncapi.com/definitions/2.1.0/ReferenceObject.json","type":"string","format":"uri-reference"},"http://asyncapi.com/definitions/2.1.0/parameter.json":{"$id":"http://asyncapi.com/definitions/2.1.0/parameter.json","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"http://asyncapi.com/definitions/2.1.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.1.0/schema.json":{"$id":"http://asyncapi.com/definitions/2.1.0/schema.json","allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"}},"not":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},"default":{}},"propertyNames":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},"contains":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.1.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false}}}]},"http://json-schema.org/draft-07/schema":{"$id":"http://json-schema.org/draft-07/schema","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true},"http://asyncapi.com/definitions/2.1.0/externalDocs.json":{"$id":"http://asyncapi.com/definitions/2.1.0/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.1.0/operation.json":{"$id":"http://asyncapi.com/definitions/2.1.0/operation.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/operationTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/operationTrait.json"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.1.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.1.0/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"},"message":{"$ref":"http://asyncapi.com/definitions/2.1.0/message.json"}}},"http://asyncapi.com/definitions/2.1.0/Reference.json":{"$id":"http://asyncapi.com/definitions/2.1.0/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.1.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.1.0/operationTrait.json":{"$id":"http://asyncapi.com/definitions/2.1.0/operationTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.1.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.1.0/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.1.0/tag.json":{"$id":"http://asyncapi.com/definitions/2.1.0/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.1.0/externalDocs.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.1.0/message.json":{"$id":"http://asyncapi.com/definitions/2.1.0/message.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/Reference.json"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.1.0/message.json"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"payload":{},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.1.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.1.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/messageTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/messageTrait.json"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"http://asyncapi.com/definitions/2.1.0/correlationId.json":{"$id":"http://asyncapi.com/definitions/2.1.0/correlationId.json","type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"http://asyncapi.com/definitions/2.1.0/messageTrait.json":{"$id":"http://asyncapi.com/definitions/2.1.0/messageTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.1.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.1.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.1.0/components.json":{"$id":"http://asyncapi.com/definitions/2.1.0/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/2.1.0/schemas.json"},"messages":{"$ref":"http://asyncapi.com/definitions/2.1.0/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/SecurityScheme.json"}]}}},"parameters":{"$ref":"http://asyncapi.com/definitions/2.1.0/parameters.json"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/correlationId.json"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/operationTrait.json"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/messageTrait.json"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/bindingsObject.json"}}}},"http://asyncapi.com/definitions/2.1.0/schemas.json":{"$id":"http://asyncapi.com/definitions/2.1.0/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/2.1.0/messages.json":{"$id":"http://asyncapi.com/definitions/2.1.0/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/2.1.0/SecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.1.0/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/X509.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/HTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/oauth2Flows.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/openIdConnect.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/SaslSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.1.0/userPassword.json":{"$id":"http://asyncapi.com/definitions/2.1.0/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/apiKey.json":{"$id":"http://asyncapi.com/definitions/2.1.0/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/X509.json":{"$id":"http://asyncapi.com/definitions/2.1.0/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/symmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.1.0/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/asymmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.1.0/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/HTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.1.0/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.1.0/NonBearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.1.0/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/BearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.1.0/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/APIKeyHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.1.0/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/oauth2Flows.json":{"$id":"http://asyncapi.com/definitions/2.1.0/oauth2Flows.json","type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/oauth2Flow.json"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/oauth2Flow.json"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.1.0/oauth2Flow.json":{"$id":"http://asyncapi.com/definitions/2.1.0/oauth2Flow.json","type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"http://asyncapi.com/definitions/2.1.0/oauth2Scopes.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/oauth2Scopes.json":{"$id":"http://asyncapi.com/definitions/2.1.0/oauth2Scopes.json","type":"object","additionalProperties":{"type":"string"}},"http://asyncapi.com/definitions/2.1.0/openIdConnect.json":{"$id":"http://asyncapi.com/definitions/2.1.0/openIdConnect.json","type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/SaslSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.1.0/SaslSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.1.0/SaslPlainSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/SaslScramSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.1.0/SaslGssapiSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.1.0/SaslPlainSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.1.0/SaslPlainSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["plain"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/SaslScramSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.1.0/SaslScramSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["scramSha256","scramSha512"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/SaslGssapiSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.1.0/SaslGssapiSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["gssapi"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.1.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.1.0/parameters.json":{"$id":"http://asyncapi.com/definitions/2.1.0/parameters.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.1.0/parameter.json"},"description":"JSON objects describing re-usable channel parameters."}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},9320:e=>{"use strict";e.exports=JSON.parse('{"$id":"http://asyncapi.com/definitions/2.2.0/asyncapi.json","$schema":"http://json-schema.org/draft-07/schema","title":"AsyncAPI 2.2.0 schema.","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["2.2.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"http://asyncapi.com/definitions/2.2.0/info.json"},"servers":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/server.json"}},"defaultContentType":{"type":"string"},"channels":{"$ref":"http://asyncapi.com/definitions/2.2.0/channels.json"},"components":{"$ref":"http://asyncapi.com/definitions/2.2.0/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.2.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.2.0/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/2.2.0/specificationExtension.json":{"$id":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/2.2.0/info.json":{"$id":"http://asyncapi.com/definitions/2.2.0/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/2.2.0/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/2.2.0/license.json"}}},"http://asyncapi.com/definitions/2.2.0/contact.json":{"$id":"http://asyncapi.com/definitions/2.2.0/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.2.0/license.json":{"$id":"http://asyncapi.com/definitions/2.2.0/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.2.0/server.json":{"$id":"http://asyncapi.com/definitions/2.2.0/server.json","type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/2.2.0/serverVariables.json"},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.2.0/SecurityRequirement.json"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.2.0/serverVariables.json":{"$id":"http://asyncapi.com/definitions/2.2.0/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/serverVariable.json"}},"http://asyncapi.com/definitions/2.2.0/serverVariable.json":{"$id":"http://asyncapi.com/definitions/2.2.0/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"http://asyncapi.com/definitions/2.2.0/SecurityRequirement.json":{"$id":"http://asyncapi.com/definitions/2.2.0/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"http://asyncapi.com/definitions/2.2.0/bindingsObject.json":{"$id":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json","type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"anypointmq":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{},"ibmmq":{}}},"http://asyncapi.com/definitions/2.2.0/channels.json":{"$id":"http://asyncapi.com/definitions/2.2.0/channels.json","type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/channelItem.json"}},"http://asyncapi.com/definitions/2.2.0/channelItem.json":{"$id":"http://asyncapi.com/definitions/2.2.0/channelItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.2.0/ReferenceObject.json"},"parameters":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/parameter.json"}},"description":{"type":"string","description":"A description of the channel."},"servers":{"type":"array","description":"The names of the servers on which this channel is available. If absent or empty then this channel must be available on all servers.","items":{"type":"string"},"uniqueItems":true},"publish":{"$ref":"http://asyncapi.com/definitions/2.2.0/operation.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/2.2.0/operation.json"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.2.0/ReferenceObject.json":{"$id":"http://asyncapi.com/definitions/2.2.0/ReferenceObject.json","type":"string","format":"uri-reference"},"http://asyncapi.com/definitions/2.2.0/parameter.json":{"$id":"http://asyncapi.com/definitions/2.2.0/parameter.json","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"http://asyncapi.com/definitions/2.2.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.2.0/schema.json":{"$id":"http://asyncapi.com/definitions/2.2.0/schema.json","allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"}},"not":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},"default":{}},"propertyNames":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},"contains":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.2.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false}}}]},"http://json-schema.org/draft-07/schema":{"$id":"http://json-schema.org/draft-07/schema","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true},"http://asyncapi.com/definitions/2.2.0/externalDocs.json":{"$id":"http://asyncapi.com/definitions/2.2.0/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.2.0/operation.json":{"$id":"http://asyncapi.com/definitions/2.2.0/operation.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/operationTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/operationTrait.json"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.2.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.2.0/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"},"message":{"$ref":"http://asyncapi.com/definitions/2.2.0/message.json"}}},"http://asyncapi.com/definitions/2.2.0/Reference.json":{"$id":"http://asyncapi.com/definitions/2.2.0/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.2.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.2.0/operationTrait.json":{"$id":"http://asyncapi.com/definitions/2.2.0/operationTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.2.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.2.0/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.2.0/tag.json":{"$id":"http://asyncapi.com/definitions/2.2.0/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.2.0/externalDocs.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.2.0/message.json":{"$id":"http://asyncapi.com/definitions/2.2.0/message.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/Reference.json"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.2.0/message.json"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"payload":{},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.2.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.2.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/messageTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/messageTrait.json"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"http://asyncapi.com/definitions/2.2.0/correlationId.json":{"$id":"http://asyncapi.com/definitions/2.2.0/correlationId.json","type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"http://asyncapi.com/definitions/2.2.0/messageTrait.json":{"$id":"http://asyncapi.com/definitions/2.2.0/messageTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.2.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.2.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.2.0/components.json":{"$id":"http://asyncapi.com/definitions/2.2.0/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/2.2.0/schemas.json"},"messages":{"$ref":"http://asyncapi.com/definitions/2.2.0/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/SecurityScheme.json"}]}}},"parameters":{"$ref":"http://asyncapi.com/definitions/2.2.0/parameters.json"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/correlationId.json"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/operationTrait.json"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/messageTrait.json"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/bindingsObject.json"}}}},"http://asyncapi.com/definitions/2.2.0/schemas.json":{"$id":"http://asyncapi.com/definitions/2.2.0/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/2.2.0/messages.json":{"$id":"http://asyncapi.com/definitions/2.2.0/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/2.2.0/SecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.2.0/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/X509.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/HTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/oauth2Flows.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/openIdConnect.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/SaslSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.2.0/userPassword.json":{"$id":"http://asyncapi.com/definitions/2.2.0/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/apiKey.json":{"$id":"http://asyncapi.com/definitions/2.2.0/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/X509.json":{"$id":"http://asyncapi.com/definitions/2.2.0/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/symmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.2.0/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/asymmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.2.0/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/HTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.2.0/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.2.0/NonBearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.2.0/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/BearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.2.0/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/APIKeyHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.2.0/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/oauth2Flows.json":{"$id":"http://asyncapi.com/definitions/2.2.0/oauth2Flows.json","type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/oauth2Flow.json"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/oauth2Flow.json"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.2.0/oauth2Flow.json":{"$id":"http://asyncapi.com/definitions/2.2.0/oauth2Flow.json","type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"http://asyncapi.com/definitions/2.2.0/oauth2Scopes.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/oauth2Scopes.json":{"$id":"http://asyncapi.com/definitions/2.2.0/oauth2Scopes.json","type":"object","additionalProperties":{"type":"string"}},"http://asyncapi.com/definitions/2.2.0/openIdConnect.json":{"$id":"http://asyncapi.com/definitions/2.2.0/openIdConnect.json","type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/SaslSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.2.0/SaslSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.2.0/SaslPlainSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/SaslScramSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.2.0/SaslGssapiSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.2.0/SaslPlainSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.2.0/SaslPlainSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["plain"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/SaslScramSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.2.0/SaslScramSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["scramSha256","scramSha512"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/SaslGssapiSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.2.0/SaslGssapiSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["gssapi"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.2.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.2.0/parameters.json":{"$id":"http://asyncapi.com/definitions/2.2.0/parameters.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.2.0/parameter.json"},"description":"JSON objects describing re-usable channel parameters."}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},8722:e=>{"use strict";e.exports=JSON.parse('{"$id":"http://asyncapi.com/definitions/2.3.0/asyncapi.json","$schema":"http://json-schema.org/draft-07/schema","title":"AsyncAPI 2.3.0 schema.","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["2.3.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"http://asyncapi.com/definitions/2.3.0/info.json"},"servers":{"$ref":"http://asyncapi.com/definitions/2.3.0/servers.json"},"defaultContentType":{"type":"string"},"channels":{"$ref":"http://asyncapi.com/definitions/2.3.0/channels.json"},"components":{"$ref":"http://asyncapi.com/definitions/2.3.0/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.3.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.3.0/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/2.3.0/specificationExtension.json":{"$id":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/2.3.0/info.json":{"$id":"http://asyncapi.com/definitions/2.3.0/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/2.3.0/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/2.3.0/license.json"}}},"http://asyncapi.com/definitions/2.3.0/contact.json":{"$id":"http://asyncapi.com/definitions/2.3.0/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.3.0/license.json":{"$id":"http://asyncapi.com/definitions/2.3.0/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.3.0/servers.json":{"$id":"http://asyncapi.com/definitions/2.3.0/servers.json","description":"An object representing multiple servers.","type":"object","additionalProperties":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/server.json"}]}},"http://asyncapi.com/definitions/2.3.0/Reference.json":{"$id":"http://asyncapi.com/definitions/2.3.0/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.3.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.3.0/ReferenceObject.json":{"$id":"http://asyncapi.com/definitions/2.3.0/ReferenceObject.json","type":"string","format":"uri-reference"},"http://asyncapi.com/definitions/2.3.0/server.json":{"$id":"http://asyncapi.com/definitions/2.3.0/server.json","type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/2.3.0/serverVariables.json"},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.3.0/SecurityRequirement.json"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.3.0/serverVariables.json":{"$id":"http://asyncapi.com/definitions/2.3.0/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/serverVariable.json"}},"http://asyncapi.com/definitions/2.3.0/serverVariable.json":{"$id":"http://asyncapi.com/definitions/2.3.0/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"http://asyncapi.com/definitions/2.3.0/SecurityRequirement.json":{"$id":"http://asyncapi.com/definitions/2.3.0/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"http://asyncapi.com/definitions/2.3.0/bindingsObject.json":{"$id":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json","type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"anypointmq":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{},"ibmmq":{},"solace":{}}},"http://asyncapi.com/definitions/2.3.0/channels.json":{"$id":"http://asyncapi.com/definitions/2.3.0/channels.json","type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/channelItem.json"}},"http://asyncapi.com/definitions/2.3.0/channelItem.json":{"$id":"http://asyncapi.com/definitions/2.3.0/channelItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.3.0/ReferenceObject.json"},"parameters":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/parameter.json"}},"description":{"type":"string","description":"A description of the channel."},"servers":{"type":"array","description":"The names of the servers on which this channel is available. If absent or empty then this channel must be available on all servers.","items":{"type":"string"},"uniqueItems":true},"publish":{"$ref":"http://asyncapi.com/definitions/2.3.0/operation.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/2.3.0/operation.json"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.3.0/parameter.json":{"$id":"http://asyncapi.com/definitions/2.3.0/parameter.json","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"http://asyncapi.com/definitions/2.3.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.3.0/schema.json":{"$id":"http://asyncapi.com/definitions/2.3.0/schema.json","allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"}},"not":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},"default":{}},"propertyNames":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},"contains":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.3.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false}}}]},"http://json-schema.org/draft-07/schema":{"$id":"http://json-schema.org/draft-07/schema","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true},"http://asyncapi.com/definitions/2.3.0/externalDocs.json":{"$id":"http://asyncapi.com/definitions/2.3.0/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.3.0/operation.json":{"$id":"http://asyncapi.com/definitions/2.3.0/operation.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/operationTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/operationTrait.json"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.3.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.3.0/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"},"message":{"$ref":"http://asyncapi.com/definitions/2.3.0/message.json"}}},"http://asyncapi.com/definitions/2.3.0/operationTrait.json":{"$id":"http://asyncapi.com/definitions/2.3.0/operationTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.3.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.3.0/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.3.0/tag.json":{"$id":"http://asyncapi.com/definitions/2.3.0/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.3.0/externalDocs.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.3.0/message.json":{"$id":"http://asyncapi.com/definitions/2.3.0/message.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.3.0/message.json"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"payload":{},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.3.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.3.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/messageTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/messageTrait.json"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"http://asyncapi.com/definitions/2.3.0/correlationId.json":{"$id":"http://asyncapi.com/definitions/2.3.0/correlationId.json","type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"http://asyncapi.com/definitions/2.3.0/messageTrait.json":{"$id":"http://asyncapi.com/definitions/2.3.0/messageTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.3.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.3.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.3.0/components.json":{"$id":"http://asyncapi.com/definitions/2.3.0/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/2.3.0/schemas.json"},"servers":{"$ref":"http://asyncapi.com/definitions/2.3.0/servers.json"},"channels":{"$ref":"http://asyncapi.com/definitions/2.3.0/channels.json"},"messages":{"$ref":"http://asyncapi.com/definitions/2.3.0/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/SecurityScheme.json"}]}}},"parameters":{"$ref":"http://asyncapi.com/definitions/2.3.0/parameters.json"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/correlationId.json"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/operationTrait.json"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/messageTrait.json"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/bindingsObject.json"}}}},"http://asyncapi.com/definitions/2.3.0/schemas.json":{"$id":"http://asyncapi.com/definitions/2.3.0/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/2.3.0/messages.json":{"$id":"http://asyncapi.com/definitions/2.3.0/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/2.3.0/SecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.3.0/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/X509.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/HTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/oauth2Flows.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/openIdConnect.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/SaslSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.3.0/userPassword.json":{"$id":"http://asyncapi.com/definitions/2.3.0/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/apiKey.json":{"$id":"http://asyncapi.com/definitions/2.3.0/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/X509.json":{"$id":"http://asyncapi.com/definitions/2.3.0/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/symmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.3.0/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/asymmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.3.0/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/HTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.3.0/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.3.0/NonBearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.3.0/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/BearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.3.0/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/APIKeyHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.3.0/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/oauth2Flows.json":{"$id":"http://asyncapi.com/definitions/2.3.0/oauth2Flows.json","type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/oauth2Flow.json"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/oauth2Flow.json"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.3.0/oauth2Flow.json":{"$id":"http://asyncapi.com/definitions/2.3.0/oauth2Flow.json","type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"http://asyncapi.com/definitions/2.3.0/oauth2Scopes.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/oauth2Scopes.json":{"$id":"http://asyncapi.com/definitions/2.3.0/oauth2Scopes.json","type":"object","additionalProperties":{"type":"string"}},"http://asyncapi.com/definitions/2.3.0/openIdConnect.json":{"$id":"http://asyncapi.com/definitions/2.3.0/openIdConnect.json","type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/SaslSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.3.0/SaslSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.3.0/SaslPlainSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/SaslScramSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.3.0/SaslGssapiSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.3.0/SaslPlainSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.3.0/SaslPlainSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["plain"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/SaslScramSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.3.0/SaslScramSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["scramSha256","scramSha512"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/SaslGssapiSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.3.0/SaslGssapiSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["gssapi"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.3.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.3.0/parameters.json":{"$id":"http://asyncapi.com/definitions/2.3.0/parameters.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.3.0/parameter.json"},"description":"JSON objects describing re-usable channel parameters."}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},5771:e=>{"use strict";e.exports=JSON.parse('{"$id":"http://asyncapi.com/definitions/2.4.0/asyncapi.json","$schema":"http://json-schema.org/draft-07/schema","title":"AsyncAPI 2.4.0 schema.","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"asyncapi":{"type":"string","enum":["2.4.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"http://asyncapi.com/definitions/2.4.0/info.json"},"servers":{"$ref":"http://asyncapi.com/definitions/2.4.0/servers.json"},"defaultContentType":{"type":"string"},"channels":{"$ref":"http://asyncapi.com/definitions/2.4.0/channels.json"},"components":{"$ref":"http://asyncapi.com/definitions/2.4.0/components.json"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.4.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.4.0/externalDocs.json"}},"definitions":{"http://asyncapi.com/definitions/2.4.0/specificationExtension.json":{"$id":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json","description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"http://asyncapi.com/definitions/2.4.0/info.json":{"$id":"http://asyncapi.com/definitions/2.4.0/info.json","type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"http://asyncapi.com/definitions/2.4.0/contact.json"},"license":{"$ref":"http://asyncapi.com/definitions/2.4.0/license.json"}}},"http://asyncapi.com/definitions/2.4.0/contact.json":{"$id":"http://asyncapi.com/definitions/2.4.0/contact.json","type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.4.0/license.json":{"$id":"http://asyncapi.com/definitions/2.4.0/license.json","type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.4.0/servers.json":{"$id":"http://asyncapi.com/definitions/2.4.0/servers.json","description":"An object representing multiple servers.","type":"object","additionalProperties":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/server.json"}]}},"http://asyncapi.com/definitions/2.4.0/Reference.json":{"$id":"http://asyncapi.com/definitions/2.4.0/Reference.json","type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.4.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.4.0/ReferenceObject.json":{"$id":"http://asyncapi.com/definitions/2.4.0/ReferenceObject.json","type":"string","format":"uri-reference"},"http://asyncapi.com/definitions/2.4.0/server.json":{"$id":"http://asyncapi.com/definitions/2.4.0/server.json","type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"http://asyncapi.com/definitions/2.4.0/serverVariables.json"},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.4.0/SecurityRequirement.json"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.4.0/serverVariables.json":{"$id":"http://asyncapi.com/definitions/2.4.0/serverVariables.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/serverVariable.json"}},"http://asyncapi.com/definitions/2.4.0/serverVariable.json":{"$id":"http://asyncapi.com/definitions/2.4.0/serverVariable.json","type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"http://asyncapi.com/definitions/2.4.0/SecurityRequirement.json":{"$id":"http://asyncapi.com/definitions/2.4.0/SecurityRequirement.json","type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"http://asyncapi.com/definitions/2.4.0/bindingsObject.json":{"$id":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json","type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"anypointmq":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{},"ibmmq":{},"solace":{}}},"http://asyncapi.com/definitions/2.4.0/channels.json":{"$id":"http://asyncapi.com/definitions/2.4.0/channels.json","type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/channelItem.json"}},"http://asyncapi.com/definitions/2.4.0/channelItem.json":{"$id":"http://asyncapi.com/definitions/2.4.0/channelItem.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"$ref":{"$ref":"http://asyncapi.com/definitions/2.4.0/ReferenceObject.json"},"parameters":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/parameter.json"}},"description":{"type":"string","description":"A description of the channel."},"servers":{"type":"array","description":"The names of the servers on which this channel is available. If absent or empty then this channel must be available on all servers.","items":{"type":"string"},"uniqueItems":true},"publish":{"$ref":"http://asyncapi.com/definitions/2.4.0/operation.json"},"subscribe":{"$ref":"http://asyncapi.com/definitions/2.4.0/operation.json"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.4.0/parameter.json":{"$id":"http://asyncapi.com/definitions/2.4.0/parameter.json","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"http://asyncapi.com/definitions/2.4.0/ReferenceObject.json"}}},"http://asyncapi.com/definitions/2.4.0/schema.json":{"$id":"http://asyncapi.com/definitions/2.4.0/schema.json","allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"}},"not":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},"properties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},"default":{}},"propertyNames":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},"contains":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.4.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false}}}]},"http://json-schema.org/draft-07/schema":{"$id":"http://json-schema.org/draft-07/schema","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true},"http://asyncapi.com/definitions/2.4.0/externalDocs.json":{"$id":"http://asyncapi.com/definitions/2.4.0/externalDocs.json","type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.4.0/operation.json":{"$id":"http://asyncapi.com/definitions/2.4.0/operation.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/operationTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/operationTrait.json"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.4.0/SecurityRequirement.json"}},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.4.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.4.0/externalDocs.json"},"operationId":{"type":"string"},"bindings":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"},"message":{"$ref":"http://asyncapi.com/definitions/2.4.0/message.json"}}},"http://asyncapi.com/definitions/2.4.0/operationTrait.json":{"$id":"http://asyncapi.com/definitions/2.4.0/operationTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.4.0/tag.json"},"uniqueItems":true},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.4.0/externalDocs.json"},"operationId":{"type":"string"},"security":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.4.0/SecurityRequirement.json"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.4.0/tag.json":{"$id":"http://asyncapi.com/definitions/2.4.0/tag.json","type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.4.0/externalDocs.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.4.0/message.json":{"$id":"http://asyncapi.com/definitions/2.4.0/message.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.4.0/message.json"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"messageId":{"type":"string"},"payload":{},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.4.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.4.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/messageTrait.json"},{"type":"array","items":[{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/messageTrait.json"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"http://asyncapi.com/definitions/2.4.0/correlationId.json":{"$id":"http://asyncapi.com/definitions/2.4.0/correlationId.json","type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"http://asyncapi.com/definitions/2.4.0/messageTrait.json":{"$id":"http://asyncapi.com/definitions/2.4.0/messageTrait.json","type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},{"properties":{"type":{"const":"object"}}}]},"messageId":{"type":"string"},"correlationId":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/correlationId.json"}]},"tags":{"type":"array","items":{"$ref":"http://asyncapi.com/definitions/2.4.0/tag.json"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"http://asyncapi.com/definitions/2.4.0/externalDocs.json"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"}}},"http://asyncapi.com/definitions/2.4.0/components.json":{"$id":"http://asyncapi.com/definitions/2.4.0/components.json","type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"properties":{"schemas":{"$ref":"http://asyncapi.com/definitions/2.4.0/schemas.json"},"servers":{"$ref":"http://asyncapi.com/definitions/2.4.0/servers.json"},"channels":{"$ref":"http://asyncapi.com/definitions/2.4.0/channels.json"},"serverVariables":{"$ref":"http://asyncapi.com/definitions/2.4.0/serverVariables.json"},"messages":{"$ref":"http://asyncapi.com/definitions/2.4.0/messages.json"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/SecurityScheme.json"}]}}},"parameters":{"$ref":"http://asyncapi.com/definitions/2.4.0/parameters.json"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/Reference.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/correlationId.json"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/operationTrait.json"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/messageTrait.json"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/bindingsObject.json"}}}},"http://asyncapi.com/definitions/2.4.0/schemas.json":{"$id":"http://asyncapi.com/definitions/2.4.0/schemas.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/schema.json"},"description":"JSON objects describing schemas the API uses."},"http://asyncapi.com/definitions/2.4.0/messages.json":{"$id":"http://asyncapi.com/definitions/2.4.0/messages.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/message.json"},"description":"JSON objects describing the messages being consumed and produced by the API."},"http://asyncapi.com/definitions/2.4.0/SecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.4.0/SecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/userPassword.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/apiKey.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/X509.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/symmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/asymmetricEncryption.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/HTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/oauth2Flows.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/openIdConnect.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/SaslSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.4.0/userPassword.json":{"$id":"http://asyncapi.com/definitions/2.4.0/userPassword.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/apiKey.json":{"$id":"http://asyncapi.com/definitions/2.4.0/apiKey.json","type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/X509.json":{"$id":"http://asyncapi.com/definitions/2.4.0/X509.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/symmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.4.0/symmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/asymmetricEncryption.json":{"$id":"http://asyncapi.com/definitions/2.4.0/asymmetricEncryption.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/HTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.4.0/HTTPSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/NonBearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/BearerHTTPSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/APIKeyHTTPSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.4.0/NonBearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.4.0/NonBearerHTTPSecurityScheme.json","not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/BearerHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.4.0/BearerHTTPSecurityScheme.json","type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/APIKeyHTTPSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.4.0/APIKeyHTTPSecurityScheme.json","type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/oauth2Flows.json":{"$id":"http://asyncapi.com/definitions/2.4.0/oauth2Flows.json","type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/oauth2Flow.json"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/oauth2Flow.json"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/oauth2Flow.json"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}}},"http://asyncapi.com/definitions/2.4.0/oauth2Flow.json":{"$id":"http://asyncapi.com/definitions/2.4.0/oauth2Flow.json","type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"http://asyncapi.com/definitions/2.4.0/oauth2Scopes.json"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/oauth2Scopes.json":{"$id":"http://asyncapi.com/definitions/2.4.0/oauth2Scopes.json","type":"object","additionalProperties":{"type":"string"}},"http://asyncapi.com/definitions/2.4.0/openIdConnect.json":{"$id":"http://asyncapi.com/definitions/2.4.0/openIdConnect.json","type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/SaslSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.4.0/SaslSecurityScheme.json","oneOf":[{"$ref":"http://asyncapi.com/definitions/2.4.0/SaslPlainSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/SaslScramSecurityScheme.json"},{"$ref":"http://asyncapi.com/definitions/2.4.0/SaslGssapiSecurityScheme.json"}]},"http://asyncapi.com/definitions/2.4.0/SaslPlainSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.4.0/SaslPlainSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["plain"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/SaslScramSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.4.0/SaslScramSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["scramSha256","scramSha512"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/SaslGssapiSecurityScheme.json":{"$id":"http://asyncapi.com/definitions/2.4.0/SaslGssapiSecurityScheme.json","type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["gssapi"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"http://asyncapi.com/definitions/2.4.0/specificationExtension.json"}},"additionalProperties":false},"http://asyncapi.com/definitions/2.4.0/parameters.json":{"$id":"http://asyncapi.com/definitions/2.4.0/parameters.json","type":"object","additionalProperties":{"$ref":"http://asyncapi.com/definitions/2.4.0/parameter.json"},"description":"JSON objects describing re-usable channel parameters."}},"description":"!!Auto generated!! \\n Do not manually edit. "}')},7831:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"@stoplight/spectral-core/meta/extensions","$defs":{"Extends":{"$anchor":"extends","oneOf":[{"$id":"ruleset","$ref":"ruleset.schema#","errorMessage":"must be a valid ruleset"},{"type":"array","items":{"anyOf":[{"$ref":"ruleset"},{"type":"array","minItems":2,"additionalItems":false,"items":[{"$ref":"ruleset"},{"type":"string","enum":["off","recommended","all"],"errorMessage":"allowed types are \\"off\\", \\"recommended\\" and \\"all\\""}]}]}}],"errorMessage":"must be a valid ruleset"},"Format":{"$anchor":"format","x-spectral-runtime":"format","errorMessage":"must be a valid format"},"Function":{"$anchor":"function","x-spectral-runtime":"ruleset-function","type":"object","properties":{"function":true},"required":["function"]},"Functions":{"$anchor":"functions","not":{}},"FunctionsDir":{"$anchor":"functionsDir","not":{}}}}')},4051:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"@stoplight/spectral-core/meta/extensions","$defs":{"Extends":{"$anchor":"extends","oneOf":[{"type":"string"},{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"array","minItems":2,"additionalItems":false,"items":[{"type":"string"},{"enum":["all","recommended","off"],"errorMessage":"allowed types are \\"off\\", \\"recommended\\" and \\"all\\""}]}]}}]},"Format":{"$anchor":"format","enum":["oas2","oas3","oas3.0","oas3.1","asyncapi2","json-schema","json-schema-loose","json-schema-draft4","json-schema-draft6","json-schema-draft7","json-schema-draft-2019-09","json-schema-2019-09","json-schema-draft-2020-12","json-schema-2020-12"],"errorMessage":"must be a valid format"},"Functions":{"$anchor":"functions","type":"array","items":{"type":"string"}},"FunctionsDir":{"$anchor":"functionsDir","type":"string"},"Function":{"$anchor":"function","type":"object","properties":{"function":{"type":"string"}},"required":["function"]}}}')},3263:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"@stoplight/spectral-core/meta/rule.schema","$defs":{"Then":{"type":"object","allOf":[{"properties":{"field":{"type":"string"}}},{"$ref":"extensions#function"}]},"Severity":{"$ref":"shared#severity"}},"if":{"type":"object"},"then":{"type":"object","properties":{"description":{"type":"string"},"documentationUrl":{"type":"string","format":"url","errorMessage":"must be a valid URL"},"recommended":{"type":"boolean"},"given":{"$ref":"shared#given"},"resolved":{"type":"boolean"},"severity":{"$ref":"#/$defs/Severity"},"message":{"type":"string"},"tags":{"items":{"type":"string"},"type":"array"},"formats":{"$ref":"shared#formats"},"then":{"if":{"type":"array"},"then":{"type":"array","items":{"$ref":"#/$defs/Then"}},"else":{"$ref":"#/$defs/Then"}},"type":{"enum":["style","validation"],"type":"string","errorMessage":"allowed types are \\"style\\" and \\"validation\\""}},"required":["given","then"],"additionalProperties":false,"errorMessage":{"required":"the rule must have at least \\"given\\" and \\"then\\" properties"}},"else":{"oneOf":[{"$ref":"shared#/$defs/HumanReadableSeverity"},{"type":"boolean"}]}}')},8129:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"@stoplight/spectral-core/meta/ruleset.schema","type":"object","additionalProperties":false,"properties":{"documentationUrl":{"type":"string","format":"url","errorMessage":"must be a valid URL"},"description":{"type":"string"},"rules":{"type":"object","additionalProperties":{"$ref":"rule.schema#"}},"functions":{"$ref":"extensions#functions"},"functionsDir":{"$ref":"extensions#functionsDir"},"formats":{"$ref":"shared#formats"},"extends":{"$ref":"extensions#extends"},"parserOptions":{"type":"object","properties":{"duplicateKeys":{"$ref":"shared#severity"},"incompatibleValues":{"$ref":"shared#severity"}},"additionalProperties":false},"overrides":{"type":"array","minItems":1,"items":{"if":{"type":"object","properties":{"files":{"type":"array","minItems":1,"items":{"type":"string","minLength":1,"pattern":"^[^#]+#"},"errorMessage":"must be an non-empty array of glob patterns"}},"required":["files"]},"then":{"type":"object","properties":{"files":true,"rules":{"type":"object","additionalProperties":{"$ref":"shared#severity"},"errorMessage":{"enum":"must be a valid severity level"}}},"required":["rules"],"additionalProperties":false,"errorMessage":{"required":"must contain rules when JSON Pointers are defined","additionalProperties":"must not override any other property than rules when JSON Pointers are defined"}},"else":{"allOf":[{"type":"object","properties":{"files":{"type":"array","minItems":1,"items":{"type":"string","pattern":"[^#]","minLength":1},"errorMessage":"must be an non-empty array of glob patterns"}},"required":["files"],"errorMessage":{"type":"must be a override, i.e. { \\"files\\": [\\"v2/**/*.json\\"], \\"rules\\": {} }"}},{"type":"object","properties":{"formats":{"$ref":"shared#formats"},"extends":{"$ref":"#/properties/extends"},"rules":{"$ref":"#/properties/rules"},"parserOptions":{"$ref":"#/properties/parserOptions"},"aliases":{"$ref":"#/properties/aliases"}},"anyOf":[{"required":["extends"]},{"required":["rules"]}]}]}},"errorMessage":{"minItems":"must not be empty"}},"aliases":{"type":"object","propertyNames":{"pattern":"^[A-Za-z][A-Za-z0-9_-]*$","errorMessage":{"pattern":"to avoid confusion the name must match /^[A-Za-z][A-Za-z0-9_-]*$/ regular expression","minLength":"the name of an alias must not be empty"}},"additionalProperties":{"if":{"type":"object"},"then":{"type":"object","properties":{"description":{"type":"string"},"targets":{"type":"array","minItems":1,"items":{"type":"object","properties":{"formats":{"$ref":"shared#formats"},"given":{"$ref":"shared#arrayish-given"}},"required":["formats","given"],"errorMessage":"a valid target must contain given and non-empty formats"},"errorMessage":{"minItems":"targets must have at least a single alias definition"}}},"required":["targets"],"errorMessage":{"required":"targets must be present and have at least a single alias definition"}},"else":{"$ref":"shared#arrayish-given"}}}},"anyOf":[{"required":["extends"]},{"required":["rules"]},{"required":["overrides"]}]}')},1128:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"@stoplight/spectral-core/meta/shared","$defs":{"Formats":{"$anchor":"formats","type":"array","items":{"$ref":"extensions#format"},"errorMessage":"must be an array of formats"},"DiagnosticSeverity":{"enum":[-1,0,1,2,3]},"HumanReadableSeverity":{"enum":["error","warn","info","hint","off"]},"Severity":{"$anchor":"severity","oneOf":[{"$ref":"#/$defs/DiagnosticSeverity"},{"$ref":"#/$defs/HumanReadableSeverity"}],"errorMessage":"the value has to be one of: 0, 1, 2, 3 or \\"error\\", \\"warn\\", \\"info\\", \\"hint\\", \\"off\\""},"Given":{"$anchor":"given","if":{"type":"array"},"then":{"$anchor":"arrayish-given","type":"array","items":{"$ref":"path-expression"},"minItems":1,"errorMessage":{"minItems":"must be a non-empty array of expressions"}},"else":{"$ref":"path-expression"}},"PathExpression":{"$id":"path-expression","if":{"type":"string"},"then":{"type":"string","if":{"pattern":"^#"},"then":{"x-spectral-runtime":"alias"},"else":{"pattern":"^\\\\$","errorMessage":"must be a valid JSON Path expression or a reference to the existing Alias optionally paired with a JSON Path expression subset"}},"else":{"not":{},"errorMessage":"must be a valid JSON Path expression or a reference to the existing Alias optionally paired with a JSON Path expression subset"}}}}')},9081:e=>{"use strict";e.exports=JSON.parse('{"$id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-07/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string","format":"uri"},"$schema":{"type":"string","format":"uri"},"title":{"type":"string"},"description":{"type":"string"},"deprecationMessage":{"type":"string","description":"Non-standard: deprecation message for a property, if it is deprecated"},"default":{},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":{}}')},2165:e=>{"use strict";e.exports=JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-04/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string","format":"uri"},"$schema":{"type":"string","format":"uri"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}}')},5610:e=>{"use strict";e.exports=JSON.parse('{"title":"AsyncAPI 2.0.0 schema.","$schema":"http://json-schema.org/draft-07/schema#","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"asyncapi":{"type":"string","enum":["2.0.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"#/definitions/info"},"servers":{"type":"object","additionalProperties":{"$ref":"#/definitions/server"}},"defaultContentType":{"type":"string"},"channels":{"$ref":"#/definitions/channels"},"components":{"$ref":"#/definitions/components"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"definitions":{"Reference":{"type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"ReferenceObject":{"type":"string","format":"uri-reference"},"info":{"type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"#/definitions/contact"},"license":{"$ref":"#/definitions/license"}}},"contact":{"type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"license":{"type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"server":{"type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"#/definitions/serverVariables"},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"serverVariables":{"type":"object","additionalProperties":{"$ref":"#/definitions/serverVariable"}},"serverVariable":{"type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"channels":{"type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"#/definitions/channelItem"}},"components":{"type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemas":{"$ref":"#/definitions/schemas"},"messages":{"$ref":"#/definitions/messages"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/SecurityScheme"}]}}},"parameters":{"$ref":"#/definitions/parameters"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/operationTrait"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/messageTrait"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}}}},"schemas":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"description":"JSON objects describing schemas the API uses."},"messages":{"type":"object","additionalProperties":{"$ref":"#/definitions/message"},"description":"JSON objects describing the messages being consumed and produced by the API."},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"},"description":"JSON objects describing re-usable channel parameters."},"schema":{"allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"not":{"$ref":"#/definitions/schema"},"properties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"propertyNames":{"$ref":"#/definitions/schema"},"contains":{"$ref":"#/definitions/schema"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false}}}]},"externalDocs":{"type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"channelItem":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"}},"description":{"type":"string","description":"A description of the channel."},"publish":{"$ref":"#/definitions/operation"},"subscribe":{"$ref":"#/definitions/operation"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"parameter":{"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"#/definitions/schema"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"operation":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"bindings":{"$ref":"#/definitions/bindingsObject"},"message":{"$ref":"#/definitions/message"}}},"message":{"oneOf":[{"$ref":"#/definitions/Reference"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"#/definitions/message"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"payload":{},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"#/definitions/bindingsObject"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"bindingsObject":{"type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{}}},"correlationId":{"type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"specificationExtension":{"description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"tag":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"operationTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"messageTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"SecurityScheme":{"oneOf":[{"$ref":"#/definitions/userPassword"},{"$ref":"#/definitions/apiKey"},{"$ref":"#/definitions/X509"},{"$ref":"#/definitions/symmetricEncryption"},{"$ref":"#/definitions/asymmetricEncryption"},{"$ref":"#/definitions/HTTPSecurityScheme"},{"$ref":"#/definitions/oauth2Flows"},{"$ref":"#/definitions/openIdConnect"}]},"userPassword":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"apiKey":{"type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"X509":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"symmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"asymmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"HTTPSecurityScheme":{"oneOf":[{"$ref":"#/definitions/NonBearerHTTPSecurityScheme"},{"$ref":"#/definitions/BearerHTTPSecurityScheme"},{"$ref":"#/definitions/APIKeyHTTPSecurityScheme"}]},"NonBearerHTTPSecurityScheme":{"not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"BearerHTTPSecurityScheme":{"type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"APIKeyHTTPSecurityScheme":{"type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Flows":{"type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"oauth2Flow":{"type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"#/definitions/oauth2Scopes"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Scopes":{"type":"object","additionalProperties":{"type":"string"}},"openIdConnect":{"type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SecurityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}}}}')},925:e=>{"use strict";e.exports=JSON.parse('{"title":"AsyncAPI 2.1.0 schema.","$schema":"http://json-schema.org/draft-07/schema#","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"asyncapi":{"type":"string","enum":["2.1.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"#/definitions/info"},"servers":{"type":"object","additionalProperties":{"$ref":"#/definitions/server"}},"defaultContentType":{"type":"string"},"channels":{"$ref":"#/definitions/channels"},"components":{"$ref":"#/definitions/components"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"definitions":{"Reference":{"type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"ReferenceObject":{"type":"string","format":"uri-reference"},"info":{"type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"#/definitions/contact"},"license":{"$ref":"#/definitions/license"}}},"contact":{"type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"license":{"type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"server":{"type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"#/definitions/serverVariables"},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"serverVariables":{"type":"object","additionalProperties":{"$ref":"#/definitions/serverVariable"}},"serverVariable":{"type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"channels":{"type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"#/definitions/channelItem"}},"components":{"type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemas":{"$ref":"#/definitions/schemas"},"messages":{"$ref":"#/definitions/messages"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/SecurityScheme"}]}}},"parameters":{"$ref":"#/definitions/parameters"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/operationTrait"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/messageTrait"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}}}},"schemas":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"description":"JSON objects describing schemas the API uses."},"messages":{"type":"object","additionalProperties":{"$ref":"#/definitions/message"},"description":"JSON objects describing the messages being consumed and produced by the API."},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"},"description":"JSON objects describing re-usable channel parameters."},"schema":{"allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"not":{"$ref":"#/definitions/schema"},"properties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"propertyNames":{"$ref":"#/definitions/schema"},"contains":{"$ref":"#/definitions/schema"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false}}}]},"externalDocs":{"type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"channelItem":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"}},"description":{"type":"string","description":"A description of the channel."},"publish":{"$ref":"#/definitions/operation"},"subscribe":{"$ref":"#/definitions/operation"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"parameter":{"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"#/definitions/schema"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"operation":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"bindings":{"$ref":"#/definitions/bindingsObject"},"message":{"$ref":"#/definitions/message"}}},"message":{"oneOf":[{"$ref":"#/definitions/Reference"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"#/definitions/message"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"payload":{},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"#/definitions/bindingsObject"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"bindingsObject":{"type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{},"ibmmq":{}}},"correlationId":{"type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"specificationExtension":{"description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"tag":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"operationTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"messageTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"SecurityScheme":{"oneOf":[{"$ref":"#/definitions/userPassword"},{"$ref":"#/definitions/apiKey"},{"$ref":"#/definitions/X509"},{"$ref":"#/definitions/symmetricEncryption"},{"$ref":"#/definitions/asymmetricEncryption"},{"$ref":"#/definitions/HTTPSecurityScheme"},{"$ref":"#/definitions/oauth2Flows"},{"$ref":"#/definitions/openIdConnect"},{"$ref":"#/definitions/SaslSecurityScheme"}]},"userPassword":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"apiKey":{"type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"X509":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"symmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"asymmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"HTTPSecurityScheme":{"oneOf":[{"$ref":"#/definitions/NonBearerHTTPSecurityScheme"},{"$ref":"#/definitions/BearerHTTPSecurityScheme"},{"$ref":"#/definitions/APIKeyHTTPSecurityScheme"}]},"NonBearerHTTPSecurityScheme":{"not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"BearerHTTPSecurityScheme":{"type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"APIKeyHTTPSecurityScheme":{"type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslSecurityScheme":{"oneOf":[{"$ref":"#/definitions/SaslPlainSecurityScheme"},{"$ref":"#/definitions/SaslScramSecurityScheme"},{"$ref":"#/definitions/SaslGssapiSecurityScheme"}]},"SaslPlainSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["plain"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslScramSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["scramSha256","scramSha512"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslGssapiSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["gssapi"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Flows":{"type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"oauth2Flow":{"type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"#/definitions/oauth2Scopes"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Scopes":{"type":"object","additionalProperties":{"type":"string"}},"openIdConnect":{"type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SecurityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}}}}')},7674:e=>{"use strict";e.exports=JSON.parse('{"title":"AsyncAPI 2.2.0 schema.","$schema":"http://json-schema.org/draft-07/schema#","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"asyncapi":{"type":"string","enum":["2.2.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"#/definitions/info"},"servers":{"type":"object","additionalProperties":{"$ref":"#/definitions/server"}},"defaultContentType":{"type":"string"},"channels":{"$ref":"#/definitions/channels"},"components":{"$ref":"#/definitions/components"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"definitions":{"Reference":{"type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"ReferenceObject":{"type":"string","format":"uri-reference"},"info":{"type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"#/definitions/contact"},"license":{"$ref":"#/definitions/license"}}},"contact":{"type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"license":{"type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"server":{"type":"object","description":"An object representing a Server.","required":["url","protocol"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"#/definitions/serverVariables"},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"serverVariables":{"type":"object","additionalProperties":{"$ref":"#/definitions/serverVariable"}},"serverVariable":{"type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"channels":{"type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"#/definitions/channelItem"}},"components":{"type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemas":{"$ref":"#/definitions/schemas"},"messages":{"$ref":"#/definitions/messages"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/SecurityScheme"}]}}},"parameters":{"$ref":"#/definitions/parameters"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/operationTrait"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/messageTrait"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}}}},"schemas":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"description":"JSON objects describing schemas the API uses."},"messages":{"type":"object","additionalProperties":{"$ref":"#/definitions/message"},"description":"JSON objects describing the messages being consumed and produced by the API."},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"},"description":"JSON objects describing re-usable channel parameters."},"schema":{"allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"not":{"$ref":"#/definitions/schema"},"properties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"propertyNames":{"$ref":"#/definitions/schema"},"contains":{"$ref":"#/definitions/schema"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false}}}]},"externalDocs":{"type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"channelItem":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"}},"description":{"type":"string","description":"A description of the channel."},"servers":{"type":"array","description":"The names of the servers on which this channel is available. If absent or empty then this channel must be available on all servers.","items":{"type":"string"},"uniqueItems":true},"publish":{"$ref":"#/definitions/operation"},"subscribe":{"$ref":"#/definitions/operation"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"parameter":{"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"#/definitions/schema"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"operation":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"bindings":{"$ref":"#/definitions/bindingsObject"},"message":{"$ref":"#/definitions/message"}}},"message":{"oneOf":[{"$ref":"#/definitions/Reference"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"#/definitions/message"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"payload":{},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"#/definitions/bindingsObject"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"bindingsObject":{"type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"anypointmq":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{},"ibmmq":{}}},"correlationId":{"type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"specificationExtension":{"description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"tag":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"operationTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"messageTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"SecurityScheme":{"oneOf":[{"$ref":"#/definitions/userPassword"},{"$ref":"#/definitions/apiKey"},{"$ref":"#/definitions/X509"},{"$ref":"#/definitions/symmetricEncryption"},{"$ref":"#/definitions/asymmetricEncryption"},{"$ref":"#/definitions/HTTPSecurityScheme"},{"$ref":"#/definitions/oauth2Flows"},{"$ref":"#/definitions/openIdConnect"},{"$ref":"#/definitions/SaslSecurityScheme"}]},"userPassword":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"apiKey":{"type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"X509":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"symmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"asymmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"HTTPSecurityScheme":{"oneOf":[{"$ref":"#/definitions/NonBearerHTTPSecurityScheme"},{"$ref":"#/definitions/BearerHTTPSecurityScheme"},{"$ref":"#/definitions/APIKeyHTTPSecurityScheme"}]},"NonBearerHTTPSecurityScheme":{"not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"BearerHTTPSecurityScheme":{"type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"APIKeyHTTPSecurityScheme":{"type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslSecurityScheme":{"oneOf":[{"$ref":"#/definitions/SaslPlainSecurityScheme"},{"$ref":"#/definitions/SaslScramSecurityScheme"},{"$ref":"#/definitions/SaslGssapiSecurityScheme"}]},"SaslPlainSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["plain"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslScramSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["scramSha256","scramSha512"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslGssapiSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["gssapi"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Flows":{"type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"oauth2Flow":{"type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"#/definitions/oauth2Scopes"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Scopes":{"type":"object","additionalProperties":{"type":"string"}},"openIdConnect":{"type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SecurityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}}}}')},8198:e=>{"use strict";e.exports=JSON.parse('{"title":"AsyncAPI 2.3.0 schema.","$schema":"http://json-schema.org/draft-07/schema#","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"asyncapi":{"type":"string","enum":["2.3.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"#/definitions/info"},"servers":{"$ref":"#/definitions/servers"},"defaultContentType":{"type":"string"},"channels":{"$ref":"#/definitions/channels"},"components":{"$ref":"#/definitions/components"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"definitions":{"Reference":{"type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"ReferenceObject":{"type":"string","format":"uri-reference"},"info":{"type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"#/definitions/contact"},"license":{"$ref":"#/definitions/license"}}},"contact":{"type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"license":{"type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"server":{"type":"object","description":"An object representing a Server.","anyOf":[{"required":["url","protocol"]},{"required":["$ref"]}],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"},"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"#/definitions/serverVariables"},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"servers":{"type":"object","additionalProperties":{"$ref":"#/definitions/server"}},"serverVariables":{"type":"object","additionalProperties":{"$ref":"#/definitions/serverVariable"}},"serverVariable":{"type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"channels":{"type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"#/definitions/channelItem"}},"components":{"type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemas":{"$ref":"#/definitions/schemas"},"servers":{"$ref":"#/definitions/servers"},"channels":{"$ref":"#/definitions/channels"},"messages":{"$ref":"#/definitions/messages"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/SecurityScheme"}]}}},"parameters":{"$ref":"#/definitions/parameters"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/operationTrait"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/messageTrait"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}}}},"schemas":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"description":"JSON objects describing schemas the API uses."},"messages":{"type":"object","additionalProperties":{"$ref":"#/definitions/message"},"description":"JSON objects describing the messages being consumed and produced by the API."},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"},"description":"JSON objects describing re-usable channel parameters."},"schema":{"allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"not":{"$ref":"#/definitions/schema"},"properties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"propertyNames":{"$ref":"#/definitions/schema"},"contains":{"$ref":"#/definitions/schema"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false}}}]},"externalDocs":{"type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"channelItem":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"}},"description":{"type":"string","description":"A description of the channel."},"servers":{"type":"array","description":"The names of the servers on which this channel is available. If absent or empty then this channel must be available on all servers.","items":{"type":"string"},"uniqueItems":true},"publish":{"$ref":"#/definitions/operation"},"subscribe":{"$ref":"#/definitions/operation"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"parameter":{"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"#/definitions/schema"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"operation":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"bindings":{"$ref":"#/definitions/bindingsObject"},"message":{"$ref":"#/definitions/message"}}},"message":{"oneOf":[{"$ref":"#/definitions/Reference"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"#/definitions/message"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"payload":{},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"#/definitions/bindingsObject"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"bindingsObject":{"type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"anypointmq":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{},"ibmmq":{},"solace":{}}},"correlationId":{"type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"specificationExtension":{"description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"tag":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"operationTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"messageTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"SecurityScheme":{"oneOf":[{"$ref":"#/definitions/userPassword"},{"$ref":"#/definitions/apiKey"},{"$ref":"#/definitions/X509"},{"$ref":"#/definitions/symmetricEncryption"},{"$ref":"#/definitions/asymmetricEncryption"},{"$ref":"#/definitions/HTTPSecurityScheme"},{"$ref":"#/definitions/oauth2Flows"},{"$ref":"#/definitions/openIdConnect"},{"$ref":"#/definitions/SaslSecurityScheme"}]},"userPassword":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"apiKey":{"type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"X509":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"symmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"asymmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"HTTPSecurityScheme":{"oneOf":[{"$ref":"#/definitions/NonBearerHTTPSecurityScheme"},{"$ref":"#/definitions/BearerHTTPSecurityScheme"},{"$ref":"#/definitions/APIKeyHTTPSecurityScheme"}]},"NonBearerHTTPSecurityScheme":{"not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"BearerHTTPSecurityScheme":{"type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"APIKeyHTTPSecurityScheme":{"type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslSecurityScheme":{"oneOf":[{"$ref":"#/definitions/SaslPlainSecurityScheme"},{"$ref":"#/definitions/SaslScramSecurityScheme"},{"$ref":"#/definitions/SaslGssapiSecurityScheme"}]},"SaslPlainSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["plain"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslScramSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["scramSha256","scramSha512"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslGssapiSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["gssapi"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Flows":{"type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"oauth2Flow":{"type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"#/definitions/oauth2Scopes"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Scopes":{"type":"object","additionalProperties":{"type":"string"}},"openIdConnect":{"type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SecurityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}}}}')},7474:e=>{"use strict";e.exports=JSON.parse('{"title":"AsyncAPI 2.4.0 schema.","$schema":"http://json-schema.org/draft-07/schema#","type":"object","required":["asyncapi","info","channels"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"asyncapi":{"type":"string","enum":["2.4.0"],"description":"The AsyncAPI specification version of this document."},"id":{"type":"string","description":"A unique id representing the application.","format":"uri"},"info":{"$ref":"#/definitions/info"},"servers":{"$ref":"#/definitions/servers"},"defaultContentType":{"type":"string"},"channels":{"$ref":"#/definitions/channels"},"components":{"$ref":"#/definitions/components"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"definitions":{"Reference":{"type":"object","required":["$ref"],"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"ReferenceObject":{"type":"string","format":"uri-reference"},"info":{"type":"object","description":"General information about the API.","required":["version","title"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"title":{"type":"string","description":"A unique and precise title of the API."},"version":{"type":"string","description":"A semantic version number of the API."},"description":{"type":"string","description":"A longer description of the API. Should be different from the title. CommonMark is allowed."},"termsOfService":{"type":"string","description":"A URL to the Terms of Service for the API. MUST be in the format of a URL.","format":"uri"},"contact":{"$ref":"#/definitions/contact"},"license":{"$ref":"#/definitions/license"}}},"contact":{"type":"object","description":"Contact information for the owners of the API.","additionalProperties":false,"properties":{"name":{"type":"string","description":"The identifying name of the contact person/organization."},"url":{"type":"string","description":"The URL pointing to the contact information.","format":"uri"},"email":{"type":"string","description":"The email address of the contact person/organization.","format":"email"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"license":{"type":"object","required":["name"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the license type. It\'s encouraged to use an OSI compatible license."},"url":{"type":"string","description":"The URL pointing to the license.","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"server":{"type":"object","description":"An object representing a Server.","anyOf":[{"required":["url","protocol"]},{"required":["$ref"]}],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"},"url":{"type":"string"},"description":{"type":"string"},"protocol":{"type":"string","description":"The transfer protocol."},"protocolVersion":{"type":"string"},"variables":{"$ref":"#/definitions/serverVariables"},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"servers":{"type":"object","additionalProperties":{"$ref":"#/definitions/server"}},"serverVariables":{"type":"object","additionalProperties":{"$ref":"#/definitions/serverVariable"}},"serverVariable":{"type":"object","description":"An object representing a Server Variable for server URL template substitution.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"enum":{"type":"array","items":{"type":"string"},"uniqueItems":true},"default":{"type":"string"},"description":{"type":"string"},"examples":{"type":"array","items":{"type":"string"}}}},"channels":{"type":"object","propertyNames":{"type":"string","format":"uri-template","minLength":1},"additionalProperties":{"$ref":"#/definitions/channelItem"}},"components":{"type":"object","description":"An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemas":{"$ref":"#/definitions/schemas"},"servers":{"$ref":"#/definitions/servers"},"serverVariables":{"$ref":"#/definitions/serverVariables"},"channels":{"$ref":"#/definitions/channels"},"messages":{"$ref":"#/definitions/messages"},"securitySchemes":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/SecurityScheme"}]}}},"parameters":{"$ref":"#/definitions/parameters"},"correlationIds":{"type":"object","patternProperties":{"^[\\\\w\\\\d\\\\.\\\\-_]+$":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]}}},"operationTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/operationTrait"}},"messageTraits":{"type":"object","additionalProperties":{"$ref":"#/definitions/messageTrait"}},"serverBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"channelBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"operationBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}},"messageBindings":{"type":"object","additionalProperties":{"$ref":"#/definitions/bindingsObject"}}}},"schemas":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"description":"JSON objects describing schemas the API uses."},"messages":{"type":"object","additionalProperties":{"$ref":"#/definitions/message"},"description":"JSON objects describing the messages being consumed and produced by the API."},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"},"description":"JSON objects describing re-usable channel parameters."},"schema":{"allOf":[{"$ref":"http://json-schema.org/draft-07/schema#"},{"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"additionalProperties":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"boolean"}],"default":{}},"items":{"anyOf":[{"$ref":"#/definitions/schema"},{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}}],"default":{}},"allOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"oneOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"anyOf":{"type":"array","minItems":1,"items":{"$ref":"#/definitions/schema"}},"not":{"$ref":"#/definitions/schema"},"properties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#/definitions/schema"},"default":{}},"propertyNames":{"$ref":"#/definitions/schema"},"contains":{"$ref":"#/definitions/schema"},"discriminator":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false}}}]},"externalDocs":{"type":"object","additionalProperties":false,"description":"information about external documentation","required":["url"],"properties":{"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"channelItem":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"$ref":{"$ref":"#/definitions/ReferenceObject"},"parameters":{"type":"object","additionalProperties":{"$ref":"#/definitions/parameter"}},"description":{"type":"string","description":"A description of the channel."},"servers":{"type":"array","description":"The names of the servers on which this channel is available. If absent or empty then this channel must be available on all servers.","items":{"type":"string"},"uniqueItems":true},"publish":{"$ref":"#/definitions/operation"},"subscribe":{"$ref":"#/definitions/operation"},"deprecated":{"type":"boolean","default":false},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"parameter":{"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},"schema":{"$ref":"#/definitions/schema"},"location":{"type":"string","description":"A runtime expression that specifies the location of the parameter value","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"},"$ref":{"$ref":"#/definitions/ReferenceObject"}}},"operation":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/operationTrait"}]},{"type":"object","additionalItems":true}]}]}},"summary":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"bindings":{"$ref":"#/definitions/bindingsObject"},"message":{"$ref":"#/definitions/message"}}},"message":{"oneOf":[{"$ref":"#/definitions/Reference"},{"oneOf":[{"type":"object","required":["oneOf"],"additionalProperties":false,"properties":{"oneOf":{"type":"array","items":{"$ref":"#/definitions/message"}}}},{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"messageId":{"type":"string"},"payload":{},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object","additionalProperties":false,"anyOf":[{"required":["payload"]},{"required":["headers"]}],"properties":{"name":{"type":"string","description":"Machine readable name of the message example."},"summary":{"type":"string","description":"A brief summary of the message example."},"headers":{"type":"object"},"payload":{}}}},"bindings":{"$ref":"#/definitions/bindingsObject"},"traits":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"},{"type":"array","items":[{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/messageTrait"}]},{"type":"object","additionalItems":true}]}]}}}}]}]},"bindingsObject":{"type":"object","additionalProperties":true,"properties":{"http":{},"ws":{},"amqp":{},"amqp1":{},"mqtt":{},"mqtt5":{},"kafka":{},"anypointmq":{},"nats":{},"jms":{},"sns":{},"sqs":{},"stomp":{},"redis":{},"ibmmq":{},"solace":{}}},"correlationId":{"type":"object","required":["location"],"additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"description":{"type":"string","description":"A optional description of the correlation ID. GitHub Flavored Markdown is allowed."},"location":{"type":"string","description":"A runtime expression that specifies the location of the correlation ID","pattern":"^\\\\$message\\\\.(header|payload)#(\\\\/(([^\\\\/~])|(~[01]))*)*"}}},"specificationExtension":{"description":"Any property starting with x- is valid.","additionalProperties":true,"additionalItems":true},"tag":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string"},"description":{"type":"string"},"externalDocs":{"$ref":"#/definitions/externalDocs"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"operationTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"summary":{"type":"string"},"description":{"type":"string"},"security":{"type":"array","items":{"$ref":"#/definitions/SecurityRequirement"}},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"externalDocs":{"$ref":"#/definitions/externalDocs"},"operationId":{"type":"string"},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"messageTrait":{"type":"object","additionalProperties":false,"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"properties":{"schemaFormat":{"type":"string"},"contentType":{"type":"string"},"headers":{"allOf":[{"$ref":"#/definitions/schema"},{"properties":{"type":{"const":"object"}}}]},"messageId":{"type":"string"},"correlationId":{"oneOf":[{"$ref":"#/definitions/Reference"},{"$ref":"#/definitions/correlationId"}]},"tags":{"type":"array","items":{"$ref":"#/definitions/tag"},"uniqueItems":true},"summary":{"type":"string","description":"A brief summary of the message."},"name":{"type":"string","description":"Name of the message."},"title":{"type":"string","description":"A human-friendly title for the message."},"description":{"type":"string","description":"A longer description of the message. CommonMark is allowed."},"externalDocs":{"$ref":"#/definitions/externalDocs"},"deprecated":{"type":"boolean","default":false},"examples":{"type":"array","items":{"type":"object"}},"bindings":{"$ref":"#/definitions/bindingsObject"}}},"SecurityScheme":{"oneOf":[{"$ref":"#/definitions/userPassword"},{"$ref":"#/definitions/apiKey"},{"$ref":"#/definitions/X509"},{"$ref":"#/definitions/symmetricEncryption"},{"$ref":"#/definitions/asymmetricEncryption"},{"$ref":"#/definitions/HTTPSecurityScheme"},{"$ref":"#/definitions/oauth2Flows"},{"$ref":"#/definitions/openIdConnect"},{"$ref":"#/definitions/SaslSecurityScheme"}]},"userPassword":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["userPassword"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"apiKey":{"type":"object","required":["type","in"],"properties":{"type":{"type":"string","enum":["apiKey"]},"in":{"type":"string","enum":["user","password"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"X509":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["X509"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"symmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["symmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"asymmetricEncryption":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["asymmetricEncryption"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"HTTPSecurityScheme":{"oneOf":[{"$ref":"#/definitions/NonBearerHTTPSecurityScheme"},{"$ref":"#/definitions/BearerHTTPSecurityScheme"},{"$ref":"#/definitions/APIKeyHTTPSecurityScheme"}]},"NonBearerHTTPSecurityScheme":{"not":{"type":"object","properties":{"scheme":{"type":"string","enum":["bearer"]}}},"type":"object","required":["scheme","type"],"properties":{"scheme":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["http"]}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"BearerHTTPSecurityScheme":{"type":"object","required":["type","scheme"],"properties":{"scheme":{"type":"string","enum":["bearer"]},"bearerFormat":{"type":"string"},"type":{"type":"string","enum":["http"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"APIKeyHTTPSecurityScheme":{"type":"object","required":["type","name","in"],"properties":{"type":{"type":"string","enum":["httpApiKey"]},"name":{"type":"string"},"in":{"type":"string","enum":["header","query","cookie"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslSecurityScheme":{"oneOf":[{"$ref":"#/definitions/SaslPlainSecurityScheme"},{"$ref":"#/definitions/SaslScramSecurityScheme"},{"$ref":"#/definitions/SaslGssapiSecurityScheme"}]},"SaslPlainSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["plain"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslScramSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["scramSha256","scramSha512"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SaslGssapiSecurityScheme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["gssapi"]},"description":{"type":"string"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Flows":{"type":"object","required":["type","flows"],"properties":{"type":{"type":"string","enum":["oauth2"]},"description":{"type":"string"},"flows":{"type":"object","properties":{"implicit":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","scopes"]},{"not":{"required":["tokenUrl"]}}]},"password":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"clientCredentials":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["tokenUrl","scopes"]},{"not":{"required":["authorizationUrl"]}}]},"authorizationCode":{"allOf":[{"$ref":"#/definitions/oauth2Flow"},{"required":["authorizationUrl","tokenUrl","scopes"]}]}},"additionalProperties":false}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}}},"oauth2Flow":{"type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"tokenUrl":{"type":"string","format":"uri"},"refreshUrl":{"type":"string","format":"uri"},"scopes":{"$ref":"#/definitions/oauth2Scopes"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"oauth2Scopes":{"type":"object","additionalProperties":{"type":"string"}},"openIdConnect":{"type":"object","required":["type","openIdConnectUrl"],"properties":{"type":{"type":"string","enum":["openIdConnect"]},"description":{"type":"string"},"openIdConnectUrl":{"type":"string","format":"uri"}},"patternProperties":{"^x-[\\\\w\\\\d\\\\.\\\\x2d_]+$":{"$ref":"#/definitions/specificationExtension"}},"additionalProperties":false},"SecurityRequirement":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}}}}')},4775:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},8161:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/applicator","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/applicator":true},"$recursiveAnchor":true,"title":"Applicator vocabulary meta-schema","type":["object","boolean"],"properties":{"additionalItems":{"$recursiveRef":"#"},"unevaluatedItems":{"$recursiveRef":"#"},"items":{"anyOf":[{"$recursiveRef":"#"},{"$ref":"#/$defs/schemaArray"}]},"contains":{"$recursiveRef":"#"},"additionalProperties":{"$recursiveRef":"#"},"unevaluatedProperties":{"$recursiveRef":"#"},"properties":{"type":"object","additionalProperties":{"$recursiveRef":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$recursiveRef":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependentSchemas":{"type":"object","additionalProperties":{"$recursiveRef":"#"}},"propertyNames":{"$recursiveRef":"#"},"if":{"$recursiveRef":"#"},"then":{"$recursiveRef":"#"},"else":{"$recursiveRef":"#"},"allOf":{"$ref":"#/$defs/schemaArray"},"anyOf":{"$ref":"#/$defs/schemaArray"},"oneOf":{"$ref":"#/$defs/schemaArray"},"not":{"$recursiveRef":"#"}},"$defs":{"schemaArray":{"type":"array","minItems":1,"items":{"$recursiveRef":"#"}}}}')},6422:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/content","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/content":true},"$recursiveAnchor":true,"title":"Content vocabulary meta-schema","type":["object","boolean"],"properties":{"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"contentSchema":{"$recursiveRef":"#"}}}')},4052:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/core","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/core":true},"$recursiveAnchor":true,"title":"Core vocabulary meta-schema","type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference","$comment":"Non-empty fragments not allowed.","pattern":"^[^#]*#?$"},"$schema":{"type":"string","format":"uri"},"$anchor":{"type":"string","pattern":"^[A-Za-z][-A-Za-z0-9.:_]*$"},"$ref":{"type":"string","format":"uri-reference"},"$recursiveRef":{"type":"string","format":"uri-reference"},"$recursiveAnchor":{"type":"boolean","default":false},"$vocabulary":{"type":"object","propertyNames":{"type":"string","format":"uri"},"additionalProperties":{"type":"boolean"}},"$comment":{"type":"string"},"$defs":{"type":"object","additionalProperties":{"$recursiveRef":"#"},"default":{}}}}')},877:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/format","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/format":true},"$recursiveAnchor":true,"title":"Format vocabulary meta-schema","type":["object","boolean"],"properties":{"format":{"type":"string"}}}')},5032:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/meta-data","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/meta-data":true},"$recursiveAnchor":true,"title":"Meta-data vocabulary meta-schema","type":["object","boolean"],"properties":{"title":{"type":"string"},"description":{"type":"string"},"default":true,"deprecated":{"type":"boolean","default":false},"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true}}}')},2374:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/meta/validation","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/validation":true},"$recursiveAnchor":true,"title":"Validation vocabulary meta-schema","type":["object","boolean"],"properties":{"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/$defs/nonNegativeInteger"},"minLength":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"maxItems":{"$ref":"#/$defs/nonNegativeInteger"},"minItems":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxContains":{"$ref":"#/$defs/nonNegativeInteger"},"minContains":{"$ref":"#/$defs/nonNegativeInteger","default":1},"maxProperties":{"$ref":"#/$defs/nonNegativeInteger"},"minProperties":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"required":{"$ref":"#/$defs/stringArray"},"dependentRequired":{"type":"object","additionalProperties":{"$ref":"#/$defs/stringArray"}},"const":true,"enum":{"type":"array","items":true},"type":{"anyOf":[{"$ref":"#/$defs/simpleTypes"},{"type":"array","items":{"$ref":"#/$defs/simpleTypes"},"minItems":1,"uniqueItems":true}]}},"$defs":{"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"$ref":"#/$defs/nonNegativeInteger","default":0},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}}}')},3329:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2019-09/schema","$id":"https://json-schema.org/draft/2019-09/schema","$vocabulary":{"https://json-schema.org/draft/2019-09/vocab/core":true,"https://json-schema.org/draft/2019-09/vocab/applicator":true,"https://json-schema.org/draft/2019-09/vocab/validation":true,"https://json-schema.org/draft/2019-09/vocab/meta-data":true,"https://json-schema.org/draft/2019-09/vocab/format":false,"https://json-schema.org/draft/2019-09/vocab/content":true},"$recursiveAnchor":true,"title":"Core and Validation specifications meta-schema","allOf":[{"$ref":"meta/core"},{"$ref":"meta/applicator"},{"$ref":"meta/validation"},{"$ref":"meta/meta-data"},{"$ref":"meta/format"},{"$ref":"meta/content"}],"type":["object","boolean"],"properties":{"definitions":{"$comment":"While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.","type":"object","additionalProperties":{"$recursiveRef":"#"},"default":{}},"dependencies":{"$comment":"\\"dependencies\\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \\"dependentSchemas\\" and \\"dependentRequired\\"","type":"object","additionalProperties":{"anyOf":[{"$recursiveRef":"#"},{"$ref":"meta/validation#/$defs/stringArray"}]}}}}')},996:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/applicator","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/applicator":true},"$dynamicAnchor":"meta","title":"Applicator vocabulary meta-schema","type":["object","boolean"],"properties":{"prefixItems":{"$ref":"#/$defs/schemaArray"},"items":{"$dynamicRef":"#meta"},"contains":{"$dynamicRef":"#meta"},"additionalProperties":{"$dynamicRef":"#meta"},"properties":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"},"propertyNames":{"format":"regex"},"default":{}},"dependentSchemas":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"},"default":{}},"propertyNames":{"$dynamicRef":"#meta"},"if":{"$dynamicRef":"#meta"},"then":{"$dynamicRef":"#meta"},"else":{"$dynamicRef":"#meta"},"allOf":{"$ref":"#/$defs/schemaArray"},"anyOf":{"$ref":"#/$defs/schemaArray"},"oneOf":{"$ref":"#/$defs/schemaArray"},"not":{"$dynamicRef":"#meta"}},"$defs":{"schemaArray":{"type":"array","minItems":1,"items":{"$dynamicRef":"#meta"}}}}')},6795:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/content","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/content":true},"$dynamicAnchor":"meta","title":"Content vocabulary meta-schema","type":["object","boolean"],"properties":{"contentEncoding":{"type":"string"},"contentMediaType":{"type":"string"},"contentSchema":{"$dynamicRef":"#meta"}}}')},235:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/core","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/core":true},"$dynamicAnchor":"meta","title":"Core vocabulary meta-schema","type":["object","boolean"],"properties":{"$id":{"$ref":"#/$defs/uriReferenceString","$comment":"Non-empty fragments not allowed.","pattern":"^[^#]*#?$"},"$schema":{"$ref":"#/$defs/uriString"},"$ref":{"$ref":"#/$defs/uriReferenceString"},"$anchor":{"$ref":"#/$defs/anchorString"},"$dynamicRef":{"$ref":"#/$defs/uriReferenceString"},"$dynamicAnchor":{"$ref":"#/$defs/anchorString"},"$vocabulary":{"type":"object","propertyNames":{"$ref":"#/$defs/uriString"},"additionalProperties":{"type":"boolean"}},"$comment":{"type":"string"},"$defs":{"type":"object","additionalProperties":{"$dynamicRef":"#meta"}}},"$defs":{"anchorString":{"type":"string","pattern":"^[A-Za-z_][-A-Za-z0-9._]*$"},"uriString":{"type":"string","format":"uri"},"uriReferenceString":{"type":"string","format":"uri-reference"}}}')},2567:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/format-annotation","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/format-annotation":true},"$dynamicAnchor":"meta","title":"Format vocabulary meta-schema for annotation results","type":["object","boolean"],"properties":{"format":{"type":"string"}}}')},1233:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/meta-data","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/meta-data":true},"$dynamicAnchor":"meta","title":"Meta-data vocabulary meta-schema","type":["object","boolean"],"properties":{"title":{"type":"string"},"description":{"type":"string"},"default":true,"deprecated":{"type":"boolean","default":false},"readOnly":{"type":"boolean","default":false},"writeOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true}}}')},5568:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/unevaluated","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/unevaluated":true},"$dynamicAnchor":"meta","title":"Unevaluated applicator vocabulary meta-schema","type":["object","boolean"],"properties":{"unevaluatedItems":{"$dynamicRef":"#meta"},"unevaluatedProperties":{"$dynamicRef":"#meta"}}}')},1968:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/meta/validation","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/validation":true},"$dynamicAnchor":"meta","title":"Validation vocabulary meta-schema","type":["object","boolean"],"properties":{"type":{"anyOf":[{"$ref":"#/$defs/simpleTypes"},{"type":"array","items":{"$ref":"#/$defs/simpleTypes"},"minItems":1,"uniqueItems":true}]},"const":true,"enum":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/$defs/nonNegativeInteger"},"minLength":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"maxItems":{"$ref":"#/$defs/nonNegativeInteger"},"minItems":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxContains":{"$ref":"#/$defs/nonNegativeInteger"},"minContains":{"$ref":"#/$defs/nonNegativeInteger","default":1},"maxProperties":{"$ref":"#/$defs/nonNegativeInteger"},"minProperties":{"$ref":"#/$defs/nonNegativeIntegerDefault0"},"required":{"$ref":"#/$defs/stringArray"},"dependentRequired":{"type":"object","additionalProperties":{"$ref":"#/$defs/stringArray"}}},"$defs":{"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"$ref":"#/$defs/nonNegativeInteger","default":0},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}}}')},2577:e=>{"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://json-schema.org/draft/2020-12/schema","$vocabulary":{"https://json-schema.org/draft/2020-12/vocab/core":true,"https://json-schema.org/draft/2020-12/vocab/applicator":true,"https://json-schema.org/draft/2020-12/vocab/unevaluated":true,"https://json-schema.org/draft/2020-12/vocab/validation":true,"https://json-schema.org/draft/2020-12/vocab/meta-data":true,"https://json-schema.org/draft/2020-12/vocab/format-annotation":true,"https://json-schema.org/draft/2020-12/vocab/content":true},"$dynamicAnchor":"meta","title":"Core and Validation specifications meta-schema","allOf":[{"$ref":"meta/core"},{"$ref":"meta/applicator"},{"$ref":"meta/unevaluated"},{"$ref":"meta/validation"},{"$ref":"meta/meta-data"},{"$ref":"meta/format-annotation"},{"$ref":"meta/content"}],"type":["object","boolean"],"$comment":"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.","properties":{"definitions":{"$comment":"\\"definitions\\" has been replaced by \\"$defs\\".","type":"object","additionalProperties":{"$dynamicRef":"#meta"},"deprecated":true,"default":{}},"dependencies":{"$comment":"\\"dependencies\\" has been split and replaced by \\"dependentSchemas\\" and \\"dependentRequired\\" in order to serve their differing semantics.","type":"object","additionalProperties":{"anyOf":[{"$dynamicRef":"#meta"},{"$ref":"meta/validation#/$defs/stringArray"}]},"deprecated":true,"default":{}},"$recursiveAnchor":{"$comment":"\\"$recursiveAnchor\\" has been replaced by \\"$dynamicAnchor\\".","$ref":"meta/core#/$defs/anchorString","deprecated":true},"$recursiveRef":{"$comment":"\\"$recursiveRef\\" has been replaced by \\"$dynamicRef\\".","$ref":"meta/core#/$defs/uriReferenceString","deprecated":true}}}')},18:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-06/schema#","$id":"http://json-schema.org/draft-06/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"examples":{"type":"array","items":{}},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":{},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":{}}')},98:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.d(n,{default:()=>Pt});class e{constructor(e,t={}){this._json=e,this._meta=t}json(e){return void 0===e||null===this._json||void 0===this._json?this._json:this._json[e]}meta(e){return void 0===e?this._meta:this._meta?this._meta[e]:void 0}jsonPath(e){return"string"!=typeof e?this._meta.pointer:`${this._meta.pointer}/${e}`}createModel(e,t,r){return new e(t,Object.assign(Object.assign({},r),{asyncapi:this._meta.asyncapi}))}}class t extends Array{constructor(e,t={}){super(...e),this.collections=e,this._meta=t}has(e){return void 0!==this.get(e)}all(){return this.collections}isEmpty(){return 0===this.collections.length}filterBy(e){return this.collections.filter(e)}meta(e){return void 0===e?this._meta:this._meta?this._meta[String(e)]:void 0}}class i extends t{get(e){return e=e.startsWith("x-")?e:`x-${e}`,this.collections.find((t=>t.id()===e))}}class o extends e{id(){return this._meta.id}version(){return"to implement"}value(){return this._json}}function s(e,t,r,n){return new e(t,Object.assign(Object.assign({},r),{asyncapi:r.asyncapi||(null==n?void 0:n.meta().asyncapi)}))}var a=r(1005),c=r.n(a);const p="x-parser-spec-parsed",u="x-parser-message-name",f="x-parser-schema-id",l=/^x-[\w\d.\-_]+$/,d=Object.keys(c()).filter((e=>!["1.0.0","1.1.0","1.2.0","2.0.0-rc1","2.0.0-rc2"].includes(e)));d[d.length-1];class h extends t{get(e){return this.collections.find((t=>t.protocol()===e))}extensions(){const e=[];return Object.entries(this._meta.originalData||{}).forEach((([t,r])=>{l.test(t)&&e.push(s(o,r,{id:t,pointer:`${this._meta.pointer}/${t}`,asyncapi:this._meta.asyncapi}))})),new i(e)}}class m extends e{protocol(){return this._meta.protocol}version(){return this._json.bindingVersion||"latest"}value(){const e=Object.assign({},this._json);return delete e.bindingVersion,e}extensions(){return _(this)}}class y extends e{url(){return this._json.url}hasDescription(){return j(this)}description(){return $(this)}extensions(){return _(this)}}class g extends t{get(e){return this.collections.find((t=>t.name()===e))}}class v extends e{name(){return this._json.name}hasDescription(){return j(this)}description(){return $(this)}extensions(){return _(this)}hasExternalDocs(){return x(this)}externalDocs(){return P(this)}}function b(e){const t=e.json("bindings")||{};return new h(Object.entries(t||{}).map((([t,r])=>s(m,r,{protocol:t,pointer:e.jsonPath(`bindings/${t}`)},e))),{originalData:t,asyncapi:e.meta("asyncapi"),pointer:e.jsonPath("bindings")})}function j(e){return Boolean($(e))}function $(e){return e.json("description")}function _(e){const t=[];return Object.entries(e.json()).forEach((([r,n])=>{l.test(r)&&t.push(s(o,n,{id:r,pointer:e.jsonPath(r)},e))})),new i(t)}function x(e){return Object.keys(e.json("externalDocs")||{}).length>0}function P(e){if(x(e))return new y(e.json("externalDocs"))}function w(e){return new g((e.json("tags")||[]).map(((t,r)=>s(v,t,{pointer:e.jsonPath(`tags/${r}`)},e))))}class S extends e{hasName(){return!!this._json.name}name(){return this._json.name}hasUrl(){return!!this._json.url}url(){return this._json.url}hasEmail(){return!!this._json.email}email(){return this._json.email}extensions(){return _(this)}}class O extends e{name(){return this._json.name}hasUrl(){return!!this._json.url}url(){return this._json.url}extensions(){return _(this)}}class E extends e{title(){return this._json.title}version(){return this._json.version}hasId(){return!!this._meta.asyncapi.parsed.id}id(){return this._meta.asyncapi.parsed.id}hasDescription(){return j(this)}description(){return $(this)}hasTermsOfService(){return!!this._json.termsOfService}termsOfService(){return this._json.termsOfService}hasContact(){return Object.keys(this._json.contact||{}).length>0}contact(){const e=this._json.contact;return e&&this.createModel(S,e,{pointer:"/info/contact"})}hasLicense(){return Object.keys(this._json.license||{}).length>0}license(){const e=this._json.license;return e&&this.createModel(O,e,{pointer:"/info/license"})}hasExternalDocs(){return Object.keys(this._meta.asyncapi.parsed.externalDocs||{}).length>0}externalDocs(){if(this.hasExternalDocs())return this.createModel(y,this._meta.asyncapi.parsed.externalDocs,{pointer:"/externalDocs"})}tags(){const e=this._meta.asyncapi.parsed.tags||[];return new g(e.map(((e,t)=>this.createModel(v,e,{pointer:`/tags/${t}`}))))}extensions(){return _(this)}}class A extends t{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.operations().filterBySend().length>0))}filterByReceive(){return this.filterBy((e=>e.operations().filterByReceive().length>0))}}class I extends t{get(e){return this.collections.find((t=>t.id()===e))}}var T=r(4418);function k(e,t){return{source:e,parsed:t,semver:R(t.asyncapi)}}function R(e){const[t,r,n]=e.split("."),[i,o]=n.split("-rc");return{version:e,major:Number(t),minor:Number(r),patch:Number(i),rc:o&&Number(o)}}function D(e,t,r){e=e.startsWith("x-")?e:`x-${e}`,r.json()[e]=t}function C(e,t){if(!F(t))return t;const r=F(e)?Object.assign({},e):{};return Object.keys(t).forEach((e=>{const n=t[e];null===n?delete r[e]:r[e]=C(r[e],n)})),r}function F(e){return Boolean(e)&&"object"==typeof e&&!1===Array.isArray(e)}function N(e){return F(e)&&"$ref"in e&&"string"==typeof e.$ref}function M(e){return e.replace(/[~/]{1}/g,(e=>{switch(e){case"/":return"~1";case"~":return"~0"}return e}))}function q(e){return e.includes("~")?e.replace(/~[01]/g,(e=>{switch(e){case"~1":return"/";case"~0":return"~"}return e})):e}function U(e,t){let r=0;const n=t.length;for(;"object"==typeof e&&e&&rthis.createModel(z,e,{pointer:`${this._meta.pointer}/allOf/${t}`,parent:this})))}anyOf(){if("boolean"!=typeof this._json&&Array.isArray(this._json.anyOf))return this._json.anyOf.map(((e,t)=>this.createModel(z,e,{pointer:`${this._meta.pointer}/anyOf/${t}`,parent:this})))}const(){if("boolean"!=typeof this._json)return this._json.const}contains(){if("boolean"!=typeof this._json&&"object"==typeof this._json.contains)return this.createModel(z,this._json.contains,{pointer:`${this._meta.pointer}/contains`,parent:this})}contentEncoding(){if("boolean"!=typeof this._json)return this._json.contentEncoding}contentMediaType(){if("boolean"!=typeof this._json)return this._json.contentMediaType}default(){if("boolean"!=typeof this._json)return this._json.default}definitions(){if("boolean"!=typeof this._json&&"object"==typeof this._json.definitions)return Object.entries(this._json.definitions).reduce(((e,[t,r])=>(e[t]=this.createModel(z,r,{pointer:`${this._meta.pointer}/definitions/${t}`,parent:this}),e)),{})}description(){if("boolean"!=typeof this._json)return this._json.description}dependencies(){if("boolean"!=typeof this._json&&"object"==typeof this._json.dependencies)return Object.entries(this._json.dependencies).reduce(((e,[t,r])=>(e[t]=Array.isArray(r)?r:this.createModel(z,r,{pointer:`${this._meta.pointer}/dependencies/${t}`,parent:this}),e)),{})}deprecated(){return"boolean"!=typeof this._json&&(this._json.deprecated||!1)}discriminator(){if("boolean"!=typeof this._json)return this._json.discriminator}else(){if("boolean"!=typeof this._json&&"object"==typeof this._json.else)return this.createModel(z,this._json.else,{pointer:`${this._meta.pointer}/else`,parent:this})}enum(){if("boolean"!=typeof this._json)return this._json.enum}examples(){if("boolean"!=typeof this._json)return this._json.examples}exclusiveMaximum(){if("boolean"!=typeof this._json)return this._json.exclusiveMaximum}exclusiveMinimum(){if("boolean"!=typeof this._json)return this._json.exclusiveMinimum}format(){if("boolean"!=typeof this._json)return this._json.format}isBooleanSchema(){return"boolean"==typeof this._json}if(){if("boolean"!=typeof this._json&&"object"==typeof this._json.if)return this.createModel(z,this._json.if,{pointer:`${this._meta.pointer}/if`,parent:this})}isCircular(){if(N(this._json))return!0;let e=this._meta.parent;for(;e;){if(e._json===this._json)return!0;e=e._meta.parent}return!1}items(){if("boolean"!=typeof this._json&&"object"==typeof this._json.items)return Array.isArray(this._json.items)?this._json.items.map(((e,t)=>this.createModel(z,e,{pointer:`${this._meta.pointer}/items/${t}`,parent:this}))):this.createModel(z,this._json.items,{pointer:`${this._meta.pointer}/items`,parent:this})}maximum(){if("boolean"!=typeof this._json)return this._json.maximum}maxItems(){if("boolean"!=typeof this._json)return this._json.maxItems}maxLength(){if("boolean"!=typeof this._json)return this._json.maxLength}maxProperties(){if("boolean"!=typeof this._json)return this._json.maxProperties}minimum(){if("boolean"!=typeof this._json)return this._json.minimum}minItems(){if("boolean"!=typeof this._json)return this._json.minItems}minLength(){if("boolean"!=typeof this._json)return this._json.minLength}minProperties(){if("boolean"!=typeof this._json)return this._json.minProperties}multipleOf(){if("boolean"!=typeof this._json)return this._json.multipleOf}not(){if("boolean"!=typeof this._json&&"object"==typeof this._json.not)return this.createModel(z,this._json.not,{pointer:`${this._meta.pointer}/not`,parent:this})}oneOf(){if("boolean"!=typeof this._json&&Array.isArray(this._json.oneOf))return this._json.oneOf.map(((e,t)=>this.createModel(z,e,{pointer:`${this._meta.pointer}/oneOf/${t}`,parent:this})))}pattern(){if("boolean"!=typeof this._json)return this._json.pattern}patternProperties(){if("boolean"!=typeof this._json&&"object"==typeof this._json.patternProperties)return Object.entries(this._json.patternProperties).reduce(((e,[t,r])=>(e[t]=this.createModel(z,r,{pointer:`${this._meta.pointer}/patternProperties/${t}`,parent:this}),e)),{})}properties(){if("boolean"!=typeof this._json&&"object"==typeof this._json.properties)return Object.entries(this._json.properties).reduce(((e,[t,r])=>(e[t]=this.createModel(z,r,{pointer:`${this._meta.pointer}/properties/${t}`,parent:this}),e)),{})}property(e){if("boolean"!=typeof this._json&&"object"==typeof this._json.properties&&"object"==typeof this._json.properties[e])return this.createModel(z,this._json.properties[e],{pointer:`${this._meta.pointer}/properties/${e}`,parent:this})}propertyNames(){if("boolean"!=typeof this._json&&"object"==typeof this._json.propertyNames)return this.createModel(z,this._json.propertyNames,{pointer:`${this._meta.pointer}/propertyNames`,parent:this})}readOnly(){return"boolean"!=typeof this._json&&(this._json.readOnly||!1)}required(){if("boolean"!=typeof this._json)return this._json.required}then(){if("boolean"!=typeof this._json&&"object"==typeof this._json.then)return this.createModel(z,this._json.then,{pointer:`${this._meta.pointer}/then`,parent:this})}title(){if("boolean"!=typeof this._json)return this._json.title}type(){if("boolean"!=typeof this._json)return this._json.type}uniqueItems(){return"boolean"!=typeof this._json&&(this._json.uniqueItems||!1)}writeOnly(){return"boolean"!=typeof this._json&&(this._json.writeOnly||!1)}hasExternalDocs(){return x(this)}externalDocs(){return P(this)}extensions(){return _(this)}}class B extends e{id(){return this._meta.id}hasSchema(){return!!this._json.schema}schema(){if(this._json.schema)return this.createModel(z,this._json.schema,{pointer:`${this._meta.pointer}/schema`})}hasLocation(){return!!this._json.location}location(){return this._json.location}hasDescription(){return j(this)}description(){return $(this)}extensions(){return _(this)}}class V extends t{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.operations().filterBySend().length>0))}filterByReceive(){return this.filterBy((e=>e.operations().filterByReceive().length>0))}}class H extends t{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.isSend()))}filterByReceive(){return this.filterBy((e=>e.isReceive()))}}class K extends t{get(e){return this.collections.find((t=>t.id()===e))}}class G extends e{hasDescription(){return j(this)}description(){return $(this)}hasLocation(){return!!this._json.location}location(){return this._json.location}extensions(){return _(this)}}class J extends t{get(e){return this.collections.find((t=>t.name()===e))}}class W extends e{hasName(){return!!this._json.name}name(){return this._json.name}hasSummary(){return!!this._json.summary}summary(){return this._json.summary}hasHeaders(){return!!this._json.headers}headers(){return this._json.headers}hasPayload(){return!!this._json.payload}payload(){return this._json.payload}extensions(){return _(this)}}var Q=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};function Y(e,t){return"string"==typeof e?e:X(t)}function X(e){return`application/vnd.aai.asyncapi;version=${e}`}class Z extends e{id(){var e;return this.messageId()||this._meta.id||(null===(e=this.extensions().get(u))||void 0===e?void 0:e.value())}schemaFormat(){return this._json.schemaFormat||X(this._meta.asyncapi.semver.version)}hasMessageId(){return!!this._json.messageId}messageId(){return this._json.messageId}hasCorrelationId(){return!!this._json.correlationId}correlationId(){if(this._json.correlationId)return this.createModel(G,this._json.correlationId,{pointer:`${this._meta.pointer}/correlationId`})}hasContentType(){return!!this._json.contentType}contentType(){var e;return this._json.contentType||(null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed.defaultContentType)}hasHeaders(){return!!this._json.headers}headers(){if(this._json.headers)return this.createModel(z,this._json.headers,{pointer:`${this._meta.pointer}/headers`})}hasName(){return!!this._json.name}name(){return this._json.name}hasTitle(){return!!this._json.title}title(){return this._json.title}hasSummary(){return!!this._json.summary}summary(){return this._json.summary}hasDescription(){return j(this)}description(){return $(this)}hasExternalDocs(){return x(this)}externalDocs(){return P(this)}examples(){return new J((this._json.examples||[]).map(((e,t)=>this.createModel(W,e,{pointer:`${this._meta.pointer}/examples/${t}`}))))}tags(){return w(this)}bindings(){return b(this)}extensions(){return _(this)}}class ee extends t{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.operations().filterBySend().length>0))}filterByReceive(){return this.filterBy((e=>e.operations().filterByReceive().length>0))}}class te extends Z{hasPayload(){return!!this._json.payload}payload(){if(this._json.payload)return this.createModel(z,this._json.payload,{pointer:`${this._meta.pointer}/payload`})}servers(){const e=[],t=[];return this.channels().forEach((r=>{r.servers().forEach((r=>{t.includes(r.json())||(t.push(r.json()),e.push(r))}))})),new ee(e)}channels(){const e=[],t=[];return this.operations().all().forEach((r=>{r.channels().forEach((r=>{t.includes(r.json())||(t.push(r.json()),e.push(r))}))})),new A(e)}operations(){var e;const t=[];return Object.entries((null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed.channels)||{}).forEach((([e,r])=>{["subscribe","publish"].forEach((n=>{const i=r[n];i&&(i.message===this._json||(i.message.oneOf||[]).includes(this._json))&&t.push(this.createModel(pe,i,{id:"",pointer:`/channels/${M(e)}/${n}`,action:n}))}))})),new H(t)}traits(){return new K((this._json.traits||[]).map(((e,t)=>this.createModel(Z,e,{id:"",pointer:`${this._meta.pointer}/traits/${t}`}))))}}class re extends t{get(e){return this.collections.find((t=>t.id()===e))}}class ne extends e{authorizationUrl(){return this.json().authorizationUrl}hasRefreshUrl(){return!!this._json.refreshUrl}refreshUrl(){return this._json.refreshUrl}scopes(){return this._json.scopes}tokenUrl(){return this.json().tokenUrl}extensions(){return _(this)}}class ie extends e{hasAuthorizationCode(){return!!this._json.authorizationCode}authorizationCode(){if(this._json.authorizationCode)return new ne(this._json.authorizationCode)}hasClientCredentials(){return!!this._json.clientCredentials}clientCredentials(){if(this._json.clientCredentials)return new ne(this._json.clientCredentials)}hasImplicit(){return!!this._json.implicit}implicit(){if(this._json.implicit)return new ne(this._json.implicit)}hasPassword(){return!!this._json.password}password(){if(this._json.password)return new ne(this._json.password)}extensions(){return _(this)}}class oe extends e{id(){return this._meta.id}hasDescription(){return j(this)}description(){return $(this)}hasBearerFormat(){return!!this._json.bearerFormat}bearerFormat(){return this._json.bearerFormat}openIdConnectUrl(){return this._json.openIdConnectUrl}scheme(){return this._json.scheme}flows(){if(this._json.flows)return new ie(this._json.flows)}type(){return this._json.type}in(){return this._json.in}extensions(){return _(this)}}class se extends t{get(e){return this.collections.find((t=>t.meta("id")===e))}}class ae extends e{scheme(){return this._json.scheme}scopes(){return this._json.scopes||[]}}class ce extends e{id(){return this.operationId()||this._meta.id}action(){return this._meta.action}hasOperationId(){return!!this._json.operationId}operationId(){return this._json.operationId}hasSummary(){return!!this._json.summary}summary(){return this._json.summary}hasDescription(){return j(this)}description(){return $(this)}hasExternalDocs(){return x(this)}isSend(){return"subscribe"===this.action()}isReceive(){return"publish"===this.action()}externalDocs(){return P(this)}security(){var e,t,r,n;const i=(null===(n=null===(r=null===(t=null===(e=this._meta)||void 0===e?void 0:e.asyncapi)||void 0===t?void 0:t.parsed)||void 0===r?void 0:r.components)||void 0===n?void 0:n.securitySchemes)||{};return(this._json.security||[]).map(((e,t)=>{const r=[];return Object.entries(e).forEach((([e,n])=>{const o=this.createModel(oe,i[e],{id:e,pointer:`/components/securitySchemes/${e}`});r.push(this.createModel(ae,{scheme:o,scopes:n},{id:e,pointer:`${this.meta().pointer}/security/${t}/${e}`}))})),new se(r)}))}tags(){return w(this)}bindings(){return b(this)}extensions(){return _(this)}}class pe extends ce{servers(){const e=[],t=[];return this.channels().forEach((r=>{r.servers().forEach((r=>{t.includes(r.json())||(t.push(r.json()),e.push(r))}))})),new ee(e)}channels(){const e=[];return Object.entries(this._meta.asyncapi.parsed.channels||{}).forEach((([t,r])=>{r.subscribe!==this._json&&r.publish!==this._json||e.push(this.createModel(de,r,{id:t,address:t,pointer:`/channels/${M(t)}`}))})),new A(e)}messages(){let e=!1,t=[];return this._json.message&&(Array.isArray(this._json.message.oneOf)?(t=this._json.message.oneOf,e=!0):t=[this._json.message]),new V(t.map(((t,r)=>this.createModel(te,t,{id:"",pointer:`${this._meta.pointer}/message${e?`/oneOf/${r}`:""}`}))))}traits(){return new re((this._json.traits||[]).map(((e,t)=>this.createModel(ce,e,{id:"",pointer:`${this._meta.pointer}/traits/${t}`,action:""}))))}}class ue extends t{get(e){return this.collections.find((t=>t.id()===e))}}class fe extends e{id(){return this._meta.id}hasDescription(){return j(this)}description(){return $(this)}hasDefaultValue(){return!!this._json.default}defaultValue(){return this._json.default}hasAllowedValues(){return!!this._json.enum}allowedValues(){return this._json.enum||[]}examples(){return this._json.examples||[]}extensions(){return _(this)}}class le extends e{id(){return this._meta.id}url(){return this._json.url}protocol(){return this._json.protocol}hasProtocolVersion(){return!!this._json.protocolVersion}protocolVersion(){return this._json.protocolVersion}hasDescription(){return j(this)}description(){return $(this)}channels(){var e;const t=[];return Object.entries((null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed.channels)||{}).forEach((([e,r])=>{const n=r.servers||[];(0===n.length||n.includes(this._meta.id))&&t.push(this.createModel(de,r,{id:e,address:e,pointer:`/channels/${M(e)}`}))})),new A(t)}operations(){const e=[];return this.channels().forEach((t=>{e.push(...t.operations().all())})),new H(e)}messages(){const e=[];return this.operations().forEach((t=>e.push(...t.messages().all()))),new V(e)}variables(){return new ue(Object.entries(this._json.variables||{}).map((([e,t])=>this.createModel(fe,t,{id:e,pointer:`${this._meta.pointer}/variables/${e}`}))))}security(){var e,t,r,n;const i=(null===(n=null===(r=null===(t=null===(e=this._meta)||void 0===e?void 0:e.asyncapi)||void 0===t?void 0:t.parsed)||void 0===r?void 0:r.components)||void 0===n?void 0:n.securitySchemes)||{};return(this._json.security||[]).map(((e,t)=>{const r=[];return Object.entries(e).forEach((([e,n])=>{const o=this.createModel(oe,i[e],{id:e,pointer:`/components/securitySchemes/${e}`});r.push(this.createModel(ae,{scheme:o,scopes:n},{id:e,pointer:`${this.meta().pointer}/security/${t}/${e}`}))})),new se(r)}))}bindings(){return b(this)}extensions(){return _(this)}}class de extends e{id(){return this._meta.id}address(){return this._meta.address}hasDescription(){return j(this)}description(){return $(this)}servers(){var e;const t=[],r=this._json.servers||[];return Object.entries((null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed.servers)||{}).forEach((([e,n])=>{(0===r.length||r.includes(e))&&t.push(this.createModel(le,n,{id:e,pointer:`/servers/${e}`}))})),new ee(t)}operations(){const e=[];return["publish","subscribe"].forEach((t=>{const r=this._json[t]&&this._json[t].operationId||`${this.meta().id}_${t}`;this._json[t]&&e.push(this.createModel(pe,this._json[t],{id:r,action:t,pointer:`${this._meta.pointer}/${t}`}))})),new H(e)}messages(){const e=[];return this.operations().forEach((t=>e.push(...t.messages().all()))),new V(e)}parameters(){return new I(Object.entries(this._json.parameters||{}).map((([e,t])=>this.createModel(B,t,{id:e,pointer:`${this._meta.pointer}/parameters/${e}`}))))}bindings(){return b(this)}extensions(){return _(this)}}class he extends t{get(e){return this.collections.find((t=>t.uid()===e))}}class me extends t{get(e){return this.collections.find((t=>t.id()===e))}}class ye extends t{get(e){return this.collections.find((t=>t.meta("id")===e))}}class ge extends e{servers(){return this.createCollection("servers",ee,le)}channels(){return new A(Object.entries(this._json.channels||{}).map((([e,t])=>this.createModel(de,t,{id:e,address:"",pointer:`/components/channels/${M(e)}`}))))}messages(){return this.createCollection("messages",V,te)}schemas(){return this.createCollection("schemas",he,z)}channelParameters(){return this.createCollection("parameters",I,B)}serverVariables(){return this.createCollection("serverVariables",ue,fe)}operations(){const e=[];return this.channels().forEach((t=>e.push(...t.operations().all()))),new H(e)}operationTraits(){return this.createCollection("operationTraits",re,ce)}messageTraits(){return this.createCollection("messageTraits",K,Z)}correlationIds(){return this.createCollection("correlationIds",ye,G)}securitySchemes(){return this.createCollection("securitySchemes",me,oe)}serverBindings(){return this.createBindings("serverBindings")}channelBindings(){return this.createBindings("channelBindings")}operationBindings(){return this.createBindings("operationBindings")}messageBindings(){return this.createBindings("messageBindings")}extensions(){return _(this)}isEmpty(){return 0===Object.keys(this._json).length}createCollection(e,t,r){const n=[];return Object.entries(this._json[e]||{}).forEach((([t,i])=>{n.push(this.createModel(r,i,{id:t,pointer:`/components/${e}/${t}`}))})),new t(n)}createBindings(e){return Object.entries(this._json[e]||{}).reduce(((t,[r,n])=>{const i=n||{},o=this.meta("asyncapi"),s=`components/${e}/${r}`;return t[r]=new h(Object.entries(i).map((([e,t])=>this.createModel(m,t,{protocol:e,pointer:`${s}/${e}`}))),{originalData:i,asyncapi:o,pointer:s}),t}),{})}}class ve extends e{version(){return this._json.asyncapi}defaultContentType(){return this._json.defaultContentType}hasDefaultContentType(){return!!this._json.defaultContentType}info(){return this.createModel(E,this._json.info,{pointer:"/info"})}servers(){return new ee(Object.entries(this._json.servers||{}).map((([e,t])=>this.createModel(le,t,{id:e,pointer:`/servers/${e}`}))))}channels(){return new A(Object.entries(this._json.channels||{}).map((([e,t])=>this.createModel(de,t,{id:e,address:e,pointer:`/channels/${M(e)}`}))))}operations(){const e=[];return this.channels().forEach((t=>e.push(...t.operations().all()))),new H(e)}messages(){const e=[];return this.operations().forEach((t=>e.push(...t.messages().all()))),new V(e)}schemas(){return new he([])}securitySchemes(){var e;return new me(Object.entries((null===(e=this._json.components)||void 0===e?void 0:e.securitySchemes)||{}).map((([e,t])=>this.createModel(oe,t,{id:e,pointer:`/components/securitySchemes/${e}`}))))}components(){return this.createModel(ge,this._json.components||{},{pointer:"/components"})}extensions(){return _(this)}}class be extends e{version(){return this._json.asyncapi}}const je="$ref:$";function $e(e,t,r,n,i){let o=e,s=je;if(void 0!==t){o=e[String(t)];const r=t?`.${t}`:"";s=n.get(e)+(Array.isArray(e)?`[${t}]`:r)}n.set(o,s),i.set(s,o);const a=i.get(o);if(a&&(e[String(t)]=a),o!==je&&a!==je||(e[String(t)]=r),o===Object(o))for(const e in o)$e(o,e,r,n,i)}function _e(e){if(2===e.semver.major)return new ve(e.parsed,{asyncapi:e,pointer:"/"});throw new Error(`Unsupported AsyncAPI version: ${e.semver.version}`)}function xe(e){return function(e){return e instanceof ve||e instanceof be}(e)?e:function(e){return"object"==typeof e&&null!==e&&Boolean(e[p])}(e)?function(e){let t=e;if("string"==typeof e)try{t=JSON.parse(e)}catch(e){return}if("object"==typeof(r=t)&&null!==r&&Boolean(r[p])&&Boolean(r["x-parser-spec-stringified"]))return t=Object.assign({},t),delete t[String("x-parser-spec-stringified")],$e(e,void 0,e,new Map,new Map),_e(k(e,t));var r}(e)||_e(k(e,e)):void 0}function Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}function we(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Se(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&p.shift(),this._hasParentSelector=null;var u=this._trace(p,t,["$"],o,s,r).filter((function(e){return e&&!e.isParentSelector}));return u.length?c||1!==u.length||u[0].hasArrExpr?u.reduce((function(e,t){var r=i._getPreferredOutput(t);return a&&Array.isArray(r)?e=e.concat(r):e.push(r),e}),[]):this._getPreferredOutput(u[0]):c?[]:void 0}},Ue.prototype._getPreferredOutput=function(e){var t=this.currResultType;switch(t){case"all":var r=Array.isArray(e.path)?e.path:Ue.toPathArray(e.path);return e.pointer=Ue.toPointer(r),e.path="string"==typeof e.path?e.path:Ue.toPathString(e.path),e;case"value":case"parent":case"parentProperty":return e[t];case"path":return Ue.toPathString(e[t]);case"pointer":return Ue.toPointer(e.path);default:throw new TypeError("Unknown result type")}},Ue.prototype._handleCallback=function(e,t,r){if(t){var n=this._getPreferredOutput(e);e.path="string"==typeof e.path?e.path:Ue.toPathString(e.path),t(n,r,e)}},Ue.prototype._trace=function(e,t,r,n,i,o,s,a){var c,p=this;if(!e.length)return c={path:r,value:t,parent:n,parentProperty:i,hasArrExpr:s},this._handleCallback(c,o,"value"),c;var u=e[0],f=e.slice(1),l=[];function d(e){Array.isArray(e)?e.forEach((function(e){l.push(e)})):l.push(e)}if(("string"!=typeof u||a)&&t&&Fe.call(t,u))d(this._trace(f,t[u],Ne(r,u),t,u,o,s));else if("*"===u)this._walk(t,(function(e){d(p._trace(f,t[e],Ne(r,e),t,e,o,!0,!0))}));else if(".."===u)d(this._trace(f,t,r,n,i,o,s)),this._walk(t,(function(n){"object"===Pe(t[n])&&d(p._trace(e.slice(),t[n],Ne(r,n),t,n,o,!0))}));else{if("^"===u)return this._hasParentSelector=!0,{path:r.slice(0,-1),expr:f,isParentSelector:!0};if("~"===u)return c={path:Ne(r,u),value:i,parent:n,parentProperty:null},this._handleCallback(c,o,"property"),c;if("$"===u)d(this._trace(f,t,r,null,null,o,s));else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(u))d(this._slice(u,f,t,r,n,i,o));else if(0===u.indexOf("?(")){if(this.currPreventEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");var h=u.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/,"$1");this._walk(t,(function(e){p._eval(h,t[e],e,r,n,i)&&d(p._trace(f,t[e],Ne(r,e),t,e,o,!0))}))}else if("("===u[0]){if(this.currPreventEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");d(this._trace(Me(this._eval(u,t,r[r.length-1],r.slice(0,-1),n,i),f),t,r,n,i,o,s))}else if("@"===u[0]){var m=!1,y=u.slice(1,-2);switch(y){case"scalar":t&&["object","function"].includes(Pe(t))||(m=!0);break;case"boolean":case"string":case"undefined":case"function":Pe(t)===y&&(m=!0);break;case"integer":!Number.isFinite(t)||t%1||(m=!0);break;case"number":Number.isFinite(t)&&(m=!0);break;case"nonFinite":"number"!=typeof t||Number.isFinite(t)||(m=!0);break;case"object":t&&Pe(t)===y&&(m=!0);break;case"array":Array.isArray(t)&&(m=!0);break;case"other":m=this.currOtherTypeCallback(t,r,n,i);break;case"null":null===t&&(m=!0);break;default:throw new TypeError("Unknown value type "+y)}if(m)return c={path:r,value:t,parent:n,parentProperty:i},this._handleCallback(c,o,"value"),c}else if("`"===u[0]&&t&&Fe.call(t,u.slice(1))){var g=u.slice(1);d(this._trace(f,t[g],Ne(r,g),t,g,o,s,!0))}else if(u.includes(",")){var v,b=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=De(e))){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}(u.split(","));try{for(b.s();!(v=b.n()).done;){var j=v.value;d(this._trace(Me(j,f),t,r,n,i,o,!0))}}catch(e){b.e(e)}finally{b.f()}}else!a&&t&&Fe.call(t,u)&&d(this._trace(f,t[u],Ne(r,u),t,u,o,s,!0))}if(this._hasParentSelector)for(var $=0;$-1?t.slice(0,a+1)+" return "+t.slice(a+1):" return "+t;return Te(Function,r.concat([c])).apply(void 0,function(e){if(Array.isArray(e))return Ce(e)}(s=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||De(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}]),e}();Ue.prototype.vm={Script:Le};const ze=["$.channels.*.[publish,subscribe]","$.components.channels.*.[publish,subscribe]","$.channels.*.[publish,subscribe].message","$.channels.*.[publish,subscribe].message.oneOf.*","$.components.channels.*.[publish,subscribe].message","$.components.channels.*.[publish,subscribe].message.oneOf.*","$.components.messages.*"];function Be(e){Ve(e.json())&&D("x-parser-circular",!0,e)}function Ve(e){if(e&&"object"==typeof e&&!Array.isArray(e)){if(Object.prototype.hasOwnProperty.call(e,"$ref"))return!0;for(const t in e)if(Ve(e[t]))return!0}return!1}var He=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};const Ke=["$.channels.*.[publish,subscribe].message","$.channels.*.[publish,subscribe].message.oneOf.*","$.components.channels.*.[publish,subscribe].message","$.components.channels.*.[publish,subscribe].message.oneOf.*","$.components.messages.*"];function Ge(e){return e.slice(3).slice(0,-2).split("']['")}var Je,We;function Qe(e,t,r){if(!e)return;const{schemaTypesToIterate:n,callback:i,seenSchemas:o}=r,s=e.json();if(o.has(s))return;o.add(s);let a=e.type()||[];Array.isArray(a)||(a=[a]),!n.includes(We.Objects)&&a.includes("object")||!n.includes(We.Arrays)&&a.includes("array")||!1!==i(e,t,Je.NEW_SCHEMA)&&(n.includes(We.Objects)&&a.includes("object")&&function(e,t){Object.entries(e.properties()||{}).forEach((([e,r])=>{Qe(r,e,t)}));const r=e.additionalProperties();"object"==typeof r&&Qe(r,null,t);const n=t.schemaTypesToIterate;n.includes(We.PropertyNames)&&e.propertyNames()&&Qe(e.propertyNames(),null,t),n.includes(We.PatternProperties)&&Object.entries(e.patternProperties()||{}).forEach((([e,r])=>{Qe(r,e,t)}))}(e,r),n.includes(We.Arrays)&&a.includes("array")&&function(e,t){const r=e.items();r&&(Array.isArray(r)?r.forEach(((e,r)=>{Qe(e,r,t)})):Qe(r,null,t));const n=e.additionalItems();"object"==typeof n&&Qe(n,null,t),t.schemaTypesToIterate.includes("contains")&&e.contains()&&Qe(e.contains(),null,t)}(e,r),n.includes(We.OneOfs)&&(e.oneOf()||[]).forEach(((e,t)=>{Qe(e,t,r)})),n.includes(We.AnyOfs)&&(e.anyOf()||[]).forEach(((e,t)=>{Qe(e,t,r)})),n.includes(We.AllOfs)&&(e.allOf()||[]).forEach(((e,t)=>{Qe(e,t,r)})),n.includes(We.Nots)&&e.not()&&Qe(e.not(),null,r),n.includes(We.Ifs)&&e.if()&&Qe(e.if(),null,r),n.includes(We.Thenes)&&e.then()&&Qe(e.then(),null,r),n.includes(We.Elses)&&e.else()&&Qe(e.else(),null,r),n.includes(We.Dependencies)&&Object.entries(e.dependencies()||{}).forEach((([e,t])=>{t&&!Array.isArray(t)&&Qe(t,e,r)})),n.includes(We.Definitions)&&Object.entries(e.definitions()||{}).forEach((([e,t])=>{Qe(t,e,r)})),i(e,t,Je.END_SCHEMA),o.delete(s))}function Ye(e,t){if(!e)return;const{schemaTypesToIterate:r}=t;r.includes(We.Headers)&&e.hasHeaders()&&Qe(e.headers(),null,t),r.includes(We.Payloads)&&e.hasPayload()&&Qe(e.payload(),null,t)}function Xe(e){!function(e){e.components().messages().forEach((e=>{void 0===e.name()&&D(u,e.id(),e)}))}(e),function(e){let t=0;e.messages().forEach((e=>{var r;void 0===e.name()&&void 0===(null===(r=e.extensions().get(u))||void 0===r?void 0:r.value())&&D(u,``,e)}))}(e),function(e){e.components().schemas().forEach((e=>{D(f,e.uid(),e)}))}(e),function(e){e.components().channelParameters().forEach((e=>{const t=e.schema();t&&!t.uid()&&D(f,e.id(),t)}))}(e),function(e){e.channels().forEach((e=>{e.parameters().forEach((e=>{const t=e.schema();t&&!t.uid()&&D(f,e.id(),t)}))}))}(e),function(e){let t=0;!function(e,t,r=[]){0===r.length&&(r=Object.values(We));const n={callback:t,schemaTypesToIterate:r,seenSchemas:new Set};if(e.channels().isEmpty()||e.channels().all().forEach((e=>{!function(e,t){if(!e)return;const{schemaTypesToIterate:r}=t;r.includes(We.Parameters)&&Object.values(e.parameters().filterBy((e=>e.hasSchema()))||{}).forEach((e=>{Qe(e.schema(),null,t)})),e.messages().all().forEach((e=>{Ye(e,t)}))}(e,n)})),r.includes(We.Components)&&!e.components().isEmpty()){const t=e.components();Object.values(t.messages().all()||{}).forEach((e=>{Ye(e,n)})),Object.values(t.schemas().all()||{}).forEach((e=>{Qe(e,null,n)})),r.includes(We.Parameters)&&Object.values(t.channelParameters().filterBy((e=>e.hasSchema()))).forEach((e=>{Qe(e.schema(),null,n)})),Object.values(t.messageTraits().all()||{}).forEach((e=>{!function(e,t){if(!e)return;const{schemaTypesToIterate:r}=t;r.includes(We.Headers)&&e.hasHeaders()&&Qe(e.headers(),null,t)}(e,n)}))}}(e,(function(e){e.uid()||D(f,``,e)}))}(e)}!function(e){e.NEW_SCHEMA="NEW_SCHEMA",e.END_SCHEMA="END_SCHEMA"}(Je||(Je={})),function(e){e.Parameters="parameters",e.Payloads="payloads",e.Headers="headers",e.Components="components",e.Objects="objects",e.Arrays="arrays",e.OneOfs="oneOfs",e.AllOfs="allOfs",e.AnyOfs="anyOfs",e.Nots="nots",e.PropertyNames="propertyNames",e.PatternProperties="patternProperties",e.Contains="contains",e.Ifs="ifs",e.Thenes="thenes",e.Elses="elses",e.Dependencies="dependencies",e.Definitions="definitions"}(We||(We={}));var Ze=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};function et(e,t,r,n){return Ze(this,void 0,void 0,(function*(){if(2===r.semver.major)return function(e,t,r,n){return Ze(this,void 0,void 0,(function*(){Be(t),Xe(t),n.applyTraits&&function(e){!function(e,t){t.forEach((t=>{Ue({path:t,json:e,resultType:"value",callback(e){!function(e){if(Array.isArray(e.traits))for(const t of e.traits)for(const r in t)e[String(r)]=C(e[String(r)],t[String(r)])}(e)}})}))}(e,ze)}(r.parsed),n.parseSchemas&&(yield function(e,t){return He(this,void 0,void 0,(function*(){const r=X(t.semver.version),n=[],i=new Set;return Ke.forEach((e=>{Ue({path:e,json:t.parsed,resultType:"all",callback(e){const o=e.value;if(i.has(o))return;i.add(o);const s=o.payload;if(!s)return;const a=Y(o.schemaFormat,t.semver.version);n.push({input:{asyncapi:t,data:s,meta:{message:o},path:[...Ge(e.path),"payload"],schemaFormat:a,defaultSchemaFormat:r},value:o})}})})),Promise.all(n.map((t=>function(e,t){return He(this,void 0,void 0,(function*(){const r=t.input.data,n=t.value.payload=yield function(e,t){return Q(this,void 0,void 0,(function*(){const r=e.parserRegistry.get(t.schemaFormat);if(void 0===r)throw new Error("Unknown schema format");return r.parse(t)}))}(e,t.input);r!==n&&(t.value["x-parser-original-payload"]=r)}))}(e,t))))}))}(e,r))}))}(e,t,r,n)}))}var tt=r(309),rt=r(644);const nt={allowedSeverity:{error:!1,warning:!0,info:!0,hint:!0}};function it(e,t,r={}){return n=this,i=void 0,s=function*(){const{allowedSeverity:n}=C(nt,r),i=function(e){return"string"==typeof e?e:JSON.stringify(e,void 0,2)}(t),o=new tt.Document(i,rt.Yaml,r.source);let{resolved:s,results:a}=yield e.runWithResolved(o);return(!(null==n?void 0:n.error)&&a.some((e=>e.severity===T.DiagnosticSeverity.Error))||!(null==n?void 0:n.warning)&&a.some((e=>e.severity===T.DiagnosticSeverity.Warning))||!(null==n?void 0:n.info)&&function(e){return e.some((e=>e.severity===T.DiagnosticSeverity.Information))}(a)||!(null==n?void 0:n.hint)&&function(e){return e.some((e=>e.severity===T.DiagnosticSeverity.Hint))}(a))&&(s=void 0),{validated:s,diagnostics:a,extras:{document:o}}},new((o=void 0)||(o=Promise))((function(e,t){function r(e){try{c(s.next(e))}catch(e){t(e)}}function a(e){try{c(s.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(r,a)}c((s=s.apply(n,i||[])).next())}));var n,i,o,s}const ot={applyTraits:!0,parseSchemas:!0,validateOptions:{}};function st(e,t,r,n={}){return i=this,o=void 0,a=function*(){n=C(ot,n);const{validated:i,diagnostics:o,extras:s}=yield it(t,r,Object.assign(Object.assign({},n.validateOptions),{source:n.source}));if(void 0===i)return{document:void 0,diagnostics:o,extras:void 0};const a=function(e){const t=JSON.stringify(e,function(){const e=new Map,t=new Map;let r=null;return function(n,i){const o=e.get(this)+(Array.isArray(this)?`[${n}]`:`.${n}`),s=i===Object(i);s&&e.set(i,o);const a=t.get(i)||"";if(!a&&s){const e=o.replace(/undefined\.\.?/,"");t.set(i,e)}const c="["===a[0]?"$":"$.";let p=a?`$ref:${c}${a}`:i;return null===r?r=i:p===r&&(p="$ref:$"),p}}()),r=JSON.parse(t);return $e(r,void 0,r,new Map,new Map),r}(i),c=k(r,a),u=_e(c);return D(p,!0,u),yield et(e,u,c,n),{document:u,diagnostics:o,extras:s}},new((s=void 0)||(s=Promise))((function(e,t){function r(e){try{c(a.next(e))}catch(e){t(e)}}function n(e){try{c(a.throw(e))}catch(e){t(e)}}function c(t){var i;t.done?e(t.value):(i=t.value,i instanceof s?i:new s((function(e){e(i)}))).then(r,n)}c((a=a.apply(i,o||[])).next())}));var i,o,s,a}var at=r(1581),ct=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};const pt=new(r.n(at)())({allErrors:!0,strict:!1,logger:!1});function ut(e){return ct(this,void 0,void 0,(function*(){const t=function(e){let t=pt.getSchema(e);if(!t){const r=function(e,t){const r=`http://asyncapi.com/definitions/${t}/schema.json`,n=e.definitions;if(void 0===n)throw new Error("AsyncAPI schema must contain definitions");return delete n["http://json-schema.org/draft-07/schema"],delete n["http://json-schema.org/draft-04/schema"],{$ref:r,definitions:n}}(c()[e],e);pt.addSchema(r,e),t=pt.getSchema(e)}return t}(e.asyncapi.semver.version);let r=[];var n;return!t(e.data)&&t.errors&&(n=e.path,r=[...t.errors].map((e=>({message:e.message,path:[...n,...e.instancePath.replace(/^\//,"").split("/")]})))),r}))}function ft(e){return ct(this,void 0,void 0,(function*(){return e.data}))}function lt(){const e=["application/schema;version=draft-07","application/schema+json;version=draft-07","application/schema+yaml;version=draft-07"];return d.forEach((t=>{e.push(`application/vnd.aai.asyncapi;version=${t}`,`application/vnd.aai.asyncapi+json;version=${t}`,`application/vnd.aai.asyncapi+yaml;version=${t}`)})),e}var dt=r(3326),ht=r(3871),mt=r(9655),yt=r(5738);function gt(e={}){const t=[{schema:"file",read:yt.resolveFile},{schema:"https",read:yt.resolveHttp},{schema:"http",read:yt.resolveHttp},...(null==e?void 0:e.resolvers)||[]].map((e=>Object.assign(Object.assign({},e),{order:e.order||Number.MAX_SAFE_INTEGER,canRead:void 0===e.canRead||e.canRead}))),r=[...new Set(t.map((e=>e.schema)))].reduce(((e,r)=>(e[r]={resolve:vt(r,t)},e)),{}),n=!1!==e.cache;return new ht.Resolver({uriCache:n?void 0:new mt.C({stdTTL:1}),resolvers:r})}function vt(e,t){const r=t.filter((t=>t.schema===e)).sort(((e,t)=>e.order-t.order));return(t,n)=>{return i=this,o=void 0,a=function*(){let i,o;for(const e of r)try{if(!bt(e,t,n))continue;if(i=yield e.read(t,n),"string"==typeof i)break}catch(e){o=e;continue}if("string"!=typeof i)throw o||new Error(`None of the available resolvers for "${e}" can resolve the given reference.`);return i},new((s=void 0)||(s=Promise))((function(e,t){function r(e){try{c(a.next(e))}catch(e){t(e)}}function n(e){try{c(a.throw(e))}catch(e){t(e)}}function c(t){var i;t.done?e(t.value):(i=t.value,i instanceof s?i:new s((function(e){e(i)}))).then(r,n)}c((a=a.apply(i,o||[])).next())}));var i,o,s,a}}function bt(e,t,r){return"function"==typeof e.canRead?e.canRead(t,r):e.canRead}var jt=r(683);function $t(e){return{description:"Custom schema must be correctly formatted from the point of view of the used format.",formats:[jt.aas2_0,jt.aas2_1,jt.aas2_2,jt.aas2_3,jt.aas2_4],message:"{{error}}",severity:"error",type:"validation",recommended:!0,given:["$.channels.*.[publish,subscribe].message","$.channels.*.[publish,subscribe].message.oneOf.*","$.components.channels.*.[publish,subscribe].message","$.components.channels.*.[publish,subscribe].message.oneOf.*","$.components.messages.*"],then:{function:_t(e)}}}function _t(e){return(0,tt.createRulesetFunction)({input:{type:"object",properties:{schemaFormat:{type:"string"},payload:!0}},options:null},((t={},r,n)=>{return i=this,o=void 0,a=function*(){if(!t.payload)return[];const r=[...n.path,"payload"],i=n.document.data,o=Y(t.schemaFormat,i.asyncapi),s=X(i.asyncapi),a={asyncapi:k(n.document.data,i),data:t.payload,meta:{},path:r,schemaFormat:o,defaultSchemaFormat:s};try{return yield function(e,t){return Q(this,void 0,void 0,(function*(){const r=e.parserRegistry.get(t.schemaFormat);if(void 0===r){const{path:e,schemaFormat:r}=t;return e.pop(),[{message:`Unknown schema format: "${r}"`,path:[...e,"schemaFormat"]},{message:`Cannot validate and parse given schema due to unknown schema format: "${r}"`,path:[...e,"payload"]}]}return r.validate(t)}))}(e,a)}catch(e){return[{message:`Error thrown during schema validation, name: ${e.name}, message: ${e.message}, stack: ${e.stack}`,path:r}]}},new((s=void 0)||(s=Promise))((function(e,t){function r(e){try{c(a.next(e))}catch(e){t(e)}}function n(e){try{c(a.throw(e))}catch(e){t(e)}}function c(t){var i;t.done?e(t.value):(i=t.value,i instanceof s?i:new s((function(e){e(i)}))).then(r,n)}c((a=a.apply(i,o||[])).next())}));var i,o,s,a}))}var xt=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};const Pt=class{constructor(e={}){var t;this.options=e,this.parserRegistry=new Map,this.spectral=function(e,t={}){var r;const n=new tt.Spectral({resolver:gt(null===(r=t.__unstable)||void 0===r?void 0:r.resolver)}),i=function(e){return{extends:[dt.Z],rules:{"asyncapi-is-asyncapi":{description:"The input must be a document with a supported version of AsyncAPI.",formats:[()=>!0],message:"{{error}}",severity:"error",type:"validation",recommended:!0,given:"$",then:{function:(0,tt.createRulesetFunction)({input:null,options:null},(e=>F(e)&&"string"==typeof e.asyncapi?d.includes(e.asyncapi)?void 0:[{message:`Version "${e.asyncapi}" is not supported. Please use "${d[d.length-1]}" (latest) version of the specification.`,path:[]}]:[{message:'This is not an AsyncAPI document. The "asyncapi" field as string is missing.',path:[]}]))}},"asyncapi-schemas-v2":$t(e),"asyncapi-operation-operationId":"warn","asyncapi-payload-unsupported-schemaFormat":"off","asyncapi-payload":"off"}}}(e);return n.setRuleset(i),n}(this,e),this.registerSchemaParser({validate:ut,parse:ft,getMimeTypes:lt}),null===(t=this.options.schemaParsers)||void 0===t||t.forEach((e=>this.registerSchemaParser(e)))}parse(e,t){return xt(this,void 0,void 0,(function*(){const r=xe(e);return r?{document:r,diagnostics:[]}:st(this,this.spectral,e,t)}))}validate(e,t){return xt(this,void 0,void 0,(function*(){return xe(e)?[]:(yield it(this.spectral,e,t)).diagnostics}))}registerSchemaParser(e){return function(e,t){if("object"!=typeof t||"function"!=typeof t.validate||"function"!=typeof t.parse||"function"!=typeof t.getMimeTypes)throw new Error('Custom parser must have "parse()", "validate()" and "getMimeTypes()" functions.');t.getMimeTypes().forEach((r=>{e.parserRegistry.set(r,t)}))}(this,e)}}})(),n.default})())); \ No newline at end of file diff --git a/browser/index.js.LICENSE.txt b/browser/index.js.LICENSE.txt deleted file mode 100644 index 2ead3c492..000000000 --- a/browser/index.js.LICENSE.txt +++ /dev/null @@ -1,84 +0,0 @@ -/*! - * EventEmitter v5.2.9 - git.io/ee - * Unlicense - http://unlicense.org/ - * Oliver Caldwell - https://oli.me.uk/ - * @preserve - */ - -/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ - -/*! - * URI.js - Mutating URLs - * - * Version: 1.19.11 - * - * Author: Rodney Rehm - * Web: http://medialize.github.io/URI.js/ - * - * Licensed under - * MIT License http://www.opensource.org/licenses/mit-license - * - */ - -/*! - * URI.js - Mutating URLs - * IPv6 Support - * - * Version: 1.19.11 - * - * Author: Rodney Rehm - * Web: http://medialize.github.io/URI.js/ - * - * Licensed under - * MIT License http://www.opensource.org/licenses/mit-license - * - */ - -/*! - * URI.js - Mutating URLs - * Second Level Domain (SLD) Support - * - * Version: 1.19.11 - * - * Author: Rodney Rehm - * Web: http://medialize.github.io/URI.js/ - * - * Licensed under - * MIT License http://www.opensource.org/licenses/mit-license - * - */ - -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ - -/*! https://mths.be/punycode v1.4.0 by @mathias */ - -/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ - -/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - -/** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */ diff --git a/cjs/constants.d.ts b/cjs/constants.d.ts deleted file mode 100644 index 483ae4850..000000000 --- a/cjs/constants.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export declare const xParserSpecParsed = "x-parser-spec-parsed"; -export declare const xParserSpecStringified = "x-parser-spec-stringified"; -export declare const xParserMessageName = "x-parser-message-name"; -export declare const xParserMessageParsed = "x-parser-message-parsed"; -export declare const xParserSchemaId = "x-parser-schema-id"; -export declare const xParserOriginalSchemaFormat = "x-parser-original-schema-format"; -export declare const xParserOriginalPayload = "x-parser-original-payload"; -export declare const xParserOriginalTraits = "x-parser-original-traits"; -export declare const xParserCircular = "x-parser-circular"; -export declare const xParserCircularProps = "x-parser-circular-props"; -export declare const EXTENSION_REGEX: RegExp; -export declare const specVersions: string[]; -export declare const lastVersion: string; diff --git a/cjs/constants.js b/cjs/constants.js deleted file mode 100644 index a7800ae22..000000000 --- a/cjs/constants.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.lastVersion = exports.specVersions = exports.EXTENSION_REGEX = exports.xParserCircularProps = exports.xParserCircular = exports.xParserOriginalTraits = exports.xParserOriginalPayload = exports.xParserOriginalSchemaFormat = exports.xParserSchemaId = exports.xParserMessageParsed = exports.xParserMessageName = exports.xParserSpecStringified = exports.xParserSpecParsed = void 0; -// @ts-ignore -const specs_1 = __importDefault(require("@asyncapi/specs")); -exports.xParserSpecParsed = 'x-parser-spec-parsed'; -exports.xParserSpecStringified = 'x-parser-spec-stringified'; -exports.xParserMessageName = 'x-parser-message-name'; -exports.xParserMessageParsed = 'x-parser-message-parsed'; -exports.xParserSchemaId = 'x-parser-schema-id'; -exports.xParserOriginalSchemaFormat = 'x-parser-original-schema-format'; -exports.xParserOriginalPayload = 'x-parser-original-payload'; -exports.xParserOriginalTraits = 'x-parser-original-traits'; -exports.xParserCircular = 'x-parser-circular'; -exports.xParserCircularProps = 'x-parser-circular-props'; -exports.EXTENSION_REGEX = /^x-[\w\d.\-_]+$/; -// Only >=2.0.0 versions are supported -exports.specVersions = Object.keys(specs_1.default).filter((version) => !['1.0.0', '1.1.0', '1.2.0', '2.0.0-rc1', '2.0.0-rc2'].includes(version)); -exports.lastVersion = exports.specVersions[exports.specVersions.length - 1]; diff --git a/cjs/custom-operations/anonymous-naming.d.ts b/cjs/custom-operations/anonymous-naming.d.ts deleted file mode 100644 index 25722cee7..000000000 --- a/cjs/custom-operations/anonymous-naming.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { AsyncAPIDocumentInterface } from '../models'; -export declare function anonymousNaming(document: AsyncAPIDocumentInterface): void; diff --git a/cjs/custom-operations/anonymous-naming.js b/cjs/custom-operations/anonymous-naming.js deleted file mode 100644 index 919dbb729..000000000 --- a/cjs/custom-operations/anonymous-naming.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.anonymousNaming = void 0; -const constants_1 = require("../constants"); -const iterator_1 = require("../iterator"); -const utils_1 = require("../utils"); -function anonymousNaming(document) { - assignNameToComponentMessages(document); - assignNameToAnonymousMessages(document); - assignUidToComponentSchemas(document); - assignUidToComponentParameterSchemas(document); - assignUidToChannelParameterSchemas(document); - assignUidToAnonymousSchemas(document); -} -exports.anonymousNaming = anonymousNaming; -function assignNameToComponentMessages(document) { - document.components().messages().forEach(message => { - if (message.name() === undefined) { - (0, utils_1.setExtension)(constants_1.xParserMessageName, message.id(), message); - } - }); -} -function assignNameToAnonymousMessages(document) { - let anonymousMessageCounter = 0; - document.messages().forEach(message => { - var _a; - if (message.name() === undefined && ((_a = message.extensions().get(constants_1.xParserMessageName)) === null || _a === void 0 ? void 0 : _a.value()) === undefined) { - (0, utils_1.setExtension)(constants_1.xParserMessageName, ``, message); - } - }); -} -function assignUidToComponentParameterSchemas(document) { - document.components().channelParameters().forEach(parameter => { - const schema = parameter.schema(); - if (schema && !schema.uid()) { - (0, utils_1.setExtension)(constants_1.xParserSchemaId, parameter.id(), schema); - } - }); -} -function assignUidToChannelParameterSchemas(document) { - document.channels().forEach(channel => { - channel.parameters().forEach(parameter => { - const schema = parameter.schema(); - if (schema && !schema.uid()) { - (0, utils_1.setExtension)(constants_1.xParserSchemaId, parameter.id(), schema); - } - }); - }); -} -function assignUidToComponentSchemas(document) { - document.components().schemas().forEach(schema => { - (0, utils_1.setExtension)(constants_1.xParserSchemaId, schema.uid(), schema); - }); -} -function assignUidToAnonymousSchemas(doc) { - let anonymousSchemaCounter = 0; - function callback(schema) { - if (!schema.uid()) { - (0, utils_1.setExtension)(constants_1.xParserSchemaId, ``, schema); - } - } - (0, iterator_1.traverseAsyncApiDocument)(doc, callback); -} diff --git a/cjs/custom-operations/apply-traits.d.ts b/cjs/custom-operations/apply-traits.d.ts deleted file mode 100644 index 1be880667..000000000 --- a/cjs/custom-operations/apply-traits.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { v2 } from '../spec-types'; -export declare function applyTraitsV2(asyncapi: v2.AsyncAPIObject): void; -export declare function applyTraitsV3(asyncapi: v2.AsyncAPIObject): void; diff --git a/cjs/custom-operations/apply-traits.js b/cjs/custom-operations/apply-traits.js deleted file mode 100644 index 6e0a02da7..000000000 --- a/cjs/custom-operations/apply-traits.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.applyTraitsV3 = exports.applyTraitsV2 = void 0; -const jsonpath_plus_1 = require("jsonpath-plus"); -const utils_1 = require("../utils"); -const v2TraitPaths = [ - // operations - '$.channels.*.[publish,subscribe]', - '$.components.channels.*.[publish,subscribe]', - // messages - '$.channels.*.[publish,subscribe].message', - '$.channels.*.[publish,subscribe].message.oneOf.*', - '$.components.channels.*.[publish,subscribe].message', - '$.components.channels.*.[publish,subscribe].message.oneOf.*', - '$.components.messages.*', -]; -function applyTraitsV2(asyncapi) { - applyAllTraits(asyncapi, v2TraitPaths); -} -exports.applyTraitsV2 = applyTraitsV2; -const v3TraitPaths = [ - // operations - '$.channels.*.[publish,subscribe]', - '$.components.channels.*.[publish,subscribe]', - // messages - '$.channels.*.[publish,subscribe].message', - '$.channels.*.[publish,subscribe].message.oneOf.*', - '$.components.channels.*.[publish,subscribe].message', - '$.components.channels.*.[publish,subscribe].message.oneOf.*', - '$.components.messages.*', -]; -function applyTraitsV3(asyncapi) { - applyAllTraits(asyncapi, v3TraitPaths); -} -exports.applyTraitsV3 = applyTraitsV3; -function applyAllTraits(asyncapi, paths) { - paths.forEach(path => { - (0, jsonpath_plus_1.JSONPath)({ - path, - json: asyncapi, - resultType: 'value', - callback(value) { applyTraits(value); }, - }); - }); -} -function applyTraits(value) { - if (Array.isArray(value.traits)) { - for (const trait of value.traits) { - for (const key in trait) { - value[String(key)] = (0, utils_1.mergePatch)(value[String(key)], trait[String(key)]); - } - } - } -} diff --git a/cjs/custom-operations/check-circular-refs.d.ts b/cjs/custom-operations/check-circular-refs.d.ts deleted file mode 100644 index b1189cdac..000000000 --- a/cjs/custom-operations/check-circular-refs.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { AsyncAPIDocumentInterface } from '../models'; -export declare function checkCircularRefs(document: AsyncAPIDocumentInterface): void; diff --git a/cjs/custom-operations/check-circular-refs.js b/cjs/custom-operations/check-circular-refs.js deleted file mode 100644 index b8f5ae282..000000000 --- a/cjs/custom-operations/check-circular-refs.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.checkCircularRefs = void 0; -const utils_1 = require("../utils"); -const constants_1 = require("../constants"); -function checkCircularRefs(document) { - if (hasInlineRef(document.json())) { - (0, utils_1.setExtension)(constants_1.xParserCircular, true, document); - } -} -exports.checkCircularRefs = checkCircularRefs; -function hasInlineRef(data) { - if (data && typeof data === 'object' && !Array.isArray(data)) { - if (Object.prototype.hasOwnProperty.call(data, '$ref')) { - return true; - } - for (const p in data) { - if (hasInlineRef(data[p])) { - return true; - } - } - } - return false; -} diff --git a/cjs/custom-operations/index.d.ts b/cjs/custom-operations/index.d.ts deleted file mode 100644 index 5a984a9f4..000000000 --- a/cjs/custom-operations/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { Parser } from '../parser'; -import type { ParseOptions } from '../parse'; -import type { AsyncAPIDocumentInterface } from '../models'; -import type { DetailedAsyncAPI } from '../types'; -export declare function customOperations(parser: Parser, document: AsyncAPIDocumentInterface, detailed: DetailedAsyncAPI, options: ParseOptions): Promise; diff --git a/cjs/custom-operations/index.js b/cjs/custom-operations/index.js deleted file mode 100644 index 5a10a3273..000000000 --- a/cjs/custom-operations/index.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.customOperations = void 0; -const apply_traits_1 = require("./apply-traits"); -const check_circular_refs_1 = require("./check-circular-refs"); -const parse_schema_1 = require("./parse-schema"); -const anonymous_naming_1 = require("./anonymous-naming"); -function customOperations(parser, document, detailed, options) { - return __awaiter(this, void 0, void 0, function* () { - switch (detailed.semver.major) { - case 2: return operationsV2(parser, document, detailed, options); - // case 3: return operationsV3(parser, document, detailed, options); - } - }); -} -exports.customOperations = customOperations; -function operationsV2(parser, document, detailed, options) { - return __awaiter(this, void 0, void 0, function* () { - (0, check_circular_refs_1.checkCircularRefs)(document); - (0, anonymous_naming_1.anonymousNaming)(document); - if (options.applyTraits) { - (0, apply_traits_1.applyTraitsV2)(detailed.parsed); - } - if (options.parseSchemas) { - yield (0, parse_schema_1.parseSchemasV2)(parser, detailed); - } - }); -} diff --git a/cjs/custom-operations/parse-schema.d.ts b/cjs/custom-operations/parse-schema.d.ts deleted file mode 100644 index 2bea575f6..000000000 --- a/cjs/custom-operations/parse-schema.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Parser } from '../parser'; -import type { DetailedAsyncAPI } from '../types'; -export declare function parseSchemasV2(parser: Parser, detailed: DetailedAsyncAPI): Promise; diff --git a/cjs/custom-operations/parse-schema.js b/cjs/custom-operations/parse-schema.js deleted file mode 100644 index 419825961..000000000 --- a/cjs/custom-operations/parse-schema.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseSchemasV2 = void 0; -const jsonpath_plus_1 = require("jsonpath-plus"); -const constants_1 = require("../constants"); -const schema_parser_1 = require("../schema-parser"); -const customSchemasPathsV2 = [ - // operations - '$.channels.*.[publish,subscribe].message', - '$.channels.*.[publish,subscribe].message.oneOf.*', - '$.components.channels.*.[publish,subscribe].message', - '$.components.channels.*.[publish,subscribe].message.oneOf.*', - // messages - '$.components.messages.*', -]; -function parseSchemasV2(parser, detailed) { - return __awaiter(this, void 0, void 0, function* () { - const defaultSchemaFormat = (0, schema_parser_1.getDefaultSchemaFormat)(detailed.semver.version); - const parseItems = []; - const visited = new Set(); - customSchemasPathsV2.forEach(path => { - (0, jsonpath_plus_1.JSONPath)({ - path, - json: detailed.parsed, - resultType: 'all', - callback(result) { - const value = result.value; - if (visited.has(value)) { - return; - } - visited.add(value); - const payload = value.payload; - if (!payload) { - return; - } - const schemaFormat = (0, schema_parser_1.getSchemaFormat)(value.schemaFormat, detailed.semver.version); - parseItems.push({ - input: { - asyncapi: detailed, - data: payload, - meta: { - message: value, - }, - path: [...splitPath(result.path), 'payload'], - schemaFormat, - defaultSchemaFormat, - }, - value, - }); - }, - }); - }); - return Promise.all(parseItems.map(item => parseSchemaV2(parser, item))); - }); -} -exports.parseSchemasV2 = parseSchemasV2; -function parseSchemaV2(parser, item) { - return __awaiter(this, void 0, void 0, function* () { - const originalData = item.input.data; - const parsedData = item.value.payload = yield (0, schema_parser_1.parseSchema)(parser, item.input); - // save original payload only when data is different (returned by custom parsers) - if (originalData !== parsedData) { - item.value[constants_1.xParserOriginalPayload] = originalData; - } - }); -} -function splitPath(path) { - // remove $[' from beginning and '] at the end and split by '][' - return path.slice(3).slice(0, -2).split('\'][\''); -} diff --git a/cjs/document.d.ts b/cjs/document.d.ts deleted file mode 100644 index 5707f70cf..000000000 --- a/cjs/document.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { AsyncAPIDocumentInterface } from './models'; -import type { DetailedAsyncAPI } from './types'; -export declare function createAsyncAPIDocument(asyncapi: DetailedAsyncAPI): AsyncAPIDocumentInterface; -export declare function toAsyncAPIDocument(maybeDoc: unknown): AsyncAPIDocumentInterface | undefined; -export declare function isAsyncAPIDocument(maybeDoc: unknown): maybeDoc is AsyncAPIDocumentInterface; -export declare function isParsedDocument(maybeDoc: unknown): maybeDoc is Record; -export declare function isStringifiedDocument(maybeDoc: unknown): maybeDoc is Record; diff --git a/cjs/document.js b/cjs/document.js deleted file mode 100644 index 607160e1a..000000000 --- a/cjs/document.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isStringifiedDocument = exports.isParsedDocument = exports.isAsyncAPIDocument = exports.toAsyncAPIDocument = exports.createAsyncAPIDocument = void 0; -const models_1 = require("./models"); -const stringify_1 = require("./stringify"); -const utils_1 = require("./utils"); -const constants_1 = require("./constants"); -function createAsyncAPIDocument(asyncapi) { - switch (asyncapi.semver.major) { - case 2: - return new models_1.AsyncAPIDocumentV2(asyncapi.parsed, { asyncapi, pointer: '/' }); - // case 3: - // return new AsyncAPIDocumentV3(asyncapi.parsed, { asyncapi, pointer: '/' }); - default: - throw new Error(`Unsupported AsyncAPI version: ${asyncapi.semver.version}`); - } -} -exports.createAsyncAPIDocument = createAsyncAPIDocument; -function toAsyncAPIDocument(maybeDoc) { - if (isAsyncAPIDocument(maybeDoc)) { - return maybeDoc; - } - if (!isParsedDocument(maybeDoc)) { - return; - } - return (0, stringify_1.unstringify)(maybeDoc) || createAsyncAPIDocument((0, utils_1.createDetailedAsyncAPI)(maybeDoc, maybeDoc)); -} -exports.toAsyncAPIDocument = toAsyncAPIDocument; -function isAsyncAPIDocument(maybeDoc) { - return maybeDoc instanceof models_1.AsyncAPIDocumentV2 || maybeDoc instanceof models_1.AsyncAPIDocumentV3; -} -exports.isAsyncAPIDocument = isAsyncAPIDocument; -function isParsedDocument(maybeDoc) { - if (typeof maybeDoc !== 'object' || maybeDoc === null) { - return false; - } - return Boolean(maybeDoc[constants_1.xParserSpecParsed]); -} -exports.isParsedDocument = isParsedDocument; -function isStringifiedDocument(maybeDoc) { - if (typeof maybeDoc !== 'object' || maybeDoc === null) { - return false; - } - return (Boolean(maybeDoc[constants_1.xParserSpecParsed]) && - Boolean(maybeDoc[constants_1.xParserSpecStringified])); -} -exports.isStringifiedDocument = isStringifiedDocument; diff --git a/cjs/from.d.ts b/cjs/from.d.ts deleted file mode 100644 index 8b3731a20..000000000 --- a/cjs/from.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// -import { readFile } from 'fs/promises'; -import type { RequestInit } from 'node-fetch'; -import type { Parser } from './parser'; -import type { ParseOptions, ParseOutput } from './parse'; -import type { ValidateOptions } from './validate'; -import type { Diagnostic } from './types'; -interface FromResult { - parse: (options?: ParseOptions) => Promise; - validate: (options?: ValidateOptions) => Promise; -} -export declare function fromURL(parser: Parser, source: string, options?: RequestInit): FromResult; -export declare function fromFile(parser: Parser, source: string, options?: Parameters[1]): FromResult; -export {}; diff --git a/cjs/from.js b/cjs/from.js deleted file mode 100644 index 7185dbfb8..000000000 --- a/cjs/from.js +++ /dev/null @@ -1,93 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromFile = exports.fromURL = void 0; -const promises_1 = require("fs/promises"); -function fromURL(parser, source, options) { - function fetchUrl() { - return __awaiter(this, void 0, void 0, function* () { - const fetchFn = yield getFetch(); - return (yield fetchFn(source, options)).text(); - }); - } - return { - parse(options = {}) { - return __awaiter(this, void 0, void 0, function* () { - const schema = yield fetchUrl(); - return parser.parse(schema, Object.assign(Object.assign({}, options), { source })); - }); - }, - validate(options = {}) { - return __awaiter(this, void 0, void 0, function* () { - const schema = yield fetchUrl(); - return parser.validate(schema, Object.assign(Object.assign({}, options), { source })); - }); - } - }; -} -exports.fromURL = fromURL; -function fromFile(parser, source, options) { - function readFileFn() { - return __awaiter(this, void 0, void 0, function* () { - return (yield (0, promises_1.readFile)(source, options)).toString(); - }); - } - return { - parse(options = {}) { - return __awaiter(this, void 0, void 0, function* () { - const schema = yield readFileFn(); - return parser.parse(schema, Object.assign(Object.assign({}, options), { source })); - }); - }, - validate(options = {}) { - return __awaiter(this, void 0, void 0, function* () { - const schema = yield readFileFn(); - return parser.validate(schema, Object.assign(Object.assign({}, options), { source })); - }); - } - }; -} -exports.fromFile = fromFile; -let __fetchFn; -function getFetch() { - return __awaiter(this, void 0, void 0, function* () { - if (__fetchFn) { - return __fetchFn; - } - if (typeof fetch === 'undefined') { - return __fetchFn = (yield Promise.resolve().then(() => __importStar(require('node-fetch')))).default; - } - return (__fetchFn = fetch); - }); -} diff --git a/cjs/index.d.ts b/cjs/index.d.ts deleted file mode 100644 index 59f3be0bb..000000000 --- a/cjs/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Parser } from './parser'; -export * from './models'; -export { Parser }; -export { stringify, unstringify } from './stringify'; -export { fromURL, fromFile } from './from'; -export { AsyncAPIDocument as OldAsyncAPIDocument } from './old-api/asyncapi'; -export { convertToOldAPI } from './old-api/converter'; -export type { AsyncAPISemver, Input, Diagnostic, SchemaValidateResult } from './types'; -export type { ValidateOptions, ValidateOutput } from './validate'; -export type { ParseOptions, ParseOutput } from './parse'; -export type { StringifyOptions } from './stringify'; -export type { ValidateSchemaInput, ParseSchemaInput, SchemaParser } from './schema-parser'; -export default Parser; diff --git a/cjs/index.js b/cjs/index.js deleted file mode 100644 index d4eabd3b9..000000000 --- a/cjs/index.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.convertToOldAPI = exports.OldAsyncAPIDocument = exports.fromFile = exports.fromURL = exports.unstringify = exports.stringify = exports.Parser = void 0; -const parser_1 = require("./parser"); -Object.defineProperty(exports, "Parser", { enumerable: true, get: function () { return parser_1.Parser; } }); -__exportStar(require("./models"), exports); -var stringify_1 = require("./stringify"); -Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return stringify_1.stringify; } }); -Object.defineProperty(exports, "unstringify", { enumerable: true, get: function () { return stringify_1.unstringify; } }); -var from_1 = require("./from"); -Object.defineProperty(exports, "fromURL", { enumerable: true, get: function () { return from_1.fromURL; } }); -Object.defineProperty(exports, "fromFile", { enumerable: true, get: function () { return from_1.fromFile; } }); -var asyncapi_1 = require("./old-api/asyncapi"); -Object.defineProperty(exports, "OldAsyncAPIDocument", { enumerable: true, get: function () { return asyncapi_1.AsyncAPIDocument; } }); -var converter_1 = require("./old-api/converter"); -Object.defineProperty(exports, "convertToOldAPI", { enumerable: true, get: function () { return converter_1.convertToOldAPI; } }); -exports.default = parser_1.Parser; diff --git a/cjs/iterator.d.ts b/cjs/iterator.d.ts deleted file mode 100644 index 627928ce4..000000000 --- a/cjs/iterator.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import type { AsyncAPIDocumentInterface } from './models/asyncapi'; -import type { SchemaInterface } from './models/schema'; -/** - * The different kind of stages when crawling a schema. - */ -export declare enum SchemaIteratorCallbackType { - NEW_SCHEMA = "NEW_SCHEMA", - END_SCHEMA = "END_SCHEMA" -} -/** - * The different types of schemas you can iterate - */ -export declare enum SchemaTypesToIterate { - Parameters = "parameters", - Payloads = "payloads", - Headers = "headers", - Components = "components", - Objects = "objects", - Arrays = "arrays", - OneOfs = "oneOfs", - AllOfs = "allOfs", - AnyOfs = "anyOfs", - Nots = "nots", - PropertyNames = "propertyNames", - PatternProperties = "patternProperties", - Contains = "contains", - Ifs = "ifs", - Thenes = "thenes", - Elses = "elses", - Dependencies = "dependencies", - Definitions = "definitions" -} -export declare type TraverseOptions = { - callback: TraverseCallback; - schemaTypesToIterate: Array<`${SchemaTypesToIterate}`>; - seenSchemas: Set; -}; -export declare type TraverseCallback = (schema: SchemaInterface, propOrIndex: string | number | null, callbackType: SchemaIteratorCallbackType) => boolean | void; -/** - * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. - */ -export declare function traverseAsyncApiDocument(doc: AsyncAPIDocumentInterface, callback: TraverseCallback, schemaTypesToIterate?: Array<`${SchemaTypesToIterate}`>): void; diff --git a/cjs/iterator.js b/cjs/iterator.js deleted file mode 100644 index 70551eac7..000000000 --- a/cjs/iterator.js +++ /dev/null @@ -1,228 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.traverseAsyncApiDocument = exports.SchemaTypesToIterate = exports.SchemaIteratorCallbackType = void 0; -/** - * The different kind of stages when crawling a schema. - */ -var SchemaIteratorCallbackType; -(function (SchemaIteratorCallbackType) { - SchemaIteratorCallbackType["NEW_SCHEMA"] = "NEW_SCHEMA"; - SchemaIteratorCallbackType["END_SCHEMA"] = "END_SCHEMA"; -})(SchemaIteratorCallbackType = exports.SchemaIteratorCallbackType || (exports.SchemaIteratorCallbackType = {})); -/** - * The different types of schemas you can iterate - */ -var SchemaTypesToIterate; -(function (SchemaTypesToIterate) { - SchemaTypesToIterate["Parameters"] = "parameters"; - SchemaTypesToIterate["Payloads"] = "payloads"; - SchemaTypesToIterate["Headers"] = "headers"; - SchemaTypesToIterate["Components"] = "components"; - SchemaTypesToIterate["Objects"] = "objects"; - SchemaTypesToIterate["Arrays"] = "arrays"; - SchemaTypesToIterate["OneOfs"] = "oneOfs"; - SchemaTypesToIterate["AllOfs"] = "allOfs"; - SchemaTypesToIterate["AnyOfs"] = "anyOfs"; - SchemaTypesToIterate["Nots"] = "nots"; - SchemaTypesToIterate["PropertyNames"] = "propertyNames"; - SchemaTypesToIterate["PatternProperties"] = "patternProperties"; - SchemaTypesToIterate["Contains"] = "contains"; - SchemaTypesToIterate["Ifs"] = "ifs"; - SchemaTypesToIterate["Thenes"] = "thenes"; - SchemaTypesToIterate["Elses"] = "elses"; - SchemaTypesToIterate["Dependencies"] = "dependencies"; - SchemaTypesToIterate["Definitions"] = "definitions"; -})(SchemaTypesToIterate = exports.SchemaTypesToIterate || (exports.SchemaTypesToIterate = {})); -/** - * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. - */ -function traverseAsyncApiDocument(doc, callback, schemaTypesToIterate = []) { - if (schemaTypesToIterate.length === 0) { - schemaTypesToIterate = Object.values(SchemaTypesToIterate); - } - const options = { callback, schemaTypesToIterate, seenSchemas: new Set() }; - if (!doc.channels().isEmpty()) { - doc.channels().all().forEach(channel => { - traverseChannel(channel, options); - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Components) && !doc.components().isEmpty()) { - const components = doc.components(); - Object.values(components.messages().all() || {}).forEach(message => { - traverseMessage(message, options); - }); - Object.values(components.schemas().all() || {}).forEach(schema => { - traverseSchema(schema, null, options); - }); - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Parameters)) { - Object.values(components.channelParameters().filterBy((param) => { return param.hasSchema(); })).forEach(parameter => { - traverseSchema(parameter.schema(), null, options); - }); - } - Object.values(components.messageTraits().all() || {}).forEach(messageTrait => { - traverseMessageTrait(messageTrait, options); - }); - } -} -exports.traverseAsyncApiDocument = traverseAsyncApiDocument; -/* eslint-disable sonarjs/cognitive-complexity */ -/** - * Traverse current schema and all nested schemas. - */ -function traverseSchema(schema, propOrIndex, options) { - if (!schema) - return; - const { schemaTypesToIterate, callback, seenSchemas } = options; - // handle circular references - const jsonSchema = schema.json(); - if (seenSchemas.has(jsonSchema)) - return; - seenSchemas.add(jsonSchema); - // `type` isn't required so save type as array in the fallback - let types = schema.type() || []; - // change primitive type to array of types for easier handling - if (!Array.isArray(types)) { - types = [types]; - } - if (!schemaTypesToIterate.includes(SchemaTypesToIterate.Objects) && types.includes('object')) - return; - if (!schemaTypesToIterate.includes(SchemaTypesToIterate.Arrays) && types.includes('array')) - return; - // check callback `NEW_SCHEMA` case - if (callback(schema, propOrIndex, SchemaIteratorCallbackType.NEW_SCHEMA) === false) - return; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Objects) && types.includes('object')) { - recursiveSchemaObject(schema, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Arrays) && types.includes('array')) { - recursiveSchemaArray(schema, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.OneOfs)) { - (schema.oneOf() || []).forEach((combineSchema, idx) => { - traverseSchema(combineSchema, idx, options); - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.AnyOfs)) { - (schema.anyOf() || []).forEach((combineSchema, idx) => { - traverseSchema(combineSchema, idx, options); - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.AllOfs)) { - (schema.allOf() || []).forEach((combineSchema, idx) => { - traverseSchema(combineSchema, idx, options); - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Nots) && schema.not()) { - traverseSchema(schema.not(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Ifs) && schema.if()) { - traverseSchema(schema.if(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Thenes) && schema.then()) { - traverseSchema(schema.then(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Elses) && schema.else()) { - traverseSchema(schema.else(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Dependencies)) { - Object.entries(schema.dependencies() || {}).forEach(([depName, dep]) => { - // do not iterate dependent required - if (dep && !Array.isArray(dep)) { - traverseSchema(dep, depName, options); - } - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Definitions)) { - Object.entries(schema.definitions() || {}).forEach(([defName, def]) => { - traverseSchema(def, defName, options); - }); - } - callback(schema, propOrIndex, SchemaIteratorCallbackType.END_SCHEMA); - seenSchemas.delete(jsonSchema); -} -/* eslint-enable sonarjs/cognitive-complexity */ -/** - * Recursively go through schema of object type and execute callback. - */ -function recursiveSchemaObject(schema, options) { - Object.entries(schema.properties() || {}).forEach(([propertyName, property]) => { - traverseSchema(property, propertyName, options); - }); - const additionalProperties = schema.additionalProperties(); - if (typeof additionalProperties === 'object') { - traverseSchema(additionalProperties, null, options); - } - const schemaTypesToIterate = options.schemaTypesToIterate; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.PropertyNames) && schema.propertyNames()) { - traverseSchema(schema.propertyNames(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.PatternProperties)) { - Object.entries(schema.patternProperties() || {}).forEach(([propertyName, property]) => { - traverseSchema(property, propertyName, options); - }); - } -} -/** - * Recursively go through schema of array type and execute callback. - */ -function recursiveSchemaArray(schema, options) { - const items = schema.items(); - if (items) { - if (Array.isArray(items)) { - items.forEach((item, idx) => { - traverseSchema(item, idx, options); - }); - } - else { - traverseSchema(items, null, options); - } - } - const additionalItems = schema.additionalItems(); - if (typeof additionalItems === 'object') { - traverseSchema(additionalItems, null, options); - } - if (options.schemaTypesToIterate.includes('contains') && schema.contains()) { - traverseSchema(schema.contains(), null, options); - } -} -/** - * Go through each schema in channel - */ -function traverseChannel(channel, options) { - if (!channel) - return; - const { schemaTypesToIterate } = options; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Parameters)) { - Object.values(channel.parameters().filterBy((param) => { return param.hasSchema(); }) || {}).forEach(parameter => { - traverseSchema(parameter.schema(), null, options); - }); - } - channel.messages().all().forEach(message => { - traverseMessage(message, options); - }); -} -/** - * Go through each schema in a message - */ -function traverseMessage(message, options) { - if (!message) - return; - const { schemaTypesToIterate } = options; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Headers) && message.hasHeaders()) { - traverseSchema(message.headers(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Payloads) && message.hasPayload()) { - traverseSchema(message.payload(), null, options); - } -} -/** - * Go through each schema in a messageTrait - */ -function traverseMessageTrait(messageTrait, options) { - if (!messageTrait) - return; - const { schemaTypesToIterate } = options; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Headers) && messageTrait.hasHeaders()) { - traverseSchema(messageTrait.headers(), null, options); - } -} diff --git a/cjs/models/asyncapi.d.ts b/cjs/models/asyncapi.d.ts deleted file mode 100644 index f357456fe..000000000 --- a/cjs/models/asyncapi.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import type { BaseModel } from './base'; -import type { InfoInterface } from './info'; -import type { ChannelsInterface } from './channels'; -import type { ComponentsInterface } from './components'; -import type { MessagesInterface } from './messages'; -import type { ExtensionsMixinInterface } from './mixins'; -import type { OperationsInterface } from './operations'; -import type { SchemasInterface } from './schemas'; -import type { SecuritySchemesInterface } from './security-schemes'; -import type { ServersInterface } from './servers'; -import type { v2 } from '../spec-types'; -export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInterface { - version(): string; - defaultContentType(): string | undefined; - hasDefaultContentType(): boolean; - info(): InfoInterface; - servers(): ServersInterface; - channels(): ChannelsInterface; - operations(): OperationsInterface; - messages(): MessagesInterface; - schemas(): SchemasInterface; - securitySchemes(): SecuritySchemesInterface; - components(): ComponentsInterface; -} diff --git a/cjs/models/asyncapi.js b/cjs/models/asyncapi.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/asyncapi.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/base.d.ts b/cjs/models/base.d.ts deleted file mode 100644 index 29aa35fa2..000000000 --- a/cjs/models/base.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { Constructor, InferModelData, InferModelMetadata } from './utils'; -import type { DetailedAsyncAPI } from '../types'; -export interface ModelMetadata { - asyncapi: DetailedAsyncAPI; - pointer: string; -} -export declare abstract class BaseModel = {}> { - protected readonly _json: J; - protected readonly _meta: ModelMetadata & M; - constructor(_json: J, _meta?: ModelMetadata & M); - json(): T; - json(key: K): J[K]; - meta(): ModelMetadata & M; - meta(key: K): (ModelMetadata & M)[K]; - jsonPath(field?: string | undefined): string; - protected createModel(Model: Constructor, value: InferModelData, meta: Omit & InferModelMetadata): T; -} diff --git a/cjs/models/base.js b/cjs/models/base.js deleted file mode 100644 index 26ea67cbb..000000000 --- a/cjs/models/base.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BaseModel = void 0; -class BaseModel { - constructor(_json, _meta = {}) { - this._json = _json; - this._meta = _meta; - } - json(key) { - if (key === undefined) - return this._json; - if (this._json === null || this._json === undefined) - return this._json; - return this._json[key]; - } - meta(key) { - if (key === undefined) - return this._meta; - if (!this._meta) - return; - return this._meta[key]; - } - jsonPath(field) { - if (typeof field !== 'string') { - return this._meta.pointer; - } - return `${this._meta.pointer}/${field}`; - } - createModel(Model, value, meta) { - return new Model(value, Object.assign(Object.assign({}, meta), { asyncapi: this._meta.asyncapi })); - } -} -exports.BaseModel = BaseModel; diff --git a/cjs/models/binding.d.ts b/cjs/models/binding.d.ts deleted file mode 100644 index d63cbb8d2..000000000 --- a/cjs/models/binding.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { BaseModel } from './base'; -import type { ExtensionsMixinInterface } from './mixins'; -export interface BindingInterface = Record> extends BaseModel, ExtensionsMixinInterface { - protocol(): string; - version(): string; - value(): V; -} diff --git a/cjs/models/binding.js b/cjs/models/binding.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/binding.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/bindings.d.ts b/cjs/models/bindings.d.ts deleted file mode 100644 index a9e00490d..000000000 --- a/cjs/models/bindings.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { Collection } from './collection'; -import type { BindingInterface } from './binding'; -import type { ExtensionsMixinInterface } from './mixins'; -export interface BindingsInterface extends Collection, ExtensionsMixinInterface { -} diff --git a/cjs/models/bindings.js b/cjs/models/bindings.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/bindings.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/channel-parameter.d.ts b/cjs/models/channel-parameter.d.ts deleted file mode 100644 index 3c787dbd1..000000000 --- a/cjs/models/channel-parameter.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { BaseModel } from './base'; -import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; -import type { SchemaInterface } from './schema'; -export interface ChannelParameterInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { - id(): string; - hasSchema(): boolean; - schema(): SchemaInterface | undefined; - hasLocation(): boolean; - location(): string | undefined; -} diff --git a/cjs/models/channel-parameter.js b/cjs/models/channel-parameter.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/channel-parameter.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/channel-parameters.d.ts b/cjs/models/channel-parameters.d.ts deleted file mode 100644 index 599627b77..000000000 --- a/cjs/models/channel-parameters.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { ChannelParameterInterface } from './channel-parameter'; -export declare type ChannelParametersInterface = Collection; diff --git a/cjs/models/channel-parameters.js b/cjs/models/channel-parameters.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/channel-parameters.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/channel.d.ts b/cjs/models/channel.d.ts deleted file mode 100644 index 404e37d63..000000000 --- a/cjs/models/channel.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { BaseModel } from './base'; -import type { ChannelParametersInterface } from './channel-parameters'; -import type { MessagesInterface } from './messages'; -import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; -import type { OperationsInterface } from './operations'; -import type { ServersInterface } from './servers'; -export interface ChannelInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface { - id(): string; - address(): string; - servers(): ServersInterface; - operations(): OperationsInterface; - messages(): MessagesInterface; - parameters(): ChannelParametersInterface; -} diff --git a/cjs/models/channel.js b/cjs/models/channel.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/channel.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/channels.d.ts b/cjs/models/channels.d.ts deleted file mode 100644 index 028bd4a96..000000000 --- a/cjs/models/channels.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { Collection } from './collection'; -import type { ChannelInterface } from './channel'; -export interface ChannelsInterface extends Collection { - filterBySend(): ChannelInterface[]; - filterByReceive(): ChannelInterface[]; -} diff --git a/cjs/models/channels.js b/cjs/models/channels.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/channels.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/collection.d.ts b/cjs/models/collection.d.ts deleted file mode 100644 index 6c23e3b73..000000000 --- a/cjs/models/collection.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { BaseModel } from './base'; -import type { DetailedAsyncAPI } from '../types'; -export interface CollectionMetadata { - originalData?: Record; - asyncapi?: DetailedAsyncAPI; - pointer?: string; -} -export declare abstract class Collection = {}> extends Array { - protected readonly collections: T[]; - protected readonly _meta: CollectionMetadata & M; - constructor(collections: T[], _meta?: CollectionMetadata & M); - abstract get(id: string): T | undefined; - has(id: string): boolean; - all(): T[]; - isEmpty(): boolean; - filterBy(filter: (item: T) => boolean): T[]; - meta(): CollectionMetadata & M; - meta & M)>(key: K): (CollectionMetadata & M)[K]; -} diff --git a/cjs/models/collection.js b/cjs/models/collection.js deleted file mode 100644 index 24ebf1e84..000000000 --- a/cjs/models/collection.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Collection = void 0; -class Collection extends Array { - constructor(collections, _meta = {}) { - super(...collections); - this.collections = collections; - this._meta = _meta; - } - has(id) { - return typeof this.get(id) !== 'undefined'; - } - all() { - return this.collections; - } - isEmpty() { - return this.collections.length === 0; - } - filterBy(filter) { - return this.collections.filter(filter); - } - meta(key) { - if (key === undefined) - return this._meta; - if (!this._meta) - return; - return this._meta[String(key)]; - } -} -exports.Collection = Collection; diff --git a/cjs/models/components.d.ts b/cjs/models/components.d.ts deleted file mode 100644 index ce8c4f7e7..000000000 --- a/cjs/models/components.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type { BaseModel } from './base'; -import type { BindingsInterface } from './bindings'; -import type { ExtensionsMixinInterface } from './mixins'; -import type { ServersInterface } from './servers'; -import type { ChannelsInterface } from './channels'; -import type { MessagesInterface } from './messages'; -import type { SchemasInterface } from './schemas'; -import type { ChannelParametersInterface } from './channel-parameters'; -import type { ServerVariablesInterface } from './server-variables'; -import type { OperationTraitsInterface } from './operation-traits'; -import type { MessageTraitsInterface } from './message-traits'; -import type { SecuritySchemesInterface } from './security-schemes'; -import type { CorrelationIdsInterface } from './correlation-ids'; -import type { OperationsInterface } from './operations'; -export interface ComponentsInterface extends BaseModel, ExtensionsMixinInterface { - servers(): ServersInterface; - channels(): ChannelsInterface; - messages(): MessagesInterface; - schemas(): SchemasInterface; - channelParameters(): ChannelParametersInterface; - serverVariables(): ServerVariablesInterface; - operations(): OperationsInterface; - operationTraits(): OperationTraitsInterface; - messageTraits(): MessageTraitsInterface; - correlationIds(): CorrelationIdsInterface; - securitySchemes(): SecuritySchemesInterface; - serverBindings(): Record; - channelBindings(): Record; - operationBindings(): Record; - messageBindings(): Record; - isEmpty(): boolean; -} diff --git a/cjs/models/components.js b/cjs/models/components.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/components.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/contact.d.ts b/cjs/models/contact.d.ts deleted file mode 100644 index 79bf79984..000000000 --- a/cjs/models/contact.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { BaseModel } from './base'; -import type { ExtensionsMixinInterface } from './mixins'; -export interface ContactInterface extends BaseModel, ExtensionsMixinInterface { - hasName(): boolean; - name(): string | undefined; - hasUrl(): boolean; - url(): string | undefined; - hasEmail(): boolean; - email(): string | undefined; -} diff --git a/cjs/models/contact.js b/cjs/models/contact.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/contact.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/correlation-id.d.ts b/cjs/models/correlation-id.d.ts deleted file mode 100644 index 690a0dbdc..000000000 --- a/cjs/models/correlation-id.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { BaseModel } from './base'; -import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; -export interface CorrelationIdInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { - hasLocation(): boolean; - location(): string | undefined; -} diff --git a/cjs/models/correlation-id.js b/cjs/models/correlation-id.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/correlation-id.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/correlation-ids.d.ts b/cjs/models/correlation-ids.d.ts deleted file mode 100644 index 09dba456b..000000000 --- a/cjs/models/correlation-ids.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { CorrelationIdInterface } from './correlation-id'; -export declare type CorrelationIdsInterface = Collection; diff --git a/cjs/models/correlation-ids.js b/cjs/models/correlation-ids.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/correlation-ids.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/extension.d.ts b/cjs/models/extension.d.ts deleted file mode 100644 index 9772edf4a..000000000 --- a/cjs/models/extension.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { BaseModel } from './base'; -export interface ExtensionInterface extends BaseModel { - id(): string; - version(): string; - value(): V; -} diff --git a/cjs/models/extension.js b/cjs/models/extension.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/extension.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/extensions.d.ts b/cjs/models/extensions.d.ts deleted file mode 100644 index a4d4e393f..000000000 --- a/cjs/models/extensions.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { ExtensionInterface } from './extension'; -export declare type ExtensionsInterface = Collection; diff --git a/cjs/models/extensions.js b/cjs/models/extensions.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/extensions.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/external-docs.d.ts b/cjs/models/external-docs.d.ts deleted file mode 100644 index bca1e1fef..000000000 --- a/cjs/models/external-docs.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { BaseModel } from './base'; -import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; -export interface ExternalDocumentationInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { - url(): string; -} diff --git a/cjs/models/external-docs.js b/cjs/models/external-docs.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/external-docs.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/index.d.ts b/cjs/models/index.d.ts deleted file mode 100644 index 72c426a08..000000000 --- a/cjs/models/index.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -export * from './v2'; -export * from './v3'; -export * from './asyncapi'; -export * from './base'; -export * from './binding'; -export * from './bindings'; -export * from './channel-parameter'; -export * from './channel-parameters'; -export * from './channel'; -export * from './channels'; -export * from './collection'; -export * from './components'; -export * from './contact'; -export * from './correlation-id'; -export * from './correlation-ids'; -export * from './extension'; -export * from './extensions'; -export * from './external-docs'; -export * from './info'; -export * from './license'; -export * from './message-example'; -export * from './message-examples'; -export * from './message-trait'; -export * from './message-traits'; -export * from './message'; -export * from './messages'; -export * from './oauth-flow'; -export * from './oauth-flows'; -export * from './operation-trait'; -export * from './operation-traits'; -export * from './operation'; -export * from './operations'; -export * from './schema'; -export * from './schemas'; -export * from './security-requirement'; -export * from './security-requirements'; -export * from './security-scheme'; -export * from './security-schemes'; -export * from './server-variable'; -export * from './server-variables'; -export * from './server'; -export * from './servers'; -export * from './tag'; -export * from './tags'; diff --git a/cjs/models/index.js b/cjs/models/index.js deleted file mode 100644 index 72a853e76..000000000 --- a/cjs/models/index.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./v2"), exports); -__exportStar(require("./v3"), exports); -__exportStar(require("./asyncapi"), exports); -__exportStar(require("./base"), exports); -__exportStar(require("./binding"), exports); -__exportStar(require("./bindings"), exports); -__exportStar(require("./channel-parameter"), exports); -__exportStar(require("./channel-parameters"), exports); -__exportStar(require("./channel"), exports); -__exportStar(require("./channels"), exports); -__exportStar(require("./collection"), exports); -__exportStar(require("./components"), exports); -__exportStar(require("./contact"), exports); -__exportStar(require("./correlation-id"), exports); -__exportStar(require("./correlation-ids"), exports); -__exportStar(require("./extension"), exports); -__exportStar(require("./extensions"), exports); -__exportStar(require("./external-docs"), exports); -__exportStar(require("./info"), exports); -__exportStar(require("./license"), exports); -__exportStar(require("./message-example"), exports); -__exportStar(require("./message-examples"), exports); -__exportStar(require("./message-trait"), exports); -__exportStar(require("./message-traits"), exports); -__exportStar(require("./message"), exports); -__exportStar(require("./messages"), exports); -__exportStar(require("./oauth-flow"), exports); -__exportStar(require("./oauth-flows"), exports); -__exportStar(require("./operation-trait"), exports); -__exportStar(require("./operation-traits"), exports); -__exportStar(require("./operation"), exports); -__exportStar(require("./operations"), exports); -__exportStar(require("./schema"), exports); -__exportStar(require("./schemas"), exports); -__exportStar(require("./security-requirement"), exports); -__exportStar(require("./security-requirements"), exports); -__exportStar(require("./security-scheme"), exports); -__exportStar(require("./security-schemes"), exports); -__exportStar(require("./server-variable"), exports); -__exportStar(require("./server-variables"), exports); -__exportStar(require("./server"), exports); -__exportStar(require("./servers"), exports); -__exportStar(require("./tag"), exports); -__exportStar(require("./tags"), exports); diff --git a/cjs/models/info.d.ts b/cjs/models/info.d.ts deleted file mode 100644 index 33ce92d33..000000000 --- a/cjs/models/info.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { ContactInterface } from './contact'; -import type { LicenseInterface } from './license'; -import type { BaseModel } from './base'; -import type { DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; -export interface InfoInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { - title(): string; - version(): string; - hasId(): boolean; - id(): string | undefined; - hasTermsOfService(): boolean; - termsOfService(): string | undefined; - hasContact(): boolean; - contact(): ContactInterface | undefined; - hasLicense(): boolean; - license(): LicenseInterface | undefined; -} diff --git a/cjs/models/info.js b/cjs/models/info.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/info.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/license.d.ts b/cjs/models/license.d.ts deleted file mode 100644 index 55d4949b0..000000000 --- a/cjs/models/license.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { BaseModel } from './base'; -import type { ExtensionsMixinInterface } from './mixins'; -export interface LicenseInterface extends BaseModel, ExtensionsMixinInterface { - name(): string; - hasUrl(): boolean; - url(): string | undefined; -} diff --git a/cjs/models/license.js b/cjs/models/license.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/license.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/message-example.d.ts b/cjs/models/message-example.d.ts deleted file mode 100644 index f929d876f..000000000 --- a/cjs/models/message-example.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { BaseModel } from './base'; -import type { ExtensionsMixinInterface } from './mixins'; -export interface MessageExampleInterface extends BaseModel, ExtensionsMixinInterface { - hasName(): boolean; - name(): string | undefined; - hasSummary(): boolean; - summary(): string | undefined; - hasHeaders(): boolean; - headers(): Record | undefined; - hasPayload(): boolean; - payload(): Record | undefined; -} diff --git a/cjs/models/message-example.js b/cjs/models/message-example.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/message-example.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/message-examples.d.ts b/cjs/models/message-examples.d.ts deleted file mode 100644 index de760b44a..000000000 --- a/cjs/models/message-examples.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { MessageExampleInterface } from './message-example'; -export declare type MessageExamplesInterface = Collection; diff --git a/cjs/models/message-examples.js b/cjs/models/message-examples.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/message-examples.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/message-trait.d.ts b/cjs/models/message-trait.d.ts deleted file mode 100644 index 072afe0b3..000000000 --- a/cjs/models/message-trait.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import type { BaseModel } from './base'; -import type { CorrelationIdInterface } from './correlation-id'; -import type { MessageExamplesInterface } from './message-examples'; -import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; -import type { SchemaInterface } from './schema'; -export interface MessageTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { - id(): string; - schemaFormat(): string; - hasMessageId(): boolean; - messageId(): string | undefined; - hasCorrelationId(): boolean; - correlationId(): CorrelationIdInterface | undefined; - hasContentType(): boolean; - contentType(): string | undefined; - hasHeaders(): boolean; - headers(): SchemaInterface | undefined; - hasName(): boolean; - name(): string | undefined; - hasTitle(): boolean; - title(): string | undefined; - hasSummary(): boolean; - summary(): string | undefined; - examples(): MessageExamplesInterface; -} diff --git a/cjs/models/message-trait.js b/cjs/models/message-trait.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/message-trait.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/message-traits.d.ts b/cjs/models/message-traits.d.ts deleted file mode 100644 index e440e2a55..000000000 --- a/cjs/models/message-traits.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { MessageTraitInterface } from './message-trait'; -export declare type MessageTraitsInterface = Collection; diff --git a/cjs/models/message-traits.js b/cjs/models/message-traits.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/message-traits.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/message.d.ts b/cjs/models/message.d.ts deleted file mode 100644 index c030c3912..000000000 --- a/cjs/models/message.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { BaseModel } from './base'; -import type { ChannelsInterface } from './channels'; -import type { MessageTraitsInterface } from './message-traits'; -import type { MessageTraitInterface } from './message-trait'; -import type { OperationsInterface } from './operations'; -import type { SchemaInterface } from './schema'; -import type { ServersInterface } from './servers'; -export interface MessageInterface extends BaseModel, MessageTraitInterface { - hasPayload(): boolean; - payload(): SchemaInterface | undefined; - servers(): ServersInterface; - channels(): ChannelsInterface; - operations(): OperationsInterface; - traits(): MessageTraitsInterface; -} diff --git a/cjs/models/message.js b/cjs/models/message.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/message.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/messages.d.ts b/cjs/models/messages.d.ts deleted file mode 100644 index 614bbd142..000000000 --- a/cjs/models/messages.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { Collection } from './collection'; -import type { MessageInterface } from './message'; -export interface MessagesInterface extends Collection { - filterBySend(): MessageInterface[]; - filterByReceive(): MessageInterface[]; -} diff --git a/cjs/models/messages.js b/cjs/models/messages.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/messages.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/mixins.d.ts b/cjs/models/mixins.d.ts deleted file mode 100644 index f910ef8ef..000000000 --- a/cjs/models/mixins.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type { BindingsInterface } from './bindings'; -import type { ExtensionsInterface } from './extensions'; -import type { ExternalDocumentationInterface } from './external-docs'; -import type { TagsInterface } from './tags'; -export interface BindingsMixinInterface { - bindings(): BindingsInterface; -} -export interface DescriptionMixinInterface { - hasDescription(): boolean; - description(): string | undefined; -} -export interface ExtensionsMixinInterface { - extensions(): ExtensionsInterface; -} -export interface ExternalDocumentationMixinInterface { - hasExternalDocs(): boolean; - externalDocs(): ExternalDocumentationInterface | undefined; -} -export interface TagsMixinInterface { - tags(): TagsInterface; -} diff --git a/cjs/models/mixins.js b/cjs/models/mixins.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/mixins.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/oauth-flow.d.ts b/cjs/models/oauth-flow.d.ts deleted file mode 100644 index 917293f35..000000000 --- a/cjs/models/oauth-flow.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { BaseModel } from './base'; -import { ExtensionsMixinInterface } from './mixins'; -export interface OAuthFlowInterface = Record> extends BaseModel, ExtensionsMixinInterface { - authorizationUrl(): string | undefined; - hasRefreshUrl(): boolean; - refreshUrl(): string | undefined; - scopes(): Record | undefined; - tokenUrl(): string | undefined; -} diff --git a/cjs/models/oauth-flow.js b/cjs/models/oauth-flow.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/oauth-flow.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/oauth-flows.d.ts b/cjs/models/oauth-flows.d.ts deleted file mode 100644 index 9d4a9c332..000000000 --- a/cjs/models/oauth-flows.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { BaseModel } from './base'; -import type { OAuthFlowInterface } from './oauth-flow'; -import type { ExtensionsMixinInterface } from './mixins'; -export interface OAuthFlowsInterface extends BaseModel, ExtensionsMixinInterface { - hasAuthorizationCode(): boolean; - authorizationCode(): OAuthFlowInterface | undefined; - hasClientCredentials(): boolean; - clientCredentials(): OAuthFlowInterface | undefined; - hasImplicit(): boolean; - implicit(): OAuthFlowInterface | undefined; - hasPassword(): boolean; - password(): OAuthFlowInterface | undefined; -} diff --git a/cjs/models/oauth-flows.js b/cjs/models/oauth-flows.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/oauth-flows.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/operation-trait.d.ts b/cjs/models/operation-trait.d.ts deleted file mode 100644 index 7e86617e9..000000000 --- a/cjs/models/operation-trait.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { BaseModel } from './base'; -import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; -import { SecurityRequirements } from './v2/security-requirements'; -export interface OperationTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { - id(): string; - hasOperationId(): boolean; - operationId(): string | undefined; - hasSummary(): boolean; - summary(): string | undefined; - security(): SecurityRequirements[]; -} diff --git a/cjs/models/operation-trait.js b/cjs/models/operation-trait.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/operation-trait.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/operation-traits.d.ts b/cjs/models/operation-traits.d.ts deleted file mode 100644 index 2b9d57562..000000000 --- a/cjs/models/operation-traits.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { OperationTraitInterface } from './operation-trait'; -export declare type OperationTraitsInterface = Collection; diff --git a/cjs/models/operation-traits.js b/cjs/models/operation-traits.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/operation-traits.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/operation.d.ts b/cjs/models/operation.d.ts deleted file mode 100644 index 376039f58..000000000 --- a/cjs/models/operation.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { BaseModel } from './base'; -import type { ChannelsInterface } from './channels'; -import type { MessagesInterface } from './messages'; -import type { OperationTraitsInterface } from './operation-traits'; -import type { OperationTraitInterface } from './operation-trait'; -import type { ServersInterface } from './servers'; -export declare type OperationAction = 'send' | 'receive' | 'publish' | 'subscribe'; -export interface OperationInterface extends BaseModel, OperationTraitInterface { - action(): OperationAction; - isSend(): boolean; - isReceive(): boolean; - servers(): ServersInterface; - channels(): ChannelsInterface; - messages(): MessagesInterface; - traits(): OperationTraitsInterface; -} diff --git a/cjs/models/operation.js b/cjs/models/operation.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/operation.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/operations.d.ts b/cjs/models/operations.d.ts deleted file mode 100644 index 378a78e84..000000000 --- a/cjs/models/operations.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { Collection } from './collection'; -import type { OperationInterface } from './operation'; -export interface OperationsInterface extends Collection { - filterBySend(): OperationInterface[]; - filterByReceive(): OperationInterface[]; -} diff --git a/cjs/models/operations.js b/cjs/models/operations.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/operations.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/schema.d.ts b/cjs/models/schema.d.ts deleted file mode 100644 index 6865ca86f..000000000 --- a/cjs/models/schema.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -import type { BaseModel } from './base'; -import type { ExtensionsMixinInterface, ExternalDocumentationMixinInterface } from './mixins'; -import type { v2 } from '../spec-types'; -export interface SchemaInterface extends BaseModel, ExtensionsMixinInterface, ExternalDocumentationMixinInterface { - uid(): string; - $comment(): string | undefined; - $id(): string | undefined; - $schema(): string; - additionalItems(): boolean | SchemaInterface; - additionalProperties(): boolean | SchemaInterface; - allOf(): Array | undefined; - anyOf(): Array | undefined; - const(): any; - contains(): SchemaInterface | undefined; - contentEncoding(): string | undefined; - contentMediaType(): string | undefined; - default(): any; - definitions(): Record | undefined; - description(): string | undefined; - dependencies(): Record> | undefined; - deprecated(): boolean; - discriminator(): string | undefined; - else(): SchemaInterface | undefined; - enum(): Array | undefined; - examples(): Array | undefined; - exclusiveMaximum(): number | undefined; - exclusiveMinimum(): number | undefined; - format(): string | undefined; - isBooleanSchema(): boolean; - if(): SchemaInterface | undefined; - isCircular(): boolean; - items(): SchemaInterface | Array | undefined; - maximum(): number | undefined; - maxItems(): number | undefined; - maxLength(): number | undefined; - maxProperties(): number | undefined; - minimum(): number | undefined; - minItems(): number | undefined; - minLength(): number | undefined; - minProperties(): number | undefined; - multipleOf(): number | undefined; - not(): SchemaInterface | undefined; - oneOf(): Array | undefined; - pattern(): string | undefined; - patternProperties(): Record | undefined; - properties(): Record | undefined; - property(name: string): SchemaInterface | undefined; - propertyNames(): SchemaInterface | undefined; - readOnly(): boolean | undefined; - required(): Array | undefined; - then(): SchemaInterface | undefined; - title(): string | undefined; - type(): string | Array | undefined; - uniqueItems(): boolean | undefined; - writeOnly(): boolean | undefined; -} diff --git a/cjs/models/schema.js b/cjs/models/schema.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/schema.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/schemas.d.ts b/cjs/models/schemas.d.ts deleted file mode 100644 index 8985decf1..000000000 --- a/cjs/models/schemas.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { SchemaInterface } from './schema'; -export declare type SchemasInterface = Collection; diff --git a/cjs/models/schemas.js b/cjs/models/schemas.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/schemas.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/security-requirement.d.ts b/cjs/models/security-requirement.d.ts deleted file mode 100644 index e56dbf50e..000000000 --- a/cjs/models/security-requirement.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { BaseModel } from './base'; -import type { SecuritySchemeInterface } from './security-scheme'; -export interface SecurityRequirementInterface extends BaseModel { - scheme(): SecuritySchemeInterface; - scopes(): string[]; -} diff --git a/cjs/models/security-requirement.js b/cjs/models/security-requirement.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/security-requirement.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/security-requirements.d.ts b/cjs/models/security-requirements.d.ts deleted file mode 100644 index 223d629cc..000000000 --- a/cjs/models/security-requirements.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { SecurityRequirementInterface } from './security-requirement'; -export declare type SecurityRequirementsInterface = Collection; diff --git a/cjs/models/security-requirements.js b/cjs/models/security-requirements.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/security-requirements.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/security-scheme.d.ts b/cjs/models/security-scheme.d.ts deleted file mode 100644 index c891e3af3..000000000 --- a/cjs/models/security-scheme.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { BaseModel } from './base'; -import type { OAuthFlowsInterface } from './oauth-flows'; -import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; -export interface SecuritySchemeInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { - id(): string; - hasBearerFormat(): boolean; - bearerFormat(): string | undefined; - openIdConnectUrl(): string | undefined; - scheme(): string | undefined; - flows(): OAuthFlowsInterface | undefined; - type(): string; - in(): string | undefined; -} diff --git a/cjs/models/security-scheme.js b/cjs/models/security-scheme.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/security-scheme.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/security-schemes.d.ts b/cjs/models/security-schemes.d.ts deleted file mode 100644 index 2b8b7642b..000000000 --- a/cjs/models/security-schemes.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { SecuritySchemeInterface } from './security-scheme'; -export declare type SecuritySchemesInterface = Collection; diff --git a/cjs/models/security-schemes.js b/cjs/models/security-schemes.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/security-schemes.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/server-variable.d.ts b/cjs/models/server-variable.d.ts deleted file mode 100644 index 85faa6989..000000000 --- a/cjs/models/server-variable.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { BaseModel } from './base'; -import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; -export interface ServerVariableInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { - id(): string; - hasDefaultValue(): boolean; - defaultValue(): string | undefined; - hasAllowedValues(): boolean; - allowedValues(): Array; - examples(): Array; -} diff --git a/cjs/models/server-variable.js b/cjs/models/server-variable.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/server-variable.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/server-variables.d.ts b/cjs/models/server-variables.d.ts deleted file mode 100644 index dfe43deb8..000000000 --- a/cjs/models/server-variables.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { ServerVariableInterface } from './server-variable'; -export declare type ServerVariablesInterface = Collection; diff --git a/cjs/models/server-variables.js b/cjs/models/server-variables.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/server-variables.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/server.d.ts b/cjs/models/server.d.ts deleted file mode 100644 index c4cf19dbe..000000000 --- a/cjs/models/server.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { BaseModel } from './base'; -import type { ChannelsInterface } from './channels'; -import type { MessagesInterface } from './messages'; -import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; -import type { OperationsInterface } from './operations'; -import type { ServerVariablesInterface } from './server-variables'; -import type { SecurityRequirementsInterface } from './security-requirements'; -export interface ServerInterface extends BaseModel, DescriptionMixinInterface, BindingsMixinInterface, ExtensionsMixinInterface { - id(): string; - url(): string; - protocol(): string; - protocolVersion(): string | undefined; - hasProtocolVersion(): boolean; - channels(): ChannelsInterface; - operations(): OperationsInterface; - messages(): MessagesInterface; - variables(): ServerVariablesInterface; - security(): SecurityRequirementsInterface[]; -} diff --git a/cjs/models/server.js b/cjs/models/server.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/server.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/servers.d.ts b/cjs/models/servers.d.ts deleted file mode 100644 index 3108b996e..000000000 --- a/cjs/models/servers.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { Collection } from './collection'; -import type { ServerInterface } from './server'; -export interface ServersInterface extends Collection { - filterBySend(): ServerInterface[]; - filterByReceive(): ServerInterface[]; -} diff --git a/cjs/models/servers.js b/cjs/models/servers.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/servers.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/tag.d.ts b/cjs/models/tag.d.ts deleted file mode 100644 index 019512db2..000000000 --- a/cjs/models/tag.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { BaseModel } from './base'; -import type { DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface } from './mixins'; -export interface TagInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface { - name(): string; -} diff --git a/cjs/models/tag.js b/cjs/models/tag.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/tag.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/tags.d.ts b/cjs/models/tags.d.ts deleted file mode 100644 index d519e6de9..000000000 --- a/cjs/models/tags.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { TagInterface } from './tag'; -export declare type TagsInterface = Collection; diff --git a/cjs/models/tags.js b/cjs/models/tags.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/models/tags.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/models/utils.d.ts b/cjs/models/utils.d.ts deleted file mode 100644 index 91938e617..000000000 --- a/cjs/models/utils.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { BaseModel, ModelMetadata } from './base'; -import type { DetailedAsyncAPI } from '../types'; -export interface Constructor extends Function { - new (...any: any[]): T; -} -export declare type InferModelData = T extends BaseModel ? J : never; -export declare type InferModelMetadata = T extends BaseModel ? M : never; -export declare function createModel(Model: Constructor, value: InferModelData, meta: Omit & { - asyncapi?: DetailedAsyncAPI; -} & InferModelMetadata, parent?: BaseModel): T; diff --git a/cjs/models/utils.js b/cjs/models/utils.js deleted file mode 100644 index 880f1a0d9..000000000 --- a/cjs/models/utils.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createModel = void 0; -function createModel(Model, value, meta, parent) { - return new Model(value, Object.assign(Object.assign({}, meta), { asyncapi: meta.asyncapi || (parent === null || parent === void 0 ? void 0 : parent.meta().asyncapi) })); -} -exports.createModel = createModel; diff --git a/cjs/models/v2/asyncapi.d.ts b/cjs/models/v2/asyncapi.d.ts deleted file mode 100644 index a1e7468d0..000000000 --- a/cjs/models/v2/asyncapi.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { BaseModel } from '../base'; -import type { AsyncAPIDocumentInterface } from '../asyncapi'; -import type { InfoInterface } from '../info'; -import type { ServersInterface } from '../servers'; -import type { ChannelsInterface } from '../channels'; -import type { ComponentsInterface } from '../components'; -import type { OperationsInterface } from '../operations'; -import type { MessagesInterface } from '../messages'; -import type { SchemasInterface } from '../schemas'; -import type { SecuritySchemesInterface } from '../security-schemes'; -import type { ExtensionsInterface } from '../extensions'; -import type { v2 } from '../../spec-types'; -export declare class AsyncAPIDocument extends BaseModel implements AsyncAPIDocumentInterface { - version(): string; - defaultContentType(): string | undefined; - hasDefaultContentType(): boolean; - info(): InfoInterface; - servers(): ServersInterface; - channels(): ChannelsInterface; - operations(): OperationsInterface; - messages(): MessagesInterface; - schemas(): SchemasInterface; - securitySchemes(): SecuritySchemesInterface; - components(): ComponentsInterface; - extensions(): ExtensionsInterface; -} diff --git a/cjs/models/v2/asyncapi.js b/cjs/models/v2/asyncapi.js deleted file mode 100644 index 18c86a9d5..000000000 --- a/cjs/models/v2/asyncapi.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AsyncAPIDocument = void 0; -const base_1 = require("../base"); -const info_1 = require("./info"); -const channels_1 = require("./channels"); -const channel_1 = require("./channel"); -const components_1 = require("./components"); -const messages_1 = require("./messages"); -const operations_1 = require("./operations"); -const servers_1 = require("./servers"); -const server_1 = require("./server"); -const security_schemes_1 = require("./security-schemes"); -const security_scheme_1 = require("./security-scheme"); -const schemas_1 = require("./schemas"); -const mixins_1 = require("./mixins"); -const utils_1 = require("../../utils"); -class AsyncAPIDocument extends base_1.BaseModel { - version() { - return this._json.asyncapi; - } - defaultContentType() { - return this._json.defaultContentType; - } - hasDefaultContentType() { - return !!this._json.defaultContentType; - } - info() { - return this.createModel(info_1.Info, this._json.info, { pointer: '/info' }); - } - servers() { - return new servers_1.Servers(Object.entries(this._json.servers || {}).map(([serverName, server]) => this.createModel(server_1.Server, server, { id: serverName, pointer: `/servers/${serverName}` }))); - } - channels() { - return new channels_1.Channels(Object.entries(this._json.channels || {}).map(([channelAddress, channel]) => this.createModel(channel_1.Channel, channel, { id: channelAddress, address: channelAddress, pointer: `/channels/${(0, utils_1.tilde)(channelAddress)}` }))); - } - operations() { - const operations = []; - this.channels().forEach(channel => operations.push(...channel.operations().all())); - return new operations_1.Operations(operations); - } - messages() { - const messages = []; - this.operations().forEach(operation => messages.push(...operation.messages().all())); - return new messages_1.Messages(messages); - } - schemas() { - return new schemas_1.Schemas([]); - } - securitySchemes() { - var _a; - return new security_schemes_1.SecuritySchemes(Object.entries(((_a = this._json.components) === null || _a === void 0 ? void 0 : _a.securitySchemes) || {}).map(([securitySchemeName, securityScheme]) => this.createModel(security_scheme_1.SecurityScheme, securityScheme, { id: securitySchemeName, pointer: `/components/securitySchemes/${securitySchemeName}` }))); - } - components() { - return this.createModel(components_1.Components, this._json.components || {}, { pointer: '/components' }); - } - extensions() { - return (0, mixins_1.extensions)(this); - } -} -exports.AsyncAPIDocument = AsyncAPIDocument; diff --git a/cjs/models/v2/binding.d.ts b/cjs/models/v2/binding.d.ts deleted file mode 100644 index 6e13a3caf..000000000 --- a/cjs/models/v2/binding.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { BaseModel } from '../base'; -import type { BindingInterface } from '../binding'; -import type { ExtensionsInterface } from '../extensions'; -import type { v2 } from '../../spec-types'; -export declare class Binding = Record> extends BaseModel implements BindingInterface { - protocol(): string; - version(): string; - value(): V; - extensions(): ExtensionsInterface; -} diff --git a/cjs/models/v2/binding.js b/cjs/models/v2/binding.js deleted file mode 100644 index 52c49f724..000000000 --- a/cjs/models/v2/binding.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Binding = void 0; -const base_1 = require("../base"); -const mixins_1 = require("./mixins"); -class Binding extends base_1.BaseModel { - protocol() { - return this._meta.protocol; - } - version() { - return this._json.bindingVersion || 'latest'; - } - value() { - const value = Object.assign({}, this._json); - delete value.bindingVersion; - return value; - } - extensions() { - return (0, mixins_1.extensions)(this); - } -} -exports.Binding = Binding; diff --git a/cjs/models/v2/bindings.d.ts b/cjs/models/v2/bindings.d.ts deleted file mode 100644 index 366f2d369..000000000 --- a/cjs/models/v2/bindings.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Collection } from '../collection'; -import type { BindingsInterface } from '../bindings'; -import type { BindingInterface } from '../binding'; -import type { ExtensionsInterface } from '../extensions'; -export declare class Bindings extends Collection implements BindingsInterface { - get = Record>(name: string): BindingInterface | undefined; - extensions(): ExtensionsInterface; -} diff --git a/cjs/models/v2/bindings.js b/cjs/models/v2/bindings.js deleted file mode 100644 index 793406ac1..000000000 --- a/cjs/models/v2/bindings.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Bindings = void 0; -const collection_1 = require("../collection"); -const extensions_1 = require("./extensions"); -const extension_1 = require("./extension"); -const utils_1 = require("../utils"); -const constants_1 = require("../../constants"); -class Bindings extends collection_1.Collection { - get(name) { - return this.collections.find(binding => binding.protocol() === name); - } - extensions() { - const extensions = []; - Object.entries(this._meta.originalData || {}).forEach(([id, value]) => { - if (constants_1.EXTENSION_REGEX.test(id)) { - extensions.push((0, utils_1.createModel)(extension_1.Extension, value, { id, pointer: `${this._meta.pointer}/${id}`, asyncapi: this._meta.asyncapi })); - } - }); - return new extensions_1.Extensions(extensions); - } -} -exports.Bindings = Bindings; diff --git a/cjs/models/v2/channel-parameter.d.ts b/cjs/models/v2/channel-parameter.d.ts deleted file mode 100644 index ba1abeedd..000000000 --- a/cjs/models/v2/channel-parameter.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { BaseModel } from '../base'; -import type { ChannelParameterInterface } from '../channel-parameter'; -import type { SchemaInterface } from '../schema'; -import type { ExtensionsInterface } from '../extensions'; -import type { v2 } from '../../spec-types'; -export declare class ChannelParameter extends BaseModel implements ChannelParameterInterface { - id(): string; - hasSchema(): boolean; - schema(): SchemaInterface | undefined; - hasLocation(): boolean; - location(): string | undefined; - hasDescription(): boolean; - description(): string | undefined; - extensions(): ExtensionsInterface; -} diff --git a/cjs/models/v2/channel-parameter.js b/cjs/models/v2/channel-parameter.js deleted file mode 100644 index 5bada8346..000000000 --- a/cjs/models/v2/channel-parameter.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ChannelParameter = void 0; -const base_1 = require("../base"); -const schema_1 = require("./schema"); -const mixins_1 = require("./mixins"); -class ChannelParameter extends base_1.BaseModel { - id() { - return this._meta.id; - } - hasSchema() { - return !!this._json.schema; - } - schema() { - if (!this._json.schema) - return undefined; - return this.createModel(schema_1.Schema, this._json.schema, { pointer: `${this._meta.pointer}/schema` }); - } - hasLocation() { - return !!this._json.location; - } - location() { - return this._json.location; - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - description() { - return (0, mixins_1.description)(this); - } - extensions() { - return (0, mixins_1.extensions)(this); - } -} -exports.ChannelParameter = ChannelParameter; diff --git a/cjs/models/v2/channel-parameters.d.ts b/cjs/models/v2/channel-parameters.d.ts deleted file mode 100644 index 93abd0a6e..000000000 --- a/cjs/models/v2/channel-parameters.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { ChannelParametersInterface } from '../channel-parameters'; -import type { ChannelParameterInterface } from '../channel-parameter'; -export declare class ChannelParameters extends Collection implements ChannelParametersInterface { - get(id: string): ChannelParameterInterface | undefined; -} diff --git a/cjs/models/v2/channel-parameters.js b/cjs/models/v2/channel-parameters.js deleted file mode 100644 index f81c49068..000000000 --- a/cjs/models/v2/channel-parameters.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ChannelParameters = void 0; -const collection_1 = require("../collection"); -class ChannelParameters extends collection_1.Collection { - get(id) { - return this.collections.find(parameter => parameter.id() === id); - } -} -exports.ChannelParameters = ChannelParameters; diff --git a/cjs/models/v2/channel.d.ts b/cjs/models/v2/channel.d.ts deleted file mode 100644 index 669ca948b..000000000 --- a/cjs/models/v2/channel.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { BaseModel } from '../base'; -import type { BindingsInterface } from '../bindings'; -import type { ChannelInterface } from '../channel'; -import type { ChannelParametersInterface } from '../channel-parameters'; -import type { ExtensionsInterface } from '../extensions'; -import type { MessagesInterface } from '../messages'; -import type { OperationsInterface } from '../operations'; -import type { ServersInterface } from '../servers'; -import type { v2 } from '../../spec-types'; -export declare class Channel extends BaseModel implements ChannelInterface { - id(): string; - address(): string; - hasDescription(): boolean; - description(): string | undefined; - servers(): ServersInterface; - operations(): OperationsInterface; - messages(): MessagesInterface; - parameters(): ChannelParametersInterface; - bindings(): BindingsInterface; - extensions(): ExtensionsInterface; -} diff --git a/cjs/models/v2/channel.js b/cjs/models/v2/channel.js deleted file mode 100644 index 92e4836a8..000000000 --- a/cjs/models/v2/channel.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Channel = void 0; -const base_1 = require("../base"); -const channel_parameters_1 = require("./channel-parameters"); -const channel_parameter_1 = require("./channel-parameter"); -const messages_1 = require("./messages"); -const operations_1 = require("./operations"); -const operation_1 = require("./operation"); -const servers_1 = require("./servers"); -const server_1 = require("./server"); -const mixins_1 = require("./mixins"); -class Channel extends base_1.BaseModel { - id() { - return this._meta.id; - } - address() { - return this._meta.address; - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - description() { - return (0, mixins_1.description)(this); - } - servers() { - var _a; - const servers = []; - const allowedServers = this._json.servers || []; - Object.entries(((_a = this._meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed.servers) || {}).forEach(([serverName, server]) => { - if (allowedServers.length === 0 || allowedServers.includes(serverName)) { - servers.push(this.createModel(server_1.Server, server, { id: serverName, pointer: `/servers/${serverName}` })); - } - }); - return new servers_1.Servers(servers); - } - operations() { - const operations = []; - ['publish', 'subscribe'].forEach(operationAction => { - const id = this._json[operationAction] && this._json[operationAction].operationId || `${this.meta().id}_${operationAction}`; - if (this._json[operationAction]) { - operations.push(this.createModel(operation_1.Operation, this._json[operationAction], { id, action: operationAction, pointer: `${this._meta.pointer}/${operationAction}` })); - } - }); - return new operations_1.Operations(operations); - } - messages() { - const messages = []; - this.operations().forEach(operation => messages.push(...operation.messages().all())); - return new messages_1.Messages(messages); - } - parameters() { - return new channel_parameters_1.ChannelParameters(Object.entries(this._json.parameters || {}).map(([channelParameterName, channelParameter]) => { - return this.createModel(channel_parameter_1.ChannelParameter, channelParameter, { - id: channelParameterName, - pointer: `${this._meta.pointer}/parameters/${channelParameterName}` - }); - })); - } - bindings() { - return (0, mixins_1.bindings)(this); - } - extensions() { - return (0, mixins_1.extensions)(this); - } -} -exports.Channel = Channel; diff --git a/cjs/models/v2/channels.d.ts b/cjs/models/v2/channels.d.ts deleted file mode 100644 index 01b199506..000000000 --- a/cjs/models/v2/channels.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Collection } from '../collection'; -import type { ChannelsInterface } from '../channels'; -import type { ChannelInterface } from '../channel'; -export declare class Channels extends Collection implements ChannelsInterface { - get(id: string): ChannelInterface | undefined; - filterBySend(): ChannelInterface[]; - filterByReceive(): ChannelInterface[]; -} diff --git a/cjs/models/v2/channels.js b/cjs/models/v2/channels.js deleted file mode 100644 index da2dd1deb..000000000 --- a/cjs/models/v2/channels.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Channels = void 0; -const collection_1 = require("../collection"); -class Channels extends collection_1.Collection { - get(id) { - return this.collections.find(channel => channel.id() === id); - } - filterBySend() { - return this.filterBy(channel => channel.operations().filterBySend().length > 0); - } - filterByReceive() { - return this.filterBy(channel => channel.operations().filterByReceive().length > 0); - } -} -exports.Channels = Channels; diff --git a/cjs/models/v2/components.d.ts b/cjs/models/v2/components.d.ts deleted file mode 100644 index 3d4422373..000000000 --- a/cjs/models/v2/components.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { BaseModel } from '../base'; -import { Collection } from '../collection'; -import { CorrelationIds } from './correlation-ids'; -import type { BindingsInterface } from '../bindings'; -import type { ComponentsInterface } from '../components'; -import type { ExtensionsInterface } from '../extensions'; -import type { Constructor } from '../utils'; -import type { ServersInterface } from '../servers'; -import type { ChannelsInterface } from '../channels'; -import type { MessagesInterface } from '../messages'; -import type { SchemasInterface } from '../schemas'; -import type { ChannelParametersInterface } from '../channel-parameters'; -import type { ServerVariablesInterface } from '../server-variables'; -import type { OperationTraitsInterface } from '../operation-traits'; -import type { SecuritySchemesInterface } from '../security-schemes'; -import type { MessageTraitsInterface } from '../message-traits'; -import type { OperationsInterface } from '../operations'; -import type { v2 } from '../../spec-types'; -export declare class Components extends BaseModel implements ComponentsInterface { - servers(): ServersInterface; - channels(): ChannelsInterface; - messages(): MessagesInterface; - schemas(): SchemasInterface; - channelParameters(): ChannelParametersInterface; - serverVariables(): ServerVariablesInterface; - operations(): OperationsInterface; - operationTraits(): OperationTraitsInterface; - messageTraits(): MessageTraitsInterface; - correlationIds(): CorrelationIds; - securitySchemes(): SecuritySchemesInterface; - serverBindings(): Record; - channelBindings(): Record; - operationBindings(): Record; - messageBindings(): Record; - extensions(): ExtensionsInterface; - isEmpty(): boolean; - protected createCollection, T extends BaseModel>(itemsName: keyof v2.ComponentsObject, collectionModel: Constructor, itemModel: Constructor): M; - protected createBindings(itemsName: 'serverBindings' | 'channelBindings' | 'operationBindings' | 'messageBindings'): Record; -} diff --git a/cjs/models/v2/components.js b/cjs/models/v2/components.js deleted file mode 100644 index 93493e2b4..000000000 --- a/cjs/models/v2/components.js +++ /dev/null @@ -1,101 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Components = void 0; -const base_1 = require("../base"); -const bindings_1 = require("./bindings"); -const binding_1 = require("./binding"); -const channel_1 = require("./channel"); -const channel_parameter_1 = require("./channel-parameter"); -const correlation_id_1 = require("./correlation-id"); -const message_trait_1 = require("./message-trait"); -const operation_trait_1 = require("./operation-trait"); -const schema_1 = require("./schema"); -const security_scheme_1 = require("./security-scheme"); -const server_1 = require("./server"); -const server_variable_1 = require("./server-variable"); -const mixins_1 = require("./mixins"); -const servers_1 = require("./servers"); -const channels_1 = require("./channels"); -const messages_1 = require("./messages"); -const schemas_1 = require("./schemas"); -const channel_parameters_1 = require("./channel-parameters"); -const server_variables_1 = require("./server-variables"); -const operation_traits_1 = require("./operation-traits"); -const message_traits_1 = require("./message-traits"); -const security_schemes_1 = require("./security-schemes"); -const correlation_ids_1 = require("./correlation-ids"); -const operations_1 = require("./operations"); -const message_1 = require("./message"); -const utils_1 = require("../../utils"); -class Components extends base_1.BaseModel { - servers() { - return this.createCollection('servers', servers_1.Servers, server_1.Server); - } - channels() { - return new channels_1.Channels(Object.entries(this._json.channels || {}).map(([channelAddress, channel]) => this.createModel(channel_1.Channel, channel, { id: channelAddress, address: '', pointer: `/components/channels/${(0, utils_1.tilde)(channelAddress)}` }))); - } - messages() { - return this.createCollection('messages', messages_1.Messages, message_1.Message); - } - schemas() { - return this.createCollection('schemas', schemas_1.Schemas, schema_1.Schema); - } - channelParameters() { - return this.createCollection('parameters', channel_parameters_1.ChannelParameters, channel_parameter_1.ChannelParameter); - } - serverVariables() { - return this.createCollection('serverVariables', server_variables_1.ServerVariables, server_variable_1.ServerVariable); - } - operations() { - const operations = []; - this.channels().forEach(channel => operations.push(...channel.operations().all())); - return new operations_1.Operations(operations); - } - operationTraits() { - return this.createCollection('operationTraits', operation_traits_1.OperationTraits, operation_trait_1.OperationTrait); - } - messageTraits() { - return this.createCollection('messageTraits', message_traits_1.MessageTraits, message_trait_1.MessageTrait); - } - correlationIds() { - return this.createCollection('correlationIds', correlation_ids_1.CorrelationIds, correlation_id_1.CorrelationId); - } - securitySchemes() { - return this.createCollection('securitySchemes', security_schemes_1.SecuritySchemes, security_scheme_1.SecurityScheme); - } - serverBindings() { - return this.createBindings('serverBindings'); - } - channelBindings() { - return this.createBindings('channelBindings'); - } - operationBindings() { - return this.createBindings('operationBindings'); - } - messageBindings() { - return this.createBindings('messageBindings'); - } - extensions() { - return (0, mixins_1.extensions)(this); - } - isEmpty() { - return Object.keys(this._json).length === 0; - } - createCollection(itemsName, collectionModel, itemModel) { - const collectionItems = []; - Object.entries(this._json[itemsName] || {}).forEach(([id, item]) => { - collectionItems.push(this.createModel(itemModel, item, { id, pointer: `/components/${itemsName}/${id}` })); - }); - return new collectionModel(collectionItems); - } - createBindings(itemsName) { - return Object.entries(this._json[itemsName] || {}).reduce((bindings, [name, item]) => { - const bindingsData = item || {}; - const asyncapi = this.meta('asyncapi'); - const pointer = `components/${itemsName}/${name}`; - bindings[name] = new bindings_1.Bindings(Object.entries(bindingsData).map(([protocol, binding]) => this.createModel(binding_1.Binding, binding, { protocol, pointer: `${pointer}/${protocol}` })), { originalData: bindingsData, asyncapi, pointer }); - return bindings; - }, {}); - } -} -exports.Components = Components; diff --git a/cjs/models/v2/contact.d.ts b/cjs/models/v2/contact.d.ts deleted file mode 100644 index cde7fe085..000000000 --- a/cjs/models/v2/contact.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { BaseModel } from '../base'; -import type { ContactInterface } from '../contact'; -import type { ExtensionsInterface } from '../extensions'; -import type { v2 } from '../../spec-types'; -export declare class Contact extends BaseModel implements ContactInterface { - hasName(): boolean; - name(): string | undefined; - hasUrl(): boolean; - url(): string | undefined; - hasEmail(): boolean; - email(): string | undefined; - extensions(): ExtensionsInterface; -} diff --git a/cjs/models/v2/contact.js b/cjs/models/v2/contact.js deleted file mode 100644 index 2645428f8..000000000 --- a/cjs/models/v2/contact.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Contact = void 0; -const base_1 = require("../base"); -const mixins_1 = require("./mixins"); -class Contact extends base_1.BaseModel { - hasName() { - return !!this._json.name; - } - name() { - return this._json.name; - } - hasUrl() { - return !!this._json.url; - } - url() { - return this._json.url; - } - hasEmail() { - return !!this._json.email; - } - email() { - return this._json.email; - } - extensions() { - return (0, mixins_1.extensions)(this); - } -} -exports.Contact = Contact; diff --git a/cjs/models/v2/correlation-id.d.ts b/cjs/models/v2/correlation-id.d.ts deleted file mode 100644 index cb1dc1ad6..000000000 --- a/cjs/models/v2/correlation-id.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseModel } from '../base'; -import type { CorrelationIdInterface } from '../correlation-id'; -import type { ExtensionsInterface } from '../extensions'; -import type { v2 } from '../../spec-types'; -export declare class CorrelationId extends BaseModel implements CorrelationIdInterface { - hasDescription(): boolean; - description(): string | undefined; - hasLocation(): boolean; - location(): string | undefined; - extensions(): ExtensionsInterface; -} diff --git a/cjs/models/v2/correlation-id.js b/cjs/models/v2/correlation-id.js deleted file mode 100644 index 3fd7016da..000000000 --- a/cjs/models/v2/correlation-id.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CorrelationId = void 0; -const base_1 = require("../base"); -const mixins_1 = require("./mixins"); -class CorrelationId extends base_1.BaseModel { - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - description() { - return (0, mixins_1.description)(this); - } - hasLocation() { - return !!this._json.location; - } - location() { - return this._json.location; - } - extensions() { - return (0, mixins_1.extensions)(this); - } -} -exports.CorrelationId = CorrelationId; diff --git a/cjs/models/v2/correlation-ids.d.ts b/cjs/models/v2/correlation-ids.d.ts deleted file mode 100644 index 77f81c952..000000000 --- a/cjs/models/v2/correlation-ids.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { CorrelationIdsInterface } from '../correlation-ids'; -import type { CorrelationIdInterface } from '../correlation-id'; -export declare class CorrelationIds extends Collection implements CorrelationIdsInterface { - get(id: string): CorrelationIdInterface | undefined; -} diff --git a/cjs/models/v2/correlation-ids.js b/cjs/models/v2/correlation-ids.js deleted file mode 100644 index cd9023f85..000000000 --- a/cjs/models/v2/correlation-ids.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CorrelationIds = void 0; -const collection_1 = require("../collection"); -class CorrelationIds extends collection_1.Collection { - get(id) { - return this.collections.find(correlationId => correlationId.meta('id') === id); - } -} -exports.CorrelationIds = CorrelationIds; diff --git a/cjs/models/v2/extension.d.ts b/cjs/models/v2/extension.d.ts deleted file mode 100644 index 6ebfad81c..000000000 --- a/cjs/models/v2/extension.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { BaseModel } from '../base'; -import type { ExtensionInterface } from '../extension'; -import type { v2 } from '../../spec-types'; -export declare class Extension extends BaseModel, { - id: string; -}> implements ExtensionInterface { - id(): string; - version(): string; - value(): V; -} diff --git a/cjs/models/v2/extension.js b/cjs/models/v2/extension.js deleted file mode 100644 index a0f2c2b6f..000000000 --- a/cjs/models/v2/extension.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Extension = void 0; -const base_1 = require("../base"); -class Extension extends base_1.BaseModel { - id() { - return this._meta.id; - } - version() { - return 'to implement'; - } - value() { - return this._json; - } -} -exports.Extension = Extension; diff --git a/cjs/models/v2/extensions.d.ts b/cjs/models/v2/extensions.d.ts deleted file mode 100644 index 3033f8a44..000000000 --- a/cjs/models/v2/extensions.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { ExtensionsInterface } from '../extensions'; -import type { ExtensionInterface } from '../extension'; -export declare class Extensions extends Collection implements ExtensionsInterface { - get(id: string): ExtensionInterface | undefined; -} diff --git a/cjs/models/v2/extensions.js b/cjs/models/v2/extensions.js deleted file mode 100644 index f33796038..000000000 --- a/cjs/models/v2/extensions.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Extensions = void 0; -const collection_1 = require("../collection"); -class Extensions extends collection_1.Collection { - get(id) { - id = id.startsWith('x-') ? id : `x-${id}`; - return this.collections.find(ext => ext.id() === id); - } -} -exports.Extensions = Extensions; diff --git a/cjs/models/v2/external-docs.d.ts b/cjs/models/v2/external-docs.d.ts deleted file mode 100644 index 279640c89..000000000 --- a/cjs/models/v2/external-docs.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { BaseModel } from '../base'; -import type { ExternalDocumentationInterface } from '../external-docs'; -import type { ExtensionsInterface } from '../extensions'; -import type { v2 } from '../../spec-types'; -export declare class ExternalDocumentation extends BaseModel implements ExternalDocumentationInterface { - url(): string; - hasDescription(): boolean; - description(): string | undefined; - extensions(): ExtensionsInterface; -} diff --git a/cjs/models/v2/external-docs.js b/cjs/models/v2/external-docs.js deleted file mode 100644 index f41bbf627..000000000 --- a/cjs/models/v2/external-docs.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ExternalDocumentation = void 0; -const base_1 = require("../base"); -const mixins_1 = require("./mixins"); -class ExternalDocumentation extends base_1.BaseModel { - url() { - return this._json.url; - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - description() { - return (0, mixins_1.description)(this); - } - extensions() { - return (0, mixins_1.extensions)(this); - } -} -exports.ExternalDocumentation = ExternalDocumentation; diff --git a/cjs/models/v2/index.d.ts b/cjs/models/v2/index.d.ts deleted file mode 100644 index 5ce2f2622..000000000 --- a/cjs/models/v2/index.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -export { AsyncAPIDocument as AsyncAPIDocumentV2 } from './asyncapi'; -export { Binding as BindingV2 } from './binding'; -export { Bindings as BindingsV2 } from './bindings'; -export { ChannelParameter as ChannelParameterV2 } from './channel-parameter'; -export { ChannelParameters as ChannelParametersV2 } from './channel-parameters'; -export { Channel as ChannelV2 } from './channel'; -export { Channels as ChannelsV2 } from './channels'; -export { Components as ComponentsV2 } from './components'; -export { Contact as ContactV2 } from './contact'; -export { CorrelationId as CorrelationIdV2 } from './correlation-id'; -export { Extension as ExtensionV2 } from './extension'; -export { Extensions as ExtensionsV2 } from './extensions'; -export { ExternalDocumentation as ExternalDocumentationV2 } from './external-docs'; -export { Info as InfoV2 } from './info'; -export { License as LicenseV2 } from './license'; -export { MessageExample as MessageExampleV2 } from './message-example'; -export { MessageExamples as MessageExamplesV2 } from './message-examples'; -export { MessageTrait as MessageTraitV2 } from './message-trait'; -export { MessageTraits as MessageTraitsV2 } from './message-traits'; -export { Message as MessageV2 } from './message'; -export { Messages as MessagesV2 } from './messages'; -export { OAuthFlow as OAuthFlowV2 } from './oauth-flow'; -export { OAuthFlows as OAuthFlowsV2 } from './oauth-flows'; -export { OperationTrait as OperationTraitV2 } from './operation-trait'; -export { OperationTraits as OperationTraitsV2 } from './operation-traits'; -export { Operation as OperationV2 } from './operation'; -export { Operations as OperationsV2 } from './operations'; -export { Schema as SchemaV2 } from './schema'; -export { Schemas as SchemasV2 } from './schemas'; -export { SecurityScheme as SecuritySchemeV2 } from './security-scheme'; -export { SecuritySchemes as SecuritySchemesV2 } from './security-schemes'; -export { ServerVariable as ServerVariableV2 } from './server-variable'; -export { ServerVariables as ServerVariablesV2 } from './server-variables'; -export { Server as ServerV2 } from './server'; -export { Servers as ServersV2 } from './servers'; -export { Tag as TagV2 } from './tag'; -export { Tags as TagsV2 } from './tags'; diff --git a/cjs/models/v2/index.js b/cjs/models/v2/index.js deleted file mode 100644 index fa2fca9d6..000000000 --- a/cjs/models/v2/index.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TagsV2 = exports.TagV2 = exports.ServersV2 = exports.ServerV2 = exports.ServerVariablesV2 = exports.ServerVariableV2 = exports.SecuritySchemesV2 = exports.SecuritySchemeV2 = exports.SchemasV2 = exports.SchemaV2 = exports.OperationsV2 = exports.OperationV2 = exports.OperationTraitsV2 = exports.OperationTraitV2 = exports.OAuthFlowsV2 = exports.OAuthFlowV2 = exports.MessagesV2 = exports.MessageV2 = exports.MessageTraitsV2 = exports.MessageTraitV2 = exports.MessageExamplesV2 = exports.MessageExampleV2 = exports.LicenseV2 = exports.InfoV2 = exports.ExternalDocumentationV2 = exports.ExtensionsV2 = exports.ExtensionV2 = exports.CorrelationIdV2 = exports.ContactV2 = exports.ComponentsV2 = exports.ChannelsV2 = exports.ChannelV2 = exports.ChannelParametersV2 = exports.ChannelParameterV2 = exports.BindingsV2 = exports.BindingV2 = exports.AsyncAPIDocumentV2 = void 0; -var asyncapi_1 = require("./asyncapi"); -Object.defineProperty(exports, "AsyncAPIDocumentV2", { enumerable: true, get: function () { return asyncapi_1.AsyncAPIDocument; } }); -var binding_1 = require("./binding"); -Object.defineProperty(exports, "BindingV2", { enumerable: true, get: function () { return binding_1.Binding; } }); -var bindings_1 = require("./bindings"); -Object.defineProperty(exports, "BindingsV2", { enumerable: true, get: function () { return bindings_1.Bindings; } }); -var channel_parameter_1 = require("./channel-parameter"); -Object.defineProperty(exports, "ChannelParameterV2", { enumerable: true, get: function () { return channel_parameter_1.ChannelParameter; } }); -var channel_parameters_1 = require("./channel-parameters"); -Object.defineProperty(exports, "ChannelParametersV2", { enumerable: true, get: function () { return channel_parameters_1.ChannelParameters; } }); -var channel_1 = require("./channel"); -Object.defineProperty(exports, "ChannelV2", { enumerable: true, get: function () { return channel_1.Channel; } }); -var channels_1 = require("./channels"); -Object.defineProperty(exports, "ChannelsV2", { enumerable: true, get: function () { return channels_1.Channels; } }); -var components_1 = require("./components"); -Object.defineProperty(exports, "ComponentsV2", { enumerable: true, get: function () { return components_1.Components; } }); -var contact_1 = require("./contact"); -Object.defineProperty(exports, "ContactV2", { enumerable: true, get: function () { return contact_1.Contact; } }); -var correlation_id_1 = require("./correlation-id"); -Object.defineProperty(exports, "CorrelationIdV2", { enumerable: true, get: function () { return correlation_id_1.CorrelationId; } }); -var extension_1 = require("./extension"); -Object.defineProperty(exports, "ExtensionV2", { enumerable: true, get: function () { return extension_1.Extension; } }); -var extensions_1 = require("./extensions"); -Object.defineProperty(exports, "ExtensionsV2", { enumerable: true, get: function () { return extensions_1.Extensions; } }); -var external_docs_1 = require("./external-docs"); -Object.defineProperty(exports, "ExternalDocumentationV2", { enumerable: true, get: function () { return external_docs_1.ExternalDocumentation; } }); -var info_1 = require("./info"); -Object.defineProperty(exports, "InfoV2", { enumerable: true, get: function () { return info_1.Info; } }); -var license_1 = require("./license"); -Object.defineProperty(exports, "LicenseV2", { enumerable: true, get: function () { return license_1.License; } }); -var message_example_1 = require("./message-example"); -Object.defineProperty(exports, "MessageExampleV2", { enumerable: true, get: function () { return message_example_1.MessageExample; } }); -var message_examples_1 = require("./message-examples"); -Object.defineProperty(exports, "MessageExamplesV2", { enumerable: true, get: function () { return message_examples_1.MessageExamples; } }); -var message_trait_1 = require("./message-trait"); -Object.defineProperty(exports, "MessageTraitV2", { enumerable: true, get: function () { return message_trait_1.MessageTrait; } }); -var message_traits_1 = require("./message-traits"); -Object.defineProperty(exports, "MessageTraitsV2", { enumerable: true, get: function () { return message_traits_1.MessageTraits; } }); -var message_1 = require("./message"); -Object.defineProperty(exports, "MessageV2", { enumerable: true, get: function () { return message_1.Message; } }); -var messages_1 = require("./messages"); -Object.defineProperty(exports, "MessagesV2", { enumerable: true, get: function () { return messages_1.Messages; } }); -var oauth_flow_1 = require("./oauth-flow"); -Object.defineProperty(exports, "OAuthFlowV2", { enumerable: true, get: function () { return oauth_flow_1.OAuthFlow; } }); -var oauth_flows_1 = require("./oauth-flows"); -Object.defineProperty(exports, "OAuthFlowsV2", { enumerable: true, get: function () { return oauth_flows_1.OAuthFlows; } }); -var operation_trait_1 = require("./operation-trait"); -Object.defineProperty(exports, "OperationTraitV2", { enumerable: true, get: function () { return operation_trait_1.OperationTrait; } }); -var operation_traits_1 = require("./operation-traits"); -Object.defineProperty(exports, "OperationTraitsV2", { enumerable: true, get: function () { return operation_traits_1.OperationTraits; } }); -var operation_1 = require("./operation"); -Object.defineProperty(exports, "OperationV2", { enumerable: true, get: function () { return operation_1.Operation; } }); -var operations_1 = require("./operations"); -Object.defineProperty(exports, "OperationsV2", { enumerable: true, get: function () { return operations_1.Operations; } }); -var schema_1 = require("./schema"); -Object.defineProperty(exports, "SchemaV2", { enumerable: true, get: function () { return schema_1.Schema; } }); -var schemas_1 = require("./schemas"); -Object.defineProperty(exports, "SchemasV2", { enumerable: true, get: function () { return schemas_1.Schemas; } }); -var security_scheme_1 = require("./security-scheme"); -Object.defineProperty(exports, "SecuritySchemeV2", { enumerable: true, get: function () { return security_scheme_1.SecurityScheme; } }); -var security_schemes_1 = require("./security-schemes"); -Object.defineProperty(exports, "SecuritySchemesV2", { enumerable: true, get: function () { return security_schemes_1.SecuritySchemes; } }); -var server_variable_1 = require("./server-variable"); -Object.defineProperty(exports, "ServerVariableV2", { enumerable: true, get: function () { return server_variable_1.ServerVariable; } }); -var server_variables_1 = require("./server-variables"); -Object.defineProperty(exports, "ServerVariablesV2", { enumerable: true, get: function () { return server_variables_1.ServerVariables; } }); -var server_1 = require("./server"); -Object.defineProperty(exports, "ServerV2", { enumerable: true, get: function () { return server_1.Server; } }); -var servers_1 = require("./servers"); -Object.defineProperty(exports, "ServersV2", { enumerable: true, get: function () { return servers_1.Servers; } }); -var tag_1 = require("./tag"); -Object.defineProperty(exports, "TagV2", { enumerable: true, get: function () { return tag_1.Tag; } }); -var tags_1 = require("./tags"); -Object.defineProperty(exports, "TagsV2", { enumerable: true, get: function () { return tags_1.Tags; } }); diff --git a/cjs/models/v2/info.d.ts b/cjs/models/v2/info.d.ts deleted file mode 100644 index 6f87dbdd8..000000000 --- a/cjs/models/v2/info.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { BaseModel } from '../base'; -import type { ContactInterface } from '../contact'; -import type { InfoInterface } from '../info'; -import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; -import type { LicenseInterface } from '../license'; -import type { TagsInterface } from '../tags'; -import type { v2 } from '../../spec-types'; -export declare class Info extends BaseModel implements InfoInterface { - title(): string; - version(): string; - hasId(): boolean; - id(): string | undefined; - hasDescription(): boolean; - description(): string | undefined; - hasTermsOfService(): boolean; - termsOfService(): string | undefined; - hasContact(): boolean; - contact(): ContactInterface | undefined; - hasLicense(): boolean; - license(): LicenseInterface | undefined; - hasExternalDocs(): boolean; - externalDocs(): ExternalDocumentationInterface | undefined; - tags(): TagsInterface; - extensions(): ExtensionsInterface; -} diff --git a/cjs/models/v2/info.js b/cjs/models/v2/info.js deleted file mode 100644 index d78906ee4..000000000 --- a/cjs/models/v2/info.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Info = void 0; -const base_1 = require("../base"); -const contact_1 = require("./contact"); -const external_docs_1 = require("./external-docs"); -const license_1 = require("./license"); -const tags_1 = require("./tags"); -const tag_1 = require("./tag"); -const mixins_1 = require("./mixins"); -class Info extends base_1.BaseModel { - title() { - return this._json.title; - } - version() { - return this._json.version; - } - hasId() { - return !!this._meta.asyncapi.parsed.id; - } - id() { - return this._meta.asyncapi.parsed.id; - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - description() { - return (0, mixins_1.description)(this); - } - hasTermsOfService() { - return !!this._json.termsOfService; - } - termsOfService() { - return this._json.termsOfService; - } - hasContact() { - return Object.keys(this._json.contact || {}).length > 0; - } - contact() { - const contact = this._json.contact; - return contact && this.createModel(contact_1.Contact, contact, { pointer: '/info/contact' }); - } - hasLicense() { - return Object.keys(this._json.license || {}).length > 0; - } - license() { - const license = this._json.license; - return license && this.createModel(license_1.License, license, { pointer: '/info/license' }); - } - hasExternalDocs() { - return Object.keys(this._meta.asyncapi.parsed.externalDocs || {}).length > 0; - } - externalDocs() { - if (this.hasExternalDocs()) { - return this.createModel(external_docs_1.ExternalDocumentation, this._meta.asyncapi.parsed.externalDocs, { pointer: '/externalDocs' }); - } - } - tags() { - const tags = this._meta.asyncapi.parsed.tags || []; - return new tags_1.Tags(tags.map((tag, idx) => this.createModel(tag_1.Tag, tag, { pointer: `/tags/${idx}` }))); - } - extensions() { - return (0, mixins_1.extensions)(this); - } -} -exports.Info = Info; diff --git a/cjs/models/v2/license.d.ts b/cjs/models/v2/license.d.ts deleted file mode 100644 index 351865595..000000000 --- a/cjs/models/v2/license.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { BaseModel } from '../base'; -import type { ExtensionsInterface } from '../extensions'; -import type { LicenseInterface } from '../license'; -import type { v2 } from '../../spec-types'; -export declare class License extends BaseModel implements LicenseInterface { - name(): string; - hasUrl(): boolean; - url(): string | undefined; - extensions(): ExtensionsInterface; -} diff --git a/cjs/models/v2/license.js b/cjs/models/v2/license.js deleted file mode 100644 index 9170a3962..000000000 --- a/cjs/models/v2/license.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.License = void 0; -const base_1 = require("../base"); -const mixins_1 = require("./mixins"); -class License extends base_1.BaseModel { - name() { - return this._json.name; - } - hasUrl() { - return !!this._json.url; - } - url() { - return this._json.url; - } - extensions() { - return (0, mixins_1.extensions)(this); - } -} -exports.License = License; diff --git a/cjs/models/v2/message-example.d.ts b/cjs/models/v2/message-example.d.ts deleted file mode 100644 index e8a843b55..000000000 --- a/cjs/models/v2/message-example.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { BaseModel } from '../base'; -import type { ExtensionsInterface } from '../extensions'; -import type { MessageExampleInterface } from '../message-example'; -import type { v2 } from '../../spec-types'; -export declare class MessageExample extends BaseModel implements MessageExampleInterface { - hasName(): boolean; - name(): string | undefined; - hasSummary(): boolean; - summary(): string | undefined; - hasHeaders(): boolean; - headers(): Record | undefined; - hasPayload(): boolean; - payload(): Record | undefined; - extensions(): ExtensionsInterface; -} diff --git a/cjs/models/v2/message-example.js b/cjs/models/v2/message-example.js deleted file mode 100644 index 9710b3ca7..000000000 --- a/cjs/models/v2/message-example.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageExample = void 0; -const base_1 = require("../base"); -const mixins_1 = require("./mixins"); -class MessageExample extends base_1.BaseModel { - hasName() { - return !!this._json.name; - } - name() { - return this._json.name; - } - hasSummary() { - return !!this._json.summary; - } - summary() { - return this._json.summary; - } - hasHeaders() { - return !!this._json.headers; - } - headers() { - return this._json.headers; - } - hasPayload() { - return !!this._json.payload; - } - payload() { - return this._json.payload; - } - extensions() { - return (0, mixins_1.extensions)(this); - } -} -exports.MessageExample = MessageExample; diff --git a/cjs/models/v2/message-examples.d.ts b/cjs/models/v2/message-examples.d.ts deleted file mode 100644 index 0784e9dc1..000000000 --- a/cjs/models/v2/message-examples.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { MessageExamplesInterface } from '../message-examples'; -import type { MessageExampleInterface } from '../message-example'; -export declare class MessageExamples extends Collection implements MessageExamplesInterface { - get(name: string): MessageExampleInterface | undefined; -} diff --git a/cjs/models/v2/message-examples.js b/cjs/models/v2/message-examples.js deleted file mode 100644 index d57029213..000000000 --- a/cjs/models/v2/message-examples.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageExamples = void 0; -const collection_1 = require("../collection"); -class MessageExamples extends collection_1.Collection { - get(name) { - return this.collections.find(example => example.name() === name); - } -} -exports.MessageExamples = MessageExamples; diff --git a/cjs/models/v2/message-trait.d.ts b/cjs/models/v2/message-trait.d.ts deleted file mode 100644 index 50e2dd642..000000000 --- a/cjs/models/v2/message-trait.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { BaseModel } from '../base'; -import type { BindingsInterface } from '../bindings'; -import type { CorrelationIdInterface } from '../correlation-id'; -import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; -import type { MessageExamplesInterface } from '../message-examples'; -import type { MessageTraitInterface } from '../message-trait'; -import type { SchemaInterface } from '../schema'; -import type { TagsInterface } from '../tags'; -import type { v2 } from '../../spec-types'; -export declare class MessageTrait extends BaseModel implements MessageTraitInterface { - id(): string; - schemaFormat(): string; - hasMessageId(): boolean; - messageId(): string | undefined; - hasCorrelationId(): boolean; - correlationId(): CorrelationIdInterface | undefined; - hasContentType(): boolean; - contentType(): string | undefined; - hasHeaders(): boolean; - headers(): SchemaInterface | undefined; - hasName(): boolean; - name(): string | undefined; - hasTitle(): boolean; - title(): string | undefined; - hasSummary(): boolean; - summary(): string | undefined; - hasDescription(): boolean; - description(): string | undefined; - hasExternalDocs(): boolean; - externalDocs(): ExternalDocumentationInterface | undefined; - examples(): MessageExamplesInterface; - tags(): TagsInterface; - bindings(): BindingsInterface; - extensions(): ExtensionsInterface; -} diff --git a/cjs/models/v2/message-trait.js b/cjs/models/v2/message-trait.js deleted file mode 100644 index aa3abf5b9..000000000 --- a/cjs/models/v2/message-trait.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageTrait = void 0; -const base_1 = require("../base"); -const correlation_id_1 = require("./correlation-id"); -const message_examples_1 = require("./message-examples"); -const message_example_1 = require("./message-example"); -const schema_1 = require("./schema"); -const constants_1 = require("../../constants"); -const schema_parser_1 = require("../../schema-parser"); -const mixins_1 = require("./mixins"); -class MessageTrait extends base_1.BaseModel { - id() { - var _a; - return this.messageId() || this._meta.id || ((_a = this.extensions().get(constants_1.xParserMessageName)) === null || _a === void 0 ? void 0 : _a.value()); - } - schemaFormat() { - return this._json.schemaFormat || (0, schema_parser_1.getDefaultSchemaFormat)(this._meta.asyncapi.semver.version); - } - hasMessageId() { - return !!this._json.messageId; - } - messageId() { - return this._json.messageId; - } - hasCorrelationId() { - return !!this._json.correlationId; - } - correlationId() { - if (!this._json.correlationId) - return undefined; - return this.createModel(correlation_id_1.CorrelationId, this._json.correlationId, { pointer: `${this._meta.pointer}/correlationId` }); - } - hasContentType() { - return !!this._json.contentType; - } - contentType() { - var _a; - return this._json.contentType || ((_a = this._meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed.defaultContentType); - } - hasHeaders() { - return !!this._json.headers; - } - headers() { - if (!this._json.headers) - return undefined; - return this.createModel(schema_1.Schema, this._json.headers, { pointer: `${this._meta.pointer}/headers` }); - } - hasName() { - return !!this._json.name; - } - name() { - return this._json.name; - } - hasTitle() { - return !!this._json.title; - } - title() { - return this._json.title; - } - hasSummary() { - return !!this._json.summary; - } - summary() { - return this._json.summary; - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - description() { - return (0, mixins_1.description)(this); - } - hasExternalDocs() { - return (0, mixins_1.hasExternalDocs)(this); - } - externalDocs() { - return (0, mixins_1.externalDocs)(this); - } - examples() { - return new message_examples_1.MessageExamples((this._json.examples || []).map((example, index) => { - return this.createModel(message_example_1.MessageExample, example, { pointer: `${this._meta.pointer}/examples/${index}` }); - })); - } - tags() { - return (0, mixins_1.tags)(this); - } - bindings() { - return (0, mixins_1.bindings)(this); - } - extensions() { - return (0, mixins_1.extensions)(this); - } -} -exports.MessageTrait = MessageTrait; diff --git a/cjs/models/v2/message-traits.d.ts b/cjs/models/v2/message-traits.d.ts deleted file mode 100644 index 8601210f2..000000000 --- a/cjs/models/v2/message-traits.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { MessageTraitsInterface } from '../message-traits'; -import type { MessageTraitInterface } from '../message-trait'; -export declare class MessageTraits extends Collection implements MessageTraitsInterface { - get(id: string): MessageTraitInterface | undefined; -} diff --git a/cjs/models/v2/message-traits.js b/cjs/models/v2/message-traits.js deleted file mode 100644 index d70e4d65a..000000000 --- a/cjs/models/v2/message-traits.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageTraits = void 0; -const collection_1 = require("../collection"); -class MessageTraits extends collection_1.Collection { - get(id) { - return this.collections.find(trait => trait.id() === id); - } -} -exports.MessageTraits = MessageTraits; diff --git a/cjs/models/v2/message.d.ts b/cjs/models/v2/message.d.ts deleted file mode 100644 index 9d7ee229a..000000000 --- a/cjs/models/v2/message.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { MessageTrait } from './message-trait'; -import type { ChannelsInterface } from '../channels'; -import type { MessageInterface } from '../message'; -import type { MessageTraitsInterface } from '../message-traits'; -import type { OperationsInterface } from '../operations'; -import type { ServersInterface } from '../servers'; -import type { SchemaInterface } from '../schema'; -import type { v2 } from '../../spec-types'; -export declare class Message extends MessageTrait implements MessageInterface { - hasPayload(): boolean; - payload(): SchemaInterface | undefined; - servers(): ServersInterface; - channels(): ChannelsInterface; - operations(): OperationsInterface; - traits(): MessageTraitsInterface; -} diff --git a/cjs/models/v2/message.js b/cjs/models/v2/message.js deleted file mode 100644 index 3dff43d23..000000000 --- a/cjs/models/v2/message.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Message = void 0; -const channels_1 = require("./channels"); -const operations_1 = require("./operations"); -const operation_1 = require("./operation"); -const message_traits_1 = require("./message-traits"); -const message_trait_1 = require("./message-trait"); -const servers_1 = require("./servers"); -const schema_1 = require("./schema"); -const utils_1 = require("../../utils"); -class Message extends message_trait_1.MessageTrait { - hasPayload() { - return !!this._json.payload; - } - payload() { - if (!this._json.payload) - return undefined; - return this.createModel(schema_1.Schema, this._json.payload, { pointer: `${this._meta.pointer}/payload` }); - } - servers() { - const servers = []; - const serversData = []; - this.channels().forEach(channel => { - channel.servers().forEach(server => { - if (!serversData.includes(server.json())) { - serversData.push(server.json()); - servers.push(server); - } - }); - }); - return new servers_1.Servers(servers); - } - channels() { - const channels = []; - const channelsData = []; - this.operations().all().forEach(operation => { - operation.channels().forEach(channel => { - if (!channelsData.includes(channel.json())) { - channelsData.push(channel.json()); - channels.push(channel); - } - }); - }); - return new channels_1.Channels(channels); - } - operations() { - var _a; - const operations = []; - Object.entries(((_a = this._meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed.channels) || {}).forEach(([channelAddress, channel]) => { - ['subscribe', 'publish'].forEach(operationAction => { - const operation = channel[operationAction]; - if (operation && (operation.message === this._json || - (operation.message.oneOf || []).includes(this._json))) { - operations.push(this.createModel(operation_1.Operation, operation, { id: '', pointer: `/channels/${(0, utils_1.tilde)(channelAddress)}/${operationAction}`, action: operationAction })); - } - }); - }); - return new operations_1.Operations(operations); - } - traits() { - return new message_traits_1.MessageTraits((this._json.traits || []).map((trait, index) => { - return this.createModel(message_trait_1.MessageTrait, trait, { id: '', pointer: `${this._meta.pointer}/traits/${index}` }); - })); - } -} -exports.Message = Message; diff --git a/cjs/models/v2/messages.d.ts b/cjs/models/v2/messages.d.ts deleted file mode 100644 index d988f36fb..000000000 --- a/cjs/models/v2/messages.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Collection } from '../collection'; -import type { MessagesInterface } from '../messages'; -import type { MessageInterface } from '../message'; -export declare class Messages extends Collection implements MessagesInterface { - get(name: string): MessageInterface | undefined; - filterBySend(): MessageInterface[]; - filterByReceive(): MessageInterface[]; -} diff --git a/cjs/models/v2/messages.js b/cjs/models/v2/messages.js deleted file mode 100644 index dc5d9adae..000000000 --- a/cjs/models/v2/messages.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Messages = void 0; -const collection_1 = require("../collection"); -class Messages extends collection_1.Collection { - get(name) { - return this.collections.find(message => message.id() === name); - } - filterBySend() { - return this.filterBy(message => message.operations().filterBySend().length > 0); - } - filterByReceive() { - return this.filterBy(message => message.operations().filterByReceive().length > 0); - } -} -exports.Messages = Messages; diff --git a/cjs/models/v2/mixins.d.ts b/cjs/models/v2/mixins.d.ts deleted file mode 100644 index 08b4d9d43..000000000 --- a/cjs/models/v2/mixins.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type { BaseModel } from '../base'; -import type { BindingsInterface } from '../bindings'; -import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; -import type { TagsInterface } from '../tags'; -import type { v2 } from '../../spec-types'; -export declare function bindings(model: BaseModel<{ - bindings?: Record; -}>): BindingsInterface; -export declare function hasDescription(model: BaseModel<{ - description?: string; -}>): boolean; -export declare function description(model: BaseModel<{ - description?: string; -}>): string | undefined; -export declare function extensions(model: BaseModel): ExtensionsInterface; -export declare function hasExternalDocs(model: BaseModel<{ - externalDocs?: v2.ExternalDocumentationObject; -}>): boolean; -export declare function externalDocs(model: BaseModel<{ - externalDocs?: v2.ExternalDocumentationObject; -}>): ExternalDocumentationInterface | undefined; -export declare function tags(model: BaseModel<{ - tags?: v2.TagsObject; -}>): TagsInterface; diff --git a/cjs/models/v2/mixins.js b/cjs/models/v2/mixins.js deleted file mode 100644 index 899e4ebf9..000000000 --- a/cjs/models/v2/mixins.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.tags = exports.externalDocs = exports.hasExternalDocs = exports.extensions = exports.description = exports.hasDescription = exports.bindings = void 0; -const bindings_1 = require("./bindings"); -const binding_1 = require("./binding"); -const extensions_1 = require("./extensions"); -const extension_1 = require("./extension"); -const external_docs_1 = require("./external-docs"); -const tags_1 = require("./tags"); -const tag_1 = require("./tag"); -const utils_1 = require("../utils"); -const constants_1 = require("../../constants"); -function bindings(model) { - const bindings = model.json('bindings') || {}; - return new bindings_1.Bindings(Object.entries(bindings || {}).map(([protocol, binding]) => (0, utils_1.createModel)(binding_1.Binding, binding, { protocol, pointer: model.jsonPath(`bindings/${protocol}`) }, model)), { originalData: bindings, asyncapi: model.meta('asyncapi'), pointer: model.jsonPath('bindings') }); -} -exports.bindings = bindings; -function hasDescription(model) { - return Boolean(description(model)); -} -exports.hasDescription = hasDescription; -function description(model) { - return model.json('description'); -} -exports.description = description; -function extensions(model) { - const extensions = []; - Object.entries(model.json()).forEach(([id, value]) => { - if (constants_1.EXTENSION_REGEX.test(id)) { - extensions.push((0, utils_1.createModel)(extension_1.Extension, value, { id, pointer: model.jsonPath(id) }, model)); - } - }); - return new extensions_1.Extensions(extensions); -} -exports.extensions = extensions; -function hasExternalDocs(model) { - return Object.keys(model.json('externalDocs') || {}).length > 0; -} -exports.hasExternalDocs = hasExternalDocs; -function externalDocs(model) { - if (hasExternalDocs(model)) { - return new external_docs_1.ExternalDocumentation(model.json('externalDocs')); - } -} -exports.externalDocs = externalDocs; -function tags(model) { - return new tags_1.Tags((model.json('tags') || []).map((tag, idx) => (0, utils_1.createModel)(tag_1.Tag, tag, { pointer: model.jsonPath(`tags/${idx}`) }, model))); -} -exports.tags = tags; diff --git a/cjs/models/v2/oauth-flow.d.ts b/cjs/models/v2/oauth-flow.d.ts deleted file mode 100644 index e7b13eb0e..000000000 --- a/cjs/models/v2/oauth-flow.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { BaseModel } from '../base'; -import type { ExtensionsInterface } from '../extensions'; -import type { OAuthFlowInterface } from '../oauth-flow'; -import type { v2 } from '../../spec-types'; -export declare class OAuthFlow extends BaseModel implements OAuthFlowInterface { - authorizationUrl(): string | undefined; - hasRefreshUrl(): boolean; - refreshUrl(): string | undefined; - scopes(): Record | undefined; - tokenUrl(): string | undefined; - extensions(): ExtensionsInterface; -} diff --git a/cjs/models/v2/oauth-flow.js b/cjs/models/v2/oauth-flow.js deleted file mode 100644 index 660015a2c..000000000 --- a/cjs/models/v2/oauth-flow.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OAuthFlow = void 0; -const base_1 = require("../base"); -const mixins_1 = require("./mixins"); -class OAuthFlow extends base_1.BaseModel { - authorizationUrl() { - return this.json().authorizationUrl; - } - hasRefreshUrl() { - return !!this._json.refreshUrl; - } - refreshUrl() { - return this._json.refreshUrl; - } - scopes() { - return this._json.scopes; - } - tokenUrl() { - return this.json().tokenUrl; - } - extensions() { - return (0, mixins_1.extensions)(this); - } -} -exports.OAuthFlow = OAuthFlow; diff --git a/cjs/models/v2/oauth-flows.d.ts b/cjs/models/v2/oauth-flows.d.ts deleted file mode 100644 index 9ff0b07ed..000000000 --- a/cjs/models/v2/oauth-flows.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { BaseModel } from '../base'; -import type { ExtensionsInterface } from '../extensions'; -import type { OAuthFlowsInterface } from '../oauth-flows'; -import type { OAuthFlowInterface } from '../oauth-flow'; -import type { v2 } from '../../spec-types'; -export declare class OAuthFlows extends BaseModel implements OAuthFlowsInterface { - hasAuthorizationCode(): boolean; - authorizationCode(): OAuthFlowInterface | undefined; - hasClientCredentials(): boolean; - clientCredentials(): OAuthFlowInterface | undefined; - hasImplicit(): boolean; - implicit(): OAuthFlowInterface | undefined; - hasPassword(): boolean; - password(): OAuthFlowInterface | undefined; - extensions(): ExtensionsInterface; -} diff --git a/cjs/models/v2/oauth-flows.js b/cjs/models/v2/oauth-flows.js deleted file mode 100644 index 8b21aa91b..000000000 --- a/cjs/models/v2/oauth-flows.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OAuthFlows = void 0; -const base_1 = require("../base"); -const oauth_flow_1 = require("./oauth-flow"); -const mixins_1 = require("./mixins"); -class OAuthFlows extends base_1.BaseModel { - hasAuthorizationCode() { - return !!this._json.authorizationCode; - } - authorizationCode() { - if (!this._json.authorizationCode) - return undefined; - return new oauth_flow_1.OAuthFlow(this._json.authorizationCode); - } - hasClientCredentials() { - return !!this._json.clientCredentials; - } - clientCredentials() { - if (!this._json.clientCredentials) - return undefined; - return new oauth_flow_1.OAuthFlow(this._json.clientCredentials); - } - hasImplicit() { - return !!this._json.implicit; - } - implicit() { - if (!this._json.implicit) - return undefined; - return new oauth_flow_1.OAuthFlow(this._json.implicit); - } - hasPassword() { - return !!this._json.password; - } - password() { - if (!this._json.password) - return undefined; - return new oauth_flow_1.OAuthFlow(this._json.password); - } - extensions() { - return (0, mixins_1.extensions)(this); - } -} -exports.OAuthFlows = OAuthFlows; diff --git a/cjs/models/v2/operation-trait.d.ts b/cjs/models/v2/operation-trait.d.ts deleted file mode 100644 index 8836598bc..000000000 --- a/cjs/models/v2/operation-trait.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { BaseModel } from '../base'; -import type { BindingsInterface } from '../bindings'; -import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; -import type { OperationAction } from '../operation'; -import type { OperationTraitInterface } from '../operation-trait'; -import type { TagsInterface } from '../tags'; -import type { v2 } from '../../spec-types'; -import { SecurityRequirements } from './security-requirements'; -export declare class OperationTrait extends BaseModel implements OperationTraitInterface { - id(): string; - action(): OperationAction; - hasOperationId(): boolean; - operationId(): string | undefined; - hasSummary(): boolean; - summary(): string | undefined; - hasDescription(): boolean; - description(): string | undefined; - hasExternalDocs(): boolean; - isSend(): boolean; - isReceive(): boolean; - externalDocs(): ExternalDocumentationInterface | undefined; - security(): SecurityRequirements[]; - tags(): TagsInterface; - bindings(): BindingsInterface; - extensions(): ExtensionsInterface; -} diff --git a/cjs/models/v2/operation-trait.js b/cjs/models/v2/operation-trait.js deleted file mode 100644 index 859563952..000000000 --- a/cjs/models/v2/operation-trait.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OperationTrait = void 0; -const base_1 = require("../base"); -const security_scheme_1 = require("./security-scheme"); -const mixins_1 = require("./mixins"); -const security_requirements_1 = require("./security-requirements"); -const security_requirement_1 = require("./security-requirement"); -class OperationTrait extends base_1.BaseModel { - id() { - return this.operationId() || this._meta.id; - } - action() { - return this._meta.action; - } - hasOperationId() { - return !!this._json.operationId; - } - operationId() { - return this._json.operationId; - } - hasSummary() { - return !!this._json.summary; - } - summary() { - return this._json.summary; - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - description() { - return (0, mixins_1.description)(this); - } - hasExternalDocs() { - return (0, mixins_1.hasExternalDocs)(this); - } - isSend() { - return this.action() === 'subscribe'; - } - isReceive() { - return this.action() === 'publish'; - } - externalDocs() { - return (0, mixins_1.externalDocs)(this); - } - security() { - var _a, _b, _c, _d; - const securitySchemes = (((_d = (_c = (_b = (_a = this._meta) === null || _a === void 0 ? void 0 : _a.asyncapi) === null || _b === void 0 ? void 0 : _b.parsed) === null || _c === void 0 ? void 0 : _c.components) === null || _d === void 0 ? void 0 : _d.securitySchemes) || {}); - return (this._json.security || []).map((requirement, index) => { - const requirements = []; - Object.entries(requirement).forEach(([security, scopes]) => { - const scheme = this.createModel(security_scheme_1.SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }); - requirements.push(this.createModel(security_requirement_1.SecurityRequirement, { scheme, scopes }, { id: security, pointer: `${this.meta().pointer}/security/${index}/${security}` })); - }); - return new security_requirements_1.SecurityRequirements(requirements); - }); - } - tags() { - return (0, mixins_1.tags)(this); - } - bindings() { - return (0, mixins_1.bindings)(this); - } - extensions() { - return (0, mixins_1.extensions)(this); - } -} -exports.OperationTrait = OperationTrait; diff --git a/cjs/models/v2/operation-traits.d.ts b/cjs/models/v2/operation-traits.d.ts deleted file mode 100644 index 0de03b0ff..000000000 --- a/cjs/models/v2/operation-traits.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { OperationTraitsInterface } from '../operation-traits'; -import type { OperationTraitInterface } from '../operation-trait'; -export declare class OperationTraits extends Collection implements OperationTraitsInterface { - get(id: string): OperationTraitInterface | undefined; -} diff --git a/cjs/models/v2/operation-traits.js b/cjs/models/v2/operation-traits.js deleted file mode 100644 index fe5d408ba..000000000 --- a/cjs/models/v2/operation-traits.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OperationTraits = void 0; -const collection_1 = require("../collection"); -class OperationTraits extends collection_1.Collection { - get(id) { - return this.collections.find(trait => trait.id() === id); - } -} -exports.OperationTraits = OperationTraits; diff --git a/cjs/models/v2/operation.d.ts b/cjs/models/v2/operation.d.ts deleted file mode 100644 index ef5f3e00b..000000000 --- a/cjs/models/v2/operation.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { OperationTrait } from './operation-trait'; -import type { ChannelsInterface } from '../channels'; -import type { MessagesInterface } from '../messages'; -import type { OperationInterface } from '../operation'; -import type { OperationTraitsInterface } from '../operation-traits'; -import type { ServersInterface } from '../servers'; -import type { v2 } from '../../spec-types'; -export declare class Operation extends OperationTrait implements OperationInterface { - servers(): ServersInterface; - channels(): ChannelsInterface; - messages(): MessagesInterface; - traits(): OperationTraitsInterface; -} diff --git a/cjs/models/v2/operation.js b/cjs/models/v2/operation.js deleted file mode 100644 index d59c046c8..000000000 --- a/cjs/models/v2/operation.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Operation = void 0; -const channels_1 = require("./channels"); -const channel_1 = require("./channel"); -const messages_1 = require("./messages"); -const message_1 = require("./message"); -const operation_traits_1 = require("./operation-traits"); -const operation_trait_1 = require("./operation-trait"); -const servers_1 = require("./servers"); -const utils_1 = require("../../utils"); -class Operation extends operation_trait_1.OperationTrait { - servers() { - const servers = []; - const serversData = []; - this.channels().forEach(channel => { - channel.servers().forEach(server => { - if (!serversData.includes(server.json())) { - serversData.push(server.json()); - servers.push(server); - } - }); - }); - return new servers_1.Servers(servers); - } - channels() { - const channels = []; - Object.entries(this._meta.asyncapi.parsed.channels || {}).forEach(([channelAddress, channel]) => { - if (channel.subscribe === this._json || channel.publish === this._json) { - channels.push(this.createModel(channel_1.Channel, channel, { id: channelAddress, address: channelAddress, pointer: `/channels/${(0, utils_1.tilde)(channelAddress)}` })); - } - }); - return new channels_1.Channels(channels); - } - messages() { - let isOneOf = false; - let messages = []; - if (this._json.message) { - if (Array.isArray(this._json.message.oneOf)) { - messages = this._json.message.oneOf; - isOneOf = true; - } - else { - messages = [this._json.message]; - } - } - return new messages_1.Messages(messages.map((message, index) => { - return this.createModel(message_1.Message, message, { id: '', pointer: `${this._meta.pointer}/message${isOneOf ? `/oneOf/${index}` : ''}` }); - })); - } - traits() { - return new operation_traits_1.OperationTraits((this._json.traits || []).map((trait, index) => { - return this.createModel(operation_trait_1.OperationTrait, trait, { id: '', pointer: `${this._meta.pointer}/traits/${index}`, action: '' }); - })); - } -} -exports.Operation = Operation; diff --git a/cjs/models/v2/operations.d.ts b/cjs/models/v2/operations.d.ts deleted file mode 100644 index 161cb9b2e..000000000 --- a/cjs/models/v2/operations.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Collection } from '../collection'; -import type { OperationsInterface } from '../operations'; -import type { OperationInterface } from '../operation'; -export declare class Operations extends Collection implements OperationsInterface { - get(id: string): OperationInterface | undefined; - filterBySend(): OperationInterface[]; - filterByReceive(): OperationInterface[]; -} diff --git a/cjs/models/v2/operations.js b/cjs/models/v2/operations.js deleted file mode 100644 index 2d57fd625..000000000 --- a/cjs/models/v2/operations.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Operations = void 0; -const collection_1 = require("../collection"); -class Operations extends collection_1.Collection { - get(id) { - return this.collections.find(operation => operation.id() === id); - } - filterBySend() { - return this.filterBy(operation => operation.isSend()); - } - filterByReceive() { - return this.filterBy(operation => operation.isReceive()); - } -} -exports.Operations = Operations; diff --git a/cjs/models/v2/schema.d.ts b/cjs/models/v2/schema.d.ts deleted file mode 100644 index ce5ad2a24..000000000 --- a/cjs/models/v2/schema.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { BaseModel } from '../base'; -import type { ModelMetadata } from '../base'; -import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; -import type { SchemaInterface } from '../schema'; -import type { v2 } from '../../spec-types'; -export declare class Schema extends BaseModel implements SchemaInterface { - constructor(_json: v2.AsyncAPISchemaObject, _meta?: ModelMetadata & { - id: string; - parent?: Schema; - }); - uid(): string; - $comment(): string | undefined; - $id(): string | undefined; - $schema(): string; - additionalItems(): boolean | SchemaInterface; - additionalProperties(): boolean | SchemaInterface; - allOf(): Array | undefined; - anyOf(): Array | undefined; - const(): any; - contains(): SchemaInterface | undefined; - contentEncoding(): string | undefined; - contentMediaType(): string | undefined; - default(): any; - definitions(): Record | undefined; - description(): string | undefined; - dependencies(): Record> | undefined; - deprecated(): boolean; - discriminator(): string | undefined; - else(): SchemaInterface | undefined; - enum(): Array | undefined; - examples(): Array | undefined; - exclusiveMaximum(): number | undefined; - exclusiveMinimum(): number | undefined; - format(): string | undefined; - isBooleanSchema(): boolean; - if(): SchemaInterface | undefined; - isCircular(): boolean; - items(): SchemaInterface | Array | undefined; - maximum(): number | undefined; - maxItems(): number | undefined; - maxLength(): number | undefined; - maxProperties(): number | undefined; - minimum(): number | undefined; - minItems(): number | undefined; - minLength(): number | undefined; - minProperties(): number | undefined; - multipleOf(): number | undefined; - not(): SchemaInterface | undefined; - oneOf(): Array | undefined; - pattern(): string | undefined; - patternProperties(): Record | undefined; - properties(): Record | undefined; - property(name: string): SchemaInterface | undefined; - propertyNames(): SchemaInterface | undefined; - readOnly(): boolean | undefined; - required(): Array | undefined; - then(): SchemaInterface | undefined; - title(): string | undefined; - type(): string | Array | undefined; - uniqueItems(): boolean | undefined; - writeOnly(): boolean | undefined; - hasExternalDocs(): boolean; - externalDocs(): ExternalDocumentationInterface | undefined; - extensions(): ExtensionsInterface; -} diff --git a/cjs/models/v2/schema.js b/cjs/models/v2/schema.js deleted file mode 100644 index 9b4c4e18a..000000000 --- a/cjs/models/v2/schema.js +++ /dev/null @@ -1,313 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Schema = void 0; -const base_1 = require("../base"); -const constants_1 = require("../../constants"); -const mixins_1 = require("./mixins"); -const utils_1 = require("../../utils"); -class Schema extends base_1.BaseModel { - constructor(_json, _meta = {}) { - var _a; - _json = (0, utils_1.retrievePossibleRef)(_json, _meta.pointer, (_a = _meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed); - super(_json, _meta); - } - uid() { - var _a; - return this._meta.id || ((_a = this.extensions().get(constants_1.xParserSchemaId)) === null || _a === void 0 ? void 0 : _a.value()); - } - $comment() { - if (typeof this._json === 'boolean') - return; - return this._json.$comment; - } - $id() { - if (typeof this._json === 'boolean') - return; - return this._json.$id; - } - $schema() { - if (typeof this._json === 'boolean') - return 'http://json-schema.org/draft-07/schema#'; - return this._json.$schema || 'http://json-schema.org/draft-07/schema#'; - } - additionalItems() { - if (typeof this._json === 'boolean') - return this._json; - if (this._json.additionalItems === undefined) - return true; - if (typeof this._json.additionalItems === 'boolean') - return this._json.additionalItems; - return this.createModel(Schema, this._json.additionalItems, { pointer: `${this._meta.pointer}/additionalItems`, parent: this }); - } - additionalProperties() { - if (typeof this._json === 'boolean') - return this._json; - if (this._json.additionalProperties === undefined) - return true; - if (typeof this._json.additionalProperties === 'boolean') - return this._json.additionalProperties; - return this.createModel(Schema, this._json.additionalProperties, { pointer: `${this._meta.pointer}/additionalProperties`, parent: this }); - } - allOf() { - if (typeof this._json === 'boolean') - return; - if (!Array.isArray(this._json.allOf)) - return undefined; - return this._json.allOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/allOf/${index}`, parent: this })); - } - anyOf() { - if (typeof this._json === 'boolean') - return; - if (!Array.isArray(this._json.anyOf)) - return undefined; - return this._json.anyOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/anyOf/${index}`, parent: this })); - } - const() { - if (typeof this._json === 'boolean') - return; - return this._json.const; - } - contains() { - if (typeof this._json === 'boolean' || typeof this._json.contains !== 'object') - return; - return this.createModel(Schema, this._json.contains, { pointer: `${this._meta.pointer}/contains`, parent: this }); - } - contentEncoding() { - if (typeof this._json === 'boolean') - return; - return this._json.contentEncoding; - } - contentMediaType() { - if (typeof this._json === 'boolean') - return; - return this._json.contentMediaType; - } - default() { - if (typeof this._json === 'boolean') - return; - return this._json.default; - } - definitions() { - if (typeof this._json === 'boolean' || typeof this._json.definitions !== 'object') - return; - return Object.entries(this._json.definitions).reduce((acc, [key, s]) => { - acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/definitions/${key}`, parent: this }); - return acc; - }, {}); - } - description() { - if (typeof this._json === 'boolean') - return; - return this._json.description; - } - dependencies() { - if (typeof this._json === 'boolean') - return; - if (typeof this._json.dependencies !== 'object') - return undefined; - return Object.entries(this._json.dependencies).reduce((acc, [key, s]) => { - acc[key] = Array.isArray(s) ? s : this.createModel(Schema, s, { pointer: `${this._meta.pointer}/dependencies/${key}`, parent: this }); - return acc; - }, {}); - } - deprecated() { - if (typeof this._json === 'boolean') - return false; - return this._json.deprecated || false; - } - discriminator() { - if (typeof this._json === 'boolean') - return; - return this._json.discriminator; - } - else() { - if (typeof this._json === 'boolean' || typeof this._json.else !== 'object') - return; - return this.createModel(Schema, this._json.else, { pointer: `${this._meta.pointer}/else`, parent: this }); - } - enum() { - if (typeof this._json === 'boolean') - return; - return this._json.enum; - } - examples() { - if (typeof this._json === 'boolean') - return; - return this._json.examples; - } - exclusiveMaximum() { - if (typeof this._json === 'boolean') - return; - return this._json.exclusiveMaximum; - } - exclusiveMinimum() { - if (typeof this._json === 'boolean') - return; - return this._json.exclusiveMinimum; - } - format() { - if (typeof this._json === 'boolean') - return; - return this._json.format; - } - isBooleanSchema() { - return typeof this._json === 'boolean'; - } - if() { - if (typeof this._json === 'boolean' || typeof this._json.if !== 'object') - return; - return this.createModel(Schema, this._json.if, { pointer: `${this._meta.pointer}/if`, parent: this }); - } - isCircular() { - if ((0, utils_1.hasRef)(this._json)) - return true; - let parent = this._meta.parent; - while (parent) { - if (parent._json === this._json) - return true; - parent = parent._meta.parent; - } - return false; - } - items() { - if (typeof this._json === 'boolean' || typeof this._json.items !== 'object') - return; - if (Array.isArray(this._json.items)) { - return this._json.items.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/items/${index}`, parent: this })); - } - return this.createModel(Schema, this._json.items, { pointer: `${this._meta.pointer}/items`, parent: this }); - } - maximum() { - if (typeof this._json === 'boolean') - return; - return this._json.maximum; - } - maxItems() { - if (typeof this._json === 'boolean') - return; - return this._json.maxItems; - } - maxLength() { - if (typeof this._json === 'boolean') - return; - return this._json.maxLength; - } - maxProperties() { - if (typeof this._json === 'boolean') - return; - return this._json.maxProperties; - } - minimum() { - if (typeof this._json === 'boolean') - return; - return this._json.minimum; - } - minItems() { - if (typeof this._json === 'boolean') - return; - return this._json.minItems; - } - minLength() { - if (typeof this._json === 'boolean') - return; - return this._json.minLength; - } - minProperties() { - if (typeof this._json === 'boolean') - return; - return this._json.minProperties; - } - multipleOf() { - if (typeof this._json === 'boolean') - return; - return this._json.multipleOf; - } - not() { - if (typeof this._json === 'boolean' || typeof this._json.not !== 'object') - return; - return this.createModel(Schema, this._json.not, { pointer: `${this._meta.pointer}/not`, parent: this }); - } - oneOf() { - if (typeof this._json === 'boolean') - return; - if (!Array.isArray(this._json.oneOf)) - return undefined; - return this._json.oneOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/oneOf/${index}`, parent: this })); - } - pattern() { - if (typeof this._json === 'boolean') - return; - return this._json.pattern; - } - patternProperties() { - if (typeof this._json === 'boolean' || typeof this._json.patternProperties !== 'object') - return; - return Object.entries(this._json.patternProperties).reduce((acc, [key, s]) => { - acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/patternProperties/${key}`, parent: this }); - return acc; - }, {}); - } - properties() { - if (typeof this._json === 'boolean' || typeof this._json.properties !== 'object') - return; - return Object.entries(this._json.properties).reduce((acc, [key, s]) => { - acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/properties/${key}`, parent: this }); - return acc; - }, {}); - } - property(name) { - if (typeof this._json === 'boolean' || typeof this._json.properties !== 'object' || typeof this._json.properties[name] !== 'object') - return; - return this.createModel(Schema, this._json.properties[name], { pointer: `${this._meta.pointer}/properties/${name}`, parent: this }); - } - propertyNames() { - if (typeof this._json === 'boolean' || typeof this._json.propertyNames !== 'object') - return; - return this.createModel(Schema, this._json.propertyNames, { pointer: `${this._meta.pointer}/propertyNames`, parent: this }); - } - readOnly() { - if (typeof this._json === 'boolean') - return false; - return this._json.readOnly || false; - } - required() { - if (typeof this._json === 'boolean') - return; - return this._json.required; - } - then() { - if (typeof this._json === 'boolean' || typeof this._json.then !== 'object') - return; - return this.createModel(Schema, this._json.then, { pointer: `${this._meta.pointer}/then`, parent: this }); - } - title() { - if (typeof this._json === 'boolean') - return; - return this._json.title; - } - type() { - if (typeof this._json === 'boolean') - return; - return this._json.type; - } - uniqueItems() { - if (typeof this._json === 'boolean') - return false; - return this._json.uniqueItems || false; - } - writeOnly() { - if (typeof this._json === 'boolean') - return false; - return this._json.writeOnly || false; - } - hasExternalDocs() { - return (0, mixins_1.hasExternalDocs)(this); - } - externalDocs() { - return (0, mixins_1.externalDocs)(this); - } - extensions() { - return (0, mixins_1.extensions)(this); - } -} -exports.Schema = Schema; diff --git a/cjs/models/v2/schemas.d.ts b/cjs/models/v2/schemas.d.ts deleted file mode 100644 index 15c1d17bc..000000000 --- a/cjs/models/v2/schemas.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { SchemasInterface } from '../schemas'; -import type { SchemaInterface } from '../schema'; -export declare class Schemas extends Collection implements SchemasInterface { - get(id: string): SchemaInterface | undefined; -} diff --git a/cjs/models/v2/schemas.js b/cjs/models/v2/schemas.js deleted file mode 100644 index 01dc44be8..000000000 --- a/cjs/models/v2/schemas.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Schemas = void 0; -const collection_1 = require("../collection"); -class Schemas extends collection_1.Collection { - get(id) { - return this.collections.find(schema => schema.uid() === id); - } -} -exports.Schemas = Schemas; diff --git a/cjs/models/v2/security-requirement.d.ts b/cjs/models/v2/security-requirement.d.ts deleted file mode 100644 index 88cb3a757..000000000 --- a/cjs/models/v2/security-requirement.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { BaseModel } from '../base'; -import type { SecuritySchemeInterface } from '../security-scheme'; -import type { SecurityRequirementInterface } from '../security-requirement'; -export declare class SecurityRequirement extends BaseModel<{ - scopes?: string[]; - scheme: SecuritySchemeInterface; -}, { - id?: string; -}> implements SecurityRequirementInterface { - scheme(): SecuritySchemeInterface; - scopes(): string[]; -} diff --git a/cjs/models/v2/security-requirement.js b/cjs/models/v2/security-requirement.js deleted file mode 100644 index 7361b25ca..000000000 --- a/cjs/models/v2/security-requirement.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SecurityRequirement = void 0; -const base_1 = require("../base"); -class SecurityRequirement extends base_1.BaseModel { - scheme() { - return this._json.scheme; - } - scopes() { - return this._json.scopes || []; - } -} -exports.SecurityRequirement = SecurityRequirement; diff --git a/cjs/models/v2/security-requirements.d.ts b/cjs/models/v2/security-requirements.d.ts deleted file mode 100644 index 882dd7bbc..000000000 --- a/cjs/models/v2/security-requirements.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { SecurityRequirementsInterface } from '../security-requirements'; -import type { SecurityRequirementInterface } from '../security-requirement'; -export declare class SecurityRequirements extends Collection implements SecurityRequirementsInterface { - get(id: string): SecurityRequirementInterface | undefined; -} diff --git a/cjs/models/v2/security-requirements.js b/cjs/models/v2/security-requirements.js deleted file mode 100644 index 10a90fa51..000000000 --- a/cjs/models/v2/security-requirements.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SecurityRequirements = void 0; -const collection_1 = require("../collection"); -class SecurityRequirements extends collection_1.Collection { - get(id) { - return this.collections.find(securityRequirement => securityRequirement.meta('id') === id); - } -} -exports.SecurityRequirements = SecurityRequirements; diff --git a/cjs/models/v2/security-scheme.d.ts b/cjs/models/v2/security-scheme.d.ts deleted file mode 100644 index c87559674..000000000 --- a/cjs/models/v2/security-scheme.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { BaseModel } from '../base'; -import type { ExtensionsInterface } from '../extensions'; -import type { SecuritySchemeInterface } from '../security-scheme'; -import type { OAuthFlowsInterface } from '../oauth-flows'; -import type { v2 } from '../../spec-types'; -export declare class SecurityScheme extends BaseModel implements SecuritySchemeInterface { - id(): string; - hasDescription(): boolean; - description(): string | undefined; - hasBearerFormat(): boolean; - bearerFormat(): string | undefined; - openIdConnectUrl(): string | undefined; - scheme(): string | undefined; - flows(): OAuthFlowsInterface | undefined; - type(): v2.SecuritySchemeType; - in(): v2.SecuritySchemaLocation | undefined; - extensions(): ExtensionsInterface; -} diff --git a/cjs/models/v2/security-scheme.js b/cjs/models/v2/security-scheme.js deleted file mode 100644 index 95a50a451..000000000 --- a/cjs/models/v2/security-scheme.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SecurityScheme = void 0; -const base_1 = require("../base"); -const oauth_flows_1 = require("./oauth-flows"); -const mixins_1 = require("./mixins"); -class SecurityScheme extends base_1.BaseModel { - id() { - return this._meta.id; - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - description() { - return (0, mixins_1.description)(this); - } - hasBearerFormat() { - return !!this._json.bearerFormat; - } - bearerFormat() { - return this._json.bearerFormat; - } - openIdConnectUrl() { - return this._json.openIdConnectUrl; - } - scheme() { - return this._json.scheme; - } - flows() { - if (!this._json.flows) - return undefined; - return new oauth_flows_1.OAuthFlows(this._json.flows); - } - type() { - return this._json.type; - } - in() { - return this._json.in; - } - extensions() { - return (0, mixins_1.extensions)(this); - } -} -exports.SecurityScheme = SecurityScheme; diff --git a/cjs/models/v2/security-schemes.d.ts b/cjs/models/v2/security-schemes.d.ts deleted file mode 100644 index e9d23e914..000000000 --- a/cjs/models/v2/security-schemes.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { SecuritySchemesInterface } from '../security-schemes'; -import type { SecuritySchemeInterface } from '../security-scheme'; -export declare class SecuritySchemes extends Collection implements SecuritySchemesInterface { - get(id: string): SecuritySchemeInterface | undefined; -} diff --git a/cjs/models/v2/security-schemes.js b/cjs/models/v2/security-schemes.js deleted file mode 100644 index ff43c7f68..000000000 --- a/cjs/models/v2/security-schemes.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SecuritySchemes = void 0; -const collection_1 = require("../collection"); -class SecuritySchemes extends collection_1.Collection { - get(id) { - return this.collections.find(securityScheme => securityScheme.id() === id); - } -} -exports.SecuritySchemes = SecuritySchemes; diff --git a/cjs/models/v2/server-variable.d.ts b/cjs/models/v2/server-variable.d.ts deleted file mode 100644 index 973203637..000000000 --- a/cjs/models/v2/server-variable.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { BaseModel } from '../base'; -import type { ExtensionsInterface } from '../extensions'; -import type { ServerVariableInterface } from '../server-variable'; -import type { v2 } from '../../spec-types'; -export declare class ServerVariable extends BaseModel implements ServerVariableInterface { - id(): string; - hasDescription(): boolean; - description(): string | undefined; - hasDefaultValue(): boolean; - defaultValue(): string | undefined; - hasAllowedValues(): boolean; - allowedValues(): Array; - examples(): Array; - extensions(): ExtensionsInterface; -} diff --git a/cjs/models/v2/server-variable.js b/cjs/models/v2/server-variable.js deleted file mode 100644 index 8b3b363a8..000000000 --- a/cjs/models/v2/server-variable.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ServerVariable = void 0; -const base_1 = require("../base"); -const mixins_1 = require("./mixins"); -class ServerVariable extends base_1.BaseModel { - id() { - return this._meta.id; - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - description() { - return (0, mixins_1.description)(this); - } - hasDefaultValue() { - return !!this._json.default; - } - defaultValue() { - return this._json.default; - } - hasAllowedValues() { - return !!this._json.enum; - } - allowedValues() { - return this._json.enum || []; - } - examples() { - return this._json.examples || []; - } - extensions() { - return (0, mixins_1.extensions)(this); - } -} -exports.ServerVariable = ServerVariable; diff --git a/cjs/models/v2/server-variables.d.ts b/cjs/models/v2/server-variables.d.ts deleted file mode 100644 index 7e3ebe7f4..000000000 --- a/cjs/models/v2/server-variables.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { ServerVariablesInterface } from '../server-variables'; -import type { ServerVariableInterface } from '../server-variable'; -export declare class ServerVariables extends Collection implements ServerVariablesInterface { - get(id: string): ServerVariableInterface | undefined; -} diff --git a/cjs/models/v2/server-variables.js b/cjs/models/v2/server-variables.js deleted file mode 100644 index 80f27b71b..000000000 --- a/cjs/models/v2/server-variables.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ServerVariables = void 0; -const collection_1 = require("../collection"); -class ServerVariables extends collection_1.Collection { - get(id) { - return this.collections.find(variable => variable.id() === id); - } -} -exports.ServerVariables = ServerVariables; diff --git a/cjs/models/v2/server.d.ts b/cjs/models/v2/server.d.ts deleted file mode 100644 index 674244462..000000000 --- a/cjs/models/v2/server.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { BaseModel } from '../base'; -import { SecurityRequirements } from './security-requirements'; -import type { ChannelsInterface } from '../channels'; -import type { OperationsInterface } from '../operations'; -import type { MessagesInterface } from '../messages'; -import type { ServerInterface } from '../server'; -import type { ServerVariablesInterface } from '../server-variables'; -import type { ExtensionsInterface } from '../extensions'; -import type { BindingsInterface } from '../bindings'; -import type { v2 } from '../../spec-types'; -export declare class Server extends BaseModel implements ServerInterface { - id(): string; - url(): string; - protocol(): string; - hasProtocolVersion(): boolean; - protocolVersion(): string | undefined; - hasDescription(): boolean; - description(): string | undefined; - channels(): ChannelsInterface; - operations(): OperationsInterface; - messages(): MessagesInterface; - variables(): ServerVariablesInterface; - security(): SecurityRequirements[]; - bindings(): BindingsInterface; - extensions(): ExtensionsInterface; -} diff --git a/cjs/models/v2/server.js b/cjs/models/v2/server.js deleted file mode 100644 index 5d51be5c4..000000000 --- a/cjs/models/v2/server.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Server = void 0; -const base_1 = require("../base"); -const channels_1 = require("./channels"); -const channel_1 = require("./channel"); -const messages_1 = require("./messages"); -const operations_1 = require("./operations"); -const security_scheme_1 = require("./security-scheme"); -const server_variables_1 = require("./server-variables"); -const server_variable_1 = require("./server-variable"); -const security_requirements_1 = require("./security-requirements"); -const security_requirement_1 = require("./security-requirement"); -const mixins_1 = require("./mixins"); -const utils_1 = require("../../utils"); -class Server extends base_1.BaseModel { - id() { - return this._meta.id; - } - url() { - return this._json.url; - } - protocol() { - return this._json.protocol; - } - hasProtocolVersion() { - return !!this._json.protocolVersion; - } - protocolVersion() { - return this._json.protocolVersion; - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - description() { - return (0, mixins_1.description)(this); - } - channels() { - var _a; - const channels = []; - Object.entries(((_a = this._meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed.channels) || {}).forEach(([channelAddress, channel]) => { - const allowedServers = channel.servers || []; - if (allowedServers.length === 0 || allowedServers.includes(this._meta.id)) { - channels.push(this.createModel(channel_1.Channel, channel, { id: channelAddress, address: channelAddress, pointer: `/channels/${(0, utils_1.tilde)(channelAddress)}` })); - } - }); - return new channels_1.Channels(channels); - } - operations() { - const operations = []; - this.channels().forEach(channel => { - operations.push(...channel.operations().all()); - }); - return new operations_1.Operations(operations); - } - messages() { - const messages = []; - this.operations().forEach(operation => messages.push(...operation.messages().all())); - return new messages_1.Messages(messages); - } - variables() { - return new server_variables_1.ServerVariables(Object.entries(this._json.variables || {}).map(([serverVariableName, serverVariable]) => { - return this.createModel(server_variable_1.ServerVariable, serverVariable, { - id: serverVariableName, - pointer: `${this._meta.pointer}/variables/${serverVariableName}` - }); - })); - } - security() { - var _a, _b, _c, _d; - const securitySchemes = (((_d = (_c = (_b = (_a = this._meta) === null || _a === void 0 ? void 0 : _a.asyncapi) === null || _b === void 0 ? void 0 : _b.parsed) === null || _c === void 0 ? void 0 : _c.components) === null || _d === void 0 ? void 0 : _d.securitySchemes) || {}); - return (this._json.security || []).map((requirement, index) => { - const requirements = []; - Object.entries(requirement).forEach(([security, scopes]) => { - const scheme = this.createModel(security_scheme_1.SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }); - requirements.push(this.createModel(security_requirement_1.SecurityRequirement, { scheme, scopes }, { id: security, pointer: `${this.meta().pointer}/security/${index}/${security}` })); - }); - return new security_requirements_1.SecurityRequirements(requirements); - }); - } - bindings() { - return (0, mixins_1.bindings)(this); - } - extensions() { - return (0, mixins_1.extensions)(this); - } -} -exports.Server = Server; diff --git a/cjs/models/v2/servers.d.ts b/cjs/models/v2/servers.d.ts deleted file mode 100644 index 101c8aa9e..000000000 --- a/cjs/models/v2/servers.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Collection } from '../collection'; -import { ServerInterface } from '../server'; -import { ServersInterface } from '../servers'; -export declare class Servers extends Collection implements ServersInterface { - get(id: string): ServerInterface | undefined; - filterBySend(): ServerInterface[]; - filterByReceive(): ServerInterface[]; -} diff --git a/cjs/models/v2/servers.js b/cjs/models/v2/servers.js deleted file mode 100644 index 030ad9265..000000000 --- a/cjs/models/v2/servers.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Servers = void 0; -const collection_1 = require("../collection"); -class Servers extends collection_1.Collection { - get(id) { - return this.collections.find(server => server.id() === id); - } - filterBySend() { - return this.filterBy(server => server.operations().filterBySend().length > 0); - } - filterByReceive() { - return this.filterBy(server => server.operations().filterByReceive().length > 0); - } -} -exports.Servers = Servers; diff --git a/cjs/models/v2/tag.d.ts b/cjs/models/v2/tag.d.ts deleted file mode 100644 index a7eaf141f..000000000 --- a/cjs/models/v2/tag.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { BaseModel } from '../base'; -import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; -import type { TagInterface } from '../tag'; -import type { v2 } from '../../spec-types'; -export declare class Tag extends BaseModel implements TagInterface { - name(): string; - hasDescription(): boolean; - description(): string | undefined; - extensions(): ExtensionsInterface; - hasExternalDocs(): boolean; - externalDocs(): ExternalDocumentationInterface | undefined; -} diff --git a/cjs/models/v2/tag.js b/cjs/models/v2/tag.js deleted file mode 100644 index b7f899b4b..000000000 --- a/cjs/models/v2/tag.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Tag = void 0; -const base_1 = require("../base"); -const mixins_1 = require("./mixins"); -class Tag extends base_1.BaseModel { - name() { - return this._json.name; - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - description() { - return (0, mixins_1.description)(this); - } - extensions() { - return (0, mixins_1.extensions)(this); - } - hasExternalDocs() { - return (0, mixins_1.hasExternalDocs)(this); - } - externalDocs() { - return (0, mixins_1.externalDocs)(this); - } -} -exports.Tag = Tag; diff --git a/cjs/models/v2/tags.d.ts b/cjs/models/v2/tags.d.ts deleted file mode 100644 index 371794b27..000000000 --- a/cjs/models/v2/tags.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { TagsInterface } from '../tags'; -import type { TagInterface } from '../tag'; -export declare class Tags extends Collection implements TagsInterface { - get(name: string): TagInterface | undefined; -} diff --git a/cjs/models/v2/tags.js b/cjs/models/v2/tags.js deleted file mode 100644 index aa4dc7f08..000000000 --- a/cjs/models/v2/tags.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Tags = void 0; -const collection_1 = require("../collection"); -class Tags extends collection_1.Collection { - get(name) { - return this.collections.find(tag => tag.name() === name); - } -} -exports.Tags = Tags; diff --git a/cjs/models/v3/asyncapi.d.ts b/cjs/models/v3/asyncapi.d.ts deleted file mode 100644 index e6aa68fa7..000000000 --- a/cjs/models/v3/asyncapi.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { BaseModel } from '../base'; -export declare class AsyncAPIDocument extends BaseModel { - version(): string; -} diff --git a/cjs/models/v3/asyncapi.js b/cjs/models/v3/asyncapi.js deleted file mode 100644 index 7501b681c..000000000 --- a/cjs/models/v3/asyncapi.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AsyncAPIDocument = void 0; -const base_1 = require("../base"); -class AsyncAPIDocument extends base_1.BaseModel { - version() { - return this._json.asyncapi; - } -} -exports.AsyncAPIDocument = AsyncAPIDocument; diff --git a/cjs/models/v3/index.d.ts b/cjs/models/v3/index.d.ts deleted file mode 100644 index 050c2109b..000000000 --- a/cjs/models/v3/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { AsyncAPIDocument as AsyncAPIDocumentV3 } from './asyncapi'; diff --git a/cjs/models/v3/index.js b/cjs/models/v3/index.js deleted file mode 100644 index 18d9d0f87..000000000 --- a/cjs/models/v3/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AsyncAPIDocumentV3 = void 0; -var asyncapi_1 = require("./asyncapi"); -Object.defineProperty(exports, "AsyncAPIDocumentV3", { enumerable: true, get: function () { return asyncapi_1.AsyncAPIDocument; } }); diff --git a/cjs/old-api/asyncapi.d.ts b/cjs/old-api/asyncapi.d.ts deleted file mode 100644 index a441ac55a..000000000 --- a/cjs/old-api/asyncapi.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import { Info } from './info'; -import { Server } from './server'; -import { Channel } from './channel'; -import { Components } from './components'; -import { Message } from './message'; -import { Schema } from './schema'; -import type { v2 } from '../spec-types'; -import type { SchemaTypesToIterate, TraverseCallback } from './iterator'; -export declare class AsyncAPIDocument extends SpecificationExtensionsModel { - version(): string; - info(): Info; - id(): string | undefined; - externalDocs(): import("./external-docs").ExternalDocs | null; - hasExternalDocs(): boolean; - hasTags(): boolean; - tags(): import("./tag").Tag[]; - tagNames(): string[]; - hasTag(name: string): boolean; - tag(name: string): import("./tag").Tag | null; - hasServers(): boolean; - servers(): Record; - serverNames(): string[]; - server(name: string): Server | null; - hasDefaultContentType(): boolean; - defaultContentType(): string | null; - hasChannels(): boolean; - channels(): Record; - channelNames(): string[]; - channel(name: string): Channel | null; - hasComponents(): boolean; - components(): Components | null; - hasMessages(): boolean; - allMessages(): Map; - allSchemas(): Map; - hasCircular(): boolean; - traverseSchemas(callback: TraverseCallback, schemaTypesToIterate?: Array<`${SchemaTypesToIterate}`>): void; - static stringify(doc: AsyncAPIDocument, space?: number): string | undefined; - static parse(doc: string | Record): AsyncAPIDocument | undefined; -} diff --git a/cjs/old-api/asyncapi.js b/cjs/old-api/asyncapi.js deleted file mode 100644 index 9c5ea2997..000000000 --- a/cjs/old-api/asyncapi.js +++ /dev/null @@ -1,161 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AsyncAPIDocument = void 0; -const mixins_1 = require("./mixins"); -const info_1 = require("./info"); -const server_1 = require("./server"); -const channel_1 = require("./channel"); -const components_1 = require("./components"); -const iterator_1 = require("./iterator"); -const constants_1 = require("../constants"); -const stringify_1 = require("../stringify"); -class AsyncAPIDocument extends mixins_1.SpecificationExtensionsModel { - version() { - return this._json.asyncapi; - } - info() { - return new info_1.Info(this._json.info); - } - id() { - return this._json.id; - } - externalDocs() { - return (0, mixins_1.externalDocs)(this); - } - hasExternalDocs() { - return (0, mixins_1.hasExternalDocs)(this); - } - hasTags() { - return mixins_1.tagsMixins.hasTags(this); - } - tags() { - return mixins_1.tagsMixins.tags(this); - } - tagNames() { - return mixins_1.tagsMixins.tagNames(this); - } - hasTag(name) { - return mixins_1.tagsMixins.hasTag(this, name); - } - tag(name) { - return mixins_1.tagsMixins.tag(this, name); - } - hasServers() { - return !!this._json.servers; - } - servers() { - return (0, mixins_1.createMapOfType)(this._json.servers, server_1.Server); - } - serverNames() { - if (!this._json.servers) - return []; - return Object.keys(this._json.servers); - } - server(name) { - return (0, mixins_1.getMapValue)(this._json.servers, name, server_1.Server); - } - hasDefaultContentType() { - return !!this._json.defaultContentType; - } - defaultContentType() { - return this._json.defaultContentType || null; - } - hasChannels() { - return !!this._json.channels; - } - channels() { - return (0, mixins_1.createMapOfType)(this._json.channels, channel_1.Channel); - } - channelNames() { - if (!this._json.channels) - return []; - return Object.keys(this._json.channels); - } - channel(name) { - return (0, mixins_1.getMapValue)(this._json.channels, name, channel_1.Channel); - } - hasComponents() { - return !!this._json.components; - } - components() { - if (!this._json.components) - return null; - return new components_1.Components(this._json.components); - } - hasMessages() { - return !!this.allMessages().size; - } - allMessages() { - const messages = new Map(); - if (this.hasChannels()) { - this.channelNames().forEach(channelName => { - const channel = this.channel(channelName); - if (channel) { - if (channel.hasPublish()) { - channel.publish().messages().forEach(m => { - messages.set(m.uid(), m); - }); - } - if (channel.hasSubscribe()) { - channel.subscribe().messages().forEach(m => { - messages.set(m.uid(), m); - }); - } - } - }); - } - if (this.hasComponents()) { - Object.values(this.components().messages()).forEach(m => { - messages.set(m.uid(), m); - }); - } - return messages; - } - allSchemas() { - const schemas = new Map(); - function allSchemasCallback(schema) { - if (schema.uid()) { - schemas.set(schema.uid(), schema); - } - } - (0, iterator_1.traverseAsyncApiDocument)(this, allSchemasCallback); - return schemas; - } - hasCircular() { - return !!this._json[constants_1.xParserCircular]; - } - traverseSchemas(callback, schemaTypesToIterate = []) { - (0, iterator_1.traverseAsyncApiDocument)(this, callback, schemaTypesToIterate); - } - static stringify(doc, space) { - const rawDoc = doc.json(); - const copiedDoc = Object.assign({}, rawDoc); - copiedDoc[constants_1.xParserSpecStringified] = true; - return JSON.stringify(copiedDoc, (0, stringify_1.refReplacer)(), space); - } - static parse(doc) { - let parsedJSON = doc; - if (typeof doc === 'string') { - parsedJSON = JSON.parse(doc); - } - else if (typeof doc === 'object') { - // shall copy - parsedJSON = Object.assign({}, parsedJSON); - } - // the `doc` must be an AsyncAPI parsed document - if (typeof parsedJSON !== 'object' || !parsedJSON[constants_1.xParserSpecParsed]) { - throw new Error('Cannot parse invalid AsyncAPI document'); - } - // if the `doc` is not stringified via the `stringify` static method then immediately return a model. - if (!parsedJSON[constants_1.xParserSpecStringified]) { - return new AsyncAPIDocument(parsedJSON); - } - // remove `x-parser-spec-stringified` extension - delete parsedJSON[String(constants_1.xParserSpecStringified)]; - const objToPath = new Map(); - const pathToObj = new Map(); - (0, stringify_1.traverseStringifiedData)(parsedJSON, undefined, parsedJSON, objToPath, pathToObj); - return new AsyncAPIDocument(parsedJSON); - } -} -exports.AsyncAPIDocument = AsyncAPIDocument; diff --git a/cjs/old-api/base.d.ts b/cjs/old-api/base.d.ts deleted file mode 100644 index 0b26cd2c9..000000000 --- a/cjs/old-api/base.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export declare abstract class Base = Record> { - protected readonly _json: J; - protected readonly _meta: M; - constructor(_json: J, // TODO: Add error here like in original codebase - _meta?: M); - json(): T; - json(key: K): J[K]; -} diff --git a/cjs/old-api/base.js b/cjs/old-api/base.js deleted file mode 100644 index f8374fbfb..000000000 --- a/cjs/old-api/base.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Base = void 0; -class Base { - constructor(_json, // TODO: Add error here like in original codebase - _meta = {}) { - this._json = _json; - this._meta = _meta; - } - json(key) { - if (key === undefined || typeof this._json !== 'object') - return this._json; - if (!this._json) - return; - return this._json[key]; - } -} -exports.Base = Base; diff --git a/cjs/old-api/channel-parameter.d.ts b/cjs/old-api/channel-parameter.d.ts deleted file mode 100644 index 3265c56d0..000000000 --- a/cjs/old-api/channel-parameter.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import { Schema } from './schema'; -import type { v2 } from '../spec-types'; -export declare class ChannelParameter extends SpecificationExtensionsModel { - description(): string | null; - hasDescription(): boolean; - schema(): Schema | null; - location(): string | undefined; -} diff --git a/cjs/old-api/channel-parameter.js b/cjs/old-api/channel-parameter.js deleted file mode 100644 index f13a20365..000000000 --- a/cjs/old-api/channel-parameter.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ChannelParameter = void 0; -const mixins_1 = require("./mixins"); -const schema_1 = require("./schema"); -class ChannelParameter extends mixins_1.SpecificationExtensionsModel { - description() { - return (0, mixins_1.description)(this); - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - schema() { - if (!this._json.schema) - return null; - return new schema_1.Schema(this._json.schema); - } - location() { - return this._json.location; - } -} -exports.ChannelParameter = ChannelParameter; diff --git a/cjs/old-api/channel.d.ts b/cjs/old-api/channel.d.ts deleted file mode 100644 index 8214311fc..000000000 --- a/cjs/old-api/channel.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import { ChannelParameter } from './channel-parameter'; -import { Operation } from './operation'; -import type { v2 } from '../spec-types'; -export declare class Channel extends SpecificationExtensionsModel { - description(): string | null; - hasDescription(): boolean; - hasParameters(): boolean; - parameters(): Record; - parameter(name: string): ChannelParameter | null; - hasServers(): boolean; - servers(): string[]; - server(index: number | string): string | null; - publish(): Operation | null; - subscribe(): Operation | null; - hasPublish(): boolean; - hasSubscribe(): boolean; - hasBindings(): boolean; - bindings(): Record; - bindingProtocols(): string[]; - hasBinding(name: string): boolean; - binding(name: string): v2.Binding | null; -} diff --git a/cjs/old-api/channel.js b/cjs/old-api/channel.js deleted file mode 100644 index ca9f70ccd..000000000 --- a/cjs/old-api/channel.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Channel = void 0; -const mixins_1 = require("./mixins"); -const channel_parameter_1 = require("./channel-parameter"); -const operation_1 = require("./operation"); -class Channel extends mixins_1.SpecificationExtensionsModel { - description() { - return (0, mixins_1.description)(this); - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - hasParameters() { - return !!this._json.parameters; - } - parameters() { - return (0, mixins_1.createMapOfType)(this._json.parameters, channel_parameter_1.ChannelParameter); - } - parameter(name) { - return (0, mixins_1.getMapValue)(this._json.parameters, name, channel_parameter_1.ChannelParameter); - } - hasServers() { - return !!this._json.servers; - } - servers() { - if (!this._json.servers) - return []; - return this._json.servers; - } - server(index) { - if (!this._json.servers) - return null; - if (typeof index !== 'number') - return null; - if (index > this._json.servers.length - 1) - return null; - return this._json.servers[+index]; - } - publish() { - if (!this._json.publish) - return null; - return new operation_1.Operation(this._json.publish, { kind: 'publish' }); - } - subscribe() { - if (!this._json.subscribe) - return null; - return new operation_1.Operation(this._json.subscribe, { kind: 'subscribe' }); - } - hasPublish() { - return !!this._json.publish; - } - hasSubscribe() { - return !!this._json.subscribe; - } - hasBindings() { - return mixins_1.bindingsMixins.hasBindings(this); - } - bindings() { - return mixins_1.bindingsMixins.bindings(this); - } - bindingProtocols() { - return mixins_1.bindingsMixins.bindingProtocols(this); - } - hasBinding(name) { - return mixins_1.bindingsMixins.hasBinding(this, name); - } - binding(name) { - return mixins_1.bindingsMixins.binding(this, name); - } -} -exports.Channel = Channel; diff --git a/cjs/old-api/components.d.ts b/cjs/old-api/components.d.ts deleted file mode 100644 index 7a409a019..000000000 --- a/cjs/old-api/components.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import { Channel } from './channel'; -import { Message } from './message'; -import { Schema } from './schema'; -import { SecurityScheme } from './security-scheme'; -import { Server } from './server'; -import { ChannelParameter } from './channel-parameter'; -import { CorrelationId } from './correlation-id'; -import { OperationTrait } from './operation-trait'; -import { MessageTrait } from './message-trait'; -import { ServerVariable } from './server-variable'; -import type { v2 } from '../spec-types'; -export declare class Components extends SpecificationExtensionsModel { - hasChannels(): boolean; - channels(): Record; - channel(name: string): Channel | null; - hasMessages(): boolean; - messages(): Record; - message(name: string): Message | null; - hasSchemas(): boolean; - schemas(): Record; - schema(name: string): Schema | null; - hasSecuritySchemes(): boolean; - securitySchemes(): Record; - securityScheme(name: string): SecurityScheme | null; - hasServers(): boolean; - servers(): Record; - server(name: string): Server | null; - hasParameters(): boolean; - parameters(): Record; - parameter(name: string): ChannelParameter | null; - hasCorrelationIds(): boolean; - correlationIds(): Record; - correlationId(name: string): CorrelationId | null; - hasOperationTraits(): boolean; - operationTraits(): Record>; - operationTrait(name: string): OperationTrait | null; - hasMessageTraits(): boolean; - messageTraits(): Record>; - messageTrait(name: string): MessageTrait; - hasServerVariables(): boolean; - serverVariables(): Record; - serverVariable(name: string): ServerVariable | null; -} diff --git a/cjs/old-api/components.js b/cjs/old-api/components.js deleted file mode 100644 index c02c9e480..000000000 --- a/cjs/old-api/components.js +++ /dev/null @@ -1,107 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Components = void 0; -const mixins_1 = require("./mixins"); -const channel_1 = require("./channel"); -const message_1 = require("./message"); -const schema_1 = require("./schema"); -const security_scheme_1 = require("./security-scheme"); -const server_1 = require("./server"); -const channel_parameter_1 = require("./channel-parameter"); -const correlation_id_1 = require("./correlation-id"); -const operation_trait_1 = require("./operation-trait"); -const message_trait_1 = require("./message-trait"); -const server_variable_1 = require("./server-variable"); -class Components extends mixins_1.SpecificationExtensionsModel { - hasChannels() { - return !!this._json.channels; - } - channels() { - return (0, mixins_1.createMapOfType)(this._json.channels, channel_1.Channel); - } - channel(name) { - return (0, mixins_1.getMapValue)(this._json.channels, name, channel_1.Channel); - } - hasMessages() { - return !!this._json.messages; - } - messages() { - return (0, mixins_1.createMapOfType)(this._json.messages, message_1.Message); - } - message(name) { - return (0, mixins_1.getMapValue)(this._json.messages, name, message_1.Message); - } - hasSchemas() { - return !!this._json.schemas; - } - schemas() { - return (0, mixins_1.createMapOfType)(this._json.schemas, schema_1.Schema); - } - schema(name) { - return (0, mixins_1.getMapValue)(this._json.schemas, name, schema_1.Schema); - } - hasSecuritySchemes() { - return !!this._json.securitySchemes; - } - securitySchemes() { - return (0, mixins_1.createMapOfType)(this._json.securitySchemes, security_scheme_1.SecurityScheme); - } - securityScheme(name) { - return (0, mixins_1.getMapValue)(this._json.securitySchemes, name, security_scheme_1.SecurityScheme); - } - hasServers() { - return !!this._json.servers; - } - servers() { - return (0, mixins_1.createMapOfType)(this._json.servers, server_1.Server); - } - server(name) { - return (0, mixins_1.getMapValue)(this._json.servers, name, server_1.Server); - } - hasParameters() { - return !!this._json.parameters; - } - parameters() { - return (0, mixins_1.createMapOfType)(this._json.parameters, channel_parameter_1.ChannelParameter); - } - parameter(name) { - return (0, mixins_1.getMapValue)(this._json.parameters, name, channel_parameter_1.ChannelParameter); - } - hasCorrelationIds() { - return !!this._json.correlationIds; - } - correlationIds() { - return (0, mixins_1.createMapOfType)(this._json.correlationIds, correlation_id_1.CorrelationId); - } - correlationId(name) { - return (0, mixins_1.getMapValue)(this._json.correlationIds, name, correlation_id_1.CorrelationId); - } - hasOperationTraits() { - return !!this._json.operationTraits; - } - operationTraits() { - return (0, mixins_1.createMapOfType)(this._json.operationTraits, operation_trait_1.OperationTrait); - } - operationTrait(name) { - return (0, mixins_1.getMapValue)(this._json.operationTraits, name, operation_trait_1.OperationTrait); - } - hasMessageTraits() { - return !!this._json.messageTraits; - } - messageTraits() { - return (0, mixins_1.createMapOfType)(this._json.messageTraits, message_trait_1.MessageTrait); - } - messageTrait(name) { - return (0, mixins_1.getMapValue)(this._json.messageTraits, name, message_trait_1.MessageTrait); - } - hasServerVariables() { - return !!this._json.serverVariables; - } - serverVariables() { - return (0, mixins_1.createMapOfType)(this._json.serverVariables, server_variable_1.ServerVariable); - } - serverVariable(name) { - return (0, mixins_1.getMapValue)(this._json.serverVariables, name, server_variable_1.ServerVariable); - } -} -exports.Components = Components; diff --git a/cjs/old-api/contact.d.ts b/cjs/old-api/contact.d.ts deleted file mode 100644 index dd119cb51..000000000 --- a/cjs/old-api/contact.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import type { v2 } from '../spec-types'; -export declare class Contact extends SpecificationExtensionsModel { - name(): string | undefined; - url(): string | undefined; - email(): string | undefined; -} diff --git a/cjs/old-api/contact.js b/cjs/old-api/contact.js deleted file mode 100644 index e4cba30a5..000000000 --- a/cjs/old-api/contact.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Contact = void 0; -const mixins_1 = require("./mixins"); -class Contact extends mixins_1.SpecificationExtensionsModel { - name() { - return this._json.name; - } - url() { - return this._json.url; - } - email() { - return this._json.email; - } -} -exports.Contact = Contact; diff --git a/cjs/old-api/converter.d.ts b/cjs/old-api/converter.d.ts deleted file mode 100644 index 96175d630..000000000 --- a/cjs/old-api/converter.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { AsyncAPIDocument } from './asyncapi'; -import type { AsyncAPIDocumentInterface } from '../models/asyncapi'; -export declare function convertToOldAPI(newDocument: AsyncAPIDocumentInterface): AsyncAPIDocument; diff --git a/cjs/old-api/converter.js b/cjs/old-api/converter.js deleted file mode 100644 index 587c520b9..000000000 --- a/cjs/old-api/converter.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.convertToOldAPI = void 0; -const asyncapi_1 = require("./asyncapi"); -const constants_1 = require("../constants"); -const stringify_1 = require("../stringify"); -const schema_parser_1 = require("../schema-parser"); -function convertToOldAPI(newDocument) { - const data = (0, stringify_1.copy)(newDocument.json()); - const document = new asyncapi_1.AsyncAPIDocument(data); - handleMessages(document); - handleOperations(document); - return document; -} -exports.convertToOldAPI = convertToOldAPI; -function handleMessages(document) { - const defaultSchemaFormat = (0, schema_parser_1.getDefaultSchemaFormat)(document.version()); - for (const message of document.allMessages().values()) { - const json = message.json(); - if (json.traits) { - json[constants_1.xParserOriginalTraits] = json.traits; - delete json.traits; - } - json[constants_1.xParserOriginalSchemaFormat] = json.schemaFormat || defaultSchemaFormat; - json.schemaFormat = defaultSchemaFormat; - json[constants_1.xParserOriginalPayload] = json[constants_1.xParserOriginalPayload] || json.payload; - json[constants_1.xParserMessageParsed] = true; - } -} -function handleOperations(document) { - Object.values(document.channels()).forEach(channel => { - const publish = channel.publish(); - const subscribe = channel.subscribe(); - if (publish) { - const json = publish.json(); - if (json.traits) { - json[constants_1.xParserOriginalTraits] = json.traits; - delete json.traits; - } - } - if (subscribe) { - const json = subscribe.json(); - if (json.traits) { - json[constants_1.xParserOriginalTraits] = json.traits; - delete json.traits; - } - } - }); -} diff --git a/cjs/old-api/correlation-id.d.ts b/cjs/old-api/correlation-id.d.ts deleted file mode 100644 index 02fe34b0d..000000000 --- a/cjs/old-api/correlation-id.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import type { v2 } from '../spec-types'; -export declare class CorrelationId extends SpecificationExtensionsModel { - description(): string | null; - hasDescription(): boolean; - location(): string; -} diff --git a/cjs/old-api/correlation-id.js b/cjs/old-api/correlation-id.js deleted file mode 100644 index 7a1104d12..000000000 --- a/cjs/old-api/correlation-id.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CorrelationId = void 0; -const mixins_1 = require("./mixins"); -class CorrelationId extends mixins_1.SpecificationExtensionsModel { - description() { - return (0, mixins_1.description)(this); - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - location() { - return this._json.location; - } -} -exports.CorrelationId = CorrelationId; diff --git a/cjs/old-api/external-docs.d.ts b/cjs/old-api/external-docs.d.ts deleted file mode 100644 index 67df99a8b..000000000 --- a/cjs/old-api/external-docs.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Base } from './base'; -import type { v2 } from '../spec-types'; -export declare class ExternalDocs extends Base { - url(): string; - hasDescription(): boolean; - description(): string | null; - hasExtensions(): boolean; - extensions(): v2.SpecificationExtensions; - extensionKeys(): string[]; - extKeys(): string[]; - hasExtension(extension: string): boolean; - extension(extension: string): v2.SpecificationExtension; - hasExt(extension: string): boolean; - ext(extension: string): any; -} diff --git a/cjs/old-api/external-docs.js b/cjs/old-api/external-docs.js deleted file mode 100644 index 5a481b949..000000000 --- a/cjs/old-api/external-docs.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ExternalDocs = void 0; -const base_1 = require("./base"); -const mixins_1 = require("./mixins"); -class ExternalDocs extends base_1.Base { - url() { - return this._json.url; - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - description() { - return (0, mixins_1.description)(this); - } - hasExtensions() { - return mixins_1.extensionsMixins.hasExtensions(this); - } - extensions() { - return mixins_1.extensionsMixins.extensions(this); - } - extensionKeys() { - return mixins_1.extensionsMixins.extensionKeys(this); - } - extKeys() { - return mixins_1.extensionsMixins.extKeys(this); - } - hasExtension(extension) { - return mixins_1.extensionsMixins.hasExtension(this, extension); - } - extension(extension) { - return mixins_1.extensionsMixins.extension(this, extension); - } - hasExt(extension) { - return mixins_1.extensionsMixins.hasExt(this, extension); - } - ext(extension) { - return mixins_1.extensionsMixins.ext(this, extension); - } -} -exports.ExternalDocs = ExternalDocs; diff --git a/cjs/old-api/info.d.ts b/cjs/old-api/info.d.ts deleted file mode 100644 index 94d613d55..000000000 --- a/cjs/old-api/info.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Contact } from './contact'; -import { License } from './license'; -import { SpecificationExtensionsModel } from './mixins'; -import type { v2 } from '../spec-types'; -export declare class Info extends SpecificationExtensionsModel { - title(): string; - version(): string; - description(): string | null; - hasDescription(): boolean; - termsOfService(): string | undefined; - license(): License | null; - contact(): Contact | null; -} diff --git a/cjs/old-api/info.js b/cjs/old-api/info.js deleted file mode 100644 index cff4102ee..000000000 --- a/cjs/old-api/info.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Info = void 0; -const contact_1 = require("./contact"); -const license_1 = require("./license"); -const mixins_1 = require("./mixins"); -class Info extends mixins_1.SpecificationExtensionsModel { - title() { - return this._json.title; - } - version() { - return this._json.version; - } - description() { - return (0, mixins_1.description)(this); - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - termsOfService() { - return this._json.termsOfService; - } - license() { - if (!this._json.license) - return null; - return new license_1.License(this._json.license); - } - contact() { - if (!this._json.contact) - return null; - return new contact_1.Contact(this._json.contact); - } -} -exports.Info = Info; diff --git a/cjs/old-api/iterator.d.ts b/cjs/old-api/iterator.d.ts deleted file mode 100644 index 01cc614f0..000000000 --- a/cjs/old-api/iterator.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import type { AsyncAPIDocument } from './asyncapi'; -import type { Schema } from './schema'; -/** - * The different kind of stages when crawling a schema. - */ -export declare enum SchemaIteratorCallbackType { - NEW_SCHEMA = "NEW_SCHEMA", - END_SCHEMA = "END_SCHEMA" -} -/** - * The different types of schemas you can iterate - */ -export declare enum SchemaTypesToIterate { - parameters = "parameters", - payloads = "payloads", - headers = "headers", - components = "components", - objects = "objects", - arrays = "arrays", - oneOfs = "oneOfs", - allOfs = "allOfs", - anyOfs = "anyOfs", - nots = "nots", - propertyNames = "propertyNames", - patternProperties = "patternProperties", - contains = "contains", - ifs = "ifs", - thenes = "thenes", - elses = "elses", - dependencies = "dependencies", - definitions = "definitions" -} -export declare type TraverseOptions = { - callback: TraverseCallback; - schemaTypesToIterate: Array<`${SchemaTypesToIterate}`>; - seenSchemas: Set; -}; -export declare type TraverseCallback = (schema: Schema, propOrIndex: string | number | null, callbackType: SchemaIteratorCallbackType) => boolean | void; -/** - * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. - */ -export declare function traverseAsyncApiDocument(doc: AsyncAPIDocument, callback: TraverseCallback, schemaTypesToIterate?: Array<`${SchemaTypesToIterate}`>): void; diff --git a/cjs/old-api/iterator.js b/cjs/old-api/iterator.js deleted file mode 100644 index 9dae5d7b1..000000000 --- a/cjs/old-api/iterator.js +++ /dev/null @@ -1,250 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.traverseAsyncApiDocument = exports.SchemaTypesToIterate = exports.SchemaIteratorCallbackType = void 0; -/** - * The different kind of stages when crawling a schema. - */ -var SchemaIteratorCallbackType; -(function (SchemaIteratorCallbackType) { - SchemaIteratorCallbackType["NEW_SCHEMA"] = "NEW_SCHEMA"; - SchemaIteratorCallbackType["END_SCHEMA"] = "END_SCHEMA"; -})(SchemaIteratorCallbackType = exports.SchemaIteratorCallbackType || (exports.SchemaIteratorCallbackType = {})); -/** - * The different types of schemas you can iterate - */ -var SchemaTypesToIterate; -(function (SchemaTypesToIterate) { - SchemaTypesToIterate["parameters"] = "parameters"; - SchemaTypesToIterate["payloads"] = "payloads"; - SchemaTypesToIterate["headers"] = "headers"; - SchemaTypesToIterate["components"] = "components"; - SchemaTypesToIterate["objects"] = "objects"; - SchemaTypesToIterate["arrays"] = "arrays"; - SchemaTypesToIterate["oneOfs"] = "oneOfs"; - SchemaTypesToIterate["allOfs"] = "allOfs"; - SchemaTypesToIterate["anyOfs"] = "anyOfs"; - SchemaTypesToIterate["nots"] = "nots"; - SchemaTypesToIterate["propertyNames"] = "propertyNames"; - SchemaTypesToIterate["patternProperties"] = "patternProperties"; - SchemaTypesToIterate["contains"] = "contains"; - SchemaTypesToIterate["ifs"] = "ifs"; - SchemaTypesToIterate["thenes"] = "thenes"; - SchemaTypesToIterate["elses"] = "elses"; - SchemaTypesToIterate["dependencies"] = "dependencies"; - SchemaTypesToIterate["definitions"] = "definitions"; -})(SchemaTypesToIterate = exports.SchemaTypesToIterate || (exports.SchemaTypesToIterate = {})); -/** - * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. - */ -function traverseAsyncApiDocument(doc, callback, schemaTypesToIterate = []) { - if (schemaTypesToIterate.length === 0) { - schemaTypesToIterate = Object.values(SchemaTypesToIterate); - } - const options = { callback, schemaTypesToIterate, seenSchemas: new Set() }; - Object.values(doc.channels()).forEach(channel => { - traverseChannel(channel, options); - }); - const components = doc.components(); - if (schemaTypesToIterate.includes(SchemaTypesToIterate.components) && components) { - Object.values(components.messages()).forEach(message => { - traverseMessage(message, options); - }); - Object.values(components.schemas()).forEach(schema => { - traverseSchema(schema, null, options); - }); - if (schemaTypesToIterate.includes(SchemaTypesToIterate.parameters)) { - Object.values(components.parameters()).forEach(parameter => { - const schema = parameter.schema(); - if (schema) { - traverseSchema(schema, null, options); - } - }); - } - Object.values(components.messageTraits()).forEach(messageTrait => { - traverseMessageTrait(messageTrait, options); - }); - } -} -exports.traverseAsyncApiDocument = traverseAsyncApiDocument; -/* eslint-disable sonarjs/cognitive-complexity */ -/** - * Traverse current schema and all nested schemas. - */ -function traverseSchema(schema, propOrIndex, options) { - if (!schema) - return; - const { schemaTypesToIterate, callback, seenSchemas } = options; - // handle circular references - const jsonSchema = schema.json(); - if (seenSchemas.has(jsonSchema)) - return; - seenSchemas.add(jsonSchema); - // `type` isn't required so save type as array in the fallback - let types = schema.type() || []; - // change primitive type to array of types for easier handling - if (!Array.isArray(types)) { - types = [types]; - } - if (!schemaTypesToIterate.includes(SchemaTypesToIterate.objects) && types.includes('object')) - return; - if (!schemaTypesToIterate.includes(SchemaTypesToIterate.arrays) && types.includes('array')) - return; - // check callback `NEW_SCHEMA` case - if (callback(schema, propOrIndex, SchemaIteratorCallbackType.NEW_SCHEMA) === false) - return; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.objects) && types.includes('object')) { - recursiveSchemaObject(schema, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.arrays) && types.includes('array')) { - recursiveSchemaArray(schema, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.oneOfs)) { - (schema.oneOf() || []).forEach((combineSchema, idx) => { - traverseSchema(combineSchema, idx, options); - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.anyOfs)) { - (schema.anyOf() || []).forEach((combineSchema, idx) => { - traverseSchema(combineSchema, idx, options); - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.allOfs)) { - (schema.allOf() || []).forEach((combineSchema, idx) => { - traverseSchema(combineSchema, idx, options); - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.nots) && schema.not()) { - traverseSchema(schema.not(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.ifs) && schema.if()) { - traverseSchema(schema.if(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.thenes) && schema.then()) { - traverseSchema(schema.then(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.elses) && schema.else()) { - traverseSchema(schema.else(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.dependencies)) { - Object.entries(schema.dependencies() || {}).forEach(([depName, dep]) => { - // do not iterate dependent required - if (dep && !Array.isArray(dep)) { - traverseSchema(dep, depName, options); - } - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.definitions)) { - Object.entries(schema.definitions() || {}).forEach(([defName, def]) => { - traverseSchema(def, defName, options); - }); - } - callback(schema, propOrIndex, SchemaIteratorCallbackType.END_SCHEMA); - seenSchemas.delete(jsonSchema); -} -/* eslint-enable sonarjs/cognitive-complexity */ -/** - * Recursively go through schema of object type and execute callback. - */ -function recursiveSchemaObject(schema, options) { - Object.entries(schema.properties()).forEach(([propertyName, property]) => { - traverseSchema(property, propertyName, options); - }); - const additionalProperties = schema.additionalProperties(); - if (typeof additionalProperties === 'object') { - traverseSchema(additionalProperties, null, options); - } - const schemaTypesToIterate = options.schemaTypesToIterate; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.propertyNames) && schema.propertyNames()) { - traverseSchema(schema.propertyNames(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.patternProperties)) { - Object.entries(schema.patternProperties() || {}).forEach(([propertyName, property]) => { - traverseSchema(property, propertyName, options); - }); - } -} -/** - * Recursively go through schema of array type and execute callback. - */ -function recursiveSchemaArray(schema, options) { - const items = schema.items(); - if (items) { - if (Array.isArray(items)) { - items.forEach((item, idx) => { - traverseSchema(item, idx, options); - }); - } - else { - traverseSchema(items, null, options); - } - } - const additionalItems = schema.additionalItems(); - if (typeof additionalItems === 'object') { - traverseSchema(additionalItems, null, options); - } - if (options.schemaTypesToIterate.includes('contains') && schema.contains()) { - traverseSchema(schema.contains(), null, options); - } -} -/** - * Go through each schema in channel - */ -function traverseChannel(channel, options) { - if (!channel) - return; - const { schemaTypesToIterate } = options; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.parameters)) { - Object.values(channel.parameters() || {}).forEach(parameter => { - const schema = parameter.schema(); - if (schema) { - traverseSchema(schema, null, options); - } - }); - } - const publish = channel.publish(); - if (publish) { - publish.messages().forEach(message => { - traverseMessage(message, options); - }); - } - const subscribe = channel.subscribe(); - if (subscribe) { - subscribe.messages().forEach(message => { - traverseMessage(message, options); - }); - } -} -/** - * Go through each schema in a message - */ -function traverseMessage(message, options) { - if (!message) - return; - const { schemaTypesToIterate } = options; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.headers)) { - const headers = message.headers(); - if (headers) { - traverseSchema(headers, null, options); - } - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.payloads)) { - const payload = message.payload(); - if (payload) { - traverseSchema(payload, null, options); - } - } -} -/** - * Go through each schema in a messageTrait - */ -function traverseMessageTrait(messageTrait, options) { - if (!messageTrait) - return; - const { schemaTypesToIterate } = options; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.headers)) { - const headers = messageTrait.headers(); - if (headers) { - traverseSchema(headers, null, options); - } - } -} diff --git a/cjs/old-api/license.d.ts b/cjs/old-api/license.d.ts deleted file mode 100644 index 2e926b988..000000000 --- a/cjs/old-api/license.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import type { v2 } from '../spec-types'; -export declare class License extends SpecificationExtensionsModel { - name(): string; - url(): string | undefined; -} diff --git a/cjs/old-api/license.js b/cjs/old-api/license.js deleted file mode 100644 index 2d5916002..000000000 --- a/cjs/old-api/license.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.License = void 0; -const mixins_1 = require("./mixins"); -class License extends mixins_1.SpecificationExtensionsModel { - name() { - return this._json.name; - } - url() { - return this._json.url; - } -} -exports.License = License; diff --git a/cjs/old-api/message-trait.d.ts b/cjs/old-api/message-trait.d.ts deleted file mode 100644 index e4a7f5825..000000000 --- a/cjs/old-api/message-trait.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import { CorrelationId } from './correlation-id'; -import { Schema } from './schema'; -import type { v2 } from '../spec-types'; -export declare class MessageTrait extends SpecificationExtensionsModel { - id(): string | undefined; - headers(): Schema | null; - header(name: string): Schema | null; - correlationId(): CorrelationId | null; - schemaFormat(): string; - contentType(): string | undefined; - name(): string | undefined; - title(): string | undefined; - summary(): string | undefined; - description(): string | null; - hasDescription(): boolean; - externalDocs(): import("./external-docs").ExternalDocs | null; - hasExternalDocs(): boolean; - hasTags(): boolean; - tags(): import("./tag").Tag[]; - tagNames(): string[]; - hasTag(name: string): boolean; - tag(name: string): import("./tag").Tag | null; - hasBindings(): boolean; - bindings(): Record; - bindingProtocols(): string[]; - hasBinding(name: string): boolean; - binding(name: string): v2.Binding | null; - examples(): v2.MessageExampleObject[] | undefined; -} diff --git a/cjs/old-api/message-trait.js b/cjs/old-api/message-trait.js deleted file mode 100644 index 2066f4e69..000000000 --- a/cjs/old-api/message-trait.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageTrait = void 0; -const mixins_1 = require("./mixins"); -const correlation_id_1 = require("./correlation-id"); -const schema_1 = require("./schema"); -class MessageTrait extends mixins_1.SpecificationExtensionsModel { - id() { - return this._json.messageId; - } - headers() { - if (!this._json.headers) - return null; - return new schema_1.Schema(this._json.headers); - } - header(name) { - if (!this._json.headers) - return null; - return (0, mixins_1.getMapValue)(this._json.headers.properties || {}, name, schema_1.Schema); - } - correlationId() { - if (!this._json.correlationId) - return null; - return new correlation_id_1.CorrelationId(this._json.correlationId); - } - schemaFormat() { - return this._json.schemaFormat; // Old API points always to the default schema format for given AsyncAPI version, so we need to force returned type as string. - } - contentType() { - return this._json.contentType; - } - name() { - return this._json.name; - } - title() { - return this._json.title; - } - summary() { - return this._json.summary; - } - description() { - return (0, mixins_1.description)(this); - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - externalDocs() { - return (0, mixins_1.externalDocs)(this); - } - hasExternalDocs() { - return (0, mixins_1.hasExternalDocs)(this); - } - hasTags() { - return mixins_1.tagsMixins.hasTags(this); - } - tags() { - return mixins_1.tagsMixins.tags(this); - } - tagNames() { - return mixins_1.tagsMixins.tagNames(this); - } - hasTag(name) { - return mixins_1.tagsMixins.hasTag(this, name); - } - tag(name) { - return mixins_1.tagsMixins.tag(this, name); - } - hasBindings() { - return mixins_1.bindingsMixins.hasBindings(this); - } - bindings() { - return mixins_1.bindingsMixins.bindings(this); - } - bindingProtocols() { - return mixins_1.bindingsMixins.bindingProtocols(this); - } - hasBinding(name) { - return mixins_1.bindingsMixins.hasBinding(this, name); - } - binding(name) { - return mixins_1.bindingsMixins.binding(this, name); - } - examples() { - return this._json.examples; - } -} -exports.MessageTrait = MessageTrait; diff --git a/cjs/old-api/message.d.ts b/cjs/old-api/message.d.ts deleted file mode 100644 index 08e26b8f3..000000000 --- a/cjs/old-api/message.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { MessageTrait } from './message-trait'; -import { Schema } from './schema'; -import type { v2 } from '../spec-types'; -export declare class Message extends MessageTrait { - uid(): string; - payload(): Schema | null; - traits(): MessageTrait[]; - hasTraits(): boolean; - originalPayload(): any; - originalSchemaFormat(): string; -} diff --git a/cjs/old-api/message.js b/cjs/old-api/message.js deleted file mode 100644 index 54493b756..000000000 --- a/cjs/old-api/message.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Message = void 0; -const message_trait_1 = require("./message-trait"); -const schema_1 = require("./schema"); -const constants_1 = require("../constants"); -class Message extends message_trait_1.MessageTrait { - uid() { - return this.id() || this.name() || this.ext(constants_1.xParserMessageName); - } - payload() { - if (!this._json.payload) - return null; - return new schema_1.Schema(this._json.payload); - } - traits() { - const traits = this.ext(constants_1.xParserOriginalTraits) || this._json.traits; - if (!traits) - return []; - return traits.map(t => new message_trait_1.MessageTrait(t)); - } - hasTraits() { - return !!this.ext(constants_1.xParserOriginalTraits) || !!this._json.traits; - } - originalPayload() { - return this.ext(constants_1.xParserOriginalPayload) || this.payload(); - } - originalSchemaFormat() { - return this.ext(constants_1.xParserOriginalSchemaFormat) || this.schemaFormat(); - } -} -exports.Message = Message; diff --git a/cjs/old-api/mixins.d.ts b/cjs/old-api/mixins.d.ts deleted file mode 100644 index f0b7021aa..000000000 --- a/cjs/old-api/mixins.d.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { Base } from './base'; -import { ExternalDocs } from './external-docs'; -import { Tag } from './tag'; -import type { v2 } from '../spec-types'; -export declare abstract class SpecificationExtensionsModel = Record> extends Base { - hasExtensions(): boolean; - extensions(): v2.SpecificationExtensions; - extensionKeys(): string[]; - extKeys(): string[]; - hasExtension(extension: string): boolean; - extension(extension: string): v2.SpecificationExtension; - hasExt(extension: string): boolean; - ext(extension: string): any; -} -export declare function hasDescription(model: Base<{ - description?: string; -}>): boolean; -export declare function description(model: Base<{ - description?: string; -}>): string | null; -export declare function hasExternalDocs(model: Base<{ - externalDocs?: v2.ExternalDocumentationObject; -}>): boolean; -export declare function externalDocs(model: Base<{ - externalDocs?: v2.ExternalDocumentationObject; -}>): ExternalDocs | null; -export declare const extensionsMixins: { - hasExtensions(model: Base<{ - [extension: `x-${string}`]: any; - }, Record>): boolean; - extensions(model: Base<{ - [extension: `x-${string}`]: any; - }, Record>): v2.SpecificationExtensions; - extensionKeys(model: Base<{ - [extension: `x-${string}`]: any; - }, Record>): string[]; - extKeys(model: Base<{ - [extension: `x-${string}`]: any; - }, Record>): string[]; - hasExtension(model: Base<{ - [extension: `x-${string}`]: any; - }, Record>, extension: string): boolean; - extension(model: Base<{ - [extension: `x-${string}`]: any; - }, Record>, extension: string): v2.SpecificationExtension | null; - hasExt(model: Base<{ - [extension: `x-${string}`]: any; - }, Record>, extension: string): boolean; - ext(model: Base<{ - [extension: `x-${string}`]: any; - }, Record>, extension: string): any; -}; -export declare const bindingsMixins: { - hasBindings(model: Base<{ - bindings?: Record; - }>): boolean; - bindings(model: Base<{ - bindings?: Record; - }>): Record; - bindingProtocols(model: Base<{ - bindings?: Record; - }>): string[]; - hasBinding(model: Base<{ - bindings?: Record; - }>, name: string): boolean; - binding(model: Base<{ - bindings?: Record; - }>, name: string): v2.Binding | null; -}; -export declare const tagsMixins: { - hasTags(model: Base<{ - tags?: Array; - }>): boolean; - tags(model: Base<{ - tags?: Array; - }>): Array; - tagNames(model: Base<{ - tags?: Array; - }>): string[]; - hasTag(model: Base<{ - tags?: Array; - }>, name: string): boolean; - tag(model: Base<{ - tags?: Array; - }>, name: string): Tag | null; -}; -interface Constructor extends Function { - new (...any: any[]): T; -} -declare type InferModelData = T extends Base ? J : never; -declare type InferModelMetadata = T extends Base ? M : never; -export declare function getMapValue, K extends keyof T>(obj: T | undefined, key: K): T[K] | null; -export declare function getMapValue(obj: Record> | undefined, key: string, Type: Constructor, meta?: InferModelMetadata): T | null; -export declare function createMapOfType(obj: Record> | undefined, Type: Constructor, meta?: InferModelMetadata): Record; -export {}; diff --git a/cjs/old-api/mixins.js b/cjs/old-api/mixins.js deleted file mode 100644 index 197b679b0..000000000 --- a/cjs/old-api/mixins.js +++ /dev/null @@ -1,148 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createMapOfType = exports.getMapValue = exports.tagsMixins = exports.bindingsMixins = exports.extensionsMixins = exports.externalDocs = exports.hasExternalDocs = exports.description = exports.hasDescription = exports.SpecificationExtensionsModel = void 0; -const base_1 = require("./base"); -const external_docs_1 = require("./external-docs"); -const tag_1 = require("./tag"); -const constants_1 = require("../constants"); -class SpecificationExtensionsModel extends base_1.Base { - hasExtensions() { - return exports.extensionsMixins.hasExtensions(this); - } - extensions() { - return exports.extensionsMixins.extensions(this); - } - extensionKeys() { - return exports.extensionsMixins.extensionKeys(this); - } - extKeys() { - return exports.extensionsMixins.extKeys(this); - } - hasExtension(extension) { - return exports.extensionsMixins.hasExtension(this, extension); - } - extension(extension) { - return exports.extensionsMixins.extension(this, extension); - } - hasExt(extension) { - return exports.extensionsMixins.hasExt(this, extension); - } - ext(extension) { - return exports.extensionsMixins.ext(this, extension); - } -} -exports.SpecificationExtensionsModel = SpecificationExtensionsModel; -function hasDescription(model) { - return Boolean(model.json('description')); -} -exports.hasDescription = hasDescription; -function description(model) { - const description = model.json('description'); - return typeof description === 'string' ? description : null; -} -exports.description = description; -function hasExternalDocs(model) { - return Object.keys(model.json('externalDocs') || {}).length > 0; -} -exports.hasExternalDocs = hasExternalDocs; -function externalDocs(model) { - if (typeof model.json('externalDocs') === 'object') { - return new external_docs_1.ExternalDocs(model.json('externalDocs')); - } - return null; -} -exports.externalDocs = externalDocs; -exports.extensionsMixins = { - hasExtensions(model) { - return !!exports.extensionsMixins.extensionKeys(model).length; - }, - extensions(model) { - const result = {}; - Object.entries(model.json()).forEach(([key, value]) => { - if (constants_1.EXTENSION_REGEX.test(key)) { - result[key] = value; - } - }); - return result; - }, - extensionKeys(model) { - return Object.keys(exports.extensionsMixins.extensions(model)); - }, - extKeys(model) { - return exports.extensionsMixins.extensionKeys(model); - }, - hasExtension(model, extension) { - if (!extension.startsWith('x-')) { - return false; - } - return !!model.json()[extension]; - }, - extension(model, extension) { - if (!extension.startsWith('x-')) { - return null; - } - return model.json()[extension]; - }, - hasExt(model, extension) { - return exports.extensionsMixins.hasExtension(model, extension); - }, - ext(model, extension) { - return exports.extensionsMixins.extension(model, extension); - }, -}; -exports.bindingsMixins = { - hasBindings(model) { - return !!Object.keys(exports.bindingsMixins.bindings(model)).length; - }, - bindings(model) { - return model.json('bindings') || {}; - }, - bindingProtocols(model) { - return Object.keys(exports.bindingsMixins.bindings(model)); - }, - hasBinding(model, name) { - return !!exports.bindingsMixins.binding(model, name); - }, - binding(model, name) { - return getMapValue(model.json('bindings'), name); - }, -}; -exports.tagsMixins = { - hasTags(model) { - return !!exports.tagsMixins.tags(model).length; - }, - tags(model) { - const tags = model.json('tags'); - return tags ? tags.map(t => new tag_1.Tag(t)) : []; - }, - tagNames(model) { - const tags = model.json('tags'); - return tags ? tags.map(t => t.name) : []; - }, - hasTag(model, name) { - return !!exports.tagsMixins.tag(model, name); - }, - tag(model, name) { - const tg = (model.json('tags') || []).find(t => t.name === name); - return tg ? new tag_1.Tag(tg) : null; - }, -}; -function getMapValue(obj, key, Type, meta) { - if (typeof key !== 'string' || !obj) - return null; - const v = obj[String(key)]; - if (v === undefined) - return null; - return Type ? new Type(v, meta) : v; -} -exports.getMapValue = getMapValue; -function createMapOfType(obj, Type, meta) { - const result = {}; - if (!obj) - return result; - Object.entries(obj).forEach(([key, value]) => { - result[key] = new Type(value, meta); - }); - return result; -} -exports.createMapOfType = createMapOfType; diff --git a/cjs/old-api/oauth-flow.d.ts b/cjs/old-api/oauth-flow.d.ts deleted file mode 100644 index 0621e5b7e..000000000 --- a/cjs/old-api/oauth-flow.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import type { v2 } from '../spec-types'; -export declare class OAuthFlow extends SpecificationExtensionsModel { - authorizationUrl(): string; - tokenUrl(): string; - refreshUrl(): string | undefined; - scopes(): Record; -} diff --git a/cjs/old-api/oauth-flow.js b/cjs/old-api/oauth-flow.js deleted file mode 100644 index ed8625948..000000000 --- a/cjs/old-api/oauth-flow.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OAuthFlow = void 0; -const mixins_1 = require("./mixins"); -class OAuthFlow extends mixins_1.SpecificationExtensionsModel { - authorizationUrl() { - return this._json.authorizationUrl; - } - tokenUrl() { - return this._json.tokenUrl; - } - refreshUrl() { - return this._json.refreshUrl; - } - scopes() { - return this._json.scopes; - } -} -exports.OAuthFlow = OAuthFlow; diff --git a/cjs/old-api/operation-trait.d.ts b/cjs/old-api/operation-trait.d.ts deleted file mode 100644 index 9e48932d7..000000000 --- a/cjs/old-api/operation-trait.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import { SecurityRequirement } from './security-requirement'; -import type { v2 } from '../spec-types'; -export declare class OperationTrait extends SpecificationExtensionsModel { - isPublish(): boolean; - isSubscribe(): boolean; - kind(): "subscribe" | "publish"; - id(): string | undefined; - summary(): string | undefined; - description(): string | null; - hasDescription(): boolean; - externalDocs(): import("./external-docs").ExternalDocs | null; - hasExternalDocs(): boolean; - hasTags(): boolean; - tags(): import("./tag").Tag[]; - tagNames(): string[]; - hasTag(name: string): boolean; - tag(name: string): import("./tag").Tag | null; - hasBindings(): boolean; - bindings(): Record; - bindingProtocols(): string[]; - hasBinding(name: string): boolean; - binding(name: string): v2.Binding | null; - security(): SecurityRequirement[] | null; -} diff --git a/cjs/old-api/operation-trait.js b/cjs/old-api/operation-trait.js deleted file mode 100644 index 731253693..000000000 --- a/cjs/old-api/operation-trait.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OperationTrait = void 0; -const mixins_1 = require("./mixins"); -const security_requirement_1 = require("./security-requirement"); -class OperationTrait extends mixins_1.SpecificationExtensionsModel { - isPublish() { - return this._meta.kind === 'publish'; - } - isSubscribe() { - return this._meta.kind === 'subscribe'; - } - kind() { - return this._meta.kind; - } - id() { - return this._json.operationId; - } - summary() { - return this._json.summary; - } - description() { - return (0, mixins_1.description)(this); - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - externalDocs() { - return (0, mixins_1.externalDocs)(this); - } - hasExternalDocs() { - return (0, mixins_1.hasExternalDocs)(this); - } - hasTags() { - return mixins_1.tagsMixins.hasTags(this); - } - tags() { - return mixins_1.tagsMixins.tags(this); - } - tagNames() { - return mixins_1.tagsMixins.tagNames(this); - } - hasTag(name) { - return mixins_1.tagsMixins.hasTag(this, name); - } - tag(name) { - return mixins_1.tagsMixins.tag(this, name); - } - hasBindings() { - return mixins_1.bindingsMixins.hasBindings(this); - } - bindings() { - return mixins_1.bindingsMixins.bindings(this); - } - bindingProtocols() { - return mixins_1.bindingsMixins.bindingProtocols(this); - } - hasBinding(name) { - return mixins_1.bindingsMixins.hasBinding(this, name); - } - binding(name) { - return mixins_1.bindingsMixins.binding(this, name); - } - security() { - if (!this._json.security) - return null; - return this._json.security.map(sec => new security_requirement_1.SecurityRequirement(sec)); - } -} -exports.OperationTrait = OperationTrait; diff --git a/cjs/old-api/operation.d.ts b/cjs/old-api/operation.d.ts deleted file mode 100644 index 057caa8e8..000000000 --- a/cjs/old-api/operation.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { OperationTrait } from './operation-trait'; -import { Message } from './message'; -import type { v2 } from '../spec-types'; -export declare class Operation extends OperationTrait { - traits(): OperationTrait[]; - hasTraits(): boolean; - hasMultipleMessages(): boolean; - messages(): Message[]; - message(index?: number | string): Message | null; -} diff --git a/cjs/old-api/operation.js b/cjs/old-api/operation.js deleted file mode 100644 index b5f0331bc..000000000 --- a/cjs/old-api/operation.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Operation = void 0; -const operation_trait_1 = require("./operation-trait"); -const message_1 = require("./message"); -class Operation extends operation_trait_1.OperationTrait { - traits() { - const traits = this._json['x-parser-original-traits'] || this._json.traits; - if (!traits) - return []; - return traits.map(t => new operation_trait_1.OperationTrait(t)); - } - hasTraits() { - return !!this._json['x-parser-original-traits'] || !!this._json.traits; - } - hasMultipleMessages() { - const message = this._json.message; - // eslint-disable-next-line sonarjs/prefer-single-boolean-return - if (message && message.oneOf && message.oneOf.length > 1) - return true; - return false; - } - messages() { - const message = this._json.message; - if (!message) - return []; - if (message.oneOf) - return message.oneOf.map(m => new message_1.Message(m)); - return [new message_1.Message(message)]; - } - message(index) { - const message = this._json.message; - if (!message) - return null; - if (message.oneOf && message.oneOf.length === 1) - return new message_1.Message(message.oneOf[0]); - if (!message.oneOf) - return new message_1.Message(message); - if (typeof index !== 'number') - return null; - if (index > message.oneOf.length - 1) - return null; - return new message_1.Message(message.oneOf[+index]); - } -} -exports.Operation = Operation; diff --git a/cjs/old-api/schema.d.ts b/cjs/old-api/schema.d.ts deleted file mode 100644 index b9d2ece2d..000000000 --- a/cjs/old-api/schema.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import type { v2 } from '../spec-types'; -export declare class Schema extends SpecificationExtensionsModel { - uid(): any; - $id(): string | undefined; - multipleOf(): number | undefined; - maximum(): number | undefined; - exclusiveMaximum(): number | undefined; - minimum(): number | undefined; - exclusiveMinimum(): number | undefined; - maxLength(): number | undefined; - minLength(): number | undefined; - pattern(): string | undefined; - maxItems(): number | undefined; - minItems(): number | undefined; - uniqueItems(): boolean | undefined; - maxProperties(): number | undefined; - minProperties(): number | undefined; - required(): string[] | undefined; - enum(): import("json-schema").JSONSchema7Type[] | undefined; - type(): import("json-schema").JSONSchema7TypeName | import("json-schema").JSONSchema7TypeName[] | undefined; - allOf(): Schema[] | null; - oneOf(): Schema[] | null; - anyOf(): Schema[] | null; - not(): Schema | null; - items(): Schema | Schema[] | null; - properties(): Record; - property(name: string): Schema | null; - additionalProperties(): boolean | Schema; - additionalItems(): boolean | Schema; - patternProperties(): Record; - const(): import("json-schema").JSONSchema7Type | undefined; - contains(): Schema | null; - dependencies(): Record | null; - propertyNames(): Schema | null; - if(): Schema | null; - then(): Schema | null; - else(): Schema | null; - format(): string | undefined; - contentEncoding(): string | undefined; - contentMediaType(): string | undefined; - definitions(): Record; - title(): string | undefined; - default(): import("json-schema").JSONSchema7Type | undefined; - deprecated(): boolean | undefined; - discriminator(): string | undefined; - readOnly(): boolean | undefined; - writeOnly(): boolean | undefined; - examples(): import("json-schema").JSONSchema7Type[] | undefined; - isBooleanSchema(): boolean; - description(): string | null; - hasDescription(): boolean; - externalDocs(): import("./external-docs").ExternalDocs | null; - hasExternalDocs(): boolean; - isCircular(): boolean; - circularSchema(): Schema | undefined; - hasCircularProps(): boolean; - circularProps(): any; - protected __get(key: K): v2.AsyncAPISchemaDefinition[K] | undefined; - protected __createChild(s: v2.AsyncAPISchemaObject): Schema; -} diff --git a/cjs/old-api/schema.js b/cjs/old-api/schema.js deleted file mode 100644 index 9c03b7df3..000000000 --- a/cjs/old-api/schema.js +++ /dev/null @@ -1,253 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Schema = void 0; -const mixins_1 = require("./mixins"); -const constants_1 = require("../constants"); -const utils_1 = require("../utils"); -class Schema extends mixins_1.SpecificationExtensionsModel { - uid() { - return this.$id() || this.ext('x-parser-schema-id'); - } - $id() { - return this.__get('$id'); - } - multipleOf() { - return this.__get('multipleOf'); - } - maximum() { - return this.__get('maximum'); - } - exclusiveMaximum() { - return this.__get('exclusiveMaximum'); - } - minimum() { - return this.__get('minimum'); - } - exclusiveMinimum() { - return this.__get('exclusiveMinimum'); - } - maxLength() { - return this.__get('maxLength'); - } - minLength() { - return this.__get('minLength'); - } - pattern() { - return this.__get('pattern'); - } - maxItems() { - return this.__get('maxItems'); - } - minItems() { - return this.__get('minItems'); - } - uniqueItems() { - return this.__get('uniqueItems'); - } - maxProperties() { - return this.__get('maxProperties'); - } - minProperties() { - return this.__get('minProperties'); - } - required() { - return this.__get('required'); - } - enum() { - return this.__get('enum'); - } - type() { - return this.__get('type'); - } - allOf() { - const allOf = this.__get('allOf'); - return !allOf ? null : allOf.map(this.__createChild); - } - oneOf() { - const oneOf = this.__get('oneOf'); - return !oneOf ? null : oneOf.map(this.__createChild); - } - anyOf() { - const anyOf = this.__get('anyOf'); - return !anyOf ? null : anyOf.map(this.__createChild); - } - not() { - const not = this.__get('not'); - return !not ? null : this.__createChild(not); - } - items() { - const items = this.__get('items'); - if (!items) - return null; - if (Array.isArray(items)) { - return items.map(this.__createChild); - } - return this.__createChild(items); - } - properties() { - return (0, mixins_1.createMapOfType)(this.__get('properties'), Schema, { parent: this }); - } - property(name) { - return (0, mixins_1.getMapValue)(this.__get('properties'), name, Schema, { parent: this }); - } - additionalProperties() { - if (typeof this._json === 'boolean') - return this._json; - const additionalProperties = this.__get('additionalProperties'); - if (typeof additionalProperties === 'boolean') - return additionalProperties; - if (additionalProperties === undefined) - return true; - if (additionalProperties === null) - return false; - return this.__createChild(additionalProperties); - } - additionalItems() { - if (typeof this._json === 'boolean') - return this._json; - const additionalItems = this.__get('additionalItems'); - if (typeof additionalItems === 'boolean') - return additionalItems; - if (additionalItems === undefined) - return true; - if (additionalItems === null) - return false; - return this.__createChild(additionalItems); - } - patternProperties() { - return (0, mixins_1.createMapOfType)(this.__get('patternProperties'), Schema, { parent: this }); - } - const() { - return this.__get('const'); - } - contains() { - const contains = this.__get('contains'); - return typeof contains === 'undefined' ? null : this.__createChild(contains); - } - dependencies() { - const dependencies = this.__get('dependencies'); - if (!dependencies) - return null; - const result = {}; - Object.entries(dependencies).forEach(([key, value]) => { - result[key] = !Array.isArray(value) ? this.__createChild(value) : value; - }); - return result; - } - propertyNames() { - const propertyNames = this.__get('propertyNames'); - return typeof propertyNames === 'undefined' ? null : this.__createChild(propertyNames); - } - if() { - const _if = this.__get('if'); - return typeof _if === 'undefined' ? null : this.__createChild(_if); - } - then() { - const _then = this.__get('then'); - return typeof _then === 'undefined' ? null : this.__createChild(_then); - } - else() { - const _else = this.__get('else'); - return typeof _else === 'undefined' ? null : this.__createChild(_else); - } - format() { - return this.__get('format'); - } - contentEncoding() { - return this.__get('contentEncoding'); - } - contentMediaType() { - return this.__get('contentMediaType'); - } - definitions() { - return (0, mixins_1.createMapOfType)(this.__get('definitions'), Schema, { parent: this }); - } - title() { - return this.__get('title'); - } - default() { - return this.__get('default'); - } - deprecated() { - return this.__get('deprecated'); - } - discriminator() { - return this.__get('discriminator'); - } - readOnly() { - return this.__get('readOnly'); - } - writeOnly() { - return this.__get('writeOnly'); - } - examples() { - return this.__get('examples'); - } - isBooleanSchema() { - return typeof this._json === 'boolean'; - } - description() { - return (0, mixins_1.description)(this); - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - externalDocs() { - return (0, mixins_1.externalDocs)(this); - } - hasExternalDocs() { - return (0, mixins_1.hasExternalDocs)(this); - } - isCircular() { - if ((0, utils_1.hasRef)(this._json) || this.ext(constants_1.xParserCircular)) { - return true; - } - let parent = this._meta.parent; - while (parent) { - if (parent._json === this._json) - return true; - parent = parent._meta && parent._meta.parent; - } - return false; - } - circularSchema() { - let parent = this._meta.parent; - while (parent) { - if (parent._json === this._json) - return parent; - parent = parent._meta && parent._meta.parent; - } - } - hasCircularProps() { - if (Array.isArray(this.ext(constants_1.xParserCircularProps))) { - return this.ext(constants_1.xParserCircularProps).length > 0; - } - return Object.entries(this.properties() || {}) - .map(([propertyName, property]) => { - if (property.isCircular()) - return propertyName; - }) - .filter(Boolean) - .length > 0; - } - circularProps() { - if (Array.isArray(this.ext(constants_1.xParserCircularProps))) { - return this.ext(constants_1.xParserCircularProps); - } - return Object.entries(this.properties() || {}) - .map(([propertyName, property]) => { - if (property.isCircular()) - return propertyName; - }) - .filter(Boolean); - } - __get(key) { - if (typeof this._json === 'boolean') - return; - return this._json[key]; - } - __createChild(s) { - return new Schema(s, { parent: this }); - } -} -exports.Schema = Schema; diff --git a/cjs/old-api/security-requirement.d.ts b/cjs/old-api/security-requirement.d.ts deleted file mode 100644 index 034e0c317..000000000 --- a/cjs/old-api/security-requirement.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Base } from './base'; -import type { v2 } from '../spec-types'; -export declare class SecurityRequirement extends Base { -} diff --git a/cjs/old-api/security-requirement.js b/cjs/old-api/security-requirement.js deleted file mode 100644 index 032888ba1..000000000 --- a/cjs/old-api/security-requirement.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SecurityRequirement = void 0; -const base_1 = require("./base"); -class SecurityRequirement extends base_1.Base { -} -exports.SecurityRequirement = SecurityRequirement; diff --git a/cjs/old-api/security-scheme.d.ts b/cjs/old-api/security-scheme.d.ts deleted file mode 100644 index bde080425..000000000 --- a/cjs/old-api/security-scheme.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import { OAuthFlow } from './oauth-flow'; -import type { v2 } from '../spec-types'; -export declare class SecurityScheme extends SpecificationExtensionsModel { - type(): v2.SecuritySchemeType; - description(): string | null; - hasDescription(): boolean; - name(): string | undefined; - in(): "user" | "password" | "query" | "header" | "cookie" | undefined; - scheme(): string | undefined; - bearerFormat(): string | undefined; - openIdConnectUrl(): string | undefined; - flows(): Record; -} diff --git a/cjs/old-api/security-scheme.js b/cjs/old-api/security-scheme.js deleted file mode 100644 index 66e8b32a5..000000000 --- a/cjs/old-api/security-scheme.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SecurityScheme = void 0; -const mixins_1 = require("./mixins"); -const oauth_flow_1 = require("./oauth-flow"); -class SecurityScheme extends mixins_1.SpecificationExtensionsModel { - type() { - return this._json.type; - } - description() { - return (0, mixins_1.description)(this); - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - name() { - return this._json.name; - } - in() { - return this._json.in; - } - scheme() { - return this._json.scheme; - } - bearerFormat() { - return this._json.bearerFormat; - } - openIdConnectUrl() { - return this._json.openIdConnectUrl; - } - flows() { - return (0, mixins_1.createMapOfType)(this._json.flows, oauth_flow_1.OAuthFlow); - } -} -exports.SecurityScheme = SecurityScheme; diff --git a/cjs/old-api/server-variable.d.ts b/cjs/old-api/server-variable.d.ts deleted file mode 100644 index ed17f1d6f..000000000 --- a/cjs/old-api/server-variable.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import type { v2 } from '../spec-types'; -export declare class ServerVariable extends SpecificationExtensionsModel { - allowedValues(): string[] | undefined; - allows(name: string): boolean; - hasAllowedValues(): boolean; - description(): string | null; - hasDescription(): boolean; - defaultValue(): string | undefined; - hasDefaultValue(): boolean; - examples(): string[] | undefined; -} diff --git a/cjs/old-api/server-variable.js b/cjs/old-api/server-variable.js deleted file mode 100644 index ecb9971ba..000000000 --- a/cjs/old-api/server-variable.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ServerVariable = void 0; -const mixins_1 = require("./mixins"); -class ServerVariable extends mixins_1.SpecificationExtensionsModel { - allowedValues() { - return this._json.enum; - } - allows(name) { - if (this._json.enum === undefined) - return true; - return this._json.enum.includes(name); - } - hasAllowedValues() { - return this._json.enum !== undefined; - } - description() { - return (0, mixins_1.description)(this); - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - defaultValue() { - return this._json.default; - } - hasDefaultValue() { - return this._json.default !== undefined; - } - examples() { - return this._json.examples; - } -} -exports.ServerVariable = ServerVariable; diff --git a/cjs/old-api/server.d.ts b/cjs/old-api/server.d.ts deleted file mode 100644 index 803194b67..000000000 --- a/cjs/old-api/server.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import { ServerVariable } from './server-variable'; -import { SecurityRequirement } from './security-requirement'; -import type { v2 } from '../spec-types'; -export declare class Server extends SpecificationExtensionsModel { - url(): string; - protocol(): string; - protocolVersion(): string | undefined; - description(): string | null; - hasDescription(): boolean; - variables(): Record; - variable(name: string): ServerVariable | null; - hasVariables(): boolean; - security(): SecurityRequirement[] | null; - hasBindings(): boolean; - bindings(): Record; - bindingProtocols(): string[]; - hasBinding(name: string): boolean; - binding(name: string): v2.Binding | null; -} diff --git a/cjs/old-api/server.js b/cjs/old-api/server.js deleted file mode 100644 index 87a0aa611..000000000 --- a/cjs/old-api/server.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Server = void 0; -const mixins_1 = require("./mixins"); -const server_variable_1 = require("./server-variable"); -const security_requirement_1 = require("./security-requirement"); -class Server extends mixins_1.SpecificationExtensionsModel { - url() { - return this._json.url; - } - protocol() { - return this._json.protocol; - } - protocolVersion() { - return this._json.protocolVersion; - } - description() { - return (0, mixins_1.description)(this); - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - variables() { - return (0, mixins_1.createMapOfType)(this._json.variables, server_variable_1.ServerVariable); - } - variable(name) { - return (0, mixins_1.getMapValue)(this._json.variables, name, server_variable_1.ServerVariable); - } - hasVariables() { - return !!this._json.variables; - } - security() { - if (!this._json.security) - return null; - return this._json.security.map(sec => new security_requirement_1.SecurityRequirement(sec)); - } - hasBindings() { - return mixins_1.bindingsMixins.hasBindings(this); - } - bindings() { - return mixins_1.bindingsMixins.bindings(this); - } - bindingProtocols() { - return mixins_1.bindingsMixins.bindingProtocols(this); - } - hasBinding(name) { - return mixins_1.bindingsMixins.hasBinding(this, name); - } - binding(name) { - return mixins_1.bindingsMixins.binding(this, name); - } -} -exports.Server = Server; diff --git a/cjs/old-api/tag.d.ts b/cjs/old-api/tag.d.ts deleted file mode 100644 index f895f29e7..000000000 --- a/cjs/old-api/tag.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Base } from './base'; -import type { v2 } from '../spec-types'; -export declare class Tag extends Base { - name(): string; - description(): string | null; - hasDescription(): boolean; - externalDocs(): import("./external-docs").ExternalDocs | null; - hasExternalDocs(): boolean; - hasExtensions(): boolean; - extensions(): v2.SpecificationExtensions; - extensionKeys(): string[]; - extKeys(): string[]; - hasExtension(extension: string): boolean; - extension(extension: string): v2.SpecificationExtension; - hasExt(extension: string): boolean; - ext(extension: string): any; -} diff --git a/cjs/old-api/tag.js b/cjs/old-api/tag.js deleted file mode 100644 index 265b22580..000000000 --- a/cjs/old-api/tag.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Tag = void 0; -const base_1 = require("./base"); -const mixins_1 = require("./mixins"); -class Tag extends base_1.Base { - name() { - return this._json.name; - } - description() { - return (0, mixins_1.description)(this); - } - hasDescription() { - return (0, mixins_1.hasDescription)(this); - } - externalDocs() { - return (0, mixins_1.externalDocs)(this); - } - hasExternalDocs() { - return (0, mixins_1.hasExternalDocs)(this); - } - hasExtensions() { - return mixins_1.extensionsMixins.hasExtensions(this); - } - extensions() { - return mixins_1.extensionsMixins.extensions(this); - } - extensionKeys() { - return mixins_1.extensionsMixins.extensionKeys(this); - } - extKeys() { - return mixins_1.extensionsMixins.extKeys(this); - } - hasExtension(extension) { - return mixins_1.extensionsMixins.hasExtension(this, extension); - } - extension(extension) { - return mixins_1.extensionsMixins.extension(this, extension); - } - hasExt(extension) { - return mixins_1.extensionsMixins.hasExt(this, extension); - } - ext(extension) { - return mixins_1.extensionsMixins.ext(this, extension); - } -} -exports.Tag = Tag; diff --git a/cjs/parse.d.ts b/cjs/parse.d.ts deleted file mode 100644 index dc70ad660..000000000 --- a/cjs/parse.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { AsyncAPIDocumentInterface } from './models'; -import type { Spectral } from '@stoplight/spectral-core'; -import type { Parser } from './parser'; -import type { ValidateOptions } from './validate'; -import type { Input, Diagnostic } from './types'; -export interface ParseOutput { - document: AsyncAPIDocumentInterface | undefined; - diagnostics: Diagnostic[]; -} -export interface ParseOptions { - source?: string; - applyTraits?: boolean; - parseSchemas?: boolean; - validateOptions?: Omit; -} -export declare function parse(parser: Parser, spectral: Spectral, asyncapi: Input, options?: ParseOptions): Promise; diff --git a/cjs/parse.js b/cjs/parse.js deleted file mode 100644 index ca9b87d82..000000000 --- a/cjs/parse.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parse = void 0; -const custom_operations_1 = require("./custom-operations"); -const validate_1 = require("./validate"); -const stringify_1 = require("./stringify"); -const document_1 = require("./document"); -const utils_1 = require("./utils"); -const constants_1 = require("./constants"); -const defaultOptions = { - applyTraits: true, - parseSchemas: true, - validateOptions: {}, -}; -function parse(parser, spectral, asyncapi, options = {}) { - return __awaiter(this, void 0, void 0, function* () { - options = (0, utils_1.mergePatch)(defaultOptions, options); - const { validated, diagnostics } = yield (0, validate_1.validate)(spectral, asyncapi, Object.assign(Object.assign({}, options.validateOptions), { source: options.source })); - if (validated === undefined) { - return { - document: undefined, - diagnostics, - }; - } - // unfreeze the object - Spectral makes resolved document "freezed" - const validatedDoc = (0, stringify_1.copy)(validated); - const detailed = (0, utils_1.createDetailedAsyncAPI)(asyncapi, validatedDoc); - const document = (0, document_1.createAsyncAPIDocument)(detailed); - (0, utils_1.setExtension)(constants_1.xParserSpecParsed, true, document); - yield (0, custom_operations_1.customOperations)(parser, document, detailed, options); - return { - document, - diagnostics, - }; - }); -} -exports.parse = parse; diff --git a/cjs/parser.d.ts b/cjs/parser.d.ts deleted file mode 100644 index e0b0643f5..000000000 --- a/cjs/parser.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type { Spectral } from '@stoplight/spectral-core'; -import type { ParseOptions, ParseOutput } from './parse'; -import type { ValidateOptions } from './validate'; -import type { ResolverOptions } from './resolver'; -import type { SchemaParser } from './schema-parser'; -import type { Diagnostic, Input } from './types'; -export interface ParserOptions { - schemaParsers?: Array; - __unstable?: { - resolver?: ResolverOptions; - }; -} -export declare class Parser { - private readonly options; - readonly parserRegistry: Map>; - protected readonly spectral: Spectral; - constructor(options?: ParserOptions); - parse(asyncapi: Input, options?: ParseOptions): Promise; - validate(asyncapi: Input, options?: ValidateOptions): Promise; - registerSchemaParser(parser: SchemaParser): void; -} diff --git a/cjs/parser.js b/cjs/parser.js deleted file mode 100644 index cdd6046b4..000000000 --- a/cjs/parser.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Parser = void 0; -const document_1 = require("./document"); -const parse_1 = require("./parse"); -const validate_1 = require("./validate"); -const schema_parser_1 = require("./schema-parser"); -const asyncapi_schema_parser_1 = require("./schema-parser/asyncapi-schema-parser"); -const spectral_1 = require("./spectral"); -class Parser { - constructor(options = {}) { - var _a; - this.options = options; - this.parserRegistry = new Map(); - this.spectral = (0, spectral_1.createSpectral)(this, options); - this.registerSchemaParser((0, asyncapi_schema_parser_1.AsyncAPISchemaParser)()); - (_a = this.options.schemaParsers) === null || _a === void 0 ? void 0 : _a.forEach(parser => this.registerSchemaParser(parser)); - } - parse(asyncapi, options) { - return __awaiter(this, void 0, void 0, function* () { - const maybeDocument = (0, document_1.toAsyncAPIDocument)(asyncapi); - if (maybeDocument) { - return { - document: maybeDocument, - diagnostics: [], - }; - } - return (0, parse_1.parse)(this, this.spectral, asyncapi, options); - }); - } - validate(asyncapi, options) { - return __awaiter(this, void 0, void 0, function* () { - const maybeDocument = (0, document_1.toAsyncAPIDocument)(asyncapi); - if (maybeDocument) { - return []; - } - return (yield (0, validate_1.validate)(this.spectral, asyncapi, options)).diagnostics; - }); - } - registerSchemaParser(parser) { - return (0, schema_parser_1.registerSchemaParser)(this, parser); - } -} -exports.Parser = Parser; diff --git a/cjs/resolver.d.ts b/cjs/resolver.d.ts deleted file mode 100644 index 90d4232bc..000000000 --- a/cjs/resolver.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Resolver as SpectralResolver } from '@stoplight/spectral-ref-resolver'; -import type Uri from 'urijs'; -export interface Resolver { - schema: 'file' | 'http' | 'https' | string; - order?: number; - canRead?: boolean | ((uri: Uri, ctx?: any) => boolean); - read: (uri: Uri, ctx?: any) => string | undefined | Promise; -} -export interface ResolverOptions { - cache?: boolean; - resolvers?: Array; -} -export declare function createResolver(options?: ResolverOptions): SpectralResolver; diff --git a/cjs/resolver.js b/cjs/resolver.js deleted file mode 100644 index e079c8703..000000000 --- a/cjs/resolver.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createResolver = void 0; -const spectral_ref_resolver_1 = require("@stoplight/spectral-ref-resolver"); -const cache_1 = require("@stoplight/json-ref-resolver/cache"); -const json_ref_readers_1 = require("@stoplight/json-ref-readers"); -function createResolver(options = {}) { - const availableResolvers = [ - ...createDefaultResolvers(), - ...((options === null || options === void 0 ? void 0 : options.resolvers) || []) - ].map(r => (Object.assign(Object.assign({}, r), { order: r.order || Number.MAX_SAFE_INTEGER, canRead: typeof r.canRead === 'undefined' ? true : r.canRead }))); - const availableSchemas = [...new Set(availableResolvers.map(r => r.schema))]; - const resolvers = availableSchemas.reduce((acc, schema) => { - acc[schema] = { resolve: createSchemaResolver(schema, availableResolvers) }; - return acc; - }, {}); - // if cache is enabled, use default Cache instance in SpectralResolver, otherwise use custom one with ttl set to 1ms - const cache = options.cache !== false; - return new spectral_ref_resolver_1.Resolver({ - uriCache: cache ? undefined : new cache_1.Cache({ stdTTL: 1 }), - resolvers: resolvers, - }); -} -exports.createResolver = createResolver; -function createDefaultResolvers() { - return [ - { - schema: 'file', - read: json_ref_readers_1.resolveFile, - }, - { - schema: 'https', - read: json_ref_readers_1.resolveHttp, - }, - { - schema: 'http', - read: json_ref_readers_1.resolveHttp, - }, - ]; -} -function createSchemaResolver(schema, allResolvers) { - const resolvers = allResolvers.filter(r => r.schema === schema).sort((a, b) => { return a.order - b.order; }); - return (uri, ctx) => __awaiter(this, void 0, void 0, function* () { - let result = undefined; - let lastError; - for (const resolver of resolvers) { - try { - if (!canRead(resolver, uri, ctx)) - continue; - result = yield resolver.read(uri, ctx); - if (typeof result === 'string') { - break; - } - } - catch (e) { - lastError = e; - continue; - } - } - if (typeof result !== 'string') { - throw lastError || new Error(`None of the available resolvers for "${schema}" can resolve the given reference.`); - } - return result; - }); -} -function canRead(resolver, uri, ctx) { - return typeof resolver.canRead === 'function' ? resolver.canRead(uri, ctx) : resolver.canRead; -} diff --git a/cjs/schema-parser/asyncapi-schema-parser.d.ts b/cjs/schema-parser/asyncapi-schema-parser.d.ts deleted file mode 100644 index 9f4f64000..000000000 --- a/cjs/schema-parser/asyncapi-schema-parser.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { SchemaParser } from '../schema-parser'; -export declare function AsyncAPISchemaParser(): SchemaParser; diff --git a/cjs/schema-parser/asyncapi-schema-parser.js b/cjs/schema-parser/asyncapi-schema-parser.js deleted file mode 100644 index 71c162678..000000000 --- a/cjs/schema-parser/asyncapi-schema-parser.js +++ /dev/null @@ -1,95 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AsyncAPISchemaParser = void 0; -const ajv_1 = __importDefault(require("ajv")); -// @ts-ignore -const specs_1 = __importDefault(require("@asyncapi/specs")); -const constants_1 = require("../constants"); -const ajv = new ajv_1.default({ - allErrors: true, - strict: false, - logger: false, -}); -function AsyncAPISchemaParser() { - return { - validate, - parse, - getMimeTypes, - }; -} -exports.AsyncAPISchemaParser = AsyncAPISchemaParser; -function validate(input) { - return __awaiter(this, void 0, void 0, function* () { - const version = input.asyncapi.semver.version; - const validator = getSchemaValidator(version); - let result = []; - const valid = validator(input.data); - if (!valid && validator.errors) { - result = ajvToSpectralResult(input.path, [...validator.errors]); - } - return result; - }); -} -function parse(input) { - return __awaiter(this, void 0, void 0, function* () { - return input.data; - }); -} -function getMimeTypes() { - const mimeTypes = [ - 'application/schema;version=draft-07', - 'application/schema+json;version=draft-07', - 'application/schema+yaml;version=draft-07', - ]; - constants_1.specVersions.forEach((version) => { - mimeTypes.push(`application/vnd.aai.asyncapi;version=${version}`, `application/vnd.aai.asyncapi+json;version=${version}`, `application/vnd.aai.asyncapi+yaml;version=${version}`); - }); - return mimeTypes; -} -function ajvToSpectralResult(path, errors) { - return errors.map(error => { - return { - message: error.message, - path: [...path, ...error.instancePath.replace(/^\//, '').split('/')], - }; - }); -} -function getSchemaValidator(version) { - let validator = ajv.getSchema(version); - if (!validator) { - const schema = preparePayloadSchema(specs_1.default[version], version); - ajv.addSchema(schema, version); - validator = ajv.getSchema(version); - } - return validator; -} -/** - * To validate the schema of the payload we just need a small portion of official AsyncAPI spec JSON Schema, the Schema Object in particular. The definition of Schema Object must be - * included in the returned JSON Schema. - */ -function preparePayloadSchema(asyncapiSchema, version) { - const payloadSchema = `http://asyncapi.com/definitions/${version}/schema.json`; - const definitions = asyncapiSchema.definitions; - if (definitions === undefined) { - throw new Error('AsyncAPI schema must contain definitions'); - } - // Remove the meta schemas because they are already present within Ajv, and it's not possible to add duplicated schemas. - delete definitions['http://json-schema.org/draft-07/schema']; - delete definitions['http://json-schema.org/draft-04/schema']; - return { - $ref: payloadSchema, - definitions - }; -} diff --git a/cjs/schema-parser/avro-schema-parser.d.ts b/cjs/schema-parser/avro-schema-parser.d.ts deleted file mode 100644 index ef6e5c387..000000000 --- a/cjs/schema-parser/avro-schema-parser.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { Schema } from 'avsc'; -import type { SchemaParser } from '../schema-parser'; -import type { v2 } from '../spec-types'; -declare type AvroSchema = Schema & { - [key: string]: any; -}; -export declare function AvroSchemaParser(): SchemaParser; -export declare function avroToJsonSchema(avroDefinition: AvroSchema): Promise; -export {}; diff --git a/cjs/schema-parser/avro-schema-parser.js b/cjs/schema-parser/avro-schema-parser.js deleted file mode 100644 index 5241e41d0..000000000 --- a/cjs/schema-parser/avro-schema-parser.js +++ /dev/null @@ -1,347 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.avroToJsonSchema = exports.AvroSchemaParser = void 0; -const avsc_1 = __importDefault(require("avsc")); -function AvroSchemaParser() { - return { - validate, - parse, - getMimeTypes, - }; -} -exports.AvroSchemaParser = AvroSchemaParser; -function validate(input) { - return __awaiter(this, void 0, void 0, function* () { - const result = []; - try { - validateAvroSchema(input.data); - } - catch (error) { - if (error instanceof Error) { - result.push({ - message: error.message, - path: input.path, // avsc doesn't throw errors with meaningful paths - }); - } - } - return result; - }); -} -function parse(input) { - var _a, _b; - return __awaiter(this, void 0, void 0, function* () { - const asyncAPISchema = yield avroToJsonSchema(input.data); - // TODO: Should the following modifications to the message object be done in the caller and for all parsers rather than here? - // remove that function when https://github.com/asyncapi/spec/issues/622 will be introduced in AsyncAPI spec - const message = input.meta.message; - const key = (_b = (_a = message === null || message === void 0 ? void 0 : message.bindings) === null || _a === void 0 ? void 0 : _a.kafka) === null || _b === void 0 ? void 0 : _b.key; - if (key) { - const bindingsTransformed = yield avroToJsonSchema(key); - message['x-parser-original-bindings-kafka-key'] = key; - message.bindings.kafka.key = bindingsTransformed; - } - return asyncAPISchema; - }); -} -function getMimeTypes() { - return [ - 'application/vnd.apache.avro;version=1.9.0', - 'application/vnd.apache.avro+json;version=1.9.0', - 'application/vnd.apache.avro+yaml;version=1.9.0', - 'application/vnd.apache.avro;version=1.8.2', - 'application/vnd.apache.avro+json;version=1.8.2', - 'application/vnd.apache.avro+yaml;version=1.8.2' - ]; -} -const BYTES_PATTERN = '^[\u0000-\u00ff]*$'; -const INT_MIN = Math.pow(-2, 31); -const INT_MAX = Math.pow(2, 31) - 1; -const LONG_MIN = Math.pow(-2, 63); -const LONG_MAX = Math.pow(2, 63) - 1; -const typeMappings = { - null: 'null', - boolean: 'boolean', - int: 'integer', - long: 'integer', - float: 'number', - double: 'number', - bytes: 'string', - string: 'string', - fixed: 'string', - map: 'object', - array: 'array', - enum: 'string', - record: 'object', - uuid: 'string', -}; -function commonAttributesMapping(avroDefinition, jsonSchema, recordCache) { - if (avroDefinition.doc) - jsonSchema.description = avroDefinition.doc; - if (avroDefinition.default !== undefined) - jsonSchema.default = avroDefinition.default; - const fullyQualifiedName = getFullyQualifiedName(avroDefinition); - if (fullyQualifiedName !== undefined && recordCache[fullyQualifiedName]) { - jsonSchema['x-parser-schema-id'] = fullyQualifiedName; - } -} -function getFullyQualifiedName(avroDefinition) { - let name; - if (avroDefinition.name) { - if (avroDefinition.namespace) { - name = `${avroDefinition.namespace}.${avroDefinition.name}`; - } - else { - name = avroDefinition.name; - } - } - return name; -} -/** - * Enrich the parent's required attribute with the required record attributes - * @param fieldDefinition the actual field definition - * @param parentJsonSchema the parent json schema which contains the required property to enrich - * @param haveDefaultValue we assure that a required field does not have a default value - */ -function requiredAttributesMapping(fieldDefinition, parentJsonSchema, haveDefaultValue) { - const isUnionWithNull = Array.isArray(fieldDefinition.type) && fieldDefinition.type.includes('null'); - // we assume that a union type without null and a field without default value is required - if (!isUnionWithNull && !haveDefaultValue) { - parentJsonSchema.required = parentJsonSchema.required || []; - parentJsonSchema.required.push(fieldDefinition.name); - } -} -function extractNonNullableTypeIfNeeded(typeInput, jsonSchemaInput) { - let type = typeInput; - let jsonSchema = jsonSchemaInput; - // Map example to first non-null type - if (Array.isArray(typeInput) && typeInput.length > 0) { - const pickSecondType = typeInput.length > 1 && typeInput[0] === 'null'; - type = typeInput[+pickSecondType]; - if (jsonSchema.oneOf !== undefined) { - jsonSchema = jsonSchema.oneOf[0]; - } - } - return { type, jsonSchema }; -} -function exampleAttributeMapping(type, example, jsonSchema) { - if (example === undefined || jsonSchema.examples || Array.isArray(type)) - return; - switch (type) { - case 'boolean': - jsonSchema.examples = [example === 'true']; - break; - case 'int': - jsonSchema.examples = [parseInt(example, 10)]; - break; - default: - jsonSchema.examples = [example]; - } -} -function additionalAttributesMapping(typeInput, avroDefinition, jsonSchemaInput) { - const __ret = extractNonNullableTypeIfNeeded(typeInput, jsonSchemaInput); - const type = __ret.type; - const jsonSchema = __ret.jsonSchema; - exampleAttributeMapping(type, avroDefinition.example, jsonSchema); - function setAdditionalAttribute(...names) { - names.forEach(name => { - let isValueCoherent = true; - if (name === 'minLength' || name === 'maxLength') { - isValueCoherent = avroDefinition[name] > -1; - } - else if (name === 'multipleOf') { - isValueCoherent = avroDefinition[name] > 0; - } - if (avroDefinition[name] !== undefined && isValueCoherent) - jsonSchema[name] = avroDefinition[name]; - }); - } - switch (type) { - case 'int': // int, long, float, and double must support the attributes bellow - case 'long': - case 'float': - case 'double': - setAdditionalAttribute('minimum', 'maximum', 'exclusiveMinimum', 'exclusiveMaximum', 'multipleOf'); - break; - case 'string': - if (avroDefinition.logicalType) { - jsonSchema.format = avroDefinition.logicalType; - } - setAdditionalAttribute('pattern', 'minLength', 'maxLength'); - break; - case 'array': - setAdditionalAttribute('minItems', 'maxItems', 'uniqueItems'); - break; - default: - break; - } -} -function validateAvroSchema(avroDefinition) { - // don't need to use the output from parsing the - // avro definition - we're just using this as a - // validator as this will throw an exception if - // there are any problems with the definition - avsc_1.default.Type.forSchema(avroDefinition); -} -/** - * Cache the passed value under the given key. If the key is undefined the value will not be cached. This function - * uses mutation of the passed cache object rather than a copy on write cache strategy. - * - * @param cache Map the cache to store the JsonSchema - * @param key String | Undefined - the fully qualified name of an avro record - * @param value JsonSchema - The json schema from the avro record - */ -function cacheAvroRecordDef(cache, key, value) { - if (key !== undefined) { - cache[key] = value; - } -} -function convertAvroToJsonSchema(avroDefinition, isTopLevel, recordCache = {}) { - return __awaiter(this, void 0, void 0, function* () { - let jsonSchema = {}; - const isUnion = Array.isArray(avroDefinition); - if (isUnion) { - return processUnionSchema(jsonSchema, avroDefinition, isTopLevel, recordCache); - } - // Avro definition can be a string (e.g. "int") - // or an object like { type: "int" } - const type = avroDefinition.type || avroDefinition; - jsonSchema.type = typeMappings[type]; - switch (type) { - case 'int': { - jsonSchema.minimum = INT_MIN; - jsonSchema.maximum = INT_MAX; - break; - } - case 'long': { - jsonSchema.minimum = LONG_MIN; - jsonSchema.maximum = LONG_MAX; - break; - } - case 'bytes': { - jsonSchema.pattern = BYTES_PATTERN; - break; - } - case 'fixed': { - jsonSchema.pattern = BYTES_PATTERN; - jsonSchema.minLength = avroDefinition.size; - jsonSchema.maxLength = avroDefinition.size; - break; - } - case 'map': { - jsonSchema.additionalProperties = yield convertAvroToJsonSchema(avroDefinition.values, false); - break; - } - case 'array': { - jsonSchema.items = yield convertAvroToJsonSchema(avroDefinition.items, false); - break; - } - case 'enum': { - jsonSchema.enum = avroDefinition.symbols; - break; - } - case 'float': // float and double must support the format attribute from the avro type - case 'double': { - jsonSchema.format = type; - break; - } - case 'record': { - const propsMap = yield processRecordSchema(avroDefinition, recordCache, jsonSchema); - cacheAvroRecordDef(recordCache, getFullyQualifiedName(avroDefinition), propsMap); - jsonSchema.properties = Object.fromEntries(propsMap.entries()); - break; - } - default: { - const cachedRecord = recordCache[getFullyQualifiedName(avroDefinition)]; - if (cachedRecord) { - jsonSchema = cachedRecord; - } - break; - } - } - commonAttributesMapping(avroDefinition, jsonSchema, recordCache); - additionalAttributesMapping(type, avroDefinition, jsonSchema); - return jsonSchema; - }); -} -/** - * When a record type is found in an avro schema this function can be used to process the underlying fields and return - * the map of props contained by the record. The record will also be cached. - * - * @param avroDefinition the avro schema to be processed - * @param recordCache the cache of previously processed avro record types - * @param jsonSchema the schema for the record. - * @returns {Promise>} - */ -function processRecordSchema(avroDefinition, recordCache, jsonSchema) { - return __awaiter(this, void 0, void 0, function* () { - const propsMap = new Map(); - for (const field of avroDefinition.fields) { - // If the type is a sub schema it will have been stored in the cache. - if (recordCache[field.type]) { - propsMap.set(field.name, recordCache[field.type]); - } - else { - const def = yield convertAvroToJsonSchema(field.type, false, recordCache); - requiredAttributesMapping(field, jsonSchema, field.default !== undefined); - commonAttributesMapping(field, def, recordCache); - additionalAttributesMapping(field.type, field, def); - propsMap.set(field.name, def); - // If there is a name for the sub record cache it under the name. - const qualifiedFieldName = getFullyQualifiedName(field.type); - cacheAvroRecordDef(recordCache, qualifiedFieldName, def); - } - } - return propsMap; - }); -} -/** - * Handles processing union avro schema types by creating a oneOf jsonSchema definition. This will mutate the passed - * jsonSchema and recordCache objects. - * - * @param jsonSchema the jsonSchema object that will be mutated. - * @param avroDefinition the avro schema to be processed - * @param isTopLevel is this the top level of the schema or is this a sub schema - * @param recordCache the cache of previously processed record types - * @returns {Promise} the mutated jsonSchema that was provided to the function - */ -function processUnionSchema(jsonSchema, avroDefinition, isTopLevel, recordCache) { - return __awaiter(this, void 0, void 0, function* () { - jsonSchema.oneOf = []; - let nullDef = null; - for (const avroDef of avroDefinition) { - const def = yield convertAvroToJsonSchema(avroDef, isTopLevel, recordCache); - // avroDef can be { type: 'int', default: 1 } and this is why avroDef.type has priority here - const defType = avroDef.type || avroDef; - // To prefer non-null values in the examples skip null definition here and push it as the last element after loop - if (defType === 'null') { - nullDef = def; - } - else { - jsonSchema.oneOf.push(def); - const qualifiedName = getFullyQualifiedName(avroDef); - cacheAvroRecordDef(recordCache, qualifiedName, def); - } - } - if (nullDef) - jsonSchema.oneOf.push(nullDef); - return jsonSchema; - }); -} -function avroToJsonSchema(avroDefinition) { - return __awaiter(this, void 0, void 0, function* () { - return convertAvroToJsonSchema(avroDefinition, true); - }); -} -exports.avroToJsonSchema = avroToJsonSchema; diff --git a/cjs/schema-parser/index.d.ts b/cjs/schema-parser/index.d.ts deleted file mode 100644 index 84aa51571..000000000 --- a/cjs/schema-parser/index.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type { Parser } from '../parser'; -import type { AsyncAPISchema, DetailedAsyncAPI, SchemaValidateResult } from '../types'; -export interface ValidateSchemaInput { - readonly asyncapi: DetailedAsyncAPI; - readonly data: D; - readonly meta: M; - readonly path: Array; - readonly schemaFormat: string; - readonly defaultSchemaFormat: string; -} -export interface ParseSchemaInput { - readonly asyncapi: DetailedAsyncAPI; - readonly data: D; - readonly meta: M; - readonly path: Array; - readonly schemaFormat: string; - readonly defaultSchemaFormat: string; -} -export interface SchemaParser { - validate: (input: ValidateSchemaInput) => void | SchemaValidateResult[] | Promise; - parse: (input: ParseSchemaInput) => AsyncAPISchema | Promise; - getMimeTypes: () => Array; -} -export declare function validateSchema(parser: Parser, input: ValidateSchemaInput): Promise; -export declare function parseSchema(parser: Parser, input: ParseSchemaInput): Promise; -export declare function registerSchemaParser(parser: Parser, schemaParser: SchemaParser): void; -export declare function getSchemaFormat(schematFormat: string | undefined, asyncapiVersion: string): string; -export declare function getDefaultSchemaFormat(asyncapiVersion: string): string; diff --git a/cjs/schema-parser/index.js b/cjs/schema-parser/index.js deleted file mode 100644 index 00098d270..000000000 --- a/cjs/schema-parser/index.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getDefaultSchemaFormat = exports.getSchemaFormat = exports.registerSchemaParser = exports.parseSchema = exports.validateSchema = void 0; -function validateSchema(parser, input) { - return __awaiter(this, void 0, void 0, function* () { - const schemaParser = parser.parserRegistry.get(input.schemaFormat); - if (schemaParser === undefined) { - const { path, schemaFormat } = input; - path.pop(); // remove 'payload' as last element of path - return [ - { - message: `Unknown schema format: "${schemaFormat}"`, - path: [...path, 'schemaFormat'], - }, - { - message: `Cannot validate and parse given schema due to unknown schema format: "${schemaFormat}"`, - path: [...path, 'payload'], - } - ]; - } - return schemaParser.validate(input); - }); -} -exports.validateSchema = validateSchema; -function parseSchema(parser, input) { - return __awaiter(this, void 0, void 0, function* () { - const schemaParser = parser.parserRegistry.get(input.schemaFormat); - if (schemaParser === undefined) { - throw new Error('Unknown schema format'); - } - return schemaParser.parse(input); - }); -} -exports.parseSchema = parseSchema; -function registerSchemaParser(parser, schemaParser) { - if (typeof schemaParser !== 'object' - || typeof schemaParser.validate !== 'function' - || typeof schemaParser.parse !== 'function' - || typeof schemaParser.getMimeTypes !== 'function') { - throw new Error('Custom parser must have "parse()", "validate()" and "getMimeTypes()" functions.'); - } - schemaParser.getMimeTypes().forEach(schemaFormat => { - parser.parserRegistry.set(schemaFormat, schemaParser); - }); -} -exports.registerSchemaParser = registerSchemaParser; -function getSchemaFormat(schematFormat, asyncapiVersion) { - if (typeof schematFormat === 'string') { - return schematFormat; - } - return getDefaultSchemaFormat(asyncapiVersion); -} -exports.getSchemaFormat = getSchemaFormat; -function getDefaultSchemaFormat(asyncapiVersion) { - return `application/vnd.aai.asyncapi;version=${asyncapiVersion}`; -} -exports.getDefaultSchemaFormat = getDefaultSchemaFormat; diff --git a/cjs/schema-parser/openapi-schema-parser.d.ts b/cjs/schema-parser/openapi-schema-parser.d.ts deleted file mode 100644 index feb152ee5..000000000 --- a/cjs/schema-parser/openapi-schema-parser.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { SchemaParser } from '../schema-parser'; -export declare function OpenAPISchemaParser(): SchemaParser; diff --git a/cjs/schema-parser/openapi-schema-parser.js b/cjs/schema-parser/openapi-schema-parser.js deleted file mode 100644 index d23b3e3bc..000000000 --- a/cjs/schema-parser/openapi-schema-parser.js +++ /dev/null @@ -1,106 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OpenAPISchemaParser = void 0; -const ajv_1 = __importDefault(require("ajv")); -const schema_v3_1 = require("./openapi/schema_v3"); -// eslint-disable-next-line @typescript-eslint/no-var-requires -const toJsonSchema = require('@openapi-contrib/openapi-schema-to-json-schema'); -const ajv = new ajv_1.default({ - allErrors: true, - strict: false, - logger: false, -}); -ajv.addSchema(schema_v3_1.schemaV3, 'openapi'); -function OpenAPISchemaParser() { - return { - validate, - parse, - getMimeTypes, - }; -} -exports.OpenAPISchemaParser = OpenAPISchemaParser; -function validate(input) { - return __awaiter(this, void 0, void 0, function* () { - const validator = ajv.getSchema('openapi'); - let result = []; - const valid = validator(input.data); - if (!valid && validator.errors) { - result = ajvToSpectralResult(input.path, [...validator.errors]); - } - return result; - }); -} -function parse(input) { - return __awaiter(this, void 0, void 0, function* () { - const transformed = toJsonSchema(input.data, { - cloneSchema: true, - keepNotSupported: [ - 'discriminator', - 'readOnly', - 'writeOnly', - 'deprecated', - 'xml', - 'example', - ], - }); - iterateSchema(transformed); - return transformed; - }); -} -function getMimeTypes() { - return [ - 'application/vnd.oai.openapi;version=3.0.0', - 'application/vnd.oai.openapi+json;version=3.0.0', - 'application/vnd.oai.openapi+yaml;version=3.0.0', - ]; -} -function ajvToSpectralResult(path, errors) { - return errors.map(error => { - return { - message: error.message, - path: [...path, ...error.instancePath.replace(/^\//, '').split('/')], - }; - }); -} -function iterateSchema(schema) { - if (schema.example !== undefined) { - const examples = schema.examples || []; - examples.push(schema.example); - schema.examples = examples; - delete schema.example; - } - if (schema.$schema !== undefined) { - delete schema.$schema; - } - aliasProps(schema.properties); - aliasProps(schema.patternProperties); - aliasProps(schema.additionalProperties); - aliasProps(schema.items); - aliasProps(schema.additionalItems); - aliasProps(schema.oneOf); - aliasProps(schema.anyOf); - aliasProps(schema.allOf); - aliasProps(schema.not); -} -function aliasProps(obj) { - for (const key in obj) { - const prop = obj[key]; - if (prop.xml !== undefined) { - prop['x-xml'] = prop.xml; - delete prop.xml; - } - iterateSchema(obj[key]); - } -} diff --git a/cjs/schema-parser/openapi/schema_v3.d.ts b/cjs/schema-parser/openapi/schema_v3.d.ts deleted file mode 100644 index e63319cb2..000000000 --- a/cjs/schema-parser/openapi/schema_v3.d.ts +++ /dev/null @@ -1,239 +0,0 @@ -export declare const schemaV3: { - type: string; - definitions: { - Reference: { - type: string; - required: string[]; - patternProperties: { - '^\\$ref$': { - type: string; - format: string; - }; - }; - }; - Discriminator: { - type: string; - required: string[]; - properties: { - propertyName: { - type: string; - }; - mapping: { - type: string; - additionalProperties: { - type: string; - }; - }; - }; - }; - ExternalDocumentation: { - type: string; - required: string[]; - properties: { - description: { - type: string; - }; - url: { - type: string; - format: string; - }; - }; - patternProperties: { - '^x-': {}; - }; - additionalProperties: boolean; - }; - XML: { - type: string; - properties: { - name: { - type: string; - }; - namespace: { - type: string; - format: string; - }; - prefix: { - type: string; - }; - attribute: { - type: string; - default: boolean; - }; - wrapped: { - type: string; - default: boolean; - }; - }; - patternProperties: { - '^x-': {}; - }; - additionalProperties: boolean; - }; - }; - properties: { - title: { - type: string; - }; - multipleOf: { - type: string; - exclusiveMinimum: number; - }; - maximum: { - type: string; - }; - exclusiveMaximum: { - type: string; - default: boolean; - }; - minimum: { - type: string; - }; - exclusiveMinimum: { - type: string; - default: boolean; - }; - maxLength: { - type: string; - minimum: number; - }; - minLength: { - type: string; - minimum: number; - default: number; - }; - pattern: { - type: string; - format: string; - }; - maxItems: { - type: string; - minimum: number; - }; - minItems: { - type: string; - minimum: number; - default: number; - }; - uniqueItems: { - type: string; - default: boolean; - }; - maxProperties: { - type: string; - minimum: number; - }; - minProperties: { - type: string; - minimum: number; - default: number; - }; - required: { - type: string; - items: { - type: string; - }; - minItems: number; - uniqueItems: boolean; - }; - enum: { - type: string; - items: {}; - minItems: number; - uniqueItems: boolean; - }; - type: { - type: string; - enum: string[]; - }; - not: { - oneOf: { - $ref: string; - }[]; - }; - allOf: { - type: string; - items: { - oneOf: { - $ref: string; - }[]; - }; - }; - oneOf: { - type: string; - items: { - oneOf: { - $ref: string; - }[]; - }; - }; - anyOf: { - type: string; - items: { - oneOf: { - $ref: string; - }[]; - }; - }; - items: { - oneOf: { - $ref: string; - }[]; - }; - properties: { - type: string; - additionalProperties: { - oneOf: { - $ref: string; - }[]; - }; - }; - additionalProperties: { - oneOf: ({ - $ref: string; - type?: undefined; - } | { - type: string; - $ref?: undefined; - })[]; - default: boolean; - }; - description: { - type: string; - }; - format: { - type: string; - }; - default: {}; - nullable: { - type: string; - default: boolean; - }; - discriminator: { - $ref: string; - }; - readOnly: { - type: string; - default: boolean; - }; - writeOnly: { - type: string; - default: boolean; - }; - example: {}; - externalDocs: { - $ref: string; - }; - deprecated: { - type: string; - default: boolean; - }; - xml: { - $ref: string; - }; - }; - patternProperties: { - '^x-': {}; - }; - additionalProperties: boolean; -}; diff --git a/cjs/schema-parser/openapi/schema_v3.js b/cjs/schema-parser/openapi/schema_v3.js deleted file mode 100644 index 5b8a3f03c..000000000 --- a/cjs/schema-parser/openapi/schema_v3.js +++ /dev/null @@ -1,278 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.schemaV3 = void 0; -/* eslint-disable */ -// From https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json -exports.schemaV3 = { - type: 'object', - definitions: { - Reference: { - type: 'object', - required: ['$ref'], - patternProperties: { - '^\\$ref$': { - type: 'string', - format: 'uri-reference' - } - } - }, - Discriminator: { - type: 'object', - required: ['propertyName'], - properties: { - propertyName: { - type: 'string' - }, - mapping: { - type: 'object', - additionalProperties: { - type: 'string' - } - } - } - }, - ExternalDocumentation: { - type: 'object', - required: ['url'], - properties: { - description: { - type: 'string' - }, - url: { - type: 'string', - format: 'uri-reference' - } - }, - patternProperties: { - '^x-': {} - }, - additionalProperties: false - }, - XML: { - type: 'object', - properties: { - name: { - type: 'string' - }, - namespace: { - type: 'string', - format: 'uri' - }, - prefix: { - type: 'string' - }, - attribute: { - type: 'boolean', - default: false - }, - wrapped: { - type: 'boolean', - default: false - } - }, - patternProperties: { - '^x-': {} - }, - additionalProperties: false - } - }, - properties: { - title: { - type: 'string' - }, - multipleOf: { - type: 'number', - exclusiveMinimum: 0 - }, - maximum: { - type: 'number' - }, - exclusiveMaximum: { - type: 'boolean', - default: false - }, - minimum: { - type: 'number' - }, - exclusiveMinimum: { - type: 'boolean', - default: false - }, - maxLength: { - type: 'integer', - minimum: 0 - }, - minLength: { - type: 'integer', - minimum: 0, - default: 0 - }, - pattern: { - type: 'string', - format: 'regex' - }, - maxItems: { - type: 'integer', - minimum: 0 - }, - minItems: { - type: 'integer', - minimum: 0, - default: 0 - }, - uniqueItems: { - type: 'boolean', - default: false - }, - maxProperties: { - type: 'integer', - minimum: 0 - }, - minProperties: { - type: 'integer', - minimum: 0, - default: 0 - }, - required: { - type: 'array', - items: { - type: 'string' - }, - minItems: 1, - uniqueItems: true - }, - enum: { - type: 'array', - items: {}, - minItems: 1, - uniqueItems: false - }, - type: { - type: 'string', - enum: ['array', 'boolean', 'integer', 'number', 'object', 'string'] - }, - not: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - } - ] - }, - allOf: { - type: 'array', - items: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - } - ] - } - }, - oneOf: { - type: 'array', - items: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - } - ] - } - }, - anyOf: { - type: 'array', - items: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - } - ] - } - }, - items: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - } - ] - }, - properties: { - type: 'object', - additionalProperties: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - } - ] - } - }, - additionalProperties: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - }, - { - type: 'boolean' - } - ], - default: true - }, - description: { - type: 'string' - }, - format: { - type: 'string' - }, - default: {}, - nullable: { - type: 'boolean', - default: false - }, - discriminator: { - $ref: '#/definitions/Discriminator' - }, - readOnly: { - type: 'boolean', - default: false - }, - writeOnly: { - type: 'boolean', - default: false - }, - example: {}, - externalDocs: { - $ref: '#/definitions/ExternalDocumentation' - }, - deprecated: { - type: 'boolean', - default: false - }, - xml: { - $ref: '#/definitions/XML' - } - }, - patternProperties: { - '^x-': {} - }, - additionalProperties: false -}; diff --git a/cjs/schema-parser/raml-schema-parser.d.ts b/cjs/schema-parser/raml-schema-parser.d.ts deleted file mode 100644 index 72250538a..000000000 --- a/cjs/schema-parser/raml-schema-parser.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { SchemaParser } from '../schema-parser'; -export declare function RamlSchemaParser(): SchemaParser; diff --git a/cjs/schema-parser/raml-schema-parser.js b/cjs/schema-parser/raml-schema-parser.js deleted file mode 100644 index bc820d672..000000000 --- a/cjs/schema-parser/raml-schema-parser.js +++ /dev/null @@ -1,89 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RamlSchemaParser = void 0; -const js_yaml_1 = __importDefault(require("js-yaml")); -const lib = __importStar(require("webapi-parser")); -/* eslint-disable */ -const wap = lib.WebApiParser; -const r2j = require('ramldt2jsonschema'); -function RamlSchemaParser() { - return { - validate, - parse, - getMimeTypes, - }; -} -exports.RamlSchemaParser = RamlSchemaParser; -function parse(input) { - return __awaiter(this, void 0, void 0, function* () { - const payload = formatPayload(input.data); - // Draft 6 is compatible with 7. - const jsonModel = yield r2j.dt2js(payload, 'tmpType', { draft: '06' }); - return jsonModel.definitions.tmpType; - }); -} -function getMimeTypes() { - return [ - 'application/raml+yaml;version=1.0', - ]; -} -function validate(input) { - return __awaiter(this, void 0, void 0, function* () { - const payload = formatPayload(input.data); - const parsed = yield wap.raml10.parse(payload); - const report = yield wap.raml10.validate(parsed); - if (report.conforms) { - // No errors found. - return []; - } - const validateResult = []; - report.results.forEach(result => { - validateResult.push({ - message: result.message, - path: input.path, // RAML parser doesn't provide a path to the error. - }); - }); - return validateResult; - }); -} -function formatPayload(payload) { - if (typeof payload === 'object') { - return `#%RAML 1.0 Library\n${js_yaml_1.default.dump({ types: { tmpType: payload } })}`; - } - return payload; -} diff --git a/cjs/schema-parser/spectral-rule-v2.d.ts b/cjs/schema-parser/spectral-rule-v2.d.ts deleted file mode 100644 index d8b894057..000000000 --- a/cjs/schema-parser/spectral-rule-v2.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { RuleDefinition } from '@stoplight/spectral-core'; -import type { Parser } from '../parser'; -export declare function asyncApi2SchemaParserRule(parser: Parser): RuleDefinition; diff --git a/cjs/schema-parser/spectral-rule-v2.js b/cjs/schema-parser/spectral-rule-v2.js deleted file mode 100644 index d7e461a99..000000000 --- a/cjs/schema-parser/spectral-rule-v2.js +++ /dev/null @@ -1,81 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.asyncApi2SchemaParserRule = void 0; -const spectral_core_1 = require("@stoplight/spectral-core"); -const spectral_formats_1 = require("@stoplight/spectral-formats"); -const index_1 = require("./index"); -const utils_1 = require("../utils"); -function asyncApi2SchemaParserRule(parser) { - return { - description: 'Custom schema must be correctly formatted from the point of view of the used format.', - formats: [spectral_formats_1.aas2_0, spectral_formats_1.aas2_1, spectral_formats_1.aas2_2, spectral_formats_1.aas2_3, spectral_formats_1.aas2_4], - message: '{{error}}', - severity: 'error', - type: 'validation', - recommended: true, - given: [ - // operations - '$.channels.*.[publish,subscribe].message', - '$.channels.*.[publish,subscribe].message.oneOf.*', - '$.components.channels.*.[publish,subscribe].message', - '$.components.channels.*.[publish,subscribe].message.oneOf.*', - // messages - '$.components.messages.*', - ], - then: { - function: rulesetFunction(parser), - }, - }; -} -exports.asyncApi2SchemaParserRule = asyncApi2SchemaParserRule; -function rulesetFunction(parser) { - return (0, spectral_core_1.createRulesetFunction)({ - input: { - type: 'object', - properties: { - schemaFormat: { - type: 'string', - }, - payload: true, // any value - } - }, - options: null - }, (targetVal = {}, _, ctx) => __awaiter(this, void 0, void 0, function* () { - if (!targetVal.payload) { - return []; - } - const path = [...ctx.path, 'payload']; - const spec = ctx.document.data; - const schemaFormat = (0, index_1.getSchemaFormat)(targetVal.schemaFormat, spec.asyncapi); - const defaultSchemaFormat = (0, index_1.getDefaultSchemaFormat)(spec.asyncapi); - const asyncapi = (0, utils_1.createDetailedAsyncAPI)(ctx.document.data, spec); - const input = { - asyncapi, - data: targetVal.payload, - meta: {}, - path, - schemaFormat, - defaultSchemaFormat, - }; - try { - return yield (0, index_1.validateSchema)(parser, input); - } - catch (err) { - return [ - { - message: `Error thrown during schema validation, name: ${err.name}, message: ${err.message}, stack: ${err.stack}`, - path, - } - ]; - } - })); -} diff --git a/cjs/spec-types/index.d.ts b/cjs/spec-types/index.d.ts deleted file mode 100644 index ea1e81c97..000000000 --- a/cjs/spec-types/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * as v2 from './v2'; diff --git a/cjs/spec-types/index.js b/cjs/spec-types/index.js deleted file mode 100644 index 623b68434..000000000 --- a/cjs/spec-types/index.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.v2 = void 0; -exports.v2 = __importStar(require("./v2")); diff --git a/cjs/spec-types/v2.d.ts b/cjs/spec-types/v2.d.ts deleted file mode 100644 index 7c5c379cc..000000000 --- a/cjs/spec-types/v2.d.ts +++ /dev/null @@ -1,362 +0,0 @@ -import type { JSONSchema7Version, JSONSchema7TypeName, JSONSchema7Type } from 'json-schema'; -export declare type AsyncAPIVersion = string; -export declare type Identifier = string; -export declare type DefaultContentType = string; -export interface AsyncAPIObject extends SpecificationExtensions { - asyncapi: AsyncAPIVersion; - id?: Identifier; - info: InfoObject; - defaultContentType?: DefaultContentType; - servers?: ServersObject; - channels: ChannelsObject; - components?: ComponentsObject; - tags?: TagsObject; - externalDocs?: ExternalDocumentationObject; -} -export interface InfoObject extends SpecificationExtensions { - title: string; - version: string; - description?: string; - termsOfService?: string; - contact?: ContactObject; - license?: LicenseObject; -} -export interface ContactObject extends SpecificationExtensions { - name?: string; - url?: string; - email?: string; -} -export interface LicenseObject extends SpecificationExtensions { - name: string; - url?: string; -} -export declare type ServersObject = Record; -export interface ServerObject extends SpecificationExtensions { - url: string; - protocol: string; - protocolVersion?: string; - description?: string; - variables?: Record; - security?: Array; - bindings?: ServerBindingsObject | ReferenceObject; -} -export interface ServerVariableObject extends SpecificationExtensions { - enum?: Array; - default?: string; - description?: string; - examples?: Array; -} -export interface ServerBindingsObject extends SpecificationExtensions { - http?: Binding; - ws?: Binding; - kafka?: Binding; - anypointmq?: Binding; - amqp?: Binding; - amqp1?: Binding; - mqtt?: Binding; - mqtt5?: Binding; - nats?: Binding; - jms?: Binding; - sns?: Binding; - sqs?: Binding; - stomp?: Binding; - redis?: Binding; - mercure?: Binding; - ibmmq?: Binding; -} -export declare type ChannelsObject = Record; -export interface ChannelObject extends SpecificationExtensions { - description?: string; - servers?: Array; - subscribe?: OperationObject; - publish?: OperationObject; - parameters?: ParametersObject; - bindings?: ChannelBindingsObject | ReferenceObject; -} -export interface ChannelBindingsObject extends SpecificationExtensions { - http?: Binding; - ws?: Binding; - kafka?: Binding; - anypointmq?: Binding; - amqp?: Binding; - amqp1?: Binding; - mqtt?: Binding; - mqtt5?: Binding; - nats?: Binding; - jms?: Binding; - sns?: Binding; - sqs?: Binding; - stomp?: Binding; - redis?: Binding; - mercure?: Binding; - ibmmq?: Binding; -} -export interface OperationObject extends OperationTraitObject, SpecificationExtensions { - message?: MessageObject | ReferenceObject | { - oneOf: Array; - }; - traits?: Array; -} -export interface OperationTraitObject extends SpecificationExtensions { - operationId?: string; - summary?: string; - description?: string; - security?: Array; - tags?: TagsObject; - externalDocs?: ExternalDocumentationObject; - bindings?: OperationBindingsObject | ReferenceObject; -} -export interface OperationBindingsObject extends SpecificationExtensions { - http?: Binding; - ws?: Binding; - kafka?: Binding; - anypointmq?: Binding; - amqp?: Binding; - amqp1?: Binding; - mqtt?: Binding; - mqtt5?: Binding; - nats?: Binding; - jms?: Binding; - sns?: Binding; - sqs?: Binding; - stomp?: Binding; - redis?: Binding; - mercure?: Binding; - ibmmq?: Binding; -} -export declare type ParametersObject = Record; -export interface ParameterObject extends SpecificationExtensions { - description?: string; - schema?: SchemaObject; - location?: string; -} -export interface MessageObject extends MessageTraitObject, SpecificationExtensions { - payload?: any; - traits?: Array; -} -export interface MessageTraitObject extends SpecificationExtensions { - messageId?: string; - headers?: SchemaObject; - correlationId?: CorrelationIDObject | ReferenceObject; - schemaFormat?: string; - contentType?: string; - name?: string; - title?: string; - summary?: string; - description?: string; - tags?: TagsObject; - externalDocs?: ExternalDocumentationObject; - bindings?: MessageBindingsObject | ReferenceObject; - examples?: Array; -} -export interface MessageExampleObject extends SpecificationExtensions { - name?: string; - summary?: string; - headers?: Record; - payload?: any; -} -export interface MessageBindingsObject extends SpecificationExtensions { - http?: Binding; - ws?: Binding; - kafka?: Binding; - anypointmq?: Binding; - amqp?: Binding; - amqp1?: Binding; - mqtt?: Binding; - mqtt5?: Binding; - nats?: Binding; - jms?: Binding; - sns?: Binding; - sqs?: Binding; - stomp?: Binding; - redis?: Binding; - mercure?: Binding; - ibmmq?: Binding; -} -export declare type TagsObject = Array; -export interface TagObject extends SpecificationExtensions { - name: string; - description?: string; - externalDocs?: ExternalDocumentationObject; -} -export interface ExternalDocumentationObject extends SpecificationExtensions { - url: string; - description?: string; -} -export interface ComponentsObject extends SpecificationExtensions { - channels?: Record; - servers?: Record; - schemas?: Record; - messages?: Record; - securitySchemes?: Record; - parameters?: Record; - serverVariables?: Record; - correlationIds?: Record; - operationTraits?: Record; - messageTraits?: Record; - serverBindings?: Record; - channelBindings?: Record; - operationBindings?: Record; - messageBindings?: Record; -} -export declare type SchemaObject = AsyncAPISchemaObject | ReferenceObject; -export declare type AsyncAPISchemaObject = AsyncAPISchemaDefinition | boolean; -export interface AsyncAPISchemaDefinition extends SpecificationExtensions { - $id?: string; - $schema?: JSONSchema7Version; - $comment?: string; - type?: JSONSchema7TypeName | JSONSchema7TypeName[]; - enum?: JSONSchema7Type[]; - const?: JSONSchema7Type; - multipleOf?: number; - maximum?: number; - exclusiveMaximum?: number; - minimum?: number; - exclusiveMinimum?: number; - maxLength?: number; - minLength?: number; - pattern?: string; - items?: AsyncAPISchemaObject | AsyncAPISchemaObject[]; - additionalItems?: AsyncAPISchemaObject; - maxItems?: number; - minItems?: number; - uniqueItems?: boolean; - contains?: AsyncAPISchemaObject; - maxProperties?: number; - minProperties?: number; - required?: string[]; - properties?: { - [key: string]: AsyncAPISchemaObject; - }; - patternProperties?: { - [key: string]: AsyncAPISchemaObject; - }; - additionalProperties?: AsyncAPISchemaObject; - dependencies?: { - [key: string]: AsyncAPISchemaObject | string[]; - }; - propertyNames?: AsyncAPISchemaObject; - if?: AsyncAPISchemaObject; - then?: AsyncAPISchemaObject; - else?: AsyncAPISchemaObject; - allOf?: AsyncAPISchemaObject[]; - anyOf?: AsyncAPISchemaObject[]; - oneOf?: AsyncAPISchemaObject[]; - not?: AsyncAPISchemaObject; - format?: string; - contentMediaType?: string; - contentEncoding?: string; - definitions?: { - [key: string]: AsyncAPISchemaObject; - }; - title?: string; - description?: string; - default?: JSONSchema7Type; - readOnly?: boolean; - writeOnly?: boolean; - examples?: Array; - discriminator?: string; - externalDocs?: ExternalDocumentationObject; - deprecated?: boolean; - [keyword: string]: any; -} -export interface SecuritySchemeObject extends SpecificationExtensions { - type: SecuritySchemeType; - description?: string; - name?: string; - in?: 'user' | 'password' | 'query' | 'header' | 'cookie'; - scheme?: string; - bearerFormat?: string; - flows?: OAuthFlowsObject; - openIdConnectUrl?: string; -} -export declare type SecuritySchemeType = 'userPassword' | 'apiKey' | 'X509' | 'symmetricEncryption' | 'asymmetricEncryption' | 'httpApiKey' | 'http' | 'oauth2' | 'openIdConnect' | 'plain' | 'scramSha256' | 'scramSha512' | 'gssapi'; -export declare type SecuritySchemaLocation = 'user' | 'password' | 'query' | 'header' | 'header' | 'cookie'; -export interface SecuritySchemeObjectBase extends SpecificationExtensions { - description?: string; -} -export interface SecuritySchemeObjectUserPassword extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'userPassword'; -} -export interface SecuritySchemeObjectApiKey extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'apiKey'; - in: 'user' | 'password'; -} -export interface SecuritySchemeObjectX509 extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'X509'; -} -export interface SecuritySchemeObjectSymetricEncryption extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'symmetricEncryption'; -} -export interface SecuritySchemeObjectAsymetricEncryption extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'asymmetricEncryption'; -} -export interface SecuritySchemeObjectHttpApiKey extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'httpApiKey'; - name: string; - in: 'query' | 'header' | 'cookie'; -} -export interface SecuritySchemeObjectHttp extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'http'; - scheme: string; - bearerFormat?: string; -} -export interface SecuritySchemeObjectOauth2 extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'oauth2'; - flows: OAuthFlowsObject; -} -export interface SecuritySchemeObjectOpenIdConnect extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'openIdConnect'; - openIdConnectUrl: string; -} -export interface SecuritySchemeObjectPlain extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'plain'; -} -export interface SecuritySchemeObjectScramSha256 extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'scramSha256'; -} -export interface SecuritySchemeObjectScramSha512 extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'scramSha512'; -} -export interface SecuritySchemeObjectGssapi extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'gssapi'; -} -export interface OAuthFlowsObject extends SpecificationExtensions { - implicit?: OAuthFlowObjectImplicit; - password?: OAuthFlowObjectPassword; - clientCredentials?: OAuthFlowObjectClientCredentials; - authorizationCode?: OAuthFlowObjectAuthorizationCode; -} -export declare type OAuthFlowObject = OAuthFlowObjectImplicit & OAuthFlowObjectPassword & OAuthFlowObjectClientCredentials & OAuthFlowObjectAuthorizationCode; -export interface OAuthFlowObjectBase extends SpecificationExtensions { - refreshUrl?: string; - scopes: Record; -} -export interface OAuthFlowObjectImplicit extends OAuthFlowObjectBase, SpecificationExtensions { - authorizationUrl: string; -} -export interface OAuthFlowObjectPassword extends OAuthFlowObjectBase, SpecificationExtensions { - tokenUrl: string; -} -export interface OAuthFlowObjectClientCredentials extends OAuthFlowObjectBase, SpecificationExtensions { - tokenUrl: string; -} -export interface OAuthFlowObjectAuthorizationCode extends OAuthFlowObjectBase, SpecificationExtensions { - authorizationUrl: string; - tokenUrl: string; -} -export declare type SecurityRequirementObject = Record>; -export interface CorrelationIDObject extends SpecificationExtensions { - location: string; - description?: string; -} -export interface Binding { - bindingVersion?: string; -} -export interface SpecificationExtensions { - [extension: `x-${string}`]: SpecificationExtension; -} -export declare type SpecificationExtension = T; -export interface ReferenceObject { - $ref: string; -} diff --git a/cjs/spec-types/v2.js b/cjs/spec-types/v2.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/spec-types/v2.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/spectral.d.ts b/cjs/spectral.d.ts deleted file mode 100644 index 8b7d9ec12..000000000 --- a/cjs/spectral.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { Spectral } from '@stoplight/spectral-core'; -import type { Parser, ParserOptions } from './parser'; -export declare function createSpectral(parser: Parser, options?: ParserOptions): Spectral; diff --git a/cjs/spectral.js b/cjs/spectral.js deleted file mode 100644 index 13eece70d..000000000 --- a/cjs/spectral.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createSpectral = void 0; -const spectral_core_1 = require("@stoplight/spectral-core"); -const asyncapi_1 = __importDefault(require("@stoplight/spectral-rulesets/dist/asyncapi")); -const resolver_1 = require("./resolver"); -const spectral_rule_v2_1 = require("./schema-parser/spectral-rule-v2"); -const constants_1 = require("./constants"); -const utils_1 = require("./utils"); -function createSpectral(parser, options = {}) { - var _a; - const spectral = new spectral_core_1.Spectral({ resolver: (0, resolver_1.createResolver)((_a = options.__unstable) === null || _a === void 0 ? void 0 : _a.resolver) }); - const ruleset = configureRuleset(parser); - spectral.setRuleset(ruleset); - return spectral; -} -exports.createSpectral = createSpectral; -function configureRuleset(parser) { - return { - extends: [asyncapi_1.default], - rules: { - 'asyncapi-is-asyncapi': asyncApi2IsAsyncApi(), - 'asyncapi-schemas-v2': (0, spectral_rule_v2_1.asyncApi2SchemaParserRule)(parser), - // operationId is an optional field - 'asyncapi-operation-operationId': 'warn', - // We do not use these rules from the official ruleset due to the fact - // that the given rules validate only AsyncAPI Schemas and prevent defining schemas in other formats - 'asyncapi-payload-unsupported-schemaFormat': 'off', - 'asyncapi-payload': 'off', - }, - }; -} -function asyncApi2IsAsyncApi() { - return { - description: 'The input must be a document with a supported version of AsyncAPI.', - formats: [() => true], - message: '{{error}}', - severity: 'error', - type: 'validation', - recommended: true, - given: '$', - then: { - function: (0, spectral_core_1.createRulesetFunction)({ - input: null, - options: null, - }, (targetVal) => { - if (!(0, utils_1.isObject)(targetVal) || typeof targetVal.asyncapi !== 'string') { - return [ - { - message: 'This is not an AsyncAPI document. The "asyncapi" field as string is missing.', - path: [], - } - ]; - } - else if (!constants_1.specVersions.includes(targetVal.asyncapi)) { - return [ - { - message: `Version "${targetVal.asyncapi}" is not supported. Please use "${constants_1.specVersions[constants_1.specVersions.length - 1]}" (latest) version of the specification.`, - path: [], - } - ]; - } - }), - }, - }; -} diff --git a/cjs/stringify.d.ts b/cjs/stringify.d.ts deleted file mode 100644 index 88e0df5c1..000000000 --- a/cjs/stringify.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AsyncAPIDocumentInterface } from './models'; -export interface StringifyOptions { - space?: string | number; -} -export declare function stringify(document: unknown, options?: StringifyOptions): string | undefined; -export declare function unstringify(document: unknown): AsyncAPIDocumentInterface | undefined; -export declare function copy(data: Record): any; -export declare function refReplacer(): (this: unknown, field: string, value: unknown) => unknown; -export declare function traverseStringifiedData(parent: any, field: string | undefined, root: any, objToPath: Map, pathToObj: Map): void; diff --git a/cjs/stringify.js b/cjs/stringify.js deleted file mode 100644 index b8cdbf61a..000000000 --- a/cjs/stringify.js +++ /dev/null @@ -1,105 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.traverseStringifiedData = exports.refReplacer = exports.copy = exports.unstringify = exports.stringify = void 0; -const document_1 = require("./document"); -const utils_1 = require("./utils"); -const constants_1 = require("./constants"); -function stringify(document, options = {}) { - if ((0, document_1.isAsyncAPIDocument)(document)) { - document = document.json(); - } - else if ((0, document_1.isParsedDocument)(document)) { - if ((0, document_1.isStringifiedDocument)(document)) { - return JSON.stringify(document); - } - } - else { - return; - } - return JSON.stringify(Object.assign(Object.assign({}, document), { [String(constants_1.xParserSpecStringified)]: true }), refReplacer(), options.space || 2); -} -exports.stringify = stringify; -function unstringify(document) { - let parsed = document; - if (typeof document === 'string') { - try { - parsed = JSON.parse(document); - } - catch (_) { - return; - } - } - if (!(0, document_1.isStringifiedDocument)(parsed)) { - return; - } - // shall copy of whole JSON - parsed = Object.assign({}, parsed); - // remove `x-parser-spec-stringified` extension - delete parsed[String(constants_1.xParserSpecStringified)]; - traverseStringifiedData(document, undefined, document, new Map(), new Map()); - return (0, document_1.createAsyncAPIDocument)((0, utils_1.createDetailedAsyncAPI)(document, parsed)); -} -exports.unstringify = unstringify; -function copy(data) { - const stringifiedData = JSON.stringify(data, refReplacer()); - const unstringifiedData = JSON.parse(stringifiedData); - traverseStringifiedData(unstringifiedData, undefined, unstringifiedData, new Map(), new Map()); - return unstringifiedData; -} -exports.copy = copy; -function refReplacer() { - const modelPaths = new Map(); - const paths = new Map(); - let init = null; - return function (field, value) { - // `this` points to parent object of given value - some object or array - const pathPart = modelPaths.get(this) + (Array.isArray(this) ? `[${field}]` : `.${field}`); - // check if `objOrPath` has "reference" - const isComplex = value === Object(value); - if (isComplex) { - modelPaths.set(value, pathPart); - } - const savedPath = paths.get(value) || ''; - if (!savedPath && isComplex) { - const valuePath = pathPart.replace(/undefined\.\.?/, ''); - paths.set(value, valuePath); - } - const prefixPath = savedPath[0] === '[' ? '$' : '$.'; - let val = savedPath ? `$ref:${prefixPath}${savedPath}` : value; - if (init === null) { - init = value; - } - else if (val === init) { - val = '$ref:$'; - } - return val; - }; -} -exports.refReplacer = refReplacer; -const refRoot = '$ref:$'; -function traverseStringifiedData(parent, field, root, objToPath, pathToObj) { - let objOrPath = parent; - let path = refRoot; - if (field !== undefined) { - // here can be string with `$ref` prefix or normal value - objOrPath = parent[String(field)]; - const concatenatedPath = field ? `.${field}` : ''; - path = objToPath.get(parent) + (Array.isArray(parent) ? `[${field}]` : concatenatedPath); - } - objToPath.set(objOrPath, path); - pathToObj.set(path, objOrPath); - const ref = pathToObj.get(objOrPath); - if (ref) { - parent[String(field)] = ref; - } - if (objOrPath === refRoot || ref === refRoot) { - parent[String(field)] = root; - } - // traverse all keys, only if object is array/object - if (objOrPath === Object(objOrPath)) { - for (const f in objOrPath) { - traverseStringifiedData(objOrPath, f, root, objToPath, pathToObj); - } - } -} -exports.traverseStringifiedData = traverseStringifiedData; diff --git a/cjs/types.d.ts b/cjs/types.d.ts deleted file mode 100644 index 5924d5951..000000000 --- a/cjs/types.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type { ISpectralDiagnostic, IFunctionResult } from '@stoplight/spectral-core'; -import type { AsyncAPIDocumentInterface } from './models'; -import type { v2 } from './spec-types'; -export declare type MaybeAsyncAPI = { - asyncapi: string; -} & Record; -export interface AsyncAPISemver { - version: string; - major: number; - minor: number; - patch: number; - rc?: number; -} -export interface DetailedAsyncAPI { - source: string | Record; - parsed: AsyncAPIObject; - semver: AsyncAPISemver; -} -export declare type Input = string | MaybeAsyncAPI | AsyncAPIDocumentInterface; -export declare type Diagnostic = ISpectralDiagnostic; -export declare type SchemaValidateResult = IFunctionResult; -export declare type AsyncAPIObject = v2.AsyncAPIObject; -export declare type AsyncAPISchema = v2.AsyncAPISchemaObject; diff --git a/cjs/types.js b/cjs/types.js deleted file mode 100644 index c8ad2e549..000000000 --- a/cjs/types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/cjs/utils.d.ts b/cjs/utils.d.ts deleted file mode 100644 index 6460535b6..000000000 --- a/cjs/utils.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type { ISpectralDiagnostic } from '@stoplight/spectral-core'; -import type { BaseModel } from './models'; -import type { AsyncAPISemver, AsyncAPIObject, DetailedAsyncAPI, MaybeAsyncAPI } from './types'; -export declare function createDetailedAsyncAPI(source: string | Record, parsed: AsyncAPIObject): DetailedAsyncAPI; -export declare function getSemver(version: string): AsyncAPISemver; -export declare function normalizeInput(asyncapi: string | MaybeAsyncAPI): string; -export declare function unfreezeObject(data: unknown): any; -export declare function hasErrorDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean; -export declare function hasWarningDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean; -export declare function hasInfoDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean; -export declare function hasHintDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean; -export declare function setExtension(id: string, value: any, model: BaseModel): void; -export declare function mergePatch(origin: unknown, patch: unknown): T; -export declare function isObject(value: unknown): value is Record; -export declare function hasRef(value: unknown): value is { - $ref: string; -}; -export declare function tilde(str: string): string; -export declare function untilde(str: string): string; -export declare function retrievePossibleRef(data: any, pathOfData: string, spec?: any): any; diff --git a/cjs/utils.js b/cjs/utils.js deleted file mode 100644 index a6de5d52a..000000000 --- a/cjs/utils.js +++ /dev/null @@ -1,138 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.retrievePossibleRef = exports.untilde = exports.tilde = exports.hasRef = exports.isObject = exports.mergePatch = exports.setExtension = exports.hasHintDiagnostic = exports.hasInfoDiagnostic = exports.hasWarningDiagnostic = exports.hasErrorDiagnostic = exports.unfreezeObject = exports.normalizeInput = exports.getSemver = exports.createDetailedAsyncAPI = void 0; -const types_1 = require("@stoplight/types"); -function createDetailedAsyncAPI(source, parsed) { - return { - source, - parsed, - semver: getSemver(parsed.asyncapi), - }; -} -exports.createDetailedAsyncAPI = createDetailedAsyncAPI; -function getSemver(version) { - const [major, minor, patchWithRc] = version.split('.'); - const [patch, rc] = patchWithRc.split('-rc'); - return { - version, - major: Number(major), - minor: Number(minor), - patch: Number(patch), - rc: rc && Number(rc), - }; -} -exports.getSemver = getSemver; -function normalizeInput(asyncapi) { - if (typeof asyncapi === 'string') { - return asyncapi; - } - return JSON.stringify(asyncapi, undefined, 2); -} -exports.normalizeInput = normalizeInput; -function unfreezeObject(data) { - return JSON.parse(JSON.stringify(data)); -} -exports.unfreezeObject = unfreezeObject; -function hasErrorDiagnostic(diagnostics) { - return diagnostics.some(diagnostic => diagnostic.severity === types_1.DiagnosticSeverity.Error); -} -exports.hasErrorDiagnostic = hasErrorDiagnostic; -function hasWarningDiagnostic(diagnostics) { - return diagnostics.some(diagnostic => diagnostic.severity === types_1.DiagnosticSeverity.Warning); -} -exports.hasWarningDiagnostic = hasWarningDiagnostic; -function hasInfoDiagnostic(diagnostics) { - return diagnostics.some(diagnostic => diagnostic.severity === types_1.DiagnosticSeverity.Information); -} -exports.hasInfoDiagnostic = hasInfoDiagnostic; -function hasHintDiagnostic(diagnostics) { - return diagnostics.some(diagnostic => diagnostic.severity === types_1.DiagnosticSeverity.Hint); -} -exports.hasHintDiagnostic = hasHintDiagnostic; -function setExtension(id, value, model) { - id = id.startsWith('x-') ? id : `x-${id}`; - const data = model.json(); - data[id] = value; -} -exports.setExtension = setExtension; -function mergePatch(origin, patch) { - // If the patch is not an object, it replaces the origin. - if (!isObject(patch)) { - return patch; - } - const result = !isObject(origin) - ? {} // Non objects are being replaced. - : Object.assign({}, origin); // Make sure we never modify the origin. - Object.keys(patch).forEach(key => { - const patchVal = patch[key]; - if (patchVal === null) { - delete result[key]; - } - else { - result[key] = mergePatch(result[key], patchVal); - } - }); - return result; -} -exports.mergePatch = mergePatch; -function isObject(value) { - return Boolean(value) && typeof value === 'object' && Array.isArray(value) === false; -} -exports.isObject = isObject; -function hasRef(value) { - return isObject(value) && '$ref' in value && typeof value.$ref === 'string'; -} -exports.hasRef = hasRef; -function tilde(str) { - return str.replace(/[~/]{1}/g, (sub) => { - switch (sub) { - case '/': return '~1'; - case '~': return '~0'; - } - return sub; - }); -} -exports.tilde = tilde; -function untilde(str) { - if (!str.includes('~')) - return str; - return str.replace(/~[01]/g, (sub) => { - switch (sub) { - case '~1': return '/'; - case '~0': return '~'; - } - return sub; - }); -} -exports.untilde = untilde; -function retrievePossibleRef(data, pathOfData, spec = {}) { - if (!hasRef(data)) { - return data; - } - const refPath = serializePath(data.$ref); - if (pathOfData.startsWith(refPath)) { // starts by given path - return retrieveDeepData(spec, splitPath(refPath)) || data; - } - else if (pathOfData.includes(refPath)) { // circular path in substring of path - const substringPath = pathOfData.split(refPath)[0]; - return retrieveDeepData(spec, splitPath(`${substringPath}${refPath}`)) || data; - } - return data; -} -exports.retrievePossibleRef = retrievePossibleRef; -function retrieveDeepData(value, path) { - let index = 0; - const length = path.length; - while (typeof value === 'object' && value && index < length) { - value = value[path[index++]]; - } - return index === length ? value : undefined; -} -function serializePath(path) { - if (path.startsWith('#')) - return path.substring(1); - return path; -} -function splitPath(path) { - return path.split('/').filter(Boolean).map(untilde); -} diff --git a/cjs/validate.d.ts b/cjs/validate.d.ts deleted file mode 100644 index bd3d1ec0c..000000000 --- a/cjs/validate.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { Spectral, IRunOpts } from '@stoplight/spectral-core'; -import type { Input, Diagnostic } from './types'; -export interface ValidateOptions extends IRunOpts { - source?: string; - allowedSeverity?: { - warning?: boolean; - info?: boolean; - hint?: boolean; - }; -} -export interface ValidateOutput { - validated: unknown; - diagnostics: Diagnostic[]; -} -export declare function validate(spectral: Spectral, asyncapi: Input, options?: ValidateOptions): Promise; diff --git a/cjs/validate.js b/cjs/validate.js deleted file mode 100644 index 8df68a8ff..000000000 --- a/cjs/validate.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validate = void 0; -const spectral_core_1 = require("@stoplight/spectral-core"); -const spectral_parsers_1 = require("@stoplight/spectral-parsers"); -const utils_1 = require("./utils"); -const defaultOptions = { - allowedSeverity: { - warning: true, - info: true, - hint: true, - } -}; -function validate(spectral, asyncapi, options = {}) { - return __awaiter(this, void 0, void 0, function* () { - const { allowedSeverity } = (0, utils_1.mergePatch)(defaultOptions, options); - const stringifiedDocument = (0, utils_1.normalizeInput)(asyncapi); - const document = new spectral_core_1.Document(stringifiedDocument, spectral_parsers_1.Yaml, options.source); - // eslint-disable-next-line prefer-const - let { resolved: validated, results } = yield spectral.runWithResolved(document); - if ((0, utils_1.hasErrorDiagnostic)(results) || - (!(allowedSeverity === null || allowedSeverity === void 0 ? void 0 : allowedSeverity.warning) && (0, utils_1.hasWarningDiagnostic)(results)) || - (!(allowedSeverity === null || allowedSeverity === void 0 ? void 0 : allowedSeverity.info) && (0, utils_1.hasInfoDiagnostic)(results)) || - (!(allowedSeverity === null || allowedSeverity === void 0 ? void 0 : allowedSeverity.hint) && (0, utils_1.hasHintDiagnostic)(results))) { - validated = undefined; - } - return { validated, diagnostics: results }; - }); -} -exports.validate = validate; diff --git a/esm/constants.d.ts b/esm/constants.d.ts deleted file mode 100644 index 483ae4850..000000000 --- a/esm/constants.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export declare const xParserSpecParsed = "x-parser-spec-parsed"; -export declare const xParserSpecStringified = "x-parser-spec-stringified"; -export declare const xParserMessageName = "x-parser-message-name"; -export declare const xParserMessageParsed = "x-parser-message-parsed"; -export declare const xParserSchemaId = "x-parser-schema-id"; -export declare const xParserOriginalSchemaFormat = "x-parser-original-schema-format"; -export declare const xParserOriginalPayload = "x-parser-original-payload"; -export declare const xParserOriginalTraits = "x-parser-original-traits"; -export declare const xParserCircular = "x-parser-circular"; -export declare const xParserCircularProps = "x-parser-circular-props"; -export declare const EXTENSION_REGEX: RegExp; -export declare const specVersions: string[]; -export declare const lastVersion: string; diff --git a/esm/constants.js b/esm/constants.js deleted file mode 100644 index c74f2fd84..000000000 --- a/esm/constants.js +++ /dev/null @@ -1,16 +0,0 @@ -// @ts-ignore -import specs from '@asyncapi/specs'; -export const xParserSpecParsed = 'x-parser-spec-parsed'; -export const xParserSpecStringified = 'x-parser-spec-stringified'; -export const xParserMessageName = 'x-parser-message-name'; -export const xParserMessageParsed = 'x-parser-message-parsed'; -export const xParserSchemaId = 'x-parser-schema-id'; -export const xParserOriginalSchemaFormat = 'x-parser-original-schema-format'; -export const xParserOriginalPayload = 'x-parser-original-payload'; -export const xParserOriginalTraits = 'x-parser-original-traits'; -export const xParserCircular = 'x-parser-circular'; -export const xParserCircularProps = 'x-parser-circular-props'; -export const EXTENSION_REGEX = /^x-[\w\d.\-_]+$/; -// Only >=2.0.0 versions are supported -export const specVersions = Object.keys(specs).filter((version) => !['1.0.0', '1.1.0', '1.2.0', '2.0.0-rc1', '2.0.0-rc2'].includes(version)); -export const lastVersion = specVersions[specVersions.length - 1]; diff --git a/esm/custom-operations/anonymous-naming.d.ts b/esm/custom-operations/anonymous-naming.d.ts deleted file mode 100644 index 25722cee7..000000000 --- a/esm/custom-operations/anonymous-naming.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { AsyncAPIDocumentInterface } from '../models'; -export declare function anonymousNaming(document: AsyncAPIDocumentInterface): void; diff --git a/esm/custom-operations/anonymous-naming.js b/esm/custom-operations/anonymous-naming.js deleted file mode 100644 index b27051e68..000000000 --- a/esm/custom-operations/anonymous-naming.js +++ /dev/null @@ -1,59 +0,0 @@ -import { xParserMessageName, xParserSchemaId } from '../constants'; -import { traverseAsyncApiDocument } from '../iterator'; -import { setExtension } from '../utils'; -export function anonymousNaming(document) { - assignNameToComponentMessages(document); - assignNameToAnonymousMessages(document); - assignUidToComponentSchemas(document); - assignUidToComponentParameterSchemas(document); - assignUidToChannelParameterSchemas(document); - assignUidToAnonymousSchemas(document); -} -function assignNameToComponentMessages(document) { - document.components().messages().forEach(message => { - if (message.name() === undefined) { - setExtension(xParserMessageName, message.id(), message); - } - }); -} -function assignNameToAnonymousMessages(document) { - let anonymousMessageCounter = 0; - document.messages().forEach(message => { - var _a; - if (message.name() === undefined && ((_a = message.extensions().get(xParserMessageName)) === null || _a === void 0 ? void 0 : _a.value()) === undefined) { - setExtension(xParserMessageName, ``, message); - } - }); -} -function assignUidToComponentParameterSchemas(document) { - document.components().channelParameters().forEach(parameter => { - const schema = parameter.schema(); - if (schema && !schema.uid()) { - setExtension(xParserSchemaId, parameter.id(), schema); - } - }); -} -function assignUidToChannelParameterSchemas(document) { - document.channels().forEach(channel => { - channel.parameters().forEach(parameter => { - const schema = parameter.schema(); - if (schema && !schema.uid()) { - setExtension(xParserSchemaId, parameter.id(), schema); - } - }); - }); -} -function assignUidToComponentSchemas(document) { - document.components().schemas().forEach(schema => { - setExtension(xParserSchemaId, schema.uid(), schema); - }); -} -function assignUidToAnonymousSchemas(doc) { - let anonymousSchemaCounter = 0; - function callback(schema) { - if (!schema.uid()) { - setExtension(xParserSchemaId, ``, schema); - } - } - traverseAsyncApiDocument(doc, callback); -} diff --git a/esm/custom-operations/apply-traits.d.ts b/esm/custom-operations/apply-traits.d.ts deleted file mode 100644 index 1be880667..000000000 --- a/esm/custom-operations/apply-traits.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { v2 } from '../spec-types'; -export declare function applyTraitsV2(asyncapi: v2.AsyncAPIObject): void; -export declare function applyTraitsV3(asyncapi: v2.AsyncAPIObject): void; diff --git a/esm/custom-operations/apply-traits.js b/esm/custom-operations/apply-traits.js deleted file mode 100644 index 1a6f11b15..000000000 --- a/esm/custom-operations/apply-traits.js +++ /dev/null @@ -1,49 +0,0 @@ -import { JSONPath } from 'jsonpath-plus'; -import { mergePatch } from '../utils'; -const v2TraitPaths = [ - // operations - '$.channels.*.[publish,subscribe]', - '$.components.channels.*.[publish,subscribe]', - // messages - '$.channels.*.[publish,subscribe].message', - '$.channels.*.[publish,subscribe].message.oneOf.*', - '$.components.channels.*.[publish,subscribe].message', - '$.components.channels.*.[publish,subscribe].message.oneOf.*', - '$.components.messages.*', -]; -export function applyTraitsV2(asyncapi) { - applyAllTraits(asyncapi, v2TraitPaths); -} -const v3TraitPaths = [ - // operations - '$.channels.*.[publish,subscribe]', - '$.components.channels.*.[publish,subscribe]', - // messages - '$.channels.*.[publish,subscribe].message', - '$.channels.*.[publish,subscribe].message.oneOf.*', - '$.components.channels.*.[publish,subscribe].message', - '$.components.channels.*.[publish,subscribe].message.oneOf.*', - '$.components.messages.*', -]; -export function applyTraitsV3(asyncapi) { - applyAllTraits(asyncapi, v3TraitPaths); -} -function applyAllTraits(asyncapi, paths) { - paths.forEach(path => { - JSONPath({ - path, - json: asyncapi, - resultType: 'value', - callback(value) { applyTraits(value); }, - }); - }); -} -function applyTraits(value) { - if (Array.isArray(value.traits)) { - for (const trait of value.traits) { - for (const key in trait) { - value[String(key)] = mergePatch(value[String(key)], trait[String(key)]); - } - } - } -} diff --git a/esm/custom-operations/check-circular-refs.d.ts b/esm/custom-operations/check-circular-refs.d.ts deleted file mode 100644 index b1189cdac..000000000 --- a/esm/custom-operations/check-circular-refs.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { AsyncAPIDocumentInterface } from '../models'; -export declare function checkCircularRefs(document: AsyncAPIDocumentInterface): void; diff --git a/esm/custom-operations/check-circular-refs.js b/esm/custom-operations/check-circular-refs.js deleted file mode 100644 index 148a5f847..000000000 --- a/esm/custom-operations/check-circular-refs.js +++ /dev/null @@ -1,20 +0,0 @@ -import { setExtension } from '../utils'; -import { xParserCircular } from '../constants'; -export function checkCircularRefs(document) { - if (hasInlineRef(document.json())) { - setExtension(xParserCircular, true, document); - } -} -function hasInlineRef(data) { - if (data && typeof data === 'object' && !Array.isArray(data)) { - if (Object.prototype.hasOwnProperty.call(data, '$ref')) { - return true; - } - for (const p in data) { - if (hasInlineRef(data[p])) { - return true; - } - } - } - return false; -} diff --git a/esm/custom-operations/index.d.ts b/esm/custom-operations/index.d.ts deleted file mode 100644 index 5a984a9f4..000000000 --- a/esm/custom-operations/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { Parser } from '../parser'; -import type { ParseOptions } from '../parse'; -import type { AsyncAPIDocumentInterface } from '../models'; -import type { DetailedAsyncAPI } from '../types'; -export declare function customOperations(parser: Parser, document: AsyncAPIDocumentInterface, detailed: DetailedAsyncAPI, options: ParseOptions): Promise; diff --git a/esm/custom-operations/index.js b/esm/custom-operations/index.js deleted file mode 100644 index a83d1dd26..000000000 --- a/esm/custom-operations/index.js +++ /dev/null @@ -1,33 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -import { applyTraitsV2 } from './apply-traits'; -import { checkCircularRefs } from './check-circular-refs'; -import { parseSchemasV2 } from './parse-schema'; -import { anonymousNaming } from './anonymous-naming'; -export function customOperations(parser, document, detailed, options) { - return __awaiter(this, void 0, void 0, function* () { - switch (detailed.semver.major) { - case 2: return operationsV2(parser, document, detailed, options); - // case 3: return operationsV3(parser, document, detailed, options); - } - }); -} -function operationsV2(parser, document, detailed, options) { - return __awaiter(this, void 0, void 0, function* () { - checkCircularRefs(document); - anonymousNaming(document); - if (options.applyTraits) { - applyTraitsV2(detailed.parsed); - } - if (options.parseSchemas) { - yield parseSchemasV2(parser, detailed); - } - }); -} diff --git a/esm/custom-operations/parse-schema.d.ts b/esm/custom-operations/parse-schema.d.ts deleted file mode 100644 index 2bea575f6..000000000 --- a/esm/custom-operations/parse-schema.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Parser } from '../parser'; -import type { DetailedAsyncAPI } from '../types'; -export declare function parseSchemasV2(parser: Parser, detailed: DetailedAsyncAPI): Promise; diff --git a/esm/custom-operations/parse-schema.js b/esm/custom-operations/parse-schema.js deleted file mode 100644 index 5384c3030..000000000 --- a/esm/custom-operations/parse-schema.js +++ /dev/null @@ -1,75 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -import { JSONPath } from 'jsonpath-plus'; -import { xParserOriginalPayload } from '../constants'; -import { parseSchema, getSchemaFormat, getDefaultSchemaFormat } from '../schema-parser'; -const customSchemasPathsV2 = [ - // operations - '$.channels.*.[publish,subscribe].message', - '$.channels.*.[publish,subscribe].message.oneOf.*', - '$.components.channels.*.[publish,subscribe].message', - '$.components.channels.*.[publish,subscribe].message.oneOf.*', - // messages - '$.components.messages.*', -]; -export function parseSchemasV2(parser, detailed) { - return __awaiter(this, void 0, void 0, function* () { - const defaultSchemaFormat = getDefaultSchemaFormat(detailed.semver.version); - const parseItems = []; - const visited = new Set(); - customSchemasPathsV2.forEach(path => { - JSONPath({ - path, - json: detailed.parsed, - resultType: 'all', - callback(result) { - const value = result.value; - if (visited.has(value)) { - return; - } - visited.add(value); - const payload = value.payload; - if (!payload) { - return; - } - const schemaFormat = getSchemaFormat(value.schemaFormat, detailed.semver.version); - parseItems.push({ - input: { - asyncapi: detailed, - data: payload, - meta: { - message: value, - }, - path: [...splitPath(result.path), 'payload'], - schemaFormat, - defaultSchemaFormat, - }, - value, - }); - }, - }); - }); - return Promise.all(parseItems.map(item => parseSchemaV2(parser, item))); - }); -} -function parseSchemaV2(parser, item) { - return __awaiter(this, void 0, void 0, function* () { - const originalData = item.input.data; - const parsedData = item.value.payload = yield parseSchema(parser, item.input); - // save original payload only when data is different (returned by custom parsers) - if (originalData !== parsedData) { - item.value[xParserOriginalPayload] = originalData; - } - }); -} -function splitPath(path) { - // remove $[' from beginning and '] at the end and split by '][' - return path.slice(3).slice(0, -2).split('\'][\''); -} diff --git a/esm/document.d.ts b/esm/document.d.ts deleted file mode 100644 index 5707f70cf..000000000 --- a/esm/document.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { AsyncAPIDocumentInterface } from './models'; -import type { DetailedAsyncAPI } from './types'; -export declare function createAsyncAPIDocument(asyncapi: DetailedAsyncAPI): AsyncAPIDocumentInterface; -export declare function toAsyncAPIDocument(maybeDoc: unknown): AsyncAPIDocumentInterface | undefined; -export declare function isAsyncAPIDocument(maybeDoc: unknown): maybeDoc is AsyncAPIDocumentInterface; -export declare function isParsedDocument(maybeDoc: unknown): maybeDoc is Record; -export declare function isStringifiedDocument(maybeDoc: unknown): maybeDoc is Record; diff --git a/esm/document.js b/esm/document.js deleted file mode 100644 index 93e4b3e15..000000000 --- a/esm/document.js +++ /dev/null @@ -1,39 +0,0 @@ -import { AsyncAPIDocumentV2, AsyncAPIDocumentV3 } from './models'; -import { unstringify } from './stringify'; -import { createDetailedAsyncAPI } from './utils'; -import { xParserSpecParsed, xParserSpecStringified, } from './constants'; -export function createAsyncAPIDocument(asyncapi) { - switch (asyncapi.semver.major) { - case 2: - return new AsyncAPIDocumentV2(asyncapi.parsed, { asyncapi, pointer: '/' }); - // case 3: - // return new AsyncAPIDocumentV3(asyncapi.parsed, { asyncapi, pointer: '/' }); - default: - throw new Error(`Unsupported AsyncAPI version: ${asyncapi.semver.version}`); - } -} -export function toAsyncAPIDocument(maybeDoc) { - if (isAsyncAPIDocument(maybeDoc)) { - return maybeDoc; - } - if (!isParsedDocument(maybeDoc)) { - return; - } - return unstringify(maybeDoc) || createAsyncAPIDocument(createDetailedAsyncAPI(maybeDoc, maybeDoc)); -} -export function isAsyncAPIDocument(maybeDoc) { - return maybeDoc instanceof AsyncAPIDocumentV2 || maybeDoc instanceof AsyncAPIDocumentV3; -} -export function isParsedDocument(maybeDoc) { - if (typeof maybeDoc !== 'object' || maybeDoc === null) { - return false; - } - return Boolean(maybeDoc[xParserSpecParsed]); -} -export function isStringifiedDocument(maybeDoc) { - if (typeof maybeDoc !== 'object' || maybeDoc === null) { - return false; - } - return (Boolean(maybeDoc[xParserSpecParsed]) && - Boolean(maybeDoc[xParserSpecStringified])); -} diff --git a/esm/from.d.ts b/esm/from.d.ts deleted file mode 100644 index 8b3731a20..000000000 --- a/esm/from.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// -import { readFile } from 'fs/promises'; -import type { RequestInit } from 'node-fetch'; -import type { Parser } from './parser'; -import type { ParseOptions, ParseOutput } from './parse'; -import type { ValidateOptions } from './validate'; -import type { Diagnostic } from './types'; -interface FromResult { - parse: (options?: ParseOptions) => Promise; - validate: (options?: ValidateOptions) => Promise; -} -export declare function fromURL(parser: Parser, source: string, options?: RequestInit): FromResult; -export declare function fromFile(parser: Parser, source: string, options?: Parameters[1]): FromResult; -export {}; diff --git a/esm/from.js b/esm/from.js deleted file mode 100644 index a242f403b..000000000 --- a/esm/from.js +++ /dev/null @@ -1,65 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -import { readFile } from 'fs/promises'; -export function fromURL(parser, source, options) { - function fetchUrl() { - return __awaiter(this, void 0, void 0, function* () { - const fetchFn = yield getFetch(); - return (yield fetchFn(source, options)).text(); - }); - } - return { - parse(options = {}) { - return __awaiter(this, void 0, void 0, function* () { - const schema = yield fetchUrl(); - return parser.parse(schema, Object.assign(Object.assign({}, options), { source })); - }); - }, - validate(options = {}) { - return __awaiter(this, void 0, void 0, function* () { - const schema = yield fetchUrl(); - return parser.validate(schema, Object.assign(Object.assign({}, options), { source })); - }); - } - }; -} -export function fromFile(parser, source, options) { - function readFileFn() { - return __awaiter(this, void 0, void 0, function* () { - return (yield readFile(source, options)).toString(); - }); - } - return { - parse(options = {}) { - return __awaiter(this, void 0, void 0, function* () { - const schema = yield readFileFn(); - return parser.parse(schema, Object.assign(Object.assign({}, options), { source })); - }); - }, - validate(options = {}) { - return __awaiter(this, void 0, void 0, function* () { - const schema = yield readFileFn(); - return parser.validate(schema, Object.assign(Object.assign({}, options), { source })); - }); - } - }; -} -let __fetchFn; -function getFetch() { - return __awaiter(this, void 0, void 0, function* () { - if (__fetchFn) { - return __fetchFn; - } - if (typeof fetch === 'undefined') { - return __fetchFn = (yield import('node-fetch')).default; - } - return (__fetchFn = fetch); - }); -} diff --git a/esm/index.d.ts b/esm/index.d.ts deleted file mode 100644 index 59f3be0bb..000000000 --- a/esm/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Parser } from './parser'; -export * from './models'; -export { Parser }; -export { stringify, unstringify } from './stringify'; -export { fromURL, fromFile } from './from'; -export { AsyncAPIDocument as OldAsyncAPIDocument } from './old-api/asyncapi'; -export { convertToOldAPI } from './old-api/converter'; -export type { AsyncAPISemver, Input, Diagnostic, SchemaValidateResult } from './types'; -export type { ValidateOptions, ValidateOutput } from './validate'; -export type { ParseOptions, ParseOutput } from './parse'; -export type { StringifyOptions } from './stringify'; -export type { ValidateSchemaInput, ParseSchemaInput, SchemaParser } from './schema-parser'; -export default Parser; diff --git a/esm/index.js b/esm/index.js deleted file mode 100644 index 1d2a71185..000000000 --- a/esm/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import { Parser } from './parser'; -export * from './models'; -export { Parser }; -export { stringify, unstringify } from './stringify'; -export { fromURL, fromFile } from './from'; -export { AsyncAPIDocument as OldAsyncAPIDocument } from './old-api/asyncapi'; -export { convertToOldAPI } from './old-api/converter'; -export default Parser; diff --git a/esm/iterator.d.ts b/esm/iterator.d.ts deleted file mode 100644 index 627928ce4..000000000 --- a/esm/iterator.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import type { AsyncAPIDocumentInterface } from './models/asyncapi'; -import type { SchemaInterface } from './models/schema'; -/** - * The different kind of stages when crawling a schema. - */ -export declare enum SchemaIteratorCallbackType { - NEW_SCHEMA = "NEW_SCHEMA", - END_SCHEMA = "END_SCHEMA" -} -/** - * The different types of schemas you can iterate - */ -export declare enum SchemaTypesToIterate { - Parameters = "parameters", - Payloads = "payloads", - Headers = "headers", - Components = "components", - Objects = "objects", - Arrays = "arrays", - OneOfs = "oneOfs", - AllOfs = "allOfs", - AnyOfs = "anyOfs", - Nots = "nots", - PropertyNames = "propertyNames", - PatternProperties = "patternProperties", - Contains = "contains", - Ifs = "ifs", - Thenes = "thenes", - Elses = "elses", - Dependencies = "dependencies", - Definitions = "definitions" -} -export declare type TraverseOptions = { - callback: TraverseCallback; - schemaTypesToIterate: Array<`${SchemaTypesToIterate}`>; - seenSchemas: Set; -}; -export declare type TraverseCallback = (schema: SchemaInterface, propOrIndex: string | number | null, callbackType: SchemaIteratorCallbackType) => boolean | void; -/** - * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. - */ -export declare function traverseAsyncApiDocument(doc: AsyncAPIDocumentInterface, callback: TraverseCallback, schemaTypesToIterate?: Array<`${SchemaTypesToIterate}`>): void; diff --git a/esm/iterator.js b/esm/iterator.js deleted file mode 100644 index 97e19175d..000000000 --- a/esm/iterator.js +++ /dev/null @@ -1,224 +0,0 @@ -/** - * The different kind of stages when crawling a schema. - */ -export var SchemaIteratorCallbackType; -(function (SchemaIteratorCallbackType) { - SchemaIteratorCallbackType["NEW_SCHEMA"] = "NEW_SCHEMA"; - SchemaIteratorCallbackType["END_SCHEMA"] = "END_SCHEMA"; -})(SchemaIteratorCallbackType || (SchemaIteratorCallbackType = {})); -/** - * The different types of schemas you can iterate - */ -export var SchemaTypesToIterate; -(function (SchemaTypesToIterate) { - SchemaTypesToIterate["Parameters"] = "parameters"; - SchemaTypesToIterate["Payloads"] = "payloads"; - SchemaTypesToIterate["Headers"] = "headers"; - SchemaTypesToIterate["Components"] = "components"; - SchemaTypesToIterate["Objects"] = "objects"; - SchemaTypesToIterate["Arrays"] = "arrays"; - SchemaTypesToIterate["OneOfs"] = "oneOfs"; - SchemaTypesToIterate["AllOfs"] = "allOfs"; - SchemaTypesToIterate["AnyOfs"] = "anyOfs"; - SchemaTypesToIterate["Nots"] = "nots"; - SchemaTypesToIterate["PropertyNames"] = "propertyNames"; - SchemaTypesToIterate["PatternProperties"] = "patternProperties"; - SchemaTypesToIterate["Contains"] = "contains"; - SchemaTypesToIterate["Ifs"] = "ifs"; - SchemaTypesToIterate["Thenes"] = "thenes"; - SchemaTypesToIterate["Elses"] = "elses"; - SchemaTypesToIterate["Dependencies"] = "dependencies"; - SchemaTypesToIterate["Definitions"] = "definitions"; -})(SchemaTypesToIterate || (SchemaTypesToIterate = {})); -/** - * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. - */ -export function traverseAsyncApiDocument(doc, callback, schemaTypesToIterate = []) { - if (schemaTypesToIterate.length === 0) { - schemaTypesToIterate = Object.values(SchemaTypesToIterate); - } - const options = { callback, schemaTypesToIterate, seenSchemas: new Set() }; - if (!doc.channels().isEmpty()) { - doc.channels().all().forEach(channel => { - traverseChannel(channel, options); - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Components) && !doc.components().isEmpty()) { - const components = doc.components(); - Object.values(components.messages().all() || {}).forEach(message => { - traverseMessage(message, options); - }); - Object.values(components.schemas().all() || {}).forEach(schema => { - traverseSchema(schema, null, options); - }); - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Parameters)) { - Object.values(components.channelParameters().filterBy((param) => { return param.hasSchema(); })).forEach(parameter => { - traverseSchema(parameter.schema(), null, options); - }); - } - Object.values(components.messageTraits().all() || {}).forEach(messageTrait => { - traverseMessageTrait(messageTrait, options); - }); - } -} -/* eslint-disable sonarjs/cognitive-complexity */ -/** - * Traverse current schema and all nested schemas. - */ -function traverseSchema(schema, propOrIndex, options) { - if (!schema) - return; - const { schemaTypesToIterate, callback, seenSchemas } = options; - // handle circular references - const jsonSchema = schema.json(); - if (seenSchemas.has(jsonSchema)) - return; - seenSchemas.add(jsonSchema); - // `type` isn't required so save type as array in the fallback - let types = schema.type() || []; - // change primitive type to array of types for easier handling - if (!Array.isArray(types)) { - types = [types]; - } - if (!schemaTypesToIterate.includes(SchemaTypesToIterate.Objects) && types.includes('object')) - return; - if (!schemaTypesToIterate.includes(SchemaTypesToIterate.Arrays) && types.includes('array')) - return; - // check callback `NEW_SCHEMA` case - if (callback(schema, propOrIndex, SchemaIteratorCallbackType.NEW_SCHEMA) === false) - return; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Objects) && types.includes('object')) { - recursiveSchemaObject(schema, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Arrays) && types.includes('array')) { - recursiveSchemaArray(schema, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.OneOfs)) { - (schema.oneOf() || []).forEach((combineSchema, idx) => { - traverseSchema(combineSchema, idx, options); - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.AnyOfs)) { - (schema.anyOf() || []).forEach((combineSchema, idx) => { - traverseSchema(combineSchema, idx, options); - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.AllOfs)) { - (schema.allOf() || []).forEach((combineSchema, idx) => { - traverseSchema(combineSchema, idx, options); - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Nots) && schema.not()) { - traverseSchema(schema.not(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Ifs) && schema.if()) { - traverseSchema(schema.if(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Thenes) && schema.then()) { - traverseSchema(schema.then(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Elses) && schema.else()) { - traverseSchema(schema.else(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Dependencies)) { - Object.entries(schema.dependencies() || {}).forEach(([depName, dep]) => { - // do not iterate dependent required - if (dep && !Array.isArray(dep)) { - traverseSchema(dep, depName, options); - } - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Definitions)) { - Object.entries(schema.definitions() || {}).forEach(([defName, def]) => { - traverseSchema(def, defName, options); - }); - } - callback(schema, propOrIndex, SchemaIteratorCallbackType.END_SCHEMA); - seenSchemas.delete(jsonSchema); -} -/* eslint-enable sonarjs/cognitive-complexity */ -/** - * Recursively go through schema of object type and execute callback. - */ -function recursiveSchemaObject(schema, options) { - Object.entries(schema.properties() || {}).forEach(([propertyName, property]) => { - traverseSchema(property, propertyName, options); - }); - const additionalProperties = schema.additionalProperties(); - if (typeof additionalProperties === 'object') { - traverseSchema(additionalProperties, null, options); - } - const schemaTypesToIterate = options.schemaTypesToIterate; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.PropertyNames) && schema.propertyNames()) { - traverseSchema(schema.propertyNames(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.PatternProperties)) { - Object.entries(schema.patternProperties() || {}).forEach(([propertyName, property]) => { - traverseSchema(property, propertyName, options); - }); - } -} -/** - * Recursively go through schema of array type and execute callback. - */ -function recursiveSchemaArray(schema, options) { - const items = schema.items(); - if (items) { - if (Array.isArray(items)) { - items.forEach((item, idx) => { - traverseSchema(item, idx, options); - }); - } - else { - traverseSchema(items, null, options); - } - } - const additionalItems = schema.additionalItems(); - if (typeof additionalItems === 'object') { - traverseSchema(additionalItems, null, options); - } - if (options.schemaTypesToIterate.includes('contains') && schema.contains()) { - traverseSchema(schema.contains(), null, options); - } -} -/** - * Go through each schema in channel - */ -function traverseChannel(channel, options) { - if (!channel) - return; - const { schemaTypesToIterate } = options; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Parameters)) { - Object.values(channel.parameters().filterBy((param) => { return param.hasSchema(); }) || {}).forEach(parameter => { - traverseSchema(parameter.schema(), null, options); - }); - } - channel.messages().all().forEach(message => { - traverseMessage(message, options); - }); -} -/** - * Go through each schema in a message - */ -function traverseMessage(message, options) { - if (!message) - return; - const { schemaTypesToIterate } = options; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Headers) && message.hasHeaders()) { - traverseSchema(message.headers(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Payloads) && message.hasPayload()) { - traverseSchema(message.payload(), null, options); - } -} -/** - * Go through each schema in a messageTrait - */ -function traverseMessageTrait(messageTrait, options) { - if (!messageTrait) - return; - const { schemaTypesToIterate } = options; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.Headers) && messageTrait.hasHeaders()) { - traverseSchema(messageTrait.headers(), null, options); - } -} diff --git a/esm/models/asyncapi.d.ts b/esm/models/asyncapi.d.ts deleted file mode 100644 index f357456fe..000000000 --- a/esm/models/asyncapi.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import type { BaseModel } from './base'; -import type { InfoInterface } from './info'; -import type { ChannelsInterface } from './channels'; -import type { ComponentsInterface } from './components'; -import type { MessagesInterface } from './messages'; -import type { ExtensionsMixinInterface } from './mixins'; -import type { OperationsInterface } from './operations'; -import type { SchemasInterface } from './schemas'; -import type { SecuritySchemesInterface } from './security-schemes'; -import type { ServersInterface } from './servers'; -import type { v2 } from '../spec-types'; -export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInterface { - version(): string; - defaultContentType(): string | undefined; - hasDefaultContentType(): boolean; - info(): InfoInterface; - servers(): ServersInterface; - channels(): ChannelsInterface; - operations(): OperationsInterface; - messages(): MessagesInterface; - schemas(): SchemasInterface; - securitySchemes(): SecuritySchemesInterface; - components(): ComponentsInterface; -} diff --git a/esm/models/asyncapi.js b/esm/models/asyncapi.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/asyncapi.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/base.d.ts b/esm/models/base.d.ts deleted file mode 100644 index 29aa35fa2..000000000 --- a/esm/models/base.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { Constructor, InferModelData, InferModelMetadata } from './utils'; -import type { DetailedAsyncAPI } from '../types'; -export interface ModelMetadata { - asyncapi: DetailedAsyncAPI; - pointer: string; -} -export declare abstract class BaseModel = {}> { - protected readonly _json: J; - protected readonly _meta: ModelMetadata & M; - constructor(_json: J, _meta?: ModelMetadata & M); - json(): T; - json(key: K): J[K]; - meta(): ModelMetadata & M; - meta(key: K): (ModelMetadata & M)[K]; - jsonPath(field?: string | undefined): string; - protected createModel(Model: Constructor, value: InferModelData, meta: Omit & InferModelMetadata): T; -} diff --git a/esm/models/base.js b/esm/models/base.js deleted file mode 100644 index 49f1d0dcd..000000000 --- a/esm/models/base.js +++ /dev/null @@ -1,29 +0,0 @@ -export class BaseModel { - constructor(_json, _meta = {}) { - this._json = _json; - this._meta = _meta; - } - json(key) { - if (key === undefined) - return this._json; - if (this._json === null || this._json === undefined) - return this._json; - return this._json[key]; - } - meta(key) { - if (key === undefined) - return this._meta; - if (!this._meta) - return; - return this._meta[key]; - } - jsonPath(field) { - if (typeof field !== 'string') { - return this._meta.pointer; - } - return `${this._meta.pointer}/${field}`; - } - createModel(Model, value, meta) { - return new Model(value, Object.assign(Object.assign({}, meta), { asyncapi: this._meta.asyncapi })); - } -} diff --git a/esm/models/binding.d.ts b/esm/models/binding.d.ts deleted file mode 100644 index d63cbb8d2..000000000 --- a/esm/models/binding.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { BaseModel } from './base'; -import type { ExtensionsMixinInterface } from './mixins'; -export interface BindingInterface = Record> extends BaseModel, ExtensionsMixinInterface { - protocol(): string; - version(): string; - value(): V; -} diff --git a/esm/models/binding.js b/esm/models/binding.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/binding.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/bindings.d.ts b/esm/models/bindings.d.ts deleted file mode 100644 index a9e00490d..000000000 --- a/esm/models/bindings.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { Collection } from './collection'; -import type { BindingInterface } from './binding'; -import type { ExtensionsMixinInterface } from './mixins'; -export interface BindingsInterface extends Collection, ExtensionsMixinInterface { -} diff --git a/esm/models/bindings.js b/esm/models/bindings.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/bindings.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/channel-parameter.d.ts b/esm/models/channel-parameter.d.ts deleted file mode 100644 index 3c787dbd1..000000000 --- a/esm/models/channel-parameter.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { BaseModel } from './base'; -import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; -import type { SchemaInterface } from './schema'; -export interface ChannelParameterInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { - id(): string; - hasSchema(): boolean; - schema(): SchemaInterface | undefined; - hasLocation(): boolean; - location(): string | undefined; -} diff --git a/esm/models/channel-parameter.js b/esm/models/channel-parameter.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/channel-parameter.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/channel-parameters.d.ts b/esm/models/channel-parameters.d.ts deleted file mode 100644 index 599627b77..000000000 --- a/esm/models/channel-parameters.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { ChannelParameterInterface } from './channel-parameter'; -export declare type ChannelParametersInterface = Collection; diff --git a/esm/models/channel-parameters.js b/esm/models/channel-parameters.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/channel-parameters.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/channel.d.ts b/esm/models/channel.d.ts deleted file mode 100644 index 404e37d63..000000000 --- a/esm/models/channel.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { BaseModel } from './base'; -import type { ChannelParametersInterface } from './channel-parameters'; -import type { MessagesInterface } from './messages'; -import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; -import type { OperationsInterface } from './operations'; -import type { ServersInterface } from './servers'; -export interface ChannelInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface { - id(): string; - address(): string; - servers(): ServersInterface; - operations(): OperationsInterface; - messages(): MessagesInterface; - parameters(): ChannelParametersInterface; -} diff --git a/esm/models/channel.js b/esm/models/channel.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/channel.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/channels.d.ts b/esm/models/channels.d.ts deleted file mode 100644 index 028bd4a96..000000000 --- a/esm/models/channels.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { Collection } from './collection'; -import type { ChannelInterface } from './channel'; -export interface ChannelsInterface extends Collection { - filterBySend(): ChannelInterface[]; - filterByReceive(): ChannelInterface[]; -} diff --git a/esm/models/channels.js b/esm/models/channels.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/channels.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/collection.d.ts b/esm/models/collection.d.ts deleted file mode 100644 index 6c23e3b73..000000000 --- a/esm/models/collection.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { BaseModel } from './base'; -import type { DetailedAsyncAPI } from '../types'; -export interface CollectionMetadata { - originalData?: Record; - asyncapi?: DetailedAsyncAPI; - pointer?: string; -} -export declare abstract class Collection = {}> extends Array { - protected readonly collections: T[]; - protected readonly _meta: CollectionMetadata & M; - constructor(collections: T[], _meta?: CollectionMetadata & M); - abstract get(id: string): T | undefined; - has(id: string): boolean; - all(): T[]; - isEmpty(): boolean; - filterBy(filter: (item: T) => boolean): T[]; - meta(): CollectionMetadata & M; - meta & M)>(key: K): (CollectionMetadata & M)[K]; -} diff --git a/esm/models/collection.js b/esm/models/collection.js deleted file mode 100644 index 4ff40348f..000000000 --- a/esm/models/collection.js +++ /dev/null @@ -1,26 +0,0 @@ -export class Collection extends Array { - constructor(collections, _meta = {}) { - super(...collections); - this.collections = collections; - this._meta = _meta; - } - has(id) { - return typeof this.get(id) !== 'undefined'; - } - all() { - return this.collections; - } - isEmpty() { - return this.collections.length === 0; - } - filterBy(filter) { - return this.collections.filter(filter); - } - meta(key) { - if (key === undefined) - return this._meta; - if (!this._meta) - return; - return this._meta[String(key)]; - } -} diff --git a/esm/models/components.d.ts b/esm/models/components.d.ts deleted file mode 100644 index ce8c4f7e7..000000000 --- a/esm/models/components.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type { BaseModel } from './base'; -import type { BindingsInterface } from './bindings'; -import type { ExtensionsMixinInterface } from './mixins'; -import type { ServersInterface } from './servers'; -import type { ChannelsInterface } from './channels'; -import type { MessagesInterface } from './messages'; -import type { SchemasInterface } from './schemas'; -import type { ChannelParametersInterface } from './channel-parameters'; -import type { ServerVariablesInterface } from './server-variables'; -import type { OperationTraitsInterface } from './operation-traits'; -import type { MessageTraitsInterface } from './message-traits'; -import type { SecuritySchemesInterface } from './security-schemes'; -import type { CorrelationIdsInterface } from './correlation-ids'; -import type { OperationsInterface } from './operations'; -export interface ComponentsInterface extends BaseModel, ExtensionsMixinInterface { - servers(): ServersInterface; - channels(): ChannelsInterface; - messages(): MessagesInterface; - schemas(): SchemasInterface; - channelParameters(): ChannelParametersInterface; - serverVariables(): ServerVariablesInterface; - operations(): OperationsInterface; - operationTraits(): OperationTraitsInterface; - messageTraits(): MessageTraitsInterface; - correlationIds(): CorrelationIdsInterface; - securitySchemes(): SecuritySchemesInterface; - serverBindings(): Record; - channelBindings(): Record; - operationBindings(): Record; - messageBindings(): Record; - isEmpty(): boolean; -} diff --git a/esm/models/components.js b/esm/models/components.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/components.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/contact.d.ts b/esm/models/contact.d.ts deleted file mode 100644 index 79bf79984..000000000 --- a/esm/models/contact.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { BaseModel } from './base'; -import type { ExtensionsMixinInterface } from './mixins'; -export interface ContactInterface extends BaseModel, ExtensionsMixinInterface { - hasName(): boolean; - name(): string | undefined; - hasUrl(): boolean; - url(): string | undefined; - hasEmail(): boolean; - email(): string | undefined; -} diff --git a/esm/models/contact.js b/esm/models/contact.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/contact.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/correlation-id.d.ts b/esm/models/correlation-id.d.ts deleted file mode 100644 index 690a0dbdc..000000000 --- a/esm/models/correlation-id.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { BaseModel } from './base'; -import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; -export interface CorrelationIdInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { - hasLocation(): boolean; - location(): string | undefined; -} diff --git a/esm/models/correlation-id.js b/esm/models/correlation-id.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/correlation-id.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/correlation-ids.d.ts b/esm/models/correlation-ids.d.ts deleted file mode 100644 index 09dba456b..000000000 --- a/esm/models/correlation-ids.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { CorrelationIdInterface } from './correlation-id'; -export declare type CorrelationIdsInterface = Collection; diff --git a/esm/models/correlation-ids.js b/esm/models/correlation-ids.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/correlation-ids.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/extension.d.ts b/esm/models/extension.d.ts deleted file mode 100644 index 9772edf4a..000000000 --- a/esm/models/extension.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { BaseModel } from './base'; -export interface ExtensionInterface extends BaseModel { - id(): string; - version(): string; - value(): V; -} diff --git a/esm/models/extension.js b/esm/models/extension.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/extension.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/extensions.d.ts b/esm/models/extensions.d.ts deleted file mode 100644 index a4d4e393f..000000000 --- a/esm/models/extensions.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { ExtensionInterface } from './extension'; -export declare type ExtensionsInterface = Collection; diff --git a/esm/models/extensions.js b/esm/models/extensions.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/extensions.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/external-docs.d.ts b/esm/models/external-docs.d.ts deleted file mode 100644 index bca1e1fef..000000000 --- a/esm/models/external-docs.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { BaseModel } from './base'; -import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; -export interface ExternalDocumentationInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { - url(): string; -} diff --git a/esm/models/external-docs.js b/esm/models/external-docs.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/external-docs.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/index.d.ts b/esm/models/index.d.ts deleted file mode 100644 index 72c426a08..000000000 --- a/esm/models/index.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -export * from './v2'; -export * from './v3'; -export * from './asyncapi'; -export * from './base'; -export * from './binding'; -export * from './bindings'; -export * from './channel-parameter'; -export * from './channel-parameters'; -export * from './channel'; -export * from './channels'; -export * from './collection'; -export * from './components'; -export * from './contact'; -export * from './correlation-id'; -export * from './correlation-ids'; -export * from './extension'; -export * from './extensions'; -export * from './external-docs'; -export * from './info'; -export * from './license'; -export * from './message-example'; -export * from './message-examples'; -export * from './message-trait'; -export * from './message-traits'; -export * from './message'; -export * from './messages'; -export * from './oauth-flow'; -export * from './oauth-flows'; -export * from './operation-trait'; -export * from './operation-traits'; -export * from './operation'; -export * from './operations'; -export * from './schema'; -export * from './schemas'; -export * from './security-requirement'; -export * from './security-requirements'; -export * from './security-scheme'; -export * from './security-schemes'; -export * from './server-variable'; -export * from './server-variables'; -export * from './server'; -export * from './servers'; -export * from './tag'; -export * from './tags'; diff --git a/esm/models/index.js b/esm/models/index.js deleted file mode 100644 index 72c426a08..000000000 --- a/esm/models/index.js +++ /dev/null @@ -1,44 +0,0 @@ -export * from './v2'; -export * from './v3'; -export * from './asyncapi'; -export * from './base'; -export * from './binding'; -export * from './bindings'; -export * from './channel-parameter'; -export * from './channel-parameters'; -export * from './channel'; -export * from './channels'; -export * from './collection'; -export * from './components'; -export * from './contact'; -export * from './correlation-id'; -export * from './correlation-ids'; -export * from './extension'; -export * from './extensions'; -export * from './external-docs'; -export * from './info'; -export * from './license'; -export * from './message-example'; -export * from './message-examples'; -export * from './message-trait'; -export * from './message-traits'; -export * from './message'; -export * from './messages'; -export * from './oauth-flow'; -export * from './oauth-flows'; -export * from './operation-trait'; -export * from './operation-traits'; -export * from './operation'; -export * from './operations'; -export * from './schema'; -export * from './schemas'; -export * from './security-requirement'; -export * from './security-requirements'; -export * from './security-scheme'; -export * from './security-schemes'; -export * from './server-variable'; -export * from './server-variables'; -export * from './server'; -export * from './servers'; -export * from './tag'; -export * from './tags'; diff --git a/esm/models/info.d.ts b/esm/models/info.d.ts deleted file mode 100644 index 33ce92d33..000000000 --- a/esm/models/info.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { ContactInterface } from './contact'; -import type { LicenseInterface } from './license'; -import type { BaseModel } from './base'; -import type { DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; -export interface InfoInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { - title(): string; - version(): string; - hasId(): boolean; - id(): string | undefined; - hasTermsOfService(): boolean; - termsOfService(): string | undefined; - hasContact(): boolean; - contact(): ContactInterface | undefined; - hasLicense(): boolean; - license(): LicenseInterface | undefined; -} diff --git a/esm/models/info.js b/esm/models/info.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/info.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/license.d.ts b/esm/models/license.d.ts deleted file mode 100644 index 55d4949b0..000000000 --- a/esm/models/license.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { BaseModel } from './base'; -import type { ExtensionsMixinInterface } from './mixins'; -export interface LicenseInterface extends BaseModel, ExtensionsMixinInterface { - name(): string; - hasUrl(): boolean; - url(): string | undefined; -} diff --git a/esm/models/license.js b/esm/models/license.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/license.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/message-example.d.ts b/esm/models/message-example.d.ts deleted file mode 100644 index f929d876f..000000000 --- a/esm/models/message-example.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { BaseModel } from './base'; -import type { ExtensionsMixinInterface } from './mixins'; -export interface MessageExampleInterface extends BaseModel, ExtensionsMixinInterface { - hasName(): boolean; - name(): string | undefined; - hasSummary(): boolean; - summary(): string | undefined; - hasHeaders(): boolean; - headers(): Record | undefined; - hasPayload(): boolean; - payload(): Record | undefined; -} diff --git a/esm/models/message-example.js b/esm/models/message-example.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/message-example.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/message-examples.d.ts b/esm/models/message-examples.d.ts deleted file mode 100644 index de760b44a..000000000 --- a/esm/models/message-examples.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { MessageExampleInterface } from './message-example'; -export declare type MessageExamplesInterface = Collection; diff --git a/esm/models/message-examples.js b/esm/models/message-examples.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/message-examples.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/message-trait.d.ts b/esm/models/message-trait.d.ts deleted file mode 100644 index 072afe0b3..000000000 --- a/esm/models/message-trait.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import type { BaseModel } from './base'; -import type { CorrelationIdInterface } from './correlation-id'; -import type { MessageExamplesInterface } from './message-examples'; -import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; -import type { SchemaInterface } from './schema'; -export interface MessageTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { - id(): string; - schemaFormat(): string; - hasMessageId(): boolean; - messageId(): string | undefined; - hasCorrelationId(): boolean; - correlationId(): CorrelationIdInterface | undefined; - hasContentType(): boolean; - contentType(): string | undefined; - hasHeaders(): boolean; - headers(): SchemaInterface | undefined; - hasName(): boolean; - name(): string | undefined; - hasTitle(): boolean; - title(): string | undefined; - hasSummary(): boolean; - summary(): string | undefined; - examples(): MessageExamplesInterface; -} diff --git a/esm/models/message-trait.js b/esm/models/message-trait.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/message-trait.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/message-traits.d.ts b/esm/models/message-traits.d.ts deleted file mode 100644 index e440e2a55..000000000 --- a/esm/models/message-traits.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { MessageTraitInterface } from './message-trait'; -export declare type MessageTraitsInterface = Collection; diff --git a/esm/models/message-traits.js b/esm/models/message-traits.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/message-traits.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/message.d.ts b/esm/models/message.d.ts deleted file mode 100644 index c030c3912..000000000 --- a/esm/models/message.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { BaseModel } from './base'; -import type { ChannelsInterface } from './channels'; -import type { MessageTraitsInterface } from './message-traits'; -import type { MessageTraitInterface } from './message-trait'; -import type { OperationsInterface } from './operations'; -import type { SchemaInterface } from './schema'; -import type { ServersInterface } from './servers'; -export interface MessageInterface extends BaseModel, MessageTraitInterface { - hasPayload(): boolean; - payload(): SchemaInterface | undefined; - servers(): ServersInterface; - channels(): ChannelsInterface; - operations(): OperationsInterface; - traits(): MessageTraitsInterface; -} diff --git a/esm/models/message.js b/esm/models/message.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/message.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/messages.d.ts b/esm/models/messages.d.ts deleted file mode 100644 index 614bbd142..000000000 --- a/esm/models/messages.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { Collection } from './collection'; -import type { MessageInterface } from './message'; -export interface MessagesInterface extends Collection { - filterBySend(): MessageInterface[]; - filterByReceive(): MessageInterface[]; -} diff --git a/esm/models/messages.js b/esm/models/messages.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/messages.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/mixins.d.ts b/esm/models/mixins.d.ts deleted file mode 100644 index f910ef8ef..000000000 --- a/esm/models/mixins.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type { BindingsInterface } from './bindings'; -import type { ExtensionsInterface } from './extensions'; -import type { ExternalDocumentationInterface } from './external-docs'; -import type { TagsInterface } from './tags'; -export interface BindingsMixinInterface { - bindings(): BindingsInterface; -} -export interface DescriptionMixinInterface { - hasDescription(): boolean; - description(): string | undefined; -} -export interface ExtensionsMixinInterface { - extensions(): ExtensionsInterface; -} -export interface ExternalDocumentationMixinInterface { - hasExternalDocs(): boolean; - externalDocs(): ExternalDocumentationInterface | undefined; -} -export interface TagsMixinInterface { - tags(): TagsInterface; -} diff --git a/esm/models/mixins.js b/esm/models/mixins.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/mixins.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/oauth-flow.d.ts b/esm/models/oauth-flow.d.ts deleted file mode 100644 index 917293f35..000000000 --- a/esm/models/oauth-flow.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { BaseModel } from './base'; -import { ExtensionsMixinInterface } from './mixins'; -export interface OAuthFlowInterface = Record> extends BaseModel, ExtensionsMixinInterface { - authorizationUrl(): string | undefined; - hasRefreshUrl(): boolean; - refreshUrl(): string | undefined; - scopes(): Record | undefined; - tokenUrl(): string | undefined; -} diff --git a/esm/models/oauth-flow.js b/esm/models/oauth-flow.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/oauth-flow.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/oauth-flows.d.ts b/esm/models/oauth-flows.d.ts deleted file mode 100644 index 9d4a9c332..000000000 --- a/esm/models/oauth-flows.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { BaseModel } from './base'; -import type { OAuthFlowInterface } from './oauth-flow'; -import type { ExtensionsMixinInterface } from './mixins'; -export interface OAuthFlowsInterface extends BaseModel, ExtensionsMixinInterface { - hasAuthorizationCode(): boolean; - authorizationCode(): OAuthFlowInterface | undefined; - hasClientCredentials(): boolean; - clientCredentials(): OAuthFlowInterface | undefined; - hasImplicit(): boolean; - implicit(): OAuthFlowInterface | undefined; - hasPassword(): boolean; - password(): OAuthFlowInterface | undefined; -} diff --git a/esm/models/oauth-flows.js b/esm/models/oauth-flows.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/oauth-flows.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/operation-trait.d.ts b/esm/models/operation-trait.d.ts deleted file mode 100644 index 7e86617e9..000000000 --- a/esm/models/operation-trait.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { BaseModel } from './base'; -import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; -import { SecurityRequirements } from './v2/security-requirements'; -export interface OperationTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { - id(): string; - hasOperationId(): boolean; - operationId(): string | undefined; - hasSummary(): boolean; - summary(): string | undefined; - security(): SecurityRequirements[]; -} diff --git a/esm/models/operation-trait.js b/esm/models/operation-trait.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/operation-trait.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/operation-traits.d.ts b/esm/models/operation-traits.d.ts deleted file mode 100644 index 2b9d57562..000000000 --- a/esm/models/operation-traits.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { OperationTraitInterface } from './operation-trait'; -export declare type OperationTraitsInterface = Collection; diff --git a/esm/models/operation-traits.js b/esm/models/operation-traits.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/operation-traits.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/operation.d.ts b/esm/models/operation.d.ts deleted file mode 100644 index 376039f58..000000000 --- a/esm/models/operation.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { BaseModel } from './base'; -import type { ChannelsInterface } from './channels'; -import type { MessagesInterface } from './messages'; -import type { OperationTraitsInterface } from './operation-traits'; -import type { OperationTraitInterface } from './operation-trait'; -import type { ServersInterface } from './servers'; -export declare type OperationAction = 'send' | 'receive' | 'publish' | 'subscribe'; -export interface OperationInterface extends BaseModel, OperationTraitInterface { - action(): OperationAction; - isSend(): boolean; - isReceive(): boolean; - servers(): ServersInterface; - channels(): ChannelsInterface; - messages(): MessagesInterface; - traits(): OperationTraitsInterface; -} diff --git a/esm/models/operation.js b/esm/models/operation.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/operation.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/operations.d.ts b/esm/models/operations.d.ts deleted file mode 100644 index 378a78e84..000000000 --- a/esm/models/operations.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { Collection } from './collection'; -import type { OperationInterface } from './operation'; -export interface OperationsInterface extends Collection { - filterBySend(): OperationInterface[]; - filterByReceive(): OperationInterface[]; -} diff --git a/esm/models/operations.js b/esm/models/operations.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/operations.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/schema.d.ts b/esm/models/schema.d.ts deleted file mode 100644 index 6865ca86f..000000000 --- a/esm/models/schema.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -import type { BaseModel } from './base'; -import type { ExtensionsMixinInterface, ExternalDocumentationMixinInterface } from './mixins'; -import type { v2 } from '../spec-types'; -export interface SchemaInterface extends BaseModel, ExtensionsMixinInterface, ExternalDocumentationMixinInterface { - uid(): string; - $comment(): string | undefined; - $id(): string | undefined; - $schema(): string; - additionalItems(): boolean | SchemaInterface; - additionalProperties(): boolean | SchemaInterface; - allOf(): Array | undefined; - anyOf(): Array | undefined; - const(): any; - contains(): SchemaInterface | undefined; - contentEncoding(): string | undefined; - contentMediaType(): string | undefined; - default(): any; - definitions(): Record | undefined; - description(): string | undefined; - dependencies(): Record> | undefined; - deprecated(): boolean; - discriminator(): string | undefined; - else(): SchemaInterface | undefined; - enum(): Array | undefined; - examples(): Array | undefined; - exclusiveMaximum(): number | undefined; - exclusiveMinimum(): number | undefined; - format(): string | undefined; - isBooleanSchema(): boolean; - if(): SchemaInterface | undefined; - isCircular(): boolean; - items(): SchemaInterface | Array | undefined; - maximum(): number | undefined; - maxItems(): number | undefined; - maxLength(): number | undefined; - maxProperties(): number | undefined; - minimum(): number | undefined; - minItems(): number | undefined; - minLength(): number | undefined; - minProperties(): number | undefined; - multipleOf(): number | undefined; - not(): SchemaInterface | undefined; - oneOf(): Array | undefined; - pattern(): string | undefined; - patternProperties(): Record | undefined; - properties(): Record | undefined; - property(name: string): SchemaInterface | undefined; - propertyNames(): SchemaInterface | undefined; - readOnly(): boolean | undefined; - required(): Array | undefined; - then(): SchemaInterface | undefined; - title(): string | undefined; - type(): string | Array | undefined; - uniqueItems(): boolean | undefined; - writeOnly(): boolean | undefined; -} diff --git a/esm/models/schema.js b/esm/models/schema.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/schema.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/schemas.d.ts b/esm/models/schemas.d.ts deleted file mode 100644 index 8985decf1..000000000 --- a/esm/models/schemas.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { SchemaInterface } from './schema'; -export declare type SchemasInterface = Collection; diff --git a/esm/models/schemas.js b/esm/models/schemas.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/schemas.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/security-requirement.d.ts b/esm/models/security-requirement.d.ts deleted file mode 100644 index e56dbf50e..000000000 --- a/esm/models/security-requirement.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { BaseModel } from './base'; -import type { SecuritySchemeInterface } from './security-scheme'; -export interface SecurityRequirementInterface extends BaseModel { - scheme(): SecuritySchemeInterface; - scopes(): string[]; -} diff --git a/esm/models/security-requirement.js b/esm/models/security-requirement.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/security-requirement.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/security-requirements.d.ts b/esm/models/security-requirements.d.ts deleted file mode 100644 index 223d629cc..000000000 --- a/esm/models/security-requirements.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { SecurityRequirementInterface } from './security-requirement'; -export declare type SecurityRequirementsInterface = Collection; diff --git a/esm/models/security-requirements.js b/esm/models/security-requirements.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/security-requirements.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/security-scheme.d.ts b/esm/models/security-scheme.d.ts deleted file mode 100644 index c891e3af3..000000000 --- a/esm/models/security-scheme.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { BaseModel } from './base'; -import type { OAuthFlowsInterface } from './oauth-flows'; -import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; -export interface SecuritySchemeInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { - id(): string; - hasBearerFormat(): boolean; - bearerFormat(): string | undefined; - openIdConnectUrl(): string | undefined; - scheme(): string | undefined; - flows(): OAuthFlowsInterface | undefined; - type(): string; - in(): string | undefined; -} diff --git a/esm/models/security-scheme.js b/esm/models/security-scheme.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/security-scheme.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/security-schemes.d.ts b/esm/models/security-schemes.d.ts deleted file mode 100644 index 2b8b7642b..000000000 --- a/esm/models/security-schemes.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { SecuritySchemeInterface } from './security-scheme'; -export declare type SecuritySchemesInterface = Collection; diff --git a/esm/models/security-schemes.js b/esm/models/security-schemes.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/security-schemes.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/server-variable.d.ts b/esm/models/server-variable.d.ts deleted file mode 100644 index 85faa6989..000000000 --- a/esm/models/server-variable.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { BaseModel } from './base'; -import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; -export interface ServerVariableInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { - id(): string; - hasDefaultValue(): boolean; - defaultValue(): string | undefined; - hasAllowedValues(): boolean; - allowedValues(): Array; - examples(): Array; -} diff --git a/esm/models/server-variable.js b/esm/models/server-variable.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/server-variable.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/server-variables.d.ts b/esm/models/server-variables.d.ts deleted file mode 100644 index dfe43deb8..000000000 --- a/esm/models/server-variables.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { ServerVariableInterface } from './server-variable'; -export declare type ServerVariablesInterface = Collection; diff --git a/esm/models/server-variables.js b/esm/models/server-variables.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/server-variables.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/server.d.ts b/esm/models/server.d.ts deleted file mode 100644 index c4cf19dbe..000000000 --- a/esm/models/server.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { BaseModel } from './base'; -import type { ChannelsInterface } from './channels'; -import type { MessagesInterface } from './messages'; -import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; -import type { OperationsInterface } from './operations'; -import type { ServerVariablesInterface } from './server-variables'; -import type { SecurityRequirementsInterface } from './security-requirements'; -export interface ServerInterface extends BaseModel, DescriptionMixinInterface, BindingsMixinInterface, ExtensionsMixinInterface { - id(): string; - url(): string; - protocol(): string; - protocolVersion(): string | undefined; - hasProtocolVersion(): boolean; - channels(): ChannelsInterface; - operations(): OperationsInterface; - messages(): MessagesInterface; - variables(): ServerVariablesInterface; - security(): SecurityRequirementsInterface[]; -} diff --git a/esm/models/server.js b/esm/models/server.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/server.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/servers.d.ts b/esm/models/servers.d.ts deleted file mode 100644 index 3108b996e..000000000 --- a/esm/models/servers.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { Collection } from './collection'; -import type { ServerInterface } from './server'; -export interface ServersInterface extends Collection { - filterBySend(): ServerInterface[]; - filterByReceive(): ServerInterface[]; -} diff --git a/esm/models/servers.js b/esm/models/servers.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/servers.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/tag.d.ts b/esm/models/tag.d.ts deleted file mode 100644 index 019512db2..000000000 --- a/esm/models/tag.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { BaseModel } from './base'; -import type { DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface } from './mixins'; -export interface TagInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface { - name(): string; -} diff --git a/esm/models/tag.js b/esm/models/tag.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/tag.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/tags.d.ts b/esm/models/tags.d.ts deleted file mode 100644 index d519e6de9..000000000 --- a/esm/models/tags.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { Collection } from './collection'; -import type { TagInterface } from './tag'; -export declare type TagsInterface = Collection; diff --git a/esm/models/tags.js b/esm/models/tags.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/models/tags.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/models/utils.d.ts b/esm/models/utils.d.ts deleted file mode 100644 index 91938e617..000000000 --- a/esm/models/utils.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { BaseModel, ModelMetadata } from './base'; -import type { DetailedAsyncAPI } from '../types'; -export interface Constructor extends Function { - new (...any: any[]): T; -} -export declare type InferModelData = T extends BaseModel ? J : never; -export declare type InferModelMetadata = T extends BaseModel ? M : never; -export declare function createModel(Model: Constructor, value: InferModelData, meta: Omit & { - asyncapi?: DetailedAsyncAPI; -} & InferModelMetadata, parent?: BaseModel): T; diff --git a/esm/models/utils.js b/esm/models/utils.js deleted file mode 100644 index 56404c27f..000000000 --- a/esm/models/utils.js +++ /dev/null @@ -1,3 +0,0 @@ -export function createModel(Model, value, meta, parent) { - return new Model(value, Object.assign(Object.assign({}, meta), { asyncapi: meta.asyncapi || (parent === null || parent === void 0 ? void 0 : parent.meta().asyncapi) })); -} diff --git a/esm/models/v2/asyncapi.d.ts b/esm/models/v2/asyncapi.d.ts deleted file mode 100644 index a1e7468d0..000000000 --- a/esm/models/v2/asyncapi.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { BaseModel } from '../base'; -import type { AsyncAPIDocumentInterface } from '../asyncapi'; -import type { InfoInterface } from '../info'; -import type { ServersInterface } from '../servers'; -import type { ChannelsInterface } from '../channels'; -import type { ComponentsInterface } from '../components'; -import type { OperationsInterface } from '../operations'; -import type { MessagesInterface } from '../messages'; -import type { SchemasInterface } from '../schemas'; -import type { SecuritySchemesInterface } from '../security-schemes'; -import type { ExtensionsInterface } from '../extensions'; -import type { v2 } from '../../spec-types'; -export declare class AsyncAPIDocument extends BaseModel implements AsyncAPIDocumentInterface { - version(): string; - defaultContentType(): string | undefined; - hasDefaultContentType(): boolean; - info(): InfoInterface; - servers(): ServersInterface; - channels(): ChannelsInterface; - operations(): OperationsInterface; - messages(): MessagesInterface; - schemas(): SchemasInterface; - securitySchemes(): SecuritySchemesInterface; - components(): ComponentsInterface; - extensions(): ExtensionsInterface; -} diff --git a/esm/models/v2/asyncapi.js b/esm/models/v2/asyncapi.js deleted file mode 100644 index ec643d5e9..000000000 --- a/esm/models/v2/asyncapi.js +++ /dev/null @@ -1,57 +0,0 @@ -import { BaseModel } from '../base'; -import { Info } from './info'; -import { Channels } from './channels'; -import { Channel } from './channel'; -import { Components } from './components'; -import { Messages } from './messages'; -import { Operations } from './operations'; -import { Servers } from './servers'; -import { Server } from './server'; -import { SecuritySchemes } from './security-schemes'; -import { SecurityScheme } from './security-scheme'; -import { Schemas } from './schemas'; -import { extensions } from './mixins'; -import { tilde } from '../../utils'; -export class AsyncAPIDocument extends BaseModel { - version() { - return this._json.asyncapi; - } - defaultContentType() { - return this._json.defaultContentType; - } - hasDefaultContentType() { - return !!this._json.defaultContentType; - } - info() { - return this.createModel(Info, this._json.info, { pointer: '/info' }); - } - servers() { - return new Servers(Object.entries(this._json.servers || {}).map(([serverName, server]) => this.createModel(Server, server, { id: serverName, pointer: `/servers/${serverName}` }))); - } - channels() { - return new Channels(Object.entries(this._json.channels || {}).map(([channelAddress, channel]) => this.createModel(Channel, channel, { id: channelAddress, address: channelAddress, pointer: `/channels/${tilde(channelAddress)}` }))); - } - operations() { - const operations = []; - this.channels().forEach(channel => operations.push(...channel.operations().all())); - return new Operations(operations); - } - messages() { - const messages = []; - this.operations().forEach(operation => messages.push(...operation.messages().all())); - return new Messages(messages); - } - schemas() { - return new Schemas([]); - } - securitySchemes() { - var _a; - return new SecuritySchemes(Object.entries(((_a = this._json.components) === null || _a === void 0 ? void 0 : _a.securitySchemes) || {}).map(([securitySchemeName, securityScheme]) => this.createModel(SecurityScheme, securityScheme, { id: securitySchemeName, pointer: `/components/securitySchemes/${securitySchemeName}` }))); - } - components() { - return this.createModel(Components, this._json.components || {}, { pointer: '/components' }); - } - extensions() { - return extensions(this); - } -} diff --git a/esm/models/v2/binding.d.ts b/esm/models/v2/binding.d.ts deleted file mode 100644 index 6e13a3caf..000000000 --- a/esm/models/v2/binding.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { BaseModel } from '../base'; -import type { BindingInterface } from '../binding'; -import type { ExtensionsInterface } from '../extensions'; -import type { v2 } from '../../spec-types'; -export declare class Binding = Record> extends BaseModel implements BindingInterface { - protocol(): string; - version(): string; - value(): V; - extensions(): ExtensionsInterface; -} diff --git a/esm/models/v2/binding.js b/esm/models/v2/binding.js deleted file mode 100644 index a205c21e8..000000000 --- a/esm/models/v2/binding.js +++ /dev/null @@ -1,18 +0,0 @@ -import { BaseModel } from '../base'; -import { extensions } from './mixins'; -export class Binding extends BaseModel { - protocol() { - return this._meta.protocol; - } - version() { - return this._json.bindingVersion || 'latest'; - } - value() { - const value = Object.assign({}, this._json); - delete value.bindingVersion; - return value; - } - extensions() { - return extensions(this); - } -} diff --git a/esm/models/v2/bindings.d.ts b/esm/models/v2/bindings.d.ts deleted file mode 100644 index 366f2d369..000000000 --- a/esm/models/v2/bindings.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Collection } from '../collection'; -import type { BindingsInterface } from '../bindings'; -import type { BindingInterface } from '../binding'; -import type { ExtensionsInterface } from '../extensions'; -export declare class Bindings extends Collection implements BindingsInterface { - get = Record>(name: string): BindingInterface | undefined; - extensions(): ExtensionsInterface; -} diff --git a/esm/models/v2/bindings.js b/esm/models/v2/bindings.js deleted file mode 100644 index 19e2407a9..000000000 --- a/esm/models/v2/bindings.js +++ /dev/null @@ -1,19 +0,0 @@ -import { Collection } from '../collection'; -import { Extensions } from './extensions'; -import { Extension } from './extension'; -import { createModel } from '../utils'; -import { EXTENSION_REGEX } from '../../constants'; -export class Bindings extends Collection { - get(name) { - return this.collections.find(binding => binding.protocol() === name); - } - extensions() { - const extensions = []; - Object.entries(this._meta.originalData || {}).forEach(([id, value]) => { - if (EXTENSION_REGEX.test(id)) { - extensions.push(createModel(Extension, value, { id, pointer: `${this._meta.pointer}/${id}`, asyncapi: this._meta.asyncapi })); - } - }); - return new Extensions(extensions); - } -} diff --git a/esm/models/v2/channel-parameter.d.ts b/esm/models/v2/channel-parameter.d.ts deleted file mode 100644 index ba1abeedd..000000000 --- a/esm/models/v2/channel-parameter.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { BaseModel } from '../base'; -import type { ChannelParameterInterface } from '../channel-parameter'; -import type { SchemaInterface } from '../schema'; -import type { ExtensionsInterface } from '../extensions'; -import type { v2 } from '../../spec-types'; -export declare class ChannelParameter extends BaseModel implements ChannelParameterInterface { - id(): string; - hasSchema(): boolean; - schema(): SchemaInterface | undefined; - hasLocation(): boolean; - location(): string | undefined; - hasDescription(): boolean; - description(): string | undefined; - extensions(): ExtensionsInterface; -} diff --git a/esm/models/v2/channel-parameter.js b/esm/models/v2/channel-parameter.js deleted file mode 100644 index 2db8d16f4..000000000 --- a/esm/models/v2/channel-parameter.js +++ /dev/null @@ -1,31 +0,0 @@ -import { BaseModel } from '../base'; -import { Schema } from './schema'; -import { hasDescription, description, extensions } from './mixins'; -export class ChannelParameter extends BaseModel { - id() { - return this._meta.id; - } - hasSchema() { - return !!this._json.schema; - } - schema() { - if (!this._json.schema) - return undefined; - return this.createModel(Schema, this._json.schema, { pointer: `${this._meta.pointer}/schema` }); - } - hasLocation() { - return !!this._json.location; - } - location() { - return this._json.location; - } - hasDescription() { - return hasDescription(this); - } - description() { - return description(this); - } - extensions() { - return extensions(this); - } -} diff --git a/esm/models/v2/channel-parameters.d.ts b/esm/models/v2/channel-parameters.d.ts deleted file mode 100644 index 93abd0a6e..000000000 --- a/esm/models/v2/channel-parameters.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { ChannelParametersInterface } from '../channel-parameters'; -import type { ChannelParameterInterface } from '../channel-parameter'; -export declare class ChannelParameters extends Collection implements ChannelParametersInterface { - get(id: string): ChannelParameterInterface | undefined; -} diff --git a/esm/models/v2/channel-parameters.js b/esm/models/v2/channel-parameters.js deleted file mode 100644 index 4f6403734..000000000 --- a/esm/models/v2/channel-parameters.js +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -export class ChannelParameters extends Collection { - get(id) { - return this.collections.find(parameter => parameter.id() === id); - } -} diff --git a/esm/models/v2/channel.d.ts b/esm/models/v2/channel.d.ts deleted file mode 100644 index 669ca948b..000000000 --- a/esm/models/v2/channel.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { BaseModel } from '../base'; -import type { BindingsInterface } from '../bindings'; -import type { ChannelInterface } from '../channel'; -import type { ChannelParametersInterface } from '../channel-parameters'; -import type { ExtensionsInterface } from '../extensions'; -import type { MessagesInterface } from '../messages'; -import type { OperationsInterface } from '../operations'; -import type { ServersInterface } from '../servers'; -import type { v2 } from '../../spec-types'; -export declare class Channel extends BaseModel implements ChannelInterface { - id(): string; - address(): string; - hasDescription(): boolean; - description(): string | undefined; - servers(): ServersInterface; - operations(): OperationsInterface; - messages(): MessagesInterface; - parameters(): ChannelParametersInterface; - bindings(): BindingsInterface; - extensions(): ExtensionsInterface; -} diff --git a/esm/models/v2/channel.js b/esm/models/v2/channel.js deleted file mode 100644 index 9a37a97c3..000000000 --- a/esm/models/v2/channel.js +++ /dev/null @@ -1,63 +0,0 @@ -import { BaseModel } from '../base'; -import { ChannelParameters } from './channel-parameters'; -import { ChannelParameter } from './channel-parameter'; -import { Messages } from './messages'; -import { Operations } from './operations'; -import { Operation } from './operation'; -import { Servers } from './servers'; -import { Server } from './server'; -import { bindings, hasDescription, description, extensions } from './mixins'; -export class Channel extends BaseModel { - id() { - return this._meta.id; - } - address() { - return this._meta.address; - } - hasDescription() { - return hasDescription(this); - } - description() { - return description(this); - } - servers() { - var _a; - const servers = []; - const allowedServers = this._json.servers || []; - Object.entries(((_a = this._meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed.servers) || {}).forEach(([serverName, server]) => { - if (allowedServers.length === 0 || allowedServers.includes(serverName)) { - servers.push(this.createModel(Server, server, { id: serverName, pointer: `/servers/${serverName}` })); - } - }); - return new Servers(servers); - } - operations() { - const operations = []; - ['publish', 'subscribe'].forEach(operationAction => { - const id = this._json[operationAction] && this._json[operationAction].operationId || `${this.meta().id}_${operationAction}`; - if (this._json[operationAction]) { - operations.push(this.createModel(Operation, this._json[operationAction], { id, action: operationAction, pointer: `${this._meta.pointer}/${operationAction}` })); - } - }); - return new Operations(operations); - } - messages() { - const messages = []; - this.operations().forEach(operation => messages.push(...operation.messages().all())); - return new Messages(messages); - } - parameters() { - return new ChannelParameters(Object.entries(this._json.parameters || {}).map(([channelParameterName, channelParameter]) => { - return this.createModel(ChannelParameter, channelParameter, { - id: channelParameterName, - pointer: `${this._meta.pointer}/parameters/${channelParameterName}` - }); - })); - } - bindings() { - return bindings(this); - } - extensions() { - return extensions(this); - } -} diff --git a/esm/models/v2/channels.d.ts b/esm/models/v2/channels.d.ts deleted file mode 100644 index 01b199506..000000000 --- a/esm/models/v2/channels.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Collection } from '../collection'; -import type { ChannelsInterface } from '../channels'; -import type { ChannelInterface } from '../channel'; -export declare class Channels extends Collection implements ChannelsInterface { - get(id: string): ChannelInterface | undefined; - filterBySend(): ChannelInterface[]; - filterByReceive(): ChannelInterface[]; -} diff --git a/esm/models/v2/channels.js b/esm/models/v2/channels.js deleted file mode 100644 index fa86c7cae..000000000 --- a/esm/models/v2/channels.js +++ /dev/null @@ -1,12 +0,0 @@ -import { Collection } from '../collection'; -export class Channels extends Collection { - get(id) { - return this.collections.find(channel => channel.id() === id); - } - filterBySend() { - return this.filterBy(channel => channel.operations().filterBySend().length > 0); - } - filterByReceive() { - return this.filterBy(channel => channel.operations().filterByReceive().length > 0); - } -} diff --git a/esm/models/v2/components.d.ts b/esm/models/v2/components.d.ts deleted file mode 100644 index 3d4422373..000000000 --- a/esm/models/v2/components.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { BaseModel } from '../base'; -import { Collection } from '../collection'; -import { CorrelationIds } from './correlation-ids'; -import type { BindingsInterface } from '../bindings'; -import type { ComponentsInterface } from '../components'; -import type { ExtensionsInterface } from '../extensions'; -import type { Constructor } from '../utils'; -import type { ServersInterface } from '../servers'; -import type { ChannelsInterface } from '../channels'; -import type { MessagesInterface } from '../messages'; -import type { SchemasInterface } from '../schemas'; -import type { ChannelParametersInterface } from '../channel-parameters'; -import type { ServerVariablesInterface } from '../server-variables'; -import type { OperationTraitsInterface } from '../operation-traits'; -import type { SecuritySchemesInterface } from '../security-schemes'; -import type { MessageTraitsInterface } from '../message-traits'; -import type { OperationsInterface } from '../operations'; -import type { v2 } from '../../spec-types'; -export declare class Components extends BaseModel implements ComponentsInterface { - servers(): ServersInterface; - channels(): ChannelsInterface; - messages(): MessagesInterface; - schemas(): SchemasInterface; - channelParameters(): ChannelParametersInterface; - serverVariables(): ServerVariablesInterface; - operations(): OperationsInterface; - operationTraits(): OperationTraitsInterface; - messageTraits(): MessageTraitsInterface; - correlationIds(): CorrelationIds; - securitySchemes(): SecuritySchemesInterface; - serverBindings(): Record; - channelBindings(): Record; - operationBindings(): Record; - messageBindings(): Record; - extensions(): ExtensionsInterface; - isEmpty(): boolean; - protected createCollection, T extends BaseModel>(itemsName: keyof v2.ComponentsObject, collectionModel: Constructor, itemModel: Constructor): M; - protected createBindings(itemsName: 'serverBindings' | 'channelBindings' | 'operationBindings' | 'messageBindings'): Record; -} diff --git a/esm/models/v2/components.js b/esm/models/v2/components.js deleted file mode 100644 index db1589e0f..000000000 --- a/esm/models/v2/components.js +++ /dev/null @@ -1,97 +0,0 @@ -import { BaseModel } from '../base'; -import { Bindings } from './bindings'; -import { Binding } from './binding'; -import { Channel } from './channel'; -import { ChannelParameter } from './channel-parameter'; -import { CorrelationId } from './correlation-id'; -import { MessageTrait } from './message-trait'; -import { OperationTrait } from './operation-trait'; -import { Schema } from './schema'; -import { SecurityScheme } from './security-scheme'; -import { Server } from './server'; -import { ServerVariable } from './server-variable'; -import { extensions } from './mixins'; -import { Servers } from './servers'; -import { Channels } from './channels'; -import { Messages } from './messages'; -import { Schemas } from './schemas'; -import { ChannelParameters } from './channel-parameters'; -import { ServerVariables } from './server-variables'; -import { OperationTraits } from './operation-traits'; -import { MessageTraits } from './message-traits'; -import { SecuritySchemes } from './security-schemes'; -import { CorrelationIds } from './correlation-ids'; -import { Operations } from './operations'; -import { Message } from './message'; -import { tilde } from '../../utils'; -export class Components extends BaseModel { - servers() { - return this.createCollection('servers', Servers, Server); - } - channels() { - return new Channels(Object.entries(this._json.channels || {}).map(([channelAddress, channel]) => this.createModel(Channel, channel, { id: channelAddress, address: '', pointer: `/components/channels/${tilde(channelAddress)}` }))); - } - messages() { - return this.createCollection('messages', Messages, Message); - } - schemas() { - return this.createCollection('schemas', Schemas, Schema); - } - channelParameters() { - return this.createCollection('parameters', ChannelParameters, ChannelParameter); - } - serverVariables() { - return this.createCollection('serverVariables', ServerVariables, ServerVariable); - } - operations() { - const operations = []; - this.channels().forEach(channel => operations.push(...channel.operations().all())); - return new Operations(operations); - } - operationTraits() { - return this.createCollection('operationTraits', OperationTraits, OperationTrait); - } - messageTraits() { - return this.createCollection('messageTraits', MessageTraits, MessageTrait); - } - correlationIds() { - return this.createCollection('correlationIds', CorrelationIds, CorrelationId); - } - securitySchemes() { - return this.createCollection('securitySchemes', SecuritySchemes, SecurityScheme); - } - serverBindings() { - return this.createBindings('serverBindings'); - } - channelBindings() { - return this.createBindings('channelBindings'); - } - operationBindings() { - return this.createBindings('operationBindings'); - } - messageBindings() { - return this.createBindings('messageBindings'); - } - extensions() { - return extensions(this); - } - isEmpty() { - return Object.keys(this._json).length === 0; - } - createCollection(itemsName, collectionModel, itemModel) { - const collectionItems = []; - Object.entries(this._json[itemsName] || {}).forEach(([id, item]) => { - collectionItems.push(this.createModel(itemModel, item, { id, pointer: `/components/${itemsName}/${id}` })); - }); - return new collectionModel(collectionItems); - } - createBindings(itemsName) { - return Object.entries(this._json[itemsName] || {}).reduce((bindings, [name, item]) => { - const bindingsData = item || {}; - const asyncapi = this.meta('asyncapi'); - const pointer = `components/${itemsName}/${name}`; - bindings[name] = new Bindings(Object.entries(bindingsData).map(([protocol, binding]) => this.createModel(Binding, binding, { protocol, pointer: `${pointer}/${protocol}` })), { originalData: bindingsData, asyncapi, pointer }); - return bindings; - }, {}); - } -} diff --git a/esm/models/v2/contact.d.ts b/esm/models/v2/contact.d.ts deleted file mode 100644 index cde7fe085..000000000 --- a/esm/models/v2/contact.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { BaseModel } from '../base'; -import type { ContactInterface } from '../contact'; -import type { ExtensionsInterface } from '../extensions'; -import type { v2 } from '../../spec-types'; -export declare class Contact extends BaseModel implements ContactInterface { - hasName(): boolean; - name(): string | undefined; - hasUrl(): boolean; - url(): string | undefined; - hasEmail(): boolean; - email(): string | undefined; - extensions(): ExtensionsInterface; -} diff --git a/esm/models/v2/contact.js b/esm/models/v2/contact.js deleted file mode 100644 index 5c92d0a87..000000000 --- a/esm/models/v2/contact.js +++ /dev/null @@ -1,25 +0,0 @@ -import { BaseModel } from '../base'; -import { extensions } from './mixins'; -export class Contact extends BaseModel { - hasName() { - return !!this._json.name; - } - name() { - return this._json.name; - } - hasUrl() { - return !!this._json.url; - } - url() { - return this._json.url; - } - hasEmail() { - return !!this._json.email; - } - email() { - return this._json.email; - } - extensions() { - return extensions(this); - } -} diff --git a/esm/models/v2/correlation-id.d.ts b/esm/models/v2/correlation-id.d.ts deleted file mode 100644 index cb1dc1ad6..000000000 --- a/esm/models/v2/correlation-id.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseModel } from '../base'; -import type { CorrelationIdInterface } from '../correlation-id'; -import type { ExtensionsInterface } from '../extensions'; -import type { v2 } from '../../spec-types'; -export declare class CorrelationId extends BaseModel implements CorrelationIdInterface { - hasDescription(): boolean; - description(): string | undefined; - hasLocation(): boolean; - location(): string | undefined; - extensions(): ExtensionsInterface; -} diff --git a/esm/models/v2/correlation-id.js b/esm/models/v2/correlation-id.js deleted file mode 100644 index 2c5f42ecb..000000000 --- a/esm/models/v2/correlation-id.js +++ /dev/null @@ -1,19 +0,0 @@ -import { BaseModel } from '../base'; -import { hasDescription, description, extensions } from './mixins'; -export class CorrelationId extends BaseModel { - hasDescription() { - return hasDescription(this); - } - description() { - return description(this); - } - hasLocation() { - return !!this._json.location; - } - location() { - return this._json.location; - } - extensions() { - return extensions(this); - } -} diff --git a/esm/models/v2/correlation-ids.d.ts b/esm/models/v2/correlation-ids.d.ts deleted file mode 100644 index 77f81c952..000000000 --- a/esm/models/v2/correlation-ids.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { CorrelationIdsInterface } from '../correlation-ids'; -import type { CorrelationIdInterface } from '../correlation-id'; -export declare class CorrelationIds extends Collection implements CorrelationIdsInterface { - get(id: string): CorrelationIdInterface | undefined; -} diff --git a/esm/models/v2/correlation-ids.js b/esm/models/v2/correlation-ids.js deleted file mode 100644 index 003666fc6..000000000 --- a/esm/models/v2/correlation-ids.js +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -export class CorrelationIds extends Collection { - get(id) { - return this.collections.find(correlationId => correlationId.meta('id') === id); - } -} diff --git a/esm/models/v2/extension.d.ts b/esm/models/v2/extension.d.ts deleted file mode 100644 index 6ebfad81c..000000000 --- a/esm/models/v2/extension.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { BaseModel } from '../base'; -import type { ExtensionInterface } from '../extension'; -import type { v2 } from '../../spec-types'; -export declare class Extension extends BaseModel, { - id: string; -}> implements ExtensionInterface { - id(): string; - version(): string; - value(): V; -} diff --git a/esm/models/v2/extension.js b/esm/models/v2/extension.js deleted file mode 100644 index 013f5caa1..000000000 --- a/esm/models/v2/extension.js +++ /dev/null @@ -1,12 +0,0 @@ -import { BaseModel } from '../base'; -export class Extension extends BaseModel { - id() { - return this._meta.id; - } - version() { - return 'to implement'; - } - value() { - return this._json; - } -} diff --git a/esm/models/v2/extensions.d.ts b/esm/models/v2/extensions.d.ts deleted file mode 100644 index 3033f8a44..000000000 --- a/esm/models/v2/extensions.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { ExtensionsInterface } from '../extensions'; -import type { ExtensionInterface } from '../extension'; -export declare class Extensions extends Collection implements ExtensionsInterface { - get(id: string): ExtensionInterface | undefined; -} diff --git a/esm/models/v2/extensions.js b/esm/models/v2/extensions.js deleted file mode 100644 index c08bbc30b..000000000 --- a/esm/models/v2/extensions.js +++ /dev/null @@ -1,7 +0,0 @@ -import { Collection } from '../collection'; -export class Extensions extends Collection { - get(id) { - id = id.startsWith('x-') ? id : `x-${id}`; - return this.collections.find(ext => ext.id() === id); - } -} diff --git a/esm/models/v2/external-docs.d.ts b/esm/models/v2/external-docs.d.ts deleted file mode 100644 index 279640c89..000000000 --- a/esm/models/v2/external-docs.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { BaseModel } from '../base'; -import type { ExternalDocumentationInterface } from '../external-docs'; -import type { ExtensionsInterface } from '../extensions'; -import type { v2 } from '../../spec-types'; -export declare class ExternalDocumentation extends BaseModel implements ExternalDocumentationInterface { - url(): string; - hasDescription(): boolean; - description(): string | undefined; - extensions(): ExtensionsInterface; -} diff --git a/esm/models/v2/external-docs.js b/esm/models/v2/external-docs.js deleted file mode 100644 index 4f179e56d..000000000 --- a/esm/models/v2/external-docs.js +++ /dev/null @@ -1,16 +0,0 @@ -import { BaseModel } from '../base'; -import { hasDescription, description, extensions } from './mixins'; -export class ExternalDocumentation extends BaseModel { - url() { - return this._json.url; - } - hasDescription() { - return hasDescription(this); - } - description() { - return description(this); - } - extensions() { - return extensions(this); - } -} diff --git a/esm/models/v2/index.d.ts b/esm/models/v2/index.d.ts deleted file mode 100644 index 5ce2f2622..000000000 --- a/esm/models/v2/index.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -export { AsyncAPIDocument as AsyncAPIDocumentV2 } from './asyncapi'; -export { Binding as BindingV2 } from './binding'; -export { Bindings as BindingsV2 } from './bindings'; -export { ChannelParameter as ChannelParameterV2 } from './channel-parameter'; -export { ChannelParameters as ChannelParametersV2 } from './channel-parameters'; -export { Channel as ChannelV2 } from './channel'; -export { Channels as ChannelsV2 } from './channels'; -export { Components as ComponentsV2 } from './components'; -export { Contact as ContactV2 } from './contact'; -export { CorrelationId as CorrelationIdV2 } from './correlation-id'; -export { Extension as ExtensionV2 } from './extension'; -export { Extensions as ExtensionsV2 } from './extensions'; -export { ExternalDocumentation as ExternalDocumentationV2 } from './external-docs'; -export { Info as InfoV2 } from './info'; -export { License as LicenseV2 } from './license'; -export { MessageExample as MessageExampleV2 } from './message-example'; -export { MessageExamples as MessageExamplesV2 } from './message-examples'; -export { MessageTrait as MessageTraitV2 } from './message-trait'; -export { MessageTraits as MessageTraitsV2 } from './message-traits'; -export { Message as MessageV2 } from './message'; -export { Messages as MessagesV2 } from './messages'; -export { OAuthFlow as OAuthFlowV2 } from './oauth-flow'; -export { OAuthFlows as OAuthFlowsV2 } from './oauth-flows'; -export { OperationTrait as OperationTraitV2 } from './operation-trait'; -export { OperationTraits as OperationTraitsV2 } from './operation-traits'; -export { Operation as OperationV2 } from './operation'; -export { Operations as OperationsV2 } from './operations'; -export { Schema as SchemaV2 } from './schema'; -export { Schemas as SchemasV2 } from './schemas'; -export { SecurityScheme as SecuritySchemeV2 } from './security-scheme'; -export { SecuritySchemes as SecuritySchemesV2 } from './security-schemes'; -export { ServerVariable as ServerVariableV2 } from './server-variable'; -export { ServerVariables as ServerVariablesV2 } from './server-variables'; -export { Server as ServerV2 } from './server'; -export { Servers as ServersV2 } from './servers'; -export { Tag as TagV2 } from './tag'; -export { Tags as TagsV2 } from './tags'; diff --git a/esm/models/v2/index.js b/esm/models/v2/index.js deleted file mode 100644 index 5ce2f2622..000000000 --- a/esm/models/v2/index.js +++ /dev/null @@ -1,37 +0,0 @@ -export { AsyncAPIDocument as AsyncAPIDocumentV2 } from './asyncapi'; -export { Binding as BindingV2 } from './binding'; -export { Bindings as BindingsV2 } from './bindings'; -export { ChannelParameter as ChannelParameterV2 } from './channel-parameter'; -export { ChannelParameters as ChannelParametersV2 } from './channel-parameters'; -export { Channel as ChannelV2 } from './channel'; -export { Channels as ChannelsV2 } from './channels'; -export { Components as ComponentsV2 } from './components'; -export { Contact as ContactV2 } from './contact'; -export { CorrelationId as CorrelationIdV2 } from './correlation-id'; -export { Extension as ExtensionV2 } from './extension'; -export { Extensions as ExtensionsV2 } from './extensions'; -export { ExternalDocumentation as ExternalDocumentationV2 } from './external-docs'; -export { Info as InfoV2 } from './info'; -export { License as LicenseV2 } from './license'; -export { MessageExample as MessageExampleV2 } from './message-example'; -export { MessageExamples as MessageExamplesV2 } from './message-examples'; -export { MessageTrait as MessageTraitV2 } from './message-trait'; -export { MessageTraits as MessageTraitsV2 } from './message-traits'; -export { Message as MessageV2 } from './message'; -export { Messages as MessagesV2 } from './messages'; -export { OAuthFlow as OAuthFlowV2 } from './oauth-flow'; -export { OAuthFlows as OAuthFlowsV2 } from './oauth-flows'; -export { OperationTrait as OperationTraitV2 } from './operation-trait'; -export { OperationTraits as OperationTraitsV2 } from './operation-traits'; -export { Operation as OperationV2 } from './operation'; -export { Operations as OperationsV2 } from './operations'; -export { Schema as SchemaV2 } from './schema'; -export { Schemas as SchemasV2 } from './schemas'; -export { SecurityScheme as SecuritySchemeV2 } from './security-scheme'; -export { SecuritySchemes as SecuritySchemesV2 } from './security-schemes'; -export { ServerVariable as ServerVariableV2 } from './server-variable'; -export { ServerVariables as ServerVariablesV2 } from './server-variables'; -export { Server as ServerV2 } from './server'; -export { Servers as ServersV2 } from './servers'; -export { Tag as TagV2 } from './tag'; -export { Tags as TagsV2 } from './tags'; diff --git a/esm/models/v2/info.d.ts b/esm/models/v2/info.d.ts deleted file mode 100644 index 6f87dbdd8..000000000 --- a/esm/models/v2/info.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { BaseModel } from '../base'; -import type { ContactInterface } from '../contact'; -import type { InfoInterface } from '../info'; -import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; -import type { LicenseInterface } from '../license'; -import type { TagsInterface } from '../tags'; -import type { v2 } from '../../spec-types'; -export declare class Info extends BaseModel implements InfoInterface { - title(): string; - version(): string; - hasId(): boolean; - id(): string | undefined; - hasDescription(): boolean; - description(): string | undefined; - hasTermsOfService(): boolean; - termsOfService(): string | undefined; - hasContact(): boolean; - contact(): ContactInterface | undefined; - hasLicense(): boolean; - license(): LicenseInterface | undefined; - hasExternalDocs(): boolean; - externalDocs(): ExternalDocumentationInterface | undefined; - tags(): TagsInterface; - extensions(): ExtensionsInterface; -} diff --git a/esm/models/v2/info.js b/esm/models/v2/info.js deleted file mode 100644 index f11d8dabe..000000000 --- a/esm/models/v2/info.js +++ /dev/null @@ -1,62 +0,0 @@ -import { BaseModel } from '../base'; -import { Contact } from './contact'; -import { ExternalDocumentation } from './external-docs'; -import { License } from './license'; -import { Tags } from './tags'; -import { Tag } from './tag'; -import { hasDescription, description, extensions } from './mixins'; -export class Info extends BaseModel { - title() { - return this._json.title; - } - version() { - return this._json.version; - } - hasId() { - return !!this._meta.asyncapi.parsed.id; - } - id() { - return this._meta.asyncapi.parsed.id; - } - hasDescription() { - return hasDescription(this); - } - description() { - return description(this); - } - hasTermsOfService() { - return !!this._json.termsOfService; - } - termsOfService() { - return this._json.termsOfService; - } - hasContact() { - return Object.keys(this._json.contact || {}).length > 0; - } - contact() { - const contact = this._json.contact; - return contact && this.createModel(Contact, contact, { pointer: '/info/contact' }); - } - hasLicense() { - return Object.keys(this._json.license || {}).length > 0; - } - license() { - const license = this._json.license; - return license && this.createModel(License, license, { pointer: '/info/license' }); - } - hasExternalDocs() { - return Object.keys(this._meta.asyncapi.parsed.externalDocs || {}).length > 0; - } - externalDocs() { - if (this.hasExternalDocs()) { - return this.createModel(ExternalDocumentation, this._meta.asyncapi.parsed.externalDocs, { pointer: '/externalDocs' }); - } - } - tags() { - const tags = this._meta.asyncapi.parsed.tags || []; - return new Tags(tags.map((tag, idx) => this.createModel(Tag, tag, { pointer: `/tags/${idx}` }))); - } - extensions() { - return extensions(this); - } -} diff --git a/esm/models/v2/license.d.ts b/esm/models/v2/license.d.ts deleted file mode 100644 index 351865595..000000000 --- a/esm/models/v2/license.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { BaseModel } from '../base'; -import type { ExtensionsInterface } from '../extensions'; -import type { LicenseInterface } from '../license'; -import type { v2 } from '../../spec-types'; -export declare class License extends BaseModel implements LicenseInterface { - name(): string; - hasUrl(): boolean; - url(): string | undefined; - extensions(): ExtensionsInterface; -} diff --git a/esm/models/v2/license.js b/esm/models/v2/license.js deleted file mode 100644 index 4b4471083..000000000 --- a/esm/models/v2/license.js +++ /dev/null @@ -1,16 +0,0 @@ -import { BaseModel } from '../base'; -import { extensions } from './mixins'; -export class License extends BaseModel { - name() { - return this._json.name; - } - hasUrl() { - return !!this._json.url; - } - url() { - return this._json.url; - } - extensions() { - return extensions(this); - } -} diff --git a/esm/models/v2/message-example.d.ts b/esm/models/v2/message-example.d.ts deleted file mode 100644 index e8a843b55..000000000 --- a/esm/models/v2/message-example.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { BaseModel } from '../base'; -import type { ExtensionsInterface } from '../extensions'; -import type { MessageExampleInterface } from '../message-example'; -import type { v2 } from '../../spec-types'; -export declare class MessageExample extends BaseModel implements MessageExampleInterface { - hasName(): boolean; - name(): string | undefined; - hasSummary(): boolean; - summary(): string | undefined; - hasHeaders(): boolean; - headers(): Record | undefined; - hasPayload(): boolean; - payload(): Record | undefined; - extensions(): ExtensionsInterface; -} diff --git a/esm/models/v2/message-example.js b/esm/models/v2/message-example.js deleted file mode 100644 index 1ac519e15..000000000 --- a/esm/models/v2/message-example.js +++ /dev/null @@ -1,31 +0,0 @@ -import { BaseModel } from '../base'; -import { extensions } from './mixins'; -export class MessageExample extends BaseModel { - hasName() { - return !!this._json.name; - } - name() { - return this._json.name; - } - hasSummary() { - return !!this._json.summary; - } - summary() { - return this._json.summary; - } - hasHeaders() { - return !!this._json.headers; - } - headers() { - return this._json.headers; - } - hasPayload() { - return !!this._json.payload; - } - payload() { - return this._json.payload; - } - extensions() { - return extensions(this); - } -} diff --git a/esm/models/v2/message-examples.d.ts b/esm/models/v2/message-examples.d.ts deleted file mode 100644 index 0784e9dc1..000000000 --- a/esm/models/v2/message-examples.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { MessageExamplesInterface } from '../message-examples'; -import type { MessageExampleInterface } from '../message-example'; -export declare class MessageExamples extends Collection implements MessageExamplesInterface { - get(name: string): MessageExampleInterface | undefined; -} diff --git a/esm/models/v2/message-examples.js b/esm/models/v2/message-examples.js deleted file mode 100644 index 2ba751d5b..000000000 --- a/esm/models/v2/message-examples.js +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -export class MessageExamples extends Collection { - get(name) { - return this.collections.find(example => example.name() === name); - } -} diff --git a/esm/models/v2/message-trait.d.ts b/esm/models/v2/message-trait.d.ts deleted file mode 100644 index 50e2dd642..000000000 --- a/esm/models/v2/message-trait.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { BaseModel } from '../base'; -import type { BindingsInterface } from '../bindings'; -import type { CorrelationIdInterface } from '../correlation-id'; -import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; -import type { MessageExamplesInterface } from '../message-examples'; -import type { MessageTraitInterface } from '../message-trait'; -import type { SchemaInterface } from '../schema'; -import type { TagsInterface } from '../tags'; -import type { v2 } from '../../spec-types'; -export declare class MessageTrait extends BaseModel implements MessageTraitInterface { - id(): string; - schemaFormat(): string; - hasMessageId(): boolean; - messageId(): string | undefined; - hasCorrelationId(): boolean; - correlationId(): CorrelationIdInterface | undefined; - hasContentType(): boolean; - contentType(): string | undefined; - hasHeaders(): boolean; - headers(): SchemaInterface | undefined; - hasName(): boolean; - name(): string | undefined; - hasTitle(): boolean; - title(): string | undefined; - hasSummary(): boolean; - summary(): string | undefined; - hasDescription(): boolean; - description(): string | undefined; - hasExternalDocs(): boolean; - externalDocs(): ExternalDocumentationInterface | undefined; - examples(): MessageExamplesInterface; - tags(): TagsInterface; - bindings(): BindingsInterface; - extensions(): ExtensionsInterface; -} diff --git a/esm/models/v2/message-trait.js b/esm/models/v2/message-trait.js deleted file mode 100644 index 2fd35ea43..000000000 --- a/esm/models/v2/message-trait.js +++ /dev/null @@ -1,90 +0,0 @@ -import { BaseModel } from '../base'; -import { CorrelationId } from './correlation-id'; -import { MessageExamples } from './message-examples'; -import { MessageExample } from './message-example'; -import { Schema } from './schema'; -import { xParserMessageName } from '../../constants'; -import { getDefaultSchemaFormat } from '../../schema-parser'; -import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from './mixins'; -export class MessageTrait extends BaseModel { - id() { - var _a; - return this.messageId() || this._meta.id || ((_a = this.extensions().get(xParserMessageName)) === null || _a === void 0 ? void 0 : _a.value()); - } - schemaFormat() { - return this._json.schemaFormat || getDefaultSchemaFormat(this._meta.asyncapi.semver.version); - } - hasMessageId() { - return !!this._json.messageId; - } - messageId() { - return this._json.messageId; - } - hasCorrelationId() { - return !!this._json.correlationId; - } - correlationId() { - if (!this._json.correlationId) - return undefined; - return this.createModel(CorrelationId, this._json.correlationId, { pointer: `${this._meta.pointer}/correlationId` }); - } - hasContentType() { - return !!this._json.contentType; - } - contentType() { - var _a; - return this._json.contentType || ((_a = this._meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed.defaultContentType); - } - hasHeaders() { - return !!this._json.headers; - } - headers() { - if (!this._json.headers) - return undefined; - return this.createModel(Schema, this._json.headers, { pointer: `${this._meta.pointer}/headers` }); - } - hasName() { - return !!this._json.name; - } - name() { - return this._json.name; - } - hasTitle() { - return !!this._json.title; - } - title() { - return this._json.title; - } - hasSummary() { - return !!this._json.summary; - } - summary() { - return this._json.summary; - } - hasDescription() { - return hasDescription(this); - } - description() { - return description(this); - } - hasExternalDocs() { - return hasExternalDocs(this); - } - externalDocs() { - return externalDocs(this); - } - examples() { - return new MessageExamples((this._json.examples || []).map((example, index) => { - return this.createModel(MessageExample, example, { pointer: `${this._meta.pointer}/examples/${index}` }); - })); - } - tags() { - return tags(this); - } - bindings() { - return bindings(this); - } - extensions() { - return extensions(this); - } -} diff --git a/esm/models/v2/message-traits.d.ts b/esm/models/v2/message-traits.d.ts deleted file mode 100644 index 8601210f2..000000000 --- a/esm/models/v2/message-traits.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { MessageTraitsInterface } from '../message-traits'; -import type { MessageTraitInterface } from '../message-trait'; -export declare class MessageTraits extends Collection implements MessageTraitsInterface { - get(id: string): MessageTraitInterface | undefined; -} diff --git a/esm/models/v2/message-traits.js b/esm/models/v2/message-traits.js deleted file mode 100644 index fc8828184..000000000 --- a/esm/models/v2/message-traits.js +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -export class MessageTraits extends Collection { - get(id) { - return this.collections.find(trait => trait.id() === id); - } -} diff --git a/esm/models/v2/message.d.ts b/esm/models/v2/message.d.ts deleted file mode 100644 index 9d7ee229a..000000000 --- a/esm/models/v2/message.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { MessageTrait } from './message-trait'; -import type { ChannelsInterface } from '../channels'; -import type { MessageInterface } from '../message'; -import type { MessageTraitsInterface } from '../message-traits'; -import type { OperationsInterface } from '../operations'; -import type { ServersInterface } from '../servers'; -import type { SchemaInterface } from '../schema'; -import type { v2 } from '../../spec-types'; -export declare class Message extends MessageTrait implements MessageInterface { - hasPayload(): boolean; - payload(): SchemaInterface | undefined; - servers(): ServersInterface; - channels(): ChannelsInterface; - operations(): OperationsInterface; - traits(): MessageTraitsInterface; -} diff --git a/esm/models/v2/message.js b/esm/models/v2/message.js deleted file mode 100644 index 7d98c607b..000000000 --- a/esm/models/v2/message.js +++ /dev/null @@ -1,63 +0,0 @@ -import { Channels } from './channels'; -import { Operations } from './operations'; -import { Operation } from './operation'; -import { MessageTraits } from './message-traits'; -import { MessageTrait } from './message-trait'; -import { Servers } from './servers'; -import { Schema } from './schema'; -import { tilde } from '../../utils'; -export class Message extends MessageTrait { - hasPayload() { - return !!this._json.payload; - } - payload() { - if (!this._json.payload) - return undefined; - return this.createModel(Schema, this._json.payload, { pointer: `${this._meta.pointer}/payload` }); - } - servers() { - const servers = []; - const serversData = []; - this.channels().forEach(channel => { - channel.servers().forEach(server => { - if (!serversData.includes(server.json())) { - serversData.push(server.json()); - servers.push(server); - } - }); - }); - return new Servers(servers); - } - channels() { - const channels = []; - const channelsData = []; - this.operations().all().forEach(operation => { - operation.channels().forEach(channel => { - if (!channelsData.includes(channel.json())) { - channelsData.push(channel.json()); - channels.push(channel); - } - }); - }); - return new Channels(channels); - } - operations() { - var _a; - const operations = []; - Object.entries(((_a = this._meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed.channels) || {}).forEach(([channelAddress, channel]) => { - ['subscribe', 'publish'].forEach(operationAction => { - const operation = channel[operationAction]; - if (operation && (operation.message === this._json || - (operation.message.oneOf || []).includes(this._json))) { - operations.push(this.createModel(Operation, operation, { id: '', pointer: `/channels/${tilde(channelAddress)}/${operationAction}`, action: operationAction })); - } - }); - }); - return new Operations(operations); - } - traits() { - return new MessageTraits((this._json.traits || []).map((trait, index) => { - return this.createModel(MessageTrait, trait, { id: '', pointer: `${this._meta.pointer}/traits/${index}` }); - })); - } -} diff --git a/esm/models/v2/messages.d.ts b/esm/models/v2/messages.d.ts deleted file mode 100644 index d988f36fb..000000000 --- a/esm/models/v2/messages.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Collection } from '../collection'; -import type { MessagesInterface } from '../messages'; -import type { MessageInterface } from '../message'; -export declare class Messages extends Collection implements MessagesInterface { - get(name: string): MessageInterface | undefined; - filterBySend(): MessageInterface[]; - filterByReceive(): MessageInterface[]; -} diff --git a/esm/models/v2/messages.js b/esm/models/v2/messages.js deleted file mode 100644 index 5d2fb8d72..000000000 --- a/esm/models/v2/messages.js +++ /dev/null @@ -1,12 +0,0 @@ -import { Collection } from '../collection'; -export class Messages extends Collection { - get(name) { - return this.collections.find(message => message.id() === name); - } - filterBySend() { - return this.filterBy(message => message.operations().filterBySend().length > 0); - } - filterByReceive() { - return this.filterBy(message => message.operations().filterByReceive().length > 0); - } -} diff --git a/esm/models/v2/mixins.d.ts b/esm/models/v2/mixins.d.ts deleted file mode 100644 index 08b4d9d43..000000000 --- a/esm/models/v2/mixins.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type { BaseModel } from '../base'; -import type { BindingsInterface } from '../bindings'; -import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; -import type { TagsInterface } from '../tags'; -import type { v2 } from '../../spec-types'; -export declare function bindings(model: BaseModel<{ - bindings?: Record; -}>): BindingsInterface; -export declare function hasDescription(model: BaseModel<{ - description?: string; -}>): boolean; -export declare function description(model: BaseModel<{ - description?: string; -}>): string | undefined; -export declare function extensions(model: BaseModel): ExtensionsInterface; -export declare function hasExternalDocs(model: BaseModel<{ - externalDocs?: v2.ExternalDocumentationObject; -}>): boolean; -export declare function externalDocs(model: BaseModel<{ - externalDocs?: v2.ExternalDocumentationObject; -}>): ExternalDocumentationInterface | undefined; -export declare function tags(model: BaseModel<{ - tags?: v2.TagsObject; -}>): TagsInterface; diff --git a/esm/models/v2/mixins.js b/esm/models/v2/mixins.js deleted file mode 100644 index 16b4d40d0..000000000 --- a/esm/models/v2/mixins.js +++ /dev/null @@ -1,39 +0,0 @@ -import { Bindings } from './bindings'; -import { Binding } from './binding'; -import { Extensions } from './extensions'; -import { Extension } from './extension'; -import { ExternalDocumentation } from './external-docs'; -import { Tags } from './tags'; -import { Tag } from './tag'; -import { createModel } from '../utils'; -import { EXTENSION_REGEX } from '../../constants'; -export function bindings(model) { - const bindings = model.json('bindings') || {}; - return new Bindings(Object.entries(bindings || {}).map(([protocol, binding]) => createModel(Binding, binding, { protocol, pointer: model.jsonPath(`bindings/${protocol}`) }, model)), { originalData: bindings, asyncapi: model.meta('asyncapi'), pointer: model.jsonPath('bindings') }); -} -export function hasDescription(model) { - return Boolean(description(model)); -} -export function description(model) { - return model.json('description'); -} -export function extensions(model) { - const extensions = []; - Object.entries(model.json()).forEach(([id, value]) => { - if (EXTENSION_REGEX.test(id)) { - extensions.push(createModel(Extension, value, { id, pointer: model.jsonPath(id) }, model)); - } - }); - return new Extensions(extensions); -} -export function hasExternalDocs(model) { - return Object.keys(model.json('externalDocs') || {}).length > 0; -} -export function externalDocs(model) { - if (hasExternalDocs(model)) { - return new ExternalDocumentation(model.json('externalDocs')); - } -} -export function tags(model) { - return new Tags((model.json('tags') || []).map((tag, idx) => createModel(Tag, tag, { pointer: model.jsonPath(`tags/${idx}`) }, model))); -} diff --git a/esm/models/v2/oauth-flow.d.ts b/esm/models/v2/oauth-flow.d.ts deleted file mode 100644 index e7b13eb0e..000000000 --- a/esm/models/v2/oauth-flow.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { BaseModel } from '../base'; -import type { ExtensionsInterface } from '../extensions'; -import type { OAuthFlowInterface } from '../oauth-flow'; -import type { v2 } from '../../spec-types'; -export declare class OAuthFlow extends BaseModel implements OAuthFlowInterface { - authorizationUrl(): string | undefined; - hasRefreshUrl(): boolean; - refreshUrl(): string | undefined; - scopes(): Record | undefined; - tokenUrl(): string | undefined; - extensions(): ExtensionsInterface; -} diff --git a/esm/models/v2/oauth-flow.js b/esm/models/v2/oauth-flow.js deleted file mode 100644 index 16d9a1e2d..000000000 --- a/esm/models/v2/oauth-flow.js +++ /dev/null @@ -1,22 +0,0 @@ -import { BaseModel } from '../base'; -import { extensions } from './mixins'; -export class OAuthFlow extends BaseModel { - authorizationUrl() { - return this.json().authorizationUrl; - } - hasRefreshUrl() { - return !!this._json.refreshUrl; - } - refreshUrl() { - return this._json.refreshUrl; - } - scopes() { - return this._json.scopes; - } - tokenUrl() { - return this.json().tokenUrl; - } - extensions() { - return extensions(this); - } -} diff --git a/esm/models/v2/oauth-flows.d.ts b/esm/models/v2/oauth-flows.d.ts deleted file mode 100644 index 9ff0b07ed..000000000 --- a/esm/models/v2/oauth-flows.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { BaseModel } from '../base'; -import type { ExtensionsInterface } from '../extensions'; -import type { OAuthFlowsInterface } from '../oauth-flows'; -import type { OAuthFlowInterface } from '../oauth-flow'; -import type { v2 } from '../../spec-types'; -export declare class OAuthFlows extends BaseModel implements OAuthFlowsInterface { - hasAuthorizationCode(): boolean; - authorizationCode(): OAuthFlowInterface | undefined; - hasClientCredentials(): boolean; - clientCredentials(): OAuthFlowInterface | undefined; - hasImplicit(): boolean; - implicit(): OAuthFlowInterface | undefined; - hasPassword(): boolean; - password(): OAuthFlowInterface | undefined; - extensions(): ExtensionsInterface; -} diff --git a/esm/models/v2/oauth-flows.js b/esm/models/v2/oauth-flows.js deleted file mode 100644 index ab5147e0e..000000000 --- a/esm/models/v2/oauth-flows.js +++ /dev/null @@ -1,40 +0,0 @@ -import { BaseModel } from '../base'; -import { OAuthFlow } from './oauth-flow'; -import { extensions } from './mixins'; -export class OAuthFlows extends BaseModel { - hasAuthorizationCode() { - return !!this._json.authorizationCode; - } - authorizationCode() { - if (!this._json.authorizationCode) - return undefined; - return new OAuthFlow(this._json.authorizationCode); - } - hasClientCredentials() { - return !!this._json.clientCredentials; - } - clientCredentials() { - if (!this._json.clientCredentials) - return undefined; - return new OAuthFlow(this._json.clientCredentials); - } - hasImplicit() { - return !!this._json.implicit; - } - implicit() { - if (!this._json.implicit) - return undefined; - return new OAuthFlow(this._json.implicit); - } - hasPassword() { - return !!this._json.password; - } - password() { - if (!this._json.password) - return undefined; - return new OAuthFlow(this._json.password); - } - extensions() { - return extensions(this); - } -} diff --git a/esm/models/v2/operation-trait.d.ts b/esm/models/v2/operation-trait.d.ts deleted file mode 100644 index 8836598bc..000000000 --- a/esm/models/v2/operation-trait.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { BaseModel } from '../base'; -import type { BindingsInterface } from '../bindings'; -import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; -import type { OperationAction } from '../operation'; -import type { OperationTraitInterface } from '../operation-trait'; -import type { TagsInterface } from '../tags'; -import type { v2 } from '../../spec-types'; -import { SecurityRequirements } from './security-requirements'; -export declare class OperationTrait extends BaseModel implements OperationTraitInterface { - id(): string; - action(): OperationAction; - hasOperationId(): boolean; - operationId(): string | undefined; - hasSummary(): boolean; - summary(): string | undefined; - hasDescription(): boolean; - description(): string | undefined; - hasExternalDocs(): boolean; - isSend(): boolean; - isReceive(): boolean; - externalDocs(): ExternalDocumentationInterface | undefined; - security(): SecurityRequirements[]; - tags(): TagsInterface; - bindings(): BindingsInterface; - extensions(): ExtensionsInterface; -} diff --git a/esm/models/v2/operation-trait.js b/esm/models/v2/operation-trait.js deleted file mode 100644 index 349c39742..000000000 --- a/esm/models/v2/operation-trait.js +++ /dev/null @@ -1,64 +0,0 @@ -import { BaseModel } from '../base'; -import { SecurityScheme } from './security-scheme'; -import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from './mixins'; -import { SecurityRequirements } from './security-requirements'; -import { SecurityRequirement } from './security-requirement'; -export class OperationTrait extends BaseModel { - id() { - return this.operationId() || this._meta.id; - } - action() { - return this._meta.action; - } - hasOperationId() { - return !!this._json.operationId; - } - operationId() { - return this._json.operationId; - } - hasSummary() { - return !!this._json.summary; - } - summary() { - return this._json.summary; - } - hasDescription() { - return hasDescription(this); - } - description() { - return description(this); - } - hasExternalDocs() { - return hasExternalDocs(this); - } - isSend() { - return this.action() === 'subscribe'; - } - isReceive() { - return this.action() === 'publish'; - } - externalDocs() { - return externalDocs(this); - } - security() { - var _a, _b, _c, _d; - const securitySchemes = (((_d = (_c = (_b = (_a = this._meta) === null || _a === void 0 ? void 0 : _a.asyncapi) === null || _b === void 0 ? void 0 : _b.parsed) === null || _c === void 0 ? void 0 : _c.components) === null || _d === void 0 ? void 0 : _d.securitySchemes) || {}); - return (this._json.security || []).map((requirement, index) => { - const requirements = []; - Object.entries(requirement).forEach(([security, scopes]) => { - const scheme = this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }); - requirements.push(this.createModel(SecurityRequirement, { scheme, scopes }, { id: security, pointer: `${this.meta().pointer}/security/${index}/${security}` })); - }); - return new SecurityRequirements(requirements); - }); - } - tags() { - return tags(this); - } - bindings() { - return bindings(this); - } - extensions() { - return extensions(this); - } -} diff --git a/esm/models/v2/operation-traits.d.ts b/esm/models/v2/operation-traits.d.ts deleted file mode 100644 index 0de03b0ff..000000000 --- a/esm/models/v2/operation-traits.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { OperationTraitsInterface } from '../operation-traits'; -import type { OperationTraitInterface } from '../operation-trait'; -export declare class OperationTraits extends Collection implements OperationTraitsInterface { - get(id: string): OperationTraitInterface | undefined; -} diff --git a/esm/models/v2/operation-traits.js b/esm/models/v2/operation-traits.js deleted file mode 100644 index e663f6589..000000000 --- a/esm/models/v2/operation-traits.js +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -export class OperationTraits extends Collection { - get(id) { - return this.collections.find(trait => trait.id() === id); - } -} diff --git a/esm/models/v2/operation.d.ts b/esm/models/v2/operation.d.ts deleted file mode 100644 index ef5f3e00b..000000000 --- a/esm/models/v2/operation.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { OperationTrait } from './operation-trait'; -import type { ChannelsInterface } from '../channels'; -import type { MessagesInterface } from '../messages'; -import type { OperationInterface } from '../operation'; -import type { OperationTraitsInterface } from '../operation-traits'; -import type { ServersInterface } from '../servers'; -import type { v2 } from '../../spec-types'; -export declare class Operation extends OperationTrait implements OperationInterface { - servers(): ServersInterface; - channels(): ChannelsInterface; - messages(): MessagesInterface; - traits(): OperationTraitsInterface; -} diff --git a/esm/models/v2/operation.js b/esm/models/v2/operation.js deleted file mode 100644 index f45a66609..000000000 --- a/esm/models/v2/operation.js +++ /dev/null @@ -1,53 +0,0 @@ -import { Channels } from './channels'; -import { Channel } from './channel'; -import { Messages } from './messages'; -import { Message } from './message'; -import { OperationTraits } from './operation-traits'; -import { OperationTrait } from './operation-trait'; -import { Servers } from './servers'; -import { tilde } from '../../utils'; -export class Operation extends OperationTrait { - servers() { - const servers = []; - const serversData = []; - this.channels().forEach(channel => { - channel.servers().forEach(server => { - if (!serversData.includes(server.json())) { - serversData.push(server.json()); - servers.push(server); - } - }); - }); - return new Servers(servers); - } - channels() { - const channels = []; - Object.entries(this._meta.asyncapi.parsed.channels || {}).forEach(([channelAddress, channel]) => { - if (channel.subscribe === this._json || channel.publish === this._json) { - channels.push(this.createModel(Channel, channel, { id: channelAddress, address: channelAddress, pointer: `/channels/${tilde(channelAddress)}` })); - } - }); - return new Channels(channels); - } - messages() { - let isOneOf = false; - let messages = []; - if (this._json.message) { - if (Array.isArray(this._json.message.oneOf)) { - messages = this._json.message.oneOf; - isOneOf = true; - } - else { - messages = [this._json.message]; - } - } - return new Messages(messages.map((message, index) => { - return this.createModel(Message, message, { id: '', pointer: `${this._meta.pointer}/message${isOneOf ? `/oneOf/${index}` : ''}` }); - })); - } - traits() { - return new OperationTraits((this._json.traits || []).map((trait, index) => { - return this.createModel(OperationTrait, trait, { id: '', pointer: `${this._meta.pointer}/traits/${index}`, action: '' }); - })); - } -} diff --git a/esm/models/v2/operations.d.ts b/esm/models/v2/operations.d.ts deleted file mode 100644 index 161cb9b2e..000000000 --- a/esm/models/v2/operations.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Collection } from '../collection'; -import type { OperationsInterface } from '../operations'; -import type { OperationInterface } from '../operation'; -export declare class Operations extends Collection implements OperationsInterface { - get(id: string): OperationInterface | undefined; - filterBySend(): OperationInterface[]; - filterByReceive(): OperationInterface[]; -} diff --git a/esm/models/v2/operations.js b/esm/models/v2/operations.js deleted file mode 100644 index 48e51ae25..000000000 --- a/esm/models/v2/operations.js +++ /dev/null @@ -1,12 +0,0 @@ -import { Collection } from '../collection'; -export class Operations extends Collection { - get(id) { - return this.collections.find(operation => operation.id() === id); - } - filterBySend() { - return this.filterBy(operation => operation.isSend()); - } - filterByReceive() { - return this.filterBy(operation => operation.isReceive()); - } -} diff --git a/esm/models/v2/schema.d.ts b/esm/models/v2/schema.d.ts deleted file mode 100644 index ce5ad2a24..000000000 --- a/esm/models/v2/schema.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { BaseModel } from '../base'; -import type { ModelMetadata } from '../base'; -import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; -import type { SchemaInterface } from '../schema'; -import type { v2 } from '../../spec-types'; -export declare class Schema extends BaseModel implements SchemaInterface { - constructor(_json: v2.AsyncAPISchemaObject, _meta?: ModelMetadata & { - id: string; - parent?: Schema; - }); - uid(): string; - $comment(): string | undefined; - $id(): string | undefined; - $schema(): string; - additionalItems(): boolean | SchemaInterface; - additionalProperties(): boolean | SchemaInterface; - allOf(): Array | undefined; - anyOf(): Array | undefined; - const(): any; - contains(): SchemaInterface | undefined; - contentEncoding(): string | undefined; - contentMediaType(): string | undefined; - default(): any; - definitions(): Record | undefined; - description(): string | undefined; - dependencies(): Record> | undefined; - deprecated(): boolean; - discriminator(): string | undefined; - else(): SchemaInterface | undefined; - enum(): Array | undefined; - examples(): Array | undefined; - exclusiveMaximum(): number | undefined; - exclusiveMinimum(): number | undefined; - format(): string | undefined; - isBooleanSchema(): boolean; - if(): SchemaInterface | undefined; - isCircular(): boolean; - items(): SchemaInterface | Array | undefined; - maximum(): number | undefined; - maxItems(): number | undefined; - maxLength(): number | undefined; - maxProperties(): number | undefined; - minimum(): number | undefined; - minItems(): number | undefined; - minLength(): number | undefined; - minProperties(): number | undefined; - multipleOf(): number | undefined; - not(): SchemaInterface | undefined; - oneOf(): Array | undefined; - pattern(): string | undefined; - patternProperties(): Record | undefined; - properties(): Record | undefined; - property(name: string): SchemaInterface | undefined; - propertyNames(): SchemaInterface | undefined; - readOnly(): boolean | undefined; - required(): Array | undefined; - then(): SchemaInterface | undefined; - title(): string | undefined; - type(): string | Array | undefined; - uniqueItems(): boolean | undefined; - writeOnly(): boolean | undefined; - hasExternalDocs(): boolean; - externalDocs(): ExternalDocumentationInterface | undefined; - extensions(): ExtensionsInterface; -} diff --git a/esm/models/v2/schema.js b/esm/models/v2/schema.js deleted file mode 100644 index f6e845972..000000000 --- a/esm/models/v2/schema.js +++ /dev/null @@ -1,309 +0,0 @@ -import { BaseModel } from '../base'; -import { xParserSchemaId } from '../../constants'; -import { extensions, hasExternalDocs, externalDocs } from './mixins'; -import { retrievePossibleRef, hasRef } from '../../utils'; -export class Schema extends BaseModel { - constructor(_json, _meta = {}) { - var _a; - _json = retrievePossibleRef(_json, _meta.pointer, (_a = _meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed); - super(_json, _meta); - } - uid() { - var _a; - return this._meta.id || ((_a = this.extensions().get(xParserSchemaId)) === null || _a === void 0 ? void 0 : _a.value()); - } - $comment() { - if (typeof this._json === 'boolean') - return; - return this._json.$comment; - } - $id() { - if (typeof this._json === 'boolean') - return; - return this._json.$id; - } - $schema() { - if (typeof this._json === 'boolean') - return 'http://json-schema.org/draft-07/schema#'; - return this._json.$schema || 'http://json-schema.org/draft-07/schema#'; - } - additionalItems() { - if (typeof this._json === 'boolean') - return this._json; - if (this._json.additionalItems === undefined) - return true; - if (typeof this._json.additionalItems === 'boolean') - return this._json.additionalItems; - return this.createModel(Schema, this._json.additionalItems, { pointer: `${this._meta.pointer}/additionalItems`, parent: this }); - } - additionalProperties() { - if (typeof this._json === 'boolean') - return this._json; - if (this._json.additionalProperties === undefined) - return true; - if (typeof this._json.additionalProperties === 'boolean') - return this._json.additionalProperties; - return this.createModel(Schema, this._json.additionalProperties, { pointer: `${this._meta.pointer}/additionalProperties`, parent: this }); - } - allOf() { - if (typeof this._json === 'boolean') - return; - if (!Array.isArray(this._json.allOf)) - return undefined; - return this._json.allOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/allOf/${index}`, parent: this })); - } - anyOf() { - if (typeof this._json === 'boolean') - return; - if (!Array.isArray(this._json.anyOf)) - return undefined; - return this._json.anyOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/anyOf/${index}`, parent: this })); - } - const() { - if (typeof this._json === 'boolean') - return; - return this._json.const; - } - contains() { - if (typeof this._json === 'boolean' || typeof this._json.contains !== 'object') - return; - return this.createModel(Schema, this._json.contains, { pointer: `${this._meta.pointer}/contains`, parent: this }); - } - contentEncoding() { - if (typeof this._json === 'boolean') - return; - return this._json.contentEncoding; - } - contentMediaType() { - if (typeof this._json === 'boolean') - return; - return this._json.contentMediaType; - } - default() { - if (typeof this._json === 'boolean') - return; - return this._json.default; - } - definitions() { - if (typeof this._json === 'boolean' || typeof this._json.definitions !== 'object') - return; - return Object.entries(this._json.definitions).reduce((acc, [key, s]) => { - acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/definitions/${key}`, parent: this }); - return acc; - }, {}); - } - description() { - if (typeof this._json === 'boolean') - return; - return this._json.description; - } - dependencies() { - if (typeof this._json === 'boolean') - return; - if (typeof this._json.dependencies !== 'object') - return undefined; - return Object.entries(this._json.dependencies).reduce((acc, [key, s]) => { - acc[key] = Array.isArray(s) ? s : this.createModel(Schema, s, { pointer: `${this._meta.pointer}/dependencies/${key}`, parent: this }); - return acc; - }, {}); - } - deprecated() { - if (typeof this._json === 'boolean') - return false; - return this._json.deprecated || false; - } - discriminator() { - if (typeof this._json === 'boolean') - return; - return this._json.discriminator; - } - else() { - if (typeof this._json === 'boolean' || typeof this._json.else !== 'object') - return; - return this.createModel(Schema, this._json.else, { pointer: `${this._meta.pointer}/else`, parent: this }); - } - enum() { - if (typeof this._json === 'boolean') - return; - return this._json.enum; - } - examples() { - if (typeof this._json === 'boolean') - return; - return this._json.examples; - } - exclusiveMaximum() { - if (typeof this._json === 'boolean') - return; - return this._json.exclusiveMaximum; - } - exclusiveMinimum() { - if (typeof this._json === 'boolean') - return; - return this._json.exclusiveMinimum; - } - format() { - if (typeof this._json === 'boolean') - return; - return this._json.format; - } - isBooleanSchema() { - return typeof this._json === 'boolean'; - } - if() { - if (typeof this._json === 'boolean' || typeof this._json.if !== 'object') - return; - return this.createModel(Schema, this._json.if, { pointer: `${this._meta.pointer}/if`, parent: this }); - } - isCircular() { - if (hasRef(this._json)) - return true; - let parent = this._meta.parent; - while (parent) { - if (parent._json === this._json) - return true; - parent = parent._meta.parent; - } - return false; - } - items() { - if (typeof this._json === 'boolean' || typeof this._json.items !== 'object') - return; - if (Array.isArray(this._json.items)) { - return this._json.items.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/items/${index}`, parent: this })); - } - return this.createModel(Schema, this._json.items, { pointer: `${this._meta.pointer}/items`, parent: this }); - } - maximum() { - if (typeof this._json === 'boolean') - return; - return this._json.maximum; - } - maxItems() { - if (typeof this._json === 'boolean') - return; - return this._json.maxItems; - } - maxLength() { - if (typeof this._json === 'boolean') - return; - return this._json.maxLength; - } - maxProperties() { - if (typeof this._json === 'boolean') - return; - return this._json.maxProperties; - } - minimum() { - if (typeof this._json === 'boolean') - return; - return this._json.minimum; - } - minItems() { - if (typeof this._json === 'boolean') - return; - return this._json.minItems; - } - minLength() { - if (typeof this._json === 'boolean') - return; - return this._json.minLength; - } - minProperties() { - if (typeof this._json === 'boolean') - return; - return this._json.minProperties; - } - multipleOf() { - if (typeof this._json === 'boolean') - return; - return this._json.multipleOf; - } - not() { - if (typeof this._json === 'boolean' || typeof this._json.not !== 'object') - return; - return this.createModel(Schema, this._json.not, { pointer: `${this._meta.pointer}/not`, parent: this }); - } - oneOf() { - if (typeof this._json === 'boolean') - return; - if (!Array.isArray(this._json.oneOf)) - return undefined; - return this._json.oneOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/oneOf/${index}`, parent: this })); - } - pattern() { - if (typeof this._json === 'boolean') - return; - return this._json.pattern; - } - patternProperties() { - if (typeof this._json === 'boolean' || typeof this._json.patternProperties !== 'object') - return; - return Object.entries(this._json.patternProperties).reduce((acc, [key, s]) => { - acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/patternProperties/${key}`, parent: this }); - return acc; - }, {}); - } - properties() { - if (typeof this._json === 'boolean' || typeof this._json.properties !== 'object') - return; - return Object.entries(this._json.properties).reduce((acc, [key, s]) => { - acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/properties/${key}`, parent: this }); - return acc; - }, {}); - } - property(name) { - if (typeof this._json === 'boolean' || typeof this._json.properties !== 'object' || typeof this._json.properties[name] !== 'object') - return; - return this.createModel(Schema, this._json.properties[name], { pointer: `${this._meta.pointer}/properties/${name}`, parent: this }); - } - propertyNames() { - if (typeof this._json === 'boolean' || typeof this._json.propertyNames !== 'object') - return; - return this.createModel(Schema, this._json.propertyNames, { pointer: `${this._meta.pointer}/propertyNames`, parent: this }); - } - readOnly() { - if (typeof this._json === 'boolean') - return false; - return this._json.readOnly || false; - } - required() { - if (typeof this._json === 'boolean') - return; - return this._json.required; - } - then() { - if (typeof this._json === 'boolean' || typeof this._json.then !== 'object') - return; - return this.createModel(Schema, this._json.then, { pointer: `${this._meta.pointer}/then`, parent: this }); - } - title() { - if (typeof this._json === 'boolean') - return; - return this._json.title; - } - type() { - if (typeof this._json === 'boolean') - return; - return this._json.type; - } - uniqueItems() { - if (typeof this._json === 'boolean') - return false; - return this._json.uniqueItems || false; - } - writeOnly() { - if (typeof this._json === 'boolean') - return false; - return this._json.writeOnly || false; - } - hasExternalDocs() { - return hasExternalDocs(this); - } - externalDocs() { - return externalDocs(this); - } - extensions() { - return extensions(this); - } -} diff --git a/esm/models/v2/schemas.d.ts b/esm/models/v2/schemas.d.ts deleted file mode 100644 index 15c1d17bc..000000000 --- a/esm/models/v2/schemas.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { SchemasInterface } from '../schemas'; -import type { SchemaInterface } from '../schema'; -export declare class Schemas extends Collection implements SchemasInterface { - get(id: string): SchemaInterface | undefined; -} diff --git a/esm/models/v2/schemas.js b/esm/models/v2/schemas.js deleted file mode 100644 index b78ec85fb..000000000 --- a/esm/models/v2/schemas.js +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -export class Schemas extends Collection { - get(id) { - return this.collections.find(schema => schema.uid() === id); - } -} diff --git a/esm/models/v2/security-requirement.d.ts b/esm/models/v2/security-requirement.d.ts deleted file mode 100644 index 88cb3a757..000000000 --- a/esm/models/v2/security-requirement.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { BaseModel } from '../base'; -import type { SecuritySchemeInterface } from '../security-scheme'; -import type { SecurityRequirementInterface } from '../security-requirement'; -export declare class SecurityRequirement extends BaseModel<{ - scopes?: string[]; - scheme: SecuritySchemeInterface; -}, { - id?: string; -}> implements SecurityRequirementInterface { - scheme(): SecuritySchemeInterface; - scopes(): string[]; -} diff --git a/esm/models/v2/security-requirement.js b/esm/models/v2/security-requirement.js deleted file mode 100644 index 2ce62cdfa..000000000 --- a/esm/models/v2/security-requirement.js +++ /dev/null @@ -1,9 +0,0 @@ -import { BaseModel } from '../base'; -export class SecurityRequirement extends BaseModel { - scheme() { - return this._json.scheme; - } - scopes() { - return this._json.scopes || []; - } -} diff --git a/esm/models/v2/security-requirements.d.ts b/esm/models/v2/security-requirements.d.ts deleted file mode 100644 index 882dd7bbc..000000000 --- a/esm/models/v2/security-requirements.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { SecurityRequirementsInterface } from '../security-requirements'; -import type { SecurityRequirementInterface } from '../security-requirement'; -export declare class SecurityRequirements extends Collection implements SecurityRequirementsInterface { - get(id: string): SecurityRequirementInterface | undefined; -} diff --git a/esm/models/v2/security-requirements.js b/esm/models/v2/security-requirements.js deleted file mode 100644 index f8c1cbc47..000000000 --- a/esm/models/v2/security-requirements.js +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -export class SecurityRequirements extends Collection { - get(id) { - return this.collections.find(securityRequirement => securityRequirement.meta('id') === id); - } -} diff --git a/esm/models/v2/security-scheme.d.ts b/esm/models/v2/security-scheme.d.ts deleted file mode 100644 index c87559674..000000000 --- a/esm/models/v2/security-scheme.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { BaseModel } from '../base'; -import type { ExtensionsInterface } from '../extensions'; -import type { SecuritySchemeInterface } from '../security-scheme'; -import type { OAuthFlowsInterface } from '../oauth-flows'; -import type { v2 } from '../../spec-types'; -export declare class SecurityScheme extends BaseModel implements SecuritySchemeInterface { - id(): string; - hasDescription(): boolean; - description(): string | undefined; - hasBearerFormat(): boolean; - bearerFormat(): string | undefined; - openIdConnectUrl(): string | undefined; - scheme(): string | undefined; - flows(): OAuthFlowsInterface | undefined; - type(): v2.SecuritySchemeType; - in(): v2.SecuritySchemaLocation | undefined; - extensions(): ExtensionsInterface; -} diff --git a/esm/models/v2/security-scheme.js b/esm/models/v2/security-scheme.js deleted file mode 100644 index bd3677e04..000000000 --- a/esm/models/v2/security-scheme.js +++ /dev/null @@ -1,40 +0,0 @@ -import { BaseModel } from '../base'; -import { OAuthFlows } from './oauth-flows'; -import { hasDescription, description, extensions } from './mixins'; -export class SecurityScheme extends BaseModel { - id() { - return this._meta.id; - } - hasDescription() { - return hasDescription(this); - } - description() { - return description(this); - } - hasBearerFormat() { - return !!this._json.bearerFormat; - } - bearerFormat() { - return this._json.bearerFormat; - } - openIdConnectUrl() { - return this._json.openIdConnectUrl; - } - scheme() { - return this._json.scheme; - } - flows() { - if (!this._json.flows) - return undefined; - return new OAuthFlows(this._json.flows); - } - type() { - return this._json.type; - } - in() { - return this._json.in; - } - extensions() { - return extensions(this); - } -} diff --git a/esm/models/v2/security-schemes.d.ts b/esm/models/v2/security-schemes.d.ts deleted file mode 100644 index e9d23e914..000000000 --- a/esm/models/v2/security-schemes.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { SecuritySchemesInterface } from '../security-schemes'; -import type { SecuritySchemeInterface } from '../security-scheme'; -export declare class SecuritySchemes extends Collection implements SecuritySchemesInterface { - get(id: string): SecuritySchemeInterface | undefined; -} diff --git a/esm/models/v2/security-schemes.js b/esm/models/v2/security-schemes.js deleted file mode 100644 index fea91c4b7..000000000 --- a/esm/models/v2/security-schemes.js +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -export class SecuritySchemes extends Collection { - get(id) { - return this.collections.find(securityScheme => securityScheme.id() === id); - } -} diff --git a/esm/models/v2/server-variable.d.ts b/esm/models/v2/server-variable.d.ts deleted file mode 100644 index 973203637..000000000 --- a/esm/models/v2/server-variable.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { BaseModel } from '../base'; -import type { ExtensionsInterface } from '../extensions'; -import type { ServerVariableInterface } from '../server-variable'; -import type { v2 } from '../../spec-types'; -export declare class ServerVariable extends BaseModel implements ServerVariableInterface { - id(): string; - hasDescription(): boolean; - description(): string | undefined; - hasDefaultValue(): boolean; - defaultValue(): string | undefined; - hasAllowedValues(): boolean; - allowedValues(): Array; - examples(): Array; - extensions(): ExtensionsInterface; -} diff --git a/esm/models/v2/server-variable.js b/esm/models/v2/server-variable.js deleted file mode 100644 index df9caa08d..000000000 --- a/esm/models/v2/server-variable.js +++ /dev/null @@ -1,31 +0,0 @@ -import { BaseModel } from '../base'; -import { hasDescription, description, extensions } from './mixins'; -export class ServerVariable extends BaseModel { - id() { - return this._meta.id; - } - hasDescription() { - return hasDescription(this); - } - description() { - return description(this); - } - hasDefaultValue() { - return !!this._json.default; - } - defaultValue() { - return this._json.default; - } - hasAllowedValues() { - return !!this._json.enum; - } - allowedValues() { - return this._json.enum || []; - } - examples() { - return this._json.examples || []; - } - extensions() { - return extensions(this); - } -} diff --git a/esm/models/v2/server-variables.d.ts b/esm/models/v2/server-variables.d.ts deleted file mode 100644 index 7e3ebe7f4..000000000 --- a/esm/models/v2/server-variables.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { ServerVariablesInterface } from '../server-variables'; -import type { ServerVariableInterface } from '../server-variable'; -export declare class ServerVariables extends Collection implements ServerVariablesInterface { - get(id: string): ServerVariableInterface | undefined; -} diff --git a/esm/models/v2/server-variables.js b/esm/models/v2/server-variables.js deleted file mode 100644 index 3ae580ded..000000000 --- a/esm/models/v2/server-variables.js +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -export class ServerVariables extends Collection { - get(id) { - return this.collections.find(variable => variable.id() === id); - } -} diff --git a/esm/models/v2/server.d.ts b/esm/models/v2/server.d.ts deleted file mode 100644 index 674244462..000000000 --- a/esm/models/v2/server.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { BaseModel } from '../base'; -import { SecurityRequirements } from './security-requirements'; -import type { ChannelsInterface } from '../channels'; -import type { OperationsInterface } from '../operations'; -import type { MessagesInterface } from '../messages'; -import type { ServerInterface } from '../server'; -import type { ServerVariablesInterface } from '../server-variables'; -import type { ExtensionsInterface } from '../extensions'; -import type { BindingsInterface } from '../bindings'; -import type { v2 } from '../../spec-types'; -export declare class Server extends BaseModel implements ServerInterface { - id(): string; - url(): string; - protocol(): string; - hasProtocolVersion(): boolean; - protocolVersion(): string | undefined; - hasDescription(): boolean; - description(): string | undefined; - channels(): ChannelsInterface; - operations(): OperationsInterface; - messages(): MessagesInterface; - variables(): ServerVariablesInterface; - security(): SecurityRequirements[]; - bindings(): BindingsInterface; - extensions(): ExtensionsInterface; -} diff --git a/esm/models/v2/server.js b/esm/models/v2/server.js deleted file mode 100644 index e5f4ac2da..000000000 --- a/esm/models/v2/server.js +++ /dev/null @@ -1,84 +0,0 @@ -import { BaseModel } from '../base'; -import { Channels } from './channels'; -import { Channel } from './channel'; -import { Messages } from './messages'; -import { Operations } from './operations'; -import { SecurityScheme } from './security-scheme'; -import { ServerVariables } from './server-variables'; -import { ServerVariable } from './server-variable'; -import { SecurityRequirements } from './security-requirements'; -import { SecurityRequirement } from './security-requirement'; -import { bindings, hasDescription, description, extensions } from './mixins'; -import { tilde } from '../../utils'; -export class Server extends BaseModel { - id() { - return this._meta.id; - } - url() { - return this._json.url; - } - protocol() { - return this._json.protocol; - } - hasProtocolVersion() { - return !!this._json.protocolVersion; - } - protocolVersion() { - return this._json.protocolVersion; - } - hasDescription() { - return hasDescription(this); - } - description() { - return description(this); - } - channels() { - var _a; - const channels = []; - Object.entries(((_a = this._meta.asyncapi) === null || _a === void 0 ? void 0 : _a.parsed.channels) || {}).forEach(([channelAddress, channel]) => { - const allowedServers = channel.servers || []; - if (allowedServers.length === 0 || allowedServers.includes(this._meta.id)) { - channels.push(this.createModel(Channel, channel, { id: channelAddress, address: channelAddress, pointer: `/channels/${tilde(channelAddress)}` })); - } - }); - return new Channels(channels); - } - operations() { - const operations = []; - this.channels().forEach(channel => { - operations.push(...channel.operations().all()); - }); - return new Operations(operations); - } - messages() { - const messages = []; - this.operations().forEach(operation => messages.push(...operation.messages().all())); - return new Messages(messages); - } - variables() { - return new ServerVariables(Object.entries(this._json.variables || {}).map(([serverVariableName, serverVariable]) => { - return this.createModel(ServerVariable, serverVariable, { - id: serverVariableName, - pointer: `${this._meta.pointer}/variables/${serverVariableName}` - }); - })); - } - security() { - var _a, _b, _c, _d; - const securitySchemes = (((_d = (_c = (_b = (_a = this._meta) === null || _a === void 0 ? void 0 : _a.asyncapi) === null || _b === void 0 ? void 0 : _b.parsed) === null || _c === void 0 ? void 0 : _c.components) === null || _d === void 0 ? void 0 : _d.securitySchemes) || {}); - return (this._json.security || []).map((requirement, index) => { - const requirements = []; - Object.entries(requirement).forEach(([security, scopes]) => { - const scheme = this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }); - requirements.push(this.createModel(SecurityRequirement, { scheme, scopes }, { id: security, pointer: `${this.meta().pointer}/security/${index}/${security}` })); - }); - return new SecurityRequirements(requirements); - }); - } - bindings() { - return bindings(this); - } - extensions() { - return extensions(this); - } -} diff --git a/esm/models/v2/servers.d.ts b/esm/models/v2/servers.d.ts deleted file mode 100644 index 101c8aa9e..000000000 --- a/esm/models/v2/servers.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Collection } from '../collection'; -import { ServerInterface } from '../server'; -import { ServersInterface } from '../servers'; -export declare class Servers extends Collection implements ServersInterface { - get(id: string): ServerInterface | undefined; - filterBySend(): ServerInterface[]; - filterByReceive(): ServerInterface[]; -} diff --git a/esm/models/v2/servers.js b/esm/models/v2/servers.js deleted file mode 100644 index 39df4d44f..000000000 --- a/esm/models/v2/servers.js +++ /dev/null @@ -1,12 +0,0 @@ -import { Collection } from '../collection'; -export class Servers extends Collection { - get(id) { - return this.collections.find(server => server.id() === id); - } - filterBySend() { - return this.filterBy(server => server.operations().filterBySend().length > 0); - } - filterByReceive() { - return this.filterBy(server => server.operations().filterByReceive().length > 0); - } -} diff --git a/esm/models/v2/tag.d.ts b/esm/models/v2/tag.d.ts deleted file mode 100644 index a7eaf141f..000000000 --- a/esm/models/v2/tag.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { BaseModel } from '../base'; -import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; -import type { TagInterface } from '../tag'; -import type { v2 } from '../../spec-types'; -export declare class Tag extends BaseModel implements TagInterface { - name(): string; - hasDescription(): boolean; - description(): string | undefined; - extensions(): ExtensionsInterface; - hasExternalDocs(): boolean; - externalDocs(): ExternalDocumentationInterface | undefined; -} diff --git a/esm/models/v2/tag.js b/esm/models/v2/tag.js deleted file mode 100644 index ea429df83..000000000 --- a/esm/models/v2/tag.js +++ /dev/null @@ -1,22 +0,0 @@ -import { BaseModel } from '../base'; -import { hasDescription, description, extensions, hasExternalDocs, externalDocs } from './mixins'; -export class Tag extends BaseModel { - name() { - return this._json.name; - } - hasDescription() { - return hasDescription(this); - } - description() { - return description(this); - } - extensions() { - return extensions(this); - } - hasExternalDocs() { - return hasExternalDocs(this); - } - externalDocs() { - return externalDocs(this); - } -} diff --git a/esm/models/v2/tags.d.ts b/esm/models/v2/tags.d.ts deleted file mode 100644 index 371794b27..000000000 --- a/esm/models/v2/tags.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -import type { TagsInterface } from '../tags'; -import type { TagInterface } from '../tag'; -export declare class Tags extends Collection implements TagsInterface { - get(name: string): TagInterface | undefined; -} diff --git a/esm/models/v2/tags.js b/esm/models/v2/tags.js deleted file mode 100644 index 13229669b..000000000 --- a/esm/models/v2/tags.js +++ /dev/null @@ -1,6 +0,0 @@ -import { Collection } from '../collection'; -export class Tags extends Collection { - get(name) { - return this.collections.find(tag => tag.name() === name); - } -} diff --git a/esm/models/v3/asyncapi.d.ts b/esm/models/v3/asyncapi.d.ts deleted file mode 100644 index e6aa68fa7..000000000 --- a/esm/models/v3/asyncapi.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { BaseModel } from '../base'; -export declare class AsyncAPIDocument extends BaseModel { - version(): string; -} diff --git a/esm/models/v3/asyncapi.js b/esm/models/v3/asyncapi.js deleted file mode 100644 index bfa2c5856..000000000 --- a/esm/models/v3/asyncapi.js +++ /dev/null @@ -1,6 +0,0 @@ -import { BaseModel } from '../base'; -export class AsyncAPIDocument extends BaseModel { - version() { - return this._json.asyncapi; - } -} diff --git a/esm/models/v3/index.d.ts b/esm/models/v3/index.d.ts deleted file mode 100644 index 050c2109b..000000000 --- a/esm/models/v3/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { AsyncAPIDocument as AsyncAPIDocumentV3 } from './asyncapi'; diff --git a/esm/models/v3/index.js b/esm/models/v3/index.js deleted file mode 100644 index 050c2109b..000000000 --- a/esm/models/v3/index.js +++ /dev/null @@ -1 +0,0 @@ -export { AsyncAPIDocument as AsyncAPIDocumentV3 } from './asyncapi'; diff --git a/esm/old-api/asyncapi.d.ts b/esm/old-api/asyncapi.d.ts deleted file mode 100644 index a441ac55a..000000000 --- a/esm/old-api/asyncapi.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import { Info } from './info'; -import { Server } from './server'; -import { Channel } from './channel'; -import { Components } from './components'; -import { Message } from './message'; -import { Schema } from './schema'; -import type { v2 } from '../spec-types'; -import type { SchemaTypesToIterate, TraverseCallback } from './iterator'; -export declare class AsyncAPIDocument extends SpecificationExtensionsModel { - version(): string; - info(): Info; - id(): string | undefined; - externalDocs(): import("./external-docs").ExternalDocs | null; - hasExternalDocs(): boolean; - hasTags(): boolean; - tags(): import("./tag").Tag[]; - tagNames(): string[]; - hasTag(name: string): boolean; - tag(name: string): import("./tag").Tag | null; - hasServers(): boolean; - servers(): Record; - serverNames(): string[]; - server(name: string): Server | null; - hasDefaultContentType(): boolean; - defaultContentType(): string | null; - hasChannels(): boolean; - channels(): Record; - channelNames(): string[]; - channel(name: string): Channel | null; - hasComponents(): boolean; - components(): Components | null; - hasMessages(): boolean; - allMessages(): Map; - allSchemas(): Map; - hasCircular(): boolean; - traverseSchemas(callback: TraverseCallback, schemaTypesToIterate?: Array<`${SchemaTypesToIterate}`>): void; - static stringify(doc: AsyncAPIDocument, space?: number): string | undefined; - static parse(doc: string | Record): AsyncAPIDocument | undefined; -} diff --git a/esm/old-api/asyncapi.js b/esm/old-api/asyncapi.js deleted file mode 100644 index d9e941715..000000000 --- a/esm/old-api/asyncapi.js +++ /dev/null @@ -1,157 +0,0 @@ -import { SpecificationExtensionsModel, hasExternalDocs, externalDocs, tagsMixins, createMapOfType, getMapValue } from './mixins'; -import { Info } from './info'; -import { Server } from './server'; -import { Channel } from './channel'; -import { Components } from './components'; -import { traverseAsyncApiDocument } from './iterator'; -import { xParserCircular, xParserSpecStringified, xParserSpecParsed } from '../constants'; -import { refReplacer, traverseStringifiedData } from '../stringify'; -export class AsyncAPIDocument extends SpecificationExtensionsModel { - version() { - return this._json.asyncapi; - } - info() { - return new Info(this._json.info); - } - id() { - return this._json.id; - } - externalDocs() { - return externalDocs(this); - } - hasExternalDocs() { - return hasExternalDocs(this); - } - hasTags() { - return tagsMixins.hasTags(this); - } - tags() { - return tagsMixins.tags(this); - } - tagNames() { - return tagsMixins.tagNames(this); - } - hasTag(name) { - return tagsMixins.hasTag(this, name); - } - tag(name) { - return tagsMixins.tag(this, name); - } - hasServers() { - return !!this._json.servers; - } - servers() { - return createMapOfType(this._json.servers, Server); - } - serverNames() { - if (!this._json.servers) - return []; - return Object.keys(this._json.servers); - } - server(name) { - return getMapValue(this._json.servers, name, Server); - } - hasDefaultContentType() { - return !!this._json.defaultContentType; - } - defaultContentType() { - return this._json.defaultContentType || null; - } - hasChannels() { - return !!this._json.channels; - } - channels() { - return createMapOfType(this._json.channels, Channel); - } - channelNames() { - if (!this._json.channels) - return []; - return Object.keys(this._json.channels); - } - channel(name) { - return getMapValue(this._json.channels, name, Channel); - } - hasComponents() { - return !!this._json.components; - } - components() { - if (!this._json.components) - return null; - return new Components(this._json.components); - } - hasMessages() { - return !!this.allMessages().size; - } - allMessages() { - const messages = new Map(); - if (this.hasChannels()) { - this.channelNames().forEach(channelName => { - const channel = this.channel(channelName); - if (channel) { - if (channel.hasPublish()) { - channel.publish().messages().forEach(m => { - messages.set(m.uid(), m); - }); - } - if (channel.hasSubscribe()) { - channel.subscribe().messages().forEach(m => { - messages.set(m.uid(), m); - }); - } - } - }); - } - if (this.hasComponents()) { - Object.values(this.components().messages()).forEach(m => { - messages.set(m.uid(), m); - }); - } - return messages; - } - allSchemas() { - const schemas = new Map(); - function allSchemasCallback(schema) { - if (schema.uid()) { - schemas.set(schema.uid(), schema); - } - } - traverseAsyncApiDocument(this, allSchemasCallback); - return schemas; - } - hasCircular() { - return !!this._json[xParserCircular]; - } - traverseSchemas(callback, schemaTypesToIterate = []) { - traverseAsyncApiDocument(this, callback, schemaTypesToIterate); - } - static stringify(doc, space) { - const rawDoc = doc.json(); - const copiedDoc = Object.assign({}, rawDoc); - copiedDoc[xParserSpecStringified] = true; - return JSON.stringify(copiedDoc, refReplacer(), space); - } - static parse(doc) { - let parsedJSON = doc; - if (typeof doc === 'string') { - parsedJSON = JSON.parse(doc); - } - else if (typeof doc === 'object') { - // shall copy - parsedJSON = Object.assign({}, parsedJSON); - } - // the `doc` must be an AsyncAPI parsed document - if (typeof parsedJSON !== 'object' || !parsedJSON[xParserSpecParsed]) { - throw new Error('Cannot parse invalid AsyncAPI document'); - } - // if the `doc` is not stringified via the `stringify` static method then immediately return a model. - if (!parsedJSON[xParserSpecStringified]) { - return new AsyncAPIDocument(parsedJSON); - } - // remove `x-parser-spec-stringified` extension - delete parsedJSON[String(xParserSpecStringified)]; - const objToPath = new Map(); - const pathToObj = new Map(); - traverseStringifiedData(parsedJSON, undefined, parsedJSON, objToPath, pathToObj); - return new AsyncAPIDocument(parsedJSON); - } -} diff --git a/esm/old-api/base.d.ts b/esm/old-api/base.d.ts deleted file mode 100644 index 0b26cd2c9..000000000 --- a/esm/old-api/base.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export declare abstract class Base = Record> { - protected readonly _json: J; - protected readonly _meta: M; - constructor(_json: J, // TODO: Add error here like in original codebase - _meta?: M); - json(): T; - json(key: K): J[K]; -} diff --git a/esm/old-api/base.js b/esm/old-api/base.js deleted file mode 100644 index e58456a43..000000000 --- a/esm/old-api/base.js +++ /dev/null @@ -1,14 +0,0 @@ -export class Base { - constructor(_json, // TODO: Add error here like in original codebase - _meta = {}) { - this._json = _json; - this._meta = _meta; - } - json(key) { - if (key === undefined || typeof this._json !== 'object') - return this._json; - if (!this._json) - return; - return this._json[key]; - } -} diff --git a/esm/old-api/channel-parameter.d.ts b/esm/old-api/channel-parameter.d.ts deleted file mode 100644 index 3265c56d0..000000000 --- a/esm/old-api/channel-parameter.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import { Schema } from './schema'; -import type { v2 } from '../spec-types'; -export declare class ChannelParameter extends SpecificationExtensionsModel { - description(): string | null; - hasDescription(): boolean; - schema(): Schema | null; - location(): string | undefined; -} diff --git a/esm/old-api/channel-parameter.js b/esm/old-api/channel-parameter.js deleted file mode 100644 index 8d952addc..000000000 --- a/esm/old-api/channel-parameter.js +++ /dev/null @@ -1,18 +0,0 @@ -import { SpecificationExtensionsModel, description, hasDescription } from './mixins'; -import { Schema } from './schema'; -export class ChannelParameter extends SpecificationExtensionsModel { - description() { - return description(this); - } - hasDescription() { - return hasDescription(this); - } - schema() { - if (!this._json.schema) - return null; - return new Schema(this._json.schema); - } - location() { - return this._json.location; - } -} diff --git a/esm/old-api/channel.d.ts b/esm/old-api/channel.d.ts deleted file mode 100644 index 8214311fc..000000000 --- a/esm/old-api/channel.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import { ChannelParameter } from './channel-parameter'; -import { Operation } from './operation'; -import type { v2 } from '../spec-types'; -export declare class Channel extends SpecificationExtensionsModel { - description(): string | null; - hasDescription(): boolean; - hasParameters(): boolean; - parameters(): Record; - parameter(name: string): ChannelParameter | null; - hasServers(): boolean; - servers(): string[]; - server(index: number | string): string | null; - publish(): Operation | null; - subscribe(): Operation | null; - hasPublish(): boolean; - hasSubscribe(): boolean; - hasBindings(): boolean; - bindings(): Record; - bindingProtocols(): string[]; - hasBinding(name: string): boolean; - binding(name: string): v2.Binding | null; -} diff --git a/esm/old-api/channel.js b/esm/old-api/channel.js deleted file mode 100644 index 2ff5b1b61..000000000 --- a/esm/old-api/channel.js +++ /dev/null @@ -1,68 +0,0 @@ -import { SpecificationExtensionsModel, hasDescription, description, createMapOfType, bindingsMixins, getMapValue } from './mixins'; -import { ChannelParameter } from './channel-parameter'; -import { Operation } from './operation'; -export class Channel extends SpecificationExtensionsModel { - description() { - return description(this); - } - hasDescription() { - return hasDescription(this); - } - hasParameters() { - return !!this._json.parameters; - } - parameters() { - return createMapOfType(this._json.parameters, ChannelParameter); - } - parameter(name) { - return getMapValue(this._json.parameters, name, ChannelParameter); - } - hasServers() { - return !!this._json.servers; - } - servers() { - if (!this._json.servers) - return []; - return this._json.servers; - } - server(index) { - if (!this._json.servers) - return null; - if (typeof index !== 'number') - return null; - if (index > this._json.servers.length - 1) - return null; - return this._json.servers[+index]; - } - publish() { - if (!this._json.publish) - return null; - return new Operation(this._json.publish, { kind: 'publish' }); - } - subscribe() { - if (!this._json.subscribe) - return null; - return new Operation(this._json.subscribe, { kind: 'subscribe' }); - } - hasPublish() { - return !!this._json.publish; - } - hasSubscribe() { - return !!this._json.subscribe; - } - hasBindings() { - return bindingsMixins.hasBindings(this); - } - bindings() { - return bindingsMixins.bindings(this); - } - bindingProtocols() { - return bindingsMixins.bindingProtocols(this); - } - hasBinding(name) { - return bindingsMixins.hasBinding(this, name); - } - binding(name) { - return bindingsMixins.binding(this, name); - } -} diff --git a/esm/old-api/components.d.ts b/esm/old-api/components.d.ts deleted file mode 100644 index 7a409a019..000000000 --- a/esm/old-api/components.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import { Channel } from './channel'; -import { Message } from './message'; -import { Schema } from './schema'; -import { SecurityScheme } from './security-scheme'; -import { Server } from './server'; -import { ChannelParameter } from './channel-parameter'; -import { CorrelationId } from './correlation-id'; -import { OperationTrait } from './operation-trait'; -import { MessageTrait } from './message-trait'; -import { ServerVariable } from './server-variable'; -import type { v2 } from '../spec-types'; -export declare class Components extends SpecificationExtensionsModel { - hasChannels(): boolean; - channels(): Record; - channel(name: string): Channel | null; - hasMessages(): boolean; - messages(): Record; - message(name: string): Message | null; - hasSchemas(): boolean; - schemas(): Record; - schema(name: string): Schema | null; - hasSecuritySchemes(): boolean; - securitySchemes(): Record; - securityScheme(name: string): SecurityScheme | null; - hasServers(): boolean; - servers(): Record; - server(name: string): Server | null; - hasParameters(): boolean; - parameters(): Record; - parameter(name: string): ChannelParameter | null; - hasCorrelationIds(): boolean; - correlationIds(): Record; - correlationId(name: string): CorrelationId | null; - hasOperationTraits(): boolean; - operationTraits(): Record>; - operationTrait(name: string): OperationTrait | null; - hasMessageTraits(): boolean; - messageTraits(): Record>; - messageTrait(name: string): MessageTrait; - hasServerVariables(): boolean; - serverVariables(): Record; - serverVariable(name: string): ServerVariable | null; -} diff --git a/esm/old-api/components.js b/esm/old-api/components.js deleted file mode 100644 index 26fe3ffd6..000000000 --- a/esm/old-api/components.js +++ /dev/null @@ -1,103 +0,0 @@ -import { SpecificationExtensionsModel, createMapOfType, getMapValue } from './mixins'; -import { Channel } from './channel'; -import { Message } from './message'; -import { Schema } from './schema'; -import { SecurityScheme } from './security-scheme'; -import { Server } from './server'; -import { ChannelParameter } from './channel-parameter'; -import { CorrelationId } from './correlation-id'; -import { OperationTrait } from './operation-trait'; -import { MessageTrait } from './message-trait'; -import { ServerVariable } from './server-variable'; -export class Components extends SpecificationExtensionsModel { - hasChannels() { - return !!this._json.channels; - } - channels() { - return createMapOfType(this._json.channels, Channel); - } - channel(name) { - return getMapValue(this._json.channels, name, Channel); - } - hasMessages() { - return !!this._json.messages; - } - messages() { - return createMapOfType(this._json.messages, Message); - } - message(name) { - return getMapValue(this._json.messages, name, Message); - } - hasSchemas() { - return !!this._json.schemas; - } - schemas() { - return createMapOfType(this._json.schemas, Schema); - } - schema(name) { - return getMapValue(this._json.schemas, name, Schema); - } - hasSecuritySchemes() { - return !!this._json.securitySchemes; - } - securitySchemes() { - return createMapOfType(this._json.securitySchemes, SecurityScheme); - } - securityScheme(name) { - return getMapValue(this._json.securitySchemes, name, SecurityScheme); - } - hasServers() { - return !!this._json.servers; - } - servers() { - return createMapOfType(this._json.servers, Server); - } - server(name) { - return getMapValue(this._json.servers, name, Server); - } - hasParameters() { - return !!this._json.parameters; - } - parameters() { - return createMapOfType(this._json.parameters, ChannelParameter); - } - parameter(name) { - return getMapValue(this._json.parameters, name, ChannelParameter); - } - hasCorrelationIds() { - return !!this._json.correlationIds; - } - correlationIds() { - return createMapOfType(this._json.correlationIds, CorrelationId); - } - correlationId(name) { - return getMapValue(this._json.correlationIds, name, CorrelationId); - } - hasOperationTraits() { - return !!this._json.operationTraits; - } - operationTraits() { - return createMapOfType(this._json.operationTraits, OperationTrait); - } - operationTrait(name) { - return getMapValue(this._json.operationTraits, name, OperationTrait); - } - hasMessageTraits() { - return !!this._json.messageTraits; - } - messageTraits() { - return createMapOfType(this._json.messageTraits, MessageTrait); - } - messageTrait(name) { - return getMapValue(this._json.messageTraits, name, MessageTrait); - } - hasServerVariables() { - return !!this._json.serverVariables; - } - serverVariables() { - return createMapOfType(this._json.serverVariables, ServerVariable); - } - serverVariable(name) { - return getMapValue(this._json.serverVariables, name, ServerVariable); - } -} diff --git a/esm/old-api/contact.d.ts b/esm/old-api/contact.d.ts deleted file mode 100644 index dd119cb51..000000000 --- a/esm/old-api/contact.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import type { v2 } from '../spec-types'; -export declare class Contact extends SpecificationExtensionsModel { - name(): string | undefined; - url(): string | undefined; - email(): string | undefined; -} diff --git a/esm/old-api/contact.js b/esm/old-api/contact.js deleted file mode 100644 index 578be5990..000000000 --- a/esm/old-api/contact.js +++ /dev/null @@ -1,12 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -export class Contact extends SpecificationExtensionsModel { - name() { - return this._json.name; - } - url() { - return this._json.url; - } - email() { - return this._json.email; - } -} diff --git a/esm/old-api/converter.d.ts b/esm/old-api/converter.d.ts deleted file mode 100644 index 96175d630..000000000 --- a/esm/old-api/converter.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { AsyncAPIDocument } from './asyncapi'; -import type { AsyncAPIDocumentInterface } from '../models/asyncapi'; -export declare function convertToOldAPI(newDocument: AsyncAPIDocumentInterface): AsyncAPIDocument; diff --git a/esm/old-api/converter.js b/esm/old-api/converter.js deleted file mode 100644 index e8cbe7100..000000000 --- a/esm/old-api/converter.js +++ /dev/null @@ -1,45 +0,0 @@ -import { AsyncAPIDocument } from './asyncapi'; -import { xParserOriginalPayload, xParserOriginalSchemaFormat, xParserOriginalTraits, xParserMessageParsed } from '../constants'; -import { copy } from '../stringify'; -import { getDefaultSchemaFormat } from '../schema-parser'; -export function convertToOldAPI(newDocument) { - const data = copy(newDocument.json()); - const document = new AsyncAPIDocument(data); - handleMessages(document); - handleOperations(document); - return document; -} -function handleMessages(document) { - const defaultSchemaFormat = getDefaultSchemaFormat(document.version()); - for (const message of document.allMessages().values()) { - const json = message.json(); - if (json.traits) { - json[xParserOriginalTraits] = json.traits; - delete json.traits; - } - json[xParserOriginalSchemaFormat] = json.schemaFormat || defaultSchemaFormat; - json.schemaFormat = defaultSchemaFormat; - json[xParserOriginalPayload] = json[xParserOriginalPayload] || json.payload; - json[xParserMessageParsed] = true; - } -} -function handleOperations(document) { - Object.values(document.channels()).forEach(channel => { - const publish = channel.publish(); - const subscribe = channel.subscribe(); - if (publish) { - const json = publish.json(); - if (json.traits) { - json[xParserOriginalTraits] = json.traits; - delete json.traits; - } - } - if (subscribe) { - const json = subscribe.json(); - if (json.traits) { - json[xParserOriginalTraits] = json.traits; - delete json.traits; - } - } - }); -} diff --git a/esm/old-api/correlation-id.d.ts b/esm/old-api/correlation-id.d.ts deleted file mode 100644 index 02fe34b0d..000000000 --- a/esm/old-api/correlation-id.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import type { v2 } from '../spec-types'; -export declare class CorrelationId extends SpecificationExtensionsModel { - description(): string | null; - hasDescription(): boolean; - location(): string; -} diff --git a/esm/old-api/correlation-id.js b/esm/old-api/correlation-id.js deleted file mode 100644 index 778e4607b..000000000 --- a/esm/old-api/correlation-id.js +++ /dev/null @@ -1,12 +0,0 @@ -import { SpecificationExtensionsModel, description, hasDescription } from './mixins'; -export class CorrelationId extends SpecificationExtensionsModel { - description() { - return description(this); - } - hasDescription() { - return hasDescription(this); - } - location() { - return this._json.location; - } -} diff --git a/esm/old-api/external-docs.d.ts b/esm/old-api/external-docs.d.ts deleted file mode 100644 index 67df99a8b..000000000 --- a/esm/old-api/external-docs.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Base } from './base'; -import type { v2 } from '../spec-types'; -export declare class ExternalDocs extends Base { - url(): string; - hasDescription(): boolean; - description(): string | null; - hasExtensions(): boolean; - extensions(): v2.SpecificationExtensions; - extensionKeys(): string[]; - extKeys(): string[]; - hasExtension(extension: string): boolean; - extension(extension: string): v2.SpecificationExtension; - hasExt(extension: string): boolean; - ext(extension: string): any; -} diff --git a/esm/old-api/external-docs.js b/esm/old-api/external-docs.js deleted file mode 100644 index b74b4a7f9..000000000 --- a/esm/old-api/external-docs.js +++ /dev/null @@ -1,37 +0,0 @@ -import { Base } from './base'; -import { description, hasDescription, extensionsMixins } from './mixins'; -export class ExternalDocs extends Base { - url() { - return this._json.url; - } - hasDescription() { - return hasDescription(this); - } - description() { - return description(this); - } - hasExtensions() { - return extensionsMixins.hasExtensions(this); - } - extensions() { - return extensionsMixins.extensions(this); - } - extensionKeys() { - return extensionsMixins.extensionKeys(this); - } - extKeys() { - return extensionsMixins.extKeys(this); - } - hasExtension(extension) { - return extensionsMixins.hasExtension(this, extension); - } - extension(extension) { - return extensionsMixins.extension(this, extension); - } - hasExt(extension) { - return extensionsMixins.hasExt(this, extension); - } - ext(extension) { - return extensionsMixins.ext(this, extension); - } -} diff --git a/esm/old-api/info.d.ts b/esm/old-api/info.d.ts deleted file mode 100644 index 94d613d55..000000000 --- a/esm/old-api/info.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Contact } from './contact'; -import { License } from './license'; -import { SpecificationExtensionsModel } from './mixins'; -import type { v2 } from '../spec-types'; -export declare class Info extends SpecificationExtensionsModel { - title(): string; - version(): string; - description(): string | null; - hasDescription(): boolean; - termsOfService(): string | undefined; - license(): License | null; - contact(): Contact | null; -} diff --git a/esm/old-api/info.js b/esm/old-api/info.js deleted file mode 100644 index f7fb84b93..000000000 --- a/esm/old-api/info.js +++ /dev/null @@ -1,30 +0,0 @@ -import { Contact } from './contact'; -import { License } from './license'; -import { SpecificationExtensionsModel, description, hasDescription } from './mixins'; -export class Info extends SpecificationExtensionsModel { - title() { - return this._json.title; - } - version() { - return this._json.version; - } - description() { - return description(this); - } - hasDescription() { - return hasDescription(this); - } - termsOfService() { - return this._json.termsOfService; - } - license() { - if (!this._json.license) - return null; - return new License(this._json.license); - } - contact() { - if (!this._json.contact) - return null; - return new Contact(this._json.contact); - } -} diff --git a/esm/old-api/iterator.d.ts b/esm/old-api/iterator.d.ts deleted file mode 100644 index 01cc614f0..000000000 --- a/esm/old-api/iterator.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import type { AsyncAPIDocument } from './asyncapi'; -import type { Schema } from './schema'; -/** - * The different kind of stages when crawling a schema. - */ -export declare enum SchemaIteratorCallbackType { - NEW_SCHEMA = "NEW_SCHEMA", - END_SCHEMA = "END_SCHEMA" -} -/** - * The different types of schemas you can iterate - */ -export declare enum SchemaTypesToIterate { - parameters = "parameters", - payloads = "payloads", - headers = "headers", - components = "components", - objects = "objects", - arrays = "arrays", - oneOfs = "oneOfs", - allOfs = "allOfs", - anyOfs = "anyOfs", - nots = "nots", - propertyNames = "propertyNames", - patternProperties = "patternProperties", - contains = "contains", - ifs = "ifs", - thenes = "thenes", - elses = "elses", - dependencies = "dependencies", - definitions = "definitions" -} -export declare type TraverseOptions = { - callback: TraverseCallback; - schemaTypesToIterate: Array<`${SchemaTypesToIterate}`>; - seenSchemas: Set; -}; -export declare type TraverseCallback = (schema: Schema, propOrIndex: string | number | null, callbackType: SchemaIteratorCallbackType) => boolean | void; -/** - * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. - */ -export declare function traverseAsyncApiDocument(doc: AsyncAPIDocument, callback: TraverseCallback, schemaTypesToIterate?: Array<`${SchemaTypesToIterate}`>): void; diff --git a/esm/old-api/iterator.js b/esm/old-api/iterator.js deleted file mode 100644 index 873ba60e7..000000000 --- a/esm/old-api/iterator.js +++ /dev/null @@ -1,246 +0,0 @@ -/** - * The different kind of stages when crawling a schema. - */ -export var SchemaIteratorCallbackType; -(function (SchemaIteratorCallbackType) { - SchemaIteratorCallbackType["NEW_SCHEMA"] = "NEW_SCHEMA"; - SchemaIteratorCallbackType["END_SCHEMA"] = "END_SCHEMA"; -})(SchemaIteratorCallbackType || (SchemaIteratorCallbackType = {})); -/** - * The different types of schemas you can iterate - */ -export var SchemaTypesToIterate; -(function (SchemaTypesToIterate) { - SchemaTypesToIterate["parameters"] = "parameters"; - SchemaTypesToIterate["payloads"] = "payloads"; - SchemaTypesToIterate["headers"] = "headers"; - SchemaTypesToIterate["components"] = "components"; - SchemaTypesToIterate["objects"] = "objects"; - SchemaTypesToIterate["arrays"] = "arrays"; - SchemaTypesToIterate["oneOfs"] = "oneOfs"; - SchemaTypesToIterate["allOfs"] = "allOfs"; - SchemaTypesToIterate["anyOfs"] = "anyOfs"; - SchemaTypesToIterate["nots"] = "nots"; - SchemaTypesToIterate["propertyNames"] = "propertyNames"; - SchemaTypesToIterate["patternProperties"] = "patternProperties"; - SchemaTypesToIterate["contains"] = "contains"; - SchemaTypesToIterate["ifs"] = "ifs"; - SchemaTypesToIterate["thenes"] = "thenes"; - SchemaTypesToIterate["elses"] = "elses"; - SchemaTypesToIterate["dependencies"] = "dependencies"; - SchemaTypesToIterate["definitions"] = "definitions"; -})(SchemaTypesToIterate || (SchemaTypesToIterate = {})); -/** - * Go through each channel and for each parameter, and message payload and headers recursively call the callback for each schema. - */ -export function traverseAsyncApiDocument(doc, callback, schemaTypesToIterate = []) { - if (schemaTypesToIterate.length === 0) { - schemaTypesToIterate = Object.values(SchemaTypesToIterate); - } - const options = { callback, schemaTypesToIterate, seenSchemas: new Set() }; - Object.values(doc.channels()).forEach(channel => { - traverseChannel(channel, options); - }); - const components = doc.components(); - if (schemaTypesToIterate.includes(SchemaTypesToIterate.components) && components) { - Object.values(components.messages()).forEach(message => { - traverseMessage(message, options); - }); - Object.values(components.schemas()).forEach(schema => { - traverseSchema(schema, null, options); - }); - if (schemaTypesToIterate.includes(SchemaTypesToIterate.parameters)) { - Object.values(components.parameters()).forEach(parameter => { - const schema = parameter.schema(); - if (schema) { - traverseSchema(schema, null, options); - } - }); - } - Object.values(components.messageTraits()).forEach(messageTrait => { - traverseMessageTrait(messageTrait, options); - }); - } -} -/* eslint-disable sonarjs/cognitive-complexity */ -/** - * Traverse current schema and all nested schemas. - */ -function traverseSchema(schema, propOrIndex, options) { - if (!schema) - return; - const { schemaTypesToIterate, callback, seenSchemas } = options; - // handle circular references - const jsonSchema = schema.json(); - if (seenSchemas.has(jsonSchema)) - return; - seenSchemas.add(jsonSchema); - // `type` isn't required so save type as array in the fallback - let types = schema.type() || []; - // change primitive type to array of types for easier handling - if (!Array.isArray(types)) { - types = [types]; - } - if (!schemaTypesToIterate.includes(SchemaTypesToIterate.objects) && types.includes('object')) - return; - if (!schemaTypesToIterate.includes(SchemaTypesToIterate.arrays) && types.includes('array')) - return; - // check callback `NEW_SCHEMA` case - if (callback(schema, propOrIndex, SchemaIteratorCallbackType.NEW_SCHEMA) === false) - return; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.objects) && types.includes('object')) { - recursiveSchemaObject(schema, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.arrays) && types.includes('array')) { - recursiveSchemaArray(schema, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.oneOfs)) { - (schema.oneOf() || []).forEach((combineSchema, idx) => { - traverseSchema(combineSchema, idx, options); - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.anyOfs)) { - (schema.anyOf() || []).forEach((combineSchema, idx) => { - traverseSchema(combineSchema, idx, options); - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.allOfs)) { - (schema.allOf() || []).forEach((combineSchema, idx) => { - traverseSchema(combineSchema, idx, options); - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.nots) && schema.not()) { - traverseSchema(schema.not(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.ifs) && schema.if()) { - traverseSchema(schema.if(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.thenes) && schema.then()) { - traverseSchema(schema.then(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.elses) && schema.else()) { - traverseSchema(schema.else(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.dependencies)) { - Object.entries(schema.dependencies() || {}).forEach(([depName, dep]) => { - // do not iterate dependent required - if (dep && !Array.isArray(dep)) { - traverseSchema(dep, depName, options); - } - }); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.definitions)) { - Object.entries(schema.definitions() || {}).forEach(([defName, def]) => { - traverseSchema(def, defName, options); - }); - } - callback(schema, propOrIndex, SchemaIteratorCallbackType.END_SCHEMA); - seenSchemas.delete(jsonSchema); -} -/* eslint-enable sonarjs/cognitive-complexity */ -/** - * Recursively go through schema of object type and execute callback. - */ -function recursiveSchemaObject(schema, options) { - Object.entries(schema.properties()).forEach(([propertyName, property]) => { - traverseSchema(property, propertyName, options); - }); - const additionalProperties = schema.additionalProperties(); - if (typeof additionalProperties === 'object') { - traverseSchema(additionalProperties, null, options); - } - const schemaTypesToIterate = options.schemaTypesToIterate; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.propertyNames) && schema.propertyNames()) { - traverseSchema(schema.propertyNames(), null, options); - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.patternProperties)) { - Object.entries(schema.patternProperties() || {}).forEach(([propertyName, property]) => { - traverseSchema(property, propertyName, options); - }); - } -} -/** - * Recursively go through schema of array type and execute callback. - */ -function recursiveSchemaArray(schema, options) { - const items = schema.items(); - if (items) { - if (Array.isArray(items)) { - items.forEach((item, idx) => { - traverseSchema(item, idx, options); - }); - } - else { - traverseSchema(items, null, options); - } - } - const additionalItems = schema.additionalItems(); - if (typeof additionalItems === 'object') { - traverseSchema(additionalItems, null, options); - } - if (options.schemaTypesToIterate.includes('contains') && schema.contains()) { - traverseSchema(schema.contains(), null, options); - } -} -/** - * Go through each schema in channel - */ -function traverseChannel(channel, options) { - if (!channel) - return; - const { schemaTypesToIterate } = options; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.parameters)) { - Object.values(channel.parameters() || {}).forEach(parameter => { - const schema = parameter.schema(); - if (schema) { - traverseSchema(schema, null, options); - } - }); - } - const publish = channel.publish(); - if (publish) { - publish.messages().forEach(message => { - traverseMessage(message, options); - }); - } - const subscribe = channel.subscribe(); - if (subscribe) { - subscribe.messages().forEach(message => { - traverseMessage(message, options); - }); - } -} -/** - * Go through each schema in a message - */ -function traverseMessage(message, options) { - if (!message) - return; - const { schemaTypesToIterate } = options; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.headers)) { - const headers = message.headers(); - if (headers) { - traverseSchema(headers, null, options); - } - } - if (schemaTypesToIterate.includes(SchemaTypesToIterate.payloads)) { - const payload = message.payload(); - if (payload) { - traverseSchema(payload, null, options); - } - } -} -/** - * Go through each schema in a messageTrait - */ -function traverseMessageTrait(messageTrait, options) { - if (!messageTrait) - return; - const { schemaTypesToIterate } = options; - if (schemaTypesToIterate.includes(SchemaTypesToIterate.headers)) { - const headers = messageTrait.headers(); - if (headers) { - traverseSchema(headers, null, options); - } - } -} diff --git a/esm/old-api/license.d.ts b/esm/old-api/license.d.ts deleted file mode 100644 index 2e926b988..000000000 --- a/esm/old-api/license.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import type { v2 } from '../spec-types'; -export declare class License extends SpecificationExtensionsModel { - name(): string; - url(): string | undefined; -} diff --git a/esm/old-api/license.js b/esm/old-api/license.js deleted file mode 100644 index 7393ebc00..000000000 --- a/esm/old-api/license.js +++ /dev/null @@ -1,9 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -export class License extends SpecificationExtensionsModel { - name() { - return this._json.name; - } - url() { - return this._json.url; - } -} diff --git a/esm/old-api/message-trait.d.ts b/esm/old-api/message-trait.d.ts deleted file mode 100644 index e4a7f5825..000000000 --- a/esm/old-api/message-trait.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import { CorrelationId } from './correlation-id'; -import { Schema } from './schema'; -import type { v2 } from '../spec-types'; -export declare class MessageTrait extends SpecificationExtensionsModel { - id(): string | undefined; - headers(): Schema | null; - header(name: string): Schema | null; - correlationId(): CorrelationId | null; - schemaFormat(): string; - contentType(): string | undefined; - name(): string | undefined; - title(): string | undefined; - summary(): string | undefined; - description(): string | null; - hasDescription(): boolean; - externalDocs(): import("./external-docs").ExternalDocs | null; - hasExternalDocs(): boolean; - hasTags(): boolean; - tags(): import("./tag").Tag[]; - tagNames(): string[]; - hasTag(name: string): boolean; - tag(name: string): import("./tag").Tag | null; - hasBindings(): boolean; - bindings(): Record; - bindingProtocols(): string[]; - hasBinding(name: string): boolean; - binding(name: string): v2.Binding | null; - examples(): v2.MessageExampleObject[] | undefined; -} diff --git a/esm/old-api/message-trait.js b/esm/old-api/message-trait.js deleted file mode 100644 index f8de18056..000000000 --- a/esm/old-api/message-trait.js +++ /dev/null @@ -1,83 +0,0 @@ -import { SpecificationExtensionsModel, description, hasDescription, hasExternalDocs, externalDocs, tagsMixins, bindingsMixins, getMapValue } from './mixins'; -import { CorrelationId } from './correlation-id'; -import { Schema } from './schema'; -export class MessageTrait extends SpecificationExtensionsModel { - id() { - return this._json.messageId; - } - headers() { - if (!this._json.headers) - return null; - return new Schema(this._json.headers); - } - header(name) { - if (!this._json.headers) - return null; - return getMapValue(this._json.headers.properties || {}, name, Schema); - } - correlationId() { - if (!this._json.correlationId) - return null; - return new CorrelationId(this._json.correlationId); - } - schemaFormat() { - return this._json.schemaFormat; // Old API points always to the default schema format for given AsyncAPI version, so we need to force returned type as string. - } - contentType() { - return this._json.contentType; - } - name() { - return this._json.name; - } - title() { - return this._json.title; - } - summary() { - return this._json.summary; - } - description() { - return description(this); - } - hasDescription() { - return hasDescription(this); - } - externalDocs() { - return externalDocs(this); - } - hasExternalDocs() { - return hasExternalDocs(this); - } - hasTags() { - return tagsMixins.hasTags(this); - } - tags() { - return tagsMixins.tags(this); - } - tagNames() { - return tagsMixins.tagNames(this); - } - hasTag(name) { - return tagsMixins.hasTag(this, name); - } - tag(name) { - return tagsMixins.tag(this, name); - } - hasBindings() { - return bindingsMixins.hasBindings(this); - } - bindings() { - return bindingsMixins.bindings(this); - } - bindingProtocols() { - return bindingsMixins.bindingProtocols(this); - } - hasBinding(name) { - return bindingsMixins.hasBinding(this, name); - } - binding(name) { - return bindingsMixins.binding(this, name); - } - examples() { - return this._json.examples; - } -} diff --git a/esm/old-api/message.d.ts b/esm/old-api/message.d.ts deleted file mode 100644 index 08e26b8f3..000000000 --- a/esm/old-api/message.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { MessageTrait } from './message-trait'; -import { Schema } from './schema'; -import type { v2 } from '../spec-types'; -export declare class Message extends MessageTrait { - uid(): string; - payload(): Schema | null; - traits(): MessageTrait[]; - hasTraits(): boolean; - originalPayload(): any; - originalSchemaFormat(): string; -} diff --git a/esm/old-api/message.js b/esm/old-api/message.js deleted file mode 100644 index 76d709351..000000000 --- a/esm/old-api/message.js +++ /dev/null @@ -1,28 +0,0 @@ -import { MessageTrait } from './message-trait'; -import { Schema } from './schema'; -import { xParserMessageName, xParserOriginalTraits, xParserOriginalPayload, xParserOriginalSchemaFormat } from '../constants'; -export class Message extends MessageTrait { - uid() { - return this.id() || this.name() || this.ext(xParserMessageName); - } - payload() { - if (!this._json.payload) - return null; - return new Schema(this._json.payload); - } - traits() { - const traits = this.ext(xParserOriginalTraits) || this._json.traits; - if (!traits) - return []; - return traits.map(t => new MessageTrait(t)); - } - hasTraits() { - return !!this.ext(xParserOriginalTraits) || !!this._json.traits; - } - originalPayload() { - return this.ext(xParserOriginalPayload) || this.payload(); - } - originalSchemaFormat() { - return this.ext(xParserOriginalSchemaFormat) || this.schemaFormat(); - } -} diff --git a/esm/old-api/mixins.d.ts b/esm/old-api/mixins.d.ts deleted file mode 100644 index f0b7021aa..000000000 --- a/esm/old-api/mixins.d.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { Base } from './base'; -import { ExternalDocs } from './external-docs'; -import { Tag } from './tag'; -import type { v2 } from '../spec-types'; -export declare abstract class SpecificationExtensionsModel = Record> extends Base { - hasExtensions(): boolean; - extensions(): v2.SpecificationExtensions; - extensionKeys(): string[]; - extKeys(): string[]; - hasExtension(extension: string): boolean; - extension(extension: string): v2.SpecificationExtension; - hasExt(extension: string): boolean; - ext(extension: string): any; -} -export declare function hasDescription(model: Base<{ - description?: string; -}>): boolean; -export declare function description(model: Base<{ - description?: string; -}>): string | null; -export declare function hasExternalDocs(model: Base<{ - externalDocs?: v2.ExternalDocumentationObject; -}>): boolean; -export declare function externalDocs(model: Base<{ - externalDocs?: v2.ExternalDocumentationObject; -}>): ExternalDocs | null; -export declare const extensionsMixins: { - hasExtensions(model: Base<{ - [extension: `x-${string}`]: any; - }, Record>): boolean; - extensions(model: Base<{ - [extension: `x-${string}`]: any; - }, Record>): v2.SpecificationExtensions; - extensionKeys(model: Base<{ - [extension: `x-${string}`]: any; - }, Record>): string[]; - extKeys(model: Base<{ - [extension: `x-${string}`]: any; - }, Record>): string[]; - hasExtension(model: Base<{ - [extension: `x-${string}`]: any; - }, Record>, extension: string): boolean; - extension(model: Base<{ - [extension: `x-${string}`]: any; - }, Record>, extension: string): v2.SpecificationExtension | null; - hasExt(model: Base<{ - [extension: `x-${string}`]: any; - }, Record>, extension: string): boolean; - ext(model: Base<{ - [extension: `x-${string}`]: any; - }, Record>, extension: string): any; -}; -export declare const bindingsMixins: { - hasBindings(model: Base<{ - bindings?: Record; - }>): boolean; - bindings(model: Base<{ - bindings?: Record; - }>): Record; - bindingProtocols(model: Base<{ - bindings?: Record; - }>): string[]; - hasBinding(model: Base<{ - bindings?: Record; - }>, name: string): boolean; - binding(model: Base<{ - bindings?: Record; - }>, name: string): v2.Binding | null; -}; -export declare const tagsMixins: { - hasTags(model: Base<{ - tags?: Array; - }>): boolean; - tags(model: Base<{ - tags?: Array; - }>): Array; - tagNames(model: Base<{ - tags?: Array; - }>): string[]; - hasTag(model: Base<{ - tags?: Array; - }>, name: string): boolean; - tag(model: Base<{ - tags?: Array; - }>, name: string): Tag | null; -}; -interface Constructor extends Function { - new (...any: any[]): T; -} -declare type InferModelData = T extends Base ? J : never; -declare type InferModelMetadata = T extends Base ? M : never; -export declare function getMapValue, K extends keyof T>(obj: T | undefined, key: K): T[K] | null; -export declare function getMapValue(obj: Record> | undefined, key: string, Type: Constructor, meta?: InferModelMetadata): T | null; -export declare function createMapOfType(obj: Record> | undefined, Type: Constructor, meta?: InferModelMetadata): Record; -export {}; diff --git a/esm/old-api/mixins.js b/esm/old-api/mixins.js deleted file mode 100644 index 8c24d0b52..000000000 --- a/esm/old-api/mixins.js +++ /dev/null @@ -1,138 +0,0 @@ -import { Base } from './base'; -import { ExternalDocs } from './external-docs'; -import { Tag } from './tag'; -import { EXTENSION_REGEX } from '../constants'; -export class SpecificationExtensionsModel extends Base { - hasExtensions() { - return extensionsMixins.hasExtensions(this); - } - extensions() { - return extensionsMixins.extensions(this); - } - extensionKeys() { - return extensionsMixins.extensionKeys(this); - } - extKeys() { - return extensionsMixins.extKeys(this); - } - hasExtension(extension) { - return extensionsMixins.hasExtension(this, extension); - } - extension(extension) { - return extensionsMixins.extension(this, extension); - } - hasExt(extension) { - return extensionsMixins.hasExt(this, extension); - } - ext(extension) { - return extensionsMixins.ext(this, extension); - } -} -export function hasDescription(model) { - return Boolean(model.json('description')); -} -export function description(model) { - const description = model.json('description'); - return typeof description === 'string' ? description : null; -} -export function hasExternalDocs(model) { - return Object.keys(model.json('externalDocs') || {}).length > 0; -} -export function externalDocs(model) { - if (typeof model.json('externalDocs') === 'object') { - return new ExternalDocs(model.json('externalDocs')); - } - return null; -} -export const extensionsMixins = { - hasExtensions(model) { - return !!extensionsMixins.extensionKeys(model).length; - }, - extensions(model) { - const result = {}; - Object.entries(model.json()).forEach(([key, value]) => { - if (EXTENSION_REGEX.test(key)) { - result[key] = value; - } - }); - return result; - }, - extensionKeys(model) { - return Object.keys(extensionsMixins.extensions(model)); - }, - extKeys(model) { - return extensionsMixins.extensionKeys(model); - }, - hasExtension(model, extension) { - if (!extension.startsWith('x-')) { - return false; - } - return !!model.json()[extension]; - }, - extension(model, extension) { - if (!extension.startsWith('x-')) { - return null; - } - return model.json()[extension]; - }, - hasExt(model, extension) { - return extensionsMixins.hasExtension(model, extension); - }, - ext(model, extension) { - return extensionsMixins.extension(model, extension); - }, -}; -export const bindingsMixins = { - hasBindings(model) { - return !!Object.keys(bindingsMixins.bindings(model)).length; - }, - bindings(model) { - return model.json('bindings') || {}; - }, - bindingProtocols(model) { - return Object.keys(bindingsMixins.bindings(model)); - }, - hasBinding(model, name) { - return !!bindingsMixins.binding(model, name); - }, - binding(model, name) { - return getMapValue(model.json('bindings'), name); - }, -}; -export const tagsMixins = { - hasTags(model) { - return !!tagsMixins.tags(model).length; - }, - tags(model) { - const tags = model.json('tags'); - return tags ? tags.map(t => new Tag(t)) : []; - }, - tagNames(model) { - const tags = model.json('tags'); - return tags ? tags.map(t => t.name) : []; - }, - hasTag(model, name) { - return !!tagsMixins.tag(model, name); - }, - tag(model, name) { - const tg = (model.json('tags') || []).find(t => t.name === name); - return tg ? new Tag(tg) : null; - }, -}; -export function getMapValue(obj, key, Type, meta) { - if (typeof key !== 'string' || !obj) - return null; - const v = obj[String(key)]; - if (v === undefined) - return null; - return Type ? new Type(v, meta) : v; -} -export function createMapOfType(obj, Type, meta) { - const result = {}; - if (!obj) - return result; - Object.entries(obj).forEach(([key, value]) => { - result[key] = new Type(value, meta); - }); - return result; -} diff --git a/esm/old-api/oauth-flow.d.ts b/esm/old-api/oauth-flow.d.ts deleted file mode 100644 index 0621e5b7e..000000000 --- a/esm/old-api/oauth-flow.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import type { v2 } from '../spec-types'; -export declare class OAuthFlow extends SpecificationExtensionsModel { - authorizationUrl(): string; - tokenUrl(): string; - refreshUrl(): string | undefined; - scopes(): Record; -} diff --git a/esm/old-api/oauth-flow.js b/esm/old-api/oauth-flow.js deleted file mode 100644 index 334c5ab3c..000000000 --- a/esm/old-api/oauth-flow.js +++ /dev/null @@ -1,15 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -export class OAuthFlow extends SpecificationExtensionsModel { - authorizationUrl() { - return this._json.authorizationUrl; - } - tokenUrl() { - return this._json.tokenUrl; - } - refreshUrl() { - return this._json.refreshUrl; - } - scopes() { - return this._json.scopes; - } -} diff --git a/esm/old-api/operation-trait.d.ts b/esm/old-api/operation-trait.d.ts deleted file mode 100644 index 9e48932d7..000000000 --- a/esm/old-api/operation-trait.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import { SecurityRequirement } from './security-requirement'; -import type { v2 } from '../spec-types'; -export declare class OperationTrait extends SpecificationExtensionsModel { - isPublish(): boolean; - isSubscribe(): boolean; - kind(): "subscribe" | "publish"; - id(): string | undefined; - summary(): string | undefined; - description(): string | null; - hasDescription(): boolean; - externalDocs(): import("./external-docs").ExternalDocs | null; - hasExternalDocs(): boolean; - hasTags(): boolean; - tags(): import("./tag").Tag[]; - tagNames(): string[]; - hasTag(name: string): boolean; - tag(name: string): import("./tag").Tag | null; - hasBindings(): boolean; - bindings(): Record; - bindingProtocols(): string[]; - hasBinding(name: string): boolean; - binding(name: string): v2.Binding | null; - security(): SecurityRequirement[] | null; -} diff --git a/esm/old-api/operation-trait.js b/esm/old-api/operation-trait.js deleted file mode 100644 index b15cdd31e..000000000 --- a/esm/old-api/operation-trait.js +++ /dev/null @@ -1,66 +0,0 @@ -import { SpecificationExtensionsModel, description, hasDescription, hasExternalDocs, externalDocs, tagsMixins, bindingsMixins } from './mixins'; -import { SecurityRequirement } from './security-requirement'; -export class OperationTrait extends SpecificationExtensionsModel { - isPublish() { - return this._meta.kind === 'publish'; - } - isSubscribe() { - return this._meta.kind === 'subscribe'; - } - kind() { - return this._meta.kind; - } - id() { - return this._json.operationId; - } - summary() { - return this._json.summary; - } - description() { - return description(this); - } - hasDescription() { - return hasDescription(this); - } - externalDocs() { - return externalDocs(this); - } - hasExternalDocs() { - return hasExternalDocs(this); - } - hasTags() { - return tagsMixins.hasTags(this); - } - tags() { - return tagsMixins.tags(this); - } - tagNames() { - return tagsMixins.tagNames(this); - } - hasTag(name) { - return tagsMixins.hasTag(this, name); - } - tag(name) { - return tagsMixins.tag(this, name); - } - hasBindings() { - return bindingsMixins.hasBindings(this); - } - bindings() { - return bindingsMixins.bindings(this); - } - bindingProtocols() { - return bindingsMixins.bindingProtocols(this); - } - hasBinding(name) { - return bindingsMixins.hasBinding(this, name); - } - binding(name) { - return bindingsMixins.binding(this, name); - } - security() { - if (!this._json.security) - return null; - return this._json.security.map(sec => new SecurityRequirement(sec)); - } -} diff --git a/esm/old-api/operation.d.ts b/esm/old-api/operation.d.ts deleted file mode 100644 index 057caa8e8..000000000 --- a/esm/old-api/operation.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { OperationTrait } from './operation-trait'; -import { Message } from './message'; -import type { v2 } from '../spec-types'; -export declare class Operation extends OperationTrait { - traits(): OperationTrait[]; - hasTraits(): boolean; - hasMultipleMessages(): boolean; - messages(): Message[]; - message(index?: number | string): Message | null; -} diff --git a/esm/old-api/operation.js b/esm/old-api/operation.js deleted file mode 100644 index 32101c899..000000000 --- a/esm/old-api/operation.js +++ /dev/null @@ -1,42 +0,0 @@ -import { OperationTrait } from './operation-trait'; -import { Message } from './message'; -export class Operation extends OperationTrait { - traits() { - const traits = this._json['x-parser-original-traits'] || this._json.traits; - if (!traits) - return []; - return traits.map(t => new OperationTrait(t)); - } - hasTraits() { - return !!this._json['x-parser-original-traits'] || !!this._json.traits; - } - hasMultipleMessages() { - const message = this._json.message; - // eslint-disable-next-line sonarjs/prefer-single-boolean-return - if (message && message.oneOf && message.oneOf.length > 1) - return true; - return false; - } - messages() { - const message = this._json.message; - if (!message) - return []; - if (message.oneOf) - return message.oneOf.map(m => new Message(m)); - return [new Message(message)]; - } - message(index) { - const message = this._json.message; - if (!message) - return null; - if (message.oneOf && message.oneOf.length === 1) - return new Message(message.oneOf[0]); - if (!message.oneOf) - return new Message(message); - if (typeof index !== 'number') - return null; - if (index > message.oneOf.length - 1) - return null; - return new Message(message.oneOf[+index]); - } -} diff --git a/esm/old-api/schema.d.ts b/esm/old-api/schema.d.ts deleted file mode 100644 index b9d2ece2d..000000000 --- a/esm/old-api/schema.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import type { v2 } from '../spec-types'; -export declare class Schema extends SpecificationExtensionsModel { - uid(): any; - $id(): string | undefined; - multipleOf(): number | undefined; - maximum(): number | undefined; - exclusiveMaximum(): number | undefined; - minimum(): number | undefined; - exclusiveMinimum(): number | undefined; - maxLength(): number | undefined; - minLength(): number | undefined; - pattern(): string | undefined; - maxItems(): number | undefined; - minItems(): number | undefined; - uniqueItems(): boolean | undefined; - maxProperties(): number | undefined; - minProperties(): number | undefined; - required(): string[] | undefined; - enum(): import("json-schema").JSONSchema7Type[] | undefined; - type(): import("json-schema").JSONSchema7TypeName | import("json-schema").JSONSchema7TypeName[] | undefined; - allOf(): Schema[] | null; - oneOf(): Schema[] | null; - anyOf(): Schema[] | null; - not(): Schema | null; - items(): Schema | Schema[] | null; - properties(): Record; - property(name: string): Schema | null; - additionalProperties(): boolean | Schema; - additionalItems(): boolean | Schema; - patternProperties(): Record; - const(): import("json-schema").JSONSchema7Type | undefined; - contains(): Schema | null; - dependencies(): Record | null; - propertyNames(): Schema | null; - if(): Schema | null; - then(): Schema | null; - else(): Schema | null; - format(): string | undefined; - contentEncoding(): string | undefined; - contentMediaType(): string | undefined; - definitions(): Record; - title(): string | undefined; - default(): import("json-schema").JSONSchema7Type | undefined; - deprecated(): boolean | undefined; - discriminator(): string | undefined; - readOnly(): boolean | undefined; - writeOnly(): boolean | undefined; - examples(): import("json-schema").JSONSchema7Type[] | undefined; - isBooleanSchema(): boolean; - description(): string | null; - hasDescription(): boolean; - externalDocs(): import("./external-docs").ExternalDocs | null; - hasExternalDocs(): boolean; - isCircular(): boolean; - circularSchema(): Schema | undefined; - hasCircularProps(): boolean; - circularProps(): any; - protected __get(key: K): v2.AsyncAPISchemaDefinition[K] | undefined; - protected __createChild(s: v2.AsyncAPISchemaObject): Schema; -} diff --git a/esm/old-api/schema.js b/esm/old-api/schema.js deleted file mode 100644 index e1b7a8b98..000000000 --- a/esm/old-api/schema.js +++ /dev/null @@ -1,249 +0,0 @@ -import { SpecificationExtensionsModel, createMapOfType, getMapValue, description, hasDescription, hasExternalDocs, externalDocs } from './mixins'; -import { xParserCircular, xParserCircularProps } from '../constants'; -import { hasRef } from '../utils'; -export class Schema extends SpecificationExtensionsModel { - uid() { - return this.$id() || this.ext('x-parser-schema-id'); - } - $id() { - return this.__get('$id'); - } - multipleOf() { - return this.__get('multipleOf'); - } - maximum() { - return this.__get('maximum'); - } - exclusiveMaximum() { - return this.__get('exclusiveMaximum'); - } - minimum() { - return this.__get('minimum'); - } - exclusiveMinimum() { - return this.__get('exclusiveMinimum'); - } - maxLength() { - return this.__get('maxLength'); - } - minLength() { - return this.__get('minLength'); - } - pattern() { - return this.__get('pattern'); - } - maxItems() { - return this.__get('maxItems'); - } - minItems() { - return this.__get('minItems'); - } - uniqueItems() { - return this.__get('uniqueItems'); - } - maxProperties() { - return this.__get('maxProperties'); - } - minProperties() { - return this.__get('minProperties'); - } - required() { - return this.__get('required'); - } - enum() { - return this.__get('enum'); - } - type() { - return this.__get('type'); - } - allOf() { - const allOf = this.__get('allOf'); - return !allOf ? null : allOf.map(this.__createChild); - } - oneOf() { - const oneOf = this.__get('oneOf'); - return !oneOf ? null : oneOf.map(this.__createChild); - } - anyOf() { - const anyOf = this.__get('anyOf'); - return !anyOf ? null : anyOf.map(this.__createChild); - } - not() { - const not = this.__get('not'); - return !not ? null : this.__createChild(not); - } - items() { - const items = this.__get('items'); - if (!items) - return null; - if (Array.isArray(items)) { - return items.map(this.__createChild); - } - return this.__createChild(items); - } - properties() { - return createMapOfType(this.__get('properties'), Schema, { parent: this }); - } - property(name) { - return getMapValue(this.__get('properties'), name, Schema, { parent: this }); - } - additionalProperties() { - if (typeof this._json === 'boolean') - return this._json; - const additionalProperties = this.__get('additionalProperties'); - if (typeof additionalProperties === 'boolean') - return additionalProperties; - if (additionalProperties === undefined) - return true; - if (additionalProperties === null) - return false; - return this.__createChild(additionalProperties); - } - additionalItems() { - if (typeof this._json === 'boolean') - return this._json; - const additionalItems = this.__get('additionalItems'); - if (typeof additionalItems === 'boolean') - return additionalItems; - if (additionalItems === undefined) - return true; - if (additionalItems === null) - return false; - return this.__createChild(additionalItems); - } - patternProperties() { - return createMapOfType(this.__get('patternProperties'), Schema, { parent: this }); - } - const() { - return this.__get('const'); - } - contains() { - const contains = this.__get('contains'); - return typeof contains === 'undefined' ? null : this.__createChild(contains); - } - dependencies() { - const dependencies = this.__get('dependencies'); - if (!dependencies) - return null; - const result = {}; - Object.entries(dependencies).forEach(([key, value]) => { - result[key] = !Array.isArray(value) ? this.__createChild(value) : value; - }); - return result; - } - propertyNames() { - const propertyNames = this.__get('propertyNames'); - return typeof propertyNames === 'undefined' ? null : this.__createChild(propertyNames); - } - if() { - const _if = this.__get('if'); - return typeof _if === 'undefined' ? null : this.__createChild(_if); - } - then() { - const _then = this.__get('then'); - return typeof _then === 'undefined' ? null : this.__createChild(_then); - } - else() { - const _else = this.__get('else'); - return typeof _else === 'undefined' ? null : this.__createChild(_else); - } - format() { - return this.__get('format'); - } - contentEncoding() { - return this.__get('contentEncoding'); - } - contentMediaType() { - return this.__get('contentMediaType'); - } - definitions() { - return createMapOfType(this.__get('definitions'), Schema, { parent: this }); - } - title() { - return this.__get('title'); - } - default() { - return this.__get('default'); - } - deprecated() { - return this.__get('deprecated'); - } - discriminator() { - return this.__get('discriminator'); - } - readOnly() { - return this.__get('readOnly'); - } - writeOnly() { - return this.__get('writeOnly'); - } - examples() { - return this.__get('examples'); - } - isBooleanSchema() { - return typeof this._json === 'boolean'; - } - description() { - return description(this); - } - hasDescription() { - return hasDescription(this); - } - externalDocs() { - return externalDocs(this); - } - hasExternalDocs() { - return hasExternalDocs(this); - } - isCircular() { - if (hasRef(this._json) || this.ext(xParserCircular)) { - return true; - } - let parent = this._meta.parent; - while (parent) { - if (parent._json === this._json) - return true; - parent = parent._meta && parent._meta.parent; - } - return false; - } - circularSchema() { - let parent = this._meta.parent; - while (parent) { - if (parent._json === this._json) - return parent; - parent = parent._meta && parent._meta.parent; - } - } - hasCircularProps() { - if (Array.isArray(this.ext(xParserCircularProps))) { - return this.ext(xParserCircularProps).length > 0; - } - return Object.entries(this.properties() || {}) - .map(([propertyName, property]) => { - if (property.isCircular()) - return propertyName; - }) - .filter(Boolean) - .length > 0; - } - circularProps() { - if (Array.isArray(this.ext(xParserCircularProps))) { - return this.ext(xParserCircularProps); - } - return Object.entries(this.properties() || {}) - .map(([propertyName, property]) => { - if (property.isCircular()) - return propertyName; - }) - .filter(Boolean); - } - __get(key) { - if (typeof this._json === 'boolean') - return; - return this._json[key]; - } - __createChild(s) { - return new Schema(s, { parent: this }); - } -} diff --git a/esm/old-api/security-requirement.d.ts b/esm/old-api/security-requirement.d.ts deleted file mode 100644 index 034e0c317..000000000 --- a/esm/old-api/security-requirement.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Base } from './base'; -import type { v2 } from '../spec-types'; -export declare class SecurityRequirement extends Base { -} diff --git a/esm/old-api/security-requirement.js b/esm/old-api/security-requirement.js deleted file mode 100644 index c37b25dbf..000000000 --- a/esm/old-api/security-requirement.js +++ /dev/null @@ -1,3 +0,0 @@ -import { Base } from './base'; -export class SecurityRequirement extends Base { -} diff --git a/esm/old-api/security-scheme.d.ts b/esm/old-api/security-scheme.d.ts deleted file mode 100644 index bde080425..000000000 --- a/esm/old-api/security-scheme.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import { OAuthFlow } from './oauth-flow'; -import type { v2 } from '../spec-types'; -export declare class SecurityScheme extends SpecificationExtensionsModel { - type(): v2.SecuritySchemeType; - description(): string | null; - hasDescription(): boolean; - name(): string | undefined; - in(): "user" | "password" | "query" | "header" | "cookie" | undefined; - scheme(): string | undefined; - bearerFormat(): string | undefined; - openIdConnectUrl(): string | undefined; - flows(): Record; -} diff --git a/esm/old-api/security-scheme.js b/esm/old-api/security-scheme.js deleted file mode 100644 index bc06878ca..000000000 --- a/esm/old-api/security-scheme.js +++ /dev/null @@ -1,31 +0,0 @@ -import { SpecificationExtensionsModel, description, hasDescription, createMapOfType } from './mixins'; -import { OAuthFlow } from './oauth-flow'; -export class SecurityScheme extends SpecificationExtensionsModel { - type() { - return this._json.type; - } - description() { - return description(this); - } - hasDescription() { - return hasDescription(this); - } - name() { - return this._json.name; - } - in() { - return this._json.in; - } - scheme() { - return this._json.scheme; - } - bearerFormat() { - return this._json.bearerFormat; - } - openIdConnectUrl() { - return this._json.openIdConnectUrl; - } - flows() { - return createMapOfType(this._json.flows, OAuthFlow); - } -} diff --git a/esm/old-api/server-variable.d.ts b/esm/old-api/server-variable.d.ts deleted file mode 100644 index ed17f1d6f..000000000 --- a/esm/old-api/server-variable.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import type { v2 } from '../spec-types'; -export declare class ServerVariable extends SpecificationExtensionsModel { - allowedValues(): string[] | undefined; - allows(name: string): boolean; - hasAllowedValues(): boolean; - description(): string | null; - hasDescription(): boolean; - defaultValue(): string | undefined; - hasDefaultValue(): boolean; - examples(): string[] | undefined; -} diff --git a/esm/old-api/server-variable.js b/esm/old-api/server-variable.js deleted file mode 100644 index 4c557c989..000000000 --- a/esm/old-api/server-variable.js +++ /dev/null @@ -1,29 +0,0 @@ -import { SpecificationExtensionsModel, description, hasDescription } from './mixins'; -export class ServerVariable extends SpecificationExtensionsModel { - allowedValues() { - return this._json.enum; - } - allows(name) { - if (this._json.enum === undefined) - return true; - return this._json.enum.includes(name); - } - hasAllowedValues() { - return this._json.enum !== undefined; - } - description() { - return description(this); - } - hasDescription() { - return hasDescription(this); - } - defaultValue() { - return this._json.default; - } - hasDefaultValue() { - return this._json.default !== undefined; - } - examples() { - return this._json.examples; - } -} diff --git a/esm/old-api/server.d.ts b/esm/old-api/server.d.ts deleted file mode 100644 index 803194b67..000000000 --- a/esm/old-api/server.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { SpecificationExtensionsModel } from './mixins'; -import { ServerVariable } from './server-variable'; -import { SecurityRequirement } from './security-requirement'; -import type { v2 } from '../spec-types'; -export declare class Server extends SpecificationExtensionsModel { - url(): string; - protocol(): string; - protocolVersion(): string | undefined; - description(): string | null; - hasDescription(): boolean; - variables(): Record; - variable(name: string): ServerVariable | null; - hasVariables(): boolean; - security(): SecurityRequirement[] | null; - hasBindings(): boolean; - bindings(): Record; - bindingProtocols(): string[]; - hasBinding(name: string): boolean; - binding(name: string): v2.Binding | null; -} diff --git a/esm/old-api/server.js b/esm/old-api/server.js deleted file mode 100644 index a1bcbc705..000000000 --- a/esm/old-api/server.js +++ /dev/null @@ -1,49 +0,0 @@ -import { SpecificationExtensionsModel, description, hasDescription, createMapOfType, bindingsMixins, getMapValue } from './mixins'; -import { ServerVariable } from './server-variable'; -import { SecurityRequirement } from './security-requirement'; -export class Server extends SpecificationExtensionsModel { - url() { - return this._json.url; - } - protocol() { - return this._json.protocol; - } - protocolVersion() { - return this._json.protocolVersion; - } - description() { - return description(this); - } - hasDescription() { - return hasDescription(this); - } - variables() { - return createMapOfType(this._json.variables, ServerVariable); - } - variable(name) { - return getMapValue(this._json.variables, name, ServerVariable); - } - hasVariables() { - return !!this._json.variables; - } - security() { - if (!this._json.security) - return null; - return this._json.security.map(sec => new SecurityRequirement(sec)); - } - hasBindings() { - return bindingsMixins.hasBindings(this); - } - bindings() { - return bindingsMixins.bindings(this); - } - bindingProtocols() { - return bindingsMixins.bindingProtocols(this); - } - hasBinding(name) { - return bindingsMixins.hasBinding(this, name); - } - binding(name) { - return bindingsMixins.binding(this, name); - } -} diff --git a/esm/old-api/tag.d.ts b/esm/old-api/tag.d.ts deleted file mode 100644 index f895f29e7..000000000 --- a/esm/old-api/tag.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Base } from './base'; -import type { v2 } from '../spec-types'; -export declare class Tag extends Base { - name(): string; - description(): string | null; - hasDescription(): boolean; - externalDocs(): import("./external-docs").ExternalDocs | null; - hasExternalDocs(): boolean; - hasExtensions(): boolean; - extensions(): v2.SpecificationExtensions; - extensionKeys(): string[]; - extKeys(): string[]; - hasExtension(extension: string): boolean; - extension(extension: string): v2.SpecificationExtension; - hasExt(extension: string): boolean; - ext(extension: string): any; -} diff --git a/esm/old-api/tag.js b/esm/old-api/tag.js deleted file mode 100644 index 27d82558b..000000000 --- a/esm/old-api/tag.js +++ /dev/null @@ -1,43 +0,0 @@ -import { Base } from './base'; -import { hasDescription, description, hasExternalDocs, externalDocs, extensionsMixins } from './mixins'; -export class Tag extends Base { - name() { - return this._json.name; - } - description() { - return description(this); - } - hasDescription() { - return hasDescription(this); - } - externalDocs() { - return externalDocs(this); - } - hasExternalDocs() { - return hasExternalDocs(this); - } - hasExtensions() { - return extensionsMixins.hasExtensions(this); - } - extensions() { - return extensionsMixins.extensions(this); - } - extensionKeys() { - return extensionsMixins.extensionKeys(this); - } - extKeys() { - return extensionsMixins.extKeys(this); - } - hasExtension(extension) { - return extensionsMixins.hasExtension(this, extension); - } - extension(extension) { - return extensionsMixins.extension(this, extension); - } - hasExt(extension) { - return extensionsMixins.hasExt(this, extension); - } - ext(extension) { - return extensionsMixins.ext(this, extension); - } -} diff --git a/esm/parse.d.ts b/esm/parse.d.ts deleted file mode 100644 index dc70ad660..000000000 --- a/esm/parse.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { AsyncAPIDocumentInterface } from './models'; -import type { Spectral } from '@stoplight/spectral-core'; -import type { Parser } from './parser'; -import type { ValidateOptions } from './validate'; -import type { Input, Diagnostic } from './types'; -export interface ParseOutput { - document: AsyncAPIDocumentInterface | undefined; - diagnostics: Diagnostic[]; -} -export interface ParseOptions { - source?: string; - applyTraits?: boolean; - parseSchemas?: boolean; - validateOptions?: Omit; -} -export declare function parse(parser: Parser, spectral: Spectral, asyncapi: Input, options?: ParseOptions): Promise; diff --git a/esm/parse.js b/esm/parse.js deleted file mode 100644 index 3793da5d1..000000000 --- a/esm/parse.js +++ /dev/null @@ -1,42 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -import { customOperations } from './custom-operations'; -import { validate } from './validate'; -import { copy } from './stringify'; -import { createAsyncAPIDocument } from './document'; -import { createDetailedAsyncAPI, mergePatch, setExtension } from './utils'; -import { xParserSpecParsed } from './constants'; -const defaultOptions = { - applyTraits: true, - parseSchemas: true, - validateOptions: {}, -}; -export function parse(parser, spectral, asyncapi, options = {}) { - return __awaiter(this, void 0, void 0, function* () { - options = mergePatch(defaultOptions, options); - const { validated, diagnostics } = yield validate(spectral, asyncapi, Object.assign(Object.assign({}, options.validateOptions), { source: options.source })); - if (validated === undefined) { - return { - document: undefined, - diagnostics, - }; - } - // unfreeze the object - Spectral makes resolved document "freezed" - const validatedDoc = copy(validated); - const detailed = createDetailedAsyncAPI(asyncapi, validatedDoc); - const document = createAsyncAPIDocument(detailed); - setExtension(xParserSpecParsed, true, document); - yield customOperations(parser, document, detailed, options); - return { - document, - diagnostics, - }; - }); -} diff --git a/esm/parser.d.ts b/esm/parser.d.ts deleted file mode 100644 index e0b0643f5..000000000 --- a/esm/parser.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type { Spectral } from '@stoplight/spectral-core'; -import type { ParseOptions, ParseOutput } from './parse'; -import type { ValidateOptions } from './validate'; -import type { ResolverOptions } from './resolver'; -import type { SchemaParser } from './schema-parser'; -import type { Diagnostic, Input } from './types'; -export interface ParserOptions { - schemaParsers?: Array; - __unstable?: { - resolver?: ResolverOptions; - }; -} -export declare class Parser { - private readonly options; - readonly parserRegistry: Map>; - protected readonly spectral: Spectral; - constructor(options?: ParserOptions); - parse(asyncapi: Input, options?: ParseOptions): Promise; - validate(asyncapi: Input, options?: ValidateOptions): Promise; - registerSchemaParser(parser: SchemaParser): void; -} diff --git a/esm/parser.js b/esm/parser.js deleted file mode 100644 index 3a95c404d..000000000 --- a/esm/parser.js +++ /dev/null @@ -1,49 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -import { toAsyncAPIDocument } from './document'; -import { parse } from './parse'; -import { validate } from './validate'; -import { registerSchemaParser } from './schema-parser'; -import { AsyncAPISchemaParser } from './schema-parser/asyncapi-schema-parser'; -import { createSpectral } from './spectral'; -export class Parser { - constructor(options = {}) { - var _a; - this.options = options; - this.parserRegistry = new Map(); - this.spectral = createSpectral(this, options); - this.registerSchemaParser(AsyncAPISchemaParser()); - (_a = this.options.schemaParsers) === null || _a === void 0 ? void 0 : _a.forEach(parser => this.registerSchemaParser(parser)); - } - parse(asyncapi, options) { - return __awaiter(this, void 0, void 0, function* () { - const maybeDocument = toAsyncAPIDocument(asyncapi); - if (maybeDocument) { - return { - document: maybeDocument, - diagnostics: [], - }; - } - return parse(this, this.spectral, asyncapi, options); - }); - } - validate(asyncapi, options) { - return __awaiter(this, void 0, void 0, function* () { - const maybeDocument = toAsyncAPIDocument(asyncapi); - if (maybeDocument) { - return []; - } - return (yield validate(this.spectral, asyncapi, options)).diagnostics; - }); - } - registerSchemaParser(parser) { - return registerSchemaParser(this, parser); - } -} diff --git a/esm/resolver.d.ts b/esm/resolver.d.ts deleted file mode 100644 index 90d4232bc..000000000 --- a/esm/resolver.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Resolver as SpectralResolver } from '@stoplight/spectral-ref-resolver'; -import type Uri from 'urijs'; -export interface Resolver { - schema: 'file' | 'http' | 'https' | string; - order?: number; - canRead?: boolean | ((uri: Uri, ctx?: any) => boolean); - read: (uri: Uri, ctx?: any) => string | undefined | Promise; -} -export interface ResolverOptions { - cache?: boolean; - resolvers?: Array; -} -export declare function createResolver(options?: ResolverOptions): SpectralResolver; diff --git a/esm/resolver.js b/esm/resolver.js deleted file mode 100644 index 4ff3c343c..000000000 --- a/esm/resolver.js +++ /dev/null @@ -1,73 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -import { Resolver as SpectralResolver } from '@stoplight/spectral-ref-resolver'; -import { Cache } from '@stoplight/json-ref-resolver/cache'; -import { resolveFile, resolveHttp } from '@stoplight/json-ref-readers'; -export function createResolver(options = {}) { - const availableResolvers = [ - ...createDefaultResolvers(), - ...((options === null || options === void 0 ? void 0 : options.resolvers) || []) - ].map(r => (Object.assign(Object.assign({}, r), { order: r.order || Number.MAX_SAFE_INTEGER, canRead: typeof r.canRead === 'undefined' ? true : r.canRead }))); - const availableSchemas = [...new Set(availableResolvers.map(r => r.schema))]; - const resolvers = availableSchemas.reduce((acc, schema) => { - acc[schema] = { resolve: createSchemaResolver(schema, availableResolvers) }; - return acc; - }, {}); - // if cache is enabled, use default Cache instance in SpectralResolver, otherwise use custom one with ttl set to 1ms - const cache = options.cache !== false; - return new SpectralResolver({ - uriCache: cache ? undefined : new Cache({ stdTTL: 1 }), - resolvers: resolvers, - }); -} -function createDefaultResolvers() { - return [ - { - schema: 'file', - read: resolveFile, - }, - { - schema: 'https', - read: resolveHttp, - }, - { - schema: 'http', - read: resolveHttp, - }, - ]; -} -function createSchemaResolver(schema, allResolvers) { - const resolvers = allResolvers.filter(r => r.schema === schema).sort((a, b) => { return a.order - b.order; }); - return (uri, ctx) => __awaiter(this, void 0, void 0, function* () { - let result = undefined; - let lastError; - for (const resolver of resolvers) { - try { - if (!canRead(resolver, uri, ctx)) - continue; - result = yield resolver.read(uri, ctx); - if (typeof result === 'string') { - break; - } - } - catch (e) { - lastError = e; - continue; - } - } - if (typeof result !== 'string') { - throw lastError || new Error(`None of the available resolvers for "${schema}" can resolve the given reference.`); - } - return result; - }); -} -function canRead(resolver, uri, ctx) { - return typeof resolver.canRead === 'function' ? resolver.canRead(uri, ctx) : resolver.canRead; -} diff --git a/esm/schema-parser/asyncapi-schema-parser.d.ts b/esm/schema-parser/asyncapi-schema-parser.d.ts deleted file mode 100644 index 9f4f64000..000000000 --- a/esm/schema-parser/asyncapi-schema-parser.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { SchemaParser } from '../schema-parser'; -export declare function AsyncAPISchemaParser(): SchemaParser; diff --git a/esm/schema-parser/asyncapi-schema-parser.js b/esm/schema-parser/asyncapi-schema-parser.js deleted file mode 100644 index e30bfce8f..000000000 --- a/esm/schema-parser/asyncapi-schema-parser.js +++ /dev/null @@ -1,88 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -import Ajv from 'ajv'; -// @ts-ignore -import specs from '@asyncapi/specs'; -import { specVersions } from '../constants'; -const ajv = new Ajv({ - allErrors: true, - strict: false, - logger: false, -}); -export function AsyncAPISchemaParser() { - return { - validate, - parse, - getMimeTypes, - }; -} -function validate(input) { - return __awaiter(this, void 0, void 0, function* () { - const version = input.asyncapi.semver.version; - const validator = getSchemaValidator(version); - let result = []; - const valid = validator(input.data); - if (!valid && validator.errors) { - result = ajvToSpectralResult(input.path, [...validator.errors]); - } - return result; - }); -} -function parse(input) { - return __awaiter(this, void 0, void 0, function* () { - return input.data; - }); -} -function getMimeTypes() { - const mimeTypes = [ - 'application/schema;version=draft-07', - 'application/schema+json;version=draft-07', - 'application/schema+yaml;version=draft-07', - ]; - specVersions.forEach((version) => { - mimeTypes.push(`application/vnd.aai.asyncapi;version=${version}`, `application/vnd.aai.asyncapi+json;version=${version}`, `application/vnd.aai.asyncapi+yaml;version=${version}`); - }); - return mimeTypes; -} -function ajvToSpectralResult(path, errors) { - return errors.map(error => { - return { - message: error.message, - path: [...path, ...error.instancePath.replace(/^\//, '').split('/')], - }; - }); -} -function getSchemaValidator(version) { - let validator = ajv.getSchema(version); - if (!validator) { - const schema = preparePayloadSchema(specs[version], version); - ajv.addSchema(schema, version); - validator = ajv.getSchema(version); - } - return validator; -} -/** - * To validate the schema of the payload we just need a small portion of official AsyncAPI spec JSON Schema, the Schema Object in particular. The definition of Schema Object must be - * included in the returned JSON Schema. - */ -function preparePayloadSchema(asyncapiSchema, version) { - const payloadSchema = `http://asyncapi.com/definitions/${version}/schema.json`; - const definitions = asyncapiSchema.definitions; - if (definitions === undefined) { - throw new Error('AsyncAPI schema must contain definitions'); - } - // Remove the meta schemas because they are already present within Ajv, and it's not possible to add duplicated schemas. - delete definitions['http://json-schema.org/draft-07/schema']; - delete definitions['http://json-schema.org/draft-04/schema']; - return { - $ref: payloadSchema, - definitions - }; -} diff --git a/esm/schema-parser/avro-schema-parser.d.ts b/esm/schema-parser/avro-schema-parser.d.ts deleted file mode 100644 index ef6e5c387..000000000 --- a/esm/schema-parser/avro-schema-parser.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { Schema } from 'avsc'; -import type { SchemaParser } from '../schema-parser'; -import type { v2 } from '../spec-types'; -declare type AvroSchema = Schema & { - [key: string]: any; -}; -export declare function AvroSchemaParser(): SchemaParser; -export declare function avroToJsonSchema(avroDefinition: AvroSchema): Promise; -export {}; diff --git a/esm/schema-parser/avro-schema-parser.js b/esm/schema-parser/avro-schema-parser.js deleted file mode 100644 index 8f8700019..000000000 --- a/esm/schema-parser/avro-schema-parser.js +++ /dev/null @@ -1,339 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -import avsc from 'avsc'; -export function AvroSchemaParser() { - return { - validate, - parse, - getMimeTypes, - }; -} -function validate(input) { - return __awaiter(this, void 0, void 0, function* () { - const result = []; - try { - validateAvroSchema(input.data); - } - catch (error) { - if (error instanceof Error) { - result.push({ - message: error.message, - path: input.path, // avsc doesn't throw errors with meaningful paths - }); - } - } - return result; - }); -} -function parse(input) { - var _a, _b; - return __awaiter(this, void 0, void 0, function* () { - const asyncAPISchema = yield avroToJsonSchema(input.data); - // TODO: Should the following modifications to the message object be done in the caller and for all parsers rather than here? - // remove that function when https://github.com/asyncapi/spec/issues/622 will be introduced in AsyncAPI spec - const message = input.meta.message; - const key = (_b = (_a = message === null || message === void 0 ? void 0 : message.bindings) === null || _a === void 0 ? void 0 : _a.kafka) === null || _b === void 0 ? void 0 : _b.key; - if (key) { - const bindingsTransformed = yield avroToJsonSchema(key); - message['x-parser-original-bindings-kafka-key'] = key; - message.bindings.kafka.key = bindingsTransformed; - } - return asyncAPISchema; - }); -} -function getMimeTypes() { - return [ - 'application/vnd.apache.avro;version=1.9.0', - 'application/vnd.apache.avro+json;version=1.9.0', - 'application/vnd.apache.avro+yaml;version=1.9.0', - 'application/vnd.apache.avro;version=1.8.2', - 'application/vnd.apache.avro+json;version=1.8.2', - 'application/vnd.apache.avro+yaml;version=1.8.2' - ]; -} -const BYTES_PATTERN = '^[\u0000-\u00ff]*$'; -const INT_MIN = Math.pow(-2, 31); -const INT_MAX = Math.pow(2, 31) - 1; -const LONG_MIN = Math.pow(-2, 63); -const LONG_MAX = Math.pow(2, 63) - 1; -const typeMappings = { - null: 'null', - boolean: 'boolean', - int: 'integer', - long: 'integer', - float: 'number', - double: 'number', - bytes: 'string', - string: 'string', - fixed: 'string', - map: 'object', - array: 'array', - enum: 'string', - record: 'object', - uuid: 'string', -}; -function commonAttributesMapping(avroDefinition, jsonSchema, recordCache) { - if (avroDefinition.doc) - jsonSchema.description = avroDefinition.doc; - if (avroDefinition.default !== undefined) - jsonSchema.default = avroDefinition.default; - const fullyQualifiedName = getFullyQualifiedName(avroDefinition); - if (fullyQualifiedName !== undefined && recordCache[fullyQualifiedName]) { - jsonSchema['x-parser-schema-id'] = fullyQualifiedName; - } -} -function getFullyQualifiedName(avroDefinition) { - let name; - if (avroDefinition.name) { - if (avroDefinition.namespace) { - name = `${avroDefinition.namespace}.${avroDefinition.name}`; - } - else { - name = avroDefinition.name; - } - } - return name; -} -/** - * Enrich the parent's required attribute with the required record attributes - * @param fieldDefinition the actual field definition - * @param parentJsonSchema the parent json schema which contains the required property to enrich - * @param haveDefaultValue we assure that a required field does not have a default value - */ -function requiredAttributesMapping(fieldDefinition, parentJsonSchema, haveDefaultValue) { - const isUnionWithNull = Array.isArray(fieldDefinition.type) && fieldDefinition.type.includes('null'); - // we assume that a union type without null and a field without default value is required - if (!isUnionWithNull && !haveDefaultValue) { - parentJsonSchema.required = parentJsonSchema.required || []; - parentJsonSchema.required.push(fieldDefinition.name); - } -} -function extractNonNullableTypeIfNeeded(typeInput, jsonSchemaInput) { - let type = typeInput; - let jsonSchema = jsonSchemaInput; - // Map example to first non-null type - if (Array.isArray(typeInput) && typeInput.length > 0) { - const pickSecondType = typeInput.length > 1 && typeInput[0] === 'null'; - type = typeInput[+pickSecondType]; - if (jsonSchema.oneOf !== undefined) { - jsonSchema = jsonSchema.oneOf[0]; - } - } - return { type, jsonSchema }; -} -function exampleAttributeMapping(type, example, jsonSchema) { - if (example === undefined || jsonSchema.examples || Array.isArray(type)) - return; - switch (type) { - case 'boolean': - jsonSchema.examples = [example === 'true']; - break; - case 'int': - jsonSchema.examples = [parseInt(example, 10)]; - break; - default: - jsonSchema.examples = [example]; - } -} -function additionalAttributesMapping(typeInput, avroDefinition, jsonSchemaInput) { - const __ret = extractNonNullableTypeIfNeeded(typeInput, jsonSchemaInput); - const type = __ret.type; - const jsonSchema = __ret.jsonSchema; - exampleAttributeMapping(type, avroDefinition.example, jsonSchema); - function setAdditionalAttribute(...names) { - names.forEach(name => { - let isValueCoherent = true; - if (name === 'minLength' || name === 'maxLength') { - isValueCoherent = avroDefinition[name] > -1; - } - else if (name === 'multipleOf') { - isValueCoherent = avroDefinition[name] > 0; - } - if (avroDefinition[name] !== undefined && isValueCoherent) - jsonSchema[name] = avroDefinition[name]; - }); - } - switch (type) { - case 'int': // int, long, float, and double must support the attributes bellow - case 'long': - case 'float': - case 'double': - setAdditionalAttribute('minimum', 'maximum', 'exclusiveMinimum', 'exclusiveMaximum', 'multipleOf'); - break; - case 'string': - if (avroDefinition.logicalType) { - jsonSchema.format = avroDefinition.logicalType; - } - setAdditionalAttribute('pattern', 'minLength', 'maxLength'); - break; - case 'array': - setAdditionalAttribute('minItems', 'maxItems', 'uniqueItems'); - break; - default: - break; - } -} -function validateAvroSchema(avroDefinition) { - // don't need to use the output from parsing the - // avro definition - we're just using this as a - // validator as this will throw an exception if - // there are any problems with the definition - avsc.Type.forSchema(avroDefinition); -} -/** - * Cache the passed value under the given key. If the key is undefined the value will not be cached. This function - * uses mutation of the passed cache object rather than a copy on write cache strategy. - * - * @param cache Map the cache to store the JsonSchema - * @param key String | Undefined - the fully qualified name of an avro record - * @param value JsonSchema - The json schema from the avro record - */ -function cacheAvroRecordDef(cache, key, value) { - if (key !== undefined) { - cache[key] = value; - } -} -function convertAvroToJsonSchema(avroDefinition, isTopLevel, recordCache = {}) { - return __awaiter(this, void 0, void 0, function* () { - let jsonSchema = {}; - const isUnion = Array.isArray(avroDefinition); - if (isUnion) { - return processUnionSchema(jsonSchema, avroDefinition, isTopLevel, recordCache); - } - // Avro definition can be a string (e.g. "int") - // or an object like { type: "int" } - const type = avroDefinition.type || avroDefinition; - jsonSchema.type = typeMappings[type]; - switch (type) { - case 'int': { - jsonSchema.minimum = INT_MIN; - jsonSchema.maximum = INT_MAX; - break; - } - case 'long': { - jsonSchema.minimum = LONG_MIN; - jsonSchema.maximum = LONG_MAX; - break; - } - case 'bytes': { - jsonSchema.pattern = BYTES_PATTERN; - break; - } - case 'fixed': { - jsonSchema.pattern = BYTES_PATTERN; - jsonSchema.minLength = avroDefinition.size; - jsonSchema.maxLength = avroDefinition.size; - break; - } - case 'map': { - jsonSchema.additionalProperties = yield convertAvroToJsonSchema(avroDefinition.values, false); - break; - } - case 'array': { - jsonSchema.items = yield convertAvroToJsonSchema(avroDefinition.items, false); - break; - } - case 'enum': { - jsonSchema.enum = avroDefinition.symbols; - break; - } - case 'float': // float and double must support the format attribute from the avro type - case 'double': { - jsonSchema.format = type; - break; - } - case 'record': { - const propsMap = yield processRecordSchema(avroDefinition, recordCache, jsonSchema); - cacheAvroRecordDef(recordCache, getFullyQualifiedName(avroDefinition), propsMap); - jsonSchema.properties = Object.fromEntries(propsMap.entries()); - break; - } - default: { - const cachedRecord = recordCache[getFullyQualifiedName(avroDefinition)]; - if (cachedRecord) { - jsonSchema = cachedRecord; - } - break; - } - } - commonAttributesMapping(avroDefinition, jsonSchema, recordCache); - additionalAttributesMapping(type, avroDefinition, jsonSchema); - return jsonSchema; - }); -} -/** - * When a record type is found in an avro schema this function can be used to process the underlying fields and return - * the map of props contained by the record. The record will also be cached. - * - * @param avroDefinition the avro schema to be processed - * @param recordCache the cache of previously processed avro record types - * @param jsonSchema the schema for the record. - * @returns {Promise>} - */ -function processRecordSchema(avroDefinition, recordCache, jsonSchema) { - return __awaiter(this, void 0, void 0, function* () { - const propsMap = new Map(); - for (const field of avroDefinition.fields) { - // If the type is a sub schema it will have been stored in the cache. - if (recordCache[field.type]) { - propsMap.set(field.name, recordCache[field.type]); - } - else { - const def = yield convertAvroToJsonSchema(field.type, false, recordCache); - requiredAttributesMapping(field, jsonSchema, field.default !== undefined); - commonAttributesMapping(field, def, recordCache); - additionalAttributesMapping(field.type, field, def); - propsMap.set(field.name, def); - // If there is a name for the sub record cache it under the name. - const qualifiedFieldName = getFullyQualifiedName(field.type); - cacheAvroRecordDef(recordCache, qualifiedFieldName, def); - } - } - return propsMap; - }); -} -/** - * Handles processing union avro schema types by creating a oneOf jsonSchema definition. This will mutate the passed - * jsonSchema and recordCache objects. - * - * @param jsonSchema the jsonSchema object that will be mutated. - * @param avroDefinition the avro schema to be processed - * @param isTopLevel is this the top level of the schema or is this a sub schema - * @param recordCache the cache of previously processed record types - * @returns {Promise} the mutated jsonSchema that was provided to the function - */ -function processUnionSchema(jsonSchema, avroDefinition, isTopLevel, recordCache) { - return __awaiter(this, void 0, void 0, function* () { - jsonSchema.oneOf = []; - let nullDef = null; - for (const avroDef of avroDefinition) { - const def = yield convertAvroToJsonSchema(avroDef, isTopLevel, recordCache); - // avroDef can be { type: 'int', default: 1 } and this is why avroDef.type has priority here - const defType = avroDef.type || avroDef; - // To prefer non-null values in the examples skip null definition here and push it as the last element after loop - if (defType === 'null') { - nullDef = def; - } - else { - jsonSchema.oneOf.push(def); - const qualifiedName = getFullyQualifiedName(avroDef); - cacheAvroRecordDef(recordCache, qualifiedName, def); - } - } - if (nullDef) - jsonSchema.oneOf.push(nullDef); - return jsonSchema; - }); -} -export function avroToJsonSchema(avroDefinition) { - return __awaiter(this, void 0, void 0, function* () { - return convertAvroToJsonSchema(avroDefinition, true); - }); -} diff --git a/esm/schema-parser/index.d.ts b/esm/schema-parser/index.d.ts deleted file mode 100644 index 84aa51571..000000000 --- a/esm/schema-parser/index.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type { Parser } from '../parser'; -import type { AsyncAPISchema, DetailedAsyncAPI, SchemaValidateResult } from '../types'; -export interface ValidateSchemaInput { - readonly asyncapi: DetailedAsyncAPI; - readonly data: D; - readonly meta: M; - readonly path: Array; - readonly schemaFormat: string; - readonly defaultSchemaFormat: string; -} -export interface ParseSchemaInput { - readonly asyncapi: DetailedAsyncAPI; - readonly data: D; - readonly meta: M; - readonly path: Array; - readonly schemaFormat: string; - readonly defaultSchemaFormat: string; -} -export interface SchemaParser { - validate: (input: ValidateSchemaInput) => void | SchemaValidateResult[] | Promise; - parse: (input: ParseSchemaInput) => AsyncAPISchema | Promise; - getMimeTypes: () => Array; -} -export declare function validateSchema(parser: Parser, input: ValidateSchemaInput): Promise; -export declare function parseSchema(parser: Parser, input: ParseSchemaInput): Promise; -export declare function registerSchemaParser(parser: Parser, schemaParser: SchemaParser): void; -export declare function getSchemaFormat(schematFormat: string | undefined, asyncapiVersion: string): string; -export declare function getDefaultSchemaFormat(asyncapiVersion: string): string; diff --git a/esm/schema-parser/index.js b/esm/schema-parser/index.js deleted file mode 100644 index a82c9dd25..000000000 --- a/esm/schema-parser/index.js +++ /dev/null @@ -1,58 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -export function validateSchema(parser, input) { - return __awaiter(this, void 0, void 0, function* () { - const schemaParser = parser.parserRegistry.get(input.schemaFormat); - if (schemaParser === undefined) { - const { path, schemaFormat } = input; - path.pop(); // remove 'payload' as last element of path - return [ - { - message: `Unknown schema format: "${schemaFormat}"`, - path: [...path, 'schemaFormat'], - }, - { - message: `Cannot validate and parse given schema due to unknown schema format: "${schemaFormat}"`, - path: [...path, 'payload'], - } - ]; - } - return schemaParser.validate(input); - }); -} -export function parseSchema(parser, input) { - return __awaiter(this, void 0, void 0, function* () { - const schemaParser = parser.parserRegistry.get(input.schemaFormat); - if (schemaParser === undefined) { - throw new Error('Unknown schema format'); - } - return schemaParser.parse(input); - }); -} -export function registerSchemaParser(parser, schemaParser) { - if (typeof schemaParser !== 'object' - || typeof schemaParser.validate !== 'function' - || typeof schemaParser.parse !== 'function' - || typeof schemaParser.getMimeTypes !== 'function') { - throw new Error('Custom parser must have "parse()", "validate()" and "getMimeTypes()" functions.'); - } - schemaParser.getMimeTypes().forEach(schemaFormat => { - parser.parserRegistry.set(schemaFormat, schemaParser); - }); -} -export function getSchemaFormat(schematFormat, asyncapiVersion) { - if (typeof schematFormat === 'string') { - return schematFormat; - } - return getDefaultSchemaFormat(asyncapiVersion); -} -export function getDefaultSchemaFormat(asyncapiVersion) { - return `application/vnd.aai.asyncapi;version=${asyncapiVersion}`; -} diff --git a/esm/schema-parser/openapi-schema-parser.d.ts b/esm/schema-parser/openapi-schema-parser.d.ts deleted file mode 100644 index feb152ee5..000000000 --- a/esm/schema-parser/openapi-schema-parser.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { SchemaParser } from '../schema-parser'; -export declare function OpenAPISchemaParser(): SchemaParser; diff --git a/esm/schema-parser/openapi-schema-parser.js b/esm/schema-parser/openapi-schema-parser.js deleted file mode 100644 index 7cc56062d..000000000 --- a/esm/schema-parser/openapi-schema-parser.js +++ /dev/null @@ -1,99 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -import Ajv from 'ajv'; -import { schemaV3 } from './openapi/schema_v3'; -// eslint-disable-next-line @typescript-eslint/no-var-requires -const toJsonSchema = require('@openapi-contrib/openapi-schema-to-json-schema'); -const ajv = new Ajv({ - allErrors: true, - strict: false, - logger: false, -}); -ajv.addSchema(schemaV3, 'openapi'); -export function OpenAPISchemaParser() { - return { - validate, - parse, - getMimeTypes, - }; -} -function validate(input) { - return __awaiter(this, void 0, void 0, function* () { - const validator = ajv.getSchema('openapi'); - let result = []; - const valid = validator(input.data); - if (!valid && validator.errors) { - result = ajvToSpectralResult(input.path, [...validator.errors]); - } - return result; - }); -} -function parse(input) { - return __awaiter(this, void 0, void 0, function* () { - const transformed = toJsonSchema(input.data, { - cloneSchema: true, - keepNotSupported: [ - 'discriminator', - 'readOnly', - 'writeOnly', - 'deprecated', - 'xml', - 'example', - ], - }); - iterateSchema(transformed); - return transformed; - }); -} -function getMimeTypes() { - return [ - 'application/vnd.oai.openapi;version=3.0.0', - 'application/vnd.oai.openapi+json;version=3.0.0', - 'application/vnd.oai.openapi+yaml;version=3.0.0', - ]; -} -function ajvToSpectralResult(path, errors) { - return errors.map(error => { - return { - message: error.message, - path: [...path, ...error.instancePath.replace(/^\//, '').split('/')], - }; - }); -} -function iterateSchema(schema) { - if (schema.example !== undefined) { - const examples = schema.examples || []; - examples.push(schema.example); - schema.examples = examples; - delete schema.example; - } - if (schema.$schema !== undefined) { - delete schema.$schema; - } - aliasProps(schema.properties); - aliasProps(schema.patternProperties); - aliasProps(schema.additionalProperties); - aliasProps(schema.items); - aliasProps(schema.additionalItems); - aliasProps(schema.oneOf); - aliasProps(schema.anyOf); - aliasProps(schema.allOf); - aliasProps(schema.not); -} -function aliasProps(obj) { - for (const key in obj) { - const prop = obj[key]; - if (prop.xml !== undefined) { - prop['x-xml'] = prop.xml; - delete prop.xml; - } - iterateSchema(obj[key]); - } -} diff --git a/esm/schema-parser/openapi/schema_v3.d.ts b/esm/schema-parser/openapi/schema_v3.d.ts deleted file mode 100644 index e63319cb2..000000000 --- a/esm/schema-parser/openapi/schema_v3.d.ts +++ /dev/null @@ -1,239 +0,0 @@ -export declare const schemaV3: { - type: string; - definitions: { - Reference: { - type: string; - required: string[]; - patternProperties: { - '^\\$ref$': { - type: string; - format: string; - }; - }; - }; - Discriminator: { - type: string; - required: string[]; - properties: { - propertyName: { - type: string; - }; - mapping: { - type: string; - additionalProperties: { - type: string; - }; - }; - }; - }; - ExternalDocumentation: { - type: string; - required: string[]; - properties: { - description: { - type: string; - }; - url: { - type: string; - format: string; - }; - }; - patternProperties: { - '^x-': {}; - }; - additionalProperties: boolean; - }; - XML: { - type: string; - properties: { - name: { - type: string; - }; - namespace: { - type: string; - format: string; - }; - prefix: { - type: string; - }; - attribute: { - type: string; - default: boolean; - }; - wrapped: { - type: string; - default: boolean; - }; - }; - patternProperties: { - '^x-': {}; - }; - additionalProperties: boolean; - }; - }; - properties: { - title: { - type: string; - }; - multipleOf: { - type: string; - exclusiveMinimum: number; - }; - maximum: { - type: string; - }; - exclusiveMaximum: { - type: string; - default: boolean; - }; - minimum: { - type: string; - }; - exclusiveMinimum: { - type: string; - default: boolean; - }; - maxLength: { - type: string; - minimum: number; - }; - minLength: { - type: string; - minimum: number; - default: number; - }; - pattern: { - type: string; - format: string; - }; - maxItems: { - type: string; - minimum: number; - }; - minItems: { - type: string; - minimum: number; - default: number; - }; - uniqueItems: { - type: string; - default: boolean; - }; - maxProperties: { - type: string; - minimum: number; - }; - minProperties: { - type: string; - minimum: number; - default: number; - }; - required: { - type: string; - items: { - type: string; - }; - minItems: number; - uniqueItems: boolean; - }; - enum: { - type: string; - items: {}; - minItems: number; - uniqueItems: boolean; - }; - type: { - type: string; - enum: string[]; - }; - not: { - oneOf: { - $ref: string; - }[]; - }; - allOf: { - type: string; - items: { - oneOf: { - $ref: string; - }[]; - }; - }; - oneOf: { - type: string; - items: { - oneOf: { - $ref: string; - }[]; - }; - }; - anyOf: { - type: string; - items: { - oneOf: { - $ref: string; - }[]; - }; - }; - items: { - oneOf: { - $ref: string; - }[]; - }; - properties: { - type: string; - additionalProperties: { - oneOf: { - $ref: string; - }[]; - }; - }; - additionalProperties: { - oneOf: ({ - $ref: string; - type?: undefined; - } | { - type: string; - $ref?: undefined; - })[]; - default: boolean; - }; - description: { - type: string; - }; - format: { - type: string; - }; - default: {}; - nullable: { - type: string; - default: boolean; - }; - discriminator: { - $ref: string; - }; - readOnly: { - type: string; - default: boolean; - }; - writeOnly: { - type: string; - default: boolean; - }; - example: {}; - externalDocs: { - $ref: string; - }; - deprecated: { - type: string; - default: boolean; - }; - xml: { - $ref: string; - }; - }; - patternProperties: { - '^x-': {}; - }; - additionalProperties: boolean; -}; diff --git a/esm/schema-parser/openapi/schema_v3.js b/esm/schema-parser/openapi/schema_v3.js deleted file mode 100644 index c170412e7..000000000 --- a/esm/schema-parser/openapi/schema_v3.js +++ /dev/null @@ -1,275 +0,0 @@ -/* eslint-disable */ -// From https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json -export const schemaV3 = { - type: 'object', - definitions: { - Reference: { - type: 'object', - required: ['$ref'], - patternProperties: { - '^\\$ref$': { - type: 'string', - format: 'uri-reference' - } - } - }, - Discriminator: { - type: 'object', - required: ['propertyName'], - properties: { - propertyName: { - type: 'string' - }, - mapping: { - type: 'object', - additionalProperties: { - type: 'string' - } - } - } - }, - ExternalDocumentation: { - type: 'object', - required: ['url'], - properties: { - description: { - type: 'string' - }, - url: { - type: 'string', - format: 'uri-reference' - } - }, - patternProperties: { - '^x-': {} - }, - additionalProperties: false - }, - XML: { - type: 'object', - properties: { - name: { - type: 'string' - }, - namespace: { - type: 'string', - format: 'uri' - }, - prefix: { - type: 'string' - }, - attribute: { - type: 'boolean', - default: false - }, - wrapped: { - type: 'boolean', - default: false - } - }, - patternProperties: { - '^x-': {} - }, - additionalProperties: false - } - }, - properties: { - title: { - type: 'string' - }, - multipleOf: { - type: 'number', - exclusiveMinimum: 0 - }, - maximum: { - type: 'number' - }, - exclusiveMaximum: { - type: 'boolean', - default: false - }, - minimum: { - type: 'number' - }, - exclusiveMinimum: { - type: 'boolean', - default: false - }, - maxLength: { - type: 'integer', - minimum: 0 - }, - minLength: { - type: 'integer', - minimum: 0, - default: 0 - }, - pattern: { - type: 'string', - format: 'regex' - }, - maxItems: { - type: 'integer', - minimum: 0 - }, - minItems: { - type: 'integer', - minimum: 0, - default: 0 - }, - uniqueItems: { - type: 'boolean', - default: false - }, - maxProperties: { - type: 'integer', - minimum: 0 - }, - minProperties: { - type: 'integer', - minimum: 0, - default: 0 - }, - required: { - type: 'array', - items: { - type: 'string' - }, - minItems: 1, - uniqueItems: true - }, - enum: { - type: 'array', - items: {}, - minItems: 1, - uniqueItems: false - }, - type: { - type: 'string', - enum: ['array', 'boolean', 'integer', 'number', 'object', 'string'] - }, - not: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - } - ] - }, - allOf: { - type: 'array', - items: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - } - ] - } - }, - oneOf: { - type: 'array', - items: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - } - ] - } - }, - anyOf: { - type: 'array', - items: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - } - ] - } - }, - items: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - } - ] - }, - properties: { - type: 'object', - additionalProperties: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - } - ] - } - }, - additionalProperties: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - }, - { - type: 'boolean' - } - ], - default: true - }, - description: { - type: 'string' - }, - format: { - type: 'string' - }, - default: {}, - nullable: { - type: 'boolean', - default: false - }, - discriminator: { - $ref: '#/definitions/Discriminator' - }, - readOnly: { - type: 'boolean', - default: false - }, - writeOnly: { - type: 'boolean', - default: false - }, - example: {}, - externalDocs: { - $ref: '#/definitions/ExternalDocumentation' - }, - deprecated: { - type: 'boolean', - default: false - }, - xml: { - $ref: '#/definitions/XML' - } - }, - patternProperties: { - '^x-': {} - }, - additionalProperties: false -}; diff --git a/esm/schema-parser/raml-schema-parser.d.ts b/esm/schema-parser/raml-schema-parser.d.ts deleted file mode 100644 index 72250538a..000000000 --- a/esm/schema-parser/raml-schema-parser.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { SchemaParser } from '../schema-parser'; -export declare function RamlSchemaParser(): SchemaParser; diff --git a/esm/schema-parser/raml-schema-parser.js b/esm/schema-parser/raml-schema-parser.js deleted file mode 100644 index 3d000aa67..000000000 --- a/esm/schema-parser/raml-schema-parser.js +++ /dev/null @@ -1,59 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -import yaml from 'js-yaml'; -import * as lib from 'webapi-parser'; -/* eslint-disable */ -const wap = lib.WebApiParser; -const r2j = require('ramldt2jsonschema'); -export function RamlSchemaParser() { - return { - validate, - parse, - getMimeTypes, - }; -} -function parse(input) { - return __awaiter(this, void 0, void 0, function* () { - const payload = formatPayload(input.data); - // Draft 6 is compatible with 7. - const jsonModel = yield r2j.dt2js(payload, 'tmpType', { draft: '06' }); - return jsonModel.definitions.tmpType; - }); -} -function getMimeTypes() { - return [ - 'application/raml+yaml;version=1.0', - ]; -} -function validate(input) { - return __awaiter(this, void 0, void 0, function* () { - const payload = formatPayload(input.data); - const parsed = yield wap.raml10.parse(payload); - const report = yield wap.raml10.validate(parsed); - if (report.conforms) { - // No errors found. - return []; - } - const validateResult = []; - report.results.forEach(result => { - validateResult.push({ - message: result.message, - path: input.path, // RAML parser doesn't provide a path to the error. - }); - }); - return validateResult; - }); -} -function formatPayload(payload) { - if (typeof payload === 'object') { - return `#%RAML 1.0 Library\n${yaml.dump({ types: { tmpType: payload } })}`; - } - return payload; -} diff --git a/esm/schema-parser/spectral-rule-v2.d.ts b/esm/schema-parser/spectral-rule-v2.d.ts deleted file mode 100644 index d8b894057..000000000 --- a/esm/schema-parser/spectral-rule-v2.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { RuleDefinition } from '@stoplight/spectral-core'; -import type { Parser } from '../parser'; -export declare function asyncApi2SchemaParserRule(parser: Parser): RuleDefinition; diff --git a/esm/schema-parser/spectral-rule-v2.js b/esm/schema-parser/spectral-rule-v2.js deleted file mode 100644 index 188217f6a..000000000 --- a/esm/schema-parser/spectral-rule-v2.js +++ /dev/null @@ -1,77 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -import { createRulesetFunction } from '@stoplight/spectral-core'; -import { aas2_0, aas2_1, aas2_2, aas2_3, aas2_4 } from '@stoplight/spectral-formats'; -import { validateSchema, getSchemaFormat, getDefaultSchemaFormat } from './index'; -import { createDetailedAsyncAPI } from '../utils'; -export function asyncApi2SchemaParserRule(parser) { - return { - description: 'Custom schema must be correctly formatted from the point of view of the used format.', - formats: [aas2_0, aas2_1, aas2_2, aas2_3, aas2_4], - message: '{{error}}', - severity: 'error', - type: 'validation', - recommended: true, - given: [ - // operations - '$.channels.*.[publish,subscribe].message', - '$.channels.*.[publish,subscribe].message.oneOf.*', - '$.components.channels.*.[publish,subscribe].message', - '$.components.channels.*.[publish,subscribe].message.oneOf.*', - // messages - '$.components.messages.*', - ], - then: { - function: rulesetFunction(parser), - }, - }; -} -function rulesetFunction(parser) { - return createRulesetFunction({ - input: { - type: 'object', - properties: { - schemaFormat: { - type: 'string', - }, - payload: true, // any value - } - }, - options: null - }, (targetVal = {}, _, ctx) => __awaiter(this, void 0, void 0, function* () { - if (!targetVal.payload) { - return []; - } - const path = [...ctx.path, 'payload']; - const spec = ctx.document.data; - const schemaFormat = getSchemaFormat(targetVal.schemaFormat, spec.asyncapi); - const defaultSchemaFormat = getDefaultSchemaFormat(spec.asyncapi); - const asyncapi = createDetailedAsyncAPI(ctx.document.data, spec); - const input = { - asyncapi, - data: targetVal.payload, - meta: {}, - path, - schemaFormat, - defaultSchemaFormat, - }; - try { - return yield validateSchema(parser, input); - } - catch (err) { - return [ - { - message: `Error thrown during schema validation, name: ${err.name}, message: ${err.message}, stack: ${err.stack}`, - path, - } - ]; - } - })); -} diff --git a/esm/spec-types/index.d.ts b/esm/spec-types/index.d.ts deleted file mode 100644 index ea1e81c97..000000000 --- a/esm/spec-types/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * as v2 from './v2'; diff --git a/esm/spec-types/index.js b/esm/spec-types/index.js deleted file mode 100644 index ea1e81c97..000000000 --- a/esm/spec-types/index.js +++ /dev/null @@ -1 +0,0 @@ -export * as v2 from './v2'; diff --git a/esm/spec-types/v2.d.ts b/esm/spec-types/v2.d.ts deleted file mode 100644 index 7c5c379cc..000000000 --- a/esm/spec-types/v2.d.ts +++ /dev/null @@ -1,362 +0,0 @@ -import type { JSONSchema7Version, JSONSchema7TypeName, JSONSchema7Type } from 'json-schema'; -export declare type AsyncAPIVersion = string; -export declare type Identifier = string; -export declare type DefaultContentType = string; -export interface AsyncAPIObject extends SpecificationExtensions { - asyncapi: AsyncAPIVersion; - id?: Identifier; - info: InfoObject; - defaultContentType?: DefaultContentType; - servers?: ServersObject; - channels: ChannelsObject; - components?: ComponentsObject; - tags?: TagsObject; - externalDocs?: ExternalDocumentationObject; -} -export interface InfoObject extends SpecificationExtensions { - title: string; - version: string; - description?: string; - termsOfService?: string; - contact?: ContactObject; - license?: LicenseObject; -} -export interface ContactObject extends SpecificationExtensions { - name?: string; - url?: string; - email?: string; -} -export interface LicenseObject extends SpecificationExtensions { - name: string; - url?: string; -} -export declare type ServersObject = Record; -export interface ServerObject extends SpecificationExtensions { - url: string; - protocol: string; - protocolVersion?: string; - description?: string; - variables?: Record; - security?: Array; - bindings?: ServerBindingsObject | ReferenceObject; -} -export interface ServerVariableObject extends SpecificationExtensions { - enum?: Array; - default?: string; - description?: string; - examples?: Array; -} -export interface ServerBindingsObject extends SpecificationExtensions { - http?: Binding; - ws?: Binding; - kafka?: Binding; - anypointmq?: Binding; - amqp?: Binding; - amqp1?: Binding; - mqtt?: Binding; - mqtt5?: Binding; - nats?: Binding; - jms?: Binding; - sns?: Binding; - sqs?: Binding; - stomp?: Binding; - redis?: Binding; - mercure?: Binding; - ibmmq?: Binding; -} -export declare type ChannelsObject = Record; -export interface ChannelObject extends SpecificationExtensions { - description?: string; - servers?: Array; - subscribe?: OperationObject; - publish?: OperationObject; - parameters?: ParametersObject; - bindings?: ChannelBindingsObject | ReferenceObject; -} -export interface ChannelBindingsObject extends SpecificationExtensions { - http?: Binding; - ws?: Binding; - kafka?: Binding; - anypointmq?: Binding; - amqp?: Binding; - amqp1?: Binding; - mqtt?: Binding; - mqtt5?: Binding; - nats?: Binding; - jms?: Binding; - sns?: Binding; - sqs?: Binding; - stomp?: Binding; - redis?: Binding; - mercure?: Binding; - ibmmq?: Binding; -} -export interface OperationObject extends OperationTraitObject, SpecificationExtensions { - message?: MessageObject | ReferenceObject | { - oneOf: Array; - }; - traits?: Array; -} -export interface OperationTraitObject extends SpecificationExtensions { - operationId?: string; - summary?: string; - description?: string; - security?: Array; - tags?: TagsObject; - externalDocs?: ExternalDocumentationObject; - bindings?: OperationBindingsObject | ReferenceObject; -} -export interface OperationBindingsObject extends SpecificationExtensions { - http?: Binding; - ws?: Binding; - kafka?: Binding; - anypointmq?: Binding; - amqp?: Binding; - amqp1?: Binding; - mqtt?: Binding; - mqtt5?: Binding; - nats?: Binding; - jms?: Binding; - sns?: Binding; - sqs?: Binding; - stomp?: Binding; - redis?: Binding; - mercure?: Binding; - ibmmq?: Binding; -} -export declare type ParametersObject = Record; -export interface ParameterObject extends SpecificationExtensions { - description?: string; - schema?: SchemaObject; - location?: string; -} -export interface MessageObject extends MessageTraitObject, SpecificationExtensions { - payload?: any; - traits?: Array; -} -export interface MessageTraitObject extends SpecificationExtensions { - messageId?: string; - headers?: SchemaObject; - correlationId?: CorrelationIDObject | ReferenceObject; - schemaFormat?: string; - contentType?: string; - name?: string; - title?: string; - summary?: string; - description?: string; - tags?: TagsObject; - externalDocs?: ExternalDocumentationObject; - bindings?: MessageBindingsObject | ReferenceObject; - examples?: Array; -} -export interface MessageExampleObject extends SpecificationExtensions { - name?: string; - summary?: string; - headers?: Record; - payload?: any; -} -export interface MessageBindingsObject extends SpecificationExtensions { - http?: Binding; - ws?: Binding; - kafka?: Binding; - anypointmq?: Binding; - amqp?: Binding; - amqp1?: Binding; - mqtt?: Binding; - mqtt5?: Binding; - nats?: Binding; - jms?: Binding; - sns?: Binding; - sqs?: Binding; - stomp?: Binding; - redis?: Binding; - mercure?: Binding; - ibmmq?: Binding; -} -export declare type TagsObject = Array; -export interface TagObject extends SpecificationExtensions { - name: string; - description?: string; - externalDocs?: ExternalDocumentationObject; -} -export interface ExternalDocumentationObject extends SpecificationExtensions { - url: string; - description?: string; -} -export interface ComponentsObject extends SpecificationExtensions { - channels?: Record; - servers?: Record; - schemas?: Record; - messages?: Record; - securitySchemes?: Record; - parameters?: Record; - serverVariables?: Record; - correlationIds?: Record; - operationTraits?: Record; - messageTraits?: Record; - serverBindings?: Record; - channelBindings?: Record; - operationBindings?: Record; - messageBindings?: Record; -} -export declare type SchemaObject = AsyncAPISchemaObject | ReferenceObject; -export declare type AsyncAPISchemaObject = AsyncAPISchemaDefinition | boolean; -export interface AsyncAPISchemaDefinition extends SpecificationExtensions { - $id?: string; - $schema?: JSONSchema7Version; - $comment?: string; - type?: JSONSchema7TypeName | JSONSchema7TypeName[]; - enum?: JSONSchema7Type[]; - const?: JSONSchema7Type; - multipleOf?: number; - maximum?: number; - exclusiveMaximum?: number; - minimum?: number; - exclusiveMinimum?: number; - maxLength?: number; - minLength?: number; - pattern?: string; - items?: AsyncAPISchemaObject | AsyncAPISchemaObject[]; - additionalItems?: AsyncAPISchemaObject; - maxItems?: number; - minItems?: number; - uniqueItems?: boolean; - contains?: AsyncAPISchemaObject; - maxProperties?: number; - minProperties?: number; - required?: string[]; - properties?: { - [key: string]: AsyncAPISchemaObject; - }; - patternProperties?: { - [key: string]: AsyncAPISchemaObject; - }; - additionalProperties?: AsyncAPISchemaObject; - dependencies?: { - [key: string]: AsyncAPISchemaObject | string[]; - }; - propertyNames?: AsyncAPISchemaObject; - if?: AsyncAPISchemaObject; - then?: AsyncAPISchemaObject; - else?: AsyncAPISchemaObject; - allOf?: AsyncAPISchemaObject[]; - anyOf?: AsyncAPISchemaObject[]; - oneOf?: AsyncAPISchemaObject[]; - not?: AsyncAPISchemaObject; - format?: string; - contentMediaType?: string; - contentEncoding?: string; - definitions?: { - [key: string]: AsyncAPISchemaObject; - }; - title?: string; - description?: string; - default?: JSONSchema7Type; - readOnly?: boolean; - writeOnly?: boolean; - examples?: Array; - discriminator?: string; - externalDocs?: ExternalDocumentationObject; - deprecated?: boolean; - [keyword: string]: any; -} -export interface SecuritySchemeObject extends SpecificationExtensions { - type: SecuritySchemeType; - description?: string; - name?: string; - in?: 'user' | 'password' | 'query' | 'header' | 'cookie'; - scheme?: string; - bearerFormat?: string; - flows?: OAuthFlowsObject; - openIdConnectUrl?: string; -} -export declare type SecuritySchemeType = 'userPassword' | 'apiKey' | 'X509' | 'symmetricEncryption' | 'asymmetricEncryption' | 'httpApiKey' | 'http' | 'oauth2' | 'openIdConnect' | 'plain' | 'scramSha256' | 'scramSha512' | 'gssapi'; -export declare type SecuritySchemaLocation = 'user' | 'password' | 'query' | 'header' | 'header' | 'cookie'; -export interface SecuritySchemeObjectBase extends SpecificationExtensions { - description?: string; -} -export interface SecuritySchemeObjectUserPassword extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'userPassword'; -} -export interface SecuritySchemeObjectApiKey extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'apiKey'; - in: 'user' | 'password'; -} -export interface SecuritySchemeObjectX509 extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'X509'; -} -export interface SecuritySchemeObjectSymetricEncryption extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'symmetricEncryption'; -} -export interface SecuritySchemeObjectAsymetricEncryption extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'asymmetricEncryption'; -} -export interface SecuritySchemeObjectHttpApiKey extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'httpApiKey'; - name: string; - in: 'query' | 'header' | 'cookie'; -} -export interface SecuritySchemeObjectHttp extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'http'; - scheme: string; - bearerFormat?: string; -} -export interface SecuritySchemeObjectOauth2 extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'oauth2'; - flows: OAuthFlowsObject; -} -export interface SecuritySchemeObjectOpenIdConnect extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'openIdConnect'; - openIdConnectUrl: string; -} -export interface SecuritySchemeObjectPlain extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'plain'; -} -export interface SecuritySchemeObjectScramSha256 extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'scramSha256'; -} -export interface SecuritySchemeObjectScramSha512 extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'scramSha512'; -} -export interface SecuritySchemeObjectGssapi extends SecuritySchemeObjectBase, SpecificationExtensions { - type: 'gssapi'; -} -export interface OAuthFlowsObject extends SpecificationExtensions { - implicit?: OAuthFlowObjectImplicit; - password?: OAuthFlowObjectPassword; - clientCredentials?: OAuthFlowObjectClientCredentials; - authorizationCode?: OAuthFlowObjectAuthorizationCode; -} -export declare type OAuthFlowObject = OAuthFlowObjectImplicit & OAuthFlowObjectPassword & OAuthFlowObjectClientCredentials & OAuthFlowObjectAuthorizationCode; -export interface OAuthFlowObjectBase extends SpecificationExtensions { - refreshUrl?: string; - scopes: Record; -} -export interface OAuthFlowObjectImplicit extends OAuthFlowObjectBase, SpecificationExtensions { - authorizationUrl: string; -} -export interface OAuthFlowObjectPassword extends OAuthFlowObjectBase, SpecificationExtensions { - tokenUrl: string; -} -export interface OAuthFlowObjectClientCredentials extends OAuthFlowObjectBase, SpecificationExtensions { - tokenUrl: string; -} -export interface OAuthFlowObjectAuthorizationCode extends OAuthFlowObjectBase, SpecificationExtensions { - authorizationUrl: string; - tokenUrl: string; -} -export declare type SecurityRequirementObject = Record>; -export interface CorrelationIDObject extends SpecificationExtensions { - location: string; - description?: string; -} -export interface Binding { - bindingVersion?: string; -} -export interface SpecificationExtensions { - [extension: `x-${string}`]: SpecificationExtension; -} -export declare type SpecificationExtension = T; -export interface ReferenceObject { - $ref: string; -} diff --git a/esm/spec-types/v2.js b/esm/spec-types/v2.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/spec-types/v2.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/spectral.d.ts b/esm/spectral.d.ts deleted file mode 100644 index 8b7d9ec12..000000000 --- a/esm/spectral.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { Spectral } from '@stoplight/spectral-core'; -import type { Parser, ParserOptions } from './parser'; -export declare function createSpectral(parser: Parser, options?: ParserOptions): Spectral; diff --git a/esm/spectral.js b/esm/spectral.js deleted file mode 100644 index 392401d61..000000000 --- a/esm/spectral.js +++ /dev/null @@ -1,62 +0,0 @@ -import { Spectral, createRulesetFunction } from '@stoplight/spectral-core'; -import aasRuleset from '@stoplight/spectral-rulesets/dist/asyncapi'; -import { createResolver } from './resolver'; -import { asyncApi2SchemaParserRule } from './schema-parser/spectral-rule-v2'; -import { specVersions } from './constants'; -import { isObject } from './utils'; -export function createSpectral(parser, options = {}) { - var _a; - const spectral = new Spectral({ resolver: createResolver((_a = options.__unstable) === null || _a === void 0 ? void 0 : _a.resolver) }); - const ruleset = configureRuleset(parser); - spectral.setRuleset(ruleset); - return spectral; -} -function configureRuleset(parser) { - return { - extends: [aasRuleset], - rules: { - 'asyncapi-is-asyncapi': asyncApi2IsAsyncApi(), - 'asyncapi-schemas-v2': asyncApi2SchemaParserRule(parser), - // operationId is an optional field - 'asyncapi-operation-operationId': 'warn', - // We do not use these rules from the official ruleset due to the fact - // that the given rules validate only AsyncAPI Schemas and prevent defining schemas in other formats - 'asyncapi-payload-unsupported-schemaFormat': 'off', - 'asyncapi-payload': 'off', - }, - }; -} -function asyncApi2IsAsyncApi() { - return { - description: 'The input must be a document with a supported version of AsyncAPI.', - formats: [() => true], - message: '{{error}}', - severity: 'error', - type: 'validation', - recommended: true, - given: '$', - then: { - function: createRulesetFunction({ - input: null, - options: null, - }, (targetVal) => { - if (!isObject(targetVal) || typeof targetVal.asyncapi !== 'string') { - return [ - { - message: 'This is not an AsyncAPI document. The "asyncapi" field as string is missing.', - path: [], - } - ]; - } - else if (!specVersions.includes(targetVal.asyncapi)) { - return [ - { - message: `Version "${targetVal.asyncapi}" is not supported. Please use "${specVersions[specVersions.length - 1]}" (latest) version of the specification.`, - path: [], - } - ]; - } - }), - }, - }; -} diff --git a/esm/stringify.d.ts b/esm/stringify.d.ts deleted file mode 100644 index 88e0df5c1..000000000 --- a/esm/stringify.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AsyncAPIDocumentInterface } from './models'; -export interface StringifyOptions { - space?: string | number; -} -export declare function stringify(document: unknown, options?: StringifyOptions): string | undefined; -export declare function unstringify(document: unknown): AsyncAPIDocumentInterface | undefined; -export declare function copy(data: Record): any; -export declare function refReplacer(): (this: unknown, field: string, value: unknown) => unknown; -export declare function traverseStringifiedData(parent: any, field: string | undefined, root: any, objToPath: Map, pathToObj: Map): void; diff --git a/esm/stringify.js b/esm/stringify.js deleted file mode 100644 index 82889ee26..000000000 --- a/esm/stringify.js +++ /dev/null @@ -1,97 +0,0 @@ -import { createAsyncAPIDocument, isAsyncAPIDocument, isParsedDocument, isStringifiedDocument } from './document'; -import { createDetailedAsyncAPI } from './utils'; -import { xParserSpecStringified } from './constants'; -export function stringify(document, options = {}) { - if (isAsyncAPIDocument(document)) { - document = document.json(); - } - else if (isParsedDocument(document)) { - if (isStringifiedDocument(document)) { - return JSON.stringify(document); - } - } - else { - return; - } - return JSON.stringify(Object.assign(Object.assign({}, document), { [String(xParserSpecStringified)]: true }), refReplacer(), options.space || 2); -} -export function unstringify(document) { - let parsed = document; - if (typeof document === 'string') { - try { - parsed = JSON.parse(document); - } - catch (_) { - return; - } - } - if (!isStringifiedDocument(parsed)) { - return; - } - // shall copy of whole JSON - parsed = Object.assign({}, parsed); - // remove `x-parser-spec-stringified` extension - delete parsed[String(xParserSpecStringified)]; - traverseStringifiedData(document, undefined, document, new Map(), new Map()); - return createAsyncAPIDocument(createDetailedAsyncAPI(document, parsed)); -} -export function copy(data) { - const stringifiedData = JSON.stringify(data, refReplacer()); - const unstringifiedData = JSON.parse(stringifiedData); - traverseStringifiedData(unstringifiedData, undefined, unstringifiedData, new Map(), new Map()); - return unstringifiedData; -} -export function refReplacer() { - const modelPaths = new Map(); - const paths = new Map(); - let init = null; - return function (field, value) { - // `this` points to parent object of given value - some object or array - const pathPart = modelPaths.get(this) + (Array.isArray(this) ? `[${field}]` : `.${field}`); - // check if `objOrPath` has "reference" - const isComplex = value === Object(value); - if (isComplex) { - modelPaths.set(value, pathPart); - } - const savedPath = paths.get(value) || ''; - if (!savedPath && isComplex) { - const valuePath = pathPart.replace(/undefined\.\.?/, ''); - paths.set(value, valuePath); - } - const prefixPath = savedPath[0] === '[' ? '$' : '$.'; - let val = savedPath ? `$ref:${prefixPath}${savedPath}` : value; - if (init === null) { - init = value; - } - else if (val === init) { - val = '$ref:$'; - } - return val; - }; -} -const refRoot = '$ref:$'; -export function traverseStringifiedData(parent, field, root, objToPath, pathToObj) { - let objOrPath = parent; - let path = refRoot; - if (field !== undefined) { - // here can be string with `$ref` prefix or normal value - objOrPath = parent[String(field)]; - const concatenatedPath = field ? `.${field}` : ''; - path = objToPath.get(parent) + (Array.isArray(parent) ? `[${field}]` : concatenatedPath); - } - objToPath.set(objOrPath, path); - pathToObj.set(path, objOrPath); - const ref = pathToObj.get(objOrPath); - if (ref) { - parent[String(field)] = ref; - } - if (objOrPath === refRoot || ref === refRoot) { - parent[String(field)] = root; - } - // traverse all keys, only if object is array/object - if (objOrPath === Object(objOrPath)) { - for (const f in objOrPath) { - traverseStringifiedData(objOrPath, f, root, objToPath, pathToObj); - } - } -} diff --git a/esm/types.d.ts b/esm/types.d.ts deleted file mode 100644 index 5924d5951..000000000 --- a/esm/types.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type { ISpectralDiagnostic, IFunctionResult } from '@stoplight/spectral-core'; -import type { AsyncAPIDocumentInterface } from './models'; -import type { v2 } from './spec-types'; -export declare type MaybeAsyncAPI = { - asyncapi: string; -} & Record; -export interface AsyncAPISemver { - version: string; - major: number; - minor: number; - patch: number; - rc?: number; -} -export interface DetailedAsyncAPI { - source: string | Record; - parsed: AsyncAPIObject; - semver: AsyncAPISemver; -} -export declare type Input = string | MaybeAsyncAPI | AsyncAPIDocumentInterface; -export declare type Diagnostic = ISpectralDiagnostic; -export declare type SchemaValidateResult = IFunctionResult; -export declare type AsyncAPIObject = v2.AsyncAPIObject; -export declare type AsyncAPISchema = v2.AsyncAPISchemaObject; diff --git a/esm/types.js b/esm/types.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/esm/types.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/esm/utils.d.ts b/esm/utils.d.ts deleted file mode 100644 index 6460535b6..000000000 --- a/esm/utils.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type { ISpectralDiagnostic } from '@stoplight/spectral-core'; -import type { BaseModel } from './models'; -import type { AsyncAPISemver, AsyncAPIObject, DetailedAsyncAPI, MaybeAsyncAPI } from './types'; -export declare function createDetailedAsyncAPI(source: string | Record, parsed: AsyncAPIObject): DetailedAsyncAPI; -export declare function getSemver(version: string): AsyncAPISemver; -export declare function normalizeInput(asyncapi: string | MaybeAsyncAPI): string; -export declare function unfreezeObject(data: unknown): any; -export declare function hasErrorDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean; -export declare function hasWarningDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean; -export declare function hasInfoDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean; -export declare function hasHintDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean; -export declare function setExtension(id: string, value: any, model: BaseModel): void; -export declare function mergePatch(origin: unknown, patch: unknown): T; -export declare function isObject(value: unknown): value is Record; -export declare function hasRef(value: unknown): value is { - $ref: string; -}; -export declare function tilde(str: string): string; -export declare function untilde(str: string): string; -export declare function retrievePossibleRef(data: any, pathOfData: string, spec?: any): any; diff --git a/esm/utils.js b/esm/utils.js deleted file mode 100644 index e53660942..000000000 --- a/esm/utils.js +++ /dev/null @@ -1,120 +0,0 @@ -import { DiagnosticSeverity } from '@stoplight/types'; -export function createDetailedAsyncAPI(source, parsed) { - return { - source, - parsed, - semver: getSemver(parsed.asyncapi), - }; -} -export function getSemver(version) { - const [major, minor, patchWithRc] = version.split('.'); - const [patch, rc] = patchWithRc.split('-rc'); - return { - version, - major: Number(major), - minor: Number(minor), - patch: Number(patch), - rc: rc && Number(rc), - }; -} -export function normalizeInput(asyncapi) { - if (typeof asyncapi === 'string') { - return asyncapi; - } - return JSON.stringify(asyncapi, undefined, 2); -} -export function unfreezeObject(data) { - return JSON.parse(JSON.stringify(data)); -} -export function hasErrorDiagnostic(diagnostics) { - return diagnostics.some(diagnostic => diagnostic.severity === DiagnosticSeverity.Error); -} -export function hasWarningDiagnostic(diagnostics) { - return diagnostics.some(diagnostic => diagnostic.severity === DiagnosticSeverity.Warning); -} -export function hasInfoDiagnostic(diagnostics) { - return diagnostics.some(diagnostic => diagnostic.severity === DiagnosticSeverity.Information); -} -export function hasHintDiagnostic(diagnostics) { - return diagnostics.some(diagnostic => diagnostic.severity === DiagnosticSeverity.Hint); -} -export function setExtension(id, value, model) { - id = id.startsWith('x-') ? id : `x-${id}`; - const data = model.json(); - data[id] = value; -} -export function mergePatch(origin, patch) { - // If the patch is not an object, it replaces the origin. - if (!isObject(patch)) { - return patch; - } - const result = !isObject(origin) - ? {} // Non objects are being replaced. - : Object.assign({}, origin); // Make sure we never modify the origin. - Object.keys(patch).forEach(key => { - const patchVal = patch[key]; - if (patchVal === null) { - delete result[key]; - } - else { - result[key] = mergePatch(result[key], patchVal); - } - }); - return result; -} -export function isObject(value) { - return Boolean(value) && typeof value === 'object' && Array.isArray(value) === false; -} -export function hasRef(value) { - return isObject(value) && '$ref' in value && typeof value.$ref === 'string'; -} -export function tilde(str) { - return str.replace(/[~/]{1}/g, (sub) => { - switch (sub) { - case '/': return '~1'; - case '~': return '~0'; - } - return sub; - }); -} -export function untilde(str) { - if (!str.includes('~')) - return str; - return str.replace(/~[01]/g, (sub) => { - switch (sub) { - case '~1': return '/'; - case '~0': return '~'; - } - return sub; - }); -} -export function retrievePossibleRef(data, pathOfData, spec = {}) { - if (!hasRef(data)) { - return data; - } - const refPath = serializePath(data.$ref); - if (pathOfData.startsWith(refPath)) { // starts by given path - return retrieveDeepData(spec, splitPath(refPath)) || data; - } - else if (pathOfData.includes(refPath)) { // circular path in substring of path - const substringPath = pathOfData.split(refPath)[0]; - return retrieveDeepData(spec, splitPath(`${substringPath}${refPath}`)) || data; - } - return data; -} -function retrieveDeepData(value, path) { - let index = 0; - const length = path.length; - while (typeof value === 'object' && value && index < length) { - value = value[path[index++]]; - } - return index === length ? value : undefined; -} -function serializePath(path) { - if (path.startsWith('#')) - return path.substring(1); - return path; -} -function splitPath(path) { - return path.split('/').filter(Boolean).map(untilde); -} diff --git a/esm/validate.d.ts b/esm/validate.d.ts deleted file mode 100644 index bd3d1ec0c..000000000 --- a/esm/validate.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { Spectral, IRunOpts } from '@stoplight/spectral-core'; -import type { Input, Diagnostic } from './types'; -export interface ValidateOptions extends IRunOpts { - source?: string; - allowedSeverity?: { - warning?: boolean; - info?: boolean; - hint?: boolean; - }; -} -export interface ValidateOutput { - validated: unknown; - diagnostics: Diagnostic[]; -} -export declare function validate(spectral: Spectral, asyncapi: Input, options?: ValidateOptions): Promise; diff --git a/esm/validate.js b/esm/validate.js deleted file mode 100644 index 892c91cd5..000000000 --- a/esm/validate.js +++ /dev/null @@ -1,35 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -import { Document } from '@stoplight/spectral-core'; -import { Yaml } from '@stoplight/spectral-parsers'; -import { normalizeInput, mergePatch, hasErrorDiagnostic, hasWarningDiagnostic, hasInfoDiagnostic, hasHintDiagnostic } from './utils'; -const defaultOptions = { - allowedSeverity: { - warning: true, - info: true, - hint: true, - } -}; -export function validate(spectral, asyncapi, options = {}) { - return __awaiter(this, void 0, void 0, function* () { - const { allowedSeverity } = mergePatch(defaultOptions, options); - const stringifiedDocument = normalizeInput(asyncapi); - const document = new Document(stringifiedDocument, Yaml, options.source); - // eslint-disable-next-line prefer-const - let { resolved: validated, results } = yield spectral.runWithResolved(document); - if (hasErrorDiagnostic(results) || - (!(allowedSeverity === null || allowedSeverity === void 0 ? void 0 : allowedSeverity.warning) && hasWarningDiagnostic(results)) || - (!(allowedSeverity === null || allowedSeverity === void 0 ? void 0 : allowedSeverity.info) && hasInfoDiagnostic(results)) || - (!(allowedSeverity === null || allowedSeverity === void 0 ? void 0 : allowedSeverity.hint) && hasHintDiagnostic(results))) { - validated = undefined; - } - return { validated, diagnostics: results }; - }); -} From c5d8c13bac85c21e14ebc3c84ac2674d490f0e97 Mon Sep 17 00:00:00 2001 From: Matatjahu Date: Mon, 3 Oct 2022 14:35:09 +0200 Subject: [PATCH 058/126] fix tests --- test/from.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/from.spec.ts b/test/from.spec.ts index 0105deb75..3d53f5184 100644 --- a/test/from.spec.ts +++ b/test/from.spec.ts @@ -8,7 +8,7 @@ describe('fromURL() & fromFile()', function() { describe('fromURL()', function() { it('should operate on existing HTTP source', async function() { - const { document, diagnostics } = await fromURL(parser, 'https://raw.githubusercontent.com/asyncapi/spec/master/examples/simple.yml').parse(); + const { document, diagnostics } = await fromURL(parser, 'https://raw.githubusercontent.com/asyncapi/spec/v2.0.0/examples/2.0.0/gitter-streaming.yml').parse(); expect(document).not.toBeUndefined(); expect(diagnostics.length > 0).toEqual(true); expect(hasWarningDiagnostic(diagnostics)).toEqual(true); From d1b9eedf6b46a4d154ad115b15c4c82bab625e84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Tue, 4 Oct 2022 12:14:18 +0200 Subject: [PATCH 059/126] chore: init models for v3 spec (#638) --- src/models/asyncapi.ts | 4 +- src/models/v3/asyncapi.ts | 50 ++++++++++++++- src/models/v3/binding.ts | 28 ++++++++ src/models/v3/bindings.ts | 31 +++++++++ src/models/v3/extension.ts | 19 ++++++ src/models/v3/extensions.ts | 11 ++++ src/models/v3/external-docs.ts | 26 ++++++++ src/models/v3/mixins.ts | 67 +++++++++++++++++++ src/models/v3/tag.ts | 35 ++++++++++ src/models/v3/tags.ts | 10 +++ src/spec-types/index.ts | 1 + src/spec-types/v3.ts | 113 +++++++++++++++++++++++++++++++++ src/types.ts | 6 +- 13 files changed, 395 insertions(+), 6 deletions(-) create mode 100644 src/models/v3/binding.ts create mode 100644 src/models/v3/bindings.ts create mode 100644 src/models/v3/extension.ts create mode 100644 src/models/v3/extensions.ts create mode 100644 src/models/v3/external-docs.ts create mode 100644 src/models/v3/mixins.ts create mode 100644 src/models/v3/tag.ts create mode 100644 src/models/v3/tags.ts create mode 100644 src/spec-types/v3.ts diff --git a/src/models/asyncapi.ts b/src/models/asyncapi.ts index 4787ad961..3bed0ec48 100644 --- a/src/models/asyncapi.ts +++ b/src/models/asyncapi.ts @@ -9,9 +9,9 @@ import type { SchemasInterface } from './schemas'; import type { SecuritySchemesInterface } from './security-schemes'; import type { ServersInterface } from './servers'; -import type { v2 } from '../spec-types'; +import type { AsyncAPIObject } from '../types'; -export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInterface { +export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInterface { version(): string; defaultContentType(): string | undefined; hasDefaultContentType(): boolean; diff --git a/src/models/v3/asyncapi.ts b/src/models/v3/asyncapi.ts index f26a22e98..29e3b8687 100644 --- a/src/models/v3/asyncapi.ts +++ b/src/models/v3/asyncapi.ts @@ -1,7 +1,55 @@ import { BaseModel } from '../base'; -export class AsyncAPIDocument extends BaseModel { +import type { AsyncAPIDocumentInterface } from '../asyncapi'; + +import type { v3 } from '../../spec-types'; + +export class AsyncAPIDocument extends BaseModel implements AsyncAPIDocumentInterface { version(): string { return this._json.asyncapi; } + + defaultContentType(): string | undefined { + return this._json.defaultContentType; + } + + hasDefaultContentType(): boolean { + return !!this._json.defaultContentType; + } + + info() { + return null as any; + } + + servers() { + return null as any; + } + + channels() { + return null as any; + } + + operations() { + return null as any; + } + + messages() { + return null as any; + } + + schemas() { + return null as any; + } + + securitySchemes() { + return null as any; + } + + components() { + return null as any; + } + + extensions() { + return null as any; + } } diff --git a/src/models/v3/binding.ts b/src/models/v3/binding.ts new file mode 100644 index 000000000..56fde118c --- /dev/null +++ b/src/models/v3/binding.ts @@ -0,0 +1,28 @@ +import { BaseModel } from '../base'; + +import { extensions } from './mixins'; + +import type { BindingInterface } from '../binding'; +import type { ExtensionsInterface } from '../extensions'; + +import type { v3 } from '../../spec-types'; + +export class Binding = Record> extends BaseModel implements BindingInterface { + protocol(): string { + return this._meta.protocol; + } + + version(): string { + return this._json.bindingVersion || 'latest'; + } + + value(): V { + const value = { ...this._json }; + delete (value as any).bindingVersion; + return value as unknown as V; + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} diff --git a/src/models/v3/bindings.ts b/src/models/v3/bindings.ts new file mode 100644 index 000000000..c17208d60 --- /dev/null +++ b/src/models/v3/bindings.ts @@ -0,0 +1,31 @@ +import { Collection } from '../collection'; +import { Extensions } from './extensions'; +import { Extension } from './extension'; + +import { createModel } from '../utils'; +import { EXTENSION_REGEX } from '../../constants'; + +import type { BindingsInterface } from '../bindings'; +import type { BindingInterface } from '../binding'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExtensionInterface } from '../extension'; + +import type { v3 } from '../../spec-types'; + +export class Bindings extends Collection implements BindingsInterface { + override get = Record>(name: string): BindingInterface | undefined { + return this.collections.find(binding => binding.protocol() === name); + } + + extensions(): ExtensionsInterface { + const extensions: ExtensionInterface[] = []; + Object.entries(this._meta.originalData as v3.SpecificationExtensions || {}).forEach(([id, value]) => { + if (EXTENSION_REGEX.test(id)) { + extensions.push( + createModel(Extension, value, { id, pointer: `${this._meta.pointer}/${id}`, asyncapi: this._meta.asyncapi }) as Extension + ); + } + }); + return new Extensions(extensions); + } +} diff --git a/src/models/v3/extension.ts b/src/models/v3/extension.ts new file mode 100644 index 000000000..d747afc2d --- /dev/null +++ b/src/models/v3/extension.ts @@ -0,0 +1,19 @@ +import { BaseModel } from '../base'; + +import type { ExtensionInterface } from '../extension'; + +import type { v3 } from '../../spec-types'; + +export class Extension extends BaseModel, { id: string }> implements ExtensionInterface { + id(): string { + return this._meta.id; + } + + version(): string { + return 'to implement'; + } + + value(): V { + return this._json as unknown as V; + } +} diff --git a/src/models/v3/extensions.ts b/src/models/v3/extensions.ts new file mode 100644 index 000000000..e529b35d3 --- /dev/null +++ b/src/models/v3/extensions.ts @@ -0,0 +1,11 @@ +import { Collection } from '../collection'; + +import type { ExtensionsInterface } from '../extensions'; +import type { ExtensionInterface } from '../extension'; + +export class Extensions extends Collection implements ExtensionsInterface { + override get(id: string): ExtensionInterface | undefined { + id = id.startsWith('x-') ? id : `x-${id}`; + return this.collections.find(ext => ext.id() === id); + } +} diff --git a/src/models/v3/external-docs.ts b/src/models/v3/external-docs.ts new file mode 100644 index 000000000..edafb417c --- /dev/null +++ b/src/models/v3/external-docs.ts @@ -0,0 +1,26 @@ +import { BaseModel } from '../base'; + +import { hasDescription, description, extensions } from './mixins'; + +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { ExtensionsInterface } from '../extensions'; + +import type { v3 } from '../../spec-types'; + +export class ExternalDocumentation extends BaseModel implements ExternalDocumentationInterface { + url(): string { + return this._json.url; + } + + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} \ No newline at end of file diff --git a/src/models/v3/mixins.ts b/src/models/v3/mixins.ts new file mode 100644 index 000000000..405d1cd6b --- /dev/null +++ b/src/models/v3/mixins.ts @@ -0,0 +1,67 @@ +import { Bindings } from './bindings'; +import { Binding } from './binding'; +import { Extensions } from './extensions'; +import { Extension } from './extension'; +import { ExternalDocumentation } from './external-docs'; +import { Tags } from './tags'; +import { Tag } from './tag'; + +import { createModel } from '../utils'; +import { EXTENSION_REGEX } from '../../constants'; + +import type { BaseModel } from '../base'; +import type { BindingsInterface } from '../bindings'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExtensionInterface } from '../extension'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { TagsInterface } from '../tags'; + +import type { v3 } from '../../spec-types'; + +export function bindings(model: BaseModel<{ bindings?: Record }>): BindingsInterface { + const bindings = model.json('bindings') || {}; + return new Bindings( + Object.entries(bindings || {}).map(([protocol, binding]) => + createModel(Binding, binding, { protocol, pointer: model.jsonPath(`bindings/${protocol}`) }, model) + ), + { originalData: bindings, asyncapi: model.meta('asyncapi'), pointer: model.jsonPath('bindings') } + ); +} + +export function hasDescription(model: BaseModel<{ description?: string }>) { + return Boolean(description(model)); +} + +export function description(model: BaseModel<{ description?: string }>): string | undefined { + return model.json('description'); +} + +export function extensions(model: BaseModel): ExtensionsInterface { + const extensions: ExtensionInterface[] = []; + Object.entries(model.json()).forEach(([id, value]: [string, any]) => { + if (EXTENSION_REGEX.test(id)) { + extensions.push( + createModel(Extension, value, { id, pointer: model.jsonPath(id) } as any, model) as Extension + ); + } + }); + return new Extensions(extensions); +} + +export function hasExternalDocs(model: BaseModel<{ externalDocs?: v3.ExternalDocumentationObject }>): boolean { + return Object.keys(model.json('externalDocs') || {}).length > 0; +} + +export function externalDocs(model: BaseModel<{ externalDocs?: v3.ExternalDocumentationObject }>): ExternalDocumentationInterface | undefined { + if (hasExternalDocs(model)) { + return new ExternalDocumentation(model.json('externalDocs') as v3.ExternalDocumentationObject); + } +} + +export function tags(model: BaseModel<{ tags?: v3.TagsObject }>): TagsInterface { + return new Tags( + (model.json('tags') || []).map((tag, idx) => + createModel(Tag, tag, { pointer: model.jsonPath(`tags/${idx}`) }, model) + ) + ); +} diff --git a/src/models/v3/tag.ts b/src/models/v3/tag.ts new file mode 100644 index 000000000..84ea47133 --- /dev/null +++ b/src/models/v3/tag.ts @@ -0,0 +1,35 @@ +import { BaseModel } from '../base'; + +import { hasDescription, description, extensions, hasExternalDocs, externalDocs } from './mixins'; + +import type { ExtensionsInterface } from '../extensions'; +import type{ ExternalDocumentationInterface } from '../external-docs'; +import type { TagInterface } from '../tag'; + +import type { v3 } from '../../spec-types'; + +export class Tag extends BaseModel implements TagInterface { + name(): string { + return this._json.name; + } + + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } + + hasExternalDocs(): boolean { + return hasExternalDocs(this); + } + + externalDocs(): ExternalDocumentationInterface | undefined { + return externalDocs(this); + } +} diff --git a/src/models/v3/tags.ts b/src/models/v3/tags.ts new file mode 100644 index 000000000..6048620ff --- /dev/null +++ b/src/models/v3/tags.ts @@ -0,0 +1,10 @@ +import { Collection } from '../collection'; + +import type { TagsInterface } from '../tags'; +import type { TagInterface } from '../tag'; + +export class Tags extends Collection implements TagsInterface { + override get(name: string): TagInterface | undefined { + return this.collections.find(tag => tag.name() === name); + } +} diff --git a/src/spec-types/index.ts b/src/spec-types/index.ts index 1c818d3fa..5ab639dfa 100644 --- a/src/spec-types/index.ts +++ b/src/spec-types/index.ts @@ -1 +1,2 @@ export * as v2 from './v2'; +export * as v3 from './v3'; diff --git a/src/spec-types/v3.ts b/src/spec-types/v3.ts new file mode 100644 index 000000000..d9c114224 --- /dev/null +++ b/src/spec-types/v3.ts @@ -0,0 +1,113 @@ +import type { JSONSchema7Version, JSONSchema7TypeName, JSONSchema7Type } from 'json-schema'; + +export type AsyncAPIVersion = string; +export type Identifier = string; +export type DefaultContentType = string; + +export interface AsyncAPIObject extends SpecificationExtensions { + asyncapi: AsyncAPIVersion; + id?: Identifier; + defaultContentType?: DefaultContentType; +} + +export type TagsObject = Array; + +export interface TagObject extends SpecificationExtensions { + name: string; + description?: string; + externalDocs?: ExternalDocumentationObject; +} + +export interface ExternalDocumentationObject extends SpecificationExtensions { + url: string; + description?: string; +} + +export type SchemaObject = AsyncAPISchemaObject | ReferenceObject; + +export type AsyncAPISchemaObject = AsyncAPISchemaDefinition | boolean; +export interface AsyncAPISchemaDefinition extends SpecificationExtensions { + $id?: string; + $schema?: JSONSchema7Version; + $comment?: string; + + type?: JSONSchema7TypeName | JSONSchema7TypeName[]; + enum?: JSONSchema7Type[]; + const?: JSONSchema7Type; + + multipleOf?: number; + maximum?: number; + exclusiveMaximum?: number; + minimum?: number; + exclusiveMinimum?: number; + + maxLength?: number; + minLength?: number; + pattern?: string; + + items?: AsyncAPISchemaObject | AsyncAPISchemaObject[]; + additionalItems?: AsyncAPISchemaObject; + maxItems?: number; + minItems?: number; + uniqueItems?: boolean; + contains?: AsyncAPISchemaObject; + + maxProperties?: number; + minProperties?: number; + required?: string[]; + properties?: { + [key: string]: AsyncAPISchemaObject; + }; + patternProperties?: { + [key: string]: AsyncAPISchemaObject; + }; + additionalProperties?: AsyncAPISchemaObject; + dependencies?: { + [key: string]: AsyncAPISchemaObject | string[]; + }; + propertyNames?: AsyncAPISchemaObject; + + if?: AsyncAPISchemaObject; + then?: AsyncAPISchemaObject; + else?: AsyncAPISchemaObject; + + allOf?: AsyncAPISchemaObject[]; + anyOf?: AsyncAPISchemaObject[]; + oneOf?: AsyncAPISchemaObject[]; + not?: AsyncAPISchemaObject; + + format?: string; + + contentMediaType?: string; + contentEncoding?: string; + + definitions?: { + [key: string]: AsyncAPISchemaObject; + }; + + title?: string; + description?: string; + default?: JSONSchema7Type; + readOnly?: boolean; + writeOnly?: boolean; + examples?: Array; + + discriminator?: string; + externalDocs?: ExternalDocumentationObject; + deprecated?: boolean; + [keyword: string]: any; +} + +export interface Binding { + bindingVersion?: string; +} + +export interface SpecificationExtensions { + [extension: `x-${string}`]: SpecificationExtension; +} + +export type SpecificationExtension = T; + +export interface ReferenceObject { + $ref: string; +} \ No newline at end of file diff --git a/src/types.ts b/src/types.ts index 1e2cdacfe..4db6c21d4 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,6 +1,6 @@ import type { ISpectralDiagnostic, IFunctionResult } from '@stoplight/spectral-core'; import type { AsyncAPIDocumentInterface } from './models'; -import type { v2 } from './spec-types'; +import type { v2, v3 } from './spec-types'; export type MaybeAsyncAPI = { asyncapi: string } & Record; export interface AsyncAPISemver { @@ -20,5 +20,5 @@ export interface DetailedAsyncAPI { export type Input = string | MaybeAsyncAPI | AsyncAPIDocumentInterface; export type Diagnostic = ISpectralDiagnostic; export type SchemaValidateResult = IFunctionResult; -export type AsyncAPIObject = v2.AsyncAPIObject; -export type AsyncAPISchema = v2.AsyncAPISchemaObject; +export type AsyncAPIObject = v2.AsyncAPIObject | v3.AsyncAPIObject; +export type AsyncAPISchema = v2.AsyncAPISchemaObject | v3.AsyncAPISchemaObject; From f259f4a415d817fb3fdc08e8369e361c5c07e193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=20M=C3=A9ndez?= Date: Wed, 26 Oct 2022 20:03:31 +0200 Subject: [PATCH 060/126] chore: add support for asyncapi 3.0.0 operations and channels (#654) --- package.json | 1 + src/custom-operations/anonymous-naming.ts | 8 +- src/custom-operations/index.ts | 3 +- src/document.ts | 7 +- src/models/channel-parameters.ts | 10 +- src/models/channel.ts | 6 +- src/models/channels.ts | 18 +- src/models/correlation-ids.ts | 10 +- src/models/extensions.ts | 11 +- src/models/message-examples.ts | 8 +- src/models/message-traits.ts | 10 +- src/models/messages.ts | 18 +- src/models/operation-trait.ts | 13 +- src/models/operation-traits.ts | 10 +- src/models/operation.ts | 4 - src/models/operations.ts | 17 +- src/models/schema.ts | 2 +- src/models/schemas.ts | 8 +- src/models/security-requirements.ts | 10 +- src/models/security-schemes.ts | 8 +- src/models/server-variables.ts | 10 +- src/models/server.ts | 4 +- src/models/servers.ts | 16 +- src/models/tags.ts | 10 +- src/models/v2/asyncapi.ts | 12 +- src/models/v2/bindings.ts | 2 +- src/models/v2/channel-parameters.ts | 10 - src/models/v2/channel.ts | 25 +- src/models/v2/channels.ts | 18 - src/models/v2/components.ts | 22 +- src/models/v2/correlation-ids.ts | 10 - src/models/v2/extensions.ts | 11 - src/models/v2/index.ts | 26 +- src/models/v2/info.ts | 11 +- src/models/v2/message-examples.ts | 10 - src/models/v2/message-trait.ts | 2 +- src/models/v2/message-traits.ts | 10 - src/models/v2/message.ts | 8 +- src/models/v2/messages.ts | 18 - src/models/v2/mixins.ts | 4 +- src/models/v2/operation-trait.ts | 36 +- src/models/v2/operation-traits.ts | 10 - src/models/v2/operation.ts | 14 +- src/models/v2/operations.ts | 18 - src/models/v2/schema.ts | 8 +- src/models/v2/schemas.ts | 10 - src/models/v2/security-requirements.ts | 10 - src/models/v2/security-schemes.ts | 10 - src/models/v2/server-variables.ts | 10 - src/models/v2/server.ts | 17 +- src/models/v2/servers.ts | 17 - src/models/v2/tags.ts | 10 - src/models/v3/asyncapi.ts | 27 +- src/models/v3/bindings.ts | 2 +- src/models/v3/channel-parameter.ts | 45 + src/models/v3/channel.ts | 110 +++ src/models/v3/correlation-id.ts | 30 + src/models/v3/extensions.ts | 11 - src/models/v3/index.ts | 34 +- src/models/v3/message-example.ts | 46 ++ src/models/v3/message-trait.ts | 124 +++ src/models/v3/message.ts | 84 ++ src/models/v3/mixins.ts | 4 +- src/models/v3/oauth-flow.ts | 34 + src/models/v3/oauth-flows.ts | 52 ++ src/models/v3/operation-trait.ts | 100 +++ src/models/v3/operation.ts | 61 ++ src/models/v3/schema.ts | 315 +++++++ src/models/v3/security-requirement.ts | 14 + src/models/v3/security-scheme.ts | 57 ++ src/models/v3/server-variable.ts | 46 ++ src/models/v3/server.ts | 142 ++++ src/models/v3/tags.ts | 10 - src/spec-types/v2.ts | 1 + src/spec-types/v3.ts | 332 ++++++++ test/browser/sample-page.html | 1 + test/document.spec.ts | 12 +- test/models/v2/asyncapi.spec.ts | 10 +- test/models/v2/bindings.spec.ts | 2 +- test/models/v2/channel-parameters.spec.ts | 2 +- test/models/v2/channel.spec.ts | 8 +- test/models/v2/channels.spec.ts | 2 +- test/models/v2/components.spec.ts | 22 +- test/models/v2/info.spec.ts | 2 +- test/models/v2/message-examples.spec.ts | 2 +- test/models/v2/message-trait.spec.ts | 2 +- test/models/v2/message-traits.spec.ts | 2 +- test/models/v2/message.spec.ts | 18 +- test/models/v2/messages.spec.ts | 2 +- test/models/v2/oauth-flow.spec.ts | 6 + test/models/v2/oauth-flows.spec.ts | 6 + test/models/v2/operation-trait.spec.ts | 62 +- test/models/v2/operation-traits.spec.ts | 2 +- test/models/v2/operation.spec.ts | 52 +- test/models/v2/operations.spec.ts | 2 +- test/models/v2/schema.spec.ts | 23 +- test/models/v2/security-requirements.spec.ts | 2 +- test/models/v2/server-variable.spec.ts | 19 +- test/models/v2/server.spec.ts | 24 +- test/models/v2/servers.spec.ts | 2 +- test/models/v2/tags.spec.ts | 2 +- test/models/v3/bindings.spec.ts | 64 ++ test/models/v3/channel-parameter.spec.ts | 77 ++ test/models/v3/channel.spec.ts | 139 ++++ test/models/v3/correlation-id.spec.ts | 40 + test/models/v3/external-docs.spec.ts | 20 + test/models/v3/message-example.spec.ts | 121 +++ test/models/v3/message-trait.spec.ts | 264 ++++++ test/models/v3/message.spec.ts | 190 +++++ test/models/v3/oauth-flow.spec.ts | 39 + test/models/v3/oauth-flows.spec.ts | 42 + test/models/v3/operation-trait.spec.ts | 129 +++ test/models/v3/operation.spec.ts | 99 +++ test/models/v3/schema.spec.ts | 815 +++++++++++++++++++ test/models/v3/server-variable.spec.ts | 34 + test/models/v3/server.spec.ts | 206 +++++ test/models/v3/tag.spec.ts | 19 + test/models/v3/utils.ts | 150 ++++ 118 files changed, 4531 insertions(+), 478 deletions(-) delete mode 100644 src/models/v2/channel-parameters.ts delete mode 100644 src/models/v2/channels.ts delete mode 100644 src/models/v2/correlation-ids.ts delete mode 100644 src/models/v2/extensions.ts delete mode 100644 src/models/v2/message-examples.ts delete mode 100644 src/models/v2/message-traits.ts delete mode 100644 src/models/v2/messages.ts delete mode 100644 src/models/v2/operation-traits.ts delete mode 100644 src/models/v2/operations.ts delete mode 100644 src/models/v2/schemas.ts delete mode 100644 src/models/v2/security-requirements.ts delete mode 100644 src/models/v2/security-schemes.ts delete mode 100644 src/models/v2/server-variables.ts delete mode 100644 src/models/v2/servers.ts delete mode 100644 src/models/v2/tags.ts create mode 100644 src/models/v3/channel-parameter.ts create mode 100644 src/models/v3/channel.ts create mode 100644 src/models/v3/correlation-id.ts delete mode 100644 src/models/v3/extensions.ts create mode 100644 src/models/v3/message-example.ts create mode 100644 src/models/v3/message-trait.ts create mode 100644 src/models/v3/message.ts create mode 100644 src/models/v3/oauth-flow.ts create mode 100644 src/models/v3/oauth-flows.ts create mode 100644 src/models/v3/operation-trait.ts create mode 100644 src/models/v3/operation.ts create mode 100644 src/models/v3/schema.ts create mode 100644 src/models/v3/security-requirement.ts create mode 100644 src/models/v3/security-scheme.ts create mode 100644 src/models/v3/server-variable.ts create mode 100644 src/models/v3/server.ts delete mode 100644 src/models/v3/tags.ts create mode 100644 test/models/v3/bindings.spec.ts create mode 100644 test/models/v3/channel-parameter.spec.ts create mode 100644 test/models/v3/channel.spec.ts create mode 100644 test/models/v3/correlation-id.spec.ts create mode 100644 test/models/v3/external-docs.spec.ts create mode 100644 test/models/v3/message-example.spec.ts create mode 100644 test/models/v3/message-trait.spec.ts create mode 100644 test/models/v3/message.spec.ts create mode 100644 test/models/v3/oauth-flow.spec.ts create mode 100644 test/models/v3/oauth-flows.spec.ts create mode 100644 test/models/v3/operation-trait.spec.ts create mode 100644 test/models/v3/operation.spec.ts create mode 100644 test/models/v3/schema.spec.ts create mode 100644 test/models/v3/server-variable.spec.ts create mode 100644 test/models/v3/server.spec.ts create mode 100644 test/models/v3/tag.spec.ts create mode 100644 test/models/v3/utils.ts diff --git a/package.json b/package.json index 9d77182d9..74c5ead08 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "README.md" ], "scripts": { + "dev": "tsc --watch", "build": "npm run build:esm && npm run build:cjs && npm run build:browser", "build:esm": "tsc", "build:cjs": "tsc --project ./tsconfig.cjs.json", diff --git a/src/custom-operations/anonymous-naming.ts b/src/custom-operations/anonymous-naming.ts index 42c1b3655..fa94171ab 100644 --- a/src/custom-operations/anonymous-naming.ts +++ b/src/custom-operations/anonymous-naming.ts @@ -37,7 +37,7 @@ function assignNameToAnonymousMessages(document: AsyncAPIDocumentInterface) { function assignUidToComponentParameterSchemas(document: AsyncAPIDocumentInterface) { document.components().channelParameters().forEach(parameter => { const schema = parameter.schema(); - if (schema && !schema.uid()) { + if (schema && !schema.id()) { setExtension(xParserSchemaId, parameter.id(), schema); } }); @@ -47,7 +47,7 @@ function assignUidToChannelParameterSchemas(document: AsyncAPIDocumentInterface) document.channels().forEach(channel => { channel.parameters().forEach(parameter => { const schema = parameter.schema(); - if (schema && !schema.uid()) { + if (schema && !schema.id()) { setExtension(xParserSchemaId, parameter.id(), schema); } }); @@ -56,14 +56,14 @@ function assignUidToChannelParameterSchemas(document: AsyncAPIDocumentInterface) function assignUidToComponentSchemas(document: AsyncAPIDocumentInterface) { document.components().schemas().forEach(schema => { - setExtension(xParserSchemaId, schema.uid(), schema); + setExtension(xParserSchemaId, schema.id(), schema); }); } function assignUidToAnonymousSchemas(doc: AsyncAPIDocumentInterface) { let anonymousSchemaCounter = 0; function callback(schema: SchemaInterface) { - if (!schema.uid()) { + if (!schema.id()) { setExtension(xParserSchemaId, ``, schema); } } diff --git a/src/custom-operations/index.ts b/src/custom-operations/index.ts index 5bf91a714..6f64035d2 100644 --- a/src/custom-operations/index.ts +++ b/src/custom-operations/index.ts @@ -7,6 +7,7 @@ import type { Parser } from '../parser'; import type { ParseOptions } from '../parse'; import type { AsyncAPIDocumentInterface } from '../models'; import type { DetailedAsyncAPI } from '../types'; +import type { v2 } from '../spec-types'; export async function customOperations(parser: Parser, document: AsyncAPIDocumentInterface, detailed: DetailedAsyncAPI, options: ParseOptions): Promise { switch (detailed.semver.major) { @@ -20,7 +21,7 @@ async function operationsV2(parser: Parser, document: AsyncAPIDocumentInterface, anonymousNaming(document); if (options.applyTraits) { - applyTraitsV2(detailed.parsed); + applyTraitsV2(detailed.parsed as v2.AsyncAPIObject); } if (options.parseSchemas) { await parseSchemasV2(parser, detailed); diff --git a/src/document.ts b/src/document.ts index 1ae04f9b3..b49252786 100644 --- a/src/document.ts +++ b/src/document.ts @@ -9,13 +9,14 @@ import { import type { AsyncAPIDocumentInterface } from './models'; import type { DetailedAsyncAPI } from './types'; +import type { v2, v3 } from './spec-types'; export function createAsyncAPIDocument(asyncapi: DetailedAsyncAPI): AsyncAPIDocumentInterface { switch (asyncapi.semver.major) { case 2: - return new AsyncAPIDocumentV2(asyncapi.parsed, { asyncapi, pointer: '/' }); - // case 3: - // return new AsyncAPIDocumentV3(asyncapi.parsed, { asyncapi, pointer: '/' }); + return new AsyncAPIDocumentV2(asyncapi.parsed as v2.AsyncAPIObject, { asyncapi, pointer: '/' }); + case 3: + return new AsyncAPIDocumentV3(asyncapi.parsed as v3.AsyncAPIObject, { asyncapi, pointer: '/' }); default: throw new Error(`Unsupported AsyncAPI version: ${asyncapi.semver.version}`); } diff --git a/src/models/channel-parameters.ts b/src/models/channel-parameters.ts index 629c7c87a..1143bdf8a 100644 --- a/src/models/channel-parameters.ts +++ b/src/models/channel-parameters.ts @@ -1,4 +1,10 @@ -import type { Collection } from './collection'; +import { Collection } from './collection'; import type { ChannelParameterInterface } from './channel-parameter'; -export type ChannelParametersInterface = Collection \ No newline at end of file +export type ChannelParametersInterface = Collection; + +export class ChannelParameters extends Collection implements ChannelParametersInterface { + override get(id: string): ChannelParameterInterface | undefined { + return this.collections.find(parameter => parameter.id() === id); + } +} \ No newline at end of file diff --git a/src/models/channel.ts b/src/models/channel.ts index f9652600d..2f25a6829 100644 --- a/src/models/channel.ts +++ b/src/models/channel.ts @@ -1,13 +1,13 @@ import type { BaseModel } from './base'; import type { ChannelParametersInterface } from './channel-parameters'; import type { MessagesInterface } from './messages'; -import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; import type { OperationsInterface } from './operations'; import type { ServersInterface } from './servers'; -export interface ChannelInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface { +export interface ChannelInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { id(): string; - address(): string; + address(): string | null | undefined; servers(): ServersInterface; operations(): OperationsInterface; messages(): MessagesInterface; diff --git a/src/models/channels.ts b/src/models/channels.ts index cafec9950..c10f5a6a1 100644 --- a/src/models/channels.ts +++ b/src/models/channels.ts @@ -1,7 +1,21 @@ -import type { Collection } from './collection'; +import { Collection } from './collection'; import type { ChannelInterface } from './channel'; export interface ChannelsInterface extends Collection { filterBySend(): ChannelInterface[]; filterByReceive(): ChannelInterface[]; -} \ No newline at end of file +} + +export class Channels extends Collection implements ChannelsInterface { + override get(id: string): ChannelInterface | undefined { + return this.collections.find(channel => channel.id() === id); + } + + filterBySend(): ChannelInterface[] { + return this.filterBy(channel => channel.operations().filterBySend().length > 0); + } + + filterByReceive(): ChannelInterface[] { + return this.filterBy(channel => channel.operations().filterByReceive().length > 0); + } +} diff --git a/src/models/correlation-ids.ts b/src/models/correlation-ids.ts index 9134efe9e..8355ea58d 100644 --- a/src/models/correlation-ids.ts +++ b/src/models/correlation-ids.ts @@ -1,4 +1,10 @@ -import type { Collection } from './collection'; +import { Collection } from './collection'; import type { CorrelationIdInterface } from './correlation-id'; -export type CorrelationIdsInterface = Collection \ No newline at end of file +export type CorrelationIdsInterface = Collection + +export class CorrelationIds extends Collection implements CorrelationIdsInterface { + override get(id: string): CorrelationIdInterface | undefined { + return this.collections.find(correlationId => correlationId.meta('id' as any) === id); + } +} diff --git a/src/models/extensions.ts b/src/models/extensions.ts index 7a1184461..7f3247428 100644 --- a/src/models/extensions.ts +++ b/src/models/extensions.ts @@ -1,4 +1,11 @@ -import type { Collection } from './collection'; +import { Collection } from './collection'; import type { ExtensionInterface } from './extension'; -export type ExtensionsInterface = Collection \ No newline at end of file +export type ExtensionsInterface = Collection + +export class Extensions extends Collection implements ExtensionsInterface { + override get(id: string): ExtensionInterface | undefined { + id = id.startsWith('x-') ? id : `x-${id}`; + return this.collections.find(ext => ext.id() === id); + } +} \ No newline at end of file diff --git a/src/models/message-examples.ts b/src/models/message-examples.ts index e0ff6110c..16dd35a03 100644 --- a/src/models/message-examples.ts +++ b/src/models/message-examples.ts @@ -1,4 +1,10 @@ -import type { Collection } from './collection'; +import { Collection } from './collection'; import type { MessageExampleInterface } from './message-example'; export type MessageExamplesInterface = Collection + +export class MessageExamples extends Collection implements MessageExamplesInterface { + override get(name: string): MessageExampleInterface | undefined { + return this.collections.find(example => example.name() === name); + } +} diff --git a/src/models/message-traits.ts b/src/models/message-traits.ts index 548b344d8..4dfcd6fa3 100644 --- a/src/models/message-traits.ts +++ b/src/models/message-traits.ts @@ -1,4 +1,10 @@ -import type { Collection } from './collection'; +import { Collection } from './collection'; import type { MessageTraitInterface } from './message-trait'; -export type MessageTraitsInterface = Collection \ No newline at end of file +export type MessageTraitsInterface = Collection + +export class MessageTraits extends Collection implements MessageTraitsInterface { + override get(id: string): MessageTraitInterface | undefined { + return this.collections.find(trait => trait.id() === id); + } +} \ No newline at end of file diff --git a/src/models/messages.ts b/src/models/messages.ts index eaf8cb178..32604b0b0 100644 --- a/src/models/messages.ts +++ b/src/models/messages.ts @@ -1,7 +1,21 @@ -import type { Collection } from './collection'; +import { Collection } from './collection'; import type { MessageInterface } from './message'; export interface MessagesInterface extends Collection { filterBySend(): MessageInterface[]; filterByReceive(): MessageInterface[]; -} \ No newline at end of file +} + +export class Messages extends Collection implements MessagesInterface { + override get(name: string): MessageInterface | undefined { + return this.collections.find(message => message.id() === name); + } + + filterBySend(): MessageInterface[] { + return this.filterBy(message => message.operations().filterBySend().length > 0); + } + + filterByReceive(): MessageInterface[] { + return this.filterBy(message => message.operations().filterByReceive().length > 0); + } +} diff --git a/src/models/operation-trait.ts b/src/models/operation-trait.ts index 821af8457..c22c8aa56 100644 --- a/src/models/operation-trait.ts +++ b/src/models/operation-trait.ts @@ -1,12 +1,17 @@ import type { BaseModel } from './base'; +import type { ChannelsInterface } from './channels'; +import type { OperationAction } from './operation'; +import type { SecurityRequirements } from './security-requirements'; import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; -import { SecurityRequirements } from './v2/security-requirements'; export interface OperationTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { - id(): string; - hasOperationId(): boolean; - operationId(): string | undefined; + id(): string | undefined; + hasId(): boolean; + action(): OperationAction | undefined; + isSend(): boolean; + isReceive(): boolean; hasSummary(): boolean; summary(): string | undefined; security(): SecurityRequirements[]; + channels(): ChannelsInterface; } diff --git a/src/models/operation-traits.ts b/src/models/operation-traits.ts index 310dbbfc7..fc6e06ddf 100644 --- a/src/models/operation-traits.ts +++ b/src/models/operation-traits.ts @@ -1,4 +1,10 @@ -import type { Collection } from './collection'; +import { Collection } from './collection'; import type { OperationTraitInterface } from './operation-trait'; -export type OperationTraitsInterface = Collection \ No newline at end of file +export type OperationTraitsInterface = Collection + +export class OperationTraits extends Collection implements OperationTraitsInterface { + override get(id: string): OperationTraitInterface | undefined { + return this.collections.find(trait => trait.id() === id); + } +} diff --git a/src/models/operation.ts b/src/models/operation.ts index 1bb372296..854c76a9f 100644 --- a/src/models/operation.ts +++ b/src/models/operation.ts @@ -1,5 +1,4 @@ import type { BaseModel } from './base'; -import type { ChannelsInterface } from './channels'; import type { MessagesInterface } from './messages'; import type { OperationTraitsInterface } from './operation-traits'; import type { OperationTraitInterface } from './operation-trait'; @@ -9,10 +8,7 @@ export type OperationAction = 'send' | 'receive' | 'publish' | 'subscribe'; export interface OperationInterface extends BaseModel, OperationTraitInterface { action(): OperationAction; - isSend(): boolean; - isReceive(): boolean; servers(): ServersInterface; - channels(): ChannelsInterface; messages(): MessagesInterface; traits(): OperationTraitsInterface; } diff --git a/src/models/operations.ts b/src/models/operations.ts index 798e323a3..5d2726f59 100644 --- a/src/models/operations.ts +++ b/src/models/operations.ts @@ -1,7 +1,22 @@ -import type { Collection } from './collection'; +import { Collection } from './collection'; + import type { OperationInterface } from './operation'; export interface OperationsInterface extends Collection { filterBySend(): OperationInterface[]; filterByReceive(): OperationInterface[]; } + +export class Operations extends Collection implements OperationsInterface { + override get(id: string): OperationInterface | undefined { + return this.collections.find(operation => operation.id() === id); + } + + filterBySend(): OperationInterface[] { + return this.filterBy(operation => operation.isSend()); + } + + filterByReceive(): OperationInterface[] { + return this.filterBy(operation => operation.isReceive()); + } +} diff --git a/src/models/schema.ts b/src/models/schema.ts index bcbef4bf9..06f814b2c 100644 --- a/src/models/schema.ts +++ b/src/models/schema.ts @@ -3,7 +3,7 @@ import type { ExtensionsMixinInterface, ExternalDocumentationMixinInterface } fr import type { v2 } from '../spec-types'; export interface SchemaInterface extends BaseModel, ExtensionsMixinInterface, ExternalDocumentationMixinInterface { - uid(): string; + id(): string; $comment(): string | undefined; $id(): string | undefined; $schema(): string; diff --git a/src/models/schemas.ts b/src/models/schemas.ts index f8d021ada..797b1a42c 100644 --- a/src/models/schemas.ts +++ b/src/models/schemas.ts @@ -1,4 +1,10 @@ -import type { Collection } from './collection'; +import { Collection } from './collection'; import type { SchemaInterface } from './schema'; export type SchemasInterface = Collection + +export class Schemas extends Collection implements SchemasInterface { + override get(id: string): SchemaInterface | undefined { + return this.collections.find(schema => schema.uid() === id); + } +} diff --git a/src/models/security-requirements.ts b/src/models/security-requirements.ts index c52070760..436abecc1 100644 --- a/src/models/security-requirements.ts +++ b/src/models/security-requirements.ts @@ -1,4 +1,10 @@ -import type { Collection} from './collection'; +import { Collection} from './collection'; import type { SecurityRequirementInterface } from './security-requirement'; -export type SecurityRequirementsInterface = Collection \ No newline at end of file +export type SecurityRequirementsInterface = Collection + +export class SecurityRequirements extends Collection implements SecurityRequirementsInterface { + override get(id: string): SecurityRequirementInterface | undefined { + return this.collections.find(securityRequirement => securityRequirement.meta('id' as any) === id); + } +} diff --git a/src/models/security-schemes.ts b/src/models/security-schemes.ts index 283216648..84e1b5860 100644 --- a/src/models/security-schemes.ts +++ b/src/models/security-schemes.ts @@ -1,4 +1,10 @@ -import type { Collection} from './collection'; +import { Collection} from './collection'; import type { SecuritySchemeInterface } from './security-scheme'; export type SecuritySchemesInterface = Collection + +export class SecuritySchemes extends Collection implements SecuritySchemesInterface { + override get(id: string): SecuritySchemeInterface | undefined { + return this.collections.find(securityScheme => securityScheme.id() === id); + } +} diff --git a/src/models/server-variables.ts b/src/models/server-variables.ts index ae4499749..5184045ca 100644 --- a/src/models/server-variables.ts +++ b/src/models/server-variables.ts @@ -1,4 +1,10 @@ -import type { Collection } from './collection'; +import { Collection } from './collection'; import type { ServerVariableInterface } from './server-variable'; -export type ServerVariablesInterface = Collection \ No newline at end of file +export type ServerVariablesInterface = Collection; + +export class ServerVariables extends Collection implements ServerVariablesInterface { + override get(id: string): ServerVariableInterface | undefined { + return this.collections.find(variable => variable.id() === id); + } +} diff --git a/src/models/server.ts b/src/models/server.ts index 5e4b1b76e..9509d0f45 100644 --- a/src/models/server.ts +++ b/src/models/server.ts @@ -1,12 +1,12 @@ import type { BaseModel } from './base'; import type { ChannelsInterface } from './channels'; import type { MessagesInterface } from './messages'; -import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, TagsMixinInterface } from './mixins'; import type { OperationsInterface } from './operations'; import type { ServerVariablesInterface } from './server-variables'; import type { SecurityRequirementsInterface } from './security-requirements'; -export interface ServerInterface extends BaseModel, DescriptionMixinInterface, BindingsMixinInterface, ExtensionsMixinInterface { +export interface ServerInterface extends BaseModel, DescriptionMixinInterface, BindingsMixinInterface, ExtensionsMixinInterface, TagsMixinInterface { id(): string url(): string; protocol(): string; diff --git a/src/models/servers.ts b/src/models/servers.ts index 8483ef759..6f91da73a 100644 --- a/src/models/servers.ts +++ b/src/models/servers.ts @@ -1,7 +1,21 @@ -import type { Collection } from './collection'; +import { Collection } from './collection'; import type { ServerInterface } from './server'; export interface ServersInterface extends Collection { filterBySend(): ServerInterface[]; filterByReceive(): ServerInterface[]; } + +export class Servers extends Collection implements ServersInterface { + override get(id: string): ServerInterface | undefined { + return this.collections.find(server => server.id() === id); + } + + filterBySend(): ServerInterface[] { + return this.filterBy(server => server.operations().filterBySend().length > 0); + } + + filterByReceive(): ServerInterface[] { + return this.filterBy(server => server.operations().filterByReceive().length > 0); + } +} \ No newline at end of file diff --git a/src/models/tags.ts b/src/models/tags.ts index 368812652..475cec00d 100644 --- a/src/models/tags.ts +++ b/src/models/tags.ts @@ -1,4 +1,10 @@ -import type { Collection } from './collection'; +import { Collection } from './collection'; import type { TagInterface } from './tag'; -export type TagsInterface = Collection \ No newline at end of file +export type TagsInterface = Collection + +export class Tags extends Collection implements TagsInterface { + override get(name: string): TagInterface | undefined { + return this.collections.find(tag => tag.name() === name); + } +} \ No newline at end of file diff --git a/src/models/v2/asyncapi.ts b/src/models/v2/asyncapi.ts index fc14f4689..1bb291025 100644 --- a/src/models/v2/asyncapi.ts +++ b/src/models/v2/asyncapi.ts @@ -1,15 +1,15 @@ import { BaseModel } from '../base'; import { Info } from './info'; -import { Channels } from './channels'; +import { Channels } from '../channels'; import { Channel } from './channel'; import { Components } from './components'; -import { Messages } from './messages'; -import { Operations } from './operations'; -import { Servers } from './servers'; +import { Messages } from '../messages'; +import { Operations } from '../operations'; +import { Servers } from '../servers'; import { Server } from './server'; -import { SecuritySchemes } from './security-schemes'; +import { SecuritySchemes } from '../security-schemes'; import { SecurityScheme } from './security-scheme'; -import { Schemas } from './schemas'; +import { Schemas } from '../schemas'; import { extensions } from './mixins'; diff --git a/src/models/v2/bindings.ts b/src/models/v2/bindings.ts index e9b5f46e9..2a394e9a0 100644 --- a/src/models/v2/bindings.ts +++ b/src/models/v2/bindings.ts @@ -1,5 +1,5 @@ import { Collection } from '../collection'; -import { Extensions } from './extensions'; +import { Extensions } from '../extensions'; import { Extension } from './extension'; import { createModel } from '../utils'; diff --git a/src/models/v2/channel-parameters.ts b/src/models/v2/channel-parameters.ts deleted file mode 100644 index 71d7cf10e..000000000 --- a/src/models/v2/channel-parameters.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Collection } from '../collection'; - -import type { ChannelParametersInterface } from '../channel-parameters'; -import type { ChannelParameterInterface } from '../channel-parameter'; - -export class ChannelParameters extends Collection implements ChannelParametersInterface { - override get(id: string): ChannelParameterInterface | undefined { - return this.collections.find(parameter => parameter.id() === id); - } -} diff --git a/src/models/v2/channel.ts b/src/models/v2/channel.ts index 60a6fc7dc..5ba192a9d 100644 --- a/src/models/v2/channel.ts +++ b/src/models/v2/channel.ts @@ -1,11 +1,12 @@ import { BaseModel } from '../base'; -import { ChannelParameters } from './channel-parameters'; +import { ChannelParameters } from '../channel-parameters'; import { ChannelParameter } from './channel-parameter'; -import { Messages } from './messages'; -import { Operations } from './operations'; +import { Messages } from '../messages'; +import { Operations } from '../operations'; import { Operation } from './operation'; -import { Servers } from './servers'; +import { Servers } from '../servers'; import { Server } from './server'; +import { Tags } from '../tags'; import { bindings, hasDescription, description, extensions } from './mixins'; @@ -13,12 +14,14 @@ import type { BindingsInterface } from '../bindings'; import type { ChannelInterface } from '../channel'; import type { ChannelParametersInterface } from '../channel-parameters'; import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; import type { MessagesInterface } from '../messages'; import type { MessageInterface } from '../message'; import type { OperationsInterface } from '../operations'; import type { OperationAction, OperationInterface } from '../operation'; import type { ServersInterface } from '../servers'; import type { ServerInterface } from '../server'; +import type { TagsInterface } from '../tags'; import type { v2 } from '../../spec-types'; @@ -27,7 +30,7 @@ export class Channel extends BaseModel implements ChannelsInterface { - override get(id: string): ChannelInterface | undefined { - return this.collections.find(channel => channel.id() === id); - } - - filterBySend(): ChannelInterface[] { - return this.filterBy(channel => channel.operations().filterBySend().length > 0); - } - - filterByReceive(): ChannelInterface[] { - return this.filterBy(channel => channel.operations().filterByReceive().length > 0); - } -} diff --git a/src/models/v2/components.ts b/src/models/v2/components.ts index b6f16f425..8f2ace0af 100644 --- a/src/models/v2/components.ts +++ b/src/models/v2/components.ts @@ -13,17 +13,17 @@ import { SecurityScheme } from './security-scheme'; import { Server } from './server'; import { ServerVariable } from './server-variable'; import { extensions } from './mixins'; -import { Servers } from './servers'; -import { Channels } from './channels'; -import { Messages } from './messages'; -import { Schemas } from './schemas'; -import { ChannelParameters } from './channel-parameters'; -import { ServerVariables } from './server-variables'; -import { OperationTraits } from './operation-traits'; -import { MessageTraits } from './message-traits'; -import { SecuritySchemes } from './security-schemes'; -import { CorrelationIds } from './correlation-ids'; -import { Operations } from './operations'; +import { Servers } from '../servers'; +import { Channels } from '../channels'; +import { Messages } from '../messages'; +import { Schemas } from '../schemas'; +import { ChannelParameters } from '../channel-parameters'; +import { ServerVariables } from '../server-variables'; +import { OperationTraits } from '../operation-traits'; +import { MessageTraits } from '../message-traits'; +import { SecuritySchemes } from '../security-schemes'; +import { CorrelationIds } from '../correlation-ids'; +import { Operations } from '../operations'; import { Message } from './message'; import { tilde } from '../../utils'; diff --git a/src/models/v2/correlation-ids.ts b/src/models/v2/correlation-ids.ts deleted file mode 100644 index d0a921171..000000000 --- a/src/models/v2/correlation-ids.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Collection } from '../collection'; - -import type { CorrelationIdsInterface } from '../correlation-ids'; -import type { CorrelationIdInterface } from '../correlation-id'; - -export class CorrelationIds extends Collection implements CorrelationIdsInterface { - override get(id: string): CorrelationIdInterface | undefined { - return this.collections.find(correlationId => correlationId.meta('id' as any) === id); - } -} diff --git a/src/models/v2/extensions.ts b/src/models/v2/extensions.ts deleted file mode 100644 index e529b35d3..000000000 --- a/src/models/v2/extensions.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Collection } from '../collection'; - -import type { ExtensionsInterface } from '../extensions'; -import type { ExtensionInterface } from '../extension'; - -export class Extensions extends Collection implements ExtensionsInterface { - override get(id: string): ExtensionInterface | undefined { - id = id.startsWith('x-') ? id : `x-${id}`; - return this.collections.find(ext => ext.id() === id); - } -} diff --git a/src/models/v2/index.ts b/src/models/v2/index.ts index 69b94f651..17b34f9b6 100644 --- a/src/models/v2/index.ts +++ b/src/models/v2/index.ts @@ -2,36 +2,36 @@ export { AsyncAPIDocument as AsyncAPIDocumentV2 } from './asyncapi'; export { Binding as BindingV2 } from './binding'; export { Bindings as BindingsV2 } from './bindings'; export { ChannelParameter as ChannelParameterV2 } from './channel-parameter'; -export { ChannelParameters as ChannelParametersV2 } from './channel-parameters'; +export { ChannelParameters as ChannelParametersV2 } from '../channel-parameters'; export { Channel as ChannelV2 } from './channel'; -export { Channels as ChannelsV2 } from './channels'; +export { Channels as ChannelsV2 } from '../channels'; export { Components as ComponentsV2 } from './components'; export { Contact as ContactV2 } from './contact'; export { CorrelationId as CorrelationIdV2 } from './correlation-id'; export { Extension as ExtensionV2 } from './extension'; -export { Extensions as ExtensionsV2 } from './extensions'; +export { Extensions as ExtensionsV2 } from '../extensions'; export { ExternalDocumentation as ExternalDocumentationV2 } from './external-docs'; export { Info as InfoV2 } from './info'; export { License as LicenseV2 } from './license'; export { MessageExample as MessageExampleV2 } from './message-example'; -export { MessageExamples as MessageExamplesV2 } from './message-examples'; +export { MessageExamples as MessageExamplesV2 } from '../message-examples'; export { MessageTrait as MessageTraitV2 } from './message-trait'; -export { MessageTraits as MessageTraitsV2 } from './message-traits'; +export { MessageTraits as MessageTraitsV2 } from '../message-traits'; export { Message as MessageV2 } from './message'; -export { Messages as MessagesV2 } from './messages'; +export { Messages as MessagesV2 } from '../messages'; export { OAuthFlow as OAuthFlowV2 } from './oauth-flow'; export { OAuthFlows as OAuthFlowsV2 } from './oauth-flows'; export { OperationTrait as OperationTraitV2 } from './operation-trait'; -export { OperationTraits as OperationTraitsV2 } from './operation-traits'; +export { OperationTraits as OperationTraitsV2 } from '../operation-traits'; export { Operation as OperationV2 } from './operation'; -export { Operations as OperationsV2 } from './operations'; +export { Operations as OperationsV2 } from '../operations'; export { Schema as SchemaV2 } from './schema'; -export { Schemas as SchemasV2 } from './schemas'; +export { Schemas as SchemasV2 } from '../schemas'; export { SecurityScheme as SecuritySchemeV2 } from './security-scheme'; -export { SecuritySchemes as SecuritySchemesV2 } from './security-schemes'; +export { SecuritySchemes as SecuritySchemesV2 } from '../security-schemes'; export { ServerVariable as ServerVariableV2 } from './server-variable'; -export { ServerVariables as ServerVariablesV2 } from './server-variables'; +export { ServerVariables as ServerVariablesV2 } from '../server-variables'; export { Server as ServerV2 } from './server'; -export { Servers as ServersV2 } from './servers'; +export { Servers as ServersV2 } from '../servers'; export { Tag as TagV2 } from './tag'; -export { Tags as TagsV2 } from './tags'; \ No newline at end of file +export { Tags as TagsV2 } from '../tags'; \ No newline at end of file diff --git a/src/models/v2/info.ts b/src/models/v2/info.ts index 5ca6dda00..5afae182b 100644 --- a/src/models/v2/info.ts +++ b/src/models/v2/info.ts @@ -2,7 +2,7 @@ import { BaseModel } from '../base'; import { Contact } from './contact'; import { ExternalDocumentation } from './external-docs'; import { License } from './license'; -import { Tags } from './tags'; +import { Tags } from '../tags'; import { Tag } from './tag'; import { hasDescription, description, extensions } from './mixins'; @@ -68,17 +68,20 @@ export class Info extends BaseModel implements InfoInterface { } hasExternalDocs(): boolean { - return Object.keys(this._meta.asyncapi.parsed.externalDocs || {}).length > 0; + const parsedAsyncAPI: v2.AsyncAPIObject = this._meta.asyncapi.parsed as v2.AsyncAPIObject; + return Object.keys(parsedAsyncAPI.externalDocs || {}).length > 0; } externalDocs(): ExternalDocumentationInterface | undefined { if (this.hasExternalDocs()) { - return this.createModel(ExternalDocumentation, this._meta.asyncapi.parsed.externalDocs as v2.ExternalDocumentationObject, { pointer: '/externalDocs' }); + const parsedAsyncAPI: v2.AsyncAPIObject = this._meta.asyncapi.parsed as v2.AsyncAPIObject; + return this.createModel(ExternalDocumentation, parsedAsyncAPI.externalDocs as v2.ExternalDocumentationObject, { pointer: '/externalDocs' }); } } tags(): TagsInterface { - const tags = this._meta.asyncapi.parsed.tags || []; + const parsedAsyncAPI: v2.AsyncAPIObject = this._meta.asyncapi.parsed as v2.AsyncAPIObject; + const tags = parsedAsyncAPI.tags || []; return new Tags(tags.map((tag: any, idx: number) => this.createModel(Tag, tag, { pointer: `/tags/${idx}` }))); } diff --git a/src/models/v2/message-examples.ts b/src/models/v2/message-examples.ts deleted file mode 100644 index fa07cfa2f..000000000 --- a/src/models/v2/message-examples.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Collection } from '../collection'; - -import type { MessageExamplesInterface } from '../message-examples'; -import type { MessageExampleInterface } from '../message-example'; - -export class MessageExamples extends Collection implements MessageExamplesInterface { - override get(name: string): MessageExampleInterface | undefined { - return this.collections.find(example => example.name() === name); - } -} diff --git a/src/models/v2/message-trait.ts b/src/models/v2/message-trait.ts index 914757e79..2f1333acb 100644 --- a/src/models/v2/message-trait.ts +++ b/src/models/v2/message-trait.ts @@ -1,6 +1,6 @@ import { BaseModel } from '../base'; import { CorrelationId } from './correlation-id'; -import { MessageExamples } from './message-examples'; +import { MessageExamples } from '../message-examples'; import { MessageExample } from './message-example'; import { Schema } from './schema'; diff --git a/src/models/v2/message-traits.ts b/src/models/v2/message-traits.ts deleted file mode 100644 index 3d8dadddb..000000000 --- a/src/models/v2/message-traits.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Collection } from '../collection'; - -import type { MessageTraitsInterface } from '../message-traits'; -import type { MessageTraitInterface } from '../message-trait'; - -export class MessageTraits extends Collection implements MessageTraitsInterface { - override get(id: string): MessageTraitInterface | undefined { - return this.collections.find(trait => trait.id() === id); - } -} diff --git a/src/models/v2/message.ts b/src/models/v2/message.ts index ad87eeba3..4c8583db1 100644 --- a/src/models/v2/message.ts +++ b/src/models/v2/message.ts @@ -1,9 +1,9 @@ -import { Channels } from './channels'; -import { Operations } from './operations'; +import { Channels } from '../channels'; +import { Operations } from '../operations'; import { Operation } from './operation'; -import { MessageTraits } from './message-traits'; +import { MessageTraits } from '../message-traits'; import { MessageTrait } from './message-trait'; -import { Servers } from './servers'; +import { Servers } from '../servers'; import { Schema } from './schema'; import { tilde } from '../../utils'; diff --git a/src/models/v2/messages.ts b/src/models/v2/messages.ts deleted file mode 100644 index 591c0d7ac..000000000 --- a/src/models/v2/messages.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Collection } from '../collection'; - -import type { MessagesInterface } from '../messages'; -import type { MessageInterface } from '../message'; - -export class Messages extends Collection implements MessagesInterface { - override get(name: string): MessageInterface | undefined { - return this.collections.find(message => message.id() === name); - } - - filterBySend(): MessageInterface[] { - return this.filterBy(message => message.operations().filterBySend().length > 0); - } - - filterByReceive(): MessageInterface[] { - return this.filterBy(message => message.operations().filterByReceive().length > 0); - } -} diff --git a/src/models/v2/mixins.ts b/src/models/v2/mixins.ts index 37ebc7927..d93f099cf 100644 --- a/src/models/v2/mixins.ts +++ b/src/models/v2/mixins.ts @@ -1,9 +1,9 @@ import { Bindings } from './bindings'; import { Binding } from './binding'; -import { Extensions } from './extensions'; +import { Extensions } from '../extensions'; import { Extension } from './extension'; import { ExternalDocumentation } from './external-docs'; -import { Tags } from './tags'; +import { Tags } from '../tags'; import { Tag } from './tag'; import { createModel } from '../utils'; diff --git a/src/models/v2/operation-trait.ts b/src/models/v2/operation-trait.ts index 98a4ca631..7b9d78a5a 100644 --- a/src/models/v2/operation-trait.ts +++ b/src/models/v2/operation-trait.ts @@ -1,34 +1,32 @@ import { BaseModel } from '../base'; +import { Channels } from '../channels'; import { SecurityScheme } from './security-scheme'; +import { SecurityRequirements } from '../security-requirements'; +import { SecurityRequirement } from './security-requirement'; import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from './mixins'; import type { BindingsInterface } from '../bindings'; import type { ExtensionsInterface } from '../extensions'; import type { ExternalDocumentationInterface } from '../external-docs'; +import type { ChannelsInterface } from '../channels'; import type { OperationAction } from '../operation'; import type { OperationTraitInterface } from '../operation-trait'; import type { TagsInterface } from '../tags'; import type { v2 } from '../../spec-types'; -import { SecurityRequirements } from './security-requirements'; -import { SecurityRequirement } from './security-requirement'; -export class OperationTrait extends BaseModel implements OperationTraitInterface { - id(): string { - return this.operationId() || this._meta.id; - } - - action(): OperationAction { - return this._meta.action; +export class OperationTrait extends BaseModel implements OperationTraitInterface { + id(): string | undefined { + return this._json.operationId; } - hasOperationId(): boolean { - return !!this._json.operationId; + hasId(): boolean { + return this.id() !== undefined; } - operationId(): string | undefined { - return this._json.operationId; + action(): OperationAction | undefined { + return this._meta.action; } hasSummary(): boolean { @@ -51,6 +49,10 @@ export class OperationTrait; return (this._json.security || []).map((requirement, index) => { @@ -77,6 +75,10 @@ export class OperationTrait implements OperationTraitsInterface { - override get(id: string): OperationTraitInterface | undefined { - return this.collections.find(trait => trait.id() === id); - } -} diff --git a/src/models/v2/operation.ts b/src/models/v2/operation.ts index 84dcda87b..1782491d6 100644 --- a/src/models/v2/operation.ts +++ b/src/models/v2/operation.ts @@ -1,17 +1,17 @@ -import { Channels } from './channels'; +import { Channels } from '../channels'; import { Channel } from './channel'; -import { Messages } from './messages'; +import { Messages } from '../messages'; import { Message } from './message'; -import { OperationTraits } from './operation-traits'; +import { OperationTraits } from '../operation-traits'; import { OperationTrait } from './operation-trait'; -import { Servers } from './servers'; +import { Servers } from '../servers'; import { tilde } from '../../utils'; import type { ChannelsInterface } from '../channels'; import type { ChannelInterface } from '../channel'; import type { MessagesInterface } from '../messages'; -import type { OperationInterface } from '../operation'; +import type { OperationAction, OperationInterface } from '../operation'; import type { OperationTraitsInterface } from '../operation-traits'; import type { ServersInterface } from '../servers'; import type { ServerInterface } from '../server'; @@ -19,6 +19,10 @@ import type { ServerInterface } from '../server'; import type { v2 } from '../../spec-types'; export class Operation extends OperationTrait implements OperationInterface { + action(): OperationAction { + return this._meta.action; + } + servers(): ServersInterface { const servers: ServerInterface[] = []; const serversData: any[] = []; diff --git a/src/models/v2/operations.ts b/src/models/v2/operations.ts deleted file mode 100644 index f61b8c11c..000000000 --- a/src/models/v2/operations.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Collection } from '../collection'; - -import type { OperationsInterface } from '../operations'; -import type { OperationInterface } from '../operation'; - -export class Operations extends Collection implements OperationsInterface { - override get(id: string): OperationInterface | undefined { - return this.collections.find(operation => operation.id() === id); - } - - filterBySend(): OperationInterface[] { - return this.filterBy(operation => operation.isSend()); - } - - filterByReceive(): OperationInterface[] { - return this.filterBy(operation => operation.isReceive()); - } -} diff --git a/src/models/v2/schema.ts b/src/models/v2/schema.ts index ee551ae63..49c5ac1d8 100644 --- a/src/models/v2/schema.ts +++ b/src/models/v2/schema.ts @@ -14,14 +14,14 @@ import type { v2 } from '../../spec-types'; export class Schema extends BaseModel implements SchemaInterface { constructor( _json: v2.AsyncAPISchemaObject, - _meta: ModelMetadata & { id: string, parent?: Schema } = {} as any, + _meta: ModelMetadata & { id?: string, parent?: Schema } = {} as any, ) { - _json = retrievePossibleRef(_json, _meta.pointer, _meta.asyncapi?.parsed); + _json = retrievePossibleRef(_json, _meta.pointer as string, _meta.asyncapi?.parsed); super(_json, _meta); } - uid(): string { - return this._meta.id || this.extensions().get(xParserSchemaId)?.value() as string; + id(): string { + return this.$id() || this._meta.id || this.json(xParserSchemaId as any) as string; } $comment(): string | undefined { diff --git a/src/models/v2/schemas.ts b/src/models/v2/schemas.ts deleted file mode 100644 index 162fd44bd..000000000 --- a/src/models/v2/schemas.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Collection } from '../collection'; - -import type { SchemasInterface } from '../schemas'; -import type { SchemaInterface } from '../schema'; - -export class Schemas extends Collection implements SchemasInterface { - override get(id: string): SchemaInterface | undefined { - return this.collections.find(schema => schema.uid() === id); - } -} diff --git a/src/models/v2/security-requirements.ts b/src/models/v2/security-requirements.ts deleted file mode 100644 index 5fcf7dd30..000000000 --- a/src/models/v2/security-requirements.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Collection } from '../collection'; - -import type { SecurityRequirementsInterface } from '../security-requirements'; -import type { SecurityRequirementInterface } from '../security-requirement'; - -export class SecurityRequirements extends Collection implements SecurityRequirementsInterface { - override get(id: string): SecurityRequirementInterface | undefined { - return this.collections.find(securityRequirement => securityRequirement.meta('id' as any) === id); - } -} diff --git a/src/models/v2/security-schemes.ts b/src/models/v2/security-schemes.ts deleted file mode 100644 index 93ca01e1b..000000000 --- a/src/models/v2/security-schemes.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Collection } from '../collection'; - -import type { SecuritySchemesInterface } from '../security-schemes'; -import type { SecuritySchemeInterface } from '../security-scheme'; - -export class SecuritySchemes extends Collection implements SecuritySchemesInterface { - override get(id: string): SecuritySchemeInterface | undefined { - return this.collections.find(securityScheme => securityScheme.id() === id); - } -} diff --git a/src/models/v2/server-variables.ts b/src/models/v2/server-variables.ts deleted file mode 100644 index 5faf082db..000000000 --- a/src/models/v2/server-variables.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Collection } from '../collection'; - -import type { ServerVariablesInterface } from '../server-variables'; -import type { ServerVariableInterface } from '../server-variable'; - -export class ServerVariables extends Collection implements ServerVariablesInterface { - override get(id: string): ServerVariableInterface | undefined { - return this.collections.find(variable => variable.id() === id); - } -} diff --git a/src/models/v2/server.ts b/src/models/v2/server.ts index d063ee735..7aafe0eff 100644 --- a/src/models/v2/server.ts +++ b/src/models/v2/server.ts @@ -1,15 +1,16 @@ import { BaseModel } from '../base'; -import { Channels } from './channels'; +import { Channels } from '../channels'; import { Channel } from './channel'; -import { Messages } from './messages'; -import { Operations } from './operations'; +import { Messages } from '../messages'; +import { Operations } from '../operations'; import { SecurityScheme } from './security-scheme'; -import { ServerVariables } from './server-variables'; +import { ServerVariables } from '../server-variables'; import { ServerVariable } from './server-variable'; -import { SecurityRequirements } from './security-requirements'; +import { SecurityRequirements } from '../security-requirements'; import { SecurityRequirement } from './security-requirement'; +import { TagsInterface } from '../tags'; -import { bindings, hasDescription, description, extensions } from './mixins'; +import { bindings, hasDescription, description, extensions, tags } from './mixins'; import { tilde } from '../../utils'; import type { ChannelsInterface } from '../channels'; @@ -104,6 +105,10 @@ export class Server extends BaseModel implement }); } + tags(): TagsInterface { + return tags(this); + } + bindings(): BindingsInterface { return bindings(this); } diff --git a/src/models/v2/servers.ts b/src/models/v2/servers.ts deleted file mode 100644 index 3c6ce0f4a..000000000 --- a/src/models/v2/servers.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Collection } from '../collection'; -import { ServerInterface } from '../server'; -import { ServersInterface } from '../servers'; - -export class Servers extends Collection implements ServersInterface { - override get(id: string): ServerInterface | undefined { - return this.collections.find(server => server.id() === id); - } - - filterBySend(): ServerInterface[] { - return this.filterBy(server => server.operations().filterBySend().length > 0); - } - - filterByReceive(): ServerInterface[] { - return this.filterBy(server => server.operations().filterByReceive().length > 0); - } -} diff --git a/src/models/v2/tags.ts b/src/models/v2/tags.ts deleted file mode 100644 index 6048620ff..000000000 --- a/src/models/v2/tags.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Collection } from '../collection'; - -import type { TagsInterface } from '../tags'; -import type { TagInterface } from '../tag'; - -export class Tags extends Collection implements TagsInterface { - override get(name: string): TagInterface | undefined { - return this.collections.find(tag => tag.name() === name); - } -} diff --git a/src/models/v3/asyncapi.ts b/src/models/v3/asyncapi.ts index 29e3b8687..81b3ea604 100644 --- a/src/models/v3/asyncapi.ts +++ b/src/models/v3/asyncapi.ts @@ -1,6 +1,15 @@ import { BaseModel } from '../base'; +import { Channels } from '../channels'; +import { Channel } from './channel'; +import { Operations } from '../operations'; +import { Operation } from './operation'; + +import { extensions } from './mixins'; +import { tilde } from '../../utils'; import type { AsyncAPIDocumentInterface } from '../asyncapi'; +import type { ChannelsInterface } from '../channels'; +import type { OperationsInterface } from '../operations'; import type { v3 } from '../../spec-types'; @@ -25,12 +34,20 @@ export class AsyncAPIDocument extends BaseModel implements As return null as any; } - channels() { - return null as any; + channels(): ChannelsInterface { + return new Channels( + Object.entries(this._json.channels || {}).map(([channelId, channel]) => + this.createModel(Channel, channel, { id: channelId, pointer: `/channels/${tilde(channelId)}` }) + ) + ); } - operations() { - return null as any; + operations(): OperationsInterface { + return new Operations( + Object.entries(this._json.operations || {}).map(([operationId, operation]) => + this.createModel(Operation, operation, { id: operationId, pointer: `/operations/${tilde(operationId)}` }) + ) + ); } messages() { @@ -50,6 +67,6 @@ export class AsyncAPIDocument extends BaseModel implements As } extensions() { - return null as any; + return extensions(this); } } diff --git a/src/models/v3/bindings.ts b/src/models/v3/bindings.ts index c17208d60..bce2fc4ba 100644 --- a/src/models/v3/bindings.ts +++ b/src/models/v3/bindings.ts @@ -1,5 +1,5 @@ import { Collection } from '../collection'; -import { Extensions } from './extensions'; +import { Extensions } from '../extensions'; import { Extension } from './extension'; import { createModel } from '../utils'; diff --git a/src/models/v3/channel-parameter.ts b/src/models/v3/channel-parameter.ts new file mode 100644 index 000000000..b5fc343e4 --- /dev/null +++ b/src/models/v3/channel-parameter.ts @@ -0,0 +1,45 @@ +import { BaseModel } from '../base'; +import { Schema } from './schema'; + +import { hasDescription, description, extensions } from './mixins'; + +import type { ChannelParameterInterface } from '../channel-parameter'; +import type { SchemaInterface } from '../schema'; +import type { ExtensionsInterface } from '../extensions'; + +import type { v3 } from '../../spec-types'; + +export class ChannelParameter extends BaseModel implements ChannelParameterInterface { + id(): string { + return this._meta.id; + } + + hasSchema(): boolean { + return !!this._json.schema; + } + + schema(): SchemaInterface | undefined { + if (!this._json.schema) return undefined; + return this.createModel(Schema, this._json.schema, { pointer: `${this._meta.pointer}/schema` }); + } + + hasLocation(): boolean { + return !!this._json.location; + } + + location(): string | undefined { + return this._json.location; + } + + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} diff --git a/src/models/v3/channel.ts b/src/models/v3/channel.ts new file mode 100644 index 000000000..c1e65cbc6 --- /dev/null +++ b/src/models/v3/channel.ts @@ -0,0 +1,110 @@ +import { BaseModel } from '../base'; +import { ChannelParameters } from '../channel-parameters'; +import { ChannelParameter } from './channel-parameter'; +import { Messages } from '../messages'; +import { Message } from './message'; +import { Operations } from '../operations'; +import { Operation } from './operation'; +import { Servers } from '../servers'; +import { Server } from './server'; + +import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from './mixins'; + +import type { BindingsInterface } from '../bindings'; +import type { ChannelInterface } from '../channel'; +import type { ChannelParametersInterface } from '../channel-parameters'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { MessagesInterface } from '../messages'; +import type { OperationsInterface } from '../operations'; +import type { OperationInterface } from '../operation'; +import type { ServersInterface } from '../servers'; +import type { ServerInterface } from '../server'; +import type { TagsInterface } from '../tags'; + +import type { v3 } from '../../spec-types'; + +export class Channel extends BaseModel implements ChannelInterface { + id(): string { + return this._meta.id; + } + + address(): string | null | undefined { + return this._json.address; + } + + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + + hasExternalDocs(): boolean { + return hasExternalDocs(this); + } + + externalDocs(): ExternalDocumentationInterface | undefined { + return externalDocs(this); + } + + servers(): ServersInterface { + const servers: ServerInterface[] = []; + const allowedServers = this._json.servers || []; + Object.entries(this._meta.asyncapi?.parsed?.servers || {}).forEach(([serverName, server]) => { + if (allowedServers.length === 0) { + servers.push(this.createModel(Server, server, { id: serverName, pointer: `/servers/${serverName}` })); + } else { + const index = allowedServers.indexOf(server); + if (index !== -1) { + servers.push(this.createModel(Server, server, { id: serverName, pointer: this.jsonPath(`servers/${index}`) })); + } + } + }); + return new Servers(servers); + } + + operations(): OperationsInterface { + const operations: OperationInterface[] = []; + Object.entries(((this._meta.asyncapi?.parsed as v3.AsyncAPIObject)?.operations || {})).forEach(([operationId, operation]) => { + if (operation.channel === this._json) { + operations.push( + this.createModel(Operation, operation, { id: operationId, pointer: `/operations/${operationId}` }), + ); + } + }); + return new Operations(operations); + } + + messages(): MessagesInterface { + return new Messages( + Object.entries(this._json.messages || {}).map(([messageName, message]) => { + return this.createModel(Message, message, { id: messageName, pointer: this.jsonPath(`messages/${messageName}`) }); + }) + ); + } + + parameters(): ChannelParametersInterface { + return new ChannelParameters( + Object.entries(this._json.parameters || {}).map(([channelParameterName, channelParameter]) => { + return this.createModel(ChannelParameter, channelParameter as v3.ParameterObject, { + id: channelParameterName, + pointer: `${this._meta.pointer}/parameters/${channelParameterName}` + }); + }) + ); + } + + tags(): TagsInterface { + return tags(this); + } + + bindings(): BindingsInterface { + return bindings(this); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} diff --git a/src/models/v3/correlation-id.ts b/src/models/v3/correlation-id.ts new file mode 100644 index 000000000..d447e4b4b --- /dev/null +++ b/src/models/v3/correlation-id.ts @@ -0,0 +1,30 @@ +import { BaseModel } from '../base'; + +import { hasDescription, description, extensions } from './mixins'; + +import type { CorrelationIdInterface } from '../correlation-id'; +import type { ExtensionsInterface } from '../extensions'; + +import type { v3 } from '../../spec-types'; + +export class CorrelationId extends BaseModel implements CorrelationIdInterface { + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + + hasLocation(): boolean { + return !!this._json.location; + } + + location(): string | undefined { + return this._json.location; + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} diff --git a/src/models/v3/extensions.ts b/src/models/v3/extensions.ts deleted file mode 100644 index e529b35d3..000000000 --- a/src/models/v3/extensions.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Collection } from '../collection'; - -import type { ExtensionsInterface } from '../extensions'; -import type { ExtensionInterface } from '../extension'; - -export class Extensions extends Collection implements ExtensionsInterface { - override get(id: string): ExtensionInterface | undefined { - id = id.startsWith('x-') ? id : `x-${id}`; - return this.collections.find(ext => ext.id() === id); - } -} diff --git a/src/models/v3/index.ts b/src/models/v3/index.ts index 05cd9ec64..4da27ddc5 100644 --- a/src/models/v3/index.ts +++ b/src/models/v3/index.ts @@ -1 +1,33 @@ -export { AsyncAPIDocument as AsyncAPIDocumentV3 } from './asyncapi'; \ No newline at end of file +export { AsyncAPIDocument as AsyncAPIDocumentV3 } from './asyncapi'; +export { Binding as BindingV3 } from './binding'; +export { Bindings as BindingsV3 } from './bindings'; +export { ChannelParameter as ChannelParameterV3 } from './channel-parameter'; +export { ChannelParameters as ChannelParametersV3 } from '../channel-parameters'; +export { Channel as ChannelV3 } from './channel'; +export { Channels as ChannelsV3 } from '../channels'; +export { CorrelationId as CorrelationIdV3 } from './correlation-id'; +export { Extension as ExtensionV3 } from './extension'; +export { Extensions as ExtensionsV3 } from '../extensions'; +export { ExternalDocumentation as ExternalDocumentationV3 } from './external-docs'; +export { MessageExample as MessageExampleV3 } from './message-example'; +export { MessageExamples as MessageExamplesV3 } from '../message-examples'; +export { MessageTrait as MessageTraitV3 } from './message-trait'; +export { MessageTraits as MessageTraitsV3 } from '../message-traits'; +export { Message as MessageV3 } from './message'; +export { Messages as MessagesV3 } from '../messages'; +export { OAuthFlow as OAuthFlowV3 } from './oauth-flow'; +export { OAuthFlows as OAuthFlowsV3 } from './oauth-flows'; +export { OperationTrait as OperationTraitV3 } from './operation-trait'; +export { OperationTraits as OperationTraitsV3 } from '../operation-traits'; +export { Operation as OperationV3 } from './operation'; +export { Operations as OperationsV3 } from '../operations'; +export { Schema as SchemaV3 } from './schema'; +export { Schemas as SchemasV3 } from '../schemas'; +export { SecurityScheme as SecuritySchemeV3 } from './security-scheme'; +export { SecuritySchemes as SecuritySchemesV3 } from '../security-schemes'; +export { ServerVariable as ServerVariableV3 } from './server-variable'; +export { ServerVariables as ServerVariablesV3 } from '../server-variables'; +export { Server as ServerV3 } from './server'; +export { Servers as ServersV3 } from '../servers'; +export { Tag as TagV3 } from './tag'; +export { Tags as TagsV3 } from '../tags'; diff --git a/src/models/v3/message-example.ts b/src/models/v3/message-example.ts new file mode 100644 index 000000000..591664cef --- /dev/null +++ b/src/models/v3/message-example.ts @@ -0,0 +1,46 @@ +import { BaseModel } from '../base'; + +import { extensions } from './mixins'; + +import type { ExtensionsInterface } from '../extensions'; +import type { MessageExampleInterface } from '../message-example'; + +import type { v3 } from '../../spec-types'; + +export class MessageExample extends BaseModel implements MessageExampleInterface { + hasName(): boolean { + return !!this._json.name; + } + + name(): string | undefined { + return this._json.name; + } + + hasSummary(): boolean { + return !!this._json.summary; + } + + summary(): string | undefined { + return this._json.summary; + } + + hasHeaders(): boolean { + return !!this._json.headers; + } + + headers(): Record | undefined { + return this._json.headers; + } + + hasPayload(): boolean { + return !!this._json.payload; + } + + payload(): Record | undefined { + return this._json.payload; + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} diff --git a/src/models/v3/message-trait.ts b/src/models/v3/message-trait.ts new file mode 100644 index 000000000..eee94be89 --- /dev/null +++ b/src/models/v3/message-trait.ts @@ -0,0 +1,124 @@ +import { BaseModel } from '../base'; +import { CorrelationId } from './correlation-id'; +import { MessageExamples } from '../message-examples'; +import { MessageExample } from './message-example'; +import { Schema } from './schema'; + +import { xParserMessageName } from '../../constants'; +import { getDefaultSchemaFormat } from '../../schema-parser'; +import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from './mixins'; + +import type { BindingsInterface } from '../bindings'; +import type { CorrelationIdInterface } from '../correlation-id'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { MessageExamplesInterface } from '../message-examples'; +import type { MessageTraitInterface } from '../message-trait'; +import type { SchemaInterface } from '../schema'; +import type { TagsInterface } from '../tags'; + +import type { v3 } from '../../spec-types'; + +export class MessageTrait extends BaseModel implements MessageTraitInterface { + id(): string { + return this.messageId() || this._meta.id || this.extensions().get(xParserMessageName)?.value() as string; + } + + schemaFormat(): string { + return this._json.schemaFormat || getDefaultSchemaFormat(this._meta.asyncapi.semver.version); + } + + hasMessageId(): boolean { + return !!this._json.messageId; + } + + messageId(): string | undefined { + return this._json.messageId; + } + + hasCorrelationId(): boolean { + return !!this._json.correlationId; + } + + correlationId(): CorrelationIdInterface | undefined { + if (!this._json.correlationId) return undefined; + return this.createModel(CorrelationId, this._json.correlationId as v3.CorrelationIDObject, { pointer: `${this._meta.pointer}/correlationId` }); + } + + hasContentType(): boolean { + return !!this._json.contentType; + } + + contentType(): string | undefined { + return this._json.contentType || this._meta.asyncapi?.parsed.defaultContentType; + } + + hasHeaders(): boolean { + return !!this._json.headers; + } + + headers(): SchemaInterface | undefined { + if (!this._json.headers) return undefined; + return this.createModel(Schema, this._json.headers, { pointer: `${this._meta.pointer}/headers` }); + } + + hasName(): boolean { + return !!this._json.name; + } + + name(): string | undefined { + return this._json.name; + } + + hasTitle(): boolean { + return !!this._json.title; + } + + title(): string | undefined { + return this._json.title; + } + + hasSummary(): boolean { + return !!this._json.summary; + } + + summary(): string | undefined { + return this._json.summary; + } + + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + + hasExternalDocs(): boolean { + return hasExternalDocs(this); + } + + externalDocs(): ExternalDocumentationInterface | undefined { + return externalDocs(this); + } + + examples(): MessageExamplesInterface { + return new MessageExamples( + (this._json.examples || []).map((example: any, index: number) => { + return this.createModel(MessageExample, example, { pointer: `${this._meta.pointer}/examples/${index}` }); + }) + ); + } + + tags(): TagsInterface { + return tags(this); + } + + bindings(): BindingsInterface { + return bindings(this); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} diff --git a/src/models/v3/message.ts b/src/models/v3/message.ts new file mode 100644 index 000000000..7e859f7db --- /dev/null +++ b/src/models/v3/message.ts @@ -0,0 +1,84 @@ +import { Channels } from '../channels'; +import { Channel } from './channel'; +import { Operations } from '../operations'; +import { MessageTraits } from '../message-traits'; +import { MessageTrait } from './message-trait'; +import { Servers } from '../servers'; +import { Schema } from './schema'; + +import type { ChannelsInterface } from '../channels'; +import type { ChannelInterface } from '../channel'; +import type { MessageInterface } from '../message'; +import type { MessageTraitsInterface } from '../message-traits'; +import type { OperationsInterface } from '../operations'; +import type { OperationInterface } from '../operation'; +import type { ServersInterface } from '../servers'; +import type { ServerInterface } from '../server'; +import type { SchemaInterface } from '../schema'; + +import type { v3 } from '../../spec-types'; + +export class Message extends MessageTrait implements MessageInterface { + hasPayload(): boolean { + return !!this._json.payload; + } + + payload(): SchemaInterface | undefined { + if (!this._json.payload) return undefined; + return this.createModel(Schema, this._json.payload, { pointer: `${this._meta.pointer}/payload` }); + } + + servers(): ServersInterface { + const servers: ServerInterface[] = []; + const serversData: any[] = []; + this.channels().forEach(channel => { + channel.servers().forEach(server => { + if (!serversData.includes(server.json())) { + serversData.push(server.json()); + servers.push(server); + } + }); + }); + return new Servers(servers); + } + + channels(): ChannelsInterface { + const channels: ChannelInterface[] = []; + Object.entries((this._meta.asyncapi?.parsed?.channels || {}) as v3.ChannelsObject).forEach(([channelName, channel]) => { + const hasMessage = Object.entries(channel.messages || {}).some(([, message]) => message === this._json); + if (hasMessage) { + channels.push( + this.createModel(Channel, channel, { id: channelName, pointer: `/channels/${channelName}` }), + ); + } + }); + Object.entries((this._meta.asyncapi?.parsed as v3.AsyncAPIObject)?.operations || {}).forEach(([operationId, operation]) => { + const operationChannel = operation.channel as v3.ChannelObject | undefined; + if (!channels.some(channel => channel.json() === operationChannel)) { + const hasMessage = Object.entries(operationChannel?.messages || {}).some(([, message]) => message === this._json); + if (hasMessage) { + channels.push( + this.createModel(Channel, operationChannel as v3.ChannelObject, { id: '', pointer: `/operations/${operationId}/channel` }), + ); + } + } + }); + return new Channels(channels); + } + + operations(): OperationsInterface { + const operations: OperationInterface[] = []; + this.channels().forEach(channel => { + operations.push(...channel.operations()); + }); + return new Operations(operations); + } + + traits(): MessageTraitsInterface { + return new MessageTraits( + (this._json.traits || []).map((trait: any, index: number) => { + return this.createModel(MessageTrait, trait, { id: '', pointer: `${this._meta.pointer}/traits/${index}` }); + }) + ); + } +} diff --git a/src/models/v3/mixins.ts b/src/models/v3/mixins.ts index 405d1cd6b..605cafed2 100644 --- a/src/models/v3/mixins.ts +++ b/src/models/v3/mixins.ts @@ -1,9 +1,9 @@ import { Bindings } from './bindings'; import { Binding } from './binding'; -import { Extensions } from './extensions'; +import { Extensions } from '../extensions'; import { Extension } from './extension'; import { ExternalDocumentation } from './external-docs'; -import { Tags } from './tags'; +import { Tags } from '../tags'; import { Tag } from './tag'; import { createModel } from '../utils'; diff --git a/src/models/v3/oauth-flow.ts b/src/models/v3/oauth-flow.ts new file mode 100644 index 000000000..464d3dd7d --- /dev/null +++ b/src/models/v3/oauth-flow.ts @@ -0,0 +1,34 @@ +import { BaseModel } from '../base'; + +import { extensions } from './mixins'; + +import type { ExtensionsInterface } from '../extensions'; +import type { OAuthFlowInterface } from '../oauth-flow'; + +import type { v2 } from '../../spec-types'; + +export class OAuthFlow extends BaseModel implements OAuthFlowInterface { + authorizationUrl(): string | undefined { + return this.json().authorizationUrl; + } + + hasRefreshUrl(): boolean { + return !!this._json.refreshUrl; + } + + refreshUrl(): string | undefined { + return this._json.refreshUrl; + } + + scopes(): Record | undefined { + return this._json.scopes; + } + + tokenUrl(): string | undefined { + return this.json>().tokenUrl; + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} \ No newline at end of file diff --git a/src/models/v3/oauth-flows.ts b/src/models/v3/oauth-flows.ts new file mode 100644 index 000000000..39ff0de3a --- /dev/null +++ b/src/models/v3/oauth-flows.ts @@ -0,0 +1,52 @@ +import { BaseModel } from '../base'; +import { OAuthFlow } from './oauth-flow'; + +import { extensions } from './mixins'; + +import type { ExtensionsInterface } from '../extensions'; +import type { OAuthFlowsInterface } from '../oauth-flows'; +import type { OAuthFlowInterface } from '../oauth-flow'; + +import type { v3 } from '../../spec-types'; + +export class OAuthFlows extends BaseModel implements OAuthFlowsInterface { + hasAuthorizationCode(): boolean { + return !!this._json.authorizationCode; + } + + authorizationCode(): OAuthFlowInterface | undefined { + if (!this._json.authorizationCode) return undefined; + return new OAuthFlow(this._json.authorizationCode); + } + + hasClientCredentials(): boolean { + return !!this._json.clientCredentials; + } + + clientCredentials(): OAuthFlowInterface | undefined { + if (!this._json.clientCredentials) return undefined; + return new OAuthFlow(this._json.clientCredentials); + } + + hasImplicit(): boolean { + return !!this._json.implicit; + } + + implicit(): OAuthFlowInterface | undefined { + if (!this._json.implicit) return undefined; + return new OAuthFlow(this._json.implicit); + } + + hasPassword(): boolean { + return !!this._json.password; + } + + password(): OAuthFlowInterface | undefined { + if (!this._json.password) return undefined; + return new OAuthFlow(this._json.password); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} \ No newline at end of file diff --git a/src/models/v3/operation-trait.ts b/src/models/v3/operation-trait.ts new file mode 100644 index 000000000..a985182ad --- /dev/null +++ b/src/models/v3/operation-trait.ts @@ -0,0 +1,100 @@ +import { BaseModel } from '../base'; +// import { Channels } from '../channels'; +// import { Channel } from './channel'; +import { SecurityScheme } from './security-scheme'; +import { SecurityRequirements } from '../security-requirements'; +import { SecurityRequirement } from './security-requirement'; + +import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from './mixins'; + +import type { BindingsInterface } from '../bindings'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { ChannelsInterface } from '../channels'; +import type { OperationAction } from '../operation'; +import type { OperationTraitInterface } from '../operation-trait'; +import type { TagsInterface } from '../tags'; + +import type { v3 } from '../../spec-types'; + +export class OperationTrait extends BaseModel implements OperationTraitInterface { + id(): string | undefined { + return this._meta.id; + } + + hasId(): boolean { + return this.id() !== undefined; + } + + action(): OperationAction | undefined { + return this._json.action; + } + + hasSummary(): boolean { + return !!this._json.summary; + } + + summary(): string | undefined { + return this._json.summary; + } + + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + + hasExternalDocs(): boolean { + return hasExternalDocs(this); + } + + externalDocs(): ExternalDocumentationInterface | undefined { + return externalDocs(this); + } + + isSend(): boolean { + return this.action() === 'send'; + } + + isReceive(): boolean { + return this.action() === 'receive'; + } + + channels(): ChannelsInterface { + // if (this._json.channel) { + // return new Channels([ + // this.createModel(Channel, this._json.channel as v3.ChannelObject, { id: '', pointer: this.jsonPath('channel') }) + // ]); + // } + // return new Channels([]); + return [] as any; + } + + security(): SecurityRequirements[] { + const securitySchemes = (this._meta?.asyncapi?.parsed?.components?.securitySchemes || {}) as Record; + return (this._json.security || []).map((requirement, index) => { + const requirements: SecurityRequirement[] = []; + Object.entries(requirement).forEach(([security, scopes]) => { + const scheme = this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }); + requirements.push( + this.createModel(SecurityRequirement, { scheme, scopes }, { id: security, pointer: `${this.meta().pointer}/security/${index}/${security}` }) + ); + }); + return new SecurityRequirements(requirements); + }); + } + + tags(): TagsInterface { + return tags(this); + } + + bindings(): BindingsInterface { + return bindings(this); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} diff --git a/src/models/v3/operation.ts b/src/models/v3/operation.ts new file mode 100644 index 000000000..7d6568517 --- /dev/null +++ b/src/models/v3/operation.ts @@ -0,0 +1,61 @@ +import { Messages } from '../messages'; +import { Channels } from '../channels'; +import { Channel } from './channel'; +import { OperationTraits } from '../operation-traits'; +import { OperationTrait } from './operation-trait'; +import { Servers } from '../servers'; + +import type { ChannelsInterface } from '../channels'; +import type { MessagesInterface } from '../messages'; +import type { MessageInterface } from '../message'; +import type { OperationInterface, OperationAction } from '../operation'; +import type { OperationTraitsInterface } from '../operation-traits'; +import type { ServersInterface } from '../servers'; +import type { ServerInterface } from '../server'; + +import type { v3 } from '../../spec-types'; + +export class Operation extends OperationTrait implements OperationInterface { + action(): OperationAction { + return this._json.action; + } + + servers(): ServersInterface { + const servers: ServerInterface[] = []; + const serversData: any[] = []; + this.channels().forEach(channel => { + channel.servers().forEach(server => { + if (!serversData.includes(server.json())) { + serversData.push(server.json()); + servers.push(server); + } + }); + }); + return new Servers(servers); + } + + channels(): ChannelsInterface { + if (this._json.channel) { + return new Channels([ + this.createModel(Channel, this._json.channel as v3.ChannelObject, { id: '', pointer: this.jsonPath('channel') }) + ]); + } + return new Channels([]); + } + + messages(): MessagesInterface { + const messages: MessageInterface[] = []; + this.channels().forEach(channel => { + messages.push(...channel.messages()); + }); + return new Messages(messages); + } + + traits(): OperationTraitsInterface { + return new OperationTraits( + (this._json.traits || []).map((trait: any, index: number) => { + return this.createModel(OperationTrait, trait, { id: '', pointer: `${this._meta.pointer}/traits/${index}` }); + }) + ); + } +} diff --git a/src/models/v3/schema.ts b/src/models/v3/schema.ts new file mode 100644 index 000000000..889f254d7 --- /dev/null +++ b/src/models/v3/schema.ts @@ -0,0 +1,315 @@ +import { BaseModel } from '../base'; + +import { xParserSchemaId } from '../../constants'; +import { extensions, hasExternalDocs, externalDocs } from './mixins'; +import { retrievePossibleRef, hasRef } from '../../utils'; + +import type { ModelMetadata } from '../base'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { SchemaInterface } from '../schema'; + +import type { v3 } from '../../spec-types'; + +export class Schema extends BaseModel implements SchemaInterface { + constructor( + _json: v3.AsyncAPISchemaObject, + _meta: ModelMetadata & { id?: string, parent?: Schema } = {} as any, + ) { + _json = retrievePossibleRef(_json, _meta.pointer as string, _meta.asyncapi?.parsed); + super(_json, _meta); + } + + id(): string { + return this.$id() || this._meta.id || this.json(xParserSchemaId as any) as string; + } + + $comment(): string | undefined { + if (typeof this._json === 'boolean') return; + return this._json.$comment; + } + + $id(): string | undefined { + if (typeof this._json === 'boolean') return; + return this._json.$id; + } + + $schema(): string { + if (typeof this._json === 'boolean') return 'http://json-schema.org/draft-07/schema#'; + return this._json.$schema || 'http://json-schema.org/draft-07/schema#'; + } + + additionalItems(): boolean | SchemaInterface { + if (typeof this._json === 'boolean') return this._json; + if (this._json.additionalItems === undefined) return true; + if (typeof this._json.additionalItems === 'boolean') return this._json.additionalItems; + return this.createModel(Schema, this._json.additionalItems, { pointer: `${this._meta.pointer}/additionalItems`, parent: this }); + } + + additionalProperties(): boolean | SchemaInterface { + if (typeof this._json === 'boolean') return this._json; + if (this._json.additionalProperties === undefined) return true; + if (typeof this._json.additionalProperties === 'boolean') return this._json.additionalProperties; + return this.createModel(Schema, this._json.additionalProperties, { pointer: `${this._meta.pointer}/additionalProperties`, parent: this }); + } + + allOf(): Array | undefined { + if (typeof this._json === 'boolean') return; + if (!Array.isArray(this._json.allOf)) return undefined; + return this._json.allOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/allOf/${index}`, parent: this })); + } + + anyOf(): Array | undefined { + if (typeof this._json === 'boolean') return; + if (!Array.isArray(this._json.anyOf)) return undefined; + return this._json.anyOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/anyOf/${index}`, parent: this })); + } + + const(): any { + if (typeof this._json === 'boolean') return; + return this._json.const; + } + + contains(): SchemaInterface | undefined { + if (typeof this._json === 'boolean' || typeof this._json.contains !== 'object') return; + return this.createModel(Schema, this._json.contains, { pointer: `${this._meta.pointer}/contains`, parent: this }); + } + + contentEncoding(): string | undefined { + if (typeof this._json === 'boolean') return; + return this._json.contentEncoding; + } + + contentMediaType(): string | undefined { + if (typeof this._json === 'boolean') return; + return this._json.contentMediaType; + } + + default(): any { + if (typeof this._json === 'boolean') return; + return this._json.default; + } + + definitions(): Record | undefined { + if (typeof this._json === 'boolean' || typeof this._json.definitions !== 'object') return; + return Object.entries(this._json.definitions).reduce((acc: Record, [key, s]: [string, any]) => { + acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/definitions/${key}`, parent: this }); + return acc; + }, {}); + } + + description(): string | undefined { + if (typeof this._json === 'boolean') return; + return this._json.description; + } + + dependencies(): Record> | undefined { + if (typeof this._json === 'boolean') return; + if (typeof this._json.dependencies !== 'object') return undefined; + return Object.entries(this._json.dependencies).reduce((acc: Record>, [key, s]: [string, any]) => { + acc[key] = Array.isArray(s) ? s : this.createModel(Schema, s, { pointer: `${this._meta.pointer}/dependencies/${key}`, parent: this }); + return acc; + }, {}); + } + + deprecated(): boolean { + if (typeof this._json === 'boolean') return false; + return this._json.deprecated || false; + } + + discriminator(): string | undefined { + if (typeof this._json === 'boolean') return; + return this._json.discriminator; + } + + else(): SchemaInterface | undefined { + if (typeof this._json === 'boolean' || typeof this._json.else !== 'object') return; + return this.createModel(Schema, this._json.else, { pointer: `${this._meta.pointer}/else`, parent: this }); + } + + enum(): Array | undefined { + if (typeof this._json === 'boolean') return; + return this._json.enum; + } + + examples(): Array | undefined { + if (typeof this._json === 'boolean') return; + return this._json.examples; + } + + exclusiveMaximum(): number | undefined { + if (typeof this._json === 'boolean') return; + return this._json.exclusiveMaximum; + } + + exclusiveMinimum(): number | undefined { + if (typeof this._json === 'boolean') return; + return this._json.exclusiveMinimum; + } + + format(): string | undefined { + if (typeof this._json === 'boolean') return; + return this._json.format; + } + + isBooleanSchema(): boolean { + return typeof this._json === 'boolean'; + } + + if(): SchemaInterface | undefined { + if (typeof this._json === 'boolean' || typeof this._json.if !== 'object') return; + return this.createModel(Schema, this._json.if, { pointer: `${this._meta.pointer}/if`, parent: this }); + } + + isCircular(): boolean { + if (hasRef(this._json)) return true; + let parent = this._meta.parent; + while (parent) { + if (parent._json === this._json) return true; + parent = parent._meta.parent; + } + return false; + } + + items(): SchemaInterface | Array | undefined { + if (typeof this._json === 'boolean' || typeof this._json.items !== 'object') return; + if (Array.isArray(this._json.items)) { + return this._json.items.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/items/${index}`, parent: this })); + } + return this.createModel(Schema, this._json.items, { pointer: `${this._meta.pointer}/items`, parent: this }); + } + + maximum(): number | undefined { + if (typeof this._json === 'boolean') return; + return this._json.maximum; + } + + maxItems(): number | undefined { + if (typeof this._json === 'boolean') return; + return this._json.maxItems; + } + + maxLength(): number | undefined { + if (typeof this._json === 'boolean') return; + return this._json.maxLength; + } + + maxProperties(): number | undefined { + if (typeof this._json === 'boolean') return; + return this._json.maxProperties; + } + + minimum(): number | undefined { + if (typeof this._json === 'boolean') return; + return this._json.minimum; + } + + minItems(): number | undefined { + if (typeof this._json === 'boolean') return; + return this._json.minItems; + } + + minLength(): number | undefined { + if (typeof this._json === 'boolean') return; + return this._json.minLength; + } + + minProperties(): number | undefined { + if (typeof this._json === 'boolean') return; + return this._json.minProperties; + } + + multipleOf(): number | undefined { + if (typeof this._json === 'boolean') return; + return this._json.multipleOf; + } + + not(): SchemaInterface | undefined { + if (typeof this._json === 'boolean' || typeof this._json.not !== 'object') return; + return this.createModel(Schema, this._json.not, { pointer: `${this._meta.pointer}/not`, parent: this }); + } + + oneOf(): Array | undefined { + if (typeof this._json === 'boolean') return; + if (!Array.isArray(this._json.oneOf)) return undefined; + return this._json.oneOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/oneOf/${index}`, parent: this })); + } + + pattern(): string | undefined { + if (typeof this._json === 'boolean') return; + return this._json.pattern; + } + + patternProperties(): Record | undefined { + if (typeof this._json === 'boolean' || typeof this._json.patternProperties !== 'object') return; + return Object.entries(this._json.patternProperties).reduce((acc: Record, [key, s]: [string, any]) => { + acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/patternProperties/${key}`, parent: this }); + return acc; + }, {}); + } + + properties(): Record | undefined { + if (typeof this._json === 'boolean' || typeof this._json.properties !== 'object') return; + return Object.entries(this._json.properties).reduce((acc: Record, [key, s]: [string, any]) => { + acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/properties/${key}`, parent: this }); + return acc; + }, {}); + } + + property(name: string): SchemaInterface | undefined { + if (typeof this._json === 'boolean' || typeof this._json.properties !== 'object' || typeof this._json.properties[name] !== 'object') return; + return this.createModel(Schema, this._json.properties[name], { pointer: `${this._meta.pointer}/properties/${name}`, parent: this }); + } + + propertyNames(): SchemaInterface | undefined { + if (typeof this._json === 'boolean' || typeof this._json.propertyNames !== 'object') return; + return this.createModel(Schema, this._json.propertyNames, { pointer: `${this._meta.pointer}/propertyNames`, parent: this }); + } + + readOnly(): boolean | undefined { + if (typeof this._json === 'boolean') return false; + return this._json.readOnly || false; + } + + required(): Array | undefined { + if (typeof this._json === 'boolean') return; + return this._json.required; + } + + then(): SchemaInterface | undefined { + if (typeof this._json === 'boolean' || typeof this._json.then !== 'object') return; + return this.createModel(Schema, this._json.then, { pointer: `${this._meta.pointer}/then`, parent: this }); + } + + title(): string | undefined { + if (typeof this._json === 'boolean') return; + return this._json.title; + } + + type(): string | Array | undefined { + if (typeof this._json === 'boolean') return; + return this._json.type; + } + + uniqueItems(): boolean | undefined { + if (typeof this._json === 'boolean') return false; + return this._json.uniqueItems || false; + } + + writeOnly(): boolean | undefined { + if (typeof this._json === 'boolean') return false; + return this._json.writeOnly || false; + } + + hasExternalDocs(): boolean { + return hasExternalDocs(this as BaseModel); + } + + externalDocs(): ExternalDocumentationInterface | undefined { + return externalDocs(this as BaseModel); + } + + extensions(): ExtensionsInterface { + return extensions(this as BaseModel); + } +} diff --git a/src/models/v3/security-requirement.ts b/src/models/v3/security-requirement.ts new file mode 100644 index 000000000..fdab68df1 --- /dev/null +++ b/src/models/v3/security-requirement.ts @@ -0,0 +1,14 @@ +import { BaseModel } from '../base'; + +import type { SecuritySchemeInterface } from '../security-scheme'; +import type { SecurityRequirementInterface } from '../security-requirement'; + +export class SecurityRequirement extends BaseModel<{ scopes?: string[], scheme: SecuritySchemeInterface }, { id?: string }> implements SecurityRequirementInterface { + scheme(): SecuritySchemeInterface { + return this._json.scheme; + } + + scopes(): string[] { + return this._json.scopes || []; + } +} \ No newline at end of file diff --git a/src/models/v3/security-scheme.ts b/src/models/v3/security-scheme.ts new file mode 100644 index 000000000..09040e9bf --- /dev/null +++ b/src/models/v3/security-scheme.ts @@ -0,0 +1,57 @@ +import { BaseModel } from '../base'; +import { OAuthFlows } from './oauth-flows'; + +import { hasDescription, description, extensions } from './mixins'; + +import type { ExtensionsInterface } from '../extensions'; +import type { SecuritySchemeInterface } from '../security-scheme'; +import type { OAuthFlowsInterface } from '../oauth-flows'; + +import type { v3 } from '../../spec-types'; + +export class SecurityScheme extends BaseModel implements SecuritySchemeInterface { + id(): string { + return this._meta.id; + } + + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + + hasBearerFormat(): boolean { + return !!this._json.bearerFormat; + } + + bearerFormat(): string | undefined { + return this._json.bearerFormat; + } + + openIdConnectUrl(): string | undefined { + return this._json.openIdConnectUrl; + } + + scheme(): string | undefined { + return this._json.scheme; + } + + flows(): OAuthFlowsInterface | undefined { + if (!this._json.flows) return undefined; + return new OAuthFlows(this._json.flows); + } + + type(): v3.SecuritySchemeType { + return this._json.type; + } + + in(): v3.SecuritySchemaLocation | undefined { + return this._json.in; + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} diff --git a/src/models/v3/server-variable.ts b/src/models/v3/server-variable.ts new file mode 100644 index 000000000..75c21715c --- /dev/null +++ b/src/models/v3/server-variable.ts @@ -0,0 +1,46 @@ +import { BaseModel } from '../base'; + +import { hasDescription, description, extensions } from './mixins'; + +import type { ExtensionsInterface } from '../extensions'; +import type { ServerVariableInterface } from '../server-variable'; + +import type { v3 } from '../../spec-types'; + +export class ServerVariable extends BaseModel implements ServerVariableInterface { + id(): string { + return this._meta.id; + } + + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + + hasDefaultValue(): boolean { + return !!this._json.default; + } + + defaultValue(): string | undefined { + return this._json.default; + } + + hasAllowedValues(): boolean { + return !!this._json.enum; + } + + allowedValues(): Array { + return this._json.enum || []; + } + + examples(): Array { + return this._json.examples || []; + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} diff --git a/src/models/v3/server.ts b/src/models/v3/server.ts new file mode 100644 index 000000000..0f5fb5c16 --- /dev/null +++ b/src/models/v3/server.ts @@ -0,0 +1,142 @@ +import { BaseModel } from '../base'; +import { Channels } from '../channels'; +import { Channel } from './channel'; +import { Messages } from '../messages'; +import { Operations } from '../operations'; +import { SecurityScheme } from './security-scheme'; +import { ServerVariables } from '../server-variables'; +import { ServerVariable } from './server-variable'; +import { SecurityRequirements } from '../security-requirements'; +import { SecurityRequirement } from './security-requirement'; + +import { bindings, hasDescription, description, extensions, tags } from './mixins'; +import { tilde } from '../../utils'; + +import type { ChannelsInterface } from '../channels'; +import type { ChannelInterface } from '../channel'; +import type { OperationsInterface } from '../operations'; +import type { OperationInterface } from '../operation'; +import type { MessagesInterface } from '../messages'; +import type { MessageInterface } from '../message'; +import type { ServerInterface } from '../server'; +import type { ServerVariablesInterface } from '../server-variables'; +import type { ExtensionsInterface } from '../extensions'; +import type { BindingsInterface } from '../bindings'; +import type { TagsInterface } from '../tags'; + +import type { v3 } from '../../spec-types'; + +export class Server extends BaseModel implements ServerInterface { + id(): string { + return this._meta.id; + } + + url(): string { + return this._json.url; + } + + protocol(): string { + return this._json.protocol; + } + + hasProtocolVersion(): boolean { + return !!this._json.protocolVersion; + } + + protocolVersion(): string | undefined { + return this._json.protocolVersion; + } + + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + + channels(): ChannelsInterface { + const channels: ChannelInterface[] = []; + Object.entries((this._meta.asyncapi?.parsed as v3.AsyncAPIObject)?.channels || {}).forEach(([channelName, channel]) => { + const allowedServers: v3.ServerObject[] = channel.servers || []; + if (allowedServers.length === 0 || allowedServers.includes(this._json)) { + channels.push(this.createModel(Channel, channel, { id: channelName, pointer: `/channels/${tilde(channelName)}` })); + } + }); + Object.entries((this._meta.asyncapi?.parsed as v3.AsyncAPIObject)?.operations || {}).forEach(([operationId, operation]) => { + const operationChannel = operation.channel as v3.ChannelObject | undefined; + if (!channels.some(channel => channel.json() === operationChannel)) { + const allowedServers: v3.ServerObject[] = (operationChannel as v3.ChannelObject).servers || []; + if (allowedServers.length === 0 || allowedServers.includes(this._json)) { + channels.push(this.createModel(Channel, operationChannel as v3.ChannelObject, { id: '', pointer: `/operations/${tilde(operationId)}/channel` })); + } + } + }); + return new Channels(channels); + } + + operations(): OperationsInterface { + const operations: OperationInterface[] = []; + const operationsData: v3.OperationObject[] = []; + this.channels().forEach(channel => { + channel.operations().forEach(operation => { + if (!operationsData.includes(operation.json())) { + operations.push(operation); + operationsData.push(operation.json()); + } + }); + }); + return new Operations(operations); + } + + messages(): MessagesInterface { + const messages: MessageInterface[] = []; + const messagedData: v3.MessageObject[] = []; + this.channels().forEach(channel => { + channel.messages().forEach(message => { + if (!messagedData.includes(message.json())) { + messages.push(message); + messagedData.push(message.json()); + } + }); + }); + return new Messages(messages); + } + + variables(): ServerVariablesInterface { + return new ServerVariables( + Object.entries(this._json.variables || {}).map(([serverVariableName, serverVariable]) => { + return this.createModel(ServerVariable, serverVariable, { + id: serverVariableName, + pointer: `${this._meta.pointer}/variables/${serverVariableName}` + }); + }) + ); + } + + security(): SecurityRequirements[] { + const securitySchemes = (this._meta?.asyncapi?.parsed?.components?.securitySchemes || {}) as Record; + return (this._json.security || []).map((requirement, index) => { + const requirements: SecurityRequirement[] = []; + Object.entries(requirement).forEach(([security, scopes]) => { + const scheme = this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }); + requirements.push( + this.createModel(SecurityRequirement, { scheme, scopes }, { id: security, pointer: `${this.meta().pointer}/security/${index}/${security}` }) + ); + }); + return new SecurityRequirements(requirements); + }); + } + + tags(): TagsInterface { + return tags(this); + } + + bindings(): BindingsInterface { + return bindings(this); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} diff --git a/src/models/v3/tags.ts b/src/models/v3/tags.ts deleted file mode 100644 index 6048620ff..000000000 --- a/src/models/v3/tags.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Collection } from '../collection'; - -import type { TagsInterface } from '../tags'; -import type { TagInterface } from '../tag'; - -export class Tags extends Collection implements TagsInterface { - override get(name: string): TagInterface | undefined { - return this.collections.find(tag => tag.name() === name); - } -} diff --git a/src/spec-types/v2.ts b/src/spec-types/v2.ts index 6551fc87e..6918ddca7 100644 --- a/src/spec-types/v2.ts +++ b/src/spec-types/v2.ts @@ -45,6 +45,7 @@ export interface ServerObject extends SpecificationExtensions { description?: string; variables?: Record; security?: Array; + tags?: TagsObject; bindings?: ServerBindingsObject | ReferenceObject; } diff --git a/src/spec-types/v3.ts b/src/spec-types/v3.ts index d9c114224..250046dd1 100644 --- a/src/spec-types/v3.ts +++ b/src/spec-types/v3.ts @@ -8,6 +8,182 @@ export interface AsyncAPIObject extends SpecificationExtensions { asyncapi: AsyncAPIVersion; id?: Identifier; defaultContentType?: DefaultContentType; + servers?: ServersObject; + channels?: ChannelsObject; + operations?: OperationsObject; + components?: ComponentsObject; +} + +export type ServersObject = Record; + +export interface ServerObject extends SpecificationExtensions { + url: string; + protocol: string; + protocolVersion?: string; + description?: string; + variables?: Record; + security?: Array; + tags?: TagsObject; + bindings?: ServerBindingsObject | ReferenceObject; +} + +export interface ServerVariableObject extends SpecificationExtensions { + enum?: Array; + default?: string; + description?: string; + examples?: Array; +} + +export interface ServerBindingsObject extends SpecificationExtensions { + http?: Binding; + ws?: Binding; + kafka?: Binding; + anypointmq?: Binding; + amqp?: Binding; + amqp1?: Binding; + mqtt?: Binding; + mqtt5?: Binding; + nats?: Binding; + jms?: Binding; + sns?: Binding; + sqs?: Binding; + stomp?: Binding; + redis?: Binding; + mercure?: Binding; + ibmmq?: Binding; +} + +export type ChannelsObject = Record; + +export interface ChannelObject extends SpecificationExtensions { + address?: string | null; + messages?: MessagesObject; + description?: string; + servers?: Array; + parameters?: ParametersObject; + bindings?: ChannelBindingsObject | ReferenceObject; + tags?: TagsObject; + externalDocs?: ExternalDocumentationObject; +} + +export interface ChannelBindingsObject extends SpecificationExtensions { + http?: Binding; + ws?: Binding; + kafka?: Binding; + anypointmq?: Binding; + amqp?: Binding; + amqp1?: Binding; + mqtt?: Binding; + mqtt5?: Binding; + nats?: Binding; + jms?: Binding; + sns?: Binding; + sqs?: Binding; + stomp?: Binding; + redis?: Binding; + mercure?: Binding; + ibmmq?: Binding; +} + +export type OperationsObject = Record; + +export interface OperationObject extends SpecificationExtensions { + action: 'send' | 'receive'; + channel: ChannelObject | ReferenceObject; + summary?: string; + description?: string; + security?: Array; + tags?: TagsObject; + externalDocs?: ExternalDocumentationObject; + bindings?: OperationBindingsObject | ReferenceObject; + traits?: OperationTraitObject[]; +} + +export interface OperationTraitObject extends SpecificationExtensions { + action?: 'send' | 'receive'; + channel?: ChannelObject | ReferenceObject; + summary?: string; + description?: string; + security?: Array; + tags?: TagsObject; + externalDocs?: ExternalDocumentationObject; + bindings?: OperationBindingsObject | ReferenceObject; +} + +export interface OperationBindingsObject extends SpecificationExtensions { + http?: Binding; + ws?: Binding; + kafka?: Binding; + anypointmq?: Binding; + amqp?: Binding; + amqp1?: Binding; + mqtt?: Binding; + mqtt5?: Binding; + nats?: Binding; + jms?: Binding; + sns?: Binding; + sqs?: Binding; + stomp?: Binding; + redis?: Binding; + mercure?: Binding; + ibmmq?: Binding; +} + +export type MessagesObject = Record; + +export interface MessageObject extends MessageTraitObject, SpecificationExtensions { + payload?: any; + traits?: Array; +} + +export interface MessageTraitObject extends SpecificationExtensions { + messageId?: string; + headers?: SchemaObject; + correlationId?: CorrelationIDObject | ReferenceObject; + schemaFormat?: string; + contentType?: string; + name?: string; + title?: string; + summary?: string; + description?: string; + tags?: TagsObject; + externalDocs?: ExternalDocumentationObject; + bindings?: MessageBindingsObject | ReferenceObject; + examples?: Array; +} + +export interface MessageExampleObject extends SpecificationExtensions { + name?: string; + summary?: string; + headers?: Record; + payload?: any; +} + +export interface MessageBindingsObject extends SpecificationExtensions { + http?: Binding; + ws?: Binding; + kafka?: Binding; + anypointmq?: Binding; + amqp?: Binding; + amqp1?: Binding; + mqtt?: Binding; + mqtt5?: Binding; + nats?: Binding; + jms?: Binding; + sns?: Binding; + sqs?: Binding; + stomp?: Binding; + redis?: Binding; + mercure?: Binding; + ibmmq?: Binding; +} + +export type ParametersObject = Record; + +export interface ParameterObject extends SpecificationExtensions { + description?: string; + schema?: SchemaObject; + location?: string; } export type TagsObject = Array; @@ -23,6 +199,155 @@ export interface ExternalDocumentationObject extends SpecificationExtensions { description?: string; } +export interface ComponentsObject extends SpecificationExtensions { + channels?: Record; + servers?: Record; + schemas?: Record; + messages?: Record; + securitySchemes?: Record; + parameters?: Record; + serverVariables?: Record; + correlationIds?: Record; + operationTraits?: Record; + messageTraits?: Record; + serverBindings?: Record; + channelBindings?: Record; + operationBindings?: Record; + messageBindings?: Record; +} + +export interface SecuritySchemeObject extends SpecificationExtensions { + type: SecuritySchemeType; + description?: string; + name?: string; + in?: 'user' | 'password' | 'query' | 'header' | 'cookie'; + scheme?: string; + bearerFormat?: string; + flows?: OAuthFlowsObject; + openIdConnectUrl?: string; +} + +export type SecuritySchemeType = + | 'userPassword' + | 'apiKey' + | 'X509' + | 'symmetricEncryption' + | 'asymmetricEncryption' + | 'httpApiKey' + | 'http' + | 'oauth2' + | 'openIdConnect' + | 'plain' + | 'scramSha256' + | 'scramSha512' + | 'gssapi'; + +export type SecuritySchemaLocation = + | 'user' + | 'password' + | 'query' + | 'header' + | 'header' + | 'cookie'; + +export interface SecuritySchemeObjectBase extends SpecificationExtensions { + description?: string; +} + +export interface SecuritySchemeObjectUserPassword extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'userPassword'; +} + +export interface SecuritySchemeObjectApiKey extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'apiKey'; + in: 'user' | 'password'; +} + +export interface SecuritySchemeObjectX509 extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'X509'; +} + +export interface SecuritySchemeObjectSymetricEncryption extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'symmetricEncryption'; +} + +export interface SecuritySchemeObjectAsymetricEncryption extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'asymmetricEncryption'; +} + +export interface SecuritySchemeObjectHttpApiKey extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'httpApiKey'; + name: string; + in: 'query' | 'header' | 'cookie'; +} + +export interface SecuritySchemeObjectHttp extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'http'; + scheme: string; + bearerFormat?: string; +} + +export interface SecuritySchemeObjectOauth2 extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'oauth2'; + flows: OAuthFlowsObject; +} + +export interface SecuritySchemeObjectOpenIdConnect extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'openIdConnect'; + openIdConnectUrl: string; +} + +export interface SecuritySchemeObjectPlain extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'plain'; +} + +export interface SecuritySchemeObjectScramSha256 extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'scramSha256'; +} + +export interface SecuritySchemeObjectScramSha512 extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'scramSha512'; +} + +export interface SecuritySchemeObjectGssapi extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'gssapi'; +} + +export interface OAuthFlowsObject extends SpecificationExtensions { + implicit?: OAuthFlowObjectImplicit; + password?: OAuthFlowObjectPassword; + clientCredentials?: OAuthFlowObjectClientCredentials; + authorizationCode?: OAuthFlowObjectAuthorizationCode; +} + +export type OAuthFlowObject = + & OAuthFlowObjectImplicit + & OAuthFlowObjectPassword + & OAuthFlowObjectClientCredentials + & OAuthFlowObjectAuthorizationCode; + +export interface OAuthFlowObjectBase extends SpecificationExtensions { + refreshUrl?: string; + scopes: Record; +} + +export interface OAuthFlowObjectImplicit extends OAuthFlowObjectBase, SpecificationExtensions { + authorizationUrl: string; +} + +export interface OAuthFlowObjectPassword extends OAuthFlowObjectBase, SpecificationExtensions { + tokenUrl: string; +} + +export interface OAuthFlowObjectClientCredentials extends OAuthFlowObjectBase, SpecificationExtensions { + tokenUrl: string; +} + +export interface OAuthFlowObjectAuthorizationCode extends OAuthFlowObjectBase, SpecificationExtensions { + authorizationUrl: string; + tokenUrl: string; +} + export type SchemaObject = AsyncAPISchemaObject | ReferenceObject; export type AsyncAPISchemaObject = AsyncAPISchemaDefinition | boolean; @@ -110,4 +435,11 @@ export type SpecificationExtension = T; export interface ReferenceObject { $ref: string; +} + +export type SecurityRequirementObject = Record>; + +export interface CorrelationIDObject extends SpecificationExtensions { + location: string; + description?: string; } \ No newline at end of file diff --git a/test/browser/sample-page.html b/test/browser/sample-page.html index b30811629..559f446df 100644 --- a/test/browser/sample-page.html +++ b/test/browser/sample-page.html @@ -1,6 +1,7 @@ + Simple browser app diff --git a/test/document.spec.ts b/test/document.spec.ts index a009db5e4..2507b42c5 100644 --- a/test/document.spec.ts +++ b/test/document.spec.ts @@ -1,5 +1,5 @@ import { xParserSpecParsed, xParserSpecStringified } from '../src/constants'; -import { BaseModel, AsyncAPIDocumentV2 } from '../src/models'; +import { BaseModel, AsyncAPIDocumentV2, AsyncAPIDocumentV3 } from '../src/models'; import { createAsyncAPIDocument, toAsyncAPIDocument, @@ -13,13 +13,21 @@ describe('utils', function() { class Model extends BaseModel {} describe('createAsyncAPIDocument()', function() { - it('should create a valid document from v2.0.0', function() { + it('should create a valid document from v2.x.x', function() { const doc = { asyncapi: '2.0.0' }; const detailed = createDetailedAsyncAPI(doc, doc as any); const d = createAsyncAPIDocument(detailed); expect(d.version()).toEqual(doc.asyncapi); expect(d).toBeInstanceOf(AsyncAPIDocumentV2); }); + + it('should create a valid document from v3.x.x', function() { + const doc = { asyncapi: '3.0.0' }; + const detailed = createDetailedAsyncAPI(doc, doc as any); + const d = createAsyncAPIDocument(detailed); + expect(d.version()).toEqual(doc.asyncapi); + expect(d).toBeInstanceOf(AsyncAPIDocumentV3); + }); it('should fail trying to create a document from a non supported spec version', function() { const doc = { asyncapi: '99.99.99' }; diff --git a/test/models/v2/asyncapi.spec.ts b/test/models/v2/asyncapi.spec.ts index 61f04e708..19e6f6bdf 100644 --- a/test/models/v2/asyncapi.spec.ts +++ b/test/models/v2/asyncapi.spec.ts @@ -1,11 +1,11 @@ import { AsyncAPIDocument } from '../../../src/models/v2/asyncapi'; -import { Channels } from '../../../src/models/v2/channels'; +import { Channels } from '../../../src/models/channels'; import { Components } from '../../../src/models/v2/components'; import { Info } from '../../../src/models/v2/info'; -import { Messages } from '../../../src/models/v2/messages'; -import { Operations } from '../../../src/models/v2/operations'; -import { SecuritySchemes } from '../../../src/models/v2/security-schemes'; -import { Servers } from '../../../src/models/v2/servers'; +import { Messages } from '../../../src/models/messages'; +import { Operations } from '../../../src/models/operations'; +import { SecuritySchemes } from '../../../src/models/security-schemes'; +import { Servers } from '../../../src/models/servers'; import { serializeInput, assertExtensions } from './utils'; diff --git a/test/models/v2/bindings.spec.ts b/test/models/v2/bindings.spec.ts index 4075508a6..9ce1a7741 100644 --- a/test/models/v2/bindings.spec.ts +++ b/test/models/v2/bindings.spec.ts @@ -1,6 +1,6 @@ import { Bindings } from '../../../src/models/v2/bindings'; import { Binding } from '../../../src/models/v2/binding'; -import { Extensions } from '../../../src/models/v2/extensions'; +import { Extensions } from '../../../src/models/extensions'; import { Extension } from '../../../src/models/v2/extension'; const binding = { diff --git a/test/models/v2/channel-parameters.spec.ts b/test/models/v2/channel-parameters.spec.ts index d4417e2b5..f600c8b7c 100644 --- a/test/models/v2/channel-parameters.spec.ts +++ b/test/models/v2/channel-parameters.spec.ts @@ -1,4 +1,4 @@ -import { ChannelParameters } from '../../../src/models/v2/channel-parameters'; +import { ChannelParameters } from '../../../src/models/channel-parameters'; import { ChannelParameter } from '../../../src/models/v2/channel-parameter'; const channelParameter = { diff --git a/test/models/v2/channel.spec.ts b/test/models/v2/channel.spec.ts index 279969a8d..2d3ea0258 100644 --- a/test/models/v2/channel.spec.ts +++ b/test/models/v2/channel.spec.ts @@ -1,11 +1,11 @@ import { Channel } from '../../../src/models/v2/channel'; -import { ChannelParameters } from '../../../src/models/v2/channel-parameters'; +import { ChannelParameters } from '../../../src/models/channel-parameters'; import { ChannelParameter } from '../../../src/models/v2/channel-parameter'; -import { Operations } from '../../../src/models/v2/operations'; +import { Operations } from '../../../src/models/operations'; import { Operation } from '../../../src/models/v2/operation'; -import { Messages } from '../../../src/models/v2/messages'; +import { Messages } from '../../../src/models/messages'; import { Message } from '../../../src/models/v2/message'; -import { Servers } from '../../../src/models/v2/servers'; +import { Servers } from '../../../src/models/servers'; import { Server } from '../../../src/models/v2/server'; import { serializeInput, assertBindings, assertDescription, assertExtensions } from './utils'; diff --git a/test/models/v2/channels.spec.ts b/test/models/v2/channels.spec.ts index 709355fa2..8fa46e1f5 100644 --- a/test/models/v2/channels.spec.ts +++ b/test/models/v2/channels.spec.ts @@ -1,4 +1,4 @@ -import { Channels } from '../../../src/models/v2/channels'; +import { Channels } from '../../../src/models/channels'; import { Channel } from '../../../src/models/v2/channel'; const channel = { diff --git a/test/models/v2/components.spec.ts b/test/models/v2/components.spec.ts index bc1a82b35..1fc09b4be 100644 --- a/test/models/v2/components.spec.ts +++ b/test/models/v2/components.spec.ts @@ -11,20 +11,20 @@ import { Server } from '../../../src/models/v2/server'; import { ServerVariable } from '../../../src/models/v2/server-variable'; import { SecurityScheme } from '../../../src/models/v2/security-scheme'; import { BaseModel, ModelMetadata } from '../../../src/models'; -import { Servers } from '../../../src/models/v2/servers'; -import { Channels } from '../../../src/models/v2/channels'; -import { Messages } from '../../../src/models/v2/messages'; +import { Servers } from '../../../src/models/servers'; +import { Channels } from '../../../src/models/channels'; +import { Messages } from '../../../src/models/messages'; import { Collection } from '../../../src/models/collection'; import { Constructor } from '../../../src/models/utils'; -import { Schemas } from '../../../src/models/v2/schemas'; -import { ChannelParameters } from '../../../src/models/v2/channel-parameters'; -import { ServerVariables } from '../../../src/models/v2/server-variables'; -import { OperationTraits } from '../../../src/models/v2/operation-traits'; -import { MessageTraits } from '../../../src/models/v2/message-traits'; -import { CorrelationIds } from '../../../src/models/v2/correlation-ids'; -import { SecuritySchemes } from '../../../src/models/v2/security-schemes'; +import { Schemas } from '../../../src/models/schemas'; +import { ChannelParameters } from '../../../src/models/channel-parameters'; +import { ServerVariables } from '../../../src/models/server-variables'; +import { OperationTraits } from '../../../src/models/operation-traits'; +import { MessageTraits } from '../../../src/models/message-traits'; +import { CorrelationIds } from '../../../src/models/correlation-ids'; +import { SecuritySchemes } from '../../../src/models/security-schemes'; import { Operation } from '../../../src/models/v2/operation'; -import { Operations } from '../../../src/models/v2/operations'; +import { Operations } from '../../../src/models/operations'; import { OperationAction } from '../../../src/models/operation'; import { serializeInput, assertExtensions } from './utils'; import type { v2 } from '../../../src/spec-types'; diff --git a/test/models/v2/info.spec.ts b/test/models/v2/info.spec.ts index 9c581b355..49c1d8c73 100644 --- a/test/models/v2/info.spec.ts +++ b/test/models/v2/info.spec.ts @@ -2,7 +2,7 @@ import { Info } from '../../../src/models/v2/info'; import { Contact } from '../../../src/models/v2/contact'; import { License } from '../../../src/models/v2/license'; import { ExternalDocumentation } from '../../../src/models/v2/external-docs'; -import { Tags } from '../../../src/models/v2/tags'; +import { Tags } from '../../../src/models/tags'; import { Tag } from '../../../src/models/v2/tag'; import { createDetailedAsyncAPI } from '../../../src/utils'; diff --git a/test/models/v2/message-examples.spec.ts b/test/models/v2/message-examples.spec.ts index 380d39e75..324b9dd71 100644 --- a/test/models/v2/message-examples.spec.ts +++ b/test/models/v2/message-examples.spec.ts @@ -1,4 +1,4 @@ -import { MessageExamples } from '../../../src/models/v2/message-examples'; +import { MessageExamples } from '../../../src/models/message-examples'; import { MessageExample } from '../../../src/models/v2/message-example'; const messageExample = { diff --git a/test/models/v2/message-trait.spec.ts b/test/models/v2/message-trait.spec.ts index e2b2bc0d6..e397b133c 100644 --- a/test/models/v2/message-trait.spec.ts +++ b/test/models/v2/message-trait.spec.ts @@ -1,5 +1,5 @@ import { CorrelationId } from '../../../src/models/v2/correlation-id'; -import { MessageExamples } from '../../../src/models/v2/message-examples'; +import { MessageExamples } from '../../../src/models/message-examples'; import { MessageExample } from '../../../src/models/v2/message-example'; import { MessageTrait } from '../../../src/models/v2/message-trait'; import { Schema } from '../../../src/models/v2/schema'; diff --git a/test/models/v2/message-traits.spec.ts b/test/models/v2/message-traits.spec.ts index 00f8539d6..7ab49a4d4 100644 --- a/test/models/v2/message-traits.spec.ts +++ b/test/models/v2/message-traits.spec.ts @@ -1,4 +1,4 @@ -import { MessageTraits } from '../../../src/models/v2/message-traits'; +import { MessageTraits } from '../../../src/models/message-traits'; import { MessageTrait } from '../../../src/models/v2/message-trait'; const messageTrait = { diff --git a/test/models/v2/message.spec.ts b/test/models/v2/message.spec.ts index 111031476..c1ca1885c 100644 --- a/test/models/v2/message.spec.ts +++ b/test/models/v2/message.spec.ts @@ -1,12 +1,12 @@ -import { Channels } from '../../../src/models/v2/channels'; +import { Channels } from '../../../src/models/channels'; import { Channel } from '../../../src/models/v2/channel'; import { Message } from '../../../src/models/v2/message'; -import { MessageTraits } from '../../../src/models/v2/message-traits'; +import { MessageTraits } from '../../../src/models/message-traits'; import { MessageTrait } from '../../../src/models/v2/message-trait'; -import { Operations } from '../../../src/models/v2/operations'; +import { Operations } from '../../../src/models/operations'; import { Operation } from '../../../src/models/v2/operation'; import { Schema } from '../../../src/models/v2/schema'; -import { Servers } from '../../../src/models/v2/servers'; +import { Servers } from '../../../src/models/servers'; import { Server } from '../../../src/models/v2/server'; import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; @@ -181,10 +181,10 @@ describe('Message model', function() { }); describe('mixins', function() { - assertBindings(MessageTrait); - assertDescription(MessageTrait); - assertExtensions(MessageTrait); - assertExternalDocumentation(MessageTrait); - assertTags(MessageTrait); + assertBindings(Message); + assertDescription(Message); + assertExtensions(Message); + assertExternalDocumentation(Message); + assertTags(Message); }); }); diff --git a/test/models/v2/messages.spec.ts b/test/models/v2/messages.spec.ts index 28df7a65f..9cb2d1842 100644 --- a/test/models/v2/messages.spec.ts +++ b/test/models/v2/messages.spec.ts @@ -1,4 +1,4 @@ -import { Messages } from '../../../src/models/v2/messages'; +import { Messages } from '../../../src/models/messages'; import { Message } from '../../../src/models/v2/message'; const messages = { diff --git a/test/models/v2/oauth-flow.spec.ts b/test/models/v2/oauth-flow.spec.ts index 113375d37..15ffc588c 100644 --- a/test/models/v2/oauth-flow.spec.ts +++ b/test/models/v2/oauth-flow.spec.ts @@ -1,5 +1,7 @@ import { OAuthFlow } from '../../../src/models/v2/oauth-flow'; +import { assertExtensions } from './utils'; + import type { v2 } from '../../../src/spec-types'; const flowObject = { @@ -30,4 +32,8 @@ describe('OAuth Flow', function() { expect(flow.scopes()!['write:pets']).toMatch(flowObject.scopes['write:pets']); }); }); + + describe('mixins', function() { + assertExtensions(OAuthFlow); + }); }); diff --git a/test/models/v2/oauth-flows.spec.ts b/test/models/v2/oauth-flows.spec.ts index b11b2ef81..f7e5b56d9 100644 --- a/test/models/v2/oauth-flows.spec.ts +++ b/test/models/v2/oauth-flows.spec.ts @@ -1,6 +1,8 @@ import { OAuthFlows } from '../../../src/models/v2/oauth-flows'; import { OAuthFlow } from '../../../src/models/v2/oauth-flow'; +import { assertExtensions } from './utils'; + const oAuthFlowsObject = { implicit: { authorizationUrl: 'https://example.com/api/oauth/dialog', @@ -33,4 +35,8 @@ describe('OAuth Flows', function() { expect(flows.implicit() instanceof OAuthFlow).toBeTruthy(); }); }); + + describe('mixins', function() { + assertExtensions(OAuthFlows); + }); }); \ No newline at end of file diff --git a/test/models/v2/operation-trait.spec.ts b/test/models/v2/operation-trait.spec.ts index 2c007ae4e..363bd0fb2 100644 --- a/test/models/v2/operation-trait.spec.ts +++ b/test/models/v2/operation-trait.spec.ts @@ -1,50 +1,72 @@ import { OperationTrait } from '../../../src/models/v2/operation-trait'; import { SecurityRequirement } from '../../../src/models/v2/security-requirement'; -import { SecurityRequirements } from '../../../src/models/v2/security-requirements'; +import { SecurityRequirements } from '../../../src/models/security-requirements'; import { SecurityScheme } from '../../../src/models/v2/security-scheme'; import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; describe('OperationTrait model', function() { describe('.id()', function() { - it('should return id of model', function() { - const doc = {}; - const d = new OperationTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'publish' }); - expect(d.id()).toEqual('trait'); - }); - - it('should reuse operationId', function() { + it('should return the value', function() { const doc = { operationId: '...' }; const d = new OperationTrait(doc); expect(d.id()).toEqual(doc.operationId); }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new OperationTrait(doc); + expect(d.id()).toBeUndefined(); + }); }); - describe('.hasOperationId()', function() { + describe('.hasId()', function() { it('should return true when there is a value', function() { const doc = { operationId: '...' }; const d = new OperationTrait(doc); - expect(d.hasOperationId()).toEqual(true); + expect(d.hasId()).toEqual(true); }); it('should return false when there is no value', function() { const doc = {}; const d = new OperationTrait(doc); - expect(d.hasOperationId()).toEqual(false); + expect(d.hasId()).toEqual(false); }); }); - describe('.operationId()', function() { - it('should return the value', function() { - const doc = { operationId: '...' }; - const d = new OperationTrait(doc); - expect(d.operationId()).toEqual(doc.operationId); + describe('.action()', function() { + it('should return kind/action of operation', function() { + const doc = {}; + const d = new OperationTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'publish' }); + expect(d.action()).toEqual('publish'); }); - - it('should return undefined when there is no value', function() { + }); + + describe('.isSend()', function() { + it('should return true when operation is subscribe', function() { const doc = {}; - const d = new OperationTrait(doc); - expect(d.operationId()).toBeUndefined(); + const d = new OperationTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'subscribe' }); + expect(d.isSend()).toBeTruthy(); + }); + + it('should return false when operation is publish', function() { + const doc = {}; + const d = new OperationTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'publish' }); + expect(d.isSend()).toBeFalsy(); + }); + }); + + describe('.isReceive()', function() { + it('should return true when operation is publish', function() { + const doc = {}; + const d = new OperationTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'publish' }); + expect(d.isReceive()).toBeTruthy(); + }); + + it('should return false when operation is subscribe', function() { + const doc = {}; + const d = new OperationTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'subscribe' }); + expect(d.isReceive()).toBeFalsy(); }); }); diff --git a/test/models/v2/operation-traits.spec.ts b/test/models/v2/operation-traits.spec.ts index bf0e701d8..ebad3add9 100644 --- a/test/models/v2/operation-traits.spec.ts +++ b/test/models/v2/operation-traits.spec.ts @@ -1,4 +1,4 @@ -import { OperationTraits } from '../../../src/models/v2/operation-traits'; +import { OperationTraits } from '../../../src/models/operation-traits'; import { OperationTrait } from '../../../src/models/v2/operation-trait'; const operationTrait = { diff --git a/test/models/v2/operation.spec.ts b/test/models/v2/operation.spec.ts index 28b6d24cf..abfdc0ede 100644 --- a/test/models/v2/operation.spec.ts +++ b/test/models/v2/operation.spec.ts @@ -1,24 +1,18 @@ -import { Channels } from '../../../src/models/v2/channels'; +import { Channels } from '../../../src/models/channels'; import { Channel } from '../../../src/models/v2/channel'; import { Operation } from '../../../src/models/v2/operation'; -import { OperationTraits } from '../../../src/models/v2/operation-traits'; +import { OperationTraits } from '../../../src/models/operation-traits'; import { OperationTrait } from '../../../src/models/v2/operation-trait'; -import { Messages } from '../../../src/models/v2/messages'; +import { Messages } from '../../../src/models/messages'; import { Message } from '../../../src/models/v2/message'; -import { Servers } from '../../../src/models/v2/servers'; +import { Servers } from '../../../src/models/servers'; import { Server } from '../../../src/models/v2/server'; import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; describe('Operation model', function() { describe('.id()', function() { - it('should return id of model', function() { - const doc = {}; - const d = new Operation(doc, { asyncapi: {} as any, pointer: '', id: 'operation', action: 'publish' }); - expect(d.id()).toEqual('operation'); - }); - - it('should reuse operationId', function() { + it('should return operationId', function() { const doc = { operationId: '...' }; const d = new Operation(doc); expect(d.id()).toEqual(doc.operationId); @@ -89,42 +83,6 @@ describe('Operation model', function() { }); }); - describe('.action()', function() { - it('should return kind/action of operation', function() { - const doc = {}; - const d = new OperationTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'publish' }); - expect(d.action()).toEqual('publish'); - }); - }); - - describe('.isSend()', function() { - it('should return true when operation is subscribe', function() { - const doc = {}; - const d = new OperationTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'subscribe' }); - expect(d.isSend()).toBeTruthy(); - }); - - it('should return false when operation is publish', function() { - const doc = {}; - const d = new OperationTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'publish' }); - expect(d.isSend()).toBeFalsy(); - }); - }); - - describe('.isReceive()', function() { - it('should return true when operation is publish', function() { - const doc = {}; - const d = new OperationTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'publish' }); - expect(d.isReceive()).toBeTruthy(); - }); - - it('should return false when operation is subscribe', function() { - const doc = {}; - const d = new OperationTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'subscribe' }); - expect(d.isReceive()).toBeFalsy(); - }); - }); - describe('.messages()', function() { it('should return collection of messages - single message', function() { const doc = { message: { messageId: '...' } }; diff --git a/test/models/v2/operations.spec.ts b/test/models/v2/operations.spec.ts index 00a8460a2..3d342bbaf 100644 --- a/test/models/v2/operations.spec.ts +++ b/test/models/v2/operations.spec.ts @@ -1,4 +1,4 @@ -import { Operations } from '../../../src/models/v2/operations'; +import { Operations } from '../../../src/models/operations'; import { Operation } from '../../../src/models/v2/operation'; const operation = { diff --git a/test/models/v2/schema.spec.ts b/test/models/v2/schema.spec.ts index e29abfa23..680bfd893 100644 --- a/test/models/v2/schema.spec.ts +++ b/test/models/v2/schema.spec.ts @@ -1,15 +1,28 @@ import { Schema } from '../../../src/models/v2/schema'; import { assertExtensions, assertExternalDocumentation } from './utils'; +import { xParserSchemaId } from '../../../src/constants'; import type { v2 } from '../../../src/spec-types'; -describe('Channel model', function() { +describe('Schema model', function() { describe('.id()', function() { - it('should return id of model', function() { - const doc = {}; - const d = new Schema(doc, { asyncapi: {} as any, pointer: '', id: 'schema' }); - expect(d.uid()).toEqual('schema'); + it('should return $id of schema', function() { + const doc = { $id: '$id', [xParserSchemaId]: xParserSchemaId }; + const d = new Schema(doc, { asyncapi: {} as any, pointer: '', id: 'id' }); + expect(d.id()).toEqual('$id'); + }); + + it('should return meta id of schema as fallback', function() { + const doc = { [xParserSchemaId]: xParserSchemaId }; + const d = new Schema(doc, { asyncapi: {} as any, pointer: '', id: 'id' }); + expect(d.id()).toEqual('id'); + }); + + it(`should return ${xParserSchemaId} of schema as fallback`, function() { + const doc = { [xParserSchemaId]: xParserSchemaId }; + const d = new Schema(doc, { asyncapi: {} as any, pointer: '' }); + expect(d.id()).toEqual(xParserSchemaId); }); }); diff --git a/test/models/v2/security-requirements.spec.ts b/test/models/v2/security-requirements.spec.ts index d684f981a..3cd270a27 100644 --- a/test/models/v2/security-requirements.spec.ts +++ b/test/models/v2/security-requirements.spec.ts @@ -1,4 +1,4 @@ -import { SecurityRequirements } from '../../../src/models/v2/security-requirements'; +import { SecurityRequirements } from '../../../src/models/security-requirements'; import { SecurityRequirement } from '../../../src/models/v2/security-requirement'; const requirementItem = new SecurityRequirement({} as any, { id: 'test' } as any); diff --git a/test/models/v2/server-variable.spec.ts b/test/models/v2/server-variable.spec.ts index f88659b7f..2f8888349 100644 --- a/test/models/v2/server-variable.spec.ts +++ b/test/models/v2/server-variable.spec.ts @@ -1,5 +1,7 @@ import { ServerVariable } from '../../../src/models/v2/server-variable'; +import { assertDescription, assertExtensions } from './utils'; + const doc = { description: 'Secure connection (TLS) is available through port 8883.', default: '1883', @@ -13,18 +15,6 @@ describe('Server Variable ', function() { expect(sv.id()).toMatch('doc'); }); - describe('.hasDefaultValue()', function() { - it('should return true if default value is passed', function() { - expect(sv.hasDefaultValue()).toBeTruthy(); - }); - }); - - describe('.defaultValue()', function() { - it('should return default value', function() { - expect(sv.defaultValue()).toMatch(doc.default); - }); - }); - describe('.hasAllowedValue()', function() { it('should return true when enum is passed', function() { expect(sv.hasAllowedValues()).toBeTruthy(); @@ -36,4 +26,9 @@ describe('Server Variable ', function() { expect(sv.allowedValues()).toEqual(doc.enum); }); }); + + describe('mixins', function() { + assertDescription(ServerVariable); + assertExtensions(ServerVariable); + }); }); diff --git a/test/models/v2/server.spec.ts b/test/models/v2/server.spec.ts index eff3789dc..0da5db926 100644 --- a/test/models/v2/server.spec.ts +++ b/test/models/v2/server.spec.ts @@ -1,18 +1,18 @@ -import { Channels } from '../../../src/models/v2/channels'; +import { Channels } from '../../../src/models/channels'; import { Channel } from '../../../src/models/v2/channel'; -import { Messages } from '../../../src/models/v2/messages'; +import { Messages } from '../../../src/models/messages'; import { Message } from '../../../src/models/v2/message'; -import { Operations } from '../../../src/models/v2/operations'; +import { Operations } from '../../../src/models/operations'; import { Operation } from '../../../src/models/v2/operation'; import { Server } from '../../../src/models/v2/server'; -import { ServerVariables } from '../../../src/models/v2/server-variables'; +import { ServerVariables } from '../../../src/models/server-variables'; import { SecurityScheme } from '../../../src/models/v2/security-scheme'; +import { SecurityRequirements } from '../../../src/models/security-requirements'; +import { SecurityRequirement } from '../../../src/models/v2/security-requirement'; import { serializeInput, assertBindings, assertDescription, assertExtensions } from './utils'; import type { v2 } from '../../../src/spec-types'; -import { SecurityRequirements } from '../../../src/models/v2/security-requirements'; -import { SecurityRequirement } from '../../../src/models/v2/security-requirement'; const doc = { development: { @@ -109,7 +109,7 @@ describe('Server Model', function () { expect(d.operations()).toBeInstanceOf(Operations); expect(d.operations().all()).toHaveLength(1); expect(d.operations().all()[0]).toBeInstanceOf(Operation); - expect(d.operations().all()[0].operationId()).toEqual('1'); + expect(d.operations().all()[0].id()).toEqual('1'); }); it('should return collection of channels - multiple channels', function() { @@ -118,9 +118,9 @@ describe('Server Model', function () { expect(d.operations()).toBeInstanceOf(Operations); expect(d.operations().all()).toHaveLength(2); expect(d.operations().all()[0]).toBeInstanceOf(Operation); - expect(d.operations().all()[0].operationId()).toEqual('1'); + expect(d.operations().all()[0].id()).toEqual('1'); expect(d.operations().all()[1]).toBeInstanceOf(Operation); - expect(d.operations().all()[1].operationId()).toEqual('2'); + expect(d.operations().all()[1].id()).toEqual('2'); }); it('should return collection of channels - server available only in particular channel', function() { @@ -129,11 +129,11 @@ describe('Server Model', function () { expect(d.operations()).toBeInstanceOf(Operations); expect(d.operations().all()).toHaveLength(3); expect(d.operations().all()[0]).toBeInstanceOf(Operation); - expect(d.operations().all()[0].operationId()).toEqual('1'); + expect(d.operations().all()[0].id()).toEqual('1'); expect(d.operations().all()[1]).toBeInstanceOf(Operation); - expect(d.operations().all()[1].operationId()).toEqual('2'); + expect(d.operations().all()[1].id()).toEqual('2'); expect(d.operations().all()[2]).toBeInstanceOf(Operation); - expect(d.operations().all()[2].operationId()).toEqual('3'); + expect(d.operations().all()[2].id()).toEqual('3'); }); }); diff --git a/test/models/v2/servers.spec.ts b/test/models/v2/servers.spec.ts index 8d335d4cb..a4938a2b7 100644 --- a/test/models/v2/servers.spec.ts +++ b/test/models/v2/servers.spec.ts @@ -1,4 +1,4 @@ -import { Servers } from '../../../src/models/v2/servers'; +import { Servers } from '../../../src/models/servers'; import { Server } from '../../../src/models/v2/server'; const doc = { diff --git a/test/models/v2/tags.spec.ts b/test/models/v2/tags.spec.ts index ac8022995..d3c599b9b 100644 --- a/test/models/v2/tags.spec.ts +++ b/test/models/v2/tags.spec.ts @@ -1,4 +1,4 @@ -import { Tags } from '../../../src/models/v2/tags'; +import { Tags } from '../../../src/models/tags'; import { Tag } from '../../../src/models/v2/tag'; const tag = { diff --git a/test/models/v3/bindings.spec.ts b/test/models/v3/bindings.spec.ts new file mode 100644 index 000000000..39789d345 --- /dev/null +++ b/test/models/v3/bindings.spec.ts @@ -0,0 +1,64 @@ +import { Bindings } from '../../../src/models/v3/bindings'; +import { Binding } from '../../../src/models/v3/binding'; +import { Extensions } from '../../../src/models/extensions'; +import { Extension } from '../../../src/models/v3/extension'; + +const binding = { + http: {} +}; +const bindingItem = new Binding(binding, { asyncapi: {} as any, pointer: '', protocol: 'http' }); + +describe('Bindings model', function () { + describe('.isEmpty()', function () { + it('should return true if collection is empty', function () { + const bindings = new Bindings([]); + expect(bindings.isEmpty()).toEqual(true); + }); + + it('should return false if collection is not empty', function () { + const bindings = new Bindings([bindingItem]); + expect(bindings.isEmpty()).toEqual(false); + }); + }); + + describe('.get(id)', function () { + it('should return a specific Message Trait if it is present', function () { + const bindings = new Bindings([bindingItem]); + expect(bindings.get('http')).toBeTruthy(); + }); + + it('should return undefined if specific Message Trait is missing', function () { + const bindings = new Bindings([]); + expect(bindings.get('anotherProtocol')).toBeUndefined(); + }); + }); + + describe('.has(id)', function () { + it('should return true if the said id is available', function () { + const bindings = new Bindings([bindingItem]); + expect(bindings.has('http')).toEqual(true); + }); + + it('should return false if the Message Trait id is missing', function () { + const bindings = new Bindings([bindingItem]); + expect(bindings.has('anotherProtocol')).toEqual(false); + }); + }); + + describe('.extensions()', function () { + it('should return empty collection of extensions', function () { + const bindings = new Bindings([], {}); + expect(bindings.extensions()).toBeInstanceOf(Extensions); + expect(bindings.extensions().isEmpty()).toEqual(true); + }); + + it('should return collection of extensions', function () { + const bindings = new Bindings([], { asyncapi: {} as any, originalData: { 'x-someExtension': { someKey: 'someValue' } as any, 'x-anotherOne': { someKey: 123 } as any } }); + expect(bindings.extensions()).toBeInstanceOf(Extensions); + expect(bindings.extensions().get('x-someExtension')).toBeInstanceOf(Extension); + expect(bindings.extensions().get('x-someExtension')?.value()).toEqual({ someKey: 'someValue' }); + expect(bindings.extensions().get('x-anotherOne')).toBeInstanceOf(Extension); + expect(bindings.extensions().get('x-anotherOne')?.value()).toEqual({ someKey: 123 }); + }); + }); +}); diff --git a/test/models/v3/channel-parameter.spec.ts b/test/models/v3/channel-parameter.spec.ts new file mode 100644 index 000000000..66c6c76a1 --- /dev/null +++ b/test/models/v3/channel-parameter.spec.ts @@ -0,0 +1,77 @@ +import { ChannelParameter } from '../../../src/models/v3/channel-parameter'; +import { Schema } from '../../../src/models/v3/schema'; + +import { serializeInput, assertDescription, assertExtensions } from './utils'; + +import type { v3 } from '../../../src/spec-types'; + +describe('ChannelParameter model', function() { + describe('.id()', function() { + it('should return id of model', function() { + const doc = serializeInput({}); + const d = new ChannelParameter(doc, { asyncapi: {} as any, pointer: '', id: 'parameter' }); + expect(d.id()).toEqual('parameter'); + }); + }); + + describe('.hasLocation()', function() { + it('should return true when there is a value', function() { + const doc = serializeInput({ location: '...' }); + const d = new ChannelParameter(doc); + expect(d.hasLocation()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = serializeInput({}); + const d = new ChannelParameter(doc); + expect(d.hasLocation()).toEqual(false); + }); + }); + + describe('.location()', function() { + it('should return the value', function() { + const doc = serializeInput({ location: '...' }); + const d = new ChannelParameter(doc); + expect(d.location()).toEqual(doc.location); + }); + + it('should return undefined when there is no value', function() { + const doc = serializeInput({}); + const d = new ChannelParameter(doc); + expect(d.location()).toBeUndefined(); + }); + }); + + describe('.hasSchema()', function() { + it('should return true when there is a value', function() { + const doc = serializeInput({ schema: {} }); + const d = new ChannelParameter(doc); + expect(d.hasSchema()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = serializeInput({}); + const d = new ChannelParameter(doc); + expect(d.hasSchema()).toEqual(false); + }); + }); + + describe('.schema()', function() { + it('should return the value', function() { + const doc = serializeInput({ schema: {} }); + const d = new ChannelParameter(doc); + expect(d.schema()).toBeInstanceOf(Schema); + }); + + it('should return undefined when there is no value', function() { + const doc = serializeInput({}); + const d = new ChannelParameter(doc); + expect(d.schema()).toBeUndefined(); + }); + }); + + describe('mixins', function() { + assertDescription(ChannelParameter); + assertExtensions(ChannelParameter); + }); +}); diff --git a/test/models/v3/channel.spec.ts b/test/models/v3/channel.spec.ts new file mode 100644 index 000000000..71e0a5904 --- /dev/null +++ b/test/models/v3/channel.spec.ts @@ -0,0 +1,139 @@ +import { Channel } from '../../../src/models/v3/channel'; +import { ChannelParameters } from '../../../src/models/channel-parameters'; +import { ChannelParameter } from '../../../src/models/v3/channel-parameter'; +import { Operations } from '../../../src/models/operations'; +import { Operation } from '../../../src/models/v3/operation'; +import { Messages } from '../../../src/models/messages'; +import { Message } from '../../../src/models/v3/message'; +import { Servers } from '../../../src/models/servers'; +import { Server } from '../../../src/models/v3/server'; + +import { serializeInput, assertBindings, assertDescription, assertExtensions } from './utils'; + +import type { v3 } from '../../../src/spec-types'; + +describe('Channel model', function() { + describe('.id()', function() { + it('should return id of model', function() { + const doc = serializeInput({}); + const d = new Channel(doc, { asyncapi: {} as any, pointer: '', id: 'channel' }); + expect(d.id()).toEqual('channel'); + }); + }); + + describe('.address()', function() { + it('should return the value', function() { + const doc = serializeInput({ address: 'user/signup' }); + const d = new Channel(doc, { asyncapi: {} as any, pointer: '', id: 'channel' }); + expect(d.address()).toEqual('user/signup'); + }); + }); + + describe('.servers()', function() { + it('should return collection of servers - available on all servers', function() { + const doc = serializeInput({}); + const d = new Channel(doc, { asyncapi: { parsed: { servers: { someServer1: {}, someServer2: {}, } } } as any, pointer: '', id: 'channel' }); + expect(d.servers()).toBeInstanceOf(Servers); + expect(d.servers().all()).toHaveLength(2); + expect(d.servers().all()[0]).toBeInstanceOf(Server); + expect(d.servers().all()[0].id()).toEqual('someServer1'); + expect(d.servers().all()[1]).toBeInstanceOf(Server); + expect(d.servers().all()[1].id()).toEqual('someServer2'); + }); + + it('should return collection of servers - available on all servers (empty servers array)', function() { + const doc = serializeInput({ servers: [] }); + const d = new Channel(doc, { asyncapi: { parsed: { servers: { someServer1: {}, someServer2: {}, } } } as any, pointer: '', id: 'channel' }); + expect(d.servers()).toBeInstanceOf(Servers); + expect(d.servers().all()).toHaveLength(2); + expect(d.servers().all()[0]).toBeInstanceOf(Server); + expect(d.servers().all()[0].id()).toEqual('someServer1'); + expect(d.servers().all()[1]).toBeInstanceOf(Server); + expect(d.servers().all()[1].id()).toEqual('someServer2'); + }); + + it('should return collection of servers - available only on particular ones', function() { + const someServer2 = {}; + const doc = serializeInput({ servers: [someServer2] }); + const d = new Channel(doc, { asyncapi: { parsed: { servers: { someServer1: {}, someServer2, } } } as any, pointer: '', id: 'channel' }); + expect(d.servers()).toBeInstanceOf(Servers); + expect(d.servers().all()).toHaveLength(1); + expect(d.servers().all()[0]).toBeInstanceOf(Server); + expect(d.servers().all()[0].id()).toEqual('someServer2'); + }); + }); + + describe('.operations()', function() { + it('should return collection of operations - send operation', function() { + const channel = {}; + const d = new Channel(channel, { asyncapi: { parsed: { operations: { someOperation: { action: 'send', channel } } } } } as any); + expect(d.operations()).toBeInstanceOf(Operations); + expect(d.operations().all()).toHaveLength(1); + expect(d.operations().all()[0]).toBeInstanceOf(Operation); + expect(d.operations().all()[0].action()).toEqual('send'); + }); + + it('should return collection of operations - receive operation', function() { + const channel = {}; + const d = new Channel(channel, { asyncapi: { parsed: { operations: { someOperation: { action: 'receive', channel } } } } } as any); + expect(d.operations()).toBeInstanceOf(Operations); + expect(d.operations().all()).toHaveLength(1); + expect(d.operations().all()[0]).toBeInstanceOf(Operation); + expect(d.operations().all()[0].action()).toEqual('receive'); + }); + + it('should return collection of operations - more than one operations', function() { + const channel = {}; + const d = new Channel(channel, { asyncapi: { parsed: { operations: { someOperation1: { action: 'send', channel }, someOperation2: { action: 'receive', channel }, someOperation3: { action: 'send', channel } } } } } as any); + expect(d.operations()).toBeInstanceOf(Operations); + expect(d.operations().all()).toHaveLength(3); + expect(d.operations().all()[0]).toBeInstanceOf(Operation); + expect(d.operations().all()[0].action()).toEqual('send'); + expect(d.operations().all()[1]).toBeInstanceOf(Operation); + expect(d.operations().all()[1].action()).toEqual('receive'); + expect(d.operations().all()[2]).toBeInstanceOf(Operation); + expect(d.operations().all()[2].action()).toEqual('send'); + }); + }); + + describe('.messages()', function() { + it('should return collection of messages - single message', function() { + const doc = serializeInput({ messages: { someMessage: { messageId: 'messageId' } } }); + const d = new Channel(doc); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(1); + expect(d.messages().all()[0]).toBeInstanceOf(Message); + expect(d.messages().all()[0].messageId()).toEqual(doc.messages?.['someMessage']?.messageId); + }); + + it('should return collection of messages - more than one messages', function() { + const doc = serializeInput({ messages: { someMessage1: { messageId: 'messageId1' }, someMessage2: { messageId: 'messageId2' } } }); + const d = new Channel(doc); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(2); + expect(d.messages().all()[0]).toBeInstanceOf(Message); + expect(d.messages().all()[0].messageId()).toEqual(doc.messages?.['someMessage1']?.messageId); + expect(d.messages().all()[1]).toBeInstanceOf(Message); + expect(d.messages().all()[1].messageId()).toEqual(doc.messages?.['someMessage2']?.messageId); + }); + }); + + describe('.parameters()', function() { + it('should return collection of channel parameters', function() { + const doc = serializeInput({ parameters: { parameter1: {}, parameter2: {} } }); + const d = new Channel(doc); + expect(d.parameters()).toBeInstanceOf(ChannelParameters); + expect(d.parameters().all()).toHaveLength(2); + expect(d.parameters().all()[0]).toBeInstanceOf(ChannelParameter); + expect(d.parameters().all()[0].id()).toEqual('parameter1'); + expect(d.parameters().all()[1]).toBeInstanceOf(ChannelParameter); + expect(d.parameters().all()[1].id()).toEqual('parameter2'); + }); + }); + + describe('mixins', function() { + assertBindings(Channel); + assertDescription(Channel); + assertExtensions(Channel); + }); +}); diff --git a/test/models/v3/correlation-id.spec.ts b/test/models/v3/correlation-id.spec.ts new file mode 100644 index 000000000..8536f640e --- /dev/null +++ b/test/models/v3/correlation-id.spec.ts @@ -0,0 +1,40 @@ +import { CorrelationId } from '../../../src/models/v3/correlation-id'; + +import { serializeInput, assertDescription, assertExtensions } from './utils'; + +import type { v3 } from '../../../src/spec-types'; + +describe('CorrelationId model', function() { + describe('.hasLocation()', function() { + it('should return true when there is a value', function() { + const doc = serializeInput({ location: '...' }); + const d = new CorrelationId(doc); + expect(d.hasLocation()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = serializeInput({}); + const d = new CorrelationId(doc); + expect(d.hasLocation()).toEqual(false); + }); + }); + + describe('.location()', function() { + it('should return the value', function() { + const doc = serializeInput({ location: '...' }); + const d = new CorrelationId(doc); + expect(d.location()).toEqual(doc.location); + }); + + it('should return undefined when there is no value', function() { + const doc = serializeInput({}); + const d = new CorrelationId(doc); + expect(d.location()).toBeUndefined(); + }); + }); + + describe('mixins', function() { + assertDescription(CorrelationId); + assertExtensions(CorrelationId); + }); +}); diff --git a/test/models/v3/external-docs.spec.ts b/test/models/v3/external-docs.spec.ts new file mode 100644 index 000000000..c4b2025cf --- /dev/null +++ b/test/models/v3/external-docs.spec.ts @@ -0,0 +1,20 @@ +import { ExternalDocumentation } from '../../../src/models/v3/external-docs'; + +import { serializeInput, assertDescription, assertExtensions } from './utils'; + +import type { v3 } from '../../../src/spec-types'; + +describe('ExternalDocumentation model', function() { + describe('.url()', function() { + it('should return the value', function() { + const doc = serializeInput({ url: 'somewhere' }); + const d = new ExternalDocumentation(doc); + expect(d.url()).toEqual(doc.url); + }); + }); + + describe('mixins', function() { + assertDescription(ExternalDocumentation); + assertExtensions(ExternalDocumentation); + }); +}); diff --git a/test/models/v3/message-example.spec.ts b/test/models/v3/message-example.spec.ts new file mode 100644 index 000000000..8b7f653cd --- /dev/null +++ b/test/models/v3/message-example.spec.ts @@ -0,0 +1,121 @@ +import { MessageExample } from '../../../src/models/v3/message-example'; + +import { assertExtensions } from './utils'; + +describe('MessageExample model', function() { + describe('.hasName()', function() { + it('should return true when there is a value', function() { + const doc = { name: '...' }; + const d = new MessageExample(doc); + expect(d.hasName()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageExample(doc); + expect(d.hasName()).toEqual(false); + }); + }); + + describe('.name()', function() { + it('should return the value', function() { + const doc = { name: '...' }; + const d = new MessageExample(doc); + expect(d.name()).toEqual(doc.name); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageExample(doc); + expect(d.name()).toBeUndefined(); + }); + }); + + describe('.hasSummary()', function() { + it('should return true when there is a value', function() { + const doc = { summary: '...' }; + const d = new MessageExample(doc); + expect(d.hasSummary()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageExample(doc); + expect(d.hasSummary()).toEqual(false); + }); + }); + + describe('.summary()', function() { + it('should return the value', function() { + const doc = { summary: '...' }; + const d = new MessageExample(doc); + expect(d.summary()).toEqual(doc.summary); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageExample(doc); + expect(d.summary()).toBeUndefined(); + }); + }); + + describe('.hasHeaders()', function() { + it('should return true when there is a value', function() { + const doc = { headers: {} }; + const d = new MessageExample(doc); + expect(d.hasHeaders()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageExample(doc); + expect(d.hasSummary()).toEqual(false); + }); + }); + + describe('.headers()', function() { + it('should return the value', function() { + const doc = { headers: {} }; + const d = new MessageExample(doc); + expect(d.headers()).toEqual(doc.headers); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageExample(doc); + expect(d.headers()).toBeUndefined(); + }); + }); + + describe('.hasPayload()', function() { + it('should return true when there is a value', function() { + const doc = { payload: {} }; + const d = new MessageExample(doc); + expect(d.hasPayload()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageExample(doc); + expect(d.hasPayload()).toEqual(false); + }); + }); + + describe('.payload()', function() { + it('should return the value', function() { + const doc = { payload: {} }; + const d = new MessageExample(doc); + expect(d.payload()).toEqual(doc.payload); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageExample(doc); + expect(d.payload()).toBeUndefined(); + }); + }); + + describe('mixins', function() { + assertExtensions(MessageExample); + }); +}); diff --git a/test/models/v3/message-trait.spec.ts b/test/models/v3/message-trait.spec.ts new file mode 100644 index 000000000..3c83731e6 --- /dev/null +++ b/test/models/v3/message-trait.spec.ts @@ -0,0 +1,264 @@ +import { CorrelationId } from '../../../src/models/v3/correlation-id'; +import { MessageExamples } from '../../../src/models/message-examples'; +import { MessageExample } from '../../../src/models/v3/message-example'; +import { MessageTrait } from '../../../src/models/v3/message-trait'; +import { Schema } from '../../../src/models/v3/schema'; + +import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; + +describe('MessageTrait model', function() { + describe('.id()', function() { + it('should return id of model', function() { + const doc = {}; + const d = new MessageTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait' }); + expect(d.id()).toEqual('trait'); + }); + + it('should reuse messageId', function() { + const doc = { messageId: '...' }; + const d = new MessageTrait(doc); + expect(d.id()).toEqual(doc.messageId); + }); + }); + + describe('.schemaFormat()', function() { + it('should return defined schemaFormat', function() { + const doc = { schemaFormat: 'customSchemaFormat' }; + const d = new MessageTrait(doc, { asyncapi: {} as any, pointer: '', id: 'message' }); + expect(d.schemaFormat()).toEqual('customSchemaFormat'); + }); + + it('should return default schemaFormat if schemaFormat field is absent', function() { + const doc = {}; + const d = new MessageTrait(doc, { asyncapi: { semver: { version: '2.0.0' } } as any, pointer: '', id: 'message' }); + expect(d.schemaFormat()).toEqual('application/vnd.aai.asyncapi;version=2.0.0'); + }); + }); + + describe('.hasMessageId()', function() { + it('should return true when there is a value', function() { + const doc = { messageId: '...' }; + const d = new MessageTrait(doc); + expect(d.hasMessageId()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageTrait(doc); + expect(d.hasMessageId()).toEqual(false); + }); + }); + + describe('.messageId()', function() { + it('should return the value', function() { + const doc = { messageId: '...' }; + const d = new MessageTrait(doc); + expect(d.messageId()).toEqual(doc.messageId); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageTrait(doc); + expect(d.messageId()).toBeUndefined(); + }); + }); + + describe('.hasCorrelationId()', function() { + it('should return true when there is a value', function() { + const doc = { correlationId: { location: '...' } }; + const d = new MessageTrait(doc); + expect(d.hasCorrelationId()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageTrait(doc); + expect(d.hasCorrelationId()).toEqual(false); + }); + }); + + describe('.correlationId()', function() { + it('should return the value', function() { + const doc = { correlationId: { location: '...' } }; + const d = new MessageTrait(doc); + expect(d.correlationId()).toBeInstanceOf(CorrelationId); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageTrait(doc); + expect(d.correlationId()).toBeUndefined(); + }); + }); + + describe('.hasContentType()', function() { + it('should return true when there is a value', function() { + const doc = { contentType: '...' }; + const d = new MessageTrait(doc); + expect(d.hasContentType()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageTrait(doc); + expect(d.hasContentType()).toEqual(false); + }); + }); + + describe('.contentType()', function() { + it('should return the value', function() { + const doc = { contentType: '...' }; + const d = new MessageTrait(doc); + expect(d.contentType()).toEqual(doc.contentType); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageTrait(doc); + expect(d.contentType()).toBeUndefined(); + }); + + it('should reuse defaultContentType value', function() { + const doc = {}; + const d = new MessageTrait(doc, { asyncapi: { parsed: { defaultContentType: '...' } } } as any); + expect(d.contentType()).toEqual('...'); + }); + }); + + describe('.hasHeaders()', function() { + it('should return true when there is a value', function() { + const doc = { headers: {} }; + const d = new MessageTrait(doc); + expect(d.hasHeaders()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageTrait(doc); + expect(d.hasHeaders()).toEqual(false); + }); + }); + + describe('.headers()', function() { + it('should return the value', function() { + const doc = { headers: {} }; + const d = new MessageTrait(doc); + expect(d.headers()).toBeInstanceOf(Schema); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageTrait(doc); + expect(d.headers()).toBeUndefined(); + }); + }); + + describe('.hasName()', function() { + it('should return true when there is a value', function() { + const doc = { name: '...' }; + const d = new MessageTrait(doc); + expect(d.hasName()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageTrait(doc); + expect(d.hasName()).toEqual(false); + }); + }); + + describe('.name()', function() { + it('should return the value', function() { + const doc = { name: '...' }; + const d = new MessageTrait(doc); + expect(d.name()).toEqual(doc.name); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageTrait(doc); + expect(d.name()).toBeUndefined(); + }); + }); + + describe('.hasTitle()', function() { + it('should return true when there is a value', function() { + const doc = { title: '...' }; + const d = new MessageTrait(doc); + expect(d.hasTitle()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageTrait(doc); + expect(d.hasTitle()).toEqual(false); + }); + }); + + describe('.title()', function() { + it('should return the value', function() { + const doc = { title: '...' }; + const d = new MessageTrait(doc); + expect(d.title()).toEqual(doc.title); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageTrait(doc); + expect(d.title()).toBeUndefined(); + }); + }); + + describe('.hasSummary()', function() { + it('should return true when there is a value', function() { + const doc = { summary: '...' }; + const d = new MessageTrait(doc); + expect(d.hasSummary()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageTrait(doc); + expect(d.hasSummary()).toEqual(false); + }); + }); + + describe('.summary()', function() { + it('should return the value', function() { + const doc = { summary: '...' }; + const d = new MessageTrait(doc); + expect(d.summary()).toEqual(doc.summary); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageTrait(doc); + expect(d.summary()).toBeUndefined(); + }); + }); + + describe('.examples()', function() { + it('should return collection of examples', function() { + const doc = { examples: [{ name: '...' }] }; + const d = new MessageTrait(doc); + expect(d.examples()).toBeInstanceOf(MessageExamples); + expect(d.examples().all()).toHaveLength(1); + expect(d.examples().all()[0]).toBeInstanceOf(MessageExample); + }); + + it('should return collection of examples when value is undefined', function() { + const doc = {}; + const d = new MessageTrait(doc); + expect(d.examples()).toBeInstanceOf(MessageExamples); + expect(d.examples().all()).toHaveLength(0); + }); + }); + + describe('mixins', function() { + assertBindings(MessageTrait); + assertDescription(MessageTrait); + assertExtensions(MessageTrait); + assertExternalDocumentation(MessageTrait); + assertTags(MessageTrait); + }); +}); diff --git a/test/models/v3/message.spec.ts b/test/models/v3/message.spec.ts new file mode 100644 index 000000000..4b4c8d78c --- /dev/null +++ b/test/models/v3/message.spec.ts @@ -0,0 +1,190 @@ +import { Channels } from '../../../src/models/channels'; +import { Channel } from '../../../src/models/v3/channel'; +import { Message } from '../../../src/models/v3/message'; +import { MessageTraits } from '../../../src/models/message-traits'; +import { MessageTrait } from '../../../src/models/v3/message-trait'; +import { Operations } from '../../../src/models/operations'; +import { Operation } from '../../../src/models/v3/operation'; +import { Schema } from '../../../src/models/v3/schema'; +import { Servers } from '../../../src/models/servers'; +import { Server } from '../../../src/models/v3/server'; + +import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; + +describe('Message model', function() { + describe('.id()', function() { + it('should return id of model', function() { + const doc = {}; + const d = new Message(doc, { asyncapi: {} as any, pointer: '', id: 'message' }); + expect(d.id()).toEqual('message'); + }); + + it('should reuse messageId', function() { + const doc = { messageId: '...' }; + const d = new Message(doc); + expect(d.id()).toEqual(doc.messageId); + }); + }); + + describe('.schemaFormat()', function() { + it('should return defined schemaFormat', function() { + const doc = { schemaFormat: 'customSchemaFormat' }; + const d = new Message(doc, { asyncapi: {} as any, pointer: '', id: 'message' }); + expect(d.schemaFormat()).toEqual('customSchemaFormat'); + }); + + it('should return default schemaFormat if schemaFormat field is absent', function() { + const doc = {}; + const d = new Message(doc, { asyncapi: { semver: { version: '2.0.0' } } as any, pointer: '', id: 'message' }); + expect(d.schemaFormat()).toEqual('application/vnd.aai.asyncapi;version=2.0.0'); + }); + }); + + describe('.hasPayload()', function() { + it('should return true when there is a value', function() { + const doc = { payload: {} }; + const d = new Message(doc); + expect(d.hasPayload()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new Message(doc); + expect(d.hasPayload()).toEqual(false); + }); + }); + + describe('.payload()', function() { + it('should return the value', function() { + const doc = { payload: {} }; + const d = new Message(doc); + expect(d.payload()).toBeInstanceOf(Schema); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new Message(doc); + expect(d.payload()).toBeUndefined(); + }); + }); + + // describe('.servers()', function() { + // it('should return collection of servers - available on all servers', function() { + // const doc = {}; + // const d = new Message(doc, { asyncapi: { parsed: { servers: { production: {}, development: {} }, channels: { 'user/signup': { publish: { message: doc } } } } } as any, pointer: '', id: 'message' }); + // expect(d.servers()).toBeInstanceOf(Servers); + // expect(d.servers().all()).toHaveLength(2); + // expect(d.servers().all()[0]).toBeInstanceOf(Server); + // expect(d.servers().all()[0].id()).toEqual('production'); + // expect(d.servers().all()[1]).toBeInstanceOf(Server); + // expect(d.servers().all()[1].id()).toEqual('development'); + // }); + + // it('should return collection of servers - available on selected servers', function() { + // const doc = {}; + // const d = new Message(doc, { asyncapi: { parsed: { servers: { production: {}, development: {} }, channels: { 'user/signup': { publish: { message: doc }, servers: ['production'] } } } } as any, pointer: '', id: 'message' }); + // expect(d.servers()).toBeInstanceOf(Servers); + // expect(d.servers().all()).toHaveLength(1); + // expect(d.servers().all()[0]).toBeInstanceOf(Server); + // expect(d.servers().all()[0].id()).toEqual('production'); + // }); + + // it('should return collection of servers - do not duplicate servers', function() { + // const doc = {}; + // const d = new Message(doc, { asyncapi: { parsed: { servers: { production: {}, development: {} }, channels: { 'user/signup': { publish: { message: doc }, subscribe: { message: doc }, servers: ['production'] } } } } as any, pointer: '', id: 'message' }); + // expect(d.servers()).toBeInstanceOf(Servers); + // expect(d.servers().all()).toHaveLength(1); + // expect(d.servers().all()[0]).toBeInstanceOf(Server); + // expect(d.servers().all()[0].id()).toEqual('production'); + // }); + // }); + + // describe('.channels()', function() { + // it('should return collection of channels - single channel', function() { + // const doc = {}; + // const d = new Message(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: doc } } } } } as any, pointer: '', id: 'message' }); + // expect(d.channels()).toBeInstanceOf(Channels); + // expect(d.channels().all()).toHaveLength(1); + // expect(d.channels().all()[0]).toBeInstanceOf(Channel); + // expect(d.channels().all()[0].address()).toEqual('user/signup'); + // }); + + // it('should return collection of channels - multiple channels', function() { + // const doc = {}; + // const d = new Message(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: doc } }, 'user/logout': { subscribe: { message: doc } } } } } as any, pointer: '', id: 'message' }); + // expect(d.channels()).toBeInstanceOf(Channels); + // expect(d.channels().all()).toHaveLength(2); + // expect(d.channels().all()[0]).toBeInstanceOf(Channel); + // expect(d.channels().all()[0].address()).toEqual('user/signup'); + // expect(d.channels().all()[1]).toBeInstanceOf(Channel); + // expect(d.channels().all()[1].address()).toEqual('user/logout'); + // }); + + // it('should return collection of channels - do not duplicate channels', function() { + // const doc = {}; + // const d = new Message(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: doc }, subscribe: { message: doc } } } } } as any, pointer: '', id: 'message' }); + // expect(d.channels()).toBeInstanceOf(Channels); + // expect(d.channels().all()).toHaveLength(1); + // expect(d.channels().all()[0]).toBeInstanceOf(Channel); + // expect(d.channels().all()[0].address()).toEqual('user/signup'); + // }); + // }); + + // describe('.operations()', function() { + // it('should return collection of operations - single operation', function() { + // const doc = {}; + // const d = new Message(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: doc } } } } } as any, pointer: '', id: 'message' }); + // expect(d.operations()).toBeInstanceOf(Operations); + // expect(d.operations().all()).toHaveLength(1); + // expect(d.operations().all()[0]).toBeInstanceOf(Operation); + // expect(d.operations().all()[0].action()).toEqual('publish'); + // }); + + // it('should return collection of operations - multiple operations', function() { + // const doc = {}; + // const d = new Message(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: doc }, subscribe: { message: doc } } } } } as any, pointer: '', id: 'message' }); + // expect(d.operations()).toBeInstanceOf(Operations); + // expect(d.operations().all()).toHaveLength(2); + // expect(d.operations().all()[0]).toBeInstanceOf(Operation); + // expect(d.operations().all()[0].action()).toEqual('subscribe'); + // expect(d.operations().all()[1]).toBeInstanceOf(Operation); + // expect(d.operations().all()[1].action()).toEqual('publish'); + // }); + + // it('should return collection of operations - multiple operations on different channels', function() { + // const doc = {}; + // const d = new Message(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: doc } }, 'user/logout': { subscribe: { message: doc } } } } } as any, pointer: '', id: 'message' }); + // expect(d.operations()).toBeInstanceOf(Operations); + // expect(d.operations().all()).toHaveLength(2); + // expect(d.operations().all()[0]).toBeInstanceOf(Operation); + // expect(d.operations().all()[0].action()).toEqual('publish'); + // expect(d.operations().all()[1]).toBeInstanceOf(Operation); + // expect(d.operations().all()[1].action()).toEqual('subscribe'); + // }); + // }); + + describe('.traits()', function() { + it('should return collection of traits', function() { + const doc = { traits: [{ messageId: '...' }] }; + const d = new Message(doc); + expect(d.traits()).toBeInstanceOf(MessageTraits); + expect(d.traits().all()).toHaveLength(1); + expect(d.traits().all()[0]).toBeInstanceOf(MessageTrait); + }); + + it('should return collection of traits when value is undefined', function() { + const doc = {}; + const d = new Message(doc); + expect(d.traits()).toBeInstanceOf(MessageTraits); + expect(d.traits().all()).toHaveLength(0); + }); + }); + + describe('mixins', function() { + assertBindings(Message); + assertDescription(Message); + assertExtensions(Message); + assertExternalDocumentation(Message); + assertTags(Message); + }); +}); diff --git a/test/models/v3/oauth-flow.spec.ts b/test/models/v3/oauth-flow.spec.ts new file mode 100644 index 000000000..882cc0105 --- /dev/null +++ b/test/models/v3/oauth-flow.spec.ts @@ -0,0 +1,39 @@ +import { OAuthFlow } from '../../../src/models/v3/oauth-flow'; + +import { assertExtensions } from './utils'; + +import type { v3 } from '../../../src/spec-types'; + +const flowObject = { + authorizationUrl: 'https://example.com/api/oauth/dialog', + scopes: { + 'write:pets': 'modify pets in your account', + 'read:pets': 'read your pets' + } +}; + +const flow = new OAuthFlow(flowObject); +const emptyObject = new OAuthFlow({} as v3.OAuthFlowObject); + +describe('OAuth Flow', function() { + describe('.authorizationUrl()', function() { + it('should reutrn undefined if no authorizationUrl present', function() { + expect(emptyObject.authorizationUrl()).toBeUndefined(); + }); + + it('should return authrozationUrl ', function() { + expect(flow.authorizationUrl()).toMatch(flowObject.authorizationUrl); + }); + }); + + describe('.scopes()', function() { + it('should return scopes if present', function() { + expect(emptyObject.scopes()).toBeUndefined(); + expect(flow.scopes()!['write:pets']).toMatch(flowObject.scopes['write:pets']); + }); + }); + + describe('mixins', function() { + assertExtensions(OAuthFlow); + }); +}); diff --git a/test/models/v3/oauth-flows.spec.ts b/test/models/v3/oauth-flows.spec.ts new file mode 100644 index 000000000..5dbd11e23 --- /dev/null +++ b/test/models/v3/oauth-flows.spec.ts @@ -0,0 +1,42 @@ +import { OAuthFlows } from '../../../src/models/v3/oauth-flows'; +import { OAuthFlow } from '../../../src/models/v3/oauth-flow'; + +import { assertExtensions } from './utils'; + +const oAuthFlowsObject = { + implicit: { + authorizationUrl: 'https://example.com/api/oauth/dialog', + scopes: { + 'write:pets': 'modify pets in your account', + 'read:pets': 'read your pets' + } + }, + authorizationCode: { + authorizationUrl: 'https://example.com/api/oauth/dialog', + tokenUrl: 'https://example.com/api/oauth/token', + scopes: { + 'write:pets': 'modify pets in your account', + 'read:pets': 'read your pets' + } + } +}; + +const flows = new OAuthFlows(oAuthFlowsObject); + +describe('OAuth Flows', function() { + describe('.hasImplicit()', function() { + it('should return true', function() { + expect(flows.hasImplicit()).toBeTruthy(); + }); + }); + + describe('.implicit()', function() { + it('should return OAuthflow object', function() { + expect(flows.implicit() instanceof OAuthFlow).toBeTruthy(); + }); + }); + + describe('mixins', function() { + assertExtensions(OAuthFlows); + }); +}); \ No newline at end of file diff --git a/test/models/v3/operation-trait.spec.ts b/test/models/v3/operation-trait.spec.ts new file mode 100644 index 000000000..6601ee495 --- /dev/null +++ b/test/models/v3/operation-trait.spec.ts @@ -0,0 +1,129 @@ +import { OperationTrait } from '../../../src/models/v3/operation-trait'; +import { SecurityRequirement } from '../../../src/models/v3/security-requirement'; +import { SecurityRequirements } from '../../../src/models/security-requirements'; +import { SecurityScheme } from '../../../src/models/v3/security-scheme'; + +import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; + +describe('OperationTrait model', function() { + describe('.id()', function() { + it('should return the value', function() { + const d = new OperationTrait({}, { id: '...' } as any); + expect(d.id()).toEqual('...'); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new OperationTrait(doc); + expect(d.id()).toBeUndefined(); + }); + }); + + describe('.hasId()', function() { + it('should return true when there is a value', function() { + const d = new OperationTrait({}, { id: '...' } as any); + expect(d.hasId()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new OperationTrait(doc); + expect(d.hasId()).toEqual(false); + }); + }); + + describe('.action()', function() { + it('should return kind/action of operation', function() { + const d = new OperationTrait({ action: 'send', channel: {} }, { asyncapi: {} as any, pointer: '', id: 'trait' }); + expect(d.action()).toEqual('send'); + }); + }); + + describe('.isSend()', function() { + it('should return true when operation has send action', function() { + const d = new OperationTrait({ action: 'send', channel: {} }, { asyncapi: {} as any, pointer: '', id: 'trait' }); + expect(d.isSend()).toBeTruthy(); + }); + + it('should return false when operation has receive action', function() { + const doc = {}; + const d = new OperationTrait({ action: 'receive', channel: {} }, { asyncapi: {} as any, pointer: '', id: 'trait' }); + expect(d.isSend()).toBeFalsy(); + }); + }); + + describe('.isReceive()', function() { + it('should return true when operation has receive action', function() { + const doc = {}; + const d = new OperationTrait({ action: 'receive', channel: {} }, { asyncapi: {} as any, pointer: '', id: 'trait' }); + expect(d.isReceive()).toBeTruthy(); + }); + + it('should return false when operation has send action', function() { + const doc = {}; + const d = new OperationTrait({ action: 'send', channel: {} }, { asyncapi: {} as any, pointer: '', id: 'trait' }); + expect(d.isReceive()).toBeFalsy(); + }); + }); + + describe('.hasSummary()', function() { + it('should return true when there is a value', function() { + const doc = { summary: '...' }; + const d = new OperationTrait(doc); + expect(d.hasSummary()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new OperationTrait(doc); + expect(d.hasSummary()).toEqual(false); + }); + }); + + describe('.summary()', function() { + it('should return the value', function() { + const doc = { summary: '...' }; + const d = new OperationTrait(doc); + expect(d.summary()).toEqual(doc.summary); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new OperationTrait(doc); + expect(d.summary()).toBeUndefined(); + }); + }); + + describe('.security()', function() { + it('should return collection of security requirements', function() { + const doc = { security: [{ requirement: [] }] }; + const d = new OperationTrait(doc); + + const security = d.security(); + expect(Array.isArray(security)).toEqual(true); + expect(security).toHaveLength(1); + expect(security[0]).toBeInstanceOf(SecurityRequirements); + + const requirement = security[0].get('requirement') as SecurityRequirement; + expect(requirement).toBeInstanceOf(SecurityRequirement); + expect(requirement.meta().id).toEqual('requirement'); + expect(requirement.scheme()).toBeInstanceOf(SecurityScheme); + expect(requirement.scopes()).toEqual([]); + }); + + it('should return collection of security requirements when value is undefined', function() { + const doc = {}; + const d = new OperationTrait(doc); + expect(Array.isArray(d.security())).toEqual(true); + expect(d.security()).toHaveLength(0); + }); + }); + + describe('mixins', function() { + assertBindings(OperationTrait); + assertDescription(OperationTrait); + assertExtensions(OperationTrait); + assertExternalDocumentation(OperationTrait); + assertTags(OperationTrait); + }); +}); diff --git a/test/models/v3/operation.spec.ts b/test/models/v3/operation.spec.ts new file mode 100644 index 000000000..887ada4a7 --- /dev/null +++ b/test/models/v3/operation.spec.ts @@ -0,0 +1,99 @@ +import { Channels } from '../../../src/models/channels'; +import { Channel } from '../../../src/models/v3/channel'; +import { Operation } from '../../../src/models/v3/operation'; +import { OperationTraits } from '../../../src/models/operation-traits'; +import { OperationTrait } from '../../../src/models/v3/operation-trait'; +import { Messages } from '../../../src/models/messages'; +import { Message } from '../../../src/models/v3/message'; +import { Servers } from '../../../src/models/servers'; +import { Server } from '../../../src/models/v3/server'; + +import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; + +describe('Operation model', function() { + describe('.action()', function() { + it('should return kind/action of operation', function() { + const d = new Operation({ action: 'send', channel: {} }, { asyncapi: {} as any, pointer: '', id: 'trait' }); + expect(d.action()).toEqual('send'); + }); + }); + + describe('.servers()', function() { + it('should return collection of servers - channel available on all servers', function() { + const d = new Operation({ action: 'send', channel: {} }, { asyncapi: { parsed: { servers: { production: {}, development: {}, } } } as any, pointer: '', id: 'operation' }); + expect(d.servers()).toBeInstanceOf(Servers); + expect(d.servers().all()).toHaveLength(2); + expect(d.servers().all()[0]).toBeInstanceOf(Server); + expect(d.servers().all()[0].id()).toEqual('production'); + expect(d.servers().all()[1]).toBeInstanceOf(Server); + expect(d.servers().all()[1].id()).toEqual('development'); + }); + + it('should return collection of servers - channel available on selected servers', function() { + const production = {}; + const d = new Operation({ action: 'send', channel: { servers: [production as any] } }, { asyncapi: { parsed: { servers: { production, development: {}, } } } as any, pointer: '', id: 'operation' }); + expect(d.servers()).toBeInstanceOf(Servers); + expect(d.servers().all()).toHaveLength(1); + expect(d.servers().all()[0]).toBeInstanceOf(Server); + expect(d.servers().all()[0].id()).toEqual('production'); + }); + }); + + describe('.channels()', function() { + it('should return collection of channels - single channel', function() { + const d = new Operation({ action: 'send', channel: { address: 'user/signup' } }); + expect(d.channels()).toBeInstanceOf(Channels); + expect(d.channels().all()).toHaveLength(1); + expect(d.channels().all()[0]).toBeInstanceOf(Channel); + expect(d.channels().all()[0].address()).toEqual('user/signup'); + }); + }); + + describe('.messages()', function() { + it('should return collection of messages - single message', function() { + const d = new Operation({ action: 'send', channel: { messages: { someMessage: { messageId: 'messageId' } } } }); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(1); + expect(d.messages().all()[0]).toBeInstanceOf(Message); + }); + + it('should return collection of messages - more than one messages', function() { + const d = new Operation({ action: 'send', channel: { messages: { someMessage1: { messageId: 'messageId1' }, someMessage2: { messageId: 'messageId2' } } } }); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(2); + expect(d.messages().all()[0]).toBeInstanceOf(Message); + expect(d.messages().all()[0].messageId()).toEqual('messageId1'); + expect(d.messages().all()[1]).toBeInstanceOf(Message); + expect(d.messages().all()[1].messageId()).toEqual('messageId2'); + }); + + it('should return undefined when there is no value', function() { + const d = new Operation({ action: 'send', channel: {} }); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(0); + }); + }); + + describe('.traits()', function() { + it('should return collection of traits', function() { + const d = new Operation({ action: 'send', channel: {}, traits: [{ action: 'receive' }] }); + expect(d.traits()).toBeInstanceOf(OperationTraits); + expect(d.traits().all()).toHaveLength(1); + expect(d.traits().all()[0]).toBeInstanceOf(OperationTrait); + }); + + it('should return collection of traits when value is undefined', function() { + const d = new Operation({ action: 'send', channel: {}, traits: [] }); + expect(d.traits()).toBeInstanceOf(OperationTraits); + expect(d.traits().all()).toHaveLength(0); + }); + }); + + describe('mixins', function() { + assertBindings(Operation); + assertDescription(Operation); + assertExtensions(Operation); + assertExternalDocumentation(Operation); + assertTags(Operation); + }); +}); diff --git a/test/models/v3/schema.spec.ts b/test/models/v3/schema.spec.ts new file mode 100644 index 000000000..59a24050c --- /dev/null +++ b/test/models/v3/schema.spec.ts @@ -0,0 +1,815 @@ +import { Schema } from '../../../src/models/v3/schema'; + +import { assertExtensions, assertExternalDocumentation } from './utils'; +import { xParserSchemaId } from '../../../src/constants'; + +import type { v3 } from '../../../src/spec-types'; + +describe('Schema model', function() { + describe('.id()', function() { + it('should return $id of schema', function() { + const doc = { $id: '$id', [xParserSchemaId]: xParserSchemaId }; + const d = new Schema(doc, { asyncapi: {} as any, pointer: '', id: 'id' }); + expect(d.id()).toEqual('$id'); + }); + + it('should return meta id of schema as fallback', function() { + const doc = { [xParserSchemaId]: xParserSchemaId }; + const d = new Schema(doc, { asyncapi: {} as any, pointer: '', id: 'id' }); + expect(d.id()).toEqual('id'); + }); + + it(`should return ${xParserSchemaId} of schema as fallback`, function() { + const doc = { [xParserSchemaId]: xParserSchemaId }; + const d = new Schema(doc, { asyncapi: {} as any, pointer: '' }); + expect(d.id()).toEqual(xParserSchemaId); + }); + }); + + describe('.$comment()', function() { + it('should return the value', function() { + const doc = { $comment: '...' }; + const d = new Schema(doc); + expect(d.$comment()).toEqual(doc.$comment); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.$comment()).toBeUndefined(); + }); + }); + + describe('.$id()', function() { + it('should return the value', function() { + const doc = { $id: '...' }; + const d = new Schema(doc); + expect(d.$id()).toEqual(doc.$id); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.$id()).toBeUndefined(); + }); + }); + + describe('.$schema()', function() { + it('should return the value', function() { + const doc = { $schema: '...' }; + const d = new Schema(doc); + expect(d.$schema()).toEqual(doc.$schema); + }); + + it('should return fallback value when there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.$schema()).toEqual('http://json-schema.org/draft-07/schema#'); + }); + }); + + describe('.additionalItems()', function() { + it('should return the value schema object', function() { + const doc = { additionalItems: {} }; + const d = new Schema(doc); + expect(d.additionalItems()).toBeInstanceOf(Schema); + }); + + it('should return the true when there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.additionalItems()).toEqual(true); + }); + + it('should return the false where there is false value', function() { + const doc = { additionalItems: false }; + const d = new Schema(doc); + expect(d.additionalItems()).toEqual(false); + }); + + it('should return the false where there is true value', function() { + const doc = { additionalItems: true }; + const d = new Schema(doc); + expect(d.additionalItems()).toEqual(true); + }); + }); + + describe('.additionalProperties()', function() { + it('should return the value schema object', function() { + const doc = { additionalProperties: {} }; + const d = new Schema(doc); + expect(d.additionalProperties()).toBeInstanceOf(Schema); + }); + + it('should return the true when there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.additionalProperties()).toEqual(true); + }); + + it('should return the false where there is false value', function() { + const doc = { additionalProperties: false }; + const d = new Schema(doc); + expect(d.additionalProperties()).toEqual(false); + }); + + it('should return the false where there is true value', function() { + const doc = { additionalProperties: true }; + const d = new Schema(doc); + expect(d.additionalProperties()).toEqual(true); + }); + }); + + describe('.allOf()', function() { + it('should return collection of schemas', function() { + const doc = { allOf: [{}, {}] }; + const d = new Schema(doc); + expect(Array.isArray(d.allOf())).toEqual(true); + expect(d.allOf()).toHaveLength(2); + expect((d.allOf() as any)[0]).toBeInstanceOf(Schema); + expect((d.allOf() as any)[1]).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.allOf()).toBeUndefined(); + }); + }); + + describe('.anyOf()', function() { + it('should return collection of schemas', function() { + const doc = { anyOf: [{}, {}] }; + const d = new Schema(doc); + expect(Array.isArray(d.anyOf())).toEqual(true); + expect(d.anyOf()).toHaveLength(2); + expect((d.anyOf() as any)[0]).toBeInstanceOf(Schema); + expect((d.anyOf() as any)[1]).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.anyOf()).toBeUndefined(); + }); + }); + + describe('.const()', function() { + it('should return value', function() { + const doc = { const: '...' }; + const d = new Schema(doc); + expect(d.const()).toEqual(doc.const); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.const()).toBeUndefined(); + }); + }); + + describe('.contains()', function() { + it('should return value', function() { + const doc = { contains: {} }; + const d = new Schema(doc); + expect(d.contains()).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.contains()).toBeUndefined(); + }); + }); + + describe('.contentEncoding()', function() { + it('should return value', function() { + const doc = { contentEncoding: '...' }; + const d = new Schema(doc); + expect(d.contentEncoding()).toEqual(doc.contentEncoding); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.contentEncoding()).toBeUndefined(); + }); + }); + + describe('.contentMediaType()', function() { + it('should return value', function() { + const doc = { contentMediaType: '...' }; + const d = new Schema(doc); + expect(d.contentMediaType()).toEqual(doc.contentMediaType); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.contentMediaType()).toBeUndefined(); + }); + }); + + describe('.default()', function() { + it('should return value', function() { + const doc = { default: '...' }; + const d = new Schema(doc); + expect(d.default()).toEqual(doc.default); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.default()).toBeUndefined(); + }); + }); + + describe('.definitions()', function() { + it('should return map of definitions', function() { + const doc = { definitions: { def: {} } }; + const d = new Schema(doc); + expect(typeof d.definitions() === 'object').toEqual(true); + expect((d.definitions() as any)['def']).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.default()).toBeUndefined(); + }); + }); + + describe('.description()', function() { + it('should return value', function() { + const doc = { description: '...' }; + const d = new Schema(doc); + expect(d.description()).toEqual(doc.description); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.description()).toBeUndefined(); + }); + }); + + describe('.dependencies()', function() { + it('should return map of dependencies (schema case)', function() { + const doc = { dependencies: { dep: {} } }; + const d = new Schema(doc); + expect(typeof d.dependencies() === 'object').toEqual(true); + expect((d.dependencies() as any)['dep']).toBeInstanceOf(Schema); + }); + + it('should return map of dependencies (array case)', function() { + const doc = { dependencies: { array: [] } }; + const d = new Schema(doc); + expect(typeof d.dependencies() === 'object').toEqual(true); + expect(Array.isArray((d.dependencies() as any)['array'])).toEqual(true); + }); + + it('should return map of dependencies (schema and array case)', function() { + const doc = { dependencies: { dep: {}, array: [] } }; + const d = new Schema(doc); + expect(typeof d.dependencies() === 'object').toEqual(true); + expect((d.dependencies() as any)['dep']).toBeInstanceOf(Schema); + expect(Array.isArray((d.dependencies() as any)['array'])).toEqual(true); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.dependencies()).toBeUndefined(); + }); + }); + + describe('.deprecated()', function() { + it('should return value', function() { + const doc = { deprecated: true }; + const d = new Schema(doc); + expect(d.deprecated()).toEqual(doc.deprecated); + }); + + it('should return false where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.deprecated()).toEqual(false); + }); + }); + + describe('.discriminator()', function() { + it('should return value', function() { + const doc = { discriminator: '...' }; + const d = new Schema(doc); + expect(d.discriminator()).toEqual(doc.discriminator); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.discriminator()).toBeUndefined(); + }); + }); + + describe('.else()', function() { + it('should return value', function() { + const doc = { else: {} }; + const d = new Schema(doc); + expect(d.else()).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.else()).toBeUndefined(); + }); + }); + + describe('.enum()', function() { + it('should return value', function() { + const doc = { enum: ['example'] }; + const d = new Schema(doc); + expect(Array.isArray(d.enum())).toEqual(true); + expect((d.enum() as any)[0]).toEqual('example'); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.else()).toBeUndefined(); + }); + }); + + describe('.examples()', function() { + it('should return value', function() { + const doc = { examples: ['example'] }; + const d = new Schema(doc); + expect(Array.isArray(d.examples())).toEqual(true); + expect((d.examples() as any)[0]).toEqual('example'); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.examples()).toBeUndefined(); + }); + }); + + describe('.exclusiveMaximum()', function() { + it('should return value', function() { + const doc = { exclusiveMaximum: 2137 }; + const d = new Schema(doc); + expect(d.exclusiveMaximum()).toEqual(doc.exclusiveMaximum); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.exclusiveMaximum()).toBeUndefined(); + }); + }); + + describe('.exclusiveMinimum()', function() { + it('should return value', function() { + const doc = { exclusiveMinimum: 2137 }; + const d = new Schema(doc); + expect(d.exclusiveMinimum()).toEqual(doc.exclusiveMinimum); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.exclusiveMinimum()).toBeUndefined(); + }); + }); + + describe('.format()', function() { + it('should return value', function() { + const doc = { format: '...' }; + const d = new Schema(doc); + expect(d.format()).toEqual(doc.format); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.format()).toBeUndefined(); + }); + }); + + describe('.isBooleanSchema()', function() { + it('should return true where value is true boolean', function() { + const d = new Schema(true as any); + expect(d.isBooleanSchema()).toEqual(true); + }); + + it('should return true where value is false boolean', function() { + const d = new Schema(false as any); + expect(d.isBooleanSchema()).toEqual(true); + }); + + it('should return false where value is object', function() { + const d = new Schema({}); + expect(d.isBooleanSchema()).toEqual(false); + }); + }); + + describe('.if()', function() { + it('should return value', function() { + const doc = { if: {} }; + const d = new Schema(doc); + expect(d.if()).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.if()).toBeUndefined(); + }); + }); + + describe('.isCircular()', function() { + it('should return a true when schema has circular reference', function() { + const doc: v3.AsyncAPISchemaObject = { + properties: { + nonCircular: { + type: 'string', + }, + circular: {}, + } + }; + doc.properties!.circular = doc; + const d = new Schema(doc); + expect(d.isCircular()).toEqual(false); + expect((d.properties() as any)['nonCircular'].isCircular()).toEqual(false); + expect((d.properties() as any)['circular'].isCircular()).toEqual(true); + }); + }); + + describe('.items()', function() { + it('should return schema instance', function() { + const doc = { items: {} }; + const d = new Schema(doc); + expect(d.items()).toBeInstanceOf(Schema); + }); + + it('should return collection of schemas', function() { + const doc = { items: [{}, {}] }; + const d = new Schema(doc); + expect(Array.isArray(d.items())).toEqual(true); + expect(d.items()).toHaveLength(2); + expect((d.items() as any)[0]).toBeInstanceOf(Schema); + expect((d.items() as any)[1]).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.items()).toBeUndefined(); + }); + }); + + describe('.maximum()', function() { + it('should return value', function() { + const doc = { maximum: 2137 }; + const d = new Schema(doc); + expect(d.maximum()).toEqual(doc.maximum); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.maximum()).toBeUndefined(); + }); + }); + + describe('.maxItems()', function() { + it('should return value', function() { + const doc = { maxItems: 2137 }; + const d = new Schema(doc); + expect(d.maxItems()).toEqual(doc.maxItems); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.maxItems()).toBeUndefined(); + }); + }); + + describe('.maxLength()', function() { + it('should return value', function() { + const doc = { maxLength: 2137 }; + const d = new Schema(doc); + expect(d.maxLength()).toEqual(doc.maxLength); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.maxLength()).toBeUndefined(); + }); + }); + + describe('.maxProperties()', function() { + it('should return value', function() { + const doc = { maxProperties: 2137 }; + const d = new Schema(doc); + expect(d.maxProperties()).toEqual(doc.maxProperties); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.maxProperties()).toBeUndefined(); + }); + }); + + describe('.minimum()', function() { + it('should return value', function() { + const doc = { minimum: 2137 }; + const d = new Schema(doc); + expect(d.minimum()).toEqual(doc.minimum); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.minimum()).toBeUndefined(); + }); + }); + + describe('.minItems()', function() { + it('should return value', function() { + const doc = { minItems: 2137 }; + const d = new Schema(doc); + expect(d.minItems()).toEqual(doc.minItems); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.minItems()).toBeUndefined(); + }); + }); + + describe('.minLength()', function() { + it('should return value', function() { + const doc = { minLength: 2137 }; + const d = new Schema(doc); + expect(d.minLength()).toEqual(doc.minLength); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.minLength()).toBeUndefined(); + }); + }); + + describe('.minProperties()', function() { + it('should return value', function() { + const doc = { minProperties: 2137 }; + const d = new Schema(doc); + expect(d.minProperties()).toEqual(doc.minProperties); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.minProperties()).toBeUndefined(); + }); + }); + + describe('.multipleOf()', function() { + it('should return value', function() { + const doc = { multipleOf: 2137 }; + const d = new Schema(doc); + expect(d.multipleOf()).toEqual(doc.multipleOf); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.multipleOf()).toBeUndefined(); + }); + }); + + describe('.not()', function() { + it('should return value', function() { + const doc = { not: {} }; + const d = new Schema(doc); + expect(d.not()).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.not()).toBeUndefined(); + }); + }); + + describe('.oneOf()', function() { + it('should return collection of schemas', function() { + const doc = { oneOf: [{}, {}] }; + const d = new Schema(doc); + expect(Array.isArray(d.oneOf())).toEqual(true); + expect(d.oneOf()).toHaveLength(2); + expect((d.oneOf() as any)[0]).toBeInstanceOf(Schema); + expect((d.oneOf() as any)[1]).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.oneOf()).toBeUndefined(); + }); + }); + + describe('.pattern()', function() { + it('should return value', function() { + const doc = { pattern: '...' }; + const d = new Schema(doc); + expect(d.pattern()).toEqual(doc.pattern); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.pattern()).toBeUndefined(); + }); + }); + + describe('.patternProperties()', function() { + it('should return map of patternProperties', function() { + const doc = { patternProperties: { prop: {} } }; + const d = new Schema(doc); + expect(typeof d.patternProperties() === 'object').toEqual(true); + expect((d.patternProperties() as any)['prop']).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.patternProperties()).toBeUndefined(); + }); + }); + + describe('.properties()', function() { + it('should return map of properties', function() { + const doc = { properties: { prop: {} } }; + const d = new Schema(doc); + expect(typeof d.properties() === 'object').toEqual(true); + expect((d.properties() as any)['prop']).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.properties()).toBeUndefined(); + }); + }); + + describe('.property()', function() { + it('should return property', function() { + const doc = { properties: { prop: {} } }; + const d = new Schema(doc); + expect(d.property('prop')).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no property', function() { + const doc = { properties: { another: {} } }; + const d = new Schema(doc); + expect(d.property('prop')).toBeUndefined(); + }); + + it('should return undefined where there is no properties', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.property('prop')).toBeUndefined(); + }); + }); + + describe('.propertyNames()', function() { + it('should return value', function() { + const doc = { propertyNames: {} }; + const d = new Schema(doc); + expect(d.propertyNames()).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.propertyNames()).toBeUndefined(); + }); + }); + + describe('.readOnly()', function() { + it('should return value', function() { + const doc = { readOnly: true }; + const d = new Schema(doc); + expect(d.readOnly()).toEqual(doc.readOnly); + }); + + it('should return false where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.readOnly()).toEqual(false); + }); + }); + + describe('.required()', function() { + it('should return array of required properties', function() { + const doc = { required: ['prop1', 'prop2'] }; + const d = new Schema(doc); + expect(d.required()).toEqual(doc.required); + }); + + it('should return false where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.required()).toBeUndefined(); + }); + }); + + describe('.then()', function() { + it('should return value', function() { + const doc = { then: {} }; + const d = new Schema(doc); + expect(d.then()).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.then()).toBeUndefined(); + }); + }); + + describe('.title()', function() { + it('should return value', function() { + const doc = { title: '...' }; + const d = new Schema(doc); + expect(d.title()).toEqual(doc.title); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.title()).toBeUndefined(); + }); + }); + + describe('.type()', function() { + it('should return single type', function() { + const doc: v3.AsyncAPISchemaObject = { type: 'object' }; + const d = new Schema(doc); + expect(d.type()).toEqual(doc.type); + }); + + it('should return array of type', function() { + const doc: v3.AsyncAPISchemaObject = { type: ['object', 'array'] }; + const d = new Schema(doc); + expect(d.type()).toEqual(doc.type); + }); + + it('should return false where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.type()).toBeUndefined(); + }); + }); + + describe('.uniqueItems()', function() { + it('should return value', function() { + const doc = { uniqueItems: true }; + const d = new Schema(doc); + expect(d.uniqueItems()).toEqual(doc.uniqueItems); + }); + + it('should return false where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.uniqueItems()).toEqual(false); + }); + }); + + describe('.writeOnly()', function() { + it('should return value', function() { + const doc = { writeOnly: true }; + const d = new Schema(doc); + expect(d.writeOnly()).toEqual(doc.writeOnly); + }); + + it('should return false where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.writeOnly()).toEqual(false); + }); + }); + + describe('mixins', function() { + assertExtensions(Schema); + assertExternalDocumentation(Schema); + }); +}); diff --git a/test/models/v3/server-variable.spec.ts b/test/models/v3/server-variable.spec.ts new file mode 100644 index 000000000..0a4c0e98b --- /dev/null +++ b/test/models/v3/server-variable.spec.ts @@ -0,0 +1,34 @@ +import { ServerVariable } from '../../../src/models/v3/server-variable'; + +import { assertDescription, assertExtensions } from './utils'; + +const doc = { + description: 'Secure connection (TLS) is available through port 8883.', + default: '1883', + enum: ['1883', '8883'] +}; + +const sv = new ServerVariable(doc, { asyncapi: {} as any, pointer: '', id: 'doc' }); + +describe('Server Variable ', function() { + describe('.id()', function() { + expect(sv.id()).toMatch('doc'); + }); + + describe('.hasAllowedValue()', function() { + it('should return true when enum is passed', function() { + expect(sv.hasAllowedValues()).toBeTruthy(); + }); + }); + + describe('.allowedValue()', function() { + it('should return enum object', function() { + expect(sv.allowedValues()).toEqual(doc.enum); + }); + }); + + describe('mixins', function() { + assertDescription(ServerVariable); + assertExtensions(ServerVariable); + }); +}); diff --git a/test/models/v3/server.spec.ts b/test/models/v3/server.spec.ts new file mode 100644 index 000000000..354d60409 --- /dev/null +++ b/test/models/v3/server.spec.ts @@ -0,0 +1,206 @@ +import { Channels } from '../../../src/models/channels'; +import { Channel } from '../../../src/models/v3/channel'; +import { Messages } from '../../../src/models/messages'; +import { Message } from '../../../src/models/v3/message'; +import { Operations } from '../../../src/models/operations'; +import { Operation } from '../../../src/models/v3/operation'; +import { Server } from '../../../src/models/v3/server'; +import { ServerVariables } from '../../../src/models/server-variables'; +import { SecurityScheme } from '../../../src/models/v3/security-scheme'; +import { SecurityRequirements } from '../../../src/models/security-requirements'; +import { SecurityRequirement } from '../../../src/models/v3/security-requirement'; + +import { serializeInput, assertBindings, assertDescription, assertExtensions } from './utils'; + +import type { v3 } from '../../../src/spec-types'; + +const doc = { + development: { + protocol: 'mqtt', + protocolVersion: '1.0.0', + url: 'development.gigantic-server.com', + variables: { + username: { + default: 'demo', + description: 'This value is assigned by the service provider, in this example `gigantic-server.com`' + } + } + } +}; +const docItem = new Server(doc.development, { asyncapi: {} as any, pointer: '', id: 'development' }); +const emptyItem = new Server(serializeInput({}), { asyncapi: {} as any, pointer: '', id: '' }); + +describe('Server Model', function () { + describe('.id()', function () { + it('should return name if present', function () { + expect(docItem.id()).toMatch('development'); + }); + }); + + describe('protocol()', function () { + it('should return protocol ', function () { + expect(docItem.protocol()).toMatch(doc.development.protocol); + }); + }); + + describe('.hasProtocolVersion()', function () { + it('should return true if protocolVersion is not missing', function () { + expect(docItem.hasProtocolVersion()).toBeTruthy(); + }); + + it('should be false when protocolVersion is missing', function () { + expect(emptyItem.hasProtocolVersion()).toBeFalsy(); + }); + }); + + describe('.protocolVersion()', function () { + it('should return value', function () { + expect(docItem.protocolVersion()).toMatch(doc.development.protocolVersion); + }); + + it('should return undefined when protocolVersion is missing', function () { + expect(emptyItem.protocolVersion()).toBeUndefined(); + }); + }); + + describe('.url()', function () { + it('should return value', function () { + expect(docItem.url()).toMatch(doc.development.url); + }); + }); + + describe('.channels()', function() { + it('should return collection of channels - single channel', function() { + const doc = serializeInput({}); + const d = new Server(doc, { asyncapi: { parsed: { channels: { userSignup: { address: 'user/signup' } } } } as any, pointer: '', id: 'production' }); + expect(d.channels()).toBeInstanceOf(Channels); + expect(d.channels().all()).toHaveLength(1); + expect(d.channels().all()[0]).toBeInstanceOf(Channel); + expect(d.channels().all()[0].address()).toEqual('user/signup'); + }); + + it('should return collection of channels - multiple channels', function() { + const doc = serializeInput({}); + const d = new Server(doc, { asyncapi: { parsed: { channels: { userSignup: { address: 'user/signup' }, userLogout: { address: 'user/logout' } } } } as any, pointer: '', id: 'production' }); + expect(d.channels()).toBeInstanceOf(Channels); + expect(d.channels().all()).toHaveLength(2); + expect(d.channels().all()[0]).toBeInstanceOf(Channel); + expect(d.channels().all()[0].address()).toEqual('user/signup'); + expect(d.channels().all()[1]).toBeInstanceOf(Channel); + expect(d.channels().all()[1].address()).toEqual('user/logout'); + }); + + it('should return collection of channels - server available only in particular channel', function() { + const doc = serializeInput({}); + const d = new Server(doc, { asyncapi: { parsed: { channels: { userSignup: { address: 'user/signup', servers: [doc] }, userLogout: { address: 'user/logout', servers: [{}] }, userCreate: { address: 'user/create' } } } } as any, pointer: '', id: 'production', }); + expect(d.channels()).toBeInstanceOf(Channels); + expect(d.channels().all()).toHaveLength(2); + expect(d.channels().all()[0]).toBeInstanceOf(Channel); + expect(d.channels().all()[0].address()).toEqual('user/signup'); + expect(d.channels().all()[1]).toBeInstanceOf(Channel); + expect(d.channels().all()[1].address()).toEqual('user/create'); + }); + }); + + describe('.operations()', function() { + it('should return collection of operations - one operation', function() { + const doc = serializeInput({}); + const d = new Server(doc, { asyncapi: { parsed: { operations: { someOperation: { channel: {} } } } } as any, pointer: '', id: 'production' }); + expect(d.operations()).toBeInstanceOf(Operations); + expect(d.operations().all()).toHaveLength(1); + expect(d.operations().all()[0]).toBeInstanceOf(Operation); + expect(d.operations().all()[0].id()).toEqual('someOperation'); + }); + + it('should return collection of channels - multiple operations', function() { + const doc = serializeInput({}); + const d = new Server(doc, { asyncapi: { parsed: { operations: { someOperation1: { channel: {} }, someOperation2: { channel: {} } } } } as any, pointer: '', id: 'production' }); + expect(d.operations()).toBeInstanceOf(Operations); + expect(d.operations().all()).toHaveLength(2); + expect(d.operations().all()[0]).toBeInstanceOf(Operation); + expect(d.operations().all()[0].id()).toEqual('someOperation1'); + expect(d.operations().all()[1]).toBeInstanceOf(Operation); + expect(d.operations().all()[1].id()).toEqual('someOperation2'); + }); + + it('should return collection of operations - server available only in particular channel', function() { + const doc = serializeInput({}); + const d = new Server(doc, { asyncapi: { parsed: { operations: { someOperation1: { channel: { servers: [doc] } }, someOperation2: { channel: { servers: [{}] } } } } } as any, pointer: '', id: 'production' }); + expect(d.operations()).toBeInstanceOf(Operations); + expect(d.operations().all()).toHaveLength(1); + expect(d.operations().all()[0]).toBeInstanceOf(Operation); + expect(d.operations().all()[0].id()).toEqual('someOperation1'); + }); + }); + + describe('.messages()', function() { + it('should return collection of messages - one message', function() { + const doc = serializeInput({}); + const d = new Server(doc, { asyncapi: { parsed: { channels: { someChannel: { messages: { someMessage: { messageId: 'messageId' } } } } } } as any, pointer: '', id: 'production' }); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(1); + expect(d.messages().all()[0]).toBeInstanceOf(Message); + expect(d.messages().all()[0].messageId()).toEqual('messageId'); + }); + + it('should return collection of messages - more than one messages', function() { + const doc = serializeInput({}); + const d = new Server(doc, { asyncapi: { parsed: { channels: { someChannel1: { messages: { someMessage1: { messageId: 'messageId1' } } }, someChannel2: { messages: { someMessage2: { messageId: 'messageId2' }, someMessage3: { messageId: 'messageId3' } } } } } } as any, pointer: '', id: 'production' }); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(3); + expect(d.messages().all()[0]).toBeInstanceOf(Message); + expect(d.messages().all()[0].messageId()).toEqual('messageId1'); + expect(d.messages().all()[1]).toBeInstanceOf(Message); + expect(d.messages().all()[1].messageId()).toEqual('messageId2'); + expect(d.messages().all()[2]).toBeInstanceOf(Message); + expect(d.messages().all()[2].messageId()).toEqual('messageId3'); + }); + + it('should return collection of messages - server available only in particular channel', function() { + const doc = serializeInput({}); + const d = new Server(doc, { asyncapi: { parsed: { channels: { someChannel1: { servers: [doc], messages: { someMessage1: { messageId: 'messageId1' } } }, someChannel2: { servers: [{}], messages: { someMessage2: { messageId: 'messageId2' }, someMessage3: { messageId: 'messageId3' } } } } } } as any, pointer: '', id: 'production' }); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(1); + expect(d.messages().all()[0]).toBeInstanceOf(Message); + expect(d.messages().all()[0].messageId()).toEqual('messageId1'); + }); + }); + + describe('.variables()', function () { + it('should return ServerVariables object', function () { + expect(docItem.variables()).toBeInstanceOf(ServerVariables); + }); + }); + + describe('.security()', function() { + it('should return SecurityRequirements', function() { + const doc = serializeInput({ security: [{ requirement: [] }] }); + const d = new Server(doc, {pointer: '/servers/test'} as any); + + const security = d.security(); + expect(Array.isArray(security)).toEqual(true); + expect(security).toHaveLength(1); + expect(security[0]).toBeInstanceOf(SecurityRequirements); + + const requirement = security[0].get('requirement') as SecurityRequirement; + expect(requirement).toBeInstanceOf(SecurityRequirement); + expect(requirement.scheme()).toBeInstanceOf(SecurityScheme); + expect(requirement.scopes()).toEqual([]); + expect(requirement.meta().id).toEqual('requirement'); + expect(requirement.meta().pointer).toEqual('/servers/test/security/0/requirement'); + }); + + it('should return SecurityRequirements when value is undefined', function() { + const doc = serializeInput({}); + const d = new Server(doc); + expect(Array.isArray(d.security())).toEqual(true); + expect(d.security()).toHaveLength(0); + }); + }); + + describe('mixins inheritance', function () { + assertBindings(Server); + assertDescription(Server); + assertExtensions(Server); + }); +}); diff --git a/test/models/v3/tag.spec.ts b/test/models/v3/tag.spec.ts new file mode 100644 index 000000000..04086f139 --- /dev/null +++ b/test/models/v3/tag.spec.ts @@ -0,0 +1,19 @@ +import { Tag } from '../../../src/models/v3/tag'; + +import { assertDescription, assertExtensions, assertExternalDocumentation } from './utils'; + +describe('Tag model', function() { + describe('.name()', function() { + it('should return the value', function() { + const doc = { name: 'LeChuck' }; + const d = new Tag(doc); + expect(d.name()).toEqual(doc.name); + }); + }); + + describe('mixins inheritance', function() { + assertDescription(Tag); + assertExtensions(Tag); + assertExternalDocumentation(Tag); + }); +}); diff --git a/test/models/v3/utils.ts b/test/models/v3/utils.ts new file mode 100644 index 000000000..ee1f2750d --- /dev/null +++ b/test/models/v3/utils.ts @@ -0,0 +1,150 @@ +import { BindingsV3, ExtensionsV3, ExternalDocumentationV3, TagsV3 } from '../../../src/models/v3'; + +import type { Constructor } from '../../../src/models/utils'; +import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from '../../../src/models/mixins'; + +type DeepPartial = T extends object ? { [P in keyof T]?: DeepPartial } : T; + +export function serializeInput(data: DeepPartial): T { + return data as T; +} + +export function assertBindings(model: Constructor) { + describe('.bindings()', () => { + const doc1 = { bindings: { amqp: { test: 'test1' } } }; + const doc2 = { bindings: {} }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a collection of bindings', () => { + expect(d1.bindings()).toBeInstanceOf(BindingsV3); + expect(d1.bindings().length).toEqual(1); + }); + + it('should return an empty object', () => { + expect(d2.bindings()).toBeInstanceOf(BindingsV3); + expect(d2.bindings().length).toEqual(0); + expect(d3.bindings()).toBeInstanceOf(BindingsV3); + expect(d3.bindings().length).toEqual(0); + }); + }); +} + +export function assertDescription(model: Constructor) { + describe('.hasDescription()', () => { + const doc1 = { description: 'Testing' }; + const doc2 = { description: '' }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a boolean indicating if the object has description', () => { + expect(d1.hasDescription()).toEqual(true); + expect(d2.hasDescription()).toEqual(false); + expect(d3.hasDescription()).toEqual(false); + }); + }); + + describe('.description()', () => { + const doc1 = { description: 'Testing' }; + const doc2 = { description: '' }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a value', () => { + expect(d1.description()).toEqual(doc1.description); + expect(d2.description()).toEqual(''); + }); + + it('should return an undefined', () => { + expect(d3.description()).toEqual(undefined); + }); + }); +} + +export function assertExtensions(model: Constructor) { + describe('.extensions()', () => { + const doc1 = { 'x-test': 'testing', test: 'testing' }; + const doc2 = { test: 'testing' }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a collection with extensions', () => { + expect(d1.extensions()).toBeInstanceOf(ExtensionsV3); + expect(d1.extensions().length).toEqual(1); + }); + + it('should return a empty object', () => { + expect(d2.extensions()).toBeInstanceOf(ExtensionsV3); + expect(d2.extensions().length).toEqual(0); + expect(d3.extensions()).toBeInstanceOf(ExtensionsV3); + expect(d3.extensions().length).toEqual(0); + }); + }); +} + +export function assertExternalDocumentation(model: Constructor) { + describe('.hasExternalDocs()', () => { + const doc1 = { externalDocs: { url: 'test.com' } }; + const doc2 = { externalDocs: {} }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a boolean indicating if the object has externalDocs', () => { + expect(d1.hasExternalDocs()).toEqual(true); + expect(d2.hasExternalDocs()).toEqual(false); + expect(d3.hasExternalDocs()).toEqual(false); + }); + }); + + describe('.externalDocs()', () => { + const doc1 = { externalDocs: { url: 'test.com' } }; + const doc2 = { externalDocs: {} }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a externalDocs object', () => { + expect(d1.externalDocs()).toBeInstanceOf(ExternalDocumentationV3); + expect(d1.externalDocs()!.json()).toEqual(doc1.externalDocs); + }); + + it('should return a undefined', () => { + expect(d2.externalDocs()).toEqual(undefined); + expect(d3.externalDocs()).toEqual(undefined); + }); + }); +} + +export function assertTags(model: Constructor) { + describe('tags', () => { + const doc1 = { tags: [{ name: 'test1' }, { name: 'test2' }] }; + const doc2 = { tags: [] }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return an array of tag objects', () => { + expect(d1.tags()).toBeInstanceOf(TagsV3); + expect(d1.tags().length).toEqual(2); + }); + + it('should return an empty array', () => { + expect(d2.tags()).toBeInstanceOf(TagsV3); + expect(d2.tags().length).toEqual(0); + expect(d3.tags()).toBeInstanceOf(TagsV3); + expect(d3.tags().length).toEqual(0); + }); + }); +} \ No newline at end of file From 6de1923554ce000a524ce4bf725e9299a69c02a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Tue, 8 Nov 2022 14:40:18 +0100 Subject: [PATCH 061/126] chore: add reusable tags and externalDocs and move them to the info object (#664) --- asyncapi-parser-2.0.0-next-major.8.tgz | Bin 0 -> 326193 bytes src/models/components.ts | 8 +- ...rnal-docs.ts => external-documentation.ts} | 0 src/models/external-documentations.ts | 11 + src/models/index.ts | 2 +- src/models/mixins.ts | 2 +- src/models/tags.ts | 1 + src/models/v2/channel.ts | 2 +- src/models/v2/components.ts | 31 +- ...rnal-docs.ts => external-documentation.ts} | 4 +- src/models/v2/index.ts | 2 +- src/models/v2/info.ts | 4 +- src/models/v2/message-trait.ts | 2 +- src/models/v2/mixins.ts | 4 +- src/models/v2/operation-trait.ts | 2 +- src/models/v2/schema.ts | 2 +- src/models/v2/tag.ts | 4 +- src/models/v3/asyncapi.ts | 54 ++- src/models/v3/channel.ts | 2 +- src/models/v3/components.ts | 154 ++++++++ src/models/v3/contact.ts | 38 ++ ...rnal-docs.ts => external-documentation.ts} | 2 +- src/models/v3/index.ts | 6 +- src/models/v3/info.ts | 82 +++++ src/models/v3/license.ts | 26 ++ src/models/v3/message-trait.ts | 2 +- src/models/v3/mixins.ts | 4 +- src/models/v3/operation-trait.ts | 2 +- src/models/v3/schema.ts | 2 +- src/models/v3/tag.ts | 2 +- src/spec-types/v3.ts | 28 +- test/models/v2/components.spec.ts | 60 +-- ...spec.ts => external-documentation.spec.ts} | 2 +- test/models/v2/info.spec.ts | 2 +- test/models/v3/asyncapi.spec.ts | 165 +++++++++ test/models/v3/components.spec.ts | 343 ++++++++++++++++++ test/models/v3/contact.spec.ts | 95 +++++ ...spec.ts => external-documentation.spec.ts} | 2 +- test/models/v3/info.spec.ts | 149 ++++++++ test/models/v3/license.spec.ts | 47 +++ 40 files changed, 1270 insertions(+), 80 deletions(-) create mode 100644 asyncapi-parser-2.0.0-next-major.8.tgz rename src/models/{external-docs.ts => external-documentation.ts} (100%) create mode 100644 src/models/external-documentations.ts rename src/models/v2/{external-docs.ts => external-documentation.ts} (85%) create mode 100644 src/models/v3/components.ts create mode 100644 src/models/v3/contact.ts rename src/models/v3/{external-docs.ts => external-documentation.ts} (97%) create mode 100644 src/models/v3/info.ts create mode 100644 src/models/v3/license.ts rename test/models/v2/{external-docs.spec.ts => external-documentation.spec.ts} (96%) create mode 100644 test/models/v3/asyncapi.spec.ts create mode 100644 test/models/v3/components.spec.ts create mode 100644 test/models/v3/contact.spec.ts rename test/models/v3/{external-docs.spec.ts => external-documentation.spec.ts} (96%) create mode 100644 test/models/v3/info.spec.ts create mode 100644 test/models/v3/license.spec.ts diff --git a/asyncapi-parser-2.0.0-next-major.8.tgz b/asyncapi-parser-2.0.0-next-major.8.tgz new file mode 100644 index 0000000000000000000000000000000000000000..53346f295dce0611d17f1a7d1317091d430977db GIT binary patch literal 326193 zcmb4~Q+u9W*M)<|xMRDqZL_g$+iqhwwr$(CZKp{ZtFd!^&-)X;wXrtl?mCV&#+>7v z#8I$d|2q)CWzR3etskk(-To)4u(|vq*I0wwW%7I*a-wtfTRDG`9;Pqj%+Zaf@?#mi zDKbLBU%L8EvO8rd4ExjLQ~h@aYJcVMKJ%(`AoAt~ML8X=6={Y$#)5z=LBSadS4YdS zh7ztU-CtR{S+jliH`g3oT+dILO0^wu74QF^_fr4intR6&Dq%58zi{8(e1GL$5@ZS& zIbn74i{UlS4ppQ~{*X$yP)6g^^;>fN`W_)A^7G1$Ba1I3h4J2JeRKWg*`|9(6~{m z#DJJEuUqKt;wD`b$?k3Tq8@uh898|BgUW}!%15$F!2|cU;|}%I(y33#nL<2|{w3=r@5$P%^SW`2o#?wY zYiGNgpGzXqM?}8fA}-P(H&ZN~v@GNW`OpP>XZv){Usr-sWJEYx$=4S2=({QMm@neT zv8{%cai-wyKn12nFxpXUwTK}Rd|@xtha54RPWA}pX!PQRaE18-jbUmqM5R=&Bw=vD ze(GthHL!Vp`L|s3;)0ijGLc{0_;Q3J`sJ(A(81)#47WkEC)9mrSM|ugCu!s*&WKWH z%;3?=N+}48t5zv(jWVhe1Y9=tl@lk-k4CR5S`-B07)>|1NmL3{0TN>_-I%EoC_i#U zP#{l+M~3{Glur^t)2@PsVeGzIzUN%|t?uJKu_#&jm|Q^#^LJ)x3n;qh5&{9o%yN9| z&0Sj`eMskw;QyHWqrxP4n3-^xs=?`1@hl1@tnT=u!C`Y?Qx~oD@ym4X02#@uSOoW5 z-OkN6O=Y`~RMwEj?EKS+IpClRGma4923BD*A9Ws&{)YAIe9 z%^MlVll(d`p@C^TN&qhHiu$Zzrd9 zV!*saH`>Ey7rt;!aw!>@WC(h+2H2#9Qql)4e-xvl6N}2JlB0~6;3b0LoW3+ei(unS zsG~dv-}mPG$1r)1%cFwxflHML-$4!R{P*Zuja<+))C8zn!TeGiq9|xZNAm5=f&XNg zaYW~oP__8-d8#5P43Wc0A3mTWD)M|BsHwY=mrmjHy)b!UPE+G$%)lfZ-`nDZrvA zsN5oC{+X&)MR!Cj(Mty}MR|Zcr9VSg7H&Bui!4aH%S?N1_@gQi{2@>VD~K#GY|-nn z%%6s5%?(Q?owv{Y15Oo%kv&EvJ?zsqKllY5{FXsZC+E|SK=eKC;D=0!Vv|P&X z6iTweqNgF!iZyR^W=DFXx|-cTAQR16zR1CN2H>=5#{y$;ZAH1ak1`{yXpHL%bm9#; zycEAj5_I@M=s!bk%}Sp1^Ksv!{Dd*aj>!%ilMdu16Eskv8>UTa&!T2Qoo0ti8|q8a&kk;Jxlfx7<2zV1N3$9w{faX}@P@1s zi2R@g4!@sl8L0*PmBFQqA-!Aj3=UMVfJ;TcX?1{TDVj@v(^tTouW1t@v*v^bPZNex zi}I3x_l9fzpngqnC39yWJk1@IM5Le3k8y$|Y-5}JF{v5{d61?T^FigzPmwvu1Oa=j z2PHVD)@ZzpOHqUv;fYe57ynoy!-qzznJ$6Na_c87q4yo48WTN1yQUZ13no^f>dPi0 z1mUeEyEVVRf;J9W_-|aWXxS_U;xYd>ABYqdas}kz)pup_^iY5g;^WM;E$7>xnPCpv zZoF3($>t+If3X($E?l0Y_81CO|)<#qLo^-8Z?BI(nUMB1zeVn-FN#PS zBpz>n4IziNKyd_&hDD4~D3qd>y#0TgE?wwWDy7_;4Ku;y;>kHXPJxOp}Ie*{1F^1g!@kV?l$Pz1f4!0P2lny z_7cR7R>lgq=sJ7TE^PkP~VQXYQ6WM6>Djd{?lm(1U3BnHa} zF-=K1hUBRUM_-{^CY@S?-tUB$V;1s;{*FXP%>DVtl{3;M+eWC{NED2O61vVU2tqS^ z_|Ff@`asL=WsNJh)($!@ul!H%<9v_;sva5rpc<2%xl6+Olb|o-gJZ9=i(LhK|!`78S}jTXypFAxK5dQjr}b;zQy!ud*P?T5CQBo`p+hd!6bLE@3aaE7g`?WD1&0~ zs*4MU>sO?@mto~x-kGc-)R}ZHhpwiKuv1=<^efBTIL{dN^M5+wXqrjPoibq+B%Q5m zzopIpi9+WHT(u`zO1zju64EZY+x_9u4N~i9@pC(0)Cveyk%=#P zT+Bo(wFI-pahn)b`+==95Gh9^EL69OXlXNyyDn}8zf145lGz}(4zDT7X;nlFjhm_3 znU<@mybK?S>b8kCggA_YS&bQjSUpJ@yDw~c44ru9X3v|SU0(Kr7&(nV0X}s_RiPQ? zLgFScGc{rliIDsgN`@2)f?l{)Yu;#6e@xn7s^#~B5DYXMEtWBur}}UeA06J%dCE*_bfPPn(53D z6;?rtXd6^ftKaZGe%>eTQcdpZ_@g(QYMNTCv4`Xyc?1@T0Y8v?e9&Q>GbkRhnPQ)i zAEmYC|dnAt1-U$0>qX0j)iiP|&I=Q;}vN`|3bZ+FPK?v)S2!SK_0}C6x zuN&%vE-C7HHZ63Fv*u!wmn3ip#X~Ew$$U>YqaYue;)TH6%|w3&<49kf7#^H&Zwqlr67blC=Q9SK&0WbA2Ggi&iDRWWzx>Qi>= z%<`YsZiaYKTf%)<^&cx~W3vmlmG^6DV^U)f?EpXT>-*N8Vzz&;5Ab!Al~gojdUEy4 zSNH3RX?BVWIQlqQ$Xd(47Po_WLHH@f#*q~9BBSY=L<>(QWKHt2%z@MKjg~cHku?g+ zD3>7T(@?JG@&+F0WLRKH)m&eQTu&W=R4{(0NJelS%@b-B6w+}YdkB8UW)oXeX z#^8=~x5o#B@bq5Cw8wYj=MP+8-I6A?+O^fk@gXpOk-Fh6)IwfOGgr-vV{3J=?-lwrTnx+OSge+lR@=iuHSxQqSTCkd)`{bo`H@r#OZls&HKVuX7 zA;g=M7#98EKVLe2MU^ptSc*~nNb)Z`03}S08fZ?4e^QUvM1`6Vfsx}vg^>}&1icGh4?fXRdzM5 z-1HhXzXS<-AoOf#Y?F*!7z)O02<3UTWyg|)TFGuh1A>-$x-1IcrCWKRVBrM%P}0+V z@@ZN*QdT>rYg9rkEuSZm-(py$FrBG%RMR~!kk46BFB-mVM-gYxfL!|7b$QJSlKYKSL^m(L)|fGLM6g!`{Lcl{v90*o zhx}id3zXJz;f`QXP9zb3pm+I;0`h!L%wfzSL`9qoE?-N~mhqH7?$Ojelk}ppLebl{ zLa;VFz{BpAlgDI_pKtoCK` zpyIi4Wx_aPz#sQex;NKlU?wicb}*F4XxM>-9^Fftvw~w$Re^~9Q^8SvEQQM8Y`BG# zz{|CVMM}k}C@ERFP92lRPS_Gv$lZB|VQtm#J7~owAuyVk@CUaC-R>tE=T1G$F?Cmxt8@c6{cSHBx^S~y;w|2hJLXHaws#FZq-QvymkSh3QHm)UG3nX zapxF*FHG~$j{AvVL#OlruY~QmlX&#^+C_n)Yyy$Zj$uOEFhm=++Yl!bB41}eX<<5} zePu-ORA+Sbve9u4g6?K-aB0#h&5WayHD%M+TQ+n`oZ|uXyGvGpF^s`yJ%oSOYDaxrCP_5fHq{5x5Lkb$QVB>V)G#uP3j0go+y;p_SRC&g z8>TNz>LFMUh;6w8@qqhsPFW0jSH+Fr*dBp~H`_A!dw3^5`~s>3TiZTJ{5A{(ae*@2 zHkFk9x^f0nL3U>|{Xe#k3^5rS0*oT{6m$}BnLVEa8hnN` zhq4C0!fo&nG@J3VhWY_cMHtzZT@2khh*))EoMfeeHFYOTpwYSk_x9;JpZpqv2i4&U zN-k=mTJ4<3iAF_ttt_meGQp5ZxVvZXKZMzzy5zm?CXlQfc_Rzq=h26-v;Y2yd)dc~ z&maHU*0i+UvhM%*dQ;+~HO{f_!kJUipOVdj@T|Rr)Y1}6)fhwDTBwPk_oJ@tUZRKo zc80@Plegv51Lplo8ONNLti9!mW8_IEsE1=MXxU<=Tc!`GyXDbM_TntI|D!azc*51Y zx^@1qHpBYg3KdBkbj#RJVnie@m>-hf9(+6gonL)DhP%MV)=uRkAk_^7Te*sA-N)G* zk+we6EY{8wYomdJKkkO=g=jAiBC6e|Grjx5F*`R4iS|Su5oL1GT-Vo~FfvsqH&tmq zKZrk6d3mz+e|quaivS93(lG4XyvjbV-R`PlJKi`JT7LEL{Wr-9Yhd{2H$tPEwJJ%@y$2gtd{@0On=BKp=pcgO0OCV${Yr( z?6xP9Z6bE+?^<-Ew$iS$nmSf`7}x}Y2+AH=<%4a7CQq5Bo-!;9)HCdeL-j z@YqHLDFB9nsv2o(Q($x^kHGBhbSFY6zGZ;G+gCq{9Fu5&Ffxf~NBx)%=VIj*b}gKu zszcd}e_8=xe{+@k*mt#~1L#%)n)M`S{v2+MJGxc%%g0qUDYcH8{iz?P2#Y;7CFjny zuljCPN3`-md@FAYdGbOkix%3n3wf)+SWd0j-IN0?o(@-{V-b|XGQgRY)ityD1E}yw4>?1xjbvpU z7h?w+b1p%j9)w38)vG6ovbQY_61LODbFj`tGE%c3*7R?-jL z8s_)*<*`cKlqny=o7iNtd3TWA$G$&{sQ| zr>C(^t((7C;EJRe)2sr$g=$sJeNgDRaVF&%Vv9CU4QnoKmdeduXv9YTpw1C4C}Mo2 z8GMd`zK$qrA@1LkUAcKBZaLgMo*_QKfzJxfb^;i z_2sR(roRN85Vu1SMly**q66P@GgJS$EC|Y52u<1c?kuh5M0)CW<|Dtg~$)T z67c%}IVxhwl?G)a-q5=#Y29W)CldL?OO8{c&HYt(j(sIRJ&;`G?StbaQ%IM}Q8v`` zEw9}ivzR$>`=r^exevaDfN7nggzak~@}+JsxYgTQgni><1l#N{EHHrj^O=zMoMuv= zgvhzv--IO5mtFKajwNW5Et^H) zHR9pSKqh?r*>|USJ(gsg5byqrLkga|nL^vnA==YJ`%p-x`Lrt&~+sj5y zj}+uCWVjop%UB$t5cR{Drmc%k()iL?xQ#QsaPFXlE`-xaC{ldx^tE=U^uEv>Q3Q(X zXLh7t4Cv?>NsGKHlLU8ZAmL0H=q*;9gkyrCM6AGBJSBwtKxcM6Bb5~>#f9xu;f&@d z+$Qj4YG>Rj>*)+#IZNnYQ)f`V`i@BdbW-g7^>N~{kf6N8H0GaRq8CP>)@5|r{&>by%dRZarliI&M+=n5_ z_nroa#llPhgP&rOv#8M9Us#m+bRIFQ(};j$Q4gyI&oy*X!j)QOFKRv4({sLX=P{_< z+*jkv{_;UC+niA2%jor{QoYit)R%3st?*#jS!nsjAb=H~xH#p$7r#7Y8@|wn0dNGg zTv|qU?C}2aX9N^oU7Ij~zMiHw)pviQo!7a{>|U6+zD*rwgmg5Z!!Q=uwsx>zeE_WH z{1H}EcLB9%Q$A2*J;r9}@6DDzXC@kqjed4@QG!(JRJ5~_L`av8=w)>t1&C3*KwW2b1mD+qRPh7J)OB-i%^JC70YFd~TaC|1qdM8}@H>rPPOW_2{ zgGlS%FDeq7E~^o0Ys)+s$3><%b{Ft7c)y>&SeV8)lq2Sqhe!s6(3KxFMVRD>7x26n? z>Z+;4*@jUL(u0CJ?jN3DK^K$6ADOyGELFyE6kfKFg*rHBJ3nKm41K>`JHZUwqIMw@ z&~zdfs7YkQG;=WK9I?QdqV+6as?6S(H2yO@6X|ZRC*L(>2Q6J-tJ2#|!*G9TWZ6&m z10_X2`MXG;za1(?*b}*i)?_vr0?V}-dgyYFU2>3Y^B^0pyLo!@+44xE`vDqeMC*DS z{2;9?f38aQHC>h*ON$YU@d!TEj2A16e!@w-^&+9%#c2}Ohgw!kwdm4uAMLR{dLUU1 z_hVZdHahelB0ZIUE5ELsdTQbQtz>L-0^I}dYs%L6ylMK5`E?GPi?zm7+aeosM8YfR zHRv-hNxn*iZ7J`P3G#OZQw>20p$mbS&@MbS-pSf4P14CN#`V7?xAAYy7i=*&vHU!f z8@jdjy+va|zgacAl5!cquh_C9?nbC%ZN^dHZFa_Q{Fu&7U%nk~&%%?eCM$4wna;LrVQPeZBRWnur-cV+$tWX|O52t)yO zPXJ*3=`Z^*PahH43j+KXZ)#2J4-2`#sNR7#kJhPo|E?|fk7rLgfUVQ7%mIA*7^08( z*+0~D^B_6*qGKq!w(Q4NoHv~1UsI90PdIs^ag zL02JR=Jhv?>@!~Et>EfJM!EJGjf`ta#toGz)B>Z4M;3!}nWsfibA zrUJKCOepHh(2H)23>g!v_(cuL-B?L(7_EhKZ6JkGxAZ{w|~zAV63&yPs1 zAAM!-R5=gHk$x!nbKzCM4!J?a}kJuAf%$ZIxzF{L?fSHB=x zUnmdGafF$o8H)T+^Gibm3mzuHAdp|?#fC?DTH#>QIP$heeTMbi8a-w`uu#sp&=nJ^ zIzYTO4#E}M*e}D4h0CLG;J-jv*yYnUuqsfDkEpi-q>$IH0CRLWq(Vo}Yq@Vr0ewa_T2m~RAp4lc zZ*q?FvswIBdV0wC8f%Ow|J?df_}LmrSV0iRk>>N|d}{Y6dc>jSEgd#E*IK6{aytB&o z7~IHt8&^<2g0m`^t>#}X;=vqO=8wMr5%*`g%;8*>>#-v1ZF$Di@7y91!4s~`?)uhj zX8P-F%r()%xXhA$s7{dno`E>^Rh2N_J0#pB)f=UBP~;xv#K58hsQCAFqn^3_d9_#Z zwRe?se66qmbhWkV?*UI>&q6D8;A?f@LXm3$xP`23+|PR2^Z$V=Bn&@V2X)ia#Rs^g z*EF$nIKW8K7a*8xT(DPcq7p~hlc9Dp!Y-f4UqMPjN4CLt)nsO8j?ihfstC1>$okkC z>5X)Cpdqv>Sg}VO=YoY1A#r}=myzON^KKnGU+MJnDJ6|zuw|U9Ie5AUtdQ`{>={Ng zrYakst9cC-0m13Q-b;fZZ39CNL*tb_dT4ui7I3#o=BPE7+Q>#JqqA2@E1?JxP4LLl z^Nl3y*|6I}B7Td&$$s!z5LWBoz}o{(`cHR^r!Iwr)k_4#eqQhQH~T4`UO7qM#l#$g zASN=1fOzn6`$k0KRz9= zK&E|!C9St7<%`N_~#;iIXvKG?zn!Lf6IvgtC|VU~RN@5ir)4CKnFKQ1196yTA^3f~JL_ zdK5(pUcA+BUERvEj+w|YCK3$Qrovqkp`F8SCc<}Y=m#~B?HnocYNfX*q>G}ck>4%~ zkKFOzd6)IY+5%YEYvAB8I5qPIwphF21X+{tEc{XR>=f7cPD?GT2cp{%rNbs*s<}S% zJ}g#-c0*;3lQvve*okIx%StuQn7&pSV0fiw28A0+z50Eok6sLci@*O~hPu+IsKRd+ z<{F-a$^ZdTR}(_u;ish#zdkxEa5^&)z871+?D&%U#Qb_$>*ziEWHCg2duR9)PNQGj zlT)I=aIg0@t0t%CDone086|lhUz7=6AzU^*%9j={@;ba73W^S4kI}=PZc&0ILk!NUm(%Pd>dMOC(MUc_F)Xc{WI94M&T-6Z%tHp7U)Z7? zZCnL?QAo5>z#D)c_!R1g*4h;Mahj&`)0ltr{W6s^TBPu29r#tV-tIsBiVQ1)>@M*_ z#@h=Qgvpaa*OjxTKc9tloT)Qf`G(uOHPk9D9_RwB<$gXtRn<)|b?--s>2|tSiRk4q z@R=FhXi4%)g`$^W)oh-SeIsY*?a2@x4QgT+r@qAmoezC<>8D~7^{*=n!u1jlRNle&f0;F+zxG+oj#;Jy=qLO;a zqZ)%u-te#=l)s%%!G8!ZZ^iy}9IVIpu--d>#q`v-A~>VOCbSUw(MqWOB7FQ&@J+uCk7V}nMKkq!Wk}0!;zlu1_}8hM@LMRQN7piK&XX|ZlO+}< zuWbREXdU$}_Dnwe+y*2nQM#E+re&ee1-tj@W)OP<^waj1fye`iyD>8y*UeEVTuBc30Evzh{@2U)+>VA)1FbGO1YnFivW}tyna%bim9? z9pipxgc<}pq`~r@{>NTPR4%6EFIPYlWr@SrlI-fqVO)3D>E8y36HCWuOFa z3$E;hGSY|US4HV}YZGeh-Fn{SA^rDhf@D9USnE+m-DMEYsA+`*R`tiIZxMC-*zKH&oclRHu0uV0OlCrzY_9$Jwicv2n` z?Cvtw_NhTIxHl4hFjsf}Ql#%2>4ub6=7_V78>;oX{sH4V-vsVi{@JUQJN?2!#ah-j zTD>%akzsZd5$h}$M<~Q)p5?WgwKWp`2uv3`7!iR){v)LQ8-(DyfICG=#j=G7tF&?& zGA)GiXhz|t1_{0o+;U`c27Cs~ZJ2aoh7zG~W}!j%#Zd=YnS}>gKqLmv#?&C1x~8MW zRa2GxMaYlA`7G&m9VRoHr-FA?+J-~d=E%g}lsh>M3s3Fpbqzwtk`2*^sAe<5v;qpq2)PEP%O%Bi#4Fsx{k6X-dwR0NQG0mwZuX@;F*N=ntg_~+JtM4 zFSh%tj95jRO=;QparaAOGqCK!IJI;7()7YlpALHcJX18c>YeaRHVyU+)Na zAK{M2U^PmKM9A_XU_RK`nf!O(NZ>?4d=`0*CxzsBR{O*v9!Z8uLL4EktF&3$O8LjB&WB}~u9#(ovv06`qiG5vBQxfkr-Ciwpdq=Gdu4>SaoGpRgLhoxpMZQnyROA#R!Y07NJAuw<3Trusm6outKuOU;UUH*ps#jAEx|MWU<9%w2jUu z$E!`zi9T^*sJh?VhzPwm%8=q@y-w%W58K_#{?-|4l~EF8Oe&B5aEBCyP4-SHSZXdu7Yl0pAu;m$AH-_VtNtv8NTFEhKK%t{r;%XaJflX)eN ze~G4ze`ngM12**yc}rwDJ-e}?Lp8EInLxP{29a;YhQ&JHi;=Cp34)L5pUM>#*Sxi^ z{%}~MAdhQL5x>$dv^XK!ui=cuf~7LGYokLX;}CYHQnnghg!Du^nu*9XN$$V*EJ@{v z5R}^}qTn?T>dWSdnH?L&H}&);*XPOF5zRDLx>*A^7`ETYpEJ`dyxW2(Ltf&iOvZ`W z_z-N5uci-@4t#zf2HDCDmWcb|E7Htn&8AZaqrgd@-RY>A`xVOSj8hL(<g!i{8Z8;Pd6joLqlFk46=iGT7IN|Y&iTN`o4O=5Qv4QJe)IV?7S027^{Dp(&W?^< zetTj_REo`(c-OyM-PRc`kD^ot&y#-MvGvTPM&(rT;-~z`bAUaqxQ;M zwax#x{D_*PUZYsPN~LyzUik>O@)ly_E7~Ghpp&Qc|110YP^m@1SP+efth^N;f93+i z&xU6Wdv=HXXP?)Xt8HC}ejcFr^7yo2+<4{)4ZuLD94Wa@2$;)X52(R_6|b0#qhDg77=DG z3;l}Y{(zf3|E6@V=-r2XTBB9Cavo^*ruJT$IdPzbc1WYnBtWa1U6_EQS8oQf=z#gv z_I%pDo^`+GRYmHHdEgN9EJRg|IBz$3Dvm36SILu%Ia~evukioKLEsL_D2~J~LH{pI z!9jQSE28hK@=qI>Gx2O!+p{Lr-@-gP{narcf1iJ~2Z@{j(tTaAWw%%iV3ha3@z<@=PFcX50&9S+3|=RM~7}Pa8=XunfXPW^Qqaj z)CU6qE2}};{TS~cL5jD%t?Ex8ZXFn!m+}N}z^@dhd8wCHF2ET5Tl*$xomF)Qktgy% z5!obKfRrjzl3qB-2iy18czecc$Zx@quv9wNEwR_0N~KNQi$#CtPa3iMn)n1GW9J(T zT{Pa94)JsDCD6_W7<$6YGt7@w}yS|vv$QsDiPp^93Rr;NI_Itz9EEo-a=0@pX zP60S?LrnX4Qu}*_DX8N;o8A9@B7aaZz>%XNl^ZN#t#n3I*_E4WQ)i= zU=oVbj;VAu*3~tzcPMm7x@$r<{W6CJc0msmzU$0)2l4d4G8dfVIo#%<2vWGI}u&}vGE(`LGza4 zq2)(lSk-=jKXvcad>}rI)HozaXXO@F+4Ex|i-WP>CBDc94YCN`%}yhDN^fRQvmVU(a(V6wo+?()mocYp^2{> zJ!ofwr?oSMVCKHhuDrHq;L71@`Ifi^sQcoN2OJydjUvC=91Hwkl$U^_N1(^#^j^Ve z&K_c5{fJjWlSnp)ORt(em&Vyt*>keiYSKTPs)O-swB#wzg8uhejKzyOh2lU_XQ zUS`$E9rw}!B(&zv4z6gZcdvR5uIZLJIx6Ew&;JVy?1jTv5l#V0BoBM};+aYY$`s$$Oy-v@;Q09}`O)`G1GFXRMc(J*sG@n9}HLYejh>F40XTd%HAb_pCDnA7T@r6T5ZMfH}wz z8k{?SbGuh(*6H|C0*z^;6CGdzdNA-;hr}F#cJ^LuT@PjoII4n0C z^1Ava+X4m0%QT#ZW%d#PXs=@ua!y)GX(Rt?PWG+i6}M3s|F7GY@RJtcIup=gDC)A3|x=UziDm@xPBmjI@t8vKqJU3k)2CA&!L?rPQ9n}JF$8@uqQp_gbv71W8!Uoa4i<~I(}YOZ1QAF~&dFARr~@TD>kgQ? zpoMY&>O;De?63@*r-0&C$}wVj@)az#UoEfz=Cik4N?) z!twYZPI-wn@Tmgd6v9rDu_30mt7Syl<=xO?jSYO8TPr7`Qd_oFOUyjoQAWg3cT3kN zlnEEMG9eZ0QPs5V_)OSe1{S@ia#hL)sk#zGuW+L)F2%~45tC`qyJp`|OR)ImHflMQ z%w1AJDBVq9%aiI_9b}l=CpIPDl^f>=4XMf-C@`P6Wd1$cP*`~TMM2M%wLHZdLU?3p zsO#gKo}gD8L@bF2*Ze&CH8JbB_RrhBs-+aLIuuIn0c?GNGC!ap7N`^g5dba8pL>Lb zuZ!7)pEsTAw{y8Q%T>OHN%Lfr)1!xn(_sU&6Vjop1tD zTR9nCy2JJ{A=b2?;zzGpeI^HAo)7Q{S}lPdZJ)eIaFjRmD_zcy4%_@&dVBwnw>|qV zTFYlzL$4clhE_KVJ(rI+e&{~E5;NKmzkHr-0`D&eedkxnQiOo^CZIk0?mx5hdH3JF z`St7JHZQ94=_J?T{VbwC`D75>yvGy_xRUT?7XSL`i&#{?O^F(6hm>U?QN&T;BIKF5 zD!3P(!`umvy;fs4zk0vk8gXDdvk!>h3V}YpTzvsgLO|7@i1W*m=8gETz0R(G?N#5= z8{p^-EFIMPR<5vA@wSS;*FiSNBd)Gc2ZBO!6fbh9ucF^XI&;H%w(3KyZ~AW1PW}D+ z{D3ReE&mYCI_}kOm|_~-poi*T6VSzKS0wpf(>o^gcLem?_#@F*$(`<9(w6M7hk7V< zosUexm(Mlg~6es>+-C8!pW-FfA z(kFTuKicPgYcM~T@8j#7F9G}_`2yMXO#`-{juUTrv-@sH@!a`DcFIOxrLE(yg(_G# zQ9Ktz?v^J59I7=LHlG>YKoNaYN%sGux~5COZsn`*Kj5@T4?Oc=ZX23bmK!-D(8WN! zo1W19j@+FC6nLUk&D89{##!7CD;Yt$uCpOYny))0Dxv#Hn~W|n|KAeCk5J;^-!PR7 z*@PG|6ozlQY_S_g;xBHF5e5{K$S`7Bf!f*BZz7)-$B^f8e2YYXek zun%aO{>;ndS)2COp6;;d-0S=TmHHuixVB<^IY#}5`dlx+0f$R~t;-wHDe*IaJqba% z2v{UtzfsQvPhSf1|GDii>{Hh)Dw5%ihy%=AvL3a@LZeqn<#&O?s1EPuq+;uJ%e52X> zGhDe=Q)+GRqP!-&n`Bb-QrKre93sPj6*vm>yE6Ea)|8G|T#X_(XuJsgTLQW~j+l&k zG7oPIYUe0jC+hPoKdP?5T^pw+lvunPUBVZzg8XtD3bW;0H(HC4>!UThOB|Oi=iiEg z%N1oxupr_!*E1&ij|)eE`c`xsx51_8;*o127C1pQPRF}adv|ByGqaC{P0#l2E8Ixi zbt$x(=1lA)E}Pzrw2nR)Uc#b7$||f(NMY_0DF>w}+cY&a(>6CWttwWVw62;0BXS+q z=(+&+5rd}O__GxIU*vggg1t$N$(_`Wx1^bdcr$|x`n3S5mTWz(^! zdeQ#@gFt-0CZTFkKmr~bg}kydRw!bjqe-W=wXw-!Yi6}I8}pdE%|g93J0;BBY^mm& z4U6Y)woq?v;m@8-@fLH5`zgHE#ciX~XJ~2(tGGU_04BFE zv_=`+5?y46)hjs@%+jzs>V&SVu7^Bj_n%aQPq&U=Q&18WW-Zz-lM@#aifia-hhR;l zt~G3RIG~}*$7(>wbe)!2U5t#TaR&7f(8`$iB?Jpl(q|-;$|1k3LEa@)p-xHUK{oWX<4FEG3tw0J+U zc6+(KxBBtA#Xny6YN{*El#)jA`FwJ-OU&E5;Ebww6QzYga1hTv6g?A6;WKg9 z#Ug}c`8hXm<`hb|-K{ZeFF! zpZ|H7_|NA4?pB%pck1*1%lXXr{+rms(cW1QdmWZyx zLvy4nl^>g9?oR8Q6U7<@x2o}29C=&x$Koi#d{0jI7#Q!$8Q$kP-=H&b5ciNQznJwn6!h&jC4XvyiA+lp} zlf67MS&t9rJXxL->NZZLc^y}CxPqn`#_Ppqnt)Y=RSDa->|vL<_NT-$F>-r0LIP63!CxRs|M&klRCqv`qv@ zwJ&dS>{{itjcBz82~vAp?=deiz-$u7pV>h(Qv_L+46w$GeM2E)6Cjk#;i#J}1gru` z6+vI$Mu^vRDLU1wI7<-MWT9#T=GzI=n#yQrb4||{hBc7^mjbUU!>sBUjzyjSlh^kz z?B%~%?EkI3-BSF=*3RaBZT~O-{2$nU&W8`oRD2!wf>A$r+73}Cy@x#TBK%R zxboCYOFsP9$>E#hqqlE9yg&Tg;lH$;!V42Po~$~%ob#5u9{E0hW&XS1x}OBy>H^F< z`6WpQL0&G!a*r(axs0J7)!FFnwX_P*Vpq9>v2Ux51!T+Sc~68iJMLM)8&{qV{CDAd z-Jrs&4Q=^s9jtvpcMGJhV|n(yyJoFpj=E4WQ<>%3CO}k8;Z{MRR9VY1R8g;Tv})zF zVNxRV5zU4Vs;+Q$i$;1>q`D!6d6qVYEVH_{#A{1s8NyOcEvlAyYpA-opuKXP^&w_y zHOut8@jqYIPyhS#e|P==UjK0RLt)O@-Yj z6|6(w%Hz21b9Oct7do{iiVeYaXY=fy;&YAnpB_a1Z|?3iE%Lv9|8JT8e?ndE2`=zs z%@0f*eSVf)t~fVeHk+7>Ia{mF&Y=r~pN&nMmF~)`?XAtluW@FvDr)4nJBPoDpY^PrP2P6*6@|NHiK9smCb?|-S?DUaI! zqo4m-Bnz1K{?C5t{kQGC-J1R%AN{KnuY^9gx%_?V{ZKp>fpswDrsd0k;@74+%~4;} z{nv3tr3qD_tKZZ9)SgCZU#~Sv`&0TURDf;{2SGHwqYz6Ofvi>4CRSR&<(Fd%TJUeR z#Q3K8zl#4`tO7Vi{{zNf*8g_v_kX@W{(n2>KF@t{x8U4!^WeET>9@=Qt@l4H*Z#BI z{{Z%1P5(>z)b~Hs^51s3^bfJuk68UQNBW|B3#u!0-#xrO5wnqWJ>-?{C-g z|MA-Y9Dz=fxBc$RcSj{ZfCw-sdIChce(^mINh!IFWsY_SJr5kXE)|wJr6&Q{7Ie7+ z+lXhmSV=}W7Ut&0;pf*$XEX@oTre8eL6@D^MklE@Fo4bQx}n$dkqx=x2s^LK^Z1!+ z1uy?4euaKTZ5O-YbuWXs+YjaWGtr2VtKA7w$mgt4q#kH)i}HFFQZ)Ef4Z?&Ci;yY= zL=dRVWx?w?UzZCvWV=4!>6ZZPC8^^Y?-)2qPtM8@`h9gk&nEdbf4b6gT1EKH(NIJr+Z0BE>t50}Fu^I9Y3adVKAVIJD^$4_SMNC%qiF4MvO^{Z_) z4vZem8tv&7CJl+lt%%XgR1^lu4<}K=^v;YhAM6Twl#=oVY_$;uUs28xIig53QpZx& zT^KygyvKoGu`oLCN7*G34lCsI6dk8HUmBffoisWRwZby3h=RP8hV|kIj>5c53591s z;{~DeG;}smdTh*4PJQAWWvNFtOB9+9t8-S^f6LVWwwv1){ja|NVY&8SQL)f$K6!nN z<_WTMYHw1=qh}94^z5OTniopar9J@Eqx3>j$I=VgwFje`uIMSV_SWhi4r@;BZmBBW zBJ?ynR3C#%cCTvKH==q?QMYcVV%2KZeW+F6uPXItQJ=mm|DW9d*RLm9fDSl+{P)i8 zejWe$`22r0IeicGPy7FiWC7FSzsu+UcQ?1{_@Bq?|2HqbyT>SSy_@N=;IBi}Y=(4$ z?zC`bvv{L?y>EAp#<~+*g06l|*jDM((1AWLsMqgLs63_WqT{>GWjB7;(%}*9|1MSm zoEHDJRo4IZb~bDN|DE#xyD;~8V!;>6p%*GUZppFlgVS2$zn5$O+1~%#-LLh(rF`o6 z?^^!b;=h+?|26l^{-52=?VA3VyZ<*+{I@CDJYB?k^96_7g!}v^TcO0fMp}1L-EY<` zn>Dn1Zu);9{onTf=iW|D|I4NS$?rcHgl!0M*-jmQx)ftHKkg9v{+M@zvXi zTv%U(xf^vWpMaFbGashfbvvd*?Ya3#1b;>^>aI2DamJ`SZTBN9I_0u&lsiuK|J}d* zxB36}ckB4y+W%L7z6t-|J?O^f_**6%+o*Z$Wes1bTEQYTvVN-95~Ag+n|j{1LB zomp6DACu{SXLGw`|8H&8_rE`4{XfdI3*KL=(=IBXoglDgl@21Q%siQp$=s(xM5KC~=>~oZNE*+WfXW`%~O#MOd zN0J%`XaZQ}t(NUQYdnD@U{X3={*NuyHoF%em%a2>cFS4YSTi2X-q>J$ZnyL#qtjAf z+qdkCABiz%mtUsIXX@uLO_S99_-yIu>4!lq`?VdAR?mQ( zHO%RjSbQX&va6oZHui`-|PisZLIiPg1f4Mq# zty<5ZT04(IQP%MMHhQrg_ot}B&Vm%&+4b5<>a6n(E2$F|Q>Rurr@(5enz>-rvR1*q zwfGMiU%Dtg@D}gC?d{j+zaF3ew?syyXHf7GoG&BlFVKkDi#2@Q5~Fn8JErO!lu|DG6~CH`aC^56FU&)$9=|Gkt? z9sgC!|8o4-Qsw{FUb8I!x9a$h<@$doo&PifzsmA?nS!~d*yY*(*>c|hvYr2G*6)AS z_J93(aQlBDEMVICuf5XyKRY{{wf_Gd*#CDv`=zyX+jCzLUXT=ZeO%`}`)8D2x@%w7 z*BZ_X%xXCwzpOvKiMr#D2eU<}!#FT59sc;F=u{pEGoYY;d|PaClKsCV`ENV_)vVwD ztL^{#^WgUXGUWgEPSYa)>+|2swg2Zm|7DTP-=Z+CDg0LUe;Nn<^={Hx2L0RY|DCP+ z{C92t*PjQp{};ysrrrNvj{n}-->v2UXa#UG|KHl$EA#)II{xGP;Q!eyZ2zuYKeI9W?~l(zSBDc> zy@k#HMoGR|bxsLV-E25ZoBtVJ-?mw*YHRscZQ5JYLF3A5w}vitpk0P-hsiBF3TNtt z4d+gCnKp~tkH50zaTWW}f7bfOa`u0g>Ho3q|Lknl_kY#|FhKhKPG!@mf)(n&xb>n_HlHu|IPhv%lpsGdjDtn^smuvk@6=z0HRYq z)AQ${|I8r!$4T*14fDm?HkHVUG&{g)A|4Y zUb7Vcv$?%f`+pz6|9cgr&W8`|f||cZaW{%DoVG(4<~)1G`LCJZz#B?j?l@*S&I`vC z_pG>y=L|gO6a2TOUkUSRi(+*~G4nNd8xE#8pAPtupp-Z+r0|w6!u;*$Sh%DGCr?rr z8|NrbH~COC9MUROS#=`Dx?xBw17EqXofakgpVKH0&fz!IpoC5m_o9nYiiz6YKYTDZ zP8fs2O1aGM?O~8pOI|C3Tv58gPCuO;fG8a66mIvhCkP&~1H^`WB1Ku*6qlWR>$<<#$QZ#z7g1d@JFK_7MmG*5;E_*$&R` z3d@R_Ft$k{R{l}WRa*8sU-^y*NBpI8h2XxP$_OPX{Qf~H}{;CC}VFzT;}TY7p) z>bO|+6XGHDL@P%({K$!5e;jPXG|3aZ4hV&XhVOnS==ZU0MD|9JL|rx#&*25wXv*uT zm*a)_yjTVRQ@}F#97Ld^Spdm%3Q)w%m+6J)dW+c zxj7H2;9}_FR~G7x`n{;%54&pQbVU@f&~WI=+4?aGW>y48BJM-tW5woO8m4whlk9`# zPwV1zmF{6%J-cl;)ErxQ4ng?lcas>2Tfmd2@{zRosu`(%ei_ED1dJ!gFPDI>(Zk-< z=wS&Iu!7;Re{Dk{T&~lzMuUM<-Z0f5L|xEcB`Q6?L?8jwP2!mJ`}XvywP2~|WXUM)0J4mVEzuPS#NrznfV*^!xMI%2rZt=1( zJ{N5K7mVw;j>3KyrPwc+ARGy6tCqLhYmYiZIV8BKfv1|Ui87pWYx-kej<3^zm{dUE% zC%*!AMqS|O-#$p>Nbe0Q3~%(yq!mH(Zw0DC`kk4qKyr4m!Y}cH3CkoEar^m)O_b^& zZ0H(wWFfv7LBmEz3AC#QTWBR76F%Q1!s{8*R#{aXswPW-D)aO5!@~O?e+T42-=APV%62et( zGWCpm;-#`B^HB@4-2YyiW3@R}n`85$X(jd%NsYV?A4OhcAGO5?s0nd ztdujLt(h0>kI&1sL1}HRiZ)eY#*UsnV}Jc%(0#$ax~FH*Z>y@`7sBHu9+EI({HY} zVt4nat-tIvJV@AN34ht%`-y&UvEM&!Z#C)nw#eV#{tG4Su!No6{ryc!*kuV@Tf3Y4 zjq%vq*#ipG24F;W*f+{@&)6ZmVf$k%O<=oB(x&a$-Q3^V+i4u+!bOInwyl=Daif{r z+{SiYmk)w96SYJCG7WnmpHu1ib|Y_fl=uF!3cw7#lwkG(8*G8K*#IGn|Bbz^t)0EC z`k z?J$g~+Uj_m`|?*i;f-f^Y5Y9^PBgB3DhQc2=v!hLQoo=_aP@)zk<*=1D~Sd!7&5fhWRI-fO7}J$2CJ z?dJg?M~G;(y9Jc}QtFtuU2T|K%0tof=6Z2fgtt)eHvcucVXT)fKsFqw~*r{9{vQj`8w=}7wFERH%Smv?D&1rYlMQSxsgEBx7(dCW79y+TwBrS>7U8+H;H zQ%DH`BrxWTj(tk%QWB9S{f^-Gg)xtwCw2pPBn_p$^YlFeO8NpxgWywm5)Oua=#n85 zWqrV`Fb}{22`FI*31FE71Nzm0U&tNl$AErhtYQW~vZ2homOo#nX>iSkd;y793dWZb zElu$(Xt>RhJPY%8BI4+6@9S4sYl=Yn@S$~jHrC&Q!>*n^Gg}LNS-hQ(zkW4yL5-l$ zrx-(@@U*s*0jp>Vu32DKs$c-_JkJ-Lu93Bi zNpidgVINq%So#3uKO64)=0WfrARnx+H(XHKP6L8P)^>3gk()JI$#eXI&A<=((rA4B znn@&t{AbTH3G|W(#d=<*fY>p(lB6htDrz4oiECMW$co<e^$FyIAIf-k`EYM4niZro!2h)h*9E7xk z1FI79?U|OFxA}K3*LT)p#6)Cr+L)mkwk`>!M=8xCylK^{c)qgL;|r z0BaltmJ472Sbx(G&clAI>199-EsdAL%56T2PMc?3Rg6wI&jjw^_pt{s$UyXX$q@gH zC1SO2u=iHrHc=~vy6_b&A(jo_w?KYamY%T+z~bbTef3e%K(T&i;qk~g#| zqi0Y~N@#AerU9S80NCret5PL$qRa{UD7mk}6bL(`9JCaFwL#48AUkLv24FiVL}1WS zd+S*O(0YN&Ax)J3qHX{Yp@hf+QjHiJOB-GjcnB>Qq^>|Ak>e!*WOT{_$_Ofm4%h?7 zu;fiILQu6&S+`!q(C7?6f@^j|uMRg`^k=gbfnjqFllgQ&2|F#`Ah17N{vUr7N-}op zVVA9y%`q#y+ft>#K*9phZSxFGGyuvdWX1MdNjvia7yMx|1Pdke5kJ@uRaCrD43Jwv zkidVeV1skE=O727(@65UGhkYKEA2MU>e;g`{;dHv7_dLl>=>HcZi_FX;V{ZB0oz0+$iPZd zAT&-u)8Qg6)459fbk7UVUTP86ZaMFmX6@idfoh;@ zh!cPnmiQ^cVnu=|WabA7gti11h=$X%17vc<@LY)tAYt33=pGYh$7BX{yS#tMD;w zqtg+PBLBIh>F1z^hOnkUdoW6O;3^$I$0w4dx~_JFjFy|&FyLOf;h$sH_>XP9Ns-O0 zJu=e}(n5u1qhvKjCyCJjEK1W007Sf@?C0Ph1GbF%G-|)V#4;(QQ#I@>&HG0oLz=2_ z^@5BL|Ee955350n2i8#a&$;gb;lIL>iChIo9HZ>Q)K;>L&;t7a_e?DY#f+K_*g#(9 zt|GFnHt-t@v7xW5417;dZGBei4_#`Ddu zU%8r!dRW04VHzZ$JN5`YH2hL@)zyn)$Yab3`Bz*4?0CaQYvdw(N2wEQ#Ku#%&rmBT z4pGoZ0}e`0U*{puVW2g#M%;~nzNW;_E~6gMyq8FR7_bgO6QRGGXSxpjhh*wrd?0;% zH|RzX3!2Ja4UL!KRR|!&5^|mMnN>tDS4#|5DwyOqxiEiUl$RJ*1Q_EB&eDMjpcpO> ztP=nBCY0aVu;b54DT_;a4 ze!>|t@2}IN?Fw`ZCh@x9a;w@<@%aIr;T-ESXO2#@c{O`NmP+RxN_OK{U(JPSRUOUkQNqHF~6QF;1dE=r-1KKhJ*F%QYJ1 z-h78E?siPFxf zAEX>pwerV6M>E&yB!l574_SHI+=Sl25cxl=V1$AC25@8!I7n$6V2oA7(J&pwahQq* z-iJNn;;qob%VOTKp|oO84l3w;YNcbc;FuY*(r%*}puvI~NyA<%@>o;DAO)rQU65ab zY%p6Ad9tGplInkk*YK4!7sVGMmwM60HRe89n`4tPZMOUgW81{Niq3hkXd23SLd65% z+{u~OX=i@W?Vcq6as2iT?-BIN1m<21yH7Ckgr*%B5bTs72=vLF5}pF&i%EbC3V<{q zSL{FmGV@1iWX>XL%mUnUa7gg%Sqa_T0LY;OS^`c8-6vzgCDkn2p@?d@F-Do|Gl~l{ ziaeZpFm8v4Y&46bOrJ&2pd~fdq8mab_#b4;QQQY6A=qx%w!k4^w9p~jy3ARQjj}Je*dwcZesQ8E9ZQzhS#0J$eUa|x_X(X7$ zZEf8Xa3lFPSlSdx(Z=EBXN}R1?T;HzZ_@EcqWznm`Yq(^$EP==@za|gB;`m{fVA)j zJsOkekWZaMUcsWV0PyE9?gHXnQ?vw-L5cgzo}xleW-n30tF9VOtQrc5*GDMWFiDHv z1{j41BfZpx(OF+~W@d}t`W|wp--2NaM7I#-ykwdr2=zYa7^Mbua24x$eH#SKN|6`x zLK@G)CFW@K^VZj|E4Z)O>5sZ0>8q4WR2o{urkj`p;c@Ss1~50;C+F-97M2iCU|XQa z!%u)^J{gwzbXexMf@NN4OyiL6!$Fb*U91=dg8aAO3t$Sg3OumEJC%A3gP>8PpCq3~ z!gvw&BL51p-@4uh~Ywthd+v%jQpu()hgC-EV^J(D3ze6&F;!pZ0$G3)-VH z?ucv*)cBZrkg~rr8fbrWd#8!n+z9(yn4>6*%->^=8om#Om8q$b94Tq6a#S4F>14B} zlYfzB3rGt#(@=i>`jsh{^rNW2hU)v*ucDC)28ED+VTpMf#2JRavMl{4D^L>4ZRx`f z%b8!lS`teQG3>2qh-DTUVu_r!VCd?5p`m1Cm|GGH^Lwo~#w%54dU6Ru{C6zeCnESz zL=xf}q*V(3f#$JE#Hzn1@_oux*W~p+<5FlgN+uqy)38hTgA)2zlFQD28zV7b)gj}zOvAcU)f7xz$ zeZ^0@*ch7I4ewG~z}^6>ZEr&=DQwrMofUYX@XIjYMafLSw2VZemgYZ&C6N9K`ZeYO zz83}ano&enY4Qek{-*3OWp4;~3qxi%^ua*$D9l4MVR0u-sJS?0)_;$^L){I#zrR0n zSwJu7t|*9cgI8D{QATmuF&HCQH*CkcLJ&i~yBeGW-oVgSai=w8BP#1-FB1O`5R-1= zccT=em)(kjNDEv;VW`4C6DN}I;A1Xl*ckSZ%e!Bv8kUOE`%mq{7{8BjJgY^34veF3YJ z#F)O?0xa>M7o`+;$^kXd|H!V6mBGckkq(voOQRKY#48$U7Fz@ZhH;FjW zo{HTLx{Hquzyb4B4F-^dx&eDO!V{`J2Xi&^;-m01@e_xNeJU6q2r?>jcNW#t=BMN; z3XzE8EFT>P{0pdjK=CgHa!E&nmZB}X?u8&FfdB9Wu|TT$%EbVR5a}Bzf$>!`f+6FU z5sestgObgWG6;b@Okx&J$e^mhZOvH+Q1YK4!f~wW02g5TFqVd_(Yxs)QVLlLUw_>6 z__SJjs~#Ey00+~NARP$vDhgAyf~Cmt*;R^}l@wG61a6YZ*Xh|XaBfH0nVBQ ziq6o)bn9fm5xk(SBj^kLho9k5G`E5NpH5qsh`;mY{Lc`BeLycjqA5CcGfp%_1?X-` zUYwq_g0ZAf$?hbx@5ud!kuUw=H=GD_j}Ww_;i@!nJ?1jQkupQD#WpcV2TX>VjH@gF zK_dcNzbOO^;r)x0;)M@*EMS>&yNxoxgKP)pe&}HZY_Y2z^?~*csxpZT{(@$cQol+vB5SJWBm(HXE9!Qf9vZR86A+`W-+!qlP>^$yi!! z+|P#nD5riJEmq+G@LPoFzZhyzT0sH&) zYg249=_!kTcH7q=fTPLu(b&&B^ zcz9Ntt!ciWz~=i2ZsGe0Y`&jh4&P638{bbblkX?Me~Wg(z%>)Rn=DMDpdbA|u@(10 zF#Thh!Q?>ehMmf4>4pd``506d3Pm71D#ao&?2=BXI~;z^m6XS(xvP9`dC%+{DeQ^u z8s2>4Cvi}AeipKrB~D*9=o^dTi`!9Q6E7`q;^lL0*`+gW+1a=1rf<=C`8XG>y5owk z7(r+_D0q5f;v5PBtu%{n60%UX@Jj?R|97%I>`ZUGcE`EJ$enR|e1Q|<_1!{z1;aR$ zW(SG6AEO}QrA&Mvx=<)I04C9PBxD?T);8~_q=;ozuz_*@Ttg@*2pRL44TKpu_P zlQAfeoQSGE3(`oew0)aGA8te2txpk6W3_2esMn=Ez#z^uI$O$46$mgE0$ef+ zlLV^}*^Ho%7lEIo(FKP3W9({&PQYlR3HWGq4&Es>8=&VoDQ}l|#fD`R^5GW9v4{G3 zg!dYxdG^l;)j}^SMQ4Ea9fO*|gB38qNfKv~R60O)#k8!F^pv7jZpSM(qfx@>g^Q;x zJKm@g6)nRUf!@CehW?Rp-p*|qH;cuU;*yBMlfo%}(J|3EZWxLy&Ow+Qda)^LR72i( z!fXM~>?tINyF*FUh?y4AO2@icUEQvG!}>RL6rr{V*-~^AMzcE#nUN@dlPMyt_eeAG zSg@ReqG$2DDu+N~f!McoGW zdg$97ThwkdM7tbmh=?F+y-;6Us51I&9}KTl)NU5Am}*)dR?mk|GNK35{(7S4+K@N=ArvT(!x9Kyz z7;58XF`);=Pai}&We_QsU2XA&HlW21SSQoxV2&@vcr!CPpnWm+XwUZ^wy4>*@{h0F6zx`a&WgKY$77GSsTXrJK%$3&kTgd1 zU0k+}wYrLaXL;^VT$z#cbLheI_05Au^dsKuG&*N=|NoQsrt57ZS)$<2d5HN#A>9&? z1Su|BNyBWXmuh!8({9^Yb*m|+43Ut8GzG8#(3Xlq|C{%iXPGCPv&4pllGDR9r0(QF=kAZmij z{_J7^ky#++*;w|xSoTs<3;6D@`0i#pXR*$IxNyUkzW!UWtnl?K7mi)xPc!v0Ce0ka z`(N_id%EY$S3jb`&&x1Lv$t>x!z}!)P7S^PPkjIHD1w0nd>JQi<1|D`5WNfneEZr@ ziT-&X=+R{SCZ19>MEFiNL2skL1r#ZV@Wu^OtT~qjFQDM<+z%ro1k^Pv6h9;ZFHb0} zgpe~3Gv@eBN#GWUYbyNU78nOA`w1vPG_l}L@V2H{Qb-^&P4`22LzhY$Ds%A45zp)1 z;Lzj>aIh>@i&;kb_3KJ;<!lLRUp>{Erqj;?U9-|TjVl0MqP zTE~Y}tJ~>04#)FQwT};>cAl^|xTHp5a1;lli<7^kc_c9JCCqv5CQm#S z832|S7v@knDAr8PN9W4bEM9TPLdrxrYo3X^WWiqkHve*ouZyuV#W`Gp?PjhjEVPSCk^2|wm^m3H@J7?n)KN$K|b1EWKzG8E0`xq56uKyecpq(;~DfS9=7(elV6o?;t{Vx5UqQ>`*0bF_q2%L)CudCf` z@>KL!VxNlRZZ;jUZ?IO-&W^QX2DdrxVWD+$ViiK(98&3Sq44;KtDY4~;dF8Fd9k?L z;o_)NyvM~!srZ14vr_TlfbqnYz2|OqoFSa*&M2z~@zfby0u=H0(l7VYgHz(^z!zDL zv19-zsEJ|+H(mmyA;$eYtelM|>X0dDTN73~c^qwTZ%s>!49C*J{g;TOuv<5{ThL_> z0b{RM-vKo)LH4s3wYu&Zy7?rJKMQ2}YaKvRbH8qHuNyZuiw#K;9G;S?{VSe#LI=OD zLkCz_}deI`{M7O_`5Iu9*Dn(13eD|r!YRDD0X{C)ny|XP(kPjARg-= zIEytvgGkA!ws%m|FyCpg7#rJDD{|@eU2}UfS4eR0IVKK*!4oyB+Xu(h!QI|=JKdTw zqlCCL%!WJfJwNyYc?}*^mI`?5*M)5Hhqq&q(dYBskfB%D)n-O`~$(BVL zQ!N1jOe1d(b<2x0aV*XXUiylajKFEDZ!P97lmP2C5uuBw(SKa>Jlie z9GR4Ab*&c9-E`_lgKShfqQMYotiS`pO;Aq36F|S)+W`=R`$nXq!43BCA^sH9HJ|3{ zEd}|lsS@fcZ_dwQay4~gUFS7HXx&U&MlB-aU!x6Vwc>fH8tykRj=)FNbljTh+AJ}y zR=Ui~!5YPjevhSo$NZ<;6@Nu>_n^ZM`-k!g7Wt@q%*%Y#>-2ALk9vLa`BCraP&Uvz zI^xHJ{oWzHFGbrCBj}2D>7t@G8U;J)iif5UD2#|ruw+ay<+s|LTeERe258le3 z&*Lv25(9WzZ`WNHbzf!m;qXPDbV_=o4^+FR!qe|$9n^o$t}iZDY_(M z&4_Hjv1W$R(P9Fb?d|Nbd~OCxpAB_0LW`w0xfp^BD4PK)3gn5;IYAH#52 zp<{%`>I~z@p+b`3IG%{6AA8X-Mwec}lG*r<1F9morEXbGLghdfm}?@#jxb|RZk_z7 z#wHpWPb6Du%PK4nm$7R}CN4il@jZ_!@hUBjI}?siGmJzGHTIUESOY#ze@$CqwJlSO z*XpuIvS>9lLgWI+SKi^$)+Q3b9O0yh>@_meYPDh$P)9Y9^X#x)L@72ZG>aIdP^8dB zwNzmTbc(GWevD~Yd-j8xSWg7|f9%+B38!8Rpb`sN(+|N#h(@NKZxl*-32MmA$}gfB zX}76}4utr8ZkAE4nP~7eMaY^Hx<`JDOW&i!i2_o&SK?E|7zn)Xji~d2%{ML(5Tf=h zObNk=YN`8~%d1#tXoQVpa%L##eGF`m*PHFgt68rgDS9J?(R7z=d_PS`-P%D z7WE57-ND7}EtGZ(r9G_JD-<1I(Seg!XaqqT^amFssL^o-X#ZvQKwlP%1YH4~V3Ac* z*K#oyno{AEWK?MCQ#yWFL_q?jjJ_FZS+fcW?&)=e!FCUkaAVm3oqaO^xU)L59nIC# z`^bFHGf2EM+bKsiV_re`ML?ysY{6)T@z54XslnH-qLB~~+%Ddh<~T=NTLOGuTrIMj zXK|Dfs3r>J4+}kRS1NgA=z4HyY|XoF0d${VJHp*EgcSK6iu#Bcm#zwc2f$5MGB)8 zC#4vkhFS|CDPbQfaD#h%tj;ZNVeuRrsSRkzWyC8wv|h21D@P)pbG{D~IrCFQ=d zhK1vA$-DC>|0;NKy`XHjRx#|gMXOnQDJ8wuvv>}dU-9LEehD{R>E)q%Igiue2cQAU zZ68%?dxhV#h$XL( z*pXJ7KzprMjNWp>N-mDjNzf> zNX1CRLc3v}8;rXzZ4aebqt3+<)+X}ZcT+kGfpA?sWzg*Ndtrxr3@%a zRA=0LZ6N{iBZ1u(J6#ZHiTn zO71H%A*$pB7zKl;_EQY;TQx{>Kj1f?5UYKnz#k&HK;`7rZ?CxH8dz)4KoN&sD~Ux*uEug>yWiY+otcV!N>1*(U$4TU)Zl4?K_%(H0Z5&GGmQsge`)8e)kHf zf<+vm36u&uXh=tL0c_8_-G3Q(TE~9teA3*#2;JwN^eM=Qh|RoBEuwCkyfqecpp5Ki z?mKmT;QD5?qU4iGtBlL-ab-hCNDQA-7<6r@ z5#^3;Dua3jZ{pnjas7_n-WC`5g;vmV}`!fpSl72vfqw&O{zBym$!Bk2b|`sRnEUU@bQ>S{Wq+i~^>9b*)E1=IPWez@eAFm83-K&AlFo-O0V4JQ-{3BWH2gA`cE zxAIdr#K_m;hs;AY4kzyBo)X=WzU5vQR{kIKi)-mR|ESF%CN&Tk2400f_kP6SMr$u# z>zN;!w{9S8;B>T;R7IkRy`P{h>Bk3DSUef>odSo z5qedScVm60?gH2MXWMsUq|M15M@OqzNZ^)!AvisEE)DH?vf(Hkq=MK>#)(dSg!b8V z02i7R#noEyU7nzOlrOeVun?}D!lUfKQKV-q4$Ks7DDq8XQX^3}>gexwVOXv&)0c^d zJSP|hMqk_*KhzKoGE0thnHZ9cnSE~6W6>>(+|R_(`y^?3m8cj{615>|Xl_PP)GOAA z6hlEru2jolNrRp0efd?DW)f|BXx7?AfbXJY8PN z$y4BF{sLon4WddL{4u>u%FU5q$aC3V>;YQ>TLDA+3|Cq*NORYhQQ1VQC)6KSyp1eu zJ#EZlqLwl1Do{E%K;cBG4jMJ};t`;9;nMm%2o?@H0tWKl`FDHj;$en=&^E_Gqv>%r zL9=>Hh3Eder_x6#z+(^K_dy2qDI8KbuNaFachB*kIjTif)fr$4A9W-&24HBQcX#Ft z|6(t0Z!g`IfYE`>IT7Vz=5HuJ>I*v(C_}Wj@VEeP@A-HkeO~bA0^j%(pwx>vv^UJ%X2PLMd{g+mGGA}^_K{0w7na1?gC1}ty_Mb5{ZdZsSf z79b60gwcJ+k`8b6Ci!Wh0PxjE8Ofzk>^N%%cI8C^FAK6GrZf*%&JYc4t}vW%gq<{- zY5vhopY%FaFE-@yDPQ$zuYoU@7nkB^N9FI!0Nf%BjuWFd0?K(V=_bhBtBHH#eXuVL zQ7Z0~S4hM|J&l0IE=Q|D1v}TYNn-cP4TMFy2d*+7htcUy-(zd|`!e zasNZ%eN%Sy*TDbuqrVtdNgpD6@C?KMU*im(IE;)t4AEf z5A!CY94&D_puL1!Zes-8Ix&p4&381?6nGv&>DnJTaA=)@9eZk*c~uh!C8aNX088?t zkI_X8W`ViMxP@#&8A{Qog#?d?sbfQ42+Kn^+271{)ciFv*t^7G|F8Qp5ns(dU`542 z0RQ0rXCZbcX1YQR2|3WRy4qzes-eu$XI<6ld28#C#;fp7>mN zUsh4QngckvXD6iKXvmH%rHoe%Wi@ImseBkmZerC}~D*HU0rbINH|qr#>IA153?sK z+0m8}Yatc6Kn?CWGXwPe6*+vx)N>ema*`J$euN8w(+_eaxe%WKWI&t08*5NDDhdWA zsy@?*j6ntP(<`8^E&yl*>;SSGsYj7#yAt6ShEx{ZVI*L-mLj)5Hj^rdwM8jh+9k2C zHtteLWfX{oGWe3H!9r?TxniXj>35XHvTWc5J0%GvsL&(Lkh0toSZx&;g_zP+2GnQ- zd1Y|9HW4$Xmp$%mnj=(r;suqCt1}ObT7cY$LPDhU72H87{z~y2P?zf_Ue&gi*l(#GPuwn2zd}XrIxZqK>`U3(>KGEWNZuNdGIj)b7KwB=N%pb(A7to zyRpskDS~2jVw0!nl8rE`XNL|Dl_BO*~<4mq9-OOivGpCpU zSl+UUaf#4MN}DgGzGDZXGmg$8-GbC_=`lp)oqQP?wnq|g$#>#siE3w`BdN?xg95XM zQ{&)hOyCV8<#siUnoS42J#pnZ>OHS-)a)85L{*WS8AOFIi3)iI6!tq1`<*G3Lr^6W z3$gBatw)9*Kw$a-7&MnE=Rd_x)_Dn_wjYNq_Y^HvGO=RQz>wxsIzu2TH>RVdP_&5B zbcS1{1u&H-0G|^r;g=dJ7)wZedV&dU<3UKF{?UnrGMqa)zqvs-nXJn-*>99BIt&8I zjG`lNq{m(tBhsoLf_au1nn_c#%aOYbg*^(h&wwIF1LlSgtRqEzX!tNy4Bo3W%Gv^3 zskKDQAB-latkr@Bk=FMq69Q_8Vg9VDG14pigtrgVr$ITA9eeX^E%4G%QV7a4o>$6i zlw?MGn9dxxC^qzmvh5Ui8TTfwT$IR(D*5jy1hQwCaxkIPi*kWLf^h<{K5?tANP0S9 zSp$?Q30Uj_0I_DAEMO=nC=4qGjtc%|Zyyz0sw_i_0ft``@^BLSY-|%{R7QYPmJ8&g zl;@J`$tg>=7UrD?>Jkw$z0@lb7jk`mGz?dSc@%P6cE^noU_~+#2L>^UxD@R=9Gf0R zo)*-MkauUMaklUMFB{o9%yu~SD7-GLatb^NX*NVIM3mDlBr|d@^>S15U`Bi}f40wo z^zq zh`I{2#a%^65&;w$M&;OgIXp4k{8z<`QAl329iI}@ybL3toB)JJN`^r+3lM^XpZuS4 z_oj4VRBh3UlaSiIV(2X`o_am+hs&TrU=MegG>$wA8ggGl z5;)h~;AcT09HGRyyT8~cySLw+>^i%yRmfUE8jQd4pI-xM`qs9Li~iSQn>t|>)Ea#p zTWC0^IY=VElWo@komfhV^ZN9*{B%! zrV$KpmV}=vLNbP#p&vk>Q~Vcaz=g7Q(;A@GDG;%T{(ukxJ$+uP9*N={H{Xo@J;jtU7}cdIR+L0#+!X z=%gRe4`q9M%?l2J9vX)wUTddZRl5Icn#FJsFD|oPlDjm7Jr-x4!iauwo~J%;DO`vl zM+=rl%pcbn&}W|FVKTT(fMz7eYUIg*F2MYIK-8?rjORlRB+UnR>AmOVZ?uD39rTSA zC8;W!V-W(0Dw(Mg{(b4~{xW{r`cJ?0kIAlk<-M`TW9um_^M6_scWn9a^bZRN)vYf2 zF`>^0^6B(^fzNGz{*2GN{CtMbfK2Geuh{-CC%Y#n(EKB8p6rO>HMH5GDyLq@z4pc| zi|qnKK3`r%gKj=?-@=lrZVz(?v&-;`w2 z{4oXbv{0&&rTA_18E{H41G3U+CNi3Nfo94AI=pL{u3N^ryn_Kj(9)hC#FFonxN~@pI7Ua1t04Vb!T6(yo5rDEyD^LBEPQWu0#MZ%ib&Nda zO#=;Rv?gt+C__!L@>(s$rzzgxT*@RI=w5Jzn4x~2kN4XNPzTOy`oUC1B ztFrU;n_XQ*TDJNn?7I5s(rRLeoci51NxDyZ732Yul*e5MD5^g|yf{l^abW2wM>K*Xb>z;ACypAmYF6M~0S?IE_mq4`T-cbui;ZzOx)?qx_YsUF zi4{1G986n-7|ncC3|V&S42-!GjB3mqdF)7m>thb?+5Nz`f*gO;@Ftt)G1-^G4^Bp* zKXvf-_l(~H$P-${D_E?AzuZ5nI~SpcL?eF^(kD0Qe#Y~HVQc_v2H2putH8Hdb)Z}S zSUOqHOMCmgdfWY|&t3JpQy>0R{jd|8=|E&~LuA{`ybR5*(dz~M@;FNU_BPy}_~2-(Pc#rJThCeT zw#9+kv`Gb)p^e2j(o*bE#FjDx{ec#r+}yXO=-gu}PHTIIr_)uG_$cdt2sx{Hz?4uI}P_!0I&zf%qe zPtUQN1alul+0)M}8D5=(q`PUb;Na+PWtfkQ0P24YqgnhVeV)j6K2t391v%zW)O1&7 zEaeg8#rS;AN^KcldLlum@__e(JkpN$p5cV=21YqTew5pxE8>3@&p-(+Gbg(e-2b48 zH+QU^W(b%7#R5(fe&sH4`-Q3ke%=~yw zHDOR3MvG+zwc_m33~g!3r%iv+yd(qFd3rQ@?idMrx(E2<=fy&j2L)kdonZasWcLDv zP=MW?Iw`nOv%@tzX2p|?3$sFD#D!6zFyX?)EF7O)cRDTj=j8<6)|kw}2iF~|iIYdO zHS@zRe%O6^a((y`9*#G)pc=^Q!xi4O948YlofHax;lf|c!WNgctpD8>PDUk?2J%+3 zdUVMG$fSD#XX7N3-w1{jM#qt8%=S+cRE2S#%`{Fh5~Gglz(xU?*M(c63$4Ya z*5Il`%Tj0#^Bs(n2|Z)LVD$PD_GF2S_NQV?6k|^{;<5Ba=$S=Ls}UzK@fgjpOF_S4 z(@9R~1>6Q85BOJn6dUSqq#vQVvt?FVNM$H0FeV|(K?!@n4G15Tx}a^z9N3GB%aNcy zSXDvSKc{9CWE7xTPI5;VVnR1;n0r%O1>GTINfEIn93_K~nE3C}D$GCT?y{gJ7F`+U zP^wQi;q(sZYgzM2d30HMbU3UChh-Q`7-(^BtQt0`s2W4xZl)`X4GlSQ*&It%NDOXo z1>;*Nl{$G3EeisnX0Gu)0+Pq@JVK2m5Q>pkjT(UW5}gSSw}8R$rRHsju&TV9QG-Ux zVl}ObRDVY(T@dCdY>24HwnP9$sEh+BA{F*!(6|a`vpLxZ(H%t9Qk3+UtcN&PB(f>A zK`ax_4bm2vrrb=6Qm}2o-OU`C3senWeXfjELIpcyg~h@eiYdpBg-@`xu)Z}~Bw|m= zzL<4=)$USHd(rUBWb_O3m);x<&=)*Tx3{@AY#iGU^Ybu(%@XafZJi?<5AKMqVkU44vYzayl&2bbKa zI1U%YMt&x(wy@~O^GBn0&#;(&%UL3WBNFf#0cwV3KvV%fW0uk28cjUY{Rl1>X%syA zxQl5VjX*cjONA`1Twg^5qTI|Oj3Am3gHh^VVNX6k70*yX=yZ)VewYsp z4P$nH>7BIg&h5C{I-X#7p~?47rQp#nY(3TN*rUNoTNIC=JmvCkx!mXSUb%eA<^6K` zg3I^H2BLK!*391goB*FvPC3t1APGC|AN4(2hW^*I;Ijscco?ldeIG}+fpPVa28zqZM~(d3?Pa&c#qduyBAGn(AjO)l?ja(``;`_N?W9(4|W zmsFdForC>-XGl;EwXYX|)6mSwu_Jr`;P~LsaoO#^<~5?E^{=~ooesXuU3_{#)HMq- z_~d!$qx}_TlIQ$`&lCSV`%93dXi<~3e@)})Jtl|s=|!*8>zsCbbuYTdr=8>Ki^FQs zLA7YFQ1m*E)1XkY9xINeZ;kSTaIKL2V&REA8C>ZDp~BU;(q?A@*b-Wp&)=Nm+bE#F zesn{Bfmp=W&Y>D2Poj4Lx$U0p;>cQ*G#68_U!3d$(wpH#S{-}5cW^jyZs{ky=piER z9=AHjx4llQ+ka2@k$Q5#7&?bHw*ZOXG zCIv!cT8fnFJ@Lu*ZGo|#_#3ih)ufww`Z6>8=0fqlN=l1nUBR>z_!3Fd(MMXlM=Mc) z0)7-l89p0m?-Y%D7(j(oECpEcUGrxVBT%$Aeqp&)nA>nuiG(>MdBz16t6pP+NWA$d zH2n40r+QF!ET&T27<_1>pV18wUgoDrb~&nNWc05B3MG+=_^#E^Da6yu=qV_*qXwMn zbk{CT!=B@Nr?^Doq)u&%_Gb^yhWQP>ZtPi(TXW*&M+dbZ9n^hvs6INZ{phgnBZ-IP zr}!I=UTp*NU2QXr=X5i4cGon+@35IVB)X^|+Zr(j0@nz$R>^b4a19hI-X0H#_G3To z6E#W?9r3__))AjW@pcm(mwxdt5a%*bqGn7Pa;y7V)N#Z(N>s|5MGy&6s$stuRV~H* zZt5H+9%&j9^8yLu`|21(RYy#!?}cJf>IWl;8?jh;HmS$mU;0%FyF{I+p49j2y6704 zbW5Fdzp|6=x=y-803GZf9v%J;1dvEC8xk$l?;LZc*<+wt`skJprANIET-d&py_Mtm z@F8ocUEE{zO0htcZ0}R3HC#XczfkV13Kl;~p ztLv(vv~)kkds2ylE4M*Sz>OfMMMkM82XUGvfu99vHJS#Q49@J>E0SUkSWi3F#0yhA zliZC-_mK|LHa{_5O56T?ap|80SqRh1O^G#ZJ1gcRR|Xh+6@7+(s zZJp~F_ushq7o)`>aNMQzJM0x*>CVL3Wg$1CX`yz|{^wSe8ujNDaDo*RLQdB=A0$xwu<&&KByCtrF2`4uk3oj?8Rwt-S5 zwe}@+gK7a#M9 zj8WncHwO3q1K!Ked^9r0pv=`vxE{F*jEcy$-`hVvcGh>R8;5QK0Fgk2%)h8jSeP2) z(IMx2Z#6dGw9n^$HW^rBbOgYER;Q=WU;XLThxeza`Q&@cE!LjGjWl0h9WFX_Dkv0U zS-E2K_L1XM8ejM+>^-&)Z9I7EpMo?0Y~#>d)t0KwOyjdykFh))Zl+vX(@YxqpMs5} zIla$luKZ~dZye2O?PxF(?N?u4Dr5@Wt|A9!S6^Up=>nV5C`(rt;pOg@84X+K18b); zV#Mw37Dta$C7d+tb>PpS(c9ag^cF1yqyl7W`(us}Fu{P#BC@}{O*DS~DDlUm6<5z2 zs0IZjkvlp%Ygx}I1}397Jr6I!ETuHcT8C{c_es8c;YK41h(EHgD7X?DGf>uE6!`h# z#r4Ae_zP+uAAQt8oj;BVyCv;_^2u;L$F3|yKKTeZWvkRhVF@v?X`GKf4zztzsq2)K zp8!Ev5g(oJVJyJT93AiPcYYTE9O1=K;l(11CU?Lnn?DO+3`@W$GNI%})xWtH!Pnm3 zqRAZsm)za!?C*Df-&GN$c>IkEBxz82inT~hh}fj`ZLll-{E+Z9ue)cX{rbv-+WAsuS5f7PxWp;Uk*oftOWHW*B z>pf`-fQF$sUKC?%AoJv?uo1pdQ1xSwid9mJ1^KWwLKq)jp)meAZw|`iiGg-D&{}5u z_oTK$x%-;biq{T+2+vIe;F;dD>$uu=y0&XV-kZ9XIiv1NWLEn2*Y-^)a#P>N#^1Al zzuNzFZU2M|HuX;cc+Z}v)t(pYSAD;Cw7;omJ_GmcdQt6qxgOT~2Y{$HbS)0zJ^Nl( z`#xX4;fKfj8{u3iKknD{d9~~L+OB)Yhuw|SW{h;tuIJURXB)ci9UpD#S|?_^U+=SO z@0aU=ynlFfyt(&vIQyQ%xvUQ7Y6A%Lx*KurH9Gg-tKTc5U!X$qNc~~-7ON`L-$;2$ zHD_6csYtO6@<5R`zRXUM5J-C(MV<(#R1&a{iWx;jYlEs>P`;^64W_auS-=63JO1`| z^f*IlE4eb&5_lELL_|lK$I(TQ0Cnd_EVL=mayGR}besd-`PZ_$CrJ2Rqay{$sghAL zNYIsAgaN$I05CKQS}bku-M_}(9XDY*61V*!bvWkcR%sX^4Jy}LnUqOYs7!SH#MMH! z!Agiu%N)F!w28vkKs_Y6(FR#dJsW2?Z3{R)e>MxTsy~0Lo8Ibj4i(`fA$r&;5>GmC z)TN&`LXodaz<48F1XBu+({8-D_OBLm3ZtVd3`iK+u%lR(IBsLru*9USLBqPbX~8e6 zk?+7bnQR&W!ub0#OoAD#4XJr2ZZRINxj^)$v^t25q=1|`4m&ZVE>3acA0@e_CyP<> z!YplY_hRr3e>x2o8SyhL_r#DCnxom!VS%%$ZXWkf;$z&zD-0ji@GpFH7l93Qi^2*y zTV-q^t-H}p*lhaMIh|FwDFe4Lqi-pfoM6VVWhGn~ltK<0TYw@7*n)LHWNrpltq7a^ zYbk6huKUi0buS7;N;{AOXE|p-78eNjpxv-uv9NBSA16JJ&2^0WN}R5#rz-0udilLHjTZY*74V2)Ylvh{IEi&>LpKRr*!ZjuKdz zY={Oa?n{AEx?CWs!=OYx6BxiHauuReoH*D5z{b`OK{AI+6V~Q+9L-{Sdg~`)YE4Qo z_teOSxroy=Je$kb2pbzmON?n!zw3p0{PwLEoeefmMu3E_+;ba!x3TXwj@(8Uo_gI0 z0|IedA`u%O@YQ-W4a9(aEjO}qP@ztEwY+L@YYG$Mp#&sy_vilgn$L5TcpFgI{kqd9 zn7aqq0wlWzjh2WOeff*tbzE8A?eH=S{_b0j7tMdLB3rt_xQLf?cf)R>RoDQ1 zKY|p4TDj+Q{~|3R_97%>O$_pd6#<^D>lS76gyC68GEK^7RC28~xSvL?&Z(mKs8_`D zEaO%I5_c+>-hvao&0G=GkDB0175z&aNpKNdBUHid_~Sq263Kx-_$r-3%cpf~RXswr zN2NOEZ$B$ELAaHEc`pOE$@@x8AKnTpB}<(tS*|{E*L|>4n$thq@L^L}3c^TOi6um+ z0OC0SwC{l^WZfdTmu|J2hLNpTnBOUD5u#Gbv~EDc0OXdJSq$*53>B5}p)x2enFkik z{3eR56%AGJePJAA21o?g*^SygLC%ru+5O4pcf^XPNG3Npr)1;HWe^bwG-N-tFJT%m z<&cQVn#Q9~u;)dB6k+f#NTC<#zI@;d$U#Wb%A8K^Aro~U07ykk_`Lf)CATyeb?Qfk zqO1Y)4jSL@Hu8pB`c@H;V%P}GmH-DVrVV6(T`#@bL_H*hn(1p95xK-_hzJQ58B{Mg zpLA=Pge{rU+A8DN4Z<{yZP)Z(PfFHgw3fX~ViH4L!#}&{am)|o)wug#U4Y-D%)vZu zkcC_W=hP5$LfQraPM*HTRe&^6<1(Jlh>^U+gyB4BAqq$vc5u;de78%x88VE(dZDo3 z&C~Zi)s_o&rZORVy34z4R_&{*&PL&a0o>~ra1GtNX;XeX%&!~F0C%D~bBUQZe)b4f zHKiLx&HA3xfGhSYOo{!!3(o%ACIy>(U6l}+=d&V^spI7|Sq0bbD|*pG!d^a>jwTA0 z^%>MXRE}M*g}pSgB`l5R*TNayoWSN*7&N>*3_~_JOt31`PxpmpV<>9?n1=q_A=T(; zP@0k0zfz59yo|Es2CKnZ2SH{rs|NETHPRn!-asBZC%bmLiS9OJDMj9qoJQZoQ0^bQmqls>O0JLb`=iZr{nD5?$M(I(rMe{ne?$WQ{!#bvAqD)rt51LZ{7P_8 z={Hy^boY$ThcejoMv zZb=EP+#j+3^ZIxD#~qsC+*^I|lSugStFRInb)Y_?KW8&A!ui8>`6-IOL=7h5tU|IE zpxE2GeL!dP_+lVmz%!#^RYJdva1XPh6CIxNz+P$2Aak#R%ty_o08>on=rZsi@+VQ~ z&k;2Bfh@e?C3Fg0*Z{e%5IyG^Ye3~(;tW_XWn+M8QQVA@I4=ri0VUEBC6tj3E+9q; z_Bn=U&_5~YruOE$Q~}OZaL*McUZwJV>;3~)o{;X+^%Yd6C@6j?(pLAg4oU!QSS zVeB{0YmbDX<(1a_E2Q=Zm$sUg<1z~fWxg&eGJgY%Z&P{4oFKeYW-4&dvrXBlMI2o6 zp`Zxt?o=ChNH>Yt!zd%BOG7-02SFPL?u^5crIy7SSfXRN>X%;BeiY7X0ea~aFBm)Z z7I=&4y)$}CN9kbEMyf2FV`hP&T08l*&pDCpMd3StabF#Awp&tW2h9L0rkJtFr_NbukQErS3FDvD&G zjrNzCA~`PrPvIh;evQfBvUGb3C*L)GJ{Ykc^T1ZzeWt?QXX(z}*|6T6RkU#*o5A2Z zOf&6oa;e~H>7CQ|P79#094!au1PW7hd{1i*xMK^zz{HlE(pF*38xK&UkQ`m)US=fs zNxVz@!j-*C8$XW?uSqO$d&^P*vuwnsTeM88DQlPgN0c=Gyy=hR3mbPQov><>r zW%DajftCeyO3Ad3E`h*%0vLUoqo2eYAzi*p$e#E%9P@j)rTupN8H3u+DNnSm8xuDx zawBx|jG+f~lG!u0bj&MuW&C{FmdLP%OB zbKE)D+xvqK^Uwch!wGQ|GN}a<8*ux0o)zFn|>Y05>{8L4d?5FXIG@h&)Z&^)Fl<7y#<%AHX)! z>eW*vU%OzrOFQ*|>;E_ZYA)BGo~u6IM~8cQ1E|h7ZNOCkWIg}rtlbT2zPKA$^nkl@ z)IU1xKDb2m-?D7+G@88(=g1l%iI0wC^6`1F_!HiOMiD$-)_k*Gm>Svp`-lA_#?J?x zqwXfRdfDE+eXZmNrn8m05qvy_`+YzlYg7}auQfM>>j5_da9L^l`HPoNe}4Vp^xcd9 z`1!^A52tV5et7lfr}vz($1(kM^*HR6;FQopfs^CN61XE=%GYBSP!vy95K2A^*EUDT zidwXGu#ZAw#Cr9cF}3kcWfT3jeB8MGQ;cZ?9X!;@KkglL`@b^+Y?DL6ih#KHPe5DB72mG+{jV#6%p095C|9(K>H}9nKGOb zQu#TV|HV&2JQjeo5|!P3T1#{+*#86$&yTE?#ubL|rY>b55aV=)3q@e~Wdh@;nB>Z6 z>l{VFd?#(_56S$Tb+Kn6Pkh6izaSsm4eT8j2k4Q7X*=KkXh=3_>TYrQ3jTB{&f{G$ z1IomYvNbbNesOX_OH7*k!k=CeZMCY*@0prc&B%%HO=OpfM#8MUxuqB4j(NBN%p^yx z50O#(2Zz1h?{*#@4BY9OtHQb~03p4X1?&CW-(+FH|J!tyR4Pst+>FzeZc(-h8m|=T zhsqzgF6I*DgW-{x+#TvaR~qMwFM(}JU@q!ok(!IUGrmTzDEL}KqK(m(C%E~U><#lD zi$|lL0FhX`?`O{KZCC>09Rb7*%mt2aCJk;0{i!lKq)6#23ZLB^EYX`fr8@$MEja}M zTvyd{BL-rG&}^u7^7jKh#pEOOXw^bNVa zwIt3ilw%CgBoKA!45#fYjXQA`xfBQpVgBwf+9Ky{Q+)-77IZkX1L1k{*a$%X4WYqgyG-jmFlT_e{P6g9h(;-s)^ zvtVTO*X+t32bA~;QwUHitx_wd61&)(Q$K;c0=WxyYgG(m&Q0obX&A<6dl)4zkXPQb zcyaUQoTU(sVZ<^EVBG=?5vy$g$1)>iIS8!?rF*!mEK|Sb^F96f@|#U)3c}SjbP;0n zL=*HvkArlQvQ{)SI9emrW^;p73j)(3MdTL@i$pG#t&YgTLOJE_SVX>dWP+7*+rn_y z9TWyus_hl4?X9WSFIMZXsn#o2>#eEQEmrHUsn#i0>rk~~_Lw}k(_$DTzqn#cran^% zf2Ph5%_>-9=$GxI7rCo)xipF@x+R<>a~Dd{0!xvAIG>AyS6dh@gP~Nei##tzHV4&A zgw0GHO6ozCggKLgVQNGYu}D4*&j4CK0eu1Ea+iFw?H~NkB1?UN9e0lRj*V+8m8qxQ z*oanr=lUnPi%e^*3DKAdQOYVzclSdPhLp0WYzLPvude*$rb@Zp>!iCO5op11W z+2aXX7XqVJjeY4C6+@Zq6L#lj9{V$$Z^xt}<;w~Y2`~dRV7U=DQ(OoA209u~UvU*; z%1R)$+Od<@kLxn!SRI$Br^Y3ITL9K~k4x%_rz~|o=pFvf zktJCBg{QIG>2-^Tk+!cAW}IQu(Zq`^)1g1JCrHr%g`mk8Q3t6ROf`zfx)d5Ba%!T^ zD^&GrCJw+#6%34*l78o20BT)Jy#r=Cud{RtHnkm8+b%TtP#9$$OIctSmuDq!#lp4>D8(wH&LRVr}Me6U?=S9h6Su7 zvIr}7B+CH`5`Ef{!yIa)gZb?>^O+dXGAiq$b`0QXXuWp$_hryPb$`k}Sd<4$j8E~L zGNpV%_yTULf#7k?9+d$JtD_Ej2m5<}6k<5)?(g;g2Vw@C7%36-`8A3Lg$gzJ!FanK zL)_6vP}fJP;r|JkV%I3X+@zC^63)O`bAh}C#g_4Yc%A?gQc-ct~I2XpJ$~4d}(dEkA zT-cVAEqO6@BqNA(!?HM#i6~c_{9wq2?{3LJ_S+-_**8iCc=Ob=CuL}zbv4b*9s{7vVdYYp0*d(t0Y#`F+c5E` z%$;u0En^AWUT>Vse8?YRp{v;LuQSs%BjNWt`$tEAfB@pbbVYKRbD5$o`GeM4 zLss%UNQDOZ(@NKk2Kz2+_MGGM?1(PjL_)y+ibf5nSRUooU17&WqyyQJtGk%o&zF?L zo8=o6y#ZcfDg05rkcf-&TaBgQK|87NHtMjhlTwVpR7*BS{N_A~uZ&`)qms6NO7&DD z<_Khm8GSr)__oX59hOrgY795~IDu_zMPyd7Cs71f=ZK++>6DM98ayDtlu@SjwWZtof@kA4n!f0Of^9#BIe0Pd!V!!WgSUneX&rtRow>0cxzL z7O7+kfSktBWLU?1CJs3})|O}LP@1a;yD$aFN?BoSpeAYCj9J-jz2DRJ`8@tovsca# zz55K6c;JStI5#5N*KEX3K&Fxd72X}jg2SLF`USE@%5A^0BaNq@{cujkXN@shZ5viA zlbY>vL!lklW*%MOXb%22Fnd}i^NO_pvot~4XbA;h0Mras;$(del%wfAyL)lqLYd4iQ!%dmMG%IJv$_M%|@0c}N!V$SusY?a`y@`(h! z?+Y48rin5`W)tP{IYDBb#HWzgtR$|hYAm(Nk!5@}nHQZJks=9*S)#}(>Lb85ESSSL z28CDGW{9Z!CJg2?oiR)+26T$vXre^IAtK#5Y|#48bmf2u09xe--(S7h>#gf6H47Un zuRgvm19@F)Gp*se4OH3bR=K8mfp(5?=}Y!sS^d(Z$hLN$qqdS!mUpLQd?l;Ff`1C5 z*}y04tg+Xt^U6G;h z;;M#*%cSSbC@45Yi8^r2Wie$62Bi1qiwqukBfWvq^#%dlr7QIzXIVt(g?W}LT@aJDBy!F41fX&eQG1N_GeZT#aVbfuxelR3|l7w9^j&AXfUn%HRd42cvL6 z_U_7VH%Cssd!Y!IYe|=j@y6JT41qR1GN^^;H?kKvmvj{!_xruI3|FmVlF$yt${=ff;3jfn*%-Kq z%=$M*ZX$!}jiH-(W8C%WgUA@B8o$YGqQ?rY4Y_zwx(qdD8tGNO zcs}0m9y;#L`pPJrgUT1mNIPr)r>9)JiLL5^iz`j+-?%0V zIDJk|BPS=tcg8I4Rli}YxjOJ|Wwy1@Z%*FWV!fwg2uxeIzi%ts(b{U28VVxXW5KDq ziaVajuhb_MsELINt9r`n%&zaNQWO;?r4#}}U0B%CFglN0r1zX=Ei)o)2~fF)l-kkO z&?UnmW!(meU+LIdFw$^t-51B=0NP>z0u09zCvn@xV#$a|vI5C`H@xSe)YO=)TZ8h% zU%|VYSMOS^Kxcfo$oHF*1YG`pg_o z^=1vGpHKxAa^~cx_}SC9uXM2YFl{VT8RnfEYly~-tMucC%3J&ri4IJY&~E%KUSb-( z<$TsyE@qevOGK5o9<45lTv%?Y4nA&N9gWa&K@1cjCvV*!drE{!jM$(&q9O_ulWr-? zgwocF7~7QLNz|2)AeMj=x?%DNVlG*LOcS%}#lrL#LF`82rn}$1$HC8(h&FJ2_0?MulQA}x9 zZ{)64FJ8kI%dp!jUbu>T-*i&nD!G-+L1Tb{`Q5!}!xGbH$PX&FMB&}!n@_7C1X|L% zvIGP|V5yEJ2Wb##TPbUa0t7Z%zvuQp024eO+5ajCtCu9$YYJL`2$I;MwBM!1c0^x0jqUBmS9Mmo73b?gn%7Y7V_v(gahB^gwSs1yAFLhAkn&mB@p|@PT?hGj&S0tVjocRB= zQ}o-;&L44Ns^?@@OT7u{??1)GCi(8~*IrlVbuX&d-$^CXpi=jtt`xDn|1>v>UgEX) zMBTd8Uj}Oy`FFtOG6Q9Cb^pS%B~AWvnk^G@J5ea+b5B}vb1c;dUfCK3YFd8;NgveG z_OGRBu*I!mLj0BbHTB`|pk9+<=PFl@eo@)v%T24Gl;m>MYgXgucdu(T>PS5RH!s|=>K36QdQu3pqA}4zwHl@N*P}^6XUeFN zU!fT&s!~h&$@8NBU}4Icf3Zn!@xi~S(Gz{OzydZ8Izs6Ec7Y)_(DLVtOaCm$LQJ7@ z?`<-_YFOCNH|pT%Q*)eV%hlca6x;-}A8v%|H?K}-t+>-dBijblF=rvAo!Hv%Kn3yS z3g=7})m?1H+s*obx>oM}$sP5ip~JWIvFTeS`20|S?}q5x#Zx%DSW9v@8$M#=XW7Jqw+3Ww?^!pVY zSc9vV5h~VOddh1U6qP<_e$(J@8u}Y4XsRU8xr6+Z>DCabYxO{d#jByA)+aft;`TME zhz9jZ#`C+DhslwzTOLW1J@E2K^5c(K9?_SG*GAUR59pmxJU?Y81iRx(i}qT}>*HR3 z&)JY~quBaAvu-4s_e0N4?Bjn{IQzO#2=|R-S}@S#?Ckly{gwm6aRtA1oHnxX(}07E zVpvyY(OdqWf(eu|buNp97+`NIB*l~Mjk91^~J+~0r5tleueuzckyIO_L19rAZs z*WM~OB1932!^qa?YbO#0sR%=Xh+Km1u4`A^C9h(KB!Dz^Ie^p@(`ekkB!ZhP$?(HPgH&VhY#pNWLaPSg+sjA8>*&dVIhg z14K1@>nC)Bc>EL7>}<@Gbhv+faIh)LUGHfB_;|hB*g^N`u;*~-JCQAUy*m=`IfuSG zJUZIzIYR<{m3_OhRQ{PF_{Y!hUbEXfMy>;7Mt;>sqTmpY3}UXZ4X7r{VA}N8HNp&M z;Z+bXGo4_Z^Ct=57$zRz^$%PJkS1Fx-E(Og{wInQ}*@CK^#YgF@R#pGzM@)4rKMcYE7G< zP8)%^ab)D36w|TLml)s&Nuia9e3EQ$Pv?Q3$QdV2o|Ef6u4!>N&>jHZRhZ&s!WYRZ zRbYiX)ds32p202V%23v_n_z^wk_QpG{BmAKo>V3#Wvs}@XJkOh(QEt}1vndUBEbbG z5)@O1ran^k0|nX3GSnBriGisyF$S`G4T!t|?;H{3`a6C|pJvXq`92`mrI*5mX?;k7 z`s!8J#;VusNTlF^y%N`sk>XRfMCmm#9~>a@KRz4d@$vd}i;P9qzV01$4mRX+-0OF{ z`x|mO?(cW^7*$h051M&K0#QvCK|-U$LZ#|f3b%BH6-Fv__5f(?Pf`3O63Mh-=V%=s zdiaz9C2POM=l94Zt%Fax@`qdI9D?@qIP0gg3J6YNQ@xEqu>sRADZ)&=uL#j%tUm|5a%&4c4SR!OrRGj zb4P^uO2jSj5z)+}l@7|!k#zXrR)_y_jP)lU2OYWsgd@8(-r1R0gWZ#KSLUFAnmbr^ z2kOdpBm%&k1aP7JM5O>uKlwk|`~zbljBqRi*%9qymQ$33QkDQ1I*uY5S=PX6TbOk? z|CnPQSIctf{vL|u5-THPa2Ch@oi+IQ-7ewT_4}gpZvgU@%@(1>+z@0RKEyg_G4V^W zQ;zxBP=o^3-9{Rjc5YTnUT?hOd7OK~{r>g*T!N^iZG}b^M1S3R6DJq0Bvgm0H z@BwQk@(ckiy$dd0Trbp3AX7~bw(0_~5&c1|+Z}*q6-}=X-IXKxp+1(9?wQT}QNaewH%cJ0A zv!PMyP^dZ^LuynTbGVJV`AKv~RJRwDV{m37NQMqa6&s)zIR@2>ibFw_3i?EP5&1}6 zkr;uj&skdHh_o!|_8K{o6G$*z4vdT1mf^wM81;Er$+>>7Uh>GJ=qfOg%kUg&?!v8F z4XRWe!}fO9D<;&ARNNmPmyp|-kR;a>*K&x?ZH-{)WSnYD#gTUF;89175i%)Y6B2)# zDdZSm(ZF;(ZgGiZBgTQnT0TvT4flblz-!bq?Uqo509Dl_#nz&I!-O9fKH^Ai=XP1C|yoi2r6Lmzi03wa* zREnPfS2c?X&DNpr3PuhF_&WY1YJg%=$xLN# zA4ZRpVbt`xPB0F=cpOb8UN#ODsL@c9U=jFPeQ%y+4MjiDR>o~5P1tEEl+Ah7f(t(j zKL`IAByruG>84U7#!oN)^z_54zq~ko_0!8&KfU_!H+b9K#n?jKz2oBt3$jDBN8bm<>x%)$ry8{-50 z^9F03pJNUF_vK4#QpzYuw4fUafb{fg+1&#Ne*CFNB`1QFo^Bz;Bzqd5{<%uh*RaxsMQ@9zeUT)CH?3x)?*qsb$xfCvj%usF+3p( ztKnRAPFFY~?TZHpqh9m||rG4(t=V$)(6E=+rz9^>Nf~Wd)9s)4Jl&}Ne zE0&IZ7)u17dA_kF-rnM3h)qo6B>OW=7`H||>V265qWWt%!`oXw-`*Z| zBmlsTozl+ZgZ?gxpTV^J43Jttuk}w|3GUe$dWyev8JWvckbVf=VHbXrJ}VVrxV>9P>p0;f0P6w3rVF*Y-G24<0)HYubr z{fSgWTl}0=Wwzh+LbxKDUZe!JdgPZpa*0SHt63PhJp12gj{fG#xF7pHydZCHkMWPL za#N`C7_U&kh~3`7?QQpH_`w#50P9LP}Ls8Y5a~49~cI3S5Pi+pL$*J%{tN^p-$jwC1hulLU}c194L@ zo;SM_*t6JCG!>5cTSiFjLr1k;NS17Id%GM(PmZ^@@$8NE2g}jkpg(|Cwn8lE4tj7# zU0-2605lDS8llt@9Yf941jWm%!qOn^SgZp4Ool9T-H4*-+_>QdU&+j)NO697u=)ZhP*h84{A$Ug)0MfugNKRAnIk zz>g3SjXRUuTi9mtJWRY8h=5>%un;_Lpl^0MME=_ORw1Mi4pbaV| z;V+J-d1^24!uGvL0#1rxkve*D_Qm4tSUb&fW@gD-z*68%Uvp%L<0zh#Cv+DcY;R|9 zD<1T_0Hbuto3-GA$9f0-UI$Pn)PpOsKeB;9#S_@u``*r4)QZ!LT2!q`*CdP^Ivqg0 zEg*Fl;|%FbOb{~)#_?nT_!!a1P#LDck0wk^iI@w#3u?vFG(=|;PW;penWk@~K(J!U z53)FO^4vD=v0sg&;?d!ggtRk&HA?iRYW${n{itbg!5{@iV^rx)6rB@{657BP{MSTy zhhp9RBSZXA)6qyn86p>hj5$>beFBoe1UQMMSazhq-`j1Be`!nr=$Yc{03daM-m@%# zz)(Xdkns^81g8~00lEVACVdi*(gECUO9s8Ee_FHp?pn5s>%DRDGNS?5|~VH+mR>n0ZE*&qhaY|u$O<0qh$b4N=I zrj`2ex+pi;dTcdm49%S!`osQ2Z)Nd}x$t0I| zO|I@51p#k$YIOjjRiJq$@pa@PkVNiQ*SWnFj~$j?P2~b`RTu_AxIyMU?i2|@VO>Qq z=BYJh&YV_s3NRpxN#4MvNCh#8!50kj)|!7)cTMCV<1HnfI2Ax1BTN2(UA?^}E=1gO z09;Qx2u3kbn2x(do5LaxI9^N~u@KhxNpOB@H5Y0>VMOrBR?RoiWKAg$N{(AQYbW7o z--TRDyr@!WUm=xCgfcIw<<5DoKsgnK|HLn_GE<5IoEbgZnl!UyC#IIHT-_+qaxz_3 z0B2dM960^PSsc#;%w`85t;j6P84B7Hkl#$R%_&@_fKHY;Gh8DWe|&puFPk1SwP?!~ zjeTzhx7@@fU~U5Y4Is+@r)(1{hgKa(@G|4h<6qJ96TE93+C_fb<&~o<1)gIBLxJ`N z^rv9~5H&?TcYy$_2Py|Q#gQ%U-}rzV9{{I*-t<)SK&J3vRVNkkCpu>mfQT`~1l6_# z;cWrJP1(kvK8dH2uHl{LE(Ay|%OHhYmcW*Uo{V5VOdf~B1h#NKWUQK2t3hwP>hrRcmC(~D0~S0R3ItJDiFG)E zHV>EI=Z&L%VmWA35qnCoj8OQg&Wt!~A)K{TgYew|3zd;Rqdx$!sai;}j=o&S6cPP| zR&o9Sz>2d?joC6(Mir zYtf`J5hPHktZ6;bQ_&=bqAb3YkG5ZTr3gBvMnr0=ue`6scCpz-Ef5z=Ss>7K>C7=8qCO;ZUFKOlgVBN>oQ5 zz@TyfVVrpMaH!mru3XYu1T|U<{2KKZ+<>0_8aLYo}V`rFeVU%$9Um?vLXA>Q}X82D-ab>%0YJfQ{sbN#Lvj`==&t5-$|NivV^A|sTc=htti+42=qq^@`(kTY97@QBgrlnjhLO?4^ z;tT~Ap7rnVTe!kNax`sYZ2@K5(r}YY9JoNYU{%zT1ER>9D1>RMBE8~(Lo+mvE|15v zP?6U1)2v0-%t^bnzr=n5C7F5|T3j8iRl+OqPfSS-oJ zsqooWYQIZvSs0+m3+a!`zn;$LqTng&q3Gzm=34U6DCOG5FCni-(}3e+N)kecFcwH# zpTt-_LTO?7v|T~MZZ1cto=hm`4JLR&+hH94?_f5~osnsSuyTm?Xvnmoe{^)nt{KA0 zVXAB&m{Yvduwm)#j!&*TofiCa1poa2|2>2MUO++j<;nHoOL#cigZ~cT;rQjr^5x5y zFX-QwliTsh^7#>dynOxx{I*A1Sn`ZZu!eJMj|Sskiq&p^aZ1&8f%(F59POVhd!619 z{d)|>b0~IC#wU}L)kzM&XWs5F(BjtZ7W^Nr=}uac=9cqlH*_!MtMM=T3kOR6W!z~U z`>pfIs+ZsLGko^l@MQO7H2BwT@1%M1$UQx2Z~fQF_d6%{iGyEHobRF0VXZ=s>9^b4 zZhyT-@0hEw?ysPBtFHpBt!dRzf;IN`getKs{`SQ;J@v3({Q6AUa!3TVccgTShohji zcQiOYeC)yX*6-b-P$_%t0gC{1^YLM`+ZnXF1sSDYgdSU{_6FVVAwBI4j;Qm|(V$Z+ zSgh&VZ2i=zDGf)25R~%#J`i5vqKyy%)~NI_X%j%<%hq zWc^?8c*KtVV4@4b0lGfm;WBfiwqQ-qICp+p6I_`V? z)ulqX8E7HM?xt?DUZ9?Uh?b{iqD7D@Bs)g~7WAZ41=`vGb*B0kIqOR5%C2Y1<#8k_nM^;MAI^gde|kgeWPH$;7(RxEe;VDel{)&U6$%WKjf*Hw z0!4h2aY}-ElHIH`sl$uh<{O9CpU_;Xt0;?SB^y}$c>U#pa{sK_(l zTdR(P)0;fz_EKdVvL%%CDJBXh!)g@1CUCwZPrp&>7hnvi5*z}22l$WGk;pRnQqvYS zGhuZgL3=!%@XLj_b{R6)=hfS*04O^3aiPegx79C=o127G^bTc-XLaY4pHlTLw(vM~^cKbX`faj3SIC5tS zJww|Isjq@>@fu0Q?(T4uNtmaP$rV0_@iK*>%>uaL6O4hkJU-YZpsA zK$k!$M}*9Lg``+Tj2r4EhSbWh$eoVa8pt>0zoFwGH}Kd?x3^PevL}`VICzR;BO<|~ zFI5A-1t16#ONhRfypFy+bhtP`Sq1);4$6TskI4Ou#GR@M0G;8qO>Ah>gC%JP(M(M? zGLYI&VhvIJs6{)Wvyw){D8ukph1D8_#np3-#s{(4l?$gFwwA4z_<9)tiFf5M7Jww_ znbL?S?LWhx_K#2B3OPdRC2hF;e&mWaj!xdr6q=So2e_epOkEy#jDl-bh|-ukVhos~ zwj6>^^_&5#PohP94S#s`Xk)oF)ukvXN796gii=_CI4PK((Q%1}xkp7x9Bqt@?%~uS zuYJ9F@u;xEuouR!W*22jYI9#|ZjlYvvcmnV4D8e$j9$t5@*5EEnvKjGvgrzS$EIc| zT8;X`84&dP4WxS-)0at%Vzt5A$$Nd#?XRAnlS3vz>c{86G~NxHBi zWb@#Mr~wIw{L%0RW!iMUL!6aKA|VN2{mhBE{Ij$%^`pid10rN`V;QmS1s_YsMyZ8@ zWT$=r&1Q)d%FxsjyLD#q>h4eSFP9kOf$VNWVTT*CmMmm#_Z4C!_Ta*qA#B{a7A}y; zV(}$oFeGLa*2gS{TK5eH!%>y^YG$gM;dcjc~VK{nk|897- zm;|X12is)nS`Y9Mk}-Q|ZknOSyZXM_bvC^0iI?!`^+~C_p_{D>vc1vc{#n8#DN#n5 zMAFFIM^CzlZe>xZ?9$QZDMABS-Og)Mp%juX1+~(s_Vc6ZWt^blG2+ly7~{%DS>hJc z@QTjldZ;`WkFRF>Yx#f|uY8_(zVrXH_pa-0TS=nm|ML_S;#L3)qDb9rfrdHm*y;9k z+DY3<_nx5`3noDeX$s%~pkpfp6t|RT>+4y9eK_^=bQA5MXdX!R;{X9b@8Lx z)oC2l-HsM&A@g}cyO%BHQT=a#F8~u%s~Za%}rF7Quz%|yP{q0EMZt_OMdK@$ur!UTeyo)Ivr@)#2ueHTs5 zLqU(5ogzjbZIieI$@#5gYN8lxQ;Op+Z6d6D#n{HZy$Q_|Uv)DD2=u^ltACFVh%}AFE-B3xrJ=E-8__cP*BuUw(}@On#YdW0@jBcCw5d(8xJmhIeBu zZ-}~3y&Z6y7o6Z-nGAsngbHbhmQp*_!=jFF-F85UeG1MOhl=#<6O(;aI=Dm9L$hgG z6Zm!+CoSwURfKEI59y`$|LErWn;*%!o*$(-v=Rut# zOg)jMc(8PQkOvM~0j44kz9`L3Y_kZ=35vc(Cm4d2G&TcR$@GA`pKN|RgFa(;N z7<+#whG@ON+dnec}^OejHJfi+u+e$@V^U&kQ87^*6L4Co6?{AQ~%ok=)V9m{TU+dmx#12 z665Oljv%49(4^i{G21{U z&UlmNp|CiDjlPzY<8m|U*CZ;JI}?>l&yRMY93vJs-$5R*$$%i^$j&Vic5cynO;-<-tos-OKOh+2o%cAzuL8Foj)0`Onht!TDxNc^2}{d${X8 z-hU#|7;0u(wkEapOq^wa<^Dc$XnI-quC+uSQN~2$iv?`JfaZ!UwDKzmzvW|@9CT+9 zCHVlRGRfu~k?kfa3X~yKN_+6Gj&M&~IbL8_Tu;|Ltn1ozT7BQ4B|%U8%LqRtGzr$Y@k!Cd_W00dm8r)AB_;GOO|fL;wH zGrJURVVA5;zJptmWEN~eeFv@;mt?`1;~;9=TZ zK7H2;lj1Ir)(F|_Y$t`X@ZyBHf8R|kk$|@movXvm_P;YtPGw>L_{=AUT((B{#^$!F zc9}!6^YxH;{_Jk#ihDle3qrsSx{17Vb;8!CLXvvn#!mIdUdxT04As^KZLDzOC!1Me zLWOhQ?HhB&30nEsq5JzAKuB@u`oQ2YvKzy8z0HF76_X zaK{OO%yyErkRy+1lcWXZ88zWZUkgVhLBT7a>-cxAzrPnr0S?nXbWzVx(Vh&c? zU$s#!4Ma2XUXhA*4^Ndo?}Ea;4KbINO%%A5!X4a8L%4Ix+-zq-FZQyGXBS$)O}_yE zfQ-}QCGD@fA#~`@cUuY%aO+;b`UFP323c^6Lfva`2$X#%2wqm|dNyyZU(uNacf(`~PkqpVa)QMNiew(6(l|O#0xr<;g2k{t$h4(Z zbEE-qB;`SINPFA!5ThVnXM2%;R-N^X8g)Me|%FLXZS=&ztyNKe7O>`Hn zS*mSD>`_`X;0yl7P2o`SI5O(~C$|R|AKl)4qK51?yugy(H5lRHmTOt58EM~mv@xCk zqMZ@Q9P2C%O0zJ^)?Hw@5Nd8jv};8!}fkF*Zx*6W_!{JpXljnv8=VP_@-tNHpIl^gR~(75=f-K{XDv)-Ub^sGgoD zoGL}=CuER4h5tW1M9(1ab{aR3O~WE|iziP`y@M#QRjIDykI^)qBsbCA(xpQL zFX?rgRRhI~yZYkFQfjRit+-aK^Wf_Bn%UBhU?m00T6iI zU7#;;PO@%_YybV-%=UWy!JVPrCbBLw`1_duo*s+u6aLFwF8nx`85iQONI!Wb^2PTB zTHnkp#Rd0VG)7D&Iq-SE!{Y{wE=7NCN&VQ=skbaF%)1BWL8g?9o+4)S^Ao#e?n5GX zUMkVf)>iQO%cxv`JZNG?(dEo|M!3PR73l;CVbsE`=i5w}M92uj7QYq(1ru!)tC&av zPkWLspryM^Zo8s&x>14i~#*R#s zJ-}Akh*shyzkN+@N>!BDKsXXkl|9o{oh{1_(KU{N;CYFKHucL_-+cGe^A~SlzxY=B zTNyfXVd=S>C3hR#H_o2S2QyS}Urp;pMzisNty)yqG#EUhQ{~w48+zO_^M#ZCsg5k- z+66o*cqf^1+iq{#PJcTfNTG=k;3`EIVM51Cf)8gZZA58fJqW1+IHhH#B>W-NG%UX( zbn%h%5ww!fUP9Q78OiO$wfK%SU${xQ&VA|8ES4!>qau@BQ8k;PhPAfE^zL=(#3Q1R zG>WkRrAV_xVC-0aP?QLh^uN3S72scM5*u}XjN*92w%F+aFRE;IUkcGXS=vY|gPf_~ZvqXYVdq_5r5}zmJoyBh2 zhnvaao#ov_POF~%ZmRJ@FaC3s zBv}hypaLQ%ET#D0w~o2g0N%WWm1vX%*#ZfDgKBo)0L4x0WDZy5YbN>mxG45dFLxX1 ze{kSc2JH0|Jte(o5tVtD-NxO84*I(lJN7KQk?_P|C%mAjgHS;nDJpl?Y(xG|UYYbn z4*RHCz)yU}d>f~Fe}5*ti(A`~`Sy7wa|1M@diLgZW`F?mJk-N zAU4)>*eE4$E^2NZPcJv0dcwY+o4PI3=s+hu$<^YDM*~!MFm(z4gqx6e%h@c>rJFOoD~9KbT!v$rFK^N?L6>1~(qyrS0sW%Si}2A| z?PY^rdyVEjgGy!U68-d?`h+nbouTCi+I?6<7$kUF$!i`UtIPZ{{lEXW=@`k;Au4o7 z5TQp{w_9x7&ff55hC^eVBbg+T$snm>o&$^v@h%A%^FY ztLsCnCpo-K4X-#-$(8M{brTcXubvHTsD^t zfEa_ubzvXr&$Cxsrr&{5136T52Xc5Y21_Za%;3R<6@EB6yFDFo|;Rz(sFHYq15S~J+h>cqT-BNa0iic7!idn5cDP}dreg_`m z2C00VRoes|0@zbj1>GPd0yiJG*XzC5e8ND@B~wj9*XKd1y^4hZPB^?2E8@Hoe}4Mz zJNWY(k}qQ;A`)yo%UIBAg~t@M9yEXBL9!ZyHgMg8qn{CQhU`M-fr#@|dh7Mk&%F#% zA2m`x3b%gG4!dOMQw2 zHG$j$jC*`?dVcZ+Tt>D>!#sO*ar(&9H$q`~ok6F<>Sa?%jJ1~w6EM?I)$dsGB~+Iis|-~t_9hqE)SsaG#H>O!KiIjk z?Ox3gSnEtFm<)9Uk7mvGHQ>i>plAO=5?}eqMm(-eww?X|sGaDbd_e?@LD{n8Je2v! zJSl_{sc`Vtkv`yruocxxA)m}Qv4uiLOD>iRB$eZ7*J1Y|OncalmtBuf}SDF-om%9lB#Sc7Bk z)#E(2JIkxj#zP0YZ`eN|TBtvN@$IvpzWY(wA$BJeaI|F}G9X)hm?{`m9ID35*&zGL z(nJxYDz@^hqJ3GkHR{km@(lJoCF+1cL)N1Qg*UET3d|?Kci7@zA|Q68I*FeR)2B217^Q=a0`%Pw!@N z>7p=MTx>TNAgY@mp*!M}{+Tz1#(nYtymQ;a4fCdU*|YFij~~)bdMA(Jnn4f5XBWrV z=|I+1M6q^q$Dt|9F=Izv!{q_21Ai(3DeHbE*_oWP)^Ry&+Fqne)RYh z^=aJW$0z5f_~ZOhkAIvUUp#tDBiF;sVVD=k{j=Y_E!J8+zBuX803Y@Gk9g4@pNpNM zO}kGhpz+t1=%Uv{Khi)FJUV-PPRr3ddrXUVdfx9{@KA_I_yQye(;))NMh-qwI%s1+ zZ-Vek-PaCU9m?ob@S%cHQE?HS$su1qDzX%OnsI&|ijklcS`1?=Wq~ywl!Of0Wkph$ zQ*hL45^DQ)=;JophOT>}N)j`As75xq`}I%ac_t&b;v_IYK>^xM#w1&$#Z9EqA-?Eh zzQRb|ul0pZ9v1i~J>c^@zUit~tZ!J#Uxqra#F4O3D%vnF0u)!jP5oVsRV(RkS8f!A zde9-r^a#}Ug{2u}%p9WFQyQfBZ5A*$IxMYE%bl+Q0H`}&S}CGrflsvJZ8+WEwp)xfg&VU066m>K3Xa6%J;Fnwt|j3yu?Yxpfe>!H z1EIR7j~@ZL>(2in4rHRa0d}wIJp1D}fU*Dd=a>Kfm+$`i>iZx5_WI3_KmGk5|LZ^g zGkQ0HC4YaN{PNHFO`0wKD=*6BhhIP5{;StNJ~=%*fAsj`;3&LIFLS4cni4u3q!^Si(((_d(9!;W$yS2M22Gwm?Vs--pPk{WuS|JtCBX0f35D>QJb7}y zj&yt#IZZ%811;o(#VP)9`taNvetIVX`5;fNn!S3>V@iOsic}$&)9Ky#wTc>kE7W%lnxP2kgB=SMOQnPmQl9PmH$CPseQgl^T;e zwo0E`rFAtwuZUno!r*Q)L|~3O8M5)LlR)ivopc@WM}`m(E=F18Bm$29X#Pgw6ScHn zpUJ{3iV`KhwLVBFMdddgbRnj^v%~EWtzuLOX*Go|YeeUePY*)d%mVw>Jo`1ykxy(p zF!7K_7>LPMK5+V5i_^dZu>vsp=q8?TE6%O+>cRbEUdMr>#^xYA5m~wG`<>soln|_5 z$M1nDcO8uB!IC)mi*h>r=k55RcgdnW_=!0}lqV&5Yn6M@maCG2oh$(kNZOie9Z>J$vPO4;*jjn@~uScQ_t3J-7Y+y}eARs(5$ZPUurw z)(=_KPD)Ga#(K+l6?&7$E&K+y(Dl4g52f)zpW}}8o`lZ9q4B7Pp1sM>Z>iNTe9WJb zEPu$ZD#cU958uCe`QyvK<5R`AFJHa<@jn8Q@#@8&p4k~JO{FGaO#|px2NDC=1Jnu~ z0%KFs*9O5`cbOK~$*gqE*8_AI&h#@yOoNHF*Depj_+jqn55w~w2_hesUXVUCnkuoW z9nU&Xbho38M2p`?sOR*bah{dDnR-F(6l9Wzyu} zV30h?2MKcx&Rer1j&0tfzM#`S{m=tLqY$N;fZ|l=qZq<&E$_Lw?)6Ca2|o8z0Q>d& z{Ok!*cJTG6w_angCjRR8j=fFeAic6XI?mjBmt^A77upuoAjL2FlvV*R)9keyucFya z+o1Q*u?tq`Jw5u_wJ&7(>LwNau$?T}#o!xI)WKcyw)&p+=u{765w*a z?=--PH*54tgg*M_@%!gq zU?n{Eg8F3WhRpB0Av61iB-H?QKj!3k0oJU&ZjSe33fH2zACrf9ZCqP!NBQ)8=Uq71 ze2bL)p*2NKoCAwO?$THOWK*L?2xqxuf^V z4R8)x4~4`AbT1sS5(=DK>Va?qMo>YmG7&iY#J-J=2pNo2+#;>IJ2o_fG==Q9l=P}H zzcnLb39hH~b26cY6EwNjaIx2~wxYbdCMuvy%@sAujG5jwSkJEwaYrhcYkWGx+ngT^ z9nM9OE%Qly03VvHdOy$JMRO59^*!m^D@TkX^@dV8yayg5k(@XbR~34uSFJAr-sry= zA5NxsL%1oMZ`o;Yb%)$cD-N};q}m%t9O%dAXZJqin@AsJ<){2hKiDM{;1WJT7wy+axl4{ zHb&751D4iCLRuH~0BclFG>e~HNF}7aG~tK}%KS0R(hP;8Lq_nOj0!CGe(eG9w;Y5| zJkX@g^En6lF08%#EXpR$bB8dWL0Y)EkjEH9+I=#ygepe&zcFRrAV+o`n4m97IqMVe zQTy>nJ<=Hec!x&vu=eE+1AOuMu^g{Qoy*H|eBfF6f$?R3pv{7eV*1b{8wPISq5Gd} zwri;OWYzbE_P1P zCDtlO7s%qy!t?m_p?ltYh@|`f{OFI@>mEz_h#eMX4`<|pbi-K1@-3mv3>6&U z*#8K7=q}Jyi+*{~fWN4GtrQht6C2oCLp=2I&G$mwBHB9j~O zTV;^d4gBQ<7!ujsz+X;y_UfBIfBzc&(~#AT{^V@Ke@%D>`Np?Xkz&|iNK4M;AJQC0 zhYbyz9xL;(99m9xg4m9qDLAbaT%$qk^Kz86)sMG?Kh5O^h_z^sfLc{NQ00ov8Y$WA%JvcI^|c{`hax2ZXPqeZ-*0Es*%$2o`E z1;B<#-%?bsl9DZ9hqV{tRi4c{v5t-?90{RpxPaL8n0bl-+mBWIp}(B1?aW%Ij9+LqSrf zf=e9418*fBR+(@S77oIN6z^P6suu=9S$d|GgAU${03W367zrchx>D?j_Rk5B`8;3M z3OdndN>;|&MKR_O{}H6JIDkg~ItFjsAON=nc!S9qCz5MWtY?Y@I+JLjHB0U`;a8Xh zg8<7;6TslGVt%aH3w0%-?N=ZE_usU^(^w$^#sMMuSb$#1n9^8bWl*5VvFqqw_D3bT7i!PM>l|Ck#V}u_rpqHmD)1lem!&PHbxAehR zpWNq9Ze7CdmL4P&wzSBwNG5cHmXo74!OYXEFY{Z^2EKm{$s#jWHbP2oyAqHBY%%OU z{a!ULh_ZrnZk_iul-w!V>^ssGn3KR(0|lymgBh>ly@BywadFW<{}SL%c#^?gKz^nn zziH~IDvrv-{`de%)D+b>+dwsG-DpB3gIa+=cp8Zt0uEe0fm2YQUl(A3nC(#|M|5W; zJ<(xi3OAuSnCL69&=-$@;dxW{EGg0PPm@NMyN#k!Af*;Ll5RGbQ0Hz7>{b?ehVWXp(ml`*LhK#l{d|onUvzWvNTs z;m^ttPKNgKYha31pJGw*V!^xGXz595l$VGT-yIbQmdJNW0_NK+S7I@D6%{2Ay!ieH zv>Q4;SW(dT)K|{sf}|2RVfr+bl*f9Vzz4cB=1v60DZ(D

j$rVR*W5+dCH6*}(T zB&l1{iuuJs;=v%<2hpCf$rI0R5&hO%^cR#+%H*(cQWQU21pKInMuVrDAH{wLDm^(r z@9&05#oqFbfIG&&YQQBo+mzkPl6-))Cv8qOHhs_nJq)dlS~YMvP(EsFodS#=)_qik zy$gN@NQ8e~kwIz4YD$%4R7aE9csu9HwgkZnRIO;JVSj8+h5UhU_m(esT zqadyPoML@>lG5zdKc9V!usFXajx@9gH7>o6b( z!{$mh5ka;~WRe<&tPF=wqATeqM-)bSR-@chC}F}N&5<+*QsWhLPNgqe*tT46+rrp3 zE-J!U(5$%Mw{vQ3)U1 zutXa6Dh*`lZxO-KpaamGDqd&JjMP_ZhO0bE-^YPyo5_U4AQQ?%(k@Hz!Wbop1S{&D zOJ+vNluKq*GNY3CpMUZA(dn0w>71XPq3t~sr3VM}8|o_FsKkfPS{6wkHe?~E)}Dog zM|%#_4sAJ)PEXGtwP!s(Jw~Jbwye{W)3Z$tGI7#c3-d6m@^L`zV)M`NF;;_`kjYlG zJr$H=k00@RhHuIBI(~vq8zr#!21+R_A&p_>ZBDV|L`2T!8DIc6In2GIWAA`Mw#H9^ zOU;1D-h)2}O0%#7zZGGcjuZ_F$-Zh`d-cJ=K`V#-VHT(sW8f5qgvW;2!EpdpArG^L zjcL=YvF*eQ+B0)MLv6;&r%nF?kbZIYSdgd;I|Jdy45b-K_t$9t&u4Fb1O$z)bx_}t zmmKa#ydo=~Dt!s(29M5XNvo4e2ad=9=bpX3VbgS za}?N8;YwwaWszwMO{T3RK5U^W==C)Jfcx@&K8;ba>DJBgY>n`-cpDW0N6pG+N5H=T zB?~97C8q@v2AV9L*JMycpT2YF6i{H{d6Lu`NbXM@u$en20TYo#?qa>hprY>HWW7cf zgt$SZ@FMA=te^vqA(~qr;^o-bD})SBjse-@bdoLc6ri8(!4f5U1U(P9dl;oNRkbM$ zy$DepN&jm&zRCW+)P2=#?2W6zcdo@Tu)lt$G-!HF@(o>mG z(ZU;PdA)2>Hs&cbVzQ;`DXRrU-Vr8(3w>t#*n}N{476-h4~h9O7gnoo?pY&j@>9!J z0it}eincroG+$Qefm+SeTDk_=j_-$xUKh|e*V2CTF|Q|t`^q6aIn3Z#reO@+4!&lw z4%k6oFN{v|OT%m1)MC1OWa`8uN%YYLLLF!!APxd6sT?21B#B3|fyZ|pN~%q=HDbJZ zNE#)*L5(*wKofpU=1 ziVSf{$v7#vr47EG`2WZ5Zp{K4po8MaQV@ZS^Mk2;DC+5jTWGO-JdJ$3V77 zg`+6aFz06%Y3rGj?VR%a2o&al;!Z37MuJ04<QcS_EoPuQ*HiXoS-kbrXWPzO+zd#_})doKBuifcmWG&H6{G*N0etQyFt?38Q> z$**?ba3ueMo9AA9t0gHM(}myZMf|1w2Cl~I|zo5!T};`mutA~iU~t=Q_%NPKTY za=sCe;X(bGbkbz=YD!EcGCOU>EX`;oV<7}hvw86mqh6u=NrkBm6ukxW!U|jmMeWf9 zZQGg{IX4h%j}TpL_;u0$VL8g-HrgcEVX02MSrH8Cqr8X3JtV{UQcUoGgD)^unapk_ znw0PzD#S93(d96deZIU|P$?K1vYcOv5r(1t<;8!z3E$k_yvycYj=J*w>*p_CzlHR- zFQ0qL4cRLDH6<2{C^@V}=xPW=0ey{w*YON*u&yYGFC@@@nMaFf6QGX@q->BRhH-wp z#ef!Q&xZW;7hL$i=xBMq<=HzoJ}RGh`FoQ=NotZNtaN|nJ)*Z8&6dtCE^tL#6s=d! z-T@!@4KOD;k_LHD`jqkp?x$!D%xdUpGevbd74dvF#D9Xe++SfGvR{Y%M@o~m?sI8G z_b~b*djy#-ZZfpczPLEPx4na9Lw^H*iczxv3S)kh-87k#Z$No&=r{cP78OI|+h4PM z`prklCK#K4{HT8>9Bf>io%F@)=<#WfWjyDP(UB4xQv9iQX&WRs9Fm6d%8E2rr0D*9O~Q$C{!8JH~lnPDf|d1=7AiZ zkpo0G1uqp&C}+iJ(>{sq8HbZ38B;cW$j z!hQy@%VV@4igc-GCGdF%Ts*=))*mEIyaUA*m`ReP=s#^mfPgXWh5Z z?B>a{Im&J=LD{?7VkGb>Epm;m?E;F~xkV_uwJpS2J2!@fx3(s*;m!?;@@(#Wde*yt zwUd$aK%6fhv6t^WfHue`lEEx+9w1+fK7T86`YW8{B17pOKR$lk^CZ}h2l@o$FkZmY zUxEn0We~#tvy-!9z6c&4_ryhTa&gu>ri(zGevM>(g%<#7K$X8;lG}>Zky9omxiOx` zh*kw%EPWh1V{>W|-0;}(mmuGI=NDpb7mqJ+n)Hy-J3SGTyEr*MzTlUPN2ezz=lqfZ z1uh=*Q^v{3Nw3dO87KYo$B!`VG_DSiPM$v}KUL=!C!RmW0=Vp>Qs*7nG{9Ob2 zhl}|IHpwJJPEKKoyI32q;R3d6brXF|Zk9K}D*iZ`FN@>@3|syDD`x`ZxF~|rD*Gq! z4}tR}goJ+r&-LApFZ@}Q%;D#seuUMK`6^rIzNlci;QHUv7iZS`dMf++lkV#~qpznb zTjye56~4bnMiD3!ilTBQIrIlBv{ma;8x?#3TSvQw_zT!?j9z(DaJ9ErD`KPb1g`nO zuIYE?K+=>!y@l$k0+?68VM>-VxOWLOIOc*4E;5a%62!CgRuU9Gvcbx}Vnw;7uRBCK zJO&aPSAgoeIPM3lvXbM)9Q;VD&U)Qp$A6gbT>%|2FcqPM-QPefiHK?Vd1x5?Ni8ek zaDTm4uhr#{e+IzYj?!^gZSdF|_Jf|1RA3%#^(Y@#7P2BtazAX4n#8IO(P(ZfK)Vir zkR>3of+@FdV!CY;<(cPAQ}tutTrdphU?`WzV!dU;&>Er$xWBt=U7Dc3geB3{!_iKlM z`mcO69Yp%=!d6%>zm76MiAU&|zq(KI?KFrtPWrQ=WIMU3%PC%}{h&Z3cC zzE*WrCg9-k=<>nkYV>n8KDexo;8LM)ml8Zkc@LM%(a(-^SvM7s~SpjNWOT5dNVcpOCcxy<~A*( zkK5ahbldfcjYvK^=16QZVlCEc5`q^SZbKnb82gK?C=qKB;Fl6xy^qr%<)`l((L!)5 zey}m#dmnJh3qA4JRdNU_Cn}-6)+3Y#CP))php55YE&BC9#mTM|lrcOYu#gW>=k%%Ku{K%cc^P`Icr5 zPaW$iA^L+A4fc)7sXS`4$JLI0zPvmd;XmVt(xYL$DK>C!G$bA>Di1NeT7p zXcF%$=~i*-OBIAGr*qKx_c!0a(o7Z1mYCz`c;l7+2M<>5pyOP5y8bo!WK=QKxOF|Y zA57ozu+UAO=D`Zbk2iYSC0$P3L=A9!@~X~L+$z@h06dsT1lA$nKhM@`coOt-m3LwGn z@F~=zu)*|}hsi?A7Y049+;`ppL!iqECHiF|<(MFd()koSzPSqtX~?KTFe})w65sva zx`~ha4ipX!{ZqmkJDPy+e&FVOlsnO$;E4vZidH|R_Ybj6Sv4|`;#jCOKoT4V`N*b@ zC73!$vP&_@HG0b%er@-D-+9DqMRky%Vh>IHavH5y+5Ho^!K zPggYjxMk#U(H|g2X-MZ6!$sf>9JuT$++9nRIX8D!Hgp)XCUyKIDB~R;D7pr&ub@~7K(5(oZ2D%;X$}w2gmeYd|p+RTacnj)4n;m z3%F4gDzmYwcvsB?@+<+&@tpa$@Q*k4v|47%i7+v1#(pLM^8;p}>ywTrJIoYiKj0Sr*EZzZZ3dsQ9FVrU``ca+GY5QK?Z)$ zt1(xD&ZaGAWm@fgt`W>AN~8f+5Ms8imw~0cD-#YC1mevIM4Y1fLE`-Ss!u$$a{kUy=QwZJdd}bFqI9+`_*Vc9^=sYwqic(h;Ak(ixQ2 zH+V}GoymCk1FaD3*){HY0HfpnJ>Tk@i*-eZL54awT`~_wVs_>yU7+-#mWTD~gAkR? zuKisOyJd-!c`KvG-%CClWbiMF@bwyp#zc9Gs4U|=6=)CW<0IhWfI233Oh@Yn-jT$F zZ?7!ZP?wih(Mu}qcyJ6%awNX_EBerl3ylZZ!BKPUlJ5RRo_3_Pk@wYY5nSnWu1h*Mml zyOTvV+&R_PfYD@Jzm->aATN0%zhfl!u6`o}Q=`!ECPbzw34P4!#JT`yEZd;q5BpEh<=K&752N0y0JsMSo+yPHwu+v|h_~-NsZ^PT4a)P~ z@Llk(`*zSu5!K0klh)mtl4$X8^~v}p>5}%yb{@Uf>Yb>l9czt@Ge4%1047(S_j?%q zTD4KLc(X&a>u+U#KJ8o^l(l_&Hy+-P+bDac>4~I3339yP-L~RMYBuV#VaH?&_7Izi zd9|@ray>}uEoLoNrP*@qHS?qmg=|kO6U>sZEZJ}f@$M>0Z@-@fqZP}E#bK&^@hxZ~ z-@pSVPFOv_Th00Eh#ohOxb|P81vJ3OqP4(xNr8`^N^II%==+@8u_UP5N>+X}ozfF( zH2=XEqCK%{>{DITrxSw>YIEJG8Q&(M{#!TV=2PkwOurR`B^1sXn96>)7Y_q!>_s^%+VVa3XG^62;|32wzcAeoHCz zwVco8m#{Ok6IV2Z6sSTV1<{Wr{GRv=&v!865K|mTa@(AG#Uez=Qb~@FL+!T!9SMmD zUlW)7Is$G%|9-$_E^{&j2RiKscewY!bKT47!GCx|{PS1-^Bn&C=nlinsfV9`wld$K zhs-tp`Um`aaO5xZq|G6sA*Gz^P-hO5K2#7(%?+G18?Xy)ta;k3=`{*kU!tkw zGYa&xK88Q1(SpojAin{Wp^V~ z9e9`H`XR!yI7%2XNqL6AOW4rQmmhn*!^@AyJ?HBuPycXv`SaCkUDeuHU#><6Uv-ZL z!~M|T`?vMj82H2sJ4?D~?2?tex#@8Km(0;jOd=R9uIg)D~aS-J3FlX6laNP8mp{Nl2Ee0I9-UmRa{;hwD(Jf?#E zN5>RLvp+hAk*$vb{7+zz{c&4qo&%hVbsvuho|rx!m}5LTC!z{AHl%uh=hT@Jhs?v4 zWU*#zM%mM`Ml1p#maASb>Q{&GV+Q|K7Xtrh+3ef8iE`(HmiI0}b9zeQ;L?T})mDty*j0PaRTkFoxFIF{od zdqY5I2X_=fNW0F867BQ|+`=yI)7eRN*&ROc+G-;&pVUCpw9ulDcOBNJg1lwKe zFj;&!RcG>dV`Ly&puux&&~@uK$D_(lS_cS3Zj*>`>lcyR=#znxV01{tRQJv@bow^* zc~-%AYXl0N5vcIxdp~XO9V;}_hxa+2O#?b^+Wl;V0 zL7i_H)ajQPRM0wvM;nH4cK<{05Rp)rx_WSuTgjgoQQumFy2Tqqx-FNrB^rVj~B0bg4z zPWdH@;liGOt+_+!>f~681*AToV%A$)648T`LU|+c$Suxs|Mbx*Mu2(*pHIU>_5HY_ zUd~T{XD`qUdpFtC%uOX6o^LC$h>C*Lx%PU#2=s_ibZkii+6h^L17FAuj($c^$NwD? zxy64^;4iGb7AY``-8(#n3=YVu|E`Zug0qX@yeCPu1G=66wH_TDj)$?$9NJWn4ro;qJ6WdkCYWd~QJA#cBk#~P{~#q4j^G*sD&jHzd(t!h zwLZtSpwvjz9E!y}huvUPDr^2Z>(grrz-QB1lHr*sI#yp6>4}f3)$_a@Y^z zC*|<4AN0gqOC;CI3#>n`gwM?ru{5__HN-^#VdIdX^ z>*VHu(@ysHlPBTX1+CZF#TpJ!NM0Y#F4!^IIoUXqPa5=qf_CzSXF0f(t_3g-S6TNf z5E-FH#cyT&jh@2up&L`2Q5qccO#LeunO8R6-OMZi?Y!fOgY-={jfbP$q`&=W9E@rWDDs7x7vxy6Ugsudh7LFJjZlsj{kTa3Qn+Jd!_;e` zoyo8}qGBN2M7T-lV*F1sK*1MuPxc1ayt>$u_1Z0DMwoTqUWtciHc1f~N7JMzk7jZ? zyKJarX}goVX0k!yxx!tEs^(rbLEU~{e%dg{^w#9+6&zY?7g+1&3DYW|fg1KyKc)Xn zvtQxrr=lGP-}Id;O?_0pX<$G3JqGp@0D1(;dvsL6qy7%<51%V5=cXHq7F(^vFaQNs zj~kM9aWxyyOxt*7WaBAHOG8fEN;A_|ni*MXa_JX!<2&0>G*gD6RKHoP-kIu4clDwo zi%Y4RVw&9MA7W3WV5T(9DL@>9wRinnp9!zukfg&eHXfHSythMj?AJf zOKU zW}5h-c9LmuONwWSss5a!mZqWp%q``p>&QxEP>N-IoM%*&3qTFX38Dry#!^Ogqo8Hh za(FNWHA&%telG`>h8$YSEi|lzw6{vQOqzoOR!WUP7nLJyVpRtC$70Doi;7K7i;j+a{fooiMa^^3?2|ngO>fiaCYihj5CFuNLUsJR zOk-T0h=M%!KGC63i|ZoojOcUR9ogxHZmT6Xs^#wDDrs`JtE8=dl7wj+Umr0kEn*-V z)&HQ}-*=Ul3=ZLrnHUn`6PzC{y?gh5wDg9{cJD{C-$R_u$SKiW8Lr=>_oI1>_oJzz z#eTo{qv^eQKbqdV_oL~(dq0}qr}v}jeS1HeTHcS2&-(WlkM#?o{F6t=7Z(l3bf-OJ z6Qa9O`f=~De_TW9lm8P?`u}@A>V7}sEq*uRjqV@uM&2-LN4&p}D<*un_!5YB(SmrF z_lS6x_l9_v_l|g%_l|g%_lbCy_l@aDS4~QC3v556;E^win->K90__?ioUrc7yn&9{ zFBJTSBaTfz%imjgnsNAB(VOVueth}u%NMU@-uF3WNmNewHCc3@6 zpOuNM4^aJzRAZiY4>Egh=Eh7`-DLlV1#=>99ajJnf+;oL~ zZnIPYkPiC;R`NnCe2VQVhqG`wP!R?#!U&93MAOt;#WGe36!K3nf`@eHRbh>TaR?Kx z;75fTX1-dqy2clRO**i)I59#ImjWofz=ndMic2gb6ia1Mc@SNoc|DA2CEQu61DdMH zGwCo5mbGW_)ElPVU$P{19pCYS)N54+69=xeBE`#7C=Q14`k^bgqK0d29eoLo5HF6kmO%%C)I&IUsCgy^igr z7w%E79Dxl~tJRfWtEKTSR`Yrnn;s{Y$GzjnNAG>-l7Bk&%nO});ozY|92NQ2-8k{h zYt!`fqLFV`V_m>KvH4jBk;ZJ5Z(heO+LR2+I6sfdT37kfx3BtU{U$(Q)UoD$Iplt> zx;QfQl5-^;d-*K{Mol|^*G@cZPFLL3pz$WAZfY3;i|Km8{p38j^3j_>F1$#nJyX}I!-&=x;BHWgR*VfOx4Sx#3gwqBML18E2ZY~qx$KScR`wA3-_!lTQs35Q5eb+ z)Nz548mqc&_wHq%!7{wnc5Mt@T*ns ziVnHtBDW)5?p+)R{Js4|sA6{@7*dj}W0;#w3lfgTwKYj`c6w1_djOQHB~i?Llm}^7 z6=w-peXaP3oNB`w6ILIv>_x?#W)aNc;lQ{hMkU4)v6>n*GKZZS!_HNtU?Gh%h7BAE`D^bs+gq>Qf1+Du-X9cFiP7aSI>X_9 z>+m+gL~Tn%lw>j{;BJKIk0Ie!LBh?dzQxYUIf%P&(*u6fQrQPi#Tl}Z_eLWk>4QqT zT~!|_v~TF3A94AB`OYX%L&g#UOLZ($b}46pA%n{mx~5*)#VYTrKIDOgAz&DIryuZ$ zI?jPgHsQ8xKrJ^~2S7{otOh~)xIIhGrFKVvy6SbnUOiPqjV_F`VI$x*Qh*=eM-WSh zDTfqY12BMz9NrDfpyUAr2Ba`>F=$~^@7&jDLsF{>$46H7g1tUR8Qsvz=JUf+OexH# z>Bvw+sh*-4Whj+mw6x{?__Yl&4wi1r#+MS36rL3c8<4Hs67Gmn2Z|(#Yv3ubGXk$? zGMm6k9B{ZA--)x3%;ZV<#XKs%h-^S3GXH_f|7Gj#m6S32-)q6vSBRFxIZ@?W&dCP4 zZ__$ki>vz=i>ng0-(=5RV|8m&5ep{~&D%{&VN-B-vm~=TyTKkCa=p~Y#)8~0vmg_9g1zV*kSioEgnm9jQwRQeaL}>|Z4mgfxk}it*8s;dQ_J=7 zla_0q0ks?3OII38ml}HmEVs32O(+vB*o>GW7@;fmAshS>;E3Zip%K164;Z0h4Hkdc ze1SE%G+IBgv{C+E@o7IaEcpteLS zzizwv#cDXsrhXMoiGrfBH^ySruV|;tZ=J0dGI_n>8(Du_S22Nml1B6Stx-;-Y`?VW z!PPHihpl(GFK?mP7=U>V#lYNdtW;W~v0~)GMbxOaNdQBaqn~dWsJ`@SH)dn3_;9za zUcPa-Xc^R2^HZ)xb3@e~$QvpyL3=Y*8M&GIs$|gme$zSI&PD38#6FcQ2D0spd@lf- zic7eD(F)fB_Qi->4v9LY&v~0>o;wc{DB-DhEY&6O*D~OB?(9eR@u18JeNPkcuRaNmVJVjCa#x z5N*RD%UqJTwJbpEL%4eRCT$1cYaxjQ?n$e+nOu$2_U*yPqQ9r7HjD#z8Ut>NJ2DCG zQe)HqxznZ}s!i85UmMWXc#sDiRDZn3G;yrs;U33X*n6=07J=}pdLgmCfKx-wm7u$R zZIRACYnaemAPR$o63@GNHu>k9GD0QA(O4u>^(ZZMIn;(^r&1)~?aq@lE{4u!N_Us2 z1}BPN1I59AOICoa{=sh-?uuh*qWDFWVKKxA3%wt2QW|=jXIUxFp&F1^;hCsQF1XjO z$f^qY_RuINhieyQqeaUZPp$X|RYE%2F_(6PVIAUG@^LJ+LmL^iB5z^dhnH7}bEbb^toV#5rTH81I1(w zNZX|b{E#(7yn(h#)@+351`le$_Q%@`FA4dp$F1(O=g+CCG!~avmNfA-^zdL`gBVsk z#}{A0)Z2|;DUNBM90k^^-BF@RUkZ5A`Zo|HvoBFZvC;=%(yrLMu}P z*M)ATWbpusyFEWQ^jJK%^b@VWB}-Ng>rcrG2H-xK$z@gwgoMe|%--?L_V>|mgpig( zMPk}rk3UmShISc{xQK)`cIjGn(+S1bN;QOqV4Zi_^p;}!X3MhUl-F^}XSZ}cl9KpO98N!<+Tu7r4l2!&f5qho|N`r)xtP$6UXm0B9Tx$6vbw{I#dYlHPrz?yxR0=t#Q<*I}8rl zB6K7_bzfmpN!mIo37T8L{ujXf_=eRuXciir(LtkkuC|=SZ@=mWO7+>A)1Jl8|ud<3XKVc(l{hER4Ty$ zp_cZuh3na2<+s@oWE55mJ-{5ki{^lsfQ;@?dyY4-Nm+Bahoq&OKIutu0lxs??cL%W zM0NLTowV($metjUxXXisfDv_uS2`C_*Ue!R=>|O}Wh*Kg~g@_d&T`_LDq;NPt zND|6V%*9UlzQVTjQuF5)B=Lh5M*<7nX9jN&A0Bp|_6DB8fV2sG>RBX6F)|E!qo#J@ zDpo*OheiqF0!y$4zL<@5Rj=+WFPB=RRra)7cpTXlfrNR%0XvGcl$lg|Et^U(OMP!q zq7|S@b3y+yLX#VL+Uf}Psp;2MAd)adnx=RfN5&lUo-Jc|=iN=ODU_GYoH|Zb*rwzs ztyl}pXmjgOMQbqXjk$!Z?bdK07gGWuQ{}xXtcs1fa?Ns7>MCJep=vSe^1c?w{G0HV zYq1Qko&&xmrC+5+$8^4WCl{icZ&1sO+IU`TH6!9Uy zMUtIy0)C{HqWrg}quv&xiiIB{3|>VF%y-P_2RK!y* zS4L&LNw2wKbVXp=E)Ufw$U$u9po=D6RqdDwkga^^fv!U#t*9!}nI7z!YUc=fbk)Su zus04J@!Rn+FChOKn? zhE$|P%~bf-I*_)6YsGREip449OJ!xqyrlks)Vu&fj%x*Z-hB@;J9P{xo& z=kc$iQNUvQL%#>17NctnbQDYdI{N-oo-HwmfX5*y4-Vk$SQ+%Z06>oT&(%)|wKohg zN$U+mzQC7yO*XvHUq>illCSToG|-fGf-JZh_j5_%tFe=?Pcfk5vR~sV2~(lH4)FyI zszEGHD7G5|ui}aXJ+fis6Ie(kS;LARSNtwb6mAl5X`#hyGN9vaP*Utciaijd60F1l z6MC80JI43q;LJb<8F1hs`<7Bj`UdKV1V)%p#mn?+V4)hGjhsu-ju+HzUl;DO{8fnY zYJyzS)QyE8cM{}m6#y5P+a^wJ1M^4;6ipb{(owAxqCpM~^S2POkgM!qG0p+Q1U2bs z?nAtWi!OZ$4@niGq(PcqqD2dEpQh0z+Pl#ZNKZ#{p+Y>Hkf*)EcmqROtDAWo%2&PL zkSwTCm)MZMMvDQ!0@m_#Io`-*cA=ya3(Evl&GRQ=Bo)m>Ptj;H<^{uG;}R@O11u8* zEGOvtu(E{1HQG)LmEEbP%J7LMX-ks*(yCGy#nUBA-2kD>5(|5e)nV9z2go?eA%i{O zYY`3bHtSO_MIU5fCtIYbw1(h1wno|_c(q0wQ>B*%S7anMDIg_<1*VuSCF;l^rRGpVoJv*a5MO){d@H%!?>7(4Ab$15%AYH*%GM; z8EyGvnMahNlf;+s-}>NrR7SNl{%p{S!u2oOz&$#D^yr*@&m153Px}U0Uf9PzR#BOS zBr-N)L^oopQ#@+i5)pejmf@2dMLD`N-)JgYcC$eltr@k^Fov`l+PWUR{ovrrcr1-f zom_N-o2mdfi1PvOu?LqI=?7HIiU(Qu0V~v`U6$}*Hzbe-w({>>6&j|2RWg8d;MU^I zCzTk^6)9D81%tDP8oRX(YV%W!K815~O-wf!USASz$gt-h)KJKXwFw7X{2!C=U~*iH z{<5)~TI2HGB)v43{N{L9L2J>ZP=>6sAe*OZC^c+|(;9gCiJ!^cQ4WZ4o0b$9IV<2+ zdJQKhnE621F*F48DxCOJw5liB&cNksIvZxeY`va)!@^zqQxCAfM8ek;;ma78K2X~R zmm5P%)X*lip)HM}&8jdN6c|NWScrK3a=nI8MJ~*=4%cEtwNr1KT(_JZ5qcbz7Pg+k zz4|FcA#3eKZai`F6#>;L?mEQS2?bHF>PSt^g;p+B?xsrtiFBvInIt!O33{*QMFlw>!mh&SXE|Es)eXH3luP`^t zNB6;sYQ0ezBqBoxBoSYPAL9I7Mtbj?n!}fumcDTRuJFATZ%noF3h|iCw@3rFTo2GH zpp&7DaK3Kla}wr>OO_D1Rl>-CauN}mMMRn!Mau}dcL1w5%@Sq?iW2IP6eQx9*R1#ZHOUi-&Q2POVWELy2& zUZD(}+mm}z@S%&WleoZ+mf8*c%wFWVUuFxQHTvkBnp=2Xh08(0H}z;D5vgB{efZ)L z`7Npi(SAkfD^F`ZL?YRA(Xw<`>cGMU@2||$Y?-;rJ6VWx zdOrCqf1yr0DmHZS3J2;tM+fH8Q_yGws@M^u05DZX2rPqY0GL==cmu`@GceDueN?iF zd6NPz5;E2bIWNjTW=|6 zMk;a*P8PuHTj)p}ZpD=@^W-(dSnl(B$`$j;K0fkE;1(3xIo4YB>y0pzKLrYkR{=m}N`WSHcm_JRBDjWf9?Ibv@>)6T`^@*VGU-`F;pp1tK zlKFaCyR9(vny(oXq!o%ln7bmBiZ;x(J4L48l^Od6ijg=s-0OK;0GLYh&u~=(NBPO| zntXjSfWDRD-pce}Y&e{kR5Q|j1(8BAQr1;?Gk__{QlZRmdE*mzhpM`{NGbi_|FEes zS>WZSrYb*eE{HMC`k6N7;2Eawa>c^bk43og5}&G&`4(0Ux{%*Up`qRiWtw^R{(YSD z_KO>$Gm+F(M{IvbyE4R0asbf$vJz@pZD*1DwC!jN6mfOb|p8CW)(FK41*Q z%d8&7l;uNA^O2TO-BF!1{vrp~<=7i|Wtb}BTRL8$(O~|1eQi#dly7Bc*DbF=bs`0? zy@J#fbEa$F?m*b2OjRVGKnd~6_`)+bA|6veRNYd_A;SKCj-0k!%3EWSsUPb|Q%%A% zM=D$|VK%Om+*^2_SNo6u$3%|~qEq#k~v!yP~N9BWb*KwCx4>>`e2cd+ctSN9y z2)?s$YC%G3D`RGc9}s1LX>ci){iWR79J(_0qA;U}B(VBfXfJ4@7qqA?XlXojDP}Ai zsu=;LqDQZTSNpB3@w~x7YkFJ|tM14#A{+S5A}Y%`H`onGL%(hC#|*zlpE8(Q0bHM! zyP<;eO3p^f^mv+iCBmB0={s`hMPDp4Zrd!6-rv*|S`xX+3HlLM51%&D*Hx9e zS#?6Dk~_mViggKy2j+y7gWD8(>^=ZU+27xznQ)(fjtYDpDgL-D=?WH}0VpJ-r!^yX zKWWs5H^?lcn&ZuEqA1w^iFp#FJH;^L7jAtXQhgpK0#J!9!N2lJ zYV!r67b_Xjieq*fl4ndHmA3geAIq9n8zw=XC0R5}m>EjC{k-0TPPWP@KDWKB^784? zS~gmhiI8uLqwLvPSvXI@w_6kCG|Af8nX$}MzG`F+CZN0@xjjqT4+-=R028P^1EB9q z&&QY_Rt6@B^dGXKkp*cY_q(`R5z=JcC@-6pArW5`bij_J^3Tst&%Xeev7~VqwNWzm zNu-ikvR+?JqV#KMh0iA{Tg3nglbE&k(dkGB&WLzjVi{Xf6mUu4txH^pdFFX$RylEX zP*IB}p%jZyjO!hELT*N;bX}57HD93(;@F zQP^Yv^V5sd^S%sV&KD_SVMj&NRd*@;x`{r1M>H`0PE!3l`e@y>kY|5KABn-_EcKJ) zHFKi)wM>)$TE?mbtah@P$KTH!bfQbLzNx;+Sx0w_>f?IeCIN;l{x-vQc9m5Q_a^w* zvxjy_sI>YdEY+K1WGoC`7tk&InJjaR9sRoY%~%GLblf@POJti=#>D3QN}*^)q%~fy z%Dc>7Z(#bP8#E%sr+81ZtAvSBsfDD+`*nhrNU~6+;&GU-j?$4zZ%}h7Ae@-fY9MDR z3Df=&bypr7_b7*ENNU*OQ4`{ao_*>cM z4tW6USk6Sx^YG}a%cJ3gqk+j~>u!i3W`Fu~^jL`g3heVf^(|yjXD=l09g?MfEQ^xi zL#3qL95&|dcytJVdWRR?w;VR6j(2QDkyc_;l8h_Sy1}~n26+V}vcbp|Fg$iZQ6dAp zavWeT{7JZUbHAXtSPOhZn#r@KXe^|`fin9G@ZpFlee%`;BwFItG$j+8lFh=&K`B%S zBUGL>z~xS1tfzFK?RVNHA`Zs zkj62|hjX%4m2xH+06_QD&FD~l<;W-!E*4urZ>Yb6e?xrzHbw!=pl=+Q+l^5O*ckJA zV@#kcsh1TIA`=Q^SKh#6{ja{_I0aSJ?0^q`5n6IENQA>~vfU`Gr5+l|79s^u!r2vQ z%(1XyzAMX8{SFAMM8e*>NdiRgS9q|D|K8@W6enJs6g z@+)x|DZdEV%0Mg)`f(R)Lt$cJaR}Xr$}8PT+~r~Wu@HKr>Jp9w{&JUNe~}e13}e{P z8elh}{lE@!E1$@*d!!%%{?IrV>;F~9Ig>9{@JTybcA*=5r9n-2$X9awQp@e>vEau{ z7?0h=`TN)^C+=))OGp_0op=;nOw<=G=(eDDL#0DeW>D#Rs{)0vd$R&mm0Ep4$S&!*FJ;CrM;%|pn`xJKkGqri zQR^jI*5xiaOEIL5Q!!|GaZ2d=M5+1Jl4mLvW&=b{DH)>Hm94kl;CpeCu)`}4@v$Nw zo0MT>AcKZqs38Zb2{c)A^czM9`mJY04mzT=zGDZRvTP+~?LHPgGHd_VquP!Y`e{XA z%J1PA{1`qMf=Oo$zQprf>H`V~u0muc%F#CY=ZO3X9z|jFpxysR!y<@Up4r?szwj|P z1$VIcK|w*=YGZ-OFM#{Khi%|OySuMy06&6;l|si#dn(uQVg$qHGy8IQ#ygIgRIDYAh^4GciqFb*MxRBE9~v56y#Rzau!MhHab)!hM`uT zvMzs_FXPVsK3iq%wWyY_j5;M-;b5J*;(1Evw~?s&TCY2ZTC|moIAfwDmhn5n@`W_M zEew9g1msYKEXN*H;BFa@FY%i0Qd|>)cHa|DSeaNv2ZNP;e=LFYVl9mOTl2<%jfL+F z`H%2r@|0T{@>d|Fqo1{W*0Qk=Sygm5CaNpbxoEbA-1iceD; z6^il|i(1w46}T1fC2l&fH4A*a-uS)BB+6D~T}mFK!Yj@JK5iO|Iq}q+o`}dijWE8@ zJ^3|4=Mp3omh^OMT*KJXnj=5RtidF780Vvs4h7oXs^7vVrEn)lX&$Xk-9N&s>1i{0W^OQ z3A9<~m98uQ?D1p4jy0Gu1zGi&mBiu+@3bZQbR+qKL6_#Hsd=5Q!sxhygvaeS{400$ zn{-#1B5m@1pt?639^)`RgNbBcUOyFNhZY*&?$ScB!o$52|0_<4^TDOW`4@1ZfIhYg(69^h7Q&5NOfId6eo6J zuP=U)8l(DRyB+uxMn9_x%{Ag`ARgJ28Ky`4jof>t-dk3qLCez^4V4N@xsupvvSdn! zIM=z}jU>Dm37mf(iqIg{4fgx#J?9q)Pq*_OolBz~4ozo}&a`joQ2 zA~YTcWP&Q%fN&Cd3K0roQt`M*a9?P+*Cr@*YflFDgOg8IqVHxxZ*coy8l3Db9C*} zFSvLo#!}JctJY0lz~;iXak~qQwTtuO2`A}fzC^!nEV*S>AP%?F#T1Mb;k8aYAdB4& z`f13cDL`4#kre`gUOesjK>F@7gTZg^;A=-_Ih{$AqPHAa;U#)T(N1RZHTi3Az=WY{ zOMB+!2~{QwZ^0p}+_ggN=95X7E@!>`jLjU|15X3LFiYmZosn;fr4VHU8_V+LkmMiw z1JCnlT)~md#Gq)9_<&U!`k{L+iH+1^l8<`zMMi0@S0$+)kbW3$`$Auia~GezGC|G0 zBDTBmCk%YvAVtzX5sZ-Rc33Cv^aADbDliu)NB6d@5A-9c02F{S1;#}O1XpM`CJOP~ zr(8yJFy25fm9;?o`#BD=AS4_iL(}=1vHI7@4A}=BJM)-FN~GO5*60gfC097zFNAXh zSTo=+MRL>}Id+a~nAF$Mt2H@6WrFah+krIFzLB%pc9**V*?Cp8r1M# z0jFkiO=uv3b15Vxfk`>$UE!SBTuLd2LB>|4NjZ#OmkF(l!(=wCiq%$PxY=mbfjQHd zL{B@6N%qf!G8+HCI@W)X?W#&*%5wA7U&uQku&9shfM>#klP_I&j_&h@x5M}_VUGZ~ z^M_8~+df=5gl)qW17kwY9&E2Mbh9_0KiXSDrr&O;Z`JFmod&!dC{bK%TiXUiBL+{re4LXHxI?RY>ARka58LaKr+KkuQ~)L2rX z6~c+6iS#vvb`dIhSQsukU;HgFKVQB08>_JoYB#ViW3S&nHO6N%>@PdNF?_$hsVKND~1rn@_P#Cv+j zt_BI*tq2^zCKMcsrmXnzqlKX`CgURdi(l>4CpX6a^AcXSK_(vi_xDvXvGdmbpQN44 z6P79e4|8wc-?ovh3I9KzfzO3>YdhUDqp&TQ1SKRCzzcw0 zT10>L_bjynpd_c`%nzy+v{EApL$hHfdLIiy+u`qzAnY6 zJLvtMVmfc%&v~im4**fC_#n9ads;z^($Fi!&(Ebxf>9T`{swD_TNgH3)e677WXL^> zEg_MmqBh03yp)?4p>|y*X$GPntPLciHS#&Q<~Q#_o0H1Q%-vv{D9tU7jVTcb zOG0=kgDDv~u?A;a;N>p}Jwu2yRX{dE#B^)c)uHZi*^IAKZKiBf$G&I3P!hJ7TcL$O z@sR3F@w+S2Fcn`{sd}xcaux6Mpej{i3Kr=YZ~XoJYPD{F(1R*>U%`FFf9Q14es#|r zSbBzsj__Tt=y7xD`8SNqEp?Toj97zarg&@ofTdISs-QY|5-a-jw|3Cpt_PZa+ya^! zf?CrMgwqVe6r1F}Tbb+tq185wM~&Add7)Hx0Xa0h;C(etwq@{(8~$F8k$?%gD6C*h zJK2m4Q-P^oZBP!Mx^VQ}pIZF#uMru@4=4^sV4WT zkWr>MCKVF={B`PaCt9qx7uO+clu{S+(k=w2|moxkQq8Vds z7cN*qh&3p{vh>qW33QO2S4YWCquK878G?WbX|PD{?_&pv>8(_Z(K2)kWIrTe8Uu~m zD%;c`iII=8>uBo$CXlFQa4yhiq$%7nCNfD~2N4UwC)SuGqyb6FAhtYkCW)T*y~L!V zzSX+8NTAP-Zw4gu?Uczuh7mGmw3P0UE#R;{lxpZMWxR1q(MV#?J>}C;7}*}~ZyrS( zwIiD#d^MbLhqJ^nUs^F&-LUJDkGA#6m-bBuLspQs{IT=iE1Xb{dcDEXr{!pkjl z-t8a38{4fV;=_4CN(!2qup*U{6_l;tBH7Uoa*35LSbo#=A`;O4KK3Bd(6NctcJ+nQ z?!)Vf_nw|MT)%qiSbUG1B|x)n)$~cOp@ZNOPkdU_X3t?%h=ZsCp6s>S)&}Ggbn~J~ z?NW&PeudhNMv>iSl92y`F-N{iT;VP~y@Q34VJ>7a#@V{T92GPV=7dK(zPWyM4^zf9 zVqGS@K%D}(OdKVU8&D(n`i8;q8gx*UtVcOMwdlAfMoX~$dfALPUVAD5yt_z;7KYpY z{w_VJqkN!_+F)sgPI{njc~W3XN>hwPR((oZ@0T4L&P`f|w1ZPa@imvLNQnNu^;7)) z1L}{tT&;c@>0g>@!FK*a# zh8lgaXS(H1wyC<4)m}lpWHZf3=2|~O(;zwS8+D_9>!dT>kP|NMInL(`J;lJlXAgTp z&RNEjq=)D3vE(Ub+20@QeSnm#O-_Hr0P2KjZ|l$>B;h!?my)&n35^~ueg}+JfT)lX z??*GtaMM7p(j&Rg2eKqiwB(Q)afcCdfWdhetp23GnirJ6tT&w>{M@dXgp0spNo}i# zRZb+4#^2$OK@PZKHyk%yte9%p4ag>DK~dCGGE6pP^%chE#1xA0_gGbB!WN^df|nN-HY9fhy#47QCZS2l3ZB7Y|pIQPLp zuwX1#My;5bQkzDv3^ek$$;h6PHmiijzu^mmXYguW=*A>I3#@vM-@p$9pQrmg)k&5BYw@hIK`mE&( zqJ=^k`!I+d#2&-FKPGGLbuHJ8ua}Lee5p)-)oF=$&?C&4 z8E0M-Q#Vr0+H!?L*^oPM#A&%D`B4PYhP^NJCu~WE(?TONtKLXxiQ^e--{wk0p(<;n z>PcPbB67~`^h_~AeIpx16rM=k5Yw;XW~%vRFjr3mlusW=j$DpIgl=M@9czU^s?TxB z01#TRbn9wZ9lmukNqXD$p`K4*&%DCjS}c~*@eL^KekauLOmNC2>b&-c;oe(V6&N3; zoLFw_Ih&cS@_$3tpeU%qHBFPTg>K3-P*>KmFpSASjJT)Ve{=0vF8zRwix6x2+ZF>( z-N~xcWGh-M{irHM<17`W)ptwZZu=gd)zVd{+6Y)yn-4rAu675yyC&VWdaQO*)Lu>K zDMQHV0@z`V{7A(_Q!y3|Eim4g(u%6L;8L;L@?c~BTf#6lWWXuz7M+daLu<*|&06Zl zQPp9I$;rJUbIX8ETtrpi&4M(L651KMzjC4P?tnNhq-; zTZd~#FkpW{kg;M4Hf%7kQy>wKMjkwcZ8@4t=gz(SE5D)e7Z37_9wT4}`9*&w82T(` zki;iJorj#8d~HXRgxeFL@x#n6ioO#R9@_9{Oz=qiKui7V+*6X z8W|G$5g})*9Zd=ij>jEo3>p9(%Xov-f@#SeEJ*_ic=?RuvBEie1#tW| ziPI~js=T#Xi`IOTpeX479K)TRo3sF zUX;>*44u(>-C?iK&S({pyoW6F(%Ei@p7suW)VVeiPlz9vMiNv5X`DFz4r8JpFoI(-<40VbOmHz*ADP;p2tCEX#6#{&4Co=h6g-ZX2q@UJwO%p-Qi zz|Q^6N(+Q6=og}9q>|1}x_~7Wqm1S{H}U+gr8J(g!cFD0OVq|_r?dl}XnaNLrKn@6 z9Iiw~j+IT99QH?4rPLX}# z%0ITPi9)+e5j?TR5#!Wsj3G<&c+Lm}(Q!jR z`1LRPb<+d=1-1=hKaj|%rpeB++_^cj{YrMVDZ)tGRyATlQ*LuSTy~~MCybtgF?#C7 zPzsxeg^Ek6e;v{i6ud&b@E$De|-pPm!i%NRFc^O(MUdL z&p4$N1`EaVv!7PM1je@a{uD!W8=NoqYHz7$1dWuaMsrAbxr?u9KtADAaWZK@)t9c+ z2y5>5W2Ij8r+fO^_#dPw8_BzvUE(+Br*d+7F_}?FE+j~rTw%>vP&a#$@dG})NO5E^ z`1zGi?aBKkka}XuBMjAd@|Q&t zF}OP#{fQ;jfDNdZ?cw1ot(=54@7V-emLbTFk^@X6CrOVx8D`OIV!T7Ig&6`H>Zdu4nw@uxV zP=!|Z$epoOb>1>+%%Kjvx%v_ss(;hRcH(V5tPMvpfpRsE5LQu^_UNUq7?WFARiSk~ zZ-5Z7va^ep=d?o3q)i!cE5qy{oC|_rM)Xua))9rx6z5V{l>kBRt+p+K+M~=OECfAQ zbfqlPOka-~y{=(}IY$>McI2{9mt>_#S@g`Ulq z2^wWkI15AvAe!{2xucIV(TBxk(_R}i5l``GD&*o05Lh9(2g0ViH6VK*EIV337Zm3DpyxQ}Ud)8rwypfS zDg@v8qO3)}PTD?dS7CmOWLDaf-`+IB59ecN_P#bkI&@+Gxj{eb&S1B?Vin*O8m7;#7@(|X}F_D;iAI|6`ETcW=-qh@>afCqi+re zk0@FFu}mUI284Xt9nrG_$+Vwm=DN#yD&f6F+^2W|IJ8-M187Enxa(b_hjc9-MkeIV}tA7};3l0b7>@0FC2)DF>Wi zyKJ?g$fczHOW8ahnl%q$V8`AM;Tk_r(;nt6x~m3V4mjS2mf{$wMfjEPL6anRP#?CA zSBek8Z6i_QlB?1>-h)A;>3wYFt~;`F+M%rsUBxKUMiy?(ufr^y<63f7nT3z?i&Eo~ zMH>}3oJm5UHXHTa3-Lun1 zmCzYy9jY7-(B%8P};UEFz~|ldMz~Jj5cChCznmL@s0RZSB0UJ zmT!q&G@i!eYo#^RqL>xKF;=a}b#l#B{ql#*@ zstl*0TjhMaoeL|9W~{2&=nB`mLIvHYt6NXkP@Q#SGu@0y8>H&otXEd0D_!Z*R7yqc zN|w{5TkC4Na%z1e#a~_T7hUf{*Q*NI6)mO$Bd ze)@jw!BGdh*#cwJ7L|qY8G{(?C-$d4Z?~U?t5MW1zNYjojL*zdjFZr@@;twBEvldDL-^ooX3-L~I&wcWmQk_P@- zmK-ti$c-35+}v9$kif({V2V5aL!MXq_j|VIk-FQ6-TY{kh6~^Ytg?6(Q6V^_L}YRU z20Hr#?({0{VU!<(w2K6iJ4x$l=}cr>;RNE8=^e7kzr`D93c$R;@L}Msmhoq(;7YjF zN$*%z6bBV&Jx2Xi-Y72`6MADTF^nmpK;e42!k`w!C&0hNpX&5Lb+}~yEbF(l&7cK$ zMGLDSZ4%Ydg0**@E^_krldZLLZdQnFQo9o%l!4CS&3IudgPh;?#d|CJ-$xOFAoc29 z>+MgkU%z_u?!|M@E${&gJb&@}&5LJG@hNcn&{|Kq)#E<#3a9gxc?T5(l4$n#KiT*B z9ax!vOXuN-%__{|C~sT$B`=8T18Hx-$`tIw{{CAhaiO~3kmfOx0qE?QzF1f_%FRu@ zc3WH>#H_40^j1|Td84++rhS;I9j%wjJ@y@lc%Ln-jm}Pi&Y3P36Aw1FfHSUUv`iKy zLS`<4tOI+V0@tG-FmynBjor*dh6?Vzo?k9ZyL5}FC6Q@K(U6SYEI+G;22_^(w|miS!)ct#%?Or^c(DY5WAT~ zl}E?d4pnMZ1LITqVoYf9`}=z}LfPNvX4q}MC9IgJq|5-7no=*+sI)eOwZOKqFmH{G=9zOXwU**GU*`_?Inn}?SF6{L{KM;p!R z3+8De9kg>Z|i zT}w`9LgZHczLUbh;WD6(i4*!Yv1XQ<(XN&c5_0}r#tF3U%dOl>tEI}abV!zPdCgj^ z275GR8FR9abDA-?vxN%&BM?`M97_gtZGzmWME+NIZF1(tt=Q4&t6f)bDsi1saz!RU z6UqR`uU(oH0)Y%&)LFFscCp>Y>hzXSQm9eUQFoHB#C*c_ogkr{(-`qY-L4$c9Ji{P`f9r+VKvTdw^aYDFl z*#(Cp}=uKMZFn; zYW^@OC_2ZORPL`<{90}YiQ~wKyNY2uRT+gIZf!e=vaKT+HIn!PzI*>yeOpxQ%wc7! zAmxdZuR$LI?tCkTuDV$kk}H<=@>Z|o+I?Z~{c4|zX3lLncf6T6pywu>Y|``*M(9m& zGu8{D5p*zV*i@6|wj~X1OJ;JXQ()&!9%>z%md4sKivnz+I>gs0ZAphR+3!5Ql;l&m zhnDr^UZx+$MKn!UyS~2_*HIpsrsm|Pve4!eR`V~?c~078(+J%D3~q&VzqO831CFQ^ zC*-SC8$RvDrfbfv)~M|q)ylqxL#jrk62g@Xeyz`ssaV4sR*qnla*{MTWMdDzVEX7L z^wQ?BD2cAxdMJ8Ppyu?r|>Z~DX@{XMpPl7H6?a6$J z>s365tw;0>$0iphYc!lR&DBLot1qx@$%Tp~mx>%Z!gyq@vp)(fZb01T5v~pLSP9VU zjQp7X7G~olV85A?RE|nVw!hDjnQGcQH{qI4;A8|q!jFU4rGm)8+=F?Ll1**5DttsUjFU|?vGqzAbZTR;rThWl=Fn*euY>1^ zlv^swh|2nTOhZ$Hp}p05M~te+@Qs3l8xw!Kt#9txRMI*YA43E7GO37bH=L7M^)SY_ zu$k{4E`EvFdgSW-Z#fl8h4srTB2$Bul|paxnLad3{fHV{+rlfnzO0Vf;yM`b1K-C@ zU%l*;NEin82*UOzBS4K2PH}_bq=~Iax7)-8?DjZwkDvQF!msa#S&WjvGjSymYO$}7lPe|aeN@k0ia)^{Tg@b$P-&W2G(+YV+H_W4TdQS>tC9oI*Yp~u* zV%^yZM?&D;vCgq;h;BJKVcxo7_Y|9LCqEg<%1&ydVc=6RRzL%dVmfEd11S}gC3qx$ z>7XH)8Pg~wI4I?$BHVoO_3>ju6QWW>Xa}e1E+%P(8T>!pZMf1J|$}-SYiGuwD}9_V?==(#NU+92tRS;cKh# zN~zGfO)4v^JxdB2is237X-Z!jrxuS7EG&a0Q!=WE0@i8db0GOVkO0bpUcfx5LcL6> zUJ+kBwWm4Q>sneU1*f3Hh$3MLHow1|S5At~hX|HfH2u{&8qj%5J@Ci5-2pO#uxJ#7 zLOD2~19x+p_H4VgQu;&^CB@c2IEVnhI*FdhgkBS`B8;yz;uQ{m2IAE;a;2+GbO|0O zvYTHxeg!gL0X}DB2v}7}AO^?PwCs)4ZIUro>SqcU#+RJ#ZOBX;LlZ={=On3BomN~6 zDCNjTqa$|zS-|!&@46_~`S|E43qN(PfT}kiHhGj0T6#j!0rzI5hPcP*1dS zp}Z2=%!KUhTwSmIStEryqNp?gArzZb#^@m|C{dMWU8ZsawO&ue#)lIC#`I(eefkE2 z+V3Bq${58_cQlg8$B&Os&g7V$oQ{rpRQrQt<=>83tJVYw(jN@iz5S#&!grRxZFEC5 zrgNxRU2pz?@m{<#|DBY`3&8;Bg=JYUt!~ufLB__!E z5y`znwwdRB?xi(uG?izgZ!wkK<6-w9Q@P3FofAp1Bh3@}^-UvxKcH-iI>?!ealQZi z+k6A{Xbz0B&=Lwx#dau>kD)J)*$~PH2tQ^`3=Ht;+29+X8kv9f9n&Cku zyZySy{EkF3u$h|+D@Cu=r+}<6HNjj8MnXpF?ekAo3@JQ;HW+N+dE9Ye}4ngeuF;o)9+f2_}YEZVVS@?ccXIxLE5LF6bbmcdPq^=WYk4 z5iN@`s_h3P7RI;})LQ+8wuMgpe#1^-=ZJvy=WHB0ah8U592 z!zIw6@3RKa3)NKR2pFp`wQHfG3C9LO^ow*Q}=?V?rpbCU8c<|@o(UD zZGVvW3>=-=*Ba;{D|NKLLW^G_ijP{sjW&;jx3%4)ZDCir$ZsC<3~U2x=;XA0g(-uO z2j}c4w0ANZm&xua5zPhmn$jilTOcxE!yDf+{qY^G-&MPUfO_AG-?dBTyi3BtSWajH zvi*G*wLBKLRbVu+TZ#a5fO(8(q`2 z(KePi5E5LNOtc7~gel)8>0X;uZ)u=wNihiIn(HZ4J=7dH9$xc;l+eShhs3W?;uu2A ziq%n7YT`hz3;6aIf?AXZRct5Aesr5QU>}#3KpKKz)$8?-zlE}b476^c!qX%jZN=;4H-J^8wZ)y(GH2f^{-9x_KwM~dTgGHE4ZMllU&d`gUSuL!3K3N? zk8|QX>WD_E2_2BWwJY42&@@AeMDJ|R1Kp3!vhGaHLKJM52X zp<(J=oJi`KunEf=5WSFLfV-FCng?FK20Z(9oA@W0n`@zvNF~EwIg(MrKRrF|e**;| zFQVrW$c*NuszTnTv*lr`L3LJ7)LRWFk^=K0d+A!r#06cWT>yKhWDJ4?o@#h}Z)`Ky zCag{$OCrlc4k>eUObv%aOY?b#^li9N#X%@;!Dgk@J!T2yM7W3G1yIqf0qwOk#*AB7Ebvb? zfpO#mQ4x&l`}dy2KC3#mTx2tUT8tAPE&}=`r;0vHnO4|gRB#FaTb)S{G&q5)*QB#K z#%sEBnGx5VP;eM_B!7DcUgtuNfC5~&%oP2&%$Jaq|F`ucr*Qz?#JG8Y42t-@W z`pZP+`H4Z)l&0kLlcVi$j&e;dbBoT@$C%vK3PiT$AyToOSB`Xv8&OR$OfENTPA*JG z@Egj7_JbiqDeU=_Lqu;?o6@9*lW$huStBgC&p67dOtDre5}Kq}w(HaUzUj=gcG_U= z&ub|7rju))t=+spaj~BHQ1kUS~l)()=dkQ=|42=;F@NEgritpK$tH&n$O%5+| zQS@7&UsRe6Na(0GclYMCVvD6c2YISZjeDNhS~~yk1xhpebqYkW(Tmtxzkb=4JQ^uc zq49HDT}!Q2)8bWjcy*uAQFy~%ws~Yo0o&$rLD_}%fZ?=K%$FRtu^Mg6d%h)hEb-t` zJ{Q&omNt)1LfzF2`Wk+T<{c~*Ygjf@OEIf4Y5noe?v|yLp4LqnM0S`iWlFzB7;6p> z-f10-Sl??g%V+&>;tYj0c)5-ANBtr5yC=hwlVdi9^?JRLbcRCpl5~dR-4s1{27}Y? zne^O2gB=4?o}TmvBL=4I_4^|UOxZg=8J#jPC28Xjm=f*|p=ZAMg0GuCH{KEwNHp#`hO! ziCp`1vIb!=AI9=ork`nDGA<$ZXteH-hZc1B8%RZjarSi*kFZ(w_&#q4ea6U#_i6jw z4L`5=Bur|~hGNSYm zR=$R`^e!jO$L<=#EnTF&vTOrqx^75%m}s*PtbnkcHB8tG%nDyT#$jv9}wxtpNDfYReprWooC`%qL@ap-c* zxJmy(Jf@q;jSi3SH*FI4Y!3f@T&DEKRA)vr@||J`IfjV^SudGn_wPa((@Z!e>+24W z7?wfDckNX*J0zX4e~cY6NsF(RG9GH7+-)_~&KxaQnZC;^+00H;+rN^ZCQ~DR?F}n9 z)2f2Ao_cAwN6&|dZAf0#PD$+0A1*MaN%S!5njT^&hB;bynv0#5cb#K&ka=;%~WWSy-v^*&LB@?wZ$%L*-jf-<& ztV&&PiHxCjNF_j@KrR&gJK44EAYR(EAid3o%pKtlanqp(I+oG~%L52m>65NwBiKmu z)4Vjv&E{ly(V`g^yg&nupzKmJD9B1SB~!A(s<2*1*e6p#N^)yWwhaZR-=GuIm(Cp0 z7%{(lttv6jk+?{5`NJF#<)Yl-fLL=id#JW*=gN`HsF*3$;+q>zyc4*k&*>2^9ji|&aBH#p<&)ADfw-i5>ze|Z4+bCSh7E7Bu zXS%42*Ak zC0?QHnCo*Eigrp%lk&gqaJ@>5>s4w}Dk}P4nUr}59e|=((+1Q)@XhRUy3-R+TsKP? zBv;&68X)S(4fgg2*^tX9W zzNVe-iXzSNgV$(cuDhC{qUM`~7?IY;X7Mc6_AaKL@7*Eh*L3D2#vrjsiJ_`CCk4{C zU}Gtb56AxTHeA_zr4q~8dw;)8x7mwYsR@+(uO!;Kzpu&X)@kxj-QU-WC-$+x-NVi^ z1UrN-A(~xWEumR55slk^6{lw7uj^U1u#spOZCZqzs+doEB8mCDp{7+apKik})81F4 z{~6}jq&==|uB{~;1lEDH_thtod#?_9NFq zhn^FOvn$|+!#ok~3oFS1MakmjlASE#V#jzVQgg7fl<5l#*+NZ*N#p}luy!+j*;(yi zj1WH}BYm<=aw<6}n-&yBaBy|8Tj-PQrHA@@|xEtFn+je34!>M30mM z?ht_N41+BGSa^R8QJ7pvOBoxxX7`d8O}Yid z&=k9;GWJoL@pws`Vb&C-cPUYbwCNM=pvKyHS@V~s8c(S-2YQ&ruA1fhIQ9 z=dK7UxtNtZr*CKOc*|8Q)p_LCs?6@3$P)J!Z{@i18c6GS5$i=^6gZdVEuMJ|36K!Xj+?isK< zJ6lvcDcq%pW({{~qI*zf^}1>3zlP@acF>&eD{HPKv6YuF&!S;JS&QbaXCoSRDR*?_ zCpYNSrzkXG9(9KsKtUjfObgXbvFhtcsq`F@V8V5BF2}VD;4+ag@L&{5%{kN5sIG$L zRJlWomRkOCi6+ELCjR>Z@9?TRQaIIbUY0K>J z8Bc+5zVYJUpvNf&zD-rwx7unq^xk#pUyjwIHvcZQtb-4XlIU{c9HiCFLhlmjXONh% z$HL7hHT55J!^-w;pxIA_#m8EhpztMyfJ_#vFy^d$bz}%(Ca*SDt4th zx5N4ynQIwCS7Y3EjkT6WYNP$T7-N!7p2B=d4f77+2JN9B%;q(9LtW;nT4?5VON=(S zu&=9aX^D+Ob4So(YRkTHgG4j8ywyVOf6&@)rR`*g_Zk8l8EvGVE((OU%pKu_%pKzN zY;g9wfyhXYH_I1bA+=$c39EvT=Ohs`SmyK&rY3Ds!al-jm!`y*&mX%o3hW7^Tqo_J46Jv4NFWI;Iew>r{%QBv?y`2$4st<#aSm&e%HVLGSZ}9l|5lB^ z6xZTfRaa`ag_|H$c|u^G`21f$QB>GC$w_XkjZ@Q6JC-}1N#n?G%9h;NmaEXJmdTSh4Hr5(4xGHPl+gIdef$^#s z+iNTb2;0R2Xa|8>kZ`FK2P7E6cbb@G2*;I*&&w4RrhCp^8 zwFAcLG<+$#`$L*@DqUz6N*2vnHTSR!nUxQkudH0n8fm*ZMYOJxzGN9X5dWD0@1^WO z7GvLJe6HC;=FRpHGk)`OFC(PWr^<1Kr=AI8}J2uq9eio)v>~LA_ z6nn8*ovQkB&YOKXu~T$qxpFpjN_rbMbc!ASuv7PZs8FBKohq}bdnW8H)gD-9S}FUS zBGt?vMD_3gFU8`7KtAWK$3sbPh zd1r&U_8Y>WrAxFTk#nofm2512Wofy&uF)Z9_>Dc|&PIc-($6x7v%??9aRPgI;A(?E zE7e3300MduUJ-l4pb?1e9Cx1U0-bl^)$|g|pucrdde!WE<4fuv$?BtwZPWxFsPq z^Okd8g3NoyP#ijzHah{8PQkH!_{Z$JSZWPXalf66;>=&{(K@XwTGdc zmPfY>i1%qfTVpEm_;Wr+8ZlJf#_n{oNj1U$NR6)D3hip zjl9+7l+5bXR7n7B;C|DZBaEx?fC@7T&%0ak{?RB=<0Us+KAloidsB9Fb>roAuPZaI0#Lx+`)pInbFyMf8m3AwR?lIoTy z_tJufU8tVeialRmDu?2QjS*+OfLG`gGZmMzhKdx2NQ{sCP_jq)rD_!uD;UN29yF$PkMc+WE%B`!!uSgjk;$TW=avK zqvLL0Mx37X5J7$!To|{u2JITVjHw_?@)WVdJu#mG<(|`OJh&-S8(8Uy9Sc4RGY>sA6sbUW1DlXwl$jnhzl`!@qjFB zH(SfZWA`n*`OL4@{r;m8a=vN>&V7x%4#x%J+`{S8c9$O79vSkY;Yr)Kot6sJ+A9C5 zsRT?nmPUzK#2OF=Hxk_bjCDKy7>m_Qm8C;))evDkR=>g7L?-}~F|8g+#>4JNCet|` zjE0m>r}0Ee>zD~Mmtmr+zHP%B{DMKMns2f^{uni#8yeePDLT}$WA`=#;s*YIR&(TrdRV@rE&cR<05A+yY3bYQFCs7!6|P2~?{GeRB%Qr;g*jnW zsZ(Ld=)HBt;^mrxhzVGsnr*H3D^B%@3i@9>%3da|f3rkDYN@b5^QdqO)Pu?S& zo=(QGe2!G4obE2r?_qXHY(8((OPmLfIDC17r_Va$wH7F6Es)ejpaUQ3x^qX@&0a=+ zoh8tymRKFSUTAHSj#k~6LfQ=H`;9d%j&+r{dBl+nV~JeaX~~OOX&;+SX&b;W1So^~gjQ zm9iQY+DCOw96wtf8|Uh zN&a^~6ED!P1&6KQ#A0DCF;p7-K5k&5sOtBGfao-G^O{z)H5c;GFxt^k9bh;CAy-pju00nGM z>7*87*x0ZNDgd-E^eu;pT*E`vVi9q9{b4{}Is&b6SRMp5(ztNGDyfSJ0@)wQms>bfJ_;9Y6C z?p-5|Ik1`+3L$S`H2Z^=N4c>XIJWmsT{s~nO6VjEc6@S9o=$GUD?8FkDug5Qtfz|$ zltN~}fo)Ka#~TT`I#DtNa%bBhqEY=TR_+sgW8CmnHNY1$%dQzS#ysuI(M3E%j6(?u zDie0>1uDvJVukHdfL^E5K_9DnW5wL0#iN}?%Z(4qS(Ovg=xFeVZ8ww|+1+l~YQ0m_ z;weKi5<$A9CeD^Bxo~$-G08mUpwXIQ(L;1 z)JBU?$1vHDuO^l$M1R(C^;l&>NE+sfxWhjf82yd(et5WlTV^F@sA0a?aPSRC>4Wa* zsUy z*m295BuSIQ=w@Af;ViwLL4;9NJW&uet2AA|fVatoYN@@8NISM!t@eWDbU9uIyB7q# zNZ!$#?KbxpuA3Sjcw`#k<+TvDPQcCUBWTBd1&ruNN{y&a1sQ?aww7L`JzaO@6C%FN zIOw<@KjCl5mKPZY{G${lF$7FzB9#H!AqQx~0L4zuBy+OFfrTVq+l*p3S!mP)71Lbl zH=li4C!y0X#;A>p;H%hkseM`0j|=oY_y!B~Y%o$7!r{j%5$Z2mukH?1^p_;rs8ZpAn_EC@q!C{V- z>PrD+l~!?_sqn)pYPKwu&5+|}J{D*JIvEW9AmkD|vzc)6p3Qbj)!NST)j%dHA=X#G znau6HYdb+rh*16zn-dM06fHf4ulV~ zETv^I+6hc#fZfh|sB91qD6Xu=2z8l*=zkfHWGFetk zG+~HJ?zuYMw1@m*EXC1WR*mD1}fzH+?+ph@kqIM+G(e*6} z%<41hHerC`o6XJmHpTsL?41XmNPh*<`}=n<1U4Nm|N5>JKx$68C#u|EO}X!(T=aRq z+Mr?ohib*TUQ_K0yL|Nnx_(pri?YPUU=*mkDA!S>en2uz5p|BLE{PN^1?pXu03o91 zSeV6mnvC6gL`%~s2dP+2f;M(g>dVEc7UBaIXa1GjU*mp8%`Im1gf}$QS;YB|;g2eb zb=8@exS>DpIJ31txSLtOXLpE*zt4_leeB=c)r^+$4>{x9c7N?bXHzB-!9z|xWTO8V z$C?}XWDH^t#`S#ls(F}4%?CtMbx(;@67dHt+(kXtjZJ~GLr0ZE4H=t%yLVGjo zF{={S+HIhy9RMkUrh*Lo$3xVciOwFNBD_b7W+zQ|;o{gn8dp-`s!y6ExQ}s0A2()U zZ?2H?tk)9RKEU+q5Q9X}f8?S#ThRHWeVeoPEolT7Uh4Z#f(>cYl+G33wPC_tXPD)7 zJNF&kSWJi)D`}9eBv4I!BS-H_pxW$+RaA4#s*hK523iPNPP>vOTkV}7ft*~Bm3ax8 zUfgUD5*M-#uN;a*Y--5L72x)?3L8s_H7uN1K?4cHkrLjdHrmp#8iQ6-Mp^8dFQoHU z!yu;=V@9EBn1oTKD^N3TXMnUdBzC5P+ZyJxisPsPawonG8zUoD4Kf8r&Jj|>b%=18 z=G&L`P$+=x${S9+qO|p+t{2-# z=DFlPoK2mwQraV5KZt(n8GZZ;ay1HpsB-)k9_roU@!+mJA<~8sItF|Td4H#_NgM6& z-;-nD%72k~1aSj%z1XZ*F*;(g+Njm$KY#iYGuxP2mCUc0NG?XB5)@wf4STiwA=sf~ z1vT)?gMbAd$?aGf?OZM6+TOZ1xK}T=iNBt|byYP(EEL4aRC!pw)x(+l3eE(9W$hSw zU>?-MGKhm%l6Xe5k33f>Mt*w%WVp1Kz>mZ`=TKCY>ij)RlPgXtBuxr&vWVv>mC?YJ z3MP=4hzUvxhli6(y^&(iLJ>=`Q)a!8t7A_0Rc3IwyHMv-Pp0{aZTIW25`-TsruG2t zzV}qE&O2-A@=b3_(crSW%jdGHweb(PcWfO5jERNJ_RRaO8y|E78m8d5e&UBVvPt$;Q0~7kh|D~4vcbvicOiQ-~U2BH1^(f)U zHn%nDbYX=p41lAtTLtJJ%==S7$jsC0@eL-&OMQ73OCJ!Fd?+O5a%W(5uQ%xL2&~q# zE^TQzITUOibSKGqpR#9O8z^t3NcGF}TUv2m~?4cg* z;;rH`RpLmA@ZiT6FP_7#r*B^T`0hVnynXRjMLY6f{?E6sel%EbwC6G|tc6Jq3{w==aR$5{ z1(6xiNY0{_M^Wp#DAxJ-=;$ggt~Vbrg7jz+evB6%(j%6@n=Iu!i~ep6!Xb-;TMrh-cp$v}eQ!Jz9{e~K-gHWT{^5;J;E6Xr6|ii)@tN@U z_)nmJ^51iBJQCg$`u9BGAM__q=pW^HMbDvd4~Y256ZKbK9KfHR@DBOUckrh#y#L@o zNBrkIygMji_voEYn&=^=e&qrKAqZYttb$uIr-N*q0n-7UANRZBU3hgBE#5^p>lG$q zbe~voujDf~*Ha@s##|^mVXq55)h8qt(J5 zLh&Zbix=z_G47R4LK?GCMP_4~5LgO1@wdG;uu1ICP$2K24io=2xxgT0xrO1Sh!{si zZr&;na2)g|@i|ngHg-7OF5=lle?heH6BnthDiskWdY4aq&$lz)Xv9S#WoUJzdzzza zFj^o5T@+jyAxc}3KzqC!hCAO&*vzddE;r4u6Me?Sc&fRvRf4l;U{1 z&CkPeyEnjc+bxyL5nxD`EOg0+m*ErRY#LvfLbLNAzAy!5WA~x+%tckS2Pk%?)r{WM zo!?lE7l&2bWABgMhozk=&;3-<$w3MMuI1;1@TX!)0f#-CpkgALEWSZ}mlO#}J;@CD z4Ail`es|T4su^*(m&eBeur(38hjtyO=z;~qQ@g!ArnFC#>hA!bu z_P)ny%BlO%?5Q4@qobC0KpBHKk!lfk8$^w<8QP=oU>tCmWJzj@8Qt%WJm`kq;Ey{N zq`>90h~_Kc0tvoYH?rvb3S!5B*V2bprWh&Y2Wg#l{uX92vOv#e4KNm2Wxc|gp$DU~ zFq>abXS7Ur@*^v1&WGR@c&IDjUB^w#5#}JkgF^BXZT0*6=wr0o5(3D+Ttu3-JhHhOwtF*d$pFU8EKcgh^wt!QHHt=Qe)guXg zyL&8ArE#EMnW$EKx00xGIdB94Po1D7cjhQC{S*(GmDHXU44jdZF^9>RpNEsVnv8XT z2oh#8)|EQfZk>9(Q#l!HIT`E9WSB`~jbdY?+g7g{I$+JbKlv@Q>r~>E9?5WK(hd(x zW=sAIBR^gWq=0x%#86pFx{jQR;G)IecU;0@{jzw0E~OSVHPMP*L;@R zXRJI{6FiHzTRbBZI0j#lz-bp-Max2Ow|WNXkfIr_*V(pj+4Ib&*H^zqU4OZ}cZlL; z%W4&xhjh*O!)-~+ltlTT_*_%o+#;9}Nk}0krb(a`7AblyqE}O!E~G2dcc3ol$@i!v zi55G%!_|-~MOQ(;oDPhwPvTCXi_(6IboFP{fZRK1q$lxAAL&a@|IBxq+f<#YXHrRa z@28bE?RWh;3Z3_U8NDNIT4BYDuA6`Eq?hL5ehZb(ukTxz|IV2(sT7~^5o*o}JVqN1 zjhtF$_t&5lS~PFptn~dB*&^$FfCUofQBLMwc~Y$5q*$NNCu?<5Y=ZD&ZJiXG%1N=Q zY~CAMq-KXn4?O&c9`}vCqBr#wJto#|Y`rd(U}LB8OKON--7B5lR4kwei}TfFp?Yu~ zEH4&T53VacFuz4^pB%Yt@wII1b>*xp-BTs#n}h2BPn{CPLzH#yC1dICjtp#=U2U-F zj|V1Xjnn-P`PvOw^;@BurE|UknKF~5K2maA^T!4Iy^efs>5G`V6d*kWU-1e z!=uX^6NyRRAw$a4jLMvRBs@w=>)z8VM7|_HCx6xU16|nK5E8v1M4crprB(dTD03!- z?yl^v>2kVz`VOBMf4@e|w|h4=EcM$?z~&w8dHS#qFVcIeG9PVyZ6k?b{*q=7As9@G z)3y#1%q(Nb0)I`szp<3B_?eGwv`voXJjyA=&Krtt(fY!c?e9OR&GL;6siE{c{8PWh zKfiK9{(_;GW+bXf^qhh4REh{#iKywCdJNVLL4+ON}UoXRo7->bK@S`dpy-K`CI8z%BV^6sb&m8<(E%`7Q;OBwlLa)Fz*oH|TP+d-#p` zLb=WT<99u8LI2FpX%=ENn%U;!iK)87X*Zr#NAd^yj3;^EJ2D zA>31*;?x&0aJMSV(EAbXHn~rdis5R%YlTQD4R4l+c@B-@<~h2P37-ccHwxKT?sde} zHL+-Mj`{!QdlVn4zhL!{KW{(u#a{d106$!9tDq^e6bq%r4`k_$o<68P=Qsr60t95&Nl2P#wggEgqR{*Kga=Jjo4}K{!#sS8C z+ek*ks#kIxrhw)-tU}+>a}4U);CPw&xiBm6*T`@a=uBbvd1h(i8p<)R!k@p3W8o4G z-(qgj@l&bf#Yq z<&w+7Pn@z?*81pHjfG+&bBDT+4PpCQa*=4mu&H-$)jPM|yY#G%t0~`R?Ushkc-#L@X2v}5gm;ip4pYmO zzoJu~xY}f3>>sL7u9_Yzb^3pAhhz=`kfe9r09WtF(Oho-I8+YjQ! z#_iwOHasVrJT99J>dKFStjF-fHB6vzsVYA3?$u!1Uv6Gv5BqHJfG^eDQrC?RM_!z; z=%KnXNvsVA>4o_!YD6Tl!FG3_3v(+X3TUvaBVAG5H+H?lHMW^ACeul_QvswsKUvF~ zod-MBtW6(na#l%ps#EW>bhM^l<1J!d8$Z}Bq^!6`?+`}N<6i3ash9=$)k(j%bIcOvQQq>%6S~oeB7+{lrDi>%>~i zQxxMHMxf%+-?+Wq=fzdlg9W~BC~eoA`-ignvF5>ifV+=1m^(|`9O&+WZQ@N;2(hkI z-KcY^R?SnVV#9fN9#%0cIl~<+xj9}j?|@XVcJNrxbtas(tF+@wc2%Ow)}v2$>}`Lt zjD4)A#@Cw_D~dDD!cSB4P1Z7Kd502(ut33B6Iuz3(u6AYA-;-}!m5RD8~{frA~VRD z;;ntDAG0dlak|m>4a0k+`-lD{#4%u;kZ8~!htnE4U>s0O1w zqQ~#;gw9q%7iiF4jYHmRJDExf8@UrhX=PN`voOKPcHBN%VT*0EA^cD0nE@t%csHYI zRq^z{j0+MBWC&g0c~YEFL3Pu%{aD>)-6)M%U@qUKZwnC9Z+J;sRnkwb9uL$PjFH~D z9)IBCjT?u4wejh6$Nlk&t7M^9*TFxh>SFA*TC%B9`Jzk8-&1`xrjP}zQj(-~d6+Q} z!IG<&=GnCI?zn4>q>|=?y}iWJnIx9qysDp!BR_;|ls3&wC{HRmbLPp@WC4Z8^_k)a z+y-5#{Q)x`L65KJ>1uP61YKvO-p2owgdlI&0WDf*$*;&1y}@mo;Sz>*iR~6D7IZ<) z6y%X1bF6S{##XaB%NWC0?K|)BR>`VT;8t}$>>v{DEV!T)L7ZO26C8wUGf)=69t2Uz zK&P_28mxQXQ#+IIzRg2ie^;AT^jG!p$aIKJZFpd9x-C2EyxCQUR+ttI?Bn+q`x z<_B9YanQ_Zf;c!Zn%Dvjr8-X8B8Um%2s1@+Azmoa6v?Z(H7_eIkm$Np;&;zFJuR^U@)H2qdDMQ$iwM#IDu4TD5aQ2F6(+D>6G zFcxc^!XPvZRmzzV%rXO(POAGOqhGa`)?|(z9PR4zqnn(RjbEEa7xTm34DXChpl^Ha z`&0AsK~Sy7UFC8s=bs0`+>lU_zLf}A6*|(n3oLppON47lfXmaN#}v?2wtY&%JV3DZ z9YOCDe<5Q3wjpa5bQ!iihJF@B<8#>W36NT;iZWT9PS(4>e@lcmPARerHun@LL%=yQ zj%E7SuE1x$Kzp9PiMI|6X`mz})@fc?1$wgs6*OlDt5sNP0t3Soz$(yvieyT=qIoBi z_$<6|L@ZK4;mGnF`}_*?Dj;%~{#l6mK@UNt=eYRhPXZv2H5vm@^@d@Ua^+sk#hTMS zz&1HU^MZ1F*w8zB;l$qr!F<}zIPJs6cRwpO@Ev~)w5LpBQ_7aQPS*%UWTnJPlwi0z;l*`W(y% zb~-v8_M5>JfGzt{L=4mFWVB=Xd5*)FP!?fSdB7B^X&HRiP7X5vXn2?*(m;{^8R{YX zPrVw%QsS!efXFHgn5YQVAa=5D;G~*Q6bA`@A}KLdH0Irb@#u3M{HWJ3sH8ZL7Coc=18M{-BQ!PU`muKD7B_b8s*ViYHHc zC;R>5W9!D5{TnX#3pH4Mj`eLfx2@mUv?ou7PF=p}-C0YoyQ7E0#tuGt(!aCmK#e%B z=#SDovs%eQ>S?W6&;Db8S;Wu@sCP0r8{k<03nV*))8Kp#CjxBgDX$zng+mb@#<%T01)7Z4}l|JPat}o(Fje=<(U3O z*wCkce)jyuU;g@^FaPKN`u>L>U%meS-n@PH)8GF7zyHtw4L{7Gva9R(mtR*mNxJ^8 zEH5@6KYjl4&u*_j7#^RTo{bKUJQ&L^t{Jrx<>%q#0ER2M$Y-#Ua%kK|YR_=)&w|`Z zc&`?8WI1sa|1pFOu!f59G9jF#7PA7K7HYGu0G>n3kw|S_IFNE84|^P;2TK$v z>LL*dp{91nu%`cGICJuVi^2)8#w{I(JPZn;oD3;v;Kw+1uqU-WS zc+kTs-#G&(-%j;q@nommqj-@;+ueAcJ-$=E(QJ{~})pmThsv0&N}Zbopw zkbe{Ui-WY~qKO&kT*b1(p_%KgHf_UclD1R!zE0a2<+?pTZ_i=Gw&9Z}PX_%%%sR!e z2V!2j`RHYZDWWi`acdX*$@X8xekO>;pogVRlRIC_w#oj#nqOP*e(fL0Kbqg!?0hHr zN4wbm3t6v**Ou1k^KgmfB*LxZc(x6C{j>A);y(s`5nc3#F!l#0Ll~wJ>`O5D1&z}x z=$#Jw$7jRdXdo8BVgD3<56(_U;yO6gkA~tVP*2XR^DHt*MzEFoS+IibX90`i8VkCxdz$dObNBqfvL*g^%>>&FJ;19njH}?%)Jd zZPsRGzzrF8p`$%afKqG5P>#oO7Y420AJM4K@jKNP9aD?o;5dObKfrV=x*;=h3{{*Q zpJL+JF1BOtv;zixgfn|GI_|=;-N$y!-F6@W4aLcD0Hk`_qY;_g--nNPfxb?G!cGU> zzHX&%#4$DEwA(ud@*DN)jldBfiNP7Ppo_CwYr-)#;qc_7J3Kub432AUK>EX047;%H zot_QP>a7@ID~?ajhC}GeSwka+awvMEGnh0S?rJ**+>G8CrfeCV^y}@v36Pj-RSkiVIRou_!JsSbF!|J#R<^(VALISk8u?&posH* zoRk54<#^B?9Uq_QcG~2Ld(?zYecvJq$5k*Kb!oM3 zoX_Ki1sws}8sLi6t#md}ATHR)hd`mHy?R3i)DT#Uqam~w4zGrmbY)Ar$GzkJpx%rg zH>2N$X7*v?NA-rBQ9EG4!-+IF9@X1HBaZtY9G^fq!+JALWGjFpgn@-!uAw0VYDo{) zLGQSCGHhtbkY{Fi3_a#z`Ve? zAJhJoLOU`nnnKYSD@~!&99xh=3zmu-y^zhF*&x406MzPgEEx2^)9ej}JE2DwF!{wn zaOMNQBa!(~`g|tY>b7LPfXPC(3k6oABPwkyGV?8&xDz;k^)(P5eN+RgeC70At>S^t z_du#DW`ROGJiDu%iWg*Q!xjLFqcdcmv7rrZytXwXS>PFAj|D;x*0r}F*@Ft1!dANpQ#$@TyPj6m6OK;X`LWnQE3)iJz zvh@M-)~da1;~WSxa+oyv#;xSaN$c8RiA07wpn9Y-K~80Q0V^%Y>0ddAv34>$0YNhk zmhIU2xZpADo$%Hiilv z_xcBC-)UW@z&_`y2&@r2T4bNmA<6Fe$BK@tm?l&5V)e(@ZNBiw$rJ|}ZhWCpGq~Sb zP}eJeEXh*>1D^%GPF|);519F+RK~N!!n9`EPTIh7B9DZa)TnkwC^YqA!_-F8ws%{y zw-#m?F0yu4^nKDgdq4kt`}5BwTHfWOzK{O7P1R^?82rccS-ehtbN5!=%&nWHx*1wG zg}OPnZg$koHS`@L$GSe5e3m{UI+s%M?fu++`~B0m|LGlYdXF$!q>R4SMSTnWdG-3m zkBv`5eERJBS8rc5KAzL#S3mslwDIv8AHRO_=H;vBP0uH`*s8}&XB3HGbN4Y}j(cYu zx#|Z;imi=&DhJ4;@#lNFx_7H@h3ZzRZ_U*$p>M6#t&R<_NLxPI>?5UD_q^GJbx^RL zlOV<~38)&a@L14Joy}7zq;3g4ch^}&x_F7Z1~<~YfSJhb!r?_|B0>%V_`pGm-rp0p zAg!R2Myq4g=Y)uiFEo$SNZnsB2KYAoTn&OE1YHp&L zM0A}8*tVY+2S0ay?$AYhI@Z_z)Vz)pffkFSe_Vuz|9pD*e`i=sUElrIGMI0-YwIske@@1;Qd;Fch+nv0;@*n6gSYHTv!QnS;xk>L0q%7`8_Z4knI0)EJwDWj z*Qa0*Xz0ADPI`n@^k-$>;O;uv9*M7aZd6FWk^qLC!ef*Z$;#I-&8wi{Sm_ zZTp4z>`z`C1fRHpPbmqCkDCsT>(fRi?}d-&$x~o|%mk^D@KC(sx?Tpa51(49?3ZZC z!w2ukq{OLxUmo<--qeNao(3<@yHoGbJ9u~SR2n5=7~w}*eqa^xQv{5~uYL%!b}pJG z3|AVAKF*cu?XN(xzn*_k&H44uJcguC4CeoB5#(ob+O$%5mScTgzfPf}KGt3%NBY~t!2BO7%6D_Nw@`q>v_0!eiD*iQ6 zlwBbl7<4u56FCM}RUjNh`}^Oc!zfp6KlAlCFg1~vQ-itlEo|1&!g>>?48K#mU;A3U zMDs`M>u&b~<1`JG!9@p9YmISzJJ%TRpwduKIf80Lo2I;om&hB4`j;qmv$n$@LvqAQ^dy-A%!5yb6X9W zo}@_E@=x=%X$Z2x7)f{Rak~r}*8V=t3$$3Siw-6o@uw?wCH)T-(Z^~W;+=FNPZ}OR zd7>2QYlLeoU>X|Fpy;Ara8?=e#xi<0^Lax4n=QuDmFp}j-@Av(`J~%@fM_ztbM?IY zJDsb|5+t@=g!q|hcT9xrSA{++_(qbQDO{m?I1Rd!?7Wy{tar=U_k^IV8Z~?RkSor+ zxIE0hd|vG6x0li;PTfs6MIJ9`ttFxkj8gBq$q&eJxu)4%;{t~q_wCiK?!ORWzue17Bczui_( zIrFNS(uu|J>^JF!)Ix{f-ShaiT2c~-eEg#N_%51xS}k0ey-&4P{U(}uXH{bnLH2N21eRPBw4(#h zs}e@$62_HF7|}&BL${w?OUt1^+;x^!RNJHYHtyKhVGzAZP zrP94X9jwQ73U0OW6e8O`+ZY;P8^WtSgVQe@MhH82vDFTC~4-R!$aR2bEkW9G6L)nAD z*gfb;OK>wfyG3E0h*}gtDU25vTZ-iIn^mYCPD{D&5D^rA$c1Nq9_rt|M5d5@Tpy7h z)U~09Jm`z?2>zMlKMDL((M)Le5f!TW6c^JNBMrmFPcM_Ack*Z0alXqbU?o<-IZ!Xz z`+{VWo`-}ch3Z2}yo*5`Kw#utx&fk34>#OWz5@fX2~uCc?E}1_(t)-%-{nNuhrK;6 zmL3N9uE5WgI@NM=Fn5_1Hu;O^>tK3Q3Kelb~wl7JJ1wh>&TJ8|P~4wFfSTZb$Hlk_AerAh3M;U8(= z(lnAiNss#U9RAukM%_t%o{=B1L>JX2r9#{AzRN}57r??Hsr|DZ>NT8C&`%(r1)-8j zbJLSYrYG{@PwgKhiUaomJuWFLjeh6-|Igity22}+oz01g0lOC$0;b{sG98Yi)1XL0N--s9NGy@~Jj_TkL@k^4*TyHphl z8>Q}<<2+BgAF+T!?aNzly=zIHa-Du+A7!}Wb%1QlnJIGOgH)(IS>T-`U-4N<#b1>r ze6qBK8BdffYRZgj9A;0k6jlu*X*eAdz$y)W4D%f_<;fycuc1*+(>Xf>H7OY zSHU!P9tdZuKY;B=I*(&#deGU}>uuT)b~bt&5VrT)y^c)>s9zuN1I{ZjpfO`WD{Xta z-|p1}*gWX8HnEc7{?=A!Z+ku;9&GJwY;Kq( z6>pYQ?9#)=@)o3TZmvDMsy(7cjZE3W`Ciiv12d>zwOc(g)} zf>#WUK)({trep^9?TJ4mAFRrI{j2kppJL+5Pp!P!YMwP$UcfdfCcv z>KL-AdL@@COo9sW6Ltlmz4FUKbyPIwMG(7VuT0>Hm~Po*&nDs9Wl81il%)~II|Nn7 zYaYqOYil0#MjPP;y9dODSTqcpV{4K4l_ZR#sT^in>7*~Xh&{-_5HovIOJt@bn`t#e zkDJd|v)8$5(iyD%Hd@Yuu#*zd;!+BlpeMp*C~co0$ZBf28jUMMG}FApwgBT&hzL1s z^!GzRvV26%5zoLC0|6o|gmy&iKbEm`IY;|MPKx$}UfXW*j7rvLW=;hfB5qk;{+6YY zXDVnhSEI~jNGk77KUr-ls!4hT&>};b#o`)U&GCXNCc8HAIO^&#YyJ*6*Tq| z>d1=NUq(yNMAKU>&A$-4EyelkM3a$GjBIAME8_8J?Xg6Z77Gx@aj_6)mWCOIv0s-e zmj_ChTWp%pWZoQJ)60nlu%DP%5LqEo2c%;NeG`S>%eaPVQxTUSzT+;UK%`3Eh_q()x zdvi(KclEaKDYRj zukO@Vn$0G81K1Y}iiB7XY6}a^RA^1?hXbdi#b%}(WeAK$D1R?B<_gon7)XNb$>b8| zT^Z`JjAfTOm?UQ?W&bd-y(do?TmKjl1x}CgNm(Jo9U`uFaFB{_L>S>`cuM5}Ae<%G zE3){pLUiq#$$na}p5#F16^iH#b3#wS5n{m>(XY@keCAX&pd5OzVn_0^8j_7=xhXOh zqMDE}+as^nK2ipB%91t4bDAt0jER`qA0x&#gTTB99ejm)@HLCEh5IpLZ1H|5F*bc& z4kxpb7gyXjhz_jGma+8~c{M1o399ZaZ^S01#l70fW!6{+S1X{MD}Zg8<@XTnAPq^1 z1dGth@Eb|JNpf=Zby_092*_|nW@i7ychO3?m&N-t$B#5dFPI#X_hzl|R_2iF{8kbyQPUPoH2%y6&obMpk(6+0eZes^75$V9 zMg_RvknIb$QP z(D=_ceggGX)pb9|8J7qg$*=3u62>a-GCs{B-fEHF0zhO!XhulQ2;rXP-0UM#F(^?| zd@d_Z`3ae0LzIS2XClSF?uK}K@XNc0?r7?rt?ldZfGmNMN?&WTX5I&IOrW?~m291$ z-Z4~5R%U=p@agN-lY^il&-3UU8b*>;!=V?)fSa6$!AOD*Az!AkTb}AxOsnjLSrfhfKJ5~9dXfnd#ljf_bjq2 zgc#nZ5w}$%!c<|?sY4VWN#T5s?F4+=+JuFeO0-j+&IZN?_06=vM^`U!w^-m-2V;Z! z?qZk+Ql+N#^*a_I*FXA^XYRLpi0KC=iH3M6dg3wq4{;W3-V~?k1@@1Alu(XDA@YR5PhGb^Ej2q11azbfI_^J z^|M@KOtSrH)Xe889 zK$2SJZNwCpwsN<$k-NDSq_hmVq1?i@mA$U;=#^K~-maK5`f!EHI;EA(MOVq%S5?h7 zt7^Xa9cqU9(#p$g-sn{HnLb>h=FM!)Mp>ujONXqWnf3Pe&dyG!y?tH8Z&Wt!W>w>E zzE9(F^$zNW*2?y_-b~fzje%Kg-2cvveBfY`c4rrnl&Ha&(=>c*0I0p5n56*ed)d;W zrE24%#CvvIhjsmH+U79R=CGvAVQHJ+XNRL;g&116V_!$o^JW~sQf)Q`{jE*-9`KR zoz056Z+?fmvDo=lc5$)pyOYpO-mBj}<(JpO)fVGT6*b)a9%^V;)o?qUy_$Ge>%{IQ zogiGTs*0Q6Lly0^DhOXJL6|tc4A3Ge$#d$S0$d!xHTS7bmde1Gz-+XwmQ;CTfJ0>!mIUVx4bL6Rb;_TcQXBe1-!LowZyiS1CH#PimD5^n5w-1rLWY0jz#icB~9RA zX~VD_pb%qH?^HJFW@VFZem_kTO;Ameqg2(T0`{hwRDkGLYSN}fhsE|zXHRPvKu>B} zXH!OWIHJ8>9KPKAZdSJZW@XE7es3+$x4WHhcPBUI8_Qc>1&&DaBW>Dh#P?Z0i|D|9 zHM^P3?ZXak_)GyNKLaE-zYH|Rayxr?xoxp|?UvvPAgF4fPXxnt+G_RydKun&d~nb* z8}8*BzY11;KYc`)RqQ3UQNpc|;nt-ct$z<4eJ@DX?x1Z`z-28@kR+h0x>s*s4Z3{? z5QZ2X)J=%p`@ymA0IbR@e;0`L9l%nmU1Vi+i7pv~3TUOlv#M?WzEG&Dp>nCDP%67( zzF#<1hT3W!xSh6mwN+pqrX}3GQVH$y5=v21t%ygLH=-2vtSF+`3Y0J^hhtZfkWkd( z_#~X6Ty9220x7ifIm&05h_SU;6Um5j%<)unjY*E_7qV7@nehf4?XwAy02TY39OGM; zKjWH;YMq=isiYaRXu&gdl9DBTD`GRUJ)FzghgIb2sIqGI^m8W|6)KK&b|v*cGk8i% zB-xJ|JU(euU74?lP`4;6u~KTJp;X`vmk9dQ@q?c5k|W;@UM-i%$w_ZUl6V}D7jL-u zWLF}}@|Lf}63aK`R&G#xDzR9oP#-3{C{D~vDVNUDmF@~UocvJ%dJ~wXdF_dDQR&cd*dK@@Qc0I_v!}>g%n>-i^jfxAAr3Xs~{qvaTO$%p-JX zJD<1LTV0*)s${K6UrSSP6MBTC&|Xw$LrtKqwY6X$6`nSwJ~1)%4z{*8+I!{&YQ=4s z2aWdHn$UCWZ0uR>J-`rm_ss4v3}8jhJXE5LNvSh>hdfS@DFE7m8cCNGU}f?JtmsrX z{01pDk;9#!!6gZGX*`#fHVL)Zc$A#ELY1*tyY;g$}+b*^A4a(0ee8f0&*p>^UXkNhndwrW6*T)$~06QaIAB) zw9egmXOrkOb{K9@bqC5(0+@@e1)LY@fs{%+06wvg(A@Crh!-gI!`F22NgN~T zLy7?@CzQw}Jjl`tGp4tiVC&jNh11#8p>i;q(CGK6S$P%sW+Y=KVIZR z$;J6RVoWTyLUd|}$pqIP5Z=dc1F5@q+lz;hKZOOu8Lg?FHmm0*Qp_lYv_|>?Lx-t} z`jS)QVqw+Xnsvdh6Wa?-VR1^}a#3!Vn#I^%^j4&afs=o~wY907ts$VF(q5Ca)`3Xo#*MQSS*&RT!b!i*#egD3W3e z-Q3Vjbw`AK&5S(7y{OC%WQX zK?S;E2hbNJpxA2kc%&iNpQW(MGAEUf*%J^o#u*#2}i)P=@J6G6u z2UgO@U|u!{aP8QFWrFg0-UtSIVRolVez+@5mrVQ9)Sx&F_N=M$pg)f$ z7Q}{|r@|}fP=s!OGH_u2LJC_}!c+tbluBBjplOtoM#IdE)2M$k$Pbk^4kV|$VAsB=#ChAB zeiXUWtP4`Qu3>30PKxxOdkom+@tx7J7VE>!_p}f@^rPWy;zp!#yXvWTSOw``cP_|i zT@iGPMg7`4kBzh;5=&fI?r8J~J6hs&`oxVNkr*wyVo3A$y@AsyQ*BCYucUXF9F}3R zgZu%uapawbZ@gS93T=SBI`Sr7;;m$wV(F3jiZdVcm0SH{bV>UMXgvCk3&(hhmBR>S z#?>rIqr{67RP9W?`F11XWl${Q^Q1+BhPbJ2G{_A@BD!stXkVwj$HCDc6=`k*@WPC@ zQ4BnHiO7woStt(;%@=M&n0jRtdMp#{o%wOXR>&4sTw0gZyvlZ<=N(iNEcL52lfo`RrFVp?e-*_E2;t49=4NI`{=lMuO|DhEu^ zMGCtsxU>f*uiVm9Vkrlf;9qFtnU=kzV_MmTR9e|^s7=Bk1L#skOmRVrx+SpBlYp;u zrzT>#;jL9YqCJ63H|c9WN?Q0vryALoQ}TS2O1?lh91CmYN62@ZElz|e z|DCq7-U=5$`n$Cu4_V){4OL?xc6q)97xJdi4UFPYpcmfk`Dq%S;tyotv7k`U0*vHh z^Kl_Zi+ArpVfe1v{Mnj>|AJEh{vAEk_2&iab964)u164Ch?+DmnLl9v9PuU;$)iT?TNWP z*$UUzmeoXnU!T)U3y&6XQA(n7oXxl#7IrVe{|e1XG9CAdP*`;wuDcrM*~~&PT>MVe zXWkpx+?DyX9Ae$4`1P&x;e@#kC4`h(di1SO!j-$oUZiy{{HUxn4p2cnaMG=jYIp?A zA?AAGCMS+pVGbzJZi^WUS7gk{q9Wm5IfVkfXNfy}{XBAqfWTLLfbx8_iw~G`ZJq zZ*G&VNn?9wXM=RA@o{5&6Df9(V0&+8%Ou*v9#PyN_ty6AE|S&)V{2o3V*^#F6`^o~ zM2ej@JL=Ww6>!BeY9CN5kqVbL!p)=roL$7Nx>Fe7b5mXi0-aVY>`bD+l!D)O@XPZ4=8Ru3_YkAE&MPo)3eG1o6_ZUj5)l?kPz9Hhq@p0rG z!xEyws_E$M3Hm$0YEgfW=tPfxpNjLua_^S8F)TTAQt0 zep91%oGz@+_Vz~WT?ogW-927dovpo{4nQz5hS__y2v%aTNI*-ln}p}O@ag|gn;mao-VgH zh%}vPcdU5_>`8aT-Hz_83#6rqIRz?A=GcOIEVCDQ$TUXUE|A+8_{Ti%A2ST0cHMr(sXNQA(H8{rol5fW|R(=9BiR-h_2 zs+Xx&M7m8Mg$2F>j2tZ!Q*@fxhs0^JNXUCxx{y*Yu>qljb`MWHiNB%dOYB9yJMq8v zbnC`p3Zl@&Lz4xl{PDS=G2B$@*btOaDm;fH;)I%uIJ*E#0BAs$zg^%WCnqgtVd;5b zM4c+aBPAzYxi~BP=9CbSWnxFL7G39p8(IRL5gmyai%U4x2|^euwkJY39V3oT2e+rc z*r8Y(2B%6QXu$D#FMYIqxLX50O~nP4mNi-c2Apy-MFt;<^UxmO9r;7MR0B$_ioi

dIW9 zXf|ZWz2EX0ew$M=q64f>q%Qx$sZ!XCrN>k2`Lc>XTcqi>Y@ia7WKA$_;$7QU9LT<% z_M3OT1d`s|l;Vw0R`(JmwovMEHYt~Ug28riKeO)>Xf+PeQxmc4qM{Ts^} zCCvQORSSQ2`D6?2=tRmQ^xJ8)p1=lS>ZjWRp6fwgU+DpkbLyp*D5gOfUxf43;fo%* zttaUpE7nOKysNOu9=sj(Et4P_l;z6ed7Ez0#P9C{?@_OMtLhAynBH?HmxyI0S`I57 zu7221E*%dQj+k}t?vO3CgM>^Q*|kRXFd6b6Pnck^6x=X0%Ou<@_O6PuYLC~Rl^^`5 zunaZnqx;@g13$Vnmc1cmE3bVf7EtW+H_(0{t-1t!jZ#&!i)g?rkS_mMXOGYqq{Tn4Y+-WB}lcNx~Ax4Q(P zZMw5wZPjbf*Gw)hS8?G*vutRZ&nbV`Y43Tv-81Jl?EI^W-v3-bm2d05z=Dn>h7wE9 zaq3cFHoN|!xL#i4>(%8xu9^Xh%+zqLbM*ZkM80{Y)M??!IZFumasOm)NLOX!POv z`9p-7>s73eGCfKNr9H-r%x&6wx?KHsXpgm#C$pz|ps!l&^u^Zu@*p(6x$+{lbg zpm`D^$|H%c>M2ZZPTjy^1p>^#0QKmQG?SoEQEnZ=@YpRtC(-xrw1gwyYM@EGTrA?{f)yFXNwVG5tZwT3Ea z=c{xDNw%3wQ8X#&+UpS*nR*gaqH{@L!_mVt{#)aoDODB5TcB%itf1Te2rgg$Qr_7+ZFT2brs~ZqAC>N3ni&R% zo$)v=QNltjB!UD@sbqYejKrCo6}}Vn<4k4I^T+AXu|a>(E@u4I7@1Dsih{p>6|mR* z?EQ3W-0fpM?7N;9(dzz+l^C==_H`J#gE(m=PlVJ!yfsl5c5nL(rP)c+z+0Q&xe15l z@l|qRiKR>`OFg_roO(9p_!;RF+xkUe4K``tSIt(lfYu5DCjz`v)_nYM+#o_TB*^Kc zCF1jjqtw~A-Jl?rhW7P4f#D=31!mW<*@d{F3sFJU#;*UiObPAjn41SPZ_xHNM3n;wWaU}@(ya( zmdj;>%JH}8bnCP^1W7VzZ?4Mh-RAE}jMH_xizc`GNf8qG61Ay}k9;SuQw&;luYnYo zifKddntqHoEsL~CLBn4!o^(`YU9ju-a}vb@R;%`0M?CpK{`0lgdn=&3$e@1E;ob4N zue)(pcJH{(Z z^F%34^MuUF`Zxp7DNAelVpZJ1XH^UXU&9CphNhQkmg%hCbUMP|pOT+X95{<~#qPk#X?XSqO>#tX-2N*vY|<}zhz z8J8ucNW~=;fMh&i5t~b81CvXozerRZaE%T?-fEu}_4YcSQFMInf)HQ>$g`r88J|m1 z%FVij`H0li@|i*A>8~@$7r>UrAYIJp<#DfD@qVxRI z5}96ec0qR%Cim?9OneV&NjOU)@lwp5mH>&WJt2CzQE@pry0!|-Nl?&n(pIi#1powu zHFe%neLVE?MriaFXMUTK23ITVe?KS5WmS|E3WeR}o(Sq{4NxP?+v;!?$2w^0YQH~} z1N+ylps80WWLO|qmfPb3zy?4FfaHHv1CYh*D))r_rse~n9a&S&9tL1hXsT7CtIw+i zs@)y`FFOUWHPThy!e3MV3oxefuHu;Qo0_5ND0(p-l)k6hmx_+wVD`zBqF^!a z_H(M-K6+~TRGCWJVxC9DVx9?*jh$L1dmL-^!fIz78`zweUaIsEk1hBkLxZ#=a6xg=?hJ(7FJ;!ZyQemKB*1z)!X2A!gckkcQV42Y z2zw0D$j7n#FZ2 zkdADc{vf`pD22siRU8g-dDr`KPN@&g1z?%tI*KM!+MVKyuO8BGlZvH<5AgAgmn$2jZ zS{Mmp$&Ccvsr1K;EA_|FmTn&vcmj9Q7hOFNcDd3#n@-*40wyP=?q9u|HAfuF^gE^o zUL4b>D4IiDbtVPVf4b1G^*;^U5HWAg(aR!et;{koS-x*W9KoDL3+elA?A-Sqe#B1A zsAU@U<65bhEKfshs@?a#?=$a6fixo9$K8k{iPrF=0a}30_I)pKHEQ|&5fCT&xMl%} z(!VbT#o)}woB{L>YZgr$5K#iyShE5~o|3W`;YXw&+o_7(`fg)W*Z(h5Lr#_lc)u_v zHnqbPEPo9|aT0Mf;EFjL6Z!clCN%u0e!jM-?^f<1b`DONdk%XRP1>kMDI(R*COq}m z_Dmin;2Hq{-A5mScb*%<$!a1(zj74hdFQ9Mdr0N5Go2nR;1gKO1kd)m}2RtUF+SLW5cKpA- zy?s^F4Eqat&c2|)mnoyq^h}ybxihA!*ta5ebzY@2=B(Ivp^=hX9Ky~06@WAVSpf3? zql|#;KV9hK#@_&xLY{0nKSQ`1emvQ#miU4g%Qhrj{+B(Z(urm|XD>>6x1tCb1J3Vg z@PH!!-AXB7*EJPT#B5&s0Vt8)d1ZJiMLyY{V&1iu#VQ8Gaq}O$%_iiQ+ntndjJsyS z*i`1FKiSd)vQ}jqp^V3kd4T%&xeGa^&J5z3uck!>zK!bWiAtR@u}?m3h55*LD~le- zjnnS{0Mh^9*jT#3C>XF;wlTm8lpzMt)U%=nQtwJPBuoJrrOp+q9OTlCP%FTEBH*pa z7gP=;zW^oOnY)lch=Tb~if1|OYw52HWL8glGxs?L+^F# zFI<166g`9#%=~xV2Iud3;^1-y-fyrON)6ZyqUq)Atm#$TyUY_;&x2=lHa>26hDYCV zUFq(8qIqRD7)fV4^?O?_6D;*-d))Q+_P88Ci?y!I&HxGHO7~hm^|mDvrghb>NFI=R zf5u98B+rR)e?}yrTmZ0*``s!ZV(~V9Zwsh<4@O>SUXe0&{9k5uI-b3{X@3SOlkaHs z(XQ6j{@>c|@w0FJ6(0_*1Mv)W1a(FtH-e3oc)zS>$3yoxQx*cO)amHCuafWR!04n+P6$v?wyvO<298Q6kUGNUwcx-xy z%G~!_L#vj^v~pi7Pr3TaxO6-9;^K@d0Hj>N&B~FPnpMlvJFBOOqnfPc<+7@*W$lpk zUz`3FFkEY=rAH&Qj#{H5A|A5*F5UZuyyyGs&Z}z7JjZxKbCprZg+f5muy{3$e zU4ZTbIQSpM<2yHlk8NFo8eCfiP}$?ild;*9p)=&jQ{lWSmqg-L%m2UZJ-+i|_E?~A z?bwwA#*%;}Ol+%G){dPzU{_$wkp~psZ$IL^Iv%^zA=ggd@5tj8zO$|>Sqc@HK|0ue zB(12{=t6RDCLj-uxTrer$dd#(s3&n#!5dst1=Iy%pNo0V<(V8>M$XU@Sd9u zI(7;uD~0UXoqrl!vw;NwNdH5d4vAY5u!Sp$n==7W$^qW_XxuLpr!-MKrh; zzt^PG+V9xNAL}*f$o4T!{h&z)2&)3HaLjuS)WZ|5rnbB(pg8EbAr#yCrTGV-akkl{ zgC|JNA|2bR2KccJ-?3Ap_R>P;Jy+)dYy)AO;r?gf-!&D8smHOg9KO5;*I~8l9bk$E zPy-qQ2;<)^vGXd6IN*^K0MK@T*L=y@d`V2(ttK6yx+*AvK!Ku{=Ky|y#sr#VpYJ^R zOKfXBUu-K(zXssU7AOp$SBSH|cJ1vp6j&v5L{y5p+AznZxCuk1TbZY1~rWvV%^R+R(6>@?Y@ear&dcG(kf z0ECS9&PUE+6}SVg1r8OK4DGXbYB*n3lx1QXsmrd^U98&X(E-R?y|_lc*l9|Pd^oNW z7$|Mz9w^l)?HXo3W}%7ptY`;-2Ef)^p@MQF0W3AKTABH+`pZETDZG^n{nVLcfHrBj zZwVq;y%)|4k3$Ut_ndB}Mc%z$E?d*6EmzaX9|&o{KCLQ;^Qu6DdzSB&n`>9G5-4g= zvEuRMRS&SYck%WzRcWj2x6J*dp40N)8_C|u^z{XGoyiL>ITlrfa?lPFy4r|n6e+y@ zD<9MdANZ;pulerJUQBX3cyRNGEB?f}`X?1bb@OdBngy?uby0&3{G2;~f=%U1jSROs z>@o|8(O|BdxpdP|-TBAQ!UL(a(y2NlW^HobPw#@V4~4i(|AbXFs%>k0Hq8i8>4H7$ z38?!XyqwOH-*= z+oiTl+8l)(%8b2u%T;s#<3Nt$V(Z^9UY%|_uK3pui+(}Ld-r-lw1$?3-xmhY#wA+N zL!JR!Efj0))rVpgQj<*9fw;Bwn8OmRSg7=;A=s1o_?ZITYQrU#C1f(v*chRmUjJ|O zexC`9-ZAd_vkd+ly{n*lUG2qB=FOF-G1iji5zh^oudhWNx){oH&(MKF2;G}O#h;{_ zRqY<@Yyw1MdQuV(16JFPdGXppdt9wI6zL_{sc6}%wdFS)4K*4ZZ*i@^?N(E*Ew&4d zk+)%IrRHdnw!25jtW>eeq|1#+6jd)^(o5UYTO)J2p_f*12T?lU$@h|b-k-N?vwELl zi^dU5Jgf_zy{yjqUUJpp&6zbcis`ic{~ic*7?K=K#%3j4bavm>zoQIXe=g#1=+J+@ z5qE%b0p%LOnqMeA4hT~6DD9dr*BNRmUtKoj;qgzTX~&}djn2p9QouUP9KS2p+l}oL zEvrpoNQH9fXg9i9k1irmxM>ym*Q6W`fk3u2bO-%{2VLa1xF8EEDX3CAkUfDAT}jhIIFK={_J zEm*exJH1$J)wn_fD)!|5DR{i52y%58EotMZgalnQM#pfUb90z+#0*=Pndjk*D?db? z?#wP}itbCO@OF+|YtBkC@ode0Z~lPvA|a0MUwUuWy@CY4ky3{KjuYGF)=LUCDQ{TR zO+xo~j-TH>S^1vlg8*f~WgVJ_2@4IbHtWYUr&Eth7&>0-EpH>6%lNRKvTJw*XXdk( zs~3K>IEPUL>A_GC0V8qD|RfY#8w0cbU zw-ir=U%bllI9@eWTqy($kNAnRn#)EpS>lcr;{VO?&Agu%@v7zZ!?lRzxlVC@o*@d_ z?J^qz*EL?OTjVLytYE+ zhmY=w-wG21<{Qz7yp z{It&@&gQF1ZYoDHXr9Y#OI^|TZ_za#e&I&-^$5 zkGkTvL)f^8iu-HBEaz8&0{0x9Z7g@f;{>9LzuiaHb8d|_sumN;ws=u=GZ*}kkRCJ-0-Isqv z_ZF=d?$GxZioUqgGP$!H{r$XcCy@8Ygxoe1VVW~9^bf>oFZS2axDdzt0G-Uq27&(a zX0TacF|T3+SE2g9(J_T-n|u5cyJnY*Y%2Pnh7y%mOnF(Qc71)>wau?h(>OLCNG5Jz zbVh-xL~JyXGFLi1-)pJx?9I8KQfn;{UmOyDzW+sJ%wmObCYbE%P4soCg85v4Om(!2 zfm|}3$^)hT^Cy3G$aHD%0zyzoQ2{@Riyz0}pf^Wkwzh-xbMr3+YuUeuRxT)2gCl>8 zObfZVGzJz&Q%y7CoPVi)W3Xu#17__I(<)q2Rww(h<`q>D!>T$lNpr+ zk+sFSoDj#AwajY<_R0@?@`HB=^dD{{(D}sf>hUhTYbUOGn_UwdRefXXV6Ad0^X}$_ z5Obt7`K~!lyRqDJVoPxk1xE&pHa7pw(Xo=76(d1kXuWpO3|(*Jy9)KOjLkOm2A$Pj z_UFGwlpnH`sJvh-wgngvf@D=a9U4f=+GZG7=?Kkx>CZ>BR2eIbo+Li4Q1ZV~K7OW_ zKlx;m)Y9;k|pP>or7Mi3k_@RoYouQHDiCt1q>GkR^1^s*P(5aA7 zg&IBE#KQDWlYQa(7A8+A8Yx`Kn8ivm$n^g) z_trsmd`;sgkU$b#f&_PWw?GK)?(XjH7Tn!ExVuAecXzjo1b4y?-#pL0&->fA>Q}Y9 zRl9#Qb7!Wz&pC6sHD^wLx<@LG4zZ9!?7F^jm|iflXa9<&@#%Tb0Gz@rxxYIvP!v_E zLQ^2_VhlMAdN|m)f7>PN)_i|k>k{YZ^d%iK4%b0FFPmxw?`hkH_{t_s3Co@R+-DA! zBd@Q^3olxUf8udbE@ERcw_Nm@PodE$nf2~*vCxWL?~0eve#kpqtTDKf7DyZ53^5#Z zJLK=&>?+-POsW_69)sSO{xP75IWjgrS$@Ff+Redhk3k@_TH=c#9hwgyn%s3BXEs8M z?1W(pI40w>s#M(HvO!SU-@2a%@z@uKj5Wy_=lYS6hs>6D#uf!M7j^fOp%~^Qx2ULp z6>JWB5z~1vvOHEh4Q|BMuUvMB&ZLJiP7<)VqZ-UR!ES87=D!H37zS(IA>1%pS-pHm z#G3tHSOAEUZONhRDeSg>%S68VGR&o$bUd|dq0rV*um63K8vdq837awqq|_s%m_s=? zF7y?&ShO-B^mQ2<%W(`F6$j=#jt)z##~@gm^-oY~PI}M&#O>km4K`e4R`pO!QsQT$ zpL{2@vx8RD(pG5VJ_h==gC%HfO_ha~`Qn2~U-Dzv6f0FMpIQ+h&os)Fmlf8?knq`Etz#=N!heDphj!uu!VfZ%61_DHkbZ2QT2E zAY#>S;hJYy`N9BtdfG)(E=RK5Kh-DRV@b-a28R>2DsOtogIN8VAOAD5lGGEC_H*v6%;^ucP?vN|67X>8ru)zo)OvGXI*sx(&#ZN@}`TZWV8I zhY+pSxmaXy*HqkN6^)2}in<{W(;(CT9Y_2WOr_3IhXFv1bw550yL0+;+Q4~Gtbkjx zn}IDyV|V&#_K?vCM#OfRE+dK6CMSQ=T-NAbp>GM5sRr_MTfH^qBC7cnj3;$y zN-0F|?cfEoyUldjBS#){T{5w8{;~wnxb9L|M%8$f(OxxXOyMtPVN5)`D?1-HPZH+|k}EYT z8FdmcRwBxBb*9T*2;f)}$+Gx-dAw(pe0d0xYu?lEfP`m()|SitV0Trrqi~K1y;APU zpMxi5eJiGX)Qa>LTySvu^@~ci>nemU|b?iC)mSwK%Fg^uzW1hPM-r8?O?evLX zw;ar=gK|}rilbE^Lx6I#LV@-K^$AgJL|04_$2D=EGMPnY2N+V>Y``d!S&)B=w6oH$ zGEbf~`x`*S=Dpr-5hZJrqF|;F%^5{6B!-XxpX7rpSaG!IbjOtrB_Y_f|VpsyS6Ox9lLLh_eq>egG;2^_Tff}>Wyi~GaG zZh+^2aqsZp8`Pu~`RYi2^YTm7BgpXA@Z+WFe9}Zs2RA+Z4f=;5I^<46?-4nSpbsrE zVtgGqVx#XN-&Im~O6lknz(dbVi5QZlmYMC1avCVP7-33}jZHw)H^P6fhA9lVV|LOL zD~FCsM1kAloUtX_zxVp(r5b>QD^Gxp#-WJH z@6wm7b1WTRaIDErX!LE9`}%jp?!*V;X? z#k@;+!|I~;!&IX_5kvUFm!DK)UYjj_l0iTyT+M4!_L5QsTlvccS6pXpyHXRs)~bZ= zS+6E?psEOkF-hXbbd*Ly0gmke0)|!5-&1!Q=!*ne+}=kJN7a!+hmy*-#>Cn%aE?5W zFbQE{Ta=J}U0LZTSLKPEO?hiV>KAyMRnJ&(bKRoSP+xwG>rOcC^f`^{PC465_*%x8l{qF*6(e(H=Z%Xt)R<&hnnvCkNP#kz>DSIUq7 z;7l2)vmQ0+&=THVP?TuZ4tCcyGeQJccSuiw-^~5qZ0Dp2E1#NYmm^N1meo5x>wGhLa6(O8u)qPTdQ?+-&T9bzIQ^Xp)Yz? zIc&<4)Qn9~hZ#T~a7zr!e8|D&JLNXMVrLIuA{p5_coI=Bl}9F8dN(C5&p8*S+hT5# zLCB#Kv9z%2%QV^11qznW^Ny-#Qu!4@w&8iV%jHoQ^ane3Z6o&UrDcA(TZ$|`iX|Bf z!MZo{-sO)pm-%C0f+OuC3KI3c%%d}ebOJSFrE%V4ZKclvg>61b6Y6Duf zkN}ANX!fulzrD9g2^a17&O=p%`P)w$W^{$$mx6`2g065Hx)x*|kqU$u*Z0Zt3lRrt z8?e#J2NR55+r-SaO3DtS@i{O-g~|`&YE99$HMjoe+HPJ|Hp0)MAJ%el4_|sZ*4Z9O zO_Z0^>8<#~#D(Ub^(H=fnggJ6MKs|rDekxrlv`9mZVG{rA66iY6j-3RC|1b}K9EZU zU`T}i;P8nSLjQ&nm~x@Qbz<(O&GeZ1X;!apf4lAk18qIZGcd^@YfEy;*v<@w=K0RX z@6$%&>94Q}yxap6eZz8%Y?3{YkNUe<;&{g}{CPRX&)MW7_~r(Mp@LD*p&d^QkCbiV zl00c9uvUV>l~g%K!ng-Ys~E~8R~1kbQrxB_UubM!0#gnfiq1T;g@_3o(EMh;#eZu^ zucVDt{4M7mKqiQ$W9R0tAd*~MM@Ku{KR%9}Ju^-?KX|=u^i(1;t{$m{&4b=7O4-Fz zcYma)Cl;w~z!oIgcKc2_I3-yGA5205t^TF1mqnytuEjj!#z%mUS`RgnAcQv9>y_g- zEEj4s(oZK}1#)*Dp7|#1?(<0$Zl$Glh*Ko8)K(vv5Does_HSjfF1mcz0-~w9vXSN& zfk)snewN8>>z{q#h~QWq@wz9FA@0q-d?XyVqk&*(J^eAQ;D?v!k8QLd$E}Ow!oRe> zj`Mk&)dt@FFn|UUtpWVgeFW%-^bNmgLe;Owi)ewL_`LEc;<7i1=hHEof-J zNT$Mq!C8RgxIOmfE-fwWc1J+LOHn#D$qT5%AshDXDq3~AV+ajKwET$7STOhN77w`p zItqOOywwnGf(nU4&G6Sv4<~_T(2{TW43*uDt`jwD4ys`Se6J_UT1U=UFLo4koARq0 z7#E}mVlNG-aH9YjwRN zrODyhi<2pKF{9{xU0W>1AL?FCxXq#ePI0@6?-#*-1p8w4yW)Az0d_!Hw(fptHEWCP z919ivoy_kszs5Lc6G}(n{N>ZTjXy*1o$LI1MX-{%+Xyy&UVmQJ+=~*$&o+bKZ>uxC z!P;F(TzLV#2B9+nD7b3#(b4SP50ehxrFQ>og(j678*8F$?1c^&1LnMj)BsZvJ`H?1 zG)$jN!b)d&H$?kCA#D&S($F%+(mH__OyC5w46mwWdw}sk3s}LK{OBN_=!Z8a1Jh+| zQS7`KO0>tkRqI$py2vN?KS0`v>HmVXb26$s(^ryoHjntv&6*nApUxuCQo^ep<^mW; zP2T<4hu-s3{wbJ1OKa--C~85cx3l-oFcy(W&nsltU@Pj`6h<*dVv5q19Jj-cqFH0q zk}et1oH5@MyRoO_6Vpo;m5#FTtlm|o>E)10&I9wwr;X4# zds;4ms|r$(iVbfonTwG|Hob4ZXwp4h07$@~x zke3E+s*vdNBJb;iNn8|eb^G_MKj~8lz5_fSdU$9e4}^GA+h*eFUMh|EnSUumr^<3d`W4TU_v^H=Ksp0t z<7dknUUoE*E2oMoUyYAf##SD6d<7wNE1`)znEs<+h#*R#YN@cCf9*A9`))pMJ$|L# zGbJyR{9pL-Quc$_b@b1Ao}?}{pqdAPVmD8x4mK72)WKNXTDF=_7_}IMxT(|3(L!7E`gcjs)a<5o&NH1ov9b0aXPTP42%X1 zMAcJgK#r-R-%OJIDd2yieLpb^olMF>Xd{^){sa3~kjI{}&e4jWcR#4BdKXhO%?^EvTOK{t zXUUab_4giOi9EOqJ32Oxqv^s3)kk_~dcOLL{uwNg)6nzcJ$8btSd9b>HvyaH3%P+U z4a!qG*018pyw!8HaA0OGA1*MmU68v@5f7~v?^_L%AoBRHIpgUwqvv) zY7w1+cB@&7H#dl@RgjUnbZ@!?xy5&AKW)H8IuPcRQ{YkP!lcIsEgZa?mw>EAU=yXavn9i#e zIf;kPR&8Q)S(;=}^qvRiXar~W=t}z(|9*R7Al4k_aj!E2YpD12;P5=aV0zOiQ0b(Z z>v0Ne%(}wW*kFoHCTWg$z4Mhto*${9t2!x+YKN>20eZLGWm4~TS=f9un9DLA4VI5V z(pbjBD%czA)*c@F((mFjU*|4ndu4ad$pRykBXPS&s>=NSCkZDcw@a^k;Ag+5-kW(x z0;K}yYV^DZ=_-W0AC9n8gPx6?gwCH374I%Di}TVLp;!Jhw3k#!_Q^?Ii*@?(oX&*p zWYONZLLx>!9cS4p+mMB=^%8o0nGN+MwEiLB4^^K6RU6I!uYq1|rb8x8HT{TPZ-?_Z zej_(=w#6GoMru3DJ-JGLDvs2a$VQilOuuhkx6F&6<^B%u)2Iw1Nc>~Sz~exN5pH#q za>B2bWg%E2+z)XP8iA?9ZvWroyadPaZu!3R0IPd-9$@=36JT}whi897P{~(@BouF$ zDiy2~Q^{K=Clpf|7=l=88E-h-I~^U%Bs6h=!(XW6lMD?(t$hHgt7J4VObwt7#)hES zGKqG;!*7)o9ID#CXoG5s+raQDk5U1EHUN&e{#xWNm>U^_>Z=%U%(MbpAb`g3frfjB zXG?*GA`>WBTvv6K3MzsViW~g_-WPD~9GwuN_Nd4Dq=1`NtlVV;vg|ejT`o$r6SB%% zgR{z4;sNPG@PJUU$}0zt&9ViJDP)5w^%;T2beL|$79~87s{qJ&jM#Egm+2-Hsm#&U zqF|lYqM$<**fIkSZ~$Z2v|_+;Hm%191P!R~0A^gk)^kxp6A5VNb6TNDMx0DbB)vPyxA=4O@Oa042^0gmXMtF;qY7+Ky}P_Wvg z{Q1l>b?s0Octr*V0}KSK+o+_;0eGS7?20cSA!DlnzFJxehE*w#I6z;pdWZ8?ZGD&+6wI#2S=!Tkwk%Pj3bfpD3TpW1f;zzuSK)VVx z-jzJ61$*WuNVjt#8r}=JJC;6PEf=*}Wr7ZvXv&LAjNW2@utg85Xuw)qRo2vS1sDYwq=}-wJ zn$QjKsdcF2#uP;|M)4*hR`Es>5V$ztGazqUK(`%2Rngi9;CBI0CMX3-Ml0UX5SN1H zhDut*YD%;+{vN(GP}KaQs;Dds5Wax3VFSglL1mO>7E4`q5MAPxp#V>dF;&8b2(6VQ zTnEC*bp)_K=&6$5h`IFu_Sf||%Ozm`7yCmjf5ZOzvnnvBN~i!`Go= zED-&+&nqHqbyQR$5OemZVPKjPQ*G=jgg`z>{IB z4F8fBkeQ*po9nk0)TKLPTqoN<(s65)yM$g9ZEi9olxOJsb+`R*xUyLGZ@5xv`kM<< zJRk6asF5Yf(2MOjGiMW8M{C)=7B~|zZGDi=1pV45zM?%{V_*r=Qzb7 zKP`#?%~-%AGUM7JBBSOT)ekfc4~Ue(<6o-ZUxMun12~Prs0mR0VG?Zd_%ji=K!;g@ zZNnC6ge8ALDM0lbOJm}=+dVDC2@PbfQr!LoO4n%iNhtC%wil?)2T8C|0^Lvo1U{vs z9B7e}an0l%qvwIc;=g{{eLK4LA2d*_HiUv+lvqPXmgAIqy|C0HUX&P`O9#BLRw7<1 ztOYHgpDZmt1A+_)1|Zmfw+evno9(+rYkffSpl?@9Ab?W@w<|@FFRTiBoe`kFhob>s z!&MuBoF|PrfHQ@DFDz)l(D9^E7WK*UgdQ-&cW5PudST@}xnsS_{d~K!NO0mT55!~e zEFBhq7m)EOuFdOqrk%1wuBz~}+^)y~4b19w!YM9V^E2G899C_lb$hX~=p+n_1-)36 zW0Us)VDRnJnTR0jNn`aD&r1#nw720(2Knr!!(0 z(CP7N6y`zI>4cjD+*1Ipg#yFT?Su;eMmkWv5dn_|`Hz-$9YO+Nk}=@L1`zkah?oF{ z*6NLZ`E1t4DZstqH_Me8dm{mwCnlSY*p`Cr0>E%r3**75}7D`j5*p!Z90 zpF+?T>)ck`SmIWjq-uI&vpTzVZI7!n`)}kpQ^)j1ijXT-s?D}B_=B~rwo+-|{5=J< z14}3N-={sURPkZSgfu0N7pCHju3vum2wx|xRg0&yrU6*t*!za`Ra3D9s>P_(z1360NbSkuw68r)3L|u+x>k2 z>J6&5#x=L5>|IVv>sh9f@z{GKYXNjO5>g^wPqa;Woz_DwVodcWkUswg#hOFf8lrk8`P`CLbYBt9LmO}^qlx*W(aUv z{uc*U)}353?Ond&V0KgVI{CEYi;_o z4)%Zqh(%JftSNk#WLpsjCBB0sTJR^N^y8io$iND2c%O0T(=OwfqP~h-mt>i z>o=^BWvxs?l1*Jwl8wvku|aNTtOUS);byNhW^}pg>*dvfKhP|iUEs=)0OTt>lOVZW zlbGOpnd|`a8xyr%9V_2&Dpj$X1<=~l{icORAvS=mWdo2_wjn?Oa+YoU@0QALbqpH7 zU%?|=n*mV;uvykFTeik%fYAkbUrK=Wb^Lo6z;q=I0T>qGJQV}Qni4gg}jPYaA80K#dH?SU{pU3T2-@tlc zL|*`fHS9a|i8A1h2~e_F18XfX0C!3X0KSC)_6iLkt@HzHa)Y*wX8TR*j{T9s{_8nCJ!R$1}u^s{!S<3ybSFP-4^Q6Fb1~}scXfObl*Z{Q);J|Oai~t~e zl@J6}WdCveKXSbP98?|yaAe@J0N}S_zXQM+n;!!m0J^M*am~_YTUnktX1AJFZ(&xC zr6BpyQk;fmJ@#k6`WyiCauoqme6d1t*{b`6qNk|w3?pxS86!_C2ZC&*s4*VEdv6&* z<*dNA;o@s~sE7125r=)PonJe2Mx)c`qPd)Jjd%dl`~E3|a8Vr&<>YN%i*oWduLaOu z#;$cUmacWs$J-ULs>Tuk=w(Gb;eun6z55qGv39tn0@=|%cX65^c~OH_=zFQ+3GzE9 zX&Xv-xMFgtJV8?7WCRPrZsmL57HUXMhJQ=B2S$FdIPgJvcYY+1P3?9W&%ba%q++67 zDDr39{xlP7_SRr|!m<^r%+8TSP4#6D?UD+dNux!PhwO*iY`-AYF+QQ#Od`YF@4z~N ziRb1y#@jl;b92MOX<0 z7)qq^8UPKkwFJ-*X0*obY}`gYto9pcv6@=@9|!q(Sv>aUia|3D^z4OVo%j%oJKcH*A{NwjUtvB|koj!PZ*PZ;wb;YyTX zX-3cD4l)IITSR)=vd`ej@l{S^5Xz>`yR?)TH6l7Q3%}O+GuZ;#g0M~=DOEEBc>n$Q zzB%_lKEAi*{(XG^BsZG-jToz0fIhnlU5q3LK>RS1`EQR0pY=B17zq45fPt8)`G0|dNaz3< z2;%yjGK$Gnj_ihI*w9~!>~P+P|7UjZSFQid?p2aWTUtl9JhEc`&_4a`xE%Mi@=-bq z_p7JVNxH`?Tty`dBGUCbU54)!Q00xz52a`Y3>AyrJ!+Wk45>MUkawm4t|vA$s1dGw z(sq2-&Z5fbb3l=6sL6pv1=}g1Gcm4MM!Q7Ud!MUQxLO$;-FN+Ba13LMiyLs==SGX! z)LbVP@Pf-Y1G1VrDMs2ox^lF|XwIP~rGkgnqUz6iu<9Nl^-H&ixTN@@KeCBKUc2K2 znabTL0{QReWHYAhBklO}i2Zz&@OTFFP!wgAOb1f2BKigeYV*GiO#kWA)G*aX_$3Oe z{pvX2&q7~e!MoFOj)CYgMZU%Pn$x*MVo;LLPhe+Z=~ZJG?ZRr@XdOs%8YOJZtrr$1 z_L1C>N3{7hU3f#n_)GR4>{wc!&3DqN^f(Sm`|}=`M`z{aul8Fu>)LV6ygkyJY?O9j z0_|)t>r&+R9TJZ8*)ckK8-K$^Elk^gYx~I1Ec{n(ABvnwyO5!H{Rw|`_AXTzAj0XN z#Qj++fsQ>{-xLVUE||J_Ebjk7NAPbYeO|19)I8g6jUIxNNbz_d^?lz%QQ(361*q5~ z;BuQU))i$|6!7b*bC%1dFUBr)(I2O{xlLrKF+06~8qNHKI#ivedjJNzJPxWDYB{a% zA@7@gTg+Q1XdHw111o<+VY}y@(7OnjdOVAs@2j4QIj~I2zaFZ;HwRNp=c=J+H4uX( zgMV>>(pkc3?KQoU6`UBzdry?{uX$w1Y+nz2=R_4F=2a1)C=FZtNvmv*)9x^}ULk_rv-7yKm)vX7@0~SvRlll{5F@)!O5;USxf<+NS}M zw_YIVD`l|6{OXqfVN1M;SutPgU>?Z`TxtD%OTp_y)GJJ&?~m4fd&6E z_v^78Rc>7Hgj*kdLafJ5Fdh-gMUw+_#yMtjo5J3>h+l3(T2$3mm;_9c*IHSz+__|J z4f#{-Za4$2&SD4FKvSPlw#^IclLL>Exo9Iivh&KP1d=BcChp*ZPb~4LNmR}bf>yUF;Gb5vJsQ?1l*a1W zP?-CCYsv}gF(VQo;VE|d;zkp@AS(2`9ir>MW?Tl@=!F9HIrTtL%H0u}I{sTWndpmZ z{j$+XCSYRqTt}C2!r!mo7e)$z<|RM-<%Peu9m6n}P@}wc*NZl?C@}XsyTyxOpJ}yRoE}MCtwIP$c9OCr zhTkM{nA4wyR#^}ojf9x(wmXZ>Zjhj)vfSk$%`tIcs6MYP|I+*?j?9w*TzTa!-@QQh za7-ZuOysX82Z8)=zh!x7U!V?l$2V;r=$Rxxx=dW&(eNd{qSap!Sm|aq;NV(h1<;}0 zNGk|hb7X9L|JsLp?q1Z%o%XNY6WL3UvgPPv#}cwt9)F8*&9H4Rp-nxY4*`XC)D8$n zW=VWUr(}G4icW0smiog<;ED7D#8 z^o}`PbYC25*cfio@>BQ&kg$>ImE=^Nq8(0$$?%#g;Pn^*mB^%E=HoIOr~-}W*#E(PiXCK zk>GD=&2|Jnlv%Wa7TcG!)4qVA*5+BWi9&<-lbw4xBSMh-FGhrcMy0zHaY>8*1WpuG zZaz_!2kM(DtjxjUaK}A zuHiw`X+B=4w1XnlA`bck>&kv29!51d2|J;l=@WEPDtRH{2IOUY@`TL#r&f(9Qscbs zn{phKZX??w;reYE4uwWc))HvNVkcIR?10dk7b|FLf3e7XzvxiKC(C0=29uQEqvnEF z18xtS)w@Ahx#GaY<~dw4vaRkXJrSIqbB>UczN=lW3Is7$nxImB)11ZeK9j#eQ-JzJ zxLT+cxAJ{f$MbvIlZmY1oJC6}W@OBDM+iJnMIf|S>ydjGFsml9_r@V|2lsa zPR#Zr6Zb?aXQG)M`B7Vds;>*xRZWR;EpS)Om+;l1y&Sm{nsS9Y9Rk+`9o_@7wPSDe z%M55+Xm8TjvHG_!bEshLQb)V^K` zAQ^3dX!ZY^jJA6ZB%|@cTT-!g{Aa|f&<8{FpJX&Nb-I6&(UN2SGZ{@^c2oluzd<;% z@IR8#7#3+h`2F8VMkA6&v(^rVd-u3KGo8}I0vf#IZ5g)`6$CBv&k_-*bSP{{Z@PZ+ zV*uu_Eq~{)NfQ5>zn-rz$bk3}Ir3-znZKq8W=~Z7_o6aw%l}hR8D;!ggTFaxIgHj< z21H38IgxL_hZxJkjAv|??9SB5N97ZTkS%Yt=LdRoQKW1#Ax657mv2r7J#O>F4PlFw z$5cCX8V4wA{Z~a9BFcSU3K|EO4nXszhd;ld3j1W8^` z5({K1*N0i9G)V0O%5-?fjaKL1b9P(iNy+nVHvM;JrUwU^xBitm<=L#Y?Ig?7YbO81 zw$#5aYu{w?cwd}6RNG&^ur+nee-oH=?{t6~UoiLX_$ZZa^-jTJ^W^K}JQWh;475L< zJrV-sG_h#CB;@29(naoOMCkkNaMVC{1&_^M(xzgr<@E4TCdCh&5mlh>xq&s-V0KNF z05|V2fYFx(hFhJOND^(YiS^n*jaa-lV-yP<+D}RdcYnxa+tX_m`UhIlCz+614XjMY zf2b{J2~}D!LnoR(lzAjKxrRn(GKoFb-t5s3>ZNI&SaqBVhV}L%!(D0(r$ANnZq=qh zSdNRv>Pp?lZ~LGU(YMQA(jE}i>#gb@1iqHTyO0HfSOW?J`*Y_% zhS(N$va@?2_5F;x)3+s*sn1$mu=x_qf1fv-^%CP*oi2B9WVf`*?7?Fp_H8?owGY3x zvTX|Wi6AuXl~N*CaF3J~Y>%kk_(OdG>OD=WK~mE!yqx8F@7eB3#Dr_?QC*%&; zb6XvZF(R~(!;`3|p5JF#JcxS_`(DNHtgiw0B zhAin?v1S_*>-5L0LiZFJ&DoITIcJ+VI}Vk4?+}KU)BW>OttEC}9RXE@{`?mbVaDom zMTSIs3MdC>CkGSEmBqt*&kL(!xmMw&c+1BuRcO@mO4tBm%t{liNl}F{#!+MSX7-tx zci-hJ@%1!#3=L1Tb&*lOJ0*cB8aU(o6%30Lc=ATOLUa~r?V%`qb@$Hb3Q$w#s%F+` zcH44&O_hU`FaLT}h&6Ek#k=X|PlPz3+ipfeJ^NwN{YeTMfg312!Q#c0sWQJI;+V?Vds?X9` z-Cnu-HmAk6Q_bK5m}BtF&fo;R2je%h1zmyXtJ4c;%7^Z^_+Iao7_WnmrxpdLB*(iK zqGO-GNL6bf=&9tgg4-9I-;!nvj!n&&aQxsFV&5kh@W%{Z(l6&qlv*#bwY2lXeL{Wt zWZhqnZw~@@KqyEv|1 z`Vt!6vJ^MoWp0WYAI!aYvC9g7hGNzRkgrr;w89^%v#DhQMzTtzv#Q<#lP6Q6vof&rL`#zm&on8=Z{Jp zS@zBt(?$OAzU^r1G$l5@e{kms*iM2pmBA(>s4}l48v(2BIfFk3V{%WnKx~LLu`#G5 z{%}dWJn={AX01Gt8jnL~cLTOMA9MyPZK%m#W5`*)UqQ+2+jy0H7d!< zn{o3922xH_$^R@DH@wbILSMnC$i*Fg323B_7n`Y z*mX$Z8BPPbpHrsWD#^N3gHIUybx4e4>Rg55R6)_Egi4Y=@NucPlPAR7#%NQye03Em zNh9mqG7TVv7O9z6;IZI?53bD2&YzjcLOL)UsHvq zV}f*`UjHtinzC}?_h3tRK87z}DkAv;8btoA-AZieP*^3c!mzBXR){)|pdf<#Wf0Zo zGcL{G!&fu*&cLfyhVja2UIRLk-La}zajqX5JXW<8 zU!Khkcoxv+NjVvXl|$wYV5Sw2(vEH~It|Eu-;KYNdB@yE8eK$Vxa+Z9(2o1{hCD9e za~ui^(>8a{E*;(x(S52_Mdm^}h<5+TK@j~CW-=@Jd_jy6kayPKF!9Z%@>-=CadVj; z1J}9R{G6=g8Q1;Xe|~b~a1h;fHS%e&P~Tpax6Pf+0uMLvNIGuH0{g60>$SCNtYx00 z(26{wdLtQFs*Ce)tIdUI4^L56`?O`3 zMOK~x=Rc5EmGoUAtD3)V*hgE~VVi>@ufV(hsyJwEoE$ZYFV zW?k3pKKp&`3v*0Lvb`UA@Ks)v)2ioQ7zyHI<+kN_=g-P@VSebv%IUmZy#X8gg!gG) zG@E+qeOSG;-}N4ul-$HoI05-*u}1~1(4**ZHLSLLwu3@E(w$c4qYWq49JRZ~F53rs zG~E{%=J$bXXc;SL66&g3i5d_zS{8ZyWcWNd1i4lpx7D3uZ$EtSTExv1*g>N2NJ^@B z2CwAiy&e>kvZ0#Hv9tYhWJgdzlI-l5(H>wphZX71?AQ(S-6L*^-ro^5)^bmCleiv1 z_WZbq=<;1(vsdB{Q#vy%lSACi(+gq&*84B_q$65dp$nH=9nZ@N+8?&~B571g*OM?D z_LTQ1;?Lx4{5GgCxKxn}BlP;`9+#;*4DVht!nS8Tj>iR)J12thKNt{} zgHvGK1v~K*H47OmtDvq7+v1O3XF<*!XDHHZEoPps@jN}PNXXwu3nAukQQ&!bL;LBi zHnONB(Y{f@vbJ@H&t!ZE=o_uQ2~X{J)a3mW6k^;JGt%h~^n0aa+Ke@m__$Ncj$W43gY6Tsqg06Q_TiGy zK0OFdzDB(o>7atNx*-vFh~6H^pr1sC1828Rg|!C{Jv@_mY+&6!RO2bPx<0|k6iWii z(2t(8m&U^|n|srn?5jUN@kY%O?#gV0Xa8#I6r8s8aAPy;T#{WP{yOaPdJOQ>&}!%hcPb%4qsOc7 zCX7#T@!FB>mo>hxi@sqhrOjd183^Vz>QIbLo6WVZWE*609YybzM61 zP20BF>7EE3xlpEj;p_H%@%wGi<9k&7`PBDGmj*>(9!k*Y8y(yHgeG$zus^h*`Q(s* zSFNF?8R;C`L|uO-blOgJ4?D}9(J48}p8eW)+KpaPV`>7k%k4d(o}&)6NP?k$ zh}9zth~KZj_fIq~RqVoHr=J?rPB{9LX{NBsMLS*$)|{6~ZGo?FnhW7p1g}Q1q?_P^ z8R09>m(Rd3nJh7#{9`hCalSekKKdtiir=I$q;mrNl~+-zuT;r^$dxmW>IhYTo4#cx zhF4dbv#y8{Js>)%hAxa6+O1t&Ben-??>AHwPPn+4>%FNodXBI_5^<^-oy$?J zUJ5$!Q^c%4y8CKu<#Ki+Tj6kApYtCGw5SOcaK32|UKEIMTR+R3wazPj#*=JNVTiUz z>g)v1w8b3nvzFL`eeTb#gXF!ff$mH~dsblx%z8PYA~e+`qeNn&XOoi54)~e*JuI`I zgS;r~i3JOYKFTT{;>UJ&Z>pLLi2N-38gU&MJ}y@-20p;#=(1tWpa&ytBSmfrXLs&G zp(KXX+@$aTMaj?*j>x`-SZ`Wnm;=9oe|p&0TStM~0UxC6fJQ4@NM5Wo^7!O2_Xm0E zgeKT1inBF?*X57!{o^KrdlYx^xkot_A?@@K^_Re3Faj42i3Bi$1#MW5rY_J9bx-g2 zRYScm$-M}Zmr*_MjbH(P6j-vP$`DlZoCzGN3{f zZeg+f7ayF z-t*InMvZE9+WGKJ%|eb8Y~Teid(ew-^HY0;fgKBGu8mcZ9QtX`m z(y-TS?WX$=KfSw4MX$Z8&a(;5y#s8)Qk$yb98o-Fxx|LF<39^3@=_?ie4`=&-2@{l zRN%*`6qu~U$0aWGu9H#~I@?=78KjdzYAgX8rRVMtj8sYv}49$v@z7j$IJ)!D#pRFLH~DlcDntEd-# z>uYWQ5z~Z~v-$Z(xqsNH$MGUrZH8B9GLJjPuddoT5aZ2`ccc2(%frq~*}{Y?X!``Z zKWXy{pAiO_Hu*Hjp~cl$UpDxRpR#}I0;N)F`>@Ui6YB$8b1WWT53PLqK2dcNkuvIE zmj@XIWm=wgd0*hgWqx?FiH6&Lxw%(r@X|D&$bD7TGLXH)$f0SA@W?W`(r~4na*TT5N=v zcfoh`@>?j@udl0%uecpPU?@&Z9R4QpIlpZlYG}#Uv+bidnnk|ZbU|=z4=eKX!Yx|Pmc zCjt2@m`Rzyx1}goyG*aML0e7PGJvP8txS`XO+yq!P^iLIvbij@_q12pf<_eji9do4 zOA#Nf{{g)dTSNEZBvkwzZm}7}h)*~NeLgFlUnwTvQum+qJNte)2qlD~AEmq{HKP#x zR4}Oh=n*$pcPneHoXXj`fh;bGaH3iYBkwy+82Lo$sxS*S=52!BMY$l91%92^>BH47 z19vYgc<*j!MlEN9KM( z9~8{o#MU1r>=uyShSpDu*@0Y|6g2BhaPuX|-Q~07C-U+X7vvlitVslg?H6Pn3@UQT zJ&{TH!=b-VJ&P`xrq?eXUds^A&z97oQ6dF>m18zom!s?)xtM zqJi^Q&T9kqB;FnMwAYyCH{J{T`hO;F+*&$PGBTltTt6}7(p}Ah*-_KWEJWFW0!7U# zkAHNGO2gt0K%xAs^s{d>Hmx)l)83bVH(32kK?+{&{&nkh1VNGx;w3aPjO}upr)s%S z7TSKR1%mUEY(2oOYoPVlN(?`n>A)oO1u^;^9@(x^kPp1V;R$hyN6CA>}I`jr% zeEw5mt3}cU*0zc;smI;ctYRy!3$J;>gHDyMFD0L*#IbM5x0qIE5wcYmBp*ew{Ij?B z`oh_b-0RSL+clbhqy@|d33NJ>c?#b0n<&@|1ZC-sbsqRCZS~Eoa+`hNBgV#a8(k=y zpxuoT%=)2dOl1%5rgi#<{%W!K@ttyv8d@!cPorA-dhYC4WGgj_-DOBC|5Y|g{1#M!UBa~NPLVjKHMd!atrXI7k&#I4eMe$xE{q)=(LKQs2blWF(f zkmO;X-?N_`+FL*ULcocgKx4{p)xRTT=_>UR9$JH6U3k+5B@Sae#EWlExiV}DP1=tg ze!$>kQ>E?d>lp+q0$pXNj0a*f84KdKBuzq;C=VxlmI7nWPL{v{d)k#U0m(ExyZlvw zYS@Pa8;@}E63bd9y)(~NMX68gD3vx8>;_4GA7~t~AQ^AKugInT4**s`slR6*#!-6G zI*_1=@DPvsF$r06_pTf9!`_IaAYV{rJEc5g)Ks&jxFA?qp`*}`$c4dHOWsP};#~pi zgO1L4BRRnv$%GPglUy6@zasaRB|(%K1oAH$fus;M$YT;BeKb%i(Q1)8RT{~*c^a-s zk_=RKk|xBC{*SDxp9|OF=#p%kPOImRtOg~l8n1r65Ngeb?Y2uiLjo}xSxWpOcv^cYEn#Ha$~ zN8`z-;_@O-)v+Fi#n*VSf!qYrNDL&bj82$9b*5*w9MzZ4K1pq)qRY|kISx#SGb z4qo@TawUnQ-y-Pe!O*6sqX+$vtD|44HQ4r!(nLP706QhHUye+~HM>G}BX}3ii13lj z6=g1m=G;vIwp!FmF?mKrA`20gjcV9>oGB9gS<;tRVfeSKZ{yxdm^K?vm+{vbzdd8W zT7#KwfaQv_R0U8X>+oI>^G%qlAuu!>4FfAOMHl?KVR>W-gTtgDA!xBl(NI1GK9AUp zBfS2paC)LETL#iB%$3)ROIXJv;L_;U?M{5ULxD9kTVRYEi!~%|Nvtu#yYZ$3OF0WM zR>jqbydz0D#z2<7ED39VbRzS5H?O8NQc>I%8(X{Da`!GyJlVt>y5JF(EQsS!1UL#t zBj8d~HPn$VQ~-PO-W1rFG=n{+?v)$c#i`KLpCBETdM0VIk+%=jq3op(Ep@yuG*yH+ zp!od=Q>O+VDfE4Ul&YT4!fJ*!zyDtNH^upTC@M5P7HKLCmlLPP%ZXE5*aM_g!RlmP zg4JnQ*9N}Q5yxT*|DuIl(+*taZbuQ)b_oQfpD}P^;fTPNNEgJZJg~xh5!YIE4cRVj1?5e@|r4l6V}IuXtcty%HlDLoEhn_sYlq1|q07R{fc zFw%*ANh`W;S7}FWMpnZb@i@T_Nif3*gW4LD^dxl4{SZYNEhrh#)&m=HJ>_ISoJU(l zy@J{C8g94YcCVV-J+5~WFj8R`is`%6=&$6nP4erW?PiF^0e)bi)`#>kReAg%uld}UKXa%zFiq7HkGV8@6 z4ynxqKu?T>^L+IJl;$@;(P16~Kt=Nk!k5q8D))L`rWQ&6b6tuq>s3kmO1t%JUEKAD zbyf81dR2mVG?k#B2}S$q6H%|*VsI@#3jK3kGFFzrh^H%FDm(hpdaW)a~Nl9IDDX4dq~PA~ABC>)*`^C>q*s1S;` z0zGkCD)U8XU@k!<2;wsixe)s}?Y}P~7w7NAp*@HX`qq%m(R|5>1m@+@o3+CW~kvTb+of|SJYJ)@eJe|eq=>ve%CKt5pnx6G$> zlw|99J9(brvc_%xvm-Ur4_vY`KJOA0UZxv(yVZIw4N{iKwuB%aCrB8Hz~Fx&hl35hc16R%%CEbwD` z!B^D17nd_hGeZ`&it-aFJ>I>$5h~K8I)-Zea22Abce2PGTKYmzqL`Sa#raxV7zcv( z-_n^uIm!F5LwTHe5BKE+@p4ms4Y@Z#nH7GMC=CICQilQ}RO_V>d#Pkwy%(_;X47ijbD zU42Fiq2kqxyQPXpn2FeDTUG=$4cqq6Y{l4)F`4z4&$SW~(l(1dt$VMuJEBA&)vutk z6=gi-ZTWg-g-g?7ODZE$yxm=EU~mb?MuSyTY)*|FR~E|yl_9Tqi9-xUqgwTxcs_galoL;X(xzdPk?<=CD8lPL?@S(ncyEj1!oQpo zH~w4fqYdr0m2y7xTk?AgI5FAzeoKCDy4v-NzvF3F7aHIY9QXySAF4WF{U z_FJrz_)Icz{g!0S@C`ez`i%IHXOv3zDPg2ggeLT9zDEi}c4wdFmZVR}p6}BHlH>{Q zzCNaXq}Zw_Lf^<6N_u0^`MxEWD(MTQVtq;O;OTR0I->2;joBypF=-jH?fN7+Ci$)I zslJ{#mAn;eyRRjj&E0>&Ed7hj5=&(DNmYhbrMwVXpNbcesw~wCm|_Z_d(p~L8q+6O zMS3dhJ=5Yh0j!yNp{3nrP}D+El_^fx0%|Dj&Mk(xf(G8Z3Ekm5>#Mht&9%(r>a9sL zuSs0$3lQbf$!W+W8_J8LQIWeg$;4-wr|aWTX>!o|24qnNzsMPSj*+ul&tq9(0R{p5DOj~`Lpv|SKFP1qz0;DH?}OzDN8c%KnU*H{`)r3CwE(|UfNGs_SXBZnfGJ={Q%((-gkka zMwgAuo%ks**5qsIPq=&;^dnNqglJX*6rq%c`vLIXfYHkkj?>u`6L5zk=P{Og{OY;GbJfs9AlhAhOdBUqd#*$zaMYE=7o!?R;S&sr z_TUZXaKP*{#gewv87#&;d=m*?2GawN)B$6JIetRV(<;M-ll94(DF#^ZFlg5rTeS+yM^vUZyo!bY>iaL_96VlJ7IUZ_8fRI;?z=qL(Dt%CxF8{2uV z=Hs#C9QAybMknLzv7!a_Pd@*03QYgX5%KMhJ#K$!6+7=qrS>9aORx+T#CKAs#_;;BXeV^mj6%G2NXR@Oo z6-io8@B{N8Hy8>Cbd$B7z{xqu98}yofx|9P!hd4Vs0lD%v+8;3dQ31A|52otiSOU1 zOdsY-is1xp%Ov%E^#`g~{RF#y6dlj#`;Cs@B1Z;hGfIe>6=Qs{cjal=6SOCy@>)rS z6&l&Sv%7a+Gc6?@N}>Xw5ApaYP4O-YwEPQ>O&8X+=PMa^o~omNnr}_eTp@nXNpVio;bFfjWQt;`+7R!Csl#=L* zN0yt#bR`z7sT$l(Xo*@nVrjAc0YxE9FzTGrz``F<>=lSAR)%xgB%=- z*pr~*o@6XSX3PD76(kjjpgxHwcr94mFh7y6^c)z6-2W+L&_t6JB*!FwSE|h7e?k$6 z$VMlD&h9gM%aXA0CjX;GSt1L8$##_Q3;j(@ZYD6#CY0jSiHPwQ{3!ektGYFafzLh* z9ZVl~(DIZtPc$=>wgxtoL(@jz-e4Lj;Qyv5*kk`rXUNt>*$F)U5ITsXGf6apXEJhl z;gj;8@-SmuTaWA^YCRJ}n7GOkfOle;akmmSTBZ6P&*YWJx#GK)ikBMYQd4GiFUV@{ zCcdPtK%RU_sye<(WZ`!XwCe?08IXAVM<*UX%hLlWrdtekd3kAB5o*Rgec-GU@-$3f zaz~ERjnp{}&Yej-K6hA6v}K$ZNlV1qHddL`4=4@7mJ5>*jy~2Zj=BR=7~jia*2CB# zO1@wm0Z-~|IyBjsr$OMlRGSTTp5kwEuvqljA{)m_{vQRU%a>2Bq)7Ts2tlgHtf%hp zVZ-poTQB)k^kai*Ag&YI6LK%w^INb*NdcHO5YEWgeMLe7uCMi&uS^EG^>25-`*U>p z+>0~#_WR52hnKrM9(;W=4o;`x$fGsf+2VPu_gUw7Za5_o9UCA<24L}IAgoeW0nI$< zH^6@N6ovwwVNnCXY!=905XK@w$Ci+=6>PhZ_-@~a#R0{;z@NAp`CN)_zi5XeO*l!0 z+Vi-yte)$C*1%0dB0=Mg2soq2Dd{VxExlNg^pRW=YRt~YsBa^ny|7 zg2;-d04Edy@Q8vzo_>5u{mfJks8*26CX$i)7~Dq&7kNJPAfX$VJh_Kr6=ukE(v!(- zJaUk^hMA(o#Q6kM=d@s!TaFuL4$SKrA|S}#k>k$dPYECiTg^$K6f{c}Dc(I;b^-3P z7vU%5mYIg7kGTeM$M;+C;u+1c$um-Vjxsf5gPsq2cE)A z5uKS@O0q-5bSKbbt664yrl{sc5{a>L`U&oNyi?!NCgiHbu>mZ6jsQ-5ov|I z!kOuBd>=AO?YHnji+GdaHwu&n@#w?kGZGj2O(M$X`x!KcxXE9#2^#L1V2)pC{yOy) z-*W{6YrZ4W5rBJUQW9I(*6ZW`8wIB6Wh)5-ekXp z^UhM>y4qs!y6k667E?eq*&$ALKy1*sk~T1xBwJw{WQ7H)sQe@T=Ic1f^S>(ORa9jO zFG|T3p$W{Dlg^f(_AQg?Gu+sU^M`%0-g-RT$Z(b5f5Iqx+Ghz*eRDUF{OW&2Spyf9NTd$@3m$(hB0T|j zNa@y8Lh|yx)*S?z4mt;S?@oD;#%=sg8DVCl`|jKBD#^(XpZQ2yicF*>sj656TY!Gp!B?Kp~aBfE9vYT@f7wBni*QH0iX{mTD0- zuRGiy90=jb*NzuUAx+4jN*c>JPCWx*VNBcFYx>jE2=lEkh`2?~j8ET^V2X@7rwi6(EV@XR)Egv4}LQh_{I6@-GtuU%6 z0>voFnAnl+SKwIui0s3FA~y7=1hpPLgPEAlhHc2$u-K9r@W{cHsYlzP>XUYJY}<2jqx|nJDaki_~)F(L$es z@kgje!)fGB)!IT<8|oAM5NZPfZ=*vl9LY-CZCYyq899O6i=fyh@T5A|l?@U!?kR`} zb%>AeC_)J$ln{g@HbkHCZ;Fg&MlVu-=m%RZtnv=3wS3fRbdP+Kq@$97=y(6CRnAu& zA8@+vqSAGTM^4phn~Jj)792Krr+i?klP>0M8{#~D-);Gi<-=tREF=nEl-9VG}s)^w3)Z?sWaGjaeTc4u3!j9XvP<+38_#5 zVT)|IlRln{(=m2?>)-G8-?^^4-yOW`Y`)9heeQh!?g;*Uw)t+h)7g1M{(THTo<92F zhj+7QoeqG_et^%xPv}qEYj=OcfbcG{-GA#~m;d%muy6OhcQCeo z>&|uyT?fjx8LVw&pxqO?$G8iFw(LvxAC2!NHlItD2p-vs&c-5>p|8L{^H7qc4>MdZ z1Ab+0bNj&8_Y`)_Kk{^PAUp6U*#VsLQw-I04)e|^tiQSAalYZ4@eNb~)#?H@9B|^{ zOGV~^bfQLjLc*n;qOrF3Aqj(z^w8xQo#3Q94UL$9wz|b4wkG09Oy9Sge@+h1(?$838anoDSLGyrG$LtHy7!I?wzMeVdS=tlN!( zKgYoE7dg1R39T1+1vVkT8Lky*8Si)|_L}rUAflm4zKkBOnX~vabq;L+# zUF8iok9;TWEBhCiPX^D{F8j94W-1&c_wOG7i>P}#G4*ZkAHj^})^+hbh8jRm;94_eKO+_3h^m5P#Cct(k zeKIntUNkwsV3If9X{Oa+C>mxu!VC#9AaIV89 zyWyVoKeW-`k)YF~`2N~Iqw4hHVezX@{x@h61+Jt2(5B{IhRTQb5gUxC@^%-^%R^R^&6hzn#a&A-^n<5o*9{qyFub|PCR!+V%ec0E%{q&LHp5U+AmwF9xsF)`#%`j~7T`>n!2wY&nn2B*I_YO>XV!^Ga> zSM8lUc$aOyOPqJ!yY{=myU&k1?`GQ%f8RlQh=?Ze=P?nEeoy}W1Nrv{{C5xj-31^J zlb)gY!kRcE(hH94us_s#lAVZt;OKk4GFHStf=tEPY5NTsQg?^}XoaCx0d6NVICx)# zpUB-XIOWVa)(TS-=gGyUwgUV z8o&s`xBIOFAfSVL{MWq$>0p%bL1bFidL#Ii4Pa}F4vp}Na+NLkU)&V`?Wnu*-4=Pa z-SUd#$Q9WZr8!@@#JZ~H@`mr6c5#QT0S4$(2@~`YS-ndp+Fnu#@si56mrOjp6jH*a zkR~swKz&J=-Aj7H3;X&d5$-%380=E-&fT8c(ZRiUg9G>7KI&#}``mgSV0&-?-EeKb z#I3>qYu$Hw)J|`6+rw=E$Eh-{g8}Rf>?tCGl|eh{yEjn1hi~3hRF0cVsi}>l`MW>; zu4OKy-~H}SfBGFfCc98;oxJY-S08_X+JDz3e*hm3Xb#d@EVR?9-`_^hox zBdwFgt3HN$d)~hL?%(%4`n9y5J?tjq$)JW`foize?0xu0>rJoMyX^G{Qth^eSMSc{ zz5RCwm-p`ATX@5&Lm+aQvbb?Vc!9^o*8ig#P9Qn*Mj%KLz`pIr1N?K)4HXUvH&#FK zwf&Wo4fdB%m1~8DA2lWyAB95}zZ^FT`>JzO=nnwsyxTI4xfT;}%gkjHjG)=qS!$nz z7?YlR%#(wY-bj+&32^O`KSsR?P~5bi4JHS^#W6M!W0(&%luxVF6+h$l$shS|GqPQCk+`=|knwID0pv6SRc=#z@YL#HqOda(&M z6d=J9FH5;TImfjEuk|fziQ#l;kApOO&eiHY)HC&i?>4vhGoeHc?jt4Q&Uj>dkvI6f zt3K~Z?{4nT?#F`V9b#f#>SxHVDj6Qj1;J496ZUd9?PEw>qfC|3i8_(mR8Rbkrhwwj zX}-YFEHwJJko=kF@?}x}q|+n}M%SzR!T99)0b1H&nQP+L*=hfRa>m`iggLt=`S-9t zXx$OFl-u972P|T*FXHtcw0r~+7gB3MSAuZ1c>z!who}ARVz}rHEn2FqO@0Fz-YDkR z|0S11{u#;}xp(hARqpN$qhvTk(*fEsRj>Jf@*AU?ibHyX+TFnBcz6rX8N969^5jJz zd5;ydW;>w=bs+}m5+I;*ag~SU3vY6T*U1%5NA+KIcGOq70ko*f+-|<>NqgLmV5aUJ z07ps{)mhdou0;~j$5~;RGOEGgmw?$H(df6XxQ`xN@1vKFe~pS6)-;Tx8b7XZ--F-v z=YbJ2Jqr9^Lzi02G9SrjH}n@f94S9A@)K( z$IDPo=82F1v3Jma;i^CVO!-0XR>OkfLHGWS%tOrcQTR-k%i>Jjz3ZMw;dta&@09){ zoIB=nB$0*I?)y`Q-H*g5vs(WZ>QObtXoqyPdF~8t(9uOs8*-kgf-QGc6hveeCL(5K zM5aQ7VMzNE9x9BeH&ZQ?8M>bX_s?Sb(Ug*Yp-b%6r+X2_(^=M)(GoI$gu!-GA0q;H zFBnzoPI8}gZP0GFktQ+cFCHPRb>OS*bpxLnd*7%}dRGLts1Qzb9 zlZYwSpj&P1ijM&(Nwa*=`V}iBtltO=HIcjyk0X#&&dE*9OdEIQh9?q=qT>d)decJA z5h*1#b!@e}BJd>ZnAeLp`hC2T$GWBjOyDt-H^tQSV^N$08R9W4J^z2PYQKcOV34@E zL1J*-%Zrh1nnD$Mw3#20lmULo8r0jNVJSMju)J1s2iH=!c;w2&H(^_iB|~On=9T2E zIip#;G%PPK-~TZH5#juFGD|lZN}G2s?t@tR-TRV07{en22y6X#>K;`OMQ9Cfq{j+Y zE0ocYc}Udxm*=-#~V>mKV1nmZ>Ku9O!v+xIanEL|eB+I600q93~Y5Ab*8Z(NB;6arox(56=#tzj*uX&(B`N zp%lMHbd)W}9+4>K^ec%^5clyIV5cF^en>(@(cS^ffebxQqu08qF6v*fZgi)aOCs4~ z3>6IC4pf@m#iHtR@=eTal#syi-)GC6|$S;C5mqJBg5kWFtrbtw1iwKgLA_#M~ihy$_B1p(jR1iTT z&N%pyDuSf@5nXhq2ofnG2%$+Jf&~45i6AiR1rda5W2r;Df)-l?LM3a{`SK09FTN4o zY*+47tow+Nz0Skm?<(YNtjLrXN@lKZ>&Yz5Ca0VmAqq0QQ;hjdhS~U>@h9k6irPFf zb%Zy~$pY>Erj!XjF37IfQQZ;U z1ai5Jl=a|t{I~2H|LfT}Ov8*To;@Ke&_U*Ix-znS_d=5a7#yQHC_fN>l-%$4>Gj-{ zdC(*6g~KXdfRG}s%s5BS1fYQoeuoECLjATB871l`u+4|WH~FFXg4z?!=EUWD()MpW_H&;JnE!8HSwy^r%cF&}Fg}6RBcdbV{wFQ;@6C zhHgxNp=G(0o9e<{KT~gTO@S302>J27RnqC=ITGis_lj`ox72D|2f#ClN>~svw!h(Y ziboFV13P$F}22b6AKyr}U7Vo(?&5U{B3()$^t$L25e~ zn3_fvM1dyv9bN%>#(uzKIB$j@S@=Qxnlp^!9Q|mUv$XOoRinP2kkeG*=c&5vZTrm> z2v`z~UCxyz-C;&1+t;09*ip%Xdv*s=*8bOlpCEngUWlYgn^C$c5-4@`gZ1qRTB(3G zh(i@tDI-KQMnT}nAe2l=gQqEvN2wm8E)dC$&U#NobdWO6i5f=%y{@E_a*zXlAbzBl z`-FUW_D4$cOi5TdORsDymf)H2n=)={%ZXAF@kESS+j%t(gOsoy2s|2$h zt(ju%rF*goRBrlm`7r&#=GjiGOIS4Joro&DspRf#bz7eT;0_fyM#na1GNkFIMo!_} zK030LU@y>9JXF+AFzIaWU643p7O(acb`wiq{)VqNx&%p3Fu)0VifaqwyW`&z;1TiM z_YV(excM<;&qb~%;Ln8up6pX)EBix#D*feYJRQyvOben_N=`|7NSPQ0dH;obN<^oj zWqVsfmxf&uyp+cVJ(n>-cTg4W^-@Mjp0b7D4*eu+|1&rp`w8O#JU`XBgFe^OPNf11 z`4Txas@^K%dm<7V0B@gAG+uU6T6V(APGs3G37*Ue-l#ic%IUOwlrtG~imsf02b#pB zZjvpDafcfW<$zZmw8^|GPOURU~RKrAPM4arrJ$`HxtP)QWekX8f@BFF0d?!#|3G<9L#0(GaGAoP4r zBU*;j7&1;{IG59iTzA@^GEM`iP0?^j_wO-ML20K$I;UEs@Hd~Sm+XkVD5rpDIt8q+ zOrmlDkhWtaZ7iLQTp|-~b)#Em*X5*6?VC!IkU3Muh>6E_ z4}7Ir*0F+VF9ODo!!qJI?7!CLk!xxT1Y2=2;xYGmIOmLiWAWrk01?xCOM;e38yyjm zFfg1MMx8t)k<=56q>iE2ll(pA(Trrs^N2X%ha{9|q{daJVLs6vtJR{xqVC>JCB_r! zswUjC-nHMg_le6Hiw%k)?{YpmtpVQX2?m{mePHc?y=%8fFQ-7)-qTp~7sLF{MUcPm zM&i7uM@qaO_oMEV#(;#qz+=;U{xnBlC_h#shRdKO&+yI`o65KtG&|1S3Ay+pPR3dP zap(?3`KRs_-FRl6PnRaK%FloSfD>D;m08&`DbUHP<+T8r#BL&EfVZAmV?2yXBZtkA z!|?kD)Io0V{eIi?f6ed?r28TB{5!<(^5D@U&p)J3@4(Z~_;h!7cMpJH(Z`?R@u$Y0 zWg&l-H>%grr>v$%NDunMpFM__+{c7gy1!ymE^^jn>yR^!=(5OPs&d5d)NvPu0m6j; z9Albp%&mqmXK{pX(XYefXP>7ua_1q`3vJ+>voG*JqsoLdvec+FCgX;ZtJ&@j^B%2h z-K{My<)CVGOUbxJ@+@yr!H75(z9%;?6bS9WN{WViK_*mPIZGVosJXoabz=z#l0l0h zhwU=qtUXDNw?;{Dlx=n%F}zv_e%&GuWRVL(t7Bh5p_>5J9=aZhOM!<)FdDJ(#OTbv zImAK%mMgM(!GDBK&ftLF8fTr{K+h1=bz)>2DjA?>PQrqSF~cE$BaN7@khO&dOseM+ zG>GC&LAq&3usS7%$kvv6qhPD$9pp6ej-~{9x!{fv{5|$YtLa&$rtfLteq`zcHVZvA zMtwe^C~g;^?&Dn61U(0VvIr^y6pwVLFBTc>y;{*3MsE)yF`c3|k|4&fgw-*vQ$WL) z6rlN{b6hl!>E+Mo4N0%>|N1uTlZ+W^BxUBJz+xQtSgJOfT`&}ZTov`cmj zYSl(tBoP+2g#{7ekcbBc^mBz2SJIf*RuIFMOGf6x;nwI@^0Yoo)F0KiBY?VNhm3Wz~9UXB_eO3;DFc zJR?Uyb6tAKIT!pk8jZ`O9CNRnefF?RHtQ=_Hpm6> zJMzRYROdqxBt;x!4eO)X_$b2I_Y!m1y6`X1x~VIAOAl8Hf|xku=yzO(E78&rG#Qdw z8}$9WCI&4+!CD8)HbbhTYI!z-@Qtt^FywqZ*;9r|m(7~?lyVwkV0?kUm;(He)+F{Y z1#+-t5(8ri;dH6IN{>_rbNfx+`=%sy!)LTd!QyKj9){^plhF)4DWQMVB^-tlmJ-&$ z0Na$}$#j^28A}B84O5#Tc8Bzu!QnQ%PQw4pq9k-%?Je?dlfDBPjFo^RZ}{<$Um80E zQK?XnfQWl#n+PJylXHP3rZfwZcT6~wC4?{QVH})B@o@o9;pw-t@g=eWFj{fdhMh#!pn=InGuatVR& zFFUm`?rF7cZP5yMZ58e=SYa;LW!1VeA1QONaBtQ!{?U=+a?V$=F_ z@#F-uYcuB1n2o6x46`-LYGRxEKF|tbqhgp?1!lCN4m~wUPH|iK!_kEi@eZn5ThG#HbY+@CR$ru-Qaa%lkL7o(f z(lxg}{%<|p-lF{9gS|)FCjYm+x4ql&e>cVdQHPxGVL9L)DRP0@d%_F4T5={}A*5Pj z;yb6l^AY~r;hPO!E^A5^O3G>!~>n1;E7BZsoau&${e3Sbi>Noe!zM+ zNHIhS#j}<}RHg7_-`O~AORfO88GJ0#a$*VcKur_nN$SLqxp0)^bcCHiE;s8+kyc@6 zPX`|l2>Zo$EBV*XxJ+<(e9{W;X=Jum9Kp%pW;o(i=E z_uzps;V*$9WeRxidZWC|CKWF!`V|1^*^U=_j7LAe{+sdy^s z@ScByV{AH(j!&{J@)lXad1F}|Br>LRHiDz>1cr%ayvhF1dEdm!^(J*tr30}rdc0XS zkQ^s9W6XVl#r>q<5Z-8 ztKd?stu7u#GQA2O#oFdkgUNWbi4M6MIpCC;orEy!CXM;#mhgWn|4#|q`o(~1{(o<8 zyTJeNJbKjVe;fY4;r|={|0?+ZGFpDNqm%JcxZQei;yk_;>x>g^yZpGnnhANLu_KXUC%a&ZUQG#l?RH52U zC1+u>2|PiB?9oz%7HVn{*qRk*!EtRsqsssJGCvmi?`&tyB4DNbxBYN?XV;Yfc6WCg z`R@kgzcuOA-@@+rWk=Ca!vpR28@eei&uou4aj1A_yrT5$4JBU{@AOyPx?FgsJ$k8F z>urziPr13g^qv0dF`U0Y;PGpJtUdjSu>!V-wr3Vp)Hk*l<Z{@lJd7H_FLr&+s0s z_TU-gCAp@pIC{?ncWQsEJ$)kC<>w>g4dK*{XPn#DA2Sid_R#iBhR~~gtG#4$ZEAa{ zJu_92Mq{(Js@Tl1o~&izc!{n4OQS7^H_z$E;6JmjHEJt`mhPQTfk4zztq4`q2G(+s34)71UjDN z%qSwsls$)zJEj=95VRK!o$Gu1&;J2sawy_hgHmluE|7N(OJ#M zS2_F_##O;UG7(l3(^4GMg^)~F!7^3ROietIbvi^foDEe)M^_J93nR7^;tE!F22bq< zss>H$sk(4J(v+QC7)RP9VMbLf4X=F($#yA7P^qy`aqPFWgTE@&)V2CQEO?`88VvWR*H05 ziFLXt+Ucrzrv~EI;kKi^0In-wDbTYZRyLT64C4wTsEnO9Y(!;$h$?#%KUMiZA45gQ zurP`$4pLcR$1*KPGhGPJbR|Sn6;pjcxq8OF@e3A@8YmkIpT*HOQ8IK$73imP@J|=- zK)QMl(n1$Xrl1V@g|J=;UjFbj#+gs^ohlpH-@TUpkOlyan5jJza&gIH zqJA*mamA4Sn5o~a4=uGYt-k(Hv5lnq8_j-Zz9Qy8^C7oi8qcZq)%sAFwDq^&2PT?T zx11+2OkVbOf?%(n8x)?swRkJ=7qu=u>TN7zN#$6W_^N#KI*udDU|pFbO;EH{(aR&X z(8O6@+)0JB*~YS0@0?;;sMqG5vb;Zs#CpvR9cyx#&}hZ&^qG(}?shv(m}L5jy(ZRY z>NifFb(;9o_1e?r!Fe?X_4QbDjf4Nn&AH1PMJ1-|wTiCI?x?U^S7CTuzctU~9k0op zw~{GL!Fm0*uvKkLf^lD~k%^lfl*?141`+LQRy~A^qR8@=5e>z*rRu9SQWd1GE4EUt z+rm?jD6hlBv$T0cV7pHH$ns_gDzmR{hiFvlU#$L*QqfHss%DK^z-s;f!_H12{`Z5O z-G`0-uZjQN#Q$#Me_v(%Z#dVU7BitMN=}iqsPM*?<3f3@#4A>w@)Q!{1y`BM9E}=; z2y;wwA+IOyGYz$v>S)t;Y{}Y5%SOU>Ev&O%lOB=C2;xmzzHmsMCP%Fj7HOaMQ4iFO zkTlPG4}&=a6FfN!oqH^y@I6d_JPt5R(wG_nfM#G3tqwL?1MMMxE(%ZZBT}VTq?1=s z$29NOib!%P2eV7j{@znd-8(22%Ke2=TvxLC36w+&t6Jy5oivIW1ceN@O^V_m8Dyt<=KbKH~%xQ~vN#S6fp)RFx5@3XVj9vH?Xv`IQAEf0RJ17|EJ+_lf>#?uM1GM{J*nf z@&DO-)cF53@n4(xuj`Nh3gSik6tb!t}5)L2E@Lv=39 z;Jc0e;HJ+1Fg?Ag{GYp>Jxl)2=KQ~wPowc~H2zrQ!T0|9aPGxi8$2)M#erBJ0l6_J$@=WO)AbSNyYhPWY^Rd^A%*$)K~EB z%9>f&n6}iI#*Vs*6qpVF$N0aS$^Y4Txbw)8|FiM`xR#GNx-7X6`RQe54OCA&rtLS5 z#zY=(--JAD9bOo-KBqdXidU)aUEv;CEugBZDqh)(iF`u#xBNzw{VlnYWPhbzKAI0Vt7hyR7cZN^YmCbY=Q&wf!NRf?pxGMd~_h++VR zEh#thI^09Cw$xT#T3w$FJ*663VM__MWov_aGcxc47E=?Nkk#nhQq+Gsg^0wSuX=WNH>I#31Lj*s{;$^Ejgm2ZM)W z6)dAoUcxF}I6U$Pz{-p`c{vAl;pkzgv0x#~PClQ_GV4i;6{S@*rIxB_U=vvn&lQx< zW7qT=QnQM*ybc>0N^x63O9{0_Yhzk7GUN-CQu8h4mCT`1Fx5(?B}Mf{^%yi*-pmb^ z&u1^qdeUM=X;n>jl(b6h#jWM^)=L`Jnq(fvP)uaq%1c>V4xUQ*)KWliKo2Q|1fix_>bE~{}15*I}QJT`}qG|JOAHoqpxEB-$?w&&d%=M zqoV%*LF4~*z5Cw`=ch@7G>D#hJln{HEneUpeL+B_BOZG&FEJn3MSfd6!^LENy_PvL zx+ZSxffpB$x0NuCiwWF?(2#W{ZV_gZR-!$sA?+$ctP;$!jub1U86!MqeVI`&T`lkF zqMI7MbFS=Gl)nmrK^GIi%sS?YO;Yxe(Mv0ZA4>#OR@m|;uc_p>iAcpztTkmMQ?Mz< zdtE@X(JH8vN0@ZMLeQGxMRVX+oc}iy|7CCcp(XyygGT>O4$35|2_fyV_5<37NQ+McFuXEdn7`&i|TD z;x>U%WkM!?%_+v9)Pg5L`g~+7wy{AAo`zW<#5@+GpdF3WI-*f|yETdf3Oux1Nf+FX zF9x`+gL_1ArD+XD3sg3$tO=TW8z!ge%OkWw!lJ1fC^|73xLQ{>x1w6r07}f0z*Ys@ z${)k?)K#iudkJ+v7rECShw*WC;(UkORMtGSRIBY!SlY!pdnO7Tm|K(R&1Q2jaT4TE(fhN@dg<=BK}4HEShwot&zRNbn}Tpg2&^m6i&hVRtuhB1!n zD>;rz+!(q!f!1559UqH1x3)|mhy|;#3{Xi*&lSv+1JeNiv`>Sni{E@8nx8$?R~Cjt zB-imB0;qK7Jvo%N?p#3O{5|x>^UOJ-mtp48Jqc=%z1%#{@lV6#f4%&_^#5G10-&1z z-+s9Ls3`wGZ1jI$8UJ6Gxv$HpFTrLDn)hZJ4x=Mx!I1X}Z;tm~E2Fwr7J5z0s*Rx{ z@tTWVlxJfVFrcpWTrIFs7GBSr$K0BjFqp+KDX_E_zWdf4uGaWJ*Q@{SZ0}n1zYYDr zPWumrux^;4-?;tvX7s+} zyCnjM+zT$;23B7eoc_g2o!RkKuFF?MX7!p0;gjV30t-{wC~fC*oCd_AYT8j%*+wzD zUd8NhRUO+XVfjdWMM~F&w5{vcvnp>5&FZb>|87YC_W)x(7xaIP{r`ITzgnzaEe@?p zxn}TOI%BXH-}R;G@aAzbEAmjcT~Bw@+PPXfx!<<^2QUAS8+vO_0Z>W*cXsw36#YMU zcANPBU#|TpO9G^iEXe*e645~V4hNyPO~?(Nx0B~&;f00Q&)I@}5{$XMaC@^W?{8KRqT{3)SDfxrLv-c&Zgveq;7Sw{oazj3?fat~Klz zB#WeV(8;9{M_g-4o%6}e83wUKNlIu8w?6Hbfz|=^A=cjwS~5f{9UmE!RU6!5F>)tU z6k@-siu@P`BhkzW`%zUuMu?$hWN?_uVssa>G86Wrs=(tU3CbN>qhn5KTpu6 zt(Um9ZG@xMA&8A=GB8L4dFTl3P&;&0;s*XCr&>*j87`JVV1tz>g@s`!O%C~ufT(;) z%t_SnAf!!PKtGq;FZO(%rp(p8EdN7vjbEQcU!fBJxKi5cJKkKuwN`_+Sy z`iT(DPGbT2yd32qkLhIP4=AP0DQRBMG4_w1k*57&S@0*jfs0@leG!Flo~ZD>m2%7S z)g)WLa=Kz6tf|qL!IpXoD%~wMWO>1R#GkBAB#G(qXiLyHV!H|*-x755nb35(WK$yQ z-MdiGJ^OpGQE{CEgP$eovcgA`ny6KP;O|Y%?h+iW0$=)VQMP(Syo|)9BEnRERFKE3 z7L2|~QA`fcV0X3=PY8HA{`ImaDeBwXK z$Z#w!WSML!X7ba)Q7Oo-)eVu0#OF_vpE_iqg(UW-U!_s^%xNo;W>WT3{(6~ROv|^n z66w}b;(g${Fqggk!Z4999ReSBcI%Fu=h`9hkmiV>)5JLD{XkLkXj9sbq6b0?Xjl z2G|3kr0WZ8QzAZ`ZTyU?EL%)KvVDypxyBUYPgn7UiV95i(7D{6T@TmH^^-#L!iHfX zI8}769i}wvir~G`S7ReqxW~bg4>T(2LfA_XlSUMgh*YdBKtU`a$?B6{5w_AOIB1?o zuT&_ZjOrb4=P1$pK!dz&oiIg$qa~U|c1DAz&{AayadOcj4}({2(kYajuOd@!ZPenF zk9F0Z?rDIzn73cmm1-$CZPnVXqVGOaH7oj!ldu=;+5G{UzI-#yBw2w)QNvx$>ry?# zeWb?0=0MNuSU*JLP;&)qzpMjs77bo@|CO?(6Yy)+sAq0Zx5*y8!nuH(i z2|lP6%bx=MIp>KefZ@zhxirEkJ^U*UW)bFV#;BM z=b)Yu1D*|*Mf8C;uE^V18nsJu(si&`wKws zZ6ySH2Z6e4zyS;#J_AZ=w?NjHe}GqGIk5GW59l2!gn<5-LqI?v8W7H?7vM@dG*`k4S&xx8?;CO-)HT=bgTCW(Fh{eykY@zFk zV5)o2z3zIw(|M|Uq{Z(ae6Q2{j??`*vUADN=6==fI&u&HRQLA#PP9wfk@2@^!NJ9Fi=8swYg&3b-^iw%{HB-J4Nr81 zJCCSy7Lqm%pVr`uU3YTc&nvG2#Wth#BDn!~o*0GUSL_RG96BK;pkPDF3Rw?V71I`+ zOHKh7SaUTbI`-fWf*6%jUGs)1@6+bRPr=#zNMrA;20O&4wiq8=;01wH;0!JSH+V=&P z*FL?zI`ZFiJJc_S`$W0LK4pI%DBI>7!Gs7CHkF;3+%l1FSgf7GXC3}+O7EX*+vE0L2`Co_s z$FC0Ee?ma-#)hlSWg<0XuZRX>u?H-@(;)w)1(&S(yX1eJI*Tl#jRC=YuYJk;AJ_l$ z)bIZtdu04y>i9npK&1u|;NhWjim0P}(nm2mjhy z=o6?@AU^X6WMT|C8q9f!z6Z1(fR)Kix!>7ufNh(`GJx(y2yC(N0IyreH)`rFbFhyR z31Q)DSLyWC8`_=Sq38xAANgX1LqzSMoMy`4?1_pi`Uw$4Y|I4Z^#(33ccxT+MXcZx zhy2(-#Z_|q%peds`#^55w}wy{h45~NxU;w7tS+lYO(Zqw+gr1!8wZl*vQKyvWUpNh zh&EG~ADM@yI_9`_t+c%q>uvz+0B8f{UANx0xBPm*3$tehFj;|^IJ-yZT>S@K7un*G zsk|vVM&o#a#r?dP{r&=(%Bd!=ys^|%Fo>m}R;9+_T&oqxtn zK;0fz&g|Qz>?WUAT+&E|d;Im`qwf|1*+{fJo#*$hy`f$Uk%3;^O+z1tuX`pFZ(9zB zfR`8Z5nx=l0xWd^j2UNAJg+s|?~SDc_})l4!W_f$V81aKkjq}&)N}o2)IeqzC2IvxS{W{U#EVlu+Lqk zV?K_ZHBiPmIs?^$!EMK&ZLrHffb%8q&|Tn8M8^+u=^6Es_Ys`{0{GsGj6PS;1@4pU z)odk(-*DyiPoVX%KZ{Vd6)bJT{rUk+h2#tZWr;x66zUjoMh?C3`tJ3s(`W{S9rpni zV~EZ5%I8N2zH$;35!TU8zpbS&G`$N?QQ|I#q=C@BqQf7*VN-hrg-Lq4u^C$`8s31) zhYt|cT_)zcOjg}y8sD4`y%nVnK9F(0`wTe4aJZ0i!t|!Y z+7HoX@4QN0FQ)1cCQ-saGceL>_<>pFltUbI3zVR#eKh%d_`W)A3+9E%{Bg|gR?DyW zh#|rK`;Ph#r+wMZiC%g$TQYJr<5Yd|Tk&1%YAVg3RLxFv#IINIZl4 zoi&_A>f-4ONKAzN#p|cg|2##=1ML8Z+N2$n(Sa6XJn)TydgPM_I@{MQt9!N)Yi<%s zBJq2^g>MhfXFp+zZ>9-S5P-KnrnqRPp0hHMa*2vYF4!yr}6*V@reZDaLXMv^{_ZYmtvB5@kDY^ z=J?Aiu2SEl%_@(CJ>i$MtiwXCBVNn?%pd4uZAG%ewNMw^uaGdY zib${ZP*&#lV)5A@!Qi$fJ223r{_Ikl-WZI)t3$^4IS4nB9gBHrxNca79JJg- zO#0#Tf&MAuuG;iST}+fTi`c^peL5r<`EL_hF%?Wcc|t&+$FsFbS5=aU{KqDJeOCoS zy%3_cekxLyA7r6(cvXy|KX1{R?QJ11K92AH@+hBGFMu zcQzkw5$h*1Fs|%M&<`ugO|93IRTqmolxb#6K=u9ga zEh`7QY{i679Mhfb*@eNyv!?3JU&ITwJXNzm@|jO&^qWaH*h}JJYvUrP5OSne1hgAJ z*NvXr4KtLIX-F6sbZBhNcvSQhr6W2~Odti@wDaE!Lx^bb+zHyml?YSLtCc zEX`!@O(gbBr7jz2+XMoZ?fwBEA4uMW=L^9@uN`2N0XH5Ev@{vT0CVs4@#Vq2OE_=Q zTG}EHI-Hfnu2e-m+FN{@ds3EuoTrjSd`p7r{bG!7ySCecK%E0G-~=&27f=G%{rAi9 z0jR4I2E0gw>2d+|Oz?lGA`^BRAF%#|*SdL0oP?JU5`*cGqV>{|0n< z;Ysqo;Q<4mS%A;fz)!L`vq+p;_oky83Z7QQ^LlvQ=Rp`FB*U0{DZRBuRg*g>xr$No zQL8&vu_C7(ZvKESTkHls+}Ik-zr)eN9g>?4OKeMZX-0->m3VWyQ>L}-h8PZoaqh&h zTtaFqe{G3ptUnEY|2o~&>qlT2be&r`mD+mN5>GSIWa_=!C?h2z{!qw_fhl$T(;Sg) z5efH#jwH^eh}Ej3Jgw)*C$&+&O>X9dNr)}#z7nYdo++XILDI{#S%!Vvp!6*)7TT{+ zATolDc^n&LmBRpObgZSa3o1Y#w6KEtTeV9Rp@TfplFo-i&*$M!Kb|2_!Lw(S@V<8%F(5oY_$$JN8qXQ_b7*oim7tBq~S-SgAzq4g>1`A5R)KN6T z9_GqL%$d9@qPf8eL+y+ex0M zt^ngKm~wr{+RFE<{Bpo&dKhGq2X0HoZZVIs68e49NHJU8w#P;f1&erkWj*D^0y4MlW;$YVQx0h%pDy%c{_=_)BT4p;8Sw-ozEsC{A6`Suyr2C;Dcms{Fx4KBw1{8KPwW zZ>gZ77xw~uZ@aHE+gH~Qq&Yp`Wghn~0KlJq8pu+b4d66iVbTo9hyk56pIF0zGeM@! zchtu72=sUZ@g7ERCi{yZJt(>}CkgTj(9p)m{n&nS)50QKl$({uBNwQjv#{B)E0v4i zOnjX#T=7V4XeYgthgJ{IzT!#S?7U>+;H>ITI$@3Ua%)0(%z<8R$dvUvQmubSd~feK zwfYUve-iQ5i2)W@E;wHS-wR-D0F;jPQeZZ;_$SV&4lGmTQaAPHg8w$wA6v0lnWh#M|p6M)lG?UhmO9&!CHn4rDZ*-r~diFBX*tf!3;Y6 zv%UCWM!NgnXxBFn&S-iAI*J@D@%{|j0PXxQH>til8+-AWY~kdiSoEo?d|6JIu^V4a zK522JQSPp>r8i=nP|zZJaH`j#GAa}2GUCFz$Y4_$Clqq;Y?60gGYl)QKN7{(2z(~u z2VL^DtB?z!pY1G)-*KNYv{SbC+4sR!?0V8Yuuh}P zPau(un0_)(8F=2BoIczIQaY!&L(cMA6!?eS#cX9->BX?*Z(6A><%y)uf4Ol}f}_fO z8>A@nlBDKbP-72Ht*UH*_Y|pttRof^qMq*$M>c@1jhQ^fK}N07C;Zb{tqxI~j#*qj z2R!z9pxi&v^oMXe298&ei>3*a)mjCWN^7b-mAaEMO7JA;cuZ-`*(~cjH#}*-yA$}b z;%H20M~{x0-hz!FJns6hF16>6uk06iX-_%$Ke}p?vvc|~k@hp&JVy(&Sh6b@g%gsA zTmMK_AFIvKJc~9DUc(d1ouGV%Du|ZOtE!;l)2|m#dXT$C=Q$y74Kj8vn&QWw$3@$t zx>BJuHsk_Wz`$ZPRQW#8*5>6E^#bH<3<8&92LQetLMcnUEWgo6O4ak`zD7pwP~Y#* z#>2P$FZSee7Ged3>}-Z&(+IQmWCFjNQdVB&4+9Eh5mMfEqKsDKxoObTbkcGs>R~d{;<^8Nqf63C=uOwQvr&tOtLhIG$)N4~>XKDGe z*P$y|nCLg`^B+3iRxXXnsg?v!bimWgQ+}(|A=j!1LnYh)N!e}Nd%0ee@!^v1b+zit zt&y=J)9cL-C~gLvh=lisHN}_AUxIS#~47%{6!MmT7JcQ5brJ&7s|WhUBwj(0k4%f6{3RBCPxpi0JM zL~HLrJk5^EG-WZUbhIdtTd-e@E7ZsoU6!vIfrq&+jm`E>g$Rk)EF4Yvg+kjz5X0|r za(ZB|`f7ge6P*W{k{&buR_$$56Rk({J;$i-b0Uw+S54%@W8}hFw57ca&=_4c!M<@x z#Ufl=Wl^XYS?rG8_fKD%_2+6f{yE;>K3tm<(%w$vO{2^`PW=xji6U)(Q!{$)g}v-M z*H%+N`gn)?2CruJ(|hBW9IQb_X@l>@mWxOwk$+A7%Ll7$6o`VxJYn`xCm!Y=Xy z1e4#^P!1xLZ=V{t80;<3BYb~&rdb{e@8NmnaHPb~-P4S+SmB}6AQMOJ(j{MM>=!r1 z296fvp?nTr+HLyAE%%VRN`v4jlvNSbmZMXi8bceK>1_pEzJE>{pFu7>kgZt2>$aWk zU2+GkZhY6g1J)hRMV8Ki32GMV!VuG=lyo$dYJ?IPxspT}+E8i6a@1KkCf)H^@jk;s zT*(pfAWHuVh(4&QN7HewQb!Q|nI>`0Lt6R=ufn$|#`{S9Xv$=QnZvUyZ@0yNYx~u6 z?j!AXm&H~>N%JXg2XQjD{;}B(+%&v8JIu|EUI`jgfQ{=AsYk8ONoxuRG5do+i z%@kc+6uw)+hma|*ThQ@l!B>x~rXO$e4sJ#Vj#}`YngkxXjnX++@vSYC>7K^4hzKN>k_SZwNn=Ch6sanl&+g z#+&7Ay8n8KazTOrU8blO;N9_^udNpKx|@&R8TReyq1S^W(EX`bX5h&LoqrgM`wplo z0>(ahiJ37>1R|^Z%QICWKnxp4W=D0)5AWxmOKhtLfZL7(ku2b`Xb=Jt`cH5H9}o@M zTA~L$NQ9UMfz1tPaBtlfP_}*S=nEanJ>=}modw|^;OI&muhn5^ycM1OHoy(^zLQMv z3{`K_+%c%m3(#R-jCOelQ>ojYb7_OCkU2L>T?{?6-=CbUng-S1|= zxe(Ji@E+}>QvfKWu|Xvcctu1{&0~#PwKuoZ<=C*m$n7?a+6e}Exx+{OW-4ez5VP{I z7QTXM=4xrZN@^(ms3W7Q9A>Z*MXn@-FJqQ1B-e)tjtq9?_d*G?Mr;{0v+_8^!_Kd> zM2V`wv$z6(~%mAf=EBW)rV;wYH`uRfxMU4tisT99^1MZR+hrBl@0uBm)SE@;8 zQrK^qdjB+qkx;4c8@sT@z=)2v3A$F|AgUkTS&w+}&Q{MY(sCjls!*M74!V>oeB~@J z^fyjIQmH*x-lTM!5k7F1_0Bv_x6_dKL|QNz%_Qq^7;W6x*MU=`;8HgYy=JkkDF^fE zQRSqOvc*4*6A7os2W;=jCN)Btf4vLh;%WUxSx*}E=5kw`ezJNF{CtnQxNG`OUS+5{xVhyxi1dW6^7Kz>}f7F z${GCwoXIz{bbU&Ft?0k)Zf?P&9p4T`ok@FrAz`X(IzN_ilaKz?*+|Yf-Hqc!xj@KGb{ z$~&u6f1@aMo+EQ(V>Xdf$nRsg1g@%7qrNDPr&bWQOh56_j^xt-W=}TpcV5pQZ`%mr zlwjz%`Yq)rnMw5JyzQ2oTs^%|WN6jmPaMoJS{aNk4mE~thWH*|cLlDfZoY@pir87l zqcP7b&7v`hhl@=-Uud3?iv7qBQC)Qe$6eB>qNFQrts6x(hcteCU9qL7v_2vqSq^B0 zQo-yG76`lzVJ#MNV&FKKyA-)>?*4FQ zDbf9Ru~AtGHj(Nqa3HQf-*hAYlTj+8$n~9*VANIpdll@>@|D^PSu>x?ZwYNHF+Z=1 zSvzQSdB;>Gt`#5$sy%m^2O*;Ep_3U_Vec{yXr;s1`cj?8LTEjbg&f%yQ&&CcT;XXDwz(|WD9 zMAY#*VVc~DuxEPK5Yi7${EizN{)f!o6L?8;{>F_Pg^|C4(rsTNB$Ss~&7a()Of5&ek9?!7eBpehFiJ$OC7bG0bgTmlXD8HV{jsiQ!8<6SX4le9fxdbM zXv;fQP4;vn9vf>r^@mPLxcsg3QmmJ-OFn_-$8Y9TF4EcFqY9CRyi-g9A83N6c|`qB zVEw9%^~BXwPs^_hLj19tWUusn#hJoj57KyW6qCJ1@I6R6fFtK~kyinMwMmG(4ynzx zD{h{j+4Xy}R9UYfyB9@7LuG$r)kUSvET=oCun*%$6c?^m)VW-5_DM!mmAzv&T<(?P6XSIed z$d+5Mu^Vll=dD&`CojLJPKD;nTXkl0_(ke){TDhBrm9IRfuT78a}X@=P$ZnBcM^|8 zUGtHR80y>Jg(W9a<5`8#upJ+>hK$F;OVl8$(%j_d(*c76zt%p!z|fY2ald5i<4pZc z7`DkRm`~c1iN8sGFXoElyU+G8F>(H8* zClOl{IOzw$KCy5*fw~B0SR;1V9Jy7d#}@?g6F{%~CY(?Ty9E|~Sx5$W5dab=TiWvsP@Bq zNoD`aEA7S8T#*-90?H+pHvb2(Gz!e6=fFZYTew+FKT+ClS=Dl^Q_fPVh>p_^!N^ZS zhtdXACQGx=yN&sF_db6XyL6-`0|+*fOYc6mX>?XU=cPG9m8St-4`a{3W2>iEHW*NS zuhAcRSAwv7yPp(yyQC?YLBY}c(OQ*xGEj3ssw87)Ih4^~1Qwy@8ouNr^x&Xmv`rzU zD~(?Ji^;>GSL;gcmUA!Eqze5goZ)O$J8a93*GZhQEZ^SwH5&Tgl0*xG z+o74QaXHspt|~HzMM@+RtjH5iXp_Q{ZdHpjzO&wSp4UFmun(*h6(;`#v>~p~plo0$ z39!k5`JM}DdN^iOHI|exfEVYue}EGpObG+ z9d(szMONj(@S@&AI%f$a`LrZk+H+x!&*NXb#thq=!aa zo|s`7Zcl5O0r(JSH;wX#K--kjuYl5#{n7uv8d5+rr5TkC@k?u<4QpZqz;zD_U= zP&P5ijH|z~Fn;Z1T3d57$!6m4*2w%2%(#jkwvQPxD- z6>N>p|MChvwWfc^xCq+clAU7NTe|XcWmB>YxUc6`6_yTxs{Mhs0g&Tm=ab22U`IGl z8a!nG?*4>)_W>?1_+Lz_-gH((QlK!}l@NN>|6SVS4{ z$`e=u()wUZ|APMMy-!r@1_Xe*0~!xOm{f>l89oW|B56aw^3SMX`9bu|Uv>W32|_F> z)pX_SB2#`K@lcbo3%<;+hI;PuQupN+Vf2_|WrQOZdd}*9ODb+VuRu3_=B$|NdKET@ zk;(DnuM+yrmM@kr)pqJDokwDrc$XCsLyN8S5`D{*3e)%jJJE3w40n-2&M{AA$;MBv z?C*)GbT%#i-vqe~YEnyT*&WqWN+sqig=(vcwd<3+Dq@Bk;r`7uNuzuQw>hFMV@)X0 z9yK?sgHsx?rHgY32*!hn^-zj*S#XWZ|6VunsPwbK7TVpGI_~)YqB3XmQG~_ZFJZ(W z+_usM|4{2|HSO}l+3^Z?d73)rnNcEfwTYw1HyLG_PZwLXeVmaITo^%^2^TS&w?D-( zSk&#ZJNv>%dFeg5bE+_fpVfMoKFm95Vn!jS>y?D8Kjk*=fUg@gR{UhGSCMMPmS?T^ z^}=G(`N^T8zfpHpThXqw(m3PmzU^1PicG~%FVG=1F8Af@=dK4g%eXSm?2vf>muC(F z^|9L_?XWp}`MTgbbDiCUwcJ3d>z0}NzhUaLI0XgOqeb!lt3B|=)Etb#QYu1lR)1SI zoA2<@8Vgonh`-{F5*FDZxKu`nA=?EF?azSSIh`Ku{ZOvXv7`lPY0DF~vEdJmUWzU>*9cyQBpgZkWu1t$Fxj9&T0+T4ar zZq5tARDRx>$@rgUnDOB=@!V`u28va@WZ@=W8Xq+g*td1}nD|3#4_)2RE?@2VV}gq% zhDs**Tt3x#X&uDP!h-Oqj|M^?W80jJ$c*sJ&~bdKq@}ZLuHaODadM-oB}22*k84Yi z(iF}`6lutPu#3~TqQ5UMq&quku!6~SEHjy*IxYw+u`4$;)MP&&GZ2tO+P6LXWp!yW zvA?8}LmqDuf6YL}?m?C1OPLY#qPCdsie@|DaxQVHiMo#4!Z+p!4&(F!zc<318Us3= zfp}_&g$?NP_Xy|P_#7}L~|T~|zm zwuVUbqEZwpLdSWrE__8M&^3&zI+DI`Cv@=6ON8x5>PP7MFCgIm3#f>R$IL9h{pFuY z^7+U{@9$J2#U)ZfUCBFT^!Y&JwvcJf<7PxaadD5hozf)YXAWs57{mj~+x+g*b`Gq# z9*Hb60xT44ONdv|2>p*^haII5A=Q6+Fa$Qn*k<+ihz$8Kugy=I^*a|!YE#-i=}4D z{X9Ly4;MX}?)6^>_boe%CSo?VbE|l6YJv~{SLlK-R1yk$i2{=s=OU?3@mwRI)F<== zzz{bh{m1p(<*_+ z_=yuU)bBuu)G!@^o1^?kbmwwn76s==Z{nCqF!;!LL^tUB&v%O@J0={9@)8EL@JB~} zF)G>ACDEXo@H{r@A&ApoJO@;QbjR$D%D{|4Gw}i@@D&yK-u#EiJIU`SZLAE%N7LxW`&_<{E>x(ycY}jlw`1_}hdq(t7Yhy)SfGJ0vG^5DHm+nTJjJ2@y#Dy$FR6c)idkvJl?sDiw`Yr|KcbJXqCkk|R97PP`QVQg)e8-; zZYD}yHzNiWqLfd*>yPUdz2u!(6(xScdb9hwl?TbrEcyn6;rG~2i}G+HO?nK2m@C=D zB`|s&;<^sXw8Ltr1ztDOYXjz<;%p z$?F#J3DDX7)(E-00o5Muaegnm-a?Kw!K-X{BOjm7WT*|JUBmBi-n2e9sVP0TjhN}+ z+*?`Tz$q{N#go0+!`YqlOe#!#zY&L=S6MoVI7EMtSElY<&t3)+czfME+d>zw(SG?3 za2`*oJA6;S-m>gYOS!YNegnDKlzn^u;7uI>UJ#HC>et0Ut|ws3278#shl1;7mKwXX zK(phhpakz>TfI~tVt5UKouNLuUhz0t{Rk0HMV*7rz;2=g8H1#LxCu!*B?L1|2gxPZ z4T9&PN{}1v@BBG(v>Bi)3EE$><8yC<`+lU6At&kWwR_Wm6@`)bO(!D0dzX&H$=?^^DA?hWg0U&&-V69{BEx zfrr`P?e2UpQR5p6pZ_E_z4)TXvXWlOOWG>iU@otmfCD;UAel8;MbfZ?a|4^p6 z3+ddXcDVj{^3*|XvmWJTxWPT0PLts?X)G+o>HG3h0)wL8oIojo>ZjmVTTeZ*q-)WI zDO|>WJ^)qrz!4wy8829o2}dbf0iE`VtHoHYl!|~mUw*am99lSl1~!kn!S(BGpt{s? z$`g~Q<9KKn_8!XHYXdbpRvKDkwbc~k-Hg1l{aHBf`4d+4+q2ZQVY0m$mQ&p|#h7Us ztvQly36`X6d|j<1Y__QPoNZcp#Xv^xY}U;%ld<%*)o|q?jIX<|Obo z^$f}xJmM6d104SK*)!;CuxM;_7}~3i-pbgsC8y0}*Bd6klh#%^CAeE#qbZ7ZNIyTj zSwVA)NhR6&;RsaEqD=`pbaa*cE}D$nJ?~*Wm^|(4=HbsZtkkOT=*rjF6L#l9TbVxB z&&p|Il2dDP?_?NIv@)9*xMTU*5Aw9vhTrRjofxH;&C3E<40>RAm4G$oSKt9X8<=_q zvbm3&|D?PC<=*OUP?P_hDVgS&q)EQ)f2!ugF!UfvSMZ>1()oA8pM#WcXig_)Hf8ml zn>#33SN6b>J6FUAb)zq_OcH8%u98 z)}I~)KiB@MY1TAO!Hcv=D|CvL_{<(f28OQJVNb>yKUVo}==4R?FZgTB+38EGREej& zB@vj9)Hdc@*IA09)xOT$%G+oprV=Z4nczz4gm@y~Ylm=X4G6(KEWH;2vwHhI!#*i_ z61LYNO@ad`_ zcvo0C5Xaw_YJ2eiRz!)gP`LuHT8@~lIw(KN$t4oT3pya56jK5P0g~`v;2xS1>2qRh@2SQ6n{EktFQL6N8)zy&!A`((G?7wul_& zbP*Q_#JJ!piW4VC^Xj1iym$&l(Z3XT&hrvtsd`+bDQG#fe+d;7i6}I_XD3!OF)2xF z(4f!E`3p`3H}$OzDUzgPFw&VDMpXU!b%o{+%RR~3j%X~2*)RWOd73527q>(wZINB@ zfx%Z>tdD%l(WP9x69R2yBT0Yfy&}<*RI7+9OlO9DmT13U3q8rfG zTw)s--Yi+?WBQ8hLR`wWiyD2sbEgBOq97z}y^{a45%YXY+nuYQGEk>6#t~nMdg&3u^cIPDImwKvT-6NO zr&YpflVHVg`9#9Rto3y9R1SDrjM5(_hpM?|e2p>i$gTQA41X2%kg@m`b$Ib5C#+fV zu0qI|jn+eXWbOvoBCSlfy?daMWVfX!oki&%n@Yll*l>~S@q=11(@1XNHpz@XNlLe{ z%449gBCflq8_oGiZ?Tuge|IB69$je1{I3+oN0q4g1yAMkgs+ zx6|*Rt?Yh|%IF76t<+6Mk!mOC^4P{SV+^P|OCHCCA-SkvLG~{MjVs81?o?z!Q+G4FZ3#uOP@7ReLl5ZNK{8QA=Nqlnd5Qoex&yND(L|2^Z zROIwkiTCV?>r{G$a2Y5bZDC7cOc;d|qS}VjsS1tY3Plz-(L=h(GUWCxK0yl6HzZ2! zCzU-;sWBG@yqP}F1=2>iwp6}P*zR9X*BCqm4nfzFkC`byHocvZi5ln0`ZadbRy^tBkH3TEW;Q@}qhi247mrzK+2B4;7CHI0|NCUt zAxrS%QbJNaU4iPH*~vjSr%^eiS6~)sd-NK60gR_kfJxx!KOjBp2>5}4LXc9y5Ha_4 zZr<%)lz2guiHq@@+nZuOc7TvnU^Yx#M0RZB(sadSAsB)zb)P>t*;(@5Kyzhk0` z^yDVvNEVyXW+0{SPqNp3rk0&g(R=(Y2H*G%JEm~9d44in-@O$-!&8eZ@&b9#f=&QF z-$Pg216d-N=TH52F`M(^H}gmQ#g819Hj#?=%CeR-9+{T?&#APQWjD-DUwZhbqXk4E zp%M2IA5WTblZe$KdK?UP zlQXT?ZTF+Axy3A-1Vk;~k5+}|#HO0T%l_)aTemD8) zO#T(Gf7lmvXP4Ur)u1sCf94&r5${?p_*ULg`WctNT5al$-X9e3yf1koU z+6oajV4WYYjv=d{f^%!kXv<)cn2J2cP9bcG`w(jznQ^&}_4by*njBsH`8CDK?* z@G;cH2ee7!pz^;}Wl+WWVi-w%yy(f$GHi)s#6x5B8fZ^wbmOiJ*AQXE;ou zL4sIisbKl*M%OzPDdu)@=oIABG}#}rExKp7R<9MAvyghzp16cE=Z0Qyt^GUfDrFZv!tvS-9 zE&SIa^gp)abtI|ip+TH^cKX%03sDEeHZxEz21Ylc!ZBeS9`~dmaDkecTSe2uu{Mcz z(PX9jp7Rf%^vB-y_qeLZ{I>VfK>q}QOMYRm)3p0}2lO2GMLwJV|7tAz|2obSe^T!r ze1w2?d^D@llnYidSX=We1zf@f-66exo{+irxy$?K_qg4(ZtA8${g=y&i_7Gj-pg}y zWnLNJ@ecfGkeWRpTegAjMhV?|>2+O@L?u9-5f;^@i3VXY9=$1glE_XE?YygC;-cRz zz@hLF8$}HfeAMk#LzC;vzFz{+Ak$;^$%0%fmVs?5d8V8aYXbOEQu!q(edr@KpNBb# zi&+ns*X(b3{W6O)~NUk=`oJ%H&2r= zeUA7KCkRqJHEh(ENKV1ZL^LEjZu(2a~?JN+LlTw9IR`U?|eZPqdS(*gl^Y6XT5Po)l; zd`^2QQljkPaJ9o39vT%P>no>YUznm`KJ}p>+iKD0 z%HL!ONlCQC+ez%yamOy3j`5qMN;={S{(hnAw!kW-3S;2JGCXLWFG9(}oWtLTWa*6fT-aR!Jj2G$}=rvwb!B{BN!ZNP>>-0;#bxi7e z`(8eT3aD&S+6)N7TylY+>BqHM_Z^b%_}U-=qP9^l4s&Tk@92}SE<@Uy3g<=fP&cJW zW3kYYUG4K=2KS?z|Hj!{1;-I=-I`(sOBPv-7K6nsi=1Ba6qpR>~wX#h(qqxWP-8#JEACjitRQ(U2l<4@`N#};j;91amrrf zYWivvoM#ihYiPV$LksD?CKK$~!c`d#Pt$4HAbTTw86<PW8>#V&AWA+5>BhJD(iy?LLQoJa%Pjj)gJ_dT$}MnLn3MO*Pd;#%44QZE!ih? z2UZN2kw#^d*sk=Txay8aAGKLD;F(l8ZL_5LE8X@p=-gb;P|0c}iLy>g>uB#|n2)3c z=(xJ*b@K_W7BNvKS2L8*PiHsL8I4FQf1()iWDy9|=1ZxjgIQh zG|An_Jo8t4F#fiCz^e)~j2rdNggvdvw;aHyTP+^KU!3N&9k%dk{k}-e$0VCyiG8+0 zD1M-u09#*^e{wr|2gzVfHhqO)-^wNe;lhplsxndHVv89ItLX)v2{5f;gFN$q9gDBbu z!?MHVoBA|kwzFR)h_$mBU3R-WcdC;gjlJT_0ecIzo((CjM|jp7^Y)Ndq%j9ZKcHJ@ zGxBA}f6zAyeMDbxKR#$kcv!2wQ3)vgJ4Fs_DQuRt+tfkeC;qdL2QKv6^r24Yqaf)I zWW{f@+3>|vT;7O~9X=Jg{c7006qqUr205R~5}pDsYjcJ`9j>EIXTMh`oG8}=Wo*vhi_n`nD z;AVTb%N%jB8U?(i-*1hq?X2$~w4fFInI7D!ig5=eOPJtZ%0dh(od;=D?nS?0p(?gR ztS{|4g_~aXeFOddU5VM2Wg(`x%B0pSx`)p?&j^;bx0N$A@Ot{w zy<4-&WMRLNd`+9mf`M~V!cgV$q(+C^b&G7?1~xgwsKFv=2dTY-XAO2oZ@XChTupH~ zgt3IEFN@SMS>G*ISyz)DLU$snH0h{t={XjHpQ=0ssBPo9`5wL-r?dwTqn~aKL=nqr*x|JQ-c& zWQCvyq6_48`{1kw4@-U*8I;=b(d8L;7KKOP%YeVv<<%o}HY8VMU>Ax=TI zuwLAgIwbFERLHtn%wAnB6nZT!Ap&LCcQcONtDNPg=T^%6Vo_G-lG&7OW5MoPfE(<%4^7 zkV+?WJF2I~g=S_491QlvcNfktqLYWtdGW1VJ=f%kS~z;v87z;N@qucOp|`UZX$$go z{&P2{hc-U0O>PU}2L9=gc#WA=nZq2bOG(QZ^1BVEb_ugi&M>1bRhhpCkZ zMBK(K(uD~enq4B~WvqCv@Y^dJ)+&_E6*VxYW>#t#ry6)zyXejOD}39sgDfc0&Ad#k zKaFn8)?2ePXi>q2memfY@LaQk%s;@bS{Qg!%L%9>$yZu5lJ0`LJ#qq@i>g_k?DA&p z-$m=soR~?p2ZHTtmWtu z&>o{CRD69hNo~WsLSh80YxlkL&Lf1xzH>B{;^yY7B`C_9NxC>&%lv4hJ5S@`R{)X zpDmAISc8*P%^_7ph|+*hjiv3gvT7wcWcu#(4bT}BNV}ObeQ#s@2AnRpj@=wNzE@EV z<-U3bRQifVP?uCbOs2Y*j@6Tz@wWEsO!xa zFxLAA<`|C>21b<3JGK$~p5kF|%wWVke+pu`39{Xw67M%msi!+TB#tGoJ!lC2yX8)| z9ucgc7mXH{^5W!_@RP%jc)gk#xO#o`(*|wjRQ)dW`>Y-NTz-C)`S=Orq?&#%$OURR zK*}rfP2p0Yc|t~Njw7~QRUMD@O*6fTuK4@ zG>GX!fY)0a#p~9EEzfIL*Ql*2{&%B* zY{SA375kt3{`rT>6^10vjrauGNKlJEw14|**(eqHIe@H3Ai6PLx44c|j{UrbW&m?> zASyv%`n;p0SAGoCV)n9S1VFy{EzNW_0IgF5E5IT(aCP7ONl-Nx0uQUe=_N3W?8mlt zyAib)TYy~x@FW5)ic1^^!0$VtCKr@qgA}E}pU_Vrx#9Mf8}ojrI@>h>+FEn@yyKq- zJ9@(1>yrSClMuzz0RQHL?KA-T1P<==&iz_YVH$gMWKHrWLZ4&IJ1QK{` zNdYCHD{HXeQ#HU9;W^J+?i{djRQ>Q@qT$MxAo0nS5(X?brwx>J zva^xrD%O$ENo%&_mBr%HpV1TWA2JP-7xIqUWyB1nQqBTUWn3Eh&HtwgmV|26Y7_8 zR2fBZ)vWe9qv0;T*8J|Rxso)dSk}5+cSvqW$}N(FXnZQM;WX7SyIHXpm|oP!vdwTK zQAw-=bzeN8+5n6%K-wR$`72=UtwZVkYI8Am4InxP3Ai+{i}+i?8=NjOEN>t^anaQV zFxvO&Hd9^4b6iu{rJHJYv#*J1O{iH4*jq2txPj#Tl&kK5$`R1#-tn9e|L?o}B(TTt zb^&MxeZU6s(LWL$0h%>H2?IzQBax;Gou(YeB-*Q`(W|>ry7$kcWgGbTsRc86oBWIx z3w^?k?JN~f)Ho?thWsSVUD?J@&Ci4%!VkZr?Yv6hitEL` zUqm($+w`LxeUD69=Lz|6MQHmtMN}1Su{@9i<>CSfHR-_GuE68AUo5c2^H!r=LIm-V z_5f(t`&+)`K1w}yb#%~U0}l%C0@6IMJv~+T^RO*rV;0J1E&f(pxKD8kte7UdFa*(| zy!P>M19fNnekDNLRL%)7W&*DKAENKz!_Rzd1-NVg#U0aHu&eJeLPL zzlM!iS=t68cCax%8bgD2(DvL0?!^r-h6z@31KfW2<$<_BfWZq;mHx(y_HkFAfgUxQ zb?n5bD{I3+V*&L0P{v=O2+dmR$!mUoPIy2iA$! zp7kaA9xFh<24w$PG`P{91YPmFnFIQTpAVCZ!3>b|Vc+oxWb6WI*mL$N7i!gYHOxP^ zEDvaxMg^L-Utm9thZ4Y6kB&aY$JPz-a0`U&0obOGa(?;|pw3-m1XN*hH}B721M^y- zE#g0u;HL0f4OvOpPr&rUZ{P;t`TSTq0Nj~CxfK1t*|r)w;75)0u;ngvmw|O>k22@( zh|0O^{Pv&x>8robe&(O7qI@5yYxSect=4)4Ao!?R0(t9}BUx1PI#rnEkx0mc4u6tr}oNe-ii$mk1RD#Qj`6~-o(&IkwJZ4^lCIynMTXA zT<=hAMZZabFIw~GxI;luawdj@<;@4fdu}_EtdKPS&5w-C466dlLR@ppgg_{sA}mHT z_g=k*Apvnsy`7l3UbaC`4{dR)pA#_0bA0!oa|aAe{00yFA9FQxQh!n2e^3I^t>9{A z4#^x@6G>oFRLfuXmqv(jhEx_LzW0&9lp2&#W~X>;-7NH#RIJ_%{ixoCtd(Y-mG%`~uY1W$}5*zVw z5cKQ}QH@^eRj)!5t}u0$%yIYQ9bvTaNVP_$uA+Xf1)_bw8ut^BqM-6QAwawqy&Gi@ zN}`#DZI*36ZHN=0iQ{Nr@5tjcWqJ-QPEeoo)B8x-_19#jvayt|Te=V36>Er-c@P+b za8EP5LIZ4^e?v_oL>t77RxpyxL_GTFZK!)~_X)8t^r#`pZ;ZdIqx*YTBPU*krjp#M zH-lU8?FnO`I>fg(<0QMEjj^xfos%Wt{RPNsdU7p|zi1c7%n|>&U9`@;&Vq?kNG~oO zu=K`=4(N13?w0SNvhsRm!7H=I`Vx{ZrQJRw_|zaR=i3MphjO z$D$VL>QIG}1DUMJbjK(l#G$1liT|C$9}r54I4TO38m<$5_hKdn9!I*kQFC)#)S2FV zRb%*#AH`k-RbK)GB*gbv1-V8`zp5?3`xwuA3sa+oMrO35Y<$BpqG8rpi%Md8RcPHa zc^%k4JT!_AR?^xya;F3nhW)wQihPzbaFC|2LDl`GB4%9czo@!*SAwo02Sy!^E+m+s z{cErdd7QM*B7 zS`UzC0}rRSN2$8u6zZsxCAsATLRefisC^Mh-%jrWv2ZFl*J#_@P{+nqeL!v=Fx#GQ zQTR%YcDEM2)B4r|99Yo=Ab#7eUNJ$Tr~-a2A2b-_7WFg5#WuJfMk&O5 zuEhUmk%sx%OS}KugF^m>TTk+csG_`U5(Z;Tdpe|qA~ZPLoJZdDZL_MsoLo-nY;E~r zX*#NgVOS%2L?biE-Us9-{k}E%*xB}J!T((3d`2Br4FO$#wZ?Zq+gt7u9>6j8;&(}{ zIO*+36jr3snyeL$ceij?c%I;Dn0#ML#UU0EW~I2-Or^R0Yw*nFo=L1J@iM%oT2*&s zk!K;>?5xnrFiXi#%B6`N`*gM8@R!Bch{{I>#@!g@nUJ@Wi@Jg_sk`mdn)_4dm2FgBpGVn+{K1t#@0OPAx}WX#)_&|5ldb7f z#~e<%eLDDZrZEh_7ZoO&?Bn)<^{P;M)|N;RRcCbSLMfQJ z_0wRz`+3&hS+4r~)Ti51`+Y064H){*AM|N+uM!8Xt+ssTr>%boST_TVserwQ2awHc zHf(&h1cb}8AAi~MS)3TE<=137HzB@sWAKV%38KE~dNcj7?`k=^1-1e};zF|j1Bwp6 zpc`pE_+RMd2 z9yQDevD8%i63&evAtCzKz*(^kYt*f?`$&0G4brBuis-ik8V1mz^*QVNTR-H0E5?yx zg(}QaC`~Cu1vvvkj%?`9wmzz4KE`@$Br~c42j%ERd4J0K{|_nJo&A4EiuSLCRE=!* zp%0HB4DRhTA%|#$%SFkRT+8=tWfgs+kuaE>b66)sW9+f+ec6rD6;Q%feY?SEtYs@*xxnP zK%FLzPn=a{@e^mom4EHy?6NpY;%BfC;64l}jCnMA@ZKh_nS5uYe-KSy+0{+Q77?{K z@O5vumi(TcLhy{xH-=@+%7CiDUH%?mNha)y*ZXPk?KBPQN&V>Rtn(06l`&JPXb+7h;t+ZTW&7u`; z)d=yP($ERpFMI1OFFl5Nt4WBQE(2nZVnHdisY23l!D<;3L!G`r=;T7C`q^>q9GkG&I9t@bB zMfl1;N9IGDmK<1-nlO#tv_uT+Eyq`#@9Ak{SuEMd$|VX#K(73x&HHoMe~&yx9Oc@7 z1$u`_GdgZP@I_m3-4pJBE{tX16*~L{bL(@jAyiU&yg=#if4OY6+Z6S{eA-RieozMX zGu6yvBcv^3j zwhHJ86+z5@oeK&6Znl&U=d+RMrE=^OVwS_jOa-eaF~&YNr-yUIYG57Meo~J13 zE#W>Szs)Ndg-~xHeb<}k$)xu+^SK^!?q$DeDWQ+-q*Ku@nh+P(w*88sAW$i-Ot?@sD(iGYH6 zdBIoJRW8JT!XcX5c~hklGszP2vJ3e=70$cueO(+VMP=KjpkyE0=2c8pYPAD@!5HC< zLaOQ7)vOg7TGQgkcjkNl11NZ5tn?0+EMvT_#;u<5!%)p!b1g8L~nxH7#&EQ`3G zF6bZ%Wr`~7lNC+g@O;f!Dw69IQi`j|K*601rYOYt&Kvq4NKC(UVD4v4+%MqUkaJM+ z_26g>oFiUgcAS*>#{?DbmHg8j_QKVFxPFIr`!31u@^d-IJYx#RP?MGVJ{hNEE>@As%KXY~rkP_-wz%-- z4RY|BapSzej$kE0Abrk-mV=c(0O{G&wNkD9N_%olJf;X`P}C_{_{5o7s2Q- zg~Jrzxy$Q5-)k4a%ISz0>@)ZoC>PShOQ26HAgH#DQ^u>BdoqbXX)8Mg<;PzEX-pUv zj;=rQZ()C8g~DsU+CncW=V33~9%pK$FBPodMxBCN^qemJyrHZl>QJVA9tq91k2*%f zx|~*1Uw7xj&-?9^vWu6o=oq$W?XbtwMaQ)i$rN&#ck1gN_8@758k%9;F=uA^#0ezk zvtp}~*a|n6dklyopej%K+VsK6;5T_^(UQ^zKTTld6+$tU1^rQQj5p5BHmPY05n{jL zZft)L0!aye7O8*Y30YS;wg|j9S6xk&4}8dlJNIQRB7{~GEee9PFB(!9p&=5}bww10 ziYI<=D0}H`J3%K$c~g$uBi_uC1 zq`ogk=qJdB-vSZ7e_5S_xzO!{5&Lc8slz{A71cV*`0dE)@w+Ty6|&$zRiqdt%QfTV z9B_a3#DlhbHhBBN2k$fp-wLIWJgh+Sj4!mM{epxIlM)U=TGZ2tq-5?cD30J5umwVa zuFPhm#O%!Vze|uLOX9mF-FBWc#?{ZVmbLHcVJWBS1L3qvv_}Rua z>6QknKE^Sgbv$4F!PiYoljvdI|Ak&E!<>l*PExbDL5rIvs*Qt%stwbgzf2}76L|Xc z^J}ktCJkLSj{z-uK#gvKg_r3b6#pDO{BwW70X2hSwb8g!x#F{;D017V>P|jeN6j6M z#b}UTq~Kt7ixp(F3;$JJkLidQ)|Jzb;^mudUtIaiVFM#`n~Bx0cCK0BN9TkKuBcO* z+}TBan%w*x(&A0u`b-cfGj}S#O=jMdX|b$JTDXC-HUI^vqcJwH2|pk=3TREc5%?eX zzy4$DI7IO}u(YgW{nu=G|C52>Z~rnUY(zpHP#G zIr%?7uD0VmDS5uvWjJziV`W^aIYpQ5@ZCS`R^1W|@8Ea$YDx6gr^-WSWrFz+Eh zYN8|MmIQgHl9V6Nda|?pEyZ1o3E;f0S(Co>2TJ;CzeevBA^JbOceS*srvi`7uK0l8 z@w;Efxu3&i7q48$IiHE+HIAaVn0l7O)%pn3t+(A1#a3~Xm8hy&KqKoUE~ffhJM?E)CDu8D0$eM5ajZ>Uvx zoULrCD#YXQq0J_J<><3@-31QCVbfu-i_2Nj3U`JJOvVNsa|;TZ>Y^)u&(vp9Uc!gD zS64RRVZZhQEKUKKgS^;BH3yHUgFi8AT3>+CXr89%x5u@?-ElX~bHDNgv)1N}gG`fD ziwMmCaI*#1w1o_9HAB;kxxc&YoAOHl>Y88Y;Kvp&(9m`9F7Px3>i*Scm zTTvkqv!MSucit#WnQ}vOX$25hf^xID{cmB1cg{h%O`lo^Fa>IE0Jwp;xAh#r+~>`& z1|NWa>uLjRJ01m0)m8C-I-WHyAMb$(HDUOwfeUXb{#9eon==ZSZG%)WGeN>@=pd)K2trgnswtt3mH11grs z202jAOXq&Udq}d&Mcer1DIrFz6q1sY8ir(;fN%0%9WQ(BGge=cYS}(Bos;Wia|Mo0tub$?EG3VMmAGp{A=}pxGJa529kst92T`WW4 z5_P<>A5I4eyn%_4M|T60((m*x>YjIai?jEFPvr7QG86meXH|lc7ORYn(Cj*u{U@7Y zFQ+q2Nfc9Xj^DtK%rNgIS|Ai`e|!!4LiwoI-Ig|@sr7IM z@UgM&VbYDmRd1ZqdkR*r@w7VskSYDUF#S`hl#+I35)}G7U49Z5vPy?JjDYLjH#7Qm zTJu)ARXXxszH>mI-X%8Q_9pdRY11r7_!)Jsxej8bn|+98Hu7pz=5%>8IqOuMMYUx4 zUxkuO{mS-1F(u0ZMbmuvs|y2#(L50qB=wv#3x>WE^lPIpbE?2ack;X;H9tal&v}qwJ!NA0vmW#sz_-$@|Fh8z9FM*8FmYv@jHysmIkHE-iO`K@&`cTD8EXm(J^ly4`m~uT`xgtd9 zeI7`qSQvqDf;DPtFZcqfyM9qk+Oh-#Ln3QOu zqhy<@7}`tPaj!DMUp4$w-{4z1ip(#8Zp*y4j*#xSSo(Pa@}q=A7y=7TlSPFIQ{%H%#pltjca7*q9#r*)t^HU~x5 zL71`FEZ8|@iriN`rq-_LfT@Vw;EOj5FK@EASLk;_=(pZ^^1G$OjQ<2Ljp|7Kha{i; zCJt>Nr8QU`D%bL0mkkG@cI11MmPrKz2UFv%#xJIjpXt8xAS(`%R51x42)6%@PsK4c=RVQ0Rb zueFt)AKayW8-4d9sl%V+S7T8)WJ4?>XVzl(L}47#=0urK?dtA^OkJJkZ>?X__i~bF z)n-evg4lx?x7y{Zfg7o^l))Q0vRnGP{e2P=N3P$5&UY{#myog}iz-P!qS)i3$dsNr zy14k8W#G=p8~Z#T>4Sbzxp-tViDE0xXcMrAQ^*QFr-WQg3weKJuKmjnwST}GsE->% zA6$-SnA|l)GnM_Gl~NSbGyqhs0WHeSz?IE|&ifVj2ap?JKl$=nG6QTp1I>?*^f#YQ zmsrr!4cbjtk@Q-5yO5Qde|@4!g`5h_SPbz~zw|y=?o>8E(UtGBYkQNYo!RxWyY*w= z_`cuG;)!C$O44rCoG|kS%dU?dA?nl%Yqq>`1V8eX93S@Ps}IKJDKGja-vhfh%x1`e zJ7zoVA;~qrQ=I=%B{2Cako2&XahpT!XLp6ER;rUEOjAUE^R7}Q@!ejDbW zs^#aqZtO)r&(96W(S24*LVs8|w8dGaWU&yGBUz43KT^_{2j|i_VIT%+;K+vM)%&kp7U{l{1RGz&@|J3-WR7Ph^lfQ$X)&kscJ#;vCERo!z@6$Fq%FHAS zUb#Y>SWK9tskDz0`X9A=3*qcfzlV_k-ybta%kcJsNkQ&}^05y(wp`tQ$$b8{d_Ot4 z?-H9IB$b2W?yiL*l(z$UgdV#;hq~-nK9ftFkBc42dtt=f)xmJ)msmY|8b2Aqf0MV2 z_8@8bF}%3uuXgpRu7pBSp*!Cwp9{Ite!9pHheXv zo+deCcuc*oJKGl0#9J{`HSwF9HCPLr0SQ1C<{$r?3S_iEcd2-KW z^ENWseNY70cEj4K#wdIk9rF)$I+HLEDA?G6WqFteGbUVt`*oX13I4vLn?|)VYcx?C z&o+5Ze*G)&JW4D|}DGWSdmn`N1^?~|Fv2pFM8G!#*bTE_v|;;I%EbfPml4xjkzSR_DSZxhf< z(N(ew``a)4^#x0{(nvqYV`r`f*!b+d;#RBL2^6**+yhPC*@IWCAg}zJEd~XGrj%6# znL5R@}4{U8fZrg(k4z#(%ePhCgaAEz()3;3*=wl(DM&kiU< zS`hE3Q%Nl2_8hbBL{z)u%M=@ zjqNdcI=F^XCb45?cspVAn>7D$4icGuZ66HxE8k9N*OR(lXG|pY~d9)qPlQ^z*^`_Yvv=$iB)Qj63pY5{wozs_- zgU0=H2FvcfwMg;YJGGv!=|D{OKJMX7I2dL>!%+<1ki};V6HvZvQw?v1)h@Yiw=6|; zbV=O5jhU6%#UG&w3j5g2n>I9&O&hWDt1OeKoj4~pLaMA&2i~E0!J4JD*)z}dXQh6k(&MC{f_MVboXPbpa16F5u zUQuZ~F0Qns&gw8U9M`rsAG};dTNi&f+`@ufbsY#z1rhBR`o5pi^kJ@I!eiPp*y?Ene$kS*SA+8JvVr{5FC# zm-poTMtGL;HXBUUR(m@4%0edHIY%_FQdDJTnNG7siRtHb{k8GhD+5KY^BHY6sz2pSAo& zT2MU>jiNxE=TAd~K#Mf3q8=|grQCB+5wX#0K~+g)yz!-~ zkNHbdTsq9t#|lRl8^cr2+%A-yXVCIqlgwdcy7K2kEjBbtFnZ>EG@+Iwhu>nNPoiX4 z_h++h!?ppAQ*&d{Eesb91GSkTM6_6Bk%`)!5S;3%ra}Jb7Xs*vmtt0_JvrK*!sR}_ z4H-z0Ojm$8I^?L2O@Th4o=@j6>Ro*3Ice(`-pMA6hrs$B~w+ci}khY_Dr zgEbbHgdd@igz$nl$A8z~VSp!)zSQW2fRKfrAYRjB?nlRm-U+CNJ`J#z%`Ie%4UQ1| zvDW@Q>&0R2N=fLrH#X;WZ@=ATeZM%WqJlPo4G|fqDketY01Y1h8b>Q1RRRhUT2i9w zr>U34Y{;fp4TS=HV%(uUTzWyw7K{OoXKobn4cGcYsp#4JEBqPjudx7RwbR?4MZM!sG zYE1LV!d~h-hKD;Lz>z8;3O-UC%R-^1GlOiZyNP)^NE_$5IY_%c%i&%z#66INoT`nB zkXMztYX-p008gmilB>buD8z{Jls{~^Ifo3eh{?!N91uB@knf8T% z++z=$ZVM#z?23yLka^uyE;sKZP1u+H%+X;aQ-X%pNvEutdl3T{@pbvN->nxWER;H( zqVclQ`{dU&JfKE(PJyn)eJr_tAdBEFE#QfK_-Y}0_!_id1oZlh|2JuWH`mf}I@6eIvM|hrp z|K4nxR8P*o0LzEAp$`}bU0-fkrwZ1wCKU*UsUH84gsp4oGlDX+gRUBNY6`@((n6yK z4W|Zz+(B7~ju@5wHnJE{`JCrem}OO@=Wz1)Mg{)_9ol5u z2Gc-Et&uF!m4xl1G)@o~3`qS`BgjaR|@4AD-S$ztg`Ak=If@8_#JornR~ zNjhMW!AY^v1!8f)Ia&Lav-x0meYPovhX=cQ&>SKWk;4a79>DLgT|$~gma~|yV)FhMANUz@p4_!PV?jk_ zYTiT4ExJH91;b0(G0lRY;ZeGMmz{{Do!81qQkcP?W=o@+=uf5dp^SFyFgp8Kmp_sh zr`+tlinMM-(QwQwhKNOh75Vu~2M3Nkv?b&rMttzS!6D?uG1_0}<)dz2mCFr}cvl*a(%2pQ6V#xbqR+Ff@Y|{^*uL zLHl6%i_fb-Q%x=*r?!U|W;;?ajCnpwzt2N0D{Y-bFS)n}Q9@EcTZU7LliWNO;&j39z!1Q<@uQ|&EEP^%vJ^s}~H9X#9-pzayd=m z+N+i}Y45XR1o8-=`|QGd#I|b-HXC~Xeax8+P%l}cacP{-(Pg#TU)ZncF`1{u_{V5^ z*;cX34~>aMa`DJj;S97Bw5U~FJbQ;GAcQU*Dh;BySkX^wth8uK?@9;-O~I3qGLyt$ ztu3n>rB87y^UPa1&Z7@S%8vBBD!mSUfj#5I=J-Ng99BLPMQV$j`gLYqjI|;B`;3_E zjx>f%Y8+11YN@~n#TEO^ z{dl_oJG>ni6tqkzh72}rPKsIttF9mve`Z|MAGl2L+9P?rU;Om;*cYb?w)qwd!R1Q9 z3Vxi@4R9*dx4Y+!jWN#B;&b0yBJCYR2JhlJYo#xt>Iu+P7f|gGs*HN4PnhMS?HWp6 z(FBf|%>B86C1I3?|L1oh+Oyqj`~zL(J9bXMkB^O{GwM#V?g0V6r)hz+hj-M?Ee_CT z0@1@8JwF1Dzr1&T`%aNJ=<}@)oCu5(5jM^!uW|;$nCsTs5m6OL2W9>HDem#)xJDF0 zUx;j!6%1Rl`INMCy-I8Ovwv`&>tVA@8lk~)O*0W|KDYSnR-4taNVa8(Dv&ZR*E6q>SYjYa4Nz1l3(hrx-S`o+ymAYGPalE8eVEwikiLj6JH8h1LlFAR3NU0#~23VN`<^R9^M4&qK2 zn3yczmcz`V5N!IN@6x-8$|W;In*r=XBH9`e{J*Ygt-iNYiS@k^=RHbrpmD*S=As}Rhoa5u4}ivX{?^`6yUDUJp*K!ls4&6WS141KV2W7VUP1n;vI zW>s%k|Iis2Lt19-`~v&>C%_@g|hA+gFh;o0>@(LL|i4C0vTI`7i%8N z-SJJdB$mV(>t*JTf9NxU!Jop+*<+oM@ZWZW*)n|(> zszqzwJOC_!Lla9^e@8zUYKl(Tl{%;9P{qDIP8dL@Y=nZIkVL~m6QOgdqrPV^_3e%^mNGwmgLi}8 z*};_O6N7L^$H3L?YaSxy?&3tK-w7LC_-jr(1#@x1=TM++I`;G>4r5xn zJ4b4K{Y57^(=(uKo+ZEd4PmzU2h52-JdQ~h9tKRDps4@LMF-iwLSB_q8sCOZb&#QiyTVg1-UPk|;<1+W}aE&DfZb zxnZFhlTL^F6c}zMZh1?H+*H-py(AvQdqRh^md4hED-1;WTXwr8@Kf6(BXY# zX!s;%$Nrb-lhR8`t$18P6us~+qUc6{P;>^3EJ%Ld+irP@rMD>N6rgReXhd@I5)+AL zb`gkb4;<+o9oP+mfy3xS5ov|DlW42vLXse-kx=>C(d;sr7%=y7r;0h>@Y483i_h>h zrmW(3DY4`Aw(oJr=5aPv%`*4%%*GuI$i&+q9Kup{x0%!4vDyM`>(ac;vMuYCgQ2&XaaDZM<0) z*&X)N;wiiQn1RmN*yhq#jLZ@9a9JsNx6pc&ePJ0gfz!&_HU_FsR_TP^PiovKQ zx*O!?P)#<&p&YhwTjRYV<~GI|XA!sR3W;EWuNk#8zaUr<2#KMU1+3;8x*Nr~5yT`V zjQwLVfEl4`qIxS{hOxWz1kD3ag?aQ6Q+o05sGe3fGT9M|gAJvS7R8s^6|3S3s>!HA zPo(sx9~os!i{+1c>X;NAkG!I_y+l_M$??t5dPOT<-@$5ilOi+}9lr&gix?05o;$Y6 zU>S3qCIN&neN3Q=vHprf{R_|xzJw@UEUO%3NZesK^m6}3Uxx`TGS_!4OAJVcDsuJn z2D3;F6r-WRBNj+vQ6tX<2u6PgBSE-L_k82M*X<9~nT*@n+N_D0NiEjp9< zA_~eHGo3ZE8L3Ju8!FAVz}6@1QFkj3Jd*h{-!ujtlAnE1(M}?rn#~jN{a}`WN&9gh z8WQi2fW0P;(f#V7t!n?=3f5>{gvs{!XU7mgzZxxOE z)6RJ>*M)_Qcpb;Dlr}lRQ6lqf_D$63JIAysx9PzLr^wy^Mb=k9Mb&m~)7>c|Esb;t z5)x9lS14^78xf zecSP>i0j`n0?+WoLmnznJ$+8W`bwypsmkb@Y&M}*b}Pv*DrpVvEG*uk z(9#Z1)zLIgb-!VaeSed+&Pn{^i#0z_#b0UmV)N{R(t22H`QMYN*!}X(t1?VGmJ|}hHXXf+3m6K=SR-jdA#l3a&*L7 z?|oNZUGe(o%=?EH+nZ)_+-h&^idjN6!{pUpG2N@|CpSqnu~VZ^i58+}B7fx0tQkmm z!Lll_CaNo!<6R%T@NyfzB|cI!PfsVG^}Z`9eRnKF?cmC3(<9X8g#B}@PPJ%*IOFZ* zIBrhS7?C+vyz*cvr1^@Wk?6DayO z1hEi!ky;Y>)CA2nH(JpPADDmTspTjLXC;bsa{QY3W>V4ar>pjA0_HD93G_%d(vlr~ zGd;!!;-&d?Xcj{QpS^+y!bjo>w0V0-Hw3g$y2Mu5*Xfmga*PduDVuH8x;8WB5^nPq z*)tI}R>?>=PkxMyF0=R}m5H%D+X`DIB4h0)QbH@T#d&`;Dr)fF&d3UMt?dPJ_K?(cKIJ}TU z5%jiL$qp7FJ%RU1--fRUXp}$bcYm@98)Dz0)6Vr$Z4MTuT9NpnA?i&$q4R*!CLkl* zLh>2)cj(f-<5w^>?HTnOchoXOw`~t`oK%*v=#a=p`%revAj901OlK=THis;C@rF=P z$bI4ndyXwC_*M*9uhS_-JtbV%5$+F-OiE@l*q?l|M!KA@nasgsg`3&QulWdn&iozj zHf$wdQSxzZeZrbPjj@;KwSy!9R>l{j)kzD%RrB6&aIX3}!G}E(;VgOPb*w+=$cA)} z2r$kW+XzsWMs}!_idrP;G+bP9W|Y#yYA{GFZ0lt;jN{AEC-B*sQGbN?NZEx9{Gp>1 zG+x|DRw;Dorm={k75zN6a>k+z+aCX+lxii(y^!)H%uY-+z&f6)^kL~9CsBGU`m;p> zoODK}xa_fLXZf|QQ{4AIX}C`r8{P0w=PVo5r_?;o$zRr66J4Ng1n{Qr@vN|u=U2-r zP8FSQ85ixu>4#(41!Pk*;w1E-kJw|{9WSNdw(-}XGtdMx5@czSxZh`$*<$&*t(lPJ zFV|I(sP$2CHnyI$yh{7U)a1QLu7UG0t|r$7p{Kl~qeh#rOE&XNSpzPA?nmEmp$OlFCz6 zb~vm{W1Djv=V_Y+%{&;O$NByA(^G#MsfhPjMwP_Q;csRRTlBKV^x~s4%^Qz@AuyV* zb%V0Pn{02W;xKboMf*;@Plp`a;@Tcto~aFL@#rij)33cBnUJ4PAC?b@=Y)#o_y2Ym zGjv)FY}Jk}ANF=xsFevtlVSI$ZCWVWtV`kZ>Ly7aX045;>4o>Wky@c)an~2=!aO2(--gF)N-f`!`tyn_ za*;N%ajFGtYmTETM&8jru@}G3*<=2*EFXQGeu0@rfW>@aZ6{oSlx>9DT?Y4qJClyS zqhniVh_TYB3HWLtcN$5uB3^dtL2b5`{zvMfuf>=og&Ow7Om~*fdP|M z24jnHariGAa>ibcZWe*zLfa$+neS1d!yHW-gGdWj>MF`f0x#$9ptVQtED1%lnvm;! zmfMTn;e`=mzUB5Oes_mEnO-Jgz6bgm4_)_pibQqHg$i25xAqvnKHcDsyr+x{zy`xaP?HWDW}_dtQ8_kV@g}^o4Ur zcic!vjS_m*pM`Ex$0E%b@uGuXv-W{TNvj)q!z2}I-@Y&XzP!|1Hj$o#i$ZF@H#Fc9 zu=4QcIR3ag3G2-qi&*R5vcAf!zDvgjTZz(s@U1%n+lyWRgLVbO4))$Mgjk(C6I?Q+Fmk|q8urz)avcn z{U$Ejq_NXI*vr`dHNC-QJ2|aEnJtJ{`!YQ-GDQ}*@vU0n#}73g6j{A_{-|Cztj%eY zjE>c>O%~^u=Hd2U&Tm7JX{djW^Zm}P4LAm{u+HVGq)J>-M)M80XiL&Z6rGgnN9FCXq7!aM_R!6@+Zq-Xu@g}@7k z1nU{I!yV_YA1LVAT{3amvz5R0`Mvxb^T5;hF#T4%XMtAs@Z0%s_1bem2!xIgGV*gQ zrP>SD)%}nl2YdDK@{pOl>DR)-{KD@{hHm9ndf|O|(x+fc%*2vUj^ctZ4OHtJYVb(M zr$sWS;~Ch#MkB~!u)U*K)A z7zE~JpwI37qC(F1Ys?|=bVgmG%fuK731S<}l@cu&NIy%#3s70;u*yQ0Z=e0WV@f^F zTu}ps98V!SFJTq=4Q;TgG3>^Nyd>Bx@vXa(BOfDcu1B?Hux|>_Y@&I5GJXo{JUQZR zgdW1c!FLC@g~yE?KGIj!D=Hr9S)6m@zvdSXI2LNM?Yw%CyDBU%%d(_tUI#mQa%ijT zXw(bc98ohqCDTkuuuITLvA3UR3dAJ&=_A9x4O8;<-i=6Z;P*f^SzT5}d?25gzxv9(%oi z;dhp?IAH0|yvmqM+Hyz)KgzZL24WPLzYaOS?v-N3v6C2DWD9Z{f4RE(8%)3TYIV9n zG_Ah1LAipyJc-(yjZ-BteYEaRpmJ|@glG`k`*u)Mg);oJpW*$Mw5*J#@qCp6#O2U& z?ty_`Imovg59nzSO_IF%~QH>{m7I<}ks~sU~^&bUADbT&x1#6&d6U zk_6rXSH2rDL+jazFhxf|YtbpD5GwINoHIN`+hpHc5PB)x z)A^_9ICbJCZb_(wmSkDBgy{5G=1)=H2T%Qpaso-K1|E;DHHp-Ly!E2T(`9Gf=?=XK zSRNY&1&{Wyioewh#!V<3aJ(W`p_6lU&32(AoPxgT_@-4A{m5$wNtit)-;XqT+O04@?71}9mfhh`bS8#=CBfau(EP^^krJ0|bub_n zCp!cKRfe@Vaa}-QJ@p0xeS&iLcMS$_3EQA?iTu*C&secTw#~L)S$ifky>;Yrw#0jo zPWH3}CyuGyvX9HUb5%M)9(9~)b9ny5E@=D#E^}{vG?2lW-1UC8fsF{zJ`=#yMpKBG zP{8$})9^c0VIa)-I;idU=hGz5?RETt8#)Fl9XNV902b(80&K)G2Lj3zBuf4|4w}gU z>M}`G#Zau*A=MQFKq?%R-ACrPQT7262RFR9cGqtl$Y(1x zi^(H}HjPb0tu#vv$oLFGWtxoJ%9ZEyGrwMh4uGN$Nz6n!k_+NnKIV_liuc&$&T258 zk)*!6n{C(54cmVs!5R?E{v%rk7VjRxE2+H9_%{D(Q(rOjyF{$^#j14G07{LwlzHzG z;FuZS2=`n$CxN7UCrboTB{8Q3_f%E(IP$_awnfn%n@my#9^*xvn>!9EZ`*o{OmjgE z)$li_aO^{y=|es;g{)ZlqXt%D&qi&0m_3Wvpj^2d?=5t1>9@i^CAHXK{3xVizdaCI z(48a@pVzinN94C`asc-JR7(V(9heqAl;DzhTBJJr@H>CtPxFd5v);Ts*d#0GwV4Fx zHYj$e+c^3Yx)KDJe$S>0v;Is z#K#~QP{W|eQEfCBH2D-LUPFRF2%ru~UV{|Epn>3jP6YS}(|=|M5Yq$pO|X3P8}0`1 zw;|~22#Bv2&Z+4I!c>K$_9!?)cBH?WR7*cPvN-4SA5>`%M@qi6O<0TyKZA7sOEqW2 zEDHt}d0ezP1}=v#6Pg7pv!v@joXXp69ug(_m|1v`>A?4aEy39XXfipY$!USpPPn$< z%#8DJIV4US6uyEnT%v-%uZj&Ygm@kuP~07`xel=z+u^*-^`zdH5m}L$CfM0D%volp zLfueO{J`?0{sxj;FqX4slO+(cxKKH-@X1A~_t~#|eBSrX2$;x9^FHUkLQj$voQb54 z`SWOq%ymJpxj!d#s5!xh6!LtZtLPrUKLz?H&*|;!?=SA`HO*Gm9)BlMmlJOAv()_F z(poExpdn#CS>Wp-5`vNWPDCMwC1NP&H&`6I^Ip3TJs-}qai`d6mg#wZ=cItMl;(Tu zdn%X~=rdEKq@V)ng$LXn-!atq^4GI`e+A{5sC+uFqu13rUC&k*{~>!}^)M0g>XumN6GuEI<)FQDL%3HTM4I@CqtR&; zuQ6Xxbad^!mC;dul?q;pqW2|&$=jpvm%NjZ@{LqYRxy^ij8ZGDAs)ONSc{1C6N#>g zId^-ecO*YTAR16-q#fILiC-g+x9f>=O?77F#t+>YD&Bd4TfQ# zGW0TlvGzR&blA~R`LztnohjX^=_+j0fqZ>Ah_MDmfXLT>5IicBNLO5=zE8dP0S3GU9;zzu#EQTbjW4nijM?%!54sJMk_X~RoBp_cE%3kNuuvb90&dm+u%teDrzM zm*3AX@rEmeU*6*|2VX*fJe=Y0(l~Si#bZGK6KQL(5y(7RrZ3^dI{OB?0DlAAzlOX4 z&ZHZB!FM!bd6|4qV+&8M7!E@o7YjLijec8P^7D}La{Jz&o4wP+dj?lGVfU4|I6(}? zx>a-Y9r2!?PdeIha9>AreFZOcKylrZ2ll&AS(s+S>GJ%A>9iV52PczjQ7S9E<^9G} ztdM~ft#maD`Kr#knA!r`b6LX5@dpzf0^wPY!(wRE#Zj?iEcJ@KqS*}X$nqA8Gt45Q zua6>6!IM^r8wk$r-zBjC(6!Q0Q8?>5ndPsDUslhEDTwZq*qYcep*PAX!C?jh~ z*|B#iP2B71p4+j}2N|vhOY3Qm^Z8D?$L`q*=39$V4RX)mzQxqxa>q&0v#hI%Yr&tZ zrHF3JOqE1wIiXZ~@j*0aUUeah%8M4)f7Bpe6s~^isJ!KLs&^}GB+_!-us3Nsgvj+d zkTFB25NV z4KUdOh=Zs6TwMZOH`G%wyv|Lk!_`0Q`+U#Ry(P`gkoUCZJx-s?5cKxlq6xPfax01J zGGqYGWQZ#!1pYBYK*KB`uPM*C&P8Z_2dz&~ZlG8&IwQ!1-FsB}4**~-n`-Doy? zzxOtzWWARrU`FbI?NcSxpwxW@qYD?l`S2X}h{iqYhj%*a2F=2%w-*JaUF8=-?n~0e zyhd7M_nfwL@&}_-tEwmCJ@t{(VJGT{WSHbVU5 zxR2)N1)V!=@xA8i0(#?weEhHBPip9P_Mz%|pfwMm!m)3O&yhyv;#5ZQLcAvH6*8e_ zc6$#(2IB_We=fs<-I0an5}WxZazlsGQ#0*5Ic;&_xcy4d&F_qr&WS(U?QKo|z3r~r zJqX9;ZvUYcJd0(|ANxE_2mHGh^I}36jqgiNQf+I`kq&`V@s5;j>OtV8_SNK>|AykA zWcsd{@IlRi+EMauX}ptpL3;YP)WopV%xaQcqmlf2*($UrDR!K`UBZ7HHia?P-l&<% zN##1QntHFHQr@bvYs?1Kw<5fI(8wW3(R@QopB?&0Ql**XR8evKv{wj!t16hP-!wCcCsf-v7*&M&#i!QYf zH)~sDMCQ@$0` z#2TTrJF}WscMTyw7c9bNKX}*pfWe_y);P{dw$XpF)+xwnpJ&0^emMKOkBHR9NqXv; z5ShH|;KaQGrFd;&Z`xuC9o-TvCc`Xk@%xRvZcT7qg3Q2i;TWY2g&pc_N7|;)(luOf zd-#G6m;b_c`sq|b>BN=y>wVuqjT5a?NCGgeMSa|hc(PAGaRU_#ysoz21b17&L02Y0 zBl>w6RcFK7gd|ppy7yWSH`Nl|o~3JHIc=~S69oT!9jUV8hZ#?rhI za~awf%*DAiZJ-s}TU|qb5|;=tF8lF6-g4m<=)d8JVN9iYycw$UM%rW`Y0JVwAxJKV zPkP@K^WzJ_sYUMc%$QI2aA#sw-R!EEV~R>dmGxmToD~Eil_(xkZQsc(-nXXWUfIcAQsj68XpW80$z3lu^(VL?AG~z#}JUe zD~S2;Opteqgz^AsT@jFDB(`UOf&b0~c?j?s!9I?$e+ol%Z$L-#zVtzsmZbZTPNZeK z#;3pw%tT>73|zigM8<2rN_Nw5oY362O0Kf!SLYF2_xezH3w5KOq0uEVIt`(A$Hjfl zMoZJjVdl^w2;GV?XY4lNT5D#XSWqCYsZ15Rj;3tRe`?~37$U-a`VKSe-kQf`G2^70 z@21b?3t|^pTKwPw;a9{F^WttO-4_g)B=1wr!8YU_IN$5>|8&ntcAJP+52)|~q6nnl{$5j&6kBL$>Ag);;K;%%8RB+hsW zxCepi8styD6z-q}n)n42`+E?wIxfl~uy;jnjLUD!(C^<4Tw>QEtN0yC$#Hv`B_(W( z6Vvhh!a{$Aie+T}5d;rQ|Zi^Yn*|*dVNEx@iOK)aN5i*VmvE%ABPB zA6$|?fBD&58H1)@@GPxBuRzghJM!ElHf+){z_bln^2P|2@dyFU@d3-ci{R=p3`*-u z^o(NIixyA+u7Lz=D{p??<~K1pSR%M#xR&Vyj9?}R#KeIoaY#o5*-q{U<}e%d4S>4x z�aqSU(0tH)-}Sx`3}SAy~$|fxd>N@@;LnNVhwybl!?o;co`rJ0dLp^L9VGMVG+C z;gd82<+sN#-iAC^5K91=p+G+FAHQnv7)11QvyKHy-awjI)B;E3b&@X~{v%6d> zrI=@&yP{a9;@Vh=X7iiM4)-S8UF6gs>lBeBmCdHSxm-wNb9xIC+69|| zO<84S)34|6Y7FpQ4|mnU8qNRCEpZe zuM2+UaSYHTSOY%ZIiK=sJRO|>B83fqY!KLj7CFW&rh{N2Uy{yb-Y1U|5|5J%B?OULHYq-I+iW)@?2+C=K0ZMcjl+9w2c9RZFV| zVcnb8^+KCVdmH`P2fX75Ur859W~Zao;HGaUNWw`Fx33N~Ox@+mA}Zz)dXfmuXMRrS zCN!PC{V!;WK44(&pod-d7QT}6ZvIT)xnIg+QOFQxWVa7uR)AC=a@~lb630+d7=#)I z`3GW^1MI0uuv2~mfg|DeWG9%30sYLFXslx&;M)^{p>Yh95}|i5DnY6o+UYe!sT(ZO z&w}zz;Lr;kbGr460{f`&>f@#F7vx)AeZ$FB7$A}NKWF}N6;GX23}yz9_w_&M%@9<_ zfU8afHjLpKVtfnLJba(+lgM=pUDiH;w3-2jG&nTlR;G7NJf19RAq;yJ6$$9gCs zL)Q#5fYT7AF9N*1nz{w@pMfzt;?Fy{M+MB~9vMz^N|dz~ORN^ww*FJPlaxpK{o4iv zMZckiFXKk8R%43{mOHB7aHIaPdvGga*Lr`ZPxGZMnG<^@p{znrtQD{eMTlYC5+jS* z{DsdB(|{2{`;WWy3tZn;$BZG3JIi1HDhPoM9oPpLb%RxKtw1EPs*2D=a>(F?8t}K& zG=1`R0KMvE%N`oMK|$7A&}+h#$c;zT$+XbLwZc7CmF)U~u7LvaIedh`o-{6jq{cXi3GX&v&a{u{xOEUT3_Aed!h<3_YDl`vv)Uh zzV6#hN5y-5>V2Hn^3IuGbpoqk3TM5z8=rCFWx%zC0?yYmY4rCYUewNw+tanrkTq(L zQxF*4p>0;hzg!tee_fqRLHe^o9>j>SbxQ5i{K%x)PyBvSm3Y>0cCyawqw>e+;$(eW z{tq#nt34n@zdG^)V2uOgW`O#y@jtFWrkyr>y*=Fc9rKjsrJ(oWQ0exd`~n2q9^NDi zB}V3?hRFza^D5LPAF3XqS#9FYB(H~UP$fhWog293P@+-kNe+EJ{rIGYa^KE=Q6Q3C zAmn@Kr{(t}_2Vk|l8Drh1BXFK1`Ldl97D}-_>v#Wt8mnB~N#^Cp_C*sNS+Z5`a$mMEm>3?*5r)4<3xj{9&ukTqTr~BF=u`$EJ zX?Jt$)$P-iR&nvy7&V{9ct1tst5&@zGd_D)O!+Ex9)UmBG$QXy zwwrk_W|Zb*yXxS&B^=X}?-%`XqBGsp_uHQ;p-!`gW$%x{DCEgb=iO|pWSHMD4E*Jg z0DY0jfKf1`zDv@V=J#9E*57~jU%^-Om-+dOb`uEM>a?FE)jn~H3LwegiRh?3D1@eb zid7hAYc&<^u+@2y7lj%fYn6ZSWWj5no0@Vv0kvnbfR18b>|<}y-IX;^SqB4@sI`CD z^B1R3U-Zx5H7C$>5>|Mal8c*AGXR6WuI9jIx0uWQLGs~>odxZ!avm+qc1&23I=iB^ zpnd=wN`D;v3)>(fqc}p%CP|{`w_mL>Wa>QS-eo9kgnwiOWZ3o_WP-v8O54rbns#vy ztCaOT#@{WX+tr&CtTIdE25vC?FpGKEr4)&Wjt=j8N?+dNKmT!C9Wzf+@HVpH)FC#I z5l||I7fk5w5mLr0n_iZV86zv$ye@sgAzq?GO2Z*d+C$sTL!*(0hF8mod0)$d`Ll~l z0mLClStk~UDNYu{`rbDymo5)<5teJ3hD6+7S#)M|hayx5eV>t^&7bYkM@SGFAN1z) zV>_N<)=VC0(l=>8pa182JE;#*#))S>k=ux=@u>AX>iwjUcQP{W4leX0o;4a z{5ex4&CF2=4Gj@HrW@B#Xo9*&)dz2{uc*-ZR)E>2#aiDp@HF+8%DDJ5VQWVQw7PZ!n?0(Z)A5;RF5P+{u z#;S@s2ZPQ`FM>&iU;ynu$u)1&eojtP7Nt87zNE%-BoZ%ur!*aPT{4&Ak%3^*pkV9V z{Jm&wu=OMuLi%Kl#&J=_Cvp=5cK*WW+t;oIslAS?gDL4$ZOK+Sgz~Pc_IAUc(S0p7 zBMqC9arxBwoaIS)Tu4^H_VCJjtE*V>;5V1Pk%OI4D*7jp34F?5c>`#c`r*geZ&yNm zV&JoEKX;fN%`aHk>QwW6cZAK+LwrMi=-PZNcq&4WBex>0XkFWveSE7bT>n0?DBQYD zS(T_U$E7C!;R~YY3WuUpO5=$(PuQ#H+7_qNUNtIT_15#e$8Qnojv|dDlZ5WAJqyq5 z8^BMSSuLbx?+A;Lv9X`WpJ`@)ppp<9d(}(80Fg#iI%{j?d!OEzGkn2_T4pgF7>+%8 zXi>{T32i(@4c0%m7=UmdCfTD6)PP1`q&@c}-UY8{L4-$1Yt=nWyxEiW6`6kU_634r z63L<>ux}vC1_%ZuySE9D%xwgS1IVs8aE1N{yt{y8#slmVnW&IeRZpDWx#GLwK&IbQP?Jk z89*{hki>PF|9b#Ax^nfs528K*LT*Q=dLVL$W#Sm{1I{;NQfBZ}{65xct_wUZP%W#tpDh5lIQgB43vdXx7# zQTyWlyK27z+V<0gsS;pjhw1}dCYc0Ex!0u0JXqE}mdK&peL{Gf%9*Fr@Jy1s- z5nFKvgML6Morkd(%p6|60Lvt6kcuMky1+4Sz?$vN78&#E2G-X&l^QQqt_F)xWlfJF zIn|h_-VimUSH`JFwH5=yMO;z{5ZIGhu4V(OTIFA-Ifdw38)YOh z9r#%72U`RWtdz}O77EZ|gvU;|cZ_u!Cu~ z;F*1b+k9RH*+j>{{s!_&OLc;i`<7)#fovz+!G>&{Q)4e)xLsjzU@gi)u)DI%O1ee* ziSS9)&4dTO0CY|AxfRC`Nv>tpjG3b4c^JT&g?KU{i1(4KChA{Slj{tK^dWx5DszrO z{zGW~GXkT}0%HA$Uzq=rnlG#Y)1@iwOP14{nwLBJsk@!7r+^%*{W>FQMYHKV9?D(R~ZW7p`#Ff<3iRY%8ueHxk z7Fepp;WOmX`tuixKRI9XS18q-ij55*pQVy?tKy!a#^MQae)#*`fVb_I&XZBJyr@d`{$m9!`1X zX?!`0>|hwxL&7z_%j+*nHd(&??ti3JVhQw|opkg+v@rn2_aILBXJvJl!~k(3b?-T; z(EZ!_bLVMyxtWcJ_&-cNHS#}%_<3X@4a+jFu9UOWHphHNdLr=I8L~ap^f# zF?U#5Wb&f?f~=^~FQ*$$^OHm62hQ9_?TK$L<`dsUF4)p%h|-|%pWl5q-GUrHlw$2g zmPL6G*9#Uht^v^^m_!*wXZwm*(iQ zlN6-s0_I(_ypr=WS^Z0*>Vx!^+xQsxLr$T%CoSU>{oL|&BsNnHnC1*Iu4b<##`1gfHanaN?=)F9piI{gSp@n` zwcw3rJ(%VL7aaio-;io&we_8;i!&}Q? z11@v!#LmNl!(WO}viW=sxovd;hJ|pMu$&{7)ZYq%Q>N6Z?z5gqVNR^y{K-JNrT`w- zOxcvbgVDIFtx7gUVu+&}3I8vt>F`I_<%@VfslRw1+z36H#L%isoiySXUN;nUzE~y7 z-+IeXHsxZieucS8$H+=u?}hcw=}Ks1uv8w~T6grv7kF~~@i2cWU1vPX_Q zY@(ZshxdM&OjMHC;fw^Deu7c|fuuO0AaRJh*VJuw7jGYAY5+pJh1@1*jEb-Is(bd1 zH5o6s@3HA*pPB@nAw(z!yxzEPnO+=urJ(qwmet^wfT11^FK4^lRbd#Kp-&*!EIVY$wd%`{kouKP zXWp*V1rgo;>eEPzJES&+K2A>Tq~E$rQEu678UK64pWT_!kCyFS$?cjF`Ct7^4h2G2 z1Fq30njIp*=NV9k4`YDItRRUK;xt3#y$JPLgYKRIcO=K~pYChOQ%2&|CWz281Dzpfz|-sV7HGtd1G*u=rVD18C?H>BWx0V+ zbiZdjx_WbL+6aDUVr*;zDI@$9F8fN}t2Zh--Bhg!=NGu&ay+q&8S*7-NJ%=SV7 zy6BenIq@lQ{bxyS*Rk{0GCv_GfAvQgz?lw)bQz$5f1`D}pn4ZEs?oIk>Im$2!Wl%4 z!P-e~)1}`h;waJc#D*{G0*5O6uFUKsRDH4gTk~b#i#!r>H0)4LkK(Gc+49tBWOLI` zatuz0x>XeAHX#5m2>@SPtJp=2C53MWnL*LK2v3oT`%?tFOyD+wnTd)`-sCEle4XyOdlW zu4C+O-;BfvH5q^MnLkUO^|T8gElYixegH0Z|H=yfHP#FP7dMdINzjSF|JSgiN=_i@1G6RHOj9gL zC<>{{8|!+kOlSs%y%Zrsmwz=7)N7D`c)1ybAv?gn<2#0|fQD_L9g%vv2wD&fBA|5U zNDg622$LzSFKnr`uzu4cxGT7oWF<`TIC_tkYb~tZR8N2eMFEU1ZBfiQ+DtGXX)#(}inGWZm)ux_tXqX7l4B|7>3_V|cFE64PX4g$XJvzk=x4}u5cMFBqwG9&11*F4fH z?VL#EMJgle#~VlIaF}u?dtNjtH53hieGK8sKUKB#vT={`fGlzL_Cr zY3_3KD;$EFYJTh*cBVRXs}v{ru#arB?VyDEkivcXs3&$gkPR6L}XqN!tOVcF_tiAbJSJ5i-EoPz&7p~$!yW?#5gRO#aQ=| zK;9x;G>&_hgmWOC4eghM=5Y;S3p)MIc4rRNqsf=?%h-p3u)V>{QPUl1$lVNs5yn(g z3YDP{$$>1JA+ZO8C9aRTR_6<}_neUSlm@K+a(kcktLe#vDkn{@%rqS*blm1O^>Rs6 z?_%u_Emj#KZ;GE@G{x7nd5C|VsfsfmsqbN4U=4IOc*f-+^HU+ib-ARDd_KcXs4-?a zxhx;M-MRX*OmJY$T^*aXjh%l!GE-3}=E}EYa{A*kg~_EC(O~G%Om45KaKku5LhKG7 zd;XuJSY4G{51xWCgFoAK4Gnd5A!RBGI?^y%GqQJDpK;#{LKOoZjxo&TtFL_j+Ed_u z7{@#9%(7Q}k=YQ2y37Qq$&+*`=6^jr8R0x#s_3=texti;@`RvgiyH!z?kqL( z@;WB?n4!XZ2$Me5Ra+*PWdEyE(|y2gh%(d)jP<}5;tSJ?Vqjn*lI`aO6 zVg}IvPVj+4k|)8D`{W(C{ceoZ>O_FO-yoZ{-wM}t(>6|ai*-)CoH3<~$h+WOxDw}D z+Lyij_jcJyUfUA-_LAr06ri`pSmdE!!JanBEiTpb>qx5go035&tdO(jbBe; zd^qK7Vc4cd1}n!`C97Kg;ZT7h?eu+hAx#3i^CcQhLAZ>^z+V85jENxu?{P&2LQEbJ zcDMW#Nq;c>jf-*D0gOaL;kqX3Mg~UE()85LchwPJQ)~@O9047vA_F4P-e^dn9kL4R zwqdSP?rWFr6C1|D(>WSxA?!cwlJ|lsVbFYu7Z#gPwpD<#3($~yaw0&i=qE$Q+$4`= zZSS}P#cxgZz5vnf%MQehbD8m{|4P3gJ@d@LGy3F>+8EQX^Vx8x{P_~0Wci%0ib-t)5# z*1?m}n3QvA(aUE`l#FE0B9vt*_&KJZg9v!_3o0ZMH*^DCX8fVo)g|+Q-eKn`^qNlV zO>z@MkNTD@*~tuHN#AK6Yj4zP(}OLxxhEgIHfn3bnbd3xr}_6jls(JLo>G0BfJ6t| zLi_#8A0~4t2+BY5nVGv$I9kppqKbXM{|!{*m{VOIcd{ZVGJ2_PgR`Ez*!@EHEZw)~ z3ms;aX^>-b*alERDD~r+5rN))lPR!*IEuUhA8#05Yb14rALdFi3-VMgnpsozr%|0x z3sj{k`Tr2M8TI+5Z_=XSa!2v2xwP{%GH#ul8OJ~Bmqyk~mgl(kl6T;QVqRjHCRv*1 zF@ff+qh^5i@H)+Y?<#AC4y7Ybxwk@DwpstDd6nQLUZ^E%l-lCE)c zaJ;sfvA?w2l^3Mz;p^JZsIfu^xIc04JRf_jBO_XI?GXR%%MGg@KK~}MUB1dnhDW2-T)zR>V2pg_+UD94yCy?9RnQ*{7ciXAo$<@FQGuJ53ztG%8+p5zx~G*!ieYQ zpc5Sl2dlqqK!|R$nU2Bk0W>UUk6GnOfV2vIRW+SMl0`(JQk=r$tVUR{;Y9nJM$#gR zq)1Q>KgxN?SdFkTZ2*MWW}xB~VkRGPznOtTAO>?YZ3b@}!*0tH_4ZApD5vj1VUnAq#FIRbWl#H<}7%BFYw6+_TZt6mPKR64tu< z%B|@;go5t$7@}w5$2|I%hFiaSVB$PS8Uf0-5i_4u!4oY|adIxhv{ru4 z)FgCNLgCnf4L)c3uM~xpfj8kixlmUl_3gGNvYtSLUnxSl1$=y0l{c=Q zAN+Xc*k6TsukR9n@2dqf<$uK^|MC9&Yc+tT|1DBi@jv)7c^t6q02jdbmo}K$1H|Q> zkm&tgIK-&~+&>2~>p;+BS54%VTWT(^Wmwd7zHPuk^L2m4%gXX{DGT>#U)TAH_On=y z~?jT=a z45yHP@cseaM`N=*;nyRXu=qPn=L#$|%iS)@1Og$f*2!0s@l zKN(`)%R({#DXIj!(_UKqu?*?J{0^aSKWh-FvJb1-aeM1Cn^_CDCKm{vk7hbX;gERF zPuwv?_8&DF7-~AC_!JJt6eVxR_e%3AcvwD42%#9Bx8&^!3*||)G#pgqvRd|?SviU%x z1)qi2)Tw`eQ73&STd|BRU$Mlus1L0L zL=&kAM~S5?t_#`C3(Yr6URu8xbT{^<+$#B*$Mp%{yMJ8C`RR`de<({ZpmO_EO8l>iF=F8V z)b?IMQACZmuVj!YL4p!Rau84v1O_AtC{ZN|BN;>`=P)2SGbkWPP@_TEFl7@2y+6>O7s7e%RFyUDMsud$09dYj+kSBh4fYFYgaXMfBowrK(b}480_5`?S|$*E|27-uy+CU z>!{E(*z`dFCYJ(LoE^uP^zipIJ+hzp`Oyn0V5!))3{$Owg!mz0&ET}H7ck>3|3Ll# z+%6;k99HKO3gmnjB!RJ7)|YH+$#*tnHG(2O@qFxyyx;_NyO05oxsanPSBP*F6*sVlc!}P zLx)dVw&ZY{#a@ANZ3qxehga#4< z{^5DK^tujS5Z2+}T?J|F|8gZeWq=3iL+%N`t+5!l#;BQRT$n>=x2K>_0itUBS3T-@ zrqNcfkUqk$a#W^5ghYz?gJGe>hq*PfQ{Bp^BrB{t>{&%oTS6G~EMUJla536G?Z>ZiP&Rr~7F z#EXv!O@>_(P&{VD2bvfCgxL_b&**zmsKYVw4v67}RZ?OYKfa!y1aID6{xE&J0#eOJ z*dJ1G_*SsZs{w!G=EW%aBUTZ!g&~=ohxqk;-z#~QQHCpmQ!nmH{xpn@a*X&^TIOOk z)p3i!C#j~dxmG^+TlP?bnAZ0=?h?eXjIEGBsyXwGne;^Hn})Nf#7YXkmA*1WgWT!& zqpBzK`tX>gelkR9aik{VffZj*EYvD|GBE_?XRH zk#78ElbL^f$?Fe=<%Y-Ci1{yH`r{P!0ON>)&Ql9nZ!UxryG-IwuFabcrCFsLCFVv_ z{#@tZRFEHgK6ocv(2v4o{mo{_%4_TSJhak%A`>WY(EF6Cv-6959FMPt|8N)!a;cf znl1tVry-~+8d48zHmzf)`hlIps(4g!6cs6Uvp<~VfA5eib3DLR1;>wnuAHB7b zUDM^jJL+Cjv0k-HPYCV)6{aS+Dkzht(ZIWqR?ui}q%ksH+J)>lKerHgrboXy!!aa0 z+PyBB5Z0 zl{tTe22q)nZIf=Mm*`_HS@`K+)pvq@?mOi>4PD=8Rqw2BexWz^#@~wh9f|a*Ibn8%@rju|R%4 z@Z%PSybLzJOB-}CPO(3~@H@1yai8Y?z$`qR_!Is!&rceSD(`qOdCbp;Jfcx1!?Nv? z`Oa}Gy~+_bl!LG8TuuB<2HO%vRNB_$Y7nn{lZsX8CSqWO?ZK8Qm#btjNirxp61Gal z(3@Pbo6#xrg_FSGmbKy!I%(BHVrRBte_0}2=3lDJp=WiKc3`X@(Uc4ds}lI_3nwm>Kq-l+OBgD%@UvyF^^xs{x^>_ubKolBbQ(QxH$?EwvGIt8&q<*0X*}% z;wBk&qfJ`$)H56;4zrUA5ffE6KW7YcsGNtr5yatP%Z&;THD5_4eUD5|)h;B-De71s zhi5I&qY^x`jUEyb3#VoZIBg~ss$Mdi*Siw0o!`b^CT{ zPRNq#l!DJqTbV|y#cq*FsgMOxMKu%i*}PPUKO-!RVYSn&0lYZ)e8A9vLFEC8 zp!z+11Z1vn=Y07RQc?Fol)sSO+kLlYtgzWy-M2H$NK*m{pMu%FLbI*`@@Up}z(1E% z%4li(GZG9w_#cvbL#Y7WAoOA=5<#&B$o@S;4$b=aKKsAHKZgCl^QXX*sV=0Yc2Sit?j5OqFs(T=hOfEHquLr?_vknW>=yN&Rn5_*C# z+OKj#uk1Y7>ibF+D%W2`7+fK2TRIs4s5roS1B>@JxMYQf{y#HhML_vW_F-WD#|>t7 zLl0rq*Z_dxJpLNyWwZo<>UirFEO9SVAvB-@SJpe6qg`pXUwU$#L)wbb#+%HIx2Ah9 z585VN@V)wn>)zQQe~ISpNkHvyG7nJ?5~To(ELyn|jc`Z9gbsFNp_I=et|Xt#OFRrG z=6mt-305~+vf-<6duIN?4}rxBlWXlj-^uz%(ZM#mhraYzy(0>&SAbAf~*#|B-SpV63+yLnnD|sy723nI> ztWR8Z_P~|q3XF4C4GFOhKtlu2h$;X<#VXw0X=CkobA*9ARzw1y{Oc!RF$I6E2Usg2 zx&?&n|A#8wy#~ZY9w~=X?r4*ovE%E1SH&dCRg)eg{{E_1M0tRP`}OR(%&sQ3)@pTf-*&Vh za*ev)<QDsoU^hW}^H4TC#^%lSVCv-LzHCb~oP`&UA`4oG_j5K#fI1AyFb zfZJ*K;C=UKF-DEYn=@H?XvN?VzjxCc^%XYPg&sv@Te|9P)og z{Gk(AXc(G^@&z#0SQQ6Aw&c-v%oph|S7G8jct4_0+4d*6zS%Qulhtq0y61pb9QZb| zp1lSGs^>8N1mH1q48H0;Yb!{kr#y&K3dXM%Cqs%gj3N`XA2mTS_tiPPA7YSf`=>f`xLC zbRPrGbMMhpKZuSI6DPoXG~l^+yQb0pq}O5Pv^+Tl>7Bl!?v1%Nk4y6M+F~UwMU^t| z#tdV>qkulT8%}Eo6Hq2`CRzfD6R>t$z~Xd%adyv@u}}PqE@Ph{gAPTV*S+*E;bn9G%NtgiZ_^CSsVAT6_+}Q9jmMX>E|=+=IVr5!;OkI9W^KuUKIt2N_>&`)SJ5!3_fd-&+ z2-`nz0SrZe#TslnZ7H51yeUPN)k58vi>a{H#hpU6`9 z!JD!w0x!|vEpmJ!PaDnQ=h<-agj3 zGHT_?mSZlp2XH5byV3s%WSt9mY<%6iba+ z-1oy26J9S`9s`zr2{X8KzqokrYbQnwXX7Jh9ge@~=Bv#^==2E0h!@FqsK7|5yav_1 z(-lN72ad-vfJXpar~2MG0u`fTcQjy71uy1n;%{^^ulhk1q)A4gXm%-96pO~$iUKcM z9CS=I{`~_q1C~diwDDi92~zj2W5IY@1}g+t5j^|oHV3V5!N!+>pt0=B zZXIHCW<%#K7Ccpf&#gObyND0iMK&}m7;j-cVm(3_V27GMhW$hYodN#Tz{EafGZy^Z z!+K<}7`RM_M_A2|W~VTnM~-GE4rVg8J!~{ItTXK4^t>a%3F}(lgfG|hLj?v2aay`p zftRh|!U+c~VgbYK_u4|88u^lLto;Fowbpqn~gZ>Cyd~ zu=5WOzVC|QgSSsB;vaB%H8GhWk&ulMnYt!fQu?6{8pD-0?z{N&TyLLtzwG}exEuY7 zKx66?s9V6kTQ#r6>OI$Lh@ePjS)QOSWBQ11oc53sSP<;HY^X_eJKvmsTK$)T9XHm$|L&&9{7sPMA@Rynr0v?58!3@rS)SD2f%L(KZ2)TG!OU5D|eE^}e(hE4S#| zF2oPz4WhMheN+Tb&l~2PRfl)r=_!BNN4y*bKt}4HYWo=&7zSE^|FU0g#iFQ1P7DI9 zcK8npMv2J7z_Q}>gU%3t?pI>(gMfAj@~^n-vJ2ZHaNr8r6++$aBPXr)IxSgJJ!Cpg z-vK5jfNi(n_n4{2kF}b+bQ1FCNh2|3# zUW0;|V*oyZr?Rjs)xf0KHAv2>#m#3Z55D!SC~4~{M0Te)%3zkSB`H^?jE;|;9CWa$4HT8FU1}$I5C4o+5scU#s?7aRS&ootAxUDk^Eo){ zH5rDDp0Sz!NM8NTs%Wdy_)pXgO`W4ZQJIXPySx!ow|mfi9rq}DP%t`kXl3MOJdmsa za%_12TRZLD2l|E`)GY8kj#-T=u`v1_$haI(%Qm|O$^CW^D@u5^+)VAW^2i(hE>~fH z_?{v|!k6LG%dSj?u^5Mk6qIu5g@vi9%wA35pNT;O{FS@dRjrb5g|qgMpP!FO)T0(} zift>*<1%9dg#Nd)jL<9#`AG45lsjDsiolcmOBzv2*|V0kfrNY3{HUR{3KNxeqV-h6 zNiz5-jg=VpJbl7KSz71((KfM|99+&+i39e$m%q|W_U6;r_qW_%mAyjQH0Pn7>_f6? zu+PpAQ;Y}i_aGpcXA4BFm!5ZcMZKz$p)%SCljEi$7)jtPsib9^q_!AN$kxwo%^_1T z2yVGcg^D&HRqSZ)ED0M38Bnh>Z3 zIBQ0MGTHx&>iqYLA9>jW8cfhrw9J%G5jSuyx$g_kxj`_K=?wM^*QTKNNSf}x0lHk| z;CwQTecgmZ`Bq--%R{(NGBa1(68Fz%g!^9MzgcV3n}@dD1B>>v@0ijtmbX1H_#!Gx zzHKTZQ`-CS*T|1{xXNMkN>R?Ys_fmUfYPGI=kk}x*u39m)6dTnSUZn(M?P){uc~$6 zv5c-wrVW+GHdry2Ap+k}!v09~M7gUJfHXc*h*N*n;wufi)W)t=!^5vc;n%h+6QlG( zHPt_9>YhiMjVVn#1j%KUh)bOdJgMjMTH_IMplSGh!5Qhwj*5Wk(qE<%nRnko>2^kt zw2?O5QGviG%g>CqNt75uU^z*KdViRltX>vYXOIw)ufjRMjaa_vP;_G?n=-afb$`7g zO5a59Ni%fxm3^TvBV={(g82?9@7ZVBfj;nJ;}SEziR+`(Ydjevd=vLt2vD}$NUcfu zgQdUR<1no*w3O(BFgA)Cp(K;6p-DmEE4H6kGyJ(eqU0A!`zur#_dZ_(d@JJRNg*y> zvO~ux3$5YtM+Tu#6L@sC6O3YwJAH3gqY6z$nm|e^YvqYfi~_~oHT)+zL3ZSr&XETQj*(#-7+d5s*=1tBZ3IVhbav#rw@wSo=_;)~BTaofvGoUYvsYf%$j zFz0p;&*3Yj5M`ZsZp4`>$K9LTY;cMdE$bO3zvqyZ^^#oM*s`ETM`5qrF2u=tN{i_^-VRMRPHVXPLUf6mMrxIV>bW(wwbN-Sn*t#b^V zr)8CTt9CU#6T!&e+L_rhLp3x{-S+%cbbI$wQ2K@ek^hG5clw)I^(I+QrBA=oHtY$gGyK4ks4k5)@kowD+#|=lN2Uix%EA`m87i9sVAO% z@2qnq5^5bxPg8E@@i6&?9plQ=HCY{u?ORBs?t zI)g9Hz*yF2@ycdZ>6J+mlD${oXOy9JKjj1ScN4X3aIPc7BAQP$MiRs7$x@y==Y33D zF6?8<`q(Mf_}8I$Ly+UsR3hJcbG;RxJv{4H+wW27Xz^~)aiRQF&&?6@4uG|7aL05pXdI?BKce_yL2E|Ddy~5XK~$2g%Ew1a1PhgT};AE?5_oPo}O7fh{ zmz+Ghr=*@E$F}<_H%6Hs+BGWCxjj$MRTFq8-GM|pn-JmX!_FvQJixp@qklb+3E@t= z>|u9k3^NxFXn3agb5F_$Kl~FHrid{|K=Yg!aETMby7(x@Km zhzuGOZ>eipFZ{#2cN1W7-kQE6Ff4diULfiy?c$E5eB@%~QplK3+p`eSI*|>T$0MIZ z0Ord-qgQ04@9Cc1Iu@WcCcz9^6#6qG7#1tG-niSW-AJq~A!fWe2*0TR;bqhzx_IG58)1GQq zVYpC~6>)Z<=8~xAVC@B08jaHH$(y`W{OWqzlX^^w%QgG6yUhZ%doEN$Pkjl zkv_+3Sv~C#tx+*3Zx=oeCvv3!@_;w0Z8Uy)y#SG9to%`Hve0!zU>N;#GNIesc|UXM zB9%In>BWN)V%k2_H!0~hkT~l*F7X~AuaJHofqfObm){^~GCy55Un6WfNHx{_+r0f# z)@>fq-tSZEy!a7Th<^7z%s3Pz{c%=5N2K%5t_t;V|oZ4H9|&w)Mh-Fs*^H0s8+-hmK3wpP3@DO8Hk8bR`m(u**l6hzl>HZorfC649BcTUGES zVjcbA7U6E&6Yi;BsCk!yk;c5H(L)emP~#xwC}XzA^PbEw)=(3ADCoLvtID(}_9}EU z?CQly@Ygr0)m2=BIEP}%#&K#0n+DtW&y?4cUd=qYn^d|Tl~czRC!gcxyQ^@ZvMf>F z07KWLtUCG7B`uE4tV(WteqCEDsq}i z3D?yV#jCd?LQ}8y36IqaPgL@_fqQ?9&ADTwT~jjd^d7@j@#?ymCmtrnq*B`5dMcG= z2apA{b#;&oHz9X250|m3GC;M~8H^Zg9QtpCNd6B%x9O76Zo;WxK128^jPR+QIt5rt z!g3f0Z4Jo=Fb6;GjRC&Jc;~EqSJJ>WfbBumKWb8(oH#)-jV&dK8`Xuzb=Qh3A|F&d zk0l}bUOFu@(_+?L0%W}5h)ger9}@Vx*slvh{>C zFE_1&B--~QrLf#}vk@GZ$7nHX!c|Ei!1Ytgk*i1Ls{7FPt06|J1Vc#2xNW%i38%qZ zv=rgl)#)bliq22x^oC)l3!xUL7n;>G5T0S&VvE$2#eIXsK7yaNi^sOc8DZk-26hkB zoJCC1Z{?0ou7A(8TI{GdgbANsj{U6GyHc<$tKu3e(6Raq@2aN=!_e5hHeZ>$+Rk-a zGfSh5*Cdg)RUxaRkt$IE_byqcXvF#f|Vo-F48Iw;s}k2qrKH z_yR-jivs9K^i*3UhKZf@5}_zlXP__M6m{Q^H_aWrTk7I*;fWp!h%nn-8rpyh}WzTa1+*YAOLIs&$`r5>axN{RHTfU3mW^r*ia`krfw!xg5qjxpv zyMQM(&6uGhDl!2A^u^IYedd>HAXF(eB@H3bqGO*qWNet*MIVA#fw445dN_$N zG(B>W1!{co?#ASt*e()tJXh*+1=cteZcmh+Z>%j%d^g*Dgq>=c1I&!lSXtBVHncdd z^mH6A*PM^_7+xd>dEHGjd4mKR+e++Ncej?#mO!rB*&00r!+Jhwl4=t()}!xAJY0zE z*?~e+Qn6-md;no9fN+3?^GTdhRD3@BR4}DHCzSl))~BSE20B2+PuI zst220^vHD$N{(N}9s7${zsK*TvZ?k{SuTGpaSBQkPB@(ie8P7i`4p2{6+}4;8~EU@ zzR$+E$`%+LfQ>%iIkB#<_Su?6mUQXW>wGmjzNc6>kL{<+wISxn{x+Uo^~| zhT3I^s@z2)j0}pUU#MC4({(=XYr8udW6FOo@D$A!q?iMU)kG&ylg8#{XKM-dJILUS)$5Zx-;H4S?; channelBindings(): Record; operationBindings(): Record; diff --git a/src/models/external-docs.ts b/src/models/external-documentation.ts similarity index 100% rename from src/models/external-docs.ts rename to src/models/external-documentation.ts diff --git a/src/models/external-documentations.ts b/src/models/external-documentations.ts new file mode 100644 index 000000000..e9f14b451 --- /dev/null +++ b/src/models/external-documentations.ts @@ -0,0 +1,11 @@ +import { Collection } from './collection'; + +import type { ExternalDocumentationInterface } from './external-documentation'; + +export type ExternalDocumentationsInterface = Collection + +export class ExternalDocumentations extends Collection implements ExternalDocumentationsInterface { + override get(id: string): ExternalDocumentationInterface | undefined { + return this.collections.find(externalDocs => externalDocs.meta('id' as any) === id); + } +} \ No newline at end of file diff --git a/src/models/index.ts b/src/models/index.ts index 1161d0a38..cb0aa250f 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -16,7 +16,7 @@ export * from './correlation-id'; export * from './correlation-ids'; export * from './extension'; export * from './extensions'; -export * from './external-docs'; +export * from './external-documentation'; export * from './info'; export * from './license'; export * from './message-example'; diff --git a/src/models/mixins.ts b/src/models/mixins.ts index 7cd305208..42d8cff71 100644 --- a/src/models/mixins.ts +++ b/src/models/mixins.ts @@ -1,6 +1,6 @@ import type { BindingsInterface } from './bindings'; import type { ExtensionsInterface } from './extensions'; -import type { ExternalDocumentationInterface } from './external-docs'; +import type { ExternalDocumentationInterface } from './external-documentation'; import type { TagsInterface } from './tags'; export interface BindingsMixinInterface { diff --git a/src/models/tags.ts b/src/models/tags.ts index 475cec00d..23a3260de 100644 --- a/src/models/tags.ts +++ b/src/models/tags.ts @@ -1,4 +1,5 @@ import { Collection } from './collection'; + import type { TagInterface } from './tag'; export type TagsInterface = Collection diff --git a/src/models/v2/channel.ts b/src/models/v2/channel.ts index 5ba192a9d..8265c2024 100644 --- a/src/models/v2/channel.ts +++ b/src/models/v2/channel.ts @@ -14,7 +14,7 @@ import type { BindingsInterface } from '../bindings'; import type { ChannelInterface } from '../channel'; import type { ChannelParametersInterface } from '../channel-parameters'; import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; +import type { ExternalDocumentationInterface } from '../external-documentation'; import type { MessagesInterface } from '../messages'; import type { MessageInterface } from '../message'; import type { OperationsInterface } from '../operations'; diff --git a/src/models/v2/components.ts b/src/models/v2/components.ts index 8f2ace0af..d66dc06d9 100644 --- a/src/models/v2/components.ts +++ b/src/models/v2/components.ts @@ -25,6 +25,8 @@ import { SecuritySchemes } from '../security-schemes'; import { CorrelationIds } from '../correlation-ids'; import { Operations } from '../operations'; import { Message } from './message'; +import { ExternalDocumentations } from '../external-documentations'; +import { Tags } from '../tags'; import { tilde } from '../../utils'; @@ -42,7 +44,8 @@ import type { OperationTraitsInterface } from '../operation-traits'; import type { SecuritySchemesInterface } from '../security-schemes'; import type { MessageTraitsInterface } from '../message-traits'; import type { OperationsInterface } from '../operations'; -import type { OperationInterface } from '../operation'; +import type { ExternalDocumentationsInterface } from '../external-documentations'; +import type { TagsInterface } from '../tags'; import type { v2 } from '../../spec-types'; @@ -52,11 +55,11 @@ export class Components extends BaseModel implements Compon } channels(): ChannelsInterface { - return new Channels( - Object.entries(this._json.channels || {}).map(([channelAddress, channel]) => - this.createModel(Channel, channel as v2.ChannelObject, { id: channelAddress, address: '', pointer: `/components/channels/${tilde(channelAddress)}` }) - ) - ); + return this.createCollection('channels', Channels, Channel); + } + + operations(): OperationsInterface { + return new Operations([]); } messages(): MessagesInterface { @@ -75,12 +78,6 @@ export class Components extends BaseModel implements Compon return this.createCollection('serverVariables', ServerVariables, ServerVariable); } - operations(): OperationsInterface { - const operations: OperationInterface[] = []; - this.channels().forEach(channel => operations.push(...channel.operations().all())); - return new Operations(operations); - } - operationTraits(): OperationTraitsInterface { return this.createCollection('operationTraits', OperationTraits, OperationTrait); } @@ -97,6 +94,14 @@ export class Components extends BaseModel implements Compon return this.createCollection('securitySchemes', SecuritySchemes, SecurityScheme); } + tags(): TagsInterface { + return new Tags([]); + } + + externalDocs(): ExternalDocumentationsInterface { + return new ExternalDocumentations([]); + } + serverBindings(): Record { return this.createBindings('serverBindings'); } @@ -124,7 +129,7 @@ export class Components extends BaseModel implements Compon protected createCollection, T extends BaseModel>(itemsName: keyof v2.ComponentsObject, collectionModel: Constructor, itemModel: Constructor): M { const collectionItems: T[] = []; Object.entries(this._json[itemsName] || {}).forEach(([id, item]) => { - collectionItems.push(this.createModel(itemModel, item as any, { id, pointer: `/components/${itemsName}/${id}` } as any)); + collectionItems.push(this.createModel(itemModel, item as any, { id, pointer: `/components/${itemsName}/${tilde(id)}` } as any)); }); return new collectionModel(collectionItems); } diff --git a/src/models/v2/external-docs.ts b/src/models/v2/external-documentation.ts similarity index 85% rename from src/models/v2/external-docs.ts rename to src/models/v2/external-documentation.ts index 5c6e513e8..ccaf9d7a3 100644 --- a/src/models/v2/external-docs.ts +++ b/src/models/v2/external-documentation.ts @@ -2,12 +2,12 @@ import { BaseModel } from '../base'; import { hasDescription, description, extensions } from './mixins'; -import type { ExternalDocumentationInterface } from '../external-docs'; +import type { ExternalDocumentationInterface } from '../external-documentation'; import type { ExtensionsInterface } from '../extensions'; import type { v2 } from '../../spec-types'; -export class ExternalDocumentation extends BaseModel implements ExternalDocumentationInterface { +export class ExternalDocumentation extends BaseModel implements ExternalDocumentationInterface { url(): string { return this._json.url; } diff --git a/src/models/v2/index.ts b/src/models/v2/index.ts index 17b34f9b6..f23a56bf7 100644 --- a/src/models/v2/index.ts +++ b/src/models/v2/index.ts @@ -10,7 +10,7 @@ export { Contact as ContactV2 } from './contact'; export { CorrelationId as CorrelationIdV2 } from './correlation-id'; export { Extension as ExtensionV2 } from './extension'; export { Extensions as ExtensionsV2 } from '../extensions'; -export { ExternalDocumentation as ExternalDocumentationV2 } from './external-docs'; +export { ExternalDocumentation as ExternalDocumentationV2 } from './external-documentation'; export { Info as InfoV2 } from './info'; export { License as LicenseV2 } from './license'; export { MessageExample as MessageExampleV2 } from './message-example'; diff --git a/src/models/v2/info.ts b/src/models/v2/info.ts index 5afae182b..ad21214f9 100644 --- a/src/models/v2/info.ts +++ b/src/models/v2/info.ts @@ -1,6 +1,6 @@ import { BaseModel } from '../base'; import { Contact } from './contact'; -import { ExternalDocumentation } from './external-docs'; +import { ExternalDocumentation } from './external-documentation'; import { License } from './license'; import { Tags } from '../tags'; import { Tag } from './tag'; @@ -10,7 +10,7 @@ import { hasDescription, description, extensions } from './mixins'; import type { ContactInterface } from '../contact'; import type { InfoInterface } from '../info'; import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; +import type { ExternalDocumentationInterface } from '../external-documentation'; import type { LicenseInterface } from '../license'; import type { TagsInterface } from '../tags'; diff --git a/src/models/v2/message-trait.ts b/src/models/v2/message-trait.ts index 2f1333acb..5948331a6 100644 --- a/src/models/v2/message-trait.ts +++ b/src/models/v2/message-trait.ts @@ -11,7 +11,7 @@ import { bindings, hasDescription, description, extensions, hasExternalDocs, ext import type { BindingsInterface } from '../bindings'; import type { CorrelationIdInterface } from '../correlation-id'; import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; +import type { ExternalDocumentationInterface } from '../external-documentation'; import type { MessageExamplesInterface } from '../message-examples'; import type { MessageTraitInterface } from '../message-trait'; import type { SchemaInterface } from '../schema'; diff --git a/src/models/v2/mixins.ts b/src/models/v2/mixins.ts index d93f099cf..464b1847a 100644 --- a/src/models/v2/mixins.ts +++ b/src/models/v2/mixins.ts @@ -2,7 +2,7 @@ import { Bindings } from './bindings'; import { Binding } from './binding'; import { Extensions } from '../extensions'; import { Extension } from './extension'; -import { ExternalDocumentation } from './external-docs'; +import { ExternalDocumentation } from './external-documentation'; import { Tags } from '../tags'; import { Tag } from './tag'; @@ -13,7 +13,7 @@ import type { BaseModel } from '../base'; import type { BindingsInterface } from '../bindings'; import type { ExtensionsInterface } from '../extensions'; import type { ExtensionInterface } from '../extension'; -import type { ExternalDocumentationInterface } from '../external-docs'; +import type { ExternalDocumentationInterface } from '../external-documentation'; import type { TagsInterface } from '../tags'; import type { v2 } from '../../spec-types'; diff --git a/src/models/v2/operation-trait.ts b/src/models/v2/operation-trait.ts index 7b9d78a5a..d7910b6dd 100644 --- a/src/models/v2/operation-trait.ts +++ b/src/models/v2/operation-trait.ts @@ -8,7 +8,7 @@ import { bindings, hasDescription, description, extensions, hasExternalDocs, ext import type { BindingsInterface } from '../bindings'; import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; +import type { ExternalDocumentationInterface } from '../external-documentation'; import type { ChannelsInterface } from '../channels'; import type { OperationAction } from '../operation'; import type { OperationTraitInterface } from '../operation-trait'; diff --git a/src/models/v2/schema.ts b/src/models/v2/schema.ts index 49c5ac1d8..d986706d2 100644 --- a/src/models/v2/schema.ts +++ b/src/models/v2/schema.ts @@ -6,7 +6,7 @@ import { retrievePossibleRef, hasRef } from '../../utils'; import type { ModelMetadata } from '../base'; import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; +import type { ExternalDocumentationInterface } from '../external-documentation'; import type { SchemaInterface } from '../schema'; import type { v2 } from '../../spec-types'; diff --git a/src/models/v2/tag.ts b/src/models/v2/tag.ts index 758043b05..e67144333 100644 --- a/src/models/v2/tag.ts +++ b/src/models/v2/tag.ts @@ -3,12 +3,12 @@ import { BaseModel } from '../base'; import { hasDescription, description, extensions, hasExternalDocs, externalDocs } from './mixins'; import type { ExtensionsInterface } from '../extensions'; -import type{ ExternalDocumentationInterface } from '../external-docs'; +import type{ ExternalDocumentationInterface } from '../external-documentation'; import type { TagInterface } from '../tag'; import type { v2 } from '../../spec-types'; -export class Tag extends BaseModel implements TagInterface { +export class Tag extends BaseModel implements TagInterface { name(): string { return this._json.name; } diff --git a/src/models/v3/asyncapi.ts b/src/models/v3/asyncapi.ts index 81b3ea604..dae3d17bb 100644 --- a/src/models/v3/asyncapi.ts +++ b/src/models/v3/asyncapi.ts @@ -1,15 +1,29 @@ import { BaseModel } from '../base'; +import { Info } from './info'; +import { Servers } from '../servers'; +import { Server } from './server'; import { Channels } from '../channels'; import { Channel } from './channel'; import { Operations } from '../operations'; import { Operation } from './operation'; +import { Messages } from '../messages'; +import { SecuritySchemes } from '../security-schemes'; +import { SecurityScheme } from './security-scheme'; +import { Components } from './components'; import { extensions } from './mixins'; import { tilde } from '../../utils'; import type { AsyncAPIDocumentInterface } from '../asyncapi'; +import type { InfoInterface } from '../info'; +import type { ServersInterface } from '../servers'; import type { ChannelsInterface } from '../channels'; import type { OperationsInterface } from '../operations'; +import type { MessagesInterface } from '../messages'; +import type { MessageInterface } from '../message'; +import type { ComponentsInterface } from '../components'; +import type { SecuritySchemesInterface } from '../security-schemes'; +import type { ExtensionsInterface } from '../extensions'; import type { v3 } from '../../spec-types'; @@ -26,12 +40,16 @@ export class AsyncAPIDocument extends BaseModel implements As return !!this._json.defaultContentType; } - info() { - return null as any; + info(): InfoInterface { + return this.createModel(Info, this._json.info, { pointer: '/info' }); } - servers() { - return null as any; + servers(): ServersInterface { + return new Servers( + Object.entries(this._json.servers || {}).map(([serverName, server]) => + this.createModel(Server, server, { id: serverName, pointer: `/servers/${tilde(serverName)}` }) + ) + ); } channels(): ChannelsInterface { @@ -50,23 +68,37 @@ export class AsyncAPIDocument extends BaseModel implements As ); } - messages() { - return null as any; + messages(): MessagesInterface { + const messages: MessageInterface[] = []; + const messagesData: any[] = []; + this.channels().forEach(channel => { + channel.messages().forEach(message => { + if (!messagesData.includes(message.json())) { + messagesData.push(message.json()); + messages.push(message); + } + }); + }); + return new Messages(messages); } schemas() { return null as any; } - securitySchemes() { - return null as any; + securitySchemes(): SecuritySchemesInterface { + return new SecuritySchemes( + Object.entries(this._json.components?.securitySchemes || {}).map(([securitySchemeName, securityScheme]) => + this.createModel(SecurityScheme, securityScheme as v3.SecuritySchemeObject, { id: securitySchemeName, pointer: `/components/securitySchemes/${securitySchemeName}` }) + ) + ); } - components() { - return null as any; + components(): ComponentsInterface { + return this.createModel(Components, this._json.components || {}, { pointer: '/components' }); } - extensions() { + extensions(): ExtensionsInterface { return extensions(this); } } diff --git a/src/models/v3/channel.ts b/src/models/v3/channel.ts index c1e65cbc6..16e2211d8 100644 --- a/src/models/v3/channel.ts +++ b/src/models/v3/channel.ts @@ -14,7 +14,7 @@ import type { BindingsInterface } from '../bindings'; import type { ChannelInterface } from '../channel'; import type { ChannelParametersInterface } from '../channel-parameters'; import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; +import type { ExternalDocumentationInterface } from '../external-documentation'; import type { MessagesInterface } from '../messages'; import type { OperationsInterface } from '../operations'; import type { OperationInterface } from '../operation'; diff --git a/src/models/v3/components.ts b/src/models/v3/components.ts new file mode 100644 index 000000000..b58501a79 --- /dev/null +++ b/src/models/v3/components.ts @@ -0,0 +1,154 @@ +import { BaseModel } from '../base'; +import { Collection } from '../collection'; + +import { Bindings } from './bindings'; +import { Binding } from './binding'; +import { Channel } from './channel'; +import { ChannelParameter } from './channel-parameter'; +import { CorrelationId } from './correlation-id'; +import { MessageTrait } from './message-trait'; +import { OperationTrait } from './operation-trait'; +import { Schema } from './schema'; +import { SecurityScheme } from './security-scheme'; +import { Server } from './server'; +import { ServerVariable } from './server-variable'; +import { extensions } from './mixins'; +import { Servers } from '../servers'; +import { Channels } from '../channels'; +import { Messages } from '../messages'; +import { Schemas } from '../schemas'; +import { ChannelParameters } from '../channel-parameters'; +import { ServerVariables } from '../server-variables'; +import { OperationTraits } from '../operation-traits'; +import { MessageTraits } from '../message-traits'; +import { SecuritySchemes } from '../security-schemes'; +import { CorrelationIds } from '../correlation-ids'; +import { Operations } from '../operations'; +import { Operation } from './operation'; +import { Message } from './message'; +import { ExternalDocumentations } from '../external-documentations'; +import { ExternalDocumentation } from './external-documentation'; +import { Tags } from '../tags'; +import { Tag } from './tag'; + +import { tilde } from '../../utils'; + +import type { BindingsInterface } from '../bindings'; +import type { ComponentsInterface } from '../components'; +import type { ExtensionsInterface } from '../extensions'; +import type { Constructor } from '../utils'; +import type { ServersInterface } from '../servers'; +import type { ChannelsInterface } from '../channels'; +import type { MessagesInterface } from '../messages'; +import type { SchemasInterface } from '../schemas'; +import type { ChannelParametersInterface } from '../channel-parameters'; +import type { ServerVariablesInterface } from '../server-variables'; +import type { OperationTraitsInterface } from '../operation-traits'; +import type { SecuritySchemesInterface } from '../security-schemes'; +import type { MessageTraitsInterface } from '../message-traits'; +import type { OperationsInterface } from '../operations'; +import type { ExternalDocumentationsInterface } from '../external-documentations'; +import type { TagsInterface } from '../tags'; + +import type { v3 } from '../../spec-types'; + +export class Components extends BaseModel implements ComponentsInterface { + servers(): ServersInterface { + return this.createCollection('servers', Servers, Server); + } + + channels(): ChannelsInterface { + return this.createCollection('channels', Channels, Channel); + } + + operations(): OperationsInterface { + return this.createCollection('operations', Operations, Operation); + } + + messages(): MessagesInterface { + return this.createCollection('messages', Messages, Message); + } + + schemas(): SchemasInterface { + return this.createCollection('schemas', Schemas, Schema); + } + + channelParameters(): ChannelParametersInterface { + return this.createCollection('parameters', ChannelParameters, ChannelParameter); + } + + serverVariables(): ServerVariablesInterface { + return this.createCollection('serverVariables', ServerVariables, ServerVariable); + } + + operationTraits(): OperationTraitsInterface { + return this.createCollection('operationTraits', OperationTraits, OperationTrait); + } + + messageTraits(): MessageTraitsInterface { + return this.createCollection('messageTraits', MessageTraits, MessageTrait); + } + + correlationIds(): CorrelationIds { + return this.createCollection('correlationIds', CorrelationIds, CorrelationId); + } + + securitySchemes(): SecuritySchemesInterface { + return this.createCollection('securitySchemes', SecuritySchemes, SecurityScheme); + } + + tags(): TagsInterface { + return this.createCollection('tags', Tags, Tag); + } + + externalDocs(): ExternalDocumentationsInterface { + return this.createCollection('externalDocs', ExternalDocumentations, ExternalDocumentation); + } + + serverBindings(): Record { + return this.createBindings('serverBindings'); + } + + channelBindings(): Record { + return this.createBindings('channelBindings'); + } + + operationBindings(): Record { + return this.createBindings('operationBindings'); + } + + messageBindings(): Record { + return this.createBindings('messageBindings'); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } + + isEmpty(): boolean { + return Object.keys(this._json).length === 0; + } + + protected createCollection, T extends BaseModel>(itemsName: keyof v3.ComponentsObject, collectionModel: Constructor, itemModel: Constructor): M { + const collectionItems: T[] = []; + Object.entries(this._json[itemsName] || {}).forEach(([id, item]) => { + collectionItems.push(this.createModel(itemModel, item as any, { id, pointer: `/components/${itemsName}/${tilde(id)}` } as any)); + }); + return new collectionModel(collectionItems); + } + + protected createBindings(itemsName: 'serverBindings' | 'channelBindings' | 'operationBindings' | 'messageBindings'): Record { + return Object.entries(this._json[itemsName] || {}).reduce((bindings, [name, item]) => { + const bindingsData = item || {}; + const asyncapi = this.meta('asyncapi'); + const pointer = `components/${itemsName}/${name}`; + bindings[name] = new Bindings( + Object.entries(bindingsData).map(([protocol, binding]) => + this.createModel(Binding, binding, { protocol, pointer: `${pointer}/${protocol}` }) + ), + { originalData: bindingsData as any, asyncapi, pointer } + ); + return bindings; + }, {} as Record); + } +} diff --git a/src/models/v3/contact.ts b/src/models/v3/contact.ts new file mode 100644 index 000000000..69166bd18 --- /dev/null +++ b/src/models/v3/contact.ts @@ -0,0 +1,38 @@ +import { BaseModel } from '../base'; + +import { extensions } from './mixins'; + +import type { ContactInterface } from '../contact'; +import type { ExtensionsInterface } from '../extensions'; + +import type { v3 } from '../../spec-types'; + +export class Contact extends BaseModel implements ContactInterface { + hasName(): boolean { + return !!this._json.name; + } + + name(): string | undefined { + return this._json.name; + } + + hasUrl(): boolean { + return !!this._json.url; + } + + url(): string | undefined { + return this._json.url; + } + + hasEmail(): boolean { + return !!this._json.email; + } + + email(): string | undefined { + return this._json.email; + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} \ No newline at end of file diff --git a/src/models/v3/external-docs.ts b/src/models/v3/external-documentation.ts similarity index 97% rename from src/models/v3/external-docs.ts rename to src/models/v3/external-documentation.ts index edafb417c..27abd8aab 100644 --- a/src/models/v3/external-docs.ts +++ b/src/models/v3/external-documentation.ts @@ -2,7 +2,7 @@ import { BaseModel } from '../base'; import { hasDescription, description, extensions } from './mixins'; -import type { ExternalDocumentationInterface } from '../external-docs'; +import type { ExternalDocumentationInterface } from '../external-documentation'; import type { ExtensionsInterface } from '../extensions'; import type { v3 } from '../../spec-types'; diff --git a/src/models/v3/index.ts b/src/models/v3/index.ts index 4da27ddc5..6187a29e2 100644 --- a/src/models/v3/index.ts +++ b/src/models/v3/index.ts @@ -5,10 +5,14 @@ export { ChannelParameter as ChannelParameterV3 } from './channel-parameter'; export { ChannelParameters as ChannelParametersV3 } from '../channel-parameters'; export { Channel as ChannelV3 } from './channel'; export { Channels as ChannelsV3 } from '../channels'; +export { Components as ComponentsV3 } from './components'; +export { Contact as ContactV3 } from './contact'; export { CorrelationId as CorrelationIdV3 } from './correlation-id'; export { Extension as ExtensionV3 } from './extension'; export { Extensions as ExtensionsV3 } from '../extensions'; -export { ExternalDocumentation as ExternalDocumentationV3 } from './external-docs'; +export { ExternalDocumentation as ExternalDocumentationV3 } from './external-documentation'; +export { Info as InfoV3 } from './info'; +export { License as LicenseV3 } from './license'; export { MessageExample as MessageExampleV3 } from './message-example'; export { MessageExamples as MessageExamplesV3 } from '../message-examples'; export { MessageTrait as MessageTraitV3 } from './message-trait'; diff --git a/src/models/v3/info.ts b/src/models/v3/info.ts new file mode 100644 index 000000000..be5cfc68c --- /dev/null +++ b/src/models/v3/info.ts @@ -0,0 +1,82 @@ +import { BaseModel } from '../base'; +import { Contact } from './contact'; +import { License } from './license'; + +import { hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from './mixins'; + +import type { ContactInterface } from '../contact'; +import type { InfoInterface } from '../info'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-documentation'; +import type { LicenseInterface } from '../license'; +import type { TagsInterface } from '../tags'; + +import type { v3 } from '../../spec-types'; + +export class Info extends BaseModel implements InfoInterface { + title(): string { + return this._json.title; + } + + version(): string { + return this._json.version; + } + + hasId(): boolean { + return !!this._meta.asyncapi.parsed.id; + } + + id(): string | undefined { + return this._meta.asyncapi.parsed.id; + } + + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + + hasTermsOfService(): boolean { + return !!this._json.termsOfService; + } + + termsOfService(): string | undefined { + return this._json.termsOfService; + } + + hasContact(): boolean { + return Object.keys(this._json.contact || {}).length > 0; + } + + contact(): ContactInterface | undefined { + const contact = this._json.contact; + return contact && this.createModel(Contact, contact, { pointer: this.jsonPath('contact') }); + } + + hasLicense(): boolean { + return Object.keys(this._json.license || {}).length > 0; + } + + license(): LicenseInterface | undefined { + const license = this._json.license; + return license && this.createModel(License, license, { pointer: this.jsonPath('license') }); + } + + hasExternalDocs(): boolean { + return hasExternalDocs(this); + } + + externalDocs(): ExternalDocumentationInterface | undefined { + return externalDocs(this); + } + + tags(): TagsInterface { + return tags(this); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} \ No newline at end of file diff --git a/src/models/v3/license.ts b/src/models/v3/license.ts new file mode 100644 index 000000000..8280080fc --- /dev/null +++ b/src/models/v3/license.ts @@ -0,0 +1,26 @@ +import { BaseModel } from '../base'; + +import { extensions } from './mixins'; + +import type { ExtensionsInterface } from '../extensions'; +import type { LicenseInterface } from '../license'; + +import type { v3 } from '../../spec-types'; + +export class License extends BaseModel implements LicenseInterface { + name(): string { + return this._json.name; + } + + hasUrl(): boolean { + return !!this._json.url; + } + + url(): string | undefined { + return this._json.url; + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} diff --git a/src/models/v3/message-trait.ts b/src/models/v3/message-trait.ts index eee94be89..180c90fe7 100644 --- a/src/models/v3/message-trait.ts +++ b/src/models/v3/message-trait.ts @@ -11,7 +11,7 @@ import { bindings, hasDescription, description, extensions, hasExternalDocs, ext import type { BindingsInterface } from '../bindings'; import type { CorrelationIdInterface } from '../correlation-id'; import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; +import type { ExternalDocumentationInterface } from '../external-documentation'; import type { MessageExamplesInterface } from '../message-examples'; import type { MessageTraitInterface } from '../message-trait'; import type { SchemaInterface } from '../schema'; diff --git a/src/models/v3/mixins.ts b/src/models/v3/mixins.ts index 605cafed2..9c45ef614 100644 --- a/src/models/v3/mixins.ts +++ b/src/models/v3/mixins.ts @@ -2,7 +2,7 @@ import { Bindings } from './bindings'; import { Binding } from './binding'; import { Extensions } from '../extensions'; import { Extension } from './extension'; -import { ExternalDocumentation } from './external-docs'; +import { ExternalDocumentation } from './external-documentation'; import { Tags } from '../tags'; import { Tag } from './tag'; @@ -13,7 +13,7 @@ import type { BaseModel } from '../base'; import type { BindingsInterface } from '../bindings'; import type { ExtensionsInterface } from '../extensions'; import type { ExtensionInterface } from '../extension'; -import type { ExternalDocumentationInterface } from '../external-docs'; +import type { ExternalDocumentationInterface } from '../external-documentation'; import type { TagsInterface } from '../tags'; import type { v3 } from '../../spec-types'; diff --git a/src/models/v3/operation-trait.ts b/src/models/v3/operation-trait.ts index a985182ad..1f5e158d0 100644 --- a/src/models/v3/operation-trait.ts +++ b/src/models/v3/operation-trait.ts @@ -9,7 +9,7 @@ import { bindings, hasDescription, description, extensions, hasExternalDocs, ext import type { BindingsInterface } from '../bindings'; import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; +import type { ExternalDocumentationInterface } from '../external-documentation'; import type { ChannelsInterface } from '../channels'; import type { OperationAction } from '../operation'; import type { OperationTraitInterface } from '../operation-trait'; diff --git a/src/models/v3/schema.ts b/src/models/v3/schema.ts index 889f254d7..b42d38c7a 100644 --- a/src/models/v3/schema.ts +++ b/src/models/v3/schema.ts @@ -6,7 +6,7 @@ import { retrievePossibleRef, hasRef } from '../../utils'; import type { ModelMetadata } from '../base'; import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-docs'; +import type { ExternalDocumentationInterface } from '../external-documentation'; import type { SchemaInterface } from '../schema'; import type { v3 } from '../../spec-types'; diff --git a/src/models/v3/tag.ts b/src/models/v3/tag.ts index 84ea47133..c3dec38a7 100644 --- a/src/models/v3/tag.ts +++ b/src/models/v3/tag.ts @@ -3,7 +3,7 @@ import { BaseModel } from '../base'; import { hasDescription, description, extensions, hasExternalDocs, externalDocs } from './mixins'; import type { ExtensionsInterface } from '../extensions'; -import type{ ExternalDocumentationInterface } from '../external-docs'; +import type{ ExternalDocumentationInterface } from '../external-documentation'; import type { TagInterface } from '../tag'; import type { v3 } from '../../spec-types'; diff --git a/src/spec-types/v3.ts b/src/spec-types/v3.ts index 250046dd1..6ce81c9cb 100644 --- a/src/spec-types/v3.ts +++ b/src/spec-types/v3.ts @@ -8,12 +8,35 @@ export interface AsyncAPIObject extends SpecificationExtensions { asyncapi: AsyncAPIVersion; id?: Identifier; defaultContentType?: DefaultContentType; + info: InfoObject; servers?: ServersObject; channels?: ChannelsObject; operations?: OperationsObject; components?: ComponentsObject; } +export interface InfoObject extends SpecificationExtensions { + title: string; + version: string; + description?: string; + termsOfService?: string; + contact?: ContactObject; + license?: LicenseObject; + tags?: TagsObject; + externalDocs?: ExternalDocumentationObject; +} + +export interface ContactObject extends SpecificationExtensions { + name?: string; + url?: string; + email?: string; +} + +export interface LicenseObject extends SpecificationExtensions { + name: string; + url?: string; +} + export type ServersObject = Record; export interface ServerObject extends SpecificationExtensions { @@ -200,8 +223,9 @@ export interface ExternalDocumentationObject extends SpecificationExtensions { } export interface ComponentsObject extends SpecificationExtensions { - channels?: Record; servers?: Record; + channels?: Record; + operations?: Record; schemas?: Record; messages?: Record; securitySchemes?: Record; @@ -210,6 +234,8 @@ export interface ComponentsObject extends SpecificationExtensions { correlationIds?: Record; operationTraits?: Record; messageTraits?: Record; + tags?: Record; + externalDocs?: Record; serverBindings?: Record; channelBindings?: Record; operationBindings?: Record; diff --git a/test/models/v2/components.spec.ts b/test/models/v2/components.spec.ts index 1fc09b4be..c9d624a99 100644 --- a/test/models/v2/components.spec.ts +++ b/test/models/v2/components.spec.ts @@ -23,12 +23,12 @@ import { OperationTraits } from '../../../src/models/operation-traits'; import { MessageTraits } from '../../../src/models/message-traits'; import { CorrelationIds } from '../../../src/models/correlation-ids'; import { SecuritySchemes } from '../../../src/models/security-schemes'; -import { Operation } from '../../../src/models/v2/operation'; import { Operations } from '../../../src/models/operations'; -import { OperationAction } from '../../../src/models/operation'; +import { Tags } from '../../../src/models/tags'; +import { ExternalDocumentations } from '../../../src/models/external-documentations'; import { serializeInput, assertExtensions } from './utils'; + import type { v2 } from '../../../src/spec-types'; -import { ChannelObject } from '../../../src/spec-types/v2'; describe('Components model', function() { describe('.servers()', function() { @@ -55,7 +55,7 @@ describe('Components model', function() { const items = d.channels(); expect(items).toBeInstanceOf(Channels); expect(items.all()).toEqual([ - new Channel(doc.channels?.channel as ChannelObject, {id: 'channel', address: '', pointer: '/components/channels/channel'} as ModelMetadata & { id: string, address: string } | undefined) + new Channel(doc.channels?.channel as v2.ChannelObject, {id: 'channel', pointer: '/components/channels/channel'} as ModelMetadata & { id: string, address: string } | undefined) ]); }); @@ -68,6 +68,16 @@ describe('Components model', function() { }); }); + describe('.operations()', function() { + it('should return Operations with empty collection', function() { + const doc = {}; + const d = new Components(doc); + const operations = d.operations(); + expect(operations).toBeInstanceOf(Operations); + expect(operations.all()).toHaveLength(0); + }); + }); + describe('.messages()', function() { it('should return Messages with Message Object', function() { const doc = serializeInput({ messages: { message: {} } }); @@ -180,28 +190,6 @@ describe('Components model', function() { }); }); - describe('.operations()', function() { - it('should return Operations with Operation Object', function() { - const doc = { channels: { channel: { publish: {} } } }; - const d = new Components(doc); - const expectedOperations: Operation[] = [ - new Operation({}, {action: 'publish', id: 'channel_publish', pointer: '/components/channels/channel/publish'} as ModelMetadata & { id: string, action: OperationAction }) - ]; - - const operations = d.operations(); - expect(operations).toBeInstanceOf(Operations); - expect(operations.all()).toEqual(expectedOperations); - }); - - it('should return Operations with empty operation objects when operations are not defined in channels', function() { - const doc = { channels: { channel: {} } }; - const d = new Components(doc); - const operations = d.operations(); - expect(operations).toBeInstanceOf(Operations); - expect(operations.all()).toHaveLength(0); - }); - }); - describe('.securitySchemes()', function() { it('should return SecuritySchemes with SecurityScheme Object', function() { const doc = serializeInput({ securitySchemes: { scheme: {} } }); @@ -218,6 +206,26 @@ describe('Components model', function() { }); }); + describe('.tags()', function() { + it('should return Tags with empty collection', function() { + const doc = {}; + const d = new Components(doc); + const tags = d.tags(); + expect(tags).toBeInstanceOf(Tags); + expect(tags.all()).toHaveLength(0); + }); + }); + + describe('.externalDocs()', function() { + it('should return ExternalDocumentations with empty collection', function() { + const doc = {}; + const d = new Components(doc); + const externalDocs = d.externalDocs(); + expect(externalDocs).toBeInstanceOf(ExternalDocumentations); + expect(externalDocs.all()).toHaveLength(0); + }); + }); + describe('.serverBindings()', function() { it('should return map of serverBindings', function() { const doc = serializeInput({ serverBindings: { binding: {} } }); diff --git a/test/models/v2/external-docs.spec.ts b/test/models/v2/external-documentation.spec.ts similarity index 96% rename from test/models/v2/external-docs.spec.ts rename to test/models/v2/external-documentation.spec.ts index e936f3842..986460541 100644 --- a/test/models/v2/external-docs.spec.ts +++ b/test/models/v2/external-documentation.spec.ts @@ -1,4 +1,4 @@ -import { ExternalDocumentation } from '../../../src/models/v2/external-docs'; +import { ExternalDocumentation } from '../../../src/models/v2/external-documentation'; import { serializeInput, assertDescription, assertExtensions } from './utils'; diff --git a/test/models/v2/info.spec.ts b/test/models/v2/info.spec.ts index 49c1d8c73..f986353ea 100644 --- a/test/models/v2/info.spec.ts +++ b/test/models/v2/info.spec.ts @@ -1,7 +1,7 @@ import { Info } from '../../../src/models/v2/info'; import { Contact } from '../../../src/models/v2/contact'; import { License } from '../../../src/models/v2/license'; -import { ExternalDocumentation } from '../../../src/models/v2/external-docs'; +import { ExternalDocumentation } from '../../../src/models/v2/external-documentation'; import { Tags } from '../../../src/models/tags'; import { Tag } from '../../../src/models/v2/tag'; import { createDetailedAsyncAPI } from '../../../src/utils'; diff --git a/test/models/v3/asyncapi.spec.ts b/test/models/v3/asyncapi.spec.ts new file mode 100644 index 000000000..40ec75337 --- /dev/null +++ b/test/models/v3/asyncapi.spec.ts @@ -0,0 +1,165 @@ +import { AsyncAPIDocument } from '../../../src/models/v3/asyncapi'; +import { Channels } from '../../../src/models/channels'; +import { Components } from '../../../src/models/v3/components'; +import { Info } from '../../../src/models/v3/info'; +import { Messages } from '../../../src/models/messages'; +import { Operations } from '../../../src/models/operations'; +import { SecuritySchemes } from '../../../src/models/security-schemes'; +import { Servers } from '../../../src/models/servers'; + +import { serializeInput, assertExtensions } from './utils'; + +import type { v3 } from '../../../src/spec-types'; + +describe('AsyncAPIDocument model', function() { + describe('.version()', function() { + it('should return the value', function() { + const doc = serializeInput({ asyncapi: '2.0.0' }); + const d = new AsyncAPIDocument(doc); + expect(d.version()).toEqual(doc.asyncapi); + }); + + it('should return undefined when there is no value', function() { + const doc = serializeInput({}); + const d = new AsyncAPIDocument(doc); + expect(d.version()).toBeUndefined(); + }); + }); + + describe('.hasDefaultContentType()', function() { + it('should return true when there is a value', function() { + const doc = serializeInput({ defaultContentType: '...' }); + const d = new AsyncAPIDocument(doc); + expect(d.hasDefaultContentType()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = serializeInput({}); + const d = new AsyncAPIDocument(doc); + expect(d.hasDefaultContentType()).toEqual(false); + }); + }); + + describe('.defaultContentType()', function() { + it('should return the value', function() { + const doc = serializeInput({ defaultContentType: '...' }); + const d = new AsyncAPIDocument(doc); + expect(d.defaultContentType()).toEqual(doc.defaultContentType); + }); + + it('should return undefined when there is no value', function() { + const doc = serializeInput({}); + const d = new AsyncAPIDocument(doc); + expect(d.defaultContentType()).toBeUndefined(); + }); + }); + + describe('.info()', function() { + it('should return an Info object', function() { + const doc = serializeInput({ info: {} }); + const d = new AsyncAPIDocument(doc); + expect(d.info()).toBeInstanceOf(Info); + }); + }); + + describe('.servers()', function() { + it('should return a collection of servers', function() { + const doc = serializeInput({ servers: { development: {} } }); + const d = new AsyncAPIDocument(doc); + expect(d.servers()).toBeInstanceOf(Servers); + expect(d.servers()).toHaveLength(1); + expect(d.servers().all()[0].id()).toEqual('development'); + }); + + it('should return a collection of servers even if servers are not defined', function() { + const doc = serializeInput({}); + const d = new AsyncAPIDocument(doc); + expect(d.servers()).toBeInstanceOf(Servers); + }); + }); + + describe('.channels()', function() { + it('should return a collection of channels', function() { + const doc = serializeInput({ channels: { userSignup: { address: 'user/signup' }, userLogout: { address: 'user/logout' } } }); + const d = new AsyncAPIDocument(doc); + expect(d.channels()).toBeInstanceOf(Channels); + expect(d.channels()).toHaveLength(2); + expect(d.channels().all()[0].address()).toEqual('user/signup'); + expect(d.channels().all()[1].address()).toEqual('user/logout'); + }); + + it('should return a collection of channels even if channels are not defined', function() { + const doc = serializeInput({}); + const d = new AsyncAPIDocument(doc); + expect(d.channels()).toBeInstanceOf(Channels); + }); + }); + + describe('.operations()', function() { + it('should return a collection of operations', function() { + const doc = serializeInput({ operations: { userSignup: {}, userLogout: {} } }); + const d = new AsyncAPIDocument(doc); + expect(d.operations()).toBeInstanceOf(Operations); + expect(d.operations()).toHaveLength(2); + }); + + it('should return a collection of operations even if operations are not defined', function() { + const doc = serializeInput({}); + const d = new AsyncAPIDocument(doc); + expect(d.operations()).toBeInstanceOf(Operations); + }); + }); + + describe('.messages()', function() { + it('should return a collection of messages', function() { + const duplicatedMessage = {}; + const doc = serializeInput({ channels: { userSignup: { address: 'user/signup', messages: { someMessage1: {}, someMessage2: duplicatedMessage } }, userLogout: { address: 'user/logout', messages: { someMessage3: duplicatedMessage } } } }); + const d = new AsyncAPIDocument(doc); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages()).toHaveLength(2); + }); + + it('should return a collection of messages even if messages are not defined', function() { + const doc = serializeInput({}); + const d = new AsyncAPIDocument(doc); + expect(d.messages()).toBeInstanceOf(Messages); + }); + }); + + describe('.schemas()', function() { + it.todo('should return a collection of schemas'); + }); + + describe('.securitySchemes()', function() { + it('should return a collection of securitySchemes', function() { + const doc = serializeInput({ components: { securitySchemes: { security1: { type: 'X509' }, security2: { type: 'apiKey' } } } }); + const d = new AsyncAPIDocument(doc); + expect(d.securitySchemes()).toBeInstanceOf(SecuritySchemes); + expect(d.securitySchemes()).toHaveLength(2); + }); + + it('should return a collection of securitySchemes even if securitySchemes are not defined', function() { + const doc = serializeInput({}); + const d = new AsyncAPIDocument(doc); + expect(d.securitySchemes()).toBeInstanceOf(SecuritySchemes); + }); + }); + + describe('.components()', function() { + it('should return a components model', function() { + const doc = serializeInput({ components: {} }); + const d = new AsyncAPIDocument(doc); + expect(d.components()).toBeInstanceOf(Components); + }); + + it('should return a components model even if components are not defined', function() { + const doc = serializeInput({}); + const d = new AsyncAPIDocument(doc); + expect(d.components()).toBeInstanceOf(Components); + }); + }); + + describe('mixins', function() { + assertExtensions(AsyncAPIDocument); + }); +}); diff --git a/test/models/v3/components.spec.ts b/test/models/v3/components.spec.ts new file mode 100644 index 000000000..48c06d7d6 --- /dev/null +++ b/test/models/v3/components.spec.ts @@ -0,0 +1,343 @@ +import { Components } from '../../../src/models/v3/components'; +import { Bindings } from '../../../src/models/v3/bindings'; +import { Channel } from '../../../src/models/v3/channel'; +import { ChannelParameter } from '../../../src/models/v3/channel-parameter'; +import { CorrelationId } from '../../../src/models/v3/correlation-id'; +import { OperationTrait } from '../../../src/models/v3/operation-trait'; +import { Message } from '../../../src/models/v3/message'; +import { MessageTrait } from '../../../src/models/v3/message-trait'; +import { Schema } from '../../../src/models/v3/schema'; +import { Server } from '../../../src/models/v3/server'; +import { ServerVariable } from '../../../src/models/v3/server-variable'; +import { SecurityScheme } from '../../../src/models/v3/security-scheme'; +import { BaseModel, ModelMetadata } from '../../../src/models'; +import { Servers } from '../../../src/models/servers'; +import { Channels } from '../../../src/models/channels'; +import { Messages } from '../../../src/models/messages'; +import { Collection } from '../../../src/models/collection'; +import { Constructor } from '../../../src/models/utils'; +import { Schemas } from '../../../src/models/schemas'; +import { ChannelParameters } from '../../../src/models/channel-parameters'; +import { ServerVariables } from '../../../src/models/server-variables'; +import { OperationTraits } from '../../../src/models/operation-traits'; +import { MessageTraits } from '../../../src/models/message-traits'; +import { CorrelationIds } from '../../../src/models/correlation-ids'; +import { SecuritySchemes } from '../../../src/models/security-schemes'; +import { Operation } from '../../../src/models/v3/operation'; +import { Operations } from '../../../src/models/operations'; +import { Tags } from '../../../src/models/tags'; +import { Tag } from '../../../src/models/v3/tag'; +import { ExternalDocumentations } from '../../../src/models/external-documentations'; +import { ExternalDocumentation } from '../../../src/models/v3/external-documentation'; +import { serializeInput, assertExtensions } from './utils'; + +import type { v3 } from '../../../src/spec-types'; + +describe('Components model', function() { + describe('.servers()', function() { + it('should return Servers with Server Object', function() { + const doc = serializeInput({ servers: { server: {} } }); + + const d = new Components(doc); + testCollection(doc, d.servers(), 'servers', Servers, Server); + }); + + it('should return Servers with empty server objects when servers are not defined', function() { + const doc = serializeInput({}); + const d = new Components(doc); + const items = d.servers(); + expect(items).toBeInstanceOf(Servers); + expect(items.all()).toHaveLength(0); + }); + }); + + describe('.channels()', function() { + it('should return Channels with Channel Object', function() { + const doc = serializeInput({ channels: { channel: {} } }); + const d = new Components(doc); + const items = d.channels(); + expect(items).toBeInstanceOf(Channels); + expect(items.all()).toEqual([ + new Channel(doc.channels?.channel as v3.ChannelObject, {id: 'channel', pointer: '/components/channels/channel'} as ModelMetadata & { id: string, address: string } | undefined) + ]); + }); + + it('should return Channels with empty channel objects when channels are not defined', function() { + const doc = serializeInput({}); + const d = new Components(doc); + const items = d.channels(); + expect(items).toBeInstanceOf(Channels); + expect(items.all()).toHaveLength(0); + }); + }); + + describe('.operations()', function() { + it('should return Operations with Operation Object', function() { + const doc = serializeInput({ operations: { someOperation: {} } }); + const d = new Components(doc); + testCollection(doc, d.operations(), 'operations', Operations, Operation); + }); + + it('should return Operations with empty operations objects when operations are not defined', function() { + const doc = serializeInput({}); + const d = new Components(doc); + const items = d.operations(); + expect(items).toBeInstanceOf(Operations); + expect(items.all()).toHaveLength(0); + }); + }); + + describe('.messages()', function() { + it('should return Messages with Message Object', function() { + const doc = serializeInput({ messages: { message: {} } }); + const d = new Components(doc); + testCollection(doc, d.messages(), 'messages', Messages, Message); + }); + + it('should return Messages with empty message objects when messages are not defined', function() { + const doc = serializeInput({}); + const d = new Components(doc); + const items = d.messages(); + expect(items).toBeInstanceOf(Messages); + expect(items.all()).toHaveLength(0); + }); + }); + + describe('.schemas()', function() { + it('should return Schemas with Schema Object', function() { + const doc = serializeInput({ schemas: { schema: {} } }); + const d = new Components(doc); + testCollection(doc, d.schemas(), 'schemas', Schemas, Schema); + }); + + it('should return Schemas with empty schema objects when schemas are not defined', function() { + const doc = serializeInput({}); + const d = new Components(doc); + const items = d.schemas(); + expect(items).toBeInstanceOf(Schemas); + expect(items.all()).toHaveLength(0); + }); + }); + + describe('.channelParameters()', function() { + it('should return ChannelParameters with ChannelParameter Object', function() { + const doc = serializeInput({ parameters: { parameter: {} } }); + const d = new Components(doc); + testCollection(doc, d.channelParameters(), 'parameters', ChannelParameters, ChannelParameter); + }); + + it('should return Schemas with empty schema objects when schemas are not defined', function() { + const doc = serializeInput({}); + const d = new Components(doc); + const items = d.channelParameters(); + expect(items).toBeInstanceOf(ChannelParameters); + expect(items.all()).toHaveLength(0); + }); + }); + + describe('.serverVariables()', function() { + it('should return ServerVariables with ServerVariable Object', function() { + const doc = serializeInput({ serverVariables: { variable: {} } }); + const d = new Components(doc); + testCollection(doc, d.serverVariables(), 'serverVariables', ServerVariables, ServerVariable); + }); + + it('should return ServerVariables with empty serverVariable objects when serverVariables are not defined', function() { + const doc = serializeInput({}); + const d = new Components(doc); + const items = d.serverVariables(); + expect(items).toBeInstanceOf(ServerVariables); + expect(items.all()).toHaveLength(0); + }); + }); + + describe('.operationTraits()', function() { + it('should return OperationTraits with OperationTrait Object', function() { + const doc = serializeInput({ operationTraits: { trait: {} } }); + const d = new Components(doc); + testCollection(doc, d.operationTraits(), 'operationTraits', OperationTraits, OperationTrait); + }); + + it('should return OperationTraits with empty operationTrait objects when operationTraits are not defined', function() { + const doc = serializeInput({}); + const d = new Components(doc); + const items = d.operationTraits(); + expect(items).toBeInstanceOf(OperationTraits); + expect(items.all()).toHaveLength(0); + }); + }); + + describe('.messageTraits()', function() { + it('should return MessageTraits with MessageTrait Object', function() { + const doc = serializeInput({ messageTraits: { trait: {} } }); + const d = new Components(doc); + testCollection(doc, d.messageTraits(), 'messageTraits', MessageTraits, MessageTrait); + }); + + it('should return MessageTraits with empty messageTrait objects when messageTraits are not defined', function() { + const doc = serializeInput({}); + const d = new Components(doc); + const items = d.messageTraits(); + expect(items).toBeInstanceOf(MessageTraits); + expect(items.all()).toHaveLength(0); + }); + }); + + describe('.correlationIds()', function() { + it('should return CorrelationIds with CorrelationId Object', function() { + const doc = serializeInput({ correlationIds: { id: {} } }); + const d = new Components(doc); + testCollection(doc, d.correlationIds(), 'correlationIds', CorrelationIds, CorrelationId); + }); + + it('should return CorrelationIds with empty correlationId objects when correlationIds are not defined', function() { + const doc = serializeInput({}); + const d = new Components(doc); + const items = d.correlationIds(); + expect(items).toBeInstanceOf(CorrelationIds); + expect(items.all()).toHaveLength(0); + }); + }); + + describe('.securitySchemes()', function() { + it('should return SecuritySchemes with SecurityScheme Object', function() { + const doc = serializeInput({ securitySchemes: { scheme: {} } }); + const d = new Components(doc); + testCollection(doc, d.securitySchemes(), 'securitySchemes', SecuritySchemes, SecurityScheme); + }); + + it('should return SecuritySchemes with empty securityScheme objects when securitySchemes are not defined', function() { + const doc = serializeInput({}); + const d = new Components(doc); + const items = d.securitySchemes(); + expect(items).toBeInstanceOf(SecuritySchemes); + expect(items.all()).toHaveLength(0); + }); + }); + + describe('.tags()', function() { + it('should return Tags with Tag Object', function() { + const doc = serializeInput({ tags: { tag: { name: 'tag' } } }); + const d = new Components(doc); + testCollection(doc, d.tags(), 'tags', Tags, Tag); + }); + + it('should return Tags with empty tag objects when tags are not defined', function() { + const doc = {}; + const d = new Components(doc); + const tags = d.tags(); + expect(tags).toBeInstanceOf(Tags); + expect(tags.all()).toHaveLength(0); + }); + }); + + describe('.externalDocs()', function() { + it('should return ExternalDocumentations with ExternalDocumentation Object', function() { + const doc = serializeInput({ externalDocs: { someDoc: {} } }); + const d = new Components(doc); + testCollection(doc, d.externalDocs(), 'externalDocs', ExternalDocumentations, ExternalDocumentation); + }); + + it('should return ExternalDocumentations with empty externalDocs objects when externalDocs are not defined', function() { + const doc = {}; + const d = new Components(doc); + const externalDocs = d.externalDocs(); + expect(externalDocs).toBeInstanceOf(ExternalDocumentations); + expect(externalDocs.all()).toHaveLength(0); + }); + }); + + describe('.serverBindings()', function() { + it('should return map of serverBindings', function() { + const doc = serializeInput({ serverBindings: { binding: {} } }); + const d = new Components(doc); + expect(typeof d.serverBindings()).toEqual('object'); + expect(Object.keys(d.serverBindings())).toHaveLength(1); + expect(d.serverBindings()['binding']).toBeInstanceOf(Bindings); + }); + + it('should return empty map when serverBindings are not defined', function() { + const doc = serializeInput({}); + const d = new Components(doc); + expect(typeof d.serverBindings()).toEqual('object'); + expect(Object.keys(d.serverBindings())).toHaveLength(0); + }); + }); + + describe('.channelBindings()', function() { + it('should return map of channelBindings', function() { + const doc = serializeInput({ channelBindings: { binding: {} } }); + const d = new Components(doc); + expect(typeof d.channelBindings()).toEqual('object'); + expect(Object.keys(d.channelBindings())).toHaveLength(1); + expect(d.channelBindings()['binding']).toBeInstanceOf(Bindings); + }); + + it('should return empty map when channelBindings are not defined', function() { + const doc = serializeInput({}); + const d = new Components(doc); + expect(typeof d.channelBindings()).toEqual('object'); + expect(Object.keys(d.channelBindings())).toHaveLength(0); + }); + }); + + describe('.operationBindings()', function() { + it('should return map of operationBindings', function() { + const doc = serializeInput({ operationBindings: { binding: {} } }); + const d = new Components(doc); + expect(typeof d.operationBindings()).toEqual('object'); + expect(Object.keys(d.operationBindings())).toHaveLength(1); + expect(d.operationBindings()['binding']).toBeInstanceOf(Bindings); + }); + + it('should return empty map when operationBindings are not defined', function() { + const doc = serializeInput({}); + const d = new Components(doc); + expect(typeof d.operationBindings()).toEqual('object'); + expect(Object.keys(d.operationBindings())).toHaveLength(0); + }); + }); + + describe('.messageBindings()', function() { + it('should return map of messageBindings', function() { + const doc = serializeInput({ messageBindings: { binding: {} } }); + const d = new Components(doc); + expect(typeof d.messageBindings()).toEqual('object'); + expect(Object.keys(d.messageBindings())).toHaveLength(1); + expect(d.messageBindings()['binding']).toBeInstanceOf(Bindings); + }); + + it('should return empty map when messageBindings are not defined', function() { + const doc = serializeInput({}); + const d = new Components(doc); + expect(typeof d.messageBindings()).toEqual('object'); + expect(Object.keys(d.messageBindings())).toHaveLength(0); + }); + }); + + describe('.isEmpty()', function() { + it('should return true if _json is empty', function() { + const d = new Components({}); + expect(d.isEmpty()).toBeTruthy(); + }); + + it('should return false if _json is not empty', function() { + const d = new Components({ schemas: { test: {} } }); + expect(d.isEmpty()).toBeFalsy(); + }); + }); + + describe('mixins', function() { + assertExtensions(Components); + }); +}); + +function testCollection, T extends BaseModel>(doc: any, items: M, componentName: string, collectionModel: Constructor, itemModel: Constructor) { + expect(items).toBeInstanceOf(collectionModel); + const expectedItems: T[] = []; + Object.entries((doc[componentName] as M)).forEach(([itemName, item]) => { + expectedItems.push(new itemModel(item, {id: itemName, pointer: `/components/${componentName}/${itemName}`})); + }); + + expect(items.all()).toEqual(expectedItems); +} \ No newline at end of file diff --git a/test/models/v3/contact.spec.ts b/test/models/v3/contact.spec.ts new file mode 100644 index 000000000..99f6026ca --- /dev/null +++ b/test/models/v3/contact.spec.ts @@ -0,0 +1,95 @@ +import { Contact } from '../../../src/models/v3/contact'; + +import { serializeInput, assertExtensions } from './utils'; + +import type { v3 } from '../../../src/spec-types'; + +describe('Contact model', function() { + describe('.hasName()', function() { + it('should return true when there is a value', function() { + const doc = serializeInput({ name: 'LeChuck' }); + const d = new Contact(doc); + expect(d.hasName()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = serializeInput({}); + const d = new Contact(doc); + expect(d.hasName()).toEqual(false); + }); + }); + + describe('.name()', function() { + it('should return the value', function() { + const doc = serializeInput({ name: 'LeChuck' }); + const d = new Contact(doc); + expect(d.name()).toEqual(doc.name); + }); + + it('should return undefined when there is no value', function() { + const doc = serializeInput({}); + const d = new Contact(doc); + expect(d.name()).toBeUndefined(); + }); + }); + + describe('.hasUrl()', function() { + it('should return true when there is a value', function() { + const doc = serializeInput({ url: 'https://example.com' }); + const d = new Contact(doc); + expect(d.hasUrl()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = serializeInput({}); + const d = new Contact(doc); + expect(d.hasUrl()).toEqual(false); + }); + }); + + describe('.url()', function() { + it('should return the value', function() { + const doc = serializeInput({ url: 'https://example.com' }); + const d = new Contact(doc); + expect(d.url()).toEqual(doc.url); + }); + + it('should return undefined when there is no value', function() { + const doc = serializeInput({}); + const d = new Contact(doc); + expect(d.url()).toBeUndefined(); + }); + }); + + describe('.hasEmail()', function() { + it('should return true when there is a value', function() { + const doc = serializeInput({ email: 'lechuck@example.com' }); + const d = new Contact(doc); + expect(d.hasEmail()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = serializeInput({}); + const d = new Contact(doc); + expect(d.hasEmail()).toEqual(false); + }); + }); + + describe('.email()', function() { + it('should return the value', function() { + const doc = serializeInput({ email: 'lechuck@example.com' }); + const d = new Contact(doc); + expect(d.email()).toEqual(doc.email); + }); + + it('should return undefined when there is no value', function() { + const doc = serializeInput({}); + const d = new Contact(doc); + expect(d.email()).toBeUndefined(); + }); + }); + + describe('mixins', function() { + assertExtensions(Contact); + }); +}); diff --git a/test/models/v3/external-docs.spec.ts b/test/models/v3/external-documentation.spec.ts similarity index 96% rename from test/models/v3/external-docs.spec.ts rename to test/models/v3/external-documentation.spec.ts index c4b2025cf..5bf485e0d 100644 --- a/test/models/v3/external-docs.spec.ts +++ b/test/models/v3/external-documentation.spec.ts @@ -1,4 +1,4 @@ -import { ExternalDocumentation } from '../../../src/models/v3/external-docs'; +import { ExternalDocumentation } from '../../../src/models/v3/external-documentation'; import { serializeInput, assertDescription, assertExtensions } from './utils'; diff --git a/test/models/v3/info.spec.ts b/test/models/v3/info.spec.ts new file mode 100644 index 000000000..2453bb3f7 --- /dev/null +++ b/test/models/v3/info.spec.ts @@ -0,0 +1,149 @@ +import { Info } from '../../../src/models/v3/info'; +import { Contact } from '../../../src/models/v3/contact'; +import { License } from '../../../src/models/v3/license'; +import { createDetailedAsyncAPI } from '../../../src/utils'; + +import { serializeInput, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; + +import type { v3 } from '../../../src/spec-types'; + +describe('Info model', function() { + describe('.title()', function() { + it('should return the value', function() { + const doc = serializeInput({ title: 'Example API' }); + const d = new Info(doc); + expect(d.title()).toEqual(doc.title); + }); + }); + + describe('.version()', function() { + it('should return the value', function() { + const doc = serializeInput({ version: '1.0.0' }); + const d = new Info(doc); + expect(d.version()).toEqual(doc.version); + }); + }); + + describe('.hasId()', function() { + it('should return true when there is a value', function() { + const doc = { asyncapi: '2.0.0', id: 'someId' }; + const asyncapi = createDetailedAsyncAPI(doc, doc as any); + const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); + expect(d.hasId()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = { asyncapi: '2.0.0' }; + const asyncapi = createDetailedAsyncAPI(doc, doc as any); + const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); + expect(d.hasId()).toEqual(false); + }); + }); + + describe('.id()', function() { + it('should return the value', function() { + const doc = { asyncapi: '2.0.0', id: 'someId' }; + const asyncapi = createDetailedAsyncAPI(doc, doc as any); + const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); + expect(d.id()).toEqual(doc.id); + }); + + it('should return undefined when there is no value', function() { + const doc = { asyncapi: '2.0.0' }; + const asyncapi = createDetailedAsyncAPI(doc, doc as any); + const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); + expect(d.id()).toEqual(undefined); + }); + }); + + describe('.hasTermsOfService()', function() { + it('should return true when there is a value', function() { + const doc = serializeInput({ termsOfService: 'These are the terms of service' }); + const d = new Info(doc); + expect(d.hasTermsOfService()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = serializeInput({}); + const d = new Info(doc); + expect(d.hasTermsOfService()).toEqual(false); + }); + }); + + describe('.termsOfService()', function() { + it('should return the value', function() { + const doc = serializeInput({ termsOfService: 'These are the terms of service' }); + const d = new Info(doc); + expect(d.termsOfService()).toEqual(doc.termsOfService); + }); + + it('should return undefined when there is no value', function() { + const doc = serializeInput({}); + const d = new Info(doc); + expect(d.termsOfService()).toBeUndefined(); + }); + }); + + describe('.hasContact()', function() { + it('should return true when there is a value', function() { + const doc = serializeInput({ contact: { name: 'LeChuck' } }); + const d = new Info(doc); + expect(d.hasContact()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = serializeInput({}); + const d = new Info(doc); + expect(d.hasContact()).toEqual(false); + }); + }); + + describe('.contact()', function() { + it('should return a Contact object', function() { + const doc = serializeInput({ contact: { name: 'LeChuck' } }); + const d = new Info(doc); + expect(d.contact()).toBeInstanceOf(Contact); + }); + + it('should return undefined when there is no value', function() { + const doc = serializeInput({}); + const d = new Info(doc); + expect(d.contact()).toBeUndefined(); + }); + }); + + describe('.hasLicense()', function() { + it('should return true when there is a value', function() { + const doc = serializeInput({ license: { name: 'Apache 2.0' } }); + const d = new Info(doc); + expect(d.hasLicense()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = serializeInput({}); + const d = new Info(doc); + expect(d.hasLicense()).toEqual(false); + }); + }); + + describe('.license()', function() { + it('should return a License object', function() { + const doc = serializeInput({ license: { name: 'Apache 2.0' } }); + const d = new Info(doc); + expect(d.license()).toBeInstanceOf(License); + }); + + it('should return undefined when there is no value', function() { + const doc = serializeInput({}); + const d = new Info(doc); + expect(d.license()).toBeUndefined(); + }); + }); + + describe('mixins', function() { + assertDescription(Info); + assertExtensions(Info); + assertExternalDocumentation(Info); + assertTags(Info); + }); +}); diff --git a/test/models/v3/license.spec.ts b/test/models/v3/license.spec.ts new file mode 100644 index 000000000..f8b12f804 --- /dev/null +++ b/test/models/v3/license.spec.ts @@ -0,0 +1,47 @@ +import { License } from '../../../src/models/v3/license'; + +import { serializeInput, assertExtensions } from './utils'; + +import type { v3 } from '../../../src/spec-types'; + +describe('License model', function() { + describe('.name()', function() { + it('should return the value', function() { + const doc = serializeInput({ name: 'Apache 2.0' }); + const d = new License(doc); + expect(d.name()).toEqual(doc.name); + }); + }); + + describe('.hasUrl()', function() { + it('should return true when there is a value', function() { + const doc = serializeInput({ url: 'https://www.apache.org/licenses/LICENSE-2.0.html' }); + const d = new License(doc); + expect(d.hasUrl()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = serializeInput({}); + const d = new License(doc); + expect(d.hasUrl()).toEqual(false); + }); + }); + + describe('.url()', function() { + it('should return the value', function() { + const doc = serializeInput({ url: 'https://www.apache.org/licenses/LICENSE-2.0.html' }); + const d = new License(doc); + expect(d.url()).toEqual(doc.url); + }); + + it('should return undefined when there is no value', function() { + const doc = serializeInput({}); + const d = new License(doc); + expect(d.url()).toBeUndefined(); + }); + }); + + describe('mixins', function() { + assertExtensions(License); + }); +}); From 2590f5663ddbaec9c760837e14e31d0cea77cee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Tue, 15 Nov 2022 09:32:51 +0100 Subject: [PATCH 062/126] fix: remove action and channel fields from Operation Trait Object (#674) --- src/models/operation-trait.ts | 8 +----- src/models/operation.ts | 6 +++- src/models/v2/operation-trait.ts | 18 ------------ src/models/v2/operation.ts | 8 ++++++ src/models/v3/operation-trait.ts | 26 ------------------ src/models/v3/operation.ts | 8 ++++++ src/spec-types/v3.ts | 2 -- test/models/v2/operation-trait.spec.ts | 36 ------------------------ test/models/v2/operation.spec.ts | 36 ++++++++++++++++++++++++ test/models/v3/operation-trait.spec.ts | 34 ----------------------- test/models/v3/operation.spec.ts | 38 ++++++++++++++++++++++++-- 11 files changed, 94 insertions(+), 126 deletions(-) diff --git a/src/models/operation-trait.ts b/src/models/operation-trait.ts index c22c8aa56..b92c6d82a 100644 --- a/src/models/operation-trait.ts +++ b/src/models/operation-trait.ts @@ -1,17 +1,11 @@ import type { BaseModel } from './base'; -import type { ChannelsInterface } from './channels'; -import type { OperationAction } from './operation'; import type { SecurityRequirements } from './security-requirements'; import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; export interface OperationTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { - id(): string | undefined; hasId(): boolean; - action(): OperationAction | undefined; - isSend(): boolean; - isReceive(): boolean; + id(): string | undefined; hasSummary(): boolean; summary(): string | undefined; security(): SecurityRequirements[]; - channels(): ChannelsInterface; } diff --git a/src/models/operation.ts b/src/models/operation.ts index 854c76a9f..ef6c9516a 100644 --- a/src/models/operation.ts +++ b/src/models/operation.ts @@ -1,14 +1,18 @@ import type { BaseModel } from './base'; -import type { MessagesInterface } from './messages'; import type { OperationTraitsInterface } from './operation-traits'; import type { OperationTraitInterface } from './operation-trait'; +import type { ChannelsInterface } from './channels'; import type { ServersInterface } from './servers'; +import type { MessagesInterface } from './messages'; export type OperationAction = 'send' | 'receive' | 'publish' | 'subscribe'; export interface OperationInterface extends BaseModel, OperationTraitInterface { action(): OperationAction; + isSend(): boolean; + isReceive(): boolean; servers(): ServersInterface; + channels(): ChannelsInterface messages(): MessagesInterface; traits(): OperationTraitsInterface; } diff --git a/src/models/v2/operation-trait.ts b/src/models/v2/operation-trait.ts index d7910b6dd..ffa124f43 100644 --- a/src/models/v2/operation-trait.ts +++ b/src/models/v2/operation-trait.ts @@ -1,5 +1,4 @@ import { BaseModel } from '../base'; -import { Channels } from '../channels'; import { SecurityScheme } from './security-scheme'; import { SecurityRequirements } from '../security-requirements'; import { SecurityRequirement } from './security-requirement'; @@ -9,7 +8,6 @@ import { bindings, hasDescription, description, extensions, hasExternalDocs, ext import type { BindingsInterface } from '../bindings'; import type { ExtensionsInterface } from '../extensions'; import type { ExternalDocumentationInterface } from '../external-documentation'; -import type { ChannelsInterface } from '../channels'; import type { OperationAction } from '../operation'; import type { OperationTraitInterface } from '../operation-trait'; import type { TagsInterface } from '../tags'; @@ -25,10 +23,6 @@ export class OperationTrait; return (this._json.security || []).map((requirement, index) => { @@ -75,10 +61,6 @@ export class OperationTrait implements Ope return this._meta.action; } + isSend(): boolean { + return this.action() === 'subscribe'; + } + + isReceive(): boolean { + return this.action() === 'publish'; + } + servers(): ServersInterface { const servers: ServerInterface[] = []; const serversData: any[] = []; diff --git a/src/models/v3/operation-trait.ts b/src/models/v3/operation-trait.ts index 1f5e158d0..44a898ef8 100644 --- a/src/models/v3/operation-trait.ts +++ b/src/models/v3/operation-trait.ts @@ -1,6 +1,4 @@ import { BaseModel } from '../base'; -// import { Channels } from '../channels'; -// import { Channel } from './channel'; import { SecurityScheme } from './security-scheme'; import { SecurityRequirements } from '../security-requirements'; import { SecurityRequirement } from './security-requirement'; @@ -10,8 +8,6 @@ import { bindings, hasDescription, description, extensions, hasExternalDocs, ext import type { BindingsInterface } from '../bindings'; import type { ExtensionsInterface } from '../extensions'; import type { ExternalDocumentationInterface } from '../external-documentation'; -import type { ChannelsInterface } from '../channels'; -import type { OperationAction } from '../operation'; import type { OperationTraitInterface } from '../operation-trait'; import type { TagsInterface } from '../tags'; @@ -26,10 +22,6 @@ export class OperationTrait; return (this._json.security || []).map((requirement, index) => { diff --git a/src/models/v3/operation.ts b/src/models/v3/operation.ts index 7d6568517..6f12ac880 100644 --- a/src/models/v3/operation.ts +++ b/src/models/v3/operation.ts @@ -20,6 +20,14 @@ export class Operation extends OperationTrait implements Ope return this._json.action; } + isSend(): boolean { + return this.action() === 'send'; + } + + isReceive(): boolean { + return this.action() === 'receive'; + } + servers(): ServersInterface { const servers: ServerInterface[] = []; const serversData: any[] = []; diff --git a/src/spec-types/v3.ts b/src/spec-types/v3.ts index 6ce81c9cb..df2d66d23 100644 --- a/src/spec-types/v3.ts +++ b/src/spec-types/v3.ts @@ -123,8 +123,6 @@ export interface OperationObject extends SpecificationExtensions { } export interface OperationTraitObject extends SpecificationExtensions { - action?: 'send' | 'receive'; - channel?: ChannelObject | ReferenceObject; summary?: string; description?: string; security?: Array; diff --git a/test/models/v2/operation-trait.spec.ts b/test/models/v2/operation-trait.spec.ts index 363bd0fb2..149d93f25 100644 --- a/test/models/v2/operation-trait.spec.ts +++ b/test/models/v2/operation-trait.spec.ts @@ -34,42 +34,6 @@ describe('OperationTrait model', function() { }); }); - describe('.action()', function() { - it('should return kind/action of operation', function() { - const doc = {}; - const d = new OperationTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'publish' }); - expect(d.action()).toEqual('publish'); - }); - }); - - describe('.isSend()', function() { - it('should return true when operation is subscribe', function() { - const doc = {}; - const d = new OperationTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'subscribe' }); - expect(d.isSend()).toBeTruthy(); - }); - - it('should return false when operation is publish', function() { - const doc = {}; - const d = new OperationTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'publish' }); - expect(d.isSend()).toBeFalsy(); - }); - }); - - describe('.isReceive()', function() { - it('should return true when operation is publish', function() { - const doc = {}; - const d = new OperationTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'publish' }); - expect(d.isReceive()).toBeTruthy(); - }); - - it('should return false when operation is subscribe', function() { - const doc = {}; - const d = new OperationTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'subscribe' }); - expect(d.isReceive()).toBeFalsy(); - }); - }); - describe('.hasSummary()', function() { it('should return true when there is a value', function() { const doc = { summary: '...' }; diff --git a/test/models/v2/operation.spec.ts b/test/models/v2/operation.spec.ts index abfdc0ede..1a0c627d9 100644 --- a/test/models/v2/operation.spec.ts +++ b/test/models/v2/operation.spec.ts @@ -19,6 +19,42 @@ describe('Operation model', function() { }); }); + describe('.action()', function() { + it('should return kind/action of operation', function() { + const doc = {}; + const d = new Operation(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'publish' }); + expect(d.action()).toEqual('publish'); + }); + }); + + describe('.isSend()', function() { + it('should return true when operation is subscribe', function() { + const doc = {}; + const d = new Operation(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'subscribe' }); + expect(d.isSend()).toBeTruthy(); + }); + + it('should return false when operation is publish', function() { + const doc = {}; + const d = new Operation(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'publish' }); + expect(d.isSend()).toBeFalsy(); + }); + }); + + describe('.isReceive()', function() { + it('should return true when operation is publish', function() { + const doc = {}; + const d = new Operation(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'publish' }); + expect(d.isReceive()).toBeTruthy(); + }); + + it('should return false when operation is subscribe', function() { + const doc = {}; + const d = new Operation(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'subscribe' }); + expect(d.isReceive()).toBeFalsy(); + }); + }); + describe('.servers()', function() { it('should return collection of servers - channel available on all servers', function() { const doc = {}; diff --git a/test/models/v3/operation-trait.spec.ts b/test/models/v3/operation-trait.spec.ts index 6601ee495..43d17acee 100644 --- a/test/models/v3/operation-trait.spec.ts +++ b/test/models/v3/operation-trait.spec.ts @@ -32,40 +32,6 @@ describe('OperationTrait model', function() { }); }); - describe('.action()', function() { - it('should return kind/action of operation', function() { - const d = new OperationTrait({ action: 'send', channel: {} }, { asyncapi: {} as any, pointer: '', id: 'trait' }); - expect(d.action()).toEqual('send'); - }); - }); - - describe('.isSend()', function() { - it('should return true when operation has send action', function() { - const d = new OperationTrait({ action: 'send', channel: {} }, { asyncapi: {} as any, pointer: '', id: 'trait' }); - expect(d.isSend()).toBeTruthy(); - }); - - it('should return false when operation has receive action', function() { - const doc = {}; - const d = new OperationTrait({ action: 'receive', channel: {} }, { asyncapi: {} as any, pointer: '', id: 'trait' }); - expect(d.isSend()).toBeFalsy(); - }); - }); - - describe('.isReceive()', function() { - it('should return true when operation has receive action', function() { - const doc = {}; - const d = new OperationTrait({ action: 'receive', channel: {} }, { asyncapi: {} as any, pointer: '', id: 'trait' }); - expect(d.isReceive()).toBeTruthy(); - }); - - it('should return false when operation has send action', function() { - const doc = {}; - const d = new OperationTrait({ action: 'send', channel: {} }, { asyncapi: {} as any, pointer: '', id: 'trait' }); - expect(d.isReceive()).toBeFalsy(); - }); - }); - describe('.hasSummary()', function() { it('should return true when there is a value', function() { const doc = { summary: '...' }; diff --git a/test/models/v3/operation.spec.ts b/test/models/v3/operation.spec.ts index 887ada4a7..bea5f06ae 100644 --- a/test/models/v3/operation.spec.ts +++ b/test/models/v3/operation.spec.ts @@ -11,13 +11,47 @@ import { Server } from '../../../src/models/v3/server'; import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; describe('Operation model', function() { + describe('.id()', function() { + it('should return operationId', function() { + const d = new Operation({ action: 'send', channel: {} }, { asyncapi: {} as any, pointer: '', id: 'operation' }); + expect(d.id()).toEqual('operation'); + }); + }); + describe('.action()', function() { it('should return kind/action of operation', function() { - const d = new Operation({ action: 'send', channel: {} }, { asyncapi: {} as any, pointer: '', id: 'trait' }); + const d = new Operation({ action: 'send', channel: {} }, { asyncapi: {} as any, pointer: '', id: 'operation' }); expect(d.action()).toEqual('send'); }); }); + describe('.isSend()', function() { + it('should return true when operation has send action', function() { + const d = new Operation({ action: 'send', channel: {} }, { asyncapi: {} as any, pointer: '', id: 'operation' }); + expect(d.isSend()).toBeTruthy(); + }); + + it('should return false when operation has receive action', function() { + const doc = {}; + const d = new Operation({ action: 'receive', channel: {} }, { asyncapi: {} as any, pointer: '', id: 'operation' }); + expect(d.isSend()).toBeFalsy(); + }); + }); + + describe('.isReceive()', function() { + it('should return true when operation has receive action', function() { + const doc = {}; + const d = new Operation({ action: 'receive', channel: {} }, { asyncapi: {} as any, pointer: '', id: 'operation' }); + expect(d.isReceive()).toBeTruthy(); + }); + + it('should return false when operation has send action', function() { + const doc = {}; + const d = new Operation({ action: 'send', channel: {} }, { asyncapi: {} as any, pointer: '', id: 'operation' }); + expect(d.isReceive()).toBeFalsy(); + }); + }); + describe('.servers()', function() { it('should return collection of servers - channel available on all servers', function() { const d = new Operation({ action: 'send', channel: {} }, { asyncapi: { parsed: { servers: { production: {}, development: {}, } } } as any, pointer: '', id: 'operation' }); @@ -76,7 +110,7 @@ describe('Operation model', function() { describe('.traits()', function() { it('should return collection of traits', function() { - const d = new Operation({ action: 'send', channel: {}, traits: [{ action: 'receive' }] }); + const d = new Operation({ action: 'send', channel: {}, traits: [{}] }); expect(d.traits()).toBeInstanceOf(OperationTraits); expect(d.traits().all()).toHaveLength(1); expect(d.traits().all()[0]).toBeInstanceOf(OperationTrait); From f804bdba1ad5e7da5576a7b87ef731d7b41fb27d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Thu, 24 Nov 2022 14:45:08 +0100 Subject: [PATCH 063/126] chore: add missed metadata methods to the core models (#677) --- asyncapi-parser-2.0.0-next-major.8.tgz | Bin 326193 -> 0 bytes src/models/channel.ts | 4 +- src/models/message-trait.ts | 8 +-- src/models/mixins.ts | 12 ++++ src/models/operation-trait.ts | 6 +- src/models/server.ts | 4 +- src/models/v2/channel.ts | 38 +---------- src/models/v2/message-trait.ts | 53 +--------------- src/models/v2/mixins.ts | 68 +++++++++++++++++++- src/models/v2/operation-trait.ts | 45 +------------ src/models/v2/server.ts | 28 +-------- src/models/v3/channel.ts | 37 +---------- src/models/v3/message-trait.ts | 53 +--------------- src/models/v3/mixins.ts | 68 +++++++++++++++++++- src/models/v3/operation-trait.ts | 45 +------------ src/models/v3/server.ts | 28 +-------- test/models/v2/channel.spec.ts | 6 +- test/models/v2/message-trait.spec.ts | 64 +------------------ test/models/v2/message.spec.ts | 8 +-- test/models/v2/operation-trait.spec.ts | 36 +---------- test/models/v2/operation.spec.ts | 8 +-- test/models/v2/server.spec.ts | 8 +-- test/models/v2/utils.ts | 84 ++++++++++++++++++++++++- test/models/v3/channel.spec.ts | 6 +- test/models/v3/message-trait.spec.ts | 64 +------------------ test/models/v3/message.spec.ts | 8 +-- test/models/v3/operation-trait.spec.ts | 36 +---------- test/models/v3/operation.spec.ts | 8 +-- test/models/v3/server.spec.ts | 8 +-- test/models/v3/utils.ts | 84 ++++++++++++++++++++++++- 30 files changed, 356 insertions(+), 569 deletions(-) delete mode 100644 asyncapi-parser-2.0.0-next-major.8.tgz diff --git a/asyncapi-parser-2.0.0-next-major.8.tgz b/asyncapi-parser-2.0.0-next-major.8.tgz deleted file mode 100644 index 53346f295dce0611d17f1a7d1317091d430977db..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 326193 zcmb4~Q+u9W*M)<|xMRDqZL_g$+iqhwwr$(CZKp{ZtFd!^&-)X;wXrtl?mCV&#+>7v z#8I$d|2q)CWzR3etskk(-To)4u(|vq*I0wwW%7I*a-wtfTRDG`9;Pqj%+Zaf@?#mi zDKbLBU%L8EvO8rd4ExjLQ~h@aYJcVMKJ%(`AoAt~ML8X=6={Y$#)5z=LBSadS4YdS zh7ztU-CtR{S+jliH`g3oT+dILO0^wu74QF^_fr4intR6&Dq%58zi{8(e1GL$5@ZS& zIbn74i{UlS4ppQ~{*X$yP)6g^^;>fN`W_)A^7G1$Ba1I3h4J2JeRKWg*`|9(6~{m z#DJJEuUqKt;wD`b$?k3Tq8@uh898|BgUW}!%15$F!2|cU;|}%I(y33#nL<2|{w3=r@5$P%^SW`2o#?wY zYiGNgpGzXqM?}8fA}-P(H&ZN~v@GNW`OpP>XZv){Usr-sWJEYx$=4S2=({QMm@neT zv8{%cai-wyKn12nFxpXUwTK}Rd|@xtha54RPWA}pX!PQRaE18-jbUmqM5R=&Bw=vD ze(GthHL!Vp`L|s3;)0ijGLc{0_;Q3J`sJ(A(81)#47WkEC)9mrSM|ugCu!s*&WKWH z%;3?=N+}48t5zv(jWVhe1Y9=tl@lk-k4CR5S`-B07)>|1NmL3{0TN>_-I%EoC_i#U zP#{l+M~3{Glur^t)2@PsVeGzIzUN%|t?uJKu_#&jm|Q^#^LJ)x3n;qh5&{9o%yN9| z&0Sj`eMskw;QyHWqrxP4n3-^xs=?`1@hl1@tnT=u!C`Y?Qx~oD@ym4X02#@uSOoW5 z-OkN6O=Y`~RMwEj?EKS+IpClRGma4923BD*A9Ws&{)YAIe9 z%^MlVll(d`p@C^TN&qhHiu$Zzrd9 zV!*saH`>Ey7rt;!aw!>@WC(h+2H2#9Qql)4e-xvl6N}2JlB0~6;3b0LoW3+ei(unS zsG~dv-}mPG$1r)1%cFwxflHML-$4!R{P*Zuja<+))C8zn!TeGiq9|xZNAm5=f&XNg zaYW~oP__8-d8#5P43Wc0A3mTWD)M|BsHwY=mrmjHy)b!UPE+G$%)lfZ-`nDZrvA zsN5oC{+X&)MR!Cj(Mty}MR|Zcr9VSg7H&Bui!4aH%S?N1_@gQi{2@>VD~K#GY|-nn z%%6s5%?(Q?owv{Y15Oo%kv&EvJ?zsqKllY5{FXsZC+E|SK=eKC;D=0!Vv|P&X z6iTweqNgF!iZyR^W=DFXx|-cTAQR16zR1CN2H>=5#{y$;ZAH1ak1`{yXpHL%bm9#; zycEAj5_I@M=s!bk%}Sp1^Ksv!{Dd*aj>!%ilMdu16Eskv8>UTa&!T2Qoo0ti8|q8a&kk;Jxlfx7<2zV1N3$9w{faX}@P@1s zi2R@g4!@sl8L0*PmBFQqA-!Aj3=UMVfJ;TcX?1{TDVj@v(^tTouW1t@v*v^bPZNex zi}I3x_l9fzpngqnC39yWJk1@IM5Le3k8y$|Y-5}JF{v5{d61?T^FigzPmwvu1Oa=j z2PHVD)@ZzpOHqUv;fYe57ynoy!-qzznJ$6Na_c87q4yo48WTN1yQUZ13no^f>dPi0 z1mUeEyEVVRf;J9W_-|aWXxS_U;xYd>ABYqdas}kz)pup_^iY5g;^WM;E$7>xnPCpv zZoF3($>t+If3X($E?l0Y_81CO|)<#qLo^-8Z?BI(nUMB1zeVn-FN#PS zBpz>n4IziNKyd_&hDD4~D3qd>y#0TgE?wwWDy7_;4Ku;y;>kHXPJxOp}Ie*{1F^1g!@kV?l$Pz1f4!0P2lny z_7cR7R>lgq=sJ7TE^PkP~VQXYQ6WM6>Djd{?lm(1U3BnHa} zF-=K1hUBRUM_-{^CY@S?-tUB$V;1s;{*FXP%>DVtl{3;M+eWC{NED2O61vVU2tqS^ z_|Ff@`asL=WsNJh)($!@ul!H%<9v_;sva5rpc<2%xl6+Olb|o-gJZ9=i(LhK|!`78S}jTXypFAxK5dQjr}b;zQy!ud*P?T5CQBo`p+hd!6bLE@3aaE7g`?WD1&0~ zs*4MU>sO?@mto~x-kGc-)R}ZHhpwiKuv1=<^efBTIL{dN^M5+wXqrjPoibq+B%Q5m zzopIpi9+WHT(u`zO1zju64EZY+x_9u4N~i9@pC(0)Cveyk%=#P zT+Bo(wFI-pahn)b`+==95Gh9^EL69OXlXNyyDn}8zf145lGz}(4zDT7X;nlFjhm_3 znU<@mybK?S>b8kCggA_YS&bQjSUpJ@yDw~c44ru9X3v|SU0(Kr7&(nV0X}s_RiPQ? zLgFScGc{rliIDsgN`@2)f?l{)Yu;#6e@xn7s^#~B5DYXMEtWBur}}UeA06J%dCE*_bfPPn(53D z6;?rtXd6^ftKaZGe%>eTQcdpZ_@g(QYMNTCv4`Xyc?1@T0Y8v?e9&Q>GbkRhnPQ)i zAEmYC|dnAt1-U$0>qX0j)iiP|&I=Q;}vN`|3bZ+FPK?v)S2!SK_0}C6x zuN&%vE-C7HHZ63Fv*u!wmn3ip#X~Ew$$U>YqaYue;)TH6%|w3&<49kf7#^H&Zwqlr67blC=Q9SK&0WbA2Ggi&iDRWWzx>Qi>= z%<`YsZiaYKTf%)<^&cx~W3vmlmG^6DV^U)f?EpXT>-*N8Vzz&;5Ab!Al~gojdUEy4 zSNH3RX?BVWIQlqQ$Xd(47Po_WLHH@f#*q~9BBSY=L<>(QWKHt2%z@MKjg~cHku?g+ zD3>7T(@?JG@&+F0WLRKH)m&eQTu&W=R4{(0NJelS%@b-B6w+}YdkB8UW)oXeX z#^8=~x5o#B@bq5Cw8wYj=MP+8-I6A?+O^fk@gXpOk-Fh6)IwfOGgr-vV{3J=?-lwrTnx+OSge+lR@=iuHSxQqSTCkd)`{bo`H@r#OZls&HKVuX7 zA;g=M7#98EKVLe2MU^ptSc*~nNb)Z`03}S08fZ?4e^QUvM1`6Vfsx}vg^>}&1icGh4?fXRdzM5 z-1HhXzXS<-AoOf#Y?F*!7z)O02<3UTWyg|)TFGuh1A>-$x-1IcrCWKRVBrM%P}0+V z@@ZN*QdT>rYg9rkEuSZm-(py$FrBG%RMR~!kk46BFB-mVM-gYxfL!|7b$QJSlKYKSL^m(L)|fGLM6g!`{Lcl{v90*o zhx}id3zXJz;f`QXP9zb3pm+I;0`h!L%wfzSL`9qoE?-N~mhqH7?$Ojelk}ppLebl{ zLa;VFz{BpAlgDI_pKtoCK` zpyIi4Wx_aPz#sQex;NKlU?wicb}*F4XxM>-9^Fftvw~w$Re^~9Q^8SvEQQM8Y`BG# zz{|CVMM}k}C@ERFP92lRPS_Gv$lZB|VQtm#J7~owAuyVk@CUaC-R>tE=T1G$F?Cmxt8@c6{cSHBx^S~y;w|2hJLXHaws#FZq-QvymkSh3QHm)UG3nX zapxF*FHG~$j{AvVL#OlruY~QmlX&#^+C_n)Yyy$Zj$uOEFhm=++Yl!bB41}eX<<5} zePu-ORA+Sbve9u4g6?K-aB0#h&5WayHD%M+TQ+n`oZ|uXyGvGpF^s`yJ%oSOYDaxrCP_5fHq{5x5Lkb$QVB>V)G#uP3j0go+y;p_SRC&g z8>TNz>LFMUh;6w8@qqhsPFW0jSH+Fr*dBp~H`_A!dw3^5`~s>3TiZTJ{5A{(ae*@2 zHkFk9x^f0nL3U>|{Xe#k3^5rS0*oT{6m$}BnLVEa8hnN` zhq4C0!fo&nG@J3VhWY_cMHtzZT@2khh*))EoMfeeHFYOTpwYSk_x9;JpZpqv2i4&U zN-k=mTJ4<3iAF_ttt_meGQp5ZxVvZXKZMzzy5zm?CXlQfc_Rzq=h26-v;Y2yd)dc~ z&maHU*0i+UvhM%*dQ;+~HO{f_!kJUipOVdj@T|Rr)Y1}6)fhwDTBwPk_oJ@tUZRKo zc80@Plegv51Lplo8ONNLti9!mW8_IEsE1=MXxU<=Tc!`GyXDbM_TntI|D!azc*51Y zx^@1qHpBYg3KdBkbj#RJVnie@m>-hf9(+6gonL)DhP%MV)=uRkAk_^7Te*sA-N)G* zk+we6EY{8wYomdJKkkO=g=jAiBC6e|Grjx5F*`R4iS|Su5oL1GT-Vo~FfvsqH&tmq zKZrk6d3mz+e|quaivS93(lG4XyvjbV-R`PlJKi`JT7LEL{Wr-9Yhd{2H$tPEwJJ%@y$2gtd{@0On=BKp=pcgO0OCV${Yr( z?6xP9Z6bE+?^<-Ew$iS$nmSf`7}x}Y2+AH=<%4a7CQq5Bo-!;9)HCdeL-j z@YqHLDFB9nsv2o(Q($x^kHGBhbSFY6zGZ;G+gCq{9Fu5&Ffxf~NBx)%=VIj*b}gKu zszcd}e_8=xe{+@k*mt#~1L#%)n)M`S{v2+MJGxc%%g0qUDYcH8{iz?P2#Y;7CFjny zuljCPN3`-md@FAYdGbOkix%3n3wf)+SWd0j-IN0?o(@-{V-b|XGQgRY)ityD1E}yw4>?1xjbvpU z7h?w+b1p%j9)w38)vG6ovbQY_61LODbFj`tGE%c3*7R?-jL z8s_)*<*`cKlqny=o7iNtd3TWA$G$&{sQ| zr>C(^t((7C;EJRe)2sr$g=$sJeNgDRaVF&%Vv9CU4QnoKmdeduXv9YTpw1C4C}Mo2 z8GMd`zK$qrA@1LkUAcKBZaLgMo*_QKfzJxfb^;i z_2sR(roRN85Vu1SMly**q66P@GgJS$EC|Y52u<1c?kuh5M0)CW<|Dtg~$)T z67c%}IVxhwl?G)a-q5=#Y29W)CldL?OO8{c&HYt(j(sIRJ&;`G?StbaQ%IM}Q8v`` zEw9}ivzR$>`=r^exevaDfN7nggzak~@}+JsxYgTQgni><1l#N{EHHrj^O=zMoMuv= zgvhzv--IO5mtFKajwNW5Et^H) zHR9pSKqh?r*>|USJ(gsg5byqrLkga|nL^vnA==YJ`%p-x`Lrt&~+sj5y zj}+uCWVjop%UB$t5cR{Drmc%k()iL?xQ#QsaPFXlE`-xaC{ldx^tE=U^uEv>Q3Q(X zXLh7t4Cv?>NsGKHlLU8ZAmL0H=q*;9gkyrCM6AGBJSBwtKxcM6Bb5~>#f9xu;f&@d z+$Qj4YG>Rj>*)+#IZNnYQ)f`V`i@BdbW-g7^>N~{kf6N8H0GaRq8CP>)@5|r{&>by%dRZarliI&M+=n5_ z_nroa#llPhgP&rOv#8M9Us#m+bRIFQ(};j$Q4gyI&oy*X!j)QOFKRv4({sLX=P{_< z+*jkv{_;UC+niA2%jor{QoYit)R%3st?*#jS!nsjAb=H~xH#p$7r#7Y8@|wn0dNGg zTv|qU?C}2aX9N^oU7Ij~zMiHw)pviQo!7a{>|U6+zD*rwgmg5Z!!Q=uwsx>zeE_WH z{1H}EcLB9%Q$A2*J;r9}@6DDzXC@kqjed4@QG!(JRJ5~_L`av8=w)>t1&C3*KwW2b1mD+qRPh7J)OB-i%^JC70YFd~TaC|1qdM8}@H>rPPOW_2{ zgGlS%FDeq7E~^o0Ys)+s$3><%b{Ft7c)y>&SeV8)lq2Sqhe!s6(3KxFMVRD>7x26n? z>Z+;4*@jUL(u0CJ?jN3DK^K$6ADOyGELFyE6kfKFg*rHBJ3nKm41K>`JHZUwqIMw@ z&~zdfs7YkQG;=WK9I?QdqV+6as?6S(H2yO@6X|ZRC*L(>2Q6J-tJ2#|!*G9TWZ6&m z10_X2`MXG;za1(?*b}*i)?_vr0?V}-dgyYFU2>3Y^B^0pyLo!@+44xE`vDqeMC*DS z{2;9?f38aQHC>h*ON$YU@d!TEj2A16e!@w-^&+9%#c2}Ohgw!kwdm4uAMLR{dLUU1 z_hVZdHahelB0ZIUE5ELsdTQbQtz>L-0^I}dYs%L6ylMK5`E?GPi?zm7+aeosM8YfR zHRv-hNxn*iZ7J`P3G#OZQw>20p$mbS&@MbS-pSf4P14CN#`V7?xAAYy7i=*&vHU!f z8@jdjy+va|zgacAl5!cquh_C9?nbC%ZN^dHZFa_Q{Fu&7U%nk~&%%?eCM$4wna;LrVQPeZBRWnur-cV+$tWX|O52t)yO zPXJ*3=`Z^*PahH43j+KXZ)#2J4-2`#sNR7#kJhPo|E?|fk7rLgfUVQ7%mIA*7^08( z*+0~D^B_6*qGKq!w(Q4NoHv~1UsI90PdIs^ag zL02JR=Jhv?>@!~Et>EfJM!EJGjf`ta#toGz)B>Z4M;3!}nWsfibA zrUJKCOepHh(2H)23>g!v_(cuL-B?L(7_EhKZ6JkGxAZ{w|~zAV63&yPs1 zAAM!-R5=gHk$x!nbKzCM4!J?a}kJuAf%$ZIxzF{L?fSHB=x zUnmdGafF$o8H)T+^Gibm3mzuHAdp|?#fC?DTH#>QIP$heeTMbi8a-w`uu#sp&=nJ^ zIzYTO4#E}M*e}D4h0CLG;J-jv*yYnUuqsfDkEpi-q>$IH0CRLWq(Vo}Yq@Vr0ewa_T2m~RAp4lc zZ*q?FvswIBdV0wC8f%Ow|J?df_}LmrSV0iRk>>N|d}{Y6dc>jSEgd#E*IK6{aytB&o z7~IHt8&^<2g0m`^t>#}X;=vqO=8wMr5%*`g%;8*>>#-v1ZF$Di@7y91!4s~`?)uhj zX8P-F%r()%xXhA$s7{dno`E>^Rh2N_J0#pB)f=UBP~;xv#K58hsQCAFqn^3_d9_#Z zwRe?se66qmbhWkV?*UI>&q6D8;A?f@LXm3$xP`23+|PR2^Z$V=Bn&@V2X)ia#Rs^g z*EF$nIKW8K7a*8xT(DPcq7p~hlc9Dp!Y-f4UqMPjN4CLt)nsO8j?ihfstC1>$okkC z>5X)Cpdqv>Sg}VO=YoY1A#r}=myzON^KKnGU+MJnDJ6|zuw|U9Ie5AUtdQ`{>={Ng zrYakst9cC-0m13Q-b;fZZ39CNL*tb_dT4ui7I3#o=BPE7+Q>#JqqA2@E1?JxP4LLl z^Nl3y*|6I}B7Td&$$s!z5LWBoz}o{(`cHR^r!Iwr)k_4#eqQhQH~T4`UO7qM#l#$g zASN=1fOzn6`$k0KRz9= zK&E|!C9St7<%`N_~#;iIXvKG?zn!Lf6IvgtC|VU~RN@5ir)4CKnFKQ1196yTA^3f~JL_ zdK5(pUcA+BUERvEj+w|YCK3$Qrovqkp`F8SCc<}Y=m#~B?HnocYNfX*q>G}ck>4%~ zkKFOzd6)IY+5%YEYvAB8I5qPIwphF21X+{tEc{XR>=f7cPD?GT2cp{%rNbs*s<}S% zJ}g#-c0*;3lQvve*okIx%StuQn7&pSV0fiw28A0+z50Eok6sLci@*O~hPu+IsKRd+ z<{F-a$^ZdTR}(_u;ish#zdkxEa5^&)z871+?D&%U#Qb_$>*ziEWHCg2duR9)PNQGj zlT)I=aIg0@t0t%CDone086|lhUz7=6AzU^*%9j={@;ba73W^S4kI}=PZc&0ILk!NUm(%Pd>dMOC(MUc_F)Xc{WI94M&T-6Z%tHp7U)Z7? zZCnL?QAo5>z#D)c_!R1g*4h;Mahj&`)0ltr{W6s^TBPu29r#tV-tIsBiVQ1)>@M*_ z#@h=Qgvpaa*OjxTKc9tloT)Qf`G(uOHPk9D9_RwB<$gXtRn<)|b?--s>2|tSiRk4q z@R=FhXi4%)g`$^W)oh-SeIsY*?a2@x4QgT+r@qAmoezC<>8D~7^{*=n!u1jlRNle&f0;F+zxG+oj#;Jy=qLO;a zqZ)%u-te#=l)s%%!G8!ZZ^iy}9IVIpu--d>#q`v-A~>VOCbSUw(MqWOB7FQ&@J+uCk7V}nMKkq!Wk}0!;zlu1_}8hM@LMRQN7piK&XX|ZlO+}< zuWbREXdU$}_Dnwe+y*2nQM#E+re&ee1-tj@W)OP<^waj1fye`iyD>8y*UeEVTuBc30Evzh{@2U)+>VA)1FbGO1YnFivW}tyna%bim9? z9pipxgc<}pq`~r@{>NTPR4%6EFIPYlWr@SrlI-fqVO)3D>E8y36HCWuOFa z3$E;hGSY|US4HV}YZGeh-Fn{SA^rDhf@D9USnE+m-DMEYsA+`*R`tiIZxMC-*zKH&oclRHu0uV0OlCrzY_9$Jwicv2n` z?Cvtw_NhTIxHl4hFjsf}Ql#%2>4ub6=7_V78>;oX{sH4V-vsVi{@JUQJN?2!#ah-j zTD>%akzsZd5$h}$M<~Q)p5?WgwKWp`2uv3`7!iR){v)LQ8-(DyfICG=#j=G7tF&?& zGA)GiXhz|t1_{0o+;U`c27Cs~ZJ2aoh7zG~W}!j%#Zd=YnS}>gKqLmv#?&C1x~8MW zRa2GxMaYlA`7G&m9VRoHr-FA?+J-~d=E%g}lsh>M3s3Fpbqzwtk`2*^sAe<5v;qpq2)PEP%O%Bi#4Fsx{k6X-dwR0NQG0mwZuX@;F*N=ntg_~+JtM4 zFSh%tj95jRO=;QparaAOGqCK!IJI;7()7YlpALHcJX18c>YeaRHVyU+)Na zAK{M2U^PmKM9A_XU_RK`nf!O(NZ>?4d=`0*CxzsBR{O*v9!Z8uLL4EktF&3$O8LjB&WB}~u9#(ovv06`qiG5vBQxfkr-Ciwpdq=Gdu4>SaoGpRgLhoxpMZQnyROA#R!Y07NJAuw<3Trusm6outKuOU;UUH*ps#jAEx|MWU<9%w2jUu z$E!`zi9T^*sJh?VhzPwm%8=q@y-w%W58K_#{?-|4l~EF8Oe&B5aEBCyP4-SHSZXdu7Yl0pAu;m$AH-_VtNtv8NTFEhKK%t{r;%XaJflX)eN ze~G4ze`ngM12**yc}rwDJ-e}?Lp8EInLxP{29a;YhQ&JHi;=Cp34)L5pUM>#*Sxi^ z{%}~MAdhQL5x>$dv^XK!ui=cuf~7LGYokLX;}CYHQnnghg!Du^nu*9XN$$V*EJ@{v z5R}^}qTn?T>dWSdnH?L&H}&);*XPOF5zRDLx>*A^7`ETYpEJ`dyxW2(Ltf&iOvZ`W z_z-N5uci-@4t#zf2HDCDmWcb|E7Htn&8AZaqrgd@-RY>A`xVOSj8hL(<g!i{8Z8;Pd6joLqlFk46=iGT7IN|Y&iTN`o4O=5Qv4QJe)IV?7S027^{Dp(&W?^< zetTj_REo`(c-OyM-PRc`kD^ot&y#-MvGvTPM&(rT;-~z`bAUaqxQ;M zwax#x{D_*PUZYsPN~LyzUik>O@)ly_E7~Ghpp&Qc|110YP^m@1SP+efth^N;f93+i z&xU6Wdv=HXXP?)Xt8HC}ejcFr^7yo2+<4{)4ZuLD94Wa@2$;)X52(R_6|b0#qhDg77=DG z3;l}Y{(zf3|E6@V=-r2XTBB9Cavo^*ruJT$IdPzbc1WYnBtWa1U6_EQS8oQf=z#gv z_I%pDo^`+GRYmHHdEgN9EJRg|IBz$3Dvm36SILu%Ia~evukioKLEsL_D2~J~LH{pI z!9jQSE28hK@=qI>Gx2O!+p{Lr-@-gP{narcf1iJ~2Z@{j(tTaAWw%%iV3ha3@z<@=PFcX50&9S+3|=RM~7}Pa8=XunfXPW^Qqaj z)CU6qE2}};{TS~cL5jD%t?Ex8ZXFn!m+}N}z^@dhd8wCHF2ET5Tl*$xomF)Qktgy% z5!obKfRrjzl3qB-2iy18czecc$Zx@quv9wNEwR_0N~KNQi$#CtPa3iMn)n1GW9J(T zT{Pa94)JsDCD6_W7<$6YGt7@w}yS|vv$QsDiPp^93Rr;NI_Itz9EEo-a=0@pX zP60S?LrnX4Qu}*_DX8N;o8A9@B7aaZz>%XNl^ZN#t#n3I*_E4WQ)i= zU=oVbj;VAu*3~tzcPMm7x@$r<{W6CJc0msmzU$0)2l4d4G8dfVIo#%<2vWGI}u&}vGE(`LGza4 zq2)(lSk-=jKXvcad>}rI)HozaXXO@F+4Ex|i-WP>CBDc94YCN`%}yhDN^fRQvmVU(a(V6wo+?()mocYp^2{> zJ!ofwr?oSMVCKHhuDrHq;L71@`Ifi^sQcoN2OJydjUvC=91Hwkl$U^_N1(^#^j^Ve z&K_c5{fJjWlSnp)ORt(em&Vyt*>keiYSKTPs)O-swB#wzg8uhejKzyOh2lU_XQ zUS`$E9rw}!B(&zv4z6gZcdvR5uIZLJIx6Ew&;JVy?1jTv5l#V0BoBM};+aYY$`s$$Oy-v@;Q09}`O)`G1GFXRMc(J*sG@n9}HLYejh>F40XTd%HAb_pCDnA7T@r6T5ZMfH}wz z8k{?SbGuh(*6H|C0*z^;6CGdzdNA-;hr}F#cJ^LuT@PjoII4n0C z^1Ava+X4m0%QT#ZW%d#PXs=@ua!y)GX(Rt?PWG+i6}M3s|F7GY@RJtcIup=gDC)A3|x=UziDm@xPBmjI@t8vKqJU3k)2CA&!L?rPQ9n}JF$8@uqQp_gbv71W8!Uoa4i<~I(}YOZ1QAF~&dFARr~@TD>kgQ? zpoMY&>O;De?63@*r-0&C$}wVj@)az#UoEfz=Cik4N?) z!twYZPI-wn@Tmgd6v9rDu_30mt7Syl<=xO?jSYO8TPr7`Qd_oFOUyjoQAWg3cT3kN zlnEEMG9eZ0QPs5V_)OSe1{S@ia#hL)sk#zGuW+L)F2%~45tC`qyJp`|OR)ImHflMQ z%w1AJDBVq9%aiI_9b}l=CpIPDl^f>=4XMf-C@`P6Wd1$cP*`~TMM2M%wLHZdLU?3p zsO#gKo}gD8L@bF2*Ze&CH8JbB_RrhBs-+aLIuuIn0c?GNGC!ap7N`^g5dba8pL>Lb zuZ!7)pEsTAw{y8Q%T>OHN%Lfr)1!xn(_sU&6Vjop1tD zTR9nCy2JJ{A=b2?;zzGpeI^HAo)7Q{S}lPdZJ)eIaFjRmD_zcy4%_@&dVBwnw>|qV zTFYlzL$4clhE_KVJ(rI+e&{~E5;NKmzkHr-0`D&eedkxnQiOo^CZIk0?mx5hdH3JF z`St7JHZQ94=_J?T{VbwC`D75>yvGy_xRUT?7XSL`i&#{?O^F(6hm>U?QN&T;BIKF5 zD!3P(!`umvy;fs4zk0vk8gXDdvk!>h3V}YpTzvsgLO|7@i1W*m=8gETz0R(G?N#5= z8{p^-EFIMPR<5vA@wSS;*FiSNBd)Gc2ZBO!6fbh9ucF^XI&;H%w(3KyZ~AW1PW}D+ z{D3ReE&mYCI_}kOm|_~-poi*T6VSzKS0wpf(>o^gcLem?_#@F*$(`<9(w6M7hk7V< zosUexm(Mlg~6es>+-C8!pW-FfA z(kFTuKicPgYcM~T@8j#7F9G}_`2yMXO#`-{juUTrv-@sH@!a`DcFIOxrLE(yg(_G# zQ9Ktz?v^J59I7=LHlG>YKoNaYN%sGux~5COZsn`*Kj5@T4?Oc=ZX23bmK!-D(8WN! zo1W19j@+FC6nLUk&D89{##!7CD;Yt$uCpOYny))0Dxv#Hn~W|n|KAeCk5J;^-!PR7 z*@PG|6ozlQY_S_g;xBHF5e5{K$S`7Bf!f*BZz7)-$B^f8e2YYXek zun%aO{>;ndS)2COp6;;d-0S=TmHHuixVB<^IY#}5`dlx+0f$R~t;-wHDe*IaJqba% z2v{UtzfsQvPhSf1|GDii>{Hh)Dw5%ihy%=AvL3a@LZeqn<#&O?s1EPuq+;uJ%e52X> zGhDe=Q)+GRqP!-&n`Bb-QrKre93sPj6*vm>yE6Ea)|8G|T#X_(XuJsgTLQW~j+l&k zG7oPIYUe0jC+hPoKdP?5T^pw+lvunPUBVZzg8XtD3bW;0H(HC4>!UThOB|Oi=iiEg z%N1oxupr_!*E1&ij|)eE`c`xsx51_8;*o127C1pQPRF}adv|ByGqaC{P0#l2E8Ixi zbt$x(=1lA)E}Pzrw2nR)Uc#b7$||f(NMY_0DF>w}+cY&a(>6CWttwWVw62;0BXS+q z=(+&+5rd}O__GxIU*vggg1t$N$(_`Wx1^bdcr$|x`n3S5mTWz(^! zdeQ#@gFt-0CZTFkKmr~bg}kydRw!bjqe-W=wXw-!Yi6}I8}pdE%|g93J0;BBY^mm& z4U6Y)woq?v;m@8-@fLH5`zgHE#ciX~XJ~2(tGGU_04BFE zv_=`+5?y46)hjs@%+jzs>V&SVu7^Bj_n%aQPq&U=Q&18WW-Zz-lM@#aifia-hhR;l zt~G3RIG~}*$7(>wbe)!2U5t#TaR&7f(8`$iB?Jpl(q|-;$|1k3LEa@)p-xHUK{oWX<4FEG3tw0J+U zc6+(KxBBtA#Xny6YN{*El#)jA`FwJ-OU&E5;Ebww6QzYga1hTv6g?A6;WKg9 z#Ug}c`8hXm<`hb|-K{ZeFF! zpZ|H7_|NA4?pB%pck1*1%lXXr{+rms(cW1QdmWZyx zLvy4nl^>g9?oR8Q6U7<@x2o}29C=&x$Koi#d{0jI7#Q!$8Q$kP-=H&b5ciNQznJwn6!h&jC4XvyiA+lp} zlf67MS&t9rJXxL->NZZLc^y}CxPqn`#_Ppqnt)Y=RSDa->|vL<_NT-$F>-r0LIP63!CxRs|M&klRCqv`qv@ zwJ&dS>{{itjcBz82~vAp?=deiz-$u7pV>h(Qv_L+46w$GeM2E)6Cjk#;i#J}1gru` z6+vI$Mu^vRDLU1wI7<-MWT9#T=GzI=n#yQrb4||{hBc7^mjbUU!>sBUjzyjSlh^kz z?B%~%?EkI3-BSF=*3RaBZT~O-{2$nU&W8`oRD2!wf>A$r+73}Cy@x#TBK%R zxboCYOFsP9$>E#hqqlE9yg&Tg;lH$;!V42Po~$~%ob#5u9{E0hW&XS1x}OBy>H^F< z`6WpQL0&G!a*r(axs0J7)!FFnwX_P*Vpq9>v2Ux51!T+Sc~68iJMLM)8&{qV{CDAd z-Jrs&4Q=^s9jtvpcMGJhV|n(yyJoFpj=E4WQ<>%3CO}k8;Z{MRR9VY1R8g;Tv})zF zVNxRV5zU4Vs;+Q$i$;1>q`D!6d6qVYEVH_{#A{1s8NyOcEvlAyYpA-opuKXP^&w_y zHOut8@jqYIPyhS#e|P==UjK0RLt)O@-Yj z6|6(w%Hz21b9Oct7do{iiVeYaXY=fy;&YAnpB_a1Z|?3iE%Lv9|8JT8e?ndE2`=zs z%@0f*eSVf)t~fVeHk+7>Ia{mF&Y=r~pN&nMmF~)`?XAtluW@FvDr)4nJBPoDpY^PrP2P6*6@|NHiK9smCb?|-S?DUaI! zqo4m-Bnz1K{?C5t{kQGC-J1R%AN{KnuY^9gx%_?V{ZKp>fpswDrsd0k;@74+%~4;} z{nv3tr3qD_tKZZ9)SgCZU#~Sv`&0TURDf;{2SGHwqYz6Ofvi>4CRSR&<(Fd%TJUeR z#Q3K8zl#4`tO7Vi{{zNf*8g_v_kX@W{(n2>KF@t{x8U4!^WeET>9@=Qt@l4H*Z#BI z{{Z%1P5(>z)b~Hs^51s3^bfJuk68UQNBW|B3#u!0-#xrO5wnqWJ>-?{C-g z|MA-Y9Dz=fxBc$RcSj{ZfCw-sdIChce(^mINh!IFWsY_SJr5kXE)|wJr6&Q{7Ie7+ z+lXhmSV=}W7Ut&0;pf*$XEX@oTre8eL6@D^MklE@Fo4bQx}n$dkqx=x2s^LK^Z1!+ z1uy?4euaKTZ5O-YbuWXs+YjaWGtr2VtKA7w$mgt4q#kH)i}HFFQZ)Ef4Z?&Ci;yY= zL=dRVWx?w?UzZCvWV=4!>6ZZPC8^^Y?-)2qPtM8@`h9gk&nEdbf4b6gT1EKH(NIJr+Z0BE>t50}Fu^I9Y3adVKAVIJD^$4_SMNC%qiF4MvO^{Z_) z4vZem8tv&7CJl+lt%%XgR1^lu4<}K=^v;YhAM6Twl#=oVY_$;uUs28xIig53QpZx& zT^KygyvKoGu`oLCN7*G34lCsI6dk8HUmBffoisWRwZby3h=RP8hV|kIj>5c53591s z;{~DeG;}smdTh*4PJQAWWvNFtOB9+9t8-S^f6LVWwwv1){ja|NVY&8SQL)f$K6!nN z<_WTMYHw1=qh}94^z5OTniopar9J@Eqx3>j$I=VgwFje`uIMSV_SWhi4r@;BZmBBW zBJ?ynR3C#%cCTvKH==q?QMYcVV%2KZeW+F6uPXItQJ=mm|DW9d*RLm9fDSl+{P)i8 zejWe$`22r0IeicGPy7FiWC7FSzsu+UcQ?1{_@Bq?|2HqbyT>SSy_@N=;IBi}Y=(4$ z?zC`bvv{L?y>EAp#<~+*g06l|*jDM((1AWLsMqgLs63_WqT{>GWjB7;(%}*9|1MSm zoEHDJRo4IZb~bDN|DE#xyD;~8V!;>6p%*GUZppFlgVS2$zn5$O+1~%#-LLh(rF`o6 z?^^!b;=h+?|26l^{-52=?VA3VyZ<*+{I@CDJYB?k^96_7g!}v^TcO0fMp}1L-EY<` zn>Dn1Zu);9{onTf=iW|D|I4NS$?rcHgl!0M*-jmQx)ftHKkg9v{+M@zvXi zTv%U(xf^vWpMaFbGashfbvvd*?Ya3#1b;>^>aI2DamJ`SZTBN9I_0u&lsiuK|J}d* zxB36}ckB4y+W%L7z6t-|J?O^f_**6%+o*Z$Wes1bTEQYTvVN-95~Ag+n|j{1LB zomp6DACu{SXLGw`|8H&8_rE`4{XfdI3*KL=(=IBXoglDgl@21Q%siQp$=s(xM5KC~=>~oZNE*+WfXW`%~O#MOd zN0J%`XaZQ}t(NUQYdnD@U{X3={*NuyHoF%em%a2>cFS4YSTi2X-q>J$ZnyL#qtjAf z+qdkCABiz%mtUsIXX@uLO_S99_-yIu>4!lq`?VdAR?mQ( zHO%RjSbQX&va6oZHui`-|PisZLIiPg1f4Mq# zty<5ZT04(IQP%MMHhQrg_ot}B&Vm%&+4b5<>a6n(E2$F|Q>Rurr@(5enz>-rvR1*q zwfGMiU%Dtg@D}gC?d{j+zaF3ew?syyXHf7GoG&BlFVKkDi#2@Q5~Fn8JErO!lu|DG6~CH`aC^56FU&)$9=|Gkt? z9sgC!|8o4-Qsw{FUb8I!x9a$h<@$doo&PifzsmA?nS!~d*yY*(*>c|hvYr2G*6)AS z_J93(aQlBDEMVICuf5XyKRY{{wf_Gd*#CDv`=zyX+jCzLUXT=ZeO%`}`)8D2x@%w7 z*BZ_X%xXCwzpOvKiMr#D2eU<}!#FT59sc;F=u{pEGoYY;d|PaClKsCV`ENV_)vVwD ztL^{#^WgUXGUWgEPSYa)>+|2swg2Zm|7DTP-=Z+CDg0LUe;Nn<^={Hx2L0RY|DCP+ z{C92t*PjQp{};ysrrrNvj{n}-->v2UXa#UG|KHl$EA#)II{xGP;Q!eyZ2zuYKeI9W?~l(zSBDc> zy@k#HMoGR|bxsLV-E25ZoBtVJ-?mw*YHRscZQ5JYLF3A5w}vitpk0P-hsiBF3TNtt z4d+gCnKp~tkH50zaTWW}f7bfOa`u0g>Ho3q|Lknl_kY#|FhKhKPG!@mf)(n&xb>n_HlHu|IPhv%lpsGdjDtn^smuvk@6=z0HRYq z)AQ${|I8r!$4T*14fDm?HkHVUG&{g)A|4Y zUb7Vcv$?%f`+pz6|9cgr&W8`|f||cZaW{%DoVG(4<~)1G`LCJZz#B?j?l@*S&I`vC z_pG>y=L|gO6a2TOUkUSRi(+*~G4nNd8xE#8pAPtupp-Z+r0|w6!u;*$Sh%DGCr?rr z8|NrbH~COC9MUROS#=`Dx?xBw17EqXofakgpVKH0&fz!IpoC5m_o9nYiiz6YKYTDZ zP8fs2O1aGM?O~8pOI|C3Tv58gPCuO;fG8a66mIvhCkP&~1H^`WB1Ku*6qlWR>$<<#$QZ#z7g1d@JFK_7MmG*5;E_*$&R` z3d@R_Ft$k{R{l}WRa*8sU-^y*NBpI8h2XxP$_OPX{Qf~H}{;CC}VFzT;}TY7p) z>bO|+6XGHDL@P%({K$!5e;jPXG|3aZ4hV&XhVOnS==ZU0MD|9JL|rx#&*25wXv*uT zm*a)_yjTVRQ@}F#97Ld^Spdm%3Q)w%m+6J)dW+c zxj7H2;9}_FR~G7x`n{;%54&pQbVU@f&~WI=+4?aGW>y48BJM-tW5woO8m4whlk9`# zPwV1zmF{6%J-cl;)ErxQ4ng?lcas>2Tfmd2@{zRosu`(%ei_ED1dJ!gFPDI>(Zk-< z=wS&Iu!7;Re{Dk{T&~lzMuUM<-Z0f5L|xEcB`Q6?L?8jwP2!mJ`}XvywP2~|WXUM)0J4mVEzuPS#NrznfV*^!xMI%2rZt=1( zJ{N5K7mVw;j>3KyrPwc+ARGy6tCqLhYmYiZIV8BKfv1|Ui87pWYx-kej<3^zm{dUE% zC%*!AMqS|O-#$p>Nbe0Q3~%(yq!mH(Zw0DC`kk4qKyr4m!Y}cH3CkoEar^m)O_b^& zZ0H(wWFfv7LBmEz3AC#QTWBR76F%Q1!s{8*R#{aXswPW-D)aO5!@~O?e+T42-=APV%62et( zGWCpm;-#`B^HB@4-2YyiW3@R}n`85$X(jd%NsYV?A4OhcAGO5?s0nd ztdujLt(h0>kI&1sL1}HRiZ)eY#*UsnV}Jc%(0#$ax~FH*Z>y@`7sBHu9+EI({HY} zVt4nat-tIvJV@AN34ht%`-y&UvEM&!Z#C)nw#eV#{tG4Su!No6{ryc!*kuV@Tf3Y4 zjq%vq*#ipG24F;W*f+{@&)6ZmVf$k%O<=oB(x&a$-Q3^V+i4u+!bOInwyl=Daif{r z+{SiYmk)w96SYJCG7WnmpHu1ib|Y_fl=uF!3cw7#lwkG(8*G8K*#IGn|Bbz^t)0EC z`k z?J$g~+Uj_m`|?*i;f-f^Y5Y9^PBgB3DhQc2=v!hLQoo=_aP@)zk<*=1D~Sd!7&5fhWRI-fO7}J$2CJ z?dJg?M~G;(y9Jc}QtFtuU2T|K%0tof=6Z2fgtt)eHvcucVXT)fKsFqw~*r{9{vQj`8w=}7wFERH%Smv?D&1rYlMQSxsgEBx7(dCW79y+TwBrS>7U8+H;H zQ%DH`BrxWTj(tk%QWB9S{f^-Gg)xtwCw2pPBn_p$^YlFeO8NpxgWywm5)Oua=#n85 zWqrV`Fb}{22`FI*31FE71Nzm0U&tNl$AErhtYQW~vZ2homOo#nX>iSkd;y793dWZb zElu$(Xt>RhJPY%8BI4+6@9S4sYl=Yn@S$~jHrC&Q!>*n^Gg}LNS-hQ(zkW4yL5-l$ zrx-(@@U*s*0jp>Vu32DKs$c-_JkJ-Lu93Bi zNpidgVINq%So#3uKO64)=0WfrARnx+H(XHKP6L8P)^>3gk()JI$#eXI&A<=((rA4B znn@&t{AbTH3G|W(#d=<*fY>p(lB6htDrz4oiECMW$co<e^$FyIAIf-k`EYM4niZro!2h)h*9E7xk z1FI79?U|OFxA}K3*LT)p#6)Cr+L)mkwk`>!M=8xCylK^{c)qgL;|r z0BaltmJ472Sbx(G&clAI>199-EsdAL%56T2PMc?3Rg6wI&jjw^_pt{s$UyXX$q@gH zC1SO2u=iHrHc=~vy6_b&A(jo_w?KYamY%T+z~bbTef3e%K(T&i;qk~g#| zqi0Y~N@#AerU9S80NCret5PL$qRa{UD7mk}6bL(`9JCaFwL#48AUkLv24FiVL}1WS zd+S*O(0YN&Ax)J3qHX{Yp@hf+QjHiJOB-GjcnB>Qq^>|Ak>e!*WOT{_$_Ofm4%h?7 zu;fiILQu6&S+`!q(C7?6f@^j|uMRg`^k=gbfnjqFllgQ&2|F#`Ah17N{vUr7N-}op zVVA9y%`q#y+ft>#K*9phZSxFGGyuvdWX1MdNjvia7yMx|1Pdke5kJ@uRaCrD43Jwv zkidVeV1skE=O727(@65UGhkYKEA2MU>e;g`{;dHv7_dLl>=>HcZi_FX;V{ZB0oz0+$iPZd zAT&-u)8Qg6)459fbk7UVUTP86ZaMFmX6@idfoh;@ zh!cPnmiQ^cVnu=|WabA7gti11h=$X%17vc<@LY)tAYt33=pGYh$7BX{yS#tMD;w zqtg+PBLBIh>F1z^hOnkUdoW6O;3^$I$0w4dx~_JFjFy|&FyLOf;h$sH_>XP9Ns-O0 zJu=e}(n5u1qhvKjCyCJjEK1W007Sf@?C0Ph1GbF%G-|)V#4;(QQ#I@>&HG0oLz=2_ z^@5BL|Ee955350n2i8#a&$;gb;lIL>iChIo9HZ>Q)K;>L&;t7a_e?DY#f+K_*g#(9 zt|GFnHt-t@v7xW5417;dZGBei4_#`Ddu zU%8r!dRW04VHzZ$JN5`YH2hL@)zyn)$Yab3`Bz*4?0CaQYvdw(N2wEQ#Ku#%&rmBT z4pGoZ0}e`0U*{puVW2g#M%;~nzNW;_E~6gMyq8FR7_bgO6QRGGXSxpjhh*wrd?0;% zH|RzX3!2Ja4UL!KRR|!&5^|mMnN>tDS4#|5DwyOqxiEiUl$RJ*1Q_EB&eDMjpcpO> ztP=nBCY0aVu;b54DT_;a4 ze!>|t@2}IN?Fw`ZCh@x9a;w@<@%aIr;T-ESXO2#@c{O`NmP+RxN_OK{U(JPSRUOUkQNqHF~6QF;1dE=r-1KKhJ*F%QYJ1 z-h78E?siPFxf zAEX>pwerV6M>E&yB!l574_SHI+=Sl25cxl=V1$AC25@8!I7n$6V2oA7(J&pwahQq* z-iJNn;;qob%VOTKp|oO84l3w;YNcbc;FuY*(r%*}puvI~NyA<%@>o;DAO)rQU65ab zY%p6Ad9tGplInkk*YK4!7sVGMmwM60HRe89n`4tPZMOUgW81{Niq3hkXd23SLd65% z+{u~OX=i@W?Vcq6as2iT?-BIN1m<21yH7Ckgr*%B5bTs72=vLF5}pF&i%EbC3V<{q zSL{FmGV@1iWX>XL%mUnUa7gg%Sqa_T0LY;OS^`c8-6vzgCDkn2p@?d@F-Do|Gl~l{ ziaeZpFm8v4Y&46bOrJ&2pd~fdq8mab_#b4;QQQY6A=qx%w!k4^w9p~jy3ARQjj}Je*dwcZesQ8E9ZQzhS#0J$eUa|x_X(X7$ zZEf8Xa3lFPSlSdx(Z=EBXN}R1?T;HzZ_@EcqWznm`Yq(^$EP==@za|gB;`m{fVA)j zJsOkekWZaMUcsWV0PyE9?gHXnQ?vw-L5cgzo}xleW-n30tF9VOtQrc5*GDMWFiDHv z1{j41BfZpx(OF+~W@d}t`W|wp--2NaM7I#-ykwdr2=zYa7^Mbua24x$eH#SKN|6`x zLK@G)CFW@K^VZj|E4Z)O>5sZ0>8q4WR2o{urkj`p;c@Ss1~50;C+F-97M2iCU|XQa z!%u)^J{gwzbXexMf@NN4OyiL6!$Fb*U91=dg8aAO3t$Sg3OumEJC%A3gP>8PpCq3~ z!gvw&BL51p-@4uh~Ywthd+v%jQpu()hgC-EV^J(D3ze6&F;!pZ0$G3)-VH z?ucv*)cBZrkg~rr8fbrWd#8!n+z9(yn4>6*%->^=8om#Om8q$b94Tq6a#S4F>14B} zlYfzB3rGt#(@=i>`jsh{^rNW2hU)v*ucDC)28ED+VTpMf#2JRavMl{4D^L>4ZRx`f z%b8!lS`teQG3>2qh-DTUVu_r!VCd?5p`m1Cm|GGH^Lwo~#w%54dU6Ru{C6zeCnESz zL=xf}q*V(3f#$JE#Hzn1@_oux*W~p+<5FlgN+uqy)38hTgA)2zlFQD28zV7b)gj}zOvAcU)f7xz$ zeZ^0@*ch7I4ewG~z}^6>ZEr&=DQwrMofUYX@XIjYMafLSw2VZemgYZ&C6N9K`ZeYO zz83}ano&enY4Qek{-*3OWp4;~3qxi%^ua*$D9l4MVR0u-sJS?0)_;$^L){I#zrR0n zSwJu7t|*9cgI8D{QATmuF&HCQH*CkcLJ&i~yBeGW-oVgSai=w8BP#1-FB1O`5R-1= zccT=em)(kjNDEv;VW`4C6DN}I;A1Xl*ckSZ%e!Bv8kUOE`%mq{7{8BjJgY^34veF3YJ z#F)O?0xa>M7o`+;$^kXd|H!V6mBGckkq(voOQRKY#48$U7Fz@ZhH;FjW zo{HTLx{Hquzyb4B4F-^dx&eDO!V{`J2Xi&^;-m01@e_xNeJU6q2r?>jcNW#t=BMN; z3XzE8EFT>P{0pdjK=CgHa!E&nmZB}X?u8&FfdB9Wu|TT$%EbVR5a}Bzf$>!`f+6FU z5sestgObgWG6;b@Okx&J$e^mhZOvH+Q1YK4!f~wW02g5TFqVd_(Yxs)QVLlLUw_>6 z__SJjs~#Ey00+~NARP$vDhgAyf~Cmt*;R^}l@wG61a6YZ*Xh|XaBfH0nVBQ ziq6o)bn9fm5xk(SBj^kLho9k5G`E5NpH5qsh`;mY{Lc`BeLycjqA5CcGfp%_1?X-` zUYwq_g0ZAf$?hbx@5ud!kuUw=H=GD_j}Ww_;i@!nJ?1jQkupQD#WpcV2TX>VjH@gF zK_dcNzbOO^;r)x0;)M@*EMS>&yNxoxgKP)pe&}HZY_Y2z^?~*csxpZT{(@$cQol+vB5SJWBm(HXE9!Qf9vZR86A+`W-+!qlP>^$yi!! z+|P#nD5riJEmq+G@LPoFzZhyzT0sH&) zYg249=_!kTcH7q=fTPLu(b&&B^ zcz9Ntt!ciWz~=i2ZsGe0Y`&jh4&P638{bbblkX?Me~Wg(z%>)Rn=DMDpdbA|u@(10 zF#Thh!Q?>ehMmf4>4pd``506d3Pm71D#ao&?2=BXI~;z^m6XS(xvP9`dC%+{DeQ^u z8s2>4Cvi}AeipKrB~D*9=o^dTi`!9Q6E7`q;^lL0*`+gW+1a=1rf<=C`8XG>y5owk z7(r+_D0q5f;v5PBtu%{n60%UX@Jj?R|97%I>`ZUGcE`EJ$enR|e1Q|<_1!{z1;aR$ zW(SG6AEO}QrA&Mvx=<)I04C9PBxD?T);8~_q=;ozuz_*@Ttg@*2pRL44TKpu_P zlQAfeoQSGE3(`oew0)aGA8te2txpk6W3_2esMn=Ez#z^uI$O$46$mgE0$ef+ zlLV^}*^Ho%7lEIo(FKP3W9({&PQYlR3HWGq4&Es>8=&VoDQ}l|#fD`R^5GW9v4{G3 zg!dYxdG^l;)j}^SMQ4Ea9fO*|gB38qNfKv~R60O)#k8!F^pv7jZpSM(qfx@>g^Q;x zJKm@g6)nRUf!@CehW?Rp-p*|qH;cuU;*yBMlfo%}(J|3EZWxLy&Ow+Qda)^LR72i( z!fXM~>?tINyF*FUh?y4AO2@icUEQvG!}>RL6rr{V*-~^AMzcE#nUN@dlPMyt_eeAG zSg@ReqG$2DDu+N~f!McoGW zdg$97ThwkdM7tbmh=?F+y-;6Us51I&9}KTl)NU5Am}*)dR?mk|GNK35{(7S4+K@N=ArvT(!x9Kyz z7;58XF`);=Pai}&We_QsU2XA&HlW21SSQoxV2&@vcr!CPpnWm+XwUZ^wy4>*@{h0F6zx`a&WgKY$77GSsTXrJK%$3&kTgd1 zU0k+}wYrLaXL;^VT$z#cbLheI_05Au^dsKuG&*N=|NoQsrt57ZS)$<2d5HN#A>9&? z1Su|BNyBWXmuh!8({9^Yb*m|+43Ut8GzG8#(3Xlq|C{%iXPGCPv&4pllGDR9r0(QF=kAZmij z{_J7^ky#++*;w|xSoTs<3;6D@`0i#pXR*$IxNyUkzW!UWtnl?K7mi)xPc!v0Ce0ka z`(N_id%EY$S3jb`&&x1Lv$t>x!z}!)P7S^PPkjIHD1w0nd>JQi<1|D`5WNfneEZr@ ziT-&X=+R{SCZ19>MEFiNL2skL1r#ZV@Wu^OtT~qjFQDM<+z%ro1k^Pv6h9;ZFHb0} zgpe~3Gv@eBN#GWUYbyNU78nOA`w1vPG_l}L@V2H{Qb-^&P4`22LzhY$Ds%A45zp)1 z;Lzj>aIh>@i&;kb_3KJ;<!lLRUp>{Erqj;?U9-|TjVl0MqP zTE~Y}tJ~>04#)FQwT};>cAl^|xTHp5a1;lli<7^kc_c9JCCqv5CQm#S z832|S7v@knDAr8PN9W4bEM9TPLdrxrYo3X^WWiqkHve*ouZyuV#W`Gp?PjhjEVPSCk^2|wm^m3H@J7?n)KN$K|b1EWKzG8E0`xq56uKyecpq(;~DfS9=7(elV6o?;t{Vx5UqQ>`*0bF_q2%L)CudCf` z@>KL!VxNlRZZ;jUZ?IO-&W^QX2DdrxVWD+$ViiK(98&3Sq44;KtDY4~;dF8Fd9k?L z;o_)NyvM~!srZ14vr_TlfbqnYz2|OqoFSa*&M2z~@zfby0u=H0(l7VYgHz(^z!zDL zv19-zsEJ|+H(mmyA;$eYtelM|>X0dDTN73~c^qwTZ%s>!49C*J{g;TOuv<5{ThL_> z0b{RM-vKo)LH4s3wYu&Zy7?rJKMQ2}YaKvRbH8qHuNyZuiw#K;9G;S?{VSe#LI=OD zLkCz_}deI`{M7O_`5Iu9*Dn(13eD|r!YRDD0X{C)ny|XP(kPjARg-= zIEytvgGkA!ws%m|FyCpg7#rJDD{|@eU2}UfS4eR0IVKK*!4oyB+Xu(h!QI|=JKdTw zqlCCL%!WJfJwNyYc?}*^mI`?5*M)5Hhqq&q(dYBskfB%D)n-O`~$(BVL zQ!N1jOe1d(b<2x0aV*XXUiylajKFEDZ!P97lmP2C5uuBw(SKa>Jlie z9GR4Ab*&c9-E`_lgKShfqQMYotiS`pO;Aq36F|S)+W`=R`$nXq!43BCA^sH9HJ|3{ zEd}|lsS@fcZ_dwQay4~gUFS7HXx&U&MlB-aU!x6Vwc>fH8tykRj=)FNbljTh+AJ}y zR=Ui~!5YPjevhSo$NZ<;6@Nu>_n^ZM`-k!g7Wt@q%*%Y#>-2ALk9vLa`BCraP&Uvz zI^xHJ{oWzHFGbrCBj}2D>7t@G8U;J)iif5UD2#|ruw+ay<+s|LTeERe258le3 z&*Lv25(9WzZ`WNHbzf!m;qXPDbV_=o4^+FR!qe|$9n^o$t}iZDY_(M z&4_Hjv1W$R(P9Fb?d|Nbd~OCxpAB_0LW`w0xfp^BD4PK)3gn5;IYAH#52 zp<{%`>I~z@p+b`3IG%{6AA8X-Mwec}lG*r<1F9morEXbGLghdfm}?@#jxb|RZk_z7 z#wHpWPb6Du%PK4nm$7R}CN4il@jZ_!@hUBjI}?siGmJzGHTIUESOY#ze@$CqwJlSO z*XpuIvS>9lLgWI+SKi^$)+Q3b9O0yh>@_meYPDh$P)9Y9^X#x)L@72ZG>aIdP^8dB zwNzmTbc(GWevD~Yd-j8xSWg7|f9%+B38!8Rpb`sN(+|N#h(@NKZxl*-32MmA$}gfB zX}76}4utr8ZkAE4nP~7eMaY^Hx<`JDOW&i!i2_o&SK?E|7zn)Xji~d2%{ML(5Tf=h zObNk=YN`8~%d1#tXoQVpa%L##eGF`m*PHFgt68rgDS9J?(R7z=d_PS`-P%D z7WE57-ND7}EtGZ(r9G_JD-<1I(Seg!XaqqT^amFssL^o-X#ZvQKwlP%1YH4~V3Ac* z*K#oyno{AEWK?MCQ#yWFL_q?jjJ_FZS+fcW?&)=e!FCUkaAVm3oqaO^xU)L59nIC# z`^bFHGf2EM+bKsiV_re`ML?ysY{6)T@z54XslnH-qLB~~+%Ddh<~T=NTLOGuTrIMj zXK|Dfs3r>J4+}kRS1NgA=z4HyY|XoF0d${VJHp*EgcSK6iu#Bcm#zwc2f$5MGB)8 zC#4vkhFS|CDPbQfaD#h%tj;ZNVeuRrsSRkzWyC8wv|h21D@P)pbG{D~IrCFQ=d zhK1vA$-DC>|0;NKy`XHjRx#|gMXOnQDJ8wuvv>}dU-9LEehD{R>E)q%Igiue2cQAU zZ68%?dxhV#h$XL( z*pXJ7KzprMjNWp>N-mDjNzf> zNX1CRLc3v}8;rXzZ4aebqt3+<)+X}ZcT+kGfpA?sWzg*Ndtrxr3@%a zRA=0LZ6N{iBZ1u(J6#ZHiTn zO71H%A*$pB7zKl;_EQY;TQx{>Kj1f?5UYKnz#k&HK;`7rZ?CxH8dz)4KoN&sD~Ux*uEug>yWiY+otcV!N>1*(U$4TU)Zl4?K_%(H0Z5&GGmQsge`)8e)kHf zf<+vm36u&uXh=tL0c_8_-G3Q(TE~9teA3*#2;JwN^eM=Qh|RoBEuwCkyfqecpp5Ki z?mKmT;QD5?qU4iGtBlL-ab-hCNDQA-7<6r@ z5#^3;Dua3jZ{pnjas7_n-WC`5g;vmV}`!fpSl72vfqw&O{zBym$!Bk2b|`sRnEUU@bQ>S{Wq+i~^>9b*)E1=IPWez@eAFm83-K&AlFo-O0V4JQ-{3BWH2gA`cE zxAIdr#K_m;hs;AY4kzyBo)X=WzU5vQR{kIKi)-mR|ESF%CN&Tk2400f_kP6SMr$u# z>zN;!w{9S8;B>T;R7IkRy`P{h>Bk3DSUef>odSo z5qedScVm60?gH2MXWMsUq|M15M@OqzNZ^)!AvisEE)DH?vf(Hkq=MK>#)(dSg!b8V z02i7R#noEyU7nzOlrOeVun?}D!lUfKQKV-q4$Ks7DDq8XQX^3}>gexwVOXv&)0c^d zJSP|hMqk_*KhzKoGE0thnHZ9cnSE~6W6>>(+|R_(`y^?3m8cj{615>|Xl_PP)GOAA z6hlEru2jolNrRp0efd?DW)f|BXx7?AfbXJY8PN z$y4BF{sLon4WddL{4u>u%FU5q$aC3V>;YQ>TLDA+3|Cq*NORYhQQ1VQC)6KSyp1eu zJ#EZlqLwl1Do{E%K;cBG4jMJ};t`;9;nMm%2o?@H0tWKl`FDHj;$en=&^E_Gqv>%r zL9=>Hh3Eder_x6#z+(^K_dy2qDI8KbuNaFachB*kIjTif)fr$4A9W-&24HBQcX#Ft z|6(t0Z!g`IfYE`>IT7Vz=5HuJ>I*v(C_}Wj@VEeP@A-HkeO~bA0^j%(pwx>vv^UJ%X2PLMd{g+mGGA}^_K{0w7na1?gC1}ty_Mb5{ZdZsSf z79b60gwcJ+k`8b6Ci!Wh0PxjE8Ofzk>^N%%cI8C^FAK6GrZf*%&JYc4t}vW%gq<{- zY5vhopY%FaFE-@yDPQ$zuYoU@7nkB^N9FI!0Nf%BjuWFd0?K(V=_bhBtBHH#eXuVL zQ7Z0~S4hM|J&l0IE=Q|D1v}TYNn-cP4TMFy2d*+7htcUy-(zd|`!e zasNZ%eN%Sy*TDbuqrVtdNgpD6@C?KMU*im(IE;)t4AEf z5A!CY94&D_puL1!Zes-8Ix&p4&381?6nGv&>DnJTaA=)@9eZk*c~uh!C8aNX088?t zkI_X8W`ViMxP@#&8A{Qog#?d?sbfQ42+Kn^+271{)ciFv*t^7G|F8Qp5ns(dU`542 z0RQ0rXCZbcX1YQR2|3WRy4qzes-eu$XI<6ld28#C#;fp7>mN zUsh4QngckvXD6iKXvmH%rHoe%Wi@ImseBkmZerC}~D*HU0rbINH|qr#>IA153?sK z+0m8}Yatc6Kn?CWGXwPe6*+vx)N>ema*`J$euN8w(+_eaxe%WKWI&t08*5NDDhdWA zsy@?*j6ntP(<`8^E&yl*>;SSGsYj7#yAt6ShEx{ZVI*L-mLj)5Hj^rdwM8jh+9k2C zHtteLWfX{oGWe3H!9r?TxniXj>35XHvTWc5J0%GvsL&(Lkh0toSZx&;g_zP+2GnQ- zd1Y|9HW4$Xmp$%mnj=(r;suqCt1}ObT7cY$LPDhU72H87{z~y2P?zf_Ue&gi*l(#GPuwn2zd}XrIxZqK>`U3(>KGEWNZuNdGIj)b7KwB=N%pb(A7to zyRpskDS~2jVw0!nl8rE`XNL|Dl_BO*~<4mq9-OOivGpCpU zSl+UUaf#4MN}DgGzGDZXGmg$8-GbC_=`lp)oqQP?wnq|g$#>#siE3w`BdN?xg95XM zQ{&)hOyCV8<#siUnoS42J#pnZ>OHS-)a)85L{*WS8AOFIi3)iI6!tq1`<*G3Lr^6W z3$gBatw)9*Kw$a-7&MnE=Rd_x)_Dn_wjYNq_Y^HvGO=RQz>wxsIzu2TH>RVdP_&5B zbcS1{1u&H-0G|^r;g=dJ7)wZedV&dU<3UKF{?UnrGMqa)zqvs-nXJn-*>99BIt&8I zjG`lNq{m(tBhsoLf_au1nn_c#%aOYbg*^(h&wwIF1LlSgtRqEzX!tNy4Bo3W%Gv^3 zskKDQAB-latkr@Bk=FMq69Q_8Vg9VDG14pigtrgVr$ITA9eeX^E%4G%QV7a4o>$6i zlw?MGn9dxxC^qzmvh5Ui8TTfwT$IR(D*5jy1hQwCaxkIPi*kWLf^h<{K5?tANP0S9 zSp$?Q30Uj_0I_DAEMO=nC=4qGjtc%|Zyyz0sw_i_0ft``@^BLSY-|%{R7QYPmJ8&g zl;@J`$tg>=7UrD?>Jkw$z0@lb7jk`mGz?dSc@%P6cE^noU_~+#2L>^UxD@R=9Gf0R zo)*-MkauUMaklUMFB{o9%yu~SD7-GLatb^NX*NVIM3mDlBr|d@^>S15U`Bi}f40wo z^zq zh`I{2#a%^65&;w$M&;OgIXp4k{8z<`QAl329iI}@ybL3toB)JJN`^r+3lM^XpZuS4 z_oj4VRBh3UlaSiIV(2X`o_am+hs&TrU=MegG>$wA8ggGl z5;)h~;AcT09HGRyyT8~cySLw+>^i%yRmfUE8jQd4pI-xM`qs9Li~iSQn>t|>)Ea#p zTWC0^IY=VElWo@komfhV^ZN9*{B%! zrV$KpmV}=vLNbP#p&vk>Q~Vcaz=g7Q(;A@GDG;%T{(ukxJ$+uP9*N={H{Xo@J;jtU7}cdIR+L0#+!X z=%gRe4`q9M%?l2J9vX)wUTddZRl5Icn#FJsFD|oPlDjm7Jr-x4!iauwo~J%;DO`vl zM+=rl%pcbn&}W|FVKTT(fMz7eYUIg*F2MYIK-8?rjORlRB+UnR>AmOVZ?uD39rTSA zC8;W!V-W(0Dw(Mg{(b4~{xW{r`cJ?0kIAlk<-M`TW9um_^M6_scWn9a^bZRN)vYf2 zF`>^0^6B(^fzNGz{*2GN{CtMbfK2Geuh{-CC%Y#n(EKB8p6rO>HMH5GDyLq@z4pc| zi|qnKK3`r%gKj=?-@=lrZVz(?v&-;`w2 z{4oXbv{0&&rTA_18E{H41G3U+CNi3Nfo94AI=pL{u3N^ryn_Kj(9)hC#FFonxN~@pI7Ua1t04Vb!T6(yo5rDEyD^LBEPQWu0#MZ%ib&Nda zO#=;Rv?gt+C__!L@>(s$rzzgxT*@RI=w5Jzn4x~2kN4XNPzTOy`oUC1B ztFrU;n_XQ*TDJNn?7I5s(rRLeoci51NxDyZ732Yul*e5MD5^g|yf{l^abW2wM>K*Xb>z;ACypAmYF6M~0S?IE_mq4`T-cbui;ZzOx)?qx_YsUF zi4{1G986n-7|ncC3|V&S42-!GjB3mqdF)7m>thb?+5Nz`f*gO;@Ftt)G1-^G4^Bp* zKXvf-_l(~H$P-${D_E?AzuZ5nI~SpcL?eF^(kD0Qe#Y~HVQc_v2H2putH8Hdb)Z}S zSUOqHOMCmgdfWY|&t3JpQy>0R{jd|8=|E&~LuA{`ybR5*(dz~M@;FNU_BPy}_~2-(Pc#rJThCeT zw#9+kv`Gb)p^e2j(o*bE#FjDx{ec#r+}yXO=-gu}PHTIIr_)uG_$cdt2sx{Hz?4uI}P_!0I&zf%qe zPtUQN1alul+0)M}8D5=(q`PUb;Na+PWtfkQ0P24YqgnhVeV)j6K2t391v%zW)O1&7 zEaeg8#rS;AN^KcldLlum@__e(JkpN$p5cV=21YqTew5pxE8>3@&p-(+Gbg(e-2b48 zH+QU^W(b%7#R5(fe&sH4`-Q3ke%=~yw zHDOR3MvG+zwc_m33~g!3r%iv+yd(qFd3rQ@?idMrx(E2<=fy&j2L)kdonZasWcLDv zP=MW?Iw`nOv%@tzX2p|?3$sFD#D!6zFyX?)EF7O)cRDTj=j8<6)|kw}2iF~|iIYdO zHS@zRe%O6^a((y`9*#G)pc=^Q!xi4O948YlofHax;lf|c!WNgctpD8>PDUk?2J%+3 zdUVMG$fSD#XX7N3-w1{jM#qt8%=S+cRE2S#%`{Fh5~Gglz(xU?*M(c63$4Ya z*5Il`%Tj0#^Bs(n2|Z)LVD$PD_GF2S_NQV?6k|^{;<5Ba=$S=Ls}UzK@fgjpOF_S4 z(@9R~1>6Q85BOJn6dUSqq#vQVvt?FVNM$H0FeV|(K?!@n4G15Tx}a^z9N3GB%aNcy zSXDvSKc{9CWE7xTPI5;VVnR1;n0r%O1>GTINfEIn93_K~nE3C}D$GCT?y{gJ7F`+U zP^wQi;q(sZYgzM2d30HMbU3UChh-Q`7-(^BtQt0`s2W4xZl)`X4GlSQ*&It%NDOXo z1>;*Nl{$G3EeisnX0Gu)0+Pq@JVK2m5Q>pkjT(UW5}gSSw}8R$rRHsju&TV9QG-Ux zVl}ObRDVY(T@dCdY>24HwnP9$sEh+BA{F*!(6|a`vpLxZ(H%t9Qk3+UtcN&PB(f>A zK`ax_4bm2vrrb=6Qm}2o-OU`C3senWeXfjELIpcyg~h@eiYdpBg-@`xu)Z}~Bw|m= zzL<4=)$USHd(rUBWb_O3m);x<&=)*Tx3{@AY#iGU^Ybu(%@XafZJi?<5AKMqVkU44vYzayl&2bbKa zI1U%YMt&x(wy@~O^GBn0&#;(&%UL3WBNFf#0cwV3KvV%fW0uk28cjUY{Rl1>X%syA zxQl5VjX*cjONA`1Twg^5qTI|Oj3Am3gHh^VVNX6k70*yX=yZ)VewYsp z4P$nH>7BIg&h5C{I-X#7p~?47rQp#nY(3TN*rUNoTNIC=JmvCkx!mXSUb%eA<^6K` zg3I^H2BLK!*391goB*FvPC3t1APGC|AN4(2hW^*I;Ijscco?ldeIG}+fpPVa28zqZM~(d3?Pa&c#qduyBAGn(AjO)l?ja(``;`_N?W9(4|W zmsFdForC>-XGl;EwXYX|)6mSwu_Jr`;P~LsaoO#^<~5?E^{=~ooesXuU3_{#)HMq- z_~d!$qx}_TlIQ$`&lCSV`%93dXi<~3e@)})Jtl|s=|!*8>zsCbbuYTdr=8>Ki^FQs zLA7YFQ1m*E)1XkY9xINeZ;kSTaIKL2V&REA8C>ZDp~BU;(q?A@*b-Wp&)=Nm+bE#F zesn{Bfmp=W&Y>D2Poj4Lx$U0p;>cQ*G#68_U!3d$(wpH#S{-}5cW^jyZs{ky=piER z9=AHjx4llQ+ka2@k$Q5#7&?bHw*ZOXG zCIv!cT8fnFJ@Lu*ZGo|#_#3ih)ufww`Z6>8=0fqlN=l1nUBR>z_!3Fd(MMXlM=Mc) z0)7-l89p0m?-Y%D7(j(oECpEcUGrxVBT%$Aeqp&)nA>nuiG(>MdBz16t6pP+NWA$d zH2n40r+QF!ET&T27<_1>pV18wUgoDrb~&nNWc05B3MG+=_^#E^Da6yu=qV_*qXwMn zbk{CT!=B@Nr?^Doq)u&%_Gb^yhWQP>ZtPi(TXW*&M+dbZ9n^hvs6INZ{phgnBZ-IP zr}!I=UTp*NU2QXr=X5i4cGon+@35IVB)X^|+Zr(j0@nz$R>^b4a19hI-X0H#_G3To z6E#W?9r3__))AjW@pcm(mwxdt5a%*bqGn7Pa;y7V)N#Z(N>s|5MGy&6s$stuRV~H* zZt5H+9%&j9^8yLu`|21(RYy#!?}cJf>IWl;8?jh;HmS$mU;0%FyF{I+p49j2y6704 zbW5Fdzp|6=x=y-803GZf9v%J;1dvEC8xk$l?;LZc*<+wt`skJprANIET-d&py_Mtm z@F8ocUEE{zO0htcZ0}R3HC#XczfkV13Kl;~p ztLv(vv~)kkds2ylE4M*Sz>OfMMMkM82XUGvfu99vHJS#Q49@J>E0SUkSWi3F#0yhA zliZC-_mK|LHa{_5O56T?ap|80SqRh1O^G#ZJ1gcRR|Xh+6@7+(s zZJp~F_ushq7o)`>aNMQzJM0x*>CVL3Wg$1CX`yz|{^wSe8ujNDaDo*RLQdB=A0$xwu<&&KByCtrF2`4uk3oj?8Rwt-S5 zwe}@+gK7a#M9 zj8WncHwO3q1K!Ked^9r0pv=`vxE{F*jEcy$-`hVvcGh>R8;5QK0Fgk2%)h8jSeP2) z(IMx2Z#6dGw9n^$HW^rBbOgYER;Q=WU;XLThxeza`Q&@cE!LjGjWl0h9WFX_Dkv0U zS-E2K_L1XM8ejM+>^-&)Z9I7EpMo?0Y~#>d)t0KwOyjdykFh))Zl+vX(@YxqpMs5} zIla$luKZ~dZye2O?PxF(?N?u4Dr5@Wt|A9!S6^Up=>nV5C`(rt;pOg@84X+K18b); zV#Mw37Dta$C7d+tb>PpS(c9ag^cF1yqyl7W`(us}Fu{P#BC@}{O*DS~DDlUm6<5z2 zs0IZjkvlp%Ygx}I1}397Jr6I!ETuHcT8C{c_es8c;YK41h(EHgD7X?DGf>uE6!`h# z#r4Ae_zP+uAAQt8oj;BVyCv;_^2u;L$F3|yKKTeZWvkRhVF@v?X`GKf4zztzsq2)K zp8!Ev5g(oJVJyJT93AiPcYYTE9O1=K;l(11CU?Lnn?DO+3`@W$GNI%})xWtH!Pnm3 zqRAZsm)za!?C*Df-&GN$c>IkEBxz82inT~hh}fj`ZLll-{E+Z9ue)cX{rbv-+WAsuS5f7PxWp;Uk*oftOWHW*B z>pf`-fQF$sUKC?%AoJv?uo1pdQ1xSwid9mJ1^KWwLKq)jp)meAZw|`iiGg-D&{}5u z_oTK$x%-;biq{T+2+vIe;F;dD>$uu=y0&XV-kZ9XIiv1NWLEn2*Y-^)a#P>N#^1Al zzuNzFZU2M|HuX;cc+Z}v)t(pYSAD;Cw7;omJ_GmcdQt6qxgOT~2Y{$HbS)0zJ^Nl( z`#xX4;fKfj8{u3iKknD{d9~~L+OB)Yhuw|SW{h;tuIJURXB)ci9UpD#S|?_^U+=SO z@0aU=ynlFfyt(&vIQyQ%xvUQ7Y6A%Lx*KurH9Gg-tKTc5U!X$qNc~~-7ON`L-$;2$ zHD_6csYtO6@<5R`zRXUM5J-C(MV<(#R1&a{iWx;jYlEs>P`;^64W_auS-=63JO1`| z^f*IlE4eb&5_lELL_|lK$I(TQ0Cnd_EVL=mayGR}besd-`PZ_$CrJ2Rqay{$sghAL zNYIsAgaN$I05CKQS}bku-M_}(9XDY*61V*!bvWkcR%sX^4Jy}LnUqOYs7!SH#MMH! z!Agiu%N)F!w28vkKs_Y6(FR#dJsW2?Z3{R)e>MxTsy~0Lo8Ibj4i(`fA$r&;5>GmC z)TN&`LXodaz<48F1XBu+({8-D_OBLm3ZtVd3`iK+u%lR(IBsLru*9USLBqPbX~8e6 zk?+7bnQR&W!ub0#OoAD#4XJr2ZZRINxj^)$v^t25q=1|`4m&ZVE>3acA0@e_CyP<> z!YplY_hRr3e>x2o8SyhL_r#DCnxom!VS%%$ZXWkf;$z&zD-0ji@GpFH7l93Qi^2*y zTV-q^t-H}p*lhaMIh|FwDFe4Lqi-pfoM6VVWhGn~ltK<0TYw@7*n)LHWNrpltq7a^ zYbk6huKUi0buS7;N;{AOXE|p-78eNjpxv-uv9NBSA16JJ&2^0WN}R5#rz-0udilLHjTZY*74V2)Ylvh{IEi&>LpKRr*!ZjuKdz zY={Oa?n{AEx?CWs!=OYx6BxiHauuReoH*D5z{b`OK{AI+6V~Q+9L-{Sdg~`)YE4Qo z_teOSxroy=Je$kb2pbzmON?n!zw3p0{PwLEoeefmMu3E_+;ba!x3TXwj@(8Uo_gI0 z0|IedA`u%O@YQ-W4a9(aEjO}qP@ztEwY+L@YYG$Mp#&sy_vilgn$L5TcpFgI{kqd9 zn7aqq0wlWzjh2WOeff*tbzE8A?eH=S{_b0j7tMdLB3rt_xQLf?cf)R>RoDQ1 zKY|p4TDj+Q{~|3R_97%>O$_pd6#<^D>lS76gyC68GEK^7RC28~xSvL?&Z(mKs8_`D zEaO%I5_c+>-hvao&0G=GkDB0175z&aNpKNdBUHid_~Sq263Kx-_$r-3%cpf~RXswr zN2NOEZ$B$ELAaHEc`pOE$@@x8AKnTpB}<(tS*|{E*L|>4n$thq@L^L}3c^TOi6um+ z0OC0SwC{l^WZfdTmu|J2hLNpTnBOUD5u#Gbv~EDc0OXdJSq$*53>B5}p)x2enFkik z{3eR56%AGJePJAA21o?g*^SygLC%ru+5O4pcf^XPNG3Npr)1;HWe^bwG-N-tFJT%m z<&cQVn#Q9~u;)dB6k+f#NTC<#zI@;d$U#Wb%A8K^Aro~U07ykk_`Lf)CATyeb?Qfk zqO1Y)4jSL@Hu8pB`c@H;V%P}GmH-DVrVV6(T`#@bL_H*hn(1p95xK-_hzJQ58B{Mg zpLA=Pge{rU+A8DN4Z<{yZP)Z(PfFHgw3fX~ViH4L!#}&{am)|o)wug#U4Y-D%)vZu zkcC_W=hP5$LfQraPM*HTRe&^6<1(Jlh>^U+gyB4BAqq$vc5u;de78%x88VE(dZDo3 z&C~Zi)s_o&rZORVy34z4R_&{*&PL&a0o>~ra1GtNX;XeX%&!~F0C%D~bBUQZe)b4f zHKiLx&HA3xfGhSYOo{!!3(o%ACIy>(U6l}+=d&V^spI7|Sq0bbD|*pG!d^a>jwTA0 z^%>MXRE}M*g}pSgB`l5R*TNayoWSN*7&N>*3_~_JOt31`PxpmpV<>9?n1=q_A=T(; zP@0k0zfz59yo|Es2CKnZ2SH{rs|NETHPRn!-asBZC%bmLiS9OJDMj9qoJQZoQ0^bQmqls>O0JLb`=iZr{nD5?$M(I(rMe{ne?$WQ{!#bvAqD)rt51LZ{7P_8 z={Hy^boY$ThcejoMv zZb=EP+#j+3^ZIxD#~qsC+*^I|lSugStFRInb)Y_?KW8&A!ui8>`6-IOL=7h5tU|IE zpxE2GeL!dP_+lVmz%!#^RYJdva1XPh6CIxNz+P$2Aak#R%ty_o08>on=rZsi@+VQ~ z&k;2Bfh@e?C3Fg0*Z{e%5IyG^Ye3~(;tW_XWn+M8QQVA@I4=ri0VUEBC6tj3E+9q; z_Bn=U&_5~YruOE$Q~}OZaL*McUZwJV>;3~)o{;X+^%Yd6C@6j?(pLAg4oU!QSS zVeB{0YmbDX<(1a_E2Q=Zm$sUg<1z~fWxg&eGJgY%Z&P{4oFKeYW-4&dvrXBlMI2o6 zp`Zxt?o=ChNH>Yt!zd%BOG7-02SFPL?u^5crIy7SSfXRN>X%;BeiY7X0ea~aFBm)Z z7I=&4y)$}CN9kbEMyf2FV`hP&T08l*&pDCpMd3StabF#Awp&tW2h9L0rkJtFr_NbukQErS3FDvD&G zjrNzCA~`PrPvIh;evQfBvUGb3C*L)GJ{Ykc^T1ZzeWt?QXX(z}*|6T6RkU#*o5A2Z zOf&6oa;e~H>7CQ|P79#094!au1PW7hd{1i*xMK^zz{HlE(pF*38xK&UkQ`m)US=fs zNxVz@!j-*C8$XW?uSqO$d&^P*vuwnsTeM88DQlPgN0c=Gyy=hR3mbPQov><>r zW%DajftCeyO3Ad3E`h*%0vLUoqo2eYAzi*p$e#E%9P@j)rTupN8H3u+DNnSm8xuDx zawBx|jG+f~lG!u0bj&MuW&C{FmdLP%OB zbKE)D+xvqK^Uwch!wGQ|GN}a<8*ux0o)zFn|>Y05>{8L4d?5FXIG@h&)Z&^)Fl<7y#<%AHX)! z>eW*vU%OzrOFQ*|>;E_ZYA)BGo~u6IM~8cQ1E|h7ZNOCkWIg}rtlbT2zPKA$^nkl@ z)IU1xKDb2m-?D7+G@88(=g1l%iI0wC^6`1F_!HiOMiD$-)_k*Gm>Svp`-lA_#?J?x zqwXfRdfDE+eXZmNrn8m05qvy_`+YzlYg7}auQfM>>j5_da9L^l`HPoNe}4Vp^xcd9 z`1!^A52tV5et7lfr}vz($1(kM^*HR6;FQopfs^CN61XE=%GYBSP!vy95K2A^*EUDT zidwXGu#ZAw#Cr9cF}3kcWfT3jeB8MGQ;cZ?9X!;@KkglL`@b^+Y?DL6ih#KHPe5DB72mG+{jV#6%p095C|9(K>H}9nKGOb zQu#TV|HV&2JQjeo5|!P3T1#{+*#86$&yTE?#ubL|rY>b55aV=)3q@e~Wdh@;nB>Z6 z>l{VFd?#(_56S$Tb+Kn6Pkh6izaSsm4eT8j2k4Q7X*=KkXh=3_>TYrQ3jTB{&f{G$ z1IomYvNbbNesOX_OH7*k!k=CeZMCY*@0prc&B%%HO=OpfM#8MUxuqB4j(NBN%p^yx z50O#(2Zz1h?{*#@4BY9OtHQb~03p4X1?&CW-(+FH|J!tyR4Pst+>FzeZc(-h8m|=T zhsqzgF6I*DgW-{x+#TvaR~qMwFM(}JU@q!ok(!IUGrmTzDEL}KqK(m(C%E~U><#lD zi$|lL0FhX`?`O{KZCC>09Rb7*%mt2aCJk;0{i!lKq)6#23ZLB^EYX`fr8@$MEja}M zTvyd{BL-rG&}^u7^7jKh#pEOOXw^bNVa zwIt3ilw%CgBoKA!45#fYjXQA`xfBQpVgBwf+9Ky{Q+)-77IZkX1L1k{*a$%X4WYqgyG-jmFlT_e{P6g9h(;-s)^ zvtVTO*X+t32bA~;QwUHitx_wd61&)(Q$K;c0=WxyYgG(m&Q0obX&A<6dl)4zkXPQb zcyaUQoTU(sVZ<^EVBG=?5vy$g$1)>iIS8!?rF*!mEK|Sb^F96f@|#U)3c}SjbP;0n zL=*HvkArlQvQ{)SI9emrW^;p73j)(3MdTL@i$pG#t&YgTLOJE_SVX>dWP+7*+rn_y z9TWyus_hl4?X9WSFIMZXsn#o2>#eEQEmrHUsn#i0>rk~~_Lw}k(_$DTzqn#cran^% zf2Ph5%_>-9=$GxI7rCo)xipF@x+R<>a~Dd{0!xvAIG>AyS6dh@gP~Nei##tzHV4&A zgw0GHO6ozCggKLgVQNGYu}D4*&j4CK0eu1Ea+iFw?H~NkB1?UN9e0lRj*V+8m8qxQ z*oanr=lUnPi%e^*3DKAdQOYVzclSdPhLp0WYzLPvude*$rb@Zp>!iCO5op11W z+2aXX7XqVJjeY4C6+@Zq6L#lj9{V$$Z^xt}<;w~Y2`~dRV7U=DQ(OoA209u~UvU*; z%1R)$+Od<@kLxn!SRI$Br^Y3ITL9K~k4x%_rz~|o=pFvf zktJCBg{QIG>2-^Tk+!cAW}IQu(Zq`^)1g1JCrHr%g`mk8Q3t6ROf`zfx)d5Ba%!T^ zD^&GrCJw+#6%34*l78o20BT)Jy#r=Cud{RtHnkm8+b%TtP#9$$OIctSmuDq!#lp4>D8(wH&LRVr}Me6U?=S9h6Su7 zvIr}7B+CH`5`Ef{!yIa)gZb?>^O+dXGAiq$b`0QXXuWp$_hryPb$`k}Sd<4$j8E~L zGNpV%_yTULf#7k?9+d$JtD_Ej2m5<}6k<5)?(g;g2Vw@C7%36-`8A3Lg$gzJ!FanK zL)_6vP}fJP;r|JkV%I3X+@zC^63)O`bAh}C#g_4Yc%A?gQc-ct~I2XpJ$~4d}(dEkA zT-cVAEqO6@BqNA(!?HM#i6~c_{9wq2?{3LJ_S+-_**8iCc=Ob=CuL}zbv4b*9s{7vVdYYp0*d(t0Y#`F+c5E` z%$;u0En^AWUT>Vse8?YRp{v;LuQSs%BjNWt`$tEAfB@pbbVYKRbD5$o`GeM4 zLss%UNQDOZ(@NKk2Kz2+_MGGM?1(PjL_)y+ibf5nSRUooU17&WqyyQJtGk%o&zF?L zo8=o6y#ZcfDg05rkcf-&TaBgQK|87NHtMjhlTwVpR7*BS{N_A~uZ&`)qms6NO7&DD z<_Khm8GSr)__oX59hOrgY795~IDu_zMPyd7Cs71f=ZK++>6DM98ayDtlu@SjwWZtof@kA4n!f0Of^9#BIe0Pd!V!!WgSUneX&rtRow>0cxzL z7O7+kfSktBWLU?1CJs3})|O}LP@1a;yD$aFN?BoSpeAYCj9J-jz2DRJ`8@tovsca# zz55K6c;JStI5#5N*KEX3K&Fxd72X}jg2SLF`USE@%5A^0BaNq@{cujkXN@shZ5viA zlbY>vL!lklW*%MOXb%22Fnd}i^NO_pvot~4XbA;h0Mras;$(del%wfAyL)lqLYd4iQ!%dmMG%IJv$_M%|@0c}N!V$SusY?a`y@`(h! z?+Y48rin5`W)tP{IYDBb#HWzgtR$|hYAm(Nk!5@}nHQZJks=9*S)#}(>Lb85ESSSL z28CDGW{9Z!CJg2?oiR)+26T$vXre^IAtK#5Y|#48bmf2u09xe--(S7h>#gf6H47Un zuRgvm19@F)Gp*se4OH3bR=K8mfp(5?=}Y!sS^d(Z$hLN$qqdS!mUpLQd?l;Ff`1C5 z*}y04tg+Xt^U6G;h z;;M#*%cSSbC@45Yi8^r2Wie$62Bi1qiwqukBfWvq^#%dlr7QIzXIVt(g?W}LT@aJDBy!F41fX&eQG1N_GeZT#aVbfuxelR3|l7w9^j&AXfUn%HRd42cvL6 z_U_7VH%Cssd!Y!IYe|=j@y6JT41qR1GN^^;H?kKvmvj{!_xruI3|FmVlF$yt${=ff;3jfn*%-Kq z%=$M*ZX$!}jiH-(W8C%WgUA@B8o$YGqQ?rY4Y_zwx(qdD8tGNO zcs}0m9y;#L`pPJrgUT1mNIPr)r>9)JiLL5^iz`j+-?%0V zIDJk|BPS=tcg8I4Rli}YxjOJ|Wwy1@Z%*FWV!fwg2uxeIzi%ts(b{U28VVxXW5KDq ziaVajuhb_MsELINt9r`n%&zaNQWO;?r4#}}U0B%CFglN0r1zX=Ei)o)2~fF)l-kkO z&?UnmW!(meU+LIdFw$^t-51B=0NP>z0u09zCvn@xV#$a|vI5C`H@xSe)YO=)TZ8h% zU%|VYSMOS^Kxcfo$oHF*1YG`pg_o z^=1vGpHKxAa^~cx_}SC9uXM2YFl{VT8RnfEYly~-tMucC%3J&ri4IJY&~E%KUSb-( z<$TsyE@qevOGK5o9<45lTv%?Y4nA&N9gWa&K@1cjCvV*!drE{!jM$(&q9O_ulWr-? zgwocF7~7QLNz|2)AeMj=x?%DNVlG*LOcS%}#lrL#LF`82rn}$1$HC8(h&FJ2_0?MulQA}x9 zZ{)64FJ8kI%dp!jUbu>T-*i&nD!G-+L1Tb{`Q5!}!xGbH$PX&FMB&}!n@_7C1X|L% zvIGP|V5yEJ2Wb##TPbUa0t7Z%zvuQp024eO+5ajCtCu9$YYJL`2$I;MwBM!1c0^x0jqUBmS9Mmo73b?gn%7Y7V_v(gahB^gwSs1yAFLhAkn&mB@p|@PT?hGj&S0tVjocRB= zQ}o-;&L44Ns^?@@OT7u{??1)GCi(8~*IrlVbuX&d-$^CXpi=jtt`xDn|1>v>UgEX) zMBTd8Uj}Oy`FFtOG6Q9Cb^pS%B~AWvnk^G@J5ea+b5B}vb1c;dUfCK3YFd8;NgveG z_OGRBu*I!mLj0BbHTB`|pk9+<=PFl@eo@)v%T24Gl;m>MYgXgucdu(T>PS5RH!s|=>K36QdQu3pqA}4zwHl@N*P}^6XUeFN zU!fT&s!~h&$@8NBU}4Icf3Zn!@xi~S(Gz{OzydZ8Izs6Ec7Y)_(DLVtOaCm$LQJ7@ z?`<-_YFOCNH|pT%Q*)eV%hlca6x;-}A8v%|H?K}-t+>-dBijblF=rvAo!Hv%Kn3yS z3g=7})m?1H+s*obx>oM}$sP5ip~JWIvFTeS`20|S?}q5x#Zx%DSW9v@8$M#=XW7Jqw+3Ww?^!pVY zSc9vV5h~VOddh1U6qP<_e$(J@8u}Y4XsRU8xr6+Z>DCabYxO{d#jByA)+aft;`TME zhz9jZ#`C+DhslwzTOLW1J@E2K^5c(K9?_SG*GAUR59pmxJU?Y81iRx(i}qT}>*HR3 z&)JY~quBaAvu-4s_e0N4?Bjn{IQzO#2=|R-S}@S#?Ckly{gwm6aRtA1oHnxX(}07E zVpvyY(OdqWf(eu|buNp97+`NIB*l~Mjk91^~J+~0r5tleueuzckyIO_L19rAZs z*WM~OB1932!^qa?YbO#0sR%=Xh+Km1u4`A^C9h(KB!Dz^Ie^p@(`ekkB!ZhP$?(HPgH&VhY#pNWLaPSg+sjA8>*&dVIhg z14K1@>nC)Bc>EL7>}<@Gbhv+faIh)LUGHfB_;|hB*g^N`u;*~-JCQAUy*m=`IfuSG zJUZIzIYR<{m3_OhRQ{PF_{Y!hUbEXfMy>;7Mt;>sqTmpY3}UXZ4X7r{VA}N8HNp&M z;Z+bXGo4_Z^Ct=57$zRz^$%PJkS1Fx-E(Og{wInQ}*@CK^#YgF@R#pGzM@)4rKMcYE7G< zP8)%^ab)D36w|TLml)s&Nuia9e3EQ$Pv?Q3$QdV2o|Ef6u4!>N&>jHZRhZ&s!WYRZ zRbYiX)ds32p202V%23v_n_z^wk_QpG{BmAKo>V3#Wvs}@XJkOh(QEt}1vndUBEbbG z5)@O1ran^k0|nX3GSnBriGisyF$S`G4T!t|?;H{3`a6C|pJvXq`92`mrI*5mX?;k7 z`s!8J#;VusNTlF^y%N`sk>XRfMCmm#9~>a@KRz4d@$vd}i;P9qzV01$4mRX+-0OF{ z`x|mO?(cW^7*$h051M&K0#QvCK|-U$LZ#|f3b%BH6-Fv__5f(?Pf`3O63Mh-=V%=s zdiaz9C2POM=l94Zt%Fax@`qdI9D?@qIP0gg3J6YNQ@xEqu>sRADZ)&=uL#j%tUm|5a%&4c4SR!OrRGj zb4P^uO2jSj5z)+}l@7|!k#zXrR)_y_jP)lU2OYWsgd@8(-r1R0gWZ#KSLUFAnmbr^ z2kOdpBm%&k1aP7JM5O>uKlwk|`~zbljBqRi*%9qymQ$33QkDQ1I*uY5S=PX6TbOk? z|CnPQSIctf{vL|u5-THPa2Ch@oi+IQ-7ewT_4}gpZvgU@%@(1>+z@0RKEyg_G4V^W zQ;zxBP=o^3-9{Rjc5YTnUT?hOd7OK~{r>g*T!N^iZG}b^M1S3R6DJq0Bvgm0H z@BwQk@(ckiy$dd0Trbp3AX7~bw(0_~5&c1|+Z}*q6-}=X-IXKxp+1(9?wQT}QNaewH%cJ0A zv!PMyP^dZ^LuynTbGVJV`AKv~RJRwDV{m37NQMqa6&s)zIR@2>ibFw_3i?EP5&1}6 zkr;uj&skdHh_o!|_8K{o6G$*z4vdT1mf^wM81;Er$+>>7Uh>GJ=qfOg%kUg&?!v8F z4XRWe!}fO9D<;&ARNNmPmyp|-kR;a>*K&x?ZH-{)WSnYD#gTUF;89175i%)Y6B2)# zDdZSm(ZF;(ZgGiZBgTQnT0TvT4flblz-!bq?Uqo509Dl_#nz&I!-O9fKH^Ai=XP1C|yoi2r6Lmzi03wa* zREnPfS2c?X&DNpr3PuhF_&WY1YJg%=$xLN# zA4ZRpVbt`xPB0F=cpOb8UN#ODsL@c9U=jFPeQ%y+4MjiDR>o~5P1tEEl+Ah7f(t(j zKL`IAByruG>84U7#!oN)^z_54zq~ko_0!8&KfU_!H+b9K#n?jKz2oBt3$jDBN8bm<>x%)$ry8{-50 z^9F03pJNUF_vK4#QpzYuw4fUafb{fg+1&#Ne*CFNB`1QFo^Bz;Bzqd5{<%uh*RaxsMQ@9zeUT)CH?3x)?*qsb$xfCvj%usF+3p( ztKnRAPFFY~?TZHpqh9m||rG4(t=V$)(6E=+rz9^>Nf~Wd)9s)4Jl&}Ne zE0&IZ7)u17dA_kF-rnM3h)qo6B>OW=7`H||>V265qWWt%!`oXw-`*Z| zBmlsTozl+ZgZ?gxpTV^J43Jttuk}w|3GUe$dWyev8JWvckbVf=VHbXrJ}VVrxV>9P>p0;f0P6w3rVF*Y-G24<0)HYubr z{fSgWTl}0=Wwzh+LbxKDUZe!JdgPZpa*0SHt63PhJp12gj{fG#xF7pHydZCHkMWPL za#N`C7_U&kh~3`7?QQpH_`w#50P9LP}Ls8Y5a~49~cI3S5Pi+pL$*J%{tN^p-$jwC1hulLU}c194L@ zo;SM_*t6JCG!>5cTSiFjLr1k;NS17Id%GM(PmZ^@@$8NE2g}jkpg(|Cwn8lE4tj7# zU0-2605lDS8llt@9Yf941jWm%!qOn^SgZp4Ool9T-H4*-+_>QdU&+j)NO697u=)ZhP*h84{A$Ug)0MfugNKRAnIk zz>g3SjXRUuTi9mtJWRY8h=5>%un;_Lpl^0MME=_ORw1Mi4pbaV| z;V+J-d1^24!uGvL0#1rxkve*D_Qm4tSUb&fW@gD-z*68%Uvp%L<0zh#Cv+DcY;R|9 zD<1T_0Hbuto3-GA$9f0-UI$Pn)PpOsKeB;9#S_@u``*r4)QZ!LT2!q`*CdP^Ivqg0 zEg*Fl;|%FbOb{~)#_?nT_!!a1P#LDck0wk^iI@w#3u?vFG(=|;PW;penWk@~K(J!U z53)FO^4vD=v0sg&;?d!ggtRk&HA?iRYW${n{itbg!5{@iV^rx)6rB@{657BP{MSTy zhhp9RBSZXA)6qyn86p>hj5$>beFBoe1UQMMSazhq-`j1Be`!nr=$Yc{03daM-m@%# zz)(Xdkns^81g8~00lEVACVdi*(gECUO9s8Ee_FHp?pn5s>%DRDGNS?5|~VH+mR>n0ZE*&qhaY|u$O<0qh$b4N=I zrj`2ex+pi;dTcdm49%S!`osQ2Z)Nd}x$t0I| zO|I@51p#k$YIOjjRiJq$@pa@PkVNiQ*SWnFj~$j?P2~b`RTu_AxIyMU?i2|@VO>Qq z=BYJh&YV_s3NRpxN#4MvNCh#8!50kj)|!7)cTMCV<1HnfI2Ax1BTN2(UA?^}E=1gO z09;Qx2u3kbn2x(do5LaxI9^N~u@KhxNpOB@H5Y0>VMOrBR?RoiWKAg$N{(AQYbW7o z--TRDyr@!WUm=xCgfcIw<<5DoKsgnK|HLn_GE<5IoEbgZnl!UyC#IIHT-_+qaxz_3 z0B2dM960^PSsc#;%w`85t;j6P84B7Hkl#$R%_&@_fKHY;Gh8DWe|&puFPk1SwP?!~ zjeTzhx7@@fU~U5Y4Is+@r)(1{hgKa(@G|4h<6qJ96TE93+C_fb<&~o<1)gIBLxJ`N z^rv9~5H&?TcYy$_2Py|Q#gQ%U-}rzV9{{I*-t<)SK&J3vRVNkkCpu>mfQT`~1l6_# z;cWrJP1(kvK8dH2uHl{LE(Ay|%OHhYmcW*Uo{V5VOdf~B1h#NKWUQK2t3hwP>hrRcmC(~D0~S0R3ItJDiFG)E zHV>EI=Z&L%VmWA35qnCoj8OQg&Wt!~A)K{TgYew|3zd;Rqdx$!sai;}j=o&S6cPP| zR&o9Sz>2d?joC6(Mir zYtf`J5hPHktZ6;bQ_&=bqAb3YkG5ZTr3gBvMnr0=ue`6scCpz-Ef5z=Ss>7K>C7=8qCO;ZUFKOlgVBN>oQ5 zz@TyfVVrpMaH!mru3XYu1T|U<{2KKZ+<>0_8aLYo}V`rFeVU%$9Um?vLXA>Q}X82D-ab>%0YJfQ{sbN#Lvj`==&t5-$|NivV^A|sTc=htti+42=qq^@`(kTY97@QBgrlnjhLO?4^ z;tT~Ap7rnVTe!kNax`sYZ2@K5(r}YY9JoNYU{%zT1ER>9D1>RMBE8~(Lo+mvE|15v zP?6U1)2v0-%t^bnzr=n5C7F5|T3j8iRl+OqPfSS-oJ zsqooWYQIZvSs0+m3+a!`zn;$LqTng&q3Gzm=34U6DCOG5FCni-(}3e+N)kecFcwH# zpTt-_LTO?7v|T~MZZ1cto=hm`4JLR&+hH94?_f5~osnsSuyTm?Xvnmoe{^)nt{KA0 zVXAB&m{Yvduwm)#j!&*TofiCa1poa2|2>2MUO++j<;nHoOL#cigZ~cT;rQjr^5x5y zFX-QwliTsh^7#>dynOxx{I*A1Sn`ZZu!eJMj|Sskiq&p^aZ1&8f%(F59POVhd!619 z{d)|>b0~IC#wU}L)kzM&XWs5F(BjtZ7W^Nr=}uac=9cqlH*_!MtMM=T3kOR6W!z~U z`>pfIs+ZsLGko^l@MQO7H2BwT@1%M1$UQx2Z~fQF_d6%{iGyEHobRF0VXZ=s>9^b4 zZhyT-@0hEw?ysPBtFHpBt!dRzf;IN`getKs{`SQ;J@v3({Q6AUa!3TVccgTShohji zcQiOYeC)yX*6-b-P$_%t0gC{1^YLM`+ZnXF1sSDYgdSU{_6FVVAwBI4j;Qm|(V$Z+ zSgh&VZ2i=zDGf)25R~%#J`i5vqKyy%)~NI_X%j%<%hq zWc^?8c*KtVV4@4b0lGfm;WBfiwqQ-qICp+p6I_`V? z)ulqX8E7HM?xt?DUZ9?Uh?b{iqD7D@Bs)g~7WAZ41=`vGb*B0kIqOR5%C2Y1<#8k_nM^;MAI^gde|kgeWPH$;7(RxEe;VDel{)&U6$%WKjf*Hw z0!4h2aY}-ElHIH`sl$uh<{O9CpU_;Xt0;?SB^y}$c>U#pa{sK_(l zTdR(P)0;fz_EKdVvL%%CDJBXh!)g@1CUCwZPrp&>7hnvi5*z}22l$WGk;pRnQqvYS zGhuZgL3=!%@XLj_b{R6)=hfS*04O^3aiPegx79C=o127G^bTc-XLaY4pHlTLw(vM~^cKbX`faj3SIC5tS zJww|Isjq@>@fu0Q?(T4uNtmaP$rV0_@iK*>%>uaL6O4hkJU-YZpsA zK$k!$M}*9Lg``+Tj2r4EhSbWh$eoVa8pt>0zoFwGH}Kd?x3^PevL}`VICzR;BO<|~ zFI5A-1t16#ONhRfypFy+bhtP`Sq1);4$6TskI4Ou#GR@M0G;8qO>Ah>gC%JP(M(M? zGLYI&VhvIJs6{)Wvyw){D8ukph1D8_#np3-#s{(4l?$gFwwA4z_<9)tiFf5M7Jww_ znbL?S?LWhx_K#2B3OPdRC2hF;e&mWaj!xdr6q=So2e_epOkEy#jDl-bh|-ukVhos~ zwj6>^^_&5#PohP94S#s`Xk)oF)ukvXN796gii=_CI4PK((Q%1}xkp7x9Bqt@?%~uS zuYJ9F@u;xEuouR!W*22jYI9#|ZjlYvvcmnV4D8e$j9$t5@*5EEnvKjGvgrzS$EIc| zT8;X`84&dP4WxS-)0at%Vzt5A$$Nd#?XRAnlS3vz>c{86G~NxHBi zWb@#Mr~wIw{L%0RW!iMUL!6aKA|VN2{mhBE{Ij$%^`pid10rN`V;QmS1s_YsMyZ8@ zWT$=r&1Q)d%FxsjyLD#q>h4eSFP9kOf$VNWVTT*CmMmm#_Z4C!_Ta*qA#B{a7A}y; zV(}$oFeGLa*2gS{TK5eH!%>y^YG$gM;dcjc~VK{nk|897- zm;|X12is)nS`Y9Mk}-Q|ZknOSyZXM_bvC^0iI?!`^+~C_p_{D>vc1vc{#n8#DN#n5 zMAFFIM^CzlZe>xZ?9$QZDMABS-Og)Mp%juX1+~(s_Vc6ZWt^blG2+ly7~{%DS>hJc z@QTjldZ;`WkFRF>Yx#f|uY8_(zVrXH_pa-0TS=nm|ML_S;#L3)qDb9rfrdHm*y;9k z+DY3<_nx5`3noDeX$s%~pkpfp6t|RT>+4y9eK_^=bQA5MXdX!R;{X9b@8Lx z)oC2l-HsM&A@g}cyO%BHQT=a#F8~u%s~Za%}rF7Quz%|yP{q0EMZt_OMdK@$ur!UTeyo)Ivr@)#2ueHTs5 zLqU(5ogzjbZIieI$@#5gYN8lxQ;Op+Z6d6D#n{HZy$Q_|Uv)DD2=u^ltACFVh%}AFE-B3xrJ=E-8__cP*BuUw(}@On#YdW0@jBcCw5d(8xJmhIeBu zZ-}~3y&Z6y7o6Z-nGAsngbHbhmQp*_!=jFF-F85UeG1MOhl=#<6O(;aI=Dm9L$hgG z6Zm!+CoSwURfKEI59y`$|LErWn;*%!o*$(-v=Rut# zOg)jMc(8PQkOvM~0j44kz9`L3Y_kZ=35vc(Cm4d2G&TcR$@GA`pKN|RgFa(;N z7<+#whG@ON+dnec}^OejHJfi+u+e$@V^U&kQ87^*6L4Co6?{AQ~%ok=)V9m{TU+dmx#12 z665Oljv%49(4^i{G21{U z&UlmNp|CiDjlPzY<8m|U*CZ;JI}?>l&yRMY93vJs-$5R*$$%i^$j&Vic5cynO;-<-tos-OKOh+2o%cAzuL8Foj)0`Onht!TDxNc^2}{d${X8 z-hU#|7;0u(wkEapOq^wa<^Dc$XnI-quC+uSQN~2$iv?`JfaZ!UwDKzmzvW|@9CT+9 zCHVlRGRfu~k?kfa3X~yKN_+6Gj&M&~IbL8_Tu;|Ltn1ozT7BQ4B|%U8%LqRtGzr$Y@k!Cd_W00dm8r)AB_;GOO|fL;wH zGrJURVVA5;zJptmWEN~eeFv@;mt?`1;~;9=TZ zK7H2;lj1Ir)(F|_Y$t`X@ZyBHf8R|kk$|@movXvm_P;YtPGw>L_{=AUT((B{#^$!F zc9}!6^YxH;{_Jk#ihDle3qrsSx{17Vb;8!CLXvvn#!mIdUdxT04As^KZLDzOC!1Me zLWOhQ?HhB&30nEsq5JzAKuB@u`oQ2YvKzy8z0HF76_X zaK{OO%yyErkRy+1lcWXZ88zWZUkgVhLBT7a>-cxAzrPnr0S?nXbWzVx(Vh&c? zU$s#!4Ma2XUXhA*4^Ndo?}Ea;4KbINO%%A5!X4a8L%4Ix+-zq-FZQyGXBS$)O}_yE zfQ-}QCGD@fA#~`@cUuY%aO+;b`UFP323c^6Lfva`2$X#%2wqm|dNyyZU(uNacf(`~PkqpVa)QMNiew(6(l|O#0xr<;g2k{t$h4(Z zbEE-qB;`SINPFA!5ThVnXM2%;R-N^X8g)Me|%FLXZS=&ztyNKe7O>`Hn zS*mSD>`_`X;0yl7P2o`SI5O(~C$|R|AKl)4qK51?yugy(H5lRHmTOt58EM~mv@xCk zqMZ@Q9P2C%O0zJ^)?Hw@5Nd8jv};8!}fkF*Zx*6W_!{JpXljnv8=VP_@-tNHpIl^gR~(75=f-K{XDv)-Ub^sGgoD zoGL}=CuER4h5tW1M9(1ab{aR3O~WE|iziP`y@M#QRjIDykI^)qBsbCA(xpQL zFX?rgRRhI~yZYkFQfjRit+-aK^Wf_Bn%UBhU?m00T6iI zU7#;;PO@%_YybV-%=UWy!JVPrCbBLw`1_duo*s+u6aLFwF8nx`85iQONI!Wb^2PTB zTHnkp#Rd0VG)7D&Iq-SE!{Y{wE=7NCN&VQ=skbaF%)1BWL8g?9o+4)S^Ao#e?n5GX zUMkVf)>iQO%cxv`JZNG?(dEo|M!3PR73l;CVbsE`=i5w}M92uj7QYq(1ru!)tC&av zPkWLspryM^Zo8s&x>14i~#*R#s zJ-}Akh*shyzkN+@N>!BDKsXXkl|9o{oh{1_(KU{N;CYFKHucL_-+cGe^A~SlzxY=B zTNyfXVd=S>C3hR#H_o2S2QyS}Urp;pMzisNty)yqG#EUhQ{~w48+zO_^M#ZCsg5k- z+66o*cqf^1+iq{#PJcTfNTG=k;3`EIVM51Cf)8gZZA58fJqW1+IHhH#B>W-NG%UX( zbn%h%5ww!fUP9Q78OiO$wfK%SU${xQ&VA|8ES4!>qau@BQ8k;PhPAfE^zL=(#3Q1R zG>WkRrAV_xVC-0aP?QLh^uN3S72scM5*u}XjN*92w%F+aFRE;IUkcGXS=vY|gPf_~ZvqXYVdq_5r5}zmJoyBh2 zhnvaao#ov_POF~%ZmRJ@FaC3s zBv}hypaLQ%ET#D0w~o2g0N%WWm1vX%*#ZfDgKBo)0L4x0WDZy5YbN>mxG45dFLxX1 ze{kSc2JH0|Jte(o5tVtD-NxO84*I(lJN7KQk?_P|C%mAjgHS;nDJpl?Y(xG|UYYbn z4*RHCz)yU}d>f~Fe}5*ti(A`~`Sy7wa|1M@diLgZW`F?mJk-N zAU4)>*eE4$E^2NZPcJv0dcwY+o4PI3=s+hu$<^YDM*~!MFm(z4gqx6e%h@c>rJFOoD~9KbT!v$rFK^N?L6>1~(qyrS0sW%Si}2A| z?PY^rdyVEjgGy!U68-d?`h+nbouTCi+I?6<7$kUF$!i`UtIPZ{{lEXW=@`k;Au4o7 z5TQp{w_9x7&ff55hC^eVBbg+T$snm>o&$^v@h%A%^FY ztLsCnCpo-K4X-#-$(8M{brTcXubvHTsD^t zfEa_ubzvXr&$Cxsrr&{5136T52Xc5Y21_Za%;3R<6@EB6yFDFo|;Rz(sFHYq15S~J+h>cqT-BNa0iic7!idn5cDP}dreg_`m z2C00VRoes|0@zbj1>GPd0yiJG*XzC5e8ND@B~wj9*XKd1y^4hZPB^?2E8@Hoe}4Mz zJNWY(k}qQ;A`)yo%UIBAg~t@M9yEXBL9!ZyHgMg8qn{CQhU`M-fr#@|dh7Mk&%F#% zA2m`x3b%gG4!dOMQw2 zHG$j$jC*`?dVcZ+Tt>D>!#sO*ar(&9H$q`~ok6F<>Sa?%jJ1~w6EM?I)$dsGB~+Iis|-~t_9hqE)SsaG#H>O!KiIjk z?Ox3gSnEtFm<)9Uk7mvGHQ>i>plAO=5?}eqMm(-eww?X|sGaDbd_e?@LD{n8Je2v! zJSl_{sc`Vtkv`yruocxxA)m}Qv4uiLOD>iRB$eZ7*J1Y|OncalmtBuf}SDF-om%9lB#Sc7Bk z)#E(2JIkxj#zP0YZ`eN|TBtvN@$IvpzWY(wA$BJeaI|F}G9X)hm?{`m9ID35*&zGL z(nJxYDz@^hqJ3GkHR{km@(lJoCF+1cL)N1Qg*UET3d|?Kci7@zA|Q68I*FeR)2B217^Q=a0`%Pw!@N z>7p=MTx>TNAgY@mp*!M}{+Tz1#(nYtymQ;a4fCdU*|YFij~~)bdMA(Jnn4f5XBWrV z=|I+1M6q^q$Dt|9F=Izv!{q_21Ai(3DeHbE*_oWP)^Ry&+Fqne)RYh z^=aJW$0z5f_~ZOhkAIvUUp#tDBiF;sVVD=k{j=Y_E!J8+zBuX803Y@Gk9g4@pNpNM zO}kGhpz+t1=%Uv{Khi)FJUV-PPRr3ddrXUVdfx9{@KA_I_yQye(;))NMh-qwI%s1+ zZ-Vek-PaCU9m?ob@S%cHQE?HS$su1qDzX%OnsI&|ijklcS`1?=Wq~ywl!Of0Wkph$ zQ*hL45^DQ)=;JophOT>}N)j`As75xq`}I%ac_t&b;v_IYK>^xM#w1&$#Z9EqA-?Eh zzQRb|ul0pZ9v1i~J>c^@zUit~tZ!J#Uxqra#F4O3D%vnF0u)!jP5oVsRV(RkS8f!A zde9-r^a#}Ug{2u}%p9WFQyQfBZ5A*$IxMYE%bl+Q0H`}&S}CGrflsvJZ8+WEwp)xfg&VU066m>K3Xa6%J;Fnwt|j3yu?Yxpfe>!H z1EIR7j~@ZL>(2in4rHRa0d}wIJp1D}fU*Dd=a>Kfm+$`i>iZx5_WI3_KmGk5|LZ^g zGkQ0HC4YaN{PNHFO`0wKD=*6BhhIP5{;StNJ~=%*fAsj`;3&LIFLS4cni4u3q!^Si(((_d(9!;W$yS2M22Gwm?Vs--pPk{WuS|JtCBX0f35D>QJb7}y zj&yt#IZZ%811;o(#VP)9`taNvetIVX`5;fNn!S3>V@iOsic}$&)9Ky#wTc>kE7W%lnxP2kgB=SMOQnPmQl9PmH$CPseQgl^T;e zwo0E`rFAtwuZUno!r*Q)L|~3O8M5)LlR)ivopc@WM}`m(E=F18Bm$29X#Pgw6ScHn zpUJ{3iV`KhwLVBFMdddgbRnj^v%~EWtzuLOX*Go|YeeUePY*)d%mVw>Jo`1ykxy(p zF!7K_7>LPMK5+V5i_^dZu>vsp=q8?TE6%O+>cRbEUdMr>#^xYA5m~wG`<>soln|_5 z$M1nDcO8uB!IC)mi*h>r=k55RcgdnW_=!0}lqV&5Yn6M@maCG2oh$(kNZOie9Z>J$vPO4;*jjn@~uScQ_t3J-7Y+y}eARs(5$ZPUurw z)(=_KPD)Ga#(K+l6?&7$E&K+y(Dl4g52f)zpW}}8o`lZ9q4B7Pp1sM>Z>iNTe9WJb zEPu$ZD#cU958uCe`QyvK<5R`AFJHa<@jn8Q@#@8&p4k~JO{FGaO#|px2NDC=1Jnu~ z0%KFs*9O5`cbOK~$*gqE*8_AI&h#@yOoNHF*Depj_+jqn55w~w2_hesUXVUCnkuoW z9nU&Xbho38M2p`?sOR*bah{dDnR-F(6l9Wzyu} zV30h?2MKcx&Rer1j&0tfzM#`S{m=tLqY$N;fZ|l=qZq<&E$_Lw?)6Ca2|o8z0Q>d& z{Ok!*cJTG6w_angCjRR8j=fFeAic6XI?mjBmt^A77upuoAjL2FlvV*R)9keyucFya z+o1Q*u?tq`Jw5u_wJ&7(>LwNau$?T}#o!xI)WKcyw)&p+=u{765w*a z?=--PH*54tgg*M_@%!gq zU?n{Eg8F3WhRpB0Av61iB-H?QKj!3k0oJU&ZjSe33fH2zACrf9ZCqP!NBQ)8=Uq71 ze2bL)p*2NKoCAwO?$THOWK*L?2xqxuf^V z4R8)x4~4`AbT1sS5(=DK>Va?qMo>YmG7&iY#J-J=2pNo2+#;>IJ2o_fG==Q9l=P}H zzcnLb39hH~b26cY6EwNjaIx2~wxYbdCMuvy%@sAujG5jwSkJEwaYrhcYkWGx+ngT^ z9nM9OE%Qly03VvHdOy$JMRO59^*!m^D@TkX^@dV8yayg5k(@XbR~34uSFJAr-sry= zA5NxsL%1oMZ`o;Yb%)$cD-N};q}m%t9O%dAXZJqin@AsJ<){2hKiDM{;1WJT7wy+axl4{ zHb&751D4iCLRuH~0BclFG>e~HNF}7aG~tK}%KS0R(hP;8Lq_nOj0!CGe(eG9w;Y5| zJkX@g^En6lF08%#EXpR$bB8dWL0Y)EkjEH9+I=#ygepe&zcFRrAV+o`n4m97IqMVe zQTy>nJ<=Hec!x&vu=eE+1AOuMu^g{Qoy*H|eBfF6f$?R3pv{7eV*1b{8wPISq5Gd} zwri;OWYzbE_P1P zCDtlO7s%qy!t?m_p?ltYh@|`f{OFI@>mEz_h#eMX4`<|pbi-K1@-3mv3>6&U z*#8K7=q}Jyi+*{~fWN4GtrQht6C2oCLp=2I&G$mwBHB9j~O zTV;^d4gBQ<7!ujsz+X;y_UfBIfBzc&(~#AT{^V@Ke@%D>`Np?Xkz&|iNK4M;AJQC0 zhYbyz9xL;(99m9xg4m9qDLAbaT%$qk^Kz86)sMG?Kh5O^h_z^sfLc{NQ00ov8Y$WA%JvcI^|c{`hax2ZXPqeZ-*0Es*%$2o`E z1;B<#-%?bsl9DZ9hqV{tRi4c{v5t-?90{RpxPaL8n0bl-+mBWIp}(B1?aW%Ij9+LqSrf zf=e9418*fBR+(@S77oIN6z^P6suu=9S$d|GgAU${03W367zrchx>D?j_Rk5B`8;3M z3OdndN>;|&MKR_O{}H6JIDkg~ItFjsAON=nc!S9qCz5MWtY?Y@I+JLjHB0U`;a8Xh zg8<7;6TslGVt%aH3w0%-?N=ZE_usU^(^w$^#sMMuSb$#1n9^8bWl*5VvFqqw_D3bT7i!PM>l|Ck#V}u_rpqHmD)1lem!&PHbxAehR zpWNq9Ze7CdmL4P&wzSBwNG5cHmXo74!OYXEFY{Z^2EKm{$s#jWHbP2oyAqHBY%%OU z{a!ULh_ZrnZk_iul-w!V>^ssGn3KR(0|lymgBh>ly@BywadFW<{}SL%c#^?gKz^nn zziH~IDvrv-{`de%)D+b>+dwsG-DpB3gIa+=cp8Zt0uEe0fm2YQUl(A3nC(#|M|5W; zJ<(xi3OAuSnCL69&=-$@;dxW{EGg0PPm@NMyN#k!Af*;Ll5RGbQ0Hz7>{b?ehVWXp(ml`*LhK#l{d|onUvzWvNTs z;m^ttPKNgKYha31pJGw*V!^xGXz595l$VGT-yIbQmdJNW0_NK+S7I@D6%{2Ay!ieH zv>Q4;SW(dT)K|{sf}|2RVfr+bl*f9Vzz4cB=1v60DZ(D

j$rVR*W5+dCH6*}(T zB&l1{iuuJs;=v%<2hpCf$rI0R5&hO%^cR#+%H*(cQWQU21pKInMuVrDAH{wLDm^(r z@9&05#oqFbfIG&&YQQBo+mzkPl6-))Cv8qOHhs_nJq)dlS~YMvP(EsFodS#=)_qik zy$gN@NQ8e~kwIz4YD$%4R7aE9csu9HwgkZnRIO;JVSj8+h5UhU_m(esT zqadyPoML@>lG5zdKc9V!usFXajx@9gH7>o6b( z!{$mh5ka;~WRe<&tPF=wqATeqM-)bSR-@chC}F}N&5<+*QsWhLPNgqe*tT46+rrp3 zE-J!U(5$%Mw{vQ3)U1 zutXa6Dh*`lZxO-KpaamGDqd&JjMP_ZhO0bE-^YPyo5_U4AQQ?%(k@Hz!Wbop1S{&D zOJ+vNluKq*GNY3CpMUZA(dn0w>71XPq3t~sr3VM}8|o_FsKkfPS{6wkHe?~E)}Dog zM|%#_4sAJ)PEXGtwP!s(Jw~Jbwye{W)3Z$tGI7#c3-d6m@^L`zV)M`NF;;_`kjYlG zJr$H=k00@RhHuIBI(~vq8zr#!21+R_A&p_>ZBDV|L`2T!8DIc6In2GIWAA`Mw#H9^ zOU;1D-h)2}O0%#7zZGGcjuZ_F$-Zh`d-cJ=K`V#-VHT(sW8f5qgvW;2!EpdpArG^L zjcL=YvF*eQ+B0)MLv6;&r%nF?kbZIYSdgd;I|Jdy45b-K_t$9t&u4Fb1O$z)bx_}t zmmKa#ydo=~Dt!s(29M5XNvo4e2ad=9=bpX3VbgS za}?N8;YwwaWszwMO{T3RK5U^W==C)Jfcx@&K8;ba>DJBgY>n`-cpDW0N6pG+N5H=T zB?~97C8q@v2AV9L*JMycpT2YF6i{H{d6Lu`NbXM@u$en20TYo#?qa>hprY>HWW7cf zgt$SZ@FMA=te^vqA(~qr;^o-bD})SBjse-@bdoLc6ri8(!4f5U1U(P9dl;oNRkbM$ zy$DepN&jm&zRCW+)P2=#?2W6zcdo@Tu)lt$G-!HF@(o>mG z(ZU;PdA)2>Hs&cbVzQ;`DXRrU-Vr8(3w>t#*n}N{476-h4~h9O7gnoo?pY&j@>9!J z0it}eincroG+$Qefm+SeTDk_=j_-$xUKh|e*V2CTF|Q|t`^q6aIn3Z#reO@+4!&lw z4%k6oFN{v|OT%m1)MC1OWa`8uN%YYLLLF!!APxd6sT?21B#B3|fyZ|pN~%q=HDbJZ zNE#)*L5(*wKofpU=1 ziVSf{$v7#vr47EG`2WZ5Zp{K4po8MaQV@ZS^Mk2;DC+5jTWGO-JdJ$3V77 zg`+6aFz06%Y3rGj?VR%a2o&al;!Z37MuJ04<QcS_EoPuQ*HiXoS-kbrXWPzO+zd#_})doKBuifcmWG&H6{G*N0etQyFt?38Q> z$**?ba3ueMo9AA9t0gHM(}myZMf|1w2Cl~I|zo5!T};`mutA~iU~t=Q_%NPKTY za=sCe;X(bGbkbz=YD!EcGCOU>EX`;oV<7}hvw86mqh6u=NrkBm6ukxW!U|jmMeWf9 zZQGg{IX4h%j}TpL_;u0$VL8g-HrgcEVX02MSrH8Cqr8X3JtV{UQcUoGgD)^unapk_ znw0PzD#S93(d96deZIU|P$?K1vYcOv5r(1t<;8!z3E$k_yvycYj=J*w>*p_CzlHR- zFQ0qL4cRLDH6<2{C^@V}=xPW=0ey{w*YON*u&yYGFC@@@nMaFf6QGX@q->BRhH-wp z#ef!Q&xZW;7hL$i=xBMq<=HzoJ}RGh`FoQ=NotZNtaN|nJ)*Z8&6dtCE^tL#6s=d! z-T@!@4KOD;k_LHD`jqkp?x$!D%xdUpGevbd74dvF#D9Xe++SfGvR{Y%M@o~m?sI8G z_b~b*djy#-ZZfpczPLEPx4na9Lw^H*iczxv3S)kh-87k#Z$No&=r{cP78OI|+h4PM z`prklCK#K4{HT8>9Bf>io%F@)=<#WfWjyDP(UB4xQv9iQX&WRs9Fm6d%8E2rr0D*9O~Q$C{!8JH~lnPDf|d1=7AiZ zkpo0G1uqp&C}+iJ(>{sq8HbZ38B;cW$j z!hQy@%VV@4igc-GCGdF%Ts*=))*mEIyaUA*m`ReP=s#^mfPgXWh5Z z?B>a{Im&J=LD{?7VkGb>Epm;m?E;F~xkV_uwJpS2J2!@fx3(s*;m!?;@@(#Wde*yt zwUd$aK%6fhv6t^WfHue`lEEx+9w1+fK7T86`YW8{B17pOKR$lk^CZ}h2l@o$FkZmY zUxEn0We~#tvy-!9z6c&4_ryhTa&gu>ri(zGevM>(g%<#7K$X8;lG}>Zky9omxiOx` zh*kw%EPWh1V{>W|-0;}(mmuGI=NDpb7mqJ+n)Hy-J3SGTyEr*MzTlUPN2ezz=lqfZ z1uh=*Q^v{3Nw3dO87KYo$B!`VG_DSiPM$v}KUL=!C!RmW0=Vp>Qs*7nG{9Ob2 zhl}|IHpwJJPEKKoyI32q;R3d6brXF|Zk9K}D*iZ`FN@>@3|syDD`x`ZxF~|rD*Gq! z4}tR}goJ+r&-LApFZ@}Q%;D#seuUMK`6^rIzNlci;QHUv7iZS`dMf++lkV#~qpznb zTjye56~4bnMiD3!ilTBQIrIlBv{ma;8x?#3TSvQw_zT!?j9z(DaJ9ErD`KPb1g`nO zuIYE?K+=>!y@l$k0+?68VM>-VxOWLOIOc*4E;5a%62!CgRuU9Gvcbx}Vnw;7uRBCK zJO&aPSAgoeIPM3lvXbM)9Q;VD&U)Qp$A6gbT>%|2FcqPM-QPefiHK?Vd1x5?Ni8ek zaDTm4uhr#{e+IzYj?!^gZSdF|_Jf|1RA3%#^(Y@#7P2BtazAX4n#8IO(P(ZfK)Vir zkR>3of+@FdV!CY;<(cPAQ}tutTrdphU?`WzV!dU;&>Er$xWBt=U7Dc3geB3{!_iKlM z`mcO69Yp%=!d6%>zm76MiAU&|zq(KI?KFrtPWrQ=WIMU3%PC%}{h&Z3cC zzE*WrCg9-k=<>nkYV>n8KDexo;8LM)ml8Zkc@LM%(a(-^SvM7s~SpjNWOT5dNVcpOCcxy<~A*( zkK5ahbldfcjYvK^=16QZVlCEc5`q^SZbKnb82gK?C=qKB;Fl6xy^qr%<)`l((L!)5 zey}m#dmnJh3qA4JRdNU_Cn}-6)+3Y#CP))php55YE&BC9#mTM|lrcOYu#gW>=k%%Ku{K%cc^P`Icr5 zPaW$iA^L+A4fc)7sXS`4$JLI0zPvmd;XmVt(xYL$DK>C!G$bA>Di1NeT7p zXcF%$=~i*-OBIAGr*qKx_c!0a(o7Z1mYCz`c;l7+2M<>5pyOP5y8bo!WK=QKxOF|Y zA57ozu+UAO=D`Zbk2iYSC0$P3L=A9!@~X~L+$z@h06dsT1lA$nKhM@`coOt-m3LwGn z@F~=zu)*|}hsi?A7Y049+;`ppL!iqECHiF|<(MFd()koSzPSqtX~?KTFe})w65sva zx`~ha4ipX!{ZqmkJDPy+e&FVOlsnO$;E4vZidH|R_Ybj6Sv4|`;#jCOKoT4V`N*b@ zC73!$vP&_@HG0b%er@-D-+9DqMRky%Vh>IHavH5y+5Ho^!K zPggYjxMk#U(H|g2X-MZ6!$sf>9JuT$++9nRIX8D!Hgp)XCUyKIDB~R;D7pr&ub@~7K(5(oZ2D%;X$}w2gmeYd|p+RTacnj)4n;m z3%F4gDzmYwcvsB?@+<+&@tpa$@Q*k4v|47%i7+v1#(pLM^8;p}>ywTrJIoYiKj0Sr*EZzZZ3dsQ9FVrU``ca+GY5QK?Z)$ zt1(xD&ZaGAWm@fgt`W>AN~8f+5Ms8imw~0cD-#YC1mevIM4Y1fLE`-Ss!u$$a{kUy=QwZJdd}bFqI9+`_*Vc9^=sYwqic(h;Ak(ixQ2 zH+V}GoymCk1FaD3*){HY0HfpnJ>Tk@i*-eZL54awT`~_wVs_>yU7+-#mWTD~gAkR? zuKisOyJd-!c`KvG-%CClWbiMF@bwyp#zc9Gs4U|=6=)CW<0IhWfI233Oh@Yn-jT$F zZ?7!ZP?wih(Mu}qcyJ6%awNX_EBerl3ylZZ!BKPUlJ5RRo_3_Pk@wYY5nSnWu1h*Mml zyOTvV+&R_PfYD@Jzm->aATN0%zhfl!u6`o}Q=`!ECPbzw34P4!#JT`yEZd;q5BpEh<=K&752N0y0JsMSo+yPHwu+v|h_~-NsZ^PT4a)P~ z@Llk(`*zSu5!K0klh)mtl4$X8^~v}p>5}%yb{@Uf>Yb>l9czt@Ge4%1047(S_j?%q zTD4KLc(X&a>u+U#KJ8o^l(l_&Hy+-P+bDac>4~I3339yP-L~RMYBuV#VaH?&_7Izi zd9|@ray>}uEoLoNrP*@qHS?qmg=|kO6U>sZEZJ}f@$M>0Z@-@fqZP}E#bK&^@hxZ~ z-@pSVPFOv_Th00Eh#ohOxb|P81vJ3OqP4(xNr8`^N^II%==+@8u_UP5N>+X}ozfF( zH2=XEqCK%{>{DITrxSw>YIEJG8Q&(M{#!TV=2PkwOurR`B^1sXn96>)7Y_q!>_s^%+VVa3XG^62;|32wzcAeoHCz zwVco8m#{Ok6IV2Z6sSTV1<{Wr{GRv=&v!865K|mTa@(AG#Uez=Qb~@FL+!T!9SMmD zUlW)7Is$G%|9-$_E^{&j2RiKscewY!bKT47!GCx|{PS1-^Bn&C=nlinsfV9`wld$K zhs-tp`Um`aaO5xZq|G6sA*Gz^P-hO5K2#7(%?+G18?Xy)ta;k3=`{*kU!tkw zGYa&xK88Q1(SpojAin{Wp^V~ z9e9`H`XR!yI7%2XNqL6AOW4rQmmhn*!^@AyJ?HBuPycXv`SaCkUDeuHU#><6Uv-ZL z!~M|T`?vMj82H2sJ4?D~?2?tex#@8Km(0;jOd=R9uIg)D~aS-J3FlX6laNP8mp{Nl2Ee0I9-UmRa{;hwD(Jf?#E zN5>RLvp+hAk*$vb{7+zz{c&4qo&%hVbsvuho|rx!m}5LTC!z{AHl%uh=hT@Jhs?v4 zWU*#zM%mM`Ml1p#maASb>Q{&GV+Q|K7Xtrh+3ef8iE`(HmiI0}b9zeQ;L?T})mDty*j0PaRTkFoxFIF{od zdqY5I2X_=fNW0F867BQ|+`=yI)7eRN*&ROc+G-;&pVUCpw9ulDcOBNJg1lwKe zFj;&!RcG>dV`Ly&puux&&~@uK$D_(lS_cS3Zj*>`>lcyR=#znxV01{tRQJv@bow^* zc~-%AYXl0N5vcIxdp~XO9V;}_hxa+2O#?b^+Wl;V0 zL7i_H)ajQPRM0wvM;nH4cK<{05Rp)rx_WSuTgjgoQQumFy2Tqqx-FNrB^rVj~B0bg4z zPWdH@;liGOt+_+!>f~681*AToV%A$)648T`LU|+c$Suxs|Mbx*Mu2(*pHIU>_5HY_ zUd~T{XD`qUdpFtC%uOX6o^LC$h>C*Lx%PU#2=s_ibZkii+6h^L17FAuj($c^$NwD? zxy64^;4iGb7AY``-8(#n3=YVu|E`Zug0qX@yeCPu1G=66wH_TDj)$?$9NJWn4ro;qJ6WdkCYWd~QJA#cBk#~P{~#q4j^G*sD&jHzd(t!h zwLZtSpwvjz9E!y}huvUPDr^2Z>(grrz-QB1lHr*sI#yp6>4}f3)$_a@Y^z zC*|<4AN0gqOC;CI3#>n`gwM?ru{5__HN-^#VdIdX^ z>*VHu(@ysHlPBTX1+CZF#TpJ!NM0Y#F4!^IIoUXqPa5=qf_CzSXF0f(t_3g-S6TNf z5E-FH#cyT&jh@2up&L`2Q5qccO#LeunO8R6-OMZi?Y!fOgY-={jfbP$q`&=W9E@rWDDs7x7vxy6Ugsudh7LFJjZlsj{kTa3Qn+Jd!_;e` zoyo8}qGBN2M7T-lV*F1sK*1MuPxc1ayt>$u_1Z0DMwoTqUWtciHc1f~N7JMzk7jZ? zyKJarX}goVX0k!yxx!tEs^(rbLEU~{e%dg{^w#9+6&zY?7g+1&3DYW|fg1KyKc)Xn zvtQxrr=lGP-}Id;O?_0pX<$G3JqGp@0D1(;dvsL6qy7%<51%V5=cXHq7F(^vFaQNs zj~kM9aWxyyOxt*7WaBAHOG8fEN;A_|ni*MXa_JX!<2&0>G*gD6RKHoP-kIu4clDwo zi%Y4RVw&9MA7W3WV5T(9DL@>9wRinnp9!zukfg&eHXfHSythMj?AJf zOKU zW}5h-c9LmuONwWSss5a!mZqWp%q``p>&QxEP>N-IoM%*&3qTFX38Dry#!^Ogqo8Hh za(FNWHA&%telG`>h8$YSEi|lzw6{vQOqzoOR!WUP7nLJyVpRtC$70Doi;7K7i;j+a{fooiMa^^3?2|ngO>fiaCYihj5CFuNLUsJR zOk-T0h=M%!KGC63i|ZoojOcUR9ogxHZmT6Xs^#wDDrs`JtE8=dl7wj+Umr0kEn*-V z)&HQ}-*=Ul3=ZLrnHUn`6PzC{y?gh5wDg9{cJD{C-$R_u$SKiW8Lr=>_oI1>_oJzz z#eTo{qv^eQKbqdV_oL~(dq0}qr}v}jeS1HeTHcS2&-(WlkM#?o{F6t=7Z(l3bf-OJ z6Qa9O`f=~De_TW9lm8P?`u}@A>V7}sEq*uRjqV@uM&2-LN4&p}D<*un_!5YB(SmrF z_lS6x_l9_v_l|g%_l|g%_lbCy_l@aDS4~QC3v556;E^win->K90__?ioUrc7yn&9{ zFBJTSBaTfz%imjgnsNAB(VOVueth}u%NMU@-uF3WNmNewHCc3@6 zpOuNM4^aJzRAZiY4>Egh=Eh7`-DLlV1#=>99ajJnf+;oL~ zZnIPYkPiC;R`NnCe2VQVhqG`wP!R?#!U&93MAOt;#WGe36!K3nf`@eHRbh>TaR?Kx z;75fTX1-dqy2clRO**i)I59#ImjWofz=ndMic2gb6ia1Mc@SNoc|DA2CEQu61DdMH zGwCo5mbGW_)ElPVU$P{19pCYS)N54+69=xeBE`#7C=Q14`k^bgqK0d29eoLo5HF6kmO%%C)I&IUsCgy^igr z7w%E79Dxl~tJRfWtEKTSR`Yrnn;s{Y$GzjnNAG>-l7Bk&%nO});ozY|92NQ2-8k{h zYt!`fqLFV`V_m>KvH4jBk;ZJ5Z(heO+LR2+I6sfdT37kfx3BtU{U$(Q)UoD$Iplt> zx;QfQl5-^;d-*K{Mol|^*G@cZPFLL3pz$WAZfY3;i|Km8{p38j^3j_>F1$#nJyX}I!-&=x;BHWgR*VfOx4Sx#3gwqBML18E2ZY~qx$KScR`wA3-_!lTQs35Q5eb+ z)Nz548mqc&_wHq%!7{wnc5Mt@T*ns ziVnHtBDW)5?p+)R{Js4|sA6{@7*dj}W0;#w3lfgTwKYj`c6w1_djOQHB~i?Llm}^7 z6=w-peXaP3oNB`w6ILIv>_x?#W)aNc;lQ{hMkU4)v6>n*GKZZS!_HNtU?Gh%h7BAE`D^bs+gq>Qf1+Du-X9cFiP7aSI>X_9 z>+m+gL~Tn%lw>j{;BJKIk0Ie!LBh?dzQxYUIf%P&(*u6fQrQPi#Tl}Z_eLWk>4QqT zT~!|_v~TF3A94AB`OYX%L&g#UOLZ($b}46pA%n{mx~5*)#VYTrKIDOgAz&DIryuZ$ zI?jPgHsQ8xKrJ^~2S7{otOh~)xIIhGrFKVvy6SbnUOiPqjV_F`VI$x*Qh*=eM-WSh zDTfqY12BMz9NrDfpyUAr2Ba`>F=$~^@7&jDLsF{>$46H7g1tUR8Qsvz=JUf+OexH# z>Bvw+sh*-4Whj+mw6x{?__Yl&4wi1r#+MS36rL3c8<4Hs67Gmn2Z|(#Yv3ubGXk$? zGMm6k9B{ZA--)x3%;ZV<#XKs%h-^S3GXH_f|7Gj#m6S32-)q6vSBRFxIZ@?W&dCP4 zZ__$ki>vz=i>ng0-(=5RV|8m&5ep{~&D%{&VN-B-vm~=TyTKkCa=p~Y#)8~0vmg_9g1zV*kSioEgnm9jQwRQeaL}>|Z4mgfxk}it*8s;dQ_J=7 zla_0q0ks?3OII38ml}HmEVs32O(+vB*o>GW7@;fmAshS>;E3Zip%K164;Z0h4Hkdc ze1SE%G+IBgv{C+E@o7IaEcpteLS zzizwv#cDXsrhXMoiGrfBH^ySruV|;tZ=J0dGI_n>8(Du_S22Nml1B6Stx-;-Y`?VW z!PPHihpl(GFK?mP7=U>V#lYNdtW;W~v0~)GMbxOaNdQBaqn~dWsJ`@SH)dn3_;9za zUcPa-Xc^R2^HZ)xb3@e~$QvpyL3=Y*8M&GIs$|gme$zSI&PD38#6FcQ2D0spd@lf- zic7eD(F)fB_Qi->4v9LY&v~0>o;wc{DB-DhEY&6O*D~OB?(9eR@u18JeNPkcuRaNmVJVjCa#x z5N*RD%UqJTwJbpEL%4eRCT$1cYaxjQ?n$e+nOu$2_U*yPqQ9r7HjD#z8Ut>NJ2DCG zQe)HqxznZ}s!i85UmMWXc#sDiRDZn3G;yrs;U33X*n6=07J=}pdLgmCfKx-wm7u$R zZIRACYnaemAPR$o63@GNHu>k9GD0QA(O4u>^(ZZMIn;(^r&1)~?aq@lE{4u!N_Us2 z1}BPN1I59AOICoa{=sh-?uuh*qWDFWVKKxA3%wt2QW|=jXIUxFp&F1^;hCsQF1XjO z$f^qY_RuINhieyQqeaUZPp$X|RYE%2F_(6PVIAUG@^LJ+LmL^iB5z^dhnH7}bEbb^toV#5rTH81I1(w zNZX|b{E#(7yn(h#)@+351`le$_Q%@`FA4dp$F1(O=g+CCG!~avmNfA-^zdL`gBVsk z#}{A0)Z2|;DUNBM90k^^-BF@RUkZ5A`Zo|HvoBFZvC;=%(yrLMu}P z*M)ATWbpusyFEWQ^jJK%^b@VWB}-Ng>rcrG2H-xK$z@gwgoMe|%--?L_V>|mgpig( zMPk}rk3UmShISc{xQK)`cIjGn(+S1bN;QOqV4Zi_^p;}!X3MhUl-F^}XSZ}cl9KpO98N!<+Tu7r4l2!&f5qho|N`r)xtP$6UXm0B9Tx$6vbw{I#dYlHPrz?yxR0=t#Q<*I}8rl zB6K7_bzfmpN!mIo37T8L{ujXf_=eRuXciir(LtkkuC|=SZ@=mWO7+>A)1Jl8|ud<3XKVc(l{hER4Ty$ zp_cZuh3na2<+s@oWE55mJ-{5ki{^lsfQ;@?dyY4-Nm+Bahoq&OKIutu0lxs??cL%W zM0NLTowV($metjUxXXisfDv_uS2`C_*Ue!R=>|O}Wh*Kg~g@_d&T`_LDq;NPt zND|6V%*9UlzQVTjQuF5)B=Lh5M*<7nX9jN&A0Bp|_6DB8fV2sG>RBX6F)|E!qo#J@ zDpo*OheiqF0!y$4zL<@5Rj=+WFPB=RRra)7cpTXlfrNR%0XvGcl$lg|Et^U(OMP!q zq7|S@b3y+yLX#VL+Uf}Psp;2MAd)adnx=RfN5&lUo-Jc|=iN=ODU_GYoH|Zb*rwzs ztyl}pXmjgOMQbqXjk$!Z?bdK07gGWuQ{}xXtcs1fa?Ns7>MCJep=vSe^1c?w{G0HV zYq1Qko&&xmrC+5+$8^4WCl{icZ&1sO+IU`TH6!9Uy zMUtIy0)C{HqWrg}quv&xiiIB{3|>VF%y-P_2RK!y* zS4L&LNw2wKbVXp=E)Ufw$U$u9po=D6RqdDwkga^^fv!U#t*9!}nI7z!YUc=fbk)Su zus04J@!Rn+FChOKn? zhE$|P%~bf-I*_)6YsGREip449OJ!xqyrlks)Vu&fj%x*Z-hB@;J9P{xo& z=kc$iQNUvQL%#>17NctnbQDYdI{N-oo-HwmfX5*y4-Vk$SQ+%Z06>oT&(%)|wKohg zN$U+mzQC7yO*XvHUq>illCSToG|-fGf-JZh_j5_%tFe=?Pcfk5vR~sV2~(lH4)FyI zszEGHD7G5|ui}aXJ+fis6Ie(kS;LARSNtwb6mAl5X`#hyGN9vaP*Utciaijd60F1l z6MC80JI43q;LJb<8F1hs`<7Bj`UdKV1V)%p#mn?+V4)hGjhsu-ju+HzUl;DO{8fnY zYJyzS)QyE8cM{}m6#y5P+a^wJ1M^4;6ipb{(owAxqCpM~^S2POkgM!qG0p+Q1U2bs z?nAtWi!OZ$4@niGq(PcqqD2dEpQh0z+Pl#ZNKZ#{p+Y>Hkf*)EcmqROtDAWo%2&PL zkSwTCm)MZMMvDQ!0@m_#Io`-*cA=ya3(Evl&GRQ=Bo)m>Ptj;H<^{uG;}R@O11u8* zEGOvtu(E{1HQG)LmEEbP%J7LMX-ks*(yCGy#nUBA-2kD>5(|5e)nV9z2go?eA%i{O zYY`3bHtSO_MIU5fCtIYbw1(h1wno|_c(q0wQ>B*%S7anMDIg_<1*VuSCF;l^rRGpVoJv*a5MO){d@H%!?>7(4Ab$15%AYH*%GM; z8EyGvnMahNlf;+s-}>NrR7SNl{%p{S!u2oOz&$#D^yr*@&m153Px}U0Uf9PzR#BOS zBr-N)L^oopQ#@+i5)pejmf@2dMLD`N-)JgYcC$eltr@k^Fov`l+PWUR{ovrrcr1-f zom_N-o2mdfi1PvOu?LqI=?7HIiU(Qu0V~v`U6$}*Hzbe-w({>>6&j|2RWg8d;MU^I zCzTk^6)9D81%tDP8oRX(YV%W!K815~O-wf!USASz$gt-h)KJKXwFw7X{2!C=U~*iH z{<5)~TI2HGB)v43{N{L9L2J>ZP=>6sAe*OZC^c+|(;9gCiJ!^cQ4WZ4o0b$9IV<2+ zdJQKhnE621F*F48DxCOJw5liB&cNksIvZxeY`va)!@^zqQxCAfM8ek;;ma78K2X~R zmm5P%)X*lip)HM}&8jdN6c|NWScrK3a=nI8MJ~*=4%cEtwNr1KT(_JZ5qcbz7Pg+k zz4|FcA#3eKZai`F6#>;L?mEQS2?bHF>PSt^g;p+B?xsrtiFBvInIt!O33{*QMFlw>!mh&SXE|Es)eXH3luP`^t zNB6;sYQ0ezBqBoxBoSYPAL9I7Mtbj?n!}fumcDTRuJFATZ%noF3h|iCw@3rFTo2GH zpp&7DaK3Kla}wr>OO_D1Rl>-CauN}mMMRn!Mau}dcL1w5%@Sq?iW2IP6eQx9*R1#ZHOUi-&Q2POVWELy2& zUZD(}+mm}z@S%&WleoZ+mf8*c%wFWVUuFxQHTvkBnp=2Xh08(0H}z;D5vgB{efZ)L z`7Npi(SAkfD^F`ZL?YRA(Xw<`>cGMU@2||$Y?-;rJ6VWx zdOrCqf1yr0DmHZS3J2;tM+fH8Q_yGws@M^u05DZX2rPqY0GL==cmu`@GceDueN?iF zd6NPz5;E2bIWNjTW=|6 zMk;a*P8PuHTj)p}ZpD=@^W-(dSnl(B$`$j;K0fkE;1(3xIo4YB>y0pzKLrYkR{=m}N`WSHcm_JRBDjWf9?Ibv@>)6T`^@*VGU-`F;pp1tK zlKFaCyR9(vny(oXq!o%ln7bmBiZ;x(J4L48l^Od6ijg=s-0OK;0GLYh&u~=(NBPO| zntXjSfWDRD-pce}Y&e{kR5Q|j1(8BAQr1;?Gk__{QlZRmdE*mzhpM`{NGbi_|FEes zS>WZSrYb*eE{HMC`k6N7;2Eawa>c^bk43og5}&G&`4(0Ux{%*Up`qRiWtw^R{(YSD z_KO>$Gm+F(M{IvbyE4R0asbf$vJz@pZD*1DwC!jN6mfOb|p8CW)(FK41*Q z%d8&7l;uNA^O2TO-BF!1{vrp~<=7i|Wtb}BTRL8$(O~|1eQi#dly7Bc*DbF=bs`0? zy@J#fbEa$F?m*b2OjRVGKnd~6_`)+bA|6veRNYd_A;SKCj-0k!%3EWSsUPb|Q%%A% zM=D$|VK%Om+*^2_SNo6u$3%|~qEq#k~v!yP~N9BWb*KwCx4>>`e2cd+ctSN9y z2)?s$YC%G3D`RGc9}s1LX>ci){iWR79J(_0qA;U}B(VBfXfJ4@7qqA?XlXojDP}Ai zsu=;LqDQZTSNpB3@w~x7YkFJ|tM14#A{+S5A}Y%`H`onGL%(hC#|*zlpE8(Q0bHM! zyP<;eO3p^f^mv+iCBmB0={s`hMPDp4Zrd!6-rv*|S`xX+3HlLM51%&D*Hx9e zS#?6Dk~_mViggKy2j+y7gWD8(>^=ZU+27xznQ)(fjtYDpDgL-D=?WH}0VpJ-r!^yX zKWWs5H^?lcn&ZuEqA1w^iFp#FJH;^L7jAtXQhgpK0#J!9!N2lJ zYV!r67b_Xjieq*fl4ndHmA3geAIq9n8zw=XC0R5}m>EjC{k-0TPPWP@KDWKB^784? zS~gmhiI8uLqwLvPSvXI@w_6kCG|Af8nX$}MzG`F+CZN0@xjjqT4+-=R028P^1EB9q z&&QY_Rt6@B^dGXKkp*cY_q(`R5z=JcC@-6pArW5`bij_J^3Tst&%Xeev7~VqwNWzm zNu-ikvR+?JqV#KMh0iA{Tg3nglbE&k(dkGB&WLzjVi{Xf6mUu4txH^pdFFX$RylEX zP*IB}p%jZyjO!hELT*N;bX}57HD93(;@F zQP^Yv^V5sd^S%sV&KD_SVMj&NRd*@;x`{r1M>H`0PE!3l`e@y>kY|5KABn-_EcKJ) zHFKi)wM>)$TE?mbtah@P$KTH!bfQbLzNx;+Sx0w_>f?IeCIN;l{x-vQc9m5Q_a^w* zvxjy_sI>YdEY+K1WGoC`7tk&InJjaR9sRoY%~%GLblf@POJti=#>D3QN}*^)q%~fy z%Dc>7Z(#bP8#E%sr+81ZtAvSBsfDD+`*nhrNU~6+;&GU-j?$4zZ%}h7Ae@-fY9MDR z3Df=&bypr7_b7*ENNU*OQ4`{ao_*>cM z4tW6USk6Sx^YG}a%cJ3gqk+j~>u!i3W`Fu~^jL`g3heVf^(|yjXD=l09g?MfEQ^xi zL#3qL95&|dcytJVdWRR?w;VR6j(2QDkyc_;l8h_Sy1}~n26+V}vcbp|Fg$iZQ6dAp zavWeT{7JZUbHAXtSPOhZn#r@KXe^|`fin9G@ZpFlee%`;BwFItG$j+8lFh=&K`B%S zBUGL>z~xS1tfzFK?RVNHA`Zs zkj62|hjX%4m2xH+06_QD&FD~l<;W-!E*4urZ>Yb6e?xrzHbw!=pl=+Q+l^5O*ckJA zV@#kcsh1TIA`=Q^SKh#6{ja{_I0aSJ?0^q`5n6IENQA>~vfU`Gr5+l|79s^u!r2vQ z%(1XyzAMX8{SFAMM8e*>NdiRgS9q|D|K8@W6enJs6g z@+)x|DZdEV%0Mg)`f(R)Lt$cJaR}Xr$}8PT+~r~Wu@HKr>Jp9w{&JUNe~}e13}e{P z8elh}{lE@!E1$@*d!!%%{?IrV>;F~9Ig>9{@JTybcA*=5r9n-2$X9awQp@e>vEau{ z7?0h=`TN)^C+=))OGp_0op=;nOw<=G=(eDDL#0DeW>D#Rs{)0vd$R&mm0Ep4$S&!*FJ;CrM;%|pn`xJKkGqri zQR^jI*5xiaOEIL5Q!!|GaZ2d=M5+1Jl4mLvW&=b{DH)>Hm94kl;CpeCu)`}4@v$Nw zo0MT>AcKZqs38Zb2{c)A^czM9`mJY04mzT=zGDZRvTP+~?LHPgGHd_VquP!Y`e{XA z%J1PA{1`qMf=Oo$zQprf>H`V~u0muc%F#CY=ZO3X9z|jFpxysR!y<@Up4r?szwj|P z1$VIcK|w*=YGZ-OFM#{Khi%|OySuMy06&6;l|si#dn(uQVg$qHGy8IQ#ygIgRIDYAh^4GciqFb*MxRBE9~v56y#Rzau!MhHab)!hM`uT zvMzs_FXPVsK3iq%wWyY_j5;M-;b5J*;(1Evw~?s&TCY2ZTC|moIAfwDmhn5n@`W_M zEew9g1msYKEXN*H;BFa@FY%i0Qd|>)cHa|DSeaNv2ZNP;e=LFYVl9mOTl2<%jfL+F z`H%2r@|0T{@>d|Fqo1{W*0Qk=Sygm5CaNpbxoEbA-1iceD; z6^il|i(1w46}T1fC2l&fH4A*a-uS)BB+6D~T}mFK!Yj@JK5iO|Iq}q+o`}dijWE8@ zJ^3|4=Mp3omh^OMT*KJXnj=5RtidF780Vvs4h7oXs^7vVrEn)lX&$Xk-9N&s>1i{0W^OQ z3A9<~m98uQ?D1p4jy0Gu1zGi&mBiu+@3bZQbR+qKL6_#Hsd=5Q!sxhygvaeS{400$ zn{-#1B5m@1pt?639^)`RgNbBcUOyFNhZY*&?$ScB!o$52|0_<4^TDOW`4@1ZfIhYg(69^h7Q&5NOfId6eo6J zuP=U)8l(DRyB+uxMn9_x%{Ag`ARgJ28Ky`4jof>t-dk3qLCez^4V4N@xsupvvSdn! zIM=z}jU>Dm37mf(iqIg{4fgx#J?9q)Pq*_OolBz~4ozo}&a`joQ2 zA~YTcWP&Q%fN&Cd3K0roQt`M*a9?P+*Cr@*YflFDgOg8IqVHxxZ*coy8l3Db9C*} zFSvLo#!}JctJY0lz~;iXak~qQwTtuO2`A}fzC^!nEV*S>AP%?F#T1Mb;k8aYAdB4& z`f13cDL`4#kre`gUOesjK>F@7gTZg^;A=-_Ih{$AqPHAa;U#)T(N1RZHTi3Az=WY{ zOMB+!2~{QwZ^0p}+_ggN=95X7E@!>`jLjU|15X3LFiYmZosn;fr4VHU8_V+LkmMiw z1JCnlT)~md#Gq)9_<&U!`k{L+iH+1^l8<`zMMi0@S0$+)kbW3$`$Auia~GezGC|G0 zBDTBmCk%YvAVtzX5sZ-Rc33Cv^aADbDliu)NB6d@5A-9c02F{S1;#}O1XpM`CJOP~ zr(8yJFy25fm9;?o`#BD=AS4_iL(}=1vHI7@4A}=BJM)-FN~GO5*60gfC097zFNAXh zSTo=+MRL>}Id+a~nAF$Mt2H@6WrFah+krIFzLB%pc9**V*?Cp8r1M# z0jFkiO=uv3b15Vxfk`>$UE!SBTuLd2LB>|4NjZ#OmkF(l!(=wCiq%$PxY=mbfjQHd zL{B@6N%qf!G8+HCI@W)X?W#&*%5wA7U&uQku&9shfM>#klP_I&j_&h@x5M}_VUGZ~ z^M_8~+df=5gl)qW17kwY9&E2Mbh9_0KiXSDrr&O;Z`JFmod&!dC{bK%TiXUiBL+{re4LXHxI?RY>ARka58LaKr+KkuQ~)L2rX z6~c+6iS#vvb`dIhSQsukU;HgFKVQB08>_JoYB#ViW3S&nHO6N%>@PdNF?_$hsVKND~1rn@_P#Cv+j zt_BI*tq2^zCKMcsrmXnzqlKX`CgURdi(l>4CpX6a^AcXSK_(vi_xDvXvGdmbpQN44 z6P79e4|8wc-?ovh3I9KzfzO3>YdhUDqp&TQ1SKRCzzcw0 zT10>L_bjynpd_c`%nzy+v{EApL$hHfdLIiy+u`qzAnY6 zJLvtMVmfc%&v~im4**fC_#n9ads;z^($Fi!&(Ebxf>9T`{swD_TNgH3)e677WXL^> zEg_MmqBh03yp)?4p>|y*X$GPntPLciHS#&Q<~Q#_o0H1Q%-vv{D9tU7jVTcb zOG0=kgDDv~u?A;a;N>p}Jwu2yRX{dE#B^)c)uHZi*^IAKZKiBf$G&I3P!hJ7TcL$O z@sR3F@w+S2Fcn`{sd}xcaux6Mpej{i3Kr=YZ~XoJYPD{F(1R*>U%`FFf9Q14es#|r zSbBzsj__Tt=y7xD`8SNqEp?Toj97zarg&@ofTdISs-QY|5-a-jw|3Cpt_PZa+ya^! zf?CrMgwqVe6r1F}Tbb+tq185wM~&Add7)Hx0Xa0h;C(etwq@{(8~$F8k$?%gD6C*h zJK2m4Q-P^oZBP!Mx^VQ}pIZF#uMru@4=4^sV4WT zkWr>MCKVF={B`PaCt9qx7uO+clu{S+(k=w2|moxkQq8Vds z7cN*qh&3p{vh>qW33QO2S4YWCquK878G?WbX|PD{?_&pv>8(_Z(K2)kWIrTe8Uu~m zD%;c`iII=8>uBo$CXlFQa4yhiq$%7nCNfD~2N4UwC)SuGqyb6FAhtYkCW)T*y~L!V zzSX+8NTAP-Zw4gu?Uczuh7mGmw3P0UE#R;{lxpZMWxR1q(MV#?J>}C;7}*}~ZyrS( zwIiD#d^MbLhqJ^nUs^F&-LUJDkGA#6m-bBuLspQs{IT=iE1Xb{dcDEXr{!pkjl z-t8a38{4fV;=_4CN(!2qup*U{6_l;tBH7Uoa*35LSbo#=A`;O4KK3Bd(6NctcJ+nQ z?!)Vf_nw|MT)%qiSbUG1B|x)n)$~cOp@ZNOPkdU_X3t?%h=ZsCp6s>S)&}Ggbn~J~ z?NW&PeudhNMv>iSl92y`F-N{iT;VP~y@Q34VJ>7a#@V{T92GPV=7dK(zPWyM4^zf9 zVqGS@K%D}(OdKVU8&D(n`i8;q8gx*UtVcOMwdlAfMoX~$dfALPUVAD5yt_z;7KYpY z{w_VJqkN!_+F)sgPI{njc~W3XN>hwPR((oZ@0T4L&P`f|w1ZPa@imvLNQnNu^;7)) z1L}{tT&;c@>0g>@!FK*a# zh8lgaXS(H1wyC<4)m}lpWHZf3=2|~O(;zwS8+D_9>!dT>kP|NMInL(`J;lJlXAgTp z&RNEjq=)D3vE(Ub+20@QeSnm#O-_Hr0P2KjZ|l$>B;h!?my)&n35^~ueg}+JfT)lX z??*GtaMM7p(j&Rg2eKqiwB(Q)afcCdfWdhetp23GnirJ6tT&w>{M@dXgp0spNo}i# zRZb+4#^2$OK@PZKHyk%yte9%p4ag>DK~dCGGE6pP^%chE#1xA0_gGbB!WN^df|nN-HY9fhy#47QCZS2l3ZB7Y|pIQPLp zuwX1#My;5bQkzDv3^ek$$;h6PHmiijzu^mmXYguW=*A>I3#@vM-@p$9pQrmg)k&5BYw@hIK`mE&( zqJ=^k`!I+d#2&-FKPGGLbuHJ8ua}Lee5p)-)oF=$&?C&4 z8E0M-Q#Vr0+H!?L*^oPM#A&%D`B4PYhP^NJCu~WE(?TONtKLXxiQ^e--{wk0p(<;n z>PcPbB67~`^h_~AeIpx16rM=k5Yw;XW~%vRFjr3mlusW=j$DpIgl=M@9czU^s?TxB z01#TRbn9wZ9lmukNqXD$p`K4*&%DCjS}c~*@eL^KekauLOmNC2>b&-c;oe(V6&N3; zoLFw_Ih&cS@_$3tpeU%qHBFPTg>K3-P*>KmFpSASjJT)Ve{=0vF8zRwix6x2+ZF>( z-N~xcWGh-M{irHM<17`W)ptwZZu=gd)zVd{+6Y)yn-4rAu675yyC&VWdaQO*)Lu>K zDMQHV0@z`V{7A(_Q!y3|Eim4g(u%6L;8L;L@?c~BTf#6lWWXuz7M+daLu<*|&06Zl zQPp9I$;rJUbIX8ETtrpi&4M(L651KMzjC4P?tnNhq-; zTZd~#FkpW{kg;M4Hf%7kQy>wKMjkwcZ8@4t=gz(SE5D)e7Z37_9wT4}`9*&w82T(` zki;iJorj#8d~HXRgxeFL@x#n6ioO#R9@_9{Oz=qiKui7V+*6X z8W|G$5g})*9Zd=ij>jEo3>p9(%Xov-f@#SeEJ*_ic=?RuvBEie1#tW| ziPI~js=T#Xi`IOTpeX479K)TRo3sF zUX;>*44u(>-C?iK&S({pyoW6F(%Ei@p7suW)VVeiPlz9vMiNv5X`DFz4r8JpFoI(-<40VbOmHz*ADP;p2tCEX#6#{&4Co=h6g-ZX2q@UJwO%p-Qi zz|Q^6N(+Q6=og}9q>|1}x_~7Wqm1S{H}U+gr8J(g!cFD0OVq|_r?dl}XnaNLrKn@6 z9Iiw~j+IT99QH?4rPLX}# z%0ITPi9)+e5j?TR5#!Wsj3G<&c+Lm}(Q!jR z`1LRPb<+d=1-1=hKaj|%rpeB++_^cj{YrMVDZ)tGRyATlQ*LuSTy~~MCybtgF?#C7 zPzsxeg^Ek6e;v{i6ud&b@E$De|-pPm!i%NRFc^O(MUdL z&p4$N1`EaVv!7PM1je@a{uD!W8=NoqYHz7$1dWuaMsrAbxr?u9KtADAaWZK@)t9c+ z2y5>5W2Ij8r+fO^_#dPw8_BzvUE(+Br*d+7F_}?FE+j~rTw%>vP&a#$@dG})NO5E^ z`1zGi?aBKkka}XuBMjAd@|Q&t zF}OP#{fQ;jfDNdZ?cw1ot(=54@7V-emLbTFk^@X6CrOVx8D`OIV!T7Ig&6`H>Zdu4nw@uxV zP=!|Z$epoOb>1>+%%Kjvx%v_ss(;hRcH(V5tPMvpfpRsE5LQu^_UNUq7?WFARiSk~ zZ-5Z7va^ep=d?o3q)i!cE5qy{oC|_rM)Xua))9rx6z5V{l>kBRt+p+K+M~=OECfAQ zbfqlPOka-~y{=(}IY$>McI2{9mt>_#S@g`Ulq z2^wWkI15AvAe!{2xucIV(TBxk(_R}i5l``GD&*o05Lh9(2g0ViH6VK*EIV337Zm3DpyxQ}Ud)8rwypfS zDg@v8qO3)}PTD?dS7CmOWLDaf-`+IB59ecN_P#bkI&@+Gxj{eb&S1B?Vin*O8m7;#7@(|X}F_D;iAI|6`ETcW=-qh@>afCqi+re zk0@FFu}mUI284Xt9nrG_$+Vwm=DN#yD&f6F+^2W|IJ8-M187Enxa(b_hjc9-MkeIV}tA7};3l0b7>@0FC2)DF>Wi zyKJ?g$fczHOW8ahnl%q$V8`AM;Tk_r(;nt6x~m3V4mjS2mf{$wMfjEPL6anRP#?CA zSBek8Z6i_QlB?1>-h)A;>3wYFt~;`F+M%rsUBxKUMiy?(ufr^y<63f7nT3z?i&Eo~ zMH>}3oJm5UHXHTa3-Lun1 zmCzYy9jY7-(B%8P};UEFz~|ldMz~Jj5cChCznmL@s0RZSB0UJ zmT!q&G@i!eYo#^RqL>xKF;=a}b#l#B{ql#*@ zstl*0TjhMaoeL|9W~{2&=nB`mLIvHYt6NXkP@Q#SGu@0y8>H&otXEd0D_!Z*R7yqc zN|w{5TkC4Na%z1e#a~_T7hUf{*Q*NI6)mO$Bd ze)@jw!BGdh*#cwJ7L|qY8G{(?C-$d4Z?~U?t5MW1zNYjojL*zdjFZr@@;twBEvldDL-^ooX3-L~I&wcWmQk_P@- zmK-ti$c-35+}v9$kif({V2V5aL!MXq_j|VIk-FQ6-TY{kh6~^Ytg?6(Q6V^_L}YRU z20Hr#?({0{VU!<(w2K6iJ4x$l=}cr>;RNE8=^e7kzr`D93c$R;@L}Msmhoq(;7YjF zN$*%z6bBV&Jx2Xi-Y72`6MADTF^nmpK;e42!k`w!C&0hNpX&5Lb+}~yEbF(l&7cK$ zMGLDSZ4%Ydg0**@E^_krldZLLZdQnFQo9o%l!4CS&3IudgPh;?#d|CJ-$xOFAoc29 z>+MgkU%z_u?!|M@E${&gJb&@}&5LJG@hNcn&{|Kq)#E<#3a9gxc?T5(l4$n#KiT*B z9ax!vOXuN-%__{|C~sT$B`=8T18Hx-$`tIw{{CAhaiO~3kmfOx0qE?QzF1f_%FRu@ zc3WH>#H_40^j1|Td84++rhS;I9j%wjJ@y@lc%Ln-jm}Pi&Y3P36Aw1FfHSUUv`iKy zLS`<4tOI+V0@tG-FmynBjor*dh6?Vzo?k9ZyL5}FC6Q@K(U6SYEI+G;22_^(w|miS!)ct#%?Or^c(DY5WAT~ zl}E?d4pnMZ1LITqVoYf9`}=z}LfPNvX4q}MC9IgJq|5-7no=*+sI)eOwZOKqFmH{G=9zOXwU**GU*`_?Inn}?SF6{L{KM;p!R z3+8De9kg>Z|i zT}w`9LgZHczLUbh;WD6(i4*!Yv1XQ<(XN&c5_0}r#tF3U%dOl>tEI}abV!zPdCgj^ z275GR8FR9abDA-?vxN%&BM?`M97_gtZGzmWME+NIZF1(tt=Q4&t6f)bDsi1saz!RU z6UqR`uU(oH0)Y%&)LFFscCp>Y>hzXSQm9eUQFoHB#C*c_ogkr{(-`qY-L4$c9Ji{P`f9r+VKvTdw^aYDFl z*#(Cp}=uKMZFn; zYW^@OC_2ZORPL`<{90}YiQ~wKyNY2uRT+gIZf!e=vaKT+HIn!PzI*>yeOpxQ%wc7! zAmxdZuR$LI?tCkTuDV$kk}H<=@>Z|o+I?Z~{c4|zX3lLncf6T6pywu>Y|``*M(9m& zGu8{D5p*zV*i@6|wj~X1OJ;JXQ()&!9%>z%md4sKivnz+I>gs0ZAphR+3!5Ql;l&m zhnDr^UZx+$MKn!UyS~2_*HIpsrsm|Pve4!eR`V~?c~078(+J%D3~q&VzqO831CFQ^ zC*-SC8$RvDrfbfv)~M|q)ylqxL#jrk62g@Xeyz`ssaV4sR*qnla*{MTWMdDzVEX7L z^wQ?BD2cAxdMJ8Ppyu?r|>Z~DX@{XMpPl7H6?a6$J z>s365tw;0>$0iphYc!lR&DBLot1qx@$%Tp~mx>%Z!gyq@vp)(fZb01T5v~pLSP9VU zjQp7X7G~olV85A?RE|nVw!hDjnQGcQH{qI4;A8|q!jFU4rGm)8+=F?Ll1**5DttsUjFU|?vGqzAbZTR;rThWl=Fn*euY>1^ zlv^swh|2nTOhZ$Hp}p05M~te+@Qs3l8xw!Kt#9txRMI*YA43E7GO37bH=L7M^)SY_ zu$k{4E`EvFdgSW-Z#fl8h4srTB2$Bul|paxnLad3{fHV{+rlfnzO0Vf;yM`b1K-C@ zU%l*;NEin82*UOzBS4K2PH}_bq=~Iax7)-8?DjZwkDvQF!msa#S&WjvGjSymYO$}7lPe|aeN@k0ia)^{Tg@b$P-&W2G(+YV+H_W4TdQS>tC9oI*Yp~u* zV%^yZM?&D;vCgq;h;BJKVcxo7_Y|9LCqEg<%1&ydVc=6RRzL%dVmfEd11S}gC3qx$ z>7XH)8Pg~wI4I?$BHVoO_3>ju6QWW>Xa}e1E+%P(8T>!pZMf1J|$}-SYiGuwD}9_V?==(#NU+92tRS;cKh# zN~zGfO)4v^JxdB2is237X-Z!jrxuS7EG&a0Q!=WE0@i8db0GOVkO0bpUcfx5LcL6> zUJ+kBwWm4Q>sneU1*f3Hh$3MLHow1|S5At~hX|HfH2u{&8qj%5J@Ci5-2pO#uxJ#7 zLOD2~19x+p_H4VgQu;&^CB@c2IEVnhI*FdhgkBS`B8;yz;uQ{m2IAE;a;2+GbO|0O zvYTHxeg!gL0X}DB2v}7}AO^?PwCs)4ZIUro>SqcU#+RJ#ZOBX;LlZ={=On3BomN~6 zDCNjTqa$|zS-|!&@46_~`S|E43qN(PfT}kiHhGj0T6#j!0rzI5hPcP*1dS zp}Z2=%!KUhTwSmIStEryqNp?gArzZb#^@m|C{dMWU8ZsawO&ue#)lIC#`I(eefkE2 z+V3Bq${58_cQlg8$B&Os&g7V$oQ{rpRQrQt<=>83tJVYw(jN@iz5S#&!grRxZFEC5 zrgNxRU2pz?@m{<#|DBY`3&8;Bg=JYUt!~ufLB__!E z5y`znwwdRB?xi(uG?izgZ!wkK<6-w9Q@P3FofAp1Bh3@}^-UvxKcH-iI>?!ealQZi z+k6A{Xbz0B&=Lwx#dau>kD)J)*$~PH2tQ^`3=Ht;+29+X8kv9f9n&Cku zyZySy{EkF3u$h|+D@Cu=r+}<6HNjj8MnXpF?ekAo3@JQ;HW+N+dE9Ye}4ngeuF;o)9+f2_}YEZVVS@?ccXIxLE5LF6bbmcdPq^=WYk4 z5iN@`s_h3P7RI;})LQ+8wuMgpe#1^-=ZJvy=WHB0ah8U592 z!zIw6@3RKa3)NKR2pFp`wQHfG3C9LO^ow*Q}=?V?rpbCU8c<|@o(UD zZGVvW3>=-=*Ba;{D|NKLLW^G_ijP{sjW&;jx3%4)ZDCir$ZsC<3~U2x=;XA0g(-uO z2j}c4w0ANZm&xua5zPhmn$jilTOcxE!yDf+{qY^G-&MPUfO_AG-?dBTyi3BtSWajH zvi*G*wLBKLRbVu+TZ#a5fO(8(q`2 z(KePi5E5LNOtc7~gel)8>0X;uZ)u=wNihiIn(HZ4J=7dH9$xc;l+eShhs3W?;uu2A ziq%n7YT`hz3;6aIf?AXZRct5Aesr5QU>}#3KpKKz)$8?-zlE}b476^c!qX%jZN=;4H-J^8wZ)y(GH2f^{-9x_KwM~dTgGHE4ZMllU&d`gUSuL!3K3N? zk8|QX>WD_E2_2BWwJY42&@@AeMDJ|R1Kp3!vhGaHLKJM52X zp<(J=oJi`KunEf=5WSFLfV-FCng?FK20Z(9oA@W0n`@zvNF~EwIg(MrKRrF|e**;| zFQVrW$c*NuszTnTv*lr`L3LJ7)LRWFk^=K0d+A!r#06cWT>yKhWDJ4?o@#h}Z)`Ky zCag{$OCrlc4k>eUObv%aOY?b#^li9N#X%@;!Dgk@J!T2yM7W3G1yIqf0qwOk#*AB7Ebvb? zfpO#mQ4x&l`}dy2KC3#mTx2tUT8tAPE&}=`r;0vHnO4|gRB#FaTb)S{G&q5)*QB#K z#%sEBnGx5VP;eM_B!7DcUgtuNfC5~&%oP2&%$Jaq|F`ucr*Qz?#JG8Y42t-@W z`pZP+`H4Z)l&0kLlcVi$j&e;dbBoT@$C%vK3PiT$AyToOSB`Xv8&OR$OfENTPA*JG z@Egj7_JbiqDeU=_Lqu;?o6@9*lW$huStBgC&p67dOtDre5}Kq}w(HaUzUj=gcG_U= z&ub|7rju))t=+spaj~BHQ1kUS~l)()=dkQ=|42=;F@NEgritpK$tH&n$O%5+| zQS@7&UsRe6Na(0GclYMCVvD6c2YISZjeDNhS~~yk1xhpebqYkW(Tmtxzkb=4JQ^uc zq49HDT}!Q2)8bWjcy*uAQFy~%ws~Yo0o&$rLD_}%fZ?=K%$FRtu^Mg6d%h)hEb-t` zJ{Q&omNt)1LfzF2`Wk+T<{c~*Ygjf@OEIf4Y5noe?v|yLp4LqnM0S`iWlFzB7;6p> z-f10-Sl??g%V+&>;tYj0c)5-ANBtr5yC=hwlVdi9^?JRLbcRCpl5~dR-4s1{27}Y? zne^O2gB=4?o}TmvBL=4I_4^|UOxZg=8J#jPC28Xjm=f*|p=ZAMg0GuCH{KEwNHp#`hO! ziCp`1vIb!=AI9=ork`nDGA<$ZXteH-hZc1B8%RZjarSi*kFZ(w_&#q4ea6U#_i6jw z4L`5=Bur|~hGNSYm zR=$R`^e!jO$L<=#EnTF&vTOrqx^75%m}s*PtbnkcHB8tG%nDyT#$jv9}wxtpNDfYReprWooC`%qL@ap-c* zxJmy(Jf@q;jSi3SH*FI4Y!3f@T&DEKRA)vr@||J`IfjV^SudGn_wPa((@Z!e>+24W z7?wfDckNX*J0zX4e~cY6NsF(RG9GH7+-)_~&KxaQnZC;^+00H;+rN^ZCQ~DR?F}n9 z)2f2Ao_cAwN6&|dZAf0#PD$+0A1*MaN%S!5njT^&hB;bynv0#5cb#K&ka=;%~WWSy-v^*&LB@?wZ$%L*-jf-<& ztV&&PiHxCjNF_j@KrR&gJK44EAYR(EAid3o%pKtlanqp(I+oG~%L52m>65NwBiKmu z)4Vjv&E{ly(V`g^yg&nupzKmJD9B1SB~!A(s<2*1*e6p#N^)yWwhaZR-=GuIm(Cp0 z7%{(lttv6jk+?{5`NJF#<)Yl-fLL=id#JW*=gN`HsF*3$;+q>zyc4*k&*>2^9ji|&aBH#p<&)ADfw-i5>ze|Z4+bCSh7E7Bu zXS%42*Ak zC0?QHnCo*Eigrp%lk&gqaJ@>5>s4w}Dk}P4nUr}59e|=((+1Q)@XhRUy3-R+TsKP? zBv;&68X)S(4fgg2*^tX9W zzNVe-iXzSNgV$(cuDhC{qUM`~7?IY;X7Mc6_AaKL@7*Eh*L3D2#vrjsiJ_`CCk4{C zU}Gtb56AxTHeA_zr4q~8dw;)8x7mwYsR@+(uO!;Kzpu&X)@kxj-QU-WC-$+x-NVi^ z1UrN-A(~xWEumR55slk^6{lw7uj^U1u#spOZCZqzs+doEB8mCDp{7+apKik})81F4 z{~6}jq&==|uB{~;1lEDH_thtod#?_9NFq zhn^FOvn$|+!#ok~3oFS1MakmjlASE#V#jzVQgg7fl<5l#*+NZ*N#p}luy!+j*;(yi zj1WH}BYm<=aw<6}n-&yBaBy|8Tj-PQrHA@@|xEtFn+je34!>M30mM z?ht_N41+BGSa^R8QJ7pvOBoxxX7`d8O}Yid z&=k9;GWJoL@pws`Vb&C-cPUYbwCNM=pvKyHS@V~s8c(S-2YQ&ruA1fhIQ9 z=dK7UxtNtZr*CKOc*|8Q)p_LCs?6@3$P)J!Z{@i18c6GS5$i=^6gZdVEuMJ|36K!Xj+?isK< zJ6lvcDcq%pW({{~qI*zf^}1>3zlP@acF>&eD{HPKv6YuF&!S;JS&QbaXCoSRDR*?_ zCpYNSrzkXG9(9KsKtUjfObgXbvFhtcsq`F@V8V5BF2}VD;4+ag@L&{5%{kN5sIG$L zRJlWomRkOCi6+ELCjR>Z@9?TRQaIIbUY0K>J z8Bc+5zVYJUpvNf&zD-rwx7unq^xk#pUyjwIHvcZQtb-4XlIU{c9HiCFLhlmjXONh% z$HL7hHT55J!^-w;pxIA_#m8EhpztMyfJ_#vFy^d$bz}%(Ca*SDt4th zx5N4ynQIwCS7Y3EjkT6WYNP$T7-N!7p2B=d4f77+2JN9B%;q(9LtW;nT4?5VON=(S zu&=9aX^D+Ob4So(YRkTHgG4j8ywyVOf6&@)rR`*g_Zk8l8EvGVE((OU%pKu_%pKzN zY;g9wfyhXYH_I1bA+=$c39EvT=Ohs`SmyK&rY3Ds!al-jm!`y*&mX%o3hW7^Tqo_J46Jv4NFWI;Iew>r{%QBv?y`2$4st<#aSm&e%HVLGSZ}9l|5lB^ z6xZTfRaa`ag_|H$c|u^G`21f$QB>GC$w_XkjZ@Q6JC-}1N#n?G%9h;NmaEXJmdTSh4Hr5(4xGHPl+gIdef$^#s z+iNTb2;0R2Xa|8>kZ`FK2P7E6cbb@G2*;I*&&w4RrhCp^8 zwFAcLG<+$#`$L*@DqUz6N*2vnHTSR!nUxQkudH0n8fm*ZMYOJxzGN9X5dWD0@1^WO z7GvLJe6HC;=FRpHGk)`OFC(PWr^<1Kr=AI8}J2uq9eio)v>~LA_ z6nn8*ovQkB&YOKXu~T$qxpFpjN_rbMbc!ASuv7PZs8FBKohq}bdnW8H)gD-9S}FUS zBGt?vMD_3gFU8`7KtAWK$3sbPh zd1r&U_8Y>WrAxFTk#nofm2512Wofy&uF)Z9_>Dc|&PIc-($6x7v%??9aRPgI;A(?E zE7e3300MduUJ-l4pb?1e9Cx1U0-bl^)$|g|pucrdde!WE<4fuv$?BtwZPWxFsPq z^Okd8g3NoyP#ijzHah{8PQkH!_{Z$JSZWPXalf66;>=&{(K@XwTGdc zmPfY>i1%qfTVpEm_;Wr+8ZlJf#_n{oNj1U$NR6)D3hip zjl9+7l+5bXR7n7B;C|DZBaEx?fC@7T&%0ak{?RB=<0Us+KAloidsB9Fb>roAuPZaI0#Lx+`)pInbFyMf8m3AwR?lIoTy z_tJufU8tVeialRmDu?2QjS*+OfLG`gGZmMzhKdx2NQ{sCP_jq)rD_!uD;UN29yF$PkMc+WE%B`!!uSgjk;$TW=avK zqvLL0Mx37X5J7$!To|{u2JITVjHw_?@)WVdJu#mG<(|`OJh&-S8(8Uy9Sc4RGY>sA6sbUW1DlXwl$jnhzl`!@qjFB zH(SfZWA`n*`OL4@{r;m8a=vN>&V7x%4#x%J+`{S8c9$O79vSkY;Yr)Kot6sJ+A9C5 zsRT?nmPUzK#2OF=Hxk_bjCDKy7>m_Qm8C;))evDkR=>g7L?-}~F|8g+#>4JNCet|` zjE0m>r}0Ee>zD~Mmtmr+zHP%B{DMKMns2f^{uni#8yeePDLT}$WA`=#;s*YIR&(TrdRV@rE&cR<05A+yY3bYQFCs7!6|P2~?{GeRB%Qr;g*jnW zsZ(Ld=)HBt;^mrxhzVGsnr*H3D^B%@3i@9>%3da|f3rkDYN@b5^QdqO)Pu?S& zo=(QGe2!G4obE2r?_qXHY(8((OPmLfIDC17r_Va$wH7F6Es)ejpaUQ3x^qX@&0a=+ zoh8tymRKFSUTAHSj#k~6LfQ=H`;9d%j&+r{dBl+nV~JeaX~~OOX&;+SX&b;W1So^~gjQ zm9iQY+DCOw96wtf8|Uh zN&a^~6ED!P1&6KQ#A0DCF;p7-K5k&5sOtBGfao-G^O{z)H5c;GFxt^k9bh;CAy-pju00nGM z>7*87*x0ZNDgd-E^eu;pT*E`vVi9q9{b4{}Is&b6SRMp5(ztNGDyfSJ0@)wQms>bfJ_;9Y6C z?p-5|Ik1`+3L$S`H2Z^=N4c>XIJWmsT{s~nO6VjEc6@S9o=$GUD?8FkDug5Qtfz|$ zltN~}fo)Ka#~TT`I#DtNa%bBhqEY=TR_+sgW8CmnHNY1$%dQzS#ysuI(M3E%j6(?u zDie0>1uDvJVukHdfL^E5K_9DnW5wL0#iN}?%Z(4qS(Ovg=xFeVZ8ww|+1+l~YQ0m_ z;weKi5<$A9CeD^Bxo~$-G08mUpwXIQ(L;1 z)JBU?$1vHDuO^l$M1R(C^;l&>NE+sfxWhjf82yd(et5WlTV^F@sA0a?aPSRC>4Wa* zsUy z*m295BuSIQ=w@Af;ViwLL4;9NJW&uet2AA|fVatoYN@@8NISM!t@eWDbU9uIyB7q# zNZ!$#?KbxpuA3Sjcw`#k<+TvDPQcCUBWTBd1&ruNN{y&a1sQ?aww7L`JzaO@6C%FN zIOw<@KjCl5mKPZY{G${lF$7FzB9#H!AqQx~0L4zuBy+OFfrTVq+l*p3S!mP)71Lbl zH=li4C!y0X#;A>p;H%hkseM`0j|=oY_y!B~Y%o$7!r{j%5$Z2mukH?1^p_;rs8ZpAn_EC@q!C{V- z>PrD+l~!?_sqn)pYPKwu&5+|}J{D*JIvEW9AmkD|vzc)6p3Qbj)!NST)j%dHA=X#G znau6HYdb+rh*16zn-dM06fHf4ulV~ zETv^I+6hc#fZfh|sB91qD6Xu=2z8l*=zkfHWGFetk zG+~HJ?zuYMw1@m*EXC1WR*mD1}fzH+?+ph@kqIM+G(e*6} z%<41hHerC`o6XJmHpTsL?41XmNPh*<`}=n<1U4Nm|N5>JKx$68C#u|EO}X!(T=aRq z+Mr?ohib*TUQ_K0yL|Nnx_(pri?YPUU=*mkDA!S>en2uz5p|BLE{PN^1?pXu03o91 zSeV6mnvC6gL`%~s2dP+2f;M(g>dVEc7UBaIXa1GjU*mp8%`Im1gf}$QS;YB|;g2eb zb=8@exS>DpIJ31txSLtOXLpE*zt4_leeB=c)r^+$4>{x9c7N?bXHzB-!9z|xWTO8V z$C?}XWDH^t#`S#ls(F}4%?CtMbx(;@67dHt+(kXtjZJ~GLr0ZE4H=t%yLVGjo zF{={S+HIhy9RMkUrh*Lo$3xVciOwFNBD_b7W+zQ|;o{gn8dp-`s!y6ExQ}s0A2()U zZ?2H?tk)9RKEU+q5Q9X}f8?S#ThRHWeVeoPEolT7Uh4Z#f(>cYl+G33wPC_tXPD)7 zJNF&kSWJi)D`}9eBv4I!BS-H_pxW$+RaA4#s*hK523iPNPP>vOTkV}7ft*~Bm3ax8 zUfgUD5*M-#uN;a*Y--5L72x)?3L8s_H7uN1K?4cHkrLjdHrmp#8iQ6-Mp^8dFQoHU z!yu;=V@9EBn1oTKD^N3TXMnUdBzC5P+ZyJxisPsPawonG8zUoD4Kf8r&Jj|>b%=18 z=G&L`P$+=x${S9+qO|p+t{2-# z=DFlPoK2mwQraV5KZt(n8GZZ;ay1HpsB-)k9_roU@!+mJA<~8sItF|Td4H#_NgM6& z-;-nD%72k~1aSj%z1XZ*F*;(g+Njm$KY#iYGuxP2mCUc0NG?XB5)@wf4STiwA=sf~ z1vT)?gMbAd$?aGf?OZM6+TOZ1xK}T=iNBt|byYP(EEL4aRC!pw)x(+l3eE(9W$hSw zU>?-MGKhm%l6Xe5k33f>Mt*w%WVp1Kz>mZ`=TKCY>ij)RlPgXtBuxr&vWVv>mC?YJ z3MP=4hzUvxhli6(y^&(iLJ>=`Q)a!8t7A_0Rc3IwyHMv-Pp0{aZTIW25`-TsruG2t zzV}qE&O2-A@=b3_(crSW%jdGHweb(PcWfO5jERNJ_RRaO8y|E78m8d5e&UBVvPt$;Q0~7kh|D~4vcbvicOiQ-~U2BH1^(f)U zHn%nDbYX=p41lAtTLtJJ%==S7$jsC0@eL-&OMQ73OCJ!Fd?+O5a%W(5uQ%xL2&~q# zE^TQzITUOibSKGqpR#9O8z^t3NcGF}TUv2m~?4cg* z;;rH`RpLmA@ZiT6FP_7#r*B^T`0hVnynXRjMLY6f{?E6sel%EbwC6G|tc6Jq3{w==aR$5{ z1(6xiNY0{_M^Wp#DAxJ-=;$ggt~Vbrg7jz+evB6%(j%6@n=Iu!i~ep6!Xb-;TMrh-cp$v}eQ!Jz9{e~K-gHWT{^5;J;E6Xr6|ii)@tN@U z_)nmJ^51iBJQCg$`u9BGAM__q=pW^HMbDvd4~Y256ZKbK9KfHR@DBOUckrh#y#L@o zNBrkIygMji_voEYn&=^=e&qrKAqZYttb$uIr-N*q0n-7UANRZBU3hgBE#5^p>lG$q zbe~voujDf~*Ha@s##|^mVXq55)h8qt(J5 zLh&Zbix=z_G47R4LK?GCMP_4~5LgO1@wdG;uu1ICP$2K24io=2xxgT0xrO1Sh!{si zZr&;na2)g|@i|ngHg-7OF5=lle?heH6BnthDiskWdY4aq&$lz)Xv9S#WoUJzdzzza zFj^o5T@+jyAxc}3KzqC!hCAO&*vzddE;r4u6Me?Sc&fRvRf4l;U{1 z&CkPeyEnjc+bxyL5nxD`EOg0+m*ErRY#LvfLbLNAzAy!5WA~x+%tckS2Pk%?)r{WM zo!?lE7l&2bWABgMhozk=&;3-<$w3MMuI1;1@TX!)0f#-CpkgALEWSZ}mlO#}J;@CD z4Ail`es|T4su^*(m&eBeur(38hjtyO=z;~qQ@g!ArnFC#>hA!bu z_P)ny%BlO%?5Q4@qobC0KpBHKk!lfk8$^w<8QP=oU>tCmWJzj@8Qt%WJm`kq;Ey{N zq`>90h~_Kc0tvoYH?rvb3S!5B*V2bprWh&Y2Wg#l{uX92vOv#e4KNm2Wxc|gp$DU~ zFq>abXS7Ur@*^v1&WGR@c&IDjUB^w#5#}JkgF^BXZT0*6=wr0o5(3D+Ttu3-JhHhOwtF*d$pFU8EKcgh^wt!QHHt=Qe)guXg zyL&8ArE#EMnW$EKx00xGIdB94Po1D7cjhQC{S*(GmDHXU44jdZF^9>RpNEsVnv8XT z2oh#8)|EQfZk>9(Q#l!HIT`E9WSB`~jbdY?+g7g{I$+JbKlv@Q>r~>E9?5WK(hd(x zW=sAIBR^gWq=0x%#86pFx{jQR;G)IecU;0@{jzw0E~OSVHPMP*L;@R zXRJI{6FiHzTRbBZI0j#lz-bp-Max2Ow|WNXkfIr_*V(pj+4Ib&*H^zqU4OZ}cZlL; z%W4&xhjh*O!)-~+ltlTT_*_%o+#;9}Nk}0krb(a`7AblyqE}O!E~G2dcc3ol$@i!v zi55G%!_|-~MOQ(;oDPhwPvTCXi_(6IboFP{fZRK1q$lxAAL&a@|IBxq+f<#YXHrRa z@28bE?RWh;3Z3_U8NDNIT4BYDuA6`Eq?hL5ehZb(ukTxz|IV2(sT7~^5o*o}JVqN1 zjhtF$_t&5lS~PFptn~dB*&^$FfCUofQBLMwc~Y$5q*$NNCu?<5Y=ZD&ZJiXG%1N=Q zY~CAMq-KXn4?O&c9`}vCqBr#wJto#|Y`rd(U}LB8OKON--7B5lR4kwei}TfFp?Yu~ zEH4&T53VacFuz4^pB%Yt@wII1b>*xp-BTs#n}h2BPn{CPLzH#yC1dICjtp#=U2U-F zj|V1Xjnn-P`PvOw^;@BurE|UknKF~5K2maA^T!4Iy^efs>5G`V6d*kWU-1e z!=uX^6NyRRAw$a4jLMvRBs@w=>)z8VM7|_HCx6xU16|nK5E8v1M4crprB(dTD03!- z?yl^v>2kVz`VOBMf4@e|w|h4=EcM$?z~&w8dHS#qFVcIeG9PVyZ6k?b{*q=7As9@G z)3y#1%q(Nb0)I`szp<3B_?eGwv`voXJjyA=&Krtt(fY!c?e9OR&GL;6siE{c{8PWh zKfiK9{(_;GW+bXf^qhh4REh{#iKywCdJNVLL4+ON}UoXRo7->bK@S`dpy-K`CI8z%BV^6sb&m8<(E%`7Q;OBwlLa)Fz*oH|TP+d-#p` zLb=WT<99u8LI2FpX%=ENn%U;!iK)87X*Zr#NAd^yj3;^EJ2D zA>31*;?x&0aJMSV(EAbXHn~rdis5R%YlTQD4R4l+c@B-@<~h2P37-ccHwxKT?sde} zHL+-Mj`{!QdlVn4zhL!{KW{(u#a{d106$!9tDq^e6bq%r4`k_$o<68P=Qsr60t95&Nl2P#wggEgqR{*Kga=Jjo4}K{!#sS8C z+ek*ks#kIxrhw)-tU}+>a}4U);CPw&xiBm6*T`@a=uBbvd1h(i8p<)R!k@p3W8o4G z-(qgj@l&bf#Yq z<&w+7Pn@z?*81pHjfG+&bBDT+4PpCQa*=4mu&H-$)jPM|yY#G%t0~`R?Ushkc-#L@X2v}5gm;ip4pYmO zzoJu~xY}f3>>sL7u9_Yzb^3pAhhz=`kfe9r09WtF(Oho-I8+YjQ! z#_iwOHasVrJT99J>dKFStjF-fHB6vzsVYA3?$u!1Uv6Gv5BqHJfG^eDQrC?RM_!z; z=%KnXNvsVA>4o_!YD6Tl!FG3_3v(+X3TUvaBVAG5H+H?lHMW^ACeul_QvswsKUvF~ zod-MBtW6(na#l%ps#EW>bhM^l<1J!d8$Z}Bq^!6`?+`}N<6i3ash9=$)k(j%bIcOvQQq>%6S~oeB7+{lrDi>%>~i zQxxMHMxf%+-?+Wq=fzdlg9W~BC~eoA`-ignvF5>ifV+=1m^(|`9O&+WZQ@N;2(hkI z-KcY^R?SnVV#9fN9#%0cIl~<+xj9}j?|@XVcJNrxbtas(tF+@wc2%Ow)}v2$>}`Lt zjD4)A#@Cw_D~dDD!cSB4P1Z7Kd502(ut33B6Iuz3(u6AYA-;-}!m5RD8~{frA~VRD z;;ntDAG0dlak|m>4a0k+`-lD{#4%u;kZ8~!htnE4U>s0O1w zqQ~#;gw9q%7iiF4jYHmRJDExf8@UrhX=PN`voOKPcHBN%VT*0EA^cD0nE@t%csHYI zRq^z{j0+MBWC&g0c~YEFL3Pu%{aD>)-6)M%U@qUKZwnC9Z+J;sRnkwb9uL$PjFH~D z9)IBCjT?u4wejh6$Nlk&t7M^9*TFxh>SFA*TC%B9`Jzk8-&1`xrjP}zQj(-~d6+Q} z!IG<&=GnCI?zn4>q>|=?y}iWJnIx9qysDp!BR_;|ls3&wC{HRmbLPp@WC4Z8^_k)a z+y-5#{Q)x`L65KJ>1uP61YKvO-p2owgdlI&0WDf*$*;&1y}@mo;Sz>*iR~6D7IZ<) z6y%X1bF6S{##XaB%NWC0?K|)BR>`VT;8t}$>>v{DEV!T)L7ZO26C8wUGf)=69t2Uz zK&P_28mxQXQ#+IIzRg2ie^;AT^jG!p$aIKJZFpd9x-C2EyxCQUR+ttI?Bn+q`x z<_B9YanQ_Zf;c!Zn%Dvjr8-X8B8Um%2s1@+Azmoa6v?Z(H7_eIkm$Np;&;zFJuR^U@)H2qdDMQ$iwM#IDu4TD5aQ2F6(+D>6G zFcxc^!XPvZRmzzV%rXO(POAGOqhGa`)?|(z9PR4zqnn(RjbEEa7xTm34DXChpl^Ha z`&0AsK~Sy7UFC8s=bs0`+>lU_zLf}A6*|(n3oLppON47lfXmaN#}v?2wtY&%JV3DZ z9YOCDe<5Q3wjpa5bQ!iihJF@B<8#>W36NT;iZWT9PS(4>e@lcmPARerHun@LL%=yQ zj%E7SuE1x$Kzp9PiMI|6X`mz})@fc?1$wgs6*OlDt5sNP0t3Soz$(yvieyT=qIoBi z_$<6|L@ZK4;mGnF`}_*?Dj;%~{#l6mK@UNt=eYRhPXZv2H5vm@^@d@Ua^+sk#hTMS zz&1HU^MZ1F*w8zB;l$qr!F<}zIPJs6cRwpO@Ev~)w5LpBQ_7aQPS*%UWTnJPlwi0z;l*`W(y% zb~-v8_M5>JfGzt{L=4mFWVB=Xd5*)FP!?fSdB7B^X&HRiP7X5vXn2?*(m;{^8R{YX zPrVw%QsS!efXFHgn5YQVAa=5D;G~*Q6bA`@A}KLdH0Irb@#u3M{HWJ3sH8ZL7Coc=18M{-BQ!PU`muKD7B_b8s*ViYHHc zC;R>5W9!D5{TnX#3pH4Mj`eLfx2@mUv?ou7PF=p}-C0YoyQ7E0#tuGt(!aCmK#e%B z=#SDovs%eQ>S?W6&;Db8S;Wu@sCP0r8{k<03nV*))8Kp#CjxBgDX$zng+mb@#<%T01)7Z4}l|JPat}o(Fje=<(U3O z*wCkce)jyuU;g@^FaPKN`u>L>U%meS-n@PH)8GF7zyHtw4L{7Gva9R(mtR*mNxJ^8 zEH5@6KYjl4&u*_j7#^RTo{bKUJQ&L^t{Jrx<>%q#0ER2M$Y-#Ua%kK|YR_=)&w|`Z zc&`?8WI1sa|1pFOu!f59G9jF#7PA7K7HYGu0G>n3kw|S_IFNE84|^P;2TK$v z>LL*dp{91nu%`cGICJuVi^2)8#w{I(JPZn;oD3;v;Kw+1uqU-WS zc+kTs-#G&(-%j;q@nommqj-@;+ueAcJ-$=E(QJ{~})pmThsv0&N}Zbopw zkbe{Ui-WY~qKO&kT*b1(p_%KgHf_UclD1R!zE0a2<+?pTZ_i=Gw&9Z}PX_%%%sR!e z2V!2j`RHYZDWWi`acdX*$@X8xekO>;pogVRlRIC_w#oj#nqOP*e(fL0Kbqg!?0hHr zN4wbm3t6v**Ou1k^KgmfB*LxZc(x6C{j>A);y(s`5nc3#F!l#0Ll~wJ>`O5D1&z}x z=$#Jw$7jRdXdo8BVgD3<56(_U;yO6gkA~tVP*2XR^DHt*MzEFoS+IibX90`i8VkCxdz$dObNBqfvL*g^%>>&FJ;19njH}?%)Jd zZPsRGzzrF8p`$%afKqG5P>#oO7Y420AJM4K@jKNP9aD?o;5dObKfrV=x*;=h3{{*Q zpJL+JF1BOtv;zixgfn|GI_|=;-N$y!-F6@W4aLcD0Hk`_qY;_g--nNPfxb?G!cGU> zzHX&%#4$DEwA(ud@*DN)jldBfiNP7Ppo_CwYr-)#;qc_7J3Kub432AUK>EX047;%H zot_QP>a7@ID~?ajhC}GeSwka+awvMEGnh0S?rJ**+>G8CrfeCV^y}@v36Pj-RSkiVIRou_!JsSbF!|J#R<^(VALISk8u?&posH* zoRk54<#^B?9Uq_QcG~2Ld(?zYecvJq$5k*Kb!oM3 zoX_Ki1sws}8sLi6t#md}ATHR)hd`mHy?R3i)DT#Uqam~w4zGrmbY)Ar$GzkJpx%rg zH>2N$X7*v?NA-rBQ9EG4!-+IF9@X1HBaZtY9G^fq!+JALWGjFpgn@-!uAw0VYDo{) zLGQSCGHhtbkY{Fi3_a#z`Ve? zAJhJoLOU`nnnKYSD@~!&99xh=3zmu-y^zhF*&x406MzPgEEx2^)9ej}JE2DwF!{wn zaOMNQBa!(~`g|tY>b7LPfXPC(3k6oABPwkyGV?8&xDz;k^)(P5eN+RgeC70At>S^t z_du#DW`ROGJiDu%iWg*Q!xjLFqcdcmv7rrZytXwXS>PFAj|D;x*0r}F*@Ft1!dANpQ#$@TyPj6m6OK;X`LWnQE3)iJz zvh@M-)~da1;~WSxa+oyv#;xSaN$c8RiA07wpn9Y-K~80Q0V^%Y>0ddAv34>$0YNhk zmhIU2xZpADo$%Hiilv z_xcBC-)UW@z&_`y2&@r2T4bNmA<6Fe$BK@tm?l&5V)e(@ZNBiw$rJ|}ZhWCpGq~Sb zP}eJeEXh*>1D^%GPF|);519F+RK~N!!n9`EPTIh7B9DZa)TnkwC^YqA!_-F8ws%{y zw-#m?F0yu4^nKDgdq4kt`}5BwTHfWOzK{O7P1R^?82rccS-ehtbN5!=%&nWHx*1wG zg}OPnZg$koHS`@L$GSe5e3m{UI+s%M?fu++`~B0m|LGlYdXF$!q>R4SMSTnWdG-3m zkBv`5eERJBS8rc5KAzL#S3mslwDIv8AHRO_=H;vBP0uH`*s8}&XB3HGbN4Y}j(cYu zx#|Z;imi=&DhJ4;@#lNFx_7H@h3ZzRZ_U*$p>M6#t&R<_NLxPI>?5UD_q^GJbx^RL zlOV<~38)&a@L14Joy}7zq;3g4ch^}&x_F7Z1~<~YfSJhb!r?_|B0>%V_`pGm-rp0p zAg!R2Myq4g=Y)uiFEo$SNZnsB2KYAoTn&OE1YHp&L zM0A}8*tVY+2S0ay?$AYhI@Z_z)Vz)pffkFSe_Vuz|9pD*e`i=sUElrIGMI0-YwIske@@1;Qd;Fch+nv0;@*n6gSYHTv!QnS;xk>L0q%7`8_Z4knI0)EJwDWj z*Qa0*Xz0ADPI`n@^k-$>;O;uv9*M7aZd6FWk^qLC!ef*Z$;#I-&8wi{Sm_ zZTp4z>`z`C1fRHpPbmqCkDCsT>(fRi?}d-&$x~o|%mk^D@KC(sx?Tpa51(49?3ZZC z!w2ukq{OLxUmo<--qeNao(3<@yHoGbJ9u~SR2n5=7~w}*eqa^xQv{5~uYL%!b}pJG z3|AVAKF*cu?XN(xzn*_k&H44uJcguC4CeoB5#(ob+O$%5mScTgzfPf}KGt3%NBY~t!2BO7%6D_Nw@`q>v_0!eiD*iQ6 zlwBbl7<4u56FCM}RUjNh`}^Oc!zfp6KlAlCFg1~vQ-itlEo|1&!g>>?48K#mU;A3U zMDs`M>u&b~<1`JG!9@p9YmISzJJ%TRpwduKIf80Lo2I;om&hB4`j;qmv$n$@LvqAQ^dy-A%!5yb6X9W zo}@_E@=x=%X$Z2x7)f{Rak~r}*8V=t3$$3Siw-6o@uw?wCH)T-(Z^~W;+=FNPZ}OR zd7>2QYlLeoU>X|Fpy;Ara8?=e#xi<0^Lax4n=QuDmFp}j-@Av(`J~%@fM_ztbM?IY zJDsb|5+t@=g!q|hcT9xrSA{++_(qbQDO{m?I1Rd!?7Wy{tar=U_k^IV8Z~?RkSor+ zxIE0hd|vG6x0li;PTfs6MIJ9`ttFxkj8gBq$q&eJxu)4%;{t~q_wCiK?!ORWzue17Bczui_( zIrFNS(uu|J>^JF!)Ix{f-ShaiT2c~-eEg#N_%51xS}k0ey-&4P{U(}uXH{bnLH2N21eRPBw4(#h zs}e@$62_HF7|}&BL${w?OUt1^+;x^!RNJHYHtyKhVGzAZP zrP94X9jwQ73U0OW6e8O`+ZY;P8^WtSgVQe@MhH82vDFTC~4-R!$aR2bEkW9G6L)nAD z*gfb;OK>wfyG3E0h*}gtDU25vTZ-iIn^mYCPD{D&5D^rA$c1Nq9_rt|M5d5@Tpy7h z)U~09Jm`z?2>zMlKMDL((M)Le5f!TW6c^JNBMrmFPcM_Ack*Z0alXqbU?o<-IZ!Xz z`+{VWo`-}ch3Z2}yo*5`Kw#utx&fk34>#OWz5@fX2~uCc?E}1_(t)-%-{nNuhrK;6 zmL3N9uE5WgI@NM=Fn5_1Hu;O^>tK3Q3Kelb~wl7JJ1wh>&TJ8|P~4wFfSTZb$Hlk_AerAh3M;U8(= z(lnAiNss#U9RAukM%_t%o{=B1L>JX2r9#{AzRN}57r??Hsr|DZ>NT8C&`%(r1)-8j zbJLSYrYG{@PwgKhiUaomJuWFLjeh6-|Igity22}+oz01g0lOC$0;b{sG98Yi)1XL0N--s9NGy@~Jj_TkL@k^4*TyHphl z8>Q}<<2+BgAF+T!?aNzly=zIHa-Du+A7!}Wb%1QlnJIGOgH)(IS>T-`U-4N<#b1>r ze6qBK8BdffYRZgj9A;0k6jlu*X*eAdz$y)W4D%f_<;fycuc1*+(>Xf>H7OY zSHU!P9tdZuKY;B=I*(&#deGU}>uuT)b~bt&5VrT)y^c)>s9zuN1I{ZjpfO`WD{Xta z-|p1}*gWX8HnEc7{?=A!Z+ku;9&GJwY;Kq( z6>pYQ?9#)=@)o3TZmvDMsy(7cjZE3W`Ciiv12d>zwOc(g)} zf>#WUK)({trep^9?TJ4mAFRrI{j2kppJL+5Pp!P!YMwP$UcfdfCcv z>KL-AdL@@COo9sW6Ltlmz4FUKbyPIwMG(7VuT0>Hm~Po*&nDs9Wl81il%)~II|Nn7 zYaYqOYil0#MjPP;y9dODSTqcpV{4K4l_ZR#sT^in>7*~Xh&{-_5HovIOJt@bn`t#e zkDJd|v)8$5(iyD%Hd@Yuu#*zd;!+BlpeMp*C~co0$ZBf28jUMMG}FApwgBT&hzL1s z^!GzRvV26%5zoLC0|6o|gmy&iKbEm`IY;|MPKx$}UfXW*j7rvLW=;hfB5qk;{+6YY zXDVnhSEI~jNGk77KUr-ls!4hT&>};b#o`)U&GCXNCc8HAIO^&#YyJ*6*Tq| z>d1=NUq(yNMAKU>&A$-4EyelkM3a$GjBIAME8_8J?Xg6Z77Gx@aj_6)mWCOIv0s-e zmj_ChTWp%pWZoQJ)60nlu%DP%5LqEo2c%;NeG`S>%eaPVQxTUSzT+;UK%`3Eh_q()x zdvi(KclEaKDYRj zukO@Vn$0G81K1Y}iiB7XY6}a^RA^1?hXbdi#b%}(WeAK$D1R?B<_gon7)XNb$>b8| zT^Z`JjAfTOm?UQ?W&bd-y(do?TmKjl1x}CgNm(Jo9U`uFaFB{_L>S>`cuM5}Ae<%G zE3){pLUiq#$$na}p5#F16^iH#b3#wS5n{m>(XY@keCAX&pd5OzVn_0^8j_7=xhXOh zqMDE}+as^nK2ipB%91t4bDAt0jER`qA0x&#gTTB99ejm)@HLCEh5IpLZ1H|5F*bc& z4kxpb7gyXjhz_jGma+8~c{M1o399ZaZ^S01#l70fW!6{+S1X{MD}Zg8<@XTnAPq^1 z1dGth@Eb|JNpf=Zby_092*_|nW@i7ychO3?m&N-t$B#5dFPI#X_hzl|R_2iF{8kbyQPUPoH2%y6&obMpk(6+0eZes^75$V9 zMg_RvknIb$QP z(D=_ceggGX)pb9|8J7qg$*=3u62>a-GCs{B-fEHF0zhO!XhulQ2;rXP-0UM#F(^?| zd@d_Z`3ae0LzIS2XClSF?uK}K@XNc0?r7?rt?ldZfGmNMN?&WTX5I&IOrW?~m291$ z-Z4~5R%U=p@agN-lY^il&-3UU8b*>;!=V?)fSa6$!AOD*Az!AkTb}AxOsnjLSrfhfKJ5~9dXfnd#ljf_bjq2 zgc#nZ5w}$%!c<|?sY4VWN#T5s?F4+=+JuFeO0-j+&IZN?_06=vM^`U!w^-m-2V;Z! z?qZk+Ql+N#^*a_I*FXA^XYRLpi0KC=iH3M6dg3wq4{;W3-V~?k1@@1Alu(XDA@YR5PhGb^Ej2q11azbfI_^J z^|M@KOtSrH)Xe889 zK$2SJZNwCpwsN<$k-NDSq_hmVq1?i@mA$U;=#^K~-maK5`f!EHI;EA(MOVq%S5?h7 zt7^Xa9cqU9(#p$g-sn{HnLb>h=FM!)Mp>ujONXqWnf3Pe&dyG!y?tH8Z&Wt!W>w>E zzE9(F^$zNW*2?y_-b~fzje%Kg-2cvveBfY`c4rrnl&Ha&(=>c*0I0p5n56*ed)d;W zrE24%#CvvIhjsmH+U79R=CGvAVQHJ+XNRL;g&116V_!$o^JW~sQf)Q`{jE*-9`KR zoz056Z+?fmvDo=lc5$)pyOYpO-mBj}<(JpO)fVGT6*b)a9%^V;)o?qUy_$Ge>%{IQ zogiGTs*0Q6Lly0^DhOXJL6|tc4A3Ge$#d$S0$d!xHTS7bmde1Gz-+XwmQ;CTfJ0>!mIUVx4bL6Rb;_TcQXBe1-!LowZyiS1CH#PimD5^n5w-1rLWY0jz#icB~9RA zX~VD_pb%qH?^HJFW@VFZem_kTO;Ameqg2(T0`{hwRDkGLYSN}fhsE|zXHRPvKu>B} zXH!OWIHJ8>9KPKAZdSJZW@XE7es3+$x4WHhcPBUI8_Qc>1&&DaBW>Dh#P?Z0i|D|9 zHM^P3?ZXak_)GyNKLaE-zYH|Rayxr?xoxp|?UvvPAgF4fPXxnt+G_RydKun&d~nb* z8}8*BzY11;KYc`)RqQ3UQNpc|;nt-ct$z<4eJ@DX?x1Z`z-28@kR+h0x>s*s4Z3{? z5QZ2X)J=%p`@ymA0IbR@e;0`L9l%nmU1Vi+i7pv~3TUOlv#M?WzEG&Dp>nCDP%67( zzF#<1hT3W!xSh6mwN+pqrX}3GQVH$y5=v21t%ygLH=-2vtSF+`3Y0J^hhtZfkWkd( z_#~X6Ty9220x7ifIm&05h_SU;6Um5j%<)unjY*E_7qV7@nehf4?XwAy02TY39OGM; zKjWH;YMq=isiYaRXu&gdl9DBTD`GRUJ)FzghgIb2sIqGI^m8W|6)KK&b|v*cGk8i% zB-xJ|JU(euU74?lP`4;6u~KTJp;X`vmk9dQ@q?c5k|W;@UM-i%$w_ZUl6V}D7jL-u zWLF}}@|Lf}63aK`R&G#xDzR9oP#-3{C{D~vDVNUDmF@~UocvJ%dJ~wXdF_dDQR&cd*dK@@Qc0I_v!}>g%n>-i^jfxAAr3Xs~{qvaTO$%p-JX zJD<1LTV0*)s${K6UrSSP6MBTC&|Xw$LrtKqwY6X$6`nSwJ~1)%4z{*8+I!{&YQ=4s z2aWdHn$UCWZ0uR>J-`rm_ss4v3}8jhJXE5LNvSh>hdfS@DFE7m8cCNGU}f?JtmsrX z{01pDk;9#!!6gZGX*`#fHVL)Zc$A#ELY1*tyY;g$}+b*^A4a(0ee8f0&*p>^UXkNhndwrW6*T)$~06QaIAB) zw9egmXOrkOb{K9@bqC5(0+@@e1)LY@fs{%+06wvg(A@Crh!-gI!`F22NgN~T zLy7?@CzQw}Jjl`tGp4tiVC&jNh11#8p>i;q(CGK6S$P%sW+Y=KVIZR z$;J6RVoWTyLUd|}$pqIP5Z=dc1F5@q+lz;hKZOOu8Lg?FHmm0*Qp_lYv_|>?Lx-t} z`jS)QVqw+Xnsvdh6Wa?-VR1^}a#3!Vn#I^%^j4&afs=o~wY907ts$VF(q5Ca)`3Xo#*MQSS*&RT!b!i*#egD3W3e z-Q3Vjbw`AK&5S(7y{OC%WQX zK?S;E2hbNJpxA2kc%&iNpQW(MGAEUf*%J^o#u*#2}i)P=@J6G6u z2UgO@U|u!{aP8QFWrFg0-UtSIVRolVez+@5mrVQ9)Sx&F_N=M$pg)f$ z7Q}{|r@|}fP=s!OGH_u2LJC_}!c+tbluBBjplOtoM#IdE)2M$k$Pbk^4kV|$VAsB=#ChAB zeiXUWtP4`Qu3>30PKxxOdkom+@tx7J7VE>!_p}f@^rPWy;zp!#yXvWTSOw``cP_|i zT@iGPMg7`4kBzh;5=&fI?r8J~J6hs&`oxVNkr*wyVo3A$y@AsyQ*BCYucUXF9F}3R zgZu%uapawbZ@gS93T=SBI`Sr7;;m$wV(F3jiZdVcm0SH{bV>UMXgvCk3&(hhmBR>S z#?>rIqr{67RP9W?`F11XWl${Q^Q1+BhPbJ2G{_A@BD!stXkVwj$HCDc6=`k*@WPC@ zQ4BnHiO7woStt(;%@=M&n0jRtdMp#{o%wOXR>&4sTw0gZyvlZ<=N(iNEcL52lfo`RrFVp?e-*_E2;t49=4NI`{=lMuO|DhEu^ zMGCtsxU>f*uiVm9Vkrlf;9qFtnU=kzV_MmTR9e|^s7=Bk1L#skOmRVrx+SpBlYp;u zrzT>#;jL9YqCJ63H|c9WN?Q0vryALoQ}TS2O1?lh91CmYN62@ZElz|e z|DCq7-U=5$`n$Cu4_V){4OL?xc6q)97xJdi4UFPYpcmfk`Dq%S;tyotv7k`U0*vHh z^Kl_Zi+ArpVfe1v{Mnj>|AJEh{vAEk_2&iab964)u164Ch?+DmnLl9v9PuU;$)iT?TNWP z*$UUzmeoXnU!T)U3y&6XQA(n7oXxl#7IrVe{|e1XG9CAdP*`;wuDcrM*~~&PT>MVe zXWkpx+?DyX9Ae$4`1P&x;e@#kC4`h(di1SO!j-$oUZiy{{HUxn4p2cnaMG=jYIp?A zA?AAGCMS+pVGbzJZi^WUS7gk{q9Wm5IfVkfXNfy}{XBAqfWTLLfbx8_iw~G`ZJq zZ*G&VNn?9wXM=RA@o{5&6Df9(V0&+8%Ou*v9#PyN_ty6AE|S&)V{2o3V*^#F6`^o~ zM2ej@JL=Ww6>!BeY9CN5kqVbL!p)=roL$7Nx>Fe7b5mXi0-aVY>`bD+l!D)O@XPZ4=8Ru3_YkAE&MPo)3eG1o6_ZUj5)l?kPz9Hhq@p0rG z!xEyws_E$M3Hm$0YEgfW=tPfxpNjLua_^S8F)TTAQt0 zep91%oGz@+_Vz~WT?ogW-927dovpo{4nQz5hS__y2v%aTNI*-ln}p}O@ag|gn;mao-VgH zh%}vPcdU5_>`8aT-Hz_83#6rqIRz?A=GcOIEVCDQ$TUXUE|A+8_{Ti%A2ST0cHMr(sXNQA(H8{rol5fW|R(=9BiR-h_2 zs+Xx&M7m8Mg$2F>j2tZ!Q*@fxhs0^JNXUCxx{y*Yu>qljb`MWHiNB%dOYB9yJMq8v zbnC`p3Zl@&Lz4xl{PDS=G2B$@*btOaDm;fH;)I%uIJ*E#0BAs$zg^%WCnqgtVd;5b zM4c+aBPAzYxi~BP=9CbSWnxFL7G39p8(IRL5gmyai%U4x2|^euwkJY39V3oT2e+rc z*r8Y(2B%6QXu$D#FMYIqxLX50O~nP4mNi-c2Apy-MFt;<^UxmO9r;7MR0B$_ioi

dIW9 zXf|ZWz2EX0ew$M=q64f>q%Qx$sZ!XCrN>k2`Lc>XTcqi>Y@ia7WKA$_;$7QU9LT<% z_M3OT1d`s|l;Vw0R`(JmwovMEHYt~Ug28riKeO)>Xf+PeQxmc4qM{Ts^} zCCvQORSSQ2`D6?2=tRmQ^xJ8)p1=lS>ZjWRp6fwgU+DpkbLyp*D5gOfUxf43;fo%* zttaUpE7nOKysNOu9=sj(Et4P_l;z6ed7Ez0#P9C{?@_OMtLhAynBH?HmxyI0S`I57 zu7221E*%dQj+k}t?vO3CgM>^Q*|kRXFd6b6Pnck^6x=X0%Ou<@_O6PuYLC~Rl^^`5 zunaZnqx;@g13$Vnmc1cmE3bVf7EtW+H_(0{t-1t!jZ#&!i)g?rkS_mMXOGYqq{Tn4Y+-WB}lcNx~Ax4Q(P zZMw5wZPjbf*Gw)hS8?G*vutRZ&nbV`Y43Tv-81Jl?EI^W-v3-bm2d05z=Dn>h7wE9 zaq3cFHoN|!xL#i4>(%8xu9^Xh%+zqLbM*ZkM80{Y)M??!IZFumasOm)NLOX!POv z`9p-7>s73eGCfKNr9H-r%x&6wx?KHsXpgm#C$pz|ps!l&^u^Zu@*p(6x$+{lbg zpm`D^$|H%c>M2ZZPTjy^1p>^#0QKmQG?SoEQEnZ=@YpRtC(-xrw1gwyYM@EGTrA?{f)yFXNwVG5tZwT3Ea z=c{xDNw%3wQ8X#&+UpS*nR*gaqH{@L!_mVt{#)aoDODB5TcB%itf1Te2rgg$Qr_7+ZFT2brs~ZqAC>N3ni&R% zo$)v=QNltjB!UD@sbqYejKrCo6}}Vn<4k4I^T+AXu|a>(E@u4I7@1Dsih{p>6|mR* z?EQ3W-0fpM?7N;9(dzz+l^C==_H`J#gE(m=PlVJ!yfsl5c5nL(rP)c+z+0Q&xe15l z@l|qRiKR>`OFg_roO(9p_!;RF+xkUe4K``tSIt(lfYu5DCjz`v)_nYM+#o_TB*^Kc zCF1jjqtw~A-Jl?rhW7P4f#D=31!mW<*@d{F3sFJU#;*UiObPAjn41SPZ_xHNM3n;wWaU}@(ya( zmdj;>%JH}8bnCP^1W7VzZ?4Mh-RAE}jMH_xizc`GNf8qG61Ay}k9;SuQw&;luYnYo zifKddntqHoEsL~CLBn4!o^(`YU9ju-a}vb@R;%`0M?CpK{`0lgdn=&3$e@1E;ob4N zue)(pcJH{(Z z^F%34^MuUF`Zxp7DNAelVpZJ1XH^UXU&9CphNhQkmg%hCbUMP|pOT+X95{<~#qPk#X?XSqO>#tX-2N*vY|<}zhz z8J8ucNW~=;fMh&i5t~b81CvXozerRZaE%T?-fEu}_4YcSQFMInf)HQ>$g`r88J|m1 z%FVij`H0li@|i*A>8~@$7r>UrAYIJp<#DfD@qVxRI z5}96ec0qR%Cim?9OneV&NjOU)@lwp5mH>&WJt2CzQE@pry0!|-Nl?&n(pIi#1powu zHFe%neLVE?MriaFXMUTK23ITVe?KS5WmS|E3WeR}o(Sq{4NxP?+v;!?$2w^0YQH~} z1N+ylps80WWLO|qmfPb3zy?4FfaHHv1CYh*D))r_rse~n9a&S&9tL1hXsT7CtIw+i zs@)y`FFOUWHPThy!e3MV3oxefuHu;Qo0_5ND0(p-l)k6hmx_+wVD`zBqF^!a z_H(M-K6+~TRGCWJVxC9DVx9?*jh$L1dmL-^!fIz78`zweUaIsEk1hBkLxZ#=a6xg=?hJ(7FJ;!ZyQemKB*1z)!X2A!gckkcQV42Y z2zw0D$j7n#FZ2 zkdADc{vf`pD22siRU8g-dDr`KPN@&g1z?%tI*KM!+MVKyuO8BGlZvH<5AgAgmn$2jZ zS{Mmp$&Ccvsr1K;EA_|FmTn&vcmj9Q7hOFNcDd3#n@-*40wyP=?q9u|HAfuF^gE^o zUL4b>D4IiDbtVPVf4b1G^*;^U5HWAg(aR!et;{koS-x*W9KoDL3+elA?A-Sqe#B1A zsAU@U<65bhEKfshs@?a#?=$a6fixo9$K8k{iPrF=0a}30_I)pKHEQ|&5fCT&xMl%} z(!VbT#o)}woB{L>YZgr$5K#iyShE5~o|3W`;YXw&+o_7(`fg)W*Z(h5Lr#_lc)u_v zHnqbPEPo9|aT0Mf;EFjL6Z!clCN%u0e!jM-?^f<1b`DONdk%XRP1>kMDI(R*COq}m z_Dmin;2Hq{-A5mScb*%<$!a1(zj74hdFQ9Mdr0N5Go2nR;1gKO1kd)m}2RtUF+SLW5cKpA- zy?s^F4Eqat&c2|)mnoyq^h}ybxihA!*ta5ebzY@2=B(Ivp^=hX9Ky~06@WAVSpf3? zql|#;KV9hK#@_&xLY{0nKSQ`1emvQ#miU4g%Qhrj{+B(Z(urm|XD>>6x1tCb1J3Vg z@PH!!-AXB7*EJPT#B5&s0Vt8)d1ZJiMLyY{V&1iu#VQ8Gaq}O$%_iiQ+ntndjJsyS z*i`1FKiSd)vQ}jqp^V3kd4T%&xeGa^&J5z3uck!>zK!bWiAtR@u}?m3h55*LD~le- zjnnS{0Mh^9*jT#3C>XF;wlTm8lpzMt)U%=nQtwJPBuoJrrOp+q9OTlCP%FTEBH*pa z7gP=;zW^oOnY)lch=Tb~if1|OYw52HWL8glGxs?L+^F# zFI<166g`9#%=~xV2Iud3;^1-y-fyrON)6ZyqUq)Atm#$TyUY_;&x2=lHa>26hDYCV zUFq(8qIqRD7)fV4^?O?_6D;*-d))Q+_P88Ci?y!I&HxGHO7~hm^|mDvrghb>NFI=R zf5u98B+rR)e?}yrTmZ0*``s!ZV(~V9Zwsh<4@O>SUXe0&{9k5uI-b3{X@3SOlkaHs z(XQ6j{@>c|@w0FJ6(0_*1Mv)W1a(FtH-e3oc)zS>$3yoxQx*cO)amHCuafWR!04n+P6$v?wyvO<298Q6kUGNUwcx-xy z%G~!_L#vj^v~pi7Pr3TaxO6-9;^K@d0Hj>N&B~FPnpMlvJFBOOqnfPc<+7@*W$lpk zUz`3FFkEY=rAH&Qj#{H5A|A5*F5UZuyyyGs&Z}z7JjZxKbCprZg+f5muy{3$e zU4ZTbIQSpM<2yHlk8NFo8eCfiP}$?ild;*9p)=&jQ{lWSmqg-L%m2UZJ-+i|_E?~A z?bwwA#*%;}Ol+%G){dPzU{_$wkp~psZ$IL^Iv%^zA=ggd@5tj8zO$|>Sqc@HK|0ue zB(12{=t6RDCLj-uxTrer$dd#(s3&n#!5dst1=Iy%pNo0V<(V8>M$XU@Sd9u zI(7;uD~0UXoqrl!vw;NwNdH5d4vAY5u!Sp$n==7W$^qW_XxuLpr!-MKrh; zzt^PG+V9xNAL}*f$o4T!{h&z)2&)3HaLjuS)WZ|5rnbB(pg8EbAr#yCrTGV-akkl{ zgC|JNA|2bR2KccJ-?3Ap_R>P;Jy+)dYy)AO;r?gf-!&D8smHOg9KO5;*I~8l9bk$E zPy-qQ2;<)^vGXd6IN*^K0MK@T*L=y@d`V2(ttK6yx+*AvK!Ku{=Ky|y#sr#VpYJ^R zOKfXBUu-K(zXssU7AOp$SBSH|cJ1vp6j&v5L{y5p+AznZxCuk1TbZY1~rWvV%^R+R(6>@?Y@ear&dcG(kf z0ECS9&PUE+6}SVg1r8OK4DGXbYB*n3lx1QXsmrd^U98&X(E-R?y|_lc*l9|Pd^oNW z7$|Mz9w^l)?HXo3W}%7ptY`;-2Ef)^p@MQF0W3AKTABH+`pZETDZG^n{nVLcfHrBj zZwVq;y%)|4k3$Ut_ndB}Mc%z$E?d*6EmzaX9|&o{KCLQ;^Qu6DdzSB&n`>9G5-4g= zvEuRMRS&SYck%WzRcWj2x6J*dp40N)8_C|u^z{XGoyiL>ITlrfa?lPFy4r|n6e+y@ zD<9MdANZ;pulerJUQBX3cyRNGEB?f}`X?1bb@OdBngy?uby0&3{G2;~f=%U1jSROs z>@o|8(O|BdxpdP|-TBAQ!UL(a(y2NlW^HobPw#@V4~4i(|AbXFs%>k0Hq8i8>4H7$ z38?!XyqwOH-*= z+oiTl+8l)(%8b2u%T;s#<3Nt$V(Z^9UY%|_uK3pui+(}Ld-r-lw1$?3-xmhY#wA+N zL!JR!Efj0))rVpgQj<*9fw;Bwn8OmRSg7=;A=s1o_?ZITYQrU#C1f(v*chRmUjJ|O zexC`9-ZAd_vkd+ly{n*lUG2qB=FOF-G1iji5zh^oudhWNx){oH&(MKF2;G}O#h;{_ zRqY<@Yyw1MdQuV(16JFPdGXppdt9wI6zL_{sc6}%wdFS)4K*4ZZ*i@^?N(E*Ew&4d zk+)%IrRHdnw!25jtW>eeq|1#+6jd)^(o5UYTO)J2p_f*12T?lU$@h|b-k-N?vwELl zi^dU5Jgf_zy{yjqUUJpp&6zbcis`ic{~ic*7?K=K#%3j4bavm>zoQIXe=g#1=+J+@ z5qE%b0p%LOnqMeA4hT~6DD9dr*BNRmUtKoj;qgzTX~&}djn2p9QouUP9KS2p+l}oL zEvrpoNQH9fXg9i9k1irmxM>ym*Q6W`fk3u2bO-%{2VLa1xF8EEDX3CAkUfDAT}jhIIFK={_J zEm*exJH1$J)wn_fD)!|5DR{i52y%58EotMZgalnQM#pfUb90z+#0*=Pndjk*D?db? z?#wP}itbCO@OF+|YtBkC@ode0Z~lPvA|a0MUwUuWy@CY4ky3{KjuYGF)=LUCDQ{TR zO+xo~j-TH>S^1vlg8*f~WgVJ_2@4IbHtWYUr&Eth7&>0-EpH>6%lNRKvTJw*XXdk( zs~3K>IEPUL>A_GC0V8qD|RfY#8w0cbU zw-ir=U%bllI9@eWTqy($kNAnRn#)EpS>lcr;{VO?&Agu%@v7zZ!?lRzxlVC@o*@d_ z?J^qz*EL?OTjVLytYE+ zhmY=w-wG21<{Qz7yp z{It&@&gQF1ZYoDHXr9Y#OI^|TZ_za#e&I&-^$5 zkGkTvL)f^8iu-HBEaz8&0{0x9Z7g@f;{>9LzuiaHb8d|_sumN;ws=u=GZ*}kkRCJ-0-Isqv z_ZF=d?$GxZioUqgGP$!H{r$XcCy@8Ygxoe1VVW~9^bf>oFZS2axDdzt0G-Uq27&(a zX0TacF|T3+SE2g9(J_T-n|u5cyJnY*Y%2Pnh7y%mOnF(Qc71)>wau?h(>OLCNG5Jz zbVh-xL~JyXGFLi1-)pJx?9I8KQfn;{UmOyDzW+sJ%wmObCYbE%P4soCg85v4Om(!2 zfm|}3$^)hT^Cy3G$aHD%0zyzoQ2{@Riyz0}pf^Wkwzh-xbMr3+YuUeuRxT)2gCl>8 zObfZVGzJz&Q%y7CoPVi)W3Xu#17__I(<)q2Rww(h<`q>D!>T$lNpr+ zk+sFSoDj#AwajY<_R0@?@`HB=^dD{{(D}sf>hUhTYbUOGn_UwdRefXXV6Ad0^X}$_ z5Obt7`K~!lyRqDJVoPxk1xE&pHa7pw(Xo=76(d1kXuWpO3|(*Jy9)KOjLkOm2A$Pj z_UFGwlpnH`sJvh-wgngvf@D=a9U4f=+GZG7=?Kkx>CZ>BR2eIbo+Li4Q1ZV~K7OW_ zKlx;m)Y9;k|pP>or7Mi3k_@RoYouQHDiCt1q>GkR^1^s*P(5aA7 zg&IBE#KQDWlYQa(7A8+A8Yx`Kn8ivm$n^g) z_trsmd`;sgkU$b#f&_PWw?GK)?(XjH7Tn!ExVuAecXzjo1b4y?-#pL0&->fA>Q}Y9 zRl9#Qb7!Wz&pC6sHD^wLx<@LG4zZ9!?7F^jm|iflXa9<&@#%Tb0Gz@rxxYIvP!v_E zLQ^2_VhlMAdN|m)f7>PN)_i|k>k{YZ^d%iK4%b0FFPmxw?`hkH_{t_s3Co@R+-DA! zBd@Q^3olxUf8udbE@ERcw_Nm@PodE$nf2~*vCxWL?~0eve#kpqtTDKf7DyZ53^5#Z zJLK=&>?+-POsW_69)sSO{xP75IWjgrS$@Ff+Redhk3k@_TH=c#9hwgyn%s3BXEs8M z?1W(pI40w>s#M(HvO!SU-@2a%@z@uKj5Wy_=lYS6hs>6D#uf!M7j^fOp%~^Qx2ULp z6>JWB5z~1vvOHEh4Q|BMuUvMB&ZLJiP7<)VqZ-UR!ES87=D!H37zS(IA>1%pS-pHm z#G3tHSOAEUZONhRDeSg>%S68VGR&o$bUd|dq0rV*um63K8vdq837awqq|_s%m_s=? zF7y?&ShO-B^mQ2<%W(`F6$j=#jt)z##~@gm^-oY~PI}M&#O>km4K`e4R`pO!QsQT$ zpL{2@vx8RD(pG5VJ_h==gC%HfO_ha~`Qn2~U-Dzv6f0FMpIQ+h&os)Fmlf8?knq`Etz#=N!heDphj!uu!VfZ%61_DHkbZ2QT2E zAY#>S;hJYy`N9BtdfG)(E=RK5Kh-DRV@b-a28R>2DsOtogIN8VAOAD5lGGEC_H*v6%;^ucP?vN|67X>8ru)zo)OvGXI*sx(&#ZN@}`TZWV8I zhY+pSxmaXy*HqkN6^)2}in<{W(;(CT9Y_2WOr_3IhXFv1bw550yL0+;+Q4~Gtbkjx zn}IDyV|V&#_K?vCM#OfRE+dK6CMSQ=T-NAbp>GM5sRr_MTfH^qBC7cnj3;$y zN-0F|?cfEoyUldjBS#){T{5w8{;~wnxb9L|M%8$f(OxxXOyMtPVN5)`D?1-HPZH+|k}EYT z8FdmcRwBxBb*9T*2;f)}$+Gx-dAw(pe0d0xYu?lEfP`m()|SitV0Trrqi~K1y;APU zpMxi5eJiGX)Qa>LTySvu^@~ci>nemU|b?iC)mSwK%Fg^uzW1hPM-r8?O?evLX zw;ar=gK|}rilbE^Lx6I#LV@-K^$AgJL|04_$2D=EGMPnY2N+V>Y``d!S&)B=w6oH$ zGEbf~`x`*S=Dpr-5hZJrqF|;F%^5{6B!-XxpX7rpSaG!IbjOtrB_Y_f|VpsyS6Ox9lLLh_eq>egG;2^_Tff}>Wyi~GaG zZh+^2aqsZp8`Pu~`RYi2^YTm7BgpXA@Z+WFe9}Zs2RA+Z4f=;5I^<46?-4nSpbsrE zVtgGqVx#XN-&Im~O6lknz(dbVi5QZlmYMC1avCVP7-33}jZHw)H^P6fhA9lVV|LOL zD~FCsM1kAloUtX_zxVp(r5b>QD^Gxp#-WJH z@6wm7b1WTRaIDErX!LE9`}%jp?!*V;X? z#k@;+!|I~;!&IX_5kvUFm!DK)UYjj_l0iTyT+M4!_L5QsTlvccS6pXpyHXRs)~bZ= zS+6E?psEOkF-hXbbd*Ly0gmke0)|!5-&1!Q=!*ne+}=kJN7a!+hmy*-#>Cn%aE?5W zFbQE{Ta=J}U0LZTSLKPEO?hiV>KAyMRnJ&(bKRoSP+xwG>rOcC^f`^{PC465_*%x8l{qF*6(e(H=Z%Xt)R<&hnnvCkNP#kz>DSIUq7 z;7l2)vmQ0+&=THVP?TuZ4tCcyGeQJccSuiw-^~5qZ0Dp2E1#NYmm^N1meo5x>wGhLa6(O8u)qPTdQ?+-&T9bzIQ^Xp)Yz? zIc&<4)Qn9~hZ#T~a7zr!e8|D&JLNXMVrLIuA{p5_coI=Bl}9F8dN(C5&p8*S+hT5# zLCB#Kv9z%2%QV^11qznW^Ny-#Qu!4@w&8iV%jHoQ^ane3Z6o&UrDcA(TZ$|`iX|Bf z!MZo{-sO)pm-%C0f+OuC3KI3c%%d}ebOJSFrE%V4ZKclvg>61b6Y6Duf zkN}ANX!fulzrD9g2^a17&O=p%`P)w$W^{$$mx6`2g065Hx)x*|kqU$u*Z0Zt3lRrt z8?e#J2NR55+r-SaO3DtS@i{O-g~|`&YE99$HMjoe+HPJ|Hp0)MAJ%el4_|sZ*4Z9O zO_Z0^>8<#~#D(Ub^(H=fnggJ6MKs|rDekxrlv`9mZVG{rA66iY6j-3RC|1b}K9EZU zU`T}i;P8nSLjQ&nm~x@Qbz<(O&GeZ1X;!apf4lAk18qIZGcd^@YfEy;*v<@w=K0RX z@6$%&>94Q}yxap6eZz8%Y?3{YkNUe<;&{g}{CPRX&)MW7_~r(Mp@LD*p&d^QkCbiV zl00c9uvUV>l~g%K!ng-Ys~E~8R~1kbQrxB_UubM!0#gnfiq1T;g@_3o(EMh;#eZu^ zucVDt{4M7mKqiQ$W9R0tAd*~MM@Ku{KR%9}Ju^-?KX|=u^i(1;t{$m{&4b=7O4-Fz zcYma)Cl;w~z!oIgcKc2_I3-yGA5205t^TF1mqnytuEjj!#z%mUS`RgnAcQv9>y_g- zEEj4s(oZK}1#)*Dp7|#1?(<0$Zl$Glh*Ko8)K(vv5Does_HSjfF1mcz0-~w9vXSN& zfk)snewN8>>z{q#h~QWq@wz9FA@0q-d?XyVqk&*(J^eAQ;D?v!k8QLd$E}Ow!oRe> zj`Mk&)dt@FFn|UUtpWVgeFW%-^bNmgLe;Owi)ewL_`LEc;<7i1=hHEof-J zNT$Mq!C8RgxIOmfE-fwWc1J+LOHn#D$qT5%AshDXDq3~AV+ajKwET$7STOhN77w`p zItqOOywwnGf(nU4&G6Sv4<~_T(2{TW43*uDt`jwD4ys`Se6J_UT1U=UFLo4koARq0 z7#E}mVlNG-aH9YjwRN zrODyhi<2pKF{9{xU0W>1AL?FCxXq#ePI0@6?-#*-1p8w4yW)Az0d_!Hw(fptHEWCP z919ivoy_kszs5Lc6G}(n{N>ZTjXy*1o$LI1MX-{%+Xyy&UVmQJ+=~*$&o+bKZ>uxC z!P;F(TzLV#2B9+nD7b3#(b4SP50ehxrFQ>og(j678*8F$?1c^&1LnMj)BsZvJ`H?1 zG)$jN!b)d&H$?kCA#D&S($F%+(mH__OyC5w46mwWdw}sk3s}LK{OBN_=!Z8a1Jh+| zQS7`KO0>tkRqI$py2vN?KS0`v>HmVXb26$s(^ryoHjntv&6*nApUxuCQo^ep<^mW; zP2T<4hu-s3{wbJ1OKa--C~85cx3l-oFcy(W&nsltU@Pj`6h<*dVv5q19Jj-cqFH0q zk}et1oH5@MyRoO_6Vpo;m5#FTtlm|o>E)10&I9wwr;X4# zds;4ms|r$(iVbfonTwG|Hob4ZXwp4h07$@~x zke3E+s*vdNBJb;iNn8|eb^G_MKj~8lz5_fSdU$9e4}^GA+h*eFUMh|EnSUumr^<3d`W4TU_v^H=Ksp0t z<7dknUUoE*E2oMoUyYAf##SD6d<7wNE1`)znEs<+h#*R#YN@cCf9*A9`))pMJ$|L# zGbJyR{9pL-Quc$_b@b1Ao}?}{pqdAPVmD8x4mK72)WKNXTDF=_7_}IMxT(|3(L!7E`gcjs)a<5o&NH1ov9b0aXPTP42%X1 zMAcJgK#r-R-%OJIDd2yieLpb^olMF>Xd{^){sa3~kjI{}&e4jWcR#4BdKXhO%?^EvTOK{t zXUUab_4giOi9EOqJ32Oxqv^s3)kk_~dcOLL{uwNg)6nzcJ$8btSd9b>HvyaH3%P+U z4a!qG*018pyw!8HaA0OGA1*MmU68v@5f7~v?^_L%AoBRHIpgUwqvv) zY7w1+cB@&7H#dl@RgjUnbZ@!?xy5&AKW)H8IuPcRQ{YkP!lcIsEgZa?mw>EAU=yXavn9i#e zIf;kPR&8Q)S(;=}^qvRiXar~W=t}z(|9*R7Al4k_aj!E2YpD12;P5=aV0zOiQ0b(Z z>v0Ne%(}wW*kFoHCTWg$z4Mhto*${9t2!x+YKN>20eZLGWm4~TS=f9un9DLA4VI5V z(pbjBD%czA)*c@F((mFjU*|4ndu4ad$pRykBXPS&s>=NSCkZDcw@a^k;Ag+5-kW(x z0;K}yYV^DZ=_-W0AC9n8gPx6?gwCH374I%Di}TVLp;!Jhw3k#!_Q^?Ii*@?(oX&*p zWYONZLLx>!9cS4p+mMB=^%8o0nGN+MwEiLB4^^K6RU6I!uYq1|rb8x8HT{TPZ-?_Z zej_(=w#6GoMru3DJ-JGLDvs2a$VQilOuuhkx6F&6<^B%u)2Iw1Nc>~Sz~exN5pH#q za>B2bWg%E2+z)XP8iA?9ZvWroyadPaZu!3R0IPd-9$@=36JT}whi897P{~(@BouF$ zDiy2~Q^{K=Clpf|7=l=88E-h-I~^U%Bs6h=!(XW6lMD?(t$hHgt7J4VObwt7#)hES zGKqG;!*7)o9ID#CXoG5s+raQDk5U1EHUN&e{#xWNm>U^_>Z=%U%(MbpAb`g3frfjB zXG?*GA`>WBTvv6K3MzsViW~g_-WPD~9GwuN_Nd4Dq=1`NtlVV;vg|ejT`o$r6SB%% zgR{z4;sNPG@PJUU$}0zt&9ViJDP)5w^%;T2beL|$79~87s{qJ&jM#Egm+2-Hsm#&U zqF|lYqM$<**fIkSZ~$Z2v|_+;Hm%191P!R~0A^gk)^kxp6A5VNb6TNDMx0DbB)vPyxA=4O@Oa042^0gmXMtF;qY7+Ky}P_Wvg z{Q1l>b?s0Octr*V0}KSK+o+_;0eGS7?20cSA!DlnzFJxehE*w#I6z;pdWZ8?ZGD&+6wI#2S=!Tkwk%Pj3bfpD3TpW1f;zzuSK)VVx z-jzJ61$*WuNVjt#8r}=JJC;6PEf=*}Wr7ZvXv&LAjNW2@utg85Xuw)qRo2vS1sDYwq=}-wJ zn$QjKsdcF2#uP;|M)4*hR`Es>5V$ztGazqUK(`%2Rngi9;CBI0CMX3-Ml0UX5SN1H zhDut*YD%;+{vN(GP}KaQs;Dds5Wax3VFSglL1mO>7E4`q5MAPxp#V>dF;&8b2(6VQ zTnEC*bp)_K=&6$5h`IFu_Sf||%Ozm`7yCmjf5ZOzvnnvBN~i!`Go= zED-&+&nqHqbyQR$5OemZVPKjPQ*G=jgg`z>{IB z4F8fBkeQ*po9nk0)TKLPTqoN<(s65)yM$g9ZEi9olxOJsb+`R*xUyLGZ@5xv`kM<< zJRk6asF5Yf(2MOjGiMW8M{C)=7B~|zZGDi=1pV45zM?%{V_*r=Qzb7 zKP`#?%~-%AGUM7JBBSOT)ekfc4~Ue(<6o-ZUxMun12~Prs0mR0VG?Zd_%ji=K!;g@ zZNnC6ge8ALDM0lbOJm}=+dVDC2@PbfQr!LoO4n%iNhtC%wil?)2T8C|0^Lvo1U{vs z9B7e}an0l%qvwIc;=g{{eLK4LA2d*_HiUv+lvqPXmgAIqy|C0HUX&P`O9#BLRw7<1 ztOYHgpDZmt1A+_)1|Zmfw+evno9(+rYkffSpl?@9Ab?W@w<|@FFRTiBoe`kFhob>s z!&MuBoF|PrfHQ@DFDz)l(D9^E7WK*UgdQ-&cW5PudST@}xnsS_{d~K!NO0mT55!~e zEFBhq7m)EOuFdOqrk%1wuBz~}+^)y~4b19w!YM9V^E2G899C_lb$hX~=p+n_1-)36 zW0Us)VDRnJnTR0jNn`aD&r1#nw720(2Knr!!(0 z(CP7N6y`zI>4cjD+*1Ipg#yFT?Su;eMmkWv5dn_|`Hz-$9YO+Nk}=@L1`zkah?oF{ z*6NLZ`E1t4DZstqH_Me8dm{mwCnlSY*p`Cr0>E%r3**75}7D`j5*p!Z90 zpF+?T>)ck`SmIWjq-uI&vpTzVZI7!n`)}kpQ^)j1ijXT-s?D}B_=B~rwo+-|{5=J< z14}3N-={sURPkZSgfu0N7pCHju3vum2wx|xRg0&yrU6*t*!za`Ra3D9s>P_(z1360NbSkuw68r)3L|u+x>k2 z>J6&5#x=L5>|IVv>sh9f@z{GKYXNjO5>g^wPqa;Woz_DwVodcWkUswg#hOFf8lrk8`P`CLbYBt9LmO}^qlx*W(aUv z{uc*U)}353?Ond&V0KgVI{CEYi;_o z4)%Zqh(%JftSNk#WLpsjCBB0sTJR^N^y8io$iND2c%O0T(=OwfqP~h-mt>i z>o=^BWvxs?l1*Jwl8wvku|aNTtOUS);byNhW^}pg>*dvfKhP|iUEs=)0OTt>lOVZW zlbGOpnd|`a8xyr%9V_2&Dpj$X1<=~l{icORAvS=mWdo2_wjn?Oa+YoU@0QALbqpH7 zU%?|=n*mV;uvykFTeik%fYAkbUrK=Wb^Lo6z;q=I0T>qGJQV}Qni4gg}jPYaA80K#dH?SU{pU3T2-@tlc zL|*`fHS9a|i8A1h2~e_F18XfX0C!3X0KSC)_6iLkt@HzHa)Y*wX8TR*j{T9s{_8nCJ!R$1}u^s{!S<3ybSFP-4^Q6Fb1~}scXfObl*Z{Q);J|Oai~t~e zl@J6}WdCveKXSbP98?|yaAe@J0N}S_zXQM+n;!!m0J^M*am~_YTUnktX1AJFZ(&xC zr6BpyQk;fmJ@#k6`WyiCauoqme6d1t*{b`6qNk|w3?pxS86!_C2ZC&*s4*VEdv6&* z<*dNA;o@s~sE7125r=)PonJe2Mx)c`qPd)Jjd%dl`~E3|a8Vr&<>YN%i*oWduLaOu z#;$cUmacWs$J-ULs>Tuk=w(Gb;eun6z55qGv39tn0@=|%cX65^c~OH_=zFQ+3GzE9 zX&Xv-xMFgtJV8?7WCRPrZsmL57HUXMhJQ=B2S$FdIPgJvcYY+1P3?9W&%ba%q++67 zDDr39{xlP7_SRr|!m<^r%+8TSP4#6D?UD+dNux!PhwO*iY`-AYF+QQ#Od`YF@4z~N ziRb1y#@jl;b92MOX<0 z7)qq^8UPKkwFJ-*X0*obY}`gYto9pcv6@=@9|!q(Sv>aUia|3D^z4OVo%j%oJKcH*A{NwjUtvB|koj!PZ*PZ;wb;YyTX zX-3cD4l)IITSR)=vd`ej@l{S^5Xz>`yR?)TH6l7Q3%}O+GuZ;#g0M~=DOEEBc>n$Q zzB%_lKEAi*{(XG^BsZG-jToz0fIhnlU5q3LK>RS1`EQR0pY=B17zq45fPt8)`G0|dNaz3< z2;%yjGK$Gnj_ihI*w9~!>~P+P|7UjZSFQid?p2aWTUtl9JhEc`&_4a`xE%Mi@=-bq z_p7JVNxH`?Tty`dBGUCbU54)!Q00xz52a`Y3>AyrJ!+Wk45>MUkawm4t|vA$s1dGw z(sq2-&Z5fbb3l=6sL6pv1=}g1Gcm4MM!Q7Ud!MUQxLO$;-FN+Ba13LMiyLs==SGX! z)LbVP@Pf-Y1G1VrDMs2ox^lF|XwIP~rGkgnqUz6iu<9Nl^-H&ixTN@@KeCBKUc2K2 znabTL0{QReWHYAhBklO}i2Zz&@OTFFP!wgAOb1f2BKigeYV*GiO#kWA)G*aX_$3Oe z{pvX2&q7~e!MoFOj)CYgMZU%Pn$x*MVo;LLPhe+Z=~ZJG?ZRr@XdOs%8YOJZtrr$1 z_L1C>N3{7hU3f#n_)GR4>{wc!&3DqN^f(Sm`|}=`M`z{aul8Fu>)LV6ygkyJY?O9j z0_|)t>r&+R9TJZ8*)ckK8-K$^Elk^gYx~I1Ec{n(ABvnwyO5!H{Rw|`_AXTzAj0XN z#Qj++fsQ>{-xLVUE||J_Ebjk7NAPbYeO|19)I8g6jUIxNNbz_d^?lz%QQ(361*q5~ z;BuQU))i$|6!7b*bC%1dFUBr)(I2O{xlLrKF+06~8qNHKI#ivedjJNzJPxWDYB{a% zA@7@gTg+Q1XdHw111o<+VY}y@(7OnjdOVAs@2j4QIj~I2zaFZ;HwRNp=c=J+H4uX( zgMV>>(pkc3?KQoU6`UBzdry?{uX$w1Y+nz2=R_4F=2a1)C=FZtNvmv*)9x^}ULk_rv-7yKm)vX7@0~SvRlll{5F@)!O5;USxf<+NS}M zw_YIVD`l|6{OXqfVN1M;SutPgU>?Z`TxtD%OTp_y)GJJ&?~m4fd&6E z_v^78Rc>7Hgj*kdLafJ5Fdh-gMUw+_#yMtjo5J3>h+l3(T2$3mm;_9c*IHSz+__|J z4f#{-Za4$2&SD4FKvSPlw#^IclLL>Exo9Iivh&KP1d=BcChp*ZPb~4LNmR}bf>yUF;Gb5vJsQ?1l*a1W zP?-CCYsv}gF(VQo;VE|d;zkp@AS(2`9ir>MW?Tl@=!F9HIrTtL%H0u}I{sTWndpmZ z{j$+XCSYRqTt}C2!r!mo7e)$z<|RM-<%Peu9m6n}P@}wc*NZl?C@}XsyTyxOpJ}yRoE}MCtwIP$c9OCr zhTkM{nA4wyR#^}ojf9x(wmXZ>Zjhj)vfSk$%`tIcs6MYP|I+*?j?9w*TzTa!-@QQh za7-ZuOysX82Z8)=zh!x7U!V?l$2V;r=$Rxxx=dW&(eNd{qSap!Sm|aq;NV(h1<;}0 zNGk|hb7X9L|JsLp?q1Z%o%XNY6WL3UvgPPv#}cwt9)F8*&9H4Rp-nxY4*`XC)D8$n zW=VWUr(}G4icW0smiog<;ED7D#8 z^o}`PbYC25*cfio@>BQ&kg$>ImE=^Nq8(0$$?%#g;Pn^*mB^%E=HoIOr~-}W*#E(PiXCK zk>GD=&2|Jnlv%Wa7TcG!)4qVA*5+BWi9&<-lbw4xBSMh-FGhrcMy0zHaY>8*1WpuG zZaz_!2kM(DtjxjUaK}A zuHiw`X+B=4w1XnlA`bck>&kv29!51d2|J;l=@WEPDtRH{2IOUY@`TL#r&f(9Qscbs zn{phKZX??w;reYE4uwWc))HvNVkcIR?10dk7b|FLf3e7XzvxiKC(C0=29uQEqvnEF z18xtS)w@Ahx#GaY<~dw4vaRkXJrSIqbB>UczN=lW3Is7$nxImB)11ZeK9j#eQ-JzJ zxLT+cxAJ{f$MbvIlZmY1oJC6}W@OBDM+iJnMIf|S>ydjGFsml9_r@V|2lsa zPR#Zr6Zb?aXQG)M`B7Vds;>*xRZWR;EpS)Om+;l1y&Sm{nsS9Y9Rk+`9o_@7wPSDe z%M55+Xm8TjvHG_!bEshLQb)V^K` zAQ^3dX!ZY^jJA6ZB%|@cTT-!g{Aa|f&<8{FpJX&Nb-I6&(UN2SGZ{@^c2oluzd<;% z@IR8#7#3+h`2F8VMkA6&v(^rVd-u3KGo8}I0vf#IZ5g)`6$CBv&k_-*bSP{{Z@PZ+ zV*uu_Eq~{)NfQ5>zn-rz$bk3}Ir3-znZKq8W=~Z7_o6aw%l}hR8D;!ggTFaxIgHj< z21H38IgxL_hZxJkjAv|??9SB5N97ZTkS%Yt=LdRoQKW1#Ax657mv2r7J#O>F4PlFw z$5cCX8V4wA{Z~a9BFcSU3K|EO4nXszhd;ld3j1W8^` z5({K1*N0i9G)V0O%5-?fjaKL1b9P(iNy+nVHvM;JrUwU^xBitm<=L#Y?Ig?7YbO81 zw$#5aYu{w?cwd}6RNG&^ur+nee-oH=?{t6~UoiLX_$ZZa^-jTJ^W^K}JQWh;475L< zJrV-sG_h#CB;@29(naoOMCkkNaMVC{1&_^M(xzgr<@E4TCdCh&5mlh>xq&s-V0KNF z05|V2fYFx(hFhJOND^(YiS^n*jaa-lV-yP<+D}RdcYnxa+tX_m`UhIlCz+614XjMY zf2b{J2~}D!LnoR(lzAjKxrRn(GKoFb-t5s3>ZNI&SaqBVhV}L%!(D0(r$ANnZq=qh zSdNRv>Pp?lZ~LGU(YMQA(jE}i>#gb@1iqHTyO0HfSOW?J`*Y_% zhS(N$va@?2_5F;x)3+s*sn1$mu=x_qf1fv-^%CP*oi2B9WVf`*?7?Fp_H8?owGY3x zvTX|Wi6AuXl~N*CaF3J~Y>%kk_(OdG>OD=WK~mE!yqx8F@7eB3#Dr_?QC*%&; zb6XvZF(R~(!;`3|p5JF#JcxS_`(DNHtgiw0B zhAin?v1S_*>-5L0LiZFJ&DoITIcJ+VI}Vk4?+}KU)BW>OttEC}9RXE@{`?mbVaDom zMTSIs3MdC>CkGSEmBqt*&kL(!xmMw&c+1BuRcO@mO4tBm%t{liNl}F{#!+MSX7-tx zci-hJ@%1!#3=L1Tb&*lOJ0*cB8aU(o6%30Lc=ATOLUa~r?V%`qb@$Hb3Q$w#s%F+` zcH44&O_hU`FaLT}h&6Ek#k=X|PlPz3+ipfeJ^NwN{YeTMfg312!Q#c0sWQJI;+V?Vds?X9` z-Cnu-HmAk6Q_bK5m}BtF&fo;R2je%h1zmyXtJ4c;%7^Z^_+Iao7_WnmrxpdLB*(iK zqGO-GNL6bf=&9tgg4-9I-;!nvj!n&&aQxsFV&5kh@W%{Z(l6&qlv*#bwY2lXeL{Wt zWZhqnZw~@@KqyEv|1 z`Vt!6vJ^MoWp0WYAI!aYvC9g7hGNzRkgrr;w89^%v#DhQMzTtzv#Q<#lP6Q6vof&rL`#zm&on8=Z{Jp zS@zBt(?$OAzU^r1G$l5@e{kms*iM2pmBA(>s4}l48v(2BIfFk3V{%WnKx~LLu`#G5 z{%}dWJn={AX01Gt8jnL~cLTOMA9MyPZK%m#W5`*)UqQ+2+jy0H7d!< zn{o3922xH_$^R@DH@wbILSMnC$i*Fg323B_7n`Y z*mX$Z8BPPbpHrsWD#^N3gHIUybx4e4>Rg55R6)_Egi4Y=@NucPlPAR7#%NQye03Em zNh9mqG7TVv7O9z6;IZI?53bD2&YzjcLOL)UsHvq zV}f*`UjHtinzC}?_h3tRK87z}DkAv;8btoA-AZieP*^3c!mzBXR){)|pdf<#Wf0Zo zGcL{G!&fu*&cLfyhVja2UIRLk-La}zajqX5JXW<8 zU!Khkcoxv+NjVvXl|$wYV5Sw2(vEH~It|Eu-;KYNdB@yE8eK$Vxa+Z9(2o1{hCD9e za~ui^(>8a{E*;(x(S52_Mdm^}h<5+TK@j~CW-=@Jd_jy6kayPKF!9Z%@>-=CadVj; z1J}9R{G6=g8Q1;Xe|~b~a1h;fHS%e&P~Tpax6Pf+0uMLvNIGuH0{g60>$SCNtYx00 z(26{wdLtQFs*Ce)tIdUI4^L56`?O`3 zMOK~x=Rc5EmGoUAtD3)V*hgE~VVi>@ufV(hsyJwEoE$ZYFV zW?k3pKKp&`3v*0Lvb`UA@Ks)v)2ioQ7zyHI<+kN_=g-P@VSebv%IUmZy#X8gg!gG) zG@E+qeOSG;-}N4ul-$HoI05-*u}1~1(4**ZHLSLLwu3@E(w$c4qYWq49JRZ~F53rs zG~E{%=J$bXXc;SL66&g3i5d_zS{8ZyWcWNd1i4lpx7D3uZ$EtSTExv1*g>N2NJ^@B z2CwAiy&e>kvZ0#Hv9tYhWJgdzlI-l5(H>wphZX71?AQ(S-6L*^-ro^5)^bmCleiv1 z_WZbq=<;1(vsdB{Q#vy%lSACi(+gq&*84B_q$65dp$nH=9nZ@N+8?&~B571g*OM?D z_LTQ1;?Lx4{5GgCxKxn}BlP;`9+#;*4DVht!nS8Tj>iR)J12thKNt{} zgHvGK1v~K*H47OmtDvq7+v1O3XF<*!XDHHZEoPps@jN}PNXXwu3nAukQQ&!bL;LBi zHnONB(Y{f@vbJ@H&t!ZE=o_uQ2~X{J)a3mW6k^;JGt%h~^n0aa+Ke@m__$Ncj$W43gY6Tsqg06Q_TiGy zK0OFdzDB(o>7atNx*-vFh~6H^pr1sC1828Rg|!C{Jv@_mY+&6!RO2bPx<0|k6iWii z(2t(8m&U^|n|srn?5jUN@kY%O?#gV0Xa8#I6r8s8aAPy;T#{WP{yOaPdJOQ>&}!%hcPb%4qsOc7 zCX7#T@!FB>mo>hxi@sqhrOjd183^Vz>QIbLo6WVZWE*609YybzM61 zP20BF>7EE3xlpEj;p_H%@%wGi<9k&7`PBDGmj*>(9!k*Y8y(yHgeG$zus^h*`Q(s* zSFNF?8R;C`L|uO-blOgJ4?D}9(J48}p8eW)+KpaPV`>7k%k4d(o}&)6NP?k$ zh}9zth~KZj_fIq~RqVoHr=J?rPB{9LX{NBsMLS*$)|{6~ZGo?FnhW7p1g}Q1q?_P^ z8R09>m(Rd3nJh7#{9`hCalSekKKdtiir=I$q;mrNl~+-zuT;r^$dxmW>IhYTo4#cx zhF4dbv#y8{Js>)%hAxa6+O1t&Ben-??>AHwPPn+4>%FNodXBI_5^<^-oy$?J zUJ5$!Q^c%4y8CKu<#Ki+Tj6kApYtCGw5SOcaK32|UKEIMTR+R3wazPj#*=JNVTiUz z>g)v1w8b3nvzFL`eeTb#gXF!ff$mH~dsblx%z8PYA~e+`qeNn&XOoi54)~e*JuI`I zgS;r~i3JOYKFTT{;>UJ&Z>pLLi2N-38gU&MJ}y@-20p;#=(1tWpa&ytBSmfrXLs&G zp(KXX+@$aTMaj?*j>x`-SZ`Wnm;=9oe|p&0TStM~0UxC6fJQ4@NM5Wo^7!O2_Xm0E zgeKT1inBF?*X57!{o^KrdlYx^xkot_A?@@K^_Re3Faj42i3Bi$1#MW5rY_J9bx-g2 zRYScm$-M}Zmr*_MjbH(P6j-vP$`DlZoCzGN3{f zZeg+f7ayF z-t*InMvZE9+WGKJ%|eb8Y~Teid(ew-^HY0;fgKBGu8mcZ9QtX`m z(y-TS?WX$=KfSw4MX$Z8&a(;5y#s8)Qk$yb98o-Fxx|LF<39^3@=_?ie4`=&-2@{l zRN%*`6qu~U$0aWGu9H#~I@?=78KjdzYAgX8rRVMtj8sYv}49$v@z7j$IJ)!D#pRFLH~DlcDntEd-# z>uYWQ5z~Z~v-$Z(xqsNH$MGUrZH8B9GLJjPuddoT5aZ2`ccc2(%frq~*}{Y?X!``Z zKWXy{pAiO_Hu*Hjp~cl$UpDxRpR#}I0;N)F`>@Ui6YB$8b1WWT53PLqK2dcNkuvIE zmj@XIWm=wgd0*hgWqx?FiH6&Lxw%(r@X|D&$bD7TGLXH)$f0SA@W?W`(r~4na*TT5N=v zcfoh`@>?j@udl0%uecpPU?@&Z9R4QpIlpZlYG}#Uv+bidnnk|ZbU|=z4=eKX!Yx|Pmc zCjt2@m`Rzyx1}goyG*aML0e7PGJvP8txS`XO+yq!P^iLIvbij@_q12pf<_eji9do4 zOA#Nf{{g)dTSNEZBvkwzZm}7}h)*~NeLgFlUnwTvQum+qJNte)2qlD~AEmq{HKP#x zR4}Oh=n*$pcPneHoXXj`fh;bGaH3iYBkwy+82Lo$sxS*S=52!BMY$l91%92^>BH47 z19vYgc<*j!MlEN9KM( z9~8{o#MU1r>=uyShSpDu*@0Y|6g2BhaPuX|-Q~07C-U+X7vvlitVslg?H6Pn3@UQT zJ&{TH!=b-VJ&P`xrq?eXUds^A&z97oQ6dF>m18zom!s?)xtM zqJi^Q&T9kqB;FnMwAYyCH{J{T`hO;F+*&$PGBTltTt6}7(p}Ah*-_KWEJWFW0!7U# zkAHNGO2gt0K%xAs^s{d>Hmx)l)83bVH(32kK?+{&{&nkh1VNGx;w3aPjO}upr)s%S z7TSKR1%mUEY(2oOYoPVlN(?`n>A)oO1u^;^9@(x^kPp1V;R$hyN6CA>}I`jr% zeEw5mt3}cU*0zc;smI;ctYRy!3$J;>gHDyMFD0L*#IbM5x0qIE5wcYmBp*ew{Ij?B z`oh_b-0RSL+clbhqy@|d33NJ>c?#b0n<&@|1ZC-sbsqRCZS~Eoa+`hNBgV#a8(k=y zpxuoT%=)2dOl1%5rgi#<{%W!K@ttyv8d@!cPorA-dhYC4WGgj_-DOBC|5Y|g{1#M!UBa~NPLVjKHMd!atrXI7k&#I4eMe$xE{q)=(LKQs2blWF(f zkmO;X-?N_`+FL*ULcocgKx4{p)xRTT=_>UR9$JH6U3k+5B@Sae#EWlExiV}DP1=tg ze!$>kQ>E?d>lp+q0$pXNj0a*f84KdKBuzq;C=VxlmI7nWPL{v{d)k#U0m(ExyZlvw zYS@Pa8;@}E63bd9y)(~NMX68gD3vx8>;_4GA7~t~AQ^AKugInT4**s`slR6*#!-6G zI*_1=@DPvsF$r06_pTf9!`_IaAYV{rJEc5g)Ks&jxFA?qp`*}`$c4dHOWsP};#~pi zgO1L4BRRnv$%GPglUy6@zasaRB|(%K1oAH$fus;M$YT;BeKb%i(Q1)8RT{~*c^a-s zk_=RKk|xBC{*SDxp9|OF=#p%kPOImRtOg~l8n1r65Ngeb?Y2uiLjo}xSxWpOcv^cYEn#Ha$~ zN8`z-;_@O-)v+Fi#n*VSf!qYrNDL&bj82$9b*5*w9MzZ4K1pq)qRY|kISx#SGb z4qo@TawUnQ-y-Pe!O*6sqX+$vtD|44HQ4r!(nLP706QhHUye+~HM>G}BX}3ii13lj z6=g1m=G;vIwp!FmF?mKrA`20gjcV9>oGB9gS<;tRVfeSKZ{yxdm^K?vm+{vbzdd8W zT7#KwfaQv_R0U8X>+oI>^G%qlAuu!>4FfAOMHl?KVR>W-gTtgDA!xBl(NI1GK9AUp zBfS2paC)LETL#iB%$3)ROIXJv;L_;U?M{5ULxD9kTVRYEi!~%|Nvtu#yYZ$3OF0WM zR>jqbydz0D#z2<7ED39VbRzS5H?O8NQc>I%8(X{Da`!GyJlVt>y5JF(EQsS!1UL#t zBj8d~HPn$VQ~-PO-W1rFG=n{+?v)$c#i`KLpCBETdM0VIk+%=jq3op(Ep@yuG*yH+ zp!od=Q>O+VDfE4Ul&YT4!fJ*!zyDtNH^upTC@M5P7HKLCmlLPP%ZXE5*aM_g!RlmP zg4JnQ*9N}Q5yxT*|DuIl(+*taZbuQ)b_oQfpD}P^;fTPNNEgJZJg~xh5!YIE4cRVj1?5e@|r4l6V}IuXtcty%HlDLoEhn_sYlq1|q07R{fc zFw%*ANh`W;S7}FWMpnZb@i@T_Nif3*gW4LD^dxl4{SZYNEhrh#)&m=HJ>_ISoJU(l zy@J{C8g94YcCVV-J+5~WFj8R`is`%6=&$6nP4erW?PiF^0e)bi)`#>kReAg%uld}UKXa%zFiq7HkGV8@6 z4ynxqKu?T>^L+IJl;$@;(P16~Kt=Nk!k5q8D))L`rWQ&6b6tuq>s3kmO1t%JUEKAD zbyf81dR2mVG?k#B2}S$q6H%|*VsI@#3jK3kGFFzrh^H%FDm(hpdaW)a~Nl9IDDX4dq~PA~ABC>)*`^C>q*s1S;` z0zGkCD)U8XU@k!<2;wsixe)s}?Y}P~7w7NAp*@HX`qq%m(R|5>1m@+@o3+CW~kvTb+of|SJYJ)@eJe|eq=>ve%CKt5pnx6G$> zlw|99J9(brvc_%xvm-Ur4_vY`KJOA0UZxv(yVZIw4N{iKwuB%aCrB8Hz~Fx&hl35hc16R%%CEbwD` z!B^D17nd_hGeZ`&it-aFJ>I>$5h~K8I)-Zea22Abce2PGTKYmzqL`Sa#raxV7zcv( z-_n^uIm!F5LwTHe5BKE+@p4ms4Y@Z#nH7GMC=CICQilQ}RO_V>d#Pkwy%(_;X47ijbD zU42Fiq2kqxyQPXpn2FeDTUG=$4cqq6Y{l4)F`4z4&$SW~(l(1dt$VMuJEBA&)vutk z6=gi-ZTWg-g-g?7ODZE$yxm=EU~mb?MuSyTY)*|FR~E|yl_9Tqi9-xUqgwTxcs_galoL;X(xzdPk?<=CD8lPL?@S(ncyEj1!oQpo zH~w4fqYdr0m2y7xTk?AgI5FAzeoKCDy4v-NzvF3F7aHIY9QXySAF4WF{U z_FJrz_)Icz{g!0S@C`ez`i%IHXOv3zDPg2ggeLT9zDEi}c4wdFmZVR}p6}BHlH>{Q zzCNaXq}Zw_Lf^<6N_u0^`MxEWD(MTQVtq;O;OTR0I->2;joBypF=-jH?fN7+Ci$)I zslJ{#mAn;eyRRjj&E0>&Ed7hj5=&(DNmYhbrMwVXpNbcesw~wCm|_Z_d(p~L8q+6O zMS3dhJ=5Yh0j!yNp{3nrP}D+El_^fx0%|Dj&Mk(xf(G8Z3Ekm5>#Mht&9%(r>a9sL zuSs0$3lQbf$!W+W8_J8LQIWeg$;4-wr|aWTX>!o|24qnNzsMPSj*+ul&tq9(0R{p5DOj~`Lpv|SKFP1qz0;DH?}OzDN8c%KnU*H{`)r3CwE(|UfNGs_SXBZnfGJ={Q%((-gkka zMwgAuo%ks**5qsIPq=&;^dnNqglJX*6rq%c`vLIXfYHkkj?>u`6L5zk=P{Og{OY;GbJfs9AlhAhOdBUqd#*$zaMYE=7o!?R;S&sr z_TUZXaKP*{#gewv87#&;d=m*?2GawN)B$6JIetRV(<;M-ll94(DF#^ZFlg5rTeS+yM^vUZyo!bY>iaL_96VlJ7IUZ_8fRI;?z=qL(Dt%CxF8{2uV z=Hs#C9QAybMknLzv7!a_Pd@*03QYgX5%KMhJ#K$!6+7=qrS>9aORx+T#CKAs#_;;BXeV^mj6%G2NXR@Oo z6-io8@B{N8Hy8>Cbd$B7z{xqu98}yofx|9P!hd4Vs0lD%v+8;3dQ31A|52otiSOU1 zOdsY-is1xp%Ov%E^#`g~{RF#y6dlj#`;Cs@B1Z;hGfIe>6=Qs{cjal=6SOCy@>)rS z6&l&Sv%7a+Gc6?@N}>Xw5ApaYP4O-YwEPQ>O&8X+=PMa^o~omNnr}_eTp@nXNpVio;bFfjWQt;`+7R!Csl#=L* zN0yt#bR`z7sT$l(Xo*@nVrjAc0YxE9FzTGrz``F<>=lSAR)%xgB%=- z*pr~*o@6XSX3PD76(kjjpgxHwcr94mFh7y6^c)z6-2W+L&_t6JB*!FwSE|h7e?k$6 z$VMlD&h9gM%aXA0CjX;GSt1L8$##_Q3;j(@ZYD6#CY0jSiHPwQ{3!ektGYFafzLh* z9ZVl~(DIZtPc$=>wgxtoL(@jz-e4Lj;Qyv5*kk`rXUNt>*$F)U5ITsXGf6apXEJhl z;gj;8@-SmuTaWA^YCRJ}n7GOkfOle;akmmSTBZ6P&*YWJx#GK)ikBMYQd4GiFUV@{ zCcdPtK%RU_sye<(WZ`!XwCe?08IXAVM<*UX%hLlWrdtekd3kAB5o*Rgec-GU@-$3f zaz~ERjnp{}&Yej-K6hA6v}K$ZNlV1qHddL`4=4@7mJ5>*jy~2Zj=BR=7~jia*2CB# zO1@wm0Z-~|IyBjsr$OMlRGSTTp5kwEuvqljA{)m_{vQRU%a>2Bq)7Ts2tlgHtf%hp zVZ-poTQB)k^kai*Ag&YI6LK%w^INb*NdcHO5YEWgeMLe7uCMi&uS^EG^>25-`*U>p z+>0~#_WR52hnKrM9(;W=4o;`x$fGsf+2VPu_gUw7Za5_o9UCA<24L}IAgoeW0nI$< zH^6@N6ovwwVNnCXY!=905XK@w$Ci+=6>PhZ_-@~a#R0{;z@NAp`CN)_zi5XeO*l!0 z+Vi-yte)$C*1%0dB0=Mg2soq2Dd{VxExlNg^pRW=YRt~YsBa^ny|7 zg2;-d04Edy@Q8vzo_>5u{mfJks8*26CX$i)7~Dq&7kNJPAfX$VJh_Kr6=ukE(v!(- zJaUk^hMA(o#Q6kM=d@s!TaFuL4$SKrA|S}#k>k$dPYECiTg^$K6f{c}Dc(I;b^-3P z7vU%5mYIg7kGTeM$M;+C;u+1c$um-Vjxsf5gPsq2cE)A z5uKS@O0q-5bSKbbt664yrl{sc5{a>L`U&oNyi?!NCgiHbu>mZ6jsQ-5ov|I z!kOuBd>=AO?YHnji+GdaHwu&n@#w?kGZGj2O(M$X`x!KcxXE9#2^#L1V2)pC{yOy) z-*W{6YrZ4W5rBJUQW9I(*6ZW`8wIB6Wh)5-ekXp z^UhM>y4qs!y6k667E?eq*&$ALKy1*sk~T1xBwJw{WQ7H)sQe@T=Ic1f^S>(ORa9jO zFG|T3p$W{Dlg^f(_AQg?Gu+sU^M`%0-g-RT$Z(b5f5Iqx+Ghz*eRDUF{OW&2Spyf9NTd$@3m$(hB0T|j zNa@y8Lh|yx)*S?z4mt;S?@oD;#%=sg8DVCl`|jKBD#^(XpZQ2yicF*>sj656TY!Gp!B?Kp~aBfE9vYT@f7wBni*QH0iX{mTD0- zuRGiy90=jb*NzuUAx+4jN*c>JPCWx*VNBcFYx>jE2=lEkh`2?~j8ET^V2X@7rwi6(EV@XR)Egv4}LQh_{I6@-GtuU%6 z0>voFnAnl+SKwIui0s3FA~y7=1hpPLgPEAlhHc2$u-K9r@W{cHsYlzP>XUYJY}<2jqx|nJDaki_~)F(L$es z@kgje!)fGB)!IT<8|oAM5NZPfZ=*vl9LY-CZCYyq899O6i=fyh@T5A|l?@U!?kR`} zb%>AeC_)J$ln{g@HbkHCZ;Fg&MlVu-=m%RZtnv=3wS3fRbdP+Kq@$97=y(6CRnAu& zA8@+vqSAGTM^4phn~Jj)792Krr+i?klP>0M8{#~D-);Gi<-=tREF=nEl-9VG}s)^w3)Z?sWaGjaeTc4u3!j9XvP<+38_#5 zVT)|IlRln{(=m2?>)-G8-?^^4-yOW`Y`)9heeQh!?g;*Uw)t+h)7g1M{(THTo<92F zhj+7QoeqG_et^%xPv}qEYj=OcfbcG{-GA#~m;d%muy6OhcQCeo z>&|uyT?fjx8LVw&pxqO?$G8iFw(LvxAC2!NHlItD2p-vs&c-5>p|8L{^H7qc4>MdZ z1Ab+0bNj&8_Y`)_Kk{^PAUp6U*#VsLQw-I04)e|^tiQSAalYZ4@eNb~)#?H@9B|^{ zOGV~^bfQLjLc*n;qOrF3Aqj(z^w8xQo#3Q94UL$9wz|b4wkG09Oy9Sge@+h1(?$838anoDSLGyrG$LtHy7!I?wzMeVdS=tlN!( zKgYoE7dg1R39T1+1vVkT8Lky*8Si)|_L}rUAflm4zKkBOnX~vabq;L+# zUF8iok9;TWEBhCiPX^D{F8j94W-1&c_wOG7i>P}#G4*ZkAHj^})^+hbh8jRm;94_eKO+_3h^m5P#Cct(k zeKIntUNkwsV3If9X{Oa+C>mxu!VC#9AaIV89 zyWyVoKeW-`k)YF~`2N~Iqw4hHVezX@{x@h61+Jt2(5B{IhRTQb5gUxC@^%-^%R^R^&6hzn#a&A-^n<5o*9{qyFub|PCR!+V%ec0E%{q&LHp5U+AmwF9xsF)`#%`j~7T`>n!2wY&nn2B*I_YO>XV!^Ga> zSM8lUc$aOyOPqJ!yY{=myU&k1?`GQ%f8RlQh=?Ze=P?nEeoy}W1Nrv{{C5xj-31^J zlb)gY!kRcE(hH94us_s#lAVZt;OKk4GFHStf=tEPY5NTsQg?^}XoaCx0d6NVICx)# zpUB-XIOWVa)(TS-=gGyUwgUV z8o&s`xBIOFAfSVL{MWq$>0p%bL1bFidL#Ii4Pa}F4vp}Na+NLkU)&V`?Wnu*-4=Pa z-SUd#$Q9WZr8!@@#JZ~H@`mr6c5#QT0S4$(2@~`YS-ndp+Fnu#@si56mrOjp6jH*a zkR~swKz&J=-Aj7H3;X&d5$-%380=E-&fT8c(ZRiUg9G>7KI&#}``mgSV0&-?-EeKb z#I3>qYu$Hw)J|`6+rw=E$Eh-{g8}Rf>?tCGl|eh{yEjn1hi~3hRF0cVsi}>l`MW>; zu4OKy-~H}SfBGFfCc98;oxJY-S08_X+JDz3e*hm3Xb#d@EVR?9-`_^hox zBdwFgt3HN$d)~hL?%(%4`n9y5J?tjq$)JW`foize?0xu0>rJoMyX^G{Qth^eSMSc{ zz5RCwm-p`ATX@5&Lm+aQvbb?Vc!9^o*8ig#P9Qn*Mj%KLz`pIr1N?K)4HXUvH&#FK zwf&Wo4fdB%m1~8DA2lWyAB95}zZ^FT`>JzO=nnwsyxTI4xfT;}%gkjHjG)=qS!$nz z7?YlR%#(wY-bj+&32^O`KSsR?P~5bi4JHS^#W6M!W0(&%luxVF6+h$l$shS|GqPQCk+`=|knwID0pv6SRc=#z@YL#HqOda(&M z6d=J9FH5;TImfjEuk|fziQ#l;kApOO&eiHY)HC&i?>4vhGoeHc?jt4Q&Uj>dkvI6f zt3K~Z?{4nT?#F`V9b#f#>SxHVDj6Qj1;J496ZUd9?PEw>qfC|3i8_(mR8Rbkrhwwj zX}-YFEHwJJko=kF@?}x}q|+n}M%SzR!T99)0b1H&nQP+L*=hfRa>m`iggLt=`S-9t zXx$OFl-u972P|T*FXHtcw0r~+7gB3MSAuZ1c>z!who}ARVz}rHEn2FqO@0Fz-YDkR z|0S11{u#;}xp(hARqpN$qhvTk(*fEsRj>Jf@*AU?ibHyX+TFnBcz6rX8N969^5jJz zd5;ydW;>w=bs+}m5+I;*ag~SU3vY6T*U1%5NA+KIcGOq70ko*f+-|<>NqgLmV5aUJ z07ps{)mhdou0;~j$5~;RGOEGgmw?$H(df6XxQ`xN@1vKFe~pS6)-;Tx8b7XZ--F-v z=YbJ2Jqr9^Lzi02G9SrjH}n@f94S9A@)K( z$IDPo=82F1v3Jma;i^CVO!-0XR>OkfLHGWS%tOrcQTR-k%i>Jjz3ZMw;dta&@09){ zoIB=nB$0*I?)y`Q-H*g5vs(WZ>QObtXoqyPdF~8t(9uOs8*-kgf-QGc6hveeCL(5K zM5aQ7VMzNE9x9BeH&ZQ?8M>bX_s?Sb(Ug*Yp-b%6r+X2_(^=M)(GoI$gu!-GA0q;H zFBnzoPI8}gZP0GFktQ+cFCHPRb>OS*bpxLnd*7%}dRGLts1Qzb9 zlZYwSpj&P1ijM&(Nwa*=`V}iBtltO=HIcjyk0X#&&dE*9OdEIQh9?q=qT>d)decJA z5h*1#b!@e}BJd>ZnAeLp`hC2T$GWBjOyDt-H^tQSV^N$08R9W4J^z2PYQKcOV34@E zL1J*-%Zrh1nnD$Mw3#20lmULo8r0jNVJSMju)J1s2iH=!c;w2&H(^_iB|~On=9T2E zIip#;G%PPK-~TZH5#juFGD|lZN}G2s?t@tR-TRV07{en22y6X#>K;`OMQ9Cfq{j+Y zE0ocYc}Udxm*=-#~V>mKV1nmZ>Ku9O!v+xIanEL|eB+I600q93~Y5Ab*8Z(NB;6arox(56=#tzj*uX&(B`N zp%lMHbd)W}9+4>K^ec%^5clyIV5cF^en>(@(cS^ffebxQqu08qF6v*fZgi)aOCs4~ z3>6IC4pf@m#iHtR@=eTal#syi-)GC6|$S;C5mqJBg5kWFtrbtw1iwKgLA_#M~ihy$_B1p(jR1iTT z&N%pyDuSf@5nXhq2ofnG2%$+Jf&~45i6AiR1rda5W2r;Df)-l?LM3a{`SK09FTN4o zY*+47tow+Nz0Skm?<(YNtjLrXN@lKZ>&Yz5Ca0VmAqq0QQ;hjdhS~U>@h9k6irPFf zb%Zy~$pY>Erj!XjF37IfQQZ;U z1ai5Jl=a|t{I~2H|LfT}Ov8*To;@Ke&_U*Ix-znS_d=5a7#yQHC_fN>l-%$4>Gj-{ zdC(*6g~KXdfRG}s%s5BS1fYQoeuoECLjATB871l`u+4|WH~FFXg4z?!=EUWD()MpW_H&;JnE!8HSwy^r%cF&}Fg}6RBcdbV{wFQ;@6C zhHgxNp=G(0o9e<{KT~gTO@S302>J27RnqC=ITGis_lj`ox72D|2f#ClN>~svw!h(Y ziboFV13P$F}22b6AKyr}U7Vo(?&5U{B3()$^t$L25e~ zn3_fvM1dyv9bN%>#(uzKIB$j@S@=Qxnlp^!9Q|mUv$XOoRinP2kkeG*=c&5vZTrm> z2v`z~UCxyz-C;&1+t;09*ip%Xdv*s=*8bOlpCEngUWlYgn^C$c5-4@`gZ1qRTB(3G zh(i@tDI-KQMnT}nAe2l=gQqEvN2wm8E)dC$&U#NobdWO6i5f=%y{@E_a*zXlAbzBl z`-FUW_D4$cOi5TdORsDymf)H2n=)={%ZXAF@kESS+j%t(gOsoy2s|2$h zt(ju%rF*goRBrlm`7r&#=GjiGOIS4Joro&DspRf#bz7eT;0_fyM#na1GNkFIMo!_} zK030LU@y>9JXF+AFzIaWU643p7O(acb`wiq{)VqNx&%p3Fu)0VifaqwyW`&z;1TiM z_YV(excM<;&qb~%;Ln8up6pX)EBix#D*feYJRQyvOben_N=`|7NSPQ0dH;obN<^oj zWqVsfmxf&uyp+cVJ(n>-cTg4W^-@Mjp0b7D4*eu+|1&rp`w8O#JU`XBgFe^OPNf11 z`4Txas@^K%dm<7V0B@gAG+uU6T6V(APGs3G37*Ue-l#ic%IUOwlrtG~imsf02b#pB zZjvpDafcfW<$zZmw8^|GPOURU~RKrAPM4arrJ$`HxtP)QWekX8f@BFF0d?!#|3G<9L#0(GaGAoP4r zBU*;j7&1;{IG59iTzA@^GEM`iP0?^j_wO-ML20K$I;UEs@Hd~Sm+XkVD5rpDIt8q+ zOrmlDkhWtaZ7iLQTp|-~b)#Em*X5*6?VC!IkU3Muh>6E_ z4}7Ir*0F+VF9ODo!!qJI?7!CLk!xxT1Y2=2;xYGmIOmLiWAWrk01?xCOM;e38yyjm zFfg1MMx8t)k<=56q>iE2ll(pA(Trrs^N2X%ha{9|q{daJVLs6vtJR{xqVC>JCB_r! zswUjC-nHMg_le6Hiw%k)?{YpmtpVQX2?m{mePHc?y=%8fFQ-7)-qTp~7sLF{MUcPm zM&i7uM@qaO_oMEV#(;#qz+=;U{xnBlC_h#shRdKO&+yI`o65KtG&|1S3Ay+pPR3dP zap(?3`KRs_-FRl6PnRaK%FloSfD>D;m08&`DbUHP<+T8r#BL&EfVZAmV?2yXBZtkA z!|?kD)Io0V{eIi?f6ed?r28TB{5!<(^5D@U&p)J3@4(Z~_;h!7cMpJH(Z`?R@u$Y0 zWg&l-H>%grr>v$%NDunMpFM__+{c7gy1!ymE^^jn>yR^!=(5OPs&d5d)NvPu0m6j; z9Albp%&mqmXK{pX(XYefXP>7ua_1q`3vJ+>voG*JqsoLdvec+FCgX;ZtJ&@j^B%2h z-K{My<)CVGOUbxJ@+@yr!H75(z9%;?6bS9WN{WViK_*mPIZGVosJXoabz=z#l0l0h zhwU=qtUXDNw?;{Dlx=n%F}zv_e%&GuWRVL(t7Bh5p_>5J9=aZhOM!<)FdDJ(#OTbv zImAK%mMgM(!GDBK&ftLF8fTr{K+h1=bz)>2DjA?>PQrqSF~cE$BaN7@khO&dOseM+ zG>GC&LAq&3usS7%$kvv6qhPD$9pp6ej-~{9x!{fv{5|$YtLa&$rtfLteq`zcHVZvA zMtwe^C~g;^?&Dn61U(0VvIr^y6pwVLFBTc>y;{*3MsE)yF`c3|k|4&fgw-*vQ$WL) z6rlN{b6hl!>E+Mo4N0%>|N1uTlZ+W^BxUBJz+xQtSgJOfT`&}ZTov`cmj zYSl(tBoP+2g#{7ekcbBc^mBz2SJIf*RuIFMOGf6x;nwI@^0Yoo)F0KiBY?VNhm3Wz~9UXB_eO3;DFc zJR?Uyb6tAKIT!pk8jZ`O9CNRnefF?RHtQ=_Hpm6> zJMzRYROdqxBt;x!4eO)X_$b2I_Y!m1y6`X1x~VIAOAl8Hf|xku=yzO(E78&rG#Qdw z8}$9WCI&4+!CD8)HbbhTYI!z-@Qtt^FywqZ*;9r|m(7~?lyVwkV0?kUm;(He)+F{Y z1#+-t5(8ri;dH6IN{>_rbNfx+`=%sy!)LTd!QyKj9){^plhF)4DWQMVB^-tlmJ-&$ z0Na$}$#j^28A}B84O5#Tc8Bzu!QnQ%PQw4pq9k-%?Je?dlfDBPjFo^RZ}{<$Um80E zQK?XnfQWl#n+PJylXHP3rZfwZcT6~wC4?{QVH})B@o@o9;pw-t@g=eWFj{fdhMh#!pn=InGuatVR& zFFUm`?rF7cZP5yMZ58e=SYa;LW!1VeA1QONaBtQ!{?U=+a?V$=F_ z@#F-uYcuB1n2o6x46`-LYGRxEKF|tbqhgp?1!lCN4m~wUPH|iK!_kEi@eZn5ThG#HbY+@CR$ru-Qaa%lkL7o(f z(lxg}{%<|p-lF{9gS|)FCjYm+x4ql&e>cVdQHPxGVL9L)DRP0@d%_F4T5={}A*5Pj z;yb6l^AY~r;hPO!E^A5^O3G>!~>n1;E7BZsoau&${e3Sbi>Noe!zM+ zNHIhS#j}<}RHg7_-`O~AORfO88GJ0#a$*VcKur_nN$SLqxp0)^bcCHiE;s8+kyc@6 zPX`|l2>Zo$EBV*XxJ+<(e9{W;X=Jum9Kp%pW;o(i=E z_uzps;V*$9WeRxidZWC|CKWF!`V|1^*^U=_j7LAe{+sdy^s z@ScByV{AH(j!&{J@)lXad1F}|Br>LRHiDz>1cr%ayvhF1dEdm!^(J*tr30}rdc0XS zkQ^s9W6XVl#r>q<5Z-8 ztKd?stu7u#GQA2O#oFdkgUNWbi4M6MIpCC;orEy!CXM;#mhgWn|4#|q`o(~1{(o<8 zyTJeNJbKjVe;fY4;r|={|0?+ZGFpDNqm%JcxZQei;yk_;>x>g^yZpGnnhANLu_KXUC%a&ZUQG#l?RH52U zC1+u>2|PiB?9oz%7HVn{*qRk*!EtRsqsssJGCvmi?`&tyB4DNbxBYN?XV;Yfc6WCg z`R@kgzcuOA-@@+rWk=Ca!vpR28@eei&uou4aj1A_yrT5$4JBU{@AOyPx?FgsJ$k8F z>urziPr13g^qv0dF`U0Y;PGpJtUdjSu>!V-wr3Vp)Hk*l<Z{@lJd7H_FLr&+s0s z_TU-gCAp@pIC{?ncWQsEJ$)kC<>w>g4dK*{XPn#DA2Sid_R#iBhR~~gtG#4$ZEAa{ zJu_92Mq{(Js@Tl1o~&izc!{n4OQS7^H_z$E;6JmjHEJt`mhPQTfk4zztq4`q2G(+s34)71UjDN z%qSwsls$)zJEj=95VRK!o$Gu1&;J2sawy_hgHmluE|7N(OJ#M zS2_F_##O;UG7(l3(^4GMg^)~F!7^3ROietIbvi^foDEe)M^_J93nR7^;tE!F22bq< zss>H$sk(4J(v+QC7)RP9VMbLf4X=F($#yA7P^qy`aqPFWgTE@&)V2CQEO?`88VvWR*H05 ziFLXt+Ucrzrv~EI;kKi^0In-wDbTYZRyLT64C4wTsEnO9Y(!;$h$?#%KUMiZA45gQ zurP`$4pLcR$1*KPGhGPJbR|Sn6;pjcxq8OF@e3A@8YmkIpT*HOQ8IK$73imP@J|=- zK)QMl(n1$Xrl1V@g|J=;UjFbj#+gs^ohlpH-@TUpkOlyan5jJza&gIH zqJA*mamA4Sn5o~a4=uGYt-k(Hv5lnq8_j-Zz9Qy8^C7oi8qcZq)%sAFwDq^&2PT?T zx11+2OkVbOf?%(n8x)?swRkJ=7qu=u>TN7zN#$6W_^N#KI*udDU|pFbO;EH{(aR&X z(8O6@+)0JB*~YS0@0?;;sMqG5vb;Zs#CpvR9cyx#&}hZ&^qG(}?shv(m}L5jy(ZRY z>NifFb(;9o_1e?r!Fe?X_4QbDjf4Nn&AH1PMJ1-|wTiCI?x?U^S7CTuzctU~9k0op zw~{GL!Fm0*uvKkLf^lD~k%^lfl*?141`+LQRy~A^qR8@=5e>z*rRu9SQWd1GE4EUt z+rm?jD6hlBv$T0cV7pHH$ns_gDzmR{hiFvlU#$L*QqfHss%DK^z-s;f!_H12{`Z5O z-G`0-uZjQN#Q$#Me_v(%Z#dVU7BitMN=}iqsPM*?<3f3@#4A>w@)Q!{1y`BM9E}=; z2y;wwA+IOyGYz$v>S)t;Y{}Y5%SOU>Ev&O%lOB=C2;xmzzHmsMCP%Fj7HOaMQ4iFO zkTlPG4}&=a6FfN!oqH^y@I6d_JPt5R(wG_nfM#G3tqwL?1MMMxE(%ZZBT}VTq?1=s z$29NOib!%P2eV7j{@znd-8(22%Ke2=TvxLC36w+&t6Jy5oivIW1ceN@O^V_m8Dyt<=KbKH~%xQ~vN#S6fp)RFx5@3XVj9vH?Xv`IQAEf0RJ17|EJ+_lf>#?uM1GM{J*nf z@&DO-)cF53@n4(xuj`Nh3gSik6tb!t}5)L2E@Lv=39 z;Jc0e;HJ+1Fg?Ag{GYp>Jxl)2=KQ~wPowc~H2zrQ!T0|9aPGxi8$2)M#erBJ0l6_J$@=WO)AbSNyYhPWY^Rd^A%*$)K~EB z%9>f&n6}iI#*Vs*6qpVF$N0aS$^Y4Txbw)8|FiM`xR#GNx-7X6`RQe54OCA&rtLS5 z#zY=(--JAD9bOo-KBqdXidU)aUEv;CEugBZDqh)(iF`u#xBNzw{VlnYWPhbzKAI0Vt7hyR7cZN^YmCbY=Q&wf!NRf?pxGMd~_h++VR zEh#thI^09Cw$xT#T3w$FJ*663VM__MWov_aGcxc47E=?Nkk#nhQq+Gsg^0wSuX=WNH>I#31Lj*s{;$^Ejgm2ZM)W z6)dAoUcxF}I6U$Pz{-p`c{vAl;pkzgv0x#~PClQ_GV4i;6{S@*rIxB_U=vvn&lQx< zW7qT=QnQM*ybc>0N^x63O9{0_Yhzk7GUN-CQu8h4mCT`1Fx5(?B}Mf{^%yi*-pmb^ z&u1^qdeUM=X;n>jl(b6h#jWM^)=L`Jnq(fvP)uaq%1c>V4xUQ*)KWliKo2Q|1fix_>bE~{}15*I}QJT`}qG|JOAHoqpxEB-$?w&&d%=M zqoV%*LF4~*z5Cw`=ch@7G>D#hJln{HEneUpeL+B_BOZG&FEJn3MSfd6!^LENy_PvL zx+ZSxffpB$x0NuCiwWF?(2#W{ZV_gZR-!$sA?+$ctP;$!jub1U86!MqeVI`&T`lkF zqMI7MbFS=Gl)nmrK^GIi%sS?YO;Yxe(Mv0ZA4>#OR@m|;uc_p>iAcpztTkmMQ?Mz< zdtE@X(JH8vN0@ZMLeQGxMRVX+oc}iy|7CCcp(XyygGT>O4$35|2_fyV_5<37NQ+McFuXEdn7`&i|TD z;x>U%WkM!?%_+v9)Pg5L`g~+7wy{AAo`zW<#5@+GpdF3WI-*f|yETdf3Oux1Nf+FX zF9x`+gL_1ArD+XD3sg3$tO=TW8z!ge%OkWw!lJ1fC^|73xLQ{>x1w6r07}f0z*Ys@ z${)k?)K#iudkJ+v7rECShw*WC;(UkORMtGSRIBY!SlY!pdnO7Tm|K(R&1Q2jaT4TE(fhN@dg<=BK}4HEShwot&zRNbn}Tpg2&^m6i&hVRtuhB1!n zD>;rz+!(q!f!1559UqH1x3)|mhy|;#3{Xi*&lSv+1JeNiv`>Sni{E@8nx8$?R~Cjt zB-imB0;qK7Jvo%N?p#3O{5|x>^UOJ-mtp48Jqc=%z1%#{@lV6#f4%&_^#5G10-&1z z-+s9Ls3`wGZ1jI$8UJ6Gxv$HpFTrLDn)hZJ4x=Mx!I1X}Z;tm~E2Fwr7J5z0s*Rx{ z@tTWVlxJfVFrcpWTrIFs7GBSr$K0BjFqp+KDX_E_zWdf4uGaWJ*Q@{SZ0}n1zYYDr zPWumrux^;4-?;tvX7s+} zyCnjM+zT$;23B7eoc_g2o!RkKuFF?MX7!p0;gjV30t-{wC~fC*oCd_AYT8j%*+wzD zUd8NhRUO+XVfjdWMM~F&w5{vcvnp>5&FZb>|87YC_W)x(7xaIP{r`ITzgnzaEe@?p zxn}TOI%BXH-}R;G@aAzbEAmjcT~Bw@+PPXfx!<<^2QUAS8+vO_0Z>W*cXsw36#YMU zcANPBU#|TpO9G^iEXe*e645~V4hNyPO~?(Nx0B~&;f00Q&)I@}5{$XMaC@^W?{8KRqT{3)SDfxrLv-c&Zgveq;7Sw{oazj3?fat~Klz zB#WeV(8;9{M_g-4o%6}e83wUKNlIu8w?6Hbfz|=^A=cjwS~5f{9UmE!RU6!5F>)tU z6k@-siu@P`BhkzW`%zUuMu?$hWN?_uVssa>G86Wrs=(tU3CbN>qhn5KTpu6 zt(Um9ZG@xMA&8A=GB8L4dFTl3P&;&0;s*XCr&>*j87`JVV1tz>g@s`!O%C~ufT(;) z%t_SnAf!!PKtGq;FZO(%rp(p8EdN7vjbEQcU!fBJxKi5cJKkKuwN`_+Sy z`iT(DPGbT2yd32qkLhIP4=AP0DQRBMG4_w1k*57&S@0*jfs0@leG!Flo~ZD>m2%7S z)g)WLa=Kz6tf|qL!IpXoD%~wMWO>1R#GkBAB#G(qXiLyHV!H|*-x755nb35(WK$yQ z-MdiGJ^OpGQE{CEgP$eovcgA`ny6KP;O|Y%?h+iW0$=)VQMP(Syo|)9BEnRERFKE3 z7L2|~QA`fcV0X3=PY8HA{`ImaDeBwXK z$Z#w!WSML!X7ba)Q7Oo-)eVu0#OF_vpE_iqg(UW-U!_s^%xNo;W>WT3{(6~ROv|^n z66w}b;(g${Fqggk!Z4999ReSBcI%Fu=h`9hkmiV>)5JLD{XkLkXj9sbq6b0?Xjl z2G|3kr0WZ8QzAZ`ZTyU?EL%)KvVDypxyBUYPgn7UiV95i(7D{6T@TmH^^-#L!iHfX zI8}769i}wvir~G`S7ReqxW~bg4>T(2LfA_XlSUMgh*YdBKtU`a$?B6{5w_AOIB1?o zuT&_ZjOrb4=P1$pK!dz&oiIg$qa~U|c1DAz&{AayadOcj4}({2(kYajuOd@!ZPenF zk9F0Z?rDIzn73cmm1-$CZPnVXqVGOaH7oj!ldu=;+5G{UzI-#yBw2w)QNvx$>ry?# zeWb?0=0MNuSU*JLP;&)qzpMjs77bo@|CO?(6Yy)+sAq0Zx5*y8!nuH(i z2|lP6%bx=MIp>KefZ@zhxirEkJ^U*UW)bFV#;BM z=b)Yu1D*|*Mf8C;uE^V18nsJu(si&`wKws zZ6ySH2Z6e4zyS;#J_AZ=w?NjHe}GqGIk5GW59l2!gn<5-LqI?v8W7H?7vM@dG*`k4S&xx8?;CO-)HT=bgTCW(Fh{eykY@zFk zV5)o2z3zIw(|M|Uq{Z(ae6Q2{j??`*vUADN=6==fI&u&HRQLA#PP9wfk@2@^!NJ9Fi=8swYg&3b-^iw%{HB-J4Nr81 zJCCSy7Lqm%pVr`uU3YTc&nvG2#Wth#BDn!~o*0GUSL_RG96BK;pkPDF3Rw?V71I`+ zOHKh7SaUTbI`-fWf*6%jUGs)1@6+bRPr=#zNMrA;20O&4wiq8=;01wH;0!JSH+V=&P z*FL?zI`ZFiJJc_S`$W0LK4pI%DBI>7!Gs7CHkF;3+%l1FSgf7GXC3}+O7EX*+vE0L2`Co_s z$FC0Ee?ma-#)hlSWg<0XuZRX>u?H-@(;)w)1(&S(yX1eJI*Tl#jRC=YuYJk;AJ_l$ z)bIZtdu04y>i9npK&1u|;NhWjim0P}(nm2mjhy z=o6?@AU^X6WMT|C8q9f!z6Z1(fR)Kix!>7ufNh(`GJx(y2yC(N0IyreH)`rFbFhyR z31Q)DSLyWC8`_=Sq38xAANgX1LqzSMoMy`4?1_pi`Uw$4Y|I4Z^#(33ccxT+MXcZx zhy2(-#Z_|q%peds`#^55w}wy{h45~NxU;w7tS+lYO(Zqw+gr1!8wZl*vQKyvWUpNh zh&EG~ADM@yI_9`_t+c%q>uvz+0B8f{UANx0xBPm*3$tehFj;|^IJ-yZT>S@K7un*G zsk|vVM&o#a#r?dP{r&=(%Bd!=ys^|%Fo>m}R;9+_T&oqxtn zK;0fz&g|Qz>?WUAT+&E|d;Im`qwf|1*+{fJo#*$hy`f$Uk%3;^O+z1tuX`pFZ(9zB zfR`8Z5nx=l0xWd^j2UNAJg+s|?~SDc_})l4!W_f$V81aKkjq}&)N}o2)IeqzC2IvxS{W{U#EVlu+Lqk zV?K_ZHBiPmIs?^$!EMK&ZLrHffb%8q&|Tn8M8^+u=^6Es_Ys`{0{GsGj6PS;1@4pU z)odk(-*DyiPoVX%KZ{Vd6)bJT{rUk+h2#tZWr;x66zUjoMh?C3`tJ3s(`W{S9rpni zV~EZ5%I8N2zH$;35!TU8zpbS&G`$N?QQ|I#q=C@BqQf7*VN-hrg-Lq4u^C$`8s31) zhYt|cT_)zcOjg}y8sD4`y%nVnK9F(0`wTe4aJZ0i!t|!Y z+7HoX@4QN0FQ)1cCQ-saGceL>_<>pFltUbI3zVR#eKh%d_`W)A3+9E%{Bg|gR?DyW zh#|rK`;Ph#r+wMZiC%g$TQYJr<5Yd|Tk&1%YAVg3RLxFv#IINIZl4 zoi&_A>f-4ONKAzN#p|cg|2##=1ML8Z+N2$n(Sa6XJn)TydgPM_I@{MQt9!N)Yi<%s zBJq2^g>MhfXFp+zZ>9-S5P-KnrnqRPp0hHMa*2vYF4!yr}6*V@reZDaLXMv^{_ZYmtvB5@kDY^ z=J?Aiu2SEl%_@(CJ>i$MtiwXCBVNn?%pd4uZAG%ewNMw^uaGdY zib${ZP*&#lV)5A@!Qi$fJ223r{_Ikl-WZI)t3$^4IS4nB9gBHrxNca79JJg- zO#0#Tf&MAuuG;iST}+fTi`c^peL5r<`EL_hF%?Wcc|t&+$FsFbS5=aU{KqDJeOCoS zy%3_cekxLyA7r6(cvXy|KX1{R?QJ11K92AH@+hBGFMu zcQzkw5$h*1Fs|%M&<`ugO|93IRTqmolxb#6K=u9ga zEh`7QY{i679Mhfb*@eNyv!?3JU&ITwJXNzm@|jO&^qWaH*h}JJYvUrP5OSne1hgAJ z*NvXr4KtLIX-F6sbZBhNcvSQhr6W2~Odti@wDaE!Lx^bb+zHyml?YSLtCc zEX`!@O(gbBr7jz2+XMoZ?fwBEA4uMW=L^9@uN`2N0XH5Ev@{vT0CVs4@#Vq2OE_=Q zTG}EHI-Hfnu2e-m+FN{@ds3EuoTrjSd`p7r{bG!7ySCecK%E0G-~=&27f=G%{rAi9 z0jR4I2E0gw>2d+|Oz?lGA`^BRAF%#|*SdL0oP?JU5`*cGqV>{|0n< z;Ysqo;Q<4mS%A;fz)!L`vq+p;_oky83Z7QQ^LlvQ=Rp`FB*U0{DZRBuRg*g>xr$No zQL8&vu_C7(ZvKESTkHls+}Ik-zr)eN9g>?4OKeMZX-0->m3VWyQ>L}-h8PZoaqh&h zTtaFqe{G3ptUnEY|2o~&>qlT2be&r`mD+mN5>GSIWa_=!C?h2z{!qw_fhl$T(;Sg) z5efH#jwH^eh}Ej3Jgw)*C$&+&O>X9dNr)}#z7nYdo++XILDI{#S%!Vvp!6*)7TT{+ zATolDc^n&LmBRpObgZSa3o1Y#w6KEtTeV9Rp@TfplFo-i&*$M!Kb|2_!Lw(S@V<8%F(5oY_$$JN8qXQ_b7*oim7tBq~S-SgAzq4g>1`A5R)KN6T z9_GqL%$d9@qPf8eL+y+ex0M zt^ngKm~wr{+RFE<{Bpo&dKhGq2X0HoZZVIs68e49NHJU8w#P;f1&erkWj*D^0y4MlW;$YVQx0h%pDy%c{_=_)BT4p;8Sw-ozEsC{A6`Suyr2C;Dcms{Fx4KBw1{8KPwW zZ>gZ77xw~uZ@aHE+gH~Qq&Yp`Wghn~0KlJq8pu+b4d66iVbTo9hyk56pIF0zGeM@! zchtu72=sUZ@g7ERCi{yZJt(>}CkgTj(9p)m{n&nS)50QKl$({uBNwQjv#{B)E0v4i zOnjX#T=7V4XeYgthgJ{IzT!#S?7U>+;H>ITI$@3Ua%)0(%z<8R$dvUvQmubSd~feK zwfYUve-iQ5i2)W@E;wHS-wR-D0F;jPQeZZ;_$SV&4lGmTQaAPHg8w$wA6v0lnWh#M|p6M)lG?UhmO9&!CHn4rDZ*-r~diFBX*tf!3;Y6 zv%UCWM!NgnXxBFn&S-iAI*J@D@%{|j0PXxQH>til8+-AWY~kdiSoEo?d|6JIu^V4a zK522JQSPp>r8i=nP|zZJaH`j#GAa}2GUCFz$Y4_$Clqq;Y?60gGYl)QKN7{(2z(~u z2VL^DtB?z!pY1G)-*KNYv{SbC+4sR!?0V8Yuuh}P zPau(un0_)(8F=2BoIczIQaY!&L(cMA6!?eS#cX9->BX?*Z(6A><%y)uf4Ol}f}_fO z8>A@nlBDKbP-72Ht*UH*_Y|pttRof^qMq*$M>c@1jhQ^fK}N07C;Zb{tqxI~j#*qj z2R!z9pxi&v^oMXe298&ei>3*a)mjCWN^7b-mAaEMO7JA;cuZ-`*(~cjH#}*-yA$}b z;%H20M~{x0-hz!FJns6hF16>6uk06iX-_%$Ke}p?vvc|~k@hp&JVy(&Sh6b@g%gsA zTmMK_AFIvKJc~9DUc(d1ouGV%Du|ZOtE!;l)2|m#dXT$C=Q$y74Kj8vn&QWw$3@$t zx>BJuHsk_Wz`$ZPRQW#8*5>6E^#bH<3<8&92LQetLMcnUEWgo6O4ak`zD7pwP~Y#* z#>2P$FZSee7Ged3>}-Z&(+IQmWCFjNQdVB&4+9Eh5mMfEqKsDKxoObTbkcGs>R~d{;<^8Nqf63C=uOwQvr&tOtLhIG$)N4~>XKDGe z*P$y|nCLg`^B+3iRxXXnsg?v!bimWgQ+}(|A=j!1LnYh)N!e}Nd%0ee@!^v1b+zit zt&y=J)9cL-C~gLvh=lisHN}_AUxIS#~47%{6!MmT7JcQ5brJ&7s|WhUBwj(0k4%f6{3RBCPxpi0JM zL~HLrJk5^EG-WZUbhIdtTd-e@E7ZsoU6!vIfrq&+jm`E>g$Rk)EF4Yvg+kjz5X0|r za(ZB|`f7ge6P*W{k{&buR_$$56Rk({J;$i-b0Uw+S54%@W8}hFw57ca&=_4c!M<@x z#Ufl=Wl^XYS?rG8_fKD%_2+6f{yE;>K3tm<(%w$vO{2^`PW=xji6U)(Q!{$)g}v-M z*H%+N`gn)?2CruJ(|hBW9IQb_X@l>@mWxOwk$+A7%Ll7$6o`VxJYn`xCm!Y=Xy z1e4#^P!1xLZ=V{t80;<3BYb~&rdb{e@8NmnaHPb~-P4S+SmB}6AQMOJ(j{MM>=!r1 z296fvp?nTr+HLyAE%%VRN`v4jlvNSbmZMXi8bceK>1_pEzJE>{pFu7>kgZt2>$aWk zU2+GkZhY6g1J)hRMV8Ki32GMV!VuG=lyo$dYJ?IPxspT}+E8i6a@1KkCf)H^@jk;s zT*(pfAWHuVh(4&QN7HewQb!Q|nI>`0Lt6R=ufn$|#`{S9Xv$=QnZvUyZ@0yNYx~u6 z?j!AXm&H~>N%JXg2XQjD{;}B(+%&v8JIu|EUI`jgfQ{=AsYk8ONoxuRG5do+i z%@kc+6uw)+hma|*ThQ@l!B>x~rXO$e4sJ#Vj#}`YngkxXjnX++@vSYC>7K^4hzKN>k_SZwNn=Ch6sanl&+g z#+&7Ay8n8KazTOrU8blO;N9_^udNpKx|@&R8TReyq1S^W(EX`bX5h&LoqrgM`wplo z0>(ahiJ37>1R|^Z%QICWKnxp4W=D0)5AWxmOKhtLfZL7(ku2b`Xb=Jt`cH5H9}o@M zTA~L$NQ9UMfz1tPaBtlfP_}*S=nEanJ>=}modw|^;OI&muhn5^ycM1OHoy(^zLQMv z3{`K_+%c%m3(#R-jCOelQ>ojYb7_OCkU2L>T?{?6-=CbUng-S1|= zxe(Ji@E+}>QvfKWu|Xvcctu1{&0~#PwKuoZ<=C*m$n7?a+6e}Exx+{OW-4ez5VP{I z7QTXM=4xrZN@^(ms3W7Q9A>Z*MXn@-FJqQ1B-e)tjtq9?_d*G?Mr;{0v+_8^!_Kd> zM2V`wv$z6(~%mAf=EBW)rV;wYH`uRfxMU4tisT99^1MZR+hrBl@0uBm)SE@;8 zQrK^qdjB+qkx;4c8@sT@z=)2v3A$F|AgUkTS&w+}&Q{MY(sCjls!*M74!V>oeB~@J z^fyjIQmH*x-lTM!5k7F1_0Bv_x6_dKL|QNz%_Qq^7;W6x*MU=`;8HgYy=JkkDF^fE zQRSqOvc*4*6A7os2W;=jCN)Btf4vLh;%WUxSx*}E=5kw`ezJNF{CtnQxNG`OUS+5{xVhyxi1dW6^7Kz>}f7F z${GCwoXIz{bbU&Ft?0k)Zf?P&9p4T`ok@FrAz`X(IzN_ilaKz?*+|Yf-Hqc!xj@KGb{ z$~&u6f1@aMo+EQ(V>Xdf$nRsg1g@%7qrNDPr&bWQOh56_j^xt-W=}TpcV5pQZ`%mr zlwjz%`Yq)rnMw5JyzQ2oTs^%|WN6jmPaMoJS{aNk4mE~thWH*|cLlDfZoY@pir87l zqcP7b&7v`hhl@=-Uud3?iv7qBQC)Qe$6eB>qNFQrts6x(hcteCU9qL7v_2vqSq^B0 zQo-yG76`lzVJ#MNV&FKKyA-)>?*4FQ zDbf9Ru~AtGHj(Nqa3HQf-*hAYlTj+8$n~9*VANIpdll@>@|D^PSu>x?ZwYNHF+Z=1 zSvzQSdB;>Gt`#5$sy%m^2O*;Ep_3U_Vec{yXr;s1`cj?8LTEjbg&f%yQ&&CcT;XXDwz(|WD9 zMAY#*VVc~DuxEPK5Yi7${EizN{)f!o6L?8;{>F_Pg^|C4(rsTNB$Ss~&7a()Of5&ek9?!7eBpehFiJ$OC7bG0bgTmlXD8HV{jsiQ!8<6SX4le9fxdbM zXv;fQP4;vn9vf>r^@mPLxcsg3QmmJ-OFn_-$8Y9TF4EcFqY9CRyi-g9A83N6c|`qB zVEw9%^~BXwPs^_hLj19tWUusn#hJoj57KyW6qCJ1@I6R6fFtK~kyinMwMmG(4ynzx zD{h{j+4Xy}R9UYfyB9@7LuG$r)kUSvET=oCun*%$6c?^m)VW-5_DM!mmAzv&T<(?P6XSIed z$d+5Mu^Vll=dD&`CojLJPKD;nTXkl0_(ke){TDhBrm9IRfuT78a}X@=P$ZnBcM^|8 zUGtHR80y>Jg(W9a<5`8#upJ+>hK$F;OVl8$(%j_d(*c76zt%p!z|fY2ald5i<4pZc z7`DkRm`~c1iN8sGFXoElyU+G8F>(H8* zClOl{IOzw$KCy5*fw~B0SR;1V9Jy7d#}@?g6F{%~CY(?Ty9E|~Sx5$W5dab=TiWvsP@Bq zNoD`aEA7S8T#*-90?H+pHvb2(Gz!e6=fFZYTew+FKT+ClS=Dl^Q_fPVh>p_^!N^ZS zhtdXACQGx=yN&sF_db6XyL6-`0|+*fOYc6mX>?XU=cPG9m8St-4`a{3W2>iEHW*NS zuhAcRSAwv7yPp(yyQC?YLBY}c(OQ*xGEj3ssw87)Ih4^~1Qwy@8ouNr^x&Xmv`rzU zD~(?Ji^;>GSL;gcmUA!Eqze5goZ)O$J8a93*GZhQEZ^SwH5&Tgl0*xG z+o74QaXHspt|~HzMM@+RtjH5iXp_Q{ZdHpjzO&wSp4UFmun(*h6(;`#v>~p~plo0$ z39!k5`JM}DdN^iOHI|exfEVYue}EGpObG+ z9d(szMONj(@S@&AI%f$a`LrZk+H+x!&*NXb#thq=!aa zo|s`7Zcl5O0r(JSH;wX#K--kjuYl5#{n7uv8d5+rr5TkC@k?u<4QpZqz;zD_U= zP&P5ijH|z~Fn;Z1T3d57$!6m4*2w%2%(#jkwvQPxD- z6>N>p|MChvwWfc^xCq+clAU7NTe|XcWmB>YxUc6`6_yTxs{Mhs0g&Tm=ab22U`IGl z8a!nG?*4>)_W>?1_+Lz_-gH((QlK!}l@NN>|6SVS4{ z$`e=u()wUZ|APMMy-!r@1_Xe*0~!xOm{f>l89oW|B56aw^3SMX`9bu|Uv>W32|_F> z)pX_SB2#`K@lcbo3%<;+hI;PuQupN+Vf2_|WrQOZdd}*9ODb+VuRu3_=B$|NdKET@ zk;(DnuM+yrmM@kr)pqJDokwDrc$XCsLyN8S5`D{*3e)%jJJE3w40n-2&M{AA$;MBv z?C*)GbT%#i-vqe~YEnyT*&WqWN+sqig=(vcwd<3+Dq@Bk;r`7uNuzuQw>hFMV@)X0 z9yK?sgHsx?rHgY32*!hn^-zj*S#XWZ|6VunsPwbK7TVpGI_~)YqB3XmQG~_ZFJZ(W z+_usM|4{2|HSO}l+3^Z?d73)rnNcEfwTYw1HyLG_PZwLXeVmaITo^%^2^TS&w?D-( zSk&#ZJNv>%dFeg5bE+_fpVfMoKFm95Vn!jS>y?D8Kjk*=fUg@gR{UhGSCMMPmS?T^ z^}=G(`N^T8zfpHpThXqw(m3PmzU^1PicG~%FVG=1F8Af@=dK4g%eXSm?2vf>muC(F z^|9L_?XWp}`MTgbbDiCUwcJ3d>z0}NzhUaLI0XgOqeb!lt3B|=)Etb#QYu1lR)1SI zoA2<@8Vgonh`-{F5*FDZxKu`nA=?EF?azSSIh`Ku{ZOvXv7`lPY0DF~vEdJmUWzU>*9cyQBpgZkWu1t$Fxj9&T0+T4ar zZq5tARDRx>$@rgUnDOB=@!V`u28va@WZ@=W8Xq+g*td1}nD|3#4_)2RE?@2VV}gq% zhDs**Tt3x#X&uDP!h-Oqj|M^?W80jJ$c*sJ&~bdKq@}ZLuHaODadM-oB}22*k84Yi z(iF}`6lutPu#3~TqQ5UMq&quku!6~SEHjy*IxYw+u`4$;)MP&&GZ2tO+P6LXWp!yW zvA?8}LmqDuf6YL}?m?C1OPLY#qPCdsie@|DaxQVHiMo#4!Z+p!4&(F!zc<318Us3= zfp}_&g$?NP_Xy|P_#7}L~|T~|zm zwuVUbqEZwpLdSWrE__8M&^3&zI+DI`Cv@=6ON8x5>PP7MFCgIm3#f>R$IL9h{pFuY z^7+U{@9$J2#U)ZfUCBFT^!Y&JwvcJf<7PxaadD5hozf)YXAWs57{mj~+x+g*b`Gq# z9*Hb60xT44ONdv|2>p*^haII5A=Q6+Fa$Qn*k<+ihz$8Kugy=I^*a|!YE#-i=}4D z{X9Ly4;MX}?)6^>_boe%CSo?VbE|l6YJv~{SLlK-R1yk$i2{=s=OU?3@mwRI)F<== zzz{bh{m1p(<*_+ z_=yuU)bBuu)G!@^o1^?kbmwwn76s==Z{nCqF!;!LL^tUB&v%O@J0={9@)8EL@JB~} zF)G>ACDEXo@H{r@A&ApoJO@;QbjR$D%D{|4Gw}i@@D&yK-u#EiJIU`SZLAE%N7LxW`&_<{E>x(ycY}jlw`1_}hdq(t7Yhy)SfGJ0vG^5DHm+nTJjJ2@y#Dy$FR6c)idkvJl?sDiw`Yr|KcbJXqCkk|R97PP`QVQg)e8-; zZYD}yHzNiWqLfd*>yPUdz2u!(6(xScdb9hwl?TbrEcyn6;rG~2i}G+HO?nK2m@C=D zB`|s&;<^sXw8Ltr1ztDOYXjz<;%p z$?F#J3DDX7)(E-00o5Muaegnm-a?Kw!K-X{BOjm7WT*|JUBmBi-n2e9sVP0TjhN}+ z+*?`Tz$q{N#go0+!`YqlOe#!#zY&L=S6MoVI7EMtSElY<&t3)+czfME+d>zw(SG?3 za2`*oJA6;S-m>gYOS!YNegnDKlzn^u;7uI>UJ#HC>et0Ut|ws3278#shl1;7mKwXX zK(phhpakz>TfI~tVt5UKouNLuUhz0t{Rk0HMV*7rz;2=g8H1#LxCu!*B?L1|2gxPZ z4T9&PN{}1v@BBG(v>Bi)3EE$><8yC<`+lU6At&kWwR_Wm6@`)bO(!D0dzX&H$=?^^DA?hWg0U&&-V69{BEx zfrr`P?e2UpQR5p6pZ_E_z4)TXvXWlOOWG>iU@otmfCD;UAel8;MbfZ?a|4^p6 z3+ddXcDVj{^3*|XvmWJTxWPT0PLts?X)G+o>HG3h0)wL8oIojo>ZjmVTTeZ*q-)WI zDO|>WJ^)qrz!4wy8829o2}dbf0iE`VtHoHYl!|~mUw*am99lSl1~!kn!S(BGpt{s? z$`g~Q<9KKn_8!XHYXdbpRvKDkwbc~k-Hg1l{aHBf`4d+4+q2ZQVY0m$mQ&p|#h7Us ztvQly36`X6d|j<1Y__QPoNZcp#Xv^xY}U;%ld<%*)o|q?jIX<|Obo z^$f}xJmM6d104SK*)!;CuxM;_7}~3i-pbgsC8y0}*Bd6klh#%^CAeE#qbZ7ZNIyTj zSwVA)NhR6&;RsaEqD=`pbaa*cE}D$nJ?~*Wm^|(4=HbsZtkkOT=*rjF6L#l9TbVxB z&&p|Il2dDP?_?NIv@)9*xMTU*5Aw9vhTrRjofxH;&C3E<40>RAm4G$oSKt9X8<=_q zvbm3&|D?PC<=*OUP?P_hDVgS&q)EQ)f2!ugF!UfvSMZ>1()oA8pM#WcXig_)Hf8ml zn>#33SN6b>J6FUAb)zq_OcH8%u98 z)}I~)KiB@MY1TAO!Hcv=D|CvL_{<(f28OQJVNb>yKUVo}==4R?FZgTB+38EGREej& zB@vj9)Hdc@*IA09)xOT$%G+oprV=Z4nczz4gm@y~Ylm=X4G6(KEWH;2vwHhI!#*i_ z61LYNO@ad`_ zcvo0C5Xaw_YJ2eiRz!)gP`LuHT8@~lIw(KN$t4oT3pya56jK5P0g~`v;2xS1>2qRh@2SQ6n{EktFQL6N8)zy&!A`((G?7wul_& zbP*Q_#JJ!piW4VC^Xj1iym$&l(Z3XT&hrvtsd`+bDQG#fe+d;7i6}I_XD3!OF)2xF z(4f!E`3p`3H}$OzDUzgPFw&VDMpXU!b%o{+%RR~3j%X~2*)RWOd73527q>(wZINB@ zfx%Z>tdD%l(WP9x69R2yBT0Yfy&}<*RI7+9OlO9DmT13U3q8rfG zTw)s--Yi+?WBQ8hLR`wWiyD2sbEgBOq97z}y^{a45%YXY+nuYQGEk>6#t~nMdg&3u^cIPDImwKvT-6NO zr&YpflVHVg`9#9Rto3y9R1SDrjM5(_hpM?|e2p>i$gTQA41X2%kg@m`b$Ib5C#+fV zu0qI|jn+eXWbOvoBCSlfy?daMWVfX!oki&%n@Yll*l>~S@q=11(@1XNHpz@XNlLe{ z%449gBCflq8_oGiZ?Tuge|IB69$je1{I3+oN0q4g1yAMkgs+ zx6|*Rt?Yh|%IF76t<+6Mk!mOC^4P{SV+^P|OCHCCA-SkvLG~{MjVs81?o?z!Q+G4FZ3#uOP@7ReLl5ZNK{8QA=Nqlnd5Qoex&yND(L|2^Z zROIwkiTCV?>r{G$a2Y5bZDC7cOc;d|qS}VjsS1tY3Plz-(L=h(GUWCxK0yl6HzZ2! zCzU-;sWBG@yqP}F1=2>iwp6}P*zR9X*BCqm4nfzFkC`byHocvZi5ln0`ZadbRy^tBkH3TEW;Q@}qhi247mrzK+2B4;7CHI0|NCUt zAxrS%QbJNaU4iPH*~vjSr%^eiS6~)sd-NK60gR_kfJxx!KOjBp2>5}4LXc9y5Ha_4 zZr<%)lz2guiHq@@+nZuOc7TvnU^Yx#M0RZB(sadSAsB)zb)P>t*;(@5Kyzhk0` z^yDVvNEVyXW+0{SPqNp3rk0&g(R=(Y2H*G%JEm~9d44in-@O$-!&8eZ@&b9#f=&QF z-$Pg216d-N=TH52F`M(^H}gmQ#g819Hj#?=%CeR-9+{T?&#APQWjD-DUwZhbqXk4E zp%M2IA5WTblZe$KdK?UP zlQXT?ZTF+Axy3A-1Vk;~k5+}|#HO0T%l_)aTemD8) zO#T(Gf7lmvXP4Ur)u1sCf94&r5${?p_*ULg`WctNT5al$-X9e3yf1koU z+6oajV4WYYjv=d{f^%!kXv<)cn2J2cP9bcG`w(jznQ^&}_4by*njBsH`8CDK?* z@G;cH2ee7!pz^;}Wl+WWVi-w%yy(f$GHi)s#6x5B8fZ^wbmOiJ*AQXE;ou zL4sIisbKl*M%OzPDdu)@=oIABG}#}rExKp7R<9MAvyghzp16cE=Z0Qyt^GUfDrFZv!tvS-9 zE&SIa^gp)abtI|ip+TH^cKX%03sDEeHZxEz21Ylc!ZBeS9`~dmaDkecTSe2uu{Mcz z(PX9jp7Rf%^vB-y_qeLZ{I>VfK>q}QOMYRm)3p0}2lO2GMLwJV|7tAz|2obSe^T!r ze1w2?d^D@llnYidSX=We1zf@f-66exo{+irxy$?K_qg4(ZtA8${g=y&i_7Gj-pg}y zWnLNJ@ecfGkeWRpTegAjMhV?|>2+O@L?u9-5f;^@i3VXY9=$1glE_XE?YygC;-cRz zz@hLF8$}HfeAMk#LzC;vzFz{+Ak$;^$%0%fmVs?5d8V8aYXbOEQu!q(edr@KpNBb# zi&+ns*X(b3{W6O)~NUk=`oJ%H&2r= zeUA7KCkRqJHEh(ENKV1ZL^LEjZu(2a~?JN+LlTw9IR`U?|eZPqdS(*gl^Y6XT5Po)l; zd`^2QQljkPaJ9o39vT%P>no>YUznm`KJ}p>+iKD0 z%HL!ONlCQC+ez%yamOy3j`5qMN;={S{(hnAw!kW-3S;2JGCXLWFG9(}oWtLTWa*6fT-aR!Jj2G$}=rvwb!B{BN!ZNP>>-0;#bxi7e z`(8eT3aD&S+6)N7TylY+>BqHM_Z^b%_}U-=qP9^l4s&Tk@92}SE<@Uy3g<=fP&cJW zW3kYYUG4K=2KS?z|Hj!{1;-I=-I`(sOBPv-7K6nsi=1Ba6qpR>~wX#h(qqxWP-8#JEACjitRQ(U2l<4@`N#};j;91amrrf zYWivvoM#ihYiPV$LksD?CKK$~!c`d#Pt$4HAbTTw86<PW8>#V&AWA+5>BhJD(iy?LLQoJa%Pjj)gJ_dT$}MnLn3MO*Pd;#%44QZE!ih? z2UZN2kw#^d*sk=Txay8aAGKLD;F(l8ZL_5LE8X@p=-gb;P|0c}iLy>g>uB#|n2)3c z=(xJ*b@K_W7BNvKS2L8*PiHsL8I4FQf1()iWDy9|=1ZxjgIQh zG|An_Jo8t4F#fiCz^e)~j2rdNggvdvw;aHyTP+^KU!3N&9k%dk{k}-e$0VCyiG8+0 zD1M-u09#*^e{wr|2gzVfHhqO)-^wNe;lhplsxndHVv89ItLX)v2{5f;gFN$q9gDBbu z!?MHVoBA|kwzFR)h_$mBU3R-WcdC;gjlJT_0ecIzo((CjM|jp7^Y)Ndq%j9ZKcHJ@ zGxBA}f6zAyeMDbxKR#$kcv!2wQ3)vgJ4Fs_DQuRt+tfkeC;qdL2QKv6^r24Yqaf)I zWW{f@+3>|vT;7O~9X=Jg{c7006qqUr205R~5}pDsYjcJ`9j>EIXTMh`oG8}=Wo*vhi_n`nD z;AVTb%N%jB8U?(i-*1hq?X2$~w4fFInI7D!ig5=eOPJtZ%0dh(od;=D?nS?0p(?gR ztS{|4g_~aXeFOddU5VM2Wg(`x%B0pSx`)p?&j^;bx0N$A@Ot{w zy<4-&WMRLNd`+9mf`M~V!cgV$q(+C^b&G7?1~xgwsKFv=2dTY-XAO2oZ@XChTupH~ zgt3IEFN@SMS>G*ISyz)DLU$snH0h{t={XjHpQ=0ssBPo9`5wL-r?dwTqn~aKL=nqr*x|JQ-c& zWQCvyq6_48`{1kw4@-U*8I;=b(d8L;7KKOP%YeVv<<%o}HY8VMU>Ax=TI zuwLAgIwbFERLHtn%wAnB6nZT!Ap&LCcQcONtDNPg=T^%6Vo_G-lG&7OW5MoPfE(<%4^7 zkV+?WJF2I~g=S_491QlvcNfktqLYWtdGW1VJ=f%kS~z;v87z;N@qucOp|`UZX$$go z{&P2{hc-U0O>PU}2L9=gc#WA=nZq2bOG(QZ^1BVEb_ugi&M>1bRhhpCkZ zMBK(K(uD~enq4B~WvqCv@Y^dJ)+&_E6*VxYW>#t#ry6)zyXejOD}39sgDfc0&Ad#k zKaFn8)?2ePXi>q2memfY@LaQk%s;@bS{Qg!%L%9>$yZu5lJ0`LJ#qq@i>g_k?DA&p z-$m=soR~?p2ZHTtmWtu z&>o{CRD69hNo~WsLSh80YxlkL&Lf1xzH>B{;^yY7B`C_9NxC>&%lv4hJ5S@`R{)X zpDmAISc8*P%^_7ph|+*hjiv3gvT7wcWcu#(4bT}BNV}ObeQ#s@2AnRpj@=wNzE@EV z<-U3bRQifVP?uCbOs2Y*j@6Tz@wWEsO!xa zFxLAA<`|C>21b<3JGK$~p5kF|%wWVke+pu`39{Xw67M%msi!+TB#tGoJ!lC2yX8)| z9ucgc7mXH{^5W!_@RP%jc)gk#xO#o`(*|wjRQ)dW`>Y-NTz-C)`S=Orq?&#%$OURR zK*}rfP2p0Yc|t~Njw7~QRUMD@O*6fTuK4@ zG>GX!fY)0a#p~9EEzfIL*Ql*2{&%B* zY{SA375kt3{`rT>6^10vjrauGNKlJEw14|**(eqHIe@H3Ai6PLx44c|j{UrbW&m?> zASyv%`n;p0SAGoCV)n9S1VFy{EzNW_0IgF5E5IT(aCP7ONl-Nx0uQUe=_N3W?8mlt zyAib)TYy~x@FW5)ic1^^!0$VtCKr@qgA}E}pU_Vrx#9Mf8}ojrI@>h>+FEn@yyKq- zJ9@(1>yrSClMuzz0RQHL?KA-T1P<==&iz_YVH$gMWKHrWLZ4&IJ1QK{` zNdYCHD{HXeQ#HU9;W^J+?i{djRQ>Q@qT$MxAo0nS5(X?brwx>J zva^xrD%O$ENo%&_mBr%HpV1TWA2JP-7xIqUWyB1nQqBTUWn3Eh&HtwgmV|26Y7_8 zR2fBZ)vWe9qv0;T*8J|Rxso)dSk}5+cSvqW$}N(FXnZQM;WX7SyIHXpm|oP!vdwTK zQAw-=bzeN8+5n6%K-wR$`72=UtwZVkYI8Am4InxP3Ai+{i}+i?8=NjOEN>t^anaQV zFxvO&Hd9^4b6iu{rJHJYv#*J1O{iH4*jq2txPj#Tl&kK5$`R1#-tn9e|L?o}B(TTt zb^&MxeZU6s(LWL$0h%>H2?IzQBax;Gou(YeB-*Q`(W|>ry7$kcWgGbTsRc86oBWIx z3w^?k?JN~f)Ho?thWsSVUD?J@&Ci4%!VkZr?Yv6hitEL` zUqm($+w`LxeUD69=Lz|6MQHmtMN}1Su{@9i<>CSfHR-_GuE68AUo5c2^H!r=LIm-V z_5f(t`&+)`K1w}yb#%~U0}l%C0@6IMJv~+T^RO*rV;0J1E&f(pxKD8kte7UdFa*(| zy!P>M19fNnekDNLRL%)7W&*DKAENKz!_Rzd1-NVg#U0aHu&eJeLPL zzlM!iS=t68cCax%8bgD2(DvL0?!^r-h6z@31KfW2<$<_BfWZq;mHx(y_HkFAfgUxQ zb?n5bD{I3+V*&L0P{v=O2+dmR$!mUoPIy2iA$! zp7kaA9xFh<24w$PG`P{91YPmFnFIQTpAVCZ!3>b|Vc+oxWb6WI*mL$N7i!gYHOxP^ zEDvaxMg^L-Utm9thZ4Y6kB&aY$JPz-a0`U&0obOGa(?;|pw3-m1XN*hH}B721M^y- zE#g0u;HL0f4OvOpPr&rUZ{P;t`TSTq0Nj~CxfK1t*|r)w;75)0u;ngvmw|O>k22@( zh|0O^{Pv&x>8robe&(O7qI@5yYxSect=4)4Ao!?R0(t9}BUx1PI#rnEkx0mc4u6tr}oNe-ii$mk1RD#Qj`6~-o(&IkwJZ4^lCIynMTXA zT<=hAMZZabFIw~GxI;luawdj@<;@4fdu}_EtdKPS&5w-C466dlLR@ppgg_{sA}mHT z_g=k*Apvnsy`7l3UbaC`4{dR)pA#_0bA0!oa|aAe{00yFA9FQxQh!n2e^3I^t>9{A z4#^x@6G>oFRLfuXmqv(jhEx_LzW0&9lp2&#W~X>;-7NH#RIJ_%{ixoCtd(Y-mG%`~uY1W$}5*zVw z5cKQ}QH@^eRj)!5t}u0$%yIYQ9bvTaNVP_$uA+Xf1)_bw8ut^BqM-6QAwawqy&Gi@ zN}`#DZI*36ZHN=0iQ{Nr@5tjcWqJ-QPEeoo)B8x-_19#jvayt|Te=V36>Er-c@P+b za8EP5LIZ4^e?v_oL>t77RxpyxL_GTFZK!)~_X)8t^r#`pZ;ZdIqx*YTBPU*krjp#M zH-lU8?FnO`I>fg(<0QMEjj^xfos%Wt{RPNsdU7p|zi1c7%n|>&U9`@;&Vq?kNG~oO zu=K`=4(N13?w0SNvhsRm!7H=I`Vx{ZrQJRw_|zaR=i3MphjO z$D$VL>QIG}1DUMJbjK(l#G$1liT|C$9}r54I4TO38m<$5_hKdn9!I*kQFC)#)S2FV zRb%*#AH`k-RbK)GB*gbv1-V8`zp5?3`xwuA3sa+oMrO35Y<$BpqG8rpi%Md8RcPHa zc^%k4JT!_AR?^xya;F3nhW)wQihPzbaFC|2LDl`GB4%9czo@!*SAwo02Sy!^E+m+s z{cErdd7QM*B7 zS`UzC0}rRSN2$8u6zZsxCAsATLRefisC^Mh-%jrWv2ZFl*J#_@P{+nqeL!v=Fx#GQ zQTR%YcDEM2)B4r|99Yo=Ab#7eUNJ$Tr~-a2A2b-_7WFg5#WuJfMk&O5 zuEhUmk%sx%OS}KugF^m>TTk+csG_`U5(Z;Tdpe|qA~ZPLoJZdDZL_MsoLo-nY;E~r zX*#NgVOS%2L?biE-Us9-{k}E%*xB}J!T((3d`2Br4FO$#wZ?Zq+gt7u9>6j8;&(}{ zIO*+36jr3snyeL$ceij?c%I;Dn0#ML#UU0EW~I2-Or^R0Yw*nFo=L1J@iM%oT2*&s zk!K;>?5xnrFiXi#%B6`N`*gM8@R!Bch{{I>#@!g@nUJ@Wi@Jg_sk`mdn)_4dm2FgBpGVn+{K1t#@0OPAx}WX#)_&|5ldb7f z#~e<%eLDDZrZEh_7ZoO&?Bn)<^{P;M)|N;RRcCbSLMfQJ z_0wRz`+3&hS+4r~)Ti51`+Y064H){*AM|N+uM!8Xt+ssTr>%boST_TVserwQ2awHc zHf(&h1cb}8AAi~MS)3TE<=137HzB@sWAKV%38KE~dNcj7?`k=^1-1e};zF|j1Bwp6 zpc`pE_+RMd2 z9yQDevD8%i63&evAtCzKz*(^kYt*f?`$&0G4brBuis-ik8V1mz^*QVNTR-H0E5?yx zg(}QaC`~Cu1vvvkj%?`9wmzz4KE`@$Br~c42j%ERd4J0K{|_nJo&A4EiuSLCRE=!* zp%0HB4DRhTA%|#$%SFkRT+8=tWfgs+kuaE>b66)sW9+f+ec6rD6;Q%feY?SEtYs@*xxnP zK%FLzPn=a{@e^mom4EHy?6NpY;%BfC;64l}jCnMA@ZKh_nS5uYe-KSy+0{+Q77?{K z@O5vumi(TcLhy{xH-=@+%7CiDUH%?mNha)y*ZXPk?KBPQN&V>Rtn(06l`&JPXb+7h;t+ZTW&7u`; z)d=yP($ERpFMI1OFFl5Nt4WBQE(2nZVnHdisY23l!D<;3L!G`r=;T7C`q^>q9GkG&I9t@bB zMfl1;N9IGDmK<1-nlO#tv_uT+Eyq`#@9Ak{SuEMd$|VX#K(73x&HHoMe~&yx9Oc@7 z1$u`_GdgZP@I_m3-4pJBE{tX16*~L{bL(@jAyiU&yg=#if4OY6+Z6S{eA-RieozMX zGu6yvBcv^3j zwhHJ86+z5@oeK&6Znl&U=d+RMrE=^OVwS_jOa-eaF~&YNr-yUIYG57Meo~J13 zE#W>Szs)Ndg-~xHeb<}k$)xu+^SK^!?q$DeDWQ+-q*Ku@nh+P(w*88sAW$i-Ot?@sD(iGYH6 zdBIoJRW8JT!XcX5c~hklGszP2vJ3e=70$cueO(+VMP=KjpkyE0=2c8pYPAD@!5HC< zLaOQ7)vOg7TGQgkcjkNl11NZ5tn?0+EMvT_#;u<5!%)p!b1g8L~nxH7#&EQ`3G zF6bZ%Wr`~7lNC+g@O;f!Dw69IQi`j|K*601rYOYt&Kvq4NKC(UVD4v4+%MqUkaJM+ z_26g>oFiUgcAS*>#{?DbmHg8j_QKVFxPFIr`!31u@^d-IJYx#RP?MGVJ{hNEE>@As%KXY~rkP_-wz%-- z4RY|BapSzej$kE0Abrk-mV=c(0O{G&wNkD9N_%olJf;X`P}C_{_{5o7s2Q- zg~Jrzxy$Q5-)k4a%ISz0>@)ZoC>PShOQ26HAgH#DQ^u>BdoqbXX)8Mg<;PzEX-pUv zj;=rQZ()C8g~DsU+CncW=V33~9%pK$FBPodMxBCN^qemJyrHZl>QJVA9tq91k2*%f zx|~*1Uw7xj&-?9^vWu6o=oq$W?XbtwMaQ)i$rN&#ck1gN_8@758k%9;F=uA^#0ezk zvtp}~*a|n6dklyopej%K+VsK6;5T_^(UQ^zKTTld6+$tU1^rQQj5p5BHmPY05n{jL zZft)L0!aye7O8*Y30YS;wg|j9S6xk&4}8dlJNIQRB7{~GEee9PFB(!9p&=5}bww10 ziYI<=D0}H`J3%K$c~g$uBi_uC1 zq`ogk=qJdB-vSZ7e_5S_xzO!{5&Lc8slz{A71cV*`0dE)@w+Ty6|&$zRiqdt%QfTV z9B_a3#DlhbHhBBN2k$fp-wLIWJgh+Sj4!mM{epxIlM)U=TGZ2tq-5?cD30J5umwVa zuFPhm#O%!Vze|uLOX9mF-FBWc#?{ZVmbLHcVJWBS1L3qvv_}Rua z>6QknKE^Sgbv$4F!PiYoljvdI|Ak&E!<>l*PExbDL5rIvs*Qt%stwbgzf2}76L|Xc z^J}ktCJkLSj{z-uK#gvKg_r3b6#pDO{BwW70X2hSwb8g!x#F{;D017V>P|jeN6j6M z#b}UTq~Kt7ixp(F3;$JJkLidQ)|Jzb;^mudUtIaiVFM#`n~Bx0cCK0BN9TkKuBcO* z+}TBan%w*x(&A0u`b-cfGj}S#O=jMdX|b$JTDXC-HUI^vqcJwH2|pk=3TREc5%?eX zzy4$DI7IO}u(YgW{nu=G|C52>Z~rnUY(zpHP#G zIr%?7uD0VmDS5uvWjJziV`W^aIYpQ5@ZCS`R^1W|@8Ea$YDx6gr^-WSWrFz+Eh zYN8|MmIQgHl9V6Nda|?pEyZ1o3E;f0S(Co>2TJ;CzeevBA^JbOceS*srvi`7uK0l8 z@w;Efxu3&i7q48$IiHE+HIAaVn0l7O)%pn3t+(A1#a3~Xm8hy&KqKoUE~ffhJM?E)CDu8D0$eM5ajZ>Uvx zoULrCD#YXQq0J_J<><3@-31QCVbfu-i_2Nj3U`JJOvVNsa|;TZ>Y^)u&(vp9Uc!gD zS64RRVZZhQEKUKKgS^;BH3yHUgFi8AT3>+CXr89%x5u@?-ElX~bHDNgv)1N}gG`fD ziwMmCaI*#1w1o_9HAB;kxxc&YoAOHl>Y88Y;Kvp&(9m`9F7Px3>i*Scm zTTvkqv!MSucit#WnQ}vOX$25hf^xID{cmB1cg{h%O`lo^Fa>IE0Jwp;xAh#r+~>`& z1|NWa>uLjRJ01m0)m8C-I-WHyAMb$(HDUOwfeUXb{#9eon==ZSZG%)WGeN>@=pd)K2trgnswtt3mH11grs z202jAOXq&Udq}d&Mcer1DIrFz6q1sY8ir(;fN%0%9WQ(BGge=cYS}(Bos;Wia|Mo0tub$?EG3VMmAGp{A=}pxGJa529kst92T`WW4 z5_P<>A5I4eyn%_4M|T60((m*x>YjIai?jEFPvr7QG86meXH|lc7ORYn(Cj*u{U@7Y zFQ+q2Nfc9Xj^DtK%rNgIS|Ai`e|!!4LiwoI-Ig|@sr7IM z@UgM&VbYDmRd1ZqdkR*r@w7VskSYDUF#S`hl#+I35)}G7U49Z5vPy?JjDYLjH#7Qm zTJu)ARXXxszH>mI-X%8Q_9pdRY11r7_!)Jsxej8bn|+98Hu7pz=5%>8IqOuMMYUx4 zUxkuO{mS-1F(u0ZMbmuvs|y2#(L50qB=wv#3x>WE^lPIpbE?2ack;X;H9tal&v}qwJ!NA0vmW#sz_-$@|Fh8z9FM*8FmYv@jHysmIkHE-iO`K@&`cTD8EXm(J^ly4`m~uT`xgtd9 zeI7`qSQvqDf;DPtFZcqfyM9qk+Oh-#Ln3QOu zqhy<@7}`tPaj!DMUp4$w-{4z1ip(#8Zp*y4j*#xSSo(Pa@}q=A7y=7TlSPFIQ{%H%#pltjca7*q9#r*)t^HU~x5 zL71`FEZ8|@iriN`rq-_LfT@Vw;EOj5FK@EASLk;_=(pZ^^1G$OjQ<2Ljp|7Kha{i; zCJt>Nr8QU`D%bL0mkkG@cI11MmPrKz2UFv%#xJIjpXt8xAS(`%R51x42)6%@PsK4c=RVQ0Rb zueFt)AKayW8-4d9sl%V+S7T8)WJ4?>XVzl(L}47#=0urK?dtA^OkJJkZ>?X__i~bF z)n-evg4lx?x7y{Zfg7o^l))Q0vRnGP{e2P=N3P$5&UY{#myog}iz-P!qS)i3$dsNr zy14k8W#G=p8~Z#T>4Sbzxp-tViDE0xXcMrAQ^*QFr-WQg3weKJuKmjnwST}GsE->% zA6$-SnA|l)GnM_Gl~NSbGyqhs0WHeSz?IE|&ifVj2ap?JKl$=nG6QTp1I>?*^f#YQ zmsrr!4cbjtk@Q-5yO5Qde|@4!g`5h_SPbz~zw|y=?o>8E(UtGBYkQNYo!RxWyY*w= z_`cuG;)!C$O44rCoG|kS%dU?dA?nl%Yqq>`1V8eX93S@Ps}IKJDKGja-vhfh%x1`e zJ7zoVA;~qrQ=I=%B{2Cako2&XahpT!XLp6ER;rUEOjAUE^R7}Q@!ejDbW zs^#aqZtO)r&(96W(S24*LVs8|w8dGaWU&yGBUz43KT^_{2j|i_VIT%+;K+vM)%&kp7U{l{1RGz&@|J3-WR7Ph^lfQ$X)&kscJ#;vCERo!z@6$Fq%FHAS zUb#Y>SWK9tskDz0`X9A=3*qcfzlV_k-ybta%kcJsNkQ&}^05y(wp`tQ$$b8{d_Ot4 z?-H9IB$b2W?yiL*l(z$UgdV#;hq~-nK9ftFkBc42dtt=f)xmJ)msmY|8b2Aqf0MV2 z_8@8bF}%3uuXgpRu7pBSp*!Cwp9{Ite!9pHheXv zo+deCcuc*oJKGl0#9J{`HSwF9HCPLr0SQ1C<{$r?3S_iEcd2-KW z^ENWseNY70cEj4K#wdIk9rF)$I+HLEDA?G6WqFteGbUVt`*oX13I4vLn?|)VYcx?C z&o+5Ze*G)&JW4D|}DGWSdmn`N1^?~|Fv2pFM8G!#*bTE_v|;;I%EbfPml4xjkzSR_DSZxhf< z(N(ew``a)4^#x0{(nvqYV`r`f*!b+d;#RBL2^6**+yhPC*@IWCAg}zJEd~XGrj%6# znL5R@}4{U8fZrg(k4z#(%ePhCgaAEz()3;3*=wl(DM&kiU< zS`hE3Q%Nl2_8hbBL{z)u%M=@ zjqNdcI=F^XCb45?cspVAn>7D$4icGuZ66HxE8k9N*OR(lXG|pY~d9)qPlQ^z*^`_Yvv=$iB)Qj63pY5{wozs_- zgU0=H2FvcfwMg;YJGGv!=|D{OKJMX7I2dL>!%+<1ki};V6HvZvQw?v1)h@Yiw=6|; zbV=O5jhU6%#UG&w3j5g2n>I9&O&hWDt1OeKoj4~pLaMA&2i~E0!J4JD*)z}dXQh6k(&MC{f_MVboXPbpa16F5u zUQuZ~F0Qns&gw8U9M`rsAG};dTNi&f+`@ufbsY#z1rhBR`o5pi^kJ@I!eiPp*y?Ene$kS*SA+8JvVr{5FC# zm-poTMtGL;HXBUUR(m@4%0edHIY%_FQdDJTnNG7siRtHb{k8GhD+5KY^BHY6sz2pSAo& zT2MU>jiNxE=TAd~K#Mf3q8=|grQCB+5wX#0K~+g)yz!-~ zkNHbdTsq9t#|lRl8^cr2+%A-yXVCIqlgwdcy7K2kEjBbtFnZ>EG@+Iwhu>nNPoiX4 z_h++h!?ppAQ*&d{Eesb91GSkTM6_6Bk%`)!5S;3%ra}Jb7Xs*vmtt0_JvrK*!sR}_ z4H-z0Ojm$8I^?L2O@Th4o=@j6>Ro*3Ice(`-pMA6hrs$B~w+ci}khY_Dr zgEbbHgdd@igz$nl$A8z~VSp!)zSQW2fRKfrAYRjB?nlRm-U+CNJ`J#z%`Ie%4UQ1| zvDW@Q>&0R2N=fLrH#X;WZ@=ATeZM%WqJlPo4G|fqDketY01Y1h8b>Q1RRRhUT2i9w zr>U34Y{;fp4TS=HV%(uUTzWyw7K{OoXKobn4cGcYsp#4JEBqPjudx7RwbR?4MZM!sG zYE1LV!d~h-hKD;Lz>z8;3O-UC%R-^1GlOiZyNP)^NE_$5IY_%c%i&%z#66INoT`nB zkXMztYX-p008gmilB>buD8z{Jls{~^Ifo3eh{?!N91uB@knf8T% z++z=$ZVM#z?23yLka^uyE;sKZP1u+H%+X;aQ-X%pNvEutdl3T{@pbvN->nxWER;H( zqVclQ`{dU&JfKE(PJyn)eJr_tAdBEFE#QfK_-Y}0_!_id1oZlh|2JuWH`mf}I@6eIvM|hrp z|K4nxR8P*o0LzEAp$`}bU0-fkrwZ1wCKU*UsUH84gsp4oGlDX+gRUBNY6`@((n6yK z4W|Zz+(B7~ju@5wHnJE{`JCrem}OO@=Wz1)Mg{)_9ol5u z2Gc-Et&uF!m4xl1G)@o~3`qS`BgjaR|@4AD-S$ztg`Ak=If@8_#JornR~ zNjhMW!AY^v1!8f)Ia&Lav-x0meYPovhX=cQ&>SKWk;4a79>DLgT|$~gma~|yV)FhMANUz@p4_!PV?jk_ zYTiT4ExJH91;b0(G0lRY;ZeGMmz{{Do!81qQkcP?W=o@+=uf5dp^SFyFgp8Kmp_sh zr`+tlinMM-(QwQwhKNOh75Vu~2M3Nkv?b&rMttzS!6D?uG1_0}<)dz2mCFr}cvl*a(%2pQ6V#xbqR+Ff@Y|{^*uL zLHl6%i_fb-Q%x=*r?!U|W;;?ajCnpwzt2N0D{Y-bFS)n}Q9@EcTZU7LliWNO;&j39z!1Q<@uQ|&EEP^%vJ^s}~H9X#9-pzayd=m z+N+i}Y45XR1o8-=`|QGd#I|b-HXC~Xeax8+P%l}cacP{-(Pg#TU)ZncF`1{u_{V5^ z*;cX34~>aMa`DJj;S97Bw5U~FJbQ;GAcQU*Dh;BySkX^wth8uK?@9;-O~I3qGLyt$ ztu3n>rB87y^UPa1&Z7@S%8vBBD!mSUfj#5I=J-Ng99BLPMQV$j`gLYqjI|;B`;3_E zjx>f%Y8+11YN@~n#TEO^ z{dl_oJG>ni6tqkzh72}rPKsIttF9mve`Z|MAGl2L+9P?rU;Om;*cYb?w)qwd!R1Q9 z3Vxi@4R9*dx4Y+!jWN#B;&b0yBJCYR2JhlJYo#xt>Iu+P7f|gGs*HN4PnhMS?HWp6 z(FBf|%>B86C1I3?|L1oh+Oyqj`~zL(J9bXMkB^O{GwM#V?g0V6r)hz+hj-M?Ee_CT z0@1@8JwF1Dzr1&T`%aNJ=<}@)oCu5(5jM^!uW|;$nCsTs5m6OL2W9>HDem#)xJDF0 zUx;j!6%1Rl`INMCy-I8Ovwv`&>tVA@8lk~)O*0W|KDYSnR-4taNVa8(Dv&ZR*E6q>SYjYa4Nz1l3(hrx-S`o+ymAYGPalE8eVEwikiLj6JH8h1LlFAR3NU0#~23VN`<^R9^M4&qK2 zn3yczmcz`V5N!IN@6x-8$|W;In*r=XBH9`e{J*Ygt-iNYiS@k^=RHbrpmD*S=As}Rhoa5u4}ivX{?^`6yUDUJp*K!ls4&6WS141KV2W7VUP1n;vI zW>s%k|Iis2Lt19-`~v&>C%_@g|hA+gFh;o0>@(LL|i4C0vTI`7i%8N z-SJJdB$mV(>t*JTf9NxU!Jop+*<+oM@ZWZW*)n|(> zszqzwJOC_!Lla9^e@8zUYKl(Tl{%;9P{qDIP8dL@Y=nZIkVL~m6QOgdqrPV^_3e%^mNGwmgLi}8 z*};_O6N7L^$H3L?YaSxy?&3tK-w7LC_-jr(1#@x1=TM++I`;G>4r5xn zJ4b4K{Y57^(=(uKo+ZEd4PmzU2h52-JdQ~h9tKRDps4@LMF-iwLSB_q8sCOZb&#QiyTVg1-UPk|;<1+W}aE&DfZb zxnZFhlTL^F6c}zMZh1?H+*H-py(AvQdqRh^md4hED-1;WTXwr8@Kf6(BXY# zX!s;%$Nrb-lhR8`t$18P6us~+qUc6{P;>^3EJ%Ld+irP@rMD>N6rgReXhd@I5)+AL zb`gkb4;<+o9oP+mfy3xS5ov|DlW42vLXse-kx=>C(d;sr7%=y7r;0h>@Y483i_h>h zrmW(3DY4`Aw(oJr=5aPv%`*4%%*GuI$i&+q9Kup{x0%!4vDyM`>(ac;vMuYCgQ2&XaaDZM<0) z*&X)N;wiiQn1RmN*yhq#jLZ@9a9JsNx6pc&ePJ0gfz!&_HU_FsR_TP^PiovKQ zx*O!?P)#<&p&YhwTjRYV<~GI|XA!sR3W;EWuNk#8zaUr<2#KMU1+3;8x*Nr~5yT`V zjQwLVfEl4`qIxS{hOxWz1kD3ag?aQ6Q+o05sGe3fGT9M|gAJvS7R8s^6|3S3s>!HA zPo(sx9~os!i{+1c>X;NAkG!I_y+l_M$??t5dPOT<-@$5ilOi+}9lr&gix?05o;$Y6 zU>S3qCIN&neN3Q=vHprf{R_|xzJw@UEUO%3NZesK^m6}3Uxx`TGS_!4OAJVcDsuJn z2D3;F6r-WRBNj+vQ6tX<2u6PgBSE-L_k82M*X<9~nT*@n+N_D0NiEjp9< zA_~eHGo3ZE8L3Ju8!FAVz}6@1QFkj3Jd*h{-!ujtlAnE1(M}?rn#~jN{a}`WN&9gh z8WQi2fW0P;(f#V7t!n?=3f5>{gvs{!XU7mgzZxxOE z)6RJ>*M)_Qcpb;Dlr}lRQ6lqf_D$63JIAysx9PzLr^wy^Mb=k9Mb&m~)7>c|Esb;t z5)x9lS14^78xf zecSP>i0j`n0?+WoLmnznJ$+8W`bwypsmkb@Y&M}*b}Pv*DrpVvEG*uk z(9#Z1)zLIgb-!VaeSed+&Pn{^i#0z_#b0UmV)N{R(t22H`QMYN*!}X(t1?VGmJ|}hHXXf+3m6K=SR-jdA#l3a&*L7 z?|oNZUGe(o%=?EH+nZ)_+-h&^idjN6!{pUpG2N@|CpSqnu~VZ^i58+}B7fx0tQkmm z!Lll_CaNo!<6R%T@NyfzB|cI!PfsVG^}Z`9eRnKF?cmC3(<9X8g#B}@PPJ%*IOFZ* zIBrhS7?C+vyz*cvr1^@Wk?6DayO z1hEi!ky;Y>)CA2nH(JpPADDmTspTjLXC;bsa{QY3W>V4ar>pjA0_HD93G_%d(vlr~ zGd;!!;-&d?Xcj{QpS^+y!bjo>w0V0-Hw3g$y2Mu5*Xfmga*PduDVuH8x;8WB5^nPq z*)tI}R>?>=PkxMyF0=R}m5H%D+X`DIB4h0)QbH@T#d&`;Dr)fF&d3UMt?dPJ_K?(cKIJ}TU z5%jiL$qp7FJ%RU1--fRUXp}$bcYm@98)Dz0)6Vr$Z4MTuT9NpnA?i&$q4R*!CLkl* zLh>2)cj(f-<5w^>?HTnOchoXOw`~t`oK%*v=#a=p`%revAj901OlK=THis;C@rF=P z$bI4ndyXwC_*M*9uhS_-JtbV%5$+F-OiE@l*q?l|M!KA@nasgsg`3&QulWdn&iozj zHf$wdQSxzZeZrbPjj@;KwSy!9R>l{j)kzD%RrB6&aIX3}!G}E(;VgOPb*w+=$cA)} z2r$kW+XzsWMs}!_idrP;G+bP9W|Y#yYA{GFZ0lt;jN{AEC-B*sQGbN?NZEx9{Gp>1 zG+x|DRw;Dorm={k75zN6a>k+z+aCX+lxii(y^!)H%uY-+z&f6)^kL~9CsBGU`m;p> zoODK}xa_fLXZf|QQ{4AIX}C`r8{P0w=PVo5r_?;o$zRr66J4Ng1n{Qr@vN|u=U2-r zP8FSQ85ixu>4#(41!Pk*;w1E-kJw|{9WSNdw(-}XGtdMx5@czSxZh`$*<$&*t(lPJ zFV|I(sP$2CHnyI$yh{7U)a1QLu7UG0t|r$7p{Kl~qeh#rOE&XNSpzPA?nmEmp$OlFCz6 zb~vm{W1Djv=V_Y+%{&;O$NByA(^G#MsfhPjMwP_Q;csRRTlBKV^x~s4%^Qz@AuyV* zb%V0Pn{02W;xKboMf*;@Plp`a;@Tcto~aFL@#rij)33cBnUJ4PAC?b@=Y)#o_y2Ym zGjv)FY}Jk}ANF=xsFevtlVSI$ZCWVWtV`kZ>Ly7aX045;>4o>Wky@c)an~2=!aO2(--gF)N-f`!`tyn_ za*;N%ajFGtYmTETM&8jru@}G3*<=2*EFXQGeu0@rfW>@aZ6{oSlx>9DT?Y4qJClyS zqhniVh_TYB3HWLtcN$5uB3^dtL2b5`{zvMfuf>=og&Ow7Om~*fdP|M z24jnHariGAa>ibcZWe*zLfa$+neS1d!yHW-gGdWj>MF`f0x#$9ptVQtED1%lnvm;! zmfMTn;e`=mzUB5Oes_mEnO-Jgz6bgm4_)_pibQqHg$i25xAqvnKHcDsyr+x{zy`xaP?HWDW}_dtQ8_kV@g}^o4Ur zcic!vjS_m*pM`Ex$0E%b@uGuXv-W{TNvj)q!z2}I-@Y&XzP!|1Hj$o#i$ZF@H#Fc9 zu=4QcIR3ag3G2-qi&*R5vcAf!zDvgjTZz(s@U1%n+lyWRgLVbO4))$Mgjk(C6I?Q+Fmk|q8urz)avcn z{U$Ejq_NXI*vr`dHNC-QJ2|aEnJtJ{`!YQ-GDQ}*@vU0n#}73g6j{A_{-|Cztj%eY zjE>c>O%~^u=Hd2U&Tm7JX{djW^Zm}P4LAm{u+HVGq)J>-M)M80XiL&Z6rGgnN9FCXq7!aM_R!6@+Zq-Xu@g}@7k z1nU{I!yV_YA1LVAT{3amvz5R0`Mvxb^T5;hF#T4%XMtAs@Z0%s_1bem2!xIgGV*gQ zrP>SD)%}nl2YdDK@{pOl>DR)-{KD@{hHm9ndf|O|(x+fc%*2vUj^ctZ4OHtJYVb(M zr$sWS;~Ch#MkB~!u)U*K)A z7zE~JpwI37qC(F1Ys?|=bVgmG%fuK731S<}l@cu&NIy%#3s70;u*yQ0Z=e0WV@f^F zTu}ps98V!SFJTq=4Q;TgG3>^Nyd>Bx@vXa(BOfDcu1B?Hux|>_Y@&I5GJXo{JUQZR zgdW1c!FLC@g~yE?KGIj!D=Hr9S)6m@zvdSXI2LNM?Yw%CyDBU%%d(_tUI#mQa%ijT zXw(bc98ohqCDTkuuuITLvA3UR3dAJ&=_A9x4O8;<-i=6Z;P*f^SzT5}d?25gzxv9(%oi z;dhp?IAH0|yvmqM+Hyz)KgzZL24WPLzYaOS?v-N3v6C2DWD9Z{f4RE(8%)3TYIV9n zG_Ah1LAipyJc-(yjZ-BteYEaRpmJ|@glG`k`*u)Mg);oJpW*$Mw5*J#@qCp6#O2U& z?ty_`Imovg59nzSO_IF%~QH>{m7I<}ks~sU~^&bUADbT&x1#6&d6U zk_6rXSH2rDL+jazFhxf|YtbpD5GwINoHIN`+hpHc5PB)x z)A^_9ICbJCZb_(wmSkDBgy{5G=1)=H2T%Qpaso-K1|E;DHHp-Ly!E2T(`9Gf=?=XK zSRNY&1&{Wyioewh#!V<3aJ(W`p_6lU&32(AoPxgT_@-4A{m5$wNtit)-;XqT+O04@?71}9mfhh`bS8#=CBfau(EP^^krJ0|bub_n zCp!cKRfe@Vaa}-QJ@p0xeS&iLcMS$_3EQA?iTu*C&secTw#~L)S$ifky>;Yrw#0jo zPWH3}CyuGyvX9HUb5%M)9(9~)b9ny5E@=D#E^}{vG?2lW-1UC8fsF{zJ`=#yMpKBG zP{8$})9^c0VIa)-I;idU=hGz5?RETt8#)Fl9XNV902b(80&K)G2Lj3zBuf4|4w}gU z>M}`G#Zau*A=MQFKq?%R-ACrPQT7262RFR9cGqtl$Y(1x zi^(H}HjPb0tu#vv$oLFGWtxoJ%9ZEyGrwMh4uGN$Nz6n!k_+NnKIV_liuc&$&T258 zk)*!6n{C(54cmVs!5R?E{v%rk7VjRxE2+H9_%{D(Q(rOjyF{$^#j14G07{LwlzHzG z;FuZS2=`n$CxN7UCrboTB{8Q3_f%E(IP$_awnfn%n@my#9^*xvn>!9EZ`*o{OmjgE z)$li_aO^{y=|es;g{)ZlqXt%D&qi&0m_3Wvpj^2d?=5t1>9@i^CAHXK{3xVizdaCI z(48a@pVzinN94C`asc-JR7(V(9heqAl;DzhTBJJr@H>CtPxFd5v);Ts*d#0GwV4Fx zHYj$e+c^3Yx)KDJe$S>0v;Is z#K#~QP{W|eQEfCBH2D-LUPFRF2%ru~UV{|Epn>3jP6YS}(|=|M5Yq$pO|X3P8}0`1 zw;|~22#Bv2&Z+4I!c>K$_9!?)cBH?WR7*cPvN-4SA5>`%M@qi6O<0TyKZA7sOEqW2 zEDHt}d0ezP1}=v#6Pg7pv!v@joXXp69ug(_m|1v`>A?4aEy39XXfipY$!USpPPn$< z%#8DJIV4US6uyEnT%v-%uZj&Ygm@kuP~07`xel=z+u^*-^`zdH5m}L$CfM0D%volp zLfueO{J`?0{sxj;FqX4slO+(cxKKH-@X1A~_t~#|eBSrX2$;x9^FHUkLQj$voQb54 z`SWOq%ymJpxj!d#s5!xh6!LtZtLPrUKLz?H&*|;!?=SA`HO*Gm9)BlMmlJOAv()_F z(poExpdn#CS>Wp-5`vNWPDCMwC1NP&H&`6I^Ip3TJs-}qai`d6mg#wZ=cItMl;(Tu zdn%X~=rdEKq@V)ng$LXn-!atq^4GI`e+A{5sC+uFqu13rUC&k*{~>!}^)M0g>XumN6GuEI<)FQDL%3HTM4I@CqtR&; zuQ6Xxbad^!mC;dul?q;pqW2|&$=jpvm%NjZ@{LqYRxy^ij8ZGDAs)ONSc{1C6N#>g zId^-ecO*YTAR16-q#fILiC-g+x9f>=O?77F#t+>YD&Bd4TfQ# zGW0TlvGzR&blA~R`LztnohjX^=_+j0fqZ>Ah_MDmfXLT>5IicBNLO5=zE8dP0S3GU9;zzu#EQTbjW4nijM?%!54sJMk_X~RoBp_cE%3kNuuvb90&dm+u%teDrzM zm*3AX@rEmeU*6*|2VX*fJe=Y0(l~Si#bZGK6KQL(5y(7RrZ3^dI{OB?0DlAAzlOX4 z&ZHZB!FM!bd6|4qV+&8M7!E@o7YjLijec8P^7D}La{Jz&o4wP+dj?lGVfU4|I6(}? zx>a-Y9r2!?PdeIha9>AreFZOcKylrZ2ll&AS(s+S>GJ%A>9iV52PczjQ7S9E<^9G} ztdM~ft#maD`Kr#knA!r`b6LX5@dpzf0^wPY!(wRE#Zj?iEcJ@KqS*}X$nqA8Gt45Q zua6>6!IM^r8wk$r-zBjC(6!Q0Q8?>5ndPsDUslhEDTwZq*qYcep*PAX!C?jh~ z*|B#iP2B71p4+j}2N|vhOY3Qm^Z8D?$L`q*=39$V4RX)mzQxqxa>q&0v#hI%Yr&tZ zrHF3JOqE1wIiXZ~@j*0aUUeah%8M4)f7Bpe6s~^isJ!KLs&^}GB+_!-us3Nsgvj+d zkTFB25NV z4KUdOh=Zs6TwMZOH`G%wyv|Lk!_`0Q`+U#Ry(P`gkoUCZJx-s?5cKxlq6xPfax01J zGGqYGWQZ#!1pYBYK*KB`uPM*C&P8Z_2dz&~ZlG8&IwQ!1-FsB}4**~-n`-Doy? zzxOtzWWARrU`FbI?NcSxpwxW@qYD?l`S2X}h{iqYhj%*a2F=2%w-*JaUF8=-?n~0e zyhd7M_nfwL@&}_-tEwmCJ@t{(VJGT{WSHbVU5 zxR2)N1)V!=@xA8i0(#?weEhHBPip9P_Mz%|pfwMm!m)3O&yhyv;#5ZQLcAvH6*8e_ zc6$#(2IB_We=fs<-I0an5}WxZazlsGQ#0*5Ic;&_xcy4d&F_qr&WS(U?QKo|z3r~r zJqX9;ZvUYcJd0(|ANxE_2mHGh^I}36jqgiNQf+I`kq&`V@s5;j>OtV8_SNK>|AykA zWcsd{@IlRi+EMauX}ptpL3;YP)WopV%xaQcqmlf2*($UrDR!K`UBZ7HHia?P-l&<% zN##1QntHFHQr@bvYs?1Kw<5fI(8wW3(R@QopB?&0Ql**XR8evKv{wj!t16hP-!wCcCsf-v7*&M&#i!QYf zH)~sDMCQ@$0` z#2TTrJF}WscMTyw7c9bNKX}*pfWe_y);P{dw$XpF)+xwnpJ&0^emMKOkBHR9NqXv; z5ShH|;KaQGrFd;&Z`xuC9o-TvCc`Xk@%xRvZcT7qg3Q2i;TWY2g&pc_N7|;)(luOf zd-#G6m;b_c`sq|b>BN=y>wVuqjT5a?NCGgeMSa|hc(PAGaRU_#ysoz21b17&L02Y0 zBl>w6RcFK7gd|ppy7yWSH`Nl|o~3JHIc=~S69oT!9jUV8hZ#?rhI za~awf%*DAiZJ-s}TU|qb5|;=tF8lF6-g4m<=)d8JVN9iYycw$UM%rW`Y0JVwAxJKV zPkP@K^WzJ_sYUMc%$QI2aA#sw-R!EEV~R>dmGxmToD~Eil_(xkZQsc(-nXXWUfIcAQsj68XpW80$z3lu^(VL?AG~z#}JUe zD~S2;Opteqgz^AsT@jFDB(`UOf&b0~c?j?s!9I?$e+ol%Z$L-#zVtzsmZbZTPNZeK z#;3pw%tT>73|zigM8<2rN_Nw5oY362O0Kf!SLYF2_xezH3w5KOq0uEVIt`(A$Hjfl zMoZJjVdl^w2;GV?XY4lNT5D#XSWqCYsZ15Rj;3tRe`?~37$U-a`VKSe-kQf`G2^70 z@21b?3t|^pTKwPw;a9{F^WttO-4_g)B=1wr!8YU_IN$5>|8&ntcAJP+52)|~q6nnl{$5j&6kBL$>Ag);;K;%%8RB+hsW zxCepi8styD6z-q}n)n42`+E?wIxfl~uy;jnjLUD!(C^<4Tw>QEtN0yC$#Hv`B_(W( z6Vvhh!a{$Aie+T}5d;rQ|Zi^Yn*|*dVNEx@iOK)aN5i*VmvE%ABPB zA6$|?fBD&58H1)@@GPxBuRzghJM!ElHf+){z_bln^2P|2@dyFU@d3-ci{R=p3`*-u z^o(NIixyA+u7Lz=D{p??<~K1pSR%M#xR&Vyj9?}R#KeIoaY#o5*-q{U<}e%d4S>4x z�aqSU(0tH)-}Sx`3}SAy~$|fxd>N@@;LnNVhwybl!?o;co`rJ0dLp^L9VGMVG+C z;gd82<+sN#-iAC^5K91=p+G+FAHQnv7)11QvyKHy-awjI)B;E3b&@X~{v%6d> zrI=@&yP{a9;@Vh=X7iiM4)-S8UF6gs>lBeBmCdHSxm-wNb9xIC+69|| zO<84S)34|6Y7FpQ4|mnU8qNRCEpZe zuM2+UaSYHTSOY%ZIiK=sJRO|>B83fqY!KLj7CFW&rh{N2Uy{yb-Y1U|5|5J%B?OULHYq-I+iW)@?2+C=K0ZMcjl+9w2c9RZFV| zVcnb8^+KCVdmH`P2fX75Ur859W~Zao;HGaUNWw`Fx33N~Ox@+mA}Zz)dXfmuXMRrS zCN!PC{V!;WK44(&pod-d7QT}6ZvIT)xnIg+QOFQxWVa7uR)AC=a@~lb630+d7=#)I z`3GW^1MI0uuv2~mfg|DeWG9%30sYLFXslx&;M)^{p>Yh95}|i5DnY6o+UYe!sT(ZO z&w}zz;Lr;kbGr460{f`&>f@#F7vx)AeZ$FB7$A}NKWF}N6;GX23}yz9_w_&M%@9<_ zfU8afHjLpKVtfnLJba(+lgM=pUDiH;w3-2jG&nTlR;G7NJf19RAq;yJ6$$9gCs zL)Q#5fYT7AF9N*1nz{w@pMfzt;?Fy{M+MB~9vMz^N|dz~ORN^ww*FJPlaxpK{o4iv zMZckiFXKk8R%43{mOHB7aHIaPdvGga*Lr`ZPxGZMnG<^@p{znrtQD{eMTlYC5+jS* z{DsdB(|{2{`;WWy3tZn;$BZG3JIi1HDhPoM9oPpLb%RxKtw1EPs*2D=a>(F?8t}K& zG=1`R0KMvE%N`oMK|$7A&}+h#$c;zT$+XbLwZc7CmF)U~u7LvaIedh`o-{6jq{cXi3GX&v&a{u{xOEUT3_Aed!h<3_YDl`vv)Uh zzV6#hN5y-5>V2Hn^3IuGbpoqk3TM5z8=rCFWx%zC0?yYmY4rCYUewNw+tanrkTq(L zQxF*4p>0;hzg!tee_fqRLHe^o9>j>SbxQ5i{K%x)PyBvSm3Y>0cCyawqw>e+;$(eW z{tq#nt34n@zdG^)V2uOgW`O#y@jtFWrkyr>y*=Fc9rKjsrJ(oWQ0exd`~n2q9^NDi zB}V3?hRFza^D5LPAF3XqS#9FYB(H~UP$fhWog293P@+-kNe+EJ{rIGYa^KE=Q6Q3C zAmn@Kr{(t}_2Vk|l8Drh1BXFK1`Ldl97D}-_>v#Wt8mnB~N#^Cp_C*sNS+Z5`a$mMEm>3?*5r)4<3xj{9&ukTqTr~BF=u`$EJ zX?Jt$)$P-iR&nvy7&V{9ct1tst5&@zGd_D)O!+Ex9)UmBG$QXy zwwrk_W|Zb*yXxS&B^=X}?-%`XqBGsp_uHQ;p-!`gW$%x{DCEgb=iO|pWSHMD4E*Jg z0DY0jfKf1`zDv@V=J#9E*57~jU%^-Om-+dOb`uEM>a?FE)jn~H3LwegiRh?3D1@eb zid7hAYc&<^u+@2y7lj%fYn6ZSWWj5no0@Vv0kvnbfR18b>|<}y-IX;^SqB4@sI`CD z^B1R3U-Zx5H7C$>5>|Mal8c*AGXR6WuI9jIx0uWQLGs~>odxZ!avm+qc1&23I=iB^ zpnd=wN`D;v3)>(fqc}p%CP|{`w_mL>Wa>QS-eo9kgnwiOWZ3o_WP-v8O54rbns#vy ztCaOT#@{WX+tr&CtTIdE25vC?FpGKEr4)&Wjt=j8N?+dNKmT!C9Wzf+@HVpH)FC#I z5l||I7fk5w5mLr0n_iZV86zv$ye@sgAzq?GO2Z*d+C$sTL!*(0hF8mod0)$d`Ll~l z0mLClStk~UDNYu{`rbDymo5)<5teJ3hD6+7S#)M|hayx5eV>t^&7bYkM@SGFAN1z) zV>_N<)=VC0(l=>8pa182JE;#*#))S>k=ux=@u>AX>iwjUcQP{W4leX0o;4a z{5ex4&CF2=4Gj@HrW@B#Xo9*&)dz2{uc*-ZR)E>2#aiDp@HF+8%DDJ5VQWVQw7PZ!n?0(Z)A5;RF5P+{u z#;S@s2ZPQ`FM>&iU;ynu$u)1&eojtP7Nt87zNE%-BoZ%ur!*aPT{4&Ak%3^*pkV9V z{Jm&wu=OMuLi%Kl#&J=_Cvp=5cK*WW+t;oIslAS?gDL4$ZOK+Sgz~Pc_IAUc(S0p7 zBMqC9arxBwoaIS)Tu4^H_VCJjtE*V>;5V1Pk%OI4D*7jp34F?5c>`#c`r*geZ&yNm zV&JoEKX;fN%`aHk>QwW6cZAK+LwrMi=-PZNcq&4WBex>0XkFWveSE7bT>n0?DBQYD zS(T_U$E7C!;R~YY3WuUpO5=$(PuQ#H+7_qNUNtIT_15#e$8Qnojv|dDlZ5WAJqyq5 z8^BMSSuLbx?+A;Lv9X`WpJ`@)ppp<9d(}(80Fg#iI%{j?d!OEzGkn2_T4pgF7>+%8 zXi>{T32i(@4c0%m7=UmdCfTD6)PP1`q&@c}-UY8{L4-$1Yt=nWyxEiW6`6kU_634r z63L<>ux}vC1_%ZuySE9D%xwgS1IVs8aE1N{yt{y8#slmVnW&IeRZpDWx#GLwK&IbQP?Jk z89*{hki>PF|9b#Ax^nfs528K*LT*Q=dLVL$W#Sm{1I{;NQfBZ}{65xct_wUZP%W#tpDh5lIQgB43vdXx7# zQTyWlyK27z+V<0gsS;pjhw1}dCYc0Ex!0u0JXqE}mdK&peL{Gf%9*Fr@Jy1s- z5nFKvgML6Morkd(%p6|60Lvt6kcuMky1+4Sz?$vN78&#E2G-X&l^QQqt_F)xWlfJF zIn|h_-VimUSH`JFwH5=yMO;z{5ZIGhu4V(OTIFA-Ifdw38)YOh z9r#%72U`RWtdz}O77EZ|gvU;|cZ_u!Cu~ z;F*1b+k9RH*+j>{{s!_&OLc;i`<7)#fovz+!G>&{Q)4e)xLsjzU@gi)u)DI%O1ee* ziSS9)&4dTO0CY|AxfRC`Nv>tpjG3b4c^JT&g?KU{i1(4KChA{Slj{tK^dWx5DszrO z{zGW~GXkT}0%HA$Uzq=rnlG#Y)1@iwOP14{nwLBJsk@!7r+^%*{W>FQMYHKV9?D(R~ZW7p`#Ff<3iRY%8ueHxk z7Fepp;WOmX`tuixKRI9XS18q-ij55*pQVy?tKy!a#^MQae)#*`fVb_I&XZBJyr@d`{$m9!`1X zX?!`0>|hwxL&7z_%j+*nHd(&??ti3JVhQw|opkg+v@rn2_aILBXJvJl!~k(3b?-T; z(EZ!_bLVMyxtWcJ_&-cNHS#}%_<3X@4a+jFu9UOWHphHNdLr=I8L~ap^f# zF?U#5Wb&f?f~=^~FQ*$$^OHm62hQ9_?TK$L<`dsUF4)p%h|-|%pWl5q-GUrHlw$2g zmPL6G*9#Uht^v^^m_!*wXZwm*(iQ zlN6-s0_I(_ypr=WS^Z0*>Vx!^+xQsxLr$T%CoSU>{oL|&BsNnHnC1*Iu4b<##`1gfHanaN?=)F9piI{gSp@n` zwcw3rJ(%VL7aaio-;io&we_8;i!&}Q? z11@v!#LmNl!(WO}viW=sxovd;hJ|pMu$&{7)ZYq%Q>N6Z?z5gqVNR^y{K-JNrT`w- zOxcvbgVDIFtx7gUVu+&}3I8vt>F`I_<%@VfslRw1+z36H#L%isoiySXUN;nUzE~y7 z-+IeXHsxZieucS8$H+=u?}hcw=}Ks1uv8w~T6grv7kF~~@i2cWU1vPX_Q zY@(ZshxdM&OjMHC;fw^Deu7c|fuuO0AaRJh*VJuw7jGYAY5+pJh1@1*jEb-Is(bd1 zH5o6s@3HA*pPB@nAw(z!yxzEPnO+=urJ(qwmet^wfT11^FK4^lRbd#Kp-&*!EIVY$wd%`{kouKP zXWp*V1rgo;>eEPzJES&+K2A>Tq~E$rQEu678UK64pWT_!kCyFS$?cjF`Ct7^4h2G2 z1Fq30njIp*=NV9k4`YDItRRUK;xt3#y$JPLgYKRIcO=K~pYChOQ%2&|CWz281Dzpfz|-sV7HGtd1G*u=rVD18C?H>BWx0V+ zbiZdjx_WbL+6aDUVr*;zDI@$9F8fN}t2Zh--Bhg!=NGu&ay+q&8S*7-NJ%=SV7 zy6BenIq@lQ{bxyS*Rk{0GCv_GfAvQgz?lw)bQz$5f1`D}pn4ZEs?oIk>Im$2!Wl%4 z!P-e~)1}`h;waJc#D*{G0*5O6uFUKsRDH4gTk~b#i#!r>H0)4LkK(Gc+49tBWOLI` zatuz0x>XeAHX#5m2>@SPtJp=2C53MWnL*LK2v3oT`%?tFOyD+wnTd)`-sCEle4XyOdlW zu4C+O-;BfvH5q^MnLkUO^|T8gElYixegH0Z|H=yfHP#FP7dMdINzjSF|JSgiN=_i@1G6RHOj9gL zC<>{{8|!+kOlSs%y%Zrsmwz=7)N7D`c)1ybAv?gn<2#0|fQD_L9g%vv2wD&fBA|5U zNDg622$LzSFKnr`uzu4cxGT7oWF<`TIC_tkYb~tZR8N2eMFEU1ZBfiQ+DtGXX)#(}inGWZm)ux_tXqX7l4B|7>3_V|cFE64PX4g$XJvzk=x4}u5cMFBqwG9&11*F4fH z?VL#EMJgle#~VlIaF}u?dtNjtH53hieGK8sKUKB#vT={`fGlzL_Cr zY3_3KD;$EFYJTh*cBVRXs}v{ru#arB?VyDEkivcXs3&$gkPR6L}XqN!tOVcF_tiAbJSJ5i-EoPz&7p~$!yW?#5gRO#aQ=| zK;9x;G>&_hgmWOC4eghM=5Y;S3p)MIc4rRNqsf=?%h-p3u)V>{QPUl1$lVNs5yn(g z3YDP{$$>1JA+ZO8C9aRTR_6<}_neUSlm@K+a(kcktLe#vDkn{@%rqS*blm1O^>Rs6 z?_%u_Emj#KZ;GE@G{x7nd5C|VsfsfmsqbN4U=4IOc*f-+^HU+ib-ARDd_KcXs4-?a zxhx;M-MRX*OmJY$T^*aXjh%l!GE-3}=E}EYa{A*kg~_EC(O~G%Om45KaKku5LhKG7 zd;XuJSY4G{51xWCgFoAK4Gnd5A!RBGI?^y%GqQJDpK;#{LKOoZjxo&TtFL_j+Ed_u z7{@#9%(7Q}k=YQ2y37Qq$&+*`=6^jr8R0x#s_3=texti;@`RvgiyH!z?kqL( z@;WB?n4!XZ2$Me5Ra+*PWdEyE(|y2gh%(d)jP<}5;tSJ?Vqjn*lI`aO6 zVg}IvPVj+4k|)8D`{W(C{ceoZ>O_FO-yoZ{-wM}t(>6|ai*-)CoH3<~$h+WOxDw}D z+Lyij_jcJyUfUA-_LAr06ri`pSmdE!!JanBEiTpb>qx5go035&tdO(jbBe; zd^qK7Vc4cd1}n!`C97Kg;ZT7h?eu+hAx#3i^CcQhLAZ>^z+V85jENxu?{P&2LQEbJ zcDMW#Nq;c>jf-*D0gOaL;kqX3Mg~UE()85LchwPJQ)~@O9047vA_F4P-e^dn9kL4R zwqdSP?rWFr6C1|D(>WSxA?!cwlJ|lsVbFYu7Z#gPwpD<#3($~yaw0&i=qE$Q+$4`= zZSS}P#cxgZz5vnf%MQehbD8m{|4P3gJ@d@LGy3F>+8EQX^Vx8x{P_~0Wci%0ib-t)5# z*1?m}n3QvA(aUE`l#FE0B9vt*_&KJZg9v!_3o0ZMH*^DCX8fVo)g|+Q-eKn`^qNlV zO>z@MkNTD@*~tuHN#AK6Yj4zP(}OLxxhEgIHfn3bnbd3xr}_6jls(JLo>G0BfJ6t| zLi_#8A0~4t2+BY5nVGv$I9kppqKbXM{|!{*m{VOIcd{ZVGJ2_PgR`Ez*!@EHEZw)~ z3ms;aX^>-b*alERDD~r+5rN))lPR!*IEuUhA8#05Yb14rALdFi3-VMgnpsozr%|0x z3sj{k`Tr2M8TI+5Z_=XSa!2v2xwP{%GH#ul8OJ~Bmqyk~mgl(kl6T;QVqRjHCRv*1 zF@ff+qh^5i@H)+Y?<#AC4y7Ybxwk@DwpstDd6nQLUZ^E%l-lCE)c zaJ;sfvA?w2l^3Mz;p^JZsIfu^xIc04JRf_jBO_XI?GXR%%MGg@KK~}MUB1dnhDW2-T)zR>V2pg_+UD94yCy?9RnQ*{7ciXAo$<@FQGuJ53ztG%8+p5zx~G*!ieYQ zpc5Sl2dlqqK!|R$nU2Bk0W>UUk6GnOfV2vIRW+SMl0`(JQk=r$tVUR{;Y9nJM$#gR zq)1Q>KgxN?SdFkTZ2*MWW}xB~VkRGPznOtTAO>?YZ3b@}!*0tH_4ZApD5vj1VUnAq#FIRbWl#H<}7%BFYw6+_TZt6mPKR64tu< z%B|@;go5t$7@}w5$2|I%hFiaSVB$PS8Uf0-5i_4u!4oY|adIxhv{ru4 z)FgCNLgCnf4L)c3uM~xpfj8kixlmUl_3gGNvYtSLUnxSl1$=y0l{c=Q zAN+Xc*k6TsukR9n@2dqf<$uK^|MC9&Yc+tT|1DBi@jv)7c^t6q02jdbmo}K$1H|Q> zkm&tgIK-&~+&>2~>p;+BS54%VTWT(^Wmwd7zHPuk^L2m4%gXX{DGT>#U)TAH_On=y z~?jT=a z45yHP@cseaM`N=*;nyRXu=qPn=L#$|%iS)@1Og$f*2!0s@l zKN(`)%R({#DXIj!(_UKqu?*?J{0^aSKWh-FvJb1-aeM1Cn^_CDCKm{vk7hbX;gERF zPuwv?_8&DF7-~AC_!JJt6eVxR_e%3AcvwD42%#9Bx8&^!3*||)G#pgqvRd|?SviU%x z1)qi2)Tw`eQ73&STd|BRU$Mlus1L0L zL=&kAM~S5?t_#`C3(Yr6URu8xbT{^<+$#B*$Mp%{yMJ8C`RR`de<({ZpmO_EO8l>iF=F8V z)b?IMQACZmuVj!YL4p!Rau84v1O_AtC{ZN|BN;>`=P)2SGbkWPP@_TEFl7@2y+6>O7s7e%RFyUDMsud$09dYj+kSBh4fYFYgaXMfBowrK(b}480_5`?S|$*E|27-uy+CU z>!{E(*z`dFCYJ(LoE^uP^zipIJ+hzp`Oyn0V5!))3{$Owg!mz0&ET}H7ck>3|3Ll# z+%6;k99HKO3gmnjB!RJ7)|YH+$#*tnHG(2O@qFxyyx;_NyO05oxsanPSBP*F6*sVlc!}P zLx)dVw&ZY{#a@ANZ3qxehga#4< z{^5DK^tujS5Z2+}T?J|F|8gZeWq=3iL+%N`t+5!l#;BQRT$n>=x2K>_0itUBS3T-@ zrqNcfkUqk$a#W^5ghYz?gJGe>hq*PfQ{Bp^BrB{t>{&%oTS6G~EMUJla536G?Z>ZiP&Rr~7F z#EXv!O@>_(P&{VD2bvfCgxL_b&**zmsKYVw4v67}RZ?OYKfa!y1aID6{xE&J0#eOJ z*dJ1G_*SsZs{w!G=EW%aBUTZ!g&~=ohxqk;-z#~QQHCpmQ!nmH{xpn@a*X&^TIOOk z)p3i!C#j~dxmG^+TlP?bnAZ0=?h?eXjIEGBsyXwGne;^Hn})Nf#7YXkmA*1WgWT!& zqpBzK`tX>gelkR9aik{VffZj*EYvD|GBE_?XRH zk#78ElbL^f$?Fe=<%Y-Ci1{yH`r{P!0ON>)&Ql9nZ!UxryG-IwuFabcrCFsLCFVv_ z{#@tZRFEHgK6ocv(2v4o{mo{_%4_TSJhak%A`>WY(EF6Cv-6959FMPt|8N)!a;cf znl1tVry-~+8d48zHmzf)`hlIps(4g!6cs6Uvp<~VfA5eib3DLR1;>wnuAHB7b zUDM^jJL+Cjv0k-HPYCV)6{aS+Dkzht(ZIWqR?ui}q%ksH+J)>lKerHgrboXy!!aa0 z+PyBB5Z0 zl{tTe22q)nZIf=Mm*`_HS@`K+)pvq@?mOi>4PD=8Rqw2BexWz^#@~wh9f|a*Ibn8%@rju|R%4 z@Z%PSybLzJOB-}CPO(3~@H@1yai8Y?z$`qR_!Is!&rceSD(`qOdCbp;Jfcx1!?Nv? z`Oa}Gy~+_bl!LG8TuuB<2HO%vRNB_$Y7nn{lZsX8CSqWO?ZK8Qm#btjNirxp61Gal z(3@Pbo6#xrg_FSGmbKy!I%(BHVrRBte_0}2=3lDJp=WiKc3`X@(Uc4ds}lI_3nwm>Kq-l+OBgD%@UvyF^^xs{x^>_ubKolBbQ(QxH$?EwvGIt8&q<*0X*}% z;wBk&qfJ`$)H56;4zrUA5ffE6KW7YcsGNtr5yatP%Z&;THD5_4eUD5|)h;B-De71s zhi5I&qY^x`jUEyb3#VoZIBg~ss$Mdi*Siw0o!`b^CT{ zPRNq#l!DJqTbV|y#cq*FsgMOxMKu%i*}PPUKO-!RVYSn&0lYZ)e8A9vLFEC8 zp!z+11Z1vn=Y07RQc?Fol)sSO+kLlYtgzWy-M2H$NK*m{pMu%FLbI*`@@Up}z(1E% z%4li(GZG9w_#cvbL#Y7WAoOA=5<#&B$o@S;4$b=aKKsAHKZgCl^QXX*sV=0Yc2Sit?j5OqFs(T=hOfEHquLr?_vknW>=yN&Rn5_*C# z+OKj#uk1Y7>ibF+D%W2`7+fK2TRIs4s5roS1B>@JxMYQf{y#HhML_vW_F-WD#|>t7 zLl0rq*Z_dxJpLNyWwZo<>UirFEO9SVAvB-@SJpe6qg`pXUwU$#L)wbb#+%HIx2Ah9 z585VN@V)wn>)zQQe~ISpNkHvyG7nJ?5~To(ELyn|jc`Z9gbsFNp_I=et|Xt#OFRrG z=6mt-305~+vf-<6duIN?4}rxBlWXlj-^uz%(ZM#mhraYzy(0>&SAbAf~*#|B-SpV63+yLnnD|sy723nI> ztWR8Z_P~|q3XF4C4GFOhKtlu2h$;X<#VXw0X=CkobA*9ARzw1y{Oc!RF$I6E2Usg2 zx&?&n|A#8wy#~ZY9w~=X?r4*ovE%E1SH&dCRg)eg{{E_1M0tRP`}OR(%&sQ3)@pTf-*&Vh za*ev)<QDsoU^hW}^H4TC#^%lSVCv-LzHCb~oP`&UA`4oG_j5K#fI1AyFb zfZJ*K;C=UKF-DEYn=@H?XvN?VzjxCc^%XYPg&sv@Te|9P)og z{Gk(AXc(G^@&z#0SQQ6Aw&c-v%oph|S7G8jct4_0+4d*6zS%Qulhtq0y61pb9QZb| zp1lSGs^>8N1mH1q48H0;Yb!{kr#y&K3dXM%Cqs%gj3N`XA2mTS_tiPPA7YSf`=>f`xLC zbRPrGbMMhpKZuSI6DPoXG~l^+yQb0pq}O5Pv^+Tl>7Bl!?v1%Nk4y6M+F~UwMU^t| z#tdV>qkulT8%}Eo6Hq2`CRzfD6R>t$z~Xd%adyv@u}}PqE@Ph{gAPTV*S+*E;bn9G%NtgiZ_^CSsVAT6_+}Q9jmMX>E|=+=IVr5!;OkI9W^KuUKIt2N_>&`)SJ5!3_fd-&+ z2-`nz0SrZe#TslnZ7H51yeUPN)k58vi>a{H#hpU6`9 z!JD!w0x!|vEpmJ!PaDnQ=h<-agj3 zGHT_?mSZlp2XH5byV3s%WSt9mY<%6iba+ z-1oy26J9S`9s`zr2{X8KzqokrYbQnwXX7Jh9ge@~=Bv#^==2E0h!@FqsK7|5yav_1 z(-lN72ad-vfJXpar~2MG0u`fTcQjy71uy1n;%{^^ulhk1q)A4gXm%-96pO~$iUKcM z9CS=I{`~_q1C~diwDDi92~zj2W5IY@1}g+t5j^|oHV3V5!N!+>pt0=B zZXIHCW<%#K7Ccpf&#gObyND0iMK&}m7;j-cVm(3_V27GMhW$hYodN#Tz{EafGZy^Z z!+K<}7`RM_M_A2|W~VTnM~-GE4rVg8J!~{ItTXK4^t>a%3F}(lgfG|hLj?v2aay`p zftRh|!U+c~VgbYK_u4|88u^lLto;Fowbpqn~gZ>Cyd~ zu=5WOzVC|QgSSsB;vaB%H8GhWk&ulMnYt!fQu?6{8pD-0?z{N&TyLLtzwG}exEuY7 zKx66?s9V6kTQ#r6>OI$Lh@ePjS)QOSWBQ11oc53sSP<;HY^X_eJKvmsTK$)T9XHm$|L&&9{7sPMA@Rynr0v?58!3@rS)SD2f%L(KZ2)TG!OU5D|eE^}e(hE4S#| zF2oPz4WhMheN+Tb&l~2PRfl)r=_!BNN4y*bKt}4HYWo=&7zSE^|FU0g#iFQ1P7DI9 zcK8npMv2J7z_Q}>gU%3t?pI>(gMfAj@~^n-vJ2ZHaNr8r6++$aBPXr)IxSgJJ!Cpg z-vK5jfNi(n_n4{2kF}b+bQ1FCNh2|3# zUW0;|V*oyZr?Rjs)xf0KHAv2>#m#3Z55D!SC~4~{M0Te)%3zkSB`H^?jE;|;9CWa$4HT8FU1}$I5C4o+5scU#s?7aRS&ootAxUDk^Eo){ zH5rDDp0Sz!NM8NTs%Wdy_)pXgO`W4ZQJIXPySx!ow|mfi9rq}DP%t`kXl3MOJdmsa za%_12TRZLD2l|E`)GY8kj#-T=u`v1_$haI(%Qm|O$^CW^D@u5^+)VAW^2i(hE>~fH z_?{v|!k6LG%dSj?u^5Mk6qIu5g@vi9%wA35pNT;O{FS@dRjrb5g|qgMpP!FO)T0(} zift>*<1%9dg#Nd)jL<9#`AG45lsjDsiolcmOBzv2*|V0kfrNY3{HUR{3KNxeqV-h6 zNiz5-jg=VpJbl7KSz71((KfM|99+&+i39e$m%q|W_U6;r_qW_%mAyjQH0Pn7>_f6? zu+PpAQ;Y}i_aGpcXA4BFm!5ZcMZKz$p)%SCljEi$7)jtPsib9^q_!AN$kxwo%^_1T z2yVGcg^D&HRqSZ)ED0M38Bnh>Z3 zIBQ0MGTHx&>iqYLA9>jW8cfhrw9J%G5jSuyx$g_kxj`_K=?wM^*QTKNNSf}x0lHk| z;CwQTecgmZ`Bq--%R{(NGBa1(68Fz%g!^9MzgcV3n}@dD1B>>v@0ijtmbX1H_#!Gx zzHKTZQ`-CS*T|1{xXNMkN>R?Ys_fmUfYPGI=kk}x*u39m)6dTnSUZn(M?P){uc~$6 zv5c-wrVW+GHdry2Ap+k}!v09~M7gUJfHXc*h*N*n;wufi)W)t=!^5vc;n%h+6QlG( zHPt_9>YhiMjVVn#1j%KUh)bOdJgMjMTH_IMplSGh!5Qhwj*5Wk(qE<%nRnko>2^kt zw2?O5QGviG%g>CqNt75uU^z*KdViRltX>vYXOIw)ufjRMjaa_vP;_G?n=-afb$`7g zO5a59Ni%fxm3^TvBV={(g82?9@7ZVBfj;nJ;}SEziR+`(Ydjevd=vLt2vD}$NUcfu zgQdUR<1no*w3O(BFgA)Cp(K;6p-DmEE4H6kGyJ(eqU0A!`zur#_dZ_(d@JJRNg*y> zvO~ux3$5YtM+Tu#6L@sC6O3YwJAH3gqY6z$nm|e^YvqYfi~_~oHT)+zL3ZSr&XETQj*(#-7+d5s*=1tBZ3IVhbav#rw@wSo=_;)~BTaofvGoUYvsYf%$j zFz0p;&*3Yj5M`ZsZp4`>$K9LTY;cMdE$bO3zvqyZ^^#oM*s`ETM`5qrF2u=tN{i_^-VRMRPHVXPLUf6mMrxIV>bW(wwbN-Sn*t#b^V zr)8CTt9CU#6T!&e+L_rhLp3x{-S+%cbbI$wQ2K@ek^hG5clw)I^(I+QrBA=oHtY$gGyK4ks4k5)@kowD+#|=lN2Uix%EA`m87i9sVAO% z@2qnq5^5bxPg8E@@i6&?9plQ=HCY{u?ORBs?t zI)g9Hz*yF2@ycdZ>6J+mlD${oXOy9JKjj1ScN4X3aIPc7BAQP$MiRs7$x@y==Y33D zF6?8<`q(Mf_}8I$Ly+UsR3hJcbG;RxJv{4H+wW27Xz^~)aiRQF&&?6@4uG|7aL05pXdI?BKce_yL2E|Ddy~5XK~$2g%Ew1a1PhgT};AE?5_oPo}O7fh{ zmz+Ghr=*@E$F}<_H%6Hs+BGWCxjj$MRTFq8-GM|pn-JmX!_FvQJixp@qklb+3E@t= z>|u9k3^NxFXn3agb5F_$Kl~FHrid{|K=Yg!aETMby7(x@Km zhzuGOZ>eipFZ{#2cN1W7-kQE6Ff4diULfiy?c$E5eB@%~QplK3+p`eSI*|>T$0MIZ z0Ord-qgQ04@9Cc1Iu@WcCcz9^6#6qG7#1tG-niSW-AJq~A!fWe2*0TR;bqhzx_IG58)1GQq zVYpC~6>)Z<=8~xAVC@B08jaHH$(y`W{OWqzlX^^w%QgG6yUhZ%doEN$Pkjl zkv_+3Sv~C#tx+*3Zx=oeCvv3!@_;w0Z8Uy)y#SG9to%`Hve0!zU>N;#GNIesc|UXM zB9%In>BWN)V%k2_H!0~hkT~l*F7X~AuaJHofqfObm){^~GCy55Un6WfNHx{_+r0f# z)@>fq-tSZEy!a7Th<^7z%s3Pz{c%=5N2K%5t_t;V|oZ4H9|&w)Mh-Fs*^H0s8+-hmK3wpP3@DO8Hk8bR`m(u**l6hzl>HZorfC649BcTUGES zVjcbA7U6E&6Yi;BsCk!yk;c5H(L)emP~#xwC}XzA^PbEw)=(3ADCoLvtID(}_9}EU z?CQly@Ygr0)m2=BIEP}%#&K#0n+DtW&y?4cUd=qYn^d|Tl~czRC!gcxyQ^@ZvMf>F z07KWLtUCG7B`uE4tV(WteqCEDsq}i z3D?yV#jCd?LQ}8y36IqaPgL@_fqQ?9&ADTwT~jjd^d7@j@#?ymCmtrnq*B`5dMcG= z2apA{b#;&oHz9X250|m3GC;M~8H^Zg9QtpCNd6B%x9O76Zo;WxK128^jPR+QIt5rt z!g3f0Z4Jo=Fb6;GjRC&Jc;~EqSJJ>WfbBumKWb8(oH#)-jV&dK8`Xuzb=Qh3A|F&d zk0l}bUOFu@(_+?L0%W}5h)ger9}@Vx*slvh{>C zFE_1&B--~QrLf#}vk@GZ$7nHX!c|Ei!1Ytgk*i1Ls{7FPt06|J1Vc#2xNW%i38%qZ zv=rgl)#)bliq22x^oC)l3!xUL7n;>G5T0S&VvE$2#eIXsK7yaNi^sOc8DZk-26hkB zoJCC1Z{?0ou7A(8TI{GdgbANsj{U6GyHc<$tKu3e(6Raq@2aN=!_e5hHeZ>$+Rk-a zGfSh5*Cdg)RUxaRkt$IE_byqcXvF#f|Vo-F48Iw;s}k2qrKH z_yR-jivs9K^i*3UhKZf@5}_zlXP__M6m{Q^H_aWrTk7I*;fWp!h%nn-8rpyh}WzTa1+*YAOLIs&$`r5>axN{RHTfU3mW^r*ia`krfw!xg5qjxpv zyMQM(&6uGhDl!2A^u^IYedd>HAXF(eB@H3bqGO*qWNet*MIVA#fw445dN_$N zG(B>W1!{co?#ASt*e()tJXh*+1=cteZcmh+Z>%j%d^g*Dgq>=c1I&!lSXtBVHncdd z^mH6A*PM^_7+xd>dEHGjd4mKR+e++Ncej?#mO!rB*&00r!+Jhwl4=t()}!xAJY0zE z*?~e+Qn6-md;no9fN+3?^GTdhRD3@BR4}DHCzSl))~BSE20B2+PuI zst220^vHD$N{(N}9s7${zsK*TvZ?k{SuTGpaSBQkPB@(ie8P7i`4p2{6+}4;8~EU@ zzR$+E$`%+LfQ>%iIkB#<_Su?6mUQXW>wGmjzNc6>kL{<+wISxn{x+Uo^~| zhT3I^s@z2)j0}pUU#MC4({(=XYr8udW6FOo@D$A!q?iMU)kG&ylg8#{XKM-dJILUS)$5Zx-;H4S? implements ChannelInterface { +export class Channel extends CoreModel implements ChannelInterface { id(): string { return this._meta.id; } @@ -34,22 +28,6 @@ export class Channel extends BaseModel extends BaseModel implements MessageTraitInterface { +export class MessageTrait extends CoreModel implements MessageTraitInterface { id(): string { return this.messageId() || this._meta.id || this.extensions().get(xParserMessageName)?.value() as string; } @@ -70,38 +65,6 @@ export class MessageTrait { @@ -109,16 +72,4 @@ export class MessageTrait }>): BindingsInterface { +type BindingsObject = + | v2.ServerBindingsObject + | v2.ChannelBindingsObject + | v2.OperationBindingsObject + | v2.MessageBindingsObject + | v2.ReferenceObject; + +export interface CoreObject extends v2.SpecificationExtensions { + title?: string; + summary?: string; + description?: string; + externalDocs?: v2.ExternalDocumentationObject; + tags?: v2.TagsObject; + bindings?: BindingsObject; +} + +export abstract class CoreModel = {}> extends BaseModel { + hasTitle(): boolean { + return !!this._json.title; + } + + title(): string | undefined { + return this._json.title; + } + + hasSummary(): boolean { + return !!this._json.summary; + } + + summary(): string | undefined { + return this._json.summary; + } + + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + + hasExternalDocs(): boolean { + return hasExternalDocs(this); + } + + externalDocs(): ExternalDocumentationInterface | undefined { + return externalDocs(this); + } + + tags(): TagsInterface { + return tags(this); + } + + bindings(): BindingsInterface { + return bindings(this); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} + +export function bindings(model: BaseModel<{ bindings?: BindingsObject }>): BindingsInterface { const bindings = model.json('bindings') || {}; return new Bindings( Object.entries(bindings || {}).map(([protocol, binding]) => createModel(Binding, binding, { protocol, pointer: model.jsonPath(`bindings/${protocol}`) }, model) ), - { originalData: bindings, asyncapi: model.meta('asyncapi'), pointer: model.jsonPath('bindings') } + { originalData: bindings as Record, asyncapi: model.meta('asyncapi'), pointer: model.jsonPath('bindings') } ); } diff --git a/src/models/v2/operation-trait.ts b/src/models/v2/operation-trait.ts index ffa124f43..2f09034d1 100644 --- a/src/models/v2/operation-trait.ts +++ b/src/models/v2/operation-trait.ts @@ -1,20 +1,15 @@ -import { BaseModel } from '../base'; import { SecurityScheme } from './security-scheme'; import { SecurityRequirements } from '../security-requirements'; import { SecurityRequirement } from './security-requirement'; -import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from './mixins'; +import { CoreModel } from './mixins'; -import type { BindingsInterface } from '../bindings'; -import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-documentation'; import type { OperationAction } from '../operation'; import type { OperationTraitInterface } from '../operation-trait'; -import type { TagsInterface } from '../tags'; import type { v2 } from '../../spec-types'; -export class OperationTrait extends BaseModel implements OperationTraitInterface { +export class OperationTrait extends CoreModel implements OperationTraitInterface { id(): string | undefined { return this._json.operationId; } @@ -23,30 +18,6 @@ export class OperationTrait; return (this._json.security || []).map((requirement, index) => { @@ -60,16 +31,4 @@ export class OperationTrait implements ServerInterface { +export class Server extends CoreModel implements ServerInterface { id(): string { return this._meta.id; } @@ -47,14 +43,6 @@ export class Server extends BaseModel implement return this._json.protocolVersion; } - hasDescription(): boolean { - return hasDescription(this); - } - - description(): string | undefined { - return description(this); - } - channels(): ChannelsInterface { const channels: ChannelInterface[] = []; Object.entries(this._meta.asyncapi?.parsed.channels || {}).forEach(([channelAddress, channel]: [string, any]) => { @@ -104,16 +92,4 @@ export class Server extends BaseModel implement return new SecurityRequirements(requirements); }); } - - tags(): TagsInterface { - return tags(this); - } - - bindings(): BindingsInterface { - return bindings(this); - } - - extensions(): ExtensionsInterface { - return extensions(this); - } } diff --git a/src/models/v3/channel.ts b/src/models/v3/channel.ts index 16e2211d8..355a900ab 100644 --- a/src/models/v3/channel.ts +++ b/src/models/v3/channel.ts @@ -1,4 +1,3 @@ -import { BaseModel } from '../base'; import { ChannelParameters } from '../channel-parameters'; import { ChannelParameter } from './channel-parameter'; import { Messages } from '../messages'; @@ -8,23 +7,19 @@ import { Operation } from './operation'; import { Servers } from '../servers'; import { Server } from './server'; -import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from './mixins'; +import { CoreModel } from './mixins'; -import type { BindingsInterface } from '../bindings'; import type { ChannelInterface } from '../channel'; import type { ChannelParametersInterface } from '../channel-parameters'; -import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-documentation'; import type { MessagesInterface } from '../messages'; import type { OperationsInterface } from '../operations'; import type { OperationInterface } from '../operation'; import type { ServersInterface } from '../servers'; import type { ServerInterface } from '../server'; -import type { TagsInterface } from '../tags'; import type { v3 } from '../../spec-types'; -export class Channel extends BaseModel implements ChannelInterface { +export class Channel extends CoreModel implements ChannelInterface { id(): string { return this._meta.id; } @@ -33,22 +28,6 @@ export class Channel extends BaseModel impleme return this._json.address; } - hasDescription(): boolean { - return hasDescription(this); - } - - description(): string | undefined { - return description(this); - } - - hasExternalDocs(): boolean { - return hasExternalDocs(this); - } - - externalDocs(): ExternalDocumentationInterface | undefined { - return externalDocs(this); - } - servers(): ServersInterface { const servers: ServerInterface[] = []; const allowedServers = this._json.servers || []; @@ -95,16 +74,4 @@ export class Channel extends BaseModel impleme }) ); } - - tags(): TagsInterface { - return tags(this); - } - - bindings(): BindingsInterface { - return bindings(this); - } - - extensions(): ExtensionsInterface { - return extensions(this); - } } diff --git a/src/models/v3/message-trait.ts b/src/models/v3/message-trait.ts index 180c90fe7..e50e76d70 100644 --- a/src/models/v3/message-trait.ts +++ b/src/models/v3/message-trait.ts @@ -1,4 +1,3 @@ -import { BaseModel } from '../base'; import { CorrelationId } from './correlation-id'; import { MessageExamples } from '../message-examples'; import { MessageExample } from './message-example'; @@ -6,20 +5,16 @@ import { Schema } from './schema'; import { xParserMessageName } from '../../constants'; import { getDefaultSchemaFormat } from '../../schema-parser'; -import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from './mixins'; +import { CoreModel } from './mixins'; -import type { BindingsInterface } from '../bindings'; import type { CorrelationIdInterface } from '../correlation-id'; -import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-documentation'; import type { MessageExamplesInterface } from '../message-examples'; import type { MessageTraitInterface } from '../message-trait'; import type { SchemaInterface } from '../schema'; -import type { TagsInterface } from '../tags'; import type { v3 } from '../../spec-types'; -export class MessageTrait extends BaseModel implements MessageTraitInterface { +export class MessageTrait extends CoreModel implements MessageTraitInterface { id(): string { return this.messageId() || this._meta.id || this.extensions().get(xParserMessageName)?.value() as string; } @@ -70,38 +65,6 @@ export class MessageTrait { @@ -109,16 +72,4 @@ export class MessageTrait }>): BindingsInterface { +type BindingsObject = + | v3.ServerBindingsObject + | v3.ChannelBindingsObject + | v3.OperationBindingsObject + | v3.MessageBindingsObject + | v3.ReferenceObject; + +export interface CoreObject extends v3.SpecificationExtensions { + title?: string; + summary?: string; + description?: string; + externalDocs?: v3.ExternalDocumentationObject; + tags?: v3.TagsObject; + bindings?: BindingsObject; +} + +export abstract class CoreModel = {}> extends BaseModel { + hasTitle(): boolean { + return !!this._json.title; + } + + title(): string | undefined { + return this._json.title; + } + + hasSummary(): boolean { + return !!this._json.summary; + } + + summary(): string | undefined { + return this._json.summary; + } + + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + + hasExternalDocs(): boolean { + return hasExternalDocs(this); + } + + externalDocs(): ExternalDocumentationInterface | undefined { + return externalDocs(this); + } + + tags(): TagsInterface { + return tags(this); + } + + bindings(): BindingsInterface { + return bindings(this); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} + +export function bindings(model: BaseModel<{ bindings?: BindingsObject }>): BindingsInterface { const bindings = model.json('bindings') || {}; return new Bindings( Object.entries(bindings || {}).map(([protocol, binding]) => createModel(Binding, binding, { protocol, pointer: model.jsonPath(`bindings/${protocol}`) }, model) ), - { originalData: bindings, asyncapi: model.meta('asyncapi'), pointer: model.jsonPath('bindings') } + { originalData: bindings as Record, asyncapi: model.meta('asyncapi'), pointer: model.jsonPath('bindings') } ); } diff --git a/src/models/v3/operation-trait.ts b/src/models/v3/operation-trait.ts index 44a898ef8..b94c72188 100644 --- a/src/models/v3/operation-trait.ts +++ b/src/models/v3/operation-trait.ts @@ -1,19 +1,14 @@ -import { BaseModel } from '../base'; import { SecurityScheme } from './security-scheme'; import { SecurityRequirements } from '../security-requirements'; import { SecurityRequirement } from './security-requirement'; -import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from './mixins'; +import { CoreModel } from './mixins'; -import type { BindingsInterface } from '../bindings'; -import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-documentation'; import type { OperationTraitInterface } from '../operation-trait'; -import type { TagsInterface } from '../tags'; import type { v3 } from '../../spec-types'; -export class OperationTrait extends BaseModel implements OperationTraitInterface { +export class OperationTrait extends CoreModel implements OperationTraitInterface { id(): string | undefined { return this._meta.id; } @@ -22,30 +17,6 @@ export class OperationTrait; return (this._json.security || []).map((requirement, index) => { @@ -59,16 +30,4 @@ export class OperationTrait implements ServerInterface { +export class Server extends CoreModel implements ServerInterface { id(): string { return this._meta.id; } @@ -47,14 +43,6 @@ export class Server extends BaseModel implement return this._json.protocolVersion; } - hasDescription(): boolean { - return hasDescription(this); - } - - description(): string | undefined { - return description(this); - } - channels(): ChannelsInterface { const channels: ChannelInterface[] = []; Object.entries((this._meta.asyncapi?.parsed as v3.AsyncAPIObject)?.channels || {}).forEach(([channelName, channel]) => { @@ -127,16 +115,4 @@ export class Server extends BaseModel implement return new SecurityRequirements(requirements); }); } - - tags(): TagsInterface { - return tags(this); - } - - bindings(): BindingsInterface { - return bindings(this); - } - - extensions(): ExtensionsInterface { - return extensions(this); - } } diff --git a/test/models/v2/channel.spec.ts b/test/models/v2/channel.spec.ts index 2d3ea0258..b22bc611c 100644 --- a/test/models/v2/channel.spec.ts +++ b/test/models/v2/channel.spec.ts @@ -8,7 +8,7 @@ import { Message } from '../../../src/models/v2/message'; import { Servers } from '../../../src/models/servers'; import { Server } from '../../../src/models/v2/server'; -import { serializeInput, assertBindings, assertDescription, assertExtensions } from './utils'; +import { serializeInput, assertCoreModel } from './utils'; import type { v2 } from '../../../src/spec-types'; @@ -136,8 +136,6 @@ describe('Channel model', function() { }); describe('mixins', function() { - assertBindings(Channel); - assertDescription(Channel); - assertExtensions(Channel); + assertCoreModel(Channel); }); }); diff --git a/test/models/v2/message-trait.spec.ts b/test/models/v2/message-trait.spec.ts index e397b133c..2bb83fa97 100644 --- a/test/models/v2/message-trait.spec.ts +++ b/test/models/v2/message-trait.spec.ts @@ -4,7 +4,7 @@ import { MessageExample } from '../../../src/models/v2/message-example'; import { MessageTrait } from '../../../src/models/v2/message-trait'; import { Schema } from '../../../src/models/v2/schema'; -import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; +import { assertCoreModel } from './utils'; describe('MessageTrait model', function() { describe('.id()', function() { @@ -181,62 +181,6 @@ describe('MessageTrait model', function() { }); }); - describe('.hasTitle()', function() { - it('should return true when there is a value', function() { - const doc = { title: '...' }; - const d = new MessageTrait(doc); - expect(d.hasTitle()).toEqual(true); - }); - - it('should return false when there is no value', function() { - const doc = {}; - const d = new MessageTrait(doc); - expect(d.hasTitle()).toEqual(false); - }); - }); - - describe('.title()', function() { - it('should return the value', function() { - const doc = { title: '...' }; - const d = new MessageTrait(doc); - expect(d.title()).toEqual(doc.title); - }); - - it('should return undefined when there is no value', function() { - const doc = {}; - const d = new MessageTrait(doc); - expect(d.title()).toBeUndefined(); - }); - }); - - describe('.hasSummary()', function() { - it('should return true when there is a value', function() { - const doc = { summary: '...' }; - const d = new MessageTrait(doc); - expect(d.hasSummary()).toEqual(true); - }); - - it('should return false when there is no value', function() { - const doc = {}; - const d = new MessageTrait(doc); - expect(d.hasSummary()).toEqual(false); - }); - }); - - describe('.summary()', function() { - it('should return the value', function() { - const doc = { summary: '...' }; - const d = new MessageTrait(doc); - expect(d.summary()).toEqual(doc.summary); - }); - - it('should return undefined when there is no value', function() { - const doc = {}; - const d = new MessageTrait(doc); - expect(d.summary()).toBeUndefined(); - }); - }); - describe('.examples()', function() { it('should return collection of examples', function() { const doc = { examples: [{ name: '...' }] }; @@ -255,10 +199,6 @@ describe('MessageTrait model', function() { }); describe('mixins', function() { - assertBindings(MessageTrait); - assertDescription(MessageTrait); - assertExtensions(MessageTrait); - assertExternalDocumentation(MessageTrait); - assertTags(MessageTrait); + assertCoreModel(MessageTrait); }); }); diff --git a/test/models/v2/message.spec.ts b/test/models/v2/message.spec.ts index c1ca1885c..fb68ea821 100644 --- a/test/models/v2/message.spec.ts +++ b/test/models/v2/message.spec.ts @@ -9,7 +9,7 @@ import { Schema } from '../../../src/models/v2/schema'; import { Servers } from '../../../src/models/servers'; import { Server } from '../../../src/models/v2/server'; -import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; +import { assertCoreModel } from './utils'; describe('Message model', function() { describe('.id()', function() { @@ -181,10 +181,6 @@ describe('Message model', function() { }); describe('mixins', function() { - assertBindings(Message); - assertDescription(Message); - assertExtensions(Message); - assertExternalDocumentation(Message); - assertTags(Message); + assertCoreModel(Message); }); }); diff --git a/test/models/v2/operation-trait.spec.ts b/test/models/v2/operation-trait.spec.ts index 149d93f25..0522be384 100644 --- a/test/models/v2/operation-trait.spec.ts +++ b/test/models/v2/operation-trait.spec.ts @@ -3,7 +3,7 @@ import { SecurityRequirement } from '../../../src/models/v2/security-requirement import { SecurityRequirements } from '../../../src/models/security-requirements'; import { SecurityScheme } from '../../../src/models/v2/security-scheme'; -import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; +import { assertCoreModel } from './utils'; describe('OperationTrait model', function() { describe('.id()', function() { @@ -34,34 +34,6 @@ describe('OperationTrait model', function() { }); }); - describe('.hasSummary()', function() { - it('should return true when there is a value', function() { - const doc = { summary: '...' }; - const d = new OperationTrait(doc); - expect(d.hasSummary()).toEqual(true); - }); - - it('should return false when there is no value', function() { - const doc = {}; - const d = new OperationTrait(doc); - expect(d.hasSummary()).toEqual(false); - }); - }); - - describe('.summary()', function() { - it('should return the value', function() { - const doc = { summary: '...' }; - const d = new OperationTrait(doc); - expect(d.summary()).toEqual(doc.summary); - }); - - it('should return undefined when there is no value', function() { - const doc = {}; - const d = new OperationTrait(doc); - expect(d.summary()).toBeUndefined(); - }); - }); - describe('.security()', function() { it('should return collection of security requirements', function() { const doc = { security: [{ requirement: [] }] }; @@ -88,10 +60,6 @@ describe('OperationTrait model', function() { }); describe('mixins', function() { - assertBindings(OperationTrait); - assertDescription(OperationTrait); - assertExtensions(OperationTrait); - assertExternalDocumentation(OperationTrait); - assertTags(OperationTrait); + assertCoreModel(OperationTrait); }); }); diff --git a/test/models/v2/operation.spec.ts b/test/models/v2/operation.spec.ts index 1a0c627d9..42689d14a 100644 --- a/test/models/v2/operation.spec.ts +++ b/test/models/v2/operation.spec.ts @@ -8,7 +8,7 @@ import { Message } from '../../../src/models/v2/message'; import { Servers } from '../../../src/models/servers'; import { Server } from '../../../src/models/v2/server'; -import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; +import { assertCoreModel } from './utils'; describe('Operation model', function() { describe('.id()', function() { @@ -163,10 +163,6 @@ describe('Operation model', function() { }); describe('mixins', function() { - assertBindings(Operation); - assertDescription(Operation); - assertExtensions(Operation); - assertExternalDocumentation(Operation); - assertTags(Operation); + assertCoreModel(Operation); }); }); diff --git a/test/models/v2/server.spec.ts b/test/models/v2/server.spec.ts index 0da5db926..28ec854ef 100644 --- a/test/models/v2/server.spec.ts +++ b/test/models/v2/server.spec.ts @@ -10,7 +10,7 @@ import { SecurityScheme } from '../../../src/models/v2/security-scheme'; import { SecurityRequirements } from '../../../src/models/security-requirements'; import { SecurityRequirement } from '../../../src/models/v2/security-requirement'; -import { serializeInput, assertBindings, assertDescription, assertExtensions } from './utils'; +import { serializeInput, assertCoreModel } from './utils'; import type { v2 } from '../../../src/spec-types'; @@ -206,9 +206,7 @@ describe('Server Model', function () { }); }); - describe('mixins inheritance', function () { - assertBindings(Server); - assertDescription(Server); - assertExtensions(Server); + describe('mixins', function () { + assertCoreModel(Server); }); }); diff --git a/test/models/v2/utils.ts b/test/models/v2/utils.ts index 38db79245..af4a8d9b5 100644 --- a/test/models/v2/utils.ts +++ b/test/models/v2/utils.ts @@ -1,7 +1,7 @@ import { BindingsV2, ExtensionsV2, ExternalDocumentationV2, TagsV2 } from '../../../src/models/v2'; import type { Constructor } from '../../../src/models/utils'; -import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from '../../../src/models/mixins'; +import type { BindingsMixinInterface, CoreMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, SummaryMixinInterface, TagsMixinInterface, TitleMixinInterface } from '../../../src/models/mixins'; type DeepPartial = T extends object ? { [P in keyof T]?: DeepPartial } : T; @@ -126,6 +126,41 @@ export function assertExternalDocumentation(model: Constructor) { + describe('.hasSummary()', () => { + const doc1 = { summary: 'Testing' }; + const doc2 = { summary: '' }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a boolean indicating if the object has summary', () => { + expect(d1.hasSummary()).toEqual(true); + expect(d2.hasSummary()).toEqual(false); + expect(d3.hasSummary()).toEqual(false); + }); + }); + + describe('.summary()', () => { + const doc1 = { summary: 'Testing' }; + const doc2 = { summary: '' }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a value', () => { + expect(d1.summary()).toEqual(doc1.summary); + expect(d2.summary()).toEqual(''); + }); + + it('should return an undefined', () => { + expect(d3.summary()).toEqual(undefined); + }); + }); +} + export function assertTags(model: Constructor) { describe('tags', () => { const doc1 = { tags: [{ name: 'test1' }, { name: 'test2' }] }; @@ -147,4 +182,49 @@ export function assertTags(model: Constructor) { expect(d3.tags().length).toEqual(0); }); }); -} \ No newline at end of file +} + +export function assertTitle(model: Constructor) { + describe('.hasTitle()', () => { + const doc1 = { title: 'Testing' }; + const doc2 = { title: '' }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a boolean indicating if the object has title', () => { + expect(d1.hasTitle()).toEqual(true); + expect(d2.hasTitle()).toEqual(false); + expect(d3.hasTitle()).toEqual(false); + }); + }); + + describe('.title()', () => { + const doc1 = { title: 'Testing' }; + const doc2 = { title: '' }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a value', () => { + expect(d1.title()).toEqual(doc1.title); + expect(d2.title()).toEqual(''); + }); + + it('should return an undefined', () => { + expect(d3.title()).toEqual(undefined); + }); + }); +} + +export function assertCoreModel(model: Constructor) { + assertBindings(model); + assertDescription(model); + assertExtensions(model); + assertExternalDocumentation(model); + assertSummary(model); + assertTags(model); + assertTitle(model); +} diff --git a/test/models/v3/channel.spec.ts b/test/models/v3/channel.spec.ts index 71e0a5904..ef424f515 100644 --- a/test/models/v3/channel.spec.ts +++ b/test/models/v3/channel.spec.ts @@ -8,7 +8,7 @@ import { Message } from '../../../src/models/v3/message'; import { Servers } from '../../../src/models/servers'; import { Server } from '../../../src/models/v3/server'; -import { serializeInput, assertBindings, assertDescription, assertExtensions } from './utils'; +import { serializeInput, assertCoreModel } from './utils'; import type { v3 } from '../../../src/spec-types'; @@ -132,8 +132,6 @@ describe('Channel model', function() { }); describe('mixins', function() { - assertBindings(Channel); - assertDescription(Channel); - assertExtensions(Channel); + assertCoreModel(Channel); }); }); diff --git a/test/models/v3/message-trait.spec.ts b/test/models/v3/message-trait.spec.ts index 3c83731e6..1e0c22119 100644 --- a/test/models/v3/message-trait.spec.ts +++ b/test/models/v3/message-trait.spec.ts @@ -4,7 +4,7 @@ import { MessageExample } from '../../../src/models/v3/message-example'; import { MessageTrait } from '../../../src/models/v3/message-trait'; import { Schema } from '../../../src/models/v3/schema'; -import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; +import { assertCoreModel } from './utils'; describe('MessageTrait model', function() { describe('.id()', function() { @@ -181,62 +181,6 @@ describe('MessageTrait model', function() { }); }); - describe('.hasTitle()', function() { - it('should return true when there is a value', function() { - const doc = { title: '...' }; - const d = new MessageTrait(doc); - expect(d.hasTitle()).toEqual(true); - }); - - it('should return false when there is no value', function() { - const doc = {}; - const d = new MessageTrait(doc); - expect(d.hasTitle()).toEqual(false); - }); - }); - - describe('.title()', function() { - it('should return the value', function() { - const doc = { title: '...' }; - const d = new MessageTrait(doc); - expect(d.title()).toEqual(doc.title); - }); - - it('should return undefined when there is no value', function() { - const doc = {}; - const d = new MessageTrait(doc); - expect(d.title()).toBeUndefined(); - }); - }); - - describe('.hasSummary()', function() { - it('should return true when there is a value', function() { - const doc = { summary: '...' }; - const d = new MessageTrait(doc); - expect(d.hasSummary()).toEqual(true); - }); - - it('should return false when there is no value', function() { - const doc = {}; - const d = new MessageTrait(doc); - expect(d.hasSummary()).toEqual(false); - }); - }); - - describe('.summary()', function() { - it('should return the value', function() { - const doc = { summary: '...' }; - const d = new MessageTrait(doc); - expect(d.summary()).toEqual(doc.summary); - }); - - it('should return undefined when there is no value', function() { - const doc = {}; - const d = new MessageTrait(doc); - expect(d.summary()).toBeUndefined(); - }); - }); - describe('.examples()', function() { it('should return collection of examples', function() { const doc = { examples: [{ name: '...' }] }; @@ -255,10 +199,6 @@ describe('MessageTrait model', function() { }); describe('mixins', function() { - assertBindings(MessageTrait); - assertDescription(MessageTrait); - assertExtensions(MessageTrait); - assertExternalDocumentation(MessageTrait); - assertTags(MessageTrait); + assertCoreModel(MessageTrait); }); }); diff --git a/test/models/v3/message.spec.ts b/test/models/v3/message.spec.ts index 4b4c8d78c..82e72ee17 100644 --- a/test/models/v3/message.spec.ts +++ b/test/models/v3/message.spec.ts @@ -9,7 +9,7 @@ import { Schema } from '../../../src/models/v3/schema'; import { Servers } from '../../../src/models/servers'; import { Server } from '../../../src/models/v3/server'; -import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; +import { assertCoreModel } from './utils'; describe('Message model', function() { describe('.id()', function() { @@ -181,10 +181,6 @@ describe('Message model', function() { }); describe('mixins', function() { - assertBindings(Message); - assertDescription(Message); - assertExtensions(Message); - assertExternalDocumentation(Message); - assertTags(Message); + assertCoreModel(Message); }); }); diff --git a/test/models/v3/operation-trait.spec.ts b/test/models/v3/operation-trait.spec.ts index 43d17acee..e5f871e1c 100644 --- a/test/models/v3/operation-trait.spec.ts +++ b/test/models/v3/operation-trait.spec.ts @@ -3,7 +3,7 @@ import { SecurityRequirement } from '../../../src/models/v3/security-requirement import { SecurityRequirements } from '../../../src/models/security-requirements'; import { SecurityScheme } from '../../../src/models/v3/security-scheme'; -import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; +import { assertCoreModel } from './utils'; describe('OperationTrait model', function() { describe('.id()', function() { @@ -32,34 +32,6 @@ describe('OperationTrait model', function() { }); }); - describe('.hasSummary()', function() { - it('should return true when there is a value', function() { - const doc = { summary: '...' }; - const d = new OperationTrait(doc); - expect(d.hasSummary()).toEqual(true); - }); - - it('should return false when there is no value', function() { - const doc = {}; - const d = new OperationTrait(doc); - expect(d.hasSummary()).toEqual(false); - }); - }); - - describe('.summary()', function() { - it('should return the value', function() { - const doc = { summary: '...' }; - const d = new OperationTrait(doc); - expect(d.summary()).toEqual(doc.summary); - }); - - it('should return undefined when there is no value', function() { - const doc = {}; - const d = new OperationTrait(doc); - expect(d.summary()).toBeUndefined(); - }); - }); - describe('.security()', function() { it('should return collection of security requirements', function() { const doc = { security: [{ requirement: [] }] }; @@ -86,10 +58,6 @@ describe('OperationTrait model', function() { }); describe('mixins', function() { - assertBindings(OperationTrait); - assertDescription(OperationTrait); - assertExtensions(OperationTrait); - assertExternalDocumentation(OperationTrait); - assertTags(OperationTrait); + assertCoreModel(OperationTrait); }); }); diff --git a/test/models/v3/operation.spec.ts b/test/models/v3/operation.spec.ts index bea5f06ae..6096e388d 100644 --- a/test/models/v3/operation.spec.ts +++ b/test/models/v3/operation.spec.ts @@ -8,7 +8,7 @@ import { Message } from '../../../src/models/v3/message'; import { Servers } from '../../../src/models/servers'; import { Server } from '../../../src/models/v3/server'; -import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; +import { assertCoreModel } from './utils'; describe('Operation model', function() { describe('.id()', function() { @@ -124,10 +124,6 @@ describe('Operation model', function() { }); describe('mixins', function() { - assertBindings(Operation); - assertDescription(Operation); - assertExtensions(Operation); - assertExternalDocumentation(Operation); - assertTags(Operation); + assertCoreModel(Operation); }); }); diff --git a/test/models/v3/server.spec.ts b/test/models/v3/server.spec.ts index 354d60409..454927b65 100644 --- a/test/models/v3/server.spec.ts +++ b/test/models/v3/server.spec.ts @@ -10,7 +10,7 @@ import { SecurityScheme } from '../../../src/models/v3/security-scheme'; import { SecurityRequirements } from '../../../src/models/security-requirements'; import { SecurityRequirement } from '../../../src/models/v3/security-requirement'; -import { serializeInput, assertBindings, assertDescription, assertExtensions } from './utils'; +import { serializeInput, assertCoreModel } from './utils'; import type { v3 } from '../../../src/spec-types'; @@ -198,9 +198,7 @@ describe('Server Model', function () { }); }); - describe('mixins inheritance', function () { - assertBindings(Server); - assertDescription(Server); - assertExtensions(Server); + describe('mixins', function () { + assertCoreModel(Server); }); }); diff --git a/test/models/v3/utils.ts b/test/models/v3/utils.ts index ee1f2750d..e2392e08f 100644 --- a/test/models/v3/utils.ts +++ b/test/models/v3/utils.ts @@ -1,7 +1,7 @@ import { BindingsV3, ExtensionsV3, ExternalDocumentationV3, TagsV3 } from '../../../src/models/v3'; import type { Constructor } from '../../../src/models/utils'; -import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from '../../../src/models/mixins'; +import type { BindingsMixinInterface, CoreMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, SummaryMixinInterface, TagsMixinInterface, TitleMixinInterface } from '../../../src/models/mixins'; type DeepPartial = T extends object ? { [P in keyof T]?: DeepPartial } : T; @@ -126,6 +126,41 @@ export function assertExternalDocumentation(model: Constructor) { + describe('.hasSummary()', () => { + const doc1 = { summary: 'Testing' }; + const doc2 = { summary: '' }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a boolean indicating if the object has summary', () => { + expect(d1.hasSummary()).toEqual(true); + expect(d2.hasSummary()).toEqual(false); + expect(d3.hasSummary()).toEqual(false); + }); + }); + + describe('.summary()', () => { + const doc1 = { summary: 'Testing' }; + const doc2 = { summary: '' }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a value', () => { + expect(d1.summary()).toEqual(doc1.summary); + expect(d2.summary()).toEqual(''); + }); + + it('should return an undefined', () => { + expect(d3.summary()).toEqual(undefined); + }); + }); +} + export function assertTags(model: Constructor) { describe('tags', () => { const doc1 = { tags: [{ name: 'test1' }, { name: 'test2' }] }; @@ -147,4 +182,49 @@ export function assertTags(model: Constructor) { expect(d3.tags().length).toEqual(0); }); }); -} \ No newline at end of file +} + +export function assertTitle(model: Constructor) { + describe('.hasTitle()', () => { + const doc1 = { title: 'Testing' }; + const doc2 = { title: '' }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a boolean indicating if the object has title', () => { + expect(d1.hasTitle()).toEqual(true); + expect(d2.hasTitle()).toEqual(false); + expect(d3.hasTitle()).toEqual(false); + }); + }); + + describe('.title()', () => { + const doc1 = { title: 'Testing' }; + const doc2 = { title: '' }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a value', () => { + expect(d1.title()).toEqual(doc1.title); + expect(d2.title()).toEqual(''); + }); + + it('should return an undefined', () => { + expect(d3.title()).toEqual(undefined); + }); + }); +} + +export function assertCoreModel(model: Constructor) { + assertBindings(model); + assertDescription(model); + assertExtensions(model); + assertExternalDocumentation(model); + assertSummary(model); + assertTags(model); + assertTitle(model); +} From 58b8b85fe86155610d74d6e3833d33aaa0f8a505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Wed, 12 Apr 2023 13:02:20 +0200 Subject: [PATCH 064/126] chore: update v3 models (#708) --- src/models/components.ts | 4 + src/models/external-documentation.ts | 1 + src/models/index.ts | 4 + src/models/operation-replies.ts | 10 +++ src/models/operation-reply-address.ts | 7 ++ src/models/operation-reply-addresses.ts | 10 +++ src/models/operation-reply.ts | 12 +++ src/models/operation.ts | 2 + src/models/security-scheme.ts | 1 + src/models/server.ts | 3 + src/models/tag.ts | 1 + src/models/v2/components.ts | 12 +++ src/models/v2/external-documentation.ts | 6 +- src/models/v2/operation.ts | 5 ++ src/models/v2/security-scheme.ts | 4 + src/models/v2/server.ts | 14 +++- src/models/v2/tag.ts | 6 +- src/models/v3/asyncapi.ts | 11 +-- src/models/v3/channel.ts | 17 ++--- src/models/v3/components.ts | 14 ++++ src/models/v3/external-documentation.ts | 6 +- src/models/v3/index.ts | 3 + src/models/v3/message-trait.ts | 8 +- src/models/v3/message.ts | 43 +++++------ src/models/v3/mixins.ts | 10 +-- src/models/v3/oauth-flow.ts | 10 +-- src/models/v3/operation-reply-address.ts | 30 ++++++++ src/models/v3/operation-reply.ts | 43 +++++++++++ src/models/v3/operation-trait.ts | 14 +--- src/models/v3/operation.ts | 35 +++++++-- src/models/v3/security-scheme.ts | 4 + src/models/v3/server.ts | 63 +++++++++------- src/models/v3/tag.ts | 6 +- src/spec-types/v3.ts | 74 ++++++++++++------- src/utils.ts | 14 ++++ test/models/v2/components.spec.ts | 22 ++++++ test/models/v2/operation.spec.ts | 8 ++ test/models/v2/server.spec.ts | 58 ++++++++++++--- test/models/v3/components.spec.ts | 36 +++++++++ test/models/v3/oauth-flow.spec.ts | 4 +- .../models/v3/operation-reply-address.spec.ts | 17 +++++ test/models/v3/operation-reply.spec.ts | 66 +++++++++++++++++ test/models/v3/operation-trait.spec.ts | 6 +- test/models/v3/operation.spec.ts | 37 ++++++++-- test/models/v3/server.spec.ts | 71 +++++++++++++----- 45 files changed, 663 insertions(+), 169 deletions(-) create mode 100644 src/models/operation-replies.ts create mode 100644 src/models/operation-reply-address.ts create mode 100644 src/models/operation-reply-addresses.ts create mode 100644 src/models/operation-reply.ts create mode 100644 src/models/v3/operation-reply-address.ts create mode 100644 src/models/v3/operation-reply.ts create mode 100644 test/models/v3/operation-reply-address.spec.ts create mode 100644 test/models/v3/operation-reply.spec.ts diff --git a/src/models/components.ts b/src/models/components.ts index c88d88991..d75745e97 100644 --- a/src/models/components.ts +++ b/src/models/components.ts @@ -9,6 +9,8 @@ import type { SchemasInterface } from './schemas'; import type { ChannelParametersInterface } from './channel-parameters'; import type { ServerVariablesInterface } from './server-variables'; import type { OperationTraitsInterface } from './operation-traits'; +import type { OperationRepliesInterface } from './operation-replies'; +import type { OperationReplyAddressesInterface } from './operation-reply-addresses'; import type { MessageTraitsInterface } from './message-traits'; import type { SecuritySchemesInterface } from './security-schemes'; import type { CorrelationIdsInterface } from './correlation-ids'; @@ -25,6 +27,8 @@ export interface ComponentsInterface extends BaseModel, ExtensionsMixinInterface serverVariables(): ServerVariablesInterface; operationTraits(): OperationTraitsInterface; messageTraits(): MessageTraitsInterface; + replies(): OperationRepliesInterface; + replyAddresses(): OperationReplyAddressesInterface; correlationIds(): CorrelationIdsInterface; securitySchemes(): SecuritySchemesInterface; tags(): TagsInterface; diff --git a/src/models/external-documentation.ts b/src/models/external-documentation.ts index eefc56df2..9692a71d8 100644 --- a/src/models/external-documentation.ts +++ b/src/models/external-documentation.ts @@ -4,5 +4,6 @@ import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixi export interface ExternalDocumentationInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { + id(): string | undefined; url(): string; } \ No newline at end of file diff --git a/src/models/index.ts b/src/models/index.ts index cb0aa250f..167341c99 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -27,6 +27,10 @@ export * from './message'; export * from './messages'; export * from './oauth-flow'; export * from './oauth-flows'; +export * from './operation-replies'; +export * from './operation-reply-address'; +export * from './operation-reply-addresses'; +export * from './operation-reply'; export * from './operation-trait'; export * from './operation-traits'; export * from './operation'; diff --git a/src/models/operation-replies.ts b/src/models/operation-replies.ts new file mode 100644 index 000000000..a90768e08 --- /dev/null +++ b/src/models/operation-replies.ts @@ -0,0 +1,10 @@ +import { Collection } from './collection'; +import type { OperationReplyInterface } from './operation-reply'; + +export type OperationRepliesInterface = Collection + +export class OperationReplies extends Collection implements OperationRepliesInterface { + override get(id: string): OperationReplyInterface | undefined { + return this.collections.find(reply => reply.id() === id); + } +} diff --git a/src/models/operation-reply-address.ts b/src/models/operation-reply-address.ts new file mode 100644 index 000000000..ecdaac2a9 --- /dev/null +++ b/src/models/operation-reply-address.ts @@ -0,0 +1,7 @@ +import type { BaseModel } from './base'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; + +export interface OperationReplyAddressInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { + id(): string | undefined; + location(): string; +} diff --git a/src/models/operation-reply-addresses.ts b/src/models/operation-reply-addresses.ts new file mode 100644 index 000000000..34e9bf771 --- /dev/null +++ b/src/models/operation-reply-addresses.ts @@ -0,0 +1,10 @@ +import { Collection } from './collection'; +import type { OperationReplyAddressInterface } from './operation-reply-address'; + +export type OperationReplyAddressesInterface = Collection + +export class OperationReplyAddresses extends Collection implements OperationReplyAddressesInterface { + override get(id: string): OperationReplyAddressInterface | undefined { + return this.collections.find(reply => reply.id() === id); + } +} diff --git a/src/models/operation-reply.ts b/src/models/operation-reply.ts new file mode 100644 index 000000000..ba8b89496 --- /dev/null +++ b/src/models/operation-reply.ts @@ -0,0 +1,12 @@ +import type { BaseModel } from './base'; +import type { ExtensionsMixinInterface } from './mixins'; +import type { ChannelInterface } from './channel'; +import type { OperationReplyAddressInterface } from './operation-reply-address'; + +export interface OperationReplyInterface extends BaseModel, ExtensionsMixinInterface { + id(): string | undefined; + hasAddress(): boolean; + address(): OperationReplyAddressInterface | undefined; + hasChannel(): boolean; + channel(): ChannelInterface | undefined; +} diff --git a/src/models/operation.ts b/src/models/operation.ts index ef6c9516a..99d9b20e0 100644 --- a/src/models/operation.ts +++ b/src/models/operation.ts @@ -1,6 +1,7 @@ import type { BaseModel } from './base'; import type { OperationTraitsInterface } from './operation-traits'; import type { OperationTraitInterface } from './operation-trait'; +import type { OperationReplyInterface } from './operation-reply'; import type { ChannelsInterface } from './channels'; import type { ServersInterface } from './servers'; import type { MessagesInterface } from './messages'; @@ -14,5 +15,6 @@ export interface OperationInterface extends BaseModel, OperationTraitInterface { servers(): ServersInterface; channels(): ChannelsInterface messages(): MessagesInterface; + reply(): OperationReplyInterface | undefined; traits(): OperationTraitsInterface; } diff --git a/src/models/security-scheme.ts b/src/models/security-scheme.ts index e3c084605..9e70e2b88 100644 --- a/src/models/security-scheme.ts +++ b/src/models/security-scheme.ts @@ -9,6 +9,7 @@ export interface SecuritySchemeInterface extends BaseModel, DescriptionMixinInte openIdConnectUrl(): string | undefined; scheme(): string | undefined; flows(): OAuthFlowsInterface | undefined; + scopes(): string[] | undefined; type(): string; in(): string | undefined; } diff --git a/src/models/server.ts b/src/models/server.ts index 3406a1d38..2104d52be 100644 --- a/src/models/server.ts +++ b/src/models/server.ts @@ -9,7 +9,10 @@ import type { SecurityRequirementsInterface } from './security-requirements'; export interface ServerInterface extends BaseModel, CoreMixinInterface { id(): string url(): string; + host(): string; protocol(): string; + hasPathname(): boolean; + pathname(): string | undefined; protocolVersion(): string | undefined; hasProtocolVersion(): boolean; channels(): ChannelsInterface; diff --git a/src/models/tag.ts b/src/models/tag.ts index 87fc5b2ab..237633558 100644 --- a/src/models/tag.ts +++ b/src/models/tag.ts @@ -4,5 +4,6 @@ import type { DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocum export interface TagInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface { + id(): string | undefined; name(): string; } \ No newline at end of file diff --git a/src/models/v2/components.ts b/src/models/v2/components.ts index d66dc06d9..ec2d22321 100644 --- a/src/models/v2/components.ts +++ b/src/models/v2/components.ts @@ -21,6 +21,8 @@ import { ChannelParameters } from '../channel-parameters'; import { ServerVariables } from '../server-variables'; import { OperationTraits } from '../operation-traits'; import { MessageTraits } from '../message-traits'; +import { OperationReplies } from '../operation-replies'; +import { OperationReplyAddresses } from '../operation-reply-addresses'; import { SecuritySchemes } from '../security-schemes'; import { CorrelationIds } from '../correlation-ids'; import { Operations } from '../operations'; @@ -43,6 +45,8 @@ import type { ServerVariablesInterface } from '../server-variables'; import type { OperationTraitsInterface } from '../operation-traits'; import type { SecuritySchemesInterface } from '../security-schemes'; import type { MessageTraitsInterface } from '../message-traits'; +import type { OperationRepliesInterface } from '../operation-replies'; +import type { OperationReplyAddressesInterface } from '../operation-reply-addresses'; import type { OperationsInterface } from '../operations'; import type { ExternalDocumentationsInterface } from '../external-documentations'; import type { TagsInterface } from '../tags'; @@ -86,6 +90,14 @@ export class Components extends BaseModel implements Compon return this.createCollection('messageTraits', MessageTraits, MessageTrait); } + replies(): OperationRepliesInterface { + return new OperationReplies([]); + } + + replyAddresses(): OperationReplyAddressesInterface { + return new OperationReplyAddresses([]); + } + correlationIds(): CorrelationIds { return this.createCollection('correlationIds', CorrelationIds, CorrelationId); } diff --git a/src/models/v2/external-documentation.ts b/src/models/v2/external-documentation.ts index ccaf9d7a3..1e0423949 100644 --- a/src/models/v2/external-documentation.ts +++ b/src/models/v2/external-documentation.ts @@ -7,7 +7,11 @@ import type { ExtensionsInterface } from '../extensions'; import type { v2 } from '../../spec-types'; -export class ExternalDocumentation extends BaseModel implements ExternalDocumentationInterface { +export class ExternalDocumentation extends BaseModel implements ExternalDocumentationInterface { + id(): string | undefined { + return; + } + url(): string { return this._json.url; } diff --git a/src/models/v2/operation.ts b/src/models/v2/operation.ts index e71871981..9f2b34e19 100644 --- a/src/models/v2/operation.ts +++ b/src/models/v2/operation.ts @@ -12,6 +12,7 @@ import type { ChannelsInterface } from '../channels'; import type { ChannelInterface } from '../channel'; import type { MessagesInterface } from '../messages'; import type { OperationAction, OperationInterface } from '../operation'; +import type { OperationReplyInterface } from '../operation-reply'; import type { OperationTraitsInterface } from '../operation-traits'; import type { ServersInterface } from '../servers'; import type { ServerInterface } from '../server'; @@ -76,6 +77,10 @@ export class Operation extends OperationTrait implements Ope ); } + reply(): OperationReplyInterface | undefined { + return undefined; + } + traits(): OperationTraitsInterface { return new OperationTraits( (this._json.traits || []).map((trait: any, index: number) => { diff --git a/src/models/v2/security-scheme.ts b/src/models/v2/security-scheme.ts index 2e3b29930..65d8bb60b 100644 --- a/src/models/v2/security-scheme.ts +++ b/src/models/v2/security-scheme.ts @@ -43,6 +43,10 @@ export class SecurityScheme extends BaseModel implement return this._json.url; } + host(): string { + return resolveServerUrl(this._json.url).host; + } + protocol(): string { return this._json.protocol; } + hasPathname(): boolean { + return !!this.pathname(); + } + + pathname(): string | undefined { + return resolveServerUrl(this._json.url).pathname; + } + hasProtocolVersion(): boolean { return !!this._json.protocolVersion; } diff --git a/src/models/v2/tag.ts b/src/models/v2/tag.ts index e67144333..7b1578c1b 100644 --- a/src/models/v2/tag.ts +++ b/src/models/v2/tag.ts @@ -8,7 +8,11 @@ import type { TagInterface } from '../tag'; import type { v2 } from '../../spec-types'; -export class Tag extends BaseModel implements TagInterface { +export class Tag extends BaseModel implements TagInterface { + id(): string | undefined { + return; + } + name(): string { return this._json.name; } diff --git a/src/models/v3/asyncapi.ts b/src/models/v3/asyncapi.ts index dae3d17bb..b6c480814 100644 --- a/src/models/v3/asyncapi.ts +++ b/src/models/v3/asyncapi.ts @@ -47,7 +47,7 @@ export class AsyncAPIDocument extends BaseModel implements As servers(): ServersInterface { return new Servers( Object.entries(this._json.servers || {}).map(([serverName, server]) => - this.createModel(Server, server, { id: serverName, pointer: `/servers/${tilde(serverName)}` }) + this.createModel(Server, server as v3.ServerObject, { id: serverName, pointer: `/servers/${tilde(serverName)}` }) ) ); } @@ -55,7 +55,7 @@ export class AsyncAPIDocument extends BaseModel implements As channels(): ChannelsInterface { return new Channels( Object.entries(this._json.channels || {}).map(([channelId, channel]) => - this.createModel(Channel, channel, { id: channelId, pointer: `/channels/${tilde(channelId)}` }) + this.createModel(Channel, channel as v3.ChannelObject, { id: channelId, pointer: `/channels/${tilde(channelId)}` }) ) ); } @@ -63,7 +63,7 @@ export class AsyncAPIDocument extends BaseModel implements As operations(): OperationsInterface { return new Operations( Object.entries(this._json.operations || {}).map(([operationId, operation]) => - this.createModel(Operation, operation, { id: operationId, pointer: `/operations/${tilde(operationId)}` }) + this.createModel(Operation, operation as v3.OperationObject, { id: operationId, pointer: `/operations/${tilde(operationId)}` }) ) ); } @@ -73,8 +73,9 @@ export class AsyncAPIDocument extends BaseModel implements As const messagesData: any[] = []; this.channels().forEach(channel => { channel.messages().forEach(message => { - if (!messagesData.includes(message.json())) { - messagesData.push(message.json()); + const messageData = message.json(); + if (!messagesData.includes(messageData)) { + messagesData.push(messageData); messages.push(message); } }); diff --git a/src/models/v3/channel.ts b/src/models/v3/channel.ts index 355a900ab..394791177 100644 --- a/src/models/v3/channel.ts +++ b/src/models/v3/channel.ts @@ -31,14 +31,9 @@ export class Channel extends CoreModel impleme servers(): ServersInterface { const servers: ServerInterface[] = []; const allowedServers = this._json.servers || []; - Object.entries(this._meta.asyncapi?.parsed?.servers || {}).forEach(([serverName, server]) => { - if (allowedServers.length === 0) { + Object.entries(this._meta.asyncapi?.parsed.servers || {}).forEach(([serverName, server]) => { + if (allowedServers.length === 0 || allowedServers.includes(server)) { servers.push(this.createModel(Server, server, { id: serverName, pointer: `/servers/${serverName}` })); - } else { - const index = allowedServers.indexOf(server); - if (index !== -1) { - servers.push(this.createModel(Server, server, { id: serverName, pointer: this.jsonPath(`servers/${index}`) })); - } } }); return new Servers(servers); @@ -47,9 +42,9 @@ export class Channel extends CoreModel impleme operations(): OperationsInterface { const operations: OperationInterface[] = []; Object.entries(((this._meta.asyncapi?.parsed as v3.AsyncAPIObject)?.operations || {})).forEach(([operationId, operation]) => { - if (operation.channel === this._json) { + if ((operation as v3.OperationObject).channel === this._json) { operations.push( - this.createModel(Operation, operation, { id: operationId, pointer: `/operations/${operationId}` }), + this.createModel(Operation, operation as v3.OperationObject, { id: operationId, pointer: `/operations/${operationId}` }), ); } }); @@ -59,7 +54,7 @@ export class Channel extends CoreModel impleme messages(): MessagesInterface { return new Messages( Object.entries(this._json.messages || {}).map(([messageName, message]) => { - return this.createModel(Message, message, { id: messageName, pointer: this.jsonPath(`messages/${messageName}`) }); + return this.createModel(Message, message as v3.MessageObject, { id: messageName, pointer: this.jsonPath(`messages/${messageName}`) }); }) ); } @@ -69,7 +64,7 @@ export class Channel extends CoreModel impleme Object.entries(this._json.parameters || {}).map(([channelParameterName, channelParameter]) => { return this.createModel(ChannelParameter, channelParameter as v3.ParameterObject, { id: channelParameterName, - pointer: `${this._meta.pointer}/parameters/${channelParameterName}` + pointer: this.jsonPath(`parameters/${channelParameterName}`), }); }) ); diff --git a/src/models/v3/components.ts b/src/models/v3/components.ts index b58501a79..1415b8fe3 100644 --- a/src/models/v3/components.ts +++ b/src/models/v3/components.ts @@ -8,6 +8,8 @@ import { ChannelParameter } from './channel-parameter'; import { CorrelationId } from './correlation-id'; import { MessageTrait } from './message-trait'; import { OperationTrait } from './operation-trait'; +import { OperationReply } from './operation-reply'; +import { OperationReplyAddress } from './operation-reply-address'; import { Schema } from './schema'; import { SecurityScheme } from './security-scheme'; import { Server } from './server'; @@ -21,6 +23,8 @@ import { ChannelParameters } from '../channel-parameters'; import { ServerVariables } from '../server-variables'; import { OperationTraits } from '../operation-traits'; import { MessageTraits } from '../message-traits'; +import { OperationReplies } from '../operation-replies'; +import { OperationReplyAddresses } from '../operation-reply-addresses'; import { SecuritySchemes } from '../security-schemes'; import { CorrelationIds } from '../correlation-ids'; import { Operations } from '../operations'; @@ -46,6 +50,8 @@ import type { ServerVariablesInterface } from '../server-variables'; import type { OperationTraitsInterface } from '../operation-traits'; import type { SecuritySchemesInterface } from '../security-schemes'; import type { MessageTraitsInterface } from '../message-traits'; +import type { OperationRepliesInterface } from '../operation-replies'; +import type { OperationReplyAddressesInterface } from '../operation-reply-addresses'; import type { OperationsInterface } from '../operations'; import type { ExternalDocumentationsInterface } from '../external-documentations'; import type { TagsInterface } from '../tags'; @@ -89,6 +95,14 @@ export class Components extends BaseModel implements Compon return this.createCollection('messageTraits', MessageTraits, MessageTrait); } + replies(): OperationRepliesInterface { + return this.createCollection('replies', OperationReplies, OperationReply); + } + + replyAddresses(): OperationReplyAddressesInterface { + return this.createCollection('replyAddresses', OperationReplyAddresses, OperationReplyAddress); + } + correlationIds(): CorrelationIds { return this.createCollection('correlationIds', CorrelationIds, CorrelationId); } diff --git a/src/models/v3/external-documentation.ts b/src/models/v3/external-documentation.ts index 27abd8aab..f98f1296e 100644 --- a/src/models/v3/external-documentation.ts +++ b/src/models/v3/external-documentation.ts @@ -7,7 +7,11 @@ import type { ExtensionsInterface } from '../extensions'; import type { v3 } from '../../spec-types'; -export class ExternalDocumentation extends BaseModel implements ExternalDocumentationInterface { +export class ExternalDocumentation extends BaseModel implements ExternalDocumentationInterface { + id(): string | undefined { + return this._meta.id; + } + url(): string { return this._json.url; } diff --git a/src/models/v3/index.ts b/src/models/v3/index.ts index 6187a29e2..d774e455d 100644 --- a/src/models/v3/index.ts +++ b/src/models/v3/index.ts @@ -23,6 +23,9 @@ export { OAuthFlow as OAuthFlowV3 } from './oauth-flow'; export { OAuthFlows as OAuthFlowsV3 } from './oauth-flows'; export { OperationTrait as OperationTraitV3 } from './operation-trait'; export { OperationTraits as OperationTraitsV3 } from '../operation-traits'; +export { OperationReplies as OperationRepliesV3 } from '../operation-replies'; +export { OperationReplyAddress as OperationReplyAddressV3 } from './operation-reply-address'; +export { OperationReply as OperationReplyV3 } from './operation-reply'; export { Operation as OperationV3 } from './operation'; export { Operations as OperationsV3 } from '../operations'; export { Schema as SchemaV3 } from './schema'; diff --git a/src/models/v3/message-trait.ts b/src/models/v3/message-trait.ts index e50e76d70..5a261e77d 100644 --- a/src/models/v3/message-trait.ts +++ b/src/models/v3/message-trait.ts @@ -37,7 +37,7 @@ export class MessageTrait { - return this.createModel(MessageExample, example, { pointer: `${this._meta.pointer}/examples/${index}` }); + return this.createModel(MessageExample, example, { pointer: this.jsonPath(`examples/${index}`) }); }) ); } diff --git a/src/models/v3/message.ts b/src/models/v3/message.ts index 7e859f7db..9ec639003 100644 --- a/src/models/v3/message.ts +++ b/src/models/v3/message.ts @@ -1,6 +1,6 @@ import { Channels } from '../channels'; -import { Channel } from './channel'; import { Operations } from '../operations'; +import { Operation } from './operation'; import { MessageTraits } from '../message-traits'; import { MessageTrait } from './message-trait'; import { Servers } from '../servers'; @@ -25,7 +25,7 @@ export class Message extends MessageTrait implements MessageIn payload(): SchemaInterface | undefined { if (!this._json.payload) return undefined; - return this.createModel(Schema, this._json.payload, { pointer: `${this._meta.pointer}/payload` }); + return this.createModel(Schema, this._json.payload, { pointer: this.jsonPath('payload') }); } servers(): ServersInterface { @@ -33,8 +33,9 @@ export class Message extends MessageTrait implements MessageIn const serversData: any[] = []; this.channels().forEach(channel => { channel.servers().forEach(server => { - if (!serversData.includes(server.json())) { - serversData.push(server.json()); + const serverData = server.json(); + if (!serversData.includes(serverData)) { + serversData.push(serverData); servers.push(server); } }); @@ -44,32 +45,26 @@ export class Message extends MessageTrait implements MessageIn channels(): ChannelsInterface { const channels: ChannelInterface[] = []; - Object.entries((this._meta.asyncapi?.parsed?.channels || {}) as v3.ChannelsObject).forEach(([channelName, channel]) => { - const hasMessage = Object.entries(channel.messages || {}).some(([, message]) => message === this._json); - if (hasMessage) { - channels.push( - this.createModel(Channel, channel, { id: channelName, pointer: `/channels/${channelName}` }), - ); - } - }); - Object.entries((this._meta.asyncapi?.parsed as v3.AsyncAPIObject)?.operations || {}).forEach(([operationId, operation]) => { - const operationChannel = operation.channel as v3.ChannelObject | undefined; - if (!channels.some(channel => channel.json() === operationChannel)) { - const hasMessage = Object.entries(operationChannel?.messages || {}).some(([, message]) => message === this._json); - if (hasMessage) { - channels.push( - this.createModel(Channel, operationChannel as v3.ChannelObject, { id: '', pointer: `/operations/${operationId}/channel` }), - ); + const channelData: any[] = []; + this.operations().forEach(operation => { + operation.channels().forEach(channel => { + const channelsData = channel.json(); + if (!channelData.includes(channelsData)) { + channelData.push(channelsData); + channels.push(channel); } - } + }); }); return new Channels(channels); } operations(): OperationsInterface { const operations: OperationInterface[] = []; - this.channels().forEach(channel => { - operations.push(...channel.operations()); + Object.entries((this._meta.asyncapi?.parsed as v3.AsyncAPIObject)?.operations || {}).forEach(([operationId, operation]) => { + const operationModel = this.createModel(Operation, operation as v3.OperationObject, { id: operationId, pointer: `/operations/${operationId}` }); + if (operationModel.messages().some(m => m.json() === this._json)) { + operations.push(operationModel); + } }); return new Operations(operations); } @@ -77,7 +72,7 @@ export class Message extends MessageTrait implements MessageIn traits(): MessageTraitsInterface { return new MessageTraits( (this._json.traits || []).map((trait: any, index: number) => { - return this.createModel(MessageTrait, trait, { id: '', pointer: `${this._meta.pointer}/traits/${index}` }); + return this.createModel(MessageTrait, trait, { id: '', pointer: this.jsonPath(`traits/${index}`) }); }) ); } diff --git a/src/models/v3/mixins.ts b/src/models/v3/mixins.ts index db7532e4c..974fc7416 100644 --- a/src/models/v3/mixins.ts +++ b/src/models/v3/mixins.ts @@ -29,7 +29,7 @@ export interface CoreObject extends v3.SpecificationExtensions { title?: string; summary?: string; description?: string; - externalDocs?: v3.ExternalDocumentationObject; + externalDocs?: v3.ExternalDocumentationObject | v3.ReferenceObject; tags?: v3.TagsObject; bindings?: BindingsObject; } @@ -110,12 +110,12 @@ export function extensions(model: BaseModel): Extens return new Extensions(extensions); } -export function hasExternalDocs(model: BaseModel<{ externalDocs?: v3.ExternalDocumentationObject }>): boolean { +export function hasExternalDocs(model: BaseModel<{ externalDocs?: v3.ExternalDocumentationObject | v3.ReferenceObject }>): boolean { return Object.keys(model.json('externalDocs') || {}).length > 0; } -export function externalDocs(model: BaseModel<{ externalDocs?: v3.ExternalDocumentationObject }>): ExternalDocumentationInterface | undefined { - if (hasExternalDocs(model)) { +export function externalDocs(model: BaseModel<{ externalDocs?: v3.ExternalDocumentationObject | v3.ReferenceObject }>): ExternalDocumentationInterface | undefined { + if (hasExternalDocs(model as BaseModel<{ externalDocs?: v3.ExternalDocumentationObject }>)) { return new ExternalDocumentation(model.json('externalDocs') as v3.ExternalDocumentationObject); } } @@ -123,7 +123,7 @@ export function externalDocs(model: BaseModel<{ externalDocs?: v3.ExternalDocume export function tags(model: BaseModel<{ tags?: v3.TagsObject }>): TagsInterface { return new Tags( (model.json('tags') || []).map((tag, idx) => - createModel(Tag, tag, { pointer: model.jsonPath(`tags/${idx}`) }, model) + createModel(Tag, tag as v3.TagObject, { pointer: model.jsonPath(`tags/${idx}`) }, model) ) ); } diff --git a/src/models/v3/oauth-flow.ts b/src/models/v3/oauth-flow.ts index 464d3dd7d..6c168dff6 100644 --- a/src/models/v3/oauth-flow.ts +++ b/src/models/v3/oauth-flow.ts @@ -5,11 +5,11 @@ import { extensions } from './mixins'; import type { ExtensionsInterface } from '../extensions'; import type { OAuthFlowInterface } from '../oauth-flow'; -import type { v2 } from '../../spec-types'; +import type { v3 } from '../../spec-types'; -export class OAuthFlow extends BaseModel implements OAuthFlowInterface { +export class OAuthFlow extends BaseModel implements OAuthFlowInterface { authorizationUrl(): string | undefined { - return this.json().authorizationUrl; + return this.json().authorizationUrl; } hasRefreshUrl(): boolean { @@ -21,11 +21,11 @@ export class OAuthFlow extends BaseModel im } scopes(): Record | undefined { - return this._json.scopes; + return this._json.availableScopes; } tokenUrl(): string | undefined { - return this.json>().tokenUrl; + return this.json>().tokenUrl; } extensions(): ExtensionsInterface { diff --git a/src/models/v3/operation-reply-address.ts b/src/models/v3/operation-reply-address.ts new file mode 100644 index 000000000..8e989a3ad --- /dev/null +++ b/src/models/v3/operation-reply-address.ts @@ -0,0 +1,30 @@ +import { BaseModel } from '../base'; + +import { hasDescription, description, extensions } from './mixins'; + +import type { ExtensionsInterface } from '../extensions'; +import type { OperationReplyAddressInterface } from '../operation-reply-address'; + +import type { v3 } from '../../spec-types'; + +export class OperationReplyAddress extends BaseModel implements OperationReplyAddressInterface { + id(): string | undefined { + return this._meta.id; + } + + location(): string { + return this._json.location; + } + + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} diff --git a/src/models/v3/operation-reply.ts b/src/models/v3/operation-reply.ts new file mode 100644 index 000000000..f26b32ef1 --- /dev/null +++ b/src/models/v3/operation-reply.ts @@ -0,0 +1,43 @@ +import { BaseModel } from '../base'; +import { Channel } from './channel'; +import { OperationReplyAddress } from './operation-reply-address'; + +import { extensions } from './mixins'; + +import type { ExtensionsInterface } from '../extensions'; +import type { OperationReplyInterface } from '../operation-reply'; +import type { OperationReplyAddressInterface } from '../operation-reply-address'; +import type { ChannelInterface } from '../channel'; + +import type { v3 } from '../../spec-types'; + +export class OperationReply extends BaseModel implements OperationReplyInterface { + id(): string | undefined { + return this._meta.id; + } + + hasAddress(): boolean { + return !!this._json.address; + } + + address(): OperationReplyAddressInterface | undefined { + if (this._json.address) { + return this.createModel(OperationReplyAddress, this._json.address as v3.OperationReplyAddressObject, { pointer: this.jsonPath('address') }); + } + } + + hasChannel(): boolean { + return !!this._json.channel; + } + + channel(): ChannelInterface | undefined { + if (this._json.channel) { + return this.createModel(Channel, this._json.channel as v3.ChannelObject, { id: '', pointer: this.jsonPath('channel') }); + } + return this._json.channel; + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} diff --git a/src/models/v3/operation-trait.ts b/src/models/v3/operation-trait.ts index b94c72188..46668a2bb 100644 --- a/src/models/v3/operation-trait.ts +++ b/src/models/v3/operation-trait.ts @@ -18,16 +18,10 @@ export class OperationTrait; - return (this._json.security || []).map((requirement, index) => { - const requirements: SecurityRequirement[] = []; - Object.entries(requirement).forEach(([security, scopes]) => { - const scheme = this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }); - requirements.push( - this.createModel(SecurityRequirement, { scheme, scopes }, { id: security, pointer: `${this.meta().pointer}/security/${index}/${security}` }) - ); - }); - return new SecurityRequirements(requirements); + return (this._json.security || []).map((security, index) => { + const scheme = this.createModel(SecurityScheme, security as v3.SecuritySchemeObject, { id: '', pointer: this.jsonPath(`security/${index}`) }); + const requirement = this.createModel(SecurityRequirement, { scheme, scopes: (security as v3.SecuritySchemeObject).scopes }, { id: '', pointer: this.jsonPath(`security/${index}`) }); + return new SecurityRequirements([requirement]); }); } } diff --git a/src/models/v3/operation.ts b/src/models/v3/operation.ts index 6f12ac880..655b1da3d 100644 --- a/src/models/v3/operation.ts +++ b/src/models/v3/operation.ts @@ -1,14 +1,17 @@ import { Messages } from '../messages'; +import { Message } from './message'; import { Channels } from '../channels'; import { Channel } from './channel'; import { OperationTraits } from '../operation-traits'; import { OperationTrait } from './operation-trait'; +import { OperationReply } from './operation-reply'; import { Servers } from '../servers'; import type { ChannelsInterface } from '../channels'; import type { MessagesInterface } from '../messages'; import type { MessageInterface } from '../message'; import type { OperationInterface, OperationAction } from '../operation'; +import type { OperationReplyInterface } from 'models/operation-reply'; import type { OperationTraitsInterface } from '../operation-traits'; import type { ServersInterface } from '../servers'; import type { ServerInterface } from '../server'; @@ -33,8 +36,9 @@ export class Operation extends OperationTrait implements Ope const serversData: any[] = []; this.channels().forEach(channel => { channel.servers().forEach(server => { - if (!serversData.includes(server.json())) { - serversData.push(server.json()); + const serverData = server.json(); + if (!serversData.includes(serverData)) { + serversData.push(serverData); servers.push(server); } }); @@ -44,25 +48,44 @@ export class Operation extends OperationTrait implements Ope channels(): ChannelsInterface { if (this._json.channel) { - return new Channels([ - this.createModel(Channel, this._json.channel as v3.ChannelObject, { id: '', pointer: this.jsonPath('channel') }) - ]); + for (const [channelName, channel] of Object.entries(this._meta.asyncapi?.parsed.channels || {})) { + if (channel === this._json.channel) { + return new Channels([ + this.createModel(Channel, this._json.channel as v3.ChannelObject, { id: channelName, pointer: `/channels/${channelName}` }) + ]); + } + } } return new Channels([]); } messages(): MessagesInterface { const messages: MessageInterface[] = []; + if (Array.isArray(this._json.messages)) { + this._json.messages.forEach((message, index) => { + messages.push( + this.createModel(Message, message as v3.MessageObject, { id: '', pointer: this.jsonPath(`messages/${index}`) }) + ); + }); + return new Messages(messages); + } + this.channels().forEach(channel => { messages.push(...channel.messages()); }); return new Messages(messages); } + reply(): OperationReplyInterface | undefined { + if (this._json.reply) { + return this.createModel(OperationReply, this._json.reply as v3.OperationReplyObject, { pointer: this.jsonPath('reply') }); + } + } + traits(): OperationTraitsInterface { return new OperationTraits( (this._json.traits || []).map((trait: any, index: number) => { - return this.createModel(OperationTrait, trait, { id: '', pointer: `${this._meta.pointer}/traits/${index}` }); + return this.createModel(OperationTrait, trait, { id: '', pointer: this.jsonPath(`traits/${index}`) }); }) ); } diff --git a/src/models/v3/security-scheme.ts b/src/models/v3/security-scheme.ts index 09040e9bf..d922664e4 100644 --- a/src/models/v3/security-scheme.ts +++ b/src/models/v3/security-scheme.ts @@ -43,6 +43,10 @@ export class SecurityScheme extends BaseModel implement } url(): string { - return this._json.url; + let host = this._json.host; + if (!host.endsWith('/')) { + host = `${host}/`; + } + let pathname = this._json.pathname || ''; + if (pathname.startsWith('/')) { + pathname = pathname.slice(1); + } + return `${host}${pathname}`; + } + + host(): string { + return this._json.host; } protocol(): string { return this._json.protocol; } + hasPathname(): boolean { + return !!this._json.pathname; + } + + pathname(): string | undefined { + return this._json.pathname; + } + hasProtocolVersion(): boolean { return !!this._json.protocolVersion; } @@ -46,18 +66,9 @@ export class Server extends CoreModel implement channels(): ChannelsInterface { const channels: ChannelInterface[] = []; Object.entries((this._meta.asyncapi?.parsed as v3.AsyncAPIObject)?.channels || {}).forEach(([channelName, channel]) => { - const allowedServers: v3.ServerObject[] = channel.servers || []; + const allowedServers = (channel as v3.ChannelObject).servers || []; if (allowedServers.length === 0 || allowedServers.includes(this._json)) { - channels.push(this.createModel(Channel, channel, { id: channelName, pointer: `/channels/${tilde(channelName)}` })); - } - }); - Object.entries((this._meta.asyncapi?.parsed as v3.AsyncAPIObject)?.operations || {}).forEach(([operationId, operation]) => { - const operationChannel = operation.channel as v3.ChannelObject | undefined; - if (!channels.some(channel => channel.json() === operationChannel)) { - const allowedServers: v3.ServerObject[] = (operationChannel as v3.ChannelObject).servers || []; - if (allowedServers.length === 0 || allowedServers.includes(this._json)) { - channels.push(this.createModel(Channel, operationChannel as v3.ChannelObject, { id: '', pointer: `/operations/${tilde(operationId)}/channel` })); - } + channels.push(this.createModel(Channel, channel as v3.ChannelObject, { id: channelName, pointer: `/channels/${tilde(channelName)}` })); } }); return new Channels(channels); @@ -68,9 +79,10 @@ export class Server extends CoreModel implement const operationsData: v3.OperationObject[] = []; this.channels().forEach(channel => { channel.operations().forEach(operation => { - if (!operationsData.includes(operation.json())) { + const operationData = operation.json(); + if (!operationsData.includes(operationData)) { operations.push(operation); - operationsData.push(operation.json()); + operationsData.push(operationData); } }); }); @@ -82,9 +94,10 @@ export class Server extends CoreModel implement const messagedData: v3.MessageObject[] = []; this.channels().forEach(channel => { channel.messages().forEach(message => { - if (!messagedData.includes(message.json())) { + const messageData = message.json(); + if (!messagedData.includes(messageData)) { messages.push(message); - messagedData.push(message.json()); + messagedData.push(messageData); } }); }); @@ -94,25 +107,19 @@ export class Server extends CoreModel implement variables(): ServerVariablesInterface { return new ServerVariables( Object.entries(this._json.variables || {}).map(([serverVariableName, serverVariable]) => { - return this.createModel(ServerVariable, serverVariable, { + return this.createModel(ServerVariable, serverVariable as v3.ServerVariableObject, { id: serverVariableName, - pointer: `${this._meta.pointer}/variables/${serverVariableName}` + pointer: this.jsonPath(`variables/${serverVariableName}`), }); }) ); } security(): SecurityRequirements[] { - const securitySchemes = (this._meta?.asyncapi?.parsed?.components?.securitySchemes || {}) as Record; - return (this._json.security || []).map((requirement, index) => { - const requirements: SecurityRequirement[] = []; - Object.entries(requirement).forEach(([security, scopes]) => { - const scheme = this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }); - requirements.push( - this.createModel(SecurityRequirement, { scheme, scopes }, { id: security, pointer: `${this.meta().pointer}/security/${index}/${security}` }) - ); - }); - return new SecurityRequirements(requirements); + return (this._json.security || []).map((security, index) => { + const scheme = this.createModel(SecurityScheme, security as v3.SecuritySchemeObject, { id: '', pointer: this.jsonPath(`security/${index}`) }); + const requirement = this.createModel(SecurityRequirement, { scheme, scopes: (security as v3.SecuritySchemeObject).scopes }, { id: '', pointer: this.jsonPath(`security/${index}`) }); + return new SecurityRequirements([requirement]); }); } } diff --git a/src/models/v3/tag.ts b/src/models/v3/tag.ts index c3dec38a7..2aa7ccb0b 100644 --- a/src/models/v3/tag.ts +++ b/src/models/v3/tag.ts @@ -8,7 +8,11 @@ import type { TagInterface } from '../tag'; import type { v3 } from '../../spec-types'; -export class Tag extends BaseModel implements TagInterface { +export class Tag extends BaseModel implements TagInterface { + id(): string | undefined { + return this._meta.id; + } + name(): string { return this._json.name; } diff --git a/src/spec-types/v3.ts b/src/spec-types/v3.ts index df2d66d23..b225c821d 100644 --- a/src/spec-types/v3.ts +++ b/src/spec-types/v3.ts @@ -23,7 +23,7 @@ export interface InfoObject extends SpecificationExtensions { contact?: ContactObject; license?: LicenseObject; tags?: TagsObject; - externalDocs?: ExternalDocumentationObject; + externalDocs?: ExternalDocumentationObject | ReferenceObject; } export interface ContactObject extends SpecificationExtensions { @@ -37,16 +37,18 @@ export interface LicenseObject extends SpecificationExtensions { url?: string; } -export type ServersObject = Record; +export type ServersObject = Record; export interface ServerObject extends SpecificationExtensions { - url: string; + host: string; protocol: string; + pathname?: string; protocolVersion?: string; description?: string; - variables?: Record; - security?: Array; + variables?: Record; + security?: Array; tags?: TagsObject; + externalDocs?: ExternalDocumentationObject | ReferenceObject; bindings?: ServerBindingsObject | ReferenceObject; } @@ -74,19 +76,22 @@ export interface ServerBindingsObject extends SpecificationExtensions { redis?: Binding; mercure?: Binding; ibmmq?: Binding; + googlepubsub?: Binding; } -export type ChannelsObject = Record; +export type ChannelsObject = Record; export interface ChannelObject extends SpecificationExtensions { address?: string | null; messages?: MessagesObject; + title?: string; + summary?: string; description?: string; - servers?: Array; + servers?: Array; parameters?: ParametersObject; - bindings?: ChannelBindingsObject | ReferenceObject; tags?: TagsObject; - externalDocs?: ExternalDocumentationObject; + externalDocs?: ExternalDocumentationObject | ReferenceObject; + bindings?: ChannelBindingsObject | ReferenceObject; } export interface ChannelBindingsObject extends SpecificationExtensions { @@ -106,31 +111,46 @@ export interface ChannelBindingsObject extends SpecificationExtensions { redis?: Binding; mercure?: Binding; ibmmq?: Binding; + googlepubsub?: Binding; } -export type OperationsObject = Record; +export type OperationsObject = Record; export interface OperationObject extends SpecificationExtensions { action: 'send' | 'receive'; channel: ChannelObject | ReferenceObject; + messages?: Array; + reply?: OperationReplyObject | ReferenceObject; + title?: string; summary?: string; description?: string; - security?: Array; + security?: Array; tags?: TagsObject; - externalDocs?: ExternalDocumentationObject; + externalDocs?: ExternalDocumentationObject | ReferenceObject; bindings?: OperationBindingsObject | ReferenceObject; - traits?: OperationTraitObject[]; + traits?: Array; } export interface OperationTraitObject extends SpecificationExtensions { + title?: string; summary?: string; description?: string; - security?: Array; + security?: Array; tags?: TagsObject; - externalDocs?: ExternalDocumentationObject; + externalDocs?: ExternalDocumentationObject | ReferenceObject; bindings?: OperationBindingsObject | ReferenceObject; } +export interface OperationReplyObject extends SpecificationExtensions { + channel?: ChannelObject | ReferenceObject; + address?: OperationReplyAddressObject | ReferenceObject; +} + +export interface OperationReplyAddressObject extends SpecificationExtensions { + location: string; + description?: string; +} + export interface OperationBindingsObject extends SpecificationExtensions { http?: Binding; ws?: Binding; @@ -148,9 +168,10 @@ export interface OperationBindingsObject extends SpecificationExtensions { redis?: Binding; mercure?: Binding; ibmmq?: Binding; + googlepubsub?: Binding; } -export type MessagesObject = Record; +export type MessagesObject = Record; export interface MessageObject extends MessageTraitObject, SpecificationExtensions { payload?: any; @@ -168,7 +189,7 @@ export interface MessageTraitObject extends SpecificationExtensions { summary?: string; description?: string; tags?: TagsObject; - externalDocs?: ExternalDocumentationObject; + externalDocs?: ExternalDocumentationObject | ReferenceObject; bindings?: MessageBindingsObject | ReferenceObject; examples?: Array; } @@ -197,6 +218,7 @@ export interface MessageBindingsObject extends SpecificationExtensions { redis?: Binding; mercure?: Binding; ibmmq?: Binding; + googlepubsub?: Binding; } export type ParametersObject = Record; @@ -207,12 +229,12 @@ export interface ParameterObject extends SpecificationExtensions { location?: string; } -export type TagsObject = Array; +export type TagsObject = Array; export interface TagObject extends SpecificationExtensions { name: string; description?: string; - externalDocs?: ExternalDocumentationObject; + externalDocs?: ExternalDocumentationObject | ReferenceObject; } export interface ExternalDocumentationObject extends SpecificationExtensions { @@ -224,11 +246,13 @@ export interface ComponentsObject extends SpecificationExtensions { servers?: Record; channels?: Record; operations?: Record; - schemas?: Record; messages?: Record; + schemas?: Record; securitySchemes?: Record; - parameters?: Record; serverVariables?: Record; + parameters?: Record; + replies?: Record; + replyAddresses?: Record; correlationIds?: Record; operationTraits?: Record; messageTraits?: Record; @@ -249,6 +273,7 @@ export interface SecuritySchemeObject extends SpecificationExtensions { bearerFormat?: string; flows?: OAuthFlowsObject; openIdConnectUrl?: string; + scopes?: string[]; } export type SecuritySchemeType = @@ -314,6 +339,7 @@ export interface SecuritySchemeObjectHttp extends SecuritySchemeObjectBase, Spec export interface SecuritySchemeObjectOauth2 extends SecuritySchemeObjectBase, SpecificationExtensions { type: 'oauth2'; flows: OAuthFlowsObject; + scopes: string[]; } export interface SecuritySchemeObjectOpenIdConnect extends SecuritySchemeObjectBase, SpecificationExtensions { @@ -352,7 +378,7 @@ export type OAuthFlowObject = export interface OAuthFlowObjectBase extends SpecificationExtensions { refreshUrl?: string; - scopes: Record; + availableScopes: Record; } export interface OAuthFlowObjectImplicit extends OAuthFlowObjectBase, SpecificationExtensions { @@ -461,9 +487,7 @@ export interface ReferenceObject { $ref: string; } -export type SecurityRequirementObject = Record>; - export interface CorrelationIDObject extends SpecificationExtensions { location: string; description?: string; -} \ No newline at end of file +} diff --git a/src/utils.ts b/src/utils.ts index 1b218dbb8..be8b2c637 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -122,6 +122,20 @@ export function retrievePossibleRef(data: any, pathOfData: string, spec: any = { return data; } +export function resolveServerUrl(url: string): { host: string, pathname: string | undefined } { + // eslint-disable-next-line prefer-const + let [maybeProtocol, maybeHost] = url.split('://'); + if (!maybeHost) { + maybeHost = maybeProtocol; + } + + const [host, ...pathnames] = maybeHost.split('/'); + if (pathnames.length) { + return { host, pathname: `/${pathnames.join('/')}` }; + } + return { host, pathname: undefined }; +} + function retrieveDeepData(value: Record, path: string[]) { let index = 0; const length = path.length; diff --git a/test/models/v2/components.spec.ts b/test/models/v2/components.spec.ts index c9d624a99..ba855d480 100644 --- a/test/models/v2/components.spec.ts +++ b/test/models/v2/components.spec.ts @@ -20,6 +20,8 @@ import { Schemas } from '../../../src/models/schemas'; import { ChannelParameters } from '../../../src/models/channel-parameters'; import { ServerVariables } from '../../../src/models/server-variables'; import { OperationTraits } from '../../../src/models/operation-traits'; +import { OperationReplies } from '../../../src/models/operation-replies'; +import { OperationReplyAddresses } from '../../../src/models/operation-reply-addresses'; import { MessageTraits } from '../../../src/models/message-traits'; import { CorrelationIds } from '../../../src/models/correlation-ids'; import { SecuritySchemes } from '../../../src/models/security-schemes'; @@ -174,6 +176,26 @@ describe('Components model', function() { }); }); + describe('.replies()', function() { + it('should return OperationReplies with empty collection', function() { + const doc = {}; + const d = new Components(doc); + const replies = d.replies(); + expect(replies).toBeInstanceOf(OperationReplies); + expect(replies.all()).toHaveLength(0); + }); + }); + + describe('.replyAddresses()', function() { + it('should return OperationRepliesAddresses with empty collection', function() { + const doc = {}; + const d = new Components(doc); + const replies = d.replyAddresses(); + expect(replies).toBeInstanceOf(OperationReplyAddresses); + expect(replies.all()).toHaveLength(0); + }); + }); + describe('.correlationIds()', function() { it('should return CorrelationIds with CorrelationId Object', function() { const doc = serializeInput({ correlationIds: { id: {} } }); diff --git a/test/models/v2/operation.spec.ts b/test/models/v2/operation.spec.ts index 42689d14a..b00560894 100644 --- a/test/models/v2/operation.spec.ts +++ b/test/models/v2/operation.spec.ts @@ -145,6 +145,14 @@ describe('Operation model', function() { }); }); + describe('.reply()', function() { + it('should return undefined', function() { + const doc = {}; + const d = new Operation(doc); + expect(d.reply()).toBeUndefined(); + }); + }); + describe('.traits()', function() { it('should return collection of traits', function() { const doc = { traits: [{ operationId: '...' }] }; diff --git a/test/models/v2/server.spec.ts b/test/models/v2/server.spec.ts index 28ec854ef..8e432188c 100644 --- a/test/models/v2/server.spec.ts +++ b/test/models/v2/server.spec.ts @@ -16,9 +16,9 @@ import type { v2 } from '../../../src/spec-types'; const doc = { development: { + url: 'development.gigantic-server.com:2137/some/path', protocol: 'mqtt', protocolVersion: '1.0.0', - url: 'development.gigantic-server.com', variables: { username: { default: 'demo', @@ -33,13 +33,57 @@ const emptyItem = new Server(serializeInput({}), { asyncapi: {} describe('Server Model', function () { describe('.id()', function () { it('should return name if present', function () { - expect(docItem.id()).toMatch('development'); + expect(docItem.id()).toEqual('development'); + }); + }); + + describe('.url()', function () { + it('should return value', function () { + expect(docItem.url()).toEqual(doc.development.url); + }); + }); + + describe('.host()', function () { + it('should return value', function () { + expect(docItem.host()).toEqual('development.gigantic-server.com:2137'); + }); + + it('should return value (url with protocol case)', function () { + const server = new Server({ ...doc.development, url: 'mqtt://development.gigantic-server.com:2137/some/path' }, { asyncapi: {} as any, pointer: '', id: 'development' }); + expect(server.host()).toEqual('development.gigantic-server.com:2137'); }); }); describe('protocol()', function () { it('should return protocol ', function () { - expect(docItem.protocol()).toMatch(doc.development.protocol); + expect(docItem.protocol()).toEqual(doc.development.protocol); + }); + }); + + describe('.hasPathname()', function () { + it('should return true if pathname is not missing', function () { + expect(docItem.hasPathname()).toEqual(true); + }); + + it('should be false when protocolVersion is missing', function () { + const docItem = new Server({ ...doc.development, url: 'mqtt://development.gigantic-server.com:2137' }, { asyncapi: {} as any, pointer: '', id: 'development' }); + expect(docItem.hasPathname()).toEqual(false); + }); + }); + + describe('.pathname()', function () { + it('should return value', function () { + expect(docItem.pathname()).toEqual('/some/path'); + }); + + it('should return value (url with protocol case)', function () { + const server = new Server({ ...doc.development, url: 'mqtt://development.gigantic-server.com:2137/some/path' }, { asyncapi: {} as any, pointer: '', id: 'development' }); + expect(server.pathname()).toEqual('/some/path'); + }); + + it('should return undefined if pathname does not exist in url', function () { + const docItem = new Server({ ...doc.development, url: 'development.gigantic-server.com:2137' }, { asyncapi: {} as any, pointer: '', id: 'development' }); + expect(docItem.pathname()).toBeUndefined(); }); }); @@ -55,7 +99,7 @@ describe('Server Model', function () { describe('.protocolVersion()', function () { it('should return value', function () { - expect(docItem.protocolVersion()).toMatch(doc.development.protocolVersion); + expect(docItem.protocolVersion()).toEqual(doc.development.protocolVersion); }); it('should return undefined when protocolVersion is missing', function () { @@ -63,12 +107,6 @@ describe('Server Model', function () { }); }); - describe('.url()', function () { - it('should return value', function () { - expect(docItem.url()).toMatch(doc.development.url); - }); - }); - describe('.channels()', function() { it('should return collection of channels - single channel', function() { const doc = serializeInput({}); diff --git a/test/models/v3/components.spec.ts b/test/models/v3/components.spec.ts index 48c06d7d6..f4439328d 100644 --- a/test/models/v3/components.spec.ts +++ b/test/models/v3/components.spec.ts @@ -4,6 +4,8 @@ import { Channel } from '../../../src/models/v3/channel'; import { ChannelParameter } from '../../../src/models/v3/channel-parameter'; import { CorrelationId } from '../../../src/models/v3/correlation-id'; import { OperationTrait } from '../../../src/models/v3/operation-trait'; +import { OperationReply } from '../../../src/models/v3/operation-reply'; +import { OperationReplyAddress } from '../../../src/models/v3/operation-reply-address'; import { Message } from '../../../src/models/v3/message'; import { MessageTrait } from '../../../src/models/v3/message-trait'; import { Schema } from '../../../src/models/v3/schema'; @@ -20,6 +22,8 @@ import { Schemas } from '../../../src/models/schemas'; import { ChannelParameters } from '../../../src/models/channel-parameters'; import { ServerVariables } from '../../../src/models/server-variables'; import { OperationTraits } from '../../../src/models/operation-traits'; +import { OperationReplies } from '../../../src/models/operation-replies'; +import { OperationReplyAddresses } from '../../../src/models/operation-reply-addresses'; import { MessageTraits } from '../../../src/models/message-traits'; import { CorrelationIds } from '../../../src/models/correlation-ids'; import { SecuritySchemes } from '../../../src/models/security-schemes'; @@ -183,6 +187,38 @@ describe('Components model', function() { }); }); + describe('.replies()', function() { + it('should return OperationReplies with OperationReply Object', function() { + const doc = serializeInput({ replies: { reply: {} } }); + const d = new Components(doc); + testCollection(doc, d.replies(), 'replies', OperationReplies, OperationReply); + }); + + it('should return OperationReplies with empty reply objects when replies are not defined', function() { + const doc = serializeInput({}); + const d = new Components(doc); + const items = d.replies(); + expect(items).toBeInstanceOf(OperationReplies); + expect(items.all()).toHaveLength(0); + }); + }); + + describe('.replyAddresses()', function() { + it('should return OperationRepliesAddresses with OperationReplyAddress Object', function() { + const doc = serializeInput({ replyAddresses: { address: {} } }); + const d = new Components(doc); + testCollection(doc, d.replyAddresses(), 'replyAddresses', OperationReplyAddresses, OperationReplyAddress); + }); + + it('should return OperationRepliesAddresses with empty reply objects when replyAddresses are not defined', function() { + const doc = serializeInput({}); + const d = new Components(doc); + const items = d.replyAddresses(); + expect(items).toBeInstanceOf(OperationReplyAddresses); + expect(items.all()).toHaveLength(0); + }); + }); + describe('.correlationIds()', function() { it('should return CorrelationIds with CorrelationId Object', function() { const doc = serializeInput({ correlationIds: { id: {} } }); diff --git a/test/models/v3/oauth-flow.spec.ts b/test/models/v3/oauth-flow.spec.ts index 882cc0105..0561f2846 100644 --- a/test/models/v3/oauth-flow.spec.ts +++ b/test/models/v3/oauth-flow.spec.ts @@ -6,7 +6,7 @@ import type { v3 } from '../../../src/spec-types'; const flowObject = { authorizationUrl: 'https://example.com/api/oauth/dialog', - scopes: { + availableScopes: { 'write:pets': 'modify pets in your account', 'read:pets': 'read your pets' } @@ -29,7 +29,7 @@ describe('OAuth Flow', function() { describe('.scopes()', function() { it('should return scopes if present', function() { expect(emptyObject.scopes()).toBeUndefined(); - expect(flow.scopes()!['write:pets']).toMatch(flowObject.scopes['write:pets']); + expect(flow.scopes()!['write:pets']).toMatch(flowObject.availableScopes['write:pets']); }); }); diff --git a/test/models/v3/operation-reply-address.spec.ts b/test/models/v3/operation-reply-address.spec.ts new file mode 100644 index 000000000..2187bb90b --- /dev/null +++ b/test/models/v3/operation-reply-address.spec.ts @@ -0,0 +1,17 @@ +import { OperationReplyAddress } from '../../../src/models/v3/operation-reply-address'; + +import { assertDescription, assertExtensions } from './utils'; + +describe('OperationReplyAddress model', function() { + describe('.location()', function() { + it('should return location', function() { + const d = new OperationReplyAddress({ location: 'location' }, { asyncapi: {} as any, pointer: '' }); + expect(d.location()).toEqual('location'); + }); + }); + + describe('mixins', function() { + assertDescription(OperationReplyAddress); + assertExtensions(OperationReplyAddress); + }); +}); diff --git a/test/models/v3/operation-reply.spec.ts b/test/models/v3/operation-reply.spec.ts new file mode 100644 index 000000000..74cfaffe1 --- /dev/null +++ b/test/models/v3/operation-reply.spec.ts @@ -0,0 +1,66 @@ +import { Channel } from '../../../src/models/v3/channel'; +import { OperationReply } from '../../../src/models/v3/operation-reply'; +import { OperationReplyAddress } from '../../../src/models/v3/operation-reply-address'; + +import { assertExtensions } from './utils'; + +describe('OperationReply model', function() { + describe('.id()', function() { + it('should return id', function() { + const d = new OperationReply({}, { asyncapi: {} as any, pointer: '', id: 'reply' }); + expect(d.id()).toEqual('reply'); + }); + }); + + describe('.hasAddress()', function() { + it('should return true if address is present', function() { + const d = new OperationReply({ address: { location: 'location' } }, { asyncapi: {} as any, pointer: '' }); + expect(d.hasAddress()).toEqual(true); + }); + + it('should return false if address is not present', function() { + const d = new OperationReply({}, { asyncapi: {} as any, pointer: '' }); + expect(d.hasAddress()).toEqual(false); + }); + }); + + describe('.address()', function() { + it('should return OperationReplyAdress Model if address is present', function() { + const d = new OperationReply({ address: { location: 'location' } }, { asyncapi: {} as any, pointer: '' }); + expect(d.address()).toBeInstanceOf(OperationReplyAddress); + }); + + it('should return undefined if address is not present', function() { + const d = new OperationReply({}, { asyncapi: {} as any, pointer: '' }); + expect(d.address()).toBeUndefined(); + }); + }); + + describe('.hasChannel()', function() { + it('should return true if channel is present', function() { + const d = new OperationReply({ channel: {} }, { asyncapi: {} as any, pointer: '' }); + expect(d.hasChannel()).toEqual(true); + }); + + it('should return false if channel is not present', function() { + const d = new OperationReply({}, { asyncapi: {} as any, pointer: '' }); + expect(d.hasChannel()).toEqual(false); + }); + }); + + describe('.channel()', function() { + it('should return Channel Model if address is present', function() { + const d = new OperationReply({ channel: {} }, { asyncapi: {} as any, pointer: '' }); + expect(d.channel()).toBeInstanceOf(Channel); + }); + + it('should return undefined if address is not present', function() { + const d = new OperationReply({}, { asyncapi: {} as any, pointer: '' }); + expect(d.channel()).toBeUndefined(); + }); + }); + + describe('mixins', function() { + assertExtensions(OperationReply); + }); +}); diff --git a/test/models/v3/operation-trait.spec.ts b/test/models/v3/operation-trait.spec.ts index e5f871e1c..7c355eff3 100644 --- a/test/models/v3/operation-trait.spec.ts +++ b/test/models/v3/operation-trait.spec.ts @@ -34,17 +34,15 @@ describe('OperationTrait model', function() { describe('.security()', function() { it('should return collection of security requirements', function() { - const doc = { security: [{ requirement: [] }] }; - const d = new OperationTrait(doc); + const d = new OperationTrait({ security: [{ type: 'apiKey' }] }); const security = d.security(); expect(Array.isArray(security)).toEqual(true); expect(security).toHaveLength(1); expect(security[0]).toBeInstanceOf(SecurityRequirements); - const requirement = security[0].get('requirement') as SecurityRequirement; + const requirement = security[0].all()[0] as SecurityRequirement; expect(requirement).toBeInstanceOf(SecurityRequirement); - expect(requirement.meta().id).toEqual('requirement'); expect(requirement.scheme()).toBeInstanceOf(SecurityScheme); expect(requirement.scopes()).toEqual([]); }); diff --git a/test/models/v3/operation.spec.ts b/test/models/v3/operation.spec.ts index 6096e388d..1d8004482 100644 --- a/test/models/v3/operation.spec.ts +++ b/test/models/v3/operation.spec.ts @@ -3,6 +3,7 @@ import { Channel } from '../../../src/models/v3/channel'; import { Operation } from '../../../src/models/v3/operation'; import { OperationTraits } from '../../../src/models/operation-traits'; import { OperationTrait } from '../../../src/models/v3/operation-trait'; +import { OperationReply } from '../../../src/models/v3/operation-reply'; import { Messages } from '../../../src/models/messages'; import { Message } from '../../../src/models/v3/message'; import { Servers } from '../../../src/models/servers'; @@ -54,7 +55,8 @@ describe('Operation model', function() { describe('.servers()', function() { it('should return collection of servers - channel available on all servers', function() { - const d = new Operation({ action: 'send', channel: {} }, { asyncapi: { parsed: { servers: { production: {}, development: {}, } } } as any, pointer: '', id: 'operation' }); + const channel = {}; + const d = new Operation({ action: 'send', channel }, { asyncapi: { parsed: { channels: { someChannel: channel }, servers: { production: {}, development: {}, } } } as any, pointer: '', id: 'operation' }); expect(d.servers()).toBeInstanceOf(Servers); expect(d.servers().all()).toHaveLength(2); expect(d.servers().all()[0]).toBeInstanceOf(Server); @@ -65,7 +67,8 @@ describe('Operation model', function() { it('should return collection of servers - channel available on selected servers', function() { const production = {}; - const d = new Operation({ action: 'send', channel: { servers: [production as any] } }, { asyncapi: { parsed: { servers: { production, development: {}, } } } as any, pointer: '', id: 'operation' }); + const channel = { servers: [production as any] }; + const d = new Operation({ action: 'send', channel }, { asyncapi: { parsed: { channels: { someChannel: channel }, servers: { production, development: {}, } } } as any, pointer: '', id: 'operation' }); expect(d.servers()).toBeInstanceOf(Servers); expect(d.servers().all()).toHaveLength(1); expect(d.servers().all()[0]).toBeInstanceOf(Server); @@ -75,7 +78,8 @@ describe('Operation model', function() { describe('.channels()', function() { it('should return collection of channels - single channel', function() { - const d = new Operation({ action: 'send', channel: { address: 'user/signup' } }); + const channel = { address: 'user/signup' }; + const d = new Operation({ action: 'send', channel }, { asyncapi: { parsed: { channels: { someChannel: channel } } } as any, pointer: '', id: 'operation' }); expect(d.channels()).toBeInstanceOf(Channels); expect(d.channels().all()).toHaveLength(1); expect(d.channels().all()[0]).toBeInstanceOf(Channel); @@ -85,14 +89,16 @@ describe('Operation model', function() { describe('.messages()', function() { it('should return collection of messages - single message', function() { - const d = new Operation({ action: 'send', channel: { messages: { someMessage: { messageId: 'messageId' } } } }); + const channel = { messages: { someMessage: { messageId: 'messageId' } } }; + const d = new Operation({ action: 'send', channel }, { asyncapi: { parsed: { channels: { someChannel: channel } } } as any, pointer: '', id: 'operation' }); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(1); expect(d.messages().all()[0]).toBeInstanceOf(Message); }); it('should return collection of messages - more than one messages', function() { - const d = new Operation({ action: 'send', channel: { messages: { someMessage1: { messageId: 'messageId1' }, someMessage2: { messageId: 'messageId2' } } } }); + const channel = { messages: { someMessage1: { messageId: 'messageId1' }, someMessage2: { messageId: 'messageId2' } } }; + const d = new Operation({ action: 'send', channel }, { asyncapi: { parsed: { channels: { someChannel: channel } } } as any, pointer: '', id: 'operation' }); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(2); expect(d.messages().all()[0]).toBeInstanceOf(Message); @@ -100,6 +106,15 @@ describe('Operation model', function() { expect(d.messages().all()[1]).toBeInstanceOf(Message); expect(d.messages().all()[1].messageId()).toEqual('messageId2'); }); + + it('should return collection of messages - defined message on operation level', function() { + const channel = { messages: { someMessage1: { messageId: 'messageId1' }, someMessage2: { messageId: 'messageId2' } } }; + const d = new Operation({ action: 'send', channel, messages: [channel.messages.someMessage1] }, { asyncapi: { parsed: { channels: { someChannel: channel } } } as any, pointer: '', id: 'operation' }); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(1); + expect(d.messages().all()[0]).toBeInstanceOf(Message); + expect(d.messages().all()[0].messageId()).toEqual('messageId1'); + }); it('should return undefined when there is no value', function() { const d = new Operation({ action: 'send', channel: {} }); @@ -108,6 +123,18 @@ describe('Operation model', function() { }); }); + describe('.reply()', function() { + it('should return OperationReply model when there is value', function() { + const d = new Operation({ action: 'send', channel: {}, reply: {} }); + expect(d.reply()).toBeInstanceOf(OperationReply); + }); + + it('should return undefined when there is no value', function() { + const d = new Operation({ action: 'send', channel: {} }); + expect(d.reply()).toBeUndefined(); + }); + }); + describe('.traits()', function() { it('should return collection of traits', function() { const d = new Operation({ action: 'send', channel: {}, traits: [{}] }); diff --git a/test/models/v3/server.spec.ts b/test/models/v3/server.spec.ts index 454927b65..57b2501db 100644 --- a/test/models/v3/server.spec.ts +++ b/test/models/v3/server.spec.ts @@ -15,10 +15,11 @@ import { serializeInput, assertCoreModel } from './utils'; import type { v3 } from '../../../src/spec-types'; const doc = { - development: { - protocol: 'mqtt', + production: { + host: 'rabbitmq.in.mycompany.com:5672', + pathname: '/production', + protocol: 'amqp', protocolVersion: '1.0.0', - url: 'development.gigantic-server.com', variables: { username: { default: 'demo', @@ -27,19 +28,53 @@ const doc = { } } }; -const docItem = new Server(doc.development, { asyncapi: {} as any, pointer: '', id: 'development' }); +const docItem = new Server(doc.production, { asyncapi: {} as any, pointer: '', id: 'production' }); const emptyItem = new Server(serializeInput({}), { asyncapi: {} as any, pointer: '', id: '' }); describe('Server Model', function () { describe('.id()', function () { it('should return name if present', function () { - expect(docItem.id()).toMatch('development'); + expect(docItem.id()).toEqual('production'); + }); + }); + + describe('.url()', function () { + it('should return value', function () { + expect(docItem.url()).toEqual(`${doc.production.host}${doc.production.pathname}`); + }); + }); + + describe('.host()', function () { + it('should return value', function () { + expect(docItem.host()).toEqual(doc.production.host); }); }); describe('protocol()', function () { it('should return protocol ', function () { - expect(docItem.protocol()).toMatch(doc.development.protocol); + expect(docItem.protocol()).toEqual(doc.production.protocol); + }); + }); + + describe('.hasPathname()', function () { + it('should return true if pathname is not missing', function () { + expect(docItem.hasPathname()).toEqual(true); + }); + + it('should be false when protocolVersion is missing', function () { + const docItem = new Server({ ...doc.production, pathname: undefined }, { asyncapi: {} as any, pointer: '', id: 'development' }); + expect(docItem.hasPathname()).toEqual(false); + }); + }); + + describe('.pathname()', function () { + it('should return value', function () { + expect(docItem.pathname()).toEqual(doc.production.pathname); + }); + + it('should return undefined if value is not set', function () { + const docItem = new Server({ ...doc.production, pathname: undefined }, { asyncapi: {} as any, pointer: '', id: 'development' }); + expect(docItem.pathname()).toBeUndefined(); }); }); @@ -55,7 +90,7 @@ describe('Server Model', function () { describe('.protocolVersion()', function () { it('should return value', function () { - expect(docItem.protocolVersion()).toMatch(doc.development.protocolVersion); + expect(docItem.protocolVersion()).toMatch(doc.production.protocolVersion); }); it('should return undefined when protocolVersion is missing', function () { @@ -63,12 +98,6 @@ describe('Server Model', function () { }); }); - describe('.url()', function () { - it('should return value', function () { - expect(docItem.url()).toMatch(doc.development.url); - }); - }); - describe('.channels()', function() { it('should return collection of channels - single channel', function() { const doc = serializeInput({}); @@ -105,7 +134,8 @@ describe('Server Model', function () { describe('.operations()', function() { it('should return collection of operations - one operation', function() { const doc = serializeInput({}); - const d = new Server(doc, { asyncapi: { parsed: { operations: { someOperation: { channel: {} } } } } as any, pointer: '', id: 'production' }); + const channel = {}; + const d = new Server(doc, { asyncapi: { parsed: { channels: { someChannel: channel }, operations: { someOperation: { channel } } } } as any, pointer: '', id: 'production' }); expect(d.operations()).toBeInstanceOf(Operations); expect(d.operations().all()).toHaveLength(1); expect(d.operations().all()[0]).toBeInstanceOf(Operation); @@ -114,7 +144,8 @@ describe('Server Model', function () { it('should return collection of channels - multiple operations', function() { const doc = serializeInput({}); - const d = new Server(doc, { asyncapi: { parsed: { operations: { someOperation1: { channel: {} }, someOperation2: { channel: {} } } } } as any, pointer: '', id: 'production' }); + const channel = {}; + const d = new Server(doc, { asyncapi: { parsed: { channels: { someChannel: channel }, operations: { someOperation1: { channel }, someOperation2: { channel} } } } as any, pointer: '', id: 'production' }); expect(d.operations()).toBeInstanceOf(Operations); expect(d.operations().all()).toHaveLength(2); expect(d.operations().all()[0]).toBeInstanceOf(Operation); @@ -125,7 +156,8 @@ describe('Server Model', function () { it('should return collection of operations - server available only in particular channel', function() { const doc = serializeInput({}); - const d = new Server(doc, { asyncapi: { parsed: { operations: { someOperation1: { channel: { servers: [doc] } }, someOperation2: { channel: { servers: [{}] } } } } } as any, pointer: '', id: 'production' }); + const channel = { servers: [doc] }; + const d = new Server(doc, { asyncapi: { parsed: { channels: { someChannel: channel }, operations: { someOperation1: { channel }, someOperation2: { channel: { servers: [{}] } } } } } as any, pointer: '', id: 'production' }); expect(d.operations()).toBeInstanceOf(Operations); expect(d.operations().all()).toHaveLength(1); expect(d.operations().all()[0]).toBeInstanceOf(Operation); @@ -174,7 +206,7 @@ describe('Server Model', function () { describe('.security()', function() { it('should return SecurityRequirements', function() { - const doc = serializeInput({ security: [{ requirement: [] }] }); + const doc = serializeInput({ security: [{ type: 'apiKey' }] }); const d = new Server(doc, {pointer: '/servers/test'} as any); const security = d.security(); @@ -182,12 +214,11 @@ describe('Server Model', function () { expect(security).toHaveLength(1); expect(security[0]).toBeInstanceOf(SecurityRequirements); - const requirement = security[0].get('requirement') as SecurityRequirement; + const requirement = security[0].all()[0] as SecurityRequirement; expect(requirement).toBeInstanceOf(SecurityRequirement); expect(requirement.scheme()).toBeInstanceOf(SecurityScheme); expect(requirement.scopes()).toEqual([]); - expect(requirement.meta().id).toEqual('requirement'); - expect(requirement.meta().pointer).toEqual('/servers/test/security/0/requirement'); + expect(requirement.meta().pointer).toEqual('/servers/test/security/0'); }); it('should return SecurityRequirements when value is undefined', function() { From b59983cae5f366fa465e7e17e9de219a41f10e78 Mon Sep 17 00:00:00 2001 From: Heiko Henning Date: Mon, 24 Apr 2023 12:59:27 +0200 Subject: [PATCH 065/126] chore: v3 request reply support (#745) --- src/models/operation-reply.ts | 3 +++ src/models/operation.ts | 1 + src/models/v3/operation-reply.ts | 10 ++++++++++ src/models/v3/operation.ts | 4 ++++ src/spec-types/v3.ts | 1 + test/models/v3/operation-reply.spec.ts | 26 ++++++++++++++++++++++++++ 6 files changed, 45 insertions(+) diff --git a/src/models/operation-reply.ts b/src/models/operation-reply.ts index ba8b89496..18f0da84d 100644 --- a/src/models/operation-reply.ts +++ b/src/models/operation-reply.ts @@ -1,6 +1,8 @@ import type { BaseModel } from './base'; import type { ExtensionsMixinInterface } from './mixins'; import type { ChannelInterface } from './channel'; +import type { MessagesInterface } from './messages'; + import type { OperationReplyAddressInterface } from './operation-reply-address'; export interface OperationReplyInterface extends BaseModel, ExtensionsMixinInterface { @@ -9,4 +11,5 @@ export interface OperationReplyInterface extends BaseModel, ExtensionsMixinInter address(): OperationReplyAddressInterface | undefined; hasChannel(): boolean; channel(): ChannelInterface | undefined; + messages(): MessagesInterface; } diff --git a/src/models/operation.ts b/src/models/operation.ts index 99d9b20e0..a4ac844af 100644 --- a/src/models/operation.ts +++ b/src/models/operation.ts @@ -17,4 +17,5 @@ export interface OperationInterface extends BaseModel, OperationTraitInterface { messages(): MessagesInterface; reply(): OperationReplyInterface | undefined; traits(): OperationTraitsInterface; + hasReply(): boolean; } diff --git a/src/models/v3/operation-reply.ts b/src/models/v3/operation-reply.ts index f26b32ef1..80cebad8b 100644 --- a/src/models/v3/operation-reply.ts +++ b/src/models/v3/operation-reply.ts @@ -1,5 +1,8 @@ import { BaseModel } from '../base'; import { Channel } from './channel'; +import { Message } from './message'; +import { Messages } from '../messages'; +import { MessagesInterface } from 'models/messages'; import { OperationReplyAddress } from './operation-reply-address'; import { extensions } from './mixins'; @@ -36,6 +39,13 @@ export class OperationReply extends BaseModel { + return this.createModel(Message, message, { id: messageName, pointer: this.jsonPath(`messages/${messageName}`) }); + }) + ); + } extensions(): ExtensionsInterface { return extensions(this); diff --git a/src/models/v3/operation.ts b/src/models/v3/operation.ts index 655b1da3d..bc73fd869 100644 --- a/src/models/v3/operation.ts +++ b/src/models/v3/operation.ts @@ -76,6 +76,10 @@ export class Operation extends OperationTrait implements Ope return new Messages(messages); } + hasReply(): boolean { + return !!this._json.reply; + } + reply(): OperationReplyInterface | undefined { if (this._json.reply) { return this.createModel(OperationReply, this._json.reply as v3.OperationReplyObject, { pointer: this.jsonPath('reply') }); diff --git a/src/spec-types/v3.ts b/src/spec-types/v3.ts index b225c821d..45c98339b 100644 --- a/src/spec-types/v3.ts +++ b/src/spec-types/v3.ts @@ -143,6 +143,7 @@ export interface OperationTraitObject extends SpecificationExtensions { export interface OperationReplyObject extends SpecificationExtensions { channel?: ChannelObject | ReferenceObject; + messages?: MessagesObject; address?: OperationReplyAddressObject | ReferenceObject; } diff --git a/test/models/v3/operation-reply.spec.ts b/test/models/v3/operation-reply.spec.ts index 74cfaffe1..6370ca080 100644 --- a/test/models/v3/operation-reply.spec.ts +++ b/test/models/v3/operation-reply.spec.ts @@ -1,6 +1,8 @@ import { Channel } from '../../../src/models/v3/channel'; import { OperationReply } from '../../../src/models/v3/operation-reply'; import { OperationReplyAddress } from '../../../src/models/v3/operation-reply-address'; +import { Messages } from '../../../src/models/messages'; +import { Message } from '../../../src/models/v3/message'; import { assertExtensions } from './utils'; @@ -59,6 +61,30 @@ describe('OperationReply model', function() { expect(d.channel()).toBeUndefined(); }); }); + + describe('.messages()', function() { + it('should return collection of messages - single message', function() { + const d = new OperationReply({ messages: { someMessage: { messageId: 'messageId' } } }); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(1); + expect(d.messages().all()[0]).toBeInstanceOf(Message); + }); + + it('should return collection of messages - more than one messages', function() { + const d = new OperationReply({ messages: { someMessage1: { messageId: 'messageId1' }, someMessage2: { messageId: 'messageId2' } } }); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(2); + expect(d.messages().all()[0]).toBeInstanceOf(Message); + expect(d.messages().all()[0].messageId()).toEqual('messageId1'); + expect(d.messages().all()[1]).toBeInstanceOf(Message); + expect(d.messages().all()[1].messageId()).toEqual('messageId2'); + }); + + it('should return undefined if address is not present', function() { + const d = new OperationReply({}, { asyncapi: {} as any, pointer: '' }); + expect(d.channel()).toBeUndefined(); + }); + }); describe('mixins', function() { assertExtensions(OperationReply); From e75c79edd97ec1d6b0c7ce80ef998f59560d4fe3 Mon Sep 17 00:00:00 2001 From: Fran Mendez Date: Tue, 13 Jun 2023 17:13:17 +0200 Subject: [PATCH 066/126] chore: merge master into next-major-spec --- package-lock.json | 13812 +++++++--------- src/custom-operations/apply-traits.ts | 4 +- src/custom-operations/index.ts | 3 +- src/document.ts | 3 +- src/models/asyncapi.ts | 4 +- src/models/channel.ts | 2 +- src/models/external-documentations.ts | 4 +- src/models/mixins.ts | 14 +- src/models/operation-replies.ts | 5 - src/models/operation-reply-addresses.ts | 6 - src/models/operation-trait.ts | 2 +- src/models/server.ts | 3 + src/models/v2/external-documentation.ts | 30 - src/models/v2/info.ts | 9 +- src/models/v2/server.ts | 14 + src/models/v3/asyncapi.ts | 159 +- src/models/v3/bindings.ts | 2 +- src/models/v3/channel-parameters.ts | 10 + src/models/v3/channel.ts | 8 +- src/models/v3/channels.ts | 18 + src/models/v3/components.ts | 30 +- src/models/v3/correlation-ids.ts | 10 + src/models/v3/extensions.ts | 11 + ...rnal-documentation.ts => external-docs.ts} | 4 +- src/models/v3/index.ts | 42 +- src/models/v3/info.ts | 4 +- src/models/v3/message-examples.ts | 10 + src/models/v3/message-trait.ts | 2 +- src/models/v3/message-traits.ts | 10 + src/models/v3/message.ts | 8 +- src/models/v3/messages.ts | 18 + src/models/v3/mixins.ts | 8 +- src/models/v3/oauth-flow.ts | 10 +- src/models/v3/operation-replies.ts | 10 + src/models/v3/operation-reply-addresses.ts | 10 + src/models/v3/operation-reply.ts | 4 +- src/models/v3/operation-trait.ts | 12 +- src/models/v3/operation-traits.ts | 10 + src/models/v3/operation.ts | 8 +- src/models/v3/operations.ts | 18 + src/models/v3/schema.ts | 2 +- src/models/v3/schemas.ts | 10 + src/models/v3/security-requirements.ts | 10 + src/models/v3/security-scheme.ts | 48 +- src/models/v3/security-schemes.ts | 10 + src/models/v3/server-variables.ts | 10 + src/models/v3/server.ts | 18 +- src/models/v3/servers.ts | 17 + src/models/v3/tag.ts | 2 +- src/models/v3/tags.ts | 10 + src/spec-types/index.ts | 1 + src/spec-types/v2.ts | 2 +- src/types.ts | 6 +- src/utils.ts | 29 + test/models/v2/external-documentation.spec.ts | 2 +- test/models/v2/info.spec.ts | 24 +- test/models/v3/asyncapi.spec.ts | 10 +- test/models/v3/bindings.spec.ts | 2 +- test/models/v3/channel.spec.ts | 17 +- test/models/v3/components.spec.ts | 32 +- test/models/v3/external-documentation.spec.ts | 2 +- test/models/v3/info.spec.ts | 8 +- test/models/v3/message-trait.spec.ts | 2 +- test/models/v3/message.spec.ts | 8 +- test/models/v3/oauth-flows.spec.ts | 6 +- test/models/v3/operation-reply.spec.ts | 2 +- test/models/v3/operation-trait.spec.ts | 6 +- test/models/v3/operation.spec.ts | 8 +- test/models/v3/server.spec.ts | 12 +- test/models/v3/utils.ts | 2 +- test/ruleset/tester.ts | 8 +- test/schema-parser/spectral-rule-v2.spec.ts | 16 +- 72 files changed, 6654 insertions(+), 8039 deletions(-) delete mode 100644 src/models/v2/external-documentation.ts create mode 100644 src/models/v3/channel-parameters.ts create mode 100644 src/models/v3/channels.ts create mode 100644 src/models/v3/correlation-ids.ts create mode 100644 src/models/v3/extensions.ts rename src/models/v3/{external-documentation.ts => external-docs.ts} (97%) create mode 100644 src/models/v3/message-examples.ts create mode 100644 src/models/v3/message-traits.ts create mode 100644 src/models/v3/messages.ts create mode 100644 src/models/v3/operation-replies.ts create mode 100644 src/models/v3/operation-reply-addresses.ts create mode 100644 src/models/v3/operation-traits.ts create mode 100644 src/models/v3/operations.ts create mode 100644 src/models/v3/schemas.ts create mode 100644 src/models/v3/security-requirements.ts create mode 100644 src/models/v3/security-schemes.ts create mode 100644 src/models/v3/server-variables.ts create mode 100644 src/models/v3/servers.ts create mode 100644 src/models/v3/tags.ts diff --git a/package-lock.json b/package-lock.json index 4c319fd6c..7ce705dbe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -669,6 +669,7 @@ }, "node_modules/@babel/traverse/node_modules/globals": { "version": "11.12.0", + "dev": true, "license": "MIT", "engines": { "node": ">=4" @@ -912,16 +913,6 @@ "node": ">=8" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/@istanbuljs/schema": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", @@ -2617,6 +2608,131 @@ } } }, + "node_modules/accessory/node_modules/@typescript-eslint/scope-manager": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.36.2.tgz", + "integrity": "sha512-cNNP51L8SkIFSfce8B1NSUBTJTu2Ts4nWeWbFrdaqjmn9yKrAaJUBHkyTZc0cL06OFHpb+JZq5AUHROS398Orw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.36.2", + "@typescript-eslint/visitor-keys": "5.36.2" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/accessory/node_modules/@typescript-eslint/type-utils": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.36.2.tgz", + "integrity": "sha512-rPQtS5rfijUWLouhy6UmyNquKDPhQjKsaKH0WnY6hl/07lasj8gPaH2UD8xWkePn6SC+jW2i9c2DZVDnL+Dokw==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "5.36.2", + "@typescript-eslint/utils": "5.36.2", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/accessory/node_modules/@typescript-eslint/types": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.36.2.tgz", + "integrity": "sha512-9OJSvvwuF1L5eS2EQgFUbECb99F0mwq501w0H0EkYULkhFa19Qq7WFbycdw1PexAc929asupbZcgjVIe6OK/XQ==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/accessory/node_modules/@typescript-eslint/typescript-estree": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.36.2.tgz", + "integrity": "sha512-8fyH+RfbKc0mTspfuEjlfqA4YywcwQK2Amcf6TDOwaRLg7Vwdu4bZzyvBZp4bjt1RRjQ5MDnOZahxMrt2l5v9w==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.36.2", + "@typescript-eslint/visitor-keys": "5.36.2", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/accessory/node_modules/@typescript-eslint/utils": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.36.2.tgz", + "integrity": "sha512-uNcopWonEITX96v9pefk9DC1bWMdkweeSsewJ6GeC7L6j2t0SJywisgkr9wUTtXk90fi2Eljj90HSHm3OGdGRg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.9", + "@typescript-eslint/scope-manager": "5.36.2", + "@typescript-eslint/types": "5.36.2", + "@typescript-eslint/typescript-estree": "5.36.2", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/accessory/node_modules/@typescript-eslint/visitor-keys": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.36.2.tgz", + "integrity": "sha512-BtRvSR6dEdrNt7Net2/XDjbYKU5Ml6GqJgVfXT0CxTCJlnIqK7rAGreuWKMT2t8cFUT2Msv5oxw0GMRD7T5J7A==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.36.2", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, "node_modules/acorn": { "version": "7.4.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", @@ -2632,20 +2748,21 @@ }, "node_modules/acorn-jsx": { "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, "license": "MIT", "peerDependencies": { - "acorn": "^8" + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/acorn-jsx": { - "version": "5.3.2", + "node_modules/acorn-node": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", + "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", "dev": true, - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + "dependencies": { + "acorn": "^7.0.0", + "acorn-walk": "^7.0.0", + "xtend": "^4.0.2" } }, "node_modules/acorn-walk": { @@ -2819,12 +2936,6 @@ "node": ">= 8" } }, - "node_modules/ap": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/ap/-/ap-0.2.0.tgz", - "integrity": "sha512-ImdvquIuBSVpWRWhB441UjvTcZqic1RL+lTQaUKGdGEp1aiTvt/phAvY8Vvs32qya5FJBI8U+tzNBYzFDQY/lQ==", - "dev": true - }, "node_modules/arg": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", @@ -3030,14 +3141,6 @@ "dev": true, "license": "Apache-2.0" }, - "node_modules/babel-plugin-istanbul": { - "version": "6.1.1", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "deep-equal": "^2.0.5" - } - }, "node_modules/babel-jest": { "version": "29.5.0", "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.5.0.tgz", @@ -3154,12 +3257,6 @@ "@babel/core": "^7.0.0" } }, - "node_modules/balanced-match": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.2.1.tgz", - "integrity": "sha512-euSOvfze1jPOf85KQOmZ2UcWDJ/dUJukTJdj4o9ZZLyjl7IjdIyE4fAQRSuGrxAjB9nvvvrl4N3bPtRq+W+SyQ==", - "dev": true - }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -3180,43 +3277,6 @@ } ] }, - "node_modules/bl": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", - "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", - "dev": true, - "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, - "node_modules/bl/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/before-after-hook": { - "version": "2.2.1", - "dev": true, - "license": "Apache-2.0" - }, "node_modules/bl": { "version": "4.1.0", "dev": true, @@ -3375,10 +3435,11 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, - "node_modules/bser": { - "version": "2.1.1", + "node_modules/browserify-aes": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", + "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "buffer-xor": "^1.0.3", "cipher-base": "^1.0.0", @@ -3483,6 +3544,25 @@ "pako": "~1.0.5" } }, + "node_modules/browserify/node_modules/buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.2.1.tgz", + "integrity": "sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==", + "dev": true, + "dependencies": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4" + } + }, + "node_modules/browserify/node_modules/events": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/events/-/events-2.1.0.tgz", + "integrity": "sha512-3Zmiobend8P9DjmKAty0Era4jV8oJ0yGYe2nJJAxgymF9+N8F2m0hhZiMoWtcfepExzNKZumFU3ksdQbInGWCg==", + "dev": true, + "engines": { + "node": ">=0.4.x" + } + }, "node_modules/browserify/node_modules/path-browserify": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", @@ -3663,9 +3743,8 @@ }, "node_modules/chrome-trace-event": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.0" } @@ -3692,14 +3771,6 @@ "dev": true, "license": "ISC" }, - "node_modules/chrome-trace-event": { - "version": "1.0.3", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0" - } - }, "node_modules/cjs-module-lexer": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", @@ -3910,21 +3981,6 @@ "dev": true, "license": "MIT" }, - "node_modules/cross-env": { - "version": "7.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "bn.js": "^4.1.0", - "elliptic": "^6.5.3" - } - }, - "node_modules/create-ecdh/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - }, "node_modules/create-hash": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", @@ -3935,6 +3991,20 @@ "node-fetch": "2.6.7" } }, + "node_modules/create-hmac": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", + "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", + "dev": true, + "dependencies": { + "cipher-base": "^1.0.3", + "create-hash": "^1.1.0", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + } + }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", @@ -4187,20 +4257,21 @@ }, "node_modules/diff-sequences": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", - "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", "dev": true, - "license": "BSD-3-Clause", + "license": "MIT", "engines": { "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/diff-sequences": { - "version": "27.5.1", + "node_modules/diffie-hellman": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", + "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", "dev": true, - "license": "MIT", - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "dependencies": { + "bn.js": "^4.1.0", + "miller-rabin": "^4.0.0", + "randombytes": "^2.0.0" } }, "node_modules/diffie-hellman/node_modules/bn.js": { @@ -4241,12 +4312,6 @@ "npm": ">=1.2" } }, - "node_modules/dot-parts": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dot-parts/-/dot-parts-1.0.1.tgz", - "integrity": "sha512-DcAuaZ2hguFLkxrAwOlvYNFb4IE6xg1Ldzqpma4/UeiT0utd8/E17z1h9mH8s+9Hwh7SeLn83LpIykh/oBBxSw==", - "dev": true - }, "node_modules/duplexer": { "version": "0.1.2", "dev": true, @@ -4329,18 +4394,6 @@ "node": ">=10.13.0" } }, - "node_modules/envinfo": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", - "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", - "dev": true, - "bin": { - "envinfo": "dist/cli.js" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/envinfo": { "version": "7.8.1", "dev": true, @@ -4499,6 +4552,7 @@ }, "node_modules/escalade": { "version": "3.1.1", + "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -4673,20 +4727,17 @@ } }, "node_modules/eslint-module-utils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", - "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", + "version": "2.7.4", "dev": true, + "license": "MIT", "dependencies": { "debug": "^3.2.7" }, "engines": { - "node": ">=4" + "node": ">=12" }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - } + "peerDependencies": { + "eslint": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" } }, "node_modules/eslint-module-utils/node_modules/debug": { @@ -4712,21 +4763,14 @@ }, "node_modules/eslint-plugin-eslint-comments": { "version": "3.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz", - "integrity": "sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==", "dev": true, + "license": "MIT", "dependencies": { "escape-string-regexp": "^1.0.5", "ignore": "^5.0.5" }, "engines": { - "node": ">=6.5.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=4.19.1" + "node": ">=8.0.0" } }, "node_modules/eslint-plugin-eslint-comments/node_modules/escape-string-regexp": { @@ -4946,39 +4990,53 @@ "ms": "^2.1.1" } }, - "node_modules/eslint-module-utils": { - "version": "2.7.4", + "node_modules/eslint-rule-documentation": { + "version": "1.0.23", + "resolved": "https://registry.npmjs.org/eslint-rule-documentation/-/eslint-rule-documentation-1.0.23.tgz", + "integrity": "sha512-pWReu3fkohwyvztx/oQWWgld2iad25TfUdi6wvhhaDPIQjHU/pyvlKgXFw1kX31SQK2Nq9MH+vRDWB0ZLy8fYw==", "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^3.2.7" - }, "engines": { - "node": ">=12" - }, - "peerDependencies": { - "eslint": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" + "node": ">=4.0.0" } }, - "node_modules/eslint-rule-documentation": { - "version": "1.0.23", - "resolved": "https://registry.npmjs.org/eslint-rule-documentation/-/eslint-rule-documentation-1.0.23.tgz", - "integrity": "sha512-pWReu3fkohwyvztx/oQWWgld2iad25TfUdi6wvhhaDPIQjHU/pyvlKgXFw1kX31SQK2Nq9MH+vRDWB0ZLy8fYw==", + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, "engines": { - "node": ">=4.0.0" + "node": ">=8.0.0" } }, - "node_modules/eslint-plugin-eslint-comments": { - "version": "3.2.0", + "node_modules/eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", "dev": true, - "license": "MIT", "dependencies": { - "escape-string-regexp": "^1.0.5", - "ignore": "^5.0.5" + "eslint-visitor-keys": "^2.0.0" }, "engines": { - "node": ">=8.0.0" + "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=5" + } + }, + "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true, + "engines": { + "node": ">=10" } }, "node_modules/eslint-visitor-keys": { @@ -5184,6 +5242,16 @@ "node": ">=0.8.x" } }, + "node_modules/evp_bytestokey": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", + "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", + "dev": true, + "dependencies": { + "md5.js": "^1.3.4", + "safe-buffer": "^5.1.1" + } + }, "node_modules/execa": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", @@ -5208,16 +5276,6 @@ "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, - "node_modules/exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/exit": { "version": "0.1.2", "dev": true, @@ -5281,7 +5339,6 @@ "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.5.0.tgz", "integrity": "sha512-LtxijLLZBduXnHSniy0WMdaHjmQnt3g5sa16W4p0HqukYTTsyTW3GD1q41TyGl5YFXj/5B2U6dlh5FM1LIMgxw==", "dev": true, - "license": "MIT", "dependencies": { "chalk": "^4.0.0", "diff-sequences": "^29.4.3", @@ -5393,159 +5450,6 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/expect/node_modules/ansi-styles": { - "version": "4.3.0", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/expect/node_modules/chalk": { - "version": "4.1.2", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/expect/node_modules/color-convert": { - "version": "2.0.1", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/expect/node_modules/color-name": { - "version": "1.1.4", - "dev": true, - "license": "MIT" - }, - "node_modules/expect/node_modules/diff-sequences": { - "version": "29.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/expect/node_modules/has-flag": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/expect/node_modules/jest-diff": { - "version": "29.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^29.0.0", - "jest-get-type": "^29.0.0", - "pretty-format": "^29.0.2" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/expect/node_modules/jest-get-type": { - "version": "29.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/expect/node_modules/jest-matcher-utils": { - "version": "29.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^29.0.2", - "jest-get-type": "^29.0.0", - "pretty-format": "^29.0.2" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/expect/node_modules/jest-util": { - "version": "29.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/types": "^29.0.2", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/expect/node_modules/pretty-format": { - "version": "29.0.2", - "dev": true, - "license": "MIT", - "dependencies": { - "@jest/schemas": "^29.0.0", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/expect/node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/expect/node_modules/react-is": { - "version": "18.2.0", - "dev": true, - "license": "MIT" - }, - "node_modules/expect/node_modules/supports-color": { - "version": "7.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/extend-shallow": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", @@ -5635,12 +5539,6 @@ "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz", "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==" }, - "node_modules/fast-safe-stringify": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", - "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", - "dev": true - }, "node_modules/fastest-levenshtein": { "version": "1.0.16", "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", @@ -5837,6 +5735,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", + "dev": true + }, "node_modules/functions-have-names": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", @@ -5854,6 +5758,12 @@ "node": ">=6.9.0" } }, + "node_modules/get-assigned-identifiers": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz", + "integrity": "sha512-mBBwmeGTrxEMO4pMaaf/uUEFHnYtwr8FTe8Y/mer4rcV/bye0qGm6pw1bGZFGStxC5O76c5ZAVBGnqHmOaJpdQ==", + "dev": true + }, "node_modules/get-caller-file": { "version": "2.0.5", "dev": true, @@ -5963,20 +5873,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", - "dependencies": { - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/globalthis": { "version": "1.0.3", "license": "MIT", @@ -6104,14 +6000,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/hard-rejection": { - "version": "2.1.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -6174,15 +6062,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-require/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, "node_modules/has-symbols": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", @@ -6358,24 +6237,13 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true, - "license": "MIT", - "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=4" } }, "node_modules/import-local": { @@ -6429,13 +6297,6 @@ "dev": true, "license": "ISC" }, - "node_modules/internal-slot": { - "version": "1.0.3", - "license": "MIT", - "dependencies": { - "source-map": "~0.5.3" - } - }, "node_modules/insert-module-globals": { "version": "7.2.1", "resolved": "https://registry.npmjs.org/insert-module-globals/-/insert-module-globals-7.2.1.tgz", @@ -7834,6 +7695,7 @@ }, "node_modules/js-tokens": { "version": "4.0.0", + "dev": true, "license": "MIT" }, "node_modules/js-yaml": { @@ -7862,6 +7724,7 @@ }, "node_modules/jsesc": { "version": "2.5.2", + "dev": true, "license": "MIT", "bin": { "jsesc": "bin/jsesc" @@ -7877,14 +7740,16 @@ }, "node_modules/json-schema-migrate": { "version": "0.2.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-0.2.0.tgz", + "integrity": "sha512-dq4/oHWmtw/+0ytnXsDqVn+VsVweTEmzm5jLgguPn9BjSzn6/q58ZiZx3BHiQyJs612f0T5Z+MrUEUUY5DHsRg==", "dependencies": { "ajv": "^5.0.0" } }, "node_modules/json-schema-migrate/node_modules/ajv": { "version": "5.5.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha512-Ajr4IcMXq/2QmMkEmSvxqfLN5zGmJ92gHXAeOXq1OekoH2rfDNsgdDoL2f7QaRCy7G/E6TpxBVdRuNraMztGHw==", "dependencies": { "co": "^4.6.0", "fast-deep-equal": "^1.0.0", @@ -7894,35 +7759,8 @@ }, "node_modules/json-schema-migrate/node_modules/fast-deep-equal": { "version": "1.1.0", - "license": "MIT" - }, - "node_modules/json-schema-migrate/node_modules/json-schema-traverse": { - "version": "0.3.1", - "license": "MIT" - }, - "node_modules/json-schema-migrate": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-0.2.0.tgz", - "integrity": "sha512-dq4/oHWmtw/+0ytnXsDqVn+VsVweTEmzm5jLgguPn9BjSzn6/q58ZiZx3BHiQyJs612f0T5Z+MrUEUUY5DHsRg==", - "dependencies": { - "ajv": "^5.0.0" - } - }, - "node_modules/json-schema-migrate/node_modules/ajv": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", - "integrity": "sha512-Ajr4IcMXq/2QmMkEmSvxqfLN5zGmJ92gHXAeOXq1OekoH2rfDNsgdDoL2f7QaRCy7G/E6TpxBVdRuNraMztGHw==", - "dependencies": { - "co": "^4.6.0", - "fast-deep-equal": "^1.0.0", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.3.0" - } - }, - "node_modules/json-schema-migrate/node_modules/fast-deep-equal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", - "integrity": "sha512-fueX787WZKCV0Is4/T2cyAdM4+x1S3MXXOAhavE1ys/W42SHAPacLTQhucja22QBYrfGw50M2sRiXPtTGv9Ymw==" + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", + "integrity": "sha512-fueX787WZKCV0Is4/T2cyAdM4+x1S3MXXOAhavE1ys/W42SHAPacLTQhucja22QBYrfGw50M2sRiXPtTGv9Ymw==" }, "node_modules/json-schema-migrate/node_modules/json-schema-traverse": { "version": "0.3.1", @@ -7934,15 +7772,6 @@ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, - "node_modules/json-stable-stringify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz", - "integrity": "sha512-nKtD/Qxm7tWdZqJoldEC7fF0S41v0mWbeaXG3637stOWfyGxTgWTYE2wtfKmjzpvxv2MA2xzxsXOIiwUpkX6Qw==", - "dev": true, - "dependencies": { - "jsonify": "~0.0.0" - } - }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", @@ -7966,15 +7795,6 @@ "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.2.1.tgz", "integrity": "sha512-o6/yDBYccGvTz1+QFevz6l6OBZ2+fMVu2JZ9CIhzsYRX4mjaK5IyX9eldUdCmga16zlgQxyrj5pt9kzuj2C02w==" }, - "node_modules/jsonify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", - "integrity": "sha512-trvBk1ki43VZptdBI5rIlG4YOzyeH/WefQt5rj1grasPn4iiZWKet8nkgc4GlsAylaztn0qZfUYOiTsASJFdNA==", - "dev": true, - "engines": { - "node": "*" - } - }, "node_modules/jsonparse": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", @@ -7985,20 +7805,6 @@ ], "license": "MIT" }, - "node_modules/jsonpath-plus": { - "version": "7.2.0", - "license": "MIT", - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/jsonpointer": { - "version": "5.0.1", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/jsonpath-plus": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.2.0.tgz", @@ -8145,15 +7951,6 @@ "node": ">=0.10.0" } }, - "node_modules/loader-runner": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", - "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", - "dev": true, - "engines": { - "node": ">=6.11.5" - } - }, "node_modules/loader-runner": { "version": "4.3.0", "dev": true, @@ -8348,6 +8145,17 @@ "safe-buffer": "^5.1.2" } }, + "node_modules/md5.js": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", + "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", + "dev": true, + "dependencies": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, "node_modules/merge-stream": { "version": "2.0.0", "dev": true, @@ -8394,27 +8202,6 @@ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", "dev": true }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, "node_modules/mime-db": { "version": "1.52.0", "dev": true, @@ -8442,7 +8229,7 @@ "node": ">=6" } }, - "node_modules/min-indent": { + "node_modules/minimalistic-assert": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", @@ -8512,14 +8299,6 @@ "dev": true, "license": "MIT" }, - "node_modules/modify-values": { - "version": "1.0.1", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/mkdirp-classic": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", @@ -8575,6 +8354,7 @@ }, "node_modules/ms": { "version": "2.1.2", + "dev": true, "license": "MIT" }, "node_modules/natural-compare": { @@ -8678,7 +8458,6 @@ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", "dev": true, - "inBundle": true, "license": "MIT", "dependencies": { "ansi-regex": "^4.1.0" @@ -8687,6 +8466,15 @@ "node": ">=6" } }, + "node_modules/object-assign/node_modules/ansi-regex": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", + "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/object-inspect": { "version": "1.12.3", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", @@ -9180,9 +8968,8 @@ }, "node_modules/prettier-linter-helpers": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", "dev": true, + "license": "MIT", "dependencies": { "fast-diff": "^1.1.2" }, @@ -9192,9 +8979,8 @@ }, "node_modules/pretty-format": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", - "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1", "ansi-styles": "^5.0.0", @@ -9206,9 +8992,8 @@ }, "node_modules/pretty-format/node_modules/ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -9232,41 +9017,6 @@ "url": "https://github.com/prettier/prettier?sponsor=1" } }, - "node_modules/prettier-linter-helpers": { - "version": "1.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-diff": "^1.1.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/pretty-format": { - "version": "27.5.1", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1", - "ansi-styles": "^5.0.0", - "react-is": "^17.0.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -9307,12 +9057,6 @@ "dev": true, "license": "MIT" }, - "node_modules/public-encrypt/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - }, "node_modules/pump": { "version": "3.0.0", "dev": true, @@ -9410,8 +9154,7 @@ }, "node_modules/ramldt2jsonschema": { "version": "1.2.3", - "resolved": "https://registry.npmjs.org/ramldt2jsonschema/-/ramldt2jsonschema-1.2.3.tgz", - "integrity": "sha512-+wLDAV2NNv9NkfEUOYStaDu/6RYgYXeC1zLtXE+dMU/jDfjpN4iJnBGycDwFTFaIQGosOQhxph7fEX6Mpwxdug==", + "license": "Apache-2.0", "dependencies": { "commander": "^5.0.0", "js-yaml": "^3.14.0", @@ -9433,8 +9176,7 @@ }, "node_modules/ramldt2jsonschema/node_modules/js-yaml": { "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "license": "MIT", "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -9445,9 +9187,8 @@ }, "node_modules/randomatic": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", - "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", "dev": true, + "license": "MIT", "dependencies": { "is-number": "^4.0.0", "kind-of": "^6.0.0", @@ -9459,27 +9200,24 @@ }, "node_modules/randomatic/node_modules/is-number": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", - "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/randomatic/node_modules/kind-of": { "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/randombytes": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dev": true, + "license": "MIT", "dependencies": { "safe-buffer": "^5.1.0" } @@ -9496,9 +9234,8 @@ }, "node_modules/react-is": { "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/read-only-stream": { "version": "2.0.0", @@ -9511,9 +9248,8 @@ }, "node_modules/readable-stream": { "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", "dev": true, + "license": "MIT", "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -9539,6 +9275,17 @@ "safe-buffer": "~5.1.0" } }, + "node_modules/rechoir": { + "version": "0.7.1", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve": "^1.9.0" + }, + "engines": { + "node": ">= 0.10" + } + }, "node_modules/regenerator-runtime": { "version": "0.13.11", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", @@ -9547,21 +9294,19 @@ }, "node_modules/regexp-tree": { "version": "0.1.24", - "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.24.tgz", - "integrity": "sha512-s2aEVuLhvnVJW6s/iPgEGK6R+/xngd2jNQ+xy4bXNDKxZKJH6jpPHY6kVeVv1IeLCHgswRj+Kl3ELaDjG6V1iw==", "dev": true, + "license": "MIT", "bin": { "regexp-tree": "bin/regexp-tree" } }, "node_modules/regexp.prototype.flags": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", - "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", + "version": "1.4.3", + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "functions-have-names": "^1.2.3" + "define-properties": "^1.1.3", + "functions-have-names": "^1.2.2" }, "engines": { "node": ">= 0.4" @@ -9570,11 +9315,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/regexpp": { + "version": "3.2.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } + }, "node_modules/remarkable": { "version": "1.7.4", - "resolved": "https://registry.npmjs.org/remarkable/-/remarkable-1.7.4.tgz", - "integrity": "sha512-e6NKUXgX95whv7IgddywbeN/ItCkWbISmc2DiqHJb0wTrqZIexqdco5b8Z3XZoo/48IdNVKM9ZCvTPJ4F5uvhg==", "dev": true, + "license": "MIT", "dependencies": { "argparse": "^1.0.10", "autolinker": "~0.28.0" @@ -9606,19 +9361,17 @@ } }, "node_modules/repeat-element": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", - "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", + "version": "1.1.3", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/repeat-string": { "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10" } @@ -9662,28 +9415,26 @@ }, "node_modules/require-directory": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/require-from-string": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", + "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", "dev": true, "dependencies": { - "is-core-module": "^2.9.0", + "is-core-module": "^2.11.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, @@ -9696,9 +9447,8 @@ }, "node_modules/resolve-cwd": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, + "license": "MIT", "dependencies": { "resolve-from": "^5.0.0" }, @@ -9706,24 +9456,14 @@ "node": ">=8" } }, - "node_modules/resolve-cwd/node_modules/resolve-from": { + "node_modules/resolve-from": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/resolve.exports": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", @@ -9735,9 +9475,8 @@ }, "node_modules/reusify": { "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", "dev": true, + "license": "MIT", "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" @@ -9745,9 +9484,8 @@ }, "node_modules/rimraf": { "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dev": true, + "license": "ISC", "dependencies": { "glob": "^7.1.3" }, @@ -9770,8 +9508,6 @@ }, "node_modules/run-parallel": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "dev": true, "funding": [ { @@ -9787,827 +9523,814 @@ "url": "https://feross.org/support" } ], - "license": "MIT" - }, - "node_modules/quick-lru": { - "version": "4.0.1", - "dev": true, "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/ramldt2jsonschema": { - "version": "1.2.3", - "license": "Apache-2.0", "dependencies": { - "commander": "^5.0.0", - "js-yaml": "^3.14.0", - "json-schema-migrate": "^0.2.0", - "webapi-parser": "^0.5.0" - }, - "bin": { - "dt2js": "bin/dt2js.js", - "js2dt": "bin/js2dt.js" + "queue-microtask": "^1.2.2" } }, - "node_modules/ramldt2jsonschema/node_modules/js-yaml": { - "version": "3.14.1", + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/safe-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz", + "integrity": "sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==", + "dev": true, "license": "MIT", "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "regexp-tree": "~0.1.1" } }, - "node_modules/randomatic": { - "version": "3.1.1", - "dev": true, - "license": "MIT", + "node_modules/safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", "dependencies": { - "is-number": "^4.0.0", - "kind-of": "^6.0.0", - "math-random": "^1.0.1" + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" }, - "engines": { - "node": ">= 0.10.0" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/randomatic/node_modules/is-number": { - "version": "4.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } + "node_modules/safe-stable-stringify": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz", + "integrity": "sha512-ERq4hUjKDbJfE4+XtZLFPCDi8Vb1JqaxAPTxWFLBx8XcAlf9Bda/ZJdVezs/NAfsMQScyIlUMx+Yeu7P7rx5jw==" }, - "node_modules/randomatic/node_modules/kind-of": { - "version": "6.0.3", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true }, - "node_modules/randombytes": { - "version": "2.1.0", + "node_modules/schema-utils": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", + "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", "dev": true, "license": "MIT", "dependencies": { - "safe-buffer": "^5.1.0" + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" } }, - "node_modules/rc": { - "version": "1.2.8", + "node_modules/schema-utils/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, - "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", "dependencies": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" }, - "bin": { - "rc": "cli.js" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/react-is": { - "version": "17.0.2", + "node_modules/schema-utils/node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", "dev": true, - "license": "MIT" + "peerDependencies": { + "ajv": "^6.9.1" + } }, - "node_modules/read-pkg": { - "version": "5.2.0", + "node_modules/schema-utils/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", "dev": true, "license": "MIT", "dependencies": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" }, "engines": { - "node": ">=8" + "node": ">=10" } }, - "node_modules/read-pkg-up": { - "version": "7.0.1", + "node_modules/set-getter": { + "version": "0.1.1", "dev": true, "license": "MIT", "dependencies": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" + "to-object-path": "^0.3.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.10.0" } }, - "node_modules/read-pkg-up/node_modules/find-up": { - "version": "4.1.0", + "node_modules/sha.js": { + "version": "2.4.11", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", + "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", "dev": true, - "license": "MIT", "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" }, - "engines": { - "node": ">=8" + "bin": { + "sha.js": "bin.js" } }, - "node_modules/read-pkg-up/node_modules/locate-path": { - "version": "5.0.0", + "node_modules/shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", "dev": true, - "license": "MIT", "dependencies": { - "p-locate": "^4.1.0" + "kind-of": "^6.0.2" }, "engines": { "node": ">=8" } }, - "node_modules/read-pkg-up/node_modules/p-limit": { - "version": "2.3.0", + "node_modules/shallow-clone/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true, - "license": "MIT", - "dependencies": { - "p-try": "^2.0.0" - }, "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=0.10.0" } }, - "node_modules/read-pkg-up/node_modules/p-locate": { - "version": "4.1.0", + "node_modules/shasum": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz", + "integrity": "sha512-UTzHm/+AzKfO9RgPgRpDIuMSNie1ubXRaljjlhFMNGYoG7z+rm9AHLPMf70R7887xboDH9Q+5YQbWKObFHEAtw==", "dev": true, "license": "MIT", - "dependencies": { - "p-limit": "^2.2.0" - }, "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, - "node_modules/read-pkg-up/node_modules/p-try": { - "version": "2.2.0", + "node_modules/shebang-command": { + "version": "2.0.0", "dev": true, "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, "engines": { - "node": ">=6" + "node": ">=8" } }, - "node_modules/read-pkg-up/node_modules/path-exists": { - "version": "4.0.0", + "node_modules/shebang-regex": { + "version": "3.0.0", "dev": true, "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/read-pkg-up/node_modules/type-fest": { - "version": "0.8.1", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=8" - } + "node_modules/shell-quote": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.3.tgz", + "integrity": "sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==", + "dev": true }, - "node_modules/read-pkg/node_modules/parse-json": { - "version": "5.2.0", - "dev": true, - "license": "MIT", + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/readable-stream": { - "version": "2.3.7", - "dev": true, - "license": "MIT", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true }, - "node_modules/rechoir": { - "version": "0.7.1", + "node_modules/simple-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", + "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", "dev": true, - "license": "MIT", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/simple-eval": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/simple-eval/-/simple-eval-1.0.0.tgz", + "integrity": "sha512-kpKJR+bqTscgC0xuAl2xHN6bB12lHjC2DCUfqjAx19bQyO3R2EVLOurm3H9AUltv/uFVcSCVNc6faegR+8NYLw==", "dependencies": { - "resolve": "^1.9.0" + "jsep": "^1.1.2" }, "engines": { - "node": ">= 0.10" + "node": ">=12" } }, - "node_modules/redent": { - "version": "3.0.0", + "node_modules/sirv": { + "version": "1.0.19", + "resolved": "https://registry.npmjs.org/sirv/-/sirv-1.0.19.tgz", + "integrity": "sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==", "dev": true, - "license": "MIT", "dependencies": { - "indent-string": "^4.0.0", - "strip-indent": "^3.0.0" + "@polka/url": "^1.0.0-next.20", + "mrmime": "^1.0.0", + "totalist": "^1.0.0" }, "engines": { - "node": ">=8" + "node": ">= 10" } }, - "node_modules/redeyed": { - "version": "2.1.1", + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", "dev": true, "license": "MIT", - "dependencies": { - "esprima": "~4.0.0" + "engines": { + "node": ">=8" } }, - "node_modules/regenerator-runtime": { - "version": "0.13.9", - "license": "MIT" + "node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/regexp-tree": { - "version": "0.1.24", + "node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, - "license": "MIT", - "bin": { - "regexp-tree": "bin/regexp-tree" + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" } }, - "node_modules/regexp.prototype.flags": { - "version": "1.4.3", + "node_modules/source-map-support/node_modules/source-map": { + "version": "0.6.1", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "license": "BSD-3-Clause" + }, + "node_modules/stack-utils": { + "version": "2.0.5", + "dev": true, "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "functions-have-names": "^1.2.2" + "escape-string-regexp": "^2.0.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=10" } }, - "node_modules/regexpp": { - "version": "3.2.0", + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" } }, - "node_modules/registry-auth-token": { - "version": "4.1.1", + "node_modules/stop-iteration-iterator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz", + "integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==", "dev": true, - "license": "MIT", "dependencies": { - "rc": "^1.2.8" + "internal-slot": "^1.0.4" }, "engines": { - "node": ">=6.0.0" + "node": ">= 0.4" } }, - "node_modules/remarkable": { - "version": "1.7.4", + "node_modules/stream-browserify": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", + "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", + "dev": true, + "dependencies": { + "inherits": "~2.0.1", + "readable-stream": "^2.0.2" + } + }, + "node_modules/stream-combiner2": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", + "integrity": "sha512-3PnJbYgS56AeWgtKF5jtJRT6uFJe56Z0Hc5Ngg/6sI6rIt8iiMBTa9cvdyFfpMQjaVHr8dusbNeFGIIonxOvKw==", + "dev": true, + "dependencies": { + "duplexer2": "~0.1.0", + "readable-stream": "^2.0.2" + } + }, + "node_modules/stream-http": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-3.2.0.tgz", + "integrity": "sha512-Oq1bLqisTyK3TSCXpPbT4sdeYNdmyZJv1LxpEm2vu1ZhK89kSE5YXwZc3cWk0MagGaKriBh9mCFbVGtO+vY29A==", + "dev": true, + "dependencies": { + "builtin-status-codes": "^3.0.0", + "inherits": "^2.0.4", + "readable-stream": "^3.6.0", + "xtend": "^4.0.2" + } + }, + "node_modules/stream-http/node_modules/readable-stream": { + "version": "3.6.0", "dev": true, "license": "MIT", "dependencies": { - "argparse": "^1.0.10", - "autolinker": "~0.28.0" - }, - "bin": { - "remarkable": "bin/remarkable.js" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" }, "engines": { - "node": ">= 0.10.0" + "node": ">= 6" } }, - "node_modules/repeat-element": { - "version": "1.1.3", + "node_modules/stream-splicer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/stream-splicer/-/stream-splicer-2.0.1.tgz", + "integrity": "sha512-Xizh4/NPuYSyAXyT7g8IvdJ9HJpxIGL9PjyhtywCZvvP0OPIdqyrr4dMikeuvY8xahpdKEBlBTySe583totajg==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" + "dependencies": { + "inherits": "^2.0.1", + "readable-stream": "^2.0.2" } }, - "node_modules/repeat-string": { - "version": "1.6.1", + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", "dev": true, "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, "engines": { - "node": ">=0.10" + "node": ">=10" } }, - "node_modules/require-directory": { - "version": "2.1.1", + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/require-from-string": { - "version": "2.0.2", - "license": "MIT", + "node_modules/string.prototype.trim": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", + "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/resolve": { - "version": "1.22.0", - "dev": true, - "license": "MIT", + "node_modules/string.prototype.trimend": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", + "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", "dependencies": { - "is-core-module": "^2.8.1", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" }, - "bin": { - "resolve": "bin/resolve" + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", + "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/resolve-cwd": { - "version": "3.0.0", + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, "license": "MIT", "dependencies": { - "resolve-from": "^5.0.0" + "ansi-regex": "^5.0.1" }, "engines": { "node": ">=8" } }, - "node_modules/resolve-from": { - "version": "5.0.0", + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "dev": true, "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/resolve.exports": { - "version": "1.1.0", + "node_modules/strip-color": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/strip-color/-/strip-color-0.1.0.tgz", + "integrity": "sha512-p9LsUieSjWNNAxVCXLeilaDlmuUOrDS5/dF9znM1nZc7EGX5+zEFC0bEevsNIaldjlks+2jns5Siz6F9iK6jwA==", "dev": true, "license": "MIT", "engines": { - "node": ">=10" + "node": ">=0.10.0" } }, - "node_modules/retry": { - "version": "0.12.0", + "node_modules/strip-final-newline": { + "version": "2.0.0", "dev": true, "license": "MIT", "engines": { - "node": ">= 4" + "node": ">=6" } }, - "node_modules/reusify": { - "version": "1.0.4", + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, "license": "MIT", "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/rimraf": { - "version": "3.0.2", + "node_modules/subarg": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz", + "integrity": "sha512-RIrIdRY0X1xojthNcVtgT9sjpOGagEUKpZdgBUi054OEPFo282yg+zE+t1Rj3+RqKq2xStL7uUHhY+AjbC4BXg==", "dev": true, - "license": "ISC", "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "queue-microtask": "^1.2.2" + "minimist": "^1.1.0" } }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/safe-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz", - "integrity": "sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==", + "node_modules/supports-color": { + "version": "7.2.0", "dev": true, "license": "MIT", "dependencies": { - "regexp-tree": "~0.1.1" + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/safe-regex-test": { + "node_modules/supports-preserve-symlinks-flag": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", - "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-regex": "^1.1.4" + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/safe-stable-stringify": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz", - "integrity": "sha512-ERq4hUjKDbJfE4+XtZLFPCDi8Vb1JqaxAPTxWFLBx8XcAlf9Bda/ZJdVezs/NAfsMQScyIlUMx+Yeu7P7rx5jw==" - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "node_modules/schema-utils": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", - "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", + "node_modules/svg-element-attributes": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/svg-element-attributes/-/svg-element-attributes-1.3.1.tgz", + "integrity": "sha512-Bh05dSOnJBf3miNMqpsormfNtfidA/GxQVakhtn0T4DECWKeXQRQUceYjJ+OxYiiLdGe4Jo9iFV8wICFapFeIA==", "dev": true, - "license": "MIT", - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" + "type": "github", + "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/schema-utils/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "node_modules/syntax-error": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", + "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", "dev": true, "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "acorn-node": "^1.2.0" } }, - "node_modules/schema-utils/node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", "dev": true, - "peerDependencies": { - "ajv": "^6.9.1" + "license": "MIT", + "engines": { + "node": ">=6" } }, - "node_modules/schema-utils/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/semver": { - "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "node_modules/tar-fs": { + "version": "2.1.1", "dev": true, "license": "MIT", "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" + "chownr": "^1.1.1", + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^2.1.4" } }, - "node_modules/set-getter": { - "version": "0.1.1", + "node_modules/tar-stream": { + "version": "2.2.0", "dev": true, "license": "MIT", "dependencies": { - "to-object-path": "^0.3.0" + "bl": "^4.0.3", + "end-of-stream": "^1.4.1", + "fs-constants": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1" }, "engines": { - "node": ">=0.10.0" + "node": ">=6" } }, - "node_modules/shallow-clone": { - "version": "3.0.1", + "node_modules/tar-stream/node_modules/readable-stream": { + "version": "3.6.0", "dev": true, "license": "MIT", "dependencies": { - "kind-of": "^6.0.2" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" }, "engines": { - "node": ">=8" + "node": ">= 6" } }, - "node_modules/shallow-clone": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", - "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "node_modules/ternary": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ternary/-/ternary-1.0.0.tgz", + "integrity": "sha512-/e+OUAGiEqytNLXnDfFkuel0N0y9IGkmvuGIPkirI+zv0dx/jPvUZ2l8qV6KYk8lmmLrAqk4iLJtRduUA6AUKw==", + "dev": true + }, + "node_modules/terser": { + "version": "5.17.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.17.1.tgz", + "integrity": "sha512-hVl35zClmpisy6oaoKALOpS0rDYLxRFLHhRuDlEGTKey9qHjS1w9GMORjuwIMt70Wan4lwsLYyWDVnWgF+KUEw==", "dev": true, "dependencies": { - "kind-of": "^6.0.2" + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" }, "engines": { - "node": ">=8" + "node": ">=10" } }, - "node_modules/shallow-clone/node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "node_modules/terser-webpack-plugin": { + "version": "5.3.7", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.7.tgz", + "integrity": "sha512-AfKwIktyP7Cu50xNjXF/6Qb5lBNzYaWpU6YfoX3uZicTx0zTy0stDDCsvjDapKsSDvOeWo5MEq4TmdBy2cNoHw==", "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.17", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.16.5" + }, "engines": { - "node": ">=0.10.0" + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } } }, - "node_modules/shasum": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz", - "integrity": "sha512-UTzHm/+AzKfO9RgPgRpDIuMSNie1ubXRaljjlhFMNGYoG7z+rm9AHLPMf70R7887xboDH9Q+5YQbWKObFHEAtw==", + "node_modules/terser-webpack-plugin/node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", "dev": true, - "license": "MIT", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, "engines": { - "node": ">=0.10.0" + "node": ">= 10.13.0" } }, - "node_modules/shebang-command": { - "version": "2.0.0", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", + "node_modules/terser-webpack-plugin/node_modules/serialize-javascript": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", + "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/shell-quote": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.3.tgz", - "integrity": "sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==", - "dev": true - }, - "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "randombytes": "^2.1.0" } }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true - }, - "node_modules/simple-concat": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", - "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", + "node_modules/terser-webpack-plugin/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/simple-eval": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/simple-eval/-/simple-eval-1.0.0.tgz", - "integrity": "sha512-kpKJR+bqTscgC0xuAl2xHN6bB12lHjC2DCUfqjAx19bQyO3R2EVLOurm3H9AUltv/uFVcSCVNc6faegR+8NYLw==", "dependencies": { - "jsep": "^1.1.2" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=12" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" } }, - "node_modules/sirv": { - "version": "1.0.19", - "resolved": "https://registry.npmjs.org/sirv/-/sirv-1.0.19.tgz", - "integrity": "sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==", + "node_modules/terser/node_modules/acorn": { + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", "dev": true, - "dependencies": { - "@polka/url": "^1.0.0-next.20", - "mrmime": "^1.0.0", - "totalist": "^1.0.0" + "bin": { + "acorn": "bin/acorn" }, "engines": { - "node": ">= 10" + "node": ">=0.4.0" } }, - "node_modules/sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "node_modules/terser/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", "dev": true }, - "node_modules/slash": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "node_modules/terser/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/source-map-support": { - "version": "0.5.13", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", - "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "node_modules/terser/node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", "dev": true, "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" } }, - "node_modules/source-map-support/node_modules/source-map": { - "version": "0.6.1", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" - }, - "node_modules/stack-utils": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "node_modules/test-exclude": { + "version": "6.0.0", "dev": true, + "license": "ISC", "dependencies": { - "escape-string-regexp": "^2.0.0" + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" }, - "engines": { - "node": ">=10" - } - }, - "node_modules/stack-utils/node_modules/escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true, "engines": { "node": ">=8" } }, - "node_modules/stop-iteration-iterator": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz", - "integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==", - "dev": true, - "dependencies": { - "internal-slot": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/stream-browserify": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", - "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", - "dev": true, - "dependencies": { - "inherits": "~2.0.1", - "readable-stream": "^2.0.2" - } + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true }, - "node_modules/stream-combiner2": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", - "integrity": "sha512-3PnJbYgS56AeWgtKF5jtJRT6uFJe56Z0Hc5Ngg/6sI6rIt8iiMBTa9cvdyFfpMQjaVHr8dusbNeFGIIonxOvKw==", - "dev": true, - "dependencies": { - "duplexer2": "~0.1.0", - "readable-stream": "^2.0.2" - } + "node_modules/through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "dev": true }, - "node_modules/stream-http": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-3.2.0.tgz", - "integrity": "sha512-Oq1bLqisTyK3TSCXpPbT4sdeYNdmyZJv1LxpEm2vu1ZhK89kSE5YXwZc3cWk0MagGaKriBh9mCFbVGtO+vY29A==", + "node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", "dev": true, + "license": "MIT", "dependencies": { - "builtin-status-codes": "^3.0.0", - "inherits": "^2.0.4", - "readable-stream": "^3.6.0", - "xtend": "^4.0.2" + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" } }, - "node_modules/stream-http/node_modules/readable-stream": { - "version": "3.6.0", + "node_modules/timers-browserify": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", + "integrity": "sha512-PIxwAupJZiYU4JmVZYwXp9FKsHMXb5h0ZEFyuXTAn8WLHOlcij+FEcbrvDsom1o5dr1YggEtFbECvGCW2sT53Q==", "dev": true, "license": "MIT", "dependencies": { @@ -10619,7091 +10342,6035 @@ "node": ">= 6" } }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "license": "BSD-3-Clause" + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true }, - "node_modules/stack-utils": { - "version": "2.0.5", + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", "dev": true, "license": "MIT", "dependencies": { - "escape-string-regexp": "^2.0.0" + "kind-of": "^3.0.2" }, "engines": { - "node": ">=10" + "node": ">=0.10.0" } }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "node_modules/to-regex-range": { + "version": "5.0.1", "dev": true, "license": "MIT", "dependencies": { - "safe-buffer": "~5.2.0" + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" } }, - "node_modules/string-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "node_modules/to-regex-range/node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, - "dependencies": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" - }, "engines": { - "node": ">=10" + "node": ">=0.12.0" } }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "node_modules/toml": { + "version": "2.3.6", + "dev": true, + "license": "MIT" + }, + "node_modules/totalist": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", + "integrity": "sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==", "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, "engines": { - "node": ">=8" + "node": ">=6" } }, - "node_modules/string.prototype.trim": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", - "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/transformify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/transformify/-/transformify-0.1.2.tgz", + "integrity": "sha512-BUZAqCslm5pVXExA8PfXcvp7exsUNqRcNzx+KXj3Bv0oMROqnAt4bvs9U8Z2wVPa40NvLWJ/oswN0kreNFxBUg==", + "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "readable-stream": "~1.1.9" } }, - "node_modules/string.prototype.trimend": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", - "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", + "node_modules/transformify/node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", + "dev": true + }, + "node_modules/transformify/node_modules/readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", + "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" } }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", - "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", + "node_modules/transformify/node_modules/string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", + "dev": true + }, + "node_modules/ts-loader": { + "version": "9.4.2", + "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.4.2.tgz", + "integrity": "sha512-OmlC4WVmFv5I0PpaxYb+qGeGOdm5giHU7HwDDUjw59emP2UYMHy9fFSDcYgSNoH8sXcj4hGCSEhlDZ9ULeDraA==", + "dev": true, "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" + "chalk": "^4.1.0", + "enhanced-resolve": "^5.0.0", + "micromatch": "^4.0.0", + "semver": "^7.3.4" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "typescript": "*", + "webpack": "^5.0.0" } }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "node_modules/ts-node": { + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", + "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", "dev": true, - "license": "MIT", "dependencies": { - "ansi-regex": "^5.0.1" + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" }, - "engines": { - "node": ">=8" + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } } }, - "node_modules/strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "node_modules/ts-node/node_modules/acorn": { + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", "dev": true, - "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, "engines": { - "node": ">=8" + "node": ">=0.4.0" } }, - "node_modules/strip-color": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/strip-color/-/strip-color-0.1.0.tgz", - "integrity": "sha512-p9LsUieSjWNNAxVCXLeilaDlmuUOrDS5/dF9znM1nZc7EGX5+zEFC0bEevsNIaldjlks+2jns5Siz6F9iK6jwA==", + "node_modules/ts-node/node_modules/acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", "dev": true, - "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=0.4.0" } }, - "node_modules/strip-final-newline": { - "version": "2.0.0", + "node_modules/ts-node/node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", "dev": true, - "license": "MIT", "engines": { - "node": ">=6" + "node": ">=0.3.1" } }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "node_modules/tsconfig-paths": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", + "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" } }, - "node_modules/subarg": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz", - "integrity": "sha512-RIrIdRY0X1xojthNcVtgT9sjpOGagEUKpZdgBUi054OEPFo282yg+zE+t1Rj3+RqKq2xStL7uUHhY+AjbC4BXg==", + "node_modules/tsconfig-paths/node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dev": true, "dependencies": { - "minimist": "^1.1.0" + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" } }, - "node_modules/supports-color": { - "version": "7.2.0", + "node_modules/tsconfig-paths/node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", "dev": true, "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, "engines": { "node": ">=8" } }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + }, + "node_modules/tsutils": { + "version": "3.21.0", "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^1.8.1" + }, "engines": { - "node": ">= 0.4" + "node": ">= 6" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" } }, - "node_modules/svg-element-attributes": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/svg-element-attributes/-/svg-element-attributes-1.3.1.tgz", - "integrity": "sha512-Bh05dSOnJBf3miNMqpsormfNtfidA/GxQVakhtn0T4DECWKeXQRQUceYjJ+OxYiiLdGe4Jo9iFV8wICFapFeIA==", + "node_modules/tsutils/node_modules/tslib": { + "version": "1.14.1", "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } + "license": "0BSD" }, - "node_modules/syntax-error": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", - "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", - "dev": true, - "dependencies": { - "acorn-node": "^1.2.0" - } + "node_modules/tty-browserify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.1.tgz", + "integrity": "sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==", + "dev": true }, - "node_modules/tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "node_modules/type-check": { + "version": "0.4.0", "dev": true, "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, "engines": { - "node": ">=6" + "node": ">= 0.8.0" } }, - "node_modules/tar-fs": { - "version": "2.1.1", + "node_modules/type-detect": { + "version": "4.0.8", "dev": true, "license": "MIT", - "dependencies": { - "chownr": "^1.1.1", - "mkdirp-classic": "^0.5.2", - "pump": "^3.0.0", - "tar-stream": "^2.1.4" + "engines": { + "node": ">=4" } }, - "node_modules/tar-stream": { - "version": "2.2.0", + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "dev": true, - "license": "MIT", - "dependencies": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" - }, + "license": "(MIT OR CC0-1.0)", "engines": { - "node": ">=6" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/tar-stream/node_modules/readable-stream": { - "version": "3.6.0", - "dev": true, - "license": "MIT", + "node_modules/typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" }, - "engines": { - "node": ">= 6" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/ternary": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/ternary/-/ternary-1.0.0.tgz", - "integrity": "sha512-/e+OUAGiEqytNLXnDfFkuel0N0y9IGkmvuGIPkirI+zv0dx/jPvUZ2l8qV6KYk8lmmLrAqk4iLJtRduUA6AUKw==", + "node_modules/typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", "dev": true }, - "node_modules/terser": { - "version": "5.17.1", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.17.1.tgz", - "integrity": "sha512-hVl35zClmpisy6oaoKALOpS0rDYLxRFLHhRuDlEGTKey9qHjS1w9GMORjuwIMt70Wan4lwsLYyWDVnWgF+KUEw==", + "node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "dev": true, - "dependencies": { - "@jridgewell/source-map": "^0.3.2", - "acorn": "^8.5.0", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, + "license": "Apache-2.0", "bin": { - "terser": "bin/terser" + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" }, "engines": { - "node": ">=10" + "node": ">=4.2.0" } }, - "node_modules/terser-webpack-plugin": { - "version": "5.3.7", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.7.tgz", - "integrity": "sha512-AfKwIktyP7Cu50xNjXF/6Qb5lBNzYaWpU6YfoX3uZicTx0zTy0stDDCsvjDapKsSDvOeWo5MEq4TmdBy2cNoHw==", - "dev": true, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", "dependencies": { - "@jridgewell/trace-mapping": "^0.3.17", - "jest-worker": "^27.4.5", - "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.1", - "terser": "^5.16.5" - }, - "engines": { - "node": ">= 10.13.0" + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.1.0" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "uglify-js": { - "optional": true - } + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/terser-webpack-plugin/node_modules/jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "node_modules/unbzip2-stream": { + "version": "1.4.3", "dev": true, + "license": "MIT", "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": ">= 10.13.0" + "buffer": "^5.2.1", + "through": "^2.3.8" } }, - "node_modules/terser-webpack-plugin/node_modules/serialize-javascript": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", - "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", + "node_modules/undeclared-identifiers": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/undeclared-identifiers/-/undeclared-identifiers-1.1.3.tgz", + "integrity": "sha512-pJOW4nxjlmfwKApE4zvxLScM/njmwj/DiUBv7EabwE4O8kRUy+HIwxQtZLBPll/jx1LJyBcqNfB3/cpv9EZwOw==", "dev": true, "dependencies": { - "randombytes": "^2.1.0" + "acorn-node": "^1.3.0", + "dash-ast": "^1.0.0", + "get-assigned-identifiers": "^1.2.0", + "simple-concat": "^1.0.0", + "xtend": "^4.0.1" + }, + "bin": { + "undeclared-identifiers": "bin.js" } }, - "node_modules/terser-webpack-plugin/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "node_modules/update-browserslist-db": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", + "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" + "escalade": "^3.1.1", + "picocolors": "^1.0.0" }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/terser/node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "dev": true, "bin": { - "acorn": "bin/acorn" + "update-browserslist-db": "cli.js" }, - "engines": { - "node": ">=0.4.0" + "peerDependencies": { + "browserslist": ">= 4.21.0" } }, - "node_modules/terser/node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dependencies": { + "punycode": "^2.1.0" + } }, - "node_modules/terser/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, + "node_modules/uri-js/node_modules/punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", "engines": { - "node": ">=0.10.0" + "node": ">=6" } }, - "node_modules/terser/node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "node_modules/urijs": { + "version": "1.19.11", + "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz", + "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==" + }, + "node_modules/url": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", + "integrity": "sha512-kbailJa29QrtXnxgq+DdCEGlbTeYM2eJUxsz6vjZavrCYPMIFHMKQmSKYAIuUK2i7hgPm28a8piX5NTUtM/LKQ==", "dev": true, "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" + "punycode": "1.3.2", + "querystring": "0.2.0" } }, - "node_modules/test-exclude": { - "version": "6.0.0", + "node_modules/url/node_modules/punycode": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", + "integrity": "sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw==", + "dev": true + }, + "node_modules/util": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", + "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", "dev": true, - "license": "ISC", + "license": "MIT" + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true + }, + "node_modules/utility-types": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", + "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true + }, + "node_modules/v8-to-istanbul": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz", + "integrity": "sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==", + "dev": true, + "license": "Apache-2.0", "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0" }, "engines": { - "node": ">=8" + "node": ">=10.12.0" } }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "node_modules/v8-to-istanbul/node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", "dev": true }, - "node_modules/through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "node_modules/vm-browserify": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", + "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", "dev": true }, - "node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", "dev": true, - "license": "MIT", + "license": "Apache-2.0", "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" + "makeerror": "1.0.12" } }, - "node_modules/timers-browserify": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", - "integrity": "sha512-PIxwAupJZiYU4JmVZYwXp9FKsHMXb5h0ZEFyuXTAn8WLHOlcij+FEcbrvDsom1o5dr1YggEtFbECvGCW2sT53Q==", + "node_modules/watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", "dev": true, - "license": "MIT", "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" }, "engines": { - "node": ">= 6" + "node": ">=10.13.0" } }, - "node_modules/tmpl": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", - "dev": true + "node_modules/webapi-parser": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/webapi-parser/-/webapi-parser-0.5.0.tgz", + "integrity": "sha512-fPt6XuMqLSvBz8exwX4QE1UT+pROLHa00EMDCdO0ybICduwQ1V4f7AWX4pNOpCp+x+0FjczEsOxtQU0d8L3QKw==", + "dependencies": { + "ajv": "6.5.2" + } }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "dev": true, - "engines": { - "node": ">=4" + "node_modules/webapi-parser/node_modules/ajv": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.2.tgz", + "integrity": "sha512-hOs7GfvI6tUI1LfZddH82ky6mOMyTuY0mk7kE2pWpmhhUSkumzaTO5vbVwij39MdwPQWCV4Zv57Eo06NtL/GVA==", + "dependencies": { + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.1" } }, - "node_modules/to-object-path": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", + "node_modules/webapi-parser/node_modules/fast-deep-equal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w==" + }, + "node_modules/webapi-parser/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/webpack": { + "version": "5.80.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.80.0.tgz", + "integrity": "sha512-OIMiq37XK1rWO8mH9ssfFKZsXg4n6klTEDL7S8/HqbAOBBaiy8ABvXvz0dDCXeEF9gqwxSvVk611zFPjS8hJxA==", "dev": true, "license": "MIT", "dependencies": { - "kind-of": "^3.0.2" + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.0", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.7.6", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.13.0", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.1.2", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.7", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" }, "engines": { - "node": ">=0.10.0" + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } } }, - "node_modules/to-regex-range": { - "version": "5.0.1", + "node_modules/webpack-bundle-analyzer": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.8.0.tgz", + "integrity": "sha512-ZzoSBePshOKhr+hd8u6oCkZVwpVaXgpw23ScGLFpR6SjYI7+7iIWYarjN6OEYOfRt8o7ZyZZQk0DuMizJ+LEIg==", "dev": true, "license": "MIT", "dependencies": { - "is-number": "^7.0.0" + "@discoveryjs/json-ext": "0.5.7", + "acorn": "^8.0.4", + "acorn-walk": "^8.0.0", + "chalk": "^4.1.0", + "commander": "^7.2.0", + "gzip-size": "^6.0.0", + "lodash": "^4.17.20", + "opener": "^1.5.2", + "sirv": "^1.0.7", + "ws": "^7.3.1" + }, + "bin": { + "webpack-bundle-analyzer": "lib/bin/analyzer.js" }, "engines": { - "node": ">=8.0" + "node": ">= 10.13.0" } }, - "node_modules/to-regex-range/node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "node_modules/webpack-bundle-analyzer/node_modules/acorn": { + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", "dev": true, + "bin": { + "acorn": "bin/acorn" + }, "engines": { - "node": ">=0.12.0" + "node": ">=0.4.0" } }, - "node_modules/toml": { - "version": "2.3.6", - "dev": true, - "license": "MIT" - }, - "node_modules/totalist": { - "version": "1.1.0", + "node_modules/webpack-bundle-analyzer/node_modules/acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", "dev": true, - "license": "MIT", "engines": { - "node": ">=6" + "node": ">=0.4.0" } }, - "node_modules/totalist": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", - "integrity": "sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==", + "node_modules/webpack-bundle-analyzer/node_modules/commander": { + "version": "7.2.0", "dev": true, + "license": "MIT", "engines": { - "node": ">=6" + "node": ">= 10" } }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, - "node_modules/transformify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/transformify/-/transformify-0.1.2.tgz", - "integrity": "sha512-BUZAqCslm5pVXExA8PfXcvp7exsUNqRcNzx+KXj3Bv0oMROqnAt4bvs9U8Z2wVPa40NvLWJ/oswN0kreNFxBUg==", + "node_modules/webpack-bundle-analyzer/node_modules/ws": { + "version": "7.5.9", "dev": true, - "dependencies": { - "readable-stream": "~1.1.9" - } - }, - "node_modules/transformify/node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "dev": true - }, - "node_modules/transformify/node_modules/readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", - "dev": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "node_modules/transformify/node_modules/string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", - "dev": true - }, - "node_modules/ts-loader": { - "version": "9.4.2", - "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.4.2.tgz", - "integrity": "sha512-OmlC4WVmFv5I0PpaxYb+qGeGOdm5giHU7HwDDUjw59emP2UYMHy9fFSDcYgSNoH8sXcj4hGCSEhlDZ9ULeDraA==", - "dev": true, - "dependencies": { - "chalk": "^4.1.0", - "enhanced-resolve": "^5.0.0", - "micromatch": "^4.0.0", - "semver": "^7.3.4" - }, + "license": "MIT", "engines": { - "node": ">=12.0.0" + "node": ">=8.3.0" }, "peerDependencies": { - "typescript": "*", - "webpack": "^5.0.0" + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } } }, - "node_modules/ts-node": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", - "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", + "node_modules/webpack-cli": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.10.0.tgz", + "integrity": "sha512-NLhDfH/h4O6UOy+0LSso42xvYypClINuMNBVVzX4vX98TmTaTUxwRbXdhucbFMd2qLaCTcLq/PdYrvi8onw90w==", "dev": true, "dependencies": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" + "@discoveryjs/json-ext": "^0.5.0", + "@webpack-cli/configtest": "^1.2.0", + "@webpack-cli/info": "^1.5.0", + "@webpack-cli/serve": "^1.7.0", + "colorette": "^2.0.14", + "commander": "^7.0.0", + "cross-spawn": "^7.0.3", + "fastest-levenshtein": "^1.0.12", + "import-local": "^3.0.2", + "interpret": "^2.2.0", + "rechoir": "^0.7.0", + "webpack-merge": "^5.7.3" }, "bin": { - "ts-node": "dist/bin.js", - "ts-node-cwd": "dist/bin-cwd.js", - "ts-node-esm": "dist/bin-esm.js", - "ts-node-script": "dist/bin-script.js", - "ts-node-transpile-only": "dist/bin-transpile.js", - "ts-script": "dist/bin-script-deprecated.js" + "webpack-cli": "bin/cli.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" }, "peerDependencies": { - "@swc/core": ">=1.2.50", - "@swc/wasm": ">=1.2.50", - "@types/node": "*", - "typescript": ">=2.7" + "webpack": "4.x.x || 5.x.x" }, "peerDependenciesMeta": { - "@swc/core": { + "@webpack-cli/generators": { "optional": true }, - "@swc/wasm": { + "@webpack-cli/migrate": { + "optional": true + }, + "webpack-bundle-analyzer": { + "optional": true + }, + "webpack-dev-server": { "optional": true } } }, - "node_modules/ts-node/node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/ts-node/node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "node_modules/webpack-cli/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", "dev": true, "engines": { - "node": ">=0.4.0" + "node": ">= 10" } }, - "node_modules/ts-node/node_modules/diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "node_modules/webpack-cli/node_modules/interpret": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", + "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", "dev": true, "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/tsconfig-paths": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", - "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", - "dev": true, - "dependencies": { - "@types/json5": "^0.0.29", - "json5": "^1.0.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" + "node": ">= 0.10" } }, - "node_modules/tsconfig-paths/node_modules/json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "node_modules/webpack-merge": { + "version": "5.8.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", + "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", "dev": true, "dependencies": { - "minimist": "^1.2.0" + "clone-deep": "^4.0.1", + "wildcard": "^2.0.0" }, - "bin": { - "json5": "lib/cli.js" + "engines": { + "node": ">=10.0.0" } }, - "node_modules/tsconfig-paths/node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "node_modules/webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", "dev": true, - "license": "MIT", "engines": { - "node": ">=8" + "node": ">=10.13.0" } }, - "node_modules/tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" - }, - "node_modules/tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "node_modules/webpack/node_modules/acorn": { + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^1.8.1" + "bin": { + "acorn": "bin/acorn" }, "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + "node": ">=0.4.0" } }, - "node_modules/tsutils/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, - "node_modules/tsutils": { - "version": "3.21.0", + "node_modules/webpack/node_modules/acorn-import-assertions": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", + "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^1.8.1" - }, - "engines": { - "node": ">= 6" - }, "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + "acorn": "^8" } }, - "node_modules/tsutils/node_modules/tslib": { - "version": "1.14.1", - "dev": true, - "license": "0BSD" + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } }, - "node_modules/type-check": { - "version": "0.4.0", + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, - "license": "MIT", "dependencies": { - "prelude-ls": "^1.2.1" + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" }, "engines": { - "node": ">= 0.8.0" + "node": ">= 8" } }, - "node_modules/type-detect": { - "version": "4.0.8", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "node_modules/which-collection": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", + "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" + "dependencies": { + "is-map": "^2.0.1", + "is-set": "^2.0.1", + "is-weakmap": "^2.0.1", + "is-weakset": "^2.0.1" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/typed-array-length": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", - "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "node_modules/which-typed-array": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", + "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", "dependencies": { + "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", "for-each": "^0.3.3", - "is-typed-array": "^1.1.9" + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", + "node_modules/wildcard": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", + "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", "dev": true }, - "node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "node_modules/word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, "engines": { - "node": ">=4.2.0" + "node": ">=0.10.0" } }, - "node_modules/umd": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/umd/-/umd-3.0.3.tgz", - "integrity": "sha512-4IcGSufhFshvLNcMCV80UnQVlZ5pMOC8mvNPForqwA4+lzYQuetTESLDQkeLmihq8bRcnpbQa48Wb8Lh16/xow==", + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "bin": { - "umd": "bin/cli.js" + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/unbox-primitive": { + "node_modules/wrappy": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dependencies": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/ws": { + "version": "8.8.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.8.1.tgz", + "integrity": "sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==", + "dev": true, + "engines": { + "node": ">=10.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } } }, - "node_modules/unbzip2-stream": { - "version": "1.4.3", + "node_modules/xtend": { + "version": "4.0.2", "dev": true, "license": "MIT", - "dependencies": { - "buffer": "^5.2.1", - "through": "^2.3.8" + "engines": { + "node": ">=0.4" } }, - "node_modules/undeclared-identifiers": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/undeclared-identifiers/-/undeclared-identifiers-1.1.3.tgz", - "integrity": "sha512-pJOW4nxjlmfwKApE4zvxLScM/njmwj/DiUBv7EabwE4O8kRUy+HIwxQtZLBPll/jx1LJyBcqNfB3/cpv9EZwOw==", + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true, - "dependencies": { - "acorn-node": "^1.3.0", - "dash-ast": "^1.0.0", - "get-assigned-identifiers": "^1.2.0", - "simple-concat": "^1.0.0", - "xtend": "^4.0.1" - }, - "bin": { - "undeclared-identifiers": "bin.js" + "engines": { + "node": ">=10" } }, - "node_modules/update-browserslist-db": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.9.tgz", - "integrity": "sha512-/xsqn21EGVdXI3EXSum1Yckj3ZVZugqyOZQ/CxYPBD/R+ko9NSUScf8tFF4dOKY+2pvSSJA/S+5B8s4Zr4kyvg==", + "node_modules/yallist": { + "version": "4.0.0", "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - } - ], - "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - }, - "bin": { - "browserslist-lint": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } + "license": "ISC" }, - "node_modules/update-browserslist-db": { - "version": "1.0.7", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - } - ], + "node_modules/yargs": { + "version": "17.7.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz", + "integrity": "sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==", + "dev": true, "license": "MIT", "dependencies": { + "cliui": "^8.0.1", "escalade": "^3.1.1", - "picocolors": "^1.0.0" - }, - "bin": { - "browserslist-lint": "cli.js" + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" }, - "peerDependencies": { - "browserslist": ">= 4.21.0" + "engines": { + "node": ">=12" } }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "node_modules/yargs/node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "dev": true, + "license": "MIT", "dependencies": { - "punycode": "^2.1.0" + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" } }, - "node_modules/uri-js/node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, "engines": { "node": ">=6" } }, - "node_modules/urijs": { - "version": "1.19.11", - "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz", - "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==" - }, - "node_modules/url": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", - "integrity": "sha512-kbailJa29QrtXnxgq+DdCEGlbTeYM2eJUxsz6vjZavrCYPMIFHMKQmSKYAIuUK2i7hgPm28a8piX5NTUtM/LKQ==", + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true, - "dependencies": { - "punycode": "1.3.2", - "querystring": "0.2.0" + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } - }, - "node_modules/url/node_modules/punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw==", - "dev": true - }, - "node_modules/util": { - "version": "0.10.4", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", - "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", + } + }, + "dependencies": { + "@ampproject/remapping": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", + "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", "dev": true, - "license": "MIT" - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true + "requires": { + "@jridgewell/gen-mapping": "^0.1.0", + "@jridgewell/trace-mapping": "^0.3.9" + } }, - "node_modules/util/node_modules/inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", - "dev": true + "@asyncapi/specs": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-5.1.0.tgz", + "integrity": "sha512-yffhETqehkim43luMnPKOwzY0D0YtU4bKpORIXIaid6p5Y5kDLrMGJaEPkNieQp03HMjhjFrnUPtT8kvqe0+aQ==", + "requires": { + "@types/json-schema": "^7.0.11" + } }, - "node_modules/utility-types": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", - "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==", - "engines": { - "node": ">= 4" + "@babel/code-frame": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.21.4.tgz", + "integrity": "sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g==", + "dev": true, + "requires": { + "@babel/highlight": "^7.18.6" } }, - "node_modules/v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "@babel/compat-data": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.19.3.tgz", + "integrity": "sha512-prBHMK4JYYK+wDjJF1q99KK4JLL+egWS4nmNqdlMUgCExMZ+iZW0hGhyC3VEbsPjvaN0TBhW//VIFwBrk8sEiw==", "dev": true }, - "node_modules/v8-to-istanbul": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz", - "integrity": "sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==", + "@babel/core": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.19.3.tgz", + "integrity": "sha512-WneDJxdsjEvyKtXKsaBGbDeiyOjR5vYq4HcShxnIbG0qixpoHjI3MqeZM9NDvsojNCEBItQE4juOo/bU6e72gQ==", "dev": true, - "license": "Apache-2.0", + "requires": { + "@ampproject/remapping": "^2.1.0", + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.19.3", + "@babel/helper-compilation-targets": "^7.19.3", + "@babel/helper-module-transforms": "^7.19.0", + "@babel/helpers": "^7.19.0", + "@babel/parser": "^7.19.3", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.19.3", + "@babel/types": "^7.19.3", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.1", + "semver": "^6.3.0" + }, "dependencies": { - "@jridgewell/trace-mapping": "^0.3.12", - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0" + "convert-source-map": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", + "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.1" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "@babel/generator": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.19.3.tgz", + "integrity": "sha512-fqVZnmp1ncvZU757UzDheKZpfPgatqY59XtW2/j/18H7u76akb8xqvjw82f+i2UKd/ksYsSick/BCLQUUtJ/qQ==", + "dev": true, + "requires": { + "@babel/types": "^7.19.3", + "@jridgewell/gen-mapping": "^0.3.2", + "jsesc": "^2.5.1" }, - "engines": { - "node": ">=10.12.0" + "dependencies": { + "@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + } } }, - "node_modules/v8-to-istanbul/node_modules/convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", - "dev": true + "@babel/helper-compilation-targets": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.19.3.tgz", + "integrity": "sha512-65ESqLGyGmLvgR0mst5AdW1FkNlj9rQsCKduzEoEPhBCDFGXvz2jW6bXFG6i0/MrV2s7hhXjjb2yAzcPuQlLwg==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.19.3", + "@babel/helper-validator-option": "^7.18.6", + "browserslist": "^4.21.3", + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } }, - "node_modules/vm-browserify": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", - "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", + "@babel/helper-environment-visitor": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", + "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", "dev": true }, - "node_modules/walker": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", - "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "@babel/helper-function-name": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz", + "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==", "dev": true, - "license": "Apache-2.0", - "dependencies": { - "makeerror": "1.0.12" + "requires": { + "@babel/template": "^7.18.10", + "@babel/types": "^7.19.0" } }, - "node_modules/watchpack": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", - "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "@babel/helper-hoist-variables": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", + "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", "dev": true, - "dependencies": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - }, - "engines": { - "node": ">=10.13.0" + "requires": { + "@babel/types": "^7.18.6" } }, - "node_modules/webapi-parser": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/webapi-parser/-/webapi-parser-0.5.0.tgz", - "integrity": "sha512-fPt6XuMqLSvBz8exwX4QE1UT+pROLHa00EMDCdO0ybICduwQ1V4f7AWX4pNOpCp+x+0FjczEsOxtQU0d8L3QKw==", - "dependencies": { - "ajv": "6.5.2" + "@babel/helper-module-imports": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", + "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" } }, - "node_modules/webapi-parser/node_modules/ajv": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.2.tgz", - "integrity": "sha512-hOs7GfvI6tUI1LfZddH82ky6mOMyTuY0mk7kE2pWpmhhUSkumzaTO5vbVwij39MdwPQWCV4Zv57Eo06NtL/GVA==", - "dependencies": { - "fast-deep-equal": "^2.0.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.1" + "@babel/helper-module-transforms": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.19.0.tgz", + "integrity": "sha512-3HBZ377Fe14RbLIA+ac3sY4PTgpxHVkFrESaWhoI5PuyXPBBX8+C34qblV9G89ZtycGJCmCI/Ut+VUDK4bltNQ==", + "dev": true, + "requires": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-simple-access": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/helper-validator-identifier": "^7.18.6", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.19.0", + "@babel/types": "^7.19.0" } }, - "node_modules/webapi-parser/node_modules/fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w==" + "@babel/helper-plugin-utils": { + "version": "7.20.2", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz", + "integrity": "sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==", + "dev": true }, - "node_modules/webapi-parser/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + "@babel/helper-simple-access": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.18.6.tgz", + "integrity": "sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==", + "dev": true, + "requires": { + "@babel/types": "^7.18.6" + } }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, - "node_modules/webpack": { - "version": "5.80.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.80.0.tgz", - "integrity": "sha512-OIMiq37XK1rWO8mH9ssfFKZsXg4n6klTEDL7S8/HqbAOBBaiy8ABvXvz0dDCXeEF9gqwxSvVk611zFPjS8hJxA==", + "@babel/helper-split-export-declaration": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", + "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", "dev": true, - "license": "MIT", - "dependencies": { - "@types/eslint-scope": "^3.7.3", - "@types/estree": "^1.0.0", - "@webassemblyjs/ast": "^1.11.5", - "@webassemblyjs/wasm-edit": "^1.11.5", - "@webassemblyjs/wasm-parser": "^1.11.5", - "acorn": "^8.7.1", - "acorn-import-assertions": "^1.7.6", - "browserslist": "^4.14.5", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.13.0", - "es-module-lexer": "^1.2.1", - "eslint-scope": "5.1.1", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.9", - "json-parse-even-better-errors": "^2.3.1", - "loader-runner": "^4.2.0", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^3.1.2", - "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.3.7", - "watchpack": "^2.4.0", - "webpack-sources": "^3.2.3" - }, - "bin": { - "webpack": "bin/webpack.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependenciesMeta": { - "webpack-cli": { - "optional": true - } + "requires": { + "@babel/types": "^7.18.6" } }, - "node_modules/webpack-bundle-analyzer": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.8.0.tgz", - "integrity": "sha512-ZzoSBePshOKhr+hd8u6oCkZVwpVaXgpw23ScGLFpR6SjYI7+7iIWYarjN6OEYOfRt8o7ZyZZQk0DuMizJ+LEIg==", + "@babel/helper-string-parser": { + "version": "7.19.4", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", + "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==", + "dev": true + }, + "@babel/helper-validator-identifier": { + "version": "7.19.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", + "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "dev": true + }, + "@babel/helper-validator-option": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", + "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", + "dev": true + }, + "@babel/helpers": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.19.0.tgz", + "integrity": "sha512-DRBCKGwIEdqY3+rPJgG/dKfQy9+08rHIAJx8q2p+HSWP87s2HCrQmaAMMyMll2kIXKCW0cO1RdQskx15Xakftg==", "dev": true, - "license": "MIT", - "dependencies": { - "@discoveryjs/json-ext": "0.5.7", - "acorn": "^8.0.4", - "acorn-walk": "^8.0.0", - "chalk": "^4.1.0", - "commander": "^7.2.0", - "gzip-size": "^6.0.0", - "lodash": "^4.17.20", - "opener": "^1.5.2", - "sirv": "^1.0.7", - "ws": "^7.3.1" - }, - "bin": { - "webpack-bundle-analyzer": "lib/bin/analyzer.js" - }, - "engines": { - "node": ">= 10.13.0" + "requires": { + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.19.0", + "@babel/types": "^7.19.0" } }, - "node_modules/webpack-bundle-analyzer/node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "@babel/highlight": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", + "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", "dev": true, - "bin": { - "acorn": "bin/acorn" + "requires": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" }, - "engines": { - "node": ">=0.4.0" + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } } }, - "node_modules/webpack-bundle-analyzer/node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "@babel/parser": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.21.4.tgz", + "integrity": "sha512-alVJj7k7zIxqBZ7BTRhz0IqJFxW1VJbm6N8JbcYhQ186df9ZBPbZBmWSqAMXwHGsCJdYks7z/voa3ibiS5bCIw==", + "dev": true + }, + "@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, - "engines": { - "node": ">=0.4.0" + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" } }, - "node_modules/webpack-bundle-analyzer/node_modules/commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", "dev": true, - "engines": { - "node": ">= 10" + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" } }, - "node_modules/webpack-bundle-analyzer/node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, - "license": "MIT" + "requires": { + "@babel/helper-plugin-utils": "^7.12.13" + } }, - "node_modules/webpack-bundle-analyzer/node_modules/commander": { - "version": "7.2.0", + "@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", "dev": true, - "license": "MIT", - "engines": { - "node": ">= 10" + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" } }, - "node_modules/webpack-bundle-analyzer/node_modules/has-flag": { - "version": "4.0.0", + "@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" } }, - "node_modules/webpack-bundle-analyzer/node_modules/supports-color": { - "version": "7.2.0", + "@babel/plugin-syntax-jsx": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.21.4.tgz", + "integrity": "sha512-5hewiLct5OKyh6PLKEYaFclcqtIgCb6bmELouxjF6up5q3Sov7rOayW4RwhbaBL0dit8rA80GNfY+UuDp2mBbQ==", "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" } }, - "node_modules/webpack-bundle-analyzer/node_modules/ws": { - "version": "7.5.9", + "@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" } }, - "node_modules/webpack-cli": { - "version": "4.10.0", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.10.0.tgz", - "integrity": "sha512-NLhDfH/h4O6UOy+0LSso42xvYypClINuMNBVVzX4vX98TmTaTUxwRbXdhucbFMd2qLaCTcLq/PdYrvi8onw90w==", + "@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, - "dependencies": { - "@discoveryjs/json-ext": "^0.5.0", - "@webpack-cli/configtest": "^1.2.0", - "@webpack-cli/info": "^1.5.0", - "@webpack-cli/serve": "^1.7.0", - "colorette": "^2.0.14", - "commander": "^7.0.0", - "cross-spawn": "^7.0.3", - "fastest-levenshtein": "^1.0.12", - "import-local": "^3.0.2", - "interpret": "^2.2.0", - "rechoir": "^0.7.0", - "webpack-merge": "^5.7.3" - }, - "bin": { - "webpack-cli": "bin/cli.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "4.x.x || 5.x.x" - }, - "peerDependenciesMeta": { - "@webpack-cli/generators": { - "optional": true - }, - "@webpack-cli/migrate": { - "optional": true - }, - "webpack-bundle-analyzer": { - "optional": true - }, - "webpack-dev-server": { - "optional": true - } + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" } }, - "node_modules/webpack-cli/node_modules/commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, - "engines": { - "node": ">= 10" + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" } }, - "node_modules/webpack-cli/node_modules/interpret": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", - "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, - "engines": { - "node": ">= 0.10" + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" } }, - "node_modules/webpack-cli/node_modules/rechoir": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", - "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", + "@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, - "dependencies": { - "resolve": "^1.9.0" - }, - "engines": { - "node": ">= 0.10" + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" } }, - "node_modules/webpack-merge": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", - "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", + "@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, - "dependencies": { - "clone-deep": "^4.0.1", - "wildcard": "^2.0.0" - }, - "engines": { - "node": ">=10.0.0" + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" } }, - "node_modules/webpack-sources": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", - "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dev": true, - "engines": { - "node": ">=10.13.0" + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" } }, - "node_modules/webpack/node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "@babel/plugin-syntax-typescript": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.21.4.tgz", + "integrity": "sha512-xz0D39NvhQn4t4RNsHmDnnsaQizIlUkdtYvLs8La1BlfjQ6JEwxkJGeqJMW2tAXx+q6H+WFuUTXNdYVpEya0YA==", "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" } }, - "node_modules/webpack/node_modules/acorn-import-assertions": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", - "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", + "@babel/runtime": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz", + "integrity": "sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==", "dev": true, - "peerDependencies": { - "acorn": "^8" + "requires": { + "regenerator-runtime": "^0.13.11" } }, - "node_modules/webpack/node_modules/events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "@babel/template": { + "version": "7.18.10", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", + "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", "dev": true, - "engines": { - "node": ">=0.8.x" + "requires": { + "@babel/code-frame": "^7.18.6", + "@babel/parser": "^7.18.10", + "@babel/types": "^7.18.10" } }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "@babel/traverse": { + "version": "7.19.3", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.19.3.tgz", + "integrity": "sha512-qh5yf6149zhq2sgIXmwjnsvmnNQC2iw70UFjp4olxucKrWd/dvlUsBI88VSLUsnMNF7/vnOiA+nk1+yLoCqROQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.19.3", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.19.0", + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/parser": "^7.19.3", + "@babel/types": "^7.19.3", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" + "globals": { + "version": "11.12.0", + "dev": true + } } }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "@babel/types": { + "version": "7.21.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.21.4.tgz", + "integrity": "sha512-rU2oY501qDxE8Pyo7i/Orqma4ziCOrby0/9mvbDUGEfvZjb279Nk9k19e2fiCxHbRRpY2ZyrgW1eq22mvmOIzA==", "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" + "requires": { + "@babel/helper-string-parser": "^7.19.4", + "@babel/helper-validator-identifier": "^7.19.1", + "to-fast-properties": "^2.0.0" } }, - "node_modules/which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true }, - "node_modules/which-collection": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", - "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", + "@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", "dev": true, - "dependencies": { - "is-map": "^2.0.1", - "is-set": "^2.0.1", - "is-weakmap": "^2.0.1", - "is-weakset": "^2.0.1" + "requires": { + "@jridgewell/trace-mapping": "0.3.9" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-typed-array": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", - "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0", - "is-typed-array": "^1.1.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "requires": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + } } }, - "node_modules/wildcard": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", - "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", + "@discoveryjs/json-ext": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", + "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", "dev": true }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + "requires": { + "eslint-visitor-keys": "^3.3.0" } }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "@eslint-community/regexpp": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.0.tgz", + "integrity": "sha512-vITaYzIcNmjn5tF5uxcZ/ft7/RXGrMUIS9HalWckEOF6ESiwXKoMzAQf2UW0aVd6rnOeExTJVd5hmWXucBKGXQ==", "dev": true }, - "node_modules/ws": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.8.1.tgz", - "integrity": "sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==", + "@eslint/eslintrc": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.2.tgz", + "integrity": "sha512-3W4f5tDUra+pA+FzgugqL2pRimUTDJWKr7BINqOpkZrC0uYI0NIc0/JFgBROCU07HR6GieA5m3/rsPIhDmCXTQ==", "dev": true, - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" + "requires": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.5.1", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true + "dependencies": { + "ajv": { + "version": "6.12.6", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } }, - "utf-8-validate": { - "optional": true + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true } } }, - "node_modules/xtend": { - "version": "4.0.2", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.4" - } + "@eslint/js": { + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.38.0.tgz", + "integrity": "sha512-IoD2MfUnOV58ghIHCiil01PcohxjbYR/qCxsoC+xNgUwh1EY8jOOrYmu3d3a71+tJJ23uscEV4X2HJWMsPJu4g==", + "dev": true }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "@github/browserslist-config": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@github/browserslist-config/-/browserslist-config-1.0.0.tgz", + "integrity": "sha512-gIhjdJp/c2beaIWWIlsXdqXVRUz3r2BxBCpfz/F3JXHvSAQ1paMYjLH+maEATtENg+k5eLV7gA+9yPp762ieuw==", + "dev": true + }, + "@humanwhocodes/config-array": { + "version": "0.11.8", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", + "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", "dev": true, - "engines": { - "node": ">=10" + "requires": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" } }, - "node_modules/yallist": { - "version": "4.0.0", - "dev": true, - "license": "ISC" + "@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true }, - "node_modules/yargs": { - "version": "17.7.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz", - "integrity": "sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==", + "@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, + "@istanbuljs/load-nyc-config": { + "version": "1.1.0", "dev": true, - "license": "MIT", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" + "requires": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" }, - "engines": { - "node": ">=12" + "dependencies": { + "find-up": { + "version": "4.1.0", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "locate-path": { + "version": "5.0.0", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-locate": { + "version": "4.1.0", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "path-exists": { + "version": "4.0.0", + "dev": true + } } }, - "node_modules/yargs/node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, - "engines": { - "node": ">=12" - } + "@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true }, - "node_modules/yauzl": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "@jest/console": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.5.0.tgz", + "integrity": "sha512-NEpkObxPwyw/XxZVLPmAGKE89IQRp4puc6IQRPru6JKd1M3fW9v1xM1AnzIJE65hbCkzQAdnL8P47e9hzhiYLQ==", "dev": true, - "license": "MIT", - "dependencies": { - "buffer-crc32": "~0.2.3", - "fd-slicer": "~1.1.0" + "requires": { + "@jest/types": "^29.5.0", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.5.0", + "jest-util": "^29.5.0", + "slash": "^3.0.0" } }, - "node_modules/yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - }, - "dependencies": { - "@ampproject/remapping": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", - "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", - "dev": true, - "requires": { - "@jridgewell/gen-mapping": "^0.1.0", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "@asyncapi/specs": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-5.1.0.tgz", - "integrity": "sha512-yffhETqehkim43luMnPKOwzY0D0YtU4bKpORIXIaid6p5Y5kDLrMGJaEPkNieQp03HMjhjFrnUPtT8kvqe0+aQ==", - "requires": { - "@types/json-schema": "^7.0.11" - } - }, - "@babel/code-frame": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.21.4.tgz", - "integrity": "sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g==", - "dev": true, - "requires": { - "@babel/highlight": "^7.18.6" - } - }, - "@babel/compat-data": { - "version": "7.19.3", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.19.3.tgz", - "integrity": "sha512-prBHMK4JYYK+wDjJF1q99KK4JLL+egWS4nmNqdlMUgCExMZ+iZW0hGhyC3VEbsPjvaN0TBhW//VIFwBrk8sEiw==", - "dev": true - }, - "@babel/core": { - "version": "7.19.3", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.19.3.tgz", - "integrity": "sha512-WneDJxdsjEvyKtXKsaBGbDeiyOjR5vYq4HcShxnIbG0qixpoHjI3MqeZM9NDvsojNCEBItQE4juOo/bU6e72gQ==", + "@jest/core": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.5.0.tgz", + "integrity": "sha512-28UzQc7ulUrOQw1IsN/kv1QES3q2kkbl/wGslyhAclqZ/8cMdB5M68BffkIdSJgKBUt50d3hbwJ92XESlE7LiQ==", "dev": true, "requires": { - "@ampproject/remapping": "^2.1.0", - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.19.3", - "@babel/helper-compilation-targets": "^7.19.3", - "@babel/helper-module-transforms": "^7.19.0", - "@babel/helpers": "^7.19.0", - "@babel/parser": "^7.19.3", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.19.3", - "@babel/types": "^7.19.3", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.1", - "semver": "^6.3.0" + "@jest/console": "^29.5.0", + "@jest/reporters": "^29.5.0", + "@jest/test-result": "^29.5.0", + "@jest/transform": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.5.0", + "jest-config": "^29.5.0", + "jest-haste-map": "^29.5.0", + "jest-message-util": "^29.5.0", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.5.0", + "jest-resolve-dependencies": "^29.5.0", + "jest-runner": "^29.5.0", + "jest-runtime": "^29.5.0", + "jest-snapshot": "^29.5.0", + "jest-util": "^29.5.0", + "jest-validate": "^29.5.0", + "jest-watcher": "^29.5.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.5.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" }, "dependencies": { - "convert-source-map": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", - "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + }, + "pretty-format": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", + "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", "dev": true, "requires": { - "safe-buffer": "~5.1.1" + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" } }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true } } }, - "@babel/generator": { - "version": "7.19.3", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.19.3.tgz", - "integrity": "sha512-fqVZnmp1ncvZU757UzDheKZpfPgatqY59XtW2/j/18H7u76akb8xqvjw82f+i2UKd/ksYsSick/BCLQUUtJ/qQ==", + "@jest/create-cache-key-function": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/create-cache-key-function/-/create-cache-key-function-27.5.1.tgz", + "integrity": "sha512-dmH1yW+makpTSURTy8VzdUwFnfQh1G8R+DxO2Ho2FFmBbKFEVm+3jWdvFhE2VqB/LATCTokkP0dotjyQyw5/AQ==", "dev": true, "requires": { - "@babel/types": "^7.19.3", - "@jridgewell/gen-mapping": "^0.3.2", - "jsesc": "^2.5.1" + "@jest/types": "^27.5.1" }, "dependencies": { - "@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "@jest/types": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", + "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", "dev": true, "requires": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + } + }, + "@types/yargs": { + "version": "16.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", + "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" } } } }, - "@babel/helper-compilation-targets": { - "version": "7.19.3", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.19.3.tgz", - "integrity": "sha512-65ESqLGyGmLvgR0mst5AdW1FkNlj9rQsCKduzEoEPhBCDFGXvz2jW6bXFG6i0/MrV2s7hhXjjb2yAzcPuQlLwg==", + "@jest/environment": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.5.0.tgz", + "integrity": "sha512-5FXw2+wD29YU1d4I2htpRX7jYnAyTRjP2CsXQdo9SAM8g3ifxWPSV0HnClSn71xwctr0U3oZIIH+dtbfmnbXVQ==", "dev": true, "requires": { - "@babel/compat-data": "^7.19.3", - "@babel/helper-validator-option": "^7.18.6", - "browserslist": "^4.21.3", - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "@jest/fake-timers": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/node": "*", + "jest-mock": "^29.5.0" } }, - "@babel/helper-environment-visitor": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", - "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", - "dev": true - }, - "@babel/helper-function-name": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz", - "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==", + "@jest/expect": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.5.0.tgz", + "integrity": "sha512-PueDR2HGihN3ciUNGr4uelropW7rqUfTiOn+8u0leg/42UhblPxHkfoh0Ruu3I9Y1962P3u2DY4+h7GVTSVU6g==", "dev": true, "requires": { - "@babel/template": "^7.18.10", - "@babel/types": "^7.19.0" + "expect": "^29.5.0", + "jest-snapshot": "^29.5.0" } }, - "@babel/helper-hoist-variables": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", - "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "@jest/expect-utils": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.5.0.tgz", + "integrity": "sha512-fmKzsidoXQT2KwnrwE0SQq3uj8Z763vzR8LnLBwC2qYWEFpjX8daRsk6rHUM1QvNlEW/UJXNXm59ztmJJWs2Mg==", "dev": true, "requires": { - "@babel/types": "^7.18.6" + "jest-get-type": "^29.4.3" } }, - "@babel/helper-module-imports": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", - "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", + "@jest/fake-timers": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.5.0.tgz", + "integrity": "sha512-9ARvuAAQcBwDAqOnglWq2zwNIRUDtk/SCkp/ToGEhFv5r86K21l+VEs0qNTaXtyiY0lEePl3kylijSYJQqdbDg==", "dev": true, "requires": { - "@babel/types": "^7.18.6" + "@jest/types": "^29.5.0", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.5.0", + "jest-mock": "^29.5.0", + "jest-util": "^29.5.0" } }, - "@babel/helper-module-transforms": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.19.0.tgz", - "integrity": "sha512-3HBZ377Fe14RbLIA+ac3sY4PTgpxHVkFrESaWhoI5PuyXPBBX8+C34qblV9G89ZtycGJCmCI/Ut+VUDK4bltNQ==", + "@jest/globals": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.5.0.tgz", + "integrity": "sha512-S02y0qMWGihdzNbUiqSAiKSpSozSuHX5UYc7QbnHP+D9Lyw8DgGGCinrN9uSuHPeKgSSzvPom2q1nAtBvUsvPQ==", "dev": true, "requires": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-simple-access": "^7.18.6", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/helper-validator-identifier": "^7.18.6", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.19.0", - "@babel/types": "^7.19.0" + "@jest/environment": "^29.5.0", + "@jest/expect": "^29.5.0", + "@jest/types": "^29.5.0", + "jest-mock": "^29.5.0" } }, - "@babel/helper-plugin-utils": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz", - "integrity": "sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==", - "dev": true - }, - "@babel/helper-simple-access": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.18.6.tgz", - "integrity": "sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==", + "@jest/reporters": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.5.0.tgz", + "integrity": "sha512-D05STXqj/M8bP9hQNSICtPqz97u7ffGzZu+9XLucXhkOFBqKcXe04JLZOgIekOxdb73MAoBUFnqvf7MCpKk5OA==", "dev": true, "requires": { - "@babel/types": "^7.18.6" + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.5.0", + "@jest/test-result": "^29.5.0", + "@jest/transform": "^29.5.0", + "@jest/types": "^29.5.0", + "@jridgewell/trace-mapping": "^0.3.15", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.5.0", + "jest-util": "^29.5.0", + "jest-worker": "^29.5.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "dependencies": { + "istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "requires": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + } + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } } }, - "@babel/helper-split-export-declaration": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", - "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "@jest/schemas": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.4.3.tgz", + "integrity": "sha512-VLYKXQmtmuEz6IxJsrZwzG9NvtkQsWNnWMsKxqWNu3+CnfzJQhp0WDDKWLVV9hLKr0l3SLLFRqcYHjhtyuDVxg==", "dev": true, "requires": { - "@babel/types": "^7.18.6" + "@sinclair/typebox": "^0.25.16" } }, - "@babel/helper-string-parser": { - "version": "7.19.4", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", - "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==", - "dev": true - }, - "@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", - "dev": true + "@jest/source-map": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.4.3.tgz", + "integrity": "sha512-qyt/mb6rLyd9j1jUts4EQncvS6Yy3PM9HghnNv86QBlV+zdL2inCdK1tuVlL+J+lpiw2BI67qXOrX3UurBqQ1w==", + "dev": true, + "requires": { + "@jridgewell/trace-mapping": "^0.3.15", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + } }, - "@babel/helper-validator-option": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", - "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", - "dev": true + "@jest/test-result": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.5.0.tgz", + "integrity": "sha512-fGl4rfitnbfLsrfx1uUpDEESS7zM8JdgZgOCQuxQvL1Sn/I6ijeAVQWGfXI9zb1i9Mzo495cIpVZhA0yr60PkQ==", + "dev": true, + "requires": { + "@jest/console": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + } }, - "@babel/helpers": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.19.0.tgz", - "integrity": "sha512-DRBCKGwIEdqY3+rPJgG/dKfQy9+08rHIAJx8q2p+HSWP87s2HCrQmaAMMyMll2kIXKCW0cO1RdQskx15Xakftg==", + "@jest/test-sequencer": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.5.0.tgz", + "integrity": "sha512-yPafQEcKjkSfDXyvtgiV4pevSeyuA6MQr6ZIdVkWJly9vkqjnFfcfhRQqpD5whjoU8EORki752xQmjaqoFjzMQ==", "dev": true, "requires": { - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.19.0", - "@babel/types": "^7.19.0" + "@jest/test-result": "^29.5.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.5.0", + "slash": "^3.0.0" } }, - "@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "@jest/transform": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.5.0.tgz", + "integrity": "sha512-8vbeZWqLJOvHaDfeMuoHITGKSz5qWc9u04lnWrQE3VyuSw604PzQM824ZeX9XSjUCeDiE3GuxZe5UKa8J61NQw==", "dev": true, "requires": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" + "@babel/core": "^7.11.6", + "@jest/types": "^29.5.0", + "@jridgewell/trace-mapping": "^0.3.15", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.5.0", + "jest-regex-util": "^29.4.3", + "jest-util": "^29.5.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" }, "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", "dev": true }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, "requires": { - "has-flag": "^3.0.0" + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" } } } }, - "@babel/parser": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.21.4.tgz", - "integrity": "sha512-alVJj7k7zIxqBZ7BTRhz0IqJFxW1VJbm6N8JbcYhQ186df9ZBPbZBmWSqAMXwHGsCJdYks7z/voa3ibiS5bCIw==", - "dev": true - }, - "@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "@jest/types": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.5.0.tgz", + "integrity": "sha512-qbu7kN6czmVRc3xWFQcAN03RAUamgppVUdXrvl1Wr3jlNF93o9mJbGcDWrwGB6ht44u7efB1qCFgVQmca24Uog==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.0" + "@jest/schemas": "^29.4.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" } }, - "@babel/plugin-syntax-bigint": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", - "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "@jridgewell/gen-mapping": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", + "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.0" + "@jridgewell/set-array": "^1.0.0", + "@jridgewell/sourcemap-codec": "^1.4.10" } }, - "@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.12.13" - } + "@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true }, - "@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } + "@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true }, - "@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "@jridgewell/source-map": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz", + "integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.0" + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "dependencies": { + "@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + } } }, - "@babel/plugin-syntax-jsx": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.21.4.tgz", - "integrity": "sha512-5hewiLct5OKyh6PLKEYaFclcqtIgCb6bmELouxjF6up5q3Sov7rOayW4RwhbaBL0dit8rA80GNfY+UuDp2mBbQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.20.2" - } + "@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true }, - "@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "@jridgewell/trace-mapping": { + "version": "0.3.18", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", + "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.10.4" + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" } }, - "@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } + "@jsep-plugin/regex": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.3.tgz", + "integrity": "sha512-XfZgry4DwEZvSFtS/6Y+R48D7qJYJK6R9/yJFyUFHCIUMEEHuJ4X95TDgJp5QkmzfLYvapMPzskV5HpIDrREug==", + "requires": {} }, - "@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } + "@jsep-plugin/ternary": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.3.tgz", + "integrity": "sha512-qtLGzCNzPVJ3kdH6/zoLWDPjauHIKiLSBAR71Wa0+PWvGA8wODUQvRgxtpUA5YqAYL3CQ8S4qXhd/9WuWTZirg==", + "requires": {} }, - "@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.0" + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" } }, - "@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true + }, + "@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.8.0" + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" } }, - "@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "dev": true, + "@openapi-contrib/openapi-schema-to-json-schema": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@openapi-contrib/openapi-schema-to-json-schema/-/openapi-schema-to-json-schema-3.2.0.tgz", + "integrity": "sha512-Gj6C0JwCr8arj0sYuslWXUBSP/KnUlEGnPW4qxlXvAl543oaNQgMgIgkQUA6vs5BCCvwTEiL8m/wdWzfl4UvSw==", "requires": { - "@babel/helper-plugin-utils": "^7.8.0" + "fast-deep-equal": "^3.1.3" } }, - "@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "@polka/url": { + "version": "1.0.0-next.21", + "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz", + "integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==", + "dev": true + }, + "@sinclair/typebox": { + "version": "0.25.24", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.25.24.tgz", + "integrity": "sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==", + "dev": true + }, + "@sinonjs/commons": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-2.0.0.tgz", + "integrity": "sha512-uLa0j859mMrg2slwQYdO/AkrOfmH+X6LTVmNTS9CqexuE2IvVORIkSpJLqePAbEnKJ77aMmCwr1NUZ57120Xcg==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.14.5" + "type-detect": "4.0.8" } }, - "@babel/plugin-syntax-typescript": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.21.4.tgz", - "integrity": "sha512-xz0D39NvhQn4t4RNsHmDnnsaQizIlUkdtYvLs8La1BlfjQ6JEwxkJGeqJMW2tAXx+q6H+WFuUTXNdYVpEya0YA==", + "@sinonjs/fake-timers": { + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.0.2.tgz", + "integrity": "sha512-SwUDyjWnah1AaNl7kxsa7cfLhlTYoiyhDAIgyh+El30YvXs/o7OLXpYH88Zdhyx9JExKrmHDJ+10bwIcY80Jmw==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.20.2" + "@sinonjs/commons": "^2.0.0" } }, - "@babel/runtime": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz", - "integrity": "sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==", - "dev": true, + "@stoplight/better-ajv-errors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.3.tgz", + "integrity": "sha512-0p9uXkuB22qGdNfy3VeEhxkU5uwvp/KrBTAbrLBURv6ilxIVwanKwjMc41lQfIVgPGcOkmLbTolfFrSsueu7zA==", "requires": { - "regenerator-runtime": "^0.13.11" + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" } }, - "@babel/template": { - "version": "7.18.10", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", - "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", - "dev": true, + "@stoplight/json": { + "version": "3.20.2", + "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.20.2.tgz", + "integrity": "sha512-e3Eb/DdLSpJVAsxAG1jKSnl4TVZLl2pH8KsJBWKf5GPCeI58Eo0ZpRTX3HcZ0gBaHWH6CnEHJkCRCONhoFbDIA==", "requires": { - "@babel/code-frame": "^7.18.6", - "@babel/parser": "^7.18.10", - "@babel/types": "^7.18.10" + "@stoplight/ordered-object-literal": "^1.0.3", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^13.6.0", + "jsonc-parser": "~2.2.1", + "lodash": "^4.17.21", + "safe-stable-stringify": "^1.1" } }, - "@babel/traverse": { - "version": "7.19.3", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.19.3.tgz", - "integrity": "sha512-qh5yf6149zhq2sgIXmwjnsvmnNQC2iw70UFjp4olxucKrWd/dvlUsBI88VSLUsnMNF7/vnOiA+nk1+yLoCqROQ==", - "dev": true, + "@stoplight/json-ref-readers": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@stoplight/json-ref-readers/-/json-ref-readers-1.2.2.tgz", + "integrity": "sha512-nty0tHUq2f1IKuFYsLM4CXLZGHdMn+X/IwEUIpeSOXt0QjMUbL0Em57iJUDzz+2MkWG83smIigNZ3fauGjqgdQ==", "requires": { - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.19.3", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.19.3", - "@babel/types": "^7.19.3", - "debug": "^4.1.0", - "globals": "^11.1.0" + "node-fetch": "^2.6.0", + "tslib": "^1.14.1" }, "dependencies": { - "globals": { - "version": "11.12.0" + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" } } }, - "@babel/types": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.21.4.tgz", - "integrity": "sha512-rU2oY501qDxE8Pyo7i/Orqma4ziCOrby0/9mvbDUGEfvZjb279Nk9k19e2fiCxHbRRpY2ZyrgW1eq22mvmOIzA==", - "dev": true, + "@stoplight/json-ref-resolver": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.5.tgz", + "integrity": "sha512-uaKLITor7UF+JBtI84zs3aOWM0L79zp7w9TrBTwPtx5SLbaQQ4HadDKgX5yhFOLMApLdhwhiftF4c0GFanOxGg==", "requires": { - "@babel/helper-string-parser": "^7.19.4", - "@babel/helper-validator-identifier": "^7.19.1", - "to-fast-properties": "^2.0.0" + "@stoplight/json": "^3.17.0", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^12.3.0 || ^13.0.0", + "@types/urijs": "^1.19.19", + "dependency-graph": "~0.11.0", + "fast-memoize": "^2.5.2", + "immer": "^9.0.6", + "lodash": "^4.17.21", + "tslib": "^2.3.1", + "urijs": "^1.19.11" } }, - "@bcoe/v8-coverage": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true + "@stoplight/ordered-object-literal": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@stoplight/ordered-object-literal/-/ordered-object-literal-1.0.4.tgz", + "integrity": "sha512-OF8uib1jjDs5/cCU+iOVy+GJjU3X7vk/qJIkIJFqwmlJKrrtijFmqwbu8XToXrwTYLQTP+Hebws5gtZEmk9jag==" }, - "@cspotcode/source-map-support": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", - "dev": true, + "@stoplight/path": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@stoplight/path/-/path-1.3.2.tgz", + "integrity": "sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ==" + }, + "@stoplight/spectral-core": { + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.17.0.tgz", + "integrity": "sha512-7D9og+iX2bCJMGPY7cvt2YdevFGDeSI7S2jPo7HWeGGitkef1FDSQ9AEapdwmCYvOJ7ztUlQdCCLTOb6Aani8w==", "requires": { - "@jridgewell/trace-mapping": "0.3.9" + "@stoplight/better-ajv-errors": "1.0.3", + "@stoplight/json": "~3.20.1", + "@stoplight/path": "1.3.2", + "@stoplight/spectral-parsers": "^1.0.0", + "@stoplight/spectral-ref-resolver": "^1.0.0", + "@stoplight/spectral-runtime": "^1.0.0", + "@stoplight/types": "~13.6.0", + "@types/es-aggregate-error": "^1.0.2", + "@types/json-schema": "^7.0.11", + "ajv": "^8.6.0", + "ajv-errors": "~3.0.0", + "ajv-formats": "~2.1.0", + "es-aggregate-error": "^1.0.7", + "jsonpath-plus": "7.1.0", + "lodash": "~4.17.21", + "lodash.topath": "^4.5.2", + "minimatch": "3.1.2", + "nimma": "0.2.2", + "pony-cause": "^1.0.0", + "simple-eval": "1.0.0", + "tslib": "^2.3.0" }, "dependencies": { - "@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", - "dev": true, + "@stoplight/types": { + "version": "13.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", + "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", "requires": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" } + }, + "jsonpath-plus": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.1.0.tgz", + "integrity": "sha512-gTaNRsPWO/K2KY6MrqaUFClF9kmuM6MFH5Dhg1VYDODgFbByw1yb7xu3hrViE/sz+dGOeMWgCzwUwQtAnCTE9g==" } } }, - "@discoveryjs/json-ext": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", - "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", - "dev": true + "@stoplight/spectral-formats": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.5.0.tgz", + "integrity": "sha512-VskkdU3qBSvI1dfJ79ysjvTssfNlbA6wrf/XkXK6iTyjfIVqOAWVtjypTb2U95tN/X8IjIBBhNWtZ4tNVZilrA==", + "requires": { + "@stoplight/json": "^3.17.0", + "@stoplight/spectral-core": "^1.8.0", + "@types/json-schema": "^7.0.7", + "tslib": "^2.3.1" + } }, - "@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", - "dev": true, + "@stoplight/spectral-functions": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-functions/-/spectral-functions-1.7.2.tgz", + "integrity": "sha512-f+61/FtIkQeIo+a269CeaeqjpyRsgDyIk6DGr7iS4hyuk1PPk7Uf6MNRDs9FEIBh7CpdEJ+HSHbMLwgpymWTIw==", "requires": { - "eslint-visitor-keys": "^3.3.0" + "@stoplight/better-ajv-errors": "1.0.3", + "@stoplight/json": "^3.17.1", + "@stoplight/spectral-core": "^1.7.0", + "@stoplight/spectral-formats": "^1.0.0", + "@stoplight/spectral-runtime": "^1.1.0", + "ajv": "^8.6.3", + "ajv-draft-04": "~1.0.0", + "ajv-errors": "~3.0.0", + "ajv-formats": "~2.1.0", + "lodash": "~4.17.21", + "tslib": "^2.3.0" } }, - "@eslint-community/regexpp": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.0.tgz", - "integrity": "sha512-vITaYzIcNmjn5tF5uxcZ/ft7/RXGrMUIS9HalWckEOF6ESiwXKoMzAQf2UW0aVd6rnOeExTJVd5hmWXucBKGXQ==", - "dev": true + "@stoplight/spectral-parsers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-parsers/-/spectral-parsers-1.0.2.tgz", + "integrity": "sha512-ZQXknJ+BM5Re4Opj4cgVlHgG2qyOk/wznKJq3Vf1qsBEg2CNzN0pJmSB0deRqW0kArqm44qpb8c+cz3F2rgMtw==", + "requires": { + "@stoplight/json": "~3.20.1", + "@stoplight/types": "^13.6.0", + "@stoplight/yaml": "~4.2.3", + "tslib": "^2.3.1" + } }, - "@eslint/eslintrc": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.2.tgz", - "integrity": "sha512-3W4f5tDUra+pA+FzgugqL2pRimUTDJWKr7BINqOpkZrC0uYI0NIc0/JFgBROCU07HR6GieA5m3/rsPIhDmCXTQ==", - "dev": true, + "@stoplight/spectral-ref-resolver": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-ref-resolver/-/spectral-ref-resolver-1.0.3.tgz", + "integrity": "sha512-pj+bH4SH8hcWlnV787WD7P0/En7LA3EfZMvG1JUGMW/7bFd9AaZZXNkh5j0ve8qnPlwP8F4SH/2Cnr1tXOXCVw==", "requires": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.5.1", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" + "@stoplight/json-ref-readers": "1.2.2", + "@stoplight/json-ref-resolver": "~3.1.5", + "@stoplight/spectral-runtime": "^1.1.2", + "dependency-graph": "0.11.0", + "tslib": "^2.3.1" + } + }, + "@stoplight/spectral-runtime": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-runtime/-/spectral-runtime-1.1.2.tgz", + "integrity": "sha512-fr5zRceXI+hrl82yAVoME+4GvJie8v3wmOe9tU+ZLRRNonizthy8qDi0Z/z4olE+vGreSDcuDOZ7JjRxFW5kTw==", + "requires": { + "@stoplight/json": "^3.17.0", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^12.3.0", + "abort-controller": "^3.0.0", + "lodash": "^4.17.21", + "node-fetch": "^2.6.7", + "tslib": "^2.3.1" }, "dependencies": { - "ajv": { - "version": "6.12.6", - "dev": true, + "@stoplight/types": { + "version": "12.5.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-12.5.0.tgz", + "integrity": "sha512-dwqYcDrGmEyUv5TWrDam5TGOxU72ufyQ7hnOIIDdmW5ezOwZaBFoR5XQ9AsH49w7wgvOqB2Bmo799pJPWnpCbg==", "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" } - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true } } }, - "@eslint/js": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.38.0.tgz", - "integrity": "sha512-IoD2MfUnOV58ghIHCiil01PcohxjbYR/qCxsoC+xNgUwh1EY8jOOrYmu3d3a71+tJJ23uscEV4X2HJWMsPJu4g==", - "dev": true + "@stoplight/types": { + "version": "13.12.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.12.0.tgz", + "integrity": "sha512-lpyB8b5cNcg/CyQ9W7Q2BxPkHhBA8+9byviGT6uL2Ok/5iao0poCnFUH++Cd7VN1/RaXrv0LT9fyOg4fJIl0iA==", + "requires": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + } }, - "@github/browserslist-config": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@github/browserslist-config/-/browserslist-config-1.0.0.tgz", - "integrity": "sha512-gIhjdJp/c2beaIWWIlsXdqXVRUz3r2BxBCpfz/F3JXHvSAQ1paMYjLH+maEATtENg+k5eLV7gA+9yPp762ieuw==", - "dev": true + "@stoplight/yaml": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/@stoplight/yaml/-/yaml-4.2.3.tgz", + "integrity": "sha512-Mx01wjRAR9C7yLMUyYFTfbUf5DimEpHMkRDQ1PKLe9dfNILbgdxyrncsOXM3vCpsQ1Hfj4bPiGl+u4u6e9Akqw==", + "requires": { + "@stoplight/ordered-object-literal": "^1.0.1", + "@stoplight/types": "^13.0.0", + "@stoplight/yaml-ast-parser": "0.0.48", + "tslib": "^2.2.0" + } }, - "@humanwhocodes/config-array": { - "version": "0.11.8", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", - "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", + "@stoplight/yaml-ast-parser": { + "version": "0.0.48", + "resolved": "https://registry.npmjs.org/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.48.tgz", + "integrity": "sha512-sV+51I7WYnLJnKPn2EMWgS4EUfoP4iWEbrWwbXsj0MZCB/xOK8j6+C9fntIdOM50kpx45ZLC3s6kwKivWuqvyg==" + }, + "@swc/core": { + "version": "1.3.52", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.52.tgz", + "integrity": "sha512-2LOkkl5Ebyzg1e2pu/tqz5zAAiNAtSR99KZDJz4+FTpo6lYwr+SRkeXSNFrYAReHBMb5VJoimrLDLHJ2X1E7Lg==", "dev": true, "requires": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", - "minimatch": "^3.0.5" + "@swc/core-darwin-arm64": "1.3.52", + "@swc/core-darwin-x64": "1.3.52", + "@swc/core-linux-arm-gnueabihf": "1.3.52", + "@swc/core-linux-arm64-gnu": "1.3.52", + "@swc/core-linux-arm64-musl": "1.3.52", + "@swc/core-linux-x64-gnu": "1.3.52", + "@swc/core-linux-x64-musl": "1.3.52", + "@swc/core-win32-arm64-msvc": "1.3.52", + "@swc/core-win32-ia32-msvc": "1.3.52", + "@swc/core-win32-x64-msvc": "1.3.52" } }, - "@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true + "@swc/core-darwin-arm64": { + "version": "1.3.52", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.52.tgz", + "integrity": "sha512-Y+4YDN7mAhMgqLVMjpIOagFg93uWdQRsJXd3NAXo24CAJXLBuXsiXQdJVdhGavQkF0+NuhFSTGrzB8TknzWQkg==", + "dev": true, + "optional": true }, - "@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "dev": true + "@swc/core-darwin-x64": { + "version": "1.3.52", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.52.tgz", + "integrity": "sha512-XbvBA+DwTedleh/smYA6E1Z1L1tVnF+ULhpszAAW4YYDzH47R73ucCdcSH/aHs4swv+uyvRquKoDtTTNZFvD4A==", + "dev": true, + "optional": true }, - "@istanbuljs/load-nyc-config": { - "version": "1.1.0", + "@swc/core-linux-arm-gnueabihf": { + "version": "1.3.52", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.52.tgz", + "integrity": "sha512-YRTLjZcoGH09q0vjg5s6vxOryzAGlMx2Ly6Hq8+8ruBtG3QTsCN3y7MI8mX254xdFCJiTX5YwQheGjRXS7FF9A==", "dev": true, - "requires": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" - }, - "dependencies": { - "find-up": { - "version": "4.1.0", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-locate": { - "version": "4.1.0", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "path-exists": { - "version": "4.0.0", - "dev": true - }, - "resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true - } - } + "optional": true }, - "@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true + "@swc/core-linux-arm64-gnu": { + "version": "1.3.52", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.52.tgz", + "integrity": "sha512-B0HKtj0XpqpqflGKMxFlyXyORN0xshF8TVzUBD/2FgF7o8fE2RM1eqtdf1EzmZTT1hwxLpJXrEj+0gSXfWPW4A==", + "dev": true, + "optional": true }, - "@jest/console": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.5.0.tgz", - "integrity": "sha512-NEpkObxPwyw/XxZVLPmAGKE89IQRp4puc6IQRPru6JKd1M3fW9v1xM1AnzIJE65hbCkzQAdnL8P47e9hzhiYLQ==", + "@swc/core-linux-arm64-musl": { + "version": "1.3.52", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.52.tgz", + "integrity": "sha512-GCxNjTAborAmv4VV1AMZLyejHLGgIzu13tvLUFqybtU4jFxVbE2ZK4ZnPCfDlWN+eBwyRWk1oNFR2hH+66vaUQ==", "dev": true, - "requires": { - "@jest/types": "^29.5.0", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^29.5.0", - "jest-util": "^29.5.0", - "slash": "^3.0.0" - } + "optional": true }, - "@jest/core": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.5.0.tgz", - "integrity": "sha512-28UzQc7ulUrOQw1IsN/kv1QES3q2kkbl/wGslyhAclqZ/8cMdB5M68BffkIdSJgKBUt50d3hbwJ92XESlE7LiQ==", + "@swc/core-linux-x64-gnu": { + "version": "1.3.52", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.52.tgz", + "integrity": "sha512-mrvDBSkLI3Mza2qcu3uzB5JGwMBYDb1++UQ1VB0RXf2AR21/cCper4P44IpfdeqFz9XyXq18Sh3gblICUCGvig==", + "dev": true, + "optional": true + }, + "@swc/core-linux-x64-musl": { + "version": "1.3.52", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.52.tgz", + "integrity": "sha512-r9RIvKUQv7yBkpXz+QxPAucdoj8ymBlgIm5rLE0b5VmU7dlKBnpAmRBYaITdH6IXhF0pwuG+FHAd5elBcrkIwA==", + "dev": true, + "optional": true + }, + "@swc/core-win32-arm64-msvc": { + "version": "1.3.52", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.52.tgz", + "integrity": "sha512-YRtEr7tDo0Wes3M2ZhigF4erUjWBXeFP+O+iz6ELBBmPG7B7m/lrA21eiW9/90YGnzi0iNo46shK6PfXuPhP+Q==", + "dev": true, + "optional": true + }, + "@swc/core-win32-ia32-msvc": { + "version": "1.3.52", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.52.tgz", + "integrity": "sha512-t1x6EdYg3nnnmZBkEtmdXwGpVFTnkNCYyTILcn4367tKI6NpcNe75tz6wBUZAWAmol6Bn75je9KHDNC9uBcO2A==", + "dev": true, + "optional": true + }, + "@swc/core-win32-x64-msvc": { + "version": "1.3.52", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.52.tgz", + "integrity": "sha512-ef0KzcHxWgRii0EyUlgzNA0ycqaRRKxSb6QCO9Ev3tib4SSjbPy0MAndU7f82Ndm/pPmXT+7cciRtZ083vzjZA==", + "dev": true, + "optional": true + }, + "@swc/jest": { + "version": "0.2.26", + "resolved": "https://registry.npmjs.org/@swc/jest/-/jest-0.2.26.tgz", + "integrity": "sha512-7lAi7q7ShTO3E5Gt1Xqf3pIhRbERxR1DUxvtVa9WKzIB+HGQ7wZP5sYx86zqnaEoKKGhmOoZ7gyW0IRu8Br5+A==", "dev": true, "requires": { - "@jest/console": "^29.5.0", - "@jest/reporters": "^29.5.0", - "@jest/test-result": "^29.5.0", - "@jest/transform": "^29.5.0", - "@jest/types": "^29.5.0", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-changed-files": "^29.5.0", - "jest-config": "^29.5.0", - "jest-haste-map": "^29.5.0", - "jest-message-util": "^29.5.0", - "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.5.0", - "jest-resolve-dependencies": "^29.5.0", - "jest-runner": "^29.5.0", - "jest-runtime": "^29.5.0", - "jest-snapshot": "^29.5.0", - "jest-util": "^29.5.0", - "jest-validate": "^29.5.0", - "jest-watcher": "^29.5.0", - "micromatch": "^4.0.4", - "pretty-format": "^29.5.0", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" + "@jest/create-cache-key-function": "^27.4.2", + "jsonc-parser": "^3.2.0" }, "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - }, - "pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, - "requires": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - } - }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "jsonc-parser": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", + "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==", "dev": true } } }, - "@jest/create-cache-key-function": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/create-cache-key-function/-/create-cache-key-function-27.5.1.tgz", - "integrity": "sha512-dmH1yW+makpTSURTy8VzdUwFnfQh1G8R+DxO2Ho2FFmBbKFEVm+3jWdvFhE2VqB/LATCTokkP0dotjyQyw5/AQ==", + "@tsconfig/node10": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", + "dev": true + }, + "@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true + }, + "@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true + }, + "@tsconfig/node16": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", + "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", + "dev": true + }, + "@types/babel__core": { + "version": "7.20.0", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.0.tgz", + "integrity": "sha512-+n8dL/9GWblDO0iU6eZAwEIJVr5DWigtle+Q6HLOrh/pdbXOhOtqzq8VPPE2zvNJzSKY4vH/z3iT3tn0A3ypiQ==", "dev": true, "requires": { - "@jest/types": "^27.5.1" - }, - "dependencies": { - "@jest/types": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/yargs": { - "version": "16.0.5", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" } }, - "@jest/environment": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.5.0.tgz", - "integrity": "sha512-5FXw2+wD29YU1d4I2htpRX7jYnAyTRjP2CsXQdo9SAM8g3ifxWPSV0HnClSn71xwctr0U3oZIIH+dtbfmnbXVQ==", + "@types/babel__generator": { + "version": "7.6.4", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", + "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", "dev": true, "requires": { - "@jest/fake-timers": "^29.5.0", - "@jest/types": "^29.5.0", - "@types/node": "*", - "jest-mock": "^29.5.0" + "@babel/types": "^7.0.0" } }, - "@jest/expect": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.5.0.tgz", - "integrity": "sha512-PueDR2HGihN3ciUNGr4uelropW7rqUfTiOn+8u0leg/42UhblPxHkfoh0Ruu3I9Y1962P3u2DY4+h7GVTSVU6g==", + "@types/babel__template": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", + "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", "dev": true, "requires": { - "expect": "^29.5.0", - "jest-snapshot": "^29.5.0" + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" } }, - "@jest/expect-utils": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.5.0.tgz", - "integrity": "sha512-fmKzsidoXQT2KwnrwE0SQq3uj8Z763vzR8LnLBwC2qYWEFpjX8daRsk6rHUM1QvNlEW/UJXNXm59ztmJJWs2Mg==", + "@types/babel__traverse": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.18.3.tgz", + "integrity": "sha512-1kbcJ40lLB7MHsj39U4Sh1uTd2E7rLEa79kmDpI6cy+XiXsteB3POdQomoq4FxszMrO3ZYchkhYJw7A2862b3w==", "dev": true, "requires": { - "jest-get-type": "^29.4.3" + "@babel/types": "^7.3.0" } }, - "@jest/fake-timers": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.5.0.tgz", - "integrity": "sha512-9ARvuAAQcBwDAqOnglWq2zwNIRUDtk/SCkp/ToGEhFv5r86K21l+VEs0qNTaXtyiY0lEePl3kylijSYJQqdbDg==", - "dev": true, + "@types/es-aggregate-error": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@types/es-aggregate-error/-/es-aggregate-error-1.0.2.tgz", + "integrity": "sha512-erqUpFXksaeR2kejKnhnjZjbFxUpGZx4Z7ydNL9ie8tEhXPiZTsLeUDJ6aR1F8j5wWUAtOAQWUqkc7givBJbBA==", "requires": { - "@jest/types": "^29.5.0", - "@sinonjs/fake-timers": "^10.0.2", - "@types/node": "*", - "jest-message-util": "^29.5.0", - "jest-mock": "^29.5.0", - "jest-util": "^29.5.0" + "@types/node": "*" } }, - "@jest/globals": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.5.0.tgz", - "integrity": "sha512-S02y0qMWGihdzNbUiqSAiKSpSozSuHX5UYc7QbnHP+D9Lyw8DgGGCinrN9uSuHPeKgSSzvPom2q1nAtBvUsvPQ==", + "@types/eslint": { + "version": "8.37.0", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.37.0.tgz", + "integrity": "sha512-Piet7dG2JBuDIfohBngQ3rCt7MgO9xCO4xIMKxBThCq5PNRB91IjlJ10eJVwfoNtvTErmxLzwBZ7rHZtbOMmFQ==", "dev": true, "requires": { - "@jest/environment": "^29.5.0", - "@jest/expect": "^29.5.0", - "@jest/types": "^29.5.0", - "jest-mock": "^29.5.0" + "@types/estree": "*", + "@types/json-schema": "*" } }, - "@jest/reporters": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.5.0.tgz", - "integrity": "sha512-D05STXqj/M8bP9hQNSICtPqz97u7ffGzZu+9XLucXhkOFBqKcXe04JLZOgIekOxdb73MAoBUFnqvf7MCpKk5OA==", + "@types/eslint-scope": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", + "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", "dev": true, "requires": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^29.5.0", - "@jest/test-result": "^29.5.0", - "@jest/transform": "^29.5.0", - "@jest/types": "^29.5.0", - "@jridgewell/trace-mapping": "^0.3.15", - "@types/node": "*", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^5.1.0", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.1.3", - "jest-message-util": "^29.5.0", - "jest-util": "^29.5.0", - "jest-worker": "^29.5.0", - "slash": "^3.0.0", - "string-length": "^4.0.1", - "strip-ansi": "^6.0.0", - "v8-to-istanbul": "^9.0.1" - }, - "dependencies": { - "istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "requires": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "@types/eslint": "*", + "@types/estree": "*" } }, - "@jest/schemas": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.4.3.tgz", - "integrity": "sha512-VLYKXQmtmuEz6IxJsrZwzG9NvtkQsWNnWMsKxqWNu3+CnfzJQhp0WDDKWLVV9hLKr0l3SLLFRqcYHjhtyuDVxg==", - "dev": true, - "requires": { - "@sinclair/typebox": "^0.25.16" - } + "@types/estree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", + "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==", + "dev": true }, - "@jest/source-map": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.4.3.tgz", - "integrity": "sha512-qyt/mb6rLyd9j1jUts4EQncvS6Yy3PM9HghnNv86QBlV+zdL2inCdK1tuVlL+J+lpiw2BI67qXOrX3UurBqQ1w==", + "@types/graceful-fs": { + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", + "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", "dev": true, "requires": { - "@jridgewell/trace-mapping": "^0.3.15", - "callsites": "^3.0.0", - "graceful-fs": "^4.2.9" + "@types/node": "*" } }, - "@jest/test-result": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.5.0.tgz", - "integrity": "sha512-fGl4rfitnbfLsrfx1uUpDEESS7zM8JdgZgOCQuxQvL1Sn/I6ijeAVQWGfXI9zb1i9Mzo495cIpVZhA0yr60PkQ==", + "@types/istanbul-lib-coverage": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", + "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", + "dev": true + }, + "@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", "dev": true, "requires": { - "@jest/console": "^29.5.0", - "@jest/types": "^29.5.0", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" + "@types/istanbul-lib-coverage": "*" } }, - "@jest/test-sequencer": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.5.0.tgz", - "integrity": "sha512-yPafQEcKjkSfDXyvtgiV4pevSeyuA6MQr6ZIdVkWJly9vkqjnFfcfhRQqpD5whjoU8EORki752xQmjaqoFjzMQ==", + "@types/istanbul-reports": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", "dev": true, "requires": { - "@jest/test-result": "^29.5.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.5.0", - "slash": "^3.0.0" + "@types/istanbul-lib-report": "*" } }, - "@jest/transform": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.5.0.tgz", - "integrity": "sha512-8vbeZWqLJOvHaDfeMuoHITGKSz5qWc9u04lnWrQE3VyuSw604PzQM824ZeX9XSjUCeDiE3GuxZe5UKa8J61NQw==", + "@types/jest": { + "version": "27.5.2", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.5.2.tgz", + "integrity": "sha512-mpT8LJJ4CMeeahobofYWIjFo0xonRS/HfxnVEPMPFSQdGUt1uHCnoPT7Zhb+sjDU2wz0oKV0OLUR0WzrHNgfeA==", "dev": true, "requires": { - "@babel/core": "^7.11.6", - "@jest/types": "^29.5.0", - "@jridgewell/trace-mapping": "^0.3.15", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^2.0.0", - "fast-json-stable-stringify": "^2.1.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.5.0", - "jest-regex-util": "^29.4.3", - "jest-util": "^29.5.0", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "write-file-atomic": "^4.0.2" - }, - "dependencies": { - "convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true - }, - "write-file-atomic": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", - "dev": true, - "requires": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - } - } + "jest-matcher-utils": "^27.0.0", + "pretty-format": "^27.0.0" } }, - "@jest/types": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.5.0.tgz", - "integrity": "sha512-qbu7kN6czmVRc3xWFQcAN03RAUamgppVUdXrvl1Wr3jlNF93o9mJbGcDWrwGB6ht44u7efB1qCFgVQmca24Uog==", + "@types/js-yaml": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz", + "integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==", + "dev": true + }, + "@types/json-schema": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" + }, + "@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, + "@types/node": { + "version": "18.16.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.1.tgz", + "integrity": "sha512-DZxSZWXxFfOlx7k7Rv4LAyiMroaxa3Ly/7OOzZO8cBNho0YzAi4qlbrx8W27JGqG57IgR/6J7r+nOJWw6kcvZA==" + }, + "@types/node-fetch": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.3.tgz", + "integrity": "sha512-ETTL1mOEdq/sxUtgtOhKjyB2Irra4cjxksvcMUR5Zr4n+PxVhsCD9WS46oPbHL3et9Zde7CNRr+WUNlcHvsX+w==", "dev": true, "requires": { - "@jest/schemas": "^29.4.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" + "form-data": "^3.0.0" } }, - "@jridgewell/gen-mapping": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", - "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", - "dev": true, - "requires": { - "@jridgewell/set-array": "^1.0.0", - "@jridgewell/sourcemap-codec": "^1.4.10" - } + "@types/prettier": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.2.tgz", + "integrity": "sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg==", + "dev": true }, - "@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "@types/semver": { + "version": "7.3.13", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", + "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", "dev": true }, - "@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "@types/stack-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", + "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", "dev": true }, - "@jridgewell/source-map": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz", - "integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==", + "@types/urijs": { + "version": "1.19.19", + "resolved": "https://registry.npmjs.org/@types/urijs/-/urijs-1.19.19.tgz", + "integrity": "sha512-FDJNkyhmKLw7uEvTxx5tSXfPeQpO0iy73Ry+PmYZJvQy0QIWX8a7kJ4kLWRf+EbTPJEPDSgPXHaM7pzr5lmvCg==" + }, + "@types/yargs": { + "version": "17.0.24", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", + "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", "dev": true, "requires": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "dependencies": { - "@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", - "dev": true, - "requires": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - } - } + "@types/yargs-parser": "*" } }, - "@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "@types/yargs-parser": { + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", "dev": true }, - "@jridgewell/trace-mapping": { - "version": "0.3.18", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", - "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", + "@types/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==", "dev": true, + "optional": true, "requires": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" + "@types/node": "*" } }, - "@jsep-plugin/regex": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.3.tgz", - "integrity": "sha512-XfZgry4DwEZvSFtS/6Y+R48D7qJYJK6R9/yJFyUFHCIUMEEHuJ4X95TDgJp5QkmzfLYvapMPzskV5HpIDrREug==", - "requires": {} - }, - "@jsep-plugin/ternary": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.3.tgz", - "integrity": "sha512-qtLGzCNzPVJ3kdH6/zoLWDPjauHIKiLSBAR71Wa0+PWvGA8wODUQvRgxtpUA5YqAYL3CQ8S4qXhd/9WuWTZirg==", - "requires": {} - }, - "@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "@typescript-eslint/eslint-plugin": { + "version": "5.59.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.0.tgz", + "integrity": "sha512-p0QgrEyrxAWBecR56gyn3wkG15TJdI//eetInP3zYRewDh0XS+DhB3VUAd3QqvziFsfaQIoIuZMxZRB7vXYaYw==", "dev": true, "requires": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.59.0", + "@typescript-eslint/type-utils": "5.59.0", + "@typescript-eslint/utils": "5.59.0", + "debug": "^4.3.4", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" } }, - "@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true - }, - "@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "@typescript-eslint/parser": { + "version": "5.59.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.0.tgz", + "integrity": "sha512-qK9TZ70eJtjojSUMrrEwA9ZDQ4N0e/AuoOIgXuNBorXYcBDk397D2r5MIe1B3cok/oCtdNC5j+lUUpVB+Dpb+w==", "dev": true, "requires": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" + "@typescript-eslint/scope-manager": "5.59.0", + "@typescript-eslint/types": "5.59.0", + "@typescript-eslint/typescript-estree": "5.59.0", + "debug": "^4.3.4" } }, - "@openapi-contrib/openapi-schema-to-json-schema": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@openapi-contrib/openapi-schema-to-json-schema/-/openapi-schema-to-json-schema-3.2.0.tgz", - "integrity": "sha512-Gj6C0JwCr8arj0sYuslWXUBSP/KnUlEGnPW4qxlXvAl543oaNQgMgIgkQUA6vs5BCCvwTEiL8m/wdWzfl4UvSw==", + "@typescript-eslint/scope-manager": { + "version": "5.59.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.0.tgz", + "integrity": "sha512-tsoldKaMh7izN6BvkK6zRMINj4Z2d6gGhO2UsI8zGZY3XhLq1DndP3Ycjhi1JwdwPRwtLMW4EFPgpuKhbCGOvQ==", + "dev": true, "requires": { - "fast-deep-equal": "^3.1.3" + "@typescript-eslint/types": "5.59.0", + "@typescript-eslint/visitor-keys": "5.59.0" } }, - "@polka/url": { - "version": "1.0.0-next.21", - "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz", - "integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==", - "dev": true + "@typescript-eslint/type-utils": { + "version": "5.59.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.0.tgz", + "integrity": "sha512-d/B6VSWnZwu70kcKQSCqjcXpVH+7ABKH8P1KNn4K7j5PXXuycZTPXF44Nui0TEm6rbWGi8kc78xRgOC4n7xFgA==", + "dev": true, + "requires": { + "@typescript-eslint/typescript-estree": "5.59.0", + "@typescript-eslint/utils": "5.59.0", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + } }, - "@sinclair/typebox": { - "version": "0.25.24", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.25.24.tgz", - "integrity": "sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==", + "@typescript-eslint/types": { + "version": "5.59.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.0.tgz", + "integrity": "sha512-yR2h1NotF23xFFYKHZs17QJnB51J/s+ud4PYU4MqdZbzeNxpgUr05+dNeCN/bb6raslHvGdd6BFCkVhpPk/ZeA==", "dev": true }, - "@sinonjs/commons": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-2.0.0.tgz", - "integrity": "sha512-uLa0j859mMrg2slwQYdO/AkrOfmH+X6LTVmNTS9CqexuE2IvVORIkSpJLqePAbEnKJ77aMmCwr1NUZ57120Xcg==", + "@typescript-eslint/typescript-estree": { + "version": "5.59.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.0.tgz", + "integrity": "sha512-sUNnktjmI8DyGzPdZ8dRwW741zopGxltGs/SAPgGL/AAgDpiLsCFLcMNSpbfXfmnNeHmK9h3wGmCkGRGAoUZAg==", "dev": true, "requires": { - "type-detect": "4.0.8" + "@typescript-eslint/types": "5.59.0", + "@typescript-eslint/visitor-keys": "5.59.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" } }, - "@sinonjs/fake-timers": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.0.2.tgz", - "integrity": "sha512-SwUDyjWnah1AaNl7kxsa7cfLhlTYoiyhDAIgyh+El30YvXs/o7OLXpYH88Zdhyx9JExKrmHDJ+10bwIcY80Jmw==", + "@typescript-eslint/utils": { + "version": "5.59.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.0.tgz", + "integrity": "sha512-GGLFd+86drlHSvPgN/el6dRQNYYGOvRSDVydsUaQluwIW3HvbXuxyuD5JETvBt/9qGYe+lOrDk6gRrWOHb/FvA==", "dev": true, "requires": { - "@sinonjs/commons": "^2.0.0" + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.59.0", + "@typescript-eslint/types": "5.59.0", + "@typescript-eslint/typescript-estree": "5.59.0", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" } }, - "@stoplight/better-ajv-errors": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.3.tgz", - "integrity": "sha512-0p9uXkuB22qGdNfy3VeEhxkU5uwvp/KrBTAbrLBURv6ilxIVwanKwjMc41lQfIVgPGcOkmLbTolfFrSsueu7zA==", + "@typescript-eslint/visitor-keys": { + "version": "5.59.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.0.tgz", + "integrity": "sha512-qZ3iXxQhanchCeaExlKPV3gDQFxMUmU35xfd5eCXB6+kUw1TUAbIy2n7QIrwz9s98DQLzNWyHp61fY0da4ZcbA==", + "dev": true, "requires": { - "jsonpointer": "^5.0.0", - "leven": "^3.1.0" + "@typescript-eslint/types": "5.59.0", + "eslint-visitor-keys": "^3.3.0" } }, - "@stoplight/json": { - "version": "3.20.2", - "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.20.2.tgz", - "integrity": "sha512-e3Eb/DdLSpJVAsxAG1jKSnl4TVZLl2pH8KsJBWKf5GPCeI58Eo0ZpRTX3HcZ0gBaHWH6CnEHJkCRCONhoFbDIA==", + "@webassemblyjs/ast": { + "version": "1.11.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.5.tgz", + "integrity": "sha512-LHY/GSAZZRpsNQH+/oHqhRQ5FT7eoULcBqgfyTB5nQHogFnK3/7QoN7dLnwSE/JkUAF0SrRuclT7ODqMFtWxxQ==", + "dev": true, "requires": { - "@stoplight/ordered-object-literal": "^1.0.3", - "@stoplight/path": "^1.3.2", - "@stoplight/types": "^13.6.0", - "jsonc-parser": "~2.2.1", - "lodash": "^4.17.21", - "safe-stable-stringify": "^1.1" + "@webassemblyjs/helper-numbers": "1.11.5", + "@webassemblyjs/helper-wasm-bytecode": "1.11.5" } }, - "@stoplight/json-ref-readers": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@stoplight/json-ref-readers/-/json-ref-readers-1.2.2.tgz", - "integrity": "sha512-nty0tHUq2f1IKuFYsLM4CXLZGHdMn+X/IwEUIpeSOXt0QjMUbL0Em57iJUDzz+2MkWG83smIigNZ3fauGjqgdQ==", + "@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.5.tgz", + "integrity": "sha512-1j1zTIC5EZOtCplMBG/IEwLtUojtwFVwdyVMbL/hwWqbzlQoJsWCOavrdnLkemwNoC/EOwtUFch3fuo+cbcXYQ==", + "dev": true + }, + "@webassemblyjs/helper-api-error": { + "version": "1.11.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.5.tgz", + "integrity": "sha512-L65bDPmfpY0+yFrsgz8b6LhXmbbs38OnwDCf6NpnMUYqa+ENfE5Dq9E42ny0qz/PdR0LJyq/T5YijPnU8AXEpA==", + "dev": true + }, + "@webassemblyjs/helper-buffer": { + "version": "1.11.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.5.tgz", + "integrity": "sha512-fDKo1gstwFFSfacIeH5KfwzjykIE6ldh1iH9Y/8YkAZrhmu4TctqYjSh7t0K2VyDSXOZJ1MLhht/k9IvYGcIxg==", + "dev": true + }, + "@webassemblyjs/helper-numbers": { + "version": "1.11.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.5.tgz", + "integrity": "sha512-DhykHXM0ZABqfIGYNv93A5KKDw/+ywBFnuWybZZWcuzWHfbp21wUfRkbtz7dMGwGgT4iXjWuhRMA2Mzod6W4WA==", + "dev": true, "requires": { - "node-fetch": "^2.6.0", - "tslib": "^1.14.1" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - } + "@webassemblyjs/floating-point-hex-parser": "1.11.5", + "@webassemblyjs/helper-api-error": "1.11.5", + "@xtuc/long": "4.2.2" } }, - "@stoplight/json-ref-resolver": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.5.tgz", - "integrity": "sha512-uaKLITor7UF+JBtI84zs3aOWM0L79zp7w9TrBTwPtx5SLbaQQ4HadDKgX5yhFOLMApLdhwhiftF4c0GFanOxGg==", + "@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.5.tgz", + "integrity": "sha512-oC4Qa0bNcqnjAowFn7MPCETQgDYytpsfvz4ujZz63Zu/a/v71HeCAAmZsgZ3YVKec3zSPYytG3/PrRCqbtcAvA==", + "dev": true + }, + "@webassemblyjs/helper-wasm-section": { + "version": "1.11.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.5.tgz", + "integrity": "sha512-uEoThA1LN2NA+K3B9wDo3yKlBfVtC6rh0i4/6hvbz071E8gTNZD/pT0MsBf7MeD6KbApMSkaAK0XeKyOZC7CIA==", + "dev": true, "requires": { - "@stoplight/json": "^3.17.0", - "@stoplight/path": "^1.3.2", - "@stoplight/types": "^12.3.0 || ^13.0.0", - "@types/urijs": "^1.19.19", - "dependency-graph": "~0.11.0", - "fast-memoize": "^2.5.2", - "immer": "^9.0.6", - "lodash": "^4.17.21", - "tslib": "^2.3.1", - "urijs": "^1.19.11" + "@webassemblyjs/ast": "1.11.5", + "@webassemblyjs/helper-buffer": "1.11.5", + "@webassemblyjs/helper-wasm-bytecode": "1.11.5", + "@webassemblyjs/wasm-gen": "1.11.5" } }, - "@stoplight/ordered-object-literal": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@stoplight/ordered-object-literal/-/ordered-object-literal-1.0.4.tgz", - "integrity": "sha512-OF8uib1jjDs5/cCU+iOVy+GJjU3X7vk/qJIkIJFqwmlJKrrtijFmqwbu8XToXrwTYLQTP+Hebws5gtZEmk9jag==" - }, - "@stoplight/path": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@stoplight/path/-/path-1.3.2.tgz", - "integrity": "sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ==" - }, - "@stoplight/spectral-core": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.17.0.tgz", - "integrity": "sha512-7D9og+iX2bCJMGPY7cvt2YdevFGDeSI7S2jPo7HWeGGitkef1FDSQ9AEapdwmCYvOJ7ztUlQdCCLTOb6Aani8w==", + "@webassemblyjs/ieee754": { + "version": "1.11.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.5.tgz", + "integrity": "sha512-37aGq6qVL8A8oPbPrSGMBcp38YZFXcHfiROflJn9jxSdSMMM5dS5P/9e2/TpaJuhE+wFrbukN2WI6Hw9MH5acg==", + "dev": true, "requires": { - "@stoplight/better-ajv-errors": "1.0.3", - "@stoplight/json": "~3.20.1", - "@stoplight/path": "1.3.2", - "@stoplight/spectral-parsers": "^1.0.0", - "@stoplight/spectral-ref-resolver": "^1.0.0", - "@stoplight/spectral-runtime": "^1.0.0", - "@stoplight/types": "~13.6.0", - "@types/es-aggregate-error": "^1.0.2", - "@types/json-schema": "^7.0.11", - "ajv": "^8.6.0", - "ajv-errors": "~3.0.0", - "ajv-formats": "~2.1.0", - "es-aggregate-error": "^1.0.7", - "jsonpath-plus": "7.1.0", - "lodash": "~4.17.21", - "lodash.topath": "^4.5.2", - "minimatch": "3.1.2", - "nimma": "0.2.2", - "pony-cause": "^1.0.0", - "simple-eval": "1.0.0", - "tslib": "^2.3.0" - }, - "dependencies": { - "@stoplight/types": { - "version": "13.6.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", - "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", - "requires": { - "@types/json-schema": "^7.0.4", - "utility-types": "^3.10.0" - } - }, - "jsonpath-plus": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.1.0.tgz", - "integrity": "sha512-gTaNRsPWO/K2KY6MrqaUFClF9kmuM6MFH5Dhg1VYDODgFbByw1yb7xu3hrViE/sz+dGOeMWgCzwUwQtAnCTE9g==" - } + "@xtuc/ieee754": "^1.2.0" } }, - "@stoplight/spectral-formats": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.5.0.tgz", - "integrity": "sha512-VskkdU3qBSvI1dfJ79ysjvTssfNlbA6wrf/XkXK6iTyjfIVqOAWVtjypTb2U95tN/X8IjIBBhNWtZ4tNVZilrA==", + "@webassemblyjs/leb128": { + "version": "1.11.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.5.tgz", + "integrity": "sha512-ajqrRSXaTJoPW+xmkfYN6l8VIeNnR4vBOTQO9HzR7IygoCcKWkICbKFbVTNMjMgMREqXEr0+2M6zukzM47ZUfQ==", + "dev": true, "requires": { - "@stoplight/json": "^3.17.0", - "@stoplight/spectral-core": "^1.8.0", - "@types/json-schema": "^7.0.7", - "tslib": "^2.3.1" + "@xtuc/long": "4.2.2" } }, - "@stoplight/spectral-functions": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-functions/-/spectral-functions-1.7.2.tgz", - "integrity": "sha512-f+61/FtIkQeIo+a269CeaeqjpyRsgDyIk6DGr7iS4hyuk1PPk7Uf6MNRDs9FEIBh7CpdEJ+HSHbMLwgpymWTIw==", - "requires": { - "@stoplight/better-ajv-errors": "1.0.3", - "@stoplight/json": "^3.17.1", - "@stoplight/spectral-core": "^1.7.0", - "@stoplight/spectral-formats": "^1.0.0", - "@stoplight/spectral-runtime": "^1.1.0", - "ajv": "^8.6.3", - "ajv-draft-04": "~1.0.0", - "ajv-errors": "~3.0.0", - "ajv-formats": "~2.1.0", - "lodash": "~4.17.21", - "tslib": "^2.3.0" - } + "@webassemblyjs/utf8": { + "version": "1.11.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.5.tgz", + "integrity": "sha512-WiOhulHKTZU5UPlRl53gHR8OxdGsSOxqfpqWeA2FmcwBMaoEdz6b2x2si3IwC9/fSPLfe8pBMRTHVMk5nlwnFQ==", + "dev": true }, - "@stoplight/spectral-parsers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-parsers/-/spectral-parsers-1.0.2.tgz", - "integrity": "sha512-ZQXknJ+BM5Re4Opj4cgVlHgG2qyOk/wznKJq3Vf1qsBEg2CNzN0pJmSB0deRqW0kArqm44qpb8c+cz3F2rgMtw==", + "@webassemblyjs/wasm-edit": { + "version": "1.11.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.5.tgz", + "integrity": "sha512-C0p9D2fAu3Twwqvygvf42iGCQ4av8MFBLiTb+08SZ4cEdwzWx9QeAHDo1E2k+9s/0w1DM40oflJOpkZ8jW4HCQ==", + "dev": true, "requires": { - "@stoplight/json": "~3.20.1", - "@stoplight/types": "^13.6.0", - "@stoplight/yaml": "~4.2.3", - "tslib": "^2.3.1" + "@webassemblyjs/ast": "1.11.5", + "@webassemblyjs/helper-buffer": "1.11.5", + "@webassemblyjs/helper-wasm-bytecode": "1.11.5", + "@webassemblyjs/helper-wasm-section": "1.11.5", + "@webassemblyjs/wasm-gen": "1.11.5", + "@webassemblyjs/wasm-opt": "1.11.5", + "@webassemblyjs/wasm-parser": "1.11.5", + "@webassemblyjs/wast-printer": "1.11.5" } }, - "@stoplight/spectral-ref-resolver": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-ref-resolver/-/spectral-ref-resolver-1.0.3.tgz", - "integrity": "sha512-pj+bH4SH8hcWlnV787WD7P0/En7LA3EfZMvG1JUGMW/7bFd9AaZZXNkh5j0ve8qnPlwP8F4SH/2Cnr1tXOXCVw==", + "@webassemblyjs/wasm-gen": { + "version": "1.11.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.5.tgz", + "integrity": "sha512-14vteRlRjxLK9eSyYFvw1K8Vv+iPdZU0Aebk3j6oB8TQiQYuO6hj9s4d7qf6f2HJr2khzvNldAFG13CgdkAIfA==", + "dev": true, "requires": { - "@stoplight/json-ref-readers": "1.2.2", - "@stoplight/json-ref-resolver": "~3.1.5", - "@stoplight/spectral-runtime": "^1.1.2", - "dependency-graph": "0.11.0", - "tslib": "^2.3.1" + "@webassemblyjs/ast": "1.11.5", + "@webassemblyjs/helper-wasm-bytecode": "1.11.5", + "@webassemblyjs/ieee754": "1.11.5", + "@webassemblyjs/leb128": "1.11.5", + "@webassemblyjs/utf8": "1.11.5" } }, - "@stoplight/spectral-runtime": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-runtime/-/spectral-runtime-1.1.2.tgz", - "integrity": "sha512-fr5zRceXI+hrl82yAVoME+4GvJie8v3wmOe9tU+ZLRRNonizthy8qDi0Z/z4olE+vGreSDcuDOZ7JjRxFW5kTw==", + "@webassemblyjs/wasm-opt": { + "version": "1.11.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.5.tgz", + "integrity": "sha512-tcKwlIXstBQgbKy1MlbDMlXaxpucn42eb17H29rawYLxm5+MsEmgPzeCP8B1Cl69hCice8LeKgZpRUAPtqYPgw==", + "dev": true, "requires": { - "@stoplight/json": "^3.17.0", - "@stoplight/path": "^1.3.2", - "@stoplight/types": "^12.3.0", - "abort-controller": "^3.0.0", - "lodash": "^4.17.21", - "node-fetch": "^2.6.7", - "tslib": "^2.3.1" - }, - "dependencies": { - "@stoplight/types": { - "version": "12.5.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-12.5.0.tgz", - "integrity": "sha512-dwqYcDrGmEyUv5TWrDam5TGOxU72ufyQ7hnOIIDdmW5ezOwZaBFoR5XQ9AsH49w7wgvOqB2Bmo799pJPWnpCbg==", - "requires": { - "@types/json-schema": "^7.0.4", - "utility-types": "^3.10.0" - } - } + "@webassemblyjs/ast": "1.11.5", + "@webassemblyjs/helper-buffer": "1.11.5", + "@webassemblyjs/wasm-gen": "1.11.5", + "@webassemblyjs/wasm-parser": "1.11.5" } }, - "@stoplight/types": { - "version": "13.12.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.12.0.tgz", - "integrity": "sha512-lpyB8b5cNcg/CyQ9W7Q2BxPkHhBA8+9byviGT6uL2Ok/5iao0poCnFUH++Cd7VN1/RaXrv0LT9fyOg4fJIl0iA==", + "@webassemblyjs/wasm-parser": { + "version": "1.11.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.5.tgz", + "integrity": "sha512-SVXUIwsLQlc8srSD7jejsfTU83g7pIGr2YYNb9oHdtldSxaOhvA5xwvIiWIfcX8PlSakgqMXsLpLfbbJ4cBYew==", + "dev": true, "requires": { - "@types/json-schema": "^7.0.4", - "utility-types": "^3.10.0" + "@webassemblyjs/ast": "1.11.5", + "@webassemblyjs/helper-api-error": "1.11.5", + "@webassemblyjs/helper-wasm-bytecode": "1.11.5", + "@webassemblyjs/ieee754": "1.11.5", + "@webassemblyjs/leb128": "1.11.5", + "@webassemblyjs/utf8": "1.11.5" } }, - "@stoplight/yaml": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/@stoplight/yaml/-/yaml-4.2.3.tgz", - "integrity": "sha512-Mx01wjRAR9C7yLMUyYFTfbUf5DimEpHMkRDQ1PKLe9dfNILbgdxyrncsOXM3vCpsQ1Hfj4bPiGl+u4u6e9Akqw==", + "@webassemblyjs/wast-printer": { + "version": "1.11.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.5.tgz", + "integrity": "sha512-f7Pq3wvg3GSPUPzR0F6bmI89Hdb+u9WXrSKc4v+N0aV0q6r42WoF92Jp2jEorBEBRoRNXgjp53nBniDXcqZYPA==", + "dev": true, "requires": { - "@stoplight/ordered-object-literal": "^1.0.1", - "@stoplight/types": "^13.0.0", - "@stoplight/yaml-ast-parser": "0.0.48", - "tslib": "^2.2.0" + "@webassemblyjs/ast": "1.11.5", + "@xtuc/long": "4.2.2" } }, - "@stoplight/yaml-ast-parser": { - "version": "0.0.48", - "resolved": "https://registry.npmjs.org/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.48.tgz", - "integrity": "sha512-sV+51I7WYnLJnKPn2EMWgS4EUfoP4iWEbrWwbXsj0MZCB/xOK8j6+C9fntIdOM50kpx45ZLC3s6kwKivWuqvyg==" - }, - "@swc/core": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.52.tgz", - "integrity": "sha512-2LOkkl5Ebyzg1e2pu/tqz5zAAiNAtSR99KZDJz4+FTpo6lYwr+SRkeXSNFrYAReHBMb5VJoimrLDLHJ2X1E7Lg==", + "@webpack-cli/configtest": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz", + "integrity": "sha512-4FB8Tj6xyVkyqjj1OaTqCjXYULB9FMkqQ8yGrZjRDrYh0nOE+7Lhs45WioWQQMV+ceFlE368Ukhe6xdvJM9Egg==", "dev": true, - "requires": { - "@swc/core-darwin-arm64": "1.3.52", - "@swc/core-darwin-x64": "1.3.52", - "@swc/core-linux-arm-gnueabihf": "1.3.52", - "@swc/core-linux-arm64-gnu": "1.3.52", - "@swc/core-linux-arm64-musl": "1.3.52", - "@swc/core-linux-x64-gnu": "1.3.52", - "@swc/core-linux-x64-musl": "1.3.52", - "@swc/core-win32-arm64-msvc": "1.3.52", - "@swc/core-win32-ia32-msvc": "1.3.52", - "@swc/core-win32-x64-msvc": "1.3.52" - } + "requires": {} }, - "@swc/core-darwin-arm64": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.52.tgz", - "integrity": "sha512-Y+4YDN7mAhMgqLVMjpIOagFg93uWdQRsJXd3NAXo24CAJXLBuXsiXQdJVdhGavQkF0+NuhFSTGrzB8TknzWQkg==", + "@webpack-cli/info": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.5.0.tgz", + "integrity": "sha512-e8tSXZpw2hPl2uMJY6fsMswaok5FdlGNRTktvFk2sD8RjH0hE2+XistawJx1vmKteh4NmGmNUrp+Tb2w+udPcQ==", "dev": true, "requires": { - "@types/node": "*", - "form-data": "^3.0.0" + "envinfo": "^7.7.3" } }, - "@swc/core-darwin-x64": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.52.tgz", - "integrity": "sha512-XbvBA+DwTedleh/smYA6E1Z1L1tVnF+ULhpszAAW4YYDzH47R73ucCdcSH/aHs4swv+uyvRquKoDtTTNZFvD4A==", + "@webpack-cli/serve": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.7.0.tgz", + "integrity": "sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==", "dev": true, - "optional": true + "requires": {} }, - "@swc/core-linux-arm-gnueabihf": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.52.tgz", - "integrity": "sha512-YRTLjZcoGH09q0vjg5s6vxOryzAGlMx2Ly6Hq8+8ruBtG3QTsCN3y7MI8mX254xdFCJiTX5YwQheGjRXS7FF9A==", - "dev": true, - "optional": true + "@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true }, - "@swc/core-linux-arm64-gnu": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.52.tgz", - "integrity": "sha512-B0HKtj0XpqpqflGKMxFlyXyORN0xshF8TVzUBD/2FgF7o8fE2RM1eqtdf1EzmZTT1hwxLpJXrEj+0gSXfWPW4A==", - "dev": true, - "optional": true - }, - "@swc/core-linux-arm64-musl": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.52.tgz", - "integrity": "sha512-GCxNjTAborAmv4VV1AMZLyejHLGgIzu13tvLUFqybtU4jFxVbE2ZK4ZnPCfDlWN+eBwyRWk1oNFR2hH+66vaUQ==", - "dev": true, - "optional": true - }, - "@swc/core-linux-x64-gnu": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.52.tgz", - "integrity": "sha512-mrvDBSkLI3Mza2qcu3uzB5JGwMBYDb1++UQ1VB0RXf2AR21/cCper4P44IpfdeqFz9XyXq18Sh3gblICUCGvig==", - "dev": true, - "optional": true - }, - "@swc/core-linux-x64-musl": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.52.tgz", - "integrity": "sha512-r9RIvKUQv7yBkpXz+QxPAucdoj8ymBlgIm5rLE0b5VmU7dlKBnpAmRBYaITdH6IXhF0pwuG+FHAd5elBcrkIwA==", - "dev": true, - "optional": true - }, - "@swc/core-win32-arm64-msvc": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.52.tgz", - "integrity": "sha512-YRtEr7tDo0Wes3M2ZhigF4erUjWBXeFP+O+iz6ELBBmPG7B7m/lrA21eiW9/90YGnzi0iNo46shK6PfXuPhP+Q==", - "dev": true, - "optional": true - }, - "@swc/core-win32-ia32-msvc": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.52.tgz", - "integrity": "sha512-t1x6EdYg3nnnmZBkEtmdXwGpVFTnkNCYyTILcn4367tKI6NpcNe75tz6wBUZAWAmol6Bn75je9KHDNC9uBcO2A==", - "dev": true, - "optional": true + "@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true }, - "@swc/core-win32-x64-msvc": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.52.tgz", - "integrity": "sha512-ef0KzcHxWgRii0EyUlgzNA0ycqaRRKxSb6QCO9Ev3tib4SSjbPy0MAndU7f82Ndm/pPmXT+7cciRtZ083vzjZA==", - "dev": true, - "optional": true + "abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "requires": { + "event-target-shim": "^5.0.0" + } }, - "@swc/jest": { - "version": "0.2.26", - "resolved": "https://registry.npmjs.org/@swc/jest/-/jest-0.2.26.tgz", - "integrity": "sha512-7lAi7q7ShTO3E5Gt1Xqf3pIhRbERxR1DUxvtVa9WKzIB+HGQ7wZP5sYx86zqnaEoKKGhmOoZ7gyW0IRu8Br5+A==", + "accessory": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/accessory/-/accessory-1.1.0.tgz", + "integrity": "sha512-DlgiZ+jTuCIZLURquQhOfclRvPu6gQKgOzr9wAiZtjWYjd1lMK8Hr6XXEDWuEAxpTWEccgn6YVREJ6C7fhvrww==", "dev": true, "requires": { - "@jest/create-cache-key-function": "^27.4.2", - "jsonc-parser": "^3.2.0" + "@typescript-eslint/scope-manager": "5.36.2", + "@typescript-eslint/type-utils": "5.36.2", + "@typescript-eslint/utils": "5.36.2", + "debug": "^4.3.4", + "functional-red-black-tree": "^1.0.1", + "ignore": "^5.2.0", + "regexpp": "^3.2.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" }, "dependencies": { - "jsonc-parser": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", - "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==", + "@typescript-eslint/scope-manager": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.36.2.tgz", + "integrity": "sha512-cNNP51L8SkIFSfce8B1NSUBTJTu2Ts4nWeWbFrdaqjmn9yKrAaJUBHkyTZc0cL06OFHpb+JZq5AUHROS398Orw==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.36.2", + "@typescript-eslint/visitor-keys": "5.36.2" + } + }, + "@typescript-eslint/type-utils": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.36.2.tgz", + "integrity": "sha512-rPQtS5rfijUWLouhy6UmyNquKDPhQjKsaKH0WnY6hl/07lasj8gPaH2UD8xWkePn6SC+jW2i9c2DZVDnL+Dokw==", + "dev": true, + "requires": { + "@typescript-eslint/typescript-estree": "5.36.2", + "@typescript-eslint/utils": "5.36.2", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/types": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.36.2.tgz", + "integrity": "sha512-9OJSvvwuF1L5eS2EQgFUbECb99F0mwq501w0H0EkYULkhFa19Qq7WFbycdw1PexAc929asupbZcgjVIe6OK/XQ==", "dev": true + }, + "@typescript-eslint/typescript-estree": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.36.2.tgz", + "integrity": "sha512-8fyH+RfbKc0mTspfuEjlfqA4YywcwQK2Amcf6TDOwaRLg7Vwdu4bZzyvBZp4bjt1RRjQ5MDnOZahxMrt2l5v9w==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.36.2", + "@typescript-eslint/visitor-keys": "5.36.2", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/utils": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.36.2.tgz", + "integrity": "sha512-uNcopWonEITX96v9pefk9DC1bWMdkweeSsewJ6GeC7L6j2t0SJywisgkr9wUTtXk90fi2Eljj90HSHm3OGdGRg==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.9", + "@typescript-eslint/scope-manager": "5.36.2", + "@typescript-eslint/types": "5.36.2", + "@typescript-eslint/typescript-estree": "5.36.2", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0" + } + }, + "@typescript-eslint/visitor-keys": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.36.2.tgz", + "integrity": "sha512-BtRvSR6dEdrNt7Net2/XDjbYKU5Ml6GqJgVfXT0CxTCJlnIqK7rAGreuWKMT2t8cFUT2Msv5oxw0GMRD7T5J7A==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.36.2", + "eslint-visitor-keys": "^3.3.0" + } } } }, - "@tsconfig/node10": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", - "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", - "dev": true - }, - "@tsconfig/node12": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true - }, - "@tsconfig/node14": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "dev": true - }, - "@tsconfig/node16": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", - "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", + "acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", "dev": true }, - "@types/babel__core": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.0.tgz", - "integrity": "sha512-+n8dL/9GWblDO0iU6eZAwEIJVr5DWigtle+Q6HLOrh/pdbXOhOtqzq8VPPE2zvNJzSKY4vH/z3iT3tn0A3ypiQ==", + "acorn-jsx": { + "version": "5.3.2", "dev": true, - "requires": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } + "requires": {} }, - "@types/babel__generator": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", - "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", + "acorn-node": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", + "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", "dev": true, "requires": { - "@babel/types": "^7.0.0" + "acorn": "^7.0.0", + "acorn-walk": "^7.0.0", + "xtend": "^4.0.2" } }, - "@types/babel__template": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", - "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", + "acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", + "dev": true + }, + "agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", "dev": true, "requires": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" + "debug": "4" } }, - "@types/babel__traverse": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.18.3.tgz", - "integrity": "sha512-1kbcJ40lLB7MHsj39U4Sh1uTd2E7rLEa79kmDpI6cy+XiXsteB3POdQomoq4FxszMrO3ZYchkhYJw7A2862b3w==", - "dev": true, + "ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", "requires": { - "@babel/types": "^7.3.0" + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" } }, - "@types/es-aggregate-error": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@types/es-aggregate-error/-/es-aggregate-error-1.0.2.tgz", - "integrity": "sha512-erqUpFXksaeR2kejKnhnjZjbFxUpGZx4Z7ydNL9ie8tEhXPiZTsLeUDJ6aR1F8j5wWUAtOAQWUqkc7givBJbBA==", + "ajv-draft-04": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", + "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", + "requires": {} + }, + "ajv-errors": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", + "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", + "requires": {} + }, + "ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", "requires": { - "@types/node": "*" + "ajv": "^8.0.0" } }, - "@types/eslint": { - "version": "8.37.0", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.37.0.tgz", - "integrity": "sha512-Piet7dG2JBuDIfohBngQ3rCt7MgO9xCO4xIMKxBThCq5PNRB91IjlJ10eJVwfoNtvTErmxLzwBZ7rHZtbOMmFQ==", + "amdefine": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", + "integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==", + "dev": true, + "optional": true + }, + "ansi-escapes": { + "version": "4.3.2", "dev": true, "requires": { - "@types/estree": "*", - "@types/json-schema": "*" + "type-fest": "^0.21.3" + }, + "dependencies": { + "type-fest": { + "version": "0.21.3", + "dev": true + } } }, - "@types/eslint-scope": { - "version": "3.7.4", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", - "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", + "ansi-red": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", + "integrity": "sha512-ewaIr5y+9CUTGFwZfpECUbFlGcC0GCw1oqR9RI6h1gQCd9Aj2GxSckCnPsVJnmfMZbwFYE+leZGASgkWl06Jow==", "dev": true, "requires": { - "@types/eslint": "*", - "@types/estree": "*" + "ansi-wrap": "0.1.0" } }, - "@types/estree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", - "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==", + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true }, - "@types/graceful-fs": { - "version": "4.1.6", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", - "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { - "@types/node": "*" + "color-convert": "^2.0.1" } }, - "@types/istanbul-lib-coverage": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", - "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", + "ansi-wrap": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", + "integrity": "sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw==", "dev": true }, - "@types/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, "requires": { - "@types/istanbul-lib-coverage": "*" + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" } }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, + "arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "argparse": { + "version": "1.0.10", "requires": { - "@types/istanbul-lib-report": "*" + "sprintf-js": "~1.0.2" } }, - "@types/jest": { - "version": "27.5.2", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.5.2.tgz", - "integrity": "sha512-mpT8LJJ4CMeeahobofYWIjFo0xonRS/HfxnVEPMPFSQdGUt1uHCnoPT7Zhb+sjDU2wz0oKV0OLUR0WzrHNgfeA==", + "aria-query": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz", + "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==", "dev": true, "requires": { - "jest-matcher-utils": "^27.0.0", - "pretty-format": "^27.0.0" + "deep-equal": "^2.0.5" } }, - "@types/js-yaml": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz", - "integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==", - "dev": true - }, - "@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" - }, - "@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true - }, - "@types/node": { - "version": "18.16.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.1.tgz", - "integrity": "sha512-DZxSZWXxFfOlx7k7Rv4LAyiMroaxa3Ly/7OOzZO8cBNho0YzAi4qlbrx8W27JGqG57IgR/6J7r+nOJWw6kcvZA==" - }, - "@types/node-fetch": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.3.tgz", - "integrity": "sha512-ETTL1mOEdq/sxUtgtOhKjyB2Irra4cjxksvcMUR5Zr4n+PxVhsCD9WS46oPbHL3et9Zde7CNRr+WUNlcHvsX+w==", - "dev": true, + "array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", "requires": { - "@types/node": "*", - "form-data": "^3.0.0" + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" } }, - "@types/prettier": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.2.tgz", - "integrity": "sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg==", - "dev": true - }, - "@types/semver": { - "version": "7.3.13", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", - "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", - "dev": true - }, - "@types/stack-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", - "dev": true - }, - "@types/urijs": { - "version": "1.19.19", - "resolved": "https://registry.npmjs.org/@types/urijs/-/urijs-1.19.19.tgz", - "integrity": "sha512-FDJNkyhmKLw7uEvTxx5tSXfPeQpO0iy73Ry+PmYZJvQy0QIWX8a7kJ4kLWRf+EbTPJEPDSgPXHaM7pzr5lmvCg==" - }, - "@types/yargs": { - "version": "17.0.24", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", - "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", + "array-includes": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", + "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", "dev": true, "requires": { - "@types/yargs-parser": "*" + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "is-string": "^1.0.7" } }, - "@types/yargs-parser": { - "version": "21.0.0", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", - "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", + "array-union": { + "version": "2.1.0", "dev": true }, - "@types/yauzl": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==", + "array.prototype.flat": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", + "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", "dev": true, - "optional": true, "requires": { - "@types/node": "*" + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" } }, - "@typescript-eslint/eslint-plugin": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.0.tgz", - "integrity": "sha512-p0QgrEyrxAWBecR56gyn3wkG15TJdI//eetInP3zYRewDh0XS+DhB3VUAd3QqvziFsfaQIoIuZMxZRB7vXYaYw==", + "array.prototype.flatmap": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", + "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", "dev": true, "requires": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.59.0", - "@typescript-eslint/type-utils": "5.59.0", - "@typescript-eslint/utils": "5.59.0", - "debug": "^4.3.4", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" } }, - "@typescript-eslint/parser": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.0.tgz", - "integrity": "sha512-qK9TZ70eJtjojSUMrrEwA9ZDQ4N0e/AuoOIgXuNBorXYcBDk397D2r5MIe1B3cok/oCtdNC5j+lUUpVB+Dpb+w==", + "asn1.js": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", + "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.59.0", - "@typescript-eslint/types": "5.59.0", - "@typescript-eslint/typescript-estree": "5.59.0", - "debug": "^4.3.4" + "bn.js": "^4.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0", + "safer-buffer": "^2.1.0" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } } }, - "@typescript-eslint/scope-manager": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.0.tgz", - "integrity": "sha512-tsoldKaMh7izN6BvkK6zRMINj4Z2d6gGhO2UsI8zGZY3XhLq1DndP3Ycjhi1JwdwPRwtLMW4EFPgpuKhbCGOvQ==", + "assert": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.0.tgz", + "integrity": "sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==", "dev": true, "requires": { - "@typescript-eslint/types": "5.59.0", - "@typescript-eslint/visitor-keys": "5.59.0" + "object-assign": "^4.1.1", + "util": "0.10.3" + }, + "dependencies": { + "inherits": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", + "integrity": "sha512-8nWq2nLTAwd02jTqJExUYFSD/fKq6VH9Y/oG2accc/kdI0V98Bag8d5a4gi3XHz73rDWa2PvTtvcWYquKqSENA==", + "dev": true + }, + "util": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", + "integrity": "sha512-5KiHfsmkqacuKjkRkdV7SsfDJ2EGiPsK92s2MhNSY0craxjTdKTtqKsJaCWp4LW33ZZ0OPUv1WO/TFvNQRiQxQ==", + "dev": true, + "requires": { + "inherits": "2.0.1" + } + } } }, - "@typescript-eslint/type-utils": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.0.tgz", - "integrity": "sha512-d/B6VSWnZwu70kcKQSCqjcXpVH+7ABKH8P1KNn4K7j5PXXuycZTPXF44Nui0TEm6rbWGi8kc78xRgOC4n7xFgA==", - "dev": true, - "requires": { - "@typescript-eslint/typescript-estree": "5.59.0", - "@typescript-eslint/utils": "5.59.0", - "debug": "^4.3.4", - "tsutils": "^3.21.0" - } + "ast-types-flow": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", + "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", + "dev": true }, - "@typescript-eslint/types": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.0.tgz", - "integrity": "sha512-yR2h1NotF23xFFYKHZs17QJnB51J/s+ud4PYU4MqdZbzeNxpgUr05+dNeCN/bb6raslHvGdd6BFCkVhpPk/ZeA==", + "astring": { + "version": "1.8.4", + "resolved": "https://registry.npmjs.org/astring/-/astring-1.8.4.tgz", + "integrity": "sha512-97a+l2LBU3Op3bBQEff79i/E4jMD2ZLFD8rHx9B6mXyB2uQwhJQYfiDqUwtfjF4QA1F2qs//N6Cw8LetMbQjcw==" + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", "dev": true }, - "@typescript-eslint/typescript-estree": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.0.tgz", - "integrity": "sha512-sUNnktjmI8DyGzPdZ8dRwW741zopGxltGs/SAPgGL/AAgDpiLsCFLcMNSpbfXfmnNeHmK9h3wGmCkGRGAoUZAg==", + "autolinker": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.28.1.tgz", + "integrity": "sha512-zQAFO1Dlsn69eXaO6+7YZc+v84aquQKbwpzCE3L0stj56ERn9hutFxPopViLjo9G+rWwjozRhgS5KJ25Xy19cQ==", "dev": true, "requires": { - "@typescript-eslint/types": "5.59.0", - "@typescript-eslint/visitor-keys": "5.59.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "gulp-header": "^1.7.1" } }, - "@typescript-eslint/utils": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.0.tgz", - "integrity": "sha512-GGLFd+86drlHSvPgN/el6dRQNYYGOvRSDVydsUaQluwIW3HvbXuxyuD5JETvBt/9qGYe+lOrDk6gRrWOHb/FvA==", - "dev": true, - "requires": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.59.0", - "@typescript-eslint/types": "5.59.0", - "@typescript-eslint/typescript-estree": "5.59.0", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" - } - }, - "@typescript-eslint/visitor-keys": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.0.tgz", - "integrity": "sha512-qZ3iXxQhanchCeaExlKPV3gDQFxMUmU35xfd5eCXB6+kUw1TUAbIy2n7QIrwz9s98DQLzNWyHp61fY0da4ZcbA==", - "dev": true, - "requires": { - "@typescript-eslint/types": "5.59.0", - "eslint-visitor-keys": "^3.3.0" - } - }, - "@webassemblyjs/ast": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.5.tgz", - "integrity": "sha512-LHY/GSAZZRpsNQH+/oHqhRQ5FT7eoULcBqgfyTB5nQHogFnK3/7QoN7dLnwSE/JkUAF0SrRuclT7ODqMFtWxxQ==", - "dev": true, - "requires": { - "@webassemblyjs/helper-numbers": "1.11.5", - "@webassemblyjs/helper-wasm-bytecode": "1.11.5" - } + "available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==" }, - "@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.5.tgz", - "integrity": "sha512-1j1zTIC5EZOtCplMBG/IEwLtUojtwFVwdyVMbL/hwWqbzlQoJsWCOavrdnLkemwNoC/EOwtUFch3fuo+cbcXYQ==", - "dev": true + "avsc": { + "version": "5.7.7", + "resolved": "https://registry.npmjs.org/avsc/-/avsc-5.7.7.tgz", + "integrity": "sha512-9cYNccliXZDByFsFliVwk5GvTq058Fj513CiR4E60ndDwmuXzTJEp/Bp8FyuRmGyYupLjHLs+JA9/CBoVS4/NQ==" }, - "@webassemblyjs/helper-api-error": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.5.tgz", - "integrity": "sha512-L65bDPmfpY0+yFrsgz8b6LhXmbbs38OnwDCf6NpnMUYqa+ENfE5Dq9E42ny0qz/PdR0LJyq/T5YijPnU8AXEpA==", + "axe-core": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.0.tgz", + "integrity": "sha512-M0JtH+hlOL5pLQwHOLNYZaXuhqmvS8oExsqB1SBYgA4Dk7u/xx+YdGHXaK5pyUfed5mYXdlYiphWq3G8cRi5JQ==", "dev": true }, - "@webassemblyjs/helper-buffer": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.5.tgz", - "integrity": "sha512-fDKo1gstwFFSfacIeH5KfwzjykIE6ldh1iH9Y/8YkAZrhmu4TctqYjSh7t0K2VyDSXOZJ1MLhht/k9IvYGcIxg==", + "axobject-query": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz", + "integrity": "sha512-goKlv8DZrK9hUh975fnHzhNIO4jUnFCfv/dszV5VwUGDFjI6vQ2VwoyjYjYNEbBE8AH87TduWP5uyDR1D+Iteg==", "dev": true }, - "@webassemblyjs/helper-numbers": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.5.tgz", - "integrity": "sha512-DhykHXM0ZABqfIGYNv93A5KKDw/+ywBFnuWybZZWcuzWHfbp21wUfRkbtz7dMGwGgT4iXjWuhRMA2Mzod6W4WA==", + "babel-jest": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.5.0.tgz", + "integrity": "sha512-mA4eCDh5mSo2EcA9xQjVTpmbbNk32Zb3Q3QFQsNhaK56Q+yoXowzFodLux30HRgyOho5rsQ6B0P9QpMkvvnJ0Q==", "dev": true, "requires": { - "@webassemblyjs/floating-point-hex-parser": "1.11.5", - "@webassemblyjs/helper-api-error": "1.11.5", - "@xtuc/long": "4.2.2" + "@jest/transform": "^29.5.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.5.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" } }, - "@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.5.tgz", - "integrity": "sha512-oC4Qa0bNcqnjAowFn7MPCETQgDYytpsfvz4ujZz63Zu/a/v71HeCAAmZsgZ3YVKec3zSPYytG3/PrRCqbtcAvA==", - "dev": true - }, - "@webassemblyjs/helper-wasm-section": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.5.tgz", - "integrity": "sha512-uEoThA1LN2NA+K3B9wDo3yKlBfVtC6rh0i4/6hvbz071E8gTNZD/pT0MsBf7MeD6KbApMSkaAK0XeKyOZC7CIA==", + "babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.5", - "@webassemblyjs/helper-buffer": "1.11.5", - "@webassemblyjs/helper-wasm-bytecode": "1.11.5", - "@webassemblyjs/wasm-gen": "1.11.5" + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "dependencies": { + "istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "requires": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + } + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } } }, - "@webassemblyjs/ieee754": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.5.tgz", - "integrity": "sha512-37aGq6qVL8A8oPbPrSGMBcp38YZFXcHfiROflJn9jxSdSMMM5dS5P/9e2/TpaJuhE+wFrbukN2WI6Hw9MH5acg==", + "babel-plugin-jest-hoist": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.5.0.tgz", + "integrity": "sha512-zSuuuAlTMT4mzLj2nPnUm6fsE6270vdOfnpbJ+RmruU75UhLFvL0N2NgI7xpeS7NaB6hGqmd5pVpGTDYvi4Q3w==", "dev": true, "requires": { - "@xtuc/ieee754": "^1.2.0" + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" } }, - "@webassemblyjs/leb128": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.5.tgz", - "integrity": "sha512-ajqrRSXaTJoPW+xmkfYN6l8VIeNnR4vBOTQO9HzR7IygoCcKWkICbKFbVTNMjMgMREqXEr0+2M6zukzM47ZUfQ==", + "babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", "dev": true, "requires": { - "@xtuc/long": "4.2.2" + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" } }, - "@webassemblyjs/utf8": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.5.tgz", - "integrity": "sha512-WiOhulHKTZU5UPlRl53gHR8OxdGsSOxqfpqWeA2FmcwBMaoEdz6b2x2si3IwC9/fSPLfe8pBMRTHVMk5nlwnFQ==", - "dev": true - }, - "@webassemblyjs/wasm-edit": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.5.tgz", - "integrity": "sha512-C0p9D2fAu3Twwqvygvf42iGCQ4av8MFBLiTb+08SZ4cEdwzWx9QeAHDo1E2k+9s/0w1DM40oflJOpkZ8jW4HCQ==", + "babel-preset-jest": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.5.0.tgz", + "integrity": "sha512-JOMloxOqdiBSxMAzjRaH023/vvcaSaec49zvg+2LmNsktC7ei39LTJGw02J+9uUtTZUq6xbLyJ4dxe9sSmIuAg==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.5", - "@webassemblyjs/helper-buffer": "1.11.5", - "@webassemblyjs/helper-wasm-bytecode": "1.11.5", - "@webassemblyjs/helper-wasm-section": "1.11.5", - "@webassemblyjs/wasm-gen": "1.11.5", - "@webassemblyjs/wasm-opt": "1.11.5", - "@webassemblyjs/wasm-parser": "1.11.5", - "@webassemblyjs/wast-printer": "1.11.5" + "babel-plugin-jest-hoist": "^29.5.0", + "babel-preset-current-node-syntax": "^1.0.0" } }, - "@webassemblyjs/wasm-gen": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.5.tgz", - "integrity": "sha512-14vteRlRjxLK9eSyYFvw1K8Vv+iPdZU0Aebk3j6oB8TQiQYuO6hj9s4d7qf6f2HJr2khzvNldAFG13CgdkAIfA==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.11.5", - "@webassemblyjs/helper-wasm-bytecode": "1.11.5", - "@webassemblyjs/ieee754": "1.11.5", - "@webassemblyjs/leb128": "1.11.5", - "@webassemblyjs/utf8": "1.11.5" - } + "base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "dev": true }, - "@webassemblyjs/wasm-opt": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.5.tgz", - "integrity": "sha512-tcKwlIXstBQgbKy1MlbDMlXaxpucn42eb17H29rawYLxm5+MsEmgPzeCP8B1Cl69hCice8LeKgZpRUAPtqYPgw==", + "bl": { + "version": "4.1.0", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.5", - "@webassemblyjs/helper-buffer": "1.11.5", - "@webassemblyjs/wasm-gen": "1.11.5", - "@webassemblyjs/wasm-parser": "1.11.5" + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + }, + "dependencies": { + "readable-stream": { + "version": "3.6.0", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + } } }, - "@webassemblyjs/wasm-parser": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.5.tgz", - "integrity": "sha512-SVXUIwsLQlc8srSD7jejsfTU83g7pIGr2YYNb9oHdtldSxaOhvA5xwvIiWIfcX8PlSakgqMXsLpLfbbJ4cBYew==", - "dev": true, + "bn.js": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", + "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "requires": { - "@webassemblyjs/ast": "1.11.5", - "@webassemblyjs/helper-api-error": "1.11.5", - "@webassemblyjs/helper-wasm-bytecode": "1.11.5", - "@webassemblyjs/ieee754": "1.11.5", - "@webassemblyjs/leb128": "1.11.5", - "@webassemblyjs/utf8": "1.11.5" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + }, + "dependencies": { + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + } } }, - "@webassemblyjs/wast-printer": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.5.tgz", - "integrity": "sha512-f7Pq3wvg3GSPUPzR0F6bmI89Hdb+u9WXrSKc4v+N0aV0q6r42WoF92Jp2jEorBEBRoRNXgjp53nBniDXcqZYPA==", + "braces": { + "version": "3.0.2", "dev": true, "requires": { - "@webassemblyjs/ast": "1.11.5", - "@xtuc/long": "4.2.2" + "fill-range": "^7.0.1" + }, + "dependencies": { + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + } } }, - "@webpack-cli/configtest": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz", - "integrity": "sha512-4FB8Tj6xyVkyqjj1OaTqCjXYULB9FMkqQ8yGrZjRDrYh0nOE+7Lhs45WioWQQMV+ceFlE368Ukhe6xdvJM9Egg==", - "dev": true, - "requires": {} + "brorand": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", + "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==", + "dev": true }, - "@webpack-cli/info": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.5.0.tgz", - "integrity": "sha512-e8tSXZpw2hPl2uMJY6fsMswaok5FdlGNRTktvFk2sD8RjH0hE2+XistawJx1vmKteh4NmGmNUrp+Tb2w+udPcQ==", + "browser-pack": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-6.1.0.tgz", + "integrity": "sha512-erYug8XoqzU3IfcU8fUgyHqyOXqIE4tUTTQ+7mqUjQlvnXkOO6OlT9c/ZoJVHYoAaqGxr09CN53G7XIsO4KtWA==", "dev": true, "requires": { - "envinfo": "^7.7.3" + "caniuse-lite": "^1.0.30001370", + "electron-to-chromium": "^1.4.202", + "node-releases": "^2.0.6", + "update-browserslist-db": "^1.0.5" } }, - "@webpack-cli/serve": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.7.0.tgz", - "integrity": "sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==", + "browser-resolve": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-2.0.0.tgz", + "integrity": "sha512-7sWsQlYL2rGLy2IWm8WL8DCTJvYLc/qlOnsakDac87SOoCd16WLsaAMdCiAqsTNHIe+SXfaqyxyo6THoWqs8WQ==", "dev": true, - "requires": {} - }, - "@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", - "dev": true - }, - "@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", - "dev": true - }, - "abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", "requires": { - "event-target-shim": "^5.0.0" + "resolve": "^1.17.0" } }, - "accessory": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/accessory/-/accessory-1.1.0.tgz", - "integrity": "sha512-DlgiZ+jTuCIZLURquQhOfclRvPu6gQKgOzr9wAiZtjWYjd1lMK8Hr6XXEDWuEAxpTWEccgn6YVREJ6C7fhvrww==", + "browserify": { + "version": "16.5.2", + "resolved": "https://registry.npmjs.org/browserify/-/browserify-16.5.2.tgz", + "integrity": "sha512-TkOR1cQGdmXU9zW4YukWzWVSJwrxmNdADFbqbE3HFgQWe5wqZmOawqZ7J/8MPCwk/W8yY7Y0h+7mOtcZxLP23g==", "dev": true, "requires": { - "ap": "~0.2.0", - "balanced-match": "~0.2.0", - "dot-parts": "~1.0.0" + "assert": "^1.4.0", + "browser-pack": "^6.0.1", + "browser-resolve": "^2.0.0", + "browserify-zlib": "~0.2.0", + "buffer": "~5.2.1", + "cached-path-relative": "^1.0.0", + "concat-stream": "^1.6.0", + "console-browserify": "^1.1.0", + "constants-browserify": "~1.0.0", + "crypto-browserify": "^3.0.0", + "defined": "^1.0.0", + "deps-sort": "^2.0.0", + "domain-browser": "^1.2.0", + "duplexer2": "~0.1.2", + "events": "^2.0.0", + "glob": "^7.1.0", + "has": "^1.0.0", + "htmlescape": "^1.1.0", + "https-browserify": "^1.0.0", + "inherits": "~2.0.1", + "insert-module-globals": "^7.0.0", + "JSONStream": "^1.0.3", + "labeled-stream-splicer": "^2.0.0", + "mkdirp-classic": "^0.5.2", + "module-deps": "^6.2.3", + "os-browserify": "~0.3.0", + "parents": "^1.0.1", + "path-browserify": "~0.0.0", + "process": "~0.11.0", + "punycode": "^1.3.2", + "querystring-es3": "~0.2.0", + "read-only-stream": "^2.0.0", + "readable-stream": "^2.0.2", + "resolve": "^1.1.4", + "shasum": "^1.0.0", + "shell-quote": "^1.6.1", + "stream-browserify": "^2.0.0", + "stream-http": "^3.0.0", + "string_decoder": "^1.1.1", + "subarg": "^1.0.0", + "syntax-error": "^1.1.1", + "through2": "^2.0.0", + "timers-browserify": "^1.0.1", + "tty-browserify": "0.0.1", + "url": "~0.11.0", + "util": "~0.10.1", + "vm-browserify": "^1.0.0", + "xtend": "^4.0.0" + }, + "dependencies": { + "buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.2.1.tgz", + "integrity": "sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==", + "dev": true, + "requires": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4" + } + }, + "events": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/events/-/events-2.1.0.tgz", + "integrity": "sha512-3Zmiobend8P9DjmKAty0Era4jV8oJ0yGYe2nJJAxgymF9+N8F2m0hhZiMoWtcfepExzNKZumFU3ksdQbInGWCg==", + "dev": true + }, + "path-browserify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", + "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", + "dev": true + } } }, - "acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true - }, - "acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "requires": {} - }, - "@webpack-cli/info": { - "version": "1.5.0", + "browserify-aes": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", + "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", "dev": true, "requires": { - "envinfo": "^7.7.3" + "buffer-xor": "^1.0.3", + "cipher-base": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.3", + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" } }, - "@webpack-cli/serve": { - "version": "1.7.0", + "browserify-cipher": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", + "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", "dev": true, - "requires": {} - }, - "@xtuc/ieee754": { - "version": "1.2.0", - "dev": true - }, - "@xtuc/long": { - "version": "4.2.2", - "dev": true - }, - "abort-controller": { - "version": "3.0.0", "requires": { - "event-target-shim": "^5.0.0" + "browserify-aes": "^1.0.4", + "browserify-des": "^1.0.0", + "evp_bytestokey": "^1.0.0" } }, - "acorn": { - "version": "8.8.0", - "dev": true - }, - "acorn-import-assertions": { - "version": "1.8.0", - "dev": true, - "requires": {} - }, - "acorn-jsx": { - "version": "5.3.2", + "browserify-des": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", + "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", "dev": true, - "requires": {} - }, - "acorn-walk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", - "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", - "dev": true + "requires": { + "cipher-base": "^1.0.1", + "des.js": "^1.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } }, - "agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "browserify-rsa": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.0.tgz", + "integrity": "sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog==", "dev": true, "requires": { - "debug": "4" + "bn.js": "^5.0.0", + "randombytes": "^2.0.1" } }, - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "browserify-shim": { + "version": "3.8.15", + "resolved": "https://registry.npmjs.org/browserify-shim/-/browserify-shim-3.8.15.tgz", + "integrity": "sha512-wACWQv56oVuxIID3JHFg2SCk40grlWUVX1QKKH14czQXE84WCOmbydcGKYt/IQZTGbBBzH+4uWr3wNNQRnak3Q==", + "dev": true, "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" + "exposify": "~0.5.0", + "mothership": "~0.3.0", + "rename-function-calls": "~0.1.0", + "resolve": "~0.6.1", + "through": "~2.3.4" + }, + "dependencies": { + "resolve": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.6.3.tgz", + "integrity": "sha512-UHBY3viPlJKf85YijDUcikKX6tmF4SokIDp518ZDVT92JNDcG5uKIthaT/owt3Sar0lwtOafsQuwrg22/v2Dwg==", + "dev": true + } } }, - "ajv-draft-04": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", - "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", - "requires": {} - }, - "ajv-errors": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", - "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", - "requires": {} - }, - "ajv-formats": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", - "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", - "requires": { - "ajv": "^8.0.0" - } - }, - "amdefine": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", - "integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==", - "dev": true, - "optional": true - }, - "ansi-escapes": { - "version": "4.3.2", + "browserify-sign": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.1.tgz", + "integrity": "sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==", "dev": true, "requires": { - "type-fest": "^0.21.3" + "bn.js": "^5.1.1", + "browserify-rsa": "^4.0.1", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "elliptic": "^6.5.3", + "inherits": "^2.0.4", + "parse-asn1": "^5.1.5", + "readable-stream": "^3.6.0", + "safe-buffer": "^5.2.0" }, "dependencies": { - "type-fest": { - "version": "0.21.3", - "dev": true + "readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } } } }, - "ansi-red": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", - "integrity": "sha512-ewaIr5y+9CUTGFwZfpECUbFlGcC0GCw1oqR9RI6h1gQCd9Aj2GxSckCnPsVJnmfMZbwFYE+leZGASgkWl06Jow==", + "browserify-zlib": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", + "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", "dev": true, "requires": { - "ansi-wrap": "0.1.0" + "pako": "~1.0.5" } }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "browserslist": { + "version": "4.21.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz", + "integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==", "dev": true, "requires": { - "color-convert": "^2.0.1" + "caniuse-lite": "^1.0.30001400", + "electron-to-chromium": "^1.4.251", + "node-releases": "^2.0.6", + "update-browserslist-db": "^1.0.9" } }, - "ansi-wrap": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", - "integrity": "sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw==", - "dev": true + "bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "requires": { + "node-int64": "^0.4.0" + } }, - "anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "buffer": { + "version": "5.7.1", "dev": true, "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" } }, - "ap": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/ap/-/ap-0.2.0.tgz", - "integrity": "sha512-ImdvquIuBSVpWRWhB441UjvTcZqic1RL+lTQaUKGdGEp1aiTvt/phAvY8Vvs32qya5FJBI8U+tzNBYzFDQY/lQ==", + "buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", "dev": true }, - "arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true }, - "argparse": { - "version": "1.0.10", - "requires": { - "sprintf-js": "~1.0.2" - } + "buffer-xor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", + "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==", + "dev": true }, - "aria-query": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz", - "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==", - "dev": true, - "requires": { - "deep-equal": "^2.0.5" - } + "builtin-status-codes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", + "integrity": "sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ==", + "dev": true }, - "array-buffer-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", - "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", - "requires": { - "call-bind": "^1.0.2", - "is-array-buffer": "^3.0.1" - } + "cached-path-relative": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/cached-path-relative/-/cached-path-relative-1.1.0.tgz", + "integrity": "sha512-WF0LihfemtesFcJgO7xfOoOcnWzY/QHR4qeDqV44jPU3HTI54+LnfXK3SA27AVVGCdZFgjjFFaqUA9Jx7dMJZA==", + "dev": true }, - "array-includes": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", - "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", - "dev": true, + "call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "is-string": "^1.0.7" + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" } }, - "array-includes": { - "version": "3.1.5", + "callsites": { + "version": "3.1.0", + "dev": true + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "caniuse-lite": { + "version": "1.0.30001414", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001414.tgz", + "integrity": "sha512-t55jfSaWjCdocnFdKQoO+d2ct9C59UZg4dY3OnUlSZ447r8pUtIKdp0hpAzrGFultmTC+Us+KpKi4GZl/LXlFg==", + "dev": true + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.19.5", - "get-intrinsic": "^1.1.1", - "is-string": "^1.0.7" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" } }, - "array-union": { - "version": "2.1.0", + "char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", "dev": true }, - "array.prototype.flat": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", - "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", + "chownr": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", + "dev": true + }, + "chrome-trace-event": { + "version": "1.0.3", + "dev": true + }, + "ci-info": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", + "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", + "dev": true + }, + "cipher-base": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", + "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", + "dev": true + }, + "cjs-module-lexer": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", + "integrity": "sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==", + "dev": true + }, + "cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" } }, - "array.prototype.flatmap": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", - "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", + "clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", "dev": true, "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - } - }, - "asn1.js": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", - "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", - "dev": true, - "requires": { - "bn.js": "^4.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "safer-buffer": "^2.1.0" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - } - } - }, - "assert": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.0.tgz", - "integrity": "sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==", - "dev": true, - "requires": { - "object-assign": "^4.1.1", - "util": "0.10.3" + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" }, "dependencies": { - "inherits": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha512-8nWq2nLTAwd02jTqJExUYFSD/fKq6VH9Y/oG2accc/kdI0V98Bag8d5a4gi3XHz73rDWa2PvTtvcWYquKqSENA==", - "dev": true - }, - "util": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", - "integrity": "sha512-5KiHfsmkqacuKjkRkdV7SsfDJ2EGiPsK92s2MhNSY0craxjTdKTtqKsJaCWp4LW33ZZ0OPUv1WO/TFvNQRiQxQ==", + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", "dev": true, "requires": { - "inherits": "2.0.1" + "isobject": "^3.0.1" } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true } } }, - "ast-types-flow": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", - "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", - "dev": true + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==" }, - "astring": { - "version": "1.8.4", - "resolved": "https://registry.npmjs.org/astring/-/astring-1.8.4.tgz", - "integrity": "sha512-97a+l2LBU3Op3bBQEff79i/E4jMD2ZLFD8rHx9B6mXyB2uQwhJQYfiDqUwtfjF4QA1F2qs//N6Cw8LetMbQjcw==" + "coffee-script": { + "version": "1.12.7", + "dev": true }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "collect-v8-coverage": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", + "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", "dev": true }, - "autolinker": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.28.1.tgz", - "integrity": "sha512-zQAFO1Dlsn69eXaO6+7YZc+v84aquQKbwpzCE3L0stj56ERn9hutFxPopViLjo9G+rWwjozRhgS5KJ25Xy19cQ==", + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { - "gulp-header": "^1.7.1" + "color-name": "~1.1.4" } }, - "available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==" - }, - "avsc": { - "version": "5.7.7", - "resolved": "https://registry.npmjs.org/avsc/-/avsc-5.7.7.tgz", - "integrity": "sha512-9cYNccliXZDByFsFliVwk5GvTq058Fj513CiR4E60ndDwmuXzTJEp/Bp8FyuRmGyYupLjHLs+JA9/CBoVS4/NQ==" + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true }, - "axe-core": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.0.tgz", - "integrity": "sha512-M0JtH+hlOL5pLQwHOLNYZaXuhqmvS8oExsqB1SBYgA4Dk7u/xx+YdGHXaK5pyUfed5mYXdlYiphWq3G8cRi5JQ==", + "colorette": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", "dev": true }, - "axobject-query": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz", - "integrity": "sha512-goKlv8DZrK9hUh975fnHzhNIO4jUnFCfv/dszV5VwUGDFjI6vQ2VwoyjYjYNEbBE8AH87TduWP5uyDR1D+Iteg==", + "combine-source-map": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.8.0.tgz", + "integrity": "sha512-UlxQ9Vw0b/Bt/KYwCFqdEwsQ1eL8d1gibiFb7lxQJFdvTgc2hIZi6ugsg+kyhzhPV+QEpUiEIwInIAIrgoEkrg==", "dev": true, "requires": { - "deep-equal": "^2.0.5" + "convert-source-map": "~1.1.0", + "inline-source-map": "~0.6.0", + "lodash.memoize": "~3.0.3", + "source-map": "~0.5.3" } }, - "babel-jest": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.5.0.tgz", - "integrity": "sha512-mA4eCDh5mSo2EcA9xQjVTpmbbNk32Zb3Q3QFQsNhaK56Q+yoXowzFodLux30HRgyOho5rsQ6B0P9QpMkvvnJ0Q==", + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dev": true, "requires": { - "@jest/transform": "^29.5.0", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^29.5.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "slash": "^3.0.0" + "delayed-stream": "~1.0.0" } }, - "babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "concat-stream": { + "version": "1.6.2", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "concat-with-sourcemaps": { + "version": "1.1.0", + "dev": true, + "requires": { + "source-map": "^0.6.1" }, "dependencies": { - "istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "requires": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true } } }, - "babel-plugin-jest-hoist": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.5.0.tgz", - "integrity": "sha512-zSuuuAlTMT4mzLj2nPnUm6fsE6270vdOfnpbJ+RmruU75UhLFvL0N2NgI7xpeS7NaB6hGqmd5pVpGTDYvi4Q3w==", + "console-browserify": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", + "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==", + "dev": true + }, + "constants-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", + "integrity": "sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ==", + "dev": true + }, + "convert-source-map": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", + "integrity": "sha512-Y8L5rp6jo+g9VEPgvqNfEopjTR4OTYct8lXlS8iVQdmnjDvbdbzYe9rjtFCB9egC86JoNCU61WRY+ScjkZpnIg==", + "dev": true + }, + "core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true + }, + "create-ecdh": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", + "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", + "dev": true + }, + "create-hash": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", + "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", "dev": true, "requires": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.1.14", - "@types/babel__traverse": "^7.0.6" + "node-fetch": "2.6.7" } }, - "babel-preset-current-node-syntax": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "create-hmac": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", + "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", "dev": true, "requires": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-top-level-await": "^7.8.3" + "cipher-base": "^1.0.3", + "create-hash": "^1.1.0", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" } }, - "babel-preset-jest": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.5.0.tgz", - "integrity": "sha512-JOMloxOqdiBSxMAzjRaH023/vvcaSaec49zvg+2LmNsktC7ei39LTJGw02J+9uUtTZUq6xbLyJ4dxe9sSmIuAg==", + "create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, + "cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", "dev": true, "requires": { - "babel-plugin-jest-hoist": "^29.5.0", - "babel-preset-current-node-syntax": "^1.0.0" + "cross-spawn": "^7.0.1" } }, - "balanced-match": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.2.1.tgz", - "integrity": "sha512-euSOvfze1jPOf85KQOmZ2UcWDJ/dUJukTJdj4o9ZZLyjl7IjdIyE4fAQRSuGrxAjB9nvvvrl4N3bPtRq+W+SyQ==", + "cross-fetch": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", + "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", + "dev": true, + "requires": { + "node-fetch": "2.6.7" + } + }, + "cross-spawn": { + "version": "7.0.3", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "crypto-browserify": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", + "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", + "dev": true, + "requires": { + "browserify-cipher": "^1.0.0", + "browserify-sign": "^4.0.0", + "create-ecdh": "^4.0.0", + "create-hash": "^1.1.0", + "create-hmac": "^1.1.0", + "diffie-hellman": "^5.0.0", + "inherits": "^2.0.1", + "pbkdf2": "^3.0.3", + "public-encrypt": "^4.0.0", + "randombytes": "^2.0.0", + "randomfill": "^1.0.3" + } + }, + "damerau-levenshtein": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", "dev": true }, - "base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "dash-ast": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dash-ast/-/dash-ast-1.0.0.tgz", + "integrity": "sha512-Vy4dx7gquTeMcQR/hDkYLGUnwVil6vk4FOOct+djUnHOUWt+zJPJAaRIXaAFkPXtJjvlY7o3rfRu0/3hpnwoUA==", "dev": true }, - "bl": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", - "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, "requires": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - }, - "dependencies": { - "readable-stream": { - "version": "3.6.0", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - } + "ms": "2.1.2" } }, - "bn.js": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", - "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", + "dedent": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", + "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", "dev": true }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "deep-equal": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.0.tgz", + "integrity": "sha512-RdpzE0Hv4lhowpIUKKMJfeH6C1pXdtT1/it80ubgWqwI3qpuxUBpC1S4hnHg+zjnuOoDkzUtUCEEkG+XG5l3Mw==", + "dev": true, "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "call-bind": "^1.0.2", + "es-get-iterator": "^1.1.2", + "get-intrinsic": "^1.1.3", + "is-arguments": "^1.1.1", + "is-array-buffer": "^3.0.1", + "is-date-object": "^1.0.5", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "isarray": "^2.0.5", + "object-is": "^1.1.5", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.4.3", + "side-channel": "^1.0.4", + "which-boxed-primitive": "^1.0.2", + "which-collection": "^1.0.1", + "which-typed-array": "^1.1.9" }, "dependencies": { - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + "isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true } } }, - "braces": { - "version": "3.0.2", + "deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true + }, + "define-properties": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", + "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", + "requires": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + } + }, + "defined": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz", + "integrity": "sha512-Y2caI5+ZwS5c3RiNDJ6u53VhQHv+hHKwhkI1iHvceKUHw9Df6EK2zRLfjejRgMuCuxK7PfSWIMwWecceVvThjQ==", + "dev": true + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true + }, + "dependency-graph": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", + "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==" + }, + "deps-sort": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/deps-sort/-/deps-sort-2.0.1.tgz", + "integrity": "sha512-1orqXQr5po+3KI6kQb9A4jnXT1PBwggGl2d7Sq2xsnOeI9GPcE/tGcF9UiSZtZBM7MukY4cAh7MemS6tZYipfw==", + "dev": true + }, + "des.js": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.1.tgz", + "integrity": "sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==", "dev": true, "requires": { - "fill-range": "^7.0.1" - }, - "dependencies": { - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - } + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0" } }, - "brorand": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==", + "detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", "dev": true }, - "browser-pack": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-6.1.0.tgz", - "integrity": "sha512-erYug8XoqzU3IfcU8fUgyHqyOXqIE4tUTTQ+7mqUjQlvnXkOO6OlT9c/ZoJVHYoAaqGxr09CN53G7XIsO4KtWA==", + "detective": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/detective/-/detective-5.2.1.tgz", + "integrity": "sha512-v9XE1zRnz1wRtgurGu0Bs8uHKFSTdteYZNbIPFVhUZ39L/S79ppMpdmVOZAnoz1jfEFodc48n6MX483Xo3t1yw==", "dev": true, "requires": { - "combine-source-map": "~0.8.0", + "acorn-node": "^1.8.2", "defined": "^1.0.0", - "JSONStream": "^1.0.3", - "safe-buffer": "^5.1.1", - "through2": "^2.0.0", - "umd": "^3.0.0" + "minimist": "^1.2.6" } }, - "browser-resolve": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-2.0.0.tgz", - "integrity": "sha512-7sWsQlYL2rGLy2IWm8WL8DCTJvYLc/qlOnsakDac87SOoCd16WLsaAMdCiAqsTNHIe+SXfaqyxyo6THoWqs8WQ==", + "devtools-protocol": { + "version": "0.0.1036444", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1036444.tgz", + "integrity": "sha512-0y4f/T8H9lsESV9kKP1HDUXgHxCdniFeJh6Erq+FbdOEvp/Ydp9t8kcAAM5gOd17pMrTDlFWntoHtzzeTUWKNw==", + "dev": true + }, + "diacritics-map": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/diacritics-map/-/diacritics-map-0.1.0.tgz", + "integrity": "sha512-3omnDTYrGigU0i4cJjvaKwD52B8aoqyX/NEIkukFFkogBemsIbhSa1O414fpTp5nuszJG6lvQ5vBvDVNCbSsaQ==", + "dev": true + }, + "diff-sequences": { + "version": "27.5.1", + "dev": true + }, + "diffie-hellman": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", + "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", "dev": true, "requires": { - "resolve": "^1.17.0" + "bn.js": "^4.1.0", + "miller-rabin": "^4.0.0", + "randombytes": "^2.0.0" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } } }, - "browserify": { - "version": "16.5.2", - "resolved": "https://registry.npmjs.org/browserify/-/browserify-16.5.2.tgz", - "integrity": "sha512-TkOR1cQGdmXU9zW4YukWzWVSJwrxmNdADFbqbE3HFgQWe5wqZmOawqZ7J/8MPCwk/W8yY7Y0h+7mOtcZxLP23g==", + "dir-glob": { + "version": "3.0.1", "dev": true, "requires": { - "assert": "^1.4.0", - "browser-pack": "^6.0.1", - "browser-resolve": "^2.0.0", - "browserify-zlib": "~0.2.0", - "buffer": "~5.2.1", - "cached-path-relative": "^1.0.0", - "concat-stream": "^1.6.0", - "console-browserify": "^1.1.0", - "constants-browserify": "~1.0.0", - "crypto-browserify": "^3.0.0", - "defined": "^1.0.0", - "deps-sort": "^2.0.0", - "domain-browser": "^1.2.0", - "duplexer2": "~0.1.2", - "events": "^2.0.0", - "glob": "^7.1.0", - "has": "^1.0.0", - "htmlescape": "^1.1.0", - "https-browserify": "^1.0.0", - "inherits": "~2.0.1", - "insert-module-globals": "^7.0.0", - "JSONStream": "^1.0.3", - "labeled-stream-splicer": "^2.0.0", - "mkdirp-classic": "^0.5.2", - "module-deps": "^6.2.3", - "os-browserify": "~0.3.0", - "parents": "^1.0.1", - "path-browserify": "~0.0.0", - "process": "~0.11.0", - "punycode": "^1.3.2", - "querystring-es3": "~0.2.0", - "read-only-stream": "^2.0.0", - "readable-stream": "^2.0.2", - "resolve": "^1.1.4", - "shasum": "^1.0.0", - "shell-quote": "^1.6.1", - "stream-browserify": "^2.0.0", - "stream-http": "^3.0.0", - "string_decoder": "^1.1.1", - "subarg": "^1.0.0", - "syntax-error": "^1.1.1", - "through2": "^2.0.0", - "timers-browserify": "^1.0.1", - "tty-browserify": "0.0.1", - "url": "~0.11.0", - "util": "~0.10.1", - "vm-browserify": "^1.0.0", - "xtend": "^4.0.0" - }, - "dependencies": { - "path-browserify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", - "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", - "dev": true - } + "path-type": "^4.0.0" } }, - "browserify-aes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", - "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", + "doctrine": { + "version": "3.0.0", "dev": true, "requires": { - "buffer-xor": "^1.0.3", - "cipher-base": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.3", - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" + "esutils": "^2.0.2" } }, - "browserify-cipher": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", - "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", - "dev": true, - "requires": { - "browserify-aes": "^1.0.4", - "browserify-des": "^1.0.0", - "evp_bytestokey": "^1.0.0" - } + "domain-browser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", + "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", + "dev": true }, - "browserify-des": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", - "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", - "dev": true, - "requires": { - "cipher-base": "^1.0.1", - "des.js": "^1.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } + "duplexer": { + "version": "0.1.2", + "dev": true }, - "browserify-rsa": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.0.tgz", - "integrity": "sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog==", + "duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==", "dev": true, "requires": { - "bn.js": "^5.0.0", - "randombytes": "^2.0.1" + "readable-stream": "^2.0.2" } }, - "browserify-shim": { - "version": "3.8.15", - "resolved": "https://registry.npmjs.org/browserify-shim/-/browserify-shim-3.8.15.tgz", - "integrity": "sha512-wACWQv56oVuxIID3JHFg2SCk40grlWUVX1QKKH14czQXE84WCOmbydcGKYt/IQZTGbBBzH+4uWr3wNNQRnak3Q==", + "electron-to-chromium": { + "version": "1.4.268", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.268.tgz", + "integrity": "sha512-PO90Bv++vEzdln+eA9qLg1IRnh0rKETus6QkTzcFm5P3Wg3EQBZud5dcnzkpYXuIKWBjKe5CO8zjz02cicvn1g==", + "dev": true + }, + "elliptic": { + "version": "6.5.4", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", + "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", "dev": true, "requires": { - "exposify": "~0.5.0", - "mothership": "~0.3.0", - "rename-function-calls": "~0.1.0", - "resolve": "~0.6.1", - "through": "~2.3.4" + "bn.js": "^4.11.9", + "brorand": "^1.1.0", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.1", + "inherits": "^2.0.4", + "minimalistic-assert": "^1.0.1", + "minimalistic-crypto-utils": "^1.0.1" }, "dependencies": { - "resolve": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.6.3.tgz", - "integrity": "sha512-UHBY3viPlJKf85YijDUcikKX6tmF4SokIDp518ZDVT92JNDcG5uKIthaT/owt3Sar0lwtOafsQuwrg22/v2Dwg==", + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", "dev": true } } }, - "browserify-sign": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.1.tgz", - "integrity": "sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==", + "emittery": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true + }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "end-of-stream": { + "version": "1.4.4", "dev": true, "requires": { - "bn.js": "^5.1.1", - "browserify-rsa": "^4.0.1", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "elliptic": "^6.5.3", - "inherits": "^2.0.4", - "parse-asn1": "^5.1.5", - "readable-stream": "^3.6.0", - "safe-buffer": "^5.2.0" - }, - "dependencies": { - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - } + "once": "^1.4.0" } }, - "browserify-zlib": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", - "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", + "enhanced-resolve": { + "version": "5.13.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.13.0.tgz", + "integrity": "sha512-eyV8f0y1+bzyfh8xAwW/WTSZpLbjhqc4ne9eGSH4Zo2ejdyiNG9pU6mf9DG8a7+Auk6MFTlNOT4Y2y/9k8GKVg==", "dev": true, "requires": { - "pako": "~1.0.5" + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" } }, - "browserslist": { - "version": "4.21.4", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz", - "integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==", + "envinfo": { + "version": "7.8.1", + "dev": true + }, + "error-ex": { + "version": "1.3.2", "dev": true, "requires": { - "caniuse-lite": "^1.0.30001400", - "electron-to-chromium": "^1.4.251", - "node-releases": "^2.0.6", - "update-browserslist-db": "^1.0.9" + "is-arrayish": "^0.2.1" } }, - "bser": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", - "dev": true, + "es-abstract": { + "version": "1.21.2", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz", + "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==", "requires": { - "node-int64": "^0.4.0" + "array-buffer-byte-length": "^1.0.0", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.2.0", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.10", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.4.3", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.7", + "string.prototype.trimend": "^1.0.6", + "string.prototype.trimstart": "^1.0.6", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.9" } }, - "buffer": { - "version": "5.7.1", - "dev": true, + "es-aggregate-error": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/es-aggregate-error/-/es-aggregate-error-1.0.9.tgz", + "integrity": "sha512-fvnX40sb538wdU6r4s35cq4EY6Lr09Upj40BEVem4LEsuW8XgQep9yD5Q1U2KftokNp1rWODFJ2qwZSsAjFpbg==", "requires": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "function-bind": "^1.1.1", + "functions-have-names": "^1.2.3", + "get-intrinsic": "^1.1.3", + "globalthis": "^1.0.3", + "has-property-descriptors": "^1.0.0" } }, - "buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", - "dev": true - }, - "buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true - }, - "buffer-xor": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==", - "dev": true - }, - "builtin-status-codes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", - "integrity": "sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ==", - "dev": true - }, - "cached-path-relative": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/cached-path-relative/-/cached-path-relative-1.1.0.tgz", - "integrity": "sha512-WF0LihfemtesFcJgO7xfOoOcnWzY/QHR4qeDqV44jPU3HTI54+LnfXK3SA27AVVGCdZFgjjFFaqUA9Jx7dMJZA==", - "dev": true - }, - "call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "es-get-iterator": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", + "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==", + "dev": true, "requires": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "is-arguments": "^1.1.1", + "is-map": "^2.0.2", + "is-set": "^2.0.2", + "is-string": "^1.0.7", + "isarray": "^2.0.5", + "stop-iteration-iterator": "^1.0.0" + }, + "dependencies": { + "isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + } } }, - "callsites": { - "version": "3.1.0", - "dev": true - }, - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "es-module-lexer": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.2.1.tgz", + "integrity": "sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==", "dev": true }, - "caniuse-lite": { - "version": "1.0.30001414", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001414.tgz", - "integrity": "sha512-t55jfSaWjCdocnFdKQoO+d2ct9C59UZg4dY3OnUlSZ447r8pUtIKdp0hpAzrGFultmTC+Us+KpKi4GZl/LXlFg==", - "dev": true + "es-set-tostringtag": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", + "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "requires": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" + } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "es-shim-unscopables": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", + "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", "dev": true, "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "has": "^1.0.3" } }, - "char-regex": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", - "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", - "dev": true - }, - "chownr": { - "version": "1.1.4", - "dev": true - }, - "chrome-trace-event": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", - "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", - "dev": true - }, - "ci-info": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", - "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", - "dev": true - }, - "cipher-base": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", - "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", - "dev": true, + "es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" } }, - "cjs-module-lexer": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", - "integrity": "sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==", + "escalade": { + "version": "3.1.1", "dev": true }, - "cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - } + "escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true }, - "clone-deep": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", - "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "escodegen": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.1.0.tgz", + "integrity": "sha512-md+WjA8K+DJELEYe0n4XAOE0XbUYfw2rzb8T+nhZ19OnQxlh+0jMLS6d+z2oqWugIh3uYKu1+KJh6QKeoogLzg==", "dev": true, "requires": { - "is-plain-object": "^2.0.4", - "kind-of": "^6.0.2", - "shallow-clone": "^3.0.0" + "esprima": "~1.0.4", + "estraverse": "~1.5.0", + "esutils": "~1.0.0", + "source-map": "~0.1.30" }, "dependencies": { - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "requires": { - "isobject": "^3.0.1" - } + "esprima": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", + "integrity": "sha512-rp5dMKN8zEs9dfi9g0X1ClLmV//WRyk/R15mppFNICIFRG5P92VP7Z04p8pk++gABo9W2tY+kHyu6P1mEHgmTA==", + "dev": true }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "estraverse": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.5.1.tgz", + "integrity": "sha512-FpCjJDfmo3vsc/1zKSeqR5k42tcIhxFIlvq+h9j0fO2q/h2uLKyweq7rYJ+0CoVvrGQOxIS5wyBrW/+vF58BUQ==", "dev": true }, - "kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "esutils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-1.0.0.tgz", + "integrity": "sha512-x/iYH53X3quDwfHRz4y8rn4XcEwwCJeWsul9pF1zldMbGtgOtMNBEOuYWwB1EQlK2LRa1fev3YAgym/RElp5Cg==", "dev": true + }, + "source-map": { + "version": "0.1.43", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", + "integrity": "sha512-VtCvB9SIQhk3aF6h+N85EaqIaBFIAfZ9Cu+NJHHVvc8BbEcnvDcFw6sqQ2dQrT6SlOrZq3tIvyD9+EGq/lJryQ==", + "dev": true, + "optional": true, + "requires": { + "amdefine": ">=0.0.4" + } } } }, - "co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==" - }, - "coffee-script": { - "version": "1.12.7", - "dev": true - }, - "collect-v8-coverage": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", - "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", - "dev": true - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "eslint": { + "version": "8.38.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.38.0.tgz", + "integrity": "sha512-pIdsD2jwlUGf/U38Jv97t8lq6HpaU/G9NKbYmpWpZGw3LdTNhZLbJePqxOXGB5+JEKfOPU/XLxYxFh03nr1KTg==", "dev": true, "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "colorette": { - "version": "2.0.20", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", - "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", - "dev": true - }, - "combine-source-map": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.8.0.tgz", - "integrity": "sha512-UlxQ9Vw0b/Bt/KYwCFqdEwsQ1eL8d1gibiFb7lxQJFdvTgc2hIZi6ugsg+kyhzhPV+QEpUiEIwInIAIrgoEkrg==", - "dev": true, - "requires": { - "convert-source-map": "~1.1.0", - "inline-source-map": "~0.6.0", - "lodash.memoize": "~3.0.3", - "source-map": "~0.5.3" + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.0.2", + "@eslint/js": "8.38.0", + "@humanwhocodes/config-array": "^0.11.8", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.1.1", + "eslint-visitor-keys": "^3.4.0", + "espree": "^9.5.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-sdsl": "^4.1.4", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0" + }, + "dependencies": { + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "eslint-scope": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", + "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + } + }, + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + }, + "glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "requires": { + "is-glob": "^4.0.3" + } + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + } } }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "eslint-config-prettier": { + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", + "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", "dev": true, - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + "requires": {} }, - "concat-stream": { - "version": "1.6.2", + "eslint-import-resolver-node": { + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", + "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", "dev": true, "requires": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" + "debug": "^3.2.7", + "is-core-module": "^2.11.0", + "resolve": "^1.22.1" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } } }, - "concat-with-sourcemaps": { - "version": "1.1.0", + "eslint-module-utils": { + "version": "2.7.4", "dev": true, "requires": { - "source-map": "^0.6.1" + "debug": "^3.2.7" }, "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } } } }, - "console-browserify": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", - "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==", - "dev": true - }, - "constants-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", - "integrity": "sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ==", - "dev": true - }, - "convert-source-map": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", - "integrity": "sha512-Y8L5rp6jo+g9VEPgvqNfEopjTR4OTYct8lXlS8iVQdmnjDvbdbzYe9rjtFCB9egC86JoNCU61WRY+ScjkZpnIg==", - "dev": true - }, - "core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", - "dev": true + "eslint-plugin-escompat": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-escompat/-/eslint-plugin-escompat-3.4.0.tgz", + "integrity": "sha512-ufTPv8cwCxTNoLnTZBFTQ5SxU2w7E7wiMIS7PSxsgP1eAxFjtSaoZ80LRn64hI8iYziE6kJG6gX/ZCJVxh48Bg==", + "dev": true, + "requires": { + "browserslist": "^4.21.0" + } }, - "create-ecdh": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", - "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", + "eslint-plugin-eslint-comments": { + "version": "3.2.0", "dev": true, "requires": { - "bn.js": "^4.1.0", - "elliptic": "^6.5.3" + "escape-string-regexp": "^1.0.5", + "ignore": "^5.0.5" }, "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "dev": true } } }, - "cross-fetch": { - "version": "3.1.5", + "eslint-plugin-filenames": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-filenames/-/eslint-plugin-filenames-1.3.2.tgz", + "integrity": "sha512-tqxJTiEM5a0JmRCUYQmxw23vtTxrb2+a3Q2mMOPhFxvt7ZQQJmdiuMby9B/vUAuVMghyP7oET+nIf6EO6CBd/w==", "dev": true, "requires": { - "node-fetch": "2.6.7" + "lodash.camelcase": "4.3.0", + "lodash.kebabcase": "4.1.1", + "lodash.snakecase": "4.1.1", + "lodash.upperfirst": "4.3.1" } }, - "create-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true - }, - "cross-env": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", - "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "eslint-plugin-github": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-4.7.0.tgz", + "integrity": "sha512-SIFSy6IXtN3aGQ6YyFWg/oxRUyAcYwg5G0wh+ov1HQCvmp+Pzs1GzeVjU8QcIQSSJfverQzuxWrJCAln/d2PuQ==", "dev": true, "requires": { - "cross-spawn": "^7.0.1" + "@github/browserslist-config": "^1.0.0", + "@typescript-eslint/eslint-plugin": "^5.1.0", + "@typescript-eslint/parser": "^5.1.0", + "aria-query": "^5.1.3", + "eslint-config-prettier": ">=8.0.0", + "eslint-plugin-escompat": "^3.3.3", + "eslint-plugin-eslint-comments": "^3.2.0", + "eslint-plugin-filenames": "^1.3.2", + "eslint-plugin-i18n-text": "^1.0.1", + "eslint-plugin-import": "^2.25.2", + "eslint-plugin-jsx-a11y": "^6.7.1", + "eslint-plugin-no-only-tests": "^3.0.0", + "eslint-plugin-prettier": "^4.0.0", + "eslint-rule-documentation": ">=1.0.0", + "jsx-ast-utils": "^3.3.2", + "prettier": "^2.2.1", + "svg-element-attributes": "^1.3.1" } }, - "cross-fetch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", - "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", + "eslint-plugin-i18n-text": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-i18n-text/-/eslint-plugin-i18n-text-1.0.1.tgz", + "integrity": "sha512-3G3UetST6rdqhqW9SfcfzNYMpQXS7wNkJvp6dsXnjzGiku6Iu5hl3B0kmk6lIcFPwYjhQIY+tXVRtK9TlGT7RA==", "dev": true, - "requires": { - "node-fetch": "2.6.7" - } + "requires": {} }, - "cross-spawn": { - "version": "7.0.3", + "eslint-plugin-import": { + "version": "2.27.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", + "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", "dev": true, "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "array.prototype.flatmap": "^1.3.1", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.7", + "eslint-module-utils": "^2.7.4", + "has": "^1.0.3", + "is-core-module": "^2.11.0", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.values": "^1.1.6", + "resolve": "^1.22.1", + "semver": "^6.3.0", + "tsconfig-paths": "^3.14.1" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } } }, - "crypto-browserify": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", - "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", + "eslint-plugin-jsx-a11y": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", + "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", "dev": true, "requires": { - "browserify-cipher": "^1.0.0", - "browserify-sign": "^4.0.0", - "create-ecdh": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.0", - "diffie-hellman": "^5.0.0", - "inherits": "^2.0.1", - "pbkdf2": "^3.0.3", - "public-encrypt": "^4.0.0", - "randombytes": "^2.0.0", - "randomfill": "^1.0.3" + "@babel/runtime": "^7.20.7", + "aria-query": "^5.1.3", + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "ast-types-flow": "^0.0.7", + "axe-core": "^4.6.2", + "axobject-query": "^3.1.1", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "has": "^1.0.3", + "jsx-ast-utils": "^3.3.3", + "language-tags": "=1.0.5", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "semver": "^6.3.0" + }, + "dependencies": { + "emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } } }, - "damerau-levenshtein": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", - "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", - "dev": true - }, - "dash-ast": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/dash-ast/-/dash-ast-1.0.0.tgz", - "integrity": "sha512-Vy4dx7gquTeMcQR/hDkYLGUnwVil6vk4FOOct+djUnHOUWt+zJPJAaRIXaAFkPXtJjvlY7o3rfRu0/3hpnwoUA==", + "eslint-plugin-no-only-tests": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-3.1.0.tgz", + "integrity": "sha512-Lf4YW/bL6Un1R6A76pRZyE1dl1vr31G/ev8UzIc/geCgFWyrKil8hVjYqWVKGB/UIGmb6Slzs9T0wNezdSVegw==", "dev": true }, - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "eslint-plugin-prettier": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", + "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", "dev": true, "requires": { - "ms": "2.1.2" + "prettier-linter-helpers": "^1.0.0" } }, - "dedent": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", - "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", - "dev": true - }, - "deep-equal": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.0.tgz", - "integrity": "sha512-RdpzE0Hv4lhowpIUKKMJfeH6C1pXdtT1/it80ubgWqwI3qpuxUBpC1S4hnHg+zjnuOoDkzUtUCEEkG+XG5l3Mw==", + "eslint-plugin-security": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-1.5.0.tgz", + "integrity": "sha512-hAFVwLZ/UeXrlyVD2TDarv/x00CoFVpaY0IUZhKjPjiFxqkuQVixsK4f2rxngeQOqSxi6OUjzJM/jMwKEVjJ8g==", "dev": true, "requires": { - "call-bind": "^1.0.2", - "es-get-iterator": "^1.1.2", - "get-intrinsic": "^1.1.3", - "is-arguments": "^1.1.1", - "is-array-buffer": "^3.0.1", - "is-date-object": "^1.0.5", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "isarray": "^2.0.5", - "object-is": "^1.1.5", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", - "side-channel": "^1.0.4", - "which-boxed-primitive": "^1.0.2", - "which-collection": "^1.0.1", - "which-typed-array": "^1.1.9" - }, - "dependencies": { - "isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true - } + "safe-regex": "^2.1.1" } }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", - "dev": true - }, - "define-properties": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", - "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", + "eslint-plugin-sonarjs": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.15.0.tgz", + "integrity": "sha512-LuxHdAe6VqSbi1phsUvNjbmXLuvlobmryQJJNyQYbdubCfz6K8tmgoqNiJPnz0pP2AbYDbtuPm0ajOMgMrC+dQ==", + "dev": true, "requires": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" + "ms": "^2.1.1" } }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz", - "integrity": "sha512-Y2caI5+ZwS5c3RiNDJ6u53VhQHv+hHKwhkI1iHvceKUHw9Df6EK2zRLfjejRgMuCuxK7PfSWIMwWecceVvThjQ==", - "dev": true - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "eslint-rule-documentation": { + "version": "1.0.23", + "resolved": "https://registry.npmjs.org/eslint-rule-documentation/-/eslint-rule-documentation-1.0.23.tgz", + "integrity": "sha512-pWReu3fkohwyvztx/oQWWgld2iad25TfUdi6wvhhaDPIQjHU/pyvlKgXFw1kX31SQK2Nq9MH+vRDWB0ZLy8fYw==", "dev": true }, - "dependency-graph": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", - "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==" - }, - "deps-sort": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/deps-sort/-/deps-sort-2.0.1.tgz", - "integrity": "sha512-1orqXQr5po+3KI6kQb9A4jnXT1PBwggGl2d7Sq2xsnOeI9GPcE/tGcF9UiSZtZBM7MukY4cAh7MemS6tZYipfw==", + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, "requires": { - "JSONStream": "^1.0.3", - "shasum-object": "^1.0.0", - "subarg": "^1.0.0", - "through2": "^2.0.0" + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" } }, - "des.js": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.1.tgz", - "integrity": "sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==", + "eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", "dev": true, "requires": { - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" + "eslint-visitor-keys": "^2.0.0" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "dev": true + } } }, - "detect-newline": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "eslint-visitor-keys": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.0.tgz", + "integrity": "sha512-HPpKPUBQcAsZOsHAFwTtIKcYlCje62XB7SEAcxjtmW6TD1WVpkS6i6/hOVtTZIl4zGj/mBqpFVGvaDneik+VoQ==", "dev": true }, - "detective": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/detective/-/detective-5.2.1.tgz", - "integrity": "sha512-v9XE1zRnz1wRtgurGu0Bs8uHKFSTdteYZNbIPFVhUZ39L/S79ppMpdmVOZAnoz1jfEFodc48n6MX483Xo3t1yw==", + "espree": { + "version": "9.5.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.1.tgz", + "integrity": "sha512-5yxtHSZXRSW5pvv3hAlXM5+/Oswi1AUFqBmbibKb5s6bp3rGIDkyXU6xCoyuuLhijr4SFwPrXRoZjz0AZDN9tg==", "dev": true, "requires": { - "acorn-node": "^1.8.2", - "defined": "^1.0.0", - "minimist": "^1.2.6" - } - }, - "devtools-protocol": { - "version": "0.0.1036444", - "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1036444.tgz", - "integrity": "sha512-0y4f/T8H9lsESV9kKP1HDUXgHxCdniFeJh6Erq+FbdOEvp/Ydp9t8kcAAM5gOd17pMrTDlFWntoHtzzeTUWKNw==", - "dev": true + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.0" + }, + "dependencies": { + "acorn": { + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "dev": true + } + } }, - "diacritics-map": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/diacritics-map/-/diacritics-map-0.1.0.tgz", - "integrity": "sha512-3omnDTYrGigU0i4cJjvaKwD52B8aoqyX/NEIkukFFkogBemsIbhSa1O414fpTp5nuszJG6lvQ5vBvDVNCbSsaQ==", - "dev": true + "esprima": { + "version": "4.0.1" }, - "diff-sequences": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", - "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", + "esprima-fb": { + "version": "3001.1.0-dev-harmony-fb", + "resolved": "https://registry.npmjs.org/esprima-fb/-/esprima-fb-3001.0001.0000-dev-harmony-fb.tgz", + "integrity": "sha512-a3RFiCVBiy8KdO6q/C+8BQiP/sRk8XshBU3QHHDP8tNzjYwR3FKBOImu+PXfVhPoZL0JKtJLBAOWlDMCCFY8SQ==", "dev": true }, - "diffie-hellman": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", - "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", + "esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", "dev": true, "requires": { - "bn.js": "^4.1.0", - "miller-rabin": "^4.0.0", - "randombytes": "^2.0.0" + "estraverse": "^5.1.0" }, "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true } } }, - "dir-glob": { - "version": "3.0.1", - "dev": true, - "requires": { - "path-type": "^4.0.0" - } - }, - "doctrine": { - "version": "3.0.0", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "domain-browser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", - "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", - "dev": true - }, - "dot-parts": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dot-parts/-/dot-parts-1.0.1.tgz", - "integrity": "sha512-DcAuaZ2hguFLkxrAwOlvYNFb4IE6xg1Ldzqpma4/UeiT0utd8/E17z1h9mH8s+9Hwh7SeLn83LpIykh/oBBxSw==", - "dev": true - }, - "duplexer": { - "version": "0.1.2", - "dev": true - }, - "duplexer2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", - "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==", + "esrecurse": { + "version": "4.3.0", "dev": true, "requires": { - "readable-stream": "^2.0.2" + "estraverse": "^5.2.0" + }, + "dependencies": { + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + } } }, - "electron-to-chromium": { - "version": "1.4.268", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.268.tgz", - "integrity": "sha512-PO90Bv++vEzdln+eA9qLg1IRnh0rKETus6QkTzcFm5P3Wg3EQBZud5dcnzkpYXuIKWBjKe5CO8zjz02cicvn1g==", + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", "dev": true }, - "emittery": { - "version": "0.10.2", + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true }, - "emittery": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", - "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", - "dev": true + "event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==" }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "events": { + "version": "3.3.0", "dev": true }, - "end-of-stream": { - "version": "1.4.4", + "evp_bytestokey": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", + "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", "dev": true, "requires": { - "once": "^1.4.0" + "md5.js": "^1.3.4", + "safe-buffer": "^5.1.1" } }, - "enhanced-resolve": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.13.0.tgz", - "integrity": "sha512-eyV8f0y1+bzyfh8xAwW/WTSZpLbjhqc4ne9eGSH4Zo2ejdyiNG9pU6mf9DG8a7+Auk6MFTlNOT4Y2y/9k8GKVg==", + "execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, "requires": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" } }, - "envinfo": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", - "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", + "exit": { + "version": "0.1.2", "dev": true }, - "error-ex": { - "version": "1.3.2", + "expand-range": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", + "integrity": "sha512-AFASGfIlnIbkKPQwX1yHaDjFvh/1gyKJODme52V6IORh69uEYgZp0o9C+qsIGNVEiuuhQU0CSSl++Rlegg1qvA==", "dev": true, "requires": { - "is-arrayish": "^0.2.1" - } - }, - "es-abstract": { - "version": "1.21.2", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz", - "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==", - "requires": { - "array-buffer-byte-length": "^1.0.0", - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "es-set-tostringtag": "^2.0.1", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.2.0", - "get-symbol-description": "^1.0.0", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.5", - "is-array-buffer": "^3.0.2", - "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.10", - "is-weakref": "^1.0.2", - "object-inspect": "^1.12.3", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", - "safe-regex-test": "^1.0.0", - "string.prototype.trim": "^1.2.7", - "string.prototype.trimend": "^1.0.6", - "string.prototype.trimstart": "^1.0.6", - "typed-array-length": "^1.0.4", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.9" - } - }, - "es-aggregate-error": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/es-aggregate-error/-/es-aggregate-error-1.0.9.tgz", - "integrity": "sha512-fvnX40sb538wdU6r4s35cq4EY6Lr09Upj40BEVem4LEsuW8XgQep9yD5Q1U2KftokNp1rWODFJ2qwZSsAjFpbg==", - "requires": { - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "function-bind": "^1.1.1", - "functions-have-names": "^1.2.3", - "get-intrinsic": "^1.1.3", - "globalthis": "^1.0.3", - "has-property-descriptors": "^1.0.0" + "fill-range": "^2.1.0" } }, - "es-get-iterator": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", - "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==", + "expect": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.5.0.tgz", + "integrity": "sha512-yM7xqUrCO2JdpFo4XpM82t+PJBFybdqoQuJLDGeDX2ij8NZzqRHyu3Hp188/JX7SWqud+7t4MUdvcgGBICMHZg==", "dev": true, "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "has-symbols": "^1.0.3", - "is-arguments": "^1.1.1", - "is-map": "^2.0.2", - "is-set": "^2.0.2", - "is-string": "^1.0.7", - "isarray": "^2.0.5", - "stop-iteration-iterator": "^1.0.0" + "@jest/expect-utils": "^29.5.0", + "jest-get-type": "^29.4.3", + "jest-matcher-utils": "^29.5.0", + "jest-message-util": "^29.5.0", + "jest-util": "^29.5.0" }, "dependencies": { - "isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true - } - } - }, - "es-module-lexer": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.2.1.tgz", - "integrity": "sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==", - "dev": true - }, - "es-set-tostringtag": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", - "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", - "requires": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "has-tostringtag": "^1.0.0" - } - }, - "es-shim-unscopables": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", - "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - } - }, - "escalade": { - "version": "3.1.1" - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - }, - "escodegen": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.1.0.tgz", - "integrity": "sha512-md+WjA8K+DJELEYe0n4XAOE0XbUYfw2rzb8T+nhZ19OnQxlh+0jMLS6d+z2oqWugIh3uYKu1+KJh6QKeoogLzg==", - "dev": true, - "requires": { - "esprima": "~1.0.4", - "estraverse": "~1.5.0", - "esutils": "~1.0.0", - "source-map": "~0.1.30" - }, - "dependencies": { - "esprima": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", - "integrity": "sha512-rp5dMKN8zEs9dfi9g0X1ClLmV//WRyk/R15mppFNICIFRG5P92VP7Z04p8pk++gABo9W2tY+kHyu6P1mEHgmTA==", + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true }, - "estraverse": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.5.1.tgz", - "integrity": "sha512-FpCjJDfmo3vsc/1zKSeqR5k42tcIhxFIlvq+h9j0fO2q/h2uLKyweq7rYJ+0CoVvrGQOxIS5wyBrW/+vF58BUQ==", + "diff-sequences": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", + "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", "dev": true }, - "esutils": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-1.0.0.tgz", - "integrity": "sha512-x/iYH53X3quDwfHRz4y8rn4XcEwwCJeWsul9pF1zldMbGtgOtMNBEOuYWwB1EQlK2LRa1fev3YAgym/RElp5Cg==", - "dev": true + "jest-diff": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.5.0.tgz", + "integrity": "sha512-LtxijLLZBduXnHSniy0WMdaHjmQnt3g5sa16W4p0HqukYTTsyTW3GD1q41TyGl5YFXj/5B2U6dlh5FM1LIMgxw==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + } }, - "source-map": { - "version": "0.1.43", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", - "integrity": "sha512-VtCvB9SIQhk3aF6h+N85EaqIaBFIAfZ9Cu+NJHHVvc8BbEcnvDcFw6sqQ2dQrT6SlOrZq3tIvyD9+EGq/lJryQ==", + "jest-matcher-utils": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.5.0.tgz", + "integrity": "sha512-lecRtgm/rjIK0CQ7LPQwzCs2VwW6WAahA55YBuI+xqmhm7LAaxokSB8C97yJeYyT+HvQkH741StzpU41wohhWw==", "dev": true, - "optional": true, "requires": { - "amdefine": ">=0.0.4" + "chalk": "^4.0.0", + "jest-diff": "^29.5.0", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + } + }, + "pretty-format": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", + "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", + "dev": true, + "requires": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true } } }, - "eslint": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.38.0.tgz", - "integrity": "sha512-pIdsD2jwlUGf/U38Jv97t8lq6HpaU/G9NKbYmpWpZGw3LdTNhZLbJePqxOXGB5+JEKfOPU/XLxYxFh03nr1KTg==", + "exposify": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/exposify/-/exposify-0.5.0.tgz", + "integrity": "sha512-SXS1oEW6VXYinz7RbTPUj+RhO3ZXuj2cmUTWTaO8KcWMcxLZF3wzjqSuaOW0EZYBoKooUM8DIkvfWWOMXTMQFQ==", "dev": true, "requires": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.0.2", - "@eslint/js": "8.38.0", - "@humanwhocodes/config-array": "^0.11.8", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.1.1", - "eslint-visitor-keys": "^3.4.0", - "espree": "^9.5.1", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-sdsl": "^4.1.4", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0" + "globo": "~1.1.0", + "map-obj": "~1.0.1", + "replace-requires": "~1.0.3", + "through2": "~0.4.0", + "transformify": "~0.1.1" }, "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", + "dev": true }, - "eslint-scope": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", - "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", + "object-keys": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz", + "integrity": "sha512-ncrLw+X55z7bkl5PnUvHwFK9FcGuFYo9gtjws2XtSzL+aZ8tm830P60WJ0dSmFVaSalWieW5MD7kEdnXda9yJw==", + "dev": true + }, + "readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==", "dev": true, "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" } }, - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", "dev": true }, - "glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "through2": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-0.4.2.tgz", + "integrity": "sha512-45Llu+EwHKtAZYTPPVn3XZHBgakWMN3rokhEv5hu596XP+cNgplMg+Gj+1nmAvj+L0K7+N49zBKx5rah5u0QIQ==", "dev": true, "requires": { - "is-glob": "^4.0.3" + "readable-stream": "~1.0.17", + "xtend": "~2.1.1" } }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true + "xtend": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-2.1.2.tgz", + "integrity": "sha512-vMNKzr2rHP9Dp/e1NQFnLQlwlhp9L/LfvnsVdHxN1f+uggyVI3i08uD14GPvCToPkdsRfyPqIyYGmIk58V98ZQ==", + "dev": true, + "requires": { + "object-keys": "~0.4.0" + } } } }, - "eslint-config-prettier": { - "version": "8.8.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", - "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", "dev": true, - "requires": {} + "requires": { + "is-extendable": "^0.1.0" + } }, - "eslint-import-resolver-node": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", - "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", + "extract-zip": { + "version": "2.0.1", "dev": true, "requires": { - "debug": "^3.2.7", - "is-core-module": "^2.11.0", - "resolve": "^1.22.1" + "@types/yauzl": "^2.9.1", + "debug": "^4.1.1", + "get-stream": "^5.1.0", + "yauzl": "^2.10.0" }, "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "get-stream": { + "version": "5.2.0", "dev": true, "requires": { - "ms": "^2.1.1" + "pump": "^3.0.0" } } } }, - "eslint-module-utils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", - "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", - "dev": true, - "requires": { - "debug": "^3.2.7" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "fast-diff": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", + "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", + "dev": true + }, + "fast-glob": { + "version": "3.2.12", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", + "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" } }, - "eslint-plugin-escompat": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-escompat/-/eslint-plugin-escompat-3.4.0.tgz", - "integrity": "sha512-ufTPv8cwCxTNoLnTZBFTQ5SxU2w7E7wiMIS7PSxsgP1eAxFjtSaoZ80LRn64hI8iYziE6kJG6gX/ZCJVxh48Bg==", + "fast-json-stable-stringify": { + "version": "2.1.0" + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "fast-memoize": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz", + "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==" + }, + "fastest-levenshtein": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", + "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", + "dev": true + }, + "fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", "dev": true, "requires": { - "browserslist": "^4.21.0" + "reusify": "^1.0.4" } }, - "eslint-plugin-eslint-comments": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz", - "integrity": "sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==", + "fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", "dev": true, "requires": { - "escape-string-regexp": "^1.0.5", - "ignore": "^5.0.5" - }, - "dependencies": { - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true - } + "bser": "2.1.1" } }, - "eslint-plugin-filenames": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-filenames/-/eslint-plugin-filenames-1.3.2.tgz", - "integrity": "sha512-tqxJTiEM5a0JmRCUYQmxw23vtTxrb2+a3Q2mMOPhFxvt7ZQQJmdiuMby9B/vUAuVMghyP7oET+nIf6EO6CBd/w==", + "fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", "dev": true, "requires": { - "lodash.camelcase": "4.3.0", - "lodash.kebabcase": "4.1.1", - "lodash.snakecase": "4.1.1", - "lodash.upperfirst": "4.3.1" + "pend": "~1.2.0" } }, - "eslint-plugin-github": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-4.7.0.tgz", - "integrity": "sha512-SIFSy6IXtN3aGQ6YyFWg/oxRUyAcYwg5G0wh+ov1HQCvmp+Pzs1GzeVjU8QcIQSSJfverQzuxWrJCAln/d2PuQ==", + "file-entry-cache": { + "version": "6.0.1", "dev": true, "requires": { - "@github/browserslist-config": "^1.0.0", - "@typescript-eslint/eslint-plugin": "^5.1.0", - "@typescript-eslint/parser": "^5.1.0", - "aria-query": "^5.1.3", - "eslint-config-prettier": ">=8.0.0", - "eslint-plugin-escompat": "^3.3.3", - "eslint-plugin-eslint-comments": "^3.2.0", - "eslint-plugin-filenames": "^1.3.2", - "eslint-plugin-i18n-text": "^1.0.1", - "eslint-plugin-import": "^2.25.2", - "eslint-plugin-jsx-a11y": "^6.7.1", - "eslint-plugin-no-only-tests": "^3.0.0", - "eslint-plugin-prettier": "^4.0.0", - "eslint-rule-documentation": ">=1.0.0", - "jsx-ast-utils": "^3.3.2", - "prettier": "^2.2.1", - "svg-element-attributes": "^1.3.1" + "flat-cache": "^3.0.4" } }, - "eslint-plugin-i18n-text": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-i18n-text/-/eslint-plugin-i18n-text-1.0.1.tgz", - "integrity": "sha512-3G3UetST6rdqhqW9SfcfzNYMpQXS7wNkJvp6dsXnjzGiku6Iu5hl3B0kmk6lIcFPwYjhQIY+tXVRtK9TlGT7RA==", + "fill-range": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", + "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", "dev": true, - "requires": {} + "requires": { + "is-number": "^2.1.0", + "isobject": "^2.0.0", + "randomatic": "^3.0.0", + "repeat-element": "^1.1.2", + "repeat-string": "^1.5.2" + } }, - "eslint-plugin-import": { - "version": "2.27.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", - "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", + "find-parent-dir": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/find-parent-dir/-/find-parent-dir-0.3.1.tgz", + "integrity": "sha512-o4UcykWV/XN9wm+jMEtWLPlV8RXCZnMhQI6F6OdHeSez7iiJWePw8ijOlskJZMsaQoGR/b7dH6lO02HhaTN7+A==", + "dev": true + }, + "find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, "requires": { - "array-includes": "^3.1.6", - "array.prototype.flat": "^1.3.1", - "array.prototype.flatmap": "^1.3.1", - "debug": "^3.2.7", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.7", - "eslint-module-utils": "^2.7.4", - "has": "^1.0.3", - "is-core-module": "^2.11.0", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.values": "^1.1.6", - "resolve": "^1.22.1", - "semver": "^6.3.0", - "tsconfig-paths": "^3.14.1" + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" }, "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true } } }, - "eslint-plugin-jsx-a11y": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", - "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", + "flat-cache": { + "version": "3.0.4", "dev": true, "requires": { - "@babel/runtime": "^7.20.7", - "aria-query": "^5.1.3", - "array-includes": "^3.1.6", - "array.prototype.flatmap": "^1.3.1", - "ast-types-flow": "^0.0.7", - "axe-core": "^4.6.2", - "axobject-query": "^3.1.1", - "damerau-levenshtein": "^1.0.8", - "emoji-regex": "^9.2.2", - "has": "^1.0.3", - "jsx-ast-utils": "^3.3.3", - "language-tags": "=1.0.5", - "minimatch": "^3.1.2", - "object.entries": "^1.1.6", - "object.fromentries": "^2.0.6", - "semver": "^6.3.0" - }, - "dependencies": { - "emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "flatted": "^3.1.0", + "rimraf": "^3.0.2" } }, - "eslint-plugin-no-only-tests": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-3.1.0.tgz", - "integrity": "sha512-Lf4YW/bL6Un1R6A76pRZyE1dl1vr31G/ev8UzIc/geCgFWyrKil8hVjYqWVKGB/UIGmb6Slzs9T0wNezdSVegw==", + "flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", "dev": true }, - "eslint-plugin-prettier": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", - "dev": true, + "for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", "requires": { - "prettier-linter-helpers": "^1.0.0" + "is-callable": "^1.1.3" } }, - "eslint-plugin-security": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-1.5.0.tgz", - "integrity": "sha512-hAFVwLZ/UeXrlyVD2TDarv/x00CoFVpaY0IUZhKjPjiFxqkuQVixsK4f2rxngeQOqSxi6OUjzJM/jMwKEVjJ8g==", + "for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==", + "dev": true + }, + "form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", "dev": true, "requires": { - "safe-regex": "^2.1.1" + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" } }, - "eslint-plugin-sonarjs": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.15.0.tgz", - "integrity": "sha512-LuxHdAe6VqSbi1phsUvNjbmXLuvlobmryQJJNyQYbdubCfz6K8tmgoqNiJPnz0pP2AbYDbtuPm0ajOMgMrC+dQ==", - "dev": true, - "requires": {} + "fs-constants": { + "version": "1.0.0", + "dev": true }, - "eslint-rule-documentation": { - "version": "1.0.23", - "resolved": "https://registry.npmjs.org/eslint-rule-documentation/-/eslint-rule-documentation-1.0.23.tgz", - "integrity": "sha512-pWReu3fkohwyvztx/oQWWgld2iad25TfUdi6wvhhaDPIQjHU/pyvlKgXFw1kX31SQK2Nq9MH+vRDWB0ZLy8fYw==", + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", "dev": true }, - "eslint-scope": { - "version": "7.1.1", + "fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", "dev": true, + "optional": true + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "function.prototype.name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", + "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" } }, - "eslint-visitor-keys": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.0.tgz", - "integrity": "sha512-HPpKPUBQcAsZOsHAFwTtIKcYlCje62XB7SEAcxjtmW6TD1WVpkS6i6/hOVtTZIl4zGj/mBqpFVGvaDneik+VoQ==", + "functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", "dev": true }, - "espree": { - "version": "9.5.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.1.tgz", - "integrity": "sha512-5yxtHSZXRSW5pvv3hAlXM5+/Oswi1AUFqBmbibKb5s6bp3rGIDkyXU6xCoyuuLhijr4SFwPrXRoZjz0AZDN9tg==", - "dev": true, + "functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==" + }, + "gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true + }, + "get-assigned-identifiers": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz", + "integrity": "sha512-mBBwmeGTrxEMO4pMaaf/uUEFHnYtwr8FTe8Y/mer4rcV/bye0qGm6pw1bGZFGStxC5O76c5ZAVBGnqHmOaJpdQ==", + "dev": true + }, + "get-caller-file": { + "version": "2.0.5", + "dev": true + }, + "get-intrinsic": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", + "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", "requires": { - "acorn": "^8.8.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.0" - }, - "dependencies": { - "acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "dev": true - } + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" } }, - "esprima": { - "version": "4.0.1" + "get-package-type": { + "version": "0.1.0", + "dev": true }, - "esprima-fb": { - "version": "3001.1.0-dev-harmony-fb", - "resolved": "https://registry.npmjs.org/esprima-fb/-/esprima-fb-3001.0001.0000-dev-harmony-fb.tgz", - "integrity": "sha512-a3RFiCVBiy8KdO6q/C+8BQiP/sRk8XshBU3QHHDP8tNzjYwR3FKBOImu+PXfVhPoZL0JKtJLBAOWlDMCCFY8SQ==", + "get-stream": { + "version": "6.0.1", "dev": true }, - "esquery": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", - "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", - "dev": true, + "get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", "requires": { - "estraverse": "^5.1.0" - }, - "dependencies": { - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - } + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" } }, - "esrecurse": { - "version": "4.3.0", + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "dev": true, "requires": { - "estraverse": "^5.2.0" - }, - "dependencies": { - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - } + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true + "glob-parent": { + "version": "5.1.2", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", "dev": true }, - "event-target-shim": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", - "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==" + "globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "dev": true, + "requires": { + "type-fest": "^0.20.2" + } }, - "events": { - "version": "3.3.0", - "dev": true + "globalthis": { + "version": "1.0.3", + "requires": { + "define-properties": "^1.1.3" + } }, - "execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dev": true, "requires": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" } }, - "exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", - "dev": true - }, - "expand-range": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", - "integrity": "sha512-AFASGfIlnIbkKPQwX1yHaDjFvh/1gyKJODme52V6IORh69uEYgZp0o9C+qsIGNVEiuuhQU0CSSl++Rlegg1qvA==", + "globo": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/globo/-/globo-1.1.0.tgz", + "integrity": "sha512-9kacJpRuOo2IPxzYdogGZKnREZXMLs7P2/gaeHxynuL7kmxdB9o4EVtpd69f81CeUFWmZSxj1heZFEXQDTkaLQ==", "dev": true, "requires": { - "fill-range": "^2.1.0" + "accessory": "~1.1.0", + "is-defined": "~1.0.0", + "ternary": "~1.0.0" } }, - "expect": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/expect/-/expect-29.5.0.tgz", - "integrity": "sha512-yM7xqUrCO2JdpFo4XpM82t+PJBFybdqoQuJLDGeDX2ij8NZzqRHyu3Hp188/JX7SWqud+7t4MUdvcgGBICMHZg==", + "gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "requires": { + "get-intrinsic": "^1.1.3" + } + }, + "graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "dev": true + }, + "grapheme-splitter": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", + "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", + "dev": true + }, + "gray-matter": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-2.1.1.tgz", + "integrity": "sha512-vbmvP1Fe/fxuT2QuLVcqb2BfK7upGhhbLIt9/owWEvPYrZZEkelLcq2HqzxosV+PQ67dUFLaAeNpH7C4hhICAA==", "dev": true, "requires": { - "@jest/expect-utils": "^29.5.0", - "jest-get-type": "^29.4.3", - "jest-matcher-utils": "^29.5.0", - "jest-message-util": "^29.5.0", - "jest-util": "^29.5.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - }, - "diff-sequences": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", - "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", - "dev": true - }, - "jest-diff": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.5.0.tgz", - "integrity": "sha512-LtxijLLZBduXnHSniy0WMdaHjmQnt3g5sa16W4p0HqukYTTsyTW3GD1q41TyGl5YFXj/5B2U6dlh5FM1LIMgxw==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "diff-sequences": "^29.4.3", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - } - }, - "jest-matcher-utils": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.5.0.tgz", - "integrity": "sha512-lecRtgm/rjIK0CQ7LPQwzCs2VwW6WAahA55YBuI+xqmhm7LAaxokSB8C97yJeYyT+HvQkH741StzpU41wohhWw==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "jest-diff": "^29.5.0", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - } - }, - "pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", + "ansi-red": "^0.1.1", + "coffee-script": "^1.12.4", + "extend-shallow": "^2.0.1", + "js-yaml": "^3.8.1", + "toml": "^2.3.2" + }, + "dependencies": { + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, "requires": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" + "argparse": "^1.0.7", + "esprima": "^4.0.0" } - }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true } } }, - "exposify": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/exposify/-/exposify-0.5.0.tgz", - "integrity": "sha512-SXS1oEW6VXYinz7RbTPUj+RhO3ZXuj2cmUTWTaO8KcWMcxLZF3wzjqSuaOW0EZYBoKooUM8DIkvfWWOMXTMQFQ==", + "gulp-header": { + "version": "1.8.12", "dev": true, "requires": { - "@jest/expect-utils": "^29.0.2", - "jest-get-type": "^29.0.0", - "jest-matcher-utils": "^29.0.2", - "jest-message-util": "^29.0.2", - "jest-util": "^29.0.2" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "dev": true - }, - "object-keys": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz", - "integrity": "sha512-ncrLw+X55z7bkl5PnUvHwFK9FcGuFYo9gtjws2XtSzL+aZ8tm830P60WJ0dSmFVaSalWieW5MD7kEdnXda9yJw==", - "dev": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", - "dev": true - }, - "through2": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.4.2.tgz", - "integrity": "sha512-45Llu+EwHKtAZYTPPVn3XZHBgakWMN3rokhEv5hu596XP+cNgplMg+Gj+1nmAvj+L0K7+N49zBKx5rah5u0QIQ==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "xtend": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-2.1.2.tgz", - "integrity": "sha512-vMNKzr2rHP9Dp/e1NQFnLQlwlhp9L/LfvnsVdHxN1f+uggyVI3i08uD14GPvCToPkdsRfyPqIyYGmIk58V98ZQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "dev": true - }, - "diff-sequences": { - "version": "29.0.0", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "dev": true - }, - "jest-diff": { - "version": "29.0.2", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "diff-sequences": "^29.0.0", - "jest-get-type": "^29.0.0", - "pretty-format": "^29.0.2" - } - }, - "jest-get-type": { - "version": "29.0.0", - "dev": true - }, - "jest-matcher-utils": { - "version": "29.0.2", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "jest-diff": "^29.0.2", - "jest-get-type": "^29.0.0", - "pretty-format": "^29.0.2" - } - }, - "jest-util": { - "version": "29.0.2", - "dev": true, - "requires": { - "@jest/types": "^29.0.2", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - } - }, - "pretty-format": { - "version": "29.0.2", - "dev": true, - "requires": { - "@jest/schemas": "^29.0.0", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "dev": true - } - } - }, - "react-is": { - "version": "18.2.0", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "concat-with-sourcemaps": "*", + "lodash.template": "^4.4.0", + "through2": "^2.0.0" } }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "gzip-size": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", + "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", "dev": true, "requires": { - "is-extendable": "^0.1.0" + "duplexer": "^0.1.2" } }, - "extract-zip": { - "version": "2.0.1", - "dev": true, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", "requires": { - "@types/yauzl": "^2.9.1", - "debug": "^4.1.1", - "get-stream": "^5.1.0", - "yauzl": "^2.10.0" - }, - "dependencies": { - "get-stream": { - "version": "5.2.0", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - } + "function-bind": "^1.1.1" } }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + "has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==" }, - "fast-diff": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", - "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, - "fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", - "dev": true, + "has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" + "get-intrinsic": "^1.1.1" } }, - "fast-json-stable-stringify": { - "version": "2.1.0" - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true + "has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==" }, - "fast-memoize": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz", - "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==" + "has-require": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/has-require/-/has-require-1.2.2.tgz", + "integrity": "sha512-JHMVoV2TG3LEFw/8UjxXJzCRGdOHJzzAXft7BafERh2rdPYZcS5N6Twv7Q8yLy9mciKsVBkXmpWSuLp5GUXNng==", + "dev": true, + "requires": { + "get-intrinsic": "^1.1.1" + } }, - "fast-safe-stringify": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", - "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", - "dev": true + "has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" }, - "fastest-levenshtein": { - "version": "1.0.16", - "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", - "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", - "dev": true - }, - "fastq": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", - "dev": true, + "has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", "requires": { - "reusify": "^1.0.4" + "has-symbols": "^1.0.2" } }, - "fb-watchman": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", - "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "hash-base": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", + "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==", "dev": true, "requires": { - "bser": "2.1.1" + "inherits": "^2.0.4", + "readable-stream": "^3.6.0", + "safe-buffer": "^5.2.0" + }, + "dependencies": { + "readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + } } }, - "fd-slicer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "hash.js": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", + "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", "dev": true, "requires": { - "pend": "~1.2.0" + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" } }, - "file-entry-cache": { - "version": "6.0.1", + "hmac-drbg": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", + "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", "dev": true, "requires": { - "flat-cache": "^3.0.4" + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" } }, - "fill-range": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", - "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", + "html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "htmlescape": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/htmlescape/-/htmlescape-1.1.1.tgz", + "integrity": "sha512-eVcrzgbR4tim7c7soKQKtxa/kQM4TzjnlU83rcZ9bHU6t31ehfV7SktN6McWgwPWg+JYMA/O3qpGxBvFq1z2Jg==", + "dev": true + }, + "https-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", + "integrity": "sha512-J+FkSdyD+0mA0N+81tMotaRMfSL9SGi+xpD3T6YApKsc3bGSXJlfXri3VyFOeYkfLRQisDk1W+jIFFKBeUBbBg==", + "dev": true + }, + "https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", "dev": true, "requires": { - "is-number": "^2.1.0", - "isobject": "^2.0.0", - "randomatic": "^3.0.0", - "repeat-element": "^1.1.2", - "repeat-string": "^1.5.2" + "agent-base": "6", + "debug": "4" } }, - "find-parent-dir": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/find-parent-dir/-/find-parent-dir-0.3.1.tgz", - "integrity": "sha512-o4UcykWV/XN9wm+jMEtWLPlV8RXCZnMhQI6F6OdHeSez7iiJWePw8ijOlskJZMsaQoGR/b7dH6lO02HhaTN7+A==", + "human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true }, - "find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true + }, + "ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "dev": true + }, + "immer": { + "version": "9.0.21", + "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", + "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==" + }, + "import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", "dev": true, "requires": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" }, "dependencies": { - "path-exists": { + "resolve-from": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true } } }, - "flat-cache": { - "version": "3.0.4", + "import-local": { + "version": "3.1.0", "dev": true, "requires": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - } - }, - "flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true - }, - "for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "requires": { - "is-callable": "^1.1.3" + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" } }, - "for-in": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==", + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true }, - "form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "dev": true, "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" + "once": "^1.3.0", + "wrappy": "1" } }, - "fs-constants": { - "version": "1.0.0", + "inherits": { + "version": "2.0.4", "dev": true }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "inline-source-map": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.6.2.tgz", + "integrity": "sha512-0mVWSSbNDvedDWIN4wxLsdPM4a7cIPcpyMxj3QZ406QRwQ6ePGB1YIHxVPjqpcUGbWQ5C+nHTwGNWAGvt7ggVA==", "dev": true }, - "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "insert-module-globals": { + "version": "7.2.1", + "resolved": "https://registry.npmjs.org/insert-module-globals/-/insert-module-globals-7.2.1.tgz", + "integrity": "sha512-ufS5Qq9RZN+Bu899eA9QCAYThY+gGW7oRkmb0vC93Vlyu/CFGcH0OYPEjVkDXA5FEbTt1+VWzdoOD3Ny9N+8tg==", "dev": true, - "optional": true + "requires": { + "acorn-node": "^1.5.2", + "combine-source-map": "^0.8.0", + "concat-stream": "^1.6.1", + "is-buffer": "^1.1.0", + "JSONStream": "^1.0.3", + "path-is-absolute": "^1.0.1", + "process": "~0.11.0", + "through2": "^2.0.0", + "undeclared-identifiers": "^1.1.2", + "xtend": "^4.0.0" + } }, - "function-bind": { + "internal-slot": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", + "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", + "requires": { + "get-intrinsic": "^1.2.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + } + }, + "is-arguments": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } }, - "function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", "requires": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" } }, - "functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==" + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true }, - "functions-have-names": { - "version": "1.2.3" + "is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "requires": { + "has-bigints": "^1.0.1" + } }, - "gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true + "is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } }, - "get-assigned-identifiers": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz", - "integrity": "sha512-mBBwmeGTrxEMO4pMaaf/uUEFHnYtwr8FTe8Y/mer4rcV/bye0qGm6pw1bGZFGStxC5O76c5ZAVBGnqHmOaJpdQ==", + "is-buffer": { + "version": "1.1.6", "dev": true }, - "get-caller-file": { - "version": "2.0.5", - "dev": true + "is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==" }, - "get-intrinsic": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", - "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", + "is-core-module": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.0.tgz", + "integrity": "sha512-RECHCBCd/viahWmwj6enj19sKbHfJrddi/6cBDsNTKbNq0f7VeaUkBo60BqzvPqo/W54ChS62Z5qyun7cfOMqQ==", + "dev": true, "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.3" + "has": "^1.0.3" } }, - "get-package-type": { - "version": "0.1.0", + "is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-defined": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-defined/-/is-defined-1.0.0.tgz", + "integrity": "sha512-/drGiPCBGsJDhtnLkdcNl8QtEo9ddV10m0Y7wzkopIQM4u91wXhe84pZSH6RLukO2uJDtQoaAr1XoP0ilwsYzg==", "dev": true }, - "get-stream": { - "version": "6.0.1", + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", "dev": true }, - "get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - } + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true }, - "glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true }, - "glob-parent": { - "version": "5.1.2", + "is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true + }, + "is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, "requires": { - "is-glob": "^4.0.1" + "is-extglob": "^2.1.1" } }, - "glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "is-map": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", + "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", "dev": true }, - "globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==" + }, + "is-number": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", + "integrity": "sha512-QUzH43Gfb9+5yckcrSA0VBDwEtDUchrk4F6tfJZQuNzDJbEDB9cZNzSfXGQ1jqmdDY/kl41lUOWM9syA8z8jlg==", "dev": true, "requires": { - "type-fest": "^0.20.2" + "kind-of": "^3.0.2" } }, - "globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", "requires": { - "define-properties": "^1.1.3" + "has-tostringtag": "^1.0.0" } }, - "globalthis": { - "version": "1.0.3", - "requires": { - "define-properties": "^1.1.3" - } + "is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true }, - "globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, + "is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", "requires": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" } }, - "globo": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/globo/-/globo-1.1.0.tgz", - "integrity": "sha512-9kacJpRuOo2IPxzYdogGZKnREZXMLs7P2/gaeHxynuL7kmxdB9o4EVtpd69f81CeUFWmZSxj1heZFEXQDTkaLQ==", - "dev": true, - "requires": { - "accessory": "~1.1.0", - "is-defined": "~1.0.0", - "ternary": "~1.0.0" - } + "is-set": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", + "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", + "dev": true }, - "gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", "requires": { - "get-intrinsic": "^1.1.3" + "call-bind": "^1.0.2" } }, - "graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", - "dev": true - }, - "grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", + "is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", "dev": true }, - "gray-matter": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-2.1.1.tgz", - "integrity": "sha512-vbmvP1Fe/fxuT2QuLVcqb2BfK7upGhhbLIt9/owWEvPYrZZEkelLcq2HqzxosV+PQ67dUFLaAeNpH7C4hhICAA==", - "dev": true, + "is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", "requires": { - "ansi-red": "^0.1.1", - "coffee-script": "^1.12.4", - "extend-shallow": "^2.0.1", - "js-yaml": "^3.8.1", - "toml": "^2.3.2" - }, - "dependencies": { - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - } + "has-tostringtag": "^1.0.0" } }, - "gulp-header": { - "version": "1.8.12", - "dev": true, + "is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", "requires": { - "concat-with-sourcemaps": "*", - "lodash.template": "^4.4.0", - "through2": "^2.0.0" + "has-symbols": "^1.0.2" } }, - "gzip-size": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", - "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", - "dev": true, + "is-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", + "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", "requires": { - "duplexer": "^0.1.2" - } - }, - "hard-rejection": { - "version": "2.1.0", - "dev": true - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "requires": { - "get-intrinsic": "^1.1.1" - } - }, - "has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==" - }, - "has-require": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/has-require/-/has-require-1.2.2.tgz", - "integrity": "sha512-JHMVoV2TG3LEFw/8UjxXJzCRGdOHJzzAXft7BafERh2rdPYZcS5N6Twv7Q8yLy9mciKsVBkXmpWSuLp5GUXNng==", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.3" - }, - "dependencies": { - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true - } - } - }, - "has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" - }, - "has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "requires": { - "has-symbols": "^1.0.2" - } - }, - "hash-base": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", - "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==", - "dev": true, - "requires": { - "inherits": "^2.0.4", - "readable-stream": "^3.6.0", - "safe-buffer": "^5.2.0" - }, - "dependencies": { - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - } - } - }, - "hash.js": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - } - }, - "hmac-drbg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", - "dev": true, - "requires": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" - } - }, - "html-escaper": { - "version": "2.0.2", - "dev": true - }, - "htmlescape": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/htmlescape/-/htmlescape-1.1.1.tgz", - "integrity": "sha512-eVcrzgbR4tim7c7soKQKtxa/kQM4TzjnlU83rcZ9bHU6t31ehfV7SktN6McWgwPWg+JYMA/O3qpGxBvFq1z2Jg==", - "dev": true - }, - "https-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", - "integrity": "sha512-J+FkSdyD+0mA0N+81tMotaRMfSL9SGi+xpD3T6YApKsc3bGSXJlfXri3VyFOeYkfLRQisDk1W+jIFFKBeUBbBg==", - "dev": true - }, - "https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, - "requires": { - "agent-base": "6", - "debug": "4" - } - }, - "human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true - }, - "ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "dev": true - }, - "ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", - "dev": true - }, - "immer": { - "version": "9.0.21", - "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", - "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==" - }, - "import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - } - }, - "import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", - "dev": true, - "requires": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - } - }, - "import-local": { - "version": "3.1.0", - "dev": true, - "requires": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "dev": true - }, - "inline-source-map": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.6.2.tgz", - "integrity": "sha512-0mVWSSbNDvedDWIN4wxLsdPM4a7cIPcpyMxj3QZ406QRwQ6ePGB1YIHxVPjqpcUGbWQ5C+nHTwGNWAGvt7ggVA==", - "dev": true, - "requires": { - "source-map": "~0.5.3" - } - }, - "insert-module-globals": { - "version": "7.2.1", - "resolved": "https://registry.npmjs.org/insert-module-globals/-/insert-module-globals-7.2.1.tgz", - "integrity": "sha512-ufS5Qq9RZN+Bu899eA9QCAYThY+gGW7oRkmb0vC93Vlyu/CFGcH0OYPEjVkDXA5FEbTt1+VWzdoOD3Ny9N+8tg==", - "dev": true, - "requires": { - "acorn-node": "^1.5.2", - "combine-source-map": "^0.8.0", - "concat-stream": "^1.6.1", - "is-buffer": "^1.1.0", - "JSONStream": "^1.0.3", - "path-is-absolute": "^1.0.1", - "process": "~0.11.0", - "through2": "^2.0.0", - "undeclared-identifiers": "^1.1.2", - "xtend": "^4.0.0" - } - }, - "internal-slot": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", - "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", - "requires": { - "get-intrinsic": "^1.2.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - } - }, - "is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-array-buffer": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", - "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "is-typed-array": "^1.1.10" - } - }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true - }, - "is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "requires": { - "has-bigints": "^1.0.1" - } - }, - "is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-buffer": { - "version": "1.1.6", - "dev": true - }, - "is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==" - }, - "is-core-module": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.0.tgz", - "integrity": "sha512-RECHCBCd/viahWmwj6enj19sKbHfJrddi/6cBDsNTKbNq0f7VeaUkBo60BqzvPqo/W54ChS62Z5qyun7cfOMqQ==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-defined": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-defined/-/is-defined-1.0.0.tgz", - "integrity": "sha512-/drGiPCBGsJDhtnLkdcNl8QtEo9ddV10m0Y7wzkopIQM4u91wXhe84pZSH6RLukO2uJDtQoaAr1XoP0ilwsYzg==", - "dev": true - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "dev": true - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "is-generator-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", - "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", - "dev": true - }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-map": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", - "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", - "dev": true - }, - "is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==" - }, - "is-number": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha512-QUzH43Gfb9+5yckcrSA0VBDwEtDUchrk4F6tfJZQuNzDJbEDB9cZNzSfXGQ1jqmdDY/kl41lUOWM9syA8z8jlg==", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true - }, - "is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-set": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", - "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", - "dev": true - }, - "is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "requires": { - "call-bind": "^1.0.2" - } - }, - "is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true - }, - "is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "requires": { - "has-symbols": "^1.0.2" - } - }, - "is-typed-array": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", - "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", - "requires": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0" - } - }, - "is-weakmap": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", - "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", - "dev": true - }, - "is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "requires": { - "call-bind": "^1.0.2" - } - }, - "is-weakset": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", - "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - } - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", - "dev": true, - "requires": { - "isarray": "1.0.0" - } - }, - "istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", - "dev": true - }, - "istanbul-lib-report": { - "version": "3.0.0", - "dev": true, - "requires": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", - "supports-color": "^7.1.0" - } - }, - "istanbul-lib-source-maps": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", - "dev": true, - "requires": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "istanbul-reports": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", - "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", - "dev": true, - "requires": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - } - }, - "jest": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest/-/jest-29.5.0.tgz", - "integrity": "sha512-juMg3he2uru1QoXX078zTa7pO85QyB9xajZc6bU+d9yEGwrKX6+vGmJQ3UdVZsvTEUARIdObzH68QItim6OSSQ==", - "dev": true, - "requires": { - "@jest/core": "^29.5.0", - "@jest/types": "^29.5.0", - "import-local": "^3.0.2", - "jest-cli": "^29.5.0" - } - }, - "jest-changed-files": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.5.0.tgz", - "integrity": "sha512-IFG34IUMUaNBIxjQXF/iu7g6EcdMrGRRxaUSw92I/2g2YC6vCdTltl4nHvt7Ci5nSJwXIkCu8Ka1DKF+X7Z1Ag==", - "dev": true, - "requires": { - "execa": "^5.0.0", - "p-limit": "^3.1.0" - }, - "dependencies": { - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - } - } - }, - "jest-circus": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.5.0.tgz", - "integrity": "sha512-gq/ongqeQKAplVxqJmbeUOJJKkW3dDNPY8PjhJ5G0lBRvu0e3EWGxGy5cI4LAGA7gV2UHCtWBI4EMXK8c9nQKA==", - "dev": true, - "requires": { - "@jest/environment": "^29.5.0", - "@jest/expect": "^29.5.0", - "@jest/test-result": "^29.5.0", - "@jest/types": "^29.5.0", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "dedent": "^0.7.0", - "is-generator-fn": "^2.0.0", - "jest-each": "^29.5.0", - "jest-matcher-utils": "^29.5.0", - "jest-message-util": "^29.5.0", - "jest-runtime": "^29.5.0", - "jest-snapshot": "^29.5.0", - "jest-util": "^29.5.0", - "p-limit": "^3.1.0", - "pretty-format": "^29.5.0", - "pure-rand": "^6.0.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - }, - "diff-sequences": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", - "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", - "dev": true - }, - "jest-diff": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.5.0.tgz", - "integrity": "sha512-LtxijLLZBduXnHSniy0WMdaHjmQnt3g5sa16W4p0HqukYTTsyTW3GD1q41TyGl5YFXj/5B2U6dlh5FM1LIMgxw==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "diff-sequences": "^29.4.3", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - } - }, - "jest-matcher-utils": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.5.0.tgz", - "integrity": "sha512-lecRtgm/rjIK0CQ7LPQwzCs2VwW6WAahA55YBuI+xqmhm7LAaxokSB8C97yJeYyT+HvQkH741StzpU41wohhWw==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "jest-diff": "^29.5.0", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - } - }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - }, - "pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, - "requires": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - } - }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - } - } - }, - "jest-cli": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.5.0.tgz", - "integrity": "sha512-L1KcP1l4HtfwdxXNFCL5bmUbLQiKrakMUriBEcc1Vfz6gx31ORKdreuWvmQVBit+1ss9NNR3yxjwfwzZNdQXJw==", - "dev": true, - "requires": { - "@jest/core": "^29.5.0", - "@jest/test-result": "^29.5.0", - "@jest/types": "^29.5.0", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "import-local": "^3.0.2", - "jest-config": "^29.5.0", - "jest-util": "^29.5.0", - "jest-validate": "^29.5.0", - "prompts": "^2.0.1", - "yargs": "^17.3.1" - } - }, - "jest-config": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.5.0.tgz", - "integrity": "sha512-kvDUKBnNJPNBmFFOhDbm59iu1Fii1Q6SxyhXfvylq3UTHbg6o7j/g8k2dZyXWLvfdKB1vAPxNZnMgtKJcmu3kA==", - "dev": true, - "requires": { - "@babel/core": "^7.11.6", - "@jest/test-sequencer": "^29.5.0", - "@jest/types": "^29.5.0", - "babel-jest": "^29.5.0", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-circus": "^29.5.0", - "jest-environment-node": "^29.5.0", - "jest-get-type": "^29.4.3", - "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.5.0", - "jest-runner": "^29.5.0", - "jest-util": "^29.5.0", - "jest-validate": "^29.5.0", - "micromatch": "^4.0.4", - "parse-json": "^5.2.0", - "pretty-format": "^29.5.0", - "slash": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - }, - "pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, - "requires": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - } - }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - } - } - }, - "jest-diff": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", - "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "diff-sequences": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "dependencies": { - "jest-get-type": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "dev": true - } - } - }, - "jest-docblock": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.4.3.tgz", - "integrity": "sha512-fzdTftThczeSD9nZ3fzA/4KkHtnmllawWrXO69vtI+L9WjEIuXWs4AmyME7lN5hU7dB0sHhuPfcKofRsUb/2Fg==", - "dev": true, - "requires": { - "detect-newline": "^3.0.0" - } - }, - "jest-each": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.5.0.tgz", - "integrity": "sha512-HM5kIJ1BTnVt+DQZ2ALp3rzXEl+g726csObrW/jpEGl+CDSSQpOJJX2KE/vEg8cxcMXdyEPu6U4QX5eruQv5hA==", - "dev": true, - "requires": { - "@jest/types": "^29.5.0", - "chalk": "^4.0.0", - "jest-get-type": "^29.4.3", - "jest-util": "^29.5.0", - "pretty-format": "^29.5.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - }, - "pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, - "requires": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - } - }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - } - } - }, - "jest-environment-node": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.5.0.tgz", - "integrity": "sha512-ExxuIK/+yQ+6PRGaHkKewYtg6hto2uGCgvKdb2nfJfKXgZ17DfXjvbZ+jA1Qt9A8EQSfPnt5FKIfnOO3u1h9qw==", - "dev": true, - "requires": { - "@jest/environment": "^29.5.0", - "@jest/fake-timers": "^29.5.0", - "@jest/types": "^29.5.0", - "@types/node": "*", - "jest-mock": "^29.5.0", - "jest-util": "^29.5.0" + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" } }, - "jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "is-weakmap": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", + "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", "dev": true }, - "jest-haste-map": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.5.0.tgz", - "integrity": "sha512-IspOPnnBro8YfVYSw6yDRKh/TiCdRngjxeacCps1cQ9cgVN6+10JUcuJ1EabrgYLOATsIAigxA0rLR9x/YlrSA==", - "dev": true, - "requires": { - "@jest/types": "^29.5.0", - "@types/graceful-fs": "^4.1.3", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "fsevents": "^2.3.2", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^29.4.3", - "jest-util": "^29.5.0", - "jest-worker": "^29.5.0", - "micromatch": "^4.0.4", - "walker": "^1.0.8" - } - }, - "jest-leak-detector": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.5.0.tgz", - "integrity": "sha512-u9YdeeVnghBUtpN5mVxjID7KbkKE1QU4f6uUwuxiY0vYRi9BUCLKlPEZfDGR67ofdFmDz9oPAy2G92Ujrntmow==", - "dev": true, - "requires": { - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - }, - "pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, - "requires": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - } - }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - } + "is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "requires": { + "call-bind": "^1.0.2" } }, - "jest-matcher-utils": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", - "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", + "is-weakset": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", + "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", "dev": true, "requires": { - "chalk": "^4.0.0", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "dependencies": { - "jest-get-type": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "dev": true - } + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" } }, - "jest-message-util": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.5.0.tgz", - "integrity": "sha512-Kijeg9Dag6CKtIDA7O21zNTACqD5MD/8HfIV8pdD94vFyFuer52SigdC3IQMhab3vACxXMiFk+yMHNdbqtyTGA==", + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", "dev": true, "requires": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^29.5.0", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^29.5.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - }, - "pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, - "requires": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - } - }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - } + "isarray": "1.0.0" } }, - "jest-mock": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.5.0.tgz", - "integrity": "sha512-GqOzvdWDE4fAV2bWQLQCkujxYWL7RxjCnj71b5VhDAGOevB3qj3Ovg26A5NI84ZpODxyzaozXLOh2NCgkbvyaw==", + "istanbul-lib-coverage": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", + "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "dev": true + }, + "istanbul-lib-report": { + "version": "3.0.0", "dev": true, "requires": { - "@jest/types": "^29.5.0", - "@types/node": "*", - "jest-util": "^29.5.0" + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" } }, - "jest-pnp-resolver": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", - "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", "dev": true, - "requires": {} - }, - "jest-regex-util": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.4.3.tgz", - "integrity": "sha512-O4FglZaMmWXbGHSQInfXewIsd1LMn9p3ZXB/6r4FOkyhX2/iP/soMG98jGvk/A3HAN78+5VWcBGO0BJAPRh4kg==", - "dev": true + "requires": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } }, - "jest-resolve": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.5.0.tgz", - "integrity": "sha512-1TzxJ37FQq7J10jPtQjcc+MkCkE3GBpBecsSUWJ0qZNJpmg6m0D9/7II03yJulm3H/fvVjgqLh/k2eYg+ui52w==", + "istanbul-reports": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", + "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", "dev": true, "requires": { - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.5.0", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^29.5.0", - "jest-validate": "^29.5.0", - "resolve": "^1.20.0", - "resolve.exports": "^2.0.0", - "slash": "^3.0.0" + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" } }, - "jest-resolve-dependencies": { + "jest": { "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.5.0.tgz", - "integrity": "sha512-sjV3GFr0hDJMBpYeUuGduP+YeCRbd7S/ck6IvL3kQ9cpySYKqcqhdLLC2rFwrcL7tz5vYibomBrsFYWkIGGjOg==", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.5.0.tgz", + "integrity": "sha512-juMg3he2uru1QoXX078zTa7pO85QyB9xajZc6bU+d9yEGwrKX6+vGmJQ3UdVZsvTEUARIdObzH68QItim6OSSQ==", "dev": true, "requires": { - "jest-regex-util": "^29.4.3", - "jest-snapshot": "^29.5.0" + "@jest/core": "^29.5.0", + "@jest/types": "^29.5.0", + "import-local": "^3.0.2", + "jest-cli": "^29.5.0" } }, - "jest-runner": { + "jest-changed-files": { "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.5.0.tgz", - "integrity": "sha512-m7b6ypERhFghJsslMLhydaXBiLf7+jXy8FwGRHO3BGV1mcQpPbwiqiKUR2zU2NJuNeMenJmlFZCsIqzJCTeGLQ==", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.5.0.tgz", + "integrity": "sha512-IFG34IUMUaNBIxjQXF/iu7g6EcdMrGRRxaUSw92I/2g2YC6vCdTltl4nHvt7Ci5nSJwXIkCu8Ka1DKF+X7Z1Ag==", "dev": true, "requires": { - "@jest/console": "^29.5.0", - "@jest/environment": "^29.5.0", - "@jest/test-result": "^29.5.0", - "@jest/transform": "^29.5.0", - "@jest/types": "^29.5.0", - "@types/node": "*", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "graceful-fs": "^4.2.9", - "jest-docblock": "^29.4.3", - "jest-environment-node": "^29.5.0", - "jest-haste-map": "^29.5.0", - "jest-leak-detector": "^29.5.0", - "jest-message-util": "^29.5.0", - "jest-resolve": "^29.5.0", - "jest-runtime": "^29.5.0", - "jest-util": "^29.5.0", - "jest-watcher": "^29.5.0", - "jest-worker": "^29.5.0", - "p-limit": "^3.1.0", - "source-map-support": "0.5.13" + "execa": "^5.0.0", + "p-limit": "^3.1.0" }, "dependencies": { "p-limit": { @@ -17717,65 +16384,32 @@ } } }, - "jest-runtime": { + "jest-circus": { "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.5.0.tgz", - "integrity": "sha512-1Hr6Hh7bAgXQP+pln3homOiEZtCDZFqwmle7Ew2j8OlbkIu6uE3Y/etJQG8MLQs3Zy90xrp2C0BRrtPHG4zryw==", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.5.0.tgz", + "integrity": "sha512-gq/ongqeQKAplVxqJmbeUOJJKkW3dDNPY8PjhJ5G0lBRvu0e3EWGxGy5cI4LAGA7gV2UHCtWBI4EMXK8c9nQKA==", "dev": true, "requires": { "@jest/environment": "^29.5.0", - "@jest/fake-timers": "^29.5.0", - "@jest/globals": "^29.5.0", - "@jest/source-map": "^29.4.3", + "@jest/expect": "^29.5.0", "@jest/test-result": "^29.5.0", - "@jest/transform": "^29.5.0", "@jest/types": "^29.5.0", "@types/node": "*", "chalk": "^4.0.0", - "cjs-module-lexer": "^1.0.0", - "collect-v8-coverage": "^1.0.0", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.5.0", - "jest-message-util": "^29.5.0", - "jest-mock": "^29.5.0", - "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.5.0", - "jest-snapshot": "^29.5.0", - "jest-util": "^29.5.0", - "slash": "^3.0.0", - "strip-bom": "^4.0.0" - } - }, - "jest-snapshot": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.5.0.tgz", - "integrity": "sha512-x7Wolra5V0tt3wRs3/ts3S6ciSQVypgGQlJpz2rsdQYoUKxMxPNaoHMGJN6qAuPJqS+2iQ1ZUn5kl7HCyls84g==", - "dev": true, - "requires": { - "@babel/core": "^7.11.6", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-jsx": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/traverse": "^7.7.2", - "@babel/types": "^7.3.3", - "@jest/expect-utils": "^29.5.0", - "@jest/transform": "^29.5.0", - "@jest/types": "^29.5.0", - "@types/babel__traverse": "^7.0.6", - "@types/prettier": "^2.1.5", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^29.5.0", - "graceful-fs": "^4.2.9", - "jest-diff": "^29.5.0", - "jest-get-type": "^29.4.3", + "co": "^4.6.0", + "dedent": "^0.7.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.5.0", "jest-matcher-utils": "^29.5.0", "jest-message-util": "^29.5.0", + "jest-runtime": "^29.5.0", + "jest-snapshot": "^29.5.0", "jest-util": "^29.5.0", - "natural-compare": "^1.4.0", + "p-limit": "^3.1.0", "pretty-format": "^29.5.0", - "semver": "^7.3.5" + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" }, "dependencies": { "ansi-styles": { @@ -17814,6 +16448,15 @@ "pretty-format": "^29.5.0" } }, + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "requires": { + "yocto-queue": "^0.1.0" + } + }, "pretty-format": { "version": "29.5.0", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", @@ -17833,32 +16476,54 @@ } } }, - "jest-util": { + "jest-cli": { "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.5.0.tgz", - "integrity": "sha512-RYMgG/MTadOr5t8KdhejfvUU82MxsCu5MF6KuDUHl+NuwzUt+Sm6jJWxTJVrDR1j5M/gJVCPKQEpWXY+yIQ6lQ==", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.5.0.tgz", + "integrity": "sha512-L1KcP1l4HtfwdxXNFCL5bmUbLQiKrakMUriBEcc1Vfz6gx31ORKdreuWvmQVBit+1ss9NNR3yxjwfwzZNdQXJw==", "dev": true, "requires": { + "@jest/core": "^29.5.0", + "@jest/test-result": "^29.5.0", "@jest/types": "^29.5.0", - "@types/node": "*", "chalk": "^4.0.0", - "ci-info": "^3.2.0", + "exit": "^0.1.2", "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" + "import-local": "^3.0.2", + "jest-config": "^29.5.0", + "jest-util": "^29.5.0", + "jest-validate": "^29.5.0", + "prompts": "^2.0.1", + "yargs": "^17.3.1" } }, - "jest-validate": { + "jest-config": { "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.5.0.tgz", - "integrity": "sha512-pC26etNIi+y3HV8A+tUGr/lph9B18GnzSRAkPaaZJIE1eFdiYm6/CewuiJQ8/RlfHd1u/8Ioi8/sJ+CmbA+zAQ==", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.5.0.tgz", + "integrity": "sha512-kvDUKBnNJPNBmFFOhDbm59iu1Fii1Q6SxyhXfvylq3UTHbg6o7j/g8k2dZyXWLvfdKB1vAPxNZnMgtKJcmu3kA==", "dev": true, "requires": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.5.0", "@jest/types": "^29.5.0", - "camelcase": "^6.2.0", + "babel-jest": "^29.5.0", "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.5.0", + "jest-environment-node": "^29.5.0", "jest-get-type": "^29.4.3", - "leven": "^3.1.0", - "pretty-format": "^29.5.0" + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.5.0", + "jest-runner": "^29.5.0", + "jest-util": "^29.5.0", + "jest-validate": "^29.5.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.5.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" }, "dependencies": { "ansi-styles": { @@ -17867,12 +16532,6 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true }, - "camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true - }, "pretty-format": { "version": "29.5.0", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", @@ -17892,518 +16551,335 @@ } } }, - "jest-watcher": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.5.0.tgz", - "integrity": "sha512-KmTojKcapuqYrKDpRwfqcQ3zjMlwu27SYext9pt4GlF5FUgB+7XE1mcCnSm6a4uUpFyQIkb6ZhzZvHl+jiBCiA==", + "jest-diff": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", + "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", "dev": true, "requires": { - "@jest/test-result": "^29.5.0", - "@jest/types": "^29.5.0", - "@types/node": "*", - "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", - "emittery": "^0.13.1", - "jest-util": "^29.5.0", - "string-length": "^4.0.1" + "diff-sequences": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "dependencies": { + "jest-get-type": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", + "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", + "dev": true + } } }, - "jest-worker": { + "jest-docblock": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.4.3.tgz", + "integrity": "sha512-fzdTftThczeSD9nZ3fzA/4KkHtnmllawWrXO69vtI+L9WjEIuXWs4AmyME7lN5hU7dB0sHhuPfcKofRsUb/2Fg==", + "dev": true, + "requires": { + "detect-newline": "^3.0.0" + } + }, + "jest-each": { "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.5.0.tgz", - "integrity": "sha512-NcrQnevGoSp4b5kg+akIpthoAFHxPBcb5P6mYPY0fUNT+sSvmtu6jlkEle3anczUKIKEbMxFimk9oTP/tpIPgA==", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.5.0.tgz", + "integrity": "sha512-HM5kIJ1BTnVt+DQZ2ALp3rzXEl+g726csObrW/jpEGl+CDSSQpOJJX2KE/vEg8cxcMXdyEPu6U4QX5eruQv5hA==", "dev": true, "requires": { - "@types/node": "*", + "@jest/types": "^29.5.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.4.3", "jest-util": "^29.5.0", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" + "pretty-format": "^29.5.0" }, "dependencies": { - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + }, + "pretty-format": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", + "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", "dev": true, "requires": { - "has-flag": "^4.0.0" + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true } } }, - "js-sdsl": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.4.0.tgz", - "integrity": "sha512-FfVSdx6pJ41Oa+CF7RDaFmTnCaFhua+SNYQX74riGOpl96x+2jQCqEfQ2bnXu/5DPCqlRuiqyvTJM0Qjz26IVg==", - "dev": true - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "jest-environment-node": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.5.0.tgz", + "integrity": "sha512-ExxuIK/+yQ+6PRGaHkKewYtg6hto2uGCgvKdb2nfJfKXgZ17DfXjvbZ+jA1Qt9A8EQSfPnt5FKIfnOO3u1h9qw==", + "dev": true, "requires": { - "argparse": "^2.0.1" - }, - "dependencies": { - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - } + "@jest/environment": "^29.5.0", + "@jest/fake-timers": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/node": "*", + "jest-mock": "^29.5.0", + "jest-util": "^29.5.0" } }, - "jsep": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.3.8.tgz", - "integrity": "sha512-qofGylTGgYj9gZFsHuyWAN4jr35eJ66qJCK4eKDnldohuUoQFbU3iZn2zjvEbd9wOAhP9Wx5DsAAduTyE1PSWQ==" + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true }, - "jest-mock": { - "version": "29.0.2", + "jest-haste-map": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.5.0.tgz", + "integrity": "sha512-IspOPnnBro8YfVYSw6yDRKh/TiCdRngjxeacCps1cQ9cgVN6+10JUcuJ1EabrgYLOATsIAigxA0rLR9x/YlrSA==", "dev": true, "requires": { - "@jest/types": "^29.0.2", - "@types/node": "*" + "@jest/types": "^29.5.0", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.3.2", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.4.3", + "jest-util": "^29.5.0", + "jest-worker": "^29.5.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" } }, - "jest-pnp-resolver": { - "version": "1.2.2", - "dev": true, - "requires": {} - }, - "jest-resolve": { - "version": "29.0.2", + "jest-leak-detector": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.5.0.tgz", + "integrity": "sha512-u9YdeeVnghBUtpN5mVxjID7KbkKE1QU4f6uUwuxiY0vYRi9BUCLKlPEZfDGR67ofdFmDz9oPAy2G92Ujrntmow==", "dev": true, "requires": { - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.0.2", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^29.0.2", - "jest-validate": "^29.0.2", - "resolve": "^1.20.0", - "resolve.exports": "^1.1.0", - "slash": "^3.0.0" + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" }, "dependencies": { "ansi-styles": { - "version": "4.3.0", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "dev": true - }, - "jest-haste-map": { - "version": "29.0.2", - "dev": true, - "requires": { - "@jest/types": "^29.0.2", - "@types/graceful-fs": "^4.1.3", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "fsevents": "^2.3.2", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^29.0.0", - "jest-util": "^29.0.2", - "jest-worker": "^29.0.2", - "micromatch": "^4.0.4", - "walker": "^1.0.8" - } - }, - "jest-regex-util": { - "version": "29.0.0", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true }, - "jest-util": { - "version": "29.0.2", - "dev": true, - "requires": { - "@jest/types": "^29.0.2", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - } - }, - "jest-worker": { - "version": "29.0.2", - "dev": true, - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "dependencies": { - "supports-color": { - "version": "8.1.1", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "supports-color": { - "version": "7.2.0", + "pretty-format": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", + "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", "dev": true, "requires": { - "has-flag": "^4.0.0" + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true } } }, - "jest-resolve-dependencies": { - "version": "29.0.2", + "jest-matcher-utils": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", + "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", "dev": true, "requires": { - "jest-regex-util": "^29.0.0", - "jest-snapshot": "^29.0.2" + "chalk": "^4.0.0", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" }, "dependencies": { - "jest-regex-util": { - "version": "29.0.0", + "jest-get-type": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", + "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", "dev": true } } }, - "jest-runner": { - "version": "29.0.2", + "jest-message-util": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.5.0.tgz", + "integrity": "sha512-Kijeg9Dag6CKtIDA7O21zNTACqD5MD/8HfIV8pdD94vFyFuer52SigdC3IQMhab3vACxXMiFk+yMHNdbqtyTGA==", "dev": true, "requires": { - "@jest/console": "^29.0.2", - "@jest/environment": "^29.0.2", - "@jest/test-result": "^29.0.2", - "@jest/transform": "^29.0.2", - "@jest/types": "^29.0.2", - "@types/node": "*", + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.5.0", + "@types/stack-utils": "^2.0.0", "chalk": "^4.0.0", - "emittery": "^0.10.2", "graceful-fs": "^4.2.9", - "jest-docblock": "^29.0.0", - "jest-environment-node": "^29.0.2", - "jest-haste-map": "^29.0.2", - "jest-leak-detector": "^29.0.2", - "jest-message-util": "^29.0.2", - "jest-resolve": "^29.0.2", - "jest-runtime": "^29.0.2", - "jest-util": "^29.0.2", - "jest-watcher": "^29.0.2", - "jest-worker": "^29.0.2", - "p-limit": "^3.1.0", - "source-map-support": "0.5.13" + "micromatch": "^4.0.4", + "pretty-format": "^29.5.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" }, "dependencies": { - "@jest/transform": { - "version": "29.0.2", - "dev": true, - "requires": { - "@babel/core": "^7.11.6", - "@jest/types": "^29.0.2", - "@jridgewell/trace-mapping": "^0.3.15", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.1.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.0.2", - "jest-regex-util": "^29.0.0", - "jest-util": "^29.0.2", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "write-file-atomic": "^4.0.1" - } - }, "ansi-styles": { - "version": "4.3.0", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "dev": true - }, - "has-flag": { - "version": "4.0.0", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true }, - "jest-haste-map": { - "version": "29.0.2", + "pretty-format": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", + "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", "dev": true, "requires": { - "@jest/types": "^29.0.2", - "@types/graceful-fs": "^4.1.3", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "fsevents": "^2.3.2", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^29.0.0", - "jest-util": "^29.0.2", - "jest-worker": "^29.0.2", - "micromatch": "^4.0.4", - "walker": "^1.0.8" + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" } }, - "jest-regex-util": { - "version": "29.0.0", + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true - }, - "jest-util": { - "version": "29.0.2", - "dev": true, - "requires": { - "@jest/types": "^29.0.2", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - } - }, - "jest-worker": { - "version": "29.0.2", - "dev": true, - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "dependencies": { - "supports-color": { - "version": "8.1.1", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "p-limit": { - "version": "3.1.0", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - }, - "supports-color": { - "version": "7.2.0", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "write-file-atomic": { - "version": "4.0.2", - "dev": true, - "requires": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - } } } }, - "jest-runtime": { - "version": "29.0.2", + "jest-mock": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.5.0.tgz", + "integrity": "sha512-GqOzvdWDE4fAV2bWQLQCkujxYWL7RxjCnj71b5VhDAGOevB3qj3Ovg26A5NI84ZpODxyzaozXLOh2NCgkbvyaw==", "dev": true, "requires": { - "@jest/environment": "^29.0.2", - "@jest/fake-timers": "^29.0.2", - "@jest/globals": "^29.0.2", - "@jest/source-map": "^29.0.0", - "@jest/test-result": "^29.0.2", - "@jest/transform": "^29.0.2", - "@jest/types": "^29.0.2", + "@jest/types": "^29.5.0", + "@types/node": "*", + "jest-util": "^29.5.0" + } + }, + "jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "requires": {} + }, + "jest-regex-util": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.4.3.tgz", + "integrity": "sha512-O4FglZaMmWXbGHSQInfXewIsd1LMn9p3ZXB/6r4FOkyhX2/iP/soMG98jGvk/A3HAN78+5VWcBGO0BJAPRh4kg==", + "dev": true + }, + "jest-resolve": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.5.0.tgz", + "integrity": "sha512-1TzxJ37FQq7J10jPtQjcc+MkCkE3GBpBecsSUWJ0qZNJpmg6m0D9/7II03yJulm3H/fvVjgqLh/k2eYg+ui52w==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.5.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.5.0", + "jest-validate": "^29.5.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + } + }, + "jest-resolve-dependencies": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.5.0.tgz", + "integrity": "sha512-sjV3GFr0hDJMBpYeUuGduP+YeCRbd7S/ck6IvL3kQ9cpySYKqcqhdLLC2rFwrcL7tz5vYibomBrsFYWkIGGjOg==", + "dev": true, + "requires": { + "jest-regex-util": "^29.4.3", + "jest-snapshot": "^29.5.0" + } + }, + "jest-runner": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.5.0.tgz", + "integrity": "sha512-m7b6ypERhFghJsslMLhydaXBiLf7+jXy8FwGRHO3BGV1mcQpPbwiqiKUR2zU2NJuNeMenJmlFZCsIqzJCTeGLQ==", + "dev": true, + "requires": { + "@jest/console": "^29.5.0", + "@jest/environment": "^29.5.0", + "@jest/test-result": "^29.5.0", + "@jest/transform": "^29.5.0", + "@jest/types": "^29.5.0", "@types/node": "*", "chalk": "^4.0.0", - "cjs-module-lexer": "^1.0.0", - "collect-v8-coverage": "^1.0.0", - "glob": "^7.1.3", + "emittery": "^0.13.1", "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.0.2", - "jest-message-util": "^29.0.2", - "jest-mock": "^29.0.2", - "jest-regex-util": "^29.0.0", - "jest-resolve": "^29.0.2", - "jest-snapshot": "^29.0.2", - "jest-util": "^29.0.2", - "slash": "^3.0.0", - "strip-bom": "^4.0.0" + "jest-docblock": "^29.4.3", + "jest-environment-node": "^29.5.0", + "jest-haste-map": "^29.5.0", + "jest-leak-detector": "^29.5.0", + "jest-message-util": "^29.5.0", + "jest-resolve": "^29.5.0", + "jest-runtime": "^29.5.0", + "jest-util": "^29.5.0", + "jest-watcher": "^29.5.0", + "jest-worker": "^29.5.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" }, "dependencies": { - "@jest/transform": { - "version": "29.0.2", - "dev": true, - "requires": { - "@babel/core": "^7.11.6", - "@jest/types": "^29.0.2", - "@jridgewell/trace-mapping": "^0.3.15", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.1.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.0.2", - "jest-regex-util": "^29.0.0", - "jest-util": "^29.0.2", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "write-file-atomic": "^4.0.1" - } - }, - "ansi-styles": { - "version": "4.3.0", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "dev": true - }, - "jest-haste-map": { - "version": "29.0.2", - "dev": true, - "requires": { - "@jest/types": "^29.0.2", - "@types/graceful-fs": "^4.1.3", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "fsevents": "^2.3.2", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^29.0.0", - "jest-util": "^29.0.2", - "jest-worker": "^29.0.2", - "micromatch": "^4.0.4", - "walker": "^1.0.8" - } - }, - "jest-regex-util": { - "version": "29.0.0", - "dev": true - }, - "jest-util": { - "version": "29.0.2", - "dev": true, - "requires": { - "@jest/types": "^29.0.2", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - } - }, - "jest-worker": { - "version": "29.0.2", - "dev": true, - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "dependencies": { - "supports-color": { - "version": "8.1.1", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "strip-bom": { - "version": "4.0.0", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "write-file-atomic": { - "version": "4.0.2", + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "requires": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" + "yocto-queue": "^0.1.0" } } } }, + "jest-runtime": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.5.0.tgz", + "integrity": "sha512-1Hr6Hh7bAgXQP+pln3homOiEZtCDZFqwmle7Ew2j8OlbkIu6uE3Y/etJQG8MLQs3Zy90xrp2C0BRrtPHG4zryw==", + "dev": true, + "requires": { + "@jest/environment": "^29.5.0", + "@jest/fake-timers": "^29.5.0", + "@jest/globals": "^29.5.0", + "@jest/source-map": "^29.4.3", + "@jest/test-result": "^29.5.0", + "@jest/transform": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.5.0", + "jest-message-util": "^29.5.0", + "jest-mock": "^29.5.0", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.5.0", + "jest-snapshot": "^29.5.0", + "jest-util": "^29.5.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + } + }, "jest-snapshot": { - "version": "29.0.2", + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.5.0.tgz", + "integrity": "sha512-x7Wolra5V0tt3wRs3/ts3S6ciSQVypgGQlJpz2rsdQYoUKxMxPNaoHMGJN6qAuPJqS+2iQ1ZUn5kl7HCyls84g==", "dev": true, "requires": { "@babel/core": "^7.11.6", @@ -18412,358 +16888,171 @@ "@babel/plugin-syntax-typescript": "^7.7.2", "@babel/traverse": "^7.7.2", "@babel/types": "^7.3.3", - "@jest/expect-utils": "^29.0.2", - "@jest/transform": "^29.0.2", - "@jest/types": "^29.0.2", + "@jest/expect-utils": "^29.5.0", + "@jest/transform": "^29.5.0", + "@jest/types": "^29.5.0", "@types/babel__traverse": "^7.0.6", "@types/prettier": "^2.1.5", "babel-preset-current-node-syntax": "^1.0.0", "chalk": "^4.0.0", - "expect": "^29.0.2", + "expect": "^29.5.0", "graceful-fs": "^4.2.9", - "jest-diff": "^29.0.2", - "jest-get-type": "^29.0.0", - "jest-haste-map": "^29.0.2", - "jest-matcher-utils": "^29.0.2", - "jest-message-util": "^29.0.2", - "jest-util": "^29.0.2", + "jest-diff": "^29.5.0", + "jest-get-type": "^29.4.3", + "jest-matcher-utils": "^29.5.0", + "jest-message-util": "^29.5.0", + "jest-util": "^29.5.0", "natural-compare": "^1.4.0", - "pretty-format": "^29.0.2", + "pretty-format": "^29.5.0", "semver": "^7.3.5" }, "dependencies": { - "@jest/transform": { - "version": "29.0.2", - "dev": true, - "requires": { - "@babel/core": "^7.11.6", - "@jest/types": "^29.0.2", - "@jridgewell/trace-mapping": "^0.3.15", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.1.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.0.2", - "jest-regex-util": "^29.0.0", - "jest-util": "^29.0.2", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "write-file-atomic": "^4.0.1" - } - }, "ansi-styles": { - "version": "4.3.0", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true }, "diff-sequences": { - "version": "29.0.0", - "dev": true - }, - "has-flag": { - "version": "4.0.0", + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", + "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", "dev": true }, "jest-diff": { - "version": "29.0.2", + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.5.0.tgz", + "integrity": "sha512-LtxijLLZBduXnHSniy0WMdaHjmQnt3g5sa16W4p0HqukYTTsyTW3GD1q41TyGl5YFXj/5B2U6dlh5FM1LIMgxw==", "dev": true, "requires": { "chalk": "^4.0.0", - "diff-sequences": "^29.0.0", - "jest-get-type": "^29.0.0", - "pretty-format": "^29.0.2" - } - }, - "jest-get-type": { - "version": "29.0.0", - "dev": true - }, - "jest-haste-map": { - "version": "29.0.2", - "dev": true, - "requires": { - "@jest/types": "^29.0.2", - "@types/graceful-fs": "^4.1.3", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "fsevents": "^2.3.2", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^29.0.0", - "jest-util": "^29.0.2", - "jest-worker": "^29.0.2", - "micromatch": "^4.0.4", - "walker": "^1.0.8" + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" } }, "jest-matcher-utils": { - "version": "29.0.2", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "jest-diff": "^29.0.2", - "jest-get-type": "^29.0.0", - "pretty-format": "^29.0.2" - } - }, - "jest-regex-util": { - "version": "29.0.0", - "dev": true - }, - "jest-util": { - "version": "29.0.2", + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.5.0.tgz", + "integrity": "sha512-lecRtgm/rjIK0CQ7LPQwzCs2VwW6WAahA55YBuI+xqmhm7LAaxokSB8C97yJeYyT+HvQkH741StzpU41wohhWw==", "dev": true, "requires": { - "@jest/types": "^29.0.2", - "@types/node": "*", "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - } - }, - "jest-worker": { - "version": "29.0.2", - "dev": true, - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "dependencies": { - "supports-color": { - "version": "8.1.1", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "jest-diff": "^29.5.0", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" } }, "pretty-format": { - "version": "29.0.2", + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", + "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", "dev": true, "requires": { - "@jest/schemas": "^29.0.0", + "@jest/schemas": "^29.4.3", "ansi-styles": "^5.0.0", "react-is": "^18.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "dev": true - } } }, "react-is": { "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true - }, - "semver": { - "version": "7.3.7", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "supports-color": { - "version": "7.2.0", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "write-file-atomic": { - "version": "4.0.2", - "dev": true, - "requires": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - } } } }, + "jest-util": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.5.0.tgz", + "integrity": "sha512-RYMgG/MTadOr5t8KdhejfvUU82MxsCu5MF6KuDUHl+NuwzUt+Sm6jJWxTJVrDR1j5M/gJVCPKQEpWXY+yIQ6lQ==", + "dev": true, + "requires": { + "@jest/types": "^29.5.0", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, "jest-validate": { - "version": "29.0.2", + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.5.0.tgz", + "integrity": "sha512-pC26etNIi+y3HV8A+tUGr/lph9B18GnzSRAkPaaZJIE1eFdiYm6/CewuiJQ8/RlfHd1u/8Ioi8/sJ+CmbA+zAQ==", "dev": true, "requires": { - "@jest/types": "^29.0.2", + "@jest/types": "^29.5.0", "camelcase": "^6.2.0", "chalk": "^4.0.0", - "jest-get-type": "^29.0.0", + "jest-get-type": "^29.4.3", "leven": "^3.1.0", - "pretty-format": "^29.0.2" + "pretty-format": "^29.5.0" }, "dependencies": { "ansi-styles": { - "version": "4.3.0", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true }, "camelcase": { "version": "6.3.0", - "dev": true - }, - "chalk": { - "version": "4.1.2", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "dev": true - }, - "jest-get-type": { - "version": "29.0.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true }, "pretty-format": { - "version": "29.0.2", + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", + "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", "dev": true, "requires": { - "@jest/schemas": "^29.0.0", + "@jest/schemas": "^29.4.3", "ansi-styles": "^5.0.0", "react-is": "^18.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "dev": true - } } }, "react-is": { "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true - }, - "supports-color": { - "version": "7.2.0", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } } } }, "jest-watcher": { - "version": "29.0.2", + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.5.0.tgz", + "integrity": "sha512-KmTojKcapuqYrKDpRwfqcQ3zjMlwu27SYext9pt4GlF5FUgB+7XE1mcCnSm6a4uUpFyQIkb6ZhzZvHl+jiBCiA==", "dev": true, "requires": { - "@jest/test-result": "^29.0.2", - "@jest/types": "^29.0.2", + "@jest/test-result": "^29.5.0", + "@jest/types": "^29.5.0", "@types/node": "*", "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", - "emittery": "^0.10.2", - "jest-util": "^29.0.2", + "emittery": "^0.13.1", + "jest-util": "^29.5.0", "string-length": "^4.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "dev": true - }, - "jest-util": { - "version": "29.0.2", - "dev": true, - "requires": { - "@jest/types": "^29.0.2", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - } - }, - "supports-color": { - "version": "7.2.0", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } } }, "jest-worker": { - "version": "27.5.1", + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.5.0.tgz", + "integrity": "sha512-NcrQnevGoSp4b5kg+akIpthoAFHxPBcb5P6mYPY0fUNT+sSvmtu6jlkEle3anczUKIKEbMxFimk9oTP/tpIPgA==", "dev": true, "requires": { "@types/node": "*", + "jest-util": "^29.5.0", "merge-stream": "^2.0.0", "supports-color": "^8.0.0" }, "dependencies": { - "has-flag": { - "version": "4.0.0", - "dev": true - }, "supports-color": { "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -18771,25 +17060,39 @@ } } }, + "js-sdsl": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.4.0.tgz", + "integrity": "sha512-FfVSdx6pJ41Oa+CF7RDaFmTnCaFhua+SNYQX74riGOpl96x+2jQCqEfQ2bnXu/5DPCqlRuiqyvTJM0Qjz26IVg==", + "dev": true + }, "js-tokens": { - "version": "4.0.0" + "version": "4.0.0", + "dev": true }, "js-yaml": { "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "requires": { "argparse": "^2.0.1" }, "dependencies": { "argparse": { - "version": "2.0.1" + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" } } }, "jsep": { - "version": "1.3.0" + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.3.8.tgz", + "integrity": "sha512-qofGylTGgYj9gZFsHuyWAN4jr35eJ66qJCK4eKDnldohuUoQFbU3iZn2zjvEbd9wOAhP9Wx5DsAAduTyE1PSWQ==" }, "jsesc": { - "version": "2.5.2" + "version": "2.5.2", + "dev": true }, "json-parse-even-better-errors": { "version": "2.3.1", @@ -18831,35 +17134,6 @@ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, - "json-stable-stringify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz", - "integrity": "sha512-nKtD/Qxm7tWdZqJoldEC7fF0S41v0mWbeaXG3637stOWfyGxTgWTYE2wtfKmjzpvxv2MA2xzxsXOIiwUpkX6Qw==", - "dev": true, - "requires": { - "ajv": "^5.0.0" - }, - "dependencies": { - "ajv": { - "version": "5.5.2", - "requires": { - "co": "^4.6.0", - "fast-deep-equal": "^1.0.0", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.3.0" - } - }, - "fast-deep-equal": { - "version": "1.1.0" - }, - "json-schema-traverse": { - "version": "0.3.1" - } - } - }, - "json-schema-traverse": { - "version": "0.4.1" - }, "json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", @@ -18877,12 +17151,6 @@ "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.2.1.tgz", "integrity": "sha512-o6/yDBYccGvTz1+QFevz6l6OBZ2+fMVu2JZ9CIhzsYRX4mjaK5IyX9eldUdCmga16zlgQxyrj5pt9kzuj2C02w==" }, - "jsonify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", - "integrity": "sha512-trvBk1ki43VZptdBI5rIlG4YOzyeH/WefQt5rj1grasPn4iiZWKet8nkgc4GlsAylaztn0qZfUYOiTsASJFdNA==", - "dev": true - }, "jsonparse": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", @@ -18997,12 +17265,6 @@ "repeat-string": "^1.5.2" } }, - "loader-runner": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", - "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", - "dev": true - }, "loader-runner": { "version": "4.3.0", "dev": true @@ -19148,9 +17410,12 @@ }, "math-random": { "version": "1.0.4", - "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.4.tgz", - "integrity": "sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A==", - "dev": true + "dev": true, + "requires": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } }, "md5.js": { "version": "1.3.5", @@ -19201,14 +17466,10 @@ }, "mime-db": { "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "dev": true }, "mime-types": { "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dev": true, "requires": { "mime-db": "1.52.0" @@ -19218,7 +17479,7 @@ "version": "2.1.0", "dev": true }, - "min-indent": { + "minimalistic-assert": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", @@ -19319,7 +17580,8 @@ "dev": true }, "ms": { - "version": "2.1.2" + "version": "2.1.2", + "dev": true }, "natural-compare": { "version": "1.4.0", @@ -19395,7 +17657,18 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", + "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", + "dev": true + } + } }, "object-inspect": { "version": "1.12.3", @@ -19463,7 +17736,12 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", - "dev": true + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1" + } } } }, @@ -19626,6 +17904,8 @@ }, "path-parse": { "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, "path-platform": { @@ -19665,9 +17945,6 @@ "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", "dev": true }, - "picocolors": { - "version": "1.0.0" - }, "picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", @@ -19732,8 +18009,6 @@ }, "prettier-linter-helpers": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", "dev": true, "requires": { "fast-diff": "^1.1.2" @@ -19741,8 +18016,6 @@ }, "pretty-format": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", - "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", "dev": true, "requires": { "ansi-regex": "^5.0.1", @@ -19752,8 +18025,6 @@ "dependencies": { "ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true } } @@ -19764,30 +18035,10 @@ "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", "dev": true }, - "prettier-linter-helpers": { - "version": "1.0.0", - "dev": true, - "requires": { - "fast-diff": "^1.1.2" - } - }, - "pretty-format": { - "version": "27.5.1", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1", - "ansi-styles": "^5.0.0", - "react-is": "^17.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "dev": true - } - } - }, "process-nextick-args": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, "progress": { @@ -19806,29 +18057,15 @@ }, "proxy-from-env": { "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", "dev": true }, "public-encrypt": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "parse-asn1": "^5.0.0", - "randombytes": "^2.0.1", - "safe-buffer": "^5.1.2" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - } - } + "dev": true }, "pump": { "version": "3.0.0", @@ -19883,12 +18120,12 @@ }, "queue-microtask": { "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", "dev": true }, "ramldt2jsonschema": { "version": "1.2.3", - "resolved": "https://registry.npmjs.org/ramldt2jsonschema/-/ramldt2jsonschema-1.2.3.tgz", - "integrity": "sha512-+wLDAV2NNv9NkfEUOYStaDu/6RYgYXeC1zLtXE+dMU/jDfjpN4iJnBGycDwFTFaIQGosOQhxph7fEX6Mpwxdug==", "requires": { "commander": "^5.0.0", "js-yaml": "^3.14.0", @@ -19903,8 +18140,6 @@ }, "js-yaml": { "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -19950,8 +18185,6 @@ }, "react-is": { "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", "dev": true }, "read-only-stream": { @@ -19993,6 +18226,13 @@ } } }, + "rechoir": { + "version": "0.7.1", + "dev": true, + "requires": { + "resolve": "^1.9.0" + } + }, "regenerator-runtime": { "version": "0.13.11", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", @@ -20001,20 +18241,20 @@ }, "regexp-tree": { "version": "0.1.24", - "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.24.tgz", - "integrity": "sha512-s2aEVuLhvnVJW6s/iPgEGK6R+/xngd2jNQ+xy4bXNDKxZKJH6jpPHY6kVeVv1IeLCHgswRj+Kl3ELaDjG6V1iw==", "dev": true }, "regexp.prototype.flags": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", - "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", + "version": "1.4.3", "requires": { "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "functions-have-names": "^1.2.3" + "define-properties": "^1.1.3", + "functions-have-names": "^1.2.2" } }, + "regexpp": { + "version": "3.2.0", + "dev": true + }, "remarkable": { "version": "1.7.4", "dev": true, @@ -20045,15 +18285,11 @@ } }, "repeat-element": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", - "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", + "version": "1.1.3", "dev": true }, "repeat-string": { "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", "dev": true }, "replace-requires": { @@ -20088,47 +18324,31 @@ }, "require-directory": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true }, "require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==" + "version": "2.0.2" }, "resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", + "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", "dev": true, "requires": { - "is-core-module": "^2.9.0", + "is-core-module": "^2.11.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" } }, "resolve-cwd": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, "requires": { "resolve-from": "^5.0.0" - }, - "dependencies": { - "resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true - } } }, "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "version": "5.0.0", "dev": true }, "resolve.exports": { @@ -20148,6 +18368,16 @@ "glob": "^7.1.3" } }, + "ripemd160": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", + "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", + "dev": true, + "requires": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1" + } + }, "run-parallel": { "version": "1.2.0", "dev": true, @@ -20245,8 +18475,10 @@ "to-object-path": "^0.3.0" } }, - "shallow-clone": { - "version": "3.0.1", + "sha.js": { + "version": "2.4.11", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", + "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", "dev": true, "requires": { "inherits": "^2.0.1", @@ -20274,20 +18506,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz", "integrity": "sha512-UTzHm/+AzKfO9RgPgRpDIuMSNie1ubXRaljjlhFMNGYoG7z+rm9AHLPMf70R7887xboDH9Q+5YQbWKObFHEAtw==", - "dev": true, - "requires": { - "json-stable-stringify": "~0.0.0", - "sha.js": "~2.4.4" - } - }, - "shasum-object": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shasum-object/-/shasum-object-1.0.0.tgz", - "integrity": "sha512-Iqo5rp/3xVi6M4YheapzZhhGPVs0yZwHj7wvwQ1B9z8H6zk+FEnI7y3Teq7qwnekfEhu8WmG2z0z4iWZaxLWVg==", - "dev": true, - "requires": { - "fast-safe-stringify": "^2.0.7" - } + "dev": true }, "shebang-command": { "version": "2.0.0", @@ -20375,21 +18594,15 @@ "dependencies": { "source-map": { "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true } } }, "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" + "version": "1.0.3" }, "stack-utils": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "version": "2.0.5", "dev": true, "requires": { "escape-string-regexp": "^2.0.0" @@ -20455,27 +18668,13 @@ } } }, - "sprintf-js": { - "version": "1.0.3" - }, - "stack-utils": { - "version": "2.0.5", - "dev": true, - "requires": { - "escape-string-regexp": "^2.0.0" - }, - "dependencies": { - "escape-string-regexp": { - "version": "2.0.0", - "dev": true - } - } - }, - "stream-combiner2": { - "version": "1.1.1", + "stream-splicer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/stream-splicer/-/stream-splicer-2.0.1.tgz", + "integrity": "sha512-Xizh4/NPuYSyAXyT7g8IvdJ9HJpxIGL9PjyhtywCZvvP0OPIdqyrr4dMikeuvY8xahpdKEBlBTySe583totajg==", "dev": true, "requires": { - "duplexer2": "~0.1.0", + "inherits": "^2.0.1", "readable-stream": "^2.0.2" } }, @@ -20581,8 +18780,6 @@ }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -20600,9 +18797,14 @@ "integrity": "sha512-Bh05dSOnJBf3miNMqpsormfNtfidA/GxQVakhtn0T4DECWKeXQRQUceYjJ+OxYiiLdGe4Jo9iFV8wICFapFeIA==", "dev": true }, - "supports-preserve-symlinks-flag": { - "version": "1.0.0", - "dev": true + "syntax-error": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", + "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", + "dev": true, + "requires": { + "acorn-node": "^1.2.0" + } }, "tapable": { "version": "2.2.1", @@ -20771,7 +18973,9 @@ "integrity": "sha512-PIxwAupJZiYU4JmVZYwXp9FKsHMXb5h0ZEFyuXTAn8WLHOlcij+FEcbrvDsom1o5dr1YggEtFbECvGCW2sT53Q==", "dev": true, "requires": { - "process": "~0.11.0" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" } }, "tmpl": { @@ -20814,10 +19018,6 @@ "version": "2.3.6", "dev": true }, - "totalist": { - "version": "1.1.0", - "dev": true - }, "totalist": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", @@ -20835,10 +19035,7 @@ "integrity": "sha512-BUZAqCslm5pVXExA8PfXcvp7exsUNqRcNzx+KXj3Bv0oMROqnAt4bvs9U8Z2wVPa40NvLWJ/oswN0kreNFxBUg==", "dev": true, "requires": { - "chalk": "^4.1.0", - "enhanced-resolve": "^5.0.0", - "micromatch": "^4.0.0", - "semver": "^7.3.4" + "readable-stream": "~1.1.9" }, "dependencies": { "isarray": { @@ -20853,7 +19050,10 @@ "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", "dev": true, "requires": { - "color-convert": "^2.0.1" + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" } }, "string_decoder": { @@ -20953,8 +19153,6 @@ }, "tsutils": { "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", "dev": true, "requires": { "tslib": "^1.8.1" @@ -20962,8 +19160,6 @@ "dependencies": { "tslib": { "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true } } @@ -21013,12 +19209,6 @@ "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "dev": true }, - "umd": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/umd/-/umd-3.0.3.tgz", - "integrity": "sha512-4IcGSufhFshvLNcMCV80UnQVlZ5pMOC8mvNPForqwA4+lzYQuetTESLDQkeLmihq8bRcnpbQa48Wb8Lh16/xow==", - "dev": true - }, "unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", @@ -21052,9 +19242,9 @@ } }, "update-browserslist-db": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.9.tgz", - "integrity": "sha512-/xsqn21EGVdXI3EXSum1Yckj3ZVZugqyOZQ/CxYPBD/R+ko9NSUScf8tFF4dOKY+2pvSSJA/S+5B8s4Zr4kyvg==", + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", + "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", "dev": true, "requires": { "escalade": "^3.1.1", @@ -21103,18 +19293,7 @@ "version": "0.10.4", "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", - "dev": true, - "requires": { - "inherits": "2.0.3" - }, - "dependencies": { - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", - "dev": true - } - } + "dev": true }, "util-deprecate": { "version": "1.0.2", @@ -21257,12 +19436,6 @@ "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", "dev": true, "requires": {} - }, - "events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "dev": true } } }, @@ -21298,14 +19471,10 @@ }, "commander": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", "dev": true }, "ws": { "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", "dev": true, "requires": {} } @@ -21342,15 +19511,6 @@ "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", "dev": true - }, - "rechoir": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", - "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", - "dev": true, - "requires": { - "resolve": "^1.9.0" - } } } }, @@ -21385,11 +19545,7 @@ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, "requires": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" + "isexe": "^2.0.0" } }, "which-boxed-primitive": { @@ -21437,6 +19593,8 @@ }, "word-wrap": { "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", "dev": true }, "wrap-ansi": { diff --git a/src/custom-operations/apply-traits.ts b/src/custom-operations/apply-traits.ts index 7ca2730d6..a57e3dcf7 100644 --- a/src/custom-operations/apply-traits.ts +++ b/src/custom-operations/apply-traits.ts @@ -2,7 +2,7 @@ import { JSONPath } from 'jsonpath-plus'; import { mergePatch } from '../utils'; -import type { v2 } from '../spec-types'; +import type { v2, v3 } from '../spec-types'; const v2TraitPaths = [ // operations @@ -32,7 +32,7 @@ const v3TraitPaths = [ '$.components.messages.*', ]; -export function applyTraitsV3(asyncapi: v2.AsyncAPIObject) { // TODO: Change type when we will have implemented types for v3 +export function applyTraitsV3(asyncapi: v3.AsyncAPIObject) { applyAllTraits(asyncapi, v3TraitPaths); } diff --git a/src/custom-operations/index.ts b/src/custom-operations/index.ts index 521bbc50a..2ff6501ac 100644 --- a/src/custom-operations/index.ts +++ b/src/custom-operations/index.ts @@ -8,6 +8,7 @@ import type { Parser } from '../parser'; import type { ParseOptions } from '../parse'; import type { AsyncAPIDocumentInterface } from '../models'; import type { DetailedAsyncAPI } from '../types'; +import { v2 } from 'spec-types'; export async function customOperations(parser: Parser, document: AsyncAPIDocumentInterface, detailed: DetailedAsyncAPI, inventory: RulesetFunctionContext['documentInventory'], options: ParseOptions): Promise { switch (detailed.semver.major) { @@ -18,7 +19,7 @@ export async function customOperations(parser: Parser, document: AsyncAPIDocumen async function operationsV2(parser: Parser, document: AsyncAPIDocumentInterface, detailed: DetailedAsyncAPI, inventory: RulesetFunctionContext['documentInventory'], options: ParseOptions): Promise { if (options.applyTraits) { - applyTraitsV2(detailed.parsed); + applyTraitsV2(detailed.parsed as v2.AsyncAPIObject); } if (options.parseSchemas) { await parseSchemasV2(parser, detailed); diff --git a/src/document.ts b/src/document.ts index cc3cbf36a..16f00f813 100644 --- a/src/document.ts +++ b/src/document.ts @@ -11,11 +11,12 @@ import { import type { AsyncAPIDocumentInterface } from './models'; import type { OldAsyncAPIDocument } from './old-api'; import type { DetailedAsyncAPI, AsyncAPIObject } from './types'; +import { v2 } from 'spec-types'; export function createAsyncAPIDocument(asyncapi: DetailedAsyncAPI): AsyncAPIDocumentInterface { switch (asyncapi.semver.major) { case 2: - return new AsyncAPIDocumentV2(asyncapi.parsed, { asyncapi, pointer: '/' }); + return new AsyncAPIDocumentV2(asyncapi.parsed as v2.AsyncAPIObject, { asyncapi, pointer: '/' }); // case 3: // return new AsyncAPIDocumentV3(asyncapi.parsed, { asyncapi, pointer: '/' }); default: diff --git a/src/models/asyncapi.ts b/src/models/asyncapi.ts index d047d5e0d..4db88b30c 100644 --- a/src/models/asyncapi.ts +++ b/src/models/asyncapi.ts @@ -9,9 +9,9 @@ import type { SchemasInterface } from './schemas'; import type { SecuritySchemesInterface } from './security-schemes'; import type { ServersInterface } from './servers'; -import type { v2 } from '../spec-types'; +import type { v2, v3 } from '../spec-types'; -export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInterface { +export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInterface { version(): string; defaultContentType(): string | undefined; hasDefaultContentType(): boolean; diff --git a/src/models/channel.ts b/src/models/channel.ts index f9652600d..57f07ff35 100644 --- a/src/models/channel.ts +++ b/src/models/channel.ts @@ -7,7 +7,7 @@ import type { ServersInterface } from './servers'; export interface ChannelInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface { id(): string; - address(): string; + address(): string | null | undefined; servers(): ServersInterface; operations(): OperationsInterface; messages(): MessagesInterface; diff --git a/src/models/external-documentations.ts b/src/models/external-documentations.ts index e9f14b451..0b713f34f 100644 --- a/src/models/external-documentations.ts +++ b/src/models/external-documentations.ts @@ -1,6 +1,6 @@ import { Collection } from './collection'; -import type { ExternalDocumentationInterface } from './external-documentation'; +import type { ExternalDocumentationInterface } from './external-docs'; export type ExternalDocumentationsInterface = Collection @@ -8,4 +8,4 @@ export class ExternalDocumentations extends Collection externalDocs.meta('id' as any) === id); } -} \ No newline at end of file +} diff --git a/src/models/mixins.ts b/src/models/mixins.ts index 7cd305208..8ab9d3d12 100644 --- a/src/models/mixins.ts +++ b/src/models/mixins.ts @@ -7,6 +7,8 @@ export interface BindingsMixinInterface { bindings(): BindingsInterface; } +export interface CoreMixinInterface extends BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, SummaryMixinInterface, TagsMixinInterface, TitleMixinInterface {} + export interface DescriptionMixinInterface { hasDescription(): boolean; description(): string | undefined; @@ -21,6 +23,16 @@ export interface ExternalDocumentationMixinInterface { externalDocs(): ExternalDocumentationInterface | undefined; } +export interface SummaryMixinInterface { + hasSummary(): boolean; + summary(): string | undefined; +} + export interface TagsMixinInterface { tags(): TagsInterface; -} \ No newline at end of file +} + +export interface TitleMixinInterface { + hasTitle(): boolean; + title(): string | undefined; +} diff --git a/src/models/operation-replies.ts b/src/models/operation-replies.ts index a90768e08..83f3a9bb5 100644 --- a/src/models/operation-replies.ts +++ b/src/models/operation-replies.ts @@ -3,8 +3,3 @@ import type { OperationReplyInterface } from './operation-reply'; export type OperationRepliesInterface = Collection -export class OperationReplies extends Collection implements OperationRepliesInterface { - override get(id: string): OperationReplyInterface | undefined { - return this.collections.find(reply => reply.id() === id); - } -} diff --git a/src/models/operation-reply-addresses.ts b/src/models/operation-reply-addresses.ts index 34e9bf771..6e6a00de4 100644 --- a/src/models/operation-reply-addresses.ts +++ b/src/models/operation-reply-addresses.ts @@ -2,9 +2,3 @@ import { Collection } from './collection'; import type { OperationReplyAddressInterface } from './operation-reply-address'; export type OperationReplyAddressesInterface = Collection - -export class OperationReplyAddresses extends Collection implements OperationReplyAddressesInterface { - override get(id: string): OperationReplyAddressInterface | undefined { - return this.collections.find(reply => reply.id() === id); - } -} diff --git a/src/models/operation-trait.ts b/src/models/operation-trait.ts index 821af8457..991ca7815 100644 --- a/src/models/operation-trait.ts +++ b/src/models/operation-trait.ts @@ -3,7 +3,7 @@ import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixin import { SecurityRequirements } from './v2/security-requirements'; export interface OperationTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { - id(): string; + id(): string | undefined; hasOperationId(): boolean; operationId(): string | undefined; hasSummary(): boolean; diff --git a/src/models/server.ts b/src/models/server.ts index 9509d0f45..52e2ece50 100644 --- a/src/models/server.ts +++ b/src/models/server.ts @@ -9,6 +9,9 @@ import type { SecurityRequirementsInterface } from './security-requirements'; export interface ServerInterface extends BaseModel, DescriptionMixinInterface, BindingsMixinInterface, ExtensionsMixinInterface, TagsMixinInterface { id(): string url(): string; + host(): string; + hasPathname(): boolean; + pathname(): string | undefined; protocol(): string; protocolVersion(): string | undefined; hasProtocolVersion(): boolean; diff --git a/src/models/v2/external-documentation.ts b/src/models/v2/external-documentation.ts deleted file mode 100644 index 1e0423949..000000000 --- a/src/models/v2/external-documentation.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { BaseModel } from '../base'; - -import { hasDescription, description, extensions } from './mixins'; - -import type { ExternalDocumentationInterface } from '../external-documentation'; -import type { ExtensionsInterface } from '../extensions'; - -import type { v2 } from '../../spec-types'; - -export class ExternalDocumentation extends BaseModel implements ExternalDocumentationInterface { - id(): string | undefined { - return; - } - - url(): string { - return this._json.url; - } - - hasDescription(): boolean { - return hasDescription(this); - } - - description(): string | undefined { - return description(this); - } - - extensions(): ExtensionsInterface { - return extensions(this); - } -} \ No newline at end of file diff --git a/src/models/v2/info.ts b/src/models/v2/info.ts index 5ca6dda00..a38cdfdce 100644 --- a/src/models/v2/info.ts +++ b/src/models/v2/info.ts @@ -68,17 +68,20 @@ export class Info extends BaseModel implements InfoInterface { } hasExternalDocs(): boolean { - return Object.keys(this._meta.asyncapi.parsed.externalDocs || {}).length > 0; + const asyncapiV2 = this._meta.asyncapi.parsed as v2.AsyncAPIObject; + return Object.keys(asyncapiV2.externalDocs || {}).length > 0; } externalDocs(): ExternalDocumentationInterface | undefined { if (this.hasExternalDocs()) { - return this.createModel(ExternalDocumentation, this._meta.asyncapi.parsed.externalDocs as v2.ExternalDocumentationObject, { pointer: '/externalDocs' }); + const asyncapiV2 = this._meta.asyncapi.parsed as v2.AsyncAPIObject; + return this.createModel(ExternalDocumentation, asyncapiV2.externalDocs as v2.ExternalDocumentationObject, { pointer: '/externalDocs' }); } } tags(): TagsInterface { - const tags = this._meta.asyncapi.parsed.tags || []; + const asyncapiV2 = this._meta.asyncapi.parsed as v2.AsyncAPIObject; + const tags = asyncapiV2.tags || []; return new Tags(tags.map((tag: any, idx: number) => this.createModel(Tag, tag, { pointer: `/tags/${idx}` }))); } diff --git a/src/models/v2/server.ts b/src/models/v2/server.ts index e4d49209b..10521fad2 100644 --- a/src/models/v2/server.ts +++ b/src/models/v2/server.ts @@ -35,6 +35,20 @@ export class Server extends BaseModel implement return this._json.url; } + host(): string { + const url = new URL(this.url()); + return url.host; + } + + hasPathname(): boolean { + return !!this.pathname(); + } + + pathname(): string | undefined { + const url = new URL(this.url()); + return url.pathname; + } + protocol(): string { return this._json.protocol; } diff --git a/src/models/v3/asyncapi.ts b/src/models/v3/asyncapi.ts index f26a22e98..4e3dad044 100644 --- a/src/models/v3/asyncapi.ts +++ b/src/models/v3/asyncapi.ts @@ -1,7 +1,164 @@ import { BaseModel } from '../base'; +import { Info } from './info'; +import { Servers } from './servers'; +import { Server } from './server'; +import { Channels } from './channels'; +import { Channel } from './channel'; +import { Operations } from './operations'; +import { Operation } from './operation'; +import { Messages } from './messages'; +import { SecuritySchemes } from './security-schemes'; +import { SecurityScheme } from './security-scheme'; +import { Components } from './components'; +import { Schemas } from './schemas'; -export class AsyncAPIDocument extends BaseModel { +import { extensions } from './mixins'; +import { tilde } from '../../utils'; +import { SchemaTypesToIterate, traverseAsyncApiDocument } from '../../iterator'; + +import type { AsyncAPIDocumentInterface } from '../asyncapi'; +import type { InfoInterface } from '../info'; +import type { ServersInterface } from '../servers'; +import type { ChannelsInterface } from '../channels'; +import type { OperationsInterface } from '../operations'; +import type { MessagesInterface } from '../messages'; +import type { MessageInterface } from '../message'; +import type { ComponentsInterface } from '../components'; +import type { SecuritySchemesInterface } from '../security-schemes'; +import type { ExtensionsInterface } from '../extensions'; +import type { SchemaInterface } from 'models/schema'; +import type { SchemasInterface } from 'models/schemas'; +import type { v3 } from '../../spec-types'; +import { OperationInterface } from 'models/operation'; +import { ChannelInterface } from 'models/channel'; +import { ServerInterface } from 'models/server'; + +export class AsyncAPIDocument extends BaseModel implements AsyncAPIDocumentInterface { version(): string { return this._json.asyncapi; } + + defaultContentType(): string | undefined { + return this._json.defaultContentType; + } + + hasDefaultContentType(): boolean { + return !!this._json.defaultContentType; + } + + info(): InfoInterface { + return this.createModel(Info, this._json.info, { pointer: '/info' }); + } + + servers(): ServersInterface { + return new Servers( + Object.entries(this._json.servers || {}).map(([serverName, server]) => + this.createModel(Server, server as v3.ServerObject, { id: serverName, pointer: `/servers/${tilde(serverName)}` }) + ) + ); + } + + channels(): ChannelsInterface { + return new Channels( + Object.entries(this._json.channels || {}).map(([channelId, channel]) => + this.createModel(Channel, channel as v3.ChannelObject, { id: channelId, pointer: `/channels/${tilde(channelId)}` }) + ) + ); + } + + operations(): OperationsInterface { + return new Operations( + Object.entries(this._json.operations || {}).map(([operationId, operation]) => + this.createModel(Operation, operation as v3.OperationObject, { id: operationId, pointer: `/operations/${tilde(operationId)}` }) + ) + ); + } + + messages(): MessagesInterface { + const messages: MessageInterface[] = []; + const messagesData: any[] = []; + this.channels().forEach(channel => { + channel.messages().forEach(message => { + const messageData = message.json(); + if (!messagesData.includes(messageData)) { + messagesData.push(messageData); + messages.push(message); + } + }); + }); + return new Messages(messages); + } + + schemas() { + return null as any; + } + + securitySchemes(): SecuritySchemesInterface { + return new SecuritySchemes( + Object.entries(this._json.components?.securitySchemes || {}).map(([securitySchemeName, securityScheme]) => + this.createModel(SecurityScheme, securityScheme as v3.SecuritySchemeObject, { id: securitySchemeName, pointer: `/components/securitySchemes/${securitySchemeName}` }) + ) + ); + } + + components(): ComponentsInterface { + return this.createModel(Components, this._json.components || {}, { pointer: '/components' }); + } + + allServers(): ServersInterface { + const servers: ServerInterface[] = this.servers(); + this.components().servers().forEach(server => + !servers.some(s => s.json() === server.json()) && servers.push(server) + ); + return new Servers(servers); + } + + allChannels(): ChannelsInterface { + const channels: ChannelInterface[] = this.channels(); + this.components().channels().forEach(channel => + !channels.some(c => c.json() === channel.json()) && channels.push(channel) + ); + return new Channels(channels); + } + + allOperations(): OperationsInterface { + const operations: OperationInterface[] = []; + this.allChannels().forEach(channel => operations.push(...channel.operations())); + return new Operations(operations); + } + + allMessages(): MessagesInterface { + const messages: MessageInterface[] = []; + this.allOperations().forEach(operation => operation.messages().forEach(message => ( + !messages.some(m => m.json() === message.json()) && messages.push(message) + ))); + this.components().messages().forEach(message => ( + !messages.some(m => m.json() === message.json()) && messages.push(message) + )); + return new Messages(messages); + } + + allSchemas(): SchemasInterface { + return this.__schemas(true); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } + + private __schemas(withComponents: boolean) { + const schemas: Set = new Set(); + function callback(schema: SchemaInterface) { + if (!schemas.has(schema.json())) { + schemas.add(schema); + } + } + + let toIterate = Object.values(SchemaTypesToIterate); + if (!withComponents) { + toIterate = toIterate.filter(s => s !== SchemaTypesToIterate.Components); + } + traverseAsyncApiDocument(this, callback, toIterate); + return new Schemas(Array.from(schemas)); + } } diff --git a/src/models/v3/bindings.ts b/src/models/v3/bindings.ts index bce2fc4ba..c17208d60 100644 --- a/src/models/v3/bindings.ts +++ b/src/models/v3/bindings.ts @@ -1,5 +1,5 @@ import { Collection } from '../collection'; -import { Extensions } from '../extensions'; +import { Extensions } from './extensions'; import { Extension } from './extension'; import { createModel } from '../utils'; diff --git a/src/models/v3/channel-parameters.ts b/src/models/v3/channel-parameters.ts new file mode 100644 index 000000000..71d7cf10e --- /dev/null +++ b/src/models/v3/channel-parameters.ts @@ -0,0 +1,10 @@ +import { Collection } from '../collection'; + +import type { ChannelParametersInterface } from '../channel-parameters'; +import type { ChannelParameterInterface } from '../channel-parameter'; + +export class ChannelParameters extends Collection implements ChannelParametersInterface { + override get(id: string): ChannelParameterInterface | undefined { + return this.collections.find(parameter => parameter.id() === id); + } +} diff --git a/src/models/v3/channel.ts b/src/models/v3/channel.ts index 394791177..0734d2b35 100644 --- a/src/models/v3/channel.ts +++ b/src/models/v3/channel.ts @@ -1,10 +1,10 @@ -import { ChannelParameters } from '../channel-parameters'; +import { ChannelParameters } from './channel-parameters'; import { ChannelParameter } from './channel-parameter'; -import { Messages } from '../messages'; +import { Messages } from './messages'; import { Message } from './message'; -import { Operations } from '../operations'; +import { Operations } from './operations'; import { Operation } from './operation'; -import { Servers } from '../servers'; +import { Servers } from './servers'; import { Server } from './server'; import { CoreModel } from './mixins'; diff --git a/src/models/v3/channels.ts b/src/models/v3/channels.ts new file mode 100644 index 000000000..2f285f51e --- /dev/null +++ b/src/models/v3/channels.ts @@ -0,0 +1,18 @@ +import { Collection } from '../collection'; + +import type { ChannelsInterface } from '../channels'; +import type { ChannelInterface } from '../channel'; + +export class Channels extends Collection implements ChannelsInterface { + override get(id: string): ChannelInterface | undefined { + return this.collections.find(channel => channel.id() === id); + } + + filterBySend(): ChannelInterface[] { + return this.filterBy(channel => channel.operations().filterBySend().length > 0); + } + + filterByReceive(): ChannelInterface[] { + return this.filterBy(channel => channel.operations().filterByReceive().length > 0); + } +} diff --git a/src/models/v3/components.ts b/src/models/v3/components.ts index 1415b8fe3..9931b0b70 100644 --- a/src/models/v3/components.ts +++ b/src/models/v3/components.ts @@ -15,24 +15,24 @@ import { SecurityScheme } from './security-scheme'; import { Server } from './server'; import { ServerVariable } from './server-variable'; import { extensions } from './mixins'; -import { Servers } from '../servers'; -import { Channels } from '../channels'; -import { Messages } from '../messages'; -import { Schemas } from '../schemas'; -import { ChannelParameters } from '../channel-parameters'; -import { ServerVariables } from '../server-variables'; -import { OperationTraits } from '../operation-traits'; -import { MessageTraits } from '../message-traits'; -import { OperationReplies } from '../operation-replies'; -import { OperationReplyAddresses } from '../operation-reply-addresses'; -import { SecuritySchemes } from '../security-schemes'; -import { CorrelationIds } from '../correlation-ids'; -import { Operations } from '../operations'; +import { Servers } from './servers'; +import { Channels } from './channels'; +import { Messages } from './messages'; +import { Schemas } from './schemas'; +import { ChannelParameters } from './channel-parameters'; +import { ServerVariables } from './server-variables'; +import { OperationTraits } from './operation-traits'; +import { MessageTraits } from './message-traits'; +import { OperationReplies } from './operation-replies'; +import { OperationReplyAddresses } from './operation-reply-addresses'; +import { SecuritySchemes } from './security-schemes'; +import { CorrelationIds } from './correlation-ids'; +import { Operations } from './operations'; import { Operation } from './operation'; import { Message } from './message'; import { ExternalDocumentations } from '../external-documentations'; -import { ExternalDocumentation } from './external-documentation'; -import { Tags } from '../tags'; +import { ExternalDocumentation } from './external-docs'; +import { Tags } from './tags'; import { Tag } from './tag'; import { tilde } from '../../utils'; diff --git a/src/models/v3/correlation-ids.ts b/src/models/v3/correlation-ids.ts new file mode 100644 index 000000000..d0a921171 --- /dev/null +++ b/src/models/v3/correlation-ids.ts @@ -0,0 +1,10 @@ +import { Collection } from '../collection'; + +import type { CorrelationIdsInterface } from '../correlation-ids'; +import type { CorrelationIdInterface } from '../correlation-id'; + +export class CorrelationIds extends Collection implements CorrelationIdsInterface { + override get(id: string): CorrelationIdInterface | undefined { + return this.collections.find(correlationId => correlationId.meta('id' as any) === id); + } +} diff --git a/src/models/v3/extensions.ts b/src/models/v3/extensions.ts new file mode 100644 index 000000000..e529b35d3 --- /dev/null +++ b/src/models/v3/extensions.ts @@ -0,0 +1,11 @@ +import { Collection } from '../collection'; + +import type { ExtensionsInterface } from '../extensions'; +import type { ExtensionInterface } from '../extension'; + +export class Extensions extends Collection implements ExtensionsInterface { + override get(id: string): ExtensionInterface | undefined { + id = id.startsWith('x-') ? id : `x-${id}`; + return this.collections.find(ext => ext.id() === id); + } +} diff --git a/src/models/v3/external-documentation.ts b/src/models/v3/external-docs.ts similarity index 97% rename from src/models/v3/external-documentation.ts rename to src/models/v3/external-docs.ts index f98f1296e..018cf22c4 100644 --- a/src/models/v3/external-documentation.ts +++ b/src/models/v3/external-docs.ts @@ -2,7 +2,7 @@ import { BaseModel } from '../base'; import { hasDescription, description, extensions } from './mixins'; -import type { ExternalDocumentationInterface } from '../external-documentation'; +import type { ExternalDocumentationInterface } from '../external-docs'; import type { ExtensionsInterface } from '../extensions'; import type { v3 } from '../../spec-types'; @@ -27,4 +27,4 @@ export class ExternalDocumentation extends BaseModel implements InfoInterface { extensions(): ExtensionsInterface { return extensions(this); } -} \ No newline at end of file +} diff --git a/src/models/v3/message-examples.ts b/src/models/v3/message-examples.ts new file mode 100644 index 000000000..fa07cfa2f --- /dev/null +++ b/src/models/v3/message-examples.ts @@ -0,0 +1,10 @@ +import { Collection } from '../collection'; + +import type { MessageExamplesInterface } from '../message-examples'; +import type { MessageExampleInterface } from '../message-example'; + +export class MessageExamples extends Collection implements MessageExamplesInterface { + override get(name: string): MessageExampleInterface | undefined { + return this.collections.find(example => example.name() === name); + } +} diff --git a/src/models/v3/message-trait.ts b/src/models/v3/message-trait.ts index 5a261e77d..d4ea2445c 100644 --- a/src/models/v3/message-trait.ts +++ b/src/models/v3/message-trait.ts @@ -1,5 +1,5 @@ import { CorrelationId } from './correlation-id'; -import { MessageExamples } from '../message-examples'; +import { MessageExamples } from './message-examples'; import { MessageExample } from './message-example'; import { Schema } from './schema'; diff --git a/src/models/v3/message-traits.ts b/src/models/v3/message-traits.ts new file mode 100644 index 000000000..3d8dadddb --- /dev/null +++ b/src/models/v3/message-traits.ts @@ -0,0 +1,10 @@ +import { Collection } from '../collection'; + +import type { MessageTraitsInterface } from '../message-traits'; +import type { MessageTraitInterface } from '../message-trait'; + +export class MessageTraits extends Collection implements MessageTraitsInterface { + override get(id: string): MessageTraitInterface | undefined { + return this.collections.find(trait => trait.id() === id); + } +} diff --git a/src/models/v3/message.ts b/src/models/v3/message.ts index 9ec639003..07fc5bf25 100644 --- a/src/models/v3/message.ts +++ b/src/models/v3/message.ts @@ -1,9 +1,9 @@ -import { Channels } from '../channels'; -import { Operations } from '../operations'; +import { Channels } from './channels'; +import { Operations } from './operations'; import { Operation } from './operation'; -import { MessageTraits } from '../message-traits'; +import { MessageTraits } from './message-traits'; import { MessageTrait } from './message-trait'; -import { Servers } from '../servers'; +import { Servers } from './servers'; import { Schema } from './schema'; import type { ChannelsInterface } from '../channels'; diff --git a/src/models/v3/messages.ts b/src/models/v3/messages.ts new file mode 100644 index 000000000..591c0d7ac --- /dev/null +++ b/src/models/v3/messages.ts @@ -0,0 +1,18 @@ +import { Collection } from '../collection'; + +import type { MessagesInterface } from '../messages'; +import type { MessageInterface } from '../message'; + +export class Messages extends Collection implements MessagesInterface { + override get(name: string): MessageInterface | undefined { + return this.collections.find(message => message.id() === name); + } + + filterBySend(): MessageInterface[] { + return this.filterBy(message => message.operations().filterBySend().length > 0); + } + + filterByReceive(): MessageInterface[] { + return this.filterBy(message => message.operations().filterByReceive().length > 0); + } +} diff --git a/src/models/v3/mixins.ts b/src/models/v3/mixins.ts index 974fc7416..9191b4008 100644 --- a/src/models/v3/mixins.ts +++ b/src/models/v3/mixins.ts @@ -1,10 +1,10 @@ import { BaseModel } from '../base'; import { Bindings } from './bindings'; import { Binding } from './binding'; -import { Extensions } from '../extensions'; +import { Extensions } from './extensions'; import { Extension } from './extension'; -import { ExternalDocumentation } from './external-documentation'; -import { Tags } from '../tags'; +import { ExternalDocumentation } from './external-docs'; +import { Tags } from './tags'; import { Tag } from './tag'; import { createModel } from '../utils'; @@ -13,7 +13,7 @@ import { EXTENSION_REGEX } from '../../constants'; import type { BindingsInterface } from '../bindings'; import type { ExtensionsInterface } from '../extensions'; import type { ExtensionInterface } from '../extension'; -import type { ExternalDocumentationInterface } from '../external-documentation'; +import type { ExternalDocumentationInterface } from '../external-docs'; import type { TagsInterface } from '../tags'; import type { v3 } from '../../spec-types'; diff --git a/src/models/v3/oauth-flow.ts b/src/models/v3/oauth-flow.ts index 6c168dff6..8f767a582 100644 --- a/src/models/v3/oauth-flow.ts +++ b/src/models/v3/oauth-flow.ts @@ -8,6 +8,10 @@ import type { OAuthFlowInterface } from '../oauth-flow'; import type { v3 } from '../../spec-types'; export class OAuthFlow extends BaseModel implements OAuthFlowInterface { + hasAuthorizationUrl(): boolean { + return !!this.json().authorizationUrl; + } + authorizationUrl(): string | undefined { return this.json().authorizationUrl; } @@ -24,6 +28,10 @@ export class OAuthFlow extends BaseModel im return this._json.availableScopes; } + hasTokenUrl(): boolean { + return !!this.json>().tokenUrl; + } + tokenUrl(): string | undefined { return this.json>().tokenUrl; } @@ -31,4 +39,4 @@ export class OAuthFlow extends BaseModel im extensions(): ExtensionsInterface { return extensions(this); } -} \ No newline at end of file +} diff --git a/src/models/v3/operation-replies.ts b/src/models/v3/operation-replies.ts new file mode 100644 index 000000000..f1b3e2892 --- /dev/null +++ b/src/models/v3/operation-replies.ts @@ -0,0 +1,10 @@ +import { Collection } from '../collection'; + +import type { OperationReplyInterface } from '../operation-reply'; +import type { OperationRepliesInterface } from '../operation-replies'; + +export class OperationReplies extends Collection implements OperationRepliesInterface { + override get(id: string): OperationReplyInterface | undefined { + return this.collections.find(reply => reply.id() === id); + } +} diff --git a/src/models/v3/operation-reply-addresses.ts b/src/models/v3/operation-reply-addresses.ts new file mode 100644 index 000000000..86f30288c --- /dev/null +++ b/src/models/v3/operation-reply-addresses.ts @@ -0,0 +1,10 @@ +import { Collection } from '../collection'; + +import type { OperationReplyAddressInterface } from '../operation-reply-address'; +import type { OperationReplyAddressesInterface } from '../operation-reply-addresses'; + +export class OperationReplyAddresses extends Collection implements OperationReplyAddressesInterface { + override get(id: string): OperationReplyAddressInterface | undefined { + return this.collections.find(reply => reply.id() === id); + } +} diff --git a/src/models/v3/operation-reply.ts b/src/models/v3/operation-reply.ts index 80cebad8b..9ba9d29da 100644 --- a/src/models/v3/operation-reply.ts +++ b/src/models/v3/operation-reply.ts @@ -1,7 +1,7 @@ import { BaseModel } from '../base'; import { Channel } from './channel'; import { Message } from './message'; -import { Messages } from '../messages'; +import { Messages } from './messages'; import { MessagesInterface } from 'models/messages'; import { OperationReplyAddress } from './operation-reply-address'; @@ -42,7 +42,7 @@ export class OperationReply extends BaseModel { - return this.createModel(Message, message, { id: messageName, pointer: this.jsonPath(`messages/${messageName}`) }); + return this.createModel(Message, message as v3.MessageObject, { id: messageName, pointer: this.jsonPath(`messages/${messageName}`) }); }) ); } diff --git a/src/models/v3/operation-trait.ts b/src/models/v3/operation-trait.ts index 46668a2bb..dcc7dff0b 100644 --- a/src/models/v3/operation-trait.ts +++ b/src/models/v3/operation-trait.ts @@ -1,5 +1,5 @@ import { SecurityScheme } from './security-scheme'; -import { SecurityRequirements } from '../security-requirements'; +import { SecurityRequirements } from './security-requirements'; import { SecurityRequirement } from './security-requirement'; import { CoreModel } from './mixins'; @@ -10,11 +10,15 @@ import type { v3 } from '../../spec-types'; export class OperationTrait extends CoreModel implements OperationTraitInterface { id(): string | undefined { - return this._meta.id; + return this.operationId() || this._meta.id; + } + + hasOperationId(): boolean { + return !!this._meta.id; } - hasId(): boolean { - return this.id() !== undefined; + operationId(): string | undefined { + return this._meta.id; } security(): SecurityRequirements[] { diff --git a/src/models/v3/operation-traits.ts b/src/models/v3/operation-traits.ts new file mode 100644 index 000000000..32cae7902 --- /dev/null +++ b/src/models/v3/operation-traits.ts @@ -0,0 +1,10 @@ +import { Collection } from '../collection'; + +import type { OperationTraitsInterface } from '../operation-traits'; +import type { OperationTraitInterface } from '../operation-trait'; + +export class OperationTraits extends Collection implements OperationTraitsInterface { + override get(id: string): OperationTraitInterface | undefined { + return this.collections.find(trait => trait.id() === id); + } +} diff --git a/src/models/v3/operation.ts b/src/models/v3/operation.ts index bc73fd869..e3e903254 100644 --- a/src/models/v3/operation.ts +++ b/src/models/v3/operation.ts @@ -1,11 +1,11 @@ -import { Messages } from '../messages'; +import { Messages } from './messages'; import { Message } from './message'; -import { Channels } from '../channels'; +import { Channels } from './channels'; import { Channel } from './channel'; -import { OperationTraits } from '../operation-traits'; +import { OperationTraits } from './operation-traits'; import { OperationTrait } from './operation-trait'; import { OperationReply } from './operation-reply'; -import { Servers } from '../servers'; +import { Servers } from './servers'; import type { ChannelsInterface } from '../channels'; import type { MessagesInterface } from '../messages'; diff --git a/src/models/v3/operations.ts b/src/models/v3/operations.ts new file mode 100644 index 000000000..f61b8c11c --- /dev/null +++ b/src/models/v3/operations.ts @@ -0,0 +1,18 @@ +import { Collection } from '../collection'; + +import type { OperationsInterface } from '../operations'; +import type { OperationInterface } from '../operation'; + +export class Operations extends Collection implements OperationsInterface { + override get(id: string): OperationInterface | undefined { + return this.collections.find(operation => operation.id() === id); + } + + filterBySend(): OperationInterface[] { + return this.filterBy(operation => operation.isSend()); + } + + filterByReceive(): OperationInterface[] { + return this.filterBy(operation => operation.isReceive()); + } +} diff --git a/src/models/v3/schema.ts b/src/models/v3/schema.ts index b42d38c7a..889f254d7 100644 --- a/src/models/v3/schema.ts +++ b/src/models/v3/schema.ts @@ -6,7 +6,7 @@ import { retrievePossibleRef, hasRef } from '../../utils'; import type { ModelMetadata } from '../base'; import type { ExtensionsInterface } from '../extensions'; -import type { ExternalDocumentationInterface } from '../external-documentation'; +import type { ExternalDocumentationInterface } from '../external-docs'; import type { SchemaInterface } from '../schema'; import type { v3 } from '../../spec-types'; diff --git a/src/models/v3/schemas.ts b/src/models/v3/schemas.ts new file mode 100644 index 000000000..8ebf7ea08 --- /dev/null +++ b/src/models/v3/schemas.ts @@ -0,0 +1,10 @@ +import { Collection } from '../collection'; + +import type { SchemasInterface } from '../schemas'; +import type { SchemaInterface } from '../schema'; + +export class Schemas extends Collection implements SchemasInterface { + override get(id: string): SchemaInterface | undefined { + return this.collections.find(schema => schema.id() === id); + } +} diff --git a/src/models/v3/security-requirements.ts b/src/models/v3/security-requirements.ts new file mode 100644 index 000000000..5fcf7dd30 --- /dev/null +++ b/src/models/v3/security-requirements.ts @@ -0,0 +1,10 @@ +import { Collection } from '../collection'; + +import type { SecurityRequirementsInterface } from '../security-requirements'; +import type { SecurityRequirementInterface } from '../security-requirement'; + +export class SecurityRequirements extends Collection implements SecurityRequirementsInterface { + override get(id: string): SecurityRequirementInterface | undefined { + return this.collections.find(securityRequirement => securityRequirement.meta('id' as any) === id); + } +} diff --git a/src/models/v3/security-scheme.ts b/src/models/v3/security-scheme.ts index d922664e4..e1cf4ccf0 100644 --- a/src/models/v3/security-scheme.ts +++ b/src/models/v3/security-scheme.ts @@ -14,6 +14,10 @@ export class SecurityScheme extends BaseModel implements SecuritySchemesInterface { + override get(id: string): SecuritySchemeInterface | undefined { + return this.collections.find(securityScheme => securityScheme.id() === id); + } +} diff --git a/src/models/v3/server-variables.ts b/src/models/v3/server-variables.ts new file mode 100644 index 000000000..5faf082db --- /dev/null +++ b/src/models/v3/server-variables.ts @@ -0,0 +1,10 @@ +import { Collection } from '../collection'; + +import type { ServerVariablesInterface } from '../server-variables'; +import type { ServerVariableInterface } from '../server-variable'; + +export class ServerVariables extends Collection implements ServerVariablesInterface { + override get(id: string): ServerVariableInterface | undefined { + return this.collections.find(variable => variable.id() === id); + } +} diff --git a/src/models/v3/server.ts b/src/models/v3/server.ts index 9e82d52bb..9308882dc 100644 --- a/src/models/v3/server.ts +++ b/src/models/v3/server.ts @@ -1,11 +1,11 @@ -import { Channels } from '../channels'; +import { Channels } from './channels'; import { Channel } from './channel'; -import { Messages } from '../messages'; -import { Operations } from '../operations'; +import { Messages } from './messages'; +import { Operations } from './operations'; import { SecurityScheme } from './security-scheme'; -import { ServerVariables } from '../server-variables'; +import { ServerVariables } from './server-variables'; import { ServerVariable } from './server-variable'; -import { SecurityRequirements } from '../security-requirements'; +import { SecurityRequirements } from './security-requirements'; import { SecurityRequirement } from './security-requirement'; import { CoreModel } from './mixins'; @@ -28,15 +28,15 @@ export class Server extends CoreModel implement } url(): string { - let host = this._json.host; + let host = this.host(); if (!host.endsWith('/')) { host = `${host}/`; } - let pathname = this._json.pathname || ''; + let pathname = this.pathname() || ''; if (pathname.startsWith('/')) { - pathname = pathname.slice(1); + pathname = pathname.substring(1); } - return `${host}${pathname}`; + return `${this.protocol()}://${host}${pathname}`; } host(): string { diff --git a/src/models/v3/servers.ts b/src/models/v3/servers.ts new file mode 100644 index 000000000..3c6ce0f4a --- /dev/null +++ b/src/models/v3/servers.ts @@ -0,0 +1,17 @@ +import { Collection } from '../collection'; +import { ServerInterface } from '../server'; +import { ServersInterface } from '../servers'; + +export class Servers extends Collection implements ServersInterface { + override get(id: string): ServerInterface | undefined { + return this.collections.find(server => server.id() === id); + } + + filterBySend(): ServerInterface[] { + return this.filterBy(server => server.operations().filterBySend().length > 0); + } + + filterByReceive(): ServerInterface[] { + return this.filterBy(server => server.operations().filterByReceive().length > 0); + } +} diff --git a/src/models/v3/tag.ts b/src/models/v3/tag.ts index 2aa7ccb0b..7b3c2f780 100644 --- a/src/models/v3/tag.ts +++ b/src/models/v3/tag.ts @@ -3,7 +3,7 @@ import { BaseModel } from '../base'; import { hasDescription, description, extensions, hasExternalDocs, externalDocs } from './mixins'; import type { ExtensionsInterface } from '../extensions'; -import type{ ExternalDocumentationInterface } from '../external-documentation'; +import type{ ExternalDocumentationInterface } from '../external-docs'; import type { TagInterface } from '../tag'; import type { v3 } from '../../spec-types'; diff --git a/src/models/v3/tags.ts b/src/models/v3/tags.ts new file mode 100644 index 000000000..6048620ff --- /dev/null +++ b/src/models/v3/tags.ts @@ -0,0 +1,10 @@ +import { Collection } from '../collection'; + +import type { TagsInterface } from '../tags'; +import type { TagInterface } from '../tag'; + +export class Tags extends Collection implements TagsInterface { + override get(name: string): TagInterface | undefined { + return this.collections.find(tag => tag.name() === name); + } +} diff --git a/src/spec-types/index.ts b/src/spec-types/index.ts index 1c818d3fa..5ab639dfa 100644 --- a/src/spec-types/index.ts +++ b/src/spec-types/index.ts @@ -1 +1,2 @@ export * as v2 from './v2'; +export * as v3 from './v3'; diff --git a/src/spec-types/v2.ts b/src/spec-types/v2.ts index e5b6fd169..758cd3035 100644 --- a/src/spec-types/v2.ts +++ b/src/spec-types/v2.ts @@ -450,4 +450,4 @@ export type SpecificationExtension = T; export interface ReferenceObject { $ref: string; -} \ No newline at end of file +} diff --git a/src/types.ts b/src/types.ts index 75254e0f6..a50193f74 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,6 +1,6 @@ import type { ISpectralDiagnostic, IFunctionResult } from '@stoplight/spectral-core'; import type { AsyncAPIDocumentInterface } from './models'; -import type { v2 } from './spec-types'; +import type { v2, v3 } from './spec-types'; export type MaybeAsyncAPI = { asyncapi: string } & Record; @@ -22,5 +22,5 @@ export interface DetailedAsyncAPI { export type Input = string | MaybeAsyncAPI | AsyncAPIDocumentInterface; export type Diagnostic = ISpectralDiagnostic; export type SchemaValidateResult = IFunctionResult; -export type AsyncAPIObject = v2.AsyncAPIObject; -export type AsyncAPISchema = v2.AsyncAPISchemaObject; +export type AsyncAPIObject = v2.AsyncAPIObject | v3.AsyncAPIObject; +export type AsyncAPISchema = v2.AsyncAPISchemaObject | v3.AsyncAPISchemaObject; diff --git a/src/utils.ts b/src/utils.ts index e5150b756..cc394c3f7 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -144,6 +144,35 @@ export function findSubArrayIndex(arr: Array, subarr: Array, fromIndex return -1; } +export function retrievePossibleRef(data: any, pathOfData: string, spec: any = {}): any { + if (!hasRef(data)) { + return data; + } + + const refPath = serializePath(data.$ref); + if (pathOfData.startsWith(refPath)) { // starts by given path + return retrieveDeepData(spec, splitPath(refPath)) || data; + } else if (pathOfData.includes(refPath)) { // circular path in substring of path + const substringPath = pathOfData.split(refPath)[0]; + return retrieveDeepData(spec, splitPath(`${substringPath}${refPath}`)) || data; + } + return data; +} + +export function resolveServerUrl(url: string): { host: string, pathname: string | undefined } { + // eslint-disable-next-line prefer-const + let [maybeProtocol, maybeHost] = url.split('://'); + if (!maybeHost) { + maybeHost = maybeProtocol; + } + + const [host, ...pathnames] = maybeHost.split('/'); + if (pathnames.length) { + return { host, pathname: `/${pathnames.join('/')}` }; + } + return { host, pathname: undefined }; +} + export function retrieveDeepData(value: Record, path: Array) { let index = 0; const length = path.length; diff --git a/test/models/v2/external-documentation.spec.ts b/test/models/v2/external-documentation.spec.ts index 986460541..e936f3842 100644 --- a/test/models/v2/external-documentation.spec.ts +++ b/test/models/v2/external-documentation.spec.ts @@ -1,4 +1,4 @@ -import { ExternalDocumentation } from '../../../src/models/v2/external-documentation'; +import { ExternalDocumentation } from '../../../src/models/v2/external-docs'; import { serializeInput, assertDescription, assertExtensions } from './utils'; diff --git a/test/models/v2/info.spec.ts b/test/models/v2/info.spec.ts index 9c581b355..33cd5d01b 100644 --- a/test/models/v2/info.spec.ts +++ b/test/models/v2/info.spec.ts @@ -29,14 +29,14 @@ describe('Info model', function() { describe('.hasId()', function() { it('should return true when there is a value', function() { - const doc = { asyncapi: '2.0.0', id: 'someId' }; + const doc = { asyncapi: '2.0.0', info: { title: 'test', version: 'test' }, id: 'someId' }; const asyncapi = createDetailedAsyncAPI(doc, doc as any); const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.hasId()).toEqual(true); }); it('should return false when there is no value', function() { - const doc = { asyncapi: '2.0.0' }; + const doc = { asyncapi: '2.0.0', info: { title: 'test', version: 'test' } }; const asyncapi = createDetailedAsyncAPI(doc, doc as any); const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.hasId()).toEqual(false); @@ -45,14 +45,14 @@ describe('Info model', function() { describe('.id()', function() { it('should return the value', function() { - const doc = { asyncapi: '2.0.0', id: 'someId' }; + const doc = { asyncapi: '2.0.0', info: { title: 'test', version: 'test' }, id: 'someId' }; const asyncapi = createDetailedAsyncAPI(doc, doc as any); const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.id()).toEqual(doc.id); }); it('should return undefined when there is no value', function() { - const doc = { asyncapi: '2.0.0' }; + const doc = { asyncapi: '2.0.0', info: { title: 'test', version: 'test' } }; const asyncapi = createDetailedAsyncAPI(doc, doc as any); const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.id()).toEqual(undefined); @@ -145,21 +145,21 @@ describe('Info model', function() { describe('.hasExternalDocs()', function() { it('should return true when there is a value', function() { - const doc = { asyncapi: '2.0.0', externalDocs: { url: 'https://example.com' } }; + const doc = { asyncapi: '2.0.0', info: { title: 'test', version: 'test' }, externalDocs: { url: 'https://example.com' } }; const asyncapi = createDetailedAsyncAPI(doc, doc as any); const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.hasExternalDocs()).toEqual(true); }); it('should return false when there is an empty object', function() { - const doc = { asyncapi: '2.0.0', externalDocs: {} }; + const doc = { asyncapi: '2.0.0', info: { title: 'test', version: 'test' }, externalDocs: {} }; const asyncapi = createDetailedAsyncAPI(doc, doc as any); const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.hasExternalDocs()).toEqual(false); }); it('should return false when there is no value', function() { - const doc = { asyncapi: '2.0.0' }; + const doc = { asyncapi: '2.0.0', info: { title: 'test', version: 'test' } }; const asyncapi = createDetailedAsyncAPI(doc, doc as any); const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.hasExternalDocs()).toEqual(false); @@ -168,7 +168,7 @@ describe('Info model', function() { describe('.externalDocs()', function() { it('should return the value', function() { - const doc = { asyncapi: '2.0.0', externalDocs: { url: 'https://example.com' } }; + const doc = { asyncapi: '2.0.0', info: { title: 'test', version: 'test' }, externalDocs: { url: 'https://example.com' } }; const asyncapi = createDetailedAsyncAPI(doc, doc as any); const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.externalDocs()).toBeInstanceOf(ExternalDocumentation); @@ -176,14 +176,14 @@ describe('Info model', function() { }); it('should return undefined when there is an empty object', function() { - const doc = { asyncapi: '2.0.0', externalDocs: {} }; + const doc = { asyncapi: '2.0.0', info: { title: 'test', version: 'test' }, externalDocs: {} }; const asyncapi = createDetailedAsyncAPI(doc, doc as any); const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.externalDocs()).toEqual(undefined); }); it('should return undefined when there is no value', function() { - const doc = { asyncapi: '2.0.0' }; + const doc = { asyncapi: '2.0.0', info: { title: 'test', version: 'test' } }; const asyncapi = createDetailedAsyncAPI(doc, doc as any); const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.externalDocs()).toEqual(undefined); @@ -193,7 +193,7 @@ describe('Info model', function() { describe('.tags()', function() { it('should return the collection of tags', function() { const tags = [{ name: 'one' }, { name: 'two' }]; - const doc = { asyncapi: '2.0.0', tags }; + const doc = { asyncapi: '2.0.0', info: { title: 'test', version: 'test' }, tags }; const asyncapi = createDetailedAsyncAPI(doc, doc as any); const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.tags()).toBeInstanceOf(Tags); @@ -203,7 +203,7 @@ describe('Info model', function() { }); it('should return empty array when there is an empty collection', function() { - const doc = { asyncapi: '2.0.0' }; + const doc = { asyncapi: '2.0.0', info: { title: 'test', version: 'test' } }; const asyncapi = createDetailedAsyncAPI(doc, doc as any); const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.tags()).toBeInstanceOf(Tags); diff --git a/test/models/v3/asyncapi.spec.ts b/test/models/v3/asyncapi.spec.ts index 40ec75337..62c6b0e76 100644 --- a/test/models/v3/asyncapi.spec.ts +++ b/test/models/v3/asyncapi.spec.ts @@ -1,11 +1,11 @@ import { AsyncAPIDocument } from '../../../src/models/v3/asyncapi'; -import { Channels } from '../../../src/models/channels'; +import { Channels } from '../../../src/models/v3/channels'; import { Components } from '../../../src/models/v3/components'; import { Info } from '../../../src/models/v3/info'; -import { Messages } from '../../../src/models/messages'; -import { Operations } from '../../../src/models/operations'; -import { SecuritySchemes } from '../../../src/models/security-schemes'; -import { Servers } from '../../../src/models/servers'; +import { Messages } from '../../../src/models/v3/messages'; +import { Operations } from '../../../src/models/v3/operations'; +import { SecuritySchemes } from '../../../src/models/v3/security-schemes'; +import { Servers } from '../../../src/models/v3/servers'; import { serializeInput, assertExtensions } from './utils'; diff --git a/test/models/v3/bindings.spec.ts b/test/models/v3/bindings.spec.ts index 39789d345..5a39163f0 100644 --- a/test/models/v3/bindings.spec.ts +++ b/test/models/v3/bindings.spec.ts @@ -1,6 +1,6 @@ import { Bindings } from '../../../src/models/v3/bindings'; import { Binding } from '../../../src/models/v3/binding'; -import { Extensions } from '../../../src/models/extensions'; +import { Extensions } from '../../../src/models/v3/extensions'; import { Extension } from '../../../src/models/v3/extension'; const binding = { diff --git a/test/models/v3/channel.spec.ts b/test/models/v3/channel.spec.ts index ef424f515..4d65d8594 100644 --- a/test/models/v3/channel.spec.ts +++ b/test/models/v3/channel.spec.ts @@ -1,11 +1,11 @@ import { Channel } from '../../../src/models/v3/channel'; -import { ChannelParameters } from '../../../src/models/channel-parameters'; +import { ChannelParameters } from '../../../src/models/v3/channel-parameters'; import { ChannelParameter } from '../../../src/models/v3/channel-parameter'; -import { Operations } from '../../../src/models/operations'; +import { Operations } from '../../../src/models/v3/operations'; import { Operation } from '../../../src/models/v3/operation'; -import { Messages } from '../../../src/models/messages'; +import { Messages } from '../../../src/models/v3/messages'; import { Message } from '../../../src/models/v3/message'; -import { Servers } from '../../../src/models/servers'; +import { Servers } from '../../../src/models/v3/servers'; import { Server } from '../../../src/models/v3/server'; import { serializeInput, assertCoreModel } from './utils'; @@ -100,21 +100,24 @@ describe('Channel model', function() { it('should return collection of messages - single message', function() { const doc = serializeInput({ messages: { someMessage: { messageId: 'messageId' } } }); const d = new Channel(doc); + const msg = doc.messages?.['someMessage'] as v3.MessageObject; expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(1); expect(d.messages().all()[0]).toBeInstanceOf(Message); - expect(d.messages().all()[0].messageId()).toEqual(doc.messages?.['someMessage']?.messageId); + expect(d.messages().all()[0].messageId()).toEqual(msg?.messageId); }); it('should return collection of messages - more than one messages', function() { const doc = serializeInput({ messages: { someMessage1: { messageId: 'messageId1' }, someMessage2: { messageId: 'messageId2' } } }); const d = new Channel(doc); + const msg1 = doc.messages?.['someMessage1'] as v3.MessageObject; + const msg2 = doc.messages?.['someMessage2'] as v3.MessageObject; expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(2); expect(d.messages().all()[0]).toBeInstanceOf(Message); - expect(d.messages().all()[0].messageId()).toEqual(doc.messages?.['someMessage1']?.messageId); + expect(d.messages().all()[0].id()).toEqual(msg1.messageId); expect(d.messages().all()[1]).toBeInstanceOf(Message); - expect(d.messages().all()[1].messageId()).toEqual(doc.messages?.['someMessage2']?.messageId); + expect(d.messages().all()[1].id()).toEqual(msg2.messageId); }); }); diff --git a/test/models/v3/components.spec.ts b/test/models/v3/components.spec.ts index f4439328d..623b9b2a9 100644 --- a/test/models/v3/components.spec.ts +++ b/test/models/v3/components.spec.ts @@ -13,26 +13,26 @@ import { Server } from '../../../src/models/v3/server'; import { ServerVariable } from '../../../src/models/v3/server-variable'; import { SecurityScheme } from '../../../src/models/v3/security-scheme'; import { BaseModel, ModelMetadata } from '../../../src/models'; -import { Servers } from '../../../src/models/servers'; -import { Channels } from '../../../src/models/channels'; -import { Messages } from '../../../src/models/messages'; +import { Servers } from '../../../src/models/v3/servers'; +import { Channels } from '../../../src/models/v3/channels'; +import { Messages } from '../../../src/models/v3/messages'; import { Collection } from '../../../src/models/collection'; import { Constructor } from '../../../src/models/utils'; -import { Schemas } from '../../../src/models/schemas'; -import { ChannelParameters } from '../../../src/models/channel-parameters'; -import { ServerVariables } from '../../../src/models/server-variables'; -import { OperationTraits } from '../../../src/models/operation-traits'; -import { OperationReplies } from '../../../src/models/operation-replies'; -import { OperationReplyAddresses } from '../../../src/models/operation-reply-addresses'; -import { MessageTraits } from '../../../src/models/message-traits'; -import { CorrelationIds } from '../../../src/models/correlation-ids'; -import { SecuritySchemes } from '../../../src/models/security-schemes'; +import { Schemas } from '../../../src/models/v3/schemas'; +import { ChannelParameters } from '../../../src/models/v3/channel-parameters'; +import { ServerVariables } from '../../../src/models/v3/server-variables'; +import { OperationTraits } from '../../../src/models/v3/operation-traits'; +import { OperationReplies } from '../../../src/models/v3/operation-replies'; +import { OperationReplyAddresses } from '../../../src/models/v3/operation-reply-addresses'; +import { MessageTraits } from '../../../src/models/v3/message-traits'; +import { CorrelationIds } from '../../../src/models/v3/correlation-ids'; +import { SecuritySchemes } from '../../../src/models/v3/security-schemes'; import { Operation } from '../../../src/models/v3/operation'; -import { Operations } from '../../../src/models/operations'; -import { Tags } from '../../../src/models/tags'; +import { Operations } from '../../../src/models/v3/operations'; +import { Tags } from '../../../src/models/v3/tags'; import { Tag } from '../../../src/models/v3/tag'; import { ExternalDocumentations } from '../../../src/models/external-documentations'; -import { ExternalDocumentation } from '../../../src/models/v3/external-documentation'; +import { ExternalDocumentation } from '../../../src/models/v3/external-docs'; import { serializeInput, assertExtensions } from './utils'; import type { v3 } from '../../../src/spec-types'; @@ -376,4 +376,4 @@ function testCollection, T extends BaseModel>(doc: any }); expect(items.all()).toEqual(expectedItems); -} \ No newline at end of file +} diff --git a/test/models/v3/external-documentation.spec.ts b/test/models/v3/external-documentation.spec.ts index 5bf485e0d..c4b2025cf 100644 --- a/test/models/v3/external-documentation.spec.ts +++ b/test/models/v3/external-documentation.spec.ts @@ -1,4 +1,4 @@ -import { ExternalDocumentation } from '../../../src/models/v3/external-documentation'; +import { ExternalDocumentation } from '../../../src/models/v3/external-docs'; import { serializeInput, assertDescription, assertExtensions } from './utils'; diff --git a/test/models/v3/info.spec.ts b/test/models/v3/info.spec.ts index 2453bb3f7..a533e95e5 100644 --- a/test/models/v3/info.spec.ts +++ b/test/models/v3/info.spec.ts @@ -26,14 +26,14 @@ describe('Info model', function() { describe('.hasId()', function() { it('should return true when there is a value', function() { - const doc = { asyncapi: '2.0.0', id: 'someId' }; + const doc = { asyncapi: '2.0.0', info: { title: 'test', version: 'test' }, id: 'someId' }; const asyncapi = createDetailedAsyncAPI(doc, doc as any); const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.hasId()).toEqual(true); }); it('should return false when there is no value', function() { - const doc = { asyncapi: '2.0.0' }; + const doc = { asyncapi: '2.0.0', info: { title: 'test', version: 'test' } }; const asyncapi = createDetailedAsyncAPI(doc, doc as any); const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.hasId()).toEqual(false); @@ -42,14 +42,14 @@ describe('Info model', function() { describe('.id()', function() { it('should return the value', function() { - const doc = { asyncapi: '2.0.0', id: 'someId' }; + const doc = { asyncapi: '2.0.0', info: { title: 'test', version: 'test' }, id: 'someId' }; const asyncapi = createDetailedAsyncAPI(doc, doc as any); const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.id()).toEqual(doc.id); }); it('should return undefined when there is no value', function() { - const doc = { asyncapi: '2.0.0' }; + const doc = { asyncapi: '2.0.0', info: { title: 'test', version: 'test' } }; const asyncapi = createDetailedAsyncAPI(doc, doc as any); const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.id()).toEqual(undefined); diff --git a/test/models/v3/message-trait.spec.ts b/test/models/v3/message-trait.spec.ts index 1e0c22119..43dce32b6 100644 --- a/test/models/v3/message-trait.spec.ts +++ b/test/models/v3/message-trait.spec.ts @@ -1,5 +1,5 @@ import { CorrelationId } from '../../../src/models/v3/correlation-id'; -import { MessageExamples } from '../../../src/models/message-examples'; +import { MessageExamples } from '../../../src/models/v3/message-examples'; import { MessageExample } from '../../../src/models/v3/message-example'; import { MessageTrait } from '../../../src/models/v3/message-trait'; import { Schema } from '../../../src/models/v3/schema'; diff --git a/test/models/v3/message.spec.ts b/test/models/v3/message.spec.ts index 82e72ee17..23594952c 100644 --- a/test/models/v3/message.spec.ts +++ b/test/models/v3/message.spec.ts @@ -1,12 +1,12 @@ -import { Channels } from '../../../src/models/channels'; +import { Channels } from '../../../src/models/v3/channels'; import { Channel } from '../../../src/models/v3/channel'; import { Message } from '../../../src/models/v3/message'; -import { MessageTraits } from '../../../src/models/message-traits'; +import { MessageTraits } from '../../../src/models/v3/message-traits'; import { MessageTrait } from '../../../src/models/v3/message-trait'; -import { Operations } from '../../../src/models/operations'; +import { Operations } from '../../../src/models/v3/operations'; import { Operation } from '../../../src/models/v3/operation'; import { Schema } from '../../../src/models/v3/schema'; -import { Servers } from '../../../src/models/servers'; +import { Servers } from '../../../src/models/v3/servers'; import { Server } from '../../../src/models/v3/server'; import { assertCoreModel } from './utils'; diff --git a/test/models/v3/oauth-flows.spec.ts b/test/models/v3/oauth-flows.spec.ts index 5dbd11e23..a680df224 100644 --- a/test/models/v3/oauth-flows.spec.ts +++ b/test/models/v3/oauth-flows.spec.ts @@ -6,7 +6,7 @@ import { assertExtensions } from './utils'; const oAuthFlowsObject = { implicit: { authorizationUrl: 'https://example.com/api/oauth/dialog', - scopes: { + availableScopes: { 'write:pets': 'modify pets in your account', 'read:pets': 'read your pets' } @@ -14,7 +14,7 @@ const oAuthFlowsObject = { authorizationCode: { authorizationUrl: 'https://example.com/api/oauth/dialog', tokenUrl: 'https://example.com/api/oauth/token', - scopes: { + availableScopes: { 'write:pets': 'modify pets in your account', 'read:pets': 'read your pets' } @@ -39,4 +39,4 @@ describe('OAuth Flows', function() { describe('mixins', function() { assertExtensions(OAuthFlows); }); -}); \ No newline at end of file +}); diff --git a/test/models/v3/operation-reply.spec.ts b/test/models/v3/operation-reply.spec.ts index 6370ca080..140c24903 100644 --- a/test/models/v3/operation-reply.spec.ts +++ b/test/models/v3/operation-reply.spec.ts @@ -1,7 +1,7 @@ import { Channel } from '../../../src/models/v3/channel'; import { OperationReply } from '../../../src/models/v3/operation-reply'; import { OperationReplyAddress } from '../../../src/models/v3/operation-reply-address'; -import { Messages } from '../../../src/models/messages'; +import { Messages } from '../../../src/models/v3/messages'; import { Message } from '../../../src/models/v3/message'; import { assertExtensions } from './utils'; diff --git a/test/models/v3/operation-trait.spec.ts b/test/models/v3/operation-trait.spec.ts index 7c355eff3..e211e8fce 100644 --- a/test/models/v3/operation-trait.spec.ts +++ b/test/models/v3/operation-trait.spec.ts @@ -1,6 +1,6 @@ import { OperationTrait } from '../../../src/models/v3/operation-trait'; import { SecurityRequirement } from '../../../src/models/v3/security-requirement'; -import { SecurityRequirements } from '../../../src/models/security-requirements'; +import { SecurityRequirements } from '../../../src/models/v3/security-requirements'; import { SecurityScheme } from '../../../src/models/v3/security-scheme'; import { assertCoreModel } from './utils'; @@ -22,13 +22,13 @@ describe('OperationTrait model', function() { describe('.hasId()', function() { it('should return true when there is a value', function() { const d = new OperationTrait({}, { id: '...' } as any); - expect(d.hasId()).toEqual(true); + expect(d.hasOperationId()).toEqual(true); }); it('should return false when there is no value', function() { const doc = {}; const d = new OperationTrait(doc); - expect(d.hasId()).toEqual(false); + expect(d.hasOperationId()).toEqual(false); }); }); diff --git a/test/models/v3/operation.spec.ts b/test/models/v3/operation.spec.ts index 1d8004482..1bf852e4d 100644 --- a/test/models/v3/operation.spec.ts +++ b/test/models/v3/operation.spec.ts @@ -1,12 +1,12 @@ -import { Channels } from '../../../src/models/channels'; +import { Channels } from '../../../src/models/v3/channels'; import { Channel } from '../../../src/models/v3/channel'; import { Operation } from '../../../src/models/v3/operation'; -import { OperationTraits } from '../../../src/models/operation-traits'; +import { OperationTraits } from '../../../src/models/v3/operation-traits'; import { OperationTrait } from '../../../src/models/v3/operation-trait'; import { OperationReply } from '../../../src/models/v3/operation-reply'; -import { Messages } from '../../../src/models/messages'; +import { Messages } from '../../../src/models/v3/messages'; import { Message } from '../../../src/models/v3/message'; -import { Servers } from '../../../src/models/servers'; +import { Servers } from '../../../src/models/v3/servers'; import { Server } from '../../../src/models/v3/server'; import { assertCoreModel } from './utils'; diff --git a/test/models/v3/server.spec.ts b/test/models/v3/server.spec.ts index 57b2501db..6289a8954 100644 --- a/test/models/v3/server.spec.ts +++ b/test/models/v3/server.spec.ts @@ -1,13 +1,13 @@ -import { Channels } from '../../../src/models/channels'; +import { Channels } from '../../../src/models/v3/channels'; import { Channel } from '../../../src/models/v3/channel'; -import { Messages } from '../../../src/models/messages'; +import { Messages } from '../../../src/models/v3/messages'; import { Message } from '../../../src/models/v3/message'; -import { Operations } from '../../../src/models/operations'; +import { Operations } from '../../../src/models/v3/operations'; import { Operation } from '../../../src/models/v3/operation'; import { Server } from '../../../src/models/v3/server'; -import { ServerVariables } from '../../../src/models/server-variables'; +import { ServerVariables } from '../../../src/models/v3/server-variables'; import { SecurityScheme } from '../../../src/models/v3/security-scheme'; -import { SecurityRequirements } from '../../../src/models/security-requirements'; +import { SecurityRequirements } from '../../../src/models/v3/security-requirements'; import { SecurityRequirement } from '../../../src/models/v3/security-requirement'; import { serializeInput, assertCoreModel } from './utils'; @@ -40,7 +40,7 @@ describe('Server Model', function () { describe('.url()', function () { it('should return value', function () { - expect(docItem.url()).toEqual(`${doc.production.host}${doc.production.pathname}`); + expect(docItem.url()).toEqual(`${doc.production.protocol}://${doc.production.host}${doc.production.pathname}`); }); }); diff --git a/test/models/v3/utils.ts b/test/models/v3/utils.ts index e2392e08f..60cd6f42e 100644 --- a/test/models/v3/utils.ts +++ b/test/models/v3/utils.ts @@ -75,7 +75,7 @@ export function assertExtensions(model: Constructor) { const d1 = new model(doc1); const d2 = new model(doc2); const d3 = new model(doc3); - + it('should return a collection with extensions', () => { expect(d1.extensions()).toBeInstanceOf(ExtensionsV3); expect(d1.extensions().length).toEqual(1); diff --git a/test/ruleset/tester.ts b/test/ruleset/tester.ts index fb8a0b028..c630e445e 100644 --- a/test/ruleset/tester.ts +++ b/test/ruleset/tester.ts @@ -44,10 +44,10 @@ export { DiagnosticSeverity } from '../../src'; function createParser(rules: Array, options: ParserOptions = {}): Parser { const ruleset: RulesetDefinition = { extends: [ - [coreRuleset, 'off'], - [recommendedRuleset, 'off'], - [v2CoreRuleset, 'off'], - [v2RecommendedRuleset, 'off'], + [coreRuleset as RulesetDefinition, 'off'], + [recommendedRuleset as RulesetDefinition, 'off'], + [v2CoreRuleset as RulesetDefinition, 'off'], + [v2RecommendedRuleset as RulesetDefinition, 'off'], ], rules: { 'asyncapi2-schemas': 'off', diff --git a/test/schema-parser/spectral-rule-v2.spec.ts b/test/schema-parser/spectral-rule-v2.spec.ts index 0b39626b6..f59eaf096 100644 --- a/test/schema-parser/spectral-rule-v2.spec.ts +++ b/test/schema-parser/spectral-rule-v2.spec.ts @@ -26,7 +26,7 @@ describe('aas2schemaParserRule', function() { }; const diagnostics = await parser.validate(document); - expectDiagnostics(diagnostics, 'asyncapi-schemas-v2', []); + expectDiagnostics(diagnostics, 'asyncapi2-schemas', []); }); it('should validate AsyncAPI Schema with invalid schema', async function() { @@ -55,7 +55,7 @@ describe('aas2schemaParserRule', function() { }; const diagnostics = await parser.validate(document); - expectDiagnostics(diagnostics, 'asyncapi-schemas-v2', [ + expectDiagnostics(diagnostics, 'asyncapi2-schemas', [ { message: 'must be array', path: ['channels', 'channel', 'publish', 'message', 'payload', 'oneOf'] @@ -92,7 +92,7 @@ describe('aas2schemaParserRule', function() { }; const diagnostics = await parser.validate(document); - expectDiagnostics(diagnostics, 'asyncapi-schemas-v2', [ + expectDiagnostics(diagnostics, 'asyncapi2-schemas', [ { message: 'must be array', path: ['components', 'messages', 'message', 'payload', 'oneOf'] @@ -133,7 +133,7 @@ describe('aas2schemaParserRule', function() { }; const diagnostics = await parser.validate(document); - expectDiagnostics(diagnostics, 'asyncapi-schemas-v2', [ + expectDiagnostics(diagnostics, 'asyncapi2-schemas', [ { message: 'must be array', path: ['components', 'channels', 'channel', 'publish', 'message', 'payload', 'oneOf'] @@ -180,7 +180,7 @@ describe('aas2schemaParserRule', function() { }; const diagnostics = await parser.validate(document); - expectDiagnostics(diagnostics, 'asyncapi-schemas-v2', [ + expectDiagnostics(diagnostics, 'asyncapi2-schemas', [ { message: 'must be array', path: ['channels', 'channel', 'publish', 'message', 'oneOf', '0', 'payload', 'oneOf'] @@ -218,7 +218,7 @@ describe('aas2schemaParserRule', function() { }; const diagnostics = await parser.validate(document); - expectDiagnostics(diagnostics, 'asyncapi-schemas-v2', []); + expectDiagnostics(diagnostics, 'asyncapi2-schemas', []); }); it('should validate AsyncAPI Schema with non supported schema format', async function() { @@ -243,7 +243,7 @@ describe('aas2schemaParserRule', function() { }; const diagnostics = await parser.validate(document); - expectDiagnostics(diagnostics, 'asyncapi-schemas-v2', [ + expectDiagnostics(diagnostics, 'asyncapi2-schemas', [ { message: 'Unknown schema format: "not existing"', path: ['channels', 'channel', 'publish', 'message', 'schemaFormat'] @@ -281,7 +281,7 @@ describe('aas2schemaParserRule', function() { }; const diagnostics = await parser.validate(document); - expect(filterDiagnostics(diagnostics, 'asyncapi-schemas-v2')).toHaveLength(2); + expect(filterDiagnostics(diagnostics, 'asyncapi2-schemas')).toHaveLength(2); expect(filterDiagnostics(diagnostics, 'asyncapi-payload-unsupported-schemaFormat')).toHaveLength(0); expect(filterDiagnostics(diagnostics, 'asyncapi-payload')).toHaveLength(0); }); From 1def5f7199761d70bb38acd2677130c11ba61656 Mon Sep 17 00:00:00 2001 From: Fran Mendez Date: Tue, 13 Jun 2023 17:41:28 +0200 Subject: [PATCH 067/126] Update package-lock.json --- package-lock.json | 11371 ++++++-------------------------------------- 1 file changed, 1364 insertions(+), 10007 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7ce705dbe..42cd20ede 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,7 +1,7 @@ { "name": "@asyncapi/parser", "version": "2.0.2", - "lockfileVersion": 2, + "lockfileVersion": 3, "requires": true, "packages": { "": { @@ -57,12 +57,12 @@ } }, "node_modules/@ampproject/remapping": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", - "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", "dev": true, "dependencies": { - "@jridgewell/gen-mapping": "^0.1.0", + "@jridgewell/gen-mapping": "^0.3.0", "@jridgewell/trace-mapping": "^0.3.9" }, "engines": { @@ -78,46 +78,46 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.21.4.tgz", - "integrity": "sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.5.tgz", + "integrity": "sha512-Xmwn266vad+6DAqEB2A6V/CcZVp62BbwVmcOJc2RPuwih1kw02TjQvWVWlcKGbBPd+8/0V5DEkOcizRGYsspYQ==", "dev": true, "dependencies": { - "@babel/highlight": "^7.18.6" + "@babel/highlight": "^7.22.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/compat-data": { - "version": "7.19.3", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.19.3.tgz", - "integrity": "sha512-prBHMK4JYYK+wDjJF1q99KK4JLL+egWS4nmNqdlMUgCExMZ+iZW0hGhyC3VEbsPjvaN0TBhW//VIFwBrk8sEiw==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.5.tgz", + "integrity": "sha512-4Jc/YuIaYqKnDDz892kPIledykKg12Aw1PYX5i/TY28anJtacvM1Rrr8wbieB9GfEJwlzqT0hUEao0CxEebiDA==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.19.3", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.19.3.tgz", - "integrity": "sha512-WneDJxdsjEvyKtXKsaBGbDeiyOjR5vYq4HcShxnIbG0qixpoHjI3MqeZM9NDvsojNCEBItQE4juOo/bU6e72gQ==", - "dev": true, - "dependencies": { - "@ampproject/remapping": "^2.1.0", - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.19.3", - "@babel/helper-compilation-targets": "^7.19.3", - "@babel/helper-module-transforms": "^7.19.0", - "@babel/helpers": "^7.19.0", - "@babel/parser": "^7.19.3", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.19.3", - "@babel/types": "^7.19.3", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.5.tgz", + "integrity": "sha512-SBuTAjg91A3eKOvD+bPEz3LlhHZRNu1nFOVts9lzDJTXshHTjII0BAtDS3Y2DAkdZdDKWVZGVwkDfc4Clxn1dg==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.22.5", + "@babel/generator": "^7.22.5", + "@babel/helper-compilation-targets": "^7.22.5", + "@babel/helper-module-transforms": "^7.22.5", + "@babel/helpers": "^7.22.5", + "@babel/parser": "^7.22.5", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.5", + "@babel/types": "^7.22.5", "convert-source-map": "^1.7.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", - "json5": "^2.2.1", + "json5": "^2.2.2", "semver": "^6.3.0" }, "engines": { @@ -129,18 +129,9 @@ } }, "node_modules/@babel/core/node_modules/convert-source-map": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", - "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.1.1" - } - }, - "node_modules/@babel/core/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", "dev": true }, "node_modules/@babel/core/node_modules/semver": { @@ -153,42 +144,30 @@ } }, "node_modules/@babel/generator": { - "version": "7.19.3", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.19.3.tgz", - "integrity": "sha512-fqVZnmp1ncvZU757UzDheKZpfPgatqY59XtW2/j/18H7u76akb8xqvjw82f+i2UKd/ksYsSick/BCLQUUtJ/qQ==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.5.tgz", + "integrity": "sha512-+lcUbnTRhd0jOewtFSedLyiPsD5tswKkbgcezOqqWFUVNEwoUTlpPOBmvhG7OXWLR4jMdv0czPGH5XbflnD1EA==", "dev": true, "dependencies": { - "@babel/types": "^7.19.3", + "@babel/types": "^7.22.5", "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", "jsesc": "^2.5.1" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/generator/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", - "dev": true, - "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.19.3", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.19.3.tgz", - "integrity": "sha512-65ESqLGyGmLvgR0mst5AdW1FkNlj9rQsCKduzEoEPhBCDFGXvz2jW6bXFG6i0/MrV2s7hhXjjb2yAzcPuQlLwg==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.5.tgz", + "integrity": "sha512-Ji+ywpHeuqxB8WDxraCiqR0xfhYjiDE/e6k7FuIaANnoOFxAHskHChz4vA1mJC9Lbm01s1PVAGhQY4FUKSkGZw==", "dev": true, "dependencies": { - "@babel/compat-data": "^7.19.3", - "@babel/helper-validator-option": "^7.18.6", + "@babel/compat-data": "^7.22.5", + "@babel/helper-validator-option": "^7.22.5", "browserslist": "^4.21.3", + "lru-cache": "^5.1.1", "semver": "^6.3.0" }, "engines": { @@ -208,151 +187,151 @@ } }, "node_modules/@babel/helper-environment-visitor": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", - "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.5.tgz", + "integrity": "sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-function-name": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz", - "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz", + "integrity": "sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==", "dev": true, "dependencies": { - "@babel/template": "^7.18.10", - "@babel/types": "^7.19.0" + "@babel/template": "^7.22.5", + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-hoist-variables": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", - "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", "dev": true, "dependencies": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-imports": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", - "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.5.tgz", + "integrity": "sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg==", "dev": true, "dependencies": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.19.0.tgz", - "integrity": "sha512-3HBZ377Fe14RbLIA+ac3sY4PTgpxHVkFrESaWhoI5PuyXPBBX8+C34qblV9G89ZtycGJCmCI/Ut+VUDK4bltNQ==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.5.tgz", + "integrity": "sha512-+hGKDt/Ze8GFExiVHno/2dvG5IdstpzCq0y4Qc9OJ25D4q3pKfiIP/4Vp3/JvhDkLKsDK2api3q3fpIgiIF5bw==", "dev": true, "dependencies": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-simple-access": "^7.18.6", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/helper-validator-identifier": "^7.18.6", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.19.0", - "@babel/types": "^7.19.0" + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-module-imports": "^7.22.5", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.5", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.5", + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz", - "integrity": "sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", + "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-simple-access": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.18.6.tgz", - "integrity": "sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", + "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", "dev": true, "dependencies": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-split-export-declaration": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", - "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.5.tgz", + "integrity": "sha512-thqK5QFghPKWLhAV321lxF95yCg2K3Ob5yw+M3VHWfdia0IkPXUtoLH8x/6Fh486QUvzhb8YOWHChTVen2/PoQ==", "dev": true, "dependencies": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-string-parser": { - "version": "7.19.4", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", - "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", + "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz", + "integrity": "sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", - "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.5.tgz", + "integrity": "sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.19.0.tgz", - "integrity": "sha512-DRBCKGwIEdqY3+rPJgG/dKfQy9+08rHIAJx8q2p+HSWP87s2HCrQmaAMMyMll2kIXKCW0cO1RdQskx15Xakftg==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.5.tgz", + "integrity": "sha512-pSXRmfE1vzcUIDFQcSGA5Mr+GxBV9oiRKDuDxXvWQQBCh8HoIjs/2DlDB7H8smac1IVrB9/xdXj2N3Wol9Cr+Q==", "dev": true, "dependencies": { - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.19.0", - "@babel/types": "^7.19.0" + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.5", + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.5.tgz", + "integrity": "sha512-BSKlD1hgnedS5XRnGOljZawtag7H1yPfQp0tdNJCHoH6AZ+Pcm9VvkrK59/Yy593Ypg0zMxH2BxD1VPYUQ7UIw==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.18.6", + "@babel/helper-validator-identifier": "^7.22.5", "chalk": "^2.0.0", "js-tokens": "^4.0.0" }, @@ -432,9 +411,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.21.4.tgz", - "integrity": "sha512-alVJj7k7zIxqBZ7BTRhz0IqJFxW1VJbm6N8JbcYhQ186df9ZBPbZBmWSqAMXwHGsCJdYks7z/voa3ibiS5bCIw==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.5.tgz", + "integrity": "sha512-DFZMC9LJUG9PLOclRC32G63UXwzqS2koQC8dkx+PLdmt1xSePYpbT/NbsrJy8Q/muXz7o/h/d4A7Fuyixm559Q==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -504,12 +483,12 @@ } }, "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.21.4.tgz", - "integrity": "sha512-5hewiLct5OKyh6PLKEYaFclcqtIgCb6bmELouxjF6up5q3Sov7rOayW4RwhbaBL0dit8rA80GNfY+UuDp2mBbQ==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz", + "integrity": "sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -606,12 +585,12 @@ } }, "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.21.4.tgz", - "integrity": "sha512-xz0D39NvhQn4t4RNsHmDnnsaQizIlUkdtYvLs8La1BlfjQ6JEwxkJGeqJMW2tAXx+q6H+WFuUTXNdYVpEya0YA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.22.5.tgz", + "integrity": "sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -621,9 +600,9 @@ } }, "node_modules/@babel/runtime": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz", - "integrity": "sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.5.tgz", + "integrity": "sha512-ecjvYlnAaZ/KVneE/OdKYBYfgXV3Ptu6zQWmgEF7vwKhQnvVS6bjMD2XYgj+SNvQ1GfK/pjgokfPkC/2CO8CuA==", "dev": true, "dependencies": { "regenerator-runtime": "^0.13.11" @@ -633,33 +612,33 @@ } }, "node_modules/@babel/template": { - "version": "7.18.10", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", - "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.5.tgz", + "integrity": "sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.18.6", - "@babel/parser": "^7.18.10", - "@babel/types": "^7.18.10" + "@babel/code-frame": "^7.22.5", + "@babel/parser": "^7.22.5", + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.19.3", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.19.3.tgz", - "integrity": "sha512-qh5yf6149zhq2sgIXmwjnsvmnNQC2iw70UFjp4olxucKrWd/dvlUsBI88VSLUsnMNF7/vnOiA+nk1+yLoCqROQ==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.19.3", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.19.3", - "@babel/types": "^7.19.3", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.5.tgz", + "integrity": "sha512-7DuIjPgERaNo6r+PZwItpjCZEa5vyw4eJGufeLxrPdBXBoLcCJCIasvK6pK/9DVNrLZTLFhUGqaC6X/PA007TQ==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.5", + "@babel/generator": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.5", + "@babel/parser": "^7.22.5", + "@babel/types": "^7.22.5", "debug": "^4.1.0", "globals": "^11.1.0" }, @@ -669,20 +648,21 @@ }, "node_modules/@babel/traverse/node_modules/globals": { "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/@babel/types": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.21.4.tgz", - "integrity": "sha512-rU2oY501qDxE8Pyo7i/Orqma4ziCOrby0/9mvbDUGEfvZjb279Nk9k19e2fiCxHbRRpY2ZyrgW1eq22mvmOIzA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.5.tgz", + "integrity": "sha512-zo3MIHGOkPOfoRXitsgHLjEXmlDaD/5KU1Uzuc9GNiZPhSqVxVRtxuPaSBZDsYZ9qV88AjtMtWW7ww98loJ9KA==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.19.4", - "@babel/helper-validator-identifier": "^7.19.1", + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.5", "to-fast-properties": "^2.0.0" }, "engines": { @@ -742,24 +722,23 @@ } }, "node_modules/@eslint-community/regexpp": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.0.tgz", - "integrity": "sha512-vITaYzIcNmjn5tF5uxcZ/ft7/RXGrMUIS9HalWckEOF6ESiwXKoMzAQf2UW0aVd6rnOeExTJVd5hmWXucBKGXQ==", + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", + "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", "dev": true, "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, "node_modules/@eslint/eslintrc": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.2.tgz", - "integrity": "sha512-3W4f5tDUra+pA+FzgugqL2pRimUTDJWKr7BINqOpkZrC0uYI0NIc0/JFgBROCU07HR6GieA5m3/rsPIhDmCXTQ==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", + "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", "dev": true, - "license": "MIT", "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.5.1", + "espree": "^9.5.2", "globals": "^13.19.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", @@ -776,8 +755,9 @@ }, "node_modules/@eslint/eslintrc/node_modules/ajv": { "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, - "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -796,9 +776,9 @@ "dev": true }, "node_modules/@eslint/js": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.38.0.tgz", - "integrity": "sha512-IoD2MfUnOV58ghIHCiil01PcohxjbYR/qCxsoC+xNgUwh1EY8jOOrYmu3d3a71+tJJ23uscEV4X2HJWMsPJu4g==", + "version": "8.42.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.42.0.tgz", + "integrity": "sha512-6SWlXpWU5AvId8Ac7zjzmIOqMOba/JWY8XZ4A7q7Gn1Vlfg/SFFIlrtHXt9nPn4op9ZPAkl91Jao+QQv3r/ukw==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -811,9 +791,9 @@ "dev": true }, "node_modules/@humanwhocodes/config-array": { - "version": "0.11.8", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", - "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", + "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", "dev": true, "dependencies": { "@humanwhocodes/object-schema": "^1.2.1", @@ -845,8 +825,9 @@ }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", "dev": true, - "license": "ISC", "dependencies": { "camelcase": "^5.3.1", "find-up": "^4.1.0", @@ -858,10 +839,20 @@ "node": ">=8" } }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, - "license": "MIT", "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -885,8 +876,9 @@ }, "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, - "license": "MIT", "dependencies": { "p-locate": "^4.1.0" }, @@ -894,10 +886,26 @@ "node": ">=8" } }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, - "license": "MIT", "dependencies": { "p-limit": "^2.2.0" }, @@ -905,10 +913,11 @@ "node": ">=8" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/path-exists": { - "version": "4.0.0", + "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -927,7 +936,6 @@ "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.5.0.tgz", "integrity": "sha512-NEpkObxPwyw/XxZVLPmAGKE89IQRp4puc6IQRPru6JKd1M3fW9v1xM1AnzIJE65hbCkzQAdnL8P47e9hzhiYLQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^29.5.0", "@types/node": "*", @@ -1171,31 +1179,6 @@ } } }, - "node_modules/@jest/reporters/node_modules/istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/reporters/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/@jest/schemas": { "version": "29.4.3", "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.4.3.tgz", @@ -1284,19 +1267,6 @@ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", "dev": true }, - "node_modules/@jest/transform/node_modules/write-file-atomic": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", - "dev": true, - "dependencies": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, "node_modules/@jest/types": { "version": "29.5.0", "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.5.0.tgz", @@ -1315,13 +1285,14 @@ } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", - "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", "dev": true, "dependencies": { - "@jridgewell/set-array": "^1.0.0", - "@jridgewell/sourcemap-codec": "^1.4.10" + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" }, "engines": { "node": ">=6.0.0" @@ -1355,24 +1326,10 @@ "@jridgewell/trace-mapping": "^0.3.9" } }, - "node_modules/@jridgewell/source-map/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", - "dev": true, - "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", "dev": true }, "node_modules/@jridgewell/trace-mapping": { @@ -1385,6 +1342,12 @@ "@jridgewell/sourcemap-codec": "1.4.14" } }, + "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + }, "node_modules/@jsep-plugin/regex": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.3.tgz", @@ -1425,7 +1388,6 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true, - "license": "MIT", "engines": { "node": ">= 8" } @@ -1435,7 +1397,6 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, - "license": "MIT", "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" @@ -1465,22 +1426,21 @@ "dev": true }, "node_modules/@sinonjs/commons": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-2.0.0.tgz", - "integrity": "sha512-uLa0j859mMrg2slwQYdO/AkrOfmH+X6LTVmNTS9CqexuE2IvVORIkSpJLqePAbEnKJ77aMmCwr1NUZ57120Xcg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.0.tgz", + "integrity": "sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==", "dev": true, - "license": "MIT", "dependencies": { "type-detect": "4.0.8" } }, "node_modules/@sinonjs/fake-timers": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.0.2.tgz", - "integrity": "sha512-SwUDyjWnah1AaNl7kxsa7cfLhlTYoiyhDAIgyh+El30YvXs/o7OLXpYH88Zdhyx9JExKrmHDJ+10bwIcY80Jmw==", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.1.0.tgz", + "integrity": "sha512-w1qd368vtrwttm1PRJWPW1QHlbmHrVDGs1eBH/jZvRPUFS4MNXV9Q33EQdjOdeAxZ7O8+3wM7zxztm2nfUSyKw==", "dev": true, "dependencies": { - "@sinonjs/commons": "^2.0.0" + "@sinonjs/commons": "^3.0.0" } }, "node_modules/@stoplight/better-ajv-errors": { @@ -1499,9 +1459,9 @@ } }, "node_modules/@stoplight/json": { - "version": "3.20.2", - "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.20.2.tgz", - "integrity": "sha512-e3Eb/DdLSpJVAsxAG1jKSnl4TVZLl2pH8KsJBWKf5GPCeI58Eo0ZpRTX3HcZ0gBaHWH6CnEHJkCRCONhoFbDIA==", + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.21.0.tgz", + "integrity": "sha512-5O0apqJ/t4sIevXCO3SBN9AHCEKKR/Zb4gaj7wYe5863jme9g02Q0n/GhM7ZCALkL+vGPTe4ZzTETP8TFtsw3g==", "dependencies": { "@stoplight/ordered-object-literal": "^1.0.3", "@stoplight/path": "^1.3.2", @@ -1568,9 +1528,9 @@ } }, "node_modules/@stoplight/spectral-core": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.17.0.tgz", - "integrity": "sha512-7D9og+iX2bCJMGPY7cvt2YdevFGDeSI7S2jPo7HWeGGitkef1FDSQ9AEapdwmCYvOJ7ztUlQdCCLTOb6Aani8w==", + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.18.0.tgz", + "integrity": "sha512-0aj+IELHvhjoPWoOFj41EJilPbaexUuWFg7GCsiJ3BXrniRp3GnPl+TIZkC1ZuuAr/oi77RviDhW9Gm7ndKB9Q==", "dependencies": { "@stoplight/better-ajv-errors": "1.0.3", "@stoplight/json": "~3.20.1", @@ -1598,6 +1558,22 @@ "node": "^12.20 || >= 14.13" } }, + "node_modules/@stoplight/spectral-core/node_modules/@stoplight/json": { + "version": "3.20.3", + "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.20.3.tgz", + "integrity": "sha512-2m+Km6CkEPWj+H+CXxFyQB9+mVK8ifz9izK0UZpz4G1ZBx2Pd2hI+qw24FJ+X3DTYtMPYIeINTOEaTFWOmbRxQ==", + "dependencies": { + "@stoplight/ordered-object-literal": "^1.0.3", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^13.6.0", + "jsonc-parser": "~2.2.1", + "lodash": "^4.17.21", + "safe-stable-stringify": "^1.1" + }, + "engines": { + "node": ">=8.3.0" + } + }, "node_modules/@stoplight/spectral-core/node_modules/@stoplight/types": { "version": "13.6.0", "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", @@ -1667,6 +1643,22 @@ "node": ">=12" } }, + "node_modules/@stoplight/spectral-parsers/node_modules/@stoplight/json": { + "version": "3.20.3", + "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.20.3.tgz", + "integrity": "sha512-2m+Km6CkEPWj+H+CXxFyQB9+mVK8ifz9izK0UZpz4G1ZBx2Pd2hI+qw24FJ+X3DTYtMPYIeINTOEaTFWOmbRxQ==", + "dependencies": { + "@stoplight/ordered-object-literal": "^1.0.3", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^13.6.0", + "jsonc-parser": "~2.2.1", + "lodash": "^4.17.21", + "safe-stable-stringify": "^1.1" + }, + "engines": { + "node": ">=8.3.0" + } + }, "node_modules/@stoplight/spectral-ref-resolver": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@stoplight/spectral-ref-resolver/-/spectral-ref-resolver-1.0.3.tgz", @@ -1712,9 +1704,9 @@ } }, "node_modules/@stoplight/types": { - "version": "13.12.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.12.0.tgz", - "integrity": "sha512-lpyB8b5cNcg/CyQ9W7Q2BxPkHhBA8+9byviGT6uL2Ok/5iao0poCnFUH++Cd7VN1/RaXrv0LT9fyOg4fJIl0iA==", + "version": "13.15.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.15.0.tgz", + "integrity": "sha512-pBLjVRrWGVd+KzTbL3qrmufSKIEp0UfziDBdt/nrTHPKrlrtVwaHdrrQMcpM23yJDU1Wcg4cHvhIuGtKCT5OmA==", "dependencies": { "@types/json-schema": "^7.0.4", "utility-types": "^3.10.0" @@ -1743,9 +1735,9 @@ "integrity": "sha512-sV+51I7WYnLJnKPn2EMWgS4EUfoP4iWEbrWwbXsj0MZCB/xOK8j6+C9fntIdOM50kpx45ZLC3s6kwKivWuqvyg==" }, "node_modules/@swc/core": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.52.tgz", - "integrity": "sha512-2LOkkl5Ebyzg1e2pu/tqz5zAAiNAtSR99KZDJz4+FTpo6lYwr+SRkeXSNFrYAReHBMb5VJoimrLDLHJ2X1E7Lg==", + "version": "1.3.63", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.63.tgz", + "integrity": "sha512-mNRMr0xcqkvnC1a/H7rpMtbIjq7KKy4XaW/+zj3+w9cH5g72eMo3ADNHE03zHoqPn+Ov3szzFOMHT6rgJlRxow==", "dev": true, "hasInstallScript": true, "engines": { @@ -1756,16 +1748,16 @@ "url": "https://opencollective.com/swc" }, "optionalDependencies": { - "@swc/core-darwin-arm64": "1.3.52", - "@swc/core-darwin-x64": "1.3.52", - "@swc/core-linux-arm-gnueabihf": "1.3.52", - "@swc/core-linux-arm64-gnu": "1.3.52", - "@swc/core-linux-arm64-musl": "1.3.52", - "@swc/core-linux-x64-gnu": "1.3.52", - "@swc/core-linux-x64-musl": "1.3.52", - "@swc/core-win32-arm64-msvc": "1.3.52", - "@swc/core-win32-ia32-msvc": "1.3.52", - "@swc/core-win32-x64-msvc": "1.3.52" + "@swc/core-darwin-arm64": "1.3.63", + "@swc/core-darwin-x64": "1.3.63", + "@swc/core-linux-arm-gnueabihf": "1.3.63", + "@swc/core-linux-arm64-gnu": "1.3.63", + "@swc/core-linux-arm64-musl": "1.3.63", + "@swc/core-linux-x64-gnu": "1.3.63", + "@swc/core-linux-x64-musl": "1.3.63", + "@swc/core-win32-arm64-msvc": "1.3.63", + "@swc/core-win32-ia32-msvc": "1.3.63", + "@swc/core-win32-x64-msvc": "1.3.63" }, "peerDependencies": { "@swc/helpers": "^0.5.0" @@ -1777,9 +1769,9 @@ } }, "node_modules/@swc/core-darwin-arm64": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.52.tgz", - "integrity": "sha512-Y+4YDN7mAhMgqLVMjpIOagFg93uWdQRsJXd3NAXo24CAJXLBuXsiXQdJVdhGavQkF0+NuhFSTGrzB8TknzWQkg==", + "version": "1.3.63", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.63.tgz", + "integrity": "sha512-lNR0BgG0/6dGpGP+AyFZoZ3YBhZN5GzvgAUzwy4skqn5sKZ7duQD02CNq1lIy7Im5BzgMUcJ+/Z7z/YUlqBK+Q==", "cpu": [ "arm64" ], @@ -1793,9 +1785,9 @@ } }, "node_modules/@swc/core-darwin-x64": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.52.tgz", - "integrity": "sha512-XbvBA+DwTedleh/smYA6E1Z1L1tVnF+ULhpszAAW4YYDzH47R73ucCdcSH/aHs4swv+uyvRquKoDtTTNZFvD4A==", + "version": "1.3.63", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.63.tgz", + "integrity": "sha512-1lydnc+LgSD0gwD1axW3+Y1htKZZRn33aJF4ITd6hsA9Y2eIhdMVxgx6peXp8wWzoRBXy5GEMTnd7704oya4zw==", "cpu": [ "x64" ], @@ -1809,9 +1801,9 @@ } }, "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.52.tgz", - "integrity": "sha512-YRTLjZcoGH09q0vjg5s6vxOryzAGlMx2Ly6Hq8+8ruBtG3QTsCN3y7MI8mX254xdFCJiTX5YwQheGjRXS7FF9A==", + "version": "1.3.63", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.63.tgz", + "integrity": "sha512-cJT+XJ6f25QeAcz2ONy1i8WKP6olqOIbU5fHZKsoPqEZmLkK5NCTnmIolT0HZpH1SNkE/hHkPYGn620Domvn8g==", "cpu": [ "arm" ], @@ -1825,9 +1817,9 @@ } }, "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.52.tgz", - "integrity": "sha512-B0HKtj0XpqpqflGKMxFlyXyORN0xshF8TVzUBD/2FgF7o8fE2RM1eqtdf1EzmZTT1hwxLpJXrEj+0gSXfWPW4A==", + "version": "1.3.63", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.63.tgz", + "integrity": "sha512-xtuk0v/86i0UR6G+5X6l3bgP1I1iWlEI23ad44L0FNrZ8wLLEvVzYuVoI6U5fKbp91LAsVpdWyyvSAo1sT7BWQ==", "cpu": [ "arm64" ], @@ -1841,9 +1833,9 @@ } }, "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.52.tgz", - "integrity": "sha512-GCxNjTAborAmv4VV1AMZLyejHLGgIzu13tvLUFqybtU4jFxVbE2ZK4ZnPCfDlWN+eBwyRWk1oNFR2hH+66vaUQ==", + "version": "1.3.63", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.63.tgz", + "integrity": "sha512-AIRqE/3659zt5hfZzj3i/xtJbJl1iz9FcYEGUsIqqrxouqZWNbFujQpIguX4qFI7uoM+m6p6pqLjMmArwErRxQ==", "cpu": [ "arm64" ], @@ -1857,9 +1849,9 @@ } }, "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.52.tgz", - "integrity": "sha512-mrvDBSkLI3Mza2qcu3uzB5JGwMBYDb1++UQ1VB0RXf2AR21/cCper4P44IpfdeqFz9XyXq18Sh3gblICUCGvig==", + "version": "1.3.63", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.63.tgz", + "integrity": "sha512-EAB5gkgDvStJofvdQU40hqEqjtSvtPs3PR0WupZtbLKWWCTWg76uTXQZEKNYx9r60Pt7sx1BAa3XnqgXjmcjDg==", "cpu": [ "x64" ], @@ -1873,9 +1865,9 @@ } }, "node_modules/@swc/core-linux-x64-musl": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.52.tgz", - "integrity": "sha512-r9RIvKUQv7yBkpXz+QxPAucdoj8ymBlgIm5rLE0b5VmU7dlKBnpAmRBYaITdH6IXhF0pwuG+FHAd5elBcrkIwA==", + "version": "1.3.63", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.63.tgz", + "integrity": "sha512-8ScbtDPd8Hr1VkpzCseI5H770YgxxjTFsxinH9UtJWJBFIkdu2rEwjgz4t+lDjsc/R3JWaKt1q8Dkgzqmj+77g==", "cpu": [ "x64" ], @@ -1889,9 +1881,9 @@ } }, "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.52.tgz", - "integrity": "sha512-YRtEr7tDo0Wes3M2ZhigF4erUjWBXeFP+O+iz6ELBBmPG7B7m/lrA21eiW9/90YGnzi0iNo46shK6PfXuPhP+Q==", + "version": "1.3.63", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.63.tgz", + "integrity": "sha512-+41tEugXJjpK04KIb2+Xlpb1NArhIne4u0NQo+cHb6ekJoqQmgIj3uNJhQ0v+0DDMjFqbA07l0KYNMgYLBls/A==", "cpu": [ "arm64" ], @@ -1905,9 +1897,9 @@ } }, "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.52.tgz", - "integrity": "sha512-t1x6EdYg3nnnmZBkEtmdXwGpVFTnkNCYyTILcn4367tKI6NpcNe75tz6wBUZAWAmol6Bn75je9KHDNC9uBcO2A==", + "version": "1.3.63", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.63.tgz", + "integrity": "sha512-W6nPOD5k++rSmoAb0Jg0h7gyfjly8b5ld7cSnmrWKXfmjgxOqxcoqP2LlzNkamg320eqkGaD9n+UnPJDteLTBw==", "cpu": [ "ia32" ], @@ -1921,9 +1913,9 @@ } }, "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.52.tgz", - "integrity": "sha512-ef0KzcHxWgRii0EyUlgzNA0ycqaRRKxSb6QCO9Ev3tib4SSjbPy0MAndU7f82Ndm/pPmXT+7cciRtZ083vzjZA==", + "version": "1.3.63", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.63.tgz", + "integrity": "sha512-MHNCF3GWtlKZL3vNhMiCrtM4gBHqAv0Iw38bLoJRagh1Q/UDNVjNzWhgngCno9NUQodMtCo6G7iTQilW7YaAQQ==", "cpu": [ "x64" ], @@ -1977,15 +1969,15 @@ "dev": true }, "node_modules/@tsconfig/node16": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", - "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", "dev": true }, "node_modules/@types/babel__core": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.0.tgz", - "integrity": "sha512-+n8dL/9GWblDO0iU6eZAwEIJVr5DWigtle+Q6HLOrh/pdbXOhOtqzq8VPPE2zvNJzSKY4vH/z3iT3tn0A3ypiQ==", + "version": "7.20.1", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.1.tgz", + "integrity": "sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==", "dev": true, "dependencies": { "@babel/parser": "^7.20.7", @@ -2015,12 +2007,12 @@ } }, "node_modules/@types/babel__traverse": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.18.3.tgz", - "integrity": "sha512-1kbcJ40lLB7MHsj39U4Sh1uTd2E7rLEa79kmDpI6cy+XiXsteB3POdQomoq4FxszMrO3ZYchkhYJw7A2862b3w==", + "version": "7.20.1", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.1.tgz", + "integrity": "sha512-MitHFXnhtgwsGZWtT68URpOvLN4EREih1u3QtQiN4VdAxWKRVvGCSvw/Qth0M0Qq3pJpnGOu5JaM/ydK7OGbqg==", "dev": true, "dependencies": { - "@babel/types": "^7.3.0" + "@babel/types": "^7.20.7" } }, "node_modules/@types/es-aggregate-error": { @@ -2032,9 +2024,9 @@ } }, "node_modules/@types/eslint": { - "version": "8.37.0", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.37.0.tgz", - "integrity": "sha512-Piet7dG2JBuDIfohBngQ3rCt7MgO9xCO4xIMKxBThCq5PNRB91IjlJ10eJVwfoNtvTErmxLzwBZ7rHZtbOMmFQ==", + "version": "8.40.2", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.2.tgz", + "integrity": "sha512-PRVjQ4Eh9z9pmmtaq8nTjZjQwKFk7YIHIud3lRoKRBgUQjgjRmoGxxGEPXQkF+lH7QkHJRNr5F4aBgYCW0lqpQ==", "dev": true, "dependencies": { "@types/estree": "*", @@ -2107,9 +2099,9 @@ "dev": true }, "node_modules/@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" + "version": "7.0.12", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", + "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==" }, "node_modules/@types/json5": { "version": "0.0.29", @@ -2118,14 +2110,14 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.16.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.1.tgz", - "integrity": "sha512-DZxSZWXxFfOlx7k7Rv4LAyiMroaxa3Ly/7OOzZO8cBNho0YzAi4qlbrx8W27JGqG57IgR/6J7r+nOJWw6kcvZA==" + "version": "18.16.18", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.18.tgz", + "integrity": "sha512-/aNaQZD0+iSBAGnvvN2Cx92HqE5sZCPZtx2TsK+4nvV23fFe09jVDvpArXr2j9DnYlzuU9WuoykDDc6wqvpNcw==" }, "node_modules/@types/node-fetch": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.3.tgz", - "integrity": "sha512-ETTL1mOEdq/sxUtgtOhKjyB2Irra4cjxksvcMUR5Zr4n+PxVhsCD9WS46oPbHL3et9Zde7CNRr+WUNlcHvsX+w==", + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.4.tgz", + "integrity": "sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==", "dev": true, "dependencies": { "@types/node": "*", @@ -2133,15 +2125,15 @@ } }, "node_modules/@types/prettier": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.2.tgz", - "integrity": "sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg==", + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", + "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", "dev": true }, "node_modules/@types/semver": { - "version": "7.3.13", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", - "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz", + "integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==", "dev": true }, "node_modules/@types/stack-utils": { @@ -2175,22 +2167,21 @@ "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.0.tgz", "integrity": "sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==", "dev": true, - "license": "MIT", "optional": true, "dependencies": { "@types/node": "*" } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.0.tgz", - "integrity": "sha512-p0QgrEyrxAWBecR56gyn3wkG15TJdI//eetInP3zYRewDh0XS+DhB3VUAd3QqvziFsfaQIoIuZMxZRB7vXYaYw==", + "version": "5.59.11", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.11.tgz", + "integrity": "sha512-XxuOfTkCUiOSyBWIvHlUraLw/JT/6Io1365RO6ZuI88STKMavJZPNMU0lFcUTeQXEhHiv64CbxYxBNoDVSmghg==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.59.0", - "@typescript-eslint/type-utils": "5.59.0", - "@typescript-eslint/utils": "5.59.0", + "@typescript-eslint/scope-manager": "5.59.11", + "@typescript-eslint/type-utils": "5.59.11", + "@typescript-eslint/utils": "5.59.11", "debug": "^4.3.4", "grapheme-splitter": "^1.0.4", "ignore": "^5.2.0", @@ -2216,14 +2207,14 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.0.tgz", - "integrity": "sha512-qK9TZ70eJtjojSUMrrEwA9ZDQ4N0e/AuoOIgXuNBorXYcBDk397D2r5MIe1B3cok/oCtdNC5j+lUUpVB+Dpb+w==", + "version": "5.59.11", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.11.tgz", + "integrity": "sha512-s9ZF3M+Nym6CAZEkJJeO2TFHHDsKAM3ecNkLuH4i4s8/RCPnF5JRip2GyviYkeEAcwGMJxkqG9h2dAsnA1nZpA==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.59.0", - "@typescript-eslint/types": "5.59.0", - "@typescript-eslint/typescript-estree": "5.59.0", + "@typescript-eslint/scope-manager": "5.59.11", + "@typescript-eslint/types": "5.59.11", + "@typescript-eslint/typescript-estree": "5.59.11", "debug": "^4.3.4" }, "engines": { @@ -2243,13 +2234,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.0.tgz", - "integrity": "sha512-tsoldKaMh7izN6BvkK6zRMINj4Z2d6gGhO2UsI8zGZY3XhLq1DndP3Ycjhi1JwdwPRwtLMW4EFPgpuKhbCGOvQ==", + "version": "5.59.11", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.11.tgz", + "integrity": "sha512-dHFOsxoLFtrIcSj5h0QoBT/89hxQONwmn3FOQ0GOQcLOOXm+MIrS8zEAhs4tWl5MraxCY3ZJpaXQQdFMc2Tu+Q==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.59.0", - "@typescript-eslint/visitor-keys": "5.59.0" + "@typescript-eslint/types": "5.59.11", + "@typescript-eslint/visitor-keys": "5.59.11" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -2260,13 +2251,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.0.tgz", - "integrity": "sha512-d/B6VSWnZwu70kcKQSCqjcXpVH+7ABKH8P1KNn4K7j5PXXuycZTPXF44Nui0TEm6rbWGi8kc78xRgOC4n7xFgA==", + "version": "5.59.11", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.11.tgz", + "integrity": "sha512-LZqVY8hMiVRF2a7/swmkStMYSoXMFlzL6sXV6U/2gL5cwnLWQgLEG8tjWPpaE4rMIdZ6VKWwcffPlo1jPfk43g==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "5.59.0", - "@typescript-eslint/utils": "5.59.0", + "@typescript-eslint/typescript-estree": "5.59.11", + "@typescript-eslint/utils": "5.59.11", "debug": "^4.3.4", "tsutils": "^3.21.0" }, @@ -2287,9 +2278,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.0.tgz", - "integrity": "sha512-yR2h1NotF23xFFYKHZs17QJnB51J/s+ud4PYU4MqdZbzeNxpgUr05+dNeCN/bb6raslHvGdd6BFCkVhpPk/ZeA==", + "version": "5.59.11", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.11.tgz", + "integrity": "sha512-epoN6R6tkvBYSc+cllrz+c2sOFWkbisJZWkOE+y3xHtvYaOE6Wk6B8e114McRJwFRjGvYdJwLXQH5c9osME/AA==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -2300,13 +2291,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.0.tgz", - "integrity": "sha512-sUNnktjmI8DyGzPdZ8dRwW741zopGxltGs/SAPgGL/AAgDpiLsCFLcMNSpbfXfmnNeHmK9h3wGmCkGRGAoUZAg==", + "version": "5.59.11", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.11.tgz", + "integrity": "sha512-YupOpot5hJO0maupJXixi6l5ETdrITxeo5eBOeuV7RSKgYdU3G5cxO49/9WRnJq9EMrB7AuTSLH/bqOsXi7wPA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.59.0", - "@typescript-eslint/visitor-keys": "5.59.0", + "@typescript-eslint/types": "5.59.11", + "@typescript-eslint/visitor-keys": "5.59.11", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -2327,17 +2318,17 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.0.tgz", - "integrity": "sha512-GGLFd+86drlHSvPgN/el6dRQNYYGOvRSDVydsUaQluwIW3HvbXuxyuD5JETvBt/9qGYe+lOrDk6gRrWOHb/FvA==", + "version": "5.59.11", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.11.tgz", + "integrity": "sha512-didu2rHSOMUdJThLk4aZ1Or8IcO3HzCw/ZvEjTTIfjIrcdd5cvSIwwDy2AOlE7htSNp7QIZ10fLMyRCveesMLg==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@types/json-schema": "^7.0.9", "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.59.0", - "@typescript-eslint/types": "5.59.0", - "@typescript-eslint/typescript-estree": "5.59.0", + "@typescript-eslint/scope-manager": "5.59.11", + "@typescript-eslint/types": "5.59.11", + "@typescript-eslint/typescript-estree": "5.59.11", "eslint-scope": "^5.1.1", "semver": "^7.3.7" }, @@ -2353,12 +2344,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.0.tgz", - "integrity": "sha512-qZ3iXxQhanchCeaExlKPV3gDQFxMUmU35xfd5eCXB6+kUw1TUAbIy2n7QIrwz9s98DQLzNWyHp61fY0da4ZcbA==", + "version": "5.59.11", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.11.tgz", + "integrity": "sha512-KGYniTGG3AMTuKF9QBD7EIrvufkB6O6uX3knP73xbKLMpH+QRPcgnCxjWXSHjMRuOxFLovljqQgQpR0c7GvjoA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.59.0", + "@typescript-eslint/types": "5.59.11", "eslint-visitor-keys": "^3.3.0" }, "engines": { @@ -2370,148 +2361,148 @@ } }, "node_modules/@webassemblyjs/ast": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.5.tgz", - "integrity": "sha512-LHY/GSAZZRpsNQH+/oHqhRQ5FT7eoULcBqgfyTB5nQHogFnK3/7QoN7dLnwSE/JkUAF0SrRuclT7ODqMFtWxxQ==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", + "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", "dev": true, "dependencies": { - "@webassemblyjs/helper-numbers": "1.11.5", - "@webassemblyjs/helper-wasm-bytecode": "1.11.5" + "@webassemblyjs/helper-numbers": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6" } }, "node_modules/@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.5.tgz", - "integrity": "sha512-1j1zTIC5EZOtCplMBG/IEwLtUojtwFVwdyVMbL/hwWqbzlQoJsWCOavrdnLkemwNoC/EOwtUFch3fuo+cbcXYQ==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", + "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", "dev": true }, "node_modules/@webassemblyjs/helper-api-error": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.5.tgz", - "integrity": "sha512-L65bDPmfpY0+yFrsgz8b6LhXmbbs38OnwDCf6NpnMUYqa+ENfE5Dq9E42ny0qz/PdR0LJyq/T5YijPnU8AXEpA==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", + "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", "dev": true }, "node_modules/@webassemblyjs/helper-buffer": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.5.tgz", - "integrity": "sha512-fDKo1gstwFFSfacIeH5KfwzjykIE6ldh1iH9Y/8YkAZrhmu4TctqYjSh7t0K2VyDSXOZJ1MLhht/k9IvYGcIxg==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", + "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==", "dev": true }, "node_modules/@webassemblyjs/helper-numbers": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.5.tgz", - "integrity": "sha512-DhykHXM0ZABqfIGYNv93A5KKDw/+ywBFnuWybZZWcuzWHfbp21wUfRkbtz7dMGwGgT4iXjWuhRMA2Mzod6W4WA==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", + "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", "dev": true, "dependencies": { - "@webassemblyjs/floating-point-hex-parser": "1.11.5", - "@webassemblyjs/helper-api-error": "1.11.5", + "@webassemblyjs/floating-point-hex-parser": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", "@xtuc/long": "4.2.2" } }, "node_modules/@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.5.tgz", - "integrity": "sha512-oC4Qa0bNcqnjAowFn7MPCETQgDYytpsfvz4ujZz63Zu/a/v71HeCAAmZsgZ3YVKec3zSPYytG3/PrRCqbtcAvA==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", + "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", "dev": true }, "node_modules/@webassemblyjs/helper-wasm-section": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.5.tgz", - "integrity": "sha512-uEoThA1LN2NA+K3B9wDo3yKlBfVtC6rh0i4/6hvbz071E8gTNZD/pT0MsBf7MeD6KbApMSkaAK0XeKyOZC7CIA==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", + "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", "dev": true, "dependencies": { - "@webassemblyjs/ast": "1.11.5", - "@webassemblyjs/helper-buffer": "1.11.5", - "@webassemblyjs/helper-wasm-bytecode": "1.11.5", - "@webassemblyjs/wasm-gen": "1.11.5" + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6" } }, "node_modules/@webassemblyjs/ieee754": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.5.tgz", - "integrity": "sha512-37aGq6qVL8A8oPbPrSGMBcp38YZFXcHfiROflJn9jxSdSMMM5dS5P/9e2/TpaJuhE+wFrbukN2WI6Hw9MH5acg==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", + "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", "dev": true, "dependencies": { "@xtuc/ieee754": "^1.2.0" } }, "node_modules/@webassemblyjs/leb128": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.5.tgz", - "integrity": "sha512-ajqrRSXaTJoPW+xmkfYN6l8VIeNnR4vBOTQO9HzR7IygoCcKWkICbKFbVTNMjMgMREqXEr0+2M6zukzM47ZUfQ==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", + "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", "dev": true, "dependencies": { "@xtuc/long": "4.2.2" } }, "node_modules/@webassemblyjs/utf8": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.5.tgz", - "integrity": "sha512-WiOhulHKTZU5UPlRl53gHR8OxdGsSOxqfpqWeA2FmcwBMaoEdz6b2x2si3IwC9/fSPLfe8pBMRTHVMk5nlwnFQ==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", + "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", "dev": true }, "node_modules/@webassemblyjs/wasm-edit": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.5.tgz", - "integrity": "sha512-C0p9D2fAu3Twwqvygvf42iGCQ4av8MFBLiTb+08SZ4cEdwzWx9QeAHDo1E2k+9s/0w1DM40oflJOpkZ8jW4HCQ==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", + "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", "dev": true, "dependencies": { - "@webassemblyjs/ast": "1.11.5", - "@webassemblyjs/helper-buffer": "1.11.5", - "@webassemblyjs/helper-wasm-bytecode": "1.11.5", - "@webassemblyjs/helper-wasm-section": "1.11.5", - "@webassemblyjs/wasm-gen": "1.11.5", - "@webassemblyjs/wasm-opt": "1.11.5", - "@webassemblyjs/wasm-parser": "1.11.5", - "@webassemblyjs/wast-printer": "1.11.5" + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/helper-wasm-section": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-opt": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6", + "@webassemblyjs/wast-printer": "1.11.6" } }, "node_modules/@webassemblyjs/wasm-gen": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.5.tgz", - "integrity": "sha512-14vteRlRjxLK9eSyYFvw1K8Vv+iPdZU0Aebk3j6oB8TQiQYuO6hj9s4d7qf6f2HJr2khzvNldAFG13CgdkAIfA==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", + "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", "dev": true, "dependencies": { - "@webassemblyjs/ast": "1.11.5", - "@webassemblyjs/helper-wasm-bytecode": "1.11.5", - "@webassemblyjs/ieee754": "1.11.5", - "@webassemblyjs/leb128": "1.11.5", - "@webassemblyjs/utf8": "1.11.5" + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" } }, "node_modules/@webassemblyjs/wasm-opt": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.5.tgz", - "integrity": "sha512-tcKwlIXstBQgbKy1MlbDMlXaxpucn42eb17H29rawYLxm5+MsEmgPzeCP8B1Cl69hCice8LeKgZpRUAPtqYPgw==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", + "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", "dev": true, "dependencies": { - "@webassemblyjs/ast": "1.11.5", - "@webassemblyjs/helper-buffer": "1.11.5", - "@webassemblyjs/wasm-gen": "1.11.5", - "@webassemblyjs/wasm-parser": "1.11.5" + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6" } }, "node_modules/@webassemblyjs/wasm-parser": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.5.tgz", - "integrity": "sha512-SVXUIwsLQlc8srSD7jejsfTU83g7pIGr2YYNb9oHdtldSxaOhvA5xwvIiWIfcX8PlSakgqMXsLpLfbbJ4cBYew==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", + "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", "dev": true, "dependencies": { - "@webassemblyjs/ast": "1.11.5", - "@webassemblyjs/helper-api-error": "1.11.5", - "@webassemblyjs/helper-wasm-bytecode": "1.11.5", - "@webassemblyjs/ieee754": "1.11.5", - "@webassemblyjs/leb128": "1.11.5", - "@webassemblyjs/utf8": "1.11.5" + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" } }, "node_modules/@webassemblyjs/wast-printer": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.5.tgz", - "integrity": "sha512-f7Pq3wvg3GSPUPzR0F6bmI89Hdb+u9WXrSKc4v+N0aV0q6r42WoF92Jp2jEorBEBRoRNXgjp53nBniDXcqZYPA==", + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", + "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", "dev": true, "dependencies": { - "@webassemblyjs/ast": "1.11.5", + "@webassemblyjs/ast": "1.11.6", "@xtuc/long": "4.2.2" } }, @@ -2579,198 +2570,70 @@ "resolved": "https://registry.npmjs.org/accessory/-/accessory-1.1.0.tgz", "integrity": "sha512-DlgiZ+jTuCIZLURquQhOfclRvPu6gQKgOzr9wAiZtjWYjd1lMK8Hr6XXEDWuEAxpTWEccgn6YVREJ6C7fhvrww==", "dev": true, - "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "5.36.2", - "@typescript-eslint/type-utils": "5.36.2", - "@typescript-eslint/utils": "5.36.2", - "debug": "^4.3.4", - "functional-red-black-tree": "^1.0.1", - "ignore": "^5.2.0", - "regexpp": "^3.2.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "ap": "~0.2.0", + "balanced-match": "~0.2.0", + "dot-parts": "~1.0.0" } }, - "node_modules/accessory/node_modules/@typescript-eslint/scope-manager": { - "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.36.2.tgz", - "integrity": "sha512-cNNP51L8SkIFSfce8B1NSUBTJTu2Ts4nWeWbFrdaqjmn9yKrAaJUBHkyTZc0cL06OFHpb+JZq5AUHROS398Orw==", + "node_modules/acorn": { + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", "dev": true, - "dependencies": { - "@typescript-eslint/types": "5.36.2", - "@typescript-eslint/visitor-keys": "5.36.2" + "bin": { + "acorn": "bin/acorn" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "node": ">=0.4.0" } }, - "node_modules/accessory/node_modules/@typescript-eslint/type-utils": { - "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.36.2.tgz", - "integrity": "sha512-rPQtS5rfijUWLouhy6UmyNquKDPhQjKsaKH0WnY6hl/07lasj8gPaH2UD8xWkePn6SC+jW2i9c2DZVDnL+Dokw==", + "node_modules/acorn-import-assertions": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", + "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", "dev": true, - "dependencies": { - "@typescript-eslint/typescript-estree": "5.36.2", - "@typescript-eslint/utils": "5.36.2", - "debug": "^4.3.4", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, "peerDependencies": { - "eslint": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "acorn": "^8" } }, - "node_modules/accessory/node_modules/@typescript-eslint/types": { - "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.36.2.tgz", - "integrity": "sha512-9OJSvvwuF1L5eS2EQgFUbECb99F0mwq501w0H0EkYULkhFa19Qq7WFbycdw1PexAc929asupbZcgjVIe6OK/XQ==", + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/accessory/node_modules/@typescript-eslint/typescript-estree": { - "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.36.2.tgz", - "integrity": "sha512-8fyH+RfbKc0mTspfuEjlfqA4YywcwQK2Amcf6TDOwaRLg7Vwdu4bZzyvBZp4bjt1RRjQ5MDnOZahxMrt2l5v9w==", + "node_modules/acorn-node": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", + "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.36.2", - "@typescript-eslint/visitor-keys": "5.36.2", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "acorn": "^7.0.0", + "acorn-walk": "^7.0.0", + "xtend": "^4.0.2" } }, - "node_modules/accessory/node_modules/@typescript-eslint/utils": { - "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.36.2.tgz", - "integrity": "sha512-uNcopWonEITX96v9pefk9DC1bWMdkweeSsewJ6GeC7L6j2t0SJywisgkr9wUTtXk90fi2Eljj90HSHm3OGdGRg==", + "node_modules/acorn-node/node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", "dev": true, - "dependencies": { - "@types/json-schema": "^7.0.9", - "@typescript-eslint/scope-manager": "5.36.2", - "@typescript-eslint/types": "5.36.2", - "@typescript-eslint/typescript-estree": "5.36.2", - "eslint-scope": "^5.1.1", - "eslint-utils": "^3.0.0" + "bin": { + "acorn": "bin/acorn" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "node": ">=0.4.0" } }, - "node_modules/accessory/node_modules/@typescript-eslint/visitor-keys": { - "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.36.2.tgz", - "integrity": "sha512-BtRvSR6dEdrNt7Net2/XDjbYKU5Ml6GqJgVfXT0CxTCJlnIqK7rAGreuWKMT2t8cFUT2Msv5oxw0GMRD7T5J7A==", + "node_modules/acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", "dev": true, - "dependencies": { - "@typescript-eslint/types": "5.36.2", - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "dev": true, - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/acorn-node": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", - "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", - "dev": true, - "dependencies": { - "acorn": "^7.0.0", - "acorn-walk": "^7.0.0", - "xtend": "^4.0.2" - } - }, - "node_modules/acorn-walk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", - "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", - "dev": true, - "license": "MIT", "engines": { "node": ">=0.4.0" } @@ -2780,7 +2643,6 @@ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", "dev": true, - "license": "MIT", "dependencies": { "debug": "4" }, @@ -2852,8 +2714,9 @@ }, "node_modules/ansi-escapes": { "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, - "license": "MIT", "dependencies": { "type-fest": "^0.21.3" }, @@ -2866,8 +2729,9 @@ }, "node_modules/ansi-escapes/node_modules/type-fest": { "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, - "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -2880,7 +2744,6 @@ "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", "integrity": "sha512-ewaIr5y+9CUTGFwZfpECUbFlGcC0GCw1oqR9RI6h1gQCd9Aj2GxSckCnPsVJnmfMZbwFYE+leZGASgkWl06Jow==", "dev": true, - "license": "MIT", "dependencies": { "ansi-wrap": "0.1.0" }, @@ -2893,7 +2756,6 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -2918,7 +2780,6 @@ "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", "integrity": "sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -2936,6 +2797,12 @@ "node": ">= 8" } }, + "node_modules/ap": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/ap/-/ap-0.2.0.tgz", + "integrity": "sha512-ImdvquIuBSVpWRWhB441UjvTcZqic1RL+lTQaUKGdGEp1aiTvt/phAvY8Vvs32qya5FJBI8U+tzNBYzFDQY/lQ==", + "dev": true + }, "node_modules/arg": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", @@ -2943,19 +2810,17 @@ "dev": true }, "node_modules/argparse": { - "version": "1.0.10", - "license": "MIT", - "dependencies": { - "sprintf-js": "~1.0.2" - } + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, "node_modules/aria-query": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz", - "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.2.1.tgz", + "integrity": "sha512-7uFg4b+lETFgdaJyETnILsXgnnzVnkHcgRbwbPwevm5x/LmUlt3MjczMRe1zg824iBgXZNRPTBftNYyRSKLp2g==", "dev": true, "dependencies": { - "deep-equal": "^2.0.5" + "dequal": "^2.0.3" } }, "node_modules/array-buffer-byte-length": { @@ -2991,8 +2856,9 @@ }, "node_modules/array-union": { "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -3083,9 +2949,9 @@ "dev": true }, "node_modules/astring": { - "version": "1.8.4", - "resolved": "https://registry.npmjs.org/astring/-/astring-1.8.4.tgz", - "integrity": "sha512-97a+l2LBU3Op3bBQEff79i/E4jMD2ZLFD8rHx9B6mXyB2uQwhJQYfiDqUwtfjF4QA1F2qs//N6Cw8LetMbQjcw==", + "version": "1.8.6", + "resolved": "https://registry.npmjs.org/astring/-/astring-1.8.6.tgz", + "integrity": "sha512-ISvCdHdlTDlH5IpxQJIex7BWBywFWgjJSVdwst+/iQCoEYnyOaQ95+X1JGshuBjGp6nxKUy1jMgE3zPqN7fQdg==", "bin": { "astring": "bin/astring" } @@ -3101,7 +2967,6 @@ "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.28.1.tgz", "integrity": "sha512-zQAFO1Dlsn69eXaO6+7YZc+v84aquQKbwpzCE3L0stj56ERn9hutFxPopViLjo9G+rWwjozRhgS5KJ25Xy19cQ==", "dev": true, - "license": "MIT", "dependencies": { "gulp-header": "^1.7.1" } @@ -3126,20 +2991,22 @@ } }, "node_modules/axe-core": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.0.tgz", - "integrity": "sha512-M0JtH+hlOL5pLQwHOLNYZaXuhqmvS8oExsqB1SBYgA4Dk7u/xx+YdGHXaK5pyUfed5mYXdlYiphWq3G8cRi5JQ==", + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz", + "integrity": "sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==", "dev": true, "engines": { "node": ">=4" } }, "node_modules/axobject-query": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz", - "integrity": "sha512-goKlv8DZrK9hUh975fnHzhNIO4jUnFCfv/dszV5VwUGDFjI6vQ2VwoyjYjYNEbBE8AH87TduWP5uyDR1D+Iteg==", + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz", + "integrity": "sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==", "dev": true, - "license": "Apache-2.0" + "dependencies": { + "dequal": "^2.0.3" + } }, "node_modules/babel-jest": { "version": "29.5.0", @@ -3178,31 +3045,6 @@ "node": ">=8" } }, - "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-plugin-istanbul/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/babel-plugin-jest-hoist": { "version": "29.5.0", "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.5.0.tgz", @@ -3257,6 +3099,12 @@ "@babel/core": "^7.0.0" } }, + "node_modules/balanced-match": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.2.1.tgz", + "integrity": "sha512-euSOvfze1jPOf85KQOmZ2UcWDJ/dUJukTJdj4o9ZZLyjl7IjdIyE4fAQRSuGrxAjB9nvvvrl4N3bPtRq+W+SyQ==", + "dev": true + }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -3279,18 +3127,44 @@ }, "node_modules/bl": { "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", "dev": true, - "license": "MIT", "dependencies": { "buffer": "^5.5.0", "inherits": "^2.0.4", "readable-stream": "^3.4.0" } }, + "node_modules/bl/node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, "node_modules/bl/node_modules/readable-stream": { - "version": "3.6.0", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dev": true, - "license": "MIT", "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -3322,8 +3196,9 @@ }, "node_modules/braces": { "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dev": true, - "license": "MIT", "dependencies": { "fill-range": "^7.0.1" }, @@ -3355,10 +3230,12 @@ "integrity": "sha512-erYug8XoqzU3IfcU8fUgyHqyOXqIE4tUTTQ+7mqUjQlvnXkOO6OlT9c/ZoJVHYoAaqGxr09CN53G7XIsO4KtWA==", "dev": true, "dependencies": { - "caniuse-lite": "^1.0.30001370", - "electron-to-chromium": "^1.4.202", - "node-releases": "^2.0.6", - "update-browserslist-db": "^1.0.5" + "combine-source-map": "~0.8.0", + "defined": "^1.0.0", + "JSONStream": "^1.0.3", + "safe-buffer": "^5.1.1", + "through2": "^2.0.0", + "umd": "^3.0.0" }, "bin": { "browser-pack": "bin/cmd.js" @@ -3432,7 +3309,7 @@ "browserify": "bin/cmd.js" }, "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + "node": ">= 0.8" } }, "node_modules/browserify-aes": { @@ -3483,9 +3360,9 @@ } }, "node_modules/browserify-shim": { - "version": "3.8.15", - "resolved": "https://registry.npmjs.org/browserify-shim/-/browserify-shim-3.8.15.tgz", - "integrity": "sha512-wACWQv56oVuxIID3JHFg2SCk40grlWUVX1QKKH14czQXE84WCOmbydcGKYt/IQZTGbBBzH+4uWr3wNNQRnak3Q==", + "version": "3.8.16", + "resolved": "https://registry.npmjs.org/browserify-shim/-/browserify-shim-3.8.16.tgz", + "integrity": "sha512-+Ap0xOKUC5Hz8sdUROxCJHgzA5IeU7pgUquCdlbBxyxkexzU4kpU6u1TsIvnFJcdx1bxO902J08AEjbMqDbA3g==", "dev": true, "dependencies": { "exposify": "~0.5.0", @@ -3522,9 +3399,9 @@ } }, "node_modules/browserify-sign/node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dev": true, "dependencies": { "inherits": "^2.0.3", @@ -3544,25 +3421,6 @@ "pako": "~1.0.5" } }, - "node_modules/browserify/node_modules/buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.2.1.tgz", - "integrity": "sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==", - "dev": true, - "dependencies": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4" - } - }, - "node_modules/browserify/node_modules/events": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/events/-/events-2.1.0.tgz", - "integrity": "sha512-3Zmiobend8P9DjmKAty0Era4jV8oJ0yGYe2nJJAxgymF9+N8F2m0hhZiMoWtcfepExzNKZumFU3ksdQbInGWCg==", - "dev": true, - "engines": { - "node": ">=0.4.x" - } - }, "node_modules/browserify/node_modules/path-browserify": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", @@ -3570,9 +3428,9 @@ "dev": true }, "node_modules/browserslist": { - "version": "4.21.4", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz", - "integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==", + "version": "4.21.8", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.8.tgz", + "integrity": "sha512-j+7xYe+v+q2Id9qbBeCI8WX5NmZSRe8es1+0xntD/+gaWXznP8tFEkv5IgSaHf5dS1YwVMbX/4W6m937mj+wQw==", "dev": true, "funding": [ { @@ -3582,13 +3440,17 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ], "dependencies": { - "caniuse-lite": "^1.0.30001400", - "electron-to-chromium": "^1.4.251", - "node-releases": "^2.0.6", - "update-browserslist-db": "^1.0.9" + "caniuse-lite": "^1.0.30001502", + "electron-to-chromium": "^1.4.428", + "node-releases": "^2.0.12", + "update-browserslist-db": "^1.0.11" }, "bin": { "browserslist": "cli.js" @@ -3607,26 +3469,13 @@ } }, "node_modules/buffer": { - "version": "5.7.1", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.2.1.tgz", + "integrity": "sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" + "base64-js": "^1.0.2", + "ieee754": "^1.1.4" } }, "node_modules/buffer-crc32": { @@ -3634,7 +3483,6 @@ "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", "dev": true, - "license": "MIT", "engines": { "node": "*" } @@ -3677,8 +3525,9 @@ }, "node_modules/callsites": { "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -3688,15 +3537,14 @@ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/caniuse-lite": { - "version": "1.0.30001414", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001414.tgz", - "integrity": "sha512-t55jfSaWjCdocnFdKQoO+d2ct9C59UZg4dY3OnUlSZ447r8pUtIKdp0hpAzrGFultmTC+Us+KpKi4GZl/LXlFg==", + "version": "1.0.30001502", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001502.tgz", + "integrity": "sha512-AZ+9tFXw1sS0o0jcpJQIXvFTOB/xGiQ4OQ2t98QX3NDn2EZTSRBC801gxrsGgViuq2ak/NLkNgSNEPtCr5lfKg==", "dev": true, "funding": [ { @@ -3706,6 +3554,10 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ] }, @@ -3730,7 +3582,6 @@ "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" } @@ -3743,8 +3594,9 @@ }, "node_modules/chrome-trace-event": { "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.0" } @@ -3769,12 +3621,15 @@ "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", "dev": true, - "license": "ISC" + "dependencies": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } }, "node_modules/cjs-module-lexer": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", - "integrity": "sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", + "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", "dev": true }, "node_modules/cliui": { @@ -3782,7 +3637,6 @@ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, - "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", @@ -3797,7 +3651,6 @@ "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", "dev": true, - "license": "MIT", "dependencies": { "is-plain-object": "^2.0.4", "kind-of": "^6.0.2", @@ -3807,28 +3660,6 @@ "node": ">=6" } }, - "node_modules/clone-deep/node_modules/is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "license": "MIT", - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/clone-deep/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/clone-deep/node_modules/kind-of": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", @@ -3849,8 +3680,10 @@ }, "node_modules/coffee-script": { "version": "1.12.7", + "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", + "integrity": "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==", + "deprecated": "CoffeeScript on NPM has moved to \"coffeescript\" (no hyphen)", "dev": true, - "license": "MIT", "bin": { "cake": "bin/cake", "coffee": "bin/coffee" @@ -3894,7 +3727,6 @@ "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.8.0.tgz", "integrity": "sha512-UlxQ9Vw0b/Bt/KYwCFqdEwsQ1eL8d1gibiFb7lxQJFdvTgc2hIZi6ugsg+kyhzhPV+QEpUiEIwInIAIrgoEkrg==", "dev": true, - "license": "MIT", "dependencies": { "convert-source-map": "~1.1.0", "inline-source-map": "~0.6.0", @@ -3914,6 +3746,14 @@ "node": ">= 0.8" } }, + "node_modules/commander": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", + "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", + "engines": { + "node": ">= 6" + } + }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -3921,11 +3761,12 @@ }, "node_modules/concat-stream": { "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", "dev": true, "engines": [ "node >= 0.8" ], - "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", "inherits": "^2.0.3", @@ -3935,8 +3776,9 @@ }, "node_modules/concat-with-sourcemaps": { "version": "1.1.0", + "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", + "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", "dev": true, - "license": "ISC", "dependencies": { "source-map": "^0.6.1" } @@ -3979,16 +3821,28 @@ "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", "dev": true, - "license": "MIT" + "dependencies": { + "bn.js": "^4.1.0", + "elliptic": "^6.5.3" + } + }, + "node_modules/create-ecdh/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true }, "node_modules/create-hash": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", "dev": true, - "license": "MIT", "dependencies": { - "node-fetch": "2.6.7" + "cipher-base": "^1.0.1", + "inherits": "^2.0.1", + "md5.js": "^1.3.4", + "ripemd160": "^2.0.1", + "sha.js": "^2.4.0" } }, "node_modules/create-hmac": { @@ -4040,8 +3894,9 @@ }, "node_modules/cross-spawn": { "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, - "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -4108,40 +3963,6 @@ "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", "dev": true }, - "node_modules/deep-equal": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.0.tgz", - "integrity": "sha512-RdpzE0Hv4lhowpIUKKMJfeH6C1pXdtT1/it80ubgWqwI3qpuxUBpC1S4hnHg+zjnuOoDkzUtUCEEkG+XG5l3Mw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "es-get-iterator": "^1.1.2", - "get-intrinsic": "^1.1.3", - "is-arguments": "^1.1.1", - "is-array-buffer": "^3.0.1", - "is-date-object": "^1.0.5", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "isarray": "^2.0.5", - "object-is": "^1.1.5", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", - "side-channel": "^1.0.4", - "which-boxed-primitive": "^1.0.2", - "which-collection": "^1.0.1", - "which-typed-array": "^1.1.9" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/deep-equal/node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true - }, "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", @@ -4153,7 +3974,6 @@ "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -4174,10 +3994,13 @@ } }, "node_modules/defined": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz", - "integrity": "sha512-Y2caI5+ZwS5c3RiNDJ6u53VhQHv+hHKwhkI1iHvceKUHw9Df6EK2zRLfjejRgMuCuxK7PfSWIMwWecceVvThjQ==", - "dev": true + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.1.tgz", + "integrity": "sha512-hsBd2qSVCRE+5PmNdHt1uzyrFu5d3RwmFDKzyNZMFq/EwDNJF7Ee5+D5oEKF0hU6LhtoUF1macFvOe4AskQC1Q==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/delayed-stream": { "version": "1.0.0", @@ -4201,12 +4024,29 @@ "resolved": "https://registry.npmjs.org/deps-sort/-/deps-sort-2.0.1.tgz", "integrity": "sha512-1orqXQr5po+3KI6kQb9A4jnXT1PBwggGl2d7Sq2xsnOeI9GPcE/tGcF9UiSZtZBM7MukY4cAh7MemS6tZYipfw==", "dev": true, - "license": "ISC" + "dependencies": { + "JSONStream": "^1.0.3", + "shasum-object": "^1.0.0", + "subarg": "^1.0.0", + "through2": "^2.0.0" + }, + "bin": { + "deps-sort": "bin/cmd.js" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "dev": true, + "engines": { + "node": ">=6" + } }, "node_modules/des.js": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.1.tgz", - "integrity": "sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.1.0.tgz", + "integrity": "sha512-r17GxjhUCjSRy8aiJpr8/UadFIzMzJGexI3Nmz4ADi9LYSFx4gTBp80+NaX/YsXWWLhpZ7v/v/ubEc/bCNfKwg==", "dev": true, "dependencies": { "inherits": "^2.0.1", @@ -4236,7 +4076,7 @@ "detective": "bin/detective.js" }, "engines": { - "node": ">=8" + "node": ">=0.8.0" } }, "node_modules/devtools-protocol": { @@ -4250,15 +4090,24 @@ "resolved": "https://registry.npmjs.org/diacritics-map/-/diacritics-map-0.1.0.tgz", "integrity": "sha512-3omnDTYrGigU0i4cJjvaKwD52B8aoqyX/NEIkukFFkogBemsIbhSa1O414fpTp5nuszJG6lvQ5vBvDVNCbSsaQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.8.0" } }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, "node_modules/diff-sequences": { "version": "27.5.1", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", + "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", "dev": true, - "license": "MIT", "engines": { "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } @@ -4282,8 +4131,9 @@ }, "node_modules/dir-glob": { "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", "dev": true, - "license": "MIT", "dependencies": { "path-type": "^4.0.0" }, @@ -4293,8 +4143,9 @@ }, "node_modules/doctrine": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "dev": true, - "license": "Apache-2.0", "dependencies": { "esutils": "^2.0.2" }, @@ -4312,25 +4163,31 @@ "npm": ">=1.2" } }, + "node_modules/dot-parts": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dot-parts/-/dot-parts-1.0.1.tgz", + "integrity": "sha512-DcAuaZ2hguFLkxrAwOlvYNFb4IE6xg1Ldzqpma4/UeiT0utd8/E17z1h9mH8s+9Hwh7SeLn83LpIykh/oBBxSw==", + "dev": true + }, "node_modules/duplexer": { "version": "0.1.2", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", + "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", + "dev": true }, "node_modules/duplexer2": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "readable-stream": "^2.0.2" } }, "node_modules/electron-to-chromium": { - "version": "1.4.268", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.268.tgz", - "integrity": "sha512-PO90Bv++vEzdln+eA9qLg1IRnh0rKETus6QkTzcFm5P3Wg3EQBZud5dcnzkpYXuIKWBjKe5CO8zjz02cicvn1g==", + "version": "1.4.428", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.428.tgz", + "integrity": "sha512-L7uUknyY286of0AYC8CKfgWstD0Smk2DvHDi9F0GWQhSH90Bzi7iDrmCbZKz75tYJxeGSAc7TYeKpmbjMDoh1w==", "dev": true }, "node_modules/elliptic": { @@ -4367,25 +4224,25 @@ } }, "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", "dev": true }, "node_modules/end-of-stream": { "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", "dev": true, - "license": "MIT", "dependencies": { "once": "^1.4.0" } }, "node_modules/enhanced-resolve": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.13.0.tgz", - "integrity": "sha512-eyV8f0y1+bzyfh8xAwW/WTSZpLbjhqc4ne9eGSH4Zo2ejdyiNG9pU6mf9DG8a7+Auk6MFTlNOT4Y2y/9k8GKVg==", + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", + "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", "dev": true, - "license": "MIT", "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.2.0" @@ -4396,8 +4253,9 @@ }, "node_modules/envinfo": { "version": "7.8.1", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", + "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", "dev": true, - "license": "MIT", "bin": { "envinfo": "dist/cli.js" }, @@ -4407,8 +4265,9 @@ }, "node_modules/error-ex": { "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "dev": true, - "license": "MIT", "dependencies": { "is-arrayish": "^0.2.1" } @@ -4480,36 +4339,10 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/es-get-iterator": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", - "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "has-symbols": "^1.0.3", - "is-arguments": "^1.1.1", - "is-map": "^2.0.2", - "is-set": "^2.0.2", - "is-string": "^1.0.7", - "isarray": "^2.0.5", - "stop-iteration-iterator": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-get-iterator/node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true - }, "node_modules/es-module-lexer": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.2.1.tgz", - "integrity": "sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.3.0.tgz", + "integrity": "sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA==", "dev": true }, "node_modules/es-set-tostringtag": { @@ -4552,8 +4385,9 @@ }, "node_modules/escalade": { "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -4636,17 +4470,16 @@ } }, "node_modules/eslint": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.38.0.tgz", - "integrity": "sha512-pIdsD2jwlUGf/U38Jv97t8lq6HpaU/G9NKbYmpWpZGw3LdTNhZLbJePqxOXGB5+JEKfOPU/XLxYxFh03nr1KTg==", + "version": "8.42.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.42.0.tgz", + "integrity": "sha512-ulg9Ms6E1WPf67PHaEY4/6E2tEn5/f7FXGzr3t9cBMugOmf1INYvuUwwh1aXQN4MfJ6a5K2iNwP3w4AColvI9A==", "dev": true, - "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.0.2", - "@eslint/js": "8.38.0", - "@humanwhocodes/config-array": "^0.11.8", + "@eslint/eslintrc": "^2.0.3", + "@eslint/js": "8.42.0", + "@humanwhocodes/config-array": "^0.11.10", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", "ajv": "^6.10.0", @@ -4655,9 +4488,9 @@ "debug": "^4.3.2", "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.1.1", - "eslint-visitor-keys": "^3.4.0", - "espree": "^9.5.1", + "eslint-scope": "^7.2.0", + "eslint-visitor-keys": "^3.4.1", + "espree": "^9.5.2", "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", @@ -4665,13 +4498,12 @@ "find-up": "^5.0.0", "glob-parent": "^6.0.2", "globals": "^13.19.0", - "grapheme-splitter": "^1.0.4", + "graphemer": "^1.4.0", "ignore": "^5.2.0", "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "is-path-inside": "^3.0.3", - "js-sdsl": "^4.1.4", "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", @@ -4710,7 +4542,6 @@ "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", "dev": true, - "license": "MIT", "dependencies": { "debug": "^3.2.7", "is-core-module": "^2.11.0", @@ -4727,17 +4558,20 @@ } }, "node_modules/eslint-module-utils": { - "version": "2.7.4", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", "dev": true, - "license": "MIT", "dependencies": { "debug": "^3.2.7" }, "engines": { - "node": ">=12" + "node": ">=4" }, - "peerDependencies": { - "eslint": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" + "peerDependenciesMeta": { + "eslint": { + "optional": true + } } }, "node_modules/eslint-module-utils/node_modules/debug": { @@ -4763,14 +4597,21 @@ }, "node_modules/eslint-plugin-eslint-comments": { "version": "3.2.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz", + "integrity": "sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==", "dev": true, - "license": "MIT", "dependencies": { "escape-string-regexp": "^1.0.5", "ignore": "^5.0.5" }, "engines": { - "node": ">=8.0.0" + "node": ">=6.5.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=4.19.1" } }, "node_modules/eslint-plugin-eslint-comments/node_modules/escape-string-regexp": { @@ -4798,9 +4639,9 @@ } }, "node_modules/eslint-plugin-github": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-4.7.0.tgz", - "integrity": "sha512-SIFSy6IXtN3aGQ6YyFWg/oxRUyAcYwg5G0wh+ov1HQCvmp+Pzs1GzeVjU8QcIQSSJfverQzuxWrJCAln/d2PuQ==", + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-4.8.0.tgz", + "integrity": "sha512-1qu1qcyac4FfZmT9KNPr5250DwWzwp6uy6xAqHD2boE4OquUpeTni05yPn1b6y6vUYm/q8+npTdyYiRSqvg+BQ==", "dev": true, "dependencies": { "@github/browserslist-config": "^1.0.0", @@ -4926,12 +4767,6 @@ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" } }, - "node_modules/eslint-plugin-jsx-a11y/node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - }, "node_modules/eslint-plugin-jsx-a11y/node_modules/semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", @@ -4972,9 +4807,9 @@ } }, "node_modules/eslint-plugin-security": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-1.5.0.tgz", - "integrity": "sha512-hAFVwLZ/UeXrlyVD2TDarv/x00CoFVpaY0IUZhKjPjiFxqkuQVixsK4f2rxngeQOqSxi6OUjzJM/jMwKEVjJ8g==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-1.7.1.tgz", + "integrity": "sha512-sMStceig8AFglhhT2LqlU5r+/fn9OwsA72O5bBuQVTssPCdQAOQzL+oMn/ZcpeUY6KcNfLJArgcrsSULNjYYdQ==", "dev": true, "dependencies": { "safe-regex": "^2.1.1" @@ -4985,9 +4820,11 @@ "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.15.0.tgz", "integrity": "sha512-LuxHdAe6VqSbi1phsUvNjbmXLuvlobmryQJJNyQYbdubCfz6K8tmgoqNiJPnz0pP2AbYDbtuPm0ajOMgMrC+dQ==", "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.1" + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "eslint": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" } }, "node_modules/eslint-rule-documentation": { @@ -5012,37 +4849,10 @@ "node": ">=8.0.0" } }, - "node_modules/eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^2.0.0" - }, - "engines": { - "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=5" - } - }, - "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/eslint-visitor-keys": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.0.tgz", - "integrity": "sha512-HPpKPUBQcAsZOsHAFwTtIKcYlCje62XB7SEAcxjtmW6TD1WVpkS6i6/hOVtTZIl4zGj/mBqpFVGvaDneik+VoQ==", + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -5092,18 +4902,6 @@ "node": ">=4.0" } }, - "node_modules/eslint/node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, "node_modules/eslint/node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", @@ -5111,15 +4909,14 @@ "dev": true }, "node_modules/espree": { - "version": "9.5.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.1.tgz", - "integrity": "sha512-5yxtHSZXRSW5pvv3hAlXM5+/Oswi1AUFqBmbibKb5s6bp3rGIDkyXU6xCoyuuLhijr4SFwPrXRoZjz0AZDN9tg==", + "version": "9.5.2", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", + "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { "acorn": "^8.8.0", "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.0" + "eslint-visitor-keys": "^3.4.1" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -5128,21 +4925,10 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/espree/node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/esprima": { "version": "4.0.1", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "bin": { "esparse": "bin/esparse.js", "esvalidate": "bin/esvalidate.js" @@ -5169,7 +4955,6 @@ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "estraverse": "^5.1.0" }, @@ -5188,8 +4973,9 @@ }, "node_modules/esrecurse": { "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { "estraverse": "^5.2.0" }, @@ -5202,7 +4988,6 @@ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true, - "license": "BSD-2-Clause", "engines": { "node": ">=4.0" } @@ -5221,7 +5006,6 @@ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true, - "license": "BSD-2-Clause", "engines": { "node": ">=0.10.0" } @@ -5235,11 +5019,12 @@ } }, "node_modules/events": { - "version": "3.3.0", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/events/-/events-2.1.0.tgz", + "integrity": "sha512-3Zmiobend8P9DjmKAty0Era4jV8oJ0yGYe2nJJAxgymF9+N8F2m0hhZiMoWtcfepExzNKZumFU3ksdQbInGWCg==", "dev": true, - "license": "MIT", "engines": { - "node": ">=0.8.x" + "node": ">=0.4.x" } }, "node_modules/evp_bytestokey": { @@ -5257,7 +5042,6 @@ "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, - "license": "MIT", "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", @@ -5278,6 +5062,8 @@ }, "node_modules/exit": { "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", "dev": true, "engines": { "node": ">= 0.8.0" @@ -5288,7 +5074,6 @@ "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", "integrity": "sha512-AFASGfIlnIbkKPQwX1yHaDjFvh/1gyKJODme52V6IORh69uEYgZp0o9C+qsIGNVEiuuhQU0CSSl++Rlegg1qvA==", "dev": true, - "license": "MIT", "dependencies": { "fill-range": "^2.1.0" }, @@ -5301,7 +5086,6 @@ "resolved": "https://registry.npmjs.org/expect/-/expect-29.5.0.tgz", "integrity": "sha512-yM7xqUrCO2JdpFo4XpM82t+PJBFybdqoQuJLDGeDX2ij8NZzqRHyu3Hp188/JX7SWqud+7t4MUdvcgGBICMHZg==", "dev": true, - "license": "MIT", "dependencies": { "@jest/expect-utils": "^29.5.0", "jest-get-type": "^29.4.3", @@ -5389,7 +5173,6 @@ "resolved": "https://registry.npmjs.org/exposify/-/exposify-0.5.0.tgz", "integrity": "sha512-SXS1oEW6VXYinz7RbTPUj+RhO3ZXuj2cmUTWTaO8KcWMcxLZF3wzjqSuaOW0EZYBoKooUM8DIkvfWWOMXTMQFQ==", "dev": true, - "license": "MIT", "dependencies": { "globo": "~1.1.0", "map-obj": "~1.0.1", @@ -5447,7 +5230,7 @@ "object-keys": "~0.4.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": ">=0.4" } }, "node_modules/extend-shallow": { @@ -5455,7 +5238,6 @@ "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", "dev": true, - "license": "MIT", "dependencies": { "is-extendable": "^0.1.0" }, @@ -5465,8 +5247,9 @@ }, "node_modules/extract-zip": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", + "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { "debug": "^4.1.1", "get-stream": "^5.1.0", @@ -5484,8 +5267,9 @@ }, "node_modules/extract-zip/node_modules/get-stream": { "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", "dev": true, - "license": "MIT", "dependencies": { "pump": "^3.0.0" }, @@ -5502,9 +5286,9 @@ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, "node_modules/fast-diff": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", - "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", "dev": true }, "node_modules/fast-glob": { @@ -5512,7 +5296,6 @@ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", "dev": true, - "license": "MIT", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -5524,9 +5307,22 @@ "node": ">=8.6.0" } }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" }, "node_modules/fast-levenshtein": { "version": "2.0.6", @@ -5539,6 +5335,12 @@ "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz", "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==" }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", + "dev": true + }, "node_modules/fastest-levenshtein": { "version": "1.0.16", "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", @@ -5553,7 +5355,6 @@ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", "dev": true, - "license": "ISC", "dependencies": { "reusify": "^1.0.4" } @@ -5572,15 +5373,15 @@ "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", "dev": true, - "license": "MIT", "dependencies": { "pend": "~1.2.0" } }, "node_modules/file-entry-cache": { "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", "dev": true, - "license": "MIT", "dependencies": { "flat-cache": "^3.0.4" }, @@ -5593,7 +5394,6 @@ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", "dev": true, - "license": "MIT", "dependencies": { "is-number": "^2.1.0", "isobject": "^2.0.0", @@ -5616,7 +5416,6 @@ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, - "license": "MIT", "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" @@ -5628,19 +5427,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/find-up/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/flat-cache": { "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", "dev": true, - "license": "MIT", "dependencies": { "flatted": "^3.1.0", "rimraf": "^3.0.2" @@ -5668,7 +5459,6 @@ "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -5678,7 +5468,6 @@ "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", "dev": true, - "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", @@ -5690,8 +5479,9 @@ }, "node_modules/fs-constants": { "version": "1.0.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", + "dev": true }, "node_modules/fs.realpath": { "version": "1.0.0", @@ -5735,12 +5525,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", - "dev": true - }, "node_modules/functions-have-names": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", @@ -5766,19 +5550,21 @@ }, "node_modules/get-caller-file": { "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true, - "license": "ISC", "engines": { "node": "6.* || 8.* || >= 10.*" } }, "node_modules/get-intrinsic": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", - "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", "dependencies": { "function-bind": "^1.1.1", "has": "^1.0.3", + "has-proto": "^1.0.1", "has-symbols": "^1.0.3" }, "funding": { @@ -5787,16 +5573,18 @@ }, "node_modules/get-package-type": { "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8.0.0" } }, "node_modules/get-stream": { "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" }, @@ -5824,7 +5612,6 @@ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "dev": true, - "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -5841,14 +5628,15 @@ } }, "node_modules/glob-parent": { - "version": "5.1.2", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, - "license": "ISC", "dependencies": { - "is-glob": "^4.0.1" + "is-glob": "^4.0.3" }, "engines": { - "node": ">= 6" + "node": ">=10.13.0" } }, "node_modules/glob-to-regexp": { @@ -5862,7 +5650,6 @@ "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", "dev": true, - "license": "MIT", "dependencies": { "type-fest": "^0.20.2" }, @@ -5875,7 +5662,8 @@ }, "node_modules/globalthis": { "version": "1.0.3", - "license": "MIT", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", "dependencies": { "define-properties": "^1.1.3" }, @@ -5891,7 +5679,6 @@ "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dev": true, - "license": "MIT", "dependencies": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", @@ -5933,9 +5720,9 @@ } }, "node_modules/graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true }, "node_modules/grapheme-splitter": { @@ -5944,12 +5731,17 @@ "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", "dev": true }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, "node_modules/gray-matter": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-2.1.1.tgz", "integrity": "sha512-vbmvP1Fe/fxuT2QuLVcqb2BfK7upGhhbLIt9/owWEvPYrZZEkelLcq2HqzxosV+PQ67dUFLaAeNpH7C4hhICAA==", "dev": true, - "license": "MIT", "dependencies": { "ansi-red": "^0.1.1", "coffee-script": "^1.12.4", @@ -5961,6 +5753,15 @@ "node": ">=0.10.0" } }, + "node_modules/gray-matter/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, "node_modules/gray-matter/node_modules/js-yaml": { "version": "3.14.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", @@ -5976,8 +5777,10 @@ }, "node_modules/gulp-header": { "version": "1.8.12", + "resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.12.tgz", + "integrity": "sha512-lh9HLdb53sC7XIZOYzTXM4lFuXElv3EVkSDhsd7DoJBj7hm+Ni7D3qYbb+Rr8DuM8nRanBvkVO9d7askreXGnQ==", + "deprecated": "Removed event-stream from gulp-header", "dev": true, - "license": "MIT", "dependencies": { "concat-with-sourcemaps": "*", "lodash.template": "^4.4.0", @@ -5989,7 +5792,6 @@ "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", "dev": true, - "license": "MIT", "dependencies": { "duplexer": "^0.1.2" }, @@ -6056,10 +5858,16 @@ "integrity": "sha512-JHMVoV2TG3LEFw/8UjxXJzCRGdOHJzzAXft7BafERh2rdPYZcS5N6Twv7Q8yLy9mciKsVBkXmpWSuLp5GUXNng==", "dev": true, "dependencies": { - "get-intrinsic": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "escape-string-regexp": "^1.0.3" + } + }, + "node_modules/has-require/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" } }, "node_modules/has-symbols": { @@ -6102,9 +5910,9 @@ } }, "node_modules/hash-base/node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dev": true, "dependencies": { "inherits": "^2.0.3", @@ -6162,7 +5970,6 @@ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", "dev": true, - "license": "MIT", "dependencies": { "agent-base": "6", "debug": "4" @@ -6176,7 +5983,6 @@ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true, - "license": "Apache-2.0", "engines": { "node": ">=10.17.0" } @@ -6206,7 +6012,6 @@ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", "dev": true, - "license": "MIT", "engines": { "node": ">= 4" } @@ -6225,7 +6030,6 @@ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", "dev": true, - "license": "MIT", "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" @@ -6237,19 +6041,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/import-fresh/node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/import-local": { "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", "dev": true, - "license": "MIT", "dependencies": { "pkg-dir": "^4.2.0", "resolve-cwd": "^3.0.0" @@ -6269,7 +6065,6 @@ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.8.19" } @@ -6279,7 +6074,6 @@ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "dev": true, - "license": "ISC", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -6287,15 +6081,18 @@ }, "node_modules/inherits": { "version": "2.0.4", - "dev": true, - "license": "ISC" + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true }, "node_modules/inline-source-map": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.6.2.tgz", "integrity": "sha512-0mVWSSbNDvedDWIN4wxLsdPM4a7cIPcpyMxj3QZ406QRwQ6ePGB1YIHxVPjqpcUGbWQ5C+nHTwGNWAGvt7ggVA==", "dev": true, - "license": "ISC" + "dependencies": { + "source-map": "~0.5.3" + } }, "node_modules/insert-module-globals": { "version": "7.2.1", @@ -6331,20 +6128,13 @@ "node": ">= 0.4" } }, - "node_modules/is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "node_modules/interpret": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", + "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">= 0.10" } }, "node_modules/is-array-buffer": { @@ -6394,8 +6184,9 @@ }, "node_modules/is-buffer": { "version": "1.1.6", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true }, "node_modules/is-callable": { "version": "1.2.7", @@ -6409,9 +6200,9 @@ } }, "node_modules/is-core-module": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.0.tgz", - "integrity": "sha512-RECHCBCd/viahWmwj6enj19sKbHfJrddi/6cBDsNTKbNq0f7VeaUkBo60BqzvPqo/W54ChS62Z5qyun7cfOMqQ==", + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", + "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", "dev": true, "dependencies": { "has": "^1.0.3" @@ -6445,7 +6236,6 @@ "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -6455,7 +6245,6 @@ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -6465,7 +6254,6 @@ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -6484,7 +6272,6 @@ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, - "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" }, @@ -6492,15 +6279,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-map": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", - "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-negative-zero": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", @@ -6547,6 +6325,27 @@ "node": ">=8" } }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-plain-object/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/is-regex": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", @@ -6562,15 +6361,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-set": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", - "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-shared-array-buffer": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", @@ -6587,7 +6377,6 @@ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" }, @@ -6641,15 +6430,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-weakmap": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", - "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-weakref": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", @@ -6661,19 +6441,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-weakset": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", - "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", @@ -6691,7 +6458,6 @@ "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", "dev": true, - "license": "MIT", "dependencies": { "isarray": "1.0.0" }, @@ -6708,26 +6474,51 @@ "node": ">=8" } }, - "node_modules/istanbul-lib-report": { - "version": "3.0.0", + "node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", - "supports-color": "^7.1.0" + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" }, "engines": { "node": ">=8" } }, - "node_modules/istanbul-lib-source-maps": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { "debug": "^4.1.1", "istanbul-lib-coverage": "^3.0.0", "source-map": "^0.6.1" @@ -6750,7 +6541,6 @@ "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" @@ -6764,7 +6554,6 @@ "resolved": "https://registry.npmjs.org/jest/-/jest-29.5.0.tgz", "integrity": "sha512-juMg3he2uru1QoXX078zTa7pO85QyB9xajZc6bU+d9yEGwrKX6+vGmJQ3UdVZsvTEUARIdObzH68QItim6OSSQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/core": "^29.5.0", "@jest/types": "^29.5.0", @@ -6799,21 +6588,6 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-changed-files/node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/jest-circus": { "version": "29.5.0", "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.5.0.tgz", @@ -6896,21 +6670,6 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-circus/node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/jest-circus/node_modules/pretty-format": { "version": "29.5.0", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", @@ -7403,21 +7162,6 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-runner/node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/jest-runtime": { "version": "29.5.0", "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.5.0.tgz", @@ -7683,20 +7427,11 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, - "node_modules/js-sdsl": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.4.0.tgz", - "integrity": "sha512-FfVSdx6pJ41Oa+CF7RDaFmTnCaFhua+SNYQX74riGOpl96x+2jQCqEfQ2bnXu/5DPCqlRuiqyvTJM0Qjz26IVg==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/js-sdsl" - } - }, "node_modules/js-tokens": { "version": "4.0.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true }, "node_modules/js-yaml": { "version": "4.1.0", @@ -7709,11 +7444,6 @@ "js-yaml": "bin/js-yaml.js" } }, - "node_modules/js-yaml/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - }, "node_modules/jsep": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.3.8.tgz", @@ -7724,8 +7454,9 @@ }, "node_modules/jsesc": { "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", "dev": true, - "license": "MIT", "bin": { "jsesc": "bin/jsesc" }, @@ -7735,8 +7466,9 @@ }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true }, "node_modules/json-schema-migrate": { "version": "0.2.0", @@ -7772,6 +7504,15 @@ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, + "node_modules/json-stable-stringify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz", + "integrity": "sha512-nKtD/Qxm7tWdZqJoldEC7fF0S41v0mWbeaXG3637stOWfyGxTgWTYE2wtfKmjzpvxv2MA2xzxsXOIiwUpkX6Qw==", + "dev": true, + "dependencies": { + "jsonify": "~0.0.0" + } + }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", @@ -7795,6 +7536,15 @@ "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.2.1.tgz", "integrity": "sha512-o6/yDBYccGvTz1+QFevz6l6OBZ2+fMVu2JZ9CIhzsYRX4mjaK5IyX9eldUdCmga16zlgQxyrj5pt9kzuj2C02w==" }, + "node_modules/jsonify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", + "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/jsonparse": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", @@ -7802,8 +7552,7 @@ "dev": true, "engines": [ "node >= 0.2.0" - ], - "license": "MIT" + ] }, "node_modules/jsonpath-plus": { "version": "7.2.0", @@ -7823,8 +7572,9 @@ }, "node_modules/JSONStream": { "version": "1.3.5", + "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", + "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", "dev": true, - "license": "(MIT OR Apache-2.0)", "dependencies": { "jsonparse": "^1.2.0", "through": ">=2.2.7 <3" @@ -7854,7 +7604,6 @@ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", "dev": true, - "license": "MIT", "dependencies": { "is-buffer": "^1.1.5" }, @@ -7901,7 +7650,6 @@ "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", "integrity": "sha512-7vp2Acd2+Kz4XkzxGxaB1FWOi8KjWIWsgdfD5MCb86DWvlLqhRPM+d6Pro3iNEL5VT9mstz5hKAlcd+QR6H3aA==", "dev": true, - "license": "MIT", "dependencies": { "set-getter": "^0.1.0" }, @@ -7919,8 +7667,9 @@ }, "node_modules/levn": { "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dev": true, - "license": "MIT", "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" @@ -7940,7 +7689,6 @@ "resolved": "https://registry.npmjs.org/list-item/-/list-item-1.1.1.tgz", "integrity": "sha512-S3D0WZ4J6hyM8o5SNKWaMYB1ALSacPZ2nHGEuCjmHZ+dc03gFeNZoNDcqfcnO4vDhTZmNrqrpYZCdXsRh22bzw==", "dev": true, - "license": "MIT", "dependencies": { "expand-range": "^1.8.1", "extend-shallow": "^2.0.1", @@ -7953,8 +7701,9 @@ }, "node_modules/loader-runner": { "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6.11.5" } @@ -7964,7 +7713,6 @@ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, - "license": "MIT", "dependencies": { "p-locate": "^5.0.0" }, @@ -8006,8 +7754,9 @@ }, "node_modules/lodash.merge": { "version": "4.6.2", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true }, "node_modules/lodash.snakecase": { "version": "4.1.1", @@ -8017,8 +7766,9 @@ }, "node_modules/lodash.template": { "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", + "integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==", "dev": true, - "license": "MIT", "dependencies": { "lodash._reinterpolate": "^3.0.0", "lodash.templatesettings": "^4.0.0" @@ -8026,8 +7776,9 @@ }, "node_modules/lodash.templatesettings": { "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz", + "integrity": "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==", "dev": true, - "license": "MIT", "dependencies": { "lodash._reinterpolate": "^3.0.0" } @@ -8044,20 +7795,19 @@ "dev": true }, "node_modules/lru-cache": { - "version": "6.0.0", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, - "license": "ISC", "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" + "yallist": "^3.0.2" } }, "node_modules/make-dir": { "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", "dev": true, - "license": "MIT", "dependencies": { "semver": "^6.0.0" }, @@ -8070,8 +7820,9 @@ }, "node_modules/make-dir/node_modules/semver": { "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" } @@ -8087,7 +7838,6 @@ "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "tmpl": "1.0.5" } @@ -8106,15 +7856,15 @@ "resolved": "https://registry.npmjs.org/markdown-link/-/markdown-link-0.1.1.tgz", "integrity": "sha512-TurLymbyLyo+kAUUAV9ggR9EPcDjP/ctlv9QAFiqUH7c+t6FlsbivPo9OKTU8xdOx9oNd2drW/Fi5RRElQbUqA==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/markdown-toc": { "version": "1.2.0", + "resolved": "https://registry.npmjs.org/markdown-toc/-/markdown-toc-1.2.0.tgz", + "integrity": "sha512-eOsq7EGd3asV0oBfmyqngeEIhrbkc7XVP63OwcJBIhH2EpG2PzFcbZdhy1jutXSlRBBVMNXHvMtSr5LAxSUvUg==", "dev": true, - "license": "MIT", "dependencies": { "concat-stream": "^1.5.2", "diacritics-map": "^0.1.0", @@ -8138,12 +7888,9 @@ }, "node_modules/math-random": { "version": "1.0.4", - "dev": true, - "dependencies": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } + "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.4.tgz", + "integrity": "sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A==", + "dev": true }, "node_modules/md5.js": { "version": "1.3.5", @@ -8158,13 +7905,15 @@ }, "node_modules/merge-stream": { "version": "2.0.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true }, "node_modules/merge2": { "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 8" } @@ -8174,7 +7923,6 @@ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", "dev": true, - "license": "MIT", "dependencies": { "braces": "^3.0.2", "picomatch": "^2.3.1" @@ -8204,16 +7952,18 @@ }, "node_modules/mime-db": { "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.6" } }, "node_modules/mime-types": { "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dev": true, - "license": "MIT", "dependencies": { "mime-db": "1.52.0" }, @@ -8223,8 +7973,9 @@ }, "node_modules/mimic-fn": { "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -8253,15 +8004,19 @@ } }, "node_modules/minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", - "dev": true + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/mixin-deep": { "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", "dev": true, - "license": "MIT", "dependencies": { "for-in": "^1.0.2", "is-extendable": "^1.0.1" @@ -8272,8 +8027,9 @@ }, "node_modules/mixin-deep/node_modules/is-extendable": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", "dev": true, - "license": "MIT", "dependencies": { "is-plain-object": "^2.0.4" }, @@ -8281,24 +8037,6 @@ "node": ">=0.10.0" } }, - "node_modules/mixin-deep/node_modules/is-plain-object": { - "version": "2.0.4", - "dev": true, - "license": "MIT", - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/mixin-deep/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", - "dev": true, - "license": "MIT" - }, "node_modules/mkdirp-classic": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", @@ -8354,8 +8092,9 @@ }, "node_modules/ms": { "version": "2.1.2", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true }, "node_modules/natural-compare": { "version": "1.4.0", @@ -8404,7 +8143,8 @@ }, "node_modules/node-fetch": { "version": "2.6.7", - "license": "MIT", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", + "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -8427,9 +8167,9 @@ "dev": true }, "node_modules/node-releases": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", - "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==", + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", + "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==", "dev": true }, "node_modules/normalize-path": { @@ -8437,15 +8177,15 @@ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/npm-run-path": { "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, - "license": "MIT", "dependencies": { "path-key": "^3.0.0" }, @@ -8458,21 +8198,8 @@ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^4.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/object-assign/node_modules/ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", - "dev": true, "engines": { - "node": ">=6" + "node": ">=0.10.0" } }, "node_modules/object-inspect": { @@ -8483,22 +8210,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/object-is": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", - "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/object-keys": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", @@ -8560,7 +8271,6 @@ "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", "integrity": "sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==", "dev": true, - "license": "MIT", "dependencies": { "isobject": "^3.0.1" }, @@ -8573,17 +8283,8 @@ "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1" - }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=0.10.0" } }, "node_modules/object.values": { @@ -8608,7 +8309,6 @@ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dev": true, - "license": "ISC", "dependencies": { "wrappy": "1" } @@ -8618,7 +8318,6 @@ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, - "license": "MIT", "dependencies": { "mimic-fn": "^2.1.0" }, @@ -8634,15 +8333,15 @@ "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", "dev": true, - "license": "(WTFPL OR MIT)", "bin": { "opener": "bin/opener-bin.js" } }, "node_modules/optionator": { "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", "dev": true, - "license": "MIT", "dependencies": { "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", @@ -8662,15 +8361,15 @@ "dev": true }, "node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "dependencies": { - "p-try": "^2.0.0" + "yocto-queue": "^0.1.0" }, "engines": { - "node": ">=6" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -8681,7 +8380,6 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, - "license": "MIT", "dependencies": { "p-limit": "^3.0.2" }, @@ -8692,28 +8390,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/p-locate/node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -8726,8 +8407,9 @@ }, "node_modules/parent-module": { "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, - "license": "MIT", "dependencies": { "callsites": "^3.0.0" }, @@ -8762,7 +8444,6 @@ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", @@ -8791,20 +8472,29 @@ "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", "dev": true }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/path-key": { "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -8820,7 +8510,9 @@ "resolved": "https://registry.npmjs.org/path-platform/-/path-platform-0.11.15.tgz", "integrity": "sha512-Y30dB6rab1A/nfEKsZxmr01nUotHX0c/ZiIAsCTatEe1CmS5Pm5He7fZ195bPT7RdquoaL8lLxFCMQi/bS7IJg==", "dev": true, - "license": "MIT" + "engines": { + "node": ">= 0.8.0" + } }, "node_modules/path-type": { "version": "4.0.0", @@ -8864,7 +8556,6 @@ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, - "license": "MIT", "engines": { "node": ">=8.6" }, @@ -8877,15 +8568,15 @@ "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", "dev": true, - "license": "MIT", "engines": { "node": ">= 6" } }, "node_modules/pkg-dir": { "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, - "license": "MIT", "dependencies": { "find-up": "^4.0.0" }, @@ -8895,8 +8586,9 @@ }, "node_modules/pkg-dir/node_modules/find-up": { "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, - "license": "MIT", "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -8907,8 +8599,9 @@ }, "node_modules/pkg-dir/node_modules/locate-path": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, - "license": "MIT", "dependencies": { "p-locate": "^4.1.0" }, @@ -8916,21 +8609,29 @@ "node": ">=8" } }, - "node_modules/pkg-dir/node_modules/p-locate": { - "version": "4.1.0", + "node_modules/pkg-dir/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, - "license": "MIT", "dependencies": { - "p-limit": "^2.2.0" + "p-try": "^2.0.0" }, "engines": { - "node": ">=8" + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/pkg-dir/node_modules/path-exists": { - "version": "4.0.0", + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, - "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" + }, "engines": { "node": ">=8" } @@ -8945,16 +8646,17 @@ }, "node_modules/prelude-ls": { "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true, - "license": "MIT", "engines": { "node": ">= 0.8.0" } }, "node_modules/prettier": { - "version": "2.8.7", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.7.tgz", - "integrity": "sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw==", + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", "dev": true, "bin": { "prettier": "bin-prettier.js" @@ -8968,8 +8670,9 @@ }, "node_modules/prettier-linter-helpers": { "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", "dev": true, - "license": "MIT", "dependencies": { "fast-diff": "^1.1.2" }, @@ -8979,8 +8682,9 @@ }, "node_modules/pretty-format": { "version": "27.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", + "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", "dev": true, - "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1", "ansi-styles": "^5.0.0", @@ -8992,8 +8696,9 @@ }, "node_modules/pretty-format/node_modules/ansi-styles": { "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, - "license": "MIT", "engines": { "node": ">=10" }, @@ -9006,15 +8711,8 @@ "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", "dev": true, - "license": "MIT", - "bin": { - "prettier": "bin-prettier.js" - }, "engines": { - "node": ">=10.13.0" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" + "node": ">= 0.6.0" } }, "node_modules/process-nextick-args": { @@ -9025,8 +8723,9 @@ }, "node_modules/progress": { "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.4.0" } @@ -9055,12 +8754,26 @@ "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", "dev": true, - "license": "MIT" + "dependencies": { + "bn.js": "^4.1.0", + "browserify-rsa": "^4.0.0", + "create-hash": "^1.1.0", + "parse-asn1": "^5.0.0", + "randombytes": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "node_modules/public-encrypt/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true }, "node_modules/pump": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", "dev": true, - "license": "MIT", "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" @@ -9079,7 +8792,6 @@ "deprecated": "< 19.4.0 is no longer supported", "dev": true, "hasInstallScript": true, - "license": "Apache-2.0", "dependencies": { "cross-fetch": "3.1.5", "debug": "4.3.4", @@ -9098,9 +8810,9 @@ } }, "node_modules/pure-rand": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.1.tgz", - "integrity": "sha512-t+x1zEHDjBwkDGY5v5ApnZ/utcd4XYDiJsaQQoptTXgUXX95sDg1elCdJghzicm7n2mbCBJ3uYWr6M22SO19rg==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.2.tgz", + "integrity": "sha512-6Yg0ekpKICSjPswYOuC5sku/TSWaRYlA0qsXqJgM/d/4pLPHPuTxK7Nbf7jFKzAeedUhR8C7K9Uv63FBsSo8xQ==", "dev": true, "funding": [ { @@ -9113,14 +8825,19 @@ } ] }, - "node_modules/querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g==", - "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", + "node_modules/qs": { + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz", + "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==", "dev": true, + "dependencies": { + "side-channel": "^1.0.4" + }, "engines": { - "node": ">=0.4.x" + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/querystring-es3": { @@ -9154,7 +8871,8 @@ }, "node_modules/ramldt2jsonschema": { "version": "1.2.3", - "license": "Apache-2.0", + "resolved": "https://registry.npmjs.org/ramldt2jsonschema/-/ramldt2jsonschema-1.2.3.tgz", + "integrity": "sha512-+wLDAV2NNv9NkfEUOYStaDu/6RYgYXeC1zLtXE+dMU/jDfjpN4iJnBGycDwFTFaIQGosOQhxph7fEX6Mpwxdug==", "dependencies": { "commander": "^5.0.0", "js-yaml": "^3.14.0", @@ -9166,17 +8884,18 @@ "js2dt": "bin/js2dt.js" } }, - "node_modules/ramldt2jsonschema/node_modules/commander": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", - "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", - "engines": { - "node": ">= 6" + "node_modules/ramldt2jsonschema/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dependencies": { + "sprintf-js": "~1.0.2" } }, "node_modules/ramldt2jsonschema/node_modules/js-yaml": { "version": "3.14.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -9187,8 +8906,9 @@ }, "node_modules/randomatic": { "version": "3.1.1", + "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", + "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", "dev": true, - "license": "MIT", "dependencies": { "is-number": "^4.0.0", "kind-of": "^6.0.0", @@ -9200,24 +8920,27 @@ }, "node_modules/randomatic/node_modules/is-number": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/randomatic/node_modules/kind-of": { "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/randombytes": { "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dev": true, - "license": "MIT", "dependencies": { "safe-buffer": "^5.1.0" } @@ -9234,8 +8957,9 @@ }, "node_modules/react-is": { "version": "17.0.2", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "dev": true }, "node_modules/read-only-stream": { "version": "2.0.0", @@ -9247,9 +8971,10 @@ } }, "node_modules/readable-stream": { - "version": "2.3.7", + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", "dev": true, - "license": "MIT", "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -9277,8 +9002,9 @@ }, "node_modules/rechoir": { "version": "0.7.1", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", + "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", "dev": true, - "license": "MIT", "dependencies": { "resolve": "^1.9.0" }, @@ -9293,20 +9019,22 @@ "dev": true }, "node_modules/regexp-tree": { - "version": "0.1.24", + "version": "0.1.27", + "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.27.tgz", + "integrity": "sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==", "dev": true, - "license": "MIT", "bin": { "regexp-tree": "bin/regexp-tree" } }, "node_modules/regexp.prototype.flags": { - "version": "1.4.3", - "license": "MIT", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", + "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "functions-have-names": "^1.2.2" + "define-properties": "^1.2.0", + "functions-have-names": "^1.2.3" }, "engines": { "node": ">= 0.4" @@ -9315,21 +9043,11 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/regexpp": { - "version": "3.2.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - } - }, "node_modules/remarkable": { "version": "1.7.4", + "resolved": "https://registry.npmjs.org/remarkable/-/remarkable-1.7.4.tgz", + "integrity": "sha512-e6NKUXgX95whv7IgddywbeN/ItCkWbISmc2DiqHJb0wTrqZIexqdco5b8Z3XZoo/48IdNVKM9ZCvTPJ4F5uvhg==", "dev": true, - "license": "MIT", "dependencies": { "argparse": "^1.0.10", "autolinker": "~0.28.0" @@ -9341,6 +9059,15 @@ "node": ">= 0.10.0" } }, + "node_modules/remarkable/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, "node_modules/rename-function-calls": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/rename-function-calls/-/rename-function-calls-0.1.1.tgz", @@ -9361,17 +9088,19 @@ } }, "node_modules/repeat-element": { - "version": "1.1.3", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", + "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/repeat-string": { "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10" } @@ -9415,15 +9144,17 @@ }, "node_modules/require-directory": { "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/require-from-string": { "version": "2.0.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", "engines": { "node": ">=0.10.0" } @@ -9447,8 +9178,9 @@ }, "node_modules/resolve-cwd": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, - "license": "MIT", "dependencies": { "resolve-from": "^5.0.0" }, @@ -9456,14 +9188,24 @@ "node": ">=8" } }, - "node_modules/resolve-from": { + "node_modules/resolve-cwd/node_modules/resolve-from": { "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/resolve.exports": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", @@ -9475,8 +9217,9 @@ }, "node_modules/reusify": { "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", "dev": true, - "license": "MIT", "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" @@ -9484,8 +9227,9 @@ }, "node_modules/rimraf": { "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dev": true, - "license": "ISC", "dependencies": { "glob": "^7.1.3" }, @@ -9508,6 +9252,8 @@ }, "node_modules/run-parallel": { "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "dev": true, "funding": [ { @@ -9523,7 +9269,6 @@ "url": "https://feross.org/support" } ], - "license": "MIT", "dependencies": { "queue-microtask": "^1.2.2" } @@ -9553,7 +9298,6 @@ "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz", "integrity": "sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==", "dev": true, - "license": "MIT", "dependencies": { "regexp-tree": "~0.1.1" } @@ -9583,11 +9327,10 @@ "dev": true }, "node_modules/schema-utils": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", - "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.2.0.tgz", + "integrity": "sha512-0zTyLGyDJYd/MBxG1AhJkKa6fpEBds4OQO2ut0w7OYG+ZGhGea09lijvzsqegYSik88zc7cUtIlnnO+/BvD6gQ==", "dev": true, - "license": "MIT", "dependencies": { "@types/json-schema": "^7.0.8", "ajv": "^6.12.5", @@ -9633,11 +9376,10 @@ "dev": true }, "node_modules/semver": { - "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", + "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", "dev": true, - "license": "MIT", "dependencies": { "lru-cache": "^6.0.0" }, @@ -9648,10 +9390,38 @@ "node": ">=10" } }, + "node_modules/semver/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/serialize-javascript": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", + "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, "node_modules/set-getter": { "version": "0.1.1", + "resolved": "https://registry.npmjs.org/set-getter/-/set-getter-0.1.1.tgz", + "integrity": "sha512-9sVWOy+gthr+0G9DzqqLaYNA7+5OKkSmcqjL9cBpDEaZrr3ShQlyX2cZ/O/ozE41oxn/Tt0LGEM/w4Rub3A3gw==", "dev": true, - "license": "MIT", "dependencies": { "to-object-path": "^0.3.0" }, @@ -9698,15 +9468,25 @@ "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz", "integrity": "sha512-UTzHm/+AzKfO9RgPgRpDIuMSNie1ubXRaljjlhFMNGYoG7z+rm9AHLPMf70R7887xboDH9Q+5YQbWKObFHEAtw==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" + "dependencies": { + "json-stable-stringify": "~0.0.0", + "sha.js": "~2.4.4" + } + }, + "node_modules/shasum-object": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shasum-object/-/shasum-object-1.0.0.tgz", + "integrity": "sha512-Iqo5rp/3xVi6M4YheapzZhhGPVs0yZwHj7wvwQ1B9z8H6zk+FEnI7y3Teq7qwnekfEhu8WmG2z0z4iWZaxLWVg==", + "dev": true, + "dependencies": { + "fast-safe-stringify": "^2.0.7" } }, "node_modules/shebang-command": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, - "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -9716,17 +9496,21 @@ }, "node_modules/shebang-regex": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/shell-quote": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.3.tgz", - "integrity": "sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==", - "dev": true + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", + "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/side-channel": { "version": "1.0.4", @@ -9800,8 +9584,9 @@ }, "node_modules/slash": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -9827,20 +9612,23 @@ }, "node_modules/source-map-support/node_modules/source-map": { "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, - "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } }, "node_modules/sprintf-js": { "version": "1.0.3", - "license": "BSD-3-Clause" + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" }, "node_modules/stack-utils": { - "version": "2.0.5", + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", "dev": true, - "license": "MIT", "dependencies": { "escape-string-regexp": "^2.0.0" }, @@ -9857,18 +9645,6 @@ "node": ">=8" } }, - "node_modules/stop-iteration-iterator": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz", - "integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==", - "dev": true, - "dependencies": { - "internal-slot": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/stream-browserify": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", @@ -9902,9 +9678,10 @@ } }, "node_modules/stream-http/node_modules/readable-stream": { - "version": "3.6.0", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dev": true, - "license": "MIT", "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -9929,7 +9706,6 @@ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", "dev": true, - "license": "MIT", "dependencies": { "safe-buffer": "~5.2.0" } @@ -9952,7 +9728,6 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, - "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -9962,6 +9737,12 @@ "node": ">=8" } }, + "node_modules/string-width/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, "node_modules/string.prototype.trim": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", @@ -10009,7 +9790,6 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, - "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -10022,7 +9802,6 @@ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } @@ -10032,15 +9811,15 @@ "resolved": "https://registry.npmjs.org/strip-color/-/strip-color-0.1.0.tgz", "integrity": "sha512-p9LsUieSjWNNAxVCXLeilaDlmuUOrDS5/dF9znM1nZc7EGX5+zEFC0bEevsNIaldjlks+2jns5Siz6F9iK6jwA==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/strip-final-newline": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -10050,7 +9829,6 @@ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" }, @@ -10069,8 +9847,9 @@ }, "node_modules/supports-color": { "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -10114,15 +9893,15 @@ "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/tar-fs": { "version": "2.1.1", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", + "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", "dev": true, - "license": "MIT", "dependencies": { "chownr": "^1.1.1", "mkdirp-classic": "^0.5.2", @@ -10132,8 +9911,9 @@ }, "node_modules/tar-stream": { "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", + "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", "dev": true, - "license": "MIT", "dependencies": { "bl": "^4.0.3", "end-of-stream": "^1.4.1", @@ -10146,9 +9926,10 @@ } }, "node_modules/tar-stream/node_modules/readable-stream": { - "version": "3.6.0", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", "dev": true, - "license": "MIT", "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -10165,13 +9946,13 @@ "dev": true }, "node_modules/terser": { - "version": "5.17.1", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.17.1.tgz", - "integrity": "sha512-hVl35zClmpisy6oaoKALOpS0rDYLxRFLHhRuDlEGTKey9qHjS1w9GMORjuwIMt70Wan4lwsLYyWDVnWgF+KUEw==", + "version": "5.18.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.18.0.tgz", + "integrity": "sha512-pdL757Ig5a0I+owA42l6tIuEycRuM7FPY4n62h44mRLRfnOxJkkOHd6i89dOpwZlpF6JXBwaAHF6yWzFrt+QyA==", "dev": true, "dependencies": { - "@jridgewell/source-map": "^0.3.2", - "acorn": "^8.5.0", + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", "commander": "^2.20.0", "source-map-support": "~0.5.20" }, @@ -10183,16 +9964,16 @@ } }, "node_modules/terser-webpack-plugin": { - "version": "5.3.7", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.7.tgz", - "integrity": "sha512-AfKwIktyP7Cu50xNjXF/6Qb5lBNzYaWpU6YfoX3uZicTx0zTy0stDDCsvjDapKsSDvOeWo5MEq4TmdBy2cNoHw==", + "version": "5.3.9", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", + "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", "dev": true, "dependencies": { "@jridgewell/trace-mapping": "^0.3.17", "jest-worker": "^27.4.5", "schema-utils": "^3.1.1", "serialize-javascript": "^6.0.1", - "terser": "^5.16.5" + "terser": "^5.16.8" }, "engines": { "node": ">= 10.13.0" @@ -10230,15 +10011,6 @@ "node": ">= 10.13.0" } }, - "node_modules/terser-webpack-plugin/node_modules/serialize-javascript": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", - "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", - "dev": true, - "dependencies": { - "randombytes": "^2.1.0" - } - }, "node_modules/terser-webpack-plugin/node_modules/supports-color": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", @@ -10254,18 +10026,6 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, - "node_modules/terser/node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/terser/node_modules/commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", @@ -10293,8 +10053,9 @@ }, "node_modules/test-exclude": { "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, - "license": "ISC", "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^7.1.4", @@ -10321,7 +10082,6 @@ "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", "dev": true, - "license": "MIT", "dependencies": { "readable-stream": "~2.3.6", "xtend": "~4.0.1" @@ -10332,14 +10092,11 @@ "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", "integrity": "sha512-PIxwAupJZiYU4JmVZYwXp9FKsHMXb5h0ZEFyuXTAn8WLHOlcij+FEcbrvDsom1o5dr1YggEtFbECvGCW2sT53Q==", "dev": true, - "license": "MIT", "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" + "process": "~0.11.0" }, "engines": { - "node": ">= 6" + "node": ">=0.6.0" } }, "node_modules/tmpl": { @@ -10362,7 +10119,6 @@ "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", "dev": true, - "license": "MIT", "dependencies": { "kind-of": "^3.0.2" }, @@ -10372,8 +10128,9 @@ }, "node_modules/to-regex-range": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, @@ -10392,8 +10149,9 @@ }, "node_modules/toml": { "version": "2.3.6", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/toml/-/toml-2.3.6.tgz", + "integrity": "sha512-gVweAectJU3ebq//Ferr2JUY4WKSDe5N+z0FvjDncLGyHmIDoxgY/2Ie4qfEIDm4IS7OA6Rmdm7pdEEdMcV/xQ==", + "dev": true }, "node_modules/totalist": { "version": "1.1.0", @@ -10443,9 +10201,9 @@ "dev": true }, "node_modules/ts-loader": { - "version": "9.4.2", - "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.4.2.tgz", - "integrity": "sha512-OmlC4WVmFv5I0PpaxYb+qGeGOdm5giHU7HwDDUjw59emP2UYMHy9fFSDcYgSNoH8sXcj4hGCSEhlDZ9ULeDraA==", + "version": "9.4.3", + "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.4.3.tgz", + "integrity": "sha512-n3hBnm6ozJYzwiwt5YRiJZkzktftRpMiBApHaJPoWLA+qetQBAXkHqCLM6nwSdRDimqVtA5ocIkcTRLMTt7yzA==", "dev": true, "dependencies": { "chalk": "^4.1.0", @@ -10504,18 +10262,6 @@ } } }, - "node_modules/ts-node/node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/ts-node/node_modules/acorn-walk": { "version": "8.2.0", "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", @@ -10525,15 +10271,6 @@ "node": ">=0.4.0" } }, - "node_modules/ts-node/node_modules/diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } - }, "node_modules/tsconfig-paths": { "version": "3.14.2", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", @@ -10563,20 +10300,20 @@ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", "dev": true, - "license": "MIT", "engines": { - "node": ">=8" + "node": ">=4" } }, "node_modules/tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz", + "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==" }, "node_modules/tsutils": { "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^1.8.1" }, @@ -10589,8 +10326,9 @@ }, "node_modules/tsutils/node_modules/tslib": { "version": "1.14.1", - "dev": true, - "license": "0BSD" + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true }, "node_modules/tty-browserify": { "version": "0.0.1", @@ -10600,8 +10338,9 @@ }, "node_modules/type-check": { "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, - "license": "MIT", "dependencies": { "prelude-ls": "^1.2.1" }, @@ -10611,8 +10350,9 @@ }, "node_modules/type-detect": { "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true, - "license": "MIT", "engines": { "node": ">=4" } @@ -10622,7 +10362,6 @@ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "dev": true, - "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -10654,7 +10393,6 @@ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "dev": true, - "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -10663,6 +10401,15 @@ "node": ">=4.2.0" } }, + "node_modules/umd": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/umd/-/umd-3.0.3.tgz", + "integrity": "sha512-4IcGSufhFshvLNcMCV80UnQVlZ5pMOC8mvNPForqwA4+lzYQuetTESLDQkeLmihq8bRcnpbQa48Wb8Lh16/xow==", + "dev": true, + "bin": { + "umd": "bin/cli.js" + } + }, "node_modules/unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", @@ -10679,8 +10426,9 @@ }, "node_modules/unbzip2-stream": { "version": "1.4.3", + "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz", + "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==", "dev": true, - "license": "MIT", "dependencies": { "buffer": "^5.2.1", "through": "^2.3.8" @@ -10741,9 +10489,9 @@ } }, "node_modules/uri-js/node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", "engines": { "node": ">=6" } @@ -10754,27 +10502,23 @@ "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==" }, "node_modules/url": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", - "integrity": "sha512-kbailJa29QrtXnxgq+DdCEGlbTeYM2eJUxsz6vjZavrCYPMIFHMKQmSKYAIuUK2i7hgPm28a8piX5NTUtM/LKQ==", + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/url/-/url-0.11.1.tgz", + "integrity": "sha512-rWS3H04/+mzzJkv0eZ7vEDGiQbgquI1fGfOad6zKvgYQi1SzMmhl7c/DdRGxhaWrVH6z0qWITo8rpnxK/RfEhA==", "dev": true, "dependencies": { - "punycode": "1.3.2", - "querystring": "0.2.0" + "punycode": "^1.4.1", + "qs": "^6.11.0" } }, - "node_modules/url/node_modules/punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw==", - "dev": true - }, "node_modules/util": { "version": "0.10.4", "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", "dev": true, - "license": "MIT" + "dependencies": { + "inherits": "2.0.3" + } }, "node_modules/util-deprecate": { "version": "1.0.2", @@ -10782,6 +10526,12 @@ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true }, + "node_modules/util/node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", + "dev": true + }, "node_modules/utility-types": { "version": "3.10.0", "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", @@ -10801,7 +10551,6 @@ "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz", "integrity": "sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==", "dev": true, - "license": "Apache-2.0", "dependencies": { "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", @@ -10828,7 +10577,6 @@ "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "makeerror": "1.0.12" } @@ -10881,11 +10629,10 @@ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" }, "node_modules/webpack": { - "version": "5.80.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.80.0.tgz", - "integrity": "sha512-OIMiq37XK1rWO8mH9ssfFKZsXg4n6klTEDL7S8/HqbAOBBaiy8ABvXvz0dDCXeEF9gqwxSvVk611zFPjS8hJxA==", + "version": "5.86.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.86.0.tgz", + "integrity": "sha512-3BOvworZ8SO/D4GVP+GoRC3fVeg5MO4vzmq8TJJEkdmopxyazGDxN8ClqN12uzrZW9Tv8EED8v5VSb6Sqyi0pg==", "dev": true, - "license": "MIT", "dependencies": { "@types/eslint-scope": "^3.7.3", "@types/estree": "^1.0.0", @@ -10893,10 +10640,10 @@ "@webassemblyjs/wasm-edit": "^1.11.5", "@webassemblyjs/wasm-parser": "^1.11.5", "acorn": "^8.7.1", - "acorn-import-assertions": "^1.7.6", + "acorn-import-assertions": "^1.9.0", "browserslist": "^4.14.5", "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.13.0", + "enhanced-resolve": "^5.14.1", "es-module-lexer": "^1.2.1", "eslint-scope": "5.1.1", "events": "^3.2.0", @@ -10929,11 +10676,10 @@ } }, "node_modules/webpack-bundle-analyzer": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.8.0.tgz", - "integrity": "sha512-ZzoSBePshOKhr+hd8u6oCkZVwpVaXgpw23ScGLFpR6SjYI7+7iIWYarjN6OEYOfRt8o7ZyZZQk0DuMizJ+LEIg==", + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.9.0.tgz", + "integrity": "sha512-+bXGmO1LyiNx0i9enBu3H8mv42sj/BJWhZNFwjz92tVnBa9J3JMGo2an2IXlEleoDOPn/Hofl5hr/xCpObUDtw==", "dev": true, - "license": "MIT", "dependencies": { "@discoveryjs/json-ext": "0.5.7", "acorn": "^8.0.4", @@ -10953,18 +10699,6 @@ "node": ">= 10.13.0" } }, - "node_modules/webpack-bundle-analyzer/node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/webpack-bundle-analyzer/node_modules/acorn-walk": { "version": "8.2.0", "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", @@ -10976,16 +10710,18 @@ }, "node_modules/webpack-bundle-analyzer/node_modules/commander": { "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", "dev": true, - "license": "MIT", "engines": { "node": ">= 10" } }, "node_modules/webpack-bundle-analyzer/node_modules/ws": { "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8.3.0" }, @@ -11058,19 +10794,10 @@ "node": ">= 10" } }, - "node_modules/webpack-cli/node_modules/interpret": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", - "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", - "dev": true, - "engines": { - "node": ">= 0.10" - } - }, "node_modules/webpack-merge": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", - "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", + "version": "5.9.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.9.0.tgz", + "integrity": "sha512-6NbRQw4+Sy50vYNTw7EyOn41OZItPiXB8GNv3INSoe3PSFaHJEz3SHTrYVaRm2LilNGnFUzh0FAwqPEmU/CwDg==", "dev": true, "dependencies": { "clone-deep": "^4.0.1", @@ -11089,25 +10816,13 @@ "node": ">=10.13.0" } }, - "node_modules/webpack/node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "node_modules/webpack/node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", "dev": true, - "bin": { - "acorn": "bin/acorn" - }, "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/webpack/node_modules/acorn-import-assertions": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", - "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", - "dev": true, - "peerDependencies": { - "acorn": "^8" + "node": ">=0.8.x" } }, "node_modules/whatwg-url": { @@ -11149,21 +10864,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/which-collection": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", - "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", - "dev": true, - "dependencies": { - "is-map": "^2.0.1", - "is-set": "^2.0.1", - "is-weakmap": "^2.0.1", - "is-weakset": "^2.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/which-typed-array": { "version": "1.1.9", "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", @@ -11184,9 +10884,9 @@ } }, "node_modules/wildcard": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", - "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", + "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==", "dev": true }, "node_modules/word-wrap": { @@ -11221,6 +10921,19 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "dev": true }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, "node_modules/ws": { "version": "8.8.1", "resolved": "https://registry.npmjs.org/ws/-/ws-8.8.1.tgz", @@ -11244,8 +10957,9 @@ }, "node_modules/xtend": { "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.4" } @@ -11260,16 +10974,16 @@ } }, "node_modules/yallist": { - "version": "4.0.0", - "dev": true, - "license": "ISC" + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true }, "node_modules/yargs": { - "version": "17.7.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz", - "integrity": "sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==", + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, - "license": "MIT", "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", @@ -11283,7 +10997,7 @@ "node": ">=12" } }, - "node_modules/yargs/node_modules/yargs-parser": { + "node_modules/yargs-parser": { "version": "21.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", @@ -11297,7 +11011,6 @@ "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", "dev": true, - "license": "MIT", "dependencies": { "buffer-crc32": "~0.2.3", "fd-slicer": "~1.1.0" @@ -11324,8361 +11037,5 @@ "url": "https://github.com/sponsors/sindresorhus" } } - }, - "dependencies": { - "@ampproject/remapping": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", - "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", - "dev": true, - "requires": { - "@jridgewell/gen-mapping": "^0.1.0", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "@asyncapi/specs": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-5.1.0.tgz", - "integrity": "sha512-yffhETqehkim43luMnPKOwzY0D0YtU4bKpORIXIaid6p5Y5kDLrMGJaEPkNieQp03HMjhjFrnUPtT8kvqe0+aQ==", - "requires": { - "@types/json-schema": "^7.0.11" - } - }, - "@babel/code-frame": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.21.4.tgz", - "integrity": "sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g==", - "dev": true, - "requires": { - "@babel/highlight": "^7.18.6" - } - }, - "@babel/compat-data": { - "version": "7.19.3", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.19.3.tgz", - "integrity": "sha512-prBHMK4JYYK+wDjJF1q99KK4JLL+egWS4nmNqdlMUgCExMZ+iZW0hGhyC3VEbsPjvaN0TBhW//VIFwBrk8sEiw==", - "dev": true - }, - "@babel/core": { - "version": "7.19.3", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.19.3.tgz", - "integrity": "sha512-WneDJxdsjEvyKtXKsaBGbDeiyOjR5vYq4HcShxnIbG0qixpoHjI3MqeZM9NDvsojNCEBItQE4juOo/bU6e72gQ==", - "dev": true, - "requires": { - "@ampproject/remapping": "^2.1.0", - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.19.3", - "@babel/helper-compilation-targets": "^7.19.3", - "@babel/helper-module-transforms": "^7.19.0", - "@babel/helpers": "^7.19.0", - "@babel/parser": "^7.19.3", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.19.3", - "@babel/types": "^7.19.3", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.1", - "semver": "^6.3.0" - }, - "dependencies": { - "convert-source-map": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", - "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.1" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "@babel/generator": { - "version": "7.19.3", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.19.3.tgz", - "integrity": "sha512-fqVZnmp1ncvZU757UzDheKZpfPgatqY59XtW2/j/18H7u76akb8xqvjw82f+i2UKd/ksYsSick/BCLQUUtJ/qQ==", - "dev": true, - "requires": { - "@babel/types": "^7.19.3", - "@jridgewell/gen-mapping": "^0.3.2", - "jsesc": "^2.5.1" - }, - "dependencies": { - "@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", - "dev": true, - "requires": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - } - } - } - }, - "@babel/helper-compilation-targets": { - "version": "7.19.3", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.19.3.tgz", - "integrity": "sha512-65ESqLGyGmLvgR0mst5AdW1FkNlj9rQsCKduzEoEPhBCDFGXvz2jW6bXFG6i0/MrV2s7hhXjjb2yAzcPuQlLwg==", - "dev": true, - "requires": { - "@babel/compat-data": "^7.19.3", - "@babel/helper-validator-option": "^7.18.6", - "browserslist": "^4.21.3", - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "@babel/helper-environment-visitor": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", - "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", - "dev": true - }, - "@babel/helper-function-name": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz", - "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==", - "dev": true, - "requires": { - "@babel/template": "^7.18.10", - "@babel/types": "^7.19.0" - } - }, - "@babel/helper-hoist-variables": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", - "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", - "dev": true, - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-module-imports": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", - "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", - "dev": true, - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-module-transforms": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.19.0.tgz", - "integrity": "sha512-3HBZ377Fe14RbLIA+ac3sY4PTgpxHVkFrESaWhoI5PuyXPBBX8+C34qblV9G89ZtycGJCmCI/Ut+VUDK4bltNQ==", - "dev": true, - "requires": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-simple-access": "^7.18.6", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/helper-validator-identifier": "^7.18.6", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.19.0", - "@babel/types": "^7.19.0" - } - }, - "@babel/helper-plugin-utils": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz", - "integrity": "sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==", - "dev": true - }, - "@babel/helper-simple-access": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.18.6.tgz", - "integrity": "sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==", - "dev": true, - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-split-export-declaration": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", - "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", - "dev": true, - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-string-parser": { - "version": "7.19.4", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", - "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==", - "dev": true - }, - "@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", - "dev": true - }, - "@babel/helper-validator-option": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", - "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", - "dev": true - }, - "@babel/helpers": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.19.0.tgz", - "integrity": "sha512-DRBCKGwIEdqY3+rPJgG/dKfQy9+08rHIAJx8q2p+HSWP87s2HCrQmaAMMyMll2kIXKCW0cO1RdQskx15Xakftg==", - "dev": true, - "requires": { - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.19.0", - "@babel/types": "^7.19.0" - } - }, - "@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "@babel/parser": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.21.4.tgz", - "integrity": "sha512-alVJj7k7zIxqBZ7BTRhz0IqJFxW1VJbm6N8JbcYhQ186df9ZBPbZBmWSqAMXwHGsCJdYks7z/voa3ibiS5bCIw==", - "dev": true - }, - "@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-bigint": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", - "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.12.13" - } - }, - "@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-jsx": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.21.4.tgz", - "integrity": "sha512-5hewiLct5OKyh6PLKEYaFclcqtIgCb6bmELouxjF6up5q3Sov7rOayW4RwhbaBL0dit8rA80GNfY+UuDp2mBbQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.20.2" - } - }, - "@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-syntax-typescript": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.21.4.tgz", - "integrity": "sha512-xz0D39NvhQn4t4RNsHmDnnsaQizIlUkdtYvLs8La1BlfjQ6JEwxkJGeqJMW2tAXx+q6H+WFuUTXNdYVpEya0YA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.20.2" - } - }, - "@babel/runtime": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz", - "integrity": "sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==", - "dev": true, - "requires": { - "regenerator-runtime": "^0.13.11" - } - }, - "@babel/template": { - "version": "7.18.10", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", - "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.18.6", - "@babel/parser": "^7.18.10", - "@babel/types": "^7.18.10" - } - }, - "@babel/traverse": { - "version": "7.19.3", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.19.3.tgz", - "integrity": "sha512-qh5yf6149zhq2sgIXmwjnsvmnNQC2iw70UFjp4olxucKrWd/dvlUsBI88VSLUsnMNF7/vnOiA+nk1+yLoCqROQ==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.19.3", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.19.3", - "@babel/types": "^7.19.3", - "debug": "^4.1.0", - "globals": "^11.1.0" - }, - "dependencies": { - "globals": { - "version": "11.12.0", - "dev": true - } - } - }, - "@babel/types": { - "version": "7.21.4", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.21.4.tgz", - "integrity": "sha512-rU2oY501qDxE8Pyo7i/Orqma4ziCOrby0/9mvbDUGEfvZjb279Nk9k19e2fiCxHbRRpY2ZyrgW1eq22mvmOIzA==", - "dev": true, - "requires": { - "@babel/helper-string-parser": "^7.19.4", - "@babel/helper-validator-identifier": "^7.19.1", - "to-fast-properties": "^2.0.0" - } - }, - "@bcoe/v8-coverage": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true - }, - "@cspotcode/source-map-support": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", - "dev": true, - "requires": { - "@jridgewell/trace-mapping": "0.3.9" - }, - "dependencies": { - "@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", - "dev": true, - "requires": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - } - } - }, - "@discoveryjs/json-ext": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", - "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", - "dev": true - }, - "@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^3.3.0" - } - }, - "@eslint-community/regexpp": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.0.tgz", - "integrity": "sha512-vITaYzIcNmjn5tF5uxcZ/ft7/RXGrMUIS9HalWckEOF6ESiwXKoMzAQf2UW0aVd6rnOeExTJVd5hmWXucBKGXQ==", - "dev": true - }, - "@eslint/eslintrc": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.2.tgz", - "integrity": "sha512-3W4f5tDUra+pA+FzgugqL2pRimUTDJWKr7BINqOpkZrC0uYI0NIc0/JFgBROCU07HR6GieA5m3/rsPIhDmCXTQ==", - "dev": true, - "requires": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.5.1", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "dependencies": { - "ajv": { - "version": "6.12.6", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - } - } - }, - "@eslint/js": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.38.0.tgz", - "integrity": "sha512-IoD2MfUnOV58ghIHCiil01PcohxjbYR/qCxsoC+xNgUwh1EY8jOOrYmu3d3a71+tJJ23uscEV4X2HJWMsPJu4g==", - "dev": true - }, - "@github/browserslist-config": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@github/browserslist-config/-/browserslist-config-1.0.0.tgz", - "integrity": "sha512-gIhjdJp/c2beaIWWIlsXdqXVRUz3r2BxBCpfz/F3JXHvSAQ1paMYjLH+maEATtENg+k5eLV7gA+9yPp762ieuw==", - "dev": true - }, - "@humanwhocodes/config-array": { - "version": "0.11.8", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", - "integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", - "dev": true, - "requires": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", - "minimatch": "^3.0.5" - } - }, - "@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true - }, - "@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "dev": true - }, - "@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "dev": true, - "requires": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" - }, - "dependencies": { - "find-up": { - "version": "4.1.0", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-locate": { - "version": "4.1.0", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "path-exists": { - "version": "4.0.0", - "dev": true - } - } - }, - "@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true - }, - "@jest/console": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.5.0.tgz", - "integrity": "sha512-NEpkObxPwyw/XxZVLPmAGKE89IQRp4puc6IQRPru6JKd1M3fW9v1xM1AnzIJE65hbCkzQAdnL8P47e9hzhiYLQ==", - "dev": true, - "requires": { - "@jest/types": "^29.5.0", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^29.5.0", - "jest-util": "^29.5.0", - "slash": "^3.0.0" - } - }, - "@jest/core": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.5.0.tgz", - "integrity": "sha512-28UzQc7ulUrOQw1IsN/kv1QES3q2kkbl/wGslyhAclqZ/8cMdB5M68BffkIdSJgKBUt50d3hbwJ92XESlE7LiQ==", - "dev": true, - "requires": { - "@jest/console": "^29.5.0", - "@jest/reporters": "^29.5.0", - "@jest/test-result": "^29.5.0", - "@jest/transform": "^29.5.0", - "@jest/types": "^29.5.0", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-changed-files": "^29.5.0", - "jest-config": "^29.5.0", - "jest-haste-map": "^29.5.0", - "jest-message-util": "^29.5.0", - "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.5.0", - "jest-resolve-dependencies": "^29.5.0", - "jest-runner": "^29.5.0", - "jest-runtime": "^29.5.0", - "jest-snapshot": "^29.5.0", - "jest-util": "^29.5.0", - "jest-validate": "^29.5.0", - "jest-watcher": "^29.5.0", - "micromatch": "^4.0.4", - "pretty-format": "^29.5.0", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - }, - "pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, - "requires": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - } - }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - } - } - }, - "@jest/create-cache-key-function": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/create-cache-key-function/-/create-cache-key-function-27.5.1.tgz", - "integrity": "sha512-dmH1yW+makpTSURTy8VzdUwFnfQh1G8R+DxO2Ho2FFmBbKFEVm+3jWdvFhE2VqB/LATCTokkP0dotjyQyw5/AQ==", - "dev": true, - "requires": { - "@jest/types": "^27.5.1" - }, - "dependencies": { - "@jest/types": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/yargs": { - "version": "16.0.5", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } - } - }, - "@jest/environment": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.5.0.tgz", - "integrity": "sha512-5FXw2+wD29YU1d4I2htpRX7jYnAyTRjP2CsXQdo9SAM8g3ifxWPSV0HnClSn71xwctr0U3oZIIH+dtbfmnbXVQ==", - "dev": true, - "requires": { - "@jest/fake-timers": "^29.5.0", - "@jest/types": "^29.5.0", - "@types/node": "*", - "jest-mock": "^29.5.0" - } - }, - "@jest/expect": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.5.0.tgz", - "integrity": "sha512-PueDR2HGihN3ciUNGr4uelropW7rqUfTiOn+8u0leg/42UhblPxHkfoh0Ruu3I9Y1962P3u2DY4+h7GVTSVU6g==", - "dev": true, - "requires": { - "expect": "^29.5.0", - "jest-snapshot": "^29.5.0" - } - }, - "@jest/expect-utils": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.5.0.tgz", - "integrity": "sha512-fmKzsidoXQT2KwnrwE0SQq3uj8Z763vzR8LnLBwC2qYWEFpjX8daRsk6rHUM1QvNlEW/UJXNXm59ztmJJWs2Mg==", - "dev": true, - "requires": { - "jest-get-type": "^29.4.3" - } - }, - "@jest/fake-timers": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.5.0.tgz", - "integrity": "sha512-9ARvuAAQcBwDAqOnglWq2zwNIRUDtk/SCkp/ToGEhFv5r86K21l+VEs0qNTaXtyiY0lEePl3kylijSYJQqdbDg==", - "dev": true, - "requires": { - "@jest/types": "^29.5.0", - "@sinonjs/fake-timers": "^10.0.2", - "@types/node": "*", - "jest-message-util": "^29.5.0", - "jest-mock": "^29.5.0", - "jest-util": "^29.5.0" - } - }, - "@jest/globals": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.5.0.tgz", - "integrity": "sha512-S02y0qMWGihdzNbUiqSAiKSpSozSuHX5UYc7QbnHP+D9Lyw8DgGGCinrN9uSuHPeKgSSzvPom2q1nAtBvUsvPQ==", - "dev": true, - "requires": { - "@jest/environment": "^29.5.0", - "@jest/expect": "^29.5.0", - "@jest/types": "^29.5.0", - "jest-mock": "^29.5.0" - } - }, - "@jest/reporters": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.5.0.tgz", - "integrity": "sha512-D05STXqj/M8bP9hQNSICtPqz97u7ffGzZu+9XLucXhkOFBqKcXe04JLZOgIekOxdb73MAoBUFnqvf7MCpKk5OA==", - "dev": true, - "requires": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^29.5.0", - "@jest/test-result": "^29.5.0", - "@jest/transform": "^29.5.0", - "@jest/types": "^29.5.0", - "@jridgewell/trace-mapping": "^0.3.15", - "@types/node": "*", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^5.1.0", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.1.3", - "jest-message-util": "^29.5.0", - "jest-util": "^29.5.0", - "jest-worker": "^29.5.0", - "slash": "^3.0.0", - "string-length": "^4.0.1", - "strip-ansi": "^6.0.0", - "v8-to-istanbul": "^9.0.1" - }, - "dependencies": { - "istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "requires": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "@jest/schemas": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.4.3.tgz", - "integrity": "sha512-VLYKXQmtmuEz6IxJsrZwzG9NvtkQsWNnWMsKxqWNu3+CnfzJQhp0WDDKWLVV9hLKr0l3SLLFRqcYHjhtyuDVxg==", - "dev": true, - "requires": { - "@sinclair/typebox": "^0.25.16" - } - }, - "@jest/source-map": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.4.3.tgz", - "integrity": "sha512-qyt/mb6rLyd9j1jUts4EQncvS6Yy3PM9HghnNv86QBlV+zdL2inCdK1tuVlL+J+lpiw2BI67qXOrX3UurBqQ1w==", - "dev": true, - "requires": { - "@jridgewell/trace-mapping": "^0.3.15", - "callsites": "^3.0.0", - "graceful-fs": "^4.2.9" - } - }, - "@jest/test-result": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.5.0.tgz", - "integrity": "sha512-fGl4rfitnbfLsrfx1uUpDEESS7zM8JdgZgOCQuxQvL1Sn/I6ijeAVQWGfXI9zb1i9Mzo495cIpVZhA0yr60PkQ==", - "dev": true, - "requires": { - "@jest/console": "^29.5.0", - "@jest/types": "^29.5.0", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" - } - }, - "@jest/test-sequencer": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.5.0.tgz", - "integrity": "sha512-yPafQEcKjkSfDXyvtgiV4pevSeyuA6MQr6ZIdVkWJly9vkqjnFfcfhRQqpD5whjoU8EORki752xQmjaqoFjzMQ==", - "dev": true, - "requires": { - "@jest/test-result": "^29.5.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.5.0", - "slash": "^3.0.0" - } - }, - "@jest/transform": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.5.0.tgz", - "integrity": "sha512-8vbeZWqLJOvHaDfeMuoHITGKSz5qWc9u04lnWrQE3VyuSw604PzQM824ZeX9XSjUCeDiE3GuxZe5UKa8J61NQw==", - "dev": true, - "requires": { - "@babel/core": "^7.11.6", - "@jest/types": "^29.5.0", - "@jridgewell/trace-mapping": "^0.3.15", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^2.0.0", - "fast-json-stable-stringify": "^2.1.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.5.0", - "jest-regex-util": "^29.4.3", - "jest-util": "^29.5.0", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "write-file-atomic": "^4.0.2" - }, - "dependencies": { - "convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true - }, - "write-file-atomic": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", - "dev": true, - "requires": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - } - } - } - }, - "@jest/types": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.5.0.tgz", - "integrity": "sha512-qbu7kN6czmVRc3xWFQcAN03RAUamgppVUdXrvl1Wr3jlNF93o9mJbGcDWrwGB6ht44u7efB1qCFgVQmca24Uog==", - "dev": true, - "requires": { - "@jest/schemas": "^29.4.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" - } - }, - "@jridgewell/gen-mapping": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", - "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", - "dev": true, - "requires": { - "@jridgewell/set-array": "^1.0.0", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - }, - "@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", - "dev": true - }, - "@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", - "dev": true - }, - "@jridgewell/source-map": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz", - "integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==", - "dev": true, - "requires": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "dependencies": { - "@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", - "dev": true, - "requires": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - } - } - } - }, - "@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", - "dev": true - }, - "@jridgewell/trace-mapping": { - "version": "0.3.18", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", - "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", - "dev": true, - "requires": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" - } - }, - "@jsep-plugin/regex": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.3.tgz", - "integrity": "sha512-XfZgry4DwEZvSFtS/6Y+R48D7qJYJK6R9/yJFyUFHCIUMEEHuJ4X95TDgJp5QkmzfLYvapMPzskV5HpIDrREug==", - "requires": {} - }, - "@jsep-plugin/ternary": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.3.tgz", - "integrity": "sha512-qtLGzCNzPVJ3kdH6/zoLWDPjauHIKiLSBAR71Wa0+PWvGA8wODUQvRgxtpUA5YqAYL3CQ8S4qXhd/9WuWTZirg==", - "requires": {} - }, - "@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - } - }, - "@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true - }, - "@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "requires": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - } - }, - "@openapi-contrib/openapi-schema-to-json-schema": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@openapi-contrib/openapi-schema-to-json-schema/-/openapi-schema-to-json-schema-3.2.0.tgz", - "integrity": "sha512-Gj6C0JwCr8arj0sYuslWXUBSP/KnUlEGnPW4qxlXvAl543oaNQgMgIgkQUA6vs5BCCvwTEiL8m/wdWzfl4UvSw==", - "requires": { - "fast-deep-equal": "^3.1.3" - } - }, - "@polka/url": { - "version": "1.0.0-next.21", - "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz", - "integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==", - "dev": true - }, - "@sinclair/typebox": { - "version": "0.25.24", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.25.24.tgz", - "integrity": "sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==", - "dev": true - }, - "@sinonjs/commons": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-2.0.0.tgz", - "integrity": "sha512-uLa0j859mMrg2slwQYdO/AkrOfmH+X6LTVmNTS9CqexuE2IvVORIkSpJLqePAbEnKJ77aMmCwr1NUZ57120Xcg==", - "dev": true, - "requires": { - "type-detect": "4.0.8" - } - }, - "@sinonjs/fake-timers": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.0.2.tgz", - "integrity": "sha512-SwUDyjWnah1AaNl7kxsa7cfLhlTYoiyhDAIgyh+El30YvXs/o7OLXpYH88Zdhyx9JExKrmHDJ+10bwIcY80Jmw==", - "dev": true, - "requires": { - "@sinonjs/commons": "^2.0.0" - } - }, - "@stoplight/better-ajv-errors": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.3.tgz", - "integrity": "sha512-0p9uXkuB22qGdNfy3VeEhxkU5uwvp/KrBTAbrLBURv6ilxIVwanKwjMc41lQfIVgPGcOkmLbTolfFrSsueu7zA==", - "requires": { - "jsonpointer": "^5.0.0", - "leven": "^3.1.0" - } - }, - "@stoplight/json": { - "version": "3.20.2", - "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.20.2.tgz", - "integrity": "sha512-e3Eb/DdLSpJVAsxAG1jKSnl4TVZLl2pH8KsJBWKf5GPCeI58Eo0ZpRTX3HcZ0gBaHWH6CnEHJkCRCONhoFbDIA==", - "requires": { - "@stoplight/ordered-object-literal": "^1.0.3", - "@stoplight/path": "^1.3.2", - "@stoplight/types": "^13.6.0", - "jsonc-parser": "~2.2.1", - "lodash": "^4.17.21", - "safe-stable-stringify": "^1.1" - } - }, - "@stoplight/json-ref-readers": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@stoplight/json-ref-readers/-/json-ref-readers-1.2.2.tgz", - "integrity": "sha512-nty0tHUq2f1IKuFYsLM4CXLZGHdMn+X/IwEUIpeSOXt0QjMUbL0Em57iJUDzz+2MkWG83smIigNZ3fauGjqgdQ==", - "requires": { - "node-fetch": "^2.6.0", - "tslib": "^1.14.1" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - } - } - }, - "@stoplight/json-ref-resolver": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.5.tgz", - "integrity": "sha512-uaKLITor7UF+JBtI84zs3aOWM0L79zp7w9TrBTwPtx5SLbaQQ4HadDKgX5yhFOLMApLdhwhiftF4c0GFanOxGg==", - "requires": { - "@stoplight/json": "^3.17.0", - "@stoplight/path": "^1.3.2", - "@stoplight/types": "^12.3.0 || ^13.0.0", - "@types/urijs": "^1.19.19", - "dependency-graph": "~0.11.0", - "fast-memoize": "^2.5.2", - "immer": "^9.0.6", - "lodash": "^4.17.21", - "tslib": "^2.3.1", - "urijs": "^1.19.11" - } - }, - "@stoplight/ordered-object-literal": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@stoplight/ordered-object-literal/-/ordered-object-literal-1.0.4.tgz", - "integrity": "sha512-OF8uib1jjDs5/cCU+iOVy+GJjU3X7vk/qJIkIJFqwmlJKrrtijFmqwbu8XToXrwTYLQTP+Hebws5gtZEmk9jag==" - }, - "@stoplight/path": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@stoplight/path/-/path-1.3.2.tgz", - "integrity": "sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ==" - }, - "@stoplight/spectral-core": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.17.0.tgz", - "integrity": "sha512-7D9og+iX2bCJMGPY7cvt2YdevFGDeSI7S2jPo7HWeGGitkef1FDSQ9AEapdwmCYvOJ7ztUlQdCCLTOb6Aani8w==", - "requires": { - "@stoplight/better-ajv-errors": "1.0.3", - "@stoplight/json": "~3.20.1", - "@stoplight/path": "1.3.2", - "@stoplight/spectral-parsers": "^1.0.0", - "@stoplight/spectral-ref-resolver": "^1.0.0", - "@stoplight/spectral-runtime": "^1.0.0", - "@stoplight/types": "~13.6.0", - "@types/es-aggregate-error": "^1.0.2", - "@types/json-schema": "^7.0.11", - "ajv": "^8.6.0", - "ajv-errors": "~3.0.0", - "ajv-formats": "~2.1.0", - "es-aggregate-error": "^1.0.7", - "jsonpath-plus": "7.1.0", - "lodash": "~4.17.21", - "lodash.topath": "^4.5.2", - "minimatch": "3.1.2", - "nimma": "0.2.2", - "pony-cause": "^1.0.0", - "simple-eval": "1.0.0", - "tslib": "^2.3.0" - }, - "dependencies": { - "@stoplight/types": { - "version": "13.6.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", - "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", - "requires": { - "@types/json-schema": "^7.0.4", - "utility-types": "^3.10.0" - } - }, - "jsonpath-plus": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.1.0.tgz", - "integrity": "sha512-gTaNRsPWO/K2KY6MrqaUFClF9kmuM6MFH5Dhg1VYDODgFbByw1yb7xu3hrViE/sz+dGOeMWgCzwUwQtAnCTE9g==" - } - } - }, - "@stoplight/spectral-formats": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.5.0.tgz", - "integrity": "sha512-VskkdU3qBSvI1dfJ79ysjvTssfNlbA6wrf/XkXK6iTyjfIVqOAWVtjypTb2U95tN/X8IjIBBhNWtZ4tNVZilrA==", - "requires": { - "@stoplight/json": "^3.17.0", - "@stoplight/spectral-core": "^1.8.0", - "@types/json-schema": "^7.0.7", - "tslib": "^2.3.1" - } - }, - "@stoplight/spectral-functions": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-functions/-/spectral-functions-1.7.2.tgz", - "integrity": "sha512-f+61/FtIkQeIo+a269CeaeqjpyRsgDyIk6DGr7iS4hyuk1PPk7Uf6MNRDs9FEIBh7CpdEJ+HSHbMLwgpymWTIw==", - "requires": { - "@stoplight/better-ajv-errors": "1.0.3", - "@stoplight/json": "^3.17.1", - "@stoplight/spectral-core": "^1.7.0", - "@stoplight/spectral-formats": "^1.0.0", - "@stoplight/spectral-runtime": "^1.1.0", - "ajv": "^8.6.3", - "ajv-draft-04": "~1.0.0", - "ajv-errors": "~3.0.0", - "ajv-formats": "~2.1.0", - "lodash": "~4.17.21", - "tslib": "^2.3.0" - } - }, - "@stoplight/spectral-parsers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-parsers/-/spectral-parsers-1.0.2.tgz", - "integrity": "sha512-ZQXknJ+BM5Re4Opj4cgVlHgG2qyOk/wznKJq3Vf1qsBEg2CNzN0pJmSB0deRqW0kArqm44qpb8c+cz3F2rgMtw==", - "requires": { - "@stoplight/json": "~3.20.1", - "@stoplight/types": "^13.6.0", - "@stoplight/yaml": "~4.2.3", - "tslib": "^2.3.1" - } - }, - "@stoplight/spectral-ref-resolver": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-ref-resolver/-/spectral-ref-resolver-1.0.3.tgz", - "integrity": "sha512-pj+bH4SH8hcWlnV787WD7P0/En7LA3EfZMvG1JUGMW/7bFd9AaZZXNkh5j0ve8qnPlwP8F4SH/2Cnr1tXOXCVw==", - "requires": { - "@stoplight/json-ref-readers": "1.2.2", - "@stoplight/json-ref-resolver": "~3.1.5", - "@stoplight/spectral-runtime": "^1.1.2", - "dependency-graph": "0.11.0", - "tslib": "^2.3.1" - } - }, - "@stoplight/spectral-runtime": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-runtime/-/spectral-runtime-1.1.2.tgz", - "integrity": "sha512-fr5zRceXI+hrl82yAVoME+4GvJie8v3wmOe9tU+ZLRRNonizthy8qDi0Z/z4olE+vGreSDcuDOZ7JjRxFW5kTw==", - "requires": { - "@stoplight/json": "^3.17.0", - "@stoplight/path": "^1.3.2", - "@stoplight/types": "^12.3.0", - "abort-controller": "^3.0.0", - "lodash": "^4.17.21", - "node-fetch": "^2.6.7", - "tslib": "^2.3.1" - }, - "dependencies": { - "@stoplight/types": { - "version": "12.5.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-12.5.0.tgz", - "integrity": "sha512-dwqYcDrGmEyUv5TWrDam5TGOxU72ufyQ7hnOIIDdmW5ezOwZaBFoR5XQ9AsH49w7wgvOqB2Bmo799pJPWnpCbg==", - "requires": { - "@types/json-schema": "^7.0.4", - "utility-types": "^3.10.0" - } - } - } - }, - "@stoplight/types": { - "version": "13.12.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.12.0.tgz", - "integrity": "sha512-lpyB8b5cNcg/CyQ9W7Q2BxPkHhBA8+9byviGT6uL2Ok/5iao0poCnFUH++Cd7VN1/RaXrv0LT9fyOg4fJIl0iA==", - "requires": { - "@types/json-schema": "^7.0.4", - "utility-types": "^3.10.0" - } - }, - "@stoplight/yaml": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/@stoplight/yaml/-/yaml-4.2.3.tgz", - "integrity": "sha512-Mx01wjRAR9C7yLMUyYFTfbUf5DimEpHMkRDQ1PKLe9dfNILbgdxyrncsOXM3vCpsQ1Hfj4bPiGl+u4u6e9Akqw==", - "requires": { - "@stoplight/ordered-object-literal": "^1.0.1", - "@stoplight/types": "^13.0.0", - "@stoplight/yaml-ast-parser": "0.0.48", - "tslib": "^2.2.0" - } - }, - "@stoplight/yaml-ast-parser": { - "version": "0.0.48", - "resolved": "https://registry.npmjs.org/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.48.tgz", - "integrity": "sha512-sV+51I7WYnLJnKPn2EMWgS4EUfoP4iWEbrWwbXsj0MZCB/xOK8j6+C9fntIdOM50kpx45ZLC3s6kwKivWuqvyg==" - }, - "@swc/core": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.52.tgz", - "integrity": "sha512-2LOkkl5Ebyzg1e2pu/tqz5zAAiNAtSR99KZDJz4+FTpo6lYwr+SRkeXSNFrYAReHBMb5VJoimrLDLHJ2X1E7Lg==", - "dev": true, - "requires": { - "@swc/core-darwin-arm64": "1.3.52", - "@swc/core-darwin-x64": "1.3.52", - "@swc/core-linux-arm-gnueabihf": "1.3.52", - "@swc/core-linux-arm64-gnu": "1.3.52", - "@swc/core-linux-arm64-musl": "1.3.52", - "@swc/core-linux-x64-gnu": "1.3.52", - "@swc/core-linux-x64-musl": "1.3.52", - "@swc/core-win32-arm64-msvc": "1.3.52", - "@swc/core-win32-ia32-msvc": "1.3.52", - "@swc/core-win32-x64-msvc": "1.3.52" - } - }, - "@swc/core-darwin-arm64": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.52.tgz", - "integrity": "sha512-Y+4YDN7mAhMgqLVMjpIOagFg93uWdQRsJXd3NAXo24CAJXLBuXsiXQdJVdhGavQkF0+NuhFSTGrzB8TknzWQkg==", - "dev": true, - "optional": true - }, - "@swc/core-darwin-x64": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.52.tgz", - "integrity": "sha512-XbvBA+DwTedleh/smYA6E1Z1L1tVnF+ULhpszAAW4YYDzH47R73ucCdcSH/aHs4swv+uyvRquKoDtTTNZFvD4A==", - "dev": true, - "optional": true - }, - "@swc/core-linux-arm-gnueabihf": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.52.tgz", - "integrity": "sha512-YRTLjZcoGH09q0vjg5s6vxOryzAGlMx2Ly6Hq8+8ruBtG3QTsCN3y7MI8mX254xdFCJiTX5YwQheGjRXS7FF9A==", - "dev": true, - "optional": true - }, - "@swc/core-linux-arm64-gnu": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.52.tgz", - "integrity": "sha512-B0HKtj0XpqpqflGKMxFlyXyORN0xshF8TVzUBD/2FgF7o8fE2RM1eqtdf1EzmZTT1hwxLpJXrEj+0gSXfWPW4A==", - "dev": true, - "optional": true - }, - "@swc/core-linux-arm64-musl": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.52.tgz", - "integrity": "sha512-GCxNjTAborAmv4VV1AMZLyejHLGgIzu13tvLUFqybtU4jFxVbE2ZK4ZnPCfDlWN+eBwyRWk1oNFR2hH+66vaUQ==", - "dev": true, - "optional": true - }, - "@swc/core-linux-x64-gnu": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.52.tgz", - "integrity": "sha512-mrvDBSkLI3Mza2qcu3uzB5JGwMBYDb1++UQ1VB0RXf2AR21/cCper4P44IpfdeqFz9XyXq18Sh3gblICUCGvig==", - "dev": true, - "optional": true - }, - "@swc/core-linux-x64-musl": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.52.tgz", - "integrity": "sha512-r9RIvKUQv7yBkpXz+QxPAucdoj8ymBlgIm5rLE0b5VmU7dlKBnpAmRBYaITdH6IXhF0pwuG+FHAd5elBcrkIwA==", - "dev": true, - "optional": true - }, - "@swc/core-win32-arm64-msvc": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.52.tgz", - "integrity": "sha512-YRtEr7tDo0Wes3M2ZhigF4erUjWBXeFP+O+iz6ELBBmPG7B7m/lrA21eiW9/90YGnzi0iNo46shK6PfXuPhP+Q==", - "dev": true, - "optional": true - }, - "@swc/core-win32-ia32-msvc": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.52.tgz", - "integrity": "sha512-t1x6EdYg3nnnmZBkEtmdXwGpVFTnkNCYyTILcn4367tKI6NpcNe75tz6wBUZAWAmol6Bn75je9KHDNC9uBcO2A==", - "dev": true, - "optional": true - }, - "@swc/core-win32-x64-msvc": { - "version": "1.3.52", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.52.tgz", - "integrity": "sha512-ef0KzcHxWgRii0EyUlgzNA0ycqaRRKxSb6QCO9Ev3tib4SSjbPy0MAndU7f82Ndm/pPmXT+7cciRtZ083vzjZA==", - "dev": true, - "optional": true - }, - "@swc/jest": { - "version": "0.2.26", - "resolved": "https://registry.npmjs.org/@swc/jest/-/jest-0.2.26.tgz", - "integrity": "sha512-7lAi7q7ShTO3E5Gt1Xqf3pIhRbERxR1DUxvtVa9WKzIB+HGQ7wZP5sYx86zqnaEoKKGhmOoZ7gyW0IRu8Br5+A==", - "dev": true, - "requires": { - "@jest/create-cache-key-function": "^27.4.2", - "jsonc-parser": "^3.2.0" - }, - "dependencies": { - "jsonc-parser": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", - "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==", - "dev": true - } - } - }, - "@tsconfig/node10": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", - "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", - "dev": true - }, - "@tsconfig/node12": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true - }, - "@tsconfig/node14": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "dev": true - }, - "@tsconfig/node16": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", - "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", - "dev": true - }, - "@types/babel__core": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.0.tgz", - "integrity": "sha512-+n8dL/9GWblDO0iU6eZAwEIJVr5DWigtle+Q6HLOrh/pdbXOhOtqzq8VPPE2zvNJzSKY4vH/z3iT3tn0A3ypiQ==", - "dev": true, - "requires": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "@types/babel__generator": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", - "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", - "dev": true, - "requires": { - "@babel/types": "^7.0.0" - } - }, - "@types/babel__template": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", - "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", - "dev": true, - "requires": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "@types/babel__traverse": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.18.3.tgz", - "integrity": "sha512-1kbcJ40lLB7MHsj39U4Sh1uTd2E7rLEa79kmDpI6cy+XiXsteB3POdQomoq4FxszMrO3ZYchkhYJw7A2862b3w==", - "dev": true, - "requires": { - "@babel/types": "^7.3.0" - } - }, - "@types/es-aggregate-error": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@types/es-aggregate-error/-/es-aggregate-error-1.0.2.tgz", - "integrity": "sha512-erqUpFXksaeR2kejKnhnjZjbFxUpGZx4Z7ydNL9ie8tEhXPiZTsLeUDJ6aR1F8j5wWUAtOAQWUqkc7givBJbBA==", - "requires": { - "@types/node": "*" - } - }, - "@types/eslint": { - "version": "8.37.0", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.37.0.tgz", - "integrity": "sha512-Piet7dG2JBuDIfohBngQ3rCt7MgO9xCO4xIMKxBThCq5PNRB91IjlJ10eJVwfoNtvTErmxLzwBZ7rHZtbOMmFQ==", - "dev": true, - "requires": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "@types/eslint-scope": { - "version": "3.7.4", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", - "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", - "dev": true, - "requires": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, - "@types/estree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", - "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==", - "dev": true - }, - "@types/graceful-fs": { - "version": "4.1.6", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", - "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "@types/istanbul-lib-coverage": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", - "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", - "dev": true - }, - "@types/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/jest": { - "version": "27.5.2", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.5.2.tgz", - "integrity": "sha512-mpT8LJJ4CMeeahobofYWIjFo0xonRS/HfxnVEPMPFSQdGUt1uHCnoPT7Zhb+sjDU2wz0oKV0OLUR0WzrHNgfeA==", - "dev": true, - "requires": { - "jest-matcher-utils": "^27.0.0", - "pretty-format": "^27.0.0" - } - }, - "@types/js-yaml": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz", - "integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==", - "dev": true - }, - "@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" - }, - "@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true - }, - "@types/node": { - "version": "18.16.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.1.tgz", - "integrity": "sha512-DZxSZWXxFfOlx7k7Rv4LAyiMroaxa3Ly/7OOzZO8cBNho0YzAi4qlbrx8W27JGqG57IgR/6J7r+nOJWw6kcvZA==" - }, - "@types/node-fetch": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.3.tgz", - "integrity": "sha512-ETTL1mOEdq/sxUtgtOhKjyB2Irra4cjxksvcMUR5Zr4n+PxVhsCD9WS46oPbHL3et9Zde7CNRr+WUNlcHvsX+w==", - "dev": true, - "requires": { - "@types/node": "*", - "form-data": "^3.0.0" - } - }, - "@types/prettier": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.2.tgz", - "integrity": "sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg==", - "dev": true - }, - "@types/semver": { - "version": "7.3.13", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", - "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", - "dev": true - }, - "@types/stack-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", - "dev": true - }, - "@types/urijs": { - "version": "1.19.19", - "resolved": "https://registry.npmjs.org/@types/urijs/-/urijs-1.19.19.tgz", - "integrity": "sha512-FDJNkyhmKLw7uEvTxx5tSXfPeQpO0iy73Ry+PmYZJvQy0QIWX8a7kJ4kLWRf+EbTPJEPDSgPXHaM7pzr5lmvCg==" - }, - "@types/yargs": { - "version": "17.0.24", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", - "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "@types/yargs-parser": { - "version": "21.0.0", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", - "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", - "dev": true - }, - "@types/yauzl": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==", - "dev": true, - "optional": true, - "requires": { - "@types/node": "*" - } - }, - "@typescript-eslint/eslint-plugin": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.0.tgz", - "integrity": "sha512-p0QgrEyrxAWBecR56gyn3wkG15TJdI//eetInP3zYRewDh0XS+DhB3VUAd3QqvziFsfaQIoIuZMxZRB7vXYaYw==", - "dev": true, - "requires": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.59.0", - "@typescript-eslint/type-utils": "5.59.0", - "@typescript-eslint/utils": "5.59.0", - "debug": "^4.3.4", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - } - }, - "@typescript-eslint/parser": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.0.tgz", - "integrity": "sha512-qK9TZ70eJtjojSUMrrEwA9ZDQ4N0e/AuoOIgXuNBorXYcBDk397D2r5MIe1B3cok/oCtdNC5j+lUUpVB+Dpb+w==", - "dev": true, - "requires": { - "@typescript-eslint/scope-manager": "5.59.0", - "@typescript-eslint/types": "5.59.0", - "@typescript-eslint/typescript-estree": "5.59.0", - "debug": "^4.3.4" - } - }, - "@typescript-eslint/scope-manager": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.0.tgz", - "integrity": "sha512-tsoldKaMh7izN6BvkK6zRMINj4Z2d6gGhO2UsI8zGZY3XhLq1DndP3Ycjhi1JwdwPRwtLMW4EFPgpuKhbCGOvQ==", - "dev": true, - "requires": { - "@typescript-eslint/types": "5.59.0", - "@typescript-eslint/visitor-keys": "5.59.0" - } - }, - "@typescript-eslint/type-utils": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.0.tgz", - "integrity": "sha512-d/B6VSWnZwu70kcKQSCqjcXpVH+7ABKH8P1KNn4K7j5PXXuycZTPXF44Nui0TEm6rbWGi8kc78xRgOC4n7xFgA==", - "dev": true, - "requires": { - "@typescript-eslint/typescript-estree": "5.59.0", - "@typescript-eslint/utils": "5.59.0", - "debug": "^4.3.4", - "tsutils": "^3.21.0" - } - }, - "@typescript-eslint/types": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.0.tgz", - "integrity": "sha512-yR2h1NotF23xFFYKHZs17QJnB51J/s+ud4PYU4MqdZbzeNxpgUr05+dNeCN/bb6raslHvGdd6BFCkVhpPk/ZeA==", - "dev": true - }, - "@typescript-eslint/typescript-estree": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.0.tgz", - "integrity": "sha512-sUNnktjmI8DyGzPdZ8dRwW741zopGxltGs/SAPgGL/AAgDpiLsCFLcMNSpbfXfmnNeHmK9h3wGmCkGRGAoUZAg==", - "dev": true, - "requires": { - "@typescript-eslint/types": "5.59.0", - "@typescript-eslint/visitor-keys": "5.59.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - } - }, - "@typescript-eslint/utils": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.0.tgz", - "integrity": "sha512-GGLFd+86drlHSvPgN/el6dRQNYYGOvRSDVydsUaQluwIW3HvbXuxyuD5JETvBt/9qGYe+lOrDk6gRrWOHb/FvA==", - "dev": true, - "requires": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.59.0", - "@typescript-eslint/types": "5.59.0", - "@typescript-eslint/typescript-estree": "5.59.0", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" - } - }, - "@typescript-eslint/visitor-keys": { - "version": "5.59.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.0.tgz", - "integrity": "sha512-qZ3iXxQhanchCeaExlKPV3gDQFxMUmU35xfd5eCXB6+kUw1TUAbIy2n7QIrwz9s98DQLzNWyHp61fY0da4ZcbA==", - "dev": true, - "requires": { - "@typescript-eslint/types": "5.59.0", - "eslint-visitor-keys": "^3.3.0" - } - }, - "@webassemblyjs/ast": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.5.tgz", - "integrity": "sha512-LHY/GSAZZRpsNQH+/oHqhRQ5FT7eoULcBqgfyTB5nQHogFnK3/7QoN7dLnwSE/JkUAF0SrRuclT7ODqMFtWxxQ==", - "dev": true, - "requires": { - "@webassemblyjs/helper-numbers": "1.11.5", - "@webassemblyjs/helper-wasm-bytecode": "1.11.5" - } - }, - "@webassemblyjs/floating-point-hex-parser": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.5.tgz", - "integrity": "sha512-1j1zTIC5EZOtCplMBG/IEwLtUojtwFVwdyVMbL/hwWqbzlQoJsWCOavrdnLkemwNoC/EOwtUFch3fuo+cbcXYQ==", - "dev": true - }, - "@webassemblyjs/helper-api-error": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.5.tgz", - "integrity": "sha512-L65bDPmfpY0+yFrsgz8b6LhXmbbs38OnwDCf6NpnMUYqa+ENfE5Dq9E42ny0qz/PdR0LJyq/T5YijPnU8AXEpA==", - "dev": true - }, - "@webassemblyjs/helper-buffer": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.5.tgz", - "integrity": "sha512-fDKo1gstwFFSfacIeH5KfwzjykIE6ldh1iH9Y/8YkAZrhmu4TctqYjSh7t0K2VyDSXOZJ1MLhht/k9IvYGcIxg==", - "dev": true - }, - "@webassemblyjs/helper-numbers": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.5.tgz", - "integrity": "sha512-DhykHXM0ZABqfIGYNv93A5KKDw/+ywBFnuWybZZWcuzWHfbp21wUfRkbtz7dMGwGgT4iXjWuhRMA2Mzod6W4WA==", - "dev": true, - "requires": { - "@webassemblyjs/floating-point-hex-parser": "1.11.5", - "@webassemblyjs/helper-api-error": "1.11.5", - "@xtuc/long": "4.2.2" - } - }, - "@webassemblyjs/helper-wasm-bytecode": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.5.tgz", - "integrity": "sha512-oC4Qa0bNcqnjAowFn7MPCETQgDYytpsfvz4ujZz63Zu/a/v71HeCAAmZsgZ3YVKec3zSPYytG3/PrRCqbtcAvA==", - "dev": true - }, - "@webassemblyjs/helper-wasm-section": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.5.tgz", - "integrity": "sha512-uEoThA1LN2NA+K3B9wDo3yKlBfVtC6rh0i4/6hvbz071E8gTNZD/pT0MsBf7MeD6KbApMSkaAK0XeKyOZC7CIA==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.11.5", - "@webassemblyjs/helper-buffer": "1.11.5", - "@webassemblyjs/helper-wasm-bytecode": "1.11.5", - "@webassemblyjs/wasm-gen": "1.11.5" - } - }, - "@webassemblyjs/ieee754": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.5.tgz", - "integrity": "sha512-37aGq6qVL8A8oPbPrSGMBcp38YZFXcHfiROflJn9jxSdSMMM5dS5P/9e2/TpaJuhE+wFrbukN2WI6Hw9MH5acg==", - "dev": true, - "requires": { - "@xtuc/ieee754": "^1.2.0" - } - }, - "@webassemblyjs/leb128": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.5.tgz", - "integrity": "sha512-ajqrRSXaTJoPW+xmkfYN6l8VIeNnR4vBOTQO9HzR7IygoCcKWkICbKFbVTNMjMgMREqXEr0+2M6zukzM47ZUfQ==", - "dev": true, - "requires": { - "@xtuc/long": "4.2.2" - } - }, - "@webassemblyjs/utf8": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.5.tgz", - "integrity": "sha512-WiOhulHKTZU5UPlRl53gHR8OxdGsSOxqfpqWeA2FmcwBMaoEdz6b2x2si3IwC9/fSPLfe8pBMRTHVMk5nlwnFQ==", - "dev": true - }, - "@webassemblyjs/wasm-edit": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.5.tgz", - "integrity": "sha512-C0p9D2fAu3Twwqvygvf42iGCQ4av8MFBLiTb+08SZ4cEdwzWx9QeAHDo1E2k+9s/0w1DM40oflJOpkZ8jW4HCQ==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.11.5", - "@webassemblyjs/helper-buffer": "1.11.5", - "@webassemblyjs/helper-wasm-bytecode": "1.11.5", - "@webassemblyjs/helper-wasm-section": "1.11.5", - "@webassemblyjs/wasm-gen": "1.11.5", - "@webassemblyjs/wasm-opt": "1.11.5", - "@webassemblyjs/wasm-parser": "1.11.5", - "@webassemblyjs/wast-printer": "1.11.5" - } - }, - "@webassemblyjs/wasm-gen": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.5.tgz", - "integrity": "sha512-14vteRlRjxLK9eSyYFvw1K8Vv+iPdZU0Aebk3j6oB8TQiQYuO6hj9s4d7qf6f2HJr2khzvNldAFG13CgdkAIfA==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.11.5", - "@webassemblyjs/helper-wasm-bytecode": "1.11.5", - "@webassemblyjs/ieee754": "1.11.5", - "@webassemblyjs/leb128": "1.11.5", - "@webassemblyjs/utf8": "1.11.5" - } - }, - "@webassemblyjs/wasm-opt": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.5.tgz", - "integrity": "sha512-tcKwlIXstBQgbKy1MlbDMlXaxpucn42eb17H29rawYLxm5+MsEmgPzeCP8B1Cl69hCice8LeKgZpRUAPtqYPgw==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.11.5", - "@webassemblyjs/helper-buffer": "1.11.5", - "@webassemblyjs/wasm-gen": "1.11.5", - "@webassemblyjs/wasm-parser": "1.11.5" - } - }, - "@webassemblyjs/wasm-parser": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.5.tgz", - "integrity": "sha512-SVXUIwsLQlc8srSD7jejsfTU83g7pIGr2YYNb9oHdtldSxaOhvA5xwvIiWIfcX8PlSakgqMXsLpLfbbJ4cBYew==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.11.5", - "@webassemblyjs/helper-api-error": "1.11.5", - "@webassemblyjs/helper-wasm-bytecode": "1.11.5", - "@webassemblyjs/ieee754": "1.11.5", - "@webassemblyjs/leb128": "1.11.5", - "@webassemblyjs/utf8": "1.11.5" - } - }, - "@webassemblyjs/wast-printer": { - "version": "1.11.5", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.5.tgz", - "integrity": "sha512-f7Pq3wvg3GSPUPzR0F6bmI89Hdb+u9WXrSKc4v+N0aV0q6r42WoF92Jp2jEorBEBRoRNXgjp53nBniDXcqZYPA==", - "dev": true, - "requires": { - "@webassemblyjs/ast": "1.11.5", - "@xtuc/long": "4.2.2" - } - }, - "@webpack-cli/configtest": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz", - "integrity": "sha512-4FB8Tj6xyVkyqjj1OaTqCjXYULB9FMkqQ8yGrZjRDrYh0nOE+7Lhs45WioWQQMV+ceFlE368Ukhe6xdvJM9Egg==", - "dev": true, - "requires": {} - }, - "@webpack-cli/info": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.5.0.tgz", - "integrity": "sha512-e8tSXZpw2hPl2uMJY6fsMswaok5FdlGNRTktvFk2sD8RjH0hE2+XistawJx1vmKteh4NmGmNUrp+Tb2w+udPcQ==", - "dev": true, - "requires": { - "envinfo": "^7.7.3" - } - }, - "@webpack-cli/serve": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.7.0.tgz", - "integrity": "sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==", - "dev": true, - "requires": {} - }, - "@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", - "dev": true - }, - "@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", - "dev": true - }, - "abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", - "requires": { - "event-target-shim": "^5.0.0" - } - }, - "accessory": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/accessory/-/accessory-1.1.0.tgz", - "integrity": "sha512-DlgiZ+jTuCIZLURquQhOfclRvPu6gQKgOzr9wAiZtjWYjd1lMK8Hr6XXEDWuEAxpTWEccgn6YVREJ6C7fhvrww==", - "dev": true, - "requires": { - "@typescript-eslint/scope-manager": "5.36.2", - "@typescript-eslint/type-utils": "5.36.2", - "@typescript-eslint/utils": "5.36.2", - "debug": "^4.3.4", - "functional-red-black-tree": "^1.0.1", - "ignore": "^5.2.0", - "regexpp": "^3.2.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "dependencies": { - "@typescript-eslint/scope-manager": { - "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.36.2.tgz", - "integrity": "sha512-cNNP51L8SkIFSfce8B1NSUBTJTu2Ts4nWeWbFrdaqjmn9yKrAaJUBHkyTZc0cL06OFHpb+JZq5AUHROS398Orw==", - "dev": true, - "requires": { - "@typescript-eslint/types": "5.36.2", - "@typescript-eslint/visitor-keys": "5.36.2" - } - }, - "@typescript-eslint/type-utils": { - "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.36.2.tgz", - "integrity": "sha512-rPQtS5rfijUWLouhy6UmyNquKDPhQjKsaKH0WnY6hl/07lasj8gPaH2UD8xWkePn6SC+jW2i9c2DZVDnL+Dokw==", - "dev": true, - "requires": { - "@typescript-eslint/typescript-estree": "5.36.2", - "@typescript-eslint/utils": "5.36.2", - "debug": "^4.3.4", - "tsutils": "^3.21.0" - } - }, - "@typescript-eslint/types": { - "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.36.2.tgz", - "integrity": "sha512-9OJSvvwuF1L5eS2EQgFUbECb99F0mwq501w0H0EkYULkhFa19Qq7WFbycdw1PexAc929asupbZcgjVIe6OK/XQ==", - "dev": true - }, - "@typescript-eslint/typescript-estree": { - "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.36.2.tgz", - "integrity": "sha512-8fyH+RfbKc0mTspfuEjlfqA4YywcwQK2Amcf6TDOwaRLg7Vwdu4bZzyvBZp4bjt1RRjQ5MDnOZahxMrt2l5v9w==", - "dev": true, - "requires": { - "@typescript-eslint/types": "5.36.2", - "@typescript-eslint/visitor-keys": "5.36.2", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - } - }, - "@typescript-eslint/utils": { - "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.36.2.tgz", - "integrity": "sha512-uNcopWonEITX96v9pefk9DC1bWMdkweeSsewJ6GeC7L6j2t0SJywisgkr9wUTtXk90fi2Eljj90HSHm3OGdGRg==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.9", - "@typescript-eslint/scope-manager": "5.36.2", - "@typescript-eslint/types": "5.36.2", - "@typescript-eslint/typescript-estree": "5.36.2", - "eslint-scope": "^5.1.1", - "eslint-utils": "^3.0.0" - } - }, - "@typescript-eslint/visitor-keys": { - "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.36.2.tgz", - "integrity": "sha512-BtRvSR6dEdrNt7Net2/XDjbYKU5Ml6GqJgVfXT0CxTCJlnIqK7rAGreuWKMT2t8cFUT2Msv5oxw0GMRD7T5J7A==", - "dev": true, - "requires": { - "@typescript-eslint/types": "5.36.2", - "eslint-visitor-keys": "^3.3.0" - } - } - } - }, - "acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true - }, - "acorn-jsx": { - "version": "5.3.2", - "dev": true, - "requires": {} - }, - "acorn-node": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", - "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", - "dev": true, - "requires": { - "acorn": "^7.0.0", - "acorn-walk": "^7.0.0", - "xtend": "^4.0.2" - } - }, - "acorn-walk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", - "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", - "dev": true - }, - "agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "requires": { - "debug": "4" - } - }, - "ajv": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", - "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "ajv-draft-04": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", - "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", - "requires": {} - }, - "ajv-errors": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", - "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", - "requires": {} - }, - "ajv-formats": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", - "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", - "requires": { - "ajv": "^8.0.0" - } - }, - "amdefine": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", - "integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==", - "dev": true, - "optional": true - }, - "ansi-escapes": { - "version": "4.3.2", - "dev": true, - "requires": { - "type-fest": "^0.21.3" - }, - "dependencies": { - "type-fest": { - "version": "0.21.3", - "dev": true - } - } - }, - "ansi-red": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", - "integrity": "sha512-ewaIr5y+9CUTGFwZfpECUbFlGcC0GCw1oqR9RI6h1gQCd9Aj2GxSckCnPsVJnmfMZbwFYE+leZGASgkWl06Jow==", - "dev": true, - "requires": { - "ansi-wrap": "0.1.0" - } - }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "ansi-wrap": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", - "integrity": "sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw==", - "dev": true - }, - "anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true - }, - "argparse": { - "version": "1.0.10", - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "aria-query": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz", - "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==", - "dev": true, - "requires": { - "deep-equal": "^2.0.5" - } - }, - "array-buffer-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", - "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", - "requires": { - "call-bind": "^1.0.2", - "is-array-buffer": "^3.0.1" - } - }, - "array-includes": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", - "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "get-intrinsic": "^1.1.3", - "is-string": "^1.0.7" - } - }, - "array-union": { - "version": "2.1.0", - "dev": true - }, - "array.prototype.flat": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", - "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - } - }, - "array.prototype.flatmap": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", - "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "es-shim-unscopables": "^1.0.0" - } - }, - "asn1.js": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", - "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", - "dev": true, - "requires": { - "bn.js": "^4.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "safer-buffer": "^2.1.0" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - } - } - }, - "assert": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.0.tgz", - "integrity": "sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==", - "dev": true, - "requires": { - "object-assign": "^4.1.1", - "util": "0.10.3" - }, - "dependencies": { - "inherits": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha512-8nWq2nLTAwd02jTqJExUYFSD/fKq6VH9Y/oG2accc/kdI0V98Bag8d5a4gi3XHz73rDWa2PvTtvcWYquKqSENA==", - "dev": true - }, - "util": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", - "integrity": "sha512-5KiHfsmkqacuKjkRkdV7SsfDJ2EGiPsK92s2MhNSY0craxjTdKTtqKsJaCWp4LW33ZZ0OPUv1WO/TFvNQRiQxQ==", - "dev": true, - "requires": { - "inherits": "2.0.1" - } - } - } - }, - "ast-types-flow": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", - "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", - "dev": true - }, - "astring": { - "version": "1.8.4", - "resolved": "https://registry.npmjs.org/astring/-/astring-1.8.4.tgz", - "integrity": "sha512-97a+l2LBU3Op3bBQEff79i/E4jMD2ZLFD8rHx9B6mXyB2uQwhJQYfiDqUwtfjF4QA1F2qs//N6Cw8LetMbQjcw==" - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "dev": true - }, - "autolinker": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.28.1.tgz", - "integrity": "sha512-zQAFO1Dlsn69eXaO6+7YZc+v84aquQKbwpzCE3L0stj56ERn9hutFxPopViLjo9G+rWwjozRhgS5KJ25Xy19cQ==", - "dev": true, - "requires": { - "gulp-header": "^1.7.1" - } - }, - "available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==" - }, - "avsc": { - "version": "5.7.7", - "resolved": "https://registry.npmjs.org/avsc/-/avsc-5.7.7.tgz", - "integrity": "sha512-9cYNccliXZDByFsFliVwk5GvTq058Fj513CiR4E60ndDwmuXzTJEp/Bp8FyuRmGyYupLjHLs+JA9/CBoVS4/NQ==" - }, - "axe-core": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.0.tgz", - "integrity": "sha512-M0JtH+hlOL5pLQwHOLNYZaXuhqmvS8oExsqB1SBYgA4Dk7u/xx+YdGHXaK5pyUfed5mYXdlYiphWq3G8cRi5JQ==", - "dev": true - }, - "axobject-query": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.1.1.tgz", - "integrity": "sha512-goKlv8DZrK9hUh975fnHzhNIO4jUnFCfv/dszV5VwUGDFjI6vQ2VwoyjYjYNEbBE8AH87TduWP5uyDR1D+Iteg==", - "dev": true - }, - "babel-jest": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.5.0.tgz", - "integrity": "sha512-mA4eCDh5mSo2EcA9xQjVTpmbbNk32Zb3Q3QFQsNhaK56Q+yoXowzFodLux30HRgyOho5rsQ6B0P9QpMkvvnJ0Q==", - "dev": true, - "requires": { - "@jest/transform": "^29.5.0", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^29.5.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "slash": "^3.0.0" - } - }, - "babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" - }, - "dependencies": { - "istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "requires": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "babel-plugin-jest-hoist": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.5.0.tgz", - "integrity": "sha512-zSuuuAlTMT4mzLj2nPnUm6fsE6270vdOfnpbJ+RmruU75UhLFvL0N2NgI7xpeS7NaB6hGqmd5pVpGTDYvi4Q3w==", - "dev": true, - "requires": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.1.14", - "@types/babel__traverse": "^7.0.6" - } - }, - "babel-preset-current-node-syntax": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", - "dev": true, - "requires": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-top-level-await": "^7.8.3" - } - }, - "babel-preset-jest": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.5.0.tgz", - "integrity": "sha512-JOMloxOqdiBSxMAzjRaH023/vvcaSaec49zvg+2LmNsktC7ei39LTJGw02J+9uUtTZUq6xbLyJ4dxe9sSmIuAg==", - "dev": true, - "requires": { - "babel-plugin-jest-hoist": "^29.5.0", - "babel-preset-current-node-syntax": "^1.0.0" - } - }, - "base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "dev": true - }, - "bl": { - "version": "4.1.0", - "dev": true, - "requires": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - }, - "dependencies": { - "readable-stream": { - "version": "3.6.0", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - } - } - }, - "bn.js": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", - "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", - "dev": true - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - }, - "dependencies": { - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - } - } - }, - "braces": { - "version": "3.0.2", - "dev": true, - "requires": { - "fill-range": "^7.0.1" - }, - "dependencies": { - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - } - } - }, - "brorand": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==", - "dev": true - }, - "browser-pack": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-6.1.0.tgz", - "integrity": "sha512-erYug8XoqzU3IfcU8fUgyHqyOXqIE4tUTTQ+7mqUjQlvnXkOO6OlT9c/ZoJVHYoAaqGxr09CN53G7XIsO4KtWA==", - "dev": true, - "requires": { - "caniuse-lite": "^1.0.30001370", - "electron-to-chromium": "^1.4.202", - "node-releases": "^2.0.6", - "update-browserslist-db": "^1.0.5" - } - }, - "browser-resolve": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-2.0.0.tgz", - "integrity": "sha512-7sWsQlYL2rGLy2IWm8WL8DCTJvYLc/qlOnsakDac87SOoCd16WLsaAMdCiAqsTNHIe+SXfaqyxyo6THoWqs8WQ==", - "dev": true, - "requires": { - "resolve": "^1.17.0" - } - }, - "browserify": { - "version": "16.5.2", - "resolved": "https://registry.npmjs.org/browserify/-/browserify-16.5.2.tgz", - "integrity": "sha512-TkOR1cQGdmXU9zW4YukWzWVSJwrxmNdADFbqbE3HFgQWe5wqZmOawqZ7J/8MPCwk/W8yY7Y0h+7mOtcZxLP23g==", - "dev": true, - "requires": { - "assert": "^1.4.0", - "browser-pack": "^6.0.1", - "browser-resolve": "^2.0.0", - "browserify-zlib": "~0.2.0", - "buffer": "~5.2.1", - "cached-path-relative": "^1.0.0", - "concat-stream": "^1.6.0", - "console-browserify": "^1.1.0", - "constants-browserify": "~1.0.0", - "crypto-browserify": "^3.0.0", - "defined": "^1.0.0", - "deps-sort": "^2.0.0", - "domain-browser": "^1.2.0", - "duplexer2": "~0.1.2", - "events": "^2.0.0", - "glob": "^7.1.0", - "has": "^1.0.0", - "htmlescape": "^1.1.0", - "https-browserify": "^1.0.0", - "inherits": "~2.0.1", - "insert-module-globals": "^7.0.0", - "JSONStream": "^1.0.3", - "labeled-stream-splicer": "^2.0.0", - "mkdirp-classic": "^0.5.2", - "module-deps": "^6.2.3", - "os-browserify": "~0.3.0", - "parents": "^1.0.1", - "path-browserify": "~0.0.0", - "process": "~0.11.0", - "punycode": "^1.3.2", - "querystring-es3": "~0.2.0", - "read-only-stream": "^2.0.0", - "readable-stream": "^2.0.2", - "resolve": "^1.1.4", - "shasum": "^1.0.0", - "shell-quote": "^1.6.1", - "stream-browserify": "^2.0.0", - "stream-http": "^3.0.0", - "string_decoder": "^1.1.1", - "subarg": "^1.0.0", - "syntax-error": "^1.1.1", - "through2": "^2.0.0", - "timers-browserify": "^1.0.1", - "tty-browserify": "0.0.1", - "url": "~0.11.0", - "util": "~0.10.1", - "vm-browserify": "^1.0.0", - "xtend": "^4.0.0" - }, - "dependencies": { - "buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.2.1.tgz", - "integrity": "sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==", - "dev": true, - "requires": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4" - } - }, - "events": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/events/-/events-2.1.0.tgz", - "integrity": "sha512-3Zmiobend8P9DjmKAty0Era4jV8oJ0yGYe2nJJAxgymF9+N8F2m0hhZiMoWtcfepExzNKZumFU3ksdQbInGWCg==", - "dev": true - }, - "path-browserify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", - "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", - "dev": true - } - } - }, - "browserify-aes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", - "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", - "dev": true, - "requires": { - "buffer-xor": "^1.0.3", - "cipher-base": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.3", - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "browserify-cipher": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", - "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", - "dev": true, - "requires": { - "browserify-aes": "^1.0.4", - "browserify-des": "^1.0.0", - "evp_bytestokey": "^1.0.0" - } - }, - "browserify-des": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", - "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", - "dev": true, - "requires": { - "cipher-base": "^1.0.1", - "des.js": "^1.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "browserify-rsa": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.0.tgz", - "integrity": "sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog==", - "dev": true, - "requires": { - "bn.js": "^5.0.0", - "randombytes": "^2.0.1" - } - }, - "browserify-shim": { - "version": "3.8.15", - "resolved": "https://registry.npmjs.org/browserify-shim/-/browserify-shim-3.8.15.tgz", - "integrity": "sha512-wACWQv56oVuxIID3JHFg2SCk40grlWUVX1QKKH14czQXE84WCOmbydcGKYt/IQZTGbBBzH+4uWr3wNNQRnak3Q==", - "dev": true, - "requires": { - "exposify": "~0.5.0", - "mothership": "~0.3.0", - "rename-function-calls": "~0.1.0", - "resolve": "~0.6.1", - "through": "~2.3.4" - }, - "dependencies": { - "resolve": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.6.3.tgz", - "integrity": "sha512-UHBY3viPlJKf85YijDUcikKX6tmF4SokIDp518ZDVT92JNDcG5uKIthaT/owt3Sar0lwtOafsQuwrg22/v2Dwg==", - "dev": true - } - } - }, - "browserify-sign": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.1.tgz", - "integrity": "sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==", - "dev": true, - "requires": { - "bn.js": "^5.1.1", - "browserify-rsa": "^4.0.1", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "elliptic": "^6.5.3", - "inherits": "^2.0.4", - "parse-asn1": "^5.1.5", - "readable-stream": "^3.6.0", - "safe-buffer": "^5.2.0" - }, - "dependencies": { - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - } - } - }, - "browserify-zlib": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", - "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", - "dev": true, - "requires": { - "pako": "~1.0.5" - } - }, - "browserslist": { - "version": "4.21.4", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz", - "integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==", - "dev": true, - "requires": { - "caniuse-lite": "^1.0.30001400", - "electron-to-chromium": "^1.4.251", - "node-releases": "^2.0.6", - "update-browserslist-db": "^1.0.9" - } - }, - "bser": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", - "dev": true, - "requires": { - "node-int64": "^0.4.0" - } - }, - "buffer": { - "version": "5.7.1", - "dev": true, - "requires": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", - "dev": true - }, - "buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true - }, - "buffer-xor": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==", - "dev": true - }, - "builtin-status-codes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", - "integrity": "sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ==", - "dev": true - }, - "cached-path-relative": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/cached-path-relative/-/cached-path-relative-1.1.0.tgz", - "integrity": "sha512-WF0LihfemtesFcJgO7xfOoOcnWzY/QHR4qeDqV44jPU3HTI54+LnfXK3SA27AVVGCdZFgjjFFaqUA9Jx7dMJZA==", - "dev": true - }, - "call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "requires": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - } - }, - "callsites": { - "version": "3.1.0", - "dev": true - }, - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true - }, - "caniuse-lite": { - "version": "1.0.30001414", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001414.tgz", - "integrity": "sha512-t55jfSaWjCdocnFdKQoO+d2ct9C59UZg4dY3OnUlSZ447r8pUtIKdp0hpAzrGFultmTC+Us+KpKi4GZl/LXlFg==", - "dev": true - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "char-regex": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", - "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", - "dev": true - }, - "chownr": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", - "dev": true - }, - "chrome-trace-event": { - "version": "1.0.3", - "dev": true - }, - "ci-info": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", - "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", - "dev": true - }, - "cipher-base": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", - "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", - "dev": true - }, - "cjs-module-lexer": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", - "integrity": "sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==", - "dev": true - }, - "cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - } - }, - "clone-deep": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", - "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4", - "kind-of": "^6.0.2", - "shallow-clone": "^3.0.0" - }, - "dependencies": { - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "requires": { - "isobject": "^3.0.1" - } - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", - "dev": true - }, - "kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "dev": true - } - } - }, - "co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==" - }, - "coffee-script": { - "version": "1.12.7", - "dev": true - }, - "collect-v8-coverage": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", - "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", - "dev": true - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "colorette": { - "version": "2.0.20", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", - "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", - "dev": true - }, - "combine-source-map": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.8.0.tgz", - "integrity": "sha512-UlxQ9Vw0b/Bt/KYwCFqdEwsQ1eL8d1gibiFb7lxQJFdvTgc2hIZi6ugsg+kyhzhPV+QEpUiEIwInIAIrgoEkrg==", - "dev": true, - "requires": { - "convert-source-map": "~1.1.0", - "inline-source-map": "~0.6.0", - "lodash.memoize": "~3.0.3", - "source-map": "~0.5.3" - } - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" - }, - "concat-stream": { - "version": "1.6.2", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" - } - }, - "concat-with-sourcemaps": { - "version": "1.1.0", - "dev": true, - "requires": { - "source-map": "^0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "console-browserify": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", - "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==", - "dev": true - }, - "constants-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", - "integrity": "sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ==", - "dev": true - }, - "convert-source-map": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", - "integrity": "sha512-Y8L5rp6jo+g9VEPgvqNfEopjTR4OTYct8lXlS8iVQdmnjDvbdbzYe9rjtFCB9egC86JoNCU61WRY+ScjkZpnIg==", - "dev": true - }, - "core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", - "dev": true - }, - "create-ecdh": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", - "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", - "dev": true - }, - "create-hash": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", - "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", - "dev": true, - "requires": { - "node-fetch": "2.6.7" - } - }, - "create-hmac": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", - "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", - "dev": true, - "requires": { - "cipher-base": "^1.0.3", - "create-hash": "^1.1.0", - "inherits": "^2.0.1", - "ripemd160": "^2.0.0", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, - "create-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true - }, - "cross-env": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", - "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.1" - } - }, - "cross-fetch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", - "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", - "dev": true, - "requires": { - "node-fetch": "2.6.7" - } - }, - "cross-spawn": { - "version": "7.0.3", - "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "crypto-browserify": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", - "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", - "dev": true, - "requires": { - "browserify-cipher": "^1.0.0", - "browserify-sign": "^4.0.0", - "create-ecdh": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.0", - "diffie-hellman": "^5.0.0", - "inherits": "^2.0.1", - "pbkdf2": "^3.0.3", - "public-encrypt": "^4.0.0", - "randombytes": "^2.0.0", - "randomfill": "^1.0.3" - } - }, - "damerau-levenshtein": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", - "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", - "dev": true - }, - "dash-ast": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/dash-ast/-/dash-ast-1.0.0.tgz", - "integrity": "sha512-Vy4dx7gquTeMcQR/hDkYLGUnwVil6vk4FOOct+djUnHOUWt+zJPJAaRIXaAFkPXtJjvlY7o3rfRu0/3hpnwoUA==", - "dev": true - }, - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, - "requires": { - "ms": "2.1.2" - } - }, - "dedent": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", - "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", - "dev": true - }, - "deep-equal": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.0.tgz", - "integrity": "sha512-RdpzE0Hv4lhowpIUKKMJfeH6C1pXdtT1/it80ubgWqwI3qpuxUBpC1S4hnHg+zjnuOoDkzUtUCEEkG+XG5l3Mw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "es-get-iterator": "^1.1.2", - "get-intrinsic": "^1.1.3", - "is-arguments": "^1.1.1", - "is-array-buffer": "^3.0.1", - "is-date-object": "^1.0.5", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "isarray": "^2.0.5", - "object-is": "^1.1.5", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", - "side-channel": "^1.0.4", - "which-boxed-primitive": "^1.0.2", - "which-collection": "^1.0.1", - "which-typed-array": "^1.1.9" - }, - "dependencies": { - "isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true - } - } - }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", - "dev": true - }, - "define-properties": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", - "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", - "requires": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - } - }, - "defined": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz", - "integrity": "sha512-Y2caI5+ZwS5c3RiNDJ6u53VhQHv+hHKwhkI1iHvceKUHw9Df6EK2zRLfjejRgMuCuxK7PfSWIMwWecceVvThjQ==", - "dev": true - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "dev": true - }, - "dependency-graph": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", - "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==" - }, - "deps-sort": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/deps-sort/-/deps-sort-2.0.1.tgz", - "integrity": "sha512-1orqXQr5po+3KI6kQb9A4jnXT1PBwggGl2d7Sq2xsnOeI9GPcE/tGcF9UiSZtZBM7MukY4cAh7MemS6tZYipfw==", - "dev": true - }, - "des.js": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.1.tgz", - "integrity": "sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } - }, - "detect-newline": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", - "dev": true - }, - "detective": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/detective/-/detective-5.2.1.tgz", - "integrity": "sha512-v9XE1zRnz1wRtgurGu0Bs8uHKFSTdteYZNbIPFVhUZ39L/S79ppMpdmVOZAnoz1jfEFodc48n6MX483Xo3t1yw==", - "dev": true, - "requires": { - "acorn-node": "^1.8.2", - "defined": "^1.0.0", - "minimist": "^1.2.6" - } - }, - "devtools-protocol": { - "version": "0.0.1036444", - "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1036444.tgz", - "integrity": "sha512-0y4f/T8H9lsESV9kKP1HDUXgHxCdniFeJh6Erq+FbdOEvp/Ydp9t8kcAAM5gOd17pMrTDlFWntoHtzzeTUWKNw==", - "dev": true - }, - "diacritics-map": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/diacritics-map/-/diacritics-map-0.1.0.tgz", - "integrity": "sha512-3omnDTYrGigU0i4cJjvaKwD52B8aoqyX/NEIkukFFkogBemsIbhSa1O414fpTp5nuszJG6lvQ5vBvDVNCbSsaQ==", - "dev": true - }, - "diff-sequences": { - "version": "27.5.1", - "dev": true - }, - "diffie-hellman": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", - "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "miller-rabin": "^4.0.0", - "randombytes": "^2.0.0" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - } - } - }, - "dir-glob": { - "version": "3.0.1", - "dev": true, - "requires": { - "path-type": "^4.0.0" - } - }, - "doctrine": { - "version": "3.0.0", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "domain-browser": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", - "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", - "dev": true - }, - "duplexer": { - "version": "0.1.2", - "dev": true - }, - "duplexer2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", - "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==", - "dev": true, - "requires": { - "readable-stream": "^2.0.2" - } - }, - "electron-to-chromium": { - "version": "1.4.268", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.268.tgz", - "integrity": "sha512-PO90Bv++vEzdln+eA9qLg1IRnh0rKETus6QkTzcFm5P3Wg3EQBZud5dcnzkpYXuIKWBjKe5CO8zjz02cicvn1g==", - "dev": true - }, - "elliptic": { - "version": "6.5.4", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", - "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", - "dev": true, - "requires": { - "bn.js": "^4.11.9", - "brorand": "^1.1.0", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.1", - "inherits": "^2.0.4", - "minimalistic-assert": "^1.0.1", - "minimalistic-crypto-utils": "^1.0.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - } - } - }, - "emittery": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", - "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "end-of-stream": { - "version": "1.4.4", - "dev": true, - "requires": { - "once": "^1.4.0" - } - }, - "enhanced-resolve": { - "version": "5.13.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.13.0.tgz", - "integrity": "sha512-eyV8f0y1+bzyfh8xAwW/WTSZpLbjhqc4ne9eGSH4Zo2ejdyiNG9pU6mf9DG8a7+Auk6MFTlNOT4Y2y/9k8GKVg==", - "dev": true, - "requires": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - } - }, - "envinfo": { - "version": "7.8.1", - "dev": true - }, - "error-ex": { - "version": "1.3.2", - "dev": true, - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "es-abstract": { - "version": "1.21.2", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz", - "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==", - "requires": { - "array-buffer-byte-length": "^1.0.0", - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "es-set-tostringtag": "^2.0.1", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.2.0", - "get-symbol-description": "^1.0.0", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.5", - "is-array-buffer": "^3.0.2", - "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.10", - "is-weakref": "^1.0.2", - "object-inspect": "^1.12.3", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", - "safe-regex-test": "^1.0.0", - "string.prototype.trim": "^1.2.7", - "string.prototype.trimend": "^1.0.6", - "string.prototype.trimstart": "^1.0.6", - "typed-array-length": "^1.0.4", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.9" - } - }, - "es-aggregate-error": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/es-aggregate-error/-/es-aggregate-error-1.0.9.tgz", - "integrity": "sha512-fvnX40sb538wdU6r4s35cq4EY6Lr09Upj40BEVem4LEsuW8XgQep9yD5Q1U2KftokNp1rWODFJ2qwZSsAjFpbg==", - "requires": { - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4", - "function-bind": "^1.1.1", - "functions-have-names": "^1.2.3", - "get-intrinsic": "^1.1.3", - "globalthis": "^1.0.3", - "has-property-descriptors": "^1.0.0" - } - }, - "es-get-iterator": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", - "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "has-symbols": "^1.0.3", - "is-arguments": "^1.1.1", - "is-map": "^2.0.2", - "is-set": "^2.0.2", - "is-string": "^1.0.7", - "isarray": "^2.0.5", - "stop-iteration-iterator": "^1.0.0" - }, - "dependencies": { - "isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true - } - } - }, - "es-module-lexer": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.2.1.tgz", - "integrity": "sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==", - "dev": true - }, - "es-set-tostringtag": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", - "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", - "requires": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "has-tostringtag": "^1.0.0" - } - }, - "es-shim-unscopables": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", - "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - } - }, - "escalade": { - "version": "3.1.1", - "dev": true - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - }, - "escodegen": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.1.0.tgz", - "integrity": "sha512-md+WjA8K+DJELEYe0n4XAOE0XbUYfw2rzb8T+nhZ19OnQxlh+0jMLS6d+z2oqWugIh3uYKu1+KJh6QKeoogLzg==", - "dev": true, - "requires": { - "esprima": "~1.0.4", - "estraverse": "~1.5.0", - "esutils": "~1.0.0", - "source-map": "~0.1.30" - }, - "dependencies": { - "esprima": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", - "integrity": "sha512-rp5dMKN8zEs9dfi9g0X1ClLmV//WRyk/R15mppFNICIFRG5P92VP7Z04p8pk++gABo9W2tY+kHyu6P1mEHgmTA==", - "dev": true - }, - "estraverse": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.5.1.tgz", - "integrity": "sha512-FpCjJDfmo3vsc/1zKSeqR5k42tcIhxFIlvq+h9j0fO2q/h2uLKyweq7rYJ+0CoVvrGQOxIS5wyBrW/+vF58BUQ==", - "dev": true - }, - "esutils": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-1.0.0.tgz", - "integrity": "sha512-x/iYH53X3quDwfHRz4y8rn4XcEwwCJeWsul9pF1zldMbGtgOtMNBEOuYWwB1EQlK2LRa1fev3YAgym/RElp5Cg==", - "dev": true - }, - "source-map": { - "version": "0.1.43", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", - "integrity": "sha512-VtCvB9SIQhk3aF6h+N85EaqIaBFIAfZ9Cu+NJHHVvc8BbEcnvDcFw6sqQ2dQrT6SlOrZq3tIvyD9+EGq/lJryQ==", - "dev": true, - "optional": true, - "requires": { - "amdefine": ">=0.0.4" - } - } - } - }, - "eslint": { - "version": "8.38.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.38.0.tgz", - "integrity": "sha512-pIdsD2jwlUGf/U38Jv97t8lq6HpaU/G9NKbYmpWpZGw3LdTNhZLbJePqxOXGB5+JEKfOPU/XLxYxFh03nr1KTg==", - "dev": true, - "requires": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.0.2", - "@eslint/js": "8.38.0", - "@humanwhocodes/config-array": "^0.11.8", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.1.1", - "eslint-visitor-keys": "^3.4.0", - "espree": "^9.5.1", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-sdsl": "^4.1.4", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", - "text-table": "^0.2.0" - }, - "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "eslint-scope": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", - "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", - "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - } - }, - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - }, - "glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "requires": { - "is-glob": "^4.0.3" - } - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - } - } - }, - "eslint-config-prettier": { - "version": "8.8.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", - "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", - "dev": true, - "requires": {} - }, - "eslint-import-resolver-node": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", - "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", - "dev": true, - "requires": { - "debug": "^3.2.7", - "is-core-module": "^2.11.0", - "resolve": "^1.22.1" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } - } - }, - "eslint-module-utils": { - "version": "2.7.4", - "dev": true, - "requires": { - "debug": "^3.2.7" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - } - } - }, - "eslint-plugin-escompat": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-escompat/-/eslint-plugin-escompat-3.4.0.tgz", - "integrity": "sha512-ufTPv8cwCxTNoLnTZBFTQ5SxU2w7E7wiMIS7PSxsgP1eAxFjtSaoZ80LRn64hI8iYziE6kJG6gX/ZCJVxh48Bg==", - "dev": true, - "requires": { - "browserslist": "^4.21.0" - } - }, - "eslint-plugin-eslint-comments": { - "version": "3.2.0", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.5", - "ignore": "^5.0.5" - }, - "dependencies": { - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true - } - } - }, - "eslint-plugin-filenames": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-filenames/-/eslint-plugin-filenames-1.3.2.tgz", - "integrity": "sha512-tqxJTiEM5a0JmRCUYQmxw23vtTxrb2+a3Q2mMOPhFxvt7ZQQJmdiuMby9B/vUAuVMghyP7oET+nIf6EO6CBd/w==", - "dev": true, - "requires": { - "lodash.camelcase": "4.3.0", - "lodash.kebabcase": "4.1.1", - "lodash.snakecase": "4.1.1", - "lodash.upperfirst": "4.3.1" - } - }, - "eslint-plugin-github": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-4.7.0.tgz", - "integrity": "sha512-SIFSy6IXtN3aGQ6YyFWg/oxRUyAcYwg5G0wh+ov1HQCvmp+Pzs1GzeVjU8QcIQSSJfverQzuxWrJCAln/d2PuQ==", - "dev": true, - "requires": { - "@github/browserslist-config": "^1.0.0", - "@typescript-eslint/eslint-plugin": "^5.1.0", - "@typescript-eslint/parser": "^5.1.0", - "aria-query": "^5.1.3", - "eslint-config-prettier": ">=8.0.0", - "eslint-plugin-escompat": "^3.3.3", - "eslint-plugin-eslint-comments": "^3.2.0", - "eslint-plugin-filenames": "^1.3.2", - "eslint-plugin-i18n-text": "^1.0.1", - "eslint-plugin-import": "^2.25.2", - "eslint-plugin-jsx-a11y": "^6.7.1", - "eslint-plugin-no-only-tests": "^3.0.0", - "eslint-plugin-prettier": "^4.0.0", - "eslint-rule-documentation": ">=1.0.0", - "jsx-ast-utils": "^3.3.2", - "prettier": "^2.2.1", - "svg-element-attributes": "^1.3.1" - } - }, - "eslint-plugin-i18n-text": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-i18n-text/-/eslint-plugin-i18n-text-1.0.1.tgz", - "integrity": "sha512-3G3UetST6rdqhqW9SfcfzNYMpQXS7wNkJvp6dsXnjzGiku6Iu5hl3B0kmk6lIcFPwYjhQIY+tXVRtK9TlGT7RA==", - "dev": true, - "requires": {} - }, - "eslint-plugin-import": { - "version": "2.27.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", - "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", - "dev": true, - "requires": { - "array-includes": "^3.1.6", - "array.prototype.flat": "^1.3.1", - "array.prototype.flatmap": "^1.3.1", - "debug": "^3.2.7", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.7", - "eslint-module-utils": "^2.7.4", - "has": "^1.0.3", - "is-core-module": "^2.11.0", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.values": "^1.1.6", - "resolve": "^1.22.1", - "semver": "^6.3.0", - "tsconfig-paths": "^3.14.1" - }, - "dependencies": { - "debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "eslint-plugin-jsx-a11y": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", - "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", - "dev": true, - "requires": { - "@babel/runtime": "^7.20.7", - "aria-query": "^5.1.3", - "array-includes": "^3.1.6", - "array.prototype.flatmap": "^1.3.1", - "ast-types-flow": "^0.0.7", - "axe-core": "^4.6.2", - "axobject-query": "^3.1.1", - "damerau-levenshtein": "^1.0.8", - "emoji-regex": "^9.2.2", - "has": "^1.0.3", - "jsx-ast-utils": "^3.3.3", - "language-tags": "=1.0.5", - "minimatch": "^3.1.2", - "object.entries": "^1.1.6", - "object.fromentries": "^2.0.6", - "semver": "^6.3.0" - }, - "dependencies": { - "emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "eslint-plugin-no-only-tests": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-3.1.0.tgz", - "integrity": "sha512-Lf4YW/bL6Un1R6A76pRZyE1dl1vr31G/ev8UzIc/geCgFWyrKil8hVjYqWVKGB/UIGmb6Slzs9T0wNezdSVegw==", - "dev": true - }, - "eslint-plugin-prettier": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", - "dev": true, - "requires": { - "prettier-linter-helpers": "^1.0.0" - } - }, - "eslint-plugin-security": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-1.5.0.tgz", - "integrity": "sha512-hAFVwLZ/UeXrlyVD2TDarv/x00CoFVpaY0IUZhKjPjiFxqkuQVixsK4f2rxngeQOqSxi6OUjzJM/jMwKEVjJ8g==", - "dev": true, - "requires": { - "safe-regex": "^2.1.1" - } - }, - "eslint-plugin-sonarjs": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.15.0.tgz", - "integrity": "sha512-LuxHdAe6VqSbi1phsUvNjbmXLuvlobmryQJJNyQYbdubCfz6K8tmgoqNiJPnz0pP2AbYDbtuPm0ajOMgMrC+dQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "eslint-rule-documentation": { - "version": "1.0.23", - "resolved": "https://registry.npmjs.org/eslint-rule-documentation/-/eslint-rule-documentation-1.0.23.tgz", - "integrity": "sha512-pWReu3fkohwyvztx/oQWWgld2iad25TfUdi6wvhhaDPIQjHU/pyvlKgXFw1kX31SQK2Nq9MH+vRDWB0ZLy8fYw==", - "dev": true - }, - "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - } - }, - "eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^2.0.0" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true - } - } - }, - "eslint-visitor-keys": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.0.tgz", - "integrity": "sha512-HPpKPUBQcAsZOsHAFwTtIKcYlCje62XB7SEAcxjtmW6TD1WVpkS6i6/hOVtTZIl4zGj/mBqpFVGvaDneik+VoQ==", - "dev": true - }, - "espree": { - "version": "9.5.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.1.tgz", - "integrity": "sha512-5yxtHSZXRSW5pvv3hAlXM5+/Oswi1AUFqBmbibKb5s6bp3rGIDkyXU6xCoyuuLhijr4SFwPrXRoZjz0AZDN9tg==", - "dev": true, - "requires": { - "acorn": "^8.8.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.0" - }, - "dependencies": { - "acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "dev": true - } - } - }, - "esprima": { - "version": "4.0.1" - }, - "esprima-fb": { - "version": "3001.1.0-dev-harmony-fb", - "resolved": "https://registry.npmjs.org/esprima-fb/-/esprima-fb-3001.0001.0000-dev-harmony-fb.tgz", - "integrity": "sha512-a3RFiCVBiy8KdO6q/C+8BQiP/sRk8XshBU3QHHDP8tNzjYwR3FKBOImu+PXfVhPoZL0JKtJLBAOWlDMCCFY8SQ==", - "dev": true - }, - "esquery": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", - "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", - "dev": true, - "requires": { - "estraverse": "^5.1.0" - }, - "dependencies": { - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - } - } - }, - "esrecurse": { - "version": "4.3.0", - "dev": true, - "requires": { - "estraverse": "^5.2.0" - }, - "dependencies": { - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - } - } - }, - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, - "event-target-shim": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", - "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==" - }, - "events": { - "version": "3.3.0", - "dev": true - }, - "evp_bytestokey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", - "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", - "dev": true, - "requires": { - "md5.js": "^1.3.4", - "safe-buffer": "^5.1.1" - } - }, - "execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - } - }, - "exit": { - "version": "0.1.2", - "dev": true - }, - "expand-range": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", - "integrity": "sha512-AFASGfIlnIbkKPQwX1yHaDjFvh/1gyKJODme52V6IORh69uEYgZp0o9C+qsIGNVEiuuhQU0CSSl++Rlegg1qvA==", - "dev": true, - "requires": { - "fill-range": "^2.1.0" - } - }, - "expect": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/expect/-/expect-29.5.0.tgz", - "integrity": "sha512-yM7xqUrCO2JdpFo4XpM82t+PJBFybdqoQuJLDGeDX2ij8NZzqRHyu3Hp188/JX7SWqud+7t4MUdvcgGBICMHZg==", - "dev": true, - "requires": { - "@jest/expect-utils": "^29.5.0", - "jest-get-type": "^29.4.3", - "jest-matcher-utils": "^29.5.0", - "jest-message-util": "^29.5.0", - "jest-util": "^29.5.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - }, - "diff-sequences": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", - "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", - "dev": true - }, - "jest-diff": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.5.0.tgz", - "integrity": "sha512-LtxijLLZBduXnHSniy0WMdaHjmQnt3g5sa16W4p0HqukYTTsyTW3GD1q41TyGl5YFXj/5B2U6dlh5FM1LIMgxw==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "diff-sequences": "^29.4.3", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - } - }, - "jest-matcher-utils": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.5.0.tgz", - "integrity": "sha512-lecRtgm/rjIK0CQ7LPQwzCs2VwW6WAahA55YBuI+xqmhm7LAaxokSB8C97yJeYyT+HvQkH741StzpU41wohhWw==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "jest-diff": "^29.5.0", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - } - }, - "pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, - "requires": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - } - }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - } - } - }, - "exposify": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/exposify/-/exposify-0.5.0.tgz", - "integrity": "sha512-SXS1oEW6VXYinz7RbTPUj+RhO3ZXuj2cmUTWTaO8KcWMcxLZF3wzjqSuaOW0EZYBoKooUM8DIkvfWWOMXTMQFQ==", - "dev": true, - "requires": { - "globo": "~1.1.0", - "map-obj": "~1.0.1", - "replace-requires": "~1.0.3", - "through2": "~0.4.0", - "transformify": "~0.1.1" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "dev": true - }, - "object-keys": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz", - "integrity": "sha512-ncrLw+X55z7bkl5PnUvHwFK9FcGuFYo9gtjws2XtSzL+aZ8tm830P60WJ0dSmFVaSalWieW5MD7kEdnXda9yJw==", - "dev": true - }, - "readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", - "dev": true - }, - "through2": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.4.2.tgz", - "integrity": "sha512-45Llu+EwHKtAZYTPPVn3XZHBgakWMN3rokhEv5hu596XP+cNgplMg+Gj+1nmAvj+L0K7+N49zBKx5rah5u0QIQ==", - "dev": true, - "requires": { - "readable-stream": "~1.0.17", - "xtend": "~2.1.1" - } - }, - "xtend": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-2.1.2.tgz", - "integrity": "sha512-vMNKzr2rHP9Dp/e1NQFnLQlwlhp9L/LfvnsVdHxN1f+uggyVI3i08uD14GPvCToPkdsRfyPqIyYGmIk58V98ZQ==", - "dev": true, - "requires": { - "object-keys": "~0.4.0" - } - } - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "extract-zip": { - "version": "2.0.1", - "dev": true, - "requires": { - "@types/yauzl": "^2.9.1", - "debug": "^4.1.1", - "get-stream": "^5.1.0", - "yauzl": "^2.10.0" - }, - "dependencies": { - "get-stream": { - "version": "5.2.0", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - } - } - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "fast-diff": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", - "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", - "dev": true - }, - "fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - } - }, - "fast-json-stable-stringify": { - "version": "2.1.0" - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "fast-memoize": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz", - "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==" - }, - "fastest-levenshtein": { - "version": "1.0.16", - "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", - "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", - "dev": true - }, - "fastq": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", - "dev": true, - "requires": { - "reusify": "^1.0.4" - } - }, - "fb-watchman": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", - "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", - "dev": true, - "requires": { - "bser": "2.1.1" - } - }, - "fd-slicer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", - "dev": true, - "requires": { - "pend": "~1.2.0" - } - }, - "file-entry-cache": { - "version": "6.0.1", - "dev": true, - "requires": { - "flat-cache": "^3.0.4" - } - }, - "fill-range": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", - "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", - "dev": true, - "requires": { - "is-number": "^2.1.0", - "isobject": "^2.0.0", - "randomatic": "^3.0.0", - "repeat-element": "^1.1.2", - "repeat-string": "^1.5.2" - } - }, - "find-parent-dir": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/find-parent-dir/-/find-parent-dir-0.3.1.tgz", - "integrity": "sha512-o4UcykWV/XN9wm+jMEtWLPlV8RXCZnMhQI6F6OdHeSez7iiJWePw8ijOlskJZMsaQoGR/b7dH6lO02HhaTN7+A==", - "dev": true - }, - "find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "requires": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "dependencies": { - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - } - } - }, - "flat-cache": { - "version": "3.0.4", - "dev": true, - "requires": { - "flatted": "^3.1.0", - "rimraf": "^3.0.2" - } - }, - "flatted": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", - "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", - "dev": true - }, - "for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "requires": { - "is-callable": "^1.1.3" - } - }, - "for-in": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==", - "dev": true - }, - "form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "dev": true, - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - } - }, - "fs-constants": { - "version": "1.0.0", - "dev": true - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true - }, - "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "optional": true - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" - }, - "function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" - } - }, - "functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", - "dev": true - }, - "functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==" - }, - "gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true - }, - "get-assigned-identifiers": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz", - "integrity": "sha512-mBBwmeGTrxEMO4pMaaf/uUEFHnYtwr8FTe8Y/mer4rcV/bye0qGm6pw1bGZFGStxC5O76c5ZAVBGnqHmOaJpdQ==", - "dev": true - }, - "get-caller-file": { - "version": "2.0.5", - "dev": true - }, - "get-intrinsic": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", - "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", - "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.3" - } - }, - "get-package-type": { - "version": "0.1.0", - "dev": true - }, - "get-stream": { - "version": "6.0.1", - "dev": true - }, - "get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - } - }, - "glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-parent": { - "version": "5.1.2", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - }, - "glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", - "dev": true - }, - "globals": { - "version": "13.20.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", - "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", - "dev": true, - "requires": { - "type-fest": "^0.20.2" - } - }, - "globalthis": { - "version": "1.0.3", - "requires": { - "define-properties": "^1.1.3" - } - }, - "globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, - "requires": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - } - }, - "globo": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/globo/-/globo-1.1.0.tgz", - "integrity": "sha512-9kacJpRuOo2IPxzYdogGZKnREZXMLs7P2/gaeHxynuL7kmxdB9o4EVtpd69f81CeUFWmZSxj1heZFEXQDTkaLQ==", - "dev": true, - "requires": { - "accessory": "~1.1.0", - "is-defined": "~1.0.0", - "ternary": "~1.0.0" - } - }, - "gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "requires": { - "get-intrinsic": "^1.1.3" - } - }, - "graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", - "dev": true - }, - "grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", - "dev": true - }, - "gray-matter": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-2.1.1.tgz", - "integrity": "sha512-vbmvP1Fe/fxuT2QuLVcqb2BfK7upGhhbLIt9/owWEvPYrZZEkelLcq2HqzxosV+PQ67dUFLaAeNpH7C4hhICAA==", - "dev": true, - "requires": { - "ansi-red": "^0.1.1", - "coffee-script": "^1.12.4", - "extend-shallow": "^2.0.1", - "js-yaml": "^3.8.1", - "toml": "^2.3.2" - }, - "dependencies": { - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - } - } - }, - "gulp-header": { - "version": "1.8.12", - "dev": true, - "requires": { - "concat-with-sourcemaps": "*", - "lodash.template": "^4.4.0", - "through2": "^2.0.0" - } - }, - "gzip-size": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", - "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", - "dev": true, - "requires": { - "duplexer": "^0.1.2" - } - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==" - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "requires": { - "get-intrinsic": "^1.1.1" - } - }, - "has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==" - }, - "has-require": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/has-require/-/has-require-1.2.2.tgz", - "integrity": "sha512-JHMVoV2TG3LEFw/8UjxXJzCRGdOHJzzAXft7BafERh2rdPYZcS5N6Twv7Q8yLy9mciKsVBkXmpWSuLp5GUXNng==", - "dev": true, - "requires": { - "get-intrinsic": "^1.1.1" - } - }, - "has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" - }, - "has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "requires": { - "has-symbols": "^1.0.2" - } - }, - "hash-base": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", - "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==", - "dev": true, - "requires": { - "inherits": "^2.0.4", - "readable-stream": "^3.6.0", - "safe-buffer": "^5.2.0" - }, - "dependencies": { - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - } - } - }, - "hash.js": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - } - }, - "hmac-drbg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", - "dev": true, - "requires": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" - } - }, - "html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true - }, - "htmlescape": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/htmlescape/-/htmlescape-1.1.1.tgz", - "integrity": "sha512-eVcrzgbR4tim7c7soKQKtxa/kQM4TzjnlU83rcZ9bHU6t31ehfV7SktN6McWgwPWg+JYMA/O3qpGxBvFq1z2Jg==", - "dev": true - }, - "https-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", - "integrity": "sha512-J+FkSdyD+0mA0N+81tMotaRMfSL9SGi+xpD3T6YApKsc3bGSXJlfXri3VyFOeYkfLRQisDk1W+jIFFKBeUBbBg==", - "dev": true - }, - "https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, - "requires": { - "agent-base": "6", - "debug": "4" - } - }, - "human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true - }, - "ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "dev": true - }, - "ignore": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", - "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", - "dev": true - }, - "immer": { - "version": "9.0.21", - "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", - "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==" - }, - "import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "dependencies": { - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true - } - } - }, - "import-local": { - "version": "3.1.0", - "dev": true, - "requires": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "dev": true - }, - "inline-source-map": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.6.2.tgz", - "integrity": "sha512-0mVWSSbNDvedDWIN4wxLsdPM4a7cIPcpyMxj3QZ406QRwQ6ePGB1YIHxVPjqpcUGbWQ5C+nHTwGNWAGvt7ggVA==", - "dev": true - }, - "insert-module-globals": { - "version": "7.2.1", - "resolved": "https://registry.npmjs.org/insert-module-globals/-/insert-module-globals-7.2.1.tgz", - "integrity": "sha512-ufS5Qq9RZN+Bu899eA9QCAYThY+gGW7oRkmb0vC93Vlyu/CFGcH0OYPEjVkDXA5FEbTt1+VWzdoOD3Ny9N+8tg==", - "dev": true, - "requires": { - "acorn-node": "^1.5.2", - "combine-source-map": "^0.8.0", - "concat-stream": "^1.6.1", - "is-buffer": "^1.1.0", - "JSONStream": "^1.0.3", - "path-is-absolute": "^1.0.1", - "process": "~0.11.0", - "through2": "^2.0.0", - "undeclared-identifiers": "^1.1.2", - "xtend": "^4.0.0" - } - }, - "internal-slot": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", - "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", - "requires": { - "get-intrinsic": "^1.2.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - } - }, - "is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-array-buffer": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", - "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "is-typed-array": "^1.1.10" - } - }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true - }, - "is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "requires": { - "has-bigints": "^1.0.1" - } - }, - "is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-buffer": { - "version": "1.1.6", - "dev": true - }, - "is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==" - }, - "is-core-module": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.0.tgz", - "integrity": "sha512-RECHCBCd/viahWmwj6enj19sKbHfJrddi/6cBDsNTKbNq0f7VeaUkBo60BqzvPqo/W54ChS62Z5qyun7cfOMqQ==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-defined": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-defined/-/is-defined-1.0.0.tgz", - "integrity": "sha512-/drGiPCBGsJDhtnLkdcNl8QtEo9ddV10m0Y7wzkopIQM4u91wXhe84pZSH6RLukO2uJDtQoaAr1XoP0ilwsYzg==", - "dev": true - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "dev": true - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "is-generator-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", - "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", - "dev": true - }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-map": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz", - "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==", - "dev": true - }, - "is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==" - }, - "is-number": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha512-QUzH43Gfb9+5yckcrSA0VBDwEtDUchrk4F6tfJZQuNzDJbEDB9cZNzSfXGQ1jqmdDY/kl41lUOWM9syA8z8jlg==", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true - }, - "is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-set": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz", - "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==", - "dev": true - }, - "is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "requires": { - "call-bind": "^1.0.2" - } - }, - "is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true - }, - "is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "requires": { - "has-symbols": "^1.0.2" - } - }, - "is-typed-array": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", - "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", - "requires": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0" - } - }, - "is-weakmap": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", - "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", - "dev": true - }, - "is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "requires": { - "call-bind": "^1.0.2" - } - }, - "is-weakset": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz", - "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - } - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", - "dev": true, - "requires": { - "isarray": "1.0.0" - } - }, - "istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", - "dev": true - }, - "istanbul-lib-report": { - "version": "3.0.0", - "dev": true, - "requires": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", - "supports-color": "^7.1.0" - } - }, - "istanbul-lib-source-maps": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", - "dev": true, - "requires": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "istanbul-reports": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", - "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", - "dev": true, - "requires": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - } - }, - "jest": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest/-/jest-29.5.0.tgz", - "integrity": "sha512-juMg3he2uru1QoXX078zTa7pO85QyB9xajZc6bU+d9yEGwrKX6+vGmJQ3UdVZsvTEUARIdObzH68QItim6OSSQ==", - "dev": true, - "requires": { - "@jest/core": "^29.5.0", - "@jest/types": "^29.5.0", - "import-local": "^3.0.2", - "jest-cli": "^29.5.0" - } - }, - "jest-changed-files": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.5.0.tgz", - "integrity": "sha512-IFG34IUMUaNBIxjQXF/iu7g6EcdMrGRRxaUSw92I/2g2YC6vCdTltl4nHvt7Ci5nSJwXIkCu8Ka1DKF+X7Z1Ag==", - "dev": true, - "requires": { - "execa": "^5.0.0", - "p-limit": "^3.1.0" - }, - "dependencies": { - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - } - } - }, - "jest-circus": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.5.0.tgz", - "integrity": "sha512-gq/ongqeQKAplVxqJmbeUOJJKkW3dDNPY8PjhJ5G0lBRvu0e3EWGxGy5cI4LAGA7gV2UHCtWBI4EMXK8c9nQKA==", - "dev": true, - "requires": { - "@jest/environment": "^29.5.0", - "@jest/expect": "^29.5.0", - "@jest/test-result": "^29.5.0", - "@jest/types": "^29.5.0", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "dedent": "^0.7.0", - "is-generator-fn": "^2.0.0", - "jest-each": "^29.5.0", - "jest-matcher-utils": "^29.5.0", - "jest-message-util": "^29.5.0", - "jest-runtime": "^29.5.0", - "jest-snapshot": "^29.5.0", - "jest-util": "^29.5.0", - "p-limit": "^3.1.0", - "pretty-format": "^29.5.0", - "pure-rand": "^6.0.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - }, - "diff-sequences": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", - "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", - "dev": true - }, - "jest-diff": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.5.0.tgz", - "integrity": "sha512-LtxijLLZBduXnHSniy0WMdaHjmQnt3g5sa16W4p0HqukYTTsyTW3GD1q41TyGl5YFXj/5B2U6dlh5FM1LIMgxw==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "diff-sequences": "^29.4.3", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - } - }, - "jest-matcher-utils": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.5.0.tgz", - "integrity": "sha512-lecRtgm/rjIK0CQ7LPQwzCs2VwW6WAahA55YBuI+xqmhm7LAaxokSB8C97yJeYyT+HvQkH741StzpU41wohhWw==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "jest-diff": "^29.5.0", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - } - }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - }, - "pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, - "requires": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - } - }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - } - } - }, - "jest-cli": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.5.0.tgz", - "integrity": "sha512-L1KcP1l4HtfwdxXNFCL5bmUbLQiKrakMUriBEcc1Vfz6gx31ORKdreuWvmQVBit+1ss9NNR3yxjwfwzZNdQXJw==", - "dev": true, - "requires": { - "@jest/core": "^29.5.0", - "@jest/test-result": "^29.5.0", - "@jest/types": "^29.5.0", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "import-local": "^3.0.2", - "jest-config": "^29.5.0", - "jest-util": "^29.5.0", - "jest-validate": "^29.5.0", - "prompts": "^2.0.1", - "yargs": "^17.3.1" - } - }, - "jest-config": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.5.0.tgz", - "integrity": "sha512-kvDUKBnNJPNBmFFOhDbm59iu1Fii1Q6SxyhXfvylq3UTHbg6o7j/g8k2dZyXWLvfdKB1vAPxNZnMgtKJcmu3kA==", - "dev": true, - "requires": { - "@babel/core": "^7.11.6", - "@jest/test-sequencer": "^29.5.0", - "@jest/types": "^29.5.0", - "babel-jest": "^29.5.0", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-circus": "^29.5.0", - "jest-environment-node": "^29.5.0", - "jest-get-type": "^29.4.3", - "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.5.0", - "jest-runner": "^29.5.0", - "jest-util": "^29.5.0", - "jest-validate": "^29.5.0", - "micromatch": "^4.0.4", - "parse-json": "^5.2.0", - "pretty-format": "^29.5.0", - "slash": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - }, - "pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, - "requires": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - } - }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - } - } - }, - "jest-diff": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", - "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "diff-sequences": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "dependencies": { - "jest-get-type": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "dev": true - } - } - }, - "jest-docblock": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.4.3.tgz", - "integrity": "sha512-fzdTftThczeSD9nZ3fzA/4KkHtnmllawWrXO69vtI+L9WjEIuXWs4AmyME7lN5hU7dB0sHhuPfcKofRsUb/2Fg==", - "dev": true, - "requires": { - "detect-newline": "^3.0.0" - } - }, - "jest-each": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.5.0.tgz", - "integrity": "sha512-HM5kIJ1BTnVt+DQZ2ALp3rzXEl+g726csObrW/jpEGl+CDSSQpOJJX2KE/vEg8cxcMXdyEPu6U4QX5eruQv5hA==", - "dev": true, - "requires": { - "@jest/types": "^29.5.0", - "chalk": "^4.0.0", - "jest-get-type": "^29.4.3", - "jest-util": "^29.5.0", - "pretty-format": "^29.5.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - }, - "pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, - "requires": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - } - }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - } - } - }, - "jest-environment-node": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.5.0.tgz", - "integrity": "sha512-ExxuIK/+yQ+6PRGaHkKewYtg6hto2uGCgvKdb2nfJfKXgZ17DfXjvbZ+jA1Qt9A8EQSfPnt5FKIfnOO3u1h9qw==", - "dev": true, - "requires": { - "@jest/environment": "^29.5.0", - "@jest/fake-timers": "^29.5.0", - "@jest/types": "^29.5.0", - "@types/node": "*", - "jest-mock": "^29.5.0", - "jest-util": "^29.5.0" - } - }, - "jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true - }, - "jest-haste-map": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.5.0.tgz", - "integrity": "sha512-IspOPnnBro8YfVYSw6yDRKh/TiCdRngjxeacCps1cQ9cgVN6+10JUcuJ1EabrgYLOATsIAigxA0rLR9x/YlrSA==", - "dev": true, - "requires": { - "@jest/types": "^29.5.0", - "@types/graceful-fs": "^4.1.3", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "fsevents": "^2.3.2", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^29.4.3", - "jest-util": "^29.5.0", - "jest-worker": "^29.5.0", - "micromatch": "^4.0.4", - "walker": "^1.0.8" - } - }, - "jest-leak-detector": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.5.0.tgz", - "integrity": "sha512-u9YdeeVnghBUtpN5mVxjID7KbkKE1QU4f6uUwuxiY0vYRi9BUCLKlPEZfDGR67ofdFmDz9oPAy2G92Ujrntmow==", - "dev": true, - "requires": { - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - }, - "pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, - "requires": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - } - }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - } - } - }, - "jest-matcher-utils": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", - "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" - }, - "dependencies": { - "jest-get-type": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "dev": true - } - } - }, - "jest-message-util": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.5.0.tgz", - "integrity": "sha512-Kijeg9Dag6CKtIDA7O21zNTACqD5MD/8HfIV8pdD94vFyFuer52SigdC3IQMhab3vACxXMiFk+yMHNdbqtyTGA==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^29.5.0", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^29.5.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - }, - "pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, - "requires": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - } - }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - } - } - }, - "jest-mock": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.5.0.tgz", - "integrity": "sha512-GqOzvdWDE4fAV2bWQLQCkujxYWL7RxjCnj71b5VhDAGOevB3qj3Ovg26A5NI84ZpODxyzaozXLOh2NCgkbvyaw==", - "dev": true, - "requires": { - "@jest/types": "^29.5.0", - "@types/node": "*", - "jest-util": "^29.5.0" - } - }, - "jest-pnp-resolver": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", - "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", - "dev": true, - "requires": {} - }, - "jest-regex-util": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.4.3.tgz", - "integrity": "sha512-O4FglZaMmWXbGHSQInfXewIsd1LMn9p3ZXB/6r4FOkyhX2/iP/soMG98jGvk/A3HAN78+5VWcBGO0BJAPRh4kg==", - "dev": true - }, - "jest-resolve": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.5.0.tgz", - "integrity": "sha512-1TzxJ37FQq7J10jPtQjcc+MkCkE3GBpBecsSUWJ0qZNJpmg6m0D9/7II03yJulm3H/fvVjgqLh/k2eYg+ui52w==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.5.0", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^29.5.0", - "jest-validate": "^29.5.0", - "resolve": "^1.20.0", - "resolve.exports": "^2.0.0", - "slash": "^3.0.0" - } - }, - "jest-resolve-dependencies": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.5.0.tgz", - "integrity": "sha512-sjV3GFr0hDJMBpYeUuGduP+YeCRbd7S/ck6IvL3kQ9cpySYKqcqhdLLC2rFwrcL7tz5vYibomBrsFYWkIGGjOg==", - "dev": true, - "requires": { - "jest-regex-util": "^29.4.3", - "jest-snapshot": "^29.5.0" - } - }, - "jest-runner": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.5.0.tgz", - "integrity": "sha512-m7b6ypERhFghJsslMLhydaXBiLf7+jXy8FwGRHO3BGV1mcQpPbwiqiKUR2zU2NJuNeMenJmlFZCsIqzJCTeGLQ==", - "dev": true, - "requires": { - "@jest/console": "^29.5.0", - "@jest/environment": "^29.5.0", - "@jest/test-result": "^29.5.0", - "@jest/transform": "^29.5.0", - "@jest/types": "^29.5.0", - "@types/node": "*", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "graceful-fs": "^4.2.9", - "jest-docblock": "^29.4.3", - "jest-environment-node": "^29.5.0", - "jest-haste-map": "^29.5.0", - "jest-leak-detector": "^29.5.0", - "jest-message-util": "^29.5.0", - "jest-resolve": "^29.5.0", - "jest-runtime": "^29.5.0", - "jest-util": "^29.5.0", - "jest-watcher": "^29.5.0", - "jest-worker": "^29.5.0", - "p-limit": "^3.1.0", - "source-map-support": "0.5.13" - }, - "dependencies": { - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - } - } - }, - "jest-runtime": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.5.0.tgz", - "integrity": "sha512-1Hr6Hh7bAgXQP+pln3homOiEZtCDZFqwmle7Ew2j8OlbkIu6uE3Y/etJQG8MLQs3Zy90xrp2C0BRrtPHG4zryw==", - "dev": true, - "requires": { - "@jest/environment": "^29.5.0", - "@jest/fake-timers": "^29.5.0", - "@jest/globals": "^29.5.0", - "@jest/source-map": "^29.4.3", - "@jest/test-result": "^29.5.0", - "@jest/transform": "^29.5.0", - "@jest/types": "^29.5.0", - "@types/node": "*", - "chalk": "^4.0.0", - "cjs-module-lexer": "^1.0.0", - "collect-v8-coverage": "^1.0.0", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.5.0", - "jest-message-util": "^29.5.0", - "jest-mock": "^29.5.0", - "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.5.0", - "jest-snapshot": "^29.5.0", - "jest-util": "^29.5.0", - "slash": "^3.0.0", - "strip-bom": "^4.0.0" - } - }, - "jest-snapshot": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.5.0.tgz", - "integrity": "sha512-x7Wolra5V0tt3wRs3/ts3S6ciSQVypgGQlJpz2rsdQYoUKxMxPNaoHMGJN6qAuPJqS+2iQ1ZUn5kl7HCyls84g==", - "dev": true, - "requires": { - "@babel/core": "^7.11.6", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-jsx": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/traverse": "^7.7.2", - "@babel/types": "^7.3.3", - "@jest/expect-utils": "^29.5.0", - "@jest/transform": "^29.5.0", - "@jest/types": "^29.5.0", - "@types/babel__traverse": "^7.0.6", - "@types/prettier": "^2.1.5", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^29.5.0", - "graceful-fs": "^4.2.9", - "jest-diff": "^29.5.0", - "jest-get-type": "^29.4.3", - "jest-matcher-utils": "^29.5.0", - "jest-message-util": "^29.5.0", - "jest-util": "^29.5.0", - "natural-compare": "^1.4.0", - "pretty-format": "^29.5.0", - "semver": "^7.3.5" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - }, - "diff-sequences": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", - "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", - "dev": true - }, - "jest-diff": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.5.0.tgz", - "integrity": "sha512-LtxijLLZBduXnHSniy0WMdaHjmQnt3g5sa16W4p0HqukYTTsyTW3GD1q41TyGl5YFXj/5B2U6dlh5FM1LIMgxw==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "diff-sequences": "^29.4.3", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - } - }, - "jest-matcher-utils": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.5.0.tgz", - "integrity": "sha512-lecRtgm/rjIK0CQ7LPQwzCs2VwW6WAahA55YBuI+xqmhm7LAaxokSB8C97yJeYyT+HvQkH741StzpU41wohhWw==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "jest-diff": "^29.5.0", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - } - }, - "pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, - "requires": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - } - }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - } - } - }, - "jest-util": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.5.0.tgz", - "integrity": "sha512-RYMgG/MTadOr5t8KdhejfvUU82MxsCu5MF6KuDUHl+NuwzUt+Sm6jJWxTJVrDR1j5M/gJVCPKQEpWXY+yIQ6lQ==", - "dev": true, - "requires": { - "@jest/types": "^29.5.0", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - } - }, - "jest-validate": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.5.0.tgz", - "integrity": "sha512-pC26etNIi+y3HV8A+tUGr/lph9B18GnzSRAkPaaZJIE1eFdiYm6/CewuiJQ8/RlfHd1u/8Ioi8/sJ+CmbA+zAQ==", - "dev": true, - "requires": { - "@jest/types": "^29.5.0", - "camelcase": "^6.2.0", - "chalk": "^4.0.0", - "jest-get-type": "^29.4.3", - "leven": "^3.1.0", - "pretty-format": "^29.5.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - }, - "camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true - }, - "pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, - "requires": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - } - }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - } - } - }, - "jest-watcher": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.5.0.tgz", - "integrity": "sha512-KmTojKcapuqYrKDpRwfqcQ3zjMlwu27SYext9pt4GlF5FUgB+7XE1mcCnSm6a4uUpFyQIkb6ZhzZvHl+jiBCiA==", - "dev": true, - "requires": { - "@jest/test-result": "^29.5.0", - "@jest/types": "^29.5.0", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "jest-util": "^29.5.0", - "string-length": "^4.0.1" - } - }, - "jest-worker": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.5.0.tgz", - "integrity": "sha512-NcrQnevGoSp4b5kg+akIpthoAFHxPBcb5P6mYPY0fUNT+sSvmtu6jlkEle3anczUKIKEbMxFimk9oTP/tpIPgA==", - "dev": true, - "requires": { - "@types/node": "*", - "jest-util": "^29.5.0", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "dependencies": { - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "js-sdsl": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.4.0.tgz", - "integrity": "sha512-FfVSdx6pJ41Oa+CF7RDaFmTnCaFhua+SNYQX74riGOpl96x+2jQCqEfQ2bnXu/5DPCqlRuiqyvTJM0Qjz26IVg==", - "dev": true - }, - "js-tokens": { - "version": "4.0.0", - "dev": true - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "requires": { - "argparse": "^2.0.1" - }, - "dependencies": { - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - } - } - }, - "jsep": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.3.8.tgz", - "integrity": "sha512-qofGylTGgYj9gZFsHuyWAN4jr35eJ66qJCK4eKDnldohuUoQFbU3iZn2zjvEbd9wOAhP9Wx5DsAAduTyE1PSWQ==" - }, - "jsesc": { - "version": "2.5.2", - "dev": true - }, - "json-parse-even-better-errors": { - "version": "2.3.1", - "dev": true - }, - "json-schema-migrate": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-0.2.0.tgz", - "integrity": "sha512-dq4/oHWmtw/+0ytnXsDqVn+VsVweTEmzm5jLgguPn9BjSzn6/q58ZiZx3BHiQyJs612f0T5Z+MrUEUUY5DHsRg==", - "requires": { - "ajv": "^5.0.0" - }, - "dependencies": { - "ajv": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", - "integrity": "sha512-Ajr4IcMXq/2QmMkEmSvxqfLN5zGmJ92gHXAeOXq1OekoH2rfDNsgdDoL2f7QaRCy7G/E6TpxBVdRuNraMztGHw==", - "requires": { - "co": "^4.6.0", - "fast-deep-equal": "^1.0.0", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.3.0" - } - }, - "fast-deep-equal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", - "integrity": "sha512-fueX787WZKCV0Is4/T2cyAdM4+x1S3MXXOAhavE1ys/W42SHAPacLTQhucja22QBYrfGw50M2sRiXPtTGv9Ymw==" - }, - "json-schema-traverse": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", - "integrity": "sha512-4JD/Ivzg7PoW8NzdrBSr3UFwC9mHgvI7Z6z3QGBsSHgKaRTUDmyZAAKJo2UbG1kUVfS9WS8bi36N49U1xw43DA==" - } - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true - }, - "jsonc-parser": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.2.1.tgz", - "integrity": "sha512-o6/yDBYccGvTz1+QFevz6l6OBZ2+fMVu2JZ9CIhzsYRX4mjaK5IyX9eldUdCmga16zlgQxyrj5pt9kzuj2C02w==" - }, - "jsonparse": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", - "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", - "dev": true - }, - "jsonpath-plus": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.2.0.tgz", - "integrity": "sha512-zBfiUPM5nD0YZSBT/o/fbCUlCcepMIdP0CJZxM1+KgA4f2T206f6VAg9e7mX35+KlMaIc5qXW34f3BnwJ3w+RA==" - }, - "jsonpointer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", - "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==" - }, - "JSONStream": { - "version": "1.3.5", - "dev": true, - "requires": { - "jsonparse": "^1.2.0", - "through": ">=2.2.7 <3" - } - }, - "jsx-ast-utils": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", - "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", - "dev": true, - "requires": { - "array-includes": "^3.1.5", - "object.assign": "^4.1.3" - } - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - }, - "kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", - "dev": true - }, - "labeled-stream-splicer": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/labeled-stream-splicer/-/labeled-stream-splicer-2.0.2.tgz", - "integrity": "sha512-Ca4LSXFFZUjPScRaqOcFxneA0VpKZr4MMYCljyQr4LIewTLb3Y0IUTIsnBBsVubIeEfxeSZpSjSsRM8APEQaAw==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "stream-splicer": "^2.0.0" - } - }, - "language-subtag-registry": { - "version": "0.3.22", - "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", - "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==", - "dev": true - }, - "language-tags": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", - "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", - "dev": true, - "requires": { - "language-subtag-registry": "~0.3.2" - } - }, - "lazy-cache": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", - "integrity": "sha512-7vp2Acd2+Kz4XkzxGxaB1FWOi8KjWIWsgdfD5MCb86DWvlLqhRPM+d6Pro3iNEL5VT9mstz5hKAlcd+QR6H3aA==", - "dev": true, - "requires": { - "set-getter": "^0.1.0" - } - }, - "leven": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==" - }, - "levn": { - "version": "0.4.1", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - } - }, - "lines-and-columns": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", - "dev": true - }, - "list-item": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/list-item/-/list-item-1.1.1.tgz", - "integrity": "sha512-S3D0WZ4J6hyM8o5SNKWaMYB1ALSacPZ2nHGEuCjmHZ+dc03gFeNZoNDcqfcnO4vDhTZmNrqrpYZCdXsRh22bzw==", - "dev": true, - "requires": { - "expand-range": "^1.8.1", - "extend-shallow": "^2.0.1", - "is-number": "^2.1.0", - "repeat-string": "^1.5.2" - } - }, - "loader-runner": { - "version": "4.3.0", - "dev": true - }, - "locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "requires": { - "p-locate": "^5.0.0" - } - }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "lodash._reinterpolate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", - "integrity": "sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA==", - "dev": true - }, - "lodash.camelcase": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", - "dev": true - }, - "lodash.kebabcase": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz", - "integrity": "sha512-N8XRTIMMqqDgSy4VLKPnJ/+hpGZN+PHQiJnSenYqPaVV/NCqEogTnAdZLQiGKhxX+JCs8waWq2t1XHWKOmlY8g==", - "dev": true - }, - "lodash.memoize": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-3.0.4.tgz", - "integrity": "sha512-eDn9kqrAmVUC1wmZvlQ6Uhde44n+tXpqPrN8olQJbttgh0oKclk+SF54P47VEGE9CEiMeRwAP8BaM7UHvBkz2A==", - "dev": true - }, - "lodash.merge": { - "version": "4.6.2", - "dev": true - }, - "lodash.snakecase": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", - "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==", - "dev": true - }, - "lodash.template": { - "version": "4.5.0", - "dev": true, - "requires": { - "lodash._reinterpolate": "^3.0.0", - "lodash.templatesettings": "^4.0.0" - } - }, - "lodash.templatesettings": { - "version": "4.2.0", - "dev": true, - "requires": { - "lodash._reinterpolate": "^3.0.0" - } - }, - "lodash.topath": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/lodash.topath/-/lodash.topath-4.5.2.tgz", - "integrity": "sha512-1/W4dM+35DwvE/iEd1M9ekewOSTlpFekhw9mhAtrwjVqUr83/ilQiyAvmg4tVX7Unkcfl1KC+i9WdaT4B6aQcg==" - }, - "lodash.upperfirst": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz", - "integrity": "sha512-sReKOYJIJf74dhJONhU4e0/shzi1trVbSWDOhKYE5XV2O+H7Sb2Dihwuc7xWxVl+DgFPyTqIN3zMfT9cq5iWDg==", - "dev": true - }, - "lru-cache": { - "version": "6.0.0", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "dev": true, - "requires": { - "semver": "^6.0.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "dev": true - } - } - }, - "make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true - }, - "makeerror": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", - "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", - "dev": true, - "requires": { - "tmpl": "1.0.5" - } - }, - "map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", - "dev": true - }, - "markdown-link": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/markdown-link/-/markdown-link-0.1.1.tgz", - "integrity": "sha512-TurLymbyLyo+kAUUAV9ggR9EPcDjP/ctlv9QAFiqUH7c+t6FlsbivPo9OKTU8xdOx9oNd2drW/Fi5RRElQbUqA==", - "dev": true - }, - "markdown-toc": { - "version": "1.2.0", - "dev": true, - "requires": { - "concat-stream": "^1.5.2", - "diacritics-map": "^0.1.0", - "gray-matter": "^2.1.0", - "lazy-cache": "^2.0.2", - "list-item": "^1.1.1", - "markdown-link": "^0.1.1", - "minimist": "^1.2.0", - "mixin-deep": "^1.1.3", - "object.pick": "^1.2.0", - "remarkable": "^1.7.1", - "repeat-string": "^1.6.1", - "strip-color": "^0.1.0" - } - }, - "math-random": { - "version": "1.0.4", - "dev": true, - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "md5.js": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", - "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", - "dev": true, - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "merge-stream": { - "version": "2.0.0", - "dev": true - }, - "merge2": { - "version": "1.4.1", - "dev": true - }, - "micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dev": true, - "requires": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - } - }, - "miller-rabin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", - "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", - "dev": true, - "requires": { - "bn.js": "^4.0.0", - "brorand": "^1.0.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - } - } - }, - "mime-db": { - "version": "1.52.0", - "dev": true - }, - "mime-types": { - "version": "2.1.35", - "dev": true, - "requires": { - "mime-db": "1.52.0" - } - }, - "mimic-fn": { - "version": "2.1.0", - "dev": true - }, - "minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", - "dev": true - }, - "minimalistic-crypto-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==", - "dev": true - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", - "dev": true - }, - "mixin-deep": { - "version": "1.3.2", - "dev": true, - "requires": { - "for-in": "^1.0.2", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - }, - "is-plain-object": { - "version": "2.0.4", - "dev": true, - "requires": { - "isobject": "^3.0.1" - } - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", - "dev": true - } - } - }, - "mkdirp-classic": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", - "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", - "dev": true - }, - "module-deps": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/module-deps/-/module-deps-6.2.3.tgz", - "integrity": "sha512-fg7OZaQBcL4/L+AK5f4iVqf9OMbCclXfy/znXRxTVhJSeW5AIlS9AwheYwDaXM3lVW7OBeaeUEY3gbaC6cLlSA==", - "dev": true, - "requires": { - "browser-resolve": "^2.0.0", - "cached-path-relative": "^1.0.2", - "concat-stream": "~1.6.0", - "defined": "^1.0.0", - "detective": "^5.2.0", - "duplexer2": "^0.1.2", - "inherits": "^2.0.1", - "JSONStream": "^1.0.3", - "parents": "^1.0.0", - "readable-stream": "^2.0.2", - "resolve": "^1.4.0", - "stream-combiner2": "^1.1.1", - "subarg": "^1.0.0", - "through2": "^2.0.0", - "xtend": "^4.0.0" - } - }, - "mothership": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/mothership/-/mothership-0.3.0.tgz", - "integrity": "sha512-/ORGXVhkG5Qal0ZD3BnxG/JtMcCJKOn7FkbbTA8N9HwJyXGsBYq9EXH7WbsRCpGUwmwrpQqN6ENLUL+ebmNTCQ==", - "dev": true, - "requires": { - "find-parent-dir": "~0.3.0" - } - }, - "mrmime": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-1.0.1.tgz", - "integrity": "sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==", - "dev": true - }, - "ms": { - "version": "2.1.2", - "dev": true - }, - "natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "natural-compare-lite": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", - "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", - "dev": true - }, - "neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", - "dev": true - }, - "nimma": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/nimma/-/nimma-0.2.2.tgz", - "integrity": "sha512-V52MLl7BU+tH2Np9tDrIXK8bql3MVUadnMIl/0/oZSGC9keuro0O9UUv9QKp0aMvtN8HRew4G7byY7H4eWsxaQ==", - "requires": { - "@jsep-plugin/regex": "^1.0.1", - "@jsep-plugin/ternary": "^1.0.2", - "astring": "^1.8.1", - "jsep": "^1.2.0", - "jsonpath-plus": "^6.0.1", - "lodash.topath": "^4.5.2" - }, - "dependencies": { - "jsonpath-plus": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-6.0.1.tgz", - "integrity": "sha512-EvGovdvau6FyLexFH2OeXfIITlgIbgZoAZe3usiySeaIDm5QS+A10DKNpaPBBqqRSZr2HN6HVNXxtwUAr2apEw==", - "optional": true - } - } - }, - "node-fetch": { - "version": "2.6.7", - "requires": { - "whatwg-url": "^5.0.0" - } - }, - "node-int64": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "dev": true - }, - "node-releases": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", - "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==", - "dev": true - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true - }, - "npm-run-path": { - "version": "4.0.1", - "dev": true, - "requires": { - "path-key": "^3.0.0" - } - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", - "dev": true - } - } - }, - "object-inspect": { - "version": "1.12.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==" - }, - "object-is": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", - "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3" - } - }, - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" - }, - "object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - } - }, - "object.entries": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", - "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "object.fromentries": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", - "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "object.pick": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==", - "dev": true, - "requires": { - "isobject": "^3.0.1" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1" - } - } - } - }, - "object.values": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", - "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "requires": { - "mimic-fn": "^2.1.0" - } - }, - "opener": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", - "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", - "dev": true - }, - "optionator": { - "version": "0.9.1", - "dev": true, - "requires": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - } - }, - "os-browserify": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", - "integrity": "sha512-gjcpUc3clBf9+210TRaDWbf+rZZZEshZ+DlXMRCeAjp0xhTrnQsKHypIy1J3d5hKdUzj69t708EHtU8P6bUn0A==", - "dev": true - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "requires": { - "p-limit": "^3.0.2" - }, - "dependencies": { - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - } - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true - }, - "pako": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", - "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", - "dev": true - }, - "parent-module": { - "version": "1.0.1", - "dev": true, - "requires": { - "callsites": "^3.0.0" - } - }, - "parents": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parents/-/parents-1.0.1.tgz", - "integrity": "sha512-mXKF3xkoUt5td2DoxpLmtOmZvko9VfFpwRwkKDHSNvgmpLAeBo18YDhcPbBzJq+QLCHMbGOfzia2cX4U+0v9Mg==", - "dev": true, - "requires": { - "path-platform": "~0.11.15" - } - }, - "parse-asn1": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.6.tgz", - "integrity": "sha512-RnZRo1EPU6JBnra2vGHj0yhp6ebyjBZpmUCLHWiFhxlzvBCCpAuZ7elsBp1PVAbQN0/04VD/19rfzlBSwLstMw==", - "dev": true, - "requires": { - "asn1.js": "^5.2.0", - "browserify-aes": "^1.0.0", - "evp_bytestokey": "^1.0.0", - "pbkdf2": "^3.0.3", - "safe-buffer": "^5.1.1" - } - }, - "parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - } - }, - "patch-text": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/patch-text/-/patch-text-1.0.2.tgz", - "integrity": "sha512-r1P+pfiTgWrsMOk/aW64RGv0oLjdyP0LeaLv2dF+iUfaVLqicXRi2dkjGYDgQ/kHVYm4z4GEHnx36Q6uqiFNlA==", - "dev": true - }, - "path-browserify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", - "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", - "dev": true - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true - }, - "path-key": { - "version": "3.1.1", - "dev": true - }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "path-platform": { - "version": "0.11.15", - "resolved": "https://registry.npmjs.org/path-platform/-/path-platform-0.11.15.tgz", - "integrity": "sha512-Y30dB6rab1A/nfEKsZxmr01nUotHX0c/ZiIAsCTatEe1CmS5Pm5He7fZ195bPT7RdquoaL8lLxFCMQi/bS7IJg==", - "dev": true - }, - "path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true - }, - "pbkdf2": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.2.tgz", - "integrity": "sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA==", - "dev": true, - "requires": { - "create-hash": "^1.1.2", - "create-hmac": "^1.1.4", - "ripemd160": "^2.0.1", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, - "pend": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", - "dev": true - }, - "picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true - }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true - }, - "pirates": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", - "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", - "dev": true - }, - "pkg-dir": { - "version": "4.2.0", - "dev": true, - "requires": { - "find-up": "^4.0.0" - }, - "dependencies": { - "find-up": { - "version": "4.1.0", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-locate": { - "version": "4.1.0", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "path-exists": { - "version": "4.0.0", - "dev": true - } - } - }, - "pony-cause": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pony-cause/-/pony-cause-1.1.1.tgz", - "integrity": "sha512-PxkIc/2ZpLiEzQXu5YRDOUgBlfGYBY8156HY5ZcRAwwonMk5W/MrJP2LLkG/hF7GEQzaHo2aS7ho6ZLCOvf+6g==" - }, - "prelude-ls": { - "version": "1.2.1", - "dev": true - }, - "prettier": { - "version": "2.8.7", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.7.tgz", - "integrity": "sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw==", - "dev": true - }, - "prettier-linter-helpers": { - "version": "1.0.0", - "dev": true, - "requires": { - "fast-diff": "^1.1.2" - } - }, - "pretty-format": { - "version": "27.5.1", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1", - "ansi-styles": "^5.0.0", - "react-is": "^17.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "dev": true - } - } - }, - "process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", - "dev": true - }, - "process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "dev": true - }, - "progress": { - "version": "2.0.3", - "dev": true - }, - "prompts": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "dev": true, - "requires": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - } - }, - "proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", - "dev": true - }, - "public-encrypt": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", - "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", - "dev": true - }, - "pump": { - "version": "3.0.0", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", - "dev": true - }, - "puppeteer": { - "version": "17.1.3", - "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-17.1.3.tgz", - "integrity": "sha512-tVtvNSOOqlq75rUgwLeDAEQoLIiBqmRg0/zedpI6fuqIocIkuxG23A7FIl1oVSkuSMMLgcOP5kVhNETmsmjvPw==", - "dev": true, - "requires": { - "cross-fetch": "3.1.5", - "debug": "4.3.4", - "devtools-protocol": "0.0.1036444", - "extract-zip": "2.0.1", - "https-proxy-agent": "5.0.1", - "progress": "2.0.3", - "proxy-from-env": "1.1.0", - "rimraf": "3.0.2", - "tar-fs": "2.1.1", - "unbzip2-stream": "1.4.3", - "ws": "8.8.1" - } - }, - "pure-rand": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.1.tgz", - "integrity": "sha512-t+x1zEHDjBwkDGY5v5ApnZ/utcd4XYDiJsaQQoptTXgUXX95sDg1elCdJghzicm7n2mbCBJ3uYWr6M22SO19rg==", - "dev": true - }, - "querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g==", - "dev": true - }, - "querystring-es3": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", - "integrity": "sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA==", - "dev": true - }, - "queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true - }, - "ramldt2jsonschema": { - "version": "1.2.3", - "requires": { - "commander": "^5.0.0", - "js-yaml": "^3.14.0", - "json-schema-migrate": "^0.2.0", - "webapi-parser": "^0.5.0" - }, - "dependencies": { - "commander": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", - "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==" - }, - "js-yaml": { - "version": "3.14.1", - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - } - } - }, - "randomatic": { - "version": "3.1.1", - "dev": true, - "requires": { - "is-number": "^4.0.0", - "kind-of": "^6.0.0", - "math-random": "^1.0.1" - }, - "dependencies": { - "is-number": { - "version": "4.0.0", - "dev": true - }, - "kind-of": { - "version": "6.0.3", - "dev": true - } - } - }, - "randombytes": { - "version": "2.1.0", - "dev": true, - "requires": { - "safe-buffer": "^5.1.0" - } - }, - "randomfill": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", - "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", - "dev": true, - "requires": { - "randombytes": "^2.0.5", - "safe-buffer": "^5.1.0" - } - }, - "react-is": { - "version": "17.0.2", - "dev": true - }, - "read-only-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/read-only-stream/-/read-only-stream-2.0.0.tgz", - "integrity": "sha512-3ALe0bjBVZtkdWKIcThYpQCLbBMd/+Tbh2CDSrAIDO3UsZ4Xs+tnyjv2MjCOMMgBG+AsUOeuP1cgtY1INISc8w==", - "dev": true, - "requires": { - "readable-stream": "^2.0.2" - } - }, - "readable-stream": { - "version": "2.3.7", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - }, - "dependencies": { - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "rechoir": { - "version": "0.7.1", - "dev": true, - "requires": { - "resolve": "^1.9.0" - } - }, - "regenerator-runtime": { - "version": "0.13.11", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", - "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", - "dev": true - }, - "regexp-tree": { - "version": "0.1.24", - "dev": true - }, - "regexp.prototype.flags": { - "version": "1.4.3", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "functions-have-names": "^1.2.2" - } - }, - "regexpp": { - "version": "3.2.0", - "dev": true - }, - "remarkable": { - "version": "1.7.4", - "dev": true, - "requires": { - "argparse": "^1.0.10", - "autolinker": "~0.28.0" - } - }, - "rename-function-calls": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/rename-function-calls/-/rename-function-calls-0.1.1.tgz", - "integrity": "sha512-F+z4csKBo6gw4y5vhIbOhG+UcZVWNh42fW35dagdFP74YrY4ET932NTZZEimMdJz8Efha73caz/OFGxt1vReOA==", - "dev": true, - "requires": { - "detective": "~3.1.0" - }, - "dependencies": { - "detective": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detective/-/detective-3.1.0.tgz", - "integrity": "sha512-BIvQHuiVSRMufK1OnlpeAzVqF2yXD75ZzYIx8XV4VQiJ48chF/MMYAdsz/NkulhZznwb4fAX8vyi5CUc24I2BA==", - "dev": true, - "requires": { - "escodegen": "~1.1.0", - "esprima-fb": "3001.1.0-dev-harmony-fb" - } - } - } - }, - "repeat-element": { - "version": "1.1.3", - "dev": true - }, - "repeat-string": { - "version": "1.6.1", - "dev": true - }, - "replace-requires": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/replace-requires/-/replace-requires-1.0.4.tgz", - "integrity": "sha512-9PpQ4IWrhJ+waLnakqT26sOIFW8SPTWZ/aEmz35Pq1V1k1A352nYDTkbhznTGUmYS2MsC0ULJ+2vChstBTxKRw==", - "dev": true, - "requires": { - "detective": "^4.5.0", - "has-require": "~1.2.1", - "patch-text": "~1.0.2", - "xtend": "~4.0.0" - }, - "dependencies": { - "acorn": { - "version": "5.7.4", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.4.tgz", - "integrity": "sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg==", - "dev": true - }, - "detective": { - "version": "4.7.1", - "resolved": "https://registry.npmjs.org/detective/-/detective-4.7.1.tgz", - "integrity": "sha512-H6PmeeUcZloWtdt4DAkFyzFL94arpHr3NOwwmVILFiy+9Qd4JTxxXrzfyGk/lmct2qVGBwTSwSXagqu2BxmWig==", - "dev": true, - "requires": { - "acorn": "^5.2.1", - "defined": "^1.0.0" - } - } - } - }, - "require-directory": { - "version": "2.1.1", - "dev": true - }, - "require-from-string": { - "version": "2.0.2" - }, - "resolve": { - "version": "1.22.2", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", - "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", - "dev": true, - "requires": { - "is-core-module": "^2.11.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - }, - "resolve-cwd": { - "version": "3.0.0", - "dev": true, - "requires": { - "resolve-from": "^5.0.0" - } - }, - "resolve-from": { - "version": "5.0.0", - "dev": true - }, - "resolve.exports": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", - "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", - "dev": true - }, - "reusify": { - "version": "1.0.4", - "dev": true - }, - "rimraf": { - "version": "3.0.2", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "ripemd160": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", - "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", - "dev": true, - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1" - } - }, - "run-parallel": { - "version": "1.2.0", - "dev": true, - "requires": { - "queue-microtask": "^1.2.2" - } - }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true - }, - "safe-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz", - "integrity": "sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==", - "dev": true, - "requires": { - "regexp-tree": "~0.1.1" - } - }, - "safe-regex-test": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", - "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-regex": "^1.1.4" - } - }, - "safe-stable-stringify": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz", - "integrity": "sha512-ERq4hUjKDbJfE4+XtZLFPCDi8Vb1JqaxAPTxWFLBx8XcAlf9Bda/ZJdVezs/NAfsMQScyIlUMx+Yeu7P7rx5jw==" - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "schema-utils": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz", - "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==", - "dev": true, - "requires": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true, - "requires": {} - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - } - } - }, - "semver": { - "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "set-getter": { - "version": "0.1.1", - "dev": true, - "requires": { - "to-object-path": "^0.3.0" - } - }, - "sha.js": { - "version": "2.4.11", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", - "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "shallow-clone": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", - "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", - "dev": true, - "requires": { - "kind-of": "^6.0.2" - }, - "dependencies": { - "kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "dev": true - } - } - }, - "shasum": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz", - "integrity": "sha512-UTzHm/+AzKfO9RgPgRpDIuMSNie1ubXRaljjlhFMNGYoG7z+rm9AHLPMf70R7887xboDH9Q+5YQbWKObFHEAtw==", - "dev": true - }, - "shebang-command": { - "version": "2.0.0", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "dev": true - }, - "shell-quote": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.3.tgz", - "integrity": "sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==", - "dev": true - }, - "side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "requires": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - } - }, - "signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true - }, - "simple-concat": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", - "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", - "dev": true - }, - "simple-eval": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/simple-eval/-/simple-eval-1.0.0.tgz", - "integrity": "sha512-kpKJR+bqTscgC0xuAl2xHN6bB12lHjC2DCUfqjAx19bQyO3R2EVLOurm3H9AUltv/uFVcSCVNc6faegR+8NYLw==", - "requires": { - "jsep": "^1.1.2" - } - }, - "sirv": { - "version": "1.0.19", - "resolved": "https://registry.npmjs.org/sirv/-/sirv-1.0.19.tgz", - "integrity": "sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==", - "dev": true, - "requires": { - "@polka/url": "^1.0.0-next.20", - "mrmime": "^1.0.0", - "totalist": "^1.0.0" - } - }, - "sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true - }, - "slash": { - "version": "3.0.0", - "dev": true - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", - "dev": true - }, - "source-map-support": { - "version": "0.5.13", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", - "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "dev": true - } - } - }, - "sprintf-js": { - "version": "1.0.3" - }, - "stack-utils": { - "version": "2.0.5", - "dev": true, - "requires": { - "escape-string-regexp": "^2.0.0" - }, - "dependencies": { - "escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true - } - } - }, - "stop-iteration-iterator": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz", - "integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==", - "dev": true, - "requires": { - "internal-slot": "^1.0.4" - } - }, - "stream-browserify": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", - "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", - "dev": true, - "requires": { - "inherits": "~2.0.1", - "readable-stream": "^2.0.2" - } - }, - "stream-combiner2": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", - "integrity": "sha512-3PnJbYgS56AeWgtKF5jtJRT6uFJe56Z0Hc5Ngg/6sI6rIt8iiMBTa9cvdyFfpMQjaVHr8dusbNeFGIIonxOvKw==", - "dev": true, - "requires": { - "duplexer2": "~0.1.0", - "readable-stream": "^2.0.2" - } - }, - "stream-http": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-3.2.0.tgz", - "integrity": "sha512-Oq1bLqisTyK3TSCXpPbT4sdeYNdmyZJv1LxpEm2vu1ZhK89kSE5YXwZc3cWk0MagGaKriBh9mCFbVGtO+vY29A==", - "dev": true, - "requires": { - "builtin-status-codes": "^3.0.0", - "inherits": "^2.0.4", - "readable-stream": "^3.6.0", - "xtend": "^4.0.2" - }, - "dependencies": { - "readable-stream": { - "version": "3.6.0", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - } - } - }, - "stream-splicer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/stream-splicer/-/stream-splicer-2.0.1.tgz", - "integrity": "sha512-Xizh4/NPuYSyAXyT7g8IvdJ9HJpxIGL9PjyhtywCZvvP0OPIdqyrr4dMikeuvY8xahpdKEBlBTySe583totajg==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.2" - } - }, - "string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "requires": { - "safe-buffer": "~5.2.0" - } - }, - "string-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", - "dev": true, - "requires": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" - } - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "string.prototype.trim": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", - "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "string.prototype.trimend": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", - "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "string.prototype.trimstart": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", - "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", - "dev": true - }, - "strip-color": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/strip-color/-/strip-color-0.1.0.tgz", - "integrity": "sha512-p9LsUieSjWNNAxVCXLeilaDlmuUOrDS5/dF9znM1nZc7EGX5+zEFC0bEevsNIaldjlks+2jns5Siz6F9iK6jwA==", - "dev": true - }, - "strip-final-newline": { - "version": "2.0.0", - "dev": true - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - }, - "subarg": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz", - "integrity": "sha512-RIrIdRY0X1xojthNcVtgT9sjpOGagEUKpZdgBUi054OEPFo282yg+zE+t1Rj3+RqKq2xStL7uUHhY+AjbC4BXg==", - "dev": true, - "requires": { - "minimist": "^1.1.0" - } - }, - "supports-color": { - "version": "7.2.0", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true - }, - "svg-element-attributes": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/svg-element-attributes/-/svg-element-attributes-1.3.1.tgz", - "integrity": "sha512-Bh05dSOnJBf3miNMqpsormfNtfidA/GxQVakhtn0T4DECWKeXQRQUceYjJ+OxYiiLdGe4Jo9iFV8wICFapFeIA==", - "dev": true - }, - "syntax-error": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", - "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", - "dev": true, - "requires": { - "acorn-node": "^1.2.0" - } - }, - "tapable": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", - "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", - "dev": true - }, - "tar-fs": { - "version": "2.1.1", - "dev": true, - "requires": { - "chownr": "^1.1.1", - "mkdirp-classic": "^0.5.2", - "pump": "^3.0.0", - "tar-stream": "^2.1.4" - } - }, - "tar-stream": { - "version": "2.2.0", - "dev": true, - "requires": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" - }, - "dependencies": { - "readable-stream": { - "version": "3.6.0", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - } - } - }, - "ternary": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/ternary/-/ternary-1.0.0.tgz", - "integrity": "sha512-/e+OUAGiEqytNLXnDfFkuel0N0y9IGkmvuGIPkirI+zv0dx/jPvUZ2l8qV6KYk8lmmLrAqk4iLJtRduUA6AUKw==", - "dev": true - }, - "terser": { - "version": "5.17.1", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.17.1.tgz", - "integrity": "sha512-hVl35zClmpisy6oaoKALOpS0rDYLxRFLHhRuDlEGTKey9qHjS1w9GMORjuwIMt70Wan4lwsLYyWDVnWgF+KUEw==", - "dev": true, - "requires": { - "@jridgewell/source-map": "^0.3.2", - "acorn": "^8.5.0", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "dependencies": { - "acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "dev": true - }, - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - } - } - }, - "terser-webpack-plugin": { - "version": "5.3.7", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.7.tgz", - "integrity": "sha512-AfKwIktyP7Cu50xNjXF/6Qb5lBNzYaWpU6YfoX3uZicTx0zTy0stDDCsvjDapKsSDvOeWo5MEq4TmdBy2cNoHw==", - "dev": true, - "requires": { - "@jridgewell/trace-mapping": "^0.3.17", - "jest-worker": "^27.4.5", - "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.1", - "terser": "^5.16.5" - }, - "dependencies": { - "jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "dev": true, - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - } - }, - "serialize-javascript": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", - "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", - "dev": true, - "requires": { - "randombytes": "^2.1.0" - } - }, - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "test-exclude": { - "version": "6.0.0", - "dev": true, - "requires": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - } - }, - "text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true - }, - "through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", - "dev": true - }, - "through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dev": true, - "requires": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "timers-browserify": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", - "integrity": "sha512-PIxwAupJZiYU4JmVZYwXp9FKsHMXb5h0ZEFyuXTAn8WLHOlcij+FEcbrvDsom1o5dr1YggEtFbECvGCW2sT53Q==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - }, - "tmpl": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", - "dev": true - }, - "to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "dev": true - }, - "to-object-path": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "to-regex-range": { - "version": "5.0.1", - "dev": true, - "requires": { - "is-number": "^7.0.0" - }, - "dependencies": { - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - } - } - }, - "toml": { - "version": "2.3.6", - "dev": true - }, - "totalist": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", - "integrity": "sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==", - "dev": true - }, - "tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, - "transformify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/transformify/-/transformify-0.1.2.tgz", - "integrity": "sha512-BUZAqCslm5pVXExA8PfXcvp7exsUNqRcNzx+KXj3Bv0oMROqnAt4bvs9U8Z2wVPa40NvLWJ/oswN0kreNFxBUg==", - "dev": true, - "requires": { - "readable-stream": "~1.1.9" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "dev": true - }, - "readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", - "dev": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", - "dev": true - } - } - }, - "ts-loader": { - "version": "9.4.2", - "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.4.2.tgz", - "integrity": "sha512-OmlC4WVmFv5I0PpaxYb+qGeGOdm5giHU7HwDDUjw59emP2UYMHy9fFSDcYgSNoH8sXcj4hGCSEhlDZ9ULeDraA==", - "dev": true, - "requires": { - "chalk": "^4.1.0", - "enhanced-resolve": "^5.0.0", - "micromatch": "^4.0.0", - "semver": "^7.3.4" - } - }, - "ts-node": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", - "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", - "dev": true, - "requires": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" - }, - "dependencies": { - "acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "dev": true - }, - "acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "dev": true - }, - "diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true - } - } - }, - "tsconfig-paths": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", - "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", - "dev": true, - "requires": { - "@types/json5": "^0.0.29", - "json5": "^1.0.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - }, - "dependencies": { - "json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, - "requires": { - "minimist": "^1.2.0" - } - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true - } - } - }, - "tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" - }, - "tsutils": { - "version": "3.21.0", - "dev": true, - "requires": { - "tslib": "^1.8.1" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "dev": true - } - } - }, - "tty-browserify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.1.tgz", - "integrity": "sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==", - "dev": true - }, - "type-check": { - "version": "0.4.0", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1" - } - }, - "type-detect": { - "version": "4.0.8", - "dev": true - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true - }, - "typed-array-length": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", - "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", - "requires": { - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "is-typed-array": "^1.1.9" - } - }, - "typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", - "dev": true - }, - "typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", - "dev": true - }, - "unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "requires": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - } - }, - "unbzip2-stream": { - "version": "1.4.3", - "dev": true, - "requires": { - "buffer": "^5.2.1", - "through": "^2.3.8" - } - }, - "undeclared-identifiers": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/undeclared-identifiers/-/undeclared-identifiers-1.1.3.tgz", - "integrity": "sha512-pJOW4nxjlmfwKApE4zvxLScM/njmwj/DiUBv7EabwE4O8kRUy+HIwxQtZLBPll/jx1LJyBcqNfB3/cpv9EZwOw==", - "dev": true, - "requires": { - "acorn-node": "^1.3.0", - "dash-ast": "^1.0.0", - "get-assigned-identifiers": "^1.2.0", - "simple-concat": "^1.0.0", - "xtend": "^4.0.1" - } - }, - "update-browserslist-db": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", - "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", - "dev": true, - "requires": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - } - }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "requires": { - "punycode": "^2.1.0" - }, - "dependencies": { - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" - } - } - }, - "urijs": { - "version": "1.19.11", - "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz", - "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==" - }, - "url": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", - "integrity": "sha512-kbailJa29QrtXnxgq+DdCEGlbTeYM2eJUxsz6vjZavrCYPMIFHMKQmSKYAIuUK2i7hgPm28a8piX5NTUtM/LKQ==", - "dev": true, - "requires": { - "punycode": "1.3.2", - "querystring": "0.2.0" - }, - "dependencies": { - "punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw==", - "dev": true - } - } - }, - "util": { - "version": "0.10.4", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", - "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", - "dev": true - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, - "utility-types": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", - "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==" - }, - "v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "dev": true - }, - "v8-to-istanbul": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz", - "integrity": "sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==", - "dev": true, - "requires": { - "@jridgewell/trace-mapping": "^0.3.12", - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0" - }, - "dependencies": { - "convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", - "dev": true - } - } - }, - "vm-browserify": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", - "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", - "dev": true - }, - "walker": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", - "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", - "dev": true, - "requires": { - "makeerror": "1.0.12" - } - }, - "watchpack": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", - "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", - "dev": true, - "requires": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - } - }, - "webapi-parser": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/webapi-parser/-/webapi-parser-0.5.0.tgz", - "integrity": "sha512-fPt6XuMqLSvBz8exwX4QE1UT+pROLHa00EMDCdO0ybICduwQ1V4f7AWX4pNOpCp+x+0FjczEsOxtQU0d8L3QKw==", - "requires": { - "ajv": "6.5.2" - }, - "dependencies": { - "ajv": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.2.tgz", - "integrity": "sha512-hOs7GfvI6tUI1LfZddH82ky6mOMyTuY0mk7kE2pWpmhhUSkumzaTO5vbVwij39MdwPQWCV4Zv57Eo06NtL/GVA==", - "requires": { - "fast-deep-equal": "^2.0.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.1" - } - }, - "fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w==" - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - } - } - }, - "webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, - "webpack": { - "version": "5.80.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.80.0.tgz", - "integrity": "sha512-OIMiq37XK1rWO8mH9ssfFKZsXg4n6klTEDL7S8/HqbAOBBaiy8ABvXvz0dDCXeEF9gqwxSvVk611zFPjS8hJxA==", - "dev": true, - "requires": { - "@types/eslint-scope": "^3.7.3", - "@types/estree": "^1.0.0", - "@webassemblyjs/ast": "^1.11.5", - "@webassemblyjs/wasm-edit": "^1.11.5", - "@webassemblyjs/wasm-parser": "^1.11.5", - "acorn": "^8.7.1", - "acorn-import-assertions": "^1.7.6", - "browserslist": "^4.14.5", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.13.0", - "es-module-lexer": "^1.2.1", - "eslint-scope": "5.1.1", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.9", - "json-parse-even-better-errors": "^2.3.1", - "loader-runner": "^4.2.0", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^3.1.2", - "tapable": "^2.1.1", - "terser-webpack-plugin": "^5.3.7", - "watchpack": "^2.4.0", - "webpack-sources": "^3.2.3" - }, - "dependencies": { - "acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "dev": true - }, - "acorn-import-assertions": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", - "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", - "dev": true, - "requires": {} - } - } - }, - "webpack-bundle-analyzer": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.8.0.tgz", - "integrity": "sha512-ZzoSBePshOKhr+hd8u6oCkZVwpVaXgpw23ScGLFpR6SjYI7+7iIWYarjN6OEYOfRt8o7ZyZZQk0DuMizJ+LEIg==", - "dev": true, - "requires": { - "@discoveryjs/json-ext": "0.5.7", - "acorn": "^8.0.4", - "acorn-walk": "^8.0.0", - "chalk": "^4.1.0", - "commander": "^7.2.0", - "gzip-size": "^6.0.0", - "lodash": "^4.17.20", - "opener": "^1.5.2", - "sirv": "^1.0.7", - "ws": "^7.3.1" - }, - "dependencies": { - "acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "dev": true - }, - "acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "dev": true - }, - "commander": { - "version": "7.2.0", - "dev": true - }, - "ws": { - "version": "7.5.9", - "dev": true, - "requires": {} - } - } - }, - "webpack-cli": { - "version": "4.10.0", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.10.0.tgz", - "integrity": "sha512-NLhDfH/h4O6UOy+0LSso42xvYypClINuMNBVVzX4vX98TmTaTUxwRbXdhucbFMd2qLaCTcLq/PdYrvi8onw90w==", - "dev": true, - "requires": { - "@discoveryjs/json-ext": "^0.5.0", - "@webpack-cli/configtest": "^1.2.0", - "@webpack-cli/info": "^1.5.0", - "@webpack-cli/serve": "^1.7.0", - "colorette": "^2.0.14", - "commander": "^7.0.0", - "cross-spawn": "^7.0.3", - "fastest-levenshtein": "^1.0.12", - "import-local": "^3.0.2", - "interpret": "^2.2.0", - "rechoir": "^0.7.0", - "webpack-merge": "^5.7.3" - }, - "dependencies": { - "commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "dev": true - }, - "interpret": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", - "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", - "dev": true - } - } - }, - "webpack-merge": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", - "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", - "dev": true, - "requires": { - "clone-deep": "^4.0.1", - "wildcard": "^2.0.0" - } - }, - "webpack-sources": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", - "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", - "dev": true - }, - "whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "requires": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "requires": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - } - }, - "which-collection": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", - "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", - "dev": true, - "requires": { - "is-map": "^2.0.1", - "is-set": "^2.0.1", - "is-weakmap": "^2.0.1", - "is-weakset": "^2.0.1" - } - }, - "which-typed-array": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", - "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", - "requires": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0", - "is-typed-array": "^1.1.10" - } - }, - "wildcard": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", - "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", - "dev": true - }, - "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true - }, - "wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "ws": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.8.1.tgz", - "integrity": "sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==", - "dev": true, - "requires": {} - }, - "xtend": { - "version": "4.0.2", - "dev": true - }, - "y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true - }, - "yallist": { - "version": "4.0.0", - "dev": true - }, - "yargs": { - "version": "17.7.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz", - "integrity": "sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==", - "dev": true, - "requires": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "dependencies": { - "yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true - } - } - }, - "yauzl": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", - "dev": true, - "requires": { - "buffer-crc32": "~0.2.3", - "fd-slicer": "~1.1.0" - } - }, - "yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true - }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true - } } } From a116209225afa1631e8bb9959430e8ded4aaf7bf Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Fri, 14 Jul 2023 12:19:20 +0200 Subject: [PATCH 068/126] chore(release): v2.1.0-next-major-spec.1 (#800) --- package-lock.json | 9586 +++++++++++++++++---------------------------- package.json | 2 +- 2 files changed, 3528 insertions(+), 6060 deletions(-) diff --git a/package-lock.json b/package-lock.json index 033d4aea2..9fe6a0243 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,744 +1,548 @@ { "name": "@asyncapi/parser", - "version": "2.0.3", - "lockfileVersion": 2, + "version": "2.1.0-next-major-spec.1", + "lockfileVersion": 1, "requires": true, - "packages": { - "": { - "name": "@asyncapi/parser", - "version": "2.0.3", - "license": "Apache-2.0", - "dependencies": { - "@asyncapi/specs": "^5.1.0", - "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", - "@stoplight/json-ref-resolver": "^3.1.5", - "@stoplight/spectral-core": "^1.16.1", - "@stoplight/spectral-functions": "^1.7.2", - "@stoplight/spectral-parsers": "^1.0.2", - "@types/json-schema": "^7.0.11", - "@types/urijs": "^1.19.19", - "ajv": "^8.11.0", - "ajv-errors": "^3.0.0", - "ajv-formats": "^2.1.1", - "avsc": "^5.7.5", - "js-yaml": "^4.1.0", - "jsonpath-plus": "^7.2.0", - "node-fetch": "2.6.7", - "ramldt2jsonschema": "^1.2.3", - "webapi-parser": "^0.5.0" - }, - "devDependencies": { - "@jest/types": "^29.0.2", - "@swc/core": "^1.2.248", - "@swc/jest": "^0.2.22", - "@types/jest": "^27.4.1", - "@types/js-yaml": "^4.0.5", - "@types/node": "^18.16.1", - "@types/node-fetch": "^2.6.2", - "@typescript-eslint/eslint-plugin": "^5.36.2", - "@typescript-eslint/parser": "^5.36.2", - "browserify": "^16.3.0", - "browserify-shim": "^3.8.14", - "cross-env": "^7.0.3", - "eslint": "^8.23.0", - "eslint-plugin-github": "^4.3.7", - "eslint-plugin-security": "^1.5.0", - "eslint-plugin-sonarjs": "^0.15.0", - "jest": "^29.0.2", - "markdown-toc": "^1.2.0", - "path-browserify": "^1.0.1", - "puppeteer": "^17.1.1", - "ts-loader": "^9.3.1", - "ts-node": "^10.9.1", - "typescript": "^4.8.2", - "webpack": "^5.74.0", - "webpack-bundle-analyzer": "^4.6.1", - "webpack-cli": "^4.10.0" - } - }, - "node_modules/@ampproject/remapping": { + "dependencies": { + "@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true + }, + "@ampproject/remapping": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", "dev": true, - "dependencies": { + "requires": { "@jridgewell/gen-mapping": "^0.3.0", "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" } }, - "node_modules/@asyncapi/specs": { + "@asyncapi/specs": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-5.1.0.tgz", "integrity": "sha512-yffhETqehkim43luMnPKOwzY0D0YtU4bKpORIXIaid6p5Y5kDLrMGJaEPkNieQp03HMjhjFrnUPtT8kvqe0+aQ==", - "dependencies": { + "requires": { "@types/json-schema": "^7.0.11" } }, - "node_modules/@babel/code-frame": { + "@babel/code-frame": { "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.5.tgz", "integrity": "sha512-Xmwn266vad+6DAqEB2A6V/CcZVp62BbwVmcOJc2RPuwih1kw02TjQvWVWlcKGbBPd+8/0V5DEkOcizRGYsspYQ==", "dev": true, - "dependencies": { + "requires": { "@babel/highlight": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" } }, - "node_modules/@babel/compat-data": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.5.tgz", - "integrity": "sha512-4Jc/YuIaYqKnDDz892kPIledykKg12Aw1PYX5i/TY28anJtacvM1Rrr8wbieB9GfEJwlzqT0hUEao0CxEebiDA==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } + "@babel/compat-data": { + "version": "7.22.9", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.9.tgz", + "integrity": "sha512-5UamI7xkUcJ3i9qVDS+KFDEK8/7oJ55/sJMB1Ge7IEapr7KfdfV/HErR+koZwOfd+SgtFKOKRhRakdg++DcJpQ==", + "dev": true }, - "node_modules/@babel/core": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.5.tgz", - "integrity": "sha512-SBuTAjg91A3eKOvD+bPEz3LlhHZRNu1nFOVts9lzDJTXshHTjII0BAtDS3Y2DAkdZdDKWVZGVwkDfc4Clxn1dg==", + "@babel/core": { + "version": "7.22.9", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.9.tgz", + "integrity": "sha512-G2EgeufBcYw27U4hhoIwFcgc1XU7TlXJ3mv04oOv1WCuo900U/anZSPzEqNjwdjgffkk2Gs0AN0dW1CKVLcG7w==", "dev": true, - "dependencies": { + "requires": { "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.22.5", - "@babel/generator": "^7.22.5", - "@babel/helper-compilation-targets": "^7.22.5", - "@babel/helper-module-transforms": "^7.22.5", - "@babel/helpers": "^7.22.5", - "@babel/parser": "^7.22.5", + "@babel/generator": "^7.22.9", + "@babel/helper-compilation-targets": "^7.22.9", + "@babel/helper-module-transforms": "^7.22.9", + "@babel/helpers": "^7.22.6", + "@babel/parser": "^7.22.7", "@babel/template": "^7.22.5", - "@babel/traverse": "^7.22.5", + "@babel/traverse": "^7.22.8", "@babel/types": "^7.22.5", "convert-source-map": "^1.7.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", "json5": "^2.2.2", - "semver": "^6.3.0" + "semver": "^6.3.1" }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/core/node_modules/convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", - "dev": true - }, - "node_modules/@babel/core/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" + "dependencies": { + "convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + }, + "json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true + }, + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + } } }, - "node_modules/@babel/generator": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.5.tgz", - "integrity": "sha512-+lcUbnTRhd0jOewtFSedLyiPsD5tswKkbgcezOqqWFUVNEwoUTlpPOBmvhG7OXWLR4jMdv0czPGH5XbflnD1EA==", + "@babel/generator": { + "version": "7.22.9", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.9.tgz", + "integrity": "sha512-KtLMbmicyuK2Ak/FTCJVbDnkN1SlT8/kceFTiuDiiRUUSMnHMidxSCdG4ndkTOHHpoomWe/4xkvHkEOncwjYIw==", "dev": true, - "dependencies": { + "requires": { "@babel/types": "^7.22.5", "@jridgewell/gen-mapping": "^0.3.2", "@jridgewell/trace-mapping": "^0.3.17", "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" } }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.5.tgz", - "integrity": "sha512-Ji+ywpHeuqxB8WDxraCiqR0xfhYjiDE/e6k7FuIaANnoOFxAHskHChz4vA1mJC9Lbm01s1PVAGhQY4FUKSkGZw==", + "@babel/helper-compilation-targets": { + "version": "7.22.9", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.9.tgz", + "integrity": "sha512-7qYrNM6HjpnPHJbopxmb8hSPoZ0gsX8IvUS32JGVoy+pU9e5N0nLr1VjJoR6kA4d9dmGLxNYOjeB8sUDal2WMw==", "dev": true, - "dependencies": { - "@babel/compat-data": "^7.22.5", + "requires": { + "@babel/compat-data": "^7.22.9", "@babel/helper-validator-option": "^7.22.5", - "browserslist": "^4.21.3", + "browserslist": "^4.21.9", "lru-cache": "^5.1.1", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" + "semver": "^6.3.1" }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-compilation-targets/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" + "dependencies": { + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "requires": { + "yallist": "^3.0.2" + } + }, + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + } } }, - "node_modules/@babel/helper-environment-visitor": { + "@babel/helper-environment-visitor": { "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.5.tgz", "integrity": "sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } + "dev": true }, - "node_modules/@babel/helper-function-name": { + "@babel/helper-function-name": { "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz", "integrity": "sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==", "dev": true, - "dependencies": { + "requires": { "@babel/template": "^7.22.5", "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" } }, - "node_modules/@babel/helper-hoist-variables": { + "@babel/helper-hoist-variables": { "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", "dev": true, - "dependencies": { + "requires": { "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" } }, - "node_modules/@babel/helper-module-imports": { + "@babel/helper-module-imports": { "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.5.tgz", "integrity": "sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg==", "dev": true, - "dependencies": { + "requires": { "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" } }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.5.tgz", - "integrity": "sha512-+hGKDt/Ze8GFExiVHno/2dvG5IdstpzCq0y4Qc9OJ25D4q3pKfiIP/4Vp3/JvhDkLKsDK2api3q3fpIgiIF5bw==", + "@babel/helper-module-transforms": { + "version": "7.22.9", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.9.tgz", + "integrity": "sha512-t+WA2Xn5K+rTeGtC8jCsdAH52bjggG5TKRuRrAGNM/mjIbO4GxvlLMFOEz9wXY5I2XQ60PMFsAG2WIcG82dQMQ==", "dev": true, - "dependencies": { + "requires": { "@babel/helper-environment-visitor": "^7.22.5", "@babel/helper-module-imports": "^7.22.5", "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.5", - "@babel/template": "^7.22.5", - "@babel/traverse": "^7.22.5", - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-validator-identifier": "^7.22.5" } }, - "node_modules/@babel/helper-plugin-utils": { + "@babel/helper-plugin-utils": { "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } + "dev": true }, - "node_modules/@babel/helper-simple-access": { + "@babel/helper-simple-access": { "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", "dev": true, - "dependencies": { + "requires": { "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" } }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.5.tgz", - "integrity": "sha512-thqK5QFghPKWLhAV321lxF95yCg2K3Ob5yw+M3VHWfdia0IkPXUtoLH8x/6Fh486QUvzhb8YOWHChTVen2/PoQ==", + "@babel/helper-split-export-declaration": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", "dev": true, - "dependencies": { + "requires": { "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" } }, - "node_modules/@babel/helper-string-parser": { + "@babel/helper-string-parser": { "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } + "dev": true }, - "node_modules/@babel/helper-validator-identifier": { + "@babel/helper-validator-identifier": { "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz", "integrity": "sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } + "dev": true }, - "node_modules/@babel/helper-validator-option": { + "@babel/helper-validator-option": { "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.5.tgz", "integrity": "sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } + "dev": true }, - "node_modules/@babel/helpers": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.5.tgz", - "integrity": "sha512-pSXRmfE1vzcUIDFQcSGA5Mr+GxBV9oiRKDuDxXvWQQBCh8HoIjs/2DlDB7H8smac1IVrB9/xdXj2N3Wol9Cr+Q==", + "@babel/helpers": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.6.tgz", + "integrity": "sha512-YjDs6y/fVOYFV8hAf1rxd1QvR9wJe1pDBZ2AREKq/SDayfPzgk0PBnVuTCE5X1acEpMMNOVUqoe+OwiZGJ+OaA==", "dev": true, - "dependencies": { + "requires": { "@babel/template": "^7.22.5", - "@babel/traverse": "^7.22.5", + "@babel/traverse": "^7.22.6", "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" } }, - "node_modules/@babel/highlight": { + "@babel/highlight": { "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.5.tgz", "integrity": "sha512-BSKlD1hgnedS5XRnGOljZawtag7H1yPfQp0tdNJCHoH6AZ+Pcm9VvkrK59/Yy593Ypg0zMxH2BxD1VPYUQ7UIw==", "dev": true, - "dependencies": { + "requires": { "@babel/helper-validator-identifier": "^7.22.5", "chalk": "^2.0.0", "js-tokens": "^4.0.0" }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "dependencies": { - "color-name": "1.1.3" + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } } }, - "node_modules/@babel/highlight/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "@babel/parser": { + "version": "7.22.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.7.tgz", + "integrity": "sha512-7NF8pOkHP5o2vpmGgNGcfAeCvOYhGLyA3Z4eBQkT1RJlWu47n63bCs93QfJ2hIAFCil7L5P2IWhs1oToVgrL0Q==", "dev": true }, - "node_modules/@babel/highlight/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@babel/highlight/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/parser": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.5.tgz", - "integrity": "sha512-DFZMC9LJUG9PLOclRC32G63UXwzqS2koQC8dkx+PLdmt1xSePYpbT/NbsrJy8Q/muXz7o/h/d4A7Fuyixm559Q==", - "dev": true, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-syntax-async-generators": { + "@babel/plugin-syntax-async-generators": { "version": "7.8.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, - "dependencies": { + "requires": { "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-bigint": { + "@babel/plugin-syntax-bigint": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", "dev": true, - "dependencies": { + "requires": { "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-class-properties": { + "@babel/plugin-syntax-class-properties": { "version": "7.12.13", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, - "dependencies": { + "requires": { "@babel/helper-plugin-utils": "^7.12.13" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-import-meta": { + "@babel/plugin-syntax-import-meta": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", "dev": true, - "dependencies": { + "requires": { "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-json-strings": { + "@babel/plugin-syntax-json-strings": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, - "dependencies": { + "requires": { "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-jsx": { + "@babel/plugin-syntax-jsx": { "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz", "integrity": "sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==", "dev": true, - "dependencies": { + "requires": { "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "@babel/plugin-syntax-logical-assignment-operators": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, - "dependencies": { + "requires": { "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "@babel/plugin-syntax-nullish-coalescing-operator": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, - "dependencies": { + "requires": { "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-numeric-separator": { + "@babel/plugin-syntax-numeric-separator": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, - "dependencies": { + "requires": { "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-object-rest-spread": { + "@babel/plugin-syntax-object-rest-spread": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, - "dependencies": { + "requires": { "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "@babel/plugin-syntax-optional-catch-binding": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, - "dependencies": { + "requires": { "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-optional-chaining": { + "@babel/plugin-syntax-optional-chaining": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, - "dependencies": { + "requires": { "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-top-level-await": { + "@babel/plugin-syntax-top-level-await": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dev": true, - "dependencies": { + "requires": { "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-typescript": { + "@babel/plugin-syntax-typescript": { "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.22.5.tgz", "integrity": "sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ==", "dev": true, - "dependencies": { + "requires": { "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/runtime": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.5.tgz", - "integrity": "sha512-ecjvYlnAaZ/KVneE/OdKYBYfgXV3Ptu6zQWmgEF7vwKhQnvVS6bjMD2XYgj+SNvQ1GfK/pjgokfPkC/2CO8CuA==", + "@babel/runtime": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.6.tgz", + "integrity": "sha512-wDb5pWm4WDdF6LFUde3Jl8WzPA+3ZbxYqkC6xAXuD3irdEHN1k0NfTRrJD8ZD378SJ61miMLCqIOXYhd8x+AJQ==", "dev": true, - "dependencies": { + "requires": { "regenerator-runtime": "^0.13.11" - }, - "engines": { - "node": ">=6.9.0" } }, - "node_modules/@babel/template": { + "@babel/template": { "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.5.tgz", "integrity": "sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw==", "dev": true, - "dependencies": { + "requires": { "@babel/code-frame": "^7.22.5", "@babel/parser": "^7.22.5", "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" } }, - "node_modules/@babel/traverse": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.5.tgz", - "integrity": "sha512-7DuIjPgERaNo6r+PZwItpjCZEa5vyw4eJGufeLxrPdBXBoLcCJCIasvK6pK/9DVNrLZTLFhUGqaC6X/PA007TQ==", + "@babel/traverse": { + "version": "7.22.8", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.8.tgz", + "integrity": "sha512-y6LPR+wpM2I3qJrsheCTwhIinzkETbplIgPBbwvqPKc+uljeA5gP+3nP8irdYt1mjQaDnlIcG+dw8OjAco4GXw==", "dev": true, - "dependencies": { + "requires": { "@babel/code-frame": "^7.22.5", - "@babel/generator": "^7.22.5", + "@babel/generator": "^7.22.7", "@babel/helper-environment-visitor": "^7.22.5", "@babel/helper-function-name": "^7.22.5", "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.5", - "@babel/parser": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.22.7", "@babel/types": "^7.22.5", "debug": "^4.1.0", "globals": "^11.1.0" }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse/node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true, - "engines": { - "node": ">=4" + "dependencies": { + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + } } }, - "node_modules/@babel/types": { + "@babel/types": { "version": "7.22.5", "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.5.tgz", "integrity": "sha512-zo3MIHGOkPOfoRXitsgHLjEXmlDaD/5KU1Uzuc9GNiZPhSqVxVRtxuPaSBZDsYZ9qV88AjtMtWW7ww98loJ9KA==", "dev": true, - "dependencies": { + "requires": { "@babel/helper-string-parser": "^7.22.5", "@babel/helper-validator-identifier": "^7.22.5", "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" } }, - "node_modules/@bcoe/v8-coverage": { + "@bcoe/v8-coverage": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, - "node_modules/@cspotcode/source-map-support": { + "@cspotcode/source-map-support": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", "dev": true, - "dependencies": { + "requires": { "@jridgewell/trace-mapping": "0.3.9" }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", - "dev": true, "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" + "@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "requires": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + } } }, - "node_modules/@discoveryjs/json-ext": { + "@discoveryjs/json-ext": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", - "dev": true, - "engines": { - "node": ">=10.0.0" - } + "dev": true }, - "node_modules/@eslint-community/eslint-utils": { + "@eslint-community/eslint-utils": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", "dev": true, - "dependencies": { + "requires": { "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, - "node_modules/@eslint-community/regexpp": { + "@eslint-community/regexpp": { "version": "4.5.1", "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", - "dev": true, - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } + "dev": true }, - "node_modules/@eslint/eslintrc": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz", - "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==", + "@eslint/eslintrc": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.0.tgz", + "integrity": "sha512-Lj7DECXqIVCqnqjjHMPna4vn6GJcMgul/wuS0je9OZ9gsL0zzDpKPVtcG1HaDVc+9y+qgXneTeUMbCqXJNpH1A==", "dev": true, - "dependencies": { + "requires": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.5.2", + "espree": "^9.6.0", "globals": "^13.19.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", @@ -746,408 +550,330 @@ "minimatch": "^3.1.2", "strip-json-comments": "^3.1.1" }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/eslintrc/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + } } }, - "node_modules/@eslint/eslintrc/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "@eslint/js": { + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.44.0.tgz", + "integrity": "sha512-Ag+9YM4ocKQx9AarydN0KY2j0ErMHNIocPDrVo8zAE44xLTjEtz81OdR68/cydGtk6m6jDb5Za3r2useMzYmSw==", "dev": true }, - "node_modules/@eslint/js": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.42.0.tgz", - "integrity": "sha512-6SWlXpWU5AvId8Ac7zjzmIOqMOba/JWY8XZ4A7q7Gn1Vlfg/SFFIlrtHXt9nPn4op9ZPAkl91Jao+QQv3r/ukw==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/@github/browserslist-config": { + "@github/browserslist-config": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/@github/browserslist-config/-/browserslist-config-1.0.0.tgz", "integrity": "sha512-gIhjdJp/c2beaIWWIlsXdqXVRUz3r2BxBCpfz/F3JXHvSAQ1paMYjLH+maEATtENg+k5eLV7gA+9yPp762ieuw==", "dev": true }, - "node_modules/@humanwhocodes/config-array": { + "@humanwhocodes/config-array": { "version": "0.11.10", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", "dev": true, - "dependencies": { + "requires": { "@humanwhocodes/object-schema": "^1.2.1", "debug": "^4.1.1", "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=10.10.0" } }, - "node_modules/@humanwhocodes/module-importer": { + "@humanwhocodes/module-importer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } + "dev": true }, - "node_modules/@humanwhocodes/object-schema": { + "@humanwhocodes/object-schema": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", "dev": true }, - "node_modules/@istanbuljs/load-nyc-config": { + "@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", "dev": true, - "dependencies": { + "requires": { "camelcase": "^5.3.1", "find-up": "^4.1.0", "get-package-type": "^0.1.0", "js-yaml": "^3.13.1", "resolve-from": "^5.0.0" }, - "engines": { - "node": ">=8" + "dependencies": { + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true + } } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true + }, + "@jest/console": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.6.1.tgz", + "integrity": "sha512-Aj772AYgwTSr5w8qnyoJ0eDYvN6bMsH3ORH1ivMotrInHLKdUz6BDlaEXHdM6kODaBIkNIyQGzsMvRdOv7VG7Q==", "dev": true, - "dependencies": { - "sprintf-js": "~1.0.2" + "requires": { + "@jest/types": "^29.6.1", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1", + "slash": "^3.0.0" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "@jest/core": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.6.1.tgz", + "integrity": "sha512-CcowHypRSm5oYQ1obz1wfvkjZZ2qoQlrKKvlfPwh5jUXVU12TWr2qMeH8chLMuTFzHh5a1g2yaqlqDICbr+ukQ==", "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" + "requires": { + "@jest/console": "^29.6.1", + "@jest/reporters": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.5.0", + "jest-config": "^29.6.1", + "jest-haste-map": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.6.1", + "jest-resolve-dependencies": "^29.6.1", + "jest-runner": "^29.6.1", + "jest-runtime": "^29.6.1", + "jest-snapshot": "^29.6.1", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", + "jest-watcher": "^29.6.1", + "micromatch": "^4.0.4", + "pretty-format": "^29.6.1", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" }, - "engines": { - "node": ">=8" + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + }, + "pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + } } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "@jest/create-cache-key-function": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/create-cache-key-function/-/create-cache-key-function-27.5.1.tgz", + "integrity": "sha512-dmH1yW+makpTSURTy8VzdUwFnfQh1G8R+DxO2Ho2FFmBbKFEVm+3jWdvFhE2VqB/LATCTokkP0dotjyQyw5/AQ==", "dev": true, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "requires": { + "@jest/types": "^27.5.1" }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "dependencies": { + "@jest/types": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", + "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + } + }, + "@types/yargs": { + "version": "16.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", + "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + } } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "@jest/environment": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.6.1.tgz", + "integrity": "sha512-RMMXx4ws+Gbvw3DfLSuo2cfQlK7IwGbpuEWXCqyYDcqYTI+9Ju3a5hDnXaxjNsa6uKh9PQF2v+qg+RLe63tz5A==", "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/console": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.5.0.tgz", - "integrity": "sha512-NEpkObxPwyw/XxZVLPmAGKE89IQRp4puc6IQRPru6JKd1M3fW9v1xM1AnzIJE65hbCkzQAdnL8P47e9hzhiYLQ==", - "dev": true, - "dependencies": { - "@jest/types": "^29.5.0", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^29.5.0", - "jest-util": "^29.5.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/core": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.5.0.tgz", - "integrity": "sha512-28UzQc7ulUrOQw1IsN/kv1QES3q2kkbl/wGslyhAclqZ/8cMdB5M68BffkIdSJgKBUt50d3hbwJ92XESlE7LiQ==", - "dev": true, - "dependencies": { - "@jest/console": "^29.5.0", - "@jest/reporters": "^29.5.0", - "@jest/test-result": "^29.5.0", - "@jest/transform": "^29.5.0", - "@jest/types": "^29.5.0", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-changed-files": "^29.5.0", - "jest-config": "^29.5.0", - "jest-haste-map": "^29.5.0", - "jest-message-util": "^29.5.0", - "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.5.0", - "jest-resolve-dependencies": "^29.5.0", - "jest-runner": "^29.5.0", - "jest-runtime": "^29.5.0", - "jest-snapshot": "^29.5.0", - "jest-util": "^29.5.0", - "jest-validate": "^29.5.0", - "jest-watcher": "^29.5.0", - "micromatch": "^4.0.4", - "pretty-format": "^29.5.0", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/@jest/core/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/core/node_modules/pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/core/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/@jest/create-cache-key-function": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/create-cache-key-function/-/create-cache-key-function-27.5.1.tgz", - "integrity": "sha512-dmH1yW+makpTSURTy8VzdUwFnfQh1G8R+DxO2Ho2FFmBbKFEVm+3jWdvFhE2VqB/LATCTokkP0dotjyQyw5/AQ==", - "dev": true, - "dependencies": { - "@jest/types": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/create-cache-key-function/node_modules/@jest/types": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/create-cache-key-function/node_modules/@types/yargs": { - "version": "16.0.5", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", - "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/@jest/environment": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.5.0.tgz", - "integrity": "sha512-5FXw2+wD29YU1d4I2htpRX7jYnAyTRjP2CsXQdo9SAM8g3ifxWPSV0HnClSn71xwctr0U3oZIIH+dtbfmnbXVQ==", - "dev": true, - "dependencies": { - "@jest/fake-timers": "^29.5.0", - "@jest/types": "^29.5.0", + "requires": { + "@jest/fake-timers": "^29.6.1", + "@jest/types": "^29.6.1", "@types/node": "*", - "jest-mock": "^29.5.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "jest-mock": "^29.6.1" } }, - "node_modules/@jest/expect": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.5.0.tgz", - "integrity": "sha512-PueDR2HGihN3ciUNGr4uelropW7rqUfTiOn+8u0leg/42UhblPxHkfoh0Ruu3I9Y1962P3u2DY4+h7GVTSVU6g==", + "@jest/expect": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.6.1.tgz", + "integrity": "sha512-N5xlPrAYaRNyFgVf2s9Uyyvr795jnB6rObuPx4QFvNJz8aAjpZUDfO4bh5G/xuplMID8PrnuF1+SfSyDxhsgYg==", "dev": true, - "dependencies": { - "expect": "^29.5.0", - "jest-snapshot": "^29.5.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "requires": { + "expect": "^29.6.1", + "jest-snapshot": "^29.6.1" } }, - "node_modules/@jest/expect-utils": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.5.0.tgz", - "integrity": "sha512-fmKzsidoXQT2KwnrwE0SQq3uj8Z763vzR8LnLBwC2qYWEFpjX8daRsk6rHUM1QvNlEW/UJXNXm59ztmJJWs2Mg==", + "@jest/expect-utils": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.6.1.tgz", + "integrity": "sha512-o319vIf5pEMx0LmzSxxkYYxo4wrRLKHq9dP1yJU7FoPTB0LfAKSz8SWD6D/6U3v/O52t9cF5t+MeJiRsfk7zMw==", "dev": true, - "dependencies": { + "requires": { "jest-get-type": "^29.4.3" }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "dependencies": { + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true + } } }, - "node_modules/@jest/fake-timers": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.5.0.tgz", - "integrity": "sha512-9ARvuAAQcBwDAqOnglWq2zwNIRUDtk/SCkp/ToGEhFv5r86K21l+VEs0qNTaXtyiY0lEePl3kylijSYJQqdbDg==", + "@jest/fake-timers": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.6.1.tgz", + "integrity": "sha512-RdgHgbXyosCDMVYmj7lLpUwXA4c69vcNzhrt69dJJdf8azUrpRh3ckFCaTPNjsEeRi27Cig0oKDGxy5j7hOgHg==", "dev": true, - "dependencies": { - "@jest/types": "^29.5.0", + "requires": { + "@jest/types": "^29.6.1", "@sinonjs/fake-timers": "^10.0.2", "@types/node": "*", - "jest-message-util": "^29.5.0", - "jest-mock": "^29.5.0", - "jest-util": "^29.5.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "jest-message-util": "^29.6.1", + "jest-mock": "^29.6.1", + "jest-util": "^29.6.1" } }, - "node_modules/@jest/globals": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.5.0.tgz", - "integrity": "sha512-S02y0qMWGihdzNbUiqSAiKSpSozSuHX5UYc7QbnHP+D9Lyw8DgGGCinrN9uSuHPeKgSSzvPom2q1nAtBvUsvPQ==", + "@jest/globals": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.6.1.tgz", + "integrity": "sha512-2VjpaGy78JY9n9370H8zGRCFbYVWwjY6RdDMhoJHa1sYfwe6XM/azGN0SjY8kk7BOZApIejQ1BFPyH7FPG0w3A==", "dev": true, - "dependencies": { - "@jest/environment": "^29.5.0", - "@jest/expect": "^29.5.0", - "@jest/types": "^29.5.0", - "jest-mock": "^29.5.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "requires": { + "@jest/environment": "^29.6.1", + "@jest/expect": "^29.6.1", + "@jest/types": "^29.6.1", + "jest-mock": "^29.6.1" } }, - "node_modules/@jest/reporters": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.5.0.tgz", - "integrity": "sha512-D05STXqj/M8bP9hQNSICtPqz97u7ffGzZu+9XLucXhkOFBqKcXe04JLZOgIekOxdb73MAoBUFnqvf7MCpKk5OA==", + "@jest/reporters": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.6.1.tgz", + "integrity": "sha512-9zuaI9QKr9JnoZtFQlw4GREQbxgmNYXU6QuWtmuODvk5nvPUeBYapVR/VYMyi2WSx3jXTLJTJji8rN6+Cm4+FA==", "dev": true, - "dependencies": { + "requires": { "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^29.5.0", - "@jest/test-result": "^29.5.0", - "@jest/transform": "^29.5.0", - "@jest/types": "^29.5.0", - "@jridgewell/trace-mapping": "^0.3.15", + "@jest/console": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", + "@jridgewell/trace-mapping": "^0.3.18", "@types/node": "*", "chalk": "^4.0.0", "collect-v8-coverage": "^1.0.0", @@ -1159,344 +885,279 @@ "istanbul-lib-report": "^3.0.0", "istanbul-lib-source-maps": "^4.0.0", "istanbul-reports": "^3.1.3", - "jest-message-util": "^29.5.0", - "jest-util": "^29.5.0", - "jest-worker": "^29.5.0", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1", + "jest-worker": "^29.6.1", "slash": "^3.0.0", "string-length": "^4.0.1", "strip-ansi": "^6.0.0", "v8-to-istanbul": "^9.0.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } } }, - "node_modules/@jest/schemas": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.4.3.tgz", - "integrity": "sha512-VLYKXQmtmuEz6IxJsrZwzG9NvtkQsWNnWMsKxqWNu3+CnfzJQhp0WDDKWLVV9hLKr0l3SLLFRqcYHjhtyuDVxg==", + "@jest/schemas": { + "version": "29.6.0", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.0.tgz", + "integrity": "sha512-rxLjXyJBTL4LQeJW3aKo0M/+GkCOXsO+8i9Iu7eDb6KwtP65ayoDsitrdPBtujxQ88k4wI2FNYfa6TOGwSn6cQ==", "dev": true, - "dependencies": { - "@sinclair/typebox": "^0.25.16" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "requires": { + "@sinclair/typebox": "^0.27.8" } }, - "node_modules/@jest/source-map": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.4.3.tgz", - "integrity": "sha512-qyt/mb6rLyd9j1jUts4EQncvS6Yy3PM9HghnNv86QBlV+zdL2inCdK1tuVlL+J+lpiw2BI67qXOrX3UurBqQ1w==", + "@jest/source-map": { + "version": "29.6.0", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.0.tgz", + "integrity": "sha512-oA+I2SHHQGxDCZpbrsCQSoMLb3Bz547JnM+jUr9qEbuw0vQlWZfpPS7CO9J7XiwKicEz9OFn/IYoLkkiUD7bzA==", "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.15", + "requires": { + "@jridgewell/trace-mapping": "^0.3.18", "callsites": "^3.0.0", "graceful-fs": "^4.2.9" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/test-result": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.5.0.tgz", - "integrity": "sha512-fGl4rfitnbfLsrfx1uUpDEESS7zM8JdgZgOCQuxQvL1Sn/I6ijeAVQWGfXI9zb1i9Mzo495cIpVZhA0yr60PkQ==", + "@jest/test-result": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.6.1.tgz", + "integrity": "sha512-Ynr13ZRcpX6INak0TPUukU8GWRfm/vAytE3JbJNGAvINySWYdfE7dGZMbk36oVuK4CigpbhMn8eg1dixZ7ZJOw==", "dev": true, - "dependencies": { - "@jest/console": "^29.5.0", - "@jest/types": "^29.5.0", + "requires": { + "@jest/console": "^29.6.1", + "@jest/types": "^29.6.1", "@types/istanbul-lib-coverage": "^2.0.0", "collect-v8-coverage": "^1.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/test-sequencer": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.5.0.tgz", - "integrity": "sha512-yPafQEcKjkSfDXyvtgiV4pevSeyuA6MQr6ZIdVkWJly9vkqjnFfcfhRQqpD5whjoU8EORki752xQmjaqoFjzMQ==", + "@jest/test-sequencer": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.6.1.tgz", + "integrity": "sha512-oBkC36PCDf/wb6dWeQIhaviU0l5u6VCsXa119yqdUosYAt7/FbQU2M2UoziO3igj/HBDEgp57ONQ3fm0v9uyyg==", "dev": true, - "dependencies": { - "@jest/test-result": "^29.5.0", + "requires": { + "@jest/test-result": "^29.6.1", "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.5.0", + "jest-haste-map": "^29.6.1", "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/transform": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.5.0.tgz", - "integrity": "sha512-8vbeZWqLJOvHaDfeMuoHITGKSz5qWc9u04lnWrQE3VyuSw604PzQM824ZeX9XSjUCeDiE3GuxZe5UKa8J61NQw==", + "@jest/transform": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.6.1.tgz", + "integrity": "sha512-URnTneIU3ZjRSaf906cvf6Hpox3hIeJXRnz3VDSw5/X93gR8ycdfSIEy19FlVx8NFmpN7fe3Gb1xF+NjXaQLWg==", "dev": true, - "dependencies": { + "requires": { "@babel/core": "^7.11.6", - "@jest/types": "^29.5.0", - "@jridgewell/trace-mapping": "^0.3.15", + "@jest/types": "^29.6.1", + "@jridgewell/trace-mapping": "^0.3.18", "babel-plugin-istanbul": "^6.1.1", "chalk": "^4.0.0", "convert-source-map": "^2.0.0", "fast-json-stable-stringify": "^2.1.0", "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.5.0", + "jest-haste-map": "^29.6.1", "jest-regex-util": "^29.4.3", - "jest-util": "^29.5.0", + "jest-util": "^29.6.1", "micromatch": "^4.0.4", "pirates": "^4.0.4", "slash": "^3.0.0", "write-file-atomic": "^4.0.2" }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "dependencies": { + "convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + } } }, - "node_modules/@jest/transform/node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true - }, - "node_modules/@jest/types": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.5.0.tgz", - "integrity": "sha512-qbu7kN6czmVRc3xWFQcAN03RAUamgppVUdXrvl1Wr3jlNF93o9mJbGcDWrwGB6ht44u7efB1qCFgVQmca24Uog==", + "@jest/types": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.1.tgz", + "integrity": "sha512-tPKQNMPuXgvdOn2/Lg9HNfUvjYVGolt04Hp03f5hAk878uwOLikN+JzeLY0HcVgKgFl9Hs3EIqpu3WX27XNhnw==", "dev": true, - "dependencies": { - "@jest/schemas": "^29.4.3", + "requires": { + "@jest/schemas": "^29.6.0", "@types/istanbul-lib-coverage": "^2.0.0", "@types/istanbul-reports": "^3.0.0", "@types/node": "*", "@types/yargs": "^17.0.8", "chalk": "^4.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jridgewell/gen-mapping": { + "@jridgewell/gen-mapping": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", "dev": true, - "dependencies": { + "requires": { "@jridgewell/set-array": "^1.0.1", "@jridgewell/sourcemap-codec": "^1.4.10", "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" } }, - "node_modules/@jridgewell/resolve-uri": { + "@jridgewell/resolve-uri": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } + "dev": true }, - "node_modules/@jridgewell/set-array": { + "@jridgewell/set-array": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } + "dev": true }, - "node_modules/@jridgewell/source-map": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz", - "integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==", + "@jridgewell/source-map": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz", + "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==", "dev": true, - "dependencies": { + "requires": { "@jridgewell/gen-mapping": "^0.3.0", "@jridgewell/trace-mapping": "^0.3.9" } }, - "node_modules/@jridgewell/sourcemap-codec": { + "@jridgewell/sourcemap-codec": { "version": "1.4.15", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", "dev": true }, - "node_modules/@jridgewell/trace-mapping": { + "@jridgewell/trace-mapping": { "version": "0.3.18", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", "dev": true, - "dependencies": { + "requires": { "@jridgewell/resolve-uri": "3.1.0", "@jridgewell/sourcemap-codec": "1.4.14" + }, + "dependencies": { + "@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + } } }, - "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", - "dev": true - }, - "node_modules/@jsep-plugin/regex": { + "@jsep-plugin/regex": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.3.tgz", - "integrity": "sha512-XfZgry4DwEZvSFtS/6Y+R48D7qJYJK6R9/yJFyUFHCIUMEEHuJ4X95TDgJp5QkmzfLYvapMPzskV5HpIDrREug==", - "engines": { - "node": ">= 10.16.0" - }, - "peerDependencies": { - "jsep": "^0.4.0||^1.0.0" - } + "integrity": "sha512-XfZgry4DwEZvSFtS/6Y+R48D7qJYJK6R9/yJFyUFHCIUMEEHuJ4X95TDgJp5QkmzfLYvapMPzskV5HpIDrREug==" }, - "node_modules/@jsep-plugin/ternary": { + "@jsep-plugin/ternary": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.3.tgz", - "integrity": "sha512-qtLGzCNzPVJ3kdH6/zoLWDPjauHIKiLSBAR71Wa0+PWvGA8wODUQvRgxtpUA5YqAYL3CQ8S4qXhd/9WuWTZirg==", - "engines": { - "node": ">= 10.16.0" - }, - "peerDependencies": { - "jsep": "^0.4.0||^1.0.0" - } + "integrity": "sha512-qtLGzCNzPVJ3kdH6/zoLWDPjauHIKiLSBAR71Wa0+PWvGA8wODUQvRgxtpUA5YqAYL3CQ8S4qXhd/9WuWTZirg==" }, - "node_modules/@nodelib/fs.scandir": { + "@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, - "dependencies": { + "requires": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" } }, - "node_modules/@nodelib/fs.stat": { + "@nodelib/fs.stat": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "engines": { - "node": ">= 8" - } + "dev": true }, - "node_modules/@nodelib/fs.walk": { + "@nodelib/fs.walk": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, - "dependencies": { + "requires": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" } }, - "node_modules/@openapi-contrib/openapi-schema-to-json-schema": { + "@openapi-contrib/openapi-schema-to-json-schema": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/@openapi-contrib/openapi-schema-to-json-schema/-/openapi-schema-to-json-schema-3.2.0.tgz", "integrity": "sha512-Gj6C0JwCr8arj0sYuslWXUBSP/KnUlEGnPW4qxlXvAl543oaNQgMgIgkQUA6vs5BCCvwTEiL8m/wdWzfl4UvSw==", - "dependencies": { + "requires": { "fast-deep-equal": "^3.1.3" } }, - "node_modules/@polka/url": { + "@polka/url": { "version": "1.0.0-next.21", "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz", "integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==", "dev": true }, - "node_modules/@sinclair/typebox": { - "version": "0.25.24", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.25.24.tgz", - "integrity": "sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==", + "@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", "dev": true }, - "node_modules/@sinonjs/commons": { + "@sinonjs/commons": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.0.tgz", "integrity": "sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==", "dev": true, - "dependencies": { + "requires": { "type-detect": "4.0.8" } }, - "node_modules/@sinonjs/fake-timers": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.1.0.tgz", - "integrity": "sha512-w1qd368vtrwttm1PRJWPW1QHlbmHrVDGs1eBH/jZvRPUFS4MNXV9Q33EQdjOdeAxZ7O8+3wM7zxztm2nfUSyKw==", + "@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", "dev": true, - "dependencies": { + "requires": { "@sinonjs/commons": "^3.0.0" } }, - "node_modules/@stoplight/better-ajv-errors": { + "@stoplight/better-ajv-errors": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.3.tgz", "integrity": "sha512-0p9uXkuB22qGdNfy3VeEhxkU5uwvp/KrBTAbrLBURv6ilxIVwanKwjMc41lQfIVgPGcOkmLbTolfFrSsueu7zA==", - "dependencies": { + "requires": { "jsonpointer": "^5.0.0", "leven": "^3.1.0" - }, - "engines": { - "node": "^12.20 || >= 14.13" - }, - "peerDependencies": { - "ajv": ">=8" } }, - "node_modules/@stoplight/json": { + "@stoplight/json": { "version": "3.21.0", "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.21.0.tgz", "integrity": "sha512-5O0apqJ/t4sIevXCO3SBN9AHCEKKR/Zb4gaj7wYe5863jme9g02Q0n/GhM7ZCALkL+vGPTe4ZzTETP8TFtsw3g==", - "dependencies": { + "requires": { "@stoplight/ordered-object-literal": "^1.0.3", "@stoplight/path": "^1.3.2", "@stoplight/types": "^13.6.0", "jsonc-parser": "~2.2.1", "lodash": "^4.17.21", "safe-stable-stringify": "^1.1" - }, - "engines": { - "node": ">=8.3.0" } }, - "node_modules/@stoplight/json-ref-readers": { + "@stoplight/json-ref-readers": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/@stoplight/json-ref-readers/-/json-ref-readers-1.2.2.tgz", "integrity": "sha512-nty0tHUq2f1IKuFYsLM4CXLZGHdMn+X/IwEUIpeSOXt0QjMUbL0Em57iJUDzz+2MkWG83smIigNZ3fauGjqgdQ==", - "dependencies": { + "requires": { "node-fetch": "^2.6.0", "tslib": "^1.14.1" }, - "engines": { - "node": ">=8.3.0" + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + } } }, - "node_modules/@stoplight/json-ref-readers/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/@stoplight/json-ref-resolver": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.5.tgz", - "integrity": "sha512-uaKLITor7UF+JBtI84zs3aOWM0L79zp7w9TrBTwPtx5SLbaQQ4HadDKgX5yhFOLMApLdhwhiftF4c0GFanOxGg==", - "dependencies": { - "@stoplight/json": "^3.17.0", + "@stoplight/json-ref-resolver": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.6.tgz", + "integrity": "sha512-YNcWv3R3n3U6iQYBsFOiWSuRGE5su1tJSiX6pAPRVk7dP0L7lqCteXGzuVRQ0gMZqUl8v1P0+fAKxF6PLo9B5A==", + "requires": { + "@stoplight/json": "^3.21.0", "@stoplight/path": "^1.3.2", "@stoplight/types": "^12.3.0 || ^13.0.0", "@types/urijs": "^1.19.19", @@ -1504,36 +1165,27 @@ "fast-memoize": "^2.5.2", "immer": "^9.0.6", "lodash": "^4.17.21", - "tslib": "^2.3.1", + "tslib": "^2.6.0", "urijs": "^1.19.11" - }, - "engines": { - "node": ">=8.3.0" } }, - "node_modules/@stoplight/ordered-object-literal": { + "@stoplight/ordered-object-literal": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@stoplight/ordered-object-literal/-/ordered-object-literal-1.0.4.tgz", - "integrity": "sha512-OF8uib1jjDs5/cCU+iOVy+GJjU3X7vk/qJIkIJFqwmlJKrrtijFmqwbu8XToXrwTYLQTP+Hebws5gtZEmk9jag==", - "engines": { - "node": ">=8" - } + "integrity": "sha512-OF8uib1jjDs5/cCU+iOVy+GJjU3X7vk/qJIkIJFqwmlJKrrtijFmqwbu8XToXrwTYLQTP+Hebws5gtZEmk9jag==" }, - "node_modules/@stoplight/path": { + "@stoplight/path": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/@stoplight/path/-/path-1.3.2.tgz", - "integrity": "sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ==", - "engines": { - "node": ">=8" - } + "integrity": "sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ==" }, - "node_modules/@stoplight/spectral-core": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.18.0.tgz", - "integrity": "sha512-0aj+IELHvhjoPWoOFj41EJilPbaexUuWFg7GCsiJ3BXrniRp3GnPl+TIZkC1ZuuAr/oi77RviDhW9Gm7ndKB9Q==", - "dependencies": { + "@stoplight/spectral-core": { + "version": "1.18.2", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.18.2.tgz", + "integrity": "sha512-bjNXo0VzXTDdFB3oKvVCAHW5rJ1/eMQzN6k1N5RW8tdEXMcEnI56MByRzADniVa+SvrutApK2u+9XwUZtIIT3w==", + "requires": { "@stoplight/better-ajv-errors": "1.0.3", - "@stoplight/json": "~3.20.1", + "@stoplight/json": "~3.21.0", "@stoplight/path": "1.3.2", "@stoplight/spectral-parsers": "^1.0.0", "@stoplight/spectral-ref-resolver": "^1.0.0", @@ -1554,65 +1206,39 @@ "simple-eval": "1.0.0", "tslib": "^2.3.0" }, - "engines": { - "node": "^12.20 || >= 14.13" - } - }, - "node_modules/@stoplight/spectral-core/node_modules/@stoplight/json": { - "version": "3.20.3", - "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.20.3.tgz", - "integrity": "sha512-2m+Km6CkEPWj+H+CXxFyQB9+mVK8ifz9izK0UZpz4G1ZBx2Pd2hI+qw24FJ+X3DTYtMPYIeINTOEaTFWOmbRxQ==", - "dependencies": { - "@stoplight/ordered-object-literal": "^1.0.3", - "@stoplight/path": "^1.3.2", - "@stoplight/types": "^13.6.0", - "jsonc-parser": "~2.2.1", - "lodash": "^4.17.21", - "safe-stable-stringify": "^1.1" - }, - "engines": { - "node": ">=8.3.0" - } - }, - "node_modules/@stoplight/spectral-core/node_modules/@stoplight/types": { - "version": "13.6.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", - "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", "dependencies": { - "@types/json-schema": "^7.0.4", - "utility-types": "^3.10.0" - }, - "engines": { - "node": "^12.20 || >=14.13" - } - }, - "node_modules/@stoplight/spectral-core/node_modules/jsonpath-plus": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.1.0.tgz", - "integrity": "sha512-gTaNRsPWO/K2KY6MrqaUFClF9kmuM6MFH5Dhg1VYDODgFbByw1yb7xu3hrViE/sz+dGOeMWgCzwUwQtAnCTE9g==", - "engines": { - "node": ">=12.0.0" + "@stoplight/types": { + "version": "13.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", + "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", + "requires": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + } + }, + "jsonpath-plus": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.1.0.tgz", + "integrity": "sha512-gTaNRsPWO/K2KY6MrqaUFClF9kmuM6MFH5Dhg1VYDODgFbByw1yb7xu3hrViE/sz+dGOeMWgCzwUwQtAnCTE9g==" + } } }, - "node_modules/@stoplight/spectral-formats": { + "@stoplight/spectral-formats": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.5.0.tgz", "integrity": "sha512-VskkdU3qBSvI1dfJ79ysjvTssfNlbA6wrf/XkXK6iTyjfIVqOAWVtjypTb2U95tN/X8IjIBBhNWtZ4tNVZilrA==", - "dependencies": { + "requires": { "@stoplight/json": "^3.17.0", "@stoplight/spectral-core": "^1.8.0", "@types/json-schema": "^7.0.7", "tslib": "^2.3.1" - }, - "engines": { - "node": ">=12" } }, - "node_modules/@stoplight/spectral-functions": { + "@stoplight/spectral-functions": { "version": "1.7.2", "resolved": "https://registry.npmjs.org/@stoplight/spectral-functions/-/spectral-functions-1.7.2.tgz", "integrity": "sha512-f+61/FtIkQeIo+a269CeaeqjpyRsgDyIk6DGr7iS4hyuk1PPk7Uf6MNRDs9FEIBh7CpdEJ+HSHbMLwgpymWTIw==", - "dependencies": { + "requires": { "@stoplight/better-ajv-errors": "1.0.3", "@stoplight/json": "^3.17.1", "@stoplight/spectral-core": "^1.7.0", @@ -1624,61 +1250,36 @@ "ajv-formats": "~2.1.0", "lodash": "~4.17.21", "tslib": "^2.3.0" - }, - "engines": { - "node": ">=12" } }, - "node_modules/@stoplight/spectral-parsers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-parsers/-/spectral-parsers-1.0.2.tgz", - "integrity": "sha512-ZQXknJ+BM5Re4Opj4cgVlHgG2qyOk/wznKJq3Vf1qsBEg2CNzN0pJmSB0deRqW0kArqm44qpb8c+cz3F2rgMtw==", - "dependencies": { - "@stoplight/json": "~3.20.1", + "@stoplight/spectral-parsers": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-parsers/-/spectral-parsers-1.0.3.tgz", + "integrity": "sha512-J0KW5Rh5cHWnJQ3yN+cr/ijNFVirPSR0pkQbdrNX30VboEl083UEDrQ3yov9kjLVIWEk9t9kKE7Eo3QT/k4JLA==", + "requires": { + "@stoplight/json": "~3.21.0", "@stoplight/types": "^13.6.0", "@stoplight/yaml": "~4.2.3", "tslib": "^2.3.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@stoplight/spectral-parsers/node_modules/@stoplight/json": { - "version": "3.20.3", - "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.20.3.tgz", - "integrity": "sha512-2m+Km6CkEPWj+H+CXxFyQB9+mVK8ifz9izK0UZpz4G1ZBx2Pd2hI+qw24FJ+X3DTYtMPYIeINTOEaTFWOmbRxQ==", - "dependencies": { - "@stoplight/ordered-object-literal": "^1.0.3", - "@stoplight/path": "^1.3.2", - "@stoplight/types": "^13.6.0", - "jsonc-parser": "~2.2.1", - "lodash": "^4.17.21", - "safe-stable-stringify": "^1.1" - }, - "engines": { - "node": ">=8.3.0" } }, - "node_modules/@stoplight/spectral-ref-resolver": { + "@stoplight/spectral-ref-resolver": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@stoplight/spectral-ref-resolver/-/spectral-ref-resolver-1.0.3.tgz", "integrity": "sha512-pj+bH4SH8hcWlnV787WD7P0/En7LA3EfZMvG1JUGMW/7bFd9AaZZXNkh5j0ve8qnPlwP8F4SH/2Cnr1tXOXCVw==", - "dependencies": { + "requires": { "@stoplight/json-ref-readers": "1.2.2", "@stoplight/json-ref-resolver": "~3.1.5", "@stoplight/spectral-runtime": "^1.1.2", "dependency-graph": "0.11.0", "tslib": "^2.3.1" - }, - "engines": { - "node": ">=12" } }, - "node_modules/@stoplight/spectral-runtime": { + "@stoplight/spectral-runtime": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@stoplight/spectral-runtime/-/spectral-runtime-1.1.2.tgz", "integrity": "sha512-fr5zRceXI+hrl82yAVoME+4GvJie8v3wmOe9tU+ZLRRNonizthy8qDi0Z/z4olE+vGreSDcuDOZ7JjRxFW5kTw==", - "dependencies": { + "requires": { "@stoplight/json": "^3.17.0", "@stoplight/path": "^1.3.2", "@stoplight/types": "^12.3.0", @@ -1687,299 +1288,179 @@ "node-fetch": "^2.6.7", "tslib": "^2.3.1" }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@stoplight/spectral-runtime/node_modules/@stoplight/types": { - "version": "12.5.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-12.5.0.tgz", - "integrity": "sha512-dwqYcDrGmEyUv5TWrDam5TGOxU72ufyQ7hnOIIDdmW5ezOwZaBFoR5XQ9AsH49w7wgvOqB2Bmo799pJPWnpCbg==", "dependencies": { - "@types/json-schema": "^7.0.4", - "utility-types": "^3.10.0" - }, - "engines": { - "node": ">=8" + "@stoplight/types": { + "version": "12.5.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-12.5.0.tgz", + "integrity": "sha512-dwqYcDrGmEyUv5TWrDam5TGOxU72ufyQ7hnOIIDdmW5ezOwZaBFoR5XQ9AsH49w7wgvOqB2Bmo799pJPWnpCbg==", + "requires": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + } + } } }, - "node_modules/@stoplight/types": { + "@stoplight/types": { "version": "13.15.0", "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.15.0.tgz", "integrity": "sha512-pBLjVRrWGVd+KzTbL3qrmufSKIEp0UfziDBdt/nrTHPKrlrtVwaHdrrQMcpM23yJDU1Wcg4cHvhIuGtKCT5OmA==", - "dependencies": { + "requires": { "@types/json-schema": "^7.0.4", "utility-types": "^3.10.0" - }, - "engines": { - "node": "^12.20 || >=14.13" } }, - "node_modules/@stoplight/yaml": { + "@stoplight/yaml": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/@stoplight/yaml/-/yaml-4.2.3.tgz", "integrity": "sha512-Mx01wjRAR9C7yLMUyYFTfbUf5DimEpHMkRDQ1PKLe9dfNILbgdxyrncsOXM3vCpsQ1Hfj4bPiGl+u4u6e9Akqw==", - "dependencies": { + "requires": { "@stoplight/ordered-object-literal": "^1.0.1", "@stoplight/types": "^13.0.0", "@stoplight/yaml-ast-parser": "0.0.48", "tslib": "^2.2.0" - }, - "engines": { - "node": ">=10.8" } }, - "node_modules/@stoplight/yaml-ast-parser": { + "@stoplight/yaml-ast-parser": { "version": "0.0.48", "resolved": "https://registry.npmjs.org/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.48.tgz", "integrity": "sha512-sV+51I7WYnLJnKPn2EMWgS4EUfoP4iWEbrWwbXsj0MZCB/xOK8j6+C9fntIdOM50kpx45ZLC3s6kwKivWuqvyg==" }, - "node_modules/@swc/core": { - "version": "1.3.63", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.63.tgz", - "integrity": "sha512-mNRMr0xcqkvnC1a/H7rpMtbIjq7KKy4XaW/+zj3+w9cH5g72eMo3ADNHE03zHoqPn+Ov3szzFOMHT6rgJlRxow==", + "@swc/core": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.69.tgz", + "integrity": "sha512-Khc/DE9D5+2tYTHgAIp5DZARbs8kldWg3b0Jp6l8FQLjelcLFmlQWSwKhVZrgv4oIbgZydIp8jInsvTalMHqnQ==", "dev": true, - "hasInstallScript": true, - "engines": { - "node": ">=10" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/swc" - }, - "optionalDependencies": { - "@swc/core-darwin-arm64": "1.3.63", - "@swc/core-darwin-x64": "1.3.63", - "@swc/core-linux-arm-gnueabihf": "1.3.63", - "@swc/core-linux-arm64-gnu": "1.3.63", - "@swc/core-linux-arm64-musl": "1.3.63", - "@swc/core-linux-x64-gnu": "1.3.63", - "@swc/core-linux-x64-musl": "1.3.63", - "@swc/core-win32-arm64-msvc": "1.3.63", - "@swc/core-win32-ia32-msvc": "1.3.63", - "@swc/core-win32-x64-msvc": "1.3.63" - }, - "peerDependencies": { - "@swc/helpers": "^0.5.0" - }, - "peerDependenciesMeta": { - "@swc/helpers": { - "optional": true - } + "requires": { + "@swc/core-darwin-arm64": "1.3.69", + "@swc/core-darwin-x64": "1.3.69", + "@swc/core-linux-arm-gnueabihf": "1.3.69", + "@swc/core-linux-arm64-gnu": "1.3.69", + "@swc/core-linux-arm64-musl": "1.3.69", + "@swc/core-linux-x64-gnu": "1.3.69", + "@swc/core-linux-x64-musl": "1.3.69", + "@swc/core-win32-arm64-msvc": "1.3.69", + "@swc/core-win32-ia32-msvc": "1.3.69", + "@swc/core-win32-x64-msvc": "1.3.69" } }, - "node_modules/@swc/core-darwin-arm64": { - "version": "1.3.63", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.63.tgz", - "integrity": "sha512-lNR0BgG0/6dGpGP+AyFZoZ3YBhZN5GzvgAUzwy4skqn5sKZ7duQD02CNq1lIy7Im5BzgMUcJ+/Z7z/YUlqBK+Q==", - "cpu": [ - "arm64" - ], + "@swc/core-darwin-arm64": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.69.tgz", + "integrity": "sha512-IjZTf12zIPWkV3D7toaLDoJPSkLhQ4fDH8G6/yCJUI27cBFOI3L8LXqptYmISoN5yYdrcnNpdqdapD09JPuNJg==", "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=10" - } + "optional": true }, - "node_modules/@swc/core-darwin-x64": { - "version": "1.3.63", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.63.tgz", - "integrity": "sha512-1lydnc+LgSD0gwD1axW3+Y1htKZZRn33aJF4ITd6hsA9Y2eIhdMVxgx6peXp8wWzoRBXy5GEMTnd7704oya4zw==", - "cpu": [ - "x64" - ], + "@swc/core-darwin-x64": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.69.tgz", + "integrity": "sha512-/wBO0Rn5oS5dJI/L9kJRkPAdksVwl5H9nleW/NM3A40N98VV8T7h/i1nO051mxIjq0R6qXVGOWFbBoLrPYucJg==", "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=10" - } + "optional": true }, - "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.3.63", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.63.tgz", - "integrity": "sha512-cJT+XJ6f25QeAcz2ONy1i8WKP6olqOIbU5fHZKsoPqEZmLkK5NCTnmIolT0HZpH1SNkE/hHkPYGn620Domvn8g==", - "cpu": [ - "arm" - ], + "@swc/core-linux-arm-gnueabihf": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.69.tgz", + "integrity": "sha512-NShCjMv6Xn8ckMKBRqmprXvUF14+jXY0TcNKXwjYErzoIUFOnG72M36HxT4QEeAtKZ4Eg4CZFE4zlJ27fDp1gg==", "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } + "optional": true }, - "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.3.63", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.63.tgz", - "integrity": "sha512-xtuk0v/86i0UR6G+5X6l3bgP1I1iWlEI23ad44L0FNrZ8wLLEvVzYuVoI6U5fKbp91LAsVpdWyyvSAo1sT7BWQ==", - "cpu": [ - "arm64" - ], + "@swc/core-linux-arm64-gnu": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.69.tgz", + "integrity": "sha512-VRPOJj4idopSHIj1bOVXX0SgaB18R8yZNunb7eXS5ZcjVxAcdvqyIz3RdQX1zaJFCGzcdPLzBRP32DZWWGE8Ng==", "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } + "optional": true }, - "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.3.63", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.63.tgz", - "integrity": "sha512-AIRqE/3659zt5hfZzj3i/xtJbJl1iz9FcYEGUsIqqrxouqZWNbFujQpIguX4qFI7uoM+m6p6pqLjMmArwErRxQ==", - "cpu": [ - "arm64" - ], + "@swc/core-linux-arm64-musl": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.69.tgz", + "integrity": "sha512-QxeSiZqo5x1X8vq8oUWLibq+IZJcxl9vy0sLUmzdjF2b/Z+qxKP3gutxnb2tzJaHqPVBbEZaILERIGy1qWdumQ==", "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } + "optional": true }, - "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.3.63", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.63.tgz", - "integrity": "sha512-EAB5gkgDvStJofvdQU40hqEqjtSvtPs3PR0WupZtbLKWWCTWg76uTXQZEKNYx9r60Pt7sx1BAa3XnqgXjmcjDg==", - "cpu": [ - "x64" - ], + "@swc/core-linux-x64-gnu": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.69.tgz", + "integrity": "sha512-b+DUlVxYox3BwD3PyTwhLvqtu6TYZtW+S6O0FnttH11o4skHN0XyJ/cUZSI0X2biSmfDsizRDUt1PWPFM+F7SA==", "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } + "optional": true }, - "node_modules/@swc/core-linux-x64-musl": { - "version": "1.3.63", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.63.tgz", - "integrity": "sha512-8ScbtDPd8Hr1VkpzCseI5H770YgxxjTFsxinH9UtJWJBFIkdu2rEwjgz4t+lDjsc/R3JWaKt1q8Dkgzqmj+77g==", - "cpu": [ - "x64" - ], + "@swc/core-linux-x64-musl": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.69.tgz", + "integrity": "sha512-QXjsI+f8n9XPZHUvmGgkABpzN4M9kdSbhqBOZmv3o0AsDGNCA4uVowQqgZoPFAqlJTpwHeDmrv5sQ13HN+LOGw==", "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } + "optional": true }, - "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.3.63", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.63.tgz", - "integrity": "sha512-+41tEugXJjpK04KIb2+Xlpb1NArhIne4u0NQo+cHb6ekJoqQmgIj3uNJhQ0v+0DDMjFqbA07l0KYNMgYLBls/A==", - "cpu": [ - "arm64" - ], + "@swc/core-win32-arm64-msvc": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.69.tgz", + "integrity": "sha512-wn7A8Ws1fyviuCUB2Vg6IotiZeuqiO1Mz3d+YDae2EYyNpj1kNHvjBip8GHkfGzZG+jVrvG6NHsDo0KO/pGb8A==", "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=10" - } + "optional": true }, - "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.3.63", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.63.tgz", - "integrity": "sha512-W6nPOD5k++rSmoAb0Jg0h7gyfjly8b5ld7cSnmrWKXfmjgxOqxcoqP2LlzNkamg320eqkGaD9n+UnPJDteLTBw==", - "cpu": [ - "ia32" - ], + "@swc/core-win32-ia32-msvc": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.69.tgz", + "integrity": "sha512-LsFBXtXqxEcVaaOGEZ9X3qdMzobVoJqKv8DnksuDsWcBk+9WCeTz2u/iB+7yZ2HGuPXkCqTRqhFo6FX9aC00kQ==", "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=10" - } + "optional": true }, - "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.3.63", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.63.tgz", - "integrity": "sha512-MHNCF3GWtlKZL3vNhMiCrtM4gBHqAv0Iw38bLoJRagh1Q/UDNVjNzWhgngCno9NUQodMtCo6G7iTQilW7YaAQQ==", - "cpu": [ - "x64" - ], + "@swc/core-win32-x64-msvc": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.69.tgz", + "integrity": "sha512-ieBscU0gUgKjaseFI07tAaGqHvKyweNknPeSYEZOasVZUczhD6fK2GRnVREhv2RB2qdKC/VGFBsgRDMgzq1VLw==", "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=10" - } + "optional": true }, - "node_modules/@swc/jest": { + "@swc/jest": { "version": "0.2.26", "resolved": "https://registry.npmjs.org/@swc/jest/-/jest-0.2.26.tgz", "integrity": "sha512-7lAi7q7ShTO3E5Gt1Xqf3pIhRbERxR1DUxvtVa9WKzIB+HGQ7wZP5sYx86zqnaEoKKGhmOoZ7gyW0IRu8Br5+A==", "dev": true, - "dependencies": { + "requires": { "@jest/create-cache-key-function": "^27.4.2", "jsonc-parser": "^3.2.0" }, - "engines": { - "npm": ">= 7.0.0" - }, - "peerDependencies": { - "@swc/core": "*" + "dependencies": { + "jsonc-parser": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", + "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==", + "dev": true + } } }, - "node_modules/@swc/jest/node_modules/jsonc-parser": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", - "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==", - "dev": true - }, - "node_modules/@tsconfig/node10": { + "@tsconfig/node10": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", "dev": true }, - "node_modules/@tsconfig/node12": { + "@tsconfig/node12": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", "dev": true }, - "node_modules/@tsconfig/node14": { + "@tsconfig/node14": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", "dev": true }, - "node_modules/@tsconfig/node16": { + "@tsconfig/node16": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", "dev": true }, - "node_modules/@types/babel__core": { + "@types/babel__core": { "version": "7.20.1", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.1.tgz", "integrity": "sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==", "dev": true, - "dependencies": { + "requires": { "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7", "@types/babel__generator": "*", @@ -1987,466 +1468,385 @@ "@types/babel__traverse": "*" } }, - "node_modules/@types/babel__generator": { + "@types/babel__generator": { "version": "7.6.4", "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", "dev": true, - "dependencies": { + "requires": { "@babel/types": "^7.0.0" } }, - "node_modules/@types/babel__template": { + "@types/babel__template": { "version": "7.4.1", "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", "dev": true, - "dependencies": { + "requires": { "@babel/parser": "^7.1.0", "@babel/types": "^7.0.0" } }, - "node_modules/@types/babel__traverse": { + "@types/babel__traverse": { "version": "7.20.1", "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.1.tgz", "integrity": "sha512-MitHFXnhtgwsGZWtT68URpOvLN4EREih1u3QtQiN4VdAxWKRVvGCSvw/Qth0M0Qq3pJpnGOu5JaM/ydK7OGbqg==", "dev": true, - "dependencies": { + "requires": { "@babel/types": "^7.20.7" } }, - "node_modules/@types/es-aggregate-error": { + "@types/es-aggregate-error": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@types/es-aggregate-error/-/es-aggregate-error-1.0.2.tgz", "integrity": "sha512-erqUpFXksaeR2kejKnhnjZjbFxUpGZx4Z7ydNL9ie8tEhXPiZTsLeUDJ6aR1F8j5wWUAtOAQWUqkc7givBJbBA==", - "dependencies": { + "requires": { "@types/node": "*" + }, + "dependencies": { + "@types/node": { + "version": "20.4.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.2.tgz", + "integrity": "sha512-Dd0BYtWgnWJKwO1jkmTrzofjK2QXXcai0dmtzvIBhcA+RsG5h8R3xlyta0kGOZRNfL9GuRtb1knmPEhQrePCEw==" + } } }, - "node_modules/@types/eslint": { - "version": "8.40.2", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.2.tgz", - "integrity": "sha512-PRVjQ4Eh9z9pmmtaq8nTjZjQwKFk7YIHIud3lRoKRBgUQjgjRmoGxxGEPXQkF+lH7QkHJRNr5F4aBgYCW0lqpQ==", + "@types/eslint": { + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.44.0.tgz", + "integrity": "sha512-gsF+c/0XOguWgaOgvFs+xnnRqt9GwgTvIks36WpE6ueeI4KCEHHd8K/CKHqhOqrJKsYH8m27kRzQEvWXAwXUTw==", "dev": true, - "dependencies": { + "requires": { "@types/estree": "*", "@types/json-schema": "*" } }, - "node_modules/@types/eslint-scope": { + "@types/eslint-scope": { "version": "3.7.4", "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", "dev": true, - "dependencies": { + "requires": { "@types/eslint": "*", "@types/estree": "*" } }, - "node_modules/@types/estree": { + "@types/estree": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==", "dev": true }, - "node_modules/@types/graceful-fs": { + "@types/graceful-fs": { "version": "4.1.6", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", "dev": true, - "dependencies": { + "requires": { "@types/node": "*" } }, - "node_modules/@types/istanbul-lib-coverage": { + "@types/istanbul-lib-coverage": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", "dev": true }, - "node_modules/@types/istanbul-lib-report": { + "@types/istanbul-lib-report": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", "dev": true, - "dependencies": { + "requires": { "@types/istanbul-lib-coverage": "*" } }, - "node_modules/@types/istanbul-reports": { + "@types/istanbul-reports": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", "dev": true, - "dependencies": { + "requires": { "@types/istanbul-lib-report": "*" } }, - "node_modules/@types/jest": { + "@types/jest": { "version": "27.5.2", "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.5.2.tgz", "integrity": "sha512-mpT8LJJ4CMeeahobofYWIjFo0xonRS/HfxnVEPMPFSQdGUt1uHCnoPT7Zhb+sjDU2wz0oKV0OLUR0WzrHNgfeA==", "dev": true, - "dependencies": { + "requires": { "jest-matcher-utils": "^27.0.0", "pretty-format": "^27.0.0" } }, - "node_modules/@types/js-yaml": { + "@types/js-yaml": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz", "integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==", "dev": true }, - "node_modules/@types/json-schema": { + "@types/json-schema": { "version": "7.0.12", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==" }, - "node_modules/@types/json5": { + "@types/json5": { "version": "0.0.29", "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", "dev": true }, - "node_modules/@types/node": { - "version": "18.16.18", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.18.tgz", - "integrity": "sha512-/aNaQZD0+iSBAGnvvN2Cx92HqE5sZCPZtx2TsK+4nvV23fFe09jVDvpArXr2j9DnYlzuU9WuoykDDc6wqvpNcw==" + "@types/node": { + "version": "18.16.19", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.19.tgz", + "integrity": "sha512-IXl7o+R9iti9eBW4Wg2hx1xQDig183jj7YLn8F7udNceyfkbn1ZxmzZXuak20gR40D7pIkIY1kYGx5VIGbaHKA==", + "dev": true }, - "node_modules/@types/node-fetch": { + "@types/node-fetch": { "version": "2.6.4", "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.4.tgz", "integrity": "sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==", "dev": true, - "dependencies": { + "requires": { "@types/node": "*", "form-data": "^3.0.0" } }, - "node_modules/@types/prettier": { + "@types/prettier": { "version": "2.7.3", "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", "dev": true }, - "node_modules/@types/semver": { + "@types/semver": { "version": "7.5.0", "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz", "integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==", "dev": true }, - "node_modules/@types/stack-utils": { + "@types/stack-utils": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", "dev": true }, - "node_modules/@types/urijs": { + "@types/urijs": { "version": "1.19.19", "resolved": "https://registry.npmjs.org/@types/urijs/-/urijs-1.19.19.tgz", "integrity": "sha512-FDJNkyhmKLw7uEvTxx5tSXfPeQpO0iy73Ry+PmYZJvQy0QIWX8a7kJ4kLWRf+EbTPJEPDSgPXHaM7pzr5lmvCg==" }, - "node_modules/@types/yargs": { + "@types/yargs": { "version": "17.0.24", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", "dev": true, - "dependencies": { + "requires": { "@types/yargs-parser": "*" } }, - "node_modules/@types/yargs-parser": { + "@types/yargs-parser": { "version": "21.0.0", "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", "dev": true }, - "node_modules/@types/yauzl": { + "@types/yauzl": { "version": "2.10.0", "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.0.tgz", "integrity": "sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==", "dev": true, "optional": true, - "dependencies": { + "requires": { "@types/node": "*" } }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.11.tgz", - "integrity": "sha512-XxuOfTkCUiOSyBWIvHlUraLw/JT/6Io1365RO6ZuI88STKMavJZPNMU0lFcUTeQXEhHiv64CbxYxBNoDVSmghg==", + "@typescript-eslint/eslint-plugin": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz", + "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==", "dev": true, - "dependencies": { + "requires": { "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.59.11", - "@typescript-eslint/type-utils": "5.59.11", - "@typescript-eslint/utils": "5.59.11", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/type-utils": "5.62.0", + "@typescript-eslint/utils": "5.62.0", "debug": "^4.3.4", - "grapheme-splitter": "^1.0.4", + "graphemer": "^1.4.0", "ignore": "^5.2.0", "natural-compare-lite": "^1.4.0", "semver": "^7.3.7", "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } } }, - "node_modules/@typescript-eslint/parser": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.11.tgz", - "integrity": "sha512-s9ZF3M+Nym6CAZEkJJeO2TFHHDsKAM3ecNkLuH4i4s8/RCPnF5JRip2GyviYkeEAcwGMJxkqG9h2dAsnA1nZpA==", + "@typescript-eslint/parser": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz", + "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==", "dev": true, - "dependencies": { - "@typescript-eslint/scope-manager": "5.59.11", - "@typescript-eslint/types": "5.59.11", - "@typescript-eslint/typescript-estree": "5.59.11", + "requires": { + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", "debug": "^4.3.4" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } } }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.11.tgz", - "integrity": "sha512-dHFOsxoLFtrIcSj5h0QoBT/89hxQONwmn3FOQ0GOQcLOOXm+MIrS8zEAhs4tWl5MraxCY3ZJpaXQQdFMc2Tu+Q==", + "@typescript-eslint/scope-manager": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", + "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", "dev": true, - "dependencies": { - "@typescript-eslint/types": "5.59.11", - "@typescript-eslint/visitor-keys": "5.59.11" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "requires": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0" } }, - "node_modules/@typescript-eslint/type-utils": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.11.tgz", - "integrity": "sha512-LZqVY8hMiVRF2a7/swmkStMYSoXMFlzL6sXV6U/2gL5cwnLWQgLEG8tjWPpaE4rMIdZ6VKWwcffPlo1jPfk43g==", + "@typescript-eslint/type-utils": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz", + "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==", "dev": true, - "dependencies": { - "@typescript-eslint/typescript-estree": "5.59.11", - "@typescript-eslint/utils": "5.59.11", + "requires": { + "@typescript-eslint/typescript-estree": "5.62.0", + "@typescript-eslint/utils": "5.62.0", "debug": "^4.3.4", "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } } }, - "node_modules/@typescript-eslint/types": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.11.tgz", - "integrity": "sha512-epoN6R6tkvBYSc+cllrz+c2sOFWkbisJZWkOE+y3xHtvYaOE6Wk6B8e114McRJwFRjGvYdJwLXQH5c9osME/AA==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } + "@typescript-eslint/types": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", + "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", + "dev": true }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.11.tgz", - "integrity": "sha512-YupOpot5hJO0maupJXixi6l5ETdrITxeo5eBOeuV7RSKgYdU3G5cxO49/9WRnJq9EMrB7AuTSLH/bqOsXi7wPA==", + "@typescript-eslint/typescript-estree": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", + "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", "dev": true, - "dependencies": { - "@typescript-eslint/types": "5.59.11", - "@typescript-eslint/visitor-keys": "5.59.11", + "requires": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", "semver": "^7.3.7", "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } } }, - "node_modules/@typescript-eslint/utils": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.11.tgz", - "integrity": "sha512-didu2rHSOMUdJThLk4aZ1Or8IcO3HzCw/ZvEjTTIfjIrcdd5cvSIwwDy2AOlE7htSNp7QIZ10fLMyRCveesMLg==", + "@typescript-eslint/utils": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", + "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", "dev": true, - "dependencies": { + "requires": { "@eslint-community/eslint-utils": "^4.2.0", "@types/json-schema": "^7.0.9", "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.59.11", - "@typescript-eslint/types": "5.59.11", - "@typescript-eslint/typescript-estree": "5.59.11", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", "eslint-scope": "^5.1.1", "semver": "^7.3.7" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.59.11", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.11.tgz", - "integrity": "sha512-KGYniTGG3AMTuKF9QBD7EIrvufkB6O6uX3knP73xbKLMpH+QRPcgnCxjWXSHjMRuOxFLovljqQgQpR0c7GvjoA==", + "@typescript-eslint/visitor-keys": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", + "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", "dev": true, - "dependencies": { - "@typescript-eslint/types": "5.59.11", + "requires": { + "@typescript-eslint/types": "5.62.0", "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@webassemblyjs/ast": { + "@webassemblyjs/ast": { "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", "dev": true, - "dependencies": { + "requires": { "@webassemblyjs/helper-numbers": "1.11.6", "@webassemblyjs/helper-wasm-bytecode": "1.11.6" } }, - "node_modules/@webassemblyjs/floating-point-hex-parser": { + "@webassemblyjs/floating-point-hex-parser": { "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", "dev": true }, - "node_modules/@webassemblyjs/helper-api-error": { + "@webassemblyjs/helper-api-error": { "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", "dev": true }, - "node_modules/@webassemblyjs/helper-buffer": { + "@webassemblyjs/helper-buffer": { "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==", "dev": true }, - "node_modules/@webassemblyjs/helper-numbers": { + "@webassemblyjs/helper-numbers": { "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", "dev": true, - "dependencies": { + "requires": { "@webassemblyjs/floating-point-hex-parser": "1.11.6", "@webassemblyjs/helper-api-error": "1.11.6", "@xtuc/long": "4.2.2" } }, - "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "@webassemblyjs/helper-wasm-bytecode": { "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", "dev": true }, - "node_modules/@webassemblyjs/helper-wasm-section": { + "@webassemblyjs/helper-wasm-section": { "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", "dev": true, - "dependencies": { + "requires": { "@webassemblyjs/ast": "1.11.6", "@webassemblyjs/helper-buffer": "1.11.6", "@webassemblyjs/helper-wasm-bytecode": "1.11.6", "@webassemblyjs/wasm-gen": "1.11.6" } }, - "node_modules/@webassemblyjs/ieee754": { + "@webassemblyjs/ieee754": { "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", "dev": true, - "dependencies": { + "requires": { "@xtuc/ieee754": "^1.2.0" } }, - "node_modules/@webassemblyjs/leb128": { + "@webassemblyjs/leb128": { "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", "dev": true, - "dependencies": { + "requires": { "@xtuc/long": "4.2.2" } }, - "node_modules/@webassemblyjs/utf8": { + "@webassemblyjs/utf8": { "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", "dev": true }, - "node_modules/@webassemblyjs/wasm-edit": { + "@webassemblyjs/wasm-edit": { "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", "dev": true, - "dependencies": { + "requires": { "@webassemblyjs/ast": "1.11.6", "@webassemblyjs/helper-buffer": "1.11.6", "@webassemblyjs/helper-wasm-bytecode": "1.11.6", @@ -2457,12 +1857,12 @@ "@webassemblyjs/wast-printer": "1.11.6" } }, - "node_modules/@webassemblyjs/wasm-gen": { + "@webassemblyjs/wasm-gen": { "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", "dev": true, - "dependencies": { + "requires": { "@webassemblyjs/ast": "1.11.6", "@webassemblyjs/helper-wasm-bytecode": "1.11.6", "@webassemblyjs/ieee754": "1.11.6", @@ -2470,24 +1870,24 @@ "@webassemblyjs/utf8": "1.11.6" } }, - "node_modules/@webassemblyjs/wasm-opt": { + "@webassemblyjs/wasm-opt": { "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", "dev": true, - "dependencies": { + "requires": { "@webassemblyjs/ast": "1.11.6", "@webassemblyjs/helper-buffer": "1.11.6", "@webassemblyjs/wasm-gen": "1.11.6", "@webassemblyjs/wasm-parser": "1.11.6" } }, - "node_modules/@webassemblyjs/wasm-parser": { + "@webassemblyjs/wasm-parser": { "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", "dev": true, - "dependencies": { + "requires": { "@webassemblyjs/ast": "1.11.6", "@webassemblyjs/helper-api-error": "1.11.6", "@webassemblyjs/helper-wasm-bytecode": "1.11.6", @@ -2496,576 +1896,451 @@ "@webassemblyjs/utf8": "1.11.6" } }, - "node_modules/@webassemblyjs/wast-printer": { + "@webassemblyjs/wast-printer": { "version": "1.11.6", "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", "dev": true, - "dependencies": { + "requires": { "@webassemblyjs/ast": "1.11.6", "@xtuc/long": "4.2.2" } }, - "node_modules/@webpack-cli/configtest": { + "@webpack-cli/configtest": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz", "integrity": "sha512-4FB8Tj6xyVkyqjj1OaTqCjXYULB9FMkqQ8yGrZjRDrYh0nOE+7Lhs45WioWQQMV+ceFlE368Ukhe6xdvJM9Egg==", - "dev": true, - "peerDependencies": { - "webpack": "4.x.x || 5.x.x", - "webpack-cli": "4.x.x" - } + "dev": true }, - "node_modules/@webpack-cli/info": { + "@webpack-cli/info": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.5.0.tgz", "integrity": "sha512-e8tSXZpw2hPl2uMJY6fsMswaok5FdlGNRTktvFk2sD8RjH0hE2+XistawJx1vmKteh4NmGmNUrp+Tb2w+udPcQ==", "dev": true, - "dependencies": { + "requires": { "envinfo": "^7.7.3" - }, - "peerDependencies": { - "webpack-cli": "4.x.x" } }, - "node_modules/@webpack-cli/serve": { + "@webpack-cli/serve": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.7.0.tgz", "integrity": "sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==", - "dev": true, - "peerDependencies": { - "webpack-cli": "4.x.x" - }, - "peerDependenciesMeta": { - "webpack-dev-server": { - "optional": true - } - } + "dev": true }, - "node_modules/@xtuc/ieee754": { + "@xtuc/ieee754": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", "dev": true }, - "node_modules/@xtuc/long": { + "@xtuc/long": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", "dev": true }, - "node_modules/abort-controller": { + "JSONStream": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", + "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", + "dev": true, + "requires": { + "jsonparse": "^1.2.0", + "through": ">=2.2.7 <3" + } + }, + "abort-controller": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", - "dependencies": { + "requires": { "event-target-shim": "^5.0.0" - }, - "engines": { - "node": ">=6.5" } }, - "node_modules/accessory": { + "accessory": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/accessory/-/accessory-1.1.0.tgz", "integrity": "sha512-DlgiZ+jTuCIZLURquQhOfclRvPu6gQKgOzr9wAiZtjWYjd1lMK8Hr6XXEDWuEAxpTWEccgn6YVREJ6C7fhvrww==", "dev": true, - "dependencies": { + "requires": { "ap": "~0.2.0", "balanced-match": "~0.2.0", "dot-parts": "~1.0.0" - } - }, - "node_modules/acorn": { - "version": "8.8.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz", - "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", - "dev": true, - "bin": { - "acorn": "bin/acorn" }, - "engines": { - "node": ">=0.4.0" + "dependencies": { + "balanced-match": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.2.1.tgz", + "integrity": "sha512-euSOvfze1jPOf85KQOmZ2UcWDJ/dUJukTJdj4o9ZZLyjl7IjdIyE4fAQRSuGrxAjB9nvvvrl4N3bPtRq+W+SyQ==", + "dev": true + } } }, - "node_modules/acorn-import-assertions": { + "acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true + }, + "acorn-import-assertions": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", - "dev": true, - "peerDependencies": { - "acorn": "^8" - } + "dev": true }, - "node_modules/acorn-jsx": { + "acorn-jsx": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } + "dev": true }, - "node_modules/acorn-node": { + "acorn-node": { "version": "1.8.2", "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", "dev": true, - "dependencies": { + "requires": { "acorn": "^7.0.0", "acorn-walk": "^7.0.0", "xtend": "^4.0.2" } }, - "node_modules/acorn-node/node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-walk": { + "acorn-walk": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } + "dev": true }, - "node_modules/agent-base": { + "agent-base": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", "dev": true, - "dependencies": { + "requires": { "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" } }, - "node_modules/ajv": { + "ajv": { "version": "8.12.0", "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", - "dependencies": { + "requires": { "fast-deep-equal": "^3.1.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2", "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/ajv-draft-04": { + "ajv-draft-04": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", - "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", - "peerDependencies": { - "ajv": "^8.5.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } + "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==" }, - "node_modules/ajv-errors": { + "ajv-errors": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", - "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", - "peerDependencies": { - "ajv": "^8.0.1" - } + "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==" }, - "node_modules/ajv-formats": { + "ajv-formats": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", - "dependencies": { - "ajv": "^8.0.0" - }, - "peerDependencies": { + "requires": { "ajv": "^8.0.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } } }, - "node_modules/amdefine": { + "ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true + }, + "amdefine": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", "integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==", "dev": true, - "optional": true, - "engines": { - "node": ">=0.4.2" - } + "optional": true }, - "node_modules/ansi-escapes": { + "ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, - "dependencies": { + "requires": { "type-fest": "^0.21.3" }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ansi-escapes/node_modules/type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "dependencies": { + "type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true + } } }, - "node_modules/ansi-red": { + "ansi-red": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", "integrity": "sha512-ewaIr5y+9CUTGFwZfpECUbFlGcC0GCw1oqR9RI6h1gQCd9Aj2GxSckCnPsVJnmfMZbwFYE+leZGASgkWl06Jow==", "dev": true, - "dependencies": { + "requires": { "ansi-wrap": "0.1.0" - }, - "engines": { - "node": ">=0.10.0" } }, - "node_modules/ansi-regex": { + "ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } + "dev": true }, - "node_modules/ansi-styles": { + "ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "dependencies": { + "requires": { "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/ansi-wrap": { + "ansi-wrap": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", "integrity": "sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "dev": true }, - "node_modules/anymatch": { + "anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, - "dependencies": { + "requires": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" } }, - "node_modules/ap": { + "ap": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/ap/-/ap-0.2.0.tgz", "integrity": "sha512-ImdvquIuBSVpWRWhB441UjvTcZqic1RL+lTQaUKGdGEp1aiTvt/phAvY8Vvs32qya5FJBI8U+tzNBYzFDQY/lQ==", "dev": true }, - "node_modules/arg": { + "arg": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", "dev": true }, - "node_modules/argparse": { + "argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, - "node_modules/aria-query": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.2.1.tgz", - "integrity": "sha512-7uFg4b+lETFgdaJyETnILsXgnnzVnkHcgRbwbPwevm5x/LmUlt3MjczMRe1zg824iBgXZNRPTBftNYyRSKLp2g==", + "aria-query": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", + "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", "dev": true, - "dependencies": { + "requires": { "dequal": "^2.0.3" } }, - "node_modules/array-buffer-byte-length": { + "array-buffer-byte-length": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", - "dependencies": { + "requires": { "call-bind": "^1.0.2", "is-array-buffer": "^3.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/array-includes": { + "array-includes": { "version": "3.1.6", "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", "dev": true, - "dependencies": { + "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", "es-abstract": "^1.20.4", "get-intrinsic": "^1.1.3", "is-string": "^1.0.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/array-union": { + "array-union": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true, - "engines": { - "node": ">=8" - } + "dev": true }, - "node_modules/array.prototype.flat": { + "array.prototype.flat": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", "dev": true, - "dependencies": { + "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", "es-abstract": "^1.20.4", "es-shim-unscopables": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/array.prototype.flatmap": { + "array.prototype.flatmap": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", "dev": true, - "dependencies": { + "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", "es-abstract": "^1.20.4", "es-shim-unscopables": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/asn1.js": { + "asn1.js": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", "dev": true, - "dependencies": { + "requires": { "bn.js": "^4.0.0", "inherits": "^2.0.1", "minimalistic-assert": "^1.0.0", "safer-buffer": "^2.1.0" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } } }, - "node_modules/asn1.js/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - }, - "node_modules/assert": { + "assert": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.0.tgz", "integrity": "sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==", "dev": true, - "dependencies": { + "requires": { "object-assign": "^4.1.1", "util": "0.10.3" - } - }, - "node_modules/assert/node_modules/inherits": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha512-8nWq2nLTAwd02jTqJExUYFSD/fKq6VH9Y/oG2accc/kdI0V98Bag8d5a4gi3XHz73rDWa2PvTtvcWYquKqSENA==", - "dev": true - }, - "node_modules/assert/node_modules/util": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", - "integrity": "sha512-5KiHfsmkqacuKjkRkdV7SsfDJ2EGiPsK92s2MhNSY0craxjTdKTtqKsJaCWp4LW33ZZ0OPUv1WO/TFvNQRiQxQ==", - "dev": true, + }, "dependencies": { - "inherits": "2.0.1" + "inherits": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", + "integrity": "sha512-8nWq2nLTAwd02jTqJExUYFSD/fKq6VH9Y/oG2accc/kdI0V98Bag8d5a4gi3XHz73rDWa2PvTtvcWYquKqSENA==", + "dev": true + }, + "util": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", + "integrity": "sha512-5KiHfsmkqacuKjkRkdV7SsfDJ2EGiPsK92s2MhNSY0craxjTdKTtqKsJaCWp4LW33ZZ0OPUv1WO/TFvNQRiQxQ==", + "dev": true, + "requires": { + "inherits": "2.0.1" + } + } } }, - "node_modules/ast-types-flow": { + "ast-types-flow": { "version": "0.0.7", "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", "dev": true }, - "node_modules/astring": { + "astring": { "version": "1.8.6", "resolved": "https://registry.npmjs.org/astring/-/astring-1.8.6.tgz", - "integrity": "sha512-ISvCdHdlTDlH5IpxQJIex7BWBywFWgjJSVdwst+/iQCoEYnyOaQ95+X1JGshuBjGp6nxKUy1jMgE3zPqN7fQdg==", - "bin": { - "astring": "bin/astring" - } + "integrity": "sha512-ISvCdHdlTDlH5IpxQJIex7BWBywFWgjJSVdwst+/iQCoEYnyOaQ95+X1JGshuBjGp6nxKUy1jMgE3zPqN7fQdg==" }, - "node_modules/asynckit": { + "asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", "dev": true }, - "node_modules/autolinker": { + "autolinker": { "version": "0.28.1", "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.28.1.tgz", "integrity": "sha512-zQAFO1Dlsn69eXaO6+7YZc+v84aquQKbwpzCE3L0stj56ERn9hutFxPopViLjo9G+rWwjozRhgS5KJ25Xy19cQ==", "dev": true, - "dependencies": { + "requires": { "gulp-header": "^1.7.1" } }, - "node_modules/available-typed-arrays": { + "available-typed-arrays": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==" }, - "node_modules/avsc": { + "avsc": { "version": "5.7.7", "resolved": "https://registry.npmjs.org/avsc/-/avsc-5.7.7.tgz", - "integrity": "sha512-9cYNccliXZDByFsFliVwk5GvTq058Fj513CiR4E60ndDwmuXzTJEp/Bp8FyuRmGyYupLjHLs+JA9/CBoVS4/NQ==", - "engines": { - "node": ">=0.11" - } + "integrity": "sha512-9cYNccliXZDByFsFliVwk5GvTq058Fj513CiR4E60ndDwmuXzTJEp/Bp8FyuRmGyYupLjHLs+JA9/CBoVS4/NQ==" }, - "node_modules/axe-core": { + "axe-core": { "version": "4.7.2", "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz", "integrity": "sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==", - "dev": true, - "engines": { - "node": ">=4" - } + "dev": true }, - "node_modules/axobject-query": { + "axobject-query": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz", "integrity": "sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==", "dev": true, - "dependencies": { + "requires": { "dequal": "^2.0.3" } }, - "node_modules/babel-jest": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.5.0.tgz", - "integrity": "sha512-mA4eCDh5mSo2EcA9xQjVTpmbbNk32Zb3Q3QFQsNhaK56Q+yoXowzFodLux30HRgyOho5rsQ6B0P9QpMkvvnJ0Q==", + "babel-jest": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.6.1.tgz", + "integrity": "sha512-qu+3bdPEQC6KZSPz+4Fyjbga5OODNcp49j6GKzG1EKbkfyJBxEYGVUmVGpwCSeGouG52R4EgYMLb6p9YeEEQ4A==", "dev": true, - "dependencies": { - "@jest/transform": "^29.5.0", + "requires": { + "@jest/transform": "^29.6.1", "@types/babel__core": "^7.1.14", "babel-plugin-istanbul": "^6.1.1", "babel-preset-jest": "^29.5.0", "chalk": "^4.0.0", "graceful-fs": "^4.2.9", "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.8.0" } }, - "node_modules/babel-plugin-istanbul": { + "babel-plugin-istanbul": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", "dev": true, - "dependencies": { + "requires": { "@babel/helper-plugin-utils": "^7.0.0", "@istanbuljs/load-nyc-config": "^1.0.0", "@istanbuljs/schema": "^0.1.2", "istanbul-lib-instrument": "^5.0.4", "test-exclude": "^6.0.0" - }, - "engines": { - "node": ">=8" } }, - "node_modules/babel-plugin-jest-hoist": { + "babel-plugin-jest-hoist": { "version": "29.5.0", "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.5.0.tgz", "integrity": "sha512-zSuuuAlTMT4mzLj2nPnUm6fsE6270vdOfnpbJ+RmruU75UhLFvL0N2NgI7xpeS7NaB6hGqmd5pVpGTDYvi4Q3w==", "dev": true, - "dependencies": { + "requires": { "@babel/template": "^7.3.3", "@babel/types": "^7.3.3", "@types/babel__core": "^7.1.14", "@types/babel__traverse": "^7.0.6" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/babel-preset-current-node-syntax": { + "babel-preset-current-node-syntax": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", "dev": true, - "dependencies": { + "requires": { "@babel/plugin-syntax-async-generators": "^7.8.4", "@babel/plugin-syntax-bigint": "^7.8.3", "@babel/plugin-syntax-class-properties": "^7.8.3", @@ -3078,184 +2353,123 @@ "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", "@babel/plugin-syntax-optional-chaining": "^7.8.3", "@babel/plugin-syntax-top-level-await": "^7.8.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" } }, - "node_modules/babel-preset-jest": { + "babel-preset-jest": { "version": "29.5.0", "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.5.0.tgz", "integrity": "sha512-JOMloxOqdiBSxMAzjRaH023/vvcaSaec49zvg+2LmNsktC7ei39LTJGw02J+9uUtTZUq6xbLyJ4dxe9sSmIuAg==", "dev": true, - "dependencies": { + "requires": { "babel-plugin-jest-hoist": "^29.5.0", "babel-preset-current-node-syntax": "^1.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" } }, - "node_modules/balanced-match": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.2.1.tgz", - "integrity": "sha512-euSOvfze1jPOf85KQOmZ2UcWDJ/dUJukTJdj4o9ZZLyjl7IjdIyE4fAQRSuGrxAjB9nvvvrl4N3bPtRq+W+SyQ==", - "dev": true + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, - "node_modules/base64-js": { + "base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] + "dev": true }, - "node_modules/bl": { + "bl": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", "dev": true, - "dependencies": { + "requires": { "buffer": "^5.5.0", "inherits": "^2.0.4", "readable-stream": "^3.4.0" - } - }, - "node_modules/bl/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" + }, + "dependencies": { + "buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } }, - { - "type": "consulting", - "url": "https://feross.org/support" + "readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" } }, - "node_modules/bl/node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/bn.js": { + "bn.js": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", "dev": true }, - "node_modules/brace-expansion": { + "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { + "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, - "node_modules/brace-expansion/node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "node_modules/braces": { + "braces": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dev": true, - "dependencies": { + "requires": { "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/braces/node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" } }, - "node_modules/brorand": { + "brorand": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==", "dev": true }, - "node_modules/browser-pack": { + "browser-pack": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-6.1.0.tgz", "integrity": "sha512-erYug8XoqzU3IfcU8fUgyHqyOXqIE4tUTTQ+7mqUjQlvnXkOO6OlT9c/ZoJVHYoAaqGxr09CN53G7XIsO4KtWA==", "dev": true, - "dependencies": { + "requires": { + "JSONStream": "^1.0.3", "combine-source-map": "~0.8.0", "defined": "^1.0.0", - "JSONStream": "^1.0.3", "safe-buffer": "^5.1.1", "through2": "^2.0.0", "umd": "^3.0.0" - }, - "bin": { - "browser-pack": "bin/cmd.js" } }, - "node_modules/browser-resolve": { + "browser-resolve": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-2.0.0.tgz", "integrity": "sha512-7sWsQlYL2rGLy2IWm8WL8DCTJvYLc/qlOnsakDac87SOoCd16WLsaAMdCiAqsTNHIe+SXfaqyxyo6THoWqs8WQ==", "dev": true, - "dependencies": { + "requires": { "resolve": "^1.17.0" } }, - "node_modules/browserify": { + "browserify": { "version": "16.5.2", "resolved": "https://registry.npmjs.org/browserify/-/browserify-16.5.2.tgz", "integrity": "sha512-TkOR1cQGdmXU9zW4YukWzWVSJwrxmNdADFbqbE3HFgQWe5wqZmOawqZ7J/8MPCwk/W8yY7Y0h+7mOtcZxLP23g==", "dev": true, - "dependencies": { + "requires": { + "JSONStream": "^1.0.3", "assert": "^1.4.0", "browser-pack": "^6.0.1", "browser-resolve": "^2.0.0", @@ -3277,7 +2491,6 @@ "https-browserify": "^1.0.0", "inherits": "~2.0.1", "insert-module-globals": "^7.0.0", - "JSONStream": "^1.0.3", "labeled-stream-splicer": "^2.0.0", "mkdirp-classic": "^0.5.2", "module-deps": "^6.2.3", @@ -3305,19 +2518,27 @@ "vm-browserify": "^1.0.0", "xtend": "^4.0.0" }, - "bin": { - "browserify": "bin/cmd.js" - }, - "engines": { - "node": ">= 0.8" + "dependencies": { + "path-browserify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", + "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", + "dev": true + }, + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", + "dev": true + } } }, - "node_modules/browserify-aes": { + "browserify-aes": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", "dev": true, - "dependencies": { + "requires": { "buffer-xor": "^1.0.3", "cipher-base": "^1.0.0", "create-hash": "^1.1.0", @@ -3326,67 +2547,66 @@ "safe-buffer": "^5.0.1" } }, - "node_modules/browserify-cipher": { + "browserify-cipher": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", "dev": true, - "dependencies": { + "requires": { "browserify-aes": "^1.0.4", "browserify-des": "^1.0.0", "evp_bytestokey": "^1.0.0" } }, - "node_modules/browserify-des": { + "browserify-des": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", "dev": true, - "dependencies": { + "requires": { "cipher-base": "^1.0.1", "des.js": "^1.0.0", "inherits": "^2.0.1", "safe-buffer": "^5.1.2" } }, - "node_modules/browserify-rsa": { + "browserify-rsa": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.0.tgz", "integrity": "sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog==", "dev": true, - "dependencies": { + "requires": { "bn.js": "^5.0.0", "randombytes": "^2.0.1" } }, - "node_modules/browserify-shim": { + "browserify-shim": { "version": "3.8.16", "resolved": "https://registry.npmjs.org/browserify-shim/-/browserify-shim-3.8.16.tgz", "integrity": "sha512-+Ap0xOKUC5Hz8sdUROxCJHgzA5IeU7pgUquCdlbBxyxkexzU4kpU6u1TsIvnFJcdx1bxO902J08AEjbMqDbA3g==", "dev": true, - "dependencies": { + "requires": { "exposify": "~0.5.0", "mothership": "~0.3.0", "rename-function-calls": "~0.1.0", "resolve": "~0.6.1", "through": "~2.3.4" }, - "peerDependencies": { - "browserify": ">= 2.3" + "dependencies": { + "resolve": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.6.3.tgz", + "integrity": "sha512-UHBY3viPlJKf85YijDUcikKX6tmF4SokIDp518ZDVT92JNDcG5uKIthaT/owt3Sar0lwtOafsQuwrg22/v2Dwg==", + "dev": true + } } }, - "node_modules/browserify-shim/node_modules/resolve": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.6.3.tgz", - "integrity": "sha512-UHBY3viPlJKf85YijDUcikKX6tmF4SokIDp518ZDVT92JNDcG5uKIthaT/owt3Sar0lwtOafsQuwrg22/v2Dwg==", - "dev": true - }, - "node_modules/browserify-sign": { + "browserify-sign": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.1.tgz", "integrity": "sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==", "dev": true, - "dependencies": { + "requires": { "bn.js": "^5.1.1", "browserify-rsa": "^4.0.1", "create-hash": "^1.2.0", @@ -3396,448 +2616,344 @@ "parse-asn1": "^5.1.5", "readable-stream": "^3.6.0", "safe-buffer": "^5.2.0" - } - }, - "node_modules/browserify-sign/node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" }, - "engines": { - "node": ">= 6" + "dependencies": { + "readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + } } }, - "node_modules/browserify-zlib": { + "browserify-zlib": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", "dev": true, - "dependencies": { + "requires": { "pako": "~1.0.5" } }, - "node_modules/browserify/node_modules/path-browserify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", - "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", - "dev": true - }, - "node_modules/browserslist": { - "version": "4.21.8", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.8.tgz", - "integrity": "sha512-j+7xYe+v+q2Id9qbBeCI8WX5NmZSRe8es1+0xntD/+gaWXznP8tFEkv5IgSaHf5dS1YwVMbX/4W6m937mj+wQw==", + "browserslist": { + "version": "4.21.9", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.9.tgz", + "integrity": "sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg==", "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "caniuse-lite": "^1.0.30001502", - "electron-to-chromium": "^1.4.428", + "requires": { + "caniuse-lite": "^1.0.30001503", + "electron-to-chromium": "^1.4.431", "node-releases": "^2.0.12", "update-browserslist-db": "^1.0.11" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, - "node_modules/bser": { + "bser": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", "dev": true, - "dependencies": { + "requires": { "node-int64": "^0.4.0" } }, - "node_modules/buffer": { + "buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.2.1.tgz", "integrity": "sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==", "dev": true, - "dependencies": { + "requires": { "base64-js": "^1.0.2", "ieee754": "^1.1.4" } }, - "node_modules/buffer-crc32": { + "buffer-crc32": { "version": "0.2.13", "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", - "dev": true, - "engines": { - "node": "*" - } + "dev": true }, - "node_modules/buffer-from": { + "buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true }, - "node_modules/buffer-xor": { + "buffer-xor": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==", "dev": true }, - "node_modules/builtin-status-codes": { + "builtin-status-codes": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", "integrity": "sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ==", "dev": true }, - "node_modules/cached-path-relative": { + "cached-path-relative": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/cached-path-relative/-/cached-path-relative-1.1.0.tgz", "integrity": "sha512-WF0LihfemtesFcJgO7xfOoOcnWzY/QHR4qeDqV44jPU3HTI54+LnfXK3SA27AVVGCdZFgjjFFaqUA9Jx7dMJZA==", "dev": true }, - "node_modules/call-bind": { + "call-bind": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dependencies": { + "requires": { "function-bind": "^1.1.1", "get-intrinsic": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/callsites": { + "callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "engines": { - "node": ">=6" - } + "dev": true }, - "node_modules/camelcase": { + "camelcase": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "engines": { - "node": ">=6" - } + "dev": true }, - "node_modules/caniuse-lite": { - "version": "1.0.30001502", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001502.tgz", - "integrity": "sha512-AZ+9tFXw1sS0o0jcpJQIXvFTOB/xGiQ4OQ2t98QX3NDn2EZTSRBC801gxrsGgViuq2ak/NLkNgSNEPtCr5lfKg==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ] + "caniuse-lite": { + "version": "1.0.30001515", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001515.tgz", + "integrity": "sha512-eEFDwUOZbE24sb+Ecsx3+OvNETqjWIdabMy52oOkIgcUtAsQifjUG9q4U9dgTHJM2mfk4uEPxc0+xuFdJ629QA==", + "dev": true }, - "node_modules/chalk": { + "chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, - "dependencies": { + "requires": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/char-regex": { + "char-regex": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", - "dev": true, - "engines": { - "node": ">=10" - } + "dev": true }, - "node_modules/chownr": { + "chownr": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", "dev": true }, - "node_modules/chrome-trace-event": { + "chrome-trace-event": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", - "dev": true, - "engines": { - "node": ">=6.0" - } + "dev": true }, - "node_modules/ci-info": { + "ci-info": { "version": "3.8.0", "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "engines": { - "node": ">=8" - } + "dev": true }, - "node_modules/cipher-base": { + "cipher-base": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", "dev": true, - "dependencies": { + "requires": { "inherits": "^2.0.1", "safe-buffer": "^5.0.1" } }, - "node_modules/cjs-module-lexer": { + "cjs-module-lexer": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", "dev": true }, - "node_modules/cliui": { + "cliui": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, - "dependencies": { + "requires": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" } }, - "node_modules/clone-deep": { + "clone-deep": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", "dev": true, - "dependencies": { + "requires": { "is-plain-object": "^2.0.4", "kind-of": "^6.0.2", "shallow-clone": "^3.0.0" }, - "engines": { - "node": ">=6" - } - }, - "node_modules/clone-deep/node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "dev": true, - "engines": { - "node": ">=0.10.0" + "dependencies": { + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + } } }, - "node_modules/co": { + "co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", - "engines": { - "iojs": ">= 1.0.0", - "node": ">= 0.12.0" - } + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==" }, - "node_modules/coffee-script": { + "coffee-script": { "version": "1.12.7", "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", "integrity": "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==", - "deprecated": "CoffeeScript on NPM has moved to \"coffeescript\" (no hyphen)", - "dev": true, - "bin": { - "cake": "bin/cake", - "coffee": "bin/coffee" - }, - "engines": { - "node": ">=0.8.0" - } + "dev": true }, - "node_modules/collect-v8-coverage": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", - "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", + "collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", "dev": true }, - "node_modules/color-convert": { + "color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "dependencies": { + "requires": { "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" } }, - "node_modules/color-name": { + "color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "node_modules/colorette": { + "colorette": { "version": "2.0.20", "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", "dev": true }, - "node_modules/combine-source-map": { + "combine-source-map": { "version": "0.8.0", "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.8.0.tgz", "integrity": "sha512-UlxQ9Vw0b/Bt/KYwCFqdEwsQ1eL8d1gibiFb7lxQJFdvTgc2hIZi6ugsg+kyhzhPV+QEpUiEIwInIAIrgoEkrg==", "dev": true, - "dependencies": { + "requires": { "convert-source-map": "~1.1.0", "inline-source-map": "~0.6.0", "lodash.memoize": "~3.0.3", "source-map": "~0.5.3" } }, - "node_modules/combined-stream": { + "combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dev": true, - "dependencies": { + "requires": { "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" } }, - "node_modules/commander": { + "commander": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", - "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", - "engines": { - "node": ">= 6" - } + "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==" }, - "node_modules/concat-map": { + "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" }, - "node_modules/concat-stream": { + "concat-stream": { "version": "1.6.2", "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", "dev": true, - "engines": [ - "node >= 0.8" - ], - "dependencies": { + "requires": { "buffer-from": "^1.0.0", "inherits": "^2.0.3", "readable-stream": "^2.2.2", "typedarray": "^0.0.6" } }, - "node_modules/concat-with-sourcemaps": { + "concat-with-sourcemaps": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", "dev": true, - "dependencies": { + "requires": { "source-map": "^0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } } }, - "node_modules/concat-with-sourcemaps/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/console-browserify": { + "console-browserify": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==", "dev": true }, - "node_modules/constants-browserify": { + "constants-browserify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", "integrity": "sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ==", "dev": true }, - "node_modules/convert-source-map": { + "convert-source-map": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", "integrity": "sha512-Y8L5rp6jo+g9VEPgvqNfEopjTR4OTYct8lXlS8iVQdmnjDvbdbzYe9rjtFCB9egC86JoNCU61WRY+ScjkZpnIg==", "dev": true }, - "node_modules/core-util-is": { + "core-util-is": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", "dev": true }, - "node_modules/create-ecdh": { + "create-ecdh": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", "dev": true, - "dependencies": { + "requires": { "bn.js": "^4.1.0", "elliptic": "^6.5.3" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } } }, - "node_modules/create-ecdh/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - }, - "node_modules/create-hash": { + "create-hash": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", "dev": true, - "dependencies": { + "requires": { "cipher-base": "^1.0.1", "inherits": "^2.0.1", "md5.js": "^1.3.4", @@ -3845,12 +2961,12 @@ "sha.js": "^2.4.0" } }, - "node_modules/create-hmac": { + "create-hmac": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", "dev": true, - "dependencies": { + "requires": { "cipher-base": "^1.0.3", "create-hash": "^1.1.0", "inherits": "^2.0.1", @@ -3859,59 +2975,47 @@ "sha.js": "^2.4.8" } }, - "node_modules/create-require": { + "create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", "dev": true }, - "node_modules/cross-env": { + "cross-env": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", "dev": true, - "dependencies": { + "requires": { "cross-spawn": "^7.0.1" - }, - "bin": { - "cross-env": "src/bin/cross-env.js", - "cross-env-shell": "src/bin/cross-env-shell.js" - }, - "engines": { - "node": ">=10.14", - "npm": ">=6", - "yarn": ">=1" } }, - "node_modules/cross-fetch": { + "cross-fetch": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", "dev": true, - "dependencies": { + "requires": { "node-fetch": "2.6.7" } }, - "node_modules/cross-spawn": { + "cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, - "dependencies": { + "requires": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" } }, - "node_modules/crypto-browserify": { + "crypto-browserify": { "version": "3.12.0", "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", "dev": true, - "dependencies": { + "requires": { "browserify-cipher": "^1.0.0", "browserify-sign": "^4.0.0", "create-ecdh": "^4.0.0", @@ -3923,279 +3027,226 @@ "public-encrypt": "^4.0.0", "randombytes": "^2.0.0", "randomfill": "^1.0.3" - }, - "engines": { - "node": "*" } }, - "node_modules/damerau-levenshtein": { + "damerau-levenshtein": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", "dev": true }, - "node_modules/dash-ast": { + "dash-ast": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/dash-ast/-/dash-ast-1.0.0.tgz", "integrity": "sha512-Vy4dx7gquTeMcQR/hDkYLGUnwVil6vk4FOOct+djUnHOUWt+zJPJAaRIXaAFkPXtJjvlY7o3rfRu0/3hpnwoUA==", "dev": true }, - "node_modules/debug": { + "debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, - "dependencies": { + "requires": { "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } } }, - "node_modules/dedent": { + "dedent": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", "dev": true }, - "node_modules/deep-is": { + "deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true }, - "node_modules/deepmerge": { + "deepmerge": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "dev": true }, - "node_modules/define-properties": { + "define-properties": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", - "dependencies": { + "requires": { "has-property-descriptors": "^1.0.0", "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/defined": { + "defined": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.1.tgz", "integrity": "sha512-hsBd2qSVCRE+5PmNdHt1uzyrFu5d3RwmFDKzyNZMFq/EwDNJF7Ee5+D5oEKF0hU6LhtoUF1macFvOe4AskQC1Q==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "dev": true }, - "node_modules/delayed-stream": { + "delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } + "dev": true }, - "node_modules/dependency-graph": { + "dependency-graph": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", - "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", - "engines": { - "node": ">= 0.6.0" - } + "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==" }, - "node_modules/deps-sort": { + "deps-sort": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/deps-sort/-/deps-sort-2.0.1.tgz", "integrity": "sha512-1orqXQr5po+3KI6kQb9A4jnXT1PBwggGl2d7Sq2xsnOeI9GPcE/tGcF9UiSZtZBM7MukY4cAh7MemS6tZYipfw==", "dev": true, - "dependencies": { + "requires": { "JSONStream": "^1.0.3", "shasum-object": "^1.0.0", "subarg": "^1.0.0", "through2": "^2.0.0" - }, - "bin": { - "deps-sort": "bin/cmd.js" } }, - "node_modules/dequal": { + "dequal": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", - "dev": true, - "engines": { - "node": ">=6" - } + "dev": true }, - "node_modules/des.js": { + "des.js": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.1.0.tgz", "integrity": "sha512-r17GxjhUCjSRy8aiJpr8/UadFIzMzJGexI3Nmz4ADi9LYSFx4gTBp80+NaX/YsXWWLhpZ7v/v/ubEc/bCNfKwg==", "dev": true, - "dependencies": { + "requires": { "inherits": "^2.0.1", "minimalistic-assert": "^1.0.0" } }, - "node_modules/detect-newline": { + "detect-newline": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", - "dev": true, - "engines": { - "node": ">=8" - } + "dev": true }, - "node_modules/detective": { + "detective": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/detective/-/detective-5.2.1.tgz", "integrity": "sha512-v9XE1zRnz1wRtgurGu0Bs8uHKFSTdteYZNbIPFVhUZ39L/S79ppMpdmVOZAnoz1jfEFodc48n6MX483Xo3t1yw==", "dev": true, - "dependencies": { + "requires": { "acorn-node": "^1.8.2", "defined": "^1.0.0", "minimist": "^1.2.6" - }, - "bin": { - "detective": "bin/detective.js" - }, - "engines": { - "node": ">=0.8.0" } }, - "node_modules/devtools-protocol": { + "devtools-protocol": { "version": "0.0.1036444", "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1036444.tgz", "integrity": "sha512-0y4f/T8H9lsESV9kKP1HDUXgHxCdniFeJh6Erq+FbdOEvp/Ydp9t8kcAAM5gOd17pMrTDlFWntoHtzzeTUWKNw==", "dev": true }, - "node_modules/diacritics-map": { + "diacritics-map": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/diacritics-map/-/diacritics-map-0.1.0.tgz", "integrity": "sha512-3omnDTYrGigU0i4cJjvaKwD52B8aoqyX/NEIkukFFkogBemsIbhSa1O414fpTp5nuszJG6lvQ5vBvDVNCbSsaQ==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } + "dev": true }, - "node_modules/diff": { + "diff": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } + "dev": true }, - "node_modules/diff-sequences": { + "diff-sequences": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } + "dev": true }, - "node_modules/diffie-hellman": { + "diffie-hellman": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", "dev": true, - "dependencies": { + "requires": { "bn.js": "^4.1.0", "miller-rabin": "^4.0.0", "randombytes": "^2.0.0" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } } }, - "node_modules/diffie-hellman/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - }, - "node_modules/dir-glob": { + "dir-glob": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", "dev": true, - "dependencies": { + "requires": { "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" } }, - "node_modules/doctrine": { + "doctrine": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "dev": true, - "dependencies": { + "requires": { "esutils": "^2.0.2" }, - "engines": { - "node": ">=6.0.0" + "dependencies": { + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + } } }, - "node_modules/domain-browser": { + "domain-browser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", - "dev": true, - "engines": { - "node": ">=0.4", - "npm": ">=1.2" - } + "dev": true }, - "node_modules/dot-parts": { + "dot-parts": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dot-parts/-/dot-parts-1.0.1.tgz", "integrity": "sha512-DcAuaZ2hguFLkxrAwOlvYNFb4IE6xg1Ldzqpma4/UeiT0utd8/E17z1h9mH8s+9Hwh7SeLn83LpIykh/oBBxSw==", "dev": true }, - "node_modules/duplexer": { + "duplexer": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", "dev": true }, - "node_modules/duplexer2": { + "duplexer2": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==", "dev": true, - "dependencies": { + "requires": { "readable-stream": "^2.0.2" } }, - "node_modules/electron-to-chromium": { - "version": "1.4.428", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.428.tgz", - "integrity": "sha512-L7uUknyY286of0AYC8CKfgWstD0Smk2DvHDi9F0GWQhSH90Bzi7iDrmCbZKz75tYJxeGSAc7TYeKpmbjMDoh1w==", + "electron-to-chromium": { + "version": "1.4.460", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.460.tgz", + "integrity": "sha512-kKiHnbrHME7z8E6AYaw0ehyxY5+hdaRmeUbjBO22LZMdqTYCO29EvF0T1cQ3pJ1RN5fyMcHl1Lmcsdt9WWJpJQ==", "dev": true }, - "node_modules/elliptic": { + "elliptic": { "version": "6.5.4", "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", "dev": true, - "dependencies": { + "requires": { "bn.js": "^4.11.9", "brorand": "^1.1.0", "hash.js": "^1.0.0", @@ -4203,87 +3254,74 @@ "inherits": "^2.0.4", "minimalistic-assert": "^1.0.1", "minimalistic-crypto-utils": "^1.0.1" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } } }, - "node_modules/elliptic/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - }, - "node_modules/emittery": { + "emittery": { "version": "0.13.1", "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sindresorhus/emittery?sponsor=1" - } + "dev": true }, - "node_modules/emoji-regex": { + "emoji-regex": { "version": "9.2.2", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", "dev": true }, - "node_modules/end-of-stream": { + "end-of-stream": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", "dev": true, - "dependencies": { + "requires": { "once": "^1.4.0" } }, - "node_modules/enhanced-resolve": { + "enhanced-resolve": { "version": "5.15.0", "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", "dev": true, - "dependencies": { + "requires": { "graceful-fs": "^4.2.4", "tapable": "^2.2.0" - }, - "engines": { - "node": ">=10.13.0" } }, - "node_modules/envinfo": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", - "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", - "dev": true, - "bin": { - "envinfo": "dist/cli.js" - }, - "engines": { - "node": ">=4" - } + "envinfo": { + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.10.0.tgz", + "integrity": "sha512-ZtUjZO6l5mwTHvc1L9+1q5p/R3wTopcfqMW8r5t8SJSKqeVI/LtajORwRFEKpEFuekjD0VBjwu1HMxL4UalIRw==", + "dev": true }, - "node_modules/error-ex": { + "error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "dev": true, - "dependencies": { + "requires": { "is-arrayish": "^0.2.1" } }, - "node_modules/es-abstract": { - "version": "1.21.2", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz", - "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==", - "dependencies": { + "es-abstract": { + "version": "1.21.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.3.tgz", + "integrity": "sha512-ZU4miiY1j3sGPFLJ34VJXEqhpmL+HGByCinGHv4HC+Fxl2fI2Z4yR6tl0mORnDr6PA8eihWo4LmSWDbvhALckg==", + "requires": { "array-buffer-byte-length": "^1.0.0", "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", "es-set-tostringtag": "^2.0.1", "es-to-primitive": "^1.2.1", "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.2.0", + "get-intrinsic": "^1.2.1", "get-symbol-description": "^1.0.0", "globalthis": "^1.0.3", "gopd": "^1.0.1", @@ -4303,27 +3341,22 @@ "object-inspect": "^1.12.3", "object-keys": "^1.1.1", "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.4.3", + "regexp.prototype.flags": "^1.5.0", "safe-regex-test": "^1.0.0", "string.prototype.trim": "^1.2.7", "string.prototype.trimend": "^1.0.6", "string.prototype.trimstart": "^1.0.6", + "typed-array-byte-offset": "^1.0.0", "typed-array-length": "^1.0.4", "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.9" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "which-typed-array": "^1.1.10" } }, - "node_modules/es-aggregate-error": { + "es-aggregate-error": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/es-aggregate-error/-/es-aggregate-error-1.0.9.tgz", "integrity": "sha512-fvnX40sb538wdU6r4s35cq4EY6Lr09Upj40BEVem4LEsuW8XgQep9yD5Q1U2KftokNp1rWODFJ2qwZSsAjFpbg==", - "dependencies": { + "requires": { "define-properties": "^1.1.4", "es-abstract": "^1.20.4", "function-bind": "^1.1.1", @@ -4331,154 +3364,101 @@ "get-intrinsic": "^1.1.3", "globalthis": "^1.0.3", "has-property-descriptors": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/es-module-lexer": { + "es-module-lexer": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.3.0.tgz", "integrity": "sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA==", "dev": true }, - "node_modules/es-set-tostringtag": { + "es-set-tostringtag": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", - "dependencies": { + "requires": { "get-intrinsic": "^1.1.3", "has": "^1.0.3", "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" } }, - "node_modules/es-shim-unscopables": { + "es-shim-unscopables": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", "dev": true, - "dependencies": { + "requires": { "has": "^1.0.3" } }, - "node_modules/es-to-primitive": { + "es-to-primitive": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dependencies": { + "requires": { "is-callable": "^1.1.4", "is-date-object": "^1.0.1", "is-symbol": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/escalade": { + "escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true, - "engines": { - "node": ">=6" - } + "dev": true }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true }, - "node_modules/escodegen": { + "escodegen": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.1.0.tgz", "integrity": "sha512-md+WjA8K+DJELEYe0n4XAOE0XbUYfw2rzb8T+nhZ19OnQxlh+0jMLS6d+z2oqWugIh3uYKu1+KJh6QKeoogLzg==", "dev": true, - "dependencies": { + "requires": { "esprima": "~1.0.4", "estraverse": "~1.5.0", - "esutils": "~1.0.0" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, - "engines": { - "node": ">=0.4.0" - }, - "optionalDependencies": { + "esutils": "~1.0.0", "source-map": "~0.1.30" - } - }, - "node_modules/escodegen/node_modules/esprima": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", - "integrity": "sha512-rp5dMKN8zEs9dfi9g0X1ClLmV//WRyk/R15mppFNICIFRG5P92VP7Z04p8pk++gABo9W2tY+kHyu6P1mEHgmTA==", - "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/escodegen/node_modules/estraverse": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.5.1.tgz", - "integrity": "sha512-FpCjJDfmo3vsc/1zKSeqR5k42tcIhxFIlvq+h9j0fO2q/h2uLKyweq7rYJ+0CoVvrGQOxIS5wyBrW/+vF58BUQ==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/escodegen/node_modules/esutils": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-1.0.0.tgz", - "integrity": "sha512-x/iYH53X3quDwfHRz4y8rn4XcEwwCJeWsul9pF1zldMbGtgOtMNBEOuYWwB1EQlK2LRa1fev3YAgym/RElp5Cg==", - "dev": true, - "engines": { - "node": ">=0.10.0" + "dependencies": { + "esprima": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", + "integrity": "sha512-rp5dMKN8zEs9dfi9g0X1ClLmV//WRyk/R15mppFNICIFRG5P92VP7Z04p8pk++gABo9W2tY+kHyu6P1mEHgmTA==", + "dev": true + }, + "estraverse": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.5.1.tgz", + "integrity": "sha512-FpCjJDfmo3vsc/1zKSeqR5k42tcIhxFIlvq+h9j0fO2q/h2uLKyweq7rYJ+0CoVvrGQOxIS5wyBrW/+vF58BUQ==", + "dev": true + }, + "source-map": { + "version": "0.1.43", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", + "integrity": "sha512-VtCvB9SIQhk3aF6h+N85EaqIaBFIAfZ9Cu+NJHHVvc8BbEcnvDcFw6sqQ2dQrT6SlOrZq3tIvyD9+EGq/lJryQ==", + "dev": true, + "optional": true, + "requires": { + "amdefine": ">=0.0.4" + } + } } }, - "node_modules/escodegen/node_modules/source-map": { - "version": "0.1.43", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", - "integrity": "sha512-VtCvB9SIQhk3aF6h+N85EaqIaBFIAfZ9Cu+NJHHVvc8BbEcnvDcFw6sqQ2dQrT6SlOrZq3tIvyD9+EGq/lJryQ==", + "eslint": { + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.44.0.tgz", + "integrity": "sha512-0wpHoUbDUHgNCyvFB5aXLiQVfK9B0at6gUvzy83k4kAsQ/u769TQDX6iKC+aO4upIHO9WSaA3QoXYQDHbNwf1A==", "dev": true, - "optional": true, - "dependencies": { - "amdefine": ">=0.0.4" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/eslint": { - "version": "8.42.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.42.0.tgz", - "integrity": "sha512-ulg9Ms6E1WPf67PHaEY4/6E2tEn5/f7FXGzr3t9cBMugOmf1INYvuUwwh1aXQN4MfJ6a5K2iNwP3w4AColvI9A==", - "dev": true, - "dependencies": { + "requires": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.4.0", - "@eslint/eslintrc": "^2.0.3", - "@eslint/js": "8.42.0", + "@eslint/eslintrc": "^2.1.0", + "@eslint/js": "8.44.0", "@humanwhocodes/config-array": "^0.11.10", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", @@ -4490,7 +3470,7 @@ "escape-string-regexp": "^4.0.0", "eslint-scope": "^7.2.0", "eslint-visitor-keys": "^3.4.1", - "espree": "^9.5.2", + "espree": "^9.6.0", "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", @@ -4510,144 +3490,158 @@ "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.1", + "optionator": "^0.9.3", "strip-ansi": "^6.0.1", "strip-json-comments": "^3.1.0", "text-table": "^0.2.0" }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "dependencies": { + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true + }, + "eslint-scope": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", + "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + } + }, + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "requires": { + "is-glob": "^4.0.3" + } + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + } } }, - "node_modules/eslint-config-prettier": { + "eslint-config-prettier": { "version": "8.8.0", "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", - "dev": true, - "bin": { - "eslint-config-prettier": "bin/cli.js" - }, - "peerDependencies": { - "eslint": ">=7.0.0" - } + "dev": true }, - "node_modules/eslint-import-resolver-node": { + "eslint-import-resolver-node": { "version": "0.3.7", "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", "dev": true, - "dependencies": { + "requires": { "debug": "^3.2.7", "is-core-module": "^2.11.0", "resolve": "^1.22.1" - } - }, - "node_modules/eslint-import-resolver-node/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, + }, "dependencies": { - "ms": "^2.1.1" + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } } }, - "node_modules/eslint-module-utils": { + "eslint-module-utils": { "version": "2.8.0", "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", "dev": true, - "dependencies": { + "requires": { "debug": "^3.2.7" }, - "engines": { - "node": ">=4" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - } - } - }, - "node_modules/eslint-module-utils/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, "dependencies": { - "ms": "^2.1.1" + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } } }, - "node_modules/eslint-plugin-escompat": { + "eslint-plugin-escompat": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/eslint-plugin-escompat/-/eslint-plugin-escompat-3.4.0.tgz", "integrity": "sha512-ufTPv8cwCxTNoLnTZBFTQ5SxU2w7E7wiMIS7PSxsgP1eAxFjtSaoZ80LRn64hI8iYziE6kJG6gX/ZCJVxh48Bg==", "dev": true, - "dependencies": { + "requires": { "browserslist": "^4.21.0" - }, - "peerDependencies": { - "eslint": ">=5.14.1" } }, - "node_modules/eslint-plugin-eslint-comments": { + "eslint-plugin-eslint-comments": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz", "integrity": "sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==", "dev": true, - "dependencies": { + "requires": { "escape-string-regexp": "^1.0.5", "ignore": "^5.0.5" - }, - "engines": { - "node": ">=6.5.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=4.19.1" - } - }, - "node_modules/eslint-plugin-eslint-comments/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" } }, - "node_modules/eslint-plugin-filenames": { + "eslint-plugin-filenames": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/eslint-plugin-filenames/-/eslint-plugin-filenames-1.3.2.tgz", "integrity": "sha512-tqxJTiEM5a0JmRCUYQmxw23vtTxrb2+a3Q2mMOPhFxvt7ZQQJmdiuMby9B/vUAuVMghyP7oET+nIf6EO6CBd/w==", "dev": true, - "dependencies": { + "requires": { "lodash.camelcase": "4.3.0", "lodash.kebabcase": "4.1.1", "lodash.snakecase": "4.1.1", "lodash.upperfirst": "4.3.1" - }, - "peerDependencies": { - "eslint": "*" } }, - "node_modules/eslint-plugin-github": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-4.8.0.tgz", - "integrity": "sha512-1qu1qcyac4FfZmT9KNPr5250DwWzwp6uy6xAqHD2boE4OquUpeTni05yPn1b6y6vUYm/q8+npTdyYiRSqvg+BQ==", + "eslint-plugin-github": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-4.9.0.tgz", + "integrity": "sha512-c4jnJXJzHy8lzdYjOXlXcY7jX4b2ciGh+ugZM5b6vs6q2+m+6BrNl20u5WxloJvH6Q8CbZ0+Lnh7lDJxUd3WkQ==", "dev": true, - "dependencies": { + "requires": { "@github/browserslist-config": "^1.0.0", "@typescript-eslint/eslint-plugin": "^5.1.0", "@typescript-eslint/parser": "^5.1.0", - "aria-query": "^5.1.3", + "aria-query": "^5.3.0", "eslint-config-prettier": ">=8.0.0", "eslint-plugin-escompat": "^3.3.3", "eslint-plugin-eslint-comments": "^3.2.0", @@ -4661,29 +3655,20 @@ "jsx-ast-utils": "^3.3.2", "prettier": "^2.2.1", "svg-element-attributes": "^1.3.1" - }, - "bin": { - "eslint-ignore-errors": "bin/eslint-ignore-errors.js" - }, - "peerDependencies": { - "eslint": "^8.0.1" } }, - "node_modules/eslint-plugin-i18n-text": { + "eslint-plugin-i18n-text": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/eslint-plugin-i18n-text/-/eslint-plugin-i18n-text-1.0.1.tgz", "integrity": "sha512-3G3UetST6rdqhqW9SfcfzNYMpQXS7wNkJvp6dsXnjzGiku6Iu5hl3B0kmk6lIcFPwYjhQIY+tXVRtK9TlGT7RA==", - "dev": true, - "peerDependencies": { - "eslint": ">=5.0.0" - } + "dev": true }, - "node_modules/eslint-plugin-import": { + "eslint-plugin-import": { "version": "2.27.5", "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", "dev": true, - "dependencies": { + "requires": { "array-includes": "^3.1.6", "array.prototype.flat": "^1.3.1", "array.prototype.flatmap": "^1.3.1", @@ -4700,49 +3685,45 @@ "semver": "^6.3.0", "tsconfig-paths": "^3.14.1" }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" - } - }, - "node_modules/eslint-plugin-import/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-plugin-import/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eslint-plugin-import/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + } } }, - "node_modules/eslint-plugin-jsx-a11y": { + "eslint-plugin-jsx-a11y": { "version": "6.7.1", "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", "dev": true, - "dependencies": { + "requires": { "@babel/runtime": "^7.20.7", "aria-query": "^5.1.3", "array-includes": "^3.1.6", @@ -4760,289 +3741,164 @@ "object.fromentries": "^2.0.6", "semver": "^6.3.0" }, - "engines": { - "node": ">=4.0" - }, - "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" - } - }, - "node_modules/eslint-plugin-jsx-a11y/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" + "dependencies": { + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + } } }, - "node_modules/eslint-plugin-no-only-tests": { + "eslint-plugin-no-only-tests": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-3.1.0.tgz", "integrity": "sha512-Lf4YW/bL6Un1R6A76pRZyE1dl1vr31G/ev8UzIc/geCgFWyrKil8hVjYqWVKGB/UIGmb6Slzs9T0wNezdSVegw==", - "dev": true, - "engines": { - "node": ">=5.0.0" - } + "dev": true }, - "node_modules/eslint-plugin-prettier": { + "eslint-plugin-prettier": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", "dev": true, - "dependencies": { + "requires": { "prettier-linter-helpers": "^1.0.0" - }, - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "eslint": ">=7.28.0", - "prettier": ">=2.0.0" - }, - "peerDependenciesMeta": { - "eslint-config-prettier": { - "optional": true - } } }, - "node_modules/eslint-plugin-security": { + "eslint-plugin-security": { "version": "1.7.1", "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-1.7.1.tgz", "integrity": "sha512-sMStceig8AFglhhT2LqlU5r+/fn9OwsA72O5bBuQVTssPCdQAOQzL+oMn/ZcpeUY6KcNfLJArgcrsSULNjYYdQ==", "dev": true, - "dependencies": { + "requires": { "safe-regex": "^2.1.1" } }, - "node_modules/eslint-plugin-sonarjs": { + "eslint-plugin-sonarjs": { "version": "0.15.0", "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.15.0.tgz", "integrity": "sha512-LuxHdAe6VqSbi1phsUvNjbmXLuvlobmryQJJNyQYbdubCfz6K8tmgoqNiJPnz0pP2AbYDbtuPm0ajOMgMrC+dQ==", - "dev": true, - "engines": { - "node": ">=12" - }, - "peerDependencies": { - "eslint": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" - } + "dev": true }, - "node_modules/eslint-rule-documentation": { + "eslint-rule-documentation": { "version": "1.0.23", "resolved": "https://registry.npmjs.org/eslint-rule-documentation/-/eslint-rule-documentation-1.0.23.tgz", "integrity": "sha512-pWReu3fkohwyvztx/oQWWgld2iad25TfUdi6wvhhaDPIQjHU/pyvlKgXFw1kX31SQK2Nq9MH+vRDWB0ZLy8fYw==", - "dev": true, - "engines": { - "node": ">=4.0.0" - } + "dev": true }, - "node_modules/eslint-scope": { + "eslint-scope": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, - "dependencies": { + "requires": { "esrecurse": "^4.3.0", "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" } }, - "node_modules/eslint-visitor-keys": { + "eslint-visitor-keys": { "version": "3.4.1", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/eslint/node_modules/eslint-scope": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", - "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/eslint/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, - "node_modules/espree": { - "version": "9.5.2", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz", - "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==", + "espree": { + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.0.tgz", + "integrity": "sha512-1FH/IiruXZ84tpUlm0aCUEwMl2Ho5ilqVh0VvQXw+byAz/4SAciyHLlfmL5WYqsvD38oymdUwBss0LtK8m4s/A==", "dev": true, - "dependencies": { - "acorn": "^8.8.0", + "requires": { + "acorn": "^8.9.0", "acorn-jsx": "^5.3.2", "eslint-visitor-keys": "^3.4.1" }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "dependencies": { + "acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "dev": true + } } }, - "node_modules/esprima": { + "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, - "node_modules/esprima-fb": { - "version": "3001.1.0-dev-harmony-fb", - "resolved": "https://registry.npmjs.org/esprima-fb/-/esprima-fb-3001.0001.0000-dev-harmony-fb.tgz", - "integrity": "sha512-a3RFiCVBiy8KdO6q/C+8BQiP/sRk8XshBU3QHHDP8tNzjYwR3FKBOImu+PXfVhPoZL0JKtJLBAOWlDMCCFY8SQ==", - "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/esquery": { + "esquery": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", "dev": true, - "dependencies": { + "requires": { "estraverse": "^5.1.0" }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esquery/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" + "dependencies": { + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + } } }, - "node_modules/esrecurse": { + "esrecurse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, - "dependencies": { + "requires": { "estraverse": "^5.2.0" }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esrecurse/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" + "dependencies": { + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + } } }, - "node_modules/estraverse": { + "estraverse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true, - "engines": { - "node": ">=4.0" - } + "dev": true }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "esutils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-1.0.0.tgz", + "integrity": "sha512-x/iYH53X3quDwfHRz4y8rn4XcEwwCJeWsul9pF1zldMbGtgOtMNBEOuYWwB1EQlK2LRa1fev3YAgym/RElp5Cg==", + "dev": true }, - "node_modules/event-target-shim": { + "event-target-shim": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", - "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", - "engines": { - "node": ">=6" - } + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==" }, - "node_modules/events": { + "events": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/events/-/events-2.1.0.tgz", "integrity": "sha512-3Zmiobend8P9DjmKAty0Era4jV8oJ0yGYe2nJJAxgymF9+N8F2m0hhZiMoWtcfepExzNKZumFU3ksdQbInGWCg==", - "dev": true, - "engines": { - "node": ">=0.4.x" - } + "dev": true }, - "node_modules/evp_bytestokey": { + "evp_bytestokey": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", "dev": true, - "dependencies": { + "requires": { "md5.js": "^1.3.4", "safe-buffer": "^5.1.1" } }, - "node_modules/execa": { + "execa": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, - "dependencies": { + "requires": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", "human-signals": "^2.1.0", @@ -5052,2820 +3908,2204 @@ "onetime": "^5.1.2", "signal-exit": "^3.0.3", "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, - "node_modules/exit": { + "exit": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } + "dev": true }, - "node_modules/expand-range": { + "expand-range": { "version": "1.8.2", "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", "integrity": "sha512-AFASGfIlnIbkKPQwX1yHaDjFvh/1gyKJODme52V6IORh69uEYgZp0o9C+qsIGNVEiuuhQU0CSSl++Rlegg1qvA==", "dev": true, - "dependencies": { + "requires": { "fill-range": "^2.1.0" }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/expect": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/expect/-/expect-29.5.0.tgz", - "integrity": "sha512-yM7xqUrCO2JdpFo4XpM82t+PJBFybdqoQuJLDGeDX2ij8NZzqRHyu3Hp188/JX7SWqud+7t4MUdvcgGBICMHZg==", - "dev": true, - "dependencies": { - "@jest/expect-utils": "^29.5.0", - "jest-get-type": "^29.4.3", - "jest-matcher-utils": "^29.5.0", - "jest-message-util": "^29.5.0", - "jest-util": "^29.5.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/expect/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/expect/node_modules/diff-sequences": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", - "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/expect/node_modules/jest-diff": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.5.0.tgz", - "integrity": "sha512-LtxijLLZBduXnHSniy0WMdaHjmQnt3g5sa16W4p0HqukYTTsyTW3GD1q41TyGl5YFXj/5B2U6dlh5FM1LIMgxw==", - "dev": true, "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^29.4.3", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "fill-range": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", + "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", + "dev": true, + "requires": { + "is-number": "^2.1.0", + "isobject": "^2.0.0", + "randomatic": "^3.0.0", + "repeat-element": "^1.1.2", + "repeat-string": "^1.5.2" + } + }, + "is-number": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", + "integrity": "sha512-QUzH43Gfb9+5yckcrSA0VBDwEtDUchrk4F6tfJZQuNzDJbEDB9cZNzSfXGQ1jqmdDY/kl41lUOWM9syA8z8jlg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + } + } } }, - "node_modules/expect/node_modules/jest-matcher-utils": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.5.0.tgz", - "integrity": "sha512-lecRtgm/rjIK0CQ7LPQwzCs2VwW6WAahA55YBuI+xqmhm7LAaxokSB8C97yJeYyT+HvQkH741StzpU41wohhWw==", + "expect": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.6.1.tgz", + "integrity": "sha512-XEdDLonERCU1n9uR56/Stx9OqojaLAQtZf9PrCHH9Hl8YXiEIka3H4NXJ3NOIBmQJTg7+j7buh34PMHfJujc8g==", "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^29.5.0", + "requires": { + "@jest/expect-utils": "^29.6.1", + "@types/node": "*", "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" + "jest-matcher-utils": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1" }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/expect/node_modules/pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, "dependencies": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + }, + "diff-sequences": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", + "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", + "dev": true + }, + "jest-diff": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.1.tgz", + "integrity": "sha512-FsNCvinvl8oVxpNLttNQX7FAq7vR+gMDGj90tiP7siWw1UdakWUGqrylpsYrpvj908IYckm5Y0Q7azNAozU1Kg==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + } + }, + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true + }, + "jest-matcher-utils": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.6.1.tgz", + "integrity": "sha512-SLaztw9d2mfQQKHmJXKM0HCbl2PPVld/t9Xa6P9sgiExijviSp7TnZZpw2Fpt+OI3nwUO/slJbOfzfUMKKC5QA==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "jest-diff": "^29.6.1", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + } + }, + "pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + } } }, - "node_modules/expect/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/exposify": { + "exposify": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/exposify/-/exposify-0.5.0.tgz", "integrity": "sha512-SXS1oEW6VXYinz7RbTPUj+RhO3ZXuj2cmUTWTaO8KcWMcxLZF3wzjqSuaOW0EZYBoKooUM8DIkvfWWOMXTMQFQ==", "dev": true, - "dependencies": { + "requires": { "globo": "~1.1.0", "map-obj": "~1.0.1", "replace-requires": "~1.0.3", "through2": "~0.4.0", "transformify": "~0.1.1" - } - }, - "node_modules/exposify/node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "dev": true - }, - "node_modules/exposify/node_modules/object-keys": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz", - "integrity": "sha512-ncrLw+X55z7bkl5PnUvHwFK9FcGuFYo9gtjws2XtSzL+aZ8tm830P60WJ0dSmFVaSalWieW5MD7kEdnXda9yJw==", - "dev": true - }, - "node_modules/exposify/node_modules/readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==", - "dev": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "node_modules/exposify/node_modules/string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", - "dev": true - }, - "node_modules/exposify/node_modules/through2": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.4.2.tgz", - "integrity": "sha512-45Llu+EwHKtAZYTPPVn3XZHBgakWMN3rokhEv5hu596XP+cNgplMg+Gj+1nmAvj+L0K7+N49zBKx5rah5u0QIQ==", - "dev": true, - "dependencies": { - "readable-stream": "~1.0.17", - "xtend": "~2.1.1" - } - }, - "node_modules/exposify/node_modules/xtend": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-2.1.2.tgz", - "integrity": "sha512-vMNKzr2rHP9Dp/e1NQFnLQlwlhp9L/LfvnsVdHxN1f+uggyVI3i08uD14GPvCToPkdsRfyPqIyYGmIk58V98ZQ==", - "dev": true, - "dependencies": { - "object-keys": "~0.4.0" }, - "engines": { - "node": ">=0.4" + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", + "dev": true + }, + "object-keys": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz", + "integrity": "sha512-ncrLw+X55z7bkl5PnUvHwFK9FcGuFYo9gtjws2XtSzL+aZ8tm830P60WJ0dSmFVaSalWieW5MD7kEdnXda9yJw==", + "dev": true + }, + "readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", + "dev": true + }, + "through2": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-0.4.2.tgz", + "integrity": "sha512-45Llu+EwHKtAZYTPPVn3XZHBgakWMN3rokhEv5hu596XP+cNgplMg+Gj+1nmAvj+L0K7+N49zBKx5rah5u0QIQ==", + "dev": true, + "requires": { + "readable-stream": "~1.0.17", + "xtend": "~2.1.1" + } + }, + "xtend": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-2.1.2.tgz", + "integrity": "sha512-vMNKzr2rHP9Dp/e1NQFnLQlwlhp9L/LfvnsVdHxN1f+uggyVI3i08uD14GPvCToPkdsRfyPqIyYGmIk58V98ZQ==", + "dev": true, + "requires": { + "object-keys": "~0.4.0" + } + } } }, - "node_modules/extend-shallow": { + "extend-shallow": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", "dev": true, - "dependencies": { + "requires": { "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" } }, - "node_modules/extract-zip": { + "extract-zip": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", "dev": true, - "dependencies": { + "requires": { + "@types/yauzl": "^2.9.1", "debug": "^4.1.1", "get-stream": "^5.1.0", "yauzl": "^2.10.0" }, - "bin": { - "extract-zip": "cli.js" - }, - "engines": { - "node": ">= 10.17.0" - }, - "optionalDependencies": { - "@types/yauzl": "^2.9.1" - } - }, - "node_modules/extract-zip/node_modules/get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dev": true, "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + } } }, - "node_modules/fast-deep-equal": { + "fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, - "node_modules/fast-diff": { + "fast-diff": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", "dev": true }, - "node_modules/fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "fast-glob": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.0.tgz", + "integrity": "sha512-ChDuvbOypPuNjO8yIDf36x7BlZX1smcUMTTcyoIjycexOxd6DFsKsg21qVBzEmr3G7fUKIRy2/psii+CIUt7FA==", "dev": true, - "dependencies": { + "requires": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" } }, - "node_modules/fast-json-stable-stringify": { + "fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" }, - "node_modules/fast-levenshtein": { + "fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "dev": true }, - "node_modules/fast-memoize": { + "fast-memoize": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz", "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==" }, - "node_modules/fast-safe-stringify": { + "fast-safe-stringify": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", "dev": true }, - "node_modules/fastest-levenshtein": { + "fastest-levenshtein": { "version": "1.0.16", "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", - "dev": true, - "engines": { - "node": ">= 4.9.1" - } + "dev": true }, - "node_modules/fastq": { + "fastq": { "version": "1.15.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", "dev": true, - "dependencies": { + "requires": { "reusify": "^1.0.4" } }, - "node_modules/fb-watchman": { + "fb-watchman": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", "dev": true, - "dependencies": { + "requires": { "bser": "2.1.1" } }, - "node_modules/fd-slicer": { + "fd-slicer": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", "dev": true, - "dependencies": { + "requires": { "pend": "~1.2.0" } }, - "node_modules/file-entry-cache": { + "file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", "dev": true, - "dependencies": { + "requires": { "flat-cache": "^3.0.4" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/fill-range": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", - "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", "dev": true, - "dependencies": { - "is-number": "^2.1.0", - "isobject": "^2.0.0", - "randomatic": "^3.0.0", - "repeat-element": "^1.1.2", - "repeat-string": "^1.5.2" - }, - "engines": { - "node": ">=0.10.0" + "requires": { + "to-regex-range": "^5.0.1" } }, - "node_modules/find-parent-dir": { + "find-parent-dir": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/find-parent-dir/-/find-parent-dir-0.3.1.tgz", "integrity": "sha512-o4UcykWV/XN9wm+jMEtWLPlV8RXCZnMhQI6F6OdHeSez7iiJWePw8ijOlskJZMsaQoGR/b7dH6lO02HhaTN7+A==", "dev": true }, - "node_modules/find-up": { + "find-up": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, - "dependencies": { + "requires": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/flat-cache": { + "flat-cache": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", "dev": true, - "dependencies": { + "requires": { "flatted": "^3.1.0", "rimraf": "^3.0.2" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" } }, - "node_modules/flatted": { + "flatted": { "version": "3.2.7", "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", "dev": true }, - "node_modules/for-each": { + "for-each": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dependencies": { + "requires": { "is-callable": "^1.1.3" } }, - "node_modules/for-in": { + "for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "dev": true }, - "node_modules/form-data": { + "form-data": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", "dev": true, - "dependencies": { + "requires": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" } }, - "node_modules/fs-constants": { + "fs-constants": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", "dev": true }, - "node_modules/fs.realpath": { + "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", "dev": true }, - "node_modules/fsevents": { + "fsevents": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } + "optional": true }, - "node_modules/function-bind": { + "function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" }, - "node_modules/function.prototype.name": { + "function.prototype.name": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", - "dependencies": { + "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.3", "es-abstract": "^1.19.0", "functions-have-names": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/functions-have-names": { + "functions-have-names": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==" }, - "node_modules/gensync": { + "gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } + "dev": true }, - "node_modules/get-assigned-identifiers": { + "get-assigned-identifiers": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz", "integrity": "sha512-mBBwmeGTrxEMO4pMaaf/uUEFHnYtwr8FTe8Y/mer4rcV/bye0qGm6pw1bGZFGStxC5O76c5ZAVBGnqHmOaJpdQ==", "dev": true }, - "node_modules/get-caller-file": { + "get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, - "engines": { - "node": "6.* || 8.* || >= 10.*" - } + "dev": true }, - "node_modules/get-intrinsic": { + "get-intrinsic": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", - "dependencies": { + "requires": { "function-bind": "^1.1.1", "has": "^1.0.3", "has-proto": "^1.0.1", "has-symbols": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/get-package-type": { + "get-package-type": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", - "dev": true, - "engines": { - "node": ">=8.0.0" - } + "dev": true }, - "node_modules/get-stream": { + "get-stream": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "dev": true }, - "node_modules/get-symbol-description": { + "get-symbol-description": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "dependencies": { + "requires": { "call-bind": "^1.0.2", "get-intrinsic": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/glob": { + "glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "dev": true, - "dependencies": { + "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" + "requires": { + "is-glob": "^4.0.1" } }, - "node_modules/glob-to-regexp": { + "glob-to-regexp": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", "dev": true }, - "node_modules/globals": { + "globals": { "version": "13.20.0", "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", "dev": true, - "dependencies": { + "requires": { "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/globalthis": { + "globalthis": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", - "dependencies": { + "requires": { "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/globby": { + "globby": { "version": "11.1.0", "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dev": true, - "dependencies": { + "requires": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", "fast-glob": "^3.2.9", "ignore": "^5.2.0", "merge2": "^1.4.1", "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/globo": { + "globo": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/globo/-/globo-1.1.0.tgz", "integrity": "sha512-9kacJpRuOo2IPxzYdogGZKnREZXMLs7P2/gaeHxynuL7kmxdB9o4EVtpd69f81CeUFWmZSxj1heZFEXQDTkaLQ==", "dev": true, - "dependencies": { + "requires": { "accessory": "~1.1.0", "is-defined": "~1.0.0", "ternary": "~1.0.0" - }, - "engines": { - "node": ">=0.10.0" } }, - "node_modules/gopd": { + "gopd": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dependencies": { + "requires": { "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/graceful-fs": { + "graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true }, - "node_modules/grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", - "dev": true - }, - "node_modules/graphemer": { + "graphemer": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "dev": true }, - "node_modules/gray-matter": { + "gray-matter": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-2.1.1.tgz", "integrity": "sha512-vbmvP1Fe/fxuT2QuLVcqb2BfK7upGhhbLIt9/owWEvPYrZZEkelLcq2HqzxosV+PQ67dUFLaAeNpH7C4hhICAA==", "dev": true, - "dependencies": { + "requires": { "ansi-red": "^0.1.1", "coffee-script": "^1.12.4", "extend-shallow": "^2.0.1", "js-yaml": "^3.8.1", "toml": "^2.3.2" }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/gray-matter/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/gray-matter/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + } } }, - "node_modules/gulp-header": { + "gulp-header": { "version": "1.8.12", "resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.12.tgz", "integrity": "sha512-lh9HLdb53sC7XIZOYzTXM4lFuXElv3EVkSDhsd7DoJBj7hm+Ni7D3qYbb+Rr8DuM8nRanBvkVO9d7askreXGnQ==", - "deprecated": "Removed event-stream from gulp-header", "dev": true, - "dependencies": { + "requires": { "concat-with-sourcemaps": "*", "lodash.template": "^4.4.0", "through2": "^2.0.0" } }, - "node_modules/gzip-size": { + "gzip-size": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", "dev": true, - "dependencies": { + "requires": { "duplexer": "^0.1.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/has": { + "has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dependencies": { + "requires": { "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" } }, - "node_modules/has-bigints": { + "has-bigints": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==" }, - "node_modules/has-flag": { + "has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } + "dev": true }, - "node_modules/has-property-descriptors": { + "has-property-descriptors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "dependencies": { + "requires": { "get-intrinsic": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-proto": { + "has-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==" }, - "node_modules/has-require": { + "has-require": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/has-require/-/has-require-1.2.2.tgz", "integrity": "sha512-JHMVoV2TG3LEFw/8UjxXJzCRGdOHJzzAXft7BafERh2rdPYZcS5N6Twv7Q8yLy9mciKsVBkXmpWSuLp5GUXNng==", "dev": true, - "dependencies": { + "requires": { "escape-string-regexp": "^1.0.3" } }, - "node_modules/has-require/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/has-symbols": { + "has-symbols": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" }, - "node_modules/has-tostringtag": { + "has-tostringtag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dependencies": { + "requires": { "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/hash-base": { + "hash-base": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==", "dev": true, - "dependencies": { + "requires": { "inherits": "^2.0.4", "readable-stream": "^3.6.0", "safe-buffer": "^5.2.0" }, - "engines": { - "node": ">=4" - } - }, - "node_modules/hash-base/node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" + "readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + } } }, - "node_modules/hash.js": { + "hash.js": { "version": "1.1.7", "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", "dev": true, - "dependencies": { + "requires": { "inherits": "^2.0.3", "minimalistic-assert": "^1.0.1" } }, - "node_modules/hmac-drbg": { + "hmac-drbg": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", "dev": true, - "dependencies": { + "requires": { "hash.js": "^1.0.3", "minimalistic-assert": "^1.0.0", "minimalistic-crypto-utils": "^1.0.1" } }, - "node_modules/html-escaper": { + "html-escaper": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true }, - "node_modules/htmlescape": { + "htmlescape": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/htmlescape/-/htmlescape-1.1.1.tgz", "integrity": "sha512-eVcrzgbR4tim7c7soKQKtxa/kQM4TzjnlU83rcZ9bHU6t31ehfV7SktN6McWgwPWg+JYMA/O3qpGxBvFq1z2Jg==", - "dev": true, - "engines": { - "node": ">=0.10" - } + "dev": true }, - "node_modules/https-browserify": { + "https-browserify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", "integrity": "sha512-J+FkSdyD+0mA0N+81tMotaRMfSL9SGi+xpD3T6YApKsc3bGSXJlfXri3VyFOeYkfLRQisDk1W+jIFFKBeUBbBg==", "dev": true }, - "node_modules/https-proxy-agent": { + "https-proxy-agent": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", "dev": true, - "dependencies": { + "requires": { "agent-base": "6", "debug": "4" - }, - "engines": { - "node": ">= 6" } }, - "node_modules/human-signals": { + "human-signals": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true, - "engines": { - "node": ">=10.17.0" - } + "dev": true }, - "node_modules/ieee754": { + "ieee754": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] + "dev": true }, - "node_modules/ignore": { + "ignore": { "version": "5.2.4", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", - "dev": true, - "engines": { - "node": ">= 4" - } + "dev": true }, - "node_modules/immer": { + "immer": { "version": "9.0.21", "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", - "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/immer" - } + "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==" }, - "node_modules/import-fresh": { + "import-fresh": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", "dev": true, - "dependencies": { + "requires": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/import-local": { + "import-local": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", "dev": true, - "dependencies": { + "requires": { "pkg-dir": "^4.2.0", "resolve-cwd": "^3.0.0" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/imurmurhash": { + "imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "engines": { - "node": ">=0.8.19" - } + "dev": true }, - "node_modules/inflight": { + "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "dev": true, - "dependencies": { + "requires": { "once": "^1.3.0", "wrappy": "1" } }, - "node_modules/inherits": { + "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, - "node_modules/inline-source-map": { + "inline-source-map": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.6.2.tgz", "integrity": "sha512-0mVWSSbNDvedDWIN4wxLsdPM4a7cIPcpyMxj3QZ406QRwQ6ePGB1YIHxVPjqpcUGbWQ5C+nHTwGNWAGvt7ggVA==", "dev": true, - "dependencies": { + "requires": { "source-map": "~0.5.3" } }, - "node_modules/insert-module-globals": { + "insert-module-globals": { "version": "7.2.1", "resolved": "https://registry.npmjs.org/insert-module-globals/-/insert-module-globals-7.2.1.tgz", "integrity": "sha512-ufS5Qq9RZN+Bu899eA9QCAYThY+gGW7oRkmb0vC93Vlyu/CFGcH0OYPEjVkDXA5FEbTt1+VWzdoOD3Ny9N+8tg==", "dev": true, - "dependencies": { + "requires": { + "JSONStream": "^1.0.3", "acorn-node": "^1.5.2", "combine-source-map": "^0.8.0", "concat-stream": "^1.6.1", "is-buffer": "^1.1.0", - "JSONStream": "^1.0.3", "path-is-absolute": "^1.0.1", "process": "~0.11.0", "through2": "^2.0.0", "undeclared-identifiers": "^1.1.2", "xtend": "^4.0.0" - }, - "bin": { - "insert-module-globals": "bin/cmd.js" } }, - "node_modules/internal-slot": { + "internal-slot": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", - "dependencies": { + "requires": { "get-intrinsic": "^1.2.0", "has": "^1.0.3", "side-channel": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" } }, - "node_modules/interpret": { + "interpret": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", - "dev": true, - "engines": { - "node": ">= 0.10" - } + "dev": true }, - "node_modules/is-array-buffer": { + "is-array-buffer": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", - "dependencies": { + "requires": { "call-bind": "^1.0.2", "get-intrinsic": "^1.2.0", "is-typed-array": "^1.1.10" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-arrayish": { + "is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", "dev": true }, - "node_modules/is-bigint": { + "is-bigint": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dependencies": { + "requires": { "has-bigints": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-boolean-object": { + "is-boolean-object": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dependencies": { + "requires": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-buffer": { + "is-buffer": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", "dev": true }, - "node_modules/is-callable": { + "is-callable": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==" }, - "node_modules/is-core-module": { + "is-core-module": { "version": "2.12.1", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", "dev": true, - "dependencies": { + "requires": { "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-date-object": { + "is-date-object": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dependencies": { + "requires": { "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-defined": { + "is-defined": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-defined/-/is-defined-1.0.0.tgz", "integrity": "sha512-/drGiPCBGsJDhtnLkdcNl8QtEo9ddV10m0Y7wzkopIQM4u91wXhe84pZSH6RLukO2uJDtQoaAr1XoP0ilwsYzg==", "dev": true }, - "node_modules/is-extendable": { + "is-extendable": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "dev": true }, - "node_modules/is-extglob": { + "is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "dev": true }, - "node_modules/is-fullwidth-code-point": { + "is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } + "dev": true }, - "node_modules/is-generator-fn": { + "is-generator-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", - "dev": true, - "engines": { - "node": ">=6" - } + "dev": true }, - "node_modules/is-glob": { + "is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, - "dependencies": { + "requires": { "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" } }, - "node_modules/is-negative-zero": { + "is-negative-zero": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==" }, - "node_modules/is-number": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha512-QUzH43Gfb9+5yckcrSA0VBDwEtDUchrk4F6tfJZQuNzDJbEDB9cZNzSfXGQ1jqmdDY/kl41lUOWM9syA8z8jlg==", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true }, - "node_modules/is-number-object": { + "is-number-object": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dependencies": { + "requires": { "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-path-inside": { + "is-path-inside": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true, - "engines": { - "node": ">=8" - } + "dev": true }, - "node_modules/is-plain-object": { + "is-plain-object": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", "dev": true, - "dependencies": { + "requires": { "isobject": "^3.0.1" }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-plain-object/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", - "dev": true, - "engines": { - "node": ">=0.10.0" + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true + } } }, - "node_modules/is-regex": { + "is-regex": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dependencies": { + "requires": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-shared-array-buffer": { + "is-shared-array-buffer": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "dependencies": { + "requires": { "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-stream": { + "is-stream": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "dev": true }, - "node_modules/is-string": { + "is-string": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dependencies": { + "requires": { "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-symbol": { + "is-symbol": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dependencies": { + "requires": { "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-typed-array": { + "is-typed-array": { "version": "1.1.10", "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", - "dependencies": { + "requires": { "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", "for-each": "^0.3.3", "gopd": "^1.0.1", "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-weakref": { + "is-weakref": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dependencies": { + "requires": { "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/isarray": { + "isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", "dev": true }, - "node_modules/isexe": { + "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true }, - "node_modules/isobject": { + "isobject": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", "dev": true, - "dependencies": { + "requires": { "isarray": "1.0.0" - }, - "engines": { - "node": ">=0.10.0" } }, - "node_modules/istanbul-lib-coverage": { + "istanbul-lib-coverage": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", - "dev": true, - "engines": { - "node": ">=8" - } + "dev": true }, - "node_modules/istanbul-lib-instrument": { + "istanbul-lib-instrument": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", "dev": true, - "dependencies": { + "requires": { "@babel/core": "^7.12.3", "@babel/parser": "^7.14.7", "@istanbuljs/schema": "^0.1.2", "istanbul-lib-coverage": "^3.2.0", "semver": "^6.3.0" }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" + "dependencies": { + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + } } }, - "node_modules/istanbul-lib-report": { + "istanbul-lib-report": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", "dev": true, - "dependencies": { + "requires": { "istanbul-lib-coverage": "^3.0.0", "make-dir": "^3.0.0", "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=8" } }, - "node_modules/istanbul-lib-source-maps": { + "istanbul-lib-source-maps": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", "dev": true, - "dependencies": { + "requires": { "debug": "^4.1.1", "istanbul-lib-coverage": "^3.0.0", "source-map": "^0.6.1" }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-lib-source-maps/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } } }, - "node_modules/istanbul-reports": { + "istanbul-reports": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", "dev": true, - "dependencies": { + "requires": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" - }, - "engines": { - "node": ">=8" } }, - "node_modules/jest": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest/-/jest-29.5.0.tgz", - "integrity": "sha512-juMg3he2uru1QoXX078zTa7pO85QyB9xajZc6bU+d9yEGwrKX6+vGmJQ3UdVZsvTEUARIdObzH68QItim6OSSQ==", + "jest": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.6.1.tgz", + "integrity": "sha512-Nirw5B4nn69rVUZtemCQhwxOBhm0nsp3hmtF4rzCeWD7BkjAXRIji7xWQfnTNbz9g0aVsBX6aZK3n+23LM6uDw==", "dev": true, - "dependencies": { - "@jest/core": "^29.5.0", - "@jest/types": "^29.5.0", + "requires": { + "@jest/core": "^29.6.1", + "@jest/types": "^29.6.1", "import-local": "^3.0.2", - "jest-cli": "^29.5.0" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true + "jest-cli": "^29.6.1" + }, + "dependencies": { + "jest-cli": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.6.1.tgz", + "integrity": "sha512-607dSgTA4ODIN6go9w6xY3EYkyPFGicx51a69H7yfvt7lN53xNswEVLovq+E77VsTRi5fWprLH0yl4DJgE8Ing==", + "dev": true, + "requires": { + "@jest/core": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/types": "^29.6.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "import-local": "^3.0.2", + "jest-config": "^29.6.1", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", + "prompts": "^2.0.1", + "yargs": "^17.3.1" + } } } }, - "node_modules/jest-changed-files": { + "jest-changed-files": { "version": "29.5.0", "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.5.0.tgz", "integrity": "sha512-IFG34IUMUaNBIxjQXF/iu7g6EcdMrGRRxaUSw92I/2g2YC6vCdTltl4nHvt7Ci5nSJwXIkCu8Ka1DKF+X7Z1Ag==", "dev": true, - "dependencies": { + "requires": { "execa": "^5.0.0", "p-limit": "^3.1.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-circus": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.5.0.tgz", - "integrity": "sha512-gq/ongqeQKAplVxqJmbeUOJJKkW3dDNPY8PjhJ5G0lBRvu0e3EWGxGy5cI4LAGA7gV2UHCtWBI4EMXK8c9nQKA==", + "jest-circus": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.6.1.tgz", + "integrity": "sha512-tPbYLEiBU4MYAL2XoZme/bgfUeotpDBd81lgHLCbDZZFaGmECk0b+/xejPFtmiBP87GgP/y4jplcRpbH+fgCzQ==", "dev": true, - "dependencies": { - "@jest/environment": "^29.5.0", - "@jest/expect": "^29.5.0", - "@jest/test-result": "^29.5.0", - "@jest/types": "^29.5.0", + "requires": { + "@jest/environment": "^29.6.1", + "@jest/expect": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/types": "^29.6.1", "@types/node": "*", "chalk": "^4.0.0", "co": "^4.6.0", "dedent": "^0.7.0", "is-generator-fn": "^2.0.0", - "jest-each": "^29.5.0", - "jest-matcher-utils": "^29.5.0", - "jest-message-util": "^29.5.0", - "jest-runtime": "^29.5.0", - "jest-snapshot": "^29.5.0", - "jest-util": "^29.5.0", + "jest-each": "^29.6.1", + "jest-matcher-utils": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-runtime": "^29.6.1", + "jest-snapshot": "^29.6.1", + "jest-util": "^29.6.1", "p-limit": "^3.1.0", - "pretty-format": "^29.5.0", + "pretty-format": "^29.6.1", "pure-rand": "^6.0.0", "slash": "^3.0.0", "stack-utils": "^2.0.3" }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-circus/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-circus/node_modules/diff-sequences": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", - "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-circus/node_modules/jest-diff": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.5.0.tgz", - "integrity": "sha512-LtxijLLZBduXnHSniy0WMdaHjmQnt3g5sa16W4p0HqukYTTsyTW3GD1q41TyGl5YFXj/5B2U6dlh5FM1LIMgxw==", - "dev": true, "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^29.4.3", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-circus/node_modules/jest-matcher-utils": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.5.0.tgz", - "integrity": "sha512-lecRtgm/rjIK0CQ7LPQwzCs2VwW6WAahA55YBuI+xqmhm7LAaxokSB8C97yJeYyT+HvQkH741StzpU41wohhWw==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^29.5.0", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-circus/node_modules/pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-circus/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/jest-cli": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.5.0.tgz", - "integrity": "sha512-L1KcP1l4HtfwdxXNFCL5bmUbLQiKrakMUriBEcc1Vfz6gx31ORKdreuWvmQVBit+1ss9NNR3yxjwfwzZNdQXJw==", - "dev": true, - "dependencies": { - "@jest/core": "^29.5.0", - "@jest/test-result": "^29.5.0", - "@jest/types": "^29.5.0", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "import-local": "^3.0.2", - "jest-config": "^29.5.0", - "jest-util": "^29.5.0", - "jest-validate": "^29.5.0", - "prompts": "^2.0.1", - "yargs": "^17.3.1" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + }, + "diff-sequences": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", + "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", + "dev": true + }, + "jest-diff": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.1.tgz", + "integrity": "sha512-FsNCvinvl8oVxpNLttNQX7FAq7vR+gMDGj90tiP7siWw1UdakWUGqrylpsYrpvj908IYckm5Y0Q7azNAozU1Kg==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + } + }, + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true + }, + "jest-matcher-utils": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.6.1.tgz", + "integrity": "sha512-SLaztw9d2mfQQKHmJXKM0HCbl2PPVld/t9Xa6P9sgiExijviSp7TnZZpw2Fpt+OI3nwUO/slJbOfzfUMKKC5QA==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "jest-diff": "^29.6.1", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + } + }, + "pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true } } }, - "node_modules/jest-config": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.5.0.tgz", - "integrity": "sha512-kvDUKBnNJPNBmFFOhDbm59iu1Fii1Q6SxyhXfvylq3UTHbg6o7j/g8k2dZyXWLvfdKB1vAPxNZnMgtKJcmu3kA==", + "jest-config": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.6.1.tgz", + "integrity": "sha512-XdjYV2fy2xYixUiV2Wc54t3Z4oxYPAELUzWnV6+mcbq0rh742X2p52pii5A3oeRzYjLnQxCsZmp0qpI6klE2cQ==", "dev": true, - "dependencies": { + "requires": { "@babel/core": "^7.11.6", - "@jest/test-sequencer": "^29.5.0", - "@jest/types": "^29.5.0", - "babel-jest": "^29.5.0", + "@jest/test-sequencer": "^29.6.1", + "@jest/types": "^29.6.1", + "babel-jest": "^29.6.1", "chalk": "^4.0.0", "ci-info": "^3.2.0", "deepmerge": "^4.2.2", "glob": "^7.1.3", "graceful-fs": "^4.2.9", - "jest-circus": "^29.5.0", - "jest-environment-node": "^29.5.0", + "jest-circus": "^29.6.1", + "jest-environment-node": "^29.6.1", "jest-get-type": "^29.4.3", "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.5.0", - "jest-runner": "^29.5.0", - "jest-util": "^29.5.0", - "jest-validate": "^29.5.0", + "jest-resolve": "^29.6.1", + "jest-runner": "^29.6.1", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", "micromatch": "^4.0.4", "parse-json": "^5.2.0", - "pretty-format": "^29.5.0", + "pretty-format": "^29.6.1", "slash": "^3.0.0", "strip-json-comments": "^3.1.1" }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@types/node": "*", - "ts-node": ">=9.0.0" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true }, - "ts-node": { - "optional": true + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true + }, + "pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true } } }, - "node_modules/jest-config/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-config/node_modules/pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-config/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/jest-diff": { + "jest-diff": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", "dev": true, - "dependencies": { + "requires": { "chalk": "^4.0.0", "diff-sequences": "^27.5.1", "jest-get-type": "^27.5.1", "pretty-format": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-diff/node_modules/jest-get-type": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/jest-docblock": { + "jest-docblock": { "version": "29.4.3", "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.4.3.tgz", "integrity": "sha512-fzdTftThczeSD9nZ3fzA/4KkHtnmllawWrXO69vtI+L9WjEIuXWs4AmyME7lN5hU7dB0sHhuPfcKofRsUb/2Fg==", "dev": true, - "dependencies": { + "requires": { "detect-newline": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-each": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.5.0.tgz", - "integrity": "sha512-HM5kIJ1BTnVt+DQZ2ALp3rzXEl+g726csObrW/jpEGl+CDSSQpOJJX2KE/vEg8cxcMXdyEPu6U4QX5eruQv5hA==", + "jest-each": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.6.1.tgz", + "integrity": "sha512-n5eoj5eiTHpKQCAVcNTT7DRqeUmJ01hsAL0Q1SMiBHcBcvTKDELixQOGMCpqhbIuTcfC4kMfSnpmDqRgRJcLNQ==", "dev": true, - "dependencies": { - "@jest/types": "^29.5.0", + "requires": { + "@jest/types": "^29.6.1", "chalk": "^4.0.0", "jest-get-type": "^29.4.3", - "jest-util": "^29.5.0", - "pretty-format": "^29.5.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-each/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" + "jest-util": "^29.6.1", + "pretty-format": "^29.6.1" }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-each/node_modules/pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, "dependencies": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + }, + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true + }, + "pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + } } }, - "node_modules/jest-each/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/jest-environment-node": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.5.0.tgz", - "integrity": "sha512-ExxuIK/+yQ+6PRGaHkKewYtg6hto2uGCgvKdb2nfJfKXgZ17DfXjvbZ+jA1Qt9A8EQSfPnt5FKIfnOO3u1h9qw==", + "jest-environment-node": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.6.1.tgz", + "integrity": "sha512-ZNIfAiE+foBog24W+2caIldl4Irh8Lx1PUhg/GZ0odM1d/h2qORAsejiFc7zb+SEmYPn1yDZzEDSU5PmDkmVLQ==", "dev": true, - "dependencies": { - "@jest/environment": "^29.5.0", - "@jest/fake-timers": "^29.5.0", - "@jest/types": "^29.5.0", + "requires": { + "@jest/environment": "^29.6.1", + "@jest/fake-timers": "^29.6.1", + "@jest/types": "^29.6.1", "@types/node": "*", - "jest-mock": "^29.5.0", - "jest-util": "^29.5.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "jest-mock": "^29.6.1", + "jest-util": "^29.6.1" } }, - "node_modules/jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } + "jest-get-type": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", + "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", + "dev": true }, - "node_modules/jest-haste-map": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.5.0.tgz", - "integrity": "sha512-IspOPnnBro8YfVYSw6yDRKh/TiCdRngjxeacCps1cQ9cgVN6+10JUcuJ1EabrgYLOATsIAigxA0rLR9x/YlrSA==", + "jest-haste-map": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.6.1.tgz", + "integrity": "sha512-0m7f9PZXxOCk1gRACiVgX85knUKPKLPg4oRCjLoqIm9brTHXaorMA0JpmtmVkQiT8nmXyIVoZd/nnH1cfC33ig==", "dev": true, - "dependencies": { - "@jest/types": "^29.5.0", + "requires": { + "@jest/types": "^29.6.1", "@types/graceful-fs": "^4.1.3", "@types/node": "*", "anymatch": "^3.0.3", "fb-watchman": "^2.0.0", + "fsevents": "^2.3.2", "graceful-fs": "^4.2.9", "jest-regex-util": "^29.4.3", - "jest-util": "^29.5.0", - "jest-worker": "^29.5.0", + "jest-util": "^29.6.1", + "jest-worker": "^29.6.1", "micromatch": "^4.0.4", "walker": "^1.0.8" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "optionalDependencies": { - "fsevents": "^2.3.2" } }, - "node_modules/jest-leak-detector": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.5.0.tgz", - "integrity": "sha512-u9YdeeVnghBUtpN5mVxjID7KbkKE1QU4f6uUwuxiY0vYRi9BUCLKlPEZfDGR67ofdFmDz9oPAy2G92Ujrntmow==", + "jest-leak-detector": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.6.1.tgz", + "integrity": "sha512-OrxMNyZirpOEwkF3UHnIkAiZbtkBWiye+hhBweCHkVbCgyEy71Mwbb5zgeTNYWJBi1qgDVfPC1IwO9dVEeTLwQ==", "dev": true, - "dependencies": { + "requires": { "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" + "pretty-format": "^29.6.1" }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-leak-detector/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-leak-detector/node_modules/pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, "dependencies": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + }, + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true + }, + "pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + } } }, - "node_modules/jest-leak-detector/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/jest-matcher-utils": { + "jest-matcher-utils": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", "dev": true, - "dependencies": { + "requires": { "chalk": "^4.0.0", "jest-diff": "^27.5.1", "jest-get-type": "^27.5.1", "pretty-format": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/jest-matcher-utils/node_modules/jest-get-type": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", + "jest-message-util": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.6.1.tgz", + "integrity": "sha512-KoAW2zAmNSd3Gk88uJ56qXUWbFk787QKmjjJVOjtGFmmGSZgDBrlIL4AfQw1xyMYPNVD7dNInfIbur9B2rd/wQ==", "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-message-util": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.5.0.tgz", - "integrity": "sha512-Kijeg9Dag6CKtIDA7O21zNTACqD5MD/8HfIV8pdD94vFyFuer52SigdC3IQMhab3vACxXMiFk+yMHNdbqtyTGA==", - "dev": true, - "dependencies": { + "requires": { "@babel/code-frame": "^7.12.13", - "@jest/types": "^29.5.0", + "@jest/types": "^29.6.1", "@types/stack-utils": "^2.0.0", "chalk": "^4.0.0", "graceful-fs": "^4.2.9", "micromatch": "^4.0.4", - "pretty-format": "^29.5.0", + "pretty-format": "^29.6.1", "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-message-util/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" + "stack-utils": "^2.0.3" }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-message-util/node_modules/pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, "dependencies": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + }, + "pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + } } }, - "node_modules/jest-message-util/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/jest-mock": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.5.0.tgz", - "integrity": "sha512-GqOzvdWDE4fAV2bWQLQCkujxYWL7RxjCnj71b5VhDAGOevB3qj3Ovg26A5NI84ZpODxyzaozXLOh2NCgkbvyaw==", + "jest-mock": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.6.1.tgz", + "integrity": "sha512-brovyV9HBkjXAEdRooaTQK42n8usKoSRR3gihzUpYeV/vwqgSoNfrksO7UfSACnPmxasO/8TmHM3w9Hp3G1dgw==", "dev": true, - "dependencies": { - "@jest/types": "^29.5.0", + "requires": { + "@jest/types": "^29.6.1", "@types/node": "*", - "jest-util": "^29.5.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "jest-util": "^29.6.1" } }, - "node_modules/jest-pnp-resolver": { + "jest-pnp-resolver": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", - "dev": true, - "engines": { - "node": ">=6" - }, - "peerDependencies": { - "jest-resolve": "*" - }, - "peerDependenciesMeta": { - "jest-resolve": { - "optional": true - } - } + "dev": true }, - "node_modules/jest-regex-util": { + "jest-regex-util": { "version": "29.4.3", "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.4.3.tgz", "integrity": "sha512-O4FglZaMmWXbGHSQInfXewIsd1LMn9p3ZXB/6r4FOkyhX2/iP/soMG98jGvk/A3HAN78+5VWcBGO0BJAPRh4kg==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } + "dev": true }, - "node_modules/jest-resolve": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.5.0.tgz", - "integrity": "sha512-1TzxJ37FQq7J10jPtQjcc+MkCkE3GBpBecsSUWJ0qZNJpmg6m0D9/7II03yJulm3H/fvVjgqLh/k2eYg+ui52w==", + "jest-resolve": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.6.1.tgz", + "integrity": "sha512-AeRkyS8g37UyJiP9w3mmI/VXU/q8l/IH52vj/cDAyScDcemRbSBhfX/NMYIGilQgSVwsjxrCHf3XJu4f+lxCMg==", "dev": true, - "dependencies": { + "requires": { "chalk": "^4.0.0", "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.5.0", + "jest-haste-map": "^29.6.1", "jest-pnp-resolver": "^1.2.2", - "jest-util": "^29.5.0", - "jest-validate": "^29.5.0", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", "resolve": "^1.20.0", "resolve.exports": "^2.0.0", "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-resolve-dependencies": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.5.0.tgz", - "integrity": "sha512-sjV3GFr0hDJMBpYeUuGduP+YeCRbd7S/ck6IvL3kQ9cpySYKqcqhdLLC2rFwrcL7tz5vYibomBrsFYWkIGGjOg==", + "jest-resolve-dependencies": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.6.1.tgz", + "integrity": "sha512-BbFvxLXtcldaFOhNMXmHRWx1nXQO5LoXiKSGQcA1LxxirYceZT6ch8KTE1bK3X31TNG/JbkI7OkS/ABexVahiw==", "dev": true, - "dependencies": { + "requires": { "jest-regex-util": "^29.4.3", - "jest-snapshot": "^29.5.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "jest-snapshot": "^29.6.1" } }, - "node_modules/jest-runner": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.5.0.tgz", - "integrity": "sha512-m7b6ypERhFghJsslMLhydaXBiLf7+jXy8FwGRHO3BGV1mcQpPbwiqiKUR2zU2NJuNeMenJmlFZCsIqzJCTeGLQ==", + "jest-runner": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.6.1.tgz", + "integrity": "sha512-tw0wb2Q9yhjAQ2w8rHRDxteryyIck7gIzQE4Reu3JuOBpGp96xWgF0nY8MDdejzrLCZKDcp8JlZrBN/EtkQvPQ==", "dev": true, - "dependencies": { - "@jest/console": "^29.5.0", - "@jest/environment": "^29.5.0", - "@jest/test-result": "^29.5.0", - "@jest/transform": "^29.5.0", - "@jest/types": "^29.5.0", + "requires": { + "@jest/console": "^29.6.1", + "@jest/environment": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", "@types/node": "*", "chalk": "^4.0.0", "emittery": "^0.13.1", "graceful-fs": "^4.2.9", "jest-docblock": "^29.4.3", - "jest-environment-node": "^29.5.0", - "jest-haste-map": "^29.5.0", - "jest-leak-detector": "^29.5.0", - "jest-message-util": "^29.5.0", - "jest-resolve": "^29.5.0", - "jest-runtime": "^29.5.0", - "jest-util": "^29.5.0", - "jest-watcher": "^29.5.0", - "jest-worker": "^29.5.0", + "jest-environment-node": "^29.6.1", + "jest-haste-map": "^29.6.1", + "jest-leak-detector": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-resolve": "^29.6.1", + "jest-runtime": "^29.6.1", + "jest-util": "^29.6.1", + "jest-watcher": "^29.6.1", + "jest-worker": "^29.6.1", "p-limit": "^3.1.0", "source-map-support": "0.5.13" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-runtime": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.5.0.tgz", - "integrity": "sha512-1Hr6Hh7bAgXQP+pln3homOiEZtCDZFqwmle7Ew2j8OlbkIu6uE3Y/etJQG8MLQs3Zy90xrp2C0BRrtPHG4zryw==", + "jest-runtime": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.6.1.tgz", + "integrity": "sha512-D6/AYOA+Lhs5e5il8+5pSLemjtJezUr+8zx+Sn8xlmOux3XOqx4d8l/2udBea8CRPqqrzhsKUsN/gBDE/IcaPQ==", "dev": true, - "dependencies": { - "@jest/environment": "^29.5.0", - "@jest/fake-timers": "^29.5.0", - "@jest/globals": "^29.5.0", - "@jest/source-map": "^29.4.3", - "@jest/test-result": "^29.5.0", - "@jest/transform": "^29.5.0", - "@jest/types": "^29.5.0", + "requires": { + "@jest/environment": "^29.6.1", + "@jest/fake-timers": "^29.6.1", + "@jest/globals": "^29.6.1", + "@jest/source-map": "^29.6.0", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", "@types/node": "*", "chalk": "^4.0.0", "cjs-module-lexer": "^1.0.0", "collect-v8-coverage": "^1.0.0", "glob": "^7.1.3", "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.5.0", - "jest-message-util": "^29.5.0", - "jest-mock": "^29.5.0", + "jest-haste-map": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-mock": "^29.6.1", "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.5.0", - "jest-snapshot": "^29.5.0", - "jest-util": "^29.5.0", + "jest-resolve": "^29.6.1", + "jest-snapshot": "^29.6.1", + "jest-util": "^29.6.1", "slash": "^3.0.0", "strip-bom": "^4.0.0" }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "dependencies": { + "strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true + } } }, - "node_modules/jest-snapshot": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.5.0.tgz", - "integrity": "sha512-x7Wolra5V0tt3wRs3/ts3S6ciSQVypgGQlJpz2rsdQYoUKxMxPNaoHMGJN6qAuPJqS+2iQ1ZUn5kl7HCyls84g==", + "jest-snapshot": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.6.1.tgz", + "integrity": "sha512-G4UQE1QQ6OaCgfY+A0uR1W2AY0tGXUPQpoUClhWHq1Xdnx1H6JOrC2nH5lqnOEqaDgbHFgIwZ7bNq24HpB180A==", "dev": true, - "dependencies": { + "requires": { "@babel/core": "^7.11.6", "@babel/generator": "^7.7.2", "@babel/plugin-syntax-jsx": "^7.7.2", "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/traverse": "^7.7.2", "@babel/types": "^7.3.3", - "@jest/expect-utils": "^29.5.0", - "@jest/transform": "^29.5.0", - "@jest/types": "^29.5.0", - "@types/babel__traverse": "^7.0.6", + "@jest/expect-utils": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", "@types/prettier": "^2.1.5", "babel-preset-current-node-syntax": "^1.0.0", "chalk": "^4.0.0", - "expect": "^29.5.0", + "expect": "^29.6.1", "graceful-fs": "^4.2.9", - "jest-diff": "^29.5.0", + "jest-diff": "^29.6.1", "jest-get-type": "^29.4.3", - "jest-matcher-utils": "^29.5.0", - "jest-message-util": "^29.5.0", - "jest-util": "^29.5.0", + "jest-matcher-utils": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1", "natural-compare": "^1.4.0", - "pretty-format": "^29.5.0", - "semver": "^7.3.5" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-snapshot/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-snapshot/node_modules/diff-sequences": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", - "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-snapshot/node_modules/jest-diff": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.5.0.tgz", - "integrity": "sha512-LtxijLLZBduXnHSniy0WMdaHjmQnt3g5sa16W4p0HqukYTTsyTW3GD1q41TyGl5YFXj/5B2U6dlh5FM1LIMgxw==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^29.4.3", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-snapshot/node_modules/jest-matcher-utils": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.5.0.tgz", - "integrity": "sha512-lecRtgm/rjIK0CQ7LPQwzCs2VwW6WAahA55YBuI+xqmhm7LAaxokSB8C97yJeYyT+HvQkH741StzpU41wohhWw==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^29.5.0", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.5.0" + "pretty-format": "^29.6.1", + "semver": "^7.5.3" }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-snapshot/node_modules/pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, "dependencies": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + }, + "diff-sequences": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", + "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", + "dev": true + }, + "jest-diff": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.1.tgz", + "integrity": "sha512-FsNCvinvl8oVxpNLttNQX7FAq7vR+gMDGj90tiP7siWw1UdakWUGqrylpsYrpvj908IYckm5Y0Q7azNAozU1Kg==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + } + }, + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true + }, + "jest-matcher-utils": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.6.1.tgz", + "integrity": "sha512-SLaztw9d2mfQQKHmJXKM0HCbl2PPVld/t9Xa6P9sgiExijviSp7TnZZpw2Fpt+OI3nwUO/slJbOfzfUMKKC5QA==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "jest-diff": "^29.6.1", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + } + }, + "pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + } } }, - "node_modules/jest-snapshot/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/jest-util": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.5.0.tgz", - "integrity": "sha512-RYMgG/MTadOr5t8KdhejfvUU82MxsCu5MF6KuDUHl+NuwzUt+Sm6jJWxTJVrDR1j5M/gJVCPKQEpWXY+yIQ6lQ==", + "jest-util": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.6.1.tgz", + "integrity": "sha512-NRFCcjc+/uO3ijUVyNOQJluf8PtGCe/W6cix36+M3cTFgiYqFOOW5MgN4JOOcvbUhcKTYVd1CvHz/LWi8d16Mg==", "dev": true, - "dependencies": { - "@jest/types": "^29.5.0", + "requires": { + "@jest/types": "^29.6.1", "@types/node": "*", "chalk": "^4.0.0", "ci-info": "^3.2.0", "graceful-fs": "^4.2.9", "picomatch": "^2.2.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-validate": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.5.0.tgz", - "integrity": "sha512-pC26etNIi+y3HV8A+tUGr/lph9B18GnzSRAkPaaZJIE1eFdiYm6/CewuiJQ8/RlfHd1u/8Ioi8/sJ+CmbA+zAQ==", + "jest-validate": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.6.1.tgz", + "integrity": "sha512-r3Ds69/0KCN4vx4sYAbGL1EVpZ7MSS0vLmd3gV78O+NAx3PDQQukRU5hNHPXlyqCgFY8XUk7EuTMLugh0KzahA==", "dev": true, - "dependencies": { - "@jest/types": "^29.5.0", + "requires": { + "@jest/types": "^29.6.1", "camelcase": "^6.2.0", "chalk": "^4.0.0", "jest-get-type": "^29.4.3", "leven": "^3.1.0", - "pretty-format": "^29.5.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-validate/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-validate/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "engines": { - "node": ">=10" + "pretty-format": "^29.6.1" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/jest-validate/node_modules/pretty-format": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.5.0.tgz", - "integrity": "sha512-V2mGkI31qdttvTFX7Mt4efOqHXqJWMu4/r66Xh3Z3BwZaPfPJgp6/gbwoujRpPUtfEF6AUUWx3Jim3GCw5g/Qw==", - "dev": true, "dependencies": { - "@jest/schemas": "^29.4.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + }, + "camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true + }, + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true + }, + "pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + } } }, - "node_modules/jest-validate/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/jest-watcher": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.5.0.tgz", - "integrity": "sha512-KmTojKcapuqYrKDpRwfqcQ3zjMlwu27SYext9pt4GlF5FUgB+7XE1mcCnSm6a4uUpFyQIkb6ZhzZvHl+jiBCiA==", + "jest-watcher": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.6.1.tgz", + "integrity": "sha512-d4wpjWTS7HEZPaaj8m36QiaP856JthRZkrgcIY/7ISoUWPIillrXM23WPboZVLbiwZBt4/qn2Jke84Sla6JhFA==", "dev": true, - "dependencies": { - "@jest/test-result": "^29.5.0", - "@jest/types": "^29.5.0", + "requires": { + "@jest/test-result": "^29.6.1", + "@jest/types": "^29.6.1", "@types/node": "*", "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", "emittery": "^0.13.1", - "jest-util": "^29.5.0", + "jest-util": "^29.6.1", "string-length": "^4.0.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-worker": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.5.0.tgz", - "integrity": "sha512-NcrQnevGoSp4b5kg+akIpthoAFHxPBcb5P6mYPY0fUNT+sSvmtu6jlkEle3anczUKIKEbMxFimk9oTP/tpIPgA==", + "jest-worker": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.6.1.tgz", + "integrity": "sha512-U+Wrbca7S8ZAxAe9L6nb6g8kPdia5hj32Puu5iOqBCMTMWFHXuK6dOV2IFrpedbTV8fjMFLdWNttQTBL6u2MRA==", "dev": true, - "dependencies": { + "requires": { "@types/node": "*", - "jest-util": "^29.5.0", + "jest-util": "^29.6.1", "merge-stream": "^2.0.0", "supports-color": "^8.0.0" }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-worker/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, - "node_modules/js-tokens": { + "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "dev": true }, - "node_modules/js-yaml": { + "js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dependencies": { + "requires": { "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" } }, - "node_modules/jsep": { + "jsep": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.3.8.tgz", - "integrity": "sha512-qofGylTGgYj9gZFsHuyWAN4jr35eJ66qJCK4eKDnldohuUoQFbU3iZn2zjvEbd9wOAhP9Wx5DsAAduTyE1PSWQ==", - "engines": { - "node": ">= 10.16.0" - } + "integrity": "sha512-qofGylTGgYj9gZFsHuyWAN4jr35eJ66qJCK4eKDnldohuUoQFbU3iZn2zjvEbd9wOAhP9Wx5DsAAduTyE1PSWQ==" }, - "node_modules/jsesc": { + "jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=4" - } + "dev": true }, - "node_modules/json-parse-even-better-errors": { + "json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true }, - "node_modules/json-schema-migrate": { + "json-schema-migrate": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-0.2.0.tgz", "integrity": "sha512-dq4/oHWmtw/+0ytnXsDqVn+VsVweTEmzm5jLgguPn9BjSzn6/q58ZiZx3BHiQyJs612f0T5Z+MrUEUUY5DHsRg==", - "dependencies": { + "requires": { "ajv": "^5.0.0" - } - }, - "node_modules/json-schema-migrate/node_modules/ajv": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", - "integrity": "sha512-Ajr4IcMXq/2QmMkEmSvxqfLN5zGmJ92gHXAeOXq1OekoH2rfDNsgdDoL2f7QaRCy7G/E6TpxBVdRuNraMztGHw==", + }, "dependencies": { - "co": "^4.6.0", - "fast-deep-equal": "^1.0.0", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.3.0" + "ajv": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha512-Ajr4IcMXq/2QmMkEmSvxqfLN5zGmJ92gHXAeOXq1OekoH2rfDNsgdDoL2f7QaRCy7G/E6TpxBVdRuNraMztGHw==", + "requires": { + "co": "^4.6.0", + "fast-deep-equal": "^1.0.0", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.3.0" + } + }, + "fast-deep-equal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", + "integrity": "sha512-fueX787WZKCV0Is4/T2cyAdM4+x1S3MXXOAhavE1ys/W42SHAPacLTQhucja22QBYrfGw50M2sRiXPtTGv9Ymw==" + }, + "json-schema-traverse": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", + "integrity": "sha512-4JD/Ivzg7PoW8NzdrBSr3UFwC9mHgvI7Z6z3QGBsSHgKaRTUDmyZAAKJo2UbG1kUVfS9WS8bi36N49U1xw43DA==" + } } }, - "node_modules/json-schema-migrate/node_modules/fast-deep-equal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", - "integrity": "sha512-fueX787WZKCV0Is4/T2cyAdM4+x1S3MXXOAhavE1ys/W42SHAPacLTQhucja22QBYrfGw50M2sRiXPtTGv9Ymw==" - }, - "node_modules/json-schema-migrate/node_modules/json-schema-traverse": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", - "integrity": "sha512-4JD/Ivzg7PoW8NzdrBSr3UFwC9mHgvI7Z6z3QGBsSHgKaRTUDmyZAAKJo2UbG1kUVfS9WS8bi36N49U1xw43DA==" - }, - "node_modules/json-schema-traverse": { + "json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, - "node_modules/json-stable-stringify": { + "json-stable-stringify": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz", "integrity": "sha512-nKtD/Qxm7tWdZqJoldEC7fF0S41v0mWbeaXG3637stOWfyGxTgWTYE2wtfKmjzpvxv2MA2xzxsXOIiwUpkX6Qw==", "dev": true, - "dependencies": { + "requires": { "jsonify": "~0.0.0" } }, - "node_modules/json-stable-stringify-without-jsonify": { + "json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", "dev": true }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dev": true, - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" + "requires": { + "minimist": "^1.2.0" } }, - "node_modules/jsonc-parser": { + "jsonc-parser": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.2.1.tgz", "integrity": "sha512-o6/yDBYccGvTz1+QFevz6l6OBZ2+fMVu2JZ9CIhzsYRX4mjaK5IyX9eldUdCmga16zlgQxyrj5pt9kzuj2C02w==" }, - "node_modules/jsonify": { + "jsonify": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "dev": true }, - "node_modules/jsonparse": { + "jsonparse": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", - "dev": true, - "engines": [ - "node >= 0.2.0" - ] + "dev": true }, - "node_modules/jsonpath-plus": { + "jsonpath-plus": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.2.0.tgz", - "integrity": "sha512-zBfiUPM5nD0YZSBT/o/fbCUlCcepMIdP0CJZxM1+KgA4f2T206f6VAg9e7mX35+KlMaIc5qXW34f3BnwJ3w+RA==", - "engines": { - "node": ">=12.0.0" - } + "integrity": "sha512-zBfiUPM5nD0YZSBT/o/fbCUlCcepMIdP0CJZxM1+KgA4f2T206f6VAg9e7mX35+KlMaIc5qXW34f3BnwJ3w+RA==" }, - "node_modules/jsonpointer": { + "jsonpointer": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", - "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/JSONStream": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", - "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", - "dev": true, - "dependencies": { - "jsonparse": "^1.2.0", - "through": ">=2.2.7 <3" - }, - "bin": { - "JSONStream": "bin.js" - }, - "engines": { - "node": "*" - } + "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==" }, - "node_modules/jsx-ast-utils": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", - "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", + "jsx-ast-utils": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.4.tgz", + "integrity": "sha512-fX2TVdCViod6HwKEtSWGHs57oFhVfCMwieb9PuRDgjDPh5XeqJiHFFFJCHxU5cnTc3Bu/GRL+kPiFmw8XWOfKw==", "dev": true, - "dependencies": { - "array-includes": "^3.1.5", - "object.assign": "^4.1.3" - }, - "engines": { - "node": ">=4.0" + "requires": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "object.assign": "^4.1.4", + "object.values": "^1.1.6" } }, - "node_modules/kind-of": { + "kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", "dev": true, - "dependencies": { + "requires": { "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" } }, - "node_modules/kleur": { + "kleur": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", - "dev": true, - "engines": { - "node": ">=6" - } + "dev": true }, - "node_modules/labeled-stream-splicer": { + "labeled-stream-splicer": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/labeled-stream-splicer/-/labeled-stream-splicer-2.0.2.tgz", "integrity": "sha512-Ca4LSXFFZUjPScRaqOcFxneA0VpKZr4MMYCljyQr4LIewTLb3Y0IUTIsnBBsVubIeEfxeSZpSjSsRM8APEQaAw==", "dev": true, - "dependencies": { + "requires": { "inherits": "^2.0.1", "stream-splicer": "^2.0.0" } }, - "node_modules/language-subtag-registry": { + "language-subtag-registry": { "version": "0.3.22", "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==", "dev": true }, - "node_modules/language-tags": { + "language-tags": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", "dev": true, - "dependencies": { + "requires": { "language-subtag-registry": "~0.3.2" } }, - "node_modules/lazy-cache": { + "lazy-cache": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", "integrity": "sha512-7vp2Acd2+Kz4XkzxGxaB1FWOi8KjWIWsgdfD5MCb86DWvlLqhRPM+d6Pro3iNEL5VT9mstz5hKAlcd+QR6H3aA==", "dev": true, - "dependencies": { + "requires": { "set-getter": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" } }, - "node_modules/leven": { + "leven": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", - "engines": { - "node": ">=6" - } + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==" }, - "node_modules/levn": { + "levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dev": true, - "dependencies": { + "requires": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" } }, - "node_modules/lines-and-columns": { + "lines-and-columns": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", "dev": true }, - "node_modules/list-item": { + "list-item": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/list-item/-/list-item-1.1.1.tgz", "integrity": "sha512-S3D0WZ4J6hyM8o5SNKWaMYB1ALSacPZ2nHGEuCjmHZ+dc03gFeNZoNDcqfcnO4vDhTZmNrqrpYZCdXsRh22bzw==", "dev": true, - "dependencies": { + "requires": { "expand-range": "^1.8.1", "extend-shallow": "^2.0.1", "is-number": "^2.1.0", "repeat-string": "^1.5.2" }, - "engines": { - "node": ">=0.10.0" + "dependencies": { + "is-number": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", + "integrity": "sha512-QUzH43Gfb9+5yckcrSA0VBDwEtDUchrk4F6tfJZQuNzDJbEDB9cZNzSfXGQ1jqmdDY/kl41lUOWM9syA8z8jlg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + } + } } }, - "node_modules/loader-runner": { + "loader-runner": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", - "dev": true, - "engines": { - "node": ">=6.11.5" - } + "dev": true }, - "node_modules/locate-path": { + "locate-path": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, - "dependencies": { + "requires": { "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/lodash": { + "lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, - "node_modules/lodash._reinterpolate": { + "lodash._reinterpolate": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", "integrity": "sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA==", "dev": true }, - "node_modules/lodash.camelcase": { + "lodash.camelcase": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", "dev": true }, - "node_modules/lodash.kebabcase": { + "lodash.kebabcase": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz", "integrity": "sha512-N8XRTIMMqqDgSy4VLKPnJ/+hpGZN+PHQiJnSenYqPaVV/NCqEogTnAdZLQiGKhxX+JCs8waWq2t1XHWKOmlY8g==", "dev": true }, - "node_modules/lodash.memoize": { + "lodash.memoize": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-3.0.4.tgz", "integrity": "sha512-eDn9kqrAmVUC1wmZvlQ6Uhde44n+tXpqPrN8olQJbttgh0oKclk+SF54P47VEGE9CEiMeRwAP8BaM7UHvBkz2A==", "dev": true }, - "node_modules/lodash.merge": { + "lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, - "node_modules/lodash.snakecase": { + "lodash.snakecase": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==", "dev": true }, - "node_modules/lodash.template": { + "lodash.template": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", "integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==", "dev": true, - "dependencies": { + "requires": { "lodash._reinterpolate": "^3.0.0", "lodash.templatesettings": "^4.0.0" } }, - "node_modules/lodash.templatesettings": { + "lodash.templatesettings": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz", "integrity": "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==", "dev": true, - "dependencies": { + "requires": { "lodash._reinterpolate": "^3.0.0" } }, - "node_modules/lodash.topath": { + "lodash.topath": { "version": "4.5.2", "resolved": "https://registry.npmjs.org/lodash.topath/-/lodash.topath-4.5.2.tgz", "integrity": "sha512-1/W4dM+35DwvE/iEd1M9ekewOSTlpFekhw9mhAtrwjVqUr83/ilQiyAvmg4tVX7Unkcfl1KC+i9WdaT4B6aQcg==" }, - "node_modules/lodash.upperfirst": { + "lodash.upperfirst": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz", "integrity": "sha512-sReKOYJIJf74dhJONhU4e0/shzi1trVbSWDOhKYE5XV2O+H7Sb2Dihwuc7xWxVl+DgFPyTqIN3zMfT9cq5iWDg==", "dev": true }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, - "dependencies": { - "yallist": "^3.0.2" + "requires": { + "yallist": "^4.0.0" } }, - "node_modules/make-dir": { + "make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", "dev": true, - "dependencies": { + "requires": { "semver": "^6.0.0" }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/make-dir/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true, - "bin": { - "semver": "bin/semver.js" + "dependencies": { + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + } } }, - "node_modules/make-error": { + "make-error": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", "dev": true }, - "node_modules/makeerror": { + "makeerror": { "version": "1.0.12", "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", "dev": true, - "dependencies": { + "requires": { "tmpl": "1.0.5" } }, - "node_modules/map-obj": { + "map-obj": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "dev": true }, - "node_modules/markdown-link": { + "markdown-link": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/markdown-link/-/markdown-link-0.1.1.tgz", "integrity": "sha512-TurLymbyLyo+kAUUAV9ggR9EPcDjP/ctlv9QAFiqUH7c+t6FlsbivPo9OKTU8xdOx9oNd2drW/Fi5RRElQbUqA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "dev": true }, - "node_modules/markdown-toc": { + "markdown-toc": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/markdown-toc/-/markdown-toc-1.2.0.tgz", "integrity": "sha512-eOsq7EGd3asV0oBfmyqngeEIhrbkc7XVP63OwcJBIhH2EpG2PzFcbZdhy1jutXSlRBBVMNXHvMtSr5LAxSUvUg==", "dev": true, - "dependencies": { + "requires": { "concat-stream": "^1.5.2", "diacritics-map": "^0.1.0", "gray-matter": "^2.1.0", @@ -7878,177 +6118,146 @@ "remarkable": "^1.7.1", "repeat-string": "^1.6.1", "strip-color": "^0.1.0" - }, - "bin": { - "markdown-toc": "cli.js" - }, - "engines": { - "node": ">=0.10.0" } }, - "node_modules/math-random": { + "math-random": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.4.tgz", "integrity": "sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A==", "dev": true }, - "node_modules/md5.js": { + "md5.js": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", "dev": true, - "dependencies": { + "requires": { "hash-base": "^3.0.0", "inherits": "^2.0.1", "safe-buffer": "^5.1.2" } }, - "node_modules/merge-stream": { + "merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", "dev": true }, - "node_modules/merge2": { + "merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, - "engines": { - "node": ">= 8" - } + "dev": true }, - "node_modules/micromatch": { + "micromatch": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", "dev": true, - "dependencies": { + "requires": { "braces": "^3.0.2", "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" } }, - "node_modules/miller-rabin": { + "miller-rabin": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", "dev": true, - "dependencies": { + "requires": { "bn.js": "^4.0.0", "brorand": "^1.0.1" }, - "bin": { - "miller-rabin": "bin/miller-rabin" + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } } }, - "node_modules/miller-rabin/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - }, - "node_modules/mime-db": { + "mime-db": { "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, - "engines": { - "node": ">= 0.6" - } + "dev": true }, - "node_modules/mime-types": { + "mime-types": { "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dev": true, - "dependencies": { + "requires": { "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" } }, - "node_modules/mimic-fn": { + "mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true, - "engines": { - "node": ">=6" - } + "dev": true }, - "node_modules/minimalistic-assert": { + "minimalistic-assert": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", "dev": true }, - "node_modules/minimalistic-crypto-utils": { + "minimalistic-crypto-utils": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==", "dev": true }, - "node_modules/minimatch": { + "minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { + "requires": { "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" } }, - "node_modules/minimist": { + "minimist": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "dev": true }, - "node_modules/mixin-deep": { + "mixin-deep": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", "dev": true, - "dependencies": { + "requires": { "for-in": "^1.0.2", "is-extendable": "^1.0.1" }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/mixin-deep/node_modules/is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, "dependencies": { - "is-plain-object": "^2.0.4" - }, - "engines": { - "node": ">=0.10.0" + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + } } }, - "node_modules/mkdirp-classic": { + "mkdirp-classic": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", "dev": true }, - "node_modules/module-deps": { + "module-deps": { "version": "6.2.3", "resolved": "https://registry.npmjs.org/module-deps/-/module-deps-6.2.3.tgz", "integrity": "sha512-fg7OZaQBcL4/L+AK5f4iVqf9OMbCclXfy/znXRxTVhJSeW5AIlS9AwheYwDaXM3lVW7OBeaeUEY3gbaC6cLlSA==", "dev": true, - "dependencies": { + "requires": { + "JSONStream": "^1.0.3", "browser-resolve": "^2.0.0", "cached-path-relative": "^1.0.2", "concat-stream": "~1.6.0", @@ -8056,7 +6265,6 @@ "detective": "^5.2.0", "duplexer2": "^0.1.2", "inherits": "^2.0.1", - "JSONStream": "^1.0.3", "parents": "^1.0.0", "readable-stream": "^2.0.2", "resolve": "^1.4.0", @@ -8064,374 +6272,278 @@ "subarg": "^1.0.0", "through2": "^2.0.0", "xtend": "^4.0.0" - }, - "bin": { - "module-deps": "bin/cmd.js" - }, - "engines": { - "node": ">= 0.8.0" } }, - "node_modules/mothership": { + "mothership": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/mothership/-/mothership-0.3.0.tgz", "integrity": "sha512-/ORGXVhkG5Qal0ZD3BnxG/JtMcCJKOn7FkbbTA8N9HwJyXGsBYq9EXH7WbsRCpGUwmwrpQqN6ENLUL+ebmNTCQ==", "dev": true, - "dependencies": { + "requires": { "find-parent-dir": "~0.3.0" } }, - "node_modules/mrmime": { + "mrmime": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-1.0.1.tgz", "integrity": "sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==", - "dev": true, - "engines": { - "node": ">=10" - } + "dev": true }, - "node_modules/ms": { + "ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, - "node_modules/natural-compare": { + "natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true }, - "node_modules/natural-compare-lite": { + "natural-compare-lite": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", "dev": true }, - "node_modules/neo-async": { + "neo-async": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", "dev": true }, - "node_modules/nimma": { + "nimma": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/nimma/-/nimma-0.2.2.tgz", "integrity": "sha512-V52MLl7BU+tH2Np9tDrIXK8bql3MVUadnMIl/0/oZSGC9keuro0O9UUv9QKp0aMvtN8HRew4G7byY7H4eWsxaQ==", - "dependencies": { + "requires": { "@jsep-plugin/regex": "^1.0.1", "@jsep-plugin/ternary": "^1.0.2", "astring": "^1.8.1", - "jsep": "^1.2.0" - }, - "engines": { - "node": "^12.20 || >=14.13" - }, - "optionalDependencies": { + "jsep": "^1.2.0", "jsonpath-plus": "^6.0.1", "lodash.topath": "^4.5.2" + }, + "dependencies": { + "jsonpath-plus": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-6.0.1.tgz", + "integrity": "sha512-EvGovdvau6FyLexFH2OeXfIITlgIbgZoAZe3usiySeaIDm5QS+A10DKNpaPBBqqRSZr2HN6HVNXxtwUAr2apEw==", + "optional": true + } } }, - "node_modules/nimma/node_modules/jsonpath-plus": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-6.0.1.tgz", - "integrity": "sha512-EvGovdvau6FyLexFH2OeXfIITlgIbgZoAZe3usiySeaIDm5QS+A10DKNpaPBBqqRSZr2HN6HVNXxtwUAr2apEw==", - "optional": true, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/node-fetch": { + "node-fetch": { "version": "2.6.7", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "dependencies": { + "requires": { "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } } }, - "node_modules/node-int64": { + "node-int64": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", "dev": true }, - "node_modules/node-releases": { - "version": "2.0.12", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", - "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==", + "node-releases": { + "version": "2.0.13", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", + "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", "dev": true }, - "node_modules/normalize-path": { + "normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "dev": true }, - "node_modules/npm-run-path": { + "npm-run-path": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, - "dependencies": { + "requires": { "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" } }, - "node_modules/object-assign": { + "object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "dev": true }, - "node_modules/object-inspect": { + "object-inspect": { "version": "1.12.3", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", - "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==" }, - "node_modules/object-keys": { + "object-keys": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "engines": { - "node": ">= 0.4" - } + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" }, - "node_modules/object.assign": { + "object.assign": { "version": "4.1.4", "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", - "dependencies": { + "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", "has-symbols": "^1.0.3", "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/object.entries": { + "object.entries": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", "dev": true, - "dependencies": { + "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" } }, - "node_modules/object.fromentries": { + "object.fromentries": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", "dev": true, - "dependencies": { + "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/object.pick": { + "object.pick": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", "integrity": "sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==", "dev": true, - "dependencies": { + "requires": { "isobject": "^3.0.1" }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object.pick/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", - "dev": true, - "engines": { - "node": ">=0.10.0" + "dependencies": { + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true + } } }, - "node_modules/object.values": { + "object.values": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", "dev": true, - "dependencies": { + "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/once": { + "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "dev": true, - "dependencies": { + "requires": { "wrappy": "1" } }, - "node_modules/onetime": { + "onetime": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, - "dependencies": { + "requires": { "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/opener": { + "opener": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", - "dev": true, - "bin": { - "opener": "bin/opener-bin.js" - } + "dev": true }, - "node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", "dev": true, - "dependencies": { + "requires": { + "@aashutoshrathi/word-wrap": "^1.2.3", "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - }, - "engines": { - "node": ">= 0.8.0" + "type-check": "^0.4.0" } }, - "node_modules/os-browserify": { + "os-browserify": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", "integrity": "sha512-gjcpUc3clBf9+210TRaDWbf+rZZZEshZ+DlXMRCeAjp0xhTrnQsKHypIy1J3d5hKdUzj69t708EHtU8P6bUn0A==", "dev": true }, - "node_modules/p-limit": { + "p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, - "dependencies": { + "requires": { "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/p-locate": { + "p-locate": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, - "dependencies": { + "requires": { "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/p-try": { + "p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "engines": { - "node": ">=6" - } + "dev": true }, - "node_modules/pako": { + "pako": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", "dev": true }, - "node_modules/parent-module": { + "parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, - "dependencies": { + "requires": { "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" } }, - "node_modules/parents": { + "parents": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parents/-/parents-1.0.1.tgz", "integrity": "sha512-mXKF3xkoUt5td2DoxpLmtOmZvko9VfFpwRwkKDHSNvgmpLAeBo18YDhcPbBzJq+QLCHMbGOfzia2cX4U+0v9Mg==", "dev": true, - "dependencies": { + "requires": { "path-platform": "~0.11.15" } }, - "node_modules/parse-asn1": { + "parse-asn1": { "version": "5.1.6", "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.6.tgz", "integrity": "sha512-RnZRo1EPU6JBnra2vGHj0yhp6ebyjBZpmUCLHWiFhxlzvBCCpAuZ7elsBp1PVAbQN0/04VD/19rfzlBSwLstMw==", "dev": true, - "dependencies": { + "requires": { "asn1.js": "^5.2.0", "browserify-aes": "^1.0.0", "evp_bytestokey": "^1.0.0", @@ -8439,360 +6551,273 @@ "safe-buffer": "^5.1.1" } }, - "node_modules/parse-json": { + "parse-json": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, - "dependencies": { + "requires": { "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", "json-parse-even-better-errors": "^2.3.0", "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/patch-text": { + "patch-text": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/patch-text/-/patch-text-1.0.2.tgz", "integrity": "sha512-r1P+pfiTgWrsMOk/aW64RGv0oLjdyP0LeaLv2dF+iUfaVLqicXRi2dkjGYDgQ/kHVYm4z4GEHnx36Q6uqiFNlA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "dev": true }, - "node_modules/path-browserify": { + "path-browserify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", "dev": true }, - "node_modules/path-exists": { + "path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } + "dev": true }, - "node_modules/path-is-absolute": { + "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "dev": true }, - "node_modules/path-key": { + "path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } + "dev": true }, - "node_modules/path-parse": { + "path-parse": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, - "node_modules/path-platform": { + "path-platform": { "version": "0.11.15", "resolved": "https://registry.npmjs.org/path-platform/-/path-platform-0.11.15.tgz", "integrity": "sha512-Y30dB6rab1A/nfEKsZxmr01nUotHX0c/ZiIAsCTatEe1CmS5Pm5He7fZ195bPT7RdquoaL8lLxFCMQi/bS7IJg==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } + "dev": true }, - "node_modules/path-type": { + "path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true, - "engines": { - "node": ">=8" - } + "dev": true }, - "node_modules/pbkdf2": { + "pbkdf2": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.2.tgz", "integrity": "sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA==", "dev": true, - "dependencies": { + "requires": { "create-hash": "^1.1.2", "create-hmac": "^1.1.4", "ripemd160": "^2.0.1", "safe-buffer": "^5.0.1", "sha.js": "^2.4.8" - }, - "engines": { - "node": ">=0.12" } }, - "node_modules/pend": { + "pend": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", "dev": true }, - "node_modules/picocolors": { + "picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", "dev": true }, - "node_modules/picomatch": { + "picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } + "dev": true }, - "node_modules/pirates": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", - "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", - "dev": true, - "engines": { - "node": ">= 6" - } + "pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true }, - "node_modules/pkg-dir": { + "pkg-dir": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, - "dependencies": { + "requires": { "find-up": "^4.0.0" }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pkg-dir/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + } } }, - "node_modules/pony-cause": { + "pony-cause": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/pony-cause/-/pony-cause-1.1.1.tgz", - "integrity": "sha512-PxkIc/2ZpLiEzQXu5YRDOUgBlfGYBY8156HY5ZcRAwwonMk5W/MrJP2LLkG/hF7GEQzaHo2aS7ho6ZLCOvf+6g==", - "engines": { - "node": ">=12.0.0" - } + "integrity": "sha512-PxkIc/2ZpLiEzQXu5YRDOUgBlfGYBY8156HY5ZcRAwwonMk5W/MrJP2LLkG/hF7GEQzaHo2aS7ho6ZLCOvf+6g==" }, - "node_modules/prelude-ls": { + "prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } + "dev": true }, - "node_modules/prettier": { + "prettier": { "version": "2.8.8", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", - "dev": true, - "bin": { - "prettier": "bin-prettier.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } + "dev": true }, - "node_modules/prettier-linter-helpers": { + "prettier-linter-helpers": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", "dev": true, - "dependencies": { + "requires": { "fast-diff": "^1.1.2" - }, - "engines": { - "node": ">=6.0.0" } }, - "node_modules/pretty-format": { + "pretty-format": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", "dev": true, - "dependencies": { + "requires": { "ansi-regex": "^5.0.1", "ansi-styles": "^5.0.0", "react-is": "^17.0.1" }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } } }, - "node_modules/process": { + "process": { "version": "0.11.10", "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", - "dev": true, - "engines": { - "node": ">= 0.6.0" - } + "dev": true }, - "node_modules/process-nextick-args": { + "process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, - "node_modules/progress": { + "progress": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } + "dev": true }, - "node_modules/prompts": { + "prompts": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", "dev": true, - "dependencies": { + "requires": { "kleur": "^3.0.3", "sisteransi": "^1.0.5" - }, - "engines": { - "node": ">= 6" } }, - "node_modules/proxy-from-env": { + "proxy-from-env": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", "dev": true }, - "node_modules/public-encrypt": { + "public-encrypt": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", "dev": true, - "dependencies": { + "requires": { "bn.js": "^4.1.0", "browserify-rsa": "^4.0.0", "create-hash": "^1.1.0", "parse-asn1": "^5.0.0", "randombytes": "^2.0.1", "safe-buffer": "^5.1.2" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + } } }, - "node_modules/public-encrypt/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", - "dev": true - }, - "node_modules/pump": { + "pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", "dev": true, - "dependencies": { + "requires": { "end-of-stream": "^1.1.0", "once": "^1.3.1" } }, - "node_modules/punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", - "dev": true + "punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==" }, - "node_modules/puppeteer": { + "puppeteer": { "version": "17.1.3", "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-17.1.3.tgz", "integrity": "sha512-tVtvNSOOqlq75rUgwLeDAEQoLIiBqmRg0/zedpI6fuqIocIkuxG23A7FIl1oVSkuSMMLgcOP5kVhNETmsmjvPw==", - "deprecated": "< 19.4.0 is no longer supported", "dev": true, - "hasInstallScript": true, - "dependencies": { + "requires": { "cross-fetch": "3.1.5", "debug": "4.3.4", "devtools-protocol": "0.0.1036444", @@ -8804,178 +6829,130 @@ "tar-fs": "2.1.1", "unbzip2-stream": "1.4.3", "ws": "8.8.1" - }, - "engines": { - "node": ">=14.1.0" } }, - "node_modules/pure-rand": { + "pure-rand": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.2.tgz", "integrity": "sha512-6Yg0ekpKICSjPswYOuC5sku/TSWaRYlA0qsXqJgM/d/4pLPHPuTxK7Nbf7jFKzAeedUhR8C7K9Uv63FBsSo8xQ==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/dubzzz" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fast-check" - } - ] + "dev": true }, - "node_modules/qs": { + "qs": { "version": "6.11.2", "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz", "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==", "dev": true, - "dependencies": { + "requires": { "side-channel": "^1.0.4" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/querystring-es3": { + "querystring-es3": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", "integrity": "sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA==", - "dev": true, - "engines": { - "node": ">=0.4.x" - } + "dev": true }, - "node_modules/queue-microtask": { + "queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] + "dev": true }, - "node_modules/ramldt2jsonschema": { + "ramldt2jsonschema": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/ramldt2jsonschema/-/ramldt2jsonschema-1.2.3.tgz", "integrity": "sha512-+wLDAV2NNv9NkfEUOYStaDu/6RYgYXeC1zLtXE+dMU/jDfjpN4iJnBGycDwFTFaIQGosOQhxph7fEX6Mpwxdug==", - "dependencies": { + "requires": { "commander": "^5.0.0", "js-yaml": "^3.14.0", "json-schema-migrate": "^0.2.0", "webapi-parser": "^0.5.0" }, - "bin": { - "dt2js": "bin/dt2js.js", - "js2dt": "bin/js2dt.js" - } - }, - "node_modules/ramldt2jsonschema/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/ramldt2jsonschema/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + } } }, - "node_modules/randomatic": { + "randomatic": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", "dev": true, - "dependencies": { + "requires": { "is-number": "^4.0.0", "kind-of": "^6.0.0", "math-random": "^1.0.1" }, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/randomatic/node_modules/is-number": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", - "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/randomatic/node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "dev": true, - "engines": { - "node": ">=0.10.0" + "dependencies": { + "is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "dev": true + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + } } }, - "node_modules/randombytes": { + "randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dev": true, - "dependencies": { + "requires": { "safe-buffer": "^5.1.0" } }, - "node_modules/randomfill": { + "randomfill": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", "dev": true, - "dependencies": { + "requires": { "randombytes": "^2.0.5", "safe-buffer": "^5.1.0" } }, - "node_modules/react-is": { + "react-is": { "version": "17.0.2", "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", "dev": true }, - "node_modules/read-only-stream": { + "read-only-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/read-only-stream/-/read-only-stream-2.0.0.tgz", "integrity": "sha512-3ALe0bjBVZtkdWKIcThYpQCLbBMd/+Tbh2CDSrAIDO3UsZ4Xs+tnyjv2MjCOMMgBG+AsUOeuP1cgtY1INISc8w==", "dev": true, - "dependencies": { + "requires": { "readable-stream": "^2.0.2" } }, - "node_modules/readable-stream": { + "readable-stream": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", "dev": true, - "dependencies": { + "requires": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", "isarray": "~1.0.0", @@ -8983,1248 +6960,955 @@ "safe-buffer": "~5.1.1", "string_decoder": "~1.1.1", "util-deprecate": "~1.0.1" - } - }, - "node_modules/readable-stream/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "node_modules/readable-stream/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, + }, "dependencies": { - "safe-buffer": "~5.1.0" + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + } } }, - "node_modules/rechoir": { + "rechoir": { "version": "0.7.1", "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", "dev": true, - "dependencies": { + "requires": { "resolve": "^1.9.0" - }, - "engines": { - "node": ">= 0.10" } }, - "node_modules/regenerator-runtime": { + "regenerator-runtime": { "version": "0.13.11", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", "dev": true }, - "node_modules/regexp-tree": { + "regexp-tree": { "version": "0.1.27", "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.27.tgz", "integrity": "sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==", - "dev": true, - "bin": { - "regexp-tree": "bin/regexp-tree" - } + "dev": true }, - "node_modules/regexp.prototype.flags": { + "regexp.prototype.flags": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", - "dependencies": { + "requires": { "call-bind": "^1.0.2", "define-properties": "^1.2.0", "functions-have-names": "^1.2.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/remarkable": { + "remarkable": { "version": "1.7.4", "resolved": "https://registry.npmjs.org/remarkable/-/remarkable-1.7.4.tgz", "integrity": "sha512-e6NKUXgX95whv7IgddywbeN/ItCkWbISmc2DiqHJb0wTrqZIexqdco5b8Z3XZoo/48IdNVKM9ZCvTPJ4F5uvhg==", "dev": true, - "dependencies": { + "requires": { "argparse": "^1.0.10", "autolinker": "~0.28.0" }, - "bin": { - "remarkable": "bin/remarkable.js" - }, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/remarkable/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "dependencies": { - "sprintf-js": "~1.0.2" + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + } } }, - "node_modules/rename-function-calls": { + "rename-function-calls": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/rename-function-calls/-/rename-function-calls-0.1.1.tgz", "integrity": "sha512-F+z4csKBo6gw4y5vhIbOhG+UcZVWNh42fW35dagdFP74YrY4ET932NTZZEimMdJz8Efha73caz/OFGxt1vReOA==", "dev": true, - "dependencies": { + "requires": { "detective": "~3.1.0" - } - }, - "node_modules/rename-function-calls/node_modules/detective": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detective/-/detective-3.1.0.tgz", - "integrity": "sha512-BIvQHuiVSRMufK1OnlpeAzVqF2yXD75ZzYIx8XV4VQiJ48chF/MMYAdsz/NkulhZznwb4fAX8vyi5CUc24I2BA==", - "dev": true, + }, "dependencies": { - "escodegen": "~1.1.0", - "esprima-fb": "3001.1.0-dev-harmony-fb" + "detective": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detective/-/detective-3.1.0.tgz", + "integrity": "sha512-BIvQHuiVSRMufK1OnlpeAzVqF2yXD75ZzYIx8XV4VQiJ48chF/MMYAdsz/NkulhZznwb4fAX8vyi5CUc24I2BA==", + "dev": true, + "requires": { + "escodegen": "~1.1.0", + "esprima-fb": "3001.1.0-dev-harmony-fb" + } + }, + "esprima-fb": { + "version": "3001.1.0-dev-harmony-fb", + "resolved": "https://registry.npmjs.org/esprima-fb/-/esprima-fb-3001.0001.0000-dev-harmony-fb.tgz", + "integrity": "sha512-a3RFiCVBiy8KdO6q/C+8BQiP/sRk8XshBU3QHHDP8tNzjYwR3FKBOImu+PXfVhPoZL0JKtJLBAOWlDMCCFY8SQ==", + "dev": true + } } }, - "node_modules/repeat-element": { + "repeat-element": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "dev": true }, - "node_modules/repeat-string": { + "repeat-string": { "version": "1.6.1", "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", - "dev": true, - "engines": { - "node": ">=0.10" - } + "dev": true }, - "node_modules/replace-requires": { + "replace-requires": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/replace-requires/-/replace-requires-1.0.4.tgz", "integrity": "sha512-9PpQ4IWrhJ+waLnakqT26sOIFW8SPTWZ/aEmz35Pq1V1k1A352nYDTkbhznTGUmYS2MsC0ULJ+2vChstBTxKRw==", "dev": true, - "dependencies": { + "requires": { "detective": "^4.5.0", "has-require": "~1.2.1", "patch-text": "~1.0.2", "xtend": "~4.0.0" }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/replace-requires/node_modules/acorn": { - "version": "5.7.4", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.4.tgz", - "integrity": "sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/replace-requires/node_modules/detective": { - "version": "4.7.1", - "resolved": "https://registry.npmjs.org/detective/-/detective-4.7.1.tgz", - "integrity": "sha512-H6PmeeUcZloWtdt4DAkFyzFL94arpHr3NOwwmVILFiy+9Qd4JTxxXrzfyGk/lmct2qVGBwTSwSXagqu2BxmWig==", - "dev": true, "dependencies": { - "acorn": "^5.2.1", - "defined": "^1.0.0" + "acorn": { + "version": "5.7.4", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.4.tgz", + "integrity": "sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg==", + "dev": true + }, + "detective": { + "version": "4.7.1", + "resolved": "https://registry.npmjs.org/detective/-/detective-4.7.1.tgz", + "integrity": "sha512-H6PmeeUcZloWtdt4DAkFyzFL94arpHr3NOwwmVILFiy+9Qd4JTxxXrzfyGk/lmct2qVGBwTSwSXagqu2BxmWig==", + "dev": true, + "requires": { + "acorn": "^5.2.1", + "defined": "^1.0.0" + } + } } }, - "node_modules/require-directory": { + "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "dev": true }, - "node_modules/require-from-string": { + "require-from-string": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "engines": { - "node": ">=0.10.0" - } + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==" }, - "node_modules/resolve": { + "resolve": { "version": "1.22.2", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", "dev": true, - "dependencies": { + "requires": { "is-core-module": "^2.11.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/resolve-cwd": { + "resolve-cwd": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, - "dependencies": { + "requires": { "resolve-from": "^5.0.0" }, - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve-cwd/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "engines": { - "node": ">=8" + "dependencies": { + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true + } } }, - "node_modules/resolve-from": { + "resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "engines": { - "node": ">=4" - } + "dev": true }, - "node_modules/resolve.exports": { + "resolve.exports": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", - "dev": true, - "engines": { - "node": ">=10" - } + "dev": true }, - "node_modules/reusify": { + "reusify": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true, - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } + "dev": true }, - "node_modules/rimraf": { + "rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dev": true, - "dependencies": { + "requires": { "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/ripemd160": { + "ripemd160": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", "dev": true, - "dependencies": { + "requires": { "hash-base": "^3.0.0", "inherits": "^2.0.1" } }, - "node_modules/run-parallel": { + "run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { + "requires": { "queue-microtask": "^1.2.2" } }, - "node_modules/safe-buffer": { + "safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] + "dev": true }, - "node_modules/safe-regex": { + "safe-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz", "integrity": "sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==", "dev": true, - "dependencies": { + "requires": { "regexp-tree": "~0.1.1" } }, - "node_modules/safe-regex-test": { + "safe-regex-test": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", - "dependencies": { + "requires": { "call-bind": "^1.0.2", "get-intrinsic": "^1.1.3", "is-regex": "^1.1.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/safe-stable-stringify": { + "safe-stable-stringify": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz", "integrity": "sha512-ERq4hUjKDbJfE4+XtZLFPCDi8Vb1JqaxAPTxWFLBx8XcAlf9Bda/ZJdVezs/NAfsMQScyIlUMx+Yeu7P7rx5jw==" }, - "node_modules/safer-buffer": { + "safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true }, - "node_modules/schema-utils": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.2.0.tgz", - "integrity": "sha512-0zTyLGyDJYd/MBxG1AhJkKa6fpEBds4OQO2ut0w7OYG+ZGhGea09lijvzsqegYSik88zc7cUtIlnnO+/BvD6gQ==", + "schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", "dev": true, - "dependencies": { + "requires": { "@types/json-schema": "^7.0.8", "ajv": "^6.12.5", "ajv-keywords": "^3.5.2" }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/schema-utils/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/schema-utils/node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true, - "peerDependencies": { - "ajv": "^6.9.1" + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + } } }, - "node_modules/schema-utils/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, - "dependencies": { + "requires": { "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" } }, - "node_modules/semver/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/serialize-javascript": { + "serialize-javascript": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", "dev": true, - "dependencies": { + "requires": { "randombytes": "^2.1.0" } }, - "node_modules/set-getter": { + "set-getter": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/set-getter/-/set-getter-0.1.1.tgz", "integrity": "sha512-9sVWOy+gthr+0G9DzqqLaYNA7+5OKkSmcqjL9cBpDEaZrr3ShQlyX2cZ/O/ozE41oxn/Tt0LGEM/w4Rub3A3gw==", "dev": true, - "dependencies": { + "requires": { "to-object-path": "^0.3.0" - }, - "engines": { - "node": ">=0.10.0" } }, - "node_modules/sha.js": { + "sha.js": { "version": "2.4.11", "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", "dev": true, - "dependencies": { + "requires": { "inherits": "^2.0.1", "safe-buffer": "^5.0.1" - }, - "bin": { - "sha.js": "bin.js" } }, - "node_modules/shallow-clone": { + "shallow-clone": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", "dev": true, - "dependencies": { + "requires": { "kind-of": "^6.0.2" }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shallow-clone/node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "dev": true, - "engines": { - "node": ">=0.10.0" + "dependencies": { + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + } } }, - "node_modules/shasum": { + "shasum": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz", "integrity": "sha512-UTzHm/+AzKfO9RgPgRpDIuMSNie1ubXRaljjlhFMNGYoG7z+rm9AHLPMf70R7887xboDH9Q+5YQbWKObFHEAtw==", "dev": true, - "dependencies": { + "requires": { "json-stable-stringify": "~0.0.0", "sha.js": "~2.4.4" } }, - "node_modules/shasum-object": { + "shasum-object": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/shasum-object/-/shasum-object-1.0.0.tgz", "integrity": "sha512-Iqo5rp/3xVi6M4YheapzZhhGPVs0yZwHj7wvwQ1B9z8H6zk+FEnI7y3Teq7qwnekfEhu8WmG2z0z4iWZaxLWVg==", "dev": true, - "dependencies": { + "requires": { "fast-safe-stringify": "^2.0.7" } }, - "node_modules/shebang-command": { + "shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, - "dependencies": { + "requires": { "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" } }, - "node_modules/shebang-regex": { + "shebang-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } + "dev": true }, - "node_modules/shell-quote": { + "shell-quote": { "version": "1.8.1", "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "dev": true }, - "node_modules/side-channel": { + "side-channel": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dependencies": { + "requires": { "call-bind": "^1.0.0", "get-intrinsic": "^1.0.2", "object-inspect": "^1.9.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/signal-exit": { + "signal-exit": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true }, - "node_modules/simple-concat": { + "simple-concat": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] + "dev": true }, - "node_modules/simple-eval": { + "simple-eval": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/simple-eval/-/simple-eval-1.0.0.tgz", "integrity": "sha512-kpKJR+bqTscgC0xuAl2xHN6bB12lHjC2DCUfqjAx19bQyO3R2EVLOurm3H9AUltv/uFVcSCVNc6faegR+8NYLw==", - "dependencies": { + "requires": { "jsep": "^1.1.2" - }, - "engines": { - "node": ">=12" } }, - "node_modules/sirv": { + "sirv": { "version": "1.0.19", "resolved": "https://registry.npmjs.org/sirv/-/sirv-1.0.19.tgz", "integrity": "sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==", "dev": true, - "dependencies": { + "requires": { "@polka/url": "^1.0.0-next.20", "mrmime": "^1.0.0", "totalist": "^1.0.0" - }, - "engines": { - "node": ">= 10" } }, - "node_modules/sisteransi": { + "sisteransi": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", "dev": true }, - "node_modules/slash": { + "slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } + "dev": true }, - "node_modules/source-map": { + "source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "dev": true }, - "node_modules/source-map-support": { + "source-map-support": { "version": "0.5.13", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, - "dependencies": { + "requires": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } } }, - "node_modules/source-map-support/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sprintf-js": { + "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" }, - "node_modules/stack-utils": { + "stack-utils": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", "dev": true, - "dependencies": { + "requires": { "escape-string-regexp": "^2.0.0" }, - "engines": { - "node": ">=10" - } - }, - "node_modules/stack-utils/node_modules/escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true, - "engines": { - "node": ">=8" + "dependencies": { + "escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true + } } }, - "node_modules/stream-browserify": { + "stream-browserify": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", "dev": true, - "dependencies": { + "requires": { "inherits": "~2.0.1", "readable-stream": "^2.0.2" } }, - "node_modules/stream-combiner2": { + "stream-combiner2": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", "integrity": "sha512-3PnJbYgS56AeWgtKF5jtJRT6uFJe56Z0Hc5Ngg/6sI6rIt8iiMBTa9cvdyFfpMQjaVHr8dusbNeFGIIonxOvKw==", "dev": true, - "dependencies": { + "requires": { "duplexer2": "~0.1.0", "readable-stream": "^2.0.2" } }, - "node_modules/stream-http": { + "stream-http": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-3.2.0.tgz", "integrity": "sha512-Oq1bLqisTyK3TSCXpPbT4sdeYNdmyZJv1LxpEm2vu1ZhK89kSE5YXwZc3cWk0MagGaKriBh9mCFbVGtO+vY29A==", "dev": true, - "dependencies": { + "requires": { "builtin-status-codes": "^3.0.0", "inherits": "^2.0.4", "readable-stream": "^3.6.0", "xtend": "^4.0.2" - } - }, - "node_modules/stream-http/node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" }, - "engines": { - "node": ">= 6" + "dependencies": { + "readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + } } }, - "node_modules/stream-splicer": { + "stream-splicer": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/stream-splicer/-/stream-splicer-2.0.1.tgz", "integrity": "sha512-Xizh4/NPuYSyAXyT7g8IvdJ9HJpxIGL9PjyhtywCZvvP0OPIdqyrr4dMikeuvY8xahpdKEBlBTySe583totajg==", "dev": true, - "dependencies": { + "requires": { "inherits": "^2.0.1", "readable-stream": "^2.0.2" } }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/string-length": { + "string-length": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", "dev": true, - "dependencies": { + "requires": { "char-regex": "^1.0.2", "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" } }, - "node_modules/string-width": { + "string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, - "dependencies": { + "requires": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" }, - "engines": { - "node": ">=8" + "dependencies": { + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + } } }, - "node_modules/string-width/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/string.prototype.trim": { + "string.prototype.trim": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", - "dependencies": { + "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/string.prototype.trimend": { + "string.prototype.trimend": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", - "dependencies": { + "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/string.prototype.trimstart": { + "string.prototype.trimstart": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", - "dependencies": { + "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", "es-abstract": "^1.20.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/strip-ansi": { + "string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "requires": { + "safe-buffer": "~5.2.0" + } + }, + "strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, - "dependencies": { + "requires": { "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" } }, - "node_modules/strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", - "dev": true, - "engines": { - "node": ">=8" - } + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true }, - "node_modules/strip-color": { + "strip-color": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/strip-color/-/strip-color-0.1.0.tgz", "integrity": "sha512-p9LsUieSjWNNAxVCXLeilaDlmuUOrDS5/dF9znM1nZc7EGX5+zEFC0bEevsNIaldjlks+2jns5Siz6F9iK6jwA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "dev": true }, - "node_modules/strip-final-newline": { + "strip-final-newline": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true, - "engines": { - "node": ">=6" - } + "dev": true }, - "node_modules/strip-json-comments": { + "strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "dev": true }, - "node_modules/subarg": { + "subarg": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz", "integrity": "sha512-RIrIdRY0X1xojthNcVtgT9sjpOGagEUKpZdgBUi054OEPFo282yg+zE+t1Rj3+RqKq2xStL7uUHhY+AjbC4BXg==", "dev": true, - "dependencies": { + "requires": { "minimist": "^1.1.0" } }, - "node_modules/supports-color": { + "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "dependencies": { + "requires": { "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" } }, - "node_modules/supports-preserve-symlinks-flag": { + "supports-preserve-symlinks-flag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "dev": true }, - "node_modules/svg-element-attributes": { + "svg-element-attributes": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/svg-element-attributes/-/svg-element-attributes-1.3.1.tgz", "integrity": "sha512-Bh05dSOnJBf3miNMqpsormfNtfidA/GxQVakhtn0T4DECWKeXQRQUceYjJ+OxYiiLdGe4Jo9iFV8wICFapFeIA==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } + "dev": true }, - "node_modules/syntax-error": { + "syntax-error": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", "dev": true, - "dependencies": { + "requires": { "acorn-node": "^1.2.0" } }, - "node_modules/tapable": { + "tapable": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", - "dev": true, - "engines": { - "node": ">=6" - } + "dev": true }, - "node_modules/tar-fs": { + "tar-fs": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", "dev": true, - "dependencies": { + "requires": { "chownr": "^1.1.1", "mkdirp-classic": "^0.5.2", "pump": "^3.0.0", "tar-stream": "^2.1.4" } }, - "node_modules/tar-stream": { + "tar-stream": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", "dev": true, - "dependencies": { + "requires": { "bl": "^4.0.3", "end-of-stream": "^1.4.1", "fs-constants": "^1.0.0", "inherits": "^2.0.3", "readable-stream": "^3.1.1" }, - "engines": { - "node": ">=6" - } - }, - "node_modules/tar-stream/node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" + "readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + } } }, - "node_modules/ternary": { + "ternary": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/ternary/-/ternary-1.0.0.tgz", "integrity": "sha512-/e+OUAGiEqytNLXnDfFkuel0N0y9IGkmvuGIPkirI+zv0dx/jPvUZ2l8qV6KYk8lmmLrAqk4iLJtRduUA6AUKw==", "dev": true }, - "node_modules/terser": { - "version": "5.18.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.18.0.tgz", - "integrity": "sha512-pdL757Ig5a0I+owA42l6tIuEycRuM7FPY4n62h44mRLRfnOxJkkOHd6i89dOpwZlpF6JXBwaAHF6yWzFrt+QyA==", + "terser": { + "version": "5.19.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.19.0.tgz", + "integrity": "sha512-JpcpGOQLOXm2jsomozdMDpd5f8ZHh1rR48OFgWUH3QsyZcfPgv2qDCYbcDEAYNd4OZRj2bWYKpwdll/udZCk/Q==", "dev": true, - "dependencies": { + "requires": { "@jridgewell/source-map": "^0.3.3", "acorn": "^8.8.2", "commander": "^2.20.0", "source-map-support": "~0.5.20" }, - "bin": { - "terser": "bin/terser" - }, - "engines": { - "node": ">=10" + "dependencies": { + "acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "dev": true + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + } } }, - "node_modules/terser-webpack-plugin": { + "terser-webpack-plugin": { "version": "5.3.9", "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", "dev": true, - "dependencies": { + "requires": { "@jridgewell/trace-mapping": "^0.3.17", "jest-worker": "^27.4.5", - "schema-utils": "^3.1.1", - "serialize-javascript": "^6.0.1", - "terser": "^5.16.8" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.1.0" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "uglify-js": { - "optional": true - } - } - }, - "node_modules/terser-webpack-plugin/node_modules/jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "dev": true, - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/terser-webpack-plugin/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/terser/node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true - }, - "node_modules/terser/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/terser/node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.16.8" + }, "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" + "jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + } + }, + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, - "node_modules/test-exclude": { + "test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, - "dependencies": { + "requires": { "@istanbuljs/schema": "^0.1.2", "glob": "^7.1.4", "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=8" } }, - "node_modules/text-table": { + "text-table": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "dev": true }, - "node_modules/through": { + "through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", "dev": true }, - "node_modules/through2": { + "through2": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", "dev": true, - "dependencies": { + "requires": { "readable-stream": "~2.3.6", "xtend": "~4.0.1" } }, - "node_modules/timers-browserify": { + "timers-browserify": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", "integrity": "sha512-PIxwAupJZiYU4JmVZYwXp9FKsHMXb5h0ZEFyuXTAn8WLHOlcij+FEcbrvDsom1o5dr1YggEtFbECvGCW2sT53Q==", "dev": true, - "dependencies": { + "requires": { "process": "~0.11.0" - }, - "engines": { - "node": ">=0.6.0" } }, - "node_modules/tmpl": { + "tmpl": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", "dev": true }, - "node_modules/to-fast-properties": { + "to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "dev": true, - "engines": { - "node": ">=4" - } + "dev": true }, - "node_modules/to-object-path": { + "to-object-path": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", "dev": true, - "dependencies": { + "requires": { "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" } }, - "node_modules/to-regex-range": { + "to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "dependencies": { + "requires": { "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/to-regex-range/node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "engines": { - "node": ">=0.12.0" } }, - "node_modules/toml": { + "toml": { "version": "2.3.6", "resolved": "https://registry.npmjs.org/toml/-/toml-2.3.6.tgz", "integrity": "sha512-gVweAectJU3ebq//Ferr2JUY4WKSDe5N+z0FvjDncLGyHmIDoxgY/2Ie4qfEIDm4IS7OA6Rmdm7pdEEdMcV/xQ==", "dev": true }, - "node_modules/totalist": { + "totalist": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", "integrity": "sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==", - "dev": true, - "engines": { - "node": ">=6" - } + "dev": true }, - "node_modules/tr46": { + "tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, - "node_modules/transformify": { + "transformify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/transformify/-/transformify-0.1.2.tgz", "integrity": "sha512-BUZAqCslm5pVXExA8PfXcvp7exsUNqRcNzx+KXj3Bv0oMROqnAt4bvs9U8Z2wVPa40NvLWJ/oswN0kreNFxBUg==", "dev": true, - "dependencies": { + "requires": { "readable-stream": "~1.1.9" - } - }, - "node_modules/transformify/node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "dev": true - }, - "node_modules/transformify/node_modules/readable-stream": { - "version": "1.1.14", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", - "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", - "dev": true, + }, "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", + "dev": true + }, + "readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", + "dev": true + } } }, - "node_modules/transformify/node_modules/string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", - "dev": true - }, - "node_modules/ts-loader": { - "version": "9.4.3", - "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.4.3.tgz", - "integrity": "sha512-n3hBnm6ozJYzwiwt5YRiJZkzktftRpMiBApHaJPoWLA+qetQBAXkHqCLM6nwSdRDimqVtA5ocIkcTRLMTt7yzA==", + "ts-loader": { + "version": "9.4.4", + "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.4.4.tgz", + "integrity": "sha512-MLukxDHBl8OJ5Dk3y69IsKVFRA/6MwzEqBgh+OXMPB/OD01KQuWPFd1WAQP8a5PeSCAxfnkhiuWqfmFJzJQt9w==", "dev": true, - "dependencies": { + "requires": { "chalk": "^4.1.0", "enhanced-resolve": "^5.0.0", "micromatch": "^4.0.0", "semver": "^7.3.4" - }, - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "typescript": "*", - "webpack": "^5.0.0" } }, - "node_modules/ts-node": { + "ts-node": { "version": "10.9.1", "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", "dev": true, - "dependencies": { + "requires": { "@cspotcode/source-map-support": "^0.8.0", "@tsconfig/node10": "^1.0.7", "@tsconfig/node12": "^1.0.7", @@ -10239,401 +7923,317 @@ "v8-compile-cache-lib": "^3.0.1", "yn": "3.1.1" }, - "bin": { - "ts-node": "dist/bin.js", - "ts-node-cwd": "dist/bin-cwd.js", - "ts-node-esm": "dist/bin-esm.js", - "ts-node-script": "dist/bin-script.js", - "ts-node-transpile-only": "dist/bin-transpile.js", - "ts-script": "dist/bin-script-deprecated.js" - }, - "peerDependencies": { - "@swc/core": ">=1.2.50", - "@swc/wasm": ">=1.2.50", - "@types/node": "*", - "typescript": ">=2.7" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true + "dependencies": { + "acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "dev": true }, - "@swc/wasm": { - "optional": true + "acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true } } }, - "node_modules/ts-node/node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/tsconfig-paths": { + "tsconfig-paths": { "version": "3.14.2", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", "dev": true, - "dependencies": { + "requires": { "@types/json5": "^0.0.29", "json5": "^1.0.2", "minimist": "^1.2.6", "strip-bom": "^3.0.0" } }, - "node_modules/tsconfig-paths/node_modules/json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, - "node_modules/tsconfig-paths/node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/tslib": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz", - "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==" + "tslib": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.0.tgz", + "integrity": "sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==" }, - "node_modules/tsutils": { + "tsutils": { "version": "3.21.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", "dev": true, - "dependencies": { + "requires": { "tslib": "^1.8.1" }, - "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } } }, - "node_modules/tsutils/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, - "node_modules/tty-browserify": { + "tty-browserify": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.1.tgz", "integrity": "sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==", "dev": true }, - "node_modules/type-check": { + "type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, - "dependencies": { + "requires": { "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" } }, - "node_modules/type-detect": { + "type-detect": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true, - "engines": { - "node": ">=4" - } + "dev": true }, - "node_modules/type-fest": { + "type-fest": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "dev": true + }, + "typed-array-byte-offset": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", + "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", + "requires": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" } }, - "node_modules/typed-array-length": { + "typed-array-length": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", - "dependencies": { + "requires": { "call-bind": "^1.0.2", "for-each": "^0.3.3", "is-typed-array": "^1.1.9" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/typedarray": { + "typedarray": { "version": "0.0.6", "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", "dev": true }, - "node_modules/typescript": { + "typescript": { "version": "4.9.5", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } + "dev": true }, - "node_modules/umd": { + "umd": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/umd/-/umd-3.0.3.tgz", "integrity": "sha512-4IcGSufhFshvLNcMCV80UnQVlZ5pMOC8mvNPForqwA4+lzYQuetTESLDQkeLmihq8bRcnpbQa48Wb8Lh16/xow==", - "dev": true, - "bin": { - "umd": "bin/cli.js" - } + "dev": true }, - "node_modules/unbox-primitive": { + "unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dependencies": { + "requires": { "call-bind": "^1.0.2", "has-bigints": "^1.0.2", "has-symbols": "^1.0.3", "which-boxed-primitive": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/unbzip2-stream": { + "unbzip2-stream": { "version": "1.4.3", "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz", "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==", "dev": true, - "dependencies": { + "requires": { "buffer": "^5.2.1", "through": "^2.3.8" } }, - "node_modules/undeclared-identifiers": { + "undeclared-identifiers": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/undeclared-identifiers/-/undeclared-identifiers-1.1.3.tgz", "integrity": "sha512-pJOW4nxjlmfwKApE4zvxLScM/njmwj/DiUBv7EabwE4O8kRUy+HIwxQtZLBPll/jx1LJyBcqNfB3/cpv9EZwOw==", "dev": true, - "dependencies": { + "requires": { "acorn-node": "^1.3.0", "dash-ast": "^1.0.0", "get-assigned-identifiers": "^1.2.0", "simple-concat": "^1.0.0", "xtend": "^4.0.1" - }, - "bin": { - "undeclared-identifiers": "bin.js" } }, - "node_modules/update-browserslist-db": { + "update-browserslist-db": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { + "requires": { "escalade": "^3.1.1", "picocolors": "^1.0.0" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" } }, - "node_modules/uri-js": { + "uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dependencies": { + "requires": { "punycode": "^2.1.0" } }, - "node_modules/uri-js/node_modules/punycode": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", - "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", - "engines": { - "node": ">=6" - } - }, - "node_modules/urijs": { + "urijs": { "version": "1.19.11", "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz", "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==" }, - "node_modules/url": { + "url": { "version": "0.11.1", "resolved": "https://registry.npmjs.org/url/-/url-0.11.1.tgz", "integrity": "sha512-rWS3H04/+mzzJkv0eZ7vEDGiQbgquI1fGfOad6zKvgYQi1SzMmhl7c/DdRGxhaWrVH6z0qWITo8rpnxK/RfEhA==", "dev": true, - "dependencies": { + "requires": { "punycode": "^1.4.1", "qs": "^6.11.0" + }, + "dependencies": { + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", + "dev": true + } } }, - "node_modules/util": { + "util": { "version": "0.10.4", "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", "dev": true, - "dependencies": { + "requires": { "inherits": "2.0.3" + }, + "dependencies": { + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", + "dev": true + } } }, - "node_modules/util-deprecate": { + "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true }, - "node_modules/util/node_modules/inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", - "dev": true - }, - "node_modules/utility-types": { + "utility-types": { "version": "3.10.0", "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", - "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==", - "engines": { - "node": ">= 4" - } + "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==" }, - "node_modules/v8-compile-cache-lib": { + "v8-compile-cache-lib": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", "dev": true }, - "node_modules/v8-to-istanbul": { + "v8-to-istanbul": { "version": "9.1.0", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz", "integrity": "sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==", "dev": true, - "dependencies": { + "requires": { "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", "convert-source-map": "^1.6.0" }, - "engines": { - "node": ">=10.12.0" + "dependencies": { + "convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + } } }, - "node_modules/v8-to-istanbul/node_modules/convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", - "dev": true - }, - "node_modules/vm-browserify": { + "vm-browserify": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", "dev": true }, - "node_modules/walker": { + "walker": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", "dev": true, - "dependencies": { + "requires": { "makeerror": "1.0.12" } }, - "node_modules/watchpack": { + "watchpack": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", "dev": true, - "dependencies": { + "requires": { "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.1.2" - }, - "engines": { - "node": ">=10.13.0" } }, - "node_modules/webapi-parser": { + "webapi-parser": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/webapi-parser/-/webapi-parser-0.5.0.tgz", "integrity": "sha512-fPt6XuMqLSvBz8exwX4QE1UT+pROLHa00EMDCdO0ybICduwQ1V4f7AWX4pNOpCp+x+0FjczEsOxtQU0d8L3QKw==", - "dependencies": { + "requires": { "ajv": "6.5.2" - } - }, - "node_modules/webapi-parser/node_modules/ajv": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.2.tgz", - "integrity": "sha512-hOs7GfvI6tUI1LfZddH82ky6mOMyTuY0mk7kE2pWpmhhUSkumzaTO5vbVwij39MdwPQWCV4Zv57Eo06NtL/GVA==", + }, "dependencies": { - "fast-deep-equal": "^2.0.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.1" + "ajv": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.2.tgz", + "integrity": "sha512-hOs7GfvI6tUI1LfZddH82ky6mOMyTuY0mk7kE2pWpmhhUSkumzaTO5vbVwij39MdwPQWCV4Zv57Eo06NtL/GVA==", + "requires": { + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.1" + } + }, + "fast-deep-equal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w==" + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + } } }, - "node_modules/webapi-parser/node_modules/fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w==" - }, - "node_modules/webapi-parser/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - }, - "node_modules/webidl-conversions": { + "webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" }, - "node_modules/webpack": { - "version": "5.86.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.86.0.tgz", - "integrity": "sha512-3BOvworZ8SO/D4GVP+GoRC3fVeg5MO4vzmq8TJJEkdmopxyazGDxN8ClqN12uzrZW9Tv8EED8v5VSb6Sqyi0pg==", + "webpack": { + "version": "5.88.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.88.1.tgz", + "integrity": "sha512-FROX3TxQnC/ox4N+3xQoWZzvGXSuscxR32rbzjpXgEzWudJFEJBpdlkkob2ylrv5yzzufD1zph1OoFsLtm6stQ==", "dev": true, - "dependencies": { + "requires": { "@types/eslint-scope": "^3.7.3", "@types/estree": "^1.0.0", "@webassemblyjs/ast": "^1.11.5", @@ -10643,7 +8243,7 @@ "acorn-import-assertions": "^1.9.0", "browserslist": "^4.14.5", "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.14.1", + "enhanced-resolve": "^5.15.0", "es-module-lexer": "^1.2.1", "eslint-scope": "5.1.1", "events": "^3.2.0", @@ -10653,34 +8253,33 @@ "loader-runner": "^4.2.0", "mime-types": "^2.1.27", "neo-async": "^2.6.2", - "schema-utils": "^3.1.2", + "schema-utils": "^3.2.0", "tapable": "^2.1.1", "terser-webpack-plugin": "^5.3.7", "watchpack": "^2.4.0", "webpack-sources": "^3.2.3" }, - "bin": { - "webpack": "bin/webpack.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependenciesMeta": { - "webpack-cli": { - "optional": true + "dependencies": { + "acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "dev": true + }, + "events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true } } }, - "node_modules/webpack-bundle-analyzer": { + "webpack-bundle-analyzer": { "version": "4.9.0", "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.9.0.tgz", "integrity": "sha512-+bXGmO1LyiNx0i9enBu3H8mv42sj/BJWhZNFwjz92tVnBa9J3JMGo2an2IXlEleoDOPn/Hofl5hr/xCpObUDtw==", "dev": true, - "dependencies": { + "requires": { "@discoveryjs/json-ext": "0.5.7", "acorn": "^8.0.4", "acorn-walk": "^8.0.0", @@ -10692,58 +8291,39 @@ "sirv": "^1.0.7", "ws": "^7.3.1" }, - "bin": { - "webpack-bundle-analyzer": "lib/bin/analyzer.js" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/webpack-bundle-analyzer/node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/webpack-bundle-analyzer/node_modules/commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "dev": true, - "engines": { - "node": ">= 10" - } - }, - "node_modules/webpack-bundle-analyzer/node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "dev": true, - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true + "dependencies": { + "acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "dev": true }, - "utf-8-validate": { - "optional": true + "acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true + }, + "commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true + }, + "ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "dev": true } } }, - "node_modules/webpack-cli": { + "webpack-cli": { "version": "4.10.0", "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.10.0.tgz", "integrity": "sha512-NLhDfH/h4O6UOy+0LSso42xvYypClINuMNBVVzX4vX98TmTaTUxwRbXdhucbFMd2qLaCTcLq/PdYrvi8onw90w==", "dev": true, - "dependencies": { + "requires": { "@discoveryjs/json-ext": "^0.5.0", "@webpack-cli/configtest": "^1.2.0", "@webpack-cli/info": "^1.5.0", @@ -10757,234 +8337,137 @@ "rechoir": "^0.7.0", "webpack-merge": "^5.7.3" }, - "bin": { - "webpack-cli": "bin/cli.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "4.x.x || 5.x.x" - }, - "peerDependenciesMeta": { - "@webpack-cli/generators": { - "optional": true - }, - "@webpack-cli/migrate": { - "optional": true - }, - "webpack-bundle-analyzer": { - "optional": true - }, - "webpack-dev-server": { - "optional": true + "dependencies": { + "commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true } } }, - "node_modules/webpack-cli/node_modules/commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "dev": true, - "engines": { - "node": ">= 10" - } - }, - "node_modules/webpack-merge": { + "webpack-merge": { "version": "5.9.0", "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.9.0.tgz", "integrity": "sha512-6NbRQw4+Sy50vYNTw7EyOn41OZItPiXB8GNv3INSoe3PSFaHJEz3SHTrYVaRm2LilNGnFUzh0FAwqPEmU/CwDg==", "dev": true, - "dependencies": { + "requires": { "clone-deep": "^4.0.1", "wildcard": "^2.0.0" - }, - "engines": { - "node": ">=10.0.0" } }, - "node_modules/webpack-sources": { + "webpack-sources": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", - "dev": true, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/webpack/node_modules/events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "dev": true, - "engines": { - "node": ">=0.8.x" - } + "dev": true }, - "node_modules/whatwg-url": { + "whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dependencies": { + "requires": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" } }, - "node_modules/which": { + "which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, - "dependencies": { + "requires": { "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" } }, - "node_modules/which-boxed-primitive": { + "which-boxed-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dependencies": { + "requires": { "is-bigint": "^1.0.1", "is-boolean-object": "^1.1.0", "is-number-object": "^1.0.4", "is-string": "^1.0.5", "is-symbol": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/which-typed-array": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", - "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", - "dependencies": { + "which-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.10.tgz", + "integrity": "sha512-uxoA5vLUfRPdjCuJ1h5LlYdmTLbYfums398v3WLkM+i/Wltl2/XyZpQWKbN++ck5L64SR/grOHqtXCUKmlZPNA==", + "requires": { "available-typed-arrays": "^1.0.5", "call-bind": "^1.0.2", "for-each": "^0.3.3", "gopd": "^1.0.1", "has-tostringtag": "^1.0.0", "is-typed-array": "^1.1.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/wildcard": { + "wildcard": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==", "dev": true }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrap-ansi": { + "wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "dependencies": { + "requires": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrappy": { + "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", "dev": true }, - "node_modules/write-file-atomic": { + "write-file-atomic": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, - "dependencies": { + "requires": { "imurmurhash": "^0.1.4", "signal-exit": "^3.0.7" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, - "node_modules/ws": { + "ws": { "version": "8.8.1", "resolved": "https://registry.npmjs.org/ws/-/ws-8.8.1.tgz", "integrity": "sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==", - "dev": true, - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } + "dev": true }, - "node_modules/xtend": { + "xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true, - "engines": { - "node": ">=0.4" - } + "dev": true }, - "node_modules/y18n": { + "y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "engines": { - "node": ">=10" - } + "dev": true }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true }, - "node_modules/yargs": { + "yargs": { "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, - "dependencies": { + "requires": { "cliui": "^8.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", @@ -10992,50 +8475,35 @@ "string-width": "^4.2.3", "y18n": "^5.0.5", "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" } }, - "node_modules/yargs-parser": { + "yargs-parser": { "version": "21.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, - "engines": { - "node": ">=12" - } + "dev": true }, - "node_modules/yauzl": { + "yauzl": { "version": "2.10.0", "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", "dev": true, - "dependencies": { + "requires": { "buffer-crc32": "~0.2.3", "fd-slicer": "~1.1.0" } }, - "node_modules/yn": { + "yn": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true, - "engines": { - "node": ">=6" - } + "dev": true }, - "node_modules/yocto-queue": { + "yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "dev": true } } } diff --git a/package.json b/package.json index cefdd8888..2572ff354 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "2.0.3", + "version": "2.1.0-next-major-spec.1", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From ff5ba20000b784771890d7f0ce54ada5fd539dca Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Tue, 18 Jul 2023 13:00:37 +0200 Subject: [PATCH 069/126] chore: revert adding schema parsers back to this repository (#802) --- src/schema-parser/avro-schema-parser.ts | 354 -------------- src/schema-parser/openapi-schema-parser.ts | 106 ----- src/schema-parser/openapi/schema_v3.ts | 275 ----------- src/schema-parser/raml-schema-parser.ts | 59 --- .../avro/asyncapi-avro-1.8.2.json | 22 - ...capi-avro-1.9.0-additional-attributes.json | 33 -- .../avro/asyncapi-avro-1.9.0-bindings.json | 56 --- .../avro/asyncapi-avro-1.9.0-namespace.json | 25 - .../avro/asyncapi-avro-1.9.0.json | 24 - .../avro/asyncapi-avro-111-1.9.0.json | 106 ----- .../avro/asyncapi-avro-113-1.9.0.json | 39 -- .../avro/asyncapi-avro-148-1.9.0.json | 67 --- .../avro/asyncapi-avro-broken.json | 24 - .../avro/asyncapi-avro-invalid.json | 6 - .../avro/avro-schema-parser.spec.ts | 441 ------------------ test/schema-parser/openapi/invalid.json | 13 - .../openapi/openapi-schema-parser.spec.ts | 89 ---- test/schema-parser/openapi/valid.json | 50 -- test/schema-parser/raml/complex.json | 90 ---- test/schema-parser/raml/invalid.json | 13 - .../raml/raml-schema-parser.spec.ts | 74 --- test/schema-parser/raml/simple.json | 21 - 22 files changed, 1987 deletions(-) delete mode 100644 src/schema-parser/avro-schema-parser.ts delete mode 100644 src/schema-parser/openapi-schema-parser.ts delete mode 100644 src/schema-parser/openapi/schema_v3.ts delete mode 100644 src/schema-parser/raml-schema-parser.ts delete mode 100644 test/schema-parser/avro/asyncapi-avro-1.8.2.json delete mode 100644 test/schema-parser/avro/asyncapi-avro-1.9.0-additional-attributes.json delete mode 100644 test/schema-parser/avro/asyncapi-avro-1.9.0-bindings.json delete mode 100644 test/schema-parser/avro/asyncapi-avro-1.9.0-namespace.json delete mode 100644 test/schema-parser/avro/asyncapi-avro-1.9.0.json delete mode 100644 test/schema-parser/avro/asyncapi-avro-111-1.9.0.json delete mode 100644 test/schema-parser/avro/asyncapi-avro-113-1.9.0.json delete mode 100644 test/schema-parser/avro/asyncapi-avro-148-1.9.0.json delete mode 100644 test/schema-parser/avro/asyncapi-avro-broken.json delete mode 100644 test/schema-parser/avro/asyncapi-avro-invalid.json delete mode 100644 test/schema-parser/avro/avro-schema-parser.spec.ts delete mode 100644 test/schema-parser/openapi/invalid.json delete mode 100644 test/schema-parser/openapi/openapi-schema-parser.spec.ts delete mode 100644 test/schema-parser/openapi/valid.json delete mode 100644 test/schema-parser/raml/complex.json delete mode 100644 test/schema-parser/raml/invalid.json delete mode 100644 test/schema-parser/raml/raml-schema-parser.spec.ts delete mode 100644 test/schema-parser/raml/simple.json diff --git a/src/schema-parser/avro-schema-parser.ts b/src/schema-parser/avro-schema-parser.ts deleted file mode 100644 index f81f395ef..000000000 --- a/src/schema-parser/avro-schema-parser.ts +++ /dev/null @@ -1,354 +0,0 @@ -import avsc from 'avsc'; - -import type { JSONSchema7TypeName } from 'json-schema'; -import type { Schema } from 'avsc'; -import type { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from '../schema-parser'; -import type { AsyncAPISchema, SchemaValidateResult } from '../types'; - -import type { v2 } from '../spec-types'; - -type AvroSchema = Schema & { [key: string]: any }; - -export function AvroSchemaParser(): SchemaParser { - return { - validate, - parse, - getMimeTypes, - }; -} - -async function validate(input: ValidateSchemaInput): Promise { - const result: SchemaValidateResult[] = []; - - try { - validateAvroSchema(input.data as AvroSchema); - } catch (error) { - if (error instanceof Error) { - result.push({ - message: error.message, - path: input.path, // avsc doesn't throw errors with meaningful paths - }); - } - } - - return result; -} - -async function parse(input: ParseSchemaInput): Promise { - const asyncAPISchema = await avroToJsonSchema(input.data as AvroSchema); - - // TODO: Should the following modifications to the message object be done in the caller and for all parsers rather than here? - // remove that function when https://github.com/asyncapi/spec/issues/622 will be introduced in AsyncAPI spec - const message = (input.meta as any).message; - const key = message?.bindings?.kafka?.key; - if (key) { - const bindingsTransformed = await avroToJsonSchema(key); - message['x-parser-original-bindings-kafka-key'] = key; - message.bindings.kafka.key = bindingsTransformed; - } - - return asyncAPISchema; -} - -function getMimeTypes() { - return [ - 'application/vnd.apache.avro;version=1.9.0', - 'application/vnd.apache.avro+json;version=1.9.0', - 'application/vnd.apache.avro+yaml;version=1.9.0', - 'application/vnd.apache.avro;version=1.8.2', - 'application/vnd.apache.avro+json;version=1.8.2', - 'application/vnd.apache.avro+yaml;version=1.8.2' - ]; -} - -const BYTES_PATTERN = '^[\u0000-\u00ff]*$'; -const INT_MIN = Math.pow(-2, 31); -const INT_MAX = Math.pow(2, 31) - 1; -const LONG_MIN = Math.pow(-2, 63); -const LONG_MAX = Math.pow(2, 63) - 1; - -const typeMappings: Record = { - null: 'null', - boolean: 'boolean', - int: 'integer', - long: 'integer', - float: 'number', - double: 'number', - bytes: 'string', - string: 'string', - fixed: 'string', - map: 'object', - array: 'array', - enum: 'string', - record: 'object', - uuid: 'string', -}; - -function commonAttributesMapping(avroDefinition: AvroSchema, jsonSchema: v2.AsyncAPISchemaDefinition, recordCache: { [key:string]: AsyncAPISchema }): void { - if (avroDefinition.doc) jsonSchema.description = avroDefinition.doc; - if (avroDefinition.default !== undefined) jsonSchema.default = avroDefinition.default; - - const fullyQualifiedName = getFullyQualifiedName(avroDefinition); - if (fullyQualifiedName !== undefined && recordCache[fullyQualifiedName]) { - jsonSchema['x-parser-schema-id'] = fullyQualifiedName; - } -} - -function getFullyQualifiedName(avroDefinition: AvroSchema) { - let name; - - if (avroDefinition.name) { - if (avroDefinition.namespace) { - name = `${avroDefinition.namespace}.${avroDefinition.name}`; - } else { - name = avroDefinition.name; - } - } - - return name; -} - -/** - * Enrich the parent's required attribute with the required record attributes - * @param fieldDefinition the actual field definition - * @param parentJsonSchema the parent json schema which contains the required property to enrich - * @param haveDefaultValue we assure that a required field does not have a default value - */ -function requiredAttributesMapping(fieldDefinition: any, parentJsonSchema: v2.AsyncAPISchemaDefinition, haveDefaultValue: boolean): void { - const isUnionWithNull = Array.isArray(fieldDefinition.type) && fieldDefinition.type.includes('null'); - - // we assume that a union type without null and a field without default value is required - if (!isUnionWithNull && !haveDefaultValue) { - parentJsonSchema.required = parentJsonSchema.required || []; - parentJsonSchema.required.push(fieldDefinition.name); - } -} - -function extractNonNullableTypeIfNeeded(typeInput: any, jsonSchemaInput: v2.AsyncAPISchemaDefinition): { type: string, jsonSchema: v2.AsyncAPISchemaDefinition } { - let type = typeInput; - let jsonSchema = jsonSchemaInput; - // Map example to first non-null type - if (Array.isArray(typeInput) && typeInput.length > 0) { - const pickSecondType = typeInput.length > 1 && typeInput[0] === 'null'; - type = typeInput[+pickSecondType]; - if (jsonSchema.oneOf !== undefined) { - jsonSchema = jsonSchema.oneOf[0] as v2.AsyncAPISchemaDefinition; - } - } - return { type, jsonSchema }; -} - -function exampleAttributeMapping(type: any, example: any, jsonSchema: v2.AsyncAPISchemaDefinition): void { - if (example === undefined || jsonSchema.examples || Array.isArray(type)) return; - - switch (type) { - case 'boolean': - jsonSchema.examples = [example === 'true']; - break; - case 'int': - jsonSchema.examples = [parseInt(example, 10)]; - break; - default: - jsonSchema.examples = [example]; - } -} - -function additionalAttributesMapping(typeInput: any, avroDefinition: AvroSchema, jsonSchemaInput: v2.AsyncAPISchemaDefinition): void { - const __ret = extractNonNullableTypeIfNeeded(typeInput, jsonSchemaInput); - const type = __ret.type; - const jsonSchema = __ret.jsonSchema; - - exampleAttributeMapping(type, avroDefinition.example, jsonSchema); - - function setAdditionalAttribute(...names: string[]) { - names.forEach(name => { - let isValueCoherent = true; - if (name === 'minLength' || name === 'maxLength') { - isValueCoherent = avroDefinition[name] > -1; - } else if (name === 'multipleOf') { - isValueCoherent = avroDefinition[name] > 0; - } - if (avroDefinition[name] !== undefined && isValueCoherent) jsonSchema[name] = avroDefinition[name]; - }); - } - - switch (type) { - case 'int': // int, long, float, and double must support the attributes bellow - case 'long': - case 'float': - case 'double': - setAdditionalAttribute('minimum', 'maximum', 'exclusiveMinimum', 'exclusiveMaximum', 'multipleOf'); - break; - case 'string': - if (avroDefinition.logicalType) { - jsonSchema.format = avroDefinition.logicalType; - } - setAdditionalAttribute('pattern', 'minLength', 'maxLength'); - break; - case 'array': - setAdditionalAttribute('minItems', 'maxItems', 'uniqueItems'); - break; - default: - break; - } -} - -function validateAvroSchema(avroDefinition: AvroSchema): void | never { - // don't need to use the output from parsing the - // avro definition - we're just using this as a - // validator as this will throw an exception if - // there are any problems with the definition - avsc.Type.forSchema(avroDefinition); -} - -/** - * Cache the passed value under the given key. If the key is undefined the value will not be cached. This function - * uses mutation of the passed cache object rather than a copy on write cache strategy. - * - * @param cache Map the cache to store the JsonSchema - * @param key String | Undefined - the fully qualified name of an avro record - * @param value JsonSchema - The json schema from the avro record - */ -function cacheAvroRecordDef(cache: { [key:string]: AsyncAPISchema }, key: string, value: AsyncAPISchema): void { - if (key !== undefined) { - cache[key] = value; - } -} - -async function convertAvroToJsonSchema(avroDefinition: AvroSchema , isTopLevel: boolean, recordCache: Map | any = {}): Promise { - let jsonSchema: v2.AsyncAPISchemaDefinition = {}; - const isUnion = Array.isArray(avroDefinition); - - if (isUnion) { - return processUnionSchema(jsonSchema, avroDefinition, isTopLevel, recordCache); - } - - // Avro definition can be a string (e.g. "int") - // or an object like { type: "int" } - const type = avroDefinition.type || avroDefinition; - jsonSchema.type = typeMappings[type]; - - switch (type) { - case 'int': { - jsonSchema.minimum = INT_MIN; - jsonSchema.maximum = INT_MAX; - break; - } - case 'long': { - jsonSchema.minimum = LONG_MIN; - jsonSchema.maximum = LONG_MAX; - break; - } - case 'bytes': { - jsonSchema.pattern = BYTES_PATTERN; - break; - } - case 'fixed': { - jsonSchema.pattern = BYTES_PATTERN; - jsonSchema.minLength = avroDefinition.size; - jsonSchema.maxLength = avroDefinition.size; - break; - } - case 'map': { - jsonSchema.additionalProperties = await convertAvroToJsonSchema(avroDefinition.values, false); - break; - } - case 'array': { - jsonSchema.items = await convertAvroToJsonSchema(avroDefinition.items, false); - break; - } - case 'enum': { - jsonSchema.enum = avroDefinition.symbols; - break; - } - case 'float': // float and double must support the format attribute from the avro type - case 'double': { - jsonSchema.format = type; - break; - } - case 'record': { - const propsMap = await processRecordSchema(avroDefinition, recordCache, jsonSchema); - cacheAvroRecordDef(recordCache, getFullyQualifiedName(avroDefinition), propsMap); - jsonSchema.properties = Object.fromEntries(propsMap.entries()); - break; - } - default: { - const cachedRecord = recordCache[getFullyQualifiedName(avroDefinition)]; - if (cachedRecord) { - jsonSchema = cachedRecord; - } - break; - } - } - - commonAttributesMapping(avroDefinition, jsonSchema, recordCache); - additionalAttributesMapping(type, avroDefinition, jsonSchema); - - return jsonSchema; -} - -/** - * When a record type is found in an avro schema this function can be used to process the underlying fields and return - * the map of props contained by the record. The record will also be cached. - * - * @param avroDefinition the avro schema to be processed - * @param recordCache the cache of previously processed avro record types - * @param jsonSchema the schema for the record. - * @returns {Promise>} - */ -async function processRecordSchema(avroDefinition: AvroSchema, recordCache: Record, jsonSchema: v2.AsyncAPISchemaDefinition): Promise> { - const propsMap = new Map(); - for (const field of avroDefinition.fields) { - // If the type is a sub schema it will have been stored in the cache. - if (recordCache[field.type]) { - propsMap.set(field.name, recordCache[field.type]); - } else { - const def = await convertAvroToJsonSchema(field.type, false, recordCache); - - requiredAttributesMapping(field, jsonSchema, field.default !== undefined); - commonAttributesMapping(field, def, recordCache); - additionalAttributesMapping(field.type, field, def); - - propsMap.set(field.name, def); - // If there is a name for the sub record cache it under the name. - const qualifiedFieldName = getFullyQualifiedName(field.type); - cacheAvroRecordDef(recordCache, qualifiedFieldName, def); - } - } - return propsMap; -} - -/** - * Handles processing union avro schema types by creating a oneOf jsonSchema definition. This will mutate the passed - * jsonSchema and recordCache objects. - * - * @param jsonSchema the jsonSchema object that will be mutated. - * @param avroDefinition the avro schema to be processed - * @param isTopLevel is this the top level of the schema or is this a sub schema - * @param recordCache the cache of previously processed record types - * @returns {Promise} the mutated jsonSchema that was provided to the function - */ -async function processUnionSchema(jsonSchema: v2.AsyncAPISchemaDefinition, avroDefinition: AvroSchema, isTopLevel: boolean, recordCache: Record): Promise { - jsonSchema.oneOf = []; - let nullDef = null; - for (const avroDef of avroDefinition as any) { - const def = await convertAvroToJsonSchema(avroDef, isTopLevel, recordCache); - // avroDef can be { type: 'int', default: 1 } and this is why avroDef.type has priority here - const defType = avroDef.type || avroDef; - // To prefer non-null values in the examples skip null definition here and push it as the last element after loop - if (defType === 'null') { - nullDef = def; - } else { - jsonSchema.oneOf.push(def); - const qualifiedName = getFullyQualifiedName(avroDef); - cacheAvroRecordDef(recordCache, qualifiedName, def); - } - } - if (nullDef) jsonSchema.oneOf.push(nullDef); - - return jsonSchema; -} - -export async function avroToJsonSchema(avroDefinition: AvroSchema) { - return convertAvroToJsonSchema(avroDefinition, true); -} diff --git a/src/schema-parser/openapi-schema-parser.ts b/src/schema-parser/openapi-schema-parser.ts deleted file mode 100644 index 42ea8d3d9..000000000 --- a/src/schema-parser/openapi-schema-parser.ts +++ /dev/null @@ -1,106 +0,0 @@ -import Ajv from 'ajv'; -import { schemaV3 } from './openapi/schema_v3'; - -// eslint-disable-next-line @typescript-eslint/no-var-requires -const toJsonSchema = require('@openapi-contrib/openapi-schema-to-json-schema'); - -import type { ErrorObject, ValidateFunction } from 'ajv'; -import type { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from '../schema-parser'; -import type { AsyncAPISchema, SchemaValidateResult } from '../types'; - -const ajv = new Ajv({ - allErrors: true, - strict: false, - logger: false, -}); -ajv.addSchema(schemaV3, 'openapi'); - -export function OpenAPISchemaParser(): SchemaParser { - return { - validate, - parse, - getMimeTypes, - }; -} - -async function validate(input: ValidateSchemaInput): Promise { - const validator = ajv.getSchema('openapi') as ValidateFunction; - - let result: SchemaValidateResult[] = []; - const valid = validator(input.data); - if (!valid && validator.errors) { - result = ajvToSpectralResult(input.path, [...validator.errors]); - } - - return result; -} - -async function parse(input: ParseSchemaInput): Promise { - const transformed = toJsonSchema(input.data, { - cloneSchema: true, - keepNotSupported: [ - 'discriminator', - 'readOnly', - 'writeOnly', - 'deprecated', - 'xml', - 'example', - ], - }); - - iterateSchema(transformed); - return transformed; -} - -function getMimeTypes() { - return [ - 'application/vnd.oai.openapi;version=3.0.0', - 'application/vnd.oai.openapi+json;version=3.0.0', - 'application/vnd.oai.openapi+yaml;version=3.0.0', - ]; -} - -function ajvToSpectralResult(path: Array, errors: ErrorObject[]): SchemaValidateResult[] { - return errors.map(error => { - return { - message: error.message, - path: [...path, ...error.instancePath.replace(/^\//, '').split('/')], - }; - }) as SchemaValidateResult[]; -} - -function iterateSchema(schema: any) { - if (schema.example !== undefined) { - const examples = schema.examples || []; - examples.push(schema.example); - schema.examples = examples; - delete schema.example; - } - - if (schema.$schema !== undefined) { - delete schema.$schema; - } - - aliasProps(schema.properties); - aliasProps(schema.patternProperties); - aliasProps(schema.additionalProperties); - aliasProps(schema.items); - aliasProps(schema.additionalItems); - aliasProps(schema.oneOf); - aliasProps(schema.anyOf); - aliasProps(schema.allOf); - aliasProps(schema.not); -} - -function aliasProps(obj: any) { - for (const key in obj) { - const prop = obj[key]; - - if (prop.xml !== undefined) { - prop['x-xml'] = prop.xml; - delete prop.xml; - } - - iterateSchema(obj[key]); - } -} diff --git a/src/schema-parser/openapi/schema_v3.ts b/src/schema-parser/openapi/schema_v3.ts deleted file mode 100644 index 3689984c5..000000000 --- a/src/schema-parser/openapi/schema_v3.ts +++ /dev/null @@ -1,275 +0,0 @@ -/* eslint-disable */ -// From https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json -export const schemaV3 ={ - type: 'object', - definitions: { - Reference: { - type: 'object', - required: ['$ref'], - patternProperties: { - '^\\$ref$': { - type: 'string', - format: 'uri-reference' - } - } - }, - Discriminator: { - type: 'object', - required: ['propertyName'], - properties: { - propertyName: { - type: 'string' - }, - mapping: { - type: 'object', - additionalProperties: { - type: 'string' - } - } - } - }, - ExternalDocumentation: { - type: 'object', - required: ['url'], - properties: { - description: { - type: 'string' - }, - url: { - type: 'string', - format: 'uri-reference' - } - }, - patternProperties: { - '^x-': {} - }, - additionalProperties: false - }, - XML: { - type: 'object', - properties: { - name: { - type: 'string' - }, - namespace: { - type: 'string', - format: 'uri' - }, - prefix: { - type: 'string' - }, - attribute: { - type: 'boolean', - default: false - }, - wrapped: { - type: 'boolean', - default: false - } - }, - patternProperties: { - '^x-': {} - }, - additionalProperties: false - } - }, - properties: { - title: { - type: 'string' - }, - multipleOf: { - type: 'number', - exclusiveMinimum: 0 - }, - maximum: { - type: 'number' - }, - exclusiveMaximum: { - type: 'boolean', - default: false - }, - minimum: { - type: 'number' - }, - exclusiveMinimum: { - type: 'boolean', - default: false - }, - maxLength: { - type: 'integer', - minimum: 0 - }, - minLength: { - type: 'integer', - minimum: 0, - default: 0 - }, - pattern: { - type: 'string', - format: 'regex' - }, - maxItems: { - type: 'integer', - minimum: 0 - }, - minItems: { - type: 'integer', - minimum: 0, - default: 0 - }, - uniqueItems: { - type: 'boolean', - default: false - }, - maxProperties: { - type: 'integer', - minimum: 0 - }, - minProperties: { - type: 'integer', - minimum: 0, - default: 0 - }, - required: { - type: 'array', - items: { - type: 'string' - }, - minItems: 1, - uniqueItems: true - }, - enum: { - type: 'array', - items: {}, - minItems: 1, - uniqueItems: false - }, - type: { - type: 'string', - enum: ['array', 'boolean', 'integer', 'number', 'object', 'string'] - }, - not: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - } - ] - }, - allOf: { - type: 'array', - items: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - } - ] - } - }, - oneOf: { - type: 'array', - items: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - } - ] - } - }, - anyOf: { - type: 'array', - items: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - } - ] - } - }, - items: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - } - ] - }, - properties: { - type: 'object', - additionalProperties: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - } - ] - } - }, - additionalProperties: { - oneOf: [ - { - $ref: '#' - }, - { - $ref: '#/definitions/Reference' - }, - { - type: 'boolean' - } - ], - default: true - }, - description: { - type: 'string' - }, - format: { - type: 'string' - }, - default: {}, - nullable: { - type: 'boolean', - default: false - }, - discriminator: { - $ref: '#/definitions/Discriminator' - }, - readOnly: { - type: 'boolean', - default: false - }, - writeOnly: { - type: 'boolean', - default: false - }, - example: {}, - externalDocs: { - $ref: '#/definitions/ExternalDocumentation' - }, - deprecated: { - type: 'boolean', - default: false - }, - xml: { - $ref: '#/definitions/XML' - } - }, - patternProperties: { - '^x-': {} - }, - additionalProperties: false -}; \ No newline at end of file diff --git a/src/schema-parser/raml-schema-parser.ts b/src/schema-parser/raml-schema-parser.ts deleted file mode 100644 index 55127021b..000000000 --- a/src/schema-parser/raml-schema-parser.ts +++ /dev/null @@ -1,59 +0,0 @@ -import yaml from 'js-yaml'; -import * as lib from 'webapi-parser'; - -/* eslint-disable */ -const wap = lib.WebApiParser; -const r2j = require('ramldt2jsonschema'); -/* eslint-enable */ - -import type { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from '../schema-parser'; -import type { AsyncAPISchema, SchemaValidateResult } from '../types'; - -export function RamlSchemaParser(): SchemaParser { - return { - validate, - parse, - getMimeTypes, - }; -} - -async function parse(input: ParseSchemaInput): Promise { - const payload = formatPayload(input.data); - - // Draft 6 is compatible with 7. - const jsonModel = await r2j.dt2js(payload, 'tmpType', { draft: '06' }); - return jsonModel.definitions.tmpType; -} - -function getMimeTypes() { - return [ - 'application/raml+yaml;version=1.0', - ]; -} - -async function validate(input: ValidateSchemaInput): Promise { - const payload = formatPayload(input.data); - const parsed = await wap.raml10.parse(payload); - const report = await wap.raml10.validate(parsed); - if (report.conforms) { - // No errors found. - return []; - } - - const validateResult: SchemaValidateResult[] = []; - report.results.forEach(result => { - validateResult.push({ - message: result.message, - path: input.path, // RAML parser doesn't provide a path to the error. - }); - }); - - return validateResult; -} - -function formatPayload(payload: unknown): string { - if (typeof payload === 'object') { - return `#%RAML 1.0 Library\n${yaml.dump({ types: { tmpType: payload } })}`; - } - return payload as string; -} \ No newline at end of file diff --git a/test/schema-parser/avro/asyncapi-avro-1.8.2.json b/test/schema-parser/avro/asyncapi-avro-1.8.2.json deleted file mode 100644 index beca0196d..000000000 --- a/test/schema-parser/avro/asyncapi-avro-1.8.2.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "schemaFormat": "application/vnd.apache.avro;version=1.8.2", - "payload": { - "type": "record", - "fields": [ - {"name": "name", "type": "string", "example": "Donkey"}, - {"name": "age", "type": ["null", "int"], "default": null}, - { - "name": "favoriteProgrammingLanguage", - "type": {"name": "ProgrammingLanguage", "type": "enum", "symbols": ["JS", "Java", "Go", "Rust", "C"]} - }, - { - "name": "address", - "type": { - "name": "Address", - "type": "record", - "fields": [{"name": "zipcode", "type": "int", "example": 53003}] - } - } - ] - } -} \ No newline at end of file diff --git a/test/schema-parser/avro/asyncapi-avro-1.9.0-additional-attributes.json b/test/schema-parser/avro/asyncapi-avro-1.9.0-additional-attributes.json deleted file mode 100644 index 56c767390..000000000 --- a/test/schema-parser/avro/asyncapi-avro-1.9.0-additional-attributes.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "schemaFormat": "application/vnd.apache.avro;version=1.9.0", - "payload": { - "name": "Person", - "namespace": "com.company", - "type": "record", - "fields": [ - {"name": "name", "type": "string", "example": "Donkey", "minLength": 0}, - {"name": "serialNo", "type": "string", "minLength": 0, "maxLength": 50}, - {"name": "email", "type": ["null","string"], "example": "donkey@asyncapi.com", "pattern": "^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$"}, - {"name": "age", "type": ["null", "int"], "default": null, "example": 123, "exclusiveMinimum": 0, "exclusiveMaximum": 200}, - { - "name": "favoriteProgrammingLanguage", - "type": {"name": "ProgrammingLanguage", "type": "enum", "symbols": ["JS", "Java", "Go", "Rust", "C"], "default": "JS"} - }, - {"name": "certifications", "type": {"type": "array", "items": "string", "minItems": 1, "maxItems": 500, "uniqueItems": true}}, - { - "name": "address", - "type": { - "name": "Address", - "type": "record", - "fields": [ - {"name": "zipcode", "type": "int", "example": 53003}, - {"name": "country", "type": ["null", "string"]} - ] - } - }, - {"name": "weight", "type": "float", "example": 65.1, "minimum": 0, "maximum": 500}, - {"name": "height", "type": "double", "example": 1.85, "minimum": 0, "maximum": 3.0}, - {"name": "someid", "type": "string", "logicalType": "uuid"} - ] - } -} \ No newline at end of file diff --git a/test/schema-parser/avro/asyncapi-avro-1.9.0-bindings.json b/test/schema-parser/avro/asyncapi-avro-1.9.0-bindings.json deleted file mode 100644 index c86d03670..000000000 --- a/test/schema-parser/avro/asyncapi-avro-1.9.0-bindings.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "schemaFormat": "application/vnd.apache.avro;version=1.9.0", - "payload": { - "name": "Person", - "namespace": "com.company", - "type": "record", - "fields": [ - {"name": "name", "type": "string", "example": "Donkey"}, - {"name": "age", "type": ["null", "int"], "default": null, "example": 123}, - { - "name": "favoriteProgrammingLanguage", - "type": {"name": "ProgrammingLanguage", "type": "enum", "symbols": ["JS", "Java", "Go", "Rust", "C"], "default": "JS"} - }, - { - "name": "address", - "type": { - "name": "Address", - "type": "record", - "fields": [{"name": "zipcode", "type": "int", "example": 53003}] - } - }, - {"name": "someid", "type": "string", "logicalType": "uuid"} - ] - }, - "bindings": { - "kafka": { - "key": { - "name": "Person", - "namespace": "com.company", - "type": "record", - "fields": [ - {"name": "name", "type": "string", "example": "Donkey"}, - {"name": "age", "type": ["null", "int"], "default": null, "example": 123}, - { - "name": "favoriteProgrammingLanguage", - "type": {"name": "ProgrammingLanguage", "type": "enum", "symbols": ["JS", "Java", "Go", "Rust", "C"], "default": "JS"} - }, - { - "name": "address", - "type": { - "name": "Address", - "type": "record", - "fields": [{"name": "zipcode", "type": "int", "example": 53003}] - } - }, - {"name": "someid", "type": "string", "logicalType": "uuid"} - ] - } - }, - "mqtt": { - "x-test": { - "type": "string" - } - } - } -} \ No newline at end of file diff --git a/test/schema-parser/avro/asyncapi-avro-1.9.0-namespace.json b/test/schema-parser/avro/asyncapi-avro-1.9.0-namespace.json deleted file mode 100644 index bea78bf34..000000000 --- a/test/schema-parser/avro/asyncapi-avro-1.9.0-namespace.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "schemaFormat": "application/vnd.apache.avro;version=1.9.0", - "payload": { - "name": "Person", - "namespace": "com.company", - "type": "record", - "fields": [ - {"name": "name", "type": "string", "example": "Donkey"}, - {"name": "age", "type": ["null", "int"], "default": null, "example": 123}, - { - "name": "favoriteProgrammingLanguage", - "type": {"name": "ProgrammingLanguage", "type": "enum", "symbols": ["JS", "Java", "Go", "Rust", "C"], "default": "JS"} - }, - { - "name": "address", - "type": { - "name": "Address", - "type": "record", - "fields": [{"name": "zipcode", "type": "int", "example": 53003}] - } - }, - {"name": "someid", "type": "string", "logicalType": "uuid"} - ] - } -} \ No newline at end of file diff --git a/test/schema-parser/avro/asyncapi-avro-1.9.0.json b/test/schema-parser/avro/asyncapi-avro-1.9.0.json deleted file mode 100644 index 5667d0510..000000000 --- a/test/schema-parser/avro/asyncapi-avro-1.9.0.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "schemaFormat": "application/vnd.apache.avro;version=1.9.0", - "payload": { - "name": "Person", - "type": "record", - "fields": [ - {"name": "name", "type": "string", "example": "Donkey"}, - {"name": "age", "type": ["null", "int"], "default": null, "example": 123}, - { - "name": "favoriteProgrammingLanguage", - "type": {"name": "ProgrammingLanguage", "type": "enum", "symbols": ["JS", "Java", "Go", "Rust", "C"], "default": "JS"} - }, - { - "name": "address", - "type": { - "name": "Address", - "type": "record", - "fields": [{"name": "zipcode", "type": "int", "example": 53003}] - } - }, - {"name": "someid", "type": "string", "logicalType": "uuid"} - ] - } -} \ No newline at end of file diff --git a/test/schema-parser/avro/asyncapi-avro-111-1.9.0.json b/test/schema-parser/avro/asyncapi-avro-111-1.9.0.json deleted file mode 100644 index d0eff6813..000000000 --- a/test/schema-parser/avro/asyncapi-avro-111-1.9.0.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "schemaFormat": "application/vnd.apache.avro;version=1.9.0", - "payload": { - "type": "record", - "name": "ConnectionRequested", - "namespace": "com.foo.connections", - "doc": "An example schema to illustrate the issue", - "fields": [ - { - "name": "metadata", - "type": { - "type": "record", - "name": "EventMetadata", - "namespace": "com.foo", - "doc": "Metadata to be associated with every published event", - "fields": [ - { - "name": "id", - "type": { - "type": "string", - "logicalType": "uuid" - }, - "doc": "Unique identifier for this specific event" - }, - { - "name": "timestamp", - "type": { - "type": "long", - "logicalType": "timestamp-millis" - }, - "doc": "Instant the event took place (not necessary when it was published)" - }, - { - "name": "correlation_id", - "type": [ - "null", - { - "type": "string", - "logicalType": "uuid" - } - ], - "doc": "id of the event that resulted in this\nevent being published (optional)", - "default": null - }, - { - "name": "publisher_context", - "type": [ - "null", - { - "type": "map", - "values": { - "type": "string", - "avro.java.string": "String" - }, - "avro.java.string": "String" - } - ], - "doc": "optional set of key-value pairs of context to be echoed back\nin any resulting message (like a richer\ncorrelationId.\n\nThese values are likely only meaningful to the publisher\nof the correlated event", - "default": null - } - ] - } - }, - { - "name": "auth_code", - "type": { - "type": "record", - "name": "EncryptedString", - "namespace": "com.foo", - "doc": "A string that was encrypted with AES (using CTR mode), its key encrypted with RSA, and the nonce used for the encryption.", - "fields": [ - { - "name": "value", - "type": "string", - "doc": "A sequence of bytes that has been AES encrypted in CTR mode." - }, - { - "name": "nonce", - "type": "string", - "doc": "A nonce, used by the CTR encryption mode for our encrypted value. Not encrypted, not a secret." - }, - { - "name": "key", - "type": "string", - "doc": "An AES key, used to encrypt the value field, that has itself been encrypted using RSA." - } - ] - }, - "doc": "Encrypted auth_code received when user authorizes the app." - }, - { - "name": "refresh_token", - "type": "com.foo.EncryptedString", - "doc": "Encrypted refresh_token generated by using clientId and clientSecret." - }, - { - "name": "triggered_by", - "type": { - "type": "string", - "logicalType": "uuid" - }, - "doc": "ID of the user who triggered this event." - } - ] - } -} \ No newline at end of file diff --git a/test/schema-parser/avro/asyncapi-avro-113-1.9.0.json b/test/schema-parser/avro/asyncapi-avro-113-1.9.0.json deleted file mode 100644 index 8f139ade8..000000000 --- a/test/schema-parser/avro/asyncapi-avro-113-1.9.0.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "schemaFormat": "application/vnd.apache.avro;version=1.9.0", - "payload": [ - { - "type": "record", - "name": "Address", - "namespace": "com.example", - "fields": [ - { - "name": "streetaddress", - "type": "string" - }, - { - "name": "city", - "type": "string" - } - ] - }, - { - "type": "record", - "name": "Person", - "namespace": "com.example", - "fields": [ - { - "name": "firstname", - "type": "string" - }, - { - "name": "lastname", - "type": "string" - }, - { - "name": "address", - "type": "com.example.Address" - } - ] - } - ] -} \ No newline at end of file diff --git a/test/schema-parser/avro/asyncapi-avro-148-1.9.0.json b/test/schema-parser/avro/asyncapi-avro-148-1.9.0.json deleted file mode 100644 index 7bf12c833..000000000 --- a/test/schema-parser/avro/asyncapi-avro-148-1.9.0.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "schemaFormat": "application/vnd.apache.avro;version=1.9.0", - "payload": { - "type":"record", - "name":"RecordWithReferences", - "namespace":"com.example", - "fields":[ - { - "name":"Record1", - "type":{ - "type":"record", - "name":"Record1", - "doc":"Reused in other fields", - "fields":[ - { - "name":"string", - "type":"string", - "doc":"field in Record1" - } - ] - } - }, - { - "name":"FieldThatDefineRecordInUnion", - "type":[ - "null", - { - "type":"record", - "name":"RecordDefinedInUnion", - "namespace":"com.example.model", - "doc":"", - "fields":[ - { - "name":"number", - "type":"long", - "doc":"field in RecordDefinedInUnion", - "minimum": 0, - "maximum": 2 - } - ] - } - ], - "default":null - }, - { - "name":"FieldThatReuseRecordDefinedInUnion", - "type":[ - "null", - "com.example.model.RecordDefinedInUnion" - ], - "default":null - }, - { - "name":"FieldThatReuseRecord1", - "type":[ - "null", - "Record1" - ], - "default":null - }, - { - "name": "simpleField", - "type": "string" - } - ] - } -} \ No newline at end of file diff --git a/test/schema-parser/avro/asyncapi-avro-broken.json b/test/schema-parser/avro/asyncapi-avro-broken.json deleted file mode 100644 index 7b51ce3ec..000000000 --- a/test/schema-parser/avro/asyncapi-avro-broken.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "schemaFormat": "application/vnd.apache.avro;version=1.9.0", - "payload": { - "name": "Person", - "type": "record", - "fields": [ - {"name": "name", "type": "string", "example": "Donkey"}, - {"name": "age", "type": ["null", "int"], "default": null, "example": "123"}, - { - "name": "favoriteProgrammingLanguage", - "type": {"name": "ProgrammingLanguage", "type": "enum", "symbols": ["JS", "Java", "Go", "Rust", "C"], "default": "JS"} - }, - { - "name": "address", - "type": { - "name": "Address", - "type": "record", - "fields": [{"name": "zipcode", "type": "notAValidAvroType", "example": "53003"}] - } - }, - {"name": "someid", "type": "string", "logicalType": "uuid"} - ] - } -} \ No newline at end of file diff --git a/test/schema-parser/avro/asyncapi-avro-invalid.json b/test/schema-parser/avro/asyncapi-avro-invalid.json deleted file mode 100644 index ab504a1c1..000000000 --- a/test/schema-parser/avro/asyncapi-avro-invalid.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "schemaFormat": "application/vnd.apache.avro;version=1.9.0", - "payload": { - "isThisAnAvroSchema": "no" - } -} \ No newline at end of file diff --git a/test/schema-parser/avro/avro-schema-parser.spec.ts b/test/schema-parser/avro/avro-schema-parser.spec.ts deleted file mode 100644 index 41ff8118c..000000000 --- a/test/schema-parser/avro/avro-schema-parser.spec.ts +++ /dev/null @@ -1,441 +0,0 @@ -import fs from 'fs'; -import path from 'path'; -import { AvroSchemaParser, avroToJsonSchema } from '../../../src/schema-parser/avro-schema-parser'; - -import type { ParseSchemaInput } from '../../../src/schema-parser'; - -const inputWithAvro182 = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.8.2.json'), 'utf8')); -const outputWithAvro182 = '{"type":"object","required":["name","favoriteProgrammingLanguage","address"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"]},"address":{"type":"object","x-parser-schema-id":"Address","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}}}}'; - -const inputWithAvro190 = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.9.0.json'), 'utf8')); -const outputWithAvro190 = '{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","x-parser-schema-id":"Address","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"Person"}'; - -const inputWithAvro190WithNamespace = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.9.0-namespace.json'), 'utf8')); -const outputWithAvro190WithNamespace = '{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","x-parser-schema-id":"Address","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"}'; - -const inputWithAvro190WithBindings = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.9.0-bindings.json'), 'utf8')); -const outputWithAvro190WithBindings = '{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","x-parser-schema-id":"Address","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"}'; -const outputWithAvro190WithBindingsKafkaKeyTransformed = '{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}},"x-parser-schema-id":"Address"},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"}'; -const outputWithAvro190WithBindingsKafkaKeyOriginal = '{"name":"Person","namespace":"com.company","type":"record","fields":[{"name":"name","type":"string","example":"Donkey"},{"name":"age","type":["null","int"],"default":null,"example":123},{"name":"favoriteProgrammingLanguage","type":{"name":"ProgrammingLanguage","type":"enum","symbols":["JS","Java","Go","Rust","C"],"default":"JS"}},{"name":"address","type":{"name":"Address","type":"record","fields":[{"name":"zipcode","type":"int","example":53003}]}},{"name":"someid","type":"string","logicalType":"uuid"}]}'; - -const inputWithAvroAdditionalAttributes = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.9.0-additional-attributes.json'), 'utf8')); -const outputWithAvroAdditionalAttributes = '{"type":"object","required":["name","serialNo","favoriteProgrammingLanguage","certifications","address","weight","height","someid"],"properties":{"name":{"type":"string","examples":["Donkey"],"minLength":0},"serialNo":{"type":"string","minLength":0,"maxLength":50},"email":{"oneOf":[{"type":"string","examples":["donkey@asyncapi.com"],"pattern":"^[\\\\w-\\\\.]+@([\\\\w-]+\\\\.)+[\\\\w-]{2,4}$"},{"type":"null"}]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123],"exclusiveMinimum":0,"exclusiveMaximum":200},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"certifications":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":500,"uniqueItems":true},"address":{"type":"object","x-parser-schema-id":"Address","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]},"country":{"oneOf":[{"type":"string"},{"type":"null"}]}}},"weight":{"type":"number","format":"float","examples":[65.1],"minimum":0,"maximum":500},"height":{"type":"number","format":"double","examples":[1.85],"minimum":0,"maximum":3},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"}'; - -const inputWithInvalidAvro = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-invalid.json'), 'utf8')); -const inputWithBrokenAvro = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-broken.json'), 'utf8')); - -const inputWithSubAvro190 = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-111-1.9.0.json'), 'utf8')); -const outputWithSubAvro190 = '{"type":"object","required":["metadata","auth_code","triggered_by"],"properties":{"metadata":{"type":"object","x-parser-schema-id":"com.foo.EventMetadata","required":["id","timestamp"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for this specific event"},"timestamp":{"type":"integer","minimum":-9223372036854776000,"maximum":9223372036854776000,"description":"Instant the event took place (not necessary when it was published)"},"correlation_id":{"oneOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"id of the event that resulted in this\\nevent being published (optional)","default":null},"publisher_context":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"null"}],"description":"optional set of key-value pairs of context to be echoed back\\nin any resulting message (like a richer\\ncorrelationId.\\n\\nThese values are likely only meaningful to the publisher\\nof the correlated event","default":null}},"description":"Metadata to be associated with every published event"},"auth_code":{"type":"object","x-parser-schema-id":"com.foo.EncryptedString","required":["value","nonce","key"],"properties":{"value":{"type":"string","description":"A sequence of bytes that has been AES encrypted in CTR mode."},"nonce":{"type":"string","description":"A nonce, used by the CTR encryption mode for our encrypted value. Not encrypted, not a secret."},"key":{"type":"string","description":"An AES key, used to encrypt the value field, that has itself been encrypted using RSA."}},"description":"Encrypted auth_code received when user authorizes the app."},"refresh_token":{"type":"object","required":["value","nonce","key"],"properties":{"value":{"type":"string","description":"A sequence of bytes that has been AES encrypted in CTR mode."},"nonce":{"type":"string","description":"A nonce, used by the CTR encryption mode for our encrypted value. Not encrypted, not a secret."},"key":{"type":"string","description":"An AES key, used to encrypt the value field, that has itself been encrypted using RSA."}},"description":"Encrypted auth_code received when user authorizes the app.","x-parser-schema-id":"com.foo.EncryptedString"},"triggered_by":{"type":"string","format":"uuid","description":"ID of the user who triggered this event."}},"description":"An example schema to illustrate the issue","x-parser-schema-id":"com.foo.connections.ConnectionRequested"}'; - -const inputWithOneOfReferenceAvro190 = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-113-1.9.0.json'), 'utf8')); -const outputWithOneOfReferenceAvro190 = '{"oneOf":[{"type":"object","required":["streetaddress","city"],"properties":{"streetaddress":{"type":"string"},"city":{"type":"string"}},"x-parser-schema-id":"com.example.Address"},{"type":"object","required":["firstname","lastname"],"properties":{"firstname":{"type":"string"},"lastname":{"type":"string"},"address":{"type":"object","required":["streetaddress","city"],"properties":{"streetaddress":{"type":"string"},"city":{"type":"string"}},"x-parser-schema-id":"com.example.Address"}},"x-parser-schema-id":"com.example.Person"}]}'; - -const inputWithRecordReferencesAvro190 = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-148-1.9.0.json'), 'utf8')); -const outputWithRecordReferencesAvro190 = '{"type":"object","required":["Record1","simpleField"],"properties":{"Record1":{"type":"object","required":["string"],"properties":{"string":{"type":"string","description":"field in Record1"}},"description":"Reused in other fields","x-parser-schema-id":"Record1"},"FieldThatDefineRecordInUnion":{"oneOf":[{"type":"object","required":["number"],"properties":{"number":{"type":"integer","minimum":0,"maximum":2,"description":"field in RecordDefinedInUnion"}},"x-parser-schema-id":"com.example.model.RecordDefinedInUnion"},{"type":"null"}],"default":null},"FieldThatReuseRecordDefinedInUnion":{"oneOf":[{},{"type":"null"}],"default":null},"FieldThatReuseRecord1":{"oneOf":[{},{"type":"null"}],"default":null},"simpleField":{"type":"string"}},"x-parser-schema-id":"com.example.RecordWithReferences"}'; - -describe('AvroSchemaParser', function () { - const parser = AvroSchemaParser(); - - it('should return Mime Types', async function () { - expect(parser.getMimeTypes()).not.toEqual([]); - }); - - it('should parse Avro schema 1.8.2', async function() { - await doTest(inputWithAvro182, outputWithAvro182); - }); - - it('should parse Avro schema 1.9.0', async function() { - await doTest(inputWithAvro190, outputWithAvro190); - }); - - it('should parse Avro schema 1.9.0 with a namespace', async function() { - await doTest(inputWithAvro190WithNamespace, outputWithAvro190WithNamespace); - }); - - it('should parse Avro schema in kafka bindings', async function() { - const input = {...inputWithAvro190WithBindings}; - const result = await parser.parse(input); - - // Check that the return value of parse() is the expected JSON Schema. - expect(result).toEqual(JSON.parse(outputWithAvro190WithBindings)); - - // Check that the message got modified, i.e. adding extensions, setting the payload, etc. - const message = (input.meta as any).message; - expect(JSON.stringify(message.bindings.kafka.key)).toEqual(outputWithAvro190WithBindingsKafkaKeyTransformed); - expect(JSON.stringify(message['x-parser-original-bindings-kafka-key'])).toEqual(outputWithAvro190WithBindingsKafkaKeyOriginal); - }); - - it('should handle additional Avro attributes like', async function() { - await doTest(inputWithAvroAdditionalAttributes, outputWithAvroAdditionalAttributes); - }); - - it('should validate invalid Avro schemas as invalid', async function() { - const result = await parser.validate(inputWithInvalidAvro); - expect(result).toEqual([{message: 'unknown type: undefined', path: []}]); - }); - - it('should validate valid Avro schemas', async function() { - const result = await parser.validate(inputWithAvro182); - expect(result).toHaveLength(0); - }); - - it('should identify bugs in Avro schemas', async function() { - const result = await parser.validate(inputWithBrokenAvro); - expect(result).toEqual([{message: 'undefined type name: notAValidAvroType', path: []}]); - }); - - it('Issue #111 should handle pre defined records in schemas', async function() { - await doTest(inputWithSubAvro190, outputWithSubAvro190); - }); - - it('Issue #113 should handle pre defined records in top level oneOf schema', async function() { - await doTest(inputWithOneOfReferenceAvro190, outputWithOneOfReferenceAvro190); - }); - - it('Issue #148 should handle records references in a top level record', async function() { - await doTest(inputWithRecordReferencesAvro190, outputWithRecordReferencesAvro190); - }); - - async function doTest(originalInput: ParseSchemaInput, expectedOutput: any) { - const input = {...originalInput}; - const result = await parser.parse(input); - - // Check that the return value of parse() is the expected JSON Schema. - expect(result).toEqual(JSON.parse(expectedOutput)); - } -}); - -const BYTES_PATTERN = '^[\u0000-\u00ff]*$'; -const INT_MIN = Math.pow(-2, 31); -const INT_MAX = Math.pow(2, 31) - 1; -const LONG_MIN = Math.pow(-2, 63); -const LONG_MAX = Math.pow(2, 63) - 1; - -describe('avroToJsonSchema()', function () { - it('transforms null values', async function () { - const result = await avroToJsonSchema({type: 'null'}); - expect(result).toEqual({type: 'null'}); - }); - - it('transforms boolean values', async function () { - const result = await avroToJsonSchema({type: 'boolean'}); - expect(result).toEqual({type: 'boolean'}); - }); - - it('transforms int values', async function () { - const result = await avroToJsonSchema({type: 'int'}); - expect(result).toEqual({type: 'integer', minimum: INT_MIN, maximum: INT_MAX}); - }); - - it('transforms long values', async function () { - const result = await avroToJsonSchema({type: 'long'}); - expect(result).toEqual({type: 'integer', minimum: LONG_MIN, maximum: LONG_MAX}); - }); - - it('transforms float values', async function () { - const result = await avroToJsonSchema({type: 'float'}); - expect(result).toEqual({type: 'number', format: 'float'}); - }); - - it('transforms double values', async function () { - const result = await avroToJsonSchema({type: 'double'}); - expect(result).toEqual({type: 'number', format: 'double'}); - }); - - it('transforms bytes values', async function () { - const result = await avroToJsonSchema({type: 'bytes'}); - expect(result).toEqual({type: 'string', pattern: BYTES_PATTERN}); - }); - - it('transforms string values', async function () { - const result = await avroToJsonSchema({type: 'string'}); - expect(result).toEqual({type: 'string'}); - }); - - it('transforms fixed values', async function () { - const schema = {type: 'fixed', size: 5}; - const result = await avroToJsonSchema(schema as any); - expect(result).toEqual({type: 'string', pattern: BYTES_PATTERN, minLength: 5, maxLength: 5}); - }); - - it('transforms union values', async function () { - const result = await avroToJsonSchema(['null', 'int']); - expect(result).toEqual({oneOf: [{type: 'integer', minimum: INT_MIN, maximum: INT_MAX}, {type: 'null'}]}); - }); - - it('transforms map values', async function () { - const result = await avroToJsonSchema({type: 'map', values: 'long'}); - expect(result).toEqual({ - type: 'object', - additionalProperties: {type: 'integer', minimum: LONG_MIN, maximum: LONG_MAX} - }); - }); - - it('transforms array values', async function () { - const result = await avroToJsonSchema({type: 'array', items: 'long'}); - expect(result).toEqual({type: 'array', items: {type: 'integer', minimum: LONG_MIN, maximum: LONG_MAX}}); - }); - - it('transforms enum values', async function () { - const schema = { - type: 'enum', - doc: 'My test enum', - symbols: ['one', 'two', 'three'], - default: 'one' - }; - - const result = await avroToJsonSchema(schema as any); - expect(result).toEqual({ - type: 'string', - enum: ['one', 'two', 'three'], - default: 'one', - description: 'My test enum' - }); - }); - - it('transforms record values', async function () { - const result = await avroToJsonSchema({ - type: 'record', - doc: 'My test record', - name: 'MyName', - fields: [ - {name: 'key1', type: 'long', doc: 'Key1 docs'}, - {name: 'key2', type: 'string', default: 'value2', doc: 'Key2 docs'}, - ] - }); - expect(result).toEqual({ - type: 'object', - 'x-parser-schema-id': 'MyName', - description: 'My test record', - required: ['key1'], - properties: { - key1: { - type: 'integer', - minimum: LONG_MIN, - maximum: LONG_MAX, - description: 'Key1 docs', - }, - key2: { - type: 'string', - default: 'value2', - description: 'Key2 docs', - }, - } - }); - }); - - it('assigns default values correctly in types and fields', async function () { - expect( - await avroToJsonSchema({type: 'int', default: 1}) - ).toEqual({type: 'integer', minimum: INT_MIN, maximum: INT_MAX, default: 1}); - - const schema = {type: 'record', fields: [{name: 'field1', type: 'string', default: 'AsyncAPI rocks!'}]}; - expect( - await avroToJsonSchema(schema as any) - ).toEqual({ - type: 'object', - properties: {field1: {type: 'string', default: 'AsyncAPI rocks!'}} - }); - }); - - it('treats array Avro documents as unions', async function () { - expect( - await avroToJsonSchema([{type: 'int', default: 1}, 'string']) - ).toEqual({ - oneOf: [ - {type: 'integer', minimum: INT_MIN, maximum: INT_MAX, default: 1}, - {type: 'string'}, - ] - }); - }); - - it('support record references', async function () { - const result = await avroToJsonSchema({ - type: 'record', - doc: 'My test record', - name: 'MyName', - fields: [ - { - name: 'key1', - type: {type: 'record', name: 'recordKey1', doc: 'Key1 docs', fields: [{type: 'string', name: 'test'}]} - }, - {name: 'key2', type: {type: 'record', fields: [{name: 'recordReference', type: 'recordKey1'}]}}, - ] - } as any); - expect(result).toEqual({ - description: 'My test record', - properties: { - key1: { - description: 'Key1 docs', - properties: { - test: { - type: 'string' - } - }, - required: [ - 'test' - ], - type: 'object', - 'x-parser-schema-id': 'recordKey1' - }, - key2: { - properties: { - recordReference: { - description: 'Key1 docs', - properties: { - test: { - type: 'string' - } - }, - required: [ - 'test' - ], - type: 'object', - 'x-parser-schema-id': 'recordKey1' - } - }, - type: 'object' - } - }, - required: [ - 'key1', - 'key2' - ], - type: 'object', - 'x-parser-schema-id': 'MyName' - }); - }); -}); - -function toParseInput(raw: string): ParseSchemaInput { - const message = JSON.parse(raw); - return { - asyncapi: { - semver: { - version: '2.4.0', - major: 2, - minor: 4, - patch: 0 - }, - source: '', - parsed: {} as any, - }, - data: message.payload, - meta: { - message, - }, - path: [], - schemaFormat: message.schemaFormat, - defaultSchemaFormat: 'application/vnd.aai.asyncapi;version=2.4.0', - }; -} - -describe('supportExampleAttribute', function () { - it('transforms example on union values', async function () { - const schema = { - type: 'record', - name: 'MyName', - fields: [ - {name: 'example', type: ['null', 'int'], example: 3} - ] - }; - const result = await avroToJsonSchema(schema as any); - expect(result).toEqual({ - type: 'object', - 'x-parser-schema-id': 'MyName', - properties: { - example: { - oneOf: [{ - type: 'integer', - minimum: INT_MIN, - maximum: INT_MAX, - examples: [3] - }, { - type: 'null' - } - ] - } - } - }); - }); -}); - -describe('requiredAttributesMapping()', function () { - it('support required fields', async function () { - const result = await avroToJsonSchema({ - type: 'record', - doc: 'My test record', - name: 'MyName', - fields: [ - {name: 'required1', type: ['int', 'long']}, - {name: 'required2', type: ['long']}, - {name: 'notRequiredBecauseDefault', type: 'string', default: 'value2'}, - {name: 'notRequiredBecauseUnionWithNull', type: ['null', 'string']}, - ] - }); - expect(result).toMatchObject({ - type: 'object', - 'x-parser-schema-id': 'MyName', - description: 'My test record', - required: ['required1', 'required2'] - }); - }); -}); - -describe('additionalAttributesMapping()', function () { - it('support minimum and maximum for float', async function () { - const result = await avroToJsonSchema({type: 'float', minimum: 0, maximum: 10}); - expect(result).toEqual({type: 'number', format: 'float', minimum: 0, maximum: 10}); - }); - - it('support exclusiveMinimum and exclusiveMaximum for float', async function () { - const result = await avroToJsonSchema({type: 'float', exclusiveMinimum: 0, exclusiveMaximum: 10}); - expect(result).toEqual({type: 'number', format: 'float', exclusiveMinimum: 0, exclusiveMaximum: 10}); - }); - - it('support minimum and maximum for double', async function () { - const result = await avroToJsonSchema({type: 'double', minimum: 0, maximum: 10}); - expect(result).toEqual({type: 'number', format: 'double', minimum: 0, maximum: 10}); - }); - - it('support exclusiveMinimum and exclusiveMaximum for double', async function () { - const result = await avroToJsonSchema({type: 'double', exclusiveMinimum: 0, exclusiveMaximum: 10}); - expect(result).toMatchObject({type: 'number', format: 'double', exclusiveMinimum: 0, exclusiveMaximum: 10}); - }); - - it('support minimum and maximum for long and int', async function () { - let result = await avroToJsonSchema({type: 'long', minimum: 0, maximum: 10}); - expect(result).toEqual({type: 'integer', minimum: 0, maximum: 10}); - - result = await avroToJsonSchema({type: 'int', minimum: 0, maximum: 10}); - expect(result).toEqual({type: 'integer', minimum: 0, maximum: 10}); - }); - - it('long and int type support exclusiveMinimum and exclusiveMaximum', async function () { - let result = await avroToJsonSchema({type: 'long', exclusiveMinimum: 0, exclusiveMaximum: 10}); - expect(result).toMatchObject({type: 'integer', exclusiveMinimum: 0, exclusiveMaximum: 10}); - - result = await avroToJsonSchema({type: 'int', exclusiveMinimum: 0, exclusiveMaximum: 10}); - expect(result).toMatchObject({type: 'integer', exclusiveMinimum: 0, exclusiveMaximum: 10}); - }); - - it('support pattern, minLength and maxLength for string', async function () { - const result = await avroToJsonSchema({type: 'string', pattern: '$pattern^', minLength: 1, maxLength: 10}); - expect(result).toEqual({type: 'string', pattern: '$pattern^', minLength: 1, maxLength: 10}); - }); - - it('handle non-negative integer value for minLength and maxLength', async function () { - const result = await avroToJsonSchema({type: 'string', minLength: -1, maxLength: -110}); - expect(result).toEqual({type: 'string'}); - }); - - it('support minItems and maxItems for array', async function () { - const result = await avroToJsonSchema({type: 'array', items: 'long', minItems: 0, maxItems: 10}); - expect(result).toMatchObject({type: 'array', items: {type: 'integer'}, minItems: 0, maxItems: 10}); - }); - - it('support uniqueItems for array', async function () { - const result = await avroToJsonSchema({type: 'array', items: 'long', uniqueItems: true}); - expect(result).toMatchObject({type: 'array', items: {type: 'integer'}, uniqueItems: true}); - }); -}); \ No newline at end of file diff --git a/test/schema-parser/openapi/invalid.json b/test/schema-parser/openapi/invalid.json deleted file mode 100644 index 838c5a61d..000000000 --- a/test/schema-parser/openapi/invalid.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "schemaFormat":"application/vnd.oai.openapi;version=3.0.0", - "payload": { - "properties": { - "name": { - "type": "nonexistent" - }, - "surname": { - "format": {} - } - } - } -} \ No newline at end of file diff --git a/test/schema-parser/openapi/openapi-schema-parser.spec.ts b/test/schema-parser/openapi/openapi-schema-parser.spec.ts deleted file mode 100644 index 7165ab916..000000000 --- a/test/schema-parser/openapi/openapi-schema-parser.spec.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { OpenAPISchemaParser } from '../../../src/schema-parser/openapi-schema-parser'; -import * as fs from 'fs'; -import * as path from 'path'; - -import type { ParseSchemaInput, ValidateSchemaInput } from '../../../src/schema-parser'; - -const inputWithValidOpenApi3 = toParseInput(fs.readFileSync(path.resolve(__dirname, './valid.json'), 'utf8')); -const outputWithValidOpenApi3 = '{"type":["object","null"],"properties":{"name":{"type":"string"},"discriminatorTest":{"discriminator":{"propertyName":"objectType"},"oneOf":[{"type":"object","properties":{"objectType":{"type":"string"},"prop1":{"type":"string"}}},{"type":"object","properties":{"objectType":{"type":"string"},"prop2":{"type":"string"}}}]},"test":{"type":"object","properties":{"testing":{"type":"string"}}}},"examples":[{"name":"Fran"}]}'; - -const inputWithInvalidOpenApi3 = toParseInput(fs.readFileSync(path.resolve(__dirname, './invalid.json'), 'utf8')); - -describe('OpenAPISchemaParser', function () { - const parser = OpenAPISchemaParser(); - - it('should return Mime Types', async function () { - expect(parser.getMimeTypes()).not.toEqual([]); - }); - - it('should parse OpenAPI 3', async function() { - await doParseTest(inputWithValidOpenApi3, outputWithValidOpenApi3); - }); - - it('should validate valid OpenAPI 3', async function() { - const result = await parser.validate(inputWithValidOpenApi3); - expect(result).toHaveLength(0); - }); - - it('should validate invalid OpenAPI 3', async function() { - const result = await parser.validate(inputWithInvalidOpenApi3); - expect(result).toHaveLength(6); - expect(result).toEqual([ - { - message: 'must be equal to one of the allowed values', - path: ['channels', 'myChannel', 'publish', 'message', 'payload', 'properties', 'name', 'type'] - }, - { - message: 'must have required property \'$ref\'', - path: ['channels', 'myChannel', 'publish', 'message', 'payload', 'properties', 'name'] - }, - { - message: 'must match exactly one schema in oneOf', - path: ['channels', 'myChannel', 'publish', 'message', 'payload', 'properties','name'] - }, - { - message: 'must be string', - path: ['channels', 'myChannel', 'publish', 'message', 'payload', 'properties','surname','format'] - }, - { - message: 'must have required property \'$ref\'', - path: ['channels', 'myChannel', 'publish', 'message', 'payload', 'properties','surname'] - }, - { - message: 'must match exactly one schema in oneOf', - path: ['channels', 'myChannel', 'publish', 'message', 'payload', 'properties','surname'] - } - ]); - }); - - async function doParseTest(originalInput: ParseSchemaInput, expectedOutput: any) { - const input = {...originalInput}; - const result = await parser.parse(input); - - // Check that the return value of parse() is the expected JSON Schema. - expect(result).toEqual(JSON.parse(expectedOutput)); - } -}); - -function toParseInput(raw: string): ParseSchemaInput | ValidateSchemaInput { - const message = JSON.parse(raw); - return { - asyncapi: { - semver: { - version: '2.4.0', - major: 2, - minor: 4, - patch: 0 - }, - source: '', - parsed: {} as any, - }, - data: message.payload, - meta: { - message, - }, - path: ['channels', 'myChannel', 'publish', 'message', 'payload'], - schemaFormat: message.schemaFormat, - defaultSchemaFormat: 'application/vnd.aai.asyncapi;version=2.4.0', - }; -} diff --git a/test/schema-parser/openapi/valid.json b/test/schema-parser/openapi/valid.json deleted file mode 100644 index b1f8ecad4..000000000 --- a/test/schema-parser/openapi/valid.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "schemaFormat":"application/vnd.oai.openapi;version=3.0.0", - "payload":{ - "type":"object", - "nullable":true, - "example":{ - "name":"Fran" - }, - "properties":{ - "name":{ - "type":"string" - }, - "discriminatorTest":{ - "discriminator":{"propertyName": "objectType"}, - "oneOf":[ - { - "type":"object", - "properties":{ - "objectType":{ - "type":"string" - }, - "prop1":{ - "type":"string" - } - } - }, - { - "type":"object", - "properties":{ - "objectType":{ - "type":"string" - }, - "prop2":{ - "type":"string" - } - } - } - ] - }, - "test":{ - "type":"object", - "properties":{ - "testing":{ - "type":"string" - } - } - } - } - } - } \ No newline at end of file diff --git a/test/schema-parser/raml/complex.json b/test/schema-parser/raml/complex.json deleted file mode 100644 index f7cac2385..000000000 --- a/test/schema-parser/raml/complex.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "schemaFormat": "application/raml+yaml;version=1.0", - "payload": - { - "type": - [ - "CatWithAddress", - "CatWithCity" - ], - "minProperties": 1, - "maxProperties": 50, - "additionalProperties": false, - "discriminator": "breed", - "discriminatorValue": "CatOne", - "properties": - { - "proscons": - { - "type": "CatPros | CatCons", - "required": true - }, - "name": - { - "type": "CatName", - "amazing": true - }, - "breed": - { - "type": "CatBreed" - }, - "age": "CatAge", - "rating": - { - "type": "integer", - "multipleOf": 5, - "example": - { - "displayName": "Cat's rating", - "description": "Rating of cat's awesomeness", - "strict": false, - "value": 50 - } - }, - "year_of_birth": "date-only", - "time_of_birth": "time-only", - "dt_of_birth": - { - "type": "datetime-only", - "required": false - }, - "addition_date": - { - "type": "datetime", - "format": "rfc2616" - }, - "removal_date": - { - "type": "datetime" - }, - "photo": - { - "type": "file", - "fileTypes": - [ - "image/jpeg", - "image/png" - ], - "minLength": 1, - "maxLength": 307200 - }, - "description": "nil", - "habits?": "string", - "character": "nil | string", - "siblings": "string[]", - "parents": "CatName[]", - "ratingHistory": "(integer | number)[]", - "additionalData": - { - "type": - { - "type": "object", - "properties": - { - "weight": "number" - } - } - } - } - } -} \ No newline at end of file diff --git a/test/schema-parser/raml/invalid.json b/test/schema-parser/raml/invalid.json deleted file mode 100644 index 1ed399fb7..000000000 --- a/test/schema-parser/raml/invalid.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "schemaFormat": "application/raml+yaml;version=1.0", - "payload": { - "type": "object", - "properties": { - "title": "string", - "author": { - "type": "string", - "examples": "test" - } - } - } -} \ No newline at end of file diff --git a/test/schema-parser/raml/raml-schema-parser.spec.ts b/test/schema-parser/raml/raml-schema-parser.spec.ts deleted file mode 100644 index e3cbe66e0..000000000 --- a/test/schema-parser/raml/raml-schema-parser.spec.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { RamlSchemaParser } from '../../../src/schema-parser/raml-schema-parser'; -import * as fs from 'fs'; -import * as path from 'path'; - -import type { ParseSchemaInput, ValidateSchemaInput } from '../../../src/schema-parser'; -import type { SchemaValidateResult } from '../../../src/types'; - -const inputWithSimpleRAML = toInput(fs.readFileSync(path.resolve(__dirname, './simple.json'), 'utf8')); -const outputWithSimpleRAML = '{"type":"object","examples":[{"title":"A book","author":"An author"}],"additionalProperties":true,"required":["title","author"],"properties":{"title":{"type":"string"},"author":{"type":"string","examples":["Eva"]}}}'; - -const inputWithComplexRAML = toInput(fs.readFileSync(path.resolve(__dirname, './complex.json'), 'utf8')); -const outputWithComplexRAML = '{"minProperties":1,"maxProperties":50,"additionalProperties":false,"discriminator":"breed","discriminatorValue":"CatOne","type":"object","required":["proscons","name","breed","age","rating","year_of_birth","time_of_birth","addition_date","removal_date","photo","description","character","siblings","parents","ratingHistory","additionalData"],"properties":{"proscons":{"anyOf":[true,true]},"name":true,"breed":true,"age":true,"rating":{"type":"integer","multipleOf":5,"example":{"displayName":"Cat\'s rating","description":"Rating of cat\'s awesomeness","strict":false,"value":50}},"year_of_birth":{"type":"string","format":"date"},"time_of_birth":{"type":"string","format":"time"},"dt_of_birth":{"type":"string","format":"date-time-only"},"addition_date":{"type":"string","format":"rfc2616"},"removal_date":{"type":"string","format":"date-time"},"photo":{"type":"string","minLength":1,"maxLength":307200},"description":{"type":"null"},"habits":{"type":"string"},"character":{"anyOf":[{"type":"null"},{"type":"string"}]},"siblings":{"type":"array","items":{"type":"string"}},"parents":{"type":"array","items":true},"ratingHistory":{"type":"array","items":{"anyOf":[{"type":"integer"},{"type":"number"}]}},"additionalData":{"type":"object","additionalProperties":true,"required":["weight"],"properties":{"weight":{"type":"number"}}}}}'; - -const inputWithInvalidRAML = toInput(fs.readFileSync(path.resolve(__dirname, './invalid.json'), 'utf8')); - -describe('parse()', function() { - const parser = RamlSchemaParser(); - - it('should parse simple RAML data types', async function() { - await doTest(inputWithSimpleRAML, outputWithSimpleRAML); - }); - - it('should parse complex RAML data types', async function() { - await doTest(inputWithComplexRAML, outputWithComplexRAML); - }); - - async function doTest(originalInput: ParseSchemaInput, expectedOutput: string) { - const input = {...originalInput}; - const result = await parser.parse(input); - - // Check that the return value of parse() is the expected JSON Schema. - expect(result).toEqual(JSON.parse(expectedOutput)); - } -}); - -describe('validate()', function() { - const parser = RamlSchemaParser(); - - it('should validate valid RAML', async function() { - const result = await parser.validate(inputWithSimpleRAML); - expect(result).toHaveLength(0); - }); - it('should validate invalid RAML', async function() { - const results = await parser.validate(inputWithInvalidRAML); - expect(results).toHaveLength(1); - - const result = (results as SchemaValidateResult[])[0]; - expect(result.message).toEqual('Property \'examples\' should be a map'); - expect(result.path).toEqual(['otherchannel', 'subscribe', 'message', 'payload']); // Validator doesn't provide info about the error path - }); -}); - -function toInput(raw: string): ParseSchemaInput | ValidateSchemaInput { - const message = JSON.parse(raw); - return { - asyncapi: { - semver: { - version: '2.4.0', - major: 2, - minor: 4, - patch: 0 - }, - source: '', - parsed: {} as any, - }, - path: ['otherchannel', 'subscribe', 'message', 'payload'], - data: message.payload, - meta: { - message, - }, - schemaFormat: message.schemaFormat, - defaultSchemaFormat: 'application/vnd.aai.asyncapi;version=2.4.0', - }; -} \ No newline at end of file diff --git a/test/schema-parser/raml/simple.json b/test/schema-parser/raml/simple.json deleted file mode 100644 index 4ba42fe61..000000000 --- a/test/schema-parser/raml/simple.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "schemaFormat": "application/raml+yaml;version=1.0", - "payload": { - "type": "object", - "properties": { - "title": "string", - "author": { - "type": "string", - "examples": { - "anExample": "Eva" - } - } - }, - "examples": { - "exampleOne": { - "title": "A book", - "author": "An author" - } - } - } -} \ No newline at end of file From 0acd733162ddc19e8f6d930ebd437706171c4599 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Tue, 18 Jul 2023 20:45:30 +0200 Subject: [PATCH 070/126] chore: remove files that were removed in master branch time ago (#804) --- .github/workflows/if-nodejs-version-bump.yml | 7 - docs/api.md | 1 - package-lock.json | 11236 ++++++++++++++++- 3 files changed, 11197 insertions(+), 47 deletions(-) delete mode 100644 docs/api.md diff --git a/.github/workflows/if-nodejs-version-bump.yml b/.github/workflows/if-nodejs-version-bump.yml index 17694d486..7e27f90bb 100644 --- a/.github/workflows/if-nodejs-version-bump.yml +++ b/.github/workflows/if-nodejs-version-bump.yml @@ -35,13 +35,6 @@ jobs: node-version: "${{ steps.lockversion.outputs.version }}" cache: 'npm' cache-dependency-path: '**/package-lock.json' - - if: steps.packagejson.outputs.exists == 'true' - name: Setup Node.js - uses: actions/setup-node@v2 - with: - node-version: 14 - cache: 'npm' - cache-dependency-path: '**/package-lock.json' - if: steps.packagejson.outputs.exists == 'true' name: Install dependencies run: npm install diff --git a/docs/api.md b/docs/api.md deleted file mode 100644 index 2fd9f9570..000000000 --- a/docs/api.md +++ /dev/null @@ -1 +0,0 @@ -TBD \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 9fe6a0243..2ca477614 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,8 +1,11151 @@ { "name": "@asyncapi/parser", "version": "2.1.0-next-major-spec.1", - "lockfileVersion": 1, + "lockfileVersion": 2, "requires": true, + "packages": { + "": { + "name": "@asyncapi/parser", + "version": "2.1.0-next-major-spec.1", + "license": "Apache-2.0", + "dependencies": { + "@asyncapi/specs": "^5.1.0", + "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", + "@stoplight/json-ref-resolver": "^3.1.5", + "@stoplight/spectral-core": "^1.16.1", + "@stoplight/spectral-functions": "^1.7.2", + "@stoplight/spectral-parsers": "^1.0.2", + "@types/json-schema": "^7.0.11", + "@types/urijs": "^1.19.19", + "ajv": "^8.11.0", + "ajv-errors": "^3.0.0", + "ajv-formats": "^2.1.1", + "avsc": "^5.7.5", + "js-yaml": "^4.1.0", + "jsonpath-plus": "^7.2.0", + "node-fetch": "2.6.7", + "ramldt2jsonschema": "^1.2.3", + "webapi-parser": "^0.5.0" + }, + "devDependencies": { + "@jest/types": "^29.0.2", + "@swc/core": "^1.2.248", + "@swc/jest": "^0.2.22", + "@types/jest": "^27.4.1", + "@types/js-yaml": "^4.0.5", + "@types/node": "^18.16.1", + "@types/node-fetch": "^2.6.2", + "@typescript-eslint/eslint-plugin": "^5.36.2", + "@typescript-eslint/parser": "^5.36.2", + "browserify": "^16.3.0", + "browserify-shim": "^3.8.14", + "cross-env": "^7.0.3", + "eslint": "^8.23.0", + "eslint-plugin-github": "^4.3.7", + "eslint-plugin-security": "^1.5.0", + "eslint-plugin-sonarjs": "^0.15.0", + "jest": "^29.0.2", + "markdown-toc": "^1.2.0", + "path-browserify": "^1.0.1", + "puppeteer": "^17.1.1", + "ts-loader": "^9.3.1", + "ts-node": "^10.9.1", + "typescript": "^4.8.2", + "webpack": "^5.74.0", + "webpack-bundle-analyzer": "^4.6.1", + "webpack-cli": "^4.10.0" + } + }, + "node_modules/@aashutoshrathi/word-wrap": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", + "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@asyncapi/specs": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-5.1.0.tgz", + "integrity": "sha512-yffhETqehkim43luMnPKOwzY0D0YtU4bKpORIXIaid6p5Y5kDLrMGJaEPkNieQp03HMjhjFrnUPtT8kvqe0+aQ==", + "dependencies": { + "@types/json-schema": "^7.0.11" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.5.tgz", + "integrity": "sha512-Xmwn266vad+6DAqEB2A6V/CcZVp62BbwVmcOJc2RPuwih1kw02TjQvWVWlcKGbBPd+8/0V5DEkOcizRGYsspYQ==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.22.9", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.9.tgz", + "integrity": "sha512-5UamI7xkUcJ3i9qVDS+KFDEK8/7oJ55/sJMB1Ge7IEapr7KfdfV/HErR+koZwOfd+SgtFKOKRhRakdg++DcJpQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.22.9", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.9.tgz", + "integrity": "sha512-G2EgeufBcYw27U4hhoIwFcgc1XU7TlXJ3mv04oOv1WCuo900U/anZSPzEqNjwdjgffkk2Gs0AN0dW1CKVLcG7w==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.22.5", + "@babel/generator": "^7.22.9", + "@babel/helper-compilation-targets": "^7.22.9", + "@babel/helper-module-transforms": "^7.22.9", + "@babel/helpers": "^7.22.6", + "@babel/parser": "^7.22.7", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.8", + "@babel/types": "^7.22.5", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + }, + "node_modules/@babel/core/node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.22.9", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.9.tgz", + "integrity": "sha512-KtLMbmicyuK2Ak/FTCJVbDnkN1SlT8/kceFTiuDiiRUUSMnHMidxSCdG4ndkTOHHpoomWe/4xkvHkEOncwjYIw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.22.9", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.9.tgz", + "integrity": "sha512-7qYrNM6HjpnPHJbopxmb8hSPoZ0gsX8IvUS32JGVoy+pU9e5N0nLr1VjJoR6kA4d9dmGLxNYOjeB8sUDal2WMw==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.22.9", + "@babel/helper-validator-option": "^7.22.5", + "browserslist": "^4.21.9", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.5.tgz", + "integrity": "sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz", + "integrity": "sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.5.tgz", + "integrity": "sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.22.9", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.9.tgz", + "integrity": "sha512-t+WA2Xn5K+rTeGtC8jCsdAH52bjggG5TKRuRrAGNM/mjIbO4GxvlLMFOEz9wXY5I2XQ60PMFsAG2WIcG82dQMQ==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-module-imports": "^7.22.5", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-validator-identifier": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", + "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", + "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", + "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz", + "integrity": "sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.5.tgz", + "integrity": "sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.6.tgz", + "integrity": "sha512-YjDs6y/fVOYFV8hAf1rxd1QvR9wJe1pDBZ2AREKq/SDayfPzgk0PBnVuTCE5X1acEpMMNOVUqoe+OwiZGJ+OaA==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.6", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.5.tgz", + "integrity": "sha512-BSKlD1hgnedS5XRnGOljZawtag7H1yPfQp0tdNJCHoH6AZ+Pcm9VvkrK59/Yy593Ypg0zMxH2BxD1VPYUQ7UIw==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.22.5", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/parser": { + "version": "7.22.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.7.tgz", + "integrity": "sha512-7NF8pOkHP5o2vpmGgNGcfAeCvOYhGLyA3Z4eBQkT1RJlWu47n63bCs93QfJ2hIAFCil7L5P2IWhs1oToVgrL0Q==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz", + "integrity": "sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.22.5.tgz", + "integrity": "sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.6.tgz", + "integrity": "sha512-wDb5pWm4WDdF6LFUde3Jl8WzPA+3ZbxYqkC6xAXuD3irdEHN1k0NfTRrJD8ZD378SJ61miMLCqIOXYhd8x+AJQ==", + "dev": true, + "dependencies": { + "regenerator-runtime": "^0.13.11" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.5.tgz", + "integrity": "sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.5", + "@babel/parser": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.22.8", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.8.tgz", + "integrity": "sha512-y6LPR+wpM2I3qJrsheCTwhIinzkETbplIgPBbwvqPKc+uljeA5gP+3nP8irdYt1mjQaDnlIcG+dw8OjAco4GXw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.5", + "@babel/generator": "^7.22.7", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.22.7", + "@babel/types": "^7.22.5", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse/node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/types": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.5.tgz", + "integrity": "sha512-zo3MIHGOkPOfoRXitsgHLjEXmlDaD/5KU1Uzuc9GNiZPhSqVxVRtxuPaSBZDsYZ9qV88AjtMtWW7ww98loJ9KA==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.5", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@discoveryjs/json-ext": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", + "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", + "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", + "dev": true, + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz", + "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==", + "dev": true, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.0.tgz", + "integrity": "sha512-Lj7DECXqIVCqnqjjHMPna4vn6GJcMgul/wuS0je9OZ9gsL0zzDpKPVtcG1HaDVc+9y+qgXneTeUMbCqXJNpH1A==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@eslint/eslintrc/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/@eslint/js": { + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.44.0.tgz", + "integrity": "sha512-Ag+9YM4ocKQx9AarydN0KY2j0ErMHNIocPDrVo8zAE44xLTjEtz81OdR68/cydGtk6m6jDb5Za3r2useMzYmSw==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@github/browserslist-config": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@github/browserslist-config/-/browserslist-config-1.0.0.tgz", + "integrity": "sha512-gIhjdJp/c2beaIWWIlsXdqXVRUz3r2BxBCpfz/F3JXHvSAQ1paMYjLH+maEATtENg+k5eLV7gA+9yPp762ieuw==", + "dev": true + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz", + "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.6.1.tgz", + "integrity": "sha512-Aj772AYgwTSr5w8qnyoJ0eDYvN6bMsH3ORH1ivMotrInHLKdUz6BDlaEXHdM6kODaBIkNIyQGzsMvRdOv7VG7Q==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.1", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.6.1.tgz", + "integrity": "sha512-CcowHypRSm5oYQ1obz1wfvkjZZ2qoQlrKKvlfPwh5jUXVU12TWr2qMeH8chLMuTFzHh5a1g2yaqlqDICbr+ukQ==", + "dev": true, + "dependencies": { + "@jest/console": "^29.6.1", + "@jest/reporters": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.5.0", + "jest-config": "^29.6.1", + "jest-haste-map": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.6.1", + "jest-resolve-dependencies": "^29.6.1", + "jest-runner": "^29.6.1", + "jest-runtime": "^29.6.1", + "jest-snapshot": "^29.6.1", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", + "jest-watcher": "^29.6.1", + "micromatch": "^4.0.4", + "pretty-format": "^29.6.1", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/core/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/core/node_modules/pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/@jest/create-cache-key-function": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/create-cache-key-function/-/create-cache-key-function-27.5.1.tgz", + "integrity": "sha512-dmH1yW+makpTSURTy8VzdUwFnfQh1G8R+DxO2Ho2FFmBbKFEVm+3jWdvFhE2VqB/LATCTokkP0dotjyQyw5/AQ==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/create-cache-key-function/node_modules/@jest/types": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", + "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/create-cache-key-function/node_modules/@types/yargs": { + "version": "16.0.5", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.5.tgz", + "integrity": "sha512-AxO/ADJOBFJScHbWhq2xAhlWP24rY4aCEG/NFaMvbT3X2MgRsLjhjQwsn0Zi5zn0LG9jUhCCZMeX9Dkuw6k+vQ==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@jest/environment": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.6.1.tgz", + "integrity": "sha512-RMMXx4ws+Gbvw3DfLSuo2cfQlK7IwGbpuEWXCqyYDcqYTI+9Ju3a5hDnXaxjNsa6uKh9PQF2v+qg+RLe63tz5A==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "jest-mock": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.6.1.tgz", + "integrity": "sha512-N5xlPrAYaRNyFgVf2s9Uyyvr795jnB6rObuPx4QFvNJz8aAjpZUDfO4bh5G/xuplMID8PrnuF1+SfSyDxhsgYg==", + "dev": true, + "dependencies": { + "expect": "^29.6.1", + "jest-snapshot": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.6.1.tgz", + "integrity": "sha512-o319vIf5pEMx0LmzSxxkYYxo4wrRLKHq9dP1yJU7FoPTB0LfAKSz8SWD6D/6U3v/O52t9cF5t+MeJiRsfk7zMw==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.4.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils/node_modules/jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.6.1.tgz", + "integrity": "sha512-RdgHgbXyosCDMVYmj7lLpUwXA4c69vcNzhrt69dJJdf8azUrpRh3ckFCaTPNjsEeRi27Cig0oKDGxy5j7hOgHg==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.1", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.6.1", + "jest-mock": "^29.6.1", + "jest-util": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.6.1.tgz", + "integrity": "sha512-2VjpaGy78JY9n9370H8zGRCFbYVWwjY6RdDMhoJHa1sYfwe6XM/azGN0SjY8kk7BOZApIejQ1BFPyH7FPG0w3A==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.6.1", + "@jest/expect": "^29.6.1", + "@jest/types": "^29.6.1", + "jest-mock": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.6.1.tgz", + "integrity": "sha512-9zuaI9QKr9JnoZtFQlw4GREQbxgmNYXU6QuWtmuODvk5nvPUeBYapVR/VYMyi2WSx3jXTLJTJji8rN6+Cm4+FA==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1", + "jest-worker": "^29.6.1", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.0", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.0.tgz", + "integrity": "sha512-rxLjXyJBTL4LQeJW3aKo0M/+GkCOXsO+8i9Iu7eDb6KwtP65ayoDsitrdPBtujxQ88k4wI2FNYfa6TOGwSn6cQ==", + "dev": true, + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.0", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.0.tgz", + "integrity": "sha512-oA+I2SHHQGxDCZpbrsCQSoMLb3Bz547JnM+jUr9qEbuw0vQlWZfpPS7CO9J7XiwKicEz9OFn/IYoLkkiUD7bzA==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.6.1.tgz", + "integrity": "sha512-Ynr13ZRcpX6INak0TPUukU8GWRfm/vAytE3JbJNGAvINySWYdfE7dGZMbk36oVuK4CigpbhMn8eg1dixZ7ZJOw==", + "dev": true, + "dependencies": { + "@jest/console": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.6.1.tgz", + "integrity": "sha512-oBkC36PCDf/wb6dWeQIhaviU0l5u6VCsXa119yqdUosYAt7/FbQU2M2UoziO3igj/HBDEgp57ONQ3fm0v9uyyg==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.6.1", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.6.1", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.6.1.tgz", + "integrity": "sha512-URnTneIU3ZjRSaf906cvf6Hpox3hIeJXRnz3VDSw5/X93gR8ycdfSIEy19FlVx8NFmpN7fe3Gb1xF+NjXaQLWg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.1", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.6.1", + "jest-regex-util": "^29.4.3", + "jest-util": "^29.6.1", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform/node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "node_modules/@jest/types": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.1.tgz", + "integrity": "sha512-tPKQNMPuXgvdOn2/Lg9HNfUvjYVGolt04Hp03f5hAk878uwOLikN+JzeLY0HcVgKgFl9Hs3EIqpu3WX27XNhnw==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.0", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.5.tgz", + "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.18", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", + "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + } + }, + "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + }, + "node_modules/@jsep-plugin/regex": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.3.tgz", + "integrity": "sha512-XfZgry4DwEZvSFtS/6Y+R48D7qJYJK6R9/yJFyUFHCIUMEEHuJ4X95TDgJp5QkmzfLYvapMPzskV5HpIDrREug==", + "engines": { + "node": ">= 10.16.0" + }, + "peerDependencies": { + "jsep": "^0.4.0||^1.0.0" + } + }, + "node_modules/@jsep-plugin/ternary": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.3.tgz", + "integrity": "sha512-qtLGzCNzPVJ3kdH6/zoLWDPjauHIKiLSBAR71Wa0+PWvGA8wODUQvRgxtpUA5YqAYL3CQ8S4qXhd/9WuWTZirg==", + "engines": { + "node": ">= 10.16.0" + }, + "peerDependencies": { + "jsep": "^0.4.0||^1.0.0" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@openapi-contrib/openapi-schema-to-json-schema": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@openapi-contrib/openapi-schema-to-json-schema/-/openapi-schema-to-json-schema-3.2.0.tgz", + "integrity": "sha512-Gj6C0JwCr8arj0sYuslWXUBSP/KnUlEGnPW4qxlXvAl543oaNQgMgIgkQUA6vs5BCCvwTEiL8m/wdWzfl4UvSw==", + "dependencies": { + "fast-deep-equal": "^3.1.3" + } + }, + "node_modules/@polka/url": { + "version": "1.0.0-next.21", + "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz", + "integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==", + "dev": true + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.0.tgz", + "integrity": "sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@stoplight/better-ajv-errors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.3.tgz", + "integrity": "sha512-0p9uXkuB22qGdNfy3VeEhxkU5uwvp/KrBTAbrLBURv6ilxIVwanKwjMc41lQfIVgPGcOkmLbTolfFrSsueu7zA==", + "dependencies": { + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" + }, + "engines": { + "node": "^12.20 || >= 14.13" + }, + "peerDependencies": { + "ajv": ">=8" + } + }, + "node_modules/@stoplight/json": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.21.0.tgz", + "integrity": "sha512-5O0apqJ/t4sIevXCO3SBN9AHCEKKR/Zb4gaj7wYe5863jme9g02Q0n/GhM7ZCALkL+vGPTe4ZzTETP8TFtsw3g==", + "dependencies": { + "@stoplight/ordered-object-literal": "^1.0.3", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^13.6.0", + "jsonc-parser": "~2.2.1", + "lodash": "^4.17.21", + "safe-stable-stringify": "^1.1" + }, + "engines": { + "node": ">=8.3.0" + } + }, + "node_modules/@stoplight/json-ref-readers": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@stoplight/json-ref-readers/-/json-ref-readers-1.2.2.tgz", + "integrity": "sha512-nty0tHUq2f1IKuFYsLM4CXLZGHdMn+X/IwEUIpeSOXt0QjMUbL0Em57iJUDzz+2MkWG83smIigNZ3fauGjqgdQ==", + "dependencies": { + "node-fetch": "^2.6.0", + "tslib": "^1.14.1" + }, + "engines": { + "node": ">=8.3.0" + } + }, + "node_modules/@stoplight/json-ref-readers/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/@stoplight/json-ref-resolver": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.6.tgz", + "integrity": "sha512-YNcWv3R3n3U6iQYBsFOiWSuRGE5su1tJSiX6pAPRVk7dP0L7lqCteXGzuVRQ0gMZqUl8v1P0+fAKxF6PLo9B5A==", + "dependencies": { + "@stoplight/json": "^3.21.0", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^12.3.0 || ^13.0.0", + "@types/urijs": "^1.19.19", + "dependency-graph": "~0.11.0", + "fast-memoize": "^2.5.2", + "immer": "^9.0.6", + "lodash": "^4.17.21", + "tslib": "^2.6.0", + "urijs": "^1.19.11" + }, + "engines": { + "node": ">=8.3.0" + } + }, + "node_modules/@stoplight/ordered-object-literal": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@stoplight/ordered-object-literal/-/ordered-object-literal-1.0.4.tgz", + "integrity": "sha512-OF8uib1jjDs5/cCU+iOVy+GJjU3X7vk/qJIkIJFqwmlJKrrtijFmqwbu8XToXrwTYLQTP+Hebws5gtZEmk9jag==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@stoplight/path": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@stoplight/path/-/path-1.3.2.tgz", + "integrity": "sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@stoplight/spectral-core": { + "version": "1.18.2", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.18.2.tgz", + "integrity": "sha512-bjNXo0VzXTDdFB3oKvVCAHW5rJ1/eMQzN6k1N5RW8tdEXMcEnI56MByRzADniVa+SvrutApK2u+9XwUZtIIT3w==", + "dependencies": { + "@stoplight/better-ajv-errors": "1.0.3", + "@stoplight/json": "~3.21.0", + "@stoplight/path": "1.3.2", + "@stoplight/spectral-parsers": "^1.0.0", + "@stoplight/spectral-ref-resolver": "^1.0.0", + "@stoplight/spectral-runtime": "^1.0.0", + "@stoplight/types": "~13.6.0", + "@types/es-aggregate-error": "^1.0.2", + "@types/json-schema": "^7.0.11", + "ajv": "^8.6.0", + "ajv-errors": "~3.0.0", + "ajv-formats": "~2.1.0", + "es-aggregate-error": "^1.0.7", + "jsonpath-plus": "7.1.0", + "lodash": "~4.17.21", + "lodash.topath": "^4.5.2", + "minimatch": "3.1.2", + "nimma": "0.2.2", + "pony-cause": "^1.0.0", + "simple-eval": "1.0.0", + "tslib": "^2.3.0" + }, + "engines": { + "node": "^12.20 || >= 14.13" + } + }, + "node_modules/@stoplight/spectral-core/node_modules/@stoplight/types": { + "version": "13.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", + "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", + "dependencies": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + }, + "engines": { + "node": "^12.20 || >=14.13" + } + }, + "node_modules/@stoplight/spectral-core/node_modules/jsonpath-plus": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.1.0.tgz", + "integrity": "sha512-gTaNRsPWO/K2KY6MrqaUFClF9kmuM6MFH5Dhg1VYDODgFbByw1yb7xu3hrViE/sz+dGOeMWgCzwUwQtAnCTE9g==", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@stoplight/spectral-formats": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.5.0.tgz", + "integrity": "sha512-VskkdU3qBSvI1dfJ79ysjvTssfNlbA6wrf/XkXK6iTyjfIVqOAWVtjypTb2U95tN/X8IjIBBhNWtZ4tNVZilrA==", + "dependencies": { + "@stoplight/json": "^3.17.0", + "@stoplight/spectral-core": "^1.8.0", + "@types/json-schema": "^7.0.7", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@stoplight/spectral-functions": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-functions/-/spectral-functions-1.7.2.tgz", + "integrity": "sha512-f+61/FtIkQeIo+a269CeaeqjpyRsgDyIk6DGr7iS4hyuk1PPk7Uf6MNRDs9FEIBh7CpdEJ+HSHbMLwgpymWTIw==", + "dependencies": { + "@stoplight/better-ajv-errors": "1.0.3", + "@stoplight/json": "^3.17.1", + "@stoplight/spectral-core": "^1.7.0", + "@stoplight/spectral-formats": "^1.0.0", + "@stoplight/spectral-runtime": "^1.1.0", + "ajv": "^8.6.3", + "ajv-draft-04": "~1.0.0", + "ajv-errors": "~3.0.0", + "ajv-formats": "~2.1.0", + "lodash": "~4.17.21", + "tslib": "^2.3.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@stoplight/spectral-parsers": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-parsers/-/spectral-parsers-1.0.3.tgz", + "integrity": "sha512-J0KW5Rh5cHWnJQ3yN+cr/ijNFVirPSR0pkQbdrNX30VboEl083UEDrQ3yov9kjLVIWEk9t9kKE7Eo3QT/k4JLA==", + "dependencies": { + "@stoplight/json": "~3.21.0", + "@stoplight/types": "^13.6.0", + "@stoplight/yaml": "~4.2.3", + "tslib": "^2.3.1" + }, + "engines": { + "node": "^12.20 || >=14.13" + } + }, + "node_modules/@stoplight/spectral-ref-resolver": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-ref-resolver/-/spectral-ref-resolver-1.0.3.tgz", + "integrity": "sha512-pj+bH4SH8hcWlnV787WD7P0/En7LA3EfZMvG1JUGMW/7bFd9AaZZXNkh5j0ve8qnPlwP8F4SH/2Cnr1tXOXCVw==", + "dependencies": { + "@stoplight/json-ref-readers": "1.2.2", + "@stoplight/json-ref-resolver": "~3.1.5", + "@stoplight/spectral-runtime": "^1.1.2", + "dependency-graph": "0.11.0", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@stoplight/spectral-runtime": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-runtime/-/spectral-runtime-1.1.2.tgz", + "integrity": "sha512-fr5zRceXI+hrl82yAVoME+4GvJie8v3wmOe9tU+ZLRRNonizthy8qDi0Z/z4olE+vGreSDcuDOZ7JjRxFW5kTw==", + "dependencies": { + "@stoplight/json": "^3.17.0", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^12.3.0", + "abort-controller": "^3.0.0", + "lodash": "^4.17.21", + "node-fetch": "^2.6.7", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@stoplight/spectral-runtime/node_modules/@stoplight/types": { + "version": "12.5.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-12.5.0.tgz", + "integrity": "sha512-dwqYcDrGmEyUv5TWrDam5TGOxU72ufyQ7hnOIIDdmW5ezOwZaBFoR5XQ9AsH49w7wgvOqB2Bmo799pJPWnpCbg==", + "dependencies": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@stoplight/types": { + "version": "13.15.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.15.0.tgz", + "integrity": "sha512-pBLjVRrWGVd+KzTbL3qrmufSKIEp0UfziDBdt/nrTHPKrlrtVwaHdrrQMcpM23yJDU1Wcg4cHvhIuGtKCT5OmA==", + "dependencies": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + }, + "engines": { + "node": "^12.20 || >=14.13" + } + }, + "node_modules/@stoplight/yaml": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/@stoplight/yaml/-/yaml-4.2.3.tgz", + "integrity": "sha512-Mx01wjRAR9C7yLMUyYFTfbUf5DimEpHMkRDQ1PKLe9dfNILbgdxyrncsOXM3vCpsQ1Hfj4bPiGl+u4u6e9Akqw==", + "dependencies": { + "@stoplight/ordered-object-literal": "^1.0.1", + "@stoplight/types": "^13.0.0", + "@stoplight/yaml-ast-parser": "0.0.48", + "tslib": "^2.2.0" + }, + "engines": { + "node": ">=10.8" + } + }, + "node_modules/@stoplight/yaml-ast-parser": { + "version": "0.0.48", + "resolved": "https://registry.npmjs.org/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.48.tgz", + "integrity": "sha512-sV+51I7WYnLJnKPn2EMWgS4EUfoP4iWEbrWwbXsj0MZCB/xOK8j6+C9fntIdOM50kpx45ZLC3s6kwKivWuqvyg==" + }, + "node_modules/@swc/core": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.3.69.tgz", + "integrity": "sha512-Khc/DE9D5+2tYTHgAIp5DZARbs8kldWg3b0Jp6l8FQLjelcLFmlQWSwKhVZrgv4oIbgZydIp8jInsvTalMHqnQ==", + "dev": true, + "hasInstallScript": true, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/swc" + }, + "optionalDependencies": { + "@swc/core-darwin-arm64": "1.3.69", + "@swc/core-darwin-x64": "1.3.69", + "@swc/core-linux-arm-gnueabihf": "1.3.69", + "@swc/core-linux-arm64-gnu": "1.3.69", + "@swc/core-linux-arm64-musl": "1.3.69", + "@swc/core-linux-x64-gnu": "1.3.69", + "@swc/core-linux-x64-musl": "1.3.69", + "@swc/core-win32-arm64-msvc": "1.3.69", + "@swc/core-win32-ia32-msvc": "1.3.69", + "@swc/core-win32-x64-msvc": "1.3.69" + }, + "peerDependencies": { + "@swc/helpers": "^0.5.0" + }, + "peerDependenciesMeta": { + "@swc/helpers": { + "optional": true + } + } + }, + "node_modules/@swc/core-darwin-arm64": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.69.tgz", + "integrity": "sha512-IjZTf12zIPWkV3D7toaLDoJPSkLhQ4fDH8G6/yCJUI27cBFOI3L8LXqptYmISoN5yYdrcnNpdqdapD09JPuNJg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-darwin-x64": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.69.tgz", + "integrity": "sha512-/wBO0Rn5oS5dJI/L9kJRkPAdksVwl5H9nleW/NM3A40N98VV8T7h/i1nO051mxIjq0R6qXVGOWFbBoLrPYucJg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm-gnueabihf": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.69.tgz", + "integrity": "sha512-NShCjMv6Xn8ckMKBRqmprXvUF14+jXY0TcNKXwjYErzoIUFOnG72M36HxT4QEeAtKZ4Eg4CZFE4zlJ27fDp1gg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm64-gnu": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.69.tgz", + "integrity": "sha512-VRPOJj4idopSHIj1bOVXX0SgaB18R8yZNunb7eXS5ZcjVxAcdvqyIz3RdQX1zaJFCGzcdPLzBRP32DZWWGE8Ng==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm64-musl": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.69.tgz", + "integrity": "sha512-QxeSiZqo5x1X8vq8oUWLibq+IZJcxl9vy0sLUmzdjF2b/Z+qxKP3gutxnb2tzJaHqPVBbEZaILERIGy1qWdumQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-gnu": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.69.tgz", + "integrity": "sha512-b+DUlVxYox3BwD3PyTwhLvqtu6TYZtW+S6O0FnttH11o4skHN0XyJ/cUZSI0X2biSmfDsizRDUt1PWPFM+F7SA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-musl": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.69.tgz", + "integrity": "sha512-QXjsI+f8n9XPZHUvmGgkABpzN4M9kdSbhqBOZmv3o0AsDGNCA4uVowQqgZoPFAqlJTpwHeDmrv5sQ13HN+LOGw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-arm64-msvc": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.69.tgz", + "integrity": "sha512-wn7A8Ws1fyviuCUB2Vg6IotiZeuqiO1Mz3d+YDae2EYyNpj1kNHvjBip8GHkfGzZG+jVrvG6NHsDo0KO/pGb8A==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-ia32-msvc": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.69.tgz", + "integrity": "sha512-LsFBXtXqxEcVaaOGEZ9X3qdMzobVoJqKv8DnksuDsWcBk+9WCeTz2u/iB+7yZ2HGuPXkCqTRqhFo6FX9aC00kQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-x64-msvc": { + "version": "1.3.69", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.69.tgz", + "integrity": "sha512-ieBscU0gUgKjaseFI07tAaGqHvKyweNknPeSYEZOasVZUczhD6fK2GRnVREhv2RB2qdKC/VGFBsgRDMgzq1VLw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/jest": { + "version": "0.2.26", + "resolved": "https://registry.npmjs.org/@swc/jest/-/jest-0.2.26.tgz", + "integrity": "sha512-7lAi7q7ShTO3E5Gt1Xqf3pIhRbERxR1DUxvtVa9WKzIB+HGQ7wZP5sYx86zqnaEoKKGhmOoZ7gyW0IRu8Br5+A==", + "dev": true, + "dependencies": { + "@jest/create-cache-key-function": "^27.4.2", + "jsonc-parser": "^3.2.0" + }, + "engines": { + "npm": ">= 7.0.0" + }, + "peerDependencies": { + "@swc/core": "*" + } + }, + "node_modules/@swc/jest/node_modules/jsonc-parser": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", + "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==", + "dev": true + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", + "dev": true + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true + }, + "node_modules/@types/babel__core": { + "version": "7.20.1", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.1.tgz", + "integrity": "sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.4", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", + "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", + "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.1", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.1.tgz", + "integrity": "sha512-MitHFXnhtgwsGZWtT68URpOvLN4EREih1u3QtQiN4VdAxWKRVvGCSvw/Qth0M0Qq3pJpnGOu5JaM/ydK7OGbqg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/es-aggregate-error": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@types/es-aggregate-error/-/es-aggregate-error-1.0.2.tgz", + "integrity": "sha512-erqUpFXksaeR2kejKnhnjZjbFxUpGZx4Z7ydNL9ie8tEhXPiZTsLeUDJ6aR1F8j5wWUAtOAQWUqkc7givBJbBA==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/es-aggregate-error/node_modules/@types/node": { + "version": "20.4.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.4.2.tgz", + "integrity": "sha512-Dd0BYtWgnWJKwO1jkmTrzofjK2QXXcai0dmtzvIBhcA+RsG5h8R3xlyta0kGOZRNfL9GuRtb1knmPEhQrePCEw==" + }, + "node_modules/@types/eslint": { + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.44.0.tgz", + "integrity": "sha512-gsF+c/0XOguWgaOgvFs+xnnRqt9GwgTvIks36WpE6ueeI4KCEHHd8K/CKHqhOqrJKsYH8m27kRzQEvWXAwXUTw==", + "dev": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", + "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", + "dev": true, + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", + "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==", + "dev": true + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", + "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", + "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", + "dev": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "27.5.2", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.5.2.tgz", + "integrity": "sha512-mpT8LJJ4CMeeahobofYWIjFo0xonRS/HfxnVEPMPFSQdGUt1uHCnoPT7Zhb+sjDU2wz0oKV0OLUR0WzrHNgfeA==", + "dev": true, + "dependencies": { + "jest-matcher-utils": "^27.0.0", + "pretty-format": "^27.0.0" + } + }, + "node_modules/@types/js-yaml": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz", + "integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==", + "dev": true + }, + "node_modules/@types/json-schema": { + "version": "7.0.12", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", + "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==" + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, + "node_modules/@types/node": { + "version": "18.16.19", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.19.tgz", + "integrity": "sha512-IXl7o+R9iti9eBW4Wg2hx1xQDig183jj7YLn8F7udNceyfkbn1ZxmzZXuak20gR40D7pIkIY1kYGx5VIGbaHKA==", + "dev": true + }, + "node_modules/@types/node-fetch": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.4.tgz", + "integrity": "sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==", + "dev": true, + "dependencies": { + "@types/node": "*", + "form-data": "^3.0.0" + } + }, + "node_modules/@types/prettier": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", + "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", + "dev": true + }, + "node_modules/@types/semver": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz", + "integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==", + "dev": true + }, + "node_modules/@types/stack-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", + "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", + "dev": true + }, + "node_modules/@types/urijs": { + "version": "1.19.19", + "resolved": "https://registry.npmjs.org/@types/urijs/-/urijs-1.19.19.tgz", + "integrity": "sha512-FDJNkyhmKLw7uEvTxx5tSXfPeQpO0iy73Ry+PmYZJvQy0QIWX8a7kJ4kLWRf+EbTPJEPDSgPXHaM7pzr5lmvCg==" + }, + "node_modules/@types/yargs": { + "version": "17.0.24", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", + "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", + "dev": true + }, + "node_modules/@types/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==", + "dev": true, + "optional": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz", + "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/type-utils": "5.62.0", + "@typescript-eslint/utils": "5.62.0", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz", + "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", + "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz", + "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "5.62.0", + "@typescript-eslint/utils": "5.62.0", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", + "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", + "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", + "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", + "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz", + "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==", + "dev": true, + "dependencies": { + "@webassemblyjs/helper-numbers": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz", + "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz", + "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz", + "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz", + "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==", + "dev": true, + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz", + "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz", + "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz", + "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==", + "dev": true, + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz", + "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==", + "dev": true, + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz", + "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==", + "dev": true + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz", + "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/helper-wasm-section": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-opt": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6", + "@webassemblyjs/wast-printer": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz", + "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz", + "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-buffer": "1.11.6", + "@webassemblyjs/wasm-gen": "1.11.6", + "@webassemblyjs/wasm-parser": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz", + "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@webassemblyjs/helper-api-error": "1.11.6", + "@webassemblyjs/helper-wasm-bytecode": "1.11.6", + "@webassemblyjs/ieee754": "1.11.6", + "@webassemblyjs/leb128": "1.11.6", + "@webassemblyjs/utf8": "1.11.6" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.11.6", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz", + "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.6", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webpack-cli/configtest": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz", + "integrity": "sha512-4FB8Tj6xyVkyqjj1OaTqCjXYULB9FMkqQ8yGrZjRDrYh0nOE+7Lhs45WioWQQMV+ceFlE368Ukhe6xdvJM9Egg==", + "dev": true, + "peerDependencies": { + "webpack": "4.x.x || 5.x.x", + "webpack-cli": "4.x.x" + } + }, + "node_modules/@webpack-cli/info": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.5.0.tgz", + "integrity": "sha512-e8tSXZpw2hPl2uMJY6fsMswaok5FdlGNRTktvFk2sD8RjH0hE2+XistawJx1vmKteh4NmGmNUrp+Tb2w+udPcQ==", + "dev": true, + "dependencies": { + "envinfo": "^7.7.3" + }, + "peerDependencies": { + "webpack-cli": "4.x.x" + } + }, + "node_modules/@webpack-cli/serve": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.7.0.tgz", + "integrity": "sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==", + "dev": true, + "peerDependencies": { + "webpack-cli": "4.x.x" + }, + "peerDependenciesMeta": { + "webpack-dev-server": { + "optional": true + } + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/accessory": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/accessory/-/accessory-1.1.0.tgz", + "integrity": "sha512-DlgiZ+jTuCIZLURquQhOfclRvPu6gQKgOzr9wAiZtjWYjd1lMK8Hr6XXEDWuEAxpTWEccgn6YVREJ6C7fhvrww==", + "dev": true, + "dependencies": { + "ap": "~0.2.0", + "balanced-match": "~0.2.0", + "dot-parts": "~1.0.0" + } + }, + "node_modules/accessory/node_modules/balanced-match": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.2.1.tgz", + "integrity": "sha512-euSOvfze1jPOf85KQOmZ2UcWDJ/dUJukTJdj4o9ZZLyjl7IjdIyE4fAQRSuGrxAjB9nvvvrl4N3bPtRq+W+SyQ==", + "dev": true + }, + "node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-assertions": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", + "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", + "dev": true, + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-node": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", + "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", + "dev": true, + "dependencies": { + "acorn": "^7.0.0", + "acorn-walk": "^7.0.0", + "xtend": "^4.0.2" + } + }, + "node_modules/acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/ajv": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz", + "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-draft-04": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", + "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", + "peerDependencies": { + "ajv": "^8.5.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-errors": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", + "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", + "peerDependencies": { + "ajv": "^8.0.1" + } + }, + "node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/amdefine": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", + "integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==", + "dev": true, + "optional": true, + "engines": { + "node": ">=0.4.2" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-escapes/node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-red": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", + "integrity": "sha512-ewaIr5y+9CUTGFwZfpECUbFlGcC0GCw1oqR9RI6h1gQCd9Aj2GxSckCnPsVJnmfMZbwFYE+leZGASgkWl06Jow==", + "dev": true, + "dependencies": { + "ansi-wrap": "0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/ansi-wrap": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", + "integrity": "sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/ap": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/ap/-/ap-0.2.0.tgz", + "integrity": "sha512-ImdvquIuBSVpWRWhB441UjvTcZqic1RL+lTQaUKGdGEp1aiTvt/phAvY8Vvs32qya5FJBI8U+tzNBYzFDQY/lQ==", + "dev": true + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + }, + "node_modules/aria-query": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", + "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", + "dev": true, + "dependencies": { + "dequal": "^2.0.3" + } + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", + "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-includes": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz", + "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", + "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz", + "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/asn1.js": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", + "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", + "dev": true, + "dependencies": { + "bn.js": "^4.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0", + "safer-buffer": "^2.1.0" + } + }, + "node_modules/asn1.js/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + }, + "node_modules/assert": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.0.tgz", + "integrity": "sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==", + "dev": true, + "dependencies": { + "object-assign": "^4.1.1", + "util": "0.10.3" + } + }, + "node_modules/assert/node_modules/inherits": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", + "integrity": "sha512-8nWq2nLTAwd02jTqJExUYFSD/fKq6VH9Y/oG2accc/kdI0V98Bag8d5a4gi3XHz73rDWa2PvTtvcWYquKqSENA==", + "dev": true + }, + "node_modules/assert/node_modules/util": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", + "integrity": "sha512-5KiHfsmkqacuKjkRkdV7SsfDJ2EGiPsK92s2MhNSY0craxjTdKTtqKsJaCWp4LW33ZZ0OPUv1WO/TFvNQRiQxQ==", + "dev": true, + "dependencies": { + "inherits": "2.0.1" + } + }, + "node_modules/ast-types-flow": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", + "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", + "dev": true + }, + "node_modules/astring": { + "version": "1.8.6", + "resolved": "https://registry.npmjs.org/astring/-/astring-1.8.6.tgz", + "integrity": "sha512-ISvCdHdlTDlH5IpxQJIex7BWBywFWgjJSVdwst+/iQCoEYnyOaQ95+X1JGshuBjGp6nxKUy1jMgE3zPqN7fQdg==", + "bin": { + "astring": "bin/astring" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true + }, + "node_modules/autolinker": { + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.28.1.tgz", + "integrity": "sha512-zQAFO1Dlsn69eXaO6+7YZc+v84aquQKbwpzCE3L0stj56ERn9hutFxPopViLjo9G+rWwjozRhgS5KJ25Xy19cQ==", + "dev": true, + "dependencies": { + "gulp-header": "^1.7.1" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/avsc": { + "version": "5.7.7", + "resolved": "https://registry.npmjs.org/avsc/-/avsc-5.7.7.tgz", + "integrity": "sha512-9cYNccliXZDByFsFliVwk5GvTq058Fj513CiR4E60ndDwmuXzTJEp/Bp8FyuRmGyYupLjHLs+JA9/CBoVS4/NQ==", + "engines": { + "node": ">=0.11" + } + }, + "node_modules/axe-core": { + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz", + "integrity": "sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/axobject-query": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz", + "integrity": "sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==", + "dev": true, + "dependencies": { + "dequal": "^2.0.3" + } + }, + "node_modules/babel-jest": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.6.1.tgz", + "integrity": "sha512-qu+3bdPEQC6KZSPz+4Fyjbga5OODNcp49j6GKzG1EKbkfyJBxEYGVUmVGpwCSeGouG52R4EgYMLb6p9YeEEQ4A==", + "dev": true, + "dependencies": { + "@jest/transform": "^29.6.1", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.5.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.5.0.tgz", + "integrity": "sha512-zSuuuAlTMT4mzLj2nPnUm6fsE6270vdOfnpbJ+RmruU75UhLFvL0N2NgI7xpeS7NaB6hGqmd5pVpGTDYvi4Q3w==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.5.0.tgz", + "integrity": "sha512-JOMloxOqdiBSxMAzjRaH023/vvcaSaec49zvg+2LmNsktC7ei39LTJGw02J+9uUtTZUq6xbLyJ4dxe9sSmIuAg==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^29.5.0", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "dev": true, + "dependencies": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, + "node_modules/bl/node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/bl/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bn.js": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", + "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/brorand": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", + "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==", + "dev": true + }, + "node_modules/browser-pack": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-6.1.0.tgz", + "integrity": "sha512-erYug8XoqzU3IfcU8fUgyHqyOXqIE4tUTTQ+7mqUjQlvnXkOO6OlT9c/ZoJVHYoAaqGxr09CN53G7XIsO4KtWA==", + "dev": true, + "dependencies": { + "combine-source-map": "~0.8.0", + "defined": "^1.0.0", + "JSONStream": "^1.0.3", + "safe-buffer": "^5.1.1", + "through2": "^2.0.0", + "umd": "^3.0.0" + }, + "bin": { + "browser-pack": "bin/cmd.js" + } + }, + "node_modules/browser-resolve": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-2.0.0.tgz", + "integrity": "sha512-7sWsQlYL2rGLy2IWm8WL8DCTJvYLc/qlOnsakDac87SOoCd16WLsaAMdCiAqsTNHIe+SXfaqyxyo6THoWqs8WQ==", + "dev": true, + "dependencies": { + "resolve": "^1.17.0" + } + }, + "node_modules/browserify": { + "version": "16.5.2", + "resolved": "https://registry.npmjs.org/browserify/-/browserify-16.5.2.tgz", + "integrity": "sha512-TkOR1cQGdmXU9zW4YukWzWVSJwrxmNdADFbqbE3HFgQWe5wqZmOawqZ7J/8MPCwk/W8yY7Y0h+7mOtcZxLP23g==", + "dev": true, + "dependencies": { + "assert": "^1.4.0", + "browser-pack": "^6.0.1", + "browser-resolve": "^2.0.0", + "browserify-zlib": "~0.2.0", + "buffer": "~5.2.1", + "cached-path-relative": "^1.0.0", + "concat-stream": "^1.6.0", + "console-browserify": "^1.1.0", + "constants-browserify": "~1.0.0", + "crypto-browserify": "^3.0.0", + "defined": "^1.0.0", + "deps-sort": "^2.0.0", + "domain-browser": "^1.2.0", + "duplexer2": "~0.1.2", + "events": "^2.0.0", + "glob": "^7.1.0", + "has": "^1.0.0", + "htmlescape": "^1.1.0", + "https-browserify": "^1.0.0", + "inherits": "~2.0.1", + "insert-module-globals": "^7.0.0", + "JSONStream": "^1.0.3", + "labeled-stream-splicer": "^2.0.0", + "mkdirp-classic": "^0.5.2", + "module-deps": "^6.2.3", + "os-browserify": "~0.3.0", + "parents": "^1.0.1", + "path-browserify": "~0.0.0", + "process": "~0.11.0", + "punycode": "^1.3.2", + "querystring-es3": "~0.2.0", + "read-only-stream": "^2.0.0", + "readable-stream": "^2.0.2", + "resolve": "^1.1.4", + "shasum": "^1.0.0", + "shell-quote": "^1.6.1", + "stream-browserify": "^2.0.0", + "stream-http": "^3.0.0", + "string_decoder": "^1.1.1", + "subarg": "^1.0.0", + "syntax-error": "^1.1.1", + "through2": "^2.0.0", + "timers-browserify": "^1.0.1", + "tty-browserify": "0.0.1", + "url": "~0.11.0", + "util": "~0.10.1", + "vm-browserify": "^1.0.0", + "xtend": "^4.0.0" + }, + "bin": { + "browserify": "bin/cmd.js" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/browserify-aes": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", + "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", + "dev": true, + "dependencies": { + "buffer-xor": "^1.0.3", + "cipher-base": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.3", + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/browserify-cipher": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", + "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", + "dev": true, + "dependencies": { + "browserify-aes": "^1.0.4", + "browserify-des": "^1.0.0", + "evp_bytestokey": "^1.0.0" + } + }, + "node_modules/browserify-des": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", + "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", + "dev": true, + "dependencies": { + "cipher-base": "^1.0.1", + "des.js": "^1.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "node_modules/browserify-rsa": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.0.tgz", + "integrity": "sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog==", + "dev": true, + "dependencies": { + "bn.js": "^5.0.0", + "randombytes": "^2.0.1" + } + }, + "node_modules/browserify-shim": { + "version": "3.8.16", + "resolved": "https://registry.npmjs.org/browserify-shim/-/browserify-shim-3.8.16.tgz", + "integrity": "sha512-+Ap0xOKUC5Hz8sdUROxCJHgzA5IeU7pgUquCdlbBxyxkexzU4kpU6u1TsIvnFJcdx1bxO902J08AEjbMqDbA3g==", + "dev": true, + "dependencies": { + "exposify": "~0.5.0", + "mothership": "~0.3.0", + "rename-function-calls": "~0.1.0", + "resolve": "~0.6.1", + "through": "~2.3.4" + }, + "peerDependencies": { + "browserify": ">= 2.3" + } + }, + "node_modules/browserify-shim/node_modules/resolve": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.6.3.tgz", + "integrity": "sha512-UHBY3viPlJKf85YijDUcikKX6tmF4SokIDp518ZDVT92JNDcG5uKIthaT/owt3Sar0lwtOafsQuwrg22/v2Dwg==", + "dev": true + }, + "node_modules/browserify-sign": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.1.tgz", + "integrity": "sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==", + "dev": true, + "dependencies": { + "bn.js": "^5.1.1", + "browserify-rsa": "^4.0.1", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "elliptic": "^6.5.3", + "inherits": "^2.0.4", + "parse-asn1": "^5.1.5", + "readable-stream": "^3.6.0", + "safe-buffer": "^5.2.0" + } + }, + "node_modules/browserify-sign/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/browserify-zlib": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", + "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", + "dev": true, + "dependencies": { + "pako": "~1.0.5" + } + }, + "node_modules/browserify/node_modules/path-browserify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", + "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", + "dev": true + }, + "node_modules/browserify/node_modules/punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", + "dev": true + }, + "node_modules/browserslist": { + "version": "4.21.9", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.9.tgz", + "integrity": "sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001503", + "electron-to-chromium": "^1.4.431", + "node-releases": "^2.0.12", + "update-browserslist-db": "^1.0.11" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.2.1.tgz", + "integrity": "sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==", + "dev": true, + "dependencies": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4" + } + }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/buffer-xor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", + "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==", + "dev": true + }, + "node_modules/builtin-status-codes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", + "integrity": "sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ==", + "dev": true + }, + "node_modules/cached-path-relative": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/cached-path-relative/-/cached-path-relative-1.1.0.tgz", + "integrity": "sha512-WF0LihfemtesFcJgO7xfOoOcnWzY/QHR4qeDqV44jPU3HTI54+LnfXK3SA27AVVGCdZFgjjFFaqUA9Jx7dMJZA==", + "dev": true + }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001515", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001515.tgz", + "integrity": "sha512-eEFDwUOZbE24sb+Ecsx3+OvNETqjWIdabMy52oOkIgcUtAsQifjUG9q4U9dgTHJM2mfk4uEPxc0+xuFdJ629QA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/chownr": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", + "dev": true + }, + "node_modules/chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/ci-info": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", + "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, + "node_modules/cipher-base": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", + "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", + "dev": true, + "dependencies": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", + "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", + "dev": true + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/clone-deep/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/coffee-script": { + "version": "1.12.7", + "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", + "integrity": "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==", + "deprecated": "CoffeeScript on NPM has moved to \"coffeescript\" (no hyphen)", + "dev": true, + "bin": { + "cake": "bin/cake", + "coffee": "bin/coffee" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/colorette": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", + "dev": true + }, + "node_modules/combine-source-map": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.8.0.tgz", + "integrity": "sha512-UlxQ9Vw0b/Bt/KYwCFqdEwsQ1eL8d1gibiFb7lxQJFdvTgc2hIZi6ugsg+kyhzhPV+QEpUiEIwInIAIrgoEkrg==", + "dev": true, + "dependencies": { + "convert-source-map": "~1.1.0", + "inline-source-map": "~0.6.0", + "lodash.memoize": "~3.0.3", + "source-map": "~0.5.3" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", + "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", + "engines": { + "node": ">= 6" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "node_modules/concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "dev": true, + "engines": [ + "node >= 0.8" + ], + "dependencies": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "node_modules/concat-with-sourcemaps": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", + "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", + "dev": true, + "dependencies": { + "source-map": "^0.6.1" + } + }, + "node_modules/concat-with-sourcemaps/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/console-browserify": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", + "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==", + "dev": true + }, + "node_modules/constants-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", + "integrity": "sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ==", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", + "integrity": "sha512-Y8L5rp6jo+g9VEPgvqNfEopjTR4OTYct8lXlS8iVQdmnjDvbdbzYe9rjtFCB9egC86JoNCU61WRY+ScjkZpnIg==", + "dev": true + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true + }, + "node_modules/create-ecdh": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", + "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", + "dev": true, + "dependencies": { + "bn.js": "^4.1.0", + "elliptic": "^6.5.3" + } + }, + "node_modules/create-ecdh/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + }, + "node_modules/create-hash": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", + "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", + "dev": true, + "dependencies": { + "cipher-base": "^1.0.1", + "inherits": "^2.0.1", + "md5.js": "^1.3.4", + "ripemd160": "^2.0.1", + "sha.js": "^2.4.0" + } + }, + "node_modules/create-hmac": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", + "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", + "dev": true, + "dependencies": { + "cipher-base": "^1.0.3", + "create-hash": "^1.1.0", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + } + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, + "node_modules/cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "bin": { + "cross-env": "src/bin/cross-env.js", + "cross-env-shell": "src/bin/cross-env-shell.js" + }, + "engines": { + "node": ">=10.14", + "npm": ">=6", + "yarn": ">=1" + } + }, + "node_modules/cross-fetch": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", + "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", + "dev": true, + "dependencies": { + "node-fetch": "2.6.7" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/crypto-browserify": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", + "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", + "dev": true, + "dependencies": { + "browserify-cipher": "^1.0.0", + "browserify-sign": "^4.0.0", + "create-ecdh": "^4.0.0", + "create-hash": "^1.1.0", + "create-hmac": "^1.1.0", + "diffie-hellman": "^5.0.0", + "inherits": "^2.0.1", + "pbkdf2": "^3.0.3", + "public-encrypt": "^4.0.0", + "randombytes": "^2.0.0", + "randomfill": "^1.0.3" + }, + "engines": { + "node": "*" + } + }, + "node_modules/damerau-levenshtein": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", + "dev": true + }, + "node_modules/dash-ast": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dash-ast/-/dash-ast-1.0.0.tgz", + "integrity": "sha512-Vy4dx7gquTeMcQR/hDkYLGUnwVil6vk4FOOct+djUnHOUWt+zJPJAaRIXaAFkPXtJjvlY7o3rfRu0/3hpnwoUA==", + "dev": true + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/dedent": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", + "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", + "dev": true + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/define-properties": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz", + "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==", + "dependencies": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/defined": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.1.tgz", + "integrity": "sha512-hsBd2qSVCRE+5PmNdHt1uzyrFu5d3RwmFDKzyNZMFq/EwDNJF7Ee5+D5oEKF0hU6LhtoUF1macFvOe4AskQC1Q==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/dependency-graph": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", + "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/deps-sort": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/deps-sort/-/deps-sort-2.0.1.tgz", + "integrity": "sha512-1orqXQr5po+3KI6kQb9A4jnXT1PBwggGl2d7Sq2xsnOeI9GPcE/tGcF9UiSZtZBM7MukY4cAh7MemS6tZYipfw==", + "dev": true, + "dependencies": { + "JSONStream": "^1.0.3", + "shasum-object": "^1.0.0", + "subarg": "^1.0.0", + "through2": "^2.0.0" + }, + "bin": { + "deps-sort": "bin/cmd.js" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/des.js": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.1.0.tgz", + "integrity": "sha512-r17GxjhUCjSRy8aiJpr8/UadFIzMzJGexI3Nmz4ADi9LYSFx4gTBp80+NaX/YsXWWLhpZ7v/v/ubEc/bCNfKwg==", + "dev": true, + "dependencies": { + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/detective": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/detective/-/detective-5.2.1.tgz", + "integrity": "sha512-v9XE1zRnz1wRtgurGu0Bs8uHKFSTdteYZNbIPFVhUZ39L/S79ppMpdmVOZAnoz1jfEFodc48n6MX483Xo3t1yw==", + "dev": true, + "dependencies": { + "acorn-node": "^1.8.2", + "defined": "^1.0.0", + "minimist": "^1.2.6" + }, + "bin": { + "detective": "bin/detective.js" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/devtools-protocol": { + "version": "0.0.1036444", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1036444.tgz", + "integrity": "sha512-0y4f/T8H9lsESV9kKP1HDUXgHxCdniFeJh6Erq+FbdOEvp/Ydp9t8kcAAM5gOd17pMrTDlFWntoHtzzeTUWKNw==", + "dev": true + }, + "node_modules/diacritics-map": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/diacritics-map/-/diacritics-map-0.1.0.tgz", + "integrity": "sha512-3omnDTYrGigU0i4cJjvaKwD52B8aoqyX/NEIkukFFkogBemsIbhSa1O414fpTp5nuszJG6lvQ5vBvDVNCbSsaQ==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/diff-sequences": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", + "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", + "dev": true, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/diffie-hellman": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", + "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", + "dev": true, + "dependencies": { + "bn.js": "^4.1.0", + "miller-rabin": "^4.0.0", + "randombytes": "^2.0.0" + } + }, + "node_modules/diffie-hellman/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/doctrine/node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/domain-browser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", + "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", + "dev": true, + "engines": { + "node": ">=0.4", + "npm": ">=1.2" + } + }, + "node_modules/dot-parts": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dot-parts/-/dot-parts-1.0.1.tgz", + "integrity": "sha512-DcAuaZ2hguFLkxrAwOlvYNFb4IE6xg1Ldzqpma4/UeiT0utd8/E17z1h9mH8s+9Hwh7SeLn83LpIykh/oBBxSw==", + "dev": true + }, + "node_modules/duplexer": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", + "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", + "dev": true + }, + "node_modules/duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==", + "dev": true, + "dependencies": { + "readable-stream": "^2.0.2" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.460", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.460.tgz", + "integrity": "sha512-kKiHnbrHME7z8E6AYaw0ehyxY5+hdaRmeUbjBO22LZMdqTYCO29EvF0T1cQ3pJ1RN5fyMcHl1Lmcsdt9WWJpJQ==", + "dev": true + }, + "node_modules/elliptic": { + "version": "6.5.4", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", + "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", + "dev": true, + "dependencies": { + "bn.js": "^4.11.9", + "brorand": "^1.1.0", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.1", + "inherits": "^2.0.4", + "minimalistic-assert": "^1.0.1", + "minimalistic-crypto-utils": "^1.0.1" + } + }, + "node_modules/elliptic/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", + "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/envinfo": { + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.10.0.tgz", + "integrity": "sha512-ZtUjZO6l5mwTHvc1L9+1q5p/R3wTopcfqMW8r5t8SJSKqeVI/LtajORwRFEKpEFuekjD0VBjwu1HMxL4UalIRw==", + "dev": true, + "bin": { + "envinfo": "dist/cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-abstract": { + "version": "1.21.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.3.tgz", + "integrity": "sha512-ZU4miiY1j3sGPFLJ34VJXEqhpmL+HGByCinGHv4HC+Fxl2fI2Z4yR6tl0mORnDr6PA8eihWo4LmSWDbvhALckg==", + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.2.1", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.10", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.0", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.7", + "string.prototype.trimend": "^1.0.6", + "string.prototype.trimstart": "^1.0.6", + "typed-array-byte-offset": "^1.0.0", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-aggregate-error": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/es-aggregate-error/-/es-aggregate-error-1.0.9.tgz", + "integrity": "sha512-fvnX40sb538wdU6r4s35cq4EY6Lr09Upj40BEVem4LEsuW8XgQep9yD5Q1U2KftokNp1rWODFJ2qwZSsAjFpbg==", + "dependencies": { + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "function-bind": "^1.1.1", + "functions-have-names": "^1.2.3", + "get-intrinsic": "^1.1.3", + "globalthis": "^1.0.3", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-module-lexer": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.3.0.tgz", + "integrity": "sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA==", + "dev": true + }, + "node_modules/es-set-tostringtag": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", + "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "dependencies": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", + "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/escodegen": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.1.0.tgz", + "integrity": "sha512-md+WjA8K+DJELEYe0n4XAOE0XbUYfw2rzb8T+nhZ19OnQxlh+0jMLS6d+z2oqWugIh3uYKu1+KJh6QKeoogLzg==", + "dev": true, + "dependencies": { + "esprima": "~1.0.4", + "estraverse": "~1.5.0", + "esutils": "~1.0.0" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=0.4.0" + }, + "optionalDependencies": { + "source-map": "~0.1.30" + } + }, + "node_modules/escodegen/node_modules/esprima": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", + "integrity": "sha512-rp5dMKN8zEs9dfi9g0X1ClLmV//WRyk/R15mppFNICIFRG5P92VP7Z04p8pk++gABo9W2tY+kHyu6P1mEHgmTA==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/escodegen/node_modules/estraverse": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.5.1.tgz", + "integrity": "sha512-FpCjJDfmo3vsc/1zKSeqR5k42tcIhxFIlvq+h9j0fO2q/h2uLKyweq7rYJ+0CoVvrGQOxIS5wyBrW/+vF58BUQ==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/escodegen/node_modules/source-map": { + "version": "0.1.43", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", + "integrity": "sha512-VtCvB9SIQhk3aF6h+N85EaqIaBFIAfZ9Cu+NJHHVvc8BbEcnvDcFw6sqQ2dQrT6SlOrZq3tIvyD9+EGq/lJryQ==", + "dev": true, + "optional": true, + "dependencies": { + "amdefine": ">=0.0.4" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/eslint": { + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.44.0.tgz", + "integrity": "sha512-0wpHoUbDUHgNCyvFB5aXLiQVfK9B0at6gUvzy83k4kAsQ/u769TQDX6iKC+aO4upIHO9WSaA3QoXYQDHbNwf1A==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.1.0", + "@eslint/js": "8.44.0", + "@humanwhocodes/config-array": "^0.11.10", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.0", + "eslint-visitor-keys": "^3.4.1", + "espree": "^9.6.0", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-prettier": { + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", + "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", + "dev": true, + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz", + "integrity": "sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA==", + "dev": true, + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.11.0", + "resolve": "^1.22.1" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", + "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", + "dev": true, + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-escompat": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-escompat/-/eslint-plugin-escompat-3.4.0.tgz", + "integrity": "sha512-ufTPv8cwCxTNoLnTZBFTQ5SxU2w7E7wiMIS7PSxsgP1eAxFjtSaoZ80LRn64hI8iYziE6kJG6gX/ZCJVxh48Bg==", + "dev": true, + "dependencies": { + "browserslist": "^4.21.0" + }, + "peerDependencies": { + "eslint": ">=5.14.1" + } + }, + "node_modules/eslint-plugin-eslint-comments": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz", + "integrity": "sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^1.0.5", + "ignore": "^5.0.5" + }, + "engines": { + "node": ">=6.5.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=4.19.1" + } + }, + "node_modules/eslint-plugin-filenames": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-filenames/-/eslint-plugin-filenames-1.3.2.tgz", + "integrity": "sha512-tqxJTiEM5a0JmRCUYQmxw23vtTxrb2+a3Q2mMOPhFxvt7ZQQJmdiuMby9B/vUAuVMghyP7oET+nIf6EO6CBd/w==", + "dev": true, + "dependencies": { + "lodash.camelcase": "4.3.0", + "lodash.kebabcase": "4.1.1", + "lodash.snakecase": "4.1.1", + "lodash.upperfirst": "4.3.1" + }, + "peerDependencies": { + "eslint": "*" + } + }, + "node_modules/eslint-plugin-github": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-4.9.0.tgz", + "integrity": "sha512-c4jnJXJzHy8lzdYjOXlXcY7jX4b2ciGh+ugZM5b6vs6q2+m+6BrNl20u5WxloJvH6Q8CbZ0+Lnh7lDJxUd3WkQ==", + "dev": true, + "dependencies": { + "@github/browserslist-config": "^1.0.0", + "@typescript-eslint/eslint-plugin": "^5.1.0", + "@typescript-eslint/parser": "^5.1.0", + "aria-query": "^5.3.0", + "eslint-config-prettier": ">=8.0.0", + "eslint-plugin-escompat": "^3.3.3", + "eslint-plugin-eslint-comments": "^3.2.0", + "eslint-plugin-filenames": "^1.3.2", + "eslint-plugin-i18n-text": "^1.0.1", + "eslint-plugin-import": "^2.25.2", + "eslint-plugin-jsx-a11y": "^6.7.1", + "eslint-plugin-no-only-tests": "^3.0.0", + "eslint-plugin-prettier": "^4.0.0", + "eslint-rule-documentation": ">=1.0.0", + "jsx-ast-utils": "^3.3.2", + "prettier": "^2.2.1", + "svg-element-attributes": "^1.3.1" + }, + "bin": { + "eslint-ignore-errors": "bin/eslint-ignore-errors.js" + }, + "peerDependencies": { + "eslint": "^8.0.1" + } + }, + "node_modules/eslint-plugin-i18n-text": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-i18n-text/-/eslint-plugin-i18n-text-1.0.1.tgz", + "integrity": "sha512-3G3UetST6rdqhqW9SfcfzNYMpQXS7wNkJvp6dsXnjzGiku6Iu5hl3B0kmk6lIcFPwYjhQIY+tXVRtK9TlGT7RA==", + "dev": true, + "peerDependencies": { + "eslint": ">=5.0.0" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.27.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz", + "integrity": "sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "array.prototype.flatmap": "^1.3.1", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.7", + "eslint-module-utils": "^2.7.4", + "has": "^1.0.3", + "is-core-module": "^2.11.0", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.values": "^1.1.6", + "resolve": "^1.22.1", + "semver": "^6.3.0", + "tsconfig-paths": "^3.14.1" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-jsx-a11y": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz", + "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.20.7", + "aria-query": "^5.1.3", + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "ast-types-flow": "^0.0.7", + "axe-core": "^4.6.2", + "axobject-query": "^3.1.1", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "has": "^1.0.3", + "jsx-ast-utils": "^3.3.3", + "language-tags": "=1.0.5", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=4.0" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-jsx-a11y/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-no-only-tests": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-3.1.0.tgz", + "integrity": "sha512-Lf4YW/bL6Un1R6A76pRZyE1dl1vr31G/ev8UzIc/geCgFWyrKil8hVjYqWVKGB/UIGmb6Slzs9T0wNezdSVegw==", + "dev": true, + "engines": { + "node": ">=5.0.0" + } + }, + "node_modules/eslint-plugin-prettier": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", + "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "dev": true, + "dependencies": { + "prettier-linter-helpers": "^1.0.0" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "eslint": ">=7.28.0", + "prettier": ">=2.0.0" + }, + "peerDependenciesMeta": { + "eslint-config-prettier": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-security": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-1.7.1.tgz", + "integrity": "sha512-sMStceig8AFglhhT2LqlU5r+/fn9OwsA72O5bBuQVTssPCdQAOQzL+oMn/ZcpeUY6KcNfLJArgcrsSULNjYYdQ==", + "dev": true, + "dependencies": { + "safe-regex": "^2.1.1" + } + }, + "node_modules/eslint-plugin-sonarjs": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.15.0.tgz", + "integrity": "sha512-LuxHdAe6VqSbi1phsUvNjbmXLuvlobmryQJJNyQYbdubCfz6K8tmgoqNiJPnz0pP2AbYDbtuPm0ajOMgMrC+dQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "eslint": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/eslint-rule-documentation": { + "version": "1.0.23", + "resolved": "https://registry.npmjs.org/eslint-rule-documentation/-/eslint-rule-documentation-1.0.23.tgz", + "integrity": "sha512-pWReu3fkohwyvztx/oQWWgld2iad25TfUdi6wvhhaDPIQjHU/pyvlKgXFw1kX31SQK2Nq9MH+vRDWB0ZLy8fYw==", + "dev": true, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/eslint-scope": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz", + "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/eslint/node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/eslint/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/espree": { + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.0.tgz", + "integrity": "sha512-1FH/IiruXZ84tpUlm0aCUEwMl2Ho5ilqVh0VvQXw+byAz/4SAciyHLlfmL5WYqsvD38oymdUwBss0LtK8m4s/A==", + "dev": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree/node_modules/acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", + "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", + "dev": true, + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esquery/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-1.0.0.tgz", + "integrity": "sha512-x/iYH53X3quDwfHRz4y8rn4XcEwwCJeWsul9pF1zldMbGtgOtMNBEOuYWwB1EQlK2LRa1fev3YAgym/RElp5Cg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/events": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/events/-/events-2.1.0.tgz", + "integrity": "sha512-3Zmiobend8P9DjmKAty0Era4jV8oJ0yGYe2nJJAxgymF9+N8F2m0hhZiMoWtcfepExzNKZumFU3ksdQbInGWCg==", + "dev": true, + "engines": { + "node": ">=0.4.x" + } + }, + "node_modules/evp_bytestokey": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", + "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", + "dev": true, + "dependencies": { + "md5.js": "^1.3.4", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expand-range": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", + "integrity": "sha512-AFASGfIlnIbkKPQwX1yHaDjFvh/1gyKJODme52V6IORh69uEYgZp0o9C+qsIGNVEiuuhQU0CSSl++Rlegg1qvA==", + "dev": true, + "dependencies": { + "fill-range": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-range/node_modules/fill-range": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", + "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", + "dev": true, + "dependencies": { + "is-number": "^2.1.0", + "isobject": "^2.0.0", + "randomatic": "^3.0.0", + "repeat-element": "^1.1.2", + "repeat-string": "^1.5.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-range/node_modules/is-number": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", + "integrity": "sha512-QUzH43Gfb9+5yckcrSA0VBDwEtDUchrk4F6tfJZQuNzDJbEDB9cZNzSfXGQ1jqmdDY/kl41lUOWM9syA8z8jlg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expect": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.6.1.tgz", + "integrity": "sha512-XEdDLonERCU1n9uR56/Stx9OqojaLAQtZf9PrCHH9Hl8YXiEIka3H4NXJ3NOIBmQJTg7+j7buh34PMHfJujc8g==", + "dev": true, + "dependencies": { + "@jest/expect-utils": "^29.6.1", + "@types/node": "*", + "jest-get-type": "^29.4.3", + "jest-matcher-utils": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/expect/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/expect/node_modules/diff-sequences": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", + "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/expect/node_modules/jest-diff": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.1.tgz", + "integrity": "sha512-FsNCvinvl8oVxpNLttNQX7FAq7vR+gMDGj90tiP7siWw1UdakWUGqrylpsYrpvj908IYckm5Y0Q7azNAozU1Kg==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/expect/node_modules/jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/expect/node_modules/jest-matcher-utils": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.6.1.tgz", + "integrity": "sha512-SLaztw9d2mfQQKHmJXKM0HCbl2PPVld/t9Xa6P9sgiExijviSp7TnZZpw2Fpt+OI3nwUO/slJbOfzfUMKKC5QA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.6.1", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/expect/node_modules/pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/expect/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/exposify": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/exposify/-/exposify-0.5.0.tgz", + "integrity": "sha512-SXS1oEW6VXYinz7RbTPUj+RhO3ZXuj2cmUTWTaO8KcWMcxLZF3wzjqSuaOW0EZYBoKooUM8DIkvfWWOMXTMQFQ==", + "dev": true, + "dependencies": { + "globo": "~1.1.0", + "map-obj": "~1.0.1", + "replace-requires": "~1.0.3", + "through2": "~0.4.0", + "transformify": "~0.1.1" + } + }, + "node_modules/exposify/node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", + "dev": true + }, + "node_modules/exposify/node_modules/object-keys": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz", + "integrity": "sha512-ncrLw+X55z7bkl5PnUvHwFK9FcGuFYo9gtjws2XtSzL+aZ8tm830P60WJ0dSmFVaSalWieW5MD7kEdnXda9yJw==", + "dev": true + }, + "node_modules/exposify/node_modules/readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "node_modules/exposify/node_modules/string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", + "dev": true + }, + "node_modules/exposify/node_modules/through2": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-0.4.2.tgz", + "integrity": "sha512-45Llu+EwHKtAZYTPPVn3XZHBgakWMN3rokhEv5hu596XP+cNgplMg+Gj+1nmAvj+L0K7+N49zBKx5rah5u0QIQ==", + "dev": true, + "dependencies": { + "readable-stream": "~1.0.17", + "xtend": "~2.1.1" + } + }, + "node_modules/exposify/node_modules/xtend": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-2.1.2.tgz", + "integrity": "sha512-vMNKzr2rHP9Dp/e1NQFnLQlwlhp9L/LfvnsVdHxN1f+uggyVI3i08uD14GPvCToPkdsRfyPqIyYGmIk58V98ZQ==", + "dev": true, + "dependencies": { + "object-keys": "~0.4.0" + }, + "engines": { + "node": ">=0.4" + } + }, + "node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extract-zip": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", + "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "get-stream": "^5.1.0", + "yauzl": "^2.10.0" + }, + "bin": { + "extract-zip": "cli.js" + }, + "engines": { + "node": ">= 10.17.0" + }, + "optionalDependencies": { + "@types/yauzl": "^2.9.1" + } + }, + "node_modules/extract-zip/node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "node_modules/fast-diff": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", + "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", + "dev": true + }, + "node_modules/fast-glob": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.0.tgz", + "integrity": "sha512-ChDuvbOypPuNjO8yIDf36x7BlZX1smcUMTTcyoIjycexOxd6DFsKsg21qVBzEmr3G7fUKIRy2/psii+CIUt7FA==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/fast-memoize": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz", + "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==" + }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", + "dev": true + }, + "node_modules/fastest-levenshtein": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", + "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", + "dev": true, + "engines": { + "node": ">= 4.9.1" + } + }, + "node_modules/fastq": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "dev": true, + "dependencies": { + "pend": "~1.2.0" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-parent-dir": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/find-parent-dir/-/find-parent-dir-0.3.1.tgz", + "integrity": "sha512-o4UcykWV/XN9wm+jMEtWLPlV8RXCZnMhQI6F6OdHeSez7iiJWePw8ijOlskJZMsaQoGR/b7dH6lO02HhaTN7+A==", + "dev": true + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", + "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", + "dev": true, + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", + "dev": true + }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs-constants": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", + "dev": true + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "node_modules/function.prototype.name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", + "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-assigned-identifiers": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz", + "integrity": "sha512-mBBwmeGTrxEMO4pMaaf/uUEFHnYtwr8FTe8Y/mer4rcV/bye0qGm6pw1bGZFGStxC5O76c5ZAVBGnqHmOaJpdQ==", + "dev": true + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true + }, + "node_modules/globals": { + "version": "13.20.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz", + "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globo": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/globo/-/globo-1.1.0.tgz", + "integrity": "sha512-9kacJpRuOo2IPxzYdogGZKnREZXMLs7P2/gaeHxynuL7kmxdB9o4EVtpd69f81CeUFWmZSxj1heZFEXQDTkaLQ==", + "dev": true, + "dependencies": { + "accessory": "~1.1.0", + "is-defined": "~1.0.0", + "ternary": "~1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true + }, + "node_modules/gray-matter": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-2.1.1.tgz", + "integrity": "sha512-vbmvP1Fe/fxuT2QuLVcqb2BfK7upGhhbLIt9/owWEvPYrZZEkelLcq2HqzxosV+PQ67dUFLaAeNpH7C4hhICAA==", + "dev": true, + "dependencies": { + "ansi-red": "^0.1.1", + "coffee-script": "^1.12.4", + "extend-shallow": "^2.0.1", + "js-yaml": "^3.8.1", + "toml": "^2.3.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gray-matter/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/gray-matter/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/gulp-header": { + "version": "1.8.12", + "resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.12.tgz", + "integrity": "sha512-lh9HLdb53sC7XIZOYzTXM4lFuXElv3EVkSDhsd7DoJBj7hm+Ni7D3qYbb+Rr8DuM8nRanBvkVO9d7askreXGnQ==", + "deprecated": "Removed event-stream from gulp-header", + "dev": true, + "dependencies": { + "concat-with-sourcemaps": "*", + "lodash.template": "^4.4.0", + "through2": "^2.0.0" + } + }, + "node_modules/gzip-size": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", + "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", + "dev": true, + "dependencies": { + "duplexer": "^0.1.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "dependencies": { + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-require": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/has-require/-/has-require-1.2.2.tgz", + "integrity": "sha512-JHMVoV2TG3LEFw/8UjxXJzCRGdOHJzzAXft7BafERh2rdPYZcS5N6Twv7Q8yLy9mciKsVBkXmpWSuLp5GUXNng==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^1.0.3" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hash-base": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", + "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.4", + "readable-stream": "^3.6.0", + "safe-buffer": "^5.2.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/hash-base/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/hash.js": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", + "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" + } + }, + "node_modules/hmac-drbg": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", + "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", + "dev": true, + "dependencies": { + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/htmlescape": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/htmlescape/-/htmlescape-1.1.1.tgz", + "integrity": "sha512-eVcrzgbR4tim7c7soKQKtxa/kQM4TzjnlU83rcZ9bHU6t31ehfV7SktN6McWgwPWg+JYMA/O3qpGxBvFq1z2Jg==", + "dev": true, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/https-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", + "integrity": "sha512-J+FkSdyD+0mA0N+81tMotaRMfSL9SGi+xpD3T6YApKsc3bGSXJlfXri3VyFOeYkfLRQisDk1W+jIFFKBeUBbBg==", + "dev": true + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/ignore": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", + "dev": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/immer": { + "version": "9.0.21", + "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", + "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", + "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", + "dev": true, + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/inline-source-map": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.6.2.tgz", + "integrity": "sha512-0mVWSSbNDvedDWIN4wxLsdPM4a7cIPcpyMxj3QZ406QRwQ6ePGB1YIHxVPjqpcUGbWQ5C+nHTwGNWAGvt7ggVA==", + "dev": true, + "dependencies": { + "source-map": "~0.5.3" + } + }, + "node_modules/insert-module-globals": { + "version": "7.2.1", + "resolved": "https://registry.npmjs.org/insert-module-globals/-/insert-module-globals-7.2.1.tgz", + "integrity": "sha512-ufS5Qq9RZN+Bu899eA9QCAYThY+gGW7oRkmb0vC93Vlyu/CFGcH0OYPEjVkDXA5FEbTt1+VWzdoOD3Ny9N+8tg==", + "dev": true, + "dependencies": { + "acorn-node": "^1.5.2", + "combine-source-map": "^0.8.0", + "concat-stream": "^1.6.1", + "is-buffer": "^1.1.0", + "JSONStream": "^1.0.3", + "path-is-absolute": "^1.0.1", + "process": "~0.11.0", + "through2": "^2.0.0", + "undeclared-identifiers": "^1.1.2", + "xtend": "^4.0.0" + }, + "bin": { + "insert-module-globals": "bin/cmd.js" + } + }, + "node_modules/internal-slot": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz", + "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==", + "dependencies": { + "get-intrinsic": "^1.2.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/interpret": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", + "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", + "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", + "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-defined": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-defined/-/is-defined-1.0.0.tgz", + "integrity": "sha512-/drGiPCBGsJDhtnLkdcNl8QtEo9ddV10m0Y7wzkopIQM4u91wXhe84pZSH6RLukO2uJDtQoaAr1XoP0ilwsYzg==", + "dev": true + }, + "node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-plain-object/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", + "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", + "dev": true, + "dependencies": { + "isarray": "1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", + "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", + "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.6.1.tgz", + "integrity": "sha512-Nirw5B4nn69rVUZtemCQhwxOBhm0nsp3hmtF4rzCeWD7BkjAXRIji7xWQfnTNbz9g0aVsBX6aZK3n+23LM6uDw==", + "dev": true, + "dependencies": { + "@jest/core": "^29.6.1", + "@jest/types": "^29.6.1", + "import-local": "^3.0.2", + "jest-cli": "^29.6.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.5.0.tgz", + "integrity": "sha512-IFG34IUMUaNBIxjQXF/iu7g6EcdMrGRRxaUSw92I/2g2YC6vCdTltl4nHvt7Ci5nSJwXIkCu8Ka1DKF+X7Z1Ag==", + "dev": true, + "dependencies": { + "execa": "^5.0.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.6.1.tgz", + "integrity": "sha512-tPbYLEiBU4MYAL2XoZme/bgfUeotpDBd81lgHLCbDZZFaGmECk0b+/xejPFtmiBP87GgP/y4jplcRpbH+fgCzQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.6.1", + "@jest/expect": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^0.7.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.6.1", + "jest-matcher-utils": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-runtime": "^29.6.1", + "jest-snapshot": "^29.6.1", + "jest-util": "^29.6.1", + "p-limit": "^3.1.0", + "pretty-format": "^29.6.1", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/diff-sequences": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", + "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/jest-diff": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.1.tgz", + "integrity": "sha512-FsNCvinvl8oVxpNLttNQX7FAq7vR+gMDGj90tiP7siWw1UdakWUGqrylpsYrpvj908IYckm5Y0Q7azNAozU1Kg==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/jest-matcher-utils": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.6.1.tgz", + "integrity": "sha512-SLaztw9d2mfQQKHmJXKM0HCbl2PPVld/t9Xa6P9sgiExijviSp7TnZZpw2Fpt+OI3nwUO/slJbOfzfUMKKC5QA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.6.1", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/jest-config": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.6.1.tgz", + "integrity": "sha512-XdjYV2fy2xYixUiV2Wc54t3Z4oxYPAELUzWnV6+mcbq0rh742X2p52pii5A3oeRzYjLnQxCsZmp0qpI6klE2cQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.6.1", + "@jest/types": "^29.6.1", + "babel-jest": "^29.6.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.6.1", + "jest-environment-node": "^29.6.1", + "jest-get-type": "^29.4.3", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.6.1", + "jest-runner": "^29.6.1", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.6.1", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-config/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-config/node_modules/pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-config/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/jest-diff": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", + "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-docblock": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.4.3.tgz", + "integrity": "sha512-fzdTftThczeSD9nZ3fzA/4KkHtnmllawWrXO69vtI+L9WjEIuXWs4AmyME7lN5hU7dB0sHhuPfcKofRsUb/2Fg==", + "dev": true, + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.6.1.tgz", + "integrity": "sha512-n5eoj5eiTHpKQCAVcNTT7DRqeUmJ01hsAL0Q1SMiBHcBcvTKDELixQOGMCpqhbIuTcfC4kMfSnpmDqRgRJcLNQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.1", + "chalk": "^4.0.0", + "jest-get-type": "^29.4.3", + "jest-util": "^29.6.1", + "pretty-format": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each/node_modules/pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/jest-environment-node": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.6.1.tgz", + "integrity": "sha512-ZNIfAiE+foBog24W+2caIldl4Irh8Lx1PUhg/GZ0odM1d/h2qORAsejiFc7zb+SEmYPn1yDZzEDSU5PmDkmVLQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.6.1", + "@jest/fake-timers": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "jest-mock": "^29.6.1", + "jest-util": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", + "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", + "dev": true, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.6.1.tgz", + "integrity": "sha512-0m7f9PZXxOCk1gRACiVgX85knUKPKLPg4oRCjLoqIm9brTHXaorMA0JpmtmVkQiT8nmXyIVoZd/nnH1cfC33ig==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.1", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.4.3", + "jest-util": "^29.6.1", + "jest-worker": "^29.6.1", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.6.1.tgz", + "integrity": "sha512-OrxMNyZirpOEwkF3UHnIkAiZbtkBWiye+hhBweCHkVbCgyEy71Mwbb5zgeTNYWJBi1qgDVfPC1IwO9dVEeTLwQ==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-leak-detector/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-leak-detector/node_modules/jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-leak-detector/node_modules/pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-leak-detector/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/jest-matcher-utils": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", + "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.6.1.tgz", + "integrity": "sha512-KoAW2zAmNSd3Gk88uJ56qXUWbFk787QKmjjJVOjtGFmmGSZgDBrlIL4AfQw1xyMYPNVD7dNInfIbur9B2rd/wQ==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.6.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/jest-mock": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.6.1.tgz", + "integrity": "sha512-brovyV9HBkjXAEdRooaTQK42n8usKoSRR3gihzUpYeV/vwqgSoNfrksO7UfSACnPmxasO/8TmHM3w9Hp3G1dgw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.1", + "@types/node": "*", + "jest-util": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.4.3.tgz", + "integrity": "sha512-O4FglZaMmWXbGHSQInfXewIsd1LMn9p3ZXB/6r4FOkyhX2/iP/soMG98jGvk/A3HAN78+5VWcBGO0BJAPRh4kg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.6.1.tgz", + "integrity": "sha512-AeRkyS8g37UyJiP9w3mmI/VXU/q8l/IH52vj/cDAyScDcemRbSBhfX/NMYIGilQgSVwsjxrCHf3XJu4f+lxCMg==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.6.1", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.6.1.tgz", + "integrity": "sha512-BbFvxLXtcldaFOhNMXmHRWx1nXQO5LoXiKSGQcA1LxxirYceZT6ch8KTE1bK3X31TNG/JbkI7OkS/ABexVahiw==", + "dev": true, + "dependencies": { + "jest-regex-util": "^29.4.3", + "jest-snapshot": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.6.1.tgz", + "integrity": "sha512-tw0wb2Q9yhjAQ2w8rHRDxteryyIck7gIzQE4Reu3JuOBpGp96xWgF0nY8MDdejzrLCZKDcp8JlZrBN/EtkQvPQ==", + "dev": true, + "dependencies": { + "@jest/console": "^29.6.1", + "@jest/environment": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.4.3", + "jest-environment-node": "^29.6.1", + "jest-haste-map": "^29.6.1", + "jest-leak-detector": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-resolve": "^29.6.1", + "jest-runtime": "^29.6.1", + "jest-util": "^29.6.1", + "jest-watcher": "^29.6.1", + "jest-worker": "^29.6.1", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.6.1.tgz", + "integrity": "sha512-D6/AYOA+Lhs5e5il8+5pSLemjtJezUr+8zx+Sn8xlmOux3XOqx4d8l/2udBea8CRPqqrzhsKUsN/gBDE/IcaPQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.6.1", + "@jest/fake-timers": "^29.6.1", + "@jest/globals": "^29.6.1", + "@jest/source-map": "^29.6.0", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-mock": "^29.6.1", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.6.1", + "jest-snapshot": "^29.6.1", + "jest-util": "^29.6.1", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime/node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.6.1.tgz", + "integrity": "sha512-G4UQE1QQ6OaCgfY+A0uR1W2AY0tGXUPQpoUClhWHq1Xdnx1H6JOrC2nH5lqnOEqaDgbHFgIwZ7bNq24HpB180A==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/prettier": "^2.1.5", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.6.1", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.6.1", + "jest-get-type": "^29.4.3", + "jest-matcher-utils": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1", + "natural-compare": "^1.4.0", + "pretty-format": "^29.6.1", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/diff-sequences": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", + "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/jest-diff": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.1.tgz", + "integrity": "sha512-FsNCvinvl8oVxpNLttNQX7FAq7vR+gMDGj90tiP7siWw1UdakWUGqrylpsYrpvj908IYckm5Y0Q7azNAozU1Kg==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/jest-matcher-utils": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.6.1.tgz", + "integrity": "sha512-SLaztw9d2mfQQKHmJXKM0HCbl2PPVld/t9Xa6P9sgiExijviSp7TnZZpw2Fpt+OI3nwUO/slJbOfzfUMKKC5QA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.6.1", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/jest-util": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.6.1.tgz", + "integrity": "sha512-NRFCcjc+/uO3ijUVyNOQJluf8PtGCe/W6cix36+M3cTFgiYqFOOW5MgN4JOOcvbUhcKTYVd1CvHz/LWi8d16Mg==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.6.1.tgz", + "integrity": "sha512-r3Ds69/0KCN4vx4sYAbGL1EVpZ7MSS0vLmd3gV78O+NAx3PDQQukRU5hNHPXlyqCgFY8XUk7EuTMLugh0KzahA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.1", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.4.3", + "leven": "^3.1.0", + "pretty-format": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-validate/node_modules/jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/jest-watcher": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.6.1.tgz", + "integrity": "sha512-d4wpjWTS7HEZPaaj8m36QiaP856JthRZkrgcIY/7ISoUWPIillrXM23WPboZVLbiwZBt4/qn2Jke84Sla6JhFA==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.6.1", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.6.1.tgz", + "integrity": "sha512-U+Wrbca7S8ZAxAe9L6nb6g8kPdia5hj32Puu5iOqBCMTMWFHXuK6dOV2IFrpedbTV8fjMFLdWNttQTBL6u2MRA==", + "dev": true, + "dependencies": { + "@types/node": "*", + "jest-util": "^29.6.1", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/jest/node_modules/jest-cli": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.6.1.tgz", + "integrity": "sha512-607dSgTA4ODIN6go9w6xY3EYkyPFGicx51a69H7yfvt7lN53xNswEVLovq+E77VsTRi5fWprLH0yl4DJgE8Ing==", + "dev": true, + "dependencies": { + "@jest/core": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/types": "^29.6.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "import-local": "^3.0.2", + "jest-config": "^29.6.1", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", + "prompts": "^2.0.1", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsep": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.3.8.tgz", + "integrity": "sha512-qofGylTGgYj9gZFsHuyWAN4jr35eJ66qJCK4eKDnldohuUoQFbU3iZn2zjvEbd9wOAhP9Wx5DsAAduTyE1PSWQ==", + "engines": { + "node": ">= 10.16.0" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json-schema-migrate": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-0.2.0.tgz", + "integrity": "sha512-dq4/oHWmtw/+0ytnXsDqVn+VsVweTEmzm5jLgguPn9BjSzn6/q58ZiZx3BHiQyJs612f0T5Z+MrUEUUY5DHsRg==", + "dependencies": { + "ajv": "^5.0.0" + } + }, + "node_modules/json-schema-migrate/node_modules/ajv": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha512-Ajr4IcMXq/2QmMkEmSvxqfLN5zGmJ92gHXAeOXq1OekoH2rfDNsgdDoL2f7QaRCy7G/E6TpxBVdRuNraMztGHw==", + "dependencies": { + "co": "^4.6.0", + "fast-deep-equal": "^1.0.0", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.3.0" + } + }, + "node_modules/json-schema-migrate/node_modules/fast-deep-equal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", + "integrity": "sha512-fueX787WZKCV0Is4/T2cyAdM4+x1S3MXXOAhavE1ys/W42SHAPacLTQhucja22QBYrfGw50M2sRiXPtTGv9Ymw==" + }, + "node_modules/json-schema-migrate/node_modules/json-schema-traverse": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", + "integrity": "sha512-4JD/Ivzg7PoW8NzdrBSr3UFwC9mHgvI7Z6z3QGBsSHgKaRTUDmyZAAKJo2UbG1kUVfS9WS8bi36N49U1xw43DA==" + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/json-stable-stringify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz", + "integrity": "sha512-nKtD/Qxm7tWdZqJoldEC7fF0S41v0mWbeaXG3637stOWfyGxTgWTYE2wtfKmjzpvxv2MA2xzxsXOIiwUpkX6Qw==", + "dev": true, + "dependencies": { + "jsonify": "~0.0.0" + } + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/jsonc-parser": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.2.1.tgz", + "integrity": "sha512-o6/yDBYccGvTz1+QFevz6l6OBZ2+fMVu2JZ9CIhzsYRX4mjaK5IyX9eldUdCmga16zlgQxyrj5pt9kzuj2C02w==" + }, + "node_modules/jsonify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", + "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/jsonparse": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", + "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", + "dev": true, + "engines": [ + "node >= 0.2.0" + ] + }, + "node_modules/jsonpath-plus": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.2.0.tgz", + "integrity": "sha512-zBfiUPM5nD0YZSBT/o/fbCUlCcepMIdP0CJZxM1+KgA4f2T206f6VAg9e7mX35+KlMaIc5qXW34f3BnwJ3w+RA==", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/jsonpointer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", + "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/JSONStream": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", + "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", + "dev": true, + "dependencies": { + "jsonparse": "^1.2.0", + "through": ">=2.2.7 <3" + }, + "bin": { + "JSONStream": "bin.js" + }, + "engines": { + "node": "*" + } + }, + "node_modules/jsx-ast-utils": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.4.tgz", + "integrity": "sha512-fX2TVdCViod6HwKEtSWGHs57oFhVfCMwieb9PuRDgjDPh5XeqJiHFFFJCHxU5cnTc3Bu/GRL+kPiFmw8XWOfKw==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "object.assign": "^4.1.4", + "object.values": "^1.1.6" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/labeled-stream-splicer": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/labeled-stream-splicer/-/labeled-stream-splicer-2.0.2.tgz", + "integrity": "sha512-Ca4LSXFFZUjPScRaqOcFxneA0VpKZr4MMYCljyQr4LIewTLb3Y0IUTIsnBBsVubIeEfxeSZpSjSsRM8APEQaAw==", + "dev": true, + "dependencies": { + "inherits": "^2.0.1", + "stream-splicer": "^2.0.0" + } + }, + "node_modules/language-subtag-registry": { + "version": "0.3.22", + "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", + "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==", + "dev": true + }, + "node_modules/language-tags": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", + "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", + "dev": true, + "dependencies": { + "language-subtag-registry": "~0.3.2" + } + }, + "node_modules/lazy-cache": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", + "integrity": "sha512-7vp2Acd2+Kz4XkzxGxaB1FWOi8KjWIWsgdfD5MCb86DWvlLqhRPM+d6Pro3iNEL5VT9mstz5hKAlcd+QR6H3aA==", + "dev": true, + "dependencies": { + "set-getter": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/list-item": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/list-item/-/list-item-1.1.1.tgz", + "integrity": "sha512-S3D0WZ4J6hyM8o5SNKWaMYB1ALSacPZ2nHGEuCjmHZ+dc03gFeNZoNDcqfcnO4vDhTZmNrqrpYZCdXsRh22bzw==", + "dev": true, + "dependencies": { + "expand-range": "^1.8.1", + "extend-shallow": "^2.0.1", + "is-number": "^2.1.0", + "repeat-string": "^1.5.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/list-item/node_modules/is-number": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", + "integrity": "sha512-QUzH43Gfb9+5yckcrSA0VBDwEtDUchrk4F6tfJZQuNzDJbEDB9cZNzSfXGQ1jqmdDY/kl41lUOWM9syA8z8jlg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true, + "engines": { + "node": ">=6.11.5" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash._reinterpolate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", + "integrity": "sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA==", + "dev": true + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "dev": true + }, + "node_modules/lodash.kebabcase": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz", + "integrity": "sha512-N8XRTIMMqqDgSy4VLKPnJ/+hpGZN+PHQiJnSenYqPaVV/NCqEogTnAdZLQiGKhxX+JCs8waWq2t1XHWKOmlY8g==", + "dev": true + }, + "node_modules/lodash.memoize": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-3.0.4.tgz", + "integrity": "sha512-eDn9kqrAmVUC1wmZvlQ6Uhde44n+tXpqPrN8olQJbttgh0oKclk+SF54P47VEGE9CEiMeRwAP8BaM7UHvBkz2A==", + "dev": true + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, + "node_modules/lodash.snakecase": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", + "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==", + "dev": true + }, + "node_modules/lodash.template": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", + "integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==", + "dev": true, + "dependencies": { + "lodash._reinterpolate": "^3.0.0", + "lodash.templatesettings": "^4.0.0" + } + }, + "node_modules/lodash.templatesettings": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz", + "integrity": "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==", + "dev": true, + "dependencies": { + "lodash._reinterpolate": "^3.0.0" + } + }, + "node_modules/lodash.topath": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/lodash.topath/-/lodash.topath-4.5.2.tgz", + "integrity": "sha512-1/W4dM+35DwvE/iEd1M9ekewOSTlpFekhw9mhAtrwjVqUr83/ilQiyAvmg4tVX7Unkcfl1KC+i9WdaT4B6aQcg==" + }, + "node_modules/lodash.upperfirst": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz", + "integrity": "sha512-sReKOYJIJf74dhJONhU4e0/shzi1trVbSWDOhKYE5XV2O+H7Sb2Dihwuc7xWxVl+DgFPyTqIN3zMfT9cq5iWDg==", + "dev": true + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/markdown-link": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/markdown-link/-/markdown-link-0.1.1.tgz", + "integrity": "sha512-TurLymbyLyo+kAUUAV9ggR9EPcDjP/ctlv9QAFiqUH7c+t6FlsbivPo9OKTU8xdOx9oNd2drW/Fi5RRElQbUqA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/markdown-toc": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/markdown-toc/-/markdown-toc-1.2.0.tgz", + "integrity": "sha512-eOsq7EGd3asV0oBfmyqngeEIhrbkc7XVP63OwcJBIhH2EpG2PzFcbZdhy1jutXSlRBBVMNXHvMtSr5LAxSUvUg==", + "dev": true, + "dependencies": { + "concat-stream": "^1.5.2", + "diacritics-map": "^0.1.0", + "gray-matter": "^2.1.0", + "lazy-cache": "^2.0.2", + "list-item": "^1.1.1", + "markdown-link": "^0.1.1", + "minimist": "^1.2.0", + "mixin-deep": "^1.1.3", + "object.pick": "^1.2.0", + "remarkable": "^1.7.1", + "repeat-string": "^1.6.1", + "strip-color": "^0.1.0" + }, + "bin": { + "markdown-toc": "cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/math-random": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.4.tgz", + "integrity": "sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A==", + "dev": true + }, + "node_modules/md5.js": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", + "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", + "dev": true, + "dependencies": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/miller-rabin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", + "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", + "dev": true, + "dependencies": { + "bn.js": "^4.0.0", + "brorand": "^1.0.1" + }, + "bin": { + "miller-rabin": "bin/miller-rabin" + } + }, + "node_modules/miller-rabin/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", + "dev": true + }, + "node_modules/minimalistic-crypto-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", + "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==", + "dev": true + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mixin-deep": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "dev": true, + "dependencies": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/mixin-deep/node_modules/is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/mkdirp-classic": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", + "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", + "dev": true + }, + "node_modules/module-deps": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/module-deps/-/module-deps-6.2.3.tgz", + "integrity": "sha512-fg7OZaQBcL4/L+AK5f4iVqf9OMbCclXfy/znXRxTVhJSeW5AIlS9AwheYwDaXM3lVW7OBeaeUEY3gbaC6cLlSA==", + "dev": true, + "dependencies": { + "browser-resolve": "^2.0.0", + "cached-path-relative": "^1.0.2", + "concat-stream": "~1.6.0", + "defined": "^1.0.0", + "detective": "^5.2.0", + "duplexer2": "^0.1.2", + "inherits": "^2.0.1", + "JSONStream": "^1.0.3", + "parents": "^1.0.0", + "readable-stream": "^2.0.2", + "resolve": "^1.4.0", + "stream-combiner2": "^1.1.1", + "subarg": "^1.0.0", + "through2": "^2.0.0", + "xtend": "^4.0.0" + }, + "bin": { + "module-deps": "bin/cmd.js" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/mothership": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/mothership/-/mothership-0.3.0.tgz", + "integrity": "sha512-/ORGXVhkG5Qal0ZD3BnxG/JtMcCJKOn7FkbbTA8N9HwJyXGsBYq9EXH7WbsRCpGUwmwrpQqN6ENLUL+ebmNTCQ==", + "dev": true, + "dependencies": { + "find-parent-dir": "~0.3.0" + } + }, + "node_modules/mrmime": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-1.0.1.tgz", + "integrity": "sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/natural-compare-lite": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", + "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", + "dev": true + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node_modules/nimma": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/nimma/-/nimma-0.2.2.tgz", + "integrity": "sha512-V52MLl7BU+tH2Np9tDrIXK8bql3MVUadnMIl/0/oZSGC9keuro0O9UUv9QKp0aMvtN8HRew4G7byY7H4eWsxaQ==", + "dependencies": { + "@jsep-plugin/regex": "^1.0.1", + "@jsep-plugin/ternary": "^1.0.2", + "astring": "^1.8.1", + "jsep": "^1.2.0" + }, + "engines": { + "node": "^12.20 || >=14.13" + }, + "optionalDependencies": { + "jsonpath-plus": "^6.0.1", + "lodash.topath": "^4.5.2" + } + }, + "node_modules/nimma/node_modules/jsonpath-plus": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-6.0.1.tgz", + "integrity": "sha512-EvGovdvau6FyLexFH2OeXfIITlgIbgZoAZe3usiySeaIDm5QS+A10DKNpaPBBqqRSZr2HN6HVNXxtwUAr2apEw==", + "optional": true, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/node-fetch": { + "version": "2.6.7", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", + "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.13", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", + "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", + "dev": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.12.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.entries": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz", + "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz", + "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object.pick/node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object.values": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", + "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/opener": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", + "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", + "dev": true, + "bin": { + "opener": "bin/opener-bin.js" + } + }, + "node_modules/optionator": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", + "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", + "dev": true, + "dependencies": { + "@aashutoshrathi/word-wrap": "^1.2.3", + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/os-browserify": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", + "integrity": "sha512-gjcpUc3clBf9+210TRaDWbf+rZZZEshZ+DlXMRCeAjp0xhTrnQsKHypIy1J3d5hKdUzj69t708EHtU8P6bUn0A==", + "dev": true + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/pako": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", + "dev": true + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parents": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parents/-/parents-1.0.1.tgz", + "integrity": "sha512-mXKF3xkoUt5td2DoxpLmtOmZvko9VfFpwRwkKDHSNvgmpLAeBo18YDhcPbBzJq+QLCHMbGOfzia2cX4U+0v9Mg==", + "dev": true, + "dependencies": { + "path-platform": "~0.11.15" + } + }, + "node_modules/parse-asn1": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.6.tgz", + "integrity": "sha512-RnZRo1EPU6JBnra2vGHj0yhp6ebyjBZpmUCLHWiFhxlzvBCCpAuZ7elsBp1PVAbQN0/04VD/19rfzlBSwLstMw==", + "dev": true, + "dependencies": { + "asn1.js": "^5.2.0", + "browserify-aes": "^1.0.0", + "evp_bytestokey": "^1.0.0", + "pbkdf2": "^3.0.3", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/patch-text": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/patch-text/-/patch-text-1.0.2.tgz", + "integrity": "sha512-r1P+pfiTgWrsMOk/aW64RGv0oLjdyP0LeaLv2dF+iUfaVLqicXRi2dkjGYDgQ/kHVYm4z4GEHnx36Q6uqiFNlA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "dev": true + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/path-platform": { + "version": "0.11.15", + "resolved": "https://registry.npmjs.org/path-platform/-/path-platform-0.11.15.tgz", + "integrity": "sha512-Y30dB6rab1A/nfEKsZxmr01nUotHX0c/ZiIAsCTatEe1CmS5Pm5He7fZ195bPT7RdquoaL8lLxFCMQi/bS7IJg==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/pbkdf2": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.2.tgz", + "integrity": "sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA==", + "dev": true, + "dependencies": { + "create-hash": "^1.1.2", + "create-hmac": "^1.1.4", + "ripemd160": "^2.0.1", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "dev": true + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pony-cause": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pony-cause/-/pony-cause-1.1.1.tgz", + "integrity": "sha512-PxkIc/2ZpLiEzQXu5YRDOUgBlfGYBY8156HY5ZcRAwwonMk5W/MrJP2LLkG/hF7GEQzaHo2aS7ho6ZLCOvf+6g==", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "dependencies": { + "fast-diff": "^1.1.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/pretty-format": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", + "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^17.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "dev": true, + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "dev": true + }, + "node_modules/public-encrypt": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", + "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", + "dev": true, + "dependencies": { + "bn.js": "^4.1.0", + "browserify-rsa": "^4.0.0", + "create-hash": "^1.1.0", + "parse-asn1": "^5.0.0", + "randombytes": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "node_modules/public-encrypt/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + }, + "node_modules/pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/puppeteer": { + "version": "17.1.3", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-17.1.3.tgz", + "integrity": "sha512-tVtvNSOOqlq75rUgwLeDAEQoLIiBqmRg0/zedpI6fuqIocIkuxG23A7FIl1oVSkuSMMLgcOP5kVhNETmsmjvPw==", + "deprecated": "< 19.4.0 is no longer supported", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "cross-fetch": "3.1.5", + "debug": "4.3.4", + "devtools-protocol": "0.0.1036444", + "extract-zip": "2.0.1", + "https-proxy-agent": "5.0.1", + "progress": "2.0.3", + "proxy-from-env": "1.1.0", + "rimraf": "3.0.2", + "tar-fs": "2.1.1", + "unbzip2-stream": "1.4.3", + "ws": "8.8.1" + }, + "engines": { + "node": ">=14.1.0" + } + }, + "node_modules/pure-rand": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.2.tgz", + "integrity": "sha512-6Yg0ekpKICSjPswYOuC5sku/TSWaRYlA0qsXqJgM/d/4pLPHPuTxK7Nbf7jFKzAeedUhR8C7K9Uv63FBsSo8xQ==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ] + }, + "node_modules/qs": { + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz", + "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==", + "dev": true, + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/querystring-es3": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", + "integrity": "sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA==", + "dev": true, + "engines": { + "node": ">=0.4.x" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/ramldt2jsonschema": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/ramldt2jsonschema/-/ramldt2jsonschema-1.2.3.tgz", + "integrity": "sha512-+wLDAV2NNv9NkfEUOYStaDu/6RYgYXeC1zLtXE+dMU/jDfjpN4iJnBGycDwFTFaIQGosOQhxph7fEX6Mpwxdug==", + "dependencies": { + "commander": "^5.0.0", + "js-yaml": "^3.14.0", + "json-schema-migrate": "^0.2.0", + "webapi-parser": "^0.5.0" + }, + "bin": { + "dt2js": "bin/dt2js.js", + "js2dt": "bin/js2dt.js" + } + }, + "node_modules/ramldt2jsonschema/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/ramldt2jsonschema/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/randomatic": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", + "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", + "dev": true, + "dependencies": { + "is-number": "^4.0.0", + "kind-of": "^6.0.0", + "math-random": "^1.0.1" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/randomatic/node_modules/is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/randomatic/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/randomfill": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", + "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", + "dev": true, + "dependencies": { + "randombytes": "^2.0.5", + "safe-buffer": "^5.1.0" + } + }, + "node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "dev": true + }, + "node_modules/read-only-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-only-stream/-/read-only-stream-2.0.0.tgz", + "integrity": "sha512-3ALe0bjBVZtkdWKIcThYpQCLbBMd/+Tbh2CDSrAIDO3UsZ4Xs+tnyjv2MjCOMMgBG+AsUOeuP1cgtY1INISc8w==", + "dev": true, + "dependencies": { + "readable-stream": "^2.0.2" + } + }, + "node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/readable-stream/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/readable-stream/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/rechoir": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", + "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", + "dev": true, + "dependencies": { + "resolve": "^1.9.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", + "dev": true + }, + "node_modules/regexp-tree": { + "version": "0.1.27", + "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.27.tgz", + "integrity": "sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==", + "dev": true, + "bin": { + "regexp-tree": "bin/regexp-tree" + } + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz", + "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "functions-have-names": "^1.2.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/remarkable": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/remarkable/-/remarkable-1.7.4.tgz", + "integrity": "sha512-e6NKUXgX95whv7IgddywbeN/ItCkWbISmc2DiqHJb0wTrqZIexqdco5b8Z3XZoo/48IdNVKM9ZCvTPJ4F5uvhg==", + "dev": true, + "dependencies": { + "argparse": "^1.0.10", + "autolinker": "~0.28.0" + }, + "bin": { + "remarkable": "bin/remarkable.js" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/remarkable/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/rename-function-calls": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/rename-function-calls/-/rename-function-calls-0.1.1.tgz", + "integrity": "sha512-F+z4csKBo6gw4y5vhIbOhG+UcZVWNh42fW35dagdFP74YrY4ET932NTZZEimMdJz8Efha73caz/OFGxt1vReOA==", + "dev": true, + "dependencies": { + "detective": "~3.1.0" + } + }, + "node_modules/rename-function-calls/node_modules/detective": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detective/-/detective-3.1.0.tgz", + "integrity": "sha512-BIvQHuiVSRMufK1OnlpeAzVqF2yXD75ZzYIx8XV4VQiJ48chF/MMYAdsz/NkulhZznwb4fAX8vyi5CUc24I2BA==", + "dev": true, + "dependencies": { + "escodegen": "~1.1.0", + "esprima-fb": "3001.1.0-dev-harmony-fb" + } + }, + "node_modules/rename-function-calls/node_modules/esprima-fb": { + "version": "3001.1.0-dev-harmony-fb", + "resolved": "https://registry.npmjs.org/esprima-fb/-/esprima-fb-3001.0001.0000-dev-harmony-fb.tgz", + "integrity": "sha512-a3RFiCVBiy8KdO6q/C+8BQiP/sRk8XshBU3QHHDP8tNzjYwR3FKBOImu+PXfVhPoZL0JKtJLBAOWlDMCCFY8SQ==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/repeat-element": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", + "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", + "dev": true, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/replace-requires": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/replace-requires/-/replace-requires-1.0.4.tgz", + "integrity": "sha512-9PpQ4IWrhJ+waLnakqT26sOIFW8SPTWZ/aEmz35Pq1V1k1A352nYDTkbhznTGUmYS2MsC0ULJ+2vChstBTxKRw==", + "dev": true, + "dependencies": { + "detective": "^4.5.0", + "has-require": "~1.2.1", + "patch-text": "~1.0.2", + "xtend": "~4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/replace-requires/node_modules/acorn": { + "version": "5.7.4", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.4.tgz", + "integrity": "sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/replace-requires/node_modules/detective": { + "version": "4.7.1", + "resolved": "https://registry.npmjs.org/detective/-/detective-4.7.1.tgz", + "integrity": "sha512-H6PmeeUcZloWtdt4DAkFyzFL94arpHr3NOwwmVILFiy+9Qd4JTxxXrzfyGk/lmct2qVGBwTSwSXagqu2BxmWig==", + "dev": true, + "dependencies": { + "acorn": "^5.2.1", + "defined": "^1.0.0" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", + "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", + "dev": true, + "dependencies": { + "is-core-module": "^2.11.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-cwd/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve.exports": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", + "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/ripemd160": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", + "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", + "dev": true, + "dependencies": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/safe-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz", + "integrity": "sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==", + "dev": true, + "dependencies": { + "regexp-tree": "~0.1.1" + } + }, + "node_modules/safe-regex-test": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", + "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-stable-stringify": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz", + "integrity": "sha512-ERq4hUjKDbJfE4+XtZLFPCDi8Vb1JqaxAPTxWFLBx8XcAlf9Bda/ZJdVezs/NAfsMQScyIlUMx+Yeu7P7rx5jw==" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, + "node_modules/schema-utils": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", + "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/schema-utils/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/schema-utils/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/serialize-javascript": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", + "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/set-getter": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/set-getter/-/set-getter-0.1.1.tgz", + "integrity": "sha512-9sVWOy+gthr+0G9DzqqLaYNA7+5OKkSmcqjL9cBpDEaZrr3ShQlyX2cZ/O/ozE41oxn/Tt0LGEM/w4Rub3A3gw==", + "dev": true, + "dependencies": { + "to-object-path": "^0.3.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sha.js": { + "version": "2.4.11", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", + "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", + "dev": true, + "dependencies": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + }, + "bin": { + "sha.js": "bin.js" + } + }, + "node_modules/shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shallow-clone/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/shasum": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz", + "integrity": "sha512-UTzHm/+AzKfO9RgPgRpDIuMSNie1ubXRaljjlhFMNGYoG7z+rm9AHLPMf70R7887xboDH9Q+5YQbWKObFHEAtw==", + "dev": true, + "dependencies": { + "json-stable-stringify": "~0.0.0", + "sha.js": "~2.4.4" + } + }, + "node_modules/shasum-object": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shasum-object/-/shasum-object-1.0.0.tgz", + "integrity": "sha512-Iqo5rp/3xVi6M4YheapzZhhGPVs0yZwHj7wvwQ1B9z8H6zk+FEnI7y3Teq7qwnekfEhu8WmG2z0z4iWZaxLWVg==", + "dev": true, + "dependencies": { + "fast-safe-stringify": "^2.0.7" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/shell-quote": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", + "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/simple-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", + "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/simple-eval": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/simple-eval/-/simple-eval-1.0.0.tgz", + "integrity": "sha512-kpKJR+bqTscgC0xuAl2xHN6bB12lHjC2DCUfqjAx19bQyO3R2EVLOurm3H9AUltv/uFVcSCVNc6faegR+8NYLw==", + "dependencies": { + "jsep": "^1.1.2" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/sirv": { + "version": "1.0.19", + "resolved": "https://registry.npmjs.org/sirv/-/sirv-1.0.19.tgz", + "integrity": "sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==", + "dev": true, + "dependencies": { + "@polka/url": "^1.0.0-next.20", + "mrmime": "^1.0.0", + "totalist": "^1.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/source-map-support/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/stream-browserify": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", + "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", + "dev": true, + "dependencies": { + "inherits": "~2.0.1", + "readable-stream": "^2.0.2" + } + }, + "node_modules/stream-combiner2": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", + "integrity": "sha512-3PnJbYgS56AeWgtKF5jtJRT6uFJe56Z0Hc5Ngg/6sI6rIt8iiMBTa9cvdyFfpMQjaVHr8dusbNeFGIIonxOvKw==", + "dev": true, + "dependencies": { + "duplexer2": "~0.1.0", + "readable-stream": "^2.0.2" + } + }, + "node_modules/stream-http": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-3.2.0.tgz", + "integrity": "sha512-Oq1bLqisTyK3TSCXpPbT4sdeYNdmyZJv1LxpEm2vu1ZhK89kSE5YXwZc3cWk0MagGaKriBh9mCFbVGtO+vY29A==", + "dev": true, + "dependencies": { + "builtin-status-codes": "^3.0.0", + "inherits": "^2.0.4", + "readable-stream": "^3.6.0", + "xtend": "^4.0.2" + } + }, + "node_modules/stream-http/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/stream-splicer": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/stream-splicer/-/stream-splicer-2.0.1.tgz", + "integrity": "sha512-Xizh4/NPuYSyAXyT7g8IvdJ9HJpxIGL9PjyhtywCZvvP0OPIdqyrr4dMikeuvY8xahpdKEBlBTySe583totajg==", + "dev": true, + "dependencies": { + "inherits": "^2.0.1", + "readable-stream": "^2.0.2" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/string.prototype.trim": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", + "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz", + "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz", + "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-color": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/strip-color/-/strip-color-0.1.0.tgz", + "integrity": "sha512-p9LsUieSjWNNAxVCXLeilaDlmuUOrDS5/dF9znM1nZc7EGX5+zEFC0bEevsNIaldjlks+2jns5Siz6F9iK6jwA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/subarg": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz", + "integrity": "sha512-RIrIdRY0X1xojthNcVtgT9sjpOGagEUKpZdgBUi054OEPFo282yg+zE+t1Rj3+RqKq2xStL7uUHhY+AjbC4BXg==", + "dev": true, + "dependencies": { + "minimist": "^1.1.0" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/svg-element-attributes": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/svg-element-attributes/-/svg-element-attributes-1.3.1.tgz", + "integrity": "sha512-Bh05dSOnJBf3miNMqpsormfNtfidA/GxQVakhtn0T4DECWKeXQRQUceYjJ+OxYiiLdGe4Jo9iFV8wICFapFeIA==", + "dev": true, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/syntax-error": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", + "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", + "dev": true, + "dependencies": { + "acorn-node": "^1.2.0" + } + }, + "node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/tar-fs": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", + "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", + "dev": true, + "dependencies": { + "chownr": "^1.1.1", + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^2.1.4" + } + }, + "node_modules/tar-stream": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", + "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", + "dev": true, + "dependencies": { + "bl": "^4.0.3", + "end-of-stream": "^1.4.1", + "fs-constants": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tar-stream/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/ternary": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ternary/-/ternary-1.0.0.tgz", + "integrity": "sha512-/e+OUAGiEqytNLXnDfFkuel0N0y9IGkmvuGIPkirI+zv0dx/jPvUZ2l8qV6KYk8lmmLrAqk4iLJtRduUA6AUKw==", + "dev": true + }, + "node_modules/terser": { + "version": "5.19.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.19.0.tgz", + "integrity": "sha512-JpcpGOQLOXm2jsomozdMDpd5f8ZHh1rR48OFgWUH3QsyZcfPgv2qDCYbcDEAYNd4OZRj2bWYKpwdll/udZCk/Q==", + "dev": true, + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.9", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz", + "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.17", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.16.8" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/terser-webpack-plugin/node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/terser-webpack-plugin/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/terser/node_modules/acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/terser/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "node_modules/terser/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/terser/node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "node_modules/through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "dev": true + }, + "node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/timers-browserify": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", + "integrity": "sha512-PIxwAupJZiYU4JmVZYwXp9FKsHMXb5h0ZEFyuXTAn8WLHOlcij+FEcbrvDsom1o5dr1YggEtFbECvGCW2sT53Q==", + "dev": true, + "dependencies": { + "process": "~0.11.0" + }, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toml": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/toml/-/toml-2.3.6.tgz", + "integrity": "sha512-gVweAectJU3ebq//Ferr2JUY4WKSDe5N+z0FvjDncLGyHmIDoxgY/2Ie4qfEIDm4IS7OA6Rmdm7pdEEdMcV/xQ==", + "dev": true + }, + "node_modules/totalist": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", + "integrity": "sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/transformify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/transformify/-/transformify-0.1.2.tgz", + "integrity": "sha512-BUZAqCslm5pVXExA8PfXcvp7exsUNqRcNzx+KXj3Bv0oMROqnAt4bvs9U8Z2wVPa40NvLWJ/oswN0kreNFxBUg==", + "dev": true, + "dependencies": { + "readable-stream": "~1.1.9" + } + }, + "node_modules/transformify/node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", + "dev": true + }, + "node_modules/transformify/node_modules/readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "node_modules/transformify/node_modules/string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", + "dev": true + }, + "node_modules/ts-loader": { + "version": "9.4.4", + "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.4.4.tgz", + "integrity": "sha512-MLukxDHBl8OJ5Dk3y69IsKVFRA/6MwzEqBgh+OXMPB/OD01KQuWPFd1WAQP8a5PeSCAxfnkhiuWqfmFJzJQt9w==", + "dev": true, + "dependencies": { + "chalk": "^4.1.0", + "enhanced-resolve": "^5.0.0", + "micromatch": "^4.0.0", + "semver": "^7.3.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "typescript": "*", + "webpack": "^5.0.0" + } + }, + "node_modules/ts-node": { + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", + "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", + "dev": true, + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/ts-node/node_modules/acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/ts-node/node_modules/acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/tsconfig-paths": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz", + "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==", + "dev": true, + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tslib": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.0.tgz", + "integrity": "sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==" + }, + "node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/tsutils/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, + "node_modules/tty-browserify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.1.tgz", + "integrity": "sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==", + "dev": true + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", + "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "has-proto": "^1.0.1", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", + "dev": true + }, + "node_modules/typescript": { + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/umd": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/umd/-/umd-3.0.3.tgz", + "integrity": "sha512-4IcGSufhFshvLNcMCV80UnQVlZ5pMOC8mvNPForqwA4+lzYQuetTESLDQkeLmihq8bRcnpbQa48Wb8Lh16/xow==", + "dev": true, + "bin": { + "umd": "bin/cli.js" + } + }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/unbzip2-stream": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz", + "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==", + "dev": true, + "dependencies": { + "buffer": "^5.2.1", + "through": "^2.3.8" + } + }, + "node_modules/undeclared-identifiers": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/undeclared-identifiers/-/undeclared-identifiers-1.1.3.tgz", + "integrity": "sha512-pJOW4nxjlmfwKApE4zvxLScM/njmwj/DiUBv7EabwE4O8kRUy+HIwxQtZLBPll/jx1LJyBcqNfB3/cpv9EZwOw==", + "dev": true, + "dependencies": { + "acorn-node": "^1.3.0", + "dash-ast": "^1.0.0", + "get-assigned-identifiers": "^1.2.0", + "simple-concat": "^1.0.0", + "xtend": "^4.0.1" + }, + "bin": { + "undeclared-identifiers": "bin.js" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", + "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/urijs": { + "version": "1.19.11", + "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz", + "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==" + }, + "node_modules/url": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/url/-/url-0.11.1.tgz", + "integrity": "sha512-rWS3H04/+mzzJkv0eZ7vEDGiQbgquI1fGfOad6zKvgYQi1SzMmhl7c/DdRGxhaWrVH6z0qWITo8rpnxK/RfEhA==", + "dev": true, + "dependencies": { + "punycode": "^1.4.1", + "qs": "^6.11.0" + } + }, + "node_modules/url/node_modules/punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", + "dev": true + }, + "node_modules/util": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", + "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", + "dev": true, + "dependencies": { + "inherits": "2.0.3" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true + }, + "node_modules/util/node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", + "dev": true + }, + "node_modules/utility-types": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", + "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true + }, + "node_modules/v8-to-istanbul": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz", + "integrity": "sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/v8-to-istanbul/node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + }, + "node_modules/vm-browserify": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", + "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", + "dev": true + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "dev": true, + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webapi-parser": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/webapi-parser/-/webapi-parser-0.5.0.tgz", + "integrity": "sha512-fPt6XuMqLSvBz8exwX4QE1UT+pROLHa00EMDCdO0ybICduwQ1V4f7AWX4pNOpCp+x+0FjczEsOxtQU0d8L3QKw==", + "dependencies": { + "ajv": "6.5.2" + } + }, + "node_modules/webapi-parser/node_modules/ajv": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.2.tgz", + "integrity": "sha512-hOs7GfvI6tUI1LfZddH82ky6mOMyTuY0mk7kE2pWpmhhUSkumzaTO5vbVwij39MdwPQWCV4Zv57Eo06NtL/GVA==", + "dependencies": { + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.1" + } + }, + "node_modules/webapi-parser/node_modules/fast-deep-equal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w==" + }, + "node_modules/webapi-parser/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/webpack": { + "version": "5.88.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.88.1.tgz", + "integrity": "sha512-FROX3TxQnC/ox4N+3xQoWZzvGXSuscxR32rbzjpXgEzWudJFEJBpdlkkob2ylrv5yzzufD1zph1OoFsLtm6stQ==", + "dev": true, + "dependencies": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.0", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.9.0", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.15.0", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.2.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.7", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-bundle-analyzer": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.9.0.tgz", + "integrity": "sha512-+bXGmO1LyiNx0i9enBu3H8mv42sj/BJWhZNFwjz92tVnBa9J3JMGo2an2IXlEleoDOPn/Hofl5hr/xCpObUDtw==", + "dev": true, + "dependencies": { + "@discoveryjs/json-ext": "0.5.7", + "acorn": "^8.0.4", + "acorn-walk": "^8.0.0", + "chalk": "^4.1.0", + "commander": "^7.2.0", + "gzip-size": "^6.0.0", + "lodash": "^4.17.20", + "opener": "^1.5.2", + "sirv": "^1.0.7", + "ws": "^7.3.1" + }, + "bin": { + "webpack-bundle-analyzer": "lib/bin/analyzer.js" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/webpack-bundle-analyzer/node_modules/acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/webpack-bundle-analyzer/node_modules/acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/webpack-bundle-analyzer/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/webpack-bundle-analyzer/node_modules/ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "dev": true, + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/webpack-cli": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.10.0.tgz", + "integrity": "sha512-NLhDfH/h4O6UOy+0LSso42xvYypClINuMNBVVzX4vX98TmTaTUxwRbXdhucbFMd2qLaCTcLq/PdYrvi8onw90w==", + "dev": true, + "dependencies": { + "@discoveryjs/json-ext": "^0.5.0", + "@webpack-cli/configtest": "^1.2.0", + "@webpack-cli/info": "^1.5.0", + "@webpack-cli/serve": "^1.7.0", + "colorette": "^2.0.14", + "commander": "^7.0.0", + "cross-spawn": "^7.0.3", + "fastest-levenshtein": "^1.0.12", + "import-local": "^3.0.2", + "interpret": "^2.2.0", + "rechoir": "^0.7.0", + "webpack-merge": "^5.7.3" + }, + "bin": { + "webpack-cli": "bin/cli.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "4.x.x || 5.x.x" + }, + "peerDependenciesMeta": { + "@webpack-cli/generators": { + "optional": true + }, + "@webpack-cli/migrate": { + "optional": true + }, + "webpack-bundle-analyzer": { + "optional": true + }, + "webpack-dev-server": { + "optional": true + } + } + }, + "node_modules/webpack-cli/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/webpack-merge": { + "version": "5.9.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.9.0.tgz", + "integrity": "sha512-6NbRQw4+Sy50vYNTw7EyOn41OZItPiXB8GNv3INSoe3PSFaHJEz3SHTrYVaRm2LilNGnFUzh0FAwqPEmU/CwDg==", + "dev": true, + "dependencies": { + "clone-deep": "^4.0.1", + "wildcard": "^2.0.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack/node_modules/acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/webpack/node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.10.tgz", + "integrity": "sha512-uxoA5vLUfRPdjCuJ1h5LlYdmTLbYfums398v3WLkM+i/Wltl2/XyZpQWKbN++ck5L64SR/grOHqtXCUKmlZPNA==", + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/wildcard": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", + "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==", + "dev": true + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/ws": { + "version": "8.8.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.8.1.tgz", + "integrity": "sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==", + "dev": true, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "dev": true, + "engines": { + "node": ">=0.4" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "dev": true, + "dependencies": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + }, "dependencies": { "@aashutoshrathi/word-wrap": { "version": "1.2.6", @@ -1043,12 +12186,14 @@ "@jsep-plugin/regex": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.3.tgz", - "integrity": "sha512-XfZgry4DwEZvSFtS/6Y+R48D7qJYJK6R9/yJFyUFHCIUMEEHuJ4X95TDgJp5QkmzfLYvapMPzskV5HpIDrREug==" + "integrity": "sha512-XfZgry4DwEZvSFtS/6Y+R48D7qJYJK6R9/yJFyUFHCIUMEEHuJ4X95TDgJp5QkmzfLYvapMPzskV5HpIDrREug==", + "requires": {} }, "@jsep-plugin/ternary": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.3.tgz", - "integrity": "sha512-qtLGzCNzPVJ3kdH6/zoLWDPjauHIKiLSBAR71Wa0+PWvGA8wODUQvRgxtpUA5YqAYL3CQ8S4qXhd/9WuWTZirg==" + "integrity": "sha512-qtLGzCNzPVJ3kdH6/zoLWDPjauHIKiLSBAR71Wa0+PWvGA8wODUQvRgxtpUA5YqAYL3CQ8S4qXhd/9WuWTZirg==", + "requires": {} }, "@nodelib/fs.scandir": { "version": "2.1.5", @@ -1910,7 +13055,8 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz", "integrity": "sha512-4FB8Tj6xyVkyqjj1OaTqCjXYULB9FMkqQ8yGrZjRDrYh0nOE+7Lhs45WioWQQMV+ceFlE368Ukhe6xdvJM9Egg==", - "dev": true + "dev": true, + "requires": {} }, "@webpack-cli/info": { "version": "1.5.0", @@ -1925,7 +13071,8 @@ "version": "1.7.0", "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.7.0.tgz", "integrity": "sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==", - "dev": true + "dev": true, + "requires": {} }, "@xtuc/ieee754": { "version": "1.2.0", @@ -1939,16 +13086,6 @@ "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", "dev": true }, - "JSONStream": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", - "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", - "dev": true, - "requires": { - "jsonparse": "^1.2.0", - "through": ">=2.2.7 <3" - } - }, "abort-controller": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", @@ -1986,13 +13123,15 @@ "version": "1.9.0", "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", - "dev": true + "dev": true, + "requires": {} }, "acorn-jsx": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true + "dev": true, + "requires": {} }, "acorn-node": { "version": "1.8.2", @@ -2034,12 +13173,14 @@ "ajv-draft-04": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", - "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==" + "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", + "requires": {} }, "ajv-errors": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", - "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==" + "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", + "requires": {} }, "ajv-formats": { "version": "2.1.1", @@ -2053,7 +13194,8 @@ "version": "3.5.2", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true + "dev": true, + "requires": {} }, "amdefine": { "version": "1.0.1", @@ -2446,9 +13588,9 @@ "integrity": "sha512-erYug8XoqzU3IfcU8fUgyHqyOXqIE4tUTTQ+7mqUjQlvnXkOO6OlT9c/ZoJVHYoAaqGxr09CN53G7XIsO4KtWA==", "dev": true, "requires": { - "JSONStream": "^1.0.3", "combine-source-map": "~0.8.0", "defined": "^1.0.0", + "JSONStream": "^1.0.3", "safe-buffer": "^5.1.1", "through2": "^2.0.0", "umd": "^3.0.0" @@ -2469,7 +13611,6 @@ "integrity": "sha512-TkOR1cQGdmXU9zW4YukWzWVSJwrxmNdADFbqbE3HFgQWe5wqZmOawqZ7J/8MPCwk/W8yY7Y0h+7mOtcZxLP23g==", "dev": true, "requires": { - "JSONStream": "^1.0.3", "assert": "^1.4.0", "browser-pack": "^6.0.1", "browser-resolve": "^2.0.0", @@ -2491,6 +13632,7 @@ "https-browserify": "^1.0.0", "inherits": "~2.0.1", "insert-module-globals": "^7.0.0", + "JSONStream": "^1.0.3", "labeled-stream-splicer": "^2.0.0", "mkdirp-classic": "^0.5.2", "module-deps": "^6.2.3", @@ -3557,7 +14699,8 @@ "version": "8.8.0", "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", - "dev": true + "dev": true, + "requires": {} }, "eslint-import-resolver-node": { "version": "0.3.7", @@ -3661,7 +14804,8 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/eslint-plugin-i18n-text/-/eslint-plugin-i18n-text-1.0.1.tgz", "integrity": "sha512-3G3UetST6rdqhqW9SfcfzNYMpQXS7wNkJvp6dsXnjzGiku6Iu5hl3B0kmk6lIcFPwYjhQIY+tXVRtK9TlGT7RA==", - "dev": true + "dev": true, + "requires": {} }, "eslint-plugin-import": { "version": "2.27.5", @@ -3778,7 +14922,8 @@ "version": "0.15.0", "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.15.0.tgz", "integrity": "sha512-LuxHdAe6VqSbi1phsUvNjbmXLuvlobmryQJJNyQYbdubCfz6K8tmgoqNiJPnz0pP2AbYDbtuPm0ajOMgMrC+dQ==", - "dev": true + "dev": true, + "requires": {} }, "eslint-rule-documentation": { "version": "1.0.23", @@ -4716,11 +15861,11 @@ "integrity": "sha512-ufS5Qq9RZN+Bu899eA9QCAYThY+gGW7oRkmb0vC93Vlyu/CFGcH0OYPEjVkDXA5FEbTt1+VWzdoOD3Ny9N+8tg==", "dev": true, "requires": { - "JSONStream": "^1.0.3", "acorn-node": "^1.5.2", "combine-source-map": "^0.8.0", "concat-stream": "^1.6.1", "is-buffer": "^1.1.0", + "JSONStream": "^1.0.3", "path-is-absolute": "^1.0.1", "process": "~0.11.0", "through2": "^2.0.0", @@ -5442,7 +16587,8 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", - "dev": true + "dev": true, + "requires": {} }, "jest-regex-util": { "version": "29.4.3", @@ -5856,6 +17002,16 @@ "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==" }, + "JSONStream": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", + "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", + "dev": true, + "requires": { + "jsonparse": "^1.2.0", + "through": ">=2.2.7 <3" + } + }, "jsx-ast-utils": { "version": "3.3.4", "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.4.tgz", @@ -6257,7 +17413,6 @@ "integrity": "sha512-fg7OZaQBcL4/L+AK5f4iVqf9OMbCclXfy/znXRxTVhJSeW5AIlS9AwheYwDaXM3lVW7OBeaeUEY3gbaC6cLlSA==", "dev": true, "requires": { - "JSONStream": "^1.0.3", "browser-resolve": "^2.0.0", "cached-path-relative": "^1.0.2", "concat-stream": "~1.6.0", @@ -6265,6 +17420,7 @@ "detective": "^5.2.0", "duplexer2": "^0.1.2", "inherits": "^2.0.1", + "JSONStream": "^1.0.3", "parents": "^1.0.0", "readable-stream": "^2.0.2", "resolve": "^1.4.0", @@ -7500,6 +18656,15 @@ "readable-stream": "^2.0.2" } }, + "string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, + "requires": { + "safe-buffer": "~5.2.0" + } + }, "string-length": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", @@ -7559,15 +18724,6 @@ "es-abstract": "^1.20.4" } }, - "string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "requires": { - "safe-buffer": "~5.2.0" - } - }, "strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", @@ -8314,7 +19470,8 @@ "version": "7.5.9", "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "dev": true + "dev": true, + "requires": {} } } }, @@ -8442,7 +19599,8 @@ "version": "8.8.1", "resolved": "https://registry.npmjs.org/ws/-/ws-8.8.1.tgz", "integrity": "sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==", - "dev": true + "dev": true, + "requires": {} }, "xtend": { "version": "4.0.2", From 0ca828f1e076230d31e9a6dca30aee300e51efcb Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Wed, 19 Jul 2023 14:15:17 +0200 Subject: [PATCH 071/126] chore: merge `master` into `next-major-spec` fixing conflicts (#806) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 124 ++++++++++------------------------------------ 1 file changed, 26 insertions(+), 98 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2ca477614..eea352e61 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2593,9 +2593,9 @@ "dev": true }, "node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -2633,6 +2633,18 @@ "xtend": "^4.0.2" } }, + "node_modules/acorn-node/node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/acorn-walk": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", @@ -4957,18 +4969,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/espree/node_modules/acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", @@ -10109,18 +10109,6 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, - "node_modules/terser/node_modules/acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/terser/node_modules/commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", @@ -10348,18 +10336,6 @@ } } }, - "node_modules/ts-node/node_modules/acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/ts-node/node_modules/acorn-walk": { "version": "8.2.0", "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", @@ -10792,18 +10768,6 @@ "node": ">= 10.13.0" } }, - "node_modules/webpack-bundle-analyzer/node_modules/acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/webpack-bundle-analyzer/node_modules/acorn-walk": { "version": "8.2.0", "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", @@ -10921,18 +10885,6 @@ "node": ">=10.13.0" } }, - "node_modules/webpack/node_modules/acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/webpack/node_modules/events": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", @@ -13114,9 +13066,9 @@ } }, "acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", "dev": true }, "acorn-import-assertions": { @@ -13142,6 +13094,14 @@ "acorn": "^7.0.0", "acorn-walk": "^7.0.0", "xtend": "^4.0.2" + }, + "dependencies": { + "acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true + } } }, "acorn-walk": { @@ -14956,14 +14916,6 @@ "acorn": "^8.9.0", "acorn-jsx": "^5.3.2", "eslint-visitor-keys": "^3.4.1" - }, - "dependencies": { - "acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", - "dev": true - } } }, "esprima": { @@ -18858,12 +18810,6 @@ "source-map-support": "~0.5.20" }, "dependencies": { - "acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", - "dev": true - }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", @@ -19080,12 +19026,6 @@ "yn": "3.1.1" }, "dependencies": { - "acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", - "dev": true - }, "acorn-walk": { "version": "8.2.0", "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", @@ -19416,12 +19356,6 @@ "webpack-sources": "^3.2.3" }, "dependencies": { - "acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", - "dev": true - }, "events": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", @@ -19448,12 +19382,6 @@ "ws": "^7.3.1" }, "dependencies": { - "acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", - "dev": true - }, "acorn-walk": { "version": "8.2.0", "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", From 2000140268bd4176897aff88cce42dc23e05c2a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Thu, 20 Jul 2023 15:46:04 +0200 Subject: [PATCH 072/126] chore: new trait behaviour in v3 spec (#744) Co-authored-by: Sergio Moya <1083296+smoya@users.noreply.github.com> --- package-lock.json | 35 +--- package.json | 2 +- src/custom-operations/apply-traits.ts | 72 +++++-- src/custom-operations/index.ts | 23 ++- src/document.ts | 6 +- .../custom-operations/apply-traits-v2.spec.ts | 189 ++++++++++++++++++ .../custom-operations/apply-traits-v3.spec.ts | 158 +++++++++++++++ test/document.spec.ts | 13 +- 8 files changed, 444 insertions(+), 54 deletions(-) create mode 100644 test/custom-operations/apply-traits-v2.spec.ts create mode 100644 test/custom-operations/apply-traits-v3.spec.ts diff --git a/package-lock.json b/package-lock.json index b54760ed1..b2253ad39 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "2.1.0-next-major-spec.1", "license": "Apache-2.0", "dependencies": { - "@asyncapi/specs": "^5.1.0", + "@asyncapi/specs": "^6.0.0-next-major-spec.2", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json-ref-resolver": "^3.1.5", "@stoplight/spectral-core": "^1.16.1", @@ -79,9 +79,9 @@ } }, "node_modules/@asyncapi/specs": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-5.1.0.tgz", - "integrity": "sha512-yffhETqehkim43luMnPKOwzY0D0YtU4bKpORIXIaid6p5Y5kDLrMGJaEPkNieQp03HMjhjFrnUPtT8kvqe0+aQ==", + "version": "6.0.0-next-major-spec.2", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.0.0-next-major-spec.2.tgz", + "integrity": "sha512-kKFdVZkWnkmcNWADg3lt9AExM9jGGpAIrUcIYSbHNSSQgjZC6rr0urqctAaXXtBVrJNBI9LNG/Us70R/0MOLbw==", "dependencies": { "@types/json-schema": "^7.0.11" } @@ -10958,15 +10958,6 @@ "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==", "dev": true }, - "node_modules/word-wrap": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.4.tgz", - "integrity": "sha512-2V81OA4ugVo5pRo46hAoD2ivUJx8jXmWXfUkY4KFNw0hEptvN0QfH3K4nHiwzGeKl5rFKedV48QVoqYavy4YpA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", @@ -11125,9 +11116,9 @@ } }, "@asyncapi/specs": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-5.1.0.tgz", - "integrity": "sha512-yffhETqehkim43luMnPKOwzY0D0YtU4bKpORIXIaid6p5Y5kDLrMGJaEPkNieQp03HMjhjFrnUPtT8kvqe0+aQ==", + "version": "6.0.0-next-major-spec.2", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.0.0-next-major-spec.2.tgz", + "integrity": "sha512-kKFdVZkWnkmcNWADg3lt9AExM9jGGpAIrUcIYSbHNSSQgjZC6rr0urqctAaXXtBVrJNBI9LNG/Us70R/0MOLbw==", "requires": { "@types/json-schema": "^7.0.11" } @@ -19500,15 +19491,9 @@ } }, "wildcard": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", - "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", - "dev": true - }, - "word-wrap": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.4.tgz", - "integrity": "sha512-2V81OA4ugVo5pRo46hAoD2ivUJx8jXmWXfUkY4KFNw0hEptvN0QfH3K4nHiwzGeKl5rFKedV48QVoqYavy4YpA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", + "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==", "dev": true }, "wrap-ansi": { diff --git a/package.json b/package.json index 2572ff354..5fcc5f9c2 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "prepublishOnly": "npm run generate:assets" }, "dependencies": { - "@asyncapi/specs": "^5.1.0", + "@asyncapi/specs": "^6.0.0-next-major-spec.2", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json-ref-resolver": "^3.1.5", "@stoplight/spectral-core": "^1.16.1", diff --git a/src/custom-operations/apply-traits.ts b/src/custom-operations/apply-traits.ts index a57e3dcf7..990aca601 100644 --- a/src/custom-operations/apply-traits.ts +++ b/src/custom-operations/apply-traits.ts @@ -17,26 +17,54 @@ const v2TraitPaths = [ ]; export function applyTraitsV2(asyncapi: v2.AsyncAPIObject) { - applyAllTraits(asyncapi, v2TraitPaths); + applyAllTraitsV2(asyncapi, v2TraitPaths); +} + +function applyAllTraitsV2(asyncapi: Record, paths: string[]) { + const visited: Set = new Set(); + paths.forEach(path => { + JSONPath({ + path, + json: asyncapi, + resultType: 'value', + callback(value) { + if (visited.has(value)) { + return; + } + visited.add(value); + applyTraitsToObjectV2(value); + }, + }); + }); +} + +function applyTraitsToObjectV2(value: Record) { + if (Array.isArray(value.traits)) { + for (const trait of value.traits) { + for (const key in trait) { + value[String(key)] = mergePatch(value[String(key)], trait[String(key)]); + } + } + } } const v3TraitPaths = [ // operations - '$.channels.*.[publish,subscribe]', - '$.components.channels.*.[publish,subscribe]', + '$.operations.*', + '$.components.operations.*', // messages - '$.channels.*.[publish,subscribe].message', - '$.channels.*.[publish,subscribe].message.oneOf.*', - '$.components.channels.*.[publish,subscribe].message', - '$.components.channels.*.[publish,subscribe].message.oneOf.*', + '$.channels.*.messages.*', + '$.operations.*.messages.*', + '$.components.channels.*.messages.*', + '$.components.operations.*.messages.*', '$.components.messages.*', ]; export function applyTraitsV3(asyncapi: v3.AsyncAPIObject) { - applyAllTraits(asyncapi, v3TraitPaths); + applyAllTraitsV3(asyncapi, v3TraitPaths); } -function applyAllTraits(asyncapi: Record, paths: string[]) { +function applyAllTraitsV3(asyncapi: Record, paths: string[]) { const visited: Set = new Set(); paths.forEach(path => { JSONPath({ @@ -48,18 +76,28 @@ function applyAllTraits(asyncapi: Record, paths: string[]) { return; } visited.add(value); - applyTraits(value); + applyTraitsToObjectV3(value); }, }); }); } -function applyTraits(value: Record & { traits?: any[] }) { - if (Array.isArray(value.traits)) { - for (const trait of value.traits) { - for (const key in trait) { - value[String(key)] = mergePatch(value[String(key)], trait[String(key)]); - } +function applyTraitsToObjectV3(value: Record) { + if (!Array.isArray(value.traits)) { + return; + } + + // shallow copy of object + const copy = { ...value }; + // reset the object but preserve the reference + for (const key in value) { + delete value[key]; + } + + // merge root object at the end + for (const trait of [...copy.traits as any[], copy]) { + for (const key in trait) { + value[String(key)] = mergePatch(value[String(key)], trait[String(key)]); } } -} +} \ No newline at end of file diff --git a/src/custom-operations/index.ts b/src/custom-operations/index.ts index 2ff6501ac..e360848b9 100644 --- a/src/custom-operations/index.ts +++ b/src/custom-operations/index.ts @@ -1,23 +1,26 @@ -import { applyTraitsV2 } from './apply-traits'; -import { resolveCircularRefs } from './resolve-circular-refs'; +import { applyTraitsV2, applyTraitsV3 } from './apply-traits'; +import { checkCircularRefs } from './check-circular-refs'; import { parseSchemasV2 } from './parse-schema'; import { anonymousNaming } from './anonymous-naming'; +import { resolveCircularRefs } from './resolve-circular-refs'; import type { RulesetFunctionContext } from '@stoplight/spectral-core'; import type { Parser } from '../parser'; import type { ParseOptions } from '../parse'; import type { AsyncAPIDocumentInterface } from '../models'; import type { DetailedAsyncAPI } from '../types'; -import { v2 } from 'spec-types'; +import type { v2, v3 } from '../spec-types'; export async function customOperations(parser: Parser, document: AsyncAPIDocumentInterface, detailed: DetailedAsyncAPI, inventory: RulesetFunctionContext['documentInventory'], options: ParseOptions): Promise { switch (detailed.semver.major) { case 2: return operationsV2(parser, document, detailed, inventory, options); - // case 3: return operationsV3(parser, document, detailed, options); + case 3: return operationsV3(parser, document, detailed, inventory, options); } } async function operationsV2(parser: Parser, document: AsyncAPIDocumentInterface, detailed: DetailedAsyncAPI, inventory: RulesetFunctionContext['documentInventory'], options: ParseOptions): Promise { + checkCircularRefs(document); + if (options.applyTraits) { applyTraitsV2(detailed.parsed as v2.AsyncAPIObject); } @@ -32,3 +35,15 @@ async function operationsV2(parser: Parser, document: AsyncAPIDocumentInterface, anonymousNaming(document); } +async function operationsV3(parser: Parser, document: AsyncAPIDocumentInterface, detailed: DetailedAsyncAPI, inventory: RulesetFunctionContext['documentInventory'], options: ParseOptions): Promise { + checkCircularRefs(document); + + if (options.applyTraits) { + applyTraitsV3(detailed.parsed as v3.AsyncAPIObject); + } + // TODO: Support schema parsing in v3 + // if (options.parseSchemas) { + // await parseSchemasV2(parser, detailed); + // } + anonymousNaming(document); +} diff --git a/src/document.ts b/src/document.ts index 16f00f813..887fd02b9 100644 --- a/src/document.ts +++ b/src/document.ts @@ -11,14 +11,14 @@ import { import type { AsyncAPIDocumentInterface } from './models'; import type { OldAsyncAPIDocument } from './old-api'; import type { DetailedAsyncAPI, AsyncAPIObject } from './types'; -import { v2 } from 'spec-types'; +import { v2, v3 } from 'spec-types'; export function createAsyncAPIDocument(asyncapi: DetailedAsyncAPI): AsyncAPIDocumentInterface { switch (asyncapi.semver.major) { case 2: return new AsyncAPIDocumentV2(asyncapi.parsed as v2.AsyncAPIObject, { asyncapi, pointer: '/' }); - // case 3: - // return new AsyncAPIDocumentV3(asyncapi.parsed, { asyncapi, pointer: '/' }); + case 3: + return new AsyncAPIDocumentV3(asyncapi.parsed as v3.AsyncAPIObject, { asyncapi, pointer: '/' }); default: throw new Error(`Unsupported AsyncAPI version: ${asyncapi.semver.version}`); } diff --git a/test/custom-operations/apply-traits-v2.spec.ts b/test/custom-operations/apply-traits-v2.spec.ts new file mode 100644 index 000000000..4eb2800fc --- /dev/null +++ b/test/custom-operations/apply-traits-v2.spec.ts @@ -0,0 +1,189 @@ +import { AsyncAPIDocumentV2 } from '../../src/models'; +import { Parser } from '../../src/parser'; + +import type { v2 } from '../../src/spec-types'; + +describe('custom operations - apply traits v3', function() { + const parser = new Parser(); + + it('should apply traits to operations', async function() { + const documentRaw = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'publishId', + traits: [ + { + operationId: 'anotherPubId', + description: 'some description' + }, + { + description: 'another description' + } + ] + }, + subscribe: { + operationId: 'subscribeId', + traits: [ + { + operationId: 'anotherSubId', + description: 'some description' + }, + { + description: 'another description' + } + ] + } + } + } + }; + const { document, diagnostics } = await parser.parse(documentRaw); + + const v2Document = document as AsyncAPIDocumentV2; + expect(v2Document).toBeInstanceOf(AsyncAPIDocumentV2); + expect(diagnostics.length > 0).toEqual(true); + + const publish = v2Document?.json()?.channels?.channel?.publish; + delete publish?.traits; + expect(publish).toEqual({ operationId: 'anotherPubId', description: 'another description' }); + + const subscribe = v2Document?.json()?.channels?.channel?.subscribe; + delete subscribe?.traits; + expect(subscribe).toEqual({ operationId: 'anotherSubId', description: 'another description' }); + }); + + it('should apply traits to messages', async function() { + const documentRaw = { + asyncapi: '2.4.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'operationId', + message: { + messageId: 'messageId', + traits: [ + { + messageId: 'anotherMessageId1', + description: 'some description' + }, + { + description: 'another description' + } + ] + } + }, + subscribe: { + message: { + oneOf: [ + { + messageId: 'messageId', + traits: [ + { + messageId: 'anotherMessageId2', + description: 'some description' + }, + { + description: 'another description' + } + ] + }, + { + messageId: 'messageId', + traits: [ + { + messageId: 'anotherId', + description: 'some description' + }, + { + description: 'another description' + }, + { + messageId: 'anotherMessageId3', + description: 'simple description' + } + ] + } + ], + } + } + } + } + }; + const { document, diagnostics } = await parser.parse(documentRaw); + + const v2Document = document as AsyncAPIDocumentV2; + expect(v2Document).toBeInstanceOf(AsyncAPIDocumentV2); + expect(diagnostics.length > 0).toEqual(true); + + const message = v2Document?.json()?.channels?.channel?.publish?.message; + delete (message as v2.MessageObject)?.traits; + expect(message).toEqual({ messageId: 'anotherMessageId1', description: 'another description', 'x-parser-message-name': 'anotherMessageId1' }); + + const messageOneOf1 = (v2Document?.json()?.channels?.channel?.subscribe?.message as { oneOf: Array }).oneOf[0]; + delete messageOneOf1?.traits; + expect(messageOneOf1).toEqual({ messageId: 'anotherMessageId2', description: 'another description', 'x-parser-message-name': 'anotherMessageId2' }); + + const messageOneOf2 = (v2Document?.json()?.channels?.channel?.subscribe?.message as { oneOf: Array }).oneOf[1]; + delete messageOneOf2?.traits; + expect(messageOneOf2).toEqual({ messageId: 'anotherMessageId3', description: 'simple description', 'x-parser-message-name': 'anotherMessageId3' }); + }); + + it('should preserve this same references', async function() { + const documentRaw = { + asyncapi: '2.4.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'publishId', + message: { + $ref: '#/components/messages/message', + } + }, + } + }, + components: { + messages: { + message: { + messageId: 'messageId', + traits: [ + { + messageId: 'anotherId', + description: 'some description' + }, + { + description: 'another description' + }, + { + messageId: 'anotherMessageId3', + description: 'simple description' + } + ] + } + } + } + }; + const { document, diagnostics } = await parser.parse(documentRaw); + + const v2Document = document as AsyncAPIDocumentV2; + expect(v2Document).toBeInstanceOf(AsyncAPIDocumentV2); + expect(diagnostics.length > 0).toEqual(true); + + const message = v2Document?.json()?.channels?.channel?.publish?.message; + delete (message as v2.MessageObject)?.traits; + expect(message).toEqual({ messageId: 'anotherMessageId3', description: 'simple description', 'x-parser-message-name': 'anotherMessageId3' }); + expect(message === v2Document?.json()?.components?.messages?.message).toEqual(true); + }); +}); diff --git a/test/custom-operations/apply-traits-v3.spec.ts b/test/custom-operations/apply-traits-v3.spec.ts new file mode 100644 index 000000000..19f627c57 --- /dev/null +++ b/test/custom-operations/apply-traits-v3.spec.ts @@ -0,0 +1,158 @@ +import { AsyncAPIDocumentV3 } from '../../src/models'; +import { Parser } from '../../src/parser'; + +import type { v3 } from '../../src/spec-types'; + +describe('custom operations - apply traits v3', function() { + const parser = new Parser(); + + it('should apply traits to operations', async function() { + const documentRaw = { + asyncapi: '3.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + operations: { + someOperation1: { + traits: [ + { + description: 'some description' + }, + { + description: 'another description' + } + ] + }, + someOperation2: { + description: 'root description', + traits: [ + { + description: 'some description' + }, + { + description: 'another description' + } + ] + } + } + }; + const { document, diagnostics } = await parser.parse(documentRaw); + const v3Document = document as AsyncAPIDocumentV3; + expect(v3Document).toBeInstanceOf(AsyncAPIDocumentV3); + + const someOperation1 = v3Document?.json()?.operations?.someOperation1; + delete someOperation1?.traits; + expect(someOperation1).toEqual({ description: 'another description' }); + + const someOperation2 = v3Document?.json()?.operations?.someOperation2; + delete someOperation2?.traits; + expect(someOperation2).toEqual({ description: 'root description' }); + }); + + it('should apply traits to messages (channels)', async function() { + const documentRaw = { + asyncapi: '3.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + someChannel1: { + messages: [ + { + traits: [ + { + messageId: 'traitMessageId', + description: 'some description' + }, + { + description: 'another description' + } + ] + } + ] + }, + someChannel2: { + messages: [ + { + messageId: 'rootMessageId', + description: 'root description', + traits: [ + { + messageId: 'traitMessageId', + description: 'some description' + }, + { + description: 'another description' + } + ] + } + ] + } + } + }; + const { document } = await parser.parse(documentRaw); + + const v3Document = document as AsyncAPIDocumentV3; + expect(v3Document).toBeInstanceOf(AsyncAPIDocumentV3); + + const message1 = v3Document?.json()?.channels?.someChannel1?.messages?.[0]; + delete (message1 as v3.MessageObject)?.traits; + expect(message1).toEqual({ messageId: 'traitMessageId', description: 'another description', 'x-parser-message-name': 'traitMessageId' }); + + const message2 = v3Document?.json()?.channels?.someChannel2?.messages?.[0]; + delete (message2 as v3.MessageObject)?.traits; + expect(message2).toEqual({ messageId: 'rootMessageId', description: 'root description', 'x-parser-message-name': 'rootMessageId' }); + }); + + it('should apply traits to messages (components)', async function() { + const documentRaw = { + asyncapi: '3.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + components: { + messages: { + someMessage1: { + traits: [ + { + messageId: 'traitMessageId', + description: 'some description' + }, + { + description: 'another description' + } + ] + }, + someMessage2: { + messageId: 'rootMessageId', + description: 'root description', + traits: [ + { + messageId: 'traitMessageId', + description: 'some description' + }, + { + description: 'another description' + } + ] + } + } + } + }; + const { document } = await parser.parse(documentRaw); + + const v3Document = document as AsyncAPIDocumentV3; + expect(v3Document).toBeInstanceOf(AsyncAPIDocumentV3); + + const message1 = v3Document?.json()?.components?.messages?.someMessage1; + delete (message1 as v3.MessageObject)?.traits; + expect(message1).toEqual({ messageId: 'traitMessageId', description: 'another description', 'x-parser-message-name': 'traitMessageId' }); + + const message2 = v3Document?.json()?.components?.messages?.someMessage2; + delete (message2 as v3.MessageObject)?.traits; + expect(message2).toEqual({ messageId: 'rootMessageId', description: 'root description', 'x-parser-message-name': 'rootMessageId' }); + }); +}); diff --git a/test/document.spec.ts b/test/document.spec.ts index 3fd419bcb..64b963218 100644 --- a/test/document.spec.ts +++ b/test/document.spec.ts @@ -1,5 +1,5 @@ import { xParserApiVersion, xParserSpecParsed, xParserSpecStringified } from '../src/constants'; -import { BaseModel, AsyncAPIDocumentV2 } from '../src/models'; +import { AsyncAPIDocumentInterface, BaseModel, AsyncAPIDocumentV2, AsyncAPIDocumentV3 } from '../src/models'; import { convertToOldAPI } from '../src/old-api'; import { Parser } from '../src/parser'; import { @@ -17,12 +17,17 @@ describe('utils', function() { class Model extends BaseModel {} describe('createAsyncAPIDocument()', function() { - it('should create a valid document from v2.0.0', function() { - const doc = { asyncapi: '2.0.0' }; + const cases = [ + [2, AsyncAPIDocumentV2], + [3, AsyncAPIDocumentV3], + ]; + + test.each(cases)('should create a valid document from a v%p.0.0 source', (majorVersion, expected) => { + const doc = { asyncapi: `${majorVersion}.0.0` }; const detailed = createDetailedAsyncAPI(doc as any, doc as any); const d = createAsyncAPIDocument(detailed); expect(d.version()).toEqual(doc.asyncapi); - expect(d).toBeInstanceOf(AsyncAPIDocumentV2); + expect(d).toBeInstanceOf(expected); }); it('should fail trying to create a document from a non supported spec version', function() { From c9f56b1d38d0bba0d3a187967b52c7c1019d8b10 Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Wed, 26 Jul 2023 12:12:40 +0200 Subject: [PATCH 073/126] feat: add simplified channel parameter (#816) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Maciej Urbańczyk --- src/models/v3/channel-parameter.ts | 21 +++++++++++----- src/spec-types/v3.ts | 4 ++- test/models/v3/channel-parameter.spec.ts | 32 +++++++++++++++++++++--- 3 files changed, 46 insertions(+), 11 deletions(-) diff --git a/src/models/v3/channel-parameter.ts b/src/models/v3/channel-parameter.ts index b5fc343e4..54099a351 100644 --- a/src/models/v3/channel-parameter.ts +++ b/src/models/v3/channel-parameter.ts @@ -1,12 +1,10 @@ import { BaseModel } from '../base'; -import { Schema } from './schema'; - import { hasDescription, description, extensions } from './mixins'; +import { Schema } from './schema'; import type { ChannelParameterInterface } from '../channel-parameter'; import type { SchemaInterface } from '../schema'; import type { ExtensionsInterface } from '../extensions'; - import type { v3 } from '../../spec-types'; export class ChannelParameter extends BaseModel implements ChannelParameterInterface { @@ -15,12 +13,23 @@ export class ChannelParameter extends BaseModel export interface ParameterObject extends SpecificationExtensions { description?: string; - schema?: SchemaObject; + enum?: string[]; + default?: string; + examples?: string[]; location?: string; } diff --git a/test/models/v3/channel-parameter.spec.ts b/test/models/v3/channel-parameter.spec.ts index 66c6c76a1..16eb510e5 100644 --- a/test/models/v3/channel-parameter.spec.ts +++ b/test/models/v3/channel-parameter.spec.ts @@ -43,12 +43,23 @@ describe('ChannelParameter model', function() { }); describe('.hasSchema()', function() { - it('should return true when there is a value', function() { - const doc = serializeInput({ schema: {} }); + it('should return true if enum are sat', function() { + const doc = serializeInput({ enum: ['test'] }); + const d = new ChannelParameter(doc); + expect(d.hasSchema()).toEqual(true); + }); + it('should return true if default are sat', function() { + const doc = serializeInput({ default: 'test' }); const d = new ChannelParameter(doc); expect(d.hasSchema()).toEqual(true); }); + it('should return true if examples are sat', function() { + const doc = serializeInput({ examples: ['test'] }); + const d = new ChannelParameter(doc); + expect(d.hasSchema()).toEqual(true); + }); + it('should return false when there is no value', function() { const doc = serializeInput({}); const d = new ChannelParameter(doc); @@ -57,10 +68,23 @@ describe('ChannelParameter model', function() { }); describe('.schema()', function() { - it('should return the value', function() { - const doc = serializeInput({ schema: {} }); + it('should be able to access enum values', function() { + const doc = serializeInput({ enum: ['test'] }); + const d = new ChannelParameter(doc); + expect(d.schema()).toBeInstanceOf(Schema); + expect(d.schema()?.enum()).toEqual(['test']); + }); + it('should be able to access examples values', function() { + const doc = serializeInput({ examples: ['test'] }); + const d = new ChannelParameter(doc); + expect(d.schema()).toBeInstanceOf(Schema); + expect(d.schema()?.examples()).toEqual(['test']); + }); + it('should be able to access default value', function() { + const doc = serializeInput({ default: 'test' }); const d = new ChannelParameter(doc); expect(d.schema()).toBeInstanceOf(Schema); + expect(d.schema()?.default()).toEqual('test'); }); it('should return undefined when there is no value', function() { From 21f2744fc3b91cb93ae6ad9274157893e1404ff9 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 26 Jul 2023 12:23:25 +0200 Subject: [PATCH 074/126] chore(release): v2.1.0-next-major-spec.2 (#818) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index b2253ad39..c89375e28 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.1", + "version": "2.1.0-next-major-spec.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.1", + "version": "2.1.0-next-major-spec.2", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.2", diff --git a/package.json b/package.json index 5fcc5f9c2..5552cfb3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.1", + "version": "2.1.0-next-major-spec.2", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From 9b79e90dd9f30cd7f8840a438b98e24551bcdcfe Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Fri, 28 Jul 2023 11:36:58 +0200 Subject: [PATCH 075/126] feat: add support for multi-format schema (#814) --- src/models/message-trait.ts | 3 +- src/models/schema.ts | 1 + src/models/v2/message-trait.ts | 8 +- src/models/v2/message.ts | 2 +- src/models/v2/schema.ts | 7 +- src/models/v3/message-trait.ts | 13 +- src/models/v3/message.ts | 15 +- src/models/v3/schema.ts | 250 ++++++++++++++------------- src/spec-types/v3.ts | 3 +- src/utils.ts | 15 -- test/models/v2/message.spec.ts | 4 +- test/models/v2/schema.spec.ts | 16 ++ test/models/v3/message-trait.spec.ts | 14 +- test/models/v3/message.spec.ts | 23 +-- test/models/v3/schema.spec.ts | 24 +++ 15 files changed, 236 insertions(+), 162 deletions(-) diff --git a/src/models/message-trait.ts b/src/models/message-trait.ts index b140fdfe6..8abb1f18e 100644 --- a/src/models/message-trait.ts +++ b/src/models/message-trait.ts @@ -6,7 +6,8 @@ import type { SchemaInterface } from './schema'; export interface MessageTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { id(): string; - schemaFormat(): string; + hasSchemaFormat(): boolean; + schemaFormat(): string | undefined; hasMessageId(): boolean; messageId(): string | undefined; hasCorrelationId(): boolean; diff --git a/src/models/schema.ts b/src/models/schema.ts index dbcebe489..bc1f5d42c 100644 --- a/src/models/schema.ts +++ b/src/models/schema.ts @@ -49,6 +49,7 @@ export interface SchemaInterface extends BaseModel, Ext propertyNames(): SchemaInterface | undefined; readOnly(): boolean | undefined; required(): Array | undefined; + schemaFormat(): string then(): SchemaInterface | undefined; title(): string | undefined; type(): string | Array | undefined; diff --git a/src/models/v2/message-trait.ts b/src/models/v2/message-trait.ts index 299b7856c..cee11664a 100644 --- a/src/models/v2/message-trait.ts +++ b/src/models/v2/message-trait.ts @@ -5,8 +5,8 @@ import { MessageExample } from './message-example'; import { Schema } from './schema'; import { xParserMessageName } from '../../constants'; -import { getDefaultSchemaFormat } from '../../schema-parser'; import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from './mixins'; +import { getDefaultSchemaFormat } from '../../schema-parser'; import type { BindingsInterface } from '../bindings'; import type { CorrelationIdInterface } from '../correlation-id'; @@ -24,7 +24,11 @@ export class MessageTrait implements MessageIn payload(): SchemaInterface | undefined { if (!this._json.payload) return undefined; - return this.createModel(Schema, this._json.payload, { pointer: `${this._meta.pointer}/payload` }); + return this.createModel(Schema, this._json.payload, { pointer: `${this._meta.pointer}/payload`, schemaFormat: this._json.schemaFormat }); } servers(): ServersInterface { diff --git a/src/models/v2/schema.ts b/src/models/v2/schema.ts index 20ae87529..9f2df8600 100644 --- a/src/models/v2/schema.ts +++ b/src/models/v2/schema.ts @@ -2,6 +2,7 @@ import { BaseModel } from '../base'; import { xParserSchemaId } from '../../constants'; import { extensions, hasExternalDocs, externalDocs } from './mixins'; +import { getDefaultSchemaFormat } from '../../schema-parser'; import type { ExtensionsInterface } from '../extensions'; import type { ExternalDocumentationInterface } from '../external-docs'; @@ -9,7 +10,7 @@ import type { SchemaInterface } from '../schema'; import type { v2 } from '../../spec-types'; -export class Schema extends BaseModel implements SchemaInterface { +export class Schema extends BaseModel implements SchemaInterface { id(): string { return this.$id() || this._meta.id || this.json(xParserSchemaId as any) as string; } @@ -267,6 +268,10 @@ export class Schema extends BaseModel() as string; } - schemaFormat(): string { - return this._json.schemaFormat || getDefaultSchemaFormat(this._meta.asyncapi.semver.version); - } - hasMessageId(): boolean { return !!this._json.messageId; } + hasSchemaFormat(): boolean { + return false; + } + + schemaFormat(): string | undefined { + return undefined; + } + messageId(): string | undefined { return this._json.messageId; } diff --git a/src/models/v3/message.ts b/src/models/v3/message.ts index 07fc5bf25..ce05a9e3d 100644 --- a/src/models/v3/message.ts +++ b/src/models/v3/message.ts @@ -25,7 +25,20 @@ export class Message extends MessageTrait implements MessageIn payload(): SchemaInterface | undefined { if (!this._json.payload) return undefined; - return this.createModel(Schema, this._json.payload, { pointer: this.jsonPath('payload') }); + return this.createModel(Schema, this._json.payload, { pointer: this.jsonPath('payload')}); + } + + hasSchemaFormat(): boolean { + // If it has a payload, schema format is expected (at least the default) + return this.hasPayload(); + } + + schemaFormat(): string | undefined { + if (this.hasSchemaFormat()) { + return this.payload()?.schemaFormat(); + } + + return undefined; } servers(): ServersInterface { diff --git a/src/models/v3/schema.ts b/src/models/v3/schema.ts index 889f254d7..763c91a45 100644 --- a/src/models/v3/schema.ts +++ b/src/models/v3/schema.ts @@ -1,304 +1,318 @@ -import { BaseModel } from '../base'; +import { BaseModel, ModelMetadata } from '../base'; import { xParserSchemaId } from '../../constants'; import { extensions, hasExternalDocs, externalDocs } from './mixins'; -import { retrievePossibleRef, hasRef } from '../../utils'; +import { getDefaultSchemaFormat } from '../../schema-parser'; +import { AsyncAPISchemaObject } from 'spec-types/v3'; -import type { ModelMetadata } from '../base'; import type { ExtensionsInterface } from '../extensions'; import type { ExternalDocumentationInterface } from '../external-docs'; import type { SchemaInterface } from '../schema'; import type { v3 } from '../../spec-types'; -export class Schema extends BaseModel implements SchemaInterface { +export class Schema extends BaseModel implements SchemaInterface { + private _schemaFormat: string; + private _schemaObject: AsyncAPISchemaObject; + + // The following constructor is needed because, starting from AsyncAPI v3, schemas can be multi-format as well. constructor( - _json: v3.AsyncAPISchemaObject, - _meta: ModelMetadata & { id?: string, parent?: Schema } = {} as any, + protected readonly _json: v3.MultiFormatSchemaObject, + protected readonly _meta: ModelMetadata & { id?: string, parent?: Schema } = {} as ModelMetadata & { id?: string, parent?: Schema }, ) { - _json = retrievePossibleRef(_json, _meta.pointer as string, _meta.asyncapi?.parsed); super(_json, _meta); + + // Based on the shape of the JSON, we grab the data for the Schema from the root (Schema) or rather from `schema` field (MultiFormatSchema). + if (typeof _json === 'object' && typeof _json.schema === 'object') { + this._schemaObject = _json.schema; + this._schemaFormat = _json.schemaFormat; + } else { + this._schemaObject = _json; + this._schemaFormat = getDefaultSchemaFormat(_meta.asyncapi?.semver?.version); + } } - id(): string { - return this.$id() || this._meta.id || this.json(xParserSchemaId as any) as string; + return this.$id() || this._meta.id || (this._schemaObject as any)[xParserSchemaId] as string; } $comment(): string | undefined { - if (typeof this._json === 'boolean') return; - return this._json.$comment; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.$comment; } $id(): string | undefined { - if (typeof this._json === 'boolean') return; - return this._json.$id; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.$id; } $schema(): string { - if (typeof this._json === 'boolean') return 'http://json-schema.org/draft-07/schema#'; - return this._json.$schema || 'http://json-schema.org/draft-07/schema#'; + if (typeof this._schemaObject === 'boolean') return 'http://json-schema.org/draft-07/schema#'; + return this._schemaObject.$schema || 'http://json-schema.org/draft-07/schema#'; } additionalItems(): boolean | SchemaInterface { - if (typeof this._json === 'boolean') return this._json; - if (this._json.additionalItems === undefined) return true; - if (typeof this._json.additionalItems === 'boolean') return this._json.additionalItems; - return this.createModel(Schema, this._json.additionalItems, { pointer: `${this._meta.pointer}/additionalItems`, parent: this }); + if (typeof this._schemaObject === 'boolean') return this._schemaObject; + if (this._schemaObject.additionalItems === undefined) return true; + if (typeof this._schemaObject.additionalItems === 'boolean') return this._schemaObject.additionalItems; + return this.createModel(Schema, this._schemaObject.additionalItems, { pointer: `${this._meta.pointer}/additionalItems`, parent: this }); } additionalProperties(): boolean | SchemaInterface { - if (typeof this._json === 'boolean') return this._json; - if (this._json.additionalProperties === undefined) return true; - if (typeof this._json.additionalProperties === 'boolean') return this._json.additionalProperties; - return this.createModel(Schema, this._json.additionalProperties, { pointer: `${this._meta.pointer}/additionalProperties`, parent: this }); + if (typeof this._schemaObject === 'boolean') return this._schemaObject; + if (this._schemaObject.additionalProperties === undefined) return true; + if (typeof this._schemaObject.additionalProperties === 'boolean') return this._schemaObject.additionalProperties; + return this.createModel(Schema, this._schemaObject.additionalProperties, { pointer: `${this._meta.pointer}/additionalProperties`, parent: this }); } allOf(): Array | undefined { - if (typeof this._json === 'boolean') return; - if (!Array.isArray(this._json.allOf)) return undefined; - return this._json.allOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/allOf/${index}`, parent: this })); + if (typeof this._schemaObject === 'boolean') return; + if (!Array.isArray(this._schemaObject.allOf)) return undefined; + return this._schemaObject.allOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/allOf/${index}`, parent: this })); } anyOf(): Array | undefined { - if (typeof this._json === 'boolean') return; - if (!Array.isArray(this._json.anyOf)) return undefined; - return this._json.anyOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/anyOf/${index}`, parent: this })); + if (typeof this._schemaObject === 'boolean') return; + if (!Array.isArray(this._schemaObject.anyOf)) return undefined; + return this._schemaObject.anyOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/anyOf/${index}`, parent: this })); } const(): any { - if (typeof this._json === 'boolean') return; - return this._json.const; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.const; } contains(): SchemaInterface | undefined { - if (typeof this._json === 'boolean' || typeof this._json.contains !== 'object') return; - return this.createModel(Schema, this._json.contains, { pointer: `${this._meta.pointer}/contains`, parent: this }); + if (typeof this._schemaObject === 'boolean' || typeof this._schemaObject.contains !== 'object') return; + return this.createModel(Schema, this._schemaObject.contains, { pointer: `${this._meta.pointer}/contains`, parent: this }); } contentEncoding(): string | undefined { - if (typeof this._json === 'boolean') return; - return this._json.contentEncoding; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.contentEncoding; } contentMediaType(): string | undefined { - if (typeof this._json === 'boolean') return; - return this._json.contentMediaType; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.contentMediaType; } default(): any { - if (typeof this._json === 'boolean') return; - return this._json.default; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.default; } definitions(): Record | undefined { - if (typeof this._json === 'boolean' || typeof this._json.definitions !== 'object') return; - return Object.entries(this._json.definitions).reduce((acc: Record, [key, s]: [string, any]) => { + if (typeof this._schemaObject === 'boolean' || typeof this._schemaObject.definitions !== 'object') return; + return Object.entries(this._schemaObject.definitions).reduce((acc: Record, [key, s]: [string, any]) => { acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/definitions/${key}`, parent: this }); return acc; }, {}); } description(): string | undefined { - if (typeof this._json === 'boolean') return; - return this._json.description; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.description; } dependencies(): Record> | undefined { - if (typeof this._json === 'boolean') return; - if (typeof this._json.dependencies !== 'object') return undefined; - return Object.entries(this._json.dependencies).reduce((acc: Record>, [key, s]: [string, any]) => { + if (typeof this._schemaObject === 'boolean') return; + if (typeof this._schemaObject.dependencies !== 'object') return undefined; + return Object.entries(this._schemaObject.dependencies).reduce((acc: Record>, [key, s]: [string, any]) => { acc[key] = Array.isArray(s) ? s : this.createModel(Schema, s, { pointer: `${this._meta.pointer}/dependencies/${key}`, parent: this }); return acc; }, {}); } deprecated(): boolean { - if (typeof this._json === 'boolean') return false; - return this._json.deprecated || false; + if (typeof this._schemaObject === 'boolean') return false; + return this._schemaObject.deprecated || false; } discriminator(): string | undefined { - if (typeof this._json === 'boolean') return; - return this._json.discriminator; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.discriminator; } else(): SchemaInterface | undefined { - if (typeof this._json === 'boolean' || typeof this._json.else !== 'object') return; - return this.createModel(Schema, this._json.else, { pointer: `${this._meta.pointer}/else`, parent: this }); + if (typeof this._schemaObject === 'boolean' || typeof this._schemaObject.else !== 'object') return; + return this.createModel(Schema, this._schemaObject.else, { pointer: `${this._meta.pointer}/else`, parent: this }); } enum(): Array | undefined { - if (typeof this._json === 'boolean') return; - return this._json.enum; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.enum; } examples(): Array | undefined { - if (typeof this._json === 'boolean') return; - return this._json.examples; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.examples; } exclusiveMaximum(): number | undefined { - if (typeof this._json === 'boolean') return; - return this._json.exclusiveMaximum; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.exclusiveMaximum; } exclusiveMinimum(): number | undefined { - if (typeof this._json === 'boolean') return; - return this._json.exclusiveMinimum; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.exclusiveMinimum; } format(): string | undefined { - if (typeof this._json === 'boolean') return; - return this._json.format; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.format; } isBooleanSchema(): boolean { - return typeof this._json === 'boolean'; + return typeof this._schemaObject === 'boolean'; } if(): SchemaInterface | undefined { - if (typeof this._json === 'boolean' || typeof this._json.if !== 'object') return; - return this.createModel(Schema, this._json.if, { pointer: `${this._meta.pointer}/if`, parent: this }); + if (typeof this._schemaObject === 'boolean' || typeof this._schemaObject.if !== 'object') return; + return this.createModel(Schema, this._schemaObject.if, { pointer: `${this._meta.pointer}/if`, parent: this }); } isCircular(): boolean { - if (hasRef(this._json)) return true; let parent = this._meta.parent; while (parent) { - if (parent._json === this._json) return true; + if (parent._json === this._schemaObject) return true; parent = parent._meta.parent; } return false; } items(): SchemaInterface | Array | undefined { - if (typeof this._json === 'boolean' || typeof this._json.items !== 'object') return; - if (Array.isArray(this._json.items)) { - return this._json.items.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/items/${index}`, parent: this })); + if (typeof this._schemaObject === 'boolean' || typeof this._schemaObject.items !== 'object') return; + if (Array.isArray(this._schemaObject.items)) { + return this._schemaObject.items.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/items/${index}`, parent: this })); } - return this.createModel(Schema, this._json.items, { pointer: `${this._meta.pointer}/items`, parent: this }); + return this.createModel(Schema, this._schemaObject.items, { pointer: `${this._meta.pointer}/items`, parent: this }); } maximum(): number | undefined { - if (typeof this._json === 'boolean') return; - return this._json.maximum; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.maximum; } maxItems(): number | undefined { - if (typeof this._json === 'boolean') return; - return this._json.maxItems; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.maxItems; } maxLength(): number | undefined { - if (typeof this._json === 'boolean') return; - return this._json.maxLength; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.maxLength; } maxProperties(): number | undefined { - if (typeof this._json === 'boolean') return; - return this._json.maxProperties; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.maxProperties; } minimum(): number | undefined { - if (typeof this._json === 'boolean') return; - return this._json.minimum; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.minimum; } minItems(): number | undefined { - if (typeof this._json === 'boolean') return; - return this._json.minItems; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.minItems; } minLength(): number | undefined { - if (typeof this._json === 'boolean') return; - return this._json.minLength; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.minLength; } minProperties(): number | undefined { - if (typeof this._json === 'boolean') return; - return this._json.minProperties; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.minProperties; } multipleOf(): number | undefined { - if (typeof this._json === 'boolean') return; - return this._json.multipleOf; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.multipleOf; } not(): SchemaInterface | undefined { - if (typeof this._json === 'boolean' || typeof this._json.not !== 'object') return; - return this.createModel(Schema, this._json.not, { pointer: `${this._meta.pointer}/not`, parent: this }); + if (typeof this._schemaObject === 'boolean' || typeof this._schemaObject.not !== 'object') return; + return this.createModel(Schema, this._schemaObject.not, { pointer: `${this._meta.pointer}/not`, parent: this }); } oneOf(): Array | undefined { - if (typeof this._json === 'boolean') return; - if (!Array.isArray(this._json.oneOf)) return undefined; - return this._json.oneOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/oneOf/${index}`, parent: this })); + if (typeof this._schemaObject === 'boolean') return; + if (!Array.isArray(this._schemaObject.oneOf)) return undefined; + return this._schemaObject.oneOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/oneOf/${index}`, parent: this })); } pattern(): string | undefined { - if (typeof this._json === 'boolean') return; - return this._json.pattern; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.pattern; } patternProperties(): Record | undefined { - if (typeof this._json === 'boolean' || typeof this._json.patternProperties !== 'object') return; - return Object.entries(this._json.patternProperties).reduce((acc: Record, [key, s]: [string, any]) => { + if (typeof this._schemaObject === 'boolean' || typeof this._schemaObject.patternProperties !== 'object') return; + return Object.entries(this._schemaObject.patternProperties).reduce((acc: Record, [key, s]: [string, any]) => { acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/patternProperties/${key}`, parent: this }); return acc; }, {}); } properties(): Record | undefined { - if (typeof this._json === 'boolean' || typeof this._json.properties !== 'object') return; - return Object.entries(this._json.properties).reduce((acc: Record, [key, s]: [string, any]) => { + if (typeof this._schemaObject === 'boolean' || typeof this._schemaObject.properties !== 'object') return; + return Object.entries(this._schemaObject.properties).reduce((acc: Record, [key, s]: [string, any]) => { acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/properties/${key}`, parent: this }); return acc; }, {}); } property(name: string): SchemaInterface | undefined { - if (typeof this._json === 'boolean' || typeof this._json.properties !== 'object' || typeof this._json.properties[name] !== 'object') return; - return this.createModel(Schema, this._json.properties[name], { pointer: `${this._meta.pointer}/properties/${name}`, parent: this }); + if (typeof this._schemaObject === 'boolean' || typeof this._schemaObject.properties !== 'object' || typeof this._schemaObject.properties[name] !== 'object') return; + return this.createModel(Schema, this._schemaObject.properties[name], { pointer: `${this._meta.pointer}/properties/${name}`, parent: this }); } propertyNames(): SchemaInterface | undefined { - if (typeof this._json === 'boolean' || typeof this._json.propertyNames !== 'object') return; - return this.createModel(Schema, this._json.propertyNames, { pointer: `${this._meta.pointer}/propertyNames`, parent: this }); + if (typeof this._schemaObject === 'boolean' || typeof this._schemaObject.propertyNames !== 'object') return; + return this.createModel(Schema, this._schemaObject.propertyNames, { pointer: `${this._meta.pointer}/propertyNames`, parent: this }); } readOnly(): boolean | undefined { - if (typeof this._json === 'boolean') return false; - return this._json.readOnly || false; + if (typeof this._schemaObject === 'boolean') return false; + return this._schemaObject.readOnly || false; } required(): Array | undefined { - if (typeof this._json === 'boolean') return; - return this._json.required; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.required; + } + + schemaFormat(): string { + return this._schemaFormat; } then(): SchemaInterface | undefined { - if (typeof this._json === 'boolean' || typeof this._json.then !== 'object') return; - return this.createModel(Schema, this._json.then, { pointer: `${this._meta.pointer}/then`, parent: this }); + if (typeof this._schemaObject === 'boolean' || typeof this._schemaObject.then !== 'object') return; + return this.createModel(Schema, this._schemaObject.then, { pointer: `${this._meta.pointer}/then`, parent: this }); } title(): string | undefined { - if (typeof this._json === 'boolean') return; - return this._json.title; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.title; } type(): string | Array | undefined { - if (typeof this._json === 'boolean') return; - return this._json.type; + if (typeof this._schemaObject === 'boolean') return; + return this._schemaObject.type; } uniqueItems(): boolean | undefined { - if (typeof this._json === 'boolean') return false; - return this._json.uniqueItems || false; + if (typeof this._schemaObject === 'boolean') return false; + return this._schemaObject.uniqueItems || false; } writeOnly(): boolean | undefined { - if (typeof this._json === 'boolean') return false; - return this._json.writeOnly || false; + if (typeof this._schemaObject === 'boolean') return false; + return this._schemaObject.writeOnly || false; } hasExternalDocs(): boolean { diff --git a/src/spec-types/v3.ts b/src/spec-types/v3.ts index 08a337731..e0fc84991 100644 --- a/src/spec-types/v3.ts +++ b/src/spec-types/v3.ts @@ -402,8 +402,9 @@ export interface OAuthFlowObjectAuthorizationCode extends OAuthFlowObjectBase, S } export type SchemaObject = AsyncAPISchemaObject | ReferenceObject; - export type AsyncAPISchemaObject = AsyncAPISchemaDefinition | boolean; +export type MultiFormatSchemaObject = AsyncAPISchemaObject | { schema: AsyncAPISchemaObject, schemaFormat: string | undefined } + export interface AsyncAPISchemaDefinition extends SpecificationExtensions { $id?: string; $schema?: JSONSchema7Version; diff --git a/src/utils.ts b/src/utils.ts index cc394c3f7..0690d02f2 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -144,21 +144,6 @@ export function findSubArrayIndex(arr: Array, subarr: Array, fromIndex return -1; } -export function retrievePossibleRef(data: any, pathOfData: string, spec: any = {}): any { - if (!hasRef(data)) { - return data; - } - - const refPath = serializePath(data.$ref); - if (pathOfData.startsWith(refPath)) { // starts by given path - return retrieveDeepData(spec, splitPath(refPath)) || data; - } else if (pathOfData.includes(refPath)) { // circular path in substring of path - const substringPath = pathOfData.split(refPath)[0]; - return retrieveDeepData(spec, splitPath(`${substringPath}${refPath}`)) || data; - } - return data; -} - export function resolveServerUrl(url: string): { host: string, pathname: string | undefined } { // eslint-disable-next-line prefer-const let [maybeProtocol, maybeHost] = url.split('://'); diff --git a/test/models/v2/message.spec.ts b/test/models/v2/message.spec.ts index 111031476..ab445a87e 100644 --- a/test/models/v2/message.spec.ts +++ b/test/models/v2/message.spec.ts @@ -26,16 +26,18 @@ describe('Message model', function() { }); }); - describe('.schemaFormat()', function() { + describe('.schemaFormat() + .hasSchemaFormat()', function() { it('should return defined schemaFormat', function() { const doc = { schemaFormat: 'customSchemaFormat' }; const d = new Message(doc, { asyncapi: {} as any, pointer: '', id: 'message' }); + expect(d.hasSchemaFormat()).toBeTruthy(); expect(d.schemaFormat()).toEqual('customSchemaFormat'); }); it('should return default schemaFormat if schemaFormat field is absent', function() { const doc = {}; const d = new Message(doc, { asyncapi: { semver: { version: '2.0.0' } } as any, pointer: '', id: 'message' }); + expect(d.hasSchemaFormat()).toBeTruthy(); expect(d.schemaFormat()).toEqual('application/vnd.aai.asyncapi;version=2.0.0'); }); }); diff --git a/test/models/v2/schema.spec.ts b/test/models/v2/schema.spec.ts index 4e48b3366..391305bee 100644 --- a/test/models/v2/schema.spec.ts +++ b/test/models/v2/schema.spec.ts @@ -3,6 +3,8 @@ import { Schema } from '../../../src/models/v2/schema'; import { assertExtensions, assertExternalDocumentation } from './utils'; import { xParserSchemaId } from '../../../src/constants'; +import { getDefaultSchemaFormat } from '../../../src/schema-parser'; + import type { v2 } from '../../../src/spec-types'; describe('Channel model', function() { @@ -751,6 +753,20 @@ describe('Channel model', function() { }); }); + describe('.schemaFormat()', function() { + it('should return the format of the schema', function() { + const actualSchemaFormat = 'application/vnd.apache.avro;version=1.9.0'; + const d = new Schema({}, {asyncapi: {} as any, pointer: '', schemaFormat: actualSchemaFormat}); + expect(d.schemaFormat()).toEqual(actualSchemaFormat); + }); + + it('should return the default schema format where there is no value', function() { + const doc = {asyncapi: '2.6.0' }; + const d = new Schema(doc, {asyncapi: { semver: { version: doc.asyncapi } }}); + expect(d.schemaFormat()).toEqual(getDefaultSchemaFormat(doc.asyncapi)); + }); + }); + describe('.then()', function() { it('should return value', function() { const doc = { then: {} }; diff --git a/test/models/v3/message-trait.spec.ts b/test/models/v3/message-trait.spec.ts index 43dce32b6..ad046af22 100644 --- a/test/models/v3/message-trait.spec.ts +++ b/test/models/v3/message-trait.spec.ts @@ -22,16 +22,18 @@ describe('MessageTrait model', function() { }); describe('.schemaFormat()', function() { - it('should return defined schemaFormat', function() { + it('should return always undefined', function() { const doc = { schemaFormat: 'customSchemaFormat' }; const d = new MessageTrait(doc, { asyncapi: {} as any, pointer: '', id: 'message' }); - expect(d.schemaFormat()).toEqual('customSchemaFormat'); + expect(d.schemaFormat()).toBeUndefined(); }); + }); - it('should return default schemaFormat if schemaFormat field is absent', function() { - const doc = {}; - const d = new MessageTrait(doc, { asyncapi: { semver: { version: '2.0.0' } } as any, pointer: '', id: 'message' }); - expect(d.schemaFormat()).toEqual('application/vnd.aai.asyncapi;version=2.0.0'); + describe('.hasSchemaFormat()', function() { + it('should return always false', function() { + const doc = { schemaFormat: 'customSchemaFormat' }; + const d = new MessageTrait(doc, { asyncapi: {} as any, pointer: '', id: 'message' }); + expect(d.hasSchemaFormat()).toBeFalsy(); }); }); diff --git a/test/models/v3/message.spec.ts b/test/models/v3/message.spec.ts index 23594952c..91432f36d 100644 --- a/test/models/v3/message.spec.ts +++ b/test/models/v3/message.spec.ts @@ -1,13 +1,7 @@ -import { Channels } from '../../../src/models/v3/channels'; -import { Channel } from '../../../src/models/v3/channel'; import { Message } from '../../../src/models/v3/message'; import { MessageTraits } from '../../../src/models/v3/message-traits'; import { MessageTrait } from '../../../src/models/v3/message-trait'; -import { Operations } from '../../../src/models/v3/operations'; -import { Operation } from '../../../src/models/v3/operation'; import { Schema } from '../../../src/models/v3/schema'; -import { Servers } from '../../../src/models/v3/servers'; -import { Server } from '../../../src/models/v3/server'; import { assertCoreModel } from './utils'; @@ -26,18 +20,27 @@ describe('Message model', function() { }); }); - describe('.schemaFormat()', function() { - it('should return defined schemaFormat', function() { - const doc = { schemaFormat: 'customSchemaFormat' }; + describe('.schemaFormat() + .hasSchemaFormat()', function() { + it('should return defined schemaFormat, and true for hasSchemaFormat()', function() { + const doc = { payload: {schemaFormat: 'customSchemaFormat', schema: {} }}; const d = new Message(doc, { asyncapi: {} as any, pointer: '', id: 'message' }); + expect(d.hasSchemaFormat()).toBeTruthy(); expect(d.schemaFormat()).toEqual('customSchemaFormat'); }); it('should return default schemaFormat if schemaFormat field is absent', function() { - const doc = {}; + const doc = {payload: {}}; const d = new Message(doc, { asyncapi: { semver: { version: '2.0.0' } } as any, pointer: '', id: 'message' }); + expect(d.hasSchemaFormat()).toBeTruthy(); expect(d.schemaFormat()).toEqual('application/vnd.aai.asyncapi;version=2.0.0'); }); + + it('should return undefined schemaFormat, and false for hasSchemaFormat() if there is no payload', function() { + const doc = {}; + const d = new Message(doc, { asyncapi: { semver: { version: '2.0.0' } } as any, pointer: '', id: 'message' }); + expect(d.hasSchemaFormat()).toBeFalsy(); + expect(d.schemaFormat()).toBeUndefined(); + }); }); describe('.hasPayload()', function() { diff --git a/test/models/v3/schema.spec.ts b/test/models/v3/schema.spec.ts index 59a24050c..f491ea55e 100644 --- a/test/models/v3/schema.spec.ts +++ b/test/models/v3/schema.spec.ts @@ -2,6 +2,7 @@ import { Schema } from '../../../src/models/v3/schema'; import { assertExtensions, assertExternalDocumentation } from './utils'; import { xParserSchemaId } from '../../../src/constants'; +import { getDefaultSchemaFormat } from '../../../src/schema-parser'; import type { v3 } from '../../../src/spec-types'; @@ -732,6 +733,29 @@ describe('Schema model', function() { }); }); + describe('.schemaFormat()', function() { + it('should return the format of the schema', function() { + const actualSchemaFormat = 'application/vnd.apache.avro;version=1.9.0'; + const doc = {schemaFormat: actualSchemaFormat, schema: {}}; + + const d = new Schema(doc, {asyncapi: {} as any, pointer: '', }); + expect(d.schemaFormat()).toEqual(actualSchemaFormat); + }); + + it('should return the default schema format where there is no value', function() { + const d = new Schema({}, {asyncapi: { semver: { version: '3.0.0' } }}); + expect(d.schemaFormat()).toEqual(getDefaultSchemaFormat('3.0.0')); + }); + }); + + describe('MultiFormatSchema is parsed correctly', function() { + it('should return any field from the underlaying schema', function() { + const doc = {schemaFormat: 'whatever', schema: {$comment: 'test'}}; + const d = new Schema(doc, {asyncapi: {} as any, pointer: '', }); + expect(d.$comment()).toEqual('test'); + }); + }); + describe('.then()', function() { it('should return value', function() { const doc = { then: {} }; From a308af92f30143557c66a9eefa7f574307c39d77 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Fri, 28 Jul 2023 11:47:10 +0200 Subject: [PATCH 076/126] chore(release): v2.1.0-next-major-spec.3 (#819) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index c89375e28..f8c19e5e6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.2", + "version": "2.1.0-next-major-spec.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.2", + "version": "2.1.0-next-major-spec.3", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.2", diff --git a/package.json b/package.json index 5552cfb3e..0dc1951b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.2", + "version": "2.1.0-next-major-spec.3", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From fc6bc7b23eb37aabf391848c85821e4ada3b7fbc Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Tue, 1 Aug 2023 12:26:36 +0200 Subject: [PATCH 077/126] chore: adapt tests for v3 --- test/parse.spec.ts | 19 ++++++++++++++++--- test/ruleset/formats.spec.ts | 6 +++--- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/test/parse.spec.ts b/test/parse.spec.ts index 265ffb362..aec700263 100644 --- a/test/parse.spec.ts +++ b/test/parse.spec.ts @@ -32,9 +32,8 @@ describe('parse()', function() { channels: {} }; const { document, diagnostics } = await parser.parse(documentRaw); - expect(document).toEqual(undefined); - expect(diagnostics.length > 0).toEqual(true); - expect(diagnostics[0].message).toContain('Version "3.0.0" is not supported'); + expect(document).toBeInstanceOf(AsyncAPIDocumentV3); + expect(diagnostics.length === 0).toEqual(true); }); it('should parse invalid document', async function() { @@ -51,6 +50,20 @@ describe('parse()', function() { expect(diagnostics.length > 0).toEqual(true); }); + it('should parse invalid v3 document', async function() { + const documentRaw = { + asyncapi: '3.0.0', + not_a_valid_info_object: { + title: 'Invalid AsyncApi document', + version: '1.0', + }, + }; + const { document, diagnostics } = await parser.parse(documentRaw); + + expect(document).toBeInstanceOf(AsyncAPIDocumentV3); + expect(diagnostics.length === 0).toEqual(true); // Validation in v3 is still not enabled. This test will intentionally fail once that changes. + }); + it('should return extras', async function() { const documentRaw = { asyncapi: '2.0.0', diff --git a/test/ruleset/formats.spec.ts b/test/ruleset/formats.spec.ts index b2639a0e4..41474d651 100644 --- a/test/ruleset/formats.spec.ts +++ b/test/ruleset/formats.spec.ts @@ -19,9 +19,9 @@ describe('AsyncAPI format', () => { { formatVersion: '2.6.5', document: {asyncapi: '2.6.5'}, existsFormat: true, result: true }, { formatVersion: '2.6.5', document: {asyncapi: '2.0.0'}, existsFormat: true, result: false }, { formatVersion: '2.0.0', document: {asyncapi: '2.6.5'}, existsFormat: true, result: false }, - { formatVersion: '3.0.10', document: {asyncapi: '3.0.10'}, existsFormat: false, result: false }, - { formatVersion: '3.0.0', document: {openapi: '3.0.0'}, existsFormat: false, result: false }, - { formatVersion: '3.0.0', document: null, existsFormat: false, result: false }, + { formatVersion: '3.0.10', document: {asyncapi: '3.0.10'}, existsFormat: true, result: true }, + { formatVersion: '3.0.0', document: {openapi: '3.0.0'}, existsFormat: true, result: false }, + { formatVersion: '3.0.0', document: null, existsFormat: true, result: false }, { formatVersion: '999.999.0', document: {}, existsFormat: false, result: false }, { formatVersion: '19923.1.0', document: {}, existsFormat: false, result: false }, { formatVersion: '2.99.0', document: {}, existsFormat: false, result: false }, From 3fa3290ebae97e24cad2e21577946d9d6e266f5c Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Wed, 9 Aug 2023 13:15:54 +0200 Subject: [PATCH 078/126] feat: enable AsyncAPI v3 validation (#825) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Maciej Urbańczyk --- src/ruleset/functions/documentStructure.ts | 60 ++++++++++--- src/ruleset/ruleset.ts | 7 +- .../custom-operations/apply-traits-v3.spec.ts | 35 +++++--- test/parse.spec.ts | 4 +- .../rules/asyncapi-document-resolved.spec.ts | 89 ++++++++++++++++++- .../asyncapi-document-unresolved.spec.ts | 45 +++++++--- 6 files changed, 197 insertions(+), 43 deletions(-) diff --git a/src/ruleset/functions/documentStructure.ts b/src/ruleset/functions/documentStructure.ts index a00268d25..2b8db6e96 100644 --- a/src/ruleset/functions/documentStructure.ts +++ b/src/ruleset/functions/documentStructure.ts @@ -1,12 +1,17 @@ +/* eslint-disable sonarjs/no-duplicate-string */ + import specs from '@asyncapi/specs'; import { createRulesetFunction } from '@stoplight/spectral-core'; import { schema as schemaFn } from '@stoplight/spectral-functions'; +import { AsyncAPIFormats } from '../formats'; +import { getSemver } from '../../utils'; + import type { ErrorObject } from 'ajv'; import type { IFunctionResult, Format } from '@stoplight/spectral-core'; -import { AsyncAPIFormats } from '../formats'; type AsyncAPIVersions = keyof typeof specs.schemas; +type RawSchema = Record; function shouldIgnoreError(error: ErrorObject): boolean { return ( @@ -45,24 +50,52 @@ function prepareResults(errors: ErrorObject[]): void { } } -function getCopyOfSchema(version: AsyncAPIVersions): Record { - return JSON.parse(JSON.stringify(specs.schemas[version])) as Record; +// this is needed because some v3 object fields are expected to be only `$ref` to other objects. +// In order to validate resolved references, we modify those schemas and instead allow the definition of the object +function prepareV3ResolvedSchema(copied: any): any { + // channel object + const channelObject = copied.definitions['http://asyncapi.com/definitions/3.0.0/channel.json']; + channelObject.properties.servers.items.$ref = 'http://asyncapi.com/definitions/3.0.0/server.json'; + + // operation object + const operationSchema = copied.definitions['http://asyncapi.com/definitions/3.0.0/operation.json']; + operationSchema.properties.channel.$ref = 'http://asyncapi.com/definitions/3.0.0/channel.json'; + operationSchema.properties.messages.items.$ref = 'http://asyncapi.com/definitions/3.0.0/messageObject.json'; + + // operation reply object + const operationReplySchema = copied.definitions['http://asyncapi.com/definitions/3.0.0/operationReply.json']; + operationReplySchema.properties.channel.$ref = 'http://asyncapi.com/definitions/3.0.0/channel.json'; + operationReplySchema.properties.messages.items.$ref = 'http://asyncapi.com/definitions/3.0.0/messageObject.json'; + + return copied; +} + +function getCopyOfSchema(version: AsyncAPIVersions): RawSchema { + return JSON.parse(JSON.stringify(specs.schemas[version])) as RawSchema; } -const serializedSchemas = new Map>(); -function getSerializedSchema(version: AsyncAPIVersions): Record { - const schema = serializedSchemas.get(version); +const serializedSchemas = new Map(); +function getSerializedSchema(version: AsyncAPIVersions, resolved: boolean): RawSchema { + const serializedSchemaKey = resolved ? `${version}-resolved` : `${version}-unresolved`; + const schema = serializedSchemas.get(serializedSchemaKey as AsyncAPIVersions); if (schema) { return schema; } // Copy to not operate on the original json schema - between imports (in different modules) we operate on this same schema. - const copied = getCopyOfSchema(version) as { definitions: Record }; + let copied = getCopyOfSchema(version) as { '$id': string, definitions: RawSchema }; // Remove the meta schemas because they are already present within Ajv, and it's not possible to add duplicated schemas. delete copied.definitions['http://json-schema.org/draft-07/schema']; delete copied.definitions['http://json-schema.org/draft-04/schema']; + // Spectral caches the schemas using '$id' property + copied['$id'] = copied['$id'].replace('asyncapi.json', `asyncapi-${resolved ? 'resolved' : 'unresolved'}.json`); + + const { major } = getSemver(version); + if (resolved && major === 3) { + copied = prepareV3ResolvedSchema(copied); + } - serializedSchemas.set(version, copied); + serializedSchemas.set(serializedSchemaKey as AsyncAPIVersions, copied); return copied; } @@ -80,10 +113,10 @@ function filterRefErrors(errors: IFunctionResult[], resolved: boolean) { }); } -export function getSchema(docFormats: Set): Record | void { +export function getSchema(docFormats: Set, resolved: boolean): Record | void { for (const [version, format] of AsyncAPIFormats) { if (docFormats.has(format)) { - return getSerializedSchema(version as AsyncAPIVersions); + return getSerializedSchema(version as AsyncAPIVersions, resolved); } } } @@ -107,16 +140,17 @@ export const documentStructure = createRulesetFunction 0).toEqual(true); }); it('should return extras', async function() { diff --git a/test/ruleset/rules/asyncapi-document-resolved.spec.ts b/test/ruleset/rules/asyncapi-document-resolved.spec.ts index 7369c1d0a..b90062123 100644 --- a/test/ruleset/rules/asyncapi-document-resolved.spec.ts +++ b/test/ruleset/rules/asyncapi-document-resolved.spec.ts @@ -15,7 +15,7 @@ testRule('asyncapi-document-resolved', [ }, { - name: 'invalid case (channels property is missing)', + name: 'invalid case for 2.X.X (channels property is missing)', document: { asyncapi: '2.0.0', info: { @@ -32,7 +32,7 @@ testRule('asyncapi-document-resolved', [ }, { - name: 'valid case (case when other errors should also occur but we filter them out)', + name: 'valid case for 2.X.X (case validating $ref resolution works as expected)', document: { asyncapi: '2.0.0', info: { @@ -309,4 +309,89 @@ testRule('asyncapi-document-resolved', [ }, errors: [], }, + + { + name: 'valid case (3.0.0 version)', + document: { + asyncapi: '3.0.0', + info: { + title: 'Signup service example (internal)', + version: '0.1.0', + }, + channels: { + 'user/signedup': { + address: 'user/signedup', + messages: { + 'subscribe.message': { + payload: {} + } + } + } + }, + operations: { + 'user/signedup.subscribe': { + action: 'send', + channel: { + address: 'user/signedup', + messages: { + 'subscribe.message': { + payload: {} + } + } + }, + messages: [ + { + payload: {} + } + ] + } + }, + }, + errors: [], + }, + + { + name: 'invalid case for 3.X.X (info.version property is missing)', + document: { + asyncapi: '3.0.0', + info: { + title: 'Valid AsyncApi document', + }, + }, + errors: [ + { + message: '"info" property must have required property "version"', + severity: DiagnosticSeverity.Error, + }, + ], + }, + + { + name: 'valid case for 3.X.X (case validating $ref resolution works as expected)', + document: { + asyncapi: '3.0.0', + info: { + title: 'Signup service example (internal)', + version: '0.1.0', + }, + channels: { + userSignedup: { + address: 'user/signedup', + messages: { + 'subscribe.message': { + $ref: '#/components/messages/testMessage' + } + } + } + }, + components: { + messages: { + testMessage: { + payload: {} + } + } + } + }, + errors: [], + }, ]); diff --git a/test/ruleset/rules/asyncapi-document-unresolved.spec.ts b/test/ruleset/rules/asyncapi-document-unresolved.spec.ts index 77876052b..91e1cdd1b 100644 --- a/test/ruleset/rules/asyncapi-document-unresolved.spec.ts +++ b/test/ruleset/rules/asyncapi-document-unresolved.spec.ts @@ -2,7 +2,7 @@ import { testRule, DiagnosticSeverity } from '../tester'; testRule('asyncapi-document-unresolved', [ { - name: 'valid case', + name: 'valid case for 2.X.X', document: { asyncapi: '2.0.0', info: { @@ -28,7 +28,7 @@ testRule('asyncapi-document-unresolved', [ }, { - name: 'invalid case (reference for operation object is not allowed)', + name: 'invalid case for 2.X.X (reference for operation object is not allowed)', document: { asyncapi: '2.0.0', info: { @@ -58,26 +58,49 @@ testRule('asyncapi-document-unresolved', [ }, { - name: 'invalid case (case when other errors should also occur but we filter them out - required info field is omitted)', + name: 'valid case for 3.X.X', document: { - asyncapi: '2.0.0', + asyncapi: '3.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, channels: { - someChannel: { - publish: { - $ref: '#/components/x-operations/someOperation', - }, + userSignedup: { + address: 'user/signedup', + messages: { + 'subscribe.message': { + $ref: '#/components/messages/testMessage' + } + } + } + }, + components: { + messages: { + someMessage: {}, }, }, + }, + errors: [], + }, + + { + name: 'invalid case for 3.X.X (reference for info object is not allowed)', + document: { + asyncapi: '3.0.0', + info: { + $ref: '#/components/x-titles/someTitle' + }, components: { - 'x-operations': { - someOperation: {}, + 'x-titles': { + someTitle: 'some-title', }, }, }, errors: [ { message: 'Referencing in this place is not allowed', - path: ['channels', 'someChannel', 'publish'], + path: ['info'], severity: DiagnosticSeverity.Error, }, ], From bcf7ad973aa5c2d538867d9815123fc6a2e5e4ef Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 9 Aug 2023 13:27:21 +0200 Subject: [PATCH 079/126] chore(release): v2.1.0-next-major-spec.4 (#830) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index f8c19e5e6..7a37d2f6b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.3", + "version": "2.1.0-next-major-spec.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.3", + "version": "2.1.0-next-major-spec.4", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.2", diff --git a/package.json b/package.json index 0dc1951b5..db70f5802 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.3", + "version": "2.1.0-next-major-spec.4", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From 62eda590be09d8ed84d26337bfb90bc431d4dcbe Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Thu, 10 Aug 2023 10:45:39 +0200 Subject: [PATCH 080/126] fix: add missing exports (#829) --- src/models/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/models/index.ts b/src/models/index.ts index 1161d0a38..1d094f79e 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -27,6 +27,10 @@ export * from './message'; export * from './messages'; export * from './oauth-flow'; export * from './oauth-flows'; +export * from './operation-replies'; +export * from './operation-reply-address'; +export * from './operation-reply-addresses'; +export * from './operation-reply'; export * from './operation-trait'; export * from './operation-traits'; export * from './operation'; @@ -42,4 +46,4 @@ export * from './server-variables'; export * from './server'; export * from './servers'; export * from './tag'; -export * from './tags'; \ No newline at end of file +export * from './tags'; From 0ae86fb29b54dafeb791e29dc5b48c07138c59f0 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 10 Aug 2023 10:56:29 +0200 Subject: [PATCH 081/126] chore(release): v2.1.0-next-major-spec.5 (#833) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7a37d2f6b..63b8edcc7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.4", + "version": "2.1.0-next-major-spec.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.4", + "version": "2.1.0-next-major-spec.5", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.2", diff --git a/package.json b/package.json index db70f5802..dde88de14 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.4", + "version": "2.1.0-next-major-spec.5", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From b82b1504f253e60d6ef1b010c0198a4db3c48661 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Thu, 10 Aug 2023 12:35:07 +0200 Subject: [PATCH 082/126] fix: add reply() to the Operation model (#834) --- src/models/operation.ts | 2 ++ src/models/v2/operation.ts | 5 +++++ test/models/v2/operation.spec.ts | 8 ++++++++ 3 files changed, 15 insertions(+) diff --git a/src/models/operation.ts b/src/models/operation.ts index 1bb372296..6a92b9c8a 100644 --- a/src/models/operation.ts +++ b/src/models/operation.ts @@ -1,6 +1,7 @@ import type { BaseModel } from './base'; import type { ChannelsInterface } from './channels'; import type { MessagesInterface } from './messages'; +import type { OperationReplyInterface } from './operation-reply'; import type { OperationTraitsInterface } from './operation-traits'; import type { OperationTraitInterface } from './operation-trait'; import type { ServersInterface } from './servers'; @@ -14,5 +15,6 @@ export interface OperationInterface extends BaseModel, OperationTraitInterface { servers(): ServersInterface; channels(): ChannelsInterface; messages(): MessagesInterface; + reply(): OperationReplyInterface | undefined; traits(): OperationTraitsInterface; } diff --git a/src/models/v2/operation.ts b/src/models/v2/operation.ts index b1193ddef..4fb696d74 100644 --- a/src/models/v2/operation.ts +++ b/src/models/v2/operation.ts @@ -12,6 +12,7 @@ import type { ChannelsInterface } from '../channels'; import type { ChannelInterface } from '../channel'; import type { MessagesInterface } from '../messages'; import type { OperationInterface, OperationAction } from '../operation'; +import type { OperationReplyInterface } from '../operation-reply'; import type { OperationTraitsInterface } from '../operation-traits'; import type { ServersInterface } from '../servers'; import type { ServerInterface } from '../server'; @@ -76,6 +77,10 @@ export class Operation extends OperationTrait implements Ope ); } + reply(): OperationReplyInterface | undefined { + return; + } + traits(): OperationTraitsInterface { return new OperationTraits( (this._json.traits || []).map((trait: any, index: number) => { diff --git a/test/models/v2/operation.spec.ts b/test/models/v2/operation.spec.ts index bed03a14f..ee076aba4 100644 --- a/test/models/v2/operation.spec.ts +++ b/test/models/v2/operation.spec.ts @@ -179,6 +179,14 @@ describe('Operation model', function() { }); }); + describe('.reply()', function() { + it('should return always undefined as it is not a feature part of v2', function() { + const doc = { reply: {} }; + const d = new Operation(doc); + expect(d.reply()).toBeUndefined(); + }); + }); + describe('.traits()', function() { it('should return collection of traits', function() { const doc = { traits: [{ operationId: '...' }] }; From bc83777b33da5507f5d119f605acb7610d8a2a0b Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 10 Aug 2023 12:47:40 +0200 Subject: [PATCH 083/126] chore(release): v2.1.0-next-major-spec.6 (#835) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 63b8edcc7..7798beaaa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.5", + "version": "2.1.0-next-major-spec.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.5", + "version": "2.1.0-next-major-spec.6", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.2", diff --git a/package.json b/package.json index dde88de14..59e858365 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.5", + "version": "2.1.0-next-major-spec.6", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From 933be1d691fb8f3d098d50ce611ff25baf4c3dcb Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Thu, 10 Aug 2023 18:14:26 +0200 Subject: [PATCH 084/126] fix: return proper schemas in asyncapi.schemas() method (#836) --- src/models/v3/asyncapi.ts | 2 +- test/models/v3/asyncapi.spec.ts | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/models/v3/asyncapi.ts b/src/models/v3/asyncapi.ts index 4e3dad044..40f7dbf4f 100644 --- a/src/models/v3/asyncapi.ts +++ b/src/models/v3/asyncapi.ts @@ -90,7 +90,7 @@ export class AsyncAPIDocument extends BaseModel implements As } schemas() { - return null as any; + return this.__schemas(false); } securitySchemes(): SecuritySchemesInterface { diff --git a/test/models/v3/asyncapi.spec.ts b/test/models/v3/asyncapi.spec.ts index 62c6b0e76..db3b41d2d 100644 --- a/test/models/v3/asyncapi.spec.ts +++ b/test/models/v3/asyncapi.spec.ts @@ -4,6 +4,7 @@ import { Components } from '../../../src/models/v3/components'; import { Info } from '../../../src/models/v3/info'; import { Messages } from '../../../src/models/v3/messages'; import { Operations } from '../../../src/models/v3/operations'; +import { Schemas } from '../../../src/models/v3/schemas'; import { SecuritySchemes } from '../../../src/models/v3/security-schemes'; import { Servers } from '../../../src/models/v3/servers'; @@ -127,7 +128,25 @@ describe('AsyncAPIDocument model', function() { }); describe('.schemas()', function() { - it.todo('should return a collection of schemas'); + it('should return a collection of schemas', function() { + const doc = serializeInput({ channels: { userSignup: { address: 'user/signup', messages: { someMessage1: { payload: {}}, someMessage2: { payload: {} } } }, userLogout: { address: 'user/logout', messages: { someMessage3WithoutPayload: {} } } } }); + const d = new AsyncAPIDocument(doc); + expect(d.schemas()).toBeInstanceOf(Schemas); + expect(d.schemas()).toHaveLength(2); + }); + + it('should return only an "used" schemas (without schemas from components)', function() { + const doc = serializeInput({ channels: { userSignup: { address: 'user/signup', messages: { someMessage1: { payload: {}}, someMessage2: { payload: {} } } } }, components: { schemas: { schemaOne: {}, schemaTwo: {} } } }); + const d = new AsyncAPIDocument(doc); + expect(d.schemas()).toBeInstanceOf(Schemas); + expect(d.schemas()).toHaveLength(2); + }); + + it('should return a collection of schemas even if collection is empty', function() { + const doc = serializeInput({}); + const d = new AsyncAPIDocument(doc); + expect(d.schemas()).toBeInstanceOf(Schemas); + }); }); describe('.securitySchemes()', function() { From b34825c828580bb59b1ccae83da35851fe642e05 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 10 Aug 2023 22:20:18 +0200 Subject: [PATCH 085/126] chore(release): v2.1.0-next-major-spec.7 (#839) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7798beaaa..9a7ee6909 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.6", + "version": "2.1.0-next-major-spec.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.6", + "version": "2.1.0-next-major-spec.7", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.2", diff --git a/package.json b/package.json index 59e858365..94e88ec09 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.6", + "version": "2.1.0-next-major-spec.7", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From af2a2b6699652d1835dd1af51916ca343e2cd9cb Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Fri, 11 Aug 2023 10:57:59 +0200 Subject: [PATCH 086/126] feat: update specs dependency (#840) Co-authored-by: Sergio Moya <1083296+smoya@users.noreply.github.com> --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9a7ee6909..8a9b0ff9c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "2.1.0-next-major-spec.7", "license": "Apache-2.0", "dependencies": { - "@asyncapi/specs": "^6.0.0-next-major-spec.2", + "@asyncapi/specs": "^6.0.0-next-major-spec.6", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json-ref-resolver": "^3.1.5", "@stoplight/spectral-core": "^1.16.1", @@ -79,9 +79,9 @@ } }, "node_modules/@asyncapi/specs": { - "version": "6.0.0-next-major-spec.2", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.0.0-next-major-spec.2.tgz", - "integrity": "sha512-kKFdVZkWnkmcNWADg3lt9AExM9jGGpAIrUcIYSbHNSSQgjZC6rr0urqctAaXXtBVrJNBI9LNG/Us70R/0MOLbw==", + "version": "6.0.0-next-major-spec.6", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.0.0-next-major-spec.6.tgz", + "integrity": "sha512-xYiXZetKiAZgZoh2q/sxt+Ceg8bLTK/WSCwtLvlH7JgnjpnOEtCDwKszijmmOJEYdGVSrj0OFXLPrg/dm4JANw==", "dependencies": { "@types/json-schema": "^7.0.11" } @@ -11116,9 +11116,9 @@ } }, "@asyncapi/specs": { - "version": "6.0.0-next-major-spec.2", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.0.0-next-major-spec.2.tgz", - "integrity": "sha512-kKFdVZkWnkmcNWADg3lt9AExM9jGGpAIrUcIYSbHNSSQgjZC6rr0urqctAaXXtBVrJNBI9LNG/Us70R/0MOLbw==", + "version": "6.0.0-next-major-spec.6", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.0.0-next-major-spec.6.tgz", + "integrity": "sha512-xYiXZetKiAZgZoh2q/sxt+Ceg8bLTK/WSCwtLvlH7JgnjpnOEtCDwKszijmmOJEYdGVSrj0OFXLPrg/dm4JANw==", "requires": { "@types/json-schema": "^7.0.11" } diff --git a/package.json b/package.json index 94e88ec09..ea33a6029 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "prepublishOnly": "npm run generate:assets" }, "dependencies": { - "@asyncapi/specs": "^6.0.0-next-major-spec.2", + "@asyncapi/specs": "^6.0.0-next-major-spec.6", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json-ref-resolver": "^3.1.5", "@stoplight/spectral-core": "^1.16.1", From ab4bad3eafb7827ba8d605717b870303b5225a54 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Fri, 11 Aug 2023 11:07:39 +0200 Subject: [PATCH 087/126] chore(release): v2.1.0-next-major-spec.8 (#841) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8a9b0ff9c..6981624e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.7", + "version": "2.1.0-next-major-spec.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.7", + "version": "2.1.0-next-major-spec.8", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.6", diff --git a/package.json b/package.json index ea33a6029..c99b36680 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.7", + "version": "2.1.0-next-major-spec.8", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From d04b871af71627be7e582d9aaa1c1019a2ae7b5b Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Fri, 11 Aug 2023 12:25:31 +0200 Subject: [PATCH 088/126] fix: include all channels in message.channels() (#842) --- src/models/v3/message.ts | 19 +++- test/models/v3/message.spec.ts | 190 +++++++++++++++++---------------- 2 files changed, 111 insertions(+), 98 deletions(-) diff --git a/src/models/v3/message.ts b/src/models/v3/message.ts index ce05a9e3d..123079927 100644 --- a/src/models/v3/message.ts +++ b/src/models/v3/message.ts @@ -1,3 +1,4 @@ +import { Channel } from './channel'; import { Channels } from './channels'; import { Operations } from './operations'; import { Operation } from './operation'; @@ -58,16 +59,26 @@ export class Message extends MessageTrait implements MessageIn channels(): ChannelsInterface { const channels: ChannelInterface[] = []; - const channelData: any[] = []; + const channelsData: any[] = []; this.operations().forEach(operation => { operation.channels().forEach(channel => { - const channelsData = channel.json(); - if (!channelData.includes(channelsData)) { - channelData.push(channelsData); + const channelData = channel.json(); + // Comparing with the data (JSON) because same channel could exist but it will include the ID based on where it is declared. For example, asyncapi.channels contain ID field. + if (!channelsData.includes(channelData)) { + channelsData.push(channelData); channels.push(channel); } }); }); + + Object.entries((this._meta.asyncapi?.parsed as v3.AsyncAPIObject)?.channels || {}).forEach(([channelId, channelData]) => { + const channelModel = this.createModel(Channel, channelData as v3.ChannelObject, { id: channelId, pointer: `/channels/${channelId}` }); + if (!channelsData.includes(channelData) && channelModel.messages().some(m => m.json() === this._json)) { + channelsData.push(channelData); + channels.push(channelModel); + } + }); + return new Channels(channels); } diff --git a/test/models/v3/message.spec.ts b/test/models/v3/message.spec.ts index 91432f36d..3bcca68d0 100644 --- a/test/models/v3/message.spec.ts +++ b/test/models/v3/message.spec.ts @@ -1,7 +1,13 @@ +import { Channel } from '../../../src/models/v3/channel'; +import { Channels } from '../../../src/models/v3/channels'; import { Message } from '../../../src/models/v3/message'; import { MessageTraits } from '../../../src/models/v3/message-traits'; import { MessageTrait } from '../../../src/models/v3/message-trait'; import { Schema } from '../../../src/models/v3/schema'; +import { Servers } from '../../../src/models/v3/servers'; +import { Server } from '../../../src/models/v3/server'; +import { Operations } from '../../../src/models/v3/operations'; +import { Operation } from '../../../src/models/v3/operation'; import { assertCoreModel } from './utils'; @@ -71,100 +77,96 @@ describe('Message model', function() { }); }); - // describe('.servers()', function() { - // it('should return collection of servers - available on all servers', function() { - // const doc = {}; - // const d = new Message(doc, { asyncapi: { parsed: { servers: { production: {}, development: {} }, channels: { 'user/signup': { publish: { message: doc } } } } } as any, pointer: '', id: 'message' }); - // expect(d.servers()).toBeInstanceOf(Servers); - // expect(d.servers().all()).toHaveLength(2); - // expect(d.servers().all()[0]).toBeInstanceOf(Server); - // expect(d.servers().all()[0].id()).toEqual('production'); - // expect(d.servers().all()[1]).toBeInstanceOf(Server); - // expect(d.servers().all()[1].id()).toEqual('development'); - // }); - - // it('should return collection of servers - available on selected servers', function() { - // const doc = {}; - // const d = new Message(doc, { asyncapi: { parsed: { servers: { production: {}, development: {} }, channels: { 'user/signup': { publish: { message: doc }, servers: ['production'] } } } } as any, pointer: '', id: 'message' }); - // expect(d.servers()).toBeInstanceOf(Servers); - // expect(d.servers().all()).toHaveLength(1); - // expect(d.servers().all()[0]).toBeInstanceOf(Server); - // expect(d.servers().all()[0].id()).toEqual('production'); - // }); - - // it('should return collection of servers - do not duplicate servers', function() { - // const doc = {}; - // const d = new Message(doc, { asyncapi: { parsed: { servers: { production: {}, development: {} }, channels: { 'user/signup': { publish: { message: doc }, subscribe: { message: doc }, servers: ['production'] } } } } as any, pointer: '', id: 'message' }); - // expect(d.servers()).toBeInstanceOf(Servers); - // expect(d.servers().all()).toHaveLength(1); - // expect(d.servers().all()[0]).toBeInstanceOf(Server); - // expect(d.servers().all()[0].id()).toEqual('production'); - // }); - // }); - - // describe('.channels()', function() { - // it('should return collection of channels - single channel', function() { - // const doc = {}; - // const d = new Message(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: doc } } } } } as any, pointer: '', id: 'message' }); - // expect(d.channels()).toBeInstanceOf(Channels); - // expect(d.channels().all()).toHaveLength(1); - // expect(d.channels().all()[0]).toBeInstanceOf(Channel); - // expect(d.channels().all()[0].address()).toEqual('user/signup'); - // }); - - // it('should return collection of channels - multiple channels', function() { - // const doc = {}; - // const d = new Message(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: doc } }, 'user/logout': { subscribe: { message: doc } } } } } as any, pointer: '', id: 'message' }); - // expect(d.channels()).toBeInstanceOf(Channels); - // expect(d.channels().all()).toHaveLength(2); - // expect(d.channels().all()[0]).toBeInstanceOf(Channel); - // expect(d.channels().all()[0].address()).toEqual('user/signup'); - // expect(d.channels().all()[1]).toBeInstanceOf(Channel); - // expect(d.channels().all()[1].address()).toEqual('user/logout'); - // }); - - // it('should return collection of channels - do not duplicate channels', function() { - // const doc = {}; - // const d = new Message(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: doc }, subscribe: { message: doc } } } } } as any, pointer: '', id: 'message' }); - // expect(d.channels()).toBeInstanceOf(Channels); - // expect(d.channels().all()).toHaveLength(1); - // expect(d.channels().all()[0]).toBeInstanceOf(Channel); - // expect(d.channels().all()[0].address()).toEqual('user/signup'); - // }); - // }); - - // describe('.operations()', function() { - // it('should return collection of operations - single operation', function() { - // const doc = {}; - // const d = new Message(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: doc } } } } } as any, pointer: '', id: 'message' }); - // expect(d.operations()).toBeInstanceOf(Operations); - // expect(d.operations().all()).toHaveLength(1); - // expect(d.operations().all()[0]).toBeInstanceOf(Operation); - // expect(d.operations().all()[0].action()).toEqual('publish'); - // }); - - // it('should return collection of operations - multiple operations', function() { - // const doc = {}; - // const d = new Message(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: doc }, subscribe: { message: doc } } } } } as any, pointer: '', id: 'message' }); - // expect(d.operations()).toBeInstanceOf(Operations); - // expect(d.operations().all()).toHaveLength(2); - // expect(d.operations().all()[0]).toBeInstanceOf(Operation); - // expect(d.operations().all()[0].action()).toEqual('subscribe'); - // expect(d.operations().all()[1]).toBeInstanceOf(Operation); - // expect(d.operations().all()[1].action()).toEqual('publish'); - // }); - - // it('should return collection of operations - multiple operations on different channels', function() { - // const doc = {}; - // const d = new Message(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: doc } }, 'user/logout': { subscribe: { message: doc } } } } } as any, pointer: '', id: 'message' }); - // expect(d.operations()).toBeInstanceOf(Operations); - // expect(d.operations().all()).toHaveLength(2); - // expect(d.operations().all()[0]).toBeInstanceOf(Operation); - // expect(d.operations().all()[0].action()).toEqual('publish'); - // expect(d.operations().all()[1]).toBeInstanceOf(Operation); - // expect(d.operations().all()[1].action()).toEqual('subscribe'); - // }); - // }); + describe('.servers()', function() { + it('should return collection of servers - available on all servers', function() { + const doc = {}; + const serverProduction = {host: 'mqtt://myhost.io', protocol: 'mqtt'}; + const serverDevelopment = {host: 'mqtt://dev.myhost.io', protocol: 'mqtt'}; + const channel = { }; // no channels assigned, means all channels are related + const d = new Message(doc, { asyncapi: { parsed: { servers: { production: serverProduction, development: serverDevelopment, demo: {} }, channels: { userSignedUp: channel }, operations: { userSignUp: { action: 'send', messages: [doc], channel } } } } as any, pointer: '', id: 'message' }); + + expect(d.servers()).toBeInstanceOf(Servers); + expect(d.servers().all()).toHaveLength(3); + expect(d.servers().all()[0]).toBeInstanceOf(Server); + expect(d.servers().all()[0].id()).toEqual('production'); + expect(d.servers().all()[1]).toBeInstanceOf(Server); + expect(d.servers().all()[1].id()).toEqual('development'); + expect(d.servers().all()[2]).toBeInstanceOf(Server); + expect(d.servers().all()[2].id()).toEqual('demo'); + }); + + it('should return collection of servers - available on selected servers', function() { + const doc = {}; + const serverProduction = {host: 'mqtt://myhost.io', protocol: 'mqtt'}; + const serverDevelopment = {host: 'mqtt://dev.myhost.io', protocol: 'mqtt'}; + const channel = { servers: [serverProduction, serverDevelopment]}; // selecting 2 of the 3 servers + const d = new Message(doc, { asyncapi: { parsed: { servers: { production: serverProduction, development: serverDevelopment, demo: {} }, channels: { userSignedUp: channel }, operations: { userSignUp: { action: 'send', messages: [doc], channel } } } } as any, pointer: '', id: 'message' }); + + expect(d.servers()).toBeInstanceOf(Servers); + expect(d.servers().all()).toHaveLength(2); + expect(d.servers().all()[0]).toBeInstanceOf(Server); + expect(d.servers().all()[0].id()).toEqual('production'); + expect(d.servers().all()[1]).toBeInstanceOf(Server); + expect(d.servers().all()[1].id()).toEqual('development'); + }); + }); + + describe('.channels()', function() { + it('should return collection of channels - single channel', function() { + const doc = {}; + const channel = {address: 'user/signup', messages: { messageOne: doc }}; + const d = new Message(doc, { asyncapi: { parsed: {channels: { userSignUp: channel } } } as any, pointer: '', id: 'message' }); + expect(d.channels()).toBeInstanceOf(Channels); + expect(d.channels().all()).toHaveLength(1); + expect(d.channels().all()[0]).toBeInstanceOf(Channel); + expect(d.channels().all()[0].address()).toEqual('user/signup'); + }); + + it('should return collection of channels - multiple channels', function() { + const doc = {}; + const channelOne = {address: 'user/signup', messages: { messageOne: doc }}; + const channelTwo = {address: 'user/logout', messages: { messageOne: doc }}; + const d = new Message(doc, { asyncapi: { parsed: {channels: { userSignUp: channelOne, userLogOut: channelTwo } } } as any, pointer: '', id: 'message' }); + expect(d.channels()).toBeInstanceOf(Channels); + expect(d.channels().all()).toHaveLength(2); + expect(d.channels().all()[0]).toBeInstanceOf(Channel); + expect(d.channels().all()[0].address()).toEqual('user/signup'); + expect(d.channels().all()[1]).toBeInstanceOf(Channel); + expect(d.channels().all()[1].address()).toEqual('user/logout'); + }); + + it('should return collection of channels - do not duplicate channels', function() { + const doc = {}; + const channel = {address: 'user/signup', messages: { messageOne: doc }}; + const d = new Message(doc, { asyncapi: { parsed: {channels: { userSignUp: channel }, operations: { userSignUp: { action: 'send', messages: [doc], channel } } } } as any, pointer: '', id: 'message' }); + expect(d.channels()).toBeInstanceOf(Channels); + expect(d.channels().all()).toHaveLength(1); + expect(d.channels().all()[0]).toBeInstanceOf(Channel); + expect(d.channels().all()[0].address()).toEqual('user/signup'); + }); + }); + + describe('.operations()', function() { + it('should return collection of operations - single operation', function() { + const doc = {}; + const d = new Message(doc, { asyncapi: { parsed: { operations: { userSignUp: { action: 'send', messages: [doc] } } } } as any, pointer: '', id: 'message' }); + expect(d.operations()).toBeInstanceOf(Operations); + expect(d.operations().all()).toHaveLength(1); + expect(d.operations().all()[0]).toBeInstanceOf(Operation); + expect(d.operations().all()[0].id()).toEqual('userSignUp'); + }); + + it('should return collection of operations - multiple operations', function() { + const doc = {}; + const d = new Message(doc, { asyncapi: { parsed: { operations: { userSignUp: { action: 'send', messages: [doc] }, userLogOut: { action: 'send', messages: [doc] } } } } as any, pointer: '', id: 'message' }); + expect(d.operations()).toBeInstanceOf(Operations); + expect(d.operations().all()).toHaveLength(2); + expect(d.operations().all()[0]).toBeInstanceOf(Operation); + expect(d.operations().all()[0].id()).toEqual('userSignUp'); + expect(d.operations().all()[1]).toBeInstanceOf(Operation); + expect(d.operations().all()[1].id()).toEqual('userLogOut'); + }); + }); describe('.traits()', function() { it('should return collection of traits', function() { From 2846ee593778594af66053e77f8759c41837bc75 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Fri, 11 Aug 2023 12:37:05 +0200 Subject: [PATCH 089/126] chore(release): v2.1.0-next-major-spec.9 (#843) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6981624e0..838334a4a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.8", + "version": "2.1.0-next-major-spec.9", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.8", + "version": "2.1.0-next-major-spec.9", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.6", diff --git a/package.json b/package.json index c99b36680..3d86dde61 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.8", + "version": "2.1.0-next-major-spec.9", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From 52597affcc1db33c8a09dfa0b4afb02e1cf0a6e0 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 17 Aug 2023 10:58:19 +0200 Subject: [PATCH 090/126] chore(release): v2.2.0-next-major-spec.1 (#846) --- package-lock.json | 24 ++++++++++++++++++++++-- package.json | 2 +- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2286e2b8b..6f19bd1de 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.9", + "version": "2.2.0-next-major-spec.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.9", + "version": "2.2.0-next-major-spec.1", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.6", @@ -115,6 +115,15 @@ "webapi-parser": "^0.5.0" } }, + "node_modules/@asyncapi/parser/node_modules/@asyncapi/specs": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-5.1.0.tgz", + "integrity": "sha512-yffhETqehkim43luMnPKOwzY0D0YtU4bKpORIXIaid6p5Y5kDLrMGJaEPkNieQp03HMjhjFrnUPtT8kvqe0+aQ==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.11" + } + }, "node_modules/@asyncapi/specs": { "version": "6.0.0-next-major-spec.6", "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.0.0-next-major-spec.6.tgz", @@ -11186,6 +11195,17 @@ "node-fetch": "2.6.7", "ramldt2jsonschema": "^1.2.3", "webapi-parser": "^0.5.0" + }, + "dependencies": { + "@asyncapi/specs": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-5.1.0.tgz", + "integrity": "sha512-yffhETqehkim43luMnPKOwzY0D0YtU4bKpORIXIaid6p5Y5kDLrMGJaEPkNieQp03HMjhjFrnUPtT8kvqe0+aQ==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.11" + } + } } }, "@asyncapi/specs": { diff --git a/package.json b/package.json index 04866d8d6..a4e1419e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "2.1.0-next-major-spec.9", + "version": "2.2.0-next-major-spec.1", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From 98aa4dbcc53328c85700be4df3b49be05c414cb7 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Thu, 17 Aug 2023 13:50:54 +0200 Subject: [PATCH 091/126] docs: state support for parser-api v2 in compatibility matrix (#845) --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 015f1ce4a..7dcf99ff9 100644 --- a/README.md +++ b/README.md @@ -214,9 +214,10 @@ Parser-JS API implements a global API definition for all AsyncAPI parser impleme The following table shows a compatibility matrix between this parser, and the [Parser-API](https://github.com/asyncapi/parser-api), as well as the AsyncAPI spec version supported by each release of this parser. -| Parser-JS | Parser-API | Spec 2.x | -|-----------|----------------------------------------------------------------------|----------| -| 2.x | [1.x](https://github.com/asyncapi/parser-api/blob/master/docs/v1.md) | ✓ | +| Parser-JS | Parser-API | Spec 2.x | Spec 3.x | +|-----------|-----------------------------------------------------------------------|----------|----------| +| 2.x | [1.x](https://github.com/asyncapi/parser-api/blob/v1.0.0/docs/v1.md) | ✓ | | +| 3.x | [2.x](https://github.com/asyncapi/parser-api/blob/v2.0.0/docs/api.md) | ✓ | ✓ | - `✓` Fully supported version. - `-` The AsyncAPI Spec version has features the Parser-JS can't use but the rest are fully supported. From 95b6e5e852451625385b5df6223200575771c83b Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Fri, 18 Aug 2023 14:21:42 +0200 Subject: [PATCH 092/126] fix: set proper parser-api version (#849) --- src/models/asyncapi.ts | 3 +++ src/parse.ts | 4 ++-- test/parse.spec.ts | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/models/asyncapi.ts b/src/models/asyncapi.ts index 4db88b30c..6f85dc575 100644 --- a/src/models/asyncapi.ts +++ b/src/models/asyncapi.ts @@ -11,6 +11,9 @@ import type { ServersInterface } from './servers'; import type { v2, v3 } from '../spec-types'; +// https://github.com/asyncapi/parser-api/releases/tag/v2.0.0 +export const ParserAPIVersion = '2.0.0'; + export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInterface { version(): string; defaultContentType(): string | undefined; diff --git a/src/parse.ts b/src/parse.ts index c743cf7dd..988f9ae51 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -1,4 +1,4 @@ -import { AsyncAPIDocumentInterface } from './models'; +import { AsyncAPIDocumentInterface, ParserAPIVersion } from './models'; import { customOperations } from './custom-operations'; import { validate } from './validate'; @@ -61,7 +61,7 @@ export async function parse(parser: Parser, spectral: Spectral, asyncapi: Input, const detailed = createDetailedAsyncAPI(validatedDoc, asyncapi as DetailedAsyncAPI['input'], options.source); const document = createAsyncAPIDocument(detailed); setExtension(xParserSpecParsed, true, document); - setExtension(xParserApiVersion, 1, document); + setExtension(xParserApiVersion, ParserAPIVersion, document); await customOperations(parser, document, detailed, inventory, options); return { diff --git a/test/parse.spec.ts b/test/parse.spec.ts index e8c941c57..d7cf4fde7 100644 --- a/test/parse.spec.ts +++ b/test/parse.spec.ts @@ -1,6 +1,6 @@ import { Document } from '@stoplight/spectral-core'; -import { AsyncAPIDocumentV2, AsyncAPIDocumentV3 } from '../src/models'; +import { AsyncAPIDocumentV2, AsyncAPIDocumentV3, ParserAPIVersion } from '../src/models'; import { Parser } from '../src/parser'; import { xParserApiVersion } from '../src/constants'; @@ -92,7 +92,7 @@ describe('parse()', function() { const { document } = await parser.parse(documentRaw); expect(document).toBeInstanceOf(AsyncAPIDocumentV2); - expect(document?.extensions().get(xParserApiVersion)?.value()).toEqual(1); + expect(document?.extensions().get(xParserApiVersion)?.value()).toEqual(ParserAPIVersion); }); it('should preserve references', async function() { From 5d0705c16c4ceef2321fccc4abdd6d32587cf76f Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Fri, 18 Aug 2023 14:33:09 +0200 Subject: [PATCH 093/126] chore(release): v2.2.0-next-major-spec.2 (#850) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6f19bd1de..1df943e44 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "2.2.0-next-major-spec.1", + "version": "2.2.0-next-major-spec.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "2.2.0-next-major-spec.1", + "version": "2.2.0-next-major-spec.2", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.6", diff --git a/package.json b/package.json index a4e1419e1..c0397b71e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "2.2.0-next-major-spec.1", + "version": "2.2.0-next-major-spec.2", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From 6526d9a7c57c07a7d06586b21b003c66207a1d6a Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Wed, 23 Aug 2023 11:28:20 +0200 Subject: [PATCH 094/126] feat!: force v3 pre-release (#847) From 49183a47d86350bf21fabb314fc3bd9e0581703c Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 23 Aug 2023 11:38:46 +0200 Subject: [PATCH 095/126] chore(release): v3.0.0-next-major-spec.1 (#851) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1df943e44..46d24c416 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "2.2.0-next-major-spec.2", + "version": "3.0.0-next-major-spec.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "2.2.0-next-major-spec.2", + "version": "3.0.0-next-major-spec.1", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.6", diff --git a/package.json b/package.json index c0397b71e..a161082d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "2.2.0-next-major-spec.2", + "version": "3.0.0-next-major-spec.1", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From 58fdca30bbe7a71d56ee81d9edf9aee37ae88ea4 Mon Sep 17 00:00:00 2001 From: Khuda Dad Nomani <32505158+KhudaDad414@users.noreply.github.com> Date: Fri, 1 Sep 2023 09:09:49 +0100 Subject: [PATCH 096/126] fix: resolve type mismatch in allServers and allChannels (#854) --- src/models/v2/asyncapi.ts | 4 +- src/models/v3/asyncapi.ts | 15 ++-- test/models/v2/asyncapi.spec.ts | 11 +++ test/models/v3/asyncapi.spec.ts | 125 ++++++++++++++++++++++++++++++++ 4 files changed, 145 insertions(+), 10 deletions(-) diff --git a/src/models/v2/asyncapi.ts b/src/models/v2/asyncapi.ts index 5c1359c9e..c7329c1b6 100644 --- a/src/models/v2/asyncapi.ts +++ b/src/models/v2/asyncapi.ts @@ -97,7 +97,7 @@ export class AsyncAPIDocument extends BaseModel implements As } allServers(): ServersInterface { - const servers: ServerInterface[] = this.servers(); + const servers: ServerInterface[] = this.servers().all(); this.components().servers().forEach(server => !servers.some(s => s.json() === server.json()) && servers.push(server) ); @@ -105,7 +105,7 @@ export class AsyncAPIDocument extends BaseModel implements As } allChannels(): ChannelsInterface { - const channels: ChannelInterface[] = this.channels(); + const channels: ChannelInterface[] = this.channels().all(); this.components().channels().forEach(channel => !channels.some(c => c.json() === channel.json()) && channels.push(channel) ); diff --git a/src/models/v3/asyncapi.ts b/src/models/v3/asyncapi.ts index 40f7dbf4f..09bb14aa0 100644 --- a/src/models/v3/asyncapi.ts +++ b/src/models/v3/asyncapi.ts @@ -106,7 +106,7 @@ export class AsyncAPIDocument extends BaseModel implements As } allServers(): ServersInterface { - const servers: ServerInterface[] = this.servers(); + const servers: ServerInterface[] = this.servers().all(); this.components().servers().forEach(server => !servers.some(s => s.json() === server.json()) && servers.push(server) ); @@ -114,7 +114,7 @@ export class AsyncAPIDocument extends BaseModel implements As } allChannels(): ChannelsInterface { - const channels: ChannelInterface[] = this.channels(); + const channels: ChannelInterface[] = this.channels().all(); this.components().channels().forEach(channel => !channels.some(c => c.json() === channel.json()) && channels.push(channel) ); @@ -122,16 +122,15 @@ export class AsyncAPIDocument extends BaseModel implements As } allOperations(): OperationsInterface { - const operations: OperationInterface[] = []; - this.allChannels().forEach(channel => operations.push(...channel.operations())); + const operations: OperationInterface[] = this.operations().all(); + this.components().operations().forEach(operation => + !operations.some(o => o.json() === operation.json()) && operations.push(operation) + ); return new Operations(operations); } allMessages(): MessagesInterface { - const messages: MessageInterface[] = []; - this.allOperations().forEach(operation => operation.messages().forEach(message => ( - !messages.some(m => m.json() === message.json()) && messages.push(message) - ))); + const messages: MessageInterface[] = this.messages().all(); this.components().messages().forEach(message => ( !messages.some(m => m.json() === message.json()) && messages.push(message) )); diff --git a/test/models/v2/asyncapi.spec.ts b/test/models/v2/asyncapi.spec.ts index 71e4e6ce1..7f89795ae 100644 --- a/test/models/v2/asyncapi.spec.ts +++ b/test/models/v2/asyncapi.spec.ts @@ -7,6 +7,7 @@ import { Operations } from '../../../src/models/v2/operations'; import { Schemas } from '../../../src/models/v2/schemas'; import { SecuritySchemes } from '../../../src/models/v2/security-schemes'; import { Servers } from '../../../src/models/v2/servers'; +import { Collection } from '../../../src/models'; import { serializeInput, assertExtensions } from './utils'; @@ -189,6 +190,8 @@ describe('AsyncAPIDocument model', function() { const doc = serializeInput({ servers: { development: {} } }); const d = new AsyncAPIDocument(doc); expect(d.allServers()).toBeInstanceOf(Servers); + expect(d.allServers().all()).toBeInstanceOf(Array); + expect(d.allServers().all()).not.toBeInstanceOf(Collection); expect(d.allServers()).toHaveLength(1); expect(d.allServers().all()[0].id()).toEqual('development'); }); @@ -212,6 +215,8 @@ describe('AsyncAPIDocument model', function() { const doc = serializeInput({ channels: { 'user/signup': {} } }); const d = new AsyncAPIDocument(doc); expect(d.allChannels()).toBeInstanceOf(Channels); + expect(d.allChannels().all()).not.toBeInstanceOf(Collection); + expect(d.allChannels().all()).toBeInstanceOf(Array); expect(d.allChannels()).toHaveLength(1); expect(d.allChannels().all()[0].address()).toEqual('user/signup'); }); @@ -235,6 +240,8 @@ describe('AsyncAPIDocument model', function() { const doc = serializeInput({ channels: { 'user/signup': { publish: {}, subscribe: {} }, 'user/logout': { publish: {} } } }); const d = new AsyncAPIDocument(doc); expect(d.allOperations()).toBeInstanceOf(Operations); + expect(d.allOperations().all()).toBeInstanceOf(Array); + expect(d.allOperations().all()).not.toBeInstanceOf(Collection); expect(d.allOperations()).toHaveLength(3); }); @@ -257,6 +264,8 @@ describe('AsyncAPIDocument model', function() { it('should return a collection of messages', function() { const doc = serializeInput({ channels: { 'user/signup': { publish: { message: {} }, subscribe: { message: { oneOf: [{}, {}] } } }, 'user/logout': { publish: { message: {} } } } }); const d = new AsyncAPIDocument(doc); + expect(d.allMessages().all()).toBeInstanceOf(Array); + expect(d.allMessages().all()).not.toBeInstanceOf(Collection); expect(d.allMessages()).toBeInstanceOf(Messages); expect(d.allMessages()).toHaveLength(4); }); @@ -282,6 +291,8 @@ describe('AsyncAPIDocument model', function() { const doc = serializeInput({ channels: { 'user/signup': { publish: { message: { payload: {} } }, subscribe: { message: { oneOf: [{ payload: {} }, {}, { payload: {} }] } } }, 'user/logout': { publish: { message: { payload: {} } } } } }); const d = new AsyncAPIDocument(doc); expect(d.allSchemas()).toBeInstanceOf(Schemas); + expect(d.allSchemas().all()).toBeInstanceOf(Array); + expect(d.allSchemas().all()).not.toBeInstanceOf(Collection); expect(d.allSchemas()).toHaveLength(4); }); diff --git a/test/models/v3/asyncapi.spec.ts b/test/models/v3/asyncapi.spec.ts index db3b41d2d..c326796cc 100644 --- a/test/models/v3/asyncapi.spec.ts +++ b/test/models/v3/asyncapi.spec.ts @@ -11,6 +11,7 @@ import { Servers } from '../../../src/models/v3/servers'; import { serializeInput, assertExtensions } from './utils'; import type { v3 } from '../../../src/spec-types'; +import { Collection } from '../../../src/models'; describe('AsyncAPIDocument model', function() { describe('.version()', function() { @@ -164,6 +165,130 @@ describe('AsyncAPIDocument model', function() { }); }); + describe('.allMessages()', function() { + it('should return a collection of messages', function() { + const duplicatedMessage = {}; + const doc = serializeInput({ channels: { userSignup: { address: 'user/signup', messages: { someMessage1: {}, someMessage2: duplicatedMessage } }, userLogout: { address: 'user/logout', messages: { someMessage3: duplicatedMessage } } } }); + const d = new AsyncAPIDocument(doc); + expect(d.allMessages().all()).toBeInstanceOf(Array); + expect(d.allMessages().all()).not.toBeInstanceOf(Collection); + expect(d.allMessages()).toBeInstanceOf(Messages); + expect(d.allMessages()).toHaveLength(2); + }); + + it('should return all messages (with messages from components)', function() { + const duplicatedMessage = {}; + const doc = serializeInput({ channels: { userSignup: { address: 'user/signup', messages: { someMessage1: {}, someMessage2: duplicatedMessage } }, userLogout: { address: 'user/logout', messages: { someMessage3: duplicatedMessage } } }, components: { messages: { someMessage4: {}, someMessage5: {} } }}); + const d = new AsyncAPIDocument(doc); + expect(d.allMessages()).toBeInstanceOf(Messages); + expect(d.allMessages()).toHaveLength(4); + }); + + it('should return a collection of messages even if messages are not defined', function() { + const doc = serializeInput({}); + const d = new AsyncAPIDocument(doc); + expect(d.allMessages()).toBeInstanceOf(Messages); + }); + }); + + describe('.allSchemas()', function() { + it('should return a collection of schemas', function() { + const doc = serializeInput({ channels: { userSignup: { address: 'user/signup', messages: { someMessage1: { payload: {}}, someMessage2: { payload: {} } } }, userLogout: { address: 'user/logout', messages: { someMessage3WithoutPayload: {} } } } }); + const d = new AsyncAPIDocument(doc); + expect(d.allSchemas()).toBeInstanceOf(Schemas); + expect(d.allSchemas().all()).toBeInstanceOf(Array); + expect(d.allSchemas().all()).not.toBeInstanceOf(Collection); + expect(d.allSchemas()).toHaveLength(2); + }); + + it('should return all schemas (with schemas from components)', function() { + const doc = serializeInput({ channels: { userSignup: { address: 'user/signup', messages: { someMessage1: { payload: {}}, someMessage2: { payload: {} } } } }, components: { schemas: { schemaOne: {}, schemaTwo: {} } } }); + const d = new AsyncAPIDocument(doc); + expect(d.allSchemas()).toBeInstanceOf(Schemas); + expect(d.allSchemas()).toHaveLength(4); + }); + + it('should return a collection of schemas even if collection is empty', function() { + const doc = serializeInput({}); + const d = new AsyncAPIDocument(doc); + expect(d.allSchemas()).toBeInstanceOf(Schemas); + }); + }); + + describe('.allServers()', function() { + it('should return a collection of servers', function() { + const doc = serializeInput({ servers: { development: {} } }); + const d = new AsyncAPIDocument(doc); + expect(d.allServers()).toBeInstanceOf(Servers); + expect(d.allServers().all()).toBeInstanceOf(Array); + expect(d.allServers().all()).not.toBeInstanceOf(Collection); + expect(d.allServers()).toHaveLength(1); + expect(d.allServers().all()[0].id()).toEqual('development'); + }); + + it('should return all servers (with servers from components)', function() { + const doc = serializeInput({ servers: { production: {} }, components: { servers: { development: {} } } }); + const d = new AsyncAPIDocument(doc); + expect(d.allServers()).toBeInstanceOf(Servers); + expect(d.allServers()).toHaveLength(2); + }); + + it('should return a collection of servers even if servers are not defined', function() { + const doc = serializeInput({}); + const d = new AsyncAPIDocument(doc); + expect(d.allServers()).toBeInstanceOf(Servers); + }); + }); + + describe('.allChannels()', function() { + it('should return a collection of channels', function() { + const doc = serializeInput({ channels: { 'user/signup': {} } }); + const d = new AsyncAPIDocument(doc); + expect(d.allChannels()).toBeInstanceOf(Channels); + expect(d.allChannels().all()).not.toBeInstanceOf(Collection); + expect(d.allChannels().all()).toBeInstanceOf(Array); + expect(d.allChannels()).toHaveLength(1); + }); + + it('should return all channels (with channels from components)', function() { + const doc = serializeInput({ channels: { 'user/signup': {} }, components: { channels: { someChannel1: {}, someChannel2: {} } } }); + const d = new AsyncAPIDocument(doc); + expect(d.allChannels()).toBeInstanceOf(Channels); + expect(d.allChannels()).toHaveLength(3); + }); + + it('should return a collection of channels even if channels are not defined', function() { + const doc = serializeInput({}); + const d = new AsyncAPIDocument(doc); + expect(d.allChannels()).toBeInstanceOf(Channels); + }); + }); + + describe('.allOperations()', function() { + it('should return a collection of operations', function() { + const doc = serializeInput({ operations: { userSignup: {}, userLogout: {} } }); + const d = new AsyncAPIDocument(doc); + expect(d.allOperations()).toBeInstanceOf(Operations); + expect(d.allOperations().all()).toBeInstanceOf(Array); + expect(d.allOperations().all()).not.toBeInstanceOf(Collection); + expect(d.allOperations()).toHaveLength(2); + }); + + it('should return all operations (with operations from components)', function() { + const duplicatedOperation = { }; + const doc = serializeInput({ operations: { userSignup: duplicatedOperation, userLogout: {} }, components: { operations: { someOperation1: duplicatedOperation, someOperation2: {} } } }); + const d = new AsyncAPIDocument(doc); + expect(d.allOperations()).toBeInstanceOf(Operations); + expect(d.allOperations()).toHaveLength(3); + }); + + it('should return a collection of operations even if operations are not defined', function() { + const doc = serializeInput({}); + const d = new AsyncAPIDocument(doc); + expect(d.allOperations()).toBeInstanceOf(Operations); + }); + }); + describe('.components()', function() { it('should return a components model', function() { const doc = serializeInput({ components: {} }); From 1fa12408a13b058d5fee02abbe7bd0cb0a4f9171 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Fri, 1 Sep 2023 10:20:22 +0200 Subject: [PATCH 097/126] chore(release): v3.0.0-next-major-spec.2 (#855) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 46d24c416..166874c25 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.1", + "version": "3.0.0-next-major-spec.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.1", + "version": "3.0.0-next-major-spec.2", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.6", diff --git a/package.json b/package.json index a161082d0..3fe1762fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.1", + "version": "3.0.0-next-major-spec.2", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From b5684de25c126b1fdca13ffd9c16e73ef8e05ae0 Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Tue, 3 Oct 2023 17:08:13 +0200 Subject: [PATCH 098/126] fix: isAsyncAPIDocument not recognizing correct documents (#861) --- src/document.ts | 2 +- src/models/asyncapi.ts | 2 +- test/document.spec.ts | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/document.ts b/src/document.ts index 887fd02b9..b202b1c6a 100644 --- a/src/document.ts +++ b/src/document.ts @@ -43,7 +43,7 @@ export function isAsyncAPIDocument(maybeDoc: unknown): maybeDoc is AsyncAPIDocum } if (maybeDoc && typeof (maybeDoc as AsyncAPIDocumentInterface).json === 'function') { const versionOfParserAPI = (maybeDoc as AsyncAPIDocumentInterface).json()[xParserApiVersion]; - return versionOfParserAPI === 1; + return versionOfParserAPI === 2; } return false; } diff --git a/src/models/asyncapi.ts b/src/models/asyncapi.ts index 6f85dc575..ce1e2b8a5 100644 --- a/src/models/asyncapi.ts +++ b/src/models/asyncapi.ts @@ -12,7 +12,7 @@ import type { ServersInterface } from './servers'; import type { v2, v3 } from '../spec-types'; // https://github.com/asyncapi/parser-api/releases/tag/v2.0.0 -export const ParserAPIVersion = '2.0.0'; +export const ParserAPIVersion = 2; export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInterface { version(): string; diff --git a/test/document.spec.ts b/test/document.spec.ts index 64b963218..dfa07761d 100644 --- a/test/document.spec.ts +++ b/test/document.spec.ts @@ -114,8 +114,12 @@ describe('utils', function() { expect(isAsyncAPIDocument(createAsyncAPIDocument(detailed))).toEqual(true); }); - it('document with the x-parser-api-version extension set to 1 should be AsyncAPI document', async function() { - expect(isAsyncAPIDocument({ json() { return { [xParserApiVersion]: 1 }; } })).toEqual(true); + it('document with the x-parser-api-version extension set to 2 should be AsyncAPI document', async function() { + expect(isAsyncAPIDocument({ json() { return { [xParserApiVersion]: 2 }; } })).toEqual(true); + }); + + it('document with the x-parser-api-version extension set to 1 should not be AsyncAPI document', async function() { + expect(isAsyncAPIDocument({ json() { return { [xParserApiVersion]: 1 }; } })).toEqual(false); }); it('document with the x-parser-api-version extension set to 0 should not be AsyncAPI document', async function() { From 07f3a2e86e6bdf27e971be562827178d908cb07a Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 4 Oct 2023 08:05:26 +0200 Subject: [PATCH 099/126] chore(release): v3.0.0-next-major-spec.3 (#865) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 166874c25..a022c41e9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.2", + "version": "3.0.0-next-major-spec.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.2", + "version": "3.0.0-next-major-spec.3", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.6", diff --git a/package.json b/package.json index 3fe1762fc..21b43846c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.2", + "version": "3.0.0-next-major-spec.3", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From a3a41949a0b4c4d5a6a45e321fae66996fcd62ee Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Mon, 9 Oct 2023 10:37:12 +0200 Subject: [PATCH 100/126] fix: schema parsing for v3 (#864) --- src/custom-operations/anonymous-naming.ts | 9 +- src/custom-operations/index.ts | 19 +-- src/custom-operations/parse-schema.ts | 80 +++++++++++ src/models/v3/schema.ts | 2 +- src/spec-types/v3.ts | 6 +- src/utils.ts | 8 +- ...schema.spec.ts => parse-schema-v2.spec.ts} | 2 +- .../custom-operations/parse-schema-v3.spec.ts | 135 ++++++++++++++++++ 8 files changed, 243 insertions(+), 18 deletions(-) rename test/custom-operations/{parse-schema.spec.ts => parse-schema-v2.spec.ts} (98%) create mode 100644 test/custom-operations/parse-schema-v3.spec.ts diff --git a/src/custom-operations/anonymous-naming.ts b/src/custom-operations/anonymous-naming.ts index d29b9e917..88522f3bd 100644 --- a/src/custom-operations/anonymous-naming.ts +++ b/src/custom-operations/anonymous-naming.ts @@ -1,6 +1,6 @@ import { xParserMessageName, xParserSchemaId } from '../constants'; import { traverseAsyncApiDocument } from '../iterator'; -import { setExtension } from '../utils'; +import { setExtension, setExtensionOnJson } from '../utils'; import type { AsyncAPIDocumentInterface, @@ -59,12 +59,15 @@ function assignUidToComponentSchemas(document: AsyncAPIDocumentInterface) { setExtension(xParserSchemaId, schema.id(), schema); }); } - + function assignUidToAnonymousSchemas(doc: AsyncAPIDocumentInterface) { let anonymousSchemaCounter = 0; function callback(schema: SchemaInterface) { + const json = schema.json() as any; + const isMultiFormatSchema = json.schema !== undefined; + const underlyingSchema = isMultiFormatSchema ? json.schema : json; if (!schema.id()) { - setExtension(xParserSchemaId, ``, schema); + setExtensionOnJson(xParserSchemaId, ``, underlyingSchema); } } traverseAsyncApiDocument(doc, callback); diff --git a/src/custom-operations/index.ts b/src/custom-operations/index.ts index e360848b9..28754663a 100644 --- a/src/custom-operations/index.ts +++ b/src/custom-operations/index.ts @@ -1,8 +1,7 @@ import { applyTraitsV2, applyTraitsV3 } from './apply-traits'; -import { checkCircularRefs } from './check-circular-refs'; -import { parseSchemasV2 } from './parse-schema'; -import { anonymousNaming } from './anonymous-naming'; import { resolveCircularRefs } from './resolve-circular-refs'; +import { parseSchemasV2, parseSchemasV3 } from './parse-schema'; +import { anonymousNaming } from './anonymous-naming'; import type { RulesetFunctionContext } from '@stoplight/spectral-core'; import type { Parser } from '../parser'; @@ -10,6 +9,7 @@ import type { ParseOptions } from '../parse'; import type { AsyncAPIDocumentInterface } from '../models'; import type { DetailedAsyncAPI } from '../types'; import type { v2, v3 } from '../spec-types'; +import { checkCircularRefs } from './check-circular-refs'; export async function customOperations(parser: Parser, document: AsyncAPIDocumentInterface, detailed: DetailedAsyncAPI, inventory: RulesetFunctionContext['documentInventory'], options: ParseOptions): Promise { switch (detailed.semver.major) { @@ -28,7 +28,7 @@ async function operationsV2(parser: Parser, document: AsyncAPIDocumentInterface, await parseSchemasV2(parser, detailed); } - // anonymous naming and resolving circular refrences should be done after custom schemas parsing + // anonymous naming and resolving circular references should be done after custom schemas parsing if (inventory) { resolveCircularRefs(document, inventory); } @@ -41,9 +41,12 @@ async function operationsV3(parser: Parser, document: AsyncAPIDocumentInterface, if (options.applyTraits) { applyTraitsV3(detailed.parsed as v3.AsyncAPIObject); } - // TODO: Support schema parsing in v3 - // if (options.parseSchemas) { - // await parseSchemasV2(parser, detailed); - // } + if (options.parseSchemas) { + await parseSchemasV3(parser, detailed); + } + // anonymous naming and resolving circular references should be done after custom schemas parsing + if (inventory) { + resolveCircularRefs(document, inventory); + } anonymousNaming(document); } diff --git a/src/custom-operations/parse-schema.ts b/src/custom-operations/parse-schema.ts index 6221af6cf..d33c017b4 100644 --- a/src/custom-operations/parse-schema.ts +++ b/src/custom-operations/parse-schema.ts @@ -22,6 +22,24 @@ const customSchemasPathsV2 = [ '$.components.messages.*', ]; +const customSchemasPathsV3 = [ + // channels + '$.channels.*.messages.*.payload', + '$.channels.*.messages.*.headers', + '$.components.channels.*.messages.*.payload', + '$.components.channels.*.messages.*.headers', + // operations + '$.operations.*.messages.*.payload', + '$.operations.*.messages.*.headers', + '$.components.operations.*.messages.*.payload', + '$.components.operations.*.messages.*.headers', + // messages + '$.components.messages.*.payload', + '$.components.messages.*.headers.*', + // schemas + '$.components.schemas.*', +]; + export async function parseSchemasV2(parser: Parser, detailed: DetailedAsyncAPI) { const defaultSchemaFormat = getDefaultSchemaFormat(detailed.semver.version); const parseItems: Array = []; @@ -65,6 +83,68 @@ export async function parseSchemasV2(parser: Parser, detailed: DetailedAsyncAPI) return Promise.all(parseItems.map(item => parseSchemaV2(parser, item))); } +export async function parseSchemasV3(parser: Parser, detailed: DetailedAsyncAPI) { + const defaultSchemaFormat = getDefaultSchemaFormat(detailed.semver.version); + const parseItems: Array = []; + + const visited: Set = new Set(); + customSchemasPathsV3.forEach(path => { + JSONPath({ + path, + json: detailed.parsed, + resultType: 'all', + callback(result) { + const value = result.value; + if (visited.has(value)) { + return; + } + visited.add(value); + + const schema = value.schema; + if (!schema) { + return; + } + + let schemaFormat = value.schemaFormat; + if (!schemaFormat) { + return; + } + schemaFormat = getSchemaFormat(value.schemaFormat, detailed.semver.version); + + parseItems.push({ + input: { + asyncapi: detailed, + data: schema, + meta: { + message: value, + }, + path: [...splitPath(result.path), 'schema'], + schemaFormat, + defaultSchemaFormat, + }, + value, + }); + }, + }); + }); + + return Promise.all(parseItems.map(item => parseSchemaV3(parser, item))); +} + +async function parseSchemaV3(parser: Parser, item: ToParseItem) { + const originalData = item.input.data; + const parsedData = await parseSchema(parser, item.input); + if (item.value?.schema !== undefined) { + item.value.schema = parsedData; + } else { + item.value = parsedData; + } + // save original payload only when data is different (returned by custom parsers) + if (originalData !== parsedData) { + item.value[xParserOriginalPayload] = originalData; + } +} + async function parseSchemaV2(parser: Parser, item: ToParseItem) { const originalData = item.input.data; const parsedData = item.value.payload = await parseSchema(parser, item.input); diff --git a/src/models/v3/schema.ts b/src/models/v3/schema.ts index 763c91a45..40e3d533e 100644 --- a/src/models/v3/schema.ts +++ b/src/models/v3/schema.ts @@ -47,7 +47,7 @@ export class Schema extends BaseModel' }); + expect(((((document?.json() as any).operations?.operation as v3.OperationObject).channel as v3.ChannelObject)?.messages?.message as v3.MessageObject)?.payload?.schema).toEqual({ type: 'object', 'x-parser-schema-id': '' }); + expect((((document?.json() as any).operations?.operation as v3.OperationObject).messages?.[0] as v3.MessageObject)?.payload?.schema).toEqual({ type: 'object', 'x-parser-schema-id': '' }); + expect(((document?.json()?.components?.channels?.channel as v3.ChannelObject).messages?.message as v3.MessageObject)?.payload?.schema).toEqual({ type: 'object', 'x-parser-schema-id': '' }); + expect((document?.json()?.components?.messages?.message as v3.MessageObject)?.payload?.schema).toEqual({ type: 'object', 'x-parser-schema-id': '' }); + expect((((document?.json() as any).components?.messages?.message as v3.MessageObject)?.headers as v3.MultiFormatObject).schema).toEqual({ type: 'object', 'x-parser-schema-id': '' }); + expect((document?.json() as any).components?.schemas?.schema?.schema).toEqual({ type: 'object', 'x-parser-schema-id': '' }); + }); + + it('should parse valid default schema format', async function() { + const documentRaw = { + asyncapi: '3.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0' + }, + channels: { + channel: { + address: 'channel', + messages: { + message: { + payload: { + type: 'object' + } + } + } + } + } + }; + const { document, diagnostics } = await parser.parse(documentRaw); + + expect(document).toBeInstanceOf(AsyncAPIDocumentV3); + expect(diagnostics.length === 0).toEqual(true); + + expect(((document?.json()?.channels?.channel as v3.ChannelObject).messages?.message as v3.MessageObject)?.payload).toEqual({ type: 'object', 'x-parser-schema-id': '' }); + }); + + it('should parse invalid schema format', async function() { + const documentRaw = { + asyncapi: '3.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0' + }, + channels: { + channel: { + address: 'channel', + messages: { + message: { + payload: { + schemaFormat: 'not existing', + schema: { + type: 'object' + } + } + } + } + } + } + }; + const { document, diagnostics } = await parser.parse(documentRaw); + + expect(document).toBeUndefined(); + expect(diagnostics.length > 0).toEqual(true); + }); +}); From d3afd331fee89b088e35ec3639e23ddcef3570e2 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Mon, 9 Oct 2023 10:48:17 +0200 Subject: [PATCH 101/126] chore(release): v3.0.0-next-major-spec.4 (#869) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index a022c41e9..5c26b8a28 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.3", + "version": "3.0.0-next-major-spec.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.3", + "version": "3.0.0-next-major-spec.4", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.6", diff --git a/package.json b/package.json index 21b43846c..293bea0eb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.3", + "version": "3.0.0-next-major-spec.4", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From 02b06aba62a9288bd52d0e80fec08e61683f406e Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Mon, 9 Oct 2023 11:26:59 +0200 Subject: [PATCH 102/126] fix: channel parameter not always returning schema (#868) --- src/models/v3/channel-parameter.ts | 8 +------- test/models/v3/channel-parameter.spec.ts | 15 +++++++++++---- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/models/v3/channel-parameter.ts b/src/models/v3/channel-parameter.ts index 54099a351..41e46bfab 100644 --- a/src/models/v3/channel-parameter.ts +++ b/src/models/v3/channel-parameter.ts @@ -13,16 +13,10 @@ export class ChannelParameter extends BaseModel({}); const d = new ChannelParameter(doc); - expect(d.hasSchema()).toEqual(false); + expect(d.hasSchema()).toEqual(true); }); }); @@ -87,10 +87,17 @@ describe('ChannelParameter model', function() { expect(d.schema()?.default()).toEqual('test'); }); - it('should return undefined when there is no value', function() { + it('should be able to access description value', function() { + const doc = serializeInput({ description: 'test' }); + const d = new ChannelParameter(doc); + expect(d.schema()).toBeInstanceOf(Schema); + expect(d.schema()?.description()).toEqual('test'); + }); + it('should return empty schema with type string when there is no value', function() { const doc = serializeInput({}); const d = new ChannelParameter(doc); - expect(d.schema()).toBeUndefined(); + expect(d.schema()).toBeInstanceOf(Schema); + expect(d.schema()?.type()).toEqual('string'); }); }); From 8cbbc994fb9e7c7e07235b94fb7eb4344c0ed10a Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Mon, 9 Oct 2023 11:39:09 +0200 Subject: [PATCH 103/126] chore(release): v3.0.0-next-major-spec.5 (#870) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5c26b8a28..d90e0e2b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.4", + "version": "3.0.0-next-major-spec.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.4", + "version": "3.0.0-next-major-spec.5", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.6", diff --git a/package.json b/package.json index 293bea0eb..bd067a1a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.4", + "version": "3.0.0-next-major-spec.5", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From 67cfc57cc6dc01c02a3ac010580aa4d91247632a Mon Sep 17 00:00:00 2001 From: Ace <40604284+AceTheCreator@users.noreply.github.com> Date: Mon, 9 Oct 2023 07:55:40 -0500 Subject: [PATCH 104/126] feat: bump spec version to latest (#871) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bd067a1a1..c177d2b68 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "prepublishOnly": "npm run generate:assets" }, "dependencies": { - "@asyncapi/specs": "^6.0.0-next-major-spec.6", + "@asyncapi/specs": "^6.0.0-next-major-spec.9", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json-ref-resolver": "^3.1.5", "@stoplight/spectral-core": "^1.16.1", From 7b743165a1bd71417bf4f5f9d4e4f0e5c2a89ef5 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Mon, 9 Oct 2023 15:08:00 +0200 Subject: [PATCH 105/126] chore(release): v3.0.0-next-major-spec.6 (#872) --- package-lock.json | 18 +++++++++--------- package.json | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index d90e0e2b6..3f0636e61 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.5", + "version": "3.0.0-next-major-spec.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.5", + "version": "3.0.0-next-major-spec.6", "license": "Apache-2.0", "dependencies": { - "@asyncapi/specs": "^6.0.0-next-major-spec.6", + "@asyncapi/specs": "^6.0.0-next-major-spec.9", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json-ref-resolver": "^3.1.5", "@stoplight/spectral-core": "^1.16.1", @@ -125,9 +125,9 @@ } }, "node_modules/@asyncapi/specs": { - "version": "6.0.0-next-major-spec.6", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.0.0-next-major-spec.6.tgz", - "integrity": "sha512-xYiXZetKiAZgZoh2q/sxt+Ceg8bLTK/WSCwtLvlH7JgnjpnOEtCDwKszijmmOJEYdGVSrj0OFXLPrg/dm4JANw==", + "version": "6.0.0-next-major-spec.9", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.0.0-next-major-spec.9.tgz", + "integrity": "sha512-fmOITQoYMw3I2Vai7u/vT0q4yHMBkeXTPByHhrqCaxnwX59Yb2vsMmukHjq478qqCP/U/TmzVvGpEy0JBMaelw==", "dependencies": { "@types/json-schema": "^7.0.11" } @@ -11209,9 +11209,9 @@ } }, "@asyncapi/specs": { - "version": "6.0.0-next-major-spec.6", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.0.0-next-major-spec.6.tgz", - "integrity": "sha512-xYiXZetKiAZgZoh2q/sxt+Ceg8bLTK/WSCwtLvlH7JgnjpnOEtCDwKszijmmOJEYdGVSrj0OFXLPrg/dm4JANw==", + "version": "6.0.0-next-major-spec.9", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.0.0-next-major-spec.9.tgz", + "integrity": "sha512-fmOITQoYMw3I2Vai7u/vT0q4yHMBkeXTPByHhrqCaxnwX59Yb2vsMmukHjq478qqCP/U/TmzVvGpEy0JBMaelw==", "requires": { "@types/json-schema": "^7.0.11" } diff --git a/package.json b/package.json index c177d2b68..fe5ddae53 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.5", + "version": "3.0.0-next-major-spec.6", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From cacf5a88d9fc6bf427bdacd9d50f78481b1f3be6 Mon Sep 17 00:00:00 2001 From: Khuda Dad Nomani <32505158+KhudaDad414@users.noreply.github.com> Date: Mon, 16 Oct 2023 14:55:06 +0100 Subject: [PATCH 106/126] fix: use relative paths (#880) --- src/models/v3/asyncapi.ts | 10 +++++----- src/models/v3/operation-reply.ts | 2 +- src/models/v3/operation.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/models/v3/asyncapi.ts b/src/models/v3/asyncapi.ts index 09bb14aa0..671616690 100644 --- a/src/models/v3/asyncapi.ts +++ b/src/models/v3/asyncapi.ts @@ -26,12 +26,12 @@ import type { MessageInterface } from '../message'; import type { ComponentsInterface } from '../components'; import type { SecuritySchemesInterface } from '../security-schemes'; import type { ExtensionsInterface } from '../extensions'; -import type { SchemaInterface } from 'models/schema'; -import type { SchemasInterface } from 'models/schemas'; +import type { SchemaInterface } from '../schema'; +import type { SchemasInterface } from '../schemas'; import type { v3 } from '../../spec-types'; -import { OperationInterface } from 'models/operation'; -import { ChannelInterface } from 'models/channel'; -import { ServerInterface } from 'models/server'; +import { OperationInterface } from '../operation'; +import { ChannelInterface } from '../channel'; +import { ServerInterface } from '../server'; export class AsyncAPIDocument extends BaseModel implements AsyncAPIDocumentInterface { version(): string { diff --git a/src/models/v3/operation-reply.ts b/src/models/v3/operation-reply.ts index 9ba9d29da..93427d388 100644 --- a/src/models/v3/operation-reply.ts +++ b/src/models/v3/operation-reply.ts @@ -2,7 +2,7 @@ import { BaseModel } from '../base'; import { Channel } from './channel'; import { Message } from './message'; import { Messages } from './messages'; -import { MessagesInterface } from 'models/messages'; +import { MessagesInterface } from '../messages'; import { OperationReplyAddress } from './operation-reply-address'; import { extensions } from './mixins'; diff --git a/src/models/v3/operation.ts b/src/models/v3/operation.ts index e3e903254..412fbb4c7 100644 --- a/src/models/v3/operation.ts +++ b/src/models/v3/operation.ts @@ -11,7 +11,7 @@ import type { ChannelsInterface } from '../channels'; import type { MessagesInterface } from '../messages'; import type { MessageInterface } from '../message'; import type { OperationInterface, OperationAction } from '../operation'; -import type { OperationReplyInterface } from 'models/operation-reply'; +import type { OperationReplyInterface } from '../operation-reply'; import type { OperationTraitsInterface } from '../operation-traits'; import type { ServersInterface } from '../servers'; import type { ServerInterface } from '../server'; From 3582d31d61fde2c04d79b168102965fd405f1069 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Mon, 16 Oct 2023 16:05:48 +0200 Subject: [PATCH 107/126] chore(release): v3.0.0-next-major-spec.7 (#881) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3f0636e61..87d23eaab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.6", + "version": "3.0.0-next-major-spec.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.6", + "version": "3.0.0-next-major-spec.7", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.9", diff --git a/package.json b/package.json index fe5ddae53..13d48dddb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.6", + "version": "3.0.0-next-major-spec.7", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From a93f24817810c33c3e6b64f3b58d28395f7d0977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=20M=C3=A9ndez?= Date: Mon, 6 Nov 2023 21:21:39 +0100 Subject: [PATCH 108/126] feat!: remove messageId() (#889) --- src/models/message-trait.ts | 1 - src/models/v2/message-trait.ts | 6 +--- src/models/v3/message-trait.ts | 8 ++---- src/spec-types/v3.ts | 1 - .../custom-operations/apply-traits-v3.spec.ts | 20 ++++++------- test/models/v2/channel.spec.ts | 6 ++-- test/models/v2/message-trait.spec.ts | 4 +-- test/models/v2/server.spec.ts | 14 +++++----- test/models/v3/channel.spec.ts | 10 +++---- test/models/v3/message-trait.spec.ts | 28 +++---------------- test/models/v3/message.spec.ts | 6 ---- test/models/v3/operation-reply.spec.ts | 8 +++--- test/models/v3/operation.spec.ts | 12 ++++---- test/models/v3/server.spec.ts | 16 +++++------ 14 files changed, 52 insertions(+), 88 deletions(-) diff --git a/src/models/message-trait.ts b/src/models/message-trait.ts index 8abb1f18e..3e16104a2 100644 --- a/src/models/message-trait.ts +++ b/src/models/message-trait.ts @@ -9,7 +9,6 @@ export interface MessageTraitInterface extends BaseModel, BindingsMixinInterface hasSchemaFormat(): boolean; schemaFormat(): string | undefined; hasMessageId(): boolean; - messageId(): string | undefined; hasCorrelationId(): boolean; correlationId(): CorrelationIdInterface | undefined; hasContentType(): boolean; diff --git a/src/models/v2/message-trait.ts b/src/models/v2/message-trait.ts index cee11664a..fb327f615 100644 --- a/src/models/v2/message-trait.ts +++ b/src/models/v2/message-trait.ts @@ -21,7 +21,7 @@ import type { v2 } from '../../spec-types'; export class MessageTrait extends BaseModel implements MessageTraitInterface { id(): string { - return this.messageId() || this._meta.id || this.json(xParserMessageName) as string; + return this._json.messageId || this._meta.id || this.json(xParserMessageName) as string; } hasSchemaFormat(): boolean { @@ -35,10 +35,6 @@ export class MessageTrait extends CoreModel implements MessageTraitInterface { id(): string { - return this.messageId() || this._meta.id || this.extensions().get(xParserMessageName)?.value() as string; + return this._meta.id || this.extensions().get(xParserMessageName)?.value() as string; } hasMessageId(): boolean { - return !!this._json.messageId; + return false; } hasSchemaFormat(): boolean { @@ -29,10 +29,6 @@ export class MessageTrait({ messages: { someMessage: { messageId: 'messageId' } } }); + const doc = serializeInput({ messages: { someMessage: {} } }); const d = new Channel(doc); const msg = doc.messages?.['someMessage'] as v3.MessageObject; expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(1); expect(d.messages().all()[0]).toBeInstanceOf(Message); - expect(d.messages().all()[0].messageId()).toEqual(msg?.messageId); + expect(d.messages().all()[0].id()).toEqual('someMessage'); }); it('should return collection of messages - more than one messages', function() { - const doc = serializeInput({ messages: { someMessage1: { messageId: 'messageId1' }, someMessage2: { messageId: 'messageId2' } } }); + const doc = serializeInput({ messages: { someMessage1: {}, someMessage2: {} } }); const d = new Channel(doc); const msg1 = doc.messages?.['someMessage1'] as v3.MessageObject; const msg2 = doc.messages?.['someMessage2'] as v3.MessageObject; expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(2); expect(d.messages().all()[0]).toBeInstanceOf(Message); - expect(d.messages().all()[0].id()).toEqual(msg1.messageId); + expect(d.messages().all()[0].id()).toEqual('someMessage1'); expect(d.messages().all()[1]).toBeInstanceOf(Message); - expect(d.messages().all()[1].id()).toEqual(msg2.messageId); + expect(d.messages().all()[1].id()).toEqual('someMessage2'); }); }); diff --git a/test/models/v3/message-trait.spec.ts b/test/models/v3/message-trait.spec.ts index ad046af22..49f3b2fed 100644 --- a/test/models/v3/message-trait.spec.ts +++ b/test/models/v3/message-trait.spec.ts @@ -13,12 +13,6 @@ describe('MessageTrait model', function() { const d = new MessageTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait' }); expect(d.id()).toEqual('trait'); }); - - it('should reuse messageId', function() { - const doc = { messageId: '...' }; - const d = new MessageTrait(doc); - expect(d.id()).toEqual(doc.messageId); - }); }); describe('.schemaFormat()', function() { @@ -38,30 +32,16 @@ describe('MessageTrait model', function() { }); describe('.hasMessageId()', function() { - it('should return true when there is a value', function() { - const doc = { messageId: '...' }; - const d = new MessageTrait(doc); - expect(d.hasMessageId()).toEqual(true); - }); - - it('should return false when there is no value', function() { + it('should return false when there is a value', function() { const doc = {}; - const d = new MessageTrait(doc); + const d = new MessageTrait(doc, { asyncapi: {} as any, pointer: '', id: 'message' }); expect(d.hasMessageId()).toEqual(false); }); - }); - - describe('.messageId()', function() { - it('should return the value', function() { - const doc = { messageId: '...' }; - const d = new MessageTrait(doc); - expect(d.messageId()).toEqual(doc.messageId); - }); - it('should return undefined when there is no value', function() { + it('should return false when there is no value', function() { const doc = {}; const d = new MessageTrait(doc); - expect(d.messageId()).toBeUndefined(); + expect(d.hasMessageId()).toEqual(false); }); }); diff --git a/test/models/v3/message.spec.ts b/test/models/v3/message.spec.ts index 3bcca68d0..9d02b2885 100644 --- a/test/models/v3/message.spec.ts +++ b/test/models/v3/message.spec.ts @@ -18,12 +18,6 @@ describe('Message model', function() { const d = new Message(doc, { asyncapi: {} as any, pointer: '', id: 'message' }); expect(d.id()).toEqual('message'); }); - - it('should reuse messageId', function() { - const doc = { messageId: '...' }; - const d = new Message(doc); - expect(d.id()).toEqual(doc.messageId); - }); }); describe('.schemaFormat() + .hasSchemaFormat()', function() { diff --git a/test/models/v3/operation-reply.spec.ts b/test/models/v3/operation-reply.spec.ts index 140c24903..3f065d5a1 100644 --- a/test/models/v3/operation-reply.spec.ts +++ b/test/models/v3/operation-reply.spec.ts @@ -64,20 +64,20 @@ describe('OperationReply model', function() { describe('.messages()', function() { it('should return collection of messages - single message', function() { - const d = new OperationReply({ messages: { someMessage: { messageId: 'messageId' } } }); + const d = new OperationReply({ messages: { someMessage: {} } }); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(1); expect(d.messages().all()[0]).toBeInstanceOf(Message); }); it('should return collection of messages - more than one messages', function() { - const d = new OperationReply({ messages: { someMessage1: { messageId: 'messageId1' }, someMessage2: { messageId: 'messageId2' } } }); + const d = new OperationReply({ messages: { someMessage1: {}, someMessage2: {} } }); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(2); expect(d.messages().all()[0]).toBeInstanceOf(Message); - expect(d.messages().all()[0].messageId()).toEqual('messageId1'); + expect(d.messages().all()[0].id()).toEqual('someMessage1'); expect(d.messages().all()[1]).toBeInstanceOf(Message); - expect(d.messages().all()[1].messageId()).toEqual('messageId2'); + expect(d.messages().all()[1].id()).toEqual('someMessage2'); }); it('should return undefined if address is not present', function() { diff --git a/test/models/v3/operation.spec.ts b/test/models/v3/operation.spec.ts index 1bf852e4d..9dcd179bb 100644 --- a/test/models/v3/operation.spec.ts +++ b/test/models/v3/operation.spec.ts @@ -89,7 +89,7 @@ describe('Operation model', function() { describe('.messages()', function() { it('should return collection of messages - single message', function() { - const channel = { messages: { someMessage: { messageId: 'messageId' } } }; + const channel = { messages: { someMessage: { summary: 'summary' } } }; const d = new Operation({ action: 'send', channel }, { asyncapi: { parsed: { channels: { someChannel: channel } } } as any, pointer: '', id: 'operation' }); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(1); @@ -97,23 +97,23 @@ describe('Operation model', function() { }); it('should return collection of messages - more than one messages', function() { - const channel = { messages: { someMessage1: { messageId: 'messageId1' }, someMessage2: { messageId: 'messageId2' } } }; + const channel = { messages: { someMessage1: { summary: 'summary1' }, someMessage2: { summary: 'summary2' } } }; const d = new Operation({ action: 'send', channel }, { asyncapi: { parsed: { channels: { someChannel: channel } } } as any, pointer: '', id: 'operation' }); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(2); expect(d.messages().all()[0]).toBeInstanceOf(Message); - expect(d.messages().all()[0].messageId()).toEqual('messageId1'); + expect(d.messages().all()[0].summary()).toEqual('summary1'); expect(d.messages().all()[1]).toBeInstanceOf(Message); - expect(d.messages().all()[1].messageId()).toEqual('messageId2'); + expect(d.messages().all()[1].summary()).toEqual('summary2'); }); it('should return collection of messages - defined message on operation level', function() { - const channel = { messages: { someMessage1: { messageId: 'messageId1' }, someMessage2: { messageId: 'messageId2' } } }; + const channel = { messages: { someMessage1: { summary: 'summary1' }, someMessage2: { summary: 'summary2' } } }; const d = new Operation({ action: 'send', channel, messages: [channel.messages.someMessage1] }, { asyncapi: { parsed: { channels: { someChannel: channel } } } as any, pointer: '', id: 'operation' }); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(1); expect(d.messages().all()[0]).toBeInstanceOf(Message); - expect(d.messages().all()[0].messageId()).toEqual('messageId1'); + expect(d.messages().all()[0].summary()).toEqual('summary1'); }); it('should return undefined when there is no value', function() { diff --git a/test/models/v3/server.spec.ts b/test/models/v3/server.spec.ts index 6289a8954..9059fac8c 100644 --- a/test/models/v3/server.spec.ts +++ b/test/models/v3/server.spec.ts @@ -168,33 +168,33 @@ describe('Server Model', function () { describe('.messages()', function() { it('should return collection of messages - one message', function() { const doc = serializeInput({}); - const d = new Server(doc, { asyncapi: { parsed: { channels: { someChannel: { messages: { someMessage: { messageId: 'messageId' } } } } } } as any, pointer: '', id: 'production' }); + const d = new Server(doc, { asyncapi: { parsed: { channels: { someChannel: { messages: { someMessage: { summary: 'summary' } } } } } } as any, pointer: '', id: 'production' }); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(1); expect(d.messages().all()[0]).toBeInstanceOf(Message); - expect(d.messages().all()[0].messageId()).toEqual('messageId'); + expect(d.messages().all()[0].summary()).toEqual('summary'); }); it('should return collection of messages - more than one messages', function() { const doc = serializeInput({}); - const d = new Server(doc, { asyncapi: { parsed: { channels: { someChannel1: { messages: { someMessage1: { messageId: 'messageId1' } } }, someChannel2: { messages: { someMessage2: { messageId: 'messageId2' }, someMessage3: { messageId: 'messageId3' } } } } } } as any, pointer: '', id: 'production' }); + const d = new Server(doc, { asyncapi: { parsed: { channels: { someChannel1: { messages: { someMessage1: { summary: 'summary1' } } }, someChannel2: { messages: { someMessage2: { summary: 'summary2' }, someMessage3: { summary: 'summary3' } } } } } } as any, pointer: '', id: 'production' }); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(3); expect(d.messages().all()[0]).toBeInstanceOf(Message); - expect(d.messages().all()[0].messageId()).toEqual('messageId1'); + expect(d.messages().all()[0].summary()).toEqual('summary1'); expect(d.messages().all()[1]).toBeInstanceOf(Message); - expect(d.messages().all()[1].messageId()).toEqual('messageId2'); + expect(d.messages().all()[1].summary()).toEqual('summary2'); expect(d.messages().all()[2]).toBeInstanceOf(Message); - expect(d.messages().all()[2].messageId()).toEqual('messageId3'); + expect(d.messages().all()[2].summary()).toEqual('summary3'); }); it('should return collection of messages - server available only in particular channel', function() { const doc = serializeInput({}); - const d = new Server(doc, { asyncapi: { parsed: { channels: { someChannel1: { servers: [doc], messages: { someMessage1: { messageId: 'messageId1' } } }, someChannel2: { servers: [{}], messages: { someMessage2: { messageId: 'messageId2' }, someMessage3: { messageId: 'messageId3' } } } } } } as any, pointer: '', id: 'production' }); + const d = new Server(doc, { asyncapi: { parsed: { channels: { someChannel1: { servers: [doc], messages: { someMessage1: { summary: 'summary1' } } }, someChannel2: { servers: [{}], messages: { someMessage2: { summary: 'summary2' }, someMessage3: { summary: 'summary3' } } } } } } as any, pointer: '', id: 'production' }); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(1); expect(d.messages().all()[0]).toBeInstanceOf(Message); - expect(d.messages().all()[0].messageId()).toEqual('messageId1'); + expect(d.messages().all()[0].summary()).toEqual('summary1'); }); }); From abb271706aa6de355a6b5bc487e55ebfbb5ce8c0 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Mon, 6 Nov 2023 21:32:16 +0100 Subject: [PATCH 109/126] chore(release): v3.0.0-next-major-spec.8 (#890) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 87d23eaab..bc76da5c9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.7", + "version": "3.0.0-next-major-spec.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.7", + "version": "3.0.0-next-major-spec.8", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.9", diff --git a/package.json b/package.json index 13d48dddb..13dea244d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.7", + "version": "3.0.0-next-major-spec.8", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From 2978ee52429e1aee4fc3b7a301f7bf423d6f2c85 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Tue, 7 Nov 2023 12:42:54 +0100 Subject: [PATCH 110/126] fix: change ParserAPIVersion constant to 3 (#892) --- README.md | 2 +- src/models/asyncapi.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7dcf99ff9..69ff0073a 100644 --- a/README.md +++ b/README.md @@ -217,7 +217,7 @@ The following table shows a compatibility matrix between this parser, and the [P | Parser-JS | Parser-API | Spec 2.x | Spec 3.x | |-----------|-----------------------------------------------------------------------|----------|----------| | 2.x | [1.x](https://github.com/asyncapi/parser-api/blob/v1.0.0/docs/v1.md) | ✓ | | -| 3.x | [2.x](https://github.com/asyncapi/parser-api/blob/v2.0.0/docs/api.md) | ✓ | ✓ | +| 3.x | [3.x](https://github.com/asyncapi/parser-api/blob/v3.0.0/docs/api.md) | ✓ | ✓ | - `✓` Fully supported version. - `-` The AsyncAPI Spec version has features the Parser-JS can't use but the rest are fully supported. diff --git a/src/models/asyncapi.ts b/src/models/asyncapi.ts index ce1e2b8a5..cd08f7d48 100644 --- a/src/models/asyncapi.ts +++ b/src/models/asyncapi.ts @@ -11,8 +11,8 @@ import type { ServersInterface } from './servers'; import type { v2, v3 } from '../spec-types'; -// https://github.com/asyncapi/parser-api/releases/tag/v2.0.0 -export const ParserAPIVersion = 2; +// https://github.com/asyncapi/parser-api/releases/tag/v3.0.0 +export const ParserAPIVersion = 3; export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInterface { version(): string; From 0a765c1ed46af605707d9e37f71d76192b950602 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Tue, 7 Nov 2023 12:53:24 +0100 Subject: [PATCH 111/126] chore(release): v3.0.0-next-major-spec.9 (#893) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index bc76da5c9..245480462 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.8", + "version": "3.0.0-next-major-spec.9", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.8", + "version": "3.0.0-next-major-spec.9", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.9", diff --git a/package.json b/package.json index 13dea244d..9105a10b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.8", + "version": "3.0.0-next-major-spec.9", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From b569a35426294003b7d12e91fb7c908e38d22c67 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Tue, 14 Nov 2023 21:53:10 +0100 Subject: [PATCH 112/126] fix: doc.allSchemas() skips now duplicates (#897) --- src/models/utils.ts | 25 +++++++++++++++++++++++++ src/models/v2/asyncapi.ts | 23 +++-------------------- src/models/v3/asyncapi.ts | 32 ++++++++------------------------ test/models/v2/asyncapi.spec.ts | 8 ++++++++ test/models/v3/asyncapi.spec.ts | 7 +++++++ 5 files changed, 51 insertions(+), 44 deletions(-) diff --git a/src/models/utils.ts b/src/models/utils.ts index 298a4dde0..ced726791 100644 --- a/src/models/utils.ts +++ b/src/models/utils.ts @@ -1,5 +1,9 @@ import type { BaseModel, ModelMetadata } from './base'; import type { DetailedAsyncAPI } from '../types'; +import { SchemaInterface } from './schema'; +import { SchemaTypesToIterate, traverseAsyncApiDocument } from '../iterator'; +import { AsyncAPIDocumentInterface } from './asyncapi'; +import { SchemasInterface } from 'models'; export interface Constructor extends Function { new (...any: any[]): T; @@ -12,3 +16,24 @@ export type InferModelMetadata = T extends BaseModel ? M : export function createModel(Model: Constructor, value: InferModelData, meta: Omit & { asyncapi?: DetailedAsyncAPI } & InferModelMetadata, parent?: BaseModel): T { return new Model(value, { ...meta, asyncapi: meta.asyncapi || parent?.meta().asyncapi }); } + +export function schemasFromDocument(document: AsyncAPIDocumentInterface, SchemasModel: Constructor, includeComponents: boolean): T { + const jsonInstances: Set = new Set(); + const schemas: Set = new Set(); + + function callback(schema: SchemaInterface) { + // comparing the reference (and not just the value) to the .json() object + if (!jsonInstances.has(schema.json())) { + jsonInstances.add(schema.json()); + schemas.add(schema); // unique schemas + } + } + + let toIterate = Object.values(SchemaTypesToIterate); + if (!includeComponents) { + toIterate = toIterate.filter(s => s !== SchemaTypesToIterate.Components); + } + traverseAsyncApiDocument(document, callback, toIterate); + + return new SchemasModel(Array.from(schemas)); +} diff --git a/src/models/v2/asyncapi.ts b/src/models/v2/asyncapi.ts index c7329c1b6..5cd0e8cbd 100644 --- a/src/models/v2/asyncapi.ts +++ b/src/models/v2/asyncapi.ts @@ -12,8 +12,8 @@ import { SecurityScheme } from './security-scheme'; import { Schemas } from './schemas'; import { extensions } from './mixins'; -import { traverseAsyncApiDocument, SchemaTypesToIterate } from '../../iterator'; import { tilde } from '../../utils'; +import { schemasFromDocument } from '../utils'; import type { AsyncAPIDocumentInterface } from '../asyncapi'; import type { InfoInterface } from '../info'; @@ -27,7 +27,6 @@ import type { OperationInterface } from '../operation'; import type { MessagesInterface } from '../messages'; import type { MessageInterface } from '../message'; import type { SchemasInterface } from '../schemas'; -import type { SchemaInterface } from '../schema'; import type { SecuritySchemesInterface } from '../security-schemes'; import type { ExtensionsInterface } from '../extensions'; @@ -81,7 +80,7 @@ export class AsyncAPIDocument extends BaseModel implements As } schemas(): SchemasInterface { - return this.__schemas(false); + return schemasFromDocument(this, Schemas, false); } securitySchemes(): SecuritySchemesInterface { @@ -130,26 +129,10 @@ export class AsyncAPIDocument extends BaseModel implements As } allSchemas(): SchemasInterface { - return this.__schemas(true); + return schemasFromDocument(this, Schemas, true); } extensions(): ExtensionsInterface { return extensions(this); } - - private __schemas(withComponents: boolean) { - const schemas: Set = new Set(); - function callback(schema: SchemaInterface) { - if (!schemas.has(schema.json())) { - schemas.add(schema); - } - } - - let toIterate = Object.values(SchemaTypesToIterate); - if (!withComponents) { - toIterate = toIterate.filter(s => s !== SchemaTypesToIterate.Components); - } - traverseAsyncApiDocument(this, callback, toIterate); - return new Schemas(Array.from(schemas)); - } } diff --git a/src/models/v3/asyncapi.ts b/src/models/v3/asyncapi.ts index 671616690..756140b0b 100644 --- a/src/models/v3/asyncapi.ts +++ b/src/models/v3/asyncapi.ts @@ -14,7 +14,7 @@ import { Schemas } from './schemas'; import { extensions } from './mixins'; import { tilde } from '../../utils'; -import { SchemaTypesToIterate, traverseAsyncApiDocument } from '../../iterator'; +import { schemasFromDocument } from '../utils'; import type { AsyncAPIDocumentInterface } from '../asyncapi'; import type { InfoInterface } from '../info'; @@ -26,12 +26,12 @@ import type { MessageInterface } from '../message'; import type { ComponentsInterface } from '../components'; import type { SecuritySchemesInterface } from '../security-schemes'; import type { ExtensionsInterface } from '../extensions'; -import type { SchemaInterface } from '../schema'; import type { SchemasInterface } from '../schemas'; +import type { OperationInterface } from '../operation'; +import type { ChannelInterface } from '../channel'; +import type { ServerInterface } from '../server'; + import type { v3 } from '../../spec-types'; -import { OperationInterface } from '../operation'; -import { ChannelInterface } from '../channel'; -import { ServerInterface } from '../server'; export class AsyncAPIDocument extends BaseModel implements AsyncAPIDocumentInterface { version(): string { @@ -89,8 +89,8 @@ export class AsyncAPIDocument extends BaseModel implements As return new Messages(messages); } - schemas() { - return this.__schemas(false); + schemas(): SchemasInterface { + return schemasFromDocument(this, Schemas, false); } securitySchemes(): SecuritySchemesInterface { @@ -138,26 +138,10 @@ export class AsyncAPIDocument extends BaseModel implements As } allSchemas(): SchemasInterface { - return this.__schemas(true); + return schemasFromDocument(this, Schemas, true); } extensions(): ExtensionsInterface { return extensions(this); } - - private __schemas(withComponents: boolean) { - const schemas: Set = new Set(); - function callback(schema: SchemaInterface) { - if (!schemas.has(schema.json())) { - schemas.add(schema); - } - } - - let toIterate = Object.values(SchemaTypesToIterate); - if (!withComponents) { - toIterate = toIterate.filter(s => s !== SchemaTypesToIterate.Components); - } - traverseAsyncApiDocument(this, callback, toIterate); - return new Schemas(Array.from(schemas)); - } } diff --git a/test/models/v2/asyncapi.spec.ts b/test/models/v2/asyncapi.spec.ts index 7f89795ae..3b5146ca9 100644 --- a/test/models/v2/asyncapi.spec.ts +++ b/test/models/v2/asyncapi.spec.ts @@ -308,6 +308,14 @@ describe('AsyncAPIDocument model', function() { const d = new AsyncAPIDocument(doc); expect(d.allSchemas()).toBeInstanceOf(Schemas); }); + + it('should return a collection of schemas (with schemas from components) without duplicates', function() { + const sharedMessage = { payload: {} }; + const doc = serializeInput({ channels: { 'user/signup': { publish: { message: sharedMessage }, subscribe: { message: { oneOf: [{ payload: {} }, {}] } } }, 'user/logout': { publish: { message: { payload: {} } } } }, components: { messages: { aMessage: sharedMessage } } }); + const d = new AsyncAPIDocument(doc); + expect(d.allSchemas()).toBeInstanceOf(Schemas); + expect(d.allSchemas()).toHaveLength(3); + }); }); describe('mixins', function() { diff --git a/test/models/v3/asyncapi.spec.ts b/test/models/v3/asyncapi.spec.ts index c326796cc..85e28e371 100644 --- a/test/models/v3/asyncapi.spec.ts +++ b/test/models/v3/asyncapi.spec.ts @@ -213,6 +213,13 @@ describe('AsyncAPIDocument model', function() { const d = new AsyncAPIDocument(doc); expect(d.allSchemas()).toBeInstanceOf(Schemas); }); + it('should return a collection of schemas (with schemas from components) without duplicates', function() { + const sharedMessage = { payload: {} }; + const doc = serializeInput({ channels: { userSignup: { address: 'user/signup', messages: { someMessage1: { payload: {}}, someMessage2: sharedMessage } } }, components: { messages: { aMessage: sharedMessage } } }); + const d = new AsyncAPIDocument(doc); + expect(d.allSchemas()).toBeInstanceOf(Schemas); + expect(d.allSchemas()).toHaveLength(2); + }); }); describe('.allServers()', function() { From b3d900555db8effce29563e240f2a189244acfa4 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Tue, 14 Nov 2023 22:06:25 +0100 Subject: [PATCH 113/126] chore(release): v3.0.0-next-major-spec.10 (#898) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 245480462..1bafc7aa7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.9", + "version": "3.0.0-next-major-spec.10", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.9", + "version": "3.0.0-next-major-spec.10", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.9", diff --git a/package.json b/package.json index 9105a10b0..4121eaccf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.9", + "version": "3.0.0-next-major-spec.10", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From 0e636a34f144ab97ae12ff26eaf87b66c2699dd0 Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Thu, 16 Nov 2023 10:54:59 -1000 Subject: [PATCH 114/126] fix: wrong parserAPI number being checked (#902) --- src/document.ts | 4 ++-- test/document.spec.ts | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/document.ts b/src/document.ts index b202b1c6a..76b0f257d 100644 --- a/src/document.ts +++ b/src/document.ts @@ -1,4 +1,4 @@ -import { AsyncAPIDocumentV2, AsyncAPIDocumentV3 } from './models'; +import { AsyncAPIDocumentV2, AsyncAPIDocumentV3, ParserAPIVersion } from './models'; import { unstringify } from './stringify'; import { createDetailedAsyncAPI } from './utils'; @@ -43,7 +43,7 @@ export function isAsyncAPIDocument(maybeDoc: unknown): maybeDoc is AsyncAPIDocum } if (maybeDoc && typeof (maybeDoc as AsyncAPIDocumentInterface).json === 'function') { const versionOfParserAPI = (maybeDoc as AsyncAPIDocumentInterface).json()[xParserApiVersion]; - return versionOfParserAPI === 2; + return versionOfParserAPI === ParserAPIVersion; } return false; } diff --git a/test/document.spec.ts b/test/document.spec.ts index dfa07761d..c9fb0e5c0 100644 --- a/test/document.spec.ts +++ b/test/document.spec.ts @@ -114,8 +114,12 @@ describe('utils', function() { expect(isAsyncAPIDocument(createAsyncAPIDocument(detailed))).toEqual(true); }); - it('document with the x-parser-api-version extension set to 2 should be AsyncAPI document', async function() { - expect(isAsyncAPIDocument({ json() { return { [xParserApiVersion]: 2 }; } })).toEqual(true); + it('document with the x-parser-api-version extension set to 3 should be AsyncAPI document', async function() { + expect(isAsyncAPIDocument({ json() { return { [xParserApiVersion]: 3 }; } })).toEqual(true); + }); + + it('document with the x-parser-api-version extension set to 2 should not be AsyncAPI document', async function() { + expect(isAsyncAPIDocument({ json() { return { [xParserApiVersion]: 2 }; } })).toEqual(false); }); it('document with the x-parser-api-version extension set to 1 should not be AsyncAPI document', async function() { From 8be69753add635f62ddee7b1c4b738424a00aa90 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 16 Nov 2023 22:04:28 +0100 Subject: [PATCH 115/126] chore(release): v3.0.0-next-major-spec.11 (#903) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1bafc7aa7..6b509c8ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.10", + "version": "3.0.0-next-major-spec.11", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.10", + "version": "3.0.0-next-major-spec.11", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.9", diff --git a/package.json b/package.json index 4121eaccf..7705b2b5a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.10", + "version": "3.0.0-next-major-spec.11", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From 0ad2ec84fcc48a9bb25a65ef7a8f4419503108f3 Mon Sep 17 00:00:00 2001 From: Khuda Dad Nomani <32505158+KhudaDad414@users.noreply.github.com> Date: Mon, 20 Nov 2023 12:04:54 +0000 Subject: [PATCH 116/126] fix: fix import statement (#908) --- src/models/utils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/models/utils.ts b/src/models/utils.ts index ced726791..47a0a73a7 100644 --- a/src/models/utils.ts +++ b/src/models/utils.ts @@ -3,10 +3,10 @@ import type { DetailedAsyncAPI } from '../types'; import { SchemaInterface } from './schema'; import { SchemaTypesToIterate, traverseAsyncApiDocument } from '../iterator'; import { AsyncAPIDocumentInterface } from './asyncapi'; -import { SchemasInterface } from 'models'; +import { SchemasInterface } from '../models'; export interface Constructor extends Function { - new (...any: any[]): T; + new(...any: any[]): T; } export type InferModelData = T extends BaseModel ? J : never; @@ -23,7 +23,7 @@ export function schemasFromDocument(document: AsyncA function callback(schema: SchemaInterface) { // comparing the reference (and not just the value) to the .json() object - if (!jsonInstances.has(schema.json())) { + if (!jsonInstances.has(schema.json())) { jsonInstances.add(schema.json()); schemas.add(schema); // unique schemas } From 4345060738cce07f22e18379b05eef6adde70949 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Mon, 20 Nov 2023 13:14:14 +0100 Subject: [PATCH 117/126] chore(release): v3.0.0-next-major-spec.12 (#909) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6b509c8ea..97bde9702 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.11", + "version": "3.0.0-next-major-spec.12", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.11", + "version": "3.0.0-next-major-spec.12", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.9", diff --git a/package.json b/package.json index 7705b2b5a..f0ccfad78 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.11", + "version": "3.0.0-next-major-spec.12", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From fe51a0426520b88f767dbd61d223375f09a3f36c Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Mon, 27 Nov 2023 19:19:40 +0100 Subject: [PATCH 118/126] feat: add Spectral rule to validate operation messages (#911) * feat: add Spectral rule to validate operation messages * fix test example * be more precise when matching the json pointer * improve test by testing multiple messages in operation --- src/ruleset/index.ts | 2 + .../functions/operationMessagesUnambiguity.ts | 44 +++ src/ruleset/v3/index.ts | 1 + src/ruleset/v3/ruleset.ts | 28 ++ .../custom-operations/parse-schema-v3.spec.ts | 2 +- ...ion-messages-from-referred-channel.spec.ts | 323 ++++++++++++++++++ test/ruleset/tester.ts | 3 + 7 files changed, 402 insertions(+), 1 deletion(-) create mode 100644 src/ruleset/v3/functions/operationMessagesUnambiguity.ts create mode 100644 src/ruleset/v3/index.ts create mode 100644 src/ruleset/v3/ruleset.ts create mode 100644 test/ruleset/rules/v3/asyncapi3-operation-messages-from-referred-channel.spec.ts diff --git a/src/ruleset/index.ts b/src/ruleset/index.ts index f80a62f96..b4197dc0f 100644 --- a/src/ruleset/index.ts +++ b/src/ruleset/index.ts @@ -1,5 +1,6 @@ import { coreRuleset, recommendedRuleset } from './ruleset'; import { v2CoreRuleset, v2SchemasRuleset, v2RecommendedRuleset } from './v2'; +import { v3CoreRuleset } from './v3'; import type { Parser } from '../parser'; import type { RulesetDefinition } from '@stoplight/spectral-core'; @@ -18,6 +19,7 @@ export function createRuleset(parser: Parser, options?: RulesetOptions): Ruleset useCore && v2CoreRuleset, useCore && v2SchemasRuleset(parser), useRecommended && v2RecommendedRuleset, + useCore && v3CoreRuleset, ...(options as any || {})?.extends || [], ].filter(Boolean); diff --git a/src/ruleset/v3/functions/operationMessagesUnambiguity.ts b/src/ruleset/v3/functions/operationMessagesUnambiguity.ts new file mode 100644 index 000000000..75c1d5206 --- /dev/null +++ b/src/ruleset/v3/functions/operationMessagesUnambiguity.ts @@ -0,0 +1,44 @@ +import { createRulesetFunction } from '@stoplight/spectral-core'; +import type { IFunctionResult } from '@stoplight/spectral-core'; +import { SchemaDefinition } from '@stoplight/spectral-core/dist/ruleset/function'; + +const referenceSchema: SchemaDefinition = { + type: 'object', + properties: { + $ref: { + type: 'string', + format: 'uri-reference' + }, + }, +}; + +export const operationMessagesUnambiguity = createRulesetFunction<{ channel?: {'$ref': string}; messages?: [{'$ref': string}] }, null>( + { + input: { + type: 'object', + properties: { + channel: referenceSchema, + messages: { + type: 'array', + items: referenceSchema, + }, + }, + }, + options: null, + }, + (targetVal, _, ctx) => { + const results: IFunctionResult[] = []; + const channelPointer = targetVal.channel?.$ref as string; // required + + targetVal.messages?.forEach((message, index) => { + if (!message.$ref.startsWith(`${channelPointer}/messages`)) { + results.push({ + message: 'Operation message does not belong to the specified channel.', + path: [...ctx.path, 'messages', index], + }); + } + }); + + return results; + }, +); diff --git a/src/ruleset/v3/index.ts b/src/ruleset/v3/index.ts new file mode 100644 index 000000000..5acc4189e --- /dev/null +++ b/src/ruleset/v3/index.ts @@ -0,0 +1 @@ +export * from './ruleset'; diff --git a/src/ruleset/v3/ruleset.ts b/src/ruleset/v3/ruleset.ts new file mode 100644 index 000000000..56f7b6823 --- /dev/null +++ b/src/ruleset/v3/ruleset.ts @@ -0,0 +1,28 @@ +/* eslint-disable sonarjs/no-duplicate-string */ + +import { AsyncAPIFormats } from '../formats'; +import { operationMessagesUnambiguity } from './functions/operationMessagesUnambiguity'; + +export const v3CoreRuleset = { + description: 'Core AsyncAPI 3.x.x ruleset.', + formats: AsyncAPIFormats.filterByMajorVersions(['3']).formats(), + rules: { + /** + * Operation Object rules + */ + 'asyncapi3-operation-messages-from-referred-channel': { + description: 'Operation "messages" must be a subset of the messages defined in the channel referenced in this operation.', + message: '{{error}}', + severity: 'error', + recommended: true, + resolved: false, // We use the JSON pointer to match the channel. + given: [ + '$.operations.*', + '$.components.operations.*', + ], + then: { + function: operationMessagesUnambiguity, + }, + }, + }, +}; diff --git a/test/custom-operations/parse-schema-v3.spec.ts b/test/custom-operations/parse-schema-v3.spec.ts index fab592bde..6e56ed10a 100644 --- a/test/custom-operations/parse-schema-v3.spec.ts +++ b/test/custom-operations/parse-schema-v3.spec.ts @@ -26,7 +26,7 @@ describe('custom operations for v3 - parse schemas', function() { }, messages: [ { - $ref: '#/components/messages/message' + $ref: '#/channels/channel/messages/message' } ] } diff --git a/test/ruleset/rules/v3/asyncapi3-operation-messages-from-referred-channel.spec.ts b/test/ruleset/rules/v3/asyncapi3-operation-messages-from-referred-channel.spec.ts new file mode 100644 index 000000000..fc51d47b5 --- /dev/null +++ b/test/ruleset/rules/v3/asyncapi3-operation-messages-from-referred-channel.spec.ts @@ -0,0 +1,323 @@ +import { testRule, DiagnosticSeverity } from '../../tester'; + +testRule('asyncapi3-operation-messages-from-referred-channel', [ + { + name: 'valid case - required channel', + document: { + asyncapi: '3.0.0', + info: { + title: 'Account Service', + version: '1.0.0' + }, + channels: { + UserSignedUp: { + messages: { + UserSignedUp: { + payload: { + type: 'object', + properties: { + displayName: { + type: 'string' + }, + email: { + type: 'string' + } + } + } + } + } + } + }, + operations: { + UserSignedUp: { + action: 'send', + channel: { + $ref: '#/channels/UserSignedUp' + }, + messages: [ + { + $ref: '#/channels/UserSignedUp/messages/UserSignedUp' + } + ] + } + } + }, + errors: [], + }, + { + name: 'valid case - optional channel', + document: { + asyncapi: '3.0.0', + info: { + title: 'Account Service', + version: '1.0.0' + }, + channels: { + UserSignedUp: { + messages: { + UserSignedUp: { + payload: { + type: 'object', + properties: { + displayName: { + type: 'string' + }, + email: { + type: 'string' + } + } + } + } + } + } + }, + components: { + operations: { + UserSignedUp: { + action: 'send', + channel: { + $ref: '#/channels/UserSignedUp' + }, + messages: [ + { + $ref: '#/channels/UserSignedUp/messages/UserSignedUp' + } + ] + } + }, + } + }, + errors: [], + }, + { + name: 'invalid case - message from operation in root pointing to a message from an optional channel (same name) defined under components', + document: { + asyncapi: '3.0.0', + info: { + title: 'Account Service', + version: '1.0.0' + }, + channels: { + UserSignedUp: { + messages: { + UserSignedUp: { + payload: { + type: 'object', + properties: { + displayName: { + type: 'string' + }, + email: { + type: 'string' + } + } + } + } + } + } + }, + operations: { + UserSignedUp: { + action: 'send', + channel: { + $ref: '#/channels/UserSignedUp' + }, + messages: [ + { + $ref: '#/components/channels/UserSignedUp/messages/UserSignedUp' + } + ] + } + }, + components: { + channels: { + UserSignedUp: { + messages: { + UserSignedUp: { + payload: { + type: 'object', + properties: { + displayName: { + type: 'string' + }, + email: { + type: 'string' + } + } + } + } + } + } + }, + }, + }, + errors: [ + { + message: 'Operation message does not belong to the specified channel.', + path: ['operations', 'UserSignedUp', 'messages', '0'], + severity: DiagnosticSeverity.Error, + } + ], + }, + { + name: 'invalid case - message from operation in components pointing to a message from a different channel defined under components', + document: { + asyncapi: '3.0.0', + info: { + title: 'Account Service', + version: '1.0.0' + }, + channels: { + UserSignedUp: { + messages: { + UserSignedUp: { + payload: { + type: 'object', + properties: { + displayName: { + type: 'string' + }, + email: { + type: 'string' + } + } + } + } + } + } + }, + components: { + channels: { + UserRemoved: { + messages: { + UserRemoved: { + payload: { + type: 'object', + properties: { + displayName: { + type: 'string' + }, + email: { + type: 'string' + } + } + } + } + } + } + }, + operations: { + UserSignedUp: { + action: 'send', + channel: { + $ref: '#/channels/UserSignedUp' + }, + messages: [ + { + $ref: '#/components/channels/UserRemoved/messages/UserRemoved' + } + ] + } + }, + } + }, + errors: [ + { + message: 'Operation message does not belong to the specified channel.', + path: ['components', 'operations', 'UserSignedUp', 'messages', '0'], + severity: DiagnosticSeverity.Error, + } + ], + }, + { + name: 'invalid case - multiple messages from operation in components pointing to multiple message from a different channel defined under components', + document: { + asyncapi: '3.0.0', + info: { + title: 'Account Service', + version: '1.0.0' + }, + channels: { + UserSignedUp: { + messages: { + UserSignedUp: { + payload: { + type: 'object', + properties: { + displayName: { + type: 'string' + }, + email: { + type: 'string' + } + } + } + } + } + } + }, + components: { + channels: { + UserRemoved: { + messages: { + UserRemoved: { + payload: { + type: 'object', + properties: { + displayName: { + type: 'string' + }, + email: { + type: 'string' + } + } + } + }, + UserDeleted: { + payload: { + type: 'object', + properties: { + displayName: { + type: 'string' + }, + email: { + type: 'string' + } + } + } + } + } + } + }, + operations: { + UserSignedUp: { + action: 'send', + channel: { + $ref: '#/channels/UserSignedUp' + }, + messages: [ + { + $ref: '#/components/channels/UserRemoved/messages/UserRemoved' + }, + { + $ref: '#/components/channels/UserRemoved/messages/UserDeleted' + } + ] + } + }, + } + }, + errors: [ + { + message: 'Operation message does not belong to the specified channel.', + path: ['components', 'operations', 'UserSignedUp', 'messages', '0'], + severity: DiagnosticSeverity.Error, + }, + { + message: 'Operation message does not belong to the specified channel.', + path: ['components', 'operations', 'UserSignedUp', 'messages', '1'], + severity: DiagnosticSeverity.Error, + } + ], + }, +]); diff --git a/test/ruleset/tester.ts b/test/ruleset/tester.ts index df08292aa..65c9971b0 100644 --- a/test/ruleset/tester.ts +++ b/test/ruleset/tester.ts @@ -4,6 +4,7 @@ import { AvroSchemaParser } from '@asyncapi/avro-schema-parser'; // allows testi // rulesets import { coreRuleset, recommendedRuleset } from '../../src/ruleset/ruleset'; import { v2CoreRuleset, v2SchemasRuleset, v2RecommendedRuleset } from '../../src/ruleset/v2'; +import { v3CoreRuleset } from '../../src/ruleset/v3'; import type { ParserOptions } from '../../src/parser'; import type { IRuleResult, RulesetDefinition } from '@stoplight/spectral-core'; @@ -15,6 +16,7 @@ type RuleNames = | RulesetRules | RulesetRules | RulesetRules> + | RulesetRules type Scenario = ReadonlyArray< Readonly<{ @@ -51,6 +53,7 @@ function createParser(rules: Array, options: ParserOptions = {}): Par [recommendedRuleset as RulesetDefinition, 'off'], [v2CoreRuleset as RulesetDefinition, 'off'], [v2RecommendedRuleset as RulesetDefinition, 'off'], + [v3CoreRuleset as RulesetDefinition, 'off'], ], rules: { 'asyncapi2-schemas': 'off', From c3cb73c5e963cf2134d4eb04ff77457f2513aacc Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Mon, 27 Nov 2023 19:28:46 +0100 Subject: [PATCH 119/126] chore(release): v3.0.0-next-major-spec.13 (#912) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 97bde9702..f7a284f12 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.12", + "version": "3.0.0-next-major-spec.13", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.12", + "version": "3.0.0-next-major-spec.13", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.9", diff --git a/package.json b/package.json index f0ccfad78..467da8317 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.12", + "version": "3.0.0-next-major-spec.13", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From e6cbd7495cda03ed0fccdb079460b110f76f03fc Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Tue, 28 Nov 2023 14:08:01 +0100 Subject: [PATCH 120/126] feat: add Spectral rules to validate required operation channe and channel servers field (#913) --- src/ruleset/v3/ruleset.ts | 33 +++ ...quired-channel-servers-unambiguity.spec.ts | 210 ++++++++++++++ ...ired-operation-channel-unambiguity.spec.ts | 261 ++++++++++++++++++ 3 files changed, 504 insertions(+) create mode 100644 test/ruleset/rules/v3/asyncapi3-required-channel-servers-unambiguity.spec.ts create mode 100644 test/ruleset/rules/v3/asyncapi3-required-operation-channel-unambiguity.spec.ts diff --git a/src/ruleset/v3/ruleset.ts b/src/ruleset/v3/ruleset.ts index 56f7b6823..724339e84 100644 --- a/src/ruleset/v3/ruleset.ts +++ b/src/ruleset/v3/ruleset.ts @@ -2,6 +2,7 @@ import { AsyncAPIFormats } from '../formats'; import { operationMessagesUnambiguity } from './functions/operationMessagesUnambiguity'; +import { pattern } from '@stoplight/spectral-functions'; export const v3CoreRuleset = { description: 'Core AsyncAPI 3.x.x ruleset.', @@ -24,5 +25,37 @@ export const v3CoreRuleset = { function: operationMessagesUnambiguity, }, }, + 'asyncapi3-required-operation-channel-unambiguity': { + description: 'The "channel" field of an operation under the root "operations" object must always reference a channel under the root "channels" object.', + severity: 'error', + recommended: true, + resolved: false, // We use the JSON pointer to match the channel. + given: '$.operations.*', + then: { + field: 'channel.$ref', + function: pattern, + functionOptions: { + match: '#\\/channels\\/', // If doesn't match, rule fails. + }, + }, + }, + + /** + * Channel Object rules + */ + 'asyncapi3-required-channel-servers-unambiguity': { + description: 'The "servers" field of a channel under the root "channels" object must always reference a subset of the servers under the root "servers" object.', + severity: 'error', + recommended: true, + resolved: false, // We use the JSON pointer to match the channel. + given: '$.channels.*', + then: { + field: '$.servers.*.$ref', + function: pattern, + functionOptions: { + match: '#\\/servers\\/', // If doesn't match, rule fails. + }, + }, + } }, }; diff --git a/test/ruleset/rules/v3/asyncapi3-required-channel-servers-unambiguity.spec.ts b/test/ruleset/rules/v3/asyncapi3-required-channel-servers-unambiguity.spec.ts new file mode 100644 index 000000000..1a299eef9 --- /dev/null +++ b/test/ruleset/rules/v3/asyncapi3-required-channel-servers-unambiguity.spec.ts @@ -0,0 +1,210 @@ +import { testRule, DiagnosticSeverity } from '../../tester'; + +testRule('asyncapi3-required-channel-servers-unambiguity', [ + { + name: 'valid case - required channel (under root) server field points to a subset of required servers (under root)', + document: { + asyncapi: '3.0.0', + info: { + title: 'Account Service', + version: '1.0.0' + }, + servers: { + prod: { + host: 'my-api.com', + protocol: 'ws', + }, + dev: { + host: 'localhost', + protocol: 'ws', + }, + }, + channels: { + UserSignedUp: { + servers: [ + { $ref: '#/servers/prod' }, + { $ref: '#/servers/dev' }, + ] + } + }, + }, + errors: [], + }, + { + name: 'valid case - required channel (under root) server field points to a subset of required servers (under root) from an external doc', + document: { + asyncapi: '3.0.0', + info: { + title: 'Account Service', + version: '1.0.0' + }, + channels: { + UserSignedUp: { + servers: [ + { $ref: 'http://foo.bar/components/file.yml#/servers/prod' }, + { $ref: 'http://foo.bar/components/file.yml#/servers/dev' }, + ] + } + }, + }, + errors: [], + }, + { + name: 'valid case - optional channel (under components) server field points to a subset of required servers (under root)', + document: { + asyncapi: '3.0.0', + info: { + title: 'Account Service', + version: '1.0.0' + }, + servers: { + prod: { + host: 'my-api.com', + protocol: 'ws', + }, + dev: { + host: 'localhost', + protocol: 'ws', + }, + }, + components: { + channels: { + UserSignedUp: { + servers: [ + { $ref: '#/servers/prod' }, + { $ref: '#/servers/dev' }, + ] + } + }, + }, + }, + errors: [], + }, + { + name: 'valid case - optional channel (under components) server field points to a subset of optional servers (under components)', + document: { + asyncapi: '3.0.0', + info: { + title: 'Account Service', + version: '1.0.0' + }, + components: { + servers: { + prod: { + host: 'my-api.com', + protocol: 'ws', + }, + dev: { + host: 'localhost', + protocol: 'ws', + }, + }, + channels: { + UserSignedUp: { + messages: { + UserSignedUp: { + payload: { + type: 'object', + properties: { + displayName: { + type: 'string' + }, + email: { + type: 'string' + } + } + } + } + } + } + }, + operations: { + UserSignedUp: { + action: 'send', + channel: { + $ref: '#/components/channels/UserSignedUp' + }, + messages: [ + { + $ref: '#/components/channels/UserSignedUp/messages/UserSignedUp' + } + ] + } + } + } + }, + errors: [], + }, + { + name: 'invalid case - required channel (in root) servers field points to a subset of optional servers (under components)', + document: { + asyncapi: '3.0.0', + info: { + title: 'Account Service', + version: '1.0.0' + }, + channels: { + UserSignedUp: { + servers: [ + { $ref: '#/components/servers/prod' }, + { $ref: '#/components/servers/dev' }, + ] + } + }, + components: { + servers: { + prod: { + host: 'my-api.com', + protocol: 'ws', + }, + dev: { + host: 'localhost', + protocol: 'ws', + }, + } + } + }, + errors: [ + { + message: 'The "servers" field of a channel under the root "channels" object must always reference a subset of the servers under the root "servers" object.', + path: ['channels', 'UserSignedUp', 'servers', '0', '$ref'], + severity: DiagnosticSeverity.Error, + }, + { + message: 'The "servers" field of a channel under the root "channels" object must always reference a subset of the servers under the root "servers" object.', + path: ['channels', 'UserSignedUp', 'servers', '1', '$ref'], + severity: DiagnosticSeverity.Error, + } + ], + }, + { + name: 'invalid case - required channel (in root) servers field points to a subset of optional servers (under components) from an external doc', + document: { + asyncapi: '3.0.0', + info: { + title: 'Account Service', + version: '1.0.0' + }, + channels: { + UserSignedUp: { + servers: [ + { $ref: 'http://foo.bar/components/file.yml#/components/servers/prod' }, + { $ref: 'http://foo.bar/components/file.yml#/components/servers/dev' }, + ] + } + } + }, + errors: [ + { + message: 'The "servers" field of a channel under the root "channels" object must always reference a subset of the servers under the root "servers" object.', + path: ['channels', 'UserSignedUp', 'servers', '0', '$ref'], + severity: DiagnosticSeverity.Error, + }, + { + message: 'The "servers" field of a channel under the root "channels" object must always reference a subset of the servers under the root "servers" object.', + path: ['channels', 'UserSignedUp', 'servers', '1', '$ref'], + severity: DiagnosticSeverity.Error, + } + ], + }, +]); diff --git a/test/ruleset/rules/v3/asyncapi3-required-operation-channel-unambiguity.spec.ts b/test/ruleset/rules/v3/asyncapi3-required-operation-channel-unambiguity.spec.ts new file mode 100644 index 000000000..44e269bf9 --- /dev/null +++ b/test/ruleset/rules/v3/asyncapi3-required-operation-channel-unambiguity.spec.ts @@ -0,0 +1,261 @@ +import { testRule, DiagnosticSeverity } from '../../tester'; + +testRule('asyncapi3-required-operation-channel-unambiguity', [ + { + name: 'valid case - required operation (under root) channel field points to a required channel (under root)', + document: { + asyncapi: '3.0.0', + info: { + title: 'Account Service', + version: '1.0.0' + }, + channels: { + UserSignedUp: { + messages: { + UserSignedUp: { + payload: { + type: 'object', + properties: { + displayName: { + type: 'string' + }, + email: { + type: 'string' + } + } + } + } + } + } + }, + operations: { + UserSignedUp: { + action: 'send', + channel: { + $ref: '#/channels/UserSignedUp' + }, + messages: [ + { + $ref: '#/channels/UserSignedUp/messages/UserSignedUp' + } + ] + } + } + }, + errors: [], + }, + { + name: 'valid case - required operation (under root) channel field points to a required channel (under root) from an external doc', + document: { + asyncapi: '3.0.0', + info: { + title: 'Account Service', + version: '1.0.0' + }, + channels: { + UserSignedUp: { + messages: { + UserSignedUp: { + payload: { + type: 'object', + properties: { + displayName: { + type: 'string' + }, + email: { + type: 'string' + } + } + } + } + } + } + }, + operations: { + UserSignedUp: { + action: 'send', + channel: { + $ref: 'http://foo.bar/components/file.yml#/channels/UserSignedUp' + }, + messages: [ + { + $ref: 'http://foo.bar/components/file.yml#/channels/UserSignedUp/messages/UserSignedUp' + } + ] + } + } + }, + errors: [], + }, + { + name: 'valid case - optional operation (under components) channel field points to a required channel (under root)', + document: { + asyncapi: '3.0.0', + info: { + title: 'Account Service', + version: '1.0.0' + }, + channels: { + UserSignedUp: { + messages: { + UserSignedUp: { + payload: { + type: 'object', + properties: { + displayName: { + type: 'string' + }, + email: { + type: 'string' + } + } + } + } + } + } + }, + components: { + operations: { + UserSignedUp: { + action: 'send', + channel: { + $ref: '#/channels/UserSignedUp' + }, + messages: [ + { + $ref: '#/channels/UserSignedUp/messages/UserSignedUp' + } + ] + } + } + } + }, + errors: [], + }, + { + name: 'valid case - optional operation (under components) channel field points to an optional channel (under components)', + document: { + asyncapi: '3.0.0', + info: { + title: 'Account Service', + version: '1.0.0' + }, + components: { + channels: { + UserSignedUp: { + messages: { + UserSignedUp: { + payload: { + type: 'object', + properties: { + displayName: { + type: 'string' + }, + email: { + type: 'string' + } + } + } + } + } + } + }, + operations: { + UserSignedUp: { + action: 'send', + channel: { + $ref: '#/components/channels/UserSignedUp' + }, + messages: [ + { + $ref: '#/components/channels/UserSignedUp/messages/UserSignedUp' + } + ] + } + } + } + }, + errors: [], + }, + { + name: 'invalid case - required operation (in root) channel field points to an optional channel (under components)', + document: { + asyncapi: '3.0.0', + info: { + title: 'Account Service', + version: '1.0.0' + }, + operations: { + UserSignedUp: { + action: 'send', + channel: { + $ref: '#/components/channels/UserSignedUp' + }, + messages: [ + { + $ref: '#/components/channels/UserSignedUp/messages/UserSignedUp' + } + ] + } + }, + components: { + channels: { + UserSignedUp: { + messages: { + UserSignedUp: { + payload: { + type: 'object', + properties: { + displayName: { + type: 'string' + }, + email: { + type: 'string' + } + } + } + } + } + } + }, + }, + }, + errors: [ + { + message: 'The "channel" field of an operation under the root "operations" object must always reference a channel under the root "channels" object.', + path: ['operations', 'UserSignedUp', 'channel', '$ref'], + severity: DiagnosticSeverity.Error, + } + ], + }, + { + name: 'invalid case - required operation (in root) channel field points to an optional channel (under components) from an external doc', + document: { + asyncapi: '3.0.0', + info: { + title: 'Account Service', + version: '1.0.0' + }, + operations: { + UserSignedUp: { + action: 'send', + channel: { + $ref: 'http://foo.bar/components/file.yml#/components/channels/UserSignedUp' + }, + messages: [ + { + $ref: 'http://foo.bar/components/file.yml#/components/channels/UserSignedUp/messages/UserSignedUp' + } + ] + } + } + }, + errors: [ + { + message: 'The "channel" field of an operation under the root "operations" object must always reference a channel under the root "channels" object.', + path: ['operations', 'UserSignedUp', 'channel', '$ref'], + severity: DiagnosticSeverity.Error, + } + ], + }, +]); From 62c58da62f96165144668415d03eeed2a9a9f9f8 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Tue, 28 Nov 2023 14:18:35 +0100 Subject: [PATCH 121/126] chore(release): v3.0.0-next-major-spec.14 (#914) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index f7a284f12..bc71a9e6f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.13", + "version": "3.0.0-next-major-spec.14", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.13", + "version": "3.0.0-next-major-spec.14", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.9", diff --git a/package.json b/package.json index 467da8317..be3413bd7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.13", + "version": "3.0.0-next-major-spec.14", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From 18ee6fe39a2f716d2632deca9b99ec88f4824011 Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Wed, 29 Nov 2023 10:26:46 -1000 Subject: [PATCH 122/126] fix!: traits, id and reply problems for v3 (#910) --- src/constants.ts | 1 + src/custom-operations/apply-traits.ts | 13 +- src/custom-operations/apply-unique-ids.ts | 25 +++ src/custom-operations/index.ts | 3 +- src/models/v3/channel.ts | 18 +- src/models/v3/message.ts | 16 +- src/models/v3/operation-reply.ts | 13 +- src/models/v3/operation.ts | 17 +- src/parse.ts | 23 ++- src/spec-types/v3.ts | 2 +- .../custom-operations/apply-traits-v3.spec.ts | 158 +++++++++++++++++- .../apply-unique-ids.spec.ts | 30 ++++ test/models/v3/operation-reply.spec.ts | 9 +- test/models/v3/server.spec.ts | 2 + 14 files changed, 283 insertions(+), 47 deletions(-) create mode 100644 src/custom-operations/apply-unique-ids.ts create mode 100644 test/custom-operations/apply-unique-ids.spec.ts diff --git a/src/constants.ts b/src/constants.ts index 4218714ca..e52868f98 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -14,6 +14,7 @@ export const xParserOriginalTraits = 'x-parser-original-traits'; export const xParserCircular = 'x-parser-circular'; export const xParserCircularProps = 'x-parser-circular-props'; +export const xParserObjectUniqueId = 'x-parser-unique-object-id'; export const EXTENSION_REGEX = /^x-[\w\d.\-_]+$/; diff --git a/src/custom-operations/apply-traits.ts b/src/custom-operations/apply-traits.ts index 990aca601..6d99453ff 100644 --- a/src/custom-operations/apply-traits.ts +++ b/src/custom-operations/apply-traits.ts @@ -51,12 +51,17 @@ function applyTraitsToObjectV2(value: Record) { const v3TraitPaths = [ // operations '$.operations.*', + '$.operations.*.channel.*', + '$.operations.*.channel.messages.*', + '$.operations.*.messages.*', '$.components.operations.*', - // messages + '$.components.operations.*.channel.*', + '$.components.operations.*.channel.messages.*', + '$.components.operations.*.messages.*', + // Channels '$.channels.*.messages.*', - '$.operations.*.messages.*', '$.components.channels.*.messages.*', - '$.components.operations.*.messages.*', + // messages '$.components.messages.*', ]; @@ -100,4 +105,4 @@ function applyTraitsToObjectV3(value: Record) { value[String(key)] = mergePatch(value[String(key)], trait[String(key)]); } } -} \ No newline at end of file +} diff --git a/src/custom-operations/apply-unique-ids.ts b/src/custom-operations/apply-unique-ids.ts new file mode 100644 index 000000000..d9804235a --- /dev/null +++ b/src/custom-operations/apply-unique-ids.ts @@ -0,0 +1,25 @@ +import { xParserObjectUniqueId } from '../constants'; + +/** + * This function applies unique ids for objects whose key's function as ids, ensuring that the key is part of the value. + * + * For v3; Apply unique ids to channel's, and message's + */ +export function applyUniqueIds(structure: any) { + const asyncapiVersion = structure.asyncapi.charAt(0); + switch (asyncapiVersion) { + case '3': + if (structure.channels) { + for (const [channelId, channel] of Object.entries(structure.channels as Record)) { + channel[xParserObjectUniqueId] = channelId; + if (channel.messages) { + for (const [messageId, message] of Object.entries(channel.messages as Record)) { + message[xParserObjectUniqueId] = messageId; + } + } + } + } + break; + } +} + \ No newline at end of file diff --git a/src/custom-operations/index.ts b/src/custom-operations/index.ts index 28754663a..70e923ff9 100644 --- a/src/custom-operations/index.ts +++ b/src/custom-operations/index.ts @@ -2,6 +2,7 @@ import { applyTraitsV2, applyTraitsV3 } from './apply-traits'; import { resolveCircularRefs } from './resolve-circular-refs'; import { parseSchemasV2, parseSchemasV3 } from './parse-schema'; import { anonymousNaming } from './anonymous-naming'; +import { checkCircularRefs } from './check-circular-refs'; import type { RulesetFunctionContext } from '@stoplight/spectral-core'; import type { Parser } from '../parser'; @@ -9,8 +10,8 @@ import type { ParseOptions } from '../parse'; import type { AsyncAPIDocumentInterface } from '../models'; import type { DetailedAsyncAPI } from '../types'; import type { v2, v3 } from '../spec-types'; -import { checkCircularRefs } from './check-circular-refs'; +export {applyUniqueIds} from './apply-unique-ids'; export async function customOperations(parser: Parser, document: AsyncAPIDocumentInterface, detailed: DetailedAsyncAPI, inventory: RulesetFunctionContext['documentInventory'], options: ParseOptions): Promise { switch (detailed.semver.major) { case 2: return operationsV2(parser, document, detailed, inventory, options); diff --git a/src/models/v3/channel.ts b/src/models/v3/channel.ts index 0734d2b35..9c9c14749 100644 --- a/src/models/v3/channel.ts +++ b/src/models/v3/channel.ts @@ -6,9 +6,8 @@ import { Operations } from './operations'; import { Operation } from './operation'; import { Servers } from './servers'; import { Server } from './server'; - +import { xParserObjectUniqueId } from '../../constants'; import { CoreModel } from './mixins'; - import type { ChannelInterface } from '../channel'; import type { ChannelParametersInterface } from '../channel-parameters'; import type { MessagesInterface } from '../messages'; @@ -16,7 +15,6 @@ import type { OperationsInterface } from '../operations'; import type { OperationInterface } from '../operation'; import type { ServersInterface } from '../servers'; import type { ServerInterface } from '../server'; - import type { v3 } from '../../spec-types'; export class Channel extends CoreModel implements ChannelInterface { @@ -30,8 +28,8 @@ export class Channel extends CoreModel impleme servers(): ServersInterface { const servers: ServerInterface[] = []; - const allowedServers = this._json.servers || []; - Object.entries(this._meta.asyncapi?.parsed.servers || {}).forEach(([serverName, server]) => { + const allowedServers = this._json.servers ?? []; + Object.entries(this._meta.asyncapi?.parsed.servers ?? {}).forEach(([serverName, server]) => { if (allowedServers.length === 0 || allowedServers.includes(server)) { servers.push(this.createModel(Server, server, { id: serverName, pointer: `/servers/${serverName}` })); } @@ -41,8 +39,10 @@ export class Channel extends CoreModel impleme operations(): OperationsInterface { const operations: OperationInterface[] = []; - Object.entries(((this._meta.asyncapi?.parsed as v3.AsyncAPIObject)?.operations || {})).forEach(([operationId, operation]) => { - if ((operation as v3.OperationObject).channel === this._json) { + Object.entries(((this._meta.asyncapi?.parsed as v3.AsyncAPIObject)?.operations ?? {} as v3.OperationsObject)).forEach(([operationId, operation]) => { + const operationChannelId = ((operation as v3.OperationObject).channel as any)[xParserObjectUniqueId]; + const channelId = (this._json as any)[xParserObjectUniqueId]; + if (operationChannelId === channelId) { operations.push( this.createModel(Operation, operation as v3.OperationObject, { id: operationId, pointer: `/operations/${operationId}` }), ); @@ -53,7 +53,7 @@ export class Channel extends CoreModel impleme messages(): MessagesInterface { return new Messages( - Object.entries(this._json.messages || {}).map(([messageName, message]) => { + Object.entries(this._json.messages ?? {}).map(([messageName, message]) => { return this.createModel(Message, message as v3.MessageObject, { id: messageName, pointer: this.jsonPath(`messages/${messageName}`) }); }) ); @@ -61,7 +61,7 @@ export class Channel extends CoreModel impleme parameters(): ChannelParametersInterface { return new ChannelParameters( - Object.entries(this._json.parameters || {}).map(([channelParameterName, channelParameter]) => { + Object.entries(this._json.parameters ?? {}).map(([channelParameterName, channelParameter]) => { return this.createModel(ChannelParameter, channelParameter as v3.ParameterObject, { id: channelParameterName, pointer: this.jsonPath(`parameters/${channelParameterName}`), diff --git a/src/models/v3/message.ts b/src/models/v3/message.ts index 123079927..3fe3f05e8 100644 --- a/src/models/v3/message.ts +++ b/src/models/v3/message.ts @@ -6,7 +6,7 @@ import { MessageTraits } from './message-traits'; import { MessageTrait } from './message-trait'; import { Servers } from './servers'; import { Schema } from './schema'; - +import { xParserObjectUniqueId } from '../../constants'; import type { ChannelsInterface } from '../channels'; import type { ChannelInterface } from '../channel'; import type { MessageInterface } from '../message'; @@ -16,7 +16,6 @@ import type { OperationInterface } from '../operation'; import type { ServersInterface } from '../servers'; import type { ServerInterface } from '../server'; import type { SchemaInterface } from '../schema'; - import type { v3 } from '../../spec-types'; export class Message extends MessageTrait implements MessageInterface { @@ -58,6 +57,7 @@ export class Message extends MessageTrait implements MessageIn } channels(): ChannelsInterface { + const thisMessageId = (this._json)[xParserObjectUniqueId]; const channels: ChannelInterface[] = []; const channelsData: any[] = []; this.operations().forEach(operation => { @@ -73,7 +73,10 @@ export class Message extends MessageTrait implements MessageIn Object.entries((this._meta.asyncapi?.parsed as v3.AsyncAPIObject)?.channels || {}).forEach(([channelId, channelData]) => { const channelModel = this.createModel(Channel, channelData as v3.ChannelObject, { id: channelId, pointer: `/channels/${channelId}` }); - if (!channelsData.includes(channelData) && channelModel.messages().some(m => m.json() === this._json)) { + if (!channelsData.includes(channelData) && channelModel.messages().some(m => { + const messageId = (m as any)[xParserObjectUniqueId]; + return messageId === thisMessageId; + })) { channelsData.push(channelData); channels.push(channelModel); } @@ -83,10 +86,15 @@ export class Message extends MessageTrait implements MessageIn } operations(): OperationsInterface { + const thisMessageId = (this._json)[xParserObjectUniqueId]; const operations: OperationInterface[] = []; Object.entries((this._meta.asyncapi?.parsed as v3.AsyncAPIObject)?.operations || {}).forEach(([operationId, operation]) => { const operationModel = this.createModel(Operation, operation as v3.OperationObject, { id: operationId, pointer: `/operations/${operationId}` }); - if (operationModel.messages().some(m => m.json() === this._json)) { + const operationHasMessage = operationModel.messages().some(m => { + const messageId = (m as any)[xParserObjectUniqueId]; + return messageId === thisMessageId; + }); + if (operationHasMessage) { operations.push(operationModel); } }); diff --git a/src/models/v3/operation-reply.ts b/src/models/v3/operation-reply.ts index 93427d388..ec6f9d4b8 100644 --- a/src/models/v3/operation-reply.ts +++ b/src/models/v3/operation-reply.ts @@ -4,14 +4,12 @@ import { Message } from './message'; import { Messages } from './messages'; import { MessagesInterface } from '../messages'; import { OperationReplyAddress } from './operation-reply-address'; - import { extensions } from './mixins'; - +import { xParserObjectUniqueId } from '../../constants'; import type { ExtensionsInterface } from '../extensions'; import type { OperationReplyInterface } from '../operation-reply'; import type { OperationReplyAddressInterface } from '../operation-reply-address'; import type { ChannelInterface } from '../channel'; - import type { v3 } from '../../spec-types'; export class OperationReply extends BaseModel implements OperationReplyInterface { @@ -35,14 +33,17 @@ export class OperationReply extends BaseModel { - return this.createModel(Message, message as v3.MessageObject, { id: messageName, pointer: this.jsonPath(`messages/${messageName}`) }); + Object.values(this._json.messages ?? {}).map((message) => { + const messageId = (message as any)[xParserObjectUniqueId]; + return this.createModel(Message, message as v3.MessageObject, { id: messageId, pointer: this.jsonPath(`messages/${messageId}`) }); }) ); } diff --git a/src/models/v3/operation.ts b/src/models/v3/operation.ts index 412fbb4c7..f18753134 100644 --- a/src/models/v3/operation.ts +++ b/src/models/v3/operation.ts @@ -17,6 +17,7 @@ import type { ServersInterface } from '../servers'; import type { ServerInterface } from '../server'; import type { v3 } from '../../spec-types'; +import { xParserObjectUniqueId } from '../../constants'; export class Operation extends OperationTrait implements OperationInterface { action(): OperationAction { @@ -48,23 +49,21 @@ export class Operation extends OperationTrait implements Ope channels(): ChannelsInterface { if (this._json.channel) { - for (const [channelName, channel] of Object.entries(this._meta.asyncapi?.parsed.channels || {})) { - if (channel === this._json.channel) { - return new Channels([ - this.createModel(Channel, this._json.channel as v3.ChannelObject, { id: channelName, pointer: `/channels/${channelName}` }) - ]); - } - } + const operationChannelId = (this._json.channel as any)[xParserObjectUniqueId]; + return new Channels([ + this.createModel(Channel, this._json.channel as v3.ChannelObject, { id: operationChannelId, pointer: `/channels/${operationChannelId}` }) + ]); } return new Channels([]); } - + messages(): MessagesInterface { const messages: MessageInterface[] = []; if (Array.isArray(this._json.messages)) { this._json.messages.forEach((message, index) => { + const messageId = (message as any)[xParserObjectUniqueId]; messages.push( - this.createModel(Message, message as v3.MessageObject, { id: '', pointer: this.jsonPath(`messages/${index}`) }) + this.createModel(Message, message as v3.MessageObject, { id: messageId, pointer: this.jsonPath(`messages/${index}`) }) ); }); return new Messages(messages); diff --git a/src/parse.ts b/src/parse.ts index 988f9ae51..479bd9dfb 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -1,6 +1,6 @@ import { AsyncAPIDocumentInterface, ParserAPIVersion } from './models'; -import { customOperations } from './custom-operations'; +import { applyUniqueIds, customOperations } from './custom-operations'; import { validate } from './validate'; import { copy } from './stringify'; import { createAsyncAPIDocument } from './document'; @@ -38,13 +38,26 @@ const defaultOptions: ParseOptions = { validateOptions: {}, __unstable: {}, }; - +import yaml from 'js-yaml'; export async function parse(parser: Parser, spectral: Spectral, asyncapi: Input, options: ParseOptions = {}): Promise { let spectralDocument: Document | undefined; try { options = mergePatch(defaultOptions, options); - const { validated, diagnostics, extras } = await validate(parser, spectral, asyncapi, { ...options.validateOptions, source: options.source, __unstable: options.__unstable }); + // Normalize input to always be JSON + let loadedObj; + if (typeof asyncapi === 'string') { + try { + loadedObj = yaml.load(asyncapi); + } catch (e) { + loadedObj = JSON.parse(asyncapi); + } + } else { + loadedObj = asyncapi; + } + // Apply unique ids before resolving references + applyUniqueIds(loadedObj); + const { validated, diagnostics, extras } = await validate(parser, spectral, loadedObj, { ...options.validateOptions, source: options.source, __unstable: options.__unstable }); if (validated === undefined) { return { document: undefined, @@ -58,12 +71,12 @@ export async function parse(parser: Parser, spectral: Spectral, asyncapi: Input, // unfreeze the object - Spectral makes resolved document "freezed" const validatedDoc = copy(validated as Record); - const detailed = createDetailedAsyncAPI(validatedDoc, asyncapi as DetailedAsyncAPI['input'], options.source); + const detailed = createDetailedAsyncAPI(validatedDoc, loadedObj as DetailedAsyncAPI['input'], options.source); const document = createAsyncAPIDocument(detailed); setExtension(xParserSpecParsed, true, document); setExtension(xParserApiVersion, ParserAPIVersion, document); await customOperations(parser, document, detailed, inventory, options); - + return { document, diagnostics, diff --git a/src/spec-types/v3.ts b/src/spec-types/v3.ts index e24da3bb6..dfad71f7f 100644 --- a/src/spec-types/v3.ts +++ b/src/spec-types/v3.ts @@ -143,7 +143,7 @@ export interface OperationTraitObject extends SpecificationExtensions { export interface OperationReplyObject extends SpecificationExtensions { channel?: ChannelObject | ReferenceObject; - messages?: MessagesObject; + messages?: (MessageObject | ReferenceObject)[]; address?: OperationReplyAddressObject | ReferenceObject; } diff --git a/test/custom-operations/apply-traits-v3.spec.ts b/test/custom-operations/apply-traits-v3.spec.ts index 61ff909ec..1561b783a 100644 --- a/test/custom-operations/apply-traits-v3.spec.ts +++ b/test/custom-operations/apply-traits-v3.spec.ts @@ -1,3 +1,4 @@ +import { xParserObjectUniqueId } from '../../src/constants'; import { AsyncAPIDocumentV3 } from '../../src/models'; import { Parser } from '../../src/parser'; @@ -56,11 +57,11 @@ describe('custom operations - apply traits v3', function() { const someOperation1 = v3Document?.json()?.operations?.someOperation1; delete someOperation1?.traits; - expect(someOperation1).toEqual({ action: 'send', channel: {}, description: 'another description' }); + expect(someOperation1).toEqual({ action: 'send', channel: { 'x-parser-unique-object-id': 'channel1' }, description: 'another description' }); const someOperation2 = v3Document?.json()?.operations?.someOperation2; delete someOperation2?.traits; - expect(someOperation2).toEqual({ action: 'send', channel: {}, description: 'root description' }); + expect(someOperation2).toEqual({ action: 'send', channel: { 'x-parser-unique-object-id': 'channel1' }, description: 'root description' }); }); it('should apply traits to messages (channels)', async function() { @@ -112,11 +113,11 @@ describe('custom operations - apply traits v3', function() { const message1 = v3Document?.json()?.channels?.someChannel1?.messages?.someMessage; delete (message1 as v3.MessageObject)?.traits; - expect(message1).toEqual({ summary: 'some summary', description: 'another description', 'x-parser-message-name': 'someMessage' }); + expect(message1).toEqual({ summary: 'some summary', description: 'another description', 'x-parser-message-name': 'someMessage', 'x-parser-unique-object-id': 'someMessage' }); const message2 = v3Document?.json()?.channels?.someChannel2?.messages?.someMessage; delete (message2 as v3.MessageObject)?.traits; - expect(message2).toEqual({ summary: 'root summary', description: 'root description', 'x-parser-message-name': 'someMessage' }); + expect(message2).toEqual({ summary: 'root summary', description: 'root description', 'x-parser-message-name': 'someMessage', 'x-parser-unique-object-id': 'someMessage' }); }); it('should apply traits to messages (components)', async function() { @@ -168,4 +169,153 @@ describe('custom operations - apply traits v3', function() { delete (message2 as v3.MessageObject)?.traits; expect(message2).toEqual({ summary: 'root summary', description: 'root description', 'x-parser-message-name': 'someMessage2' }); }); + + it('iterative functions should still work after traits have been applied', async function() { + const documentRaw = { + asyncapi: '3.0.0', + info: { + title: 'Streetlights Kafka API', + version: '1.0.0', + description: 'The Smartylighting Streetlights API allows you to remotely manage the city lights.\n\n### Check out its awesome features:\n\n* Turn a specific streetlight on/off 🌃\n* Dim a specific streetlight 😎\n* Receive real-time information about environmental lighting conditions 📈\n', + license: { + name: 'Apache 2.0', + url: 'https://www.apache.org/licenses/LICENSE-2.0' + } + }, + defaultContentType: 'application/json', + channels: { + 'smartylighting.streetlights.1.0.event.{streetlightId}.lighting.measured': { + address: 'smartylighting.streetlights.1.0.event.{streetlightId}.lighting.measured', + messages: { + 'receiveLightMeasurement.message': { + $ref: '#/components/messages/lightMeasured' + } + }, + description: 'The topic on which measured values may be produced and consumed.', + parameters: { + streetlightId: { + $ref: '#/components/parameters/streetlightId' + } + } + } + }, + operations: { + receiveLightMeasurement: { + action: 'receive', + channel: { + $ref: '#/channels/smartylighting.streetlights.1.0.event.{streetlightId}.lighting.measured' + }, + summary: 'Inform about environmental lighting conditions of a particular streetlight.', + traits: [ + { + $ref: '#/components/operationTraits/kafka' + } + ], + messages: [ + { + $ref: '#/components/messages/lightMeasured' + } + ] + } + }, + components: { + messages: { + lightMeasured: { + name: 'lightMeasured', + title: 'Light measured', + summary: 'Inform about environmental lighting conditions of a particular streetlight.', + contentType: 'application/json', + traits: [ + { + $ref: '#/components/messageTraits/commonHeaders' + } + ], + payload: { + $ref: '#/components/schemas/lightMeasuredPayload' + } + } + }, + schemas: { + lightMeasuredPayload: { + type: 'object', + properties: { + lumens: { + type: 'integer', + minimum: 0, + description: 'Light intensity measured in lumens.' + }, + sentAt: { + $ref: '#/components/schemas/sentAt' + } + } + }, + sentAt: { + type: 'string', + format: 'date-time', + description: 'Date and time when the message was sent.' + } + }, + parameters: { + streetlightId: { + description: 'The ID of the streetlight.' + } + }, + messageTraits: { + commonHeaders: { + headers: { + type: 'object', + properties: { + 'my-app-header': { + type: 'integer', + minimum: 0, + maximum: 100 + } + } + } + } + }, + operationTraits: { + kafka: { + bindings: { + kafka: { + clientId: { + type: 'string', + enum: [ + 'my-app-id' + ] + } + } + } + } + } + } + }; + const { document } = await parser.parse(documentRaw); + + const v3Document = document as AsyncAPIDocumentV3; + expect(v3Document).toBeInstanceOf(AsyncAPIDocumentV3); + const expectedOperationId = 'receiveLightMeasurement'; + const expectedChannelId = 'smartylighting.streetlights.1.0.event.{streetlightId}.lighting.measured'; + const operations = v3Document.operations(); + expect(operations.length).toEqual(1); + const operation = operations[0]; + expect(operation.id()).toEqual(expectedOperationId); + const operationChannels = operation.channels().all(); + expect(operationChannels.length).toEqual(1); + const lightMeasuredChannel = operationChannels[0]; + expect(lightMeasuredChannel.json()[xParserObjectUniqueId]).toEqual(expectedChannelId); + const channelOperations = lightMeasuredChannel.operations().all(); + expect(channelOperations.length).toEqual(1); + const circularOperation = channelOperations[0]; + expect(circularOperation.id()).toEqual(expectedOperationId); + + const channels = v3Document.channels(); + expect(channels.length).toEqual(1); + const channel = channels[0]; + expect(channel.json()[xParserObjectUniqueId]).toEqual(expectedChannelId); + const channelOperations2 = channel.operations().all(); + expect(channelOperations2.length).toEqual(1); + const operation2 = channelOperations2[0]; + expect(operation2.id()).toEqual(expectedOperationId); + }); }); diff --git a/test/custom-operations/apply-unique-ids.spec.ts b/test/custom-operations/apply-unique-ids.spec.ts new file mode 100644 index 000000000..2fc32012b --- /dev/null +++ b/test/custom-operations/apply-unique-ids.spec.ts @@ -0,0 +1,30 @@ +import { applyUniqueIds } from '../../src/custom-operations'; + +describe('applying unique ids', function() { + it('should not do anything for v2 inputs', async function() { + const input = {asyncapi: '2.0.0'}; + const output = {...input}; + applyUniqueIds(output); + expect(input).toEqual(output); + }); + describe('for v3', function() { + it('should work with no channels input', async function() { + const input = {asyncapi: '3.0.0'}; + const output = {...input}; + applyUniqueIds(output); + expect(input).toEqual(output); + }); + it('should set unique id when input has channels', async function() { + const input = {asyncapi: '3.0.0', channels: {testChannel: {}}}; + const output = {...input, channels: {testChannel: {'x-parser-unique-object-id': 'testChannel'}}}; + applyUniqueIds(input); + expect(input).toEqual(output); + }); + it('should set unique id when input has messages in channels', async function() { + const input = {asyncapi: '3.0.0', channels: {testChannel: {messages: {testMessage: {}}}}}; + const output = {...input, channels: {testChannel: {'x-parser-unique-object-id': 'testChannel', messages: {testMessage: {'x-parser-unique-object-id': 'testMessage'}}}}}; + applyUniqueIds(input); + expect(input).toEqual(output); + }); + }); +}); diff --git a/test/models/v3/operation-reply.spec.ts b/test/models/v3/operation-reply.spec.ts index 3f065d5a1..c56cd46bb 100644 --- a/test/models/v3/operation-reply.spec.ts +++ b/test/models/v3/operation-reply.spec.ts @@ -64,20 +64,21 @@ describe('OperationReply model', function() { describe('.messages()', function() { it('should return collection of messages - single message', function() { - const d = new OperationReply({ messages: { someMessage: {} } }); + const d = new OperationReply({ messages: [{'x-parser-unique-object-id': 'testMessage'}] }); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(1); expect(d.messages().all()[0]).toBeInstanceOf(Message); + expect(d.messages().all()[0].id()).toEqual('testMessage'); }); it('should return collection of messages - more than one messages', function() { - const d = new OperationReply({ messages: { someMessage1: {}, someMessage2: {} } }); + const d = new OperationReply({ messages: [{'x-parser-unique-object-id': 'testMessage1'}, {'x-parser-unique-object-id': 'testMessage2'}] }); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(2); expect(d.messages().all()[0]).toBeInstanceOf(Message); - expect(d.messages().all()[0].id()).toEqual('someMessage1'); + expect(d.messages().all()[0].id()).toEqual('testMessage1'); expect(d.messages().all()[1]).toBeInstanceOf(Message); - expect(d.messages().all()[1].id()).toEqual('someMessage2'); + expect(d.messages().all()[1].id()).toEqual('testMessage2'); }); it('should return undefined if address is not present', function() { diff --git a/test/models/v3/server.spec.ts b/test/models/v3/server.spec.ts index 9059fac8c..2669bc8dd 100644 --- a/test/models/v3/server.spec.ts +++ b/test/models/v3/server.spec.ts @@ -13,6 +13,7 @@ import { SecurityRequirement } from '../../../src/models/v3/security-requirement import { serializeInput, assertCoreModel } from './utils'; import type { v3 } from '../../../src/spec-types'; +import { xParserObjectUniqueId } from '../../../src/constants'; const doc = { production: { @@ -157,6 +158,7 @@ describe('Server Model', function () { it('should return collection of operations - server available only in particular channel', function() { const doc = serializeInput({}); const channel = { servers: [doc] }; + channel[xParserObjectUniqueId] = 'unique-id'; const d = new Server(doc, { asyncapi: { parsed: { channels: { someChannel: channel }, operations: { someOperation1: { channel }, someOperation2: { channel: { servers: [{}] } } } } } as any, pointer: '', id: 'production' }); expect(d.operations()).toBeInstanceOf(Operations); expect(d.operations().all()).toHaveLength(1); From 7d2906486eb04712e2e18b649a55bd952dde6b64 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 29 Nov 2023 21:37:43 +0100 Subject: [PATCH 123/126] chore(release): v3.0.0-next-major-spec.15 (#915) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index bc71a9e6f..51148463f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.14", + "version": "3.0.0-next-major-spec.15", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.14", + "version": "3.0.0-next-major-spec.15", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0-next-major-spec.9", diff --git a/package.json b/package.json index be3413bd7..e0ca27b44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.14", + "version": "3.0.0-next-major-spec.15", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" From d34cb00fd3f0327ca2546ff780cfd74fa2896c1f Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Thu, 30 Nov 2023 17:51:10 +0100 Subject: [PATCH 124/126] ci: disable code duplication analysis for files under src/spec-types (#918) --- .sonarcloud.properties | 2 +- src/spec-types/v3.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.sonarcloud.properties b/.sonarcloud.properties index 98a487f3c..3a9937a7b 100644 --- a/.sonarcloud.properties +++ b/.sonarcloud.properties @@ -1,3 +1,3 @@ # Disable specific duplicate code since it would introduce more complexity to reduce it. -sonar.cpd.exclusions=src/models/**/*.ts +sonar.cpd.exclusions=src/models/**/*.ts,src/spec-types/*.ts sonar.exclusions=test/**/* diff --git a/src/spec-types/v3.ts b/src/spec-types/v3.ts index dfad71f7f..766df3bf9 100644 --- a/src/spec-types/v3.ts +++ b/src/spec-types/v3.ts @@ -297,7 +297,6 @@ export type SecuritySchemaLocation = | 'password' | 'query' | 'header' - | 'header' | 'cookie'; export interface SecuritySchemeObjectBase extends SpecificationExtensions { From 50f4f643ae65f18fdf9d7bd09be2af8201b1d1ac Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Thu, 30 Nov 2023 10:08:01 -1000 Subject: [PATCH 125/126] feat: prepare for release (#920) --- README.md | 2 +- docs/migrations/v2-to-v3.md | 26 ++++++++++++++++++++++++++ package-lock.json | 14 +++++++------- package.json | 2 +- 4 files changed, 35 insertions(+), 9 deletions(-) create mode 100644 docs/migrations/v2-to-v3.md diff --git a/README.md b/README.md index d07c9462b..1e322c366 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Updated bundle for the browser is always attached to the GitHub Release. > This package has rewrote the Model API (old one) to [Intent API](https://github.com/asyncapi/parser-api). If you still need to use the old API, read the [Convert to the old API](#convert-to-the-old-api) section. > **Note** -> Read the [migration guide from v1 to v2](./docs/migrations/v1-to-v2.md). +> Read the [migration guide from v2 to v3](./docs/migrations/v2-to-v3.md). diff --git a/docs/migrations/v2-to-v3.md b/docs/migrations/v2-to-v3.md new file mode 100644 index 000000000..0441cb270 --- /dev/null +++ b/docs/migrations/v2-to-v3.md @@ -0,0 +1,26 @@ +# Migrating from v2 to v3 + +The ONLY thing that changes between v2 and v3 is that we now use [parser API v3](https://github.com/asyncapi/parser-api/commit/954a59e41ccdb70de51eb43901f61b79198fbb51) where v2 used [parser API v1](https://github.com/asyncapi/parser-api/commit/7dab1eeb796f8c8c079e5d0c4d671d55a60bc8ca). + +## Parser API v1 to v3 +There are only very few changes, for message and message traits. + +## Message + +```diff +- - messageId(): `string` | `undefined` +- - schemaFormat(): `string` ++ - schemaFormat(): `string` | `undefined` +``` + +Since `messageId` have been removed, you need to use `id` instead. + +## MessageTrait + +```diff +- - messageId(): `string` | `undefined` +- - schemaFormat(): `string` ++ - schemaFormat(): `string` | `undefined` +``` + +Since `messageId` have been removed, you need to use `id` instead. diff --git a/package-lock.json b/package-lock.json index b14f5bf55..b1e200187 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "3.0.0-next-major-spec.15", "license": "Apache-2.0", "dependencies": { - "@asyncapi/specs": "^6.0.0-next-major-spec.9", + "@asyncapi/specs": "^6.0.0", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -129,9 +129,9 @@ } }, "node_modules/@asyncapi/specs": { - "version": "6.0.0-next-major-spec.9", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.0.0-next-major-spec.9.tgz", - "integrity": "sha512-fmOITQoYMw3I2Vai7u/vT0q4yHMBkeXTPByHhrqCaxnwX59Yb2vsMmukHjq478qqCP/U/TmzVvGpEy0JBMaelw==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.0.0.tgz", + "integrity": "sha512-/HikjNcrTR/OgZmXWHYkdLdoJQUm80zcM5dnr1dx2R92WRmMQ0wweEJyFXCZwwyzoRkPHMD3RU4h3ppM8pYHRQ==", "dependencies": { "@types/json-schema": "^7.0.11" } @@ -11193,9 +11193,9 @@ } }, "@asyncapi/specs": { - "version": "6.0.0-next-major-spec.9", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.0.0-next-major-spec.9.tgz", - "integrity": "sha512-fmOITQoYMw3I2Vai7u/vT0q4yHMBkeXTPByHhrqCaxnwX59Yb2vsMmukHjq478qqCP/U/TmzVvGpEy0JBMaelw==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.0.0.tgz", + "integrity": "sha512-/HikjNcrTR/OgZmXWHYkdLdoJQUm80zcM5dnr1dx2R92WRmMQ0wweEJyFXCZwwyzoRkPHMD3RU4h3ppM8pYHRQ==", "requires": { "@types/json-schema": "^7.0.11" } diff --git a/package.json b/package.json index 49093732e..0b6dc70a7 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "prepublishOnly": "npm run generate:assets" }, "dependencies": { - "@asyncapi/specs": "^6.0.0-next-major-spec.9", + "@asyncapi/specs": "^6.0.0", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", From ecb1d4c9c751c352a463d8e7f1c1b31a969eea94 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 30 Nov 2023 21:20:18 +0100 Subject: [PATCH 126/126] chore(release): v3.0.0-next-major-spec.16 (#921) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index b1e200187..f8b6f251d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.15", + "version": "3.0.0-next-major-spec.16", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.15", + "version": "3.0.0-next-major-spec.16", "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^6.0.0", diff --git a/package.json b/package.json index 0b6dc70a7..fdacbb69c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/parser", - "version": "3.0.0-next-major-spec.15", + "version": "3.0.0-next-major-spec.16", "description": "JavaScript AsyncAPI parser.", "bugs": { "url": "https://github.com/asyncapi/parser-js/issues"

xaL1ENE-|@fyP6ny zxeKzGAq=8M#(`#<;!YwL>FTQF9BSn+#AsFwT{mfxO!i&9eT6p3lff`c#j7LXhBGsU zbgG(SDAOrS78c$3m(D%FmuKg23p!&$N2pp4=!gOd00S~?M3@G-A&n0+WyqDCLAxQ%1^F8GG#!gH#cGeX{ix;rZhrOH)c4^c)ElGxQgo0qqf4*Ahgx;pLXM6W)(CmiCr+7x^;9$- z5XFgZ72P^@E@~fSuV5e4?6N{~x6R1TMp#e`774l8hoN|9`Q@rI(-c^s<_J;bzMpt- zx`&Y(2`FgXo4^K^UK)LoVqlo2P5I*UV0bqQPhn9G%krm*#E3%NNXC8S1)QTavMfhg z74$I)PyJzB)pP!ez2+y#annD(A0!nS_#>p}2Tab_07x&MAP(8S=(w(;5cwI3k&m1S z8;t?HjXadIeev`@_Cr4F@wWgU2?LK>T8xC0q$?mwP|te2UP3X_QWQj6t}G8OoR}5@ z{0f0eA)g_hG@&*+av7ElfSv>fL4TD6Y;Rs#fJh<>5U*H(A0X;S1R=PW`vABq3o1#9 z1(rlxsl+7|7Q$=Qg1j#`c15N4H8`N2IbVDGl8hn&=M*oTb@`B|2{>yy+|m#uWR#B- z`^bGnQ4nGU6(FDr2rv}DOB*&QPvXJ&9{y0OhwikZ)$j$H3%{JItPy2iX(8#_8n({B z;{)EzN;rk+C6s~zys;(=yz_%41zsVBA0UQYDA9_8*z`qyVb~!bAr=~Y>c?J155-sL zrFh~TXXn-F&(1mZ8O~m+K?51m7mK8Sy$JSo`ZW__Df!@vn#5PAOFU5yq;gSN_y94_ zysG^01@gi#r@HFgK~in*;H`S@3a+NBT9QwP?aIetd4%6WA>zg+W2)AEtybMMil=n^ zC}I_YhFc3_o+FZ@&@+gfVI(?Fk(>EMM92hqM5U-hMUOM6M*1SN-kP|lS{0Qg=;>rZ zdYmY4IndHlh%!>J#g+{&%bfx)?G1B3y)Q>aK0@qgp8L8QqKL0hmUt35V2v-y0bfN9 zcoI3PSHAcva=_EVI?qtarJxbs?ej0Xm?a|b|@Tkyly`T~Y_!yx3T%c4uDXiY?i2Y4LtZ@uX}(#ZC;3O>8P5_fwLKwt|Iq zOsICc@AXaHuW27@IzMV4QQ?y0OA;QTD1z_B6^X5y_@2)uBpfQUiSPMrNRO|~gCFx5 zh=Wj_g+Fs9eU;`0LH|@7j66OsG8C4^B{@s#TwX-JIDwvL%Mp=<#1b#hrk1f~$-P3- zViO2NWz#X^xsXue)49Ylx{yIfp|g4PFXh<;;#`tVd?{utT?dsDnVtR1C%$6N-)*`T zVx28SMVDm|2U8)3h%d`hI_7D7AqyhCPY^kzg!on?Z)9=$`I%&L=t&gkgOb6ym8}sX z3RN)O&z@ zifU)`r17O$N@`Kjg$ybFoz0QPmuJy2?UJ1O=h6a7p_%rfG*c-&(>@e43Cuf}L&O%6 z3#>bvT11v6E-XnAnN7T~-lQT?uLK_i9=~+nFk4B{^6||o*9J7LYlY;*_$j1kNn+DF zDlfjEb}ZD;P3!E68DcK~NqKVKy}DzgGjC{GZ_)O{2hINBU{IeQ_KluxG#ZJk%>EaLhlBayVbi?cGvOUxjGjX|pol|AsvhSbTr<(h&@*TK z@X$CsG<)#!xJ1bGjO?4EcY1n63ulDe*Vv~HJfJ*}#nJE$m~kwK-=qZZ#nKq1GHRFuc7|-E92CP zOvwj6g>RTEgx-!wcH>yM!gsdb%XP_Cvb?<{J1DJ3Xk5g zAJF=AgVBnI7NN%UA=~?!v~Bztm7F3a;dapK1+buOa-DGpH%mRj)rIz!Tqh(hqcw#G znoetmN~vSy^5bN8$Fw-dP=IyK2&^xSKJ4g$HP%&qCr;Z!HP7y3Usl?kpuR7y+Y={1 zMbdMC0VfO&j_FZ=0~p{BVZ6@g^V)|s@$ggPfj=F~Psj4pF>IOhRSYv@Dui#(X*lAQ zw|;W6^3^O%JmHP>#C-#61o?hAnEXXR5M5*#3O-p|8_nkij75t#q09R-synr2t$t$C z_B5xkCEbA{hOp(0Df6L?6OOzQ1} zRH~6i{*5ye{}@>upOUE|j7CPM*`vUo_D=>( zk{LO#s3ce?7}*8rvpR#7f!&7=E5j|*#lqTYcRKB&FhLoOH})puUJ4BGwUie8)(=ME zTP-C=*hT3Eqozq>5r5huG1{w3-BR;e=60*oMw5*wBfYn`xzncoV&p_+r1^(MH!_A< zq2w?xlVJT(o z>ea`K2WgpLvd^-lQJIFnL=`TP8$kOi$CL1tJ9$p?+C_u^t4T&$V?Kw7RIdXC*`&t6 z+FF{KJl)Ob<+A75YOZE_!ONOnVB2Z=nMg~`w*{?|HMOWzT@8hex8MN8ndsngls8p<{(pE_%%#nf z*$#p>T}A4iN4rEskc-s~lBiG1ta+pYRD_k4wpH=FQW1aN@@SXAk^O;FHX%haB?wq* z1To3hC}kwMltFFvQX?~o`CUs0auVlk%mrBnn;px`mR_85O&FeSd1Q2}i_-B+OUcd& zNtI;^E%{zn2e1F7R$ExXpSEJ^j1=&_)zl+9H?}CcFR_#R@f`&im4Q$5y?UC$e97gx z{Al0>wb?-dSjJ-EENIbN3b0GG0^qFM-fUm4V09^2fL(2(_@LMoa#1~ZkA=u_=W0q^ zS{+f@eg6{O2}E{U+nZa;K2Ab@Buc&V(v1>rX*s*s{YKPi16E_S_xD}&lrVLM2M2Aq z3N&_59Iod#+I9=o4AJ{4;`*>B>SH#UGp;*m9&)sXxf?UgJ~}vX8Z&EFciismpw$i0 zBKh^O&bchgF>5%xe1nML+M4DKRo;m5#*{ZM$tx78Lo;;RjcIBj2c0g<11Ii1av$04 z_11M`L~S>_aa}jOjtUYDXDZf&OmscIuB8bZD1)9la%of!`3#OZ9H?srcsz0uh;8~XdsjtPT3a-v?#4k7OeJhg3jICaRRs_;nMUWYey zgUgVLJLSGY4IPVwb>Lw>M+GeCe$Q|n8Hst&yRK=&&{MAQB!nX9aS|Rwl6881@Tg;2 z$#r9>4_G5M&HXlNuQVFg@Ve7M*Hv{Vu8$9#c5kviv?u!5wHt6#ygoc|I+&$iw}$JO zg_6&(RiY^(KSUVG^&wmh^+J5i;EbWcu9N5=#w7`z7MhduMf zuH$O5d~NN;`}_XfwWf8)?@nR8X_;cq6mzC2WuniGlffLFGF?Ai;EvmDml~u>O|>Nj zJ3vx#z(@|-y##j`-q_pSXg}#j^|~4KVMh+qY)JUw3#717(7%5QaBZ-1>IeSV_eLwE zQM(dEq`_S`Q2kF>fu_Ax6Ti1s7TKU*8!1@XjZnjdf>=k%q4c!Rr3UgN%Am=6l|j=PCeji9)A@pzNuZ zluPD{<4jOtk}P7Pq|(cD&XTO+ut{n(nzXaTVU@MJG8=Db4N}4EJaPd!f3P4^QCS5= zjKLxLWI&-_E5(f|#UyKfG*nt)S*PTya7`r*Gc;0c1U(H2u|G!x86{>D;H(YGa8-aG zMr3)g`YbZ402l5O(=ezmr=;8?fQf8vLQ}_56k%Kj%C2WGX(k67_}kdD;n&WO3P39C zdaq++-+LQ&D=pN`=n{2ghv`TJ2xebN%@B)7iyT%JiRyC++tf=_PqSKighyeXs7Jb9 zqylSiP=tY&8c?eqVYAnCM>(UaY>(`|q8?+KZ>-6n z-&|YESc`q=PSb=FE#arRgeaY)5{@!b?f!i3HD~G96R}J4((jRIFrM&(_{?tHdR@bl!LS>fSX=d6}r>x}p0C)2-ZU2bD zgwLktaJeD%+F->(T2!b`I`Pm5o>*?qxze#8N1pe!M^&@ATBB4a@6<@huRY%WO;r0< ztvm;0H!wO{yN|U+!r-X_5`U3NcDw%NH)#A<{J*;Oj$?Rt}}xSGE5cF zdrPmZr=pT#steq$51@(%$f(fDd7=%{1LtCDLtPX5fpubg))6kQQvhmd^0zrq$@X>7 zIy*lAu!LR$uzZYG6;-xpqK{2L5u4H=rS#IW}JvG?PljgJe97gBP zv#pxhd_oGnAz;QmBZ5{mA412Da90M#CK+Gw*i*n`Oo+;w6FAZ68DGM+HGQC)$6Uw^ z-HkLu_9cz`|-z?fo`2gX6-Ly@gl8A=3xZoWHPgibD?ZFhOf;8>_Su0jYCg zu5LrSdPAwY8Jc3Y*yJ;+@mn(()X130X@V>65kNI$TKG@{6mv`!5!MF_@e}O8>3&-# zr>Y5RB`~72&@e*VGdGqXLaM~0wY5_^l5-yJrP8#9m;la%=dWY4Wa=IWj)GcI-kQ<|@xA?(^O9k|3VxK|1yeoXJ_`Utq$W>eU~jgZr? zyOP(H(@i|fI!HgXva;Vy9M1zVlnp=-hOIT^qPP&y2br6_dxQ_w214trZgOJKqaEeUa zXO8qoya3|2J`(QXX^70uj;$FnfaQbRgFbB78MKjIswg0Jk}3KwdLKx~P+MrRhCJZ> zq-dIx*kmF#aF%g%60{0iVsgO~*gyJP`Iv4&XwuczEy8&M-iYFSOEzVJn&5?)W6GJ3f6FFE}*#yvh3k( ziF#Z1CY&t_NEgqR0M3>K&K6%DERXRc9Vk! zz&c?lM+1b%3!HRxM`ZEz!zuEp%x?K63A({00OD+)yk=-n?qT-yE5#tnjGw7%-YFlu z=#D^(mj|+T{-PWO=_4VIlcgOiT0uX-YbDyvi|A7K`{_WGR+s(7O83t?BHq7Wqka^v|VZC`P6EuDwfo(J|K1W zWLYa}Y&*VI)s_{l>UObWK?y!B)-1lr0nRr;9Jkn#h5Ur_?RWqRL+N+3M-VZ3MJqjp zL$+*zGG<#=%*p3D;*2x2b=(c1klPu;VJKJekU&4I`M8h7yLHL{=1i?p=gadt~7@vriVb{w9dB6FibR;|R|j${~wT84G1j zv!x`)*yQ3>D@zj4=r7c;bp@iHT@&S_8`9|F7~cj!fn$t9%JKvZGs2uhr|(*Tdxvnk zwD5K~1i;(ngR$>h5g^UZ48QmgverdkoKz7&|{n& z{E{J^B)VpCt0&=RzJvoz1B8F%#-%yhIo%{ZH(Sp{=6ej~Y9 z(#eg9PJz4a2&~IOYMdg8WNC6ymS!i=DGTqjrS5hJtximNUAP6gZZuDjbc2FLQ^l3U zIt3Gwi9+%{Vb3~Q#;wo_ zwTMg8%xXEwLbtqSX?NX#5yQfLo30t?Q<8iPK?j-Xo0Z|tnp(|R^MpGWUMo99lPo7$ z`hw^U_e=4>v`exQh}TNGV6vyG1)8x(Lo`zIOS50T^zI24a`awRBMI{oLe)qTpv)$w zThOMcuxzTOM})jLXAh zzV=2Qf&??Q)N=&ZhhBen~LRGg)2n`CLJ4{Vd7Fg=#=!XmsWae7I) zN5N#X|Jk6-KBFkmAZxaPca{`qKA`y2%(~Ycg@M=e>dEX;P}G3Q}}#g+Pd zY_YneU!ln`P25~LJ)YtZ>y4F~e%TK7#b>}WMQMHySxCA>2>BQ6YRer-r zv8RydKU2^;AaRc?R+mCf0L@7G02sy1phMqNz&Chj;9Fi}whjeVk<^=Z6ZyI7qt;Pu z#=8RENCUh&APuU3M6ub(nv?~kfFP*cw98A-w?Gw8qe0cGTC$_`29+NTDK9#cfwVvc z09cJ^`*%%sGDLDyi;(>CXjxzz!Tv>}m|*u>7uU*7dE*Wo3dHJGb&@G3Suoc4qTG`R z%3&TIdGW(=G@GOjK#znWBF3Eet-ncf(WK|nX*22mJHC^ znsiwnz70Ns{nN|6+iKjGskZb=aNp(XGvd;FiN1`vu&ax)es~#QG0s{KWeBVbUs&nl1Sd+g|>@_@=!wFi^v3tx+nFML5g-sEVLKd z=yT;hq1cJpGoA_vjJzv(|BX;C&5p=nY&mQqfu0eata5#oteo5uDEoDr z*m-SH@{F9R>8!v2`FA{w8i)F+JXsgn64}~@@P@Lg$-ZX_WI?H>Z!!fV+msdwnhJMg zavhh?k1A76v?_XrvemL{srGcs$<887M5 z+*EuAFEk0>OOPQ@5F}2>nMsL$yi#Rp>3S`#0g|kfa=!}9){xT7vb#?C9`@2rM8)7% z6vBwu-h%%X&4Y+n$V-hvnMq{YvKxTFE4{~fS?rsA20wE?V!Znk^6ZXJa0-rQ!;Jb^ zg#43o)ksfQDpva|l02EHi}quf^p+GH-Dex5fUQR|yRoT>+85N4d?_(<(C!7SmJ~Ye zZnz(GLu4HE!>n3TsDQF7dzh6imljT?=$sRoG|pne1FH{fN%u5I8)_%jbOb-`g)BnTdzq; z6SK0Ang$FnRzZ6}Kd;&KnmV6z5^Wm<1tkl|gBB+XB~P_sK@7Ve z@}pJoO(xI~PofS0@5xT$8QfN--*f*w#li?kOE}Zptd|u&5j>G99pp?ZRG0jSBsE%sc=L?2 z&>}3^Ov;Kh?vubtMHagO3UmfipwlM~Na}xjO8UNnMXI=F^eLR8MvFk;StG>&Mkrxqq7NWe?IGnbVsA(R>>AIBJek`H z^*3$*vfrEtfLu%|GE+<8xw<^uT+HW&coa`LXwhDJabNw7I-Q}vOmGMm{UdR zGkx>nT@XB+d#Dy9OjMP1TuIk&pwNj&YDU;>iEL4KOOB$@D{R!*E9^=a#&vspquSS2 zYOMjFQEL+s@4c;!POHL`7P7a?d`an^;qt) zmFgTt4s8P|13fvKxG-x*L~tZG_!&Q2{B^T~Us2LF(fmE3eitimuuDc35~UXbRMx*Z zjIR$TZX6%JTDRhY%PNNVky0&HKIPEjjG@=1B&`>fp08G!Ds8CZ=zdyO!f=Umzp1mt z7*Lsk5VW^vwBV@kTLVNs3pXdSwFJ|fUm2rtNJx#u*W`N>THhUVCnm^|70>#2?B_U7 z<~L^Z`Kp%^1)PjRr-q`L>DUi*W1kw`x%d3x0{}6%!U--@@^OeNj8LGSVnuJ&3Qcus zx+TT%TyV6>`@})d0J>|j)NB+zQs@h{u=tT3 zx2pL@R#s_v6}m`rv47&tLzN6uiO(|SuZ+u+pXODg#D(Q58+DZ*3Rc=>idERw`rNL| z?JD~XP;_^*bD5Vri>=q-wPUX%eU_s+ACtMAL&UdTqjrfQfEp@AK(bO(x;0WNVEn$s zCtbMc#?FP@%=Xk07R&7^0L%)DSxNXL@=yK5e}nh&xL=GWgNiKISJr%GOdX-cW$yMg zD}%lFvavBnlXw$EK;Wiw#>O&NQELOWV+6I=EUx#s06EE?LAY3y(4tl=+ERM2$K9dU z7*87Q{TZ*E&febcCB_R2HkQS#S^g5Z9_p*B+*fObbIej0ik1p`6&@J%1E}o$LEV7V zwi(qnV65Y1NQq(9OtSslAQHl&qOGrsW!zXvUzqN?HVbt=t^8|yz>KelQ=YQbGh zMIEkFTpQqqY|<$=Nw(*;XbPJ9fR*$K*|A%dU*p&QR5g|q1w=Ds8)UKO!p{x*Vv!c^ zT)3l=kCW|A?kC=9jFfR-J`BSkap6jW&uKaV*Z?QT_^Hlq!w9%7P$6TRh^<~gx}DH5 zWExw!S#&N`WzfgRl*bLu`5_EEdJuPrbatGJYk(6|F2aqeVR~z1+uS7aq9EJgkvH`K zdIm#&r|Z8qn9hZi<`*idVjyCQh`g_6e&mhFR)l-zpYnIK`y?K{v*BbG!@=<|{hY?7 z=}w^ve>&kFVp(jrQIy7axErnisNZT2){nbc#ZIZgAQVer2}`Yy^;(ysS}N*CHO(5iFqU;+Sb$Ib z$;exQ)6t!JWG5?YPDyiXPZ$Z={*n6!h3afCCmUO4#!^HhL^eE!T?8boN`uS<#c!=_ zCCb^ZOhZ3_S!mXX&RejwLqLw!$V#$8m6n-KPfB=nx*_Ui6|X!L=FKq=WEFPQSJ229 z6`2~KUhx)J?o8f(lXkPwj`+&r{9rnR4)Zas44xYasmhy5t#xd)Gi*>zOBZddp;-n* zz#Xq2q7GTTJ}?Is8up6PETt`*&jmMIB1(&#`6x-+{tkT-1iDEz^j zUTP>TR8MH5f|?w+c;Drb$*7s(#i}0<0FB9LlZm)gLruhGMlf=4fMXnBM6(a#R7Vo6 ziUDeoU)r!_NtY`kw8Kj^m*JfpWn&#{Yxuk0UT;AQ8nWgd7U}c{HiZ|+JY4ln){^(A zK4vV@V>fSaDdW&JZI4#oBrGh8>Vb?^515UQ|`oy#n zjIP%woN}}ucL}$0bJf;ID6~34W0lUxg3_tb37~m!Bg2&f#q_53w2p>Su}nxuMNbcg zy&3!s>uq~x&km-&DL!=-k4(4kni{cI)Y)iZZMAlGb$X)|w1Is#2}f>xa&&?}if;t_ z<ot6A5JN{V#rUUSHVhi>o_*89LfszFF_xO2NkA;MzJ;!v=N^bx#n>p)ruyTqdS?i>56|_#BaUW)37)D;>%lIfJ?^ZDU z=-C1w6%PHNer=uT2FB^y+Nm%E&0+KYouemDA3uK#01GgIo^W1e#L>_^YBy{32>o*$ zJEQc<`NlcP(JHK05T(9<>G1W}sC`kZ3mcPfG=#r@c=*M&=Jk5dFk$*G7V`mK01gkY zt?Ac-Yz=coyfvHGd$1G^VY1CR9V;-u95KLkP`lQK6lf^)S`Garjhn)d`jImc`mffR z^V%3&dZ%WA#{Qiw1xdw#!YIld>O>>7f{+Q9bF&OpXYR?5mPmru^|u~F2D zO^cU^*B}w>F7cku*VfM299W)kR=^4{L+_O&(!h3?LI6clYL>!XLP>=LY)H0P4U=`5 zT~t9rQ#(s=eO6ZuuUGGwe{*;B1l?K4)WeUZ{NwFMEd z44CLZN`gMtMTqmN0kj$9`g5N2o={^<8;Z2_j3ufKx`@3}W)mh!^-}xZAX`?M`V>oB zr8@ye#brlD z8v*Bu6m}=Ow7#7Pt&uxdpPl|7o4jOBO8NvK@;ilXd99Q5{YV(>_vq zZ|G^Ng|Y;9-fimg^{qg4O4qm_3{bf~Q)Y#h<$WVttY;no7|rA?j=rYEp)y9$o*-RB9oMw`WQ8%u#w9{;?eJGTqn9cLlxos5W7ZbQY@&N(2aH$-bVs+BC`myjht+(Z zl%8TbAxrsOHEMUHPe)gs*osb+Q{vL(2~jMsmytq_Ogmz`x#)XictX?2_8NTE-B9S( zcBQG5OaTghZ~+dPoHl$kXBsc^A93H^Zr;M@`TPcszj$+QQ0b4d#^1V{O~e$8i6QIi zruDVERL)?1#Qf&ilIm%$m zsrV=2$-#aEs4Z#wlfu8H!%QEMxm%`<9qr+XSO#{v0-fNIpf2 z&RctLcQ1c|M+YzM9qBP`x3$@l9_Dtow|CgXT&KO!*)fTuz1!a1-qv>CFn42+xGIWU z>WzJ$d&97BR7BRW2~`91F*e&fTkTyQo2|{A*4F=lW3#o>%6Q$AW7BT!Zgorpy%240zyjjiv`$D`Si2h= z+huF6v$?aoCC0Vg*%jlux9x54ux{?{wYPa#_qICQ|0fRXHmt3!vh7HtDQFhi(d_K) zZFGp(TIHrT2a<|o^G<*X_QmGzc3C5L_cpi1{O#=Qwl{G8E)i#`aIGtq(qf*LFm-={ ze&%8;FiTap*zJIzLtE`#*n1_-Db7%@C`U^h(o1N2KeeYVQLzGVQp@9Hp(CXEq`(9>}|Jp7y@)QHV6X1 zpy;BAlFqjDgwE1QkdM<-$NdXQl^)bm36)2X0p8=awHViw@Bs*?F!FZoP>Aj9Zf@u#9O};P05?N_&x64i)f=JRIF0E}G_wB8nooya>F$L~r zD;{7SyAxQAGuH&U52g+~N=qC+vk}l^S_2)Xd16aU*4FCv>He%M<#$}z7t;aSqzs5x zn_)zb0M*U$Fh_X?<|uPRo31)zF8b7&^hbkKZ_YSzhP|P2YK^Rk@^1h`dg8>!so6WV zk;OT!!_n6359|x{1%s+l=q-6dMJ+UcuDh+RjrQ`5O6QMQ=$qSnJl-1{o0~M=xMvIW z@}cAQ+ycG4I3vnxY^C!}HX$2oR$O^r@IFVvq3MTVZz%n4%6n|!B)N-UK#uD4i(f!4 zqIXM|9ru@aJ1i@KBX4cBH+d9x_5jtX2Cll+iHG)cQ70Uc{V-kd04et>@quy%PZm9( zqo)#4%evW>g3=yL%ZZKvp8r=5!xj@5V)D(&9!8}_BOXRwkzDCW@(Iwd`YT2tF)ov9;e0L z6PL6tL!Z5bMBmj3*I0hTNyyJgf_=byc4Z&RB!91fR#y`KqY}dZ5(YjApX50Leg#JW za3v%Z{KND`*)hm+6STJB6e6|aoz_PcrMobNb$#a1=Ytg>DYjbC_1$Szju2ZF) z&Q)xDB8j$;%p3@NOAJ?UX2Mc(#GXfs) zdN?34kuMJ4Ua#tLBD_D97+TB?fsqOqYThIHMe=g#O1f8V%K0;^P6NL5g5ybKk#JWgI>L8Ax<|*V*<(fScJ$U^mQH~EFGi{mbGP15~_(_D+$#A;+7ruyr!%w=3=Cniy>S}Gt9+^ zBpi`GS<)E7N|#SVC-|4BKit`V$8ks(h$;_f zkNTZ*nKGlUWlqdny=g zikAYzfVe|7H9RjzmLuS9Y;0&peWg;@^2tdQ#|pMB-VV#|MtBu7%k;LdD6kkJZs0Ew zSk&4WVmsg}TuSJNIm34R0|;-ytYNAKTBBEeuh;oyd)$= zR&^*?)q!MHlR=eqoMPCNt#TBZ(WZ)duV8OS@5$cAyA2`?=|Wth`d{6oGSRB!Jw>Y) z7Ln?&auxJg%UW|cjkw0fb{W-%sN&`&oCn{@-7cfdEnVUBKHSxPLQS^!w6V)FztgG` z-0oZ3WrPc&i3@5HQ7fwlneoz`1YeXMB=0GrrzN-%p9jOLk7PTPh5Df5*w%MNbypOM zy_DZih%_J|)urc)D`D|NA-Ii}k2uwHnWk(}(7>;fABe>9xV^c%U2bl%OUABG$xdHR z&;t!Kl?sLc{8}bh?`mHO_MC*1kr&~op|jDkrVd~&*35xjZ;hS&Ezp`ckK9Mr$brkj z=HB*BXK%|oar*t58=cpz>A>pO&_+znYRkt@JowPTH?-XX&%5gRsegQuK+?X>TI=_9n)`AsHP*!CTvdfpzMnYf?(T3~JW79t~S;fWqi1>L%Zi zAo5Kbc^i&ihF0;;6e7+XjfaGHH;8-U6zo1&ZykLj zp_MF%eC8CC#I46^+%pez-f;?g)Yc8Bu==d~Y20U?`y z@6eoMuH?`(;p1Vz89#E?*8ul`7R@Kg{5Y9^H4BsZKLYrIU+)2?v$lT#xD32}BAId@ zHREs=4FLdrETitJsL!1B{SO*O|1ds$HmLW^4-O#f4=^$p_c_KnxyT>B52fX$q_m(B z-hTkpEWujJIFNxS#{&&viUEl{GO$x$N9$Vahw(bv)mlHiz+!{L^~38chyAyaJB1~& z^43pIR+{z0!OG$F!*#QF81&ZB$QC3oPir*mCZ%3Sb6e|HZ)I&|9gST8+cA z&iL?b!-a><*5TRKD|pz3haG&_84qxkOfk7(I@ZMkdkOW#Fsd_8$3VyUb`4sM!?hS( z$JQS<#fy2}JX}Dc2_~Y67-6UTjryQ<)^9cT+{PG*HNJI%@vT>=e@ySE-X$F6bIK4x zAv>Jo*ef9_T5o7d&W70G(Kh_;!owII#`G{goVD6G8W2FIp{cJRgK_N(bKUw9vwjG} z8y(I%t3;eM_D1dwSwPWbH_zdfeG7}enf;rJttzkzSC z@@Au5?&fF=LyKiRh6Gr{j_Cf*t1;y|BG1)MvWS!!-}+@n_ZaCLBUD?8FOu(=|vPZcPx@le#P8rt&tNX0{G6mw6- z+@}sYVmM$}ZhF`hO7)3K)xSlpp(%s^cV(vjTMuRzF3p9uJmQoOvnlJhOB0LIZ_Cmt zf^wsP%LoB)``Pn(=h5x?#?#wyRIT>gosEGB-=5zyNs8swybloQXaJ?DEO9dL1f%&z zG|FU2PE;0vN|fcX2UDiCiu?buHlAVy6gJ>B-hKMwft;Tqe1-N5u!aHEGk`5aQFA;T z2KdO|!~@07`(N-YysW@^^aIc7*9ZlIZZQ@J4-)m`M}VL;!j2)-(Lebra6WuhcaxgJ z`S@8NVEmHiM|n{EMdN(JS`<78Oc6e6me-o zH1rSN1a1sZa6zgOk?*;G>V-3`*N^X_*%WLM+)-i=`T&oym&hao>vIoGu)+-lgA%^!pY4zM$U+WKcdOw!%OPJOX|Z* z>cdN__$5{Rk}7^l6~Cm4UsA>JdxL%-((hOF`+|PCw=bzDFR3Rl^;UX`a{+6*3H4{0GAsCFp%qogGfO1t zi{Xnk(c%%jSR*Y0-PxRI?+gK~Q!NVp+MH|eI2faxV##qL=_|qjPoVtK3O~ZiKDH18 z>t=o4rY`7E%{b=>Ir9;I+Jn4z)nW?x=?pYi6hhm^(%o#nNm5UusZVZzD`A-od%fh^*KOjM%hNw--@b!K>toLf|a<4eJeEJ?N6(n%x{#>X(I5O9~7cjVl&+ z?cEwl!q}@?p(!m?+M7(vK1!}G1&>0`{ei4R4Re6Q98*nb39s+h>jNiNqaCJ|on`#Q ztx9v_XsJ}L#Zz{67gaPGSOu9SxV(ZJ@3E{)R<$;zSjzpxxtkc$!m*|V^E}B?m}P^qY)%VZ z>0EG4^sLLGZ28E(Wyb@{m_3f%v)x zNSV=z+lg*Ubk)&T_oGDTftRcWIc>ccoN_&|Cu#P(ddVf;AGko$ct=A3n$F~vGJ24a z1u0X{(`tNh;V3cd?4t6~Qf1&oJtIQjMxJTY=Ad}i&sF8UND3xDocv%%+A){V#G2h0 z4iesmY?L6jgL(>twF(}TZ#!wSi#D6rH6w;>sXs7n*?*mxzn&*t2%zmn_)u@B+7S_2 z1nJFzWDJ^+qD}t>&HLC!9U^P zXF2$%9Q+&yzh~E62!5Y~|H#3A;^04X@LxFi1-o_&f7Zg8$0FpL6iv zIQR{__6UN%q>Imw|Ak$948gzT;9qg@n;iTW2fxk1f46HP1pkAB|BHkFn*eh_jK72b z$-!T7@H=+x1qAOi3*YJw}aPSK>L*M)}4t|+~U*+J}XxhHv+56_#Y4*PP4G#VV&DS^oii6+c;I}#W zHyr#+nznC#lY@WF!S8VJZ#jT5`UryG<>2=?_>UaG;2cBnA2|4Z4*nAdu-NWF@CO{g znuCG)<_|geBU%yP{0Rqt#=)O+@E08XF)fU5{*(h=G~e)Q`Q|S;+)+Z4B4F`Wm!M8un!9U^PXK8hQ`*R%p z0tdgu!9S%X`|Zzj@QWP$G6%mxi}c%HLAF`}W^+@EmXk)Jn zWu*A#=h{Jsbep zjb!oev0)=wa`)JiTB#y-2!^EBj($r>bgoz+A8YbZ4@MY=` zUqh_*1N64uq=`nxc+w>L+BJM4DmgMzlcuCTBHuJ=BJ~|vq_Rxp9wtpecYB7XnT%YW;6w~7xrHI^M6rNf~RBGhC@!+d< z7U19~8uQPzp2#@1g8EjzN(P;2J(E$$pfjz<@>R0aOzTb{Csi3vy%9K%QL_q-vjx_D za=rCDaJ~wSv%s`o)6)}pdP+}k;prAVJ%gv)^z;~>9tC1$r5feFbvJMx1-(as^os&f z4`q~6G51rfPM`nxoUX22g{oQyVl4=ejQ|#@Sl28D;A)fkS7B0rYJ)% zLd_L5_Wf(Dn~sqeL4|wX)R?7C10Z_0n`*OPkdv*CmDRS7@fhi91LGt@3l6LG(xX33 z;KK=z%GxQ}guI-jBoOH#nN?&|_Z&}Z&A5~>)-<&M)}Oe305PkpiH!0Q8-OUKZ9@}< z*)$sR&D7=OmFpV$5xlqM>)4+F5Tb0WDw5%n=Vfyy?rZN>I13Vp9jRu)4&Y=OaVGc) z8Wu_^IsYKF-1`Tq<&$@*MQL8)D!muT+UT1*8W~uhhP{1Ur6EW8X%xGuc2`0{n)|bi z@)7NNK)F@{EPYDPK0U8SYipm;d#K)5{k63jLJPF&FrTvyOlY}I+(TNUydXRSWVDag z)m^=#WHyA&6RjejHw79~R4qjjctOf{&>T294hY9%7+{V-`2#PY7f6q+j@m1h+ThQx z&J*u}RscmjRs}$w_lA>xfBT^;hCDEnUp{S8d%tNJDzbIumNLU}0(bJK)>sbLU zMl;8liJ~m^cWvzsnm&1rhlHhHc~oZ#My94oZ<>5(GgIj;F)Fz~hbbEnm9Ijw!NU-N z?$Ke_jOnu6^X!xN3$VhdL(5`4f;R{w9I#*SAh|hlSaA2DB45d?O;rn!!&^v^9 z!6&C}L)l{7hnCAewuF<;2_i7o$bsqlaz2OOYuJ;|blXVRFxQZJ2;ZMjs?+&=1Uobo zJqDmO>Rl}C(=c1%v{$Ojbq7lvQ`!Wt?^e0Smss#m<$^a{ZI`&e zQHs<(EU3v)ANHMi>S{%0*GvF#H$4T!3!f3x`#{wClpA%6gWDWD;@~a^4>|aXgBKh; zkgYxQwbG6SWcu)G(Gcs@5`YSzaA8_+#*Vxd=!i~mHfos(`X zw3l6g5-z*tDpK44_Pd1R05FOKFhWO^2e{beQ&Tp7l^Eyqxqj+U(dX>QsP8+`0QME`lhS%D4Rsji4%mc$2hc%Z3etyo>zJlKs}R(<$|PAg zAP@D#^Sw#*XgK40M(8}DlG>&%GafjdRttrXoR9dE#e3wFfQXcyO+JE9O2HK)IwSco zYpl$^%;4mj(OR9M8aJB9nL%XB0vvSgpgB3^iqe^OCjzS>PeJ$N*1TJCEyaY-(j-3nP)9y3NL(~F3**~zzA=os;g!bov zazs9%8nv3`pOT=XeQ{)eh4yB?(o~Y22fB$w{fiDfoUa1wYdzPCz|b?AnXj3gUkBFB zr8#d_<-8eKp9WXAY=0-{-3iL=PG!qk?uOv~%}!-&xuVmEJ3*D#h!`M{G7t6C%iD+Y zbM?K0w+I+1ECLZQTQ4|Q;+4D=T-Aot9oVUf5Id1>3qA_o#g{~OMn4MP$FW564%TU+ zWT|y;R)0%H*W^P{Q#Y zthq#~H5cm>y(U18oJ<7HW~E0QIX$AT*eoluYE@T@PswoVdsrLadY#t~ zMRfzGjGPEK_F~BrbhHxKnaVhFp8LkD$h0Q(^krnNwloU)DAIeX!WEY7GRTIrqE>Vkd1VfPSVCr3t0vww&X}MOJmP(pL0&FS`4J`o#&ak zH;tuIsZ@KN^*tyH7ikr}`bpMk^1ad$673){0IHokI%rk^RAERb6VS?V)1C!DAOo!z zpv=$VAw&b9L37y|Mxe22sYMzGr@2M487g>7RBh2kX4;B!!X8?bm%~&fbZA|qjvK>O z4BtgTbBX~jxh#g0{{=?xgmwVMu-o%5kQFIVq)df-ABX{ha}J9b#G?Em3)G;;q-irl&e+K_9loa=Cv8RwT=NVQFo=V4ZdTPJIP<9H?B zddBhA-=r%5*E7TvHart5JX&FFFeIb$Gwjlg#EnMP-enDF>JiPi8v&_vZzE*hh~@L^ zJD`?c1%&{YEfl(JF=X*7WZ9IxjaEX-7G-Q%+&$7&<|4Y7vbD%rW#o5_C_o>w8Wt@L zj45L_TpCv7)*WNGCDe8WV2=HFg-7fqO8g{qS>iKsiNg|c6u=9t=1}q16L>L%1o$NM z&;(h|39_68vYc~vn%EOr)ZB4rke9R{7*QtQWxZ`!i4(<&!mZ;A?h{G`h9zE3sAhc* zb`Gobgw60?F{Yy(WHaRsFLBX1c)5Fl;f(C5<4tj2o1&5h+0&^%1$w7#pZLEO_KACe z`1@n`!bLurhZJW)e`6yQg&i}jHytPTF}`xlU%{4(w=@&GJXv2q;k(#{sp+S`qt@;sdov5yhJp;_7 z>niA#b}|ySLyJXQ>b4V^YnBlsTo0FvA>2VkER_T!sDF0Az3X`T+_{#;o02@|^9lij-_h+uUHW zAoZL7XI!dxy)`j!kMsZ(0@?2#D)J2}DD;GJw^*3sQu&PE>B_=pD+I4DnuiD(Y)RnT zzVajO)FvAMTO7H;mt)MGNJpB<)=+zVU+A*ohx;+Y?~ABlnDb0~TD~E1Spi zgih@>_l)Y6s~xA^h819!^If%Cp)DB5o7U%yg@%A}*2d(*QSs81#1RHdo+)!S>(ABk zFlOOkF1F6VALFT17_ybIV@O>2aUzEs);hl|xDIH2T?ML`kd|?Tsy^Q3Kr!oSAZ7#! z6lA5Qu%CB2^PQQf)&(3YylO-Dm=%NZkmHr(vs2igGTh?bF?0@cd|qZ>xW{mdy(NeI zlt`5e_ zD-6B1jlW#0uf13~{h+yn8MApw4yxKw%soRfH^Ess96=7@_kbG~V&vV4>b9 zEK#9PGYK|%m>TNd3o^1%u&Ih+QFN@MH&wK)D9w06R~HbeiD6f*eIqLb_m1)Gc~*&i z7_(QLZ&4OFXnu1A2aEdXL8rt0ndu(6SA$2Qju2c)m>OI~PfJ*#0nl?edEX)D)#dgc z_={cH;AnudaG=e;ld#e)x&HkqH}@zdqU{{_ZY=$cP*|5r#foJ@g z_YtMFnS0y(;-?ZF8F88lkuX1Sl+As*I1m(ZdEwmt^3a*WNQQ$& zbCrfXl$T<$i^U)KHQ$E9+&@HNrvVmL;9sc07fgjN8?$K&S>bgoZ#h8&5<2N-aE!Xh zz|8RcA?>i-lp(t-dInA$z8?p0^C_c&(tQ(FJ z9rwK{s(781W8oOeTDi=RVfZ?%z{t(OfhE8~42qK7*FTCUD%8^OE556mui?8+gEZt2 zr(TaRmqi)4FL|&LdFb5Y4dQUvmx8gr)|BR{?TFnmX3w)G4|jfEt#qd?xbRA>pvy2r zOVK#+QkTqSyiO+*c2Ch#=WDRfsDxleGli@uxhggIAvGgCpm9F02H8!i8w}s0SpLM6 z4d&`-eHYs?iU(8jm4>lYW;WR_P)eZ}-moh#8nnTVjfwR*ThXvW;{{wUrN_Q>@8&{H5`h8HhH}ds*3;L_PTgY+_J}+} zlLyrwH6?uJKLM&076X?#7KWTekR-In?)F5bAeHX~+hItc&VZA7;XSQo$5?F#)uM+_#k18!j` z+DMogxKt@lON_n=a<0dHShg`7i0Y#;eAJsE(;REbhVk_mmGibUPVBYBc5d0lM%3w< zq~NR4roqFjwK3ZDP7nU?EE^gmRG%wDjW8 z{WD{;qB%1eom$d2!@An~v?q4qB1G1uWPys`(Zc*FE}IosCqogJ@!iXc7C7o?W7sHm zQ@`t_9rzd`O~761B@R7>`JAFzc(I#6mISiy?si@L%erbta4T1d7m^QR+&AM+F>J7D zO=4qy-b9&%QJka_hKSd8+jReo%W}%D0Unfj<~eUf7ZPFa$hrak#yf1gcjx|{2eXI-t zj;s7;7ftT#9t6+^MBmTl3ef!@kP{{D?rm1UG!_w&(6Dz#q9&OCL{{pxIK~aiPCK~+ zn-q|p(CLHmknCR3#soul@AlGi=6FqSN4d?oZK*Zm}3SUWnHt ze%l5PWhU;CVx_bT$HVJ38Q%F5?7Io{UH{lm*%*2+XJgrEr%0SDc=kI+$EESV_FYDW zqK_&?FQ+{{fjYg;x%N=d7C~QlGE<+!IONNQ^EfvaU~PgSXF3abRM(DaiXE?vWl`GQ zelu;3>A((R8Rc_k?#*u!|BVt2%0Qnt3xT2S87m8kXqfZD*e|4=A9wfQq%&FN#q3?d zrvYxsWVI(Z{KCg+lCZEdGFta>wM2VTWzfIyYohG@D^5I*S`3I5ucf zVChKJoz|xq_Lp(ZgF+tIw$P;l?PaWwaeNJo6>4XI(y|Q|hJ9gat3Oi+VT(ODC5>apyO&A_!$L@#1 z9z;X8*bK5`GSe;XuA|BcXzr%*&bGp{@^Stn2BK$3cm$=B0fE^U5MO%BrCth=MeB4z zd<3%sJ(Y4uXY-7H7mL6pO&r!hbtZi30-htSTz0rQiLbGZC=>XCtwvEXUn_HqL!JG&JjH(#B_5?ZzVGwYKH}5~39@7MGBb=4 zDw|IY7firkWnSW#yy%|7lH&o&`G>T>a4iwnS;31)jzBW}^y?b?4>zhf@n@>`BD8yk9h6VopIlp;O0hDu>8acOZy_~`($v^nPKB*s&Ti=d@0aQ3!P4`+zNmk z8RY2FKv9x$Kc`JSB*aSCY-fVaoRPr^uuFc73k%pvSb_4Y0krQ?yaKUDi+5lvO&tHU z@RAIhhHURk}h+w)=eZS;nSX#uy}KH~Wz zlmK*-o=Cg58?|$}Zv!QPdPaB~0|46^7dXJ-hcE2h209^!&*JHa>axPAoMI@cL!%vd zgt8`A;~f?y1G0}-^`6quC0a;>yTvQ)Pqocc-o62VsfnY4h$HBeceva4?V>~^5yCG& zdWA~ zx1COE)Zj^cH9jPeeP06m53GYinE8WHCLNc4jIy3KmZi+fWyCDyp|}DPn}bA@;jk%< zG+b3IZ2iP78i24XkKxa@%yZ|eJn-kX%y{?OjPU1<%zf`>x#7=U`O5vDcm@948*;iT zLI0n~bpJsDjg#St5g)J!fZ#zA%^0hu0=`c<=fk?9Jj2`WwcC9ph8K2ya>Hs?Zi zRPhRk8QXO63rN)8Z+6NHYEF5OFXxnx#f@)Jnh>Yx{3rHC4yXbwc)RP6nLx%u>~q>f z6D4THcj(h7`!ULz`5Bf*dNUxDzNPjYC;R&Po$WioJi}x_N(v@{(){)?`5~Gu#3J)h zjD6_Naq@bQBT(7DVevl7QQ@EpsfTQ>$*8Q>NUv6$Q)oMhj5&QYQbocMn5iurc2!G`$p%vP!Ul`x5lSap ztk2vN@|~ZO@B9VZz5_qU>~0TlPuUcX589}zN;EjL_1-_z9U!OK5fY7PjWz3k!)bJc zaU)bNxWO*EaJU&(in(rkkrx)(rC z?}#Ryvm)VTNFI*2|4r=1n?_(o=#V4#oOi~?jBgO{*omKb)SYK&5Q*%b;`e9lNYTdr z5!(kg(49LTMpoGEt*;;HW#f+4*T*|EtgLv0jk)UrtSW=H(w@YB z#l8BxLMYnleh#1AqGo7W4bnyq5%){B0zU=u&|?%i?ktlPyp```A&zjwzYKp?!|xZ?=3 z{Q+5$xD)7r82$$I7daICD@q=sIz)NKkJRM&#*LRArS=J=x+msF$ujplrk8ypUKlc< z^T_ZXHZ3{0s0CXeafO_4X775Zi9MxJ-+oA{Yxcg^)08IXCu*)Z4#f+zW*v_9}?6lBnio;J^*3jZUBYgpvx(nH-VXo zd}!=4GZdLGujWw53g2+FKJ@>@bqR}r?fV(AER7=LRhBRV1a2>ege{L70WNuCetnkn zE9VCt46ZPs-sT87sJyxn$^tj=&HY@NH;}W3n1m1S!}^@#DxaW^4OZC1JEkF?&>9^v zZh<-SAPFYebOZGp+EU^k&>YfeI0xcm-lyWYgcT0u*vrVA?ugHF-X3l)3~eGx;uOx@ z29HKGl0NuRmY}3r5%5ckeMYbBqS}CE>UO?>-nV7PlV& zU74W)VdW7ofjSdqb-C7j_14j$DFU8^5n~cB(C!;%zgV*HYik zKDL^LaCoBB67C)hrS=vseQYbPTfA}c22F6pYHerfGA7rVZ*eZOEOpfZB!n0?i8N&J52TWD^Y9b~Y6F zQNhk_G-&Rko%9^9f(^2no}*F_h9X2;N?r#$*kIDb%7NoaldXA)Y>i#i-T^V|CL1t_ zKvY~ySmu7}aZgz?D5P>nF#crMa{G20yGkxb|4ppUhohR0j@I_w)h z3MII$;aiwox&NVd|ak* zY)uRwmt(~P9V`8Pf218-2%L(H*d8?~lrf#WD`{}1+*mz@k3_;xMu{7Qw`75AhjVFs zU@7e#rcjd$1b(ABiq}gyuklP7832x{G3e3?Fm_+0H7mfv%t>y}-(hbx)$d6y$NRt? zr<`NY(y~>XY11Y!6H4S+oK_*^(E|_duoJeIAWCJXT$=Y#Cg>-c;K>Y2P6E6FQi4?Z z+KncK?$^#Vt(b~m)^$0l(I|yP{3CHKW2?6u|3`w`gpp<#?4(Ne^ds4nNV)L&Q1PLt z#bjydKgnSGuWrG9Wa|wQ4rP6Vt`Me?PioLpF2~QS0Pq<0KR}#w8WI^iWKy&-QHD%B z4+P6^j?#1z1*mq(e8Yee=3ycnVHoUE@u1Fd`7+6~5YNRLdhzBoFrX2_$~b=~7DNj{ z4XfOYta7ngDBvUo+yIZ+a}-Gp8^&&Cb_i=E*DK+;xaXuqQ$qbZZ26qJou_QlIDusm zKqyFWEcX!3E|SwUhL|c0-*s5zOYZ_GgTyV29a{egUl1|emlMv1Om{tXg1vyY50OqH}rrt41x=5>T65?x% z1y+-XfQ<%m2?zPOG=1bpB`Q?gh$1oeXj|7SDA6m3ys?f|hz@N2?nV#({?cQtOBMu1 zoYK?))kACOq;hCxYGvtq7z@`YWg~TMp$)D*y)H8WhLCV%UfM`aNs_Rixvba%im%su z!PYXR1cfU`o7JvCcWU~yxgFtR@u%z(7=thRnrFlj5zcNV^+e(iA0&6FRcloRQ-W%@wgFZ<_H~SCQ(!qsiONXFj7^*p@1({31>XviAvb#2~SnRo}o9V zo?J`W$H@PZd&kDverSv$In|r4y#`TiHz@omEQA`##bVE#z31jK=g7s}rNA&PO0Nr9 z#3vw5Swy50t}Gn7T29GwM5D8`7FiRxUoIDp6k?oLkb#a7jX)`pv`R_~P$k2)Q5d3A z;o1FZ}hbrO=cIJ9?w`Hw@VpQ#Z!d@CXJjikK-&kO>NSXRtzA80A<^c zJZ|zClQYLg$!ldly&~q|X`&S3=&G2q{kRND%AJ$?lL}@0|NbDqCy0P$A+Pav6pmV z7wq<%6~7rff=e_4y0>9x8wrQ@V!+Gpc4;jz~(CsR)af9aOtXH86*PykgC_vku zq!oLztYic&R;<(=WnMv6WrbP~FVKREK-`hI>f;~oM8G4SX?H@Qv;SxJv-ZV23pn?RZ`$idisnRAcs0fn~v zr|Dh3B)*#3m6x1mh1D24?y5pvvd-C7g+KnU7LMT4ykI@k{z#kfsH*-^?M#{W_RZ+# zs68OXnKGOt=e8Kn_N)`5RNSR7**TKxw;k8?@cr#yeVXqql8RCKd#=6%25zV8)5lZz zIO+#dH^XDRT#b~Q`6%sSTH$otoMIEA2?8SQIVD5>S0y6M$V@)xoSA-E9X+`{k-qr28SwC4>x| zfNdpa5o+h5I7u|=!VZhFX%W5r()9cz21bov;kf7r?6|L2p*+xxe@-xmC1aU9*V6CR zl}i{kp^W2K_=$Ih!R=QV=%7A>C=70dncwJ`QkzD&a#oCDoBHRah`%uV`3YeZQJM?$ z|8y>x1&e9mj;YWTQYNd4Hv-=v!mHd8v~fej2NNIdZ~4xI#@RHINqORpa{Ubo_h%9# zDneb?^c*_L%j~6GrPJz$(o}bTfFN2!HGrLK$VCihjaytTm8=R{zgScw-D$C8R`nA+ zrc(mVSftri;&zgbO#tB-57sP(XkiL5=$(*;F!#_@U-%5d4lK|JF#t$8il4)6R-0xc zMl#bIvf!p-P9r;{i{$TeW5A1?J&Mb#0BHylD$4J4kcaRnToqc?<9o+BdmGz-0K;)g zSHGDj#8GL;xKz+TD!g&#XtKc+(KY4&R(O+gei9DdpuSjJsS%U47QnvlVSUwCfCrkE zlAHe&qLp)rYUy~$QlGXRtd*y*O0gO_{yA@Mi>PsB%YN6?M`wliyxvD=&E-P3AfWqD zD+^sSsEXKM2Say2CP(gvrVX-&DW^8%qUsHahO=Bat^5&uWG202cbgj#mK_mjFC1Xv z5EubXa63>T>a_iw?U_;*Q^X=8#oDIRgcWlJzFf=e<)d1xs6lfosFsu>wz#C*Hd zUQoG-2+=G$E>^{_iIAd>N}@bLhHpf>1YiN(XBdNP2?4Cz9oCb_M8Zwl_Et~gjFEs^ z$?+vN4I1&LslAt@(ddGOQXW7p77>J~lRsWn_U)_6{@74%#tPCpAZ?O|7Gb%@V#`^KF8O4Az`Hvwxi(*z_I(Vd0^3XNQ>11l z{uEIQOmAX&;v_8EnD@2u0ZM(7U6d?R5RegU!W-jVW;iyVD(&umZgWckgOWPJV^Ms$ zdb+_p*|6brYG#f6Q|$f#Q^y!eV_DW>9T_c}Az}ucS-dGW?~c&ihfDQB(^dh9kQwsk zoQ_gNcN99OnQ7mBAp#jGsL^jRItu8HoEkBRv`3Zzukn^ugWD7(?-RndXVO+ZhD7+pQheJgW33O$SNnk0xLUk?gX5v%!~ zlJQ2&%g@zH6b0zeBvb%PML@M2L#)ENS$&QnUY_QgPw-~3c#)KX9=w%&&d&rJ``6BT z?MS=qIAxzb^O4)&xmSDM!(JrR;m>n+8aMOdaK@D2G!bna zt4ipB_&Mb$fozsMoK>PzAplCVxb8{{`&OoPJQ9{ELs+JY_YrYOnG}nPFfXCLnEs;x+K-@_Nx! z4t3h+oQ;yj;y84F&)I}(HMvQxPK{c9RbrAPs2Mg0ExI8hJX$PNjE$%JZ=Rip(G1HO zT3pXq(>_Qz_@?l&0zJN+mUYozRF#UGROuTquZ*o36?>FlB;j*WoUECA_%2J&FDTKl z;mofBk0L9FX}OL#Y*)TfF=k-~J_NN&24E^1j_7$|8}P{$m~PXyFld@nb>wAkYZ$N* zO_I@-lZ1jUFm`B6lK9Hj!kJr|Ugw6HU{IP}iv?wAvv<`&<#t<&^HQ2IOJ~Qn2N(D&6#8sp6h@0yL?1HL$abUcdpc zIZBhL?}%toA}oRd4`EZOw!}H-@uszQf_$620v(%@#CuKQYYmZ|x$+`kdWj*<AYw{O|ePM1UAdJz}TcRkem(v@N8XKWNF(g5_A zp0W28e&QD!iC37fU6iYqXEx`|yXZ7wUluiMLZ#w;y+8KV z6^5tiM~v+7eKh>=ilw2hZr467`=f)e{ZmNb_k^7&qd_&4i^YXX^pnDts8QR{WB#`H z!0|@1}V~EN<0ilQ=oX^-$lG|?x|72 zuP+?E#UU#g2@x4OJ|NAr*7T8b5OS3L)pK#D3Nt4sE8X)e^L{VoeHS44m%^$)3mPa% z8E(O_>@ZN5v)ygK(C9U3MKVTCwi)X=5+70{0Tmn~@;#z^N`$9C0|SLBR>zzLh`usr z5k?ZR$I5qPjJ_lDlJ7|5&N&(|q_Z3!YJ)122?nc_AX3omevQde>}epiEqb5Z51Mt< zv9J>>qvrdGXPCr43!39}36tghj8C^m0sGM)`@E9z-IRd0BxaK#$H>)%Y~L`%bZEyR zB<%fHi#H>Z5steIz(AJe490hf>LADcNZtOZWG`l}JT9F6OlJdyhcJwtn)9Jv(5vY4 z%23LUc0h)eOGAK(h5!;eCdHvpbsNZq8IS!@HOfQm)xzXLGDinC%u0t8AM__pi`BXO zWJ=thu3FGK@B-y~8?4k*UoPt*Ra%LRfu}(5n~?^D`Mirk5%mVJ+aq%)$EDph;a!AI znkW(uP?LY({elo;nt9eXe`pOkL!hI=WRMdq?s>49BbBS}a@p*TEU@D3Cii&03^~ey zbVe`?t%4Owg3G1Y{ZKudmYp2b>>NZx1J1udY#rESAM>r=F1wypmY$!rJBE*O6lm4Cak%2YvXL)d+mzmK!! z#SPwWt$h0xoI$Z|8R?eezPv$^hbxQxeDex@4Y=Q%`}@x|;uB&G=`VhjjZo>9F^*q? zYH@sY5JI0cN(ABFOf$O59hYI7t^nJqN3$+Ute;Y9eei2^a~ z4M}`PVkl*FD5s}@Lq&P$8pXXN1Ke=+Msif!?Fw=Ma@?42A$vTcDtZl3S!G+Cuo)mt zksI6=CuGktMr=mEr5LfXS%5*cre^w+%wB;E8*n=`zJBs>wRFD0-v5yf8HC71KmD@M z@0R)_49mn3r!ix;M!|v{0q73oymZ%<=KgS6N-9~s3Jn63d7h0dVHxOT65WXL}<j-_6a`c6`Bm@S67Rg@?_}vb8NoYeSG}{rt0w2dk7P3#7g5G)eCL0twucfnHlm%L zGJ9)Q+b@?cRw27!&vLrT^Y}Pn-vWKJm$0?c?dP~SVTVQ%C7knwg1w`QqX;O$h&`fG zkK$y+_SEGgplG5{-o1)0*hhL626;gOdRA^oyXrPvHt8^M@6c1Df|`xg8WoP~h>iG% zPUgw?8oENk;OJFeiXJ&IIDSuH$P_eeB7|YH&2mbyY;@%`3yeVjT>|cyCw968J6u0U zEmAlL5F~<-w{th|FwI(qyw>S-20I9AcAmvh=FL{A7`TICH53ZQFlBhg^%2o79%T60 z)QEG=KbF8@%T~h*nvIR>?L-*iXrqVBQ^~74W)Wusfd1d;nV1-{8ZOw$I5_VG=xMGP75{_q2P%=Y`D>kg5u$jKd_pLOD0G^$t2SHJ8Q+5jND$*d4>dJlE2=_#21V*{ z@P+(#o)nKS*acrKSrilzYhpA%C5^VNSw={vyy$tB>Gj--%4nrzdGkQoF~u-=82CUl z=4lB8EGmJ}r1}HzaXTA0`vB16wTNNnFK|> z7r7^}sXgJ>G5XR*Sk&vZoB&<^PbG=A*2g?COJ^$(VOCqoXFSpblK-S(1LD8u(QfAK zbRj=dY-l$uKTz(-pZrP}zmsh=eN23<{;kg#$Ez8?!1S-6=o`|HqunK`kWtjXD@7GC zjwcgVm$FN$p>BAOIXyJ)P- zWuh4cm6{?%FwdA#U?~`*T?{I6fe-p5h6MtbP8cKJp8UMo{5lCzvfn%`ylL5flir&I z#hYN(-0!e^3sX?E#5Jx=x~FBy`?Vfk|-!TzFIcC9_qI0-+wi z77VYbW;%@v_BN20k5{yhB+_qln`FuIRiqJ`P^EHv8^1t#G9XbZg_Z!=OavdaljGsT zC9MXj=y2d7=`BbilFUdyPkf$8D|d>z#J>ttpUp#g2_2QQ=efLn2LC~g)Z-87G-4CF zodp@K-#58&$G5T{I*FF&8NZLi@9cRXFQKJx_>G(`qtLvCalM&XqNdT~jPMMTzohaK z8Pz|{yIN1*)Vol-_(n^kJesBdvPAOhHA*X3L|v8z2`q(^P+jx>o$`bTm@oE;XN=Im z=tjrBn3;I;^BIuA>N{;_3b^*I$tOYTxEq7{Im|`&d`>qK<6FiD*~FG*dJHy4=Dt{*cR?X!I$G ze>Cp&1~Gx*F-v9e*H-Q4)mKZ7)>H&Sf2$wVOJ389fvc)4W!C116Zz$yII1+_n zTHnrTE+d9z!8pGA`uZ2LuHgXfWNn0djKC==1dsr)KI|l;|7>ZQ!)M6YR)E_RoL9^! zU{2RG!B}7afMWm5#QllY`CA0>1# zZLsy~TmOnl?wNct7WFSmG2UOn`4LhoKg)2k6vbrK=FvvU=1(|VX$0AXTPRt=FGsuA zhy)K&C9m?nf#oLr!7lYH!h;8W^;Ev4BU>_OC$!HLDVJ-H0)EH2wIAjkumPXceQEoy z1cD@K=9|AOh~C;MbW%uad1Kn>(5PF&HoR6O)Swpe`T_<{34 zm~V=c`HlqJRshyDh_eKDU&5|UJ%pF$rl?OmcM%yLG1T=#-4*{k11RXr2J`8}9vK)83CS*N$j| zPFU$AUn@B_cBy$%B^Iir!eSwU=ZgIQ#50!W>YA#Q^ZVJTD)VimJVX@Ti`bT|0e|zq zK!BJFS~QDr3;G+0wyL*Q%gZWne${VMJtp+^C;=KE zlADdVQ=3h6UPQ@ADERn|RPTi$Vgdhv-bcOOXvB^}uHh@9>8xOX23%z~jV5S?!u}EW zv$zN*NCrRV2@#yX-?&;~0yOe!DIRyRPlz_(?BEklo$E^xDx#0+Rcjw+ zNXRMr@0x=dMMv{2V}F<`jH`=@xX%}XwsS?rX*`P9TFB?tC~stFr4f=KGyCPJ#OQ>n z$aZe$o*?C^3@GhnLm3k~yX17eMhDGaV{_S z5cQ1xk;;2it2d71M*u}Yy1x?=>nPKOy$*m`KF!TrUg&SBnRc^+zhz2n4V&d5ms6+N zvmiWSN4asw$>47?Y3~{^>&QDcdIC0f@fm!xPEj|!e!AlI{j+4{aeh?qe0t%E55imD zYHuCG0liPF?YLn7oKaL{-77}@{g<}dDS7kn}K(E`c#CVt05t=Cka_uAp_QqX)k{#TXqfNr! z+aD9ZxVzEw+HFXFUx@h(DMA)cxo*w?{fB^bq5@*qjFa~yCR-`1`I#_brfchIB3(ar zj``(M1)owU5?2=Dta?XN6|+(x|E-&cpV6d zG8JF5$mXoxEAB-n!PJ{P?HWCpP;e1OWqw9tu{+8WT}&|3fsA+_#I;7(F`W|uJ^S1# zNc*&sBZDc&RNe-W19?rzAMG(ITPJ(s$2^#<*j6)5vx|(4r>qEDwgU1h0eZpb1#5UL z?!NNTkSDj>nfy?e!N&bn4D@rqD~KcEfc~9VJxmo%Bi_17u)ey7T(dm2So62R+ol;F3pdL)>qIJN5uZlY z8NEicMN1~uBHQ|u&7zHOd260Wn=srLt&^gd<=)m-GMna`ak`a9K^C6) zKiDiyF3?zE(=sDDsLp;HPp;sGWTyG#id;rE99I^Lu@IX|QM#r5ClN`ez#$cBf`ZD$ z?T26-$?!O?-?(Ah_2cUmH)cPiXQCm)c7I3 z_0`miWqH%Y2(ZCb$Vb5uabUku3nxg$eNE-%-hbhkO<7ilUX|#p&MN5DqABc|Hjzs@ zJ&u!(h{1^Zt^LJY>T?;lR!JR?fLxyz0>hPBCtWevi$L8!k27fgE1m#DAub{|5i0ic z>%=@Kq(BPYvkW#$p`bp$iKyo!)1n^p?dG$$^_CnQLPup<^^LcMAwuH0?gtnRBq4q5)?QWYUqYb}dqsVpC}c~s9J4$3KTsPSxa z!OlaWq`$sJudzkK;)XXSNuL1I43t4bWf7z85a%LAPqXRnO~eByiyL!MogSe)PcLXxLb;E zKTCf8^BRRQ+bMi17QSlel!MWSBFKvWuwYdzLEZ`#e~zcX%Hx^qs7Rp0x*mn7U>!J* zza_#iO|sb;`IVvcOKb^Qkc`s0cpHhzQp}bsRccZaWkiNjQWqtj^6F0`;)>9pC8j7w zR0>zl00+>8*Ln^{Q92Q_5PHBJV7jOdCXNGM+%4qpOuqJzGeakPM4kTyF+P9kN#Xli zqV1e9CT1tSg@K7XMPXaLXv6B*c8Y<{RGbbB9bG6@`3r-v%%ahJrNWj=DE15Q2L>Lj zT7&Q0R=c&_I#5pl^yD}*3%^R=#lP_Er@t^!UzkNf@$WS6uQFSRr&L)uyRI;U$Jn6( zw+HW6!WHb?_6x7j!3EH$J0jdGVU94Ltm*>-o2tjJ;@M3DA!?J!SuL+=&#j$4V$lf4A?$Raw&398H+R%`!%PrT2W z*8Z2xAR5@ZR(Az%2;W5-c`}WdA^0+%Gi090fbs7q!S{$rgO>r<*H5pW+m8w_iGND^ z#!UdYe5~;Z$_!PDk$JTRQ5=^Hg{m)BXt>pwb9Ft9I|E`q22E^rblg1k)MjHk%r=5D60en(V! z^i-h;#(xxc;D(Mnhx2jF3T}8iOR)xv#Zlx=7=|`#by(|H%N?<^$hHe1oX6(~pg+&T zsADax&e*&m@Q|k^x+$(k-+_ z+Ell6(8_&(>mc7cb}>YeXHC*kke}$Dr5Eyn)oFD)U*W?;%jsALiPhKogHajO0CnF8 zJge6qVKZQ$^A3}fZ4S>>0pB9`D@rhkQ)_oIpY?02bC4V!Mz+;SI+lZXzd~~Z45+K} z^r0f1pkwthtLS(R^Pq~b?Zd;O#ad8K2IV*{#)v^}`K@1nZFwztstTX8P^|!tAECY? zg1H+#3kh*>G>JGKn7pG1?;O8Xs9L5~S;}4lBN~rdf6I6NZlyDUu9fG}s0Gt1ZT)?y z#^7(u;bD(peo>St8~Adkb%~9i;9xAVf)i%v{zUcZKS*qP6Wz&=c|0I>{|DapEes#6 z1WeFL7@r=&+;Eu1H|#00@|f6KEa>CVpO;Gq`vr1g&p6rfD)01Vt$VM8TaVsPO#-u;@kfzLTDY`OhA`U*5wR zbPXT53-)JVH=sAd{0iL@^$PT-qvA=;2y_BQ@dHgUh^_JthJ3wZ)x@ZBn&)-2R9 zG@3BLc6NXoj&{dYeD4vD%NDsKr!T=dq761Oph;dA2vpCZilV+#n3@A&J|hI4C&DC0 zO0A~iUPvu3GviP8xy;;Q z+PBd)&Dz}Dv;-nt;YjAv$|K;^14KHC$trSFC3tB+K|4BJ0{kIzQYzj+f@P-DIL}eS zPS3F!n=;AqGLB`zRJRzUD_Nk*2<*I}xq=HLMtGOyYmGazjCuBZBr0c4GOq8I2FcB_G!p~ zEcs-7X3 z$`212g#f4|!ft?}`QqqIN17q7o-&Vs%YdqTQOCw?qc}S}-0Auj?s}r`QBlCGMB1UwJ#AXQzSeU$T9!cd~%s?jT}fj{;=hhQIxleIJ!@ zW-47s(F}$2pzaZw;^oMU-4?w$E%xC z>Q&&oZ8#PM77fN0RbLj4o79i-WaY1yZrk%{djri)n+QM8&$|GuMV(LE|eE( zlb)vZ9$8;CMKvLY=}i(9ok;j1Her-i7RFw~H_sXJG3u{FZu|fM(3Y6c5o=NLxDES->)X&>I?nSRpIQ z!OIXn7BN)jEL<$er_~)dY_6%`JK?BDn5<~%29D`9H1QF=)+?6%`TBZdLZYfAGh1Kp zwH5h?#2}lqc8|}~Nd+bhBLTHnL|}7ISPm!X#GSGben&*&L&_Xcho*kvnM+gf*D68= z)LSve*M?;qH-=@qa3_kOgLX{)QuvJkR?r305!c3!d*WyQg|U-+>c+bez+$wo&xrQG zioj2P5|5FnL3u9zknt5<%oF~kLe=nLdWL(tD<&-#w7}OF;vF>`fue+IID;vNRkY-^ zh3_w_8T&t09~c!)4#~xlv?&LzlL4a)WVL<;N9#9?6ywJT0~D#Ql?P4JmTJ71z}_WZ zbOgb1lV$w_UEoU6{e*%qU<_zUz3!o5C(x{W37S+4hK@^DVya+nuORD1q#fwf@cd0| z$L_X6g~3Zao5j~85I~eYUJfestrLQgI*x}ju~(5asJ zl)<2!jKYmnUc5<^iabUVWf2sqQHn?*N43g<$UT9}sAaVZHgu8G*NxriRh!uE5=Uo8 zB|_1WZ`@)!ByzP%G;8alQymsLyWOJP*NJcj14dv69qtkxe6H)JY_(Mnd3Gln+&kNe z75o@ZL^vvVSacbpDBZ;R@&HAg`~zB_<^7{93cmMMsyJ_ojq)Qpn7o2p-9{bg&&osb zUPM7(-C_d~?}SwfDSo`jjgk=@0!!d}W4AieR9nmk=TeFe4saR;8#$annICvLw06$w za}187x!m|C47h2mU+C5+8W;5>2#mSD9y2@}M(|g`^vA-VwG1OkD2nK2A9>jE{cvLg zPP3g+Uk}6-2Lg_e!K}jygn^sxjKw${v-w~;bWho_!YFZ%;D+{{Z|u~*pjvG+cH~^J zZ+$6KXn&(w-NW=SO^P^~N3DqWH-ey^3?>LPbfJ!!rEBiPhzvN*%SjxPuTJuea=th! zB><^DjhiTSambn5bu|oWr6>$8VHPCET}F!+?nRZJWEwXt>!nqff={*%Mw_j%Wszeqy;W0K>f;}!Y z&3%1P+ahlypNiUaDiP;MGZnSzTBI*O?7w9{YTNSuxFNA&T2JEIFDO2Nlv5J!>vDOku9x{HLC5SuL5I!(jsz?_u8LV(~gmX&STc-PdLH4T_C~7}DILH8yx+Z+E-*?ieAb(!PD~&K*4LFRixaU8b`r@ho62Y`+bEEf)x{ z90+2^8T_?1yyZLA(zSduqt4>vvrhA~4nDip{OlG!`(Mq^Ea~CfR8Ckqu6 zK?8$vQ(uBFL#c*v)b70lq6lgd1ul5+;(RAJrQ zKtXLLDN+ZpW?@tK9}Dewk-Eqp6?T_$Kj6pG<_x{BGqf@lLZ)L_KV+7~69j}=yT@-upQ!tY{H^4j1mkMA3wiAd zso-~%Q0XvPWqbl^c&(#+v+f@6m(w&Ji5O63^?~}~T?oT=lm+OZ)!sU|c3b(Z{1tpSMUlA>}NDJMa?h%^&8UTjwMx?O5e;bL;K)b&}ehyX84!4C=L0r;X6A!k5IDMKFQ*QDDkuP>`dYxp#oW1#*WOa|>zH zPRD^#p4wEeWp#|~Pr=0(P#)rd<=H!+MrZgH7%>G%q48yx_Y*w=m}K2^~*Q- zXSrkshQZ2~OF4lL-E)}2@AMQt-+2cU^iVhW+;RHnFoC7;Rea%>{Gj+HZ{a^EIdae4 z)ID_E@%s8~a5!{ioersg`T7(sJrph7vOMLuO$m_SgMPs`x_v1PQ>~Z1L%$vI`@h65 za2QwAueGzW(aL3S7_~hSJHB|Qh3@6yB*=5iarrVnTwgzjpVLl{dd2z+ov#(>^srSKJ9Kf98|iF);>bBt~6dAMpmCIqn${>1eVjTUh!0qW1a4 zVk~R0u=tcLRRbR_tV%HhDh3~`>cfQAFP`;w{IJ&)%idM?wV7__x71SrR@*y1#~1zLHNYBpXtBG>fSJ%7?o?!uGY=;ws7D4BX=DeJReRD47+#RDu#xt-X zz{GmSo@sXj8)pB(!R7YSx$L_4?kpYq;J|kd7F)-zz1qzZu_CDTMW;ZYfQ40|Y{*!L z{qpS~X|-T~vfO9z|1(%gv<@EO`K2bkA9}F&>D$1gdBgAeG)}2%bk|kQb~=wbv|V(b z(fl5x&jJk#R*gQiheNLPMVb)4lyjecH^nb(PkTsH$#df)8z~3K{>NSXv$4TP;X4}* zJ`UaYM!mkPdbv+jvPz`Ku$(s@IPTNZV@i~d9rtbZq0@ibVQ;B9&)It^r?Cy^O!o~u z$4aB|=lRZaI?CR#H-=M*Gw9s%hyE5>2~!wJpb`2+KG<*B8}yq1Uf}{oz06v}Y0chu zo^;-JesrF4LIWPB>+5s!3xO?@!GYg_jd70>j_?v~lP{!Aed^9Rn)AGFth@z-w&|do z3wl9Nbv`jktN2!o)*-YT;FH%Rn3wy)U+~cmRM7oY5ASE@TidjhsQvZkA(Buma^Wh^ zLYBI(m%>!y5+#0BezOFiAcZ$5A#fz~>C}0(_l;UyE@u%yIYx?8w)nv$QzZnemfLby zl|BE{jfQw zJ1P=d3VXElRe+3c$U8yEqaMS`;t*JYX+wrlkfo#*a_uMRGZko;Rb=@vC=8bYV327& z$;G@Z<$%66GSnx=ezMBrvos{N2?6g}F0BjFQM)jSQFAS&xW%$z645&f+EF=$DCaBa zKbObDQ<*{?DmvW>*4Oi$5c}25v2U9`01SFM6GzSrEieW-j~bs2`(@s$aOdtAQLJGI z=A{`tCwGrh@lq>fxdVD{DDC`G;J5P*y*6TKpK)24P{8fCf&%u6s1;!dNNfj94O|bL zDTlfN?YU{(v@_ht*VlChgS4sRgpsMo1j^-OcLHxrs?D_y5_wLv&d63Bmh=P$eB_=~ zXPk6j!JR-{jvON-oms3Zbc`SYEh?jJLCFD@E6}*987HcdC)F07n3S7YI^=1MqJs3Z zZB=7o%Cl^&M}9_nmR8Wpqhs8i+*XhvkQOKZ(Fe2BkxPXvY%1NfySv*;Qr;4`CH6#L zf83qG?i4uA(hxtXQ*G|sGlmYv^V0n1*;-;Rg$d-&9LK|~Vuvs9UrOp!e!*?e)aWmT zUlJ|~rVWF5htmTcSp!ncJS}>Rjy;x~UVSb55^}GzV(eR}5qWU?cDGA&UT3<`P6p%jEKCB3&`*y1ydd8R^DkPJY){XH^@q#Z{YX6`m*P-rFirMu$#q zE$&{`5-J-9troOSxj?yYgd;3|@f4Ioeff-HkaB_M=8Gs8MHxz~#TBHzkABQCibx`_ zC@r7Cju}xRzg)WayZ3JQYMSx}tKv5S9C`4^u=k9aP%s@w#r|0$V~fJ7TG;_jMasdHp@CVWjdP3z`t+CQ%`tDOEUB(VEp)wr4-qVJ_+xxKyuLZX zwaqCPS!&JgLQbZ>cQRoN-fg1nk@Ty13Bq`Lz_Z``}-htSX9nM_g2j zDpyJsHCk2F`)JIIf{RK~r4*RqSv2N_Vem-8DXJSGxl=hxrp*#}9Ck051a544dd&Dm zmC$fc>ksH?agXW`1Yh8Ot3NXQk=?bX$I6}BJ!G7iHy`67J!e&Ccplx>eaD)-9O!%9=|(Er#}9^^hllh4B z6Ygzw7Yn@D;8$&eO-EeIjb3ycku2e7u{h+maa+-r0ajCp^LA^{-FP^(eFnTPU0&W^ zIvrqb>Be!kj_G`@fv+m)u$`{I@qxUcJ_x7$tWEkTZVtrVsGEMclQno z&7N+C^Snr>?sN8!{nqi{QcvrSep6;&fOMQAUjki8`6KY58G-An=NbK8c{}7B*uY3+!8lAELqp`RY`NHy33Rim{(fHJkq?1VWRg)!i)iT zV3_GC!nSTVD1$bm*#>8*Ns5Bs{=*JjOOGz%!vHw|tWJcz6c_^!55$zHJZRMW{wh#n z%(7ckn1HRLs3pJ9O0$+M^jAk!XBwRI`NEMvEDE<(U5>$KC7WMML7?(lVw*M*kK4Jj z+GFSH)>NzJw&HOMwk{0SFmhD`gVrp~W5g>)d>jNGaa()I7(I0_Tx|8<`2D|sbp*yj zo7&CS=U$S}h~Qo7hc)jikU4QXR^Zpi&2gRZ3{v5}wkQiEgj!Ff)(5+U;I55aPpnN*%!G zkW-Z%-r8+-%Uvz&Oy^!4eoz=3P7{D-uvyJ_b%koBUfH!&G2Xdi5=>eBi~W+EQHldK z5!`zL6Z@C_aXPE0s)!3Hrs3m00DM4;}ANC`(l@1wf(CU^BSu ziK|i{W(3>Vb=+*1eE)lV-JHGEzb!?dpb*PAiCOxl?fN=K`ca}w`Ug-tO ziDu`p1UQXq1u$>m9SBfYRO^wlnOlbBM2Cvg_eCqV`+S4YZYI#N=J0Bgsnt|xlN zakwZwaquy>)4!y#kYl23of}RcJ2#G&@;T$;F_ybor-z{?K;N8uWm|-t$_) z@4T#41vIhreYr~GSH}@iw1Et z6pq2n>b$Xk*dmQMQdo+Dnlb#!>E&I^MXULEGI|R&$Pt83-)a2?B3iXprZuDt{&AV(>(sXn4@-n?5=Q;ne2K3n>?g_BDZql9O;(xjz z+Tm&k*7|x#6X1E{8Yu?PhwJN48+$P-sr+8DtXE$s3tkm%ICma4DDz0pJXf}M_ z&~WE6RLwS9`2qE{Gu6s)RV&9gYvowR(-`x1PUQXMrY#j>;Z>~_ul#OXA|q!_s@0v` zthz?^s@4CA>RvH8Ao8N@t+PHtyfNjri?-IfI?+n<-@Y|FWGY>Py#th;RP?x>{4?5Dm| zqL63u40Y!bd+)!82XGKpMafENSzEEUI4TdyPtm!LfmlAWxdaN-j|=S>kq(pRYS>T9ozuL-`XsLA#O*pISBs^t)f ztu2D_ZcWoHYN2685F%P($4+*8zLl58^Ob!n`=;yGzX)~e$S44x)0EI7`4 zU07rAv+Y@9__^&_nYBc;BiWli851XHQ+$p9fjhl>TzUg@O+Z)|O1EV9?m0#^J{!^M z#A>xVFmD}8=lR{7Y8~WdeVoDS`PW(yYs>}Z6a?xGRm%J?Jvxu8A$A?Ong<(V~var zoTcWgVwl?5ARe+m$Y;_oV3x-STLs;|6kz{N+QDc3Gaf3vPwI%v6b*FcHv;%Zpbh8( z_(nRg)~rrG2!=z3f0gNW$Txrdd`QsA>+52K#mOBK>IAR@p{n&_vA4d?OALoKO~+zk zOTF9RFO-aILCJn5>?-XL8rLC-2eviDwjw?$Jq@c5_#xNSen&Q7292HR#?GLz-{tt_ zgV_)oB}&KLy09q?_G9@Wyr*yJfM`p%_u%1!`-Y)O&0L3MvZl+j)cRes@w(|176Ccx z>3Vm1cYv|Dp~^O7?SQxTvZRq-x|Y1RFbagoWTMG0VN22HEjr%}^gHlEIJRDw{p z!&SLSkPzpF?$@GXYgI*9UVWZg!$v^C$UJk6Fjq!D@c4-ncDaUrvoTPCPy&HPm>3bV5#-ags#YiwGgD^!?{}1Y9!SrpYw@XAJ$DhglRQ zu;C`hQPUIh?Bx&UMX5x(*Coz^~`(j*w z<=4?K!+Ryr>E+73>-?ioMT>#P<{Ed=C-_YK0?VONhpq`fW^44&5qu3 zi6e6ajXT&6{9r%-Kk>q4v4!O_sHJKpQ+)1BPCCQCyTpDo=7+uOanR~{`Z%%oy{ zI;cYgCk7(uHCfXTo`;v%be0(>3cl0NH}exS`~>x8?Ko?2jyF*{G*m&q9vumlaFrl) zOS|W8!_)u@!6>FN?k|Fp1a>ADjN?&AYY|e$d^vBx%ULY)rGeW7H`H%l)YRR@>H~QN z^pbG3FqXYxry^QR>pkh0f(bQPvm|QUTVYAkpdr+rDq>}#8%6WhBq z3!Jh!oHTHNFR5H)!k`)?2oj66&mRyefbXuL{|XMGVPrJ$V@(MIwZbnvuH{_bAPbDA zw9+OeZB)zaXl8;}0zn@jOZa`Uuy~jcf-BR3_hRHBsG51}Bsh&)M^TtgfvXf6RSFNn z%R;a$9eE_h09e5Y0m@xn$f$L6f%I!;r>=;(8dIf#Ir@oer;KDDksOy*wNH^OH>#NP zDxx{Ob1AFWmm}I3C7zF^D$h9*v>f;ntZx6*4-u597D%Fp_x~>h=5Jkk1yUw z;|QpuF!Ia+BX1r#o37~!{@hsm^_<+{lV6vnDECJD5EcDNL{oq$pMH#|xj?Jyb65xJ zp%@0xEWOYu6}Yp<=p%3(74#wA*2JYbr5c~(n#ENpzU#PR+{!s(BM15&+`m_XtShg1 z*%JHyo%`E&P0Rkw&6FKK99#6fzG*Zf-VqNke8iZTQi!xsJr8z!{1C71aTy)>oKpry ztHXMPAkpHc6E)p%MqY{Bn1Q?B8u1L13do_3Mlbt6fS24$Tn9^cFeGCJEQue&h*ODX z6WVDf#O#sGsY1A@)O3~kL88f#@&~W{++2T7eQYArgt!koS1mt7aCC6Ky?tALy1J*X?$gx~{VnKkqMq^8G5yU{YNW2l z@~Wrm(o=Qmsk-!3U3#i6Jyn;Us!Q*_x_Y3l9;&NAT^*^bP+g7Gm8xG4>qq~7Jvgv_ z71#fN{3BQYp_c2WCb2cBhz^HZ%9ShQ7!iE;E}B=j6NwzBqePh^*Iu{V5P1t1mNqYd zT5%^ulvPEhtm;zH24=Mar*GfB!zlL4!)^YX?A+d_keMBZj#+^p50atx_u8fOyhGsq z<=Q1CFaL(`1)ZK+MWogDfqwAvHu-;HG3rHhR?^)N@LkP~r72VB&fK|Jb7NKrFGhq{ zlqd={YHp%vy-A~PeInp&F%Tq^H$0{WWq{OJ$~{pxDZv@UcRXzbI4K(eVxNc5&EZa_ z5K_2AJsX5WBmb|aiPx|7U1_52OC}BWCHNg7YMY?U$r@Phti%33NY*Z)Yf~73Is4nC zTe#*`nrMgMP>+4Y0y}gkqR0DCit=4U@KoL~EPTFfd_e`)YJ86l3G~;NwHq)0cCa*S zXu+vR7$R=L#_nv%dFzqMuV6RyMK_#Oy5VwZ^-EoFc~ut(gHOvGq7!q76pb5TP;-=t zsurqt$#$$=PM6l&B`(+{5LUd8r))0gJ2iUh8%_39{j6oB-5je%9JB(M>2E510;T`W zAB$t#liNtn13E$$Uoh|!M|3%VL0Y0pq$iq46&uv0UUXq~(FK)7w`!$nuBtiaNTOF7 zMYO4|G&rhPEv=-!wD=B|nL8LQtzc;6ziw$IdTAwBFRkPTON&=2(Mu~ZmsV&8ZUWW& znblQ&=fAeVM5E)?3n{tbLYl~h#9JR%2Bbzd#?Tz#c&fxFChLU58gC*SzW1sl-pUfl`h1j;;!*H^&}B$iSw# zk0J!uS~kC%0s_r32c!QM@7%OA#G9=;vx!*LArhjq$^emBL)53i(rk{OP}JM~DddS-aYfkm|@k zb5fv-DU+^NV{v3+zg|M#+H5SSp?}2mvIDHbxBc_y?SxI z-lcb`ei^RGkpnPgCXf!&#BN5$P6DRtJRHkSJLSZ*V^44 zHMPB62*9klL&?{=1~z_`2u(`Z?j34`(#;1-zX`o__;J@>%9OM38R$zpJ5=i*Jtv(2 zp%FkJvkdz+^yeQZxfNKNq5xX86Cu$2x5yBHx?MoHX8rX-O}|fUHNtxp!(5~;j^-)J z*F9HZuVa_f;c^@`sV>7-vZ?&8$MwVL^2JL^sevvvcxi@IJ_P(drz>L972$M6N<}DK zdx;S&ScL%T>Nhb;-&j-jO_^@hy?TJ5Tu_-(sNJV7`o>_JbqGIltKagg?QC!Jup~5K zn@k{bt2ZW6A282BTCWf`*s*)5z{-(fDK;2*qVeEgx#`8`ZH{@oD9t)5RUPj3n1eI& zgrDB!aE+E@hZKWL#}n>5sS>8buacm}Zsr%0WPeSyx?mVWyzKRL;Nv+>@cQzlmVZsX+zT$gL&zR`hp`Tr8uU@6)S~7Qmiwu zN#!OgdTaKPR5$I04GdHYv%)=@0fj?#CVKV^6{VQRFON<4#z+;{z_3HJVazT&M-D7K z5mSh~arcLifkr|0o$F!%I-)2{w2krkX2D4~>omO#)s9X5z}9xuZw~oR5%pWrb_Ac- z9>5^OnA^z$|48Q!iGPEwcLFp@p|bGULc@Ff49{)Yw{CHO<|O@s!?atXY9?K6UXn6; z2IVBKEmFM!N`?+Mx?qNU#1-s^;b@7$0va~E(e7qlq2f%N2>HQiZzlk)UfSRT0!ZW;eVFV)pVGnekAD}s@Wc(jt{iBz1`+daD2@CrV%D( z*B6!?k9>lg>$THQJlHzc>opV58!TAQbZ|}Er|D5A=B~l-wN;X)oMS^C^t=%DwsK&Q z!|c~&yqtxdsBw`-Id1T)RfJ6AB$_U1!$;qOk$)3P4gif7&=+Y1Q9!+qwG53}*waF~ zPFQ#DF)R)wMyHyl67bd&n zBtgSKzRvF0g^`IYT;;!^`wg7y?C~wY3QL;_3lOgqnYjFo#~)@Y-Wl3!kj)8Fd(9cw zYL(aP)=`s)HBdvb(Gr>Nx_r^6e1BKV7ZI3Dga9yN`I3bKX^&!IQcg(J4#7K9RHDfY)pl=uATFrm}R7CL*TgCMH*lX`!p)rMH#O$>-hXOzOxPrw`MxUB-6 zZ#&U+_lhxMPkK!6{+!3Jb%|{}F)Xq_YXI2dtAWH+ulbUwW`(M9mRF=$KCpO99u%1b zH60ihI&*AXEw+nK)FgZ4Vp0TGRht{RKQHYT^cKmA49=6GR>q82!w&-*TTL54!q#n{ z?+8QpsI^-0Lk4oug|j5%|6#pii#SKXBtZ{YgBXP!|F(wu z3Fd*^l{{(Tf?=AyR8D9rTQ$xr46i~8!lKP{es2cf%heR84ymW)LU_?DPch60Q1%|* zlVBADFw0w8#0x4xOBgJ^Q5q6s|8E7S(eHnC2lsWGrZp zI8Sl7Q1i%cMt=#`*?nOh-4oW>&9DgUJoyu#W+UuH3X74*GZ6c6hwgJI+0(YuXHrfn z?jb5XR2i~Lm3r&A@P_eW6hE|ZY0;j5w<5Y7H}7_Z`CJbp2Ew6=;73+n2hIJxW`SxL zzMza7O*y*UVA)GT?_BZW81gzk4C&^BHUj;=gBb}bBd#2n1RsB7jK_LQ*?OeDx}^uk zutio~wHn}^V263J78R3ccRF#W@*_r%VKK|pO*Xc<*6x^;7a9s+SMWfSY6MCi;liF~ zL@vbrkVqF;osG7^V%3T;la}o=$&E-DLIP*3^k^E6wx}Z`_JJ0WL(h~rGU9;Ue^&qZ zpng5HNe2Ss0bn@6+=)E=^eU)NhR8zu!1y@!_x+czLP)?sec$7+{Oe*I(i&xX@>GH5fb?47LY@hl7DL7`TJMqrspy7G@0cdmD=rIF)YYYa*gTem>A6S{oXH=ry zY`&mBE&kem%Kp5<*B6gpy~1jr^6Fnar`H#+*z2p8qBRUG4eUxyHCbb=4$-yNBMfgv zV9W>@xwG^F%GDW?!y(Kt_8kIrdmpA^pUN?~wc&kl$mT~Tw&=Z(*l!imB3OBUvCd|% zP;0Z->|xEWcM3xqV<^~$T`T={y*YdaEVyZTdutfq6#-z5-(fAySp%o8H`UW2_2yu0 z*REXe+^2Yw9m;NG*k>6|SV2hXRc6~`**;S?<4e+JE`}<8 zCk9i-dX_X_859O8=)FW_{eV?}-`=-tZxPQv)M&yWVFkY;s3(RvhSuLgMbB_X`{%zg z>QEy*F_!|X{56~TKEn1THT!{npSdiywCjB=E+(;v&fvpqhFLY6y6_Qdgx8O*_nw+Z zJjR^Qsft<6{sEf>j6P%C2k5=01dJD4v0#b#xET5*c3!YXU$IB*`mdF%{0FwmF~b)| zO)*Yt?G5krCtsw*&a2uN-uf?)`YXJ7*FH=3e)QRpUf@3D{f1NUg?w&fjjW^A}O)KOo!R?x;&1W}UxNv47xTH+6(lK-R89b-^#pyUQlt!I=km^4W*i z_xOsRT#?~RdGwUWV@*Mh-?aDd;Qc4@{w6F|W{qck|}$$Kwyre}4Jv z%Z?V>7m@ULG#e@HpPr3Q$FS6=4=>-pe)H;WsT|N7A|M`;0+s*gw;w)M=Vfd}xx~9? zAAhbcu_M-gMTz4#Z#N7`6fKwgw@)wM|FbGT%PEPCws2M9SMQ(w^y|wvAHSkJFa7ev z^JniW0k69E>CO9>0O{XezR>e6*~hmZe}4J?`1#Mz-hbHG`iNKb?)k^#mv5fGePPy= zv9GV+{kHe)#S3W5sLB4_A?ocuV0jKI^S~4$27cg3e9O**xcF8eH%xo)0Y2~!yqbHOsm)B00bL1Ds$$A+FLs_xIaR54N|XLx2BZxAk;;8wzpj(~2^Xrwzw<=U{KY)!t6r zUe4B&~>Fa=r@xilu1Gh<~n58C0D*vaC1BXRB-EiPhhTldA;54Sf&t0ZIg&9x$W&ON6hH4i(C#4$4kNgvkPO%LB*v{~4f-s}UAwRI7PS%>$86i2yk7kf8A^Snggn z2E@6n@Onwh6_68Gu~54LL_*AAI0V>};ocMA_BX29{w6@+H*9~I?@auex&3vqI@bKy zpRgUUJ3b`r;*0Uh8RNB%-24LUz^J(SW!u{`x%tg1H@|>yexo&a<{^ZU9!xMH>8Wg# z*2MW?+!ayB76344_Z<%WqH5qD;IO@6;FrGh!GBvA_@x~9OaB8O_)Eh1mxsr&6p#Iv z`l#Pw>lejQUv6)|m7{)JIqG+O)E8{j&-`;hy5o8(asOEr>N}9bee?__|CliQH8%ed z2Y*&I`1f!o-!S;szVqIHUKspqIrta;dp>yR>x)AeeytWAEs9-wfma-|xi>&AULmP? zMWh0ge)V4+`U$MjS4V!r*XXNyg0;Rm{8d|{U;H=qU*X)otpD1T81@;D>)(Gu&!{LK zm^)u~KDle{^BeXl!Nux51BCHUNkhe})y~)2G<`%kofW6)_4f92IZe+ir|Bb~rnB`L z007lWDe>Hk za82lZ)q@6z-$KZ`d98|pCFZE+@5)Gkz?`+7?jdW2Fd&zP_4vp?5ZqZ+V|${p4Q)8P zEn?CRRtLzRaYl?BaPcZUC=A^=SZm!d+J7pd3f|T}Y+6;HAK%rz);{AQ+bf)=O!PFU z?CDeL>C>uDy9}0!vn<{;nzvVsUw^520F7DPcVJxADc|kIu<+!~Q8qdaF)*GZ9!0cF z@$O2NK5uA8eBcPo<*a2>G9L^u?Rv@(wz14YsC|-9gW^RsDN=4})NDowiM+R)ibQ4y zPLnLB#_>TljBkH(q$qc~ck_#Y>Acc|Y98P2F=jC*J=QYGuhgRyOx?RTUzTBdMctt% z)gOAj_au;X>)wq{(qPJBI6CS@H7!!^-MSEu-QEFB_w==Kbt;PN{N8-zG#`EGtc_zou2rV#tL8MRuf`bXea35qz zSWA^Ba#XY7XRlg^hrGL?T%FisA3CkI3MRXD(YtCROVZrzhSHf6ZHmT$4?@VF2u2wr z>uztKYg!WQ5O^hZB+gks@!C=(@}!z5=5|l~&m7O_N)YC~_CO`D9p?nf%Oq)b1wcNj z`E-fzdM9dV#JT%BzdOB-)Bn9Q*y(*YthpVx2ML3n!H&Z|VEPZkNA3^sVbEvqgW<3? z7_Qh$2R>qvjx!iPa@`*M55=G|mW(g>O!a<;l{Qv`cr}0n2BhsoaCVS77`DyV$&TaR zG}k+{^yG?qq1ef?2VnrQAWKR^r8Vs7FP)n;Mngi+-din{tu~@G>II#wYiG;JB)Vk2 z(o^A1nhY9X%}PSe9%|^Z8lxfEJ3DqQ6t*s6jlXyK;(gw8VzCjErBJMPNi;ixciOn3 z{@#$BFr>NSQKJ6-5W}J42i#tw{sAo-cxUuI>OaO(lITYLCqpmF-UM$PRu>m8W35=3 zOLo&*cUCKI^`mvG-r5pzs!2BVgYEXPs~wq@dR)u~aKLhMH(2(zFdk3D)9sh(cBujR@yR-P@?}~xnRHrI+zp^-Di$8rY224G1qxxoXmqL z{+Z^9N~#2xOguR{yyJzGcVmNFd09LsD_KDqAXxds%wjEB7(c-p1u+5WBt*Xou*>J+ z7%w@VeR%%*wRIi^)?yi7;gB#4K)A*MW$v1KOp8xGU^rX8O;k^X))W;OH`IlL;%eUL zT#ZRYS==*2t*&@XNQH=4o(((^lj{e&inr%qanYIVJ!xwy9x>MWDzC&a2p2*aLk>d@ zkm^g!X!y`Z%V|%Tz^Uk?v?vkTnLnJu2Q>BJT}N%4)CgF^vS77>-2lEr$ZWEvL17*I6}iNfL17)PWkEBv?Mome-NUc9A$K939aQny0BCP8@p zZ5R!6WdMI~P_Xb03KpR;I4+Z57F~zNi|~~~D}m^ihW%Vx$380XnaH-fT!j0P8^t3`h=2GEl9UT^1~G_wxL$ zn>WPH{f<}!nm{wj8Tr59g_|dt0POO}A8E&8!|N(ZS{g*-uYvZsb7 zWD1)^0iwuvdJ!oLz_jw3`%&LmN~^A2x$4^bs%z7#LxV!;`&NG21!fai`4`SL*Yii) zDSXS>o9k_%f8o{YW{v1P3)3K`XoH;Ff)R1XStP+2B-5PBM@Z#sh%tza^UUcFz9H-T z3tm0bgxLfh#{cFVq#cEDc@^)N7kNikIri{h)F1Y>hgeFdBNK^xg<9kQd~@s964}nK zC9v(3A$pJh;nngrBTmZv)wsTf#Zzm!HP(EGmowiW5C5(P%^uvU5gToL8l)LBUMSEJ z?_yQxs1cT?A~dFgGYX!>FP$pM6HhK5J8T*(=r07h#J!+%z@JTU zWClEb(zZ_ynV%S^tqtfWwP$PBVt?1nQ-pIw&GSMQj+SZI6AvBxBD=@gyUd*?1wuC%e1TL?n8R`_v)osyLgb;~| zI<{@R^gxXu73TbK)UDM5)`tZ}ITyKoI3RLQSqte6%Z4#@L{m$D0ZUlxp*MlrXTA&s zJ2{*|?GrZ@Azmj#S975SCj{=8Id1Sr|2GHg#Pfuf?<5&tVJ7@r$|1dBk*06|H|i~X z9;%${b;N{{VK5HU%un34No%Fv-53UNDqYlf$8;q#X5g6v#TpMaMN^!OIa+c4Mt|_Y zT#%W~p?&&F-6(9r?BW{^la%Y7vmxKDVz8HpS5`0{1A)x`qC5;o=g;|Z;|E)F0(m>z zf$9|K_=k+=9oz%*#O=ja(YI?a?vw;aLc5QIln7XQ2!UhG!}L6u;VT-A_Ao}-Exul2 zu{sj{9m1rrn#{N_w63;TmD#FHt?ZHd%AVKH>O)p0JtvX(*SGe8RI} zHxz3aW3kEgEK`wV!1YUCX(6+BCPf&d>`hGEDcTs!+*$v02pqw`!JqBzF(V`TDL>+(@Dy*EnJm1Fm7m_fxlINpZH`A{hz!K{h#IA&+zs) z`Sv$>`-gn{2fPKLd<{Z)U#Ry5zE9NqBm{cFw0b`HAMo5c%3sDK)HU8_W@^0f*9J*KjMH zb2E{?=8tIYNDN^?AT*ya*Upd53-U7Uy>Qq?sfTu2sf+R0<0PH4epks7N*@Ls<=KM+1oPcT|Qg}DsTy)RJ3R{@7BF z?IB5vxhFOG1ZYuFswcmT&rw~gE2^VwSP_+s^d8c_qk7~*W~B!KWRX1oK6bfl$B0W# zQVf)la|5gVFmYL+I&MFbdo9nVu+Ol3MReb!>uMRAGK0p40`r-mpG9Edp@mEyBD7pA z0OKxngEX~b8oaVzqlk>sj-~0L&lhCZVs$;h_}Y34xY;H!uT5Y>;bjKrL25+r#;nI$ z!76&on&0X;n9p0HIe|06h>HFa=RxM80J~dQX9jgc>tfLxHV}eyc|2r` zHop!ecE|w>b`Q^K;~KT-VT9obo!elKArZ0(cR%|4JM5F|je)8r&y#opU8r=xN*Inr z) zFwLxGd=kOWJb|AqfS>#tey&3-eFCLVqU&M}cwHf@$nqqGBmFt%KNa~$oAX1qcq24V zlKVh~+CumR<2n30w}L6q5_n9%z`xuI;2d}Y9f98&!24uAwnh=aDW1Z=oWU$f7FIZl zsUcXbR+zziK7xOdH9%9Wah_VqIAO@OU>ol}ZBkOc#oyOMZne{odK3`h1SWa^c0K25xznsDvw6d|4!2_IVF0K5tm0wtw zpRLPl>k3%O&)9=x!zx73^G>FG74hXbi6A4cCO~@ldd0r7!9qP}0PHZMx@P&fKp28_ z76qhPvOv)UO=Lc|P~wi&q6pBL$vO-#sUWy-*z^`?kk5yFMpiBehpI0obyi7Ln1 zl0kML!kHGe*xu)`h+dy7$&tDCu%gckPB_PcM}YCC7Et#%WE=gN&ZCGWZ_SgFh-U%f z2)Ryg!Av;EVU|c+o-jwo3Z3Ih7Q1VR6z6QNuPwG)QVCdMXNVr*DB|RrZEit?P+pt{ zaC9FH=alkBCb*w>8!R(Af|74i~T8>Va@$_VQ#vTB4G%Gry4oeOyW43%ENH!8`VrV)R@I!@6AI#4t8Z5~2qtOv8=U;KV%olV)!opJEO zeh8h$9VkqeGiy1+&Ov7{HZJ6|tIeOTZzUkJlZ_>3XKXrRRiy|T(FHH(Cn%XUq~QTRFTV)s@copeyu)T-H%4a6UL)tY?no9tJuH%G)#%W5bH`O z0fuhzw1OL;!4c`IXeKg-Ci+|EyT7O!9`erXt9UL z-9fg~jhl^FpOERS(AP;Y=Nu!DFQRJ;_?H>D#NfM_anA813T9UT`7?9S;{gA~8P=0t zCl?9~XK*^Yh(@7xmIi0=VU~=qt=aNq7R6>4XW4ZQ{59i3uVbKliwl_OU<_?!v*iNn z&aOw-v=P9}1DAObq}g?F5x~QRb&(?Nfu9+?TthFA&0eGhHXFBbJXy&#kj;WJ=EJ`U zmfm#WSpegL`!!_26><{Jf~DF~#a@~w8!#DnFwW~rGzLO)ae*vvnw1Gt%qKA0OtG`k z=1-^PL%E6L*=%#+TouL$nadeW2!rGNB#15pocSUL0Gsb9f~_nIl02D*e27rlc>$Rj z3=n~{YdLJza86TqZk?QD2w=raq~)U_@^0oN!Z8N-sT`07PO}V$^W30`LB4^mankrX zftDo+*+e9%l{7dfE+(gK8jza}5}ToFv5?@gP4Y2c8e~YpUVOhUVFRZ-nxqBZRJKtH z97q_R2?*tI_zh zc3{P0#;aSY>6hTv&uOT0i7^d5T?(G|Y8qYz7K}BBtYE%OVeOrrqHD7mU_p?jzhxCwMDNb3oZ zq_bc)zdDQPVL8P=^U-O5O+t=vMjx)BrL)m#YMq61z-p)s#&;6H6I2L~XBbr$GM)kp z9YHD_y23b`!k>8rKLC(q9w1qclPjR4P-c08RYKRxfU=AH+DhTz1v7;}$Z%qDKgj~)Ls=j$;(CAf*6 z13t##^{I7^#t&CC<5vOTOoV^u!OXe}VMoQ|4Z-PZd3_oubpe44rD*9z1#1K6sG@8W zh;C`Q>AW?NF~);r<1&An7;OY6$I#tNq;?msRZGqboP09&4m?-|ONiI2}VksT>=0OEaW9(^H? zpvCa<^9B~K%udTKLWl!$l4h|jh`Kw)Ws~!h@dOZ)j>njU=U63g8_S9TcCe))%?olJ z0x-ffhS8@`E{&IfvCA~dkSylc`e+18vJ3ohZO8MXJiKbXW_CKYa8eUfkyNz`)&Pgu8X-aekG!x1LDNn|LP66lA zkPm>>9w44U%`rd=R(uFMK+Xuja()HV1OLOo7ch6Qn%ItT9>p=rw$5YgI#|G_d3_3$ z+PVhvpWrIKURc+-f|k=VnAsr%KXPdz?0hFcLZa-nK8sG$ASLnH=!)(4v`0rH9LQ(* zHv>@P(RwZjD++`0Mk<(z()DbVpfC;BA4lWUjL$70$`ehvY8)TVBbAkyHC0Jm=Fkx; zf@u*etKxKerL`~Q=6a?Xj_+!@fq}Z_0s~x)Bjg&a6IeVLzlDo8M^`6I;x|6gck+0Q z>S8STj1|o>8ZzJs&PIqa+$}tQ=;xZ4G=+d!nnmYf4m6MY7F`N<3mJcc(e=E7Y@Zj7 zts^{3qC7Um1&VSt$aR83ywj!ic@g8H0W|+IveG5qG{AV4XVx;amOxVRL=>ak97=p% z@NaNDO#z96(DudvP~s=o-f57PRTGMiIvX~>!S|c1Req!e{pLQ4w_4o%wN%i{@zNO` zW>Mkv$j^(VFj61hsrH4@Y+h@*LfvO;iwq8>t^w*+3ftOR%ga&u(sqyh=Gu$C(MZT1 zq-q$@N^!im_FQ>_DfGN)^xKFW`=>i@p)S;)nFUqw)`_q%a?u^raM=Yjf4HYr%#`3(m3!EP3Hh(mEWy%5IC{3yW84rqf>fRNy5LR z)_`73BEP@!^H5pCI!U#zLV&so%t31IMI}Xr#4Tznh)886eTB#;T>JF?bypADbBkRo z1_`f7ZIc1KQw-{vNay5nFYTcj2&=urANhkaTP8F6TcVoFfJe#^2Y30+yM*^kXuOA3 z|GpLuO~XmeMh7`-6+A24-rmp!%y5s^wFrgO0*0nimYF?D7v|6( z6AIvnc$qZNGZu8qw_A~GBJHy+h`zx!LA2RCcS zUG)b;^xi*occz{_7@!lfLOjlj@Kc{u_$jXPcW2ZomoM=r7%|HT>nU{|$-)4Yixx&8 zxrt%z;6*%Kpv?@6SpM8~BeH>zUIdnyhT2ZdfjN!_Km%avrGU-ksS`W^u$bK=}}m9@+|1LFV1;n zfuBWfOR0btBeexJEDfPnwKmmD+N$a(@sY$ZC+gLgK zTC9#t)*1qm$FPl}!~se0&hLE;TGwahkd0b>_~^k7umg=~92@!izjKSp#&LZ}IfPM< zkVTd^2!gYl|07{f1xY3mKft}|%dnFlR4+|4cTuc7;;wq5vbW3m5|KJ0Dm z0~V|L)ccklyQOEl8+*35p=T5~?!Tya?Tx+L-`u<1|Ek`#HummdbMN;46}{_h>d52G z9ohf(9dVuS8#T8F6oW_!aBkz{Wf~duWN?BGFB#bzT-1j(=5COd!ip2Z?}zT{;^G3x z63%A7F%%yf11JFRRQ#q5BN^_$U{XsTJ2k~$PkOS^$4k>rE{eSc3fptJLv@p&( zJ8T^85W7#FNr&(_Tn%pezpvqGy*ljwel&b^1nsUVrhPC5M(p_FGy=X7x2nSCG`K`J z2AA#TVA*U2@Y_0g(j*rMkc@u<@_g`wyFtL;3I6U+D0~rQorIIgu!h(WWTPlL&Vv)J zIgE7#H8-Eq?=$*+0okXx$1;oWcXZ^uL3bk^`$^OG$ni+W-rL)?y$L3^Tede%7N@A! z`4}=>WGv%F#g)&v;z<7 zo#P>nXq?QS~V%Opo>77W$)W>I`5zXo_s!Je~G8sW`l zmX2UBNs6L1b{h90)cm1zm|IzOG(lE_f4~6HWB$w>XYiLCI)28VDN2l}X*rG({!F@x z>>1%R4f7Y;aExdOBCvW4?1pj!f|4MSQm}bP9-l?0VG*wFXdX;Ma&gx{mS3FN3m}A( z5piCOpY^W@3Fwji(K%e4u`GG=WdEtow92xK1ydCW^DnHPTkltvyR}U$tYO6sGPJ~> z-muc}SFWDU&i77xZ`D3nwSQc-pRaa*T31O4%+7aiyiJniG4`}Bl^9%@6yd@Xp|qNge#K8B}<^z;Ot z9C~_+7DP5X^>pk<_XajX1@M&)Ft-3@uL2wl5QRyv>iM_q?>$kXb3dH$Xtr?H)@yBj z()p&+URLCA!kVoFRZ^})?qvP)F$qrH`>f9$MwQfgJylYUX!eB>Ye)n4{Y|=7I3!NUm&U{)h4VmF?MhC z4gvLZVg#7-RiIIuemH~-4K<0H_*Gi*S`{T=e*5uoZTOuKf@v5I$~UHXU3%^&{b|ic z$BEpe+8+8RjxC5B0JuLLx*p~Fl*Xlue1Y(M-Ex>XWo@irz{A)@-N=u76_IubDhUh# zC41`*zG@biPD=1%W|m>4+Z!~fM1MDacw{B%66Gk7C%P!H@FsD<&BW9 zhuDvK;1vp`71T`1*;gx|DmPy#p<271LlNYR=#h7D z-V|0w%Us1dvpl-TclW5?B1hfQQCg@?d0cC`934aBLzArV$)S(#YF^eRJUQOGDs=gZ zcT0sa@BHo%v)x+()4l@Uyyx~hwLV@6JlcscDoF=@#cC4D-{~Wq^49pBebgIkyFDkD zVl}^_Lv3^~z~}baGCxhyhz$I5^8BxlxTB3&)>s^ySk5xX_V$)~;iBtGK_A876xFiD z+~II4K-Pgy~Y{Zf}xyB?6$w#(0fEgob8Q^DrLiO>r zy-0kQURlXkxx=&LCs(=F&I*%Heq{79U_eDZhnJy`CvrG|o^xn;!D=-+3B z(tFWy(o#0vzk*g98qb?Gq!gxt>QVl>MSkU1S=Ao7x_@PgjTw^r*O2g_l4_xg{4maz zY51F-tc_D!1g0{YR5I-352th`pxe0aM4|& z;|zb)U+SI>z0^0(4H)f3fDGMM2*(?}VlDIK(|7RO9 z(*p=#4%p72tva2HXx9Ojyctn~u|lNQRtp z)x?=F@1cK0Geb^3xom1B7;l&_oD=D`OZfFF`albWN1N2e?O#-ee$G5}jiv$#l?Y^B zt^D-q{cBZ?YoV6wBG0S<21%XqELM>fWLAC}GOgT&0FdpPnqK`}=w#6RIGEtaZnr`M zCC5pl?|u9Q3cYk%BWxc~@7BN@1-=O2a5UjJhc-RA>YDLgAfPhQ%o;T#;KVMku)cQ${Qs zI>zFD%2nBFSZ4(|X9Q<$AkhB|K%MqdI^YvA1QdFxJpp?t5Aa z4H+h=h8Qwz88vcLD64ZxH`E(3LDr(7ft>v`oGxe33B_5EwFY%@(@I=Rc*X*rnpUJZ z0uuPxh=1hH|HZc$K*rOYrG_*d0cdJnR`iw71?~t<@tC0lx+`N@nC_(fuCOQV%{pUO zV2?S=yeFb{Qb3m=G&p2JYZfqx*Yk$?lkUU{m%9dL-QEBpFW}9enmwuE>sdUk zf?CbY&$U?9o+aQX=8{}T8k31@2M-r0uQb%{1b&7X7Yk#Q@et;K&xb{AXd<56X)x1s zR&jl3vk>Qst{yCxhX$jNxafpXiOHe1(uRn_a$J8@6G_fJmK4`&Yl=22eR^-jQU{wl zBP2#6U%t!6b5}a|BUY(7q@#i3O3{T%k~Rq_ZXB^h6kPB};6F#oajHYy%qW@96DA?9 zc47W2xnM@Yzc@fjB~YQoYUp-~Lrv_GzNmb2Z{m8Lxu%y6)DK&|&=kDuMwMJEqES)-qCDgA`bh%5s$! zmOuyQFdpk4;FTf}pvsD#j_-hH7{vfJQ}j^<0ty37x!92d++ zS41sH8{uV$%H||sSh#FA;Sma$c!mW|h^BxQ;m`Se#)?j4&^tE!!KJgT?|N|NT~b|> z?d=iUXC|%-Y+WA3%Wy50&dgs*i;^WGa*&R2ZFyr^?b4fJ?B{w*baw6stg~a**}2x) zD}T--8Dlg7u?A0l*|$^g%B2DNkc+mo?XDC4FjLmmfI4<=UsvYz* z&A@|P1bbpbhvOXU`_zXQZ;1gOYQjA_Qh&*rOnc5$(BY};sgQzAfM;zgfiHa4GQBNO^Ga3 z1NS?VqxXP5(?e>Y7LtV~nD4kIaN~0(%|_0HXcnBz!iO%?dCwCH2>|r>ejWbiJ$>k| z3loY0;*y$?kXf)DUo3Wq`E5s4H-@d~Lpncd!q4Hs{{HU4h7MyB*x3*}Td=4>Sq$%# zG6CDzpBvx~$bLr43|o$LfsYnW9|2otL5@=Rl2MhJL#u>tD6~)hri=~+W^mn5Au2mK8R;l0+%G_hQE}+ zE`N_5n;u9z2$SUvGkg)xq%edZ*$!EG{X(Pr!Vg)B6)f_ev2uycVyU45P=?I;E!B#C z+`s1UWX(dyrF^fUqtF&N9@H9TI3l9u=}A(U%(y&dlhre_K~k@vI?>TpE?kUx6R&mb z&`K8j0E?lZD1jD`z+>K$QRdpQ4Hb}FAvl##Q1Y0)VWqN!X=kZ-TRH9T8f(tBbyXB! zm?AlX8x0L}PuS&4A|4jiPF-w>=!K!|G2aA*wko^t>z9;X0Su&2L#%}B;UQAD#8dV0 z3qv)es%r}9fZlbM)iuY;g0F}$hK5p(5=3D?wxVjDg>T{()3z01QBpXFuv$7HJJz6l zAanULW~xF${-K)mVnq>|Vo*Hv@yG3E;(kV3!u+oXuv%A;FAagBtm0Z?3k`kYheDZ= z$V0KtU!fr*Da;+)Mtj6Vq&5+1QsGX50!X?2~C7iu$1EPbQWyN z?$8VE38G-e1G&wV#3^7&k&^D@B4v+P5iQQ;V;tstGG{7s9;loLTFwKRGvYbNN}M%f zNy~I5`(MNoo3Qj^o!5Kkvn|rQ@D=#G+SXhS-w7+%ybA9) zWc~q%U3N&jO=)NYQ!7p)#Ms({d$ZxS`Vhs9<0Q=Dhq*;(dJ823lw+v&s7pl|Jf>Tb ziJ+kxG&s9ZskBktsC1idwi{_topI?lnMJ%43WWo_T<$PEvVukqJ+pVxjXT3MVpi7oulX9T3`&O$7lF0-Kz)Z!K_#Q{G@N14@a1iUF z4v13ZxwCVdw1J9cxjK+oL>CoUl%&x#ioXfqOT3uqfMdEw2&6WH+jHU`#u?jTELpAi z9k1mX(~;;gKaI*$tsPe@oaz<16?@=mS;6iv47_5UNsd$35YQP47~Uo{)3f~x5bk#F zAlRS)_OAtx(sH>AMuu|b|4KkDt5w_n`uZuVnHX%S^sf?|vSp>`CJ!j~4@`uwbl~Vx zook3x=<$`#+2uitn9#TBW^3bQtCj8t*!t!ITmFV;NQabv1@mok-R!Kxg6|sX>?F+N z$r@keVK`PX=_|&vy)e%(R)e7xVloiil~WZ>*z^ zE9bI%%c?4AN=s7uwe6syz+DZb6#Y`ge71kLYa`U7>oT6pZZNep&NFB#nH(K4USd%b z6m=vk&sbb~CB(vfJ;UEw5@*`U{ww!MuWFdpV^@OxaN|1pCU{j5Ii8HELQjQ+|5xE2 z_LZOx8r8YP=B+y-{x49p<6!| z-Ip#Igx35w!byyg{8h+!uW78r*idQJNBW{1ImYsKYxVz&3Z zZb7WgcvVoSxgC*WMTQHQ!c9?igxP9!ODaH>qAZOQ>J4^w$Y=}o%(-m8OgR*`@jX_v zocgnqNt|ZX<2T-1$BL@qek3a<99DZmEiu#H?4)gJ6bOe!C{y%?y5w;2cAHMDW}+*6+eZ^3%Z;K|&nEZhL#WX%17 z&34B~gl1~|gStO54dP4@m8elxn_knc(F8Kq-xhjzDkwnUd`YeJ<#=%CS|I1&7H(c4thZ^pqNK zUB-4f=p(2UM4rWoM~dT7C}^YNp7G}A9bR!R>~ZoQ`86Pdl?gYgp{FP|!G0Mt=-Yzp zBDCVpAyN!puOaGlSOVkQO&-1qvuG-BXkIwF3pH6*H8XvPV1_akVLLj6hG2%$el+wo zv(Si}F2Kr>c$;dLpdv)IJoc`23k}vtUTh?1jd0tqTs4yW<@o|0xqRW>Q>9_!FxVM$ zu~6%1_6a4Hl<{q*u32bxLwOgJ6~2!r;7>6`wTe=%25fe8#GKkl3vfqOlR` z7GF-fTE#}q8{L`S-h371HHZhNZY9R5=iJf5@L$wDxAURu`f-ze6~C|ftJ8l^?Tr*k zitc2)BYi>ZmR^;c#J4nZE11m~HZw#E$O_S2-xJxs#Z;D2h*3Vb%KZ&p`;5o`vMH5R zK|(nNRMNcnkU3lKdjBmUbEkpbHv*1swU*LS`|k;l4aR2Q78ug>hae$0{`><|XH+DJ zp{`687$)aUe$l|o1|h$Qwmj`{wMiMYsP3muW8xkf6-CW6nvudrWhA{4x{{d6;O%zq zQ@a!+n{A@L#kc9j+N2p=o62lTO{Xf+6q*{CC{8d&-^%6)apk;e>S;=X z_~H#Z9SM8Y@^q!FUnM^4XoAS|1FR=6j8jPr8z;9Yjon|!xEVBY6=+I|{a-a@Mk?0i z`=&40epR_)aju28ox5kUU@gYg6TPx@h(zSEahBdJ-6$QAi;B4=!9}5`o)miBCg)(? zkVg>VSAhxp=$2bMxx;K3@`oH9)5jzvj8THvplj2Z+watO$q>y;H~}_?+zFFI zc53Wye+QczG@#WLGztemmmPkX#~ml~H}8Y$+R(DVVLr#>LAnI?^#R?JAz0 zW3MTvrOhp?-Qs_bD;-oJKnYW6l@`+UJjIRjUaL>~UMZ#tU3pFG_pj`>Zl^+};$DkX z>=ji`QmT|O3i5rWqj9g+eJ%ZFN)O??(5eH3EWtJ4w)-gfZ8!?o}WLURf zuDkUo>UP&Lb1;>f4tIo>TcMGhYm9jSPdc>9fLc{7gSu_t*z2LId1S!8+2 z2FqiXSHmj4q9|>)KfQmGS>uF^8c&1s&`M@CDy zj)-YoL$`?{aGL8yB`p!Dl@CQrU;VI{;@xupYemxDJ|!CyW^ykKPtu{R4xVMCKYao8 z9J|qAqW|jaIbc?BTQA&osLRqw_!%&HBGmd&m*ucN0W2hI6xnr8fa1c~Gn#=qdU=h1 zsu`akqj^elDPEsxoK+~GFHz`>nV@pBRgPWZhbb>&be3@PzD6_PV1|3om8EzzrSqHJR{lBHwhCsW zC7S120mkB!^;mfVV`oY$GK~f6qfJS!6lAFNL#pY-R`>o$ytjB+t(0R%`XF7giQ76c z^Wq+eHVsiZa~n!Ysz#OTwz`z#Pij}wilGgSbq05~+Y9?eU#KvZ0CIVjVdxK=lTm)l zK^c#7?co5zN{2sMQ{3lBkqn5N6Fnl@?}HtTwB_mE)^{3@@V*^3ibi8ci?7H!HLB$s zD~7!gN~libstdm?gIRXViW`|5#X>FsZ^8o)8s1I3h4D7hj1SR4lx~YCofTnNRe!|! zc2p}{$Y+s?q-&u)>-BC`*Goj{Dzo|Usd1Hs~E=Z6Jvp_2>omW8tk)184`uHD*uy!T}HVDB+3 zz}*8_c00dg%)A|MiBWzq)KPtK`S|5<2bSSZAKqV5BmiGPpueN`VEO7*^CkWsv@mSO z%)d#_!*nuBE;{yG@x<(KVao`|nROA3!&Kb&XSg{4CB~rLz~{j(f%*W^2v~&IvspNW zJ&~0?@~!6Olcwb`XBCvmLWa~@Bv2QI1K~!$b!PMn6&OaqYj4a{2%twv>YZ|5EpP@- z=Feeo!&~gG8D>(`W(?vfzonX?(tr_g5^r8rJWT09DMft(bcf`oXfVvfld5}WS;f?F z#VigFKaiT0a#AXkzK_snath0{Ijo_7Wk4L@_#toY$}wyzCmt&B$iqm3y!LVzz70L3 z<~fd441g#x`q{#RP@*DxMu$n)B_43Zfd$L}o_^dTe}BLI^Z=cX`1=RDt*6`Dkhuqs zZQu``gT4J$dz;)e6-#0`WztS?oK~~FyPdm-hpnbtV{frrV@^yuPAZfbyr^DBKRNuh z0+=V-;>5XeZgu>6ge~kdcdgKkuG zpG{BQwRXGqc>j?T9<~qMy5qnJ4oAALm3UxY-LNpYFta@%2s@9PO}7(5kG!zvV*(63 zJlfme$HV2w4JmDRUqWMy^0KYTC0-iuk+uL(TTjj2I#pbe* zmtEyXetgvI#kE!kHtoY{mtkq*p96o3#_*$VbmUK|N^|YIp5rWi=d=Rn>U&QB$9kvr zcDr+0KiG#k>ET~^dHR^WJbm05L2pN^)$(ZUI6?i~-N{fE3hfBuhNtnGzkHN=Th8*( znfQxC|G3xcEROu+8r0H0=q&2TFpdRIQ3mw{JI>4>)hFeOvPb@`d+a}O&g%)V_CmT? zYk9DK64x6$=P>0*LH%>FVy8#zj46vlP2K&WVpU03`^=H6Qc2k4~WL z3!`e_Vq}-0@>(rE3W~+ANFfOuTlz6q)+Mzjua>T(qGnR zuyRK5E8+0jnbj`8KSsqh7xvb%bGdWucD2t-_9+2$h+!g93=U0@h84Aj-oalfGJL0K zPv+n7_~jkD)!1#cZErcs+MOF7e(BufahXnJaOuD(t5miu-AcO!qLszJ7_(5+!inGX7k{&eAzqLm)Ulk^ulO0q@du6bW(u-5?%tG zCr_I|b_{ z5@&Gm_CxL7T^p^yBit7oEM&8Xh$b$}?rqJC((1|@@Sr_D$C|$cu z;GZlocjj{iFf8D6i&s`k++>NOe!8B9Ib$kyUX!K#@p`_Pg`_i!s!k6@)`u3HR8AA* zYBOM@tp}`iZ6FQuoUrwWi`Bma0OVKipvf@JuilWUo6CkRZWJh&@x810`yjO-N534? z^8beOPaA`n2G~5@&L1}PYHcH5Puc!hm)nqi&`E(v3rjbVQV*T<%LIMMYb_RsVqNGp z*FtNG8)5--adF4=ob)gKs(kg_o3(UoJZ zEBZ2MG#W6%Yzein=XI&0q;i*iT|Y&?EWnKrwSywe70g8XT6!V`It{cX9OKFGB(zS$ zG%R)g^3TB0P! zv2d+P7kdKYVN0g<1C(IxU*{K_O zyoax10l{LzDS>~B9F3f2x7k2DI+!N3XV zWiUc% z^1Net)@#=TXuA$!m4G;#LY!5^qSrpBsB%sf&*np6$+q1HRO#HT*DAP@M4M1lVQxOK zABQCBBm&X5?O`Y83U6)kiwU9<)1RevI=dU&!p9SrBKa*FHWDvtN_( zau(Vi-(R~~DNSSFS&^S4!cJOX}N+$M>NkrBVuNuFb=yBtO@UJB73XyXm)*Dk?1M! ziIA!%dbH;Z3;N}D-5aD45=)4Pq{$_MB9W~Gv=F>lZ3lrN4Ch00sCl*!(W$-c43O@e zw2C?#=Pvbd*pq0wOi@n`aMxo_h>RY zbC}y#G;N~jE{!Oozi8JyLjS`H7%K)klNx-g^#vO=0L+uuP;8MSn{y5a_pz-&i5nL4 zbtq=1dhG(~^KMXR6Bb5J@Y8r|R7XgWC-zvJCk_V-xNCz^VfVqfvLYGbL2~IB9tNP0 zk|G_3iZP*(A{0`DLTW%koBE}=SVD;B0P*}#-Y4Y-#Ccn>jJH&RIEHBIObQSWRa=v< zf;i%MBvx5ewaRF5a|S8KpmcXa@-L1>gWF7xM$e9WmC{00V$4Qw%cwl+2*xj0k*nm7 zuJ#Ok-nr{F*LmaZ`xh_YAOHR3KaXF(Kv9)AX!#jEqjx%PkmHej<1OwDRafGOjKE~U zfGJBjW`L^7%FrD%tLhi@#;Xt3-a)gu`*@Sg^=tPysQbmsSI<8E^6~iHv-clhz;EAu zeEsN7&dAb;%awIA<2MLpXM1$fhwGz_mp2RItk-3syu7AEI4)5eP^n8pd5&qp7S z<&E;I25|(Q)IT7Szd0jNH1FyD<0l8-5CBp34wXs9@52nIH*c`l7s-fXB|(DrsC2)X zx4{ya9`8RrIAGH5gU3&v;(i}HPg{G>cbs(Inu3Hv5{HKFQ-k?Xtt9USljL5?H;a7a>OktSo^zRkNJAPN{OetX?|_;79@CRg(TKc8-&j0|g-I~a+D1X!$~ z_s`z^^ip2a+|cZHZlq(YPScwK7I&J!v&ZAg4{L;lg^aON)dc}a_>SkiB4$_M0H1$j zlEcE>hGHWA`V`a4c=JqG!Z`dZ2*4Y@FBw>vJpPv4k6jxb~j3zv=eDkqLMV_(iv2Ws=xD*xzR)k*FV$L{2A>BtAXZ zdvZXYtsJ85=n!8}&xKFK?f5vF<9YD|ED_g%e9eQsJ-RU##I?&LVv{0C;|M(#IM0z8 z-Nnw%6;;!bxIfe=-Fuc%O_9b#Gk!|?{iSdhj$y~fbVt3|C-NO$GSzlGVx;0oh&Omx zHv-6Re9mYR0lyXvoU+cM@y}pB<9dB}kNjW#b_ zql_n)rz>E|UE4{@k|CRyd4NIlC<_I!DGoK0j>57&)r_o|q`}vu%Q0#nr_u8O4*LMB zN#l5gkFZqcNgm2}=wd0>qK>7#ObXk8vwq{f=%8;wzbLqMZKWBbz1bA8HmpQVk?BMYVwgH}9gIHXe_TY}G z4utl=rWsBd+C|wjZhl9tlG{Dne>sx4uz8|Q7{wpv@J;;L3iG*|DXUL>g(E1-NBu-so5WmrNvFE*20T zNL>XFJK4w%5FhrBFgSz0tvzH?zacYSwR8CSCccbpw%7$XjL9g)ufu#g=%^ybw+#{= z;?p@xo+y?)V|O@)+87495@W|(_cf_}7#fP}Kf2W-=!L^9@`$dIo* z3HzVVe*NX;C3?Zavkvo93v)`!*1C@gD(E^CuL#{s1g>T*oR_k{5Yi{>EWC1eygwea zP&_X6&ep zxD?7eP2;Rg5_gYORBd)-wLPIffYZj7v*0{qZcVAPnlTVrI5=r+T2Jhj`I;+ykS=UB zlJm=E+B}wV^ySAZAl#nK`@q*QG|ajkagb%~o}3xL+7EyV+Cw}?@_t4>oq|iEf{X;s zTIZu))JY^6Xc+PtJdEN|1dg7gGdUYQmDVqPhKcD2A&CGmgRM}@$DT5nW)jXY_B(Nj z)ByOSmvPbPZGu%2P5?Pp^D>h2GScVeV7K}7n+jE*O{Zx%g+)ajDN`FpV!9Ps%Yt!| z0Yn*nW&#o0EW@4V7L`8N-s9%C9oJ^r@CLC*m&-5MeYcQbkPshlqrA$`Pxqeep<@Q7 zwGv4xyt&7s8+P$R4Di2G)(DSezfs{~W3A?B?_IZ93|pui<^JP?r!>m7x7U8sYJS6M z;+)>ISrp(lslNgtc*Rc2v2i*DnJK8;%6KB+Ya(8sK^&2MoLH!wiNE6)u zYQ@eM8A{^y1Aw^qQxch zF$vAPYcGZkkU8a$TTP!ik1!c2Ti)6&eQ}N(`4NjzZ^}PMLjH;FH5BW+yd~lRL7(|K zCS?|@3dlBhB!FXF7WAP4Z#nF4tp5*IKdO=Tn?t5PJBm`Yz)u?%5z{4u2~uj@-$Slf zYSoWOv-JOC?@id-Hm-%?ze1s|3`CGDY8PmjbsQ&ko5Zf2wD(?`ks%6{;7|YyfR0@W z{q5gbX2n8LvfO*$?@6D=B7j-X%$#k`;#Jgjban<^`#L`In!8|g25*JV7tk}NP86oQ zNm0I&1bzyOyI`3O2U>$)(G#Q`jTMCO(zZAZKJn90E%5J??Xkdir9 zW|uJdt1?5AWsU#%dK=wnIjJ|XE-48bvbDVOkAeR6?-Aoo@)(HWYxq*c<+lQ2fQM>t zD9aDs33QNUrL4E~?%(j;H)8Gn{t;!;>@2XqcX;Tbz|d7-cXxLmn~3zyC@K7RkNXD{ z;XsNXsNLT=0L}#cb8xRD%Gw#t7@2iMLPR!=Kc_G&bOfhY3`+bZ%odAaX-dv8Ix@B7XiNo0U41rZ$ z7B(sird{SYu9;+-29v^`zNc@R)3aVu5{`mtMm#W~L%VTAP@Z_wH|3{U47>vzS*OPq z#40Rtmd-wrZ_YHs<-oYaC9MXaTHEBKlm@K$-5XkuhOK`fZbMHfPgx4(XbZB0RAB@X-CQOpCne z{x9u9_R1rPzSVM?5VRNyy|Eom>Sn`Q3NDo_RuhDsMfz)+{RTV(2`3fe{u>any!awN zL&ya`3p1!z8ot zIW4-R&_WoMY+$5Rh`>GQ`~|8XOa2uXb#rx5hvF}=q>+>Ys6=9-ySxEOzS?rxlm*$)adoVlTZz6ZwF_U!Xa1vc7I(_(U$@`g&q}bD-)3Mz&BzltKz$ zW8&n-sL*5C;{-NKCL{;`lE>(v;B@mWW!e>jKFw>;0QdSj3kB%5=y$I<+ocyZDY-99 zQq@7#=Mng}0$L<7_#Qbygpg+Z!fw{k(rQY*k*-C$VyG?bV@2LnCvrcerG#tg#ft4m)P9B5qdWb>gZq@bpzm`6RLgzJ z@ot~5Q^ZuvxCcUQWF!miRxXHmf-Hnko=8$GAa9dH&q0s<%inpGIUZZ~_6tvXaw%U_ zmKtPA(||{XrU@y6^DImUr?3xxWqw<@r3UmM(iiC}QWqVjzLQO-Y{H~lT0>V;@xZ|+ z_nJ!2W@HENt~=<0Z+JBkZg!AT%M|2NhqG2GsAKvy2M=qWFXFAMD(|kBanPv zBc7wQpJ(?Q!`dE@_tDreezvAb>>JD$9ijwlqZ7>M@(Hp9t!ASiaYmd${ ze6ohAjwiFlSzNfOOOALr^xL&K)(LE#2$fSYO%ELjjK`AP$i)kWl6)d)$p=`0HP^w@ z$E_ewW;`pS77l`&d&w4k6D`tjZjXLerU^wECIfQ;%3)o4Rue5P5UVFY9tXy!j`y*4 zw!(c37;0%G7mkZ`XNJVWj*(V0O|-gauFXOh%2sr$l|(Z|b^S9WK|9BNczc0*dsH4` z{1m*zKI(5v#m%QS19wt{V|*vJ@#16}!U|MrSEXGjVF*BKIhg@ct|^(EEor{Wny-rH zD`7-}kxF492s=_}RpXUU!tu!oO#@`!4?vB-P2$-ZYD>Abq|uJ=Ol5jHI4P4nAx=}> zhGP0YZO@@;|TlEPcDb!M0*(EsXO49U$n5CcdnX0|OZfhUSW){PR(M+M)Q2DcF zcc*|Q?Z+rqg;17_MBx`w>FR0=Nu$5=B1Tpi{|M7myi7snm@ZY&3{%hz*SL&q zU7GKVrNNbu5~ws;!~j}(0xM7zMyo&?R$1$qn#A!)W)P;u=2cBz!tPGoNLlZUoo?M! zS!*ybOuFVOKD6i3<5`jmTV}iAoGH&6;UPe&?MB9p)(A#BmZ5W6$0I%MJr6oM+q#7J zbYFzDo;+jKg+xb?3VRZG-I9dXJIn^^C=&v*eZsr=pE6+_M3!pxJ2>s`M$Z0ZVy}lP zjRl{CnUTxVxLu<(l^LKF;0M)JO2W3oVpzA>VL5My!mN#VBie)L=1rCRGiB-U=K0^B zzkc!4f1i90Kfb5NgH>99GP8DB1qEldXHg-S-eP*0o*va)>5yc8ler2;@mP<7&h#yY zQRrcCRl|O%y|2N|!z>KKf=V3B+cAqjK4rdQ2<)f6vty5tOY2Teo;a#6S(BJ<|1ji> z3~PbchHNFO=KmeeLEqNZy_UL0v?`qRu*+44O~L58cUog52oJ;sPe7>0OtV{w;LXt1 zQkQDSoi=P`V^5}05YwvIY0OYDG%y2U)dCy^xUsg;h>dpYqKI7XG($_*jC>HW`PMn9}jJy=&KRE zh`3)Vlc>PXfquu(fMN}O9yupp)!yRPnVOn=S2rb!c*4pFg$6psL5-cZ7mW$OH*9?! zj9Oohg+OWS@Z?M>{liZfl|@^PA_Xv>GV7^sUy5p$8`<)^GUbK>PZC4Lmq(fzpD1R0 zuG#K|zOh9XozyDKqLaxLv*;upH&}FGW%Ee{$#9)N6=gP`VZf+I1;#qdquC?DM?Cri znQH)Fi;)oDZVhFDw_EO~Xm~lhMvtlM%i;UNd+>;e{fDqG*#Fb!wJhJCVzEeNPq~af zoyOX*0)wxRzL#$A`4A^(A;yrkcukADY?B7a8KlLT&lK(?MY)m^Ye}YhRTvM5FKKE$ zJy(?#_Ldc{R?Hc)yXwSLW>A-MBA@QSZ(u&J6iRRmwB)e*fH1RgL;&PUJxKXkU*E`A z?Afe*#k0%jf`zJuSyB~r5S}Z|e8EiE9pSRufF@NUcsziS8HzdKw^tZ=Nn$ZuVu%$% z5tt(uVu7bj-eEZ8n&eA^u)G=*sv$Tuh-o-iwm|wCkttLuZ>h@Br*Zv45yu4x0cSl` z8?8=iM5j`|H@8_dtm$7Otwe~lwj?t2FSS^uS7f_}VTsHwFlbe4mELd!MKRqv3esvO zQ{k?6eJw)L;IvMGt=AhY_hI(I6eA189EypBHN01xlBj~WF-mS2+G0d#d zyh9l8O-!)I3gY-|tM_6`(ISz+z7aGAV}+dO(d8u?<4}^K%jj3Ay2vSq52nH)Qv=Z! zyi%sJrl(Wc9F@S!|CvF_yBN;b z6x0w(6`v{f_ZGZgl`2{8q>NoA+x^8BmXUro%!0*0U5MB80`+)3Q>$U+^`lzmY*J{k z8Zj<{S291lsmV<|<=HoF$rNSUd2IE50=Nst1&xd5=plLu?E0skFfiD148;QA$ZV_w z=Sb2gRK@X6-Q7qZk6U!(ek)md*z_7^4M2 zxGHoNTB0k+n1euLVPbETG3`y{5R4x34zXnWp7r&zx$Oiik3CT+fyJU&n9yf@X$Ql*3TB)QlWKswlQh6=Srb#M}zKoaO5VaE_ zvnC)(OD@}>stPPR@Q5#%&%oqnm8iR2Q#TM>Vua9^QZT_Q(B#%WbugQ z`f*4H&A2A3abXP=Yi(E7H;P1*lC>vofI1W&g&U*GZyGG2e2h$ygMh~uJ3I|cAf#@j z9iXWWd$6y_;fTWqh}k@CcWHt{d#W}(Y16MAKsr4`+BihU$v~VU$wD7UK zscoUCyR;YB7aq+L1n5@zxtrr2bT(SoT&=H5XZ)5=Zu4a*BSkN1v-$)3ftq*zq`$aV zU%6HX4>Z~>NQ$QqKaqe*FIy$v7W)&@*=Tp(THXyE$40N(fyatg3OrI`U1bpv&a zKOq`p{$u_nf*L1U5nXkUy(Jc2UBS))lN#{ImH@ERk+7kXsn117^E4Z&E#UcNXaq<) zu=_M3lDuqv5n;SiBiH6haoq18q9;WXUQzY0flgtY1GC9CKVX7`a&*9XBsed+UBAb9 zby*m;UpuW3bFfyS)$#QoQJ%tfQ(@{wX!9jbvcEx%U|Cy!l1{Vs5-(CdJ*b4a03oBj z)SuytpG~L1W*--)9WE`0;778vf{poO^rOoUWK5j^8y2W%wBOj?Kit1}ccQ;5o8%S! zgrsZdjZQ*4JN>=>QZFIlMikxXMl@+3!r|`D!LHXCL9E~J?;KGCvG&?W{hebEb=$3< zcMp$tvF}+&<9pjQG}M9jkKk0X4t!_(U~eCF;8*VpR%@a1nw24gCd}J1!Cc}cqruB5 zX~c>{+~p^wouc^HYvDtKX3B<})C0it7g_F%MXYUjH}U6VA9V}QK+FbCkRxQ<4pgbf zW-I246nT-qa?|dW=p%4GZc07=X1)Nq9j)cLFLdAvq_H7;H3ZUcpyB?PY@GlNR}6v* zK2(M>M!x9>pf#+@oMotD>B}24$En^`B3OQFe^)&bK)rXTo|Rp^>Y3kEz3c1VXxxL| zD+uHK;S#e-cm^Jo9eT6 zKf=%nDZA9Wj$AEmNKCyT^CbKhV)@C%PW2sM&w3Q{Ob=ip!kzYpq*d$%tp%~V^2oFN zgDUSGhLOiHa+djbm^FhY%MHKtWRNWvcK4N7G`uX~TEJnyn7RTQ!XXR!hnqk^Oh(K6 z>AhdkON=t`os z9J+FU=lJ+=8IfZ5Rb*jWx-&Vm5Eo3|PYNYx(qvT)MPJe73*)>J0lrO*A9?Zs=g;ay za&)O_I*|`vbM4DXdZY9dPTdQ>dk9ShH}%uYwC^rc} zbRr}oN+O2T)At`_{5^f&mTM$j3tz(lYU*3XW}va}Ca2bxx=@EIU#klX&2U4RMp+CvRATZMVx%<2+%M8EKrGsGYFXg<6Ig zmR6}MD0O)emWE!e-nWbql%d@Kn-jc!H2USyc;gWqU3}*b1EJcx79+V<8xp=zvZJ?; z)IF&g0VHaOly*EC3d^nX7|C0ch~siM;Md0Jp+R>%wljDcgvoN172!n6wzmUAF`f>) zT_({i!Td%>w&EKl1w(S9t@71w+UB4q>8RZ7kF5bvcrNn=2Ghb@p*ZNwIJ7gm;=rGm2bMA)`yc^d%k+l_P zt-0&#HPKH?J$)tBiwEh(MpeoCCBZBv-c>47vkYX}N-1qKj=NIpa-gvax{e4S&le>> z(>;V)0h7SYv$+e1Ky{{WOH#|!(BgI5Safs03?sM3!Lo;D;+iozTFk~V9!JeT+K*QV zi9mU7$>QkCaRuxzxg42ES4SrOga17TL~<|t0CYn^&DQ`718W9<%-lI)}&5co&uOVUc$2xpT%Pt%ktJTUg;UF`e z)6|R+Fu@#U!GtZ9Qc5E1lSb_epd{rb-wa#GsHUZ8+mS?jJv*9%*2Jvo1h35Q3%>qa zBRmaCZBjHM$pF0$Rip?Zk1=_};9jE;q9T(gBRT1Yu7|x65tr27|>k(wpi?Qg6AbUzu%%zlK&N(}}Cdd53zx4d~ zp-P1r)RoJ|tXiUK!(dw9OPdbWJ1vC~cB#D<Sb1Orm*wCY|ss50{zc-ohvKwDKRYDWeoKT;1V&Z}6U}NBBS--V?E` zpN3?I)^w!&1WN!tDc3>DQh9=^dQSBq(xq@L-x<5AsOY^ysGG?V4CNl0hO;ie+v#u` zJP7P5%#0~`TY$hWT@ilyQoH7y7y*4hserzpM4}50`um}xn1c$DY1~NISh;*K0x?nr zI1e~v7`{d}PZW^kJg}aTHPmt6mmaIer?%o`H5H^HIC51tAx+7n$h)#ESuxWQ%2Z8tI88rWHm!Sz3I!X2lZ_} z8hfdGMF)5^mKj+quTl%uns<(sPa^xE%)_9wbs_oF5}P!TSQVX#bZshEo<$n~aw6B#LPx9hQ(vIlE7c;}R+9-JTTcV3gURa9 z_2tdUopAhwQ6|a)JBVA5Y~qU%2Ig>md73E^_#(7THw({7pDT?cz1nNrA2-oPduTXu zr94Kjpo7$Ss_M@5i-u>*R*S!KL&deG`@VxL^dw62a3gkWm6b5NA@RzK;WWSozYy%ObSyLqvlE6%cmOILA?L( zs$I(Rrk=3$t zqD9M6EJrFl=%ihdFesAcWE9_?nLEd!tHI$rjyczpWqZI~qLYzCP(6n&j5uamU?`tV zZ~fG(N7p5<6E?~>{1ry=cqpSm^P`8%EIRjS&?ek8E58!V6pd*#?r{yJ3*L%$A|jts zu{?z-ahbbEhy6w@ETKnQkRIt!gu+5K9sAh}miA0VVlv#sH(}On( ziHT9($kHU_=~zk>ii+nVHp7WZ;i^9cwJ#(cvH{7T%X0oSJwvAf}l`@)rmln;OYcj{GT0L*TtV*Ktf_loN1KXGiaRQDyQuWMc#HFNg z!VD{?$6|X67>y}40E-AbVU zJQiM>%;65*R6ECz9>?-9L*^~p(((sS?>q(&!2bR@MaQA@6bhbkbG+WEZ{(xM4GtYy z0n-)d4f$PG408Y`$S=94ltkHEf$?%jVRXR*Qn{yQXpb7^{~=%9+D z%}H-4jP{f~wDb5pDPZ?NX|WK!5yq&$Y_rF>WvUa;ieW!~2a?hf_XZM%Bm_2vJuv{N zQgXR&lwb9;3xx0T>At zEx=C30F{dLO+sFIuL1k~twNyS)^#3rIy}!SQjt*UHHqDRO zY$|zQQzhQ#UM0}3^WMV7bAq;|l|&@wL`6$b_>vU%`cAJsZ6QcewOc2=>C3xrom31k z&g+=y+k@25l*KB8wzx!y>q)aoe#31^4CjA%C+!{{?<^76j`m>9c_&fHdt7{5;X$!e zm-4PHTjF>hb;q@fVjl9~=Ju?>JE63~V3a!0Xvw_57^WK`Dit&@DYL8wZC_~H89cXK zdQ6bIp`NS)VpGWyDi(Ql)XTBgzF?{EOf`hmilGiY zH@pa93^x(ivWc=mt=#~MTu{!mwav)=!O(P7K8fV_d0io7`&&AD9`<(+kI0okHP9`X z0dEn13^|zm`SXu+_uU_c53Zam2NTi86g;tVN552W)A5D}A1d?1JKs5%k%Xm^p#VOu zGSv{o2-ro?d84cdv<*Iiv)}5m`7SJ4;%5L*=MQ9AI?9xcZ@Z@^6k@9_6oBg4zT&{x zQ+&mdjzeJ#Ls4z$MuWqa0sotjszK=$MhPhuJR-q#O7Dj*`6cZvjY#YbreD0uiWX1q zl=25Z-bN#AkO7AMV0+N4Vrx24CZ56QHtG78f~C>rjIveKtUcz)om@m1Bqz?Hy!x&9 zPEw^bMvbWib%#kPZPaxLT1ltK|7|-kV$;G*j8B*vV1_B><7eCj#@=)#_QA;8jE3Ya z63-Z!k_ah#ZVf7)#Bt2wK~u()YA=)RWg0Dg#$=SaTy0Wvn@M!)Uy+GZGNDc43Cs>- zWCSk;SLn$WI)RWt`^4eb`^n93o?gX>R?*yvHOyBwF&}BL+D`#FD*1N~KZ)v?S7<#> zrXMPO0VUO{eY?JPo8|Fla*JaLgib+!9bl+`h+udhL+6tI;+yZI(|8s-GyH?kDBp3I zaC`!wT}I!;v*a=?10RiNE`Uz!;Vyjn zGZEWz3-8(RQbLU~3H3`Fn<_!;^E8J+;sQnd1HC43A>YLLhhzfpFW}*%;3xAVkT(4d z?E(4I%Q#p5R}6 z`ucJnI;WR&{QVt%IOq3&na5D)J^YJLudo48|IG*ZU3{S5|ABQ~5hbyNA2K zar7Z#=(&uZ^J)Nq8l4xIo)V2?V+tJ$fLa{VQ-tVqdpFMJ70aZzso&1UyE3eG}iRy zv4XgZ45T??*@R{Whvi0JdobZsP;MlIzemn!^b8vKIZeuE*&;2+V`mIs`y6EEsDF#~ z+vy+g?BV*=mxs;d4~`Eh&^Ugz0t@`nK}FZ~bpjuxyooj{Wkwl-MVYQe7EbhGl%JDY zOc}rI4AraA&NyIWkhL0Avo@%5&c}g zfv^rU3!?DzczuFclh*Up3>b|uaSS*gR>2&R6^i3$4n_C@h?I*%~G&YK0SB6>RE zx3xZnV?2Y&ZD3sM^d6huu4q;lJgbeq+Jl9A;SC!-Ox(o3@LIdsSw4f{enyMdzb`OpOk?0@o?usLEw0$6*>iWBfdoqi`-f@4AjVtZFFonaB`WjAnxm@YhWalG$tnLe{^Y(=4V5|OA|wFKLZM$h3)g1X z*XTAVWBIwbcV~>$(`jDSk=r`OjLH}V&L=HvXXn#Iuj3f?|f?pXRAU8vz> zickLl22+2pD4JZqzjtu=g{6HV7M2&Qxcv$hpSeQW{j5+FCSrWlYGgOLAnRHT)y=jl zJ#+_BmQ@BFK>~7kxO?xXMI4bxgLY6Z~#k ziG!W~k?>;gA7aQm=4QLWsg&mW(q(-;cQfCS)9rmDoQY6!bMOH(WcvvR0_^V|_wT+v z4z~|>`?ouD|JP2O-#dq24zRPOR)3|3eCG=cdl1b1@8a@@xV*^DfQxy-jyk~%ePC!Nm%vS3_^gyS zcKVrn>DhymgJEb%tgWJM=`d%6$YH%d2a$_&deA>SI+PJH@W?JZr)$Oi(6f~3nWsZh zG7W&!o7(M{8;*=V)>E$US`w`&s7wEIxCBB|2#MY8qn-Zp=_mI_STKY#BbB{=zuUm( z<_QQCkm++@$mNYzThmpj0@1_at?;URoc53%<-vmC5X9vCtK6Ynk$&w%*=P*Br$20QMEa>00 zNXH0T>r=mFm}`NmhZqEJdP#7FqZ!2Ad#fc(V8ip}ym2$qB_ zOvUn$)zJ}f8Ui;SAMW;-fMX2@l1b85b07ggP!e-CNDbprPRKypovIsj3^<|yMaz18 z<1ARG1&D;~l(h~D%_JRVKD8|-va{RY7mDD+-97l(F(=_p+Qe)9A(Ad;hJ20U`j~4) zePEYy#*CveY^b&EK{Pd@T(+B-@H?~M z$gcITZmfTh&8nqmwHd*kEO9#ioeASKj^wyW6YXF zN-<{G(oNhMt{`o*n`TMNES3zRvUD%vOq5!NtZ^tOG$In($oH{bZm~zQd)yy3A$J{964Tjj z<=mMKz}9<%m*!2+GRGuXC@d7!g`VQ#nEzcAEMTi43PM%L&4){qXoRu;Tu~@$MJd=H085*j0bJfCCVx zACf#vZQl+dYWAivP+)XdP}{WFvd#&yYWoLAN1t;CBn2J<=$%wFh>qvZ^zTEts%ok!sp71%0QGWN+7vGd`QT_jyDjYtXoJb z?R%-lI}27LQYwYJoUa59NhWcX7HfdmQlg2%BDYKyIX4-JHL-!mK}ae`bqq8{)@Dl= z^9UrqGchoju3EqGpvq=ZSzVAWSx+LjaVR|JMX}!mj?*O#tjDd(BC_RkOuH$OGkJAb zjB^SCU1T#W06{1PG}l1>hTep_{Vt|k`7o^{o+2j-Q)efcY_R9m)C|43t&#*oF?aJ z1Z95vIyrv017?bjv2|-386#wp_*cfOKcMMzbXs&-hv?XmycoNO zEdo5_C2DFq%d&iVOQj_0`*%|UE?XYq18*x-K~NXx0-dybm!!AuVW6-L!!d|t7}(3V zqh&prNO{QIfobUO{G7^Aq=AlNYH2bWNf3sTR0K}S`WEw>P{9PvgtmBW#JixyV_uq_ z$ao^CLq0fKL0;R&qoGM6ohG^jSDG%{I92Joa?IsU8jA0Ux27y}@z;xU7mpeSt01)_ zi5$0-SUN9v$ZB>j^y)%O62BBTwn6_^@$68ct9c6xPnb>Z9Ui` zoLkgUZnb=rjKhUry7B`Xie0@D~bL6~)IFI+nRtG~@eyV-&)%$uC zFK{!QlAj`=aP8=(Wq;+9NlVOp*;+1Rw&Ch_E^3)66DGZos_ON13jrDNIpGwCV}g!g z>`5Xu%6c;Z>{BIcO>?Zf6R@Jb`$4V?HQBksoVfqSmtYD3megZ6H^2 z;8#jaH*IaeobCop1_Nd+UMa3bJPWRbSj+YG%%*KEFerML(I*n+fKCy=A^8lVWMq(` zIg`TCnw-jaejv~O*YPCF0XL#reE0CstCk#W26GWcAU+S;qe2(9dO&7O$f=he77764 zmv!A&3}*_{QeXyWbJFRCW6)u&h`Ky9Nm!Lam?1_CrvP?9iNAiu#mmiY9&)_v5JBa_ z*gmPX?Vt)vHV#ly+`wUasa1JQ0va1!v8R_`l__MIH%1w2BdelXxR3*=;Y7cAGE`+# zxRBNBxY_eb3Px*y8&A5lAFwEvvI1pp@A!zMwnSe8B(_n)1cbDvg(n3GbA)-Q;3v7l za)qqI`a=|G)V(?I`Iy~i>xIf0J50??)L1tTH~T&ZHk8^YRL3?Wdtafp8Gy49_Pr;e zOwb~Os*PgwMy~?aVz`ZN(r~-0c?N8})wBU{Q6UE>ldn!DE}v4R5e{>o2bDjm4JYAr zYos$qJ?1S{0Jwc${+2dHX0aA@?}8eZ9NqsVJvB8g6e^}NNDuJL2dnDY?5jW+%PYA- zUQVrhz}n@E&9^4k*D$)RlN0)WauQ->f)?g7)v6b$u-iXI za*uRkH9gLa(hOle^lPQ<%$LRD_4D-1c*%IsEIED>Zj1LuQFz-@bbVd;u~L+m7wG8S zEabz^LUo^Xg>9DbI@&S&Z)?T;PWc~D@3(AqR@*_i6o<##ca)Vt@M%fv0Q_#_J{3Dc znf!kC)4}e}Ht(my-Mw8T=lvzwFj@~j3b~qdWMJ86JKOr<>3^NPdHU`1lNUe!^!&T$ zudlC@t$FsFyW{WgdYgS%g#PyaUC>Q&Pw0jMp-^hDcCD|0m`V(@gQgw_{hj6_a9+Cd zs=)N`lO6^J{t)MdNt&Gg*6!A!Q;8yy`Pbk75`Bo?5DxD>|2WTqg+v_+hfwOde|hu# zmDl?K?AMlPS+*3No&B6f`KOn2Q@5~n8GSriq}lugFh8p#;EgN2Bz(I7I!rFGk&|pr z!5Dzt8ts3b$PSnVwK_RXZt6vqz-~?xvma<~SZ?LX`9*mWiTn}ChZuvEVFXAJShS)7*1G>LOmYgv$huL;`~og}K%32KiD(T~;A_rwLwNSe@%%=oPsv?`y+ zm)VE734b1B&xWcWYw6R5KkHi4hb=7;0SucIJ;$8RoVi;V0jst zlZu7ga_mHMO*#ewA~HZ62hsH^jsNr->Ea4MZ2LMai-?4*V%MqcXr5{=DZYs($z?SA zCOJ>6SesA6y(2-$WMN*uS0L@iuvsUuwUw=%cYVFBd(iuz_zk<0gMI4cc>DSqo{kUc zslT&BkNuq^y;oCWsTfL}%Oy$DsP^EK#L zpE1b%5pO;U>4IXv-ZleP50qki=r4Y0<}1NXROO5G&sp{>V^eg^+q!^9io>fy&Rk7I zYIq83pJL3hv{Dx^Tw#lYKIWKC21{t8sUnW@$pv@P(M4)^QEwYcQUW8_Z52H@ZP=D* z!Ke6pGz3rms?M`hkkZMO9}hIAC?&w)i4-|Q3B$d4_4L{ElV>l#c@DdW-u(3RYwP*@ zZ>`5?ujz5%i3aQEd84*890HTz;qb6FDWpK*h@iEuihC(aoyIV}cr&6)c^R&hig10+ zj=~9KRkQ+y?`aZg7N+El-_u{y^RfyQ;rgI`?Oup zOH{s9S$4^Q_zH%!U6fdz2X7p@hd-w>>2l9`$P0)|y7AC?sO=!D<~XjbV$;Th`*(8`y7KFr#UV+ix}tbY5&KyPbh?5C}fS;uHvuYoUx9i)gs=(!!@t zwnc_r1H~e)G_)U_7<;V^1*%;k!NF@T`)I5k;qnHWy@8T$7*xx%^MK%2;22{#{;{0? zw!gWV%5`4rS6wT_ctqUiWPagCnD`AlonL*sPEb%RuW$wuqGd%qicQI76=)>@m(PTWBJn18)S~gTD zhZ(j;VQ9(3JH0p0Zzx>H&2fop-yu@5NW({>Ck`QsVmtVhr z`s}YQ)mW`A!WZMRr7PfLtr*Dl*~v8~UUVVi^tOmNy(WPF8RFH_o}u=<8FQ> ztuyXv{fJ9;(l~SKm7cYH^|zmYc>4OUf{DMy4xMb2`B+uxGuIJbYsCUeEykP!Imu)9=5hp({6#z(SAWC1AB@y1qx5lVZ$M6u2!L zASbg$F-T@IHd`lo0}%VmfoLA?3Xm~{ftPNQA*#J^TI3oTt&<{6PeaEMl2)C}Y0N$F z@{Mqb5(<_=5oN5LxtCqJo3qGNXO_b5-ueilhY(VMW1 zA;rq={g$9bOph<3+B$AMU8rHue1J9GZLhJZT2Y0Pui;E3*%@GrcDhF@k#A>NRJy2K z0+N?2b&kz&39XJyiX}nCY*T*IVq)baT+J{e_Je#Y(|N($ zlA|urFUcY_H}*qC5B|Bx%2-M&4>w{`qjaoyOlw@{fbk|S^-a}y)kMH`wVrS809w}$ zhRuX`uxzh7`fzy5_6U-J&VwrS!hm8d9hb0d5kPtI&GR3BdhzXx=dXP{wI)C)31BNQ zG_8z1Gc_XdG_bcp^4eZye|K?SnZbEsVkXAcbGXx3lE+M5;^x8lPFp=gX>fE{~s9 zmK1Si?Q-LYHWkbEsx&zj^J`O!x8XMx-)n0+KbJgOZ=V0{=jT5@drq95)}$1u5AWt_ zUB{~|f&Hp&1hS8(uU|i9xiX%`%XwO3A5~Q)Pc6j(r6dq^1+HUp)pJ2=NB8Zq-iT;* zYki^KxheBKUVU1w^0dp`dSdHg9N={grWJc00nM^5Vnp6Xna=V0dNlS+KH=~%Wm^1b&ku0pE8UEeguekZauH@ys3z|3uj;3pluO+C!`5{J*(yS%ueBcO<&GDsDA|MA`v#gW}VO+4r<`<>0 z37ns8eZ1pqZD!!qwe^m#&Sbz5Da>#3jxRX&#r0m$-}c4TUeMq5^|fHIyW<<&ZLoLX zYYG(X?fHhzFxWlzzcC;8d_x8f_Mi*%vF{u5eQ@0OpP7%lzM+f=4q#0B0xj4-hEaU~ zQna*x80tbINoY{9p zgCGAkRxm0l5a5Wqea4{GbQqHXqDi!kUX;at4hRw!O_|gQLDs+#q zUhM+JX;-n>Bhp8sbwJ6oaU`pcgJvc4Nq|sOxlc_@Q^rLJvF3jDoB{kcH8PX{v0!TKiKj{fPw_1I6pKuD-^9Q}i|ibo8|`^V4aYyz4`S14+}Z}n zX2bQujv?HMCIM5voVG8EX*n(0{MIV%@H)q0ol9P+)Th+OsFcL^MT70IXaWAW%?dz_ z&+xW^Pl)V>n%C@3nBimRRO%SXoW&{&D^nD<&!XOXy|CkRNCy}v9&wR=v@}|NBfsC= zt||)f$8>1WAh!{pi6#YuXYCECTb1GNga%c(r5lk~SlKCr>OkdGlOLr2dSFKvfKIdX zWU~4p`@UZMCIoU>6Q7!>)@KK?T1QQ>tL6Sm-*2V9ysQ#C7+BJdPV1D>EZ9Y}u)&2g zr4F0^fRf6pGLpm+SI+fK3LGZzif6P6U3*z8=|~_Xu_SHW82dW5xalLHGyJD$Qn!~z zRmcAocuJW6uQ38xoZggAZ>|BJ_#%xkEPN)&USSMG686^hCJk=OqQA7NIy8n@+6|bC zU0lGyxrkt(IU?MQ11zJfBV~Ba&SBKu(0s)OB#ojMoAQygO{;rC~Uf6 z*rwdEHKNp_Idk-`0V&~fJ_Eo%pEapZ^PK!-msVV~Uq;DHEW2#6Z6|d!r#8|*7g3QQ zr7?#tn$178(?~i-aIRWT(@#bn*z3rjLECt0W^oSZ3Ha}5mi!BTGpb%JWhBuEz;6HN zB@3%ggBG!Bt$nYn9D_QLCx5S;MNVoilI28J$!5`S$;)iHH z_(MAQ0~ufB3#fhx)1DXVqopubd6WN;hUGwIz8(P(#=wQt@*Kkm)NPJ1qNm3z#oiQx zzo%LkqFg722=_}N8CDl_~lJT z(51Y+*2Q~CajMa~DgIdI(X*zD(;sroX2-uQWF$RXtR!Ks$_yr*F#Xscjmd0=6*n)Z zE}AB6AWbagg{Y@;Q9t_SZSj>GK7oI|;UnKsF+JWrxRS+D7fwKdYp6D@q3O}^};8;2Uj_4Gclu70WGh9qDAbzuk)Ulm{mbQ)f1}$n_W;_ z<y2^E$F(i$Ovnp{I;pdP zZmOKr@)|eg*7t1e`4r#~{x`<|8|&c{20PmCA8g-02HV@-IYz@FOyT${DlcBm78p}V z;GxQ=0{7nS{@%{PkxWW(DANQHk~Yw3VR}_*CwJ31-4O$&z$n8wxKc(TRmItmFtr-S z%EH(-a$4>crL4s4)thseuoH|ll5_s@=H-tF3Mte8#SHWu~c|KTSI#tvt*Fo<3a?U0U z=(e%p^yYc;0VDIlQJPU;xim{R6F?0ZGsTFhh!+qj=$gt@!|$HH59wdNf+bIIp14Vz z)kuj}dGxQSfcdh>o`L6~qHEqflLD3AafHL4eX?hS*P|jNQFJNGvg!Svs_SuEX9&WA1ewKy(2>D{I2c) zUEBY=w*Pl+|L@xV-?ja}Yx{rK_W!Q!|6SYvySD##ZU67u{{Pps{r%(P{?WZFtqu;4 z_xDBeViX!>Ce8gLktGg##Uyx`58-%s=U~rJWldl(S7&iN2gnKvQ;{Yj-kQeo8ESU6 zPAU6=^dm@GF^Eg{t-ewnsX*_3A{h}(@Dk?8vD5s6qH_btx#d9iV6IWNJRB(+EcpO{3IXw|2I9J+g86$HGL-GEYogvcv zYi#ax>+8V9@VpZE-qz&;yDVO11-fb)kKtM=RpJ<1qlw?#QPL_jx()y|)1b*fLK-IR zGLrjQ%iRR!CPr$u;qAf7)ima-ETyUI7B>{6?luR|*f!RzgSP#!Q3p+93VqUqw{9l1 z^}eb4Ce>FOL;!q)XLixVytRYJ&E5JXrdZqOg$KMCvINDzKns9{(!t%w{8}(kJ>_oEz0nGP;sq1oP&E(h zN9${JcEND}ifAmPEGNZD;`oFx*%avldf#B=0`&Vy2>WSkYft|S`8Z*)@o5>Zf+Ix8 zqXu%A%ob-DH4d-?4V_wq@sCxYP28!LBFUvF@WKnx`FB_wCF|;IBUSD?ln`uybinoNmeifYlMq(Hd7j+Nv$ zYYH`$G;Lu+uT7hTMSdX!sYld!Z&4(H;vY$Q;W~eERDiW94aO*lmp<}^7%D&TK$R{b zG=B4yZW%t2rxO;u38*C_6aWNN(V*%^Dfx=ViFY9Nvfj%DD+S2Xk56u6+Ydm(7^pE&$6<$9DdNn`0}@<7?CqwOe#rQi|S*dTFv9M>}VH1 z{oNiczkIc{6RU`>Ds_4l~bc^`*O1mxc zaoI7Jm6_o`L3um9Dn1$B)n(X>R>wEP_LmjfBa2z56*8xr&kf zlCAX~KDa8YhwnTYSzs2LtugfwsD7+j;WL>J*5(2vab25jN%qra(k^XKUdPioCwZL* z1>JLj>Y>arE=bfn!@T6e)H}6OciA)Y{N?Zp9q#2-M+44!g`*M$=Nf%0VZo~)uF!sk zbo24I30{bCZijZwUR{?2vLmNt9Z2y)*>J&%4bI%T6wRh#%VAk_{DoWib6<)(Bv7Hp zrjmZ1Y_G55aa=Q%C_|&bMn9;loESW&9B2IA><8OYQ&rP}U0<)2*VkPNtm(j=bgOPA zrs}3KU_e5)PRRNyVKn<(Jx`aGXS$lE=DxHZbt!rl{6C-tnURT+JPP%*7f#HN&}K59 zH4C+xG6@8$I1G^P&KB^?b@A>!e9}p^QlHefT{oPOKy6V|9PQS7_y zGA3i-TIw)P2=*9|;m}Rd%>A{poR3qCQT@rCGfitfrFeQ5emhcckfOOi>QE#Oo192X zsm&cPSgD}5f|9SffE_#bwt8xryUuIXDhIscK(gh^NGt8;mSb~lPnnZyoWYrmIIIpu zy#Qhde^Q;U5#Hd5a!vY+BgcOo|z2ZKinl((^B+ZC8173nMe(yoIF{igstjV{e+F=sb)`mZS@bV@^YKG!TR=nSMeU3XT9E@%P~++1{U0 zBkGppJxd$s{)d4$IPST;fOS8FpQz4z3@)pp0(}_r&)|dbI6|8g)!_N{^(XQYdruZ6 zB0ywHVT;JX>FZB_j-b|iZwsw|=$}F3Xk(C}Fb9lb7;kQw(d2YxbmO6MOf;;4AYEo> zY&ghQSp=l&l16q4tK_%IDl?g>0VJf1BJjp@cSd*%M5e7Wk1zpWH2a?{jd583%o)bl zXV^aouaYy6i_vE*kwc}Rk?ssA&;w7crJ@)oEu7J49KfD6 zEH>S|i31u4kArC;9-7whP~OBtGO+{2cB+|Cxv=#S@lB$#*$a&A!t+12jGDt?)gd^^ zV`$d({8wfb;(Cktsp03yo^B#JP%;qOUstVB3H$R^J2yn>erZ2{yuSXp1x(ZnOzPuX zS8&bikt96plw9bT`$nU%M^Q5)=$xf??-FckJ#>`n=t&lD?Xf0g*d5hA3M_B-0AG@S zVZbo6Nzz}iE~BgEc1_2M9W)sLx}-4MZx%sMyOwsvyD(AbscP=W6Y0~~@bnwCIQUu4 zljw(-cR4b+qp6`#!wd!f4egy1ImUecjqe z-o@ojZ_p-K1T@IorNkSkY)zZcI$MD#e``TG4iX2zc>?Fe&Y*1@C|BGQnYc7>^A~9P zsA>pcTgXS$U6)thC3(%u1NUIt7&L)<09(kSaYlKvwaM!)JMIXiq?0kpKyp7VY0vW+ ze6Xy)4O6)_Rsu|mgRfrb5}3>uFK-g#=87nK{%^p?%U&CWe=|5?_r#A?fZ+xpPhcL{ z<>n>ZR$B-|cvS27_vk}*c(l`*j@@<%L&}YMRn7TofsZqh3uakRIWiC(XeZcO63k{C zS`n33x}IXFX_<}whCJ}>1lh%_gS1OtmU(bxd)mRvpkZ0xi%03WswnE7uUX#M7tK!r zynuE~uey_LfXSVKVF%v*K%M3+L@hjsHb5G_lSb~o?R6(YB9MD$?7qXh0QM4nhbgLj z!x6wP>Cly#C}X1=vsf(kAyCe=&Nn#xD>RNzeNqeNsDntVFt!rw+1B(fRfuuHh0d_% zx??I8sksW{4EwcKEIlapqT8pd3o_1iP&wgneal$B2DV2CH(@?s(F0k~3n1D_5UiRF zDTDbCtX8!OM%s&1QFK(Q8a@oT#r%VV!-L%~DSQfvGE+vr${;ka-R->;_lO{p)`?=9 zg06uF3xAZ^+O=^974y-^PU17?!PXYc0(J@Kh~ZoQBEb1*z$yrt!r=P4^K>?QMHOmy zTqsE?Ta#ABWFZujWd|x9MZO+niu3~h5t5EUIK~Z(TejnIY=X)P>Z}S*1nD87Q2D#N zJ9}SpLkJZ_ruRmnt-f0TzUKDVG{~>7*Agj&kb+CRXfpEr(d`6peUB|Mx@@sCX#}Cb z1s9$n?Rzf!vWvNmHy{1I-TnXQ+O51`ZPJ9XeCB#~FWG+rg!?;y68{(Wf87Cs)NzOV zhkHAoaWQRTOzOr#4P7TDoz^~490GrKH~hNrNApgMdKTU+$b_~*{s~DSmX%6d(*x7A zzz6{~Q&I~byQ*a?Qb>w;D~1)utb9#0;gMv9w@Y#t%Ik%-z5x4Wc$YvtWDg)DolWz? zG^T+$&)@89_m9{lj}rn6VJ4QsO?vXn?W=636`qN`poRHIe!pH8P&;CG*ze7bk*Ahw zxZw?-s@tW(hJynnFw zY7H>@BMk6Y+y-?Z@a@AbGNkMTu#zjSsE!6JczsDBxg^aL}Az*xk zyzjf|dTN_)n_BQ;2cD}D-2&ZOTh)k6XX|Kg z(qY_`*%wx>u_z|f1H=;%48d}tPq{vlN#jU@^i)`+pH%Jhv2R0g(h3DbA#tn2l-$4t z;IS%d42is*Sztoec7?imU9-5pUMS_LQhJEPiYMgWHm)>Zk=xObX;zbHh+EUx-{8HJ zOh8N#o#y{Fp@63ug)6E`i<>T7w!1iuwv&Z}EyRYtC1<-jV;g;G=|FDbVzn(?TwfP0 zTNw8OYzADb_OMTPh;+mtYBxV1i!Lgu1kTT{`70OaykTKrx`7=czf-)O%b+qU)5 zalKP(ZzUs*wwoN?PUX`r|NT=+3~y(iTuv!ii$BPzHANau&i1@LNFU4dGe|c!3=_Oj zI;IpY^3dcS`>;tuwJpCkM13roihOh>$J-F8KXqrDeY3l)*UxuUF15U|WiFD!cgXO;@fnLCg~q#o`gCQ)kQ2ICE+taO zX(Sg;06!&{c-2TBs7-i@o^R0vBN-wm-V#KQJBm=);+pd62`WcvH2Z`)bJb$4*Da!z zA~}$LD+uQknfjRl8tP``6&Agr%d_yxxC#$8`#xO>;A5mobR@noUmg60RFh+n% zMPodhn0FnIm$1Kb4Jo-TT%iD!x6yyxn95MU8QoNS%&~rO-pQn=SBMY3I`ui6`dpv- z9FHMxzI4#Jck?kEHe=J%b8gVy&AzZQK>L|AEKP%$beINZ2ok6uj$WngZzxx9%}S80 ze@RmJ20HoY_8@*-ssx}gD##Hqj+al$y)iO#bBem3*5^sEEz1q9eC)WsIw0 z!xkoKC0DgWJ&;+4@y2!zblR}5u&G#3@&>2mu5v?#+onN4gSZ8%;Kqh_3>34H2g;ln z-|z;A`D>dVO-pdQ6Kbr*>L_{FBi1elOd~e?OSg{3;CTasb6#N8A|mrN%%Q>dMoQ6$ zwras$MdwN7a+j+D8*UT1zjS@wq$;G}SF;S!`L+6Ll#N}TzqTVv$tOHdU+Lq<+mY^+ zs?e$^2wPvJT%&>5ZL1*|2Uu?F!05!@;i7n-+F6l?(RTCxV_UPqXVMamC$la@V}${I zgdQAnJ6@_0j#h{uC17XqGaZ%zNuSd)L<>T8*-w2lT5)8=1dL4#*BUuAFi!2XTnn`; z7rRge(42JpXK(q|5SpTymY8DkmX5wC?)QXwsPUcvI>fFptbrHA!l-3UT3BB&>M!n!sG!5;%a{q+hl+~e$I2H}mNd_fZ9`0?spY&0Y%NF=g;~0c zJ_45GpGoTWeaR?UbII**aqUvp=95-u%dEMa@NSAV%c$b=L>0lT5J}2Xw*`R|0&}QG@^MntoPdE zfi{hq25s>~^QL1dm#cYaD;!q4xeDwg+od;b-UgI(8xW%tP16X{v`s2K_Nqx&$bA6( z26CS%dD>vkai7#@Us6@qxT!aNYb8@#`poBIs5S-Tm8{wH&WtaUvT5c=0$^jcn&zBj zmIv_I-RmD5{cpj;a89uA(J1DHmKJK^jqjBDBjp4e?c1&fMN)t^4I*kw5o1qwoTB*x z@Bh%Ct;K_1E}TrbP(Z=8ZEq}B0v$^3c_l^?{)Ty{u@sn+7Fn4uxBgdbZfmV=Rsf82 z5P;fe{Q(uYc^uci<15EAjk*$;1)2wZ`CaU1;Z;-yOINpmp`T_SYq?w^3g1M*2kugx zqZU95j6m+vgb4Ve+K_;_ds`|PjB4}mB8kZz8~i(4YlKtm1}hTVS>BtFXNt&^%v0?Q#36uw)f zk}8ZfiTPTk78T?gS*O!q+0R`nAY> zwF{5MYQ?6j6j=IRnz_0ZaZ zsxbB7V;tqKR|#J~b)UFxcqyjnrMRq}g@+EG;-WzKcYO5~={wA0v2-Blkek|0yd?Yi@3s;=&VZlE>-rhH~up z3_YOqymaU(LIO*go*|XAWw0DM#Lj|sgKf-is_oygKxGHi66I<>Mas&PF&GOh z`&U&nUKVXkv7@BOh#d_s+!P~BA`zz@7ILw4cm+R#l-^Y!XVb>2oeW#6;H8`pOnViO z;$VFph5$c&dJ6Doh(GlZtqUx)Wic-F`*m&Cg`B5?eL zitj%Wt?<3eaz#H!gkDx=B6p@|D1HVqNI+&0|9_zsjh5xJ<)VAmCc4MkX34#Dmk*4> zs#MAq{%ZM^2YPhqM5Z@PnGRX(Rnj78wOeH2YL2lN=oM+9C^p0wCHZWtS)=mgO~?kC zr1xP1O~EG3^~J_QOT1HMW=}yah*y!a!dW=VS`{E!7fV0(FT%U*fQ4acoY|>-T)VS3 zEU)-yWKNBcxwJTyPuA19_4L7dI<=nOTTc%xerMSMzM9zK5;2vB^++7_>nctXAzoJlTI(a5T$C^#EOxT#6gLyqKA)wH_+-jTy7EEnenQ ze(saErITIp#4{_~mFox#P#Y1&p0+B7FHP^My2-2N1eQ;A6pz`7p{fU!iB}>Lm)3*; z1ZNZmoH!GaeM)H!sn=}q)C4>F?#IjlZqkYyh(fZF>ZQWeC1w^eyPSAl?T6ZN#M`up)(%+0{?8_ufgyU^|(Y~xs+v({i~_qwE~e& zZ;_(=dw@Cb{A^KzloMp36D`Wjv6%P?7jN+VQ`T;USJi#1L6_?{OYa7iCI^9G)5;i` zv)HgSE`pg4#9?l~JF7y2&-7DY;QP`W2(lH&M*N5~zbOJur3l0zq>!MRqKBwb24MI-f<8*mW2|_XK#9g_`3#HJdfZQOWPXylU+DD)iu zso!%*g#{*P0B}idWMXD3z<38}k6Ny;Yx6*DtuIZ`The{~OcbDJSfTc!9K_)B6mh2C zJ6*sqvYsRyz2BmuCzFMr!O5C1-#AbA{{-8CrWl&WU3Oss0^} ztv8SI0`MA~a{dx|Tko?3Hi+K?dH5*kGaypP!#f$$jqX3<;7ZyB z$CYq{E8HA)#f6)op15!`Z=mH35QVk1^0SL5r_^1(Re&A+%(pe4EzXk^opH~T0@+v{L_w)2tT1umlew9&s=#B9UIKe!pLYk@6REX< zAYJhVI-Nd~8mLPSv7*4hy^=}QUQShnJ^M9Kw^Zj|69O4!77S5KHO1VGVGh4Q7~u5C z397)O%Q$ol4CVM)WyS-veG9_$`r7F^zH-+oVVT`>Q#p+J@rIjjgy@(uk0Xo@?Wy=I zXr*v#GG<$O8bB2KN`v7J|k0rT(lV)86Lh+mE|30JqqHM`vTQ z;qCu=J;kWOnuguV&4n zm{u~p5+QzqrbEX==ix>|-WDHAZv&nxpZL9?xqUDgVJw)o)NcI~k@%s80AhO-Gk zfZym`OoT(FM{q{YhHIo!f!PMYdT*2)&e*B^DE-uodFjC0-UKjf1b88bQn0WsrQj_E z^QK$4%FoIRke)gs2XJUkcwbeuIHIZ$c8HS5)6(7c^v>xY;KR?rFXYc6bYatYC$Z{F zY2(q`w~x+!=PmrtkWd~u@bV$NdT6|RyUiuH&4O=Bepy;CQ+}CRFLQpGn=eOiKW=Zs zM&15)3}0JT5h{G##(hc4WL4~A#s0T%KOTMyKaQ8Rpc<%5U$E7|@pjB_$JWbV_~kF= z%T0c_>HPl|a3;@^j@YkljD@67BXjRM8;vuI*7sp7SmXg2I}{*3yC~KvwwhG)W!U%8 zLZf^vzW`n%Pi8=bs0SF8V~qQc79aTAM;b7YWy7=*moV}T-^KL$%4-HqLFm(Xb!zO9&v;HebUs05Nn6?;IKii%#K>$gShg!biW1qRoGeANgna^G_rAb%DPgoV?wH-=HIgU=5y=>eyOPtWPe<%g&A z;PJx?dKijNKhaab55LmGpZMW*IFH@Yhy?zBIpZmrd;fHT| zJpAwjHHJ;YL{wA%GLLk{*E5L;)g$rNj-(`{s%)(HKzAhQDPh39~i}v~um53;joCISic@eN!G8k+6#~+Sji7q@ zFNU|=&-m(pS`){iTXV_z*)SMQ9JfTU5kZ+dV&VvOFxD>7aXiI;@;Dq_Ap;ileZjl+ ztFfQpw=72eNrC?DXj4ZF=WFEN*|rWf5Hc?)zQ%k0!o12C>X2tq`mpR#F{OV%m0K^z zN^c$Dw{;_ce6}8X0}vxe##_UJE;6jC;;mwF%6E!x3a~Q0ohPvcJ%)^6^c)}gxghpg zC4;O9NZ-2dJhp`*QJXkF$0s%qE6XS(rP)quw6h>LOcodNFpq&S5S5X7;ao@$Ktu*> zIr+4D>E&0t5Vr4iXh+@mRwY9#_1KaD?0}yu`3z zXwD0x&ah{<2tVMvHGUU`7xHNcdpXR2Wd4tfMuFH5KPMmYi?i5Vw>-yEC8cqdDb{EdWit;Y3C+n4m6x zA_Y0D3XmN%Q>b4w7LymUzJ}_nY=VH2hNlLgQhayZZ(ZaZ^Lz3V=k^l6LY4oToa=iH z*5lpQmWpsLTPp09enTG|wInI*#Ee%1eQ2=8eszh>+*b_X$3WKAC_XSa{edx zJpYq>nSUC>A))me-x2^V0o!2eF2;^AXWlW(RL?SP&NAhBm|_p%VY7?>@|vhF3x7kz&_Gk- zJ@mA<-#V8pMD|F`C9^yFI~ot^jtcB3;szt`NE$VI@;!7E;gskK$eo9;Y=k!FYT~A4 zj+(7k3ZYHl6V#p%^h_QjLKXuMl{&VFs3g->OI;-`>Ng|5|7hC>35<6%;kFv8>q304 zIBcq~+-$@A?VE-7`dtwAx*+^iLipycI=k&a0hvYtSrY}^snh@H;YOj0GeoJgvBPI? z$frBpX?F7B#^bFy5Zs`7_|d@4Id50>^qckc+p2n`k*Szg>-u5!(koQG9 z=EIa48#+uIN2;VFmEQO6T}cwktN%y#IP9)Z7U^Dz;UNm2FCib9Nj|bB`N#y(Ex30z z3lI}RVFkfs#uqSV7+Bs|;FK0P_iO?lQ}$uvQf%UGkZ+2^awX5n-Oss2otQf|7`MGv z*kF@^(byYeX^~MbOrE)o&fRkl_psw6yV#Y^QIaaOoDqf*xwnj74Zb)A7Ghfac9t-H zpkcg!)H;R;6Nk!CMD{3t!pP@b+nsP*VpbC&#K2O7BO1uq5|oVJerC#D9iu4BQ54Nl z2r&Q#XpSPPjbhx>ZJx9DO@Ug~paV}`cOTh$VJ zs3!8MMZ02fHuph)hyoDDKNDb}cDN1N)aHwh-ThkbZf1iTLc`}Z&5RD5jDa}GsAq3s z8R7i7o@NJ~{<}*m z{iaivx5Mm;!>Yyj8^&_nDIovSHIyGahthHu1gBzb{SWaHnc=PnQx640e>4;sdz}E^ z>YC-ZCar}g3e*Q5cd^)$j?;(~yNEY8B?1&XPlP8AP)TG9sxbVOINQ&ekpZlJ3$Ri( z-LuxyowuIun!f7?Iq_Ug992?s;yARHvEWeb-Etat3x5}PAKpJvyi-zFizK&H`1_I_ zH-x`#(N6*C{c>HsRN&h1MsCeBEdH7PV-AUE8ox-(_#C(a!4ynje(Gm1F=dS_i)!ue zb?8O$aqts3Pq0; z0)^mAKM=yl9T3L*;dTiBs|&)P?hcW!+aUaz?X^PqxJxp4*d-bK>vj;Xp&`5`6$T=G zG!P-A)WV8BXh%%#O4_>2`gc#MuWI_$2Cm5s{b~a%NU9;uW<(NA2g`Xjx&>-&|JiQ)Rio_>cW?WzcH6%-+CIH|+kdg!epBaf?o|;3 zr}ve0Yx&W7dTBkeHnHvI^R{h#hR_GcCmazZ#@%|6=J|Tr1;+QSE0wmcR1Kj2XaQ(D zRmfVK%UY;H9k`#_-ut^(|Hth>PVf|zg#i2D?tuMU3t&IpeI{SG0roT7dvN#afBW3M z{Jeo~PVSCw{@X@3PrJ^^=iIH@2*==@QPY>}?XxaOZnyNX2mroF zG2LZsq-@t#Ol(rk zEI}Cp9jVQ)(-_{vn~lB~$lnw{^JwSj=nLd<H1nwRerO=jB+86sFKOT1#bXioY6_BVB7eM%T{cJpqC*;($t^W!EQ_VdnAn&`9@? zZm1m;sMHV2xhO^Ta&Fhim)6L2e7q-N1{?5k0jC8INpgK%Y*K~j6#daqK6J~C)ca!+ zhTFIwXyv{jFqH9niz}UQAxC>ma)G_yZD~Yv_1P*5Z<^e}$jX#!fatpTQtc5-R4%=b%>|#zTcYm$!s6f35UHY2}k+>b>JGf`*((q9&qnN_{eD6)UEL zXO)IcP6A}U0meQoG2*Ru zS;kzX>DTB)QD|RtN>Iup2{Yp*h0+TP?e4s@ySsb;@T65Te1QKy_TGfOZ5wOY{ws`< zC$Sq@F&AfX#`R>a=Q*hd#k)7NL4Ep2V();N7U%Xz9f0O1Sk+QuJ zq{k!X6oxhL=ZT$GS9=e>f%6^p#N1!)|N9uKw^|1X`L;^N)Qtz1Wlsht4n(*0Alxp5 z*>a#+!Hqj0e?`9cEN4{D0N3sI)?I06f^xnbYY)C*x4nPAqzvJ>r?e5hoc{aKgKvw~qkkVSR>OZ|=hGk-AE$KaZ#qnu=}Cm# z9LECOOucnj96kF#iWYZgk>U<5E=5|rxH}YgFYfNp;_fbm7I$~I;_mK?E}ZG}ey{6y z{`l;@$*oByGn2_olAGuB=_p9eo$xm;J;7ozHJJ-FCK0yeqrPOfj;JDtd))+YL-3OpC%yuY5BBlZp~48Jo-iP&|sIxDJH3xR#CamE0IilZw5%ssG-pNb)h>Y>~WY19%3dK z)weKh`H*3mOIkN~fAsxY#pwN0ldHr_N$GtC`wQP)X^t{!0CCT zRW=RtTk~(UB{I6E;UAj^}LxmnIG;+Mju~d-;*ySoy?~k-1+CtlNvA*@j zB-Ot8lzlZ7gEDwO{KczXc{mQ^p1c>bnjY3We!UY;fhsfOBu9VqAUY&E`;e0-|u5DX=gmrC<&#@At^;&CiCYLUu_NwxG?J;WVXLj5j|0AMA$JG zhy5zy*Q(+y^v%i!QLKj(>3JjEoHe&SWrj8!(r<;FBrihH){pHUv^FRLt}R|H@Fzbh zpWWkoH(<#iQBg#S-um=9>taj65E*x_^h^@#06YF_SHR^1X7(Vam+8K(>O4D`J9j zr|p0-kwBthnqGOBgqX~IMA%S5m3nqR{Q#AN8b2SELk@hNjwbe1)vW=vMkkm48?$*$r;cYgK$0BR_X)z)aN5 z*J9@{#HToqgpXKt-k}Utp9+G{+;Tdu@;WA?Bj;b;C=op_>O9DbC&(4eN%W64Fy+ZP!Fbvp8Vr&joSFy0KYj5VR3SO@+IWb*;BtwXr35uovM-`>udU!Zmhi3ZNQh{8$k2vKQ z+0c2Ty;ry#tje4u94G7ak8*9EWR^VVGw2rzcht+eh7Ii0vWdc96{_C@tUdAaJ>Xa4Gw(JGRo|T{HbPVV&mMayet{RtG@H|+azs2nsqKZ7M2@Fb%lE0qoKkUUhtdcYl z@RC52hz$@7_jwdf+R8mE;V$~(>V0xm+oiijD*pN`GiFTd?d()*P1wtLZB!&?h zx_tAlnEgXdUecE&fhv7RXH2)Z`I2$2G=YgX5l%DI`;O|Em!-S8#}WAI7#bcD(CjRRl=dWry0J4UDPdMsN&yZ z%}P}sCO2Ug8E+uQ4?%tleorZ^>7@_pI~UT2)Aeksx2Cw&9-er&^^a;(CvO?Ap&iqk z@o?+V=aL$iH=XzQL*fr`JSg7TttlEPBw;w_;|nkK7cqK6!uronT-vwwN(QwBQrjqJ zsvyh3LndXU8aSgQe|={m7A1_|_BIaPcRy^z)Tol4+EpvM)1d{!i&Lu`8_UErVNM_S zu&LuvqsN-Yn03nsv_E2>AIb?!#*kTGPS(|H@eT8Mkcu+lHlEl|m_&MnE-cJ~GMOrU z&>P&lTU=CSF~4X?;Xhv~`)xs+?;)cp=wZXBu;MTYn#zb5_#K;=j~pQ3BN1t_4ppyO zOyd2p5Fj-w!5<5MFP*eqg~%JP+Lk3UtbKb#-*Y3yi8LjmJh&yZy~h$gt-4XSX^TG8Gf7k zkZ&ZBZIQyIK%%;dYa+UPS8xh;{A{-&d~_$J02TPAecGvOoZ3i+fA>-E~%c&i|5;B zwM8g*VxQ;64gL1l3ykWG*UKG-zFu~iK@7v?N{cgXd zMm&!%$u_@K%WI~+7kZ;;VD$QWaXMAB^2mvv4{L(k0vItB2O_4?202(UxMteLpYLTc zz|g04o(mVMd>hmk)_#gRfH=$xyHa3t=zQH$zlEugA%8j9WPUPyNJ;2M`BEamNZxwU z!zib}y*tSpmGXRp^VBP&>`|FrbMbU*@K^5^G9~eIv3tK^#F4u6@9e>(Q(P%~0rjK; z`>mYOT_`sP^y`lo3eGTram1w&SC)#gu5tRwmu;f~ZmIa5i;LfrN`1E~>Ww=!T|(%+ zAYrM3ly4t*vc(&)$b*A}lL%BX#{Ul4{)l;<+_F@cF2KWlhaH6(SjG16?Sy)US%QVi z(eYDZ@3(?3oL7uO+(TaMd>%)(l-+x;FbG+;mLUdT*sx94`Og{zJ1`7dqZD}-h<84+ zpCYz@+Mw%^lpul3+Vw%8$#i72i9l#$r@GF6m1HMZ3}TaGk`E())R^+yez@37SYYZt z45R51gSK(~^k7hGZ2k(f*KYZk3f24HAg6&w| zo_8*P)OrhtaYRXPd%W=3!F19n&II+ncX$sOzxQw!rXoGDBym@K$T}{$by1RidM?H~ zQl{54@`UZr27+VMN(t|8)4???3W`CQ#T)bmF-u9~FK{caUH$iQluG`b$CI6?2DVl z*wUM61w&8)bmRru7Ut<8ym;H3`z=+smN&U)_~rw~mH``IJ#^XLl*jJKJ1(MNd9VYnpM5wVa~{_m zW5+yV?@X`$j#0nnRoOtSfw`FWCR%6H8Q&&(te0UlO$5@vM<}9@_?(7v-oVzCmA5r_mZZ^eMbUY3A z2@e~p;py>)a0fu=!e6e_3S7@RW0}CX360~dZ-Z>alv=5VA(QmIG zQMOs%YwfzHax}O1z#CpU;(K|gOOaAac2}CI28%kYm%CKW+|Yn?zi<6PGV;FdCX7x^ z#$G~{H(HRTbN1{!_P4vT6$h{Ry%QP>yPQ0$8eEFxdm!h;P%`GA)08LpP%KY!j=`xF zzxK|mmiu#3# zF+dX@#|rDoU!RWiC>(?u7FWaeAemM)8G+;5*6#91_dyF$|JCKz;<$B1=M9`}u4y(d z^R{3RUxvt1Vj&f9ufa$aGymnLS~?t#5c-hetolK#4zV^U5PI1deDO2tqsZtsAviil z+}2iJx|57eoh@jV?7KjRP4J<28?%2i-s@~{K4(5c($vBS*kw3czAtMEdnn9@6vT43 z**ViWvZ0a{^YD%3HQw<;$rQS=n!(u)J`0Ts?4ExVm?Vm-{Cu!Sw59k!EC)9mlt*$> z&cfdN8uC5ylmvozti3(I;*gv_9z|fc$w{LK6n%B!BJM_c0@eBCM9&QcvT&u73$>+K zssf9>v3queg+P}~#CJ(DAkBGRIk9(isK&d(WtE+USQQ6**MXot)?H1Lz%)r!%6#TiDE$A@@i{$yq0RFY72 za$vo^alCe<9v?osP8>@fTv##!2~G^N%J)NjGLvv491>HJKFSZj@`58x_`hbxTV=`| zuk5^xO?4gU!^OE>qd)9?ROVOitbO$NiuG}^xhLg^Q|CQ55;<^s?kmn=*Y(ayK&hLC zQp#WD32$pg7$xmU6OWsUa3K;JQtmtz^fym759+Za93BP(rpnr;OG1_J(Dt z!9p)MANoX-zOccRY?dT^V7J6Knj-h^3bU-S7n^MF*9Dds%#R@xlGRSk;x{>fKSZtT zQEZAp&C!$YK>5Fj%HD7;!=`#BvBykM#i|>H-ntmv9_)_th)ih#d;@W5akRQNzSJ zC|B@E<&ljL<>roXfrL{g$DF-H;zbhonRY-sD*@YxySerFiQ5p&z20{C9|;)(-bIdy`z zSBTJCUQytl&Sz|&g0`V1;tjoc2M5!|J zL23s>S#&*t%GgDOO|n1ofEv7|x#Pa9Aphtv;g8|-hBKNOL3>6_ndAG*yC+hWI%#36 zM<$oa4^kX`J{3*fy(a_JxRkbt#+r^8)U@z~ z!sI;|EFU*Hfq^kWaA1J(<|_304RW>VZAn5rdFf}6C+zDEo>e#)CC3O*X?a0{*t>g$ zcKF1;y>8hb+CSWIJ#w5Jw9k4)(1GpqR)x3Y)?R<-c%Qb;LY(KQAnUNCE)Wv2)jZN4 zgs^2;k*0ol=nB!4-6yRU8{yyObjjF`44U@nrfAv(OoW9xHYI4|Dg=d-hQ_|-LR zCvL4mwjnu?-qR7T+-o>1)X;`u$KVf8`Du<+r=00weAA!y9WTSCrJT(n@-dHTvfIwv zO6{p3qQN6-Ephh_N#6_7+Qj>&jQC2Y*|e$szy>ByQV@RIx}!H_^cVhm`fV(m{Iwgk z*XbDR>vb;E%u0(m<$*FXcDDC#-@-exw}_M#6ePU-#J`wGr=4kCw0|#$Xu_nfgQUU} zb`X;95llS%pkQ}CbJl5nOppryX*0_#eA{WZJ;ImPp7Q5JDnzNJ-DSel55n}^D*3|J zCVN2c9f8b>vFRUh??P5v!GGH7jS5x^_ZO2pEqdHuetEt`-@jd1yuXxw{Rk=Kz&%=e zxiSuyPX5qJC)rZ*y1S@X#U8R96XqnM1L6%&)!Ugxy$+2HeK!Feg^ZWYh5?MYv-c+l zCrGl}9eTQyd@`Zppgbk8f7B*1J=Yd2X_tS#2iK?7HeC-o_=jU`PT`YSg18rXL#uk~ z!`-%juQaN)Rb6JmKFvFKuu^W!LDiGg;VcUFfd)dIUT{{~Uo08KDk)lTa1ueo?;vu* z&@O9titu*1leR4)4@|eh)b6-d(8^&|M4KI_C+|h(n;Y-9c2By3yy!|NWRy1y6oeFY z7Iqo0ti9IJ}uZV=ofY?+f)uR zw}D5tmAi^-PqJg3fPi=N%jn%GP5GFG{ZiasZ$392x@xy%v>S9#Lh_s)Fe%%O|2~=A zg7d1ei{n7LVLb(ceVZxd9fWmy_T{VW+mp$6Gt^#-%T)Q-0iDzCMvL^>X;9o{VYcrk zCK>Ok!W69MJ}m#IZ=Jf?%sWcRDRH)}pYqlW&I@E|ugqy9%xS0L?{FzmqZN|b2L007 zNQ8x&*W)m%KQ_EaNfM=oEVa%uGzy?q6D4H0PVKR;WTgLeLZ}GBz!0Lg3x4r^6{WKS z$1zu>JaQm4;%4ue3tm5(bh92e&0kkPWWHmFF+^-PDZp<*)M^px`nGL|pbQ#0Pa}|^yadV3Gd@}ukT`ql=yKt~>kN7gS-rxesGHoi?Dh}lH7I1Z$BkC)X zE!@3v)DBVQ_!D#)&Edva|GmIc#~!AbUj{fhh^z( zeTMYJw#lstjVHCyB+MtuWmD%*Us%djqkC^7#yAYy?R9r=%8PZjAipr^JS(S%XsqG> z^i`<*%pqLgm~Hg1$<4L%-hI*-Ukl+$C>p6Q+$qb`HT2!PHU?EVcF{e!g9}CQ^W~_= z=lu_Vnlj%_rN7-RydBf@A9lW;RQo~LZn?+;f6rV^vc2Kh``ykRJwm+&9gA7H`r@mf zkZ@s^-7(0Imxvejx&;tI`I3nPDk#%aYNHatJbH8?w8MJj1lP* z{fgt2k-}!M-r*g=#6{S5e0SY_Rxo?Bbyk3I$@COrhJay+(R176IE7K8{Ha-CLU=kD zC&W*r6{WB?>kGY&4{x6#uYnWn3Ea`m%Y*h7G?=b)1+5y1rh(UhWCCjBD91+> z`O1;)ciYEw!*w|jZ$32@_br7hWOS%9Zs6=&?Jv-H6SZzw)XsM}I?T7+97EZYOn9jx zQ}zj0lGpCf1{(c@hnLGkvUNv~Z$q0k#yJvLfmgo&ht9{ZsZ%AH= z6AjLv<|V+J77RHTy?J9KKG$UT@>3gezx}JgpIP;VmSDTr<4Ei$T(})`9^$sd#&$US zrykHxOa0M<=7qpTuGmX3qF8kdQ@_Y`zDe{9-&P_M|8;Y~jm8h{oRtnicKKkeHnZ?V{1`WKF~uxP{I`J-opNPeD&zwrJ|6$To1QsQvLi9B?j)(#>Z#!r z8HqdURv_6hZ|B<6CxJ(a#H}6SZkN;k>Do_|ABkH@do#=Ku7riYwHotCC_u#xxUu$G ziGT=R?5i(OrzV`veSytJE;}#Bh0jpTJ!dj{gfH(EUcEy@37^Z_FWoubgwxeh zgL&%NE3+HPDs&F`Q_j0l7|z#dz7~!gF03i%goX4ksGV(Td5}5j$q+xqsK?U&mrDF+ zgKuD|%E_9Sap71;AM;xr?`OX=BF{g>croEw=}}e( z>r$G-u>Ry}-NKgMmihK3A+Wb$aWAO(Q2PQ}Yw|1b+y45%^JEGERRbAkiGIfXiy1Av zl%Fz{z)#jan#<4d5ecn zeUFC^|1N_h>QOGX;^BXo2lxxX|C9TSHs%u^kEKUByFUACrvyNK?}e7l6hOu$zysWr zjQ|W|fME@xWzzv3!P599@U(6076G8S;PKEp<>5nv&<>8VdZ*uJv>mZc6!!`dul8Mg zryud~?LlZuARxoeVJ(l&Vat|K58s4-E`|#pzMU7^>c7u&@<2%Il~);=wBiY_a)Q1I zOEFbL_D+DM=sS%bd#4tP&f%FE??DKyIS^RM_>Yb2!5YpfmPP%a3xdz6m-& z6sEoj)5O`}jLiKZ61%b9Uc!NpjKp0JGB2-F_8~)6O7Mt`pLH$vhFkk7^u$eI5@sZ zu}ujSBoBpO^;NbbGPIO?1V5(TEH_4Yf5K@#;NvMiMt=UjgBXi8$w4-^`EWXu37nC<~5%DL#`} zW!-jukAF>(Z+I(8*zs%Lgs_n^yvc-_%jVsW-*tYcY<&&Uev>h;dMk3?7IsC3uw@wm zY@(F2{@cu!b~f0{j_*A|OYgUQhJBH+*HiNFvPeA)SPhL+F8rHUoslHZ4@0h2`Ca4n zrBl;RCkeWdGPx3L=hh4C+Y!zQt1dQWU0-%1NLO=Ts`XSSPLb?BjqRai69)Bm8{Tp_ zP67`kr_woV3vMqV(2q`=lWaNB2VfINhlf)npPCJwrYMHY!j8a7eaMqUFP}9h+9#;{ zUxU++*Q<|p-wzy^z5g2T6;$ilZx{GUXfzz;={aJ=pnHwc2YzSU;s1Q$Zd4%1L8!~@ zPcrm&U3EXW5LD}Y+sSsB^YO(T>g~}gTKK&SVz&DSH`<~M1d{F52!S4S58TspufpGo zgEcyI+U^hRha5hZp6}N$0_fn{K1>j-qal5Az3)TVZok)v#pnK3sfy-szDQ>kIB#ux z8i&~16vhapm&MAQeb2;cv#KB?DXJV2I=qSmm3X3Ov?BO}R~!2l?id8s94sJ1i1E2=)#b z;0U0tsEo&WXLCLG7_eT#`O{{8Hc~F;kmqe|w5Kh$Rz6Cb1`jxR2{=KYAzKdH$mk%L zPNo-%B|~e2r(XDx>FoXp$m|o!Gzcw}UE~R74fu?km$p;AA`!%LyV5Nd+2#evVEMvy zPK&@Q_-??yS^u#0;=k+UHP$7V^QzrE3vQ`NDVwS|XaQkiDjtr}+{gJ&9@lzE-t zy#r@{0YtJ-q5CA%nCYoM$LIiR5ctNV!z8 zMU~DQ@Resu{Am9w7^d#rnt928a>u}9c@#Nkt?App@#hnP%;edFgw#v-wazs6KI!-+ z4<&*74XA+|E={DGGMh<8D(+@CRA&3EXh4oK&Nu7XL|uK(_qvR!y)u6Ii*d6dBn($X zRmI#@5I(Btn+MkWJGbHF^JF=)-8p(c!XgRhzpOdg;ZoyYCNw}WVel|Xn1rIuusVu$ zPB#p~$&7UlM+@WWj&K{COi_Q>q+^-3Vcr$x`%N=>BMo(ePiI|jrRm7cbMT`MXR#h1 zrn9~4h9xKUr*{1&4#T>P$%TGnpcH!ljI(fbyK014saR~zIDBPH=3V=CihD>v}Ot3N7%XDZ+j(c{db2lr^@U|V0eW5Y+0ex8Ez39la7u+P<$nP6k-8P|99Ba zod`G+r2|J-O*p?o#_!6Bj$&f1Nr%CsQDq=qBn{?h8NwqE3tMp-JznH%;@<1nmbtA9 zj#PW-#$ZFfmE6B63`BuJ%p7sPSBV_vmYziw=|8BuztSo<+O49Xr$;rP$o>hHpF>~v zYVrYXIjeh%z-=*>dcrBN!J6kn*7RPCJ@O!&^}^21EXq7=lGUrqr`FlaAsab;ZSZ^FKB+L~OrQ>DUIymPw8f&#$;F6@+Ud z9TDVSEBXyXvM>1L@Wj0eBJw}^DY+=OO)M`k2+2gG5T*o-8MX&lQ8#j`{V6`tyJKvr zp{Ho>esx+xK(~^^7E_bqEG;lK$+}W;I-|E|z9Y6om=iisp|?!*5JWxEl~aP9&p6`Nd^uA~Z#QkO2HWiS5GXx4N>>{ANkW+VX2daZ~h3?cE$_GBdL2w28Q+gR7w5ZEn52S6jj

xaL1ENE-|@fyP6ny zxeKzGAq=8M#(`#<;!YwL>FTQF9BSn+#AsFwT{mfxO!i&9eT6p3lff`c#j7LXhBGsU zbgG(SDAOrS78c$3m(D%FmuKg23p!&$N2pp4=!gOd00S~?M3@G-A&n0+WyqDCLAxQ%1^F8GG#!gH#cGeX{ix;rZhrOH)c4^c)ElGxQgo0qqf4*Ahgx;pLXM6W)(CmiCr+7x^;9$- z5XFgZ72P^@E@~fSuV5e4?6N{~x6R1TMp#e`774l8hoN|9`Q@rI(-c^s<_J;bzMpt- zx`&Y(2`FgXo4^K^UK)LoVqlo2P5I*UV0bqQPhn9G%krm*#E3%NNXC8S1)QTavMfhg z74$I)PyJzB)pP!ez2+y#annD(A0!nS_#>p}2Tab_07x&MAP(8S=(w(;5cwI3k&m1S z8;t?HjXadIeev`@_Cr4F@wWgU2?LK>T8xC0q$?mwP|te2UP3X_QWQj6t}G8OoR}5@ z{0f0eA)g_hG@&*+av7ElfSv>fL4TD6Y;Rs#fJh<>5U*H(A0X;S1R=PW`vABq3o1#9 z1(rlxsl+7|7Q$=Qg1j#`c15N4H8`N2IbVDGl8hn&=M*oTb@`B|2{>yy+|m#uWR#B- z`^bGnQ4nGU6(FDr2rv}DOB*&QPvXJ&9{y0OhwikZ)$j$H3%{JItPy2iX(8#_8n({B z;{)EzN;rk+C6s~zys;(=yz_%41zsVBA0UQYDA9_8*z`qyVb~!bAr=~Y>c?J155-sL zrFh~TXXn-F&(1mZ8O~m+K?51m7mK8Sy$JSo`ZW__Df!@vn#5PAOFU5yq;gSN_y94_ zysG^01@gi#r@HFgK~in*;H`S@3a+NBT9QwP?aIetd4%6WA>zg+W2)AEtybMMil=n^ zC}I_YhFc3_o+FZ@&@+gfVI(?Fk(>EMM92hqM5U-hMUOM6M*1SN-kP|lS{0Qg=;>rZ zdYmY4IndHlh%!>J#g+{&%bfx)?G1B3y)Q>aK0@qgp8L8QqKL0hmUt35V2v-y0bfN9 zcoI3PSHAcva=_EVI?qtarJxbs?ej0Xm?a|b|@Tkyly`T~Y_!yx3T%c4uDXiY?i2Y4LtZ@uX}(#ZC;3O>8P5_fwLKwt|Iq zOsICc@AXaHuW27@IzMV4QQ?y0OA;QTD1z_B6^X5y_@2)uBpfQUiSPMrNRO|~gCFx5 zh=Wj_g+Fs9eU;`0LH|@7j66OsG8C4^B{@s#TwX-JIDwvL%Mp=<#1b#hrk1f~$-P3- zViO2NWz#X^xsXue)49Ylx{yIfp|g4PFXh<;;#`tVd?{utT?dsDnVtR1C%$6N-)*`T zVx28SMVDm|2U8)3h%d`hI_7D7AqyhCPY^kzg!on?Z)9=$`I%&L=t&gkgOb6ym8}sX z3RN)O&z@ zifU)`r17O$N@`Kjg$ybFoz0QPmuJy2?UJ1O=h6a7p_%rfG*c-&(>@e43Cuf}L&O%6 z3#>bvT11v6E-XnAnN7T~-lQT?uLK_i9=~+nFk4B{^6||o*9J7LYlY;*_$j1kNn+DF zDlfjEb}ZD;P3!E68DcK~NqKVKy}DzgGjC{GZ_)O{2hINBU{IeQ_KluxG#ZJk%>EaLhlBayVbi?cGvOUxjGjX|pol|AsvhSbTr<(h&@*TK z@X$CsG<)#!xJ1bGjO?4EcY1n63ulDe*Vv~HJfJ*}#nJE$m~kwK-=qZZ#nKq1GHRFuc7|-E92CP zOvwj6g>RTEgx-!wcH>yM!gsdb%XP_Cvb?<{J1DJ3Xk5g zAJF=AgVBnI7NN%UA=~?!v~Bztm7F3a;dapK1+buOa-DGpH%mRj)rIz!Tqh(hqcw#G znoetmN~vSy^5bN8$Fw-dP=IyK2&^xSKJ4g$HP%&qCr;Z!HP7y3Usl?kpuR7y+Y={1 zMbdMC0VfO&j_FZ=0~p{BVZ6@g^V)|s@$ggPfj=F~Psj4pF>IOhRSYv@Dui#(X*lAQ zw|;W6^3^O%JmHP>#C-#61o?hAnEXXR5M5*#3O-p|8_nkij75t#q09R-synr2t$t$C z_B5xkCEbA{hOp(0Df6L?6OOzQ1} zRH~6i{*5ye{}@>upOUE|j7CPM*`vUo_D=>( zk{LO#s3ce?7}*8rvpR#7f!&7=E5j|*#lqTYcRKB&FhLoOH})puUJ4BGwUie8)(=ME zTP-C=*hT3Eqozq>5r5huG1{w3-BR;e=60*oMw5*wBfYn`xzncoV&p_+r1^(MH!_A< zq2w?xlVJT(o z>ea`K2WgpLvd^-lQJIFnL=`TP8$kOi$CL1tJ9$p?+C_u^t4T&$V?Kw7RIdXC*`&t6 z+FF{KJl)Ob<+A75YOZE_!ONOnVB2Z=nMg~`w*{?|HMOWzT@8hex8MN8ndsngls8p<{(pE_%%#nf z*$#p>T}A4iN4rEskc-s~lBiG1ta+pYRD_k4wpH=FQW1aN@@SXAk^O;FHX%haB?wq* z1To3hC}kwMltFFvQX?~o`CUs0auVlk%mrBnn;px`mR_85O&FeSd1Q2}i_-B+OUcd& zNtI;^E%{zn2e1F7R$ExXpSEJ^j1=&_)zl+9H?}CcFR_#R@f`&im4Q$5y?UC$e97gx z{Al0>wb?-dSjJ-EENIbN3b0GG0^qFM-fUm4V09^2fL(2(_@LMoa#1~ZkA=u_=W0q^ zS{+f@eg6{O2}E{U+nZa;K2Ab@Buc&V(v1>rX*s*s{YKPi16E_S_xD}&lrVLM2M2Aq z3N&_59Iod#+I9=o4AJ{4;`*>B>SH#UGp;*m9&)sXxf?UgJ~}vX8Z&EFciismpw$i0 zBKh^O&bchgF>5%xe1nML+M4DKRo;m5#*{ZM$tx78Lo;;RjcIBj2c0g<11Ii1av$04 z_11M`L~S>_aa}jOjtUYDXDZf&OmscIuB8bZD1)9la%of!`3#OZ9H?srcsz0uh;8~XdsjtPT3a-v?#4k7OeJhg3jICaRRs_;nMUWYey zgUgVLJLSGY4IPVwb>Lw>M+GeCe$Q|n8Hst&yRK=&&{MAQB!nX9aS|Rwl6881@Tg;2 z$#r9>4_G5M&HXlNuQVFg@Ve7M*Hv{Vu8$9#c5kviv?u!5wHt6#ygoc|I+&$iw}$JO zg_6&(RiY^(KSUVG^&wmh^+J5i;EbWcu9N5=#w7`z7MhduMf zuH$O5d~NN;`}_XfwWf8)?@nR8X_;cq6mzC2WuniGlffLFGF?Ai;EvmDml~u>O|>Nj zJ3vx#z(@|-y##j`-q_pSXg}#j^|~4KVMh+qY)JUw3#717(7%5QaBZ-1>IeSV_eLwE zQM(dEq`_S`Q2kF>fu_Ax6Ti1s7TKU*8!1@XjZnjdf>=k%q4c!Rr3UgN%Am=6l|j=PCeji9)A@pzNuZ zluPD{<4jOtk}P7Pq|(cD&XTO+ut{n(nzXaTVU@MJG8=Db4N}4EJaPd!f3P4^QCS5= zjKLxLWI&-_E5(f|#UyKfG*nt)S*PTya7`r*Gc;0c1U(H2u|G!x86{>D;H(YGa8-aG zMr3)g`YbZ402l5O(=ezmr=;8?fQf8vLQ}_56k%Kj%C2WGX(k67_}kdD;n&WO3P39C zdaq++-+LQ&D=pN`=n{2ghv`TJ2xebN%@B)7iyT%JiRyC++tf=_PqSKighyeXs7Jb9 zqylSiP=tY&8c?eqVYAnCM>(UaY>(`|q8?+KZ>-6n z-&|YESc`q=PSb=FE#arRgeaY)5{@!b?f!i3HD~G96R}J4((jRIFrM&(_{?tHdR@bl!LS>fSX=d6}r>x}p0C)2-ZU2bD zgwLktaJeD%+F->(T2!b`I`Pm5o>*?qxze#8N1pe!M^&@ATBB4a@6<@huRY%WO;r0< ztvm;0H!wO{yN|U+!r-X_5`U3NcDw%NH)#A<{J*;Oj$?Rt}}xSGE5cF zdrPmZr=pT#steq$51@(%$f(fDd7=%{1LtCDLtPX5fpubg))6kQQvhmd^0zrq$@X>7 zIy*lAu!LR$uzZYG6;-xpqK{2L5u4H=rS#IW}JvG?PljgJe97gBP zv#pxhd_oGnAz;QmBZ5{mA412Da90M#CK+Gw*i*n`Oo+;w6FAZ68DGM+HGQC)$6Uw^ z-HkLu_9cz`|-z?fo`2gX6-Ly@gl8A=3xZoWHPgibD?ZFhOf;8>_Su0jYCg zu5LrSdPAwY8Jc3Y*yJ;+@mn(()X130X@V>65kNI$TKG@{6mv`!5!MF_@e}O8>3&-# zr>Y5RB`~72&@e*VGdGqXLaM~0wY5_^l5-yJrP8#9m;la%=dWY4Wa=IWj)GcI-kQ<|@xA?(^O9k|3VxK|1yeoXJ_`Utq$W>eU~jgZr? zyOP(H(@i|fI!HgXva;Vy9M1zVlnp=-hOIT^qPP&y2br6_dxQ_w214trZgOJKqaEeUa zXO8qoya3|2J`(QXX^70uj;$FnfaQbRgFbB78MKjIswg0Jk}3KwdLKx~P+MrRhCJZ> zq-dIx*kmF#aF%g%60{0iVsgO~*gyJP`Iv4&XwuczEy8&M-iYFSOEzVJn&5?)W6GJ3f6FFE}*#yvh3k( ziF#Z1CY&t_NEgqR0M3>K&K6%DERXRc9Vk! zz&c?lM+1b%3!HRxM`ZEz!zuEp%x?K63A({00OD+)yk=-n?qT-yE5#tnjGw7%-YFlu z=#D^(mj|+T{-PWO=_4VIlcgOiT0uX-YbDyvi|A7K`{_WGR+s(7O83t?BHq7Wqka^v|VZC`P6EuDwfo(J|K1W zWLYa}Y&*VI)s_{l>UObWK?y!B)-1lr0nRr;9Jkn#h5Ur_?RWqRL+N+3M-VZ3MJqjp zL$+*zGG<#=%*p3D;*2x2b=(c1klPu;VJKJekU&4I`M8h7yLHL{=1i?p=gadt~7@vriVb{w9dB6FibR;|R|j${~wT84G1j zv!x`)*yQ3>D@zj4=r7c;bp@iHT@&S_8`9|F7~cj!fn$t9%JKvZGs2uhr|(*Tdxvnk zwD5K~1i;(ngR$>h5g^UZ48QmgverdkoKz7&|{n& z{E{J^B)VpCt0&=RzJvoz1B8F%#-%yhIo%{ZH(Sp{=6ej~Y9 z(#eg9PJz4a2&~IOYMdg8WNC6ymS!i=DGTqjrS5hJtximNUAP6gZZuDjbc2FLQ^l3U zIt3Gwi9+%{Vb3~Q#;wo_ zwTMg8%xXEwLbtqSX?NX#5yQfLo30t?Q<8iPK?j-Xo0Z|tnp(|R^MpGWUMo99lPo7$ z`hw^U_e=4>v`exQh}TNGV6vyG1)8x(Lo`zIOS50T^zI24a`awRBMI{oLe)qTpv)$w zThOMcuxzTOM})jLXAh zzV=2Qf&??Q)N=&ZhhBen~LRGg)2n`CLJ4{Vd7Fg=#=!XmsWae7I) zN5N#X|Jk6-KBFkmAZxaPca{`qKA`y2%(~Ycg@M=e>dEX;P}G3Q}}#g+Pd zY_YneU!ln`P25~LJ)YtZ>y4F~e%TK7#b>}WMQMHySxCA>2>BQ6YRer-r zv8RydKU2^;AaRc?R+mCf0L@7G02sy1phMqNz&Chj;9Fi}whjeVk<^=Z6ZyI7qt;Pu z#=8RENCUh&APuU3M6ub(nv?~kfFP*cw98A-w?Gw8qe0cGTC$_`29+NTDK9#cfwVvc z09cJ^`*%%sGDLDyi;(>CXjxzz!Tv>}m|*u>7uU*7dE*Wo3dHJGb&@G3Suoc4qTG`R z%3&TIdGW(=G@GOjK#znWBF3Eet-ncf(WK|nX*22mJHC^ znsiwnz70Ns{nN|6+iKjGskZb=aNp(XGvd;FiN1`vu&ax)es~#QG0s{KWeBVbUs&nl1Sd+g|>@_@=!wFi^v3tx+nFML5g-sEVLKd z=yT;hq1cJpGoA_vjJzv(|BX;C&5p=nY&mQqfu0eata5#oteo5uDEoDr z*m-SH@{F9R>8!v2`FA{w8i)F+JXsgn64}~@@P@Lg$-ZX_WI?H>Z!!fV+msdwnhJMg zavhh?k1A76v?_XrvemL{srGcs$<887M5 z+*EuAFEk0>OOPQ@5F}2>nMsL$yi#Rp>3S`#0g|kfa=!}9){xT7vb#?C9`@2rM8)7% z6vBwu-h%%X&4Y+n$V-hvnMq{YvKxTFE4{~fS?rsA20wE?V!Znk^6ZXJa0-rQ!;Jb^ zg#43o)ksfQDpva|l02EHi}quf^p+GH-Dex5fUQR|yRoT>+85N4d?_(<(C!7SmJ~Ye zZnz(GLu4HE!>n3TsDQF7dzh6imljT?=$sRoG|pne1FH{fN%u5I8)_%jbOb-`g)BnTdzq; z6SK0Ang$FnRzZ6}Kd;&KnmV6z5^Wm<1tkl|gBB+XB~P_sK@7Ve z@}pJoO(xI~PofS0@5xT$8QfN--*f*w#li?kOE}Zptd|u&5j>G99pp?ZRG0jSBsE%sc=L?2 z&>}3^Ov;Kh?vubtMHagO3UmfipwlM~Na}xjO8UNnMXI=F^eLR8MvFk;StG>&Mkrxqq7NWe?IGnbVsA(R>>AIBJek`H z^*3$*vfrEtfLu%|GE+<8xw<^uT+HW&coa`LXwhDJabNw7I-Q}vOmGMm{UdR zGkx>nT@XB+d#Dy9OjMP1TuIk&pwNj&YDU;>iEL4KOOB$@D{R!*E9^=a#&vspquSS2 zYOMjFQEL+s@4c;!POHL`7P7a?d`an^;qt) zmFgTt4s8P|13fvKxG-x*L~tZG_!&Q2{B^T~Us2LF(fmE3eitimuuDc35~UXbRMx*Z zjIR$TZX6%JTDRhY%PNNVky0&HKIPEjjG@=1B&`>fp08G!Ds8CZ=zdyO!f=Umzp1mt z7*Lsk5VW^vwBV@kTLVNs3pXdSwFJ|fUm2rtNJx#u*W`N>THhUVCnm^|70>#2?B_U7 z<~L^Z`Kp%^1)PjRr-q`L>DUi*W1kw`x%d3x0{}6%!U--@@^OeNj8LGSVnuJ&3Qcus zx+TT%TyV6>`@})d0J>|j)NB+zQs@h{u=tT3 zx2pL@R#s_v6}m`rv47&tLzN6uiO(|SuZ+u+pXODg#D(Q58+DZ*3Rc=>idERw`rNL| z?JD~XP;_^*bD5Vri>=q-wPUX%eU_s+ACtMAL&UdTqjrfQfEp@AK(bO(x;0WNVEn$s zCtbMc#?FP@%=Xk07R&7^0L%)DSxNXL@=yK5e}nh&xL=GWgNiKISJr%GOdX-cW$yMg zD}%lFvavBnlXw$EK;Wiw#>O&NQELOWV+6I=EUx#s06EE?LAY3y(4tl=+ERM2$K9dU z7*87Q{TZ*E&febcCB_R2HkQS#S^g5Z9_p*B+*fObbIej0ik1p`6&@J%1E}o$LEV7V zwi(qnV65Y1NQq(9OtSslAQHl&qOGrsW!zXvUzqN?HVbt=t^8|yz>KelQ=YQbGh zMIEkFTpQqqY|<$=Nw(*;XbPJ9fR*$K*|A%dU*p&QR5g|q1w=Ds8)UKO!p{x*Vv!c^ zT)3l=kCW|A?kC=9jFfR-J`BSkap6jW&uKaV*Z?QT_^Hlq!w9%7P$6TRh^<~gx}DH5 zWExw!S#&N`WzfgRl*bLu`5_EEdJuPrbatGJYk(6|F2aqeVR~z1+uS7aq9EJgkvH`K zdIm#&r|Z8qn9hZi<`*idVjyCQh`g_6e&mhFR)l-zpYnIK`y?K{v*BbG!@=<|{hY?7 z=}w^ve>&kFVp(jrQIy7axErnisNZT2){nbc#ZIZgAQVer2}`Yy^;(ysS}N*CHO(5iFqU;+Sb$Ib z$;exQ)6t!JWG5?YPDyiXPZ$Z={*n6!h3afCCmUO4#!^HhL^eE!T?8boN`uS<#c!=_ zCCb^ZOhZ3_S!mXX&RejwLqLw!$V#$8m6n-KPfB=nx*_Ui6|X!L=FKq=WEFPQSJ229 z6`2~KUhx)J?o8f(lXkPwj`+&r{9rnR4)Zas44xYasmhy5t#xd)Gi*>zOBZddp;-n* zz#Xq2q7GTTJ}?Is8up6PETt`*&jmMIB1(&#`6x-+{tkT-1iDEz^j zUTP>TR8MH5f|?w+c;Drb$*7s(#i}0<0FB9LlZm)gLruhGMlf=4fMXnBM6(a#R7Vo6 ziUDeoU)r!_NtY`kw8Kj^m*JfpWn&#{Yxuk0UT;AQ8nWgd7U}c{HiZ|+JY4ln){^(A zK4vV@V>fSaDdW&JZI4#oBrGh8>Vb?^515UQ|`oy#n zjIP%woN}}ucL}$0bJf;ID6~34W0lUxg3_tb37~m!Bg2&f#q_53w2p>Su}nxuMNbcg zy&3!s>uq~x&km-&DL!=-k4(4kni{cI)Y)iZZMAlGb$X)|w1Is#2}f>xa&&?}if;t_ z<ot6A5JN{V#rUUSHVhi>o_*89LfszFF_xO2NkA;MzJ;!v=N^bx#n>p)ruyTqdS?i>56|_#BaUW)37)D;>%lIfJ?^ZDU z=-C1w6%PHNer=uT2FB^y+Nm%E&0+KYouemDA3uK#01GgIo^W1e#L>_^YBy{32>o*$ zJEQc<`NlcP(JHK05T(9<>G1W}sC`kZ3mcPfG=#r@c=*M&=Jk5dFk$*G7V`mK01gkY zt?Ac-Yz=coyfvHGd$1G^VY1CR9V;-u95KLkP`lQK6lf^)S`Garjhn)d`jImc`mffR z^V%3&dZ%WA#{Qiw1xdw#!YIld>O>>7f{+Q9bF&OpXYR?5mPmru^|u~F2D zO^cU^*B}w>F7cku*VfM299W)kR=^4{L+_O&(!h3?LI6clYL>!XLP>=LY)H0P4U=`5 zT~t9rQ#(s=eO6ZuuUGGwe{*;B1l?K4)WeUZ{NwFMEd z44CLZN`gMtMTqmN0kj$9`g5N2o={^<8;Z2_j3ufKx`@3}W)mh!^-}xZAX`?M`V>oB zr8@ye#brlD z8v*Bu6m}=Ow7#7Pt&uxdpPl|7o4jOBO8NvK@;ilXd99Q5{YV(>_vq zZ|G^Ng|Y;9-fimg^{qg4O4qm_3{bf~Q)Y#h<$WVttY;no7|rA?j=rYEp)y9$o*-RB9oMw`WQ8%u#w9{;?eJGTqn9cLlxos5W7ZbQY@&N(2aH$-bVs+BC`myjht+(Z zl%8TbAxrsOHEMUHPe)gs*osb+Q{vL(2~jMsmytq_Ogmz`x#)XictX?2_8NTE-B9S( zcBQG5OaTghZ~+dPoHl$kXBsc^A93H^Zr;M@`TPcszj$+QQ0b4d#^1V{O~e$8i6QIi zruDVERL)?1#Qf&ilIm%$m zsrV=2$-#aEs4Z#wlfu8H!%QEMxm%`<9qr+XSO#{v0-fNIpf2 z&RctLcQ1c|M+YzM9qBP`x3$@l9_Dtow|CgXT&KO!*)fTuz1!a1-qv>CFn42+xGIWU z>WzJ$d&97BR7BRW2~`91F*e&fTkTyQo2|{A*4F=lW3#o>%6Q$AW7BT!Zgorpy%240zyjjiv`$D`Si2h= z+huF6v$?aoCC0Vg*%jlux9x54ux{?{wYPa#_qICQ|0fRXHmt3!vh7HtDQFhi(d_K) zZFGp(TIHrT2a<|o^G<*X_QmGzc3C5L_cpi1{O#=Qwl{G8E)i#`aIGtq(qf*LFm-={ ze&%8;FiTap*zJIzLtE`#*n1_-Db7%@C`U^h(o1N2KeeYVQLzGVQp@9Hp(CXEq`(9>}|Jp7y@)QHV6X1 zpy;BAlFqjDgwE1QkdM<-$NdXQl^)bm36)2X0p8=awHViw@Bs*?F!FZoP>Aj9Zf@u#9O};P05?N_&x64i)f=JRIF0E}G_wB8nooya>F$L~r zD;{7SyAxQAGuH&U52g+~N=qC+vk}l^S_2)Xd16aU*4FCv>He%M<#$}z7t;aSqzs5x zn_)zb0M*U$Fh_X?<|uPRo31)zF8b7&^hbkKZ_YSzhP|P2YK^Rk@^1h`dg8>!so6WV zk;OT!!_n6359|x{1%s+l=q-6dMJ+UcuDh+RjrQ`5O6QMQ=$qSnJl-1{o0~M=xMvIW z@}cAQ+ycG4I3vnxY^C!}HX$2oR$O^r@IFVvq3MTVZz%n4%6n|!B)N-UK#uD4i(f!4 zqIXM|9ru@aJ1i@KBX4cBH+d9x_5jtX2Cll+iHG)cQ70Uc{V-kd04et>@quy%PZm9( zqo)#4%evW>g3=yL%ZZKvp8r=5!xj@5V)D(&9!8}_BOXRwkzDCW@(Iwd`YT2tF)ov9;e0L z6PL6tL!Z5bMBmj3*I0hTNyyJgf_=byc4Z&RB!91fR#y`KqY}dZ5(YjApX50Leg#JW za3v%Z{KND`*)hm+6STJB6e6|aoz_PcrMobNb$#a1=Ytg>DYjbC_1$Szju2ZF) z&Q)xDB8j$;%p3@NOAJ?UX2Mc(#GXfs) zdN?34kuMJ4Ua#tLBD_D97+TB?fsqOqYThIHMe=g#O1f8V%K0;^P6NL5g5ybKk#JWgI>L8Ax<|*V*<(fScJ$U^mQH~EFGi{mbGP15~_(_D+$#A;+7ruyr!%w=3=Cniy>S}Gt9+^ zBpi`GS<)E7N|#SVC-|4BKit`V$8ks(h$;_f zkNTZ*nKGlUWlqdny=g zikAYzfVe|7H9RjzmLuS9Y;0&peWg;@^2tdQ#|pMB-VV#|MtBu7%k;LdD6kkJZs0Ew zSk&4WVmsg}TuSJNIm34R0|;-ytYNAKTBBEeuh;oyd)$= zR&^*?)q!MHlR=eqoMPCNt#TBZ(WZ)duV8OS@5$cAyA2`?=|Wth`d{6oGSRB!Jw>Y) z7Ln?&auxJg%UW|cjkw0fb{W-%sN&`&oCn{@-7cfdEnVUBKHSxPLQS^!w6V)FztgG` z-0oZ3WrPc&i3@5HQ7fwlneoz`1YeXMB=0GrrzN-%p9jOLk7PTPh5Df5*w%MNbypOM zy_DZih%_J|)urc)D`D|NA-Ii}k2uwHnWk(}(7>;fABe>9xV^c%U2bl%OUABG$xdHR z&;t!Kl?sLc{8}bh?`mHO_MC*1kr&~op|jDkrVd~&*35xjZ;hS&Ezp`ckK9Mr$brkj z=HB*BXK%|oar*t58=cpz>A>pO&_+znYRkt@JowPTH?-XX&%5gRsegQuK+?X>TI=_9n)`AsHP*!CTvdfpzMnYf?(T3~JW79t~S;fWqi1>L%Zi zAo5Kbc^i&ihF0;;6e7+XjfaGHH;8-U6zo1&ZykLj zp_MF%eC8CC#I46^+%pez-f;?g)Yc8Bu==d~Y20U?`y z@6eoMuH?`(;p1Vz89#E?*8ul`7R@Kg{5Y9^H4BsZKLYrIU+)2?v$lT#xD32}BAId@ zHREs=4FLdrETitJsL!1B{SO*O|1ds$HmLW^4-O#f4=^$p_c_KnxyT>B52fX$q_m(B z-hTkpEWujJIFNxS#{&&viUEl{GO$x$N9$Vahw(bv)mlHiz+!{L^~38chyAyaJB1~& z^43pIR+{z0!OG$F!*#QF81&ZB$QC3oPir*mCZ%3Sb6e|HZ)I&|9gST8+cA z&iL?b!-a><*5TRKD|pz3haG&_84qxkOfk7(I@ZMkdkOW#Fsd_8$3VyUb`4sM!?hS( z$JQS<#fy2}JX}Dc2_~Y67-6UTjryQ<)^9cT+{PG*HNJI%@vT>=e@ySE-X$F6bIK4x zAv>Jo*ef9_T5o7d&W70G(Kh_;!owII#`G{goVD6G8W2FIp{cJRgK_N(bKUw9vwjG} z8y(I%t3;eM_D1dwSwPWbH_zdfeG7}enf;rJttzkzSC z@@Au5?&fF=LyKiRh6Gr{j_Cf*t1;y|BG1)MvWS!!-}+@n_ZaCLBUD?8FOu(=|vPZcPx@le#P8rt&tNX0{G6mw6- z+@}sYVmM$}ZhF`hO7)3K)xSlpp(%s^cV(vjTMuRzF3p9uJmQoOvnlJhOB0LIZ_Cmt zf^wsP%LoB)``Pn(=h5x?#?#wyRIT>gosEGB-=5zyNs8swybloQXaJ?DEO9dL1f%&z zG|FU2PE;0vN|fcX2UDiCiu?buHlAVy6gJ>B-hKMwft;Tqe1-N5u!aHEGk`5aQFA;T z2KdO|!~@07`(N-YysW@^^aIc7*9ZlIZZQ@J4-)m`M}VL;!j2)-(Lebra6WuhcaxgJ z`S@8NVEmHiM|n{EMdN(JS`<78Oc6e6me-o zH1rSN1a1sZa6zgOk?*;G>V-3`*N^X_*%WLM+)-i=`T&oym&hao>vIoGu)+-lgA%^!pY4zM$U+WKcdOw!%OPJOX|Z* z>cdN__$5{Rk}7^l6~Cm4UsA>JdxL%-((hOF`+|PCw=bzDFR3Rl^;UX`a{+6*3H4{0GAsCFp%qogGfO1t zi{Xnk(c%%jSR*Y0-PxRI?+gK~Q!NVp+MH|eI2faxV##qL=_|qjPoVtK3O~ZiKDH18 z>t=o4rY`7E%{b=>Ir9;I+Jn4z)nW?x=?pYi6hhm^(%o#nNm5UusZVZzD`A-od%fh^*KOjM%hNw--@b!K>toLf|a<4eJeEJ?N6(n%x{#>X(I5O9~7cjVl&+ z?cEwl!q}@?p(!m?+M7(vK1!}G1&>0`{ei4R4Re6Q98*nb39s+h>jNiNqaCJ|on`#Q ztx9v_XsJ}L#Zz{67gaPGSOu9SxV(ZJ@3E{)R<$;zSjzpxxtkc$!m*|V^E}B?m}P^qY)%VZ z>0EG4^sLLGZ28E(Wyb@{m_3f%v)x zNSV=z+lg*Ubk)&T_oGDTftRcWIc>ccoN_&|Cu#P(ddVf;AGko$ct=A3n$F~vGJ24a z1u0X{(`tNh;V3cd?4t6~Qf1&oJtIQjMxJTY=Ad}i&sF8UND3xDocv%%+A){V#G2h0 z4iesmY?L6jgL(>twF(}TZ#!wSi#D6rH6w;>sXs7n*?*mxzn&*t2%zmn_)u@B+7S_2 z1nJFzWDJ^+qD}t>&HLC!9U^P zXF2$%9Q+&yzh~E62!5Y~|H#3A;^04X@LxFi1-o_&f7Zg8$0FpL6iv zIQR{__6UN%q>Imw|Ak$948gzT;9qg@n;iTW2fxk1f46HP1pkAB|BHkFn*eh_jK72b z$-!T7@H=+x1qAOi3*YJw}aPSK>L*M)}4t|+~U*+J}XxhHv+56_#Y4*PP4G#VV&DS^oii6+c;I}#W zHyr#+nznC#lY@WF!S8VJZ#jT5`UryG<>2=?_>UaG;2cBnA2|4Z4*nAdu-NWF@CO{g znuCG)<_|geBU%yP{0Rqt#=)O+@E08XF)fU5{*(h=G~e)Q`Q|S;+)+Z4B4F`Wm!M8un!9U^PXK8hQ`*R%p z0tdgu!9S%X`|Zzj@QWP$G6%mxi}c%HLAF`}W^+@EmXk)Jn zWu*A#=h{Jsbep zjb!oev0)=wa`)JiTB#y-2!^EBj($r>bgoz+A8YbZ4@MY=` zUqh_*1N64uq=`nxc+w>L+BJM4DmgMzlcuCTBHuJ=BJ~|vq_Rxp9wtpecYB7XnT%YW;6w~7xrHI^M6rNf~RBGhC@!+d< z7U19~8uQPzp2#@1g8EjzN(P;2J(E$$pfjz<@>R0aOzTb{Csi3vy%9K%QL_q-vjx_D za=rCDaJ~wSv%s`o)6)}pdP+}k;prAVJ%gv)^z;~>9tC1$r5feFbvJMx1-(as^os&f z4`q~6G51rfPM`nxoUX22g{oQyVl4=ejQ|#@Sl28D;A)fkS7B0rYJ)% zLd_L5_Wf(Dn~sqeL4|wX)R?7C10Z_0n`*OPkdv*CmDRS7@fhi91LGt@3l6LG(xX33 z;KK=z%GxQ}guI-jBoOH#nN?&|_Z&}Z&A5~>)-<&M)}Oe305PkpiH!0Q8-OUKZ9@}< z*)$sR&D7=OmFpV$5xlqM>)4+F5Tb0WDw5%n=Vfyy?rZN>I13Vp9jRu)4&Y=OaVGc) z8Wu_^IsYKF-1`Tq<&$@*MQL8)D!muT+UT1*8W~uhhP{1Ur6EW8X%xGuc2`0{n)|bi z@)7NNK)F@{EPYDPK0U8SYipm;d#K)5{k63jLJPF&FrTvyOlY}I+(TNUydXRSWVDag z)m^=#WHyA&6RjejHw79~R4qjjctOf{&>T294hY9%7+{V-`2#PY7f6q+j@m1h+ThQx z&J*u}RscmjRs}$w_lA>xfBT^;hCDEnUp{S8d%tNJDzbIumNLU}0(bJK)>sbLU zMl;8liJ~m^cWvzsnm&1rhlHhHc~oZ#My94oZ<>5(GgIj;F)Fz~hbbEnm9Ijw!NU-N z?$Ke_jOnu6^X!xN3$VhdL(5`4f;R{w9I#*SAh|hlSaA2DB45d?O;rn!!&^v^9 z!6&C}L)l{7hnCAewuF<;2_i7o$bsqlaz2OOYuJ;|blXVRFxQZJ2;ZMjs?+&=1Uobo zJqDmO>Rl}C(=c1%v{$Ojbq7lvQ`!Wt?^e0Smss#m<$^a{ZI`&e zQHs<(EU3v)ANHMi>S{%0*GvF#H$4T!3!f3x`#{wClpA%6gWDWD;@~a^4>|aXgBKh; zkgYxQwbG6SWcu)G(Gcs@5`YSzaA8_+#*Vxd=!i~mHfos(`X zw3l6g5-z*tDpK44_Pd1R05FOKFhWO^2e{beQ&Tp7l^Eyqxqj+U(dX>QsP8+`0QME`lhS%D4Rsji4%mc$2hc%Z3etyo>zJlKs}R(<$|PAg zAP@D#^Sw#*XgK40M(8}DlG>&%GafjdRttrXoR9dE#e3wFfQXcyO+JE9O2HK)IwSco zYpl$^%;4mj(OR9M8aJB9nL%XB0vvSgpgB3^iqe^OCjzS>PeJ$N*1TJCEyaY-(j-3nP)9y3NL(~F3**~zzA=os;g!bov zazs9%8nv3`pOT=XeQ{)eh4yB?(o~Y22fB$w{fiDfoUa1wYdzPCz|b?AnXj3gUkBFB zr8#d_<-8eKp9WXAY=0-{-3iL=PG!qk?uOv~%}!-&xuVmEJ3*D#h!`M{G7t6C%iD+Y zbM?K0w+I+1ECLZQTQ4|Q;+4D=T-Aot9oVUf5Id1>3qA_o#g{~OMn4MP$FW564%TU+ zWT|y;R)0%H*W^P{Q#Y zthq#~H5cm>y(U18oJ<7HW~E0QIX$AT*eoluYE@T@PswoVdsrLadY#t~ zMRfzGjGPEK_F~BrbhHxKnaVhFp8LkD$h0Q(^krnNwloU)DAIeX!WEY7GRTIrqE>Vkd1VfPSVCr3t0vww&X}MOJmP(pL0&FS`4J`o#&ak zH;tuIsZ@KN^*tyH7ikr}`bpMk^1ad$673){0IHokI%rk^RAERb6VS?V)1C!DAOo!z zpv=$VAw&b9L37y|Mxe22sYMzGr@2M487g>7RBh2kX4;B!!X8?bm%~&fbZA|qjvK>O z4BtgTbBX~jxh#g0{{=?xgmwVMu-o%5kQFIVq)df-ABX{ha}J9b#G?Em3)G;;q-irl&e+K_9loa=Cv8RwT=NVQFo=V4ZdTPJIP<9H?B zddBhA-=r%5*E7TvHart5JX&FFFeIb$Gwjlg#EnMP-enDF>JiPi8v&_vZzE*hh~@L^ zJD`?c1%&{YEfl(JF=X*7WZ9IxjaEX-7G-Q%+&$7&<|4Y7vbD%rW#o5_C_o>w8Wt@L zj45L_TpCv7)*WNGCDe8WV2=HFg-7fqO8g{qS>iKsiNg|c6u=9t=1}q16L>L%1o$NM z&;(h|39_68vYc~vn%EOr)ZB4rke9R{7*QtQWxZ`!i4(<&!mZ;A?h{G`h9zE3sAhc* zb`Gobgw60?F{Yy(WHaRsFLBX1c)5Fl;f(C5<4tj2o1&5h+0&^%1$w7#pZLEO_KACe z`1@n`!bLurhZJW)e`6yQg&i}jHytPTF}`xlU%{4(w=@&GJXv2q;k(#{sp+S`qt@;sdov5yhJp;_7 z>niA#b}|ySLyJXQ>b4V^YnBlsTo0FvA>2VkER_T!sDF0Az3X`T+_{#;o02@|^9lij-_h+uUHW zAoZL7XI!dxy)`j!kMsZ(0@?2#D)J2}DD;GJw^*3sQu&PE>B_=pD+I4DnuiD(Y)RnT zzVajO)FvAMTO7H;mt)MGNJpB<)=+zVU+A*ohx;+Y?~ABlnDb0~TD~E1Spi zgih@>_l)Y6s~xA^h819!^If%Cp)DB5o7U%yg@%A}*2d(*QSs81#1RHdo+)!S>(ABk zFlOOkF1F6VALFT17_ybIV@O>2aUzEs);hl|xDIH2T?ML`kd|?Tsy^Q3Kr!oSAZ7#! z6lA5Qu%CB2^PQQf)&(3YylO-Dm=%NZkmHr(vs2igGTh?bF?0@cd|qZ>xW{mdy(NeI zlt`5e_ zD-6B1jlW#0uf13~{h+yn8MApw4yxKw%soRfH^Ess96=7@_kbG~V&vV4>b9 zEK#9PGYK|%m>TNd3o^1%u&Ih+QFN@MH&wK)D9w06R~HbeiD6f*eIqLb_m1)Gc~*&i z7_(QLZ&4OFXnu1A2aEdXL8rt0ndu(6SA$2Qju2c)m>OI~PfJ*#0nl?edEX)D)#dgc z_={cH;AnudaG=e;ld#e)x&HkqH}@zdqU{{_ZY=$cP*|5r#foJ@g z_YtMFnS0y(;-?ZF8F88lkuX1Sl+As*I1m(ZdEwmt^3a*WNQQ$& zbCrfXl$T<$i^U)KHQ$E9+&@HNrvVmL;9sc07fgjN8?$K&S>bgoZ#h8&5<2N-aE!Xh zz|8RcA?>i-lp(t-dInA$z8?p0^C_c&(tQ(FJ z9rwK{s(781W8oOeTDi=RVfZ?%z{t(OfhE8~42qK7*FTCUD%8^OE556mui?8+gEZt2 zr(TaRmqi)4FL|&LdFb5Y4dQUvmx8gr)|BR{?TFnmX3w)G4|jfEt#qd?xbRA>pvy2r zOVK#+QkTqSyiO+*c2Ch#=WDRfsDxleGli@uxhggIAvGgCpm9F02H8!i8w}s0SpLM6 z4d&`-eHYs?iU(8jm4>lYW;WR_P)eZ}-moh#8nnTVjfwR*ThXvW;{{wUrN_Q>@8&{H5`h8HhH}ds*3;L_PTgY+_J}+} zlLyrwH6?uJKLM&076X?#7KWTekR-In?)F5bAeHX~+hItc&VZA7;XSQo$5?F#)uM+_#k18!j` z+DMogxKt@lON_n=a<0dHShg`7i0Y#;eAJsE(;REbhVk_mmGibUPVBYBc5d0lM%3w< zq~NR4roqFjwK3ZDP7nU?EE^gmRG%wDjW8 z{WD{;qB%1eom$d2!@An~v?q4qB1G1uWPys`(Zc*FE}IosCqogJ@!iXc7C7o?W7sHm zQ@`t_9rzd`O~761B@R7>`JAFzc(I#6mISiy?si@L%erbta4T1d7m^QR+&AM+F>J7D zO=4qy-b9&%QJka_hKSd8+jReo%W}%D0Unfj<~eUf7ZPFa$hrak#yf1gcjx|{2eXI-t zj;s7;7ftT#9t6+^MBmTl3ef!@kP{{D?rm1UG!_w&(6Dz#q9&OCL{{pxIK~aiPCK~+ zn-q|p(CLHmknCR3#soul@AlGi=6FqSN4d?oZK*Zm}3SUWnHt ze%l5PWhU;CVx_bT$HVJ38Q%F5?7Io{UH{lm*%*2+XJgrEr%0SDc=kI+$EESV_FYDW zqK_&?FQ+{{fjYg;x%N=d7C~QlGE<+!IONNQ^EfvaU~PgSXF3abRM(DaiXE?vWl`GQ zelu;3>A((R8Rc_k?#*u!|BVt2%0Qnt3xT2S87m8kXqfZD*e|4=A9wfQq%&FN#q3?d zrvYxsWVI(Z{KCg+lCZEdGFta>wM2VTWzfIyYohG@D^5I*S`3I5ucf zVChKJoz|xq_Lp(ZgF+tIw$P;l?PaWwaeNJo6>4XI(y|Q|hJ9gat3Oi+VT(ODC5>apyO&A_!$L@#1 z9z;X8*bK5`GSe;XuA|BcXzr%*&bGp{@^Stn2BK$3cm$=B0fE^U5MO%BrCth=MeB4z zd<3%sJ(Y4uXY-7H7mL6pO&r!hbtZi30-htSTz0rQiLbGZC=>XCtwvEXUn_HqL!JG&JjH(#B_5?ZzVGwYKH}5~39@7MGBb=4 zDw|IY7firkWnSW#yy%|7lH&o&`G>T>a4iwnS;31)jzBW}^y?b?4>zhf@n@>`BD8yk9h6VopIlp;O0hDu>8acOZy_~`($v^nPKB*s&Ti=d@0aQ3!P4`+zNmk z8RY2FKv9x$Kc`JSB*aSCY-fVaoRPr^uuFc73k%pvSb_4Y0krQ?yaKUDi+5lvO&tHU z@RAIhhHURk}h+w)=eZS;nSX#uy}KH~Wz zlmK*-o=Cg58?|$}Zv!QPdPaB~0|46^7dXJ-hcE2h209^!&*JHa>axPAoMI@cL!%vd zgt8`A;~f?y1G0}-^`6quC0a;>yTvQ)Pqocc-o62VsfnY4h$HBeceva4?V>~^5yCG& zdWA~ zx1COE)Zj^cH9jPeeP06m53GYinE8WHCLNc4jIy3KmZi+fWyCDyp|}DPn}bA@;jk%< zG+b3IZ2iP78i24XkKxa@%yZ|eJn-kX%y{?OjPU1<%zf`>x#7=U`O5vDcm@948*;iT zLI0n~bpJsDjg#St5g)J!fZ#zA%^0hu0=`c<=fk?9Jj2`WwcC9ph8K2ya>Hs?Zi zRPhRk8QXO63rN)8Z+6NHYEF5OFXxnx#f@)Jnh>Yx{3rHC4yXbwc)RP6nLx%u>~q>f z6D4THcj(h7`!ULz`5Bf*dNUxDzNPjYC;R&Po$WioJi}x_N(v@{(){)?`5~Gu#3J)h zjD6_Naq@bQBT(7DVevl7QQ@EpsfTQ>$*8Q>NUv6$Q)oMhj5&QYQbocMn5iurc2!G`$p%vP!Ul`x5lSap ztk2vN@|~ZO@B9VZz5_qU>~0TlPuUcX589}zN;EjL_1-_z9U!OK5fY7PjWz3k!)bJc zaU)bNxWO*EaJU&(in(rkkrx)(rC z?}#Ryvm)VTNFI*2|4r=1n?_(o=#V4#oOi~?jBgO{*omKb)SYK&5Q*%b;`e9lNYTdr z5!(kg(49LTMpoGEt*;;HW#f+4*T*|EtgLv0jk)UrtSW=H(w@YB z#l8BxLMYnleh#1AqGo7W4bnyq5%){B0zU=u&|?%i?ktlPyp```A&zjwzYKp?!|xZ?=3 z{Q+5$xD)7r82$$I7daICD@q=sIz)NKkJRM&#*LRArS=J=x+msF$ujplrk8ypUKlc< z^T_ZXHZ3{0s0CXeafO_4X775Zi9MxJ-+oA{Yxcg^)08IXCu*)Z4#f+zW*v_9}?6lBnio;J^*3jZUBYgpvx(nH-VXo zd}!=4GZdLGujWw53g2+FKJ@>@bqR}r?fV(AER7=LRhBRV1a2>ege{L70WNuCetnkn zE9VCt46ZPs-sT87sJyxn$^tj=&HY@NH;}W3n1m1S!}^@#DxaW^4OZC1JEkF?&>9^v zZh<-SAPFYebOZGp+EU^k&>YfeI0xcm-lyWYgcT0u*vrVA?ugHF-X3l)3~eGx;uOx@ z29HKGl0NuRmY}3r5%5ckeMYbBqS}CE>UO?>-nV7PlV& zU74W)VdW7ofjSdqb-C7j_14j$DFU8^5n~cB(C!;%zgV*HYik zKDL^LaCoBB67C)hrS=vseQYbPTfA}c22F6pYHerfGA7rVZ*eZOEOpfZB!n0?i8N&J52TWD^Y9b~Y6F zQNhk_G-&Rko%9^9f(^2no}*F_h9X2;N?r#$*kIDb%7NoaldXA)Y>i#i-T^V|CL1t_ zKvY~ySmu7}aZgz?D5P>nF#crMa{G20yGkxb|4ppUhohR0j@I_w)h z3MII$;aiwox&NVd|ak* zY)uRwmt(~P9V`8Pf218-2%L(H*d8?~lrf#WD`{}1+*mz@k3_;xMu{7Qw`75AhjVFs zU@7e#rcjd$1b(ABiq}gyuklP7832x{G3e3?Fm_+0H7mfv%t>y}-(hbx)$d6y$NRt? zr<`NY(y~>XY11Y!6H4S+oK_*^(E|_duoJeIAWCJXT$=Y#Cg>-c;K>Y2P6E6FQi4?Z z+KncK?$^#Vt(b~m)^$0l(I|yP{3CHKW2?6u|3`w`gpp<#?4(Ne^ds4nNV)L&Q1PLt z#bjydKgnSGuWrG9Wa|wQ4rP6Vt`Me?PioLpF2~QS0Pq<0KR}#w8WI^iWKy&-QHD%B z4+P6^j?#1z1*mq(e8Yee=3ycnVHoUE@u1Fd`7+6~5YNRLdhzBoFrX2_$~b=~7DNj{ z4XfOYta7ngDBvUo+yIZ+a}-Gp8^&&Cb_i=E*DK+;xaXuqQ$qbZZ26qJou_QlIDusm zKqyFWEcX!3E|SwUhL|c0-*s5zOYZ_GgTyV29a{egUl1|emlMv1Om{tXg1vyY50OqH}rrt41x=5>T65?x% z1y+-XfQ<%m2?zPOG=1bpB`Q?gh$1oeXj|7SDA6m3ys?f|hz@N2?nV#({?cQtOBMu1 zoYK?))kACOq;hCxYGvtq7z@`YWg~TMp$)D*y)H8WhLCV%UfM`aNs_Rixvba%im%su z!PYXR1cfU`o7JvCcWU~yxgFtR@u%z(7=thRnrFlj5zcNV^+e(iA0&6FRcloRQ-W%@wgFZ<_H~SCQ(!qsiONXFj7^*p@1({31>XviAvb#2~SnRo}o9V zo?J`W$H@PZd&kDverSv$In|r4y#`TiHz@omEQA`##bVE#z31jK=g7s}rNA&PO0Nr9 z#3vw5Swy50t}Gn7T29GwM5D8`7FiRxUoIDp6k?oLkb#a7jX)`pv`R_~P$k2)Q5d3A z;o1FZ}hbrO=cIJ9?w`Hw@VpQ#Z!d@CXJjikK-&kO>NSXRtzA80A<^c zJZ|zClQYLg$!ldly&~q|X`&S3=&G2q{kRND%AJ$?lL}@0|NbDqCy0P$A+Pav6pmV z7wq<%6~7rff=e_4y0>9x8wrQ@V!+Gpc4;jz~(CsR)af9aOtXH86*PykgC_vku zq!oLztYic&R;<(=WnMv6WrbP~FVKREK-`hI>f;~oM8G4SX?H@Qv;SxJv-ZV23pn?RZ`$idisnRAcs0fn~v zr|Dh3B)*#3m6x1mh1D24?y5pvvd-C7g+KnU7LMT4ykI@k{z#kfsH*-^?M#{W_RZ+# zs68OXnKGOt=e8Kn_N)`5RNSR7**TKxw;k8?@cr#yeVXqql8RCKd#=6%25zV8)5lZz zIO+#dH^XDRT#b~Q`6%sSTH$otoMIEA2?8SQIVD5>S0y6M$V@)xoSA-E9X+`{k-qr28SwC4>x| zfNdpa5o+h5I7u|=!VZhFX%W5r()9cz21bov;kf7r?6|L2p*+xxe@-xmC1aU9*V6CR zl}i{kp^W2K_=$Ih!R=QV=%7A>C=70dncwJ`QkzD&a#oCDoBHRah`%uV`3YeZQJM?$ z|8y>x1&e9mj;YWTQYNd4Hv-=v!mHd8v~fej2NNIdZ~4xI#@RHINqORpa{Ubo_h%9# zDneb?^c*_L%j~6GrPJz$(o}bTfFN2!HGrLK$VCihjaytTm8=R{zgScw-D$C8R`nA+ zrc(mVSftri;&zgbO#tB-57sP(XkiL5=$(*;F!#_@U-%5d4lK|JF#t$8il4)6R-0xc zMl#bIvf!p-P9r;{i{$TeW5A1?J&Mb#0BHylD$4J4kcaRnToqc?<9o+BdmGz-0K;)g zSHGDj#8GL;xKz+TD!g&#XtKc+(KY4&R(O+gei9DdpuSjJsS%U47QnvlVSUwCfCrkE zlAHe&qLp)rYUy~$QlGXRtd*y*O0gO_{yA@Mi>PsB%YN6?M`wliyxvD=&E-P3AfWqD zD+^sSsEXKM2Say2CP(gvrVX-&DW^8%qUsHahO=Bat^5&uWG202cbgj#mK_mjFC1Xv z5EubXa63>T>a_iw?U_;*Q^X=8#oDIRgcWlJzFf=e<)d1xs6lfosFsu>wz#C*Hd zUQoG-2+=G$E>^{_iIAd>N}@bLhHpf>1YiN(XBdNP2?4Cz9oCb_M8Zwl_Et~gjFEs^ z$?+vN4I1&LslAt@(ddGOQXW7p77>J~lRsWn_U)_6{@74%#tPCpAZ?O|7Gb%@V#`^KF8O4Az`Hvwxi(*z_I(Vd0^3XNQ>11l z{uEIQOmAX&;v_8EnD@2u0ZM(7U6d?R5RegU!W-jVW;iyVD(&umZgWckgOWPJV^Ms$ zdb+_p*|6brYG#f6Q|$f#Q^y!eV_DW>9T_c}Az}ucS-dGW?~c&ihfDQB(^dh9kQwsk zoQ_gNcN99OnQ7mBAp#jGsL^jRItu8HoEkBRv`3Zzukn^ugWD7(?-RndXVO+ZhD7+pQheJgW33O$SNnk0xLUk?gX5v%!~ zlJQ2&%g@zH6b0zeBvb%PML@M2L#)ENS$&QnUY_QgPw-~3c#)KX9=w%&&d&rJ``6BT z?MS=qIAxzb^O4)&xmSDM!(JrR;m>n+8aMOdaK@D2G!bna zt4ipB_&Mb$fozsMoK>PzAplCVxb8{{`&OoPJQ9{ELs+JY_YrYOnG}nPFfXCLnEs;x+K-@_Nx! z4t3h+oQ;yj;y84F&)I}(HMvQxPK{c9RbrAPs2Mg0ExI8hJX$PNjE$%JZ=Rip(G1HO zT3pXq(>_Qz_@?l&0zJN+mUYozRF#UGROuTquZ*o36?>FlB;j*WoUECA_%2J&FDTKl z;mofBk0L9FX}OL#Y*)TfF=k-~J_NN&24E^1j_7$|8}P{$m~PXyFld@nb>wAkYZ$N* zO_I@-lZ1jUFm`B6lK9Hj!kJr|Ugw6HU{IP}iv?wAvv<`&<#t<&^HQ2IOJ~Qn2N(D&6#8sp6h@0yL?1HL$abUcdpc zIZBhL?}%toA}oRd4`EZOw!}H-@uszQf_$620v(%@#CuKQYYmZ|x$+`kdWj*<AYw{O|ePM1UAdJz}TcRkem(v@N8XKWNF(g5_A zp0W28e&QD!iC37fU6iYqXEx`|yXZ7wUluiMLZ#w;y+8KV z6^5tiM~v+7eKh>=ilw2hZr467`=f)e{ZmNb_k^7&qd_&4i^YXX^pnDts8QR{WB#`H z!0|@1}V~EN<0ilQ=oX^-$lG|?x|72 zuP+?E#UU#g2@x4OJ|NAr*7T8b5OS3L)pK#D3Nt4sE8X)e^L{VoeHS44m%^$)3mPa% z8E(O_>@ZN5v)ygK(C9U3MKVTCwi)X=5+70{0Tmn~@;#z^N`$9C0|SLBR>zzLh`usr z5k?ZR$I5qPjJ_lDlJ7|5&N&(|q_Z3!YJ)122?nc_AX3omevQde>}epiEqb5Z51Mt< zv9J>>qvrdGXPCr43!39}36tghj8C^m0sGM)`@E9z-IRd0BxaK#$H>)%Y~L`%bZEyR zB<%fHi#H>Z5steIz(AJe490hf>LADcNZtOZWG`l}JT9F6OlJdyhcJwtn)9Jv(5vY4 z%23LUc0h)eOGAK(h5!;eCdHvpbsNZq8IS!@HOfQm)xzXLGDinC%u0t8AM__pi`BXO zWJ=thu3FGK@B-y~8?4k*UoPt*Ra%LRfu}(5n~?^D`Mirk5%mVJ+aq%)$EDph;a!AI znkW(uP?LY({elo;nt9eXe`pOkL!hI=WRMdq?s>49BbBS}a@p*TEU@D3Cii&03^~ey zbVe`?t%4Owg3G1Y{ZKudmYp2b>>NZx1J1udY#rESAM>r=F1wypmY$!rJBE*O6lm4Cak%2YvXL)d+mzmK!! z#SPwWt$h0xoI$Z|8R?eezPv$^hbxQxeDex@4Y=Q%`}@x|;uB&G=`VhjjZo>9F^*q? zYH@sY5JI0cN(ABFOf$O59hYI7t^nJqN3$+Ute;Y9eei2^a~ z4M}`PVkl*FD5s}@Lq&P$8pXXN1Ke=+Msif!?Fw=Ma@?42A$vTcDtZl3S!G+Cuo)mt zksI6=CuGktMr=mEr5LfXS%5*cre^w+%wB;E8*n=`zJBs>wRFD0-v5yf8HC71KmD@M z@0R)_49mn3r!ix;M!|v{0q73oymZ%<=KgS6N-9~s3Jn63d7h0dVHxOT65WXL}<j-_6a`c6`Bm@S67Rg@?_}vb8NoYeSG}{rt0w2dk7P3#7g5G)eCL0twucfnHlm%L zGJ9)Q+b@?cRw27!&vLrT^Y}Pn-vWKJm$0?c?dP~SVTVQ%C7knwg1w`QqX;O$h&`fG zkK$y+_SEGgplG5{-o1)0*hhL626;gOdRA^oyXrPvHt8^M@6c1Df|`xg8WoP~h>iG% zPUgw?8oENk;OJFeiXJ&IIDSuH$P_eeB7|YH&2mbyY;@%`3yeVjT>|cyCw968J6u0U zEmAlL5F~<-w{th|FwI(qyw>S-20I9AcAmvh=FL{A7`TICH53ZQFlBhg^%2o79%T60 z)QEG=KbF8@%T~h*nvIR>?L-*iXrqVBQ^~74W)Wusfd1d;nV1-{8ZOw$I5_VG=xMGP75{_q2P%=Y`D>kg5u$jKd_pLOD0G^$t2SHJ8Q+5jND$*d4>dJlE2=_#21V*{ z@P+(#o)nKS*acrKSrilzYhpA%C5^VNSw={vyy$tB>Gj--%4nrzdGkQoF~u-=82CUl z=4lB8EGmJ}r1}HzaXTA0`vB16wTNNnFK|> z7r7^}sXgJ>G5XR*Sk&vZoB&<^PbG=A*2g?COJ^$(VOCqoXFSpblK-S(1LD8u(QfAK zbRj=dY-l$uKTz(-pZrP}zmsh=eN23<{;kg#$Ez8?!1S-6=o`|HqunK`kWtjXD@7GC zjwcgVm$FN$p>BAOIXyJ)P- zWuh4cm6{?%FwdA#U?~`*T?{I6fe-p5h6MtbP8cKJp8UMo{5lCzvfn%`ylL5flir&I z#hYN(-0!e^3sX?E#5Jx=x~FBy`?Vfk|-!TzFIcC9_qI0-+wi z77VYbW;%@v_BN20k5{yhB+_qln`FuIRiqJ`P^EHv8^1t#G9XbZg_Z!=OavdaljGsT zC9MXj=y2d7=`BbilFUdyPkf$8D|d>z#J>ttpUp#g2_2QQ=efLn2LC~g)Z-87G-4CF zodp@K-#58&$G5T{I*FF&8NZLi@9cRXFQKJx_>G(`qtLvCalM&XqNdT~jPMMTzohaK z8Pz|{yIN1*)Vol-_(n^kJesBdvPAOhHA*X3L|v8z2`q(^P+jx>o$`bTm@oE;XN=Im z=tjrBn3;I;^BIuA>N{;_3b^*I$tOYTxEq7{Im|`&d`>qK<6FiD*~FG*dJHy4=Dt{*cR?X!I$G ze>Cp&1~Gx*F-v9e*H-Q4)mKZ7)>H&Sf2$wVOJ389fvc)4W!C116Zz$yII1+_n zTHnrTE+d9z!8pGA`uZ2LuHgXfWNn0djKC==1dsr)KI|l;|7>ZQ!)M6YR)E_RoL9^! zU{2RG!B}7afMWm5#QllY`CA0>1# zZLsy~TmOnl?wNct7WFSmG2UOn`4LhoKg)2k6vbrK=FvvU=1(|VX$0AXTPRt=FGsuA zhy)K&C9m?nf#oLr!7lYH!h;8W^;Ev4BU>_OC$!HLDVJ-H0)EH2wIAjkumPXceQEoy z1cD@K=9|AOh~C;MbW%uad1Kn>(5PF&HoR6O)Swpe`T_<{34 zm~V=c`HlqJRshyDh_eKDU&5|UJ%pF$rl?OmcM%yLG1T=#-4*{k11RXr2J`8}9vK)83CS*N$j| zPFU$AUn@B_cBy$%B^Iir!eSwU=ZgIQ#50!W>YA#Q^ZVJTD)VimJVX@Ti`bT|0e|zq zK!BJFS~QDr3;G+0wyL*Q%gZWne${VMJtp+^C;=KE zlADdVQ=3h6UPQ@ADERn|RPTi$Vgdhv-bcOOXvB^}uHh@9>8xOX23%z~jV5S?!u}EW zv$zN*NCrRV2@#yX-?&;~0yOe!DIRyRPlz_(?BEklo$E^xDx#0+Rcjw+ zNXRMr@0x=dMMv{2V}F<`jH`=@xX%}XwsS?rX*`P9TFB?tC~stFr4f=KGyCPJ#OQ>n z$aZe$o*?C^3@GhnLm3k~yX17eMhDGaV{_S z5cQ1xk;;2it2d71M*u}Yy1x?=>nPKOy$*m`KF!TrUg&SBnRc^+zhz2n4V&d5ms6+N zvmiWSN4asw$>47?Y3~{^>&QDcdIC0f@fm!xPEj|!e!AlI{j+4{aeh?qe0t%E55imD zYHuCG0liPF?YLn7oKaL{-77}@{g<}dDS7kn}K(E`c#CVt05t=Cka_uAp_QqX)k{#TXqfNr! z+aD9ZxVzEw+HFXFUx@h(DMA)cxo*w?{fB^bq5@*qjFa~yCR-`1`I#_brfchIB3(ar zj``(M1)owU5?2=Dta?XN6|+(x|E-&cpV6d zG8JF5$mXoxEAB-n!PJ{P?HWCpP;e1OWqw9tu{+8WT}&|3fsA+_#I;7(F`W|uJ^S1# zNc*&sBZDc&RNe-W19?rzAMG(ITPJ(s$2^#<*j6)5vx|(4r>qEDwgU1h0eZpb1#5UL z?!NNTkSDj>nfy?e!N&bn4D@rqD~KcEfc~9VJxmo%Bi_17u)ey7T(dm2So62R+ol;F3pdL)>qIJN5uZlY z8NEicMN1~uBHQ|u&7zHOd260Wn=srLt&^gd<=)m-GMna`ak`a9K^C6) zKiDiyF3?zE(=sDDsLp;HPp;sGWTyG#id;rE99I^Lu@IX|QM#r5ClN`ez#$cBf`ZD$ z?T26-$?!O?-?(Ah_2cUmH)cPiXQCm)c7I3 z_0`miWqH%Y2(ZCb$Vb5uabUku3nxg$eNE-%-hbhkO<7ilUX|#p&MN5DqABc|Hjzs@ zJ&u!(h{1^Zt^LJY>T?;lR!JR?fLxyz0>hPBCtWevi$L8!k27fgE1m#DAub{|5i0ic z>%=@Kq(BPYvkW#$p`bp$iKyo!)1n^p?dG$$^_CnQLPup<^^LcMAwuH0?gtnRBq4q5)?QWYUqYb}dqsVpC}c~s9J4$3KTsPSxa z!OlaWq`$sJudzkK;)XXSNuL1I43t4bWf7z85a%LAPqXRnO~eByiyL!MogSe)PcLXxLb;E zKTCf8^BRRQ+bMi17QSlel!MWSBFKvWuwYdzLEZ`#e~zcX%Hx^qs7Rp0x*mn7U>!J* zza_#iO|sb;`IVvcOKb^Qkc`s0cpHhzQp}bsRccZaWkiNjQWqtj^6F0`;)>9pC8j7w zR0>zl00+>8*Ln^{Q92Q_5PHBJV7jOdCXNGM+%4qpOuqJzGeakPM4kTyF+P9kN#Xli zqV1e9CT1tSg@K7XMPXaLXv6B*c8Y<{RGbbB9bG6@`3r-v%%ahJrNWj=DE15Q2L>Lj zT7&Q0R=c&_I#5pl^yD}*3%^R=#lP_Er@t^!UzkNf@$WS6uQFSRr&L)uyRI;U$Jn6( zw+HW6!WHb?_6x7j!3EH$J0jdGVU94Ltm*>-o2tjJ;@M3DA!?J!SuL+=&#j$4V$lf4A?$Raw&398H+R%`!%PrT2W z*8Z2xAR5@ZR(Az%2;W5-c`}WdA^0+%Gi090fbs7q!S{$rgO>r<*H5pW+m8w_iGND^ z#!UdYe5~;Z$_!PDk$JTRQ5=^Hg{m)BXt>pwb9Ft9I|E`q22E^rblg1k)MjHk%r=5D60en(V! z^i-h;#(xxc;D(Mnhx2jF3T}8iOR)xv#Zlx=7=|`#by(|H%N?<^$hHe1oX6(~pg+&T zsADax&e*&m@Q|k^x+$(k-+_ z+Ell6(8_&(>mc7cb}>YeXHC*kke}$Dr5Eyn)oFD)U*W?;%jsALiPhKogHajO0CnF8 zJge6qVKZQ$^A3}fZ4S>>0pB9`D@rhkQ)_oIpY?02bC4V!Mz+;SI+lZXzd~~Z45+K} z^r0f1pkwthtLS(R^Pq~b?Zd;O#ad8K2IV*{#)v^}`K@1nZFwztstTX8P^|!tAECY? zg1H+#3kh*>G>JGKn7pG1?;O8Xs9L5~S;}4lBN~rdf6I6NZlyDUu9fG}s0Gt1ZT)?y z#^7(u;bD(peo>St8~Adkb%~9i;9xAVf)i%v{zUcZKS*qP6Wz&=c|0I>{|DapEes#6 z1WeFL7@r=&+;Eu1H|#00@|f6KEa>CVpO;Gq`vr1g&p6rfD)01Vt$VM8TaVsPO#-u;@kfzLTDY`OhA`U*5wR zbPXT53-)JVH=sAd{0iL@^$PT-qvA=;2y_BQ@dHgUh^_JthJ3wZ)x@ZBn&)-2R9 zG@3BLc6NXoj&{dYeD4vD%NDsKr!T=dq761Oph;dA2vpCZilV+#n3@A&J|hI4C&DC0 zO0A~iUPvu3GviP8xy;;Q z+PBd)&Dz}Dv;-nt;YjAv$|K;^14KHC$trSFC3tB+K|4BJ0{kIzQYzj+f@P-DIL}eS zPS3F!n=;AqGLB`zRJRzUD_Nk*2<*I}xq=HLMtGOyYmGazjCuBZBr0c4GOq8I2FcB_G!p~ zEcs-7X3 z$`212g#f4|!ft?}`QqqIN17q7o-&Vs%YdqTQOCw?qc}S}-0Auj?s}r`QBlCGMB1UwJ#AXQzSeU$T9!cd~%s?jT}fj{;=hhQIxleIJ!@ zW-47s(F}$2pzaZw;^oMU-4?w$E%xC z>Q&&oZ8#PM77fN0RbLj4o79i-WaY1yZrk%{djri)n+QM8&$|GuMV(LE|eE( zlb)vZ9$8;CMKvLY=}i(9ok;j1Her-i7RFw~H_sXJG3u{FZu|fM(3Y6c5o=NLxDES->)X&>I?nSRpIQ z!OIXn7BN)jEL<$er_~)dY_6%`JK?BDn5<~%29D`9H1QF=)+?6%`TBZdLZYfAGh1Kp zwH5h?#2}lqc8|}~Nd+bhBLTHnL|}7ISPm!X#GSGben&*&L&_Xcho*kvnM+gf*D68= z)LSve*M?;qH-=@qa3_kOgLX{)QuvJkR?r305!c3!d*WyQg|U-+>c+bez+$wo&xrQG zioj2P5|5FnL3u9zknt5<%oF~kLe=nLdWL(tD<&-#w7}OF;vF>`fue+IID;vNRkY-^ zh3_w_8T&t09~c!)4#~xlv?&LzlL4a)WVL<;N9#9?6ywJT0~D#Ql?P4JmTJ71z}_WZ zbOgb1lV$w_UEoU6{e*%qU<_zUz3!o5C(x{W37S+4hK@^DVya+nuORD1q#fwf@cd0| z$L_X6g~3Zao5j~85I~eYUJfestrLQgI*x}ju~(5asJ zl)<2!jKYmnUc5<^iabUVWf2sqQHn?*N43g<$UT9}sAaVZHgu8G*NxriRh!uE5=Uo8 zB|_1WZ`@)!ByzP%G;8alQymsLyWOJP*NJcj14dv69qtkxe6H)JY_(Mnd3Gln+&kNe z75o@ZL^vvVSacbpDBZ;R@&HAg`~zB_<^7{93cmMMsyJ_ojq)Qpn7o2p-9{bg&&osb zUPM7(-C_d~?}SwfDSo`jjgk=@0!!d}W4AieR9nmk=TeFe4saR;8#$annICvLw06$w za}187x!m|C47h2mU+C5+8W;5>2#mSD9y2@}M(|g`^vA-VwG1OkD2nK2A9>jE{cvLg zPP3g+Uk}6-2Lg_e!K}jygn^sxjKw${v-w~;bWho_!YFZ%;D+{{Z|u~*pjvG+cH~^J zZ+$6KXn&(w-NW=SO^P^~N3DqWH-ey^3?>LPbfJ!!rEBiPhzvN*%SjxPuTJuea=th! zB><^DjhiTSambn5bu|oWr6>$8VHPCET}F!+?nRZJWEwXt>!nqff={*%Mw_j%Wszeqy;W0K>f;}!Y z&3%1P+ahlypNiUaDiP;MGZnSzTBI*O?7w9{YTNSuxFNA&T2JEIFDO2Nlv5J!>vDOku9x{HLC5SuL5I!(jsz?_u8LV(~gmX&STc-PdLH4T_C~7}DILH8yx+Z+E-*?ieAb(!PD~&K*4LFRixaU8b`r@ho62Y`+bEEf)x{ z90+2^8T_?1yyZLA(zSduqt4>vvrhA~4nDip{OlG!`(Mq^Ea~CfR8Ckqu6 zK?8$vQ(uBFL#c*v)b70lq6lgd1ul5+;(RAJrQ zKtXLLDN+ZpW?@tK9}Dewk-Eqp6?T_$Kj6pG<_x{BGqf@lLZ)L_KV+7~69j}=yT@-upQ!tY{H^4j1mkMA3wiAd zso-~%Q0XvPWqbl^c&(#+v+f@6m(w&Ji5O63^?~}~T?oT=lm+OZ)!sU|c3b(Z{1tpSMUlA>}NDJMa?h%^&8UTjwMx?O5e;bL;K)b&}ehyX84!4C=L0r;X6A!k5IDMKFQ*QDDkuP>`dYxp#oW1#*WOa|>zH zPRD^#p4wEeWp#|~Pr=0(P#)rd<=H!+MrZgH7%>G%q48yx_Y*w=m}K2^~*Q- zXSrkshQZ2~OF4lL-E)}2@AMQt-+2cU^iVhW+;RHnFoC7;Rea%>{Gj+HZ{a^EIdae4 z)ID_E@%s8~a5!{ioersg`T7(sJrph7vOMLuO$m_SgMPs`x_v1PQ>~Z1L%$vI`@h65 za2QwAueGzW(aL3S7_~hSJHB|Qh3@6yB*=5iarrVnTwgzjpVLl{dd2z+ov#(>^srSKJ9Kf98|iF);>bBt~6dAMpmCIqn${>1eVjTUh!0qW1a4 zVk~R0u=tcLRRbR_tV%HhDh3~`>cfQAFP`;w{IJ&)%idM?wV7__x71SrR@*y1#~1zLHNYBpXtBG>fSJ%7?o?!uGY=;ws7D4BX=DeJReRD47+#RDu#xt-X zz{GmSo@sXj8)pB(!R7YSx$L_4?kpYq;J|kd7F)-zz1qzZu_CDTMW;ZYfQ40|Y{*!L z{qpS~X|-T~vfO9z|1(%gv<@EO`K2bkA9}F&>D$1gdBgAeG)}2%bk|kQb~=wbv|V(b z(fl5x&jJk#R*gQiheNLPMVb)4lyjecH^nb(PkTsH$#df)8z~3K{>NSXv$4TP;X4}* zJ`UaYM!mkPdbv+jvPz`Ku$(s@IPTNZV@i~d9rtbZq0@ibVQ;B9&)It^r?Cy^O!o~u z$4aB|=lRZaI?CR#H-=M*Gw9s%hyE5>2~!wJpb`2+KG<*B8}yq1Uf}{oz06v}Y0chu zo^;-JesrF4LIWPB>+5s!3xO?@!GYg_jd70>j_?v~lP{!Aed^9Rn)AGFth@z-w&|do z3wl9Nbv`jktN2!o)*-YT;FH%Rn3wy)U+~cmRM7oY5ASE@TidjhsQvZkA(Buma^Wh^ zLYBI(m%>!y5+#0BezOFiAcZ$5A#fz~>C}0(_l;UyE@u%yIYx?8w)nv$QzZnemfLby zl|BE{jfQw zJ1P=d3VXElRe+3c$U8yEqaMS`;t*JYX+wrlkfo#*a_uMRGZko;Rb=@vC=8bYV327& z$;G@Z<$%66GSnx=ezMBrvos{N2?6g}F0BjFQM)jSQFAS&xW%$z645&f+EF=$DCaBa zKbObDQ<*{?DmvW>*4Oi$5c}25v2U9`01SFM6GzSrEieW-j~bs2`(@s$aOdtAQLJGI z=A{`tCwGrh@lq>fxdVD{DDC`G;J5P*y*6TKpK)24P{8fCf&%u6s1;!dNNfj94O|bL zDTlfN?YU{(v@_ht*VlChgS4sRgpsMo1j^-OcLHxrs?D_y5_wLv&d63Bmh=P$eB_=~ zXPk6j!JR-{jvON-oms3Zbc`SYEh?jJLCFD@E6}*987HcdC)F07n3S7YI^=1MqJs3Z zZB=7o%Cl^&M}9_nmR8Wpqhs8i+*XhvkQOKZ(Fe2BkxPXvY%1NfySv*;Qr;4`CH6#L zf83qG?i4uA(hxtXQ*G|sGlmYv^V0n1*;-;Rg$d-&9LK|~Vuvs9UrOp!e!*?e)aWmT zUlJ|~rVWF5htmTcSp!ncJS}>Rjy;x~UVSb55^}GzV(eR}5qWU?cDGA&UT3<`P6p%jEKCB3&`*y1ydd8R^DkPJY){XH^@q#Z{YX6`m*P-rFirMu$#q zE$&{`5-J-9troOSxj?yYgd;3|@f4Ioeff-HkaB_M=8Gs8MHxz~#TBHzkABQCibx`_ zC@r7Cju}xRzg)WayZ3JQYMSx}tKv5S9C`4^u=k9aP%s@w#r|0$V~fJ7TG;_jMasdHp@CVWjdP3z`t+CQ%`tDOEUB(VEp)wr4-qVJ_+xxKyuLZX zwaqCPS!&JgLQbZ>cQRoN-fg1nk@Ty13Bq`Lz_Z``}-htSX9nM_g2j zDpyJsHCk2F`)JIIf{RK~r4*RqSv2N_Vem-8DXJSGxl=hxrp*#}9Ck051a544dd&Dm zmC$fc>ksH?agXW`1Yh8Ot3NXQk=?bX$I6}BJ!G7iHy`67J!e&Ccplx>eaD)-9O!%9=|(Er#}9^^hllh4B z6Ygzw7Yn@D;8$&eO-EeIjb3ycku2e7u{h+maa+-r0ajCp^LA^{-FP^(eFnTPU0&W^ zIvrqb>Be!kj_G`@fv+m)u$`{I@qxUcJ_x7$tWEkTZVtrVsGEMclQno z&7N+C^Snr>?sN8!{nqi{QcvrSep6;&fOMQAUjki8`6KY58G-An=NbK8c{}7B*uY3+!8lAELqp`RY`NHy33Rim{(fHJkq?1VWRg)!i)iT zV3_GC!nSTVD1$bm*#>8*Ns5Bs{=*JjOOGz%!vHw|tWJcz6c_^!55$zHJZRMW{wh#n z%(7ckn1HRLs3pJ9O0$+M^jAk!XBwRI`NEMvEDE<(U5>$KC7WMML7?(lVw*M*kK4Jj z+GFSH)>NzJw&HOMwk{0SFmhD`gVrp~W5g>)d>jNGaa()I7(I0_Tx|8<`2D|sbp*yj zo7&CS=U$S}h~Qo7hc)jikU4QXR^Zpi&2gRZ3{v5}wkQiEgj!Ff)(5+U;I55aPpnN*%!G zkW-Z%-r8+-%Uvz&Oy^!4eoz=3P7{D-uvyJ_b%koBUfH!&G2Xdi5=>eBi~W+EQHldK z5!`zL6Z@C_aXPE0s)!3Hrs3m00DM4;}ANC`(l@1wf(CU^BSu ziK|i{W(3>Vb=+*1eE)lV-JHGEzb!?dpb*PAiCOxl?fN=K`ca}w`Ug-tO ziDu`p1UQXq1u$>m9SBfYRO^wlnOlbBM2Cvg_eCqV`+S4YZYI#N=J0Bgsnt|xlN zakwZwaquy>)4!y#kYl23of}RcJ2#G&@;T$;F_ybor-z{?K;N8uWm|-t$_) z@4T#41vIhreYr~GSH}@iw1Et z6pq2n>b$Xk*dmQMQdo+Dnlb#!>E&I^MXULEGI|R&$Pt83-)a2?B3iXprZuDt{&AV(>(sXn4@-n?5=Q;ne2K3n>?g_BDZql9O;(xjz z+Tm&k*7|x#6X1E{8Yu?PhwJN48+$P-sr+8DtXE$s3tkm%ICma4DDz0pJXf}M_ z&~WE6RLwS9`2qE{Gu6s)RV&9gYvowR(-`x1PUQXMrY#j>;Z>~_ul#OXA|q!_s@0v` zthz?^s@4CA>RvH8Ao8N@t+PHtyfNjri?-IfI?+n<-@Y|FWGY>Py#th;RP?x>{4?5Dm| zqL63u40Y!bd+)!82XGKpMafENSzEEUI4TdyPtm!LfmlAWxdaN-j|=S>kq(pRYS>T9ozuL-`XsLA#O*pISBs^t)f ztu2D_ZcWoHYN2685F%P($4+*8zLl58^Ob!n`=;yGzX)~e$S44x)0EI7`4 zU07rAv+Y@9__^&_nYBc;BiWli851XHQ+$p9fjhl>TzUg@O+Z)|O1EV9?m0#^J{!^M z#A>xVFmD}8=lR{7Y8~WdeVoDS`PW(yYs>}Z6a?xGRm%J?Jvxu8A$A?Ong<(V~var zoTcWgVwl?5ARe+m$Y;_oV3x-STLs;|6kz{N+QDc3Gaf3vPwI%v6b*FcHv;%Zpbh8( z_(nRg)~rrG2!=z3f0gNW$Txrdd`QsA>+52K#mOBK>IAR@p{n&_vA4d?OALoKO~+zk zOTF9RFO-aILCJn5>?-XL8rLC-2eviDwjw?$Jq@c5_#xNSen&Q7292HR#?GLz-{tt_ zgV_)oB}&KLy09q?_G9@Wyr*yJfM`p%_u%1!`-Y)O&0L3MvZl+j)cRes@w(|176Ccx z>3Vm1cYv|Dp~^O7?SQxTvZRq-x|Y1RFbagoWTMG0VN22HEjr%}^gHlEIJRDw{p z!&SLSkPzpF?$@GXYgI*9UVWZg!$v^C$UJk6Fjq!D@c4-ncDaUrvoTPCPy&HPm>3bV5#-ags#YiwGgD^!?{}1Y9!SrpYw@XAJ$DhglRQ zu;C`hQPUIh?Bx&UMX5x(*Coz^~`(j*w z<=4?K!+Ryr>E+73>-?ioMT>#P<{Ed=C-_YK0?VONhpq`fW^44&5qu3 zi6e6ajXT&6{9r%-Kk>q4v4!O_sHJKpQ+)1BPCCQCyTpDo=7+uOanR~{`Z%%oy{ zI;cYgCk7(uHCfXTo`;v%be0(>3cl0NH}exS`~>x8?Ko?2jyF*{G*m&q9vumlaFrl) zOS|W8!_)u@!6>FN?k|Fp1a>ADjN?&AYY|e$d^vBx%ULY)rGeW7H`H%l)YRR@>H~QN z^pbG3FqXYxry^QR>pkh0f(bQPvm|QUTVYAkpdr+rDq>}#8%6WhBq z3!Jh!oHTHNFR5H)!k`)?2oj66&mRyefbXuL{|XMGVPrJ$V@(MIwZbnvuH{_bAPbDA zw9+OeZB)zaXl8;}0zn@jOZa`Uuy~jcf-BR3_hRHBsG51}Bsh&)M^TtgfvXf6RSFNn z%R;a$9eE_h09e5Y0m@xn$f$L6f%I!;r>=;(8dIf#Ir@oer;KDDksOy*wNH^OH>#NP zDxx{Ob1AFWmm}I3C7zF^D$h9*v>f;ntZx6*4-u597D%Fp_x~>h=5Jkk1yUw z;|QpuF!Ia+BX1r#o37~!{@hsm^_<+{lV6vnDECJD5EcDNL{oq$pMH#|xj?Jyb65xJ zp%@0xEWOYu6}Yp<=p%3(74#wA*2JYbr5c~(n#ENpzU#PR+{!s(BM15&+`m_XtShg1 z*%JHyo%`E&P0Rkw&6FKK99#6fzG*Zf-VqNke8iZTQi!xsJr8z!{1C71aTy)>oKpry ztHXMPAkpHc6E)p%MqY{Bn1Q?B8u1L13do_3Mlbt6fS24$Tn9^cFeGCJEQue&h*ODX z6WVDf#O#sGsY1A@)O3~kL88f#@&~W{++2T7eQYArgt!koS1mt7aCC6Ky?tALy1J*X?$gx~{VnKkqMq^8G5yU{YNW2l z@~Wrm(o=Qmsk-!3U3#i6Jyn;Us!Q*_x_Y3l9;&NAT^*^bP+g7Gm8xG4>qq~7Jvgv_ z71#fN{3BQYp_c2WCb2cBhz^HZ%9ShQ7!iE;E}B=j6NwzBqePh^*Iu{V5P1t1mNqYd zT5%^ulvPEhtm;zH24=Mar*GfB!zlL4!)^YX?A+d_keMBZj#+^p50atx_u8fOyhGsq z<=Q1CFaL(`1)ZK+MWogDfqwAvHu-;HG3rHhR?^)N@LkP~r72VB&fK|Jb7NKrFGhq{ zlqd={YHp%vy-A~PeInp&F%Tq^H$0{WWq{OJ$~{pxDZv@UcRXzbI4K(eVxNc5&EZa_ z5K_2AJsX5WBmb|aiPx|7U1_52OC}BWCHNg7YMY?U$r@Phti%33NY*Z)Yf~73Is4nC zTe#*`nrMgMP>+4Y0y}gkqR0DCit=4U@KoL~EPTFfd_e`)YJ86l3G~;NwHq)0cCa*S zXu+vR7$R=L#_nv%dFzqMuV6RyMK_#Oy5VwZ^-EoFc~ut(gHOvGq7!q76pb5TP;-=t zsurqt$#$$=PM6l&B`(+{5LUd8r))0gJ2iUh8%_39{j6oB-5je%9JB(M>2E510;T`W zAB$t#liNtn13E$$Uoh|!M|3%VL0Y0pq$iq46&uv0UUXq~(FK)7w`!$nuBtiaNTOF7 zMYO4|G&rhPEv=-!wD=B|nL8LQtzc;6ziw$IdTAwBFRkPTON&=2(Mu~ZmsV&8ZUWW& znblQ&=fAeVM5E)?3n{tbLYl~h#9JR%2Bbzd#?Tz#c&fxFChLU58gC*SzW1sl-pUfl`h1j;;!*H^&}B$iSw# zk0J!uS~kC%0s_r32c!QM@7%OA#G9=;vx!*LArhjq$^emBL)53i(rk{OP}JM~DddS-aYfkm|@k zb5fv-DU+^NV{v3+zg|M#+H5SSp?}2mvIDHbxBc_y?SxI z-lcb`ei^RGkpnPgCXf!&#BN5$P6DRtJRHkSJLSZ*V^44 zHMPB62*9klL&?{=1~z_`2u(`Z?j34`(#;1-zX`o__;J@>%9OM38R$zpJ5=i*Jtv(2 zp%FkJvkdz+^yeQZxfNKNq5xX86Cu$2x5yBHx?MoHX8rX-O}|fUHNtxp!(5~;j^-)J z*F9HZuVa_f;c^@`sV>7-vZ?&8$MwVL^2JL^sevvvcxi@IJ_P(drz>L972$M6N<}DK zdx;S&ScL%T>Nhb;-&j-jO_^@hy?TJ5Tu_-(sNJV7`o>_JbqGIltKagg?QC!Jup~5K zn@k{bt2ZW6A282BTCWf`*s*)5z{-(fDK;2*qVeEgx#`8`ZH{@oD9t)5RUPj3n1eI& zgrDB!aE+E@hZKWL#}n>5sS>8buacm}Zsr%0WPeSyx?mVWyzKRL;Nv+>@cQzlmVZsX+zT$gL&zR`hp`Tr8uU@6)S~7Qmiwu zN#!OgdTaKPR5$I04GdHYv%)=@0fj?#CVKV^6{VQRFON<4#z+;{z_3HJVazT&M-D7K z5mSh~arcLifkr|0o$F!%I-)2{w2krkX2D4~>omO#)s9X5z}9xuZw~oR5%pWrb_Ac- z9>5^OnA^z$|48Q!iGPEwcLFp@p|bGULc@Ff49{)Yw{CHO<|O@s!?atXY9?K6UXn6; z2IVBKEmFM!N`?+Mx?qNU#1-s^;b@7$0va~E(e7qlq2f%N2>HQiZzlk)UfSRT0!ZW;eVFV)pVGnekAD}s@Wc(jt{iBz1`+daD2@CrV%D( z*B6!?k9>lg>$THQJlHzc>opV58!TAQbZ|}Er|D5A=B~l-wN;X)oMS^C^t=%DwsK&Q z!|c~&yqtxdsBw`-Id1T)RfJ6AB$_U1!$;qOk$)3P4gif7&=+Y1Q9!+qwG53}*waF~ zPFQ#DF)R)wMyHyl67bd&n zBtgSKzRvF0g^`IYT;;!^`wg7y?C~wY3QL;_3lOgqnYjFo#~)@Y-Wl3!kj)8Fd(9cw zYL(aP)=`s)HBdvb(Gr>Nx_r^6e1BKV7ZI3Dga9yN`I3bKX^&!IQcg(J4#7K9RHDfY)pl=uATFrm}R7CL*TgCMH*lX`!p)rMH#O$>-hXOzOxPrw`MxUB-6 zZ#&U+_lhxMPkK!6{+!3Jb%|{}F)Xq_YXI2dtAWH+ulbUwW`(M9mRF=$KCpO99u%1b zH60ihI&*AXEw+nK)FgZ4Vp0TGRht{RKQHYT^cKmA49=6GR>q82!w&-*TTL54!q#n{ z?+8QpsI^-0Lk4oug|j5%|6#pii#SKXBtZ{YgBXP!|F(wu z3Fd*^l{{(Tf?=AyR8D9rTQ$xr46i~8!lKP{es2cf%heR84ymW)LU_?DPch60Q1%|* zlVBADFw0w8#0x4xOBgJ^Q5q6s|8E7S(eHnC2lsWGrZp zI8Sl7Q1i%cMt=#`*?nOh-4oW>&9DgUJoyu#W+UuH3X74*GZ6c6hwgJI+0(YuXHrfn z?jb5XR2i~Lm3r&A@P_eW6hE|ZY0;j5w<5Y7H}7_Z`CJbp2Ew6=;73+n2hIJxW`SxL zzMza7O*y*UVA)GT?_BZW81gzk4C&^BHUj;=gBb}bBd#2n1RsB7jK_LQ*?OeDx}^uk zutio~wHn}^V263J78R3ccRF#W@*_r%VKK|pO*Xc<*6x^;7a9s+SMWfSY6MCi;liF~ zL@vbrkVqF;osG7^V%3T;la}o=$&E-DLIP*3^k^E6wx}Z`_JJ0WL(h~rGU9;Ue^&qZ zpng5HNe2Ss0bn@6+=)E=^eU)NhR8zu!1y@!_x+czLP)?sec$7+{Oe*I(i&xX@>GH5fb?47LY@hl7DL7`TJMqrspy7G@0cdmD=rIF)YYYa*gTem>A6S{oXH=ry zY`&mBE&kem%Kp5<*B6gpy~1jr^6Fnar`H#+*z2p8qBRUG4eUxyHCbb=4$-yNBMfgv zV9W>@xwG^F%GDW?!y(Kt_8kIrdmpA^pUN?~wc&kl$mT~Tw&=Z(*l!imB3OBUvCd|% zP;0Z->|xEWcM3xqV<^~$T`T={y*YdaEVyZTdutfq6#-z5-(fAySp%o8H`UW2_2yu0 z*REXe+^2Yw9m;NG*k>6|SV2hXRc6~`**;S?<4e+JE`}<8 zCk9i-dX_X_859O8=)FW_{eV?}-`=-tZxPQv)M&yWVFkY;s3(RvhSuLgMbB_X`{%zg z>QEy*F_!|X{56~TKEn1THT!{npSdiywCjB=E+(;v&fvpqhFLY6y6_Qdgx8O*_nw+Z zJjR^Qsft<6{sEf>j6P%C2k5=01dJD4v0#b#xET5*c3!YXU$IB*`mdF%{0FwmF~b)| zO)*Yt?G5krCtsw*&a2uN-uf?)`YXJ7*FH=3e)QRpUf@3D{f1NUg?w&fjjW^A}O)KOo!R?x;&1W}UxNv47xTH+6(lK-R89b-^#pyUQlt!I=km^4W*i z_xOsRT#?~RdGwUWV@*Mh-?aDd;Qc4@{w6F|W{qck|}$$Kwyre}4Jv z%Z?V>7m@ULG#e@HpPr3Q$FS6=4=>-pe)H;WsT|N7A|M`;0+s*gw;w)M=Vfd}xx~9? zAAhbcu_M-gMTz4#Z#N7`6fKwgw@)wM|FbGT%PEPCws2M9SMQ(w^y|wvAHSkJFa7ev z^JniW0k69E>CO9>0O{XezR>e6*~hmZe}4J?`1#Mz-hbHG`iNKb?)k^#mv5fGePPy= zv9GV+{kHe)#S3W5sLB4_A?ocuV0jKI^S~4$27cg3e9O**xcF8eH%xo)0Y2~!yqbHOsm)B00bL1Ds$$A+FLs_xIaR54N|XLx2BZxAk;;8wzpj(~2^Xrwzw<=U{KY)!t6r zUe4B&~>Fa=r@xilu1Gh<~n58C0D*vaC1BXRB-EiPhhTldA;54Sf&t0ZIg&9x$W&ON6hH4i(C#4$4kNgvkPO%LB*v{~4f-s}UAwRI7PS%>$86i2yk7kf8A^Snggn z2E@6n@Onwh6_68Gu~54LL_*AAI0V>};ocMA_BX29{w6@+H*9~I?@auex&3vqI@bKy zpRgUUJ3b`r;*0Uh8RNB%-24LUz^J(SW!u{`x%tg1H@|>yexo&a<{^ZU9!xMH>8Wg# z*2MW?+!ayB76344_Z<%WqH5qD;IO@6;FrGh!GBvA_@x~9OaB8O_)Eh1mxsr&6p#Iv z`l#Pw>lejQUv6)|m7{)JIqG+O)E8{j&-`;hy5o8(asOEr>N}9bee?__|CliQH8%ed z2Y*&I`1f!o-!S;szVqIHUKspqIrta;dp>yR>x)AeeytWAEs9-wfma-|xi>&AULmP? zMWh0ge)V4+`U$MjS4V!r*XXNyg0;Rm{8d|{U;H=qU*X)otpD1T81@;D>)(Gu&!{LK zm^)u~KDle{^BeXl!Nux51BCHUNkhe})y~)2G<`%kofW6)_4f92IZe+ir|Bb~rnB`L z007lWDe>Hk za82lZ)q@6z-$KZ`d98|pCFZE+@5)Gkz?`+7?jdW2Fd&zP_4vp?5ZqZ+V|${p4Q)8P zEn?CRRtLzRaYl?BaPcZUC=A^=SZm!d+J7pd3f|T}Y+6;HAK%rz);{AQ+bf)=O!PFU z?CDeL>C>uDy9}0!vn<{;nzvVsUw^520F7DPcVJxADc|kIu<+!~Q8qdaF)*GZ9!0cF z@$O2NK5uA8eBcPo<*a2>G9L^u?Rv@(wz14YsC|-9gW^RsDN=4})NDowiM+R)ibQ4y zPLnLB#_>TljBkH(q$qc~ck_#Y>Acc|Y98P2F=jC*J=QYGuhgRyOx?RTUzTBdMctt% z)gOAj_au;X>)wq{(qPJBI6CS@H7!!^-MSEu-QEFB_w==Kbt;PN{N8-zG#`EGtc_zou2rV#tL8MRuf`bXea35qz zSWA^Ba#XY7XRlg^hrGL?T%FisA3CkI3MRXD(YtCROVZrzhSHf6ZHmT$4?@VF2u2wr z>uztKYg!WQ5O^hZB+gks@!C=(@}!z5=5|l~&m7O_N)YC~_CO`D9p?nf%Oq)b1wcNj z`E-fzdM9dV#JT%BzdOB-)Bn9Q*y(*YthpVx2ML3n!H&Z|VEPZkNA3^sVbEvqgW<3? z7_Qh$2R>qvjx!iPa@`*M55=G|mW(g>O!a<;l{Qv`cr}0n2BhsoaCVS77`DyV$&TaR zG}k+{^yG?qq1ef?2VnrQAWKR^r8Vs7FP)n;Mngi+-din{tu~@G>II#wYiG;JB)Vk2 z(o^A1nhY9X%}PSe9%|^Z8lxfEJ3DqQ6t*s6jlXyK;(gw8VzCjErBJMPNi;ixciOn3 z{@#$BFr>NSQKJ6-5W}J42i#tw{sAo-cxUuI>OaO(lITYLCqpmF-UM$PRu>m8W35=3 zOLo&*cUCKI^`mvG-r5pzs!2BVgYEXPs~wq@dR)u~aKLhMH(2(zFdk3D)9sh(cBujR@yR-P@?}~xnRHrI+zp^-Di$8rY224G1qxxoXmqL z{+Z^9N~#2xOguR{yyJzGcVmNFd09LsD_KDqAXxds%wjEB7(c-p1u+5WBt*Xou*>J+ z7%w@VeR%%*wRIi^)?yi7;gB#4K)A*MW$v1KOp8xGU^rX8O;k^X))W;OH`IlL;%eUL zT#ZRYS==*2t*&@XNQH=4o(((^lj{e&inr%qanYIVJ!xwy9x>MWDzC&a2p2*aLk>d@ zkm^g!X!y`Z%V|%Tz^Uk?v?vkTnLnJu2Q>BJT}N%4)CgF^vS77>-2lEr$ZWEvL17*I6}iNfL17)PWkEBv?Mome-NUc9A$K939aQny0BCP8@p zZ5R!6WdMI~P_Xb03KpR;I4+Z57F~zNi|~~~D}m^ihW%Vx$380XnaH-fT!j0P8^t3`h=2GEl9UT^1~G_wxL$ zn>WPH{f<}!nm{wj8Tr59g_|dt0POO}A8E&8!|N(ZS{g*-uYvZsb7 zWD1)^0iwuvdJ!oLz_jw3`%&LmN~^A2x$4^bs%z7#LxV!;`&NG21!fai`4`SL*Yii) zDSXS>o9k_%f8o{YW{v1P3)3K`XoH;Ff)R1XStP+2B-5PBM@Z#sh%tza^UUcFz9H-T z3tm0bgxLfh#{cFVq#cEDc@^)N7kNikIri{h)F1Y>hgeFdBNK^xg<9kQd~@s964}nK zC9v(3A$pJh;nngrBTmZv)wsTf#Zzm!HP(EGmowiW5C5(P%^uvU5gToL8l)LBUMSEJ z?_yQxs1cT?A~dFgGYX!>FP$pM6HhK5J8T*(=r07h#J!+%z@JTU zWClEb(zZ_ynV%S^tqtfWwP$PBVt?1nQ-pIw&GSMQj+SZI6AvBxBD=@gyUd*?1wuC%e1TL?n8R`_v)osyLgb;~| zI<{@R^gxXu73TbK)UDM5)`tZ}ITyKoI3RLQSqte6%Z4#@L{m$D0ZUlxp*MlrXTA&s zJ2{*|?GrZ@Azmj#S975SCj{=8Id1Sr|2GHg#Pfuf?<5&tVJ7@r$|1dBk*06|H|i~X z9;%${b;N{{VK5HU%un34No%Fv-53UNDqYlf$8;q#X5g6v#TpMaMN^!OIa+c4Mt|_Y zT#%W~p?&&F-6(9r?BW{^la%Y7vmxKDVz8HpS5`0{1A)x`qC5;o=g;|Z;|E)F0(m>z zf$9|K_=k+=9oz%*#O=ja(YI?a?vw;aLc5QIln7XQ2!UhG!}L6u;VT-A_Ao}-Exul2 zu{sj{9m1rrn#{N_w63;TmD#FHt?ZHd%AVKH>O)p0JtvX(*SGe8RI} zHxz3aW3kEgEK`wV!1YUCX(6+BCPf&d>`hGEDcTs!+*$v02pqw`!JqBzF(V`TDL>+(@Dy*EnJm1Fm7m_fxlINpZH`A{hz!K{h#IA&+zs) z`Sv$>`-gn{2fPKLd<{Z)U#Ry5zE9NqBm{cFw0b`HAMo5c%3sDK)HU8_W@^0f*9J*KjMH zb2E{?=8tIYNDN^?AT*ya*Upd53-U7Uy>Qq?sfTu2sf+R0<0PH4epks7N*@Ls<=KM+1oPcT|Qg}DsTy)RJ3R{@7BF z?IB5vxhFOG1ZYuFswcmT&rw~gE2^VwSP_+s^d8c_qk7~*W~B!KWRX1oK6bfl$B0W# zQVf)la|5gVFmYL+I&MFbdo9nVu+Ol3MReb!>uMRAGK0p40`r-mpG9Edp@mEyBD7pA z0OKxngEX~b8oaVzqlk>sj-~0L&lhCZVs$;h_}Y34xY;H!uT5Y>;bjKrL25+r#;nI$ z!76&on&0X;n9p0HIe|06h>HFa=RxM80J~dQX9jgc>tfLxHV}eyc|2r` zHop!ecE|w>b`Q^K;~KT-VT9obo!elKArZ0(cR%|4JM5F|je)8r&y#opU8r=xN*Inr z) zFwLxGd=kOWJb|AqfS>#tey&3-eFCLVqU&M}cwHf@$nqqGBmFt%KNa~$oAX1qcq24V zlKVh~+CumR<2n30w}L6q5_n9%z`xuI;2d}Y9f98&!24uAwnh=aDW1Z=oWU$f7FIZl zsUcXbR+zziK7xOdH9%9Wah_VqIAO@OU>ol}ZBkOc#oyOMZne{odK3`h1SWa^c0K25xznsDvw6d|4!2_IVF0K5tm0wtw zpRLPl>k3%O&)9=x!zx73^G>FG74hXbi6A4cCO~@ldd0r7!9qP}0PHZMx@P&fKp28_ z76qhPvOv)UO=Lc|P~wi&q6pBL$vO-#sUWy-*z^`?kk5yFMpiBehpI0obyi7Ln1 zl0kML!kHGe*xu)`h+dy7$&tDCu%gckPB_PcM}YCC7Et#%WE=gN&ZCGWZ_SgFh-U%f z2)Ryg!Av;EVU|c+o-jwo3Z3Ih7Q1VR6z6QNuPwG)QVCdMXNVr*DB|RrZEit?P+pt{ zaC9FH=alkBCb*w>8!R(Af|74i~T8>Va@$_VQ#vTB4G%Gry4oeOyW43%ENH!8`VrV)R@I!@6AI#4t8Z5~2qtOv8=U;KV%olV)!opJEO zeh8h$9VkqeGiy1+&Ov7{HZJ6|tIeOTZzUkJlZ_>3XKXrRRiy|T(FHH(Cn%XUq~QTRFTV)s@copeyu)T-H%4a6UL)tY?no9tJuH%G)#%W5bH`O z0fuhzw1OL;!4c`IXeKg-Ci+|EyT7O!9`erXt9UL z-9fg~jhl^FpOERS(AP;Y=Nu!DFQRJ;_?H>D#NfM_anA813T9UT`7?9S;{gA~8P=0t zCl?9~XK*^Yh(@7xmIi0=VU~=qt=aNq7R6>4XW4ZQ{59i3uVbKliwl_OU<_?!v*iNn z&aOw-v=P9}1DAObq}g?F5x~QRb&(?Nfu9+?TthFA&0eGhHXFBbJXy&#kj;WJ=EJ`U zmfm#WSpegL`!!_26><{Jf~DF~#a@~w8!#DnFwW~rGzLO)ae*vvnw1Gt%qKA0OtG`k z=1-^PL%E6L*=%#+TouL$nadeW2!rGNB#15pocSUL0Gsb9f~_nIl02D*e27rlc>$Rj z3=n~{YdLJza86TqZk?QD2w=raq~)U_@^0oN!Z8N-sT`07PO}V$^W30`LB4^mankrX zftDo+*+e9%l{7dfE+(gK8jza}5}ToFv5?@gP4Y2c8e~YpUVOhUVFRZ-nxqBZRJKtH z97q_R2?*tI_zh zc3{P0#;aSY>6hTv&uOT0i7^d5T?(G|Y8qYz7K}BBtYE%OVeOrrqHD7mU_p?jzhxCwMDNb3oZ zq_bc)zdDQPVL8P=^U-O5O+t=vMjx)BrL)m#YMq61z-p)s#&;6H6I2L~XBbr$GM)kp z9YHD_y23b`!k>8rKLC(q9w1qclPjR4P-c08RYKRxfU=AH+DhTz1v7;}$Z%qDKgj~)Ls=j$;(CAf*6 z13t##^{I7^#t&CC<5vOTOoV^u!OXe}VMoQ|4Z-PZd3_oubpe44rD*9z1#1K6sG@8W zh;C`Q>AW?NF~);r<1&An7;OY6$I#tNq;?msRZGqboP09&4m?-|ONiI2}VksT>=0OEaW9(^H? zpvCa<^9B~K%udTKLWl!$l4h|jh`Kw)Ws~!h@dOZ)j>njU=U63g8_S9TcCe))%?olJ z0x-ffhS8@`E{&IfvCA~dkSylc`e+18vJ3ohZO8MXJiKbXW_CKYa8eUfkyNz`)&Pgu8X-aekG!x1LDNn|LP66lA zkPm>>9w44U%`rd=R(uFMK+Xuja()HV1OLOo7ch6Qn%ItT9>p=rw$5YgI#|G_d3_3$ z+PVhvpWrIKURc+-f|k=VnAsr%KXPdz?0hFcLZa-nK8sG$ASLnH=!)(4v`0rH9LQ(* zHv>@P(RwZjD++`0Mk<(z()DbVpfC;BA4lWUjL$70$`ehvY8)TVBbAkyHC0Jm=Fkx; zf@u*etKxKerL`~Q=6a?Xj_+!@fq}Z_0s~x)Bjg&a6IeVLzlDo8M^`6I;x|6gck+0Q z>S8STj1|o>8ZzJs&PIqa+$}tQ=;xZ4G=+d!nnmYf4m6MY7F`N<3mJcc(e=E7Y@Zj7 zts^{3qC7Um1&VSt$aR83ywj!ic@g8H0W|+IveG5qG{AV4XVx;amOxVRL=>ak97=p% z@NaNDO#z96(DudvP~s=o-f57PRTGMiIvX~>!S|c1Req!e{pLQ4w_4o%wN%i{@zNO` zW>Mkv$j^(VFj61hsrH4@Y+h@*LfvO;iwq8>t^w*+3ftOR%ga&u(sqyh=Gu$C(MZT1 zq-q$@N^!im_FQ>_DfGN)^xKFW`=>i@p)S;)nFUqw)`_q%a?u^raM=Yjf4HYr%#`3(m3!EP3Hh(mEWy%5IC{3yW84rqf>fRNy5LR z)_`73BEP@!^H5pCI!U#zLV&so%t31IMI}Xr#4Tznh)886eTB#;T>JF?bypADbBkRo z1_`f7ZIc1KQw-{vNay5nFYTcj2&=urANhkaTP8F6TcVoFfJe#^2Y30+yM*^kXuOA3 z|GpLuO~XmeMh7`-6+A24-rmp!%y5s^wFrgO0*0nimYF?D7v|6( z6AIvnc$qZNGZu8qw_A~GBJHy+h`zx!LA2RCcS zUG)b;^xi*occz{_7@!lfLOjlj@Kc{u_$jXPcW2ZomoM=r7%|HT>nU{|$-)4Yixx&8 zxrt%z;6*%Kpv?@6SpM8~BeH>zUIdnyhT2ZdfjN!_Km%avrGU-ksS`W^u$bK=}}m9@+|1LFV1;n zfuBWfOR0btBeexJEDfPnwKmmD+N$a(@sY$ZC+gLgK zTC9#t)*1qm$FPl}!~se0&hLE;TGwahkd0b>_~^k7umg=~92@!izjKSp#&LZ}IfPM< zkVTd^2!gYl|07{f1xY3mKft}|%dnFlR4+|4cTuc7;;wq5vbW3m5|KJ0Dm z0~V|L)ccklyQOEl8+*35p=T5~?!Tya?Tx+L-`u<1|Ek`#HummdbMN;46}{_h>d52G z9ohf(9dVuS8#T8F6oW_!aBkz{Wf~duWN?BGFB#bzT-1j(=5COd!ip2Z?}zT{;^G3x z63%A7F%%yf11JFRRQ#q5BN^_$U{XsTJ2k~$PkOS^$4k>rE{eSc3fptJLv@p&( zJ8T^85W7#FNr&(_Tn%pezpvqGy*ljwel&b^1nsUVrhPC5M(p_FGy=X7x2nSCG`K`J z2AA#TVA*U2@Y_0g(j*rMkc@u<@_g`wyFtL;3I6U+D0~rQorIIgu!h(WWTPlL&Vv)J zIgE7#H8-Eq?=$*+0okXx$1;oWcXZ^uL3bk^`$^OG$ni+W-rL)?y$L3^Tede%7N@A! z`4}=>WGv%F#g)&v;z<7 zo#P>nXq?QS~V%Opo>77W$)W>I`5zXo_s!Je~G8sW`l zmX2UBNs6L1b{h90)cm1zm|IzOG(lE_f4~6HWB$w>XYiLCI)28VDN2l}X*rG({!F@x z>>1%R4f7Y;aExdOBCvW4?1pj!f|4MSQm}bP9-l?0VG*wFXdX;Ma&gx{mS3FN3m}A( z5piCOpY^W@3Fwji(K%e4u`GG=WdEtow92xK1ydCW^DnHPTkltvyR}U$tYO6sGPJ~> z-muc}SFWDU&i77xZ`D3nwSQc-pRaa*T31O4%+7aiyiJniG4`}Bl^9%@6yd@Xp|qNge#K8B}<^z;Ot z9C~_+7DP5X^>pk<_XajX1@M&)Ft-3@uL2wl5QRyv>iM_q?>$kXb3dH$Xtr?H)@yBj z()p&+URLCA!kVoFRZ^})?qvP)F$qrH`>f9$MwQfgJylYUX!eB>Ye)n4{Y|=7I3!NUm&U{)h4VmF?MhC z4gvLZVg#7-RiIIuemH~-4K<0H_*Gi*S`{T=e*5uoZTOuKf@v5I$~UHXU3%^&{b|ic z$BEpe+8+8RjxC5B0JuLLx*p~Fl*Xlue1Y(M-Ex>XWo@irz{A)@-N=u76_IubDhUh# zC41`*zG@biPD=1%W|m>4+Z!~fM1MDacw{B%66Gk7C%P!H@FsD<&BW9 zhuDvK;1vp`71T`1*;gx|DmPy#p<271LlNYR=#h7D z-V|0w%Us1dvpl-TclW5?B1hfQQCg@?d0cC`934aBLzArV$)S(#YF^eRJUQOGDs=gZ zcT0sa@BHo%v)x+()4l@Uyyx~hwLV@6JlcscDoF=@#cC4D-{~Wq^49pBebgIkyFDkD zVl}^_Lv3^~z~}baGCxhyhz$I5^8BxlxTB3&)>s^ySk5xX_V$)~;iBtGK_A876xFiD z+~II4K-Pgy~Y{Zf}xyB?6$w#(0fEgob8Q^DrLiO>r zy-0kQURlXkxx=&LCs(=F&I*%Heq{79U_eDZhnJy`CvrG|o^xn;!D=-+3B z(tFWy(o#0vzk*g98qb?Gq!gxt>QVl>MSkU1S=Ao7x_@PgjTw^r*O2g_l4_xg{4maz zY51F-tc_D!1g0{YR5I-352th`pxe0aM4|& z;|zb)U+SI>z0^0(4H)f3fDGMM2*(?}VlDIK(|7RO9 z(*p=#4%p72tva2HXx9Ojyctn~u|lNQRtp z)x?=F@1cK0Geb^3xom1B7;l&_oD=D`OZfFF`albWN1N2e?O#-ee$G5}jiv$#l?Y^B zt^D-q{cBZ?YoV6wBG0S<21%XqELM>fWLAC}GOgT&0FdpPnqK`}=w#6RIGEtaZnr`M zCC5pl?|u9Q3cYk%BWxc~@7BN@1-=O2a5UjJhc-RA>YDLgAfPhQ%o;T#;KVMku)cQ${Qs zI>zFD%2nBFSZ4(|X9Q<$AkhB|K%MqdI^YvA1QdFxJpp?t5Aa z4H+h=h8Qwz88vcLD64ZxH`E(3LDr(7ft>v`oGxe33B_5EwFY%@(@I=Rc*X*rnpUJZ z0uuPxh=1hH|HZc$K*rOYrG_*d0cdJnR`iw71?~t<@tC0lx+`N@nC_(fuCOQV%{pUO zV2?S=yeFb{Qb3m=G&p2JYZfqx*Yk$?lkUU{m%9dL-QEBpFW}9enmwuE>sdUk zf?CbY&$U?9o+aQX=8{}T8k31@2M-r0uQb%{1b&7X7Yk#Q@et;K&xb{AXd<56X)x1s zR&jl3vk>Qst{yCxhX$jNxafpXiOHe1(uRn_a$J8@6G_fJmK4`&Yl=22eR^-jQU{wl zBP2#6U%t!6b5}a|BUY(7q@#i3O3{T%k~Rq_ZXB^h6kPB};6F#oajHYy%qW@96DA?9 zc47W2xnM@Yzc@fjB~YQoYUp-~Lrv_GzNmb2Z{m8Lxu%y6)DK&|&=kDuMwMJEqES)-qCDgA`bh%5s$! zmOuyQFdpk4;FTf}pvsD#j_-hH7{vfJQ}j^<0ty37x!92d++ zS41sH8{uV$%H||sSh#FA;Sma$c!mW|h^BxQ;m`Se#)?j4&^tE!!KJgT?|N|NT~b|> z?d=iUXC|%-Y+WA3%Wy50&dgs*i;^WGa*&R2ZFyr^?b4fJ?B{w*baw6stg~a**}2x) zD}T--8Dlg7u?A0l*|$^g%B2DNkc+mo?XDC4FjLmmfI4<=UsvYz* z&A@|P1bbpbhvOXU`_zXQZ;1gOYQjA_Qh&*rOnc5$(BY};sgQzAfM;zgfiHa4GQBNO^Ga3 z1NS?VqxXP5(?e>Y7LtV~nD4kIaN~0(%|_0HXcnBz!iO%?dCwCH2>|r>ejWbiJ$>k| z3loY0;*y$?kXf)DUo3Wq`E5s4H-@d~Lpncd!q4Hs{{HU4h7MyB*x3*}Td=4>Sq$%# zG6CDzpBvx~$bLr43|o$LfsYnW9|2otL5@=Rl2MhJL#u>tD6~)hri=~+W^mn5Au2mK8R;l0+%G_hQE}+ zE`N_5n;u9z2$SUvGkg)xq%edZ*$!EG{X(Pr!Vg)B6)f_ev2uycVyU45P=?I;E!B#C z+`s1UWX(dyrF^fUqtF&N9@H9TI3l9u=}A(U%(y&dlhre_K~k@vI?>TpE?kUx6R&mb z&`K8j0E?lZD1jD`z+>K$QRdpQ4Hb}FAvl##Q1Y0)VWqN!X=kZ-TRH9T8f(tBbyXB! zm?AlX8x0L}PuS&4A|4jiPF-w>=!K!|G2aA*wko^t>z9;X0Su&2L#%}B;UQAD#8dV0 z3qv)es%r}9fZlbM)iuY;g0F}$hK5p(5=3D?wxVjDg>T{()3z01QBpXFuv$7HJJz6l zAanULW~xF${-K)mVnq>|Vo*Hv@yG3E;(kV3!u+oXuv%A;FAagBtm0Z?3k`kYheDZ= z$V0KtU!fr*Da;+)Mtj6Vq&5+1QsGX50!X?2~C7iu$1EPbQWyN z?$8VE38G-e1G&wV#3^7&k&^D@B4v+P5iQQ;V;tstGG{7s9;loLTFwKRGvYbNN}M%f zNy~I5`(MNoo3Qj^o!5Kkvn|rQ@D=#G+SXhS-w7+%ybA9) zWc~q%U3N&jO=)NYQ!7p)#Ms({d$ZxS`Vhs9<0Q=Dhq*;(dJ823lw+v&s7pl|Jf>Tb ziJ+kxG&s9ZskBktsC1idwi{_topI?lnMJ%43WWo_T<$PEvVukqJ+pVxjXT3MVpi7oulX9T3`&O$7lF0-Kz)Z!K_#Q{G@N14@a1iUF z4v13ZxwCVdw1J9cxjK+oL>CoUl%&x#ioXfqOT3uqfMdEw2&6WH+jHU`#u?jTELpAi z9k1mX(~;;gKaI*$tsPe@oaz<16?@=mS;6iv47_5UNsd$35YQP47~Uo{)3f~x5bk#F zAlRS)_OAtx(sH>AMuu|b|4KkDt5w_n`uZuVnHX%S^sf?|vSp>`CJ!j~4@`uwbl~Vx zook3x=<$`#+2uitn9#TBW^3bQtCj8t*!t!ITmFV;NQabv1@mok-R!Kxg6|sX>?F+N z$r@keVK`PX=_|&vy)e%(R)e7xVloiil~WZ>*z^ zE9bI%%c?4AN=s7uwe6syz+DZb6#Y`ge71kLYa`U7>oT6pZZNep&NFB#nH(K4USd%b z6m=vk&sbb~CB(vfJ;UEw5@*`U{ww!MuWFdpV^@OxaN|1pCU{j5Ii8HELQjQ+|5xE2 z_LZOx8r8YP=B+y-{x49p<6!| z-Ip#Igx35w!byyg{8h+!uW78r*idQJNBW{1ImYsKYxVz&3Z zZb7WgcvVoSxgC*WMTQHQ!c9?igxP9!ODaH>qAZOQ>J4^w$Y=}o%(-m8OgR*`@jX_v zocgnqNt|ZX<2T-1$BL@qek3a<99DZmEiu#H?4)gJ6bOe!C{y%?y5w;2cAHMDW}+*6+eZ^3%Z;K|&nEZhL#WX%17 z&34B~gl1~|gStO54dP4@m8elxn_knc(F8Kq-xhjzDkwnUd`YeJ<#=%CS|I1&7H(c4thZ^pqNK zUB-4f=p(2UM4rWoM~dT7C}^YNp7G}A9bR!R>~ZoQ`86Pdl?gYgp{FP|!G0Mt=-Yzp zBDCVpAyN!puOaGlSOVkQO&-1qvuG-BXkIwF3pH6*H8XvPV1_akVLLj6hG2%$el+wo zv(Si}F2Kr>c$;dLpdv)IJoc`23k}vtUTh?1jd0tqTs4yW<@o|0xqRW>Q>9_!FxVM$ zu~6%1_6a4Hl<{q*u32bxLwOgJ6~2!r;7>6`wTe=%25fe8#GKkl3vfqOlR` z7GF-fTE#}q8{L`S-h371HHZhNZY9R5=iJf5@L$wDxAURu`f-ze6~C|ftJ8l^?Tr*k zitc2)BYi>ZmR^;c#J4nZE11m~HZw#E$O_S2-xJxs#Z;D2h*3Vb%KZ&p`;5o`vMH5R zK|(nNRMNcnkU3lKdjBmUbEkpbHv*1swU*LS`|k;l4aR2Q78ug>hae$0{`><|XH+DJ zp{`687$)aUe$l|o1|h$Qwmj`{wMiMYsP3muW8xkf6-CW6nvudrWhA{4x{{d6;O%zq zQ@a!+n{A@L#kc9j+N2p=o62lTO{Xf+6q*{CC{8d&-^%6)apk;e>S;=X z_~H#Z9SM8Y@^q!FUnM^4XoAS|1FR=6j8jPr8z;9Yjon|!xEVBY6=+I|{a-a@Mk?0i z`=&40epR_)aju28ox5kUU@gYg6TPx@h(zSEahBdJ-6$QAi;B4=!9}5`o)miBCg)(? zkVg>VSAhxp=$2bMxx;K3@`oH9)5jzvj8THvplj2Z+watO$q>y;H~}_?+zFFI zc53Wye+QczG@#WLGztemmmPkX#~ml~H}8Y$+R(DVVLr#>LAnI?^#R?JAz0 zW3MTvrOhp?-Qs_bD;-oJKnYW6l@`+UJjIRjUaL>~UMZ#tU3pFG_pj`>Zl^+};$DkX z>=ji`QmT|O3i5rWqj9g+eJ%ZFN)O??(5eH3EWtJ4w)-gfZ8!?o}WLURf zuDkUo>UP&Lb1;>f4tIo>TcMGhYm9jSPdc>9fLc{7gSu_t*z2LId1S!8+2 z2FqiXSHmj4q9|>)KfQmGS>uF^8c&1s&`M@CDy zj)-YoL$`?{aGL8yB`p!Dl@CQrU;VI{;@xupYemxDJ|!CyW^ykKPtu{R4xVMCKYao8 z9J|qAqW|jaIbc?BTQA&osLRqw_!%&HBGmd&m*ucN0W2hI6xnr8fa1c~Gn#=qdU=h1 zsu`akqj^elDPEsxoK+~GFHz`>nV@pBRgPWZhbb>&be3@PzD6_PV1|3om8EzzrSqHJR{lBHwhCsW zC7S120mkB!^;mfVV`oY$GK~f6qfJS!6lAFNL#pY-R`>o$ytjB+t(0R%`XF7giQ76c z^Wq+eHVsiZa~n!Ysz#OTwz`z#Pij}wilGgSbq05~+Y9?eU#KvZ0CIVjVdxK=lTm)l zK^c#7?co5zN{2sMQ{3lBkqn5N6Fnl@?}HtTwB_mE)^{3@@V*^3ibi8ci?7H!HLB$s zD~7!gN~libstdm?gIRXViW`|5#X>FsZ^8o)8s1I3h4D7hj1SR4lx~YCofTnNRe!|! zc2p}{$Y+s?q-&u)>-BC`*Goj{Dzo|Usd1Hs~E=Z6Jvp_2>omW8tk)184`uHD*uy!T}HVDB+3 zz}*8_c00dg%)A|MiBWzq)KPtK`S|5<2bSSZAKqV5BmiGPpueN`VEO7*^CkWsv@mSO z%)d#_!*nuBE;{yG@x<(KVao`|nROA3!&Kb&XSg{4CB~rLz~{j(f%*W^2v~&IvspNW zJ&~0?@~!6Olcwb`XBCvmLWa~@Bv2QI1K~!$b!PMn6&OaqYj4a{2%twv>YZ|5EpP@- z=Feeo!&~gG8D>(`W(?vfzonX?(tr_g5^r8rJWT09DMft(bcf`oXfVvfld5}WS;f?F z#VigFKaiT0a#AXkzK_snath0{Ijo_7Wk4L@_#toY$}wyzCmt&B$iqm3y!LVzz70L3 z<~fd441g#x`q{#RP@*DxMu$n)B_43Zfd$L}o_^dTe}BLI^Z=cX`1=RDt*6`Dkhuqs zZQu``gT4J$dz;)e6-#0`WztS?oK~~FyPdm-hpnbtV{frrV@^yuPAZfbyr^DBKRNuh z0+=V-;>5XeZgu>6ge~kdcdgKkuG zpG{BQwRXGqc>j?T9<~qMy5qnJ4oAALm3UxY-LNpYFta@%2s@9PO}7(5kG!zvV*(63 zJlfme$HV2w4JmDRUqWMy^0KYTC0-iuk+uL(TTjj2I#pbe* zmtEyXetgvI#kE!kHtoY{mtkq*p96o3#_*$VbmUK|N^|YIp5rWi=d=Rn>U&QB$9kvr zcDr+0KiG#k>ET~^dHR^WJbm05L2pN^)$(ZUI6?i~-N{fE3hfBuhNtnGzkHN=Th8*( znfQxC|G3xcEROu+8r0H0=q&2TFpdRIQ3mw{JI>4>)hFeOvPb@`d+a}O&g%)V_CmT? zYk9DK64x6$=P>0*LH%>FVy8#zj46vlP2K&WVpU03`^=H6Qc2k4~WL z3!`e_Vq}-0@>(rE3W~+ANFfOuTlz6q)+Mzjua>T(qGnR zuyRK5E8+0jnbj`8KSsqh7xvb%bGdWucD2t-_9+2$h+!g93=U0@h84Aj-oalfGJL0K zPv+n7_~jkD)!1#cZErcs+MOF7e(BufahXnJaOuD(t5miu-AcO!qLszJ7_(5+!inGX7k{&eAzqLm)Ulk^ulO0q@du6bW(u-5?%tG zCr_I|b_{ z5@&Gm_CxL7T^p^yBit7oEM&8Xh$b$}?rqJC((1|@@Sr_D$C|$cu z;GZlocjj{iFf8D6i&s`k++>NOe!8B9Ib$kyUX!K#@p`_Pg`_i!s!k6@)`u3HR8AA* zYBOM@tp}`iZ6FQuoUrwWi`Bma0OVKipvf@JuilWUo6CkRZWJh&@x810`yjO-N534? z^8beOPaA`n2G~5@&L1}PYHcH5Puc!hm)nqi&`E(v3rjbVQV*T<%LIMMYb_RsVqNGp z*FtNG8)5--adF4=ob)gKs(kg_o3(UoJZ zEBZ2MG#W6%Yzein=XI&0q;i*iT|Y&?EWnKrwSywe70g8XT6!V`It{cX9OKFGB(zS$ zG%R)g^3TB0P! zv2d+P7kdKYVN0g<1C(IxU*{K_O zyoax10l{LzDS>~B9F3f2x7k2DI+!N3XV zWiUc% z^1Net)@#=TXuA$!m4G;#LY!5^qSrpBsB%sf&*np6$+q1HRO#HT*DAP@M4M1lVQxOK zABQCBBm&X5?O`Y83U6)kiwU9<)1RevI=dU&!p9SrBKa*FHWDvtN_( zau(Vi-(R~~DNSSFS&^S4!cJOX}N+$M>NkrBVuNuFb=yBtO@UJB73XyXm)*Dk?1M! ziIA!%dbH;Z3;N}D-5aD45=)4Pq{$_MB9W~Gv=F>lZ3lrN4Ch00sCl*!(W$-c43O@e zw2C?#=Pvbd*pq0wOi@n`aMxo_h>RY zbC}y#G;N~jE{!Oozi8JyLjS`H7%K)klNx-g^#vO=0L+uuP;8MSn{y5a_pz-&i5nL4 zbtq=1dhG(~^KMXR6Bb5J@Y8r|R7XgWC-zvJCk_V-xNCz^VfVqfvLYGbL2~IB9tNP0 zk|G_3iZP*(A{0`DLTW%koBE}=SVD;B0P*}#-Y4Y-#Ccn>jJH&RIEHBIObQSWRa=v< zf;i%MBvx5ewaRF5a|S8KpmcXa@-L1>gWF7xM$e9WmC{00V$4Qw%cwl+2*xj0k*nm7 zuJ#Ok-nr{F*LmaZ`xh_YAOHR3KaXF(Kv9)AX!#jEqjx%PkmHej<1OwDRafGOjKE~U zfGJBjW`L^7%FrD%tLhi@#;Xt3-a)gu`*@Sg^=tPysQbmsSI<8E^6~iHv-clhz;EAu zeEsN7&dAb;%awIA<2MLpXM1$fhwGz_mp2RItk-3syu7AEI4)5eP^n8pd5&qp7S z<&E;I25|(Q)IT7Szd0jNH1FyD<0l8-5CBp34wXs9@52nIH*c`l7s-fXB|(DrsC2)X zx4{ya9`8RrIAGH5gU3&v;(i}HPg{G>cbs(Inu3Hv5{HKFQ-k?Xtt9USljL5?H;a7a>OktSo^zRkNJAPN{OetX?|_;79@CRg(TKc8-&j0|g-I~a+D1X!$~ z_s`z^^ip2a+|cZHZlq(YPScwK7I&J!v&ZAg4{L;lg^aON)dc}a_>SkiB4$_M0H1$j zlEcE>hGHWA`V`a4c=JqG!Z`dZ2*4Y@FBw>vJpPv4k6jxb~j3zv=eDkqLMV_(iv2Ws=xD*xzR)k*FV$L{2A>BtAXZ zdvZXYtsJ85=n!8}&xKFK?f5vF<9YD|ED_g%e9eQsJ-RU##I?&LVv{0C;|M(#IM0z8 z-Nnw%6;;!bxIfe=-Fuc%O_9b#Gk!|?{iSdhj$y~fbVt3|C-NO$GSzlGVx;0oh&Omx zHv-6Re9mYR0lyXvoU+cM@y}pB<9dB}kNjW#b_ zql_n)rz>E|UE4{@k|CRyd4NIlC<_I!DGoK0j>57&)r_o|q`}vu%Q0#nr_u8O4*LMB zN#l5gkFZqcNgm2}=wd0>qK>7#ObXk8vwq{f=%8;wzbLqMZKWBbz1bA8HmpQVk?BMYVwgH}9gIHXe_TY}G z4utl=rWsBd+C|wjZhl9tlG{Dne>sx4uz8|Q7{wpv@J;;L3iG*|DXUL>g(E1-NBu-so5WmrNvFE*20T zNL>XFJK4w%5FhrBFgSz0tvzH?zacYSwR8CSCccbpw%7$XjL9g)ufu#g=%^ybw+#{= z;?p@xo+y?)V|O@)+87495@W|(_cf_}7#fP}Kf2W-=!L^9@`$dIo* z3HzVVe*NX;C3?Zavkvo93v)`!*1C@gD(E^CuL#{s1g>T*oR_k{5Yi{>EWC1eygwea zP&_X6&ep zxD?7eP2;Rg5_gYORBd)-wLPIffYZj7v*0{qZcVAPnlTVrI5=r+T2Jhj`I;+ykS=UB zlJm=E+B}wV^ySAZAl#nK`@q*QG|ajkagb%~o}3xL+7EyV+Cw}?@_t4>oq|iEf{X;s zTIZu))JY^6Xc+PtJdEN|1dg7gGdUYQmDVqPhKcD2A&CGmgRM}@$DT5nW)jXY_B(Nj z)ByOSmvPbPZGu%2P5?Pp^D>h2GScVeV7K}7n+jE*O{Zx%g+)ajDN`FpV!9Ps%Yt!| z0Yn*nW&#o0EW@4V7L`8N-s9%C9oJ^r@CLC*m&-5MeYcQbkPshlqrA$`Pxqeep<@Q7 zwGv4xyt&7s8+P$R4Di2G)(DSezfs{~W3A?B?_IZ93|pui<^JP?r!>m7x7U8sYJS6M z;+)>ISrp(lslNgtc*Rc2v2i*DnJK8;%6KB+Ya(8sK^&2MoLH!wiNE6)u zYQ@eM8A{^y1Aw^qQxch zF$vAPYcGZkkU8a$TTP!ik1!c2Ti)6&eQ}N(`4NjzZ^}PMLjH;FH5BW+yd~lRL7(|K zCS?|@3dlBhB!FXF7WAP4Z#nF4tp5*IKdO=Tn?t5PJBm`Yz)u?%5z{4u2~uj@-$Slf zYSoWOv-JOC?@id-Hm-%?ze1s|3`CGDY8PmjbsQ&ko5Zf2wD(?`ks%6{;7|YyfR0@W z{q5gbX2n8LvfO*$?@6D=B7j-X%$#k`;#Jgjban<^`#L`In!8|g25*JV7tk}NP86oQ zNm0I&1bzyOyI`3O2U>$)(G#Q`jTMCO(zZAZKJn90E%5J??Xkdir9 zW|uJdt1?5AWsU#%dK=wnIjJ|XE-48bvbDVOkAeR6?-Aoo@)(HWYxq*c<+lQ2fQM>t zD9aDs33QNUrL4E~?%(j;H)8Gn{t;!;>@2XqcX;Tbz|d7-cXxLmn~3zyC@K7RkNXD{ z;XsNXsNLT=0L}#cb8xRD%Gw#t7@2iMLPR!=Kc_G&bOfhY3`+bZ%odAaX-dv8Ix@B7XiNo0U41rZ$ z7B(sird{SYu9;+-29v^`zNc@R)3aVu5{`mtMm#W~L%VTAP@Z_wH|3{U47>vzS*OPq z#40Rtmd-wrZ_YHs<-oYaC9MXaTHEBKlm@K$-5XkuhOK`fZbMHfPgx4(XbZB0RAB@X-CQOpCne z{x9u9_R1rPzSVM?5VRNyy|Eom>Sn`Q3NDo_RuhDsMfz)+{RTV(2`3fe{u>any!awN zL&ya`3p1!z8ot zIW4-R&_WoMY+$5Rh`>GQ`~|8XOa2uXb#rx5hvF}=q>+>Ys6=9-ySxEOzS?rxlm*$)adoVlTZz6ZwF_U!Xa1vc7I(_(U$@`g&q}bD-)3Mz&BzltKz$ zW8&n-sL*5C;{-NKCL{;`lE>(v;B@mWW!e>jKFw>;0QdSj3kB%5=y$I<+ocyZDY-99 zQq@7#=Mng}0$L<7_#Qbygpg+Z!fw{k(rQY*k*-C$VyG?bV@2LnCvrcerG#tg#ft4m)P9B5qdWb>gZq@bpzm`6RLgzJ z@ot~5Q^ZuvxCcUQWF!miRxXHmf-Hnko=8$GAa9dH&q0s<%inpGIUZZ~_6tvXaw%U_ zmKtPA(||{XrU@y6^DImUr?3xxWqw<@r3UmM(iiC}QWqVjzLQO-Y{H~lT0>V;@xZ|+ z_nJ!2W@HENt~=<0Z+JBkZg!AT%M|2NhqG2GsAKvy2M=qWFXFAMD(|kBanPv zBc7wQpJ(?Q!`dE@_tDreezvAb>>JD$9ijwlqZ7>M@(Hp9t!ASiaYmd${ ze6ohAjwiFlSzNfOOOALr^xL&K)(LE#2$fSYO%ELjjK`AP$i)kWl6)d)$p=`0HP^w@ z$E_ewW;`pS77l`&d&w4k6D`tjZjXLerU^wECIfQ;%3)o4Rue5P5UVFY9tXy!j`y*4 zw!(c37;0%G7mkZ`XNJVWj*(V0O|-gauFXOh%2sr$l|(Z|b^S9WK|9BNczc0*dsH4` z{1m*zKI(5v#m%QS19wt{V|*vJ@#16}!U|MrSEXGjVF*BKIhg@ct|^(EEor{Wny-rH zD`7-}kxF492s=_}RpXUU!tu!oO#@`!4?vB-P2$-ZYD>Abq|uJ=Ol5jHI4P4nAx=}> zhGP0YZO@@;|TlEPcDb!M0*(EsXO49U$n5CcdnX0|OZfhUSW){PR(M+M)Q2DcF zcc*|Q?Z+rqg;17_MBx`w>FR0=Nu$5=B1Tpi{|M7myi7snm@ZY&3{%hz*SL&q zU7GKVrNNbu5~ws;!~j}(0xM7zMyo&?R$1$qn#A!)W)P;u=2cBz!tPGoNLlZUoo?M! zS!*ybOuFVOKD6i3<5`jmTV}iAoGH&6;UPe&?MB9p)(A#BmZ5W6$0I%MJr6oM+q#7J zbYFzDo;+jKg+xb?3VRZG-I9dXJIn^^C=&v*eZsr=pE6+_M3!pxJ2>s`M$Z0ZVy}lP zjRl{CnUTxVxLu<(l^LKF;0M)JO2W3oVpzA>VL5My!mN#VBie)L=1rCRGiB-U=K0^B zzkc!4f1i90Kfb5NgH>99GP8DB1qEldXHg-S-eP*0o*va)>5yc8ler2;@mP<7&h#yY zQRrcCRl|O%y|2N|!z>KKf=V3B+cAqjK4rdQ2<)f6vty5tOY2Teo;a#6S(BJ<|1ji> z3~PbchHNFO=KmeeLEqNZy_UL0v?`qRu*+44O~L58cUog52oJ;sPe7>0OtV{w;LXt1 zQkQDSoi=P`V^5}05YwvIY0OYDG%y2U)dCy^xUsg;h>dpYqKI7XG($_*jC>HW`PMn9}jJy=&KRE zh`3)Vlc>PXfquu(fMN}O9yupp)!yRPnVOn=S2rb!c*4pFg$6psL5-cZ7mW$OH*9?! zj9Oohg+OWS@Z?M>{liZfl|@^PA_Xv>GV7^sUy5p$8`<)^GUbK>PZC4Lmq(fzpD1R0 zuG#K|zOh9XozyDKqLaxLv*;upH&}FGW%Ee{$#9)N6=gP`VZf+I1;#qdquC?DM?Cri znQH)Fi;)oDZVhFDw_EO~Xm~lhMvtlM%i;UNd+>;e{fDqG*#Fb!wJhJCVzEeNPq~af zoyOX*0)wxRzL#$A`4A^(A;yrkcukADY?B7a8KlLT&lK(?MY)m^Ye}YhRTvM5FKKE$ zJy(?#_Ldc{R?Hc)yXwSLW>A-MBA@QSZ(u&J6iRRmwB)e*fH1RgL;&PUJxKXkU*E`A z?Afe*#k0%jf`zJuSyB~r5S}Z|e8EiE9pSRufF@NUcsziS8HzdKw^tZ=Nn$ZuVu%$% z5tt(uVu7bj-eEZ8n&eA^u)G=*sv$Tuh-o-iwm|wCkttLuZ>h@Br*Zv45yu4x0cSl` z8?8=iM5j`|H@8_dtm$7Otwe~lwj?t2FSS^uS7f_}VTsHwFlbe4mELd!MKRqv3esvO zQ{k?6eJw)L;IvMGt=AhY_hI(I6eA189EypBHN01xlBj~WF-mS2+G0d#d zyh9l8O-!)I3gY-|tM_6`(ISz+z7aGAV}+dO(d8u?<4}^K%jj3Ay2vSq52nH)Qv=Z! zyi%sJrl(Wc9F@S!|CvF_yBN;b z6x0w(6`v{f_ZGZgl`2{8q>NoA+x^8BmXUro%!0*0U5MB80`+)3Q>$U+^`lzmY*J{k z8Zj<{S291lsmV<|<=HoF$rNSUd2IE50=Nst1&xd5=plLu?E0skFfiD148;QA$ZV_w z=Sb2gRK@X6-Q7qZk6U!(ek)md*z_7^4M2 zxGHoNTB0k+n1euLVPbETG3`y{5R4x34zXnWp7r&zx$Oiik3CT+fyJU&n9yf@X$Ql*3TB)QlWKswlQh6=Srb#M}zKoaO5VaE_ zvnC)(OD@}>stPPR@Q5#%&%oqnm8iR2Q#TM>Vua9^QZT_Q(B#%WbugQ z`f*4H&A2A3abXP=Yi(E7H;P1*lC>vofI1W&g&U*GZyGG2e2h$ygMh~uJ3I|cAf#@j z9iXWWd$6y_;fTWqh}k@CcWHt{d#W}(Y16MAKsr4`+BihU$v~VU$wD7UK zscoUCyR;YB7aq+L1n5@zxtrr2bT(SoT&=H5XZ)5=Zu4a*BSkN1v-$)3ftq*zq`$aV zU%6HX4>Z~>NQ$QqKaqe*FIy$v7W)&@*=Tp(THXyE$40N(fyatg3OrI`U1bpv&a zKOq`p{$u_nf*L1U5nXkUy(Jc2UBS))lN#{ImH@ERk+7kXsn117^E4Z&E#UcNXaq<) zu=_M3lDuqv5n;SiBiH6haoq18q9;WXUQzY0flgtY1GC9CKVX7`a&*9XBsed+UBAb9 zby*m;UpuW3bFfyS)$#QoQJ%tfQ(@{wX!9jbvcEx%U|Cy!l1{Vs5-(CdJ*b4a03oBj z)SuytpG~L1W*--)9WE`0;778vf{poO^rOoUWK5j^8y2W%wBOj?Kit1}ccQ;5o8%S! zgrsZdjZQ*4JN>=>QZFIlMikxXMl@+3!r|`D!LHXCL9E~J?;KGCvG&?W{hebEb=$3< zcMp$tvF}+&<9pjQG}M9jkKk0X4t!_(U~eCF;8*VpR%@a1nw24gCd}J1!Cc}cqruB5 zX~c>{+~p^wouc^HYvDtKX3B<})C0it7g_F%MXYUjH}U6VA9V}QK+FbCkRxQ<4pgbf zW-I246nT-qa?|dW=p%4GZc07=X1)Nq9j)cLFLdAvq_H7;H3ZUcpyB?PY@GlNR}6v* zK2(M>M!x9>pf#+@oMotD>B}24$En^`B3OQFe^)&bK)rXTo|Rp^>Y3kEz3c1VXxxL| zD+uHK;S#e-cm^Jo9eT6 zKf=%nDZA9Wj$AEmNKCyT^CbKhV)@C%PW2sM&w3Q{Ob=ip!kzYpq*d$%tp%~V^2oFN zgDUSGhLOiHa+djbm^FhY%MHKtWRNWvcK4N7G`uX~TEJnyn7RTQ!XXR!hnqk^Oh(K6 z>AhdkON=t`os z9J+FU=lJ+=8IfZ5Rb*jWx-&Vm5Eo3|PYNYx(qvT)MPJe73*)>J0lrO*A9?Zs=g;ay za&)O_I*|`vbM4DXdZY9dPTdQ>dk9ShH}%uYwC^rc} zbRr}oN+O2T)At`_{5^f&mTM$j3tz(lYU*3XW}va}Ca2bxx=@EIU#klX&2U4RMp+CvRATZMVx%<2+%M8EKrGsGYFXg<6Ig zmR6}MD0O)emWE!e-nWbql%d@Kn-jc!H2USyc;gWqU3}*b1EJcx79+V<8xp=zvZJ?; z)IF&g0VHaOly*EC3d^nX7|C0ch~siM;Md0Jp+R>%wljDcgvoN172!n6wzmUAF`f>) zT_({i!Td%>w&EKl1w(S9t@71w+UB4q>8RZ7kF5bvcrNn=2Ghb@p*ZNwIJ7gm;=rGm2bMA)`yc^d%k+l_P zt-0&#HPKH?J$)tBiwEh(MpeoCCBZBv-c>47vkYX}N-1qKj=NIpa-gvax{e4S&le>> z(>;V)0h7SYv$+e1Ky{{WOH#|!(BgI5Safs03?sM3!Lo;D;+iozTFk~V9!JeT+K*QV zi9mU7$>QkCaRuxzxg42ES4SrOga17TL~<|t0CYn^&DQ`718W9<%-lI)}&5co&uOVUc$2xpT%Pt%ktJTUg;UF`e z)6|R+Fu@#U!GtZ9Qc5E1lSb_epd{rb-wa#GsHUZ8+mS?jJv*9%*2Jvo1h35Q3%>qa zBRmaCZBjHM$pF0$Rip?Zk1=_};9jE;q9T(gBRT1Yu7|x65tr27|>k(wpi?Qg6AbUzu%%zlK&N(}}Cdd53zx4d~ zp-P1r)RoJ|tXiUK!(dw9OPdbWJ1vC~cB#D<Sb1Orm*wCY|ss50{zc-ohvKwDKRYDWeoKT;1V&Z}6U}NBBS--V?E` zpN3?I)^w!&1WN!tDc3>DQh9=^dQSBq(xq@L-x<5AsOY^ysGG?V4CNl0hO;ie+v#u` zJP7P5%#0~`TY$hWT@ilyQoH7y7y*4hserzpM4}50`um}xn1c$DY1~NISh;*K0x?nr zI1e~v7`{d}PZW^kJg}aTHPmt6mmaIer?%o`H5H^HIC51tAx+7n$h)#ESuxWQ%2Z8tI88rWHm!Sz3I!X2lZ_} z8hfdGMF)5^mKj+quTl%uns<(sPa^xE%)_9wbs_oF5}P!TSQVX#bZshEo<$n~aw6B#LPx9hQ(vIlE7c;}R+9-JTTcV3gURa9 z_2tdUopAhwQ6|a)JBVA5Y~qU%2Ig>md73E^_#(7THw({7pDT?cz1nNrA2-oPduTXu zr94Kjpo7$Ss_M@5i-u>*R*S!KL&deG`@VxL^dw62a3gkWm6b5NA@RzK;WWSozYy%ObSyLqvlE6%cmOILA?L( zs$I(Rrk=3$t zqD9M6EJrFl=%ihdFesAcWE9_?nLEd!tHI$rjyczpWqZI~qLYzCP(6n&j5uamU?`tV zZ~fG(N7p5<6E?~>{1ry=cqpSm^P`8%EIRjS&?ek8E58!V6pd*#?r{yJ3*L%$A|jts zu{?z-ahbbEhy6w@ETKnQkRIt!gu+5K9sAh}miA0VVlv#sH(}On( ziHT9($kHU_=~zk>ii+nVHp7WZ;i^9cwJ#(cvH{7T%X0oSJwvAf}l`@)rmln;OYcj{GT0L*TtV*Ktf_loN1KXGiaRQDyQuWMc#HFNg z!VD{?$6|X67>y}40E-AbVU zJQiM>%;65*R6ECz9>?-9L*^~p(((sS?>q(&!2bR@MaQA@6bhbkbG+WEZ{(xM4GtYy z0n-)d4f$PG408Y`$S=94ltkHEf$?%jVRXR*Qn{yQXpb7^{~=%9+D z%}H-4jP{f~wDb5pDPZ?NX|WK!5yq&$Y_rF>WvUa;ieW!~2a?hf_XZM%Bm_2vJuv{N zQgXR&lwb9;3xx0T>At zEx=C30F{dLO+sFIuL1k~twNyS)^#3rIy}!SQjt*UHHqDRO zY$|zQQzhQ#UM0}3^WMV7bAq;|l|&@wL`6$b_>vU%`cAJsZ6QcewOc2=>C3xrom31k z&g+=y+k@25l*KB8wzx!y>q)aoe#31^4CjA%C+!{{?<^76j`m>9c_&fHdt7{5;X$!e zm-4PHTjF>hb;q@fVjl9~=Ju?>JE63~V3a!0Xvw_57^WK`Dit&@DYL8wZC_~H89cXK zdQ6bIp`NS)VpGWyDi(Ql)XTBgzF?{EOf`hmilGiY zH@pa93^x(ivWc=mt=#~MTu{!mwav)=!O(P7K8fV_d0io7`&&AD9`<(+kI0okHP9`X z0dEn13^|zm`SXu+_uU_c53Zam2NTi86g;tVN552W)A5D}A1d?1JKs5%k%Xm^p#VOu zGSv{o2-ro?d84cdv<*Iiv)}5m`7SJ4;%5L*=MQ9AI?9xcZ@Z@^6k@9_6oBg4zT&{x zQ+&mdjzeJ#Ls4z$MuWqa0sotjszK=$MhPhuJR-q#O7Dj*`6cZvjY#YbreD0uiWX1q zl=25Z-bN#AkO7AMV0+N4Vrx24CZ56QHtG78f~C>rjIveKtUcz)om@m1Bqz?Hy!x&9 zPEw^bMvbWib%#kPZPaxLT1ltK|7|-kV$;G*j8B*vV1_B><7eCj#@=)#_QA;8jE3Ya z63-Z!k_ah#ZVf7)#Bt2wK~u()YA=)RWg0Dg#$=SaTy0Wvn@M!)Uy+GZGNDc43Cs>- zWCSk;SLn$WI)RWt`^4eb`^n93o?gX>R?*yvHOyBwF&}BL+D`#FD*1N~KZ)v?S7<#> zrXMPO0VUO{eY?JPo8|Fla*JaLgib+!9bl+`h+udhL+6tI;+yZI(|8s-GyH?kDBp3I zaC`!wT}I!;v*a=?10RiNE`Uz!;Vyjn zGZEWz3-8(RQbLU~3H3`Fn<_!;^E8J+;sQnd1HC43A>YLLhhzfpFW}*%;3xAVkT(4d z?E(4I%Q#p5R}6 z`ucJnI;WR&{QVt%IOq3&na5D)J^YJLudo48|IG*ZU3{S5|ABQ~5hbyNA2K zar7Z#=(&uZ^J)Nq8l4xIo)V2?V+tJ$fLa{VQ-tVqdpFMJ70aZzso&1UyE3eG}iRy zv4XgZ45T??*@R{Whvi0JdobZsP;MlIzemn!^b8vKIZeuE*&;2+V`mIs`y6EEsDF#~ z+vy+g?BV*=mxs;d4~`Eh&^Ugz0t@`nK}FZ~bpjuxyooj{Wkwl-MVYQe7EbhGl%JDY zOc}rI4AraA&NyIWkhL0Avo@%5&c}g zfv^rU3!?DzczuFclh*Up3>b|uaSS*gR>2&R6^i3$4n_C@h?I*%~G&YK0SB6>RE zx3xZnV?2Y&ZD3sM^d6huu4q;lJgbeq+Jl9A;SC!-Ox(o3@LIdsSw4f{enyMdzb`OpOk?0@o?usLEw0$6*>iWBfdoqi`-f@4AjVtZFFonaB`WjAnxm@YhWalG$tnLe{^Y(=4V5|OA|wFKLZM$h3)g1X z*XTAVWBIwbcV~>$(`jDSk=r`OjLH}V&L=HvXXn#Iuj3f?|f?pXRAU8vz> zickLl22+2pD4JZqzjtu=g{6HV7M2&Qxcv$hpSeQW{j5+FCSrWlYGgOLAnRHT)y=jl zJ#+_BmQ@BFK>~7kxO?xXMI4bxgLY6Z~#k ziG!W~k?>;gA7aQm=4QLWsg&mW(q(-;cQfCS)9rmDoQY6!bMOH(WcvvR0_^V|_wT+v z4z~|>`?ouD|JP2O-#dq24zRPOR)3|3eCG=cdl1b1@8a@@xV*^DfQxy-jyk~%ePC!Nm%vS3_^gyS zcKVrn>DhymgJEb%tgWJM=`d%6$YH%d2a$_&deA>SI+PJH@W?JZr)$Oi(6f~3nWsZh zG7W&!o7(M{8;*=V)>E$US`w`&s7wEIxCBB|2#MY8qn-Zp=_mI_STKY#BbB{=zuUm( z<_QQCkm++@$mNYzThmpj0@1_at?;URoc53%<-vmC5X9vCtK6Ynk$&w%*=P*Br$20QMEa>00 zNXH0T>r=mFm}`NmhZqEJdP#7FqZ!2Ad#fc(V8ip}ym2$qB_ zOvUn$)zJ}f8Ui;SAMW;-fMX2@l1b85b07ggP!e-CNDbprPRKypovIsj3^<|yMaz18 z<1ARG1&D;~l(h~D%_JRVKD8|-va{RY7mDD+-97l(F(=_p+Qe)9A(Ad;hJ20U`j~4) zePEYy#*CveY^b&EK{Pd@T(+B-@H?~M z$gcITZmfTh&8nqmwHd*kEO9#ioeASKj^wyW6YXF zN-<{G(oNhMt{`o*n`TMNES3zRvUD%vOq5!NtZ^tOG$In($oH{bZm~zQd)yy3A$J{964Tjj z<=mMKz}9<%m*!2+GRGuXC@d7!g`VQ#nEzcAEMTi43PM%L&4){qXoRu;Tu~@$MJd=H085*j0bJfCCVx zACf#vZQl+dYWAivP+)XdP}{WFvd#&yYWoLAN1t;CBn2J<=$%wFh>qvZ^zTEts%ok!sp71%0QGWN+7vGd`QT_jyDjYtXoJb z?R%-lI}27LQYwYJoUa59NhWcX7HfdmQlg2%BDYKyIX4-JHL-!mK}ae`bqq8{)@Dl= z^9UrqGchoju3EqGpvq=ZSzVAWSx+LjaVR|JMX}!mj?*O#tjDd(BC_RkOuH$OGkJAb zjB^SCU1T#W06{1PG}l1>hTep_{Vt|k`7o^{o+2j-Q)efcY_R9m)C|43t&#*oF?aJ z1Z95vIyrv017?bjv2|-386#wp_*cfOKcMMzbXs&-hv?XmycoNO zEdo5_C2DFq%d&iVOQj_0`*%|UE?XYq18*x-K~NXx0-dybm!!AuVW6-L!!d|t7}(3V zqh&prNO{QIfobUO{G7^Aq=AlNYH2bWNf3sTR0K}S`WEw>P{9PvgtmBW#JixyV_uq_ z$ao^CLq0fKL0;R&qoGM6ohG^jSDG%{I92Joa?IsU8jA0Ux27y}@z;xU7mpeSt01)_ zi5$0-SUN9v$ZB>j^y)%O62BBTwn6_^@$68ct9c6xPnb>Z9Ui` zoLkgUZnb=rjKhUry7B`Xie0@D~bL6~)IFI+nRtG~@eyV-&)%$uC zFK{!QlAj`=aP8=(Wq;+9NlVOp*;+1Rw&Ch_E^3)66DGZos_ON13jrDNIpGwCV}g!g z>`5Xu%6c;Z>{BIcO>?Zf6R@Jb`$4V?HQBksoVfqSmtYD3megZ6H^2 z;8#jaH*IaeobCop1_Nd+UMa3bJPWRbSj+YG%%*KEFerML(I*n+fKCy=A^8lVWMq(` zIg`TCnw-jaejv~O*YPCF0XL#reE0CstCk#W26GWcAU+S;qe2(9dO&7O$f=he77764 zmv!A&3}*_{QeXyWbJFRCW6)u&h`Ky9Nm!Lam?1_CrvP?9iNAiu#mmiY9&)_v5JBa_ z*gmPX?Vt)vHV#ly+`wUasa1JQ0va1!v8R_`l__MIH%1w2BdelXxR3*=;Y7cAGE`+# zxRBNBxY_eb3Px*y8&A5lAFwEvvI1pp@A!zMwnSe8B(_n)1cbDvg(n3GbA)-Q;3v7l za)qqI`a=|G)V(?I`Iy~i>xIf0J50??)L1tTH~T&ZHk8^YRL3?Wdtafp8Gy49_Pr;e zOwb~Os*PgwMy~?aVz`ZN(r~-0c?N8})wBU{Q6UE>ldn!DE}v4R5e{>o2bDjm4JYAr zYos$qJ?1S{0Jwc${+2dHX0aA@?}8eZ9NqsVJvB8g6e^}NNDuJL2dnDY?5jW+%PYA- zUQVrhz}n@E&9^4k*D$)RlN0)WauQ->f)?g7)v6b$u-iXI za*uRkH9gLa(hOle^lPQ<%$LRD_4D-1c*%IsEIED>Zj1LuQFz-@bbVd;u~L+m7wG8S zEabz^LUo^Xg>9DbI@&S&Z)?T;PWc~D@3(AqR@*_i6o<##ca)Vt@M%fv0Q_#_J{3Dc znf!kC)4}e}Ht(my-Mw8T=lvzwFj@~j3b~qdWMJ86JKOr<>3^NPdHU`1lNUe!^!&T$ zudlC@t$FsFyW{WgdYgS%g#PyaUC>Q&Pw0jMp-^hDcCD|0m`V(@gQgw_{hj6_a9+Cd zs=)N`lO6^J{t)MdNt&Gg*6!A!Q;8yy`Pbk75`Bo?5DxD>|2WTqg+v_+hfwOde|hu# zmDl?K?AMlPS+*3No&B6f`KOn2Q@5~n8GSriq}lugFh8p#;EgN2Bz(I7I!rFGk&|pr z!5Dzt8ts3b$PSnVwK_RXZt6vqz-~?xvma<~SZ?LX`9*mWiTn}ChZuvEVFXAJShS)7*1G>LOmYgv$huL;`~og}K%32KiD(T~;A_rwLwNSe@%%=oPsv?`y+ zm)VE734b1B&xWcWYw6R5KkHi4hb=7;0SucIJ;$8RoVi;V0jst zlZu7ga_mHMO*#ewA~HZ62hsH^jsNr->Ea4MZ2LMai-?4*V%MqcXr5{=DZYs($z?SA zCOJ>6SesA6y(2-$WMN*uS0L@iuvsUuwUw=%cYVFBd(iuz_zk<0gMI4cc>DSqo{kUc zslT&BkNuq^y;oCWsTfL}%Oy$DsP^EK#L zpE1b%5pO;U>4IXv-ZleP50qki=r4Y0<}1NXROO5G&sp{>V^eg^+q!^9io>fy&Rk7I zYIq83pJL3hv{Dx^Tw#lYKIWKC21{t8sUnW@$pv@P(M4)^QEwYcQUW8_Z52H@ZP=D* z!Ke6pGz3rms?M`hkkZMO9}hIAC?&w)i4-|Q3B$d4_4L{ElV>l#c@DdW-u(3RYwP*@ zZ>`5?ujz5%i3aQEd84*890HTz;qb6FDWpK*h@iEuihC(aoyIV}cr&6)c^R&hig10+ zj=~9KRkQ+y?`aZg7N+El-_u{y^RfyQ;rgI`?Oup zOH{s9S$4^Q_zH%!U6fdz2X7p@hd-w>>2l9`$P0)|y7AC?sO=!D<~XjbV$;Th`*(8`y7KFr#UV+ix}tbY5&KyPbh?5C}fS;uHvuYoUx9i)gs=(!!@t zwnc_r1H~e)G_)U_7<;V^1*%;k!NF@T`)I5k;qnHWy@8T$7*xx%^MK%2;22{#{;{0? zw!gWV%5`4rS6wT_ctqUiWPagCnD`AlonL*sPEb%RuW$wuqGd%qicQI76=)>@m(PTWBJn18)S~gTD zhZ(j;VQ9(3JH0p0Zzx>H&2fop-yu@5NW({>Ck`QsVmtVhr z`s}YQ)mW`A!WZMRr7PfLtr*Dl*~v8~UUVVi^tOmNy(WPF8RFH_o}u=<8FQ> ztuyXv{fJ9;(l~SKm7cYH^|zmYc>4OUf{DMy4xMb2`B+uxGuIJbYsCUeEykP!Imu)9=5hp({6#z(SAWC1AB@y1qx5lVZ$M6u2!L zASbg$F-T@IHd`lo0}%VmfoLA?3Xm~{ftPNQA*#J^TI3oTt&<{6PeaEMl2)C}Y0N$F z@{Mqb5(<_=5oN5LxtCqJo3qGNXO_b5-ueilhY(VMW1 zA;rq={g$9bOph<3+B$AMU8rHue1J9GZLhJZT2Y0Pui;E3*%@GrcDhF@k#A>NRJy2K z0+N?2b&kz&39XJyiX}nCY*T*IVq)baT+J{e_Je#Y(|N($ zlA|urFUcY_H}*qC5B|Bx%2-M&4>w{`qjaoyOlw@{fbk|S^-a}y)kMH`wVrS809w}$ zhRuX`uxzh7`fzy5_6U-J&VwrS!hm8d9hb0d5kPtI&GR3BdhzXx=dXP{wI)C)31BNQ zG_8z1Gc_XdG_bcp^4eZye|K?SnZbEsVkXAcbGXx3lE+M5;^x8lPFp=gX>fE{~s9 zmK1Si?Q-LYHWkbEsx&zj^J`O!x8XMx-)n0+KbJgOZ=V0{=jT5@drq95)}$1u5AWt_ zUB{~|f&Hp&1hS8(uU|i9xiX%`%XwO3A5~Q)Pc6j(r6dq^1+HUp)pJ2=NB8Zq-iT;* zYki^KxheBKUVU1w^0dp`dSdHg9N={grWJc00nM^5Vnp6Xna=V0dNlS+KH=~%Wm^1b&ku0pE8UEeguekZauH@ys3z|3uj;3pluO+C!`5{J*(yS%ueBcO<&GDsDA|MA`v#gW}VO+4r<`<>0 z37ns8eZ1pqZD!!qwe^m#&Sbz5Da>#3jxRX&#r0m$-}c4TUeMq5^|fHIyW<<&ZLoLX zYYG(X?fHhzFxWlzzcC;8d_x8f_Mi*%vF{u5eQ@0OpP7%lzM+f=4q#0B0xj4-hEaU~ zQna*x80tbINoY{9p zgCGAkRxm0l5a5Wqea4{GbQqHXqDi!kUX;at4hRw!O_|gQLDs+#q zUhM+JX;-n>Bhp8sbwJ6oaU`pcgJvc4Nq|sOxlc_@Q^rLJvF3jDoB{kcH8PX{v0!TKiKj{fPw_1I6pKuD-^9Q}i|ibo8|`^V4aYyz4`S14+}Z}n zX2bQujv?HMCIM5voVG8EX*n(0{MIV%@H)q0ol9P+)Th+OsFcL^MT70IXaWAW%?dz_ z&+xW^Pl)V>n%C@3nBimRRO%SXoW&{&D^nD<&!XOXy|CkRNCy}v9&wR=v@}|NBfsC= zt||)f$8>1WAh!{pi6#YuXYCECTb1GNga%c(r5lk~SlKCr>OkdGlOLr2dSFKvfKIdX zWU~4p`@UZMCIoU>6Q7!>)@KK?T1QQ>tL6Sm-*2V9ysQ#C7+BJdPV1D>EZ9Y}u)&2g zr4F0^fRf6pGLpm+SI+fK3LGZzif6P6U3*z8=|~_Xu_SHW82dW5xalLHGyJD$Qn!~z zRmcAocuJW6uQ38xoZggAZ>|BJ_#%xkEPN)&USSMG686^hCJk=OqQA7NIy8n@+6|bC zU0lGyxrkt(IU?MQ11zJfBV~Ba&SBKu(0s)OB#ojMoAQygO{;rC~Uf6 z*rwdEHKNp_Idk-`0V&~fJ_Eo%pEapZ^PK!-msVV~Uq;DHEW2#6Z6|d!r#8|*7g3QQ zr7?#tn$178(?~i-aIRWT(@#bn*z3rjLECt0W^oSZ3Ha}5mi!BTGpb%JWhBuEz;6HN zB@3%ggBG!Bt$nYn9D_QLCx5S;MNVoilI28J$!5`S$;)iHH z_(MAQ0~ufB3#fhx)1DXVqopubd6WN;hUGwIz8(P(#=wQt@*Kkm)NPJ1qNm3z#oiQx zzo%LkqFg722=_}N8CDl_~lJT z(51Y+*2Q~CajMa~DgIdI(X*zD(;sroX2-uQWF$RXtR!Ks$_yr*F#Xscjmd0=6*n)Z zE}AB6AWbagg{Y@;Q9t_SZSj>GK7oI|;UnKsF+JWrxRS+D7fwKdYp6D@q3O}^};8;2Uj_4Gclu70WGh9qDAbzuk)Ulm{mbQ)f1}$n_W;_ z<y2^E$F(i$Ovnp{I;pdP zZmOKr@)|eg*7t1e`4r#~{x`<|8|&c{20PmCA8g-02HV@-IYz@FOyT${DlcBm78p}V z;GxQ=0{7nS{@%{PkxWW(DANQHk~Yw3VR}_*CwJ31-4O$&z$n8wxKc(TRmItmFtr-S z%EH(-a$4>crL4s4)thseuoH|ll5_s@=H-tF3Mte8#SHWu~c|KTSI#tvt*Fo<3a?U0U z=(e%p^yYc;0VDIlQJPU;xim{R6F?0ZGsTFhh!+qj=$gt@!|$HH59wdNf+bIIp14Vz z)kuj}dGxQSfcdh>o`L6~qHEqflLD3AafHL4eX?hS*P|jNQFJNGvg!Svs_SuEX9&WA1ewKy(2>D{I2c) zUEBY=w*Pl+|L@xV-?ja}Yx{rK_W!Q!|6SYvySD##ZU67u{{Pps{r%(P{?WZFtqu;4 z_xDBeViX!>Ce8gLktGg##Uyx`58-%s=U~rJWldl(S7&iN2gnKvQ;{Yj-kQeo8ESU6 zPAU6=^dm@GF^Eg{t-ewnsX*_3A{h}(@Dk?8vD5s6qH_btx#d9iV6IWNJRB(+EcpO{3IXw|2I9J+g86$HGL-GEYogvcv zYi#ax>+8V9@VpZE-qz&;yDVO11-fb)kKtM=RpJ<1qlw?#QPL_jx()y|)1b*fLK-IR zGLrjQ%iRR!CPr$u;qAf7)ima-ETyUI7B>{6?luR|*f!RzgSP#!Q3p+93VqUqw{9l1 z^}eb4Ce>FOL;!q)XLixVytRYJ&E5JXrdZqOg$KMCvINDzKns9{(!t%w{8}(kJ>_oEz0nGP;sq1oP&E(h zN9${JcEND}ifAmPEGNZD;`oFx*%avldf#B=0`&Vy2>WSkYft|S`8Z*)@o5>Zf+Ix8 zqXu%A%ob-DH4d-?4V_wq@sCxYP28!LBFUvF@WKnx`FB_wCF|;IBUSD?ln`uybinoNmeifYlMq(Hd7j+Nv$ zYYH`$G;Lu+uT7hTMSdX!sYld!Z&4(H;vY$Q;W~eERDiW94aO*lmp<}^7%D&TK$R{b zG=B4yZW%t2rxO;u38*C_6aWNN(V*%^Dfx=ViFY9Nvfj%DD+S2Xk56u6+Ydm(7^pE&$6<$9DdNn`0}@<7?CqwOe#rQi|S*dTFv9M>}VH1 z{oNiczkIc{6RU`>Ds_4l~bc^`*O1mxc zaoI7Jm6_o`L3um9Dn1$B)n(X>R>wEP_LmjfBa2z56*8xr&kf zlCAX~KDa8YhwnTYSzs2LtugfwsD7+j;WL>J*5(2vab25jN%qra(k^XKUdPioCwZL* z1>JLj>Y>arE=bfn!@T6e)H}6OciA)Y{N?Zp9q#2-M+44!g`*M$=Nf%0VZo~)uF!sk zbo24I30{bCZijZwUR{?2vLmNt9Z2y)*>J&%4bI%T6wRh#%VAk_{DoWib6<)(Bv7Hp zrjmZ1Y_G55aa=Q%C_|&bMn9;loESW&9B2IA><8OYQ&rP}U0<)2*VkPNtm(j=bgOPA zrs}3KU_e5)PRRNyVKn<(Jx`aGXS$lE=DxHZbt!rl{6C-tnURT+JPP%*7f#HN&}K59 zH4C+xG6@8$I1G^P&KB^?b@A>!e9}p^QlHefT{oPOKy6V|9PQS7_y zGA3i-TIw)P2=*9|;m}Rd%>A{poR3qCQT@rCGfitfrFeQ5emhcckfOOi>QE#Oo192X zsm&cPSgD}5f|9SffE_#bwt8xryUuIXDhIscK(gh^NGt8;mSb~lPnnZyoWYrmIIIpu zy#Qhde^Q;U5#Hd5a!vY+BgcOo|z2ZKinl((^B+ZC8173nMe(yoIF{igstjV{e+F=sb)`mZS@bV@^YKG!TR=nSMeU3XT9E@%P~++1{U0 zBkGppJxd$s{)d4$IPST;fOS8FpQz4z3@)pp0(}_r&)|dbI6|8g)!_N{^(XQYdruZ6 zB0ywHVT;JX>FZB_j-b|iZwsw|=$}F3Xk(C}Fb9lb7;kQw(d2YxbmO6MOf;;4AYEo> zY&ghQSp=l&l16q4tK_%IDl?g>0VJf1BJjp@cSd*%M5e7Wk1zpWH2a?{jd583%o)bl zXV^aouaYy6i_vE*kwc}Rk?ssA&;w7crJ@)oEu7J49KfD6 zEH>S|i31u4kArC;9-7whP~OBtGO+{2cB+|Cxv=#S@lB$#*$a&A!t+12jGDt?)gd^^ zV`$d({8wfb;(Cktsp03yo^B#JP%;qOUstVB3H$R^J2yn>erZ2{yuSXp1x(ZnOzPuX zS8&bikt96plw9bT`$nU%M^Q5)=$xf??-FckJ#>`n=t&lD?Xf0g*d5hA3M_B-0AG@S zVZbo6Nzz}iE~BgEc1_2M9W)sLx}-4MZx%sMyOwsvyD(AbscP=W6Y0~~@bnwCIQUu4 zljw(-cR4b+qp6`#!wd!f4egy1ImUecjqe z-o@ojZ_p-K1T@IorNkSkY)zZcI$MD#e``TG4iX2zc>?Fe&Y*1@C|BGQnYc7>^A~9P zsA>pcTgXS$U6)thC3(%u1NUIt7&L)<09(kSaYlKvwaM!)JMIXiq?0kpKyp7VY0vW+ ze6Xy)4O6)_Rsu|mgRfrb5}3>uFK-g#=87nK{%^p?%U&CWe=|5?_r#A?fZ+xpPhcL{ z<>n>ZR$B-|cvS27_vk}*c(l`*j@@<%L&}YMRn7TofsZqh3uakRIWiC(XeZcO63k{C zS`n33x}IXFX_<}whCJ}>1lh%_gS1OtmU(bxd)mRvpkZ0xi%03WswnE7uUX#M7tK!r zynuE~uey_LfXSVKVF%v*K%M3+L@hjsHb5G_lSb~o?R6(YB9MD$?7qXh0QM4nhbgLj z!x6wP>Cly#C}X1=vsf(kAyCe=&Nn#xD>RNzeNqeNsDntVFt!rw+1B(fRfuuHh0d_% zx??I8sksW{4EwcKEIlapqT8pd3o_1iP&wgneal$B2DV2CH(@?s(F0k~3n1D_5UiRF zDTDbCtX8!OM%s&1QFK(Q8a@oT#r%VV!-L%~DSQfvGE+vr${;ka-R->;_lO{p)`?=9 zg06uF3xAZ^+O=^974y-^PU17?!PXYc0(J@Kh~ZoQBEb1*z$yrt!r=P4^K>?QMHOmy zTqsE?Ta#ABWFZujWd|x9MZO+niu3~h5t5EUIK~Z(TejnIY=X)P>Z}S*1nD87Q2D#N zJ9}SpLkJZ_ruRmnt-f0TzUKDVG{~>7*Agj&kb+CRXfpEr(d`6peUB|Mx@@sCX#}Cb z1s9$n?Rzf!vWvNmHy{1I-TnXQ+O51`ZPJ9XeCB#~FWG+rg!?;y68{(Wf87Cs)NzOV zhkHAoaWQRTOzOr#4P7TDoz^~490GrKH~hNrNApgMdKTU+$b_~*{s~DSmX%6d(*x7A zzz6{~Q&I~byQ*a?Qb>w;D~1)utb9#0;gMv9w@Y#t%Ik%-z5x4Wc$YvtWDg)DolWz? zG^T+$&)@89_m9{lj}rn6VJ4QsO?vXn?W=636`qN`poRHIe!pH8P&;CG*ze7bk*Ahw zxZw?-s@tW(hJynnFw zY7H>@BMk6Y+y-?Z@a@AbGNkMTu#zjSsE!6JczsDBxg^aL}Az*xk zyzjf|dTN_)n_BQ;2cD}D-2&ZOTh)k6XX|Kg z(qY_`*%wx>u_z|f1H=;%48d}tPq{vlN#jU@^i)`+pH%Jhv2R0g(h3DbA#tn2l-$4t z;IS%d42is*Sztoec7?imU9-5pUMS_LQhJEPiYMgWHm)>Zk=xObX;zbHh+EUx-{8HJ zOh8N#o#y{Fp@63ug)6E`i<>T7w!1iuwv&Z}EyRYtC1<-jV;g;G=|FDbVzn(?TwfP0 zTNw8OYzADb_OMTPh;+mtYBxV1i!Lgu1kTT{`70OaykTKrx`7=czf-)O%b+qU)5 zalKP(ZzUs*wwoN?PUX`r|NT=+3~y(iTuv!ii$BPzHANau&i1@LNFU4dGe|c!3=_Oj zI;IpY^3dcS`>;tuwJpCkM13roihOh>$J-F8KXqrDeY3l)*UxuUF15U|WiFD!cgXO;@fnLCg~q#o`gCQ)kQ2ICE+taO zX(Sg;06!&{c-2TBs7-i@o^R0vBN-wm-V#KQJBm=);+pd62`WcvH2Z`)bJb$4*Da!z zA~}$LD+uQknfjRl8tP``6&Agr%d_yxxC#$8`#xO>;A5mobR@noUmg60RFh+n% zMPodhn0FnIm$1Kb4Jo-TT%iD!x6yyxn95MU8QoNS%&~rO-pQn=SBMY3I`ui6`dpv- z9FHMxzI4#Jck?kEHe=J%b8gVy&AzZQK>L|AEKP%$beINZ2ok6uj$WngZzxx9%}S80 ze@RmJ20HoY_8@*-ssx}gD##Hqj+al$y)iO#bBem3*5^sEEz1q9eC)WsIw0 z!xkoKC0DgWJ&;+4@y2!zblR}5u&G#3@&>2mu5v?#+onN4gSZ8%;Kqh_3>34H2g;ln z-|z;A`D>dVO-pdQ6Kbr*>L_{FBi1elOd~e?OSg{3;CTasb6#N8A|mrN%%Q>dMoQ6$ zwras$MdwN7a+j+D8*UT1zjS@wq$;G}SF;S!`L+6Ll#N}TzqTVv$tOHdU+Lq<+mY^+ zs?e$^2wPvJT%&>5ZL1*|2Uu?F!05!@;i7n-+F6l?(RTCxV_UPqXVMamC$la@V}${I zgdQAnJ6@_0j#h{uC17XqGaZ%zNuSd)L<>T8*-w2lT5)8=1dL4#*BUuAFi!2XTnn`; z7rRge(42JpXK(q|5SpTymY8DkmX5wC?)QXwsPUcvI>fFptbrHA!l-3UT3BB&>M!n!sG!5;%a{q+hl+~e$I2H}mNd_fZ9`0?spY&0Y%NF=g;~0c zJ_45GpGoTWeaR?UbII**aqUvp=95-u%dEMa@NSAV%c$b=L>0lT5J}2Xw*`R|0&}QG@^MntoPdE zfi{hq25s>~^QL1dm#cYaD;!q4xeDwg+od;b-UgI(8xW%tP16X{v`s2K_Nqx&$bA6( z26CS%dD>vkai7#@Us6@qxT!aNYb8@#`poBIs5S-Tm8{wH&WtaUvT5c=0$^jcn&zBj zmIv_I-RmD5{cpj;a89uA(J1DHmKJK^jqjBDBjp4e?c1&fMN)t^4I*kw5o1qwoTB*x z@Bh%Ct;K_1E}TrbP(Z=8ZEq}B0v$^3c_l^?{)Ty{u@sn+7Fn4uxBgdbZfmV=Rsf82 z5P;fe{Q(uYc^uci<15EAjk*$;1)2wZ`CaU1;Z;-yOINpmp`T_SYq?w^3g1M*2kugx zqZU95j6m+vgb4Ve+K_;_ds`|PjB4}mB8kZz8~i(4YlKtm1}hTVS>BtFXNt&^%v0?Q#36uw)f zk}8ZfiTPTk78T?gS*O!q+0R`nAY> zwF{5MYQ?6j6j=IRnz_0ZaZ zsxbB7V;tqKR|#J~b)UFxcqyjnrMRq}g@+EG;-WzKcYO5~={wA0v2-Blkek|0yd?Yi@3s;=&VZlE>-rhH~up z3_YOqymaU(LIO*go*|XAWw0DM#Lj|sgKf-is_oygKxGHi66I<>Mas&PF&GOh z`&U&nUKVXkv7@BOh#d_s+!P~BA`zz@7ILw4cm+R#l-^Y!XVb>2oeW#6;H8`pOnViO z;$VFph5$c&dJ6Doh(GlZtqUx)Wic-F`*m&Cg`B5?eL zitj%Wt?<3eaz#H!gkDx=B6p@|D1HVqNI+&0|9_zsjh5xJ<)VAmCc4MkX34#Dmk*4> zs#MAq{%ZM^2YPhqM5Z@PnGRX(Rnj78wOeH2YL2lN=oM+9C^p0wCHZWtS)=mgO~?kC zr1xP1O~EG3^~J_QOT1HMW=}yah*y!a!dW=VS`{E!7fV0(FT%U*fQ4acoY|>-T)VS3 zEU)-yWKNBcxwJTyPuA19_4L7dI<=nOTTc%xerMSMzM9zK5;2vB^++7_>nctXAzoJlTI(a5T$C^#EOxT#6gLyqKA)wH_+-jTy7EEnenQ ze(saErITIp#4{_~mFox#P#Y1&p0+B7FHP^My2-2N1eQ;A6pz`7p{fU!iB}>Lm)3*; z1ZNZmoH!GaeM)H!sn=}q)C4>F?#IjlZqkYyh(fZF>ZQWeC1w^eyPSAl?T6ZN#M`up)(%+0{?8_ufgyU^|(Y~xs+v({i~_qwE~e& zZ;_(=dw@Cb{A^KzloMp36D`Wjv6%P?7jN+VQ`T;USJi#1L6_?{OYa7iCI^9G)5;i` zv)HgSE`pg4#9?l~JF7y2&-7DY;QP`W2(lH&M*N5~zbOJur3l0zq>!MRqKBwb24MI-f<8*mW2|_XK#9g_`3#HJdfZQOWPXylU+DD)iu zso!%*g#{*P0B}idWMXD3z<38}k6Ny;Yx6*DtuIZ`The{~OcbDJSfTc!9K_)B6mh2C zJ6*sqvYsRyz2BmuCzFMr!O5C1-#AbA{{-8CrWl&WU3Oss0^} ztv8SI0`MA~a{dx|Tko?3Hi+K?dH5*kGaypP!#f$$jqX3<;7ZyB z$CYq{E8HA)#f6)op15!`Z=mH35QVk1^0SL5r_^1(Re&A+%(pe4EzXk^opH~T0@+v{L_w)2tT1umlew9&s=#B9UIKe!pLYk@6REX< zAYJhVI-Nd~8mLPSv7*4hy^=}QUQShnJ^M9Kw^Zj|69O4!77S5KHO1VGVGh4Q7~u5C z397)O%Q$ol4CVM)WyS-veG9_$`r7F^zH-+oVVT`>Q#p+J@rIjjgy@(uk0Xo@?Wy=I zXr*v#GG<$O8bB2KN`v7J|k0rT(lV)86Lh+mE|30JqqHM`vTQ z;qCu=J;kWOnuguV&4n zm{u~p5+QzqrbEX==ix>|-WDHAZv&nxpZL9?xqUDgVJw)o)NcI~k@%s80AhO-Gk zfZym`OoT(FM{q{YhHIo!f!PMYdT*2)&e*B^DE-uodFjC0-UKjf1b88bQn0WsrQj_E z^QK$4%FoIRke)gs2XJUkcwbeuIHIZ$c8HS5)6(7c^v>xY;KR?rFXYc6bYatYC$Z{F zY2(q`w~x+!=PmrtkWd~u@bV$NdT6|RyUiuH&4O=Bepy;CQ+}CRFLQpGn=eOiKW=Zs zM&15)3}0JT5h{G##(hc4WL4~A#s0T%KOTMyKaQ8Rpc<%5U$E7|@pjB_$JWbV_~kF= z%T0c_>HPl|a3;@^j@YkljD@67BXjRM8;vuI*7sp7SmXg2I}{*3yC~KvwwhG)W!U%8 zLZf^vzW`n%Pi8=bs0SF8V~qQc79aTAM;b7YWy7=*moV}T-^KL$%4-HqLFm(Xb!zO9&v;HebUs05Nn6?;IKii%#K>$gShg!biW1qRoGeANgna^G_rAb%DPgoV?wH-=HIgU=5y=>eyOPtWPe<%g&A z;PJx?dKijNKhaab55LmGpZMW*IFH@Yhy?zBIpZmrd;fHT| zJpAwjHHJ;YL{wA%GLLk{*E5L;)g$rNj-(`{s%)(HKzAhQDPh39~i}v~um53;joCISic@eN!G8k+6#~+Sji7q@ zFNU|=&-m(pS`){iTXV_z*)SMQ9JfTU5kZ+dV&VvOFxD>7aXiI;@;Dq_Ap;ileZjl+ ztFfQpw=72eNrC?DXj4ZF=WFEN*|rWf5Hc?)zQ%k0!o12C>X2tq`mpR#F{OV%m0K^z zN^c$Dw{;_ce6}8X0}vxe##_UJE;6jC;;mwF%6E!x3a~Q0ohPvcJ%)^6^c)}gxghpg zC4;O9NZ-2dJhp`*QJXkF$0s%qE6XS(rP)quw6h>LOcodNFpq&S5S5X7;ao@$Ktu*> zIr+4D>E&0t5Vr4iXh+@mRwY9#_1KaD?0}yu`3z zXwD0x&ah{<2tVMvHGUU`7xHNcdpXR2Wd4tfMuFH5KPMmYi?i5Vw>-yEC8cqdDb{EdWit;Y3C+n4m6x zA_Y0D3XmN%Q>b4w7LymUzJ}_nY=VH2hNlLgQhayZZ(ZaZ^Lz3V=k^l6LY4oToa=iH z*5lpQmWpsLTPp09enTG|wInI*#Ee%1eQ2=8eszh>+*b_X$3WKAC_XSa{edx zJpYq>nSUC>A))me-x2^V0o!2eF2;^AXWlW(RL?SP&NAhBm|_p%VY7?>@|vhF3x7kz&_Gk- zJ@mA<-#V8pMD|F`C9^yFI~ot^jtcB3;szt`NE$VI@;!7E;gskK$eo9;Y=k!FYT~A4 zj+(7k3ZYHl6V#p%^h_QjLKXuMl{&VFs3g->OI;-`>Ng|5|7hC>35<6%;kFv8>q304 zIBcq~+-$@A?VE-7`dtwAx*+^iLipycI=k&a0hvYtSrY}^snh@H;YOj0GeoJgvBPI? z$frBpX?F7B#^bFy5Zs`7_|d@4Id50>^qckc+p2n`k*Szg>-u5!(koQG9 z=EIa48#+uIN2;VFmEQO6T}cwktN%y#IP9)Z7U^Dz;UNm2FCib9Nj|bB`N#y(Ex30z z3lI}RVFkfs#uqSV7+Bs|;FK0P_iO?lQ}$uvQf%UGkZ+2^awX5n-Oss2otQf|7`MGv z*kF@^(byYeX^~MbOrE)o&fRkl_psw6yV#Y^QIaaOoDqf*xwnj74Zb)A7Ghfac9t-H zpkcg!)H;R;6Nk!CMD{3t!pP@b+nsP*VpbC&#K2O7BO1uq5|oVJerC#D9iu4BQ54Nl z2r&Q#XpSPPjbhx>ZJx9DO@Ug~paV}`cOTh$VJ zs3!8MMZ02fHuph)hyoDDKNDb}cDN1N)aHwh-ThkbZf1iTLc`}Z&5RD5jDa}GsAq3s z8R7i7o@NJ~{<}*m z{iaivx5Mm;!>Yyj8^&_nDIovSHIyGahthHu1gBzb{SWaHnc=PnQx640e>4;sdz}E^ z>YC-ZCar}g3e*Q5cd^)$j?;(~yNEY8B?1&XPlP8AP)TG9sxbVOINQ&ekpZlJ3$Ri( z-LuxyowuIun!f7?Iq_Ug992?s;yARHvEWeb-Etat3x5}PAKpJvyi-zFizK&H`1_I_ zH-x`#(N6*C{c>HsRN&h1MsCeBEdH7PV-AUE8ox-(_#C(a!4ynje(Gm1F=dS_i)!ue zb?8O$aqts3Pq0; z0)^mAKM=yl9T3L*;dTiBs|&)P?hcW!+aUaz?X^PqxJxp4*d-bK>vj;Xp&`5`6$T=G zG!P-A)WV8BXh%%#O4_>2`gc#MuWI_$2Cm5s{b~a%NU9;uW<(NA2g`Xjx&>-&|JiQ)Rio_>cW?WzcH6%-+CIH|+kdg!epBaf?o|;3 zr}ve0Yx&W7dTBkeHnHvI^R{h#hR_GcCmazZ#@%|6=J|Tr1;+QSE0wmcR1Kj2XaQ(D zRmfVK%UY;H9k`#_-ut^(|Hth>PVf|zg#i2D?tuMU3t&IpeI{SG0roT7dvN#afBW3M z{Jeo~PVSCw{@X@3PrJ^^=iIH@2*==@QPY>}?XxaOZnyNX2mroF zG2LZsq-@t#Ol(rk zEI}Cp9jVQ)(-_{vn~lB~$lnw{^JwSj=nLd<H1nwRerO=jB+86sFKOT1#bXioY6_BVB7eM%T{cJpqC*;($t^W!EQ_VdnAn&`9@? zZm1m;sMHV2xhO^Ta&Fhim)6L2e7q-N1{?5k0jC8INpgK%Y*K~j6#daqK6J~C)ca!+ zhTFIwXyv{jFqH9niz}UQAxC>ma)G_yZD~Yv_1P*5Z<^e}$jX#!fatpTQtc5-R4%=b%>|#zTcYm$!s6f35UHY2}k+>b>JGf`*((q9&qnN_{eD6)UEL zXO)IcP6A}U0meQoG2*Ru zS;kzX>DTB)QD|RtN>Iup2{Yp*h0+TP?e4s@ySsb;@T65Te1QKy_TGfOZ5wOY{ws`< zC$Sq@F&AfX#`R>a=Q*hd#k)7NL4Ep2V();N7U%Xz9f0O1Sk+QuJ zq{k!X6oxhL=ZT$GS9=e>f%6^p#N1!)|N9uKw^|1X`L;^N)Qtz1Wlsht4n(*0Alxp5 z*>a#+!Hqj0e?`9cEN4{D0N3sI)?I06f^xnbYY)C*x4nPAqzvJ>r?e5hoc{aKgKvw~qkkVSR>OZ|=hGk-AE$KaZ#qnu=}Cm# z9LECOOucnj96kF#iWYZgk>U<5E=5|rxH}YgFYfNp;_fbm7I$~I;_mK?E}ZG}ey{6y z{`l;@$*oByGn2_olAGuB=_p9eo$xm;J;7ozHJJ-FCK0yeqrPOfj;JDtd))+YL-3OpC%yuY5BBlZp~48Jo-iP&|sIxDJH3xR#CamE0IilZw5%ssG-pNb)h>Y>~WY19%3dK z)weKh`H*3mOIkN~fAsxY#pwN0ldHr_N$GtC`wQP)X^t{!0CCT zRW=RtTk~(UB{I6E;UAj^}LxmnIG;+Mju~d-;*ySoy?~k-1+CtlNvA*@j zB-Ot8lzlZ7gEDwO{KczXc{mQ^p1c>bnjY3We!UY;fhsfOBu9VqAUY&E`;e0-|u5DX=gmrC<&#@At^;&CiCYLUu_NwxG?J;WVXLj5j|0AMA$JG zhy5zy*Q(+y^v%i!QLKj(>3JjEoHe&SWrj8!(r<;FBrihH){pHUv^FRLt}R|H@Fzbh zpWWkoH(<#iQBg#S-um=9>taj65E*x_^h^@#06YF_SHR^1X7(Vam+8K(>O4D`J9j zr|p0-kwBthnqGOBgqX~IMA%S5m3nqR{Q#AN8b2SELk@hNjwbe1)vW=vMkkm48?$*$r;cYgK$0BR_X)z)aN5 z*J9@{#HToqgpXKt-k}Utp9+G{+;Tdu@;WA?Bj;b;C=op_>O9DbC&(4eN%W64Fy+ZP!Fbvp8Vr&joSFy0KYj5VR3SO@+IWb*;BtwXr35uovM-`>udU!Zmhi3ZNQh{8$k2vKQ z+0c2Ty;ry#tje4u94G7ak8*9EWR^VVGw2rzcht+eh7Ii0vWdc96{_C@tUdAaJ>Xa4Gw(JGRo|T{HbPVV&mMayet{RtG@H|+azs2nsqKZ7M2@Fb%lE0qoKkUUhtdcYl z@RC52hz$@7_jwdf+R8mE;V$~(>V0xm+oiijD*pN`GiFTd?d()*P1wtLZB!&?h zx_tAlnEgXdUecE&fhv7RXH2)Z`I2$2G=YgX5l%DI`;O|Em!-S8#}WAI7#bcD(CjRRl=dWry0J4UDPdMsN&yZ z%}P}sCO2Ug8E+uQ4?%tleorZ^>7@_pI~UT2)Aeksx2Cw&9-er&^^a;(CvO?Ap&iqk z@o?+V=aL$iH=XzQL*fr`JSg7TttlEPBw;w_;|nkK7cqK6!uronT-vwwN(QwBQrjqJ zsvyh3LndXU8aSgQe|={m7A1_|_BIaPcRy^z)Tol4+EpvM)1d{!i&Lu`8_UErVNM_S zu&LuvqsN-Yn03nsv_E2>AIb?!#*kTGPS(|H@eT8Mkcu+lHlEl|m_&MnE-cJ~GMOrU z&>P&lTU=CSF~4X?;Xhv~`)xs+?;)cp=wZXBu;MTYn#zb5_#K;=j~pQ3BN1t_4ppyO zOyd2p5Fj-w!5<5MFP*eqg~%JP+Lk3UtbKb#-*Y3yi8LjmJh&yZy~h$gt-4XSX^TG8Gf7k zkZ&ZBZIQyIK%%;dYa+UPS8xh;{A{-&d~_$J02TPAecGvOoZ3i+fA>-E~%c&i|5;B zwM8g*VxQ;64gL1l3ykWG*UKG-zFu~iK@7v?N{cgXd zMm&!%$u_@K%WI~+7kZ;;VD$QWaXMAB^2mvv4{L(k0vItB2O_4?202(UxMteLpYLTc zz|g04o(mVMd>hmk)_#gRfH=$xyHa3t=zQH$zlEugA%8j9WPUPyNJ;2M`BEamNZxwU z!zib}y*tSpmGXRp^VBP&>`|FrbMbU*@K^5^G9~eIv3tK^#F4u6@9e>(Q(P%~0rjK; z`>mYOT_`sP^y`lo3eGTram1w&SC)#gu5tRwmu;f~ZmIa5i;LfrN`1E~>Ww=!T|(%+ zAYrM3ly4t*vc(&)$b*A}lL%BX#{Ul4{)l;<+_F@cF2KWlhaH6(SjG16?Sy)US%QVi z(eYDZ@3(?3oL7uO+(TaMd>%)(l-+x;FbG+;mLUdT*sx94`Og{zJ1`7dqZD}-h<84+ zpCYz@+Mw%^lpul3+Vw%8$#i72i9l#$r@GF6m1HMZ3}TaGk`E())R^+yez@37SYYZt z45R51gSK(~^k7hGZ2k(f*KYZk3f24HAg6&w| zo_8*P)OrhtaYRXPd%W=3!F19n&II+ncX$sOzxQw!rXoGDBym@K$T}{$by1RidM?H~ zQl{54@`UZr27+VMN(t|8)4???3W`CQ#T)bmF-u9~FK{caUH$iQluG`b$CI6?2DVl z*wUM61w&8)bmRru7Ut<8ym;H3`z=+smN&U)_~rw~mH``IJ#^XLl*jJKJ1(MNd9VYnpM5wVa~{_m zW5+yV?@X`$j#0nnRoOtSfw`FWCR%6H8Q&&(te0UlO$5@vM<}9@_?(7v-oVzCmA5r_mZZ^eMbUY3A z2@e~p;py>)a0fu=!e6e_3S7@RW0}CX360~dZ-Z>alv=5VA(QmIG zQMOs%YwfzHax}O1z#CpU;(K|gOOaAac2}CI28%kYm%CKW+|Yn?zi<6PGV;FdCX7x^ z#$G~{H(HRTbN1{!_P4vT6$h{Ry%QP>yPQ0$8eEFxdm!h;P%`GA)08LpP%KY!j=`xF zzxK|mmiu#3# zF+dX@#|rDoU!RWiC>(?u7FWaeAemM)8G+;5*6#91_dyF$|JCKz;<$B1=M9`}u4y(d z^R{3RUxvt1Vj&f9ufa$aGymnLS~?t#5c-hetolK#4zV^U5PI1deDO2tqsZtsAviil z+}2iJx|57eoh@jV?7KjRP4J<28?%2i-s@~{K4(5c($vBS*kw3czAtMEdnn9@6vT43 z**ViWvZ0a{^YD%3HQw<;$rQS=n!(u)J`0Ts?4ExVm?Vm-{Cu!Sw59k!EC)9mlt*$> z&cfdN8uC5ylmvozti3(I;*gv_9z|fc$w{LK6n%B!BJM_c0@eBCM9&QcvT&u73$>+K zssf9>v3queg+P}~#CJ(DAkBGRIk9(isK&d(WtE+USQQ6**MXot)?H1Lz%)r!%6#TiDE$A@@i{$yq0RFY72 za$vo^alCe<9v?osP8>@fTv##!2~G^N%J)NjGLvv491>HJKFSZj@`58x_`hbxTV=`| zuk5^xO?4gU!^OE>qd)9?ROVOitbO$NiuG}^xhLg^Q|CQ55;<^s?kmn=*Y(ayK&hLC zQp#WD32$pg7$xmU6OWsUa3K;JQtmtz^fym759+Za93BP(rpnr;OG1_J(Dt z!9p)MANoX-zOccRY?dT^V7J6Knj-h^3bU-S7n^MF*9Dds%#R@xlGRSk;x{>fKSZtT zQEZAp&C!$YK>5Fj%HD7;!=`#BvBykM#i|>H-ntmv9_)_th)ih#d;@W5akRQNzSJ zC|B@E<&ljL<>roXfrL{g$DF-H;zbhonRY-sD*@YxySerFiQ5p&z20{C9|;)(-bIdy`z zSBTJCUQytl&Sz|&g0`V1;tjoc2M5!|J zL23s>S#&*t%GgDOO|n1ofEv7|x#Pa9Aphtv;g8|-hBKNOL3>6_ndAG*yC+hWI%#36 zM<$oa4^kX`J{3*fy(a_JxRkbt#+r^8)U@z~ z!sI;|EFU*Hfq^kWaA1J(<|_304RW>VZAn5rdFf}6C+zDEo>e#)CC3O*X?a0{*t>g$ zcKF1;y>8hb+CSWIJ#w5Jw9k4)(1GpqR)x3Y)?R<-c%Qb;LY(KQAnUNCE)Wv2)jZN4 zgs^2;k*0ol=nB!4-6yRU8{yyObjjF`44U@nrfAv(OoW9xHYI4|Dg=d-hQ_|-LR zCvL4mwjnu?-qR7T+-o>1)X;`u$KVf8`Du<+r=00weAA!y9WTSCrJT(n@-dHTvfIwv zO6{p3qQN6-Ephh_N#6_7+Qj>&jQC2Y*|e$szy>ByQV@RIx}!H_^cVhm`fV(m{Iwgk z*XbDR>vb;E%u0(m<$*FXcDDC#-@-exw}_M#6ePU-#J`wGr=4kCw0|#$Xu_nfgQUU} zb`X;95llS%pkQ}CbJl5nOppryX*0_#eA{WZJ;ImPp7Q5JDnzNJ-DSel55n}^D*3|J zCVN2c9f8b>vFRUh??P5v!GGH7jS5x^_ZO2pEqdHuetEt`-@jd1yuXxw{Rk=Kz&%=e zxiSuyPX5qJC)rZ*y1S@X#U8R96XqnM1L6%&)!Ugxy$+2HeK!Feg^ZWYh5?MYv-c+l zCrGl}9eTQyd@`Zppgbk8f7B*1J=Yd2X_tS#2iK?7HeC-o_=jU`PT`YSg18rXL#uk~ z!`-%juQaN)Rb6JmKFvFKuu^W!LDiGg;VcUFfd)dIUT{{~Uo08KDk)lTa1ueo?;vu* z&@O9titu*1leR4)4@|eh)b6-d(8^&|M4KI_C+|h(n;Y-9c2By3yy!|NWRy1y6oeFY z7Iqo0ti9IJ}uZV=ofY?+f)uR zw}D5tmAi^-PqJg3fPi=N%jn%GP5GFG{ZiasZ$392x@xy%v>S9#Lh_s)Fe%%O|2~=A zg7d1ei{n7LVLb(ceVZxd9fWmy_T{VW+mp$6Gt^#-%T)Q-0iDzCMvL^>X;9o{VYcrk zCK>Ok!W69MJ}m#IZ=Jf?%sWcRDRH)}pYqlW&I@E|ugqy9%xS0L?{FzmqZN|b2L007 zNQ8x&*W)m%KQ_EaNfM=oEVa%uGzy?q6D4H0PVKR;WTgLeLZ}GBz!0Lg3x4r^6{WKS z$1zu>JaQm4;%4ue3tm5(bh92e&0kkPWWHmFF+^-PDZp<*)M^px`nGL|pbQ#0Pa}|^yadV3Gd@}ukT`ql=yKt~>kN7gS-rxesGHoi?Dh}lH7I1Z$BkC)X zE!@3v)DBVQ_!D#)&Edva|GmIc#~!AbUj{fhh^z( zeTMYJw#lstjVHCyB+MtuWmD%*Us%djqkC^7#yAYy?R9r=%8PZjAipr^JS(S%XsqG> z^i`<*%pqLgm~Hg1$<4L%-hI*-Ukl+$C>p6Q+$qb`HT2!PHU?EVcF{e!g9}CQ^W~_= z=lu_Vnlj%_rN7-RydBf@A9lW;RQo~LZn?+;f6rV^vc2Kh``ykRJwm+&9gA7H`r@mf zkZ@s^-7(0Imxvejx&;tI`I3nPDk#%aYNHatJbH8?w8MJj1lP* z{fgt2k-}!M-r*g=#6{S5e0SY_Rxo?Bbyk3I$@COrhJay+(R176IE7K8{Ha-CLU=kD zC&W*r6{WB?>kGY&4{x6#uYnWn3Ea`m%Y*h7G?=b)1+5y1rh(UhWCCjBD91+> z`O1;)ciYEw!*w|jZ$32@_br7hWOS%9Zs6=&?Jv-H6SZzw)XsM}I?T7+97EZYOn9jx zQ}zj0lGpCf1{(c@hnLGkvUNv~Z$q0k#yJvLfmgo&ht9{ZsZ%AH= z6AjLv<|V+J77RHTy?J9KKG$UT@>3gezx}JgpIP;VmSDTr<4Ei$T(})`9^$sd#&$US zrykHxOa0M<=7qpTuGmX3qF8kdQ@_Y`zDe{9-&P_M|8;Y~jm8h{oRtnicKKkeHnZ?V{1`WKF~uxP{I`J-opNPeD&zwrJ|6$To1QsQvLi9B?j)(#>Z#!r z8HqdURv_6hZ|B<6CxJ(a#H}6SZkN;k>Do_|ABkH@do#=Ku7riYwHotCC_u#xxUu$G ziGT=R?5i(OrzV`veSytJE;}#Bh0jpTJ!dj{gfH(EUcEy@37^Z_FWoubgwxeh zgL&%NE3+HPDs&F`Q_j0l7|z#dz7~!gF03i%goX4ksGV(Td5}5j$q+xqsK?U&mrDF+ zgKuD|%E_9Sap71;AM;xr?`OX=BF{g>croEw=}}e( z>r$G-u>Ry}-NKgMmihK3A+Wb$aWAO(Q2PQ}Yw|1b+y45%^JEGERRbAkiGIfXiy1Av zl%Fz{z)#jan#<4d5ecn zeUFC^|1N_h>QOGX;^BXo2lxxX|C9TSHs%u^kEKUByFUACrvyNK?}e7l6hOu$zysWr zjQ|W|fME@xWzzv3!P599@U(6076G8S;PKEp<>5nv&<>8VdZ*uJv>mZc6!!`dul8Mg zryud~?LlZuARxoeVJ(l&Vat|K58s4-E`|#pzMU7^>c7u&@<2%Il~);=wBiY_a)Q1I zOEFbL_D+DM=sS%bd#4tP&f%FE??DKyIS^RM_>Yb2!5YpfmPP%a3xdz6m-& z6sEoj)5O`}jLiKZ61%b9Uc!NpjKp0JGB2-F_8~)6O7Mt`pLH$vhFkk7^u$eI5@sZ zu}ujSBoBpO^;NbbGPIO?1V5(TEH_4Yf5K@#;NvMiMt=UjgBXi8$w4-^`EWXu37nC<~5%DL#`} zW!-jukAF>(Z+I(8*zs%Lgs_n^yvc-_%jVsW-*tYcY<&&Uev>h;dMk3?7IsC3uw@wm zY@(F2{@cu!b~f0{j_*A|OYgUQhJBH+*HiNFvPeA)SPhL+F8rHUoslHZ4@0h2`Ca4n zrBl;RCkeWdGPx3L=hh4C+Y!zQt1dQWU0-%1NLO=Ts`XSSPLb?BjqRai69)Bm8{Tp_ zP67`kr_woV3vMqV(2q`=lWaNB2VfINhlf)npPCJwrYMHY!j8a7eaMqUFP}9h+9#;{ zUxU++*Q<|p-wzy^z5g2T6;$ilZx{GUXfzz;={aJ=pnHwc2YzSU;s1Q$Zd4%1L8!~@ zPcrm&U3EXW5LD}Y+sSsB^YO(T>g~}gTKK&SVz&DSH`<~M1d{F52!S4S58TspufpGo zgEcyI+U^hRha5hZp6}N$0_fn{K1>j-qal5Az3)TVZok)v#pnK3sfy-szDQ>kIB#ux z8i&~16vhapm&MAQeb2;cv#KB?DXJV2I=qSmm3X3Ov?BO}R~!2l?id8s94sJ1i1E2=)#b z;0U0tsEo&WXLCLG7_eT#`O{{8Hc~F;kmqe|w5Kh$Rz6Cb1`jxR2{=KYAzKdH$mk%L zPNo-%B|~e2r(XDx>FoXp$m|o!Gzcw}UE~R74fu?km$p;AA`!%LyV5Nd+2#evVEMvy zPK&@Q_-??yS^u#0;=k+UHP$7V^QzrE3vQ`NDVwS|XaQkiDjtr}+{gJ&9@lzE-t zy#r@{0YtJ-q5CA%nCYoM$LIiR5ctNV!z8 zMU~DQ@Resu{Am9w7^d#rnt928a>u}9c@#Nkt?App@#hnP%;edFgw#v-wazs6KI!-+ z4<&*74XA+|E={DGGMh<8D(+@CRA&3EXh4oK&Nu7XL|uK(_qvR!y)u6Ii*d6dBn($X zRmI#@5I(Btn+MkWJGbHF^JF=)-8p(c!XgRhzpOdg;ZoyYCNw}WVel|Xn1rIuusVu$ zPB#p~$&7UlM+@WWj&K{COi_Q>q+^-3Vcr$x`%N=>BMo(ePiI|jrRm7cbMT`MXR#h1 zrn9~4h9xKUr*{1&4#T>P$%TGnpcH!ljI(fbyK014saR~zIDBPH=3V=CihD>v}Ot3N7%XDZ+j(c{db2lr^@U|V0eW5Y+0ex8Ez39la7u+P<$nP6k-8P|99Ba zod`G+r2|J-O*p?o#_!6Bj$&f1Nr%CsQDq=qBn{?h8NwqE3tMp-JznH%;@<1nmbtA9 zj#PW-#$ZFfmE6B63`BuJ%p7sPSBV_vmYziw=|8BuztSo<+O49Xr$;rP$o>hHpF>~v zYVrYXIjeh%z-=*>dcrBN!J6kn*7RPCJ@O!&^}^21EXq7=lGUrqr`FlaAsab;ZSZ^FKB+L~OrQ>DUIymPw8f&#$;F6@+Ud z9TDVSEBXyXvM>1L@Wj0eBJw}^DY+=OO)M`k2+2gG5T*o-8MX&lQ8#j`{V6`tyJKvr zp{Ho>esx+xK(~^^7E_bqEG;lK$+}W;I-|E|z9Y6om=iisp|?!*5JWxEl~aP9&p6`Nd^uA~Z#QkO2HWiS5GXx4N>>{ANkW+VX2daZ~h3?cE$_GBdL2w28Q+gR7w5ZEn52S6jj

{ +export interface ModelMetadata { asyncapi: DetailedAsyncAPI; pointer: string; - parent: P | null; + [key: string]: any; } export abstract class BaseModel { @@ -32,8 +32,8 @@ export abstract class BaseModel { return `${this._meta?.pointer}/${field}`; } - protected createModel(Model: Constructor, value: any, { id, parent, pointer }: { id?: string, parent?: any, pointer: string | number }): T { - const meta = { asyncapi: this._meta.asyncapi, parent: parent || this, pointer } as ModelMetadata; + protected createModel(Model: Constructor, value: any, { id, parent, pointer, ...rest }: { id?: string, pointer: string | number, [key: string]: any }): T { + const meta = { ...rest, asyncapi: this._meta.asyncapi, pointer } as ModelMetadata; if (id) { return new Model(id, value, meta); } diff --git a/src/models/channel-parameter.ts b/src/models/channel-parameter.ts index bc60be07b..6aec455b9 100644 --- a/src/models/channel-parameter.ts +++ b/src/models/channel-parameter.ts @@ -1,3 +1,11 @@ import type { BaseModel } from "./base"; +import type { DescriptionMixinInterface, ExtensionsMixinInterface } from "./mixins"; +import type { SchemaInterface } from "./schema"; -export interface ChannelParameterInterface extends BaseModel {} +export interface ChannelParameterInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { + id(): string; + hasSchema(): boolean; + schema(): SchemaInterface | undefined; + hasLocation(): boolean; + location(): string | undefined; +} diff --git a/src/models/channel.ts b/src/models/channel.ts index 75dae611b..3f360afc0 100644 --- a/src/models/channel.ts +++ b/src/models/channel.ts @@ -1,3 +1,13 @@ import type { BaseModel } from "./base"; +import type { ChannelParametersInterface } from "./channel-parameters"; +import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from "./mixins"; +import type { OperationsInterface } from "./operations"; +import type { ServersInterface } from "./servers"; -export interface ChannelInterface extends BaseModel {} +export interface ChannelInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface { + id(): string; + address(): string; + servers(): ServersInterface; + operations(): OperationsInterface; + parameters(): ChannelParametersInterface; +} diff --git a/src/models/components.ts b/src/models/components.ts index 9bca87a5a..8e5d16a8c 100644 --- a/src/models/components.ts +++ b/src/models/components.ts @@ -3,14 +3,15 @@ import type { Collection } from './collection'; import type { ServersInterface } from './servers'; import type { ChannelsInterface } from './channels'; import type { OperationsInterface } from './operations'; -import type { OperationsTraitsInterface } from './operation-traits'; +import type { OperationTraitsInterface } from './operation-traits'; import type { MessagesInterface } from './messages'; -import type { MessagesTraitsInterface } from './message-traits'; +import type { MessageTraitsInterface } from './message-traits'; import type { SchemasInterface } from './schemas'; import type { ChannelParametersInterface } from './channel-parameters'; import type { ServerVariablesInterface } from './server-variables'; import type { CorrelationIdInterface } from './correlation-id'; import type { BindingsInterface } from './bindings'; +import type { SecuritySchemesInterface } from './security-schemes'; import type { ExtensionsMixinInterface } from './mixins'; export interface Components extends BaseModel, ExtensionsMixinInterface { @@ -21,10 +22,10 @@ export interface Components extends BaseModel, ExtensionsMixinInterface { schemas(): SchemasInterface; channelParameters(): ChannelParametersInterface; serverVariables(): ServerVariablesInterface; - operationTraits(): OperationsTraitsInterface; - messageTraits(): MessagesTraitsInterface; + operationTraits(): OperationTraitsInterface; + messageTraits(): MessageTraitsInterface; correlationIds(): Collection; - securitySchemes(): any; // TODO: Fix type after merging Souvik PR + securitySchemes(): SecuritySchemesInterface; serverBindings(): Collection; channelBindings(): Collection; operationBindings(): Collection; diff --git a/src/models/correlation-id.ts b/src/models/correlation-id.ts index 347908f40..4f208f92c 100644 --- a/src/models/correlation-id.ts +++ b/src/models/correlation-id.ts @@ -1,3 +1,7 @@ import type { BaseModel } from "./base"; +import type { DescriptionMixinInterface, ExtensionsMixinInterface } from "./mixins"; -export interface CorrelationIdInterface extends BaseModel {} +export interface CorrelationIdInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { + hasLocation(): boolean; + location(): string | undefined; +} diff --git a/src/models/message-example.ts b/src/models/message-example.ts index 273f24b1c..fe535273f 100644 --- a/src/models/message-example.ts +++ b/src/models/message-example.ts @@ -1,3 +1,13 @@ import type { BaseModel } from "./base"; +import type { ExtensionsMixinInterface } from './mixins'; -export interface MessageExample extends BaseModel {} +export interface MessageExampleInterface extends BaseModel, ExtensionsMixinInterface { + hasName(): boolean; + name(): string; + hasSummary(): boolean; + summary(): string; + hasHeaders(): boolean; + headers(): Record | undefined; + hasPayload(): boolean; + payload(): Record | undefined; +} diff --git a/src/models/message-examples.ts b/src/models/message-examples.ts new file mode 100644 index 000000000..ddf9821f0 --- /dev/null +++ b/src/models/message-examples.ts @@ -0,0 +1,4 @@ +import type { Collection } from "./collection"; +import type { MessageExampleInterface } from "./message-example"; + +export interface MessageExamplesInterface extends Collection {} diff --git a/src/models/message-trait.ts b/src/models/message-trait.ts index b148318c0..27400e7ba 100644 --- a/src/models/message-trait.ts +++ b/src/models/message-trait.ts @@ -1,3 +1,24 @@ import type { BaseModel } from "./base"; +import type { CorrelationIdInterface } from "./correlation-id"; +import type { MessageExamplesInterface } from "./message-examples"; +import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; +import type { SchemaInterface } from "./schema"; -export interface MessageTraitInterface extends BaseModel {} +export interface MessageTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { + id(): string; + hasMessageId(): boolean; + messageId(): string | undefined; + hasCorrelationId(): boolean; + correlationId(): CorrelationIdInterface | undefined; + hasContentType(): boolean; + contentType(): string | undefined; + hasHeaders(): boolean + headers(): SchemaInterface | undefined; + hasName(): boolean; + name(): string | undefined; + hasTitle(): boolean; + title(): string | undefined; + hasSummary(): boolean; + summary(): string | undefined; + examples(): MessageExamplesInterface; +} diff --git a/src/models/message-traits.ts b/src/models/message-traits.ts index 3730bbde7..4a85d226c 100644 --- a/src/models/message-traits.ts +++ b/src/models/message-traits.ts @@ -1,4 +1,4 @@ import type { Collection } from "./collection"; import type { MessageTraitInterface } from "./message-trait"; -export interface MessagesTraitsInterface extends Collection {} \ No newline at end of file +export interface MessageTraitsInterface extends Collection {} \ No newline at end of file diff --git a/src/models/message.ts b/src/models/message.ts index 25c764a1f..ce3293a7c 100644 --- a/src/models/message.ts +++ b/src/models/message.ts @@ -1,4 +1,10 @@ import type { BaseModel } from "./base"; +import type { MessageTraitsInterface } from "./message-traits"; import type { MessageTraitInterface } from "./message-trait"; +import type { SchemaInterface } from "./schema"; -export interface MessageInterface extends BaseModel, MessageTraitInterface {} +export interface MessageInterface extends BaseModel, MessageTraitInterface { + hasPayload(): boolean; + payload(): SchemaInterface | undefined; + traits(): MessageTraitsInterface; +} diff --git a/src/models/oauth-flow.ts b/src/models/oauth-flow.ts index 0fdbc90e6..12f39223b 100644 --- a/src/models/oauth-flow.ts +++ b/src/models/oauth-flow.ts @@ -2,9 +2,9 @@ import { BaseModel } from './base'; import { ExtensionsMixinInterface } from './mixins'; export interface OAuthFlowInterface extends BaseModel, ExtensionsMixinInterface { - authorizationUrl(): string | undefined; - hasRefreshUrl(): boolean; - refreshUrl(): string | undefined; - scopes(): Record | undefined; - tokenUrl(): string | undefined; -} \ No newline at end of file + authorizationUrl(): string | undefined; + hasRefreshUrl(): boolean; + refreshUrl(): string | undefined; + scopes(): Record | undefined; + tokenUrl(): string | undefined; +} diff --git a/src/models/oauth-flows.ts b/src/models/oauth-flows.ts index b9e040d3c..8568c2d8f 100644 --- a/src/models/oauth-flows.ts +++ b/src/models/oauth-flows.ts @@ -1,14 +1,14 @@ -import { OAuthFlowInterface } from './oauth-flow'; -import { BaseModel } from './base'; -import {ExtensionsMixinInterface} from './mixins'; +import type { BaseModel } from './base'; +import type { OAuthFlowInterface } from './oauth-flow'; +import type { ExtensionsMixinInterface } from './mixins'; export interface OAuthFlowsInterface extends BaseModel, ExtensionsMixinInterface { - hasAuthorizationCode(): boolean; - authorizationCode(): OAuthFlowInterface | undefined; - hasClientCredentials(): boolean - clientCredentials(): OAuthFlowInterface | undefined; - hasImplicit(): boolean; - implicit(): OAuthFlowInterface | undefined; - hasPassword(): boolean; - password(): OAuthFlowInterface | undefined; -} \ No newline at end of file + hasAuthorizationCode(): boolean; + authorizationCode(): OAuthFlowInterface | undefined; + hasClientCredentials(): boolean + clientCredentials(): OAuthFlowInterface | undefined; + hasImplicit(): boolean; + implicit(): OAuthFlowInterface | undefined; + hasPassword(): boolean; + password(): OAuthFlowInterface | undefined; +} diff --git a/src/models/operation-trait.ts b/src/models/operation-trait.ts index fe7ca9039..baeae0f32 100644 --- a/src/models/operation-trait.ts +++ b/src/models/operation-trait.ts @@ -1,3 +1,14 @@ import type { BaseModel } from "./base"; +import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; +import type { OperationAction } from "./operation"; +import type { SecuritySchemeInterface } from "./security-scheme"; -export interface OperationTraitInterface extends BaseModel {} +export interface OperationTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { + id(): string; + action(): OperationAction; + hasOperationId(): boolean; + operationId(): string | undefined; + hasSummary(): boolean; + summary(): string | undefined; + security(): Array>; +} diff --git a/src/models/operation-traits.ts b/src/models/operation-traits.ts index 31e8bcc8f..77332b8d3 100644 --- a/src/models/operation-traits.ts +++ b/src/models/operation-traits.ts @@ -1,4 +1,4 @@ import type { Collection } from "./collection"; import type { OperationTraitInterface } from "./operation-trait"; -export interface OperationsTraitsInterface extends Collection {} \ No newline at end of file +export interface OperationTraitsInterface extends Collection {} \ No newline at end of file diff --git a/src/models/operation.ts b/src/models/operation.ts index 5eeaaef04..beccca7cf 100644 --- a/src/models/operation.ts +++ b/src/models/operation.ts @@ -1,4 +1,11 @@ import type { BaseModel } from "./base"; +import type { MessagesInterface } from "./messages"; +import type { OperationTraitsInterface } from "./operation-traits"; import type { OperationTraitInterface } from "./operation-trait"; -export interface OperationInterface extends BaseModel, OperationTraitInterface {} +export type OperationAction = 'send' | 'receive' | 'publish' | 'subscribe'; + +export interface OperationInterface extends BaseModel, OperationTraitInterface { + messages(): MessagesInterface; + traits(): OperationTraitsInterface; +} diff --git a/src/models/schema.ts b/src/models/schema.ts index 5a8af5d6e..c6b4384f1 100644 --- a/src/models/schema.ts +++ b/src/models/schema.ts @@ -1,3 +1,4 @@ import type { BaseModel } from "./base"; +import type { ExtensionsMixinInterface } from "./mixins"; -export interface SchemaInterface extends BaseModel {} +export interface SchemaInterface extends BaseModel, ExtensionsMixinInterface {} diff --git a/src/models/security-scheme.ts b/src/models/security-scheme.ts index d4ab1813e..b551f761c 100644 --- a/src/models/security-scheme.ts +++ b/src/models/security-scheme.ts @@ -1,18 +1,17 @@ -import { BaseModel } from './base'; -import { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; -import { OAuthFlowsInterface } from './oauth-flows'; +import type { BaseModel } from './base'; +import type { OAuthFlowsInterface } from './oauth-flows'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; export type SecuritySchemaType = 'userPassword' | 'apiKey' | 'X509' | 'symmetricEncryption' | 'asymmetricEncryption' | 'httpApiKey' | 'http' | 'oauth2' | 'openIdConnect' | 'plain' | 'scramSha256' | 'scramSha512' | 'gssapi'; - export interface SecuritySchemeInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { - id(): string - hasBearerFormat(): boolean; - bearerFormat(): string | undefined; - openIdConnectUrl(): string; - scheme(): string | undefined; - flows(): OAuthFlowsInterface | undefined; - scopes(): string[]; - type(): SecuritySchemaType; - in(): string | undefined; -} \ No newline at end of file + id(): string + hasBearerFormat(): boolean; + bearerFormat(): string | undefined; + openIdConnectUrl(): string; + scheme(): string | undefined; + flows(): OAuthFlowsInterface | undefined; + scopes(): string[]; + type(): SecuritySchemaType; + in(): string | undefined; +} diff --git a/src/models/security-schemes.ts b/src/models/security-schemes.ts index 377919fc1..637acd74d 100644 --- a/src/models/security-schemes.ts +++ b/src/models/security-schemes.ts @@ -1,4 +1,4 @@ -import {Collection} from './collection'; -import { SecuritySchemeInterface } from './security-scheme'; +import type { Collection} from './collection'; +import type { SecuritySchemeInterface } from './security-scheme'; -export interface SecuritySchemesInterface extends Collection {} \ No newline at end of file +export interface SecuritySchemesInterface extends Collection {} diff --git a/src/models/server-variable.ts b/src/models/server-variable.ts index 906b7063a..b729e05e1 100644 --- a/src/models/server-variable.ts +++ b/src/models/server-variable.ts @@ -5,7 +5,7 @@ export interface ServerVariableInterface extends BaseModel, DescriptionMixinInte id(): string; hasDefaultValue(): boolean; defaultValue(): string | undefined; - hasAllowedValue(): boolean; - allowedValue(): Array; + hasAllowedValues(): boolean; + allowedValues(): Array; examples(): Array; } diff --git a/src/models/server.ts b/src/models/server.ts index 5f673b886..ef5f1bff0 100644 --- a/src/models/server.ts +++ b/src/models/server.ts @@ -1,12 +1,14 @@ import type { BaseModel } from "./base"; import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; import type { ServerVariablesInterface } from "./server-variables"; +import type { SecuritySchemeInterface } from "./security-scheme"; export interface ServerInterface extends BaseModel, DescriptionMixinInterface, BindingsMixinInterface, ExtensionsMixinInterface { id(): string url(): string; - protocol(): string | undefined; + protocol(): string; protocolVersion(): string; hasProtocolVersion(): boolean; - variables(): ServerVariablesInterface -} \ No newline at end of file + variables(): ServerVariablesInterface; + security(): Array>; +} diff --git a/src/models/v2/asyncapi.ts b/src/models/v2/asyncapi.ts index 65d35296b..338a7043a 100644 --- a/src/models/v2/asyncapi.ts +++ b/src/models/v2/asyncapi.ts @@ -9,10 +9,7 @@ import { ExtensionsMixin } from './mixins/extensions'; import type { AsyncAPIDocumentInterface, InfoInterface } from "../../models"; import type { ServersInterface } from "models/servers"; -export class AsyncAPIDocument - extends Mixin(BaseModel, ExtensionsMixin) - implements AsyncAPIDocumentInterface { - +export class AsyncAPIDocument extends Mixin(BaseModel, ExtensionsMixin) implements AsyncAPIDocumentInterface { version(): string { return this._json.asyncapi; } diff --git a/src/models/v2/correlation-id.ts b/src/models/v2/correlation-id.ts new file mode 100644 index 000000000..127504429 --- /dev/null +++ b/src/models/v2/correlation-id.ts @@ -0,0 +1,17 @@ +import { BaseModel } from "../base"; + +import { Mixin } from '../utils'; +import { DescriptionMixin } from './mixins/description'; +import { ExtensionsMixin } from './mixins/extensions'; + +import type { CorrelationIdInterface } from "../correlation-id"; + +export class CorrelationId extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements CorrelationIdInterface { + hasLocation(): boolean { + return !!this._json.location; + } + + location(): string | undefined { + return this._json.location; + } +} diff --git a/src/models/v2/index.ts b/src/models/v2/index.ts index 2445a397b..d56f9e6e6 100644 --- a/src/models/v2/index.ts +++ b/src/models/v2/index.ts @@ -12,5 +12,5 @@ export { SecurityScheme as SecuritySchemeV2 } from './security-scheme'; export { SecuritySchemes as SecuritySchemesV2 } from './security-schemes'; export { ServerVariable as ServerVariableV2 } from './server-variable'; export { ServerVariables as ServerVariablesV2 } from './server-variables'; -export {OAuthFlow as OAuthFlowV2} from './oauth-flow'; -export {OAuthFlows as OAuthFlowsV2} from './oauth-flows'; +export { OAuthFlow as OAuthFlowV2 } from './oauth-flow'; +export { OAuthFlows as OAuthFlowsV2 } from './oauth-flows'; diff --git a/src/models/v2/info.ts b/src/models/v2/info.ts index 5d53573fc..f88c10ffd 100644 --- a/src/models/v2/info.ts +++ b/src/models/v2/info.ts @@ -8,14 +8,13 @@ import { ExtensionsMixin } from './mixins/extensions'; import { ExternalDocumentation } from './mixins/external-docs'; import { Tags, Tag } from './mixins/tags'; -import type { InfoInterface } from "../../models/info"; -import type { ExternalDocumentationInterface } from "../../models/external-docs"; -import type { TagsInterface } from "../../models/tags"; - -export class Info - extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) - implements InfoInterface { +import type { ContactInterface } from "../contact"; +import type { InfoInterface } from "../info"; +import type { ExternalDocumentationInterface } from "../external-docs"; +import type { LicenseInterface } from "../license"; +import type { TagsInterface } from "../tags"; +export class Info extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements InfoInterface { title(): string { return this._json.title; } @@ -24,14 +23,14 @@ export class Info return this._json.version; } - id(): string | undefined { - return this._meta.asyncapi.parsed.id as string; - } - hasId(): boolean { return !!this._meta.asyncapi.parsed.id; } + id(): string | undefined { + return this._meta.asyncapi.parsed.id; + } + hasTermsOfService(): boolean { return !!this._json.termsOfService; } @@ -44,7 +43,7 @@ export class Info return Object.keys(this._json.contact || {}).length > 0; } - contact(): Contact | undefined { + contact(): ContactInterface | undefined { const contact = this._json.contact; return contact && this.createModel(Contact, contact, { pointer: '/info/contact' }); } @@ -53,7 +52,7 @@ export class Info return Object.keys(this._json.license || {}).length > 0; } - license(): License | undefined { + license(): LicenseInterface | undefined { const license = this._json.license; return license && this.createModel(License, license, { pointer: `/info/license` }); } diff --git a/src/models/v2/message-example.ts b/src/models/v2/message-example.ts new file mode 100644 index 000000000..d9fedb931 --- /dev/null +++ b/src/models/v2/message-example.ts @@ -0,0 +1,40 @@ +import { BaseModel } from "../base"; + +import { Mixin } from '../utils'; +import { ExtensionsMixin } from './mixins/extensions'; + +import type { MessageExampleInterface } from "../message-example"; + +export class MessageExample extends Mixin(BaseModel, ExtensionsMixin) implements MessageExampleInterface { + hasName(): boolean { + return !!this._json.name; + } + + name(): string { + return this._json.name; + } + + hasSummary(): boolean { + return !!this._json.summary; + } + + summary(): string { + return this._json.summary; + } + + hasHeaders(): boolean { + return !!this._json.headers; + } + + headers(): Record | undefined { + return this._json.headers; + } + + hasPayload(): boolean { + return !!this._json.payload; + } + + payload(): Record | undefined { + return this._json.payload; + } +} diff --git a/src/models/v2/message-examples.ts b/src/models/v2/message-examples.ts new file mode 100644 index 000000000..062a19abd --- /dev/null +++ b/src/models/v2/message-examples.ts @@ -0,0 +1,14 @@ +import { Collection } from '../collection'; + +import type { MessageExamplesInterface } from '../message-examples'; +import type { MessageExampleInterface } from '../message-example'; + +export class MessageExamples extends Collection implements MessageExamplesInterface { + override get(name: string): MessageExampleInterface | undefined { + return this.collections.find(trait => trait.name() === name); + } + + override has(name: string): boolean { + return this.collections.some(trait => trait.name() === name); + } +} diff --git a/src/models/v2/message-trait.ts b/src/models/v2/message-trait.ts new file mode 100644 index 000000000..a55c9c5c8 --- /dev/null +++ b/src/models/v2/message-trait.ts @@ -0,0 +1,98 @@ +import { BaseModel } from "../base"; +import { CorrelationId } from './correlation-id'; +import { MessageExamples } from './message-examples'; +import { MessageExample } from './message-example'; +import { Schema } from './schema'; + +import { Mixin } from '../utils'; +import { BindingsMixin } from './mixins/bindings'; +import { DescriptionMixin } from './mixins/description'; +import { ExtensionsMixin } from './mixins/extensions'; +import { ExternalDocumentationMixin } from './mixins/external-docs'; +import { TagsMixin } from './mixins/tags'; + +import type { ModelMetadata } from "../base"; +import type { CorrelationIdInterface } from "../correlation-id"; +import type { MessageExamplesInterface } from "../message-examples"; +import type { MessageTraitInterface } from "../message-trait"; +import type { SchemaInterface } from "../schema"; + +export class MessageTrait extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, ExtensionsMixin, ExternalDocumentationMixin, TagsMixin) implements MessageTraitInterface { + constructor( + private readonly _id: string, + _json: Record, + _meta: ModelMetadata = {} as any + ) { + super(_json, _meta); + } + + id(): string { + return this.messageId() || this._id; + } + + hasMessageId(): boolean { + return !!this._json.messageId; + } + + messageId(): string | undefined { + return this._json.messageId; + } + + hasCorrelationId(): boolean { + return !!this._json.correlationId; + } + + correlationId(): CorrelationIdInterface | undefined { + if (!this._json.correlationId) return undefined; + return this.createModel(CorrelationId, this._json.correlationId, { pointer: `${this._meta.pointer}/correlationId` }); + } + + hasContentType(): boolean { + return !!this._json.contentType; + } + + contentType(): string | undefined { + return this._json.contentType || this._meta.asyncapi?.parsed.defaultContentType; + } + + hasHeaders(): boolean { + return !!this._json.headers; + } + + headers(): SchemaInterface | undefined { + if (!this._json.headers) return undefined; + return this.createModel(Schema, this._json.headers, { pointer: `${this._meta.pointer}/headers` }); + } + + hasName(): boolean { + return !!this._json.name; + } + + name(): string | undefined { + return this._json.name; + } + + hasTitle(): boolean { + return !!this._json.title; + } + + title(): string | undefined { + return this._json.title; + } + + hasSummary(): boolean { + return !!this._json.summary; + } + + summary(): string | undefined { + return this._json.summary; + } + + examples(): MessageExamplesInterface { + return new MessageExamples( + (this._json.examples || []).map((example: any, index: number) => { + return this.createModel(MessageExample, example, { pointer: `${this._meta.pointer}/examples/${index}` }) + }) + ); + } +} diff --git a/src/models/v2/message-traits.ts b/src/models/v2/message-traits.ts new file mode 100644 index 000000000..dcb6074f9 --- /dev/null +++ b/src/models/v2/message-traits.ts @@ -0,0 +1,14 @@ +import { Collection } from '../collection'; + +import type { MessageTraitsInterface } from '../message-traits'; +import type { MessageTraitInterface } from '../message-trait'; + +export class MessageTraits extends Collection implements MessageTraitsInterface { + override get(id: string): MessageTraitInterface | undefined { + return this.collections.find(trait => trait.id() === id); + } + + override has(id: string): boolean { + return this.collections.some(trait => trait.id() === id); + } +} diff --git a/src/models/v2/message.ts b/src/models/v2/message.ts new file mode 100644 index 000000000..eb95a31ad --- /dev/null +++ b/src/models/v2/message.ts @@ -0,0 +1,26 @@ +import { MessageTraits } from "./message-traits"; +import { MessageTrait } from "./message-trait"; +import { Schema } from './schema'; + +import type { MessageInterface } from "../message"; +import type { MessageTraitsInterface } from "../message-traits"; +import type { SchemaInterface } from "../schema"; + +export class Message extends MessageTrait implements MessageInterface { + hasPayload(): boolean { + return !!this._json.payload; + } + + payload(): SchemaInterface | undefined { + if (!this._json.payload) return undefined; + return this.createModel(Schema, this._json.payload, { pointer: `${this._meta.pointer}/payload` }); + } + + traits(): MessageTraitsInterface { + return new MessageTraits( + (this._json.traits || []).map((trait: any, index: number) => { + return this.createModel(MessageTrait, trait, { pointer: `${this._meta.pointer}/traits/${index}` }) + }) + ); + } +} diff --git a/src/models/v2/messages.ts b/src/models/v2/messages.ts new file mode 100644 index 000000000..4bb9e305f --- /dev/null +++ b/src/models/v2/messages.ts @@ -0,0 +1,14 @@ +import { Collection } from '../collection'; + +import type { MessagesInterface } from '../messages'; +import type { MessageInterface } from '../message'; + +export class Messages extends Collection implements MessagesInterface { + override get(id: string): MessageInterface | undefined { + return this.collections.find(message => message.id() === id); + } + + override has(id: string): boolean { + return this.collections.some(message => message.id() === id); + } +} diff --git a/src/models/v2/mixins/extensions.ts b/src/models/v2/mixins/extensions.ts index b95175fa5..727bb6598 100644 --- a/src/models/v2/mixins/extensions.ts +++ b/src/models/v2/mixins/extensions.ts @@ -32,10 +32,12 @@ export class Extension extends BaseModel implements ExtensionInterface { export class Extensions extends Collection implements ExtensionsInterface { override get(name: string): ExtensionInterface | undefined { + name = name.startsWith('x-') ? name : `x-${name}`; return this.collections.find(ext => ext.id() === name); }; override has(name: string): boolean { + name = name.startsWith('x-') ? name : `x-${name}`; return this.collections.some(ext => ext.id() === name); }; } diff --git a/src/models/v2/oauth-flow.ts b/src/models/v2/oauth-flow.ts index 2891357f9..daeade1cb 100644 --- a/src/models/v2/oauth-flow.ts +++ b/src/models/v2/oauth-flow.ts @@ -1,23 +1,28 @@ -import { OAuthFlowInterface } from '../oauth-flow'; import { BaseModel } from '../base'; + import { Mixin } from '../utils'; import { ExtensionsMixin } from './mixins/extensions'; +import type { OAuthFlowInterface } from '../oauth-flow'; + export class OAuthFlow extends Mixin(BaseModel, ExtensionsMixin) implements OAuthFlowInterface { - authorizationUrl(): string | undefined { - return this._json.authorizationUrl; - } - hasRefreshUrl(): boolean { - return !!this._json.refreshUrl; - } - refreshUrl(): string | undefined { - return this._json.refreshUrl; - } - scopes(): Record | undefined { - return this._json.scopes; - } - tokenUrl(): string | undefined { - return this._json.tokenUrl; - } + authorizationUrl(): string | undefined { + return this._json.authorizationUrl; + } + + hasRefreshUrl(): boolean { + return !!this._json.refreshUrl; + } + + refreshUrl(): string | undefined { + return this._json.refreshUrl; + } + + scopes(): Record | undefined { + return this._json.scopes; + } + tokenUrl(): string | undefined { + return this._json.tokenUrl; + } } \ No newline at end of file diff --git a/src/models/v2/oauth-flows.ts b/src/models/v2/oauth-flows.ts index 51399a416..d83f291ed 100644 --- a/src/models/v2/oauth-flows.ts +++ b/src/models/v2/oauth-flows.ts @@ -1,39 +1,46 @@ -import { OAuthFlowsInterface } from '../oauth-flows'; import { BaseModel } from '../base'; + +import { OAuthFlow } from './oauth-flow'; import { Mixin } from '../utils'; import { ExtensionsMixin } from './mixins/extensions'; -import { OAuthFlowInterface } from 'models/oauth-flow'; -import { OAuthFlow } from './oauth-flow'; - -export class OAuthFlows extends Mixin(BaseModel, ExtensionsMixin) implements OAuthFlowsInterface { - hasAuthorizationCode(): boolean { - return !!this._json.authorizationCode; - } - authorizationCode(): OAuthFlowInterface | undefined { - if (!this._json.authorizationCode) return undefined; - return new OAuthFlow(this._json.authorizationCode); - } - hasClientCredentials(): boolean { - return !!this._json.clientCredentials; - } - clientCredentials(): OAuthFlowInterface | undefined { - if (!this._json.clientCredentials) return undefined; - return new OAuthFlow(this._json.clientCredentials); - } - hasImplicit(): boolean { - return !!this._json.implicit; - } - implicit(): OAuthFlowInterface | undefined { - if (!this._json.implicit) return undefined; - return new OAuthFlow(this._json.implicit); - } - hasPassword(): boolean { - return !!this._json.password; - } - password(): OAuthFlowInterface | undefined { - if (!this._json.password) return undefined; - return new OAuthFlow(this._json.password); - } +import type { OAuthFlowsInterface } from '../oauth-flows'; +import type { OAuthFlowInterface } from '../oauth-flow'; +export class OAuthFlows extends Mixin(BaseModel, ExtensionsMixin) implements OAuthFlowsInterface { + hasAuthorizationCode(): boolean { + return !!this._json.authorizationCode; + } + + authorizationCode(): OAuthFlowInterface | undefined { + if (!this._json.authorizationCode) return undefined; + return new OAuthFlow(this._json.authorizationCode); + } + + hasClientCredentials(): boolean { + return !!this._json.clientCredentials; + } + + clientCredentials(): OAuthFlowInterface | undefined { + if (!this._json.clientCredentials) return undefined; + return new OAuthFlow(this._json.clientCredentials); + } + + hasImplicit(): boolean { + return !!this._json.implicit; + } + + implicit(): OAuthFlowInterface | undefined { + if (!this._json.implicit) return undefined; + return new OAuthFlow(this._json.implicit); + } + + hasPassword(): boolean { + return !!this._json.password; + } + + password(): OAuthFlowInterface | undefined { + if (!this._json.password) return undefined; + return new OAuthFlow(this._json.password); + } } \ No newline at end of file diff --git a/src/models/v2/operation-trait.ts b/src/models/v2/operation-trait.ts new file mode 100644 index 000000000..aa3ccea40 --- /dev/null +++ b/src/models/v2/operation-trait.ts @@ -0,0 +1,62 @@ +import { BaseModel } from "../base"; +import { SecurityScheme } from './security-scheme'; + +import { Mixin } from '../utils'; +import { BindingsMixin } from './mixins/bindings'; +import { DescriptionMixin } from './mixins/description'; +import { ExtensionsMixin } from './mixins/extensions'; +import { ExternalDocumentationMixin } from './mixins/external-docs'; +import { TagsMixin } from './mixins/tags'; + +import type { ModelMetadata } from "../base"; +import type { OperationAction } from "../operation"; +import type { OperationTraitInterface } from "../operation-trait"; +import type { SecuritySchemeInterface } from "../security-scheme"; + +export class OperationTrait extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, ExtensionsMixin, ExternalDocumentationMixin, TagsMixin) implements OperationTraitInterface { + constructor( + private readonly _id: string, + _json: Record, + public readonly _meta: ModelMetadata & { action: OperationAction } = {} as any, + ) { + super(_json, _meta); + } + + id(): string { + return this.operationId() || this._id; + } + + action(): OperationAction { + return this._meta.action; + } + + hasOperationId(): boolean { + return !!this._json.operationId; + } + + operationId(): string | undefined { + return this._json.operationId; + } + + hasSummary(): boolean { + return !!this._json.summary; + } + + summary(): string | undefined { + return this._json.summary; + } + + security(): Array> { + const securitySchemes = this._meta?.asyncapi?.parsed.components.securitySchemes || {}; + return (this._json.security || []).map((requirement: any) => { + const requirements: Record = {}; + Object.entries(requirement).forEach(([security, scopes]) => { + requirements[security] = { + schema: this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }), + scopes: scopes as Array, + } + }); + return requirements; + }) + } +} diff --git a/src/models/v2/operation-traits.ts b/src/models/v2/operation-traits.ts new file mode 100644 index 000000000..95d5f9e32 --- /dev/null +++ b/src/models/v2/operation-traits.ts @@ -0,0 +1,14 @@ +import { Collection } from '../collection'; + +import type { OperationTraitsInterface } from '../operation-traits'; +import type { OperationTraitInterface } from '../operation-trait'; + +export class OperationTraits extends Collection implements OperationTraitsInterface { + override get(id: string): OperationTraitInterface | undefined { + return this.collections.find(trait => trait.id() === id); + } + + override has(id: string): boolean { + return this.collections.some(trait => trait.id() === id); + } +} diff --git a/src/models/v2/operation.ts b/src/models/v2/operation.ts new file mode 100644 index 000000000..4ac9ecbd3 --- /dev/null +++ b/src/models/v2/operation.ts @@ -0,0 +1,35 @@ +import { Message } from "./message"; +import { Messages } from "./messages"; +import { OperationTraits } from "./operation-traits"; +import { OperationTrait } from "./operation-trait"; + +import type { MessagesInterface } from "../messages"; +import type { OperationInterface } from "../operation"; +import type { OperationTraitsInterface } from "../operation-traits"; + +export class Operation extends OperationTrait implements OperationInterface { + messages(): MessagesInterface { + let isOneOf = false; + let messages = this._json.message || []; + if (Array.isArray(messages.oneOf)) { + messages = messages.oneOf; + isOneOf = true; + } else if (!Array.isArray(messages)) { + messages = [messages]; + } + + return new Messages( + messages.map((message: any, index: number) => { + return this.createModel(Message, message, { pointer: `${this._meta.pointer}/message${isOneOf ? `/oneOf/${index}` : ''}` }) + }) + ); + } + + traits(): OperationTraitsInterface { + return new OperationTraits( + (this._json.traits || []).map((trait: any, index: number) => { + return this.createModel(OperationTrait, trait, { pointer: `${this._meta.pointer}/traits/${index}` }) + }) + ); + } +} diff --git a/src/models/v2/operations.ts b/src/models/v2/operations.ts new file mode 100644 index 000000000..d67d0608b --- /dev/null +++ b/src/models/v2/operations.ts @@ -0,0 +1,14 @@ +import { Collection } from '../collection'; + +import type { OperationsInterface } from '../operations'; +import type { OperationInterface } from '../operation'; + +export class Operations extends Collection implements OperationsInterface { + override get(id: string): OperationInterface | undefined { + return this.collections.find(operation => operation.id() === id); + } + + override has(id: string): boolean { + return this.collections.some(operation => operation.id() === id); + } +} diff --git a/src/models/v2/schema.ts b/src/models/v2/schema.ts new file mode 100644 index 000000000..24eb9ea9a --- /dev/null +++ b/src/models/v2/schema.ts @@ -0,0 +1,8 @@ +import { BaseModel } from "../base"; + +import { Mixin } from '../utils'; +import { ExtensionsMixin } from './mixins/extensions'; + +import type { SchemaInterface } from "../schema"; + +export class Schema extends Mixin(BaseModel, ExtensionsMixin) implements SchemaInterface {} diff --git a/src/models/v2/security-scheme.ts b/src/models/v2/security-scheme.ts index ce2785970..bedeb610c 100644 --- a/src/models/v2/security-scheme.ts +++ b/src/models/v2/security-scheme.ts @@ -1,55 +1,57 @@ -import { BaseModel, ModelMetadata } from '../base'; +import { BaseModel } from '../base'; + +import { OAuthFlows } from './oauth-flows'; import { Mixin } from '../utils'; import { DescriptionMixin } from './mixins/description'; import { ExtensionsMixin } from './mixins/extensions'; -import { SecuritySchemaType, SecuritySchemeInterface } from '../security-scheme'; -import { OAuthFlowsInterface } from 'models/oauth-flows'; -import { OAuthFlows } from './oauth-flows'; + +import type { ModelMetadata } from '../base'; +import type { SecuritySchemaType, SecuritySchemeInterface } from '../security-scheme'; +import type { OAuthFlowsInterface } from '../oauth-flows'; export class SecurityScheme extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements SecuritySchemeInterface { - constructor( - private readonly _id: string, - _json: Record, - _meta: ModelMetadata = {} as any - ) { - super(_json, _meta); - } - - id(): string { - return this._id; - } - - hasBearerFormat(): boolean { - return !!this._json.bearerFormat; - } - - bearerFormat(): string | undefined { - return this._json.bearerFormat; - } - - openIdConnectUrl(): string { - return this._json.openIdConnectUrl; - } - - scheme(): string | undefined { - return this._json.scheme - } - - flows(): OAuthFlowsInterface | undefined { - if(!this._json.flows) return undefined; - return new OAuthFlows(this._json.flows); - } - - scopes(): string[] { - return this._json.scopes; - } - - type(): SecuritySchemaType { - return this._json.type; - } - - in(): string | undefined { - return this._json.in; - } - -} \ No newline at end of file + constructor( + private readonly _id: string, + _json: Record, + _meta: ModelMetadata = {} as any + ) { + super(_json, _meta); + } + + id(): string { + return this._id; + } + + hasBearerFormat(): boolean { + return !!this._json.bearerFormat; + } + + bearerFormat(): string | undefined { + return this._json.bearerFormat; + } + + openIdConnectUrl(): string { + return this._json.openIdConnectUrl; + } + + scheme(): string | undefined { + return this._json.scheme + } + + flows(): OAuthFlowsInterface | undefined { + if(!this._json.flows) return undefined; + return new OAuthFlows(this._json.flows); + } + + scopes(): string[] { + return this._json.scopes; + } + + type(): SecuritySchemaType { + return this._json.type; + } + + in(): string | undefined { + return this._json.in; + } +} diff --git a/src/models/v2/security-schemes.ts b/src/models/v2/security-schemes.ts index 500ded280..985a2d941 100644 --- a/src/models/v2/security-schemes.ts +++ b/src/models/v2/security-schemes.ts @@ -1,12 +1,14 @@ -import { SecuritySchemesInterface } from '../security-schemes'; import { Collection } from '../collection'; -import { SecuritySchemeInterface } from '../security-scheme'; + +import type { SecuritySchemesInterface } from '../security-schemes'; +import type { SecuritySchemeInterface } from '../security-scheme'; export class SecuritySchemes extends Collection implements SecuritySchemesInterface { - get(id: string): SecuritySchemeInterface | undefined { - return this.collections.find(securityScheme => securityScheme.id() === id); - } - has(id: string): boolean { - return this.collections.some(securityScheme => securityScheme.id() === id); - } -} \ No newline at end of file + override get(id: string): SecuritySchemeInterface | undefined { + return this.collections.find(securityScheme => securityScheme.id() === id); + } + + override has(id: string): boolean { + return this.collections.some(securityScheme => securityScheme.id() === id); + } +} diff --git a/src/models/v2/server-variable.ts b/src/models/v2/server-variable.ts index 9325a10fc..e471973e7 100644 --- a/src/models/v2/server-variable.ts +++ b/src/models/v2/server-variable.ts @@ -1,35 +1,42 @@ -import { BaseModel, ModelMetadata } from '../base'; +import { BaseModel } from '../base'; + import { Mixin } from '../utils'; -import { ServerVariableInterface } from '../server-variable'; import { DescriptionMixin } from './mixins/description'; import { ExtensionsMixin } from './mixins/extensions'; +import type { ModelMetadata } from '../base'; +import type { ServerVariableInterface } from '../server-variable'; export class ServerVariable extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements ServerVariableInterface { - constructor( - private readonly _id: string, - _json: Record, - _meta: ModelMetadata = {} as any - ){ - super(_json, _meta); - } - id(): string { - return this._id; - } - hasDefaultValue(): boolean { - return !!this._json.default - } - defaultValue(): string | undefined { - return this._json.default; - } - hasAllowedValue(): boolean { - return !!this._json.enum; - } - allowedValue(): any[] { - return this._json.enum; - } - examples(): string[] { - return this._json.examples - } + constructor( + private readonly _id: string, + _json: Record, + _meta: ModelMetadata = {} as any + ) { + super(_json, _meta); + } + + id(): string { + return this._id; + } + + hasDefaultValue(): boolean { + return !!this._json.default + } + + defaultValue(): string | undefined { + return this._json.default; + } + + hasAllowedValues(): boolean { + return !!this._json.enum; + } -} \ No newline at end of file + allowedValues(): Array { + return this._json.enum; + } + + examples(): Array { + return this._json.examples + } +} diff --git a/src/models/v2/server-variables.ts b/src/models/v2/server-variables.ts index b61cb55d0..9edc795d5 100644 --- a/src/models/v2/server-variables.ts +++ b/src/models/v2/server-variables.ts @@ -1,15 +1,14 @@ -import { ServerVariablesInterface } from '../server-variables'; import { Collection } from '../collection'; -import { ServerVariableInterface } from '../server-variable'; -export class ServerVariables extends Collection implements ServerVariablesInterface { - get(id: string): ServerVariableInterface | undefined { - return this.collections.find(serverVariable => serverVariable.id() === id); - } +import type { ServerVariablesInterface } from '../server-variables'; +import type { ServerVariableInterface } from '../server-variable'; - has(id: string): boolean { - return this.collections.some(serverVariable => serverVariable.id() === id); - } +export class ServerVariables extends Collection implements ServerVariablesInterface { + override get(id: string): ServerVariableInterface | undefined { + return this.collections.find(serverVariable => serverVariable.id() === id); + } + override has(id: string): boolean { + return this.collections.some(serverVariable => serverVariable.id() === id); + } } - diff --git a/src/models/v2/server.ts b/src/models/v2/server.ts index 165e82a3d..d19154582 100644 --- a/src/models/v2/server.ts +++ b/src/models/v2/server.ts @@ -1,4 +1,7 @@ import { BaseModel } from '../base'; +import { SecurityScheme } from './security-scheme'; +import { ServerVariables } from './server-variables'; +import { ServerVariable } from './server-variable'; import { Mixin } from '../utils'; import { BindingsMixin } from './mixins/bindings'; @@ -7,9 +10,8 @@ import { ExtensionsMixin } from './mixins/extensions'; import type { ModelMetadata } from "../base"; import type { ServerInterface } from '../server'; -import { ServerVariablesInterface } from '../server-variables'; -import { ServerVariables } from './server-variables'; -import { ServerVariable } from './server-variable'; +import type { ServerVariablesInterface } from '../server-variables'; +import type { SecuritySchemeInterface } from '../security-scheme'; export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, ExtensionsMixin) implements ServerInterface { constructor( @@ -28,7 +30,7 @@ export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, Ex return this._json.url; } - protocol(): string | undefined { + protocol(): string { return this._json.protocol; } @@ -42,16 +44,26 @@ export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, Ex variables(): ServerVariablesInterface { return new ServerVariables( - Object.entries( - this._json.variables - ).map( - ([serverVariableName, serverVariable]) => this.createModel( - ServerVariable, serverVariable, { + Object.entries(this._json.variables || {}).map(([serverVariableName, serverVariable]) => { + return this.createModel(ServerVariable, serverVariable, { id: serverVariableName, pointer: `${this._meta.pointer}/variables/${serverVariableName}` - } - ) - )) + }) + }) + ); } -} \ No newline at end of file + security(): Array> { + const securitySchemes = this._meta?.asyncapi?.parsed.components.securitySchemes || {}; + return (this._json.security || []).map((requirement: any) => { + const requirements: Record = {}; + Object.entries(requirement).forEach(([security, scopes]) => { + requirements[security] = { + schema: this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }), + scopes: scopes as Array, + } + }); + return requirements; + }) + } +} diff --git a/src/models/v3/oauth-flows.ts b/src/models/v3/oauth-flows.ts index 592f49ab7..6abab0eb8 100644 --- a/src/models/v3/oauth-flows.ts +++ b/src/models/v3/oauth-flows.ts @@ -3,7 +3,7 @@ import { OAuthFlowsInterface } from '../oauth-flows'; import { BaseModel } from '../base'; import { Mixin } from '../utils'; import { ExtensionsMixin } from './mixins/extensions'; -import { OAuthFlowInterface } from 'models/oauth-flow'; +import { OAuthFlowInterface } from '../oauth-flow'; import { OAuthFlow } from './oauth-flow'; export class OAuthFlows extends Mixin(BaseModel, ExtensionsMixin) implements OAuthFlowsInterface { diff --git a/src/models/v3/security-scheme.ts b/src/models/v3/security-scheme.ts index ce2785970..eecbaa843 100644 --- a/src/models/v3/security-scheme.ts +++ b/src/models/v3/security-scheme.ts @@ -3,7 +3,7 @@ import { Mixin } from '../utils'; import { DescriptionMixin } from './mixins/description'; import { ExtensionsMixin } from './mixins/extensions'; import { SecuritySchemaType, SecuritySchemeInterface } from '../security-scheme'; -import { OAuthFlowsInterface } from 'models/oauth-flows'; +import { OAuthFlowsInterface } from '../oauth-flows'; import { OAuthFlows } from './oauth-flows'; export class SecurityScheme extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements SecuritySchemeInterface { diff --git a/src/models/v3/server-variable.ts b/src/models/v3/server-variable.ts index 1f931e83f..e471973e7 100644 --- a/src/models/v3/server-variable.ts +++ b/src/models/v3/server-variable.ts @@ -1,28 +1,42 @@ import { BaseModel } from '../base'; + import { Mixin } from '../utils'; -import { ServerVariableInterface } from '../server-variable'; import { DescriptionMixin } from './mixins/description'; import { ExtensionsMixin } from './mixins/extensions'; +import type { ModelMetadata } from '../base'; +import type { ServerVariableInterface } from '../server-variable'; export class ServerVariable extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements ServerVariableInterface { - id(): string { - throw new Error('Method not implemented.'); - } - hasDefaultValue(): boolean { - return !!this._json.default - } - defaultValue(): string | undefined { - return this._json.default; - } - hasAllowedValue(): boolean { - return !!this._json.enum - } - allowedValue(): any[] { - return this._json.enum - } - examples(): string[] { - return this._json.examples - } + constructor( + private readonly _id: string, + _json: Record, + _meta: ModelMetadata = {} as any + ) { + super(_json, _meta); + } + + id(): string { + return this._id; + } + + hasDefaultValue(): boolean { + return !!this._json.default + } + + defaultValue(): string | undefined { + return this._json.default; + } + + hasAllowedValues(): boolean { + return !!this._json.enum; + } -} \ No newline at end of file + allowedValues(): Array { + return this._json.enum; + } + + examples(): Array { + return this._json.examples + } +} diff --git a/src/models/v3/server.ts b/src/models/v3/server.ts index ce67bb8bb..19ac7aacc 100644 --- a/src/models/v3/server.ts +++ b/src/models/v3/server.ts @@ -1,16 +1,16 @@ import { BaseModel } from '../base'; +import { SecurityScheme } from './security-scheme'; +import { ServerVariable } from './server-variable'; +import { ServerVariables } from './server-variables'; import { Mixin } from '../utils'; import { BindingsMixin } from './mixins/bindings'; import { DescriptionMixin } from './mixins/description'; import { ExtensionsMixin } from './mixins/extensions'; -import { ServerVariable } from './server-variable'; -import { ServerVariables } from './server-variables'; -import { ServerVariablesInterface } from '../server-variables'; import type { ModelMetadata } from "../base"; import type { ServerInterface } from '../server'; - +import type { SecuritySchemeInterface } from '../security-scheme'; export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, ExtensionsMixin) implements ServerInterface { constructor( @@ -29,7 +29,7 @@ export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, Ex return this._json.url; } - protocol(): string | undefined { + protocol(): string { return this._json.protocol; } @@ -41,7 +41,7 @@ export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, Ex return this._json.protocolVersion; } - variables(): ServerVariablesInterface { + variables(): ServerVariables { return new ServerVariables( Object.entries( this._json.variables @@ -55,4 +55,17 @@ export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, Ex )) } -} \ No newline at end of file + security(): Array> { + const securitySchemes = this._meta?.asyncapi?.parsed.components.securitySchemes || {}; + return (this._json.security || []).map((requirement: any) => { + const requirements: Record = {}; + Object.entries(requirement).forEach(([security, scopes]) => { + requirements[security] = { + schema: this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }), + scopes: scopes as Array, + } + }); + return requirements; + }) + } +} diff --git a/test/models/v2/correlation-id.spec.ts b/test/models/v2/correlation-id.spec.ts new file mode 100644 index 000000000..18b4e3918 --- /dev/null +++ b/test/models/v2/correlation-id.spec.ts @@ -0,0 +1,41 @@ +import { CorrelationId } from '../../../src/models/v2/correlation-id'; + +import { + assertDescriptionMixinInheritance, + assertExtensionsMixinInheritance, +} from './mixins/inheritance'; + +describe('CorrelationId model', function() { + describe('.hasLocation()', function() { + it('should return true when there is a value', function() { + const doc = { location: "..." }; + const d = new CorrelationId(doc); + expect(d.hasLocation()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new CorrelationId(doc); + expect(d.hasLocation()).toEqual(false); + }); + }); + + describe('.location()', function() { + it('should return the value', function() { + const doc = { location: "..." }; + const d = new CorrelationId(doc); + expect(d.location()).toEqual(doc.location); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new CorrelationId(doc); + expect(d.location()).toBeUndefined(); + }); + }); + + describe('mixins inheritance', function() { + assertDescriptionMixinInheritance(CorrelationId); + assertExtensionsMixinInheritance(CorrelationId); + }); +}); diff --git a/test/models/v2/info.spec.ts b/test/models/v2/info.spec.ts index 708917cf6..042f60c2e 100644 --- a/test/models/v2/info.spec.ts +++ b/test/models/v2/info.spec.ts @@ -31,14 +31,14 @@ describe('Info model', function() { it('should return true when there is a value', function() { const doc = { asyncapi: '2.0.0', id: 'someId' }; const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + const d = new Info({}, { asyncapi, pointer: '/info' }); expect(d.hasId()).toEqual(true); }); it('should return false when there is no value', function() { const doc = { asyncapi: '2.0.0' }; const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + const d = new Info({}, { asyncapi, pointer: '/info' }); expect(d.hasId()).toEqual(false); }); }); @@ -47,14 +47,14 @@ describe('Info model', function() { it('should return the value', function() { const doc = { asyncapi: '2.0.0', id: 'someId' }; const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + const d = new Info({}, { asyncapi, pointer: '/info' }); expect(d.id()).toEqual(doc.id); }); it('should return undefined when there is no value', function() { const doc = { asyncapi: '2.0.0' }; const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + const d = new Info({}, { asyncapi, pointer: '/info' }); expect(d.id()).toEqual(undefined); }); }); @@ -147,21 +147,21 @@ describe('Info model', function() { it('should return true when there is a value', function() { const doc = { asyncapi: '2.0.0', externalDocs: { url: 'https://example.com' } }; const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + const d = new Info({}, { asyncapi, pointer: '/info' }); expect(d.hasExternalDocs()).toEqual(true); }); it('should return false when there is an empty object', function() { const doc = { asyncapi: '2.0.0', externalDocs: {} }; const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + const d = new Info({}, { asyncapi, pointer: '/info' }); expect(d.hasExternalDocs()).toEqual(false); }); it('should return false when there is no value', function() { const doc = { asyncapi: '2.0.0' }; const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + const d = new Info({}, { asyncapi, pointer: '/info' }); expect(d.hasExternalDocs()).toEqual(false); }); }); @@ -170,7 +170,7 @@ describe('Info model', function() { it('should return the value', function() { const doc = { asyncapi: '2.0.0', externalDocs: { url: 'https://example.com' } }; const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + const d = new Info({}, { asyncapi, pointer: '/info' }); expect(d.externalDocs()).toBeInstanceOf(ExternalDocumentation); expect(d.externalDocs()!.json()).toEqual(doc.externalDocs); }); @@ -178,14 +178,14 @@ describe('Info model', function() { it('should return undefined when there is an empty object', function() { const doc = { asyncapi: '2.0.0', externalDocs: {} }; const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + const d = new Info({}, { asyncapi, pointer: '/info' }); expect(d.externalDocs()).toEqual(undefined); }); it('should return undefined when there is no value', function() { const doc = { asyncapi: '2.0.0' }; const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + const d = new Info({}, { asyncapi, pointer: '/info' }); expect(d.externalDocs()).toEqual(undefined); }); }); @@ -195,7 +195,7 @@ describe('Info model', function() { const tags = [{ name: 'one' }, { name: 'two' }]; const doc = { asyncapi: '2.0.0', tags }; const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + const d = new Info({}, { asyncapi, pointer: '/info' }); expect(d.tags()).toBeInstanceOf(Tags); expect(d.tags().length).toEqual(2); expect(d.tags().all()[0]).toBeInstanceOf(Tag); @@ -205,7 +205,7 @@ describe('Info model', function() { it('should return empty array when there is an empty collection', function() { const doc = { asyncapi: '2.0.0' }; const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, parent: null, pointer: '/info' }); + const d = new Info({}, { asyncapi, pointer: '/info' }); expect(d.tags()).toBeInstanceOf(Tags); expect(d.tags().all()).toEqual([]); }); diff --git a/test/models/v2/message-example.spec.ts b/test/models/v2/message-example.spec.ts new file mode 100644 index 000000000..bc41f171b --- /dev/null +++ b/test/models/v2/message-example.spec.ts @@ -0,0 +1,123 @@ +import { MessageExample } from '../../../src/models/v2/message-example'; + +import { + assertExtensionsMixinInheritance, +} from './mixins/inheritance'; + +describe('MessageExample model', function() { + describe('.hasName()', function() { + it('should return true when there is a value', function() { + const doc = { name: "..." }; + const d = new MessageExample(doc); + expect(d.hasName()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageExample(doc); + expect(d.hasName()).toEqual(false); + }); + }); + + describe('.name()', function() { + it('should return the value', function() { + const doc = { name: "..." }; + const d = new MessageExample(doc); + expect(d.name()).toEqual(doc.name); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageExample(doc); + expect(d.name()).toBeUndefined(); + }); + }); + + describe('.hasSummary()', function() { + it('should return true when there is a value', function() { + const doc = { summary: "..." }; + const d = new MessageExample(doc); + expect(d.hasSummary()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageExample(doc); + expect(d.hasSummary()).toEqual(false); + }); + }); + + describe('.summary()', function() { + it('should return the value', function() { + const doc = { summary: "..." }; + const d = new MessageExample(doc); + expect(d.summary()).toEqual(doc.summary); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageExample(doc); + expect(d.summary()).toBeUndefined(); + }); + }); + + describe('.hasHeaders()', function() { + it('should return true when there is a value', function() { + const doc = { headers: {} }; + const d = new MessageExample(doc); + expect(d.hasHeaders()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageExample(doc); + expect(d.hasSummary()).toEqual(false); + }); + }); + + describe('.headers()', function() { + it('should return the value', function() { + const doc = { headers: {} }; + const d = new MessageExample(doc); + expect(d.headers()).toEqual(doc.headers); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageExample(doc); + expect(d.headers()).toBeUndefined(); + }); + }); + + describe('.hasPayload()', function() { + it('should return true when there is a value', function() { + const doc = { payload: {} }; + const d = new MessageExample(doc); + expect(d.hasPayload()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageExample(doc); + expect(d.hasPayload()).toEqual(false); + }); + }); + + describe('.payload()', function() { + it('should return the value', function() { + const doc = { payload: {} }; + const d = new MessageExample(doc); + expect(d.payload()).toEqual(doc.payload); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageExample(doc); + expect(d.payload()).toBeUndefined(); + }); + }); + + describe('mixins inheritance', function() { + assertExtensionsMixinInheritance(MessageExample); + }); +}); diff --git a/test/models/v2/message-examples.spec.ts b/test/models/v2/message-examples.spec.ts new file mode 100644 index 000000000..f04c8a3ef --- /dev/null +++ b/test/models/v2/message-examples.spec.ts @@ -0,0 +1,45 @@ +import { MessageExamples } from '../../../src/models/v2/message-examples'; +import { MessageExample } from '../../../src/models/v2/message-example'; + +const messageExample = { + name: 'test', +}; +const messageExampleItem = new MessageExample(messageExample); + +describe('MessageExamples model', function () { + describe('.isEmpty()', function () { + it('should return true if collection is empty', function () { + const servers = new MessageExamples([]); + expect(servers.isEmpty()).toEqual(true); + }); + + it('should return false if collection is not empty', function () { + const servers = new MessageExamples([messageExampleItem]); + expect(servers.isEmpty()).toEqual(false); + }); + }); + + describe('.get(id)', function () { + it('should return a specific Message Example if it is present', function () { + const servers = new MessageExamples([messageExampleItem]); + expect(servers.get('test')).toBeTruthy(); + }); + + it('should return undefined if specific Message Example is missing', function () { + const servers = new MessageExamples([]); + expect(servers.get('test')).toBeUndefined(); + }); + }); + + describe('.has(id)', function () { + it('should return true if the said name is available', function () { + const servers = new MessageExamples([messageExampleItem]); + expect(servers.has('test')).toEqual(true); + }) + + it('should return false if the Message Example name is missing', function () { + const servers = new MessageExamples([messageExampleItem]); + expect(servers.has('anotherName')).toEqual(false); + }) + }) +}) \ No newline at end of file diff --git a/test/models/v2/message-trait.spec.ts b/test/models/v2/message-trait.spec.ts new file mode 100644 index 000000000..4ad51f934 --- /dev/null +++ b/test/models/v2/message-trait.spec.ts @@ -0,0 +1,256 @@ +import { CorrelationId } from '../../../src/models/v2/correlation-id'; +import { MessageExamples } from '../../../src/models/v2/message-examples'; +import { MessageExample } from '../../../src/models/v2/message-example'; +import { MessageTrait } from '../../../src/models/v2/message-trait'; +import { Schema } from '../../../src/models/v2/schema'; + +import { + assertBindingsMixinInheritance, + assertDescriptionMixinInheritance, + assertExtensionsMixinInheritance, + assertExternalDocumentationMixinInheritance, + assertTagsMixinInheritance, +} from './mixins/inheritance'; + +describe('MessageTrait model', function() { + describe('.id()', function() { + it('should return id of model', function() { + const doc = {}; + const d = new MessageTrait('trait', doc); + expect(d.id()).toEqual('trait'); + }); + + it('should reuse messageId', function() { + const doc = { messageId: '...' }; + const d = new MessageTrait('trait', doc); + expect(d.id()).toEqual(doc.messageId); + }); + }); + + describe('.hasMessageId()', function() { + it('should return true when there is a value', function() { + const doc = { messageId: '...' }; + const d = new MessageTrait('trait', doc); + expect(d.hasMessageId()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageTrait('trait', doc); + expect(d.hasMessageId()).toEqual(false); + }); + }); + + describe('.messageId()', function() { + it('should return the value', function() { + const doc = { messageId: '...' }; + const d = new MessageTrait('trait', doc); + expect(d.messageId()).toEqual(doc.messageId); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageTrait('trait', doc); + expect(d.messageId()).toBeUndefined(); + }); + }); + + describe('.hasCorrelationId()', function() { + it('should return true when there is a value', function() { + const doc = { correlationId: {} }; + const d = new MessageTrait('trait', doc); + expect(d.hasCorrelationId()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageTrait('trait', doc); + expect(d.hasCorrelationId()).toEqual(false); + }); + }); + + describe('.correlationId()', function() { + it('should return the value', function() { + const doc = { correlationId: {} }; + const d = new MessageTrait('trait', doc); + expect(d.correlationId()).toBeInstanceOf(CorrelationId); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageTrait('trait', doc); + expect(d.correlationId()).toBeUndefined(); + }); + }); + + describe('.hasContentType()', function() { + it('should return true when there is a value', function() { + const doc = { contentType: '...' }; + const d = new MessageTrait('trait', doc); + expect(d.hasContentType()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageTrait('trait', doc); + expect(d.hasContentType()).toEqual(false); + }); + }); + + describe('.contentType()', function() { + it('should return the value', function() { + const doc = { contentType: '...' }; + const d = new MessageTrait('trait', doc); + expect(d.contentType()).toEqual(doc.contentType); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageTrait('trait', doc); + expect(d.contentType()).toBeUndefined(); + }); + + it('should reuse defaultContentType value', function() { + const doc = {}; + const d = new MessageTrait('trait', doc, { asyncapi: { parsed: { defaultContentType: '...' } } } as any); + expect(d.contentType()).toEqual('...'); + }); + }); + + describe('.hasHeaders()', function() { + it('should return true when there is a value', function() { + const doc = { headers: {} }; + const d = new MessageTrait('trait', doc); + expect(d.hasHeaders()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageTrait('trait', doc); + expect(d.hasHeaders()).toEqual(false); + }); + }); + + describe('.headers()', function() { + it('should return the value', function() { + const doc = { headers: {} }; + const d = new MessageTrait('trait', doc); + expect(d.headers()).toBeInstanceOf(Schema); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageTrait('trait', doc); + expect(d.headers()).toBeUndefined(); + }); + }); + + describe('.hasName()', function() { + it('should return true when there is a value', function() { + const doc = { name: "..." }; + const d = new MessageTrait('trait', doc); + expect(d.hasName()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageTrait('trait', doc); + expect(d.hasName()).toEqual(false); + }); + }); + + describe('.name()', function() { + it('should return the value', function() { + const doc = { name: "..." }; + const d = new MessageTrait('trait', doc); + expect(d.name()).toEqual(doc.name); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageTrait('trait', doc); + expect(d.name()).toBeUndefined(); + }); + }); + + describe('.hasTitle()', function() { + it('should return true when there is a value', function() { + const doc = { title: "..." }; + const d = new MessageTrait('trait', doc); + expect(d.hasTitle()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageTrait('trait', doc); + expect(d.hasTitle()).toEqual(false); + }); + }); + + describe('.title()', function() { + it('should return the value', function() { + const doc = { title: "..." }; + const d = new MessageTrait('trait', doc); + expect(d.title()).toEqual(doc.title); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageTrait('trait', doc); + expect(d.title()).toBeUndefined(); + }); + }); + + describe('.hasSummary()', function() { + it('should return true when there is a value', function() { + const doc = { summary: "..." }; + const d = new MessageTrait('trait', doc); + expect(d.hasSummary()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new MessageTrait('trait', doc); + expect(d.hasSummary()).toEqual(false); + }); + }); + + describe('.summary()', function() { + it('should return the value', function() { + const doc = { summary: "..." }; + const d = new MessageTrait('trait', doc); + expect(d.summary()).toEqual(doc.summary); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new MessageTrait('trait', doc); + expect(d.summary()).toBeUndefined(); + }); + }); + + describe('.examples()', function() { + it('should return collection of examples', function() { + const doc = { examples: [ { name: '...' } ] }; + const d = new MessageTrait('trait', doc); + expect(d.examples()).toBeInstanceOf(MessageExamples); + expect(d.examples().all()).toHaveLength(1); + expect(d.examples().all()[0]).toBeInstanceOf(MessageExample); + }); + + it('should return collection of examples when value is undefined', function() { + const doc = {}; + const d = new MessageTrait('trait', doc); + expect(d.examples()).toBeInstanceOf(MessageExamples); + expect(d.examples().all()).toHaveLength(0); + }); + }); + + describe('mixins inheritance', function() { + assertBindingsMixinInheritance(MessageTrait); + assertDescriptionMixinInheritance(MessageTrait); + assertExtensionsMixinInheritance(MessageTrait); + assertExternalDocumentationMixinInheritance(MessageTrait); + assertTagsMixinInheritance(MessageTrait); + }); +}); diff --git a/test/models/v2/message-traits.spec.ts b/test/models/v2/message-traits.spec.ts new file mode 100644 index 000000000..9343c715d --- /dev/null +++ b/test/models/v2/message-traits.spec.ts @@ -0,0 +1,45 @@ +import { MessageTraits } from '../../../src/models/v2/message-traits'; +import { MessageTrait } from '../../../src/models/v2/message-trait'; + +const messageTrait = { + messageId: 'test', +}; +const messageTraitItem = new MessageTrait('test', messageTrait); + +describe('MessageTraits model', function () { + describe('.isEmpty()', function () { + it('should return true if collection is empty', function () { + const servers = new MessageTraits([]); + expect(servers.isEmpty()).toEqual(true); + }); + + it('should return false if collection is not empty', function () { + const servers = new MessageTraits([messageTraitItem]); + expect(servers.isEmpty()).toEqual(false); + }); + }); + + describe('.get(id)', function () { + it('should return a specific Message Trait if it is present', function () { + const servers = new MessageTraits([messageTraitItem]); + expect(servers.get('test')).toBeTruthy(); + }); + + it('should return undefined if specific Message Trait is missing', function () { + const servers = new MessageTraits([]); + expect(servers.get('test')).toBeUndefined(); + }); + }); + + describe('.has(id)', function () { + it('should return true if the said id is available', function () { + const servers = new MessageTraits([messageTraitItem]); + expect(servers.has('test')).toEqual(true); + }) + + it('should return false if the Message Trait id is missing', function () { + const servers = new MessageTraits([messageTraitItem]); + expect(servers.has('anotherId')).toEqual(false); + }) + }) +}) \ No newline at end of file diff --git a/test/models/v2/message.spec.ts b/test/models/v2/message.spec.ts new file mode 100644 index 000000000..625191eca --- /dev/null +++ b/test/models/v2/message.spec.ts @@ -0,0 +1,81 @@ +import { Message } from '../../../src/models/v2/message'; +import { MessageTraits } from '../../../src/models/v2/message-traits'; +import { MessageTrait } from '../../../src/models/v2/message-trait'; +import { Schema } from '../../../src/models/v2/schema'; + +import { + assertBindingsMixinInheritance, + assertDescriptionMixinInheritance, + assertExtensionsMixinInheritance, + assertExternalDocumentationMixinInheritance, + assertTagsMixinInheritance, +} from './mixins/inheritance'; + +describe('Message model', function() { + describe('.id()', function() { + it('should return id of model', function() { + const doc = {}; + const d = new Message('message', doc); + expect(d.id()).toEqual('message'); + }); + + it('should reuse messageId', function() { + const doc = { messageId: '...' }; + const d = new Message('message', doc); + expect(d.id()).toEqual(doc.messageId); + }); + }); + + describe('.hasPayload()', function() { + it('should return true when there is a value', function() { + const doc = { payload: {} }; + const d = new Message('message', doc); + expect(d.hasPayload()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new Message('message', doc); + expect(d.hasPayload()).toEqual(false); + }); + }); + + describe('.payload()', function() { + it('should return the value', function() { + const doc = { payload: {} }; + const d = new Message('message', doc); + expect(d.payload()).toBeInstanceOf(Schema); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new Message('message', doc); + expect(d.payload()).toBeUndefined(); + }); + }); + + describe('.traits()', function() { + it('should return collection of traits', function() { + const doc = { traits: [ { messageId: '...' } ] }; + const d = new Message('message', doc); + expect(d.traits()).toBeInstanceOf(MessageTraits); + expect(d.traits().all()).toHaveLength(1); + expect(d.traits().all()[0]).toBeInstanceOf(MessageTrait); + }); + + it('should return collection of traits when value is undefined', function() { + const doc = {}; + const d = new Message('message', doc); + expect(d.traits()).toBeInstanceOf(MessageTraits); + expect(d.traits().all()).toHaveLength(0); + }); + }); + + describe('mixins inheritance', function() { + assertBindingsMixinInheritance(MessageTrait); + assertDescriptionMixinInheritance(MessageTrait); + assertExtensionsMixinInheritance(MessageTrait); + assertExternalDocumentationMixinInheritance(MessageTrait); + assertTagsMixinInheritance(MessageTrait); + }); +}); diff --git a/test/models/v2/messages.spec.ts b/test/models/v2/messages.spec.ts new file mode 100644 index 000000000..394c632f9 --- /dev/null +++ b/test/models/v2/messages.spec.ts @@ -0,0 +1,45 @@ +import { Messages } from '../../../src/models/v2/messages'; +import { Message } from '../../../src/models/v2/message'; + +const message = { + messageId: 'test', +}; +const messageItem = new Message('test', message); + +describe('Messages model', function () { + describe('.isEmpty()', function () { + it('should return true if collection is empty', function () { + const servers = new Messages([]); + expect(servers.isEmpty()).toEqual(true); + }); + + it('should return false if collection is not empty', function () { + const servers = new Messages([messageItem]); + expect(servers.isEmpty()).toEqual(false); + }); + }); + + describe('.get(id)', function () { + it('should return a specific Message if it is present', function () { + const servers = new Messages([messageItem]); + expect(servers.get('test')).toBeTruthy(); + }); + + it('should return undefined if specific Message is missing', function () { + const servers = new Messages([]); + expect(servers.get('test')).toBeUndefined(); + }); + }); + + describe('.has(id)', function () { + it('should return true if the said id is available', function () { + const servers = new Messages([messageItem]); + expect(servers.has('test')).toEqual(true); + }) + + it('should return false if the Message id is missing', function () { + const servers = new Messages([messageItem]); + expect(servers.has('anotherId')).toEqual(false); + }) + }) +}) \ No newline at end of file diff --git a/test/models/v2/oauth-flow.spec.ts b/test/models/v2/oauth-flow.spec.ts new file mode 100644 index 000000000..8435af1cb --- /dev/null +++ b/test/models/v2/oauth-flow.spec.ts @@ -0,0 +1,31 @@ +import { OAuthFlow } from '../../../src/models/v2/oauth-flow'; + +const flowObject = { + "authorizationUrl": "https://example.com/api/oauth/dialog", + "scopes": { + "write:pets": "modify pets in your account", + "read:pets": "read your pets" + } +} + +const flow = new OAuthFlow(flowObject); +const emptyObject = new OAuthFlow({}); + +describe('OAuth Flow', function(){ + describe('.authorizationUrl()', function(){ + it('should reutrn undefined if no authorizationUrl present', function(){ + expect(emptyObject.authorizationUrl()).toBeUndefined(); + }) + + it('should return authrozationUrl ', function(){ + expect(flow.authorizationUrl()).toMatch(flowObject.authorizationUrl); + }) + }) + + describe('.scopes()', function() { + it('should return scopes if present', function() { + expect(emptyObject.scopes()).toBeUndefined(); + expect(flow.scopes()!['write:pets']).toMatch(flowObject.scopes['write:pets']); + }) + }) +}) diff --git a/test/models/v2/oauth-flow.ts b/test/models/v2/oauth-flow.ts deleted file mode 100644 index 3bddb0e84..000000000 --- a/test/models/v2/oauth-flow.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { OAuthFlow } from '../../../src/models/v2/oauth-flow'; - -const flowObject = { - "authorizationUrl": "https://example.com/api/oauth/dialog", - "scopes": { - "write:pets": "modify pets in your account", - "read:pets": "read your pets" - } -} - -const flow = new OAuthFlow(flowObject); -const emptyObject = new OAuthFlow({}); - - -describe('OAuth Flow', function(){ - describe('.authorizationUrl()', function(){ - it('should reutrn undefined if no authorizationUrl present', function(){ - expect(emptyObject.authorizationUrl()).toBeUndefined(); - }) - - it('should return authrozationUrl ', function(){ - expect(flow.authorizationUrl()).toMatch(flowObject.authorizationUrl); - }) - }) - - describe('.scopes()', function() { - it('should return scopes if present', function() { - expect(emptyObject.scopes()).toBeUndefined(); - expect(flow.scopes()['write:pets']).toMatch(flowObject.scopes['write:pets']); - }) - }) - - -}) \ No newline at end of file diff --git a/test/models/v2/oauth-flows.spec.ts b/test/models/v2/oauth-flows.spec.ts new file mode 100644 index 000000000..79f7d6741 --- /dev/null +++ b/test/models/v2/oauth-flows.spec.ts @@ -0,0 +1,36 @@ +import { OAuthFlows } from '../../../src/models/v2/oauth-flows'; +import { OAuthFlow } from '../../../src/models/v2/oauth-flow'; + +const oAuthFlowsObject = { + "implicit": { + "authorizationUrl": "https://example.com/api/oauth/dialog", + "scopes": { + "write:pets": "modify pets in your account", + "read:pets": "read your pets" + } + }, + "authorizationCode": { + "authorizationUrl": "https://example.com/api/oauth/dialog", + "tokenUrl": "https://example.com/api/oauth/token", + "scopes": { + "write:pets": "modify pets in your account", + "read:pets": "read your pets" + } + } +} + +const flows = new OAuthFlows(oAuthFlowsObject); + +describe('OAuth Flows', function() { + describe('.hasImplicit()', function(){ + it('should return true', function(){ + expect(flows.hasImplicit()).toBeTruthy(); + }) + }) + + describe('.implicit()', function() { + it('should return OAuthflow object', function() { + expect(flows.implicit() instanceof OAuthFlow).toBeTruthy(); + }) + }) +}) \ No newline at end of file diff --git a/test/models/v2/oauth-flows.ts b/test/models/v2/oauth-flows.ts deleted file mode 100644 index 3f85ab013..000000000 --- a/test/models/v2/oauth-flows.ts +++ /dev/null @@ -1,36 +0,0 @@ -import {OAuthFlows} from '../../../src/models/v2/oauth-flows'; -import {OAuthFlow} from '../../../src/models/v2/oauth-flow'; - -const oAuthFlowsObject = { - "implicit": { - "authorizationUrl": "https://example.com/api/oauth/dialog", - "scopes": { - "write:pets": "modify pets in your account", - "read:pets": "read your pets" - } - }, - "authorizationCode": { - "authorizationUrl": "https://example.com/api/oauth/dialog", - "tokenUrl": "https://example.com/api/oauth/token", - "scopes": { - "write:pets": "modify pets in your account", - "read:pets": "read your pets" - } - } -} - -const flows = new OAuthFlows(oAuthFlowsObject); - -describe('OAuth Flows', function() { - describe('.hasImplicit()', function(){ - it('should return true', function(){ - expect(flows.hasImplicit()).toBeTruthy(); - }) - }) - - describe('.implicit()', function() { - it('should return OAuthflow object', function() { - expect(flows.implicit() instanceof OAuthFlow).toBeTruthy(); - }) - }) -}) \ No newline at end of file diff --git a/test/models/v2/operation-trait.spec.ts b/test/models/v2/operation-trait.spec.ts new file mode 100644 index 000000000..9704ae019 --- /dev/null +++ b/test/models/v2/operation-trait.spec.ts @@ -0,0 +1,117 @@ +import { OperationTrait } from '../../../src/models/v2/operation-trait'; +import { SecurityScheme } from '../../../src/models/v2/security-scheme'; + +import { + assertBindingsMixinInheritance, + assertDescriptionMixinInheritance, + assertExtensionsMixinInheritance, + assertExternalDocumentationMixinInheritance, + assertTagsMixinInheritance, +} from './mixins/inheritance'; + +describe('OperationTrait model', function() { + describe('.id()', function() { + it('should return id of model', function() { + const doc = {}; + const d = new OperationTrait('trait', doc); + expect(d.id()).toEqual('trait'); + }); + + it('should reuse operationId', function() { + const doc = { operationId: '...' }; + const d = new OperationTrait('trait', doc); + expect(d.id()).toEqual(doc.operationId); + }); + }); + + describe('.action()', function() { + it('should return kind/action of operation', function() { + const doc = {}; + const d = new OperationTrait('trait', doc, { asyncapi: {} as any, pointer: '', action: 'publish' }); + expect(d.action()).toEqual('publish'); + }); + }); + + describe('.hasOperationId()', function() { + it('should return true when there is a value', function() { + const doc = { operationId: '...' }; + const d = new OperationTrait('trait', doc); + expect(d.hasOperationId()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new OperationTrait('trait', doc); + expect(d.hasOperationId()).toEqual(false); + }); + }); + + describe('.operationId()', function() { + it('should return the value', function() { + const doc = { operationId: '...' }; + const d = new OperationTrait('trait', doc); + expect(d.operationId()).toEqual(doc.operationId); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new OperationTrait('trait', doc); + expect(d.operationId()).toBeUndefined(); + }); + }); + + describe('.hasSummary()', function() { + it('should return true when there is a value', function() { + const doc = { summary: "..." }; + const d = new OperationTrait('trait', doc); + expect(d.hasSummary()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new OperationTrait('trait', doc); + expect(d.hasSummary()).toEqual(false); + }); + }); + + describe('.summary()', function() { + it('should return the value', function() { + const doc = { summary: "..." }; + const d = new OperationTrait('trait', doc); + expect(d.summary()).toEqual(doc.summary); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new OperationTrait('trait', doc); + expect(d.summary()).toBeUndefined(); + }); + }); + + describe('.security()', function() { + it('should return collection of security requirements', function() { + const doc = { security: [ { requirement: [] } ] }; + const d = new OperationTrait('trait', doc); + expect(Array.isArray(d.security())).toEqual(true); + expect(d.security()).toHaveLength(1); + expect(typeof d.security()[0]).toEqual('object'); + expect(d.security()[0]['requirement'].schema).toBeInstanceOf(SecurityScheme); + expect(d.security()[0]['requirement'].scopes).toEqual([]); + }); + + it('should return collection of security requirements when value is undefined', function() { + const doc = {}; + const d = new OperationTrait('trait', doc); + expect(Array.isArray(d.security())).toEqual(true); + expect(d.security()).toHaveLength(0); + }); + }); + + describe('mixins inheritance', function() { + assertBindingsMixinInheritance(OperationTrait); + assertDescriptionMixinInheritance(OperationTrait); + assertExtensionsMixinInheritance(OperationTrait); + assertExternalDocumentationMixinInheritance(OperationTrait); + assertTagsMixinInheritance(OperationTrait); + }); +}); diff --git a/test/models/v2/operation-traits.spec.ts b/test/models/v2/operation-traits.spec.ts new file mode 100644 index 000000000..6f8bb0c2a --- /dev/null +++ b/test/models/v2/operation-traits.spec.ts @@ -0,0 +1,45 @@ +import { OperationTraits } from '../../../src/models/v2/operation-traits'; +import { OperationTrait } from '../../../src/models/v2/operation-trait'; + +const operationTrait = { + operationId: 'test', +}; +const operationTraitItem = new OperationTrait('test', operationTrait); + +describe('OperationTraits model', function () { + describe('.isEmpty()', function () { + it('should return true if collection is empty', function () { + const servers = new OperationTraits([]); + expect(servers.isEmpty()).toEqual(true); + }); + + it('should return false if collection is not empty', function () { + const servers = new OperationTraits([operationTraitItem]); + expect(servers.isEmpty()).toEqual(false); + }); + }); + + describe('.get(id)', function () { + it('should return a specific Operation Trait if it is present', function () { + const servers = new OperationTraits([operationTraitItem]); + expect(servers.get('test')).toBeTruthy(); + }); + + it('should return undefined if specific Operation Trait is missing', function () { + const servers = new OperationTraits([]); + expect(servers.get('test')).toBeUndefined(); + }); + }); + + describe('.has(id)', function () { + it('should return true if the said id is available', function () { + const servers = new OperationTraits([operationTraitItem]); + expect(servers.has('test')).toEqual(true); + }) + + it('should return false if the Operation Trait id is missing', function () { + const servers = new OperationTraits([operationTraitItem]); + expect(servers.has('anotherId')).toEqual(false); + }) + }) +}) \ No newline at end of file diff --git a/test/models/v2/operation.spec.ts b/test/models/v2/operation.spec.ts new file mode 100644 index 000000000..8ff8d0a77 --- /dev/null +++ b/test/models/v2/operation.spec.ts @@ -0,0 +1,80 @@ +import { Operation } from '../../../src/models/v2/operation'; +import { OperationTraits } from '../../../src/models/v2/operation-traits'; +import { OperationTrait } from '../../../src/models/v2/operation-trait'; +import { Messages } from '../../../src/models/v2/messages'; +import { Message } from '../../../src/models/v2/message'; + +import { + assertBindingsMixinInheritance, + assertDescriptionMixinInheritance, + assertExtensionsMixinInheritance, + assertExternalDocumentationMixinInheritance, + assertTagsMixinInheritance, +} from './mixins/inheritance'; + +describe('Operation model', function() { + describe('.id()', function() { + it('should return id of model', function() { + const doc = {}; + const d = new Operation('message', doc); + expect(d.id()).toEqual('message'); + }); + + it('should reuse operationId', function() { + const doc = { operationId: '...' }; + const d = new Operation('message', doc); + expect(d.id()).toEqual(doc.operationId); + }); + }); + + describe('.messages()', function() { + it('should return collection of messages - single message', function() { + const doc = { message: { messageId: '...' } }; + const d = new Operation('message', doc); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(1); + expect(d.messages().all()[0]).toBeInstanceOf(Message); + }); + + it('should return collection of messages - oneOf messages', function() { + const doc = { message: { oneOf: [ { messageId: '...' }, { messageId: '...' } ] } }; + const d = new Operation('message', doc); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(2); + expect(d.messages().all()[0]).toBeInstanceOf(Message); + expect(d.messages().all()[1]).toBeInstanceOf(Message); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new Operation('message', doc); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(0); + }); + }); + + describe('.traits()', function() { + it('should return collection of traits', function() { + const doc = { traits: [ { operationId: '...' } ] }; + const d = new Operation('message', doc); + expect(d.traits()).toBeInstanceOf(OperationTraits); + expect(d.traits().all()).toHaveLength(1); + expect(d.traits().all()[0]).toBeInstanceOf(OperationTrait); + }); + + it('should return collection of traits when value is undefined', function() { + const doc = {}; + const d = new Operation('message', doc); + expect(d.traits()).toBeInstanceOf(OperationTraits); + expect(d.traits().all()).toHaveLength(0); + }); + }); + + describe('mixins inheritance', function() { + assertBindingsMixinInheritance(Operation); + assertDescriptionMixinInheritance(Operation); + assertExtensionsMixinInheritance(Operation); + assertExternalDocumentationMixinInheritance(Operation); + assertTagsMixinInheritance(Operation); + }); +}); diff --git a/test/models/v2/operations.spec.ts b/test/models/v2/operations.spec.ts new file mode 100644 index 000000000..ca0a87243 --- /dev/null +++ b/test/models/v2/operations.spec.ts @@ -0,0 +1,45 @@ +import { Operations } from '../../../src/models/v2/operations'; +import { Operation } from '../../../src/models/v2/operation'; + +const operation = { + messageId: 'test', +}; +const operationItem = new Operation('test', operation); + +describe('Operations model', function () { + describe('.isEmpty()', function () { + it('should return true if collection is empty', function () { + const servers = new Operations([]); + expect(servers.isEmpty()).toEqual(true); + }); + + it('should return false if collection is not empty', function () { + const servers = new Operations([operationItem]); + expect(servers.isEmpty()).toEqual(false); + }); + }); + + describe('.get(id)', function () { + it('should return a specific Operation if it is present', function () { + const servers = new Operations([operationItem]); + expect(servers.get('test')).toBeTruthy(); + }); + + it('should return undefined if specific Operation is missing', function () { + const servers = new Operations([]); + expect(servers.get('test')).toBeUndefined(); + }); + }); + + describe('.has(id)', function () { + it('should return true if the said id is available', function () { + const servers = new Operations([operationItem]); + expect(servers.has('test')).toEqual(true); + }) + + it('should return false if the Operation id is missing', function () { + const servers = new Operations([operationItem]); + expect(servers.has('anotherId')).toEqual(false); + }) + }) +}) \ No newline at end of file diff --git a/test/models/v2/server-variable.spec.ts b/test/models/v2/server-variable.spec.ts new file mode 100644 index 000000000..42d420d43 --- /dev/null +++ b/test/models/v2/server-variable.spec.ts @@ -0,0 +1,39 @@ +import { ServerVariable } from '../../../src/models/v2/server-variable'; + +const doc = { + description: 'Secure connection (TLS) is available through port 8883.', + default: '1883', + enum: ['1883', '8883'] +} + +const sv = new ServerVariable('doc', doc); + +describe('Server Variable ', function() { + describe('.id()', function() { + expect(sv.id()).toMatch('doc'); + }) + + describe('.hasDefaultValue()', function() { + it('should return true if default value is passed', function(){ + expect(sv.hasDefaultValue()).toBeTruthy(); + }) + }) + + describe('.defaultValue()', function(){ + it('should return default value', function() { + expect(sv.defaultValue()).toMatch(doc.default); + }) + }) + + describe('.hasAllowedValue()', function() { + it('should return true when enum is passed', function(){ + expect(sv.hasAllowedValues()).toBeTruthy(); + }) + }) + + describe('.allowedValue()', function(){ + it('should return enum object', function(){ + expect(sv.allowedValues()).toEqual(doc.enum) + }) + }) +}) diff --git a/test/models/v2/server-variable.ts b/test/models/v2/server-variable.ts deleted file mode 100644 index 4ff3fef4d..000000000 --- a/test/models/v2/server-variable.ts +++ /dev/null @@ -1,39 +0,0 @@ -import {ServerVariable} from '../../../src/models/v2/server-variable'; - -const doc = { - description: 'Secure connection (TLS) is available through port 8883.', - default: '1883', - enum: ['1883', '8883'] -} - -const sv = new ServerVariable('doc', doc); - -describe('server variable ', function() { - describe('.id()', function() { - expect(sv.id()).toMatch('doc'); - }) - - describe('.hasDefaultValue()', function() { - it('should return true if default value is passed', function(){ - expect(sv.hasDefaultValue()).toBeTruthy(); - }) - }) - - describe('.defaultValue()', function(){ - it('should return default value', function() { - expect(sv.defaultValue()).toMatch(doc.default); - }) - }) - - describe('.hasAllowedValue()', function() { - it('should return true when enum is passed', function(){ - expect(sv.hasAllowedValue()).toBeTruthy(); - }) - }) - - describe('.allowedValue()', function(){ - it('should return enum object', function(){ - expect(sv.allowedValue()).toEqual(doc.enum) - }) - }) -}) \ No newline at end of file diff --git a/test/models/v2/server.spec.ts b/test/models/v2/server.spec.ts index 39dcc7f7f..f724b0276 100644 --- a/test/models/v2/server.spec.ts +++ b/test/models/v2/server.spec.ts @@ -1,7 +1,9 @@ import { Server } from '../../../src/models/v2/server'; import { ServerVariables } from '../../../src/models/v2/server-variables'; +import { SecurityScheme } from '../../../src/models/v2/security-scheme'; import { + assertBindingsMixinInheritance, assertDescriptionMixinInheritance, assertExtensionsMixinInheritance, } from './mixins/inheritance'; @@ -61,13 +63,33 @@ describe('Server Model', function () { }); }); - describe('.servers()', function () { + describe('.variables()', function () { it('should return ServerVariables object', function () { - expect(docItem.variables() instanceof ServerVariables).toBeTruthy(); + expect(docItem.variables()).toBeInstanceOf(ServerVariables); }) }) + describe('.security()', function() { + it('should return collection of security requirements', function() { + const doc = { security: [ { requirement: [] } ] }; + const d = new Server('trait', doc); + expect(Array.isArray(d.security())).toEqual(true); + expect(d.security()).toHaveLength(1); + expect(typeof d.security()[0]).toEqual('object'); + expect(d.security()[0]['requirement'].schema).toBeInstanceOf(SecurityScheme); + expect(d.security()[0]['requirement'].scopes).toEqual([]); + }); + + it('should return collection of security requirements when value is undefined', function() { + const doc = {}; + const d = new Server('trait', doc); + expect(Array.isArray(d.security())).toEqual(true); + expect(d.security()).toHaveLength(0); + }); + }); + describe('mixins inheritance', function () { + assertBindingsMixinInheritance(Server); assertDescriptionMixinInheritance(Server); assertExtensionsMixinInheritance(Server); }); diff --git a/test/models/v2/servers.spec.ts b/test/models/v2/servers.spec.ts index f76ff7f3c..122ad7d09 100644 --- a/test/models/v2/servers.spec.ts +++ b/test/models/v2/servers.spec.ts @@ -14,17 +14,17 @@ describe('Servers model', function () { describe('.isEmpty()', function () { it('should return true if collection is empty', function () { const servers = new Servers([]); - expect(servers.isEmpty()).toBeTruthy(); + expect(servers.isEmpty()).toEqual(true); }); it('should return false if collection is not empty', function () { const servers = new Servers([docItem]); - expect(servers.isEmpty()).toBeFalsy(); + expect(servers.isEmpty()).toEqual(false); }); }); describe('.get(id)', function () { - it('should return a specific server Object if it is present', function () { + it('should return a specific Server Object if it is present', function () { const servers = new Servers([docItem]); expect(servers.get('development')).toBeTruthy(); }); @@ -36,14 +36,14 @@ describe('Servers model', function () { }); describe('.has(id)', function () { - const servers = new Servers([docItem]); - it('should return true if the said name is available', function () { - expect(servers.has('development')).toBeTruthy(); + const servers = new Servers([docItem]); + expect(servers.has('development')).toEqual(true); }) it('should return false if the server name is missing', function () { - expect(servers.has('production')).toBeFalsy(); + const servers = new Servers([docItem]); + expect(servers.has('production')).toEqual(false); }) }) }) \ No newline at end of file diff --git a/test/models/v2/tags.spec.ts b/test/models/v2/tags.spec.ts new file mode 100644 index 000000000..b6b65807e --- /dev/null +++ b/test/models/v2/tags.spec.ts @@ -0,0 +1,44 @@ +import { Tags, Tag } from '../../../src/models/v2/mixins/tags'; + +const tag = { + name: 'test', +}; +const tagItem = new Tag(tag); + +describe('Tags model', function () { + describe('.isEmpty()', function () { + it('should return true if collection is empty', function () { + const servers = new Tags([]); + expect(servers.isEmpty()).toBeTruthy(); + }); + + it('should return false if collection is not empty', function () { + const servers = new Tags([tagItem]); + expect(servers.isEmpty()).toBeFalsy(); + }); + }); + + describe('.get(id)', function () { + it('should return a specific Tag Object if it is present', function () { + const servers = new Tags([tagItem]); + expect(servers.get('test')).toBeTruthy(); + }); + + it('should return undefined if specific Tag Object is missing', function () { + const servers = new Tags([]); + expect(servers.get('test')).toBeUndefined(); + }); + }); + + describe('.has(id)', function () { + it('should return true if the said name is available', function () { + const servers = new Tags([tagItem]); + expect(servers.has('test')).toBeTruthy(); + }) + + it('should return false if the Tag name is missing', function () { + const servers = new Tags([tagItem]); + expect(servers.has('anotherName')).toBeFalsy(); + }) + }) +}) \ No newline at end of file From ae4b0ff03155c2a809a980fd371963d7163374dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Mon, 9 May 2022 17:27:45 +0200 Subject: [PATCH 020/126] refactor: port channel, channel-parameter and schema models (#547) --- src/models/base.ts | 8 +- src/models/extension.ts | 2 +- src/models/schema.ts | 56 +- src/models/v2/channel-parameter.ts | 40 ++ src/models/v2/channel-parameters.ts | 14 + src/models/v2/channel.ts | 75 ++ src/models/v2/channels.ts | 14 + src/models/v2/message-trait.ts | 5 +- src/models/v2/mixins/bindings.ts | 5 +- src/models/v2/mixins/extensions.ts | 11 +- src/models/v2/mixins/external-docs.ts | 5 +- src/models/v2/mixins/tags.ts | 5 +- src/models/v2/operation-trait.ts | 5 +- src/models/v2/schema.ts | 254 ++++++- src/models/v2/security-scheme.ts | 5 +- src/models/v2/server-variable.ts | 5 +- src/models/v2/server.ts | 5 +- src/models/v3/mixins/extensions.ts | 6 +- test/models/v2/channel-parameter.spec.ts | 78 +++ test/models/v2/channel-parameters.spec.ts | 45 ++ test/models/v2/channel.spec.ts | 114 +++ test/models/v2/channels.spec.ts | 45 ++ test/models/v2/message-trait.spec.ts | 66 +- test/models/v2/message-traits.spec.ts | 2 +- test/models/v2/message.spec.ts | 16 +- test/models/v2/messages.spec.ts | 2 +- test/models/v2/operation-trait.spec.ts | 26 +- test/models/v2/operation-traits.spec.ts | 2 +- test/models/v2/operation.spec.ts | 16 +- test/models/v2/operations.spec.ts | 4 +- test/models/v2/schema.spec.ts | 803 ++++++++++++++++++++++ test/models/v2/security-scheme.spec.ts | 4 +- test/models/v2/server-variable.spec.ts | 2 +- test/models/v2/server.spec.ts | 8 +- test/models/v2/servers.spec.ts | 2 +- 35 files changed, 1635 insertions(+), 120 deletions(-) create mode 100644 src/models/v2/channel-parameter.ts create mode 100644 src/models/v2/channel-parameters.ts create mode 100644 src/models/v2/channel.ts create mode 100644 src/models/v2/channels.ts create mode 100644 test/models/v2/channel-parameter.spec.ts create mode 100644 test/models/v2/channel-parameters.spec.ts create mode 100644 test/models/v2/channel.spec.ts create mode 100644 test/models/v2/channels.spec.ts create mode 100644 test/models/v2/schema.spec.ts diff --git a/src/models/base.ts b/src/models/base.ts index ca3efcc85..748a56889 100644 --- a/src/models/base.ts +++ b/src/models/base.ts @@ -32,11 +32,7 @@ export abstract class BaseModel { return `${this._meta?.pointer}/${field}`; } - protected createModel(Model: Constructor, value: any, { id, parent, pointer, ...rest }: { id?: string, pointer: string | number, [key: string]: any }): T { - const meta = { ...rest, asyncapi: this._meta.asyncapi, pointer } as ModelMetadata; - if (id) { - return new Model(id, value, meta); - } - return new Model(value, meta); + protected createModel(Model: Constructor, value: any, { pointer, ...rest }: { pointer: string | number, [key: string]: any }): T { + return new Model(value, { ...rest, asyncapi: this._meta.asyncapi, pointer }); } } diff --git a/src/models/extension.ts b/src/models/extension.ts index a21d16024..8099c45a8 100644 --- a/src/models/extension.ts +++ b/src/models/extension.ts @@ -1,7 +1,7 @@ import type { BaseModel } from "./base"; export interface ExtensionInterface extends BaseModel { - id(): string; + name(): string; version(): string; value(): any; } diff --git a/src/models/schema.ts b/src/models/schema.ts index c6b4384f1..ec48a7788 100644 --- a/src/models/schema.ts +++ b/src/models/schema.ts @@ -1,4 +1,56 @@ import type { BaseModel } from "./base"; -import type { ExtensionsMixinInterface } from "./mixins"; +import type { ExtensionsMixinInterface, ExternalDocumentationMixinInterface } from "./mixins"; -export interface SchemaInterface extends BaseModel, ExtensionsMixinInterface {} +export interface SchemaInterface extends BaseModel, ExtensionsMixinInterface, ExternalDocumentationMixinInterface { + uid(): string; + $comment(): string | undefined; + $id(): string | undefined; + $schema(): string; + additionalItems(): boolean | SchemaInterface; + additionalProperties(): boolean | SchemaInterface; + allOf(): Array | undefined; + anyOf(): Array | undefined; + const(): any; + contains(): SchemaInterface | undefined; + contentEncoding(): string | undefined; + contentMediaType(): string | undefined; + default(): any; + definitions(): Record | undefined; + description(): string | undefined; + dependencies(): Record> | undefined; + deprecated(): boolean; + discriminator(): string | undefined; + else(): SchemaInterface | undefined; + enum(): Array | undefined; + examples(): Array | undefined; + exclusiveMaximum(): number | undefined; + exclusiveMinimum(): number | undefined; + format(): string | undefined; + isBooleanSchema(): boolean; + if(): SchemaInterface | undefined; + isCircular(): boolean; + items(): SchemaInterface | Array | undefined; + maximum(): number | undefined; + maxItems(): number | undefined; + maxLength(): number | undefined; + maxProperties(): number | undefined; + minimum(): number | undefined; + minItems(): number | undefined; + minLength(): number | undefined; + minProperties(): number | undefined; + multipleOf(): number | undefined; + not(): SchemaInterface | undefined; + oneOf(): Array | undefined; + pattern(): string | undefined; + patternProperties(): Record | undefined; + properties(): Record | undefined; + property(key: string): SchemaInterface | undefined; + propertyNames(): SchemaInterface | undefined; + readOnly(): boolean | undefined; + required(): Array | undefined; + then(): SchemaInterface | undefined; + title(): string | undefined; + type(): string | Array | undefined; + uniqueItems(): boolean | undefined; + writeOnly(): boolean | undefined; +} diff --git a/src/models/v2/channel-parameter.ts b/src/models/v2/channel-parameter.ts new file mode 100644 index 000000000..0609b0636 --- /dev/null +++ b/src/models/v2/channel-parameter.ts @@ -0,0 +1,40 @@ +import { BaseModel } from "../base"; +import { Schema } from "./schema"; + +import { Mixin } from '../utils'; +import { DescriptionMixin } from './mixins/description'; +import { ExtensionsMixin } from './mixins/extensions'; + +import type { ModelMetadata } from "../base"; +import type { ChannelParameterInterface } from "../channel-parameter"; +import type { SchemaInterface } from "../schema"; + +export class ChannelParameter extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements ChannelParameterInterface { + constructor( + _json: Record, + protected readonly _meta: ModelMetadata & { id: string } = {} as any + ) { + super(_json, _meta); + } + + id(): string { + return this._meta.id; + } + + hasSchema(): boolean { + return !!this._json.schema; + } + + schema(): SchemaInterface | undefined { + if (!this._json.schema) return undefined; + return this.createModel(Schema, this._json.schema, { pointer: `${this._meta.pointer}/schema` }); + } + + hasLocation(): boolean { + return !!this._json.location; + } + + location(): string | undefined { + return this._json.location; + } +} diff --git a/src/models/v2/channel-parameters.ts b/src/models/v2/channel-parameters.ts new file mode 100644 index 000000000..486f0177a --- /dev/null +++ b/src/models/v2/channel-parameters.ts @@ -0,0 +1,14 @@ +import { Collection } from '../collection'; + +import type { ChannelParametersInterface } from '../channel-parameters'; +import type { ChannelParameterInterface } from '../channel-parameter'; + +export class ChannelParameters extends Collection implements ChannelParametersInterface { + override get(id: string): ChannelParameterInterface | undefined { + return this.collections.find(parameter => parameter.id() === id); + } + + override has(id: string): boolean { + return this.collections.some(parameter => parameter.id() === id); + } +} diff --git a/src/models/v2/channel.ts b/src/models/v2/channel.ts new file mode 100644 index 000000000..cc4b3cb47 --- /dev/null +++ b/src/models/v2/channel.ts @@ -0,0 +1,75 @@ +import { BaseModel } from "../base"; +import { ChannelParameters } from './channel-parameters'; +import { ChannelParameter } from './channel-parameter'; +import { Messages } from './messages'; +import { Operations } from './operations'; +import { Operation } from './operation'; +import { Servers } from './servers'; +import { Server } from './server'; + +import { Mixin } from '../utils'; +import { BindingsMixin } from './mixins/bindings'; +import { DescriptionMixin } from './mixins/description'; +import { ExtensionsMixin } from './mixins/extensions'; + +import type { ModelMetadata } from "../base"; +import type { ChannelInterface } from "../channel"; +import type { ChannelParametersInterface } from "../channel-parameters"; +import type { OperationsInterface } from "../operations"; +import type { OperationInterface } from "../operation"; +import type { ServersInterface } from "../servers"; +import type { ServerInterface } from "../server"; + +export class Channel extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, ExtensionsMixin) implements ChannelInterface { + constructor( + _json: Record, + protected readonly _meta: ModelMetadata & { id: string, address: string } = {} as any + ) { + super(_json, _meta); + } + + id(): string { + return this._meta.id; + } + + address(): string { + return this._meta.address; + } + + servers(): ServersInterface { + const servers: ServerInterface[] = []; + const allowedServers: string[] = this._json.servers || []; + Object.entries(this._meta.asyncapi?.parsed.servers || {}).map(([serverName, server]) => { + if (allowedServers.length === 0 || allowedServers.includes(serverName)) { + servers.push(this.createModel(Server, server, { id: serverName, pointer: `/servers/${serverName}` })); + } + }); + return new Servers(servers); + } + + operations(): OperationsInterface { + const operations: OperationInterface[] = [] + if (this._json.publish) { + operations.push( + this.createModel(Operation, this._json.publish, { id: 'publish', action: 'publish', pointer: `${this._meta.pointer}/publish` }), + ); + } + if (this._json.subscribe) { + operations.push( + this.createModel(Operation, this._json.subscribe, { id: 'subscribe', action: 'subscribe', pointer: `${this._meta.pointer}/subscribe` }), + ); + } + return new Operations(operations); + } + + parameters(): ChannelParametersInterface { + return new ChannelParameters( + Object.entries(this._json.parameters || {}).map(([channelParameterName, channelParameter]) => { + return this.createModel(ChannelParameter, channelParameter, { + id: channelParameterName, + pointer: `${this._meta.pointer}/parameters/${channelParameterName}` + }) + }) + ); + } +} diff --git a/src/models/v2/channels.ts b/src/models/v2/channels.ts new file mode 100644 index 000000000..8a3520197 --- /dev/null +++ b/src/models/v2/channels.ts @@ -0,0 +1,14 @@ +import { Collection } from '../collection'; + +import type { ChannelsInterface } from '../channels'; +import type { ChannelInterface } from '../channel'; + +export class Channels extends Collection implements ChannelsInterface { + override get(id: string): ChannelInterface | undefined { + return this.collections.find(channel => channel.id() === id); + } + + override has(id: string): boolean { + return this.collections.some(channel => channel.id() === id); + } +} diff --git a/src/models/v2/message-trait.ts b/src/models/v2/message-trait.ts index a55c9c5c8..a796ae07d 100644 --- a/src/models/v2/message-trait.ts +++ b/src/models/v2/message-trait.ts @@ -19,15 +19,14 @@ import type { SchemaInterface } from "../schema"; export class MessageTrait extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, ExtensionsMixin, ExternalDocumentationMixin, TagsMixin) implements MessageTraitInterface { constructor( - private readonly _id: string, _json: Record, - _meta: ModelMetadata = {} as any + protected readonly _meta: ModelMetadata & { id: string } = {} as any ) { super(_json, _meta); } id(): string { - return this.messageId() || this._id; + return this.messageId() || this._meta.id; } hasMessageId(): boolean { diff --git a/src/models/v2/mixins/bindings.ts b/src/models/v2/mixins/bindings.ts index b1dfe9b2e..10135f31f 100644 --- a/src/models/v2/mixins/bindings.ts +++ b/src/models/v2/mixins/bindings.ts @@ -11,15 +11,14 @@ import type { BindingInterface } from "../../binding"; export class Binding extends Mixin(BaseModel, ExtensionsMixin) implements BindingInterface { constructor( - private readonly _protocol: string, _json: Record, - _meta: ModelMetadata = {} as any, + protected readonly _meta: ModelMetadata & { protocol: string } = {} as any, ) { super(_json, _meta); } protocol(): string { - return this._protocol; + return this._meta.protocol; } version(): string { diff --git a/src/models/v2/mixins/extensions.ts b/src/models/v2/mixins/extensions.ts index 727bb6598..cfee5c5af 100644 --- a/src/models/v2/mixins/extensions.ts +++ b/src/models/v2/mixins/extensions.ts @@ -10,15 +10,14 @@ import { EXTENSION_REGEX } from '../../../constants'; export class Extension extends BaseModel implements ExtensionInterface { constructor( - private readonly _id: string, _json: Record, - _meta: ModelMetadata = {} as any, + protected readonly _meta: ModelMetadata & { name: string } = {} as any, ) { super(_json, _meta); } - id(): string { - return this._id; + name(): string { + return this._meta.name; } version(): string { @@ -33,12 +32,12 @@ export class Extension extends BaseModel implements ExtensionInterface { export class Extensions extends Collection implements ExtensionsInterface { override get(name: string): ExtensionInterface | undefined { name = name.startsWith('x-') ? name : `x-${name}`; - return this.collections.find(ext => ext.id() === name); + return this.collections.find(ext => ext.name() === name); }; override has(name: string): boolean { name = name.startsWith('x-') ? name : `x-${name}`; - return this.collections.some(ext => ext.id() === name); + return this.collections.some(ext => ext.name() === name); }; } diff --git a/src/models/v2/mixins/external-docs.ts b/src/models/v2/mixins/external-docs.ts index d400201ca..92906fb0e 100644 --- a/src/models/v2/mixins/external-docs.ts +++ b/src/models/v2/mixins/external-docs.ts @@ -7,10 +7,7 @@ import { ExtensionsMixin } from './extensions'; import type { ExternalDocumentationInterface } from '../../external-docs'; import type { ExternalDocumentationMixinInterface } from "../../mixins"; -export class ExternalDocumentation - extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) - implements ExternalDocumentationInterface { - +export class ExternalDocumentation extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements ExternalDocumentationInterface { url(): string { return this._json.url; } diff --git a/src/models/v2/mixins/tags.ts b/src/models/v2/mixins/tags.ts index 0134183e5..4cc0a4fa0 100644 --- a/src/models/v2/mixins/tags.ts +++ b/src/models/v2/mixins/tags.ts @@ -10,10 +10,7 @@ import type { TagsMixinInterface } from "../../mixins"; import type { TagsInterface } from "../../tags"; import type { TagInterface } from "../../tag"; -export class Tag - extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin, ExternalDocumentationMixin) - implements TagInterface { - +export class Tag extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin, ExternalDocumentationMixin) implements TagInterface { name(): string { return this._json.name; } diff --git a/src/models/v2/operation-trait.ts b/src/models/v2/operation-trait.ts index aa3ccea40..9f9960558 100644 --- a/src/models/v2/operation-trait.ts +++ b/src/models/v2/operation-trait.ts @@ -15,15 +15,14 @@ import type { SecuritySchemeInterface } from "../security-scheme"; export class OperationTrait extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, ExtensionsMixin, ExternalDocumentationMixin, TagsMixin) implements OperationTraitInterface { constructor( - private readonly _id: string, _json: Record, - public readonly _meta: ModelMetadata & { action: OperationAction } = {} as any, + protected readonly _meta: ModelMetadata & { id: string, action: OperationAction } = {} as any, ) { super(_json, _meta); } id(): string { - return this.operationId() || this._id; + return this.operationId() || this._meta.id; } action(): OperationAction { diff --git a/src/models/v2/schema.ts b/src/models/v2/schema.ts index 24eb9ea9a..0029a3658 100644 --- a/src/models/v2/schema.ts +++ b/src/models/v2/schema.ts @@ -2,7 +2,259 @@ import { BaseModel } from "../base"; import { Mixin } from '../utils'; import { ExtensionsMixin } from './mixins/extensions'; +import { ExternalDocumentationMixin } from './mixins/external-docs'; +import type { ModelMetadata } from "../base"; import type { SchemaInterface } from "../schema"; -export class Schema extends Mixin(BaseModel, ExtensionsMixin) implements SchemaInterface {} +export class Schema extends Mixin(BaseModel, ExtensionsMixin, ExternalDocumentationMixin) implements SchemaInterface { + constructor( + _json: Record, + protected readonly _meta: ModelMetadata & { id: string, parent: Schema | null } = {} as any + ) { + super(_json, _meta); + } + + uid(): string { + return this._meta.id; + } + + $comment(): string | undefined { + return this._json.$comment; + } + + $id(): string | undefined { + return this._json.$id; + } + + $schema(): string { + return this._json.$schema || 'http://json-schema.org/draft-07/schema#'; + } + + additionalItems(): boolean | SchemaInterface { + if (this._json.additionalItems === undefined) return true; + if (typeof this._json.additionalItems === 'boolean') return this._json.additionalItems; + return this.createModel(Schema, this._json.additionalItems, { pointer: `${this._meta.pointer}/additionalItems`, parent: this }); + } + + additionalProperties(): boolean | SchemaInterface { + if (this._json.additionalProperties === undefined) return true; + if (typeof this._json.additionalProperties === 'boolean') return this._json.additionalProperties; + return this.createModel(Schema, this._json.additionalProperties, { pointer: `${this._meta.pointer}/additionalProperties`, parent: this }); + } + + allOf(): Array | undefined { + if (!Array.isArray(this._json.allOf)) return undefined; + return this._json.allOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/allOf/${index}`, parent: this })); + } + + anyOf(): Array | undefined { + if (!Array.isArray(this._json.anyOf)) return undefined; + return this._json.anyOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/anyOf/${index}`, parent: this })); + } + + const(): any { + return this._json.const; + } + + contains(): SchemaInterface | undefined { + if (typeof this._json.contains !== 'object') return; + return this.createModel(Schema, this._json.contains, { pointer: `${this._meta.pointer}/contains`, parent: this }); + } + + contentEncoding(): string | undefined { + return this._json.contentEncoding; + } + + contentMediaType(): string | undefined { + return this._json.contentMediaType; + } + + default(): any { + return this._json.default; + } + + definitions(): Record | undefined { + if (typeof this._json.definitions !== 'object') return undefined; + return Object.entries(this._json.definitions).reduce((acc: Record, [key, s]: [string, any]) => { + acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/definitions/${key}`, parent: this }); + return acc; + }, {}); + } + + description(): string | undefined { + return this._json.description; + } + + dependencies(): Record> | undefined { + if (typeof this._json.dependencies !== 'object') return undefined; + return Object.entries(this._json.dependencies).reduce((acc: Record>, [key, s]: [string, any]) => { + acc[key] = Array.isArray(s) ? s : this.createModel(Schema, s, { pointer: `${this._meta.pointer}/dependencies/${key}`, parent: this }); + return acc; + }, {}); + } + + deprecated(): boolean { + return this._json.deprecated || false; + } + + discriminator(): string | undefined { + return this._json.discriminator; + } + + else(): SchemaInterface | undefined { + if (typeof this._json.else !== 'object') return; + return this.createModel(Schema, this._json.else, { pointer: `${this._meta.pointer}/else`, parent: this }); + } + + enum(): Array | undefined { + return this._json.enum; + } + + examples(): Array | undefined { + return this._json.examples; + } + + exclusiveMaximum(): number | undefined { + return this._json.exclusiveMaximum; + } + + exclusiveMinimum(): number | undefined { + return this._json.exclusiveMinimum; + } + + format(): string | undefined { + return this._json.format; + } + + isBooleanSchema(): boolean { + return typeof this._json === 'boolean'; + } + + if(): SchemaInterface | undefined { + if (typeof this._json.if !== 'object') return; + return this.createModel(Schema, this._json.if, { pointer: `${this._meta.pointer}/if`, parent: this }); + } + + isCircular(): boolean { + let parent = this._meta.parent; + while (parent) { + if (parent._json === this._json) return true; + parent = parent._meta.parent; + } + return false; + } + + items(): SchemaInterface | Array | undefined { + if (typeof this._json.items !== 'object') return; + if (Array.isArray(this._json.items)) { + return this._json.items.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/items/${index}`, parent: this })); + } + return this.createModel(Schema, this._json.items, { pointer: `${this._meta.pointer}/items`, parent: this }); + } + + maximum(): number | undefined { + return this._json.maximum; + } + + maxItems(): number | undefined { + return this._json.maxItems; + } + + maxLength(): number | undefined { + return this._json.maxLength; + } + + maxProperties(): number | undefined { + return this._json.maxProperties; + } + + minimum(): number | undefined { + return this._json.minimum; + } + + minItems(): number | undefined { + return this._json.minItems; + } + + minLength(): number | undefined { + return this._json.minLength; + } + + minProperties(): number | undefined { + return this._json.minProperties; + } + + multipleOf(): number | undefined { + return this._json.multipleOf; + } + + not(): SchemaInterface | undefined { + if (typeof this._json.not !== 'object') return; + return this.createModel(Schema, this._json.not, { pointer: `${this._meta.pointer}/not`, parent: this }); + } + + oneOf(): Array | undefined { + if (!Array.isArray(this._json.oneOf)) return undefined; + return this._json.oneOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/oneOf/${index}`, parent: this })); + } + + pattern(): string | undefined { + return this._json.pattern; + } + + patternProperties(): Record | undefined { + if (typeof this._json.patternProperties !== 'object') return undefined; + return Object.entries(this._json.patternProperties).reduce((acc: Record, [key, s]: [string, any]) => { + acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/patternProperties/${key}`, parent: this }); + return acc; + }, {}); + } + + properties(): Record | undefined { + if (typeof this._json.properties !== 'object') return undefined; + return Object.entries(this._json.properties).reduce((acc: Record, [key, s]: [string, any]) => { + acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/properties/${key}`, parent: this }); + return acc; + }, {}); + } + + property(key: string): SchemaInterface | undefined { + if (this._json.properties === undefined || this._json.properties[key] === undefined) return undefined; + return this.createModel(Schema, this._json.properties[key], { pointer: `${this._meta.pointer}/properties/${key}`, parent: this }); + } + + propertyNames(): SchemaInterface | undefined { + if (typeof this._json.propertyNames !== 'object') return; + return this.createModel(Schema, this._json.propertyNames, { pointer: `${this._meta.pointer}/propertyNames`, parent: this }); + } + + readOnly(): boolean | undefined { + return this._json.readOnly || false; + } + + required(): Array | undefined { + return this._json.required; + } + + then(): SchemaInterface | undefined { + if (typeof this._json.then !== 'object') return; + return this.createModel(Schema, this._json.then, { pointer: `${this._meta.pointer}/then`, parent: this }); + } + + title(): string | undefined { + return this._json.title; + } + + type(): string | Array | undefined { + return this._json.type; + } + + uniqueItems(): boolean | undefined { + return this._json.uniqueItems || false; + } + + writeOnly(): boolean | undefined { + return this._json.writeOnly || false; + } +} diff --git a/src/models/v2/security-scheme.ts b/src/models/v2/security-scheme.ts index bedeb610c..cf00444f9 100644 --- a/src/models/v2/security-scheme.ts +++ b/src/models/v2/security-scheme.ts @@ -11,15 +11,14 @@ import type { OAuthFlowsInterface } from '../oauth-flows'; export class SecurityScheme extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements SecuritySchemeInterface { constructor( - private readonly _id: string, _json: Record, - _meta: ModelMetadata = {} as any + protected readonly _meta: ModelMetadata & { id: string } = {} as any ) { super(_json, _meta); } id(): string { - return this._id; + return this._meta.id; } hasBearerFormat(): boolean { diff --git a/src/models/v2/server-variable.ts b/src/models/v2/server-variable.ts index e471973e7..99134ce91 100644 --- a/src/models/v2/server-variable.ts +++ b/src/models/v2/server-variable.ts @@ -9,15 +9,14 @@ import type { ServerVariableInterface } from '../server-variable'; export class ServerVariable extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements ServerVariableInterface { constructor( - private readonly _id: string, _json: Record, - _meta: ModelMetadata = {} as any + protected readonly _meta: ModelMetadata & { id: string } = {} as any ) { super(_json, _meta); } id(): string { - return this._id; + return this._meta.id; } hasDefaultValue(): boolean { diff --git a/src/models/v2/server.ts b/src/models/v2/server.ts index d19154582..bed21e88d 100644 --- a/src/models/v2/server.ts +++ b/src/models/v2/server.ts @@ -15,15 +15,14 @@ import type { SecuritySchemeInterface } from '../security-scheme'; export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, ExtensionsMixin) implements ServerInterface { constructor( - private readonly _id: string, _json: Record, - _meta: ModelMetadata = {} as any, + protected readonly _meta: ModelMetadata & { id: string } = {} as any, ) { super(_json, _meta); } id(): string { - return this._id; + return this._meta.id; } url(): string { diff --git a/src/models/v3/mixins/extensions.ts b/src/models/v3/mixins/extensions.ts index 9e5cb45dc..df5032f5b 100644 --- a/src/models/v3/mixins/extensions.ts +++ b/src/models/v3/mixins/extensions.ts @@ -17,7 +17,7 @@ export class Extension extends BaseModel implements ExtensionInterface { super(_json, _meta); } - id(): string { + name(): string { return this._id; } @@ -32,11 +32,11 @@ export class Extension extends BaseModel implements ExtensionInterface { export class Extensions extends Collection implements ExtensionsInterface { override get(name: string): ExtensionInterface | undefined { - return this.collections.find(ext => ext.id() === name); + return this.collections.find(ext => ext.name() === name); }; override has(name: string): boolean { - return this.collections.some(ext => ext.id() === name); + return this.collections.some(ext => ext.name() === name); }; } diff --git a/test/models/v2/channel-parameter.spec.ts b/test/models/v2/channel-parameter.spec.ts new file mode 100644 index 000000000..1c1a4a074 --- /dev/null +++ b/test/models/v2/channel-parameter.spec.ts @@ -0,0 +1,78 @@ +import { ChannelParameter } from '../../../src/models/v2/channel-parameter'; +import { Schema } from '../../../src/models/v2/schema'; + +import { + assertDescriptionMixinInheritance, + assertExtensionsMixinInheritance, +} from './mixins/inheritance'; + +describe('ChannelParameter model', function() { + describe('.id()', function() { + it('should return id of model', function() { + const doc = {}; + const d = new ChannelParameter(doc, { asyncapi: {} as any, pointer: '', id: 'parameter' }); + expect(d.id()).toEqual('parameter'); + }); + }); + + describe('.hasLocation()', function() { + it('should return true when there is a value', function() { + const doc = { location: "..." }; + const d = new ChannelParameter(doc); + expect(d.hasLocation()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new ChannelParameter(doc); + expect(d.hasLocation()).toEqual(false); + }); + }); + + describe('.location()', function() { + it('should return the value', function() { + const doc = { location: "..." }; + const d = new ChannelParameter(doc); + expect(d.location()).toEqual(doc.location); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new ChannelParameter(doc); + expect(d.location()).toBeUndefined(); + }); + }); + + describe('.hasSchema()', function() { + it('should return true when there is a value', function() { + const doc = { schema: {} }; + const d = new ChannelParameter(doc); + expect(d.hasSchema()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new ChannelParameter(doc); + expect(d.hasSchema()).toEqual(false); + }); + }); + + describe('.schema()', function() { + it('should return the value', function() { + const doc = { schema: {} }; + const d = new ChannelParameter(doc); + expect(d.schema()).toBeInstanceOf(Schema); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new ChannelParameter(doc); + expect(d.schema()).toBeUndefined(); + }); + }); + + describe('mixins inheritance', function() { + assertDescriptionMixinInheritance(ChannelParameter); + assertExtensionsMixinInheritance(ChannelParameter); + }); +}); diff --git a/test/models/v2/channel-parameters.spec.ts b/test/models/v2/channel-parameters.spec.ts new file mode 100644 index 000000000..703e2b556 --- /dev/null +++ b/test/models/v2/channel-parameters.spec.ts @@ -0,0 +1,45 @@ +import { ChannelParameters } from '../../../src/models/v2/channel-parameters'; +import { ChannelParameter } from '../../../src/models/v2/channel-parameter'; + +const channelParameter = { + location: '...', +}; +const channelParameterItem = new ChannelParameter(channelParameter, { asyncapi: {} as any, pointer: '', id: 'parameter' }); + +describe('ChannelParameters model', function () { + describe('.isEmpty()', function () { + it('should return true if collection is empty', function () { + const servers = new ChannelParameters([]); + expect(servers.isEmpty()).toEqual(true); + }); + + it('should return false if collection is not empty', function () { + const servers = new ChannelParameters([channelParameterItem]); + expect(servers.isEmpty()).toEqual(false); + }); + }); + + describe('.get(id)', function () { + it('should return a specific Channel Parameter if it is present', function () { + const servers = new ChannelParameters([channelParameterItem]); + expect(servers.get('parameter')).toBeTruthy(); + }); + + it('should return undefined if specific Channel Parameter is missing', function () { + const servers = new ChannelParameters([]); + expect(servers.get('parameter')).toBeUndefined(); + }); + }); + + describe('.has(id)', function () { + it('should return true if the said name is available', function () { + const servers = new ChannelParameters([channelParameterItem]); + expect(servers.has('parameter')).toEqual(true); + }) + + it('should return false if the Channel Parameter name is missing', function () { + const servers = new ChannelParameters([channelParameterItem]); + expect(servers.has('anotherName')).toEqual(false); + }) + }) +}) \ No newline at end of file diff --git a/test/models/v2/channel.spec.ts b/test/models/v2/channel.spec.ts new file mode 100644 index 000000000..f3435a380 --- /dev/null +++ b/test/models/v2/channel.spec.ts @@ -0,0 +1,114 @@ +import { Channel } from '../../../src/models/v2/channel'; +import { ChannelParameters } from '../../../src/models/v2/channel-parameters'; +import { ChannelParameter } from '../../../src/models/v2/channel-parameter'; +import { Operations } from '../../../src/models/v2/operations'; +import { Operation } from '../../../src/models/v2/operation'; +import { Servers } from '../../../src/models/v2/servers'; +import { Server } from '../../../src/models/v2/server'; + +import { + assertBindingsMixinInheritance, + assertDescriptionMixinInheritance, + assertExtensionsMixinInheritance, +} from './mixins/inheritance'; + +describe('Channel model', function() { + describe('.id()', function() { + it('should return id of model', function() { + const doc = {}; + const d = new Channel(doc, { asyncapi: {} as any, pointer: '', id: 'channel', address: '' }); + expect(d.id()).toEqual('channel'); + }); + }); + + describe('.address()', function() { + it('should return the value', function() { + const doc = {}; + const d = new Channel(doc, { asyncapi: {} as any, pointer: '', id: 'channel', address: 'user/signup' }); + expect(d.address()).toEqual('user/signup'); + }); + }); + + describe('.servers()', function() { + it('should return collection of servers - available on all servers', function() { + const doc = {}; + const d = new Channel(doc, { asyncapi: { parsed: { servers: { someServer1: {}, someServer2: {}, } } } as any, pointer: '', id: 'channel', address: 'user/signup' }); + expect(d.servers()).toBeInstanceOf(Servers); + expect(d.servers().all()).toHaveLength(2); + expect(d.servers().all()[0]).toBeInstanceOf(Server); + expect(d.servers().all()[0].id()).toEqual('someServer1'); + expect(d.servers().all()[1]).toBeInstanceOf(Server); + expect(d.servers().all()[1].id()).toEqual('someServer2'); + }); + + it('should return collection of servers - available on all servers (empty servers array)', function() { + const doc = { servers: [] }; + const d = new Channel(doc, { asyncapi: { parsed: { servers: { someServer1: {}, someServer2: {}, } } } as any, pointer: '', id: 'channel', address: 'user/signup' }); + expect(d.servers()).toBeInstanceOf(Servers); + expect(d.servers().all()).toHaveLength(2); + expect(d.servers().all()[0]).toBeInstanceOf(Server); + expect(d.servers().all()[0].id()).toEqual('someServer1'); + expect(d.servers().all()[1]).toBeInstanceOf(Server); + expect(d.servers().all()[1].id()).toEqual('someServer2'); + }); + + it('should return collection of servers - available only on particular ones', function() { + const doc = { servers: ['someServer2'] }; + const d = new Channel(doc, { asyncapi: { parsed: { servers: { someServer1: {}, someServer2: {}, } } } as any, pointer: '', id: 'channel', address: 'user/signup' }); + expect(d.servers()).toBeInstanceOf(Servers); + expect(d.servers().all()).toHaveLength(1); + expect(d.servers().all()[0]).toBeInstanceOf(Server); + expect(d.servers().all()[0].id()).toEqual('someServer2'); + }); + }); + + describe('.operations()', function() { + it('should return collection of operations - publish operation', function() { + const doc = { publish: {} }; + const d = new Channel(doc); + expect(d.operations()).toBeInstanceOf(Operations); + expect(d.operations().all()).toHaveLength(1); + expect(d.operations().all()[0]).toBeInstanceOf(Operation); + expect(d.operations().all()[0].action()).toEqual('publish'); + }); + + it('should return collection of operations - subscribe operation', function() { + const doc = { subscribe: {} }; + const d = new Channel(doc); + expect(d.operations()).toBeInstanceOf(Operations); + expect(d.operations().all()).toHaveLength(1); + expect(d.operations().all()[0]).toBeInstanceOf(Operation); + expect(d.operations().all()[0].action()).toEqual('subscribe'); + }); + + it('should return collection of operations - both operations', function() { + const doc = { publish: {}, subscribe: {} }; + const d = new Channel(doc); + expect(d.operations()).toBeInstanceOf(Operations); + expect(d.operations().all()).toHaveLength(2); + expect(d.operations().all()[0]).toBeInstanceOf(Operation); + expect(d.operations().all()[0].action()).toEqual('publish'); + expect(d.operations().all()[1]).toBeInstanceOf(Operation); + expect(d.operations().all()[1].action()).toEqual('subscribe'); + }); + }); + + describe('.parameters()', function() { + it('should return collection of channel parameters', function() { + const doc = { parameters: { parameter1: {}, parameter2: {} } }; + const d = new Channel(doc); + expect(d.parameters()).toBeInstanceOf(ChannelParameters); + expect(d.parameters().all()).toHaveLength(2); + expect(d.parameters().all()[0]).toBeInstanceOf(ChannelParameter); + expect(d.parameters().all()[0].id()).toEqual('parameter1'); + expect(d.parameters().all()[1]).toBeInstanceOf(ChannelParameter); + expect(d.parameters().all()[1].id()).toEqual('parameter2'); + }); + }); + + describe('mixins inheritance', function() { + assertBindingsMixinInheritance(Channel); + assertDescriptionMixinInheritance(Channel); + assertExtensionsMixinInheritance(Channel); + }); +}); diff --git a/test/models/v2/channels.spec.ts b/test/models/v2/channels.spec.ts new file mode 100644 index 000000000..fa525b3ee --- /dev/null +++ b/test/models/v2/channels.spec.ts @@ -0,0 +1,45 @@ +import { Channels } from '../../../src/models/v2/channels'; +import { Channel } from '../../../src/models/v2/channel'; + +const channel = { + publish: {}, +}; +const channelItem = new Channel(channel, { asyncapi: {} as any, pointer: '', id: 'channel', address: '' }); + +describe('Channels model', function () { + describe('.isEmpty()', function () { + it('should return true if collection is empty', function () { + const servers = new Channels([]); + expect(servers.isEmpty()).toEqual(true); + }); + + it('should return false if collection is not empty', function () { + const servers = new Channels([channelItem]); + expect(servers.isEmpty()).toEqual(false); + }); + }); + + describe('.get(id)', function () { + it('should return a specific Channel if it is present', function () { + const servers = new Channels([channelItem]); + expect(servers.get('channel')).toBeTruthy(); + }); + + it('should return undefined if specific Channel is missing', function () { + const servers = new Channels([]); + expect(servers.get('channel')).toBeUndefined(); + }); + }); + + describe('.has(id)', function () { + it('should return true if the said name is available', function () { + const servers = new Channels([channelItem]); + expect(servers.has('channel')).toEqual(true); + }) + + it('should return false if the Channel name is missing', function () { + const servers = new Channels([channelItem]); + expect(servers.has('anotherName')).toEqual(false); + }) + }) +}) \ No newline at end of file diff --git a/test/models/v2/message-trait.spec.ts b/test/models/v2/message-trait.spec.ts index 4ad51f934..1061eac17 100644 --- a/test/models/v2/message-trait.spec.ts +++ b/test/models/v2/message-trait.spec.ts @@ -16,13 +16,13 @@ describe('MessageTrait model', function() { describe('.id()', function() { it('should return id of model', function() { const doc = {}; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait' }); expect(d.id()).toEqual('trait'); }); it('should reuse messageId', function() { const doc = { messageId: '...' }; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.id()).toEqual(doc.messageId); }); }); @@ -30,13 +30,13 @@ describe('MessageTrait model', function() { describe('.hasMessageId()', function() { it('should return true when there is a value', function() { const doc = { messageId: '...' }; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.hasMessageId()).toEqual(true); }); it('should return false when there is no value', function() { const doc = {}; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.hasMessageId()).toEqual(false); }); }); @@ -44,13 +44,13 @@ describe('MessageTrait model', function() { describe('.messageId()', function() { it('should return the value', function() { const doc = { messageId: '...' }; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.messageId()).toEqual(doc.messageId); }); it('should return undefined when there is no value', function() { const doc = {}; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.messageId()).toBeUndefined(); }); }); @@ -58,13 +58,13 @@ describe('MessageTrait model', function() { describe('.hasCorrelationId()', function() { it('should return true when there is a value', function() { const doc = { correlationId: {} }; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.hasCorrelationId()).toEqual(true); }); it('should return false when there is no value', function() { const doc = {}; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.hasCorrelationId()).toEqual(false); }); }); @@ -72,13 +72,13 @@ describe('MessageTrait model', function() { describe('.correlationId()', function() { it('should return the value', function() { const doc = { correlationId: {} }; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.correlationId()).toBeInstanceOf(CorrelationId); }); it('should return undefined when there is no value', function() { const doc = {}; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.correlationId()).toBeUndefined(); }); }); @@ -86,13 +86,13 @@ describe('MessageTrait model', function() { describe('.hasContentType()', function() { it('should return true when there is a value', function() { const doc = { contentType: '...' }; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.hasContentType()).toEqual(true); }); it('should return false when there is no value', function() { const doc = {}; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.hasContentType()).toEqual(false); }); }); @@ -100,19 +100,19 @@ describe('MessageTrait model', function() { describe('.contentType()', function() { it('should return the value', function() { const doc = { contentType: '...' }; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.contentType()).toEqual(doc.contentType); }); it('should return undefined when there is no value', function() { const doc = {}; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.contentType()).toBeUndefined(); }); it('should reuse defaultContentType value', function() { const doc = {}; - const d = new MessageTrait('trait', doc, { asyncapi: { parsed: { defaultContentType: '...' } } } as any); + const d = new MessageTrait(doc, { asyncapi: { parsed: { defaultContentType: '...' } } } as any); expect(d.contentType()).toEqual('...'); }); }); @@ -120,13 +120,13 @@ describe('MessageTrait model', function() { describe('.hasHeaders()', function() { it('should return true when there is a value', function() { const doc = { headers: {} }; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.hasHeaders()).toEqual(true); }); it('should return false when there is no value', function() { const doc = {}; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.hasHeaders()).toEqual(false); }); }); @@ -134,13 +134,13 @@ describe('MessageTrait model', function() { describe('.headers()', function() { it('should return the value', function() { const doc = { headers: {} }; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.headers()).toBeInstanceOf(Schema); }); it('should return undefined when there is no value', function() { const doc = {}; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.headers()).toBeUndefined(); }); }); @@ -148,13 +148,13 @@ describe('MessageTrait model', function() { describe('.hasName()', function() { it('should return true when there is a value', function() { const doc = { name: "..." }; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.hasName()).toEqual(true); }); it('should return false when there is no value', function() { const doc = {}; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.hasName()).toEqual(false); }); }); @@ -162,13 +162,13 @@ describe('MessageTrait model', function() { describe('.name()', function() { it('should return the value', function() { const doc = { name: "..." }; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.name()).toEqual(doc.name); }); it('should return undefined when there is no value', function() { const doc = {}; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.name()).toBeUndefined(); }); }); @@ -176,13 +176,13 @@ describe('MessageTrait model', function() { describe('.hasTitle()', function() { it('should return true when there is a value', function() { const doc = { title: "..." }; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.hasTitle()).toEqual(true); }); it('should return false when there is no value', function() { const doc = {}; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.hasTitle()).toEqual(false); }); }); @@ -190,13 +190,13 @@ describe('MessageTrait model', function() { describe('.title()', function() { it('should return the value', function() { const doc = { title: "..." }; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.title()).toEqual(doc.title); }); it('should return undefined when there is no value', function() { const doc = {}; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.title()).toBeUndefined(); }); }); @@ -204,13 +204,13 @@ describe('MessageTrait model', function() { describe('.hasSummary()', function() { it('should return true when there is a value', function() { const doc = { summary: "..." }; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.hasSummary()).toEqual(true); }); it('should return false when there is no value', function() { const doc = {}; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.hasSummary()).toEqual(false); }); }); @@ -218,13 +218,13 @@ describe('MessageTrait model', function() { describe('.summary()', function() { it('should return the value', function() { const doc = { summary: "..." }; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.summary()).toEqual(doc.summary); }); it('should return undefined when there is no value', function() { const doc = {}; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.summary()).toBeUndefined(); }); }); @@ -232,7 +232,7 @@ describe('MessageTrait model', function() { describe('.examples()', function() { it('should return collection of examples', function() { const doc = { examples: [ { name: '...' } ] }; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.examples()).toBeInstanceOf(MessageExamples); expect(d.examples().all()).toHaveLength(1); expect(d.examples().all()[0]).toBeInstanceOf(MessageExample); @@ -240,7 +240,7 @@ describe('MessageTrait model', function() { it('should return collection of examples when value is undefined', function() { const doc = {}; - const d = new MessageTrait('trait', doc); + const d = new MessageTrait(doc); expect(d.examples()).toBeInstanceOf(MessageExamples); expect(d.examples().all()).toHaveLength(0); }); diff --git a/test/models/v2/message-traits.spec.ts b/test/models/v2/message-traits.spec.ts index 9343c715d..6d1617cb0 100644 --- a/test/models/v2/message-traits.spec.ts +++ b/test/models/v2/message-traits.spec.ts @@ -4,7 +4,7 @@ import { MessageTrait } from '../../../src/models/v2/message-trait'; const messageTrait = { messageId: 'test', }; -const messageTraitItem = new MessageTrait('test', messageTrait); +const messageTraitItem = new MessageTrait(messageTrait, { asyncapi: {} as any, pointer: '', id: 'test' }); describe('MessageTraits model', function () { describe('.isEmpty()', function () { diff --git a/test/models/v2/message.spec.ts b/test/models/v2/message.spec.ts index 625191eca..d697624cd 100644 --- a/test/models/v2/message.spec.ts +++ b/test/models/v2/message.spec.ts @@ -15,13 +15,13 @@ describe('Message model', function() { describe('.id()', function() { it('should return id of model', function() { const doc = {}; - const d = new Message('message', doc); + const d = new Message(doc, { asyncapi: {} as any, pointer: '', id: 'message' }); expect(d.id()).toEqual('message'); }); it('should reuse messageId', function() { const doc = { messageId: '...' }; - const d = new Message('message', doc); + const d = new Message(doc); expect(d.id()).toEqual(doc.messageId); }); }); @@ -29,13 +29,13 @@ describe('Message model', function() { describe('.hasPayload()', function() { it('should return true when there is a value', function() { const doc = { payload: {} }; - const d = new Message('message', doc); + const d = new Message(doc); expect(d.hasPayload()).toEqual(true); }); it('should return false when there is no value', function() { const doc = {}; - const d = new Message('message', doc); + const d = new Message(doc); expect(d.hasPayload()).toEqual(false); }); }); @@ -43,13 +43,13 @@ describe('Message model', function() { describe('.payload()', function() { it('should return the value', function() { const doc = { payload: {} }; - const d = new Message('message', doc); + const d = new Message(doc); expect(d.payload()).toBeInstanceOf(Schema); }); it('should return undefined when there is no value', function() { const doc = {}; - const d = new Message('message', doc); + const d = new Message(doc); expect(d.payload()).toBeUndefined(); }); }); @@ -57,7 +57,7 @@ describe('Message model', function() { describe('.traits()', function() { it('should return collection of traits', function() { const doc = { traits: [ { messageId: '...' } ] }; - const d = new Message('message', doc); + const d = new Message(doc); expect(d.traits()).toBeInstanceOf(MessageTraits); expect(d.traits().all()).toHaveLength(1); expect(d.traits().all()[0]).toBeInstanceOf(MessageTrait); @@ -65,7 +65,7 @@ describe('Message model', function() { it('should return collection of traits when value is undefined', function() { const doc = {}; - const d = new Message('message', doc); + const d = new Message(doc); expect(d.traits()).toBeInstanceOf(MessageTraits); expect(d.traits().all()).toHaveLength(0); }); diff --git a/test/models/v2/messages.spec.ts b/test/models/v2/messages.spec.ts index 394c632f9..95cb35f77 100644 --- a/test/models/v2/messages.spec.ts +++ b/test/models/v2/messages.spec.ts @@ -4,7 +4,7 @@ import { Message } from '../../../src/models/v2/message'; const message = { messageId: 'test', }; -const messageItem = new Message('test', message); +const messageItem = new Message(message, { asyncapi: {} as any, pointer: '', id: 'test' }); describe('Messages model', function () { describe('.isEmpty()', function () { diff --git a/test/models/v2/operation-trait.spec.ts b/test/models/v2/operation-trait.spec.ts index 9704ae019..b30e1ebe1 100644 --- a/test/models/v2/operation-trait.spec.ts +++ b/test/models/v2/operation-trait.spec.ts @@ -13,13 +13,13 @@ describe('OperationTrait model', function() { describe('.id()', function() { it('should return id of model', function() { const doc = {}; - const d = new OperationTrait('trait', doc); + const d = new OperationTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'publish' }); expect(d.id()).toEqual('trait'); }); it('should reuse operationId', function() { const doc = { operationId: '...' }; - const d = new OperationTrait('trait', doc); + const d = new OperationTrait(doc); expect(d.id()).toEqual(doc.operationId); }); }); @@ -27,7 +27,7 @@ describe('OperationTrait model', function() { describe('.action()', function() { it('should return kind/action of operation', function() { const doc = {}; - const d = new OperationTrait('trait', doc, { asyncapi: {} as any, pointer: '', action: 'publish' }); + const d = new OperationTrait(doc, { asyncapi: {} as any, pointer: '', id: 'trait', action: 'publish' }); expect(d.action()).toEqual('publish'); }); }); @@ -35,13 +35,13 @@ describe('OperationTrait model', function() { describe('.hasOperationId()', function() { it('should return true when there is a value', function() { const doc = { operationId: '...' }; - const d = new OperationTrait('trait', doc); + const d = new OperationTrait(doc); expect(d.hasOperationId()).toEqual(true); }); it('should return false when there is no value', function() { const doc = {}; - const d = new OperationTrait('trait', doc); + const d = new OperationTrait(doc); expect(d.hasOperationId()).toEqual(false); }); }); @@ -49,13 +49,13 @@ describe('OperationTrait model', function() { describe('.operationId()', function() { it('should return the value', function() { const doc = { operationId: '...' }; - const d = new OperationTrait('trait', doc); + const d = new OperationTrait(doc); expect(d.operationId()).toEqual(doc.operationId); }); it('should return undefined when there is no value', function() { const doc = {}; - const d = new OperationTrait('trait', doc); + const d = new OperationTrait(doc); expect(d.operationId()).toBeUndefined(); }); }); @@ -63,13 +63,13 @@ describe('OperationTrait model', function() { describe('.hasSummary()', function() { it('should return true when there is a value', function() { const doc = { summary: "..." }; - const d = new OperationTrait('trait', doc); + const d = new OperationTrait(doc); expect(d.hasSummary()).toEqual(true); }); it('should return false when there is no value', function() { const doc = {}; - const d = new OperationTrait('trait', doc); + const d = new OperationTrait(doc); expect(d.hasSummary()).toEqual(false); }); }); @@ -77,13 +77,13 @@ describe('OperationTrait model', function() { describe('.summary()', function() { it('should return the value', function() { const doc = { summary: "..." }; - const d = new OperationTrait('trait', doc); + const d = new OperationTrait(doc); expect(d.summary()).toEqual(doc.summary); }); it('should return undefined when there is no value', function() { const doc = {}; - const d = new OperationTrait('trait', doc); + const d = new OperationTrait(doc); expect(d.summary()).toBeUndefined(); }); }); @@ -91,7 +91,7 @@ describe('OperationTrait model', function() { describe('.security()', function() { it('should return collection of security requirements', function() { const doc = { security: [ { requirement: [] } ] }; - const d = new OperationTrait('trait', doc); + const d = new OperationTrait(doc); expect(Array.isArray(d.security())).toEqual(true); expect(d.security()).toHaveLength(1); expect(typeof d.security()[0]).toEqual('object'); @@ -101,7 +101,7 @@ describe('OperationTrait model', function() { it('should return collection of security requirements when value is undefined', function() { const doc = {}; - const d = new OperationTrait('trait', doc); + const d = new OperationTrait(doc); expect(Array.isArray(d.security())).toEqual(true); expect(d.security()).toHaveLength(0); }); diff --git a/test/models/v2/operation-traits.spec.ts b/test/models/v2/operation-traits.spec.ts index 6f8bb0c2a..edfdd91c0 100644 --- a/test/models/v2/operation-traits.spec.ts +++ b/test/models/v2/operation-traits.spec.ts @@ -4,7 +4,7 @@ import { OperationTrait } from '../../../src/models/v2/operation-trait'; const operationTrait = { operationId: 'test', }; -const operationTraitItem = new OperationTrait('test', operationTrait); +const operationTraitItem = new OperationTrait(operationTrait, { asyncapi: {} as any, pointer: '', id: 'test', action: 'publish' }); describe('OperationTraits model', function () { describe('.isEmpty()', function () { diff --git a/test/models/v2/operation.spec.ts b/test/models/v2/operation.spec.ts index 8ff8d0a77..4ea92c60f 100644 --- a/test/models/v2/operation.spec.ts +++ b/test/models/v2/operation.spec.ts @@ -16,13 +16,13 @@ describe('Operation model', function() { describe('.id()', function() { it('should return id of model', function() { const doc = {}; - const d = new Operation('message', doc); - expect(d.id()).toEqual('message'); + const d = new Operation(doc, { asyncapi: {} as any, pointer: '', id: 'operation', action: 'publish' }); + expect(d.id()).toEqual('operation'); }); it('should reuse operationId', function() { const doc = { operationId: '...' }; - const d = new Operation('message', doc); + const d = new Operation(doc); expect(d.id()).toEqual(doc.operationId); }); }); @@ -30,7 +30,7 @@ describe('Operation model', function() { describe('.messages()', function() { it('should return collection of messages - single message', function() { const doc = { message: { messageId: '...' } }; - const d = new Operation('message', doc); + const d = new Operation(doc); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(1); expect(d.messages().all()[0]).toBeInstanceOf(Message); @@ -38,7 +38,7 @@ describe('Operation model', function() { it('should return collection of messages - oneOf messages', function() { const doc = { message: { oneOf: [ { messageId: '...' }, { messageId: '...' } ] } }; - const d = new Operation('message', doc); + const d = new Operation(doc); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(2); expect(d.messages().all()[0]).toBeInstanceOf(Message); @@ -47,7 +47,7 @@ describe('Operation model', function() { it('should return undefined when there is no value', function() { const doc = {}; - const d = new Operation('message', doc); + const d = new Operation(doc); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(0); }); @@ -56,7 +56,7 @@ describe('Operation model', function() { describe('.traits()', function() { it('should return collection of traits', function() { const doc = { traits: [ { operationId: '...' } ] }; - const d = new Operation('message', doc); + const d = new Operation(doc); expect(d.traits()).toBeInstanceOf(OperationTraits); expect(d.traits().all()).toHaveLength(1); expect(d.traits().all()[0]).toBeInstanceOf(OperationTrait); @@ -64,7 +64,7 @@ describe('Operation model', function() { it('should return collection of traits when value is undefined', function() { const doc = {}; - const d = new Operation('message', doc); + const d = new Operation(doc); expect(d.traits()).toBeInstanceOf(OperationTraits); expect(d.traits().all()).toHaveLength(0); }); diff --git a/test/models/v2/operations.spec.ts b/test/models/v2/operations.spec.ts index ca0a87243..34ea61b5a 100644 --- a/test/models/v2/operations.spec.ts +++ b/test/models/v2/operations.spec.ts @@ -2,9 +2,9 @@ import { Operations } from '../../../src/models/v2/operations'; import { Operation } from '../../../src/models/v2/operation'; const operation = { - messageId: 'test', + operationId: 'test', }; -const operationItem = new Operation('test', operation); +const operationItem = new Operation(operation, { asyncapi: {} as any, pointer: '', id: 'test', action: 'publish' }); describe('Operations model', function () { describe('.isEmpty()', function () { diff --git a/test/models/v2/schema.spec.ts b/test/models/v2/schema.spec.ts new file mode 100644 index 000000000..8444c5490 --- /dev/null +++ b/test/models/v2/schema.spec.ts @@ -0,0 +1,803 @@ +import { Schema } from '../../../src/models/v2/schema'; + +import { + assertExtensionsMixinInheritance, + assertExternalDocumentationMixinInheritance, +} from './mixins/inheritance'; + +describe('Channel model', function() { + describe('.id()', function() { + it('should return id of model', function() { + const doc = {}; + const d = new Schema(doc, { asyncapi: {} as any, pointer: '', id: 'schema', parent: null }); + expect(d.uid()).toEqual('schema'); + }); + }); + + describe('.$comment()', function() { + it('should return the value', function() { + const doc = { $comment: "..." }; + const d = new Schema(doc); + expect(d.$comment()).toEqual(doc.$comment); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.$comment()).toBeUndefined(); + }); + }); + + describe('.$id()', function() { + it('should return the value', function() { + const doc = { $id: "..." }; + const d = new Schema(doc); + expect(d.$id()).toEqual(doc.$id); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.$id()).toBeUndefined(); + }); + }); + + describe('.$schema()', function() { + it('should return the value', function() { + const doc = { $schema: "..." }; + const d = new Schema(doc); + expect(d.$schema()).toEqual(doc.$schema); + }); + + it('should return fallback value when there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.$schema()).toEqual('http://json-schema.org/draft-07/schema#'); + }); + }); + + describe('.additionalItems()', function() { + it('should return the value schema object', function() { + const doc = { additionalItems: {} }; + const d = new Schema(doc); + expect(d.additionalItems()).toBeInstanceOf(Schema); + }); + + it('should return the true when there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.additionalItems()).toEqual(true); + }); + + it('should return the false where there is false value', function() { + const doc = { additionalItems: false }; + const d = new Schema(doc); + expect(d.additionalItems()).toEqual(false); + }); + + it('should return the false where there is true value', function() { + const doc = { additionalItems: true }; + const d = new Schema(doc); + expect(d.additionalItems()).toEqual(true); + }); + }); + + describe('.additionalProperties()', function() { + it('should return the value schema object', function() { + const doc = { additionalProperties: {} }; + const d = new Schema(doc); + expect(d.additionalProperties()).toBeInstanceOf(Schema); + }); + + it('should return the true when there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.additionalProperties()).toEqual(true); + }); + + it('should return the false where there is false value', function() { + const doc = { additionalProperties: false }; + const d = new Schema(doc); + expect(d.additionalProperties()).toEqual(false); + }); + + it('should return the false where there is true value', function() { + const doc = { additionalProperties: true }; + const d = new Schema(doc); + expect(d.additionalProperties()).toEqual(true); + }); + }); + + describe('.allOf()', function() { + it('should return collection of schemas', function() { + const doc = { allOf: [ {}, {} ] }; + const d = new Schema(doc); + expect(Array.isArray(d.allOf())).toEqual(true); + expect(d.allOf()).toHaveLength(2); + expect((d.allOf() as any)[0]).toBeInstanceOf(Schema); + expect((d.allOf() as any)[1]).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.allOf()).toBeUndefined(); + }); + }); + + describe('.anyOf()', function() { + it('should return collection of schemas', function() { + const doc = { anyOf: [ {}, {} ] }; + const d = new Schema(doc); + expect(Array.isArray(d.anyOf())).toEqual(true); + expect(d.anyOf()).toHaveLength(2); + expect((d.anyOf() as any)[0]).toBeInstanceOf(Schema); + expect((d.anyOf() as any)[1]).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.anyOf()).toBeUndefined(); + }); + }); + + describe('.const()', function() { + it('should return value', function() { + const doc = { const: '...' }; + const d = new Schema(doc); + expect(d.const()).toEqual(doc.const); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.const()).toBeUndefined(); + }); + }); + + describe('.contains()', function() { + it('should return value', function() { + const doc = { contains: {} }; + const d = new Schema(doc); + expect(d.contains()).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.contains()).toBeUndefined(); + }); + }); + + describe('.contentEncoding()', function() { + it('should return value', function() { + const doc = { contentEncoding: '...' }; + const d = new Schema(doc); + expect(d.contentEncoding()).toEqual(doc.contentEncoding); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.contentEncoding()).toBeUndefined(); + }); + }); + + describe('.contentMediaType()', function() { + it('should return value', function() { + const doc = { contentMediaType: '...' }; + const d = new Schema(doc); + expect(d.contentMediaType()).toEqual(doc.contentMediaType); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.contentMediaType()).toBeUndefined(); + }); + }); + + describe('.default()', function() { + it('should return value', function() { + const doc = { default: '...' }; + const d = new Schema(doc); + expect(d.default()).toEqual(doc.default); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.default()).toBeUndefined(); + }); + }); + + describe('.definitions()', function() { + it('should return map of definitions', function() { + const doc = { definitions: { def: {} } }; + const d = new Schema(doc); + expect(typeof d.definitions() === 'object').toEqual(true); + expect((d.definitions() as any)['def']).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.default()).toBeUndefined(); + }); + }); + + describe('.description()', function() { + it('should return value', function() { + const doc = { description: '...' }; + const d = new Schema(doc); + expect(d.description()).toEqual(doc.description); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.description()).toBeUndefined(); + }); + }); + + describe('.dependencies()', function() { + it('should return map of dependencies (schema case)', function() { + const doc = { dependencies: { dep: {} } }; + const d = new Schema(doc); + expect(typeof d.dependencies() === 'object').toEqual(true); + expect((d.dependencies() as any)['dep']).toBeInstanceOf(Schema); + }); + + it('should return map of dependencies (array case)', function() { + const doc = { dependencies: { array: [] } }; + const d = new Schema(doc); + expect(typeof d.dependencies() === 'object').toEqual(true); + expect(Array.isArray((d.dependencies() as any)['array'])).toEqual(true); + }); + + it('should return map of dependencies (schema and array case)', function() { + const doc = { dependencies: { dep: {}, array: [] } }; + const d = new Schema(doc); + expect(typeof d.dependencies() === 'object').toEqual(true); + expect((d.dependencies() as any)['dep']).toBeInstanceOf(Schema); + expect(Array.isArray((d.dependencies() as any)['array'])).toEqual(true); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.dependencies()).toBeUndefined(); + }); + }); + + describe('.deprecated()', function() { + it('should return value', function() { + const doc = { deprecated: true }; + const d = new Schema(doc); + expect(d.deprecated()).toEqual(doc.deprecated); + }); + + it('should return false where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.deprecated()).toEqual(false); + }); + }); + + describe('.discriminator()', function() { + it('should return value', function() { + const doc = { discriminator: '...' }; + const d = new Schema(doc); + expect(d.discriminator()).toEqual(doc.discriminator); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.discriminator()).toBeUndefined(); + }); + }); + + describe('.else()', function() { + it('should return value', function() { + const doc = { else: {} }; + const d = new Schema(doc); + expect(d.else()).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.else()).toBeUndefined(); + }); + }); + + describe('.enum()', function() { + it('should return value', function() { + const doc = { enum: ['example'] }; + const d = new Schema(doc); + expect(Array.isArray(d.enum())).toEqual(true); + expect((d.enum() as any)[0]).toEqual('example'); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.else()).toBeUndefined(); + }); + }); + + describe('.examples()', function() { + it('should return value', function() { + const doc = { examples: ['example'] }; + const d = new Schema(doc); + expect(Array.isArray(d.examples())).toEqual(true); + expect((d.examples() as any)[0]).toEqual('example'); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.examples()).toBeUndefined(); + }); + }); + + describe('.exclusiveMaximum()', function() { + it('should return value', function() { + const doc = { exclusiveMaximum: 2137 }; + const d = new Schema(doc); + expect(d.exclusiveMaximum()).toEqual(doc.exclusiveMaximum); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.exclusiveMaximum()).toBeUndefined(); + }); + }); + + describe('.exclusiveMinimum()', function() { + it('should return value', function() { + const doc = { exclusiveMinimum: 2137 }; + const d = new Schema(doc); + expect(d.exclusiveMinimum()).toEqual(doc.exclusiveMinimum); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.exclusiveMinimum()).toBeUndefined(); + }); + }); + + describe('.format()', function() { + it('should return value', function() { + const doc = { format: '...' }; + const d = new Schema(doc); + expect(d.format()).toEqual(doc.format); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.format()).toBeUndefined(); + }); + }); + + describe('.isBooleanSchema()', function() { + it('should return true where value is true boolean', function() { + const d = new Schema(true as any); + expect(d.isBooleanSchema()).toEqual(true); + }); + + it('should return true where value is false boolean', function() { + const d = new Schema(false as any); + expect(d.isBooleanSchema()).toEqual(true); + }); + + it('should return false where value is object', function() { + const d = new Schema({}); + expect(d.isBooleanSchema()).toEqual(false); + }); + }); + + describe('.if()', function() { + it('should return value', function() { + const doc = { if: {} }; + const d = new Schema(doc); + expect(d.if()).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.if()).toBeUndefined(); + }); + }); + + describe('.isCircular()', function() { + it('should return a true when schema has circular reference', function() { + const doc = { + properties: { + nonCircular: { + type: 'string', + }, + circular: {}, + } + }; + doc.properties.circular = doc; + const d = new Schema(doc); + expect(d.isCircular()).toEqual(false); + expect((d.properties() as any)['nonCircular'].isCircular()).toEqual(false); + expect((d.properties() as any)['circular'].isCircular()).toEqual(true); + }); + }); + + describe('.items()', function() { + it('should return schema instance', function() { + const doc = { items: {} }; + const d = new Schema(doc); + expect(d.items()).toBeInstanceOf(Schema); + }); + + it('should return collection of schemas', function() { + const doc = { items: [ {}, {} ] }; + const d = new Schema(doc); + expect(Array.isArray(d.items())).toEqual(true); + expect(d.items()).toHaveLength(2); + expect((d.items() as any)[0]).toBeInstanceOf(Schema); + expect((d.items() as any)[1]).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.items()).toBeUndefined(); + }); + }); + + describe('.maximum()', function() { + it('should return value', function() { + const doc = { maximum: 2137 }; + const d = new Schema(doc); + expect(d.maximum()).toEqual(doc.maximum); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.maximum()).toBeUndefined(); + }); + }); + + describe('.maxItems()', function() { + it('should return value', function() { + const doc = { maxItems: 2137 }; + const d = new Schema(doc); + expect(d.maxItems()).toEqual(doc.maxItems); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.maxItems()).toBeUndefined(); + }); + }); + + describe('.maxLength()', function() { + it('should return value', function() { + const doc = { maxLength: 2137 }; + const d = new Schema(doc); + expect(d.maxLength()).toEqual(doc.maxLength); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.maxLength()).toBeUndefined(); + }); + }); + + describe('.maxProperties()', function() { + it('should return value', function() { + const doc = { maxProperties: 2137 }; + const d = new Schema(doc); + expect(d.maxProperties()).toEqual(doc.maxProperties); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.maxProperties()).toBeUndefined(); + }); + }); + + describe('.minimum()', function() { + it('should return value', function() { + const doc = { minimum: 2137 }; + const d = new Schema(doc); + expect(d.minimum()).toEqual(doc.minimum); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.minimum()).toBeUndefined(); + }); + }); + + describe('.minItems()', function() { + it('should return value', function() { + const doc = { minItems: 2137 }; + const d = new Schema(doc); + expect(d.minItems()).toEqual(doc.minItems); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.minItems()).toBeUndefined(); + }); + }); + + describe('.minLength()', function() { + it('should return value', function() { + const doc = { minLength: 2137 }; + const d = new Schema(doc); + expect(d.minLength()).toEqual(doc.minLength); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.minLength()).toBeUndefined(); + }); + }); + + describe('.minProperties()', function() { + it('should return value', function() { + const doc = { minProperties: 2137 }; + const d = new Schema(doc); + expect(d.minProperties()).toEqual(doc.minProperties); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.minProperties()).toBeUndefined(); + }); + }); + + describe('.multipleOf()', function() { + it('should return value', function() { + const doc = { multipleOf: 2137 }; + const d = new Schema(doc); + expect(d.multipleOf()).toEqual(doc.multipleOf); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.multipleOf()).toBeUndefined(); + }); + }); + + describe('.not()', function() { + it('should return value', function() { + const doc = { not: {} }; + const d = new Schema(doc); + expect(d.not()).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.not()).toBeUndefined(); + }); + }); + + describe('.oneOf()', function() { + it('should return collection of schemas', function() { + const doc = { oneOf: [ {}, {} ] }; + const d = new Schema(doc); + expect(Array.isArray(d.oneOf())).toEqual(true); + expect(d.oneOf()).toHaveLength(2); + expect((d.oneOf() as any)[0]).toBeInstanceOf(Schema); + expect((d.oneOf() as any)[1]).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.oneOf()).toBeUndefined(); + }); + }); + + describe('.pattern()', function() { + it('should return value', function() { + const doc = { pattern: '...' }; + const d = new Schema(doc); + expect(d.pattern()).toEqual(doc.pattern); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.pattern()).toBeUndefined(); + }); + }); + + describe('.patternProperties()', function() { + it('should return map of patternProperties', function() { + const doc = { patternProperties: { prop: {} } }; + const d = new Schema(doc); + expect(typeof d.patternProperties() === 'object').toEqual(true); + expect((d.patternProperties() as any)['prop']).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.patternProperties()).toBeUndefined(); + }); + }); + + describe('.properties()', function() { + it('should return map of properties', function() { + const doc = { properties: { prop: {} } }; + const d = new Schema(doc); + expect(typeof d.properties() === 'object').toEqual(true); + expect((d.properties() as any)['prop']).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.properties()).toBeUndefined(); + }); + }); + + describe('.property()', function() { + it('should return property', function() { + const doc = { properties: { prop: {} } }; + const d = new Schema(doc); + expect(d.property('prop')).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no property', function() { + const doc = { properties: { another: {} } }; + const d = new Schema(doc); + expect(d.property('prop')).toBeUndefined(); + }); + + it('should return undefined where there is no properties', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.property('prop')).toBeUndefined(); + }); + }); + + describe('.propertyNames()', function() { + it('should return value', function() { + const doc = { propertyNames: {} }; + const d = new Schema(doc); + expect(d.propertyNames()).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.propertyNames()).toBeUndefined(); + }); + }); + + describe('.readOnly()', function() { + it('should return value', function() { + const doc = { readOnly: true }; + const d = new Schema(doc); + expect(d.readOnly()).toEqual(doc.readOnly); + }); + + it('should return false where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.readOnly()).toEqual(false); + }); + }); + + describe('.required()', function() { + it('should return array of required properties', function() { + const doc = { required: ['prop1', 'prop2'] }; + const d = new Schema(doc); + expect(d.required()).toEqual(doc.required); + }); + + it('should return false where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.required()).toBeUndefined(); + }); + }); + + describe('.then()', function() { + it('should return value', function() { + const doc = { then: {} }; + const d = new Schema(doc); + expect(d.then()).toBeInstanceOf(Schema); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.then()).toBeUndefined(); + }); + }); + + describe('.title()', function() { + it('should return value', function() { + const doc = { title: '...' }; + const d = new Schema(doc); + expect(d.title()).toEqual(doc.title); + }); + + it('should return undefined where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.title()).toBeUndefined(); + }); + }); + + describe('.type()', function() { + it('should return single type', function() { + const doc = { type: 'object' }; + const d = new Schema(doc); + expect(d.type()).toEqual(doc.type); + }); + + it('should return array of type', function() { + const doc = { type: ['object', 'array'] }; + const d = new Schema(doc); + expect(d.type()).toEqual(doc.type); + }); + + it('should return false where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.type()).toBeUndefined(); + }); + }); + + describe('.uniqueItems()', function() { + it('should return value', function() { + const doc = { uniqueItems: true }; + const d = new Schema(doc); + expect(d.uniqueItems()).toEqual(doc.uniqueItems); + }); + + it('should return false where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.uniqueItems()).toEqual(false); + }); + }); + + describe('.writeOnly()', function() { + it('should return value', function() { + const doc = { writeOnly: true }; + const d = new Schema(doc); + expect(d.writeOnly()).toEqual(doc.writeOnly); + }); + + it('should return false where there is no value', function() { + const doc = {}; + const d = new Schema(doc); + expect(d.writeOnly()).toEqual(false); + }); + }); + + describe('mixins inheritance', function() { + assertExtensionsMixinInheritance(Schema); + assertExternalDocumentationMixinInheritance(Schema); + }); +}); diff --git a/test/models/v2/security-scheme.spec.ts b/test/models/v2/security-scheme.spec.ts index e8e8ae590..9ccf6c230 100644 --- a/test/models/v2/security-scheme.spec.ts +++ b/test/models/v2/security-scheme.spec.ts @@ -18,8 +18,8 @@ const doc1 = { } } -const sc1 = new SecurityScheme('api_key', doc1); -const emptyItem = new SecurityScheme('', {}); +const sc1 = new SecurityScheme(doc1, { asyncapi: {} as any, pointer: '', id: 'api_key' }); +const emptyItem = new SecurityScheme({}); describe('Security Scheme', function () { describe('.id()', function () { diff --git a/test/models/v2/server-variable.spec.ts b/test/models/v2/server-variable.spec.ts index 42d420d43..0b19fd5fd 100644 --- a/test/models/v2/server-variable.spec.ts +++ b/test/models/v2/server-variable.spec.ts @@ -6,7 +6,7 @@ const doc = { enum: ['1883', '8883'] } -const sv = new ServerVariable('doc', doc); +const sv = new ServerVariable(doc, { asyncapi: {} as any, pointer: '', id: 'doc' }); describe('Server Variable ', function() { describe('.id()', function() { diff --git a/test/models/v2/server.spec.ts b/test/models/v2/server.spec.ts index f724b0276..861e6df3f 100644 --- a/test/models/v2/server.spec.ts +++ b/test/models/v2/server.spec.ts @@ -21,8 +21,8 @@ const doc = { } } }; -const docItem = new Server('development', doc.development); -const emptyItem = new Server('', {}); +const docItem = new Server(doc.development, { asyncapi: {} as any, pointer: '', id: 'development' }); +const emptyItem = new Server({}, { asyncapi: {} as any, pointer: '', id: '' }); describe('Server Model', function () { describe('.id()', function () { @@ -72,7 +72,7 @@ describe('Server Model', function () { describe('.security()', function() { it('should return collection of security requirements', function() { const doc = { security: [ { requirement: [] } ] }; - const d = new Server('trait', doc); + const d = new Server(doc); expect(Array.isArray(d.security())).toEqual(true); expect(d.security()).toHaveLength(1); expect(typeof d.security()[0]).toEqual('object'); @@ -82,7 +82,7 @@ describe('Server Model', function () { it('should return collection of security requirements when value is undefined', function() { const doc = {}; - const d = new Server('trait', doc); + const d = new Server(doc); expect(Array.isArray(d.security())).toEqual(true); expect(d.security()).toHaveLength(0); }); diff --git a/test/models/v2/servers.spec.ts b/test/models/v2/servers.spec.ts index 122ad7d09..e329bc0c3 100644 --- a/test/models/v2/servers.spec.ts +++ b/test/models/v2/servers.spec.ts @@ -8,7 +8,7 @@ const doc = { url: 'development.gigantic-server.com' } }; -const docItem = new Server('development', doc.development); +const docItem = new Server(doc.development, { asyncapi: {} as any, pointer: '', id: 'development' }); describe('Servers model', function () { describe('.isEmpty()', function () { From 7fc591608f44c8958759eceec32ff808c9887c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Mon, 16 May 2022 12:27:42 +0200 Subject: [PATCH 021/126] refactor: port components model (#548) --- src/models/components.ts | 51 +++--- src/models/v2/asyncapi.ts | 2 +- src/models/v2/components.ts | 105 ++++++++++++ src/models/v2/mixins/bindings.ts | 3 +- src/models/v2/mixins/tags.ts | 3 +- src/models/v2/schemas.ts | 14 ++ test/models/v2/components.spec.ts | 260 ++++++++++++++++++++++++++++++ 7 files changed, 406 insertions(+), 32 deletions(-) create mode 100644 src/models/v2/components.ts create mode 100644 src/models/v2/schemas.ts create mode 100644 test/models/v2/components.spec.ts diff --git a/src/models/components.ts b/src/models/components.ts index 8e5d16a8c..0da724b2d 100644 --- a/src/models/components.ts +++ b/src/models/components.ts @@ -1,33 +1,30 @@ import type { BaseModel } from './base'; -import type { Collection } from './collection'; -import type { ServersInterface } from './servers'; -import type { ChannelsInterface } from './channels'; -import type { OperationsInterface } from './operations'; -import type { OperationTraitsInterface } from './operation-traits'; -import type { MessagesInterface } from './messages'; -import type { MessageTraitsInterface } from './message-traits'; -import type { SchemasInterface } from './schemas'; -import type { ChannelParametersInterface } from './channel-parameters'; -import type { ServerVariablesInterface } from './server-variables'; +import type { ServerInterface } from './server'; +import type { ChannelInterface } from './channel'; +import type { OperationTraitInterface } from './operation-trait'; +import type { MessageInterface } from './message'; +import type { MessageTraitInterface } from './message-trait'; +import type { SchemaInterface } from './schema'; +import type { ChannelParameterInterface } from './channel-parameter'; +import type { ServerVariableInterface } from './server-variable'; import type { CorrelationIdInterface } from './correlation-id'; import type { BindingsInterface } from './bindings'; -import type { SecuritySchemesInterface } from './security-schemes'; +import type { SecuritySchemeInterface } from './security-scheme'; import type { ExtensionsMixinInterface } from './mixins'; -export interface Components extends BaseModel, ExtensionsMixinInterface { - servers(): ServersInterface; - channels(): ChannelsInterface; - operations(): OperationsInterface; - messages(): MessagesInterface; - schemas(): SchemasInterface; - channelParameters(): ChannelParametersInterface; - serverVariables(): ServerVariablesInterface; - operationTraits(): OperationTraitsInterface; - messageTraits(): MessageTraitsInterface; - correlationIds(): Collection; - securitySchemes(): SecuritySchemesInterface; - serverBindings(): Collection; - channelBindings(): Collection; - operationBindings(): Collection; - messageBindings(): Collection; +export interface ComponentsInterface extends BaseModel, ExtensionsMixinInterface { + servers(): Record; + channels(): Record; + messages(): Record; + schemas(): Record; + channelParameters(): Record; + serverVariables(): Record; + operationTraits(): Record; + messageTraits(): Record; + correlationIds(): Record; + securitySchemes(): Record; + serverBindings(): Record; + channelBindings(): Record; + operationBindings(): Record; + messageBindings(): Record; } diff --git a/src/models/v2/asyncapi.ts b/src/models/v2/asyncapi.ts index 338a7043a..f1ced823f 100644 --- a/src/models/v2/asyncapi.ts +++ b/src/models/v2/asyncapi.ts @@ -20,7 +20,7 @@ export class AsyncAPIDocument extends Mixin(BaseModel, ExtensionsMixin) implemen servers(): ServersInterface { return new Servers( - Object.entries(this._json.servers).map(([serverName, server]) => + Object.entries(this._json.servers || {}).map(([serverName, server]) => this.createModel(Server, server, { id: serverName, pointer: `/servers/${serverName}` }) ) ); diff --git a/src/models/v2/components.ts b/src/models/v2/components.ts new file mode 100644 index 000000000..89bf62364 --- /dev/null +++ b/src/models/v2/components.ts @@ -0,0 +1,105 @@ +import { BaseModel } from "../base"; +import { Channel } from "./channel"; +import { ChannelParameter } from "./channel-parameter"; +import { CorrelationId } from "./correlation-id"; +import { Message } from "./message"; +import { MessageTrait } from "./message-trait"; +import { OperationTrait } from "./operation-trait"; +import { Schema } from "./schema"; +import { SecurityScheme } from "./security-scheme"; +import { Server } from "./server"; +import { ServerVariable } from "./server-variable"; + +import { Mixin } from '../utils'; +import { Bindings, Binding } from "./mixins/bindings"; +import { ExtensionsMixin } from './mixins/extensions'; + +import type { BindingsInterface } from "../bindings"; +import type { ComponentsInterface } from "../components"; +import type { ChannelInterface } from "../channel"; +import type { ChannelParameterInterface } from "../channel-parameter"; +import type { CorrelationIdInterface } from "../correlation-id"; +import type { MessageInterface } from "../message"; +import type { MessageTraitInterface } from "../message-trait"; +import type { OperationTraitInterface } from "../operation-trait"; +import type { SchemaInterface } from "../schema"; +import type { SecuritySchemeInterface } from "../security-scheme"; +import type { ServerInterface } from "../server"; +import type { ServerVariableInterface } from "../server-variable"; +import type { Constructor } from "../utils"; + +export class Components extends Mixin(BaseModel, ExtensionsMixin) implements ComponentsInterface { + servers(): Record { + return this.createMap('servers', Server); + } + + channels(): Record { + return this.createMap('channels', Channel); + } + + messages(): Record { + return this.createMap('messages', Message); + } + + schemas(): Record { + return this.createMap('schemas', Schema); + } + + channelParameters(): Record { + return this.createMap('parameters', ChannelParameter); + } + + serverVariables(): Record { + return this.createMap('serverVariables', ServerVariable); + } + + operationTraits(): Record { + return this.createMap('operationTraits', OperationTrait); + } + + messageTraits(): Record { + return this.createMap('messageTraits', MessageTrait); + } + + correlationIds(): Record { + return this.createMap('correlationIds', CorrelationId); + } + + securitySchemes(): Record { + return this.createMap('securitySchemes', SecurityScheme); + } + + serverBindings(): Record { + return this.createBindings('serverBindings'); + } + + channelBindings(): Record { + return this.createBindings('channelBindings'); + } + + operationBindings(): Record { + return this.createBindings('operationBindings'); + } + + messageBindings(): Record { + return this.createBindings('messageBindings'); + } + + protected createMap(itemsName: string, model: Constructor): Record { + return Object.entries(this._json[itemsName] || {}).reduce((items, [itemName, item]) => { + items[itemName] = this.createModel(model, item, { id: itemName, pointer: `/components/${itemsName}/${itemName}` }) + return items; + }, {} as Record); + } + + protected createBindings(itemsName: string): Record { + return Object.entries(this._json[itemsName] || {}).reduce((bindings, [name, item]) => { + bindings[name] = new Bindings( + Object.entries(item as any || {}).map(([protocol, binding]) => + this.createModel(Binding, binding, { id: protocol, pointer: `components/${itemsName}/${name}/${protocol}` }) + ) + ); + return bindings; + }, {} as Record); + } +} diff --git a/src/models/v2/mixins/bindings.ts b/src/models/v2/mixins/bindings.ts index 10135f31f..d15d8ddb1 100644 --- a/src/models/v2/mixins/bindings.ts +++ b/src/models/v2/mixins/bindings.ts @@ -44,9 +44,8 @@ export class Bindings extends Collection implements BindingsIn export abstract class BindingsMixin extends BaseModel implements BindingsMixinInterface { bindings(): BindingsInterface { - const bindings: Record = this._json.bindings || {}; return new Bindings( - Object.entries(bindings).map(([protocol, binding]) => + Object.entries(this._json.bindings || {}).map(([protocol, binding]) => this.createModel(Binding, binding, { id: protocol, pointer: `${this._meta.pointer}/bindings/${protocol}` }) ) ); diff --git a/src/models/v2/mixins/tags.ts b/src/models/v2/mixins/tags.ts index 4cc0a4fa0..eaf49931b 100644 --- a/src/models/v2/mixins/tags.ts +++ b/src/models/v2/mixins/tags.ts @@ -28,9 +28,8 @@ export class Tags extends Collection implements TagsInterface { export abstract class TagsMixin extends BaseModel implements TagsMixinInterface { tags(): TagsInterface { - const tags = this._json.tags || []; return new Tags( - tags.map((tag: any, idx: number) => + (this._json.tags || []).map((tag: any, idx: number) => this.createModel(Tag, tag, { pointer: `${this._meta.pointer}/tags/${idx}` }) ) ); diff --git a/src/models/v2/schemas.ts b/src/models/v2/schemas.ts new file mode 100644 index 000000000..dea892a87 --- /dev/null +++ b/src/models/v2/schemas.ts @@ -0,0 +1,14 @@ +import { Collection } from '../collection'; + +import type { SchemasInterface } from '../schemas'; +import type { SchemaInterface } from '../schema'; + +export class Schemas extends Collection implements SchemasInterface { + override get(id: string): SchemaInterface | undefined { + return this.collections.find(schema => schema.uid() === id); + } + + override has(id: string): boolean { + return this.collections.some(schema => schema.uid() === id); + } +} diff --git a/test/models/v2/components.spec.ts b/test/models/v2/components.spec.ts new file mode 100644 index 000000000..6265ed543 --- /dev/null +++ b/test/models/v2/components.spec.ts @@ -0,0 +1,260 @@ +import { Components } from '../../../src/models/v2/components'; +import { Bindings } from '../../../src/models/v2/mixins/bindings'; +import { Channel } from '../../../src/models/v2/channel'; +import { ChannelParameter } from '../../../src/models/v2/channel-parameter'; +import { CorrelationId } from '../../../src/models/v2/correlation-id'; +import { OperationTrait } from '../../../src/models/v2/operation-trait'; +import { Message } from '../../../src/models/v2/message'; +import { MessageTrait } from '../../../src/models/v2/message-trait'; +import { Schema } from '../../../src/models/v2/schema'; +import { Server } from '../../../src/models/v2/server'; +import { ServerVariable } from '../../../src/models/v2/server-variable'; +import { SecurityScheme } from '../../../src/models/v2/security-scheme'; + +import { + assertExtensionsMixinInheritance, +} from './mixins/inheritance'; + +describe('Components model', function() { + describe('.servers()', function() { + it('should return map of servers', function() { + const doc = { servers: { server: {} } }; + const d = new Components(doc); + expect(typeof d.servers()).toEqual('object'); + expect(Object.keys(d.servers())).toHaveLength(1); + expect(d.servers()['server']).toBeInstanceOf(Server); + }); + + it('should return empty map when servers are not defined', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.servers()).toEqual('object'); + expect(Object.keys(d.servers())).toHaveLength(0); + }); + }); + + describe('.channels()', function() { + it('should return map of channels', function() { + const doc = { channels: { channel: {} } }; + const d = new Components(doc); + expect(typeof d.channels()).toEqual('object'); + expect(Object.keys(d.channels())).toHaveLength(1); + expect(d.channels()['channel']).toBeInstanceOf(Channel); + }); + + it('should return empty map when channels are not defined', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.channels()).toEqual('object'); + expect(Object.keys(d.channels())).toHaveLength(0); + }); + }); + + describe('.messages()', function() { + it('should return map of messages', function() { + const doc = { messages: { message: {} } }; + const d = new Components(doc); + expect(typeof d.messages()).toEqual('object'); + expect(Object.keys(d.messages())).toHaveLength(1); + expect(d.messages()['message']).toBeInstanceOf(Message); + }); + + it('should return empty map when messages are not defined', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.messages()).toEqual('object'); + expect(Object.keys(d.messages())).toHaveLength(0); + }); + }); + + describe('.schemas()', function() { + it('should return map of schemas', function() { + const doc = { schemas: { schema: {} } }; + const d = new Components(doc); + expect(typeof d.schemas()).toEqual('object'); + expect(Object.keys(d.schemas())).toHaveLength(1); + expect(d.schemas()['schema']).toBeInstanceOf(Schema); + }); + + it('should return empty map when schemas are not defined', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.schemas()).toEqual('object'); + expect(Object.keys(d.schemas())).toHaveLength(0); + }); + }); + + describe('.channelParameters()', function() { + it('should return map of channelParameters', function() { + const doc = { parameters: { parameter: {} } }; + const d = new Components(doc); + expect(typeof d.channelParameters()).toEqual('object'); + expect(Object.keys(d.channelParameters())).toHaveLength(1); + expect(d.channelParameters()['parameter']).toBeInstanceOf(ChannelParameter); + }); + + it('should return empty map when channelParameters are not defined', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.channelParameters()).toEqual('object'); + expect(Object.keys(d.channelParameters())).toHaveLength(0); + }); + }); + + describe('.serverVariables()', function() { + it('should return map of serverVariables', function() { + const doc = { serverVariables: { variable: {} } }; + const d = new Components(doc); + expect(typeof d.serverVariables()).toEqual('object'); + expect(Object.keys(d.serverVariables())).toHaveLength(1); + expect(d.serverVariables()['variable']).toBeInstanceOf(ServerVariable); + }); + + it('should return empty map when serverVariables are not defined', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.serverVariables()).toEqual('object'); + expect(Object.keys(d.serverVariables())).toHaveLength(0); + }); + }); + + describe('.operationTraits()', function() { + it('should return map of operationTraits', function() { + const doc = { operationTraits: { trait: {} } }; + const d = new Components(doc); + expect(typeof d.operationTraits()).toEqual('object'); + expect(Object.keys(d.operationTraits())).toHaveLength(1); + expect(d.operationTraits()['trait']).toBeInstanceOf(OperationTrait); + }); + + it('should return empty map when operationTraits are not defined', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.operationTraits()).toEqual('object'); + expect(Object.keys(d.operationTraits())).toHaveLength(0); + }); + }); + + describe('.messageTraits()', function() { + it('should return map of messageTraits', function() { + const doc = { messageTraits: { trait: {} } }; + const d = new Components(doc); + expect(typeof d.messageTraits()).toEqual('object'); + expect(Object.keys(d.messageTraits())).toHaveLength(1); + expect(d.messageTraits()['trait']).toBeInstanceOf(MessageTrait); + }); + + it('should return empty map when messageTraits are not defined', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.messageTraits()).toEqual('object'); + expect(Object.keys(d.messageTraits())).toHaveLength(0); + }); + }); + + describe('.correlationIds()', function() { + it('should return map of correlationIds', function() { + const doc = { correlationIds: { id: {} } }; + const d = new Components(doc); + expect(typeof d.correlationIds()).toEqual('object'); + expect(Object.keys(d.correlationIds())).toHaveLength(1); + expect(d.correlationIds()['id']).toBeInstanceOf(CorrelationId); + }); + + it('should return empty map when correlationIds are not defined', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.correlationIds()).toEqual('object'); + expect(Object.keys(d.correlationIds())).toHaveLength(0); + }); + }); + + describe('.securitySchemes()', function() { + it('should return map of securitySchemes', function() { + const doc = { securitySchemes: { scheme: {} } }; + const d = new Components(doc); + expect(typeof d.securitySchemes()).toEqual('object'); + expect(Object.keys(d.securitySchemes())).toHaveLength(1); + expect(d.securitySchemes()['scheme']).toBeInstanceOf(SecurityScheme); + }); + + it('should return empty map when securitySchemes are not defined', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.securitySchemes()).toEqual('object'); + expect(Object.keys(d.securitySchemes())).toHaveLength(0); + }); + }); + + describe('.serverBindings()', function() { + it('should return map of serverBindings', function() { + const doc = { serverBindings: { bidning: {} } }; + const d = new Components(doc); + expect(typeof d.serverBindings()).toEqual('object'); + expect(Object.keys(d.serverBindings())).toHaveLength(1); + expect(d.serverBindings()['bidning']).toBeInstanceOf(Bindings); + }); + + it('should return empty map when serverBindings are not defined', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.serverBindings()).toEqual('object'); + expect(Object.keys(d.serverBindings())).toHaveLength(0); + }); + }); + + describe('.channelBindings()', function() { + it('should return map of channelBindings', function() { + const doc = { channelBindings: { bidning: {} } }; + const d = new Components(doc); + expect(typeof d.channelBindings()).toEqual('object'); + expect(Object.keys(d.channelBindings())).toHaveLength(1); + expect(d.channelBindings()['bidning']).toBeInstanceOf(Bindings); + }); + + it('should return empty map when channelBindings are not defined', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.channelBindings()).toEqual('object'); + expect(Object.keys(d.channelBindings())).toHaveLength(0); + }); + }); + + describe('.operationBindings()', function() { + it('should return map of operationBindings', function() { + const doc = { operationBindings: { bidning: {} } }; + const d = new Components(doc); + expect(typeof d.operationBindings()).toEqual('object'); + expect(Object.keys(d.operationBindings())).toHaveLength(1); + expect(d.operationBindings()['bidning']).toBeInstanceOf(Bindings); + }); + + it('should return empty map when operationBindings are not defined', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.operationBindings()).toEqual('object'); + expect(Object.keys(d.operationBindings())).toHaveLength(0); + }); + }); + + describe('.messageBindings()', function() { + it('should return map of messageBindings', function() { + const doc = { messageBindings: { bidning: {} } }; + const d = new Components(doc); + expect(typeof d.messageBindings()).toEqual('object'); + expect(Object.keys(d.messageBindings())).toHaveLength(1); + expect(d.messageBindings()['bidning']).toBeInstanceOf(Bindings); + }); + + it('should return empty map when messageBindings are not defined', function() { + const doc = {}; + const d = new Components(doc); + expect(typeof d.messageBindings()).toEqual('object'); + expect(Object.keys(d.messageBindings())).toHaveLength(0); + }); + }); + + describe('mixins inheritance', function() { + assertExtensionsMixinInheritance(Components); + }); +}); From 62f5ffe8901a312c8bafd7911d76ec539eda1c34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Tue, 17 May 2022 12:07:08 +0200 Subject: [PATCH 022/126] refactor: stop with v3 implementation (#551) --- src/models/asyncapi.ts | 5 +- src/models/v3/asyncapi.ts | 26 +-------- src/models/v3/contact.ts | 32 ----------- src/models/v3/index.ts | 17 +----- src/models/v3/info.ts | 76 --------------------------- src/models/v3/license.ts | 20 ------- src/models/v3/mixins/bindings.ts | 55 ------------------- src/models/v3/mixins/description.ts | 13 ----- src/models/v3/mixins/extensions.ts | 55 ------------------- src/models/v3/mixins/external-docs.ts | 30 ----------- src/models/v3/mixins/tags.ts | 37 ------------- src/models/v3/oauth-flow.ts | 24 --------- src/models/v3/oauth-flows.ts | 40 -------------- src/models/v3/security-scheme.ts | 55 ------------------- src/models/v3/security-schemes.ts | 12 ----- src/models/v3/server-variable.ts | 42 --------------- src/models/v3/server-variables.ts | 14 ----- src/models/v3/server.ts | 71 ------------------------- src/models/v3/servers.ts | 13 ----- test/models/v2/asyncapi.spec.ts | 11 +--- 20 files changed, 5 insertions(+), 643 deletions(-) delete mode 100644 src/models/v3/contact.ts delete mode 100644 src/models/v3/info.ts delete mode 100644 src/models/v3/license.ts delete mode 100644 src/models/v3/mixins/bindings.ts delete mode 100644 src/models/v3/mixins/description.ts delete mode 100644 src/models/v3/mixins/extensions.ts delete mode 100644 src/models/v3/mixins/external-docs.ts delete mode 100644 src/models/v3/mixins/tags.ts delete mode 100644 src/models/v3/oauth-flow.ts delete mode 100644 src/models/v3/oauth-flows.ts delete mode 100644 src/models/v3/security-scheme.ts delete mode 100644 src/models/v3/security-schemes.ts delete mode 100644 src/models/v3/server-variable.ts delete mode 100644 src/models/v3/server-variables.ts delete mode 100644 src/models/v3/server.ts delete mode 100644 src/models/v3/servers.ts diff --git a/src/models/asyncapi.ts b/src/models/asyncapi.ts index 1c2944484..fa813bc54 100644 --- a/src/models/asyncapi.ts +++ b/src/models/asyncapi.ts @@ -1,5 +1,4 @@ import { AsyncAPIDocumentV2 } from "./v2"; -import { AsyncAPIDocumentV3 } from "./v3"; import type { InfoInterface } from "./info"; import type { BaseModel } from "./base"; @@ -17,8 +16,8 @@ export function newAsyncAPIDocument(asyncapi: DetailedAsyncAPI): AsyncAPIDocumen switch (asyncapi.semver.major) { case 2: return new AsyncAPIDocumentV2(asyncapi.parsed, { asyncapi, pointer: '/' }); - case 3: - return new AsyncAPIDocumentV3(asyncapi.parsed, { asyncapi, pointer: '/' }); + // case 3: + // return new AsyncAPIDocumentV3(asyncapi.parsed, { asyncapi, pointer: '/' }) as any; default: throw new Error(`Unsupported AsyncAPI version: ${asyncapi.semver.version}`); } diff --git a/src/models/v3/asyncapi.ts b/src/models/v3/asyncapi.ts index 65d35296b..5b423e425 100644 --- a/src/models/v3/asyncapi.ts +++ b/src/models/v3/asyncapi.ts @@ -1,31 +1,7 @@ import { BaseModel } from "../base"; -import { Info } from "./info"; -import { Servers } from "./servers"; -import { Server } from "./server"; - -import { Mixin } from '../utils'; -import { ExtensionsMixin } from './mixins/extensions'; - -import type { AsyncAPIDocumentInterface, InfoInterface } from "../../models"; -import type { ServersInterface } from "models/servers"; - -export class AsyncAPIDocument - extends Mixin(BaseModel, ExtensionsMixin) - implements AsyncAPIDocumentInterface { +export class AsyncAPIDocument extends BaseModel { version(): string { return this._json.asyncapi; } - - info(): InfoInterface { - return this.createModel(Info, this._json.info, { pointer: '/info' }); - } - - servers(): ServersInterface { - return new Servers( - Object.entries(this._json.servers).map(([serverName, server]) => - this.createModel(Server, server, { id: serverName, pointer: `/servers/${serverName}` }) - ) - ); - } } diff --git a/src/models/v3/contact.ts b/src/models/v3/contact.ts deleted file mode 100644 index c7ecb5122..000000000 --- a/src/models/v3/contact.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { BaseModel } from "../base"; - -import { Mixin } from '../utils'; -import { ExtensionsMixin } from './mixins/extensions'; - -import type { ContactInterface } from "../../models/contact"; - -export class Contact extends Mixin(BaseModel, ExtensionsMixin) implements ContactInterface { - hasName(): boolean { - return !!this._json.name; - } - - name(): string | undefined { - return this._json.name; - } - - hasUrl(): boolean { - return !!this._json.url; - } - - url(): string | undefined { - return this._json.url; - } - - hasEmail(): boolean { - return !!this._json.email; - } - - email(): string | undefined { - return this._json.email; - } -} \ No newline at end of file diff --git a/src/models/v3/index.ts b/src/models/v3/index.ts index 053a83fa4..05cd9ec64 100644 --- a/src/models/v3/index.ts +++ b/src/models/v3/index.ts @@ -1,16 +1 @@ -export { AsyncAPIDocument as AsyncAPIDocumentV3 } from './asyncapi'; -export { Contact as ContactV3 } from './contact'; -export { Info as InfoV3 } from './info'; -export { License as LicenseV3 } from './license'; -export { Bindings as BindingsV3, Binding as BindingV3 } from './mixins/bindings'; -export { Extensions as ExtensionsV3, Extension as ExtensionV3 } from './mixins/extensions'; -export { ExternalDocumentation as ExternalDocumentationV3 } from './mixins/external-docs'; -export { Tags as TagsV3, Tag as TagV3 } from './mixins/tags'; -export { Server as ServerV3 } from './server'; -export { Servers as ServersV3 } from './servers'; -export { SecurityScheme as SecuritySchemeV3 } from './security-scheme'; -export { SecuritySchemes as SecuritySchemesV3 } from './security-schemes'; -export { ServerVariable as ServerVariableV3 } from './server-variable'; -export { ServerVariables as ServerVariablesV3 } from './server-variables'; -export {OAuthFlow as OAuthFlowV3} from './oauth-flow'; -export {OAuthFlows as OAuthFlowsV3} from './oauth-flows'; +export { AsyncAPIDocument as AsyncAPIDocumentV3 } from './asyncapi'; \ No newline at end of file diff --git a/src/models/v3/info.ts b/src/models/v3/info.ts deleted file mode 100644 index 6e5cfc62e..000000000 --- a/src/models/v3/info.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { BaseModel } from "../base"; -import { Contact } from "./contact"; -import { License } from "./license"; - -import { Mixin } from '../utils'; -import { DescriptionMixin } from './mixins/description'; -import { ExtensionsMixin } from './mixins/extensions'; -import { ExternalDocumentation } from './mixins/external-docs'; -import { Tags, Tag } from './mixins/tags'; - -import type { InfoInterface } from "../../models/info"; -import type { ExternalDocumentationInterface } from "../../models/external-docs"; -import type { TagsInterface } from "../../models/tags"; - -export class Info - extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) - implements InfoInterface { - - title(): string { - return this._json.title; - } - - version(): string { - return this._json.version; - } - - id(): string | undefined { - return this._meta.asyncapi.parsed.id as string; - } - - hasId(): boolean { - return !!this._meta.asyncapi.parsed.id; - } - - hasTermsOfService(): boolean { - return !!this._json.termsOfService; - } - - termsOfService(): string | undefined { - return this._json.termsOfService; - } - - hasContact(): boolean { - return Object.keys(this._json.contact || {}).length > 0; - } - - contact(): Contact | undefined { - const contact = this._json.contact; - return contact && this.createModel(Contact, contact, { pointer: '/info/contact' }); - } - - hasLicense(): boolean { - return Object.keys(this._json.license || {}).length > 0; - } - - license(): License | undefined { - const license = this._json.license; - return license && this.createModel(License, license, { pointer: `/info/license` }); - } - - hasExternalDocs(): boolean { - return Object.keys(this._meta.asyncapi.parsed.externalDocs || {}).length > 0; - }; - - externalDocs(): ExternalDocumentationInterface | undefined { - if (this.hasExternalDocs()) { - return this.createModel(ExternalDocumentation, this._meta.asyncapi.parsed.externalDocs, { pointer: `/externalDocs` }); - } - return; - }; - - tags(): TagsInterface { - const tags = this._json.tags || []; - return new Tags(tags.map((tag: any, idx: number) => this.createModel(Tag, tag, { pointer: `/tags/${idx}` }))); - } -} diff --git a/src/models/v3/license.ts b/src/models/v3/license.ts deleted file mode 100644 index 834f43b29..000000000 --- a/src/models/v3/license.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { BaseModel } from "../base"; - -import { Mixin } from '../utils'; -import { ExtensionsMixin } from './mixins/extensions'; - -import type { LicenseInterface } from "../../models/license"; - -export class License extends Mixin(BaseModel, ExtensionsMixin) implements LicenseInterface { - name(): string { - return this._json.name; - } - - hasUrl(): boolean { - return !!this._json.url; - } - - url(): string | undefined { - return this._json.url; - } -} \ No newline at end of file diff --git a/src/models/v3/mixins/bindings.ts b/src/models/v3/mixins/bindings.ts deleted file mode 100644 index ae646e166..000000000 --- a/src/models/v3/mixins/bindings.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { BaseModel } from "../../base"; -import { Collection } from '../../collection'; - -import { Mixin } from '../../utils'; -import { ExtensionsMixin } from './extensions'; - -import type { ModelMetadata } from "../../base"; -import type { BindingsMixinInterface } from "../../mixins"; -import type { BindingsInterface } from "../../bindings"; -import type { BindingInterface } from "../../binding"; - -export class Binding extends Mixin(BaseModel, ExtensionsMixin) implements BindingInterface { - constructor( - private readonly _protocol: string, - _json: Record, - _meta: ModelMetadata, - ) { - super(_json, _meta); - } - - protocol(): string { - return this._protocol; - } - - version(): string { - return this._json.bindingVersion; - } - - value(): any { - const value = { ...this._json }; - delete value.bindingVersion; - return value; - } -} - -export class Bindings extends Collection implements BindingsInterface { - override get(name: string): BindingInterface | undefined { - return this.collections.find(binding => binding.protocol() === name); - }; - - override has(name: string): boolean { - return this.collections.some(binding => binding.protocol() === name); - }; -} - -export abstract class BindingsMixin extends BaseModel implements BindingsMixinInterface { - bindings(): BindingsInterface { - const bindings: Record = this._json.bindings || {}; - return new Bindings( - Object.entries(bindings).map(([protocol, binding]) => - this.createModel(Binding, binding, { id: protocol, pointer: `${this._meta.pointer}/bindings/${protocol}` }) - ) - ); - } -} diff --git a/src/models/v3/mixins/description.ts b/src/models/v3/mixins/description.ts deleted file mode 100644 index c60f5c8e7..000000000 --- a/src/models/v3/mixins/description.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { BaseModel } from "../../base"; - -import type { DescriptionMixinInterface } from "../../mixins"; - -export abstract class DescriptionMixin extends BaseModel implements DescriptionMixinInterface { - hasDescription() { - return Boolean(this._json.description); - }; - - description(): string | undefined { - return this._json.description; - } -} \ No newline at end of file diff --git a/src/models/v3/mixins/extensions.ts b/src/models/v3/mixins/extensions.ts deleted file mode 100644 index df5032f5b..000000000 --- a/src/models/v3/mixins/extensions.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { Collection } from '../../collection'; -import { BaseModel } from "../../base"; - -import type { ModelMetadata } from "../../base"; -import type { ExtensionsMixinInterface } from "../../mixins"; -import type { ExtensionsInterface } from "../../extensions"; -import type { ExtensionInterface } from "../../extension"; - -import { EXTENSION_REGEX } from '../../../constants'; - -export class Extension extends BaseModel implements ExtensionInterface { - constructor( - private readonly _id: string, - _json: Record, - _meta: ModelMetadata, - ) { - super(_json, _meta); - } - - name(): string { - return this._id; - } - - version(): string { - return 'to implement'; - } - - value(): any { - return this._json; - } -} - -export class Extensions extends Collection implements ExtensionsInterface { - override get(name: string): ExtensionInterface | undefined { - return this.collections.find(ext => ext.name() === name); - }; - - override has(name: string): boolean { - return this.collections.some(ext => ext.name() === name); - }; -} - -export abstract class ExtensionsMixin extends BaseModel implements ExtensionsMixinInterface { - extensions(): ExtensionsInterface { - const extensions: Extension[] = []; - Object.entries(this._json).forEach(([key, value]) => { - if (EXTENSION_REGEX.test(key)) { - extensions.push( - this.createModel(Extension, value, { id: key, pointer: `${this._meta.pointer}/${key}` }) - ); - } - }); - return new Extensions(extensions); - }; -} diff --git a/src/models/v3/mixins/external-docs.ts b/src/models/v3/mixins/external-docs.ts deleted file mode 100644 index d400201ca..000000000 --- a/src/models/v3/mixins/external-docs.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { BaseModel } from "../../base"; - -import { Mixin } from '../../utils'; -import { DescriptionMixin } from './description'; -import { ExtensionsMixin } from './extensions'; - -import type { ExternalDocumentationInterface } from '../../external-docs'; -import type { ExternalDocumentationMixinInterface } from "../../mixins"; - -export class ExternalDocumentation - extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) - implements ExternalDocumentationInterface { - - url(): string { - return this._json.url; - } -} - -export abstract class ExternalDocumentationMixin extends BaseModel implements ExternalDocumentationMixinInterface { - hasExternalDocs(): boolean { - return Object.keys(this._json.externalDocs || {}).length > 0; - }; - - externalDocs(): ExternalDocumentationInterface | undefined { - if (this.hasExternalDocs()) { - return new ExternalDocumentation(this._json.externalDocs); - } - return; - }; -} \ No newline at end of file diff --git a/src/models/v3/mixins/tags.ts b/src/models/v3/mixins/tags.ts deleted file mode 100644 index e490069e9..000000000 --- a/src/models/v3/mixins/tags.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { BaseModel } from "../../base"; -import { Collection } from "../../collection"; - -import { Mixin } from '../../utils'; -import { DescriptionMixin } from './description'; -import { ExtensionsMixin } from './extensions'; -import { ExternalDocumentationMixin } from './external-docs'; - -import type { TagsMixinInterface } from "../../mixins"; -import type { TagsInterface } from "../../tags"; -import type { TagInterface } from "../../tag"; - -export class Tag - extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin, ExternalDocumentationMixin) - implements TagInterface { - - name(): string { - return this._json.name; - } -} - -export class Tags extends Collection implements TagsInterface { - override get(name: string): TagInterface | undefined { - return this.collections.find(tag => tag.name() === name); - }; - - override has(name: string): boolean { - return this.collections.some(tag => tag.name() === name); - }; -} - -export abstract class TagsMixin extends BaseModel implements TagsMixinInterface { - tags(): TagsInterface { - const tags = this._json.tags || []; - return new Tags(tags.map((tag: any, idx: number) => this.createModel(Tag, tag, { pointer: `${this._meta.pointer}/tags/${idx}` }))); - } -} diff --git a/src/models/v3/oauth-flow.ts b/src/models/v3/oauth-flow.ts deleted file mode 100644 index 70cb6846f..000000000 --- a/src/models/v3/oauth-flow.ts +++ /dev/null @@ -1,24 +0,0 @@ - -import { OAuthFlowInterface } from '../oauth-flow'; -import { BaseModel } from '../base'; -import { Mixin } from '../utils'; -import { ExtensionsMixin } from './mixins/extensions'; - -export class OAuthFlow extends Mixin(BaseModel, ExtensionsMixin) implements OAuthFlowInterface { - authorizationUrl(): string | undefined { - return this._json.authorizationUrl; - } - hasRefreshUrl(): boolean { - return !!this._json.refreshUrl; - } - refreshUrl(): string | undefined { - return this._json.refreshUrl; - } - scopes(): Record | undefined { - return this._json.scopes; - } - tokenUrl(): string | undefined { - return this._json.tokenUrl; - } - -} \ No newline at end of file diff --git a/src/models/v3/oauth-flows.ts b/src/models/v3/oauth-flows.ts deleted file mode 100644 index 6abab0eb8..000000000 --- a/src/models/v3/oauth-flows.ts +++ /dev/null @@ -1,40 +0,0 @@ - -import { OAuthFlowsInterface } from '../oauth-flows'; -import { BaseModel } from '../base'; -import { Mixin } from '../utils'; -import { ExtensionsMixin } from './mixins/extensions'; -import { OAuthFlowInterface } from '../oauth-flow'; -import { OAuthFlow } from './oauth-flow'; - -export class OAuthFlows extends Mixin(BaseModel, ExtensionsMixin) implements OAuthFlowsInterface { - hasAuthorizationCode(): boolean { - return !!this._json.authorizationCode; - } - authorizationCode(): OAuthFlowInterface | undefined { - if (!this._json.authorizationCode) return undefined; - return new OAuthFlow(this._json.authorizationCode); - } - hasClientCredentials(): boolean { - return !!this._json.clientCredentials; - } - clientCredentials(): OAuthFlowInterface | undefined { - if (!this._json.clientCredentials) return undefined; - return new OAuthFlow(this._json.clientCredentials); - } - hasImplicit(): boolean { - return !!this._json.implicit; - } - implicit(): OAuthFlowInterface | undefined { - if (!this._json.implicit) return undefined; - return new OAuthFlow(this._json.implicit); - } - hasPassword(): boolean { - return !!this._json.password; - } - password(): OAuthFlowInterface | undefined { - if (!this._json.password) return undefined; - return new OAuthFlow(this._json.password); - } - - -} \ No newline at end of file diff --git a/src/models/v3/security-scheme.ts b/src/models/v3/security-scheme.ts deleted file mode 100644 index eecbaa843..000000000 --- a/src/models/v3/security-scheme.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { BaseModel, ModelMetadata } from '../base'; -import { Mixin } from '../utils'; -import { DescriptionMixin } from './mixins/description'; -import { ExtensionsMixin } from './mixins/extensions'; -import { SecuritySchemaType, SecuritySchemeInterface } from '../security-scheme'; -import { OAuthFlowsInterface } from '../oauth-flows'; -import { OAuthFlows } from './oauth-flows'; - -export class SecurityScheme extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements SecuritySchemeInterface { - constructor( - private readonly _id: string, - _json: Record, - _meta: ModelMetadata = {} as any - ) { - super(_json, _meta); - } - - id(): string { - return this._id; - } - - hasBearerFormat(): boolean { - return !!this._json.bearerFormat; - } - - bearerFormat(): string | undefined { - return this._json.bearerFormat; - } - - openIdConnectUrl(): string { - return this._json.openIdConnectUrl; - } - - scheme(): string | undefined { - return this._json.scheme - } - - flows(): OAuthFlowsInterface | undefined { - if(!this._json.flows) return undefined; - return new OAuthFlows(this._json.flows); - } - - scopes(): string[] { - return this._json.scopes; - } - - type(): SecuritySchemaType { - return this._json.type; - } - - in(): string | undefined { - return this._json.in; - } - -} \ No newline at end of file diff --git a/src/models/v3/security-schemes.ts b/src/models/v3/security-schemes.ts deleted file mode 100644 index 500ded280..000000000 --- a/src/models/v3/security-schemes.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { SecuritySchemesInterface } from '../security-schemes'; -import { Collection } from '../collection'; -import { SecuritySchemeInterface } from '../security-scheme'; - -export class SecuritySchemes extends Collection implements SecuritySchemesInterface { - get(id: string): SecuritySchemeInterface | undefined { - return this.collections.find(securityScheme => securityScheme.id() === id); - } - has(id: string): boolean { - return this.collections.some(securityScheme => securityScheme.id() === id); - } -} \ No newline at end of file diff --git a/src/models/v3/server-variable.ts b/src/models/v3/server-variable.ts deleted file mode 100644 index e471973e7..000000000 --- a/src/models/v3/server-variable.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { BaseModel } from '../base'; - -import { Mixin } from '../utils'; -import { DescriptionMixin } from './mixins/description'; -import { ExtensionsMixin } from './mixins/extensions'; - -import type { ModelMetadata } from '../base'; -import type { ServerVariableInterface } from '../server-variable'; - -export class ServerVariable extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements ServerVariableInterface { - constructor( - private readonly _id: string, - _json: Record, - _meta: ModelMetadata = {} as any - ) { - super(_json, _meta); - } - - id(): string { - return this._id; - } - - hasDefaultValue(): boolean { - return !!this._json.default - } - - defaultValue(): string | undefined { - return this._json.default; - } - - hasAllowedValues(): boolean { - return !!this._json.enum; - } - - allowedValues(): Array { - return this._json.enum; - } - - examples(): Array { - return this._json.examples - } -} diff --git a/src/models/v3/server-variables.ts b/src/models/v3/server-variables.ts deleted file mode 100644 index 037cf7540..000000000 --- a/src/models/v3/server-variables.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { ServerVariablesInterface } from '../server-variables'; -import { Collection } from '../collection'; -import { ServerVariableInterface } from '../server-variable'; - -export class ServerVariables extends Collection implements ServerVariablesInterface { - get(id: string): ServerVariableInterface | undefined { - return this.collections.find(serverVariable => serverVariable.id() === id); - } - - has(id: string): boolean { - return this.collections.some(serverVariable => serverVariable.id() === id); - } - -} \ No newline at end of file diff --git a/src/models/v3/server.ts b/src/models/v3/server.ts deleted file mode 100644 index 19ac7aacc..000000000 --- a/src/models/v3/server.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { BaseModel } from '../base'; -import { SecurityScheme } from './security-scheme'; -import { ServerVariable } from './server-variable'; -import { ServerVariables } from './server-variables'; - -import { Mixin } from '../utils'; -import { BindingsMixin } from './mixins/bindings'; -import { DescriptionMixin } from './mixins/description'; -import { ExtensionsMixin } from './mixins/extensions'; - -import type { ModelMetadata } from "../base"; -import type { ServerInterface } from '../server'; -import type { SecuritySchemeInterface } from '../security-scheme'; - -export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, ExtensionsMixin) implements ServerInterface { - constructor( - private readonly _id: string, - _json: Record, - _meta: ModelMetadata = {} as any, - ) { - super(_json, _meta); - } - - id(): string { - return this._id; - } - - url(): string { - return this._json.url; - } - - protocol(): string { - return this._json.protocol; - } - - hasProtocolVersion(): boolean { - return !!this._json.protocolVersion; - } - - protocolVersion(): string { - return this._json.protocolVersion; - } - - variables(): ServerVariables { - return new ServerVariables( - Object.entries( - this._json.variables - ).map( - ([serverVariableName, serverVariable]) => this.createModel( - ServerVariable, serverVariable, { - id: serverVariableName, - pointer: `${this._meta.pointer}/variables/${serverVariableName}` - } - ) - )) - } - - security(): Array> { - const securitySchemes = this._meta?.asyncapi?.parsed.components.securitySchemes || {}; - return (this._json.security || []).map((requirement: any) => { - const requirements: Record = {}; - Object.entries(requirement).forEach(([security, scopes]) => { - requirements[security] = { - schema: this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }), - scopes: scopes as Array, - } - }); - return requirements; - }) - } -} diff --git a/src/models/v3/servers.ts b/src/models/v3/servers.ts deleted file mode 100644 index 68da626c9..000000000 --- a/src/models/v3/servers.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Collection } from '../collection'; -import { ServerInterface } from '../server'; -import { ServersInterface } from '../servers'; - -export class Servers extends Collection implements ServersInterface { - override get(id: string): ServerInterface | undefined { - return this.collections.find(server => server.id() === id); - } - - override has(id: string): boolean { - return this.collections.some(server => server.id() === id); - } -} diff --git a/test/models/v2/asyncapi.spec.ts b/test/models/v2/asyncapi.spec.ts index fab5cd43f..37d1e1601 100644 --- a/test/models/v2/asyncapi.spec.ts +++ b/test/models/v2/asyncapi.spec.ts @@ -3,7 +3,6 @@ import { AsyncAPIDocumentV2, InfoV2, ServersV2, - AsyncAPIDocumentV3 } from '../../../src/models'; import { createDetailedAsyncAPI } from '../../../src/utils'; @@ -14,7 +13,7 @@ import { describe('AsyncAPIDocument model', function() { describe('.version()', function() { it('should return the value', function() { - const doc = { asyncapi: "3.0.0" }; + const doc = { asyncapi: "2.0.0" }; const d = new AsyncAPIDocumentV2(doc); expect(d.version()).toEqual(doc.asyncapi); }); @@ -56,14 +55,6 @@ describe('AsyncAPIDocument factory', function() { expect(d).toBeInstanceOf(AsyncAPIDocumentV2); }); - it('should create a valid document from v3.0.0', function() { - const doc = { asyncapi: "3.0.0" }; - const detailed = createDetailedAsyncAPI(doc, doc); - const d = newAsyncAPIDocument(detailed) - expect(d.version()).toEqual(doc.asyncapi); - expect(d).toBeInstanceOf(AsyncAPIDocumentV3); - }); - it('should fail trying to create a document from a non supported spec version', function() { const doc = { asyncapi: "99.99.99" }; const detailed = createDetailedAsyncAPI(doc, doc); From 7c637b4e4a663560399b1d94f9e233ae3f8a5001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Thu, 19 May 2022 11:22:04 +0200 Subject: [PATCH 023/126] refactor: add missed methods to models (#553) --- src/models/asyncapi.ts | 18 +++- src/models/channel.ts | 2 + src/models/message.ts | 6 ++ src/models/operation.ts | 4 + src/models/server.ts | 6 ++ src/models/v2/asyncapi.ts | 67 ++++++++++++- src/models/v2/channel.ts | 23 +++-- src/models/v2/message.ts | 58 +++++++++++ src/models/v2/operation.ts | 37 ++++++- src/models/v2/server.ts | 37 +++++++ src/utils.ts | 23 ++++- test/models/asyncapi.spec.ts | 19 ++++ test/models/v2/asyncapi.spec.ts | 163 +++++++++++++++++++++++++------ test/models/v2/channel.spec.ts | 31 ++++++ test/models/v2/message.spec.ts | 101 +++++++++++++++++++ test/models/v2/operation.spec.ts | 68 +++++++++++++ test/models/v2/server.spec.ts | 113 ++++++++++++++++++++- 17 files changed, 728 insertions(+), 48 deletions(-) create mode 100644 test/models/asyncapi.spec.ts diff --git a/src/models/asyncapi.ts b/src/models/asyncapi.ts index fa813bc54..e6cf99adf 100644 --- a/src/models/asyncapi.ts +++ b/src/models/asyncapi.ts @@ -1,15 +1,29 @@ import { AsyncAPIDocumentV2 } from "./v2"; -import type { InfoInterface } from "./info"; import type { BaseModel } from "./base"; +import type { InfoInterface } from "./info"; +import type { ChannelsInterface } from "./channels"; +import type { ComponentsInterface } from "./components"; +import type { MessagesInterface } from "./messages"; import type { ExtensionsMixinInterface } from "./mixins"; +import type { OperationsInterface } from "./operations"; +import type { SchemasInterface } from "./schemas"; +import type { SecuritySchemesInterface } from "./security-schemes"; import type { ServersInterface } from "./servers"; import type { DetailedAsyncAPI } from "../types"; export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInterface { version(): string; + defaultContentType(): string | undefined; + hasDefaultContentType(): boolean; info(): InfoInterface; servers(): ServersInterface; + channels(): ChannelsInterface; + operations(): OperationsInterface; + messages(): MessagesInterface; + schemas(): SchemasInterface; + securitySchemes(): SecuritySchemesInterface; + components(): ComponentsInterface; } export function newAsyncAPIDocument(asyncapi: DetailedAsyncAPI): AsyncAPIDocumentInterface { @@ -17,7 +31,7 @@ export function newAsyncAPIDocument(asyncapi: DetailedAsyncAPI): AsyncAPIDocumen case 2: return new AsyncAPIDocumentV2(asyncapi.parsed, { asyncapi, pointer: '/' }); // case 3: - // return new AsyncAPIDocumentV3(asyncapi.parsed, { asyncapi, pointer: '/' }) as any; + // return new AsyncAPIDocumentV3(asyncapi.parsed, { asyncapi, pointer: '/' }); default: throw new Error(`Unsupported AsyncAPI version: ${asyncapi.semver.version}`); } diff --git a/src/models/channel.ts b/src/models/channel.ts index 3f360afc0..fc4b0ea30 100644 --- a/src/models/channel.ts +++ b/src/models/channel.ts @@ -1,5 +1,6 @@ import type { BaseModel } from "./base"; import type { ChannelParametersInterface } from "./channel-parameters"; +import type { MessagesInterface } from "./messages"; import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from "./mixins"; import type { OperationsInterface } from "./operations"; import type { ServersInterface } from "./servers"; @@ -9,5 +10,6 @@ export interface ChannelInterface extends BaseModel, BindingsMixinInterface, Des address(): string; servers(): ServersInterface; operations(): OperationsInterface; + messages(): MessagesInterface; parameters(): ChannelParametersInterface; } diff --git a/src/models/message.ts b/src/models/message.ts index ce3293a7c..618a85bdd 100644 --- a/src/models/message.ts +++ b/src/models/message.ts @@ -1,10 +1,16 @@ import type { BaseModel } from "./base"; +import type { ChannelsInterface } from "./channels"; import type { MessageTraitsInterface } from "./message-traits"; import type { MessageTraitInterface } from "./message-trait"; +import type { OperationsInterface } from "./operations"; import type { SchemaInterface } from "./schema"; +import type { ServersInterface } from "./servers"; export interface MessageInterface extends BaseModel, MessageTraitInterface { hasPayload(): boolean; payload(): SchemaInterface | undefined; + servers(): ServersInterface; + channels(): ChannelsInterface; + operations(): OperationsInterface; traits(): MessageTraitsInterface; } diff --git a/src/models/operation.ts b/src/models/operation.ts index beccca7cf..c72c38af4 100644 --- a/src/models/operation.ts +++ b/src/models/operation.ts @@ -1,11 +1,15 @@ import type { BaseModel } from "./base"; +import type { ChannelsInterface } from "./channels"; import type { MessagesInterface } from "./messages"; import type { OperationTraitsInterface } from "./operation-traits"; import type { OperationTraitInterface } from "./operation-trait"; +import type { ServersInterface } from "./servers"; export type OperationAction = 'send' | 'receive' | 'publish' | 'subscribe'; export interface OperationInterface extends BaseModel, OperationTraitInterface { + servers(): ServersInterface; + channels(): ChannelsInterface; messages(): MessagesInterface; traits(): OperationTraitsInterface; } diff --git a/src/models/server.ts b/src/models/server.ts index ef5f1bff0..388096bf0 100644 --- a/src/models/server.ts +++ b/src/models/server.ts @@ -1,5 +1,8 @@ import type { BaseModel } from "./base"; +import type { ChannelsInterface } from './channels' +import type { MessagesInterface } from './messages' import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +import type { OperationsInterface } from './operations' import type { ServerVariablesInterface } from "./server-variables"; import type { SecuritySchemeInterface } from "./security-scheme"; @@ -9,6 +12,9 @@ export interface ServerInterface extends BaseModel, DescriptionMixinInterface, B protocol(): string; protocolVersion(): string; hasProtocolVersion(): boolean; + channels(): ChannelsInterface; + operations(): OperationsInterface; + messages(): MessagesInterface; variables(): ServerVariablesInterface; security(): Array>; } diff --git a/src/models/v2/asyncapi.ts b/src/models/v2/asyncapi.ts index f1ced823f..271695bf8 100644 --- a/src/models/v2/asyncapi.ts +++ b/src/models/v2/asyncapi.ts @@ -1,19 +1,46 @@ import { BaseModel } from "../base"; import { Info } from "./info"; +import { Channels } from "./channels"; +import { Channel } from "./channel"; +import { Components } from "./components"; +import { Messages } from "./messages"; +import { Operations } from "./operations"; import { Servers } from "./servers"; import { Server } from "./server"; +import { SecuritySchemes } from "./security-schemes"; +import { SecurityScheme } from "./security-scheme"; +import { Schemas } from "./schemas"; import { Mixin } from '../utils'; import { ExtensionsMixin } from './mixins/extensions'; -import type { AsyncAPIDocumentInterface, InfoInterface } from "../../models"; -import type { ServersInterface } from "models/servers"; +import { tilde } from '../../utils'; + +import type { AsyncAPIDocumentInterface } from "../asyncapi"; +import type { InfoInterface } from "../info"; +import type { ServersInterface } from "../servers"; +import type { ChannelsInterface } from "../channels"; +import type { ComponentsInterface } from "../components"; +import type { OperationsInterface } from "../operations"; +import type { OperationInterface } from "../operation"; +import type { MessagesInterface } from "../messages"; +import type { MessageInterface } from "../message"; +import type { SchemasInterface } from "../schemas"; +import type { SecuritySchemesInterface } from "../security-schemes"; export class AsyncAPIDocument extends Mixin(BaseModel, ExtensionsMixin) implements AsyncAPIDocumentInterface { version(): string { return this._json.asyncapi; } + defaultContentType(): string | undefined { + return this._json.defaultContentType; + } + + hasDefaultContentType(): boolean { + return !!this._json.defaultContentType; + } + info(): InfoInterface { return this.createModel(Info, this._json.info, { pointer: '/info' }); } @@ -25,4 +52,40 @@ export class AsyncAPIDocument extends Mixin(BaseModel, ExtensionsMixin) implemen ) ); } + + channels(): ChannelsInterface { + return new Channels( + Object.entries(this._json.channels || {}).map(([channelAddress, channel]) => + this.createModel(Channel, channel, { id: channelAddress, address: channelAddress, pointer: `/channels/${tilde(channelAddress)}` }) + ) + ); + } + + operations(): OperationsInterface { + const operations: OperationInterface[] = []; + this.channels().forEach(channel => operations.push(...channel.operations().all())); + return new Operations(operations); + } + + messages(): MessagesInterface { + const messages: MessageInterface[] = []; + this.operations().forEach(operation => messages.push(...operation.messages().all())); + return new Messages(messages); + } + + schemas(): SchemasInterface { + return new Schemas([]); + } + + securitySchemes(): SecuritySchemesInterface { + return new SecuritySchemes( + Object.entries(this._json.components?.securitySchemes || {}).map(([securitySchemeName, securityScheme]) => + this.createModel(SecurityScheme, securityScheme, { id: securitySchemeName, pointer: `/components/securitySchemes/${securitySchemeName}` }) + ) + ); + } + + components(): ComponentsInterface { + return new Components(this._json.components || {}); + } } diff --git a/src/models/v2/channel.ts b/src/models/v2/channel.ts index cc4b3cb47..e178d1643 100644 --- a/src/models/v2/channel.ts +++ b/src/models/v2/channel.ts @@ -15,6 +15,8 @@ import { ExtensionsMixin } from './mixins/extensions'; import type { ModelMetadata } from "../base"; import type { ChannelInterface } from "../channel"; import type { ChannelParametersInterface } from "../channel-parameters"; +import type { MessagesInterface } from "../messages"; +import type { MessageInterface } from "../message"; import type { OperationsInterface } from "../operations"; import type { OperationInterface } from "../operation"; import type { ServersInterface } from "../servers"; @@ -48,20 +50,21 @@ export class Channel extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, E } operations(): OperationsInterface { - const operations: OperationInterface[] = [] - if (this._json.publish) { - operations.push( - this.createModel(Operation, this._json.publish, { id: 'publish', action: 'publish', pointer: `${this._meta.pointer}/publish` }), + const operations: OperationInterface[] = []; + ['publish', 'subscribe'].forEach(operationAction => { + this._json[operationAction] && operations.push( + this.createModel(Operation, this._json[operationAction], { id: operationAction, action: operationAction, pointer: `${this._meta.pointer}/${operationAction}` }), ); - } - if (this._json.subscribe) { - operations.push( - this.createModel(Operation, this._json.subscribe, { id: 'subscribe', action: 'subscribe', pointer: `${this._meta.pointer}/subscribe` }), - ); - } + }); return new Operations(operations); } + messages(): MessagesInterface { + const messages: MessageInterface[] = []; + this.operations().forEach(operation => messages.push(...operation.messages().all())); + return new Messages(messages); + } + parameters(): ChannelParametersInterface { return new ChannelParameters( Object.entries(this._json.parameters || {}).map(([channelParameterName, channelParameter]) => { diff --git a/src/models/v2/message.ts b/src/models/v2/message.ts index eb95a31ad..d1142e8f5 100644 --- a/src/models/v2/message.ts +++ b/src/models/v2/message.ts @@ -1,9 +1,21 @@ +import { Channels } from './channels'; +import { Operations } from './operations'; +import { Operation } from './operation'; import { MessageTraits } from "./message-traits"; import { MessageTrait } from "./message-trait"; +import { Servers } from './servers'; import { Schema } from './schema'; +import { tilde } from '../../utils'; + +import type { ChannelsInterface } from "../channels"; +import type { ChannelInterface } from "../channel"; import type { MessageInterface } from "../message"; import type { MessageTraitsInterface } from "../message-traits"; +import type { OperationsInterface } from "../operations"; +import type { OperationInterface } from "../operation"; +import type { ServersInterface } from "../servers"; +import type { ServerInterface } from "../server"; import type { SchemaInterface } from "../schema"; export class Message extends MessageTrait implements MessageInterface { @@ -16,6 +28,52 @@ export class Message extends MessageTrait implements MessageInterface { return this.createModel(Schema, this._json.payload, { pointer: `${this._meta.pointer}/payload` }); } + servers(): ServersInterface { + const servers: ServerInterface[] = []; + const serversData: any[] = []; + this.channels().forEach(channel => { + channel.servers().forEach(server => { + if (!serversData.includes(server.json())) { + serversData.push(server.json()); + servers.push(server); + } + }) + }); + return new Servers(servers); + } + + channels(): ChannelsInterface { + const channels: ChannelInterface[] = []; + const channelsData: any[] = []; + this.operations().all().forEach(operation => { + operation.channels().forEach(channel => { + if (!channelsData.includes(channel.json())) { + channelsData.push(channel.json()); + channels.push(channel); + } + }) + }); + return new Channels(channels); + } + + operations(): OperationsInterface { + const operations: OperationInterface[] = []; + Object.entries(this._meta.asyncapi?.parsed.channels || {}).forEach(([channelAddress, channel]: [string, any]) => { + ['subscribe', 'publish'].forEach(operationAction => { + const operation = channel[operationAction]; + if (operation && ( + operation.message === this._json || + (operation.message.oneOf || []).includes(this._json) + )) { + operations.push( + this.createModel(Operation, operation, { pointer: `/channels/${tilde(channelAddress)}/${operationAction}`, action: operationAction }) + ); + } + }); + }); + return new Operations(operations); + } + traits(): MessageTraitsInterface { return new MessageTraits( (this._json.traits || []).map((trait: any, index: number) => { diff --git a/src/models/v2/operation.ts b/src/models/v2/operation.ts index 4ac9ecbd3..1aff51205 100644 --- a/src/models/v2/operation.ts +++ b/src/models/v2/operation.ts @@ -1,13 +1,48 @@ -import { Message } from "./message"; +import { Channels } from "./channels"; +import { Channel } from "./channel"; import { Messages } from "./messages"; +import { Message } from "./message"; import { OperationTraits } from "./operation-traits"; import { OperationTrait } from "./operation-trait"; +import { Servers } from "./servers"; +import { tilde } from "../../utils"; + +import type { ChannelsInterface } from "../channels"; +import type { ChannelInterface } from "../channel"; import type { MessagesInterface } from "../messages"; import type { OperationInterface } from "../operation"; import type { OperationTraitsInterface } from "../operation-traits"; +import type { ServersInterface } from "../servers"; +import type { ServerInterface } from "../server"; export class Operation extends OperationTrait implements OperationInterface { + servers(): ServersInterface { + const servers: ServerInterface[] = []; + const serversData: any[] = []; + this.channels().forEach(channel => { + channel.servers().forEach(server => { + if (!serversData.includes(server.json())) { + serversData.push(server.json()); + servers.push(server); + } + }) + }); + return new Servers(servers); + } + + channels(): ChannelsInterface { + const channels: ChannelInterface[] = []; + Object.entries(this._meta.asyncapi.parsed.channels || {}).forEach(([channelAddress, channel]: [string, any]) => { + if (channel.subscribe === this._json || channel.publish === this._json) { + channels.push( + this.createModel(Channel, channel, { id: channelAddress, address: channelAddress, pointer: `/channels/${tilde(channelAddress)}` }) + ); + } + }); + return new Channels(channels); + } + messages(): MessagesInterface { let isOneOf = false; let messages = this._json.message || []; diff --git a/src/models/v2/server.ts b/src/models/v2/server.ts index bed21e88d..a6ad0fad8 100644 --- a/src/models/v2/server.ts +++ b/src/models/v2/server.ts @@ -1,4 +1,8 @@ import { BaseModel } from '../base'; +import { Channels } from './channels'; +import { Channel } from './channel'; +import { Messages } from './messages'; +import { Operations } from './operations'; import { SecurityScheme } from './security-scheme'; import { ServerVariables } from './server-variables'; import { ServerVariable } from './server-variable'; @@ -8,7 +12,15 @@ import { BindingsMixin } from './mixins/bindings'; import { DescriptionMixin } from './mixins/description'; import { ExtensionsMixin } from './mixins/extensions'; +import { tilde } from "../../utils"; + import type { ModelMetadata } from "../base"; +import type { ChannelsInterface } from '../channels'; +import type { ChannelInterface } from '../channel'; +import type { OperationsInterface } from '../operations'; +import type { OperationInterface } from '../operation'; +import type { MessagesInterface } from '../messages'; +import type { MessageInterface } from '../message'; import type { ServerInterface } from '../server'; import type { ServerVariablesInterface } from '../server-variables'; import type { SecuritySchemeInterface } from '../security-scheme'; @@ -41,6 +53,31 @@ export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, Ex return this._json.protocolVersion; } + channels(): ChannelsInterface { + const channels: ChannelInterface[] = []; + Object.entries(this._meta.asyncapi?.parsed.channels || {}).map(([channelAddress, channel]: [string, any]) => { + const allowedServers: string[] = channel.servers || []; + if (allowedServers.length === 0 || allowedServers.includes(this._meta.id)) { + channels.push(this.createModel(Channel, channel, { id: channelAddress, address: channelAddress, pointer: `/channels/${tilde(channelAddress)}` })); + } + }); + return new Channels(channels); + } + + operations(): OperationsInterface { + const operations: OperationInterface[] = []; + this.channels().forEach(channel => { + operations.push(...channel.operations().all()) + }); + return new Operations(operations); + } + + messages(): MessagesInterface { + const messages: MessageInterface[] = []; + this.operations().forEach(operation => messages.push(...operation.messages().all())); + return new Messages(messages); + } + variables(): ServerVariablesInterface { return new ServerVariables( Object.entries(this._json.variables || {}).map(([serverVariableName, serverVariable]) => { diff --git a/src/utils.ts b/src/utils.ts index 0a3db9522..f2ea335d2 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -99,4 +99,25 @@ export function mergePatch(origin: unknown, patch: unknown) { export function isObject(value: unknown): value is Record { return Boolean(value) && typeof value === 'object' && Array.isArray(value) === false; -} \ No newline at end of file +} + +export function tilde(str: string) { + return str.replace(/[~\/]{1}/g, (sub) => { + switch (sub) { + case '/': return '~1'; + case '~': return '~0'; + } + return sub; + }); +}; + +export function untilde(str: string) { + if (!str.includes('~')) return str; + return str.replace(/~[01]/g, (sub) => { + switch (sub) { + case '~1': return '/'; + case '~0': return '~'; + } + return sub; + }); +}; \ No newline at end of file diff --git a/test/models/asyncapi.spec.ts b/test/models/asyncapi.spec.ts new file mode 100644 index 000000000..1a7b410e4 --- /dev/null +++ b/test/models/asyncapi.spec.ts @@ -0,0 +1,19 @@ +import { AsyncAPIDocumentV2, newAsyncAPIDocument } from '../../src/models'; + +import { createDetailedAsyncAPI } from '../../src/utils'; + +describe('AsyncAPIDocument factory', function() { + it('should create a valid document from v2.0.0', function() { + const doc = { asyncapi: "2.0.0" }; + const detailed = createDetailedAsyncAPI(doc, doc); + const d = newAsyncAPIDocument(detailed) + expect(d.version()).toEqual(doc.asyncapi); + expect(d).toBeInstanceOf(AsyncAPIDocumentV2); + }); + + it('should fail trying to create a document from a non supported spec version', function() { + const doc = { asyncapi: "99.99.99" }; + const detailed = createDetailedAsyncAPI(doc, doc); + expect(() => newAsyncAPIDocument(detailed)).toThrow("Unsupported AsyncAPI version: 99.99.99"); + }); +}); diff --git a/test/models/v2/asyncapi.spec.ts b/test/models/v2/asyncapi.spec.ts index 37d1e1601..e8033f091 100644 --- a/test/models/v2/asyncapi.spec.ts +++ b/test/models/v2/asyncapi.spec.ts @@ -1,10 +1,12 @@ -import { - newAsyncAPIDocument, - AsyncAPIDocumentV2, - InfoV2, - ServersV2, -} from '../../../src/models'; -import { createDetailedAsyncAPI } from '../../../src/utils'; +import { AsyncAPIDocument } from '../../../src/models/v2/asyncapi'; +import { Channels } from '../../../src/models/v2/channels'; +import { Components } from '../../../src/models/v2/components'; +import { Info } from '../../../src/models/v2/info'; +import { Messages } from '../../../src/models/v2/messages'; +import { Operations } from '../../../src/models/v2/operations'; +import { Schemas } from '../../../src/models/v2/schemas'; +import { SecuritySchemes } from '../../../src/models/v2/security-schemes'; +import { Servers } from '../../../src/models/v2/servers'; import { assertExtensionsMixinInheritance, @@ -14,50 +16,149 @@ describe('AsyncAPIDocument model', function() { describe('.version()', function() { it('should return the value', function() { const doc = { asyncapi: "2.0.0" }; - const d = new AsyncAPIDocumentV2(doc); + const d = new AsyncAPIDocument(doc); expect(d.version()).toEqual(doc.asyncapi); }); it('should return undefined when there is no value', function() { const doc = { }; - const d = new AsyncAPIDocumentV2(doc); + const d = new AsyncAPIDocument(doc); expect(d.version()).toBeUndefined(); }); }); + describe('.hasDefaultContentType()', function() { + it('should return true when there is a value', function() { + const doc = { defaultContentType: "..." }; + const d = new AsyncAPIDocument(doc); + expect(d.hasDefaultContentType()).toEqual(true); + }); + + it('should return false when there is no value', function() { + const doc = {}; + const d = new AsyncAPIDocument(doc); + expect(d.hasDefaultContentType()).toEqual(false); + }); + }); + + describe('.defaultContentType()', function() { + it('should return the value', function() { + const doc = { defaultContentType: "..." }; + const d = new AsyncAPIDocument(doc); + expect(d.defaultContentType()).toEqual(doc.defaultContentType); + }); + + it('should return undefined when there is no value', function() { + const doc = {}; + const d = new AsyncAPIDocument(doc); + expect(d.defaultContentType()).toBeUndefined(); + }); + }); + describe('.info()', function() { it('should return an Info object', function() { const doc = { info: { name: "LeChuck" } }; - const d = new AsyncAPIDocumentV2(doc); - expect(d.info()).toBeInstanceOf(InfoV2); + const d = new AsyncAPIDocument(doc); + expect(d.info()).toBeInstanceOf(Info); }); }); - describe('.servers()', function(){ - it('should return an servers object', function(){ + describe('.servers()', function() { + it('should return a collection of servers', function() { const doc = { servers: { development: {} } }; - const d = new AsyncAPIDocumentV2(doc); - expect(d.servers()).toBeInstanceOf(ServersV2); + const d = new AsyncAPIDocument(doc); + expect(d.servers()).toBeInstanceOf(Servers); + expect(d.servers()).toHaveLength(1); + expect(d.servers().all()[0].id()).toEqual('development'); + }) + + it('should return a collection of servers even if servers are not defined', function() { + const doc = {}; + const d = new AsyncAPIDocument(doc); + expect(d.servers()).toBeInstanceOf(Servers); }) }) - describe('mixins inheritance', function() { - assertExtensionsMixinInheritance(AsyncAPIDocumentV2); - }); -}); + describe('.channels()', function() { + it('should return a collection of channels', function() { + const doc = { channels: { 'user/signup': {} } }; + const d = new AsyncAPIDocument(doc); + expect(d.channels()).toBeInstanceOf(Channels); + expect(d.channels()).toHaveLength(1); + expect(d.channels().all()[0].address()).toEqual('user/signup'); + }) -describe('AsyncAPIDocument factory', function() { - it('should create a valid document from v2.0.0', function() { - const doc = { asyncapi: "2.0.0" }; - const detailed = createDetailedAsyncAPI(doc, doc); - const d = newAsyncAPIDocument(detailed) - expect(d.version()).toEqual(doc.asyncapi); - expect(d).toBeInstanceOf(AsyncAPIDocumentV2); - }); + it('should return a collection of channels even if channels are not defined', function() { + const doc = {}; + const d = new AsyncAPIDocument(doc); + expect(d.channels()).toBeInstanceOf(Channels); + }) + }) - it('should fail trying to create a document from a non supported spec version', function() { - const doc = { asyncapi: "99.99.99" }; - const detailed = createDetailedAsyncAPI(doc, doc); - expect(() => newAsyncAPIDocument(detailed)).toThrow("Unsupported AsyncAPI version: 99.99.99"); + describe('.operations()', function() { + it('should return a collection of operations', function() { + const doc = { channels: { 'user/signup': { publish: {}, subscribe: {} }, 'user/logout': { publish: {} } } }; + const d = new AsyncAPIDocument(doc); + expect(d.operations()).toBeInstanceOf(Operations); + expect(d.operations()).toHaveLength(3); + }) + + it('should return a collection of operations even if operations are not defined', function() { + const doc = {}; + const d = new AsyncAPIDocument(doc); + expect(d.operations()).toBeInstanceOf(Operations); + }) + }) + + describe('.messages()', function() { + it('should return a collection of messages', function() { + const doc = { channels: { 'user/signup': { publish: { message: {} }, subscribe: { message: { oneOf: [{}, {}] } } }, 'user/logout': { publish: { message: {} } } } }; + const d = new AsyncAPIDocument(doc); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages()).toHaveLength(4); + }) + + it('should return a collection of messages even if messages are not defined', function() { + const doc = {}; + const d = new AsyncAPIDocument(doc); + expect(d.messages()).toBeInstanceOf(Messages); + }) + }) + + describe('.schemas()', function() { + it.todo('should return a collection of schemas') + }) + + describe('.securitySchemes()', function() { + it('should return a collection of securitySchemes', function() { + const doc = { components: { securitySchemes: { security1: {}, security2: {} } } }; + const d = new AsyncAPIDocument(doc); + expect(d.securitySchemes()).toBeInstanceOf(SecuritySchemes); + expect(d.securitySchemes()).toHaveLength(2); + }) + + it('should return a collection of securitySchemes even if securitySchemes are not defined', function() { + const doc = {}; + const d = new AsyncAPIDocument(doc); + expect(d.securitySchemes()).toBeInstanceOf(SecuritySchemes); + }) + }) + + describe('.components()', function() { + it('should return a components model', function() { + const doc = { components: {} }; + const d = new AsyncAPIDocument(doc); + expect(d.components()).toBeInstanceOf(Components); + }) + + it('should return a components model even if components are not defined', function() { + const doc = {}; + const d = new AsyncAPIDocument(doc); + expect(d.components()).toBeInstanceOf(Components); + }) + }) + + describe('mixins inheritance', function() { + assertExtensionsMixinInheritance(AsyncAPIDocument); }); }); diff --git a/test/models/v2/channel.spec.ts b/test/models/v2/channel.spec.ts index f3435a380..3e872663e 100644 --- a/test/models/v2/channel.spec.ts +++ b/test/models/v2/channel.spec.ts @@ -3,6 +3,8 @@ import { ChannelParameters } from '../../../src/models/v2/channel-parameters'; import { ChannelParameter } from '../../../src/models/v2/channel-parameter'; import { Operations } from '../../../src/models/v2/operations'; import { Operation } from '../../../src/models/v2/operation'; +import { Messages } from '../../../src/models/v2/messages'; +import { Message } from '../../../src/models/v2/message'; import { Servers } from '../../../src/models/v2/servers'; import { Server } from '../../../src/models/v2/server'; @@ -93,6 +95,35 @@ describe('Channel model', function() { }); }); + describe('.messages()', function() { + it('should return collection of messages - single message', function() { + const doc = { publish: { message: { messageId: '...' } } }; + const d = new Channel(doc); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(1); + expect(d.messages().all()[0]).toBeInstanceOf(Message); + expect(d.messages().all()[0].messageId()).toEqual(doc.publish.message.messageId); + }); + + it('should return collection of messages - oneOf message', function() { + const doc = { subscribe: { message: { oneOf: [{ messageId: '1' }, { messageId: '2' }] } } }; + const d = new Channel(doc); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(2); + expect(d.messages().all()[0]).toBeInstanceOf(Message); + expect(d.messages().all()[0].messageId()).toEqual(doc.subscribe.message.oneOf[0].messageId); + expect(d.messages().all()[1]).toBeInstanceOf(Message); + expect(d.messages().all()[1].messageId()).toEqual(doc.subscribe.message.oneOf[1].messageId); + }); + + it('should return collection of messages - single message and oneOf', function() { + const doc = { publish: { message: {} }, subscribe: { message: { oneOf: [{ messageId: '1' }, { messageId: '2' }] } } }; + const d = new Channel(doc); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(3); + }); + }); + describe('.parameters()', function() { it('should return collection of channel parameters', function() { const doc = { parameters: { parameter1: {}, parameter2: {} } }; diff --git a/test/models/v2/message.spec.ts b/test/models/v2/message.spec.ts index d697624cd..9c8667e3c 100644 --- a/test/models/v2/message.spec.ts +++ b/test/models/v2/message.spec.ts @@ -1,7 +1,13 @@ +import { Channels } from '../../../src/models/v2/channels'; +import { Channel } from '../../../src/models/v2/channel'; import { Message } from '../../../src/models/v2/message'; import { MessageTraits } from '../../../src/models/v2/message-traits'; import { MessageTrait } from '../../../src/models/v2/message-trait'; +import { Operations } from '../../../src/models/v2/operations'; +import { Operation } from '../../../src/models/v2/operation'; import { Schema } from '../../../src/models/v2/schema'; +import { Servers } from '../../../src/models/v2/servers'; +import { Server } from '../../../src/models/v2/server'; import { assertBindingsMixinInheritance, @@ -54,6 +60,101 @@ describe('Message model', function() { }); }); + describe('.servers()', function() { + it('should return collection of servers - available on all servers', function() { + const doc = {}; + const d = new Message(doc, { asyncapi: { parsed: { servers: { production: {}, development: {} }, channels: { 'user/signup': { publish: { message: doc } } } } } as any, pointer: '', id: 'message' }); + expect(d.servers()).toBeInstanceOf(Servers); + expect(d.servers().all()).toHaveLength(2); + expect(d.servers().all()[0]).toBeInstanceOf(Server); + expect(d.servers().all()[0].id()).toEqual('production'); + expect(d.servers().all()[1]).toBeInstanceOf(Server); + expect(d.servers().all()[1].id()).toEqual('development'); + }); + + it('should return collection of servers - available on selected servers', function() { + const doc = {}; + const d = new Message(doc, { asyncapi: { parsed: { servers: { production: {}, development: {} }, channels: { 'user/signup': { publish: { message: doc }, servers: ['production'] } } } } as any, pointer: '', id: 'message' }); + expect(d.servers()).toBeInstanceOf(Servers); + expect(d.servers().all()).toHaveLength(1); + expect(d.servers().all()[0]).toBeInstanceOf(Server); + expect(d.servers().all()[0].id()).toEqual('production'); + }); + + it('should return collection of servers - do not duplicate servers', function() { + const doc = {}; + const d = new Message(doc, { asyncapi: { parsed: { servers: { production: {}, development: {} }, channels: { 'user/signup': { publish: { message: doc }, subscribe: { message: doc }, servers: ['production'] } } } } as any, pointer: '', id: 'message' }); + expect(d.servers()).toBeInstanceOf(Servers); + expect(d.servers().all()).toHaveLength(1); + expect(d.servers().all()[0]).toBeInstanceOf(Server); + expect(d.servers().all()[0].id()).toEqual('production'); + }); + }); + + describe('.channels()', function() { + it('should return collection of channels - single channel', function() { + const doc = {}; + const d = new Message(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: doc } } } } } as any, pointer: '', id: 'message' }); + expect(d.channels()).toBeInstanceOf(Channels); + expect(d.channels().all()).toHaveLength(1); + expect(d.channels().all()[0]).toBeInstanceOf(Channel); + expect(d.channels().all()[0].address()).toEqual('user/signup'); + }); + + it('should return collection of channels - multiple channels', function() { + const doc = {}; + const d = new Message(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: doc } }, 'user/logout': { subscribe: { message: doc } } } } } as any, pointer: '', id: 'message' }); + expect(d.channels()).toBeInstanceOf(Channels); + expect(d.channels().all()).toHaveLength(2); + expect(d.channels().all()[0]).toBeInstanceOf(Channel); + expect(d.channels().all()[0].address()).toEqual('user/signup'); + expect(d.channels().all()[1]).toBeInstanceOf(Channel); + expect(d.channels().all()[1].address()).toEqual('user/logout'); + }); + + it('should return collection of channels - do not duplicate channels', function() { + const doc = {}; + const d = new Message(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: doc }, subscribe: { message: doc } } } } } as any, pointer: '', id: 'message' }); + expect(d.channels()).toBeInstanceOf(Channels); + expect(d.channels().all()).toHaveLength(1); + expect(d.channels().all()[0]).toBeInstanceOf(Channel); + expect(d.channels().all()[0].address()).toEqual('user/signup'); + }); + }); + + describe('.operations()', function() { + it('should return collection of operations - single operation', function() { + const doc = {}; + const d = new Message(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: doc } } } } } as any, pointer: '', id: 'message' }); + expect(d.operations()).toBeInstanceOf(Operations); + expect(d.operations().all()).toHaveLength(1); + expect(d.operations().all()[0]).toBeInstanceOf(Operation); + expect(d.operations().all()[0].action()).toEqual('publish'); + }); + + it('should return collection of operations - multiple operations', function() { + const doc = {}; + const d = new Message(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: doc }, subscribe: { message: doc } } } } } as any, pointer: '', id: 'message' }); + expect(d.operations()).toBeInstanceOf(Operations); + expect(d.operations().all()).toHaveLength(2); + expect(d.operations().all()[0]).toBeInstanceOf(Operation); + expect(d.operations().all()[0].action()).toEqual('subscribe'); + expect(d.operations().all()[1]).toBeInstanceOf(Operation); + expect(d.operations().all()[1].action()).toEqual('publish'); + }); + + it('should return collection of operations - multiple operations on different channels', function() { + const doc = {}; + const d = new Message(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: doc } }, 'user/logout': { subscribe: { message: doc } } } } } as any, pointer: '', id: 'message' }); + expect(d.operations()).toBeInstanceOf(Operations); + expect(d.operations().all()).toHaveLength(2); + expect(d.operations().all()[0]).toBeInstanceOf(Operation); + expect(d.operations().all()[0].action()).toEqual('publish'); + expect(d.operations().all()[1]).toBeInstanceOf(Operation); + expect(d.operations().all()[1].action()).toEqual('subscribe'); + }); + }); + describe('.traits()', function() { it('should return collection of traits', function() { const doc = { traits: [ { messageId: '...' } ] }; diff --git a/test/models/v2/operation.spec.ts b/test/models/v2/operation.spec.ts index 4ea92c60f..128bd9203 100644 --- a/test/models/v2/operation.spec.ts +++ b/test/models/v2/operation.spec.ts @@ -1,8 +1,12 @@ +import { Channels } from '../../../src/models/v2/channels'; +import { Channel } from '../../../src/models/v2/channel'; import { Operation } from '../../../src/models/v2/operation'; import { OperationTraits } from '../../../src/models/v2/operation-traits'; import { OperationTrait } from '../../../src/models/v2/operation-trait'; import { Messages } from '../../../src/models/v2/messages'; import { Message } from '../../../src/models/v2/message'; +import { Servers } from '../../../src/models/v2/servers'; +import { Server } from '../../../src/models/v2/server'; import { assertBindingsMixinInheritance, @@ -27,6 +31,70 @@ describe('Operation model', function() { }); }); + describe('.servers()', function() { + it('should return collection of servers - channel available on all servers', function() { + const doc = {}; + const d = new Operation(doc, { asyncapi: { parsed: { servers: { production: {}, development: {} }, channels: { 'user/signup': { publish: doc } } } } as any, pointer: '', id: 'operation', action: 'publish' }); + expect(d.servers()).toBeInstanceOf(Servers); + expect(d.servers().all()).toHaveLength(2); + expect(d.servers().all()[0]).toBeInstanceOf(Server); + expect(d.servers().all()[0].id()).toEqual('production'); + expect(d.servers().all()[1]).toBeInstanceOf(Server); + expect(d.servers().all()[1].id()).toEqual('development'); + }); + + it('should return collection of servers - channel available on selected servers', function() { + const doc = {}; + const d = new Operation(doc, { asyncapi: { parsed: { servers: { production: {}, development: {} }, channels: { 'user/signup': { publish: doc, servers: ['production'] } } } } as any, pointer: '', id: 'operation', action: 'publish' }); + expect(d.servers()).toBeInstanceOf(Servers); + expect(d.servers().all()).toHaveLength(1); + expect(d.servers().all()[0]).toBeInstanceOf(Server); + expect(d.servers().all()[0].id()).toEqual('production'); + }); + + it('should return collection of servers - do not duplicate servers', function() { + const doc = {}; + const d = new Operation(doc, { asyncapi: { parsed: { servers: { production: {}, development: {} }, channels: { 'user/signup': { publish: doc, servers: ['production'] }, 'user/logout': { subscribe: doc } } } } as any, pointer: '', id: 'operation', action: 'publish' }); + expect(d.servers()).toBeInstanceOf(Servers); + expect(d.servers().all()).toHaveLength(2); + expect(d.servers().all()[0]).toBeInstanceOf(Server); + expect(d.servers().all()[0].id()).toEqual('production'); + expect(d.servers().all()[1]).toBeInstanceOf(Server); + expect(d.servers().all()[1].id()).toEqual('development'); + }); + }); + + describe('.channels()', function() { + it('should return collection of channels - single channel', function() { + const doc = {}; + const d = new Operation(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: doc } } } } as any, pointer: '', id: 'operation', action: 'publish' }); + expect(d.channels()).toBeInstanceOf(Channels); + expect(d.channels().all()).toHaveLength(1); + expect(d.channels().all()[0]).toBeInstanceOf(Channel); + expect(d.channels().all()[0].address()).toEqual('user/signup'); + }); + + it('should return collection of channels - multiple channels', function() { + const doc = {}; + const d = new Operation(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: doc }, 'user/logout': { subscribe: doc } } } } as any, pointer: '', id: 'operation', action: 'publish' }); + expect(d.channels()).toBeInstanceOf(Channels); + expect(d.channels().all()).toHaveLength(2); + expect(d.channels().all()[0]).toBeInstanceOf(Channel); + expect(d.channels().all()[0].address()).toEqual('user/signup'); + expect(d.channels().all()[1]).toBeInstanceOf(Channel); + expect(d.channels().all()[1].address()).toEqual('user/logout'); + }); + + it('should return collection of channels - do not duplicate channels', function() { + const doc = {}; + const d = new Operation(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: doc, subscribe: doc } } } } as any, pointer: '', id: 'operation', action: 'publish' }); + expect(d.channels()).toBeInstanceOf(Channels); + expect(d.channels().all()).toHaveLength(1); + expect(d.channels().all()[0]).toBeInstanceOf(Channel); + expect(d.channels().all()[0].address()).toEqual('user/signup'); + }); + }); + describe('.messages()', function() { it('should return collection of messages - single message', function() { const doc = { message: { messageId: '...' } }; diff --git a/test/models/v2/server.spec.ts b/test/models/v2/server.spec.ts index 861e6df3f..68c3681a4 100644 --- a/test/models/v2/server.spec.ts +++ b/test/models/v2/server.spec.ts @@ -1,3 +1,9 @@ +import { Channels } from '../../../src/models/v2/channels'; +import { Channel } from '../../../src/models/v2/channel'; +import { Messages } from '../../../src/models/v2/messages'; +import { Message } from '../../../src/models/v2/message'; +import { Operations } from '../../../src/models/v2/operations'; +import { Operation } from '../../../src/models/v2/operation'; import { Server } from '../../../src/models/v2/server'; import { ServerVariables } from '../../../src/models/v2/server-variables'; import { SecurityScheme } from '../../../src/models/v2/security-scheme'; @@ -63,6 +69,111 @@ describe('Server Model', function () { }); }); + describe('.channels()', function() { + it('should return collection of channels - single channel', function() { + const doc = {}; + const d = new Server(doc, { asyncapi: { parsed: { channels: { 'user/signup': {} } } } as any, pointer: '', id: 'production' }); + expect(d.channels()).toBeInstanceOf(Channels); + expect(d.channels().all()).toHaveLength(1); + expect(d.channels().all()[0]).toBeInstanceOf(Channel); + expect(d.channels().all()[0].address()).toEqual('user/signup'); + }); + + it('should return collection of channels - multiple channels', function() { + const doc = {}; + const d = new Server(doc, { asyncapi: { parsed: { channels: { 'user/signup': {}, 'user/logout': {} } } } as any, pointer: '', id: 'production' }); + expect(d.channels()).toBeInstanceOf(Channels); + expect(d.channels().all()).toHaveLength(2); + expect(d.channels().all()[0]).toBeInstanceOf(Channel); + expect(d.channels().all()[0].address()).toEqual('user/signup'); + expect(d.channels().all()[1]).toBeInstanceOf(Channel); + expect(d.channels().all()[1].address()).toEqual('user/logout'); + }); + + it('should return collection of channels - server available only in particular channel', function() { + const doc = {}; + const d = new Server(doc, { asyncapi: { parsed: { channels: { 'user/signup': { servers: ['production'] }, 'user/logout': { servers: ['development'] }, 'user/create': {} } } } as any, pointer: '', id: 'production', }); + expect(d.channels()).toBeInstanceOf(Channels); + expect(d.channels().all()).toHaveLength(2); + expect(d.channels().all()[0]).toBeInstanceOf(Channel); + expect(d.channels().all()[0].address()).toEqual('user/signup'); + expect(d.channels().all()[1]).toBeInstanceOf(Channel); + expect(d.channels().all()[1].address()).toEqual('user/create'); + }); + }); + + describe('.operations()', function() { + it('should return collection of operations - single channel', function() { + const doc = {}; + const d = new Server(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { operationId: '1' } } } } } as any, pointer: '', id: 'production' }); + expect(d.operations()).toBeInstanceOf(Operations); + expect(d.operations().all()).toHaveLength(1); + expect(d.operations().all()[0]).toBeInstanceOf(Operation); + expect(d.operations().all()[0].operationId()).toEqual('1'); + }); + + it('should return collection of channels - multiple channels', function() { + const doc = {}; + const d = new Server(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { operationId: '1' } }, 'user/logout': { subscribe: { operationId: '2' } } } } } as any, pointer: '', id: 'production' }); + expect(d.operations()).toBeInstanceOf(Operations); + expect(d.operations().all()).toHaveLength(2); + expect(d.operations().all()[0]).toBeInstanceOf(Operation); + expect(d.operations().all()[0].operationId()).toEqual('1'); + expect(d.operations().all()[1]).toBeInstanceOf(Operation); + expect(d.operations().all()[1].operationId()).toEqual('2'); + }); + + it('should return collection of channels - server available only in particular channel', function() { + const doc = {}; + const d = new Server(doc, { asyncapi: { parsed: { channels: { 'user/signup': { servers: ['production'], publish: { operationId: '1' } }, 'user/logout': { servers: ['development'] }, 'user/create': { subscribe: { operationId: '3' }, publish: { operationId: '2' } } } } } as any, pointer: '', id: 'production', }); + expect(d.operations()).toBeInstanceOf(Operations); + expect(d.operations().all()).toHaveLength(3); + expect(d.operations().all()[0]).toBeInstanceOf(Operation); + expect(d.operations().all()[0].operationId()).toEqual('1'); + expect(d.operations().all()[1]).toBeInstanceOf(Operation); + expect(d.operations().all()[1].operationId()).toEqual('2'); + expect(d.operations().all()[2]).toBeInstanceOf(Operation); + expect(d.operations().all()[2].operationId()).toEqual('3'); + }); + }); + + describe('.messages()', function() { + it('should return collection of messages - single channel', function() { + const doc = {}; + const d = new Server(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: { messageId: '1' } } } } } } as any, pointer: '', id: 'production' }); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(1); + expect(d.messages().all()[0]).toBeInstanceOf(Message); + expect(d.messages().all()[0].messageId()).toEqual('1'); + }); + + it('should return collection of messages - multiple channels', function() { + const doc = {}; + const d = new Server(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: { messageId: '1' } } }, 'user/logout': { subscribe: { message: { oneOf: [{ messageId: '2' }, { messageId: '3' }] } } } } } } as any, pointer: '', id: 'production' }); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(3); + expect(d.messages().all()[0]).toBeInstanceOf(Message); + expect(d.messages().all()[0].messageId()).toEqual('1'); + expect(d.messages().all()[1]).toBeInstanceOf(Message); + expect(d.messages().all()[1].messageId()).toEqual('2'); + expect(d.messages().all()[2]).toBeInstanceOf(Message); + expect(d.messages().all()[2].messageId()).toEqual('3'); + }); + + it('should return collection of messages - server available only in particular channel', function() { + const doc = {}; + const d = new Server(doc, { asyncapi: { parsed: { channels: { 'user/signup': { servers: ['production'], publish: { message: { messageId: '1' } } }, 'user/logout': { servers: ['development'] }, 'user/create': { subscribe: { message: { messageId: '3' } }, publish: { message: { messageId: '2' } } } } } } as any, pointer: '', id: 'production', }); + expect(d.messages()).toBeInstanceOf(Messages); + expect(d.messages().all()).toHaveLength(3); + expect(d.messages().all()[0]).toBeInstanceOf(Message); + expect(d.messages().all()[0].messageId()).toEqual('1'); + expect(d.messages().all()[1]).toBeInstanceOf(Message); + expect(d.messages().all()[1].messageId()).toEqual('2'); + expect(d.messages().all()[2]).toBeInstanceOf(Message); + expect(d.messages().all()[2].messageId()).toEqual('3'); + }); + }); + describe('.variables()', function () { it('should return ServerVariables object', function () { expect(docItem.variables()).toBeInstanceOf(ServerVariables); @@ -93,4 +204,4 @@ describe('Server Model', function () { assertDescriptionMixinInheritance(Server); assertExtensionsMixinInheritance(Server); }); -}) \ No newline at end of file +}) From e4fe565090ae2ecd5c35a401639faa66d828fe0b Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Wed, 27 Jul 2022 16:15:35 +0200 Subject: [PATCH 024/126] refactor: add AsyncAPI Schema Parser (#573) --- package-lock.json | 269 +++++------------- package.json | 3 + src/models/schema.ts | 2 +- src/schema-parser/asyncapi-schema-parser.ts | 81 +++++- src/schema-parser/index.ts | 6 +- src/types.ts | 2 + .../asyncapi-schema-parser.spec.ts | 88 ++++++ 7 files changed, 244 insertions(+), 207 deletions(-) create mode 100644 test/schema-parser/asyncapi-schema-parser.spec.ts diff --git a/package-lock.json b/package-lock.json index 5d8c96516..191bf1b26 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,10 +9,12 @@ "version": "2.0.0", "license": "Apache-2.0", "dependencies": { + "@asyncapi/specs": "^3.1.0", "@stoplight/spectral-core": "^1.10.1", "@stoplight/spectral-functions": "^1.5.1", "@stoplight/spectral-parsers": "^1.0.1", "@stoplight/spectral-rulesets": "^1.4.3", + "ajv": "^8.11.0", "jsonpath-plus": "^6.0.1", "lodash": "^4.17.21" }, @@ -24,6 +26,7 @@ "@semantic-release/release-notes-generator": "^9.0.1", "@types/jest": "^27.4.1", "@types/js-yaml": "^4.0.5", + "@types/json-schema": "^7.0.11", "@types/lodash": "^4.14.179", "conventional-changelog-conventionalcommits": "^4.2.3", "cross-env": "^7.0.3", @@ -52,9 +55,9 @@ } }, "node_modules/@asyncapi/specs": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-2.13.1.tgz", - "integrity": "sha512-Hl44ml5/yDtBnOlk0A7RWl+Xy8JcWRni/2QVT1tkmQmwg6ylW+nfIXn2Zzi9Hww+oCkgyrqMXe45rlcJVhKlDQ==" + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-3.1.0.tgz", + "integrity": "sha512-6xFvzDd54+M9g6EM259Y4a4iiFb2VzPr6eoxA/ttwTu7NRxaGScocXskXtuz53ZWx9BWZWuzwDYKfM3KBkDfiQ==" }, "node_modules/@babel/code-frame": { "version": "7.16.7", @@ -2072,21 +2075,6 @@ "ajv": ">=8" } }, - "node_modules/@stoplight/spectral-core/node_modules/ajv": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz", - "integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, "node_modules/@stoplight/spectral-core/node_modules/ajv-errors": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", @@ -2095,11 +2083,6 @@ "ajv": "^8.0.1" } }, - "node_modules/@stoplight/spectral-core/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, "node_modules/@stoplight/spectral-formats": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.1.0.tgz", @@ -2151,21 +2134,6 @@ "ajv": ">=8" } }, - "node_modules/@stoplight/spectral-functions/node_modules/ajv": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz", - "integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, "node_modules/@stoplight/spectral-functions/node_modules/ajv-draft-04": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", @@ -2187,11 +2155,6 @@ "ajv": "^8.0.1" } }, - "node_modules/@stoplight/spectral-functions/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - }, "node_modules/@stoplight/spectral-parsers": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@stoplight/spectral-parsers/-/spectral-parsers-1.0.1.tgz", @@ -2260,6 +2223,11 @@ "node": ">=12" } }, + "node_modules/@stoplight/spectral-rulesets/node_modules/@asyncapi/specs": { + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-2.14.0.tgz", + "integrity": "sha512-hHsYF6XsYNIKb1P2rXaooF4H+uKKQ4b/Ljxrk3rZ3riEDiSxMshMEfb1fUlw9Yj4V4OmJhjXwkNvw8W59AXv1A==" + }, "node_modules/@stoplight/spectral-rulesets/node_modules/@stoplight/better-ajv-errors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.1.tgz", @@ -2275,21 +2243,6 @@ "ajv": ">=8" } }, - "node_modules/@stoplight/spectral-rulesets/node_modules/ajv": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz", - "integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, "node_modules/@stoplight/spectral-rulesets/node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", @@ -2467,9 +2420,9 @@ "dev": true }, "node_modules/@types/json-schema": { - "version": "7.0.9", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz", - "integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==" + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" }, "node_modules/@types/lodash": { "version": "4.14.179", @@ -2637,14 +2590,13 @@ } }, "node_modules/ajv": { - "version": "6.12.3", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.3.tgz", - "integrity": "sha512-4K0cK3L1hsqk9xIb2z9vs/XU+PGJZ9PNpJRDS9YLzmNdX6jmVPfamLvTJr0aDAusnHyCHO6MjzlkAsgtqp9teA==", - "dev": true, + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", + "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", "dependencies": { "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", "uri-js": "^4.2.2" }, "funding": { @@ -2668,22 +2620,7 @@ } } }, - "node_modules/ajv-formats/node_modules/ajv": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz", - "integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "node_modules/ajv/node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" @@ -4231,6 +4168,22 @@ "@babel/highlight": "^7.10.4" } }, + "node_modules/eslint/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, "node_modules/eslint/node_modules/chalk": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", @@ -14406,28 +14359,6 @@ "node": ">=10.0.0" } }, - "node_modules/table/node_modules/ajv": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.5.0.tgz", - "integrity": "sha512-Y2l399Tt1AguU3BPRP9Fn4eN+Or+StUGWCUpbnFyXSo8NZ9S4uj+AG2pjs5apK+ZMOwYOz1+a+VKvKH7CudXgQ==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/table/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, "node_modules/temp-dir": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", @@ -15201,9 +15132,9 @@ } }, "@asyncapi/specs": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-2.13.1.tgz", - "integrity": "sha512-Hl44ml5/yDtBnOlk0A7RWl+Xy8JcWRni/2QVT1tkmQmwg6ylW+nfIXn2Zzi9Hww+oCkgyrqMXe45rlcJVhKlDQ==" + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-3.1.0.tgz", + "integrity": "sha512-6xFvzDd54+M9g6EM259Y4a4iiFb2VzPr6eoxA/ttwTu7NRxaGScocXskXtuz53ZWx9BWZWuzwDYKfM3KBkDfiQ==" }, "@babel/code-frame": { "version": "7.16.7", @@ -16755,27 +16686,11 @@ "leven": "^3.1.0" } }, - "ajv": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz", - "integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, "ajv-errors": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", "requires": {} - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" } } }, @@ -16818,17 +16733,6 @@ "leven": "^3.1.0" } }, - "ajv": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz", - "integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, "ajv-draft-04": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", @@ -16840,11 +16744,6 @@ "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", "requires": {} - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" } } }, @@ -16906,6 +16805,11 @@ "tslib": "^2.3.0" }, "dependencies": { + "@asyncapi/specs": { + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-2.14.0.tgz", + "integrity": "sha512-hHsYF6XsYNIKb1P2rXaooF4H+uKKQ4b/Ljxrk3rZ3riEDiSxMshMEfb1fUlw9Yj4V4OmJhjXwkNvw8W59AXv1A==" + }, "@stoplight/better-ajv-errors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.1.tgz", @@ -16915,17 +16819,6 @@ "leven": "^3.1.0" } }, - "ajv": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz", - "integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, "json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", @@ -17093,9 +16986,9 @@ "dev": true }, "@types/json-schema": { - "version": "7.0.9", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz", - "integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==" + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" }, "@types/lodash": { "version": "4.14.179", @@ -17238,15 +17131,21 @@ } }, "ajv": { - "version": "6.12.3", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.3.tgz", - "integrity": "sha512-4K0cK3L1hsqk9xIb2z9vs/XU+PGJZ9PNpJRDS9YLzmNdX6jmVPfamLvTJr0aDAusnHyCHO6MjzlkAsgtqp9teA==", - "dev": true, + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", + "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", "requires": { "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", "uri-js": "^4.2.2" + }, + "dependencies": { + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + } } }, "ajv-formats": { @@ -17255,24 +17154,6 @@ "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", "requires": { "ajv": "^8.0.0" - }, - "dependencies": { - "ajv": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz", - "integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==", - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" - } } }, "ansi-escapes": { @@ -18416,6 +18297,18 @@ "@babel/highlight": "^7.10.4" } }, + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, "chalk": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", @@ -26218,26 +26111,6 @@ "slice-ansi": "^4.0.0", "string-width": "^4.2.0", "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ajv": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.5.0.tgz", - "integrity": "sha512-Y2l399Tt1AguU3BPRP9Fn4eN+Or+StUGWCUpbnFyXSo8NZ9S4uj+AG2pjs5apK+ZMOwYOz1+a+VKvKH7CudXgQ==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - } } }, "temp-dir": { diff --git a/package.json b/package.json index 47f171034..af103b413 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "@semantic-release/release-notes-generator": "^9.0.1", "@types/jest": "^27.4.1", "@types/js-yaml": "^4.0.5", + "@types/json-schema": "^7.0.11", "@types/lodash": "^4.14.179", "conventional-changelog-conventionalcommits": "^4.2.3", "cross-env": "^7.0.3", @@ -48,10 +49,12 @@ "typescript": "^4.6.2" }, "dependencies": { + "@asyncapi/specs": "^3.1.0", "@stoplight/spectral-core": "^1.10.1", "@stoplight/spectral-functions": "^1.5.1", "@stoplight/spectral-parsers": "^1.0.1", "@stoplight/spectral-rulesets": "^1.4.3", + "ajv": "^8.11.0", "jsonpath-plus": "^6.0.1", "lodash": "^4.17.21" }, diff --git a/src/models/schema.ts b/src/models/schema.ts index ec48a7788..81ec0008a 100644 --- a/src/models/schema.ts +++ b/src/models/schema.ts @@ -53,4 +53,4 @@ export interface SchemaInterface extends BaseModel, ExtensionsMixinInterface, Ex type(): string | Array | undefined; uniqueItems(): boolean | undefined; writeOnly(): boolean | undefined; -} +} \ No newline at end of file diff --git a/src/schema-parser/asyncapi-schema-parser.ts b/src/schema-parser/asyncapi-schema-parser.ts index a75ef58a5..5b6f64fa3 100644 --- a/src/schema-parser/asyncapi-schema-parser.ts +++ b/src/schema-parser/asyncapi-schema-parser.ts @@ -1,4 +1,17 @@ -import { SchemaParser } from "../schema-parser"; +import { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from "../schema-parser"; +import Ajv, { ErrorObject, ValidateFunction } from "ajv"; +import type { AsyncAPISchema, SchemaValidateResult } from '../types'; +// @ts-ignore +import specs from '@asyncapi/specs'; + +const ajv = new Ajv({ + allErrors: true, + strict: false, + logger: false, +}); + +// Only versions compatible with JSON Schema Draf-07 are supported. +const specVersions = Object.keys(specs).filter((version: string) => !['1.0.0', '1.1.0', '1.2.0', '2.0.0-rc1', '2.0.0-rc2'].includes(version)); export function AsyncAPISchemaParser(): SchemaParser { return { @@ -8,12 +21,21 @@ export function AsyncAPISchemaParser(): SchemaParser { } } -function validate() { +async function validate(input: ValidateSchemaInput): Promise { + const version = input.asyncapi.semver.version + const validator = getSchemaValidator(version); -} + let result: SchemaValidateResult[] = [] + const valid = validator(input.data); + if (!valid && validator.errors) { + result = ajvToSpectralResult([...validator.errors], input.path); + } -function parse() { + return result; +} +async function parse(input: ParseSchemaInput): Promise { + return input.data as AsyncAPISchema; } function getMimeTypes() { @@ -22,7 +44,8 @@ function getMimeTypes() { 'application/schema+json;version=draft-07', 'application/schema+yaml;version=draft-07', ]; - ['2.0.0', '2.1.0', '2.2.0', '2.3.0'].forEach(version => { + + specVersions.forEach((version: string) => { mimeTypes.push( `application/vnd.aai.asyncapi;version=${version}`, `application/vnd.aai.asyncapi+json;version=${version}`, @@ -31,3 +54,51 @@ function getMimeTypes() { }); return mimeTypes; } + +function ajvToSpectralResult(errors: ErrorObject[], parentPath: Array): SchemaValidateResult[] { + if (parentPath === undefined) { + parentPath = []; + } + + return errors.map(error => { + const errorPath = error.instancePath.replace(/^\//, '').split('/'); + + return { + message: error.message, + path: parentPath.concat(errorPath), + } as SchemaValidateResult; + }); +} + +function getSchemaValidator(version: string): ValidateFunction { + let validator = ajv.getSchema(version); + if (!validator) { + const schema = preparePayloadSchema(specs[version], version); + + ajv.addSchema(schema, version); + validator = ajv.getSchema(version); + } + + return validator as ValidateFunction; +} + +/** + * To validate the schema of the payload we just need a small portion of official AsyncAPI spec JSON Schema, the Schema Object in particular. The definition of Schema Object must be + * included in the returned JSON Schema. + */ +function preparePayloadSchema(asyncapiSchema: AsyncAPISchema, version: string): AsyncAPISchema { + const payloadSchema = `http://asyncapi.com/definitions/${version}/schema.json`; + const definitions = asyncapiSchema.definitions; + if (definitions === undefined) { + throw new Error("AsyncAPI schema must contain definitions"); + } + + // Remove the meta schemas because they are already present within Ajv, and it's not possible to add duplicated schemas. + delete definitions['http://json-schema.org/draft-07/schema']; + delete definitions['http://json-schema.org/draft-04/schema']; + + return { + $ref: payloadSchema, + definitions + }; +} diff --git a/src/schema-parser/index.ts b/src/schema-parser/index.ts index 3966782fe..89bf2ade6 100644 --- a/src/schema-parser/index.ts +++ b/src/schema-parser/index.ts @@ -1,5 +1,5 @@ import type { Parser } from '../parser'; -import type { DetailedAsyncAPI, SchemaValidateResult } from '../types'; +import type { AsyncAPISchema, DetailedAsyncAPI, SchemaValidateResult } from '../types'; export interface ValidateSchemaInput { readonly asyncapi: DetailedAsyncAPI; @@ -21,11 +21,11 @@ export interface ParseSchemaInput { export interface SchemaParser { validate: (input: ValidateSchemaInput) => void | SchemaValidateResult[] | Promise; - parse: (input: ParseSchemaInput) => unknown | Promise; + parse: (input: ParseSchemaInput) => AsyncAPISchema | Promise; getMimeTypes: () => Array; } -export async function validateSchema(parser: Parser, input: ParseSchemaInput) { +export async function validateSchema(parser: Parser, input: ValidateSchemaInput) { const schemaParser = parser.parserRegistry.get(input.schemaFormat); if (schemaParser === undefined) { // throw appropriate error diff --git a/src/types.ts b/src/types.ts index 94f03e353..954b4b5ad 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,4 +1,5 @@ import type { ISpectralDiagnostic, IFunctionResult } from '@stoplight/spectral-core'; +import type { JSONSchema7 } from "json-schema" export type MaybeAsyncAPI = { asyncapi: string } & Record; export interface AsyncAPISemver { @@ -17,3 +18,4 @@ export interface DetailedAsyncAPI { export type Diagnostic = ISpectralDiagnostic; export type SchemaValidateResult = IFunctionResult; +export type AsyncAPISchema = JSONSchema7; diff --git a/test/schema-parser/asyncapi-schema-parser.spec.ts b/test/schema-parser/asyncapi-schema-parser.spec.ts new file mode 100644 index 000000000..51af7b933 --- /dev/null +++ b/test/schema-parser/asyncapi-schema-parser.spec.ts @@ -0,0 +1,88 @@ +import { ParseSchemaInput, ValidateSchemaInput } from '../../src/schema-parser/index'; +import { AsyncAPISchemaParser } from '../../src/schema-parser/asyncapi-schema-parser'; +import { SchemaValidateResult } from '../../src/types'; + +describe('AsyncAPISchemaParser', function () { + + const validSchema = { + asyncapi: { + semver: { + version: "2.4.0", + } + }, + data: { + type: "object", + required: [ + "name" + ], + properties: { + name: { + type: "string" + }, + address: { + type: "string" + }, + } + }, + }; + + const parser = AsyncAPISchemaParser(); + + it('should return Mime Types', async function () { + expect(parser.getMimeTypes()).not.toEqual([]); + }); + + it('should parse valid AsyncAPI Schema', async function () { + const schema = >validSchema; + const parsed = await parser.parse(schema); + expect(parsed).toEqual(schema.data); + }); + + it('should validate valid AsyncAPI Schema', async function () { + const schema = >validSchema; + const result = await parser.validate(schema); + + expect(result).toHaveLength(0); + }); + + it('should validate invalid AsyncAPI Schema with invalid schema', async function () { + const schema = >{ + asyncapi: { + semver: { + version: "2.4.0", + } + }, + path: ["components", "schemas", "schema1", "payload"], + data: { + oneOf: "this should be an array", + properties: { + name: { + if: "this should be an if" + } + } + } + }; + + const result = await parser.validate(schema); + const expectedResult: SchemaValidateResult[] = [ + { + message: 'must be object,boolean', + path: ['components', 'schemas', 'schema1', 'payload', 'properties', 'name', 'if'] + }, + { + message: 'must be array', + path: ['components', 'schemas', 'schema1', 'payload', 'oneOf'] + }, + { + message: 'must be array', + path: ['components', 'schemas', 'schema1', 'payload', 'oneOf'] + }, + { + message: 'must be object,boolean', + path: ['components', 'schemas', 'schema1', 'payload', 'properties', 'name', 'if'] + } + ]; + + expect(result).toEqual(expectedResult); + }); +}); From 223967dfc195687b2189c0cfb21cc7529d2ef849 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Thu, 25 Aug 2022 11:49:06 +0200 Subject: [PATCH 025/126] refactor: fix AsyncAPI Schema Parser error path (#580) --- src/schema-parser/asyncapi-schema-parser.ts | 12 +++--------- test/schema-parser/asyncapi-schema-parser.spec.ts | 8 ++++---- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/src/schema-parser/asyncapi-schema-parser.ts b/src/schema-parser/asyncapi-schema-parser.ts index 5b6f64fa3..f6d1a00cf 100644 --- a/src/schema-parser/asyncapi-schema-parser.ts +++ b/src/schema-parser/asyncapi-schema-parser.ts @@ -28,7 +28,7 @@ async function validate(input: ValidateSchemaInput): Promise): SchemaValidateResult[] { - if (parentPath === undefined) { - parentPath = []; - } - +function ajvToSpectralResult(errors: ErrorObject[]): SchemaValidateResult[] { return errors.map(error => { - const errorPath = error.instancePath.replace(/^\//, '').split('/'); - return { message: error.message, - path: parentPath.concat(errorPath), + path: error.instancePath.replace(/^\//, '').split('/'), } as SchemaValidateResult; }); } diff --git a/test/schema-parser/asyncapi-schema-parser.spec.ts b/test/schema-parser/asyncapi-schema-parser.spec.ts index 51af7b933..a76d99544 100644 --- a/test/schema-parser/asyncapi-schema-parser.spec.ts +++ b/test/schema-parser/asyncapi-schema-parser.spec.ts @@ -67,19 +67,19 @@ describe('AsyncAPISchemaParser', function () { const expectedResult: SchemaValidateResult[] = [ { message: 'must be object,boolean', - path: ['components', 'schemas', 'schema1', 'payload', 'properties', 'name', 'if'] + path: ['properties', 'name', 'if'] }, { message: 'must be array', - path: ['components', 'schemas', 'schema1', 'payload', 'oneOf'] + path: ['oneOf'] }, { message: 'must be array', - path: ['components', 'schemas', 'schema1', 'payload', 'oneOf'] + path: ['oneOf'] }, { message: 'must be object,boolean', - path: ['components', 'schemas', 'schema1', 'payload', 'properties', 'name', 'if'] + path: ['properties', 'name', 'if'] } ]; From af44625a56f097ff12af55d0b6cafc4d579f214c Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Fri, 26 Aug 2022 09:43:37 +0200 Subject: [PATCH 026/126] refactor: add RAML Schema Parser (#577) --- package-lock.json | 196 +++++++++++++++--- package.json | 5 +- src/schema-parser/raml-schema-parser.ts | 65 ++++++ test/schema-parser/raml/complex.json | 90 ++++++++ test/schema-parser/raml/invalid.json | 13 ++ .../raml/raml-schema-parser.spec.ts | 79 +++++++ test/schema-parser/raml/simple.json | 21 ++ 7 files changed, 439 insertions(+), 30 deletions(-) create mode 100644 src/schema-parser/raml-schema-parser.ts create mode 100644 test/schema-parser/raml/complex.json create mode 100644 test/schema-parser/raml/invalid.json create mode 100644 test/schema-parser/raml/raml-schema-parser.spec.ts create mode 100644 test/schema-parser/raml/simple.json diff --git a/package-lock.json b/package-lock.json index 191bf1b26..c1b1d8357 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,8 +15,11 @@ "@stoplight/spectral-parsers": "^1.0.1", "@stoplight/spectral-rulesets": "^1.4.3", "ajv": "^8.11.0", + "js-yaml": "^3.14.1", "jsonpath-plus": "^6.0.1", - "lodash": "^4.17.21" + "lodash": "^4.17.21", + "ramldt2jsonschema": "^1.2.3", + "webapi-parser": "^0.5.0" }, "devDependencies": { "@jest/types": "^27.5.1", @@ -2723,7 +2726,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "dependencies": { "sprintf-js": "~1.0.2" } @@ -3195,7 +3197,6 @@ "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", - "dev": true, "engines": { "iojs": ">= 1.0.0", "node": ">= 0.12.0" @@ -3257,6 +3258,14 @@ "node": ">= 0.8" } }, + "node_modules/commander": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", + "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", + "engines": { + "node": ">= 6" + } + }, "node_modules/compare-func": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.2.tgz", @@ -4356,7 +4365,6 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, "bin": { "esparse": "bin/esparse.js", "esvalidate": "bin/esvalidate.js" @@ -4575,8 +4583,7 @@ "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" }, "node_modules/fast-levenshtein": { "version": "2.0.6", @@ -7221,10 +7228,9 @@ "dev": true }, "node_modules/js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -7351,11 +7357,39 @@ "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" }, + "node_modules/json-schema-migrate": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-0.2.0.tgz", + "integrity": "sha512-dq4/oHWmtw/+0ytnXsDqVn+VsVweTEmzm5jLgguPn9BjSzn6/q58ZiZx3BHiQyJs612f0T5Z+MrUEUUY5DHsRg==", + "dependencies": { + "ajv": "^5.0.0" + } + }, + "node_modules/json-schema-migrate/node_modules/ajv": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha512-Ajr4IcMXq/2QmMkEmSvxqfLN5zGmJ92gHXAeOXq1OekoH2rfDNsgdDoL2f7QaRCy7G/E6TpxBVdRuNraMztGHw==", + "dependencies": { + "co": "^4.6.0", + "fast-deep-equal": "^1.0.0", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.3.0" + } + }, + "node_modules/json-schema-migrate/node_modules/fast-deep-equal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", + "integrity": "sha512-fueX787WZKCV0Is4/T2cyAdM4+x1S3MXXOAhavE1ys/W42SHAPacLTQhucja22QBYrfGw50M2sRiXPtTGv9Ymw==" + }, + "node_modules/json-schema-migrate/node_modules/json-schema-traverse": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", + "integrity": "sha512-4JD/Ivzg7PoW8NzdrBSr3UFwC9mHgvI7Z6z3QGBsSHgKaRTUDmyZAAKJo2UbG1kUVfS9WS8bi36N49U1xw43DA==" + }, "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", @@ -13315,6 +13349,21 @@ "integrity": "sha512-pVzZdDpWwWqEVVLshWUHjNwuVP7SfcmPraYuqocJp1yo2U1R7P+5QAfDhdItkuoGqIBnBYrtPp7rEPqDn9HlZA==", "dev": true }, + "node_modules/ramldt2jsonschema": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/ramldt2jsonschema/-/ramldt2jsonschema-1.2.3.tgz", + "integrity": "sha512-+wLDAV2NNv9NkfEUOYStaDu/6RYgYXeC1zLtXE+dMU/jDfjpN4iJnBGycDwFTFaIQGosOQhxph7fEX6Mpwxdug==", + "dependencies": { + "commander": "^5.0.0", + "js-yaml": "^3.14.0", + "json-schema-migrate": "^0.2.0", + "webapi-parser": "^0.5.0" + }, + "bin": { + "dt2js": "bin/dt2js.js", + "js2dt": "bin/js2dt.js" + } + }, "node_modules/randomatic": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", @@ -14151,8 +14200,7 @@ "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "node_modules/stack-utils": { "version": "2.0.5", @@ -14892,6 +14940,30 @@ "makeerror": "1.0.12" } }, + "node_modules/webapi-parser": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/webapi-parser/-/webapi-parser-0.5.0.tgz", + "integrity": "sha512-fPt6XuMqLSvBz8exwX4QE1UT+pROLHa00EMDCdO0ybICduwQ1V4f7AWX4pNOpCp+x+0FjczEsOxtQU0d8L3QKw==", + "dependencies": { + "ajv": "6.5.2" + } + }, + "node_modules/webapi-parser/node_modules/ajv": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.2.tgz", + "integrity": "sha512-hOs7GfvI6tUI1LfZddH82ky6mOMyTuY0mk7kE2pWpmhhUSkumzaTO5vbVwij39MdwPQWCV4Zv57Eo06NtL/GVA==", + "dependencies": { + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.1" + } + }, + "node_modules/webapi-parser/node_modules/fast-deep-equal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w==" + }, "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", @@ -17229,7 +17301,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "~1.0.2" } @@ -17598,8 +17669,7 @@ "co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", - "dev": true + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" }, "coffee-script": { "version": "1.12.7", @@ -17643,6 +17713,11 @@ "delayed-stream": "~1.0.0" } }, + "commander": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", + "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==" + }, "compare-func": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.2.tgz", @@ -18488,8 +18563,7 @@ "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esquery": { "version": "1.4.0", @@ -18651,8 +18725,7 @@ "fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" }, "fast-levenshtein": { "version": "2.0.6", @@ -20646,10 +20719,9 @@ "dev": true }, "js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", - "dev": true, + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -20746,11 +20818,41 @@ "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" }, + "json-schema-migrate": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-0.2.0.tgz", + "integrity": "sha512-dq4/oHWmtw/+0ytnXsDqVn+VsVweTEmzm5jLgguPn9BjSzn6/q58ZiZx3BHiQyJs612f0T5Z+MrUEUUY5DHsRg==", + "requires": { + "ajv": "^5.0.0" + }, + "dependencies": { + "ajv": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha512-Ajr4IcMXq/2QmMkEmSvxqfLN5zGmJ92gHXAeOXq1OekoH2rfDNsgdDoL2f7QaRCy7G/E6TpxBVdRuNraMztGHw==", + "requires": { + "co": "^4.6.0", + "fast-deep-equal": "^1.0.0", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.3.0" + } + }, + "fast-deep-equal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", + "integrity": "sha512-fueX787WZKCV0Is4/T2cyAdM4+x1S3MXXOAhavE1ys/W42SHAPacLTQhucja22QBYrfGw50M2sRiXPtTGv9Ymw==" + }, + "json-schema-traverse": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", + "integrity": "sha512-4JD/Ivzg7PoW8NzdrBSr3UFwC9mHgvI7Z6z3QGBsSHgKaRTUDmyZAAKJo2UbG1kUVfS9WS8bi36N49U1xw43DA==" + } + } + }, "json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, "json-stable-stringify-without-jsonify": { "version": "1.0.1", @@ -25318,6 +25420,17 @@ "integrity": "sha512-pVzZdDpWwWqEVVLshWUHjNwuVP7SfcmPraYuqocJp1yo2U1R7P+5QAfDhdItkuoGqIBnBYrtPp7rEPqDn9HlZA==", "dev": true }, + "ramldt2jsonschema": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/ramldt2jsonschema/-/ramldt2jsonschema-1.2.3.tgz", + "integrity": "sha512-+wLDAV2NNv9NkfEUOYStaDu/6RYgYXeC1zLtXE+dMU/jDfjpN4iJnBGycDwFTFaIQGosOQhxph7fEX6Mpwxdug==", + "requires": { + "commander": "^5.0.0", + "js-yaml": "^3.14.0", + "json-schema-migrate": "^0.2.0", + "webapi-parser": "^0.5.0" + } + }, "randomatic": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", @@ -25952,8 +26065,7 @@ "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "stack-utils": { "version": "2.0.5", @@ -26506,6 +26618,32 @@ "makeerror": "1.0.12" } }, + "webapi-parser": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/webapi-parser/-/webapi-parser-0.5.0.tgz", + "integrity": "sha512-fPt6XuMqLSvBz8exwX4QE1UT+pROLHa00EMDCdO0ybICduwQ1V4f7AWX4pNOpCp+x+0FjczEsOxtQU0d8L3QKw==", + "requires": { + "ajv": "6.5.2" + }, + "dependencies": { + "ajv": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.2.tgz", + "integrity": "sha512-hOs7GfvI6tUI1LfZddH82ky6mOMyTuY0mk7kE2pWpmhhUSkumzaTO5vbVwij39MdwPQWCV4Zv57Eo06NtL/GVA==", + "requires": { + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.1" + } + }, + "fast-deep-equal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w==" + } + } + }, "webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", diff --git a/package.json b/package.json index af103b413..cc1132e4e 100644 --- a/package.json +++ b/package.json @@ -55,8 +55,11 @@ "@stoplight/spectral-parsers": "^1.0.1", "@stoplight/spectral-rulesets": "^1.4.3", "ajv": "^8.11.0", + "js-yaml": "^3.14.1", "jsonpath-plus": "^6.0.1", - "lodash": "^4.17.21" + "lodash": "^4.17.21", + "ramldt2jsonschema": "^1.2.3", + "webapi-parser": "^0.5.0" }, "release": { "branches": [ diff --git a/src/schema-parser/raml-schema-parser.ts b/src/schema-parser/raml-schema-parser.ts new file mode 100644 index 000000000..450de2394 --- /dev/null +++ b/src/schema-parser/raml-schema-parser.ts @@ -0,0 +1,65 @@ +import { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from "../schema-parser"; +import type { AsyncAPISchema, SchemaValidateResult } from '../types'; +import yaml from 'js-yaml'; +import * as lib from "webapi-parser"; +const wap = lib.WebApiParser; +const r2j = require('ramldt2jsonschema'); + +export function RamlSchemaParser(): SchemaParser { + return { + validate, + parse, + getMimeTypes, + } + } + +async function parse(input: ParseSchemaInput): Promise { + const message = (input.meta as any).message; + const payload = formatPayload(input.data); + + // Draft 6 is compatible with 7. + const jsonModel = await r2j.dt2js(payload, 'tmpType', { draft: '06' }); + const convertedType = jsonModel.definitions.tmpType; + + message['x-parser-original-schema-format'] = input.schemaFormat || input.defaultSchemaFormat; + message['x-parser-original-payload'] = payload; + message.payload = convertedType; + delete message.schemaFormat; + + return message.payload; +} + +function getMimeTypes() { + return [ + 'application/raml+yaml;version=1.0', + ]; +} + +async function validate(input: ValidateSchemaInput): Promise { + const payload = formatPayload(input.data); + const parsed = await wap.raml10.parse(payload); + const report = await wap.raml10.validate(parsed); + if (report.conforms) { + // No errors found. + return []; + } + + let validateResult: SchemaValidateResult[] = []; + report.results.forEach(result => { + validateResult.push({ + message: result.message, + path: [], // RAML parser doesn't provide a path to the error. + } as SchemaValidateResult); + }); + + return validateResult; +} + +function formatPayload(payload: any): string { + if (typeof payload === 'object') { + payload = `#%RAML 1.0 Library\n${ + yaml.dump({ types: { tmpType: payload } })}`; + } + + return payload as string; +} \ No newline at end of file diff --git a/test/schema-parser/raml/complex.json b/test/schema-parser/raml/complex.json new file mode 100644 index 000000000..f7cac2385 --- /dev/null +++ b/test/schema-parser/raml/complex.json @@ -0,0 +1,90 @@ +{ + "schemaFormat": "application/raml+yaml;version=1.0", + "payload": + { + "type": + [ + "CatWithAddress", + "CatWithCity" + ], + "minProperties": 1, + "maxProperties": 50, + "additionalProperties": false, + "discriminator": "breed", + "discriminatorValue": "CatOne", + "properties": + { + "proscons": + { + "type": "CatPros | CatCons", + "required": true + }, + "name": + { + "type": "CatName", + "amazing": true + }, + "breed": + { + "type": "CatBreed" + }, + "age": "CatAge", + "rating": + { + "type": "integer", + "multipleOf": 5, + "example": + { + "displayName": "Cat's rating", + "description": "Rating of cat's awesomeness", + "strict": false, + "value": 50 + } + }, + "year_of_birth": "date-only", + "time_of_birth": "time-only", + "dt_of_birth": + { + "type": "datetime-only", + "required": false + }, + "addition_date": + { + "type": "datetime", + "format": "rfc2616" + }, + "removal_date": + { + "type": "datetime" + }, + "photo": + { + "type": "file", + "fileTypes": + [ + "image/jpeg", + "image/png" + ], + "minLength": 1, + "maxLength": 307200 + }, + "description": "nil", + "habits?": "string", + "character": "nil | string", + "siblings": "string[]", + "parents": "CatName[]", + "ratingHistory": "(integer | number)[]", + "additionalData": + { + "type": + { + "type": "object", + "properties": + { + "weight": "number" + } + } + } + } + } +} \ No newline at end of file diff --git a/test/schema-parser/raml/invalid.json b/test/schema-parser/raml/invalid.json new file mode 100644 index 000000000..1ed399fb7 --- /dev/null +++ b/test/schema-parser/raml/invalid.json @@ -0,0 +1,13 @@ +{ + "schemaFormat": "application/raml+yaml;version=1.0", + "payload": { + "type": "object", + "properties": { + "title": "string", + "author": { + "type": "string", + "examples": "test" + } + } + } +} \ No newline at end of file diff --git a/test/schema-parser/raml/raml-schema-parser.spec.ts b/test/schema-parser/raml/raml-schema-parser.spec.ts new file mode 100644 index 000000000..5afabbb11 --- /dev/null +++ b/test/schema-parser/raml/raml-schema-parser.spec.ts @@ -0,0 +1,79 @@ +import { ParseSchemaInput, ValidateSchemaInput } from '../../../src/schema-parser/index'; +import { RamlSchemaParser } from '../../../src/schema-parser/raml-schema-parser'; +import { SchemaValidateResult } from '../../../src/types'; +import * as fs from 'fs'; +import * as path from 'path'; + +const inputWithSimpleRAML = toInput(fs.readFileSync(path.resolve(__dirname, './simple.json'), 'utf8')); +const outputWithSimpleRAML = '{"payload":{"type":"object","examples":[{"title":"A book","author":"An author"}],"additionalProperties":true,"required":["title","author"],"properties":{"title":{"type":"string"},"author":{"type":"string","examples":["Eva"]}}},"x-parser-original-schema-format":"application/raml+yaml;version=1.0","x-parser-original-payload":"#%RAML 1.0 Library\\ntypes:\\n tmpType:\\n type: object\\n properties:\\n title: string\\n author:\\n type: string\\n examples:\\n anExample: Eva\\n examples:\\n exampleOne:\\n title: A book\\n author: An author\\n"}'; + +const inputWithComplexRAML = toInput(fs.readFileSync(path.resolve(__dirname, './complex.json'), 'utf8')); +const outputWithComplexRAML = `{"payload":{"minProperties":1,"maxProperties":50,"additionalProperties":false,"discriminator":"breed","discriminatorValue":"CatOne","type":"object","required":["proscons","name","breed","age","rating","year_of_birth","time_of_birth","addition_date","removal_date","photo","description","character","siblings","parents","ratingHistory","additionalData"],"properties":{"proscons":{"anyOf":[true,true]},"name":true,"breed":true,"age":true,"rating":{"type":"integer","multipleOf":5,"example":{"displayName":"Cat's rating","description":"Rating of cat's awesomeness","strict":false,"value":50}},"year_of_birth":{"type":"string","format":"date"},"time_of_birth":{"type":"string","format":"time"},"dt_of_birth":{"type":"string","format":"date-time-only"},"addition_date":{"type":"string","format":"rfc2616"},"removal_date":{"type":"string","format":"date-time"},"photo":{"type":"string","minLength":1,"maxLength":307200},"description":{"type":"null"},"habits":{"type":"string"},"character":{"anyOf":[{"type":"null"},{"type":"string"}]},"siblings":{"type":"array","items":{"type":"string"}},"parents":{"type":"array","items":true},"ratingHistory":{"type":"array","items":{"anyOf":[{"type":"integer"},{"type":"number"}]}},"additionalData":{"type":"object","additionalProperties":true,"required":["weight"],"properties":{"weight":{"type":"number"}}}}},"x-parser-original-schema-format":"application/raml+yaml;version=1.0","x-parser-original-payload":"#%RAML 1.0 Library\\ntypes:\\n tmpType:\\n type:\\n - CatWithAddress\\n - CatWithCity\\n minProperties: 1\\n maxProperties: 50\\n additionalProperties: false\\n discriminator: breed\\n discriminatorValue: CatOne\\n properties:\\n proscons:\\n type: CatPros | CatCons\\n required: true\\n name:\\n type: CatName\\n amazing: true\\n breed:\\n type: CatBreed\\n age: CatAge\\n rating:\\n type: integer\\n multipleOf: 5\\n example:\\n displayName: Cat's rating\\n description: Rating of cat's awesomeness\\n strict: false\\n value: 50\\n year_of_birth: date-only\\n time_of_birth: time-only\\n dt_of_birth:\\n type: datetime-only\\n required: false\\n addition_date:\\n type: datetime\\n format: rfc2616\\n removal_date:\\n type: datetime\\n photo:\\n type: file\\n fileTypes:\\n - image/jpeg\\n - image/png\\n minLength: 1\\n maxLength: 307200\\n description: nil\\n habits?: string\\n character: nil | string\\n siblings: 'string[]'\\n parents: 'CatName[]'\\n ratingHistory: '(integer | number)[]'\\n additionalData:\\n type:\\n type: object\\n properties:\\n weight: number\\n"}`; + +const inputWithInvalidRAML = toInput(fs.readFileSync(path.resolve(__dirname, './invalid.json'), 'utf8')); + +describe('parse()', function() { + const parser = RamlSchemaParser(); + + it('should parse simple RAML data types', async function() { + await doTest(inputWithSimpleRAML, outputWithSimpleRAML); + }); + + it('should parse complex RAML data types', async function() { + await doTest(inputWithComplexRAML, outputWithComplexRAML); + }); + + async function doTest(originalInput: ParseSchemaInput, expectedOutput: string) { + const input = {...originalInput}; + const result = await parser.parse(input); + + // Check that the return value of parse() is the expected JSON Schema. + expect(result).toEqual(JSON.parse(expectedOutput).payload); + + // Check that the message got modified, i.e. adding extensions, setting the payload, etc. + const message = (input.meta as any).message; + expect(JSON.stringify(message)).toEqual(expectedOutput); + } +}); + +describe('validate()', function() { + const parser = RamlSchemaParser(); + + it('should validate valid RAML', async function() { + const result = await parser.validate(inputWithSimpleRAML); + expect(result).toHaveLength(0); + }); + it('should validate invalid RAML', async function() { + const results = await parser.validate(inputWithInvalidRAML); + expect(results).toHaveLength(1); + + const result = (results as SchemaValidateResult[])[0]; + expect(result.message).toEqual("Property 'examples' should be a map"); + expect(result.path).toEqual([]); // Validator doesn't provide info about the error path + }); +}); + +function toInput(raw: string): ParseSchemaInput | ValidateSchemaInput { + const message = JSON.parse(raw); + const schemaInput = { + asyncapi: { + semver: { + version: "2.4.0", + major: 2, + minor: 4, + patch: 0 + }, + source: "", + parsed: {}, + }, + path: ["otherchannel", "subscribe", "message", "payload"], + data: message.payload, + meta: { + message: message, + }, + schemaFormat: message.schemaFormat, + defaultSchemaFormat: "application/vnd.aai.asyncapi;version=2.4.0", + }; + + return schemaInput; +} \ No newline at end of file diff --git a/test/schema-parser/raml/simple.json b/test/schema-parser/raml/simple.json new file mode 100644 index 000000000..4ba42fe61 --- /dev/null +++ b/test/schema-parser/raml/simple.json @@ -0,0 +1,21 @@ +{ + "schemaFormat": "application/raml+yaml;version=1.0", + "payload": { + "type": "object", + "properties": { + "title": "string", + "author": { + "type": "string", + "examples": { + "anExample": "Eva" + } + } + }, + "examples": { + "exampleOne": { + "title": "A book", + "author": "An author" + } + } + } +} \ No newline at end of file From 65afb0959cee07f67060bdb996d82d1ae8f5face Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Fri, 26 Aug 2022 09:49:04 +0200 Subject: [PATCH 027/126] refactor: add Avro Schema Parser (#576) --- package-lock.json | 14 + package.json | 1 + src/schema-parser/avro-schema-parser.ts | 345 +++++++++++++++++ src/types.ts | 2 +- .../avro/asyncapi-avro-1.8.2.json | 22 ++ ...capi-avro-1.9.0-additional-attributes.json | 33 ++ .../avro/asyncapi-avro-1.9.0-bindings.json | 56 +++ .../avro/asyncapi-avro-1.9.0-namespace.json | 25 ++ .../avro/asyncapi-avro-1.9.0.json | 24 ++ .../avro/asyncapi-avro-111-1.9.0.json | 106 +++++ .../avro/asyncapi-avro-113-1.9.0.json | 39 ++ .../avro/asyncapi-avro-broken.json | 24 ++ .../avro/asyncapi-avro-invalid.json | 6 + .../avro/avro-schema-parser.spec.ts | 363 ++++++++++++++++++ 14 files changed, 1059 insertions(+), 1 deletion(-) create mode 100644 src/schema-parser/avro-schema-parser.ts create mode 100644 test/schema-parser/avro/asyncapi-avro-1.8.2.json create mode 100644 test/schema-parser/avro/asyncapi-avro-1.9.0-additional-attributes.json create mode 100644 test/schema-parser/avro/asyncapi-avro-1.9.0-bindings.json create mode 100644 test/schema-parser/avro/asyncapi-avro-1.9.0-namespace.json create mode 100644 test/schema-parser/avro/asyncapi-avro-1.9.0.json create mode 100644 test/schema-parser/avro/asyncapi-avro-111-1.9.0.json create mode 100644 test/schema-parser/avro/asyncapi-avro-113-1.9.0.json create mode 100644 test/schema-parser/avro/asyncapi-avro-broken.json create mode 100644 test/schema-parser/avro/asyncapi-avro-invalid.json create mode 100644 test/schema-parser/avro/avro-schema-parser.spec.ts diff --git a/package-lock.json b/package-lock.json index c1b1d8357..466d894ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,6 +15,7 @@ "@stoplight/spectral-parsers": "^1.0.1", "@stoplight/spectral-rulesets": "^1.4.3", "ajv": "^8.11.0", + "avsc": "^5.7.4", "js-yaml": "^3.14.1", "jsonpath-plus": "^6.0.1", "lodash": "^4.17.21", @@ -2810,6 +2811,14 @@ "gulp-header": "^1.7.1" } }, + "node_modules/avsc": { + "version": "5.7.4", + "resolved": "https://registry.npmjs.org/avsc/-/avsc-5.7.4.tgz", + "integrity": "sha512-z4oo33lmnvvNRqfUe3YjDGGpqu/L2+wXBIhMtwq6oqZ+exOUAkQYM6zd2VWKF7AIlajOF8ZZuPFfryTG9iLC/w==", + "engines": { + "node": ">=0.11" + } + }, "node_modules/babel-jest": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz", @@ -17367,6 +17376,11 @@ "gulp-header": "^1.7.1" } }, + "avsc": { + "version": "5.7.4", + "resolved": "https://registry.npmjs.org/avsc/-/avsc-5.7.4.tgz", + "integrity": "sha512-z4oo33lmnvvNRqfUe3YjDGGpqu/L2+wXBIhMtwq6oqZ+exOUAkQYM6zd2VWKF7AIlajOF8ZZuPFfryTG9iLC/w==" + }, "babel-jest": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz", diff --git a/package.json b/package.json index cc1132e4e..fb8477f38 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,7 @@ "@stoplight/spectral-parsers": "^1.0.1", "@stoplight/spectral-rulesets": "^1.4.3", "ajv": "^8.11.0", + "avsc": "^5.7.4", "js-yaml": "^3.14.1", "jsonpath-plus": "^6.0.1", "lodash": "^4.17.21", diff --git a/src/schema-parser/avro-schema-parser.ts b/src/schema-parser/avro-schema-parser.ts new file mode 100644 index 000000000..3ca520866 --- /dev/null +++ b/src/schema-parser/avro-schema-parser.ts @@ -0,0 +1,345 @@ +import avsc, { type Schema} from "avsc"; +import type { AsyncAPISchema, SchemaValidateResult } from "types"; +import { SchemaParser, type ParseSchemaInput, type ValidateSchemaInput } from "../schema-parser"; +import { type JSONSchema7TypeName } from "json-schema"; + +type AvroSchema = Schema & { [key: string]: any } & any; + +export function AvroSchemaParser(): SchemaParser { + return { + validate, + parse, + getMimeTypes, + } +} + +async function validate(input: ValidateSchemaInput): Promise { + let result: SchemaValidateResult[] = [] + + try { + validateAvroSchema(input.data as AvroSchema); + } catch (error) { + if (error instanceof Error) { + result.push({ + message: error.message, + path: [], // avsc doesn't throw errors with meaningful paths + }); + } + } + + return result; +} + +async function parse(input: ParseSchemaInput): Promise { + const asyncAPISchema = await avroToJsonSchema(input.data as AvroSchema); + const message = (input.meta as any).message + + // TODO: Should the following modifications to the message object be done in the caller and for all parsers rather than here? + // remove that function when https://github.com/asyncapi/spec/issues/622 will be introduced in AsyncAPI spec + async function handleKafkaProtocolKey() { + if (message.bindings && message.bindings.kafka) { + const key = message.bindings.kafka.key; + if (key) { + const bindingsTransformed = await avroToJsonSchema(key); + message['x-parser-original-bindings-kafka-key'] = key; + message.bindings.kafka.key = bindingsTransformed; + } + } + } + + if (message !== undefined) { + // TODO: Should the following modifications to the message object be done in the caller and for all parsers rather than here? + message['x-parser-original-schema-format'] = input.schemaFormat || input.defaultSchemaFormat; + message['x-parser-original-payload'] = input.data; + message.payload = asyncAPISchema; + delete message.schemaFormat; + + await handleKafkaProtocolKey(); + } + + return asyncAPISchema; +} + +function getMimeTypes() { + return [ + 'application/vnd.apache.avro;version=1.9.0', + 'application/vnd.apache.avro+json;version=1.9.0', + 'application/vnd.apache.avro+yaml;version=1.9.0', + 'application/vnd.apache.avro;version=1.8.2', + 'application/vnd.apache.avro+json;version=1.8.2', + 'application/vnd.apache.avro+yaml;version=1.8.2' + ]; +}; + +const BYTES_PATTERN = '^[\u0000-\u00ff]*$'; +const INT_MIN = Math.pow(-2, 31); +const INT_MAX = Math.pow(2, 31) - 1; +const LONG_MIN = Math.pow(-2, 63); +const LONG_MAX = Math.pow(2, 63) - 1; + +const typeMappings: { [key: string]: JSONSchema7TypeName } = { + null: 'null', + boolean: 'boolean', + int: 'integer', + long: 'integer', + float: 'number', + double: 'number', + bytes: 'string', + string: 'string', + fixed: 'string', + map: 'object', + array: 'array', + enum: 'string', + record: 'object', + uuid: 'string', +}; + +const commonAttributesMapping = (avroDefinition: AvroSchema, jsonSchema: AsyncAPISchema, isTopLevel: boolean) => { + if (avroDefinition.doc) jsonSchema.description = avroDefinition.doc; + if (avroDefinition.default !== undefined) jsonSchema.default = avroDefinition.default; + + const fullyQualifiedName = getFullyQualifiedName(avroDefinition); + if (isTopLevel && fullyQualifiedName !== undefined) { + jsonSchema['x-parser-schema-id'] = fullyQualifiedName; + } +}; + +function getFullyQualifiedName(avroDefinition: AvroSchema) { + let name; + + if (avroDefinition.name) { + if (avroDefinition.namespace) { + name = `${avroDefinition.namespace}.${avroDefinition.name}`; + } else { + name = avroDefinition.name; + } + } + + return name; +} + +/** + * Enrich the parent's required attribute with the required record attributes + * @param fieldDefinition the actual field definition + * @param parentJsonSchema the parent json schema which contains the required property to enrich + * @param haveDefaultValue we assure that a required field does not have a default value + */ +const requiredAttributesMapping = (fieldDefinition: any, parentJsonSchema: AsyncAPISchema, haveDefaultValue: boolean) => { + const isUnionWithNull = Array.isArray(fieldDefinition.type) && fieldDefinition.type.includes('null'); + + // we assume that a union type without null and a field without default value is required + if (!isUnionWithNull && !haveDefaultValue) { + parentJsonSchema.required = parentJsonSchema.required || []; + parentJsonSchema.required.push(fieldDefinition.name); + } +}; + +function extractNonNullableTypeIfNeeded(typeInput: any, jsonSchemaInput: AsyncAPISchema) { + let type = typeInput; + let jsonSchema = jsonSchemaInput; + // Map example to first non-null type + if (Array.isArray(typeInput) && typeInput.length > 0) { + const pickSecondType = typeInput.length > 1 && typeInput[0] === 'null'; + type = typeInput[+pickSecondType]; + if (jsonSchema.oneOf !== undefined) { + jsonSchema = jsonSchema.oneOf[0] as AsyncAPISchema; + } + } + return {type, jsonSchema}; +} + +const exampleAttributeMapping = (type: any, example: any, jsonSchema: AsyncAPISchema) => { + if (example === undefined || jsonSchema.examples || Array.isArray(type)) return; + + switch (type) { + case 'boolean': + jsonSchema.examples = [example === 'true']; + break; + case 'int': + jsonSchema.examples = [parseInt(example, 10)]; + break; + default: + jsonSchema.examples = [example]; + } +}; + +const additionalAttributesMapping = (typeInput: any, avroDefinition: AvroSchema, jsonSchemaInput: AsyncAPISchema) => { + const __ret = extractNonNullableTypeIfNeeded(typeInput, jsonSchemaInput); + const type = __ret.type; + const jsonSchema = __ret.jsonSchema; + + exampleAttributeMapping(type, avroDefinition.example, jsonSchema); + + function setAdditionalAttribute(...names: string[]) { + names.forEach(name => { + let isValueCoherent = true; + if (name === 'minLength' || name === 'maxLength') { + isValueCoherent = avroDefinition[name] > -1; + } else if (name === 'multipleOf') { + isValueCoherent = avroDefinition[name] > 0; + } + if (avroDefinition[name] !== undefined && isValueCoherent) jsonSchema[name] = avroDefinition[name]; + }); + } + + switch (type) { + case 'int': // int, long, float, and double must support the attributes bellow + case 'long': + case 'float': + case 'double': + setAdditionalAttribute('minimum', 'maximum', 'exclusiveMinimum', 'exclusiveMaximum', 'multipleOf'); + break; + case 'string': + jsonSchema.format = avroDefinition.logicalType; + setAdditionalAttribute('pattern', 'minLength', 'maxLength'); + break; + case 'array': + setAdditionalAttribute('minItems', 'maxItems', 'uniqueItems'); + break; + default: + break; + } +}; + +function validateAvroSchema(avroDefinition: AvroSchema) { + // don't need to use the output from parsing the + // avro definition - we're just using this as a + // validator as this will throw an exception if + // there are any problems with the definition + avsc.Type.forSchema(avroDefinition); +} + +/** + * Cache the passed value under the given key. If the key is undefined the value will not be cached. This function + * uses mutation of the passed cache object rather than a copy on write cache strategy. + * + * @param cache Map the cache to store the JsonSchema + * @param key String | Undefined - the fully qualified name of an avro record + * @param value JsonSchema - The json schema from the avro record + */ +function cacheAvroRecordDef(cache: {[key:string]: AsyncAPISchema}, key: string, value: AsyncAPISchema) { + if (key !== undefined) { + cache[key] = value; + } +} + +async function convertAvroToJsonSchema(avroDefinition: AvroSchema , isTopLevel: boolean, recordCache: Map | any = {}) { + const jsonSchema: AsyncAPISchema = {}; + const isUnion = Array.isArray(avroDefinition); + + if (isUnion) { + return processUnionSchema(jsonSchema, avroDefinition, isTopLevel, recordCache); + } + + // Avro definition can be a string (e.g. "int") + // or an object like { type: "int" } + const type = avroDefinition.type || avroDefinition; + jsonSchema.type = typeMappings[type]; + + switch (type) { + case 'int': + jsonSchema.minimum = INT_MIN; + jsonSchema.maximum = INT_MAX; + break; + case 'long': + jsonSchema.minimum = LONG_MIN; + jsonSchema.maximum = LONG_MAX; + break; + case 'bytes': + jsonSchema.pattern = BYTES_PATTERN; + break; + case 'fixed': + jsonSchema.pattern = BYTES_PATTERN; + jsonSchema.minLength = avroDefinition.size; + jsonSchema.maxLength = avroDefinition.size; + break; + case 'map': + jsonSchema.additionalProperties = await convertAvroToJsonSchema(avroDefinition.values, false); + break; + case 'array': + jsonSchema.items = await convertAvroToJsonSchema(avroDefinition.items, false); + break; + case 'enum': + jsonSchema.enum = avroDefinition.symbols; + break; + case 'float': // float and double must support the format attribute from the avro type + case 'double': + jsonSchema.format = type; + break; + case 'record': + const propsMap = await processRecordSchema(avroDefinition, recordCache, jsonSchema); + jsonSchema.properties = Object.fromEntries(propsMap.entries()); + break; + } + + commonAttributesMapping(avroDefinition, jsonSchema, isTopLevel); + additionalAttributesMapping(type, avroDefinition, jsonSchema); + + return jsonSchema; +} + +/** + * When a record type is found in an avro schema this function can be used to process the underlying fields and return + * the map of props contained by the record. The record will also be cached. + * + * @param avroDefinition the avro schema to be processed + * @param recordCache the cache of previously processed avro record types + * @param jsonSchema the schema for the record. + * @returns {Promise>} + */ +async function processRecordSchema(avroDefinition: AvroSchema, recordCache: {[key:string]: AsyncAPISchema}, jsonSchema: AsyncAPISchema) { + const propsMap = new Map(); + for (const field of avroDefinition.fields) { + // If the type is a sub schema it will have been stored in the cache. + if (recordCache[field.type]) { + propsMap.set(field.name, recordCache[field.type]); + } else { + const def = await convertAvroToJsonSchema(field.type, false, recordCache); + + requiredAttributesMapping(field, jsonSchema, field.default !== undefined); + commonAttributesMapping(field, def, false); + additionalAttributesMapping(field.type, field, def); + + propsMap.set(field.name, def); + // If there is a name for the sub record cache it under the name. + const qualifiedFieldName = getFullyQualifiedName(field.type); + cacheAvroRecordDef(recordCache, qualifiedFieldName, def); + } + } + return propsMap; +} + +/** + * Handles processing union avro schema types by creating a oneOf jsonSchema definition. This will mutate the passed + * jsonSchema and recordCache objects. + * + * @param jsonSchema the jsonSchema object that will be mutated. + * @param avroDefinition the avro schema to be processed + * @param isTopLevel is this the top level of the schema or is this a sub schema + * @param recordCache the cache of previously processed record types + * @returns {Promise} the mutated jsonSchema that was provided to the function + */ +async function processUnionSchema(jsonSchema: AsyncAPISchema, avroDefinition: AvroSchema, isTopLevel: boolean, recordCache: {[key:string]: AsyncAPISchema}) { + jsonSchema.oneOf = []; + let nullDef = null; + for (const avroDef of avroDefinition) { + const def = await convertAvroToJsonSchema(avroDef, isTopLevel, recordCache); + // avroDef can be { type: 'int', default: 1 } and this is why avroDef.type has priority here + const defType = avroDef.type || avroDef; + // To prefer non-null values in the examples skip null definition here and push it as the last element after loop + if (defType === 'null') { + nullDef = def; + } else { + jsonSchema.oneOf.push(def); + const qualifiedName = getFullyQualifiedName(avroDef); + cacheAvroRecordDef(recordCache, qualifiedName, def); + } + } + if (nullDef) jsonSchema.oneOf.push(nullDef); + + return jsonSchema; +} + +export async function avroToJsonSchema(avroDefinition: AvroSchema) { + return convertAvroToJsonSchema(avroDefinition, true); +}; diff --git a/src/types.ts b/src/types.ts index 954b4b5ad..9a292ff7b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -18,4 +18,4 @@ export interface DetailedAsyncAPI { export type Diagnostic = ISpectralDiagnostic; export type SchemaValidateResult = IFunctionResult; -export type AsyncAPISchema = JSONSchema7; +export type AsyncAPISchema = JSONSchema7 & { [key: string]: any }; diff --git a/test/schema-parser/avro/asyncapi-avro-1.8.2.json b/test/schema-parser/avro/asyncapi-avro-1.8.2.json new file mode 100644 index 000000000..beca0196d --- /dev/null +++ b/test/schema-parser/avro/asyncapi-avro-1.8.2.json @@ -0,0 +1,22 @@ +{ + "schemaFormat": "application/vnd.apache.avro;version=1.8.2", + "payload": { + "type": "record", + "fields": [ + {"name": "name", "type": "string", "example": "Donkey"}, + {"name": "age", "type": ["null", "int"], "default": null}, + { + "name": "favoriteProgrammingLanguage", + "type": {"name": "ProgrammingLanguage", "type": "enum", "symbols": ["JS", "Java", "Go", "Rust", "C"]} + }, + { + "name": "address", + "type": { + "name": "Address", + "type": "record", + "fields": [{"name": "zipcode", "type": "int", "example": 53003}] + } + } + ] + } +} \ No newline at end of file diff --git a/test/schema-parser/avro/asyncapi-avro-1.9.0-additional-attributes.json b/test/schema-parser/avro/asyncapi-avro-1.9.0-additional-attributes.json new file mode 100644 index 000000000..56c767390 --- /dev/null +++ b/test/schema-parser/avro/asyncapi-avro-1.9.0-additional-attributes.json @@ -0,0 +1,33 @@ +{ + "schemaFormat": "application/vnd.apache.avro;version=1.9.0", + "payload": { + "name": "Person", + "namespace": "com.company", + "type": "record", + "fields": [ + {"name": "name", "type": "string", "example": "Donkey", "minLength": 0}, + {"name": "serialNo", "type": "string", "minLength": 0, "maxLength": 50}, + {"name": "email", "type": ["null","string"], "example": "donkey@asyncapi.com", "pattern": "^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$"}, + {"name": "age", "type": ["null", "int"], "default": null, "example": 123, "exclusiveMinimum": 0, "exclusiveMaximum": 200}, + { + "name": "favoriteProgrammingLanguage", + "type": {"name": "ProgrammingLanguage", "type": "enum", "symbols": ["JS", "Java", "Go", "Rust", "C"], "default": "JS"} + }, + {"name": "certifications", "type": {"type": "array", "items": "string", "minItems": 1, "maxItems": 500, "uniqueItems": true}}, + { + "name": "address", + "type": { + "name": "Address", + "type": "record", + "fields": [ + {"name": "zipcode", "type": "int", "example": 53003}, + {"name": "country", "type": ["null", "string"]} + ] + } + }, + {"name": "weight", "type": "float", "example": 65.1, "minimum": 0, "maximum": 500}, + {"name": "height", "type": "double", "example": 1.85, "minimum": 0, "maximum": 3.0}, + {"name": "someid", "type": "string", "logicalType": "uuid"} + ] + } +} \ No newline at end of file diff --git a/test/schema-parser/avro/asyncapi-avro-1.9.0-bindings.json b/test/schema-parser/avro/asyncapi-avro-1.9.0-bindings.json new file mode 100644 index 000000000..c86d03670 --- /dev/null +++ b/test/schema-parser/avro/asyncapi-avro-1.9.0-bindings.json @@ -0,0 +1,56 @@ +{ + "schemaFormat": "application/vnd.apache.avro;version=1.9.0", + "payload": { + "name": "Person", + "namespace": "com.company", + "type": "record", + "fields": [ + {"name": "name", "type": "string", "example": "Donkey"}, + {"name": "age", "type": ["null", "int"], "default": null, "example": 123}, + { + "name": "favoriteProgrammingLanguage", + "type": {"name": "ProgrammingLanguage", "type": "enum", "symbols": ["JS", "Java", "Go", "Rust", "C"], "default": "JS"} + }, + { + "name": "address", + "type": { + "name": "Address", + "type": "record", + "fields": [{"name": "zipcode", "type": "int", "example": 53003}] + } + }, + {"name": "someid", "type": "string", "logicalType": "uuid"} + ] + }, + "bindings": { + "kafka": { + "key": { + "name": "Person", + "namespace": "com.company", + "type": "record", + "fields": [ + {"name": "name", "type": "string", "example": "Donkey"}, + {"name": "age", "type": ["null", "int"], "default": null, "example": 123}, + { + "name": "favoriteProgrammingLanguage", + "type": {"name": "ProgrammingLanguage", "type": "enum", "symbols": ["JS", "Java", "Go", "Rust", "C"], "default": "JS"} + }, + { + "name": "address", + "type": { + "name": "Address", + "type": "record", + "fields": [{"name": "zipcode", "type": "int", "example": 53003}] + } + }, + {"name": "someid", "type": "string", "logicalType": "uuid"} + ] + } + }, + "mqtt": { + "x-test": { + "type": "string" + } + } + } +} \ No newline at end of file diff --git a/test/schema-parser/avro/asyncapi-avro-1.9.0-namespace.json b/test/schema-parser/avro/asyncapi-avro-1.9.0-namespace.json new file mode 100644 index 000000000..bea78bf34 --- /dev/null +++ b/test/schema-parser/avro/asyncapi-avro-1.9.0-namespace.json @@ -0,0 +1,25 @@ +{ + "schemaFormat": "application/vnd.apache.avro;version=1.9.0", + "payload": { + "name": "Person", + "namespace": "com.company", + "type": "record", + "fields": [ + {"name": "name", "type": "string", "example": "Donkey"}, + {"name": "age", "type": ["null", "int"], "default": null, "example": 123}, + { + "name": "favoriteProgrammingLanguage", + "type": {"name": "ProgrammingLanguage", "type": "enum", "symbols": ["JS", "Java", "Go", "Rust", "C"], "default": "JS"} + }, + { + "name": "address", + "type": { + "name": "Address", + "type": "record", + "fields": [{"name": "zipcode", "type": "int", "example": 53003}] + } + }, + {"name": "someid", "type": "string", "logicalType": "uuid"} + ] + } +} \ No newline at end of file diff --git a/test/schema-parser/avro/asyncapi-avro-1.9.0.json b/test/schema-parser/avro/asyncapi-avro-1.9.0.json new file mode 100644 index 000000000..5667d0510 --- /dev/null +++ b/test/schema-parser/avro/asyncapi-avro-1.9.0.json @@ -0,0 +1,24 @@ +{ + "schemaFormat": "application/vnd.apache.avro;version=1.9.0", + "payload": { + "name": "Person", + "type": "record", + "fields": [ + {"name": "name", "type": "string", "example": "Donkey"}, + {"name": "age", "type": ["null", "int"], "default": null, "example": 123}, + { + "name": "favoriteProgrammingLanguage", + "type": {"name": "ProgrammingLanguage", "type": "enum", "symbols": ["JS", "Java", "Go", "Rust", "C"], "default": "JS"} + }, + { + "name": "address", + "type": { + "name": "Address", + "type": "record", + "fields": [{"name": "zipcode", "type": "int", "example": 53003}] + } + }, + {"name": "someid", "type": "string", "logicalType": "uuid"} + ] + } +} \ No newline at end of file diff --git a/test/schema-parser/avro/asyncapi-avro-111-1.9.0.json b/test/schema-parser/avro/asyncapi-avro-111-1.9.0.json new file mode 100644 index 000000000..d0eff6813 --- /dev/null +++ b/test/schema-parser/avro/asyncapi-avro-111-1.9.0.json @@ -0,0 +1,106 @@ +{ + "schemaFormat": "application/vnd.apache.avro;version=1.9.0", + "payload": { + "type": "record", + "name": "ConnectionRequested", + "namespace": "com.foo.connections", + "doc": "An example schema to illustrate the issue", + "fields": [ + { + "name": "metadata", + "type": { + "type": "record", + "name": "EventMetadata", + "namespace": "com.foo", + "doc": "Metadata to be associated with every published event", + "fields": [ + { + "name": "id", + "type": { + "type": "string", + "logicalType": "uuid" + }, + "doc": "Unique identifier for this specific event" + }, + { + "name": "timestamp", + "type": { + "type": "long", + "logicalType": "timestamp-millis" + }, + "doc": "Instant the event took place (not necessary when it was published)" + }, + { + "name": "correlation_id", + "type": [ + "null", + { + "type": "string", + "logicalType": "uuid" + } + ], + "doc": "id of the event that resulted in this\nevent being published (optional)", + "default": null + }, + { + "name": "publisher_context", + "type": [ + "null", + { + "type": "map", + "values": { + "type": "string", + "avro.java.string": "String" + }, + "avro.java.string": "String" + } + ], + "doc": "optional set of key-value pairs of context to be echoed back\nin any resulting message (like a richer\ncorrelationId.\n\nThese values are likely only meaningful to the publisher\nof the correlated event", + "default": null + } + ] + } + }, + { + "name": "auth_code", + "type": { + "type": "record", + "name": "EncryptedString", + "namespace": "com.foo", + "doc": "A string that was encrypted with AES (using CTR mode), its key encrypted with RSA, and the nonce used for the encryption.", + "fields": [ + { + "name": "value", + "type": "string", + "doc": "A sequence of bytes that has been AES encrypted in CTR mode." + }, + { + "name": "nonce", + "type": "string", + "doc": "A nonce, used by the CTR encryption mode for our encrypted value. Not encrypted, not a secret." + }, + { + "name": "key", + "type": "string", + "doc": "An AES key, used to encrypt the value field, that has itself been encrypted using RSA." + } + ] + }, + "doc": "Encrypted auth_code received when user authorizes the app." + }, + { + "name": "refresh_token", + "type": "com.foo.EncryptedString", + "doc": "Encrypted refresh_token generated by using clientId and clientSecret." + }, + { + "name": "triggered_by", + "type": { + "type": "string", + "logicalType": "uuid" + }, + "doc": "ID of the user who triggered this event." + } + ] + } +} \ No newline at end of file diff --git a/test/schema-parser/avro/asyncapi-avro-113-1.9.0.json b/test/schema-parser/avro/asyncapi-avro-113-1.9.0.json new file mode 100644 index 000000000..8f139ade8 --- /dev/null +++ b/test/schema-parser/avro/asyncapi-avro-113-1.9.0.json @@ -0,0 +1,39 @@ +{ + "schemaFormat": "application/vnd.apache.avro;version=1.9.0", + "payload": [ + { + "type": "record", + "name": "Address", + "namespace": "com.example", + "fields": [ + { + "name": "streetaddress", + "type": "string" + }, + { + "name": "city", + "type": "string" + } + ] + }, + { + "type": "record", + "name": "Person", + "namespace": "com.example", + "fields": [ + { + "name": "firstname", + "type": "string" + }, + { + "name": "lastname", + "type": "string" + }, + { + "name": "address", + "type": "com.example.Address" + } + ] + } + ] +} \ No newline at end of file diff --git a/test/schema-parser/avro/asyncapi-avro-broken.json b/test/schema-parser/avro/asyncapi-avro-broken.json new file mode 100644 index 000000000..7b51ce3ec --- /dev/null +++ b/test/schema-parser/avro/asyncapi-avro-broken.json @@ -0,0 +1,24 @@ +{ + "schemaFormat": "application/vnd.apache.avro;version=1.9.0", + "payload": { + "name": "Person", + "type": "record", + "fields": [ + {"name": "name", "type": "string", "example": "Donkey"}, + {"name": "age", "type": ["null", "int"], "default": null, "example": "123"}, + { + "name": "favoriteProgrammingLanguage", + "type": {"name": "ProgrammingLanguage", "type": "enum", "symbols": ["JS", "Java", "Go", "Rust", "C"], "default": "JS"} + }, + { + "name": "address", + "type": { + "name": "Address", + "type": "record", + "fields": [{"name": "zipcode", "type": "notAValidAvroType", "example": "53003"}] + } + }, + {"name": "someid", "type": "string", "logicalType": "uuid"} + ] + } +} \ No newline at end of file diff --git a/test/schema-parser/avro/asyncapi-avro-invalid.json b/test/schema-parser/avro/asyncapi-avro-invalid.json new file mode 100644 index 000000000..ab504a1c1 --- /dev/null +++ b/test/schema-parser/avro/asyncapi-avro-invalid.json @@ -0,0 +1,6 @@ +{ + "schemaFormat": "application/vnd.apache.avro;version=1.9.0", + "payload": { + "isThisAnAvroSchema": "no" + } +} \ No newline at end of file diff --git a/test/schema-parser/avro/avro-schema-parser.spec.ts b/test/schema-parser/avro/avro-schema-parser.spec.ts new file mode 100644 index 000000000..921f4a648 --- /dev/null +++ b/test/schema-parser/avro/avro-schema-parser.spec.ts @@ -0,0 +1,363 @@ +import { ParseSchemaInput } from '../../../src/schema-parser/index'; +import { AvroSchemaParser, avroToJsonSchema } from '../../../src/schema-parser/avro-schema-parser'; +import { type Schema as AvroSchema} from "avsc"; +import * as fs from 'fs'; +import * as path from 'path'; + +const inputWithAvro182 = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.8.2.json'), 'utf8')); +const outputWithAvro182 = '{"payload":{"type":"object","required":["name","favoriteProgrammingLanguage","address"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"]},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}}}},"x-parser-original-schema-format":"application/vnd.apache.avro;version=1.8.2","x-parser-original-payload":{"type":"record","fields":[{"name":"name","type":"string","example":"Donkey"},{"name":"age","type":["null","int"],"default":null},{"name":"favoriteProgrammingLanguage","type":{"name":"ProgrammingLanguage","type":"enum","symbols":["JS","Java","Go","Rust","C"]}},{"name":"address","type":{"name":"Address","type":"record","fields":[{"name":"zipcode","type":"int","example":53003}]}}]}}'; + +const inputWithAvro190 = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.9.0.json'), 'utf8')); +const outputWithAvro190 = '{"payload":{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"Person"},"x-parser-original-schema-format":"application/vnd.apache.avro;version=1.9.0","x-parser-original-payload":{"name":"Person","type":"record","fields":[{"name":"name","type":"string","example":"Donkey"},{"name":"age","type":["null","int"],"default":null,"example":123},{"name":"favoriteProgrammingLanguage","type":{"name":"ProgrammingLanguage","type":"enum","symbols":["JS","Java","Go","Rust","C"],"default":"JS"}},{"name":"address","type":{"name":"Address","type":"record","fields":[{"name":"zipcode","type":"int","example":53003}]}},{"name":"someid","type":"string","logicalType":"uuid"}]}}'; + +const inputWithAvro190WithNamespace = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.9.0-namespace.json'), 'utf8')); +const outputWithAvro190WithNamespace = '{"payload":{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"},"x-parser-original-schema-format":"application/vnd.apache.avro;version=1.9.0","x-parser-original-payload":{"name":"Person","namespace":"com.company","type":"record","fields":[{"name":"name","type":"string","example":"Donkey"},{"name":"age","type":["null","int"],"default":null,"example":123},{"name":"favoriteProgrammingLanguage","type":{"name":"ProgrammingLanguage","type":"enum","symbols":["JS","Java","Go","Rust","C"],"default":"JS"}},{"name":"address","type":{"name":"Address","type":"record","fields":[{"name":"zipcode","type":"int","example":53003}]}},{"name":"someid","type":"string","logicalType":"uuid"}]}}'; + +const inputWithAvro190WithBindings = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.9.0-bindings.json'), 'utf8')); +const outputWithAvro190WithBindings = '{"payload":{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"},"bindings":{"kafka":{"key":{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"}},"mqtt":{"x-test":{"type":"string"}}},"x-parser-original-schema-format":"application/vnd.apache.avro;version=1.9.0","x-parser-original-payload":{"name":"Person","namespace":"com.company","type":"record","fields":[{"name":"name","type":"string","example":"Donkey"},{"name":"age","type":["null","int"],"default":null,"example":123},{"name":"favoriteProgrammingLanguage","type":{"name":"ProgrammingLanguage","type":"enum","symbols":["JS","Java","Go","Rust","C"],"default":"JS"}},{"name":"address","type":{"name":"Address","type":"record","fields":[{"name":"zipcode","type":"int","example":53003}]}},{"name":"someid","type":"string","logicalType":"uuid"}]},"x-parser-original-bindings-kafka-key":{"name":"Person","namespace":"com.company","type":"record","fields":[{"name":"name","type":"string","example":"Donkey"},{"name":"age","type":["null","int"],"default":null,"example":123},{"name":"favoriteProgrammingLanguage","type":{"name":"ProgrammingLanguage","type":"enum","symbols":["JS","Java","Go","Rust","C"],"default":"JS"}},{"name":"address","type":{"name":"Address","type":"record","fields":[{"name":"zipcode","type":"int","example":53003}]}},{"name":"someid","type":"string","logicalType":"uuid"}]}}'; + +const inputWithAvroAdditionalAttributes = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.9.0-additional-attributes.json'), 'utf8')); +const outputWithAvroAdditionalAttributes = '{"payload":{"type":"object","required":["name","serialNo","favoriteProgrammingLanguage","certifications","address","weight","height","someid"],"properties":{"name":{"type":"string","examples":["Donkey"],"minLength":0},"serialNo":{"type":"string","minLength":0,"maxLength":50},"email":{"oneOf":[{"type":"string","examples":["donkey@asyncapi.com"],"pattern":"^[\\\\w-\\\\.]+@([\\\\w-]+\\\\.)+[\\\\w-]{2,4}$"},{"type":"null"}]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123],"exclusiveMinimum":0,"exclusiveMaximum":200},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"certifications":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":500,"uniqueItems":true},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]},"country":{"oneOf":[{"type":"string"},{"type":"null"}]}}},"weight":{"type":"number","format":"float","examples":[65.1],"minimum":0,"maximum":500},"height":{"type":"number","format":"double","examples":[1.85],"minimum":0,"maximum":3},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"},"x-parser-original-schema-format":"application/vnd.apache.avro;version=1.9.0","x-parser-original-payload":{"name":"Person","namespace":"com.company","type":"record","fields":[{"name":"name","type":"string","example":"Donkey","minLength":0},{"name":"serialNo","type":"string","minLength":0,"maxLength":50},{"name":"email","type":["null","string"],"example":"donkey@asyncapi.com","pattern":"^[\\\\w-\\\\.]+@([\\\\w-]+\\\\.)+[\\\\w-]{2,4}$"},{"name":"age","type":["null","int"],"default":null,"example":123,"exclusiveMinimum":0,"exclusiveMaximum":200},{"name":"favoriteProgrammingLanguage","type":{"name":"ProgrammingLanguage","type":"enum","symbols":["JS","Java","Go","Rust","C"],"default":"JS"}},{"name":"certifications","type":{"type":"array","items":"string","minItems":1,"maxItems":500,"uniqueItems":true}},{"name":"address","type":{"name":"Address","type":"record","fields":[{"name":"zipcode","type":"int","example":53003},{"name":"country","type":["null","string"]}]}},{"name":"weight","type":"float","example":65.1,"minimum":0,"maximum":500},{"name":"height","type":"double","example":1.85,"minimum":0,"maximum":3},{"name":"someid","type":"string","logicalType":"uuid"}]}}'; + +const inputWithInvalidAvro = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-invalid.json'), 'utf8')); +const inputWithBrokenAvro = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-broken.json'), 'utf8')); + +const inputWithSubAvro190 = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-111-1.9.0.json'), 'utf8')); +const outputWithSubAvro190 = '{"payload":{"type":"object","required":["metadata","auth_code","triggered_by"],"properties":{"metadata":{"type":"object","required":["id","timestamp"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for this specific event"},"timestamp":{"type":"integer","minimum":-9223372036854776000,"maximum":9223372036854776000,"description":"Instant the event took place (not necessary when it was published)"},"correlation_id":{"oneOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"id of the event that resulted in this\\nevent being published (optional)","default":null},"publisher_context":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"null"}],"description":"optional set of key-value pairs of context to be echoed back\\nin any resulting message (like a richer\\ncorrelationId.\\n\\nThese values are likely only meaningful to the publisher\\nof the correlated event","default":null}},"description":"Metadata to be associated with every published event"},"auth_code":{"type":"object","required":["value","nonce","key"],"properties":{"value":{"type":"string","description":"A sequence of bytes that has been AES encrypted in CTR mode."},"nonce":{"type":"string","description":"A nonce, used by the CTR encryption mode for our encrypted value. Not encrypted, not a secret."},"key":{"type":"string","description":"An AES key, used to encrypt the value field, that has itself been encrypted using RSA."}},"description":"Encrypted auth_code received when user authorizes the app."},"refresh_token":{"type":"object","required":["value","nonce","key"],"properties":{"value":{"type":"string","description":"A sequence of bytes that has been AES encrypted in CTR mode."},"nonce":{"type":"string","description":"A nonce, used by the CTR encryption mode for our encrypted value. Not encrypted, not a secret."},"key":{"type":"string","description":"An AES key, used to encrypt the value field, that has itself been encrypted using RSA."}},"description":"Encrypted auth_code received when user authorizes the app."},"triggered_by":{"type":"string","format":"uuid","description":"ID of the user who triggered this event."}},"description":"An example schema to illustrate the issue","x-parser-schema-id":"com.foo.connections.ConnectionRequested"},"x-parser-original-schema-format":"application/vnd.apache.avro;version=1.9.0","x-parser-original-payload":{"type":"record","name":"ConnectionRequested","namespace":"com.foo.connections","doc":"An example schema to illustrate the issue","fields":[{"name":"metadata","type":{"type":"record","name":"EventMetadata","namespace":"com.foo","doc":"Metadata to be associated with every published event","fields":[{"name":"id","type":{"type":"string","logicalType":"uuid"},"doc":"Unique identifier for this specific event"},{"name":"timestamp","type":{"type":"long","logicalType":"timestamp-millis"},"doc":"Instant the event took place (not necessary when it was published)"},{"name":"correlation_id","type":["null",{"type":"string","logicalType":"uuid"}],"doc":"id of the event that resulted in this\\nevent being published (optional)","default":null},{"name":"publisher_context","type":["null",{"type":"map","values":{"type":"string","avro.java.string":"String"},"avro.java.string":"String"}],"doc":"optional set of key-value pairs of context to be echoed back\\nin any resulting message (like a richer\\ncorrelationId.\\n\\nThese values are likely only meaningful to the publisher\\nof the correlated event","default":null}]}},{"name":"auth_code","type":{"type":"record","name":"EncryptedString","namespace":"com.foo","doc":"A string that was encrypted with AES (using CTR mode), its key encrypted with RSA, and the nonce used for the encryption.","fields":[{"name":"value","type":"string","doc":"A sequence of bytes that has been AES encrypted in CTR mode."},{"name":"nonce","type":"string","doc":"A nonce, used by the CTR encryption mode for our encrypted value. Not encrypted, not a secret."},{"name":"key","type":"string","doc":"An AES key, used to encrypt the value field, that has itself been encrypted using RSA."}]},"doc":"Encrypted auth_code received when user authorizes the app."},{"name":"refresh_token","type":"com.foo.EncryptedString","doc":"Encrypted refresh_token generated by using clientId and clientSecret."},{"name":"triggered_by","type":{"type":"string","logicalType":"uuid"},"doc":"ID of the user who triggered this event."}]}}'; + +const inputWithOneOfReferenceAvro190 = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-113-1.9.0.json'), 'utf8')); +const outputWithOneOfReferenceAvro190 = '{"payload":{"oneOf":[{"type":"object","required":["streetaddress","city"],"properties":{"streetaddress":{"type":"string"},"city":{"type":"string"}},"x-parser-schema-id":"com.example.Address"},{"type":"object","required":["firstname","lastname"],"properties":{"firstname":{"type":"string"},"lastname":{"type":"string"},"address":{"type":"object","required":["streetaddress","city"],"properties":{"streetaddress":{"type":"string"},"city":{"type":"string"}},"x-parser-schema-id":"com.example.Address"}},"x-parser-schema-id":"com.example.Person"}]},"x-parser-original-schema-format":"application/vnd.apache.avro;version=1.9.0","x-parser-original-payload":[{"type":"record","name":"Address","namespace":"com.example","fields":[{"name":"streetaddress","type":"string"},{"name":"city","type":"string"}]},{"type":"record","name":"Person","namespace":"com.example","fields":[{"name":"firstname","type":"string"},{"name":"lastname","type":"string"},{"name":"address","type":"com.example.Address"}]}]}'; + +describe('AvroSchemaParser', function () { + const parser = AvroSchemaParser(); + + it('should return Mime Types', async function () { + expect(parser.getMimeTypes()).not.toEqual([]); + }); + it('should parse Avro schema 1.8.2', async function() { + await doTest(inputWithAvro182, outputWithAvro182); + }); + it('should parse Avro schema 1.9.0', async function() { + await doTest(inputWithAvro190, outputWithAvro190); + }); + + it('should parse Avro schema 1.9.0 with a namespace', async function() { + await doTest(inputWithAvro190WithNamespace, outputWithAvro190WithNamespace); + }); + it('should parse Avro schema in kafka bindings', async function() { + await doTest(inputWithAvro190WithBindings, outputWithAvro190WithBindings); + }); + it('should handle additional Avro attributes like', async function() { + await doTest(inputWithAvroAdditionalAttributes, outputWithAvroAdditionalAttributes); + }); + it('should validate invalid Avro schemas as invalid', async function() { + const result = await parser.validate(inputWithInvalidAvro); + expect(result).toEqual([{"message": "unknown type: undefined", "path": []}]); + }); + it('should validate valid Avro schemas', async function() { + const result = await parser.validate(inputWithAvro182); + expect(result).toHaveLength(0); + }); + it('should identify bugs in Avro schemas', async function() { + const result = await parser.validate(inputWithBrokenAvro); + expect(result).toEqual([{"message": "undefined type name: notAValidAvroType", "path": []}]); + }); + it('Issue #111 should handle pre defined records in schemas', async function() { + await doTest(inputWithSubAvro190, outputWithSubAvro190); + }); + it('Issue #113 should handle pre defined records in top level oneOf schema', async function() { + await doTest(inputWithOneOfReferenceAvro190, outputWithOneOfReferenceAvro190); + }); + + async function doTest(originalInput: ParseSchemaInput, expectedOutput: any) { + const input = {...originalInput}; + const result = await parser.parse(input); + + // Check that the return value of parse() is the expected JSON Schema. + expect(result).toEqual(JSON.parse(expectedOutput).payload); + + // Check that the message got modified, i.e. adding extensions, setting the payload, etc. + const message = (input.meta as any).message; + expect(JSON.stringify(message)).toEqual(expectedOutput); + } +}); + +const BYTES_PATTERN = '^[\u0000-\u00ff]*$'; +const INT_MIN = Math.pow(-2, 31); +const INT_MAX = Math.pow(2, 31) - 1; +const LONG_MIN = Math.pow(-2, 63); +const LONG_MAX = Math.pow(2, 63) - 1; + +describe('avroToJsonSchema()', function () { + it('transforms null values', async function () { + const result = await avroToJsonSchema({type: 'null'}); + expect(result).toEqual({type: 'null'}); + }); + + it('transforms boolean values', async function () { + const result = await avroToJsonSchema({type: 'boolean'}); + expect(result).toEqual({type: 'boolean'}); + }); + + it('transforms int values', async function () { + const result = await avroToJsonSchema({type: 'int'}); + expect(result).toEqual({type: 'integer', minimum: INT_MIN, maximum: INT_MAX}); + }); + + it('transforms long values', async function () { + const result = await avroToJsonSchema({type: 'long'}); + expect(result).toEqual({type: 'integer', minimum: LONG_MIN, maximum: LONG_MAX}); + }); + + it('transforms float values', async function () { + const result = await avroToJsonSchema({type: 'float'}); + expect(result).toEqual({type: 'number', format: 'float'}); + }); + + it('transforms double values', async function () { + const result = await avroToJsonSchema({type: 'double'}); + expect(result).toEqual({type: 'number', format: 'double'}); + }); + + it('transforms bytes values', async function () { + const result = await avroToJsonSchema({type: 'bytes'}); + expect(result).toEqual({type: 'string', pattern: BYTES_PATTERN}); + }); + + it('transforms string values', async function () { + const result = await avroToJsonSchema({type: 'string'}); + expect(result).toEqual({type: 'string'}); + }); + + it('transforms fixed values', async function () { + const schema = {type: 'fixed', size: 5}; + const result = await avroToJsonSchema(schema as AvroSchema); + expect(result).toEqual({type: 'string', pattern: BYTES_PATTERN, minLength: 5, maxLength: 5}); + }); + + it('transforms union values', async function () { + const result = await avroToJsonSchema(['null', 'int']); + expect(result).toEqual({oneOf: [{type: 'integer', minimum: INT_MIN, maximum: INT_MAX}, {type: 'null'}]}); + }); + + it('transforms map values', async function () { + const result = await avroToJsonSchema({type: 'map', values: 'long'}); + expect(result).toEqual({ + type: 'object', + additionalProperties: {type: 'integer', minimum: LONG_MIN, maximum: LONG_MAX} + }); + }); + + it('transforms array values', async function () { + const result = await avroToJsonSchema({type: 'array', items: 'long'}); + expect(result).toEqual({type: 'array', items: {type: 'integer', minimum: LONG_MIN, maximum: LONG_MAX}}); + }); + + it('transforms enum values', async function () { + const schema = { + type: 'enum', + doc: 'My test enum', + symbols: ['one', 'two', 'three'], + default: 'one' + }; + + const result = await avroToJsonSchema(schema as AvroSchema); + expect(result).toEqual({ + type: 'string', + enum: ['one', 'two', 'three'], + default: 'one', + description: 'My test enum' + }); + }); + + it('transforms record values', async function () { + const result = await avroToJsonSchema({ + type: 'record', + doc: 'My test record', + name: 'MyName', + fields: [ + {name: 'key1', type: 'long', doc: 'Key1 docs'}, + {name: 'key2', type: 'string', default: 'value2', doc: 'Key2 docs'}, + ] + }); + expect(result).toEqual({ + type: 'object', + 'x-parser-schema-id': 'MyName', + description: 'My test record', + required: ['key1'], + properties: { + key1: { + type: 'integer', + minimum: LONG_MIN, + maximum: LONG_MAX, + description: 'Key1 docs', + }, + key2: { + type: 'string', + default: 'value2', + description: 'Key2 docs', + }, + } + }); + }); + + it('assigns default values correctly in types and fields', async function () { + expect( + await avroToJsonSchema({type: 'int', default: 1}) + ).toEqual({type: 'integer', minimum: INT_MIN, maximum: INT_MAX, default: 1}); + + const schema = {type: 'record', fields: [{name: 'field1', type: 'string', default: 'AsyncAPI rocks!'}]}; + expect( + await avroToJsonSchema(schema as AvroSchema) + ).toEqual({ + type: 'object', + properties: {field1: {type: 'string', default: 'AsyncAPI rocks!'}} + }); + }); + + it('treats array Avro documents as unions', async function () { + expect( + await avroToJsonSchema([{type: 'int', default: 1}, 'string']) + ).toEqual({ + oneOf: [ + {type: 'integer', minimum: INT_MIN, maximum: INT_MAX, default: 1}, + {type: 'string'}, + ] + }); + }); +}); + +function toParseInput(raw: string): ParseSchemaInput { + const message = JSON.parse(raw); + const schemaInput = { + asyncapi: { + semver: { + version: "2.4.0", + major: 2, + minor: 4, + patch: 0 + }, + source: "", + parsed: {}, + }, + data: message.payload, + meta: { + message: message, + }, + path: [], + schemaFormat: message.schemaFormat, + defaultSchemaFormat: "application/vnd.aai.asyncapi;version=2.4.0", + }; + + return schemaInput; +} + +describe('supportExampleAttribute', function () { + it('transforms example on union values', async function () { + const schema = { + type: 'record', + name: 'MyName', + fields: [ + {name: 'example', type: ['null', 'int'], example: 3} + ] + }; + const result = await avroToJsonSchema(schema as AvroSchema); + expect(result).toEqual({ + type: 'object', + 'x-parser-schema-id': 'MyName', + properties: { + example: { + oneOf: [{ + type: 'integer', + minimum: INT_MIN, + maximum: INT_MAX, + examples: [3] + }, { + type: 'null' + } + ] + } + } + }); + }); +}); + +describe('requiredAttributesMapping()', function () { + it('support required fields', async function () { + const result = await avroToJsonSchema({ + type: 'record', + doc: 'My test record', + name: 'MyName', + fields: [ + {name: 'required1', type: ['int', 'long']}, + {name: 'required2', type: ['long']}, + {name: 'notRequiredBecauseDefault', type: 'string', default: 'value2'}, + {name: 'notRequiredBecauseUnionWithNull', type: ['null', 'string']}, + ] + }); + expect(result).toMatchObject({ + type: 'object', + 'x-parser-schema-id': 'MyName', + description: 'My test record', + required: ['required1', 'required2'] + }); + }); +}); + +describe('additionalAttributesMapping()', function () { + it('support minimum and maximum for float', async function () { + const result = await avroToJsonSchema({type: 'float', minimum: 0, maximum: 10}); + expect(result).toEqual({type: 'number', format: 'float', minimum: 0, maximum: 10}); + }); + + it('support exclusiveMinimum and exclusiveMaximum for float', async function () { + const result = await avroToJsonSchema({type: 'float', exclusiveMinimum: 0, exclusiveMaximum: 10}); + expect(result).toEqual({type: 'number', format: 'float', exclusiveMinimum: 0, exclusiveMaximum: 10}); + }); + + it('support minimum and maximum for double', async function () { + const result = await avroToJsonSchema({type: 'double', minimum: 0, maximum: 10}); + expect(result).toEqual({type: 'number', format: 'double', minimum: 0, maximum: 10}); + }); + + it('support exclusiveMinimum and exclusiveMaximum for double', async function () { + const result = await avroToJsonSchema({type: 'double', exclusiveMinimum: 0, exclusiveMaximum: 10}); + expect(result).toMatchObject({type: 'number', format: 'double', exclusiveMinimum: 0, exclusiveMaximum: 10}); + }); + + it('support minimum and maximum for long and int', async function () { + let result = await avroToJsonSchema({type: 'long', minimum: 0, maximum: 10}); + expect(result).toEqual({type: 'integer', minimum: 0, maximum: 10}); + + result = await avroToJsonSchema({type: 'int', minimum: 0, maximum: 10}); + expect(result).toEqual({type: 'integer', minimum: 0, maximum: 10}); + }); + + it('long and int type support exclusiveMinimum and exclusiveMaximum', async function () { + let result = await avroToJsonSchema({type: 'long', exclusiveMinimum: 0, exclusiveMaximum: 10}); + expect(result).toMatchObject({type: 'integer', exclusiveMinimum: 0, exclusiveMaximum: 10}); + + result = await avroToJsonSchema({type: 'int', exclusiveMinimum: 0, exclusiveMaximum: 10}); + expect(result).toMatchObject({type: 'integer', exclusiveMinimum: 0, exclusiveMaximum: 10}); + }); + + it('support pattern, minLength and maxLength for string', async function () { + const result = await avroToJsonSchema({type: 'string', pattern: '$pattern^', minLength: 1, maxLength: 10}); + expect(result).toEqual({type: 'string', pattern: '$pattern^', minLength: 1, maxLength: 10}); + }); + + it('handle non-negative integer value for minLength and maxLength', async function () { + const result = await avroToJsonSchema({type: 'string', minLength: -1, maxLength: -110}); + expect(result).toEqual({type: 'string'}); + }); + + it('support minItems and maxItems for array', async function () { + const result = await avroToJsonSchema({type: 'array', items: 'long', minItems: 0, maxItems: 10}); + expect(result).toMatchObject({type: 'array', items: {type: 'integer'}, minItems: 0, maxItems: 10}); + }); + + it('support uniqueItems for array', async function () { + const result = await avroToJsonSchema({type: 'array', items: 'long', uniqueItems: true}); + expect(result).toMatchObject({type: 'array', items: {type: 'integer'}, uniqueItems: true}); + }); +}); \ No newline at end of file From 4558bb26154c048a011a1b0a085c476b90ebd734 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Fri, 26 Aug 2022 14:15:29 +0200 Subject: [PATCH 028/126] refactor: add OpenAPI Schema Parser (#578) --- package-lock.json | 41 +-- package.json | 1 + src/schema-parser/openapi-schema-parser.ts | 113 ++++++++ src/schema-parser/openapi/schema_v3.ts | 274 ++++++++++++++++++ test/schema-parser/openapi/invalid.json | 13 + .../openapi/openapi-schema-parser.spec.ts | 92 ++++++ test/schema-parser/openapi/valid.json | 50 ++++ 7 files changed, 566 insertions(+), 18 deletions(-) create mode 100644 src/schema-parser/openapi-schema-parser.ts create mode 100644 src/schema-parser/openapi/schema_v3.ts create mode 100644 test/schema-parser/openapi/invalid.json create mode 100644 test/schema-parser/openapi/openapi-schema-parser.spec.ts create mode 100644 test/schema-parser/openapi/valid.json diff --git a/package-lock.json b/package-lock.json index 466d894ab..60175b4e8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^3.1.0", + "@openapi-contrib/openapi-schema-to-json-schema": "^3.2.0", "@stoplight/spectral-core": "^1.10.1", "@stoplight/spectral-functions": "^1.5.1", "@stoplight/spectral-parsers": "^1.0.1", @@ -1580,6 +1581,14 @@ "@octokit/openapi-types": "^7.0.0" } }, + "node_modules/@openapi-contrib/openapi-schema-to-json-schema": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@openapi-contrib/openapi-schema-to-json-schema/-/openapi-schema-to-json-schema-3.2.0.tgz", + "integrity": "sha512-Gj6C0JwCr8arj0sYuslWXUBSP/KnUlEGnPW4qxlXvAl543oaNQgMgIgkQUA6vs5BCCvwTEiL8m/wdWzfl4UvSw==", + "dependencies": { + "fast-deep-equal": "^3.1.3" + } + }, "node_modules/@semantic-release/commit-analyzer": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/@semantic-release/commit-analyzer/-/commit-analyzer-8.0.1.tgz", @@ -4284,12 +4293,6 @@ "node": ">=10" } }, - "node_modules/eslint/node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, "node_modules/eslint/node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -4568,9 +4571,9 @@ } }, "node_modules/fast-deep-equal": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz", - "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==" + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, "node_modules/fast-glob": { "version": "3.2.5", @@ -16378,6 +16381,14 @@ "@octokit/openapi-types": "^7.0.0" } }, + "@openapi-contrib/openapi-schema-to-json-schema": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@openapi-contrib/openapi-schema-to-json-schema/-/openapi-schema-to-json-schema-3.2.0.tgz", + "integrity": "sha512-Gj6C0JwCr8arj0sYuslWXUBSP/KnUlEGnPW4qxlXvAl543oaNQgMgIgkQUA6vs5BCCvwTEiL8m/wdWzfl4UvSw==", + "requires": { + "fast-deep-equal": "^3.1.3" + } + }, "@semantic-release/commit-analyzer": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/@semantic-release/commit-analyzer/-/commit-analyzer-8.0.1.tgz", @@ -18455,12 +18466,6 @@ "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", "dev": true }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, "has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -18718,9 +18723,9 @@ } }, "fast-deep-equal": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz", - "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==" + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, "fast-glob": { "version": "3.2.5", diff --git a/package.json b/package.json index fb8477f38..7cf45f2fa 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ }, "dependencies": { "@asyncapi/specs": "^3.1.0", + "@openapi-contrib/openapi-schema-to-json-schema": "^3.2.0", "@stoplight/spectral-core": "^1.10.1", "@stoplight/spectral-functions": "^1.5.1", "@stoplight/spectral-parsers": "^1.0.1", diff --git a/src/schema-parser/openapi-schema-parser.ts b/src/schema-parser/openapi-schema-parser.ts new file mode 100644 index 000000000..2c1748b18 --- /dev/null +++ b/src/schema-parser/openapi-schema-parser.ts @@ -0,0 +1,113 @@ +import { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from "../schema-parser"; +import type { AsyncAPISchema, SchemaValidateResult } from '../types'; +import Ajv, { ErrorObject, ValidateFunction } from "ajv"; +import { schemaV3 } from './openapi/schema_v3' +const toJsonSchema = require('@openapi-contrib/openapi-schema-to-json-schema'); + +const ajv = new Ajv({ + allErrors: true, + strict: false, + logger: false, +}); + +ajv.addSchema(schemaV3, "openapi"); + +export function OpenAPISchemaParser(): SchemaParser { + return { + validate, + parse, + getMimeTypes, + } +} + +async function validate(input: ValidateSchemaInput): Promise { + const validator = ajv.getSchema("openapi") as ValidateFunction; + + let result: SchemaValidateResult[] = [] + const valid = validator(input.data); + if (!valid && validator.errors) { + result = ajvToSpectralResult([...validator.errors]); + } + + return result; +} + +async function parse(input: ParseSchemaInput): Promise { + const transformed = toJsonSchema(input.data, { + cloneSchema: true, + keepNotSupported: [ + 'discriminator', + 'readOnly', + 'writeOnly', + 'deprecated', + 'xml', + 'example', + ], + }); + + iterateSchema(transformed); + + const message = (input.meta as any).message + if (message !== undefined) { + message['x-parser-original-schema-format'] = input.schemaFormat || input.defaultSchemaFormat; + message['x-parser-original-payload'] = message.payload; + message.payload = transformed; + delete message.schemaFormat; + }; + + return transformed; +} + +function getMimeTypes() { + return [ + 'application/vnd.oai.openapi;version=3.0.0', + 'application/vnd.oai.openapi+json;version=3.0.0', + 'application/vnd.oai.openapi+yaml;version=3.0.0', + ]; +} + +function ajvToSpectralResult(errors: ErrorObject[]): SchemaValidateResult[] { + return errors.map(error => { + const errorPath = error.instancePath.replace(/^\//, '').split('/'); + + return { + message: error.message, + path: errorPath, + } as SchemaValidateResult; + }); +} +function iterateSchema(schema: any) { + if (schema.example !== undefined) { + const examples = schema.examples || []; + examples.push(schema.example); + schema.examples = examples; + delete schema.example; + } + + if (schema.$schema !== undefined) { + delete schema.$schema; + } + + aliasProps(schema.properties); + aliasProps(schema.patternProperties); + aliasProps(schema.additionalProperties); + aliasProps(schema.items); + aliasProps(schema.additionalItems); + aliasProps(schema.oneOf); + aliasProps(schema.anyOf); + aliasProps(schema.allOf); + aliasProps(schema.not); +} + +function aliasProps(obj: any) { + for (const key in obj) { + const prop = obj[key]; + + if (prop.xml !== undefined) { + prop['x-xml'] = prop.xml; + delete prop.xml; + } + + iterateSchema(obj[key]); + } +} \ No newline at end of file diff --git a/src/schema-parser/openapi/schema_v3.ts b/src/schema-parser/openapi/schema_v3.ts new file mode 100644 index 000000000..da1b3fc8e --- /dev/null +++ b/src/schema-parser/openapi/schema_v3.ts @@ -0,0 +1,274 @@ +// From https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json +export const schemaV3 ={ + "type": "object", + "definitions": { + "Reference": { + "type": "object", + "required": ["$ref"], + "patternProperties": { + "^\\$ref$": { + "type": "string", + "format": "uri-reference" + } + } + }, + "Discriminator": { + "type": "object", + "required": ["propertyName"], + "properties": { + "propertyName": { + "type": "string" + }, + "mapping": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "ExternalDocumentation": { + "type": "object", + "required": ["url"], + "properties": { + "description": { + "type": "string" + }, + "url": { + "type": "string", + "format": "uri-reference" + } + }, + "patternProperties": { + "^x-": {} + }, + "additionalProperties": false + }, + "XML": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string", + "format": "uri" + }, + "prefix": { + "type": "string" + }, + "attribute": { + "type": "boolean", + "default": false + }, + "wrapped": { + "type": "boolean", + "default": false + } + }, + "patternProperties": { + "^x-": {} + }, + "additionalProperties": false + } + }, + "properties": { + "title": { + "type": "string" + }, + "multipleOf": { + "type": "number", + "exclusiveMinimum": 0 + }, + "maximum": { + "type": "number" + }, + "exclusiveMaximum": { + "type": "boolean", + "default": false + }, + "minimum": { + "type": "number" + }, + "exclusiveMinimum": { + "type": "boolean", + "default": false + }, + "maxLength": { + "type": "integer", + "minimum": 0 + }, + "minLength": { + "type": "integer", + "minimum": 0, + "default": 0 + }, + "pattern": { + "type": "string", + "format": "regex" + }, + "maxItems": { + "type": "integer", + "minimum": 0 + }, + "minItems": { + "type": "integer", + "minimum": 0, + "default": 0 + }, + "uniqueItems": { + "type": "boolean", + "default": false + }, + "maxProperties": { + "type": "integer", + "minimum": 0 + }, + "minProperties": { + "type": "integer", + "minimum": 0, + "default": 0 + }, + "required": { + "type": "array", + "items": { + "type": "string" + }, + "minItems": 1, + "uniqueItems": true + }, + "enum": { + "type": "array", + "items": {}, + "minItems": 1, + "uniqueItems": false + }, + "type": { + "type": "string", + "enum": ["array", "boolean", "integer", "number", "object", "string"] + }, + "not": { + "oneOf": [ + { + "$ref": "#" + }, + { + "$ref": "#/definitions/Reference" + } + ] + }, + "allOf": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#" + }, + { + "$ref": "#/definitions/Reference" + } + ] + } + }, + "oneOf": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#" + }, + { + "$ref": "#/definitions/Reference" + } + ] + } + }, + "anyOf": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#" + }, + { + "$ref": "#/definitions/Reference" + } + ] + } + }, + "items": { + "oneOf": [ + { + "$ref": "#" + }, + { + "$ref": "#/definitions/Reference" + } + ] + }, + "properties": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#" + }, + { + "$ref": "#/definitions/Reference" + } + ] + } + }, + "additionalProperties": { + "oneOf": [ + { + "$ref": "#" + }, + { + "$ref": "#/definitions/Reference" + }, + { + "type": "boolean" + } + ], + "default": true + }, + "description": { + "type": "string" + }, + "format": { + "type": "string" + }, + "default": {}, + "nullable": { + "type": "boolean", + "default": false + }, + "discriminator": { + "$ref": "#/definitions/Discriminator" + }, + "readOnly": { + "type": "boolean", + "default": false + }, + "writeOnly": { + "type": "boolean", + "default": false + }, + "example": {}, + "externalDocs": { + "$ref": "#/definitions/ExternalDocumentation" + }, + "deprecated": { + "type": "boolean", + "default": false + }, + "xml": { + "$ref": "#/definitions/XML" + } + }, + "patternProperties": { + "^x-": {} + }, + "additionalProperties": false +} \ No newline at end of file diff --git a/test/schema-parser/openapi/invalid.json b/test/schema-parser/openapi/invalid.json new file mode 100644 index 000000000..838c5a61d --- /dev/null +++ b/test/schema-parser/openapi/invalid.json @@ -0,0 +1,13 @@ +{ + "schemaFormat":"application/vnd.oai.openapi;version=3.0.0", + "payload": { + "properties": { + "name": { + "type": "nonexistent" + }, + "surname": { + "format": {} + } + } + } +} \ No newline at end of file diff --git a/test/schema-parser/openapi/openapi-schema-parser.spec.ts b/test/schema-parser/openapi/openapi-schema-parser.spec.ts new file mode 100644 index 000000000..9076f2163 --- /dev/null +++ b/test/schema-parser/openapi/openapi-schema-parser.spec.ts @@ -0,0 +1,92 @@ +import { ParseSchemaInput, ValidateSchemaInput } from '../../../src/schema-parser/index'; +import { OpenAPISchemaParser } from '../../../src/schema-parser/openapi-schema-parser'; +import * as fs from 'fs'; +import * as path from 'path'; + +const inputWithValidOpenApi3 = toParseInput(fs.readFileSync(path.resolve(__dirname, './valid.json'), 'utf8')); +const outputWithValidOpenApi3 = '{"payload":{"type":["object","null"],"properties":{"name":{"type":"string"},"discriminatorTest":{"discriminator":{"propertyName":"objectType"},"oneOf":[{"type":"object","properties":{"objectType":{"type":"string"},"prop1":{"type":"string"}}},{"type":"object","properties":{"objectType":{"type":"string"},"prop2":{"type":"string"}}}]},"test":{"type":"object","properties":{"testing":{"type":"string"}}}},"examples":[{"name":"Fran"}]},"x-parser-original-schema-format":"application/vnd.oai.openapi;version=3.0.0","x-parser-original-payload":{"type":"object","nullable":true,"example":{"name":"Fran"},"properties":{"name":{"type":"string"},"discriminatorTest":{"discriminator":{"propertyName":"objectType"},"oneOf":[{"type":"object","properties":{"objectType":{"type":"string"},"prop1":{"type":"string"}}},{"type":"object","properties":{"objectType":{"type":"string"},"prop2":{"type":"string"}}}]},"test":{"type":"object","properties":{"testing":{"type":"string"}}}}}}'; + +const inputWithInvalidOpenApi3 = toParseInput(fs.readFileSync(path.resolve(__dirname, './invalid.json'), 'utf8')); + +describe('OpenAPISchemaParser', function () { + const parser = OpenAPISchemaParser(); + + it('should return Mime Types', async function () { + expect(parser.getMimeTypes()).not.toEqual([]); + }); + it('should parse OpenAPI 3', async function() { + await doParseTest(inputWithValidOpenApi3, outputWithValidOpenApi3); + }); + it('should validate valid OpenAPI 3', async function() { + const result = await parser.validate(inputWithValidOpenApi3); + expect(result).toHaveLength(0); + }); + + it('should validate invalid OpenAPI 3', async function() { + const result = await parser.validate(inputWithInvalidOpenApi3); + expect(result).toHaveLength(6); + expect(result).toEqual([ + { + "message": "must be equal to one of the allowed values", + "path": ["properties", "name", "type"] + }, + { + "message": "must have required property '$ref'", + "path": ["properties", "name"] + }, + { + "message": "must match exactly one schema in oneOf", + "path": ["properties","name"] + }, + { + "message": "must be string", + "path": ["properties","surname","format"] + }, + { + "message": "must have required property '$ref'", + "path": ["properties","surname"] + }, + { + "message": "must match exactly one schema in oneOf", + "path": ["properties","surname"] + } + ]); + }); + + async function doParseTest(originalInput: ParseSchemaInput, expectedOutput: any) { + const input = {...originalInput}; + const result = await parser.parse(input); + + // Check that the return value of parse() is the expected JSON Schema. + expect(result).toEqual(JSON.parse(expectedOutput).payload); + + // Check that the message got modified, i.e. adding extensions, setting the payload, etc. + const message = (input.meta as any).message; + expect(JSON.stringify(message)).toEqual(expectedOutput); + } +}); + +function toParseInput(raw: string): ParseSchemaInput | ValidateSchemaInput { + const message = JSON.parse(raw); + const schemaInput = { + asyncapi: { + semver: { + version: "2.4.0", + major: 2, + minor: 4, + patch: 0 + }, + source: "", + parsed: {}, + }, + data: message.payload, + meta: { + message: message, + }, + path: ["channels", "myChannel", "publish", "message", "payload"], + schemaFormat: message.schemaFormat, + defaultSchemaFormat: "application/vnd.aai.asyncapi;version=2.4.0", + }; + + return schemaInput; +} diff --git a/test/schema-parser/openapi/valid.json b/test/schema-parser/openapi/valid.json new file mode 100644 index 000000000..b1f8ecad4 --- /dev/null +++ b/test/schema-parser/openapi/valid.json @@ -0,0 +1,50 @@ +{ + "schemaFormat":"application/vnd.oai.openapi;version=3.0.0", + "payload":{ + "type":"object", + "nullable":true, + "example":{ + "name":"Fran" + }, + "properties":{ + "name":{ + "type":"string" + }, + "discriminatorTest":{ + "discriminator":{"propertyName": "objectType"}, + "oneOf":[ + { + "type":"object", + "properties":{ + "objectType":{ + "type":"string" + }, + "prop1":{ + "type":"string" + } + } + }, + { + "type":"object", + "properties":{ + "objectType":{ + "type":"string" + }, + "prop2":{ + "type":"string" + } + } + } + ] + }, + "test":{ + "type":"object", + "properties":{ + "testing":{ + "type":"string" + } + } + } + } + } + } \ No newline at end of file From dbd5e0d3665b3f8c21fd255ccb10d8d24623e9a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Mon, 29 Aug 2022 12:51:24 +0200 Subject: [PATCH 029/126] refactor: integrate custom schemas with parser and spectral (#579) --- package-lock.json | 1284 ++++++++++++++--- package.json | 8 +- src/constants.ts | 1 + src/custom-operations/parse-schema.ts | 17 +- src/parse.ts | 5 +- src/parser.ts | 13 +- src/schema-parser/asyncapi-schema-parser.ts | 9 +- src/schema-parser/avro-schema-parser.ts | 62 +- src/schema-parser/index.ts | 14 +- src/schema-parser/openapi-schema-parser.ts | 50 +- src/schema-parser/raml-schema-parser.ts | 38 +- src/schema-parser/spectral-rule-v2.ts | 101 ++ src/spectral.ts | 24 + src/utils.ts | 4 + test/custom-operations/parse-schema.spec.ts | 96 ++ test/parser.spec.ts | 3 +- .../asyncapi-schema-parser.spec.ts | 6 +- .../avro/avro-schema-parser.spec.ts | 49 +- .../openapi/openapi-schema-parser.spec.ts | 13 +- .../raml/raml-schema-parser.spec.ts | 15 +- test/schema-parser/spectral-rule-v2.spec.ts | 305 ++++ 21 files changed, 1746 insertions(+), 371 deletions(-) create mode 100644 src/schema-parser/spectral-rule-v2.ts create mode 100644 src/spectral.ts create mode 100644 test/custom-operations/parse-schema.spec.ts create mode 100644 test/schema-parser/spectral-rule-v2.spec.ts diff --git a/package-lock.json b/package-lock.json index 60175b4e8..81c6ec26b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,10 +11,10 @@ "dependencies": { "@asyncapi/specs": "^3.1.0", "@openapi-contrib/openapi-schema-to-json-schema": "^3.2.0", - "@stoplight/spectral-core": "^1.10.1", - "@stoplight/spectral-functions": "^1.5.1", - "@stoplight/spectral-parsers": "^1.0.1", - "@stoplight/spectral-rulesets": "^1.4.3", + "@stoplight/spectral-core": "^1.13.1", + "@stoplight/spectral-functions": "^1.7.1", + "@stoplight/spectral-parsers": "^1.0.2", + "@stoplight/spectral-rulesets": "^1.12.0", "ajv": "^8.11.0", "avsc": "^5.7.4", "js-yaml": "^3.14.1", @@ -1393,9 +1393,9 @@ } }, "node_modules/@jsep-plugin/regex": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.1.tgz", - "integrity": "sha512-GroTtexnEfdVOvvALjW/JfV+wgRMadZKEA/lf9gE09zJejHhcBl+cqJxk2px9ub8k3gUrPe1j81Z1V4RDaSy8A==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.2.tgz", + "integrity": "sha512-Nn/Bcaww8zOebMDqNmGlhAWPWhIr/8S8lGIgaB/fSqev5xaO5uKy5i4qvTh63GpR+VzKqimgxDdcxdcRuCJXSw==", "engines": { "node": ">= 10.16.0" }, @@ -1404,9 +1404,9 @@ } }, "node_modules/@jsep-plugin/ternary": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.0.tgz", - "integrity": "sha512-dS+vdBz0y71mRspSsv/c+YUm8xXKiEqgZF7+ERxNLWyycMOOtR9CQjV+MexpTCCh76iBrMHcWul9rzoZdfJm0g==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.2.tgz", + "integrity": "sha512-gXguJc09uCrqWt1MD7L1+ChO32g4UH4BYGpHPoQRLhyU7pAPPRA7cvKbyjoqhnUlLutiXvLzB5hVVawPKax8jw==", "engines": { "node": ">= 10.16.0" }, @@ -1962,13 +1962,29 @@ "@sinonjs/commons": "^1.7.0" } }, + "node_modules/@stoplight/better-ajv-errors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.3.tgz", + "integrity": "sha512-0p9uXkuB22qGdNfy3VeEhxkU5uwvp/KrBTAbrLBURv6ilxIVwanKwjMc41lQfIVgPGcOkmLbTolfFrSsueu7zA==", + "dependencies": { + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" + }, + "engines": { + "node": "^12.20 || >= 14.13" + }, + "peerDependencies": { + "ajv": ">=8" + } + }, "node_modules/@stoplight/json": { - "version": "3.17.2", - "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.17.2.tgz", - "integrity": "sha512-NwIVzanXRUy291J5BMkncCZRMG1Lx+aq+VidGQgfkJjgo8vh1Y/PSAz7fSU8gVGSZBCcqmOkMI7R4zw7DlfTwA==", + "version": "3.20.1", + "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.20.1.tgz", + "integrity": "sha512-FXfud+uWgIj1xv6nUO9WnmgmnVikaxJcbtR4XQt4C42n5c2qua3U05Z/3B57hP5TJRSj+tpn9ID6/bFeyYYlEg==", "dependencies": { - "@stoplight/ordered-object-literal": "^1.0.2", - "@stoplight/types": "^12.3.0", + "@stoplight/ordered-object-literal": "^1.0.3", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^13.6.0", "jsonc-parser": "~2.2.1", "lodash": "^4.17.21", "safe-stable-stringify": "^1.1" @@ -2015,6 +2031,18 @@ "node": ">=8.3.0" } }, + "node_modules/@stoplight/json/node_modules/@stoplight/types": { + "version": "13.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", + "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", + "dependencies": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + }, + "engines": { + "node": "^12.20 || >=14.13" + } + }, "node_modules/@stoplight/lifecycle": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/@stoplight/lifecycle/-/lifecycle-2.3.2.tgz", @@ -2027,9 +2055,9 @@ } }, "node_modules/@stoplight/ordered-object-literal": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@stoplight/ordered-object-literal/-/ordered-object-literal-1.0.2.tgz", - "integrity": "sha512-0ZMS/9sNU3kVo/6RF3eAv7MK9DY8WLjiVJB/tVyfF2lhr2R4kqh534jZ0PlrFB9CRXrdndzn1DbX6ihKZXft2w==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@stoplight/ordered-object-literal/-/ordered-object-literal-1.0.3.tgz", + "integrity": "sha512-cjJ7PPkhgTXNMTkevAlmyrx9xOOCaI3c6rEeYb6VitL1o1WcZtrz9KyFyISmTmUa7yYTiy2IS/ud9S8s2sn3+A==", "engines": { "node": ">=8" } @@ -2043,28 +2071,30 @@ } }, "node_modules/@stoplight/spectral-core": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.11.0.tgz", - "integrity": "sha512-82xWLbQn67cLLKL7lQJsXTFLIHSOlwv4Faq2IxsUFMWqQ84znwd7FxOkfk9K2I0ncR+XuaftWRtN9ySvVSJkAw==", + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.13.1.tgz", + "integrity": "sha512-0az1LZ/A7b6u8HESzBMv65syZXjsYhpQxvtQ2F9D50G7+AvvDsvQa3myk1J3lz4hY4dU1quW2xGgan9mE+XDhA==", "dependencies": { - "@stoplight/better-ajv-errors": "1.0.1", - "@stoplight/json": "~3.17.1", + "@stoplight/better-ajv-errors": "1.0.3", + "@stoplight/json": "~3.20.1", "@stoplight/lifecycle": "2.3.2", "@stoplight/path": "1.3.2", "@stoplight/spectral-parsers": "^1.0.0", "@stoplight/spectral-ref-resolver": "^1.0.0", "@stoplight/spectral-runtime": "^1.0.0", - "@stoplight/types": "12.3.0", + "@stoplight/types": "~13.6.0", + "@types/es-aggregate-error": "^1.0.2", + "@types/json-schema": "^7.0.11", "ajv": "^8.6.0", "ajv-errors": "~3.0.0", "ajv-formats": "~2.1.0", "blueimp-md5": "2.18.0", - "json-schema": "0.4.0", + "es-aggregate-error": "^1.0.7", "jsonpath-plus": "6.0.1", "lodash": "~4.17.21", "lodash.topath": "^4.5.2", - "minimatch": "3.0.4", - "nimma": "0.1.8", + "minimatch": "3.1.2", + "nimma": "0.2.2", "pony-cause": "^1.0.0", "simple-eval": "1.0.0", "tslib": "^2.3.0" @@ -2073,19 +2103,16 @@ "node": "^12.20 || >= 14.13" } }, - "node_modules/@stoplight/spectral-core/node_modules/@stoplight/better-ajv-errors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.1.tgz", - "integrity": "sha512-rgxT+ZMeZbYRiOLNk6Oy6e/Ig1iQKo0IL8v/Y9E/0FewzgtkGs/p5dMeUpIFZXWj3RZaEPmfL9yh0oUEmNXZjg==", + "node_modules/@stoplight/spectral-core/node_modules/@stoplight/types": { + "version": "13.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", + "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", "dependencies": { - "jsonpointer": "^5.0.0", - "leven": "^3.1.0" + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" }, "engines": { - "node": "^12.20 || >= 14.13" - }, - "peerDependencies": { - "ajv": ">=8" + "node": "^12.20 || >=14.13" } }, "node_modules/@stoplight/spectral-core/node_modules/ajv-errors": { @@ -2097,9 +2124,9 @@ } }, "node_modules/@stoplight/spectral-formats": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.1.0.tgz", - "integrity": "sha512-ZpEHNkS30qfPbxHJAf3OwZ7g0LkSG2UZXhl3/Jsf6WGivVcuQUY+ZK4c1ZJqBNct1JF1ujP3FgF26xDdTrOtDw==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.2.0.tgz", + "integrity": "sha512-idvn7r8fvQjY/KeJpKgXQ5eJhce6N6/KoKWMPSh5yyvYDpn+bkU4pxAD79jOJaDnIyKJd1jjTPEJWnxbS0jj6A==", "dependencies": { "@stoplight/json": "^3.17.0", "@stoplight/spectral-core": "^1.8.0", @@ -2111,16 +2138,15 @@ } }, "node_modules/@stoplight/spectral-functions": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-functions/-/spectral-functions-1.6.1.tgz", - "integrity": "sha512-f4cFtbI35bQtY0t4fYhKtS+/nMU3UsAeFlqm4tARGGG5WjOv4ieCFNFbgodKNiO3F4O+syMEjVQuXlBNPuY7jw==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-functions/-/spectral-functions-1.7.1.tgz", + "integrity": "sha512-UWeUrxc1pu45ZNYKtK3OloMpkUNTPqwpmjbGUn4oEnbqrLEYu/B2oOg66EtGcadOBEsdOb7f5vaPlhUNNrpEpQ==", "dependencies": { - "@stoplight/better-ajv-errors": "1.0.1", - "@stoplight/json": "~3.17.1", + "@stoplight/better-ajv-errors": "1.0.3", + "@stoplight/json": "^3.17.1", "@stoplight/spectral-core": "^1.7.0", "@stoplight/spectral-formats": "^1.0.0", "@stoplight/spectral-runtime": "^1.1.0", - "@stoplight/types": "12.3.0", "ajv": "^8.6.3", "ajv-draft-04": "~1.0.0", "ajv-errors": "~3.0.0", @@ -2132,21 +2158,6 @@ "node": ">=12" } }, - "node_modules/@stoplight/spectral-functions/node_modules/@stoplight/better-ajv-errors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.1.tgz", - "integrity": "sha512-rgxT+ZMeZbYRiOLNk6Oy6e/Ig1iQKo0IL8v/Y9E/0FewzgtkGs/p5dMeUpIFZXWj3RZaEPmfL9yh0oUEmNXZjg==", - "dependencies": { - "jsonpointer": "^5.0.0", - "leven": "^3.1.0" - }, - "engines": { - "node": "^12.20 || >= 14.13" - }, - "peerDependencies": { - "ajv": ">=8" - } - }, "node_modules/@stoplight/spectral-functions/node_modules/ajv-draft-04": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", @@ -2169,32 +2180,29 @@ } }, "node_modules/@stoplight/spectral-parsers": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-parsers/-/spectral-parsers-1.0.1.tgz", - "integrity": "sha512-JGKlrTxhjUzIGo2FOCf8Qp0WKTWXedoRNPovqYPE8pAp08epqU8DzHwl/i46BGH5yfTmouKMZgBN/PV2+Cr5jw==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-parsers/-/spectral-parsers-1.0.2.tgz", + "integrity": "sha512-ZQXknJ+BM5Re4Opj4cgVlHgG2qyOk/wznKJq3Vf1qsBEg2CNzN0pJmSB0deRqW0kArqm44qpb8c+cz3F2rgMtw==", "dependencies": { - "@stoplight/json": "3.17.0", - "@stoplight/types": "12.3.0", - "@stoplight/yaml": "4.2.2", + "@stoplight/json": "~3.20.1", + "@stoplight/types": "^13.6.0", + "@stoplight/yaml": "~4.2.3", "tslib": "^2.3.1" }, "engines": { "node": ">=12" } }, - "node_modules/@stoplight/spectral-parsers/node_modules/@stoplight/json": { - "version": "3.17.0", - "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.17.0.tgz", - "integrity": "sha512-WW0z2bb0D4t8FTl+zNTCu46J8lEOsrUhBPgwEYQ3Ri2Y0MiRE4U1/9ZV8Ki+pIJznZgY9i42bbFwOBxyZn5/6w==", + "node_modules/@stoplight/spectral-parsers/node_modules/@stoplight/types": { + "version": "13.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", + "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", "dependencies": { - "@stoplight/ordered-object-literal": "^1.0.2", - "@stoplight/types": "^12.3.0", - "jsonc-parser": "~2.2.1", - "lodash": "^4.17.21", - "safe-stable-stringify": "^1.1" + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" }, "engines": { - "node": ">=8.3.0" + "node": "^12.20 || >=14.13" } }, "node_modules/@stoplight/spectral-ref-resolver": { @@ -2213,18 +2221,18 @@ } }, "node_modules/@stoplight/spectral-rulesets": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-rulesets/-/spectral-rulesets-1.6.0.tgz", - "integrity": "sha512-iRfcG5Ucp2OPGszaergiN+shVkD9XO1VKRmFqXlYbLxI8oi0jBAFXQr+tKJGt6ErXBQQoaIx2Liiirgq7kR3Nw==", + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-rulesets/-/spectral-rulesets-1.12.0.tgz", + "integrity": "sha512-ktSO5YPzYzscnGTQffyKJwrzsR2i5cpPUC4yBp0isc6mOeiVec4r9sjMUN1mJt0RVnXi509vd0+YlMthFIZYnw==", "dependencies": { - "@asyncapi/specs": "^2.13.0", - "@stoplight/better-ajv-errors": "1.0.1", + "@asyncapi/specs": "^2.14.0", + "@stoplight/better-ajv-errors": "1.0.3", "@stoplight/json": "^3.17.0", "@stoplight/spectral-core": "^1.8.1", - "@stoplight/spectral-formats": "^1.1.0", + "@stoplight/spectral-formats": "^1.2.0", "@stoplight/spectral-functions": "^1.5.1", "@stoplight/spectral-runtime": "^1.1.1", - "@stoplight/types": "^12.3.0", + "@stoplight/types": "^13.6.0", "@types/json-schema": "^7.0.7", "ajv": "^8.8.2", "ajv-formats": "~2.1.0", @@ -2241,19 +2249,16 @@ "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-2.14.0.tgz", "integrity": "sha512-hHsYF6XsYNIKb1P2rXaooF4H+uKKQ4b/Ljxrk3rZ3riEDiSxMshMEfb1fUlw9Yj4V4OmJhjXwkNvw8W59AXv1A==" }, - "node_modules/@stoplight/spectral-rulesets/node_modules/@stoplight/better-ajv-errors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.1.tgz", - "integrity": "sha512-rgxT+ZMeZbYRiOLNk6Oy6e/Ig1iQKo0IL8v/Y9E/0FewzgtkGs/p5dMeUpIFZXWj3RZaEPmfL9yh0oUEmNXZjg==", + "node_modules/@stoplight/spectral-rulesets/node_modules/@stoplight/types": { + "version": "13.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", + "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", "dependencies": { - "jsonpointer": "^5.0.0", - "leven": "^3.1.0" + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" }, "engines": { - "node": "^12.20 || >= 14.13" - }, - "peerDependencies": { - "ajv": ">=8" + "node": "^12.20 || >=14.13" } }, "node_modules/@stoplight/spectral-rulesets/node_modules/json-schema-traverse": { @@ -2291,12 +2296,12 @@ } }, "node_modules/@stoplight/yaml": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@stoplight/yaml/-/yaml-4.2.2.tgz", - "integrity": "sha512-N086FU8pmSpjc5TvMBjmlTniZVh3OXzmEh6SYljSLiuv6aMxgjyjf13YrAlUqgu0b4b6pQ5zmkjrfo9i0SiLsw==", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/@stoplight/yaml/-/yaml-4.2.3.tgz", + "integrity": "sha512-Mx01wjRAR9C7yLMUyYFTfbUf5DimEpHMkRDQ1PKLe9dfNILbgdxyrncsOXM3vCpsQ1Hfj4bPiGl+u4u6e9Akqw==", "dependencies": { "@stoplight/ordered-object-literal": "^1.0.1", - "@stoplight/types": "^12.0.0", + "@stoplight/types": "^13.0.0", "@stoplight/yaml-ast-parser": "0.0.48", "tslib": "^2.2.0" }, @@ -2309,6 +2314,18 @@ "resolved": "https://registry.npmjs.org/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.48.tgz", "integrity": "sha512-sV+51I7WYnLJnKPn2EMWgS4EUfoP4iWEbrWwbXsj0MZCB/xOK8j6+C9fntIdOM50kpx45ZLC3s6kwKivWuqvyg==" }, + "node_modules/@stoplight/yaml/node_modules/@stoplight/types": { + "version": "13.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", + "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", + "dependencies": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + }, + "engines": { + "node": "^12.20 || >=14.13" + } + }, "node_modules/@tootallnate/once": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", @@ -2383,6 +2400,14 @@ "@babel/types": "^7.3.0" } }, + "node_modules/@types/es-aggregate-error": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@types/es-aggregate-error/-/es-aggregate-error-1.0.2.tgz", + "integrity": "sha512-erqUpFXksaeR2kejKnhnjZjbFxUpGZx4Z7ydNL9ie8tEhXPiZTsLeUDJ6aR1F8j5wWUAtOAQWUqkc7givBJbBA==", + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@types/graceful-fs": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz", @@ -2446,8 +2471,7 @@ "node_modules/@types/node": { "version": "17.0.21", "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.21.tgz", - "integrity": "sha512-DBZCJbhII3r90XbQxI8Y9IjjiiOGlZ0Hr32omXIZvwwZ7p4DMMXGrKXVyPfuoBOri9XNtL0UK69jYIBIsRX3QQ==", - "dev": true + "integrity": "sha512-DBZCJbhII3r90XbQxI8Y9IjjiiOGlZ0Hr32omXIZvwwZ7p4DMMXGrKXVyPfuoBOri9XNtL0UK69jYIBIsRX3QQ==" }, "node_modules/@types/normalize-package-data": { "version": "2.4.0", @@ -2789,9 +2813,9 @@ } }, "node_modules/astring": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/astring/-/astring-1.8.1.tgz", - "integrity": "sha512-Aj3mbwVzj7Vve4I/v2JYOPFkCGM2YS7OqQTNSxmUR+LECRpokuPgAYghePgr6SALDo5bD5DlfbSaYjOzGJZOLQ==", + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/astring/-/astring-1.8.3.tgz", + "integrity": "sha512-sRpyiNrx2dEYIMmUXprS8nlpRg2Drs8m9ElX9vVEXaCB4XEAJhKfs7IcX0IwShjuOAjLR6wzIrgoptz1n19i1A==", "bin": { "astring": "bin/astring" } @@ -3089,6 +3113,18 @@ "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", "dev": true }, + "node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -3708,6 +3744,21 @@ "node": ">=0.10.0" } }, + "node_modules/define-properties": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", + "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", + "dependencies": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -3956,6 +4007,78 @@ "is-arrayish": "^0.2.1" } }, + "node_modules/es-abstract": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.1.tgz", + "integrity": "sha512-WEm2oBhfoI2sImeM4OF2zE2V3BYdSF+KnSi9Sidz51fQHd7+JuF8Xgcj9/0o+OWeIeIS/MiuNnlruQrJf16GQA==", + "dependencies": { + "call-bind": "^1.0.2", + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.1.1", + "get-symbol-description": "^1.0.0", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.3", + "is-callable": "^1.2.4", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.2", + "regexp.prototype.flags": "^1.4.3", + "string.prototype.trimend": "^1.0.5", + "string.prototype.trimstart": "^1.0.5", + "unbox-primitive": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-aggregate-error": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/es-aggregate-error/-/es-aggregate-error-1.0.8.tgz", + "integrity": "sha512-AKUb5MKLWMozPlFRHOKqWD7yta5uaEhH21qwtnf6FlKjNjTJOoqFi0/G14+FfSkIQhhu6X68Af4xgRC6y8qG4A==", + "dependencies": { + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5", + "function-bind": "^1.1.1", + "functions-have-names": "^1.2.3", + "get-intrinsic": "^1.1.1", + "globalthis": "^1.0.2", + "has-property-descriptors": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", @@ -4782,8 +4905,24 @@ "node_modules/function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "node_modules/function.prototype.name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", + "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/functional-red-black-tree": { "version": "1.0.1", @@ -4791,6 +4930,14 @@ "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", "dev": true }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", @@ -4809,6 +4956,19 @@ "node": "6.* || 8.* || >= 10.*" } }, + "node_modules/get-intrinsic": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.2.tgz", + "integrity": "sha512-Jfm3OyCxHh9DJyc28qGk+JmfkpO41A4XkneDSujN9MDXrm4oDKdHvndhZ2dN94+ERNfkYJWDclW6k2L/ZGHjXA==", + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/get-package-type": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", @@ -4830,6 +4990,21 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/git-log-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/git-log-parser/-/git-log-parser-1.2.0.tgz", @@ -4922,6 +5097,20 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/globby": { "version": "11.0.3", "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.3.tgz", @@ -5011,7 +5200,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, "dependencies": { "function-bind": "^1.1.1" }, @@ -5019,6 +5207,14 @@ "node": ">= 0.4.0" } }, + "node_modules/has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", @@ -5028,6 +5224,42 @@ "node": ">=4" } }, + "node_modules/has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "dependencies": { + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/hook-std": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/hook-std/-/hook-std-2.0.0.tgz", @@ -5220,6 +5452,19 @@ "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", "dev": true }, + "node_modules/internal-slot": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", + "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", + "dependencies": { + "get-intrinsic": "^1.1.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/into-stream": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-5.1.1.tgz", @@ -5239,12 +5484,49 @@ "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", "dev": true }, + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-buffer": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", "dev": true }, + "node_modules/is-callable": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz", + "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-core-module": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz", @@ -5257,6 +5539,20 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-extendable": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", @@ -5305,6 +5601,17 @@ "node": ">=0.10.0" } }, + "node_modules/is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", @@ -5314,6 +5621,20 @@ "node": ">=0.12.0" } }, + "node_modules/is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-obj": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", @@ -5347,6 +5668,32 @@ "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", "dev": true }, + "node_modules/is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", @@ -5356,6 +5703,34 @@ "node": ">=8" } }, + "node_modules/is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-text-path": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-1.0.1.tgz", @@ -5374,6 +5749,17 @@ "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", "dev": true }, + "node_modules/is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", @@ -7364,11 +7750,6 @@ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true }, - "node_modules/json-schema": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", - "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" - }, "node_modules/json-schema-migrate": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-0.2.0.tgz", @@ -7465,9 +7846,9 @@ } }, "node_modules/jsonpointer": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.0.tgz", - "integrity": "sha512-PNYZIdMjVIvVgDSYKTT63Y+KZ6IZvGRNNWcxwD+GNnUz1MKPfv30J8ueCjdwcN0nDx2SlshgyB7Oy0epAzVRRg==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", + "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==", "engines": { "node": ">=0.10.0" } @@ -7700,7 +8081,7 @@ "node_modules/lodash.topath": { "version": "4.5.2", "resolved": "https://registry.npmjs.org/lodash.topath/-/lodash.topath-4.5.2.tgz", - "integrity": "sha1-NhY1Hzu6YZlKCTGYlmC9AyVP0Ak=" + "integrity": "sha512-1/W4dM+35DwvE/iEd1M9ekewOSTlpFekhw9mhAtrwjVqUr83/ilQiyAvmg4tVX7Unkcfl1KC+i9WdaT4B6aQcg==" }, "node_modules/lodash.truncate": { "version": "4.4.2", @@ -8019,9 +8400,9 @@ } }, "node_modules/minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -8128,9 +8509,9 @@ "dev": true }, "node_modules/nimma": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/nimma/-/nimma-0.1.8.tgz", - "integrity": "sha512-9gbBqjwngJHJYIIY9OARuCU3eyy/Pl4rRmZAkj1lBMaJVWZZPUOyj90I9jMBe8uNlp4+55J3W2z2CPSJFFar/g==", + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/nimma/-/nimma-0.2.2.tgz", + "integrity": "sha512-V52MLl7BU+tH2Np9tDrIXK8bql3MVUadnMIl/0/oZSGC9keuro0O9UUv9QKp0aMvtN8HRew4G7byY7H4eWsxaQ==", "dependencies": { "@jsep-plugin/regex": "^1.0.1", "@jsep-plugin/ternary": "^1.0.2", @@ -12858,6 +13239,39 @@ "integrity": "sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==", "dev": true }, + "node_modules/object-inspect": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", + "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/object.pick": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", @@ -13493,6 +13907,22 @@ "esprima": "~4.0.0" } }, + "node_modules/regexp.prototype.flags": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", + "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "functions-have-names": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/regexpp": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz", @@ -14013,6 +14443,19 @@ "node": ">=8" } }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/signal-exit": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", @@ -14281,6 +14724,32 @@ "node": ">=8" } }, + "node_modules/string.prototype.trimend": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz", + "integrity": "sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz", + "integrity": "sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", @@ -14817,6 +15286,20 @@ "node": ">=0.8.0" } }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/unique-string": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", @@ -15005,6 +15488,21 @@ "webidl-conversions": "^3.0.0" } }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/wolfy87-eventemitter": { "version": "5.2.9", "resolved": "https://registry.npmjs.org/wolfy87-eventemitter/-/wolfy87-eventemitter-5.2.9.tgz", @@ -16220,15 +16718,15 @@ } }, "@jsep-plugin/regex": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.1.tgz", - "integrity": "sha512-GroTtexnEfdVOvvALjW/JfV+wgRMadZKEA/lf9gE09zJejHhcBl+cqJxk2px9ub8k3gUrPe1j81Z1V4RDaSy8A==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.2.tgz", + "integrity": "sha512-Nn/Bcaww8zOebMDqNmGlhAWPWhIr/8S8lGIgaB/fSqev5xaO5uKy5i4qvTh63GpR+VzKqimgxDdcxdcRuCJXSw==", "requires": {} }, "@jsep-plugin/ternary": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.0.tgz", - "integrity": "sha512-dS+vdBz0y71mRspSsv/c+YUm8xXKiEqgZF7+ERxNLWyycMOOtR9CQjV+MexpTCCh76iBrMHcWul9rzoZdfJm0g==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.2.tgz", + "integrity": "sha512-gXguJc09uCrqWt1MD7L1+ChO32g4UH4BYGpHPoQRLhyU7pAPPRA7cvKbyjoqhnUlLutiXvLzB5hVVawPKax8jw==", "requires": {} }, "@nodelib/fs.scandir": { @@ -16677,16 +17175,37 @@ "@sinonjs/commons": "^1.7.0" } }, + "@stoplight/better-ajv-errors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.3.tgz", + "integrity": "sha512-0p9uXkuB22qGdNfy3VeEhxkU5uwvp/KrBTAbrLBURv6ilxIVwanKwjMc41lQfIVgPGcOkmLbTolfFrSsueu7zA==", + "requires": { + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" + } + }, "@stoplight/json": { - "version": "3.17.2", - "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.17.2.tgz", - "integrity": "sha512-NwIVzanXRUy291J5BMkncCZRMG1Lx+aq+VidGQgfkJjgo8vh1Y/PSAz7fSU8gVGSZBCcqmOkMI7R4zw7DlfTwA==", + "version": "3.20.1", + "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.20.1.tgz", + "integrity": "sha512-FXfud+uWgIj1xv6nUO9WnmgmnVikaxJcbtR4XQt4C42n5c2qua3U05Z/3B57hP5TJRSj+tpn9ID6/bFeyYYlEg==", "requires": { - "@stoplight/ordered-object-literal": "^1.0.2", - "@stoplight/types": "^12.3.0", + "@stoplight/ordered-object-literal": "^1.0.3", + "@stoplight/path": "^1.3.2", + "@stoplight/types": "^13.6.0", "jsonc-parser": "~2.2.1", "lodash": "^4.17.21", "safe-stable-stringify": "^1.1" + }, + "dependencies": { + "@stoplight/types": { + "version": "13.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", + "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", + "requires": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + } + } } }, "@stoplight/json-ref-readers": { @@ -16732,9 +17251,9 @@ } }, "@stoplight/ordered-object-literal": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@stoplight/ordered-object-literal/-/ordered-object-literal-1.0.2.tgz", - "integrity": "sha512-0ZMS/9sNU3kVo/6RF3eAv7MK9DY8WLjiVJB/tVyfF2lhr2R4kqh534jZ0PlrFB9CRXrdndzn1DbX6ihKZXft2w==" + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@stoplight/ordered-object-literal/-/ordered-object-literal-1.0.3.tgz", + "integrity": "sha512-cjJ7PPkhgTXNMTkevAlmyrx9xOOCaI3c6rEeYb6VitL1o1WcZtrz9KyFyISmTmUa7yYTiy2IS/ud9S8s2sn3+A==" }, "@stoplight/path": { "version": "1.3.2", @@ -16742,40 +17261,42 @@ "integrity": "sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ==" }, "@stoplight/spectral-core": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.11.0.tgz", - "integrity": "sha512-82xWLbQn67cLLKL7lQJsXTFLIHSOlwv4Faq2IxsUFMWqQ84znwd7FxOkfk9K2I0ncR+XuaftWRtN9ySvVSJkAw==", + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.13.1.tgz", + "integrity": "sha512-0az1LZ/A7b6u8HESzBMv65syZXjsYhpQxvtQ2F9D50G7+AvvDsvQa3myk1J3lz4hY4dU1quW2xGgan9mE+XDhA==", "requires": { - "@stoplight/better-ajv-errors": "1.0.1", - "@stoplight/json": "~3.17.1", + "@stoplight/better-ajv-errors": "1.0.3", + "@stoplight/json": "~3.20.1", "@stoplight/lifecycle": "2.3.2", "@stoplight/path": "1.3.2", "@stoplight/spectral-parsers": "^1.0.0", "@stoplight/spectral-ref-resolver": "^1.0.0", "@stoplight/spectral-runtime": "^1.0.0", - "@stoplight/types": "12.3.0", + "@stoplight/types": "~13.6.0", + "@types/es-aggregate-error": "^1.0.2", + "@types/json-schema": "^7.0.11", "ajv": "^8.6.0", "ajv-errors": "~3.0.0", "ajv-formats": "~2.1.0", "blueimp-md5": "2.18.0", - "json-schema": "0.4.0", + "es-aggregate-error": "^1.0.7", "jsonpath-plus": "6.0.1", "lodash": "~4.17.21", "lodash.topath": "^4.5.2", - "minimatch": "3.0.4", - "nimma": "0.1.8", + "minimatch": "3.1.2", + "nimma": "0.2.2", "pony-cause": "^1.0.0", "simple-eval": "1.0.0", "tslib": "^2.3.0" }, "dependencies": { - "@stoplight/better-ajv-errors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.1.tgz", - "integrity": "sha512-rgxT+ZMeZbYRiOLNk6Oy6e/Ig1iQKo0IL8v/Y9E/0FewzgtkGs/p5dMeUpIFZXWj3RZaEPmfL9yh0oUEmNXZjg==", + "@stoplight/types": { + "version": "13.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", + "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", "requires": { - "jsonpointer": "^5.0.0", - "leven": "^3.1.0" + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" } }, "ajv-errors": { @@ -16787,9 +17308,9 @@ } }, "@stoplight/spectral-formats": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.1.0.tgz", - "integrity": "sha512-ZpEHNkS30qfPbxHJAf3OwZ7g0LkSG2UZXhl3/Jsf6WGivVcuQUY+ZK4c1ZJqBNct1JF1ujP3FgF26xDdTrOtDw==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.2.0.tgz", + "integrity": "sha512-idvn7r8fvQjY/KeJpKgXQ5eJhce6N6/KoKWMPSh5yyvYDpn+bkU4pxAD79jOJaDnIyKJd1jjTPEJWnxbS0jj6A==", "requires": { "@stoplight/json": "^3.17.0", "@stoplight/spectral-core": "^1.8.0", @@ -16798,16 +17319,15 @@ } }, "@stoplight/spectral-functions": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-functions/-/spectral-functions-1.6.1.tgz", - "integrity": "sha512-f4cFtbI35bQtY0t4fYhKtS+/nMU3UsAeFlqm4tARGGG5WjOv4ieCFNFbgodKNiO3F4O+syMEjVQuXlBNPuY7jw==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-functions/-/spectral-functions-1.7.1.tgz", + "integrity": "sha512-UWeUrxc1pu45ZNYKtK3OloMpkUNTPqwpmjbGUn4oEnbqrLEYu/B2oOg66EtGcadOBEsdOb7f5vaPlhUNNrpEpQ==", "requires": { - "@stoplight/better-ajv-errors": "1.0.1", - "@stoplight/json": "~3.17.1", + "@stoplight/better-ajv-errors": "1.0.3", + "@stoplight/json": "^3.17.1", "@stoplight/spectral-core": "^1.7.0", "@stoplight/spectral-formats": "^1.0.0", "@stoplight/spectral-runtime": "^1.1.0", - "@stoplight/types": "12.3.0", "ajv": "^8.6.3", "ajv-draft-04": "~1.0.0", "ajv-errors": "~3.0.0", @@ -16816,15 +17336,6 @@ "tslib": "^2.3.0" }, "dependencies": { - "@stoplight/better-ajv-errors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.1.tgz", - "integrity": "sha512-rgxT+ZMeZbYRiOLNk6Oy6e/Ig1iQKo0IL8v/Y9E/0FewzgtkGs/p5dMeUpIFZXWj3RZaEPmfL9yh0oUEmNXZjg==", - "requires": { - "jsonpointer": "^5.0.0", - "leven": "^3.1.0" - } - }, "ajv-draft-04": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", @@ -16840,26 +17351,23 @@ } }, "@stoplight/spectral-parsers": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-parsers/-/spectral-parsers-1.0.1.tgz", - "integrity": "sha512-JGKlrTxhjUzIGo2FOCf8Qp0WKTWXedoRNPovqYPE8pAp08epqU8DzHwl/i46BGH5yfTmouKMZgBN/PV2+Cr5jw==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-parsers/-/spectral-parsers-1.0.2.tgz", + "integrity": "sha512-ZQXknJ+BM5Re4Opj4cgVlHgG2qyOk/wznKJq3Vf1qsBEg2CNzN0pJmSB0deRqW0kArqm44qpb8c+cz3F2rgMtw==", "requires": { - "@stoplight/json": "3.17.0", - "@stoplight/types": "12.3.0", - "@stoplight/yaml": "4.2.2", + "@stoplight/json": "~3.20.1", + "@stoplight/types": "^13.6.0", + "@stoplight/yaml": "~4.2.3", "tslib": "^2.3.1" }, "dependencies": { - "@stoplight/json": { - "version": "3.17.0", - "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.17.0.tgz", - "integrity": "sha512-WW0z2bb0D4t8FTl+zNTCu46J8lEOsrUhBPgwEYQ3Ri2Y0MiRE4U1/9ZV8Ki+pIJznZgY9i42bbFwOBxyZn5/6w==", + "@stoplight/types": { + "version": "13.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", + "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", "requires": { - "@stoplight/ordered-object-literal": "^1.0.2", - "@stoplight/types": "^12.3.0", - "jsonc-parser": "~2.2.1", - "lodash": "^4.17.21", - "safe-stable-stringify": "^1.1" + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" } } } @@ -16877,18 +17385,18 @@ } }, "@stoplight/spectral-rulesets": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-rulesets/-/spectral-rulesets-1.6.0.tgz", - "integrity": "sha512-iRfcG5Ucp2OPGszaergiN+shVkD9XO1VKRmFqXlYbLxI8oi0jBAFXQr+tKJGt6ErXBQQoaIx2Liiirgq7kR3Nw==", + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-rulesets/-/spectral-rulesets-1.12.0.tgz", + "integrity": "sha512-ktSO5YPzYzscnGTQffyKJwrzsR2i5cpPUC4yBp0isc6mOeiVec4r9sjMUN1mJt0RVnXi509vd0+YlMthFIZYnw==", "requires": { - "@asyncapi/specs": "^2.13.0", - "@stoplight/better-ajv-errors": "1.0.1", + "@asyncapi/specs": "^2.14.0", + "@stoplight/better-ajv-errors": "1.0.3", "@stoplight/json": "^3.17.0", "@stoplight/spectral-core": "^1.8.1", - "@stoplight/spectral-formats": "^1.1.0", + "@stoplight/spectral-formats": "^1.2.0", "@stoplight/spectral-functions": "^1.5.1", "@stoplight/spectral-runtime": "^1.1.1", - "@stoplight/types": "^12.3.0", + "@stoplight/types": "^13.6.0", "@types/json-schema": "^7.0.7", "ajv": "^8.8.2", "ajv-formats": "~2.1.0", @@ -16902,13 +17410,13 @@ "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-2.14.0.tgz", "integrity": "sha512-hHsYF6XsYNIKb1P2rXaooF4H+uKKQ4b/Ljxrk3rZ3riEDiSxMshMEfb1fUlw9Yj4V4OmJhjXwkNvw8W59AXv1A==" }, - "@stoplight/better-ajv-errors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.1.tgz", - "integrity": "sha512-rgxT+ZMeZbYRiOLNk6Oy6e/Ig1iQKo0IL8v/Y9E/0FewzgtkGs/p5dMeUpIFZXWj3RZaEPmfL9yh0oUEmNXZjg==", + "@stoplight/types": { + "version": "13.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", + "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", "requires": { - "jsonpointer": "^5.0.0", - "leven": "^3.1.0" + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" } }, "json-schema-traverse": { @@ -16942,14 +17450,25 @@ } }, "@stoplight/yaml": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@stoplight/yaml/-/yaml-4.2.2.tgz", - "integrity": "sha512-N086FU8pmSpjc5TvMBjmlTniZVh3OXzmEh6SYljSLiuv6aMxgjyjf13YrAlUqgu0b4b6pQ5zmkjrfo9i0SiLsw==", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/@stoplight/yaml/-/yaml-4.2.3.tgz", + "integrity": "sha512-Mx01wjRAR9C7yLMUyYFTfbUf5DimEpHMkRDQ1PKLe9dfNILbgdxyrncsOXM3vCpsQ1Hfj4bPiGl+u4u6e9Akqw==", "requires": { "@stoplight/ordered-object-literal": "^1.0.1", - "@stoplight/types": "^12.0.0", + "@stoplight/types": "^13.0.0", "@stoplight/yaml-ast-parser": "0.0.48", "tslib": "^2.2.0" + }, + "dependencies": { + "@stoplight/types": { + "version": "13.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", + "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", + "requires": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + } + } } }, "@stoplight/yaml-ast-parser": { @@ -17028,6 +17547,14 @@ "@babel/types": "^7.3.0" } }, + "@types/es-aggregate-error": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@types/es-aggregate-error/-/es-aggregate-error-1.0.2.tgz", + "integrity": "sha512-erqUpFXksaeR2kejKnhnjZjbFxUpGZx4Z7ydNL9ie8tEhXPiZTsLeUDJ6aR1F8j5wWUAtOAQWUqkc7givBJbBA==", + "requires": { + "@types/node": "*" + } + }, "@types/graceful-fs": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz", @@ -17091,8 +17618,7 @@ "@types/node": { "version": "17.0.21", "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.21.tgz", - "integrity": "sha512-DBZCJbhII3r90XbQxI8Y9IjjiiOGlZ0Hr32omXIZvwwZ7p4DMMXGrKXVyPfuoBOri9XNtL0UK69jYIBIsRX3QQ==", - "dev": true + "integrity": "sha512-DBZCJbhII3r90XbQxI8Y9IjjiiOGlZ0Hr32omXIZvwwZ7p4DMMXGrKXVyPfuoBOri9XNtL0UK69jYIBIsRX3QQ==" }, "@types/normalize-package-data": { "version": "2.4.0", @@ -17362,9 +17888,9 @@ "dev": true }, "astring": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/astring/-/astring-1.8.1.tgz", - "integrity": "sha512-Aj3mbwVzj7Vve4I/v2JYOPFkCGM2YS7OqQTNSxmUR+LECRpokuPgAYghePgr6SALDo5bD5DlfbSaYjOzGJZOLQ==" + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/astring/-/astring-1.8.3.tgz", + "integrity": "sha512-sRpyiNrx2dEYIMmUXprS8nlpRg2Drs8m9ElX9vVEXaCB4XEAJhKfs7IcX0IwShjuOAjLR6wzIrgoptz1n19i1A==" }, "asynckit": { "version": "0.4.0", @@ -17597,6 +18123,15 @@ "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", "dev": true }, + "call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "requires": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + } + }, "callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -18082,6 +18617,15 @@ "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", "dev": true }, + "define-properties": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", + "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", + "requires": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + } + }, "delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -18275,6 +18819,60 @@ "is-arrayish": "^0.2.1" } }, + "es-abstract": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.1.tgz", + "integrity": "sha512-WEm2oBhfoI2sImeM4OF2zE2V3BYdSF+KnSi9Sidz51fQHd7+JuF8Xgcj9/0o+OWeIeIS/MiuNnlruQrJf16GQA==", + "requires": { + "call-bind": "^1.0.2", + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.1.1", + "get-symbol-description": "^1.0.0", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.3", + "is-callable": "^1.2.4", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.2", + "regexp.prototype.flags": "^1.4.3", + "string.prototype.trimend": "^1.0.5", + "string.prototype.trimstart": "^1.0.5", + "unbox-primitive": "^1.0.2" + } + }, + "es-aggregate-error": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/es-aggregate-error/-/es-aggregate-error-1.0.8.tgz", + "integrity": "sha512-AKUb5MKLWMozPlFRHOKqWD7yta5uaEhH21qwtnf6FlKjNjTJOoqFi0/G14+FfSkIQhhu6X68Af4xgRC6y8qG4A==", + "requires": { + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5", + "function-bind": "^1.1.1", + "functions-have-names": "^1.2.3", + "get-intrinsic": "^1.1.1", + "globalthis": "^1.0.2", + "has-property-descriptors": "^1.0.0" + } + }, + "es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, "escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", @@ -18891,8 +19489,18 @@ "function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "function.prototype.name": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", + "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + } }, "functional-red-black-tree": { "version": "1.0.1", @@ -18900,6 +19508,11 @@ "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", "dev": true }, + "functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==" + }, "gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", @@ -18912,6 +19525,16 @@ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true }, + "get-intrinsic": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.2.tgz", + "integrity": "sha512-Jfm3OyCxHh9DJyc28qGk+JmfkpO41A4XkneDSujN9MDXrm4oDKdHvndhZ2dN94+ERNfkYJWDclW6k2L/ZGHjXA==", + "requires": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + } + }, "get-package-type": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", @@ -18924,6 +19547,15 @@ "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true }, + "get-symbol-description": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", + "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + } + }, "git-log-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/git-log-parser/-/git-log-parser-1.2.0.tgz", @@ -18999,6 +19631,14 @@ } } }, + "globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "requires": { + "define-properties": "^1.1.3" + } + }, "globby": { "version": "11.0.3", "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.3.tgz", @@ -19072,17 +19712,42 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, "requires": { "function-bind": "^1.1.1" } }, + "has-bigints": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", + "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==" + }, "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", "dev": true }, + "has-property-descriptors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "requires": { + "get-intrinsic": "^1.1.1" + } + }, + "has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" + }, + "has-tostringtag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", + "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "requires": { + "has-symbols": "^1.0.2" + } + }, "hook-std": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/hook-std/-/hook-std-2.0.0.tgz", @@ -19228,6 +19893,16 @@ "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", "dev": true }, + "internal-slot": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", + "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", + "requires": { + "get-intrinsic": "^1.1.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + } + }, "into-stream": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-5.1.1.tgz", @@ -19244,12 +19919,34 @@ "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", "dev": true }, + "is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "requires": { + "has-bigints": "^1.0.1" + } + }, + "is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, "is-buffer": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", "dev": true }, + "is-callable": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz", + "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==" + }, "is-core-module": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz", @@ -19259,6 +19956,14 @@ "has": "^1.0.3" } }, + "is-date-object": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", + "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "requires": { + "has-tostringtag": "^1.0.0" + } + }, "is-extendable": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", @@ -19292,12 +19997,25 @@ "is-extglob": "^2.1.1" } }, + "is-negative-zero": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", + "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==" + }, "is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true }, + "is-number-object": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", + "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "requires": { + "has-tostringtag": "^1.0.0" + } + }, "is-obj": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", @@ -19322,12 +20040,45 @@ "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", "dev": true }, + "is-regex": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", + "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, + "is-shared-array-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", + "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "requires": { + "call-bind": "^1.0.2" + } + }, "is-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", "dev": true }, + "is-string": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", + "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-symbol": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", + "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "requires": { + "has-symbols": "^1.0.2" + } + }, "is-text-path": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-1.0.1.tgz", @@ -19343,6 +20094,14 @@ "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", "dev": true }, + "is-weakref": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", + "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "requires": { + "call-bind": "^1.0.2" + } + }, "isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", @@ -20832,11 +21591,6 @@ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true }, - "json-schema": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", - "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" - }, "json-schema-migrate": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-0.2.0.tgz", @@ -20921,9 +21675,9 @@ "integrity": "sha512-EvGovdvau6FyLexFH2OeXfIITlgIbgZoAZe3usiySeaIDm5QS+A10DKNpaPBBqqRSZr2HN6HVNXxtwUAr2apEw==" }, "jsonpointer": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.0.tgz", - "integrity": "sha512-PNYZIdMjVIvVgDSYKTT63Y+KZ6IZvGRNNWcxwD+GNnUz1MKPfv30J8ueCjdwcN0nDx2SlshgyB7Oy0epAzVRRg==" + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", + "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==" }, "JSONStream": { "version": "1.3.5", @@ -21122,7 +21876,7 @@ "lodash.topath": { "version": "4.5.2", "resolved": "https://registry.npmjs.org/lodash.topath/-/lodash.topath-4.5.2.tgz", - "integrity": "sha1-NhY1Hzu6YZlKCTGYlmC9AyVP0Ak=" + "integrity": "sha512-1/W4dM+35DwvE/iEd1M9ekewOSTlpFekhw9mhAtrwjVqUr83/ilQiyAvmg4tVX7Unkcfl1KC+i9WdaT4B6aQcg==" }, "lodash.truncate": { "version": "4.4.2", @@ -21363,9 +22117,9 @@ "dev": true }, "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "requires": { "brace-expansion": "^1.1.7" } @@ -21453,9 +22207,9 @@ "dev": true }, "nimma": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/nimma/-/nimma-0.1.8.tgz", - "integrity": "sha512-9gbBqjwngJHJYIIY9OARuCU3eyy/Pl4rRmZAkj1lBMaJVWZZPUOyj90I9jMBe8uNlp4+55J3W2z2CPSJFFar/g==", + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/nimma/-/nimma-0.2.2.tgz", + "integrity": "sha512-V52MLl7BU+tH2Np9tDrIXK8bql3MVUadnMIl/0/oZSGC9keuro0O9UUv9QKp0aMvtN8HRew4G7byY7H4eWsxaQ==", "requires": { "@jsep-plugin/regex": "^1.0.1", "@jsep-plugin/ternary": "^1.0.2", @@ -25074,6 +25828,27 @@ "integrity": "sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==", "dev": true }, + "object-inspect": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", + "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==" + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" + }, + "object.assign": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", + "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + } + }, "object.pick": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", @@ -25548,6 +26323,16 @@ "esprima": "~4.0.0" } }, + "regexp.prototype.flags": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", + "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "functions-have-names": "^1.2.2" + } + }, "regexpp": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz", @@ -25912,6 +26697,16 @@ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true }, + "side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "requires": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + } + }, "signal-exit": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", @@ -26143,6 +26938,26 @@ "strip-ansi": "^6.0.1" } }, + "string.prototype.trimend": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz", + "integrity": "sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" + } + }, + "string.prototype.trimstart": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz", + "integrity": "sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5" + } + }, "strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", @@ -26518,6 +27333,17 @@ "dev": true, "optional": true }, + "unbox-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", + "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "requires": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + } + }, "unique-string": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", @@ -26692,6 +27518,18 @@ "webidl-conversions": "^3.0.0" } }, + "which-boxed-primitive": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", + "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "requires": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + } + }, "wolfy87-eventemitter": { "version": "5.2.9", "resolved": "https://registry.npmjs.org/wolfy87-eventemitter/-/wolfy87-eventemitter-5.2.9.tgz", diff --git a/package.json b/package.json index 7cf45f2fa..47403a00a 100644 --- a/package.json +++ b/package.json @@ -51,10 +51,10 @@ "dependencies": { "@asyncapi/specs": "^3.1.0", "@openapi-contrib/openapi-schema-to-json-schema": "^3.2.0", - "@stoplight/spectral-core": "^1.10.1", - "@stoplight/spectral-functions": "^1.5.1", - "@stoplight/spectral-parsers": "^1.0.1", - "@stoplight/spectral-rulesets": "^1.4.3", + "@stoplight/spectral-core": "^1.13.1", + "@stoplight/spectral-functions": "^1.7.1", + "@stoplight/spectral-parsers": "^1.0.2", + "@stoplight/spectral-rulesets": "^1.12.0", "ajv": "^8.11.0", "avsc": "^5.7.4", "js-yaml": "^3.14.1", diff --git a/src/constants.ts b/src/constants.ts index ac5f77c51..14c751d8a 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -5,6 +5,7 @@ export const xParserMessageName = 'x-parser-message-name'; export const xParserSchemaId = 'x-parser-schema-id'; export const xParserOriginalSchemaFormat = 'x-parser-original-schema-format'; +export const xParserOriginalPayload = 'x-parser-original-payload'; export const xParserOriginalTraits = 'x-parser-original-traits'; export const xParserCircular = 'x-parser-circular'; diff --git a/src/custom-operations/parse-schema.ts b/src/custom-operations/parse-schema.ts index 0884d5f41..6fb36bb77 100644 --- a/src/custom-operations/parse-schema.ts +++ b/src/custom-operations/parse-schema.ts @@ -1,8 +1,8 @@ import { JSONPath } from 'jsonpath-plus'; import { toPath } from 'lodash'; -import { parseSchema, getDefaultSchemaFormat } from '../schema-parser'; -import { xParserOriginalSchemaFormat } from '../constants'; +import { parseSchema, getSchemaFormat, getDefaultSchemaFormat } from '../schema-parser'; +import { xParserOriginalPayload } from '../constants'; import type { Parser } from '../parser'; import type { ParseSchemaInput } from "../schema-parser"; @@ -14,15 +14,17 @@ interface ToParseItem { } const customSchemasPathsV2 = [ + // operations '$.channels.*.[publish,subscribe].message', '$.channels.*.[publish,subscribe].message.oneOf.*', '$.components.channels.*.[publish,subscribe].message', '$.components.channels.*.[publish,subscribe].message.oneOf.*', + // messages '$.components.messages.*', ]; export async function parseSchemasV2(parser: Parser, detailed: DetailedAsyncAPI) { - const defaultSchemaFormat = getDefaultSchemaFormat(detailed.parsed.asyncapi as string); + const defaultSchemaFormat = getDefaultSchemaFormat(detailed.semver.version); const parseItems: Array = []; const visited: Set = new Set(); @@ -43,13 +45,16 @@ export async function parseSchemasV2(parser: Parser, detailed: DetailedAsyncAPI) return; } + const schemaFormat = getSchemaFormat(value.schemaFormat, detailed.semver.version); parseItems.push({ input: { asyncapi: detailed, data: payload, - meta: undefined, + meta: { + message: value, + }, path: [...toPath(result.path.slice(1)), 'payload'], - schemaFormat: value.schemaFormat || defaultSchemaFormat, + schemaFormat, defaultSchemaFormat, }, value, @@ -62,6 +67,6 @@ export async function parseSchemasV2(parser: Parser, detailed: DetailedAsyncAPI) } async function parseSchemaV2(parser: Parser, item: ToParseItem) { - item.value[xParserOriginalSchemaFormat] = item.input.schemaFormat; + item.value[xParserOriginalPayload] = item.input.data; item.value.payload = await parseSchema(parser, item.input); } diff --git a/src/parse.ts b/src/parse.ts index 80c952e84..fb7d6822a 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -2,7 +2,7 @@ import { AsyncAPIDocumentInterface, newAsyncAPIDocument } from "./models"; import { customOperations } from './custom-operations'; import { validate } from "./lint"; -import { createDetailedAsyncAPI, normalizeInput, toAsyncAPIDocument } from "./utils"; +import { createDetailedAsyncAPI, normalizeInput, toAsyncAPIDocument, unfreezeObject } from "./utils"; import { xParserSpecParsed } from './constants'; @@ -47,7 +47,7 @@ export async function parse(parser: Parser, asyncapi: ParseInput, options?: Pars } // unfreeze the object - Spectral makes resolved document "freezed" - const validatedDoc = JSON.parse(JSON.stringify(validated)); + const validatedDoc = unfreezeObject(validated); validatedDoc[String(xParserSpecParsed)] = true; const detailed = createDetailedAsyncAPI(asyncapi as string | Record, validatedDoc); @@ -67,6 +67,7 @@ export async function parse(parser: Parser, asyncapi: ParseInput, options?: Pars const defaultOptions: ParseOptions = { applyTraits: true, + parseSchemas: true, }; function normalizeOptions(options?: ParseOptions): ParseOptions { if (!options || typeof options !== 'object') { diff --git a/src/parser.ts b/src/parser.ts index 3d106fe50..5681e5047 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -1,9 +1,10 @@ import { Spectral } from "@stoplight/spectral-core"; -import { asyncapi as aasRuleset } from "@stoplight/spectral-rulesets"; import { parse } from "./parse"; import { lint, validate } from "./lint"; import { registerSchemaParser } from './schema-parser'; +import { AsyncAPISchemaParser } from "./schema-parser/asyncapi-schema-parser"; +import { configureSpectral } from "./spectral"; import type { IConstructorOpts } from "@stoplight/spectral-core"; import type { ParseInput, ParseOptions } from "./parse"; @@ -18,16 +19,18 @@ export class Parser { public readonly parserRegistry = new Map(); public readonly spectral: Spectral; - constructor(options?: ParserOptions) { - const { spectral } = options || {}; + constructor( + private readonly options?: ParserOptions + ) { + const { spectral } = this.options || {}; if (spectral instanceof Spectral) { this.spectral = spectral; } else { this.spectral = new Spectral(spectral); } - // TODO: fix type - this.spectral.setRuleset(aasRuleset as any); + this.registerSchemaParser(AsyncAPISchemaParser()); + configureSpectral(this); } parse(asyncapi: ParseInput, options?: ParseOptions) { diff --git a/src/schema-parser/asyncapi-schema-parser.ts b/src/schema-parser/asyncapi-schema-parser.ts index f6d1a00cf..0e520b040 100644 --- a/src/schema-parser/asyncapi-schema-parser.ts +++ b/src/schema-parser/asyncapi-schema-parser.ts @@ -1,15 +1,16 @@ -import { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from "../schema-parser"; -import Ajv, { ErrorObject, ValidateFunction } from "ajv"; -import type { AsyncAPISchema, SchemaValidateResult } from '../types'; +import Ajv from "ajv"; // @ts-ignore import specs from '@asyncapi/specs'; +import type { ErrorObject, ValidateFunction } from "ajv"; +import type { AsyncAPISchema, SchemaValidateResult } from '../types'; +import type { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from "../schema-parser"; + const ajv = new Ajv({ allErrors: true, strict: false, logger: false, }); - // Only versions compatible with JSON Schema Draf-07 are supported. const specVersions = Object.keys(specs).filter((version: string) => !['1.0.0', '1.1.0', '1.2.0', '2.0.0-rc1', '2.0.0-rc2'].includes(version)); diff --git a/src/schema-parser/avro-schema-parser.ts b/src/schema-parser/avro-schema-parser.ts index 3ca520866..1482f9457 100644 --- a/src/schema-parser/avro-schema-parser.ts +++ b/src/schema-parser/avro-schema-parser.ts @@ -1,7 +1,9 @@ -import avsc, { type Schema} from "avsc"; -import type { AsyncAPISchema, SchemaValidateResult } from "types"; -import { SchemaParser, type ParseSchemaInput, type ValidateSchemaInput } from "../schema-parser"; -import { type JSONSchema7TypeName } from "json-schema"; +import avsc from "avsc"; + +import type { JSONSchema7TypeName } from "json-schema"; +import type { Schema } from "avsc"; +import type { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from "../schema-parser"; +import type { AsyncAPISchema, SchemaValidateResult } from '../types'; type AvroSchema = Schema & { [key: string]: any } & any; @@ -32,29 +34,15 @@ async function validate(input: ValidateSchemaInput): Promise): Promise { const asyncAPISchema = await avroToJsonSchema(input.data as AvroSchema); - const message = (input.meta as any).message // TODO: Should the following modifications to the message object be done in the caller and for all parsers rather than here? // remove that function when https://github.com/asyncapi/spec/issues/622 will be introduced in AsyncAPI spec - async function handleKafkaProtocolKey() { - if (message.bindings && message.bindings.kafka) { - const key = message.bindings.kafka.key; - if (key) { - const bindingsTransformed = await avroToJsonSchema(key); - message['x-parser-original-bindings-kafka-key'] = key; - message.bindings.kafka.key = bindingsTransformed; - } - } - } - - if (message !== undefined) { - // TODO: Should the following modifications to the message object be done in the caller and for all parsers rather than here? - message['x-parser-original-schema-format'] = input.schemaFormat || input.defaultSchemaFormat; - message['x-parser-original-payload'] = input.data; - message.payload = asyncAPISchema; - delete message.schemaFormat; - - await handleKafkaProtocolKey(); + const message = (input.meta as any).message + const key = message?.bindings?.kafka?.key; + if (key) { + const bindingsTransformed = await avroToJsonSchema(key); + message['x-parser-original-bindings-kafka-key'] = key; + message.bindings.kafka.key = bindingsTransformed; } return asyncAPISchema; @@ -94,7 +82,7 @@ const typeMappings: { [key: string]: JSONSchema7TypeName } = { uuid: 'string', }; -const commonAttributesMapping = (avroDefinition: AvroSchema, jsonSchema: AsyncAPISchema, isTopLevel: boolean) => { +function commonAttributesMapping(avroDefinition: AvroSchema, jsonSchema: AsyncAPISchema, isTopLevel: boolean): void { if (avroDefinition.doc) jsonSchema.description = avroDefinition.doc; if (avroDefinition.default !== undefined) jsonSchema.default = avroDefinition.default; @@ -124,7 +112,7 @@ function getFullyQualifiedName(avroDefinition: AvroSchema) { * @param parentJsonSchema the parent json schema which contains the required property to enrich * @param haveDefaultValue we assure that a required field does not have a default value */ -const requiredAttributesMapping = (fieldDefinition: any, parentJsonSchema: AsyncAPISchema, haveDefaultValue: boolean) => { +function requiredAttributesMapping(fieldDefinition: any, parentJsonSchema: AsyncAPISchema, haveDefaultValue: boolean): void { const isUnionWithNull = Array.isArray(fieldDefinition.type) && fieldDefinition.type.includes('null'); // we assume that a union type without null and a field without default value is required @@ -134,7 +122,7 @@ const requiredAttributesMapping = (fieldDefinition: any, parentJsonSchema: Async } }; -function extractNonNullableTypeIfNeeded(typeInput: any, jsonSchemaInput: AsyncAPISchema) { +function extractNonNullableTypeIfNeeded(typeInput: any, jsonSchemaInput: AsyncAPISchema): { type: string, jsonSchema: AsyncAPISchema } { let type = typeInput; let jsonSchema = jsonSchemaInput; // Map example to first non-null type @@ -145,10 +133,10 @@ function extractNonNullableTypeIfNeeded(typeInput: any, jsonSchemaInput: AsyncAP jsonSchema = jsonSchema.oneOf[0] as AsyncAPISchema; } } - return {type, jsonSchema}; + return { type, jsonSchema }; } -const exampleAttributeMapping = (type: any, example: any, jsonSchema: AsyncAPISchema) => { +function exampleAttributeMapping(type: any, example: any, jsonSchema: AsyncAPISchema): void { if (example === undefined || jsonSchema.examples || Array.isArray(type)) return; switch (type) { @@ -163,7 +151,7 @@ const exampleAttributeMapping = (type: any, example: any, jsonSchema: AsyncAPISc } }; -const additionalAttributesMapping = (typeInput: any, avroDefinition: AvroSchema, jsonSchemaInput: AsyncAPISchema) => { +function additionalAttributesMapping(typeInput: any, avroDefinition: AvroSchema, jsonSchemaInput: AsyncAPISchema): void { const __ret = extractNonNullableTypeIfNeeded(typeInput, jsonSchemaInput); const type = __ret.type; const jsonSchema = __ret.jsonSchema; @@ -201,7 +189,7 @@ const additionalAttributesMapping = (typeInput: any, avroDefinition: AvroSchema, } }; -function validateAvroSchema(avroDefinition: AvroSchema) { +function validateAvroSchema(avroDefinition: AvroSchema): void | never { // don't need to use the output from parsing the // avro definition - we're just using this as a // validator as this will throw an exception if @@ -217,13 +205,13 @@ function validateAvroSchema(avroDefinition: AvroSchema) { * @param key String | Undefined - the fully qualified name of an avro record * @param value JsonSchema - The json schema from the avro record */ -function cacheAvroRecordDef(cache: {[key:string]: AsyncAPISchema}, key: string, value: AsyncAPISchema) { +function cacheAvroRecordDef(cache: {[key:string]: AsyncAPISchema}, key: string, value: AsyncAPISchema): void { if (key !== undefined) { cache[key] = value; } } -async function convertAvroToJsonSchema(avroDefinition: AvroSchema , isTopLevel: boolean, recordCache: Map | any = {}) { +async function convertAvroToJsonSchema(avroDefinition: AvroSchema , isTopLevel: boolean, recordCache: Map | any = {}): Promise { const jsonSchema: AsyncAPISchema = {}; const isUnion = Array.isArray(avroDefinition); @@ -287,8 +275,8 @@ async function convertAvroToJsonSchema(avroDefinition: AvroSchema , isTopLevel: * @param jsonSchema the schema for the record. * @returns {Promise>} */ -async function processRecordSchema(avroDefinition: AvroSchema, recordCache: {[key:string]: AsyncAPISchema}, jsonSchema: AsyncAPISchema) { - const propsMap = new Map(); +async function processRecordSchema(avroDefinition: AvroSchema, recordCache: {[key:string]: AsyncAPISchema}, jsonSchema: AsyncAPISchema): Promise> { + const propsMap = new Map(); for (const field of avroDefinition.fields) { // If the type is a sub schema it will have been stored in the cache. if (recordCache[field.type]) { @@ -317,9 +305,9 @@ async function processRecordSchema(avroDefinition: AvroSchema, recordCache: {[ke * @param avroDefinition the avro schema to be processed * @param isTopLevel is this the top level of the schema or is this a sub schema * @param recordCache the cache of previously processed record types - * @returns {Promise} the mutated jsonSchema that was provided to the function + * @returns {Promise} the mutated jsonSchema that was provided to the function */ -async function processUnionSchema(jsonSchema: AsyncAPISchema, avroDefinition: AvroSchema, isTopLevel: boolean, recordCache: {[key:string]: AsyncAPISchema}) { +async function processUnionSchema(jsonSchema: AsyncAPISchema, avroDefinition: AvroSchema, isTopLevel: boolean, recordCache: {[key:string]: AsyncAPISchema}): Promise { jsonSchema.oneOf = []; let nullDef = null; for (const avroDef of avroDefinition) { diff --git a/src/schema-parser/index.ts b/src/schema-parser/index.ts index 89bf2ade6..31b2a0e66 100644 --- a/src/schema-parser/index.ts +++ b/src/schema-parser/index.ts @@ -28,8 +28,7 @@ export interface SchemaParser { export async function validateSchema(parser: Parser, input: ValidateSchemaInput) { const schemaParser = parser.parserRegistry.get(input.schemaFormat); if (schemaParser === undefined) { - // throw appropriate error - throw new Error(); + throw new Error('Unknown schema format'); } return schemaParser.validate(input); } @@ -37,7 +36,7 @@ export async function validateSchema(parser: Parser, input: ValidateSchemaInput) export async function parseSchema(parser: Parser, input: ParseSchemaInput) { const schemaParser = parser.parserRegistry.get(input.schemaFormat); if (schemaParser === undefined) { - return; + throw new Error('Unknown schema format'); } return schemaParser.parse(input); } @@ -49,7 +48,7 @@ export function registerSchemaParser(parser: Parser, schemaParser: SchemaParser) || typeof schemaParser.parse !== 'function' || typeof schemaParser.getMimeTypes !== 'function' ) { - throw new Error('custom parser must have "parse()", "validate()" and "getMimeTypes()" functions.'); + throw new Error('Custom parser must have "parse()", "validate()" and "getMimeTypes()" functions.'); } schemaParser.getMimeTypes().forEach(schemaFormat => { @@ -57,6 +56,13 @@ export function registerSchemaParser(parser: Parser, schemaParser: SchemaParser) }); } +export function getSchemaFormat(schematFormat: string | undefined, asyncapiVersion: string) { + if (typeof schematFormat === 'string') { + return schematFormat; + } + return getDefaultSchemaFormat(asyncapiVersion); +} + export function getDefaultSchemaFormat(asyncapiVersion: string) { return `application/vnd.aai.asyncapi;version=${asyncapiVersion}`; } diff --git a/src/schema-parser/openapi-schema-parser.ts b/src/schema-parser/openapi-schema-parser.ts index 2c1748b18..8a7f81a57 100644 --- a/src/schema-parser/openapi-schema-parser.ts +++ b/src/schema-parser/openapi-schema-parser.ts @@ -1,15 +1,17 @@ -import { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from "../schema-parser"; -import type { AsyncAPISchema, SchemaValidateResult } from '../types'; -import Ajv, { ErrorObject, ValidateFunction } from "ajv"; -import { schemaV3 } from './openapi/schema_v3' +import Ajv from "ajv"; +import { schemaV3 } from './openapi/schema_v3'; + const toJsonSchema = require('@openapi-contrib/openapi-schema-to-json-schema'); +import type { ErrorObject, ValidateFunction } from "ajv"; +import type { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from "../schema-parser"; +import type { AsyncAPISchema, SchemaValidateResult } from '../types'; + const ajv = new Ajv({ allErrors: true, strict: false, logger: false, }); - ajv.addSchema(schemaV3, "openapi"); export function OpenAPISchemaParser(): SchemaParser { @@ -33,29 +35,20 @@ async function validate(input: ValidateSchemaInput): Promise): Promise { - const transformed = toJsonSchema(input.data, { - cloneSchema: true, - keepNotSupported: [ - 'discriminator', - 'readOnly', - 'writeOnly', - 'deprecated', - 'xml', - 'example', - ], - }); + const transformed = toJsonSchema(input.data, { + cloneSchema: true, + keepNotSupported: [ + 'discriminator', + 'readOnly', + 'writeOnly', + 'deprecated', + 'xml', + 'example', + ], + }); - iterateSchema(transformed); - - const message = (input.meta as any).message - if (message !== undefined) { - message['x-parser-original-schema-format'] = input.schemaFormat || input.defaultSchemaFormat; - message['x-parser-original-payload'] = message.payload; - message.payload = transformed; - delete message.schemaFormat; - }; - - return transformed; + iterateSchema(transformed); + return transformed; } function getMimeTypes() { @@ -76,6 +69,7 @@ function ajvToSpectralResult(errors: ErrorObject[]): SchemaValidateResult[] { } as SchemaValidateResult; }); } + function iterateSchema(schema: any) { if (schema.example !== undefined) { const examples = schema.examples || []; @@ -110,4 +104,4 @@ function aliasProps(obj: any) { iterateSchema(obj[key]); } -} \ No newline at end of file +} diff --git a/src/schema-parser/raml-schema-parser.ts b/src/schema-parser/raml-schema-parser.ts index 450de2394..84610a069 100644 --- a/src/schema-parser/raml-schema-parser.ts +++ b/src/schema-parser/raml-schema-parser.ts @@ -1,32 +1,26 @@ -import { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from "../schema-parser"; -import type { AsyncAPISchema, SchemaValidateResult } from '../types'; import yaml from 'js-yaml'; import * as lib from "webapi-parser"; + const wap = lib.WebApiParser; const r2j = require('ramldt2jsonschema'); +import type { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from "../schema-parser"; +import type { AsyncAPISchema, SchemaValidateResult } from '../types'; + export function RamlSchemaParser(): SchemaParser { - return { - validate, - parse, - getMimeTypes, - } + return { + validate, + parse, + getMimeTypes, } +} async function parse(input: ParseSchemaInput): Promise { - const message = (input.meta as any).message; - const payload = formatPayload(input.data); - - // Draft 6 is compatible with 7. - const jsonModel = await r2j.dt2js(payload, 'tmpType', { draft: '06' }); - const convertedType = jsonModel.definitions.tmpType; + const payload = formatPayload(input.data); - message['x-parser-original-schema-format'] = input.schemaFormat || input.defaultSchemaFormat; - message['x-parser-original-payload'] = payload; - message.payload = convertedType; - delete message.schemaFormat; - - return message.payload; + // Draft 6 is compatible with 7. + const jsonModel = await r2j.dt2js(payload, 'tmpType', { draft: '06' }); + return jsonModel.definitions.tmpType; } function getMimeTypes() { @@ -55,11 +49,9 @@ async function validate(input: ValidateSchemaInput): Promise( + { + input: { + type: 'object', + properties: { + schemaFormat: { + type: 'string', + }, + payload: true, // any + } + }, + options: null + }, + async function asyncApi2CustomSchema(targetVal = {}, _, ctx) { + if (!targetVal.payload) { + return []; + } + + const path = [...ctx.path, 'payload']; + const spec = ctx.document.data as { asyncapi: string }; + const schemaFormat = getSchemaFormat(targetVal.schemaFormat, spec.asyncapi); + const defaultSchemaFormat = getDefaultSchemaFormat(spec.asyncapi); + // we don't have a parsed specification yet because we are still executing code in the context of spectral + const asyncapi = createDetailedAsyncAPI(ctx.document.source as string, spec); + + const input: ValidateSchemaInput = { + asyncapi, + data: targetVal.payload, + meta: {}, + path, + schemaFormat, + defaultSchemaFormat, + } + + let result: SchemaValidateResult[] | void; + try { + result = await validateSchema(parser, input); + } catch(err: any) { + if (err instanceof Error) { + if (err.message === 'Unknown schema format') { + path.pop(); // remove 'payload' as last element of path + path.push('schemaFormat'); + return [ + { + message: `Unknown schema format: "${schemaFormat}"`, + path, + } + ] as SchemaValidateResult[]; + } else { + return [ + { + message: `Error thrown during schema validation: name: ${err.name}, message:, ${err.message}, stack: ${err.stack}`, + path, + } + ] as SchemaValidateResult[]; + } + } + } + + return result && result.map(r => ({ + ...r, + path: r.path ? [...path, ...r.path] : path, + })); + } + ) +} diff --git a/src/spectral.ts b/src/spectral.ts new file mode 100644 index 000000000..52a81a508 --- /dev/null +++ b/src/spectral.ts @@ -0,0 +1,24 @@ +import { RulesetDefinition } from "@stoplight/spectral-core"; +import { asyncapi as aasRuleset } from "@stoplight/spectral-rulesets"; + +import { aas2schemaParserRule } from './schema-parser/spectral-rule-v2'; + +import type { Parser } from "./parser"; + +export function configureSpectral(parser: Parser) { + const ruleset = configureRuleset(parser); + parser.spectral.setRuleset(ruleset); +} + +function configureRuleset(parser: Parser): RulesetDefinition { + return { + extends: [aasRuleset], + rules: { + 'asyncapi-schemas-v2': aas2schemaParserRule(parser), + // We do not use these rules from the official ruleset due to the fact + // that the given rules validate only AsyncAPI Schemas and prevent defining schemas in other formats + 'asyncapi-payload-unsupported-schemaFormat': 'off', + 'asyncapi-payload': 'off', + }, + } as RulesetDefinition; +} diff --git a/src/utils.ts b/src/utils.ts index f2ea335d2..48c0cd5f1 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -68,6 +68,10 @@ export function normalizeInput(asyncapi: string | MaybeAsyncAPI): string { return JSON.stringify(asyncapi, undefined, 2); }; +export function unfreezeObject(data: unknown) { + return JSON.parse(JSON.stringify(data)) +} + export function hasErrorDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean { return diagnostics.some(diagnostic => diagnostic.severity === DiagnosticSeverity.Error); } diff --git a/test/custom-operations/parse-schema.spec.ts b/test/custom-operations/parse-schema.spec.ts new file mode 100644 index 000000000..08ba25a8a --- /dev/null +++ b/test/custom-operations/parse-schema.spec.ts @@ -0,0 +1,96 @@ +import { AsyncAPIDocumentV2 } from '../../src/models'; +import { Parser } from '../../src/parser'; +import { parse } from '../../src/parse'; +import { xParserOriginalPayload } from '../../src/constants'; + +describe('custom operations - parse schemas', function() { + const parser = new Parser(); + + it('should parse valid schema format', async function() { + const document = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'operationId', + message: { + schemaFormat: 'application/vnd.aai.asyncapi;version=2.0.0', + payload: { + type: 'object', + } + } + } + } + } + } + const { parsed, diagnostics } = await parse(parser, document); + + expect(parsed).toBeInstanceOf(AsyncAPIDocumentV2); + expect(diagnostics.length > 0).toEqual(true); + + expect(parsed?.json()['channels']['channel']['publish']['message']['payload']).toEqual({ type: 'object' }); + expect(parsed?.json()['channels']['channel']['publish']['message'][xParserOriginalPayload]).toEqual({ type: 'object' }); + expect(parsed?.json()['channels']['channel']['publish']['message']['payload']).toEqual(parsed?.json()['channels']['channel']['publish']['message'][xParserOriginalPayload]); + }); + + it('should parse valid default schema format', async function() { + const document = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'operationId', + message: { + payload: { + type: 'object', + } + } + } + } + } + } + const { parsed, diagnostics } = await parse(parser, document); + + expect(parsed).toBeInstanceOf(AsyncAPIDocumentV2); + expect(diagnostics.length > 0).toEqual(true); + + expect(parsed?.json()['channels']['channel']['publish']['message']['payload']).toEqual({ type: 'object' }); + expect(parsed?.json()['channels']['channel']['publish']['message'][xParserOriginalPayload]).toEqual({ type: 'object' }); + expect(parsed?.json()['channels']['channel']['publish']['message']['payload']).toEqual(parsed?.json()['channels']['channel']['publish']['message'][xParserOriginalPayload]); + }); + + it('should parse invalid schema format', async function() { + const document = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'operationId', + message: { + schemaFormat: 'not existing', + payload: { + type: 'object', + } + } + } + } + } + } + const { parsed, diagnostics } = await parse(parser, document); + + expect(parsed).toBeUndefined(); + expect(diagnostics.length > 0).toEqual(true); + }); +}); diff --git a/test/parser.spec.ts b/test/parser.spec.ts index 8f17a0554..b55b22519 100644 --- a/test/parser.spec.ts +++ b/test/parser.spec.ts @@ -22,8 +22,7 @@ describe('Parser class', function() { it('should register schema parser', async function() { const parser = new Parser(); - const schemaParser = AsyncAPISchemaParser(); - parser.registerSchemaParser(schemaParser); + parser.registerSchemaParser(AsyncAPISchemaParser()); expect(parser.parserRegistry.size).toBeGreaterThan(1); }); }); diff --git a/test/schema-parser/asyncapi-schema-parser.spec.ts b/test/schema-parser/asyncapi-schema-parser.spec.ts index a76d99544..ab0ae9197 100644 --- a/test/schema-parser/asyncapi-schema-parser.spec.ts +++ b/test/schema-parser/asyncapi-schema-parser.spec.ts @@ -1,9 +1,9 @@ -import { ParseSchemaInput, ValidateSchemaInput } from '../../src/schema-parser/index'; import { AsyncAPISchemaParser } from '../../src/schema-parser/asyncapi-schema-parser'; -import { SchemaValidateResult } from '../../src/types'; -describe('AsyncAPISchemaParser', function () { +import type { ParseSchemaInput, ValidateSchemaInput } from '../../src/schema-parser'; +import type { SchemaValidateResult } from '../../src/types'; +describe('AsyncAPISchemaParser', function () { const validSchema = { asyncapi: { semver: { diff --git a/test/schema-parser/avro/avro-schema-parser.spec.ts b/test/schema-parser/avro/avro-schema-parser.spec.ts index 921f4a648..5d1b48257 100644 --- a/test/schema-parser/avro/avro-schema-parser.spec.ts +++ b/test/schema-parser/avro/avro-schema-parser.spec.ts @@ -1,32 +1,35 @@ -import { ParseSchemaInput } from '../../../src/schema-parser/index'; import { AvroSchemaParser, avroToJsonSchema } from '../../../src/schema-parser/avro-schema-parser'; -import { type Schema as AvroSchema} from "avsc"; import * as fs from 'fs'; import * as path from 'path'; +import type { Schema as AvroSchema } from "avsc"; +import type { ParseSchemaInput } from '../../../src/schema-parser'; + const inputWithAvro182 = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.8.2.json'), 'utf8')); -const outputWithAvro182 = '{"payload":{"type":"object","required":["name","favoriteProgrammingLanguage","address"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"]},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}}}},"x-parser-original-schema-format":"application/vnd.apache.avro;version=1.8.2","x-parser-original-payload":{"type":"record","fields":[{"name":"name","type":"string","example":"Donkey"},{"name":"age","type":["null","int"],"default":null},{"name":"favoriteProgrammingLanguage","type":{"name":"ProgrammingLanguage","type":"enum","symbols":["JS","Java","Go","Rust","C"]}},{"name":"address","type":{"name":"Address","type":"record","fields":[{"name":"zipcode","type":"int","example":53003}]}}]}}'; +const outputWithAvro182 = '{"type":"object","required":["name","favoriteProgrammingLanguage","address"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"]},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}}}}'; const inputWithAvro190 = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.9.0.json'), 'utf8')); -const outputWithAvro190 = '{"payload":{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"Person"},"x-parser-original-schema-format":"application/vnd.apache.avro;version=1.9.0","x-parser-original-payload":{"name":"Person","type":"record","fields":[{"name":"name","type":"string","example":"Donkey"},{"name":"age","type":["null","int"],"default":null,"example":123},{"name":"favoriteProgrammingLanguage","type":{"name":"ProgrammingLanguage","type":"enum","symbols":["JS","Java","Go","Rust","C"],"default":"JS"}},{"name":"address","type":{"name":"Address","type":"record","fields":[{"name":"zipcode","type":"int","example":53003}]}},{"name":"someid","type":"string","logicalType":"uuid"}]}}'; +const outputWithAvro190 = '{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"Person"}'; const inputWithAvro190WithNamespace = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.9.0-namespace.json'), 'utf8')); -const outputWithAvro190WithNamespace = '{"payload":{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"},"x-parser-original-schema-format":"application/vnd.apache.avro;version=1.9.0","x-parser-original-payload":{"name":"Person","namespace":"com.company","type":"record","fields":[{"name":"name","type":"string","example":"Donkey"},{"name":"age","type":["null","int"],"default":null,"example":123},{"name":"favoriteProgrammingLanguage","type":{"name":"ProgrammingLanguage","type":"enum","symbols":["JS","Java","Go","Rust","C"],"default":"JS"}},{"name":"address","type":{"name":"Address","type":"record","fields":[{"name":"zipcode","type":"int","example":53003}]}},{"name":"someid","type":"string","logicalType":"uuid"}]}}'; +const outputWithAvro190WithNamespace = '{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"}'; const inputWithAvro190WithBindings = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.9.0-bindings.json'), 'utf8')); -const outputWithAvro190WithBindings = '{"payload":{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"},"bindings":{"kafka":{"key":{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"}},"mqtt":{"x-test":{"type":"string"}}},"x-parser-original-schema-format":"application/vnd.apache.avro;version=1.9.0","x-parser-original-payload":{"name":"Person","namespace":"com.company","type":"record","fields":[{"name":"name","type":"string","example":"Donkey"},{"name":"age","type":["null","int"],"default":null,"example":123},{"name":"favoriteProgrammingLanguage","type":{"name":"ProgrammingLanguage","type":"enum","symbols":["JS","Java","Go","Rust","C"],"default":"JS"}},{"name":"address","type":{"name":"Address","type":"record","fields":[{"name":"zipcode","type":"int","example":53003}]}},{"name":"someid","type":"string","logicalType":"uuid"}]},"x-parser-original-bindings-kafka-key":{"name":"Person","namespace":"com.company","type":"record","fields":[{"name":"name","type":"string","example":"Donkey"},{"name":"age","type":["null","int"],"default":null,"example":123},{"name":"favoriteProgrammingLanguage","type":{"name":"ProgrammingLanguage","type":"enum","symbols":["JS","Java","Go","Rust","C"],"default":"JS"}},{"name":"address","type":{"name":"Address","type":"record","fields":[{"name":"zipcode","type":"int","example":53003}]}},{"name":"someid","type":"string","logicalType":"uuid"}]}}'; +const outputWithAvro190WithBindings = '{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"}'; +const outputWithAvro190WithBindingsKafkaKeyTransformed = '{"type":"object","required":["name","favoriteProgrammingLanguage","address","someid"],"properties":{"name":{"type":"string","examples":["Donkey"]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123]},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]}}},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"}'; +const outputWithAvro190WithBindingsKafkaKeyOriginal = '{"name":"Person","namespace":"com.company","type":"record","fields":[{"name":"name","type":"string","example":"Donkey"},{"name":"age","type":["null","int"],"default":null,"example":123},{"name":"favoriteProgrammingLanguage","type":{"name":"ProgrammingLanguage","type":"enum","symbols":["JS","Java","Go","Rust","C"],"default":"JS"}},{"name":"address","type":{"name":"Address","type":"record","fields":[{"name":"zipcode","type":"int","example":53003}]}},{"name":"someid","type":"string","logicalType":"uuid"}]}'; const inputWithAvroAdditionalAttributes = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.9.0-additional-attributes.json'), 'utf8')); -const outputWithAvroAdditionalAttributes = '{"payload":{"type":"object","required":["name","serialNo","favoriteProgrammingLanguage","certifications","address","weight","height","someid"],"properties":{"name":{"type":"string","examples":["Donkey"],"minLength":0},"serialNo":{"type":"string","minLength":0,"maxLength":50},"email":{"oneOf":[{"type":"string","examples":["donkey@asyncapi.com"],"pattern":"^[\\\\w-\\\\.]+@([\\\\w-]+\\\\.)+[\\\\w-]{2,4}$"},{"type":"null"}]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123],"exclusiveMinimum":0,"exclusiveMaximum":200},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"certifications":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":500,"uniqueItems":true},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]},"country":{"oneOf":[{"type":"string"},{"type":"null"}]}}},"weight":{"type":"number","format":"float","examples":[65.1],"minimum":0,"maximum":500},"height":{"type":"number","format":"double","examples":[1.85],"minimum":0,"maximum":3},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"},"x-parser-original-schema-format":"application/vnd.apache.avro;version=1.9.0","x-parser-original-payload":{"name":"Person","namespace":"com.company","type":"record","fields":[{"name":"name","type":"string","example":"Donkey","minLength":0},{"name":"serialNo","type":"string","minLength":0,"maxLength":50},{"name":"email","type":["null","string"],"example":"donkey@asyncapi.com","pattern":"^[\\\\w-\\\\.]+@([\\\\w-]+\\\\.)+[\\\\w-]{2,4}$"},{"name":"age","type":["null","int"],"default":null,"example":123,"exclusiveMinimum":0,"exclusiveMaximum":200},{"name":"favoriteProgrammingLanguage","type":{"name":"ProgrammingLanguage","type":"enum","symbols":["JS","Java","Go","Rust","C"],"default":"JS"}},{"name":"certifications","type":{"type":"array","items":"string","minItems":1,"maxItems":500,"uniqueItems":true}},{"name":"address","type":{"name":"Address","type":"record","fields":[{"name":"zipcode","type":"int","example":53003},{"name":"country","type":["null","string"]}]}},{"name":"weight","type":"float","example":65.1,"minimum":0,"maximum":500},{"name":"height","type":"double","example":1.85,"minimum":0,"maximum":3},{"name":"someid","type":"string","logicalType":"uuid"}]}}'; +const outputWithAvroAdditionalAttributes = '{"type":"object","required":["name","serialNo","favoriteProgrammingLanguage","certifications","address","weight","height","someid"],"properties":{"name":{"type":"string","examples":["Donkey"],"minLength":0},"serialNo":{"type":"string","minLength":0,"maxLength":50},"email":{"oneOf":[{"type":"string","examples":["donkey@asyncapi.com"],"pattern":"^[\\\\w-\\\\.]+@([\\\\w-]+\\\\.)+[\\\\w-]{2,4}$"},{"type":"null"}]},"age":{"oneOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[123],"exclusiveMinimum":0,"exclusiveMaximum":200},{"type":"null"}],"default":null},"favoriteProgrammingLanguage":{"type":"string","enum":["JS","Java","Go","Rust","C"],"default":"JS"},"certifications":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":500,"uniqueItems":true},"address":{"type":"object","required":["zipcode"],"properties":{"zipcode":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"examples":[53003]},"country":{"oneOf":[{"type":"string"},{"type":"null"}]}}},"weight":{"type":"number","format":"float","examples":[65.1],"minimum":0,"maximum":500},"height":{"type":"number","format":"double","examples":[1.85],"minimum":0,"maximum":3},"someid":{"type":"string","format":"uuid"}},"x-parser-schema-id":"com.company.Person"}'; const inputWithInvalidAvro = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-invalid.json'), 'utf8')); const inputWithBrokenAvro = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-broken.json'), 'utf8')); const inputWithSubAvro190 = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-111-1.9.0.json'), 'utf8')); -const outputWithSubAvro190 = '{"payload":{"type":"object","required":["metadata","auth_code","triggered_by"],"properties":{"metadata":{"type":"object","required":["id","timestamp"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for this specific event"},"timestamp":{"type":"integer","minimum":-9223372036854776000,"maximum":9223372036854776000,"description":"Instant the event took place (not necessary when it was published)"},"correlation_id":{"oneOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"id of the event that resulted in this\\nevent being published (optional)","default":null},"publisher_context":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"null"}],"description":"optional set of key-value pairs of context to be echoed back\\nin any resulting message (like a richer\\ncorrelationId.\\n\\nThese values are likely only meaningful to the publisher\\nof the correlated event","default":null}},"description":"Metadata to be associated with every published event"},"auth_code":{"type":"object","required":["value","nonce","key"],"properties":{"value":{"type":"string","description":"A sequence of bytes that has been AES encrypted in CTR mode."},"nonce":{"type":"string","description":"A nonce, used by the CTR encryption mode for our encrypted value. Not encrypted, not a secret."},"key":{"type":"string","description":"An AES key, used to encrypt the value field, that has itself been encrypted using RSA."}},"description":"Encrypted auth_code received when user authorizes the app."},"refresh_token":{"type":"object","required":["value","nonce","key"],"properties":{"value":{"type":"string","description":"A sequence of bytes that has been AES encrypted in CTR mode."},"nonce":{"type":"string","description":"A nonce, used by the CTR encryption mode for our encrypted value. Not encrypted, not a secret."},"key":{"type":"string","description":"An AES key, used to encrypt the value field, that has itself been encrypted using RSA."}},"description":"Encrypted auth_code received when user authorizes the app."},"triggered_by":{"type":"string","format":"uuid","description":"ID of the user who triggered this event."}},"description":"An example schema to illustrate the issue","x-parser-schema-id":"com.foo.connections.ConnectionRequested"},"x-parser-original-schema-format":"application/vnd.apache.avro;version=1.9.0","x-parser-original-payload":{"type":"record","name":"ConnectionRequested","namespace":"com.foo.connections","doc":"An example schema to illustrate the issue","fields":[{"name":"metadata","type":{"type":"record","name":"EventMetadata","namespace":"com.foo","doc":"Metadata to be associated with every published event","fields":[{"name":"id","type":{"type":"string","logicalType":"uuid"},"doc":"Unique identifier for this specific event"},{"name":"timestamp","type":{"type":"long","logicalType":"timestamp-millis"},"doc":"Instant the event took place (not necessary when it was published)"},{"name":"correlation_id","type":["null",{"type":"string","logicalType":"uuid"}],"doc":"id of the event that resulted in this\\nevent being published (optional)","default":null},{"name":"publisher_context","type":["null",{"type":"map","values":{"type":"string","avro.java.string":"String"},"avro.java.string":"String"}],"doc":"optional set of key-value pairs of context to be echoed back\\nin any resulting message (like a richer\\ncorrelationId.\\n\\nThese values are likely only meaningful to the publisher\\nof the correlated event","default":null}]}},{"name":"auth_code","type":{"type":"record","name":"EncryptedString","namespace":"com.foo","doc":"A string that was encrypted with AES (using CTR mode), its key encrypted with RSA, and the nonce used for the encryption.","fields":[{"name":"value","type":"string","doc":"A sequence of bytes that has been AES encrypted in CTR mode."},{"name":"nonce","type":"string","doc":"A nonce, used by the CTR encryption mode for our encrypted value. Not encrypted, not a secret."},{"name":"key","type":"string","doc":"An AES key, used to encrypt the value field, that has itself been encrypted using RSA."}]},"doc":"Encrypted auth_code received when user authorizes the app."},{"name":"refresh_token","type":"com.foo.EncryptedString","doc":"Encrypted refresh_token generated by using clientId and clientSecret."},{"name":"triggered_by","type":{"type":"string","logicalType":"uuid"},"doc":"ID of the user who triggered this event."}]}}'; +const outputWithSubAvro190 = '{"type":"object","required":["metadata","auth_code","triggered_by"],"properties":{"metadata":{"type":"object","required":["id","timestamp"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier for this specific event"},"timestamp":{"type":"integer","minimum":-9223372036854776000,"maximum":9223372036854776000,"description":"Instant the event took place (not necessary when it was published)"},"correlation_id":{"oneOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"id of the event that resulted in this\\nevent being published (optional)","default":null},"publisher_context":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"type":"null"}],"description":"optional set of key-value pairs of context to be echoed back\\nin any resulting message (like a richer\\ncorrelationId.\\n\\nThese values are likely only meaningful to the publisher\\nof the correlated event","default":null}},"description":"Metadata to be associated with every published event"},"auth_code":{"type":"object","required":["value","nonce","key"],"properties":{"value":{"type":"string","description":"A sequence of bytes that has been AES encrypted in CTR mode."},"nonce":{"type":"string","description":"A nonce, used by the CTR encryption mode for our encrypted value. Not encrypted, not a secret."},"key":{"type":"string","description":"An AES key, used to encrypt the value field, that has itself been encrypted using RSA."}},"description":"Encrypted auth_code received when user authorizes the app."},"refresh_token":{"type":"object","required":["value","nonce","key"],"properties":{"value":{"type":"string","description":"A sequence of bytes that has been AES encrypted in CTR mode."},"nonce":{"type":"string","description":"A nonce, used by the CTR encryption mode for our encrypted value. Not encrypted, not a secret."},"key":{"type":"string","description":"An AES key, used to encrypt the value field, that has itself been encrypted using RSA."}},"description":"Encrypted auth_code received when user authorizes the app."},"triggered_by":{"type":"string","format":"uuid","description":"ID of the user who triggered this event."}},"description":"An example schema to illustrate the issue","x-parser-schema-id":"com.foo.connections.ConnectionRequested"}'; const inputWithOneOfReferenceAvro190 = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-113-1.9.0.json'), 'utf8')); -const outputWithOneOfReferenceAvro190 = '{"payload":{"oneOf":[{"type":"object","required":["streetaddress","city"],"properties":{"streetaddress":{"type":"string"},"city":{"type":"string"}},"x-parser-schema-id":"com.example.Address"},{"type":"object","required":["firstname","lastname"],"properties":{"firstname":{"type":"string"},"lastname":{"type":"string"},"address":{"type":"object","required":["streetaddress","city"],"properties":{"streetaddress":{"type":"string"},"city":{"type":"string"}},"x-parser-schema-id":"com.example.Address"}},"x-parser-schema-id":"com.example.Person"}]},"x-parser-original-schema-format":"application/vnd.apache.avro;version=1.9.0","x-parser-original-payload":[{"type":"record","name":"Address","namespace":"com.example","fields":[{"name":"streetaddress","type":"string"},{"name":"city","type":"string"}]},{"type":"record","name":"Person","namespace":"com.example","fields":[{"name":"firstname","type":"string"},{"name":"lastname","type":"string"},{"name":"address","type":"com.example.Address"}]}]}'; +const outputWithOneOfReferenceAvro190 = '{"oneOf":[{"type":"object","required":["streetaddress","city"],"properties":{"streetaddress":{"type":"string"},"city":{"type":"string"}},"x-parser-schema-id":"com.example.Address"},{"type":"object","required":["firstname","lastname"],"properties":{"firstname":{"type":"string"},"lastname":{"type":"string"},"address":{"type":"object","required":["streetaddress","city"],"properties":{"streetaddress":{"type":"string"},"city":{"type":"string"}},"x-parser-schema-id":"com.example.Address"}},"x-parser-schema-id":"com.example.Person"}]}'; describe('AvroSchemaParser', function () { const parser = AvroSchemaParser(); @@ -34,9 +37,11 @@ describe('AvroSchemaParser', function () { it('should return Mime Types', async function () { expect(parser.getMimeTypes()).not.toEqual([]); }); + it('should parse Avro schema 1.8.2', async function() { await doTest(inputWithAvro182, outputWithAvro182); }); + it('should parse Avro schema 1.9.0', async function() { await doTest(inputWithAvro190, outputWithAvro190); }); @@ -44,27 +49,43 @@ describe('AvroSchemaParser', function () { it('should parse Avro schema 1.9.0 with a namespace', async function() { await doTest(inputWithAvro190WithNamespace, outputWithAvro190WithNamespace); }); + it('should parse Avro schema in kafka bindings', async function() { - await doTest(inputWithAvro190WithBindings, outputWithAvro190WithBindings); + const input = {...inputWithAvro190WithBindings}; + const result = await parser.parse(input); + + // Check that the return value of parse() is the expected JSON Schema. + expect(result).toEqual(JSON.parse(outputWithAvro190WithBindings)); + + // Check that the message got modified, i.e. adding extensions, setting the payload, etc. + const message = (input.meta as any).message; + expect(JSON.stringify(message.bindings.kafka.key)).toEqual(outputWithAvro190WithBindingsKafkaKeyTransformed); + expect(JSON.stringify(message['x-parser-original-bindings-kafka-key'])).toEqual(outputWithAvro190WithBindingsKafkaKeyOriginal); }); + it('should handle additional Avro attributes like', async function() { await doTest(inputWithAvroAdditionalAttributes, outputWithAvroAdditionalAttributes); }); + it('should validate invalid Avro schemas as invalid', async function() { const result = await parser.validate(inputWithInvalidAvro); expect(result).toEqual([{"message": "unknown type: undefined", "path": []}]); }); + it('should validate valid Avro schemas', async function() { const result = await parser.validate(inputWithAvro182); expect(result).toHaveLength(0); }); + it('should identify bugs in Avro schemas', async function() { const result = await parser.validate(inputWithBrokenAvro); expect(result).toEqual([{"message": "undefined type name: notAValidAvroType", "path": []}]); }); + it('Issue #111 should handle pre defined records in schemas', async function() { await doTest(inputWithSubAvro190, outputWithSubAvro190); }); + it('Issue #113 should handle pre defined records in top level oneOf schema', async function() { await doTest(inputWithOneOfReferenceAvro190, outputWithOneOfReferenceAvro190); }); @@ -74,11 +95,11 @@ describe('AvroSchemaParser', function () { const result = await parser.parse(input); // Check that the return value of parse() is the expected JSON Schema. - expect(result).toEqual(JSON.parse(expectedOutput).payload); + expect(result).toEqual(JSON.parse(expectedOutput)); - // Check that the message got modified, i.e. adding extensions, setting the payload, etc. - const message = (input.meta as any).message; - expect(JSON.stringify(message)).toEqual(expectedOutput); + // // Check that the message got modified, i.e. adding extensions, setting the payload, etc. + // const message = (input.meta as any).message; + // expect(JSON.stringify(message)).toEqual(expectedOutput); } }); diff --git a/test/schema-parser/openapi/openapi-schema-parser.spec.ts b/test/schema-parser/openapi/openapi-schema-parser.spec.ts index 9076f2163..62101227f 100644 --- a/test/schema-parser/openapi/openapi-schema-parser.spec.ts +++ b/test/schema-parser/openapi/openapi-schema-parser.spec.ts @@ -1,10 +1,11 @@ -import { ParseSchemaInput, ValidateSchemaInput } from '../../../src/schema-parser/index'; import { OpenAPISchemaParser } from '../../../src/schema-parser/openapi-schema-parser'; import * as fs from 'fs'; import * as path from 'path'; +import type { ParseSchemaInput, ValidateSchemaInput } from '../../../src/schema-parser'; + const inputWithValidOpenApi3 = toParseInput(fs.readFileSync(path.resolve(__dirname, './valid.json'), 'utf8')); -const outputWithValidOpenApi3 = '{"payload":{"type":["object","null"],"properties":{"name":{"type":"string"},"discriminatorTest":{"discriminator":{"propertyName":"objectType"},"oneOf":[{"type":"object","properties":{"objectType":{"type":"string"},"prop1":{"type":"string"}}},{"type":"object","properties":{"objectType":{"type":"string"},"prop2":{"type":"string"}}}]},"test":{"type":"object","properties":{"testing":{"type":"string"}}}},"examples":[{"name":"Fran"}]},"x-parser-original-schema-format":"application/vnd.oai.openapi;version=3.0.0","x-parser-original-payload":{"type":"object","nullable":true,"example":{"name":"Fran"},"properties":{"name":{"type":"string"},"discriminatorTest":{"discriminator":{"propertyName":"objectType"},"oneOf":[{"type":"object","properties":{"objectType":{"type":"string"},"prop1":{"type":"string"}}},{"type":"object","properties":{"objectType":{"type":"string"},"prop2":{"type":"string"}}}]},"test":{"type":"object","properties":{"testing":{"type":"string"}}}}}}'; +const outputWithValidOpenApi3 = '{"type":["object","null"],"properties":{"name":{"type":"string"},"discriminatorTest":{"discriminator":{"propertyName":"objectType"},"oneOf":[{"type":"object","properties":{"objectType":{"type":"string"},"prop1":{"type":"string"}}},{"type":"object","properties":{"objectType":{"type":"string"},"prop2":{"type":"string"}}}]},"test":{"type":"object","properties":{"testing":{"type":"string"}}}},"examples":[{"name":"Fran"}]}'; const inputWithInvalidOpenApi3 = toParseInput(fs.readFileSync(path.resolve(__dirname, './invalid.json'), 'utf8')); @@ -14,9 +15,11 @@ describe('OpenAPISchemaParser', function () { it('should return Mime Types', async function () { expect(parser.getMimeTypes()).not.toEqual([]); }); + it('should parse OpenAPI 3', async function() { await doParseTest(inputWithValidOpenApi3, outputWithValidOpenApi3); }); + it('should validate valid OpenAPI 3', async function() { const result = await parser.validate(inputWithValidOpenApi3); expect(result).toHaveLength(0); @@ -58,11 +61,7 @@ describe('OpenAPISchemaParser', function () { const result = await parser.parse(input); // Check that the return value of parse() is the expected JSON Schema. - expect(result).toEqual(JSON.parse(expectedOutput).payload); - - // Check that the message got modified, i.e. adding extensions, setting the payload, etc. - const message = (input.meta as any).message; - expect(JSON.stringify(message)).toEqual(expectedOutput); + expect(result).toEqual(JSON.parse(expectedOutput)); } }); diff --git a/test/schema-parser/raml/raml-schema-parser.spec.ts b/test/schema-parser/raml/raml-schema-parser.spec.ts index 5afabbb11..9479129a2 100644 --- a/test/schema-parser/raml/raml-schema-parser.spec.ts +++ b/test/schema-parser/raml/raml-schema-parser.spec.ts @@ -1,14 +1,15 @@ -import { ParseSchemaInput, ValidateSchemaInput } from '../../../src/schema-parser/index'; import { RamlSchemaParser } from '../../../src/schema-parser/raml-schema-parser'; -import { SchemaValidateResult } from '../../../src/types'; import * as fs from 'fs'; import * as path from 'path'; +import type { ParseSchemaInput, ValidateSchemaInput } from '../../../src/schema-parser'; +import type { SchemaValidateResult } from '../../../src/types'; + const inputWithSimpleRAML = toInput(fs.readFileSync(path.resolve(__dirname, './simple.json'), 'utf8')); -const outputWithSimpleRAML = '{"payload":{"type":"object","examples":[{"title":"A book","author":"An author"}],"additionalProperties":true,"required":["title","author"],"properties":{"title":{"type":"string"},"author":{"type":"string","examples":["Eva"]}}},"x-parser-original-schema-format":"application/raml+yaml;version=1.0","x-parser-original-payload":"#%RAML 1.0 Library\\ntypes:\\n tmpType:\\n type: object\\n properties:\\n title: string\\n author:\\n type: string\\n examples:\\n anExample: Eva\\n examples:\\n exampleOne:\\n title: A book\\n author: An author\\n"}'; +const outputWithSimpleRAML = '{"type":"object","examples":[{"title":"A book","author":"An author"}],"additionalProperties":true,"required":["title","author"],"properties":{"title":{"type":"string"},"author":{"type":"string","examples":["Eva"]}}}'; const inputWithComplexRAML = toInput(fs.readFileSync(path.resolve(__dirname, './complex.json'), 'utf8')); -const outputWithComplexRAML = `{"payload":{"minProperties":1,"maxProperties":50,"additionalProperties":false,"discriminator":"breed","discriminatorValue":"CatOne","type":"object","required":["proscons","name","breed","age","rating","year_of_birth","time_of_birth","addition_date","removal_date","photo","description","character","siblings","parents","ratingHistory","additionalData"],"properties":{"proscons":{"anyOf":[true,true]},"name":true,"breed":true,"age":true,"rating":{"type":"integer","multipleOf":5,"example":{"displayName":"Cat's rating","description":"Rating of cat's awesomeness","strict":false,"value":50}},"year_of_birth":{"type":"string","format":"date"},"time_of_birth":{"type":"string","format":"time"},"dt_of_birth":{"type":"string","format":"date-time-only"},"addition_date":{"type":"string","format":"rfc2616"},"removal_date":{"type":"string","format":"date-time"},"photo":{"type":"string","minLength":1,"maxLength":307200},"description":{"type":"null"},"habits":{"type":"string"},"character":{"anyOf":[{"type":"null"},{"type":"string"}]},"siblings":{"type":"array","items":{"type":"string"}},"parents":{"type":"array","items":true},"ratingHistory":{"type":"array","items":{"anyOf":[{"type":"integer"},{"type":"number"}]}},"additionalData":{"type":"object","additionalProperties":true,"required":["weight"],"properties":{"weight":{"type":"number"}}}}},"x-parser-original-schema-format":"application/raml+yaml;version=1.0","x-parser-original-payload":"#%RAML 1.0 Library\\ntypes:\\n tmpType:\\n type:\\n - CatWithAddress\\n - CatWithCity\\n minProperties: 1\\n maxProperties: 50\\n additionalProperties: false\\n discriminator: breed\\n discriminatorValue: CatOne\\n properties:\\n proscons:\\n type: CatPros | CatCons\\n required: true\\n name:\\n type: CatName\\n amazing: true\\n breed:\\n type: CatBreed\\n age: CatAge\\n rating:\\n type: integer\\n multipleOf: 5\\n example:\\n displayName: Cat's rating\\n description: Rating of cat's awesomeness\\n strict: false\\n value: 50\\n year_of_birth: date-only\\n time_of_birth: time-only\\n dt_of_birth:\\n type: datetime-only\\n required: false\\n addition_date:\\n type: datetime\\n format: rfc2616\\n removal_date:\\n type: datetime\\n photo:\\n type: file\\n fileTypes:\\n - image/jpeg\\n - image/png\\n minLength: 1\\n maxLength: 307200\\n description: nil\\n habits?: string\\n character: nil | string\\n siblings: 'string[]'\\n parents: 'CatName[]'\\n ratingHistory: '(integer | number)[]'\\n additionalData:\\n type:\\n type: object\\n properties:\\n weight: number\\n"}`; +const outputWithComplexRAML = `{"minProperties":1,"maxProperties":50,"additionalProperties":false,"discriminator":"breed","discriminatorValue":"CatOne","type":"object","required":["proscons","name","breed","age","rating","year_of_birth","time_of_birth","addition_date","removal_date","photo","description","character","siblings","parents","ratingHistory","additionalData"],"properties":{"proscons":{"anyOf":[true,true]},"name":true,"breed":true,"age":true,"rating":{"type":"integer","multipleOf":5,"example":{"displayName":"Cat's rating","description":"Rating of cat's awesomeness","strict":false,"value":50}},"year_of_birth":{"type":"string","format":"date"},"time_of_birth":{"type":"string","format":"time"},"dt_of_birth":{"type":"string","format":"date-time-only"},"addition_date":{"type":"string","format":"rfc2616"},"removal_date":{"type":"string","format":"date-time"},"photo":{"type":"string","minLength":1,"maxLength":307200},"description":{"type":"null"},"habits":{"type":"string"},"character":{"anyOf":[{"type":"null"},{"type":"string"}]},"siblings":{"type":"array","items":{"type":"string"}},"parents":{"type":"array","items":true},"ratingHistory":{"type":"array","items":{"anyOf":[{"type":"integer"},{"type":"number"}]}},"additionalData":{"type":"object","additionalProperties":true,"required":["weight"],"properties":{"weight":{"type":"number"}}}}}`; const inputWithInvalidRAML = toInput(fs.readFileSync(path.resolve(__dirname, './invalid.json'), 'utf8')); @@ -28,11 +29,7 @@ describe('parse()', function() { const result = await parser.parse(input); // Check that the return value of parse() is the expected JSON Schema. - expect(result).toEqual(JSON.parse(expectedOutput).payload); - - // Check that the message got modified, i.e. adding extensions, setting the payload, etc. - const message = (input.meta as any).message; - expect(JSON.stringify(message)).toEqual(expectedOutput); + expect(result).toEqual(JSON.parse(expectedOutput)); } }); diff --git a/test/schema-parser/spectral-rule-v2.spec.ts b/test/schema-parser/spectral-rule-v2.spec.ts new file mode 100644 index 000000000..26208a348 --- /dev/null +++ b/test/schema-parser/spectral-rule-v2.spec.ts @@ -0,0 +1,305 @@ +import { Parser } from '../../src/parser'; +import { validate } from '../../src/lint'; + +import type { ISpectralDiagnostic } from '@stoplight/spectral-core'; +import type { SchemaValidateResult } from '../../src/types'; + +describe('aas2schemaParserRule', function() { + const parser = new Parser(); + + it('should validate AsyncAPI Schema with valid schema', async function() { + const document = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + message: { + payload: { + type: 'object', + } + } + } + } + } + } + const { diagnostics } = await validate(parser, document); + const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); + expect(filteredDiagnostics).toHaveLength(0); + }); + + it('should validate AsyncAPI Schema with invalid schema', async function() { + const document = { + asyncapi: '2.0.0', + info: { + title: 'Invalid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + message: { + payload: { + oneOf: "this should be an array", + properties: { + name: { + if: "this should be an if" + } + } + } + } + } + } + } + } + const { diagnostics } = await validate(parser, document); + const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); + + const expectedResult: SchemaValidateResult[] = [ + { + message: 'must be array', + path: ['channels', 'channel', 'publish', 'message', 'payload', 'oneOf'] + }, + { + message: 'must be object,boolean', + path: ['channels', 'channel', 'publish', 'message', 'payload', 'properties', 'name', 'if'] + } + ]; + + expect(filteredDiagnostics).toEqual(expectedResult.map(e => expect.objectContaining(e))); + }); + + it('should validate AsyncAPI Schema with invalid schema (components.messages case)', async function() { + const document = { + asyncapi: '2.0.0', + info: { + title: 'Invalid AsyncApi document', + version: '1.0', + }, + channels: {}, + components: { + messages: { + message: { + payload: { + oneOf: "this should be an array", + properties: { + name: { + if: "this should be an if" + } + } + } + } + } + } + } + const { diagnostics } = await validate(parser, document); + const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); + + const expectedResult: SchemaValidateResult[] = [ + { + message: 'must be array', + path: ['components', 'messages', 'message', 'payload', 'oneOf'] + }, + { + message: 'must be object,boolean', + path: ['components', 'messages', 'message', 'payload', 'properties', 'name', 'if'] + } + ]; + + expect(filteredDiagnostics).toEqual(expectedResult.map(e => expect.objectContaining(e))); + }); + + it('should validate AsyncAPI Schema with invalid schema (components.channels case)', async function() { + const document = { + asyncapi: '2.0.0', + info: { + title: 'Invalid AsyncApi document', + version: '1.0', + }, + channels: {}, + components: { + channels: { + channel: { + publish: { + message: { + payload: { + oneOf: "this should be an array", + properties: { + name: { + if: "this should be an if" + } + } + } + }, + } + } + } + } + } + const { diagnostics } = await validate(parser, document); + const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); + + const expectedResult: SchemaValidateResult[] = [ + { + message: 'must be array', + path: ['components', 'channels', 'channel', 'publish', 'message', 'payload', 'oneOf'] + }, + { + message: 'must be object,boolean', + path: ['components', 'channels', 'channel', 'publish', 'message', 'payload', 'properties', 'name', 'if'] + } + ]; + + expect(filteredDiagnostics).toEqual(expectedResult.map(e => expect.objectContaining(e))); + }); + + it('should validate AsyncAPI Schema with invalid schema (oneOf case)', async function() { + const document = { + asyncapi: '2.0.0', + info: { + title: 'Invalid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + message: { + oneOf: [ + { + payload: { + oneOf: "this should be an array", + properties: { + name: { + if: "this should be an if" + } + } + } + }, + { + payload: { + oneOf: "this should be an array", + } + } + ] + } + } + } + } + } + const { diagnostics } = await validate(parser, document); + const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); + + const expectedResult: SchemaValidateResult[] = [ + { + message: 'must be array', + path: ['channels', 'channel', 'publish', 'message', 'oneOf', '0', 'payload', 'oneOf'] + }, + { + message: 'must be object,boolean', + path: ['channels', 'channel', 'publish', 'message', 'oneOf', '0', 'payload', 'properties', 'name', 'if'] + }, + { + message: 'must be array', + path: ['channels', 'channel', 'publish', 'message', 'oneOf', '1', 'payload', 'oneOf'] + } + ]; + + expect(filteredDiagnostics).toEqual(expectedResult.map(e => expect.objectContaining(e))); + }); + + it('should validate AsyncAPI Schema with supported schema format', async function() { + const document = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + message: { + schemaFormat: 'application/vnd.aai.asyncapi;version=2.0.0', + payload: { + type: 'object', + } + } + } + } + } + } + const { diagnostics } = await validate(parser, document); + const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); + expect(filteredDiagnostics).toHaveLength(0); + }); + + it('should validate AsyncAPI Schema with non supported schema format', async function() { + const document = { + asyncapi: '2.0.0', + info: { + title: 'Invalid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + message: { + schemaFormat: 'not existing', + payload: { + type: 'object', + } + } + } + } + } + } + const { diagnostics } = await validate(parser, document); + const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); + + const expectedResult: SchemaValidateResult[] = [ + { + message: 'Unknown schema format: "not existing"', + path: ['channels', 'channel', 'publish', 'message', 'schemaFormat'] + }, + ]; + + expect(filteredDiagnostics).toEqual(expectedResult.map(e => expect.objectContaining(e))); + }); + + it('should not contain errors from asyncapi-payload-unsupported-schemaFormat and asyncapi-payload rules', async function() { + const document = { + asyncapi: '2.0.0', + info: { + title: 'Invalid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + message: { + payload: { + oneOf: "this should be an array", + properties: { + name: { + if: "this should be an if" + } + } + } + } + } + } + } + } + const { diagnostics } = await validate(parser, document); + + expect(filterDiagnostics(diagnostics, 'asyncapi-schemas-v2')).toHaveLength(2); + expect(filterDiagnostics(diagnostics, 'asyncapi-payload-unsupported-schemaFormat')).toHaveLength(0); + expect(filterDiagnostics(diagnostics, 'asyncapi-payload')).toHaveLength(0); + }); +}); + +function filterDiagnostics(diagnostics: ISpectralDiagnostic[], code: string) { + return diagnostics.filter(d => d.code === code); +} From 21b43ea91062821dca09944ce1cb7dfa46506054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Wed, 31 Aug 2022 11:52:07 +0200 Subject: [PATCH 030/126] refactor: add schemaFormat method to the Message model (#582) --- src/models/message-trait.ts | 1 + src/models/v2/message-trait.ts | 6 ++++++ test/models/v2/message-trait.spec.ts | 14 ++++++++++++++ test/models/v2/message.spec.ts | 14 ++++++++++++++ 4 files changed, 35 insertions(+) diff --git a/src/models/message-trait.ts b/src/models/message-trait.ts index 27400e7ba..65777cd6a 100644 --- a/src/models/message-trait.ts +++ b/src/models/message-trait.ts @@ -6,6 +6,7 @@ import type { SchemaInterface } from "./schema"; export interface MessageTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { id(): string; + schemaFormat(): string; hasMessageId(): boolean; messageId(): string | undefined; hasCorrelationId(): boolean; diff --git a/src/models/v2/message-trait.ts b/src/models/v2/message-trait.ts index a796ae07d..d97eca2bc 100644 --- a/src/models/v2/message-trait.ts +++ b/src/models/v2/message-trait.ts @@ -4,6 +4,8 @@ import { MessageExamples } from './message-examples'; import { MessageExample } from './message-example'; import { Schema } from './schema'; +import { getDefaultSchemaFormat } from '../../schema-parser'; + import { Mixin } from '../utils'; import { BindingsMixin } from './mixins/bindings'; import { DescriptionMixin } from './mixins/description'; @@ -29,6 +31,10 @@ export class MessageTrait extends Mixin(BaseModel, BindingsMixin, DescriptionMix return this.messageId() || this._meta.id; } + schemaFormat(): string { + return this._json.schemaFormat || getDefaultSchemaFormat(this._meta.asyncapi.semver.version); + } + hasMessageId(): boolean { return !!this._json.messageId; } diff --git a/test/models/v2/message-trait.spec.ts b/test/models/v2/message-trait.spec.ts index 1061eac17..14b236f92 100644 --- a/test/models/v2/message-trait.spec.ts +++ b/test/models/v2/message-trait.spec.ts @@ -27,6 +27,20 @@ describe('MessageTrait model', function() { }); }); + describe('.schemaFormat()', function() { + it('should return defined schemaFormat', function() { + const doc = { schemaFormat: 'customSchemaFormat' }; + const d = new MessageTrait(doc, { asyncapi: {} as any, pointer: '', id: 'message' }); + expect(d.schemaFormat()).toEqual('customSchemaFormat'); + }); + + it('should return default schemaFormat if schemaFormat field is absent', function() { + const doc = {}; + const d = new MessageTrait(doc, { asyncapi: { semver: { version: '2.0.0' } } as any, pointer: '', id: 'message' }); + expect(d.schemaFormat()).toEqual('application/vnd.aai.asyncapi;version=2.0.0'); + }); + }); + describe('.hasMessageId()', function() { it('should return true when there is a value', function() { const doc = { messageId: '...' }; diff --git a/test/models/v2/message.spec.ts b/test/models/v2/message.spec.ts index 9c8667e3c..dbe19266a 100644 --- a/test/models/v2/message.spec.ts +++ b/test/models/v2/message.spec.ts @@ -32,6 +32,20 @@ describe('Message model', function() { }); }); + describe('.schemaFormat()', function() { + it('should return defined schemaFormat', function() { + const doc = { schemaFormat: 'customSchemaFormat' }; + const d = new Message(doc, { asyncapi: {} as any, pointer: '', id: 'message' }); + expect(d.schemaFormat()).toEqual('customSchemaFormat'); + }); + + it('should return default schemaFormat if schemaFormat field is absent', function() { + const doc = {}; + const d = new Message(doc, { asyncapi: { semver: { version: '2.0.0' } } as any, pointer: '', id: 'message' }); + expect(d.schemaFormat()).toEqual('application/vnd.aai.asyncapi;version=2.0.0'); + }); + }); + describe('.hasPayload()', function() { it('should return true when there is a value', function() { const doc = { payload: {} }; From deb900eedd0930ee0d8d93d4525188307a1fdef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Wed, 31 Aug 2022 12:15:13 +0200 Subject: [PATCH 031/126] refactor: remove mixins and add AsyncAPI TS types (#581) --- src/custom-operations/apply-traits.ts | 8 +- src/models/asyncapi.ts | 4 +- src/models/base.ts | 30 +- src/models/message-example.ts | 4 +- src/models/oauth-flow.ts | 2 +- src/models/security-scheme.ts | 3 +- src/models/server.ts | 2 +- src/models/utils.ts | 4 + src/models/v2/asyncapi.ts | 12 +- src/models/v2/binding.ts | 28 ++ src/models/v2/bindings.ts | 14 + src/models/v2/channel-parameter.ts | 27 +- src/models/v2/channel.ts | 37 +- src/models/v2/components.ts | 19 +- src/models/v2/contact.ts | 14 +- src/models/v2/correlation-id.ts | 21 +- src/models/v2/extension.ts | 19 + src/models/v2/extensions.ts | 16 + src/models/v2/external-docs.ts | 26 ++ src/models/v2/index.ts | 37 +- src/models/v2/info.ts | 26 +- src/models/v2/license.ts | 14 +- src/models/v2/message-example.ts | 16 +- src/models/v2/message-trait.ts | 50 ++- src/models/v2/message.ts | 4 +- src/models/v2/mixins.ts | 66 +++ src/models/v2/mixins/bindings.ts | 53 --- src/models/v2/mixins/description.ts | 13 - src/models/v2/mixins/extensions.ts | 56 --- src/models/v2/mixins/external-docs.ts | 27 -- src/models/v2/mixins/tags.ts | 37 -- src/models/v2/oauth-flow.ts | 16 +- src/models/v2/oauth-flows.ts | 22 +- src/models/v2/operation-trait.ts | 53 ++- src/models/v2/operation.ts | 18 +- src/models/v2/schema.ts | 28 +- src/models/v2/security-scheme.ts | 35 +- src/models/v2/server-variable.ts | 33 +- src/models/v2/server.ts | 38 +- src/models/v2/tag.ts | 35 ++ src/models/v2/tags.ts | 14 + src/schema-parser/spectral-rule-v2.ts | 3 +- src/spec-types/index.ts | 1 + src/spec-types/v2.ts | 380 ++++++++++++++++++ src/stringify.ts | 4 +- src/types.ts | 7 +- src/utils.ts | 8 +- test/custom-operations/parse-schema.spec.ts | 14 +- test/models/asyncapi.spec.ts | 4 +- test/models/base.spec.ts | 2 +- test/models/v2/asyncapi.spec.ts | 49 ++- test/models/v2/channel-parameter.spec.ts | 31 +- test/models/v2/channel.spec.ts | 46 +-- test/models/v2/components.spec.ts | 68 ++-- test/models/v2/contact.spec.ts | 34 +- test/models/v2/correlation-id.spec.ts | 21 +- test/models/v2/external-docs.spec.ts | 17 +- test/models/v2/info.spec.ts | 94 ++--- test/models/v2/license.spec.ts | 20 +- test/models/v2/message-example.spec.ts | 8 +- test/models/v2/message-trait.spec.ts | 24 +- test/models/v2/message.spec.ts | 20 +- test/models/v2/mixins.spec.ts | 150 +++++++ test/models/v2/mixins/bindings.spec.ts | 25 -- test/models/v2/mixins/description.spec.ts | 33 -- test/models/v2/mixins/extensions.spec.ts | 25 -- test/models/v2/mixins/external-docs.spec.ts | 35 -- test/models/v2/mixins/inheritance.ts | 65 --- test/models/v2/mixins/tags.spec.ts | 25 -- test/models/v2/oauth-flow.spec.ts | 4 +- test/models/v2/operation-trait.spec.ts | 20 +- test/models/v2/operation.spec.ts | 20 +- test/models/v2/schema.spec.ts | 21 +- test/models/v2/security-scheme.spec.ts | 12 +- test/models/v2/server.spec.ts | 38 +- test/models/v2/tag.spec.ts | 14 +- test/models/v2/tags.spec.ts | 3 +- test/models/v2/utils.ts | 150 +++++++ .../avro/avro-schema-parser.spec.ts | 2 +- .../openapi/openapi-schema-parser.spec.ts | 2 +- .../raml/raml-schema-parser.spec.ts | 2 +- test/stringify.spec.ts | 2 +- test/utils.spec.ts | 14 +- 83 files changed, 1579 insertions(+), 919 deletions(-) create mode 100644 src/models/v2/binding.ts create mode 100644 src/models/v2/bindings.ts create mode 100644 src/models/v2/extension.ts create mode 100644 src/models/v2/extensions.ts create mode 100644 src/models/v2/external-docs.ts create mode 100644 src/models/v2/mixins.ts delete mode 100644 src/models/v2/mixins/bindings.ts delete mode 100644 src/models/v2/mixins/description.ts delete mode 100644 src/models/v2/mixins/extensions.ts delete mode 100644 src/models/v2/mixins/external-docs.ts delete mode 100644 src/models/v2/mixins/tags.ts create mode 100644 src/models/v2/tag.ts create mode 100644 src/models/v2/tags.ts create mode 100644 src/spec-types/index.ts create mode 100644 src/spec-types/v2.ts create mode 100644 test/models/v2/mixins.spec.ts delete mode 100644 test/models/v2/mixins/bindings.spec.ts delete mode 100644 test/models/v2/mixins/description.spec.ts delete mode 100644 test/models/v2/mixins/extensions.spec.ts delete mode 100644 test/models/v2/mixins/external-docs.spec.ts delete mode 100644 test/models/v2/mixins/inheritance.ts delete mode 100644 test/models/v2/mixins/tags.spec.ts create mode 100644 test/models/v2/utils.ts diff --git a/src/custom-operations/apply-traits.ts b/src/custom-operations/apply-traits.ts index 210668994..97f2bfd1b 100644 --- a/src/custom-operations/apply-traits.ts +++ b/src/custom-operations/apply-traits.ts @@ -3,6 +3,8 @@ import { JSONPath } from 'jsonpath-plus'; import { xParserOriginalTraits } from '../constants'; import { mergePatch } from '../utils'; +import type { v2 } from "../spec-types"; + const v2TraitPaths = [ // operations '$.channels.*.[publish,subscribe]', @@ -15,7 +17,7 @@ const v2TraitPaths = [ '$.components.messages.*', ]; -export function applyTraitsV2(asyncapi: Record) { +export function applyTraitsV2(asyncapi: v2.AsyncAPIObject) { applyAllTraits(asyncapi, v2TraitPaths); } @@ -31,11 +33,11 @@ const v3TraitPaths = [ '$.components.messages.*', ]; -export function applyTraitsV3(asyncapi: Record) { +export function applyTraitsV3(asyncapi: v2.AsyncAPIObject) { // TODO: Change type when we will have implemented types for v3 applyAllTraits(asyncapi, v3TraitPaths); } -function applyAllTraits(asyncapi: Record, paths: string[]) { +function applyAllTraits(asyncapi: Record, paths: string[]) { paths.forEach(path => { JSONPath({ path, diff --git a/src/models/asyncapi.ts b/src/models/asyncapi.ts index e6cf99adf..142acf417 100644 --- a/src/models/asyncapi.ts +++ b/src/models/asyncapi.ts @@ -12,7 +12,9 @@ import type { SecuritySchemesInterface } from "./security-schemes"; import type { ServersInterface } from "./servers"; import type { DetailedAsyncAPI } from "../types"; -export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInterface { +import type { v2 } from "../spec-types"; + +export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInterface { version(): string; defaultContentType(): string | undefined; hasDefaultContentType(): boolean; diff --git a/src/models/base.ts b/src/models/base.ts index 748a56889..db9323a54 100644 --- a/src/models/base.ts +++ b/src/models/base.ts @@ -7,32 +7,36 @@ export interface ModelMetadata { [key: string]: any; } -export abstract class BaseModel { +export abstract class BaseModel = Record, M extends Record = {}> { constructor( - protected readonly _json: Record, - protected readonly _meta: ModelMetadata = {} as any, + protected readonly _json: J, + protected readonly _meta: ModelMetadata & M = {} as any, ) {} - json>(): T; - json(key: string | number): T; - json(key?: string | number) { + json = J>(): T; + json(key: K): J[K]; + json(key?: keyof J) { if (key === undefined) return this._json; if (!this._json) return; return this._json[String(key)]; } - meta(): ModelMetadata { - return this._meta!; + meta(): ModelMetadata & M; + meta(key: K): (ModelMetadata & M)[K]; + meta(key?: keyof ModelMetadata & M) { + if (key === undefined) return this._meta; + if (!this._meta) return; + return this._meta[String(key)]; } - jsonPath(field?: string): string | undefined { + jsonPath(field?: string | undefined): string { if (typeof field !== 'string') { - return this._meta?.pointer; + return this._meta.pointer; } - return `${this._meta?.pointer}/${field}`; + return `${this._meta.pointer}/${field}`; } - protected createModel(Model: Constructor, value: any, { pointer, ...rest }: { pointer: string | number, [key: string]: any }): T { - return new Model(value, { ...rest, asyncapi: this._meta.asyncapi, pointer }); + protected createModel(Model: Constructor, value: any, meta: { pointer: string | number, [key: string]: any }): T { + return new Model(value, { ...meta, asyncapi: this._meta.asyncapi }); } } diff --git a/src/models/message-example.ts b/src/models/message-example.ts index fe535273f..16867bd7b 100644 --- a/src/models/message-example.ts +++ b/src/models/message-example.ts @@ -3,9 +3,9 @@ import type { ExtensionsMixinInterface } from './mixins'; export interface MessageExampleInterface extends BaseModel, ExtensionsMixinInterface { hasName(): boolean; - name(): string; + name(): string | undefined; hasSummary(): boolean; - summary(): string; + summary(): string | undefined; hasHeaders(): boolean; headers(): Record | undefined; hasPayload(): boolean; diff --git a/src/models/oauth-flow.ts b/src/models/oauth-flow.ts index 12f39223b..050064964 100644 --- a/src/models/oauth-flow.ts +++ b/src/models/oauth-flow.ts @@ -1,7 +1,7 @@ import { BaseModel } from './base'; import { ExtensionsMixinInterface } from './mixins'; -export interface OAuthFlowInterface extends BaseModel, ExtensionsMixinInterface { +export interface OAuthFlowInterface = Record> extends BaseModel, ExtensionsMixinInterface { authorizationUrl(): string | undefined; hasRefreshUrl(): boolean; refreshUrl(): string | undefined; diff --git a/src/models/security-scheme.ts b/src/models/security-scheme.ts index b551f761c..243ddfa4d 100644 --- a/src/models/security-scheme.ts +++ b/src/models/security-scheme.ts @@ -8,10 +8,9 @@ export interface SecuritySchemeInterface extends BaseModel, DescriptionMixinInte id(): string hasBearerFormat(): boolean; bearerFormat(): string | undefined; - openIdConnectUrl(): string; + openIdConnectUrl(): string | undefined; scheme(): string | undefined; flows(): OAuthFlowsInterface | undefined; - scopes(): string[]; type(): SecuritySchemaType; in(): string | undefined; } diff --git a/src/models/server.ts b/src/models/server.ts index 388096bf0..e8e302636 100644 --- a/src/models/server.ts +++ b/src/models/server.ts @@ -10,7 +10,7 @@ export interface ServerInterface extends BaseModel, DescriptionMixinInterface, B id(): string url(): string; protocol(): string; - protocolVersion(): string; + protocolVersion(): string | undefined; hasProtocolVersion(): boolean; channels(): ChannelsInterface; operations(): OperationsInterface; diff --git a/src/models/utils.ts b/src/models/utils.ts index 2da3454f4..e58b5ce07 100644 --- a/src/models/utils.ts +++ b/src/models/utils.ts @@ -33,3 +33,7 @@ function mixin(derivedCtor: any, constructors: any[]): typeof BaseModel { }); return derivedCtor; } + +export function createModel(Model: Constructor, value: any, meta: { pointer: string | number, [key: string]: any }, parent: BaseModel) { + return new Model(value, { ...meta, asyncapi: parent?.meta().asyncapi }); +} \ No newline at end of file diff --git a/src/models/v2/asyncapi.ts b/src/models/v2/asyncapi.ts index 271695bf8..7cf366593 100644 --- a/src/models/v2/asyncapi.ts +++ b/src/models/v2/asyncapi.ts @@ -11,8 +11,7 @@ import { SecuritySchemes } from "./security-schemes"; import { SecurityScheme } from "./security-scheme"; import { Schemas } from "./schemas"; -import { Mixin } from '../utils'; -import { ExtensionsMixin } from './mixins/extensions'; +import { extensions } from './mixins'; import { tilde } from '../../utils'; @@ -27,8 +26,11 @@ import type { MessagesInterface } from "../messages"; import type { MessageInterface } from "../message"; import type { SchemasInterface } from "../schemas"; import type { SecuritySchemesInterface } from "../security-schemes"; +import type { ExtensionsInterface } from "../extensions"; -export class AsyncAPIDocument extends Mixin(BaseModel, ExtensionsMixin) implements AsyncAPIDocumentInterface { +import type { v2 } from "../../spec-types"; + +export class AsyncAPIDocument extends BaseModel implements AsyncAPIDocumentInterface { version(): string { return this._json.asyncapi; } @@ -88,4 +90,8 @@ export class AsyncAPIDocument extends Mixin(BaseModel, ExtensionsMixin) implemen components(): ComponentsInterface { return new Components(this._json.components || {}); } + + extensions(): ExtensionsInterface { + return extensions(this); + } } diff --git a/src/models/v2/binding.ts b/src/models/v2/binding.ts new file mode 100644 index 000000000..c2601bca8 --- /dev/null +++ b/src/models/v2/binding.ts @@ -0,0 +1,28 @@ +import { BaseModel } from "../base"; + +import { extensions } from "./mixins"; + +import type { BindingInterface } from "../binding"; +import type { ExtensionsInterface } from "../extensions"; + +import type { v2 } from "../../spec-types"; + +export class Binding extends BaseModel implements BindingInterface { + protocol(): string { + return this._meta.protocol; + } + + version(): string { + return this._json.bindingVersion || 'latest'; + } + + value = Record>(): T { + const value = { ...this._json }; + delete (value as any).bindingVersion; + return value as unknown as T; + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} diff --git a/src/models/v2/bindings.ts b/src/models/v2/bindings.ts new file mode 100644 index 000000000..e15981e4d --- /dev/null +++ b/src/models/v2/bindings.ts @@ -0,0 +1,14 @@ +import { Collection } from "../collection"; + +import type { BindingsInterface } from "../bindings"; +import type { BindingInterface } from "../binding"; + +export class Bindings extends Collection implements BindingsInterface { + override get(name: string): BindingInterface | undefined { + return this.collections.find(binding => binding.protocol() === name); + }; + + override has(name: string): boolean { + return this.collections.some(binding => binding.protocol() === name); + }; +} diff --git a/src/models/v2/channel-parameter.ts b/src/models/v2/channel-parameter.ts index 0609b0636..e2a094c23 100644 --- a/src/models/v2/channel-parameter.ts +++ b/src/models/v2/channel-parameter.ts @@ -1,22 +1,15 @@ import { BaseModel } from "../base"; import { Schema } from "./schema"; -import { Mixin } from '../utils'; -import { DescriptionMixin } from './mixins/description'; -import { ExtensionsMixin } from './mixins/extensions'; +import { hasDescription, description, extensions } from './mixins'; -import type { ModelMetadata } from "../base"; import type { ChannelParameterInterface } from "../channel-parameter"; import type { SchemaInterface } from "../schema"; +import type { ExtensionsInterface } from "../extensions"; -export class ChannelParameter extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements ChannelParameterInterface { - constructor( - _json: Record, - protected readonly _meta: ModelMetadata & { id: string } = {} as any - ) { - super(_json, _meta); - } +import type { v2 } from "../../spec-types"; +export class ChannelParameter extends BaseModel implements ChannelParameterInterface { id(): string { return this._meta.id; } @@ -37,4 +30,16 @@ export class ChannelParameter extends Mixin(BaseModel, DescriptionMixin, Extensi location(): string | undefined { return this._json.location; } + + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } } diff --git a/src/models/v2/channel.ts b/src/models/v2/channel.ts index e178d1643..28102db42 100644 --- a/src/models/v2/channel.ts +++ b/src/models/v2/channel.ts @@ -7,14 +7,12 @@ import { Operation } from './operation'; import { Servers } from './servers'; import { Server } from './server'; -import { Mixin } from '../utils'; -import { BindingsMixin } from './mixins/bindings'; -import { DescriptionMixin } from './mixins/description'; -import { ExtensionsMixin } from './mixins/extensions'; +import { bindings, hasDescription, description, extensions } from './mixins'; -import type { ModelMetadata } from "../base"; +import type { BindingsInterface } from "models/bindings"; import type { ChannelInterface } from "../channel"; import type { ChannelParametersInterface } from "../channel-parameters"; +import type { ExtensionsInterface } from "models/extensions"; import type { MessagesInterface } from "../messages"; import type { MessageInterface } from "../message"; import type { OperationsInterface } from "../operations"; @@ -22,14 +20,9 @@ import type { OperationInterface } from "../operation"; import type { ServersInterface } from "../servers"; import type { ServerInterface } from "../server"; -export class Channel extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, ExtensionsMixin) implements ChannelInterface { - constructor( - _json: Record, - protected readonly _meta: ModelMetadata & { id: string, address: string } = {} as any - ) { - super(_json, _meta); - } +import type { v2 } from "../../spec-types"; +export class Channel extends BaseModel implements ChannelInterface { id(): string { return this._meta.id; } @@ -38,6 +31,14 @@ export class Channel extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, E return this._meta.address; } + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + servers(): ServersInterface { const servers: ServerInterface[] = []; const allowedServers: string[] = this._json.servers || []; @@ -52,8 +53,8 @@ export class Channel extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, E operations(): OperationsInterface { const operations: OperationInterface[] = []; ['publish', 'subscribe'].forEach(operationAction => { - this._json[operationAction] && operations.push( - this.createModel(Operation, this._json[operationAction], { id: operationAction, action: operationAction, pointer: `${this._meta.pointer}/${operationAction}` }), + this._json[operationAction as 'publish' | 'subscribe'] && operations.push( + this.createModel(Operation, this._json[operationAction as 'publish' | 'subscribe'], { id: operationAction, action: operationAction, pointer: `${this._meta.pointer}/${operationAction}` }), ); }); return new Operations(operations); @@ -75,4 +76,12 @@ export class Channel extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, E }) ); } + + bindings(): BindingsInterface { + return bindings(this); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } } diff --git a/src/models/v2/components.ts b/src/models/v2/components.ts index 89bf62364..e14b50f81 100644 --- a/src/models/v2/components.ts +++ b/src/models/v2/components.ts @@ -1,4 +1,6 @@ import { BaseModel } from "../base"; +import { Bindings } from "./bindings"; +import { Binding } from "./binding"; import { Channel } from "./channel"; import { ChannelParameter } from "./channel-parameter"; import { CorrelationId } from "./correlation-id"; @@ -10,15 +12,14 @@ import { SecurityScheme } from "./security-scheme"; import { Server } from "./server"; import { ServerVariable } from "./server-variable"; -import { Mixin } from '../utils'; -import { Bindings, Binding } from "./mixins/bindings"; -import { ExtensionsMixin } from './mixins/extensions'; +import { extensions } from './mixins'; import type { BindingsInterface } from "../bindings"; import type { ComponentsInterface } from "../components"; import type { ChannelInterface } from "../channel"; import type { ChannelParameterInterface } from "../channel-parameter"; import type { CorrelationIdInterface } from "../correlation-id"; +import type { ExtensionsInterface } from "../extensions"; import type { MessageInterface } from "../message"; import type { MessageTraitInterface } from "../message-trait"; import type { OperationTraitInterface } from "../operation-trait"; @@ -28,7 +29,9 @@ import type { ServerInterface } from "../server"; import type { ServerVariableInterface } from "../server-variable"; import type { Constructor } from "../utils"; -export class Components extends Mixin(BaseModel, ExtensionsMixin) implements ComponentsInterface { +import type { v2 } from "../../spec-types"; + +export class Components extends BaseModel implements ComponentsInterface { servers(): Record { return this.createMap('servers', Server); } @@ -85,14 +88,18 @@ export class Components extends Mixin(BaseModel, ExtensionsMixin) implements Com return this.createBindings('messageBindings'); } - protected createMap(itemsName: string, model: Constructor): Record { + extensions(): ExtensionsInterface { + return extensions(this); + } + + protected createMap(itemsName: keyof v2.ComponentsObject, model: Constructor): Record { return Object.entries(this._json[itemsName] || {}).reduce((items, [itemName, item]) => { items[itemName] = this.createModel(model, item, { id: itemName, pointer: `/components/${itemsName}/${itemName}` }) return items; }, {} as Record); } - protected createBindings(itemsName: string): Record { + protected createBindings(itemsName: 'serverBindings' | 'channelBindings' | 'operationBindings' | 'messageBindings'): Record { return Object.entries(this._json[itemsName] || {}).reduce((bindings, [name, item]) => { bindings[name] = new Bindings( Object.entries(item as any || {}).map(([protocol, binding]) => diff --git a/src/models/v2/contact.ts b/src/models/v2/contact.ts index c7ecb5122..dee4427ae 100644 --- a/src/models/v2/contact.ts +++ b/src/models/v2/contact.ts @@ -1,11 +1,13 @@ import { BaseModel } from "../base"; -import { Mixin } from '../utils'; -import { ExtensionsMixin } from './mixins/extensions'; +import { extensions } from './mixins'; -import type { ContactInterface } from "../../models/contact"; +import type { ContactInterface } from "../contact"; +import type { ExtensionsInterface } from "../extensions"; -export class Contact extends Mixin(BaseModel, ExtensionsMixin) implements ContactInterface { +import type { v2 } from "../../spec-types"; + +export class Contact extends BaseModel implements ContactInterface { hasName(): boolean { return !!this._json.name; } @@ -29,4 +31,8 @@ export class Contact extends Mixin(BaseModel, ExtensionsMixin) implements Contac email(): string | undefined { return this._json.email; } + + extensions(): ExtensionsInterface { + return extensions(this); + } } \ No newline at end of file diff --git a/src/models/v2/correlation-id.ts b/src/models/v2/correlation-id.ts index 127504429..291bbd983 100644 --- a/src/models/v2/correlation-id.ts +++ b/src/models/v2/correlation-id.ts @@ -1,12 +1,21 @@ import { BaseModel } from "../base"; -import { Mixin } from '../utils'; -import { DescriptionMixin } from './mixins/description'; -import { ExtensionsMixin } from './mixins/extensions'; +import { hasDescription, description, extensions } from './mixins'; import type { CorrelationIdInterface } from "../correlation-id"; +import type { ExtensionsInterface } from "../extensions"; + +import type { v2 } from "../../spec-types"; + +export class CorrelationId extends BaseModel implements CorrelationIdInterface { + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } -export class CorrelationId extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements CorrelationIdInterface { hasLocation(): boolean { return !!this._json.location; } @@ -14,4 +23,8 @@ export class CorrelationId extends Mixin(BaseModel, DescriptionMixin, Extensions location(): string | undefined { return this._json.location; } + + extensions(): ExtensionsInterface { + return extensions(this); + } } diff --git a/src/models/v2/extension.ts b/src/models/v2/extension.ts new file mode 100644 index 000000000..bb4588349 --- /dev/null +++ b/src/models/v2/extension.ts @@ -0,0 +1,19 @@ +import { BaseModel } from "../base"; + +import type { ExtensionInterface } from "../extension"; + +import type { v2 } from "../../spec-types"; + +export class Extension extends BaseModel implements ExtensionInterface { + name(): string { + return this._meta.name; + } + + version(): string { + return 'to implement'; + } + + value(): any { + return this._json; + } +} diff --git a/src/models/v2/extensions.ts b/src/models/v2/extensions.ts new file mode 100644 index 000000000..fb14599fe --- /dev/null +++ b/src/models/v2/extensions.ts @@ -0,0 +1,16 @@ +import { Collection } from '../collection'; + +import type { ExtensionsInterface } from "../extensions"; +import type { ExtensionInterface } from "../extension"; + +export class Extensions extends Collection implements ExtensionsInterface { + override get(name: string): ExtensionInterface | undefined { + name = name.startsWith('x-') ? name : `x-${name}`; + return this.collections.find(ext => ext.name() === name); + }; + + override has(name: string): boolean { + name = name.startsWith('x-') ? name : `x-${name}`; + return this.collections.some(ext => ext.name() === name); + }; +} diff --git a/src/models/v2/external-docs.ts b/src/models/v2/external-docs.ts new file mode 100644 index 000000000..f433f49f3 --- /dev/null +++ b/src/models/v2/external-docs.ts @@ -0,0 +1,26 @@ +import { BaseModel } from "../base"; + +import { hasDescription, description, extensions } from "./mixins"; + +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { ExtensionsInterface } from "../extensions"; + +import type { v2 } from "../../spec-types"; + +export class ExternalDocumentation extends BaseModel implements ExternalDocumentationInterface { + url(): string { + return this._json.url; + } + + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } +} \ No newline at end of file diff --git a/src/models/v2/index.ts b/src/models/v2/index.ts index d56f9e6e6..69b94f651 100644 --- a/src/models/v2/index.ts +++ b/src/models/v2/index.ts @@ -1,16 +1,37 @@ export { AsyncAPIDocument as AsyncAPIDocumentV2 } from './asyncapi'; +export { Binding as BindingV2 } from './binding'; +export { Bindings as BindingsV2 } from './bindings'; +export { ChannelParameter as ChannelParameterV2 } from './channel-parameter'; +export { ChannelParameters as ChannelParametersV2 } from './channel-parameters'; +export { Channel as ChannelV2 } from './channel'; +export { Channels as ChannelsV2 } from './channels'; +export { Components as ComponentsV2 } from './components'; export { Contact as ContactV2 } from './contact'; +export { CorrelationId as CorrelationIdV2 } from './correlation-id'; +export { Extension as ExtensionV2 } from './extension'; +export { Extensions as ExtensionsV2 } from './extensions'; +export { ExternalDocumentation as ExternalDocumentationV2 } from './external-docs'; export { Info as InfoV2 } from './info'; export { License as LicenseV2 } from './license'; -export { Bindings as BindingsV2, Binding as BindingV2 } from './mixins/bindings'; -export { Extensions as ExtensionsV2, Extension as ExtensionV2 } from './mixins/extensions'; -export { ExternalDocumentation as ExternalDocumentationV2 } from './mixins/external-docs'; -export { Tags as TagsV2, Tag as TagV2 } from './mixins/tags'; -export { Server as ServerV2 } from './server'; -export { Servers as ServersV2 } from './servers'; +export { MessageExample as MessageExampleV2 } from './message-example'; +export { MessageExamples as MessageExamplesV2 } from './message-examples'; +export { MessageTrait as MessageTraitV2 } from './message-trait'; +export { MessageTraits as MessageTraitsV2 } from './message-traits'; +export { Message as MessageV2 } from './message'; +export { Messages as MessagesV2 } from './messages'; +export { OAuthFlow as OAuthFlowV2 } from './oauth-flow'; +export { OAuthFlows as OAuthFlowsV2 } from './oauth-flows'; +export { OperationTrait as OperationTraitV2 } from './operation-trait'; +export { OperationTraits as OperationTraitsV2 } from './operation-traits'; +export { Operation as OperationV2 } from './operation'; +export { Operations as OperationsV2 } from './operations'; +export { Schema as SchemaV2 } from './schema'; +export { Schemas as SchemasV2 } from './schemas'; export { SecurityScheme as SecuritySchemeV2 } from './security-scheme'; export { SecuritySchemes as SecuritySchemesV2 } from './security-schemes'; export { ServerVariable as ServerVariableV2 } from './server-variable'; export { ServerVariables as ServerVariablesV2 } from './server-variables'; -export { OAuthFlow as OAuthFlowV2 } from './oauth-flow'; -export { OAuthFlows as OAuthFlowsV2 } from './oauth-flows'; +export { Server as ServerV2 } from './server'; +export { Servers as ServersV2 } from './servers'; +export { Tag as TagV2 } from './tag'; +export { Tags as TagsV2 } from './tags'; \ No newline at end of file diff --git a/src/models/v2/info.ts b/src/models/v2/info.ts index f88c10ffd..4415d5e7c 100644 --- a/src/models/v2/info.ts +++ b/src/models/v2/info.ts @@ -1,20 +1,22 @@ import { BaseModel } from "../base"; import { Contact } from "./contact"; +import { ExternalDocumentation } from "./external-docs"; import { License } from "./license"; +import { Tags } from "./tags"; +import { Tag } from "./tag"; -import { Mixin } from '../utils'; -import { DescriptionMixin } from './mixins/description'; -import { ExtensionsMixin } from './mixins/extensions'; -import { ExternalDocumentation } from './mixins/external-docs'; -import { Tags, Tag } from './mixins/tags'; +import { hasDescription, description, extensions } from './mixins'; import type { ContactInterface } from "../contact"; import type { InfoInterface } from "../info"; +import type { ExtensionsInterface } from "../extensions"; import type { ExternalDocumentationInterface } from "../external-docs"; import type { LicenseInterface } from "../license"; import type { TagsInterface } from "../tags"; -export class Info extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements InfoInterface { +import type { v2 } from "../../spec-types"; + +export class Info extends BaseModel implements InfoInterface { title(): string { return this._json.title; } @@ -31,6 +33,14 @@ export class Info extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) im return this._meta.asyncapi.parsed.id; } + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + hasTermsOfService(): boolean { return !!this._json.termsOfService; } @@ -72,4 +82,8 @@ export class Info extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) im const tags = this._meta.asyncapi.parsed.tags || []; return new Tags(tags.map((tag: any, idx: number) => this.createModel(Tag, tag, { pointer: `/tags/${idx}` }))); } + + extensions(): ExtensionsInterface { + return extensions(this); + } } diff --git a/src/models/v2/license.ts b/src/models/v2/license.ts index 69cb09e35..fe1b6a946 100644 --- a/src/models/v2/license.ts +++ b/src/models/v2/license.ts @@ -1,11 +1,13 @@ import { BaseModel } from "../base"; -import { Mixin } from '../utils'; -import { ExtensionsMixin } from './mixins/extensions'; +import { extensions } from './mixins'; -import type { LicenseInterface } from "../../models/license"; +import type { ExtensionsInterface } from "../extensions"; +import type { LicenseInterface } from "../license"; -export class License extends Mixin(BaseModel, ExtensionsMixin) implements LicenseInterface { +import type { v2 } from "../../spec-types"; + +export class License extends BaseModel implements LicenseInterface { name(): string { return this._json.name; } @@ -17,4 +19,8 @@ export class License extends Mixin(BaseModel, ExtensionsMixin) implements Licens url(): string | undefined { return this._json.url; } + + extensions(): ExtensionsInterface { + return extensions(this); + } } diff --git a/src/models/v2/message-example.ts b/src/models/v2/message-example.ts index d9fedb931..a24f69c8a 100644 --- a/src/models/v2/message-example.ts +++ b/src/models/v2/message-example.ts @@ -1,16 +1,18 @@ import { BaseModel } from "../base"; -import { Mixin } from '../utils'; -import { ExtensionsMixin } from './mixins/extensions'; +import { extensions } from './mixins'; +import type { ExtensionsInterface } from "../extensions"; import type { MessageExampleInterface } from "../message-example"; -export class MessageExample extends Mixin(BaseModel, ExtensionsMixin) implements MessageExampleInterface { +import type { v2 } from "../../spec-types"; + +export class MessageExample extends BaseModel implements MessageExampleInterface { hasName(): boolean { return !!this._json.name; } - name(): string { + name(): string | undefined { return this._json.name; } @@ -18,7 +20,7 @@ export class MessageExample extends Mixin(BaseModel, ExtensionsMixin) implements return !!this._json.summary; } - summary(): string { + summary(): string | undefined { return this._json.summary; } @@ -37,4 +39,8 @@ export class MessageExample extends Mixin(BaseModel, ExtensionsMixin) implements payload(): Record | undefined { return this._json.payload; } + + extensions(): ExtensionsInterface { + return extensions(this); + } } diff --git a/src/models/v2/message-trait.ts b/src/models/v2/message-trait.ts index d97eca2bc..2216f8802 100644 --- a/src/models/v2/message-trait.ts +++ b/src/models/v2/message-trait.ts @@ -5,28 +5,20 @@ import { MessageExample } from './message-example'; import { Schema } from './schema'; import { getDefaultSchemaFormat } from '../../schema-parser'; +import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from './mixins'; -import { Mixin } from '../utils'; -import { BindingsMixin } from './mixins/bindings'; -import { DescriptionMixin } from './mixins/description'; -import { ExtensionsMixin } from './mixins/extensions'; -import { ExternalDocumentationMixin } from './mixins/external-docs'; -import { TagsMixin } from './mixins/tags'; - -import type { ModelMetadata } from "../base"; +import type { BindingsInterface } from "../bindings"; import type { CorrelationIdInterface } from "../correlation-id"; +import type { ExtensionsInterface } from "../extensions"; +import type { ExternalDocumentationInterface } from "../external-docs"; import type { MessageExamplesInterface } from "../message-examples"; import type { MessageTraitInterface } from "../message-trait"; import type { SchemaInterface } from "../schema"; +import type { TagsInterface } from "../tags"; -export class MessageTrait extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, ExtensionsMixin, ExternalDocumentationMixin, TagsMixin) implements MessageTraitInterface { - constructor( - _json: Record, - protected readonly _meta: ModelMetadata & { id: string } = {} as any - ) { - super(_json, _meta); - } +import type { v2 } from "../../spec-types"; +export class MessageTrait extends BaseModel implements MessageTraitInterface { id(): string { return this.messageId() || this._meta.id; } @@ -93,6 +85,22 @@ export class MessageTrait extends Mixin(BaseModel, BindingsMixin, DescriptionMix return this._json.summary; } + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + + hasExternalDocs(): boolean { + return hasExternalDocs(this); + } + + externalDocs(): ExternalDocumentationInterface | undefined { + return externalDocs(this); + } + examples(): MessageExamplesInterface { return new MessageExamples( (this._json.examples || []).map((example: any, index: number) => { @@ -100,4 +108,16 @@ export class MessageTrait extends Mixin(BaseModel, BindingsMixin, DescriptionMix }) ); } + + tags(): TagsInterface { + return tags(this); + } + + bindings(): BindingsInterface { + return bindings(this); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } } diff --git a/src/models/v2/message.ts b/src/models/v2/message.ts index d1142e8f5..25e2617d7 100644 --- a/src/models/v2/message.ts +++ b/src/models/v2/message.ts @@ -18,7 +18,9 @@ import type { ServersInterface } from "../servers"; import type { ServerInterface } from "../server"; import type { SchemaInterface } from "../schema"; -export class Message extends MessageTrait implements MessageInterface { +import type { v2 } from "../../spec-types"; + +export class Message extends MessageTrait implements MessageInterface { hasPayload(): boolean { return !!this._json.payload; } diff --git a/src/models/v2/mixins.ts b/src/models/v2/mixins.ts new file mode 100644 index 000000000..10d083b4b --- /dev/null +++ b/src/models/v2/mixins.ts @@ -0,0 +1,66 @@ +import { Bindings } from "./bindings"; +import { Binding } from "./binding"; +import { Extensions } from "./extensions"; +import { Extension } from "./extension"; +import { ExternalDocumentation } from "./external-docs"; +import { Tags } from "./tags"; +import { Tag } from "./tag"; + +import { createModel } from "../utils"; +import { EXTENSION_REGEX } from '../../constants'; + +import type { BaseModel } from "../base"; +import type { BindingsInterface } from "../bindings"; +import type { ExtensionsInterface } from "../extensions"; +import type { ExtensionInterface } from "../extension"; +import type { ExternalDocumentationInterface } from "../external-docs"; +import type { TagsInterface } from "../tags"; + +import type { v2 } from "../../spec-types"; + +export function bindings(model: BaseModel<{ bindings?: Record }>): BindingsInterface { + return new Bindings( + Object.entries(model.json('bindings') || {}).map(([protocol, binding]) => + createModel(Binding, binding, { id: protocol, pointer: model.jsonPath(`bindings/${protocol}`) }, model) + ) + ); +} + +export function hasDescription(model: BaseModel<{ description?: string }>) { + return Boolean(model.json('description')); +}; + +export function description(model: BaseModel<{ description?: string }>): string | undefined { + return model.json('description'); +} + +export function extensions(model: BaseModel): ExtensionsInterface { + const extensions: ExtensionInterface[] = []; + Object.entries(model.json()).forEach(([key, value]) => { + if (EXTENSION_REGEX.test(key)) { + extensions.push( + createModel(Extension, value, { id: key, pointer: model.jsonPath(key) }, model) + ); + } + }); + return new Extensions(extensions); +}; + +export function hasExternalDocs(model: BaseModel<{ externalDocs?: v2.ExternalDocumentationObject }>): boolean { + return Object.keys(model.json('externalDocs') || {}).length > 0; +}; + +export function externalDocs(model: BaseModel): ExternalDocumentationInterface | undefined { + if (hasExternalDocs(model)) { + return new ExternalDocumentation(model.json('externalDocs')); + } + return; +}; + +export function tags(model: BaseModel<{ tags?: v2.TagsObject }>): TagsInterface { + return new Tags( + (model.json('tags') || []).map((tag: any, idx: number) => + createModel(Tag, tag, { pointer: model.jsonPath(`tags/${idx}`) }, model) + ) + ); +} diff --git a/src/models/v2/mixins/bindings.ts b/src/models/v2/mixins/bindings.ts deleted file mode 100644 index d15d8ddb1..000000000 --- a/src/models/v2/mixins/bindings.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { BaseModel } from "../../base"; -import { Collection } from '../../collection'; - -import { Mixin } from '../../utils'; -import { ExtensionsMixin } from './extensions'; - -import type { ModelMetadata } from "../../base"; -import type { BindingsMixinInterface } from "../../mixins"; -import type { BindingsInterface } from "../../bindings"; -import type { BindingInterface } from "../../binding"; - -export class Binding extends Mixin(BaseModel, ExtensionsMixin) implements BindingInterface { - constructor( - _json: Record, - protected readonly _meta: ModelMetadata & { protocol: string } = {} as any, - ) { - super(_json, _meta); - } - - protocol(): string { - return this._meta.protocol; - } - - version(): string { - return this._json.bindingVersion; - } - - value(): any { - const value = { ...this._json }; - delete value.bindingVersion; - return value; - } -} - -export class Bindings extends Collection implements BindingsInterface { - override get(name: string): BindingInterface | undefined { - return this.collections.find(binding => binding.protocol() === name); - }; - - override has(name: string): boolean { - return this.collections.some(binding => binding.protocol() === name); - }; -} - -export abstract class BindingsMixin extends BaseModel implements BindingsMixinInterface { - bindings(): BindingsInterface { - return new Bindings( - Object.entries(this._json.bindings || {}).map(([protocol, binding]) => - this.createModel(Binding, binding, { id: protocol, pointer: `${this._meta.pointer}/bindings/${protocol}` }) - ) - ); - } -} diff --git a/src/models/v2/mixins/description.ts b/src/models/v2/mixins/description.ts deleted file mode 100644 index c60f5c8e7..000000000 --- a/src/models/v2/mixins/description.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { BaseModel } from "../../base"; - -import type { DescriptionMixinInterface } from "../../mixins"; - -export abstract class DescriptionMixin extends BaseModel implements DescriptionMixinInterface { - hasDescription() { - return Boolean(this._json.description); - }; - - description(): string | undefined { - return this._json.description; - } -} \ No newline at end of file diff --git a/src/models/v2/mixins/extensions.ts b/src/models/v2/mixins/extensions.ts deleted file mode 100644 index cfee5c5af..000000000 --- a/src/models/v2/mixins/extensions.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { Collection } from '../../collection'; -import { BaseModel } from "../../base"; - -import type { ModelMetadata } from "../../base"; -import type { ExtensionsMixinInterface } from "../../mixins"; -import type { ExtensionsInterface } from "../../extensions"; -import type { ExtensionInterface } from "../../extension"; - -import { EXTENSION_REGEX } from '../../../constants'; - -export class Extension extends BaseModel implements ExtensionInterface { - constructor( - _json: Record, - protected readonly _meta: ModelMetadata & { name: string } = {} as any, - ) { - super(_json, _meta); - } - - name(): string { - return this._meta.name; - } - - version(): string { - return 'to implement'; - } - - value(): any { - return this._json; - } -} - -export class Extensions extends Collection implements ExtensionsInterface { - override get(name: string): ExtensionInterface | undefined { - name = name.startsWith('x-') ? name : `x-${name}`; - return this.collections.find(ext => ext.name() === name); - }; - - override has(name: string): boolean { - name = name.startsWith('x-') ? name : `x-${name}`; - return this.collections.some(ext => ext.name() === name); - }; -} - -export abstract class ExtensionsMixin extends BaseModel implements ExtensionsMixinInterface { - extensions(): ExtensionsInterface { - const extensions: Extension[] = []; - Object.entries(this._json).forEach(([key, value]) => { - if (EXTENSION_REGEX.test(key)) { - extensions.push( - this.createModel(Extension, value, { id: key, pointer: `${this._meta.pointer}/${key}` }) - ); - } - }); - return new Extensions(extensions); - }; -} \ No newline at end of file diff --git a/src/models/v2/mixins/external-docs.ts b/src/models/v2/mixins/external-docs.ts deleted file mode 100644 index 92906fb0e..000000000 --- a/src/models/v2/mixins/external-docs.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { BaseModel } from "../../base"; - -import { Mixin } from '../../utils'; -import { DescriptionMixin } from './description'; -import { ExtensionsMixin } from './extensions'; - -import type { ExternalDocumentationInterface } from '../../external-docs'; -import type { ExternalDocumentationMixinInterface } from "../../mixins"; - -export class ExternalDocumentation extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements ExternalDocumentationInterface { - url(): string { - return this._json.url; - } -} - -export abstract class ExternalDocumentationMixin extends BaseModel implements ExternalDocumentationMixinInterface { - hasExternalDocs(): boolean { - return Object.keys(this._json.externalDocs || {}).length > 0; - }; - - externalDocs(): ExternalDocumentationInterface | undefined { - if (this.hasExternalDocs()) { - return new ExternalDocumentation(this._json.externalDocs); - } - return; - }; -} \ No newline at end of file diff --git a/src/models/v2/mixins/tags.ts b/src/models/v2/mixins/tags.ts deleted file mode 100644 index eaf49931b..000000000 --- a/src/models/v2/mixins/tags.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { BaseModel } from "../../base"; -import { Collection } from "../../collection"; - -import { Mixin } from '../../utils'; -import { DescriptionMixin } from './description'; -import { ExtensionsMixin } from './extensions'; -import { ExternalDocumentationMixin } from './external-docs'; - -import type { TagsMixinInterface } from "../../mixins"; -import type { TagsInterface } from "../../tags"; -import type { TagInterface } from "../../tag"; - -export class Tag extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin, ExternalDocumentationMixin) implements TagInterface { - name(): string { - return this._json.name; - } -} - -export class Tags extends Collection implements TagsInterface { - override get(name: string): TagInterface | undefined { - return this.collections.find(tag => tag.name() === name); - }; - - override has(name: string): boolean { - return this.collections.some(tag => tag.name() === name); - }; -} - -export abstract class TagsMixin extends BaseModel implements TagsMixinInterface { - tags(): TagsInterface { - return new Tags( - (this._json.tags || []).map((tag: any, idx: number) => - this.createModel(Tag, tag, { pointer: `${this._meta.pointer}/tags/${idx}` }) - ) - ); - } -} \ No newline at end of file diff --git a/src/models/v2/oauth-flow.ts b/src/models/v2/oauth-flow.ts index daeade1cb..e994eb4f1 100644 --- a/src/models/v2/oauth-flow.ts +++ b/src/models/v2/oauth-flow.ts @@ -1,13 +1,15 @@ import { BaseModel } from '../base'; -import { Mixin } from '../utils'; -import { ExtensionsMixin } from './mixins/extensions'; +import { extensions } from './mixins'; +import type { ExtensionsInterface } from '../extensions'; import type { OAuthFlowInterface } from '../oauth-flow'; -export class OAuthFlow extends Mixin(BaseModel, ExtensionsMixin) implements OAuthFlowInterface { +import type { v2 } from "../../spec-types"; + +export class OAuthFlow extends BaseModel implements OAuthFlowInterface { authorizationUrl(): string | undefined { - return this._json.authorizationUrl; + return this.json().authorizationUrl; } hasRefreshUrl(): boolean { @@ -23,6 +25,10 @@ export class OAuthFlow extends Mixin(BaseModel, ExtensionsMixin) implements OAut } tokenUrl(): string | undefined { - return this._json.tokenUrl; + return this.json>().tokenUrl; + } + + extensions(): ExtensionsInterface { + return extensions(this); } } \ No newline at end of file diff --git a/src/models/v2/oauth-flows.ts b/src/models/v2/oauth-flows.ts index d83f291ed..f8f579d33 100644 --- a/src/models/v2/oauth-flows.ts +++ b/src/models/v2/oauth-flows.ts @@ -1,18 +1,20 @@ import { BaseModel } from '../base'; - import { OAuthFlow } from './oauth-flow'; -import { Mixin } from '../utils'; -import { ExtensionsMixin } from './mixins/extensions'; +import { extensions } from './mixins'; + +import type { ExtensionsInterface } from '../extensions'; import type { OAuthFlowsInterface } from '../oauth-flows'; import type { OAuthFlowInterface } from '../oauth-flow'; -export class OAuthFlows extends Mixin(BaseModel, ExtensionsMixin) implements OAuthFlowsInterface { +import type { v2 } from "../../spec-types"; + +export class OAuthFlows extends BaseModel implements OAuthFlowsInterface { hasAuthorizationCode(): boolean { return !!this._json.authorizationCode; } - authorizationCode(): OAuthFlowInterface | undefined { + authorizationCode(): OAuthFlowInterface | undefined { if (!this._json.authorizationCode) return undefined; return new OAuthFlow(this._json.authorizationCode); } @@ -21,7 +23,7 @@ export class OAuthFlows extends Mixin(BaseModel, ExtensionsMixin) implements OAu return !!this._json.clientCredentials; } - clientCredentials(): OAuthFlowInterface | undefined { + clientCredentials(): OAuthFlowInterface | undefined { if (!this._json.clientCredentials) return undefined; return new OAuthFlow(this._json.clientCredentials); } @@ -30,7 +32,7 @@ export class OAuthFlows extends Mixin(BaseModel, ExtensionsMixin) implements OAu return !!this._json.implicit; } - implicit(): OAuthFlowInterface | undefined { + implicit(): OAuthFlowInterface | undefined { if (!this._json.implicit) return undefined; return new OAuthFlow(this._json.implicit); } @@ -39,8 +41,12 @@ export class OAuthFlows extends Mixin(BaseModel, ExtensionsMixin) implements OAu return !!this._json.password; } - password(): OAuthFlowInterface | undefined { + password(): OAuthFlowInterface | undefined { if (!this._json.password) return undefined; return new OAuthFlow(this._json.password); } + + extensions(): ExtensionsInterface { + return extensions(this); + } } \ No newline at end of file diff --git a/src/models/v2/operation-trait.ts b/src/models/v2/operation-trait.ts index 9f9960558..6a24b2e5d 100644 --- a/src/models/v2/operation-trait.ts +++ b/src/models/v2/operation-trait.ts @@ -1,26 +1,19 @@ import { BaseModel } from "../base"; import { SecurityScheme } from './security-scheme'; -import { Mixin } from '../utils'; -import { BindingsMixin } from './mixins/bindings'; -import { DescriptionMixin } from './mixins/description'; -import { ExtensionsMixin } from './mixins/extensions'; -import { ExternalDocumentationMixin } from './mixins/external-docs'; -import { TagsMixin } from './mixins/tags'; - -import type { ModelMetadata } from "../base"; +import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from './mixins'; + +import type { BindingsInterface } from "../bindings"; +import type { ExtensionsInterface } from "../extensions"; +import type { ExternalDocumentationInterface } from "../external-docs"; import type { OperationAction } from "../operation"; import type { OperationTraitInterface } from "../operation-trait"; import type { SecuritySchemeInterface } from "../security-scheme"; +import type { TagsInterface } from "../tags"; -export class OperationTrait extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, ExtensionsMixin, ExternalDocumentationMixin, TagsMixin) implements OperationTraitInterface { - constructor( - _json: Record, - protected readonly _meta: ModelMetadata & { id: string, action: OperationAction } = {} as any, - ) { - super(_json, _meta); - } +import type { v2 } from "../../spec-types"; +export class OperationTrait extends BaseModel implements OperationTraitInterface { id(): string { return this.operationId() || this._meta.id; } @@ -45,8 +38,24 @@ export class OperationTrait extends Mixin(BaseModel, BindingsMixin, DescriptionM return this._json.summary; } + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + + hasExternalDocs(): boolean { + return hasExternalDocs(this); + } + + externalDocs(): ExternalDocumentationInterface | undefined { + return externalDocs(this); + } + security(): Array> { - const securitySchemes = this._meta?.asyncapi?.parsed.components.securitySchemes || {}; + const securitySchemes = this._meta.asyncapi?.parsed?.components?.securitySchemes || {}; return (this._json.security || []).map((requirement: any) => { const requirements: Record = {}; Object.entries(requirement).forEach(([security, scopes]) => { @@ -58,4 +67,16 @@ export class OperationTrait extends Mixin(BaseModel, BindingsMixin, DescriptionM return requirements; }) } + + tags(): TagsInterface { + return tags(this); + } + + bindings(): BindingsInterface { + return bindings(this); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } } diff --git a/src/models/v2/operation.ts b/src/models/v2/operation.ts index 1aff51205..f0a9c43d5 100644 --- a/src/models/v2/operation.ts +++ b/src/models/v2/operation.ts @@ -16,7 +16,9 @@ import type { OperationTraitsInterface } from "../operation-traits"; import type { ServersInterface } from "../servers"; import type { ServerInterface } from "../server"; -export class Operation extends OperationTrait implements OperationInterface { +import type { v2 } from "../../spec-types"; + +export class Operation extends OperationTrait implements OperationInterface { servers(): ServersInterface { const servers: ServerInterface[] = []; const serversData: any[] = []; @@ -45,12 +47,14 @@ export class Operation extends OperationTrait implements OperationInterface { messages(): MessagesInterface { let isOneOf = false; - let messages = this._json.message || []; - if (Array.isArray(messages.oneOf)) { - messages = messages.oneOf; - isOneOf = true; - } else if (!Array.isArray(messages)) { - messages = [messages]; + let messages: Array = []; + if (this._json.message) { + if (Array.isArray((this._json.message as { oneOf?: Array }).oneOf)) { + messages = (this._json.message as unknown as { oneOf: Array }).oneOf; + isOneOf = true; + } else { + messages = [this._json.message as unknown as v2.MessageObject]; + } } return new Messages( diff --git a/src/models/v2/schema.ts b/src/models/v2/schema.ts index 0029a3658..258ae0ebc 100644 --- a/src/models/v2/schema.ts +++ b/src/models/v2/schema.ts @@ -1,20 +1,14 @@ import { BaseModel } from "../base"; -import { Mixin } from '../utils'; -import { ExtensionsMixin } from './mixins/extensions'; -import { ExternalDocumentationMixin } from './mixins/external-docs'; +import { extensions, hasExternalDocs, externalDocs } from './mixins'; -import type { ModelMetadata } from "../base"; +import type { ExtensionsInterface } from "../extensions"; +import type { ExternalDocumentationInterface } from "../external-docs"; import type { SchemaInterface } from "../schema"; -export class Schema extends Mixin(BaseModel, ExtensionsMixin, ExternalDocumentationMixin) implements SchemaInterface { - constructor( - _json: Record, - protected readonly _meta: ModelMetadata & { id: string, parent: Schema | null } = {} as any - ) { - super(_json, _meta); - } +import type { v2 } from "../../spec-types"; +export class Schema extends BaseModel implements SchemaInterface { uid(): string { return this._meta.id; } @@ -257,4 +251,16 @@ export class Schema extends Mixin(BaseModel, ExtensionsMixin, ExternalDocumentat writeOnly(): boolean | undefined { return this._json.writeOnly || false; } + + hasExternalDocs(): boolean { + return hasExternalDocs(this); + } + + externalDocs(): ExternalDocumentationInterface | undefined { + return externalDocs(this); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } } diff --git a/src/models/v2/security-scheme.ts b/src/models/v2/security-scheme.ts index cf00444f9..2cd6c46c1 100644 --- a/src/models/v2/security-scheme.ts +++ b/src/models/v2/security-scheme.ts @@ -1,26 +1,27 @@ import { BaseModel } from '../base'; - import { OAuthFlows } from './oauth-flows'; -import { Mixin } from '../utils'; -import { DescriptionMixin } from './mixins/description'; -import { ExtensionsMixin } from './mixins/extensions'; -import type { ModelMetadata } from '../base'; +import { hasDescription, description, extensions } from './mixins'; + +import type { ExtensionsInterface } from '../extensions'; import type { SecuritySchemaType, SecuritySchemeInterface } from '../security-scheme'; import type { OAuthFlowsInterface } from '../oauth-flows'; -export class SecurityScheme extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements SecuritySchemeInterface { - constructor( - _json: Record, - protected readonly _meta: ModelMetadata & { id: string } = {} as any - ) { - super(_json, _meta); - } +import type { v2 } from "../../spec-types"; +export class SecurityScheme extends BaseModel implements SecuritySchemeInterface { id(): string { return this._meta.id; } + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + hasBearerFormat(): boolean { return !!this._json.bearerFormat; } @@ -29,7 +30,7 @@ export class SecurityScheme extends Mixin(BaseModel, DescriptionMixin, Extension return this._json.bearerFormat; } - openIdConnectUrl(): string { + openIdConnectUrl(): string | undefined { return this._json.openIdConnectUrl; } @@ -42,10 +43,6 @@ export class SecurityScheme extends Mixin(BaseModel, DescriptionMixin, Extension return new OAuthFlows(this._json.flows); } - scopes(): string[] { - return this._json.scopes; - } - type(): SecuritySchemaType { return this._json.type; } @@ -53,4 +50,8 @@ export class SecurityScheme extends Mixin(BaseModel, DescriptionMixin, Extension in(): string | undefined { return this._json.in; } + + extensions(): ExtensionsInterface { + return extensions(this); + } } diff --git a/src/models/v2/server-variable.ts b/src/models/v2/server-variable.ts index 99134ce91..e4ecdd356 100644 --- a/src/models/v2/server-variable.ts +++ b/src/models/v2/server-variable.ts @@ -1,24 +1,25 @@ import { BaseModel } from '../base'; -import { Mixin } from '../utils'; -import { DescriptionMixin } from './mixins/description'; -import { ExtensionsMixin } from './mixins/extensions'; +import { hasDescription, description, extensions } from './mixins'; -import type { ModelMetadata } from '../base'; +import type { ExtensionsInterface } from '../extensions'; import type { ServerVariableInterface } from '../server-variable'; -export class ServerVariable extends Mixin(BaseModel, DescriptionMixin, ExtensionsMixin) implements ServerVariableInterface { - constructor( - _json: Record, - protected readonly _meta: ModelMetadata & { id: string } = {} as any - ) { - super(_json, _meta); - } - +import type { v2 } from "../../spec-types"; + +export class ServerVariable extends BaseModel implements ServerVariableInterface { id(): string { return this._meta.id; } + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + hasDefaultValue(): boolean { return !!this._json.default } @@ -32,10 +33,14 @@ export class ServerVariable extends Mixin(BaseModel, DescriptionMixin, Extension } allowedValues(): Array { - return this._json.enum; + return this._json.enum || []; } examples(): Array { - return this._json.examples + return this._json.examples || []; + } + + extensions(): ExtensionsInterface { + return extensions(this); } } diff --git a/src/models/v2/server.ts b/src/models/v2/server.ts index a6ad0fad8..821f7c831 100644 --- a/src/models/v2/server.ts +++ b/src/models/v2/server.ts @@ -7,14 +7,9 @@ import { SecurityScheme } from './security-scheme'; import { ServerVariables } from './server-variables'; import { ServerVariable } from './server-variable'; -import { Mixin } from '../utils'; -import { BindingsMixin } from './mixins/bindings'; -import { DescriptionMixin } from './mixins/description'; -import { ExtensionsMixin } from './mixins/extensions'; - +import { bindings, hasDescription, description, extensions } from './mixins'; import { tilde } from "../../utils"; -import type { ModelMetadata } from "../base"; import type { ChannelsInterface } from '../channels'; import type { ChannelInterface } from '../channel'; import type { OperationsInterface } from '../operations'; @@ -24,15 +19,12 @@ import type { MessageInterface } from '../message'; import type { ServerInterface } from '../server'; import type { ServerVariablesInterface } from '../server-variables'; import type { SecuritySchemeInterface } from '../security-scheme'; +import type { ExtensionsInterface } from '../extensions'; +import type { BindingsInterface } from '../bindings'; -export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, ExtensionsMixin) implements ServerInterface { - constructor( - _json: Record, - protected readonly _meta: ModelMetadata & { id: string } = {} as any, - ) { - super(_json, _meta); - } +import type { v2 } from "../../spec-types"; +export class Server extends BaseModel implements ServerInterface { id(): string { return this._meta.id; } @@ -49,10 +41,18 @@ export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, Ex return !!this._json.protocolVersion; } - protocolVersion(): string { + protocolVersion(): string | undefined { return this._json.protocolVersion; } + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + channels(): ChannelsInterface { const channels: ChannelInterface[] = []; Object.entries(this._meta.asyncapi?.parsed.channels || {}).map(([channelAddress, channel]: [string, any]) => { @@ -90,7 +90,7 @@ export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, Ex } security(): Array> { - const securitySchemes = this._meta?.asyncapi?.parsed.components.securitySchemes || {}; + const securitySchemes = this._meta?.asyncapi?.parsed?.components?.securitySchemes || {}; return (this._json.security || []).map((requirement: any) => { const requirements: Record = {}; Object.entries(requirement).forEach(([security, scopes]) => { @@ -102,4 +102,12 @@ export class Server extends Mixin(BaseModel, BindingsMixin, DescriptionMixin, Ex return requirements; }) } + + bindings(): BindingsInterface { + return bindings(this); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } } diff --git a/src/models/v2/tag.ts b/src/models/v2/tag.ts new file mode 100644 index 000000000..2a188cc7c --- /dev/null +++ b/src/models/v2/tag.ts @@ -0,0 +1,35 @@ +import { BaseModel } from "../base"; + +import { hasDescription, description, extensions, hasExternalDocs, externalDocs } from "./mixins"; + +import type { ExtensionsInterface } from "../extensions"; +import type{ ExternalDocumentationInterface } from "../external-docs"; +import type { TagInterface } from "../tag"; + +import type { v2 } from "../../spec-types"; + +export class Tag extends BaseModel implements TagInterface { + name(): string { + return this._json.name; + } + + hasDescription(): boolean { + return hasDescription(this); + } + + description(): string | undefined { + return description(this); + } + + extensions(): ExtensionsInterface { + return extensions(this); + } + + hasExternalDocs(): boolean { + return hasExternalDocs(this); + } + + externalDocs(): ExternalDocumentationInterface | undefined { + return externalDocs(this); + } +} diff --git a/src/models/v2/tags.ts b/src/models/v2/tags.ts new file mode 100644 index 000000000..133845b64 --- /dev/null +++ b/src/models/v2/tags.ts @@ -0,0 +1,14 @@ +import { Collection } from "../collection"; + +import type { TagsInterface } from "../tags"; +import type { TagInterface } from "../tag"; + +export class Tags extends Collection implements TagsInterface { + override get(name: string): TagInterface | undefined { + return this.collections.find(tag => tag.name() === name); + }; + + override has(name: string): boolean { + return this.collections.some(tag => tag.name() === name); + }; +} diff --git a/src/schema-parser/spectral-rule-v2.ts b/src/schema-parser/spectral-rule-v2.ts index 34af4d429..b4048edf0 100644 --- a/src/schema-parser/spectral-rule-v2.ts +++ b/src/schema-parser/spectral-rule-v2.ts @@ -8,6 +8,7 @@ import type { RuleDefinition } from "@stoplight/spectral-core"; import type { Parser } from '../parser'; import type { ValidateSchemaInput } from './index'; import type { SchemaValidateResult } from '../types'; +import type { v2 } from '../spec-types'; export function aas2schemaParserRule(parser: Parser): RuleDefinition { return { @@ -52,7 +53,7 @@ function rulesetFunction(parser: Parser) { } const path = [...ctx.path, 'payload']; - const spec = ctx.document.data as { asyncapi: string }; + const spec = ctx.document.data as v2.AsyncAPIObject; const schemaFormat = getSchemaFormat(targetVal.schemaFormat, spec.asyncapi); const defaultSchemaFormat = getDefaultSchemaFormat(spec.asyncapi); // we don't have a parsed specification yet because we are still executing code in the context of spectral diff --git a/src/spec-types/index.ts b/src/spec-types/index.ts new file mode 100644 index 000000000..1c818d3fa --- /dev/null +++ b/src/spec-types/index.ts @@ -0,0 +1 @@ +export * as v2 from './v2'; diff --git a/src/spec-types/v2.ts b/src/spec-types/v2.ts new file mode 100644 index 000000000..a5dfbdeb2 --- /dev/null +++ b/src/spec-types/v2.ts @@ -0,0 +1,380 @@ +import type { JSONSchema7, JSONSchema7Type } from "json-schema"; + +export type AsyncAPIVersion = string; +export type Identifier = string; +export type DefaultContentType = string; + +export interface AsyncAPIObject extends SpecificationExtensions { + asyncapi: AsyncAPIVersion; + id?: Identifier; + info: InfoObject; + defaultContentType?: DefaultContentType; + servers?: ServersObject; + channels: ChannelsObject; + components?: ComponentsObject; + tags?: TagsObject; + externalDocs?: ExternalDocumentationObject; +} + +export interface InfoObject extends SpecificationExtensions { + title: string; + version: string; + description?: string; + termsOfService?: string; + contact?: ContactObject; + license?: LicenseObject; +} + +export interface ContactObject extends SpecificationExtensions { + name?: string; + url?: string; + email?: string; +} + +export interface LicenseObject extends SpecificationExtensions { + name: string; + url?: string; +} + +export type ServersObject = Record; + +export interface ServerObject extends SpecificationExtensions { + url: string; + protocol: string; + protocolVersion?: string; + description?: string; + variables?: Record; + security?: Array; + bindings?: ServerBindingsObject | ReferenceObject; +} + +export interface ServerVariableObject extends SpecificationExtensions { + enum?: Array; + default?: string; + description?: string; + examples?: Array; +} + +export interface ServerBindingsObject extends SpecificationExtensions { + http: Binding; + ws: Binding; + kafka: Binding; + anypointmq: Binding; + amqp: Binding; + amqp1: Binding; + mqtt: Binding; + mqtt5: Binding; + nats: Binding; + jms: Binding; + sns: Binding; + sqs: Binding; + stomp: Binding; + redis: Binding; + mercure: Binding; + ibmmq: Binding; +} + +export type ChannelsObject = Record; + +export interface ChannelObject extends SpecificationExtensions { + description?: string; + servers?: Array; + subscribe?: OperationObject; + publish?: OperationObject; + parameters?: ParametersObject; + bindings?: ChannelBindingsObject | ReferenceObject; +} + +export interface ChannelBindingsObject extends SpecificationExtensions { + http: Binding; + ws: Binding; + kafka: Binding; + anypointmq: Binding; + amqp: Binding; + amqp1: Binding; + mqtt: Binding; + mqtt5: Binding; + nats: Binding; + jms: Binding; + sns: Binding; + sqs: Binding; + stomp: Binding; + redis: Binding; + mercure: Binding; + ibmmq: Binding; +} + +export interface OperationObject extends OperationTraitObject, SpecificationExtensions { + message?: MessageObject | ReferenceObject | { oneOf: Array }; + traits?: Array; +} + +export interface OperationTraitObject extends SpecificationExtensions { + operationId?: string; + summary?: string; + description?: string; + security?: Array; + tags?: TagsObject; + externalDocs?: ExternalDocumentationObject; + bindings?: OperationBindingsObject | ReferenceObject; +} + +export interface OperationBindingsObject extends SpecificationExtensions { + http: Binding; + ws: Binding; + kafka: Binding; + anypointmq: Binding; + amqp: Binding; + amqp1: Binding; + mqtt: Binding; + mqtt5: Binding; + nats: Binding; + jms: Binding; + sns: Binding; + sqs: Binding; + stomp: Binding; + redis: Binding; + mercure: Binding; + ibmmq: Binding; +} + +export type ParametersObject = Record; + +export interface ParameterObject extends SpecificationExtensions { + description?: string; + schema?: SchemaObject; + location?: string; +} + +export interface MessageObject extends MessageTraitObject, SpecificationExtensions { + payload?: any; + traits?: Array; +} + +export interface MessageTraitObject extends SpecificationExtensions { + messageId?: string; + headers?: SchemaObject; + correlationId?: CorrelationIDObject | ReferenceObject; + schemaFormat?: string; + contentType?: string; + name?: string; + title?: string; + summary?: string; + description?: string; + tags?: TagsObject; + externalDocs?: ExternalDocumentationObject; + bindings?: MessageBindingsObject | ReferenceObject; + examples?: Array; +} + +export interface MessageExampleObject extends SpecificationExtensions { + name?: string; + summary?: string; + headers?: Record; + payload?: any; +} + +export interface MessageBindingsObject extends SpecificationExtensions { + http: Binding; + ws: Binding; + kafka: Binding; + anypointmq: Binding; + amqp: Binding; + amqp1: Binding; + mqtt: Binding; + mqtt5: Binding; + nats: Binding; + jms: Binding; + sns: Binding; + sqs: Binding; + stomp: Binding; + redis: Binding; + mercure: Binding; + ibmmq: Binding; +} + +export type TagsObject = Array; + +export interface TagObject extends SpecificationExtensions { + name: string; + description?: string; + externalDocs?: ExternalDocumentationObject; +} + +export interface ExternalDocumentationObject extends SpecificationExtensions { + url: string; + description?: string; +} + +export interface ComponentsObject extends SpecificationExtensions { + channels?: Record; + servers?: Record; + schemas?: Record; + messages?: Record; + securitySchemes?: Record; + parameters?: Record; + serverVariables?: Record; + correlationIds?: Record; + operationTraits?: Record; + messageTraits?: Record; + serverBindings?: Record; + channelBindings?: Record; + operationBindings?: Record; + messageBindings?: Record; +} + +export type SchemaObject = AsyncAPISchemaObject | ReferenceObject; + +export interface AsyncAPISchemaObject extends JSONSchema7, SpecificationExtensions { + discriminator?: string; + externalDocs?: ExternalDocumentationObject; + deprecated?: boolean; + examples?: Array | undefined; + [keyword: string]: any; +} + +export interface SecuritySchemeObject extends SpecificationExtensions { + type: SecuritySchemeType; + description?: string; + name?: string; + in?: 'user' | 'password' | 'query' | 'header' | 'cookie'; + scheme?: string; + bearerFormat?: string; + flows?: OAuthFlowsObject; + openIdConnectUrl?: string; +} + +export type SecuritySchemeType = + | 'userPassword' + | 'apiKey' + | 'X509' + | 'symmetricEncryption' + | 'asymmetricEncryption' + | 'httpApiKey' + | 'http' + | 'oauth2' + | 'openIdConnect' + | 'plain' + | 'scramSha256' + | 'scramSha512' + | 'gssapi'; + +export interface SecuritySchemeObjectBase extends SpecificationExtensions { + description?: string; +} + +export interface SecuritySchemeObjectUserPassword extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'userPassword'; +} + +export interface SecuritySchemeObjectApiKey extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'apiKey'; + in: 'user' | 'password'; +} + +export interface SecuritySchemeObjectX509 extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'X509'; +} + +export interface SecuritySchemeObjectSymetricEncryption extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'symmetricEncryption'; +} + +export interface SecuritySchemeObjectAsymetricEncryption extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'asymmetricEncryption'; +} + +export interface SecuritySchemeObjectHttpApiKey extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'httpApiKey'; + name: string; + in: 'query' | 'header' | 'cookie'; +} + +export interface SecuritySchemeObjectHttp extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'http'; + scheme: string; + bearerFormat?: string; +} + +export interface SecuritySchemeObjectOauth2 extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'oauth2'; + flows: OAuthFlowsObject; +} + +export interface SecuritySchemeObjectOpenIdConnect extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'openIdConnect'; + openIdConnectUrl: string; +} + +export interface SecuritySchemeObjectPlain extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'plain'; +} + +export interface SecuritySchemeObjectScramSha256 extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'scramSha256'; +} + +export interface SecuritySchemeObjectScramSha512 extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'scramSha512'; +} + +export interface SecuritySchemeObjectGssapi extends SecuritySchemeObjectBase, SpecificationExtensions { + type: 'gssapi'; +} + +export interface OAuthFlowsObject extends SpecificationExtensions { + implicit?: OAuthFlowObjectImplicit; + password?: OAuthFlowObjectPassword; + clientCredentials?: OAuthFlowObjectClientCredentials; + authorizationCode?: OAuthFlowObjectAuthorizationCode; +} + +export type OAuthFlowObject = + & OAuthFlowObjectImplicit + & OAuthFlowObjectPassword + & OAuthFlowObjectClientCredentials + & OAuthFlowObjectAuthorizationCode; + +export interface OAuthFlowObjectBase extends SpecificationExtensions { + refreshUrl?: string; + scopes: Record; +} + +export interface OAuthFlowObjectImplicit extends OAuthFlowObjectBase, SpecificationExtensions { + authorizationUrl: string; +} + +export interface OAuthFlowObjectPassword extends OAuthFlowObjectBase, SpecificationExtensions { + tokenUrl: string; +} + +export interface OAuthFlowObjectClientCredentials extends OAuthFlowObjectBase, SpecificationExtensions { + tokenUrl: string; +} + +export interface OAuthFlowObjectAuthorizationCode extends OAuthFlowObjectBase, SpecificationExtensions { + authorizationUrl: string; + tokenUrl: string; +} + +export type SecurityRequirementObject = Record>; + +export interface CorrelationIDObject extends SpecificationExtensions { + location: string; + description?: string; +} + +export interface Binding { + bindingVersion?: string; + [key: string]: any; +} + +export interface SpecificationExtensions { + [extension: `x-${string}`]: SpecificationExtension; +} + +export type SpecificationExtension = any; + +export interface ReferenceObject { + '$ref': string; +} \ No newline at end of file diff --git a/src/stringify.ts b/src/stringify.ts index 32240adee..802c95890 100644 --- a/src/stringify.ts +++ b/src/stringify.ts @@ -3,6 +3,8 @@ import { AsyncAPIDocumentInterface, newAsyncAPIDocument } from './models'; import { createDetailedAsyncAPI, isAsyncAPIDocument, isParsedDocument, isStringifiedDocument } from './utils'; import { xParserSpecStringified } from './constants'; +import type { DetailedAsyncAPI } from './types'; + export interface StringifyOptions { space?: string | number; } @@ -45,7 +47,7 @@ export function unstringify(document: unknown): AsyncAPIDocumentInterface | unde delete (>parsed)[String(xParserSpecStringified)]; traverseStringifiedDoc(document, undefined, document, new Map(), new Map()); - return newAsyncAPIDocument(createDetailedAsyncAPI(document as string, parsed as Record)); + return newAsyncAPIDocument(createDetailedAsyncAPI(document as string, parsed as DetailedAsyncAPI['parsed'] )); } function refReplacer() { diff --git a/src/types.ts b/src/types.ts index 9a292ff7b..b01afda1e 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,5 +1,5 @@ import type { ISpectralDiagnostic, IFunctionResult } from '@stoplight/spectral-core'; -import type { JSONSchema7 } from "json-schema" +import type { v2 } from "./spec-types"; export type MaybeAsyncAPI = { asyncapi: string } & Record; export interface AsyncAPISemver { @@ -12,10 +12,11 @@ export interface AsyncAPISemver { export interface DetailedAsyncAPI { source: string | Record; - parsed: Record; + parsed: AsyncAPIObject; semver: AsyncAPISemver; } export type Diagnostic = ISpectralDiagnostic; export type SchemaValidateResult = IFunctionResult; -export type AsyncAPISchema = JSONSchema7 & { [key: string]: any }; +export type AsyncAPIObject = v2.AsyncAPIObject; +export type AsyncAPISchema = v2.AsyncAPISchemaObject; diff --git a/src/utils.ts b/src/utils.ts index 48c0cd5f1..6679eb994 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -8,7 +8,7 @@ import { } from './constants'; import type { ISpectralDiagnostic } from '@stoplight/spectral-core'; -import type { AsyncAPISemver, DetailedAsyncAPI, MaybeAsyncAPI } from 'types'; +import type { AsyncAPISemver, AsyncAPIObject, DetailedAsyncAPI, MaybeAsyncAPI } from 'types'; export function toAsyncAPIDocument(maybeDoc: unknown): AsyncAPIDocumentInterface | undefined { if (isAsyncAPIDocument(maybeDoc)) { @@ -17,7 +17,7 @@ export function toAsyncAPIDocument(maybeDoc: unknown): AsyncAPIDocumentInterface if (!isParsedDocument(maybeDoc)) { return; } - return unstringify(maybeDoc) || newAsyncAPIDocument(createDetailedAsyncAPI(maybeDoc, maybeDoc)); + return unstringify(maybeDoc) || newAsyncAPIDocument(createDetailedAsyncAPI(maybeDoc, maybeDoc as any)); } export function isAsyncAPIDocument(maybeDoc: unknown): maybeDoc is AsyncAPIDocumentInterface { @@ -41,11 +41,11 @@ export function isStringifiedDocument(maybeDoc: unknown): maybeDoc is Record, parsed: Record): DetailedAsyncAPI { +export function createDetailedAsyncAPI(source: string | Record, parsed: AsyncAPIObject): DetailedAsyncAPI { return { source, parsed, - semver: getSemver((parsed as MaybeAsyncAPI).asyncapi), + semver: getSemver(parsed.asyncapi), } } diff --git a/test/custom-operations/parse-schema.spec.ts b/test/custom-operations/parse-schema.spec.ts index 08ba25a8a..941d2ab8d 100644 --- a/test/custom-operations/parse-schema.spec.ts +++ b/test/custom-operations/parse-schema.spec.ts @@ -3,6 +3,8 @@ import { Parser } from '../../src/parser'; import { parse } from '../../src/parse'; import { xParserOriginalPayload } from '../../src/constants'; +import type { v2 } from '../../src/spec-types'; + describe('custom operations - parse schemas', function() { const parser = new Parser(); @@ -32,9 +34,9 @@ describe('custom operations - parse schemas', function() { expect(parsed).toBeInstanceOf(AsyncAPIDocumentV2); expect(diagnostics.length > 0).toEqual(true); - expect(parsed?.json()['channels']['channel']['publish']['message']['payload']).toEqual({ type: 'object' }); - expect(parsed?.json()['channels']['channel']['publish']['message'][xParserOriginalPayload]).toEqual({ type: 'object' }); - expect(parsed?.json()['channels']['channel']['publish']['message']['payload']).toEqual(parsed?.json()['channels']['channel']['publish']['message'][xParserOriginalPayload]); + expect((parsed?.json()?.channels?.channel?.publish?.message as v2.MessageObject)?.payload).toEqual({ type: 'object' }); + expect((parsed?.json()?.channels?.channel?.publish?.message as v2.MessageObject)?.[xParserOriginalPayload]).toEqual({ type: 'object' }); + expect((parsed?.json()?.channels?.channel?.publish?.message as v2.MessageObject)?.payload).toEqual((parsed?.json()?.channels?.channel?.publish?.message as v2.MessageObject)?.[xParserOriginalPayload]); }); it('should parse valid default schema format', async function() { @@ -62,9 +64,9 @@ describe('custom operations - parse schemas', function() { expect(parsed).toBeInstanceOf(AsyncAPIDocumentV2); expect(diagnostics.length > 0).toEqual(true); - expect(parsed?.json()['channels']['channel']['publish']['message']['payload']).toEqual({ type: 'object' }); - expect(parsed?.json()['channels']['channel']['publish']['message'][xParserOriginalPayload]).toEqual({ type: 'object' }); - expect(parsed?.json()['channels']['channel']['publish']['message']['payload']).toEqual(parsed?.json()['channels']['channel']['publish']['message'][xParserOriginalPayload]); + expect((parsed?.json()?.channels?.channel?.publish?.message as v2.MessageObject)?.payload).toEqual({ type: 'object' }); + expect((parsed?.json()?.channels?.channel?.publish?.message as v2.MessageObject)?.[xParserOriginalPayload]).toEqual({ type: 'object' }); + expect((parsed?.json()?.channels?.channel?.publish?.message as v2.MessageObject)?.payload).toEqual((parsed?.json()?.channels?.channel?.publish?.message as v2.MessageObject)?.[xParserOriginalPayload]); }); it('should parse invalid schema format', async function() { diff --git a/test/models/asyncapi.spec.ts b/test/models/asyncapi.spec.ts index 1a7b410e4..de92886b3 100644 --- a/test/models/asyncapi.spec.ts +++ b/test/models/asyncapi.spec.ts @@ -5,7 +5,7 @@ import { createDetailedAsyncAPI } from '../../src/utils'; describe('AsyncAPIDocument factory', function() { it('should create a valid document from v2.0.0', function() { const doc = { asyncapi: "2.0.0" }; - const detailed = createDetailedAsyncAPI(doc, doc); + const detailed = createDetailedAsyncAPI(doc, doc as any); const d = newAsyncAPIDocument(detailed) expect(d.version()).toEqual(doc.asyncapi); expect(d).toBeInstanceOf(AsyncAPIDocumentV2); @@ -13,7 +13,7 @@ describe('AsyncAPIDocument factory', function() { it('should fail trying to create a document from a non supported spec version', function() { const doc = { asyncapi: "99.99.99" }; - const detailed = createDetailedAsyncAPI(doc, doc); + const detailed = createDetailedAsyncAPI(doc, doc as any); expect(() => newAsyncAPIDocument(detailed)).toThrow("Unsupported AsyncAPI version: 99.99.99"); }); }); diff --git a/test/models/base.spec.ts b/test/models/base.spec.ts index eb101e38f..34718fc0f 100644 --- a/test/models/base.spec.ts +++ b/test/models/base.spec.ts @@ -19,7 +19,7 @@ describe('Base model', function() { it('should return the value of a given key, even when this is falsy', function() { const doc = { 0: 'testing' }; const d = new Model(doc); - expect(d.json(0)).toEqual(doc[0]); + expect(d.json('0')).toEqual(doc[0]); }); }); }); diff --git a/test/models/v2/asyncapi.spec.ts b/test/models/v2/asyncapi.spec.ts index e8033f091..303262973 100644 --- a/test/models/v2/asyncapi.spec.ts +++ b/test/models/v2/asyncapi.spec.ts @@ -4,24 +4,23 @@ import { Components } from '../../../src/models/v2/components'; import { Info } from '../../../src/models/v2/info'; import { Messages } from '../../../src/models/v2/messages'; import { Operations } from '../../../src/models/v2/operations'; -import { Schemas } from '../../../src/models/v2/schemas'; import { SecuritySchemes } from '../../../src/models/v2/security-schemes'; import { Servers } from '../../../src/models/v2/servers'; -import { - assertExtensionsMixinInheritance, -} from './mixins/inheritance'; +import { serializeInput, assertExtensions } from './utils'; + +import type { v2 } from '../../../src/spec-types'; describe('AsyncAPIDocument model', function() { describe('.version()', function() { it('should return the value', function() { - const doc = { asyncapi: "2.0.0" }; + const doc = serializeInput({ asyncapi: "2.0.0" }); const d = new AsyncAPIDocument(doc); expect(d.version()).toEqual(doc.asyncapi); }); it('should return undefined when there is no value', function() { - const doc = { }; + const doc = serializeInput({}); const d = new AsyncAPIDocument(doc); expect(d.version()).toBeUndefined(); }); @@ -29,13 +28,13 @@ describe('AsyncAPIDocument model', function() { describe('.hasDefaultContentType()', function() { it('should return true when there is a value', function() { - const doc = { defaultContentType: "..." }; + const doc = serializeInput({ defaultContentType: "..." }); const d = new AsyncAPIDocument(doc); expect(d.hasDefaultContentType()).toEqual(true); }); it('should return false when there is no value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new AsyncAPIDocument(doc); expect(d.hasDefaultContentType()).toEqual(false); }); @@ -43,13 +42,13 @@ describe('AsyncAPIDocument model', function() { describe('.defaultContentType()', function() { it('should return the value', function() { - const doc = { defaultContentType: "..." }; + const doc = serializeInput({ defaultContentType: "..." }); const d = new AsyncAPIDocument(doc); expect(d.defaultContentType()).toEqual(doc.defaultContentType); }); it('should return undefined when there is no value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new AsyncAPIDocument(doc); expect(d.defaultContentType()).toBeUndefined(); }); @@ -57,7 +56,7 @@ describe('AsyncAPIDocument model', function() { describe('.info()', function() { it('should return an Info object', function() { - const doc = { info: { name: "LeChuck" } }; + const doc = serializeInput({ info: {} }); const d = new AsyncAPIDocument(doc); expect(d.info()).toBeInstanceOf(Info); }); @@ -65,7 +64,7 @@ describe('AsyncAPIDocument model', function() { describe('.servers()', function() { it('should return a collection of servers', function() { - const doc = { servers: { development: {} } }; + const doc = serializeInput({ servers: { development: {} } }); const d = new AsyncAPIDocument(doc); expect(d.servers()).toBeInstanceOf(Servers); expect(d.servers()).toHaveLength(1); @@ -73,7 +72,7 @@ describe('AsyncAPIDocument model', function() { }) it('should return a collection of servers even if servers are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new AsyncAPIDocument(doc); expect(d.servers()).toBeInstanceOf(Servers); }) @@ -81,7 +80,7 @@ describe('AsyncAPIDocument model', function() { describe('.channels()', function() { it('should return a collection of channels', function() { - const doc = { channels: { 'user/signup': {} } }; + const doc = serializeInput({ channels: { 'user/signup': {} } }); const d = new AsyncAPIDocument(doc); expect(d.channels()).toBeInstanceOf(Channels); expect(d.channels()).toHaveLength(1); @@ -89,7 +88,7 @@ describe('AsyncAPIDocument model', function() { }) it('should return a collection of channels even if channels are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new AsyncAPIDocument(doc); expect(d.channels()).toBeInstanceOf(Channels); }) @@ -97,14 +96,14 @@ describe('AsyncAPIDocument model', function() { describe('.operations()', function() { it('should return a collection of operations', function() { - const doc = { channels: { 'user/signup': { publish: {}, subscribe: {} }, 'user/logout': { publish: {} } } }; + const doc = serializeInput({ channels: { 'user/signup': { publish: {}, subscribe: {} }, 'user/logout': { publish: {} } } }); const d = new AsyncAPIDocument(doc); expect(d.operations()).toBeInstanceOf(Operations); expect(d.operations()).toHaveLength(3); }) it('should return a collection of operations even if operations are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new AsyncAPIDocument(doc); expect(d.operations()).toBeInstanceOf(Operations); }) @@ -112,14 +111,14 @@ describe('AsyncAPIDocument model', function() { describe('.messages()', function() { it('should return a collection of messages', function() { - const doc = { channels: { 'user/signup': { publish: { message: {} }, subscribe: { message: { oneOf: [{}, {}] } } }, 'user/logout': { publish: { message: {} } } } }; + const doc = serializeInput({ channels: { 'user/signup': { publish: { message: {} }, subscribe: { message: { oneOf: [{}, {}] } } }, 'user/logout': { publish: { message: {} } } } }); const d = new AsyncAPIDocument(doc); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages()).toHaveLength(4); }) it('should return a collection of messages even if messages are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new AsyncAPIDocument(doc); expect(d.messages()).toBeInstanceOf(Messages); }) @@ -131,14 +130,14 @@ describe('AsyncAPIDocument model', function() { describe('.securitySchemes()', function() { it('should return a collection of securitySchemes', function() { - const doc = { components: { securitySchemes: { security1: {}, security2: {} } } }; + const doc = serializeInput({ components: { securitySchemes: { security1: { type: 'X509' }, security2: { type: 'apiKey' } } } }); const d = new AsyncAPIDocument(doc); expect(d.securitySchemes()).toBeInstanceOf(SecuritySchemes); expect(d.securitySchemes()).toHaveLength(2); }) it('should return a collection of securitySchemes even if securitySchemes are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new AsyncAPIDocument(doc); expect(d.securitySchemes()).toBeInstanceOf(SecuritySchemes); }) @@ -146,19 +145,19 @@ describe('AsyncAPIDocument model', function() { describe('.components()', function() { it('should return a components model', function() { - const doc = { components: {} }; + const doc = serializeInput({ components: {} }); const d = new AsyncAPIDocument(doc); expect(d.components()).toBeInstanceOf(Components); }) it('should return a components model even if components are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new AsyncAPIDocument(doc); expect(d.components()).toBeInstanceOf(Components); }) }) - describe('mixins inheritance', function() { - assertExtensionsMixinInheritance(AsyncAPIDocument); + describe('mixins', function() { + assertExtensions(AsyncAPIDocument); }); }); diff --git a/test/models/v2/channel-parameter.spec.ts b/test/models/v2/channel-parameter.spec.ts index 1c1a4a074..9a7816504 100644 --- a/test/models/v2/channel-parameter.spec.ts +++ b/test/models/v2/channel-parameter.spec.ts @@ -1,15 +1,14 @@ import { ChannelParameter } from '../../../src/models/v2/channel-parameter'; import { Schema } from '../../../src/models/v2/schema'; -import { - assertDescriptionMixinInheritance, - assertExtensionsMixinInheritance, -} from './mixins/inheritance'; +import { serializeInput, assertDescription, assertExtensions } from './utils'; + +import type { v2 } from '../../../src/spec-types'; describe('ChannelParameter model', function() { describe('.id()', function() { it('should return id of model', function() { - const doc = {}; + const doc = serializeInput({}); const d = new ChannelParameter(doc, { asyncapi: {} as any, pointer: '', id: 'parameter' }); expect(d.id()).toEqual('parameter'); }); @@ -17,13 +16,13 @@ describe('ChannelParameter model', function() { describe('.hasLocation()', function() { it('should return true when there is a value', function() { - const doc = { location: "..." }; + const doc = serializeInput({ location: "..." }); const d = new ChannelParameter(doc); expect(d.hasLocation()).toEqual(true); }); it('should return false when there is no value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new ChannelParameter(doc); expect(d.hasLocation()).toEqual(false); }); @@ -31,13 +30,13 @@ describe('ChannelParameter model', function() { describe('.location()', function() { it('should return the value', function() { - const doc = { location: "..." }; + const doc = serializeInput({ location: "..." }); const d = new ChannelParameter(doc); expect(d.location()).toEqual(doc.location); }); it('should return undefined when there is no value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new ChannelParameter(doc); expect(d.location()).toBeUndefined(); }); @@ -45,13 +44,13 @@ describe('ChannelParameter model', function() { describe('.hasSchema()', function() { it('should return true when there is a value', function() { - const doc = { schema: {} }; + const doc = serializeInput({ schema: {} }); const d = new ChannelParameter(doc); expect(d.hasSchema()).toEqual(true); }); it('should return false when there is no value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new ChannelParameter(doc); expect(d.hasSchema()).toEqual(false); }); @@ -59,20 +58,20 @@ describe('ChannelParameter model', function() { describe('.schema()', function() { it('should return the value', function() { - const doc = { schema: {} }; + const doc = serializeInput({ schema: {} }); const d = new ChannelParameter(doc); expect(d.schema()).toBeInstanceOf(Schema); }); it('should return undefined when there is no value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new ChannelParameter(doc); expect(d.schema()).toBeUndefined(); }); }); - describe('mixins inheritance', function() { - assertDescriptionMixinInheritance(ChannelParameter); - assertExtensionsMixinInheritance(ChannelParameter); + describe('mixins', function() { + assertDescription(ChannelParameter); + assertExtensions(ChannelParameter); }); }); diff --git a/test/models/v2/channel.spec.ts b/test/models/v2/channel.spec.ts index 3e872663e..279969a8d 100644 --- a/test/models/v2/channel.spec.ts +++ b/test/models/v2/channel.spec.ts @@ -8,16 +8,14 @@ import { Message } from '../../../src/models/v2/message'; import { Servers } from '../../../src/models/v2/servers'; import { Server } from '../../../src/models/v2/server'; -import { - assertBindingsMixinInheritance, - assertDescriptionMixinInheritance, - assertExtensionsMixinInheritance, -} from './mixins/inheritance'; +import { serializeInput, assertBindings, assertDescription, assertExtensions } from './utils'; + +import type { v2 } from '../../../src/spec-types'; describe('Channel model', function() { describe('.id()', function() { it('should return id of model', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Channel(doc, { asyncapi: {} as any, pointer: '', id: 'channel', address: '' }); expect(d.id()).toEqual('channel'); }); @@ -25,7 +23,7 @@ describe('Channel model', function() { describe('.address()', function() { it('should return the value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Channel(doc, { asyncapi: {} as any, pointer: '', id: 'channel', address: 'user/signup' }); expect(d.address()).toEqual('user/signup'); }); @@ -33,7 +31,7 @@ describe('Channel model', function() { describe('.servers()', function() { it('should return collection of servers - available on all servers', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Channel(doc, { asyncapi: { parsed: { servers: { someServer1: {}, someServer2: {}, } } } as any, pointer: '', id: 'channel', address: 'user/signup' }); expect(d.servers()).toBeInstanceOf(Servers); expect(d.servers().all()).toHaveLength(2); @@ -44,7 +42,7 @@ describe('Channel model', function() { }); it('should return collection of servers - available on all servers (empty servers array)', function() { - const doc = { servers: [] }; + const doc = serializeInput({ servers: [] }); const d = new Channel(doc, { asyncapi: { parsed: { servers: { someServer1: {}, someServer2: {}, } } } as any, pointer: '', id: 'channel', address: 'user/signup' }); expect(d.servers()).toBeInstanceOf(Servers); expect(d.servers().all()).toHaveLength(2); @@ -55,7 +53,7 @@ describe('Channel model', function() { }); it('should return collection of servers - available only on particular ones', function() { - const doc = { servers: ['someServer2'] }; + const doc = serializeInput({ servers: ['someServer2'] }); const d = new Channel(doc, { asyncapi: { parsed: { servers: { someServer1: {}, someServer2: {}, } } } as any, pointer: '', id: 'channel', address: 'user/signup' }); expect(d.servers()).toBeInstanceOf(Servers); expect(d.servers().all()).toHaveLength(1); @@ -66,7 +64,7 @@ describe('Channel model', function() { describe('.operations()', function() { it('should return collection of operations - publish operation', function() { - const doc = { publish: {} }; + const doc = serializeInput({ publish: {} }); const d = new Channel(doc); expect(d.operations()).toBeInstanceOf(Operations); expect(d.operations().all()).toHaveLength(1); @@ -75,7 +73,7 @@ describe('Channel model', function() { }); it('should return collection of operations - subscribe operation', function() { - const doc = { subscribe: {} }; + const doc = serializeInput({ subscribe: {} }); const d = new Channel(doc); expect(d.operations()).toBeInstanceOf(Operations); expect(d.operations().all()).toHaveLength(1); @@ -84,7 +82,7 @@ describe('Channel model', function() { }); it('should return collection of operations - both operations', function() { - const doc = { publish: {}, subscribe: {} }; + const doc = serializeInput({ publish: {}, subscribe: {} }); const d = new Channel(doc); expect(d.operations()).toBeInstanceOf(Operations); expect(d.operations().all()).toHaveLength(2); @@ -97,27 +95,27 @@ describe('Channel model', function() { describe('.messages()', function() { it('should return collection of messages - single message', function() { - const doc = { publish: { message: { messageId: '...' } } }; + const doc = serializeInput({ publish: { message: { messageId: '...' } } }); const d = new Channel(doc); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(1); expect(d.messages().all()[0]).toBeInstanceOf(Message); - expect(d.messages().all()[0].messageId()).toEqual(doc.publish.message.messageId); + expect(d.messages().all()[0].messageId()).toEqual((doc as any).publish.message.messageId); }); it('should return collection of messages - oneOf message', function() { - const doc = { subscribe: { message: { oneOf: [{ messageId: '1' }, { messageId: '2' }] } } }; + const doc = serializeInput({ subscribe: { message: { oneOf: [{ messageId: '1' }, { messageId: '2' }] } } }); const d = new Channel(doc); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(2); expect(d.messages().all()[0]).toBeInstanceOf(Message); - expect(d.messages().all()[0].messageId()).toEqual(doc.subscribe.message.oneOf[0].messageId); + expect(d.messages().all()[0].messageId()).toEqual((doc as any).subscribe.message.oneOf[0].messageId); expect(d.messages().all()[1]).toBeInstanceOf(Message); - expect(d.messages().all()[1].messageId()).toEqual(doc.subscribe.message.oneOf[1].messageId); + expect(d.messages().all()[1].messageId()).toEqual((doc as any).subscribe.message.oneOf[1].messageId); }); it('should return collection of messages - single message and oneOf', function() { - const doc = { publish: { message: {} }, subscribe: { message: { oneOf: [{ messageId: '1' }, { messageId: '2' }] } } }; + const doc = serializeInput({ publish: { message: {} }, subscribe: { message: { oneOf: [{ messageId: '1' }, { messageId: '2' }] } } }); const d = new Channel(doc); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(3); @@ -126,7 +124,7 @@ describe('Channel model', function() { describe('.parameters()', function() { it('should return collection of channel parameters', function() { - const doc = { parameters: { parameter1: {}, parameter2: {} } }; + const doc = serializeInput({ parameters: { parameter1: {}, parameter2: {} } }); const d = new Channel(doc); expect(d.parameters()).toBeInstanceOf(ChannelParameters); expect(d.parameters().all()).toHaveLength(2); @@ -137,9 +135,9 @@ describe('Channel model', function() { }); }); - describe('mixins inheritance', function() { - assertBindingsMixinInheritance(Channel); - assertDescriptionMixinInheritance(Channel); - assertExtensionsMixinInheritance(Channel); + describe('mixins', function() { + assertBindings(Channel); + assertDescription(Channel); + assertExtensions(Channel); }); }); diff --git a/test/models/v2/components.spec.ts b/test/models/v2/components.spec.ts index 6265ed543..c550f7a1f 100644 --- a/test/models/v2/components.spec.ts +++ b/test/models/v2/components.spec.ts @@ -1,5 +1,5 @@ import { Components } from '../../../src/models/v2/components'; -import { Bindings } from '../../../src/models/v2/mixins/bindings'; +import { Bindings } from '../../../src/models/v2/bindings'; import { Channel } from '../../../src/models/v2/channel'; import { ChannelParameter } from '../../../src/models/v2/channel-parameter'; import { CorrelationId } from '../../../src/models/v2/correlation-id'; @@ -11,14 +11,14 @@ import { Server } from '../../../src/models/v2/server'; import { ServerVariable } from '../../../src/models/v2/server-variable'; import { SecurityScheme } from '../../../src/models/v2/security-scheme'; -import { - assertExtensionsMixinInheritance, -} from './mixins/inheritance'; +import { serializeInput, assertExtensions } from './utils'; + +import type { v2 } from '../../../src/spec-types'; describe('Components model', function() { describe('.servers()', function() { it('should return map of servers', function() { - const doc = { servers: { server: {} } }; + const doc = serializeInput({ servers: { server: {} } }); const d = new Components(doc); expect(typeof d.servers()).toEqual('object'); expect(Object.keys(d.servers())).toHaveLength(1); @@ -26,7 +26,7 @@ describe('Components model', function() { }); it('should return empty map when servers are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Components(doc); expect(typeof d.servers()).toEqual('object'); expect(Object.keys(d.servers())).toHaveLength(0); @@ -35,7 +35,7 @@ describe('Components model', function() { describe('.channels()', function() { it('should return map of channels', function() { - const doc = { channels: { channel: {} } }; + const doc = serializeInput({ channels: { channel: {} } }); const d = new Components(doc); expect(typeof d.channels()).toEqual('object'); expect(Object.keys(d.channels())).toHaveLength(1); @@ -43,7 +43,7 @@ describe('Components model', function() { }); it('should return empty map when channels are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Components(doc); expect(typeof d.channels()).toEqual('object'); expect(Object.keys(d.channels())).toHaveLength(0); @@ -52,7 +52,7 @@ describe('Components model', function() { describe('.messages()', function() { it('should return map of messages', function() { - const doc = { messages: { message: {} } }; + const doc = serializeInput({ messages: { message: {} } }); const d = new Components(doc); expect(typeof d.messages()).toEqual('object'); expect(Object.keys(d.messages())).toHaveLength(1); @@ -60,7 +60,7 @@ describe('Components model', function() { }); it('should return empty map when messages are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Components(doc); expect(typeof d.messages()).toEqual('object'); expect(Object.keys(d.messages())).toHaveLength(0); @@ -69,7 +69,7 @@ describe('Components model', function() { describe('.schemas()', function() { it('should return map of schemas', function() { - const doc = { schemas: { schema: {} } }; + const doc = serializeInput({ schemas: { schema: {} } }); const d = new Components(doc); expect(typeof d.schemas()).toEqual('object'); expect(Object.keys(d.schemas())).toHaveLength(1); @@ -77,7 +77,7 @@ describe('Components model', function() { }); it('should return empty map when schemas are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Components(doc); expect(typeof d.schemas()).toEqual('object'); expect(Object.keys(d.schemas())).toHaveLength(0); @@ -86,7 +86,7 @@ describe('Components model', function() { describe('.channelParameters()', function() { it('should return map of channelParameters', function() { - const doc = { parameters: { parameter: {} } }; + const doc = serializeInput({ parameters: { parameter: {} } }); const d = new Components(doc); expect(typeof d.channelParameters()).toEqual('object'); expect(Object.keys(d.channelParameters())).toHaveLength(1); @@ -94,7 +94,7 @@ describe('Components model', function() { }); it('should return empty map when channelParameters are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Components(doc); expect(typeof d.channelParameters()).toEqual('object'); expect(Object.keys(d.channelParameters())).toHaveLength(0); @@ -103,7 +103,7 @@ describe('Components model', function() { describe('.serverVariables()', function() { it('should return map of serverVariables', function() { - const doc = { serverVariables: { variable: {} } }; + const doc = serializeInput({ serverVariables: { variable: {} } }); const d = new Components(doc); expect(typeof d.serverVariables()).toEqual('object'); expect(Object.keys(d.serverVariables())).toHaveLength(1); @@ -111,7 +111,7 @@ describe('Components model', function() { }); it('should return empty map when serverVariables are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Components(doc); expect(typeof d.serverVariables()).toEqual('object'); expect(Object.keys(d.serverVariables())).toHaveLength(0); @@ -120,7 +120,7 @@ describe('Components model', function() { describe('.operationTraits()', function() { it('should return map of operationTraits', function() { - const doc = { operationTraits: { trait: {} } }; + const doc = serializeInput({ operationTraits: { trait: {} } }); const d = new Components(doc); expect(typeof d.operationTraits()).toEqual('object'); expect(Object.keys(d.operationTraits())).toHaveLength(1); @@ -128,7 +128,7 @@ describe('Components model', function() { }); it('should return empty map when operationTraits are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Components(doc); expect(typeof d.operationTraits()).toEqual('object'); expect(Object.keys(d.operationTraits())).toHaveLength(0); @@ -137,7 +137,7 @@ describe('Components model', function() { describe('.messageTraits()', function() { it('should return map of messageTraits', function() { - const doc = { messageTraits: { trait: {} } }; + const doc = serializeInput({ messageTraits: { trait: {} } }); const d = new Components(doc); expect(typeof d.messageTraits()).toEqual('object'); expect(Object.keys(d.messageTraits())).toHaveLength(1); @@ -145,7 +145,7 @@ describe('Components model', function() { }); it('should return empty map when messageTraits are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Components(doc); expect(typeof d.messageTraits()).toEqual('object'); expect(Object.keys(d.messageTraits())).toHaveLength(0); @@ -154,7 +154,7 @@ describe('Components model', function() { describe('.correlationIds()', function() { it('should return map of correlationIds', function() { - const doc = { correlationIds: { id: {} } }; + const doc = serializeInput({ correlationIds: { id: {} } }); const d = new Components(doc); expect(typeof d.correlationIds()).toEqual('object'); expect(Object.keys(d.correlationIds())).toHaveLength(1); @@ -162,7 +162,7 @@ describe('Components model', function() { }); it('should return empty map when correlationIds are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Components(doc); expect(typeof d.correlationIds()).toEqual('object'); expect(Object.keys(d.correlationIds())).toHaveLength(0); @@ -171,7 +171,7 @@ describe('Components model', function() { describe('.securitySchemes()', function() { it('should return map of securitySchemes', function() { - const doc = { securitySchemes: { scheme: {} } }; + const doc = serializeInput({ securitySchemes: { scheme: {} } }); const d = new Components(doc); expect(typeof d.securitySchemes()).toEqual('object'); expect(Object.keys(d.securitySchemes())).toHaveLength(1); @@ -179,7 +179,7 @@ describe('Components model', function() { }); it('should return empty map when securitySchemes are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Components(doc); expect(typeof d.securitySchemes()).toEqual('object'); expect(Object.keys(d.securitySchemes())).toHaveLength(0); @@ -188,7 +188,7 @@ describe('Components model', function() { describe('.serverBindings()', function() { it('should return map of serverBindings', function() { - const doc = { serverBindings: { bidning: {} } }; + const doc = serializeInput({ serverBindings: { bidning: {} } }); const d = new Components(doc); expect(typeof d.serverBindings()).toEqual('object'); expect(Object.keys(d.serverBindings())).toHaveLength(1); @@ -196,7 +196,7 @@ describe('Components model', function() { }); it('should return empty map when serverBindings are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Components(doc); expect(typeof d.serverBindings()).toEqual('object'); expect(Object.keys(d.serverBindings())).toHaveLength(0); @@ -205,7 +205,7 @@ describe('Components model', function() { describe('.channelBindings()', function() { it('should return map of channelBindings', function() { - const doc = { channelBindings: { bidning: {} } }; + const doc = serializeInput({ channelBindings: { bidning: {} } }); const d = new Components(doc); expect(typeof d.channelBindings()).toEqual('object'); expect(Object.keys(d.channelBindings())).toHaveLength(1); @@ -213,7 +213,7 @@ describe('Components model', function() { }); it('should return empty map when channelBindings are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Components(doc); expect(typeof d.channelBindings()).toEqual('object'); expect(Object.keys(d.channelBindings())).toHaveLength(0); @@ -222,7 +222,7 @@ describe('Components model', function() { describe('.operationBindings()', function() { it('should return map of operationBindings', function() { - const doc = { operationBindings: { bidning: {} } }; + const doc = serializeInput({ operationBindings: { bidning: {} } }); const d = new Components(doc); expect(typeof d.operationBindings()).toEqual('object'); expect(Object.keys(d.operationBindings())).toHaveLength(1); @@ -230,7 +230,7 @@ describe('Components model', function() { }); it('should return empty map when operationBindings are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Components(doc); expect(typeof d.operationBindings()).toEqual('object'); expect(Object.keys(d.operationBindings())).toHaveLength(0); @@ -239,7 +239,7 @@ describe('Components model', function() { describe('.messageBindings()', function() { it('should return map of messageBindings', function() { - const doc = { messageBindings: { bidning: {} } }; + const doc = serializeInput({ messageBindings: { bidning: {} } }); const d = new Components(doc); expect(typeof d.messageBindings()).toEqual('object'); expect(Object.keys(d.messageBindings())).toHaveLength(1); @@ -247,14 +247,14 @@ describe('Components model', function() { }); it('should return empty map when messageBindings are not defined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Components(doc); expect(typeof d.messageBindings()).toEqual('object'); expect(Object.keys(d.messageBindings())).toHaveLength(0); }); }); - describe('mixins inheritance', function() { - assertExtensionsMixinInheritance(Components); + describe('mixins', function() { + assertExtensions(Components); }); }); diff --git a/test/models/v2/contact.spec.ts b/test/models/v2/contact.spec.ts index b7b9a8bb6..a3f3d7c89 100644 --- a/test/models/v2/contact.spec.ts +++ b/test/models/v2/contact.spec.ts @@ -1,19 +1,19 @@ import { Contact } from '../../../src/models/v2/contact'; -import { - assertExtensionsMixinInheritance, -} from './mixins/inheritance'; +import { serializeInput, assertExtensions } from './utils'; + +import type { v2 } from '../../../src/spec-types'; describe('Contact model', function() { describe('.hasName()', function() { it('should return true when there is a value', function() { - const doc = { name: "LeChuck" }; + const doc = serializeInput({ name: "LeChuck" }); const d = new Contact(doc); expect(d.hasName()).toEqual(true); }); it('should return false when there is no value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Contact(doc); expect(d.hasName()).toEqual(false); }); @@ -21,13 +21,13 @@ describe('Contact model', function() { describe('.name()', function() { it('should return the value', function() { - const doc = { name: "LeChuck" }; + const doc = serializeInput({ name: "LeChuck" }); const d = new Contact(doc); expect(d.name()).toEqual(doc.name); }); it('should return undefined when there is no value', function() { - const doc = { }; + const doc = serializeInput({}); const d = new Contact(doc); expect(d.name()).toBeUndefined(); }); @@ -35,13 +35,13 @@ describe('Contact model', function() { describe('.hasUrl()', function() { it('should return true when there is a value', function() { - const doc = { url: "https://example.com" }; + const doc = serializeInput({ url: "https://example.com" }); const d = new Contact(doc); expect(d.hasUrl()).toEqual(true); }); it('should return false when there is no value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Contact(doc); expect(d.hasUrl()).toEqual(false); }); @@ -49,13 +49,13 @@ describe('Contact model', function() { describe('.url()', function() { it('should return the value', function() { - const doc = { url: "https://example.com" }; + const doc = serializeInput({ url: "https://example.com" }); const d = new Contact(doc); expect(d.url()).toEqual(doc.url); }); it('should return undefined when there is no value', function() { - const doc = { }; + const doc = serializeInput({}); const d = new Contact(doc); expect(d.url()).toBeUndefined(); }); @@ -63,13 +63,13 @@ describe('Contact model', function() { describe('.hasEmail()', function() { it('should return true when there is a value', function() { - const doc = { email: "lechuck@example.com" }; + const doc = serializeInput({ email: "lechuck@example.com" }); const d = new Contact(doc); expect(d.hasEmail()).toEqual(true); }); it('should return false when there is no value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Contact(doc); expect(d.hasEmail()).toEqual(false); }); @@ -77,19 +77,19 @@ describe('Contact model', function() { describe('.email()', function() { it('should return the value', function() { - const doc = { email: "lechuck@example.com" }; + const doc = serializeInput({ email: "lechuck@example.com" }); const d = new Contact(doc); expect(d.email()).toEqual(doc.email); }); it('should return undefined when there is no value', function() { - const doc = { }; + const doc = serializeInput({}); const d = new Contact(doc); expect(d.email()).toBeUndefined(); }); }); - describe('mixins inheritance', function() { - assertExtensionsMixinInheritance(Contact); + describe('mixins', function() { + assertExtensions(Contact); }); }); diff --git a/test/models/v2/correlation-id.spec.ts b/test/models/v2/correlation-id.spec.ts index 18b4e3918..f0653b722 100644 --- a/test/models/v2/correlation-id.spec.ts +++ b/test/models/v2/correlation-id.spec.ts @@ -1,20 +1,19 @@ import { CorrelationId } from '../../../src/models/v2/correlation-id'; -import { - assertDescriptionMixinInheritance, - assertExtensionsMixinInheritance, -} from './mixins/inheritance'; +import { serializeInput, assertDescription, assertExtensions } from './utils'; + +import type { v2 } from '../../../src/spec-types'; describe('CorrelationId model', function() { describe('.hasLocation()', function() { it('should return true when there is a value', function() { - const doc = { location: "..." }; + const doc = serializeInput({ location: "..." }); const d = new CorrelationId(doc); expect(d.hasLocation()).toEqual(true); }); it('should return false when there is no value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new CorrelationId(doc); expect(d.hasLocation()).toEqual(false); }); @@ -22,20 +21,20 @@ describe('CorrelationId model', function() { describe('.location()', function() { it('should return the value', function() { - const doc = { location: "..." }; + const doc = serializeInput({ location: "..." }); const d = new CorrelationId(doc); expect(d.location()).toEqual(doc.location); }); it('should return undefined when there is no value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new CorrelationId(doc); expect(d.location()).toBeUndefined(); }); }); - describe('mixins inheritance', function() { - assertDescriptionMixinInheritance(CorrelationId); - assertExtensionsMixinInheritance(CorrelationId); + describe('mixins', function() { + assertDescription(CorrelationId); + assertExtensions(CorrelationId); }); }); diff --git a/test/models/v2/external-docs.spec.ts b/test/models/v2/external-docs.spec.ts index 579247c5a..a610380ef 100644 --- a/test/models/v2/external-docs.spec.ts +++ b/test/models/v2/external-docs.spec.ts @@ -1,21 +1,20 @@ -import { ExternalDocumentation } from '../../../src/models/v2/mixins/external-docs'; +import { ExternalDocumentation } from '../../../src/models/v2/external-docs'; -import { - assertDescriptionMixinInheritance, - assertExtensionsMixinInheritance, -} from './mixins/inheritance'; +import { serializeInput, assertDescription, assertExtensions } from './utils'; + +import type { v2 } from '../../../src/spec-types'; describe('ExternalDocumentation model', function() { describe('.name()', function() { it('should return the value', function() { - const doc = { url: 'somewhere' }; + const doc = serializeInput({ url: 'somewhere' }); const d = new ExternalDocumentation(doc); expect(d.url()).toEqual(doc.url); }); }); - describe('mixins inheritance', function() { - assertDescriptionMixinInheritance(ExternalDocumentation); - assertExtensionsMixinInheritance(ExternalDocumentation); + describe('mixins', function() { + assertDescription(ExternalDocumentation); + assertExtensions(ExternalDocumentation); }); }); diff --git a/test/models/v2/info.spec.ts b/test/models/v2/info.spec.ts index 042f60c2e..701e27db6 100644 --- a/test/models/v2/info.spec.ts +++ b/test/models/v2/info.spec.ts @@ -1,19 +1,19 @@ import { Info } from '../../../src/models/v2/info'; import { Contact } from '../../../src/models/v2/contact'; import { License } from '../../../src/models/v2/license'; -import { ExternalDocumentation } from '../../../src/models/v2/mixins/external-docs'; -import { Tags, Tag } from '../../../src/models/v2/mixins/tags'; +import { ExternalDocumentation } from '../../../src/models/v2/external-docs'; +import { Tags } from '../../../src/models/v2/tags'; +import { Tag } from '../../../src/models/v2/tag'; import { createDetailedAsyncAPI } from '../../../src/utils'; -import { - assertDescriptionMixinInheritance, - assertExtensionsMixinInheritance, -} from './mixins/inheritance'; +import { serializeInput, assertDescription, assertExtensions } from './utils'; + +import type { v2 } from '../../../src/spec-types'; describe('Info model', function() { describe('.title()', function() { it('should return the value', function() { - const doc = { title: "Example API" }; + const doc = serializeInput({ title: "Example API" }); const d = new Info(doc); expect(d.title()).toEqual(doc.title); }); @@ -21,7 +21,7 @@ describe('Info model', function() { describe('.version()', function() { it('should return the value', function() { - const doc = { version: "1.0.0" }; + const doc = serializeInput({ version: "1.0.0" }); const d = new Info(doc); expect(d.version()).toEqual(doc.version); }); @@ -30,15 +30,15 @@ describe('Info model', function() { describe('.hasId()', function() { it('should return true when there is a value', function() { const doc = { asyncapi: '2.0.0', id: 'someId' }; - const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, pointer: '/info' }); + const asyncapi = createDetailedAsyncAPI(doc, doc as any); + const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.hasId()).toEqual(true); }); it('should return false when there is no value', function() { const doc = { asyncapi: '2.0.0' }; - const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, pointer: '/info' }); + const asyncapi = createDetailedAsyncAPI(doc, doc as any); + const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.hasId()).toEqual(false); }); }); @@ -46,28 +46,28 @@ describe('Info model', function() { describe('.id()', function() { it('should return the value', function() { const doc = { asyncapi: '2.0.0', id: 'someId' }; - const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, pointer: '/info' }); + const asyncapi = createDetailedAsyncAPI(doc, doc as any); + const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.id()).toEqual(doc.id); }); it('should return undefined when there is no value', function() { const doc = { asyncapi: '2.0.0' }; - const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, pointer: '/info' }); + const asyncapi = createDetailedAsyncAPI(doc, doc as any); + const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.id()).toEqual(undefined); }); }); describe('.hasTermsOfService()', function() { it('should return true when there is a value', function() { - const doc = { termsOfService: "These are the terms of service" }; + const doc = serializeInput({ termsOfService: "These are the terms of service" }); const d = new Info(doc); expect(d.hasTermsOfService()).toEqual(true); }); it('should return false when there is no value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Info(doc); expect(d.hasTermsOfService()).toEqual(false); }); @@ -75,13 +75,13 @@ describe('Info model', function() { describe('.termsOfService()', function() { it('should return the value', function() { - const doc = { termsOfService: "These are the terms of service" }; + const doc = serializeInput({ termsOfService: "These are the terms of service" }); const d = new Info(doc); expect(d.termsOfService()).toEqual(doc.termsOfService); }); it('should return undefined when there is no value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Info(doc); expect(d.termsOfService()).toBeUndefined(); }); @@ -89,13 +89,13 @@ describe('Info model', function() { describe('.hasContact()', function() { it('should return true when there is a value', function() { - const doc = { contact: { name: "LeChuck" } }; + const doc = serializeInput({ contact: { name: "LeChuck" } }); const d = new Info(doc); expect(d.hasContact()).toEqual(true); }); it('should return false when there is no value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Info(doc); expect(d.hasContact()).toEqual(false); }); @@ -103,13 +103,13 @@ describe('Info model', function() { describe('.contact()', function() { it('should return a Contact object', function() { - const doc = { contact: { name: "LeChuck" } }; + const doc = serializeInput({ contact: { name: "LeChuck" } }); const d = new Info(doc); expect(d.contact()).toBeInstanceOf(Contact); }); it('should return undefined when there is no value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Info(doc); expect(d.contact()).toBeUndefined(); }); @@ -117,13 +117,13 @@ describe('Info model', function() { describe('.hasLicense()', function() { it('should return true when there is a value', function() { - const doc = { license: { name: "Apache 2.0" } }; + const doc = serializeInput({ license: { name: "Apache 2.0" } }); const d = new Info(doc); expect(d.hasLicense()).toEqual(true); }); it('should return false when there is no value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Info(doc); expect(d.hasLicense()).toEqual(false); }); @@ -131,13 +131,13 @@ describe('Info model', function() { describe('.license()', function() { it('should return a License object', function() { - const doc = { license: { name: "Apache 2.0" } }; + const doc = serializeInput({ license: { name: "Apache 2.0" } }); const d = new Info(doc); expect(d.license()).toBeInstanceOf(License); }); it('should return undefined when there is no value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Info(doc); expect(d.license()).toBeUndefined(); }); @@ -146,22 +146,22 @@ describe('Info model', function() { describe('.hasExternalDocs()', function() { it('should return true when there is a value', function() { const doc = { asyncapi: '2.0.0', externalDocs: { url: 'https://example.com' } }; - const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, pointer: '/info' }); + const asyncapi = createDetailedAsyncAPI(doc, doc as any); + const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.hasExternalDocs()).toEqual(true); }); it('should return false when there is an empty object', function() { const doc = { asyncapi: '2.0.0', externalDocs: {} }; - const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, pointer: '/info' }); + const asyncapi = createDetailedAsyncAPI(doc, doc as any); + const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.hasExternalDocs()).toEqual(false); }); it('should return false when there is no value', function() { const doc = { asyncapi: '2.0.0' }; - const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, pointer: '/info' }); + const asyncapi = createDetailedAsyncAPI(doc, doc as any); + const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.hasExternalDocs()).toEqual(false); }); }); @@ -169,23 +169,23 @@ describe('Info model', function() { describe('.externalDocs()', function() { it('should return the value', function() { const doc = { asyncapi: '2.0.0', externalDocs: { url: 'https://example.com' } }; - const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, pointer: '/info' }); + const asyncapi = createDetailedAsyncAPI(doc, doc as any); + const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.externalDocs()).toBeInstanceOf(ExternalDocumentation); expect(d.externalDocs()!.json()).toEqual(doc.externalDocs); }); it('should return undefined when there is an empty object', function() { const doc = { asyncapi: '2.0.0', externalDocs: {} }; - const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, pointer: '/info' }); + const asyncapi = createDetailedAsyncAPI(doc, doc as any); + const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.externalDocs()).toEqual(undefined); }); it('should return undefined when there is no value', function() { const doc = { asyncapi: '2.0.0' }; - const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, pointer: '/info' }); + const asyncapi = createDetailedAsyncAPI(doc, doc as any); + const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.externalDocs()).toEqual(undefined); }); }); @@ -194,8 +194,8 @@ describe('Info model', function() { it('should return the collection of tags', function() { const tags = [{ name: 'one' }, { name: 'two' }]; const doc = { asyncapi: '2.0.0', tags }; - const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, pointer: '/info' }); + const asyncapi = createDetailedAsyncAPI(doc, doc as any); + const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.tags()).toBeInstanceOf(Tags); expect(d.tags().length).toEqual(2); expect(d.tags().all()[0]).toBeInstanceOf(Tag); @@ -204,15 +204,15 @@ describe('Info model', function() { it('should return empty array when there is an empty collection', function() { const doc = { asyncapi: '2.0.0' }; - const asyncapi = createDetailedAsyncAPI(doc, doc); - const d = new Info({}, { asyncapi, pointer: '/info' }); + const asyncapi = createDetailedAsyncAPI(doc, doc as any); + const d = new Info(serializeInput({}), { asyncapi, pointer: '/info' }); expect(d.tags()).toBeInstanceOf(Tags); expect(d.tags().all()).toEqual([]); }); }); - describe('mixins inheritance', function() { - assertDescriptionMixinInheritance(Info); - assertExtensionsMixinInheritance(Info); + describe('mixins', function() { + assertDescription(Info); + assertExtensions(Info); }); }); diff --git a/test/models/v2/license.spec.ts b/test/models/v2/license.spec.ts index 855ba320a..260e0a3c2 100644 --- a/test/models/v2/license.spec.ts +++ b/test/models/v2/license.spec.ts @@ -1,13 +1,13 @@ import { License } from '../../../src/models/v2/license'; -import { - assertExtensionsMixinInheritance, -} from './mixins/inheritance'; +import { serializeInput, assertExtensions } from './utils'; + +import type { v2 } from '../../../src/spec-types'; describe('License model', function() { describe('.name()', function() { it('should return the value', function() { - const doc = { name: "Apache 2.0" }; + const doc = serializeInput({ name: "Apache 2.0" }); const d = new License(doc); expect(d.name()).toEqual(doc.name); }); @@ -15,13 +15,13 @@ describe('License model', function() { describe('.hasUrl()', function() { it('should return true when there is a value', function() { - const doc = { url: "https://www.apache.org/licenses/LICENSE-2.0.html" }; + const doc = serializeInput({ url: "https://www.apache.org/licenses/LICENSE-2.0.html" }); const d = new License(doc); expect(d.hasUrl()).toEqual(true); }); it('should return false when there is no value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new License(doc); expect(d.hasUrl()).toEqual(false); }); @@ -29,19 +29,19 @@ describe('License model', function() { describe('.url()', function() { it('should return the value', function() { - const doc = { url: "https://www.apache.org/licenses/LICENSE-2.0.html" }; + const doc = serializeInput({ url: "https://www.apache.org/licenses/LICENSE-2.0.html" }); const d = new License(doc); expect(d.url()).toEqual(doc.url); }); it('should return undefined when there is no value', function() { - const doc = {}; + const doc = serializeInput({}); const d = new License(doc); expect(d.url()).toBeUndefined(); }); }); - describe('mixins inheritance', function() { - assertExtensionsMixinInheritance(License); + describe('mixins', function() { + assertExtensions(License); }); }); diff --git a/test/models/v2/message-example.spec.ts b/test/models/v2/message-example.spec.ts index bc41f171b..a4a39468a 100644 --- a/test/models/v2/message-example.spec.ts +++ b/test/models/v2/message-example.spec.ts @@ -1,8 +1,6 @@ import { MessageExample } from '../../../src/models/v2/message-example'; -import { - assertExtensionsMixinInheritance, -} from './mixins/inheritance'; +import { assertExtensions } from './utils'; describe('MessageExample model', function() { describe('.hasName()', function() { @@ -117,7 +115,7 @@ describe('MessageExample model', function() { }); }); - describe('mixins inheritance', function() { - assertExtensionsMixinInheritance(MessageExample); + describe('mixins', function() { + assertExtensions(MessageExample); }); }); diff --git a/test/models/v2/message-trait.spec.ts b/test/models/v2/message-trait.spec.ts index 14b236f92..6357f5aa3 100644 --- a/test/models/v2/message-trait.spec.ts +++ b/test/models/v2/message-trait.spec.ts @@ -4,13 +4,7 @@ import { MessageExample } from '../../../src/models/v2/message-example'; import { MessageTrait } from '../../../src/models/v2/message-trait'; import { Schema } from '../../../src/models/v2/schema'; -import { - assertBindingsMixinInheritance, - assertDescriptionMixinInheritance, - assertExtensionsMixinInheritance, - assertExternalDocumentationMixinInheritance, - assertTagsMixinInheritance, -} from './mixins/inheritance'; +import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; describe('MessageTrait model', function() { describe('.id()', function() { @@ -71,7 +65,7 @@ describe('MessageTrait model', function() { describe('.hasCorrelationId()', function() { it('should return true when there is a value', function() { - const doc = { correlationId: {} }; + const doc = { correlationId: { location: '...' } }; const d = new MessageTrait(doc); expect(d.hasCorrelationId()).toEqual(true); }); @@ -85,7 +79,7 @@ describe('MessageTrait model', function() { describe('.correlationId()', function() { it('should return the value', function() { - const doc = { correlationId: {} }; + const doc = { correlationId: { location: '...' } }; const d = new MessageTrait(doc); expect(d.correlationId()).toBeInstanceOf(CorrelationId); }); @@ -260,11 +254,11 @@ describe('MessageTrait model', function() { }); }); - describe('mixins inheritance', function() { - assertBindingsMixinInheritance(MessageTrait); - assertDescriptionMixinInheritance(MessageTrait); - assertExtensionsMixinInheritance(MessageTrait); - assertExternalDocumentationMixinInheritance(MessageTrait); - assertTagsMixinInheritance(MessageTrait); + describe('mixins', function() { + assertBindings(MessageTrait); + assertDescription(MessageTrait); + assertExtensions(MessageTrait); + assertExternalDocumentation(MessageTrait); + assertTags(MessageTrait); }); }); diff --git a/test/models/v2/message.spec.ts b/test/models/v2/message.spec.ts index dbe19266a..cb82189d1 100644 --- a/test/models/v2/message.spec.ts +++ b/test/models/v2/message.spec.ts @@ -9,13 +9,7 @@ import { Schema } from '../../../src/models/v2/schema'; import { Servers } from '../../../src/models/v2/servers'; import { Server } from '../../../src/models/v2/server'; -import { - assertBindingsMixinInheritance, - assertDescriptionMixinInheritance, - assertExtensionsMixinInheritance, - assertExternalDocumentationMixinInheritance, - assertTagsMixinInheritance, -} from './mixins/inheritance'; +import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; describe('Message model', function() { describe('.id()', function() { @@ -186,11 +180,11 @@ describe('Message model', function() { }); }); - describe('mixins inheritance', function() { - assertBindingsMixinInheritance(MessageTrait); - assertDescriptionMixinInheritance(MessageTrait); - assertExtensionsMixinInheritance(MessageTrait); - assertExternalDocumentationMixinInheritance(MessageTrait); - assertTagsMixinInheritance(MessageTrait); + describe('mixins', function() { + assertBindings(MessageTrait); + assertDescription(MessageTrait); + assertExtensions(MessageTrait); + assertExternalDocumentation(MessageTrait); + assertTags(MessageTrait); }); }); diff --git a/test/models/v2/mixins.spec.ts b/test/models/v2/mixins.spec.ts new file mode 100644 index 000000000..b7fa77736 --- /dev/null +++ b/test/models/v2/mixins.spec.ts @@ -0,0 +1,150 @@ +import { BaseModel } from '../../../src/models/base'; +import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from '../../../src/models/v2/mixins'; +import { BindingsV2, ExtensionsV2, ExternalDocumentationV2, TagsV2 } from '../../../src/models/v2'; + + +describe('mixins', function() { + describe('bindings', function() { + class Model extends BaseModel {}; + + const doc1 = { bindings: { amqp: { test: 'test1' } } }; + const doc2 = { bindings: {} }; + const doc3 = {}; + const d1 = new Model(doc1); + const d2 = new Model(doc2); + const d3 = new Model(doc3); + + it('should return a collection of bindings', function() { + expect(bindings(d1)).toBeInstanceOf(BindingsV2); + expect(bindings(d1).length).toEqual(1); + }); + + it('should return an empty object', function() { + expect(bindings(d2)).toBeInstanceOf(BindingsV2); + expect(bindings(d2).length).toEqual(0); + expect(bindings(d3)).toBeInstanceOf(BindingsV2); + expect(bindings(d3).length).toEqual(0); + }); + }); + + describe('hasDescription', function() { + class Model extends BaseModel {}; + + const doc1 = { description: 'Testing' }; + const doc2 = { description: '' }; + const doc3 = {}; + const d1 = new Model(doc1); + const d2 = new Model(doc2); + const d3 = new Model(doc3); + + it('should return a boolean indicating if the object has description', function() { + expect(hasDescription(d1)).toEqual(true); + expect(hasDescription(d2)).toEqual(false); + expect(hasDescription(d3)).toEqual(false); + }); + }); + + describe('description', function() { + class Model extends BaseModel {}; + + const doc1 = { description: 'Testing' }; + const doc2 = { description: '' }; + const doc3 = {}; + const d1 = new Model(doc1); + const d2 = new Model(doc2); + const d3 = new Model(doc3); + + it('should return a value', function() { + expect(description(d1)).toEqual(doc1.description); + expect(description(d2)).toEqual(''); + }); + + it('should return an undefined', function() { + expect(description(d3)).toEqual(undefined); + }); + }); + + describe('extensions', function() { + class Model extends BaseModel {}; + + const doc1 = { 'x-test': 'testing', test: 'testing' }; + const doc2 = { test: 'testing' }; + const doc3 = {}; + const d1 = new Model(doc1); + const d2 = new Model(doc2); + const d3 = new Model(doc3); + + it('should return a collection with extensions', function() { + expect(extensions(d1)).toBeInstanceOf(ExtensionsV2); + expect(extensions(d1).length).toEqual(1); + }); + + it('should return a empty object', function() { + expect(extensions(d2)).toBeInstanceOf(ExtensionsV2); + expect(extensions(d2).length).toEqual(0); + expect(extensions(d3)).toBeInstanceOf(ExtensionsV2); + expect(extensions(d3).length).toEqual(0); + }); + }); + + describe('hasExternalDocs', function() { + class Model extends BaseModel {}; + + const doc1 = { externalDocs: { url: 'test.com' } }; + const doc2 = { externalDocs: {} }; + const doc3 = {}; + const d1 = new Model(doc1); + const d2 = new Model(doc2); + const d3 = new Model(doc3); + + it('should return a boolean indicating if the object has externalDocs', function() { + expect(hasExternalDocs(d1)).toEqual(true); + expect(hasExternalDocs(d2)).toEqual(false); + expect(hasExternalDocs(d3)).toEqual(false); + }); + }); + + describe('externalDocs', function() { + class Model extends BaseModel {}; + + const doc1 = { externalDocs: { url: 'test.com' } }; + const doc2 = { externalDocs: {} }; + const doc3 = {}; + const d1 = new Model(doc1); + const d2 = new Model(doc2); + const d3 = new Model(doc3); + + it('should return a externalDocs object', function() { + expect(externalDocs(d1)).toBeInstanceOf(ExternalDocumentationV2); + expect(externalDocs(d1)!.json()).toEqual(doc1.externalDocs); + }); + + it('should return a undefined', function() { + expect(externalDocs(d2)).toEqual(undefined); + expect(externalDocs(d3)).toEqual(undefined); + }); + }); + + describe('tags', function() { + class Model extends BaseModel {}; + + const doc1 = { tags: [{ name: 'test1' }, { name: 'test2' }] }; + const doc2 = { tags: [] }; + const doc3 = {}; + const d1 = new Model(doc1); + const d2 = new Model(doc2); + const d3 = new Model(doc3); + + it('should return an array of tag objects', function() { + expect(tags(d1)).toBeInstanceOf(TagsV2); + expect(tags(d1).length).toEqual(2); + }); + + it('should return an empty array', function() { + expect(tags(d2)).toBeInstanceOf(TagsV2); + expect(tags(d2).length).toEqual(0); + expect(tags(d3)).toBeInstanceOf(TagsV2); + expect(tags(d3).length).toEqual(0); + }); + }); +}); diff --git a/test/models/v2/mixins/bindings.spec.ts b/test/models/v2/mixins/bindings.spec.ts deleted file mode 100644 index cb85bf53d..000000000 --- a/test/models/v2/mixins/bindings.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { BaseModel } from '../../../../src/models/base'; -import { Mixin } from '../../../../src/models/utils'; -import { BindingsMixin } from '../../../../src/models/v2/mixins/bindings'; - -describe('Bindings mixin', function() { - class Model extends Mixin(BaseModel, BindingsMixin) {}; - - const doc1 = { bindings: { amqp: { test: 'test1' } } }; - const doc2 = { bindings: {} }; - const doc3 = {}; - const d1 = new Model(doc1); - const d2 = new Model(doc2); - const d3 = new Model(doc3); - - describe('.bindings()', function() { - it('should return a collection of bindings', function() { - expect(d1.bindings().length).toEqual(1); - }); - - it('should return an empty object', function() { - expect(d2.bindings().length).toEqual(0); - expect(d3.bindings().length).toEqual(0); - }); - }); -}); \ No newline at end of file diff --git a/test/models/v2/mixins/description.spec.ts b/test/models/v2/mixins/description.spec.ts deleted file mode 100644 index 32ba29999..000000000 --- a/test/models/v2/mixins/description.spec.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { BaseModel } from '../../../../src/models/base'; -import { Mixin } from '../../../../src/models/utils'; -import { DescriptionMixin } from '../../../../src/models/v2/mixins/description'; - -describe('Description mixin', function() { - class Model extends Mixin(BaseModel, DescriptionMixin) {}; - - const doc1 = { description: 'Testing' }; - const doc2 = { description: '' }; - const doc3 = {}; - const d1 = new Model(doc1); - const d2 = new Model(doc2); - const d3 = new Model(doc3); - - describe('.hasDescription()', function() { - it('should return a boolean indicating if the object has description', function() { - expect(d1.hasDescription()).toEqual(true); - expect(d2.hasDescription()).toEqual(false); - expect(d3.hasDescription()).toEqual(false); - }); - }); - - describe('.description()', function() { - it('should return a value', function() { - expect(d1.description()).toEqual(doc1.description); - expect(d2.description()).toEqual(''); - }); - - it('should return an undefined', function() { - expect(d3.description()).toEqual(undefined); - }); - }); -}); \ No newline at end of file diff --git a/test/models/v2/mixins/extensions.spec.ts b/test/models/v2/mixins/extensions.spec.ts deleted file mode 100644 index 51e28ed15..000000000 --- a/test/models/v2/mixins/extensions.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { BaseModel } from '../../../../src/models/base'; -import { Mixin } from '../../../../src/models/utils'; -import { ExtensionsMixin } from '../../../../src/models/v2/mixins/extensions'; - -describe('Extensions mixin', function() { - class Model extends Mixin(BaseModel, ExtensionsMixin) {}; - - const doc1 = { 'x-test': 'testing', test: 'testing' }; - const doc2 = { test: 'testing' }; - const doc3 = {}; - const d1 = new Model(doc1); - const d2 = new Model(doc2); - const d3 = new Model(doc3); - - describe('.extensions()', function() { - it('should return a collection with extensions', function() { - expect(d1.extensions().length).toEqual(1); - }); - - it('should return a empty object', function() { - expect(d2.extensions().length).toEqual(0); - expect(d3.extensions().length).toEqual(0); - }); - }); -}); \ No newline at end of file diff --git a/test/models/v2/mixins/external-docs.spec.ts b/test/models/v2/mixins/external-docs.spec.ts deleted file mode 100644 index f9aac7bc9..000000000 --- a/test/models/v2/mixins/external-docs.spec.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { BaseModel } from '../../../../src/models/base'; -import { Mixin } from '../../../../src/models/utils'; -import { ExternalDocumentationV2 } from '../../../../src/models/v2'; -import { ExternalDocumentationMixin } from '../../../../src/models/v2/mixins/external-docs'; - -describe('ExternalDocs mixin', function() { - class Model extends Mixin(BaseModel, ExternalDocumentationMixin) {}; - - const doc1 = { externalDocs: { url: 'test.com' } }; - const doc2 = { externalDocs: {} }; - const doc3 = {}; - const d1 = new Model(doc1); - const d2 = new Model(doc2); - const d3 = new Model(doc3); - - describe('.hasExternalDocs()', function() { - it('should return a boolean indicating if the object has externalDocs', function() { - expect(d1.hasExternalDocs()).toEqual(true); - expect(d2.hasExternalDocs()).toEqual(false); - expect(d3.hasExternalDocs()).toEqual(false); - }); - }); - - describe('.externalDocs()', function() { - it('should return a externalDocs object', function() { - expect(d1.externalDocs()).toBeInstanceOf(ExternalDocumentationV2); - expect(d1.externalDocs()!.json()).toEqual(doc1.externalDocs); - }); - - it('should return a undefined', function() { - expect(d2.externalDocs()).toEqual(undefined); - expect(d3.externalDocs()).toEqual(undefined); - }); - }); -}); \ No newline at end of file diff --git a/test/models/v2/mixins/inheritance.ts b/test/models/v2/mixins/inheritance.ts deleted file mode 100644 index f0fa18333..000000000 --- a/test/models/v2/mixins/inheritance.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { BindingsMixin } from '../../../../src/models/v2/mixins/bindings'; -import { DescriptionMixin } from '../../../../src/models/v2/mixins/description'; -import { ExtensionsMixin } from '../../../../src/models/v2/mixins/extensions'; -import { ExternalDocumentationMixin } from '../../../../src/models/v2/mixins/external-docs'; -import { TagsMixin } from '../../../../src/models/v2/mixins/tags'; - -import type { Constructor } from '../../../../src/models/utils'; - -export function assertBindingsMixinInheritance(model: Constructor) { - describe('BindingsMixin inheritance', function() { - it(`check if ${model.name} model has inherited methods from BindingsMixin`, function() { - expect(model.prototype.bindings).not.toEqual(undefined); - expect(typeof model.prototype.bindings).toEqual('function'); - expect(model.prototype.bindings === BindingsMixin.prototype.bindings).toEqual(true); - }); - }); -} - -export function assertDescriptionMixinInheritance(model: Constructor) { - describe('DescriptionMixin inheritance', function() { - it(`check if ${model.name} model has inherited methods from DescriptionMixin`, function() { - expect(model.prototype.hasDescription).not.toEqual(undefined); - expect(typeof model.prototype.hasDescription).toEqual('function'); - expect(model.prototype.hasDescription === DescriptionMixin.prototype.hasDescription).toEqual(true); - - expect(model.prototype.description).not.toEqual(undefined); - expect(typeof model.prototype.description).toEqual('function'); - expect(model.prototype.description === DescriptionMixin.prototype.description).toEqual(true); - }); - }); -} - -export function assertExtensionsMixinInheritance(model: Constructor) { - describe('SpecificationExtensionsMixin inheritance', function() { - it(`check if ${model.name} model has inherited methods from ExtensionsMixin`, function() { - expect(model.prototype.extensions).not.toEqual(undefined); - expect(typeof model.prototype.extensions).toEqual('function'); - expect(model.prototype.extensions === ExtensionsMixin.prototype.extensions).toEqual(true); - }); - }); -} - -export function assertExternalDocumentationMixinInheritance(model: Constructor) { - describe('ExternalDocsMixin inheritance', function() { - it(`check if ${model.name} model has inherited methods from ExternalDocumentationMixin`, function() { - expect(model.prototype.hasExternalDocs).not.toEqual(undefined); - expect(typeof model.prototype.hasExternalDocs).toEqual('function'); - expect(model.prototype.hasExternalDocs === ExternalDocumentationMixin.prototype.hasExternalDocs).toEqual(true); - - expect(model.prototype.externalDocs).not.toEqual(undefined); - expect(typeof model.prototype.externalDocs).toEqual('function'); - expect(model.prototype.externalDocs === ExternalDocumentationMixin.prototype.externalDocs).toEqual(true); - }); - }); -} - -export function assertTagsMixinInheritance(model: Constructor) { - describe('TagsMixin inheritance', function() { - it(`check if ${model.name} model has inherited methods from TagsMixin`, function() { - expect(model.prototype.tags).not.toEqual(undefined); - expect(typeof model.prototype.tags).toEqual('function'); - expect(model.prototype.tags === TagsMixin.prototype.tags).toEqual(true); - }); - }); -} \ No newline at end of file diff --git a/test/models/v2/mixins/tags.spec.ts b/test/models/v2/mixins/tags.spec.ts deleted file mode 100644 index 29a658254..000000000 --- a/test/models/v2/mixins/tags.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { BaseModel } from '../../../../src/models/base'; -import { Mixin } from '../../../../src/models/utils'; -import { TagsMixin } from '../../../../src/models/v2/mixins/tags'; - -describe('Tags mixin', function() { - class Model extends Mixin(BaseModel, TagsMixin) {}; - - const doc1 = { tags: [{ name: 'test1' }, { name: 'test2' }] }; - const doc2 = { tags: [] }; - const doc3 = {}; - const d1 = new Model(doc1); - const d2 = new Model(doc2); - const d3 = new Model(doc3); - - describe('#tags()', function() { - it('should return an array of tag objects', function() { - expect(d1.tags().length).toEqual(2); - }); - - it('should return an empty array', function() { - expect(d2.tags().length).toEqual(0); - expect(d3.tags().length).toEqual(0); - }); - }); -}); \ No newline at end of file diff --git a/test/models/v2/oauth-flow.spec.ts b/test/models/v2/oauth-flow.spec.ts index 8435af1cb..a7d1ef339 100644 --- a/test/models/v2/oauth-flow.spec.ts +++ b/test/models/v2/oauth-flow.spec.ts @@ -1,5 +1,7 @@ import { OAuthFlow } from '../../../src/models/v2/oauth-flow'; +import type { v2 } from '../../../src/spec-types'; + const flowObject = { "authorizationUrl": "https://example.com/api/oauth/dialog", "scopes": { @@ -9,7 +11,7 @@ const flowObject = { } const flow = new OAuthFlow(flowObject); -const emptyObject = new OAuthFlow({}); +const emptyObject = new OAuthFlow({} as v2.OAuthFlowObject); describe('OAuth Flow', function(){ describe('.authorizationUrl()', function(){ diff --git a/test/models/v2/operation-trait.spec.ts b/test/models/v2/operation-trait.spec.ts index b30e1ebe1..9abfb7a9c 100644 --- a/test/models/v2/operation-trait.spec.ts +++ b/test/models/v2/operation-trait.spec.ts @@ -1,13 +1,7 @@ import { OperationTrait } from '../../../src/models/v2/operation-trait'; import { SecurityScheme } from '../../../src/models/v2/security-scheme'; -import { - assertBindingsMixinInheritance, - assertDescriptionMixinInheritance, - assertExtensionsMixinInheritance, - assertExternalDocumentationMixinInheritance, - assertTagsMixinInheritance, -} from './mixins/inheritance'; +import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; describe('OperationTrait model', function() { describe('.id()', function() { @@ -107,11 +101,11 @@ describe('OperationTrait model', function() { }); }); - describe('mixins inheritance', function() { - assertBindingsMixinInheritance(OperationTrait); - assertDescriptionMixinInheritance(OperationTrait); - assertExtensionsMixinInheritance(OperationTrait); - assertExternalDocumentationMixinInheritance(OperationTrait); - assertTagsMixinInheritance(OperationTrait); + describe('mixins', function() { + assertBindings(OperationTrait); + assertDescription(OperationTrait); + assertExtensions(OperationTrait); + assertExternalDocumentation(OperationTrait); + assertTags(OperationTrait); }); }); diff --git a/test/models/v2/operation.spec.ts b/test/models/v2/operation.spec.ts index 128bd9203..8e9303530 100644 --- a/test/models/v2/operation.spec.ts +++ b/test/models/v2/operation.spec.ts @@ -8,13 +8,7 @@ import { Message } from '../../../src/models/v2/message'; import { Servers } from '../../../src/models/v2/servers'; import { Server } from '../../../src/models/v2/server'; -import { - assertBindingsMixinInheritance, - assertDescriptionMixinInheritance, - assertExtensionsMixinInheritance, - assertExternalDocumentationMixinInheritance, - assertTagsMixinInheritance, -} from './mixins/inheritance'; +import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; describe('Operation model', function() { describe('.id()', function() { @@ -138,11 +132,11 @@ describe('Operation model', function() { }); }); - describe('mixins inheritance', function() { - assertBindingsMixinInheritance(Operation); - assertDescriptionMixinInheritance(Operation); - assertExtensionsMixinInheritance(Operation); - assertExternalDocumentationMixinInheritance(Operation); - assertTagsMixinInheritance(Operation); + describe('mixins', function() { + assertBindings(Operation); + assertDescription(Operation); + assertExtensions(Operation); + assertExternalDocumentation(Operation); + assertTags(Operation); }); }); diff --git a/test/models/v2/schema.spec.ts b/test/models/v2/schema.spec.ts index 8444c5490..cf1eac221 100644 --- a/test/models/v2/schema.spec.ts +++ b/test/models/v2/schema.spec.ts @@ -1,9 +1,8 @@ import { Schema } from '../../../src/models/v2/schema'; -import { - assertExtensionsMixinInheritance, - assertExternalDocumentationMixinInheritance, -} from './mixins/inheritance'; +import { assertExtensions, assertExternalDocumentation } from './utils'; + +import type { v2 } from '../../../src/spec-types'; describe('Channel model', function() { describe('.id()', function() { @@ -418,7 +417,7 @@ describe('Channel model', function() { describe('.isCircular()', function() { it('should return a true when schema has circular reference', function() { - const doc = { + const doc: v2.AsyncAPISchemaObject = { properties: { nonCircular: { type: 'string', @@ -426,7 +425,7 @@ describe('Channel model', function() { circular: {}, } }; - doc.properties.circular = doc; + doc.properties!.circular = doc; const d = new Schema(doc); expect(d.isCircular()).toEqual(false); expect((d.properties() as any)['nonCircular'].isCircular()).toEqual(false); @@ -750,13 +749,13 @@ describe('Channel model', function() { describe('.type()', function() { it('should return single type', function() { - const doc = { type: 'object' }; + const doc: v2.AsyncAPISchemaObject = { type: 'object' }; const d = new Schema(doc); expect(d.type()).toEqual(doc.type); }); it('should return array of type', function() { - const doc = { type: ['object', 'array'] }; + const doc: v2.AsyncAPISchemaObject = { type: ['object', 'array'] }; const d = new Schema(doc); expect(d.type()).toEqual(doc.type); }); @@ -796,8 +795,8 @@ describe('Channel model', function() { }); }); - describe('mixins inheritance', function() { - assertExtensionsMixinInheritance(Schema); - assertExternalDocumentationMixinInheritance(Schema); + describe('mixins', function() { + assertExtensions(Schema); + assertExternalDocumentation(Schema); }); }); diff --git a/test/models/v2/security-scheme.spec.ts b/test/models/v2/security-scheme.spec.ts index 9ccf6c230..887cc70e9 100644 --- a/test/models/v2/security-scheme.spec.ts +++ b/test/models/v2/security-scheme.spec.ts @@ -1,7 +1,9 @@ import { SecurityScheme } from '../../../src/models/v2/security-scheme'; -import {OAuthFlows} from '../../../src/models/v2/oauth-flows'; +import { OAuthFlows } from '../../../src/models/v2/oauth-flows'; -const doc1 = { +import type { v2 } from '../../../src/spec-types'; + +const doc1: v2.SecuritySchemeObject = { type: 'http', in: 'header', scheme: 'bearer', @@ -19,7 +21,7 @@ const doc1 = { } const sc1 = new SecurityScheme(doc1, { asyncapi: {} as any, pointer: '', id: 'api_key' }); -const emptyItem = new SecurityScheme({}); +const emptyItem = new SecurityScheme({ type: 'X509' }); describe('Security Scheme', function () { describe('.id()', function () { @@ -46,14 +48,14 @@ describe('Security Scheme', function () { describe('.in()', function () { it('should return in if present', function () { - expect(sc1.in()).toMatch(doc1.in); + expect(sc1.in()).toMatch(doc1.in as string); expect(emptyItem.in()).toBeUndefined(); }) }) describe('.openIdConnectUrl()', function () { it('should return openIdConnectUrl value', function () { - expect(sc1.openIdConnectUrl()).toMatch(doc1.openIdConnectUrl); + expect(sc1.openIdConnectUrl()).toMatch(doc1.openIdConnectUrl as string); }) }) describe('.flows()', function () { diff --git a/test/models/v2/server.spec.ts b/test/models/v2/server.spec.ts index 68c3681a4..514166022 100644 --- a/test/models/v2/server.spec.ts +++ b/test/models/v2/server.spec.ts @@ -8,11 +8,9 @@ import { Server } from '../../../src/models/v2/server'; import { ServerVariables } from '../../../src/models/v2/server-variables'; import { SecurityScheme } from '../../../src/models/v2/security-scheme'; -import { - assertBindingsMixinInheritance, - assertDescriptionMixinInheritance, - assertExtensionsMixinInheritance, -} from './mixins/inheritance'; +import { serializeInput, assertBindings, assertDescription, assertExtensions } from './utils'; + +import type { v2 } from '../../../src/spec-types'; const doc = { 'development': { @@ -28,7 +26,7 @@ const doc = { } }; const docItem = new Server(doc.development, { asyncapi: {} as any, pointer: '', id: 'development' }); -const emptyItem = new Server({}, { asyncapi: {} as any, pointer: '', id: '' }); +const emptyItem = new Server(serializeInput({}), { asyncapi: {} as any, pointer: '', id: '' }); describe('Server Model', function () { describe('.id()', function () { @@ -71,7 +69,7 @@ describe('Server Model', function () { describe('.channels()', function() { it('should return collection of channels - single channel', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Server(doc, { asyncapi: { parsed: { channels: { 'user/signup': {} } } } as any, pointer: '', id: 'production' }); expect(d.channels()).toBeInstanceOf(Channels); expect(d.channels().all()).toHaveLength(1); @@ -80,7 +78,7 @@ describe('Server Model', function () { }); it('should return collection of channels - multiple channels', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Server(doc, { asyncapi: { parsed: { channels: { 'user/signup': {}, 'user/logout': {} } } } as any, pointer: '', id: 'production' }); expect(d.channels()).toBeInstanceOf(Channels); expect(d.channels().all()).toHaveLength(2); @@ -91,7 +89,7 @@ describe('Server Model', function () { }); it('should return collection of channels - server available only in particular channel', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Server(doc, { asyncapi: { parsed: { channels: { 'user/signup': { servers: ['production'] }, 'user/logout': { servers: ['development'] }, 'user/create': {} } } } as any, pointer: '', id: 'production', }); expect(d.channels()).toBeInstanceOf(Channels); expect(d.channels().all()).toHaveLength(2); @@ -104,7 +102,7 @@ describe('Server Model', function () { describe('.operations()', function() { it('should return collection of operations - single channel', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Server(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { operationId: '1' } } } } } as any, pointer: '', id: 'production' }); expect(d.operations()).toBeInstanceOf(Operations); expect(d.operations().all()).toHaveLength(1); @@ -113,7 +111,7 @@ describe('Server Model', function () { }); it('should return collection of channels - multiple channels', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Server(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { operationId: '1' } }, 'user/logout': { subscribe: { operationId: '2' } } } } } as any, pointer: '', id: 'production' }); expect(d.operations()).toBeInstanceOf(Operations); expect(d.operations().all()).toHaveLength(2); @@ -124,7 +122,7 @@ describe('Server Model', function () { }); it('should return collection of channels - server available only in particular channel', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Server(doc, { asyncapi: { parsed: { channels: { 'user/signup': { servers: ['production'], publish: { operationId: '1' } }, 'user/logout': { servers: ['development'] }, 'user/create': { subscribe: { operationId: '3' }, publish: { operationId: '2' } } } } } as any, pointer: '', id: 'production', }); expect(d.operations()).toBeInstanceOf(Operations); expect(d.operations().all()).toHaveLength(3); @@ -139,7 +137,7 @@ describe('Server Model', function () { describe('.messages()', function() { it('should return collection of messages - single channel', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Server(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: { messageId: '1' } } } } } } as any, pointer: '', id: 'production' }); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(1); @@ -148,7 +146,7 @@ describe('Server Model', function () { }); it('should return collection of messages - multiple channels', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Server(doc, { asyncapi: { parsed: { channels: { 'user/signup': { publish: { message: { messageId: '1' } } }, 'user/logout': { subscribe: { message: { oneOf: [{ messageId: '2' }, { messageId: '3' }] } } } } } } as any, pointer: '', id: 'production' }); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(3); @@ -161,7 +159,7 @@ describe('Server Model', function () { }); it('should return collection of messages - server available only in particular channel', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Server(doc, { asyncapi: { parsed: { channels: { 'user/signup': { servers: ['production'], publish: { message: { messageId: '1' } } }, 'user/logout': { servers: ['development'] }, 'user/create': { subscribe: { message: { messageId: '3' } }, publish: { message: { messageId: '2' } } } } } } as any, pointer: '', id: 'production', }); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(3); @@ -182,7 +180,7 @@ describe('Server Model', function () { describe('.security()', function() { it('should return collection of security requirements', function() { - const doc = { security: [ { requirement: [] } ] }; + const doc = serializeInput({ security: [ { requirement: [] } ] }); const d = new Server(doc); expect(Array.isArray(d.security())).toEqual(true); expect(d.security()).toHaveLength(1); @@ -192,7 +190,7 @@ describe('Server Model', function () { }); it('should return collection of security requirements when value is undefined', function() { - const doc = {}; + const doc = serializeInput({}); const d = new Server(doc); expect(Array.isArray(d.security())).toEqual(true); expect(d.security()).toHaveLength(0); @@ -200,8 +198,8 @@ describe('Server Model', function () { }); describe('mixins inheritance', function () { - assertBindingsMixinInheritance(Server); - assertDescriptionMixinInheritance(Server); - assertExtensionsMixinInheritance(Server); + assertBindings(Server); + assertDescription(Server); + assertExtensions(Server); }); }) diff --git a/test/models/v2/tag.spec.ts b/test/models/v2/tag.spec.ts index 8bda373bc..344f23369 100644 --- a/test/models/v2/tag.spec.ts +++ b/test/models/v2/tag.spec.ts @@ -1,10 +1,6 @@ -import { Tag } from '../../../src/models/v2/mixins/tags'; +import { Tag } from '../../../src/models/v2/tag'; -import { - assertDescriptionMixinInheritance, - assertExtensionsMixinInheritance, - assertExternalDocumentationMixinInheritance -} from './mixins/inheritance'; +import { assertDescription, assertExtensions, assertExternalDocumentation } from './utils'; describe('Tag model', function() { describe('.name()', function() { @@ -16,8 +12,8 @@ describe('Tag model', function() { }); describe('mixins inheritance', function() { - assertDescriptionMixinInheritance(Tag); - assertExtensionsMixinInheritance(Tag); - assertExternalDocumentationMixinInheritance(Tag); + assertDescription(Tag); + assertExtensions(Tag); + assertExternalDocumentation(Tag); }); }); diff --git a/test/models/v2/tags.spec.ts b/test/models/v2/tags.spec.ts index b6b65807e..eb09f6edb 100644 --- a/test/models/v2/tags.spec.ts +++ b/test/models/v2/tags.spec.ts @@ -1,4 +1,5 @@ -import { Tags, Tag } from '../../../src/models/v2/mixins/tags'; +import { Tags } from '../../../src/models/v2/tags'; +import { Tag } from '../../../src/models/v2/tag'; const tag = { name: 'test', diff --git a/test/models/v2/utils.ts b/test/models/v2/utils.ts new file mode 100644 index 000000000..2ed63ef71 --- /dev/null +++ b/test/models/v2/utils.ts @@ -0,0 +1,150 @@ +import { BindingsV2, ExtensionsV2, ExternalDocumentationV2, TagsV2 } from '../../../src/models/v2'; + +import type { Constructor } from '../../../src/models/utils'; +import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from '../../../src/models/mixins'; + +type DeepPartial = T extends object ? { [P in keyof T]?: DeepPartial } : T; + +export function serializeInput(data: DeepPartial): T { + return data as T; +} + +export function assertBindings(model: Constructor) { + describe('.bindings()', function() { + const doc1 = { bindings: { amqp: { test: 'test1' } } }; + const doc2 = { bindings: {} }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a collection of bindings', function() { + expect(d1.bindings()).toBeInstanceOf(BindingsV2); + expect(d1.bindings().length).toEqual(1); + }); + + it('should return an empty object', function() { + expect(d2.bindings()).toBeInstanceOf(BindingsV2); + expect(d2.bindings().length).toEqual(0); + expect(d3.bindings()).toBeInstanceOf(BindingsV2); + expect(d3.bindings().length).toEqual(0); + }); + }); +} + +export function assertDescription(model: Constructor) { + describe('.hasDescription()', function() { + const doc1 = { description: 'Testing' }; + const doc2 = { description: '' }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a boolean indicating if the object has description', function() { + expect(d1.hasDescription()).toEqual(true); + expect(d2.hasDescription()).toEqual(false); + expect(d3.hasDescription()).toEqual(false); + }); + }); + + describe('.description()', function() { + const doc1 = { description: 'Testing' }; + const doc2 = { description: '' }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a value', function() { + expect(d1.description()).toEqual(doc1.description); + expect(d2.description()).toEqual(''); + }); + + it('should return an undefined', function() { + expect(d3.description()).toEqual(undefined); + }); + }); +} + +export function assertExtensions(model: Constructor) { + describe('.extensions()', function() { + const doc1 = { 'x-test': 'testing', test: 'testing' }; + const doc2 = { test: 'testing' }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a collection with extensions', function() { + expect(d1.extensions()).toBeInstanceOf(ExtensionsV2); + expect(d1.extensions().length).toEqual(1); + }); + + it('should return a empty object', function() { + expect(d2.extensions()).toBeInstanceOf(ExtensionsV2); + expect(d2.extensions().length).toEqual(0); + expect(d3.extensions()).toBeInstanceOf(ExtensionsV2); + expect(d3.extensions().length).toEqual(0); + }); + }); +} + +export function assertExternalDocumentation(model: Constructor) { + describe('.hasExternalDocs()', function() { + const doc1 = { externalDocs: { url: 'test.com' } }; + const doc2 = { externalDocs: {} }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a boolean indicating if the object has externalDocs', function() { + expect(d1.hasExternalDocs()).toEqual(true); + expect(d2.hasExternalDocs()).toEqual(false); + expect(d3.hasExternalDocs()).toEqual(false); + }); + }); + + describe('.externalDocs()', function() { + const doc1 = { externalDocs: { url: 'test.com' } }; + const doc2 = { externalDocs: {} }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return a externalDocs object', function() { + expect(d1.externalDocs()).toBeInstanceOf(ExternalDocumentationV2); + expect(d1.externalDocs()!.json()).toEqual(doc1.externalDocs); + }); + + it('should return a undefined', function() { + expect(d2.externalDocs()).toEqual(undefined); + expect(d3.externalDocs()).toEqual(undefined); + }); + }); +} + +export function assertTags(model: Constructor) { + describe('tags', function() { + const doc1 = { tags: [{ name: 'test1' }, { name: 'test2' }] }; + const doc2 = { tags: [] }; + const doc3 = {}; + const d1 = new model(doc1); + const d2 = new model(doc2); + const d3 = new model(doc3); + + it('should return an array of tag objects', function() { + expect(d1.tags()).toBeInstanceOf(TagsV2); + expect(d1.tags().length).toEqual(2); + }); + + it('should return an empty array', function() { + expect(d2.tags()).toBeInstanceOf(TagsV2); + expect(d2.tags().length).toEqual(0); + expect(d3.tags()).toBeInstanceOf(TagsV2); + expect(d3.tags().length).toEqual(0); + }); + }); +} \ No newline at end of file diff --git a/test/schema-parser/avro/avro-schema-parser.spec.ts b/test/schema-parser/avro/avro-schema-parser.spec.ts index 5d1b48257..f9c26015b 100644 --- a/test/schema-parser/avro/avro-schema-parser.spec.ts +++ b/test/schema-parser/avro/avro-schema-parser.spec.ts @@ -259,7 +259,7 @@ function toParseInput(raw: string): ParseSchemaInput { patch: 0 }, source: "", - parsed: {}, + parsed: {} as any, }, data: message.payload, meta: { diff --git a/test/schema-parser/openapi/openapi-schema-parser.spec.ts b/test/schema-parser/openapi/openapi-schema-parser.spec.ts index 62101227f..d1f1fa1a2 100644 --- a/test/schema-parser/openapi/openapi-schema-parser.spec.ts +++ b/test/schema-parser/openapi/openapi-schema-parser.spec.ts @@ -76,7 +76,7 @@ function toParseInput(raw: string): ParseSchemaInput | ValidateSchemaInput { patch: 0 }, source: "", - parsed: {}, + parsed: {} as any, }, data: message.payload, meta: { diff --git a/test/schema-parser/raml/raml-schema-parser.spec.ts b/test/schema-parser/raml/raml-schema-parser.spec.ts index 9479129a2..df3acbb9a 100644 --- a/test/schema-parser/raml/raml-schema-parser.spec.ts +++ b/test/schema-parser/raml/raml-schema-parser.spec.ts @@ -61,7 +61,7 @@ function toInput(raw: string): ParseSchemaInput | ValidateSchemaInput { patch: 0 }, source: "", - parsed: {}, + parsed: {} as any, }, path: ["otherchannel", "subscribe", "message", "payload"], data: message.payload, diff --git a/test/stringify.spec.ts b/test/stringify.spec.ts index 14c79eee9..ac052053d 100644 --- a/test/stringify.spec.ts +++ b/test/stringify.spec.ts @@ -33,7 +33,7 @@ describe('stringify & unstringify', function() { it('should stringify AsyncAPIDocument instance', function() { const doc = { asyncapi: '2.0.0' }; - const detailed = createDetailedAsyncAPI(doc, doc); + const detailed = createDetailedAsyncAPI(doc, doc as any); expect(typeof stringify(newAsyncAPIDocument(detailed))).toEqual('string'); }); }); diff --git a/test/utils.spec.ts b/test/utils.spec.ts index e5ebfdca3..7e5cbf5be 100644 --- a/test/utils.spec.ts +++ b/test/utils.spec.ts @@ -41,7 +41,7 @@ describe('utils', function() { it('AsyncAPIDocument instance should return AsyncAPIDocument instance', function() { const doc = { asyncapi: '2.0.0' }; - const detailed = createDetailedAsyncAPI(doc, doc); + const detailed = createDetailedAsyncAPI(doc, doc as any); expect(toAsyncAPIDocument(newAsyncAPIDocument(detailed))).toBeInstanceOf(AsyncAPIDocumentV2); }); @@ -77,7 +77,7 @@ describe('utils', function() { it('AsyncAPIDocument instance should be AsyncAPI document', function() { const doc = { asyncapi: '2.0.0' }; - const detailed = createDetailedAsyncAPI(doc, doc); + const detailed = createDetailedAsyncAPI(doc, doc as any); expect(isAsyncAPIDocument(newAsyncAPIDocument(detailed))).toEqual(true); }); }); @@ -101,13 +101,13 @@ describe('utils', function() { it('AsyncAPIDocument instance should not be parsed document', function() { const doc = { asyncapi: '2.0.0' }; - const detailed = createDetailedAsyncAPI(doc, doc); + const detailed = createDetailedAsyncAPI(doc, doc as any); expect(isParsedDocument(newAsyncAPIDocument(detailed))).toEqual(false); }); it('AsyncAPIDocument instance with proper extension should not be parsed document', function() { const doc = { asyncapi: '2.0.0', [xParserSpecParsed]: true }; - const detailed = createDetailedAsyncAPI(doc, doc); + const detailed = createDetailedAsyncAPI(doc, doc as any); expect(isParsedDocument(newAsyncAPIDocument(detailed))).toEqual(false); }); @@ -135,13 +135,13 @@ describe('utils', function() { it('AsyncAPIDocument instance should not be parsed document', function() { const doc = { asyncapi: '2.0.0' }; - const detailed = createDetailedAsyncAPI(doc, doc); + const detailed = createDetailedAsyncAPI(doc, doc as any); expect(isStringifiedDocument(newAsyncAPIDocument(detailed))).toEqual(false); }); it('AsyncAPIDocument instance with proper extension should not be parsed document', function() { const doc = { asyncapi: '2.0.0', [xParserSpecParsed]: true, [xParserSpecStringified]: true }; - const detailed = createDetailedAsyncAPI(doc, doc); + const detailed = createDetailedAsyncAPI(doc, doc as any); expect(isStringifiedDocument(newAsyncAPIDocument(detailed))).toEqual(false); }); @@ -238,7 +238,7 @@ describe('utils', function() { it('should create detailed object', function () { const source = "{ asyncapi: '2.1.37' }"; const parsed = { asyncapi: '2.1.37' }; - const detailed = createDetailedAsyncAPI(source, parsed); + const detailed = createDetailedAsyncAPI(source, parsed as any); expect(detailed.source).toEqual(source); expect(detailed.parsed).toEqual(parsed); expect(detailed.semver.version).toEqual('2.1.37'); From 8586d4b39c6349fbec69031e9ae9c782c1c9a170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Thu, 1 Sep 2022 10:26:26 +0200 Subject: [PATCH 032/126] refactor: add rule to check if AsyncAPI document is defined or not (#583) --- src/constants.ts | 6 ++ src/schema-parser/asyncapi-schema-parser.ts | 4 +- src/schema-parser/spectral-rule-v2.ts | 2 +- src/spectral.ts | 48 +++++++++++++- test/spectral.test.ts | 71 +++++++++++++++++++++ 5 files changed, 125 insertions(+), 6 deletions(-) create mode 100644 test/spectral.test.ts diff --git a/src/constants.ts b/src/constants.ts index 14c751d8a..668b139a6 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,3 +1,6 @@ +// @ts-ignore +import specs from '@asyncapi/specs'; + export const xParserSpecParsed = 'x-parser-spec-parsed'; export const xParserSpecStringified = 'x-parser-spec-stringified'; @@ -11,3 +14,6 @@ export const xParserOriginalTraits = 'x-parser-original-traits'; export const xParserCircular = 'x-parser-circular'; export const EXTENSION_REGEX = /^x-[\w\d\.\-\_]+$/; + +// Only >=2.0.0 versions are supported +export const specVersions = Object.keys(specs).filter((version: string) => !['1.0.0', '1.1.0', '1.2.0', '2.0.0-rc1', '2.0.0-rc2'].includes(version)); \ No newline at end of file diff --git a/src/schema-parser/asyncapi-schema-parser.ts b/src/schema-parser/asyncapi-schema-parser.ts index 0e520b040..60deeae78 100644 --- a/src/schema-parser/asyncapi-schema-parser.ts +++ b/src/schema-parser/asyncapi-schema-parser.ts @@ -2,6 +2,8 @@ import Ajv from "ajv"; // @ts-ignore import specs from '@asyncapi/specs'; +import { specVersions } from '../constants'; + import type { ErrorObject, ValidateFunction } from "ajv"; import type { AsyncAPISchema, SchemaValidateResult } from '../types'; import type { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from "../schema-parser"; @@ -11,8 +13,6 @@ const ajv = new Ajv({ strict: false, logger: false, }); -// Only versions compatible with JSON Schema Draf-07 are supported. -const specVersions = Object.keys(specs).filter((version: string) => !['1.0.0', '1.1.0', '1.2.0', '2.0.0-rc1', '2.0.0-rc2'].includes(version)); export function AsyncAPISchemaParser(): SchemaParser { return { diff --git a/src/schema-parser/spectral-rule-v2.ts b/src/schema-parser/spectral-rule-v2.ts index b4048edf0..5b514b989 100644 --- a/src/schema-parser/spectral-rule-v2.ts +++ b/src/schema-parser/spectral-rule-v2.ts @@ -10,7 +10,7 @@ import type { ValidateSchemaInput } from './index'; import type { SchemaValidateResult } from '../types'; import type { v2 } from '../spec-types'; -export function aas2schemaParserRule(parser: Parser): RuleDefinition { +export function asyncApi2SchemaParserRule(parser: Parser): RuleDefinition { return { description: 'Custom schema must be correctly formatted from the point of view of the used format.', formats: [aas2_0, aas2_1, aas2_2, aas2_3, aas2_4], diff --git a/src/spectral.ts b/src/spectral.ts index 52a81a508..a9d231a0d 100644 --- a/src/spectral.ts +++ b/src/spectral.ts @@ -1,9 +1,13 @@ -import { RulesetDefinition } from "@stoplight/spectral-core"; +import { createRulesetFunction } from '@stoplight/spectral-core'; import { asyncapi as aasRuleset } from "@stoplight/spectral-rulesets"; -import { aas2schemaParserRule } from './schema-parser/spectral-rule-v2'; +import { asyncApi2SchemaParserRule } from './schema-parser/spectral-rule-v2'; +import { specVersions } from './constants'; +import { isObject } from './utils'; +import type { RuleDefinition, RulesetDefinition } from "@stoplight/spectral-core"; import type { Parser } from "./parser"; +import type { MaybeAsyncAPI } from "./types"; export function configureSpectral(parser: Parser) { const ruleset = configureRuleset(parser); @@ -14,7 +18,8 @@ function configureRuleset(parser: Parser): RulesetDefinition { return { extends: [aasRuleset], rules: { - 'asyncapi-schemas-v2': aas2schemaParserRule(parser), + 'asyncapi-is-asyncapi': asyncApi2IsAsyncApi(), + 'asyncapi-schemas-v2': asyncApi2SchemaParserRule(parser), // We do not use these rules from the official ruleset due to the fact // that the given rules validate only AsyncAPI Schemas and prevent defining schemas in other formats 'asyncapi-payload-unsupported-schemaFormat': 'off', @@ -22,3 +27,40 @@ function configureRuleset(parser: Parser): RulesetDefinition { }, } as RulesetDefinition; } + +function asyncApi2IsAsyncApi(): RuleDefinition { + return { + description: 'The input must be a document with a supported version of AsyncAPI.', + formats: [(_: unknown) => true], // run rule for all inputs + message: '{{error}}', + severity: 'error', + type: 'validation', + recommended: true, + given: '$', + then: { + function: createRulesetFunction( + { + input: null, + options: null, + }, + function asyncApi2IsAsyncAPI(targetVal) { + if (!isObject(targetVal) || typeof targetVal.asyncapi !== 'string') { + return [ + { + message: 'This is not an AsyncAPI document. The "asyncapi" field as string is missing.', + path: [], + } + ]; + } else if (!specVersions.includes(targetVal.asyncapi)) { + return [ + { + message: `Version "${targetVal.asyncapi}" is not supported. Please use "${specVersions[specVersions.length - 1]}" (latest) version of the specification.`, + path: [], + } + ]; + } + } + ), + }, + } +} \ No newline at end of file diff --git a/test/spectral.test.ts b/test/spectral.test.ts new file mode 100644 index 000000000..a0c9116b7 --- /dev/null +++ b/test/spectral.test.ts @@ -0,0 +1,71 @@ +import { Parser } from '../src/parser'; +import { validate } from '../src/lint'; + +import { specVersions } from '../src/constants'; + +import type { ISpectralDiagnostic } from '@stoplight/spectral-core'; +import type { SchemaValidateResult } from '../src/types'; + +describe('Custom Spectral instance', function() { + const parser = new Parser(); + + describe('asyncapi-is-asyncapi Spectral rule', function() { + it('should throw error when input is not an AsyncAPI document (empty input case)', async function() { + const { diagnostics } = await validate(parser, ''); + + expect(diagnostics.length > 0).toEqual(true); + const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-is-asyncapi'); + + const expectedResult: SchemaValidateResult[] = [ + { + message: 'This is not an AsyncAPI document. The "asyncapi" field as string is missing.', + path: [] + }, + ]; + + expect(filteredDiagnostics).toEqual(expectedResult.map(e => expect.objectContaining(e))); + }); + + it('should throw error when input is not an AsyncAPI document (another spec case)', async function() { + const document = { + openapi: '3.0.0', + } + const { diagnostics } = await validate(parser, document as any); + + expect(diagnostics.length > 0).toEqual(true); + const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-is-asyncapi'); + + const expectedResult: SchemaValidateResult[] = [ + { + message: 'This is not an AsyncAPI document. The "asyncapi" field as string is missing.', + path: [] + }, + ]; + + expect(filteredDiagnostics).toEqual(expectedResult.map(e => expect.objectContaining(e))); + }); + + it('should throw error when input is an unsupported version of AsyncAPI', async function() { + const document = { + asyncapi: '2.1.37', + } + const { diagnostics } = await validate(parser, document as any); + + expect(diagnostics.length > 0).toEqual(true); + const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-is-asyncapi'); + + const expectedResult: SchemaValidateResult[] = [ + { + message: `Version "2.1.37" is not supported. Please use "${specVersions[specVersions.length - 1]}" (latest) version of the specification.`, + path: [] + }, + ]; + + expect(filteredDiagnostics).toEqual(expectedResult.map(e => expect.objectContaining(e))); + }); + }); +}); + +function filterDiagnostics(diagnostics: ISpectralDiagnostic[], code: string) { + return diagnostics.filter(d => d.code === code); +} \ No newline at end of file From 5753db49b1e5932cc1092830a155b68d340c3199 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Thu, 1 Sep 2022 14:04:49 +0200 Subject: [PATCH 033/126] refactor: adapt components to parser-api (#586) --- src/models/components.ts | 42 +++--- src/models/correlation-ids.ts | 4 + src/models/v2/channel.ts | 3 +- src/models/v2/components.ts | 104 +++++++++------ src/models/v2/correlation-ids.ts | 14 ++ test/models/v2/components.spec.ts | 204 ++++++++++++++++++------------ 6 files changed, 230 insertions(+), 141 deletions(-) create mode 100644 src/models/correlation-ids.ts create mode 100644 src/models/v2/correlation-ids.ts diff --git a/src/models/components.ts b/src/models/components.ts index 0da724b2d..ff57f4cbe 100644 --- a/src/models/components.ts +++ b/src/models/components.ts @@ -1,28 +1,30 @@ import type { BaseModel } from './base'; -import type { ServerInterface } from './server'; -import type { ChannelInterface } from './channel'; -import type { OperationTraitInterface } from './operation-trait'; -import type { MessageInterface } from './message'; -import type { MessageTraitInterface } from './message-trait'; -import type { SchemaInterface } from './schema'; -import type { ChannelParameterInterface } from './channel-parameter'; -import type { ServerVariableInterface } from './server-variable'; -import type { CorrelationIdInterface } from './correlation-id'; import type { BindingsInterface } from './bindings'; -import type { SecuritySchemeInterface } from './security-scheme'; import type { ExtensionsMixinInterface } from './mixins'; +import type { ServersInterface } from './servers'; +import type { ChannelsInterface } from './channels'; +import type { MessagesInterface } from './messages'; +import type { SchemasInterface } from './schemas'; +import type { ChannelParametersInterface } from './channel-parameters'; +import type { ServerVariablesInterface } from './server-variables'; +import type { OperationTraitsInterface } from './operation-traits'; +import type { MessageTraitsInterface } from './message-traits'; +import type { SecuritySchemesInterface } from './security-schemes'; +import type { CorrelationIdsInterface } from './correlation-ids'; +import type { OperationsInterface } from './operations'; export interface ComponentsInterface extends BaseModel, ExtensionsMixinInterface { - servers(): Record; - channels(): Record; - messages(): Record; - schemas(): Record; - channelParameters(): Record; - serverVariables(): Record; - operationTraits(): Record; - messageTraits(): Record; - correlationIds(): Record; - securitySchemes(): Record; + servers(): ServersInterface; + channels(): ChannelsInterface; + messages(): MessagesInterface; + schemas(): SchemasInterface; + channelParameters(): ChannelParametersInterface; + serverVariables(): ServerVariablesInterface; + operations(): OperationsInterface; + operationTraits(): OperationTraitsInterface; + messageTraits(): MessageTraitsInterface; + correlationIds(): CorrelationIdsInterface; + securitySchemes(): SecuritySchemesInterface; serverBindings(): Record; channelBindings(): Record; operationBindings(): Record; diff --git a/src/models/correlation-ids.ts b/src/models/correlation-ids.ts new file mode 100644 index 000000000..1c2db2c6b --- /dev/null +++ b/src/models/correlation-ids.ts @@ -0,0 +1,4 @@ +import type { Collection } from './collection'; +import type { CorrelationIdInterface } from './correlation-id'; + +export interface CorrelationIdsInterface extends Collection { } \ No newline at end of file diff --git a/src/models/v2/channel.ts b/src/models/v2/channel.ts index 28102db42..8b316f537 100644 --- a/src/models/v2/channel.ts +++ b/src/models/v2/channel.ts @@ -53,8 +53,9 @@ export class Channel extends BaseModel { + const id = this._json[operationAction as 'publish' | 'subscribe'] && (this._json[operationAction as 'publish' | 'subscribe'] as v2.OperationObject).operationId || this.meta().id + "_" + operationAction; this._json[operationAction as 'publish' | 'subscribe'] && operations.push( - this.createModel(Operation, this._json[operationAction as 'publish' | 'subscribe'], { id: operationAction, action: operationAction, pointer: `${this._meta.pointer}/${operationAction}` }), + this.createModel(Operation, this._json[operationAction as 'publish' | 'subscribe'], { id, action: operationAction, pointer: `${this._meta.pointer}/${operationAction}` }), ); }); return new Operations(operations); diff --git a/src/models/v2/components.ts b/src/models/v2/components.ts index e14b50f81..2ebe3c5f8 100644 --- a/src/models/v2/components.ts +++ b/src/models/v2/components.ts @@ -4,72 +4,94 @@ import { Binding } from "./binding"; import { Channel } from "./channel"; import { ChannelParameter } from "./channel-parameter"; import { CorrelationId } from "./correlation-id"; -import { Message } from "./message"; import { MessageTrait } from "./message-trait"; import { OperationTrait } from "./operation-trait"; import { Schema } from "./schema"; import { SecurityScheme } from "./security-scheme"; import { Server } from "./server"; import { ServerVariable } from "./server-variable"; - import { extensions } from './mixins'; - import type { BindingsInterface } from "../bindings"; import type { ComponentsInterface } from "../components"; -import type { ChannelInterface } from "../channel"; -import type { ChannelParameterInterface } from "../channel-parameter"; -import type { CorrelationIdInterface } from "../correlation-id"; import type { ExtensionsInterface } from "../extensions"; -import type { MessageInterface } from "../message"; -import type { MessageTraitInterface } from "../message-trait"; -import type { OperationTraitInterface } from "../operation-trait"; -import type { SchemaInterface } from "../schema"; -import type { SecuritySchemeInterface } from "../security-scheme"; -import type { ServerInterface } from "../server"; -import type { ServerVariableInterface } from "../server-variable"; import type { Constructor } from "../utils"; - +import type { ServersInterface } from "models/servers"; +import { Servers } from "./servers"; +import { Channels } from "./channels"; +import type { ChannelsInterface } from "models/channels"; +import type { MessagesInterface } from "models/messages"; +import type { SchemasInterface } from "models/schemas"; +import type { ChannelParametersInterface } from "models/channel-parameters"; +import type { ServerVariablesInterface } from "models/server-variables"; +import type { OperationTraitsInterface } from "models/operation-traits"; +import type { SecuritySchemesInterface } from "models/security-schemes"; +import { Messages } from "./messages"; +import { Schemas } from "./schemas"; +import { ChannelParameters } from "./channel-parameters"; +import { ServerVariables } from "./server-variables"; +import { OperationTraits } from "./operation-traits"; +import { MessageTraits } from "./message-traits"; +import type { MessageTraitsInterface } from "models/message-traits"; +import { SecuritySchemes } from "./security-schemes"; +import { Collection } from "models/collection"; +import { CorrelationIds } from "./correlation-ids"; +import { tilde } from '../../utils'; +import type { OperationsInterface } from "models/operations"; +import type { OperationInterface } from "models/operation"; +import { Operations } from "./operations"; +import { Message } from "./message"; import type { v2 } from "../../spec-types"; +import { ComponentsObject } from "spec-types/v2"; export class Components extends BaseModel implements ComponentsInterface { - servers(): Record { - return this.createMap('servers', Server); + servers(): ServersInterface { + return this.createCollection('servers', Servers, Server); + } + + channels(): ChannelsInterface { + return new Channels( + Object.entries(this._json.channels || {}).map(([channelAddress, channel]) => + this.createModel(Channel, channel, { id: channelAddress, pointer: `/components/channels/${tilde(channelAddress)}` }) + ) + ); } - channels(): Record { - return this.createMap('channels', Channel); + messages(): MessagesInterface { + return this.createCollection('messages', Messages, Message); } - messages(): Record { - return this.createMap('messages', Message); + schemas(): SchemasInterface { + return this.createCollection('schemas', Schemas, Schema); } - schemas(): Record { - return this.createMap('schemas', Schema); + channelParameters(): ChannelParametersInterface { + return this.createCollection('parameters', ChannelParameters, ChannelParameter); } - channelParameters(): Record { - return this.createMap('parameters', ChannelParameter); + serverVariables(): ServerVariablesInterface { + return this.createCollection('serverVariables', ServerVariables, ServerVariable); } - serverVariables(): Record { - return this.createMap('serverVariables', ServerVariable); + operations(): OperationsInterface { + const operations: OperationInterface[] = []; + this.channels().forEach(channel => operations.push(...channel.operations().all())); + return new Operations(operations); } - operationTraits(): Record { - return this.createMap('operationTraits', OperationTrait); + operationTraits(): OperationTraitsInterface { + return this.createCollection('operationTraits', OperationTraits, OperationTrait); } - messageTraits(): Record { - return this.createMap('messageTraits', MessageTrait); + messageTraits(): MessageTraitsInterface { + return this.createCollection('messageTraits', MessageTraits, MessageTrait); } - correlationIds(): Record { - return this.createMap('correlationIds', CorrelationId); + correlationIds(): CorrelationIds { + return this.createCollection('correlationIds', CorrelationIds, CorrelationId); } - securitySchemes(): Record { - return this.createMap('securitySchemes', SecurityScheme); + securitySchemes(): SecuritySchemesInterface { + return this.createCollection('securitySchemes', SecuritySchemes, SecurityScheme); } serverBindings(): Record { @@ -92,11 +114,13 @@ export class Components extends BaseModel implements Compon return extensions(this); } - protected createMap(itemsName: keyof v2.ComponentsObject, model: Constructor): Record { - return Object.entries(this._json[itemsName] || {}).reduce((items, [itemName, item]) => { - items[itemName] = this.createModel(model, item, { id: itemName, pointer: `/components/${itemsName}/${itemName}` }) - return items; - }, {} as Record); + protected createCollection, T extends BaseModel>(itemsName: keyof ComponentsObject, collectionModel: Constructor, itemModel: Constructor): M { + const collectionItems: T[] = []; + Object.entries(this._json[itemsName] || {}).forEach(([itemName, item]) => { + collectionItems.push(this.createModel(itemModel, item, { id: itemName, pointer: `/components/${itemsName}/${itemName}` })) + }); + + return new collectionModel(collectionItems); } protected createBindings(itemsName: 'serverBindings' | 'channelBindings' | 'operationBindings' | 'messageBindings'): Record { @@ -107,6 +131,6 @@ export class Components extends BaseModel implements Compon ) ); return bindings; - }, {} as Record); + }, {} as Record); } } diff --git a/src/models/v2/correlation-ids.ts b/src/models/v2/correlation-ids.ts new file mode 100644 index 000000000..9d73eccb3 --- /dev/null +++ b/src/models/v2/correlation-ids.ts @@ -0,0 +1,14 @@ +import { Collection } from '../collection'; + +import type { CorrelationIdsInterface } from '../correlation-ids'; +import type { CorrelationIdInterface } from '../correlation-id'; + +export class CorrelationIds extends Collection implements CorrelationIdsInterface { + override get(id: string): CorrelationIdInterface | undefined { + return this.collections.find(correlationId => correlationId.meta()["key"] === id); + } + + override has(id: string): boolean { + return this.collections.some(correlationId => correlationId.meta()["key"] === id); + } +} diff --git a/test/models/v2/components.spec.ts b/test/models/v2/components.spec.ts index c550f7a1f..760f01130 100644 --- a/test/models/v2/components.spec.ts +++ b/test/models/v2/components.spec.ts @@ -10,189 +10,222 @@ import { Schema } from '../../../src/models/v2/schema'; import { Server } from '../../../src/models/v2/server'; import { ServerVariable } from '../../../src/models/v2/server-variable'; import { SecurityScheme } from '../../../src/models/v2/security-scheme'; - +import { BaseModel, ModelMetadata } from '../../../src/models'; +import { Servers } from '../../../src/models/v2/servers'; +import { Channels } from '../../../src/models/v2/channels'; +import { Messages } from '../../../src/models/v2/messages'; +import { Collection } from '../../../src/models/collection'; +import { Constructor } from '../../../src/models/utils'; +import { Schemas } from '../../../src/models/v2/schemas'; +import { ChannelParameters } from '../../../src/models/v2/channel-parameters'; +import { ServerVariables } from '../../../src/models/v2/server-variables'; +import { OperationTraits } from '../../../src/models/v2/operation-traits'; +import { MessageTraits } from '../../../src/models/v2/message-traits'; +import { CorrelationIds } from '../../../src/models/v2/correlation-ids'; +import { SecuritySchemes } from '../../../src/models/v2/security-schemes'; +import { Operation } from '../../../src/models/v2/operation'; +import { Operations } from '../../../src/models/v2/operations'; +import { OperationAction } from '../../../src/models/operation'; import { serializeInput, assertExtensions } from './utils'; - import type { v2 } from '../../../src/spec-types'; +import { ChannelObject } from '../../../src/spec-types/v2'; describe('Components model', function() { describe('.servers()', function() { - it('should return map of servers', function() { + it('should return Servers with Server Object', function() { const doc = serializeInput({ servers: { server: {} } }); + const d = new Components(doc); - expect(typeof d.servers()).toEqual('object'); - expect(Object.keys(d.servers())).toHaveLength(1); - expect(d.servers()['server']).toBeInstanceOf(Server); + testCollection(doc, d.servers(), "servers", Servers, Server); }); - it('should return empty map when servers are not defined', function() { + it('should return Servers with empty server objects when servers are not defined', function() { const doc = serializeInput({}); const d = new Components(doc); - expect(typeof d.servers()).toEqual('object'); - expect(Object.keys(d.servers())).toHaveLength(0); + const items = d.servers(); + expect(items).toBeInstanceOf(Servers); + expect(items.all()).toHaveLength(0); }); }); describe('.channels()', function() { - it('should return map of channels', function() { + it('should return Channels with Channel Object', function() { const doc = serializeInput({ channels: { channel: {} } }); const d = new Components(doc); - expect(typeof d.channels()).toEqual('object'); - expect(Object.keys(d.channels())).toHaveLength(1); - expect(d.channels()['channel']).toBeInstanceOf(Channel); + const items = d.channels(); + expect(items).toBeInstanceOf(Channels); + expect(items.all()).toEqual([ + new Channel(doc.channels?.channel as ChannelObject, {id: "channel", pointer: "/components/channels/channel"} as ModelMetadata & { id: string, address: string } | undefined) + ]); }); - it('should return empty map when channels are not defined', function() { + + it('should return Channels with empty channel objects when channels are not defined', function() { const doc = serializeInput({}); const d = new Components(doc); - expect(typeof d.channels()).toEqual('object'); - expect(Object.keys(d.channels())).toHaveLength(0); + const items = d.channels(); + expect(items).toBeInstanceOf(Channels); + expect(items.all()).toHaveLength(0); }); }); describe('.messages()', function() { - it('should return map of messages', function() { + it('should return Messages with Message Object', function() { const doc = serializeInput({ messages: { message: {} } }); const d = new Components(doc); - expect(typeof d.messages()).toEqual('object'); - expect(Object.keys(d.messages())).toHaveLength(1); - expect(d.messages()['message']).toBeInstanceOf(Message); + testCollection(doc, d.messages(), "messages", Messages, Message); }); - it('should return empty map when messages are not defined', function() { + it('should return Messages with empty message objects when messages are not defined', function() { const doc = serializeInput({}); const d = new Components(doc); - expect(typeof d.messages()).toEqual('object'); - expect(Object.keys(d.messages())).toHaveLength(0); + const items = d.messages(); + expect(items).toBeInstanceOf(Messages); + expect(items.all()).toHaveLength(0); }); }); describe('.schemas()', function() { - it('should return map of schemas', function() { + it('should return Schemas with Schema Object', function() { const doc = serializeInput({ schemas: { schema: {} } }); const d = new Components(doc); - expect(typeof d.schemas()).toEqual('object'); - expect(Object.keys(d.schemas())).toHaveLength(1); - expect(d.schemas()['schema']).toBeInstanceOf(Schema); + testCollection(doc, d.schemas(), "schemas", Schemas, Schema); }); - it('should return empty map when schemas are not defined', function() { + it('should return Schemas with empty schema objects when schemas are not defined', function() { const doc = serializeInput({}); const d = new Components(doc); - expect(typeof d.schemas()).toEqual('object'); - expect(Object.keys(d.schemas())).toHaveLength(0); + const items = d.schemas(); + expect(items).toBeInstanceOf(Schemas); + expect(items.all()).toHaveLength(0); }); }); describe('.channelParameters()', function() { - it('should return map of channelParameters', function() { + it('should return ChannelParameters with ChannelParameter Object', function() { const doc = serializeInput({ parameters: { parameter: {} } }); const d = new Components(doc); - expect(typeof d.channelParameters()).toEqual('object'); - expect(Object.keys(d.channelParameters())).toHaveLength(1); - expect(d.channelParameters()['parameter']).toBeInstanceOf(ChannelParameter); + testCollection(doc, d.channelParameters(), "parameters", ChannelParameters, ChannelParameter); }); - it('should return empty map when channelParameters are not defined', function() { + it('should return Schemas with empty schema objects when schemas are not defined', function() { const doc = serializeInput({}); const d = new Components(doc); - expect(typeof d.channelParameters()).toEqual('object'); - expect(Object.keys(d.channelParameters())).toHaveLength(0); + const items = d.channelParameters(); + expect(items).toBeInstanceOf(ChannelParameters); + expect(items.all()).toHaveLength(0); }); }); describe('.serverVariables()', function() { - it('should return map of serverVariables', function() { + it('should return ServerVariables with ServerVariable Object', function() { const doc = serializeInput({ serverVariables: { variable: {} } }); const d = new Components(doc); - expect(typeof d.serverVariables()).toEqual('object'); - expect(Object.keys(d.serverVariables())).toHaveLength(1); - expect(d.serverVariables()['variable']).toBeInstanceOf(ServerVariable); + testCollection(doc, d.serverVariables(), "serverVariables", ServerVariables, ServerVariable); }); - it('should return empty map when serverVariables are not defined', function() { + it('should return ServerVariables with empty serverVariable objects when serverVariables are not defined', function() { const doc = serializeInput({}); const d = new Components(doc); - expect(typeof d.serverVariables()).toEqual('object'); - expect(Object.keys(d.serverVariables())).toHaveLength(0); + const items = d.serverVariables(); + expect(items).toBeInstanceOf(ServerVariables); + expect(items.all()).toHaveLength(0); }); }); describe('.operationTraits()', function() { - it('should return map of operationTraits', function() { + it('should return OperationTraits with OperationTrait Object', function() { const doc = serializeInput({ operationTraits: { trait: {} } }); const d = new Components(doc); - expect(typeof d.operationTraits()).toEqual('object'); - expect(Object.keys(d.operationTraits())).toHaveLength(1); - expect(d.operationTraits()['trait']).toBeInstanceOf(OperationTrait); + testCollection(doc, d.operationTraits(), "operationTraits", OperationTraits, OperationTrait); }); - it('should return empty map when operationTraits are not defined', function() { + it('should return OperationTraits with empty operationTrait objects when operationTraits are not defined', function() { const doc = serializeInput({}); const d = new Components(doc); - expect(typeof d.operationTraits()).toEqual('object'); - expect(Object.keys(d.operationTraits())).toHaveLength(0); + const items = d.operationTraits(); + expect(items).toBeInstanceOf(OperationTraits); + expect(items.all()).toHaveLength(0); }); }); describe('.messageTraits()', function() { - it('should return map of messageTraits', function() { + it('should return MessageTraits with MessageTrait Object', function() { const doc = serializeInput({ messageTraits: { trait: {} } }); const d = new Components(doc); - expect(typeof d.messageTraits()).toEqual('object'); - expect(Object.keys(d.messageTraits())).toHaveLength(1); - expect(d.messageTraits()['trait']).toBeInstanceOf(MessageTrait); + testCollection(doc, d.messageTraits(), "messageTraits", MessageTraits, MessageTrait); }); - it('should return empty map when messageTraits are not defined', function() { + it('should return MessageTraits with empty messageTrait objects when messageTraits are not defined', function() { const doc = serializeInput({}); const d = new Components(doc); - expect(typeof d.messageTraits()).toEqual('object'); - expect(Object.keys(d.messageTraits())).toHaveLength(0); + const items = d.messageTraits(); + expect(items).toBeInstanceOf(MessageTraits); + expect(items.all()).toHaveLength(0); }); }); describe('.correlationIds()', function() { - it('should return map of correlationIds', function() { + it('should return CorrelationIds with CorrelationId Object', function() { const doc = serializeInput({ correlationIds: { id: {} } }); const d = new Components(doc); - expect(typeof d.correlationIds()).toEqual('object'); - expect(Object.keys(d.correlationIds())).toHaveLength(1); - expect(d.correlationIds()['id']).toBeInstanceOf(CorrelationId); + testCollection(doc, d.correlationIds(), "correlationIds", CorrelationIds, CorrelationId); }); - it('should return empty map when correlationIds are not defined', function() { + it('should return CorrelationIds with empty correlationId objects when correlationIds are not defined', function() { const doc = serializeInput({}); const d = new Components(doc); - expect(typeof d.correlationIds()).toEqual('object'); - expect(Object.keys(d.correlationIds())).toHaveLength(0); + const items = d.correlationIds(); + expect(items).toBeInstanceOf(CorrelationIds); + expect(items.all()).toHaveLength(0); + }); + }); + + describe('.operations()', function() { + it('should return Operations with Operation Object', function() { + const doc = { channels: { channel: { publish: {} } } }; + const d = new Components(doc); + let expectedOperations: Operation[] = [ + new Operation({}, {action: "publish", id: "channel_publish", "pointer": "/components/channels/channel/publish"} as ModelMetadata & { id: string, action: OperationAction } ) + ]; + + const operations = d.operations(); + expect(operations).toBeInstanceOf(Operations); + expect(operations.all()).toEqual(expectedOperations); + }); + + it('should return Operations with empty operation objects when operations are not defined in channels', function() { + const doc = { channels: { channel: {} } }; + const d = new Components(doc); + const operations = d.operations(); + expect(operations).toBeInstanceOf(Operations); + expect(operations.all()).toHaveLength(0); }); }); describe('.securitySchemes()', function() { - it('should return map of securitySchemes', function() { + it('should return SecuritySchemes with SecurityScheme Object', function() { const doc = serializeInput({ securitySchemes: { scheme: {} } }); const d = new Components(doc); - expect(typeof d.securitySchemes()).toEqual('object'); - expect(Object.keys(d.securitySchemes())).toHaveLength(1); - expect(d.securitySchemes()['scheme']).toBeInstanceOf(SecurityScheme); + testCollection(doc, d.securitySchemes(), "securitySchemes", SecuritySchemes, SecurityScheme); }); - it('should return empty map when securitySchemes are not defined', function() { + it('should return SecuritySchemes with empty securityScheme objects when securitySchemes are not defined', function() { const doc = serializeInput({}); const d = new Components(doc); - expect(typeof d.securitySchemes()).toEqual('object'); - expect(Object.keys(d.securitySchemes())).toHaveLength(0); + const items = d.securitySchemes(); + expect(items).toBeInstanceOf(SecuritySchemes); + expect(items.all()).toHaveLength(0); }); }); describe('.serverBindings()', function() { it('should return map of serverBindings', function() { - const doc = serializeInput({ serverBindings: { bidning: {} } }); + const doc = serializeInput({ serverBindings: { binding: {} } }); const d = new Components(doc); expect(typeof d.serverBindings()).toEqual('object'); expect(Object.keys(d.serverBindings())).toHaveLength(1); - expect(d.serverBindings()['bidning']).toBeInstanceOf(Bindings); + expect(d.serverBindings()['binding']).toBeInstanceOf(Bindings); }); it('should return empty map when serverBindings are not defined', function() { @@ -205,11 +238,11 @@ describe('Components model', function() { describe('.channelBindings()', function() { it('should return map of channelBindings', function() { - const doc = serializeInput({ channelBindings: { bidning: {} } }); + const doc = serializeInput({ channelBindings: { binding: {} } }); const d = new Components(doc); expect(typeof d.channelBindings()).toEqual('object'); expect(Object.keys(d.channelBindings())).toHaveLength(1); - expect(d.channelBindings()['bidning']).toBeInstanceOf(Bindings); + expect(d.channelBindings()['binding']).toBeInstanceOf(Bindings); }); it('should return empty map when channelBindings are not defined', function() { @@ -222,11 +255,11 @@ describe('Components model', function() { describe('.operationBindings()', function() { it('should return map of operationBindings', function() { - const doc = serializeInput({ operationBindings: { bidning: {} } }); + const doc = serializeInput({ operationBindings: { binding: {} } }); const d = new Components(doc); expect(typeof d.operationBindings()).toEqual('object'); expect(Object.keys(d.operationBindings())).toHaveLength(1); - expect(d.operationBindings()['bidning']).toBeInstanceOf(Bindings); + expect(d.operationBindings()['binding']).toBeInstanceOf(Bindings); }); it('should return empty map when operationBindings are not defined', function() { @@ -239,11 +272,11 @@ describe('Components model', function() { describe('.messageBindings()', function() { it('should return map of messageBindings', function() { - const doc = serializeInput({ messageBindings: { bidning: {} } }); + const doc = serializeInput({ messageBindings: { binding: {} } }); const d = new Components(doc); expect(typeof d.messageBindings()).toEqual('object'); expect(Object.keys(d.messageBindings())).toHaveLength(1); - expect(d.messageBindings()['bidning']).toBeInstanceOf(Bindings); + expect(d.messageBindings()['binding']).toBeInstanceOf(Bindings); }); it('should return empty map when messageBindings are not defined', function() { @@ -254,7 +287,18 @@ describe('Components model', function() { }); }); + describe('mixins', function() { assertExtensions(Components); }); }); + +function testCollection, T extends BaseModel>(doc: any, items: M, componentName: string, collectionModel: Constructor, itemModel: Constructor) { + expect(items).toBeInstanceOf(collectionModel); + let expectedItems: T[] = []; + Object.entries((doc[componentName] as M)).forEach(([itemName, item]) => { + expectedItems.push(new itemModel(item, {id: itemName, pointer: `/components/${componentName}/${itemName}`})); + }); + + expect(items.all()).toEqual(expectedItems); +} \ No newline at end of file From 102c443c5204895e1f9c68d9d6101406cc381021 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Thu, 1 Sep 2022 15:54:10 +0200 Subject: [PATCH 034/126] refactor: add SecurityRequirement(s) models (#588) --- src/models/operation-trait.ts | 3 +- src/models/security-requirement.ts | 7 +++ src/models/security-requirements.ts | 4 ++ src/models/server.ts | 4 +- src/models/v2/operation-trait.ts | 20 ++++---- src/models/v2/security-requirement.ts | 15 ++++++ src/models/v2/security-requirements.ts | 14 ++++++ src/models/v2/server.ts | 20 ++++---- test/models/v2/operation-trait.spec.ts | 17 +++++-- test/models/v2/security-requirement.spec.ts | 26 +++++++++++ test/models/v2/security-requirements.spec.ts | 48 ++++++++++++++++++++ test/models/v2/server.spec.ts | 25 ++++++---- 12 files changed, 169 insertions(+), 34 deletions(-) create mode 100644 src/models/security-requirement.ts create mode 100644 src/models/security-requirements.ts create mode 100644 src/models/v2/security-requirement.ts create mode 100644 src/models/v2/security-requirements.ts create mode 100644 test/models/v2/security-requirement.spec.ts create mode 100644 test/models/v2/security-requirements.spec.ts diff --git a/src/models/operation-trait.ts b/src/models/operation-trait.ts index baeae0f32..e17bc79a2 100644 --- a/src/models/operation-trait.ts +++ b/src/models/operation-trait.ts @@ -2,6 +2,7 @@ import type { BaseModel } from "./base"; import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; import type { OperationAction } from "./operation"; import type { SecuritySchemeInterface } from "./security-scheme"; +import { SecurityRequirements } from "./v2/security-requirements"; export interface OperationTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { id(): string; @@ -10,5 +11,5 @@ export interface OperationTraitInterface extends BaseModel, BindingsMixinInterfa operationId(): string | undefined; hasSummary(): boolean; summary(): string | undefined; - security(): Array>; + security(): SecurityRequirements[]; } diff --git a/src/models/security-requirement.ts b/src/models/security-requirement.ts new file mode 100644 index 000000000..777e6c04f --- /dev/null +++ b/src/models/security-requirement.ts @@ -0,0 +1,7 @@ +import type { BaseModel } from "./base"; +import type { SecuritySchemeInterface } from "./security-scheme"; + +export interface SecurityRequirementInterface extends BaseModel { + scheme(): SecuritySchemeInterface + scopes(): string[]; +} diff --git a/src/models/security-requirements.ts b/src/models/security-requirements.ts new file mode 100644 index 000000000..3efc07283 --- /dev/null +++ b/src/models/security-requirements.ts @@ -0,0 +1,4 @@ +import type { Collection} from './collection'; +import type { SecurityRequirementInterface } from './security-requirement'; + +export interface SecurityRequirementsInterface extends Collection {} \ No newline at end of file diff --git a/src/models/server.ts b/src/models/server.ts index e8e302636..ccec3391a 100644 --- a/src/models/server.ts +++ b/src/models/server.ts @@ -4,7 +4,7 @@ import type { MessagesInterface } from './messages' import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; import type { OperationsInterface } from './operations' import type { ServerVariablesInterface } from "./server-variables"; -import type { SecuritySchemeInterface } from "./security-scheme"; +import type { SecurityRequirementsInterface } from "./security-requirements"; export interface ServerInterface extends BaseModel, DescriptionMixinInterface, BindingsMixinInterface, ExtensionsMixinInterface { id(): string @@ -16,5 +16,5 @@ export interface ServerInterface extends BaseModel, DescriptionMixinInterface, B operations(): OperationsInterface; messages(): MessagesInterface; variables(): ServerVariablesInterface; - security(): Array>; + security(): SecurityRequirementsInterface[]; } diff --git a/src/models/v2/operation-trait.ts b/src/models/v2/operation-trait.ts index 6a24b2e5d..c46a38a2c 100644 --- a/src/models/v2/operation-trait.ts +++ b/src/models/v2/operation-trait.ts @@ -12,6 +12,8 @@ import type { SecuritySchemeInterface } from "../security-scheme"; import type { TagsInterface } from "../tags"; import type { v2 } from "../../spec-types"; +import { SecurityRequirements } from "./security-requirements"; +import { SecurityRequirement } from "./security-requirement"; export class OperationTrait extends BaseModel implements OperationTraitInterface { id(): string { @@ -54,17 +56,17 @@ export class OperationTrait> { - const securitySchemes = this._meta.asyncapi?.parsed?.components?.securitySchemes || {}; - return (this._json.security || []).map((requirement: any) => { - const requirements: Record = {}; + security(): SecurityRequirements[] { + const securitySchemes = (this._meta?.asyncapi?.parsed?.components?.securitySchemes || {}) as Record; + return (this._json.security || []).map((requirement, index) => { + const requirements: SecurityRequirement[] = []; Object.entries(requirement).forEach(([security, scopes]) => { - requirements[security] = { - schema: this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }), - scopes: scopes as Array, - } + const scheme = this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }); + requirements.push( + this.createModel(SecurityRequirement, scopes, { id: security, scheme: scheme, pointer: `${this.meta().pointer}/security/${index}/${security}` }) + ); }); - return requirements; + return new SecurityRequirements(requirements); }) } diff --git a/src/models/v2/security-requirement.ts b/src/models/v2/security-requirement.ts new file mode 100644 index 000000000..4a47a97d8 --- /dev/null +++ b/src/models/v2/security-requirement.ts @@ -0,0 +1,15 @@ +import { BaseModel } from '../base'; +import type { SecuritySchemeInterface } from '../security-scheme'; +import type { v2 } from "../../spec-types"; +import { SecurityRequirementInterface } from 'models/security-requirement'; +import { SecurityScheme } from './security-scheme'; + +export class SecurityRequirement extends BaseModel<{}, { id: string, scheme: SecuritySchemeInterface }> implements SecurityRequirementInterface { + scheme(): SecuritySchemeInterface { + return this.meta().scheme; + } + + scopes() : string[] { + return this._json as string[]; + } +} \ No newline at end of file diff --git a/src/models/v2/security-requirements.ts b/src/models/v2/security-requirements.ts new file mode 100644 index 000000000..ee1ce0869 --- /dev/null +++ b/src/models/v2/security-requirements.ts @@ -0,0 +1,14 @@ +import { Collection } from '../collection'; + +import type { SecurityRequirementsInterface } from '../security-requirements'; +import type { SecurityRequirementInterface } from '../security-requirement'; + +export class SecurityRequirements extends Collection implements SecurityRequirementsInterface { + override get(id: string): SecurityRequirementInterface | undefined { + return this.collections.find(securityRequirement => securityRequirement.meta().id === id); + } + + override has(id: string): boolean { + return this.collections.some(securityRequirement => securityRequirement.meta().id === id); + } +} diff --git a/src/models/v2/server.ts b/src/models/v2/server.ts index 821f7c831..075fb89c0 100644 --- a/src/models/v2/server.ts +++ b/src/models/v2/server.ts @@ -23,6 +23,8 @@ import type { ExtensionsInterface } from '../extensions'; import type { BindingsInterface } from '../bindings'; import type { v2 } from "../../spec-types"; +import { SecurityRequirements } from './security-requirements'; +import { SecurityRequirement } from './security-requirement'; export class Server extends BaseModel implements ServerInterface { id(): string { @@ -89,17 +91,17 @@ export class Server extends BaseModel implement ); } - security(): Array> { - const securitySchemes = this._meta?.asyncapi?.parsed?.components?.securitySchemes || {}; - return (this._json.security || []).map((requirement: any) => { - const requirements: Record = {}; + security(): SecurityRequirements[] { + const securitySchemes = (this._meta?.asyncapi?.parsed?.components?.securitySchemes || {}) as Record; + return (this._json.security || []).map((requirement, index) => { + const requirements: SecurityRequirement[] = []; Object.entries(requirement).forEach(([security, scopes]) => { - requirements[security] = { - schema: this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }), - scopes: scopes as Array, - } + const scheme = this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }); + requirements.push( + this.createModel(SecurityRequirement, scopes, { id: security, scheme: scheme, pointer: `${this.meta().pointer}/security/${index}/${security}` }) + ); }); - return requirements; + return new SecurityRequirements(requirements); }) } diff --git a/test/models/v2/operation-trait.spec.ts b/test/models/v2/operation-trait.spec.ts index 9abfb7a9c..13785b7a2 100644 --- a/test/models/v2/operation-trait.spec.ts +++ b/test/models/v2/operation-trait.spec.ts @@ -1,4 +1,6 @@ import { OperationTrait } from '../../../src/models/v2/operation-trait'; +import { SecurityRequirement } from '../../../src/models/v2/security-requirement'; +import { SecurityRequirements } from '../../../src/models/v2/security-requirements'; import { SecurityScheme } from '../../../src/models/v2/security-scheme'; import { assertBindings, assertDescription, assertExtensions, assertExternalDocumentation, assertTags } from './utils'; @@ -86,11 +88,16 @@ describe('OperationTrait model', function() { it('should return collection of security requirements', function() { const doc = { security: [ { requirement: [] } ] }; const d = new OperationTrait(doc); - expect(Array.isArray(d.security())).toEqual(true); - expect(d.security()).toHaveLength(1); - expect(typeof d.security()[0]).toEqual('object'); - expect(d.security()[0]['requirement'].schema).toBeInstanceOf(SecurityScheme); - expect(d.security()[0]['requirement'].scopes).toEqual([]); + + const security = d.security(); + expect(Array.isArray(security)).toEqual(true); + expect(security).toHaveLength(1); + expect(security[0]).toBeInstanceOf(SecurityRequirements); + + const requirement = security[0].get('requirement') as SecurityRequirement; + expect(requirement).toBeInstanceOf(SecurityRequirement); + expect(requirement.scheme()).toBeInstanceOf(SecurityScheme); + expect(requirement.scopes()).toEqual([]); }); it('should return collection of security requirements when value is undefined', function() { diff --git a/test/models/v2/security-requirement.spec.ts b/test/models/v2/security-requirement.spec.ts new file mode 100644 index 000000000..f153ecc82 --- /dev/null +++ b/test/models/v2/security-requirement.spec.ts @@ -0,0 +1,26 @@ +import { ModelMetadata } from '../../../src/models/base'; +import { SecuritySchemeInterface } from '../../../src/models/security-scheme'; +import { SecurityRequirement } from '../../../src/models/v2/security-requirement' +import { SecurityScheme } from '../../../src/models/v2/security-scheme'; + +describe('SecurityRequirement model', function() { + describe('.scheme()', function() { + it('should return scheme', function() { + const doc = {}; + const expectedScheme = new SecurityScheme({type: "oauth2"}, {id: "test"} as any); + const d = new SecurityRequirement(doc, ({ id: "test", scheme: expectedScheme } as any)); // TODO Pointer + + expect(d.scheme()).toBeInstanceOf(SecurityScheme); + expect(d.scheme()).toEqual(expectedScheme); + }); + + }) + describe('.scopes()', function() { + it('should return scopes', function() { + const doc = ["scope_one"]; + const d = new SecurityRequirement(doc); // TODO Pointer + + expect(d.scopes()).toEqual(doc); + }); + }); +}); diff --git a/test/models/v2/security-requirements.spec.ts b/test/models/v2/security-requirements.spec.ts new file mode 100644 index 000000000..258b4bb4f --- /dev/null +++ b/test/models/v2/security-requirements.spec.ts @@ -0,0 +1,48 @@ +import { SecurityRequirements } from '../../../src/models/v2/security-requirements'; +import { Operation } from '../../../src/models/v2/operation'; +import { SecurityRequirement } from '../../../src/models/v2/security-requirement'; + +const operation = { + operationId: 'test', +}; +const operationItem = new Operation(operation, { asyncapi: {} as any, pointer: '', id: 'test', action: 'publish' }); + +const requirementItem = new SecurityRequirement({}, {id: "test"} as any); + +describe('SecurityRequirements model', function () { + describe('.isEmpty()', function () { + it('should return true if collection is empty', function () { + const requirements = new SecurityRequirements([]); + expect(requirements.isEmpty()).toEqual(true); + }); + + it('should return false if collection is not empty', function () { + const requirements = new SecurityRequirements([requirementItem]); + expect(requirements.isEmpty()).toEqual(false); + }); + }); + + describe('.get(id)', function () { + it('should return a specific SecurityRequirement if it is present', function () { + const requirements = new SecurityRequirements([requirementItem]); + expect(requirements.get('test')).toBeTruthy(); + }); + + it('should return undefined if specific SecurityRequirement is missing', function () { + const requirements = new SecurityRequirements([]); + expect(requirements.get('test')).toBeUndefined(); + }); + }); + + describe('.has(id)', function () { + it('should return true if the said id is available', function () { + const requirements = new SecurityRequirements([requirementItem]); + expect(requirements.has('test')).toEqual(true); + }) + + it('should return false if the SecurityRequirement id is missing', function () { + const requirements = new SecurityRequirements([requirementItem]); + expect(requirements.has('anotherId')).toEqual(false); + }) + }) +}) \ No newline at end of file diff --git a/test/models/v2/server.spec.ts b/test/models/v2/server.spec.ts index 514166022..e169bbd7b 100644 --- a/test/models/v2/server.spec.ts +++ b/test/models/v2/server.spec.ts @@ -11,6 +11,8 @@ import { SecurityScheme } from '../../../src/models/v2/security-scheme'; import { serializeInput, assertBindings, assertDescription, assertExtensions } from './utils'; import type { v2 } from '../../../src/spec-types'; +import { SecurityRequirements } from '../../../src/models/v2/security-requirements'; +import { SecurityRequirement } from '../../../src/models/v2/security-requirement'; const doc = { 'development': { @@ -179,17 +181,24 @@ describe('Server Model', function () { }) describe('.security()', function() { - it('should return collection of security requirements', function() { + it('should return SecurityRequirements', function() { const doc = serializeInput({ security: [ { requirement: [] } ] }); - const d = new Server(doc); - expect(Array.isArray(d.security())).toEqual(true); - expect(d.security()).toHaveLength(1); - expect(typeof d.security()[0]).toEqual('object'); - expect(d.security()[0]['requirement'].schema).toBeInstanceOf(SecurityScheme); - expect(d.security()[0]['requirement'].scopes).toEqual([]); + const d = new Server(doc, {pointer: "/servers/test"} as any); + + const security = d.security(); + expect(Array.isArray(security)).toEqual(true); + expect(security).toHaveLength(1); + expect(security[0]).toBeInstanceOf(SecurityRequirements); + + const requirement = security[0].get('requirement') as SecurityRequirement; + expect(requirement).toBeInstanceOf(SecurityRequirement); + expect(requirement.scheme()).toBeInstanceOf(SecurityScheme); + expect(requirement.scopes()).toEqual([]); + expect(requirement.meta().id).toEqual("requirement"); + expect(requirement.meta().pointer).toEqual("/servers/test/security/0/requirement"); }); - it('should return collection of security requirements when value is undefined', function() { + it('should return SecurityRequirements when value is undefined', function() { const doc = serializeInput({}); const d = new Server(doc); expect(Array.isArray(d.security())).toEqual(true); From 1780d4364d047ee235bde7b94d409b4ba45fda5b Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Mon, 5 Sep 2022 17:07:23 +0200 Subject: [PATCH 035/126] refactor: simplify operation traits based on parser-api (#590) --- src/models/operation-trait.ts | 3 --- src/models/operation.ts | 3 +++ src/models/v2/operation-trait.ts | 8 ++++++ test/models/v2/operation-trait.spec.ts | 8 ------ test/models/v2/operation.spec.ts | 36 ++++++++++++++++++++++++++ 5 files changed, 47 insertions(+), 11 deletions(-) diff --git a/src/models/operation-trait.ts b/src/models/operation-trait.ts index e17bc79a2..2f4dd27da 100644 --- a/src/models/operation-trait.ts +++ b/src/models/operation-trait.ts @@ -1,12 +1,9 @@ import type { BaseModel } from "./base"; import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; -import type { OperationAction } from "./operation"; -import type { SecuritySchemeInterface } from "./security-scheme"; import { SecurityRequirements } from "./v2/security-requirements"; export interface OperationTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { id(): string; - action(): OperationAction; hasOperationId(): boolean; operationId(): string | undefined; hasSummary(): boolean; diff --git a/src/models/operation.ts b/src/models/operation.ts index c72c38af4..6f91de2a8 100644 --- a/src/models/operation.ts +++ b/src/models/operation.ts @@ -8,6 +8,9 @@ import type { ServersInterface } from "./servers"; export type OperationAction = 'send' | 'receive' | 'publish' | 'subscribe'; export interface OperationInterface extends BaseModel, OperationTraitInterface { + action(): OperationAction; + isSend(): boolean; + isReceive(): boolean; servers(): ServersInterface; channels(): ChannelsInterface; messages(): MessagesInterface; diff --git a/src/models/v2/operation-trait.ts b/src/models/v2/operation-trait.ts index c46a38a2c..cc3ab6f41 100644 --- a/src/models/v2/operation-trait.ts +++ b/src/models/v2/operation-trait.ts @@ -52,6 +52,14 @@ export class OperationTrait Date: Tue, 6 Sep 2022 09:22:46 +0200 Subject: [PATCH 036/126] refactor: add filters to some collections (#592) --- src/models/channels.ts | 5 ++- src/models/collection.ts | 4 ++ src/models/messages.ts | 5 ++- src/models/operations.ts | 5 ++- src/models/servers.ts | 5 ++- src/models/v2/channels.ts | 8 ++++ src/models/v2/messages.ts | 8 ++++ src/models/v2/operations.ts | 8 ++++ src/models/v2/servers.ts | 8 ++++ test/models/collection.spec.ts | 24 ++++++++++++ test/models/v2/channels.spec.ts | 30 ++++++++++++++ test/models/v2/messages.spec.ts | 65 +++++++++++++++++++++++-------- test/models/v2/operations.spec.ts | 54 +++++++++++++++++++------ test/models/v2/servers.spec.ts | 46 ++++++++++++++++++++++ 14 files changed, 243 insertions(+), 32 deletions(-) diff --git a/src/models/channels.ts b/src/models/channels.ts index 7383d16e0..970710ff0 100644 --- a/src/models/channels.ts +++ b/src/models/channels.ts @@ -1,4 +1,7 @@ import type { Collection } from "./collection"; import type { ChannelInterface } from "./channel"; -export interface ChannelsInterface extends Collection {} \ No newline at end of file +export interface ChannelsInterface extends Collection { + filterBySend(): ChannelInterface[]; + filterByReceive(): ChannelInterface[]; +} \ No newline at end of file diff --git a/src/models/collection.ts b/src/models/collection.ts index 05c83c6ab..efc8a344b 100644 --- a/src/models/collection.ts +++ b/src/models/collection.ts @@ -17,4 +17,8 @@ export abstract class Collection> extends isEmpty(): boolean { return this.collections.length === 0; } + + filterBy(filter: (item: T) => boolean): T[] { + return this.collections.filter(filter); + } } diff --git a/src/models/messages.ts b/src/models/messages.ts index c48a45dab..951dfab59 100644 --- a/src/models/messages.ts +++ b/src/models/messages.ts @@ -1,4 +1,7 @@ import type { Collection } from "./collection"; import type { MessageInterface } from "./message"; -export interface MessagesInterface extends Collection {} \ No newline at end of file +export interface MessagesInterface extends Collection { + filterBySend(): MessageInterface[]; + filterByReceive(): MessageInterface[]; +} \ No newline at end of file diff --git a/src/models/operations.ts b/src/models/operations.ts index 199e19e85..bd88b6780 100644 --- a/src/models/operations.ts +++ b/src/models/operations.ts @@ -1,4 +1,7 @@ import type { Collection } from "./collection"; import type { OperationInterface } from "./operation"; -export interface OperationsInterface extends Collection {} \ No newline at end of file +export interface OperationsInterface extends Collection { + filterBySend(): OperationInterface[]; + filterByReceive(): OperationInterface[]; +} diff --git a/src/models/servers.ts b/src/models/servers.ts index 23b9a33e3..0a51ce2d7 100644 --- a/src/models/servers.ts +++ b/src/models/servers.ts @@ -1,4 +1,7 @@ import type { Collection } from "./collection"; import type { ServerInterface } from "./server"; -export interface ServersInterface extends Collection {} \ No newline at end of file +export interface ServersInterface extends Collection { + filterBySend(): ServerInterface[]; + filterByReceive(): ServerInterface[]; +} diff --git a/src/models/v2/channels.ts b/src/models/v2/channels.ts index 8a3520197..9e17583b8 100644 --- a/src/models/v2/channels.ts +++ b/src/models/v2/channels.ts @@ -11,4 +11,12 @@ export class Channels extends Collection implements ChannelsIn override has(id: string): boolean { return this.collections.some(channel => channel.id() === id); } + + filterBySend(): ChannelInterface[] { + return this.filterBy(channel => channel.operations().filterBySend().length > 0); + } + + filterByReceive(): ChannelInterface[] { + return this.filterBy(channel => channel.operations().filterByReceive().length > 0); + } } diff --git a/src/models/v2/messages.ts b/src/models/v2/messages.ts index 4bb9e305f..65fd7dca8 100644 --- a/src/models/v2/messages.ts +++ b/src/models/v2/messages.ts @@ -11,4 +11,12 @@ export class Messages extends Collection implements MessagesIn override has(id: string): boolean { return this.collections.some(message => message.id() === id); } + + filterBySend(): MessageInterface[] { + return this.filterBy(message => message.operations().filterBySend().length > 0); + } + + filterByReceive(): MessageInterface[] { + return this.filterBy(message => message.operations().filterByReceive().length > 0); + } } diff --git a/src/models/v2/operations.ts b/src/models/v2/operations.ts index d67d0608b..5642fb2f1 100644 --- a/src/models/v2/operations.ts +++ b/src/models/v2/operations.ts @@ -11,4 +11,12 @@ export class Operations extends Collection implements Operat override has(id: string): boolean { return this.collections.some(operation => operation.id() === id); } + + filterBySend(): OperationInterface[] { + return this.filterBy(operation => operation.isSend()); + } + + filterByReceive(): OperationInterface[] { + return this.filterBy(operation => operation.isReceive()); + } } diff --git a/src/models/v2/servers.ts b/src/models/v2/servers.ts index 68da626c9..0f805137e 100644 --- a/src/models/v2/servers.ts +++ b/src/models/v2/servers.ts @@ -10,4 +10,12 @@ export class Servers extends Collection implements ServersInter override has(id: string): boolean { return this.collections.some(server => server.id() === id); } + + filterBySend(): ServerInterface[] { + return this.filterBy(server => server.operations().filterBySend().length > 0); + } + + filterByReceive(): ServerInterface[] { + return this.filterBy(server => server.operations().filterByReceive().length > 0); + } } diff --git a/test/models/collection.spec.ts b/test/models/collection.spec.ts index f3a5e45bd..8064ff6a1 100644 --- a/test/models/collection.spec.ts +++ b/test/models/collection.spec.ts @@ -76,4 +76,28 @@ describe('Collection model', function() { expect(d.get('name1')).toEqual(undefined); }); }); + + describe('.filterBy()', function() { + it('should return array of ItemModel if filter function matches', function() { + const doc = { name: 'name' }; + const item = new ItemModel(doc); + const d = new Model([item]); + + const filter = function (_: ItemModel): boolean { + return true; + } + expect(d.filterBy(filter)).toEqual([item]); + }); + + it('should return empty array of ItemModel if filter function does not match', function() { + const doc = { name: 'name' }; + const item = new ItemModel(doc); + const d = new Model([item]); + + const filter = function (_: ItemModel): boolean { + return false; + } + expect(d.filterBy(filter)).toEqual([]); + }); + }); }); diff --git a/test/models/v2/channels.spec.ts b/test/models/v2/channels.spec.ts index fa525b3ee..d79a634ae 100644 --- a/test/models/v2/channels.spec.ts +++ b/test/models/v2/channels.spec.ts @@ -5,6 +5,12 @@ const channel = { publish: {}, }; const channelItem = new Channel(channel, { asyncapi: {} as any, pointer: '', id: 'channel', address: '' }); +const channelItems = [ + new Channel({ publish: {operationId: 'test1'} }, { asyncapi: {} as any, pointer: '', id: 'channel1', address: '' }), + new Channel({ publish: {operationId: 'test2'} }, { asyncapi: {} as any, pointer: '', id: 'channel2', address: '' }), + new Channel({ subscribe: {operationId: 'test3'} }, { asyncapi: {} as any, pointer: '', id: 'channel3', address: '' }), + new Channel({ subscribe: {operationId: 'test4'} }, { asyncapi: {} as any, pointer: '', id: 'channel4', address: '' }), +]; describe('Channels model', function () { describe('.isEmpty()', function () { @@ -42,4 +48,28 @@ describe('Channels model', function () { expect(servers.has('anotherName')).toEqual(false); }) }) + + describe('.filterBySend()', function () { + it('should return all channels with subscribe operation', function () { + const operations = new Channels(channelItems); + expect(operations.filterBySend()).toEqual([channelItems[2], channelItems[3]]); + }) + + it('should return empty if there are no channels with operations with subscribe action', function () { + const operations = new Channels([channelItems[0], channelItems[1]]); + expect(operations.filterBySend()).toEqual([]); + }) + }) + + describe('.filterByReceive()', function () { + it('should return all channels with publish operation', function () { + const operations = new Channels(channelItems); + expect(operations.filterByReceive()).toEqual([channelItems[0], channelItems[1]]); + }) + + it('should return empty if there are no channels with operations with publish action', function () { + const operations = new Channels([channelItems[2], channelItems[3]]); + expect(operations.filterByReceive()).toEqual([]); + }) + }) }) \ No newline at end of file diff --git a/test/models/v2/messages.spec.ts b/test/models/v2/messages.spec.ts index 95cb35f77..fd15720cf 100644 --- a/test/models/v2/messages.spec.ts +++ b/test/models/v2/messages.spec.ts @@ -1,45 +1,78 @@ import { Messages } from '../../../src/models/v2/messages'; import { Message } from '../../../src/models/v2/message'; -const message = { - messageId: 'test', -}; -const messageItem = new Message(message, { asyncapi: {} as any, pointer: '', id: 'test' }); +const messages = { + test1: { messageId: 'test1' }, + test2: { messageId: 'test2' }, + test3: { messageId: 'test3' }, + test4: { messageId: 'test4' }, +} + +const messageItems = [ + new Message(messages.test1, { asyncapi: { parsed: { channels: { test1: { publish: { operationId: "test1", message: messages.test1 } } } } } as any, pointer: '', id: 'test1' }), + new Message(messages.test2, { asyncapi: { parsed: { channels: { test2: { publish: { operationId: "test2", message: messages.test2 } } } } } as any, pointer: '', id: 'test2' }), + new Message(messages.test3, { asyncapi: { parsed: { channels: { test3: { subscribe: { operationId: "test3", message: messages.test3 } } } } } as any, pointer: '', id: 'test3' }), + new Message(messages.test4, { asyncapi: { parsed: { channels: { test4: { subscribe: { operationId: "test4", message: messages.test4 } } } } } as any, pointer: '', id: 'test4' }), +]; describe('Messages model', function () { describe('.isEmpty()', function () { it('should return true if collection is empty', function () { - const servers = new Messages([]); - expect(servers.isEmpty()).toEqual(true); + const messages = new Messages([]); + expect(messages.isEmpty()).toEqual(true); }); it('should return false if collection is not empty', function () { - const servers = new Messages([messageItem]); - expect(servers.isEmpty()).toEqual(false); + const messages = new Messages([messageItems[0]]); + expect(messages.isEmpty()).toEqual(false); }); }); describe('.get(id)', function () { it('should return a specific Message if it is present', function () { - const servers = new Messages([messageItem]); - expect(servers.get('test')).toBeTruthy(); + const messages = new Messages([messageItems[0]]); + expect(messages.get('test1')).toBeTruthy(); }); it('should return undefined if specific Message is missing', function () { - const servers = new Messages([]); - expect(servers.get('test')).toBeUndefined(); + const messages = new Messages([]); + expect(messages.get('test1')).toBeUndefined(); }); }); describe('.has(id)', function () { it('should return true if the said id is available', function () { - const servers = new Messages([messageItem]); - expect(servers.has('test')).toEqual(true); + const messages = new Messages([messageItems[0]]); + expect(messages.has('test1')).toEqual(true); }) it('should return false if the Message id is missing', function () { - const servers = new Messages([messageItem]); - expect(servers.has('anotherId')).toEqual(false); + const messages = new Messages([messageItems[0]]); + expect(messages.has('anotherId')).toEqual(false); + }) + }) + + describe('.filterBySend()', function () { + it('should return all messages in channels with subscribe operation', function () { + const messages = new Messages(messageItems); + expect(messages.filterBySend()).toEqual([messageItems[2], messageItems[3]]); + }) + + it('should return empty if there are no messages in channels with operations with subscribe action', function () { + const messages = new Messages([messageItems[0], messageItems[1]]); + expect(messages.filterBySend()).toEqual([]); + }) + }) + + describe('.filterByReceive()', function () { + it('should return all messages in channels with publish operation', function () { + const messages = new Messages(messageItems); + expect(messages.filterByReceive()).toEqual([messageItems[0], messageItems[1]]); + }) + + it('should return empty if there are no messages in channels with operations with publish action', function () { + const messages = new Messages([messageItems[2], messageItems[3]]); + expect(messages.filterByReceive()).toEqual([]); }) }) }) \ No newline at end of file diff --git a/test/models/v2/operations.spec.ts b/test/models/v2/operations.spec.ts index 34ea61b5a..a99ae4b56 100644 --- a/test/models/v2/operations.spec.ts +++ b/test/models/v2/operations.spec.ts @@ -5,41 +5,71 @@ const operation = { operationId: 'test', }; const operationItem = new Operation(operation, { asyncapi: {} as any, pointer: '', id: 'test', action: 'publish' }); +const operationItems = [ + new Operation({operationId: 'test1'}, { asyncapi: {} as any, pointer: '', id: 'test1', action: 'publish' }), + new Operation({operationId: 'test2'}, { asyncapi: {} as any, pointer: '', id: 'test2', action: 'publish' }), + new Operation({operationId: 'test3'}, { asyncapi: {} as any, pointer: '', id: 'test3', action: 'subscribe' }), + new Operation({operationId: 'test4'}, { asyncapi: {} as any, pointer: '', id: 'test4', action: 'subscribe' }), +]; describe('Operations model', function () { describe('.isEmpty()', function () { it('should return true if collection is empty', function () { - const servers = new Operations([]); - expect(servers.isEmpty()).toEqual(true); + const operations = new Operations([]); + expect(operations.isEmpty()).toEqual(true); }); it('should return false if collection is not empty', function () { - const servers = new Operations([operationItem]); - expect(servers.isEmpty()).toEqual(false); + const operations = new Operations([operationItem]); + expect(operations.isEmpty()).toEqual(false); }); }); describe('.get(id)', function () { it('should return a specific Operation if it is present', function () { - const servers = new Operations([operationItem]); - expect(servers.get('test')).toBeTruthy(); + const operations = new Operations([operationItem]); + expect(operations.get('test')).toBeTruthy(); }); it('should return undefined if specific Operation is missing', function () { - const servers = new Operations([]); - expect(servers.get('test')).toBeUndefined(); + const operations = new Operations([]); + expect(operations.get('test')).toBeUndefined(); }); }); describe('.has(id)', function () { it('should return true if the said id is available', function () { - const servers = new Operations([operationItem]); - expect(servers.has('test')).toEqual(true); + const operations = new Operations([operationItem]); + expect(operations.has('test')).toEqual(true); }) it('should return false if the Operation id is missing', function () { - const servers = new Operations([operationItem]); - expect(servers.has('anotherId')).toEqual(false); + const operations = new Operations([operationItem]); + expect(operations.has('anotherId')).toEqual(false); + }) + }) + + describe('.filterBySend()', function () { + it('should return all operations with subscribe action', function () { + const operations = new Operations(operationItems); + expect(operations.filterBySend()).toEqual([operationItems[2], operationItems[3]]); + }) + + it('should return empty if there are no operations with subscribe action', function () { + const operations = new Operations([operationItems[0], operationItems[1]]); + expect(operations.filterBySend()).toEqual([]); + }) + }) + + describe('.filterByReceive()', function () { + it('should return all operations with publish action', function () { + const operations = new Operations(operationItems); + expect(operations.filterByReceive()).toEqual([operationItems[0], operationItems[1]]); + }) + + it('should return empty if there are no operations with publish action', function () { + const operations = new Operations([operationItems[2], operationItems[3]]); + expect(operations.filterByReceive()).toEqual([]); }) }) }) \ No newline at end of file diff --git a/test/models/v2/servers.spec.ts b/test/models/v2/servers.spec.ts index e329bc0c3..aa0f7df31 100644 --- a/test/models/v2/servers.spec.ts +++ b/test/models/v2/servers.spec.ts @@ -6,9 +6,31 @@ const doc = { protocol: 'mqtt', protocolVersion: '1.0.0', url: 'development.gigantic-server.com' + }, + 'development2': { + protocol: 'mqtt', + protocolVersion: '1.0.0', + url: 'development2.gigantic-server.com' + }, + 'production': { + protocol: 'mqtt', + protocolVersion: '1.0.0', + url: 'production.gigantic-server.com' + }, + 'production2': { + protocol: 'mqtt', + protocolVersion: '1.0.0', + url: 'production2.gigantic-server.com' } }; + const docItem = new Server(doc.development, { asyncapi: {} as any, pointer: '', id: 'development' }); +const serverItems = [ + new Server(doc.development, { asyncapi: { parsed: { channels: { test1: { publish: { operationId: "test1" } } } } } as any, pointer: '', id: 'development' }), + new Server(doc.development2, { asyncapi: { parsed: { channels: { test2: { publish: { operationId: "test2" } } } } } as any, pointer: '', id: 'development2' }), + new Server(doc.production, { asyncapi: { parsed: { channels: { test3: { subscribe: { operationId: "test3" } } } } } as any, pointer: '', id: 'production' }), + new Server(doc.production2, { asyncapi: { parsed: { channels: { test4: { subscribe: { operationId: "test4" } } } } } as any, pointer: '', id: 'production2' }), +]; describe('Servers model', function () { describe('.isEmpty()', function () { @@ -46,4 +68,28 @@ describe('Servers model', function () { expect(servers.has('production')).toEqual(false); }) }) + + describe('.filterBySend()', function () { + it('should return all servers with channels with subscribe operation', function () { + const servers = new Servers(serverItems); + expect(servers.filterBySend()).toEqual([serverItems[2], serverItems[3]]); + }) + + it('should return empty if there are no servers with channels with operations with subscribe action', function () { + const servers = new Servers([serverItems[0], serverItems[1]]); + expect(servers.filterBySend()).toEqual([]); + }) + }) + + describe('.filterByReceive()', function () { + it('should return all servers with channels with publish operation', function () { + const servers = new Servers(serverItems); + expect(servers.filterByReceive()).toEqual([serverItems[0], serverItems[1]]); + }) + + it('should return empty if there are no servers with channels with operations with publish action', function () { + const servers = new Servers([serverItems[2], serverItems[3]]); + expect(servers.filterByReceive()).toEqual([]); + }) + }) }) \ No newline at end of file From 24bd4f92d74896cddc531296ba1736cd6892f438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Tue, 6 Sep 2022 12:25:52 +0200 Subject: [PATCH 037/126] refactor: add extensions method to the bindings (#587) --- package-lock.json | 45 +++++------- src/models/base.ts | 21 +++--- src/models/binding.ts | 4 +- src/models/bindings.ts | 3 +- src/models/collection.ts | 25 ++++++- src/models/extension.ts | 4 +- src/models/schema.ts | 3 +- src/models/utils.ts | 38 ++-------- src/models/v2/asyncapi.ts | 2 +- src/models/v2/binding.ts | 6 +- src/models/v2/bindings.ts | 27 +++++-- src/models/v2/channel-parameters.ts | 4 -- src/models/v2/channel.ts | 6 +- src/models/v2/channels.ts | 4 -- src/models/v2/components.ts | 60 +++++++++------- src/models/v2/correlation-ids.ts | 6 +- src/models/v2/extension.ts | 6 +- src/models/v2/extensions.ts | 9 +-- src/models/v2/info.ts | 2 +- src/models/v2/message-examples.ts | 6 +- src/models/v2/message-trait.ts | 2 +- src/models/v2/message-traits.ts | 4 -- src/models/v2/message.ts | 6 +- src/models/v2/messages.ts | 8 +-- src/models/v2/mixins.ts | 18 ++--- src/models/v2/operation-trait.ts | 3 +- src/models/v2/operation-traits.ts | 4 -- src/models/v2/operation.ts | 4 +- src/models/v2/operations.ts | 4 -- src/models/v2/schema.ts | 69 +++++++++++++----- src/models/v2/schemas.ts | 4 -- src/models/v2/security-requirement.ts | 13 ++-- src/models/v2/security-requirements.ts | 6 +- src/models/v2/security-schemes.ts | 4 -- src/models/v2/server-variables.ts | 6 +- src/models/v2/server.ts | 2 +- src/models/v2/servers.ts | 4 -- src/models/v2/tags.ts | 6 +- src/schema-parser/asyncapi-schema-parser.ts | 3 +- src/schema-parser/avro-schema-parser.ts | 24 ++++--- src/schema-parser/spectral-rule-v2.ts | 2 +- src/spec-types/v2.ts | 76 ++++++++++++++++++-- test/models/collection.spec.ts | 6 +- test/models/v2/bindings.spec.ts | 64 +++++++++++++++++ test/models/v2/components.spec.ts | 2 +- test/models/v2/operation-trait.spec.ts | 1 + test/models/v2/schema.spec.ts | 2 +- test/models/v2/security-requirement.spec.ts | 20 +++--- test/models/v2/security-requirements.spec.ts | 8 +-- 49 files changed, 381 insertions(+), 275 deletions(-) create mode 100644 test/models/v2/bindings.spec.ts diff --git a/package-lock.json b/package-lock.json index 81c6ec26b..eae082e37 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3158,14 +3158,20 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001314", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001314.tgz", - "integrity": "sha512-0zaSO+TnCHtHJIbpLroX7nsD+vYuOVjl3uzFbJO1wMVbuveJA0RK2WcQA9ZUIOiO0/ArMiMgHJLxfEZhQiC0kw==", + "version": "1.0.30001387", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001387.tgz", + "integrity": "sha512-fKDH0F1KOJvR+mWSOvhj8lVRr/Q/mc5u5nabU2vi1/sgvlSqEsE8dOq0Hy/BqVbDkCYQPRRHB1WRjW6PGB/7PA==", "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - } + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + } + ] }, "node_modules/cardinal": { "version": "2.1.1", @@ -8203,19 +8209,6 @@ "node": ">=0.10.0" } }, - "node_modules/marked": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/marked/-/marked-0.7.0.tgz", - "integrity": "sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==", - "dev": true, - "peer": true, - "bin": { - "marked": "bin/marked" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/marked-terminal": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/marked-terminal/-/marked-terminal-4.1.1.tgz", @@ -18156,9 +18149,9 @@ } }, "caniuse-lite": { - "version": "1.0.30001314", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001314.tgz", - "integrity": "sha512-0zaSO+TnCHtHJIbpLroX7nsD+vYuOVjl3uzFbJO1wMVbuveJA0RK2WcQA9ZUIOiO0/ArMiMgHJLxfEZhQiC0kw==", + "version": "1.0.30001387", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001387.tgz", + "integrity": "sha512-fKDH0F1KOJvR+mWSOvhj8lVRr/Q/mc5u5nabU2vi1/sgvlSqEsE8dOq0Hy/BqVbDkCYQPRRHB1WRjW6PGB/7PA==", "dev": true }, "cardinal": { @@ -21973,12 +21966,6 @@ "strip-color": "^0.1.0" } }, - "marked": { - "version": "https://registry.npmjs.org/marked/-/marked-0.7.0.tgz", - "integrity": "sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==", - "dev": true, - "peer": true - }, "marked-terminal": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/marked-terminal/-/marked-terminal-4.1.1.tgz", diff --git a/src/models/base.ts b/src/models/base.ts index db9323a54..a68e5f709 100644 --- a/src/models/base.ts +++ b/src/models/base.ts @@ -1,32 +1,31 @@ -import type { Constructor } from "./utils"; +import type { Constructor, InferModelData, InferModelMetadata } from "./utils"; import type { DetailedAsyncAPI } from "../types"; export interface ModelMetadata { asyncapi: DetailedAsyncAPI; pointer: string; - [key: string]: any; } -export abstract class BaseModel = Record, M extends Record = {}> { +export abstract class BaseModel = {}> { constructor( protected readonly _json: J, - protected readonly _meta: ModelMetadata & M = {} as any, + protected readonly _meta: ModelMetadata & M = {} as ModelMetadata & M, ) {} - json = J>(): T; + json(): T; json(key: K): J[K]; json(key?: keyof J) { if (key === undefined) return this._json; - if (!this._json) return; - return this._json[String(key)]; + if (this._json === null || this._json === undefined) return this._json; + return this._json[key]; } meta(): ModelMetadata & M; - meta(key: K): (ModelMetadata & M)[K]; - meta(key?: keyof ModelMetadata & M) { + meta(key: K): (ModelMetadata & M)[K]; + meta(key?: keyof (ModelMetadata & M)) { if (key === undefined) return this._meta; if (!this._meta) return; - return this._meta[String(key)]; + return this._meta[key]; } jsonPath(field?: string | undefined): string { @@ -36,7 +35,7 @@ export abstract class BaseModel = Record(Model: Constructor, value: any, meta: { pointer: string | number, [key: string]: any }): T { + protected createModel(Model: Constructor, value: InferModelData, meta: Omit & InferModelMetadata): T { return new Model(value, { ...meta, asyncapi: this._meta.asyncapi }); } } diff --git a/src/models/binding.ts b/src/models/binding.ts index 298c1eeb7..87970a472 100644 --- a/src/models/binding.ts +++ b/src/models/binding.ts @@ -1,8 +1,8 @@ import type { BaseModel } from "./base"; import type { ExtensionsMixinInterface } from './mixins'; -export interface BindingInterface extends BaseModel, ExtensionsMixinInterface { +export interface BindingInterface = Record> extends BaseModel, ExtensionsMixinInterface { protocol(): string; version(): string; - value(): any; + value(): V; } \ No newline at end of file diff --git a/src/models/bindings.ts b/src/models/bindings.ts index 9902a9c78..84e75f5e3 100644 --- a/src/models/bindings.ts +++ b/src/models/bindings.ts @@ -1,4 +1,5 @@ import type { Collection } from './collection'; import type { BindingInterface } from './binding'; +import type { ExtensionsMixinInterface } from "./mixins"; -export interface BindingsInterface extends Collection {} \ No newline at end of file +export interface BindingsInterface extends Collection, ExtensionsMixinInterface {} \ No newline at end of file diff --git a/src/models/collection.ts b/src/models/collection.ts index efc8a344b..5010dcd24 100644 --- a/src/models/collection.ts +++ b/src/models/collection.ts @@ -1,14 +1,25 @@ import type { BaseModel } from "./base"; +import type { DetailedAsyncAPI } from "../types"; -export abstract class Collection> extends Array { +export interface CollectionMetadata { + originalData?: Record; + asyncapi?: DetailedAsyncAPI; + pointer?: string; +} + +export abstract class Collection = {}> extends Array { constructor( - protected readonly collections: T[] + protected readonly collections: T[], + protected readonly _meta: CollectionMetadata & M = {} as CollectionMetadata & M, ) { super(...collections); } abstract get(id: string): T | undefined; - abstract has(id: string): boolean; + + has(id: string): boolean { + return typeof this.get(id) !== 'undefined'; + } all(): T[] { return this.collections; @@ -21,4 +32,12 @@ export abstract class Collection> extends filterBy(filter: (item: T) => boolean): T[] { return this.collections.filter(filter); } + + meta(): CollectionMetadata & M; + meta & M)>(key: K): (CollectionMetadata & M)[K]; + meta(key?: keyof (CollectionMetadata & M)) { + if (key === undefined) return this._meta; + if (!this._meta) return; + return this._meta[String(key)]; + } } diff --git a/src/models/extension.ts b/src/models/extension.ts index 8099c45a8..e31aab2c7 100644 --- a/src/models/extension.ts +++ b/src/models/extension.ts @@ -1,7 +1,7 @@ import type { BaseModel } from "./base"; -export interface ExtensionInterface extends BaseModel { +export interface ExtensionInterface extends BaseModel { name(): string; version(): string; - value(): any; + value(): V; } diff --git a/src/models/schema.ts b/src/models/schema.ts index 81ec0008a..72c224961 100644 --- a/src/models/schema.ts +++ b/src/models/schema.ts @@ -1,7 +1,8 @@ import type { BaseModel } from "./base"; import type { ExtensionsMixinInterface, ExternalDocumentationMixinInterface } from "./mixins"; +import type { v2 } from "../spec-types"; -export interface SchemaInterface extends BaseModel, ExtensionsMixinInterface, ExternalDocumentationMixinInterface { +export interface SchemaInterface extends BaseModel, ExtensionsMixinInterface, ExternalDocumentationMixinInterface { uid(): string; $comment(): string | undefined; $id(): string | undefined; diff --git a/src/models/utils.ts b/src/models/utils.ts index e58b5ce07..73c8ed97e 100644 --- a/src/models/utils.ts +++ b/src/models/utils.ts @@ -1,39 +1,13 @@ -import type { BaseModel } from './base'; +import type { BaseModel, ModelMetadata } from './base'; +import type { DetailedAsyncAPI } from '../types'; export interface Constructor extends Function { new (...any: any[]): T; } -export interface MixinType extends Function { - prototype: T; -} - -export function Mixin(a: typeof BaseModel): typeof BaseModel; -export function Mixin(a: typeof BaseModel, b: MixinType): typeof BaseModel & Constructor; -export function Mixin(a: typeof BaseModel, b: MixinType, c: MixinType): typeof BaseModel & Constructor & Constructor; -export function Mixin(a: typeof BaseModel, b: MixinType, c: MixinType, d: MixinType): typeof BaseModel & Constructor & Constructor & Constructor; -export function Mixin(a: typeof BaseModel, b: MixinType, c: MixinType, d: MixinType, e: MixinType): typeof BaseModel & Constructor & Constructor & Constructor & Constructor; -export function Mixin(a: typeof BaseModel, b: MixinType, c: MixinType, d: MixinType, e: MixinType, f: MixinType): typeof BaseModel & Constructor & Constructor & Constructor & Constructor & Constructor; -export function Mixin(baseCtor: typeof BaseModel, ...constructors: any[]) { - return mixin(class extends baseCtor {}, constructors); -} +export type InferModelData = T extends BaseModel ? J : never; +export type InferModelMetadata = T extends BaseModel ? M : never; -function mixin(derivedCtor: any, constructors: any[]): typeof BaseModel { - constructors.forEach((ctor) => { - Object.getOwnPropertyNames(ctor.prototype).forEach((name) => { - if (name === 'constructor') { - return; - } - Object.defineProperty( - derivedCtor.prototype, - name, - Object.getOwnPropertyDescriptor(ctor.prototype, name) || Object.create(null), - ); - }); - }); - return derivedCtor; +export function createModel(Model: Constructor, value: InferModelData, meta: Omit & { asyncapi?: DetailedAsyncAPI } & InferModelMetadata, parent?: BaseModel): T { + return new Model(value, { ...meta, asyncapi: meta.asyncapi || parent?.meta().asyncapi }); } - -export function createModel(Model: Constructor, value: any, meta: { pointer: string | number, [key: string]: any }, parent: BaseModel) { - return new Model(value, { ...meta, asyncapi: parent?.meta().asyncapi }); -} \ No newline at end of file diff --git a/src/models/v2/asyncapi.ts b/src/models/v2/asyncapi.ts index 7cf366593..76bef6b27 100644 --- a/src/models/v2/asyncapi.ts +++ b/src/models/v2/asyncapi.ts @@ -82,7 +82,7 @@ export class AsyncAPIDocument extends BaseModel implements As securitySchemes(): SecuritySchemesInterface { return new SecuritySchemes( Object.entries(this._json.components?.securitySchemes || {}).map(([securitySchemeName, securityScheme]) => - this.createModel(SecurityScheme, securityScheme, { id: securitySchemeName, pointer: `/components/securitySchemes/${securitySchemeName}` }) + this.createModel(SecurityScheme, securityScheme as v2.SecuritySchemeObject, { id: securitySchemeName, pointer: `/components/securitySchemes/${securitySchemeName}` }) ) ); } diff --git a/src/models/v2/binding.ts b/src/models/v2/binding.ts index c2601bca8..b313ace2f 100644 --- a/src/models/v2/binding.ts +++ b/src/models/v2/binding.ts @@ -7,7 +7,7 @@ import type { ExtensionsInterface } from "../extensions"; import type { v2 } from "../../spec-types"; -export class Binding extends BaseModel implements BindingInterface { +export class Binding = Record> extends BaseModel implements BindingInterface { protocol(): string { return this._meta.protocol; } @@ -16,10 +16,10 @@ export class Binding extends BaseModel impleme return this._json.bindingVersion || 'latest'; } - value = Record>(): T { + value(): V { const value = { ...this._json }; delete (value as any).bindingVersion; - return value as unknown as T; + return value as unknown as V; } extensions(): ExtensionsInterface { diff --git a/src/models/v2/bindings.ts b/src/models/v2/bindings.ts index e15981e4d..7d7b4646a 100644 --- a/src/models/v2/bindings.ts +++ b/src/models/v2/bindings.ts @@ -1,14 +1,31 @@ import { Collection } from "../collection"; +import { Extensions } from "./extensions"; +import { Extension } from "./extension"; + +import { createModel } from "../utils"; +import { EXTENSION_REGEX } from '../../constants'; import type { BindingsInterface } from "../bindings"; import type { BindingInterface } from "../binding"; +import type { ExtensionsInterface } from "../extensions"; +import type { ExtensionInterface } from "../extension"; + +import type { v2 } from "../../spec-types"; export class Bindings extends Collection implements BindingsInterface { - override get(name: string): BindingInterface | undefined { + override get = Record>(name: string): BindingInterface | undefined { return this.collections.find(binding => binding.protocol() === name); - }; + } - override has(name: string): boolean { - return this.collections.some(binding => binding.protocol() === name); - }; + extensions(): ExtensionsInterface { + const extensions: ExtensionInterface[] = []; + Object.entries(this._meta.originalData as v2.SpecificationExtensions || {}).forEach(([name, value]) => { + if (EXTENSION_REGEX.test(name)) { + extensions.push( + createModel(Extension, value, { name, pointer: `${this._meta.pointer}/${name}`, asyncapi: this._meta.asyncapi }) as Extension + ); + } + }); + return new Extensions(extensions); + } } diff --git a/src/models/v2/channel-parameters.ts b/src/models/v2/channel-parameters.ts index 486f0177a..71d7cf10e 100644 --- a/src/models/v2/channel-parameters.ts +++ b/src/models/v2/channel-parameters.ts @@ -7,8 +7,4 @@ export class ChannelParameters extends Collection imp override get(id: string): ChannelParameterInterface | undefined { return this.collections.find(parameter => parameter.id() === id); } - - override has(id: string): boolean { - return this.collections.some(parameter => parameter.id() === id); - } } diff --git a/src/models/v2/channel.ts b/src/models/v2/channel.ts index 8b316f537..14a2c0eb4 100644 --- a/src/models/v2/channel.ts +++ b/src/models/v2/channel.ts @@ -16,7 +16,7 @@ import type { ExtensionsInterface } from "models/extensions"; import type { MessagesInterface } from "../messages"; import type { MessageInterface } from "../message"; import type { OperationsInterface } from "../operations"; -import type { OperationInterface } from "../operation"; +import type { OperationAction, OperationInterface } from "../operation"; import type { ServersInterface } from "../servers"; import type { ServerInterface } from "../server"; @@ -55,7 +55,7 @@ export class Channel extends BaseModel { const id = this._json[operationAction as 'publish' | 'subscribe'] && (this._json[operationAction as 'publish' | 'subscribe'] as v2.OperationObject).operationId || this.meta().id + "_" + operationAction; this._json[operationAction as 'publish' | 'subscribe'] && operations.push( - this.createModel(Operation, this._json[operationAction as 'publish' | 'subscribe'], { id, action: operationAction, pointer: `${this._meta.pointer}/${operationAction}` }), + this.createModel(Operation, this._json[operationAction as 'publish' | 'subscribe'] as v2.OperationObject, { id, action: operationAction as OperationAction, pointer: `${this._meta.pointer}/${operationAction}` }), ); }); return new Operations(operations); @@ -70,7 +70,7 @@ export class Channel extends BaseModel { - return this.createModel(ChannelParameter, channelParameter, { + return this.createModel(ChannelParameter, channelParameter as v2.ParameterObject, { id: channelParameterName, pointer: `${this._meta.pointer}/parameters/${channelParameterName}` }) diff --git a/src/models/v2/channels.ts b/src/models/v2/channels.ts index 9e17583b8..2f285f51e 100644 --- a/src/models/v2/channels.ts +++ b/src/models/v2/channels.ts @@ -8,10 +8,6 @@ export class Channels extends Collection implements ChannelsIn return this.collections.find(channel => channel.id() === id); } - override has(id: string): boolean { - return this.collections.some(channel => channel.id() === id); - } - filterBySend(): ChannelInterface[] { return this.filterBy(channel => channel.operations().filterBySend().length > 0); } diff --git a/src/models/v2/components.ts b/src/models/v2/components.ts index 2ebe3c5f8..6aeaeaba4 100644 --- a/src/models/v2/components.ts +++ b/src/models/v2/components.ts @@ -1,4 +1,6 @@ import { BaseModel } from "../base"; +import { Collection } from "../collection"; + import { Bindings } from "./bindings"; import { Binding } from "./binding"; import { Channel } from "./channel"; @@ -11,37 +13,38 @@ import { SecurityScheme } from "./security-scheme"; import { Server } from "./server"; import { ServerVariable } from "./server-variable"; import { extensions } from './mixins'; -import type { BindingsInterface } from "../bindings"; -import type { ComponentsInterface } from "../components"; -import type { ExtensionsInterface } from "../extensions"; -import type { Constructor } from "../utils"; -import type { ServersInterface } from "models/servers"; import { Servers } from "./servers"; import { Channels } from "./channels"; -import type { ChannelsInterface } from "models/channels"; -import type { MessagesInterface } from "models/messages"; -import type { SchemasInterface } from "models/schemas"; -import type { ChannelParametersInterface } from "models/channel-parameters"; -import type { ServerVariablesInterface } from "models/server-variables"; -import type { OperationTraitsInterface } from "models/operation-traits"; -import type { SecuritySchemesInterface } from "models/security-schemes"; import { Messages } from "./messages"; import { Schemas } from "./schemas"; import { ChannelParameters } from "./channel-parameters"; import { ServerVariables } from "./server-variables"; import { OperationTraits } from "./operation-traits"; import { MessageTraits } from "./message-traits"; -import type { MessageTraitsInterface } from "models/message-traits"; import { SecuritySchemes } from "./security-schemes"; -import { Collection } from "models/collection"; import { CorrelationIds } from "./correlation-ids"; -import { tilde } from '../../utils'; -import type { OperationsInterface } from "models/operations"; -import type { OperationInterface } from "models/operation"; import { Operations } from "./operations"; import { Message } from "./message"; + +import { tilde } from '../../utils'; + +import type { BindingsInterface } from "../bindings"; +import type { ComponentsInterface } from "../components"; +import type { ExtensionsInterface } from "../extensions"; +import type { Constructor } from "../utils"; +import type { ServersInterface } from "../servers"; +import type { ChannelsInterface } from "../channels"; +import type { MessagesInterface } from "../messages"; +import type { SchemasInterface } from "../schemas"; +import type { ChannelParametersInterface } from "../channel-parameters"; +import type { ServerVariablesInterface } from "../server-variables"; +import type { OperationTraitsInterface } from "../operation-traits"; +import type { SecuritySchemesInterface } from "../security-schemes"; +import type { MessageTraitsInterface } from "../message-traits"; +import type { OperationsInterface } from "../operations"; +import type { OperationInterface } from "../operation"; + import type { v2 } from "../../spec-types"; -import { ComponentsObject } from "spec-types/v2"; export class Components extends BaseModel implements ComponentsInterface { servers(): ServersInterface { @@ -51,7 +54,7 @@ export class Components extends BaseModel implements Compon channels(): ChannelsInterface { return new Channels( Object.entries(this._json.channels || {}).map(([channelAddress, channel]) => - this.createModel(Channel, channel, { id: channelAddress, pointer: `/components/channels/${tilde(channelAddress)}` }) + this.createModel(Channel, channel as v2.ChannelObject, { id: channelAddress, address: '', pointer: `/components/channels/${tilde(channelAddress)}` }) ) ); } @@ -114,23 +117,26 @@ export class Components extends BaseModel implements Compon return extensions(this); } - protected createCollection, T extends BaseModel>(itemsName: keyof ComponentsObject, collectionModel: Constructor, itemModel: Constructor): M { + protected createCollection, T extends BaseModel>(itemsName: keyof v2.ComponentsObject, collectionModel: Constructor, itemModel: Constructor): M { const collectionItems: T[] = []; - Object.entries(this._json[itemsName] || {}).forEach(([itemName, item]) => { - collectionItems.push(this.createModel(itemModel, item, { id: itemName, pointer: `/components/${itemsName}/${itemName}` })) + Object.entries(this._json[itemsName] || {}).forEach(([id, item]) => { + collectionItems.push(this.createModel(itemModel, item as any, { id, pointer: `/components/${itemsName}/${id}` } as any)) }); - return new collectionModel(collectionItems); } protected createBindings(itemsName: 'serverBindings' | 'channelBindings' | 'operationBindings' | 'messageBindings'): Record { return Object.entries(this._json[itemsName] || {}).reduce((bindings, [name, item]) => { + const bindingsData = item || {}; + const asyncapi = this.meta('asyncapi'); + const pointer = `components/${itemsName}/${name}`; bindings[name] = new Bindings( - Object.entries(item as any || {}).map(([protocol, binding]) => - this.createModel(Binding, binding, { id: protocol, pointer: `components/${itemsName}/${name}/${protocol}` }) - ) + Object.entries(bindingsData).map(([protocol, binding]) => + this.createModel(Binding, binding, { protocol, pointer: `${pointer}/${protocol}` }) + ), + { originalData: bindingsData as any, asyncapi, pointer } ); return bindings; - }, {} as Record); + }, {} as Record); } } diff --git a/src/models/v2/correlation-ids.ts b/src/models/v2/correlation-ids.ts index 9d73eccb3..d0a921171 100644 --- a/src/models/v2/correlation-ids.ts +++ b/src/models/v2/correlation-ids.ts @@ -5,10 +5,6 @@ import type { CorrelationIdInterface } from '../correlation-id'; export class CorrelationIds extends Collection implements CorrelationIdsInterface { override get(id: string): CorrelationIdInterface | undefined { - return this.collections.find(correlationId => correlationId.meta()["key"] === id); - } - - override has(id: string): boolean { - return this.collections.some(correlationId => correlationId.meta()["key"] === id); + return this.collections.find(correlationId => correlationId.meta('id' as any) === id); } } diff --git a/src/models/v2/extension.ts b/src/models/v2/extension.ts index bb4588349..38e974455 100644 --- a/src/models/v2/extension.ts +++ b/src/models/v2/extension.ts @@ -4,7 +4,7 @@ import type { ExtensionInterface } from "../extension"; import type { v2 } from "../../spec-types"; -export class Extension extends BaseModel implements ExtensionInterface { +export class Extension extends BaseModel, { name: string }> implements ExtensionInterface { name(): string { return this._meta.name; } @@ -13,7 +13,7 @@ export class Extension extends BaseModel(): V { + return this._json as unknown as V; } } diff --git a/src/models/v2/extensions.ts b/src/models/v2/extensions.ts index fb14599fe..fbfb13e1c 100644 --- a/src/models/v2/extensions.ts +++ b/src/models/v2/extensions.ts @@ -4,13 +4,8 @@ import type { ExtensionsInterface } from "../extensions"; import type { ExtensionInterface } from "../extension"; export class Extensions extends Collection implements ExtensionsInterface { - override get(name: string): ExtensionInterface | undefined { + override get(name: string): ExtensionInterface | undefined { name = name.startsWith('x-') ? name : `x-${name}`; return this.collections.find(ext => ext.name() === name); - }; - - override has(name: string): boolean { - name = name.startsWith('x-') ? name : `x-${name}`; - return this.collections.some(ext => ext.name() === name); - }; + } } diff --git a/src/models/v2/info.ts b/src/models/v2/info.ts index 4415d5e7c..58cd2bbb3 100644 --- a/src/models/v2/info.ts +++ b/src/models/v2/info.ts @@ -73,7 +73,7 @@ export class Info extends BaseModel implements InfoInterface { externalDocs(): ExternalDocumentationInterface | undefined { if (this.hasExternalDocs()) { - return this.createModel(ExternalDocumentation, this._meta.asyncapi.parsed.externalDocs, { pointer: `/externalDocs` }); + return this.createModel(ExternalDocumentation, this._meta.asyncapi.parsed.externalDocs as v2.ExternalDocumentationObject, { pointer: `/externalDocs` }); } return; }; diff --git a/src/models/v2/message-examples.ts b/src/models/v2/message-examples.ts index 062a19abd..fa07cfa2f 100644 --- a/src/models/v2/message-examples.ts +++ b/src/models/v2/message-examples.ts @@ -5,10 +5,6 @@ import type { MessageExampleInterface } from '../message-example'; export class MessageExamples extends Collection implements MessageExamplesInterface { override get(name: string): MessageExampleInterface | undefined { - return this.collections.find(trait => trait.name() === name); - } - - override has(name: string): boolean { - return this.collections.some(trait => trait.name() === name); + return this.collections.find(example => example.name() === name); } } diff --git a/src/models/v2/message-trait.ts b/src/models/v2/message-trait.ts index 2216f8802..00f6bb799 100644 --- a/src/models/v2/message-trait.ts +++ b/src/models/v2/message-trait.ts @@ -41,7 +41,7 @@ export class MessageTrait implements override get(id: string): MessageTraitInterface | undefined { return this.collections.find(trait => trait.id() === id); } - - override has(id: string): boolean { - return this.collections.some(trait => trait.id() === id); - } } diff --git a/src/models/v2/message.ts b/src/models/v2/message.ts index 25e2617d7..dfbc6f0b6 100644 --- a/src/models/v2/message.ts +++ b/src/models/v2/message.ts @@ -13,7 +13,7 @@ import type { ChannelInterface } from "../channel"; import type { MessageInterface } from "../message"; import type { MessageTraitsInterface } from "../message-traits"; import type { OperationsInterface } from "../operations"; -import type { OperationInterface } from "../operation"; +import type { OperationAction, OperationInterface } from "../operation"; import type { ServersInterface } from "../servers"; import type { ServerInterface } from "../server"; import type { SchemaInterface } from "../schema"; @@ -68,7 +68,7 @@ export class Message extends MessageTrait implements MessageIn (operation.message.oneOf || []).includes(this._json) )) { operations.push( - this.createModel(Operation, operation, { pointer: `/channels/${tilde(channelAddress)}/${operationAction}`, action: operationAction }) + this.createModel(Operation, operation, { id: '', pointer: `/channels/${tilde(channelAddress)}/${operationAction}`, action: operationAction as OperationAction }) ); } }); @@ -79,7 +79,7 @@ export class Message extends MessageTrait implements MessageIn traits(): MessageTraitsInterface { return new MessageTraits( (this._json.traits || []).map((trait: any, index: number) => { - return this.createModel(MessageTrait, trait, { pointer: `${this._meta.pointer}/traits/${index}` }) + return this.createModel(MessageTrait, trait, { id: '', pointer: `${this._meta.pointer}/traits/${index}` }) }) ); } diff --git a/src/models/v2/messages.ts b/src/models/v2/messages.ts index 65fd7dca8..591c0d7ac 100644 --- a/src/models/v2/messages.ts +++ b/src/models/v2/messages.ts @@ -4,12 +4,8 @@ import type { MessagesInterface } from '../messages'; import type { MessageInterface } from '../message'; export class Messages extends Collection implements MessagesInterface { - override get(id: string): MessageInterface | undefined { - return this.collections.find(message => message.id() === id); - } - - override has(id: string): boolean { - return this.collections.some(message => message.id() === id); + override get(name: string): MessageInterface | undefined { + return this.collections.find(message => message.id() === name); } filterBySend(): MessageInterface[] { diff --git a/src/models/v2/mixins.ts b/src/models/v2/mixins.ts index 10d083b4b..76478cca1 100644 --- a/src/models/v2/mixins.ts +++ b/src/models/v2/mixins.ts @@ -19,15 +19,17 @@ import type { TagsInterface } from "../tags"; import type { v2 } from "../../spec-types"; export function bindings(model: BaseModel<{ bindings?: Record }>): BindingsInterface { + const bindings = model.json('bindings') || {}; return new Bindings( - Object.entries(model.json('bindings') || {}).map(([protocol, binding]) => - createModel(Binding, binding, { id: protocol, pointer: model.jsonPath(`bindings/${protocol}`) }, model) - ) + Object.entries(bindings || {}).map(([protocol, binding]) => + createModel(Binding, binding, { protocol, pointer: model.jsonPath(`bindings/${protocol}`) }, model) + ), + { originalData: bindings, asyncapi: model.meta('asyncapi'), pointer: model.jsonPath('bindings') } ); } export function hasDescription(model: BaseModel<{ description?: string }>) { - return Boolean(model.json('description')); + return Boolean(description(model)); }; export function description(model: BaseModel<{ description?: string }>): string | undefined { @@ -36,10 +38,10 @@ export function description(model: BaseModel<{ description?: string }>): string export function extensions(model: BaseModel): ExtensionsInterface { const extensions: ExtensionInterface[] = []; - Object.entries(model.json()).forEach(([key, value]) => { - if (EXTENSION_REGEX.test(key)) { + Object.entries(model.json()).forEach(([name, value]: [string, any]) => { + if (EXTENSION_REGEX.test(name)) { extensions.push( - createModel(Extension, value, { id: key, pointer: model.jsonPath(key) }, model) + createModel(Extension, value, { name, pointer: model.jsonPath(name) } as any, model) as Extension ); } }); @@ -59,7 +61,7 @@ export function externalDocs(model: BaseModel): ExternalDocumentationInterface | export function tags(model: BaseModel<{ tags?: v2.TagsObject }>): TagsInterface { return new Tags( - (model.json('tags') || []).map((tag: any, idx: number) => + (model.json('tags') || []).map((tag, idx) => createModel(Tag, tag, { pointer: model.jsonPath(`tags/${idx}`) }, model) ) ); diff --git a/src/models/v2/operation-trait.ts b/src/models/v2/operation-trait.ts index cc3ab6f41..75f0c607a 100644 --- a/src/models/v2/operation-trait.ts +++ b/src/models/v2/operation-trait.ts @@ -8,7 +8,6 @@ import type { ExtensionsInterface } from "../extensions"; import type { ExternalDocumentationInterface } from "../external-docs"; import type { OperationAction } from "../operation"; import type { OperationTraitInterface } from "../operation-trait"; -import type { SecuritySchemeInterface } from "../security-scheme"; import type { TagsInterface } from "../tags"; import type { v2 } from "../../spec-types"; @@ -71,7 +70,7 @@ export class OperationTrait { const scheme = this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }); requirements.push( - this.createModel(SecurityRequirement, scopes, { id: security, scheme: scheme, pointer: `${this.meta().pointer}/security/${index}/${security}` }) + this.createModel(SecurityRequirement, { scheme: scheme, scopes }, { id: security, pointer: `${this.meta().pointer}/security/${index}/${security}` }) ); }); return new SecurityRequirements(requirements); diff --git a/src/models/v2/operation-traits.ts b/src/models/v2/operation-traits.ts index 95d5f9e32..32cae7902 100644 --- a/src/models/v2/operation-traits.ts +++ b/src/models/v2/operation-traits.ts @@ -7,8 +7,4 @@ export class OperationTraits extends Collection impleme override get(id: string): OperationTraitInterface | undefined { return this.collections.find(trait => trait.id() === id); } - - override has(id: string): boolean { - return this.collections.some(trait => trait.id() === id); - } } diff --git a/src/models/v2/operation.ts b/src/models/v2/operation.ts index f0a9c43d5..267bb1962 100644 --- a/src/models/v2/operation.ts +++ b/src/models/v2/operation.ts @@ -59,7 +59,7 @@ export class Operation extends OperationTrait implements Ope return new Messages( messages.map((message: any, index: number) => { - return this.createModel(Message, message, { pointer: `${this._meta.pointer}/message${isOneOf ? `/oneOf/${index}` : ''}` }) + return this.createModel(Message, message, { id: '', pointer: `${this._meta.pointer}/message${isOneOf ? `/oneOf/${index}` : ''}` }) }) ); } @@ -67,7 +67,7 @@ export class Operation extends OperationTrait implements Ope traits(): OperationTraitsInterface { return new OperationTraits( (this._json.traits || []).map((trait: any, index: number) => { - return this.createModel(OperationTrait, trait, { pointer: `${this._meta.pointer}/traits/${index}` }) + return this.createModel(OperationTrait, trait, { id: '', pointer: `${this._meta.pointer}/traits/${index}`, action: '' as 'publish' | 'subscribe' }) }) ); } diff --git a/src/models/v2/operations.ts b/src/models/v2/operations.ts index 5642fb2f1..f61b8c11c 100644 --- a/src/models/v2/operations.ts +++ b/src/models/v2/operations.ts @@ -8,10 +8,6 @@ export class Operations extends Collection implements Operat return this.collections.find(operation => operation.id() === id); } - override has(id: string): boolean { - return this.collections.some(operation => operation.id() === id); - } - filterBySend(): OperationInterface[] { return this.filterBy(operation => operation.isSend()); } diff --git a/src/models/v2/schema.ts b/src/models/v2/schema.ts index 258ae0ebc..98c837896 100644 --- a/src/models/v2/schema.ts +++ b/src/models/v2/schema.ts @@ -8,68 +8,79 @@ import type { SchemaInterface } from "../schema"; import type { v2 } from "../../spec-types"; -export class Schema extends BaseModel implements SchemaInterface { +export class Schema extends BaseModel implements SchemaInterface { uid(): string { - return this._meta.id; + return this._meta.id as any; } $comment(): string | undefined { + if (typeof this._json === 'boolean') return; return this._json.$comment; } $id(): string | undefined { + if (typeof this._json === 'boolean') return; return this._json.$id; } $schema(): string { + if (typeof this._json === 'boolean') return 'http://json-schema.org/draft-07/schema#'; return this._json.$schema || 'http://json-schema.org/draft-07/schema#'; } additionalItems(): boolean | SchemaInterface { + if (typeof this._json === 'boolean') return this._json; if (this._json.additionalItems === undefined) return true; if (typeof this._json.additionalItems === 'boolean') return this._json.additionalItems; return this.createModel(Schema, this._json.additionalItems, { pointer: `${this._meta.pointer}/additionalItems`, parent: this }); } additionalProperties(): boolean | SchemaInterface { + if (typeof this._json === 'boolean') return this._json; if (this._json.additionalProperties === undefined) return true; if (typeof this._json.additionalProperties === 'boolean') return this._json.additionalProperties; return this.createModel(Schema, this._json.additionalProperties, { pointer: `${this._meta.pointer}/additionalProperties`, parent: this }); } allOf(): Array | undefined { + if (typeof this._json === 'boolean') return; if (!Array.isArray(this._json.allOf)) return undefined; return this._json.allOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/allOf/${index}`, parent: this })); } anyOf(): Array | undefined { + if (typeof this._json === 'boolean') return; if (!Array.isArray(this._json.anyOf)) return undefined; return this._json.anyOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/anyOf/${index}`, parent: this })); } const(): any { + if (typeof this._json === 'boolean') return; return this._json.const; } contains(): SchemaInterface | undefined { - if (typeof this._json.contains !== 'object') return; + if (typeof this._json === 'boolean' || typeof this._json.contains !== 'object') return; return this.createModel(Schema, this._json.contains, { pointer: `${this._meta.pointer}/contains`, parent: this }); } contentEncoding(): string | undefined { + if (typeof this._json === 'boolean') return; return this._json.contentEncoding; } contentMediaType(): string | undefined { + if (typeof this._json === 'boolean') return; return this._json.contentMediaType; } default(): any { + if (typeof this._json === 'boolean') return; return this._json.default; } definitions(): Record | undefined { - if (typeof this._json.definitions !== 'object') return undefined; + if (typeof this._json === 'boolean' || typeof this._json.definitions !== 'object') return; return Object.entries(this._json.definitions).reduce((acc: Record, [key, s]: [string, any]) => { acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/definitions/${key}`, parent: this }); return acc; @@ -77,10 +88,12 @@ export class Schema extends BaseModel> | undefined { + if (typeof this._json === 'boolean') return; if (typeof this._json.dependencies !== 'object') return undefined; return Object.entries(this._json.dependencies).reduce((acc: Record>, [key, s]: [string, any]) => { acc[key] = Array.isArray(s) ? s : this.createModel(Schema, s, { pointer: `${this._meta.pointer}/dependencies/${key}`, parent: this }); @@ -89,35 +102,42 @@ export class Schema extends BaseModel | undefined { + if (typeof this._json === 'boolean') return; return this._json.enum; } examples(): Array | undefined { + if (typeof this._json === 'boolean') return; return this._json.examples; } exclusiveMaximum(): number | undefined { + if (typeof this._json === 'boolean') return; return this._json.exclusiveMaximum; } exclusiveMinimum(): number | undefined { + if (typeof this._json === 'boolean') return; return this._json.exclusiveMinimum; } format(): string | undefined { + if (typeof this._json === 'boolean') return; return this._json.format; } @@ -126,7 +146,7 @@ export class Schema extends BaseModel | undefined { - if (typeof this._json.items !== 'object') return; + if (typeof this._json === 'boolean' || typeof this._json.items !== 'object') return; if (Array.isArray(this._json.items)) { return this._json.items.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/items/${index}`, parent: this })); } @@ -148,57 +168,68 @@ export class Schema extends BaseModel | undefined { + if (typeof this._json === 'boolean') return; if (!Array.isArray(this._json.oneOf)) return undefined; return this._json.oneOf.map((s, index) => this.createModel(Schema, s, { pointer: `${this._meta.pointer}/oneOf/${index}`, parent: this })); } pattern(): string | undefined { + if (typeof this._json === 'boolean') return; return this._json.pattern; } patternProperties(): Record | undefined { - if (typeof this._json.patternProperties !== 'object') return undefined; + if (typeof this._json === 'boolean' || typeof this._json.patternProperties !== 'object') return; return Object.entries(this._json.patternProperties).reduce((acc: Record, [key, s]: [string, any]) => { acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/patternProperties/${key}`, parent: this }); return acc; @@ -206,7 +237,7 @@ export class Schema extends BaseModel | undefined { - if (typeof this._json.properties !== 'object') return undefined; + if (typeof this._json === 'boolean' || typeof this._json.properties !== 'object') return; return Object.entries(this._json.properties).reduce((acc: Record, [key, s]: [string, any]) => { acc[key] = this.createModel(Schema, s, { pointer: `${this._meta.pointer}/properties/${key}`, parent: this }); return acc; @@ -214,53 +245,59 @@ export class Schema extends BaseModel | undefined { + if (typeof this._json === 'boolean') return; return this._json.required; } then(): SchemaInterface | undefined { - if (typeof this._json.then !== 'object') return; + if (typeof this._json === 'boolean' || typeof this._json.then !== 'object') return; return this.createModel(Schema, this._json.then, { pointer: `${this._meta.pointer}/then`, parent: this }); } title(): string | undefined { + if (typeof this._json === 'boolean') return; return this._json.title; } type(): string | Array | undefined { + if (typeof this._json === 'boolean') return; return this._json.type; } uniqueItems(): boolean | undefined { + if (typeof this._json === 'boolean') return false; return this._json.uniqueItems || false; } writeOnly(): boolean | undefined { + if (typeof this._json === 'boolean') return false; return this._json.writeOnly || false; } hasExternalDocs(): boolean { - return hasExternalDocs(this); + return hasExternalDocs(this as BaseModel); } externalDocs(): ExternalDocumentationInterface | undefined { - return externalDocs(this); + return externalDocs(this as BaseModel); } extensions(): ExtensionsInterface { - return extensions(this); + return extensions(this as BaseModel); } } diff --git a/src/models/v2/schemas.ts b/src/models/v2/schemas.ts index dea892a87..162fd44bd 100644 --- a/src/models/v2/schemas.ts +++ b/src/models/v2/schemas.ts @@ -7,8 +7,4 @@ export class Schemas extends Collection implements SchemasInter override get(id: string): SchemaInterface | undefined { return this.collections.find(schema => schema.uid() === id); } - - override has(id: string): boolean { - return this.collections.some(schema => schema.uid() === id); - } } diff --git a/src/models/v2/security-requirement.ts b/src/models/v2/security-requirement.ts index 4a47a97d8..fdab68df1 100644 --- a/src/models/v2/security-requirement.ts +++ b/src/models/v2/security-requirement.ts @@ -1,15 +1,14 @@ import { BaseModel } from '../base'; + import type { SecuritySchemeInterface } from '../security-scheme'; -import type { v2 } from "../../spec-types"; -import { SecurityRequirementInterface } from 'models/security-requirement'; -import { SecurityScheme } from './security-scheme'; +import type { SecurityRequirementInterface } from '../security-requirement'; -export class SecurityRequirement extends BaseModel<{}, { id: string, scheme: SecuritySchemeInterface }> implements SecurityRequirementInterface { +export class SecurityRequirement extends BaseModel<{ scopes?: string[], scheme: SecuritySchemeInterface }, { id?: string }> implements SecurityRequirementInterface { scheme(): SecuritySchemeInterface { - return this.meta().scheme; + return this._json.scheme; } - scopes() : string[] { - return this._json as string[]; + scopes(): string[] { + return this._json.scopes || []; } } \ No newline at end of file diff --git a/src/models/v2/security-requirements.ts b/src/models/v2/security-requirements.ts index ee1ce0869..5fcf7dd30 100644 --- a/src/models/v2/security-requirements.ts +++ b/src/models/v2/security-requirements.ts @@ -5,10 +5,6 @@ import type { SecurityRequirementInterface } from '../security-requirement'; export class SecurityRequirements extends Collection implements SecurityRequirementsInterface { override get(id: string): SecurityRequirementInterface | undefined { - return this.collections.find(securityRequirement => securityRequirement.meta().id === id); - } - - override has(id: string): boolean { - return this.collections.some(securityRequirement => securityRequirement.meta().id === id); + return this.collections.find(securityRequirement => securityRequirement.meta('id' as any) === id); } } diff --git a/src/models/v2/security-schemes.ts b/src/models/v2/security-schemes.ts index 985a2d941..93ca01e1b 100644 --- a/src/models/v2/security-schemes.ts +++ b/src/models/v2/security-schemes.ts @@ -7,8 +7,4 @@ export class SecuritySchemes extends Collection impleme override get(id: string): SecuritySchemeInterface | undefined { return this.collections.find(securityScheme => securityScheme.id() === id); } - - override has(id: string): boolean { - return this.collections.some(securityScheme => securityScheme.id() === id); - } } diff --git a/src/models/v2/server-variables.ts b/src/models/v2/server-variables.ts index 9edc795d5..5faf082db 100644 --- a/src/models/v2/server-variables.ts +++ b/src/models/v2/server-variables.ts @@ -5,10 +5,6 @@ import type { ServerVariableInterface } from '../server-variable'; export class ServerVariables extends Collection implements ServerVariablesInterface { override get(id: string): ServerVariableInterface | undefined { - return this.collections.find(serverVariable => serverVariable.id() === id); - } - - override has(id: string): boolean { - return this.collections.some(serverVariable => serverVariable.id() === id); + return this.collections.find(variable => variable.id() === id); } } diff --git a/src/models/v2/server.ts b/src/models/v2/server.ts index 075fb89c0..15d4d6ab3 100644 --- a/src/models/v2/server.ts +++ b/src/models/v2/server.ts @@ -98,7 +98,7 @@ export class Server extends BaseModel implement Object.entries(requirement).forEach(([security, scopes]) => { const scheme = this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }); requirements.push( - this.createModel(SecurityRequirement, scopes, { id: security, scheme: scheme, pointer: `${this.meta().pointer}/security/${index}/${security}` }) + this.createModel(SecurityRequirement, { scheme: scheme, scopes }, { id: security, pointer: `${this.meta().pointer}/security/${index}/${security}` }) ); }); return new SecurityRequirements(requirements); diff --git a/src/models/v2/servers.ts b/src/models/v2/servers.ts index 0f805137e..3c6ce0f4a 100644 --- a/src/models/v2/servers.ts +++ b/src/models/v2/servers.ts @@ -7,10 +7,6 @@ export class Servers extends Collection implements ServersInter return this.collections.find(server => server.id() === id); } - override has(id: string): boolean { - return this.collections.some(server => server.id() === id); - } - filterBySend(): ServerInterface[] { return this.filterBy(server => server.operations().filterBySend().length > 0); } diff --git a/src/models/v2/tags.ts b/src/models/v2/tags.ts index 133845b64..be1dd86d5 100644 --- a/src/models/v2/tags.ts +++ b/src/models/v2/tags.ts @@ -6,9 +6,5 @@ import type { TagInterface } from "../tag"; export class Tags extends Collection implements TagsInterface { override get(name: string): TagInterface | undefined { return this.collections.find(tag => tag.name() === name); - }; - - override has(name: string): boolean { - return this.collections.some(tag => tag.name() === name); - }; + } } diff --git a/src/schema-parser/asyncapi-schema-parser.ts b/src/schema-parser/asyncapi-schema-parser.ts index 60deeae78..43d360656 100644 --- a/src/schema-parser/asyncapi-schema-parser.ts +++ b/src/schema-parser/asyncapi-schema-parser.ts @@ -7,6 +7,7 @@ import { specVersions } from '../constants'; import type { ErrorObject, ValidateFunction } from "ajv"; import type { AsyncAPISchema, SchemaValidateResult } from '../types'; import type { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from "../schema-parser"; +import type { v2 } from "../spec-types"; const ajv = new Ajv({ allErrors: true, @@ -81,7 +82,7 @@ function getSchemaValidator(version: string): ValidateFunction { * To validate the schema of the payload we just need a small portion of official AsyncAPI spec JSON Schema, the Schema Object in particular. The definition of Schema Object must be * included in the returned JSON Schema. */ -function preparePayloadSchema(asyncapiSchema: AsyncAPISchema, version: string): AsyncAPISchema { +function preparePayloadSchema(asyncapiSchema: v2.AsyncAPISchemaDefinition, version: string): v2.AsyncAPISchemaDefinition { const payloadSchema = `http://asyncapi.com/definitions/${version}/schema.json`; const definitions = asyncapiSchema.definitions; if (definitions === undefined) { diff --git a/src/schema-parser/avro-schema-parser.ts b/src/schema-parser/avro-schema-parser.ts index 1482f9457..67a687f01 100644 --- a/src/schema-parser/avro-schema-parser.ts +++ b/src/schema-parser/avro-schema-parser.ts @@ -5,6 +5,8 @@ import type { Schema } from "avsc"; import type { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from "../schema-parser"; import type { AsyncAPISchema, SchemaValidateResult } from '../types'; +import type { v2 } from '../spec-types'; + type AvroSchema = Schema & { [key: string]: any } & any; export function AvroSchemaParser(): SchemaParser { @@ -65,7 +67,7 @@ const INT_MAX = Math.pow(2, 31) - 1; const LONG_MIN = Math.pow(-2, 63); const LONG_MAX = Math.pow(2, 63) - 1; -const typeMappings: { [key: string]: JSONSchema7TypeName } = { +const typeMappings: Record = { null: 'null', boolean: 'boolean', int: 'integer', @@ -82,7 +84,7 @@ const typeMappings: { [key: string]: JSONSchema7TypeName } = { uuid: 'string', }; -function commonAttributesMapping(avroDefinition: AvroSchema, jsonSchema: AsyncAPISchema, isTopLevel: boolean): void { +function commonAttributesMapping(avroDefinition: AvroSchema, jsonSchema: v2.AsyncAPISchemaDefinition, isTopLevel: boolean): void { if (avroDefinition.doc) jsonSchema.description = avroDefinition.doc; if (avroDefinition.default !== undefined) jsonSchema.default = avroDefinition.default; @@ -112,7 +114,7 @@ function getFullyQualifiedName(avroDefinition: AvroSchema) { * @param parentJsonSchema the parent json schema which contains the required property to enrich * @param haveDefaultValue we assure that a required field does not have a default value */ -function requiredAttributesMapping(fieldDefinition: any, parentJsonSchema: AsyncAPISchema, haveDefaultValue: boolean): void { +function requiredAttributesMapping(fieldDefinition: any, parentJsonSchema: v2.AsyncAPISchemaDefinition, haveDefaultValue: boolean): void { const isUnionWithNull = Array.isArray(fieldDefinition.type) && fieldDefinition.type.includes('null'); // we assume that a union type without null and a field without default value is required @@ -122,7 +124,7 @@ function requiredAttributesMapping(fieldDefinition: any, parentJsonSchema: Async } }; -function extractNonNullableTypeIfNeeded(typeInput: any, jsonSchemaInput: AsyncAPISchema): { type: string, jsonSchema: AsyncAPISchema } { +function extractNonNullableTypeIfNeeded(typeInput: any, jsonSchemaInput: v2.AsyncAPISchemaDefinition): { type: string, jsonSchema: v2.AsyncAPISchemaDefinition } { let type = typeInput; let jsonSchema = jsonSchemaInput; // Map example to first non-null type @@ -130,13 +132,13 @@ function extractNonNullableTypeIfNeeded(typeInput: any, jsonSchemaInput: AsyncAP const pickSecondType = typeInput.length > 1 && typeInput[0] === 'null'; type = typeInput[+pickSecondType]; if (jsonSchema.oneOf !== undefined) { - jsonSchema = jsonSchema.oneOf[0] as AsyncAPISchema; + jsonSchema = jsonSchema.oneOf[0] as v2.AsyncAPISchemaDefinition; } } return { type, jsonSchema }; } -function exampleAttributeMapping(type: any, example: any, jsonSchema: AsyncAPISchema): void { +function exampleAttributeMapping(type: any, example: any, jsonSchema: v2.AsyncAPISchemaDefinition): void { if (example === undefined || jsonSchema.examples || Array.isArray(type)) return; switch (type) { @@ -151,7 +153,7 @@ function exampleAttributeMapping(type: any, example: any, jsonSchema: AsyncAPISc } }; -function additionalAttributesMapping(typeInput: any, avroDefinition: AvroSchema, jsonSchemaInput: AsyncAPISchema): void { +function additionalAttributesMapping(typeInput: any, avroDefinition: AvroSchema, jsonSchemaInput: v2.AsyncAPISchemaDefinition): void { const __ret = extractNonNullableTypeIfNeeded(typeInput, jsonSchemaInput); const type = __ret.type; const jsonSchema = __ret.jsonSchema; @@ -211,8 +213,8 @@ function cacheAvroRecordDef(cache: {[key:string]: AsyncAPISchema}, key: string, } } -async function convertAvroToJsonSchema(avroDefinition: AvroSchema , isTopLevel: boolean, recordCache: Map | any = {}): Promise { - const jsonSchema: AsyncAPISchema = {}; +async function convertAvroToJsonSchema(avroDefinition: AvroSchema , isTopLevel: boolean, recordCache: Map | any = {}): Promise { + const jsonSchema: v2.AsyncAPISchemaDefinition = {}; const isUnion = Array.isArray(avroDefinition); if (isUnion) { @@ -275,7 +277,7 @@ async function convertAvroToJsonSchema(avroDefinition: AvroSchema , isTopLevel: * @param jsonSchema the schema for the record. * @returns {Promise>} */ -async function processRecordSchema(avroDefinition: AvroSchema, recordCache: {[key:string]: AsyncAPISchema}, jsonSchema: AsyncAPISchema): Promise> { +async function processRecordSchema(avroDefinition: AvroSchema, recordCache: Record, jsonSchema: v2.AsyncAPISchemaDefinition): Promise> { const propsMap = new Map(); for (const field of avroDefinition.fields) { // If the type is a sub schema it will have been stored in the cache. @@ -307,7 +309,7 @@ async function processRecordSchema(avroDefinition: AvroSchema, recordCache: {[ke * @param recordCache the cache of previously processed record types * @returns {Promise} the mutated jsonSchema that was provided to the function */ -async function processUnionSchema(jsonSchema: AsyncAPISchema, avroDefinition: AvroSchema, isTopLevel: boolean, recordCache: {[key:string]: AsyncAPISchema}): Promise { +async function processUnionSchema(jsonSchema: v2.AsyncAPISchemaDefinition, avroDefinition: AvroSchema, isTopLevel: boolean, recordCache: Record): Promise { jsonSchema.oneOf = []; let nullDef = null; for (const avroDef of avroDefinition) { diff --git a/src/schema-parser/spectral-rule-v2.ts b/src/schema-parser/spectral-rule-v2.ts index 5b514b989..a22d0a157 100644 --- a/src/schema-parser/spectral-rule-v2.ts +++ b/src/schema-parser/spectral-rule-v2.ts @@ -85,7 +85,7 @@ function rulesetFunction(parser: Parser) { } else { return [ { - message: `Error thrown during schema validation: name: ${err.name}, message:, ${err.message}, stack: ${err.stack}`, + message: `Error thrown during schema validation, name: ${err.name}, message: ${err.message}, stack: ${err.stack}`, path, } ] as SchemaValidateResult[]; diff --git a/src/spec-types/v2.ts b/src/spec-types/v2.ts index a5dfbdeb2..63284a05d 100644 --- a/src/spec-types/v2.ts +++ b/src/spec-types/v2.ts @@ -1,4 +1,4 @@ -import type { JSONSchema7, JSONSchema7Type } from "json-schema"; +import type { JSONSchema7Version, JSONSchema7TypeName, JSONSchema7Type } from "json-schema"; export type AsyncAPIVersion = string; export type Identifier = string; @@ -225,11 +225,76 @@ export interface ComponentsObject extends SpecificationExtensions { export type SchemaObject = AsyncAPISchemaObject | ReferenceObject; -export interface AsyncAPISchemaObject extends JSONSchema7, SpecificationExtensions { +export type AsyncAPISchemaObject = AsyncAPISchemaDefinition | boolean; +export interface AsyncAPISchemaDefinition extends SpecificationExtensions { + $id?: string; + $schema?: JSONSchema7Version; + $comment?: string; + + type?: JSONSchema7TypeName | JSONSchema7TypeName[]; + enum?: JSONSchema7Type[]; + const?: JSONSchema7Type; + + multipleOf?: number; + maximum?: number; + exclusiveMaximum?: number; + minimum?: number; + exclusiveMinimum?: number; + + maxLength?: number; + minLength?: number; + pattern?: string; + + items?: AsyncAPISchemaObject | AsyncAPISchemaObject[]; + additionalItems?: AsyncAPISchemaObject; + maxItems?: number; + minItems?: number; + uniqueItems?: boolean; + contains?: AsyncAPISchemaObject; + + maxProperties?: number; + minProperties?: number; + required?: string[]; + properties?: { + [key: string]: AsyncAPISchemaObject; + }; + patternProperties?: { + [key: string]: AsyncAPISchemaObject; + }; + additionalProperties?: AsyncAPISchemaObject; + dependencies?: { + [key: string]: AsyncAPISchemaObject | string[]; + }; + propertyNames?: AsyncAPISchemaObject; + + if?: AsyncAPISchemaObject; + then?: AsyncAPISchemaObject; + else?: AsyncAPISchemaObject; + + allOf?: AsyncAPISchemaObject[]; + anyOf?: AsyncAPISchemaObject[]; + oneOf?: AsyncAPISchemaObject[]; + not?: AsyncAPISchemaObject; + + format?: string; + + contentMediaType?: string; + contentEncoding?: string; + + definitions?: { + [key: string]: AsyncAPISchemaObject; + }; + + title?: string; + description?: string; + default?: JSONSchema7Type; + readOnly?: boolean; + writeOnly?: boolean; + examples?: Array | undefined; + discriminator?: string; externalDocs?: ExternalDocumentationObject; deprecated?: boolean; - examples?: Array | undefined; [keyword: string]: any; } @@ -366,15 +431,14 @@ export interface CorrelationIDObject extends SpecificationExtensions { export interface Binding { bindingVersion?: string; - [key: string]: any; } export interface SpecificationExtensions { [extension: `x-${string}`]: SpecificationExtension; } -export type SpecificationExtension = any; +export type SpecificationExtension = T; export interface ReferenceObject { - '$ref': string; + $ref: string; } \ No newline at end of file diff --git a/test/models/collection.spec.ts b/test/models/collection.spec.ts index 8064ff6a1..5089c1fa4 100644 --- a/test/models/collection.spec.ts +++ b/test/models/collection.spec.ts @@ -11,11 +11,7 @@ describe('Collection model', function() { class Model extends Collection { override get(name: string): ItemModel | undefined { return this.collections.find(item => item.name() === name); - }; - - override has(name: string): boolean { - return this.collections.some(item => item.name() === name); - }; + } }; describe('.isEmpty()', function() { diff --git a/test/models/v2/bindings.spec.ts b/test/models/v2/bindings.spec.ts new file mode 100644 index 000000000..7b621051e --- /dev/null +++ b/test/models/v2/bindings.spec.ts @@ -0,0 +1,64 @@ +import { Bindings } from '../../../src/models/v2/bindings'; +import { Binding } from '../../../src/models/v2/binding'; +import { Extensions } from '../../../src/models/v2/extensions'; +import { Extension } from '../../../src/models/v2/extension'; + +const binding = { + http: {} +}; +const bindingItem = new Binding(binding, { asyncapi: {} as any, pointer: '', protocol: 'http' }); + +describe('Bindings model', function () { + describe('.isEmpty()', function () { + it('should return true if collection is empty', function () { + const bindings = new Bindings([]); + expect(bindings.isEmpty()).toEqual(true); + }); + + it('should return false if collection is not empty', function () { + const bindings = new Bindings([bindingItem]); + expect(bindings.isEmpty()).toEqual(false); + }); + }); + + describe('.get(id)', function () { + it('should return a specific Message Trait if it is present', function () { + const bindings = new Bindings([bindingItem]); + expect(bindings.get('http')).toBeTruthy(); + }); + + it('should return undefined if specific Message Trait is missing', function () { + const bindings = new Bindings([]); + expect(bindings.get('anotherProtocol')).toBeUndefined(); + }); + }); + + describe('.has(id)', function () { + it('should return true if the said id is available', function () { + const bindings = new Bindings([bindingItem]); + expect(bindings.has('http')).toEqual(true); + }) + + it('should return false if the Message Trait id is missing', function () { + const bindings = new Bindings([bindingItem]); + expect(bindings.has('anotherProtocol')).toEqual(false); + }) + }) + + describe('.extensions()', function () { + it('should return empty collection of extensions', function () { + const bindings = new Bindings([], {}); + expect(bindings.extensions()).toBeInstanceOf(Extensions); + expect(bindings.extensions().isEmpty()).toEqual(true); + }) + + it('should return collection of extensions', function () { + const bindings = new Bindings([], { asyncapi: {} as any, originalData: { 'x-someExtension': { someKey: 'someValue' } as any, 'x-anotherOne': { someKey: 123 } as any } }); + expect(bindings.extensions()).toBeInstanceOf(Extensions); + expect(bindings.extensions().get('x-someExtension')).toBeInstanceOf(Extension); + expect(bindings.extensions().get('x-someExtension')?.value()).toEqual({ someKey: 'someValue' }); + expect(bindings.extensions().get('x-anotherOne')).toBeInstanceOf(Extension); + expect(bindings.extensions().get('x-anotherOne')?.value()).toEqual({ someKey: 123 }); + }) + }) +}) diff --git a/test/models/v2/components.spec.ts b/test/models/v2/components.spec.ts index 760f01130..f1e079f89 100644 --- a/test/models/v2/components.spec.ts +++ b/test/models/v2/components.spec.ts @@ -55,7 +55,7 @@ describe('Components model', function() { const items = d.channels(); expect(items).toBeInstanceOf(Channels); expect(items.all()).toEqual([ - new Channel(doc.channels?.channel as ChannelObject, {id: "channel", pointer: "/components/channels/channel"} as ModelMetadata & { id: string, address: string } | undefined) + new Channel(doc.channels?.channel as ChannelObject, {id: "channel", address: '', pointer: "/components/channels/channel"} as ModelMetadata & { id: string, address: string } | undefined) ]); }); diff --git a/test/models/v2/operation-trait.spec.ts b/test/models/v2/operation-trait.spec.ts index d266bd820..f0e673251 100644 --- a/test/models/v2/operation-trait.spec.ts +++ b/test/models/v2/operation-trait.spec.ts @@ -88,6 +88,7 @@ describe('OperationTrait model', function() { const requirement = security[0].get('requirement') as SecurityRequirement; expect(requirement).toBeInstanceOf(SecurityRequirement); + expect(requirement.meta().id).toEqual('requirement'); expect(requirement.scheme()).toBeInstanceOf(SecurityScheme); expect(requirement.scopes()).toEqual([]); }); diff --git a/test/models/v2/schema.spec.ts b/test/models/v2/schema.spec.ts index cf1eac221..bf48dc73e 100644 --- a/test/models/v2/schema.spec.ts +++ b/test/models/v2/schema.spec.ts @@ -8,7 +8,7 @@ describe('Channel model', function() { describe('.id()', function() { it('should return id of model', function() { const doc = {}; - const d = new Schema(doc, { asyncapi: {} as any, pointer: '', id: 'schema', parent: null }); + const d = new Schema(doc, { asyncapi: {} as any, pointer: '', id: 'schema' }); expect(d.uid()).toEqual('schema'); }); }); diff --git a/test/models/v2/security-requirement.spec.ts b/test/models/v2/security-requirement.spec.ts index f153ecc82..31a8ad791 100644 --- a/test/models/v2/security-requirement.spec.ts +++ b/test/models/v2/security-requirement.spec.ts @@ -1,15 +1,13 @@ -import { ModelMetadata } from '../../../src/models/base'; -import { SecuritySchemeInterface } from '../../../src/models/security-scheme'; import { SecurityRequirement } from '../../../src/models/v2/security-requirement' import { SecurityScheme } from '../../../src/models/v2/security-scheme'; describe('SecurityRequirement model', function() { describe('.scheme()', function() { it('should return scheme', function() { - const doc = {}; - const expectedScheme = new SecurityScheme({type: "oauth2"}, {id: "test"} as any); - const d = new SecurityRequirement(doc, ({ id: "test", scheme: expectedScheme } as any)); // TODO Pointer + const expectedScheme = new SecurityScheme({ type: "oauth2" }); + const d = new SecurityRequirement({ scheme: expectedScheme }, { id: 'test' } as any); + expect(d.meta('id')).toEqual('test'); expect(d.scheme()).toBeInstanceOf(SecurityScheme); expect(d.scheme()).toEqual(expectedScheme); }); @@ -17,10 +15,16 @@ describe('SecurityRequirement model', function() { }) describe('.scopes()', function() { it('should return scopes', function() { - const doc = ["scope_one"]; - const d = new SecurityRequirement(doc); // TODO Pointer + const scopes = ["scope_one"]; + const scheme = new SecurityScheme({ type: "oauth2" }); + const d = new SecurityRequirement({ scheme, scopes }) + expect(d.scopes()).toEqual(scopes); + }); - expect(d.scopes()).toEqual(doc); + it('should return empty array when scopes are omit', function() { + const scheme = new SecurityScheme({ type: "oauth2" }); + const d = new SecurityRequirement({ scheme }) + expect(d.scopes()).toEqual([]); }); }); }); diff --git a/test/models/v2/security-requirements.spec.ts b/test/models/v2/security-requirements.spec.ts index 258b4bb4f..7dd983274 100644 --- a/test/models/v2/security-requirements.spec.ts +++ b/test/models/v2/security-requirements.spec.ts @@ -1,13 +1,7 @@ import { SecurityRequirements } from '../../../src/models/v2/security-requirements'; -import { Operation } from '../../../src/models/v2/operation'; import { SecurityRequirement } from '../../../src/models/v2/security-requirement'; -const operation = { - operationId: 'test', -}; -const operationItem = new Operation(operation, { asyncapi: {} as any, pointer: '', id: 'test', action: 'publish' }); - -const requirementItem = new SecurityRequirement({}, {id: "test"} as any); +const requirementItem = new SecurityRequirement({} as any, { id: 'test' } as any); describe('SecurityRequirements model', function () { describe('.isEmpty()', function () { From a3b85e7a36342840c697bb74ff7bf59167c2f3e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Tue, 6 Sep 2022 13:43:25 +0200 Subject: [PATCH 038/126] refactor: add old api (#589) --- src/constants.ts | 1 + src/models/v2/mixins.ts | 4 +- src/old-api/asyncapi.ts | 164 ++++++++++++++++ src/old-api/base.ts | 14 ++ src/old-api/channel-parameter.ts | 23 +++ src/old-api/channel.ts | 81 ++++++++ src/old-api/components.ts | 135 +++++++++++++ src/old-api/contact.ts | 17 ++ src/old-api/correlation-id.ts | 17 ++ src/old-api/external-docs.ts | 17 ++ src/old-api/info.ts | 37 ++++ src/old-api/license.ts | 13 ++ src/old-api/message-trait.ts | 106 ++++++++++ src/old-api/message.ts | 33 ++++ src/old-api/mixins.ts | 145 ++++++++++++++ src/old-api/oauth-flow.ts | 21 ++ src/old-api/operation-trait.ts | 87 +++++++++ src/old-api/operation.ts | 39 ++++ src/old-api/schema.ts | 290 ++++++++++++++++++++++++++++ src/old-api/security-requirement.ts | 5 + src/old-api/security-scheme.ts | 42 ++++ src/old-api/server-variable.ts | 38 ++++ src/old-api/server.ts | 64 ++++++ src/old-api/tag.ts | 25 +++ 24 files changed, 1416 insertions(+), 2 deletions(-) create mode 100644 src/old-api/asyncapi.ts create mode 100644 src/old-api/base.ts create mode 100644 src/old-api/channel-parameter.ts create mode 100644 src/old-api/channel.ts create mode 100644 src/old-api/components.ts create mode 100644 src/old-api/contact.ts create mode 100644 src/old-api/correlation-id.ts create mode 100644 src/old-api/external-docs.ts create mode 100644 src/old-api/info.ts create mode 100644 src/old-api/license.ts create mode 100644 src/old-api/message-trait.ts create mode 100644 src/old-api/message.ts create mode 100644 src/old-api/mixins.ts create mode 100644 src/old-api/oauth-flow.ts create mode 100644 src/old-api/operation-trait.ts create mode 100644 src/old-api/operation.ts create mode 100644 src/old-api/schema.ts create mode 100644 src/old-api/security-requirement.ts create mode 100644 src/old-api/security-scheme.ts create mode 100644 src/old-api/server-variable.ts create mode 100644 src/old-api/server.ts create mode 100644 src/old-api/tag.ts diff --git a/src/constants.ts b/src/constants.ts index 668b139a6..ed7d80309 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -12,6 +12,7 @@ export const xParserOriginalPayload = 'x-parser-original-payload'; export const xParserOriginalTraits = 'x-parser-original-traits'; export const xParserCircular = 'x-parser-circular'; +export const xParserCircularProps = 'x-parser-circular-props'; export const EXTENSION_REGEX = /^x-[\w\d\.\-\_]+$/; diff --git a/src/models/v2/mixins.ts b/src/models/v2/mixins.ts index 76478cca1..3d084e4b6 100644 --- a/src/models/v2/mixins.ts +++ b/src/models/v2/mixins.ts @@ -52,9 +52,9 @@ export function hasExternalDocs(model: BaseModel<{ externalDocs?: v2.ExternalDoc return Object.keys(model.json('externalDocs') || {}).length > 0; }; -export function externalDocs(model: BaseModel): ExternalDocumentationInterface | undefined { +export function externalDocs(model: BaseModel<{ externalDocs?: v2.ExternalDocumentationObject }>): ExternalDocumentationInterface | undefined { if (hasExternalDocs(model)) { - return new ExternalDocumentation(model.json('externalDocs')); + return new ExternalDocumentation(model.json('externalDocs') as v2.ExternalDocumentationObject); } return; }; diff --git a/src/old-api/asyncapi.ts b/src/old-api/asyncapi.ts new file mode 100644 index 000000000..b12f18dbb --- /dev/null +++ b/src/old-api/asyncapi.ts @@ -0,0 +1,164 @@ +import { SpecificationExtensionsModel, hasExternalDocs, externalDocs, tagsMixins, createMapOfType, getMapValue } from './mixins'; +import { Info } from './info'; +import { Server } from './server'; +import { Channel } from './channel'; +import { Components } from './components'; +import { Message } from './message'; +import { Schema } from './schema'; + +import { xParserCircular } from '../constants'; +import { stringify, unstringify } from '../stringify'; + +import type { v2 } from '../spec-types'; +import type { Operation } from './operation'; + +export class AsyncAPIDocument extends SpecificationExtensionsModel { + version() { + return this._json.asyncapi; + } + + info() { + return new Info(this._json.info); + } + + id() { + return this._json.id; + } + + externalDocs() { + return externalDocs(this); + } + + hasExternalDocs() { + return hasExternalDocs(this); + } + + hasTags() { + return tagsMixins.hasTags(this); + } + + tags() { + return tagsMixins.tags(this); + } + + tagNames() { + return tagsMixins.tagNames(this); + } + + hasTag(name: string) { + return tagsMixins.hasTag(this, name); + } + + tag(name: string) { + return tagsMixins.tag(this, name); + } + + hasServers() { + return !!this._json.servers; + } + + servers() { + return createMapOfType(this._json.servers, Server); + } + + serverNames() { + if (!this._json.servers) return []; + return Object.keys(this._json.servers); + } + + server(name: string) { + return getMapValue(this._json.servers, name, Server); + } + + hasDefaultContentType() { + return !!this._json.defaultContentType; + } + + defaultContentType() { + return this._json.defaultContentType || null; + } + + hasChannels() { + return !!this._json.channels; + } + + channels() { + return createMapOfType(this._json.channels, Channel); + } + + channelNames() { + if (!this._json.channels) return []; + return Object.keys(this._json.channels); + } + + channel(name: string) { + return getMapValue(this._json.channels, name, Channel); + } + + hasComponents() { + return !!this._json.components; + } + + components() { + if (!this._json.components) return null; + return new Components(this._json.components); + } + + hasMessages() { + return !!this.allMessages().size; + } + + allMessages(): Map { + const messages = new Map(); + + if (this.hasChannels()) { + this.channelNames().forEach(channelName => { + const channel = this.channel(channelName); + if (channel) { + if (channel.hasPublish()) { + (channel.publish() as Operation).messages().forEach(m => { + messages.set(m.uid(), m); + }); + } + if (channel.hasSubscribe()) { + (channel.subscribe() as Operation).messages().forEach(m => { + messages.set(m.uid(), m); + }); + } + } + }); + } + if (this.hasComponents()) { + Object.values((this.components() as Components).messages()).forEach(m => { + messages.set(m.uid(), m); + }); + } + + return messages; + } + + // TODO: Retrieve all schemas + allSchemas(): Map { + const schemas = new Map(); + + return schemas; + } + + hasCircular() { + return !!this._json[xParserCircular]; + } + + // TODO: Make traversing for old API and enable that function + // traverseSchemas(callback, schemaTypesToIterate) { + // traverseAsyncApiDocument(this, callback, schemaTypesToIterate); + // } + + static stringify(doc: AsyncAPIDocument, space: number): string | undefined { + return stringify(doc, { space }); + } + + static parse(doc: string): AsyncAPIDocument | undefined { + const possibleDocument = unstringify(doc); + return possibleDocument ? new AsyncAPIDocument(possibleDocument.json()) : undefined; + } +} \ No newline at end of file diff --git a/src/old-api/base.ts b/src/old-api/base.ts new file mode 100644 index 000000000..fc5f26c7b --- /dev/null +++ b/src/old-api/base.ts @@ -0,0 +1,14 @@ +export abstract class Base = Record> { + constructor( + protected readonly _json: J, // TODO: Add error here like in original codebase + protected readonly _meta: M = {} as M, + ) {} + + json(): T; + json(key: K): J[K]; + json(key?: keyof J) { + if (key === undefined || typeof this._json !== 'object') return this._json; + if (!this._json) return; + return this._json[key]; + } +} diff --git a/src/old-api/channel-parameter.ts b/src/old-api/channel-parameter.ts new file mode 100644 index 000000000..8e70aa2c4 --- /dev/null +++ b/src/old-api/channel-parameter.ts @@ -0,0 +1,23 @@ +import { SpecificationExtensionsModel, description, hasDescription } from './mixins'; +import { Schema } from './schema'; + +import type { v2 } from '../spec-types'; + +export class ChannelParameter extends SpecificationExtensionsModel { + description() { + return description(this); + } + + hasDescription() { + return hasDescription(this); + } + + schema() { + if (!this._json.schema) return null; + return new Schema(this._json.schema as any); + } + + location() { + return this._json.location; + } +} \ No newline at end of file diff --git a/src/old-api/channel.ts b/src/old-api/channel.ts new file mode 100644 index 000000000..068fc52c5 --- /dev/null +++ b/src/old-api/channel.ts @@ -0,0 +1,81 @@ +import { SpecificationExtensionsModel, hasDescription, description, createMapOfType, bindingsMixins, getMapValue } from './mixins'; +import { ChannelParameter } from './channel-parameter'; +import { Operation } from './operation'; + +import type { v2 } from '../spec-types'; + +export class Channel extends SpecificationExtensionsModel { + description() { + return description(this); + } + + hasDescription() { + return hasDescription(this); + } + + hasParameters() { + return !!this._json.parameters; + } + + parameters() { + return createMapOfType(this._json.parameters as Record, ChannelParameter); + } + + parameter(name: string) { + return getMapValue(this._json.parameters as Record, name, ChannelParameter); + } + + hasServers() { + return !!this._json.servers; + } + + servers() { + if (!this._json.servers) return []; + return this._json.servers; + } + + server(index: number | string) { + if (!this._json.servers) return null; + if (typeof index !== 'number') return null; + if (index > this._json.servers.length - 1) return null; + return this._json.servers[+index]; + } + + publish() { + if (!this._json.publish) return null; + return new Operation(this._json.publish, { kind: 'publish' }); + } + + subscribe() { + if (!this._json.subscribe) return null; + return new Operation(this._json.subscribe, { kind: 'subscribe' }); + } + + hasPublish() { + return !!this._json.publish; + } + + hasSubscribe() { + return !!this._json.subscribe; + } + + hasBindings() { + return bindingsMixins.hasBindings(this as any); + } + + bindings() { + return bindingsMixins.bindings(this as any); + } + + bindingProtocols() { + return bindingsMixins.bindingProtocols(this as any); + } + + hasBinding(name: string): boolean { + return bindingsMixins.hasBinding(this as any, name); + } + + binding(name: string) { + return bindingsMixins.binding(this as any, name); + } +} \ No newline at end of file diff --git a/src/old-api/components.ts b/src/old-api/components.ts new file mode 100644 index 000000000..e4db7cb41 --- /dev/null +++ b/src/old-api/components.ts @@ -0,0 +1,135 @@ +import { SpecificationExtensionsModel, createMapOfType, getMapValue } from './mixins'; +import { Channel } from './channel'; +import { Message } from './message'; +import { Schema } from './schema'; +import { SecurityScheme } from './security-scheme'; +import { Server } from './server'; +import { ChannelParameter } from './channel-parameter'; +import { CorrelationId } from './correlation-id'; +import { OperationTrait } from './operation-trait'; +import { MessageTrait } from './message-trait'; +import { ServerVariable } from './server-variable'; + +import type { v2 } from '../spec-types'; + +export class Components extends SpecificationExtensionsModel { + hasChannels() { + return !!this._json.channels; + } + + channels() { + return createMapOfType(this._json.channels as Record, Channel); + } + + channel(name: string) { + return getMapValue(this._json.channels as Record, name, Channel); + } + + hasMessages() { + return !!this._json.messages; + } + + messages() { + return createMapOfType(this._json.messages as Record, Message); + } + + message(name: string) { + return getMapValue(this._json.messages as Record, name, Message); + } + + hasSchemas() { + return !!this._json.schemas; + } + + schemas() { + return createMapOfType(this._json.schemas as any, Schema); + } + + schema(name: string) { + return getMapValue(this._json.schemas as any, name, Schema); + } + + hasSecuritySchemes() { + return !!this._json.securitySchemes; + } + + securitySchemes() { + return createMapOfType(this._json.securitySchemes as Record, SecurityScheme); + } + + securityScheme(name: string) { + return getMapValue(this._json.securitySchemes as Record, name, SecurityScheme); + } + + hasServers() { + return !!this._json.servers; + } + + servers() { + return createMapOfType(this._json.servers as Record, Server); + } + + server(name: string) { + return getMapValue(this._json.servers as Record, name, Server); + } + + hasParameters() { + return !!this._json.parameters; + } + + parameters() { + return createMapOfType(this._json.parameters as Record, ChannelParameter); + } + + parameter(name: string) { + return getMapValue(this._json.parameters as Record, name, ChannelParameter); + } + + hasCorrelationIds() { + return !!this._json.correlationIds; + } + + correlationIds() { + return createMapOfType(this._json.correlationIds as Record, CorrelationId); + } + + correlationId(name: string) { + return getMapValue(this._json.correlationIds as Record, name, CorrelationId); + } + + hasOperationTraits() { + return !!this._json.operationTraits; + } + + operationTraits() { + return createMapOfType(this._json.operationTraits as Record, OperationTrait); + } + + operationTrait(name: string) { + return getMapValue(this._json.operationTraits as Record, name, OperationTrait); + } + + hasMessageTraits() { + return !!this._json.messageTraits; + } + + messageTraits() { + return createMapOfType(this._json.messageTraits as Record, MessageTrait); + } + + messageTrait(name: string) { + return getMapValue(this._json.messageTraits as Record, name, MessageTrait); + } + + hasServerVariables() { + return !!this._json.serverVariables; + } + + serverVariables() { + return createMapOfType(this._json.serverVariables as Record, ServerVariable); + } + + serverVariable(name: string) { + return getMapValue(this._json.serverVariables as Record, name, ServerVariable); + } +} \ No newline at end of file diff --git a/src/old-api/contact.ts b/src/old-api/contact.ts new file mode 100644 index 000000000..b2ff33346 --- /dev/null +++ b/src/old-api/contact.ts @@ -0,0 +1,17 @@ +import { SpecificationExtensionsModel } from './mixins'; + +import type { v2 } from '../spec-types'; + +export class Contact extends SpecificationExtensionsModel { + name() { + return this._json.name; + } + + url() { + return this._json.url; + } + + email() { + return this._json.email; + } +} \ No newline at end of file diff --git a/src/old-api/correlation-id.ts b/src/old-api/correlation-id.ts new file mode 100644 index 000000000..7f43d5bca --- /dev/null +++ b/src/old-api/correlation-id.ts @@ -0,0 +1,17 @@ +import { SpecificationExtensionsModel, description, hasDescription } from './mixins'; + +import type { v2 } from '../spec-types'; + +export class CorrelationId extends SpecificationExtensionsModel { + description() { + return description(this); + } + + hasDescription() { + return hasDescription(this); + } + + location() { + return this._json.location; + } +} \ No newline at end of file diff --git a/src/old-api/external-docs.ts b/src/old-api/external-docs.ts new file mode 100644 index 000000000..1602bbcc7 --- /dev/null +++ b/src/old-api/external-docs.ts @@ -0,0 +1,17 @@ +import { SpecificationExtensionsModel, description, hasDescription } from './mixins'; + +import type { v2 } from '../spec-types'; + +export class ExternalDocs extends SpecificationExtensionsModel { + url() { + return this._json.url; + } + + hasDescription() { + return hasDescription(this); + } + + description() { + return description(this); + } +} \ No newline at end of file diff --git a/src/old-api/info.ts b/src/old-api/info.ts new file mode 100644 index 000000000..3a4fa1d23 --- /dev/null +++ b/src/old-api/info.ts @@ -0,0 +1,37 @@ +import { Contact } from './contact'; +import { License } from './license'; +import { SpecificationExtensionsModel, description, hasDescription } from './mixins'; + +import type { v2 } from '../spec-types'; + +export class Info extends SpecificationExtensionsModel { + title() { + return this._json.title; + } + + version() { + return this._json.version; + } + + description() { + return description(this); + } + + hasDescription() { + return hasDescription(this); + } + + termsOfService() { + return this._json.termsOfService; + } + + license() { + if (!this._json.license) return null; + return new License(this._json.license); + } + + contact() { + if (!this._json.contact) return null; + return new Contact(this._json.contact); + } +} \ No newline at end of file diff --git a/src/old-api/license.ts b/src/old-api/license.ts new file mode 100644 index 000000000..c39ce3330 --- /dev/null +++ b/src/old-api/license.ts @@ -0,0 +1,13 @@ +import { SpecificationExtensionsModel } from './mixins'; + +import type { v2 } from '../spec-types'; + +export class License extends SpecificationExtensionsModel { + name() { + return this._json.name; + } + + url() { + return this._json.url; + } +} \ No newline at end of file diff --git a/src/old-api/message-trait.ts b/src/old-api/message-trait.ts new file mode 100644 index 000000000..5feec3545 --- /dev/null +++ b/src/old-api/message-trait.ts @@ -0,0 +1,106 @@ +import { SpecificationExtensionsModel, description, hasDescription, hasExternalDocs, externalDocs, tagsMixins, bindingsMixins, getMapValue } from './mixins'; +import { CorrelationId } from './correlation-id'; +import { Schema } from './schema'; + +import type { v2 } from '../spec-types'; + +export class MessageTrait extends SpecificationExtensionsModel { + id() { + return this._json.messageId; + } + + headers() { + if (!this._json.headers) return null; + return new Schema(this._json.headers as any); + } + + header(name: string) { + if (!this._json.headers) return null; + return getMapValue((this._json.headers as any).properties || {}, name, Schema); + } + + correlationId() { + if (!this._json.correlationId) return null; + return new CorrelationId(this._json.correlationId as v2.CorrelationIDObject); + } + + schemaFormat() { + return this._json.schemaFormat as string; // Old API points always to the default schema format for given AsyncAPI version, so we need to force returned type as string. + } + + contentType() { + return this._json.contentType; + } + + name() { + return this._json.name; + } + + title() { + return this._json.title; + } + + summary() { + return this._json.summary; + } + + description() { + return description(this); + } + + hasDescription() { + return hasDescription(this); + } + + externalDocs() { + return externalDocs(this); + } + + hasExternalDocs() { + return hasExternalDocs(this); + } + + hasTags() { + return tagsMixins.hasTags(this); + } + + tags() { + return tagsMixins.tags(this); + } + + tagNames() { + return tagsMixins.tagNames(this); + } + + hasTag(name: string) { + return tagsMixins.hasTag(this, name); + } + + tag(name: string) { + return tagsMixins.tag(this, name); + } + + hasBindings() { + return bindingsMixins.hasBindings(this as any); + } + + bindings() { + return bindingsMixins.bindings(this as any); + } + + bindingProtocols() { + return bindingsMixins.bindingProtocols(this as any); + } + + hasBinding(name: string): boolean { + return bindingsMixins.hasBinding(this as any, name); + } + + binding(name: string) { + return bindingsMixins.binding(this as any, name); + } + + examples() { + return this._json.examples; + } +} diff --git a/src/old-api/message.ts b/src/old-api/message.ts new file mode 100644 index 000000000..9211d206c --- /dev/null +++ b/src/old-api/message.ts @@ -0,0 +1,33 @@ +import { MessageTrait } from './message-trait'; +import { Schema } from './schema'; + +import type { v2 } from '../spec-types'; + +export class Message extends MessageTrait { + uid() { + return this.id() || this.name() || this.ext('x-parser-message-name') as string || Buffer.from(JSON.stringify(this._json)).toString('base64'); + } + + payload() { + if (!this._json.payload) return null; + return new Schema(this._json.payload); + } + + traits() { + const traits: v2.MessageTraitObject[] = this._json['x-parser-original-traits'] || this._json.traits; + if (!traits) return []; + return traits.map(t => new MessageTrait(t)); + } + + hasTraits() { + return !!this._json['x-parser-original-traits'] || !!this._json.traits; + } + + originalPayload() { + return this._json['x-parser-original-payload'] || this.payload(); + } + + originalSchemaFormat() { + return this._json['x-parser-original-schema-format'] as string || this.schemaFormat(); + } +} diff --git a/src/old-api/mixins.ts b/src/old-api/mixins.ts new file mode 100644 index 000000000..6c5c19682 --- /dev/null +++ b/src/old-api/mixins.ts @@ -0,0 +1,145 @@ +import { Base } from './base'; +import { ExternalDocs } from './external-docs'; +import { Tag } from './tag'; + +import { EXTENSION_REGEX } from '../constants'; + +import type { v2 } from '../spec-types'; + +export abstract class SpecificationExtensionsModel = Record> extends Base { + hasExtensions() { + return !!this.extensionKeys().length; + } + + extensions(): v2.SpecificationExtensions { + const result: v2.SpecificationExtensions = {}; + Object.entries(this._json).forEach(([key, value]) => { + if (EXTENSION_REGEX.test(key)) { + result[key as `x-`] = value; + } + }); + return result; + } + + extensionKeys() { + return Object.keys(this.extensions()); + } + + extKeys() { + return this.extensionKeys(); + } + + hasExtension(extension: string) { + if (!extension.startsWith('x-')) { + return false; + } + return !!(this._json as Record)[extension]; + } + + extension(extension: string): v2.SpecificationExtension { + if (!extension.startsWith('x-')) { + return null; + } + return (this._json as Record)[extension]; + } + + hasExt(extension: string) { + return this.hasExtension(extension); + } + + ext(extension: string) { + return this.extension(extension); + } +} + +export function hasDescription(model: Base<{ description?: string }>) { + return Boolean(model.json('description')); +}; + +export function description(model: Base<{ description?: string }>): string | undefined { + return model.json('description'); +} + +export function hasExternalDocs(model: Base<{ externalDocs?: v2.ExternalDocumentationObject }>): boolean { + return Object.keys(model.json('externalDocs') || {}).length > 0; +}; + +export function externalDocs(model: Base<{ externalDocs?: v2.ExternalDocumentationObject }>): ExternalDocs | undefined { + if (hasExternalDocs(model)) { + return new ExternalDocs(model.json('externalDocs') as v2.ExternalDocumentationObject); + } + return; +}; + +export const bindingsMixins = { + hasBindings(model: Base<{ bindings?: Record }>) { + return !!Object.keys(bindingsMixins.bindings(model)).length; + }, + + bindings(model: Base<{ bindings?: Record }>): Record { + return model.json('bindings') || {} as Record; + }, + + bindingProtocols(model: Base<{ bindings?: Record }>) { + return Object.keys(bindingsMixins.bindings(model)); + }, + + hasBinding(model: Base<{ bindings?: Record }>, name: string): boolean { + return !!bindingsMixins.binding(model, name); + }, + + binding(model: Base<{ bindings?: Record }>, name: string) { + return getMapValue(model.json('bindings'), name); + }, +} + +export const tagsMixins = { + hasTags(model: Base<{ tags?: Array }>): boolean { + return !!tagsMixins.tags(model).length; + }, + + tags(model: Base<{ tags?: Array }>): Array { + const tags = model.json('tags'); + return tags ? tags.map(t => new Tag(t)) : []; + }, + + tagNames(model: Base<{ tags?: Array }>) { + const tags = model.json('tags'); + return tags ? tags.map(t => t.name) : []; + }, + + hasTag(model: Base<{ tags?: Array }>, name: string): boolean { + return !!tagsMixins.tag(model, name); + }, + + tag(model: Base<{ tags?: Array }>, name: string) { + const tg = (model.json('tags') || []).find(t => t.name === name); + return tg ? new Tag(tg) : null; + }, +} + +interface Constructor extends Function { + new (...any: any[]): T; +} +type InferModelData = T extends Base ? J : never; +type InferModelMetadata = T extends Base ? M : never; + +export function getMapValue, K extends keyof T>(obj: T | undefined, key: K): T[K] | null; +export function getMapValue(obj: Record> | undefined, key: string, Type: Constructor, meta?: InferModelMetadata): T | null; +export function getMapValue(obj: Record> | undefined, key: string, Type?: Constructor, meta?: InferModelMetadata) { + if (typeof key !== 'string' || !obj) return null; + const v = obj[String(key)]; + if (v === undefined) return null; + return Type ? new Type(v, meta) : v; +}; + +export function createMapOfType(obj: Record> | undefined, Type: Constructor, meta?: InferModelMetadata): Record { + const result: Record = {}; + if (!obj) return result; + + Object.entries(obj).forEach(([key, value]) => { + result[key] = new Type(value, meta); + }); + + return result; +}; diff --git a/src/old-api/oauth-flow.ts b/src/old-api/oauth-flow.ts new file mode 100644 index 000000000..b8e6574f6 --- /dev/null +++ b/src/old-api/oauth-flow.ts @@ -0,0 +1,21 @@ +import { SpecificationExtensionsModel } from './mixins'; + +import type { v2 } from '../spec-types'; + +export class OAuthFlow extends SpecificationExtensionsModel { + authorizationUrl() { + return this._json.authorizationUrl; + } + + tokenUrl() { + return this._json.tokenUrl; + } + + refreshUrl() { + return this._json.refreshUrl; + } + + scopes() { + return this._json.scopes; + } +} \ No newline at end of file diff --git a/src/old-api/operation-trait.ts b/src/old-api/operation-trait.ts new file mode 100644 index 000000000..964e1ac4e --- /dev/null +++ b/src/old-api/operation-trait.ts @@ -0,0 +1,87 @@ +import { SpecificationExtensionsModel, description, hasDescription, hasExternalDocs, externalDocs, tagsMixins, bindingsMixins } from './mixins'; +import { SecurityRequirement } from './security-requirement'; + +import type { v2 } from '../spec-types'; + +export class OperationTrait extends SpecificationExtensionsModel { + isPublish() { + return this._meta.kind === 'publish'; + } + + isSubscribe() { + return this._meta.kind === 'subscribe'; + } + + kind() { + return this._meta.kind; + } + + id() { + return this._json.operationId; + } + + summary() { + return this._json.summary; + } + + description() { + return description(this); + } + + hasDescription() { + return hasDescription(this); + } + + externalDocs() { + return externalDocs(this); + } + + hasExternalDocs() { + return hasExternalDocs(this); + } + + hasTags() { + return tagsMixins.hasTags(this); + } + + tags() { + return tagsMixins.tags(this); + } + + tagNames() { + return tagsMixins.tagNames(this); + } + + hasTag(name: string) { + return tagsMixins.hasTag(this, name); + } + + tag(name: string) { + return tagsMixins.tag(this, name); + } + + hasBindings() { + return bindingsMixins.hasBindings(this as any); + } + + bindings() { + return bindingsMixins.bindings(this as any); + } + + bindingProtocols() { + return bindingsMixins.bindingProtocols(this as any); + } + + hasBinding(name: string): boolean { + return bindingsMixins.hasBinding(this as any, name); + } + + binding(name: string) { + return bindingsMixins.binding(this as any, name); + } + + security() { + if (!this._json.security) return null; + return this._json.security.map(sec => new SecurityRequirement(sec)); + } +} diff --git a/src/old-api/operation.ts b/src/old-api/operation.ts new file mode 100644 index 000000000..b456d12b3 --- /dev/null +++ b/src/old-api/operation.ts @@ -0,0 +1,39 @@ +import { OperationTrait } from './operation-trait'; +import { Message } from './message'; + +import type { v2 } from '../spec-types'; + +export class Operation extends OperationTrait { + traits() { + const traits: v2.OperationTraitObject[] = this._json['x-parser-original-traits'] || this._json.traits; + if (!traits) return []; + return traits.map(t => new OperationTrait(t)); + } + + hasTraits() { + return !!this._json['x-parser-original-traits'] || !!this._json.traits; + } + + hasMultipleMessages() { + const message = this._json.message as v2.MessageObject | { oneOf: v2.MessageObject[] } + if (message && (message as { oneOf: v2.MessageObject[] }).oneOf && (message as { oneOf: v2.MessageObject[] }).oneOf.length > 1) return true; + return false; + } + + messages() { + const message = this._json.message as { oneOf: v2.MessageObject[] } + if (!message) return []; + if (message.oneOf) return message.oneOf.map(m => new Message(m)); + return [new Message(message)]; + } + + message(index?: number | string) { + const message = this._json.message as v2.MessageObject | { oneOf: v2.MessageObject[] } + if (!message) return null; + if ((message as { oneOf: v2.MessageObject[] }).oneOf && (message as { oneOf: v2.MessageObject[] }).oneOf.length === 1) return new Message((message as { oneOf: v2.MessageObject[] }).oneOf[0]); + if (!(message as { oneOf: v2.MessageObject[] }).oneOf) return new Message(message); + if (typeof index !== 'number') return null; + if (index > (message as { oneOf: v2.MessageObject[] }).oneOf.length - 1) return null; + return new Message((message as { oneOf: v2.MessageObject[] }).oneOf[+index]); + } +} diff --git a/src/old-api/schema.ts b/src/old-api/schema.ts new file mode 100644 index 000000000..dc3711ddd --- /dev/null +++ b/src/old-api/schema.ts @@ -0,0 +1,290 @@ +import { SpecificationExtensionsModel, createMapOfType, getMapValue, description, hasDescription, hasExternalDocs, externalDocs } from './mixins'; +import { xParserCircular, xParserCircularProps } from '../constants'; + +import type { Base } from './base'; +import type { v2 } from '../spec-types'; + +export class Schema extends SpecificationExtensionsModel { + uid() { + return this.$id() || this.ext('x-parser-schema-id'); + } + + $id() { + return this.__get('$id'); + } + + multipleOf() { + return this.__get('multipleOf'); + } + + maximum() { + return this.__get('maximum'); + } + + exclusiveMaximum() { + return this.__get('exclusiveMaximum'); + } + + minimum() { + return this.__get('minimum'); + } + + exclusiveMinimum() { + return this.__get('exclusiveMinimum'); + } + + maxLength() { + return this.__get('maxLength'); + } + + minLength() { + return this.__get('minLength'); + } + + pattern() { + return this.__get('pattern'); + } + + maxItems() { + return this.__get('maxItems'); + } + + minItems() { + return this.__get('minItems'); + } + + uniqueItems() { + return this.__get('uniqueItems'); + } + + maxProperties() { + return this.__get('maxProperties'); + } + + minProperties() { + return this.__get('minProperties'); + } + + required() { + return this.__get('required'); + } + + enum() { + return this.__get('enum'); + } + + type() { + return this.__get('type'); + } + + allOf() { + const allOf = this.__get('allOf'); + return !allOf ? null : allOf.map(this.__createChild); + } + + oneOf() { + const oneOf = this.__get('oneOf'); + return !oneOf ? null : oneOf.map(this.__createChild); + } + + anyOf() { + const anyOf = this.__get('anyOf'); + return !anyOf ? null : anyOf.map(this.__createChild); + } + + not() { + const not = this.__get('not'); + return !not ? null : this.__createChild(not); + } + + items() { + const items = this.__get('items'); + if (!items) return null; + if (Array.isArray(items)) { + return items.map(this.__createChild); + } + return this.__createChild(items); + } + + properties() { + return createMapOfType(this.__get('properties') as any, Schema, { parent: this }); + } + + property(name: string) { + return getMapValue(this.__get('properties') as any, name, Schema, { parent: this }); + } + + additionalProperties() { + if (typeof this._json === 'boolean') return this._json; + const additionalProperties = this.__get('additionalProperties'); + if (additionalProperties === undefined) return true; + return new Schema(additionalProperties as any, { parent: this }); + } + + additionalItems() { + if (typeof this._json === 'boolean') return this._json; + const additionalItems = this.__get('additionalItems'); + if (additionalItems === undefined) return true; + return new Schema(additionalItems as any, { parent: this }); + } + + patternProperties() { + return createMapOfType(this.__get('patternProperties') as any, Schema, { parent: this }); + } + + const() { + return this.__get('const'); + } + + contains() { + const contains = this.__get('contains'); + return typeof contains === 'undefined' ? null : this.__createChild(contains); + } + + dependencies() { + const dependencies = this.__get('dependencies'); + if (!dependencies) return null; + const result: Record = {}; + Object.entries(dependencies).forEach(([key, value]) => { + result[key] = !Array.isArray(value) ? this.__createChild(value) : value; + }); + return result; + } + + propertyNames() { + const propertyNames = this.__get('propertyNames'); + return typeof propertyNames === 'undefined' ? null : this.__createChild(propertyNames); + } + + if() { + const _if = this.__get('if'); + return typeof _if === 'undefined' ? null : this.__createChild(_if); + } + + then() { + const _then = this.__get('then'); + return typeof _then === 'undefined' ? null : this.__createChild(_then); + } + + else() { + const _else = this.__get('else'); + return typeof _else === 'undefined' ? null : this.__createChild(_else); + } + + format() { + return this.__get('format'); + } + + contentEncoding() { + return this.__get('contentEncoding'); + } + + contentMediaType() { + return this.__get('contentMediaType'); + } + + definitions() { + return createMapOfType(this.__get('definitions') as any, Schema, { parent: this }); + } + + title() { + return this.__get('title'); + } + + default() { + return this.__get('default'); + } + + deprecated() { + return this.__get('deprecated'); + } + + discriminator() { + return this.__get('discriminator'); + } + + readOnly() { + return this.__get('readOnly'); + } + + writeOnly() { + return this.__get('writeOnly'); + } + + examples() { + return this.__get('examples'); + } + + isBooleanSchema() { + return typeof this._json === 'boolean'; + } + + description() { + return description(this as Base); + } + + hasDescription() { + return hasDescription(this as Base); + } + + externalDocs() { + return externalDocs(this as Base); + } + + hasExternalDocs() { + return hasExternalDocs(this as Base); + } + + isCircular() { + if (!!this.ext(xParserCircular)) { + return true; + } + + let parent = this._meta.parent; + while (parent) { + if (parent._json === this._json) return true; + parent = parent._meta && parent._meta.parent; + } + return false; + } + + circularSchema() { + let parent = this._meta.parent; + while (parent) { + if (parent._json === this._json) return parent; + parent = parent._meta && parent._meta.parent; + } + } + + hasCircularProps() { + if (Array.isArray(this.ext(xParserCircularProps))) { + return this.ext(xParserCircularProps).length > 0; + } + return Object.entries(this.properties() || {}) + .map(([propertyName, property]) => { + if (property.isCircular()) return propertyName; + }) + .filter(Boolean) + .length > 0; + } + + circularProps() { + if (Array.isArray(this.ext(xParserCircularProps))) { + return this.ext(xParserCircularProps); + } + return Object.entries(this.properties() || {}) + .map(([propertyName, property]) => { + if (property.isCircular()) return propertyName; + }) + .filter(Boolean); + } + + protected __get(key: K): v2.AsyncAPISchemaDefinition[K] | undefined { + if (typeof this._json === 'boolean') return; + return this._json[key]; + } + + protected __createChild(s: v2.AsyncAPISchemaObject) { + return new Schema(s as any, { parent: this }) + } +} \ No newline at end of file diff --git a/src/old-api/security-requirement.ts b/src/old-api/security-requirement.ts new file mode 100644 index 000000000..2fcd885a2 --- /dev/null +++ b/src/old-api/security-requirement.ts @@ -0,0 +1,5 @@ +import { Base } from './base'; + +import type { v2 } from '../spec-types'; + +export class SecurityRequirement extends Base {} \ No newline at end of file diff --git a/src/old-api/security-scheme.ts b/src/old-api/security-scheme.ts new file mode 100644 index 000000000..9f4a70273 --- /dev/null +++ b/src/old-api/security-scheme.ts @@ -0,0 +1,42 @@ +import { SpecificationExtensionsModel, description, hasDescription, createMapOfType } from './mixins'; +import { OAuthFlow } from './oauth-flow'; + +import type { v2 } from '../spec-types'; + +export class SecurityScheme extends SpecificationExtensionsModel { // TODO: Add bindings and tags + type() { + return this._json.type; + } + + description() { + return description(this); + } + + hasDescription() { + return hasDescription(this); + } + + name() { + return this._json.name; + } + + in() { + return this._json.in; + } + + scheme() { + return this._json.scheme; + } + + bearerFormat() { + return this._json.bearerFormat; + } + + openIdConnectUrl() { + return this._json.openIdConnectUrl; + } + + flows() { + return createMapOfType(this._json.flows as Record, OAuthFlow); + } +} diff --git a/src/old-api/server-variable.ts b/src/old-api/server-variable.ts new file mode 100644 index 000000000..7d12a3f13 --- /dev/null +++ b/src/old-api/server-variable.ts @@ -0,0 +1,38 @@ +import { SpecificationExtensionsModel, description, hasDescription } from './mixins'; + +import type { v2 } from '../spec-types'; + +export class ServerVariable extends SpecificationExtensionsModel { + allowedValues() { + return this._json.enum; + } + + allows(name: string) { + if (this._json.enum === undefined) return true; + return this._json.enum.includes(name); + } + + hasAllowedValues() { + return this._json.enum !== undefined; + } + + description() { + return description(this); + } + + hasDescription() { + return hasDescription(this); + } + + defaultValue() { + return this._json.default; + } + + hasDefaultValue() { + return this._json.default !== undefined; + } + + examples() { + return this._json.examples; + } +} diff --git a/src/old-api/server.ts b/src/old-api/server.ts new file mode 100644 index 000000000..7b553fe34 --- /dev/null +++ b/src/old-api/server.ts @@ -0,0 +1,64 @@ +import { SpecificationExtensionsModel, description, hasDescription, createMapOfType, bindingsMixins, getMapValue } from './mixins'; +import { ServerVariable } from './server-variable'; +import { SecurityRequirement } from './security-requirement'; + +import type { v2 } from '../spec-types'; + +export class Server extends SpecificationExtensionsModel { + url() { + return this._json.url; + } + + protocol() { + return this._json.protocol; + } + + protocolVersion() { + return this._json.protocolVersion; + } + + description() { + return description(this); + } + + hasDescription() { + return hasDescription(this); + } + + variables() { + return createMapOfType(this._json.variables, ServerVariable); + } + + variable(name: string) { + return getMapValue(this._json.variables, name, ServerVariable); + } + + hasVariables() { + return !!this._json.variables; + } + + security() { + if (!this._json.security) return null; + return this._json.security.map(sec => new SecurityRequirement(sec)); + } + + hasBindings() { + return bindingsMixins.hasBindings(this as any); + } + + bindings() { + return bindingsMixins.bindings(this as any); + } + + bindingProtocols() { + return bindingsMixins.bindingProtocols(this as any); + } + + hasBinding(name: string): boolean { + return bindingsMixins.hasBinding(this as any, name); + } + + binding(name: string) { + return bindingsMixins.binding(this as any, name); + } +} diff --git a/src/old-api/tag.ts b/src/old-api/tag.ts new file mode 100644 index 000000000..578143700 --- /dev/null +++ b/src/old-api/tag.ts @@ -0,0 +1,25 @@ +import { SpecificationExtensionsModel, hasDescription, description, hasExternalDocs, externalDocs } from './mixins'; + +import type { v2 } from '../spec-types'; + +export class Tag extends SpecificationExtensionsModel { + name() { + return this._json.name; + } + + description() { + return description(this); + } + + hasDescription() { + return hasDescription(this); + } + + externalDocs() { + return externalDocs(this); + } + + hasExternalDocs() { + return hasExternalDocs(this); + } +} From fab07e1ed5461191811d089001535ea4f3e4321a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Tue, 6 Sep 2022 14:02:53 +0200 Subject: [PATCH 039/126] refactor: use @swc/jest to speedup test execution (#594) --- jest.config.ts | 6 +- package-lock.json | 529 ++++++++++++++++++++++++++++++++++++++++++++++ package.json | 2 + 3 files changed, 534 insertions(+), 3 deletions(-) diff --git a/jest.config.ts b/jest.config.ts index 72a24eb07..c0d80e47f 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -2,11 +2,11 @@ import type { Config } from '@jest/types'; const config: Config.InitialOptions = { coverageReporters: [ - 'json-summary', - 'lcov', 'text' ], - preset: 'ts-jest', + transform: { + "^.+\\.(t|j)sx?$": "@swc/jest", + }, // The root of your source code, typically /src // `` is a token Jest substitutes roots: [''], diff --git a/package-lock.json b/package-lock.json index eae082e37..0ae665b47 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,6 +29,8 @@ "@semantic-release/github": "7.2.3", "@semantic-release/npm": "^7.0.3", "@semantic-release/release-notes-generator": "^9.0.1", + "@swc/core": "^1.2.248", + "@swc/jest": "^0.2.22", "@types/jest": "^27.4.1", "@types/js-yaml": "^4.0.5", "@types/json-schema": "^7.0.11", @@ -981,6 +983,18 @@ "node": ">=8" } }, + "node_modules/@jest/create-cache-key-function": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/create-cache-key-function/-/create-cache-key-function-27.5.1.tgz", + "integrity": "sha512-dmH1yW+makpTSURTy8VzdUwFnfQh1G8R+DxO2Ho2FFmBbKFEVm+3jWdvFhE2VqB/LATCTokkP0dotjyQyw5/AQ==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, "node_modules/@jest/environment": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", @@ -2326,6 +2340,321 @@ "node": "^12.20 || >=14.13" } }, + "node_modules/@swc/core": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.2.248.tgz", + "integrity": "sha512-/HQJT2BIT5fkf6I6vK5fS5SKf34QedBQQNf0A38xRIAFhQjLBVWECRFySqKijaFoIzRv9Ic4DI6XwusBNfPUyA==", + "dev": true, + "hasInstallScript": true, + "bin": { + "swcx": "run_swcx.js" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/swc" + }, + "optionalDependencies": { + "@swc/core-android-arm-eabi": "1.2.248", + "@swc/core-android-arm64": "1.2.248", + "@swc/core-darwin-arm64": "1.2.248", + "@swc/core-darwin-x64": "1.2.248", + "@swc/core-freebsd-x64": "1.2.248", + "@swc/core-linux-arm-gnueabihf": "1.2.248", + "@swc/core-linux-arm64-gnu": "1.2.248", + "@swc/core-linux-arm64-musl": "1.2.248", + "@swc/core-linux-x64-gnu": "1.2.248", + "@swc/core-linux-x64-musl": "1.2.248", + "@swc/core-win32-arm64-msvc": "1.2.248", + "@swc/core-win32-ia32-msvc": "1.2.248", + "@swc/core-win32-x64-msvc": "1.2.248" + } + }, + "node_modules/@swc/core-android-arm-eabi": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-android-arm-eabi/-/core-android-arm-eabi-1.2.248.tgz", + "integrity": "sha512-+n4fyGnGWnhV/GanN99N5FkgCF0JdJVViecsA0eAEXF35+qZ0PO3YgDx3EfBXA35utddXZwskZ9q71cjSPv4Rg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "dependencies": { + "@swc/wasm": "1.2.122" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-android-arm64": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-android-arm64/-/core-android-arm64-1.2.248.tgz", + "integrity": "sha512-/eXNTuWpAiJsP/DkO2hr4B+a6oS605sRq6Y2ry7sc+7bS8jkDloryD3Lkyv6h1RgRrv33uRCt0+JLN+odeeBSA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "dependencies": { + "@swc/wasm": "1.2.130" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-android-arm64/node_modules/@swc/wasm": { + "version": "1.2.130", + "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", + "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", + "dev": true, + "optional": true + }, + "node_modules/@swc/core-darwin-arm64": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.2.248.tgz", + "integrity": "sha512-rd9UwNuFhMk4WxoFmba2HKNrPevh8p/syEtjThyQ+kcMLU1D5yA3WwYEyPvnLgytlkJvsUIjVjV15i8lNSU0TQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-darwin-x64": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.2.248.tgz", + "integrity": "sha512-ouexUd719FZ4CEGl2HDZEGJV4nAhcRJ6BUMO0IOxK0MRJEDvqTiW98nSqTbOz22GHTy9Z0n5vkc5nOkuDfTJTQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-freebsd-x64": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-freebsd-x64/-/core-freebsd-x64-1.2.248.tgz", + "integrity": "sha512-rV4h0dGqz9x5xRGGRXKQ5MzAep90PkjLIXIcPG16M8pJQFNhS6Ebslxvh//6GIvTONE9VU/86CHWJ8FJHedUPA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "dependencies": { + "@swc/wasm": "1.2.130" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-freebsd-x64/node_modules/@swc/wasm": { + "version": "1.2.130", + "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", + "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", + "dev": true, + "optional": true + }, + "node_modules/@swc/core-linux-arm-gnueabihf": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.2.248.tgz", + "integrity": "sha512-8ZOPx9+tuLQ86cvFd3+FVBsodxFWvczJRzfLamxScEGywMsQ+Jz6vMEXAo0AbSjNjJG01DXeiVkqqyCD3Rpmug==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "dependencies": { + "@swc/wasm": "1.2.130" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm-gnueabihf/node_modules/@swc/wasm": { + "version": "1.2.130", + "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", + "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", + "dev": true, + "optional": true + }, + "node_modules/@swc/core-linux-arm64-gnu": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.2.248.tgz", + "integrity": "sha512-drJgH/s9p+4DMw7E6RxNSwj9M/0o0DWfTgO11D/afSTIR9hZfZSjC1cjpGS93jnW52H6iMWPHhcTOidHtvmVPg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm64-musl": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.2.248.tgz", + "integrity": "sha512-qhntKjnAtpbHyOVJPX/LQdOdngATFXiBc8S7f5hrkn6AdK3WmojUapZbiy+0YRYxjoRrMWy/ubY8J2JWyHKeZg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-gnu": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.2.248.tgz", + "integrity": "sha512-NcWuAuWg0N7/KXOk2JtYG4crFqhWrFV2d9shDr5PLm9bAbgSebqxGjAluQbTQjGM+ABpZ3PO4IuaCfyui3abqQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-musl": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.2.248.tgz", + "integrity": "sha512-E9bog6QK3DSGcK7UdpgsPVeDDCRv/SqoFOEYRYuDEOVgNkpte37pj1IdQCmN0gDHyyvuJxQ9+Knr9282DUJmQg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-arm64-msvc": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.2.248.tgz", + "integrity": "sha512-dzAFIo5gN0hJGdC9Ikzx+gtqhePpKN2brpK0hQLlEL/+ruClxTjGxOpPO9cSHR771uO62hgNn1lN0Vhx37gQMA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "dependencies": { + "@swc/wasm": "1.2.130" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-arm64-msvc/node_modules/@swc/wasm": { + "version": "1.2.130", + "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", + "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", + "dev": true, + "optional": true + }, + "node_modules/@swc/core-win32-ia32-msvc": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.2.248.tgz", + "integrity": "sha512-TjyHVop+4+hHVziyoUpQ7mBrgGShvbcFF0f+5mVzKzBJSjbKPsZEtu5qMi12r03g+4fCCHaq1QnWeq1uhke0rQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "dependencies": { + "@swc/wasm": "1.2.130" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-ia32-msvc/node_modules/@swc/wasm": { + "version": "1.2.130", + "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", + "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", + "dev": true, + "optional": true + }, + "node_modules/@swc/core-win32-x64-msvc": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.2.248.tgz", + "integrity": "sha512-XODvZBfUSoUdj0RqUyOkBD7HydE5vSDvcYSVLCmLWsgEDPJhUWiOZHoXMEvoTu5/BDNezUZn58DlKozCzWZQsQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/jest": { + "version": "0.2.22", + "resolved": "https://registry.npmjs.org/@swc/jest/-/jest-0.2.22.tgz", + "integrity": "sha512-PIUIk9IdB1oAVfF9zNIfYoMBoEhahrrSvyryFANas7swC1cF0L5HR0f9X4qfet46oyCHCBtNcSpN0XJEOFIKlw==", + "dev": true, + "dependencies": { + "@jest/create-cache-key-function": "^27.4.2" + }, + "engines": { + "npm": ">= 7.0.0" + }, + "peerDependencies": { + "@swc/core": "*" + } + }, + "node_modules/@swc/wasm": { + "version": "1.2.122", + "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.122.tgz", + "integrity": "sha512-sM1VCWQxmNhFtdxME+8UXNyPNhxNu7zdb6ikWpz0YKAQQFRGT5ThZgJrubEpah335SUToNg8pkdDF7ibVCjxbQ==", + "dev": true, + "optional": true + }, "node_modules/@tootallnate/once": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", @@ -16394,6 +16723,15 @@ } } }, + "@jest/create-cache-key-function": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/create-cache-key-function/-/create-cache-key-function-27.5.1.tgz", + "integrity": "sha512-dmH1yW+makpTSURTy8VzdUwFnfQh1G8R+DxO2Ho2FFmBbKFEVm+3jWdvFhE2VqB/LATCTokkP0dotjyQyw5/AQ==", + "dev": true, + "requires": { + "@jest/types": "^27.5.1" + } + }, "@jest/environment": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", @@ -17469,6 +17807,197 @@ "resolved": "https://registry.npmjs.org/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.48.tgz", "integrity": "sha512-sV+51I7WYnLJnKPn2EMWgS4EUfoP4iWEbrWwbXsj0MZCB/xOK8j6+C9fntIdOM50kpx45ZLC3s6kwKivWuqvyg==" }, + "@swc/core": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.2.248.tgz", + "integrity": "sha512-/HQJT2BIT5fkf6I6vK5fS5SKf34QedBQQNf0A38xRIAFhQjLBVWECRFySqKijaFoIzRv9Ic4DI6XwusBNfPUyA==", + "dev": true, + "requires": { + "@swc/core-android-arm-eabi": "1.2.248", + "@swc/core-android-arm64": "1.2.248", + "@swc/core-darwin-arm64": "1.2.248", + "@swc/core-darwin-x64": "1.2.248", + "@swc/core-freebsd-x64": "1.2.248", + "@swc/core-linux-arm-gnueabihf": "1.2.248", + "@swc/core-linux-arm64-gnu": "1.2.248", + "@swc/core-linux-arm64-musl": "1.2.248", + "@swc/core-linux-x64-gnu": "1.2.248", + "@swc/core-linux-x64-musl": "1.2.248", + "@swc/core-win32-arm64-msvc": "1.2.248", + "@swc/core-win32-ia32-msvc": "1.2.248", + "@swc/core-win32-x64-msvc": "1.2.248" + } + }, + "@swc/core-android-arm-eabi": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-android-arm-eabi/-/core-android-arm-eabi-1.2.248.tgz", + "integrity": "sha512-+n4fyGnGWnhV/GanN99N5FkgCF0JdJVViecsA0eAEXF35+qZ0PO3YgDx3EfBXA35utddXZwskZ9q71cjSPv4Rg==", + "dev": true, + "optional": true, + "requires": { + "@swc/wasm": "1.2.122" + } + }, + "@swc/core-android-arm64": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-android-arm64/-/core-android-arm64-1.2.248.tgz", + "integrity": "sha512-/eXNTuWpAiJsP/DkO2hr4B+a6oS605sRq6Y2ry7sc+7bS8jkDloryD3Lkyv6h1RgRrv33uRCt0+JLN+odeeBSA==", + "dev": true, + "optional": true, + "requires": { + "@swc/wasm": "1.2.130" + }, + "dependencies": { + "@swc/wasm": { + "version": "1.2.130", + "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", + "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", + "dev": true, + "optional": true + } + } + }, + "@swc/core-darwin-arm64": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.2.248.tgz", + "integrity": "sha512-rd9UwNuFhMk4WxoFmba2HKNrPevh8p/syEtjThyQ+kcMLU1D5yA3WwYEyPvnLgytlkJvsUIjVjV15i8lNSU0TQ==", + "dev": true, + "optional": true + }, + "@swc/core-darwin-x64": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.2.248.tgz", + "integrity": "sha512-ouexUd719FZ4CEGl2HDZEGJV4nAhcRJ6BUMO0IOxK0MRJEDvqTiW98nSqTbOz22GHTy9Z0n5vkc5nOkuDfTJTQ==", + "dev": true, + "optional": true + }, + "@swc/core-freebsd-x64": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-freebsd-x64/-/core-freebsd-x64-1.2.248.tgz", + "integrity": "sha512-rV4h0dGqz9x5xRGGRXKQ5MzAep90PkjLIXIcPG16M8pJQFNhS6Ebslxvh//6GIvTONE9VU/86CHWJ8FJHedUPA==", + "dev": true, + "optional": true, + "requires": { + "@swc/wasm": "1.2.130" + }, + "dependencies": { + "@swc/wasm": { + "version": "1.2.130", + "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", + "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", + "dev": true, + "optional": true + } + } + }, + "@swc/core-linux-arm-gnueabihf": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.2.248.tgz", + "integrity": "sha512-8ZOPx9+tuLQ86cvFd3+FVBsodxFWvczJRzfLamxScEGywMsQ+Jz6vMEXAo0AbSjNjJG01DXeiVkqqyCD3Rpmug==", + "dev": true, + "optional": true, + "requires": { + "@swc/wasm": "1.2.130" + }, + "dependencies": { + "@swc/wasm": { + "version": "1.2.130", + "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", + "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", + "dev": true, + "optional": true + } + } + }, + "@swc/core-linux-arm64-gnu": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.2.248.tgz", + "integrity": "sha512-drJgH/s9p+4DMw7E6RxNSwj9M/0o0DWfTgO11D/afSTIR9hZfZSjC1cjpGS93jnW52H6iMWPHhcTOidHtvmVPg==", + "dev": true, + "optional": true + }, + "@swc/core-linux-arm64-musl": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.2.248.tgz", + "integrity": "sha512-qhntKjnAtpbHyOVJPX/LQdOdngATFXiBc8S7f5hrkn6AdK3WmojUapZbiy+0YRYxjoRrMWy/ubY8J2JWyHKeZg==", + "dev": true, + "optional": true + }, + "@swc/core-linux-x64-gnu": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.2.248.tgz", + "integrity": "sha512-NcWuAuWg0N7/KXOk2JtYG4crFqhWrFV2d9shDr5PLm9bAbgSebqxGjAluQbTQjGM+ABpZ3PO4IuaCfyui3abqQ==", + "dev": true, + "optional": true + }, + "@swc/core-linux-x64-musl": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.2.248.tgz", + "integrity": "sha512-E9bog6QK3DSGcK7UdpgsPVeDDCRv/SqoFOEYRYuDEOVgNkpte37pj1IdQCmN0gDHyyvuJxQ9+Knr9282DUJmQg==", + "dev": true, + "optional": true + }, + "@swc/core-win32-arm64-msvc": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.2.248.tgz", + "integrity": "sha512-dzAFIo5gN0hJGdC9Ikzx+gtqhePpKN2brpK0hQLlEL/+ruClxTjGxOpPO9cSHR771uO62hgNn1lN0Vhx37gQMA==", + "dev": true, + "optional": true, + "requires": { + "@swc/wasm": "1.2.130" + }, + "dependencies": { + "@swc/wasm": { + "version": "1.2.130", + "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", + "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", + "dev": true, + "optional": true + } + } + }, + "@swc/core-win32-ia32-msvc": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.2.248.tgz", + "integrity": "sha512-TjyHVop+4+hHVziyoUpQ7mBrgGShvbcFF0f+5mVzKzBJSjbKPsZEtu5qMi12r03g+4fCCHaq1QnWeq1uhke0rQ==", + "dev": true, + "optional": true, + "requires": { + "@swc/wasm": "1.2.130" + }, + "dependencies": { + "@swc/wasm": { + "version": "1.2.130", + "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", + "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", + "dev": true, + "optional": true + } + } + }, + "@swc/core-win32-x64-msvc": { + "version": "1.2.248", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.2.248.tgz", + "integrity": "sha512-XODvZBfUSoUdj0RqUyOkBD7HydE5vSDvcYSVLCmLWsgEDPJhUWiOZHoXMEvoTu5/BDNezUZn58DlKozCzWZQsQ==", + "dev": true, + "optional": true + }, + "@swc/jest": { + "version": "0.2.22", + "resolved": "https://registry.npmjs.org/@swc/jest/-/jest-0.2.22.tgz", + "integrity": "sha512-PIUIk9IdB1oAVfF9zNIfYoMBoEhahrrSvyryFANas7swC1cF0L5HR0f9X4qfet46oyCHCBtNcSpN0XJEOFIKlw==", + "dev": true, + "requires": { + "@jest/create-cache-key-function": "^27.4.2" + } + }, + "@swc/wasm": { + "version": "1.2.122", + "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.122.tgz", + "integrity": "sha512-sM1VCWQxmNhFtdxME+8UXNyPNhxNu7zdb6ikWpz0YKAQQFRGT5ThZgJrubEpah335SUToNg8pkdDF7ibVCjxbQ==", + "dev": true, + "optional": true + }, "@tootallnate/once": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", diff --git a/package.json b/package.json index 47403a00a..82041d06c 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,8 @@ "@semantic-release/github": "7.2.3", "@semantic-release/npm": "^7.0.3", "@semantic-release/release-notes-generator": "^9.0.1", + "@swc/core": "^1.2.248", + "@swc/jest": "^0.2.22", "@types/jest": "^27.4.1", "@types/js-yaml": "^4.0.5", "@types/json-schema": "^7.0.11", From 9896fd7a1643ab6f368d4d6e6ec7add59bec2d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Tue, 6 Sep 2022 16:08:47 +0200 Subject: [PATCH 040/126] refactor: enable eslint and make package tree-shakable (#595) --- .eslintignore | 1 + .eslintrc | 36 +- jest.config.ts | 2 +- package-lock.json | 12827 ++++++++++------ package.json | 72 +- src/constants.ts | 2 +- src/custom-operations/apply-traits.ts | 2 +- src/custom-operations/index.ts | 8 +- src/custom-operations/parse-schema.ts | 4 +- src/index.ts | 2 +- src/lint.ts | 17 +- src/models/asyncapi.ts | 34 +- src/models/base.ts | 4 +- src/models/binding.ts | 2 +- src/models/bindings.ts | 2 +- src/models/channel-parameter.ts | 6 +- src/models/channel-parameters.ts | 6 +- src/models/channel.ts | 12 +- src/models/channels.ts | 4 +- src/models/collection.ts | 4 +- src/models/contact.ts | 4 +- src/models/correlation-id.ts | 4 +- src/models/correlation-ids.ts | 2 +- src/models/extension.ts | 2 +- src/models/extensions.ts | 2 +- src/models/external-docs.ts | 4 +- src/models/info.ts | 8 +- src/models/license.ts | 4 +- src/models/message-example.ts | 2 +- src/models/message-examples.ts | 6 +- src/models/message-trait.ts | 8 +- src/models/message-traits.ts | 6 +- src/models/message.ts | 14 +- src/models/messages.ts | 4 +- src/models/operation-trait.ts | 4 +- src/models/operation-traits.ts | 6 +- src/models/operation.ts | 12 +- src/models/operations.ts | 4 +- src/models/schema.ts | 6 +- src/models/schemas.ts | 6 +- src/models/security-requirement.ts | 4 +- src/models/security-requirements.ts | 2 +- src/models/security-schemes.ts | 2 +- src/models/server-variables.ts | 2 +- src/models/server.ts | 12 +- src/models/servers.ts | 4 +- src/models/tag.ts | 4 +- src/models/tags.ts | 2 +- src/models/utils.ts | 3 +- src/models/v2/asyncapi.ts | 52 +- src/models/v2/binding.ts | 10 +- src/models/v2/bindings.ts | 18 +- src/models/v2/channel-parameter.ts | 12 +- src/models/v2/channel.ts | 36 +- src/models/v2/components.ts | 88 +- src/models/v2/contact.ts | 8 +- src/models/v2/correlation-id.ts | 8 +- src/models/v2/extension.ts | 6 +- src/models/v2/extensions.ts | 4 +- src/models/v2/external-docs.ts | 8 +- src/models/v2/info.ts | 35 +- src/models/v2/license.ts | 8 +- src/models/v2/message-example.ts | 8 +- src/models/v2/message-trait.ts | 22 +- src/models/v2/message.ts | 30 +- src/models/v2/mixins.ts | 39 +- src/models/v2/oauth-flow.ts | 2 +- src/models/v2/oauth-flows.ts | 2 +- src/models/v2/operation-trait.ts | 24 +- src/models/v2/operation.ts | 38 +- src/models/v2/schema.ts | 10 +- src/models/v2/security-scheme.ts | 6 +- src/models/v2/server-variable.ts | 4 +- src/models/v2/server.ts | 17 +- src/models/v2/tag.ts | 12 +- src/models/v2/tags.ts | 6 +- src/models/v3/asyncapi.ts | 2 +- src/old-api/asyncapi.ts | 4 +- src/old-api/info.ts | 2 +- src/old-api/mixins.ts | 18 +- src/old-api/operation.ts | 7 +- src/old-api/schema.ts | 4 +- src/parse.ts | 12 +- src/parser.ts | 16 +- src/schema-parser/asyncapi-schema-parser.ts | 16 +- src/schema-parser/avro-schema-parser.ts | 55 +- src/schema-parser/openapi-schema-parser.ts | 15 +- src/schema-parser/openapi/schema_v3.ts | 375 +- src/schema-parser/raml-schema-parser.ts | 10 +- src/schema-parser/spectral-rule-v2.ts | 27 +- src/spec-types/v2.ts | 2 +- src/spectral.ts | 14 +- src/stringify.ts | 5 +- src/types.ts | 2 +- src/utils.ts | 20 +- test/custom-operations/parse-schema.spec.ts | 6 +- test/lint.spec.ts | 4 +- test/models/asyncapi.spec.ts | 8 +- test/models/collection.spec.ts | 8 +- test/models/v2/asyncapi.spec.ts | 46 +- test/models/v2/bindings.spec.ts | 14 +- test/models/v2/channel-parameter.spec.ts | 4 +- test/models/v2/channel-parameters.spec.ts | 8 +- test/models/v2/channels.spec.ts | 20 +- test/models/v2/components.spec.ts | 28 +- test/models/v2/contact.spec.ts | 12 +- test/models/v2/correlation-id.spec.ts | 4 +- test/models/v2/info.spec.ts | 16 +- test/models/v2/license.spec.ts | 6 +- test/models/v2/message-example.spec.ts | 8 +- test/models/v2/message-examples.spec.ts | 8 +- test/models/v2/message-trait.spec.ts | 14 +- test/models/v2/message-traits.spec.ts | 8 +- test/models/v2/message.spec.ts | 2 +- test/models/v2/messages.spec.ts | 30 +- test/models/v2/mixins.spec.ts | 15 +- test/models/v2/oauth-flow.spec.ts | 30 +- test/models/v2/oauth-flows.spec.ts | 38 +- test/models/v2/operation-trait.spec.ts | 6 +- test/models/v2/operation-traits.spec.ts | 8 +- test/models/v2/operation.spec.ts | 4 +- test/models/v2/operations.spec.ts | 20 +- test/models/v2/schema.spec.ts | 14 +- test/models/v2/security-requirement.spec.ts | 17 +- test/models/v2/security-requirements.spec.ts | 8 +- test/models/v2/security-scheme.spec.ts | 104 +- test/models/v2/server-variable.spec.ts | 34 +- test/models/v2/server.spec.ts | 22 +- test/models/v2/servers.spec.ts | 36 +- test/models/v2/tag.spec.ts | 2 +- test/models/v2/tags.spec.ts | 8 +- test/models/v2/utils.ts | 38 +- test/parse.spec.ts | 4 +- test/parser.spec.ts | 2 +- .../asyncapi-schema-parser.spec.ts | 18 +- .../avro/avro-schema-parser.spec.ts | 18 +- .../openapi/openapi-schema-parser.spec.ts | 38 +- .../raml/raml-schema-parser.spec.ts | 18 +- test/schema-parser/spectral-rule-v2.spec.ts | 38 +- test/spectral.test.ts | 4 +- test/utils.spec.ts | 15 +- 141 files changed, 8921 insertions(+), 6201 deletions(-) diff --git a/.eslintignore b/.eslintignore index 7079b9966..7d8646422 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,4 @@ node_modules coverage +docs lib diff --git a/.eslintrc b/.eslintrc index 1c2ac9111..0ad8c6c4d 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,16 +1,21 @@ +parser: "@typescript-eslint/parser" + env: node: true es6: true - mocha: true + jest: true plugins: + - "@typescript-eslint" - sonarjs - - mocha - security + - github extends: + - eslint:recommended + - plugin:@typescript-eslint/eslint-recommended + - plugin:@typescript-eslint/recommended - plugin:sonarjs/recommended - - plugin:mocha/recommended - plugin:security/recommended parserOptions: @@ -23,6 +28,7 @@ rules: no-mixed-requires: 0 no-process-exit: 0 no-warning-comments: 0 + no-use-before-define: 0 curly: 0 no-multi-spaces: 0 no-alert: 0 @@ -31,6 +37,10 @@ rules: func-style: 0 max-nested-callbacks: 0 camelcase: 0 + no-dupe-class-members: 0 + security/detect-object-injection: 0 + sonarjs/no-small-switch: 0 + sonarjs/no-nested-template-literals: 0 # Warnings no-debugger: 1 @@ -60,7 +70,6 @@ rules: radix: 2 wrap-iife: [2, outside] no-shadow: 0 - no-use-before-define: [2, nofunc] no-path-concat: 2 valid-jsdoc: [0, {requireReturn: false, requireParamDescription: false, requireReturnDescription: false}] @@ -91,7 +100,6 @@ rules: arrow-spacing: [2, {before: true, after: true}] no-class-assign: 2 no-const-assign: 2 - no-dupe-class-members: 2 no-this-before-super: 2 no-var: 2 object-shorthand: [2, always] @@ -100,10 +108,26 @@ rules: prefer-spread: 2 prefer-template: 2 + # TypeScript + "@typescript-eslint/no-empty-interface": "off" + "@typescript-eslint/no-use-before-define": ["off"] + "@typescript-eslint/no-empty-function": "off" + "@typescript-eslint/ban-ts-comment": "off" + "@typescript-eslint/no-explicit-any": "off" + "@typescript-eslint/explicit-module-boundary-types": "off" + "@typescript-eslint/no-this-alias": "off" + "@typescript-eslint/no-unnecessary-type-constraint": "off" + "@typescript-eslint/ban-types": "off" + overrides: - - files: "test/**" + - files: + - "test/**" + - "*.spec.ts" + - "*.test.ts" rules: prefer-arrow-callback: 0 sonarjs/no-duplicate-string: 0 security/detect-object-injection: 0 security/detect-non-literal-fs-filename: 0 + "@typescript-eslint/no-non-null-assertion": 0 + "@typescript-eslint/no-unused-vars": 0 diff --git a/jest.config.ts b/jest.config.ts index c0d80e47f..fd08ba804 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -5,7 +5,7 @@ const config: Config.InitialOptions = { 'text' ], transform: { - "^.+\\.(t|j)sx?$": "@swc/jest", + '^.+\\.(t|j)sx?$': '@swc/jest', }, // The root of your source code, typically /src // `` is a token Jest substitutes diff --git a/package-lock.json b/package-lock.json index 0ae665b47..cc6178f5f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,20 +11,20 @@ "dependencies": { "@asyncapi/specs": "^3.1.0", "@openapi-contrib/openapi-schema-to-json-schema": "^3.2.0", - "@stoplight/spectral-core": "^1.13.1", + "@stoplight/spectral-core": "^1.14.1", "@stoplight/spectral-functions": "^1.7.1", "@stoplight/spectral-parsers": "^1.0.2", "@stoplight/spectral-rulesets": "^1.12.0", "ajv": "^8.11.0", - "avsc": "^5.7.4", - "js-yaml": "^3.14.1", - "jsonpath-plus": "^6.0.1", + "avsc": "^5.7.5", + "js-yaml": "^4.1.0", + "jsonpath-plus": "^7.2.0", "lodash": "^4.17.21", "ramldt2jsonschema": "^1.2.3", "webapi-parser": "^0.5.0" }, "devDependencies": { - "@jest/types": "^27.5.1", + "@jest/types": "^29.0.2", "@semantic-release/commit-analyzer": "^8.0.1", "@semantic-release/github": "7.2.3", "@semantic-release/npm": "^7.0.3", @@ -35,18 +35,19 @@ "@types/js-yaml": "^4.0.5", "@types/json-schema": "^7.0.11", "@types/lodash": "^4.14.179", + "@typescript-eslint/eslint-plugin": "^5.36.2", + "@typescript-eslint/parser": "^5.36.2", "conventional-changelog-conventionalcommits": "^4.2.3", "cross-env": "^7.0.3", - "eslint": "^7.27.0", - "eslint-plugin-mocha": "^7.0.1", - "eslint-plugin-security": "^1.4.0", - "eslint-plugin-sonarjs": "^0.5.0", - "jest": "^27.5.1", + "eslint": "^8.23.0", + "eslint-plugin-github": "^4.3.7", + "eslint-plugin-security": "^1.5.0", + "eslint-plugin-sonarjs": "^0.15.0", + "jest": "^29.0.2", "markdown-toc": "^1.2.0", "semantic-release": "17.4.3", - "ts-jest": "^27.1.3", - "ts-node": "^10.7.0", - "typescript": "^4.6.2" + "ts-node": "^10.9.1", + "typescript": "^4.8.2" } }, "node_modules/@ampproject/remapping": { @@ -258,9 +259,9 @@ } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz", - "integrity": "sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==", + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.19.0.tgz", + "integrity": "sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw==", "dev": true, "engines": { "node": ">=6.9.0" @@ -408,6 +409,21 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz", + "integrity": "sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, "node_modules/@babel/plugin-syntax-logical-assignment-operators": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", @@ -496,12 +512,12 @@ } }, "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.16.7.tgz", - "integrity": "sha512-YhUIJHHGkqPgEcMYkPCKTyGUdoGKWtopIycQyjJH8OjvRgOYsXsaKehLVPScKJWAULPxMa4N1vCe6szREFlZ7A==", + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.18.6.tgz", + "integrity": "sha512-mAWAuq4rvOepWCBid55JuRNvpTNf2UGVgoz4JV0fXEKolsVZDzsa4NqCef758WZJj/GDu0gVGItjKFiClTAmZA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.16.7" + "@babel/helper-plugin-utils": "^7.18.6" }, "engines": { "node": ">=6.9.0" @@ -510,6 +526,31 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/runtime": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.19.0.tgz", + "integrity": "sha512-eR8Lo9hnDS7tqkO7NsV+mKvCmv5boaXFSZ70DnfhcgiEne8hv9oCEd36Klw74EtizEqLsy4YnW8UWwpBVolHZA==", + "dev": true, + "dependencies": { + "regenerator-runtime": "^0.13.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/runtime-corejs3": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.19.0.tgz", + "integrity": "sha512-JyXXoCu1N8GLuKc2ii8y5RGma5FMpFeO2nAQIe0Yzrbq+rQnN+sFj47auLblR5ka6aHNGPDgv8G/iI2Grb0ldQ==", + "dev": true, + "dependencies": { + "core-js-pure": "^3.20.2", + "regenerator-runtime": "^0.13.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/template": { "version": "7.16.7", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz", @@ -573,45 +614,49 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, - "node_modules/@cspotcode/source-map-consumer": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz", - "integrity": "sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==", - "dev": true, - "engines": { - "node": ">= 12" - } - }, "node_modules/@cspotcode/source-map-support": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.7.0.tgz", - "integrity": "sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==", + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", "dev": true, "dependencies": { - "@cspotcode/source-map-consumer": "0.8.0" + "@jridgewell/trace-mapping": "0.3.9" }, "engines": { "node": ">=12" } }, + "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, "node_modules/@eslint/eslintrc": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.1.tgz", - "integrity": "sha512-5v7TDE9plVhvxQeWLXDTvFvJBdH6pEsdnl2g/dAptmuFEPedQ4Erq5rsDsX+mvAM610IhNaO2W5V1dOOnDKxkQ==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.1.tgz", + "integrity": "sha512-OhSY22oQQdw3zgPOOwdoj01l/Dzl1Z+xyUP33tkSN+aqyEhymJCcPHyXt+ylW8FSe0TfRC2VG+ROQOapD0aZSQ==", "dev": true, "dependencies": { "ajv": "^6.12.4", - "debug": "^4.1.1", - "espree": "^7.3.0", - "globals": "^12.1.0", - "ignore": "^4.0.6", + "debug": "^4.3.2", + "espree": "^9.4.0", + "globals": "^13.15.0", + "ignore": "^5.2.0", "import-fresh": "^3.2.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", "strip-json-comments": "^3.1.1" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/@eslint/eslintrc/node_modules/ajv": { @@ -630,14 +675,11 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "12.4.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", - "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", + "node_modules/@eslint/eslintrc/node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, - "dependencies": { - "type-fest": "^0.8.1" - }, "engines": { "node": ">=8" }, @@ -645,36 +687,49 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@eslint/eslintrc/node_modules/ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "node_modules/@humanwhocodes/config-array": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.4.tgz", + "integrity": "sha512-mXAIHxZT3Vcpg83opl1wGlVZ9xydbfZO3r5YfRSH6Gpp2J/PfdBP0wbDa2sO6/qRbcalpoevVyW6A/fI6LfeMw==", "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.4" + }, "engines": { - "node": ">= 4" + "node": ">=10.10.0" } }, - "node_modules/@eslint/eslintrc/node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "node_modules/@humanwhocodes/gitignore-to-minimatch": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz", + "integrity": "sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA==", "dev": true, - "engines": { - "node": ">=8" - }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@eslint/eslintrc/node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", "dev": true, "engines": { - "node": ">=8" + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -691,15 +746,6 @@ "node": ">=8" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", @@ -713,6 +759,19 @@ "node": ">=8" } }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", @@ -780,20 +839,20 @@ } }, "node_modules/@jest/console": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-27.5.1.tgz", - "integrity": "sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.0.2.tgz", + "integrity": "sha512-Fv02ijyhF4D/Wb3DvZO3iBJQz5DnzpJEIDBDbvje8Em099N889tNMUnBw7SalmSuOI+NflNG40RA1iK71kImPw==", "dev": true, "dependencies": { - "@jest/types": "^27.5.1", + "@jest/types": "^29.0.2", "@types/node": "*", "chalk": "^4.0.0", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", + "jest-message-util": "^29.0.2", + "jest-util": "^29.0.2", "slash": "^3.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/console/node_modules/ansi-styles": { @@ -854,6 +913,23 @@ "node": ">=8" } }, + "node_modules/@jest/console/node_modules/jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, "node_modules/@jest/console/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -867,42 +943,42 @@ } }, "node_modules/@jest/core": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-27.5.1.tgz", - "integrity": "sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.0.2.tgz", + "integrity": "sha512-imP5M6cdpHEOkmcuFYZuM5cTG1DAF7ZlVNCq1+F7kbqme2Jcl+Kh4M78hihM76DJHNkurbv4UVOnejGxBKEmww==", "dev": true, "dependencies": { - "@jest/console": "^27.5.1", - "@jest/reporters": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/console": "^29.0.2", + "@jest/reporters": "^29.0.2", + "@jest/test-result": "^29.0.2", + "@jest/transform": "^29.0.2", + "@jest/types": "^29.0.2", "@types/node": "*", "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", - "emittery": "^0.8.1", + "ci-info": "^3.2.0", "exit": "^0.1.2", "graceful-fs": "^4.2.9", - "jest-changed-files": "^27.5.1", - "jest-config": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-resolve-dependencies": "^27.5.1", - "jest-runner": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "jest-watcher": "^27.5.1", + "jest-changed-files": "^29.0.0", + "jest-config": "^29.0.2", + "jest-haste-map": "^29.0.2", + "jest-message-util": "^29.0.2", + "jest-regex-util": "^29.0.0", + "jest-resolve": "^29.0.2", + "jest-resolve-dependencies": "^29.0.2", + "jest-runner": "^29.0.2", + "jest-runtime": "^29.0.2", + "jest-snapshot": "^29.0.2", + "jest-util": "^29.0.2", + "jest-validate": "^29.0.2", + "jest-watcher": "^29.0.2", "micromatch": "^4.0.4", - "rimraf": "^3.0.0", + "pretty-format": "^29.0.2", "slash": "^3.0.0", "strip-ansi": "^6.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -913,6 +989,32 @@ } } }, + "node_modules/@jest/core/node_modules/@jest/transform": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", + "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.0.2", + "@jridgewell/trace-mapping": "^0.3.15", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.0.2", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, "node_modules/@jest/core/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -971,179 +1073,119 @@ "node": ">=8" } }, - "node_modules/@jest/core/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/create-cache-key-function": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/create-cache-key-function/-/create-cache-key-function-27.5.1.tgz", - "integrity": "sha512-dmH1yW+makpTSURTy8VzdUwFnfQh1G8R+DxO2Ho2FFmBbKFEVm+3jWdvFhE2VqB/LATCTokkP0dotjyQyw5/AQ==", - "dev": true, - "dependencies": { - "@jest/types": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/environment": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", - "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", + "node_modules/@jest/core/node_modules/jest-haste-map": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", + "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", "dev": true, "dependencies": { - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/types": "^29.0.2", + "@types/graceful-fs": "^4.1.3", "@types/node": "*", - "jest-mock": "^27.5.1" + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "jest-worker": "^29.0.2", + "micromatch": "^4.0.4", + "walker": "^1.0.8" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/fake-timers": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", - "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", - "dev": true, - "dependencies": { - "@jest/types": "^27.5.1", - "@sinonjs/fake-timers": "^8.0.1", - "@types/node": "*", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "optionalDependencies": { + "fsevents": "^2.3.2" } }, - "node_modules/@jest/globals": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-27.5.1.tgz", - "integrity": "sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==", + "node_modules/@jest/core/node_modules/jest-regex-util": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true, - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/types": "^27.5.1", - "expect": "^27.5.1" - }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/reporters": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-27.5.1.tgz", - "integrity": "sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==", + "node_modules/@jest/core/node_modules/jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "dependencies": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/types": "^29.0.2", "@types/node": "*", "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.2", + "ci-info": "^3.2.0", "graceful-fs": "^4.2.9", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^5.1.0", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.1.3", - "jest-haste-map": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "slash": "^3.0.0", - "source-map": "^0.6.0", - "string-length": "^4.0.1", - "terminal-link": "^2.0.0", - "v8-to-istanbul": "^8.1.0" + "picomatch": "^2.2.3" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/reporters/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/@jest/core/node_modules/jest-worker": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", + "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", "dev": true, "dependencies": { - "color-convert": "^2.0.1" + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/reporters/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@jest/core/node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "has-flag": "^4.0.0" }, "engines": { "node": ">=10" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "url": "https://github.com/chalk/supports-color?sponsor=1" } }, - "node_modules/@jest/reporters/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/@jest/core/node_modules/pretty-format": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", + "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, "dependencies": { - "color-name": "~1.1.4" + "@jest/schemas": "^29.0.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" }, "engines": { - "node": ">=7.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/reporters/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/@jest/reporters/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/@jest/core/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@jest/reporters/node_modules/supports-color": { + "node_modules/@jest/core/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/@jest/core/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", @@ -1155,77 +1197,584 @@ "node": ">=8" } }, - "node_modules/@jest/source-map": { + "node_modules/@jest/core/node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/@jest/create-cache-key-function": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-27.5.1.tgz", - "integrity": "sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==", + "resolved": "https://registry.npmjs.org/@jest/create-cache-key-function/-/create-cache-key-function-27.5.1.tgz", + "integrity": "sha512-dmH1yW+makpTSURTy8VzdUwFnfQh1G8R+DxO2Ho2FFmBbKFEVm+3jWdvFhE2VqB/LATCTokkP0dotjyQyw5/AQ==", + "dev": true, + "dependencies": { + "@jest/types": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/create-cache-key-function/node_modules/@jest/types": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", + "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/@jest/create-cache-key-function/node_modules/@types/yargs": { + "version": "16.0.4", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", + "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@jest/create-cache-key-function/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/create-cache-key-function/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/create-cache-key-function/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/create-cache-key-function/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/create-cache-key-function/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/create-cache-key-function/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/environment": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.0.2.tgz", + "integrity": "sha512-Yf+EYaLOrVCgts/aTS5nGznU4prZUPa5k9S63Yct8YSOKj2jkdS17hHSUKhk5jxDFMyCy1PXknypDw7vfgc/mA==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^29.0.2", + "@jest/types": "^29.0.2", + "@types/node": "*", + "jest-mock": "^29.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.0.2.tgz", + "integrity": "sha512-y/3geZ92p2/zovBm/F+ZjXUJ3thvT9IRzD6igqaWskFE2aR0idD+N/p5Lj/ZautEox/9RwEc6nqergebeh72uQ==", + "dev": true, + "dependencies": { + "expect": "^29.0.2", + "jest-snapshot": "^29.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.0.2.tgz", + "integrity": "sha512-+wcQF9khXKvAEi8VwROnCWWmHfsJYCZAs5dmuMlJBKk57S6ZN2/FQMIlo01F29fJyT8kV/xblE7g3vkIdTLOjw==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils/node_modules/jest-get-type": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", + "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.0.2.tgz", + "integrity": "sha512-2JhQeWU28fvmM5r33lxg6BxxkTKaVXs6KMaJ6eXSM8ml/MaWkt2BvbIO8G9KWAJFMdBXWbn+2h9OK1/s5urKZA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@sinonjs/fake-timers": "^9.1.2", + "@types/node": "*", + "jest-message-util": "^29.0.2", + "jest-mock": "^29.0.2", + "jest-util": "^29.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/fake-timers/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/fake-timers/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/fake-timers/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/fake-timers/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/fake-timers/node_modules/jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/globals": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.0.2.tgz", + "integrity": "sha512-4hcooSNJCVXuTu07/VJwCWW6HTnjLtQdqlcGisK6JST7z2ixa8emw4SkYsOk7j36WRc2ZUEydlUePnOIOTCNXg==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.0.2", + "@jest/expect": "^29.0.2", + "@jest/types": "^29.0.2", + "jest-mock": "^29.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.0.2.tgz", + "integrity": "sha512-Kr41qejRQHHkCgWHC9YwSe7D5xivqP4XML+PvgwsnRFaykKdNflDUb4+xLXySOU+O/bPkVdFpGzUpVNSJChCrw==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.0.2", + "@jest/test-result": "^29.0.2", + "@jest/transform": "^29.0.2", + "@jest/types": "^29.0.2", + "@jridgewell/trace-mapping": "^0.3.15", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.0.2", + "jest-util": "^29.0.2", + "jest-worker": "^29.0.2", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/reporters/node_modules/@jest/transform": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", + "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.0.2", + "@jridgewell/trace-mapping": "^0.3.15", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.0.2", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/reporters/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/reporters/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/reporters/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/reporters/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/reporters/node_modules/jest-haste-map": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", + "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", + "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "jest-worker": "^29.0.2", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/@jest/reporters/node_modules/jest-regex-util": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters/node_modules/jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters/node_modules/jest-worker": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", + "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters/node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/@jest/reporters/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/reporters/node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, "dependencies": { - "callsites": "^3.0.0", - "graceful-fs": "^4.2.9", - "source-map": "^0.6.0" + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, - "node_modules/@jest/test-result": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-27.5.1.tgz", - "integrity": "sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==", + "node_modules/@jest/schemas": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.0.0.tgz", + "integrity": "sha512-3Ab5HgYIIAnS0HjqJHQYZS+zXc4tUmTmBH3z83ajI6afXp8X3ZtdLX+nXx+I7LNkJD7uN9LAVhgnjDgZa2z0kA==", "dev": true, "dependencies": { - "@jest/console": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" + "@sinclair/typebox": "^0.24.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/test-sequencer": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz", - "integrity": "sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==", + "node_modules/@jest/source-map": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.0.0.tgz", + "integrity": "sha512-nOr+0EM8GiHf34mq2GcJyz/gYFyLQ2INDhAylrZJ9mMWoW21mLBfZa0BUVPPMxVYrLjeiRe2Z7kWXOGnS0TFhQ==", "dev": true, "dependencies": { - "@jest/test-result": "^27.5.1", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-runtime": "^27.5.1" + "@jridgewell/trace-mapping": "^0.3.15", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/transform": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.5.1.tgz", - "integrity": "sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==", + "node_modules/@jest/test-result": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.0.2.tgz", + "integrity": "sha512-b5rDc0lLL6Kx73LyCx6370k9uZ8o5UKdCpMS6Za3ke7H9y8PtAU305y6TeghpBmf2In8p/qqi3GpftgzijSsNw==", "dev": true, "dependencies": { - "@babel/core": "^7.1.0", - "@jest/types": "^27.5.1", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", + "@jest/console": "^29.0.2", + "@jest/types": "^29.0.2", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.0.2.tgz", + "integrity": "sha512-fsyZqHBlXNMv5ZqjQwCuYa2pskXCO0DVxh5aaVCuAtwzHuYEGrhordyEncBLQNuCGQSYgElrEEmS+7wwFnnMKw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.0.2", "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-util": "^27.5.1", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "source-map": "^0.6.1", - "write-file-atomic": "^3.0.0" + "jest-haste-map": "^29.0.2", + "slash": "^3.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/transform/node_modules/ansi-styles": { + "node_modules/@jest/test-sequencer/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", @@ -1240,7 +1789,7 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@jest/transform/node_modules/chalk": { + "node_modules/@jest/test-sequencer/node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", @@ -1256,7 +1805,7 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@jest/transform/node_modules/color-convert": { + "node_modules/@jest/test-sequencer/node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", @@ -1268,13 +1817,13 @@ "node": ">=7.0.0" } }, - "node_modules/@jest/transform/node_modules/color-name": { + "node_modules/@jest/test-sequencer/node_modules/color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "node_modules/@jest/transform/node_modules/has-flag": { + "node_modules/@jest/test-sequencer/node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", @@ -1283,7 +1832,87 @@ "node": ">=8" } }, - "node_modules/@jest/transform/node_modules/supports-color": { + "node_modules/@jest/test-sequencer/node_modules/jest-haste-map": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", + "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", + "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "jest-worker": "^29.0.2", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/@jest/test-sequencer/node_modules/jest-regex-util": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer/node_modules/jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer/node_modules/jest-worker": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", + "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer/node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/@jest/test-sequencer/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", @@ -1296,19 +1925,20 @@ } }, "node_modules/@jest/types": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.0.2.tgz", + "integrity": "sha512-5WNMesBLmlkt1+fVkoCjHa0X3i3q8zc4QLTDkdHgCa2gyPZc7rdlZBWgVLqwS1860ZW5xJuCDwAzqbGaXIr/ew==", "dev": true, "dependencies": { + "@jest/schemas": "^29.0.0", "@types/istanbul-lib-coverage": "^2.0.0", "@types/istanbul-reports": "^3.0.0", "@types/node": "*", - "@types/yargs": "^16.0.0", + "@types/yargs": "^17.0.8", "chalk": "^4.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/types/node_modules/ansi-styles": { @@ -1397,9 +2027,9 @@ "dev": true }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.4.tgz", - "integrity": "sha512-vFv9ttIedivx0ux3QSjhgtCVjPZd5l46ZOMDSCwnH1yUO2e964gO8LZGyv2QkqcgR6TnBU1v+1IFqmeoG+0UJQ==", + "version": "0.3.15", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.15.tgz", + "integrity": "sha512-oWZNOULl+UbhsgB51uuZzglikfIKSUBO/M9W2OfEjn7cmqoAiCgmv9lyACTUacZwBz0ITnJ2NqjU8Tx0DHL88g==", "dev": true, "dependencies": { "@jridgewell/resolve-uri": "^3.0.3", @@ -1429,12 +2059,12 @@ } }, "node_modules/@nodelib/fs.scandir": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz", - "integrity": "sha512-33g3pMJk3bg5nXbL/+CY6I2eJDzZAni49PfJnL5fghPTggPvBd/pFNSgJsdAgWptuFu7qq/ERvOYFlhvsLTCKA==", + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, "dependencies": { - "@nodelib/fs.stat": "2.0.4", + "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" }, "engines": { @@ -1442,21 +2072,21 @@ } }, "node_modules/@nodelib/fs.stat": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.4.tgz", - "integrity": "sha512-IYlHJA0clt2+Vg7bccq+TzRdJvv19c2INqBSsoOLp1je7xjtr7J26+WXR72MCdvU9q1qTzIWDfhMf+DRvQJK4Q==", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true, "engines": { "node": ">= 8" } }, "node_modules/@nodelib/fs.walk": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.6.tgz", - "integrity": "sha512-8Broas6vTtW4GIXTAHDoE32hnN2M5ykgCpWGbuXHQ15vEMqr23pB76e/GZcYsZCHALv50ktd24qhEyKr6wBtow==", + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, "dependencies": { - "@nodelib/fs.scandir": "2.1.4", + "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" }, "engines": { @@ -1745,218 +2375,59 @@ "node": ">=8" } }, - "node_modules/@semantic-release/npm/node_modules/parse-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", - "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@semantic-release/npm/node_modules/read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "dependencies": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/@semantic-release/npm/node_modules/semver": { "version": "7.3.2", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", - "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@semantic-release/release-notes-generator": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/@semantic-release/release-notes-generator/-/release-notes-generator-9.0.1.tgz", - "integrity": "sha512-bOoTiH6SiiR0x2uywSNR7uZcRDl22IpZhj+Q5Bn0v+98MFtOMhCxFhbrKQjhbYoZw7vps1mvMRmFkp/g6R9cvQ==", - "dev": true, - "dependencies": { - "conventional-changelog-angular": "^5.0.0", - "conventional-changelog-writer": "^4.0.0", - "conventional-commits-filter": "^2.0.0", - "conventional-commits-parser": "^3.0.0", - "debug": "^4.0.0", - "get-stream": "^5.0.0", - "import-from": "^3.0.0", - "into-stream": "^5.0.0", - "lodash": "^4.17.4", - "read-pkg-up": "^7.0.0" - }, - "engines": { - "node": ">=10.18" - }, - "peerDependencies": { - "semantic-release": ">=15.8.0 <18.0.0" - } - }, - "node_modules/@semantic-release/release-notes-generator/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@semantic-release/release-notes-generator/node_modules/get-stream": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", - "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", - "dev": true, - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@semantic-release/release-notes-generator/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@semantic-release/release-notes-generator/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@semantic-release/release-notes-generator/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@semantic-release/release-notes-generator/node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/@semantic-release/release-notes-generator/node_modules/parse-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", - "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@semantic-release/release-notes-generator/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@semantic-release/release-notes-generator/node_modules/read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "dependencies": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", + "dev": true, + "bin": { + "semver": "bin/semver.js" }, "engines": { - "node": ">=8" + "node": ">=10" } }, - "node_modules/@semantic-release/release-notes-generator/node_modules/read-pkg-up": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", - "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "node_modules/@semantic-release/release-notes-generator": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/@semantic-release/release-notes-generator/-/release-notes-generator-9.0.1.tgz", + "integrity": "sha512-bOoTiH6SiiR0x2uywSNR7uZcRDl22IpZhj+Q5Bn0v+98MFtOMhCxFhbrKQjhbYoZw7vps1mvMRmFkp/g6R9cvQ==", "dev": true, "dependencies": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" + "conventional-changelog-angular": "^5.0.0", + "conventional-changelog-writer": "^4.0.0", + "conventional-commits-filter": "^2.0.0", + "conventional-commits-parser": "^3.0.0", + "debug": "^4.0.0", + "get-stream": "^5.0.0", + "import-from": "^3.0.0", + "into-stream": "^5.0.0", + "lodash": "^4.17.4", + "read-pkg-up": "^7.0.0" }, "engines": { - "node": ">=8" + "node": ">=10.18" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "semantic-release": ">=15.8.0 <18.0.0" } }, - "node_modules/@semantic-release/release-notes-generator/node_modules/read-pkg/node_modules/type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "node_modules/@semantic-release/release-notes-generator/node_modules/get-stream": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", + "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, "engines": { "node": ">=8" } }, - "node_modules/@semantic-release/release-notes-generator/node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true, - "engines": { - "node": ">=8" - } + "node_modules/@sinclair/typebox": { + "version": "0.24.35", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.35.tgz", + "integrity": "sha512-iN6ehuDndiTiDz2F+Orv/+oHJR+PrGv+38oghCddpsW4YEZl5qyLsWxSwYUWrKEOfjpGtXDFW6scJtjpzSLeSw==", + "dev": true }, "node_modules/@sinonjs/commons": { "version": "1.8.3", @@ -1968,9 +2439,9 @@ } }, "node_modules/@sinonjs/fake-timers": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", - "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-9.1.2.tgz", + "integrity": "sha512-BPS4ynJW/o92PUR4wgriz2Ud5gpST5vz6GQfMixEDK0Z8ZCUv2M7SkBLykH56T++Xs+8ln9zTGbOvNGIe02/jw==", "dev": true, "dependencies": { "@sinonjs/commons": "^1.7.0" @@ -2085,9 +2556,9 @@ } }, "node_modules/@stoplight/spectral-core": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.13.1.tgz", - "integrity": "sha512-0az1LZ/A7b6u8HESzBMv65syZXjsYhpQxvtQ2F9D50G7+AvvDsvQa3myk1J3lz4hY4dU1quW2xGgan9mE+XDhA==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.14.1.tgz", + "integrity": "sha512-UMPfkrDqIMiAoZuVx4QiVV3D5fssfhDQ6R36qTP3x0hZFOeVDIFIcVdKV8lgmvsbpKaOgU/AD/2s4jScyTIqoA==", "dependencies": { "@stoplight/better-ajv-errors": "1.0.3", "@stoplight/json": "~3.20.1", @@ -2104,7 +2575,7 @@ "ajv-formats": "~2.1.0", "blueimp-md5": "2.18.0", "es-aggregate-error": "^1.0.7", - "jsonpath-plus": "6.0.1", + "jsonpath-plus": "7.1.0", "lodash": "~4.17.21", "lodash.topath": "^4.5.2", "minimatch": "3.1.2", @@ -2137,6 +2608,14 @@ "ajv": "^8.0.1" } }, + "node_modules/@stoplight/spectral-core/node_modules/jsonpath-plus": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.1.0.tgz", + "integrity": "sha512-gTaNRsPWO/K2KY6MrqaUFClF9kmuM6MFH5Dhg1VYDODgFbByw1yb7xu3hrViE/sz+dGOeMWgCzwUwQtAnCTE9g==", + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/@stoplight/spectral-formats": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.2.0.tgz", @@ -2665,27 +3144,27 @@ } }, "node_modules/@tsconfig/node10": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.8.tgz", - "integrity": "sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==", + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", "dev": true }, "node_modules/@tsconfig/node12": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.9.tgz", - "integrity": "sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==", + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", "dev": true }, "node_modules/@tsconfig/node14": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.1.tgz", - "integrity": "sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", "dev": true }, "node_modules/@tsconfig/node16": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.2.tgz", - "integrity": "sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", + "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", "dev": true }, "node_modules/@types/babel__core": { @@ -2791,12 +3270,24 @@ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, "node_modules/@types/lodash": { "version": "4.14.179", "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.179.tgz", "integrity": "sha512-uwc1x90yCKqGcIOAT6DwOSuxnrAbpkdPsUOZtwrXb4D/6wZs+6qG7QnIawDuZWg0sWpxl+ltIKCaLoMlna678w==", "dev": true }, + "node_modules/@types/minimist": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", + "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==", + "dev": true + }, "node_modules/@types/node": { "version": "17.0.21", "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.21.tgz", @@ -2815,9 +3306,9 @@ "dev": true }, "node_modules/@types/prettier": { - "version": "2.4.4", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.4.4.tgz", - "integrity": "sha512-ReVR2rLTV1kvtlWFyuot+d1pkpG2Fw/XKE3PDAdj57rbM97ttSp9JZ2UsP+2EHTylra9cUf6JA7tGwW1INzUrA==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.0.tgz", + "integrity": "sha512-RI1L7N4JnW5gQw2spvL7Sllfuf1SaHdrZpCHiBlCXjIlufi1SMNnbu2teze3/QE67Fg2tBlH7W+mi4hVNk4p0A==", "dev": true }, "node_modules/@types/retry": { @@ -2838,9 +3329,9 @@ "integrity": "sha512-FDJNkyhmKLw7uEvTxx5tSXfPeQpO0iy73Ry+PmYZJvQy0QIWX8a7kJ4kLWRf+EbTPJEPDSgPXHaM7pzr5lmvCg==" }, "node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", + "version": "17.0.12", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.12.tgz", + "integrity": "sha512-Nz4MPhecOFArtm81gFQvQqdV7XYCrWKx5uUt6GNHredFHn1i2mtWqXTON7EPXMtNi1qjtjEM/VCHDhcHsAMLXQ==", "dev": true, "dependencies": { "@types/yargs-parser": "*" @@ -2852,49 +3343,258 @@ "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", "dev": true }, - "node_modules/abab": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz", - "integrity": "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==", - "dev": true + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.36.2.tgz", + "integrity": "sha512-OwwR8LRwSnI98tdc2z7mJYgY60gf7I9ZfGjN5EjCwwns9bdTuQfAXcsjSB2wSQ/TVNYSGKf4kzVXbNGaZvwiXw==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "5.36.2", + "@typescript-eslint/type-utils": "5.36.2", + "@typescript-eslint/utils": "5.36.2", + "debug": "^4.3.4", + "functional-red-black-tree": "^1.0.1", + "ignore": "^5.2.0", + "regexpp": "^3.2.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } }, - "node_modules/abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, "dependencies": { - "event-target-shim": "^5.0.0" + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" }, "engines": { - "node": ">=6.5" + "node": ">=10" } }, - "node_modules/acorn": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz", - "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==", + "node_modules/@typescript-eslint/parser": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.36.2.tgz", + "integrity": "sha512-qS/Kb0yzy8sR0idFspI9Z6+t7mqk/oRjnAYfewG+VN73opAUvmYL3oPIMmgOX6CnQS6gmVIXGshlb5RY/R22pA==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "5.36.2", + "@typescript-eslint/types": "5.36.2", + "@typescript-eslint/typescript-estree": "5.36.2", + "debug": "^4.3.4" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.36.2.tgz", + "integrity": "sha512-cNNP51L8SkIFSfce8B1NSUBTJTu2Ts4nWeWbFrdaqjmn9yKrAaJUBHkyTZc0cL06OFHpb+JZq5AUHROS398Orw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.36.2", + "@typescript-eslint/visitor-keys": "5.36.2" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.36.2.tgz", + "integrity": "sha512-rPQtS5rfijUWLouhy6UmyNquKDPhQjKsaKH0WnY6hl/07lasj8gPaH2UD8xWkePn6SC+jW2i9c2DZVDnL+Dokw==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "5.36.2", + "@typescript-eslint/utils": "5.36.2", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.36.2.tgz", + "integrity": "sha512-9OJSvvwuF1L5eS2EQgFUbECb99F0mwq501w0H0EkYULkhFa19Qq7WFbycdw1PexAc929asupbZcgjVIe6OK/XQ==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.36.2.tgz", + "integrity": "sha512-8fyH+RfbKc0mTspfuEjlfqA4YywcwQK2Amcf6TDOwaRLg7Vwdu4bZzyvBZp4bjt1RRjQ5MDnOZahxMrt2l5v9w==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.36.2", + "@typescript-eslint/visitor-keys": "5.36.2", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, "bin": { - "acorn": "bin/acorn" + "semver": "bin/semver.js" }, "engines": { - "node": ">=0.4.0" + "node": ">=10" } }, - "node_modules/acorn-globals": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", - "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", + "node_modules/@typescript-eslint/utils": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.36.2.tgz", + "integrity": "sha512-uNcopWonEITX96v9pefk9DC1bWMdkweeSsewJ6GeC7L6j2t0SJywisgkr9wUTtXk90fi2Eljj90HSHm3OGdGRg==", "dev": true, "dependencies": { - "acorn": "^7.1.1", - "acorn-walk": "^7.1.1" + "@types/json-schema": "^7.0.9", + "@typescript-eslint/scope-manager": "5.36.2", + "@typescript-eslint/types": "5.36.2", + "@typescript-eslint/typescript-estree": "5.36.2", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/acorn-globals/node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "node_modules/@typescript-eslint/utils/node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.36.2.tgz", + "integrity": "sha512-BtRvSR6dEdrNt7Net2/XDjbYKU5Ml6GqJgVfXT0CxTCJlnIqK7rAGreuWKMT2t8cFUT2Msv5oxw0GMRD7T5J7A==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "5.36.2", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/acorn": { + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", + "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -2904,18 +3604,18 @@ } }, "node_modules/acorn-jsx": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.1.tgz", - "integrity": "sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, "node_modules/acorn-walk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", - "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", "dev": true, "engines": { "node": ">=0.4.0" @@ -2946,15 +3646,6 @@ "node": ">=8" } }, - "node_modules/aggregate-error/node_modules/indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/ajv": { "version": "8.11.0", "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", @@ -3099,21 +3790,44 @@ "integrity": "sha1-oMoMvCmltz6Dbuvhy/bF4OTrgvk=", "dev": true }, - "node_modules/array-find-index": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", - "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", + "node_modules/aria-query": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz", + "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==", "dev": true, + "dependencies": { + "@babel/runtime": "^7.10.2", + "@babel/runtime-corejs3": "^7.10.2" + }, "engines": { - "node": ">=0.10.0" + "node": ">=6.0" + } + }, + "node_modules/array-ify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", + "integrity": "sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==", + "dev": true + }, + "node_modules/array-includes": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.5.tgz", + "integrity": "sha512-iSDYZMMyTPkiFasVqfuAQnWAYcvO/SeBSCGKePoEthjp4LEMTe4uLc7b025o4jAZpHhihh8xPo99TNWUWWkGDQ==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5", + "get-intrinsic": "^1.1.1", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/array-ify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", - "integrity": "sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=", - "dev": true - }, "node_modules/array-union": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", @@ -3123,23 +3837,38 @@ "node": ">=8" } }, + "node_modules/array.prototype.flat": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.0.tgz", + "integrity": "sha512-12IUEkHsAhA4DY5s0FPgNXIdc8VRSqD9Zp78a5au9abH/SOBrsp082JOWFNTjkMozh8mqcdiKuaLGhPeYztxSw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.2", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/arrify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", - "dev": true, - "engines": { - "node": ">=8" - } + "node_modules/ast-types-flow": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", + "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", + "dev": true }, "node_modules/astring": { "version": "1.8.3", @@ -3149,12 +3878,6 @@ "astring": "bin/astring" } }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", - "dev": true - }, "node_modules/at-least-node": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", @@ -3174,105 +3897,28 @@ } }, "node_modules/avsc": { - "version": "5.7.4", - "resolved": "https://registry.npmjs.org/avsc/-/avsc-5.7.4.tgz", - "integrity": "sha512-z4oo33lmnvvNRqfUe3YjDGGpqu/L2+wXBIhMtwq6oqZ+exOUAkQYM6zd2VWKF7AIlajOF8ZZuPFfryTG9iLC/w==", + "version": "5.7.5", + "resolved": "https://registry.npmjs.org/avsc/-/avsc-5.7.5.tgz", + "integrity": "sha512-vkyt1+sj6qaD9oMtqqLE2pZ2IcHI66kFx8lpnVuXp55SnNPjKghfOhVfZpaDwDPpY0oVWP3Qu1uHZWxF3E856A==", "engines": { "node": ">=0.11" } }, - "node_modules/babel-jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz", - "integrity": "sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==", - "dev": true, - "dependencies": { - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^27.5.1", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "slash": "^3.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.8.0" - } - }, - "node_modules/babel-jest/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/babel-jest/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/babel-jest/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/axe-core": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.4.3.tgz", + "integrity": "sha512-32+ub6kkdhhWick/UjvEwRchgoetXqTK14INLqbGm5U2TzBkBNF3nQtLYm8ovxSkQWArjEQvftCKryjZaATu3w==", "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, "engines": { - "node": ">=7.0.0" + "node": ">=4" } }, - "node_modules/babel-jest/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "node_modules/axobject-query": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.2.0.tgz", + "integrity": "sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA==", "dev": true }, - "node_modules/babel-jest/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-jest/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/babel-plugin-istanbul": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", @@ -3289,21 +3935,6 @@ "node": ">=8" } }, - "node_modules/babel-plugin-jest-hoist": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz", - "integrity": "sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==", - "dev": true, - "dependencies": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.0.0", - "@types/babel__traverse": "^7.0.6" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, "node_modules/babel-preset-current-node-syntax": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", @@ -3327,22 +3958,6 @@ "@babel/core": "^7.0.0" } }, - "node_modules/babel-preset-jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz", - "integrity": "sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==", - "dev": true, - "dependencies": { - "babel-plugin-jest-hoist": "^27.5.1", - "babel-preset-current-node-syntax": "^1.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, "node_modules/balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", @@ -3386,45 +4001,32 @@ "node": ">=8" } }, - "node_modules/browser-process-hrtime": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", - "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", - "dev": true - }, "node_modules/browserslist": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.20.0.tgz", - "integrity": "sha512-bnpOoa+DownbciXj0jVGENf8VYQnE2LNWomhYuCsMmmx9Jd9lwq0WXODuwpSsp8AVdKM2/HorrzxAfbKvWTByQ==", + "version": "4.21.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.3.tgz", + "integrity": "sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ==", "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], "dependencies": { - "caniuse-lite": "^1.0.30001313", - "electron-to-chromium": "^1.4.76", - "escalade": "^3.1.1", - "node-releases": "^2.0.2", - "picocolors": "^1.0.0" + "caniuse-lite": "^1.0.30001370", + "electron-to-chromium": "^1.4.202", + "node-releases": "^2.0.6", + "update-browserslist-db": "^1.0.5" }, "bin": { "browserslist": "cli.js" }, "engines": { "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - } - }, - "node_modules/bs-logger": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", - "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", - "dev": true, - "dependencies": { - "fast-json-stable-stringify": "2.x" - }, - "engines": { - "node": ">= 6" } }, "node_modules/bser": { @@ -3464,26 +4066,29 @@ } }, "node_modules/camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true, "engines": { - "node": ">=4" + "node": ">=6" } }, "node_modules/camelcase-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", - "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", + "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", "dev": true, "dependencies": { - "camelcase": "^4.1.0", - "map-obj": "^2.0.0", - "quick-lru": "^1.0.0" + "camelcase": "^5.3.1", + "map-obj": "^4.0.0", + "quick-lru": "^4.0.1" }, "engines": { - "node": ">=4" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/caniuse-lite": { @@ -3635,18 +4240,6 @@ "node": ">=0.1.90" } }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, "node_modules/commander": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", @@ -3656,13 +4249,13 @@ } }, "node_modules/compare-func": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.2.tgz", - "integrity": "sha1-md0LpFfh+bxyKxLAjsM+6rMfpkg=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz", + "integrity": "sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==", "dev": true, "dependencies": { "array-ify": "^1.0.0", - "dot-prop": "^3.0.0" + "dot-prop": "^5.1.0" } }, "node_modules/concat-map": { @@ -3695,54 +4288,54 @@ } }, "node_modules/conventional-changelog-angular": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.6.tgz", - "integrity": "sha512-QDEmLa+7qdhVIv8sFZfVxU1VSyVvnXPsxq8Vam49mKUcO1Z8VTLEJk9uI21uiJUsnmm0I4Hrsdc9TgkOQo9WSA==", + "version": "5.0.13", + "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.13.tgz", + "integrity": "sha512-i/gipMxs7s8L/QeuavPF2hLnJgH6pEZAttySB6aiQLWcX3puWDL3ACVmvBhJGxnAy52Qc15ua26BufY6KpmrVA==", "dev": true, "dependencies": { - "compare-func": "^1.3.1", + "compare-func": "^2.0.0", "q": "^1.5.1" }, "engines": { - "node": ">=6.9.0" + "node": ">=10" } }, "node_modules/conventional-changelog-conventionalcommits": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.2.3.tgz", - "integrity": "sha512-atGa+R4vvEhb8N/8v3IoW59gCBJeeFiX6uIbPu876ENAmkMwsenyn0R21kdDHJFLQdy6zW4J6b4xN8KI3b9oww==", + "version": "4.6.3", + "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.3.tgz", + "integrity": "sha512-LTTQV4fwOM4oLPad317V/QNQ1FY4Hju5qeBIM1uTHbrnCE+Eg4CdRZ3gO2pUeR+tzWdp80M2j3qFFEDWVqOV4g==", "dev": true, "dependencies": { - "compare-func": "^1.3.1", + "compare-func": "^2.0.0", "lodash": "^4.17.15", "q": "^1.5.1" }, "engines": { - "node": ">=6.9.0" + "node": ">=10" } }, "node_modules/conventional-changelog-writer": { - "version": "4.0.11", - "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-4.0.11.tgz", - "integrity": "sha512-g81GQOR392I+57Cw3IyP1f+f42ME6aEkbR+L7v1FBBWolB0xkjKTeCWVguzRrp6UiT1O6gBpJbEy2eq7AnV1rw==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-4.1.0.tgz", + "integrity": "sha512-WwKcUp7WyXYGQmkLsX4QmU42AZ1lqlvRW9mqoyiQzdD+rJWbTepdWoKJuwXTS+yq79XKnQNa93/roViPQrAQgw==", "dev": true, "dependencies": { - "compare-func": "^1.3.1", - "conventional-commits-filter": "^2.0.2", + "compare-func": "^2.0.0", + "conventional-commits-filter": "^2.0.7", "dateformat": "^3.0.0", - "handlebars": "^4.4.0", + "handlebars": "^4.7.6", "json-stringify-safe": "^5.0.1", "lodash": "^4.17.15", - "meow": "^5.0.0", + "meow": "^8.0.0", "semver": "^6.0.0", "split": "^1.0.0", - "through2": "^3.0.0" + "through2": "^4.0.0" }, "bin": { "conventional-changelog-writer": "cli.js" }, "engines": { - "node": ">=6.9.0" + "node": ">=10" } }, "node_modules/conventional-changelog-writer/node_modules/semver": { @@ -3755,37 +4348,36 @@ } }, "node_modules/conventional-commits-filter": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-2.0.2.tgz", - "integrity": "sha512-WpGKsMeXfs21m1zIw4s9H5sys2+9JccTzpN6toXtxhpw2VNF2JUXwIakthKBy+LN4DvJm+TzWhxOMWOs1OFCFQ==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-2.0.7.tgz", + "integrity": "sha512-ASS9SamOP4TbCClsRHxIHXRfcGCnIoQqkvAzCSbZzTFLfcTqJVugB0agRgsEELsqaeWgsXv513eS116wnlSSPA==", "dev": true, "dependencies": { "lodash.ismatch": "^4.4.0", "modify-values": "^1.0.0" }, "engines": { - "node": ">=6.9.0" + "node": ">=10" } }, "node_modules/conventional-commits-parser": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.0.8.tgz", - "integrity": "sha512-YcBSGkZbYp7d+Cr3NWUeXbPDFUN6g3SaSIzOybi8bjHL5IJ5225OSCxJJ4LgziyEJ7AaJtE9L2/EU6H7Nt/DDQ==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.2.4.tgz", + "integrity": "sha512-nK7sAtfi+QXbxHCYfhpZsfRtaitZLIA6889kFIouLvz6repszQDgxBu7wf2WbU+Dco7sAnNCJYERCwt54WPC2Q==", "dev": true, "dependencies": { "is-text-path": "^1.0.1", "JSONStream": "^1.0.4", "lodash": "^4.17.15", - "meow": "^5.0.0", - "split2": "^2.0.0", - "through2": "^3.0.0", - "trim-off-newlines": "^1.0.0" + "meow": "^8.0.0", + "split2": "^3.0.0", + "through2": "^4.0.0" }, "bin": { "conventional-commits-parser": "cli.js" }, "engines": { - "node": ">=6.9.0" + "node": ">=10" } }, "node_modules/convert-source-map": { @@ -3797,6 +4389,17 @@ "safe-buffer": "~5.1.1" } }, + "node_modules/core-js-pure": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.25.0.tgz", + "integrity": "sha512-IeHpLwk3uoci37yoI2Laty59+YqH9x5uR65/yiA0ARAJrTrN4YU0rmauLWfvqOuk77SlNJXj2rM6oT/dBD87+A==", + "dev": true, + "hasInstallScript": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, "node_modules/core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", @@ -3862,136 +4465,57 @@ }, "bin": { "cross-env": "src/bin/cross-env.js", - "cross-env-shell": "src/bin/cross-env-shell.js" - }, - "engines": { - "node": ">=10.14", - "npm": ">=6", - "yarn": ">=1" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/cross-spawn/node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/crypto-random-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", - "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/cssom": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", - "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", - "dev": true - }, - "node_modules/cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "dev": true, - "dependencies": { - "cssom": "~0.3.6" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cssstyle/node_modules/cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", - "dev": true - }, - "node_modules/currently-unhandled": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", - "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", - "dev": true, - "dependencies": { - "array-find-index": "^1.0.1" + "cross-env-shell": "src/bin/cross-env-shell.js" }, "engines": { - "node": ">=0.10.0" + "node": ">=10.14", + "npm": ">=6", + "yarn": ">=1" } }, - "node_modules/data-urls": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", - "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, "dependencies": { - "abab": "^2.0.3", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.0.0" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, "engines": { - "node": ">=10" + "node": ">= 8" } }, - "node_modules/data-urls/node_modules/tr46": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", - "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "node_modules/cross-spawn/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, "dependencies": { - "punycode": "^2.1.1" + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" }, "engines": { - "node": ">=8" + "node": ">= 8" } }, - "node_modules/data-urls/node_modules/webidl-conversions": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", - "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", + "node_modules/crypto-random-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", + "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", "dev": true, "engines": { - "node": ">=10.4" + "node": ">=8" } }, - "node_modules/data-urls/node_modules/whatwg-url": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", - "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", - "dev": true, - "dependencies": { - "lodash": "^4.7.0", - "tr46": "^2.1.0", - "webidl-conversions": "^6.1.0" - }, - "engines": { - "node": ">=10" - } + "node_modules/damerau-levenshtein": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", + "dev": true }, "node_modules/dateformat": { "version": "3.0.3", @@ -4003,19 +4527,26 @@ } }, "node_modules/debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", - "deprecated": "Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)", + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, "dependencies": { - "ms": "^2.1.1" + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, "node_modules/decamelize": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", "dev": true, "engines": { "node": ">=0.10.0" @@ -4024,7 +4555,7 @@ "node_modules/decamelize-keys": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", - "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=", + "integrity": "sha512-ocLWuYzRPoS9bfiSdDd3cxvrzovVMZnRDVEzAs+hWIVXGDbHxWMECij2OBuyB/An0FFW/nLuq6Kv1i/YC5Qfzg==", "dev": true, "dependencies": { "decamelize": "^1.1.0", @@ -4037,22 +4568,16 @@ "node_modules/decamelize-keys/node_modules/map-obj": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", + "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/decimal.js": { - "version": "10.3.1", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.3.1.tgz", - "integrity": "sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ==", - "dev": true - }, "node_modules/dedent": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", - "integrity": "sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=", + "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", "dev": true }, "node_modules/deep-extend": { @@ -4094,15 +4619,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/dependency-graph": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", @@ -4186,37 +4702,16 @@ "node": ">=6.0.0" } }, - "node_modules/domexception": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", - "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", - "dev": true, - "dependencies": { - "webidl-conversions": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/domexception/node_modules/webidl-conversions": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", - "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/dot-prop": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-3.0.0.tgz", - "integrity": "sha1-G3CK8JSknJoOfbyteQq6U52sEXc=", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", + "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", "dev": true, "dependencies": { - "is-obj": "^1.0.0" + "is-obj": "^2.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, "node_modules/duplexer2": { @@ -4229,18 +4724,18 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.4.77", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.77.tgz", - "integrity": "sha512-fiDxw8mO9Ph1Z0bjX2sFTPpi0J0QkOiwOJF+5Q0J0baNc/F9lLePAvDPlnoxvbUYYMizqrKPeotRRkJ9LtxAew==", + "version": "1.4.242", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.242.tgz", + "integrity": "sha512-nPdgMWtjjWGCtreW/2adkrB2jyHjClo9PtVhR6rW+oxa4E4Wom642Tn+5LslHP3XPL5MCpkn5/UEY60EXylNeQ==", "dev": true }, "node_modules/emittery": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", - "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==", + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.10.2.tgz", + "integrity": "sha512-aITqOwnLanpHLNXZJENbOgjUBeHocD+xsSJmNrjovKBW5HbSpW3d1pEls7GFQPUWXiwG9+0P4GtHfEqC/4M0Iw==", "dev": true, "engines": { - "node": ">=10" + "node": ">=12" }, "funding": { "url": "https://github.com/sindresorhus/emittery?sponsor=1" @@ -4261,27 +4756,6 @@ "once": "^1.4.0" } }, - "node_modules/enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", - "dev": true, - "dependencies": { - "ansi-colors": "^4.1.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/enquirer/node_modules/ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/env-ci": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/env-ci/-/env-ci-5.0.2.tgz", @@ -4398,6 +4872,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/es-shim-unscopables": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", + "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + } + }, "node_modules/es-to-primitive": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", @@ -4432,225 +4915,406 @@ "node": ">=0.8.0" } }, - "node_modules/escodegen": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", - "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", + "node_modules/eslint": { + "version": "8.23.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.23.0.tgz", + "integrity": "sha512-pBG/XOn0MsJcKcTRLr27S5HpzQo4kLr+HjLQIyK4EiCsijDl/TB+h5uEuJU6bQ8Edvwz1XWOjpaP2qgnXGpTcA==", "dev": true, "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", + "@eslint/eslintrc": "^1.3.1", + "@humanwhocodes/config-array": "^0.10.4", + "@humanwhocodes/gitignore-to-minimatch": "^1.0.2", + "@humanwhocodes/module-importer": "^1.0.1", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.1.1", + "eslint-utils": "^3.0.0", + "eslint-visitor-keys": "^3.3.0", + "espree": "^9.4.0", + "esquery": "^1.4.0", "esutils": "^2.0.2", - "optionator": "^0.8.1" + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^6.0.1", + "globals": "^13.15.0", + "globby": "^11.1.0", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "regexpp": "^3.2.0", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0" }, "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" + "eslint": "bin/eslint.js" }, "engines": { - "node": ">=6.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, - "optionalDependencies": { - "source-map": "~0.6.1" + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/escodegen/node_modules/levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "node_modules/eslint-config-prettier": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz", + "integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==", + "dev": true, + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz", + "integrity": "sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==", + "dev": true, + "dependencies": { + "debug": "^3.2.7", + "resolve": "^1.20.0" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz", + "integrity": "sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==", "dev": true, "dependencies": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" + "debug": "^3.2.7" }, "engines": { - "node": ">= 0.8.0" + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" } }, - "node_modules/escodegen/node_modules/optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "node_modules/eslint-plugin-escompat": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-escompat/-/eslint-plugin-escompat-3.2.0.tgz", + "integrity": "sha512-obXAKKiZE/wB2fgIw0ZxCmp+8vpDsUw2inkaok1i7OVxY4cEds4Y9YCoky0f5V+q8rqZpTUJDv1R9ykWbXLX8Q==", "dev": true, "dependencies": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" + "browserslist": "^4.21.0" }, - "engines": { - "node": ">= 0.8.0" + "peerDependencies": { + "eslint": ">=5.14.1" } }, - "node_modules/escodegen/node_modules/prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", + "node_modules/eslint-plugin-eslint-comments": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz", + "integrity": "sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==", "dev": true, + "dependencies": { + "escape-string-regexp": "^1.0.5", + "ignore": "^5.0.5" + }, "engines": { - "node": ">= 0.8.0" + "node": ">=6.5.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=4.19.1" } }, - "node_modules/escodegen/node_modules/type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "node_modules/eslint-plugin-filenames": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-filenames/-/eslint-plugin-filenames-1.3.2.tgz", + "integrity": "sha512-tqxJTiEM5a0JmRCUYQmxw23vtTxrb2+a3Q2mMOPhFxvt7ZQQJmdiuMby9B/vUAuVMghyP7oET+nIf6EO6CBd/w==", + "dev": true, + "dependencies": { + "lodash.camelcase": "4.3.0", + "lodash.kebabcase": "4.1.1", + "lodash.snakecase": "4.1.1", + "lodash.upperfirst": "4.3.1" + }, + "peerDependencies": { + "eslint": "*" + } + }, + "node_modules/eslint-plugin-github": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-4.3.7.tgz", + "integrity": "sha512-tYZdXvAEz4JCMrC4NHIUoJTsLUvydCxff5OqB5hgU0vQbLmMkw6VOipN2KNe+T06pEhAWs1KBEwyq9cmMWRe7A==", + "dev": true, + "dependencies": { + "@typescript-eslint/eslint-plugin": "^5.1.0", + "@typescript-eslint/parser": "^5.1.0", + "eslint-config-prettier": ">=8.0.0", + "eslint-plugin-escompat": "^3.1.0", + "eslint-plugin-eslint-comments": "^3.2.0", + "eslint-plugin-filenames": "^1.3.2", + "eslint-plugin-i18n-text": "^1.0.1", + "eslint-plugin-import": "^2.25.2", + "eslint-plugin-jsx-a11y": "^6.6.0", + "eslint-plugin-no-only-tests": "^2.6.0", + "eslint-plugin-prettier": "^4.0.0", + "eslint-rule-documentation": ">=1.0.0", + "jsx-ast-utils": "^3.3.2", + "prettier": "^2.2.1", + "svg-element-attributes": "^1.3.1" + }, + "bin": { + "eslint-ignore-errors": "bin/eslint-ignore-errors.js" + }, + "peerDependencies": { + "eslint": "^8.0.1" + } + }, + "node_modules/eslint-plugin-i18n-text": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-i18n-text/-/eslint-plugin-i18n-text-1.0.1.tgz", + "integrity": "sha512-3G3UetST6rdqhqW9SfcfzNYMpQXS7wNkJvp6dsXnjzGiku6Iu5hl3B0kmk6lIcFPwYjhQIY+tXVRtK9TlGT7RA==", + "dev": true, + "peerDependencies": { + "eslint": ">=5.0.0" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.26.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz", + "integrity": "sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==", "dev": true, "dependencies": { - "prelude-ls": "~1.1.2" + "array-includes": "^3.1.4", + "array.prototype.flat": "^1.2.5", + "debug": "^2.6.9", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.6", + "eslint-module-utils": "^2.7.3", + "has": "^1.0.3", + "is-core-module": "^2.8.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.values": "^1.1.5", + "resolve": "^1.22.0", + "tsconfig-paths": "^3.14.1" }, "engines": { - "node": ">= 0.8.0" + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" } }, - "node_modules/eslint": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.27.0.tgz", - "integrity": "sha512-JZuR6La2ZF0UD384lcbnd0Cgg6QJjiCwhMD6eU4h/VGPcVGwawNNzKU41tgokGXnfjOOyI6QIffthhJTPzzuRA==", + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, "dependencies": { - "@babel/code-frame": "7.12.11", - "@eslint/eslintrc": "^0.4.1", - "ajv": "^6.10.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.0.1", - "doctrine": "^3.0.0", - "enquirer": "^2.3.5", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^2.1.0", - "eslint-visitor-keys": "^2.0.0", - "espree": "^7.3.1", - "esquery": "^1.4.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.0.0", - "globals": "^13.6.0", - "ignore": "^4.0.6", - "import-fresh": "^3.0.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "js-yaml": "^3.13.1", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.0.4", - "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "progress": "^2.0.0", - "regexpp": "^3.1.0", - "semver": "^7.2.1", - "strip-ansi": "^6.0.0", - "strip-json-comments": "^3.1.0", - "table": "^6.0.9", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" + "ms": "2.0.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "dependencies": { + "esutils": "^2.0.2" }, - "bin": { - "eslint": "bin/eslint.js" + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "node_modules/eslint-plugin-jsx-a11y": { + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.6.1.tgz", + "integrity": "sha512-sXgFVNHiWffBq23uiS/JaP6eVR622DqwB4yTzKvGZGcPq6/yZ3WmOZfuBks/vHWo9GaFOqC2ZK4i6+C35knx7Q==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.18.9", + "aria-query": "^4.2.2", + "array-includes": "^3.1.5", + "ast-types-flow": "^0.0.7", + "axe-core": "^4.4.3", + "axobject-query": "^2.2.0", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "has": "^1.0.3", + "jsx-ast-utils": "^3.3.2", + "language-tags": "^1.0.5", + "minimatch": "^3.1.2", + "semver": "^6.3.0" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=4.0" }, - "funding": { - "url": "https://opencollective.com/eslint" + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-jsx-a11y/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/eslint-plugin-jsx-a11y/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-no-only-tests": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-2.6.0.tgz", + "integrity": "sha512-T9SmE/g6UV1uZo1oHAqOvL86XWl7Pl2EpRpnLI8g/bkJu+h7XBCB+1LnubRZ2CUQXj805vh4/CYZdnqtVaEo2Q==", + "dev": true, + "engines": { + "node": ">=4.0.0" } }, - "node_modules/eslint-plugin-mocha": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-7.0.1.tgz", - "integrity": "sha512-zkQRW9UigRaayGm/pK9TD5RjccKXSgQksNtpsXbG9b6L5I+jNx7m98VUbZ4w1H1ArlNA+K7IOH+z8TscN6sOYg==", + "node_modules/eslint-plugin-prettier": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", + "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", "dev": true, "dependencies": { - "eslint-utils": "^2.0.0", - "ramda": "^0.27.0" + "prettier-linter-helpers": "^1.0.0" }, "engines": { - "node": ">=10.0.0" + "node": ">=12.0.0" }, "peerDependencies": { - "eslint": ">=7.0.0" + "eslint": ">=7.28.0", + "prettier": ">=2.0.0" + }, + "peerDependenciesMeta": { + "eslint-config-prettier": { + "optional": true + } } }, "node_modules/eslint-plugin-security": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-1.4.0.tgz", - "integrity": "sha512-xlS7P2PLMXeqfhyf3NpqbvbnW04kN8M9NtmhpR3XGyOvt/vNKS7XPXT5EDbwKW9vCjWH4PpfQvgD/+JgN0VJKA==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-1.5.0.tgz", + "integrity": "sha512-hAFVwLZ/UeXrlyVD2TDarv/x00CoFVpaY0IUZhKjPjiFxqkuQVixsK4f2rxngeQOqSxi6OUjzJM/jMwKEVjJ8g==", "dev": true, "dependencies": { - "safe-regex": "^1.1.0" + "safe-regex": "^2.1.1" } }, "node_modules/eslint-plugin-sonarjs": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.5.0.tgz", - "integrity": "sha512-XW5MnzlRjhXpIdbULC/qAdJYHWw3rRLws/DyawdlPU/IdVr9AmRK1r2LaCvabwKOAW2XYYSo3kDX58E4MrB7PQ==", + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.15.0.tgz", + "integrity": "sha512-LuxHdAe6VqSbi1phsUvNjbmXLuvlobmryQJJNyQYbdubCfz6K8tmgoqNiJPnz0pP2AbYDbtuPm0ajOMgMrC+dQ==", "dev": true, "engines": { - "node": ">=6" + "node": ">=12" }, "peerDependencies": { - "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" + "eslint": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "node_modules/eslint-rule-documentation": { + "version": "1.0.23", + "resolved": "https://registry.npmjs.org/eslint-rule-documentation/-/eslint-rule-documentation-1.0.23.tgz", + "integrity": "sha512-pWReu3fkohwyvztx/oQWWgld2iad25TfUdi6wvhhaDPIQjHU/pyvlKgXFw1kX31SQK2Nq9MH+vRDWB0ZLy8fYw==", "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, "engines": { - "node": ">=8.0.0" + "node": ">=4.0.0" } }, - "node_modules/eslint-scope/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "node_modules/eslint-scope": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", + "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", "dev": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, "engines": { - "node": ">=4.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, "node_modules/eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", "dev": true, "dependencies": { - "eslint-visitor-keys": "^1.1.0" + "eslint-visitor-keys": "^2.0.0" }, "engines": { - "node": ">=6" + "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" }, "funding": { "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": ">=5" } }, - "node_modules/eslint-visitor-keys": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.2.0.tgz", - "integrity": "sha512-WFb4ihckKil6hu3Dp798xdzSfddwKKU3+nGniKF6HfeW6OLd2OUDEPP7TcHtB5+QXOKg2s6B2DaMPE1Nn/kxKQ==", + "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", "dev": true, "engines": { - "node": ">=4" + "node": ">=10" } }, - "node_modules/eslint/node_modules/@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", + "node_modules/eslint-visitor-keys": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", + "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", "dev": true, - "dependencies": { - "@babel/highlight": "^7.10.4" + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, "node_modules/eslint/node_modules/ajv": { @@ -4742,13 +5406,32 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/node_modules/eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", + "node_modules/eslint/node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, "engines": { "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" } }, "node_modules/eslint/node_modules/has-flag": { @@ -4760,28 +5443,58 @@ "node": ">=8" } }, - "node_modules/eslint/node_modules/ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "node_modules/eslint/node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, + "dependencies": { + "p-locate": "^5.0.0" + }, "engines": { - "node": ">= 4" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/node_modules/semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "node_modules/eslint/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "dependencies": { - "lru-cache": "^6.0.0" + "yocto-queue": "^0.1.0" }, - "bin": { - "semver": "bin/semver.js" + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "dependencies": { + "p-limit": "^3.0.2" }, "engines": { "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" } }, "node_modules/eslint/node_modules/strip-json-comments": { @@ -4797,38 +5510,20 @@ } }, "node_modules/espree": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", - "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", + "version": "9.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.0.tgz", + "integrity": "sha512-DQmnRpLj7f6TgN/NYb0MTzJXL+vJF9h3pHy4JhCIs3zwcgez8xmGg3sXHcEO97BrmO2OSvCwMdfdlyl+E9KjOw==", "dev": true, "dependencies": { - "acorn": "^7.4.0", - "acorn-jsx": "^5.3.1", - "eslint-visitor-keys": "^1.3.0" + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.3.0" }, "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/espree/node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true, - "bin": { - "acorn": "bin/acorn" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/espree/node_modules/eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true, - "engines": { - "node": ">=4" + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/esprima": { @@ -4910,110 +5605,278 @@ "strip-final-newline": "^2.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/execa/node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/execa/node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expand-range": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", + "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", + "dev": true, + "dependencies": { + "fill-range": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-range/node_modules/fill-range": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", + "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", + "dev": true, + "dependencies": { + "is-number": "^2.1.0", + "isobject": "^2.0.0", + "randomatic": "^3.0.0", + "repeat-element": "^1.1.2", + "repeat-string": "^1.5.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-range/node_modules/is-number": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", + "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", + "dev": true, + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-range/node_modules/isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "dependencies": { + "isarray": "1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expect": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.0.2.tgz", + "integrity": "sha512-JeJlAiLKn4aApT4pzUXBVxl3NaZidWIOdg//smaIlP9ZMBDkHZGFd9ubphUZP9pUyDEo7bC6M0IIZR51o75qQw==", + "dev": true, + "dependencies": { + "@jest/expect-utils": "^29.0.2", + "jest-get-type": "^29.0.0", + "jest-matcher-utils": "^29.0.2", + "jest-message-util": "^29.0.2", + "jest-util": "^29.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/expect/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/expect/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/expect/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/expect/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/expect/node_modules/diff-sequences": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.0.0.tgz", + "integrity": "sha512-7Qe/zd1wxSDL4D/X/FPjOMB+ZMDt71W94KYaq05I2l0oQqgXgs7s4ftYYmV38gBSrPz2vcygxfs1xn0FT+rKNA==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/execa/node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "node_modules/expect/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, "engines": { - "node": ">=10.17.0" + "node": ">=8" } }, - "node_modules/execa/node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "node_modules/expect/node_modules/jest-diff": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.0.2.tgz", + "integrity": "sha512-b9l9970sa1rMXH1owp2Woprmy42qIwwll/htsw4Gf7+WuSp5bZxNhkKHDuCGKL+HoHn1KhcC+tNEeAPYBkD2Jg==", "dev": true, "dependencies": { - "mimic-fn": "^2.1.0" + "chalk": "^4.0.0", + "diff-sequences": "^29.0.0", + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.2" }, "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "node_modules/expect/node_modules/jest-get-type": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", + "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true, "engines": { - "node": ">= 0.8.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/expand-range": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", - "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", + "node_modules/expect/node_modules/jest-matcher-utils": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.0.2.tgz", + "integrity": "sha512-s62YkHFBfAx0JLA2QX1BlnCRFwHRobwAv2KP1+YhjzF6ZCbCVrf1sG8UJyn62ZUsDaQKpoo86XMTjkUyO5aWmQ==", "dev": true, "dependencies": { - "fill-range": "^2.1.0" + "chalk": "^4.0.0", + "jest-diff": "^29.0.2", + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.2" }, "engines": { - "node": ">=0.10.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/expand-range/node_modules/fill-range": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", - "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", + "node_modules/expect/node_modules/jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "dependencies": { - "is-number": "^2.1.0", - "isobject": "^2.0.0", - "randomatic": "^3.0.0", - "repeat-element": "^1.1.2", - "repeat-string": "^1.5.2" + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" }, "engines": { - "node": ">=0.10.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/expand-range/node_modules/is-number": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", + "node_modules/expect/node_modules/pretty-format": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", + "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, "dependencies": { - "kind-of": "^3.0.2" + "@jest/schemas": "^29.0.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" }, "engines": { - "node": ">=0.10.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/expand-range/node_modules/isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "node_modules/expect/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, - "dependencies": { - "isarray": "1.0.0" - }, "engines": { - "node": ">=0.10.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/expect": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", - "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", + "node_modules/expect/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/expect/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "dependencies": { - "@jest/types": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1" + "has-flag": "^4.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=8" } }, "node_modules/extend-shallow": { @@ -5033,21 +5896,26 @@ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, + "node_modules/fast-diff": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", + "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", + "dev": true + }, "node_modules/fast-glob": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.5.tgz", - "integrity": "sha512-2DtFcgT68wiTTiwZ2hNdJfcHNke9XOfnwmBRWXhmeKM8rF0TGwmC/Qto3S7RoZKp5cilZbxzO5iTNTQsJ+EeDg==", + "version": "3.2.11", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", + "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", "dev": true, "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.0", + "glob-parent": "^5.1.2", "merge2": "^1.3.0", - "micromatch": "^4.0.2", - "picomatch": "^2.2.1" + "micromatch": "^4.0.4" }, "engines": { - "node": ">=8" + "node": ">=8.6.0" } }, "node_modules/fast-json-stable-stringify": { @@ -5067,9 +5935,9 @@ "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==" }, "node_modules/fastq": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.11.0.tgz", - "integrity": "sha512-7Eczs8gIPDrVzT+EksYBcupqMyxSHXXrHOLRRxU2/DicV8789MRBRR8+Hc2uWzUupOs4YS4JzBmBxjjCVBxD/g==", + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", + "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", "dev": true, "dependencies": { "reusify": "^1.0.4" @@ -5178,20 +6046,6 @@ "node": ">=0.10.0" } }, - "node_modules/form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "dev": true, - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/from2": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", @@ -5406,9 +6260,9 @@ } }, "node_modules/globals": { - "version": "13.9.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.9.0.tgz", - "integrity": "sha512-74/FduwI/JaIrr1H8e71UbDE+5x7pIPs1C2rrwC52SszOo043CsWOZEMW7o2Y58xwm9b+0RBKDxY5n2sUpEFxA==", + "version": "13.17.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", + "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", "dev": true, "dependencies": { "type-fest": "^0.20.2" @@ -5447,16 +6301,16 @@ } }, "node_modules/globby": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.3.tgz", - "integrity": "sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg==", + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dev": true, "dependencies": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", - "fast-glob": "^3.1.1", - "ignore": "^5.1.4", - "merge2": "^1.3.0", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", "slash": "^3.0.0" }, "engines": { @@ -5472,6 +6326,12 @@ "integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==", "dev": true }, + "node_modules/grapheme-splitter": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", + "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", + "dev": true + }, "node_modules/gray-matter": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-2.1.1.tgz", @@ -5488,6 +6348,19 @@ "node": ">=0.10.0" } }, + "node_modules/gray-matter/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/gulp-header": { "version": "1.8.12", "resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.12.tgz", @@ -5531,6 +6404,15 @@ "uglify-js": "^3.1.4" } }, + "node_modules/hard-rejection": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", + "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -5610,18 +6492,6 @@ "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", "dev": true }, - "node_modules/html-encoding-sniffer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", - "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", - "dev": true, - "dependencies": { - "whatwg-encoding": "^1.0.5" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/html-escaper": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", @@ -5664,22 +6534,10 @@ "node": ">=8.12.0" } }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/ignore": { - "version": "5.1.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", - "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", + "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", "dev": true, "engines": { "node": ">= 4" @@ -5757,12 +6615,12 @@ } }, "node_modules/indent-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", - "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", "dev": true, "engines": { - "node": ">=4" + "node": ">=8" } }, "node_modules/inflight": { @@ -5925,9 +6783,9 @@ } }, "node_modules/is-glob": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", - "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, "dependencies": { "is-extglob": "^2.1.1" @@ -5971,18 +6829,18 @@ } }, "node_modules/is-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", - "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", + "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, "node_modules/is-plain-obj": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", - "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", + "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", "dev": true, "engines": { "node": ">=0.10.0" @@ -5997,12 +6855,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-potential-custom-element-name": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", - "dev": true - }, "node_modules/is-regex": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", @@ -6078,12 +6930,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, "node_modules/is-weakref": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", @@ -6207,9 +7053,9 @@ } }, "node_modules/istanbul-reports": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.4.tgz", - "integrity": "sha512-r1/DshN4KSE7xWEknZLLLLDn5CJybV3nw01VTkp6D5jzLuELlcbudfj/eSQFvrKsJuTVCGnePO7ho82Nw9zzfw==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", + "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", "dev": true, "dependencies": { "html-escaper": "^2.0.0", @@ -6229,20 +7075,21 @@ } }, "node_modules/jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", - "integrity": "sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.0.2.tgz", + "integrity": "sha512-enziNbNUmXTcTaTP/Uq5rV91r0Yqy2UKzLUIabxMpGm9YHz8qpbJhiRnNVNvm6vzWfzt/0o97NEHH8/3udoClA==", "dev": true, "dependencies": { - "@jest/core": "^27.5.1", + "@jest/core": "^29.0.2", + "@jest/types": "^29.0.2", "import-local": "^3.0.2", - "jest-cli": "^27.5.1" + "jest-cli": "^29.0.2" }, "bin": { "jest": "bin/jest.js" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -6254,47 +7101,61 @@ } }, "node_modules/jest-changed-files": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz", - "integrity": "sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==", + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.0.0.tgz", + "integrity": "sha512-28/iDMDrUpGoCitTURuDqUzWQoWmOmOKOFST1mi2lwh62X4BFf6khgH3uSuo1e49X/UDjuApAj3w0wLOex4VPQ==", "dev": true, "dependencies": { - "@jest/types": "^27.5.1", "execa": "^5.0.0", - "throat": "^6.0.1" + "p-limit": "^3.1.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-changed-files/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/jest-circus": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-27.5.1.tgz", - "integrity": "sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.0.2.tgz", + "integrity": "sha512-YTPEsoE1P1X0bcyDQi3QIkpt2Wl9om9k2DQRuLFdS5x8VvAKSdYAVJufgvudhnKgM8WHvvAzhBE+1DRQB8x1CQ==", "dev": true, "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/environment": "^29.0.2", + "@jest/expect": "^29.0.2", + "@jest/test-result": "^29.0.2", + "@jest/types": "^29.0.2", "@types/node": "*", "chalk": "^4.0.0", "co": "^4.6.0", "dedent": "^0.7.0", - "expect": "^27.5.1", "is-generator-fn": "^2.0.0", - "jest-each": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1", + "jest-each": "^29.0.2", + "jest-matcher-utils": "^29.0.2", + "jest-message-util": "^29.0.2", + "jest-runtime": "^29.0.2", + "jest-snapshot": "^29.0.2", + "jest-util": "^29.0.2", + "p-limit": "^3.1.0", + "pretty-format": "^29.0.2", "slash": "^3.0.0", - "stack-utils": "^2.0.3", - "throat": "^6.0.1" + "stack-utils": "^2.0.3" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-circus/node_modules/ansi-styles": { @@ -6303,58 +7164,170 @@ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "dependencies": { - "color-convert": "^2.0.1" + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-circus/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-circus/node_modules/diff-sequences": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.0.0.tgz", + "integrity": "sha512-7Qe/zd1wxSDL4D/X/FPjOMB+ZMDt71W94KYaq05I2l0oQqgXgs7s4ftYYmV38gBSrPz2vcygxfs1xn0FT+rKNA==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-circus/node_modules/jest-diff": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.0.2.tgz", + "integrity": "sha512-b9l9970sa1rMXH1owp2Woprmy42qIwwll/htsw4Gf7+WuSp5bZxNhkKHDuCGKL+HoHn1KhcC+tNEeAPYBkD2Jg==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.0.0", + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/jest-get-type": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", + "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/jest-matcher-utils": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.0.2.tgz", + "integrity": "sha512-s62YkHFBfAx0JLA2QX1BlnCRFwHRobwAv2KP1+YhjzF6ZCbCVrf1sG8UJyn62ZUsDaQKpoo86XMTjkUyO5aWmQ==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.0.2", + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-circus/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-circus/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "yocto-queue": "^0.1.0" }, "engines": { "node": ">=10" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/jest-circus/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-circus/node_modules/pretty-format": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", + "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, "dependencies": { - "color-name": "~1.1.4" + "@jest/schemas": "^29.0.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" }, "engines": { - "node": ">=7.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-circus/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-circus/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/jest-circus/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/jest-circus/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, "node_modules/jest-circus/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -6368,29 +7341,29 @@ } }, "node_modules/jest-cli": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-27.5.1.tgz", - "integrity": "sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.0.2.tgz", + "integrity": "sha512-tlf8b+4KcUbBGr25cywIi3+rbZ4+G+SiG8SvY552m9sRZbXPafdmQRyeVE/C/R8K+TiBAMrTIUmV2SlStRJ40g==", "dev": true, "dependencies": { - "@jest/core": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/core": "^29.0.2", + "@jest/test-result": "^29.0.2", + "@jest/types": "^29.0.2", "chalk": "^4.0.0", "exit": "^0.1.2", "graceful-fs": "^4.2.9", "import-local": "^3.0.2", - "jest-config": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", + "jest-config": "^29.0.2", + "jest-util": "^29.0.2", + "jest-validate": "^29.0.2", "prompts": "^2.0.1", - "yargs": "^16.2.0" + "yargs": "^17.3.1" }, "bin": { "jest": "bin/jest.js" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -6459,6 +7432,23 @@ "node": ">=8" } }, + "node_modules/jest-cli/node_modules/jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, "node_modules/jest-cli/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -6471,49 +7461,104 @@ "node": ">=8" } }, + "node_modules/jest-cli/node_modules/yargs": { + "version": "17.5.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.5.1.tgz", + "integrity": "sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA==", + "dev": true, + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-cli/node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, "node_modules/jest-config": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-27.5.1.tgz", - "integrity": "sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.0.2.tgz", + "integrity": "sha512-RU4gzeUNZAFktYVzDGimDxeYoaiTnH100jkYYZgldqFamaZukF0IqmFx8+QrzVeEWccYg10EEJT3ox1Dq5b74w==", "dev": true, "dependencies": { - "@babel/core": "^7.8.0", - "@jest/test-sequencer": "^27.5.1", - "@jest/types": "^27.5.1", - "babel-jest": "^27.5.1", + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.0.2", + "@jest/types": "^29.0.2", + "babel-jest": "^29.0.2", "chalk": "^4.0.0", "ci-info": "^3.2.0", "deepmerge": "^4.2.2", - "glob": "^7.1.1", + "glob": "^7.1.3", "graceful-fs": "^4.2.9", - "jest-circus": "^27.5.1", - "jest-environment-jsdom": "^27.5.1", - "jest-environment-node": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-jasmine2": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-runner": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", + "jest-circus": "^29.0.2", + "jest-environment-node": "^29.0.2", + "jest-get-type": "^29.0.0", + "jest-regex-util": "^29.0.0", + "jest-resolve": "^29.0.2", + "jest-runner": "^29.0.2", + "jest-util": "^29.0.2", + "jest-validate": "^29.0.2", "micromatch": "^4.0.4", "parse-json": "^5.2.0", - "pretty-format": "^27.5.1", + "pretty-format": "^29.0.2", "slash": "^3.0.0", "strip-json-comments": "^3.1.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { + "@types/node": "*", "ts-node": ">=9.0.0" }, "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, "ts-node": { "optional": true } } }, + "node_modules/jest-config/node_modules/@jest/transform": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", + "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.0.2", + "@jridgewell/trace-mapping": "^0.3.15", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.0.2", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, "node_modules/jest-config/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -6529,6 +7574,58 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/jest-config/node_modules/babel-jest": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.0.2.tgz", + "integrity": "sha512-yTu4/WSi/HzarjQtrJSwV+/0maoNt+iP0DmpvFJdv9yY+5BuNle8TbheHzzcSWj5gIHfuhpbLYHWRDYhWKyeKQ==", + "dev": true, + "dependencies": { + "@jest/transform": "^29.0.2", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.0.2", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/jest-config/node_modules/babel-plugin-jest-hoist": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.0.2.tgz", + "integrity": "sha512-eBr2ynAEFjcebVvu8Ktx580BD1QKCrBG1XwEUTXJe285p9HA/4hOhfWCFRQhTKSyBV0VzjhG7H91Eifz9s29hg==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-config/node_modules/babel-preset-jest": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.0.2.tgz", + "integrity": "sha512-BeVXp7rH5TK96ofyEnHjznjLMQ2nAeDJ+QzxKnHAAMs0RgrQsCywjAN8m4mOm5Di0pxU//3AoEeJJrerMH5UeA==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^29.0.2", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, "node_modules/jest-config/node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -6572,6 +7669,95 @@ "node": ">=8" } }, + "node_modules/jest-config/node_modules/jest-get-type": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", + "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-config/node_modules/jest-haste-map": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", + "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", + "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "jest-worker": "^29.0.2", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-config/node_modules/jest-regex-util": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-config/node_modules/jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-config/node_modules/jest-worker": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", + "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-config/node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, "node_modules/jest-config/node_modules/parse-json": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", @@ -6590,6 +7776,38 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/jest-config/node_modules/pretty-format": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", + "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.0.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-config/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, "node_modules/jest-config/node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -6614,6 +7832,19 @@ "node": ">=8" } }, + "node_modules/jest-config/node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, "node_modules/jest-diff": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", @@ -6700,31 +7931,31 @@ } }, "node_modules/jest-docblock": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.5.1.tgz", - "integrity": "sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==", + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.0.0.tgz", + "integrity": "sha512-s5Kpra/kLzbqu9dEjov30kj1n4tfu3e7Pl8v+f8jOkeWNqM6Ds8jRaJfZow3ducoQUrf2Z4rs2N5S3zXnb83gw==", "dev": true, "dependencies": { "detect-newline": "^3.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-each": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-27.5.1.tgz", - "integrity": "sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.0.2.tgz", + "integrity": "sha512-+sA9YjrJl35iCg0W0VCrgCVj+wGhDrrKQ+YAqJ/DHBC4gcDFAeePtRRhpJnX9gvOZ63G7gt52pwp2PesuSEx0Q==", "dev": true, "dependencies": { - "@jest/types": "^27.5.1", + "@jest/types": "^29.0.2", "chalk": "^4.0.0", - "jest-get-type": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1" + "jest-get-type": "^29.0.0", + "jest-util": "^29.0.2", + "pretty-format": "^29.0.2" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-each/node_modules/ansi-styles": { @@ -6785,117 +8016,94 @@ "node": ">=8" } }, - "node_modules/jest-each/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/jest-each/node_modules/jest-get-type": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", + "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, "engines": { - "node": ">=8" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-environment-jsdom": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz", - "integrity": "sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==", + "node_modules/jest-each/node_modules/jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/types": "^29.0.2", "@types/node": "*", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1", - "jsdom": "^16.6.0" + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-environment-node": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz", - "integrity": "sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==", + "node_modules/jest-each/node_modules/pretty-format": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", + "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" + "@jest/schemas": "^29.0.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-get-type": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", + "node_modules/jest-each/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/jest-haste-map": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.5.1.tgz", - "integrity": "sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==", + "node_modules/jest-each/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/jest-each/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "dependencies": { - "@jest/types": "^27.5.1", - "@types/graceful-fs": "^4.1.2", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^27.5.1", - "jest-serializer": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "micromatch": "^4.0.4", - "walker": "^1.0.7" + "has-flag": "^4.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "optionalDependencies": { - "fsevents": "^2.3.2" + "node": ">=8" } }, - "node_modules/jest-jasmine2": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz", - "integrity": "sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==", + "node_modules/jest-environment-node": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.0.2.tgz", + "integrity": "sha512-4Fv8GXVCToRlMzDO94gvA8iOzKxQ7rhAbs8L+j8GPyTxGuUiYkV+63LecGeVdVhsL2KXih1sKnoqmH6tp89J7Q==", "dev": true, "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/source-map": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/environment": "^29.0.2", + "@jest/fake-timers": "^29.0.2", + "@jest/types": "^29.0.2", "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "expect": "^27.5.1", - "is-generator-fn": "^2.0.0", - "jest-each": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1", - "throat": "^6.0.1" + "jest-mock": "^29.0.2", + "jest-util": "^29.0.2" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-jasmine2/node_modules/ansi-styles": { + "node_modules/jest-environment-node/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", @@ -6910,7 +8118,7 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/jest-jasmine2/node_modules/chalk": { + "node_modules/jest-environment-node/node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", @@ -6926,7 +8134,7 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/jest-jasmine2/node_modules/color-convert": { + "node_modules/jest-environment-node/node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", @@ -6938,13 +8146,13 @@ "node": ">=7.0.0" } }, - "node_modules/jest-jasmine2/node_modules/color-name": { + "node_modules/jest-environment-node/node_modules/color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "node_modules/jest-jasmine2/node_modules/has-flag": { + "node_modules/jest-environment-node/node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", @@ -6953,7 +8161,24 @@ "node": ">=8" } }, - "node_modules/jest-jasmine2/node_modules/supports-color": { + "node_modules/jest-environment-node/node_modules/jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-environment-node/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", @@ -6965,19 +8190,69 @@ "node": ">=8" } }, - "node_modules/jest-leak-detector": { + "node_modules/jest-get-type": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz", - "integrity": "sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", + "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", + "dev": true, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.0.2.tgz", + "integrity": "sha512-5f0493qDeAxjUldkBSQg5D1cLadRgZVyWpTQvfJeQwQUpHQInE21AyVHVv64M7P2Ue8Z5EZ4BAcoDS/dSPPgMw==", "dev": true, "dependencies": { - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.2" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-leak-detector/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-leak-detector/node_modules/jest-get-type": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", + "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-leak-detector/node_modules/pretty-format": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", + "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.0.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/jest-leak-detector/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, "node_modules/jest-matcher-utils": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", @@ -7064,23 +8339,23 @@ } }, "node_modules/jest-message-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", - "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.0.2.tgz", + "integrity": "sha512-kcJAgms3ckJV0wUoLsAM40xAhY+pb9FVSZwicjFU9PFkaTNmqh9xd99/CzKse48wPM1ANUQKmp03/DpkY+lGrA==", "dev": true, "dependencies": { "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.5.1", + "@jest/types": "^29.0.2", "@types/stack-utils": "^2.0.0", "chalk": "^4.0.0", "graceful-fs": "^4.2.9", "micromatch": "^4.0.4", - "pretty-format": "^27.5.1", + "pretty-format": "^29.0.2", "slash": "^3.0.0", "stack-utils": "^2.0.3" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-message-util/node_modules/ansi-styles": { @@ -7141,6 +8416,38 @@ "node": ">=8" } }, + "node_modules/jest-message-util/node_modules/pretty-format": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", + "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.0.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, "node_modules/jest-message-util/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -7154,16 +8461,16 @@ } }, "node_modules/jest-mock": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", - "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.0.2.tgz", + "integrity": "sha512-giWXOIT23UCxHCN2VUfUJ0Q7SmiqQwfSFXlCaIhW5anITpNQ+3vuLPQdKt5wkuwM37GrbFyHIClce8AAK9ft9g==", "dev": true, "dependencies": { - "@jest/types": "^27.5.1", + "@jest/types": "^29.0.2", "@types/node": "*" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-pnp-resolver": { @@ -7183,48 +8490,46 @@ } } }, - "node_modules/jest-regex-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz", - "integrity": "sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==", - "dev": true, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, "node_modules/jest-resolve": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz", - "integrity": "sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.0.2.tgz", + "integrity": "sha512-V3uLjSA+EHxLtjIDKTBXnY71hyx+8lusCqPXvqzkFO1uCGvVpjBfuOyp+KOLBNSuY61kM2jhepiMwt4eiJS+Vw==", "dev": true, "dependencies": { - "@jest/types": "^27.5.1", "chalk": "^4.0.0", "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", + "jest-haste-map": "^29.0.2", "jest-pnp-resolver": "^1.2.2", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", + "jest-util": "^29.0.2", + "jest-validate": "^29.0.2", "resolve": "^1.20.0", "resolve.exports": "^1.1.0", "slash": "^3.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-resolve-dependencies": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz", - "integrity": "sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.0.2.tgz", + "integrity": "sha512-fSAu6eIG7wtGdnPJUkVVdILGzYAP9Dj/4+zvC8BrGe8msaUMJ9JeygU0Hf9+Uor6/icbuuzQn5See1uajLnAqg==", "dev": true, "dependencies": { - "@jest/types": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-snapshot": "^27.5.1" + "jest-regex-util": "^29.0.0", + "jest-snapshot": "^29.0.2" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies/node_modules/jest-regex-util": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-resolve/node_modules/ansi-styles": { @@ -7285,6 +8590,86 @@ "node": ">=8" } }, + "node_modules/jest-resolve/node_modules/jest-haste-map": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", + "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", + "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "jest-worker": "^29.0.2", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-resolve/node_modules/jest-regex-util": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve/node_modules/jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve/node_modules/jest-worker": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", + "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve/node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, "node_modules/jest-resolve/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -7298,35 +8683,61 @@ } }, "node_modules/jest-runner": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-27.5.1.tgz", - "integrity": "sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.0.2.tgz", + "integrity": "sha512-+D82iPZejI8t+SfduOO1deahC/QgLFf8aJBO++Znz3l2ETtOMdM7K4ATsGWzCFnTGio5yHaRifg1Su5Ybza5Nw==", "dev": true, "dependencies": { - "@jest/console": "^27.5.1", - "@jest/environment": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/console": "^29.0.2", + "@jest/environment": "^29.0.2", + "@jest/test-result": "^29.0.2", + "@jest/transform": "^29.0.2", + "@jest/types": "^29.0.2", "@types/node": "*", "chalk": "^4.0.0", - "emittery": "^0.8.1", + "emittery": "^0.10.2", "graceful-fs": "^4.2.9", - "jest-docblock": "^27.5.1", - "jest-environment-jsdom": "^27.5.1", - "jest-environment-node": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-leak-detector": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "source-map-support": "^0.5.6", - "throat": "^6.0.1" + "jest-docblock": "^29.0.0", + "jest-environment-node": "^29.0.2", + "jest-haste-map": "^29.0.2", + "jest-leak-detector": "^29.0.2", + "jest-message-util": "^29.0.2", + "jest-resolve": "^29.0.2", + "jest-runtime": "^29.0.2", + "jest-util": "^29.0.2", + "jest-watcher": "^29.0.2", + "jest-worker": "^29.0.2", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner/node_modules/@jest/transform": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", + "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.0.2", + "@jridgewell/trace-mapping": "^0.3.15", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.0.2", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-runner/node_modules/ansi-styles": { @@ -7387,6 +8798,101 @@ "node": ">=8" } }, + "node_modules/jest-runner/node_modules/jest-haste-map": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", + "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", + "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "jest-worker": "^29.0.2", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-runner/node_modules/jest-regex-util": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner/node_modules/jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner/node_modules/jest-worker": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", + "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner/node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/jest-runner/node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/jest-runner/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -7396,40 +8902,79 @@ "has-flag": "^4.0.0" }, "engines": { - "node": ">=8" + "node": ">=8" + } + }, + "node_modules/jest-runner/node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.0.2.tgz", + "integrity": "sha512-DO6F81LX4okOgjJLkLySv10E5YcV5NHUbY1ZqAUtofxdQE+q4hjH0P2gNsY8x3z3sqgw7O/+919SU4r18Fcuig==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.0.2", + "@jest/fake-timers": "^29.0.2", + "@jest/globals": "^29.0.2", + "@jest/source-map": "^29.0.0", + "@jest/test-result": "^29.0.2", + "@jest/transform": "^29.0.2", + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.0.2", + "jest-message-util": "^29.0.2", + "jest-mock": "^29.0.2", + "jest-regex-util": "^29.0.0", + "jest-resolve": "^29.0.2", + "jest-snapshot": "^29.0.2", + "jest-util": "^29.0.2", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-runtime": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.5.1.tgz", - "integrity": "sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==", + "node_modules/jest-runtime/node_modules/@jest/transform": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", + "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", "dev": true, "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/globals": "^27.5.1", - "@jest/source-map": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", + "@babel/core": "^7.11.6", + "@jest/types": "^29.0.2", + "@jridgewell/trace-mapping": "^0.3.15", + "babel-plugin-istanbul": "^6.1.1", "chalk": "^4.0.0", - "cjs-module-lexer": "^1.0.0", - "collect-v8-coverage": "^1.0.0", - "execa": "^5.0.0", - "glob": "^7.1.3", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.1.0", "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", + "jest-haste-map": "^29.0.2", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", "slash": "^3.0.0", - "strip-bom": "^4.0.0" + "write-file-atomic": "^4.0.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-runtime/node_modules/ansi-styles": { @@ -7490,6 +9035,86 @@ "node": ">=8" } }, + "node_modules/jest-runtime/node_modules/jest-haste-map": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", + "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", + "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "jest-worker": "^29.0.2", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-runtime/node_modules/jest-regex-util": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime/node_modules/jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime/node_modules/jest-worker": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", + "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime/node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, "node_modules/jest-runtime/node_modules/strip-bom": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", @@ -7511,50 +9136,78 @@ "node": ">=8" } }, - "node_modules/jest-serializer": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz", - "integrity": "sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==", + "node_modules/jest-runtime/node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, "dependencies": { - "@types/node": "*", - "graceful-fs": "^4.2.9" + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, "node_modules/jest-snapshot": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", - "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.0.2.tgz", + "integrity": "sha512-26C4PzGKaX5gkoKg8UzYGVy2HPVcTaROSkf0gwnHu3lGeTB7bAIJBovvVPZoiJ20IximJELQs/r8WSDRCuGX2A==", "dev": true, "dependencies": { - "@babel/core": "^7.7.2", + "@babel/core": "^7.11.6", "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", "@babel/plugin-syntax-typescript": "^7.7.2", "@babel/traverse": "^7.7.2", - "@babel/types": "^7.0.0", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__traverse": "^7.0.4", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.0.2", + "@jest/transform": "^29.0.2", + "@jest/types": "^29.0.2", + "@types/babel__traverse": "^7.0.6", "@types/prettier": "^2.1.5", "babel-preset-current-node-syntax": "^1.0.0", "chalk": "^4.0.0", - "expect": "^27.5.1", + "expect": "^29.0.2", "graceful-fs": "^4.2.9", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", + "jest-diff": "^29.0.2", + "jest-get-type": "^29.0.0", + "jest-haste-map": "^29.0.2", + "jest-matcher-utils": "^29.0.2", + "jest-message-util": "^29.0.2", + "jest-util": "^29.0.2", "natural-compare": "^1.4.0", - "pretty-format": "^27.5.1", - "semver": "^7.3.2" + "pretty-format": "^29.0.2", + "semver": "^7.3.5" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/@jest/transform": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", + "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.0.2", + "@jridgewell/trace-mapping": "^0.3.15", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.0.2", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-snapshot/node_modules/ansi-styles": { @@ -7606,6 +9259,15 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, + "node_modules/jest-snapshot/node_modules/diff-sequences": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.0.0.tgz", + "integrity": "sha512-7Qe/zd1wxSDL4D/X/FPjOMB+ZMDt71W94KYaq05I2l0oQqgXgs7s4ftYYmV38gBSrPz2vcygxfs1xn0FT+rKNA==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, "node_modules/jest-snapshot/node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -7615,40 +9277,86 @@ "node": ">=8" } }, - "node_modules/jest-snapshot/node_modules/semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "node_modules/jest-snapshot/node_modules/jest-diff": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.0.2.tgz", + "integrity": "sha512-b9l9970sa1rMXH1owp2Woprmy42qIwwll/htsw4Gf7+WuSp5bZxNhkKHDuCGKL+HoHn1KhcC+tNEeAPYBkD2Jg==", "dev": true, "dependencies": { - "lru-cache": "^6.0.0" + "chalk": "^4.0.0", + "diff-sequences": "^29.0.0", + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.2" }, - "bin": { - "semver": "bin/semver.js" + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/jest-get-type": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", + "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/jest-haste-map": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", + "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", + "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "jest-worker": "^29.0.2", + "micromatch": "^4.0.4", + "walker": "^1.0.8" }, "engines": { - "node": ">=10" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" } }, - "node_modules/jest-snapshot/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/jest-snapshot/node_modules/jest-matcher-utils": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.0.2.tgz", + "integrity": "sha512-s62YkHFBfAx0JLA2QX1BlnCRFwHRobwAv2KP1+YhjzF6ZCbCVrf1sG8UJyn62ZUsDaQKpoo86XMTjkUyO5aWmQ==", "dev": true, "dependencies": { - "has-flag": "^4.0.0" + "chalk": "^4.0.0", + "jest-diff": "^29.0.2", + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.2" }, "engines": { - "node": ">=8" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", + "node_modules/jest-snapshot/node_modules/jest-regex-util": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "dependencies": { - "@jest/types": "^27.5.1", + "@jest/types": "^29.0.2", "@types/node": "*", "chalk": "^4.0.0", "ci-info": "^3.2.0", @@ -7656,68 +9364,86 @@ "picomatch": "^2.2.3" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-util/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/jest-snapshot/node_modules/jest-worker": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", + "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", "dev": true, "dependencies": { - "color-convert": "^2.0.1" + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-util/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-snapshot/node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "has-flag": "^4.0.0" }, "engines": { "node": ">=10" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "url": "https://github.com/chalk/supports-color?sponsor=1" } }, - "node_modules/jest-util/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-snapshot/node_modules/pretty-format": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", + "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, "dependencies": { - "color-name": "~1.1.4" + "@jest/schemas": "^29.0.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" }, "engines": { - "node": ">=7.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-util/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "node_modules/jest-snapshot/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, - "node_modules/jest-util/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, "engines": { - "node": ">=8" + "node": ">=10" } }, - "node_modules/jest-util/node_modules/supports-color": { + "node_modules/jest-snapshot/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", @@ -7729,21 +9455,34 @@ "node": ">=8" } }, + "node_modules/jest-snapshot/node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, "node_modules/jest-validate": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-27.5.1.tgz", - "integrity": "sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.0.2.tgz", + "integrity": "sha512-AeRKm7cEucSy7tr54r3LhiGIXYvOILUwBM1S7jQkKs6YelwAlWKsmZGVrQR7uwsd31rBTnR5NQkODi1Z+6TKIQ==", "dev": true, "dependencies": { - "@jest/types": "^27.5.1", + "@jest/types": "^29.0.2", "camelcase": "^6.2.0", "chalk": "^4.0.0", - "jest-get-type": "^27.5.1", + "jest-get-type": "^29.0.0", "leven": "^3.1.0", - "pretty-format": "^27.5.1" + "pretty-format": "^29.0.2" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-validate/node_modules/ansi-styles": { @@ -7816,6 +9555,47 @@ "node": ">=8" } }, + "node_modules/jest-validate/node_modules/jest-get-type": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", + "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/pretty-format": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", + "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.0.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, "node_modules/jest-validate/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -7829,21 +9609,22 @@ } }, "node_modules/jest-watcher": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.5.1.tgz", - "integrity": "sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.0.2.tgz", + "integrity": "sha512-ds2bV0oyUdYoyrUTv4Ga5uptz4cEvmmP/JzqDyzZZanvrIn8ipxg5l3SDOAIiyuAx1VdHd2FBzeXPFO5KPH8vQ==", "dev": true, "dependencies": { - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/test-result": "^29.0.2", + "@jest/types": "^29.0.2", "@types/node": "*", "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", - "jest-util": "^27.5.1", + "emittery": "^0.10.2", + "jest-util": "^29.0.2", "string-length": "^4.0.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-watcher/node_modules/ansi-styles": { @@ -7902,56 +9683,35 @@ "dev": true, "engines": { "node": ">=8" - } - }, - "node_modules/jest-watcher/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "dev": true, - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/jest-worker/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + } + }, + "node_modules/jest-watcher/node_modules/jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, + "dependencies": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, "engines": { - "node": ">=8" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-worker/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "node_modules/jest-watcher/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "dependencies": { "has-flag": "^4.0.0" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" + "node": ">=8" } }, "node_modules/js-tokens": { @@ -7961,97 +9721,20 @@ "dev": true }, "node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "argparse": "^2.0.1" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, - "node_modules/jsdom": { - "version": "16.7.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", - "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", - "dev": true, - "dependencies": { - "abab": "^2.0.5", - "acorn": "^8.2.4", - "acorn-globals": "^6.0.0", - "cssom": "^0.4.4", - "cssstyle": "^2.3.0", - "data-urls": "^2.0.0", - "decimal.js": "^10.2.1", - "domexception": "^2.0.1", - "escodegen": "^2.0.0", - "form-data": "^3.0.0", - "html-encoding-sniffer": "^2.0.1", - "http-proxy-agent": "^4.0.1", - "https-proxy-agent": "^5.0.0", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.0", - "parse5": "6.0.1", - "saxes": "^5.0.1", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.0.0", - "w3c-hr-time": "^1.0.2", - "w3c-xmlserializer": "^2.0.0", - "webidl-conversions": "^6.1.0", - "whatwg-encoding": "^1.0.5", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.5.0", - "ws": "^7.4.6", - "xml-name-validator": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "canvas": "^2.5.0" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - } - }, - "node_modules/jsdom/node_modules/tr46": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", - "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", - "dev": true, - "dependencies": { - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jsdom/node_modules/webidl-conversions": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", - "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", - "dev": true, - "engines": { - "node": ">=10.4" - } - }, - "node_modules/jsdom/node_modules/whatwg-url": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", - "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", - "dev": true, - "dependencies": { - "lodash": "^4.7.0", - "tr46": "^2.1.0", - "webidl-conversions": "^6.1.0" - }, - "engines": { - "node": ">=10" - } + "node_modules/js-yaml/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, "node_modules/jsep": { "version": "1.3.0", @@ -8173,11 +9856,11 @@ ] }, "node_modules/jsonpath-plus": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-6.0.1.tgz", - "integrity": "sha512-EvGovdvau6FyLexFH2OeXfIITlgIbgZoAZe3usiySeaIDm5QS+A10DKNpaPBBqqRSZr2HN6HVNXxtwUAr2apEw==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.2.0.tgz", + "integrity": "sha512-zBfiUPM5nD0YZSBT/o/fbCUlCcepMIdP0CJZxM1+KgA4f2T206f6VAg9e7mX35+KlMaIc5qXW34f3BnwJ3w+RA==", "engines": { - "node": ">=10.0.0" + "node": ">=12.0.0" } }, "node_modules/jsonpointer": { @@ -8204,6 +9887,19 @@ "node": "*" } }, + "node_modules/jsx-ast-utils": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", + "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", + "dev": true, + "dependencies": { + "array-includes": "^3.1.5", + "object.assign": "^4.1.3" + }, + "engines": { + "node": ">=4.0" + } + }, "node_modules/kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", @@ -8225,6 +9921,21 @@ "node": ">=6" } }, + "node_modules/language-subtag-registry": { + "version": "0.3.22", + "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", + "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==", + "dev": true + }, + "node_modules/language-tags": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", + "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", + "dev": true, + "dependencies": { + "language-subtag-registry": "~0.3.2" + } + }, "node_modules/lazy-cache": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", @@ -8330,18 +10041,18 @@ "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", "dev": true }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "dev": true + }, "node_modules/lodash.capitalize": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/lodash.capitalize/-/lodash.capitalize-4.2.1.tgz", "integrity": "sha1-+CbJtOKoUR2E46yinbBeGk87cqk=", "dev": true }, - "node_modules/lodash.clonedeep": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", - "dev": true - }, "node_modules/lodash.escaperegexp": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/lodash.escaperegexp/-/lodash.escaperegexp-4.1.2.tgz", @@ -8371,10 +10082,10 @@ "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=", "dev": true }, - "node_modules/lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", + "node_modules/lodash.kebabcase": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz", + "integrity": "sha512-N8XRTIMMqqDgSy4VLKPnJ/+hpGZN+PHQiJnSenYqPaVV/NCqEogTnAdZLQiGKhxX+JCs8waWq2t1XHWKOmlY8g==", "dev": true }, "node_modules/lodash.merge": { @@ -8388,6 +10099,12 @@ "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", "integrity": "sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM=" }, + "node_modules/lodash.snakecase": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", + "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==", + "dev": true + }, "node_modules/lodash.template": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", @@ -8418,30 +10135,17 @@ "resolved": "https://registry.npmjs.org/lodash.topath/-/lodash.topath-4.5.2.tgz", "integrity": "sha512-1/W4dM+35DwvE/iEd1M9ekewOSTlpFekhw9mhAtrwjVqUr83/ilQiyAvmg4tVX7Unkcfl1KC+i9WdaT4B6aQcg==" }, - "node_modules/lodash.truncate": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", - "integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=", - "dev": true - }, "node_modules/lodash.uniqby": { "version": "4.7.0", "resolved": "https://registry.npmjs.org/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz", "integrity": "sha1-2ZwHpmnp5tJOE2Lf4mbGdhavEwI=", "dev": true }, - "node_modules/loud-rejection": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", - "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", - "dev": true, - "dependencies": { - "currently-unhandled": "^0.4.1", - "signal-exit": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } + "node_modules/lodash.upperfirst": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz", + "integrity": "sha512-sReKOYJIJf74dhJONhU4e0/shzi1trVbSWDOhKYE5XV2O+H7Sb2Dihwuc7xWxVl+DgFPyTqIN3zMfT9cq5iWDg==", + "dev": true }, "node_modules/lru-cache": { "version": "6.0.0", @@ -8495,12 +10199,15 @@ } }, "node_modules/map-obj": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", - "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", + "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", "dev": true, "engines": { - "node": ">=4" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/markdown-link": { @@ -8538,6 +10245,18 @@ "node": ">=0.10.0" } }, + "node_modules/marked": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/marked/-/marked-2.1.3.tgz", + "integrity": "sha512-/Q+7MGzaETqifOMWYEA7HVMaZb4XbcRfaOzcSsHZEith83KGlvaSG33u0SKu89Mj5h+T8V2hM+8O45Qc5XTgwA==", + "dev": true, + "bin": { + "marked": "bin/marked" + }, + "engines": { + "node": ">= 10" + } + }, "node_modules/marked-terminal": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/marked-terminal/-/marked-terminal-4.1.1.tgz", @@ -8632,23 +10351,82 @@ "dev": true }, "node_modules/meow": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-5.0.0.tgz", - "integrity": "sha512-CbTqYU17ABaLefO8vCU153ZZlprKYWDljcndKKDCFcYQITzWCXZAVk4QMFZPgvzrnUQ3uItnIE/LoUOwrT15Ig==", + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/meow/-/meow-8.1.2.tgz", + "integrity": "sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q==", "dev": true, "dependencies": { - "camelcase-keys": "^4.0.0", - "decamelize-keys": "^1.0.0", - "loud-rejection": "^1.0.0", - "minimist-options": "^3.0.1", - "normalize-package-data": "^2.3.4", - "read-pkg-up": "^3.0.0", - "redent": "^2.0.0", - "trim-newlines": "^2.0.0", - "yargs-parser": "^10.0.0" + "@types/minimist": "^1.2.0", + "camelcase-keys": "^6.2.2", + "decamelize-keys": "^1.1.0", + "hard-rejection": "^2.1.0", + "minimist-options": "4.1.0", + "normalize-package-data": "^3.0.0", + "read-pkg-up": "^7.0.1", + "redent": "^3.0.0", + "trim-newlines": "^3.0.0", + "type-fest": "^0.18.0", + "yargs-parser": "^20.2.3" }, "engines": { - "node": ">=6" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/meow/node_modules/hosted-git-info": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", + "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/meow/node_modules/normalize-package-data": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", + "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^4.0.1", + "is-core-module": "^2.5.0", + "semver": "^7.3.4", + "validate-npm-package-license": "^3.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/meow/node_modules/semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/meow/node_modules/type-fest": { + "version": "0.18.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", + "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/merge-stream": { @@ -8691,27 +10469,6 @@ "node": ">=4.0.0" } }, - "node_modules/mime-db": { - "version": "1.51.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz", - "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.34", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz", - "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==", - "dev": true, - "dependencies": { - "mime-db": "1.51.0" - }, - "engines": { - "node": ">= 0.6" - } - }, "node_modules/mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", @@ -8721,6 +10478,15 @@ "node": ">=6" } }, + "node_modules/min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -8733,22 +10499,32 @@ } }, "node_modules/minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", "dev": true }, "node_modules/minimist-options": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-3.0.2.tgz", - "integrity": "sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", + "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", "dev": true, "dependencies": { "arrify": "^1.0.1", - "is-plain-obj": "^1.1.0" + "is-plain-obj": "^1.1.0", + "kind-of": "^6.0.3" }, "engines": { - "node": ">= 4" + "node": ">= 6" + } + }, + "node_modules/minimist-options/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" } }, "node_modules/mixin-deep": { @@ -8848,6 +10624,15 @@ "lodash.topath": "^4.5.2" } }, + "node_modules/nimma/node_modules/jsonpath-plus": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-6.0.1.tgz", + "integrity": "sha512-EvGovdvau6FyLexFH2OeXfIITlgIbgZoAZe3usiySeaIDm5QS+A10DKNpaPBBqqRSZr2HN6HVNXxtwUAr2apEw==", + "optional": true, + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/node-emoji": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.10.0.tgz", @@ -8883,9 +10668,9 @@ "dev": true }, "node_modules/node-releases": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.2.tgz", - "integrity": "sha512-XxYDdcQ6eKqp/YjI+tb2C5WM2LgjnZrfYg4vgQt49EK268b6gYCHsBLrK2qvJo4FmCtqmKezb0WZFK4fkrZNsg==", + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", + "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==", "dev": true }, "node_modules/normalize-package-data": { @@ -8922,9 +10707,9 @@ } }, "node_modules/npm": { - "version": "6.14.6", - "resolved": "https://registry.npmjs.org/npm/-/npm-6.14.6.tgz", - "integrity": "sha512-axnz6iHFK6WPE0js/+mRp+4IOwpHn5tJEw5KB6FiCU764zmffrhsYHbSHi2kKqNkRBt53XasXjngZfBD3FQzrQ==", + "version": "6.14.17", + "resolved": "https://registry.npmjs.org/npm/-/npm-6.14.17.tgz", + "integrity": "sha512-CxEDn1ydVRPDl4tHrlnq+WevYAhv4GF2AEHzJKQ4prZDZ96IS3Uo6t0Sy6O9kB6XzqkI+J00WfYCqqk0p6IJ1Q==", "bundleDependencies": [ "abbrev", "ansicolors", @@ -9057,7 +10842,7 @@ "ansistyles": "~0.1.3", "aproba": "^2.0.0", "archy": "~1.0.0", - "bin-links": "^1.1.7", + "bin-links": "^1.1.8", "bluebird": "^3.5.5", "byte-size": "^5.0.1", "cacache": "^12.0.3", @@ -9078,30 +10863,30 @@ "find-npm-prefix": "^1.0.2", "fs-vacuum": "~1.2.10", "fs-write-stream-atomic": "~1.0.10", - "gentle-fs": "^2.3.0", + "gentle-fs": "^2.3.1", "glob": "^7.1.6", "graceful-fs": "^4.2.4", "has-unicode": "~2.0.1", - "hosted-git-info": "^2.8.8", + "hosted-git-info": "^2.8.9", "iferr": "^1.0.2", "imurmurhash": "*", "infer-owner": "^1.0.4", "inflight": "~1.0.6", "inherits": "^2.0.4", - "ini": "^1.3.5", + "ini": "^1.3.8", "init-package-json": "^1.10.3", "is-cidr": "^3.0.0", "json-parse-better-errors": "^1.0.2", "JSONStream": "^1.3.5", "lazy-property": "~1.0.0", - "libcipm": "^4.0.7", + "libcipm": "^4.0.8", "libnpm": "^3.0.1", "libnpmaccess": "^3.0.2", "libnpmhook": "^5.0.3", "libnpmorg": "^1.0.1", "libnpmsearch": "^2.0.2", "libnpmteam": "^1.0.2", - "libnpx": "^10.2.2", + "libnpx": "^10.2.4", "lock-verify": "^2.1.0", "lockfile": "^1.0.4", "lodash._baseindexof": "*", @@ -9116,26 +10901,26 @@ "lodash.uniq": "~4.5.0", "lodash.without": "~4.4.0", "lru-cache": "^5.1.1", - "meant": "~1.0.1", + "meant": "^1.0.2", "mississippi": "^3.0.0", "mkdirp": "^0.5.5", "move-concurrently": "^1.0.1", "node-gyp": "^5.1.0", "nopt": "^4.0.3", "normalize-package-data": "^2.5.0", - "npm-audit-report": "^1.3.2", + "npm-audit-report": "^1.3.3", "npm-cache-filename": "~1.0.2", "npm-install-checks": "^3.0.2", - "npm-lifecycle": "^3.1.4", + "npm-lifecycle": "^3.1.5", "npm-package-arg": "^6.1.1", "npm-packlist": "^1.4.8", "npm-pick-manifest": "^3.0.2", "npm-profile": "^4.0.4", - "npm-registry-fetch": "^4.0.5", - "npm-user-validate": "~1.0.0", + "npm-registry-fetch": "^4.0.7", + "npm-user-validate": "^1.0.1", "npmlog": "~4.1.2", "once": "~1.4.0", - "opener": "^1.5.1", + "opener": "^1.5.2", "osenv": "^0.1.5", "pacote": "^9.5.12", "path-is-inside": "~1.0.2", @@ -9159,9 +10944,9 @@ "slide": "~1.1.6", "sorted-object": "~2.0.1", "sorted-union-stream": "~2.1.3", - "ssri": "^6.0.1", + "ssri": "^6.0.2", "stringify-package": "^1.0.1", - "tar": "^4.4.13", + "tar": "^4.4.19", "text-table": "~0.2.0", "tiny-relative-date": "^1.3.0", "uid-number": "0.0.6", @@ -9226,18 +11011,6 @@ "node": ">= 4.0.0" } }, - "node_modules/npm/node_modules/ajv": { - "version": "5.5.2", - "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "co": "^4.6.0", - "fast-deep-equal": "^1.0.0", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.3.0" - } - }, "node_modules/npm/node_modules/ansi-align": { "version": "2.0.0", "dev": true, @@ -9388,7 +11161,7 @@ } }, "node_modules/npm/node_modules/bin-links": { - "version": "1.1.7", + "version": "1.1.8", "dev": true, "inBundle": true, "license": "Artistic-2.0", @@ -9595,18 +11368,27 @@ } }, "node_modules/npm/node_modules/cliui": { - "version": "4.1.0", + "version": "5.0.0", "dev": true, "inBundle": true, "license": "ISC", "dependencies": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0", - "wrap-ansi": "^2.0.0" + "string-width": "^3.1.0", + "strip-ansi": "^5.2.0", + "wrap-ansi": "^5.1.0" } }, "node_modules/npm/node_modules/cliui/node_modules/ansi-regex": { - "version": "3.0.0", + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/cliui/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", "dev": true, "inBundle": true, "license": "MIT", @@ -9614,16 +11396,30 @@ "node": ">=4" } }, + "node_modules/npm/node_modules/cliui/node_modules/string-width": { + "version": "3.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/npm/node_modules/cliui/node_modules/strip-ansi": { - "version": "4.0.0", + "version": "5.2.0", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "ansi-regex": "^3.0.0" + "ansi-regex": "^4.1.0" }, "engines": { - "node": ">=4" + "node": ">=6" } }, "node_modules/npm/node_modules/clone": { @@ -9639,20 +11435,10 @@ "version": "3.0.3", "dev": true, "inBundle": true, - "license": "ISC", - "dependencies": { - "graceful-fs": "^4.1.2", - "mkdirp": "~0.5.0" - } - }, - "node_modules/npm/node_modules/co": { - "version": "4.6.0", - "dev": true, - "inBundle": true, - "license": "MIT", - "engines": { - "iojs": ">= 1.0.0", - "node": ">= 0.12.0" + "license": "ISC", + "dependencies": { + "graceful-fs": "^4.1.2", + "mkdirp": "~0.5.0" } }, "node_modules/npm/node_modules/code-point-at": { @@ -9766,12 +11552,12 @@ } }, "node_modules/npm/node_modules/configstore": { - "version": "3.1.2", + "version": "3.1.5", "dev": true, "inBundle": true, "license": "BSD-2-Clause", "dependencies": { - "dot-prop": "^4.1.0", + "dot-prop": "^4.2.1", "graceful-fs": "^4.1.2", "make-dir": "^1.0.0", "unique-string": "^1.0.0", @@ -10001,7 +11787,7 @@ } }, "node_modules/npm/node_modules/dot-prop": { - "version": "4.2.0", + "version": "4.2.1", "dev": true, "inBundle": true, "license": "MIT", @@ -10080,6 +11866,12 @@ "inBundle": true, "license": "MIT" }, + "node_modules/npm/node_modules/emoji-regex": { + "version": "7.0.3", + "dev": true, + "inBundle": true, + "license": "MIT" + }, "node_modules/npm/node_modules/encoding": { "version": "0.1.12", "dev": true, @@ -10221,12 +12013,6 @@ "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/fast-deep-equal": { - "version": "1.1.0", - "dev": true, - "inBundle": true, - "license": "MIT" - }, "node_modules/npm/node_modules/fast-json-stable-stringify": { "version": "2.0.0", "dev": true, @@ -10245,18 +12031,6 @@ "inBundle": true, "license": "ISC" }, - "node_modules/npm/node_modules/find-up": { - "version": "2.1.0", - "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "locate-path": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/npm/node_modules/flush-write-stream": { "version": "1.0.3", "dev": true, @@ -10475,7 +12249,7 @@ "license": "MIT" }, "node_modules/npm/node_modules/gentle-fs": { - "version": "2.3.0", + "version": "2.3.1", "dev": true, "inBundle": true, "license": "Artistic-2.0", @@ -10506,10 +12280,13 @@ "license": "MIT" }, "node_modules/npm/node_modules/get-caller-file": { - "version": "1.0.3", + "version": "2.0.5", "dev": true, "inBundle": true, - "license": "ISC" + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } }, "node_modules/npm/node_modules/get-stream": { "version": "4.1.0", @@ -10611,18 +12388,47 @@ } }, "node_modules/npm/node_modules/har-validator": { - "version": "5.1.0", + "version": "5.1.5", + "deprecated": "this library is no longer supported", "dev": true, "inBundle": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "ajv": "^5.3.0", + "ajv": "^6.12.3", "har-schema": "^2.0.0" }, "engines": { - "node": ">=4" + "node": ">=6" + } + }, + "node_modules/npm/node_modules/har-validator/node_modules/ajv": { + "version": "6.12.6", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/npm/node_modules/har-validator/node_modules/fast-deep-equal": { + "version": "3.1.3", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/har-validator/node_modules/json-schema-traverse": { + "version": "0.4.1", + "dev": true, + "inBundle": true, + "license": "MIT" + }, "node_modules/npm/node_modules/has": { "version": "1.0.3", "dev": true, @@ -10660,7 +12466,7 @@ "license": "ISC" }, "node_modules/npm/node_modules/hosted-git-info": { - "version": "2.8.8", + "version": "2.8.9", "dev": true, "inBundle": true, "license": "ISC" @@ -10792,13 +12598,10 @@ "license": "ISC" }, "node_modules/npm/node_modules/ini": { - "version": "1.3.5", + "version": "1.3.8", "dev": true, "inBundle": true, - "license": "ISC", - "engines": { - "node": "*" - } + "license": "ISC" }, "node_modules/npm/node_modules/init-package-json": { "version": "1.10.3", @@ -10816,15 +12619,6 @@ "validate-npm-package-name": "^3.0.0" } }, - "node_modules/npm/node_modules/invert-kv": { - "version": "2.0.0", - "dev": true, - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/npm/node_modules/ip": { "version": "1.1.5", "dev": true, @@ -11032,15 +12826,10 @@ "license": "MIT" }, "node_modules/npm/node_modules/json-schema": { - "version": "0.2.3", - "dev": true, - "inBundle": true - }, - "node_modules/npm/node_modules/json-schema-traverse": { - "version": "0.3.1", + "version": "0.4.0", "dev": true, "inBundle": true, - "license": "MIT" + "license": "(AFL-2.1 OR BSD-3-Clause)" }, "node_modules/npm/node_modules/json-stringify-safe": { "version": "5.0.1", @@ -11074,18 +12863,18 @@ } }, "node_modules/npm/node_modules/jsprim": { - "version": "1.4.1", + "version": "1.4.2", "dev": true, - "engines": [ - "node >=0.6.0" - ], "inBundle": true, "license": "MIT", "dependencies": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", - "json-schema": "0.2.3", + "json-schema": "0.4.0", "verror": "1.10.0" + }, + "engines": { + "node": ">=0.6.0" } }, "node_modules/npm/node_modules/latest-version": { @@ -11106,20 +12895,8 @@ "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/lcid": { - "version": "2.0.0", - "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "invert-kv": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/npm/node_modules/libcipm": { - "version": "4.0.7", + "version": "4.0.8", "dev": true, "inBundle": true, "license": "MIT", @@ -11130,7 +12907,7 @@ "find-npm-prefix": "^1.0.2", "graceful-fs": "^4.1.11", "ini": "^1.3.5", - "lock-verify": "^2.0.2", + "lock-verify": "^2.1.0", "mkdirp": "^0.5.1", "npm-lifecycle": "^3.0.0", "npm-logical-tree": "^1.2.1", @@ -11315,7 +13092,7 @@ } }, "node_modules/npm/node_modules/libnpx": { - "version": "10.2.2", + "version": "10.2.4", "dev": true, "inBundle": true, "license": "ISC", @@ -11327,20 +13104,7 @@ "update-notifier": "^2.3.0", "which": "^1.3.0", "y18n": "^4.0.0", - "yargs": "^11.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/npm/node_modules/locate-path": { - "version": "2.0.0", - "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" + "yargs": "^14.2.3" }, "engines": { "node": ">=4" @@ -11499,47 +13263,12 @@ "ssri": "^6.0.0" } }, - "node_modules/npm/node_modules/map-age-cleaner": { - "version": "0.1.3", - "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "p-defer": "^1.0.0" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/npm/node_modules/meant": { - "version": "1.0.1", + "version": "1.0.2", "dev": true, "inBundle": true, "license": "MIT" }, - "node_modules/npm/node_modules/mem": { - "version": "4.3.0", - "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "map-age-cleaner": "^0.1.1", - "mimic-fn": "^2.0.0", - "p-is-promise": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/npm/node_modules/mem/node_modules/mimic-fn": { - "version": "2.1.0", - "dev": true, - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/npm/node_modules/mime-db": { "version": "1.35.0", "dev": true, @@ -11573,6 +13302,12 @@ "node": "*" } }, + "node_modules/npm/node_modules/minimist": { + "version": "1.2.6", + "dev": true, + "inBundle": true, + "license": "MIT" + }, "node_modules/npm/node_modules/minizlib": { "version": "1.3.3", "dev": true, @@ -11626,7 +13361,7 @@ } }, "node_modules/npm/node_modules/mkdirp/node_modules/minimist": { - "version": "1.2.5", + "version": "1.2.6", "dev": true, "inBundle": true, "license": "MIT" @@ -11663,12 +13398,6 @@ "inBundle": true, "license": "ISC" }, - "node_modules/npm/node_modules/nice-try": { - "version": "1.0.5", - "dev": true, - "inBundle": true, - "license": "MIT" - }, "node_modules/npm/node_modules/node-fetch-npm": { "version": "2.0.2", "dev": true, @@ -11743,7 +13472,7 @@ } }, "node_modules/npm/node_modules/npm-audit-report": { - "version": "1.3.2", + "version": "1.3.3", "dev": true, "inBundle": true, "license": "ISC", @@ -11777,7 +13506,7 @@ } }, "node_modules/npm/node_modules/npm-lifecycle": { - "version": "3.1.4", + "version": "3.1.5", "dev": true, "inBundle": true, "license": "Artistic-2.0", @@ -11850,7 +13579,7 @@ } }, "node_modules/npm/node_modules/npm-registry-fetch": { - "version": "4.0.5", + "version": "4.0.7", "dev": true, "inBundle": true, "license": "ISC", @@ -11897,7 +13626,7 @@ } }, "node_modules/npm/node_modules/npm-user-validate": { - "version": "1.0.0", + "version": "1.0.1", "dev": true, "inBundle": true, "license": "BSD-2-Clause" @@ -11941,174 +13670,75 @@ "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/object-keys": { - "version": "1.0.12", - "dev": true, - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/npm/node_modules/object.getownpropertydescriptors": { - "version": "2.0.3", - "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "define-properties": "^1.1.2", - "es-abstract": "^1.5.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/npm/node_modules/once": { - "version": "1.4.0", - "dev": true, - "inBundle": true, - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/npm/node_modules/opener": { - "version": "1.5.1", - "dev": true, - "inBundle": true, - "license": "(WTFPL OR MIT)", - "bin": { - "opener": "bin/opener-bin.js" - } - }, - "node_modules/npm/node_modules/os-homedir": { - "version": "1.0.2", - "dev": true, - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/npm/node_modules/os-locale": { - "version": "3.1.0", - "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "execa": "^1.0.0", - "lcid": "^2.0.0", - "mem": "^4.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/npm/node_modules/os-locale/node_modules/cross-spawn": { - "version": "6.0.5", - "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "engines": { - "node": ">=4.8" - } - }, - "node_modules/npm/node_modules/os-locale/node_modules/execa": { - "version": "1.0.0", - "dev": true, - "inBundle": true, - "license": "MIT", - "dependencies": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/npm/node_modules/os-tmpdir": { - "version": "1.0.2", + "node_modules/npm/node_modules/object-keys": { + "version": "1.0.12", "dev": true, "inBundle": true, "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">= 0.4" } }, - "node_modules/npm/node_modules/osenv": { - "version": "0.1.5", + "node_modules/npm/node_modules/object.getownpropertydescriptors": { + "version": "2.0.3", "dev": true, "inBundle": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" + "define-properties": "^1.1.2", + "es-abstract": "^1.5.1" + }, + "engines": { + "node": ">= 0.8" } }, - "node_modules/npm/node_modules/p-defer": { - "version": "1.0.0", + "node_modules/npm/node_modules/once": { + "version": "1.4.0", "dev": true, "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=4" + "license": "ISC", + "dependencies": { + "wrappy": "1" } }, - "node_modules/npm/node_modules/p-finally": { - "version": "1.0.0", + "node_modules/npm/node_modules/opener": { + "version": "1.5.2", "dev": true, "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=4" + "license": "(WTFPL OR MIT)", + "bin": { + "opener": "bin/opener-bin.js" } }, - "node_modules/npm/node_modules/p-is-promise": { - "version": "2.1.0", + "node_modules/npm/node_modules/os-homedir": { + "version": "1.0.2", "dev": true, "inBundle": true, "license": "MIT", "engines": { - "node": ">=6" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/p-limit": { - "version": "1.2.0", + "node_modules/npm/node_modules/os-tmpdir": { + "version": "1.0.2", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "p-try": "^1.0.0" - }, "engines": { - "node": ">=4" + "node": ">=0.10.0" } }, - "node_modules/npm/node_modules/p-locate": { - "version": "2.0.0", + "node_modules/npm/node_modules/osenv": { + "version": "0.1.5", "dev": true, "inBundle": true, - "license": "MIT", + "license": "ISC", "dependencies": { - "p-limit": "^1.1.0" - }, - "engines": { - "node": ">=4" + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" } }, - "node_modules/npm/node_modules/p-try": { + "node_modules/npm/node_modules/p-finally": { "version": "1.0.0", "dev": true, "inBundle": true, @@ -12249,7 +13879,7 @@ } }, "node_modules/npm/node_modules/path-parse": { - "version": "1.0.6", + "version": "1.0.7", "dev": true, "inBundle": true, "license": "MIT" @@ -12443,12 +14073,6 @@ "rc": "cli.js" } }, - "node_modules/npm/node_modules/rc/node_modules/minimist": { - "version": "1.2.5", - "dev": true, - "inBundle": true, - "license": "MIT" - }, "node_modules/npm/node_modules/read": { "version": "1.0.7", "dev": true, @@ -12602,7 +14226,7 @@ } }, "node_modules/npm/node_modules/require-main-filename": { - "version": "1.0.1", + "version": "2.0.0", "dev": true, "inBundle": true, "license": "ISC" @@ -12904,7 +14528,7 @@ } }, "node_modules/npm/node_modules/ssri": { - "version": "6.0.1", + "version": "6.0.2", "dev": true, "inBundle": true, "license": "ISC", @@ -13078,18 +14702,18 @@ } }, "node_modules/npm/node_modules/tar": { - "version": "4.4.13", + "version": "4.4.19", "dev": true, "inBundle": true, "license": "ISC", "dependencies": { - "chownr": "^1.1.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.8.6", - "minizlib": "^1.2.1", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.2", - "yallist": "^3.0.3" + "chownr": "^1.1.4", + "fs-minipass": "^1.2.7", + "minipass": "^2.9.0", + "minizlib": "^1.3.3", + "mkdirp": "^0.5.5", + "safe-buffer": "^5.2.1", + "yallist": "^3.1.1" }, "engines": { "node": ">=4.5" @@ -13105,6 +14729,32 @@ "yallist": "^3.0.0" } }, + "node_modules/npm/node_modules/tar/node_modules/safe-buffer": { + "version": "5.2.1", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/tar/node_modules/yallist": { + "version": "3.1.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, "node_modules/npm/node_modules/term-size": { "version": "1.2.0", "dev": true, @@ -13300,6 +14950,24 @@ "node": ">=4" } }, + "node_modules/npm/node_modules/uri-js": { + "version": "4.4.0", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/npm/node_modules/uri-js/node_modules/punycode": { + "version": "2.1.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/npm/node_modules/url-parse-lax": { "version": "1.0.0", "dev": true, @@ -13447,120 +15115,253 @@ } }, "node_modules/npm/node_modules/wrap-ansi": { - "version": "2.1.0", + "version": "5.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^3.2.0", + "string-width": "^3.0.0", + "strip-ansi": "^5.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/string-width": { + "version": "3.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "5.2.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/wrappy": { + "version": "1.0.2", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/write-file-atomic": { + "version": "2.4.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "graceful-fs": "^4.1.11", + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.2" + } + }, + "node_modules/npm/node_modules/xdg-basedir": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/xtend": { + "version": "4.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/npm/node_modules/y18n": { + "version": "4.0.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/yallist": { + "version": "3.0.3", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/yargs": { + "version": "14.2.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "cliui": "^5.0.0", + "decamelize": "^1.2.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^3.0.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^15.0.1" + } + }, + "node_modules/npm/node_modules/yargs-parser": { + "version": "15.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + }, + "node_modules/npm/node_modules/yargs-parser/node_modules/camelcase": { + "version": "5.3.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/yargs/node_modules/ansi-regex": { + "version": "4.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/yargs/node_modules/find-up": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "locate-path": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/yargs/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", "dev": true, "inBundle": true, "license": "MIT", - "dependencies": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" - }, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/npm/node_modules/wrap-ansi/node_modules/string-width": { - "version": "1.0.2", + "node_modules/npm/node_modules/yargs/node_modules/locate-path": { + "version": "3.0.0", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=6" } }, - "node_modules/npm/node_modules/wrappy": { - "version": "1.0.2", - "dev": true, - "inBundle": true, - "license": "ISC" - }, - "node_modules/npm/node_modules/write-file-atomic": { - "version": "2.4.3", + "node_modules/npm/node_modules/yargs/node_modules/p-limit": { + "version": "2.3.0", "dev": true, "inBundle": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "graceful-fs": "^4.1.11", - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.2" + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/npm/node_modules/xdg-basedir": { + "node_modules/npm/node_modules/yargs/node_modules/p-locate": { "version": "3.0.0", "dev": true, "inBundle": true, "license": "MIT", + "dependencies": { + "p-limit": "^2.0.0" + }, "engines": { - "node": ">=4" + "node": ">=6" } }, - "node_modules/npm/node_modules/xtend": { - "version": "4.0.1", + "node_modules/npm/node_modules/yargs/node_modules/p-try": { + "version": "2.2.0", "dev": true, "inBundle": true, "license": "MIT", "engines": { - "node": ">=0.4" + "node": ">=6" } }, - "node_modules/npm/node_modules/y18n": { - "version": "4.0.0", - "dev": true, - "inBundle": true, - "license": "ISC" - }, - "node_modules/npm/node_modules/yallist": { - "version": "3.0.3", - "dev": true, - "inBundle": true, - "license": "ISC" - }, - "node_modules/npm/node_modules/yargs": { - "version": "11.1.1", + "node_modules/npm/node_modules/yargs/node_modules/string-width": { + "version": "3.1.0", "dev": true, "inBundle": true, "license": "MIT", "dependencies": { - "cliui": "^4.0.0", - "decamelize": "^1.1.1", - "find-up": "^2.1.0", - "get-caller-file": "^1.0.1", - "os-locale": "^3.1.0", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^2.0.0", - "which-module": "^2.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^9.0.2" + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + }, + "engines": { + "node": ">=6" } }, - "node_modules/npm/node_modules/yargs-parser": { - "version": "9.0.2", + "node_modules/npm/node_modules/yargs/node_modules/strip-ansi": { + "version": "5.2.0", "dev": true, "inBundle": true, - "license": "ISC", + "license": "MIT", "dependencies": { - "camelcase": "^4.1.0" + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" } }, - "node_modules/npm/node_modules/yargs/node_modules/y18n": { - "version": "3.2.1", - "dev": true, - "inBundle": true, - "license": "ISC" - }, - "node_modules/nwsapi": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.0.tgz", - "integrity": "sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==", - "dev": true - }, "node_modules/object-inspect": { "version": "1.12.2", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", @@ -13615,6 +15416,23 @@ "node": ">=0.10.0" } }, + "node_modules/object.values": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.5.tgz", + "integrity": "sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -13775,12 +15593,6 @@ "node": ">=4" } }, - "node_modules/parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", - "dev": true - }, "node_modules/path-exists": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", @@ -13814,18 +15626,6 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, - "node_modules/path-type": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", - "dev": true, - "dependencies": { - "pify": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", @@ -13974,6 +15774,33 @@ "node": ">= 0.8.0" } }, + "node_modules/prettier": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", + "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "dependencies": { + "fast-diff": "^1.1.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/pretty-format": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", @@ -14006,15 +15833,6 @@ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, - "node_modules/progress": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/prompts": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", @@ -14028,12 +15846,6 @@ "node": ">= 6" } }, - "node_modules/psl": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", - "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", - "dev": true - }, "node_modules/pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", @@ -14083,20 +15895,14 @@ ] }, "node_modules/quick-lru": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-1.1.0.tgz", - "integrity": "sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g=", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", + "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", "dev": true, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/ramda": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.27.0.tgz", - "integrity": "sha512-pVzZdDpWwWqEVVLshWUHjNwuVP7SfcmPraYuqocJp1yo2U1R7P+5QAfDhdItkuoGqIBnBYrtPp7rEPqDn9HlZA==", - "dev": true - }, "node_modules/ramldt2jsonschema": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/ramldt2jsonschema/-/ramldt2jsonschema-1.2.3.tgz", @@ -14112,6 +15918,18 @@ "js2dt": "bin/js2dt.js" } }, + "node_modules/ramldt2jsonschema/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/randomatic": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", @@ -14141,55 +15959,157 @@ "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=0.10.0" + } + }, + "node_modules/rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "dev": true, + "dependencies": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "bin": { + "rc": "cli.js" + } + }, + "node_modules/react-is": { + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "dev": true + }, + "node_modules/read-pkg": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", + "dev": true, + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "dev": true, + "dependencies": { + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/read-pkg-up/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/read-pkg-up/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "node_modules/read-pkg-up/node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, - "dependencies": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "bin": { - "rc": "cli.js" + "engines": { + "node": ">=6" } }, - "node_modules/react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", - "dev": true + "node_modules/read-pkg-up/node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } }, - "node_modules/read-pkg": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "node_modules/read-pkg-up/node_modules/type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", "dev": true, - "dependencies": { - "load-json-file": "^4.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^3.0.0" - }, "engines": { - "node": ">=4" + "node": ">=8" } }, - "node_modules/read-pkg-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", - "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", + "node_modules/read-pkg/node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, "dependencies": { - "find-up": "^2.0.0", - "read-pkg": "^3.0.0" + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" }, "engines": { - "node": ">=4" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/readable-stream": { @@ -14208,16 +16128,16 @@ } }, "node_modules/redent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", - "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", + "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", "dev": true, "dependencies": { - "indent-string": "^3.0.0", - "strip-indent": "^2.0.0" + "indent-string": "^4.0.0", + "strip-indent": "^3.0.0" }, "engines": { - "node": ">=4" + "node": ">=8" } }, "node_modules/redeyed": { @@ -14229,6 +16149,21 @@ "esprima": "~4.0.0" } }, + "node_modules/regenerator-runtime": { + "version": "0.13.9", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", + "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==", + "dev": true + }, + "node_modules/regexp-tree": { + "version": "0.1.24", + "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.24.tgz", + "integrity": "sha512-s2aEVuLhvnVJW6s/iPgEGK6R+/xngd2jNQ+xy4bXNDKxZKJH6jpPHY6kVeVv1IeLCHgswRj+Kl3ELaDjG6V1iw==", + "dev": true, + "bin": { + "regexp-tree": "bin/regexp-tree" + } + }, "node_modules/regexp.prototype.flags": { "version": "1.4.3", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", @@ -14246,9 +16181,9 @@ } }, "node_modules/regexpp": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz", - "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", "dev": true, "engines": { "node": ">=8" @@ -14367,15 +16302,6 @@ "node": ">=10" } }, - "node_modules/ret": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", - "dev": true, - "engines": { - "node": ">=0.12" - } - }, "node_modules/retry": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", @@ -14440,12 +16366,12 @@ "dev": true }, "node_modules/safe-regex": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", - "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz", + "integrity": "sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==", "dev": true, "dependencies": { - "ret": "~0.1.10" + "regexp-tree": "~0.1.1" } }, "node_modules/safe-stable-stringify": { @@ -14453,24 +16379,6 @@ "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz", "integrity": "sha512-ERq4hUjKDbJfE4+XtZLFPCDi8Vb1JqaxAPTxWFLBx8XcAlf9Bda/ZJdVezs/NAfsMQScyIlUMx+Yeu7P7rx5jw==" }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "node_modules/saxes": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", - "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", - "dev": true, - "dependencies": { - "xmlchars": "^2.2.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/semantic-release": { "version": "17.4.3", "resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-17.4.3.tgz", @@ -14513,19 +16421,6 @@ "node": ">=10.18" } }, - "node_modules/semantic-release/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/semantic-release/node_modules/hosted-git-info": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", @@ -14538,134 +16433,6 @@ "node": ">=10" } }, - "node_modules/semantic-release/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/semantic-release/node_modules/marked": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/marked/-/marked-2.0.3.tgz", - "integrity": "sha512-5otztIIcJfPc2qGTN8cVtOJEjNJZ0jwa46INMagrYfk0EvqtRuEHLsEe0LrFS0/q+ZRKT0+kXK7P2T1AN5lWRA==", - "dev": true, - "bin": { - "marked": "bin/marked" - }, - "engines": { - "node": ">= 8.16.2" - } - }, - "node_modules/semantic-release/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/semantic-release/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/semantic-release/node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/semantic-release/node_modules/parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/semantic-release/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/semantic-release/node_modules/read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "dependencies": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/semantic-release/node_modules/read-pkg-up": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", - "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", - "dev": true, - "dependencies": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/semantic-release/node_modules/read-pkg/node_modules/type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/semantic-release/node_modules/semver": { "version": "7.3.5", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", @@ -14681,15 +16448,6 @@ "node": ">=10" } }, - "node_modules/semantic-release/node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", @@ -14721,9 +16479,9 @@ } }, "node_modules/semver-regex": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.3.tgz", - "integrity": "sha512-Aqi54Mk9uYTjVexLnR67rTyBusmwd04cLkHy9hNvk3+G3nT2Oyg7E0l4XVbOaNwIvQ3hHeYxGcyEy+mKreyBFQ==", + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.4.tgz", + "integrity": "sha512-6IiqeZNgq01qGf0TId0t3NvKzSvUsjcpdEO3AQNeIjR6A2+ckTnQlDpl4qu1bjRv0RzN3FP9hzFmws3lKqRWkA==", "dev": true, "engines": { "node": ">=8" @@ -14779,9 +16537,9 @@ } }, "node_modules/signal-exit": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", - "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true }, "node_modules/signale": { @@ -14833,59 +16591,9 @@ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, "engines": { - "node": ">=8" - } - }, - "node_modules/slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "node_modules/slice-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/slice-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" + "node": ">=8" } }, - "node_modules/slice-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -14896,9 +16604,9 @@ } }, "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, "dependencies": { "buffer-from": "^1.0.0", @@ -14956,22 +16664,26 @@ } }, "node_modules/split2": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-2.2.0.tgz", - "integrity": "sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz", + "integrity": "sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==", "dev": true, "dependencies": { - "through2": "^2.0.2" + "readable-stream": "^3.0.0" } }, - "node_modules/split2/node_modules/through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "node_modules/split2/node_modules/readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", "dev": true, "dependencies": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" } }, "node_modules/sprintf-js": { @@ -15112,12 +16824,15 @@ } }, "node_modules/strip-indent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", - "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", "dev": true, + "dependencies": { + "min-indent": "^1.0.0" + }, "engines": { - "node": ">=4" + "node": ">=8" } }, "node_modules/strip-json-comments": { @@ -15187,27 +16902,14 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", - "dev": true - }, - "node_modules/table": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/table/-/table-6.7.1.tgz", - "integrity": "sha512-ZGum47Yi6KOOFDE8m223td53ath2enHcYLgOCjGr5ngu8bdIARQk6mN/wRMv4yMRcHnCSnHbCEha4sobQx5yWg==", + "node_modules/svg-element-attributes": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/svg-element-attributes/-/svg-element-attributes-1.3.1.tgz", + "integrity": "sha512-Bh05dSOnJBf3miNMqpsormfNtfidA/GxQVakhtn0T4DECWKeXQRQUceYjJ+OxYiiLdGe4Jo9iFV8wICFapFeIA==", "dev": true, - "dependencies": { - "ajv": "^8.0.1", - "lodash.clonedeep": "^4.5.0", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10.0.0" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" } }, "node_modules/temp-dir": { @@ -15294,12 +16996,6 @@ "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", "dev": true }, - "node_modules/throat": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.1.tgz", - "integrity": "sha512-8hmiGIJMDlwjg7dlJ4yKGLK8EsYqKgPWbG3b4wjJddKNwc7N7Dpn08Df4szr/sZdMVeOstrdYSsqzX6BYbcB+w==", - "dev": true - }, "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", @@ -15307,12 +17003,26 @@ "dev": true }, "node_modules/through2": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", - "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz", + "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==", + "dev": true, + "dependencies": { + "readable-stream": "3" + } + }, + "node_modules/through2/node_modules/readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", "dev": true, "dependencies": { - "readable-stream": "2 || 3" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" } }, "node_modules/tmpl": { @@ -15360,29 +17070,6 @@ "integrity": "sha512-gVweAectJU3ebq//Ferr2JUY4WKSDe5N+z0FvjDncLGyHmIDoxgY/2Ie4qfEIDm4IS7OA6Rmdm7pdEEdMcV/xQ==", "dev": true }, - "node_modules/tough-cookie": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.0.0.tgz", - "integrity": "sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg==", - "dev": true, - "dependencies": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.1.2" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/tough-cookie/node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true, - "engines": { - "node": ">= 4.0.0" - } - }, "node_modules/tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", @@ -15395,98 +17082,21 @@ "dev": true }, "node_modules/trim-newlines": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", - "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/trim-off-newlines": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.3.tgz", - "integrity": "sha512-kh6Tu6GbeSNMGfrrZh6Bb/4ZEHV1QlB4xNDBeog8Y9/QwFlKTRyWvY3Fs9tRDAMZliVUwieMgEdIeL/FtqjkJg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ts-jest": { - "version": "27.1.3", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-27.1.3.tgz", - "integrity": "sha512-6Nlura7s6uM9BVUAoqLH7JHyMXjz8gluryjpPXxr3IxZdAXnU6FhjvVLHFtfd1vsE1p8zD1OJfskkc0jhTSnkA==", - "dev": true, - "dependencies": { - "bs-logger": "0.x", - "fast-json-stable-stringify": "2.x", - "jest-util": "^27.0.0", - "json5": "2.x", - "lodash.memoize": "4.x", - "make-error": "1.x", - "semver": "7.x", - "yargs-parser": "20.x" - }, - "bin": { - "ts-jest": "cli.js" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - }, - "peerDependencies": { - "@babel/core": ">=7.0.0-beta.0 <8", - "@types/jest": "^27.0.0", - "babel-jest": ">=27.0.0 <28", - "esbuild": "~0.14.0", - "jest": "^27.0.0", - "typescript": ">=3.8 <5.0" - }, - "peerDependenciesMeta": { - "@babel/core": { - "optional": true - }, - "@types/jest": { - "optional": true - }, - "babel-jest": { - "optional": true - }, - "esbuild": { - "optional": true - } - } - }, - "node_modules/ts-jest/node_modules/semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/ts-jest/node_modules/yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", + "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", "dev": true, "engines": { - "node": ">=10" + "node": ">=8" } }, "node_modules/ts-node": { - "version": "10.7.0", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.7.0.tgz", - "integrity": "sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A==", + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", + "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", "dev": true, "dependencies": { - "@cspotcode/source-map-support": "0.7.0", + "@cspotcode/source-map-support": "^0.8.0", "@tsconfig/node10": "^1.0.7", "@tsconfig/node12": "^1.0.7", "@tsconfig/node14": "^1.0.0", @@ -15497,7 +17107,7 @@ "create-require": "^1.1.0", "diff": "^4.0.1", "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.0", + "v8-compile-cache-lib": "^3.0.1", "yn": "3.1.1" }, "bin": { @@ -15523,13 +17133,28 @@ } } }, - "node_modules/ts-node/node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "node_modules/tsconfig-paths": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz", + "integrity": "sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==", "dev": true, - "engines": { - "node": ">=0.4.0" + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.1", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tsconfig-paths/node_modules/json5": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", + "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "dev": true, + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" } }, "node_modules/tslib": { @@ -15537,6 +17162,27 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" }, + "node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/tsutils/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -15573,19 +17219,10 @@ "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", "dev": true }, - "node_modules/typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "dev": true, - "dependencies": { - "is-typedarray": "^1.0.0" - } - }, "node_modules/typescript": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.2.tgz", - "integrity": "sha512-HM/hFigTBHZhLXshn9sN37H085+hQGeJHJ/X7LpBWLID/fbc2acUMfU+lGD98X81sKP+pFa9f0DZmCwB9GnbAg==", + "version": "4.8.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.2.tgz", + "integrity": "sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -15649,6 +17286,32 @@ "node": ">= 10.0.0" } }, + "node_modules/update-browserslist-db": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.7.tgz", + "integrity": "sha512-iN/XYesmZ2RmmWAiI4Z5rq0YqSiv0brj9Ce9CfhNE4xIW2h+MFxcgkxIzZ+ShkFPUkjU3gQ+3oypadD3RAMtrg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "browserslist-lint": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, "node_modules/uri-js": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", @@ -15658,9 +17321,9 @@ } }, "node_modules/urijs": { - "version": "1.19.10", - "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.10.tgz", - "integrity": "sha512-EzauQlgKuJgsXOqoMrCiePBf4At5jVqRhXykF3Wfb8ZsOBMxPcfiVBcsHXug4Aepb/ICm2PIgqAUGMelgdrWEg==" + "version": "1.19.11", + "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz", + "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==" }, "node_modules/url-join": { "version": "4.0.1", @@ -15682,41 +17345,26 @@ "node": ">= 4" } }, - "node_modules/v8-compile-cache": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", - "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", - "dev": true - }, "node_modules/v8-compile-cache-lib": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.0.tgz", - "integrity": "sha512-mpSYqfsFvASnSn5qMiwrr4VKfumbPyONLCOPmsR3A6pTY/r0+tSaVbgPWSAIuzbk3lCTa+FForeTiO+wBQGkjA==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", "dev": true }, "node_modules/v8-to-istanbul": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz", - "integrity": "sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.0.1.tgz", + "integrity": "sha512-74Y4LqY74kLE6IFyIjPtkSTWzUZmj8tdHT9Ii/26dvQ6K9Dl2NbEfj0XgU2sHCtKgt5VupqhlO/5aWuqS+IY1w==", "dev": true, "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0", - "source-map": "^0.7.3" + "convert-source-map": "^1.6.0" }, "engines": { "node": ">=10.12.0" } }, - "node_modules/v8-to-istanbul/node_modules/source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, "node_modules/validate-npm-package-license": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", @@ -15727,27 +17375,6 @@ "spdx-expression-parse": "^3.0.0" } }, - "node_modules/w3c-hr-time": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", - "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", - "dev": true, - "dependencies": { - "browser-process-hrtime": "^1.0.0" - } - }, - "node_modules/w3c-xmlserializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", - "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", - "dev": true, - "dependencies": { - "xml-name-validator": "^3.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/walker": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", @@ -15786,21 +17413,6 @@ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" }, - "node_modules/whatwg-encoding": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", - "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", - "dev": true, - "dependencies": { - "iconv-lite": "0.4.24" - } - }, - "node_modules/whatwg-mimetype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", - "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", - "dev": true - }, "node_modules/whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", @@ -15901,51 +17513,6 @@ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, - "node_modules/write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", - "dev": true, - "dependencies": { - "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - } - }, - "node_modules/ws": { - "version": "7.5.7", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.7.tgz", - "integrity": "sha512-KMvVuFzpKBuiIXW3E4u3mySRO2/mCHSyZDJQM5NQ9Q9KHWHWh0NHgfbRMLLrceUK5qAL4ytALJbpRMjixFZh8A==", - "dev": true, - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/xml-name-validator": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", - "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", - "dev": true - }, - "node_modules/xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", - "dev": true - }, "node_modules/xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", @@ -15998,15 +17565,6 @@ } }, "node_modules/yargs-parser": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz", - "integrity": "sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ==", - "dev": true, - "dependencies": { - "camelcase": "^4.1.0" - } - }, - "node_modules/yargs/node_modules/yargs-parser": { "version": "20.2.9", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", @@ -16023,6 +17581,18 @@ "engines": { "node": ">=6" } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } } }, "dependencies": { @@ -16189,9 +17759,9 @@ } }, "@babel/helper-plugin-utils": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz", - "integrity": "sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==", + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.19.0.tgz", + "integrity": "sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw==", "dev": true }, "@babel/helper-simple-access": { @@ -16297,6 +17867,15 @@ "@babel/helper-plugin-utils": "^7.8.0" } }, + "@babel/plugin-syntax-jsx": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz", + "integrity": "sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, "@babel/plugin-syntax-logical-assignment-operators": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", @@ -16361,12 +17940,31 @@ } }, "@babel/plugin-syntax-typescript": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.16.7.tgz", - "integrity": "sha512-YhUIJHHGkqPgEcMYkPCKTyGUdoGKWtopIycQyjJH8OjvRgOYsXsaKehLVPScKJWAULPxMa4N1vCe6szREFlZ7A==", + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.18.6.tgz", + "integrity": "sha512-mAWAuq4rvOepWCBid55JuRNvpTNf2UGVgoz4JV0fXEKolsVZDzsa4NqCef758WZJj/GDu0gVGItjKFiClTAmZA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/runtime": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.19.0.tgz", + "integrity": "sha512-eR8Lo9hnDS7tqkO7NsV+mKvCmv5boaXFSZ70DnfhcgiEne8hv9oCEd36Klw74EtizEqLsy4YnW8UWwpBVolHZA==", + "dev": true, + "requires": { + "regenerator-runtime": "^0.13.4" + } + }, + "@babel/runtime-corejs3": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.19.0.tgz", + "integrity": "sha512-JyXXoCu1N8GLuKc2ii8y5RGma5FMpFeO2nAQIe0Yzrbq+rQnN+sFj47auLblR5ka6aHNGPDgv8G/iI2Grb0ldQ==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "core-js-pure": "^3.20.2", + "regenerator-runtime": "^0.13.4" } }, "@babel/template": { @@ -16422,35 +18020,41 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, - "@cspotcode/source-map-consumer": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz", - "integrity": "sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==", - "dev": true - }, "@cspotcode/source-map-support": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.7.0.tgz", - "integrity": "sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==", + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", "dev": true, "requires": { - "@cspotcode/source-map-consumer": "0.8.0" + "@jridgewell/trace-mapping": "0.3.9" + }, + "dependencies": { + "@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "requires": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + } } }, "@eslint/eslintrc": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.1.tgz", - "integrity": "sha512-5v7TDE9plVhvxQeWLXDTvFvJBdH6pEsdnl2g/dAptmuFEPedQ4Erq5rsDsX+mvAM610IhNaO2W5V1dOOnDKxkQ==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.1.tgz", + "integrity": "sha512-OhSY22oQQdw3zgPOOwdoj01l/Dzl1Z+xyUP33tkSN+aqyEhymJCcPHyXt+ylW8FSe0TfRC2VG+ROQOapD0aZSQ==", "dev": true, "requires": { "ajv": "^6.12.4", - "debug": "^4.1.1", - "espree": "^7.3.0", - "globals": "^12.1.0", - "ignore": "^4.0.6", + "debug": "^4.3.2", + "espree": "^9.4.0", + "globals": "^13.15.0", + "ignore": "^5.2.0", "import-fresh": "^3.2.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", "strip-json-comments": "^3.1.1" }, "dependencies": { @@ -16466,35 +18070,43 @@ "uri-js": "^4.2.2" } }, - "globals": { - "version": "12.4.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", - "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", - "dev": true, - "requires": { - "type-fest": "^0.8.1" - } - }, - "ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", - "dev": true - }, "strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true - }, - "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true } } }, + "@humanwhocodes/config-array": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.4.tgz", + "integrity": "sha512-mXAIHxZT3Vcpg83opl1wGlVZ9xydbfZO3r5YfRSH6Gpp2J/PfdBP0wbDa2sO6/qRbcalpoevVyW6A/fI6LfeMw==", + "dev": true, + "requires": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.4" + } + }, + "@humanwhocodes/gitignore-to-minimatch": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz", + "integrity": "sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA==", + "dev": true + }, + "@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true + }, + "@humanwhocodes/object-schema": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", + "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", + "dev": true + }, "@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -16508,12 +18120,6 @@ "resolve-from": "^5.0.0" }, "dependencies": { - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true - }, "find-up": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", @@ -16524,6 +18130,16 @@ "path-exists": "^4.0.0" } }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, "locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", @@ -16572,16 +18188,16 @@ "dev": true }, "@jest/console": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-27.5.1.tgz", - "integrity": "sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.0.2.tgz", + "integrity": "sha512-Fv02ijyhF4D/Wb3DvZO3iBJQz5DnzpJEIDBDbvje8Em099N889tNMUnBw7SalmSuOI+NflNG40RA1iK71kImPw==", "dev": true, "requires": { - "@jest/types": "^27.5.1", + "@jest/types": "^29.0.2", "@types/node": "*", "chalk": "^4.0.0", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", + "jest-message-util": "^29.0.2", + "jest-util": "^29.0.2", "slash": "^3.0.0" }, "dependencies": { @@ -16625,6 +18241,20 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, + "jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -16637,41 +18267,64 @@ } }, "@jest/core": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-27.5.1.tgz", - "integrity": "sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.0.2.tgz", + "integrity": "sha512-imP5M6cdpHEOkmcuFYZuM5cTG1DAF7ZlVNCq1+F7kbqme2Jcl+Kh4M78hihM76DJHNkurbv4UVOnejGxBKEmww==", "dev": true, "requires": { - "@jest/console": "^27.5.1", - "@jest/reporters": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/console": "^29.0.2", + "@jest/reporters": "^29.0.2", + "@jest/test-result": "^29.0.2", + "@jest/transform": "^29.0.2", + "@jest/types": "^29.0.2", "@types/node": "*", "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", - "emittery": "^0.8.1", + "ci-info": "^3.2.0", "exit": "^0.1.2", "graceful-fs": "^4.2.9", - "jest-changed-files": "^27.5.1", - "jest-config": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-resolve-dependencies": "^27.5.1", - "jest-runner": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", - "jest-watcher": "^27.5.1", + "jest-changed-files": "^29.0.0", + "jest-config": "^29.0.2", + "jest-haste-map": "^29.0.2", + "jest-message-util": "^29.0.2", + "jest-regex-util": "^29.0.0", + "jest-resolve": "^29.0.2", + "jest-resolve-dependencies": "^29.0.2", + "jest-runner": "^29.0.2", + "jest-runtime": "^29.0.2", + "jest-snapshot": "^29.0.2", + "jest-util": "^29.0.2", + "jest-validate": "^29.0.2", + "jest-watcher": "^29.0.2", "micromatch": "^4.0.4", - "rimraf": "^3.0.0", + "pretty-format": "^29.0.2", "slash": "^3.0.0", "strip-ansi": "^6.0.0" }, "dependencies": { + "@jest/transform": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", + "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", + "dev": true, + "requires": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.0.2", + "@jridgewell/trace-mapping": "^0.3.15", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.0.2", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.1" + } + }, "ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -16712,6 +18365,93 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, + "jest-haste-map": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", + "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.3.2", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "jest-worker": "^29.0.2", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + } + }, + "jest-regex-util": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", + "dev": true + }, + "jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "jest-worker": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", + "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", + "dev": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "pretty-format": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", + "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", + "dev": true, + "requires": { + "@jest/schemas": "^29.0.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -16720,6 +18460,16 @@ "requires": { "has-flag": "^4.0.0" } + }, + "write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + } } } }, @@ -16730,78 +18480,267 @@ "dev": true, "requires": { "@jest/types": "^27.5.1" + }, + "dependencies": { + "@jest/types": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", + "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + } + }, + "@types/yargs": { + "version": "16.0.4", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", + "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, "@jest/environment": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", - "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.0.2.tgz", + "integrity": "sha512-Yf+EYaLOrVCgts/aTS5nGznU4prZUPa5k9S63Yct8YSOKj2jkdS17hHSUKhk5jxDFMyCy1PXknypDw7vfgc/mA==", "dev": true, "requires": { - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/fake-timers": "^29.0.2", + "@jest/types": "^29.0.2", "@types/node": "*", - "jest-mock": "^27.5.1" + "jest-mock": "^29.0.2" + } + }, + "@jest/expect": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.0.2.tgz", + "integrity": "sha512-y/3geZ92p2/zovBm/F+ZjXUJ3thvT9IRzD6igqaWskFE2aR0idD+N/p5Lj/ZautEox/9RwEc6nqergebeh72uQ==", + "dev": true, + "requires": { + "expect": "^29.0.2", + "jest-snapshot": "^29.0.2" + } + }, + "@jest/expect-utils": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.0.2.tgz", + "integrity": "sha512-+wcQF9khXKvAEi8VwROnCWWmHfsJYCZAs5dmuMlJBKk57S6ZN2/FQMIlo01F29fJyT8kV/xblE7g3vkIdTLOjw==", + "dev": true, + "requires": { + "jest-get-type": "^29.0.0" + }, + "dependencies": { + "jest-get-type": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", + "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", + "dev": true + } } }, "@jest/fake-timers": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", - "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.0.2.tgz", + "integrity": "sha512-2JhQeWU28fvmM5r33lxg6BxxkTKaVXs6KMaJ6eXSM8ml/MaWkt2BvbIO8G9KWAJFMdBXWbn+2h9OK1/s5urKZA==", "dev": true, "requires": { - "@jest/types": "^27.5.1", - "@sinonjs/fake-timers": "^8.0.1", + "@jest/types": "^29.0.2", + "@sinonjs/fake-timers": "^9.1.2", "@types/node": "*", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" + "jest-message-util": "^29.0.2", + "jest-mock": "^29.0.2", + "jest-util": "^29.0.2" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, "@jest/globals": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-27.5.1.tgz", - "integrity": "sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.0.2.tgz", + "integrity": "sha512-4hcooSNJCVXuTu07/VJwCWW6HTnjLtQdqlcGisK6JST7z2ixa8emw4SkYsOk7j36WRc2ZUEydlUePnOIOTCNXg==", "dev": true, "requires": { - "@jest/environment": "^27.5.1", - "@jest/types": "^27.5.1", - "expect": "^27.5.1" + "@jest/environment": "^29.0.2", + "@jest/expect": "^29.0.2", + "@jest/types": "^29.0.2", + "jest-mock": "^29.0.2" } }, "@jest/reporters": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-27.5.1.tgz", - "integrity": "sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.0.2.tgz", + "integrity": "sha512-Kr41qejRQHHkCgWHC9YwSe7D5xivqP4XML+PvgwsnRFaykKdNflDUb4+xLXySOU+O/bPkVdFpGzUpVNSJChCrw==", "dev": true, "requires": { "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/console": "^29.0.2", + "@jest/test-result": "^29.0.2", + "@jest/transform": "^29.0.2", + "@jest/types": "^29.0.2", + "@jridgewell/trace-mapping": "^0.3.15", "@types/node": "*", "chalk": "^4.0.0", "collect-v8-coverage": "^1.0.0", "exit": "^0.1.2", - "glob": "^7.1.2", + "glob": "^7.1.3", "graceful-fs": "^4.2.9", "istanbul-lib-coverage": "^3.0.0", "istanbul-lib-instrument": "^5.1.0", "istanbul-lib-report": "^3.0.0", "istanbul-lib-source-maps": "^4.0.0", "istanbul-reports": "^3.1.3", - "jest-haste-map": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", + "jest-message-util": "^29.0.2", + "jest-util": "^29.0.2", + "jest-worker": "^29.0.2", "slash": "^3.0.0", - "source-map": "^0.6.0", "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", "terminal-link": "^2.0.0", - "v8-to-istanbul": "^8.1.0" + "v8-to-istanbul": "^9.0.1" }, "dependencies": { + "@jest/transform": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", + "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", + "dev": true, + "requires": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.0.2", + "@jridgewell/trace-mapping": "^0.3.15", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.0.2", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.1" + } + }, "ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -16842,6 +18781,68 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, + "jest-haste-map": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", + "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.3.2", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "jest-worker": "^29.0.2", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + } + }, + "jest-regex-util": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", + "dev": true + }, + "jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "jest-worker": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", + "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", + "dev": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -16850,65 +18851,61 @@ "requires": { "has-flag": "^4.0.0" } + }, + "write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + } } } }, + "@jest/schemas": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.0.0.tgz", + "integrity": "sha512-3Ab5HgYIIAnS0HjqJHQYZS+zXc4tUmTmBH3z83ajI6afXp8X3ZtdLX+nXx+I7LNkJD7uN9LAVhgnjDgZa2z0kA==", + "dev": true, + "requires": { + "@sinclair/typebox": "^0.24.1" + } + }, "@jest/source-map": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-27.5.1.tgz", - "integrity": "sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg==", + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.0.0.tgz", + "integrity": "sha512-nOr+0EM8GiHf34mq2GcJyz/gYFyLQ2INDhAylrZJ9mMWoW21mLBfZa0BUVPPMxVYrLjeiRe2Z7kWXOGnS0TFhQ==", "dev": true, "requires": { + "@jridgewell/trace-mapping": "^0.3.15", "callsites": "^3.0.0", - "graceful-fs": "^4.2.9", - "source-map": "^0.6.0" + "graceful-fs": "^4.2.9" } }, "@jest/test-result": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-27.5.1.tgz", - "integrity": "sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.0.2.tgz", + "integrity": "sha512-b5rDc0lLL6Kx73LyCx6370k9uZ8o5UKdCpMS6Za3ke7H9y8PtAU305y6TeghpBmf2In8p/qqi3GpftgzijSsNw==", "dev": true, "requires": { - "@jest/console": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/console": "^29.0.2", + "@jest/types": "^29.0.2", "@types/istanbul-lib-coverage": "^2.0.0", "collect-v8-coverage": "^1.0.0" } }, "@jest/test-sequencer": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz", - "integrity": "sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ==", - "dev": true, - "requires": { - "@jest/test-result": "^27.5.1", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-runtime": "^27.5.1" - } - }, - "@jest/transform": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.5.1.tgz", - "integrity": "sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.0.2.tgz", + "integrity": "sha512-fsyZqHBlXNMv5ZqjQwCuYa2pskXCO0DVxh5aaVCuAtwzHuYEGrhordyEncBLQNuCGQSYgElrEEmS+7wwFnnMKw==", "dev": true, "requires": { - "@babel/core": "^7.1.0", - "@jest/types": "^27.5.1", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", + "@jest/test-result": "^29.0.2", "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-util": "^27.5.1", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "source-map": "^0.6.1", - "write-file-atomic": "^3.0.0" + "jest-haste-map": "^29.0.2", + "slash": "^3.0.0" }, "dependencies": { "ansi-styles": { @@ -16951,6 +18948,68 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, + "jest-haste-map": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", + "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.3.2", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "jest-worker": "^29.0.2", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + } + }, + "jest-regex-util": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", + "dev": true + }, + "jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "jest-worker": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", + "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", + "dev": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -16963,15 +19022,16 @@ } }, "@jest/types": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.0.2.tgz", + "integrity": "sha512-5WNMesBLmlkt1+fVkoCjHa0X3i3q8zc4QLTDkdHgCa2gyPZc7rdlZBWgVLqwS1860ZW5xJuCDwAzqbGaXIr/ew==", "dev": true, "requires": { + "@jest/schemas": "^29.0.0", "@types/istanbul-lib-coverage": "^2.0.0", "@types/istanbul-reports": "^3.0.0", "@types/node": "*", - "@types/yargs": "^16.0.0", + "@types/yargs": "^17.0.8", "chalk": "^4.0.0" }, "dependencies": { @@ -17039,9 +19099,9 @@ "dev": true }, "@jridgewell/trace-mapping": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.4.tgz", - "integrity": "sha512-vFv9ttIedivx0ux3QSjhgtCVjPZd5l46ZOMDSCwnH1yUO2e964gO8LZGyv2QkqcgR6TnBU1v+1IFqmeoG+0UJQ==", + "version": "0.3.15", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.15.tgz", + "integrity": "sha512-oWZNOULl+UbhsgB51uuZzglikfIKSUBO/M9W2OfEjn7cmqoAiCgmv9lyACTUacZwBz0ITnJ2NqjU8Tx0DHL88g==", "dev": true, "requires": { "@jridgewell/resolve-uri": "^3.0.3", @@ -17061,28 +19121,28 @@ "requires": {} }, "@nodelib/fs.scandir": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz", - "integrity": "sha512-33g3pMJk3bg5nXbL/+CY6I2eJDzZAni49PfJnL5fghPTggPvBd/pFNSgJsdAgWptuFu7qq/ERvOYFlhvsLTCKA==", + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, "requires": { - "@nodelib/fs.stat": "2.0.4", + "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" } }, "@nodelib/fs.stat": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.4.tgz", - "integrity": "sha512-IYlHJA0clt2+Vg7bccq+TzRdJvv19c2INqBSsoOLp1je7xjtr7J26+WXR72MCdvU9q1qTzIWDfhMf+DRvQJK4Q==", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true }, "@nodelib/fs.walk": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.6.tgz", - "integrity": "sha512-8Broas6vTtW4GIXTAHDoE32hnN2M5ykgCpWGbuXHQ15vEMqr23pB76e/GZcYsZCHALv50ktd24qhEyKr6wBtow==", + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, "requires": { - "@nodelib/fs.scandir": "2.1.4", + "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" } }, @@ -17329,30 +19389,6 @@ "pump": "^3.0.0" } }, - "parse-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", - "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1", - "lines-and-columns": "^1.1.6" - } - }, - "read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "requires": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - } - }, "semver": { "version": "7.3.2", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", @@ -17379,16 +19415,6 @@ "read-pkg-up": "^7.0.0" }, "dependencies": { - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, "get-stream": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", @@ -17397,97 +19423,15 @@ "requires": { "pump": "^3.0.0" } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true - }, - "parse-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", - "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1", - "lines-and-columns": "^1.1.6" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "requires": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "dependencies": { - "type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", - "dev": true - } - } - }, - "read-pkg-up": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", - "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", - "dev": true, - "requires": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" - } - }, - "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true } } }, + "@sinclair/typebox": { + "version": "0.24.35", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.35.tgz", + "integrity": "sha512-iN6ehuDndiTiDz2F+Orv/+oHJR+PrGv+38oghCddpsW4YEZl5qyLsWxSwYUWrKEOfjpGtXDFW6scJtjpzSLeSw==", + "dev": true + }, "@sinonjs/commons": { "version": "1.8.3", "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.3.tgz", @@ -17498,9 +19442,9 @@ } }, "@sinonjs/fake-timers": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", - "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-9.1.2.tgz", + "integrity": "sha512-BPS4ynJW/o92PUR4wgriz2Ud5gpST5vz6GQfMixEDK0Z8ZCUv2M7SkBLykH56T++Xs+8ln9zTGbOvNGIe02/jw==", "dev": true, "requires": { "@sinonjs/commons": "^1.7.0" @@ -17592,9 +19536,9 @@ "integrity": "sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ==" }, "@stoplight/spectral-core": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.13.1.tgz", - "integrity": "sha512-0az1LZ/A7b6u8HESzBMv65syZXjsYhpQxvtQ2F9D50G7+AvvDsvQa3myk1J3lz4hY4dU1quW2xGgan9mE+XDhA==", + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.14.1.tgz", + "integrity": "sha512-UMPfkrDqIMiAoZuVx4QiVV3D5fssfhDQ6R36qTP3x0hZFOeVDIFIcVdKV8lgmvsbpKaOgU/AD/2s4jScyTIqoA==", "requires": { "@stoplight/better-ajv-errors": "1.0.3", "@stoplight/json": "~3.20.1", @@ -17611,7 +19555,7 @@ "ajv-formats": "~2.1.0", "blueimp-md5": "2.18.0", "es-aggregate-error": "^1.0.7", - "jsonpath-plus": "6.0.1", + "jsonpath-plus": "7.1.0", "lodash": "~4.17.21", "lodash.topath": "^4.5.2", "minimatch": "3.1.2", @@ -17635,6 +19579,11 @@ "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", "requires": {} + }, + "jsonpath-plus": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.1.0.tgz", + "integrity": "sha512-gTaNRsPWO/K2KY6MrqaUFClF9kmuM6MFH5Dhg1VYDODgFbByw1yb7xu3hrViE/sz+dGOeMWgCzwUwQtAnCTE9g==" } } }, @@ -18005,27 +19954,27 @@ "dev": true }, "@tsconfig/node10": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.8.tgz", - "integrity": "sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==", + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", "dev": true }, "@tsconfig/node12": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.9.tgz", - "integrity": "sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==", + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", "dev": true }, "@tsconfig/node14": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.1.tgz", - "integrity": "sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", "dev": true }, "@tsconfig/node16": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.2.tgz", - "integrity": "sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", + "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", "dev": true }, "@types/babel__core": { @@ -18131,12 +20080,24 @@ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" }, + "@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true + }, "@types/lodash": { "version": "4.14.179", "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.179.tgz", "integrity": "sha512-uwc1x90yCKqGcIOAT6DwOSuxnrAbpkdPsUOZtwrXb4D/6wZs+6qG7QnIawDuZWg0sWpxl+ltIKCaLoMlna678w==", "dev": true }, + "@types/minimist": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", + "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==", + "dev": true + }, "@types/node": { "version": "17.0.21", "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.21.tgz", @@ -18155,9 +20116,9 @@ "dev": true }, "@types/prettier": { - "version": "2.4.4", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.4.4.tgz", - "integrity": "sha512-ReVR2rLTV1kvtlWFyuot+d1pkpG2Fw/XKE3PDAdj57rbM97ttSp9JZ2UsP+2EHTylra9cUf6JA7tGwW1INzUrA==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.0.tgz", + "integrity": "sha512-RI1L7N4JnW5gQw2spvL7Sllfuf1SaHdrZpCHiBlCXjIlufi1SMNnbu2teze3/QE67Fg2tBlH7W+mi4hVNk4p0A==", "dev": true }, "@types/retry": { @@ -18178,9 +20139,9 @@ "integrity": "sha512-FDJNkyhmKLw7uEvTxx5tSXfPeQpO0iy73Ry+PmYZJvQy0QIWX8a7kJ4kLWRf+EbTPJEPDSgPXHaM7pzr5lmvCg==" }, "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", + "version": "17.0.12", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.12.tgz", + "integrity": "sha512-Nz4MPhecOFArtm81gFQvQqdV7XYCrWKx5uUt6GNHredFHn1i2mtWqXTON7EPXMtNi1qjtjEM/VCHDhcHsAMLXQ==", "dev": true, "requires": { "@types/yargs-parser": "*" @@ -18192,55 +20153,167 @@ "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", "dev": true }, - "abab": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz", - "integrity": "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==", - "dev": true + "@typescript-eslint/eslint-plugin": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.36.2.tgz", + "integrity": "sha512-OwwR8LRwSnI98tdc2z7mJYgY60gf7I9ZfGjN5EjCwwns9bdTuQfAXcsjSB2wSQ/TVNYSGKf4kzVXbNGaZvwiXw==", + "dev": true, + "requires": { + "@typescript-eslint/scope-manager": "5.36.2", + "@typescript-eslint/type-utils": "5.36.2", + "@typescript-eslint/utils": "5.36.2", + "debug": "^4.3.4", + "functional-red-black-tree": "^1.0.1", + "ignore": "^5.2.0", + "regexpp": "^3.2.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "dependencies": { + "semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } }, - "abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "@typescript-eslint/parser": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.36.2.tgz", + "integrity": "sha512-qS/Kb0yzy8sR0idFspI9Z6+t7mqk/oRjnAYfewG+VN73opAUvmYL3oPIMmgOX6CnQS6gmVIXGshlb5RY/R22pA==", + "dev": true, "requires": { - "event-target-shim": "^5.0.0" + "@typescript-eslint/scope-manager": "5.36.2", + "@typescript-eslint/types": "5.36.2", + "@typescript-eslint/typescript-estree": "5.36.2", + "debug": "^4.3.4" } }, - "acorn": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz", - "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==", + "@typescript-eslint/scope-manager": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.36.2.tgz", + "integrity": "sha512-cNNP51L8SkIFSfce8B1NSUBTJTu2Ts4nWeWbFrdaqjmn9yKrAaJUBHkyTZc0cL06OFHpb+JZq5AUHROS398Orw==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.36.2", + "@typescript-eslint/visitor-keys": "5.36.2" + } + }, + "@typescript-eslint/type-utils": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.36.2.tgz", + "integrity": "sha512-rPQtS5rfijUWLouhy6UmyNquKDPhQjKsaKH0WnY6hl/07lasj8gPaH2UD8xWkePn6SC+jW2i9c2DZVDnL+Dokw==", + "dev": true, + "requires": { + "@typescript-eslint/typescript-estree": "5.36.2", + "@typescript-eslint/utils": "5.36.2", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/types": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.36.2.tgz", + "integrity": "sha512-9OJSvvwuF1L5eS2EQgFUbECb99F0mwq501w0H0EkYULkhFa19Qq7WFbycdw1PexAc929asupbZcgjVIe6OK/XQ==", "dev": true }, - "acorn-globals": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", - "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", + "@typescript-eslint/typescript-estree": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.36.2.tgz", + "integrity": "sha512-8fyH+RfbKc0mTspfuEjlfqA4YywcwQK2Amcf6TDOwaRLg7Vwdu4bZzyvBZp4bjt1RRjQ5MDnOZahxMrt2l5v9w==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.36.2", + "@typescript-eslint/visitor-keys": "5.36.2", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "dependencies": { + "semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } + } + }, + "@typescript-eslint/utils": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.36.2.tgz", + "integrity": "sha512-uNcopWonEITX96v9pefk9DC1bWMdkweeSsewJ6GeC7L6j2t0SJywisgkr9wUTtXk90fi2Eljj90HSHm3OGdGRg==", "dev": true, "requires": { - "acorn": "^7.1.1", - "acorn-walk": "^7.1.1" + "@types/json-schema": "^7.0.9", + "@typescript-eslint/scope-manager": "5.36.2", + "@typescript-eslint/types": "5.36.2", + "@typescript-eslint/typescript-estree": "5.36.2", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0" }, "dependencies": { - "acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", "dev": true } } }, + "@typescript-eslint/visitor-keys": { + "version": "5.36.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.36.2.tgz", + "integrity": "sha512-BtRvSR6dEdrNt7Net2/XDjbYKU5Ml6GqJgVfXT0CxTCJlnIqK7rAGreuWKMT2t8cFUT2Msv5oxw0GMRD7T5J7A==", + "dev": true, + "requires": { + "@typescript-eslint/types": "5.36.2", + "eslint-visitor-keys": "^3.3.0" + } + }, + "abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "requires": { + "event-target-shim": "^5.0.0" + } + }, + "acorn": { + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", + "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", + "dev": true + }, "acorn-jsx": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.1.tgz", - "integrity": "sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, "requires": {} }, "acorn-walk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", - "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", "dev": true }, "agent-base": { @@ -18260,14 +20333,6 @@ "requires": { "clean-stack": "^2.0.0", "indent-string": "^4.0.0" - }, - "dependencies": { - "indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true - } } }, "ajv": { @@ -18379,34 +20444,63 @@ "integrity": "sha1-oMoMvCmltz6Dbuvhy/bF4OTrgvk=", "dev": true }, - "array-find-index": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", - "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", - "dev": true + "aria-query": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz", + "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==", + "dev": true, + "requires": { + "@babel/runtime": "^7.10.2", + "@babel/runtime-corejs3": "^7.10.2" + } }, "array-ify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", - "integrity": "sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=", + "integrity": "sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==", "dev": true }, + "array-includes": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.5.tgz", + "integrity": "sha512-iSDYZMMyTPkiFasVqfuAQnWAYcvO/SeBSCGKePoEthjp4LEMTe4uLc7b025o4jAZpHhihh8xPo99TNWUWWkGDQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.19.5", + "get-intrinsic": "^1.1.1", + "is-string": "^1.0.7" + } + }, "array-union": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", "dev": true }, + "array.prototype.flat": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.0.tgz", + "integrity": "sha512-12IUEkHsAhA4DY5s0FPgNXIdc8VRSqD9Zp78a5au9abH/SOBrsp082JOWFNTjkMozh8mqcdiKuaLGhPeYztxSw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.2", + "es-shim-unscopables": "^1.0.0" + } + }, "arrify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", "dev": true }, - "astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "ast-types-flow": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", + "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", "dev": true }, "astring": { @@ -18414,12 +20508,6 @@ "resolved": "https://registry.npmjs.org/astring/-/astring-1.8.3.tgz", "integrity": "sha512-sRpyiNrx2dEYIMmUXprS8nlpRg2Drs8m9ElX9vVEXaCB4XEAJhKfs7IcX0IwShjuOAjLR6wzIrgoptz1n19i1A==" }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", - "dev": true - }, "at-least-node": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", @@ -18436,76 +20524,21 @@ } }, "avsc": { - "version": "5.7.4", - "resolved": "https://registry.npmjs.org/avsc/-/avsc-5.7.4.tgz", - "integrity": "sha512-z4oo33lmnvvNRqfUe3YjDGGpqu/L2+wXBIhMtwq6oqZ+exOUAkQYM6zd2VWKF7AIlajOF8ZZuPFfryTG9iLC/w==" + "version": "5.7.5", + "resolved": "https://registry.npmjs.org/avsc/-/avsc-5.7.5.tgz", + "integrity": "sha512-vkyt1+sj6qaD9oMtqqLE2pZ2IcHI66kFx8lpnVuXp55SnNPjKghfOhVfZpaDwDPpY0oVWP3Qu1uHZWxF3E856A==" }, - "babel-jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.1.tgz", - "integrity": "sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg==", - "dev": true, - "requires": { - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^27.5.1", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "slash": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } + "axe-core": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.4.3.tgz", + "integrity": "sha512-32+ub6kkdhhWick/UjvEwRchgoetXqTK14INLqbGm5U2TzBkBNF3nQtLYm8ovxSkQWArjEQvftCKryjZaATu3w==", + "dev": true + }, + "axobject-query": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.2.0.tgz", + "integrity": "sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA==", + "dev": true }, "babel-plugin-istanbul": { "version": "6.1.1", @@ -18520,18 +20553,6 @@ "test-exclude": "^6.0.0" } }, - "babel-plugin-jest-hoist": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz", - "integrity": "sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ==", - "dev": true, - "requires": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.0.0", - "@types/babel__traverse": "^7.0.6" - } - }, "babel-preset-current-node-syntax": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", @@ -18552,16 +20573,6 @@ "@babel/plugin-syntax-top-level-await": "^7.8.3" } }, - "babel-preset-jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz", - "integrity": "sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag==", - "dev": true, - "requires": { - "babel-plugin-jest-hoist": "^27.5.1", - "babel-preset-current-node-syntax": "^1.0.0" - } - }, "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", @@ -18602,32 +20613,16 @@ "fill-range": "^7.0.1" } }, - "browser-process-hrtime": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", - "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", - "dev": true - }, "browserslist": { - "version": "4.20.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.20.0.tgz", - "integrity": "sha512-bnpOoa+DownbciXj0jVGENf8VYQnE2LNWomhYuCsMmmx9Jd9lwq0WXODuwpSsp8AVdKM2/HorrzxAfbKvWTByQ==", - "dev": true, - "requires": { - "caniuse-lite": "^1.0.30001313", - "electron-to-chromium": "^1.4.76", - "escalade": "^3.1.1", - "node-releases": "^2.0.2", - "picocolors": "^1.0.0" - } - }, - "bs-logger": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", - "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "version": "4.21.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.3.tgz", + "integrity": "sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ==", "dev": true, "requires": { - "fast-json-stable-stringify": "2.x" + "caniuse-lite": "^1.0.30001370", + "electron-to-chromium": "^1.4.202", + "node-releases": "^2.0.6", + "update-browserslist-db": "^1.0.5" } }, "bser": { @@ -18661,20 +20656,20 @@ "dev": true }, "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true }, "camelcase-keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz", - "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=", + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", + "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", "dev": true, "requires": { - "camelcase": "^4.1.0", - "map-obj": "^2.0.0", - "quick-lru": "^1.0.0" + "camelcase": "^5.3.1", + "map-obj": "^4.0.0", + "quick-lru": "^4.0.1" } }, "caniuse-lite": { @@ -18786,28 +20781,19 @@ "integrity": "sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=", "dev": true }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, - "requires": { - "delayed-stream": "~1.0.0" - } - }, "commander": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==" }, "compare-func": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.2.tgz", - "integrity": "sha1-md0LpFfh+bxyKxLAjsM+6rMfpkg=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz", + "integrity": "sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==", "dev": true, "requires": { "array-ify": "^1.0.0", - "dot-prop": "^3.0.0" + "dot-prop": "^5.1.0" } }, "concat-map": { @@ -18837,42 +20823,42 @@ } }, "conventional-changelog-angular": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.6.tgz", - "integrity": "sha512-QDEmLa+7qdhVIv8sFZfVxU1VSyVvnXPsxq8Vam49mKUcO1Z8VTLEJk9uI21uiJUsnmm0I4Hrsdc9TgkOQo9WSA==", + "version": "5.0.13", + "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.13.tgz", + "integrity": "sha512-i/gipMxs7s8L/QeuavPF2hLnJgH6pEZAttySB6aiQLWcX3puWDL3ACVmvBhJGxnAy52Qc15ua26BufY6KpmrVA==", "dev": true, "requires": { - "compare-func": "^1.3.1", + "compare-func": "^2.0.0", "q": "^1.5.1" } }, "conventional-changelog-conventionalcommits": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.2.3.tgz", - "integrity": "sha512-atGa+R4vvEhb8N/8v3IoW59gCBJeeFiX6uIbPu876ENAmkMwsenyn0R21kdDHJFLQdy6zW4J6b4xN8KI3b9oww==", + "version": "4.6.3", + "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.3.tgz", + "integrity": "sha512-LTTQV4fwOM4oLPad317V/QNQ1FY4Hju5qeBIM1uTHbrnCE+Eg4CdRZ3gO2pUeR+tzWdp80M2j3qFFEDWVqOV4g==", "dev": true, "requires": { - "compare-func": "^1.3.1", + "compare-func": "^2.0.0", "lodash": "^4.17.15", "q": "^1.5.1" } }, "conventional-changelog-writer": { - "version": "4.0.11", - "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-4.0.11.tgz", - "integrity": "sha512-g81GQOR392I+57Cw3IyP1f+f42ME6aEkbR+L7v1FBBWolB0xkjKTeCWVguzRrp6UiT1O6gBpJbEy2eq7AnV1rw==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-4.1.0.tgz", + "integrity": "sha512-WwKcUp7WyXYGQmkLsX4QmU42AZ1lqlvRW9mqoyiQzdD+rJWbTepdWoKJuwXTS+yq79XKnQNa93/roViPQrAQgw==", "dev": true, "requires": { - "compare-func": "^1.3.1", - "conventional-commits-filter": "^2.0.2", + "compare-func": "^2.0.0", + "conventional-commits-filter": "^2.0.7", "dateformat": "^3.0.0", - "handlebars": "^4.4.0", + "handlebars": "^4.7.6", "json-stringify-safe": "^5.0.1", "lodash": "^4.17.15", - "meow": "^5.0.0", + "meow": "^8.0.0", "semver": "^6.0.0", "split": "^1.0.0", - "through2": "^3.0.0" + "through2": "^4.0.0" }, "dependencies": { "semver": { @@ -18884,9 +20870,9 @@ } }, "conventional-commits-filter": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-2.0.2.tgz", - "integrity": "sha512-WpGKsMeXfs21m1zIw4s9H5sys2+9JccTzpN6toXtxhpw2VNF2JUXwIakthKBy+LN4DvJm+TzWhxOMWOs1OFCFQ==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-2.0.7.tgz", + "integrity": "sha512-ASS9SamOP4TbCClsRHxIHXRfcGCnIoQqkvAzCSbZzTFLfcTqJVugB0agRgsEELsqaeWgsXv513eS116wnlSSPA==", "dev": true, "requires": { "lodash.ismatch": "^4.4.0", @@ -18894,18 +20880,17 @@ } }, "conventional-commits-parser": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.0.8.tgz", - "integrity": "sha512-YcBSGkZbYp7d+Cr3NWUeXbPDFUN6g3SaSIzOybi8bjHL5IJ5225OSCxJJ4LgziyEJ7AaJtE9L2/EU6H7Nt/DDQ==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.2.4.tgz", + "integrity": "sha512-nK7sAtfi+QXbxHCYfhpZsfRtaitZLIA6889kFIouLvz6repszQDgxBu7wf2WbU+Dco7sAnNCJYERCwt54WPC2Q==", "dev": true, "requires": { "is-text-path": "^1.0.1", "JSONStream": "^1.0.4", "lodash": "^4.17.15", - "meow": "^5.0.0", - "split2": "^2.0.0", - "through2": "^3.0.0", - "trim-off-newlines": "^1.0.0" + "meow": "^8.0.0", + "split2": "^3.0.0", + "through2": "^4.0.0" } }, "convert-source-map": { @@ -18917,6 +20902,12 @@ "safe-buffer": "~5.1.1" } }, + "core-js-pure": { + "version": "3.25.0", + "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.25.0.tgz", + "integrity": "sha512-IeHpLwk3uoci37yoI2Laty59+YqH9x5uR65/yiA0ARAJrTrN4YU0rmauLWfvqOuk77SlNJXj2rM6oT/dBD87+A==", + "dev": true + }, "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", @@ -18999,77 +20990,12 @@ "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", "dev": true }, - "cssom": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", - "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", + "damerau-levenshtein": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", "dev": true }, - "cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "dev": true, - "requires": { - "cssom": "~0.3.6" - }, - "dependencies": { - "cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", - "dev": true - } - } - }, - "currently-unhandled": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", - "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", - "dev": true, - "requires": { - "array-find-index": "^1.0.1" - } - }, - "data-urls": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", - "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", - "dev": true, - "requires": { - "abab": "^2.0.3", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.0.0" - }, - "dependencies": { - "tr46": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", - "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", - "dev": true, - "requires": { - "punycode": "^2.1.1" - } - }, - "webidl-conversions": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", - "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", - "dev": true - }, - "whatwg-url": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", - "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", - "dev": true, - "requires": { - "lodash": "^4.7.0", - "tr46": "^2.1.0", - "webidl-conversions": "^6.1.0" - } - } - } - }, "dateformat": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", @@ -19077,24 +21003,24 @@ "dev": true }, "debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, "requires": { - "ms": "^2.1.1" + "ms": "2.1.2" } }, "decamelize": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", "dev": true }, "decamelize-keys": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", - "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=", + "integrity": "sha512-ocLWuYzRPoS9bfiSdDd3cxvrzovVMZnRDVEzAs+hWIVXGDbHxWMECij2OBuyB/An0FFW/nLuq6Kv1i/YC5Qfzg==", "dev": true, "requires": { "decamelize": "^1.1.0", @@ -19104,21 +21030,15 @@ "map-obj": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", + "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", "dev": true } } }, - "decimal.js": { - "version": "10.3.1", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.3.1.tgz", - "integrity": "sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ==", - "dev": true - }, "dedent": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", - "integrity": "sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=", + "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", "dev": true }, "deep-extend": { @@ -19148,12 +21068,6 @@ "object-keys": "^1.1.1" } }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true - }, "dependency-graph": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", @@ -19215,30 +21129,13 @@ "esutils": "^2.0.2" } }, - "domexception": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", - "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", - "dev": true, - "requires": { - "webidl-conversions": "^5.0.0" - }, - "dependencies": { - "webidl-conversions": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", - "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", - "dev": true - } - } - }, "dot-prop": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-3.0.0.tgz", - "integrity": "sha1-G3CK8JSknJoOfbyteQq6U52sEXc=", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", + "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", "dev": true, "requires": { - "is-obj": "^1.0.0" + "is-obj": "^2.0.0" } }, "duplexer2": { @@ -19251,15 +21148,15 @@ } }, "electron-to-chromium": { - "version": "1.4.77", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.77.tgz", - "integrity": "sha512-fiDxw8mO9Ph1Z0bjX2sFTPpi0J0QkOiwOJF+5Q0J0baNc/F9lLePAvDPlnoxvbUYYMizqrKPeotRRkJ9LtxAew==", + "version": "1.4.242", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.242.tgz", + "integrity": "sha512-nPdgMWtjjWGCtreW/2adkrB2jyHjClo9PtVhR6rW+oxa4E4Wom642Tn+5LslHP3XPL5MCpkn5/UEY60EXylNeQ==", "dev": true }, "emittery": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", - "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==", + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.10.2.tgz", + "integrity": "sha512-aITqOwnLanpHLNXZJENbOgjUBeHocD+xsSJmNrjovKBW5HbSpW3d1pEls7GFQPUWXiwG9+0P4GtHfEqC/4M0Iw==", "dev": true }, "emoji-regex": { @@ -19277,23 +21174,6 @@ "once": "^1.4.0" } }, - "enquirer": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", - "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", - "dev": true, - "requires": { - "ansi-colors": "^4.1.1" - }, - "dependencies": { - "ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", - "dev": true - } - } - }, "env-ci": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/env-ci/-/env-ci-5.0.2.tgz", @@ -19385,6 +21265,15 @@ "has-property-descriptors": "^1.0.0" } }, + "es-shim-unscopables": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", + "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", + "dev": true, + "requires": { + "has": "^1.0.3" + } + }, "es-to-primitive": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", @@ -19395,128 +21284,65 @@ "is-symbol": "^1.0.2" } }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "escodegen": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", - "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", - "dev": true, - "requires": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1", - "source-map": "~0.6.1" - }, - "dependencies": { - "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - } - }, - "optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dev": true, - "requires": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - } - }, - "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", - "dev": true - }, - "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2" - } - } - } + "escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true }, "eslint": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.27.0.tgz", - "integrity": "sha512-JZuR6La2ZF0UD384lcbnd0Cgg6QJjiCwhMD6eU4h/VGPcVGwawNNzKU41tgokGXnfjOOyI6QIffthhJTPzzuRA==", + "version": "8.23.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.23.0.tgz", + "integrity": "sha512-pBG/XOn0MsJcKcTRLr27S5HpzQo4kLr+HjLQIyK4EiCsijDl/TB+h5uEuJU6bQ8Edvwz1XWOjpaP2qgnXGpTcA==", "dev": true, "requires": { - "@babel/code-frame": "7.12.11", - "@eslint/eslintrc": "^0.4.1", + "@eslint/eslintrc": "^1.3.1", + "@humanwhocodes/config-array": "^0.10.4", + "@humanwhocodes/gitignore-to-minimatch": "^1.0.2", + "@humanwhocodes/module-importer": "^1.0.1", "ajv": "^6.10.0", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", - "debug": "^4.0.1", + "debug": "^4.3.2", "doctrine": "^3.0.0", - "enquirer": "^2.3.5", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^2.1.0", - "eslint-visitor-keys": "^2.0.0", - "espree": "^7.3.1", + "eslint-scope": "^7.1.1", + "eslint-utils": "^3.0.0", + "eslint-visitor-keys": "^3.3.0", + "espree": "^9.4.0", "esquery": "^1.4.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.0.0", - "globals": "^13.6.0", - "ignore": "^4.0.6", + "glob-parent": "^6.0.1", + "globals": "^13.15.0", + "globby": "^11.1.0", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", - "js-yaml": "^3.13.1", + "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", "lodash.merge": "^4.6.2", - "minimatch": "^3.0.4", + "minimatch": "^3.1.2", "natural-compare": "^1.4.0", "optionator": "^0.9.1", - "progress": "^2.0.0", - "regexpp": "^3.1.0", - "semver": "^7.2.1", - "strip-ansi": "^6.0.0", + "regexpp": "^3.2.0", + "strip-ansi": "^6.0.1", "strip-json-comments": "^3.1.0", - "table": "^6.0.9", - "text-table": "^0.2.0", - "v8-compile-cache": "^2.0.3" + "text-table": "^0.2.0" }, "dependencies": { - "@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", - "dev": true, - "requires": { - "@babel/highlight": "^7.10.4" - } - }, "ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", @@ -19580,11 +21406,24 @@ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true }, - "eslint-visitor-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", - "dev": true + "find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "requires": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + } + }, + "glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "requires": { + "is-glob": "^4.0.3" + } }, "has-flag": { "version": "4.0.0", @@ -19592,21 +21431,39 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, - "ignore": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", - "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", - "dev": true + "locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "requires": { + "p-locate": "^5.0.0" + } }, - "semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "requires": { - "lru-cache": "^6.0.0" + "yocto-queue": "^0.1.0" + } + }, + "p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "requires": { + "p-limit": "^3.0.2" } }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, "strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -19615,90 +21472,278 @@ } } }, - "eslint-plugin-mocha": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-7.0.1.tgz", - "integrity": "sha512-zkQRW9UigRaayGm/pK9TD5RjccKXSgQksNtpsXbG9b6L5I+jNx7m98VUbZ4w1H1ArlNA+K7IOH+z8TscN6sOYg==", + "eslint-config-prettier": { + "version": "8.5.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz", + "integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==", + "dev": true, + "requires": {} + }, + "eslint-import-resolver-node": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz", + "integrity": "sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==", + "dev": true, + "requires": { + "debug": "^3.2.7", + "resolve": "^1.20.0" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "eslint-module-utils": { + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz", + "integrity": "sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==", + "dev": true, + "requires": { + "debug": "^3.2.7" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "eslint-plugin-escompat": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-escompat/-/eslint-plugin-escompat-3.2.0.tgz", + "integrity": "sha512-obXAKKiZE/wB2fgIw0ZxCmp+8vpDsUw2inkaok1i7OVxY4cEds4Y9YCoky0f5V+q8rqZpTUJDv1R9ykWbXLX8Q==", "dev": true, "requires": { - "eslint-utils": "^2.0.0", - "ramda": "^0.27.0" + "browserslist": "^4.21.0" } }, - "eslint-plugin-security": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-1.4.0.tgz", - "integrity": "sha512-xlS7P2PLMXeqfhyf3NpqbvbnW04kN8M9NtmhpR3XGyOvt/vNKS7XPXT5EDbwKW9vCjWH4PpfQvgD/+JgN0VJKA==", + "eslint-plugin-eslint-comments": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz", + "integrity": "sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==", "dev": true, "requires": { - "safe-regex": "^1.1.0" + "escape-string-regexp": "^1.0.5", + "ignore": "^5.0.5" } }, - "eslint-plugin-sonarjs": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.5.0.tgz", - "integrity": "sha512-XW5MnzlRjhXpIdbULC/qAdJYHWw3rRLws/DyawdlPU/IdVr9AmRK1r2LaCvabwKOAW2XYYSo3kDX58E4MrB7PQ==", + "eslint-plugin-filenames": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-filenames/-/eslint-plugin-filenames-1.3.2.tgz", + "integrity": "sha512-tqxJTiEM5a0JmRCUYQmxw23vtTxrb2+a3Q2mMOPhFxvt7ZQQJmdiuMby9B/vUAuVMghyP7oET+nIf6EO6CBd/w==", + "dev": true, + "requires": { + "lodash.camelcase": "4.3.0", + "lodash.kebabcase": "4.1.1", + "lodash.snakecase": "4.1.1", + "lodash.upperfirst": "4.3.1" + } + }, + "eslint-plugin-github": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-4.3.7.tgz", + "integrity": "sha512-tYZdXvAEz4JCMrC4NHIUoJTsLUvydCxff5OqB5hgU0vQbLmMkw6VOipN2KNe+T06pEhAWs1KBEwyq9cmMWRe7A==", + "dev": true, + "requires": { + "@typescript-eslint/eslint-plugin": "^5.1.0", + "@typescript-eslint/parser": "^5.1.0", + "eslint-config-prettier": ">=8.0.0", + "eslint-plugin-escompat": "^3.1.0", + "eslint-plugin-eslint-comments": "^3.2.0", + "eslint-plugin-filenames": "^1.3.2", + "eslint-plugin-i18n-text": "^1.0.1", + "eslint-plugin-import": "^2.25.2", + "eslint-plugin-jsx-a11y": "^6.6.0", + "eslint-plugin-no-only-tests": "^2.6.0", + "eslint-plugin-prettier": "^4.0.0", + "eslint-rule-documentation": ">=1.0.0", + "jsx-ast-utils": "^3.3.2", + "prettier": "^2.2.1", + "svg-element-attributes": "^1.3.1" + } + }, + "eslint-plugin-i18n-text": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-i18n-text/-/eslint-plugin-i18n-text-1.0.1.tgz", + "integrity": "sha512-3G3UetST6rdqhqW9SfcfzNYMpQXS7wNkJvp6dsXnjzGiku6Iu5hl3B0kmk6lIcFPwYjhQIY+tXVRtK9TlGT7RA==", "dev": true, "requires": {} }, - "eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "eslint-plugin-import": { + "version": "2.26.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz", + "integrity": "sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==", "dev": true, "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" + "array-includes": "^3.1.4", + "array.prototype.flat": "^1.2.5", + "debug": "^2.6.9", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.6", + "eslint-module-utils": "^2.7.3", + "has": "^1.0.3", + "is-core-module": "^2.8.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.values": "^1.1.5", + "resolve": "^1.22.0", + "tsconfig-paths": "^3.14.1" }, "dependencies": { - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", "dev": true } } }, - "eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "eslint-plugin-jsx-a11y": { + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.6.1.tgz", + "integrity": "sha512-sXgFVNHiWffBq23uiS/JaP6eVR622DqwB4yTzKvGZGcPq6/yZ3WmOZfuBks/vHWo9GaFOqC2ZK4i6+C35knx7Q==", "dev": true, "requires": { - "eslint-visitor-keys": "^1.1.0" + "@babel/runtime": "^7.18.9", + "aria-query": "^4.2.2", + "array-includes": "^3.1.5", + "ast-types-flow": "^0.0.7", + "axe-core": "^4.4.3", + "axobject-query": "^2.2.0", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "has": "^1.0.3", + "jsx-ast-utils": "^3.3.2", + "language-tags": "^1.0.5", + "minimatch": "^3.1.2", + "semver": "^6.3.0" + }, + "dependencies": { + "emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } } }, - "eslint-visitor-keys": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.2.0.tgz", - "integrity": "sha512-WFb4ihckKil6hu3Dp798xdzSfddwKKU3+nGniKF6HfeW6OLd2OUDEPP7TcHtB5+QXOKg2s6B2DaMPE1Nn/kxKQ==", + "eslint-plugin-no-only-tests": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-2.6.0.tgz", + "integrity": "sha512-T9SmE/g6UV1uZo1oHAqOvL86XWl7Pl2EpRpnLI8g/bkJu+h7XBCB+1LnubRZ2CUQXj805vh4/CYZdnqtVaEo2Q==", "dev": true }, - "espree": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", - "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", + "eslint-plugin-prettier": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", + "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "dev": true, + "requires": { + "prettier-linter-helpers": "^1.0.0" + } + }, + "eslint-plugin-security": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-1.5.0.tgz", + "integrity": "sha512-hAFVwLZ/UeXrlyVD2TDarv/x00CoFVpaY0IUZhKjPjiFxqkuQVixsK4f2rxngeQOqSxi6OUjzJM/jMwKEVjJ8g==", + "dev": true, + "requires": { + "safe-regex": "^2.1.1" + } + }, + "eslint-plugin-sonarjs": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.15.0.tgz", + "integrity": "sha512-LuxHdAe6VqSbi1phsUvNjbmXLuvlobmryQJJNyQYbdubCfz6K8tmgoqNiJPnz0pP2AbYDbtuPm0ajOMgMrC+dQ==", + "dev": true, + "requires": {} + }, + "eslint-rule-documentation": { + "version": "1.0.23", + "resolved": "https://registry.npmjs.org/eslint-rule-documentation/-/eslint-rule-documentation-1.0.23.tgz", + "integrity": "sha512-pWReu3fkohwyvztx/oQWWgld2iad25TfUdi6wvhhaDPIQjHU/pyvlKgXFw1kX31SQK2Nq9MH+vRDWB0ZLy8fYw==", + "dev": true + }, + "eslint-scope": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", + "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + } + }, + "eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", "dev": true, "requires": { - "acorn": "^7.4.0", - "acorn-jsx": "^5.3.1", - "eslint-visitor-keys": "^1.3.0" + "eslint-visitor-keys": "^2.0.0" }, "dependencies": { - "acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true - }, "eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", + "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", "dev": true } } }, + "eslint-visitor-keys": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", + "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "dev": true + }, + "espree": { + "version": "9.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.0.tgz", + "integrity": "sha512-DQmnRpLj7f6TgN/NYb0MTzJXL+vJF9h3pHy4JhCIs3zwcgez8xmGg3sXHcEO97BrmO2OSvCwMdfdlyl+E9KjOw==", + "dev": true, + "requires": { + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.3.0" + } + }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", @@ -19776,7 +21821,7 @@ "exit": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", "dev": true }, "expand-range": { @@ -19794,45 +21839,172 @@ "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", "dev": true, "requires": { - "is-number": "^2.1.0", - "isobject": "^2.0.0", - "randomatic": "^3.0.0", - "repeat-element": "^1.1.2", - "repeat-string": "^1.5.2" + "is-number": "^2.1.0", + "isobject": "^2.0.0", + "randomatic": "^3.0.0", + "repeat-element": "^1.1.2", + "repeat-string": "^1.5.2" + } + }, + "is-number": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", + "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + } + }, + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "requires": { + "isarray": "1.0.0" + } + } + } + }, + "expect": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.0.2.tgz", + "integrity": "sha512-JeJlAiLKn4aApT4pzUXBVxl3NaZidWIOdg//smaIlP9ZMBDkHZGFd9ubphUZP9pUyDEo7bC6M0IIZR51o75qQw==", + "dev": true, + "requires": { + "@jest/expect-utils": "^29.0.2", + "jest-get-type": "^29.0.0", + "jest-matcher-utils": "^29.0.2", + "jest-message-util": "^29.0.2", + "jest-util": "^29.0.2" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "diff-sequences": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.0.0.tgz", + "integrity": "sha512-7Qe/zd1wxSDL4D/X/FPjOMB+ZMDt71W94KYaq05I2l0oQqgXgs7s4ftYYmV38gBSrPz2vcygxfs1xn0FT+rKNA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "jest-diff": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.0.2.tgz", + "integrity": "sha512-b9l9970sa1rMXH1owp2Woprmy42qIwwll/htsw4Gf7+WuSp5bZxNhkKHDuCGKL+HoHn1KhcC+tNEeAPYBkD2Jg==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^29.0.0", + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.2" } }, - "is-number": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", + "jest-get-type": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", + "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", + "dev": true + }, + "jest-matcher-utils": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.0.2.tgz", + "integrity": "sha512-s62YkHFBfAx0JLA2QX1BlnCRFwHRobwAv2KP1+YhjzF6ZCbCVrf1sG8UJyn62ZUsDaQKpoo86XMTjkUyO5aWmQ==", "dev": true, "requires": { - "kind-of": "^3.0.2" + "chalk": "^4.0.0", + "jest-diff": "^29.0.2", + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.2" } }, - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "requires": { - "isarray": "1.0.0" + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "pretty-format": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", + "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", + "dev": true, + "requires": { + "@jest/schemas": "^29.0.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" } } } }, - "expect": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/expect/-/expect-27.5.1.tgz", - "integrity": "sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw==", - "dev": true, - "requires": { - "@jest/types": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1" - } - }, "extend-shallow": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", @@ -19847,18 +22019,23 @@ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, + "fast-diff": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", + "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", + "dev": true + }, "fast-glob": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.5.tgz", - "integrity": "sha512-2DtFcgT68wiTTiwZ2hNdJfcHNke9XOfnwmBRWXhmeKM8rF0TGwmC/Qto3S7RoZKp5cilZbxzO5iTNTQsJ+EeDg==", + "version": "3.2.11", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", + "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", "dev": true, "requires": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.0", + "glob-parent": "^5.1.2", "merge2": "^1.3.0", - "micromatch": "^4.0.2", - "picomatch": "^2.2.1" + "micromatch": "^4.0.4" } }, "fast-json-stable-stringify": { @@ -19878,9 +22055,9 @@ "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==" }, "fastq": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.11.0.tgz", - "integrity": "sha512-7Eczs8gIPDrVzT+EksYBcupqMyxSHXXrHOLRRxU2/DicV8789MRBRR8+Hc2uWzUupOs4YS4JzBmBxjjCVBxD/g==", + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", + "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", "dev": true, "requires": { "reusify": "^1.0.4" @@ -19962,17 +22139,6 @@ "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", "dev": true }, - "form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "dev": true, - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - } - }, "from2": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", @@ -20137,9 +22303,9 @@ } }, "globals": { - "version": "13.9.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.9.0.tgz", - "integrity": "sha512-74/FduwI/JaIrr1H8e71UbDE+5x7pIPs1C2rrwC52SszOo043CsWOZEMW7o2Y58xwm9b+0RBKDxY5n2sUpEFxA==", + "version": "13.17.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", + "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", "dev": true, "requires": { "type-fest": "^0.20.2" @@ -20162,16 +22328,16 @@ } }, "globby": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.3.tgz", - "integrity": "sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg==", + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dev": true, "requires": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", - "fast-glob": "^3.1.1", - "ignore": "^5.1.4", - "merge2": "^1.3.0", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", "slash": "^3.0.0" } }, @@ -20181,6 +22347,12 @@ "integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==", "dev": true }, + "grapheme-splitter": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", + "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", + "dev": true + }, "gray-matter": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-2.1.1.tgz", @@ -20192,6 +22364,18 @@ "extend-shallow": "^2.0.1", "js-yaml": "^3.8.1", "toml": "^2.3.2" + }, + "dependencies": { + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + } } }, "gulp-header": { @@ -20230,6 +22414,12 @@ "wordwrap": "^1.0.0" } }, + "hard-rejection": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", + "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", + "dev": true + }, "has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -20282,15 +22472,6 @@ "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", "dev": true }, - "html-encoding-sniffer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", - "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", - "dev": true, - "requires": { - "whatwg-encoding": "^1.0.5" - } - }, "html-escaper": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", @@ -20324,19 +22505,10 @@ "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", "dev": true }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, "ignore": { - "version": "5.1.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", - "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", + "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", "dev": true }, "immer": { @@ -20388,9 +22560,9 @@ "dev": true }, "indent-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", - "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", "dev": true }, "inflight": { @@ -20511,9 +22683,9 @@ "dev": true }, "is-glob": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", - "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, "requires": { "is-extglob": "^2.1.1" @@ -20539,15 +22711,15 @@ } }, "is-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", - "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", + "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", "dev": true }, "is-plain-obj": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", - "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", + "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", "dev": true }, "is-plain-object": { @@ -20556,12 +22728,6 @@ "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", "dev": true }, - "is-potential-custom-element-name": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", - "dev": true - }, "is-regex": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", @@ -20610,12 +22776,6 @@ "text-extensions": "^1.0.0" } }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, "is-weakref": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", @@ -20716,9 +22876,9 @@ } }, "istanbul-reports": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.4.tgz", - "integrity": "sha512-r1/DshN4KSE7xWEknZLLLLDn5CJybV3nw01VTkp6D5jzLuELlcbudfj/eSQFvrKsJuTVCGnePO7ho82Nw9zzfw==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", + "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", "dev": true, "requires": { "html-escaper": "^2.0.0", @@ -20732,52 +22892,63 @@ "dev": true }, "jest": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz", - "integrity": "sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.0.2.tgz", + "integrity": "sha512-enziNbNUmXTcTaTP/Uq5rV91r0Yqy2UKzLUIabxMpGm9YHz8qpbJhiRnNVNvm6vzWfzt/0o97NEHH8/3udoClA==", "dev": true, "requires": { - "@jest/core": "^27.5.1", + "@jest/core": "^29.0.2", + "@jest/types": "^29.0.2", "import-local": "^3.0.2", - "jest-cli": "^27.5.1" + "jest-cli": "^29.0.2" } }, "jest-changed-files": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.5.1.tgz", - "integrity": "sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw==", + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.0.0.tgz", + "integrity": "sha512-28/iDMDrUpGoCitTURuDqUzWQoWmOmOKOFST1mi2lwh62X4BFf6khgH3uSuo1e49X/UDjuApAj3w0wLOex4VPQ==", "dev": true, "requires": { - "@jest/types": "^27.5.1", "execa": "^5.0.0", - "throat": "^6.0.1" + "p-limit": "^3.1.0" + }, + "dependencies": { + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "requires": { + "yocto-queue": "^0.1.0" + } + } } }, "jest-circus": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-27.5.1.tgz", - "integrity": "sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.0.2.tgz", + "integrity": "sha512-YTPEsoE1P1X0bcyDQi3QIkpt2Wl9om9k2DQRuLFdS5x8VvAKSdYAVJufgvudhnKgM8WHvvAzhBE+1DRQB8x1CQ==", "dev": true, "requires": { - "@jest/environment": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/environment": "^29.0.2", + "@jest/expect": "^29.0.2", + "@jest/test-result": "^29.0.2", + "@jest/types": "^29.0.2", "@types/node": "*", "chalk": "^4.0.0", "co": "^4.6.0", "dedent": "^0.7.0", - "expect": "^27.5.1", "is-generator-fn": "^2.0.0", - "jest-each": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1", + "jest-each": "^29.0.2", + "jest-matcher-utils": "^29.0.2", + "jest-message-util": "^29.0.2", + "jest-runtime": "^29.0.2", + "jest-snapshot": "^29.0.2", + "jest-util": "^29.0.2", + "p-limit": "^3.1.0", + "pretty-format": "^29.0.2", "slash": "^3.0.0", - "stack-utils": "^2.0.3", - "throat": "^6.0.1" + "stack-utils": "^2.0.3" }, "dependencies": { "ansi-styles": { @@ -20814,12 +22985,96 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, + "diff-sequences": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.0.0.tgz", + "integrity": "sha512-7Qe/zd1wxSDL4D/X/FPjOMB+ZMDt71W94KYaq05I2l0oQqgXgs7s4ftYYmV38gBSrPz2vcygxfs1xn0FT+rKNA==", + "dev": true + }, "has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, + "jest-diff": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.0.2.tgz", + "integrity": "sha512-b9l9970sa1rMXH1owp2Woprmy42qIwwll/htsw4Gf7+WuSp5bZxNhkKHDuCGKL+HoHn1KhcC+tNEeAPYBkD2Jg==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^29.0.0", + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.2" + } + }, + "jest-get-type": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", + "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", + "dev": true + }, + "jest-matcher-utils": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.0.2.tgz", + "integrity": "sha512-s62YkHFBfAx0JLA2QX1BlnCRFwHRobwAv2KP1+YhjzF6ZCbCVrf1sG8UJyn62ZUsDaQKpoo86XMTjkUyO5aWmQ==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "jest-diff": "^29.0.2", + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.2" + } + }, + "jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "requires": { + "yocto-queue": "^0.1.0" + } + }, + "pretty-format": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", + "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", + "dev": true, + "requires": { + "@jest/schemas": "^29.0.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -20832,23 +23087,23 @@ } }, "jest-cli": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-27.5.1.tgz", - "integrity": "sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.0.2.tgz", + "integrity": "sha512-tlf8b+4KcUbBGr25cywIi3+rbZ4+G+SiG8SvY552m9sRZbXPafdmQRyeVE/C/R8K+TiBAMrTIUmV2SlStRJ40g==", "dev": true, "requires": { - "@jest/core": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/core": "^29.0.2", + "@jest/test-result": "^29.0.2", + "@jest/types": "^29.0.2", "chalk": "^4.0.0", "exit": "^0.1.2", "graceful-fs": "^4.2.9", "import-local": "^3.0.2", - "jest-config": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", + "jest-config": "^29.0.2", + "jest-util": "^29.0.2", + "jest-validate": "^29.0.2", "prompts": "^2.0.1", - "yargs": "^16.2.0" + "yargs": "^17.3.1" }, "dependencies": { "ansi-styles": { @@ -20891,6 +23146,20 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, + "jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -20899,41 +23168,83 @@ "requires": { "has-flag": "^4.0.0" } + }, + "yargs": { + "version": "17.5.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.5.1.tgz", + "integrity": "sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA==", + "dev": true, + "requires": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.0.0" + } + }, + "yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true } } }, "jest-config": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-27.5.1.tgz", - "integrity": "sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.0.2.tgz", + "integrity": "sha512-RU4gzeUNZAFktYVzDGimDxeYoaiTnH100jkYYZgldqFamaZukF0IqmFx8+QrzVeEWccYg10EEJT3ox1Dq5b74w==", "dev": true, "requires": { - "@babel/core": "^7.8.0", - "@jest/test-sequencer": "^27.5.1", - "@jest/types": "^27.5.1", - "babel-jest": "^27.5.1", + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.0.2", + "@jest/types": "^29.0.2", + "babel-jest": "^29.0.2", "chalk": "^4.0.0", "ci-info": "^3.2.0", "deepmerge": "^4.2.2", - "glob": "^7.1.1", + "glob": "^7.1.3", "graceful-fs": "^4.2.9", - "jest-circus": "^27.5.1", - "jest-environment-jsdom": "^27.5.1", - "jest-environment-node": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-jasmine2": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-runner": "^27.5.1", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", + "jest-circus": "^29.0.2", + "jest-environment-node": "^29.0.2", + "jest-get-type": "^29.0.0", + "jest-regex-util": "^29.0.0", + "jest-resolve": "^29.0.2", + "jest-runner": "^29.0.2", + "jest-util": "^29.0.2", + "jest-validate": "^29.0.2", "micromatch": "^4.0.4", "parse-json": "^5.2.0", - "pretty-format": "^27.5.1", + "pretty-format": "^29.0.2", "slash": "^3.0.0", "strip-json-comments": "^3.1.1" }, "dependencies": { + "@jest/transform": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", + "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", + "dev": true, + "requires": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.0.2", + "@jridgewell/trace-mapping": "^0.3.15", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.0.2", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.1" + } + }, "ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -20943,6 +23254,43 @@ "color-convert": "^2.0.1" } }, + "babel-jest": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.0.2.tgz", + "integrity": "sha512-yTu4/WSi/HzarjQtrJSwV+/0maoNt+iP0DmpvFJdv9yY+5BuNle8TbheHzzcSWj5gIHfuhpbLYHWRDYhWKyeKQ==", + "dev": true, + "requires": { + "@jest/transform": "^29.0.2", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.0.2", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + } + }, + "babel-plugin-jest-hoist": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.0.2.tgz", + "integrity": "sha512-eBr2ynAEFjcebVvu8Ktx580BD1QKCrBG1XwEUTXJe285p9HA/4hOhfWCFRQhTKSyBV0VzjhG7H91Eifz9s29hg==", + "dev": true, + "requires": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + } + }, + "babel-preset-jest": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.0.2.tgz", + "integrity": "sha512-BeVXp7rH5TK96ofyEnHjznjLMQ2nAeDJ+QzxKnHAAMs0RgrQsCywjAN8m4mOm5Di0pxU//3AoEeJJrerMH5UeA==", + "dev": true, + "requires": { + "babel-plugin-jest-hoist": "^29.0.2", + "babel-preset-current-node-syntax": "^1.0.0" + } + }, "chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -20974,6 +23322,74 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, + "jest-get-type": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", + "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", + "dev": true + }, + "jest-haste-map": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", + "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.3.2", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "jest-worker": "^29.0.2", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + } + }, + "jest-regex-util": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", + "dev": true + }, + "jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "jest-worker": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", + "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", + "dev": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, "parse-json": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", @@ -20986,6 +23402,31 @@ "lines-and-columns": "^1.1.6" } }, + "pretty-format": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", + "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", + "dev": true, + "requires": { + "@jest/schemas": "^29.0.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, "strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -21000,6 +23441,16 @@ "requires": { "has-flag": "^4.0.0" } + }, + "write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + } } } }, @@ -21067,25 +23518,25 @@ } }, "jest-docblock": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.5.1.tgz", - "integrity": "sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ==", + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.0.0.tgz", + "integrity": "sha512-s5Kpra/kLzbqu9dEjov30kj1n4tfu3e7Pl8v+f8jOkeWNqM6Ds8jRaJfZow3ducoQUrf2Z4rs2N5S3zXnb83gw==", "dev": true, "requires": { "detect-newline": "^3.0.0" } }, "jest-each": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-27.5.1.tgz", - "integrity": "sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.0.2.tgz", + "integrity": "sha512-+sA9YjrJl35iCg0W0VCrgCVj+wGhDrrKQ+YAqJ/DHBC4gcDFAeePtRRhpJnX9gvOZ63G7gt52pwp2PesuSEx0Q==", "dev": true, "requires": { - "@jest/types": "^27.5.1", + "@jest/types": "^29.0.2", "chalk": "^4.0.0", - "jest-get-type": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1" + "jest-get-type": "^29.0.0", + "jest-util": "^29.0.2", + "pretty-format": "^29.0.2" }, "dependencies": { "ansi-styles": { @@ -21116,16 +23567,61 @@ "color-name": "~1.1.4" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "jest-get-type": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", + "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", + "dev": true + }, + "jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "pretty-format": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", + "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", + "dev": true, + "requires": { + "@jest/schemas": "^29.0.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, "supports-color": { @@ -21139,85 +23635,18 @@ } } }, - "jest-environment-jsdom": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz", - "integrity": "sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw==", - "dev": true, - "requires": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1", - "jsdom": "^16.6.0" - } - }, "jest-environment-node": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz", - "integrity": "sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==", - "dev": true, - "requires": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" - } - }, - "jest-get-type": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", - "dev": true - }, - "jest-haste-map": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.5.1.tgz", - "integrity": "sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.0.2.tgz", + "integrity": "sha512-4Fv8GXVCToRlMzDO94gvA8iOzKxQ7rhAbs8L+j8GPyTxGuUiYkV+63LecGeVdVhsL2KXih1sKnoqmH6tp89J7Q==", "dev": true, "requires": { - "@jest/types": "^27.5.1", - "@types/graceful-fs": "^4.1.2", + "@jest/environment": "^29.0.2", + "@jest/fake-timers": "^29.0.2", + "@jest/types": "^29.0.2", "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "fsevents": "^2.3.2", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^27.5.1", - "jest-serializer": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "micromatch": "^4.0.4", - "walker": "^1.0.7" - } - }, - "jest-jasmine2": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz", - "integrity": "sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ==", - "dev": true, - "requires": { - "@jest/environment": "^27.5.1", - "@jest/source-map": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "expect": "^27.5.1", - "is-generator-fn": "^2.0.0", - "jest-each": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", - "pretty-format": "^27.5.1", - "throat": "^6.0.1" + "jest-mock": "^29.0.2", + "jest-util": "^29.0.2" }, "dependencies": { "ansi-styles": { @@ -21260,6 +23689,20 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, + "jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -21271,14 +23714,51 @@ } } }, - "jest-leak-detector": { + "jest-get-type": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz", - "integrity": "sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ==", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", + "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", + "dev": true + }, + "jest-leak-detector": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.0.2.tgz", + "integrity": "sha512-5f0493qDeAxjUldkBSQg5D1cLadRgZVyWpTQvfJeQwQUpHQInE21AyVHVv64M7P2Ue8Z5EZ4BAcoDS/dSPPgMw==", "dev": true, "requires": { - "jest-get-type": "^27.5.1", - "pretty-format": "^27.5.1" + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.2" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + }, + "jest-get-type": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", + "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", + "dev": true + }, + "pretty-format": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", + "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", + "dev": true, + "requires": { + "@jest/schemas": "^29.0.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + } } }, "jest-matcher-utils": { @@ -21345,18 +23825,18 @@ } }, "jest-message-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", - "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.0.2.tgz", + "integrity": "sha512-kcJAgms3ckJV0wUoLsAM40xAhY+pb9FVSZwicjFU9PFkaTNmqh9xd99/CzKse48wPM1ANUQKmp03/DpkY+lGrA==", "dev": true, "requires": { "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.5.1", + "@jest/types": "^29.0.2", "@types/stack-utils": "^2.0.0", "chalk": "^4.0.0", "graceful-fs": "^4.2.9", "micromatch": "^4.0.4", - "pretty-format": "^27.5.1", + "pretty-format": "^29.0.2", "slash": "^3.0.0", "stack-utils": "^2.0.3" }, @@ -21401,6 +23881,31 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, + "pretty-format": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", + "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", + "dev": true, + "requires": { + "@jest/schemas": "^29.0.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -21413,12 +23918,12 @@ } }, "jest-mock": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", - "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.0.2.tgz", + "integrity": "sha512-giWXOIT23UCxHCN2VUfUJ0Q7SmiqQwfSFXlCaIhW5anITpNQ+3vuLPQdKt5wkuwM37GrbFyHIClce8AAK9ft9g==", "dev": true, "requires": { - "@jest/types": "^27.5.1", + "@jest/types": "^29.0.2", "@types/node": "*" } }, @@ -21429,25 +23934,18 @@ "dev": true, "requires": {} }, - "jest-regex-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.5.1.tgz", - "integrity": "sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg==", - "dev": true - }, "jest-resolve": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.5.1.tgz", - "integrity": "sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.0.2.tgz", + "integrity": "sha512-V3uLjSA+EHxLtjIDKTBXnY71hyx+8lusCqPXvqzkFO1uCGvVpjBfuOyp+KOLBNSuY61kM2jhepiMwt4eiJS+Vw==", "dev": true, "requires": { - "@jest/types": "^27.5.1", "chalk": "^4.0.0", "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", + "jest-haste-map": "^29.0.2", "jest-pnp-resolver": "^1.2.2", - "jest-util": "^27.5.1", - "jest-validate": "^27.5.1", + "jest-util": "^29.0.2", + "jest-validate": "^29.0.2", "resolve": "^1.20.0", "resolve.exports": "^1.1.0", "slash": "^3.0.0" @@ -21493,6 +23991,68 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, + "jest-haste-map": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", + "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.3.2", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "jest-worker": "^29.0.2", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + } + }, + "jest-regex-util": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", + "dev": true + }, + "jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "jest-worker": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", + "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", + "dev": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -21505,45 +24065,75 @@ } }, "jest-resolve-dependencies": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz", - "integrity": "sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.0.2.tgz", + "integrity": "sha512-fSAu6eIG7wtGdnPJUkVVdILGzYAP9Dj/4+zvC8BrGe8msaUMJ9JeygU0Hf9+Uor6/icbuuzQn5See1uajLnAqg==", "dev": true, "requires": { - "@jest/types": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-snapshot": "^27.5.1" + "jest-regex-util": "^29.0.0", + "jest-snapshot": "^29.0.2" + }, + "dependencies": { + "jest-regex-util": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", + "dev": true + } } }, "jest-runner": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-27.5.1.tgz", - "integrity": "sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.0.2.tgz", + "integrity": "sha512-+D82iPZejI8t+SfduOO1deahC/QgLFf8aJBO++Znz3l2ETtOMdM7K4ATsGWzCFnTGio5yHaRifg1Su5Ybza5Nw==", "dev": true, "requires": { - "@jest/console": "^27.5.1", - "@jest/environment": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/console": "^29.0.2", + "@jest/environment": "^29.0.2", + "@jest/test-result": "^29.0.2", + "@jest/transform": "^29.0.2", + "@jest/types": "^29.0.2", "@types/node": "*", "chalk": "^4.0.0", - "emittery": "^0.8.1", + "emittery": "^0.10.2", "graceful-fs": "^4.2.9", - "jest-docblock": "^27.5.1", - "jest-environment-jsdom": "^27.5.1", - "jest-environment-node": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-leak-detector": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-runtime": "^27.5.1", - "jest-util": "^27.5.1", - "jest-worker": "^27.5.1", - "source-map-support": "^0.5.6", - "throat": "^6.0.1" - }, - "dependencies": { + "jest-docblock": "^29.0.0", + "jest-environment-node": "^29.0.2", + "jest-haste-map": "^29.0.2", + "jest-leak-detector": "^29.0.2", + "jest-message-util": "^29.0.2", + "jest-resolve": "^29.0.2", + "jest-runtime": "^29.0.2", + "jest-util": "^29.0.2", + "jest-watcher": "^29.0.2", + "jest-worker": "^29.0.2", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "dependencies": { + "@jest/transform": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", + "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", + "dev": true, + "requires": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.0.2", + "@jridgewell/trace-mapping": "^0.3.15", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.0.2", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.1" + } + }, "ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -21584,6 +24174,77 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, + "jest-haste-map": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", + "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.3.2", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "jest-worker": "^29.0.2", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + } + }, + "jest-regex-util": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", + "dev": true + }, + "jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "jest-worker": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", + "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", + "dev": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "requires": { + "yocto-queue": "^0.1.0" + } + }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -21592,39 +24253,72 @@ "requires": { "has-flag": "^4.0.0" } + }, + "write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + } } } }, "jest-runtime": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.5.1.tgz", - "integrity": "sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A==", - "dev": true, - "requires": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/globals": "^27.5.1", - "@jest/source-map": "^27.5.1", - "@jest/test-result": "^27.5.1", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.0.2.tgz", + "integrity": "sha512-DO6F81LX4okOgjJLkLySv10E5YcV5NHUbY1ZqAUtofxdQE+q4hjH0P2gNsY8x3z3sqgw7O/+919SU4r18Fcuig==", + "dev": true, + "requires": { + "@jest/environment": "^29.0.2", + "@jest/fake-timers": "^29.0.2", + "@jest/globals": "^29.0.2", + "@jest/source-map": "^29.0.0", + "@jest/test-result": "^29.0.2", + "@jest/transform": "^29.0.2", + "@jest/types": "^29.0.2", + "@types/node": "*", "chalk": "^4.0.0", "cjs-module-lexer": "^1.0.0", "collect-v8-coverage": "^1.0.0", - "execa": "^5.0.0", "glob": "^7.1.3", "graceful-fs": "^4.2.9", - "jest-haste-map": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-regex-util": "^27.5.1", - "jest-resolve": "^27.5.1", - "jest-snapshot": "^27.5.1", - "jest-util": "^27.5.1", + "jest-haste-map": "^29.0.2", + "jest-message-util": "^29.0.2", + "jest-mock": "^29.0.2", + "jest-regex-util": "^29.0.0", + "jest-resolve": "^29.0.2", + "jest-snapshot": "^29.0.2", + "jest-util": "^29.0.2", "slash": "^3.0.0", "strip-bom": "^4.0.0" }, "dependencies": { + "@jest/transform": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", + "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", + "dev": true, + "requires": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.0.2", + "@jridgewell/trace-mapping": "^0.3.15", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.0.2", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.1" + } + }, "ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -21665,6 +24359,68 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, + "jest-haste-map": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", + "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.3.2", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "jest-worker": "^29.0.2", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + } + }, + "jest-regex-util": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", + "dev": true + }, + "jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "jest-worker": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", + "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", + "dev": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, "strip-bom": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", @@ -21679,49 +24435,74 @@ "requires": { "has-flag": "^4.0.0" } + }, + "write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + } } } }, - "jest-serializer": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.5.1.tgz", - "integrity": "sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==", - "dev": true, - "requires": { - "@types/node": "*", - "graceful-fs": "^4.2.9" - } - }, "jest-snapshot": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.5.1.tgz", - "integrity": "sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.0.2.tgz", + "integrity": "sha512-26C4PzGKaX5gkoKg8UzYGVy2HPVcTaROSkf0gwnHu3lGeTB7bAIJBovvVPZoiJ20IximJELQs/r8WSDRCuGX2A==", "dev": true, "requires": { - "@babel/core": "^7.7.2", + "@babel/core": "^7.11.6", "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", "@babel/plugin-syntax-typescript": "^7.7.2", "@babel/traverse": "^7.7.2", - "@babel/types": "^7.0.0", - "@jest/transform": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/babel__traverse": "^7.0.4", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.0.2", + "@jest/transform": "^29.0.2", + "@jest/types": "^29.0.2", + "@types/babel__traverse": "^7.0.6", "@types/prettier": "^2.1.5", "babel-preset-current-node-syntax": "^1.0.0", "chalk": "^4.0.0", - "expect": "^27.5.1", + "expect": "^29.0.2", "graceful-fs": "^4.2.9", - "jest-diff": "^27.5.1", - "jest-get-type": "^27.5.1", - "jest-haste-map": "^27.5.1", - "jest-matcher-utils": "^27.5.1", - "jest-message-util": "^27.5.1", - "jest-util": "^27.5.1", + "jest-diff": "^29.0.2", + "jest-get-type": "^29.0.0", + "jest-haste-map": "^29.0.2", + "jest-matcher-utils": "^29.0.2", + "jest-message-util": "^29.0.2", + "jest-util": "^29.0.2", "natural-compare": "^1.4.0", - "pretty-format": "^27.5.1", - "semver": "^7.3.2" + "pretty-format": "^29.0.2", + "semver": "^7.3.5" }, "dependencies": { + "@jest/transform": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", + "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", + "dev": true, + "requires": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.0.2", + "@jridgewell/trace-mapping": "^0.3.15", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.0.2", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.1" + } + }, "ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -21756,85 +24537,143 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, + "diff-sequences": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.0.0.tgz", + "integrity": "sha512-7Qe/zd1wxSDL4D/X/FPjOMB+ZMDt71W94KYaq05I2l0oQqgXgs7s4ftYYmV38gBSrPz2vcygxfs1xn0FT+rKNA==", + "dev": true + }, "has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, - "semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "jest-diff": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.0.2.tgz", + "integrity": "sha512-b9l9970sa1rMXH1owp2Woprmy42qIwwll/htsw4Gf7+WuSp5bZxNhkKHDuCGKL+HoHn1KhcC+tNEeAPYBkD2Jg==", "dev": true, "requires": { - "lru-cache": "^6.0.0" + "chalk": "^4.0.0", + "diff-sequences": "^29.0.0", + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.2" } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "jest-get-type": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", + "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", + "dev": true + }, + "jest-haste-map": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", + "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", "dev": true, "requires": { - "has-flag": "^4.0.0" + "@jest/types": "^29.0.2", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.3.2", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.0.0", + "jest-util": "^29.0.2", + "jest-worker": "^29.0.2", + "micromatch": "^4.0.4", + "walker": "^1.0.8" } - } - } - }, - "jest-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "dev": true, - "requires": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + }, + "jest-matcher-utils": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.0.2.tgz", + "integrity": "sha512-s62YkHFBfAx0JLA2QX1BlnCRFwHRobwAv2KP1+YhjzF6ZCbCVrf1sG8UJyn62ZUsDaQKpoo86XMTjkUyO5aWmQ==", "dev": true, "requires": { - "color-convert": "^2.0.1" + "chalk": "^4.0.0", + "jest-diff": "^29.0.2", + "jest-get-type": "^29.0.0", + "pretty-format": "^29.0.2" } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "jest-regex-util": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", + "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", + "dev": true + }, + "jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", + "dev": true, + "requires": { + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "jest-worker": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", + "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", "dev": true, "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "pretty-format": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", + "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, "requires": { - "color-name": "~1.1.4" + "@jest/schemas": "^29.0.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } }, "supports-color": { "version": "7.2.0", @@ -21844,21 +24683,31 @@ "requires": { "has-flag": "^4.0.0" } + }, + "write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + } } } }, "jest-validate": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-27.5.1.tgz", - "integrity": "sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.0.2.tgz", + "integrity": "sha512-AeRKm7cEucSy7tr54r3LhiGIXYvOILUwBM1S7jQkKs6YelwAlWKsmZGVrQR7uwsd31rBTnR5NQkODi1Z+6TKIQ==", "dev": true, "requires": { - "@jest/types": "^27.5.1", + "@jest/types": "^29.0.2", "camelcase": "^6.2.0", "chalk": "^4.0.0", - "jest-get-type": "^27.5.1", + "jest-get-type": "^29.0.0", "leven": "^3.1.0", - "pretty-format": "^27.5.1" + "pretty-format": "^29.0.2" }, "dependencies": { "ansi-styles": { @@ -21907,6 +24756,37 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, + "jest-get-type": { + "version": "29.0.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", + "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", + "dev": true + }, + "pretty-format": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", + "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", + "dev": true, + "requires": { + "@jest/schemas": "^29.0.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -21919,17 +24799,18 @@ } }, "jest-watcher": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.5.1.tgz", - "integrity": "sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw==", + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.0.2.tgz", + "integrity": "sha512-ds2bV0oyUdYoyrUTv4Ga5uptz4cEvmmP/JzqDyzZZanvrIn8ipxg5l3SDOAIiyuAx1VdHd2FBzeXPFO5KPH8vQ==", "dev": true, "requires": { - "@jest/test-result": "^27.5.1", - "@jest/types": "^27.5.1", + "@jest/test-result": "^29.0.2", + "@jest/types": "^29.0.2", "@types/node": "*", "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", - "jest-util": "^27.5.1", + "emittery": "^0.10.2", + "jest-util": "^29.0.2", "string-length": "^4.0.1" }, "dependencies": { @@ -21973,38 +24854,24 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "jest-util": { + "version": "29.0.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", + "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "requires": { - "has-flag": "^4.0.0" + "@jest/types": "^29.0.2", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" } - } - } - }, - "jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "dev": true, - "requires": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true }, "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -22019,74 +24886,17 @@ "dev": true }, "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - }, - "jsdom": { - "version": "16.7.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", - "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", - "dev": true, - "requires": { - "abab": "^2.0.5", - "acorn": "^8.2.4", - "acorn-globals": "^6.0.0", - "cssom": "^0.4.4", - "cssstyle": "^2.3.0", - "data-urls": "^2.0.0", - "decimal.js": "^10.2.1", - "domexception": "^2.0.1", - "escodegen": "^2.0.0", - "form-data": "^3.0.0", - "html-encoding-sniffer": "^2.0.1", - "http-proxy-agent": "^4.0.1", - "https-proxy-agent": "^5.0.0", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.0", - "parse5": "6.0.1", - "saxes": "^5.0.1", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.0.0", - "w3c-hr-time": "^1.0.2", - "w3c-xmlserializer": "^2.0.0", - "webidl-conversions": "^6.1.0", - "whatwg-encoding": "^1.0.5", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.5.0", - "ws": "^7.4.6", - "xml-name-validator": "^3.0.0" - }, - "dependencies": { - "tr46": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", - "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", - "dev": true, - "requires": { - "punycode": "^2.1.1" - } - }, - "webidl-conversions": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", - "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", - "dev": true - }, - "whatwg-url": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", - "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", - "dev": true, - "requires": { - "lodash": "^4.7.0", - "tr46": "^2.1.0", - "webidl-conversions": "^6.1.0" - } + "argparse": "^2.0.1" + }, + "dependencies": { + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" } } }, @@ -22192,9 +25002,9 @@ "dev": true }, "jsonpath-plus": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-6.0.1.tgz", - "integrity": "sha512-EvGovdvau6FyLexFH2OeXfIITlgIbgZoAZe3usiySeaIDm5QS+A10DKNpaPBBqqRSZr2HN6HVNXxtwUAr2apEw==" + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.2.0.tgz", + "integrity": "sha512-zBfiUPM5nD0YZSBT/o/fbCUlCcepMIdP0CJZxM1+KgA4f2T206f6VAg9e7mX35+KlMaIc5qXW34f3BnwJ3w+RA==" }, "jsonpointer": { "version": "5.0.1", @@ -22211,6 +25021,16 @@ "through": ">=2.2.7 <3" } }, + "jsx-ast-utils": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", + "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", + "dev": true, + "requires": { + "array-includes": "^3.1.5", + "object.assign": "^4.1.3" + } + }, "kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", @@ -22226,6 +25046,21 @@ "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", "dev": true }, + "language-subtag-registry": { + "version": "0.3.22", + "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", + "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==", + "dev": true + }, + "language-tags": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", + "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", + "dev": true, + "requires": { + "language-subtag-registry": "~0.3.2" + } + }, "lazy-cache": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", @@ -22312,18 +25147,18 @@ "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", "dev": true }, + "lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "dev": true + }, "lodash.capitalize": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/lodash.capitalize/-/lodash.capitalize-4.2.1.tgz", "integrity": "sha1-+CbJtOKoUR2E46yinbBeGk87cqk=", "dev": true }, - "lodash.clonedeep": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", - "dev": true - }, "lodash.escaperegexp": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/lodash.escaperegexp/-/lodash.escaperegexp-4.1.2.tgz", @@ -22353,10 +25188,10 @@ "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=", "dev": true }, - "lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", + "lodash.kebabcase": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz", + "integrity": "sha512-N8XRTIMMqqDgSy4VLKPnJ/+hpGZN+PHQiJnSenYqPaVV/NCqEogTnAdZLQiGKhxX+JCs8waWq2t1XHWKOmlY8g==", "dev": true }, "lodash.merge": { @@ -22370,6 +25205,12 @@ "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", "integrity": "sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM=" }, + "lodash.snakecase": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", + "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==", + "dev": true + }, "lodash.template": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", @@ -22400,27 +25241,17 @@ "resolved": "https://registry.npmjs.org/lodash.topath/-/lodash.topath-4.5.2.tgz", "integrity": "sha512-1/W4dM+35DwvE/iEd1M9ekewOSTlpFekhw9mhAtrwjVqUr83/ilQiyAvmg4tVX7Unkcfl1KC+i9WdaT4B6aQcg==" }, - "lodash.truncate": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", - "integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=", - "dev": true - }, "lodash.uniqby": { "version": "4.7.0", "resolved": "https://registry.npmjs.org/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz", "integrity": "sha1-2ZwHpmnp5tJOE2Lf4mbGdhavEwI=", "dev": true }, - "loud-rejection": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", - "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", - "dev": true, - "requires": { - "currently-unhandled": "^0.4.1", - "signal-exit": "^3.0.0" - } + "lodash.upperfirst": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz", + "integrity": "sha512-sReKOYJIJf74dhJONhU4e0/shzi1trVbSWDOhKYE5XV2O+H7Sb2Dihwuc7xWxVl+DgFPyTqIN3zMfT9cq5iWDg==", + "dev": true }, "lru-cache": { "version": "6.0.0", @@ -22464,9 +25295,9 @@ } }, "map-obj": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz", - "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", + "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", "dev": true }, "markdown-link": { @@ -22495,6 +25326,12 @@ "strip-color": "^0.1.0" } }, + "marked": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/marked/-/marked-2.1.3.tgz", + "integrity": "sha512-/Q+7MGzaETqifOMWYEA7HVMaZb4XbcRfaOzcSsHZEith83KGlvaSG33u0SKu89Mj5h+T8V2hM+8O45Qc5XTgwA==", + "dev": true + }, "marked-terminal": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/marked-terminal/-/marked-terminal-4.1.1.tgz", @@ -22567,20 +25404,60 @@ "dev": true }, "meow": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-5.0.0.tgz", - "integrity": "sha512-CbTqYU17ABaLefO8vCU153ZZlprKYWDljcndKKDCFcYQITzWCXZAVk4QMFZPgvzrnUQ3uItnIE/LoUOwrT15Ig==", + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/meow/-/meow-8.1.2.tgz", + "integrity": "sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q==", "dev": true, "requires": { - "camelcase-keys": "^4.0.0", - "decamelize-keys": "^1.0.0", - "loud-rejection": "^1.0.0", - "minimist-options": "^3.0.1", - "normalize-package-data": "^2.3.4", - "read-pkg-up": "^3.0.0", - "redent": "^2.0.0", - "trim-newlines": "^2.0.0", - "yargs-parser": "^10.0.0" + "@types/minimist": "^1.2.0", + "camelcase-keys": "^6.2.2", + "decamelize-keys": "^1.1.0", + "hard-rejection": "^2.1.0", + "minimist-options": "4.1.0", + "normalize-package-data": "^3.0.0", + "read-pkg-up": "^7.0.1", + "redent": "^3.0.0", + "trim-newlines": "^3.0.0", + "type-fest": "^0.18.0", + "yargs-parser": "^20.2.3" + }, + "dependencies": { + "hosted-git-info": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", + "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "normalize-package-data": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", + "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", + "dev": true, + "requires": { + "hosted-git-info": "^4.0.1", + "is-core-module": "^2.5.0", + "semver": "^7.3.4", + "validate-npm-package-license": "^3.0.1" + } + }, + "semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "type-fest": { + "version": "0.18.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", + "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", + "dev": true + } } }, "merge-stream": { @@ -22611,27 +25488,18 @@ "integrity": "sha512-tqkh47FzKeCPD2PUiPB6pkbMzsCasjxAfC62/Wap5qrUWcb+sFasXUC5I3gYM5iBM8v/Qpn4UK0x+j0iHyFPDg==", "dev": true }, - "mime-db": { - "version": "1.51.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz", - "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==", - "dev": true - }, - "mime-types": { - "version": "2.1.34", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz", - "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==", - "dev": true, - "requires": { - "mime-db": "1.51.0" - } - }, "mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true }, + "min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "dev": true + }, "minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -22641,19 +25509,28 @@ } }, "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", "dev": true }, "minimist-options": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-3.0.2.tgz", - "integrity": "sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", + "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", "dev": true, "requires": { "arrify": "^1.0.1", - "is-plain-obj": "^1.1.0" + "is-plain-obj": "^1.1.0", + "kind-of": "^6.0.3" + }, + "dependencies": { + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + } } }, "mixin-deep": { @@ -22733,6 +25610,14 @@ "jsep": "^1.2.0", "jsonpath-plus": "^6.0.1", "lodash.topath": "^4.5.2" + }, + "dependencies": { + "jsonpath-plus": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-6.0.1.tgz", + "integrity": "sha512-EvGovdvau6FyLexFH2OeXfIITlgIbgZoAZe3usiySeaIDm5QS+A10DKNpaPBBqqRSZr2HN6HVNXxtwUAr2apEw==", + "optional": true + } } }, "node-emoji": { @@ -22759,9 +25644,9 @@ "dev": true }, "node-releases": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.2.tgz", - "integrity": "sha512-XxYDdcQ6eKqp/YjI+tb2C5WM2LgjnZrfYg4vgQt49EK268b6gYCHsBLrK2qvJo4FmCtqmKezb0WZFK4fkrZNsg==", + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", + "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==", "dev": true }, "normalize-package-data": { @@ -22789,9 +25674,9 @@ "dev": true }, "npm": { - "version": "6.14.6", - "resolved": "https://registry.npmjs.org/npm/-/npm-6.14.6.tgz", - "integrity": "sha512-axnz6iHFK6WPE0js/+mRp+4IOwpHn5tJEw5KB6FiCU764zmffrhsYHbSHi2kKqNkRBt53XasXjngZfBD3FQzrQ==", + "version": "6.14.17", + "resolved": "https://registry.npmjs.org/npm/-/npm-6.14.17.tgz", + "integrity": "sha512-CxEDn1ydVRPDl4tHrlnq+WevYAhv4GF2AEHzJKQ4prZDZ96IS3Uo6t0Sy6O9kB6XzqkI+J00WfYCqqk0p6IJ1Q==", "dev": true, "requires": { "abbrev": "~1.1.1", @@ -22799,7 +25684,7 @@ "ansistyles": "~0.1.3", "aproba": "^2.0.0", "archy": "~1.0.0", - "bin-links": "^1.1.7", + "bin-links": "^1.1.8", "bluebird": "^3.5.5", "byte-size": "^5.0.1", "cacache": "^12.0.3", @@ -22820,30 +25705,30 @@ "find-npm-prefix": "^1.0.2", "fs-vacuum": "~1.2.10", "fs-write-stream-atomic": "~1.0.10", - "gentle-fs": "^2.3.0", + "gentle-fs": "^2.3.1", "glob": "^7.1.6", "graceful-fs": "^4.2.4", "has-unicode": "~2.0.1", - "hosted-git-info": "^2.8.8", + "hosted-git-info": "^2.8.9", "iferr": "^1.0.2", "imurmurhash": "*", "infer-owner": "^1.0.4", "inflight": "~1.0.6", "inherits": "^2.0.4", - "ini": "^1.3.5", + "ini": "^1.3.8", "init-package-json": "^1.10.3", "is-cidr": "^3.0.0", "json-parse-better-errors": "^1.0.2", "JSONStream": "^1.3.5", "lazy-property": "~1.0.0", - "libcipm": "^4.0.7", + "libcipm": "^4.0.8", "libnpm": "^3.0.1", "libnpmaccess": "^3.0.2", "libnpmhook": "^5.0.3", "libnpmorg": "^1.0.1", "libnpmsearch": "^2.0.2", "libnpmteam": "^1.0.2", - "libnpx": "^10.2.2", + "libnpx": "^10.2.4", "lock-verify": "^2.1.0", "lockfile": "^1.0.4", "lodash._baseindexof": "*", @@ -22858,26 +25743,26 @@ "lodash.uniq": "~4.5.0", "lodash.without": "~4.4.0", "lru-cache": "^5.1.1", - "meant": "~1.0.1", + "meant": "^1.0.2", "mississippi": "^3.0.0", "mkdirp": "^0.5.5", "move-concurrently": "^1.0.1", "node-gyp": "^5.1.0", "nopt": "^4.0.3", "normalize-package-data": "^2.5.0", - "npm-audit-report": "^1.3.2", + "npm-audit-report": "^1.3.3", "npm-cache-filename": "~1.0.2", "npm-install-checks": "^3.0.2", - "npm-lifecycle": "^3.1.4", + "npm-lifecycle": "^3.1.5", "npm-package-arg": "^6.1.1", "npm-packlist": "^1.4.8", "npm-pick-manifest": "^3.0.2", "npm-profile": "^4.0.4", - "npm-registry-fetch": "^4.0.5", - "npm-user-validate": "~1.0.0", + "npm-registry-fetch": "^4.0.7", + "npm-user-validate": "^1.0.1", "npmlog": "~4.1.2", "once": "~1.4.0", - "opener": "^1.5.1", + "opener": "^1.5.2", "osenv": "^0.1.5", "pacote": "^9.5.12", "path-is-inside": "~1.0.2", @@ -22901,9 +25786,9 @@ "slide": "~1.1.6", "sorted-object": "~2.0.1", "sorted-union-stream": "~2.1.3", - "ssri": "^6.0.1", + "ssri": "^6.0.2", "stringify-package": "^1.0.1", - "tar": "^4.4.13", + "tar": "^4.4.19", "text-table": "~0.2.0", "tiny-relative-date": "^1.3.0", "uid-number": "0.0.6", @@ -22940,17 +25825,6 @@ "humanize-ms": "^1.2.1" } }, - "ajv": { - "version": "5.5.2", - "bundled": true, - "dev": true, - "requires": { - "co": "^4.6.0", - "fast-deep-equal": "^1.0.0", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.3.0" - } - }, "ansi-align": { "version": "2.0.0", "bundled": true, @@ -23073,7 +25947,7 @@ } }, "bin-links": { - "version": "1.1.7", + "version": "1.1.8", "bundled": true, "dev": true, "requires": { @@ -23228,26 +26102,41 @@ } }, "cliui": { - "version": "4.1.0", + "version": "5.0.0", "bundled": true, "dev": true, "requires": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0", - "wrap-ansi": "^2.0.0" + "string-width": "^3.1.0", + "strip-ansi": "^5.2.0", + "wrap-ansi": "^5.1.0" }, "dependencies": { "ansi-regex": { - "version": "3.0.0", + "version": "4.1.1", + "bundled": true, + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", "bundled": true, "dev": true }, + "string-width": { + "version": "3.1.0", + "bundled": true, + "dev": true, + "requires": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, "strip-ansi": { - "version": "4.0.0", + "version": "5.2.0", "bundled": true, "dev": true, "requires": { - "ansi-regex": "^3.0.0" + "ansi-regex": "^4.1.0" } } } @@ -23266,11 +26155,6 @@ "mkdirp": "~0.5.0" } }, - "co": { - "version": "4.6.0", - "bundled": true, - "dev": true - }, "code-point-at": { "version": "1.1.0", "bundled": true, @@ -23362,11 +26246,11 @@ } }, "configstore": { - "version": "3.1.2", + "version": "3.1.5", "bundled": true, "dev": true, "requires": { - "dot-prop": "^4.1.0", + "dot-prop": "^4.2.1", "graceful-fs": "^4.1.2", "make-dir": "^1.0.0", "unique-string": "^1.0.0", @@ -23542,7 +26426,7 @@ } }, "dot-prop": { - "version": "4.2.0", + "version": "4.2.1", "bundled": true, "dev": true, "requires": { @@ -23609,6 +26493,11 @@ "bundled": true, "dev": true }, + "emoji-regex": { + "version": "7.0.3", + "bundled": true, + "dev": true + }, "encoding": { "version": "0.1.12", "bundled": true, @@ -23714,11 +26603,6 @@ "bundled": true, "dev": true }, - "fast-deep-equal": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, "fast-json-stable-stringify": { "version": "2.0.0", "bundled": true, @@ -23730,17 +26614,9 @@ "dev": true }, "find-npm-prefix": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "find-up": { - "version": "2.1.0", - "bundled": true, - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } + "version": "1.0.2", + "bundled": true, + "dev": true }, "flush-write-stream": { "version": "1.0.3", @@ -23940,7 +26816,7 @@ "dev": true }, "gentle-fs": { - "version": "2.3.0", + "version": "2.3.1", "bundled": true, "dev": true, "requires": { @@ -23970,7 +26846,7 @@ } }, "get-caller-file": { - "version": "1.0.3", + "version": "2.0.5", "bundled": true, "dev": true }, @@ -24047,12 +26923,35 @@ "dev": true }, "har-validator": { - "version": "5.1.0", + "version": "5.1.5", "bundled": true, "dev": true, "requires": { - "ajv": "^5.3.0", + "ajv": "^6.12.3", "har-schema": "^2.0.0" + }, + "dependencies": { + "ajv": { + "version": "6.12.6", + "bundled": true, + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "fast-deep-equal": { + "version": "3.1.3", + "bundled": true, + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "bundled": true, + "dev": true + } } }, "has": { @@ -24079,7 +26978,7 @@ "dev": true }, "hosted-git-info": { - "version": "2.8.8", + "version": "2.8.9", "bundled": true, "dev": true }, @@ -24175,7 +27074,7 @@ "dev": true }, "ini": { - "version": "1.3.5", + "version": "1.3.8", "bundled": true, "dev": true }, @@ -24194,11 +27093,6 @@ "validate-npm-package-name": "^3.0.0" } }, - "invert-kv": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, "ip": { "version": "1.1.5", "bundled": true, @@ -24340,12 +27234,7 @@ "dev": true }, "json-schema": { - "version": "0.2.3", - "bundled": true, - "dev": true - }, - "json-schema-traverse": { - "version": "0.3.1", + "version": "0.4.0", "bundled": true, "dev": true }, @@ -24369,13 +27258,13 @@ } }, "jsprim": { - "version": "1.4.1", + "version": "1.4.2", "bundled": true, "dev": true, "requires": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", - "json-schema": "0.2.3", + "json-schema": "0.4.0", "verror": "1.10.0" } }, @@ -24392,16 +27281,8 @@ "bundled": true, "dev": true }, - "lcid": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "requires": { - "invert-kv": "^2.0.0" - } - }, "libcipm": { - "version": "4.0.7", + "version": "4.0.8", "bundled": true, "dev": true, "requires": { @@ -24411,7 +27292,7 @@ "find-npm-prefix": "^1.0.2", "graceful-fs": "^4.1.11", "ini": "^1.3.5", - "lock-verify": "^2.0.2", + "lock-verify": "^2.1.0", "mkdirp": "^0.5.1", "npm-lifecycle": "^3.0.0", "npm-logical-tree": "^1.2.1", @@ -24570,7 +27451,7 @@ } }, "libnpx": { - "version": "10.2.2", + "version": "10.2.4", "bundled": true, "dev": true, "requires": { @@ -24581,16 +27462,7 @@ "update-notifier": "^2.3.0", "which": "^1.3.0", "y18n": "^4.0.0", - "yargs": "^11.0.0" - } - }, - "locate-path": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" + "yargs": "^14.2.3" } }, "lock-verify": { @@ -24721,36 +27593,11 @@ "ssri": "^6.0.0" } }, - "map-age-cleaner": { - "version": "0.1.3", - "bundled": true, - "dev": true, - "requires": { - "p-defer": "^1.0.0" - } - }, "meant": { - "version": "1.0.1", + "version": "1.0.2", "bundled": true, "dev": true }, - "mem": { - "version": "4.3.0", - "bundled": true, - "dev": true, - "requires": { - "map-age-cleaner": "^0.1.1", - "mimic-fn": "^2.0.0", - "p-is-promise": "^2.0.0" - }, - "dependencies": { - "mimic-fn": { - "version": "2.1.0", - "bundled": true, - "dev": true - } - } - }, "mime-db": { "version": "1.35.0", "bundled": true, @@ -24772,6 +27619,11 @@ "brace-expansion": "^1.1.7" } }, + "minimist": { + "version": "1.2.6", + "bundled": true, + "dev": true + }, "minizlib": { "version": "1.3.3", "bundled": true, @@ -24817,7 +27669,7 @@ }, "dependencies": { "minimist": { - "version": "1.2.5", + "version": "1.2.6", "bundled": true, "dev": true } @@ -24853,11 +27705,6 @@ "bundled": true, "dev": true }, - "nice-try": { - "version": "1.0.5", - "bundled": true, - "dev": true - }, "node-fetch-npm": { "version": "2.0.2", "bundled": true, @@ -24917,7 +27764,7 @@ } }, "npm-audit-report": { - "version": "1.3.2", + "version": "1.3.3", "bundled": true, "dev": true, "requires": { @@ -24947,7 +27794,7 @@ } }, "npm-lifecycle": { - "version": "3.1.4", + "version": "3.1.5", "bundled": true, "dev": true, "requires": { @@ -25013,7 +27860,7 @@ } }, "npm-registry-fetch": { - "version": "4.0.5", + "version": "4.0.7", "bundled": true, "dev": true, "requires": { @@ -25042,7 +27889,7 @@ } }, "npm-user-validate": { - "version": "1.0.0", + "version": "1.0.1", "bundled": true, "dev": true }, @@ -25095,7 +27942,7 @@ } }, "opener": { - "version": "1.5.1", + "version": "1.5.2", "bundled": true, "dev": true }, @@ -25104,44 +27951,6 @@ "bundled": true, "dev": true }, - "os-locale": { - "version": "3.1.0", - "bundled": true, - "dev": true, - "requires": { - "execa": "^1.0.0", - "lcid": "^2.0.0", - "mem": "^4.0.0" - }, - "dependencies": { - "cross-spawn": { - "version": "6.0.5", - "bundled": true, - "dev": true, - "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "execa": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - } - } - } - }, "os-tmpdir": { "version": "1.0.2", "bundled": true, @@ -25156,42 +27965,11 @@ "os-tmpdir": "^1.0.0" } }, - "p-defer": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, "p-finally": { "version": "1.0.0", "bundled": true, "dev": true }, - "p-is-promise": { - "version": "2.1.0", - "bundled": true, - "dev": true - }, - "p-limit": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "requires": { - "p-try": "^1.0.0" - } - }, - "p-locate": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "requires": { - "p-limit": "^1.1.0" - } - }, - "p-try": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, "package-json": { "version": "4.0.1", "bundled": true, @@ -25306,7 +28084,7 @@ "dev": true }, "path-parse": { - "version": "1.0.6", + "version": "1.0.7", "bundled": true, "dev": true }, @@ -25456,13 +28234,6 @@ "ini": "~1.3.0", "minimist": "^1.2.0", "strip-json-comments": "~2.0.1" - }, - "dependencies": { - "minimist": { - "version": "1.2.5", - "bundled": true, - "dev": true - } } }, "read": { @@ -25588,7 +28359,7 @@ "dev": true }, "require-main-filename": { - "version": "1.0.1", + "version": "2.0.0", "bundled": true, "dev": true }, @@ -25813,7 +28584,7 @@ } }, "ssri": { - "version": "6.0.1", + "version": "6.0.2", "bundled": true, "dev": true, "requires": { @@ -25948,17 +28719,17 @@ } }, "tar": { - "version": "4.4.13", + "version": "4.4.19", "bundled": true, "dev": true, "requires": { - "chownr": "^1.1.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.8.6", - "minizlib": "^1.2.1", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.2", - "yallist": "^3.0.3" + "chownr": "^1.1.4", + "fs-minipass": "^1.2.7", + "minipass": "^2.9.0", + "minizlib": "^1.3.3", + "mkdirp": "^0.5.5", + "safe-buffer": "^5.2.1", + "yallist": "^3.1.1" }, "dependencies": { "minipass": { @@ -25969,6 +28740,16 @@ "safe-buffer": "^5.1.2", "yallist": "^3.0.0" } + }, + "safe-buffer": { + "version": "5.2.1", + "bundled": true, + "dev": true + }, + "yallist": { + "version": "3.1.1", + "bundled": true, + "dev": true } } }, @@ -26122,6 +28903,21 @@ "xdg-basedir": "^3.0.0" } }, + "uri-js": { + "version": "4.4.0", + "bundled": true, + "dev": true, + "requires": { + "punycode": "^2.1.0" + }, + "dependencies": { + "punycode": { + "version": "2.1.1", + "bundled": true, + "dev": true + } + } + }, "url-parse-lax": { "version": "1.0.0", "bundled": true, @@ -26238,22 +29034,41 @@ } }, "wrap-ansi": { - "version": "2.1.0", + "version": "5.1.0", "bundled": true, "dev": true, "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" + "ansi-styles": "^3.2.0", + "string-width": "^3.0.0", + "strip-ansi": "^5.0.0" }, "dependencies": { + "ansi-regex": { + "version": "4.1.1", + "bundled": true, + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, "string-width": { - "version": "1.0.2", + "version": "3.1.0", "bundled": true, "dev": true, "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, + "strip-ansi": { + "version": "5.2.0", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" } } } @@ -26284,7 +29099,7 @@ "dev": true }, "y18n": { - "version": "4.0.0", + "version": "4.0.1", "bundled": true, "dev": true }, @@ -26294,37 +29109,105 @@ "dev": true }, "yargs": { - "version": "11.1.1", + "version": "14.2.3", "bundled": true, "dev": true, "requires": { - "cliui": "^4.0.0", - "decamelize": "^1.1.1", - "find-up": "^2.1.0", - "get-caller-file": "^1.0.1", - "os-locale": "^3.1.0", + "cliui": "^5.0.0", + "decamelize": "^1.2.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", + "require-main-filename": "^2.0.0", "set-blocking": "^2.0.0", - "string-width": "^2.0.0", + "string-width": "^3.0.0", "which-module": "^2.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^9.0.2" + "y18n": "^4.0.0", + "yargs-parser": "^15.0.1" }, "dependencies": { - "y18n": { - "version": "3.2.1", + "ansi-regex": { + "version": "4.1.0", + "bundled": true, + "dev": true + }, + "find-up": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "locate-path": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "2.3.0", + "bundled": true, + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "p-try": { + "version": "2.2.0", "bundled": true, "dev": true + }, + "string-width": { + "version": "3.1.0", + "bundled": true, + "dev": true, + "requires": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, + "strip-ansi": { + "version": "5.2.0", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } } } }, "yargs-parser": { - "version": "9.0.2", + "version": "15.0.1", "bundled": true, "dev": true, "requires": { - "camelcase": "^4.1.0" + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "dependencies": { + "camelcase": { + "version": "5.3.1", + "bundled": true, + "dev": true + } } } } @@ -26338,12 +29221,6 @@ "path-key": "^3.0.0" } }, - "nwsapi": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.0.tgz", - "integrity": "sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==", - "dev": true - }, "object-inspect": { "version": "1.12.2", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", @@ -26382,6 +29259,17 @@ } } }, + "object.values": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.5.tgz", + "integrity": "sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1" + } + }, "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -26500,12 +29388,6 @@ "json-parse-better-errors": "^1.0.1" } }, - "parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", - "dev": true - }, "path-exists": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", @@ -26530,15 +29412,6 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, - "path-type": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", - "dev": true, - "requires": { - "pify": "^3.0.0" - } - }, "picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", @@ -26644,6 +29517,21 @@ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true }, + "prettier": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", + "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", + "dev": true + }, + "prettier-linter-helpers": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", + "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", + "dev": true, + "requires": { + "fast-diff": "^1.1.2" + } + }, "pretty-format": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", @@ -26669,12 +29557,6 @@ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, - "progress": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true - }, "prompts": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", @@ -26685,12 +29567,6 @@ "sisteransi": "^1.0.5" } }, - "psl": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", - "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", - "dev": true - }, "pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", @@ -26719,15 +29595,9 @@ "dev": true }, "quick-lru": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-1.1.0.tgz", - "integrity": "sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g=", - "dev": true - }, - "ramda": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.27.0.tgz", - "integrity": "sha512-pVzZdDpWwWqEVVLshWUHjNwuVP7SfcmPraYuqocJp1yo2U1R7P+5QAfDhdItkuoGqIBnBYrtPp7rEPqDn9HlZA==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", + "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", "dev": true }, "ramldt2jsonschema": { @@ -26739,6 +29609,17 @@ "js-yaml": "^3.14.0", "json-schema-migrate": "^0.2.0", "webapi-parser": "^0.5.0" + }, + "dependencies": { + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + } } }, "randomatic": { @@ -26785,24 +29666,97 @@ "dev": true }, "read-pkg": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", + "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", "dev": true, "requires": { - "load-json-file": "^4.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^3.0.0" + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "dependencies": { + "parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + } + } } }, "read-pkg-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", - "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", + "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", "dev": true, "requires": { - "find-up": "^2.0.0", - "read-pkg": "^3.0.0" + "find-up": "^4.1.0", + "read-pkg": "^5.2.0", + "type-fest": "^0.8.1" + }, + "dependencies": { + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, + "type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true + } } }, "readable-stream": { @@ -26821,13 +29775,13 @@ } }, "redent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", - "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", + "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", "dev": true, "requires": { - "indent-string": "^3.0.0", - "strip-indent": "^2.0.0" + "indent-string": "^4.0.0", + "strip-indent": "^3.0.0" } }, "redeyed": { @@ -26839,6 +29793,18 @@ "esprima": "~4.0.0" } }, + "regenerator-runtime": { + "version": "0.13.9", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", + "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==", + "dev": true + }, + "regexp-tree": { + "version": "0.1.24", + "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.24.tgz", + "integrity": "sha512-s2aEVuLhvnVJW6s/iPgEGK6R+/xngd2jNQ+xy4bXNDKxZKJH6jpPHY6kVeVv1IeLCHgswRj+Kl3ELaDjG6V1iw==", + "dev": true + }, "regexp.prototype.flags": { "version": "1.4.3", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", @@ -26850,9 +29816,9 @@ } }, "regexpp": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz", - "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", + "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", "dev": true }, "registry-auth-token": { @@ -26929,12 +29895,6 @@ "integrity": "sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ==", "dev": true }, - "ret": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", - "dev": true - }, "retry": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", @@ -26972,12 +29932,12 @@ "dev": true }, "safe-regex": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", - "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz", + "integrity": "sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==", "dev": true, "requires": { - "ret": "~0.1.10" + "regexp-tree": "~0.1.1" } }, "safe-stable-stringify": { @@ -26985,162 +29945,49 @@ "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz", "integrity": "sha512-ERq4hUjKDbJfE4+XtZLFPCDi8Vb1JqaxAPTxWFLBx8XcAlf9Bda/ZJdVezs/NAfsMQScyIlUMx+Yeu7P7rx5jw==" }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "saxes": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", - "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", - "dev": true, - "requires": { - "xmlchars": "^2.2.0" - } - }, "semantic-release": { - "version": "17.4.3", - "resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-17.4.3.tgz", - "integrity": "sha512-lTOUSrkbaQ+TRs3+BmtJhLtPSyiO7iTGmh5SyuEFqNO8HQbQ4nzXg4UlPrDQasO/C0eFK/V0eCbOzJdjtKBOYw==", - "dev": true, - "requires": { - "@semantic-release/commit-analyzer": "^8.0.0", - "@semantic-release/error": "^2.2.0", - "@semantic-release/github": "^7.0.0", - "@semantic-release/npm": "^7.0.0", - "@semantic-release/release-notes-generator": "^9.0.0", - "aggregate-error": "^3.0.0", - "cosmiconfig": "^7.0.0", - "debug": "^4.0.0", - "env-ci": "^5.0.0", - "execa": "^5.0.0", - "figures": "^3.0.0", - "find-versions": "^4.0.0", - "get-stream": "^6.0.0", - "git-log-parser": "^1.2.0", - "hook-std": "^2.0.0", - "hosted-git-info": "^4.0.0", - "lodash": "^4.17.21", - "marked": "^2.0.0", - "marked-terminal": "^4.1.1", - "micromatch": "^4.0.2", - "p-each-series": "^2.1.0", - "p-reduce": "^2.0.0", - "read-pkg-up": "^7.0.0", - "resolve-from": "^5.0.0", - "semver": "^7.3.2", - "semver-diff": "^3.1.1", - "signale": "^1.2.1", - "yargs": "^16.2.0" - }, - "dependencies": { - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "hosted-git-info": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", - "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "marked": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/marked/-/marked-2.0.3.tgz", - "integrity": "sha512-5otztIIcJfPc2qGTN8cVtOJEjNJZ0jwa46INMagrYfk0EvqtRuEHLsEe0LrFS0/q+ZRKT0+kXK7P2T1AN5lWRA==", - "dev": true - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true - }, - "parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "requires": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "dependencies": { - "type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", - "dev": true - } - } - }, - "read-pkg-up": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", - "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", + "version": "17.4.3", + "resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-17.4.3.tgz", + "integrity": "sha512-lTOUSrkbaQ+TRs3+BmtJhLtPSyiO7iTGmh5SyuEFqNO8HQbQ4nzXg4UlPrDQasO/C0eFK/V0eCbOzJdjtKBOYw==", + "dev": true, + "requires": { + "@semantic-release/commit-analyzer": "^8.0.0", + "@semantic-release/error": "^2.2.0", + "@semantic-release/github": "^7.0.0", + "@semantic-release/npm": "^7.0.0", + "@semantic-release/release-notes-generator": "^9.0.0", + "aggregate-error": "^3.0.0", + "cosmiconfig": "^7.0.0", + "debug": "^4.0.0", + "env-ci": "^5.0.0", + "execa": "^5.0.0", + "figures": "^3.0.0", + "find-versions": "^4.0.0", + "get-stream": "^6.0.0", + "git-log-parser": "^1.2.0", + "hook-std": "^2.0.0", + "hosted-git-info": "^4.0.0", + "lodash": "^4.17.21", + "marked": "^2.0.0", + "marked-terminal": "^4.1.1", + "micromatch": "^4.0.2", + "p-each-series": "^2.1.0", + "p-reduce": "^2.0.0", + "read-pkg-up": "^7.0.0", + "resolve-from": "^5.0.0", + "semver": "^7.3.2", + "semver-diff": "^3.1.1", + "signale": "^1.2.1", + "yargs": "^16.2.0" + }, + "dependencies": { + "hosted-git-info": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", + "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==", "dev": true, "requires": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" + "lru-cache": "^6.0.0" } }, "semver": { @@ -27151,12 +29998,6 @@ "requires": { "lru-cache": "^6.0.0" } - }, - "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true } } }, @@ -27184,9 +30025,9 @@ } }, "semver-regex": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.3.tgz", - "integrity": "sha512-Aqi54Mk9uYTjVexLnR67rTyBusmwd04cLkHy9hNvk3+G3nT2Oyg7E0l4XVbOaNwIvQ3hHeYxGcyEy+mKreyBFQ==", + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.4.tgz", + "integrity": "sha512-6IiqeZNgq01qGf0TId0t3NvKzSvUsjcpdEO3AQNeIjR6A2+ckTnQlDpl4qu1bjRv0RzN3FP9hzFmws3lKqRWkA==", "dev": true }, "set-getter": { @@ -27224,9 +30065,9 @@ } }, "signal-exit": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", - "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true }, "signale": { @@ -27271,43 +30112,6 @@ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true }, - "slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - } - } - }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -27315,9 +30119,9 @@ "dev": true }, "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, "requires": { "buffer-from": "^1.0.0", @@ -27372,22 +30176,23 @@ } }, "split2": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-2.2.0.tgz", - "integrity": "sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz", + "integrity": "sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==", "dev": true, "requires": { - "through2": "^2.0.2" + "readable-stream": "^3.0.0" }, "dependencies": { - "through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", "dev": true, "requires": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" } } } @@ -27502,10 +30307,13 @@ "dev": true }, "strip-indent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", - "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", - "dev": true + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "dev": true, + "requires": { + "min-indent": "^1.0.0" + } }, "strip-json-comments": { "version": "2.0.1", @@ -27555,26 +30363,12 @@ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true }, - "symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "svg-element-attributes": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/svg-element-attributes/-/svg-element-attributes-1.3.1.tgz", + "integrity": "sha512-Bh05dSOnJBf3miNMqpsormfNtfidA/GxQVakhtn0T4DECWKeXQRQUceYjJ+OxYiiLdGe4Jo9iFV8wICFapFeIA==", "dev": true }, - "table": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/table/-/table-6.7.1.tgz", - "integrity": "sha512-ZGum47Yi6KOOFDE8m223td53ath2enHcYLgOCjGr5ngu8bdIARQk6mN/wRMv4yMRcHnCSnHbCEha4sobQx5yWg==", - "dev": true, - "requires": { - "ajv": "^8.0.1", - "lodash.clonedeep": "^4.5.0", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0" - } - }, "temp-dir": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", @@ -27634,12 +30428,6 @@ "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", "dev": true }, - "throat": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.1.tgz", - "integrity": "sha512-8hmiGIJMDlwjg7dlJ4yKGLK8EsYqKgPWbG3b4wjJddKNwc7N7Dpn08Df4szr/sZdMVeOstrdYSsqzX6BYbcB+w==", - "dev": true - }, "through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", @@ -27647,12 +30435,25 @@ "dev": true }, "through2": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", - "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz", + "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==", "dev": true, "requires": { - "readable-stream": "2 || 3" + "readable-stream": "3" + }, + "dependencies": { + "readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + } } }, "tmpl": { @@ -27691,25 +30492,6 @@ "integrity": "sha512-gVweAectJU3ebq//Ferr2JUY4WKSDe5N+z0FvjDncLGyHmIDoxgY/2Ie4qfEIDm4IS7OA6Rmdm7pdEEdMcV/xQ==", "dev": true }, - "tough-cookie": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.0.0.tgz", - "integrity": "sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg==", - "dev": true, - "requires": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.1.2" - }, - "dependencies": { - "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true - } - } - }, "tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", @@ -27722,57 +30504,18 @@ "dev": true }, "trim-newlines": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz", - "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=", - "dev": true - }, - "trim-off-newlines": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.3.tgz", - "integrity": "sha512-kh6Tu6GbeSNMGfrrZh6Bb/4ZEHV1QlB4xNDBeog8Y9/QwFlKTRyWvY3Fs9tRDAMZliVUwieMgEdIeL/FtqjkJg==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", + "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", "dev": true }, - "ts-jest": { - "version": "27.1.3", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-27.1.3.tgz", - "integrity": "sha512-6Nlura7s6uM9BVUAoqLH7JHyMXjz8gluryjpPXxr3IxZdAXnU6FhjvVLHFtfd1vsE1p8zD1OJfskkc0jhTSnkA==", - "dev": true, - "requires": { - "bs-logger": "0.x", - "fast-json-stable-stringify": "2.x", - "jest-util": "^27.0.0", - "json5": "2.x", - "lodash.memoize": "4.x", - "make-error": "1.x", - "semver": "7.x", - "yargs-parser": "20.x" - }, - "dependencies": { - "semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - }, - "yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "dev": true - } - } - }, "ts-node": { - "version": "10.7.0", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.7.0.tgz", - "integrity": "sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A==", + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", + "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", "dev": true, "requires": { - "@cspotcode/source-map-support": "0.7.0", + "@cspotcode/source-map-support": "^0.8.0", "@tsconfig/node10": "^1.0.7", "@tsconfig/node12": "^1.0.7", "@tsconfig/node14": "^1.0.0", @@ -27783,15 +30526,30 @@ "create-require": "^1.1.0", "diff": "^4.0.1", "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.0", + "v8-compile-cache-lib": "^3.0.1", "yn": "3.1.1" + } + }, + "tsconfig-paths": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz", + "integrity": "sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==", + "dev": true, + "requires": { + "@types/json5": "^0.0.29", + "json5": "^1.0.1", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" }, "dependencies": { - "acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "dev": true + "json5": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", + "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "dev": true, + "requires": { + "minimist": "^1.2.0" + } } } }, @@ -27800,6 +30558,23 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" }, + "tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true + } + } + }, "type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -27827,19 +30602,10 @@ "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", "dev": true }, - "typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "dev": true, - "requires": { - "is-typedarray": "^1.0.0" - } - }, "typescript": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.2.tgz", - "integrity": "sha512-HM/hFigTBHZhLXshn9sN37H085+hQGeJHJ/X7LpBWLID/fbc2acUMfU+lGD98X81sKP+pFa9f0DZmCwB9GnbAg==", + "version": "4.8.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.2.tgz", + "integrity": "sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==", "dev": true }, "uglify-js": { @@ -27881,6 +30647,16 @@ "integrity": "sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug==", "dev": true }, + "update-browserslist-db": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.7.tgz", + "integrity": "sha512-iN/XYesmZ2RmmWAiI4Z5rq0YqSiv0brj9Ce9CfhNE4xIW2h+MFxcgkxIzZ+ShkFPUkjU3gQ+3oypadD3RAMtrg==", + "dev": true, + "requires": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + } + }, "uri-js": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", @@ -27890,9 +30666,9 @@ } }, "urijs": { - "version": "1.19.10", - "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.10.tgz", - "integrity": "sha512-EzauQlgKuJgsXOqoMrCiePBf4At5jVqRhXykF3Wfb8ZsOBMxPcfiVBcsHXug4Aepb/ICm2PIgqAUGMelgdrWEg==" + "version": "1.19.11", + "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz", + "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==" }, "url-join": { "version": "4.0.1", @@ -27911,35 +30687,21 @@ "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==" }, - "v8-compile-cache": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", - "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", - "dev": true - }, "v8-compile-cache-lib": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.0.tgz", - "integrity": "sha512-mpSYqfsFvASnSn5qMiwrr4VKfumbPyONLCOPmsR3A6pTY/r0+tSaVbgPWSAIuzbk3lCTa+FForeTiO+wBQGkjA==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", "dev": true }, "v8-to-istanbul": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz", - "integrity": "sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.0.1.tgz", + "integrity": "sha512-74Y4LqY74kLE6IFyIjPtkSTWzUZmj8tdHT9Ii/26dvQ6K9Dl2NbEfj0XgU2sHCtKgt5VupqhlO/5aWuqS+IY1w==", "dev": true, "requires": { + "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0", - "source-map": "^0.7.3" - }, - "dependencies": { - "source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", - "dev": true - } + "convert-source-map": "^1.6.0" } }, "validate-npm-package-license": { @@ -27952,24 +30714,6 @@ "spdx-expression-parse": "^3.0.0" } }, - "w3c-hr-time": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", - "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", - "dev": true, - "requires": { - "browser-process-hrtime": "^1.0.0" - } - }, - "w3c-xmlserializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", - "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", - "dev": true, - "requires": { - "xml-name-validator": "^3.0.0" - } - }, "walker": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", @@ -28010,21 +30754,6 @@ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" }, - "whatwg-encoding": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", - "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", - "dev": true, - "requires": { - "iconv-lite": "0.4.24" - } - }, - "whatwg-mimetype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", - "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", - "dev": true - }, "whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", @@ -28106,37 +30835,6 @@ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, - "write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", - "dev": true, - "requires": { - "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - } - }, - "ws": { - "version": "7.5.7", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.7.tgz", - "integrity": "sha512-KMvVuFzpKBuiIXW3E4u3mySRO2/mCHSyZDJQM5NQ9Q9KHWHWh0NHgfbRMLLrceUK5qAL4ytALJbpRMjixFZh8A==", - "dev": true, - "requires": {} - }, - "xml-name-validator": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", - "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", - "dev": true - }, - "xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", - "dev": true - }, "xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", @@ -28174,30 +30872,25 @@ "string-width": "^4.2.0", "y18n": "^5.0.5", "yargs-parser": "^20.2.2" - }, - "dependencies": { - "yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", - "dev": true - } } }, "yargs-parser": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz", - "integrity": "sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ==", - "dev": true, - "requires": { - "camelcase": "^4.1.0" - } + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true }, "yn": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", "dev": true + }, + "yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true } } } diff --git a/package.json b/package.json index 82041d06c..fae8a6d05 100644 --- a/package.json +++ b/package.json @@ -2,17 +2,6 @@ "name": "@asyncapi/parser", "version": "2.0.0", "description": "JavaScript AsyncAPI parser.", - "scripts": { - "build": "tsc", - "test": "cross-env CI=true jest --coverage", - "lint": "eslint --no-error-on-unmatched-pattern --max-warnings 0 --config \".eslintrc\" \".\"", - "lint:fix": "eslint --no-error-on-unmatched-pattern --max-warnings 0 --config \".eslintrc\" \".\" --fix", - "generate:readme:toc": "markdown-toc -i \"README.md\"", - "generate:assets": "npm run generate:readme:toc", - "bump:version": "npm --no-git-tag-version --allow-same-version version $VERSION", - "prepublishOnly": "npm run bundle && npm run types", - "release": "semantic-release" - }, "bugs": { "url": "https://github.com/asyncapi/parser-js/issues" }, @@ -25,8 +14,35 @@ }, "license": "Apache-2.0", "homepage": "https://github.com/asyncapi/parser-js", + "sideEffects": false, + "scripts": { + "build": "tsc", + "test": "cross-env CI=true jest --coverage", + "lint": "eslint --max-warnings 0 --config .eslintrc .", + "lint:fix": "eslint --max-warnings 0 --config .eslintrc . --fix", + "generate:readme:toc": "markdown-toc -i \"README.md\"", + "generate:assets": "npm run generate:readme:toc", + "bump:version": "npm --no-git-tag-version --allow-same-version version $VERSION", + "prepublishOnly": "npm run bundle && npm run types", + "release": "semantic-release" + }, + "dependencies": { + "@asyncapi/specs": "^3.1.0", + "@openapi-contrib/openapi-schema-to-json-schema": "^3.2.0", + "@stoplight/spectral-core": "^1.14.1", + "@stoplight/spectral-functions": "^1.7.1", + "@stoplight/spectral-parsers": "^1.0.2", + "@stoplight/spectral-rulesets": "^1.12.0", + "ajv": "^8.11.0", + "avsc": "^5.7.5", + "js-yaml": "^4.1.0", + "jsonpath-plus": "^7.2.0", + "lodash": "^4.17.21", + "ramldt2jsonschema": "^1.2.3", + "webapi-parser": "^0.5.0" + }, "devDependencies": { - "@jest/types": "^27.5.1", + "@jest/types": "^29.0.2", "@semantic-release/commit-analyzer": "^8.0.1", "@semantic-release/github": "7.2.3", "@semantic-release/npm": "^7.0.3", @@ -37,33 +53,19 @@ "@types/js-yaml": "^4.0.5", "@types/json-schema": "^7.0.11", "@types/lodash": "^4.14.179", + "@typescript-eslint/eslint-plugin": "^5.36.2", + "@typescript-eslint/parser": "^5.36.2", "conventional-changelog-conventionalcommits": "^4.2.3", "cross-env": "^7.0.3", - "eslint": "^7.27.0", - "eslint-plugin-mocha": "^7.0.1", - "eslint-plugin-security": "^1.4.0", - "eslint-plugin-sonarjs": "^0.5.0", - "jest": "^27.5.1", + "eslint": "^8.23.0", + "eslint-plugin-github": "^4.3.7", + "eslint-plugin-security": "^1.5.0", + "eslint-plugin-sonarjs": "^0.15.0", + "jest": "^29.0.2", "markdown-toc": "^1.2.0", "semantic-release": "17.4.3", - "ts-jest": "^27.1.3", - "ts-node": "^10.7.0", - "typescript": "^4.6.2" - }, - "dependencies": { - "@asyncapi/specs": "^3.1.0", - "@openapi-contrib/openapi-schema-to-json-schema": "^3.2.0", - "@stoplight/spectral-core": "^1.13.1", - "@stoplight/spectral-functions": "^1.7.1", - "@stoplight/spectral-parsers": "^1.0.2", - "@stoplight/spectral-rulesets": "^1.12.0", - "ajv": "^8.11.0", - "avsc": "^5.7.4", - "js-yaml": "^3.14.1", - "jsonpath-plus": "^6.0.1", - "lodash": "^4.17.21", - "ramldt2jsonschema": "^1.2.3", - "webapi-parser": "^0.5.0" + "ts-node": "^10.9.1", + "typescript": "^4.8.2" }, "release": { "branches": [ diff --git a/src/constants.ts b/src/constants.ts index ed7d80309..e1df2316a 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -14,7 +14,7 @@ export const xParserOriginalTraits = 'x-parser-original-traits'; export const xParserCircular = 'x-parser-circular'; export const xParserCircularProps = 'x-parser-circular-props'; -export const EXTENSION_REGEX = /^x-[\w\d\.\-\_]+$/; +export const EXTENSION_REGEX = /^x-[\w\d.\-_]+$/; // Only >=2.0.0 versions are supported export const specVersions = Object.keys(specs).filter((version: string) => !['1.0.0', '1.1.0', '1.2.0', '2.0.0-rc1', '2.0.0-rc2'].includes(version)); \ No newline at end of file diff --git a/src/custom-operations/apply-traits.ts b/src/custom-operations/apply-traits.ts index 97f2bfd1b..348052ebe 100644 --- a/src/custom-operations/apply-traits.ts +++ b/src/custom-operations/apply-traits.ts @@ -3,7 +3,7 @@ import { JSONPath } from 'jsonpath-plus'; import { xParserOriginalTraits } from '../constants'; import { mergePatch } from '../utils'; -import type { v2 } from "../spec-types"; +import type { v2 } from '../spec-types'; const v2TraitPaths = [ // operations diff --git a/src/custom-operations/index.ts b/src/custom-operations/index.ts index 377dcacc3..49f29aa6e 100644 --- a/src/custom-operations/index.ts +++ b/src/custom-operations/index.ts @@ -2,13 +2,13 @@ import { applyTraitsV2, applyTraitsV3 } from './apply-traits'; import { parseSchemasV2 } from './parse-schema'; import type { Parser } from '../parser'; -import type { ParseOptions } from "../parse"; -import type { DetailedAsyncAPI } from "../types"; +import type { ParseOptions } from '../parse'; +import type { DetailedAsyncAPI } from '../types'; export async function customOperations(parser: Parser, detailed: DetailedAsyncAPI, options: ParseOptions): Promise { switch (detailed.semver.major) { - case 2: return operationsV2(parser, detailed, options); - case 3: return operationsV3(parser, detailed, options); + case 2: return operationsV2(parser, detailed, options); + case 3: return operationsV3(parser, detailed, options); } } diff --git a/src/custom-operations/parse-schema.ts b/src/custom-operations/parse-schema.ts index 6fb36bb77..1d006b68b 100644 --- a/src/custom-operations/parse-schema.ts +++ b/src/custom-operations/parse-schema.ts @@ -5,8 +5,8 @@ import { parseSchema, getSchemaFormat, getDefaultSchemaFormat } from '../schema- import { xParserOriginalPayload } from '../constants'; import type { Parser } from '../parser'; -import type { ParseSchemaInput } from "../schema-parser"; -import type { DetailedAsyncAPI } from "../types"; +import type { ParseSchemaInput } from '../schema-parser'; +import type { DetailedAsyncAPI } from '../types'; interface ToParseItem { input: ParseSchemaInput; diff --git a/src/index.ts b/src/index.ts index 178636e8a..2680c752e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,4 +8,4 @@ export type { AsyncAPISemver, Diagnostic, SchemaValidateResult } from './types'; export type { LintOptions, ValidateOptions, ValidateOutput } from './lint'; export type { ParseInput, ParseOptions, ParseOutput } from './parse'; export type { StringifyOptions } from './stringify'; -export type { ValidateSchemaInput, ParseSchemaInput, SchemaParser } from './schema-parser' +export type { ValidateSchemaInput, ParseSchemaInput, SchemaParser } from './schema-parser'; diff --git a/src/lint.ts b/src/lint.ts index 8035c5ead..d35b8210b 100644 --- a/src/lint.ts +++ b/src/lint.ts @@ -1,12 +1,12 @@ -import { Document } from "@stoplight/spectral-core"; -import { Yaml } from "@stoplight/spectral-parsers"; -import { toAsyncAPIDocument, normalizeInput, hasWarningDiagnostic, hasErrorDiagnostic } from "./utils"; +import { Document } from '@stoplight/spectral-core'; +import { Yaml } from '@stoplight/spectral-parsers'; +import { toAsyncAPIDocument, normalizeInput, hasWarningDiagnostic, hasErrorDiagnostic } from './utils'; -import type { IRunOpts } from "@stoplight/spectral-core"; +import type { IRunOpts } from '@stoplight/spectral-core'; import type { Parser } from './parser'; -import type { AsyncAPIDocumentInterface } from "./models/asyncapi"; -import type { ParseInput } from "./parse"; -import type { Diagnostic } from "./types"; +import type { AsyncAPIDocumentInterface } from './models/asyncapi'; +import type { ParseInput } from './parse'; +import type { Diagnostic } from './types'; export interface LintOptions extends IRunOpts { path?: string; @@ -34,13 +34,14 @@ export async function validate(parser: Parser, asyncapi: ParseInput, options: Va return { validated: asyncapi, diagnostics: [], - } + }; } const stringifiedDocument = normalizeInput(asyncapi as Exclude); const document = new Document(stringifiedDocument, Yaml, options.path); const { allowedSeverity } = normalizeOptions(options); + // eslint-disable-next-line prefer-const let { resolved, results } = await parser.spectral.runWithResolved(document); if ( diff --git a/src/models/asyncapi.ts b/src/models/asyncapi.ts index 142acf417..b79d36e81 100644 --- a/src/models/asyncapi.ts +++ b/src/models/asyncapi.ts @@ -1,18 +1,18 @@ -import { AsyncAPIDocumentV2 } from "./v2"; +import { AsyncAPIDocumentV2 } from './v2'; -import type { BaseModel } from "./base"; -import type { InfoInterface } from "./info"; -import type { ChannelsInterface } from "./channels"; -import type { ComponentsInterface } from "./components"; -import type { MessagesInterface } from "./messages"; -import type { ExtensionsMixinInterface } from "./mixins"; -import type { OperationsInterface } from "./operations"; -import type { SchemasInterface } from "./schemas"; -import type { SecuritySchemesInterface } from "./security-schemes"; -import type { ServersInterface } from "./servers"; -import type { DetailedAsyncAPI } from "../types"; +import type { BaseModel } from './base'; +import type { InfoInterface } from './info'; +import type { ChannelsInterface } from './channels'; +import type { ComponentsInterface } from './components'; +import type { MessagesInterface } from './messages'; +import type { ExtensionsMixinInterface } from './mixins'; +import type { OperationsInterface } from './operations'; +import type { SchemasInterface } from './schemas'; +import type { SecuritySchemesInterface } from './security-schemes'; +import type { ServersInterface } from './servers'; +import type { DetailedAsyncAPI } from '../types'; -import type { v2 } from "../spec-types"; +import type { v2 } from '../spec-types'; export interface AsyncAPIDocumentInterface extends BaseModel, ExtensionsMixinInterface { version(): string; @@ -30,11 +30,11 @@ export interface AsyncAPIDocumentInterface extends BaseModel, export function newAsyncAPIDocument(asyncapi: DetailedAsyncAPI): AsyncAPIDocumentInterface { switch (asyncapi.semver.major) { - case 2: - return new AsyncAPIDocumentV2(asyncapi.parsed, { asyncapi, pointer: '/' }); + case 2: + return new AsyncAPIDocumentV2(asyncapi.parsed, { asyncapi, pointer: '/' }); // case 3: // return new AsyncAPIDocumentV3(asyncapi.parsed, { asyncapi, pointer: '/' }); - default: - throw new Error(`Unsupported AsyncAPI version: ${asyncapi.semver.version}`); + default: + throw new Error(`Unsupported AsyncAPI version: ${asyncapi.semver.version}`); } } diff --git a/src/models/base.ts b/src/models/base.ts index a68e5f709..d82bfce5c 100644 --- a/src/models/base.ts +++ b/src/models/base.ts @@ -1,5 +1,5 @@ -import type { Constructor, InferModelData, InferModelMetadata } from "./utils"; -import type { DetailedAsyncAPI } from "../types"; +import type { Constructor, InferModelData, InferModelMetadata } from './utils'; +import type { DetailedAsyncAPI } from '../types'; export interface ModelMetadata { asyncapi: DetailedAsyncAPI; diff --git a/src/models/binding.ts b/src/models/binding.ts index 87970a472..6b1579660 100644 --- a/src/models/binding.ts +++ b/src/models/binding.ts @@ -1,4 +1,4 @@ -import type { BaseModel } from "./base"; +import type { BaseModel } from './base'; import type { ExtensionsMixinInterface } from './mixins'; export interface BindingInterface = Record> extends BaseModel, ExtensionsMixinInterface { diff --git a/src/models/bindings.ts b/src/models/bindings.ts index 84e75f5e3..203e33780 100644 --- a/src/models/bindings.ts +++ b/src/models/bindings.ts @@ -1,5 +1,5 @@ import type { Collection } from './collection'; import type { BindingInterface } from './binding'; -import type { ExtensionsMixinInterface } from "./mixins"; +import type { ExtensionsMixinInterface } from './mixins'; export interface BindingsInterface extends Collection, ExtensionsMixinInterface {} \ No newline at end of file diff --git a/src/models/channel-parameter.ts b/src/models/channel-parameter.ts index 6aec455b9..700404059 100644 --- a/src/models/channel-parameter.ts +++ b/src/models/channel-parameter.ts @@ -1,6 +1,6 @@ -import type { BaseModel } from "./base"; -import type { DescriptionMixinInterface, ExtensionsMixinInterface } from "./mixins"; -import type { SchemaInterface } from "./schema"; +import type { BaseModel } from './base'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +import type { SchemaInterface } from './schema'; export interface ChannelParameterInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { id(): string; diff --git a/src/models/channel-parameters.ts b/src/models/channel-parameters.ts index 07ef58853..629c7c87a 100644 --- a/src/models/channel-parameters.ts +++ b/src/models/channel-parameters.ts @@ -1,4 +1,4 @@ -import type { Collection } from "./collection"; -import type { ChannelParameterInterface } from "./channel-parameter"; +import type { Collection } from './collection'; +import type { ChannelParameterInterface } from './channel-parameter'; -export interface ChannelParametersInterface extends Collection {} \ No newline at end of file +export type ChannelParametersInterface = Collection \ No newline at end of file diff --git a/src/models/channel.ts b/src/models/channel.ts index fc4b0ea30..f9652600d 100644 --- a/src/models/channel.ts +++ b/src/models/channel.ts @@ -1,9 +1,9 @@ -import type { BaseModel } from "./base"; -import type { ChannelParametersInterface } from "./channel-parameters"; -import type { MessagesInterface } from "./messages"; -import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from "./mixins"; -import type { OperationsInterface } from "./operations"; -import type { ServersInterface } from "./servers"; +import type { BaseModel } from './base'; +import type { ChannelParametersInterface } from './channel-parameters'; +import type { MessagesInterface } from './messages'; +import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; +import type { OperationsInterface } from './operations'; +import type { ServersInterface } from './servers'; export interface ChannelInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface { id(): string; diff --git a/src/models/channels.ts b/src/models/channels.ts index 970710ff0..cafec9950 100644 --- a/src/models/channels.ts +++ b/src/models/channels.ts @@ -1,5 +1,5 @@ -import type { Collection } from "./collection"; -import type { ChannelInterface } from "./channel"; +import type { Collection } from './collection'; +import type { ChannelInterface } from './channel'; export interface ChannelsInterface extends Collection { filterBySend(): ChannelInterface[]; diff --git a/src/models/collection.ts b/src/models/collection.ts index 5010dcd24..e7a290cfe 100644 --- a/src/models/collection.ts +++ b/src/models/collection.ts @@ -1,5 +1,5 @@ -import type { BaseModel } from "./base"; -import type { DetailedAsyncAPI } from "../types"; +import type { BaseModel } from './base'; +import type { DetailedAsyncAPI } from '../types'; export interface CollectionMetadata { originalData?: Record; diff --git a/src/models/contact.ts b/src/models/contact.ts index f21dce2f7..2528469b7 100644 --- a/src/models/contact.ts +++ b/src/models/contact.ts @@ -1,5 +1,5 @@ -import type { BaseModel } from "./base"; -import type { ExtensionsMixinInterface } from "./mixins"; +import type { BaseModel } from './base'; +import type { ExtensionsMixinInterface } from './mixins'; export interface ContactInterface extends BaseModel, ExtensionsMixinInterface { hasName(): boolean; diff --git a/src/models/correlation-id.ts b/src/models/correlation-id.ts index 4f208f92c..13d590401 100644 --- a/src/models/correlation-id.ts +++ b/src/models/correlation-id.ts @@ -1,5 +1,5 @@ -import type { BaseModel } from "./base"; -import type { DescriptionMixinInterface, ExtensionsMixinInterface } from "./mixins"; +import type { BaseModel } from './base'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; export interface CorrelationIdInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { hasLocation(): boolean; diff --git a/src/models/correlation-ids.ts b/src/models/correlation-ids.ts index 1c2db2c6b..9134efe9e 100644 --- a/src/models/correlation-ids.ts +++ b/src/models/correlation-ids.ts @@ -1,4 +1,4 @@ import type { Collection } from './collection'; import type { CorrelationIdInterface } from './correlation-id'; -export interface CorrelationIdsInterface extends Collection { } \ No newline at end of file +export type CorrelationIdsInterface = Collection \ No newline at end of file diff --git a/src/models/extension.ts b/src/models/extension.ts index e31aab2c7..bb2b082d9 100644 --- a/src/models/extension.ts +++ b/src/models/extension.ts @@ -1,4 +1,4 @@ -import type { BaseModel } from "./base"; +import type { BaseModel } from './base'; export interface ExtensionInterface extends BaseModel { name(): string; diff --git a/src/models/extensions.ts b/src/models/extensions.ts index a1693ec6c..7a1184461 100644 --- a/src/models/extensions.ts +++ b/src/models/extensions.ts @@ -1,4 +1,4 @@ import type { Collection } from './collection'; import type { ExtensionInterface } from './extension'; -export interface ExtensionsInterface extends Collection {} \ No newline at end of file +export type ExtensionsInterface = Collection \ No newline at end of file diff --git a/src/models/external-docs.ts b/src/models/external-docs.ts index 891d53392..eefc56df2 100644 --- a/src/models/external-docs.ts +++ b/src/models/external-docs.ts @@ -1,5 +1,5 @@ -import type { BaseModel } from "./base"; -import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins' +import type { BaseModel } from './base'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; export interface ExternalDocumentationInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { diff --git a/src/models/info.ts b/src/models/info.ts index 4bb02e3f7..99e4f3275 100644 --- a/src/models/info.ts +++ b/src/models/info.ts @@ -1,7 +1,7 @@ -import type { ContactInterface } from "./contact"; -import type { LicenseInterface } from "./license"; -import type { BaseModel } from "./base"; -import type { DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from "./mixins"; +import type { ContactInterface } from './contact'; +import type { LicenseInterface } from './license'; +import type { BaseModel } from './base'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; export interface InfoInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { title(): string; diff --git a/src/models/license.ts b/src/models/license.ts index 42e254961..952cc4d62 100644 --- a/src/models/license.ts +++ b/src/models/license.ts @@ -1,5 +1,5 @@ -import type { BaseModel } from "./base"; -import type { ExtensionsMixinInterface } from "./mixins"; +import type { BaseModel } from './base'; +import type { ExtensionsMixinInterface } from './mixins'; export interface LicenseInterface extends BaseModel, ExtensionsMixinInterface { name(): string; diff --git a/src/models/message-example.ts b/src/models/message-example.ts index 16867bd7b..2e6c6ecb3 100644 --- a/src/models/message-example.ts +++ b/src/models/message-example.ts @@ -1,4 +1,4 @@ -import type { BaseModel } from "./base"; +import type { BaseModel } from './base'; import type { ExtensionsMixinInterface } from './mixins'; export interface MessageExampleInterface extends BaseModel, ExtensionsMixinInterface { diff --git a/src/models/message-examples.ts b/src/models/message-examples.ts index ddf9821f0..e0ff6110c 100644 --- a/src/models/message-examples.ts +++ b/src/models/message-examples.ts @@ -1,4 +1,4 @@ -import type { Collection } from "./collection"; -import type { MessageExampleInterface } from "./message-example"; +import type { Collection } from './collection'; +import type { MessageExampleInterface } from './message-example'; -export interface MessageExamplesInterface extends Collection {} +export type MessageExamplesInterface = Collection diff --git a/src/models/message-trait.ts b/src/models/message-trait.ts index 65777cd6a..b140fdfe6 100644 --- a/src/models/message-trait.ts +++ b/src/models/message-trait.ts @@ -1,8 +1,8 @@ -import type { BaseModel } from "./base"; -import type { CorrelationIdInterface } from "./correlation-id"; -import type { MessageExamplesInterface } from "./message-examples"; +import type { BaseModel } from './base'; +import type { CorrelationIdInterface } from './correlation-id'; +import type { MessageExamplesInterface } from './message-examples'; import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; -import type { SchemaInterface } from "./schema"; +import type { SchemaInterface } from './schema'; export interface MessageTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { id(): string; diff --git a/src/models/message-traits.ts b/src/models/message-traits.ts index 4a85d226c..548b344d8 100644 --- a/src/models/message-traits.ts +++ b/src/models/message-traits.ts @@ -1,4 +1,4 @@ -import type { Collection } from "./collection"; -import type { MessageTraitInterface } from "./message-trait"; +import type { Collection } from './collection'; +import type { MessageTraitInterface } from './message-trait'; -export interface MessageTraitsInterface extends Collection {} \ No newline at end of file +export type MessageTraitsInterface = Collection \ No newline at end of file diff --git a/src/models/message.ts b/src/models/message.ts index 618a85bdd..46df237ca 100644 --- a/src/models/message.ts +++ b/src/models/message.ts @@ -1,10 +1,10 @@ -import type { BaseModel } from "./base"; -import type { ChannelsInterface } from "./channels"; -import type { MessageTraitsInterface } from "./message-traits"; -import type { MessageTraitInterface } from "./message-trait"; -import type { OperationsInterface } from "./operations"; -import type { SchemaInterface } from "./schema"; -import type { ServersInterface } from "./servers"; +import type { BaseModel } from './base'; +import type { ChannelsInterface } from './channels'; +import type { MessageTraitsInterface } from './message-traits'; +import type { MessageTraitInterface } from './message-trait'; +import type { OperationsInterface } from './operations'; +import type { SchemaInterface } from './schema'; +import type { ServersInterface } from './servers'; export interface MessageInterface extends BaseModel, MessageTraitInterface { hasPayload(): boolean; diff --git a/src/models/messages.ts b/src/models/messages.ts index 951dfab59..eaf8cb178 100644 --- a/src/models/messages.ts +++ b/src/models/messages.ts @@ -1,5 +1,5 @@ -import type { Collection } from "./collection"; -import type { MessageInterface } from "./message"; +import type { Collection } from './collection'; +import type { MessageInterface } from './message'; export interface MessagesInterface extends Collection { filterBySend(): MessageInterface[]; diff --git a/src/models/operation-trait.ts b/src/models/operation-trait.ts index 2f4dd27da..821af8457 100644 --- a/src/models/operation-trait.ts +++ b/src/models/operation-trait.ts @@ -1,6 +1,6 @@ -import type { BaseModel } from "./base"; +import type { BaseModel } from './base'; import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface } from './mixins'; -import { SecurityRequirements } from "./v2/security-requirements"; +import { SecurityRequirements } from './v2/security-requirements'; export interface OperationTraitInterface extends BaseModel, BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface, TagsMixinInterface { id(): string; diff --git a/src/models/operation-traits.ts b/src/models/operation-traits.ts index 77332b8d3..310dbbfc7 100644 --- a/src/models/operation-traits.ts +++ b/src/models/operation-traits.ts @@ -1,4 +1,4 @@ -import type { Collection } from "./collection"; -import type { OperationTraitInterface } from "./operation-trait"; +import type { Collection } from './collection'; +import type { OperationTraitInterface } from './operation-trait'; -export interface OperationTraitsInterface extends Collection {} \ No newline at end of file +export type OperationTraitsInterface = Collection \ No newline at end of file diff --git a/src/models/operation.ts b/src/models/operation.ts index 6f91de2a8..1bb372296 100644 --- a/src/models/operation.ts +++ b/src/models/operation.ts @@ -1,9 +1,9 @@ -import type { BaseModel } from "./base"; -import type { ChannelsInterface } from "./channels"; -import type { MessagesInterface } from "./messages"; -import type { OperationTraitsInterface } from "./operation-traits"; -import type { OperationTraitInterface } from "./operation-trait"; -import type { ServersInterface } from "./servers"; +import type { BaseModel } from './base'; +import type { ChannelsInterface } from './channels'; +import type { MessagesInterface } from './messages'; +import type { OperationTraitsInterface } from './operation-traits'; +import type { OperationTraitInterface } from './operation-trait'; +import type { ServersInterface } from './servers'; export type OperationAction = 'send' | 'receive' | 'publish' | 'subscribe'; diff --git a/src/models/operations.ts b/src/models/operations.ts index bd88b6780..798e323a3 100644 --- a/src/models/operations.ts +++ b/src/models/operations.ts @@ -1,5 +1,5 @@ -import type { Collection } from "./collection"; -import type { OperationInterface } from "./operation"; +import type { Collection } from './collection'; +import type { OperationInterface } from './operation'; export interface OperationsInterface extends Collection { filterBySend(): OperationInterface[]; diff --git a/src/models/schema.ts b/src/models/schema.ts index 72c224961..08a0e90c4 100644 --- a/src/models/schema.ts +++ b/src/models/schema.ts @@ -1,6 +1,6 @@ -import type { BaseModel } from "./base"; -import type { ExtensionsMixinInterface, ExternalDocumentationMixinInterface } from "./mixins"; -import type { v2 } from "../spec-types"; +import type { BaseModel } from './base'; +import type { ExtensionsMixinInterface, ExternalDocumentationMixinInterface } from './mixins'; +import type { v2 } from '../spec-types'; export interface SchemaInterface extends BaseModel, ExtensionsMixinInterface, ExternalDocumentationMixinInterface { uid(): string; diff --git a/src/models/schemas.ts b/src/models/schemas.ts index 394fd6552..f8d021ada 100644 --- a/src/models/schemas.ts +++ b/src/models/schemas.ts @@ -1,4 +1,4 @@ -import type { Collection } from "./collection"; -import type { SchemaInterface } from "./schema"; +import type { Collection } from './collection'; +import type { SchemaInterface } from './schema'; -export interface SchemasInterface extends Collection {} +export type SchemasInterface = Collection diff --git a/src/models/security-requirement.ts b/src/models/security-requirement.ts index 777e6c04f..f24ab6225 100644 --- a/src/models/security-requirement.ts +++ b/src/models/security-requirement.ts @@ -1,5 +1,5 @@ -import type { BaseModel } from "./base"; -import type { SecuritySchemeInterface } from "./security-scheme"; +import type { BaseModel } from './base'; +import type { SecuritySchemeInterface } from './security-scheme'; export interface SecurityRequirementInterface extends BaseModel { scheme(): SecuritySchemeInterface diff --git a/src/models/security-requirements.ts b/src/models/security-requirements.ts index 3efc07283..c52070760 100644 --- a/src/models/security-requirements.ts +++ b/src/models/security-requirements.ts @@ -1,4 +1,4 @@ import type { Collection} from './collection'; import type { SecurityRequirementInterface } from './security-requirement'; -export interface SecurityRequirementsInterface extends Collection {} \ No newline at end of file +export type SecurityRequirementsInterface = Collection \ No newline at end of file diff --git a/src/models/security-schemes.ts b/src/models/security-schemes.ts index 637acd74d..283216648 100644 --- a/src/models/security-schemes.ts +++ b/src/models/security-schemes.ts @@ -1,4 +1,4 @@ import type { Collection} from './collection'; import type { SecuritySchemeInterface } from './security-scheme'; -export interface SecuritySchemesInterface extends Collection {} +export type SecuritySchemesInterface = Collection diff --git a/src/models/server-variables.ts b/src/models/server-variables.ts index 3438381c1..ae4499749 100644 --- a/src/models/server-variables.ts +++ b/src/models/server-variables.ts @@ -1,4 +1,4 @@ import type { Collection } from './collection'; import type { ServerVariableInterface } from './server-variable'; -export interface ServerVariablesInterface extends Collection { } \ No newline at end of file +export type ServerVariablesInterface = Collection \ No newline at end of file diff --git a/src/models/server.ts b/src/models/server.ts index ccec3391a..5e4b1b76e 100644 --- a/src/models/server.ts +++ b/src/models/server.ts @@ -1,10 +1,10 @@ -import type { BaseModel } from "./base"; -import type { ChannelsInterface } from './channels' -import type { MessagesInterface } from './messages' +import type { BaseModel } from './base'; +import type { ChannelsInterface } from './channels'; +import type { MessagesInterface } from './messages'; import type { BindingsMixinInterface, DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; -import type { OperationsInterface } from './operations' -import type { ServerVariablesInterface } from "./server-variables"; -import type { SecurityRequirementsInterface } from "./security-requirements"; +import type { OperationsInterface } from './operations'; +import type { ServerVariablesInterface } from './server-variables'; +import type { SecurityRequirementsInterface } from './security-requirements'; export interface ServerInterface extends BaseModel, DescriptionMixinInterface, BindingsMixinInterface, ExtensionsMixinInterface { id(): string diff --git a/src/models/servers.ts b/src/models/servers.ts index 0a51ce2d7..8483ef759 100644 --- a/src/models/servers.ts +++ b/src/models/servers.ts @@ -1,5 +1,5 @@ -import type { Collection } from "./collection"; -import type { ServerInterface } from "./server"; +import type { Collection } from './collection'; +import type { ServerInterface } from './server'; export interface ServersInterface extends Collection { filterBySend(): ServerInterface[]; diff --git a/src/models/tag.ts b/src/models/tag.ts index 32bd1fcea..87fc5b2ab 100644 --- a/src/models/tag.ts +++ b/src/models/tag.ts @@ -1,5 +1,5 @@ -import type { BaseModel } from "./base"; -import type { DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface } from './mixins' +import type { BaseModel } from './base'; +import type { DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface } from './mixins'; export interface TagInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface, ExternalDocumentationMixinInterface { diff --git a/src/models/tags.ts b/src/models/tags.ts index ceaa5df2b..368812652 100644 --- a/src/models/tags.ts +++ b/src/models/tags.ts @@ -1,4 +1,4 @@ import type { Collection } from './collection'; import type { TagInterface } from './tag'; -export interface TagsInterface extends Collection {} \ No newline at end of file +export type TagsInterface = Collection \ No newline at end of file diff --git a/src/models/utils.ts b/src/models/utils.ts index 73c8ed97e..298a4dde0 100644 --- a/src/models/utils.ts +++ b/src/models/utils.ts @@ -6,7 +6,8 @@ export interface Constructor extends Function { } export type InferModelData = T extends BaseModel ? J : never; -export type InferModelMetadata = T extends BaseModel ? M : never; +// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars +export type InferModelMetadata = T extends BaseModel ? M : never; export function createModel(Model: Constructor, value: InferModelData, meta: Omit & { asyncapi?: DetailedAsyncAPI } & InferModelMetadata, parent?: BaseModel): T { return new Model(value, { ...meta, asyncapi: meta.asyncapi || parent?.meta().asyncapi }); diff --git a/src/models/v2/asyncapi.ts b/src/models/v2/asyncapi.ts index 76bef6b27..1e53b4894 100644 --- a/src/models/v2/asyncapi.ts +++ b/src/models/v2/asyncapi.ts @@ -1,34 +1,34 @@ -import { BaseModel } from "../base"; -import { Info } from "./info"; -import { Channels } from "./channels"; -import { Channel } from "./channel"; -import { Components } from "./components"; -import { Messages } from "./messages"; -import { Operations } from "./operations"; -import { Servers } from "./servers"; -import { Server } from "./server"; -import { SecuritySchemes } from "./security-schemes"; -import { SecurityScheme } from "./security-scheme"; -import { Schemas } from "./schemas"; +import { BaseModel } from '../base'; +import { Info } from './info'; +import { Channels } from './channels'; +import { Channel } from './channel'; +import { Components } from './components'; +import { Messages } from './messages'; +import { Operations } from './operations'; +import { Servers } from './servers'; +import { Server } from './server'; +import { SecuritySchemes } from './security-schemes'; +import { SecurityScheme } from './security-scheme'; +import { Schemas } from './schemas'; import { extensions } from './mixins'; import { tilde } from '../../utils'; -import type { AsyncAPIDocumentInterface } from "../asyncapi"; -import type { InfoInterface } from "../info"; -import type { ServersInterface } from "../servers"; -import type { ChannelsInterface } from "../channels"; -import type { ComponentsInterface } from "../components"; -import type { OperationsInterface } from "../operations"; -import type { OperationInterface } from "../operation"; -import type { MessagesInterface } from "../messages"; -import type { MessageInterface } from "../message"; -import type { SchemasInterface } from "../schemas"; -import type { SecuritySchemesInterface } from "../security-schemes"; -import type { ExtensionsInterface } from "../extensions"; - -import type { v2 } from "../../spec-types"; +import type { AsyncAPIDocumentInterface } from '../asyncapi'; +import type { InfoInterface } from '../info'; +import type { ServersInterface } from '../servers'; +import type { ChannelsInterface } from '../channels'; +import type { ComponentsInterface } from '../components'; +import type { OperationsInterface } from '../operations'; +import type { OperationInterface } from '../operation'; +import type { MessagesInterface } from '../messages'; +import type { MessageInterface } from '../message'; +import type { SchemasInterface } from '../schemas'; +import type { SecuritySchemesInterface } from '../security-schemes'; +import type { ExtensionsInterface } from '../extensions'; + +import type { v2 } from '../../spec-types'; export class AsyncAPIDocument extends BaseModel implements AsyncAPIDocumentInterface { version(): string { diff --git a/src/models/v2/binding.ts b/src/models/v2/binding.ts index b313ace2f..b5afff40a 100644 --- a/src/models/v2/binding.ts +++ b/src/models/v2/binding.ts @@ -1,11 +1,11 @@ -import { BaseModel } from "../base"; +import { BaseModel } from '../base'; -import { extensions } from "./mixins"; +import { extensions } from './mixins'; -import type { BindingInterface } from "../binding"; -import type { ExtensionsInterface } from "../extensions"; +import type { BindingInterface } from '../binding'; +import type { ExtensionsInterface } from '../extensions'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export class Binding = Record> extends BaseModel implements BindingInterface { protocol(): string { diff --git a/src/models/v2/bindings.ts b/src/models/v2/bindings.ts index 7d7b4646a..931ec5de2 100644 --- a/src/models/v2/bindings.ts +++ b/src/models/v2/bindings.ts @@ -1,16 +1,16 @@ -import { Collection } from "../collection"; -import { Extensions } from "./extensions"; -import { Extension } from "./extension"; +import { Collection } from '../collection'; +import { Extensions } from './extensions'; +import { Extension } from './extension'; -import { createModel } from "../utils"; +import { createModel } from '../utils'; import { EXTENSION_REGEX } from '../../constants'; -import type { BindingsInterface } from "../bindings"; -import type { BindingInterface } from "../binding"; -import type { ExtensionsInterface } from "../extensions"; -import type { ExtensionInterface } from "../extension"; +import type { BindingsInterface } from '../bindings'; +import type { BindingInterface } from '../binding'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExtensionInterface } from '../extension'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export class Bindings extends Collection implements BindingsInterface { override get = Record>(name: string): BindingInterface | undefined { diff --git a/src/models/v2/channel-parameter.ts b/src/models/v2/channel-parameter.ts index e2a094c23..89038d618 100644 --- a/src/models/v2/channel-parameter.ts +++ b/src/models/v2/channel-parameter.ts @@ -1,13 +1,13 @@ -import { BaseModel } from "../base"; -import { Schema } from "./schema"; +import { BaseModel } from '../base'; +import { Schema } from './schema'; import { hasDescription, description, extensions } from './mixins'; -import type { ChannelParameterInterface } from "../channel-parameter"; -import type { SchemaInterface } from "../schema"; -import type { ExtensionsInterface } from "../extensions"; +import type { ChannelParameterInterface } from '../channel-parameter'; +import type { SchemaInterface } from '../schema'; +import type { ExtensionsInterface } from '../extensions'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export class ChannelParameter extends BaseModel implements ChannelParameterInterface { id(): string { diff --git a/src/models/v2/channel.ts b/src/models/v2/channel.ts index 14a2c0eb4..c2f42c7a9 100644 --- a/src/models/v2/channel.ts +++ b/src/models/v2/channel.ts @@ -1,4 +1,4 @@ -import { BaseModel } from "../base"; +import { BaseModel } from '../base'; import { ChannelParameters } from './channel-parameters'; import { ChannelParameter } from './channel-parameter'; import { Messages } from './messages'; @@ -9,18 +9,18 @@ import { Server } from './server'; import { bindings, hasDescription, description, extensions } from './mixins'; -import type { BindingsInterface } from "models/bindings"; -import type { ChannelInterface } from "../channel"; -import type { ChannelParametersInterface } from "../channel-parameters"; -import type { ExtensionsInterface } from "models/extensions"; -import type { MessagesInterface } from "../messages"; -import type { MessageInterface } from "../message"; -import type { OperationsInterface } from "../operations"; -import type { OperationAction, OperationInterface } from "../operation"; -import type { ServersInterface } from "../servers"; -import type { ServerInterface } from "../server"; +import type { BindingsInterface } from 'models/bindings'; +import type { ChannelInterface } from '../channel'; +import type { ChannelParametersInterface } from '../channel-parameters'; +import type { ExtensionsInterface } from 'models/extensions'; +import type { MessagesInterface } from '../messages'; +import type { MessageInterface } from '../message'; +import type { OperationsInterface } from '../operations'; +import type { OperationAction, OperationInterface } from '../operation'; +import type { ServersInterface } from '../servers'; +import type { ServerInterface } from '../server'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export class Channel extends BaseModel implements ChannelInterface { id(): string { @@ -53,10 +53,12 @@ export class Channel extends BaseModel { - const id = this._json[operationAction as 'publish' | 'subscribe'] && (this._json[operationAction as 'publish' | 'subscribe'] as v2.OperationObject).operationId || this.meta().id + "_" + operationAction; - this._json[operationAction as 'publish' | 'subscribe'] && operations.push( - this.createModel(Operation, this._json[operationAction as 'publish' | 'subscribe'] as v2.OperationObject, { id, action: operationAction as OperationAction, pointer: `${this._meta.pointer}/${operationAction}` }), - ); + const id = this._json[operationAction as 'publish' | 'subscribe'] && (this._json[operationAction as 'publish' | 'subscribe'] as v2.OperationObject).operationId || `${this.meta().id }_${ operationAction}`; + if (this._json[operationAction as 'publish' | 'subscribe']) { + operations.push( + this.createModel(Operation, this._json[operationAction as 'publish' | 'subscribe'] as v2.OperationObject, { id, action: operationAction as OperationAction, pointer: `${this._meta.pointer}/${operationAction}` }), + ); + } }); return new Operations(operations); } @@ -73,7 +75,7 @@ export class Channel extends BaseModel implements ComponentsInterface { servers(): ServersInterface { @@ -120,7 +120,7 @@ export class Components extends BaseModel implements Compon protected createCollection, T extends BaseModel>(itemsName: keyof v2.ComponentsObject, collectionModel: Constructor, itemModel: Constructor): M { const collectionItems: T[] = []; Object.entries(this._json[itemsName] || {}).forEach(([id, item]) => { - collectionItems.push(this.createModel(itemModel, item as any, { id, pointer: `/components/${itemsName}/${id}` } as any)) + collectionItems.push(this.createModel(itemModel, item as any, { id, pointer: `/components/${itemsName}/${id}` } as any)); }); return new collectionModel(collectionItems); } diff --git a/src/models/v2/contact.ts b/src/models/v2/contact.ts index dee4427ae..b50cbd806 100644 --- a/src/models/v2/contact.ts +++ b/src/models/v2/contact.ts @@ -1,11 +1,11 @@ -import { BaseModel } from "../base"; +import { BaseModel } from '../base'; import { extensions } from './mixins'; -import type { ContactInterface } from "../contact"; -import type { ExtensionsInterface } from "../extensions"; +import type { ContactInterface } from '../contact'; +import type { ExtensionsInterface } from '../extensions'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export class Contact extends BaseModel implements ContactInterface { hasName(): boolean { diff --git a/src/models/v2/correlation-id.ts b/src/models/v2/correlation-id.ts index 291bbd983..ab29354a0 100644 --- a/src/models/v2/correlation-id.ts +++ b/src/models/v2/correlation-id.ts @@ -1,11 +1,11 @@ -import { BaseModel } from "../base"; +import { BaseModel } from '../base'; import { hasDescription, description, extensions } from './mixins'; -import type { CorrelationIdInterface } from "../correlation-id"; -import type { ExtensionsInterface } from "../extensions"; +import type { CorrelationIdInterface } from '../correlation-id'; +import type { ExtensionsInterface } from '../extensions'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export class CorrelationId extends BaseModel implements CorrelationIdInterface { hasDescription(): boolean { diff --git a/src/models/v2/extension.ts b/src/models/v2/extension.ts index 38e974455..650d37714 100644 --- a/src/models/v2/extension.ts +++ b/src/models/v2/extension.ts @@ -1,8 +1,8 @@ -import { BaseModel } from "../base"; +import { BaseModel } from '../base'; -import type { ExtensionInterface } from "../extension"; +import type { ExtensionInterface } from '../extension'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export class Extension extends BaseModel, { name: string }> implements ExtensionInterface { name(): string { diff --git a/src/models/v2/extensions.ts b/src/models/v2/extensions.ts index fbfb13e1c..95a6836df 100644 --- a/src/models/v2/extensions.ts +++ b/src/models/v2/extensions.ts @@ -1,7 +1,7 @@ import { Collection } from '../collection'; -import type { ExtensionsInterface } from "../extensions"; -import type { ExtensionInterface } from "../extension"; +import type { ExtensionsInterface } from '../extensions'; +import type { ExtensionInterface } from '../extension'; export class Extensions extends Collection implements ExtensionsInterface { override get(name: string): ExtensionInterface | undefined { diff --git a/src/models/v2/external-docs.ts b/src/models/v2/external-docs.ts index f433f49f3..5c6e513e8 100644 --- a/src/models/v2/external-docs.ts +++ b/src/models/v2/external-docs.ts @@ -1,11 +1,11 @@ -import { BaseModel } from "../base"; +import { BaseModel } from '../base'; -import { hasDescription, description, extensions } from "./mixins"; +import { hasDescription, description, extensions } from './mixins'; import type { ExternalDocumentationInterface } from '../external-docs'; -import type { ExtensionsInterface } from "../extensions"; +import type { ExtensionsInterface } from '../extensions'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export class ExternalDocumentation extends BaseModel implements ExternalDocumentationInterface { url(): string { diff --git a/src/models/v2/info.ts b/src/models/v2/info.ts index 58cd2bbb3..5ca6dda00 100644 --- a/src/models/v2/info.ts +++ b/src/models/v2/info.ts @@ -1,20 +1,20 @@ -import { BaseModel } from "../base"; -import { Contact } from "./contact"; -import { ExternalDocumentation } from "./external-docs"; -import { License } from "./license"; -import { Tags } from "./tags"; -import { Tag } from "./tag"; +import { BaseModel } from '../base'; +import { Contact } from './contact'; +import { ExternalDocumentation } from './external-docs'; +import { License } from './license'; +import { Tags } from './tags'; +import { Tag } from './tag'; import { hasDescription, description, extensions } from './mixins'; -import type { ContactInterface } from "../contact"; -import type { InfoInterface } from "../info"; -import type { ExtensionsInterface } from "../extensions"; -import type { ExternalDocumentationInterface } from "../external-docs"; -import type { LicenseInterface } from "../license"; -import type { TagsInterface } from "../tags"; +import type { ContactInterface } from '../contact'; +import type { InfoInterface } from '../info'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { LicenseInterface } from '../license'; +import type { TagsInterface } from '../tags'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export class Info extends BaseModel implements InfoInterface { title(): string { @@ -64,19 +64,18 @@ export class Info extends BaseModel implements InfoInterface { license(): LicenseInterface | undefined { const license = this._json.license; - return license && this.createModel(License, license, { pointer: `/info/license` }); + return license && this.createModel(License, license, { pointer: '/info/license' }); } hasExternalDocs(): boolean { return Object.keys(this._meta.asyncapi.parsed.externalDocs || {}).length > 0; - }; + } externalDocs(): ExternalDocumentationInterface | undefined { if (this.hasExternalDocs()) { - return this.createModel(ExternalDocumentation, this._meta.asyncapi.parsed.externalDocs as v2.ExternalDocumentationObject, { pointer: `/externalDocs` }); + return this.createModel(ExternalDocumentation, this._meta.asyncapi.parsed.externalDocs as v2.ExternalDocumentationObject, { pointer: '/externalDocs' }); } - return; - }; + } tags(): TagsInterface { const tags = this._meta.asyncapi.parsed.tags || []; diff --git a/src/models/v2/license.ts b/src/models/v2/license.ts index fe1b6a946..d7cc26b99 100644 --- a/src/models/v2/license.ts +++ b/src/models/v2/license.ts @@ -1,11 +1,11 @@ -import { BaseModel } from "../base"; +import { BaseModel } from '../base'; import { extensions } from './mixins'; -import type { ExtensionsInterface } from "../extensions"; -import type { LicenseInterface } from "../license"; +import type { ExtensionsInterface } from '../extensions'; +import type { LicenseInterface } from '../license'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export class License extends BaseModel implements LicenseInterface { name(): string { diff --git a/src/models/v2/message-example.ts b/src/models/v2/message-example.ts index a24f69c8a..53d5fdeae 100644 --- a/src/models/v2/message-example.ts +++ b/src/models/v2/message-example.ts @@ -1,11 +1,11 @@ -import { BaseModel } from "../base"; +import { BaseModel } from '../base'; import { extensions } from './mixins'; -import type { ExtensionsInterface } from "../extensions"; -import type { MessageExampleInterface } from "../message-example"; +import type { ExtensionsInterface } from '../extensions'; +import type { MessageExampleInterface } from '../message-example'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export class MessageExample extends BaseModel implements MessageExampleInterface { hasName(): boolean { diff --git a/src/models/v2/message-trait.ts b/src/models/v2/message-trait.ts index 00f6bb799..50634fe0f 100644 --- a/src/models/v2/message-trait.ts +++ b/src/models/v2/message-trait.ts @@ -1,4 +1,4 @@ -import { BaseModel } from "../base"; +import { BaseModel } from '../base'; import { CorrelationId } from './correlation-id'; import { MessageExamples } from './message-examples'; import { MessageExample } from './message-example'; @@ -7,16 +7,16 @@ import { Schema } from './schema'; import { getDefaultSchemaFormat } from '../../schema-parser'; import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from './mixins'; -import type { BindingsInterface } from "../bindings"; -import type { CorrelationIdInterface } from "../correlation-id"; -import type { ExtensionsInterface } from "../extensions"; -import type { ExternalDocumentationInterface } from "../external-docs"; -import type { MessageExamplesInterface } from "../message-examples"; -import type { MessageTraitInterface } from "../message-trait"; -import type { SchemaInterface } from "../schema"; -import type { TagsInterface } from "../tags"; +import type { BindingsInterface } from '../bindings'; +import type { CorrelationIdInterface } from '../correlation-id'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { MessageExamplesInterface } from '../message-examples'; +import type { MessageTraitInterface } from '../message-trait'; +import type { SchemaInterface } from '../schema'; +import type { TagsInterface } from '../tags'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export class MessageTrait extends BaseModel implements MessageTraitInterface { id(): string { @@ -104,7 +104,7 @@ export class MessageTrait { - return this.createModel(MessageExample, example, { pointer: `${this._meta.pointer}/examples/${index}` }) + return this.createModel(MessageExample, example, { pointer: `${this._meta.pointer}/examples/${index}` }); }) ); } diff --git a/src/models/v2/message.ts b/src/models/v2/message.ts index dfbc6f0b6..ad87eeba3 100644 --- a/src/models/v2/message.ts +++ b/src/models/v2/message.ts @@ -1,24 +1,24 @@ import { Channels } from './channels'; import { Operations } from './operations'; import { Operation } from './operation'; -import { MessageTraits } from "./message-traits"; -import { MessageTrait } from "./message-trait"; +import { MessageTraits } from './message-traits'; +import { MessageTrait } from './message-trait'; import { Servers } from './servers'; import { Schema } from './schema'; import { tilde } from '../../utils'; -import type { ChannelsInterface } from "../channels"; -import type { ChannelInterface } from "../channel"; -import type { MessageInterface } from "../message"; -import type { MessageTraitsInterface } from "../message-traits"; -import type { OperationsInterface } from "../operations"; -import type { OperationAction, OperationInterface } from "../operation"; -import type { ServersInterface } from "../servers"; -import type { ServerInterface } from "../server"; -import type { SchemaInterface } from "../schema"; +import type { ChannelsInterface } from '../channels'; +import type { ChannelInterface } from '../channel'; +import type { MessageInterface } from '../message'; +import type { MessageTraitsInterface } from '../message-traits'; +import type { OperationsInterface } from '../operations'; +import type { OperationAction, OperationInterface } from '../operation'; +import type { ServersInterface } from '../servers'; +import type { ServerInterface } from '../server'; +import type { SchemaInterface } from '../schema'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export class Message extends MessageTrait implements MessageInterface { hasPayload(): boolean { @@ -39,7 +39,7 @@ export class Message extends MessageTrait implements MessageIn serversData.push(server.json()); servers.push(server); } - }) + }); }); return new Servers(servers); } @@ -53,7 +53,7 @@ export class Message extends MessageTrait implements MessageIn channelsData.push(channel.json()); channels.push(channel); } - }) + }); }); return new Channels(channels); } @@ -79,7 +79,7 @@ export class Message extends MessageTrait implements MessageIn traits(): MessageTraitsInterface { return new MessageTraits( (this._json.traits || []).map((trait: any, index: number) => { - return this.createModel(MessageTrait, trait, { id: '', pointer: `${this._meta.pointer}/traits/${index}` }) + return this.createModel(MessageTrait, trait, { id: '', pointer: `${this._meta.pointer}/traits/${index}` }); }) ); } diff --git a/src/models/v2/mixins.ts b/src/models/v2/mixins.ts index 3d084e4b6..645e34ddf 100644 --- a/src/models/v2/mixins.ts +++ b/src/models/v2/mixins.ts @@ -1,22 +1,22 @@ -import { Bindings } from "./bindings"; -import { Binding } from "./binding"; -import { Extensions } from "./extensions"; -import { Extension } from "./extension"; -import { ExternalDocumentation } from "./external-docs"; -import { Tags } from "./tags"; -import { Tag } from "./tag"; +import { Bindings } from './bindings'; +import { Binding } from './binding'; +import { Extensions } from './extensions'; +import { Extension } from './extension'; +import { ExternalDocumentation } from './external-docs'; +import { Tags } from './tags'; +import { Tag } from './tag'; -import { createModel } from "../utils"; +import { createModel } from '../utils'; import { EXTENSION_REGEX } from '../../constants'; -import type { BaseModel } from "../base"; -import type { BindingsInterface } from "../bindings"; -import type { ExtensionsInterface } from "../extensions"; -import type { ExtensionInterface } from "../extension"; -import type { ExternalDocumentationInterface } from "../external-docs"; -import type { TagsInterface } from "../tags"; +import type { BaseModel } from '../base'; +import type { BindingsInterface } from '../bindings'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExtensionInterface } from '../extension'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { TagsInterface } from '../tags'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export function bindings(model: BaseModel<{ bindings?: Record }>): BindingsInterface { const bindings = model.json('bindings') || {}; @@ -30,7 +30,7 @@ export function bindings(model: BaseModel<{ bindings?: Record }>): export function hasDescription(model: BaseModel<{ description?: string }>) { return Boolean(description(model)); -}; +} export function description(model: BaseModel<{ description?: string }>): string | undefined { return model.json('description'); @@ -46,18 +46,17 @@ export function extensions(model: BaseModel): Extens } }); return new Extensions(extensions); -}; +} export function hasExternalDocs(model: BaseModel<{ externalDocs?: v2.ExternalDocumentationObject }>): boolean { return Object.keys(model.json('externalDocs') || {}).length > 0; -}; +} export function externalDocs(model: BaseModel<{ externalDocs?: v2.ExternalDocumentationObject }>): ExternalDocumentationInterface | undefined { if (hasExternalDocs(model)) { return new ExternalDocumentation(model.json('externalDocs') as v2.ExternalDocumentationObject); } - return; -}; +} export function tags(model: BaseModel<{ tags?: v2.TagsObject }>): TagsInterface { return new Tags( diff --git a/src/models/v2/oauth-flow.ts b/src/models/v2/oauth-flow.ts index e994eb4f1..464d3dd7d 100644 --- a/src/models/v2/oauth-flow.ts +++ b/src/models/v2/oauth-flow.ts @@ -5,7 +5,7 @@ import { extensions } from './mixins'; import type { ExtensionsInterface } from '../extensions'; import type { OAuthFlowInterface } from '../oauth-flow'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export class OAuthFlow extends BaseModel implements OAuthFlowInterface { authorizationUrl(): string | undefined { diff --git a/src/models/v2/oauth-flows.ts b/src/models/v2/oauth-flows.ts index f8f579d33..f8fa6b117 100644 --- a/src/models/v2/oauth-flows.ts +++ b/src/models/v2/oauth-flows.ts @@ -7,7 +7,7 @@ import type { ExtensionsInterface } from '../extensions'; import type { OAuthFlowsInterface } from '../oauth-flows'; import type { OAuthFlowInterface } from '../oauth-flow'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export class OAuthFlows extends BaseModel implements OAuthFlowsInterface { hasAuthorizationCode(): boolean { diff --git a/src/models/v2/operation-trait.ts b/src/models/v2/operation-trait.ts index 75f0c607a..98a4ca631 100644 --- a/src/models/v2/operation-trait.ts +++ b/src/models/v2/operation-trait.ts @@ -1,18 +1,18 @@ -import { BaseModel } from "../base"; +import { BaseModel } from '../base'; import { SecurityScheme } from './security-scheme'; import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from './mixins'; -import type { BindingsInterface } from "../bindings"; -import type { ExtensionsInterface } from "../extensions"; -import type { ExternalDocumentationInterface } from "../external-docs"; -import type { OperationAction } from "../operation"; -import type { OperationTraitInterface } from "../operation-trait"; -import type { TagsInterface } from "../tags"; +import type { BindingsInterface } from '../bindings'; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { OperationAction } from '../operation'; +import type { OperationTraitInterface } from '../operation-trait'; +import type { TagsInterface } from '../tags'; -import type { v2 } from "../../spec-types"; -import { SecurityRequirements } from "./security-requirements"; -import { SecurityRequirement } from "./security-requirement"; +import type { v2 } from '../../spec-types'; +import { SecurityRequirements } from './security-requirements'; +import { SecurityRequirement } from './security-requirement'; export class OperationTrait extends BaseModel implements OperationTraitInterface { id(): string { @@ -70,11 +70,11 @@ export class OperationTrait { const scheme = this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }); requirements.push( - this.createModel(SecurityRequirement, { scheme: scheme, scopes }, { id: security, pointer: `${this.meta().pointer}/security/${index}/${security}` }) + this.createModel(SecurityRequirement, { scheme, scopes }, { id: security, pointer: `${this.meta().pointer}/security/${index}/${security}` }) ); }); return new SecurityRequirements(requirements); - }) + }); } tags(): TagsInterface { diff --git a/src/models/v2/operation.ts b/src/models/v2/operation.ts index 267bb1962..84dcda87b 100644 --- a/src/models/v2/operation.ts +++ b/src/models/v2/operation.ts @@ -1,22 +1,22 @@ -import { Channels } from "./channels"; -import { Channel } from "./channel"; -import { Messages } from "./messages"; -import { Message } from "./message"; -import { OperationTraits } from "./operation-traits"; -import { OperationTrait } from "./operation-trait"; -import { Servers } from "./servers"; +import { Channels } from './channels'; +import { Channel } from './channel'; +import { Messages } from './messages'; +import { Message } from './message'; +import { OperationTraits } from './operation-traits'; +import { OperationTrait } from './operation-trait'; +import { Servers } from './servers'; -import { tilde } from "../../utils"; +import { tilde } from '../../utils'; -import type { ChannelsInterface } from "../channels"; -import type { ChannelInterface } from "../channel"; -import type { MessagesInterface } from "../messages"; -import type { OperationInterface } from "../operation"; -import type { OperationTraitsInterface } from "../operation-traits"; -import type { ServersInterface } from "../servers"; -import type { ServerInterface } from "../server"; +import type { ChannelsInterface } from '../channels'; +import type { ChannelInterface } from '../channel'; +import type { MessagesInterface } from '../messages'; +import type { OperationInterface } from '../operation'; +import type { OperationTraitsInterface } from '../operation-traits'; +import type { ServersInterface } from '../servers'; +import type { ServerInterface } from '../server'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export class Operation extends OperationTrait implements OperationInterface { servers(): ServersInterface { @@ -28,7 +28,7 @@ export class Operation extends OperationTrait implements Ope serversData.push(server.json()); servers.push(server); } - }) + }); }); return new Servers(servers); } @@ -59,7 +59,7 @@ export class Operation extends OperationTrait implements Ope return new Messages( messages.map((message: any, index: number) => { - return this.createModel(Message, message, { id: '', pointer: `${this._meta.pointer}/message${isOneOf ? `/oneOf/${index}` : ''}` }) + return this.createModel(Message, message, { id: '', pointer: `${this._meta.pointer}/message${isOneOf ? `/oneOf/${index}` : ''}` }); }) ); } @@ -67,7 +67,7 @@ export class Operation extends OperationTrait implements Ope traits(): OperationTraitsInterface { return new OperationTraits( (this._json.traits || []).map((trait: any, index: number) => { - return this.createModel(OperationTrait, trait, { id: '', pointer: `${this._meta.pointer}/traits/${index}`, action: '' as 'publish' | 'subscribe' }) + return this.createModel(OperationTrait, trait, { id: '', pointer: `${this._meta.pointer}/traits/${index}`, action: '' as 'publish' | 'subscribe' }); }) ); } diff --git a/src/models/v2/schema.ts b/src/models/v2/schema.ts index 98c837896..9d42fe3fd 100644 --- a/src/models/v2/schema.ts +++ b/src/models/v2/schema.ts @@ -1,12 +1,12 @@ -import { BaseModel } from "../base"; +import { BaseModel } from '../base'; import { extensions, hasExternalDocs, externalDocs } from './mixins'; -import type { ExtensionsInterface } from "../extensions"; -import type { ExternalDocumentationInterface } from "../external-docs"; -import type { SchemaInterface } from "../schema"; +import type { ExtensionsInterface } from '../extensions'; +import type { ExternalDocumentationInterface } from '../external-docs'; +import type { SchemaInterface } from '../schema'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export class Schema extends BaseModel implements SchemaInterface { uid(): string { diff --git a/src/models/v2/security-scheme.ts b/src/models/v2/security-scheme.ts index 2cd6c46c1..ea4ab5eb0 100644 --- a/src/models/v2/security-scheme.ts +++ b/src/models/v2/security-scheme.ts @@ -7,7 +7,7 @@ import type { ExtensionsInterface } from '../extensions'; import type { SecuritySchemaType, SecuritySchemeInterface } from '../security-scheme'; import type { OAuthFlowsInterface } from '../oauth-flows'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export class SecurityScheme extends BaseModel implements SecuritySchemeInterface { id(): string { @@ -35,11 +35,11 @@ export class SecurityScheme extends BaseModel implements ServerVariableInterface { id(): string { @@ -21,7 +21,7 @@ export class ServerVariable extends BaseModel implements ServerInterface { id(): string { @@ -69,7 +68,7 @@ export class Server extends BaseModel implement operations(): OperationsInterface { const operations: OperationInterface[] = []; this.channels().forEach(channel => { - operations.push(...channel.operations().all()) + operations.push(...channel.operations().all()); }); return new Operations(operations); } @@ -86,7 +85,7 @@ export class Server extends BaseModel implement return this.createModel(ServerVariable, serverVariable, { id: serverVariableName, pointer: `${this._meta.pointer}/variables/${serverVariableName}` - }) + }); }) ); } @@ -98,11 +97,11 @@ export class Server extends BaseModel implement Object.entries(requirement).forEach(([security, scopes]) => { const scheme = this.createModel(SecurityScheme, securitySchemes[security], { id: security, pointer: `/components/securitySchemes/${security}` }); requirements.push( - this.createModel(SecurityRequirement, { scheme: scheme, scopes }, { id: security, pointer: `${this.meta().pointer}/security/${index}/${security}` }) + this.createModel(SecurityRequirement, { scheme, scopes }, { id: security, pointer: `${this.meta().pointer}/security/${index}/${security}` }) ); }); return new SecurityRequirements(requirements); - }) + }); } bindings(): BindingsInterface { diff --git a/src/models/v2/tag.ts b/src/models/v2/tag.ts index 2a188cc7c..758043b05 100644 --- a/src/models/v2/tag.ts +++ b/src/models/v2/tag.ts @@ -1,12 +1,12 @@ -import { BaseModel } from "../base"; +import { BaseModel } from '../base'; -import { hasDescription, description, extensions, hasExternalDocs, externalDocs } from "./mixins"; +import { hasDescription, description, extensions, hasExternalDocs, externalDocs } from './mixins'; -import type { ExtensionsInterface } from "../extensions"; -import type{ ExternalDocumentationInterface } from "../external-docs"; -import type { TagInterface } from "../tag"; +import type { ExtensionsInterface } from '../extensions'; +import type{ ExternalDocumentationInterface } from '../external-docs'; +import type { TagInterface } from '../tag'; -import type { v2 } from "../../spec-types"; +import type { v2 } from '../../spec-types'; export class Tag extends BaseModel implements TagInterface { name(): string { diff --git a/src/models/v2/tags.ts b/src/models/v2/tags.ts index be1dd86d5..6048620ff 100644 --- a/src/models/v2/tags.ts +++ b/src/models/v2/tags.ts @@ -1,7 +1,7 @@ -import { Collection } from "../collection"; +import { Collection } from '../collection'; -import type { TagsInterface } from "../tags"; -import type { TagInterface } from "../tag"; +import type { TagsInterface } from '../tags'; +import type { TagInterface } from '../tag'; export class Tags extends Collection implements TagsInterface { override get(name: string): TagInterface | undefined { diff --git a/src/models/v3/asyncapi.ts b/src/models/v3/asyncapi.ts index 5b423e425..f26a22e98 100644 --- a/src/models/v3/asyncapi.ts +++ b/src/models/v3/asyncapi.ts @@ -1,4 +1,4 @@ -import { BaseModel } from "../base"; +import { BaseModel } from '../base'; export class AsyncAPIDocument extends BaseModel { version(): string { diff --git a/src/old-api/asyncapi.ts b/src/old-api/asyncapi.ts index b12f18dbb..c1bdf59b6 100644 --- a/src/old-api/asyncapi.ts +++ b/src/old-api/asyncapi.ts @@ -139,9 +139,7 @@ export class AsyncAPIDocument extends SpecificationExtensionsModel { - const schemas = new Map(); - - return schemas; + return new Map(); } hasCircular() { diff --git a/src/old-api/info.ts b/src/old-api/info.ts index 3a4fa1d23..d4f60464d 100644 --- a/src/old-api/info.ts +++ b/src/old-api/info.ts @@ -5,7 +5,7 @@ import { SpecificationExtensionsModel, description, hasDescription } from './mix import type { v2 } from '../spec-types'; export class Info extends SpecificationExtensionsModel { - title() { + title() { return this._json.title; } diff --git a/src/old-api/mixins.ts b/src/old-api/mixins.ts index 6c5c19682..69f41a621 100644 --- a/src/old-api/mixins.ts +++ b/src/old-api/mixins.ts @@ -15,7 +15,7 @@ export abstract class SpecificationExtensionsModel { if (EXTENSION_REGEX.test(key)) { - result[key as `x-`] = value; + result[key as 'x-'] = value; } }); return result; @@ -54,7 +54,7 @@ export abstract class SpecificationExtensionsModel) { return Boolean(model.json('description')); -}; +} export function description(model: Base<{ description?: string }>): string | undefined { return model.json('description'); @@ -62,14 +62,13 @@ export function description(model: Base<{ description?: string }>): string | und export function hasExternalDocs(model: Base<{ externalDocs?: v2.ExternalDocumentationObject }>): boolean { return Object.keys(model.json('externalDocs') || {}).length > 0; -}; +} export function externalDocs(model: Base<{ externalDocs?: v2.ExternalDocumentationObject }>): ExternalDocs | undefined { if (hasExternalDocs(model)) { return new ExternalDocs(model.json('externalDocs') as v2.ExternalDocumentationObject); } - return; -}; +} export const bindingsMixins = { hasBindings(model: Base<{ bindings?: Record }>) { @@ -91,7 +90,7 @@ export const bindingsMixins = { binding(model: Base<{ bindings?: Record }>, name: string) { return getMapValue(model.json('bindings'), name); }, -} +}; export const tagsMixins = { hasTags(model: Base<{ tags?: Array }>): boolean { @@ -116,12 +115,13 @@ export const tagsMixins = { const tg = (model.json('tags') || []).find(t => t.name === name); return tg ? new Tag(tg) : null; }, -} +}; interface Constructor extends Function { new (...any: any[]): T; } type InferModelData = T extends Base ? J : never; +// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars type InferModelMetadata = T extends Base ? M : never; export function getMapValue, K extends keyof T>(obj: T | undefined, key: K): T[K] | null; @@ -131,7 +131,7 @@ export function getMapValue(obj: Record(obj: Record> | undefined, Type: Constructor, meta?: InferModelMetadata): Record { const result: Record = {}; @@ -142,4 +142,4 @@ export function createMapOfType(obj: Record { } hasMultipleMessages() { - const message = this._json.message as v2.MessageObject | { oneOf: v2.MessageObject[] } + const message = this._json.message as v2.MessageObject | { oneOf: v2.MessageObject[] }; + // eslint-disable-next-line sonarjs/prefer-single-boolean-return if (message && (message as { oneOf: v2.MessageObject[] }).oneOf && (message as { oneOf: v2.MessageObject[] }).oneOf.length > 1) return true; return false; } messages() { - const message = this._json.message as { oneOf: v2.MessageObject[] } + const message = this._json.message as { oneOf: v2.MessageObject[] }; if (!message) return []; if (message.oneOf) return message.oneOf.map(m => new Message(m)); return [new Message(message)]; } message(index?: number | string) { - const message = this._json.message as v2.MessageObject | { oneOf: v2.MessageObject[] } + const message = this._json.message as v2.MessageObject | { oneOf: v2.MessageObject[] }; if (!message) return null; if ((message as { oneOf: v2.MessageObject[] }).oneOf && (message as { oneOf: v2.MessageObject[] }).oneOf.length === 1) return new Message((message as { oneOf: v2.MessageObject[] }).oneOf[0]); if (!(message as { oneOf: v2.MessageObject[] }).oneOf) return new Message(message); diff --git a/src/old-api/schema.ts b/src/old-api/schema.ts index dc3711ddd..cfc55fc25 100644 --- a/src/old-api/schema.ts +++ b/src/old-api/schema.ts @@ -236,7 +236,7 @@ export class Schema extends SpecificationExtensionsModel { - let maybeDocument = toAsyncAPIDocument(asyncapi); + const maybeDocument = toAsyncAPIDocument(asyncapi); if (maybeDocument) { return { source: asyncapi, @@ -59,9 +59,9 @@ export async function parse(parser: Parser, asyncapi: ParseInput, options?: Pars parsed: parsedDoc, diagnostics, }; - } catch(err) { + } catch (err: any) { // TODO: throw proper error - throw err; + throw new Error(err.message); } } diff --git a/src/parser.ts b/src/parser.ts index 5681e5047..5d7ad13af 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -1,14 +1,14 @@ -import { Spectral } from "@stoplight/spectral-core"; +import { Spectral } from '@stoplight/spectral-core'; -import { parse } from "./parse"; -import { lint, validate } from "./lint"; +import { parse } from './parse'; +import { lint, validate } from './lint'; import { registerSchemaParser } from './schema-parser'; -import { AsyncAPISchemaParser } from "./schema-parser/asyncapi-schema-parser"; -import { configureSpectral } from "./spectral"; +import { AsyncAPISchemaParser } from './schema-parser/asyncapi-schema-parser'; +import { configureSpectral } from './spectral'; -import type { IConstructorOpts } from "@stoplight/spectral-core"; -import type { ParseInput, ParseOptions } from "./parse"; -import type { LintOptions, ValidateOptions } from "./lint"; +import type { IConstructorOpts } from '@stoplight/spectral-core'; +import type { ParseInput, ParseOptions } from './parse'; +import type { LintOptions, ValidateOptions } from './lint'; import type { SchemaParser } from './schema-parser'; export interface ParserOptions { diff --git a/src/schema-parser/asyncapi-schema-parser.ts b/src/schema-parser/asyncapi-schema-parser.ts index 43d360656..81b12c5b6 100644 --- a/src/schema-parser/asyncapi-schema-parser.ts +++ b/src/schema-parser/asyncapi-schema-parser.ts @@ -1,13 +1,13 @@ -import Ajv from "ajv"; +import Ajv from 'ajv'; // @ts-ignore import specs from '@asyncapi/specs'; import { specVersions } from '../constants'; -import type { ErrorObject, ValidateFunction } from "ajv"; +import type { ErrorObject, ValidateFunction } from 'ajv'; import type { AsyncAPISchema, SchemaValidateResult } from '../types'; -import type { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from "../schema-parser"; -import type { v2 } from "../spec-types"; +import type { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from '../schema-parser'; +import type { v2 } from '../spec-types'; const ajv = new Ajv({ allErrors: true, @@ -20,14 +20,14 @@ export function AsyncAPISchemaParser(): SchemaParser { validate, parse, getMimeTypes, - } + }; } async function validate(input: ValidateSchemaInput): Promise { - const version = input.asyncapi.semver.version + const version = input.asyncapi.semver.version; const validator = getSchemaValidator(version); - let result: SchemaValidateResult[] = [] + let result: SchemaValidateResult[] = []; const valid = validator(input.data); if (!valid && validator.errors) { result = ajvToSpectralResult([...validator.errors]); @@ -86,7 +86,7 @@ function preparePayloadSchema(asyncapiSchema: v2.AsyncAPISchemaDefinition, versi const payloadSchema = `http://asyncapi.com/definitions/${version}/schema.json`; const definitions = asyncapiSchema.definitions; if (definitions === undefined) { - throw new Error("AsyncAPI schema must contain definitions"); + throw new Error('AsyncAPI schema must contain definitions'); } // Remove the meta schemas because they are already present within Ajv, and it's not possible to add duplicated schemas. diff --git a/src/schema-parser/avro-schema-parser.ts b/src/schema-parser/avro-schema-parser.ts index 67a687f01..15c821857 100644 --- a/src/schema-parser/avro-schema-parser.ts +++ b/src/schema-parser/avro-schema-parser.ts @@ -1,8 +1,8 @@ -import avsc from "avsc"; +import avsc from 'avsc'; -import type { JSONSchema7TypeName } from "json-schema"; -import type { Schema } from "avsc"; -import type { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from "../schema-parser"; +import type { JSONSchema7TypeName } from 'json-schema'; +import type { Schema } from 'avsc'; +import type { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from '../schema-parser'; import type { AsyncAPISchema, SchemaValidateResult } from '../types'; import type { v2 } from '../spec-types'; @@ -14,11 +14,11 @@ export function AvroSchemaParser(): SchemaParser { validate, parse, getMimeTypes, - } + }; } async function validate(input: ValidateSchemaInput): Promise { - let result: SchemaValidateResult[] = [] + const result: SchemaValidateResult[] = []; try { validateAvroSchema(input.data as AvroSchema); @@ -39,7 +39,7 @@ async function parse(input: ParseSchemaInput): Promise): Promise { - const validator = ajv.getSchema("openapi") as ValidateFunction; + const validator = ajv.getSchema('openapi') as ValidateFunction; - let result: SchemaValidateResult[] = [] + let result: SchemaValidateResult[] = []; const valid = validator(input.data); if (!valid && validator.errors) { result = ajvToSpectralResult([...validator.errors]); diff --git a/src/schema-parser/openapi/schema_v3.ts b/src/schema-parser/openapi/schema_v3.ts index da1b3fc8e..3689984c5 100644 --- a/src/schema-parser/openapi/schema_v3.ts +++ b/src/schema-parser/openapi/schema_v3.ts @@ -1,274 +1,275 @@ +/* eslint-disable */ // From https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json export const schemaV3 ={ - "type": "object", - "definitions": { - "Reference": { - "type": "object", - "required": ["$ref"], - "patternProperties": { - "^\\$ref$": { - "type": "string", - "format": "uri-reference" + type: 'object', + definitions: { + Reference: { + type: 'object', + required: ['$ref'], + patternProperties: { + '^\\$ref$': { + type: 'string', + format: 'uri-reference' } } }, - "Discriminator": { - "type": "object", - "required": ["propertyName"], - "properties": { - "propertyName": { - "type": "string" + Discriminator: { + type: 'object', + required: ['propertyName'], + properties: { + propertyName: { + type: 'string' }, - "mapping": { - "type": "object", - "additionalProperties": { - "type": "string" + mapping: { + type: 'object', + additionalProperties: { + type: 'string' } } } }, - "ExternalDocumentation": { - "type": "object", - "required": ["url"], - "properties": { - "description": { - "type": "string" + ExternalDocumentation: { + type: 'object', + required: ['url'], + properties: { + description: { + type: 'string' }, - "url": { - "type": "string", - "format": "uri-reference" + url: { + type: 'string', + format: 'uri-reference' } }, - "patternProperties": { - "^x-": {} + patternProperties: { + '^x-': {} }, - "additionalProperties": false + additionalProperties: false }, - "XML": { - "type": "object", - "properties": { - "name": { - "type": "string" + XML: { + type: 'object', + properties: { + name: { + type: 'string' }, - "namespace": { - "type": "string", - "format": "uri" + namespace: { + type: 'string', + format: 'uri' }, - "prefix": { - "type": "string" + prefix: { + type: 'string' }, - "attribute": { - "type": "boolean", - "default": false + attribute: { + type: 'boolean', + default: false }, - "wrapped": { - "type": "boolean", - "default": false + wrapped: { + type: 'boolean', + default: false } }, - "patternProperties": { - "^x-": {} + patternProperties: { + '^x-': {} }, - "additionalProperties": false + additionalProperties: false } }, - "properties": { - "title": { - "type": "string" - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "boolean", - "default": false - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "boolean", - "default": false - }, - "maxLength": { - "type": "integer", - "minimum": 0 - }, - "minLength": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": { - "type": "integer", - "minimum": 0 - }, - "minItems": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxProperties": { - "type": "integer", - "minimum": 0 - }, - "minProperties": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "required": { - "type": "array", - "items": { - "type": "string" + properties: { + title: { + type: 'string' + }, + multipleOf: { + type: 'number', + exclusiveMinimum: 0 + }, + maximum: { + type: 'number' + }, + exclusiveMaximum: { + type: 'boolean', + default: false + }, + minimum: { + type: 'number' + }, + exclusiveMinimum: { + type: 'boolean', + default: false + }, + maxLength: { + type: 'integer', + minimum: 0 + }, + minLength: { + type: 'integer', + minimum: 0, + default: 0 + }, + pattern: { + type: 'string', + format: 'regex' + }, + maxItems: { + type: 'integer', + minimum: 0 + }, + minItems: { + type: 'integer', + minimum: 0, + default: 0 + }, + uniqueItems: { + type: 'boolean', + default: false + }, + maxProperties: { + type: 'integer', + minimum: 0 + }, + minProperties: { + type: 'integer', + minimum: 0, + default: 0 + }, + required: { + type: 'array', + items: { + type: 'string' }, - "minItems": 1, - "uniqueItems": true + minItems: 1, + uniqueItems: true }, - "enum": { - "type": "array", - "items": {}, - "minItems": 1, - "uniqueItems": false + enum: { + type: 'array', + items: {}, + minItems: 1, + uniqueItems: false }, - "type": { - "type": "string", - "enum": ["array", "boolean", "integer", "number", "object", "string"] + type: { + type: 'string', + enum: ['array', 'boolean', 'integer', 'number', 'object', 'string'] }, - "not": { - "oneOf": [ + not: { + oneOf: [ { - "$ref": "#" + $ref: '#' }, { - "$ref": "#/definitions/Reference" + $ref: '#/definitions/Reference' } ] }, - "allOf": { - "type": "array", - "items": { - "oneOf": [ + allOf: { + type: 'array', + items: { + oneOf: [ { - "$ref": "#" + $ref: '#' }, { - "$ref": "#/definitions/Reference" + $ref: '#/definitions/Reference' } ] } }, - "oneOf": { - "type": "array", - "items": { - "oneOf": [ + oneOf: { + type: 'array', + items: { + oneOf: [ { - "$ref": "#" + $ref: '#' }, { - "$ref": "#/definitions/Reference" + $ref: '#/definitions/Reference' } ] } }, - "anyOf": { - "type": "array", - "items": { - "oneOf": [ + anyOf: { + type: 'array', + items: { + oneOf: [ { - "$ref": "#" + $ref: '#' }, { - "$ref": "#/definitions/Reference" + $ref: '#/definitions/Reference' } ] } }, - "items": { - "oneOf": [ + items: { + oneOf: [ { - "$ref": "#" + $ref: '#' }, { - "$ref": "#/definitions/Reference" + $ref: '#/definitions/Reference' } ] }, - "properties": { - "type": "object", - "additionalProperties": { - "oneOf": [ + properties: { + type: 'object', + additionalProperties: { + oneOf: [ { - "$ref": "#" + $ref: '#' }, { - "$ref": "#/definitions/Reference" + $ref: '#/definitions/Reference' } ] } }, - "additionalProperties": { - "oneOf": [ + additionalProperties: { + oneOf: [ { - "$ref": "#" + $ref: '#' }, { - "$ref": "#/definitions/Reference" + $ref: '#/definitions/Reference' }, { - "type": "boolean" + type: 'boolean' } ], - "default": true + default: true }, - "description": { - "type": "string" + description: { + type: 'string' }, - "format": { - "type": "string" + format: { + type: 'string' }, - "default": {}, - "nullable": { - "type": "boolean", - "default": false + default: {}, + nullable: { + type: 'boolean', + default: false }, - "discriminator": { - "$ref": "#/definitions/Discriminator" + discriminator: { + $ref: '#/definitions/Discriminator' }, - "readOnly": { - "type": "boolean", - "default": false + readOnly: { + type: 'boolean', + default: false }, - "writeOnly": { - "type": "boolean", - "default": false + writeOnly: { + type: 'boolean', + default: false }, - "example": {}, - "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" + example: {}, + externalDocs: { + $ref: '#/definitions/ExternalDocumentation' }, - "deprecated": { - "type": "boolean", - "default": false + deprecated: { + type: 'boolean', + default: false }, - "xml": { - "$ref": "#/definitions/XML" + xml: { + $ref: '#/definitions/XML' } }, - "patternProperties": { - "^x-": {} + patternProperties: { + '^x-': {} }, - "additionalProperties": false -} \ No newline at end of file + additionalProperties: false +}; \ No newline at end of file diff --git a/src/schema-parser/raml-schema-parser.ts b/src/schema-parser/raml-schema-parser.ts index 84610a069..62b5b835b 100644 --- a/src/schema-parser/raml-schema-parser.ts +++ b/src/schema-parser/raml-schema-parser.ts @@ -1,10 +1,12 @@ import yaml from 'js-yaml'; -import * as lib from "webapi-parser"; +import * as lib from 'webapi-parser'; +/* eslint-disable */ const wap = lib.WebApiParser; const r2j = require('ramldt2jsonschema'); +/* eslint-enable */ -import type { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from "../schema-parser"; +import type { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from '../schema-parser'; import type { AsyncAPISchema, SchemaValidateResult } from '../types'; export function RamlSchemaParser(): SchemaParser { @@ -12,7 +14,7 @@ export function RamlSchemaParser(): SchemaParser { validate, parse, getMimeTypes, - } + }; } async function parse(input: ParseSchemaInput): Promise { @@ -38,7 +40,7 @@ async function validate(input: ValidateSchemaInput): Promise { validateResult.push({ message: result.message, diff --git a/src/schema-parser/spectral-rule-v2.ts b/src/schema-parser/spectral-rule-v2.ts index a22d0a157..f7bb49d30 100644 --- a/src/schema-parser/spectral-rule-v2.ts +++ b/src/schema-parser/spectral-rule-v2.ts @@ -4,7 +4,7 @@ import { aas2_0, aas2_1, aas2_2, aas2_3, aas2_4 } from '@stoplight/spectral-form import { validateSchema, getSchemaFormat, getDefaultSchemaFormat } from './index'; import { createDetailedAsyncAPI } from '../utils'; -import type { RuleDefinition } from "@stoplight/spectral-core"; +import type { RuleDefinition } from '@stoplight/spectral-core'; import type { Parser } from '../parser'; import type { ValidateSchemaInput } from './index'; import type { SchemaValidateResult } from '../types'; @@ -30,7 +30,7 @@ export function asyncApi2SchemaParserRule(parser: Parser): RuleDefinition { then: { function: rulesetFunction(parser), }, - } + }; } function rulesetFunction(parser: Parser) { @@ -47,7 +47,7 @@ function rulesetFunction(parser: Parser) { }, options: null }, - async function asyncApi2CustomSchema(targetVal = {}, _, ctx) { + async (targetVal = {}, _, ctx) => { if (!targetVal.payload) { return []; } @@ -66,12 +66,12 @@ function rulesetFunction(parser: Parser) { path, schemaFormat, defaultSchemaFormat, - } + }; let result: SchemaValidateResult[] | void; try { result = await validateSchema(parser, input); - } catch(err: any) { + } catch (err: any) { if (err instanceof Error) { if (err.message === 'Unknown schema format') { path.pop(); // remove 'payload' as last element of path @@ -82,14 +82,13 @@ function rulesetFunction(parser: Parser) { path, } ] as SchemaValidateResult[]; - } else { - return [ - { - message: `Error thrown during schema validation, name: ${err.name}, message: ${err.message}, stack: ${err.stack}`, - path, - } - ] as SchemaValidateResult[]; - } + } + return [ + { + message: `Error thrown during schema validation, name: ${err.name}, message: ${err.message}, stack: ${err.stack}`, + path, + } + ] as SchemaValidateResult[]; } } @@ -98,5 +97,5 @@ function rulesetFunction(parser: Parser) { path: r.path ? [...path, ...r.path] : path, })); } - ) + ); } diff --git a/src/spec-types/v2.ts b/src/spec-types/v2.ts index 63284a05d..ec255955f 100644 --- a/src/spec-types/v2.ts +++ b/src/spec-types/v2.ts @@ -1,4 +1,4 @@ -import type { JSONSchema7Version, JSONSchema7TypeName, JSONSchema7Type } from "json-schema"; +import type { JSONSchema7Version, JSONSchema7TypeName, JSONSchema7Type } from 'json-schema'; export type AsyncAPIVersion = string; export type Identifier = string; diff --git a/src/spectral.ts b/src/spectral.ts index a9d231a0d..3a9ab7ce4 100644 --- a/src/spectral.ts +++ b/src/spectral.ts @@ -1,13 +1,13 @@ import { createRulesetFunction } from '@stoplight/spectral-core'; -import { asyncapi as aasRuleset } from "@stoplight/spectral-rulesets"; +import { asyncapi as aasRuleset } from '@stoplight/spectral-rulesets'; import { asyncApi2SchemaParserRule } from './schema-parser/spectral-rule-v2'; import { specVersions } from './constants'; import { isObject } from './utils'; -import type { RuleDefinition, RulesetDefinition } from "@stoplight/spectral-core"; -import type { Parser } from "./parser"; -import type { MaybeAsyncAPI } from "./types"; +import type { RuleDefinition, RulesetDefinition } from '@stoplight/spectral-core'; +import type { Parser } from './parser'; +import type { MaybeAsyncAPI } from './types'; export function configureSpectral(parser: Parser) { const ruleset = configureRuleset(parser); @@ -31,7 +31,7 @@ function configureRuleset(parser: Parser): RulesetDefinition { function asyncApi2IsAsyncApi(): RuleDefinition { return { description: 'The input must be a document with a supported version of AsyncAPI.', - formats: [(_: unknown) => true], // run rule for all inputs + formats: [() => true], // run rule for all inputs message: '{{error}}', severity: 'error', type: 'validation', @@ -43,7 +43,7 @@ function asyncApi2IsAsyncApi(): RuleDefinition { input: null, options: null, }, - function asyncApi2IsAsyncAPI(targetVal) { + (targetVal) => { if (!isObject(targetVal) || typeof targetVal.asyncapi !== 'string') { return [ { @@ -62,5 +62,5 @@ function asyncApi2IsAsyncApi(): RuleDefinition { } ), }, - } + }; } \ No newline at end of file diff --git a/src/stringify.ts b/src/stringify.ts index 802c95890..556400d9c 100644 --- a/src/stringify.ts +++ b/src/stringify.ts @@ -16,7 +16,6 @@ export function stringify(document: unknown, options: StringifyOptions = {}): st if (isStringifiedDocument(document)) { return JSON.stringify(document); } - document = document; } else { return; } @@ -32,7 +31,7 @@ export function unstringify(document: unknown): AsyncAPIDocumentInterface | unde if (typeof document === 'string') { try { parsed = JSON.parse(document); - } catch(_) { + } catch (_) { return; } } @@ -47,7 +46,7 @@ export function unstringify(document: unknown): AsyncAPIDocumentInterface | unde delete (>parsed)[String(xParserSpecStringified)]; traverseStringifiedDoc(document, undefined, document, new Map(), new Map()); - return newAsyncAPIDocument(createDetailedAsyncAPI(document as string, parsed as DetailedAsyncAPI['parsed'] )); + return newAsyncAPIDocument(createDetailedAsyncAPI(document as string, parsed as DetailedAsyncAPI['parsed'])); } function refReplacer() { diff --git a/src/types.ts b/src/types.ts index b01afda1e..a12e45e3c 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,5 +1,5 @@ import type { ISpectralDiagnostic, IFunctionResult } from '@stoplight/spectral-core'; -import type { v2 } from "./spec-types"; +import type { v2 } from './spec-types'; export type MaybeAsyncAPI = { asyncapi: string } & Record; export interface AsyncAPISemver { diff --git a/src/utils.ts b/src/utils.ts index 6679eb994..1df9b86ca 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -46,7 +46,7 @@ export function createDetailedAsyncAPI(source: string | Record, source, parsed, semver: getSemver(parsed.asyncapi), - } + }; } export function getSemver(version: string): AsyncAPISemver { @@ -66,10 +66,10 @@ export function normalizeInput(asyncapi: string | MaybeAsyncAPI): string { return asyncapi; } return JSON.stringify(asyncapi, undefined, 2); -}; +} export function unfreezeObject(data: unknown) { - return JSON.parse(JSON.stringify(data)) + return JSON.parse(JSON.stringify(data)); } export function hasErrorDiagnostic(diagnostics: ISpectralDiagnostic[]): boolean { @@ -106,22 +106,22 @@ export function isObject(value: unknown): value is Record { } export function tilde(str: string) { - return str.replace(/[~\/]{1}/g, (sub) => { + return str.replace(/[~/]{1}/g, (sub) => { switch (sub) { - case '/': return '~1'; - case '~': return '~0'; + case '/': return '~1'; + case '~': return '~0'; } return sub; }); -}; +} export function untilde(str: string) { if (!str.includes('~')) return str; return str.replace(/~[01]/g, (sub) => { switch (sub) { - case '~1': return '/'; - case '~0': return '~'; + case '~1': return '/'; + case '~0': return '~'; } return sub; }); -}; \ No newline at end of file +} \ No newline at end of file diff --git a/test/custom-operations/parse-schema.spec.ts b/test/custom-operations/parse-schema.spec.ts index 941d2ab8d..883d8b32e 100644 --- a/test/custom-operations/parse-schema.spec.ts +++ b/test/custom-operations/parse-schema.spec.ts @@ -28,7 +28,7 @@ describe('custom operations - parse schemas', function() { } } } - } + }; const { parsed, diagnostics } = await parse(parser, document); expect(parsed).toBeInstanceOf(AsyncAPIDocumentV2); @@ -58,7 +58,7 @@ describe('custom operations - parse schemas', function() { } } } - } + }; const { parsed, diagnostics } = await parse(parser, document); expect(parsed).toBeInstanceOf(AsyncAPIDocumentV2); @@ -89,7 +89,7 @@ describe('custom operations - parse schemas', function() { } } } - } + }; const { parsed, diagnostics } = await parse(parser, document); expect(parsed).toBeUndefined(); diff --git a/test/lint.spec.ts b/test/lint.spec.ts index d0ee912c7..0bcd98cc1 100644 --- a/test/lint.spec.ts +++ b/test/lint.spec.ts @@ -13,7 +13,7 @@ describe('lint() & validate()', function() { title: 'Valid AsyncApi document', version: '1.0', }, - } + }; const diagnostics = await lint(parser, document); if (!diagnostics) { @@ -33,7 +33,7 @@ describe('lint() & validate()', function() { version: '1.0', }, channels: {} - } + }; const diagnostics = await lint(parser, document); if (!diagnostics) { diff --git a/test/models/asyncapi.spec.ts b/test/models/asyncapi.spec.ts index de92886b3..cd28e785a 100644 --- a/test/models/asyncapi.spec.ts +++ b/test/models/asyncapi.spec.ts @@ -4,16 +4,16 @@ import { createDetailedAsyncAPI } from '../../src/utils'; describe('AsyncAPIDocument factory', function() { it('should create a valid document from v2.0.0', function() { - const doc = { asyncapi: "2.0.0" }; + const doc = { asyncapi: '2.0.0' }; const detailed = createDetailedAsyncAPI(doc, doc as any); - const d = newAsyncAPIDocument(detailed) + const d = newAsyncAPIDocument(detailed); expect(d.version()).toEqual(doc.asyncapi); expect(d).toBeInstanceOf(AsyncAPIDocumentV2); }); it('should fail trying to create a document from a non supported spec version', function() { - const doc = { asyncapi: "99.99.99" }; + const doc = { asyncapi: '99.99.99' }; const detailed = createDetailedAsyncAPI(doc, doc as any); - expect(() => newAsyncAPIDocument(detailed)).toThrow("Unsupported AsyncAPI version: 99.99.99"); + expect(() => newAsyncAPIDocument(detailed)).toThrow('Unsupported AsyncAPI version: 99.99.99'); }); }); diff --git a/test/models/collection.spec.ts b/test/models/collection.spec.ts index 5089c1fa4..d2fe33400 100644 --- a/test/models/collection.spec.ts +++ b/test/models/collection.spec.ts @@ -6,13 +6,13 @@ describe('Collection model', function() { name(): string | undefined { return this._json.name; } - }; + } class Model extends Collection { override get(name: string): ItemModel | undefined { return this.collections.find(item => item.name() === name); } - }; + } describe('.isEmpty()', function() { it('should return true if collection is empty', function() { @@ -81,7 +81,7 @@ describe('Collection model', function() { const filter = function (_: ItemModel): boolean { return true; - } + }; expect(d.filterBy(filter)).toEqual([item]); }); @@ -92,7 +92,7 @@ describe('Collection model', function() { const filter = function (_: ItemModel): boolean { return false; - } + }; expect(d.filterBy(filter)).toEqual([]); }); }); diff --git a/test/models/v2/asyncapi.spec.ts b/test/models/v2/asyncapi.spec.ts index 303262973..61f04e708 100644 --- a/test/models/v2/asyncapi.spec.ts +++ b/test/models/v2/asyncapi.spec.ts @@ -14,7 +14,7 @@ import type { v2 } from '../../../src/spec-types'; describe('AsyncAPIDocument model', function() { describe('.version()', function() { it('should return the value', function() { - const doc = serializeInput({ asyncapi: "2.0.0" }); + const doc = serializeInput({ asyncapi: '2.0.0' }); const d = new AsyncAPIDocument(doc); expect(d.version()).toEqual(doc.asyncapi); }); @@ -28,7 +28,7 @@ describe('AsyncAPIDocument model', function() { describe('.hasDefaultContentType()', function() { it('should return true when there is a value', function() { - const doc = serializeInput({ defaultContentType: "..." }); + const doc = serializeInput({ defaultContentType: '...' }); const d = new AsyncAPIDocument(doc); expect(d.hasDefaultContentType()).toEqual(true); }); @@ -42,7 +42,7 @@ describe('AsyncAPIDocument model', function() { describe('.defaultContentType()', function() { it('should return the value', function() { - const doc = serializeInput({ defaultContentType: "..." }); + const doc = serializeInput({ defaultContentType: '...' }); const d = new AsyncAPIDocument(doc); expect(d.defaultContentType()).toEqual(doc.defaultContentType); }); @@ -69,14 +69,14 @@ describe('AsyncAPIDocument model', function() { expect(d.servers()).toBeInstanceOf(Servers); expect(d.servers()).toHaveLength(1); expect(d.servers().all()[0].id()).toEqual('development'); - }) + }); it('should return a collection of servers even if servers are not defined', function() { const doc = serializeInput({}); const d = new AsyncAPIDocument(doc); expect(d.servers()).toBeInstanceOf(Servers); - }) - }) + }); + }); describe('.channels()', function() { it('should return a collection of channels', function() { @@ -85,14 +85,14 @@ describe('AsyncAPIDocument model', function() { expect(d.channels()).toBeInstanceOf(Channels); expect(d.channels()).toHaveLength(1); expect(d.channels().all()[0].address()).toEqual('user/signup'); - }) + }); it('should return a collection of channels even if channels are not defined', function() { const doc = serializeInput({}); const d = new AsyncAPIDocument(doc); expect(d.channels()).toBeInstanceOf(Channels); - }) - }) + }); + }); describe('.operations()', function() { it('should return a collection of operations', function() { @@ -100,14 +100,14 @@ describe('AsyncAPIDocument model', function() { const d = new AsyncAPIDocument(doc); expect(d.operations()).toBeInstanceOf(Operations); expect(d.operations()).toHaveLength(3); - }) + }); it('should return a collection of operations even if operations are not defined', function() { const doc = serializeInput({}); const d = new AsyncAPIDocument(doc); expect(d.operations()).toBeInstanceOf(Operations); - }) - }) + }); + }); describe('.messages()', function() { it('should return a collection of messages', function() { @@ -115,18 +115,18 @@ describe('AsyncAPIDocument model', function() { const d = new AsyncAPIDocument(doc); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages()).toHaveLength(4); - }) + }); it('should return a collection of messages even if messages are not defined', function() { const doc = serializeInput({}); const d = new AsyncAPIDocument(doc); expect(d.messages()).toBeInstanceOf(Messages); - }) - }) + }); + }); describe('.schemas()', function() { - it.todo('should return a collection of schemas') - }) + it.todo('should return a collection of schemas'); + }); describe('.securitySchemes()', function() { it('should return a collection of securitySchemes', function() { @@ -134,28 +134,28 @@ describe('AsyncAPIDocument model', function() { const d = new AsyncAPIDocument(doc); expect(d.securitySchemes()).toBeInstanceOf(SecuritySchemes); expect(d.securitySchemes()).toHaveLength(2); - }) + }); it('should return a collection of securitySchemes even if securitySchemes are not defined', function() { const doc = serializeInput({}); const d = new AsyncAPIDocument(doc); expect(d.securitySchemes()).toBeInstanceOf(SecuritySchemes); - }) - }) + }); + }); describe('.components()', function() { it('should return a components model', function() { const doc = serializeInput({ components: {} }); const d = new AsyncAPIDocument(doc); expect(d.components()).toBeInstanceOf(Components); - }) + }); it('should return a components model even if components are not defined', function() { const doc = serializeInput({}); const d = new AsyncAPIDocument(doc); expect(d.components()).toBeInstanceOf(Components); - }) - }) + }); + }); describe('mixins', function() { assertExtensions(AsyncAPIDocument); diff --git a/test/models/v2/bindings.spec.ts b/test/models/v2/bindings.spec.ts index 7b621051e..4075508a6 100644 --- a/test/models/v2/bindings.spec.ts +++ b/test/models/v2/bindings.spec.ts @@ -37,20 +37,20 @@ describe('Bindings model', function () { it('should return true if the said id is available', function () { const bindings = new Bindings([bindingItem]); expect(bindings.has('http')).toEqual(true); - }) + }); it('should return false if the Message Trait id is missing', function () { const bindings = new Bindings([bindingItem]); expect(bindings.has('anotherProtocol')).toEqual(false); - }) - }) + }); + }); describe('.extensions()', function () { it('should return empty collection of extensions', function () { const bindings = new Bindings([], {}); expect(bindings.extensions()).toBeInstanceOf(Extensions); expect(bindings.extensions().isEmpty()).toEqual(true); - }) + }); it('should return collection of extensions', function () { const bindings = new Bindings([], { asyncapi: {} as any, originalData: { 'x-someExtension': { someKey: 'someValue' } as any, 'x-anotherOne': { someKey: 123 } as any } }); @@ -59,6 +59,6 @@ describe('Bindings model', function () { expect(bindings.extensions().get('x-someExtension')?.value()).toEqual({ someKey: 'someValue' }); expect(bindings.extensions().get('x-anotherOne')).toBeInstanceOf(Extension); expect(bindings.extensions().get('x-anotherOne')?.value()).toEqual({ someKey: 123 }); - }) - }) -}) + }); + }); +}); diff --git a/test/models/v2/channel-parameter.spec.ts b/test/models/v2/channel-parameter.spec.ts index 9a7816504..daa31757e 100644 --- a/test/models/v2/channel-parameter.spec.ts +++ b/test/models/v2/channel-parameter.spec.ts @@ -16,7 +16,7 @@ describe('ChannelParameter model', function() { describe('.hasLocation()', function() { it('should return true when there is a value', function() { - const doc = serializeInput({ location: "..." }); + const doc = serializeInput({ location: '...' }); const d = new ChannelParameter(doc); expect(d.hasLocation()).toEqual(true); }); @@ -30,7 +30,7 @@ describe('ChannelParameter model', function() { describe('.location()', function() { it('should return the value', function() { - const doc = serializeInput({ location: "..." }); + const doc = serializeInput({ location: '...' }); const d = new ChannelParameter(doc); expect(d.location()).toEqual(doc.location); }); diff --git a/test/models/v2/channel-parameters.spec.ts b/test/models/v2/channel-parameters.spec.ts index 703e2b556..d4417e2b5 100644 --- a/test/models/v2/channel-parameters.spec.ts +++ b/test/models/v2/channel-parameters.spec.ts @@ -35,11 +35,11 @@ describe('ChannelParameters model', function () { it('should return true if the said name is available', function () { const servers = new ChannelParameters([channelParameterItem]); expect(servers.has('parameter')).toEqual(true); - }) + }); it('should return false if the Channel Parameter name is missing', function () { const servers = new ChannelParameters([channelParameterItem]); expect(servers.has('anotherName')).toEqual(false); - }) - }) -}) \ No newline at end of file + }); + }); +}); \ No newline at end of file diff --git a/test/models/v2/channels.spec.ts b/test/models/v2/channels.spec.ts index d79a634ae..709355fa2 100644 --- a/test/models/v2/channels.spec.ts +++ b/test/models/v2/channels.spec.ts @@ -41,35 +41,35 @@ describe('Channels model', function () { it('should return true if the said name is available', function () { const servers = new Channels([channelItem]); expect(servers.has('channel')).toEqual(true); - }) + }); it('should return false if the Channel name is missing', function () { const servers = new Channels([channelItem]); expect(servers.has('anotherName')).toEqual(false); - }) - }) + }); + }); describe('.filterBySend()', function () { it('should return all channels with subscribe operation', function () { const operations = new Channels(channelItems); expect(operations.filterBySend()).toEqual([channelItems[2], channelItems[3]]); - }) + }); it('should return empty if there are no channels with operations with subscribe action', function () { const operations = new Channels([channelItems[0], channelItems[1]]); expect(operations.filterBySend()).toEqual([]); - }) - }) + }); + }); describe('.filterByReceive()', function () { it('should return all channels with publish operation', function () { const operations = new Channels(channelItems); expect(operations.filterByReceive()).toEqual([channelItems[0], channelItems[1]]); - }) + }); it('should return empty if there are no channels with operations with publish action', function () { const operations = new Channels([channelItems[2], channelItems[3]]); expect(operations.filterByReceive()).toEqual([]); - }) - }) -}) \ No newline at end of file + }); + }); +}); \ No newline at end of file diff --git a/test/models/v2/components.spec.ts b/test/models/v2/components.spec.ts index f1e079f89..ea8f6b884 100644 --- a/test/models/v2/components.spec.ts +++ b/test/models/v2/components.spec.ts @@ -36,7 +36,7 @@ describe('Components model', function() { const doc = serializeInput({ servers: { server: {} } }); const d = new Components(doc); - testCollection(doc, d.servers(), "servers", Servers, Server); + testCollection(doc, d.servers(), 'servers', Servers, Server); }); it('should return Servers with empty server objects when servers are not defined', function() { @@ -55,11 +55,10 @@ describe('Components model', function() { const items = d.channels(); expect(items).toBeInstanceOf(Channels); expect(items.all()).toEqual([ - new Channel(doc.channels?.channel as ChannelObject, {id: "channel", address: '', pointer: "/components/channels/channel"} as ModelMetadata & { id: string, address: string } | undefined) + new Channel(doc.channels?.channel as ChannelObject, {id: 'channel', address: '', pointer: '/components/channels/channel'} as ModelMetadata & { id: string, address: string } | undefined) ]); }); - it('should return Channels with empty channel objects when channels are not defined', function() { const doc = serializeInput({}); const d = new Components(doc); @@ -73,7 +72,7 @@ describe('Components model', function() { it('should return Messages with Message Object', function() { const doc = serializeInput({ messages: { message: {} } }); const d = new Components(doc); - testCollection(doc, d.messages(), "messages", Messages, Message); + testCollection(doc, d.messages(), 'messages', Messages, Message); }); it('should return Messages with empty message objects when messages are not defined', function() { @@ -89,7 +88,7 @@ describe('Components model', function() { it('should return Schemas with Schema Object', function() { const doc = serializeInput({ schemas: { schema: {} } }); const d = new Components(doc); - testCollection(doc, d.schemas(), "schemas", Schemas, Schema); + testCollection(doc, d.schemas(), 'schemas', Schemas, Schema); }); it('should return Schemas with empty schema objects when schemas are not defined', function() { @@ -105,7 +104,7 @@ describe('Components model', function() { it('should return ChannelParameters with ChannelParameter Object', function() { const doc = serializeInput({ parameters: { parameter: {} } }); const d = new Components(doc); - testCollection(doc, d.channelParameters(), "parameters", ChannelParameters, ChannelParameter); + testCollection(doc, d.channelParameters(), 'parameters', ChannelParameters, ChannelParameter); }); it('should return Schemas with empty schema objects when schemas are not defined', function() { @@ -121,7 +120,7 @@ describe('Components model', function() { it('should return ServerVariables with ServerVariable Object', function() { const doc = serializeInput({ serverVariables: { variable: {} } }); const d = new Components(doc); - testCollection(doc, d.serverVariables(), "serverVariables", ServerVariables, ServerVariable); + testCollection(doc, d.serverVariables(), 'serverVariables', ServerVariables, ServerVariable); }); it('should return ServerVariables with empty serverVariable objects when serverVariables are not defined', function() { @@ -137,7 +136,7 @@ describe('Components model', function() { it('should return OperationTraits with OperationTrait Object', function() { const doc = serializeInput({ operationTraits: { trait: {} } }); const d = new Components(doc); - testCollection(doc, d.operationTraits(), "operationTraits", OperationTraits, OperationTrait); + testCollection(doc, d.operationTraits(), 'operationTraits', OperationTraits, OperationTrait); }); it('should return OperationTraits with empty operationTrait objects when operationTraits are not defined', function() { @@ -153,7 +152,7 @@ describe('Components model', function() { it('should return MessageTraits with MessageTrait Object', function() { const doc = serializeInput({ messageTraits: { trait: {} } }); const d = new Components(doc); - testCollection(doc, d.messageTraits(), "messageTraits", MessageTraits, MessageTrait); + testCollection(doc, d.messageTraits(), 'messageTraits', MessageTraits, MessageTrait); }); it('should return MessageTraits with empty messageTrait objects when messageTraits are not defined', function() { @@ -169,7 +168,7 @@ describe('Components model', function() { it('should return CorrelationIds with CorrelationId Object', function() { const doc = serializeInput({ correlationIds: { id: {} } }); const d = new Components(doc); - testCollection(doc, d.correlationIds(), "correlationIds", CorrelationIds, CorrelationId); + testCollection(doc, d.correlationIds(), 'correlationIds', CorrelationIds, CorrelationId); }); it('should return CorrelationIds with empty correlationId objects when correlationIds are not defined', function() { @@ -185,8 +184,8 @@ describe('Components model', function() { it('should return Operations with Operation Object', function() { const doc = { channels: { channel: { publish: {} } } }; const d = new Components(doc); - let expectedOperations: Operation[] = [ - new Operation({}, {action: "publish", id: "channel_publish", "pointer": "/components/channels/channel/publish"} as ModelMetadata & { id: string, action: OperationAction } ) + const expectedOperations: Operation[] = [ + new Operation({}, {action: 'publish', id: 'channel_publish', pointer: '/components/channels/channel/publish'} as ModelMetadata & { id: string, action: OperationAction }) ]; const operations = d.operations(); @@ -207,7 +206,7 @@ describe('Components model', function() { it('should return SecuritySchemes with SecurityScheme Object', function() { const doc = serializeInput({ securitySchemes: { scheme: {} } }); const d = new Components(doc); - testCollection(doc, d.securitySchemes(), "securitySchemes", SecuritySchemes, SecurityScheme); + testCollection(doc, d.securitySchemes(), 'securitySchemes', SecuritySchemes, SecurityScheme); }); it('should return SecuritySchemes with empty securityScheme objects when securitySchemes are not defined', function() { @@ -287,7 +286,6 @@ describe('Components model', function() { }); }); - describe('mixins', function() { assertExtensions(Components); }); @@ -295,7 +293,7 @@ describe('Components model', function() { function testCollection, T extends BaseModel>(doc: any, items: M, componentName: string, collectionModel: Constructor, itemModel: Constructor) { expect(items).toBeInstanceOf(collectionModel); - let expectedItems: T[] = []; + const expectedItems: T[] = []; Object.entries((doc[componentName] as M)).forEach(([itemName, item]) => { expectedItems.push(new itemModel(item, {id: itemName, pointer: `/components/${componentName}/${itemName}`})); }); diff --git a/test/models/v2/contact.spec.ts b/test/models/v2/contact.spec.ts index a3f3d7c89..69105f53c 100644 --- a/test/models/v2/contact.spec.ts +++ b/test/models/v2/contact.spec.ts @@ -7,7 +7,7 @@ import type { v2 } from '../../../src/spec-types'; describe('Contact model', function() { describe('.hasName()', function() { it('should return true when there is a value', function() { - const doc = serializeInput({ name: "LeChuck" }); + const doc = serializeInput({ name: 'LeChuck' }); const d = new Contact(doc); expect(d.hasName()).toEqual(true); }); @@ -21,7 +21,7 @@ describe('Contact model', function() { describe('.name()', function() { it('should return the value', function() { - const doc = serializeInput({ name: "LeChuck" }); + const doc = serializeInput({ name: 'LeChuck' }); const d = new Contact(doc); expect(d.name()).toEqual(doc.name); }); @@ -35,7 +35,7 @@ describe('Contact model', function() { describe('.hasUrl()', function() { it('should return true when there is a value', function() { - const doc = serializeInput({ url: "https://example.com" }); + const doc = serializeInput({ url: 'https://example.com' }); const d = new Contact(doc); expect(d.hasUrl()).toEqual(true); }); @@ -49,7 +49,7 @@ describe('Contact model', function() { describe('.url()', function() { it('should return the value', function() { - const doc = serializeInput({ url: "https://example.com" }); + const doc = serializeInput({ url: 'https://example.com' }); const d = new Contact(doc); expect(d.url()).toEqual(doc.url); }); @@ -63,7 +63,7 @@ describe('Contact model', function() { describe('.hasEmail()', function() { it('should return true when there is a value', function() { - const doc = serializeInput({ email: "lechuck@example.com" }); + const doc = serializeInput({ email: 'lechuck@example.com' }); const d = new Contact(doc); expect(d.hasEmail()).toEqual(true); }); @@ -77,7 +77,7 @@ describe('Contact model', function() { describe('.email()', function() { it('should return the value', function() { - const doc = serializeInput({ email: "lechuck@example.com" }); + const doc = serializeInput({ email: 'lechuck@example.com' }); const d = new Contact(doc); expect(d.email()).toEqual(doc.email); }); diff --git a/test/models/v2/correlation-id.spec.ts b/test/models/v2/correlation-id.spec.ts index f0653b722..48e94f5db 100644 --- a/test/models/v2/correlation-id.spec.ts +++ b/test/models/v2/correlation-id.spec.ts @@ -7,7 +7,7 @@ import type { v2 } from '../../../src/spec-types'; describe('CorrelationId model', function() { describe('.hasLocation()', function() { it('should return true when there is a value', function() { - const doc = serializeInput({ location: "..." }); + const doc = serializeInput({ location: '...' }); const d = new CorrelationId(doc); expect(d.hasLocation()).toEqual(true); }); @@ -21,7 +21,7 @@ describe('CorrelationId model', function() { describe('.location()', function() { it('should return the value', function() { - const doc = serializeInput({ location: "..." }); + const doc = serializeInput({ location: '...' }); const d = new CorrelationId(doc); expect(d.location()).toEqual(doc.location); }); diff --git a/test/models/v2/info.spec.ts b/test/models/v2/info.spec.ts index 701e27db6..9c581b355 100644 --- a/test/models/v2/info.spec.ts +++ b/test/models/v2/info.spec.ts @@ -13,7 +13,7 @@ import type { v2 } from '../../../src/spec-types'; describe('Info model', function() { describe('.title()', function() { it('should return the value', function() { - const doc = serializeInput({ title: "Example API" }); + const doc = serializeInput({ title: 'Example API' }); const d = new Info(doc); expect(d.title()).toEqual(doc.title); }); @@ -21,7 +21,7 @@ describe('Info model', function() { describe('.version()', function() { it('should return the value', function() { - const doc = serializeInput({ version: "1.0.0" }); + const doc = serializeInput({ version: '1.0.0' }); const d = new Info(doc); expect(d.version()).toEqual(doc.version); }); @@ -61,7 +61,7 @@ describe('Info model', function() { describe('.hasTermsOfService()', function() { it('should return true when there is a value', function() { - const doc = serializeInput({ termsOfService: "These are the terms of service" }); + const doc = serializeInput({ termsOfService: 'These are the terms of service' }); const d = new Info(doc); expect(d.hasTermsOfService()).toEqual(true); }); @@ -75,7 +75,7 @@ describe('Info model', function() { describe('.termsOfService()', function() { it('should return the value', function() { - const doc = serializeInput({ termsOfService: "These are the terms of service" }); + const doc = serializeInput({ termsOfService: 'These are the terms of service' }); const d = new Info(doc); expect(d.termsOfService()).toEqual(doc.termsOfService); }); @@ -89,7 +89,7 @@ describe('Info model', function() { describe('.hasContact()', function() { it('should return true when there is a value', function() { - const doc = serializeInput({ contact: { name: "LeChuck" } }); + const doc = serializeInput({ contact: { name: 'LeChuck' } }); const d = new Info(doc); expect(d.hasContact()).toEqual(true); }); @@ -103,7 +103,7 @@ describe('Info model', function() { describe('.contact()', function() { it('should return a Contact object', function() { - const doc = serializeInput({ contact: { name: "LeChuck" } }); + const doc = serializeInput({ contact: { name: 'LeChuck' } }); const d = new Info(doc); expect(d.contact()).toBeInstanceOf(Contact); }); @@ -117,7 +117,7 @@ describe('Info model', function() { describe('.hasLicense()', function() { it('should return true when there is a value', function() { - const doc = serializeInput({ license: { name: "Apache 2.0" } }); + const doc = serializeInput({ license: { name: 'Apache 2.0' } }); const d = new Info(doc); expect(d.hasLicense()).toEqual(true); }); @@ -131,7 +131,7 @@ describe('Info model', function() { describe('.license()', function() { it('should return a License object', function() { - const doc = serializeInput({ license: { name: "Apache 2.0" } }); + const doc = serializeInput({ license: { name: 'Apache 2.0' } }); const d = new Info(doc); expect(d.license()).toBeInstanceOf(License); }); diff --git a/test/models/v2/license.spec.ts b/test/models/v2/license.spec.ts index 260e0a3c2..b8d67e7af 100644 --- a/test/models/v2/license.spec.ts +++ b/test/models/v2/license.spec.ts @@ -7,7 +7,7 @@ import type { v2 } from '../../../src/spec-types'; describe('License model', function() { describe('.name()', function() { it('should return the value', function() { - const doc = serializeInput({ name: "Apache 2.0" }); + const doc = serializeInput({ name: 'Apache 2.0' }); const d = new License(doc); expect(d.name()).toEqual(doc.name); }); @@ -15,7 +15,7 @@ describe('License model', function() { describe('.hasUrl()', function() { it('should return true when there is a value', function() { - const doc = serializeInput({ url: "https://www.apache.org/licenses/LICENSE-2.0.html" }); + const doc = serializeInput({ url: 'https://www.apache.org/licenses/LICENSE-2.0.html' }); const d = new License(doc); expect(d.hasUrl()).toEqual(true); }); @@ -29,7 +29,7 @@ describe('License model', function() { describe('.url()', function() { it('should return the value', function() { - const doc = serializeInput({ url: "https://www.apache.org/licenses/LICENSE-2.0.html" }); + const doc = serializeInput({ url: 'https://www.apache.org/licenses/LICENSE-2.0.html' }); const d = new License(doc); expect(d.url()).toEqual(doc.url); }); diff --git a/test/models/v2/message-example.spec.ts b/test/models/v2/message-example.spec.ts index a4a39468a..a4ba16dbb 100644 --- a/test/models/v2/message-example.spec.ts +++ b/test/models/v2/message-example.spec.ts @@ -5,7 +5,7 @@ import { assertExtensions } from './utils'; describe('MessageExample model', function() { describe('.hasName()', function() { it('should return true when there is a value', function() { - const doc = { name: "..." }; + const doc = { name: '...' }; const d = new MessageExample(doc); expect(d.hasName()).toEqual(true); }); @@ -19,7 +19,7 @@ describe('MessageExample model', function() { describe('.name()', function() { it('should return the value', function() { - const doc = { name: "..." }; + const doc = { name: '...' }; const d = new MessageExample(doc); expect(d.name()).toEqual(doc.name); }); @@ -33,7 +33,7 @@ describe('MessageExample model', function() { describe('.hasSummary()', function() { it('should return true when there is a value', function() { - const doc = { summary: "..." }; + const doc = { summary: '...' }; const d = new MessageExample(doc); expect(d.hasSummary()).toEqual(true); }); @@ -47,7 +47,7 @@ describe('MessageExample model', function() { describe('.summary()', function() { it('should return the value', function() { - const doc = { summary: "..." }; + const doc = { summary: '...' }; const d = new MessageExample(doc); expect(d.summary()).toEqual(doc.summary); }); diff --git a/test/models/v2/message-examples.spec.ts b/test/models/v2/message-examples.spec.ts index f04c8a3ef..380d39e75 100644 --- a/test/models/v2/message-examples.spec.ts +++ b/test/models/v2/message-examples.spec.ts @@ -35,11 +35,11 @@ describe('MessageExamples model', function () { it('should return true if the said name is available', function () { const servers = new MessageExamples([messageExampleItem]); expect(servers.has('test')).toEqual(true); - }) + }); it('should return false if the Message Example name is missing', function () { const servers = new MessageExamples([messageExampleItem]); expect(servers.has('anotherName')).toEqual(false); - }) - }) -}) \ No newline at end of file + }); + }); +}); \ No newline at end of file diff --git a/test/models/v2/message-trait.spec.ts b/test/models/v2/message-trait.spec.ts index 6357f5aa3..e2b2bc0d6 100644 --- a/test/models/v2/message-trait.spec.ts +++ b/test/models/v2/message-trait.spec.ts @@ -155,7 +155,7 @@ describe('MessageTrait model', function() { describe('.hasName()', function() { it('should return true when there is a value', function() { - const doc = { name: "..." }; + const doc = { name: '...' }; const d = new MessageTrait(doc); expect(d.hasName()).toEqual(true); }); @@ -169,7 +169,7 @@ describe('MessageTrait model', function() { describe('.name()', function() { it('should return the value', function() { - const doc = { name: "..." }; + const doc = { name: '...' }; const d = new MessageTrait(doc); expect(d.name()).toEqual(doc.name); }); @@ -183,7 +183,7 @@ describe('MessageTrait model', function() { describe('.hasTitle()', function() { it('should return true when there is a value', function() { - const doc = { title: "..." }; + const doc = { title: '...' }; const d = new MessageTrait(doc); expect(d.hasTitle()).toEqual(true); }); @@ -197,7 +197,7 @@ describe('MessageTrait model', function() { describe('.title()', function() { it('should return the value', function() { - const doc = { title: "..." }; + const doc = { title: '...' }; const d = new MessageTrait(doc); expect(d.title()).toEqual(doc.title); }); @@ -211,7 +211,7 @@ describe('MessageTrait model', function() { describe('.hasSummary()', function() { it('should return true when there is a value', function() { - const doc = { summary: "..." }; + const doc = { summary: '...' }; const d = new MessageTrait(doc); expect(d.hasSummary()).toEqual(true); }); @@ -225,7 +225,7 @@ describe('MessageTrait model', function() { describe('.summary()', function() { it('should return the value', function() { - const doc = { summary: "..." }; + const doc = { summary: '...' }; const d = new MessageTrait(doc); expect(d.summary()).toEqual(doc.summary); }); @@ -239,7 +239,7 @@ describe('MessageTrait model', function() { describe('.examples()', function() { it('should return collection of examples', function() { - const doc = { examples: [ { name: '...' } ] }; + const doc = { examples: [{ name: '...' }] }; const d = new MessageTrait(doc); expect(d.examples()).toBeInstanceOf(MessageExamples); expect(d.examples().all()).toHaveLength(1); diff --git a/test/models/v2/message-traits.spec.ts b/test/models/v2/message-traits.spec.ts index 6d1617cb0..00f8539d6 100644 --- a/test/models/v2/message-traits.spec.ts +++ b/test/models/v2/message-traits.spec.ts @@ -35,11 +35,11 @@ describe('MessageTraits model', function () { it('should return true if the said id is available', function () { const servers = new MessageTraits([messageTraitItem]); expect(servers.has('test')).toEqual(true); - }) + }); it('should return false if the Message Trait id is missing', function () { const servers = new MessageTraits([messageTraitItem]); expect(servers.has('anotherId')).toEqual(false); - }) - }) -}) \ No newline at end of file + }); + }); +}); \ No newline at end of file diff --git a/test/models/v2/message.spec.ts b/test/models/v2/message.spec.ts index cb82189d1..111031476 100644 --- a/test/models/v2/message.spec.ts +++ b/test/models/v2/message.spec.ts @@ -165,7 +165,7 @@ describe('Message model', function() { describe('.traits()', function() { it('should return collection of traits', function() { - const doc = { traits: [ { messageId: '...' } ] }; + const doc = { traits: [{ messageId: '...' }] }; const d = new Message(doc); expect(d.traits()).toBeInstanceOf(MessageTraits); expect(d.traits().all()).toHaveLength(1); diff --git a/test/models/v2/messages.spec.ts b/test/models/v2/messages.spec.ts index fd15720cf..28df7a65f 100644 --- a/test/models/v2/messages.spec.ts +++ b/test/models/v2/messages.spec.ts @@ -6,13 +6,13 @@ const messages = { test2: { messageId: 'test2' }, test3: { messageId: 'test3' }, test4: { messageId: 'test4' }, -} +}; const messageItems = [ - new Message(messages.test1, { asyncapi: { parsed: { channels: { test1: { publish: { operationId: "test1", message: messages.test1 } } } } } as any, pointer: '', id: 'test1' }), - new Message(messages.test2, { asyncapi: { parsed: { channels: { test2: { publish: { operationId: "test2", message: messages.test2 } } } } } as any, pointer: '', id: 'test2' }), - new Message(messages.test3, { asyncapi: { parsed: { channels: { test3: { subscribe: { operationId: "test3", message: messages.test3 } } } } } as any, pointer: '', id: 'test3' }), - new Message(messages.test4, { asyncapi: { parsed: { channels: { test4: { subscribe: { operationId: "test4", message: messages.test4 } } } } } as any, pointer: '', id: 'test4' }), + new Message(messages.test1, { asyncapi: { parsed: { channels: { test1: { publish: { operationId: 'test1', message: messages.test1 } } } } } as any, pointer: '', id: 'test1' }), + new Message(messages.test2, { asyncapi: { parsed: { channels: { test2: { publish: { operationId: 'test2', message: messages.test2 } } } } } as any, pointer: '', id: 'test2' }), + new Message(messages.test3, { asyncapi: { parsed: { channels: { test3: { subscribe: { operationId: 'test3', message: messages.test3 } } } } } as any, pointer: '', id: 'test3' }), + new Message(messages.test4, { asyncapi: { parsed: { channels: { test4: { subscribe: { operationId: 'test4', message: messages.test4 } } } } } as any, pointer: '', id: 'test4' }), ]; describe('Messages model', function () { @@ -44,35 +44,35 @@ describe('Messages model', function () { it('should return true if the said id is available', function () { const messages = new Messages([messageItems[0]]); expect(messages.has('test1')).toEqual(true); - }) + }); it('should return false if the Message id is missing', function () { const messages = new Messages([messageItems[0]]); expect(messages.has('anotherId')).toEqual(false); - }) - }) + }); + }); describe('.filterBySend()', function () { it('should return all messages in channels with subscribe operation', function () { const messages = new Messages(messageItems); expect(messages.filterBySend()).toEqual([messageItems[2], messageItems[3]]); - }) + }); it('should return empty if there are no messages in channels with operations with subscribe action', function () { const messages = new Messages([messageItems[0], messageItems[1]]); expect(messages.filterBySend()).toEqual([]); - }) - }) + }); + }); describe('.filterByReceive()', function () { it('should return all messages in channels with publish operation', function () { const messages = new Messages(messageItems); expect(messages.filterByReceive()).toEqual([messageItems[0], messageItems[1]]); - }) + }); it('should return empty if there are no messages in channels with operations with publish action', function () { const messages = new Messages([messageItems[2], messageItems[3]]); expect(messages.filterByReceive()).toEqual([]); - }) - }) -}) \ No newline at end of file + }); + }); +}); \ No newline at end of file diff --git a/test/models/v2/mixins.spec.ts b/test/models/v2/mixins.spec.ts index b7fa77736..e5c4d0e70 100644 --- a/test/models/v2/mixins.spec.ts +++ b/test/models/v2/mixins.spec.ts @@ -2,10 +2,9 @@ import { BaseModel } from '../../../src/models/base'; import { bindings, hasDescription, description, extensions, hasExternalDocs, externalDocs, tags } from '../../../src/models/v2/mixins'; import { BindingsV2, ExtensionsV2, ExternalDocumentationV2, TagsV2 } from '../../../src/models/v2'; - describe('mixins', function() { describe('bindings', function() { - class Model extends BaseModel {}; + class Model extends BaseModel {} const doc1 = { bindings: { amqp: { test: 'test1' } } }; const doc2 = { bindings: {} }; @@ -28,7 +27,7 @@ describe('mixins', function() { }); describe('hasDescription', function() { - class Model extends BaseModel {}; + class Model extends BaseModel {} const doc1 = { description: 'Testing' }; const doc2 = { description: '' }; @@ -45,7 +44,7 @@ describe('mixins', function() { }); describe('description', function() { - class Model extends BaseModel {}; + class Model extends BaseModel {} const doc1 = { description: 'Testing' }; const doc2 = { description: '' }; @@ -65,7 +64,7 @@ describe('mixins', function() { }); describe('extensions', function() { - class Model extends BaseModel {}; + class Model extends BaseModel {} const doc1 = { 'x-test': 'testing', test: 'testing' }; const doc2 = { test: 'testing' }; @@ -88,7 +87,7 @@ describe('mixins', function() { }); describe('hasExternalDocs', function() { - class Model extends BaseModel {}; + class Model extends BaseModel {} const doc1 = { externalDocs: { url: 'test.com' } }; const doc2 = { externalDocs: {} }; @@ -105,7 +104,7 @@ describe('mixins', function() { }); describe('externalDocs', function() { - class Model extends BaseModel {}; + class Model extends BaseModel {} const doc1 = { externalDocs: { url: 'test.com' } }; const doc2 = { externalDocs: {} }; @@ -126,7 +125,7 @@ describe('mixins', function() { }); describe('tags', function() { - class Model extends BaseModel {}; + class Model extends BaseModel {} const doc1 = { tags: [{ name: 'test1' }, { name: 'test2' }] }; const doc2 = { tags: [] }; diff --git a/test/models/v2/oauth-flow.spec.ts b/test/models/v2/oauth-flow.spec.ts index a7d1ef339..113375d37 100644 --- a/test/models/v2/oauth-flow.spec.ts +++ b/test/models/v2/oauth-flow.spec.ts @@ -3,31 +3,31 @@ import { OAuthFlow } from '../../../src/models/v2/oauth-flow'; import type { v2 } from '../../../src/spec-types'; const flowObject = { - "authorizationUrl": "https://example.com/api/oauth/dialog", - "scopes": { - "write:pets": "modify pets in your account", - "read:pets": "read your pets" + authorizationUrl: 'https://example.com/api/oauth/dialog', + scopes: { + 'write:pets': 'modify pets in your account', + 'read:pets': 'read your pets' } -} +}; const flow = new OAuthFlow(flowObject); const emptyObject = new OAuthFlow({} as v2.OAuthFlowObject); -describe('OAuth Flow', function(){ - describe('.authorizationUrl()', function(){ - it('should reutrn undefined if no authorizationUrl present', function(){ +describe('OAuth Flow', function() { + describe('.authorizationUrl()', function() { + it('should reutrn undefined if no authorizationUrl present', function() { expect(emptyObject.authorizationUrl()).toBeUndefined(); - }) + }); - it('should return authrozationUrl ', function(){ + it('should return authrozationUrl ', function() { expect(flow.authorizationUrl()).toMatch(flowObject.authorizationUrl); - }) - }) + }); + }); describe('.scopes()', function() { it('should return scopes if present', function() { expect(emptyObject.scopes()).toBeUndefined(); expect(flow.scopes()!['write:pets']).toMatch(flowObject.scopes['write:pets']); - }) - }) -}) + }); + }); +}); diff --git a/test/models/v2/oauth-flows.spec.ts b/test/models/v2/oauth-flows.spec.ts index 79f7d6741..b11b2ef81 100644 --- a/test/models/v2/oauth-flows.spec.ts +++ b/test/models/v2/oauth-flows.spec.ts @@ -2,35 +2,35 @@ import { OAuthFlows } from '../../../src/models/v2/oauth-flows'; import { OAuthFlow } from '../../../src/models/v2/oauth-flow'; const oAuthFlowsObject = { - "implicit": { - "authorizationUrl": "https://example.com/api/oauth/dialog", - "scopes": { - "write:pets": "modify pets in your account", - "read:pets": "read your pets" + implicit: { + authorizationUrl: 'https://example.com/api/oauth/dialog', + scopes: { + 'write:pets': 'modify pets in your account', + 'read:pets': 'read your pets' } }, - "authorizationCode": { - "authorizationUrl": "https://example.com/api/oauth/dialog", - "tokenUrl": "https://example.com/api/oauth/token", - "scopes": { - "write:pets": "modify pets in your account", - "read:pets": "read your pets" + authorizationCode: { + authorizationUrl: 'https://example.com/api/oauth/dialog', + tokenUrl: 'https://example.com/api/oauth/token', + scopes: { + 'write:pets': 'modify pets in your account', + 'read:pets': 'read your pets' } } -} +}; const flows = new OAuthFlows(oAuthFlowsObject); describe('OAuth Flows', function() { - describe('.hasImplicit()', function(){ - it('should return true', function(){ + describe('.hasImplicit()', function() { + it('should return true', function() { expect(flows.hasImplicit()).toBeTruthy(); - }) - }) + }); + }); describe('.implicit()', function() { it('should return OAuthflow object', function() { expect(flows.implicit() instanceof OAuthFlow).toBeTruthy(); - }) - }) -}) \ No newline at end of file + }); + }); +}); \ No newline at end of file diff --git a/test/models/v2/operation-trait.spec.ts b/test/models/v2/operation-trait.spec.ts index f0e673251..2c007ae4e 100644 --- a/test/models/v2/operation-trait.spec.ts +++ b/test/models/v2/operation-trait.spec.ts @@ -50,7 +50,7 @@ describe('OperationTrait model', function() { describe('.hasSummary()', function() { it('should return true when there is a value', function() { - const doc = { summary: "..." }; + const doc = { summary: '...' }; const d = new OperationTrait(doc); expect(d.hasSummary()).toEqual(true); }); @@ -64,7 +64,7 @@ describe('OperationTrait model', function() { describe('.summary()', function() { it('should return the value', function() { - const doc = { summary: "..." }; + const doc = { summary: '...' }; const d = new OperationTrait(doc); expect(d.summary()).toEqual(doc.summary); }); @@ -78,7 +78,7 @@ describe('OperationTrait model', function() { describe('.security()', function() { it('should return collection of security requirements', function() { - const doc = { security: [ { requirement: [] } ] }; + const doc = { security: [{ requirement: [] }] }; const d = new OperationTrait(doc); const security = d.security(); diff --git a/test/models/v2/operation-traits.spec.ts b/test/models/v2/operation-traits.spec.ts index edfdd91c0..bf0e701d8 100644 --- a/test/models/v2/operation-traits.spec.ts +++ b/test/models/v2/operation-traits.spec.ts @@ -35,11 +35,11 @@ describe('OperationTraits model', function () { it('should return true if the said id is available', function () { const servers = new OperationTraits([operationTraitItem]); expect(servers.has('test')).toEqual(true); - }) + }); it('should return false if the Operation Trait id is missing', function () { const servers = new OperationTraits([operationTraitItem]); expect(servers.has('anotherId')).toEqual(false); - }) - }) -}) \ No newline at end of file + }); + }); +}); \ No newline at end of file diff --git a/test/models/v2/operation.spec.ts b/test/models/v2/operation.spec.ts index 1e320335a..28b6d24cf 100644 --- a/test/models/v2/operation.spec.ts +++ b/test/models/v2/operation.spec.ts @@ -135,7 +135,7 @@ describe('Operation model', function() { }); it('should return collection of messages - oneOf messages', function() { - const doc = { message: { oneOf: [ { messageId: '...' }, { messageId: '...' } ] } }; + const doc = { message: { oneOf: [{ messageId: '...' }, { messageId: '...' }] } }; const d = new Operation(doc); expect(d.messages()).toBeInstanceOf(Messages); expect(d.messages().all()).toHaveLength(2); @@ -153,7 +153,7 @@ describe('Operation model', function() { describe('.traits()', function() { it('should return collection of traits', function() { - const doc = { traits: [ { operationId: '...' } ] }; + const doc = { traits: [{ operationId: '...' }] }; const d = new Operation(doc); expect(d.traits()).toBeInstanceOf(OperationTraits); expect(d.traits().all()).toHaveLength(1); diff --git a/test/models/v2/operations.spec.ts b/test/models/v2/operations.spec.ts index a99ae4b56..00a8460a2 100644 --- a/test/models/v2/operations.spec.ts +++ b/test/models/v2/operations.spec.ts @@ -41,35 +41,35 @@ describe('Operations model', function () { it('should return true if the said id is available', function () { const operations = new Operations([operationItem]); expect(operations.has('test')).toEqual(true); - }) + }); it('should return false if the Operation id is missing', function () { const operations = new Operations([operationItem]); expect(operations.has('anotherId')).toEqual(false); - }) - }) + }); + }); describe('.filterBySend()', function () { it('should return all operations with subscribe action', function () { const operations = new Operations(operationItems); expect(operations.filterBySend()).toEqual([operationItems[2], operationItems[3]]); - }) + }); it('should return empty if there are no operations with subscribe action', function () { const operations = new Operations([operationItems[0], operationItems[1]]); expect(operations.filterBySend()).toEqual([]); - }) - }) + }); + }); describe('.filterByReceive()', function () { it('should return all operations with publish action', function () { const operations = new Operations(operationItems); expect(operations.filterByReceive()).toEqual([operationItems[0], operationItems[1]]); - }) + }); it('should return empty if there are no operations with publish action', function () { const operations = new Operations([operationItems[2], operationItems[3]]); expect(operations.filterByReceive()).toEqual([]); - }) - }) -}) \ No newline at end of file + }); + }); +}); \ No newline at end of file diff --git a/test/models/v2/schema.spec.ts b/test/models/v2/schema.spec.ts index bf48dc73e..e29abfa23 100644 --- a/test/models/v2/schema.spec.ts +++ b/test/models/v2/schema.spec.ts @@ -15,7 +15,7 @@ describe('Channel model', function() { describe('.$comment()', function() { it('should return the value', function() { - const doc = { $comment: "..." }; + const doc = { $comment: '...' }; const d = new Schema(doc); expect(d.$comment()).toEqual(doc.$comment); }); @@ -29,7 +29,7 @@ describe('Channel model', function() { describe('.$id()', function() { it('should return the value', function() { - const doc = { $id: "..." }; + const doc = { $id: '...' }; const d = new Schema(doc); expect(d.$id()).toEqual(doc.$id); }); @@ -43,7 +43,7 @@ describe('Channel model', function() { describe('.$schema()', function() { it('should return the value', function() { - const doc = { $schema: "..." }; + const doc = { $schema: '...' }; const d = new Schema(doc); expect(d.$schema()).toEqual(doc.$schema); }); @@ -109,7 +109,7 @@ describe('Channel model', function() { describe('.allOf()', function() { it('should return collection of schemas', function() { - const doc = { allOf: [ {}, {} ] }; + const doc = { allOf: [{}, {}] }; const d = new Schema(doc); expect(Array.isArray(d.allOf())).toEqual(true); expect(d.allOf()).toHaveLength(2); @@ -126,7 +126,7 @@ describe('Channel model', function() { describe('.anyOf()', function() { it('should return collection of schemas', function() { - const doc = { anyOf: [ {}, {} ] }; + const doc = { anyOf: [{}, {}] }; const d = new Schema(doc); expect(Array.isArray(d.anyOf())).toEqual(true); expect(d.anyOf()).toHaveLength(2); @@ -441,7 +441,7 @@ describe('Channel model', function() { }); it('should return collection of schemas', function() { - const doc = { items: [ {}, {} ] }; + const doc = { items: [{}, {}] }; const d = new Schema(doc); expect(Array.isArray(d.items())).toEqual(true); expect(d.items()).toHaveLength(2); @@ -598,7 +598,7 @@ describe('Channel model', function() { describe('.oneOf()', function() { it('should return collection of schemas', function() { - const doc = { oneOf: [ {}, {} ] }; + const doc = { oneOf: [{}, {}] }; const d = new Schema(doc); expect(Array.isArray(d.oneOf())).toEqual(true); expect(d.oneOf()).toHaveLength(2); diff --git a/test/models/v2/security-requirement.spec.ts b/test/models/v2/security-requirement.spec.ts index 31a8ad791..a3319c994 100644 --- a/test/models/v2/security-requirement.spec.ts +++ b/test/models/v2/security-requirement.spec.ts @@ -1,29 +1,28 @@ -import { SecurityRequirement } from '../../../src/models/v2/security-requirement' +import { SecurityRequirement } from '../../../src/models/v2/security-requirement'; import { SecurityScheme } from '../../../src/models/v2/security-scheme'; describe('SecurityRequirement model', function() { describe('.scheme()', function() { it('should return scheme', function() { - const expectedScheme = new SecurityScheme({ type: "oauth2" }); + const expectedScheme = new SecurityScheme({ type: 'oauth2' }); const d = new SecurityRequirement({ scheme: expectedScheme }, { id: 'test' } as any); expect(d.meta('id')).toEqual('test'); expect(d.scheme()).toBeInstanceOf(SecurityScheme); expect(d.scheme()).toEqual(expectedScheme); }); - - }) + }); describe('.scopes()', function() { it('should return scopes', function() { - const scopes = ["scope_one"]; - const scheme = new SecurityScheme({ type: "oauth2" }); - const d = new SecurityRequirement({ scheme, scopes }) + const scopes = ['scope_one']; + const scheme = new SecurityScheme({ type: 'oauth2' }); + const d = new SecurityRequirement({ scheme, scopes }); expect(d.scopes()).toEqual(scopes); }); it('should return empty array when scopes are omit', function() { - const scheme = new SecurityScheme({ type: "oauth2" }); - const d = new SecurityRequirement({ scheme }) + const scheme = new SecurityScheme({ type: 'oauth2' }); + const d = new SecurityRequirement({ scheme }); expect(d.scopes()).toEqual([]); }); }); diff --git a/test/models/v2/security-requirements.spec.ts b/test/models/v2/security-requirements.spec.ts index 7dd983274..d684f981a 100644 --- a/test/models/v2/security-requirements.spec.ts +++ b/test/models/v2/security-requirements.spec.ts @@ -32,11 +32,11 @@ describe('SecurityRequirements model', function () { it('should return true if the said id is available', function () { const requirements = new SecurityRequirements([requirementItem]); expect(requirements.has('test')).toEqual(true); - }) + }); it('should return false if the SecurityRequirement id is missing', function () { const requirements = new SecurityRequirements([requirementItem]); expect(requirements.has('anotherId')).toEqual(false); - }) - }) -}) \ No newline at end of file + }); + }); +}); \ No newline at end of file diff --git a/test/models/v2/security-scheme.spec.ts b/test/models/v2/security-scheme.spec.ts index 887cc70e9..bcf393504 100644 --- a/test/models/v2/security-scheme.spec.ts +++ b/test/models/v2/security-scheme.spec.ts @@ -4,67 +4,67 @@ import { OAuthFlows } from '../../../src/models/v2/oauth-flows'; import type { v2 } from '../../../src/spec-types'; const doc1: v2.SecuritySchemeObject = { - type: 'http', - in: 'header', - scheme: 'bearer', - bearerFormat: 'JWT', - openIdConnectUrl: 'https://server.com/.well-known/openid-configuration', - flows: { - implicit: { - authorizationUrl: "https://example.com/api/oauth/dialog", - scopes: { - "write:pets": "modify pets in your account", - "read:pets": "read your pets" - } - } + type: 'http', + in: 'header', + scheme: 'bearer', + bearerFormat: 'JWT', + openIdConnectUrl: 'https://server.com/.well-known/openid-configuration', + flows: { + implicit: { + authorizationUrl: 'https://example.com/api/oauth/dialog', + scopes: { + 'write:pets': 'modify pets in your account', + 'read:pets': 'read your pets' + } } -} + } +}; const sc1 = new SecurityScheme(doc1, { asyncapi: {} as any, pointer: '', id: 'api_key' }); const emptyItem = new SecurityScheme({ type: 'X509' }); describe('Security Scheme', function () { - describe('.id()', function () { - it('should return name if present', function () { - expect(sc1.id()).toMatch('api_key'); - }); - }) + describe('.id()', function () { + it('should return name if present', function () { + expect(sc1.id()).toMatch('api_key'); + }); + }); - describe('.type()', function () { - it('should return type when it is present', function () { - expect(sc1.type()).toMatch(doc1.type); - }) - }) + describe('.type()', function () { + it('should return type when it is present', function () { + expect(sc1.type()).toMatch(doc1.type); + }); + }); - describe('.hasBearerFormat()', function () { - it('should return true if bearerFormat is present', function () { - expect(sc1.hasBearerFormat()).toBeTruthy(); - }) + describe('.hasBearerFormat()', function () { + it('should return true if bearerFormat is present', function () { + expect(sc1.hasBearerFormat()).toBeTruthy(); + }); - it('should return false if bearerFormat is not present', function () { - expect(emptyItem.hasBearerFormat()).toBeFalsy(); - }) - }) + it('should return false if bearerFormat is not present', function () { + expect(emptyItem.hasBearerFormat()).toBeFalsy(); + }); + }); - describe('.in()', function () { - it('should return in if present', function () { - expect(sc1.in()).toMatch(doc1.in as string); - expect(emptyItem.in()).toBeUndefined(); - }) - }) + describe('.in()', function () { + it('should return in if present', function () { + expect(sc1.in()).toMatch(doc1.in as string); + expect(emptyItem.in()).toBeUndefined(); + }); + }); - describe('.openIdConnectUrl()', function () { - it('should return openIdConnectUrl value', function () { - expect(sc1.openIdConnectUrl()).toMatch(doc1.openIdConnectUrl as string); - }) - }) - describe('.flows()', function () { - it('should return undefined if flow object is not present', function () { - expect(emptyItem.flows()).toBeUndefined(); - }); + describe('.openIdConnectUrl()', function () { + it('should return openIdConnectUrl value', function () { + expect(sc1.openIdConnectUrl()).toMatch(doc1.openIdConnectUrl as string); + }); + }); + describe('.flows()', function () { + it('should return undefined if flow object is not present', function () { + expect(emptyItem.flows()).toBeUndefined(); + }); - it('should return OAuthFlows object', function() { - expect(sc1.flows() instanceof OAuthFlows).toBeTruthy(); - }) - }) -}) + it('should return OAuthFlows object', function() { + expect(sc1.flows() instanceof OAuthFlows).toBeTruthy(); + }); + }); +}); diff --git a/test/models/v2/server-variable.spec.ts b/test/models/v2/server-variable.spec.ts index 0b19fd5fd..f88659b7f 100644 --- a/test/models/v2/server-variable.spec.ts +++ b/test/models/v2/server-variable.spec.ts @@ -4,36 +4,36 @@ const doc = { description: 'Secure connection (TLS) is available through port 8883.', default: '1883', enum: ['1883', '8883'] -} +}; const sv = new ServerVariable(doc, { asyncapi: {} as any, pointer: '', id: 'doc' }); describe('Server Variable ', function() { describe('.id()', function() { expect(sv.id()).toMatch('doc'); - }) + }); describe('.hasDefaultValue()', function() { - it('should return true if default value is passed', function(){ + it('should return true if default value is passed', function() { expect(sv.hasDefaultValue()).toBeTruthy(); - }) - }) + }); + }); - describe('.defaultValue()', function(){ + describe('.defaultValue()', function() { it('should return default value', function() { expect(sv.defaultValue()).toMatch(doc.default); - }) - }) + }); + }); describe('.hasAllowedValue()', function() { - it('should return true when enum is passed', function(){ + it('should return true when enum is passed', function() { expect(sv.hasAllowedValues()).toBeTruthy(); - }) - }) + }); + }); - describe('.allowedValue()', function(){ - it('should return enum object', function(){ - expect(sv.allowedValues()).toEqual(doc.enum) - }) - }) -}) + describe('.allowedValue()', function() { + it('should return enum object', function() { + expect(sv.allowedValues()).toEqual(doc.enum); + }); + }); +}); diff --git a/test/models/v2/server.spec.ts b/test/models/v2/server.spec.ts index e169bbd7b..eff3789dc 100644 --- a/test/models/v2/server.spec.ts +++ b/test/models/v2/server.spec.ts @@ -15,7 +15,7 @@ import { SecurityRequirements } from '../../../src/models/v2/security-requiremen import { SecurityRequirement } from '../../../src/models/v2/security-requirement'; const doc = { - 'development': { + development: { protocol: 'mqtt', protocolVersion: '1.0.0', url: 'development.gigantic-server.com', @@ -51,7 +51,7 @@ describe('Server Model', function () { it('should be false when protocolVersion is missing', function () { expect(emptyItem.hasProtocolVersion()).toBeFalsy(); }); - }) + }); describe('.protocolVersion()', function () { it('should return value', function () { @@ -60,8 +60,8 @@ describe('Server Model', function () { it('should return undefined when protocolVersion is missing', function () { expect(emptyItem.protocolVersion()).toBeUndefined(); - }) - }) + }); + }); describe('.url()', function () { it('should return value', function () { @@ -177,13 +177,13 @@ describe('Server Model', function () { describe('.variables()', function () { it('should return ServerVariables object', function () { expect(docItem.variables()).toBeInstanceOf(ServerVariables); - }) - }) + }); + }); describe('.security()', function() { it('should return SecurityRequirements', function() { - const doc = serializeInput({ security: [ { requirement: [] } ] }); - const d = new Server(doc, {pointer: "/servers/test"} as any); + const doc = serializeInput({ security: [{ requirement: [] }] }); + const d = new Server(doc, {pointer: '/servers/test'} as any); const security = d.security(); expect(Array.isArray(security)).toEqual(true); @@ -194,8 +194,8 @@ describe('Server Model', function () { expect(requirement).toBeInstanceOf(SecurityRequirement); expect(requirement.scheme()).toBeInstanceOf(SecurityScheme); expect(requirement.scopes()).toEqual([]); - expect(requirement.meta().id).toEqual("requirement"); - expect(requirement.meta().pointer).toEqual("/servers/test/security/0/requirement"); + expect(requirement.meta().id).toEqual('requirement'); + expect(requirement.meta().pointer).toEqual('/servers/test/security/0/requirement'); }); it('should return SecurityRequirements when value is undefined', function() { @@ -211,4 +211,4 @@ describe('Server Model', function () { assertDescription(Server); assertExtensions(Server); }); -}) +}); diff --git a/test/models/v2/servers.spec.ts b/test/models/v2/servers.spec.ts index aa0f7df31..8d335d4cb 100644 --- a/test/models/v2/servers.spec.ts +++ b/test/models/v2/servers.spec.ts @@ -2,22 +2,22 @@ import { Servers } from '../../../src/models/v2/servers'; import { Server } from '../../../src/models/v2/server'; const doc = { - 'development': { + development: { protocol: 'mqtt', protocolVersion: '1.0.0', url: 'development.gigantic-server.com' }, - 'development2': { + development2: { protocol: 'mqtt', protocolVersion: '1.0.0', url: 'development2.gigantic-server.com' }, - 'production': { + production: { protocol: 'mqtt', protocolVersion: '1.0.0', url: 'production.gigantic-server.com' }, - 'production2': { + production2: { protocol: 'mqtt', protocolVersion: '1.0.0', url: 'production2.gigantic-server.com' @@ -26,10 +26,10 @@ const doc = { const docItem = new Server(doc.development, { asyncapi: {} as any, pointer: '', id: 'development' }); const serverItems = [ - new Server(doc.development, { asyncapi: { parsed: { channels: { test1: { publish: { operationId: "test1" } } } } } as any, pointer: '', id: 'development' }), - new Server(doc.development2, { asyncapi: { parsed: { channels: { test2: { publish: { operationId: "test2" } } } } } as any, pointer: '', id: 'development2' }), - new Server(doc.production, { asyncapi: { parsed: { channels: { test3: { subscribe: { operationId: "test3" } } } } } as any, pointer: '', id: 'production' }), - new Server(doc.production2, { asyncapi: { parsed: { channels: { test4: { subscribe: { operationId: "test4" } } } } } as any, pointer: '', id: 'production2' }), + new Server(doc.development, { asyncapi: { parsed: { channels: { test1: { publish: { operationId: 'test1' } } } } } as any, pointer: '', id: 'development' }), + new Server(doc.development2, { asyncapi: { parsed: { channels: { test2: { publish: { operationId: 'test2' } } } } } as any, pointer: '', id: 'development2' }), + new Server(doc.production, { asyncapi: { parsed: { channels: { test3: { subscribe: { operationId: 'test3' } } } } } as any, pointer: '', id: 'production' }), + new Server(doc.production2, { asyncapi: { parsed: { channels: { test4: { subscribe: { operationId: 'test4' } } } } } as any, pointer: '', id: 'production2' }), ]; describe('Servers model', function () { @@ -61,35 +61,35 @@ describe('Servers model', function () { it('should return true if the said name is available', function () { const servers = new Servers([docItem]); expect(servers.has('development')).toEqual(true); - }) + }); it('should return false if the server name is missing', function () { const servers = new Servers([docItem]); expect(servers.has('production')).toEqual(false); - }) - }) + }); + }); describe('.filterBySend()', function () { it('should return all servers with channels with subscribe operation', function () { const servers = new Servers(serverItems); expect(servers.filterBySend()).toEqual([serverItems[2], serverItems[3]]); - }) + }); it('should return empty if there are no servers with channels with operations with subscribe action', function () { const servers = new Servers([serverItems[0], serverItems[1]]); expect(servers.filterBySend()).toEqual([]); - }) - }) + }); + }); describe('.filterByReceive()', function () { it('should return all servers with channels with publish operation', function () { const servers = new Servers(serverItems); expect(servers.filterByReceive()).toEqual([serverItems[0], serverItems[1]]); - }) + }); it('should return empty if there are no servers with channels with operations with publish action', function () { const servers = new Servers([serverItems[2], serverItems[3]]); expect(servers.filterByReceive()).toEqual([]); - }) - }) -}) \ No newline at end of file + }); + }); +}); \ No newline at end of file diff --git a/test/models/v2/tag.spec.ts b/test/models/v2/tag.spec.ts index 344f23369..5e235ff15 100644 --- a/test/models/v2/tag.spec.ts +++ b/test/models/v2/tag.spec.ts @@ -5,7 +5,7 @@ import { assertDescription, assertExtensions, assertExternalDocumentation } from describe('Tag model', function() { describe('.name()', function() { it('should return the value', function() { - const doc = { name: "LeChuck" }; + const doc = { name: 'LeChuck' }; const d = new Tag(doc); expect(d.name()).toEqual(doc.name); }); diff --git a/test/models/v2/tags.spec.ts b/test/models/v2/tags.spec.ts index eb09f6edb..ac8022995 100644 --- a/test/models/v2/tags.spec.ts +++ b/test/models/v2/tags.spec.ts @@ -35,11 +35,11 @@ describe('Tags model', function () { it('should return true if the said name is available', function () { const servers = new Tags([tagItem]); expect(servers.has('test')).toBeTruthy(); - }) + }); it('should return false if the Tag name is missing', function () { const servers = new Tags([tagItem]); expect(servers.has('anotherName')).toBeFalsy(); - }) - }) -}) \ No newline at end of file + }); + }); +}); \ No newline at end of file diff --git a/test/models/v2/utils.ts b/test/models/v2/utils.ts index 2ed63ef71..38db79245 100644 --- a/test/models/v2/utils.ts +++ b/test/models/v2/utils.ts @@ -10,7 +10,7 @@ export function serializeInput(data: DeepPartial): T { } export function assertBindings(model: Constructor) { - describe('.bindings()', function() { + describe('.bindings()', () => { const doc1 = { bindings: { amqp: { test: 'test1' } } }; const doc2 = { bindings: {} }; const doc3 = {}; @@ -18,12 +18,12 @@ export function assertBindings(model: Constructor) { const d2 = new model(doc2); const d3 = new model(doc3); - it('should return a collection of bindings', function() { + it('should return a collection of bindings', () => { expect(d1.bindings()).toBeInstanceOf(BindingsV2); expect(d1.bindings().length).toEqual(1); }); - it('should return an empty object', function() { + it('should return an empty object', () => { expect(d2.bindings()).toBeInstanceOf(BindingsV2); expect(d2.bindings().length).toEqual(0); expect(d3.bindings()).toBeInstanceOf(BindingsV2); @@ -33,7 +33,7 @@ export function assertBindings(model: Constructor) { } export function assertDescription(model: Constructor) { - describe('.hasDescription()', function() { + describe('.hasDescription()', () => { const doc1 = { description: 'Testing' }; const doc2 = { description: '' }; const doc3 = {}; @@ -41,14 +41,14 @@ export function assertDescription(model: Constructor) const d2 = new model(doc2); const d3 = new model(doc3); - it('should return a boolean indicating if the object has description', function() { + it('should return a boolean indicating if the object has description', () => { expect(d1.hasDescription()).toEqual(true); expect(d2.hasDescription()).toEqual(false); expect(d3.hasDescription()).toEqual(false); }); }); - describe('.description()', function() { + describe('.description()', () => { const doc1 = { description: 'Testing' }; const doc2 = { description: '' }; const doc3 = {}; @@ -56,19 +56,19 @@ export function assertDescription(model: Constructor) const d2 = new model(doc2); const d3 = new model(doc3); - it('should return a value', function() { + it('should return a value', () => { expect(d1.description()).toEqual(doc1.description); expect(d2.description()).toEqual(''); }); - it('should return an undefined', function() { + it('should return an undefined', () => { expect(d3.description()).toEqual(undefined); }); }); } export function assertExtensions(model: Constructor) { - describe('.extensions()', function() { + describe('.extensions()', () => { const doc1 = { 'x-test': 'testing', test: 'testing' }; const doc2 = { test: 'testing' }; const doc3 = {}; @@ -76,12 +76,12 @@ export function assertExtensions(model: Constructor) { const d2 = new model(doc2); const d3 = new model(doc3); - it('should return a collection with extensions', function() { + it('should return a collection with extensions', () => { expect(d1.extensions()).toBeInstanceOf(ExtensionsV2); expect(d1.extensions().length).toEqual(1); }); - it('should return a empty object', function() { + it('should return a empty object', () => { expect(d2.extensions()).toBeInstanceOf(ExtensionsV2); expect(d2.extensions().length).toEqual(0); expect(d3.extensions()).toBeInstanceOf(ExtensionsV2); @@ -91,7 +91,7 @@ export function assertExtensions(model: Constructor) { } export function assertExternalDocumentation(model: Constructor) { - describe('.hasExternalDocs()', function() { + describe('.hasExternalDocs()', () => { const doc1 = { externalDocs: { url: 'test.com' } }; const doc2 = { externalDocs: {} }; const doc3 = {}; @@ -99,14 +99,14 @@ export function assertExternalDocumentation(model: Constructor { expect(d1.hasExternalDocs()).toEqual(true); expect(d2.hasExternalDocs()).toEqual(false); expect(d3.hasExternalDocs()).toEqual(false); }); }); - describe('.externalDocs()', function() { + describe('.externalDocs()', () => { const doc1 = { externalDocs: { url: 'test.com' } }; const doc2 = { externalDocs: {} }; const doc3 = {}; @@ -114,12 +114,12 @@ export function assertExternalDocumentation(model: Constructor { expect(d1.externalDocs()).toBeInstanceOf(ExternalDocumentationV2); expect(d1.externalDocs()!.json()).toEqual(doc1.externalDocs); }); - it('should return a undefined', function() { + it('should return a undefined', () => { expect(d2.externalDocs()).toEqual(undefined); expect(d3.externalDocs()).toEqual(undefined); }); @@ -127,7 +127,7 @@ export function assertExternalDocumentation(model: Constructor) { - describe('tags', function() { + describe('tags', () => { const doc1 = { tags: [{ name: 'test1' }, { name: 'test2' }] }; const doc2 = { tags: [] }; const doc3 = {}; @@ -135,12 +135,12 @@ export function assertTags(model: Constructor) { const d2 = new model(doc2); const d3 = new model(doc3); - it('should return an array of tag objects', function() { + it('should return an array of tag objects', () => { expect(d1.tags()).toBeInstanceOf(TagsV2); expect(d1.tags().length).toEqual(2); }); - it('should return an empty array', function() { + it('should return an empty array', () => { expect(d2.tags()).toBeInstanceOf(TagsV2); expect(d2.tags().length).toEqual(0); expect(d3.tags()).toBeInstanceOf(TagsV2); diff --git a/test/parse.spec.ts b/test/parse.spec.ts index 4c4e23c3b..c4bad0ff4 100644 --- a/test/parse.spec.ts +++ b/test/parse.spec.ts @@ -13,7 +13,7 @@ describe('parse()', function() { version: '1.0', }, channels: {} - } + }; const { parsed, diagnostics } = await parse(parser, document); expect(parsed).toBeInstanceOf(AsyncAPIDocumentV2); @@ -27,7 +27,7 @@ describe('parse()', function() { title: 'Valid AsyncApi document', version: '1.0', }, - } + }; const { parsed, diagnostics } = await parse(parser, document); expect(parsed).toEqual(undefined); diff --git a/test/parser.spec.ts b/test/parser.spec.ts index b55b22519..dbb6f1576 100644 --- a/test/parser.spec.ts +++ b/test/parser.spec.ts @@ -1,4 +1,4 @@ -import { Spectral } from "@stoplight/spectral-core"; +import { Spectral } from '@stoplight/spectral-core'; import { Parser } from '../src/parser'; import { AsyncAPISchemaParser } from '../src/schema-parser/asyncapi-schema-parser'; diff --git a/test/schema-parser/asyncapi-schema-parser.spec.ts b/test/schema-parser/asyncapi-schema-parser.spec.ts index ab0ae9197..856e2307b 100644 --- a/test/schema-parser/asyncapi-schema-parser.spec.ts +++ b/test/schema-parser/asyncapi-schema-parser.spec.ts @@ -7,20 +7,20 @@ describe('AsyncAPISchemaParser', function () { const validSchema = { asyncapi: { semver: { - version: "2.4.0", + version: '2.4.0', } }, data: { - type: "object", + type: 'object', required: [ - "name" + 'name' ], properties: { name: { - type: "string" + type: 'string' }, address: { - type: "string" + type: 'string' }, } }, @@ -49,15 +49,15 @@ describe('AsyncAPISchemaParser', function () { const schema = >{ asyncapi: { semver: { - version: "2.4.0", + version: '2.4.0', } }, - path: ["components", "schemas", "schema1", "payload"], + path: ['components', 'schemas', 'schema1', 'payload'], data: { - oneOf: "this should be an array", + oneOf: 'this should be an array', properties: { name: { - if: "this should be an if" + if: 'this should be an if' } } } diff --git a/test/schema-parser/avro/avro-schema-parser.spec.ts b/test/schema-parser/avro/avro-schema-parser.spec.ts index f9c26015b..0eb729d2d 100644 --- a/test/schema-parser/avro/avro-schema-parser.spec.ts +++ b/test/schema-parser/avro/avro-schema-parser.spec.ts @@ -2,7 +2,7 @@ import { AvroSchemaParser, avroToJsonSchema } from '../../../src/schema-parser/a import * as fs from 'fs'; import * as path from 'path'; -import type { Schema as AvroSchema } from "avsc"; +import type { Schema as AvroSchema } from 'avsc'; import type { ParseSchemaInput } from '../../../src/schema-parser'; const inputWithAvro182 = toParseInput(fs.readFileSync(path.resolve(__dirname, './asyncapi-avro-1.8.2.json'), 'utf8')); @@ -69,7 +69,7 @@ describe('AvroSchemaParser', function () { it('should validate invalid Avro schemas as invalid', async function() { const result = await parser.validate(inputWithInvalidAvro); - expect(result).toEqual([{"message": "unknown type: undefined", "path": []}]); + expect(result).toEqual([{message: 'unknown type: undefined', path: []}]); }); it('should validate valid Avro schemas', async function() { @@ -79,7 +79,7 @@ describe('AvroSchemaParser', function () { it('should identify bugs in Avro schemas', async function() { const result = await parser.validate(inputWithBrokenAvro); - expect(result).toEqual([{"message": "undefined type name: notAValidAvroType", "path": []}]); + expect(result).toEqual([{message: 'undefined type name: notAValidAvroType', path: []}]); }); it('Issue #111 should handle pre defined records in schemas', async function() { @@ -250,27 +250,25 @@ describe('avroToJsonSchema()', function () { function toParseInput(raw: string): ParseSchemaInput { const message = JSON.parse(raw); - const schemaInput = { + return { asyncapi: { semver: { - version: "2.4.0", + version: '2.4.0', major: 2, minor: 4, patch: 0 }, - source: "", + source: '', parsed: {} as any, }, data: message.payload, meta: { - message: message, + message, }, path: [], schemaFormat: message.schemaFormat, - defaultSchemaFormat: "application/vnd.aai.asyncapi;version=2.4.0", + defaultSchemaFormat: 'application/vnd.aai.asyncapi;version=2.4.0', }; - - return schemaInput; } describe('supportExampleAttribute', function () { diff --git a/test/schema-parser/openapi/openapi-schema-parser.spec.ts b/test/schema-parser/openapi/openapi-schema-parser.spec.ts index d1f1fa1a2..644b73013 100644 --- a/test/schema-parser/openapi/openapi-schema-parser.spec.ts +++ b/test/schema-parser/openapi/openapi-schema-parser.spec.ts @@ -30,28 +30,28 @@ describe('OpenAPISchemaParser', function () { expect(result).toHaveLength(6); expect(result).toEqual([ { - "message": "must be equal to one of the allowed values", - "path": ["properties", "name", "type"] + message: 'must be equal to one of the allowed values', + path: ['properties', 'name', 'type'] }, { - "message": "must have required property '$ref'", - "path": ["properties", "name"] + message: 'must have required property \'$ref\'', + path: ['properties', 'name'] }, { - "message": "must match exactly one schema in oneOf", - "path": ["properties","name"] + message: 'must match exactly one schema in oneOf', + path: ['properties','name'] }, { - "message": "must be string", - "path": ["properties","surname","format"] + message: 'must be string', + path: ['properties','surname','format'] }, { - "message": "must have required property '$ref'", - "path": ["properties","surname"] + message: 'must have required property \'$ref\'', + path: ['properties','surname'] }, { - "message": "must match exactly one schema in oneOf", - "path": ["properties","surname"] + message: 'must match exactly one schema in oneOf', + path: ['properties','surname'] } ]); }); @@ -67,25 +67,23 @@ describe('OpenAPISchemaParser', function () { function toParseInput(raw: string): ParseSchemaInput | ValidateSchemaInput { const message = JSON.parse(raw); - const schemaInput = { + return { asyncapi: { semver: { - version: "2.4.0", + version: '2.4.0', major: 2, minor: 4, patch: 0 }, - source: "", + source: '', parsed: {} as any, }, data: message.payload, meta: { - message: message, + message, }, - path: ["channels", "myChannel", "publish", "message", "payload"], + path: ['channels', 'myChannel', 'publish', 'message', 'payload'], schemaFormat: message.schemaFormat, - defaultSchemaFormat: "application/vnd.aai.asyncapi;version=2.4.0", + defaultSchemaFormat: 'application/vnd.aai.asyncapi;version=2.4.0', }; - - return schemaInput; } diff --git a/test/schema-parser/raml/raml-schema-parser.spec.ts b/test/schema-parser/raml/raml-schema-parser.spec.ts index df3acbb9a..f7f907dca 100644 --- a/test/schema-parser/raml/raml-schema-parser.spec.ts +++ b/test/schema-parser/raml/raml-schema-parser.spec.ts @@ -9,7 +9,7 @@ const inputWithSimpleRAML = toInput(fs.readFileSync(path.resolve(__dirname, './s const outputWithSimpleRAML = '{"type":"object","examples":[{"title":"A book","author":"An author"}],"additionalProperties":true,"required":["title","author"],"properties":{"title":{"type":"string"},"author":{"type":"string","examples":["Eva"]}}}'; const inputWithComplexRAML = toInput(fs.readFileSync(path.resolve(__dirname, './complex.json'), 'utf8')); -const outputWithComplexRAML = `{"minProperties":1,"maxProperties":50,"additionalProperties":false,"discriminator":"breed","discriminatorValue":"CatOne","type":"object","required":["proscons","name","breed","age","rating","year_of_birth","time_of_birth","addition_date","removal_date","photo","description","character","siblings","parents","ratingHistory","additionalData"],"properties":{"proscons":{"anyOf":[true,true]},"name":true,"breed":true,"age":true,"rating":{"type":"integer","multipleOf":5,"example":{"displayName":"Cat's rating","description":"Rating of cat's awesomeness","strict":false,"value":50}},"year_of_birth":{"type":"string","format":"date"},"time_of_birth":{"type":"string","format":"time"},"dt_of_birth":{"type":"string","format":"date-time-only"},"addition_date":{"type":"string","format":"rfc2616"},"removal_date":{"type":"string","format":"date-time"},"photo":{"type":"string","minLength":1,"maxLength":307200},"description":{"type":"null"},"habits":{"type":"string"},"character":{"anyOf":[{"type":"null"},{"type":"string"}]},"siblings":{"type":"array","items":{"type":"string"}},"parents":{"type":"array","items":true},"ratingHistory":{"type":"array","items":{"anyOf":[{"type":"integer"},{"type":"number"}]}},"additionalData":{"type":"object","additionalProperties":true,"required":["weight"],"properties":{"weight":{"type":"number"}}}}}`; +const outputWithComplexRAML = '{"minProperties":1,"maxProperties":50,"additionalProperties":false,"discriminator":"breed","discriminatorValue":"CatOne","type":"object","required":["proscons","name","breed","age","rating","year_of_birth","time_of_birth","addition_date","removal_date","photo","description","character","siblings","parents","ratingHistory","additionalData"],"properties":{"proscons":{"anyOf":[true,true]},"name":true,"breed":true,"age":true,"rating":{"type":"integer","multipleOf":5,"example":{"displayName":"Cat\'s rating","description":"Rating of cat\'s awesomeness","strict":false,"value":50}},"year_of_birth":{"type":"string","format":"date"},"time_of_birth":{"type":"string","format":"time"},"dt_of_birth":{"type":"string","format":"date-time-only"},"addition_date":{"type":"string","format":"rfc2616"},"removal_date":{"type":"string","format":"date-time"},"photo":{"type":"string","minLength":1,"maxLength":307200},"description":{"type":"null"},"habits":{"type":"string"},"character":{"anyOf":[{"type":"null"},{"type":"string"}]},"siblings":{"type":"array","items":{"type":"string"}},"parents":{"type":"array","items":true},"ratingHistory":{"type":"array","items":{"anyOf":[{"type":"integer"},{"type":"number"}]}},"additionalData":{"type":"object","additionalProperties":true,"required":["weight"],"properties":{"weight":{"type":"number"}}}}}'; const inputWithInvalidRAML = toInput(fs.readFileSync(path.resolve(__dirname, './invalid.json'), 'utf8')); @@ -45,32 +45,30 @@ describe('validate()', function() { expect(results).toHaveLength(1); const result = (results as SchemaValidateResult[])[0]; - expect(result.message).toEqual("Property 'examples' should be a map"); + expect(result.message).toEqual('Property \'examples\' should be a map'); expect(result.path).toEqual([]); // Validator doesn't provide info about the error path }); }); function toInput(raw: string): ParseSchemaInput | ValidateSchemaInput { const message = JSON.parse(raw); - const schemaInput = { + return { asyncapi: { semver: { - version: "2.4.0", + version: '2.4.0', major: 2, minor: 4, patch: 0 }, - source: "", + source: '', parsed: {} as any, }, - path: ["otherchannel", "subscribe", "message", "payload"], + path: ['otherchannel', 'subscribe', 'message', 'payload'], data: message.payload, meta: { - message: message, + message, }, schemaFormat: message.schemaFormat, - defaultSchemaFormat: "application/vnd.aai.asyncapi;version=2.4.0", + defaultSchemaFormat: 'application/vnd.aai.asyncapi;version=2.4.0', }; - - return schemaInput; } \ No newline at end of file diff --git a/test/schema-parser/spectral-rule-v2.spec.ts b/test/schema-parser/spectral-rule-v2.spec.ts index 26208a348..445322ba5 100644 --- a/test/schema-parser/spectral-rule-v2.spec.ts +++ b/test/schema-parser/spectral-rule-v2.spec.ts @@ -25,7 +25,7 @@ describe('aas2schemaParserRule', function() { } } } - } + }; const { diagnostics } = await validate(parser, document); const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); expect(filteredDiagnostics).toHaveLength(0); @@ -43,10 +43,10 @@ describe('aas2schemaParserRule', function() { publish: { message: { payload: { - oneOf: "this should be an array", + oneOf: 'this should be an array', properties: { name: { - if: "this should be an if" + if: 'this should be an if' } } } @@ -54,7 +54,7 @@ describe('aas2schemaParserRule', function() { } } } - } + }; const { diagnostics } = await validate(parser, document); const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); @@ -84,17 +84,17 @@ describe('aas2schemaParserRule', function() { messages: { message: { payload: { - oneOf: "this should be an array", + oneOf: 'this should be an array', properties: { name: { - if: "this should be an if" + if: 'this should be an if' } } } } } } - } + }; const { diagnostics } = await validate(parser, document); const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); @@ -126,10 +126,10 @@ describe('aas2schemaParserRule', function() { publish: { message: { payload: { - oneOf: "this should be an array", + oneOf: 'this should be an array', properties: { name: { - if: "this should be an if" + if: 'this should be an if' } } } @@ -138,7 +138,7 @@ describe('aas2schemaParserRule', function() { } } } - } + }; const { diagnostics } = await validate(parser, document); const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); @@ -170,17 +170,17 @@ describe('aas2schemaParserRule', function() { oneOf: [ { payload: { - oneOf: "this should be an array", + oneOf: 'this should be an array', properties: { name: { - if: "this should be an if" + if: 'this should be an if' } } } }, { payload: { - oneOf: "this should be an array", + oneOf: 'this should be an array', } } ] @@ -188,7 +188,7 @@ describe('aas2schemaParserRule', function() { } } } - } + }; const { diagnostics } = await validate(parser, document); const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); @@ -229,7 +229,7 @@ describe('aas2schemaParserRule', function() { } } } - } + }; const { diagnostics } = await validate(parser, document); const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); expect(filteredDiagnostics).toHaveLength(0); @@ -254,7 +254,7 @@ describe('aas2schemaParserRule', function() { } } } - } + }; const { diagnostics } = await validate(parser, document); const filteredDiagnostics = filterDiagnostics(diagnostics, 'asyncapi-schemas-v2'); @@ -280,10 +280,10 @@ describe('aas2schemaParserRule', function() { publish: { message: { payload: { - oneOf: "this should be an array", + oneOf: 'this should be an array', properties: { name: { - if: "this should be an if" + if: 'this should be an if' } } } @@ -291,7 +291,7 @@ describe('aas2schemaParserRule', function() { } } } - } + }; const { diagnostics } = await validate(parser, document); expect(filterDiagnostics(diagnostics, 'asyncapi-schemas-v2')).toHaveLength(2); diff --git a/test/spectral.test.ts b/test/spectral.test.ts index a0c9116b7..a1c80be57 100644 --- a/test/spectral.test.ts +++ b/test/spectral.test.ts @@ -29,7 +29,7 @@ describe('Custom Spectral instance', function() { it('should throw error when input is not an AsyncAPI document (another spec case)', async function() { const document = { openapi: '3.0.0', - } + }; const { diagnostics } = await validate(parser, document as any); expect(diagnostics.length > 0).toEqual(true); @@ -48,7 +48,7 @@ describe('Custom Spectral instance', function() { it('should throw error when input is an unsupported version of AsyncAPI', async function() { const document = { asyncapi: '2.1.37', - } + }; const { diagnostics } = await validate(parser, document as any); expect(diagnostics.length > 0).toEqual(true); diff --git a/test/utils.spec.ts b/test/utils.spec.ts index 7e5cbf5be..746646c7a 100644 --- a/test/utils.spec.ts +++ b/test/utils.spec.ts @@ -22,7 +22,6 @@ describe('utils', function() { class Model extends BaseModel {} describe('toAsyncAPIDocument()', function() { - it('normal object should not return AsyncAPIDocument instance', function() { expect(toAsyncAPIDocument({})).toEqual(undefined); }); @@ -161,7 +160,7 @@ describe('utils', function() { range: { start: { line: 0, character: 0 }, end: { line: 0, character: 0 } }, severity: DiagnosticSeverity.Error, path: [], - } + }; it('should return true when diagnostics have at least one error', function() { const diagnostics: Diagnostic[] = [ @@ -173,7 +172,7 @@ describe('utils', function() { ...simpleDiagnostic, severity: DiagnosticSeverity.Warning, } - ] + ]; expect(hasErrorDiagnostic(diagnostics)).toEqual(true); }); @@ -188,7 +187,7 @@ describe('utils', function() { ...simpleDiagnostic, severity: DiagnosticSeverity.Warning, } - ] + ]; expect(hasErrorDiagnostic(diagnostics)).toEqual(false); }); @@ -201,7 +200,7 @@ describe('utils', function() { range: { start: { line: 0, character: 0 }, end: { line: 0, character: 0 } }, severity: DiagnosticSeverity.Error, path: [], - } + }; it('should return true when diagnostics have at least one warning', function() { const diagnostics: Diagnostic[] = [ @@ -213,7 +212,7 @@ describe('utils', function() { ...simpleDiagnostic, severity: DiagnosticSeverity.Warning, } - ] + ]; expect(hasWarningDiagnostic(diagnostics)).toEqual(true); }); @@ -228,7 +227,7 @@ describe('utils', function() { ...simpleDiagnostic, severity: DiagnosticSeverity.Error, } - ] + ]; expect(hasWarningDiagnostic(diagnostics)).toEqual(false); }); @@ -236,7 +235,7 @@ describe('utils', function() { describe('createDetailedAsyncAPI()', function() { it('should create detailed object', function () { - const source = "{ asyncapi: '2.1.37' }"; + const source = '{ asyncapi: \'2.1.37\' }'; const parsed = { asyncapi: '2.1.37' }; const detailed = createDetailedAsyncAPI(source, parsed as any); expect(detailed.source).toEqual(source); From 7e99ff286c747c9cc180e083841d5bd70915caa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Thu, 8 Sep 2022 10:11:18 +0200 Subject: [PATCH 041/126] refactor: handle circular references in schemas (#591) --- src/document.ts | 41 ++++++++ src/lint.ts | 3 +- src/models/v2/schema.ts | 11 +++ src/parse.ts | 6 +- src/stringify.ts | 16 +++- src/utils.ts | 78 ++++++++-------- test/document.spec.ts | 145 +++++++++++++++++++++++++++++ test/mocks/parse/circular-ref.yaml | 9 ++ test/parse.spec.ts | 121 +++++++++++++++++++++++- test/utils.spec.ts | 140 ---------------------------- 10 files changed, 383 insertions(+), 187 deletions(-) create mode 100644 src/document.ts create mode 100644 test/document.spec.ts create mode 100644 test/mocks/parse/circular-ref.yaml diff --git a/src/document.ts b/src/document.ts new file mode 100644 index 000000000..d37112fb8 --- /dev/null +++ b/src/document.ts @@ -0,0 +1,41 @@ +import { newAsyncAPIDocument, AsyncAPIDocumentV2, AsyncAPIDocumentV3 } from './models'; +import { unstringify } from './stringify'; +import { createDetailedAsyncAPI } from './utils'; + +import { + xParserSpecParsed, + xParserSpecStringified, +} from './constants'; + +import type { AsyncAPIDocumentInterface } from './models'; + +export function toAsyncAPIDocument(maybeDoc: unknown): AsyncAPIDocumentInterface | undefined { + if (isAsyncAPIDocument(maybeDoc)) { + return maybeDoc; + } + if (!isParsedDocument(maybeDoc)) { + return; + } + return unstringify(maybeDoc) || newAsyncAPIDocument(createDetailedAsyncAPI(maybeDoc, maybeDoc as any)); +} + +export function isAsyncAPIDocument(maybeDoc: unknown): maybeDoc is AsyncAPIDocumentInterface { + return maybeDoc instanceof AsyncAPIDocumentV2 || maybeDoc instanceof AsyncAPIDocumentV3; +} + +export function isParsedDocument(maybeDoc: unknown): maybeDoc is Record { + if (typeof maybeDoc !== 'object' || maybeDoc === null) { + return false; + } + return Boolean((maybeDoc as Record)[xParserSpecParsed]); +} + +export function isStringifiedDocument(maybeDoc: unknown): maybeDoc is Record { + if (typeof maybeDoc !== 'object' || maybeDoc === null) { + return false; + } + return ( + Boolean((maybeDoc as Record)[xParserSpecParsed]) && + Boolean((maybeDoc as Record)[xParserSpecStringified]) + ); +} diff --git a/src/lint.ts b/src/lint.ts index d35b8210b..07aaef547 100644 --- a/src/lint.ts +++ b/src/lint.ts @@ -1,6 +1,7 @@ import { Document } from '@stoplight/spectral-core'; import { Yaml } from '@stoplight/spectral-parsers'; -import { toAsyncAPIDocument, normalizeInput, hasWarningDiagnostic, hasErrorDiagnostic } from './utils'; +import { toAsyncAPIDocument } from './document'; +import { normalizeInput, hasWarningDiagnostic, hasErrorDiagnostic } from './utils'; import type { IRunOpts } from '@stoplight/spectral-core'; import type { Parser } from './parser'; diff --git a/src/models/v2/schema.ts b/src/models/v2/schema.ts index 9d42fe3fd..9adf1d765 100644 --- a/src/models/v2/schema.ts +++ b/src/models/v2/schema.ts @@ -1,7 +1,9 @@ import { BaseModel } from '../base'; import { extensions, hasExternalDocs, externalDocs } from './mixins'; +import { retrievePossibleRef, hasRef } from '../../utils'; +import type { ModelMetadata } from '../base'; import type { ExtensionsInterface } from '../extensions'; import type { ExternalDocumentationInterface } from '../external-docs'; import type { SchemaInterface } from '../schema'; @@ -9,6 +11,14 @@ import type { SchemaInterface } from '../schema'; import type { v2 } from '../../spec-types'; export class Schema extends BaseModel implements SchemaInterface { + constructor( + _json: v2.AsyncAPISchemaObject, + _meta: ModelMetadata & { id: string, parent?: Schema } = {} as any, + ) { + _json = retrievePossibleRef(_json, _meta.pointer, _meta.asyncapi?.parsed); + super(_json, _meta); + } + uid(): string { return this._meta.id as any; } @@ -151,6 +161,7 @@ export class Schema extends BaseModel); validatedDoc[String(xParserSpecParsed)] = true; const detailed = createDetailedAsyncAPI(asyncapi as string | Record, validatedDoc); diff --git a/src/stringify.ts b/src/stringify.ts index 556400d9c..4c786ef19 100644 --- a/src/stringify.ts +++ b/src/stringify.ts @@ -1,6 +1,7 @@ import { AsyncAPIDocumentInterface, newAsyncAPIDocument } from './models'; -import { createDetailedAsyncAPI, isAsyncAPIDocument, isParsedDocument, isStringifiedDocument } from './utils'; +import { isAsyncAPIDocument, isParsedDocument, isStringifiedDocument } from './document'; +import { createDetailedAsyncAPI } from './utils'; import { xParserSpecStringified } from './constants'; import type { DetailedAsyncAPI } from './types'; @@ -45,10 +46,17 @@ export function unstringify(document: unknown): AsyncAPIDocumentInterface | unde // remove `x-parser-spec-stringified` extension delete (>parsed)[String(xParserSpecStringified)]; - traverseStringifiedDoc(document, undefined, document, new Map(), new Map()); + traverseStringifiedData(document, undefined, document, new Map(), new Map()); return newAsyncAPIDocument(createDetailedAsyncAPI(document as string, parsed as DetailedAsyncAPI['parsed'])); } +export function unfreeze(data: Record) { + const stringifiedData = JSON.stringify(data, refReplacer()); + const unstringifiedData = JSON.parse(stringifiedData); + traverseStringifiedData(unstringifiedData, undefined, unstringifiedData, new Map(), new Map()); + return unstringifiedData; +} + function refReplacer() { const modelPaths = new Map(); const paths = new Map(); @@ -82,7 +90,7 @@ function refReplacer() { } const refRoot = '$ref:$'; -function traverseStringifiedDoc(parent: any, field: string | undefined, root: any, objToPath: Map, pathToObj: Map) { +function traverseStringifiedData(parent: any, field: string | undefined, root: any, objToPath: Map, pathToObj: Map) { let objOrPath = parent; let path = refRoot; @@ -107,7 +115,7 @@ function traverseStringifiedDoc(parent: any, field: string | undefined, root: an // traverse all keys, only if object is array/object if (objOrPath === Object(objOrPath)) { for (const f in objOrPath) { - traverseStringifiedDoc(objOrPath, f, root, objToPath, pathToObj); + traverseStringifiedData(objOrPath, f, root, objToPath, pathToObj); } } } \ No newline at end of file diff --git a/src/utils.ts b/src/utils.ts index 1df9b86ca..c2e5d5bc9 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,45 +1,7 @@ import { DiagnosticSeverity } from '@stoplight/types'; -import { newAsyncAPIDocument, AsyncAPIDocumentInterface, AsyncAPIDocumentV2, AsyncAPIDocumentV3 } from './models'; -import { unstringify } from './stringify'; - -import { - xParserSpecParsed, - xParserSpecStringified, -} from './constants'; import type { ISpectralDiagnostic } from '@stoplight/spectral-core'; -import type { AsyncAPISemver, AsyncAPIObject, DetailedAsyncAPI, MaybeAsyncAPI } from 'types'; - -export function toAsyncAPIDocument(maybeDoc: unknown): AsyncAPIDocumentInterface | undefined { - if (isAsyncAPIDocument(maybeDoc)) { - return maybeDoc; - } - if (!isParsedDocument(maybeDoc)) { - return; - } - return unstringify(maybeDoc) || newAsyncAPIDocument(createDetailedAsyncAPI(maybeDoc, maybeDoc as any)); -} - -export function isAsyncAPIDocument(maybeDoc: unknown): maybeDoc is AsyncAPIDocumentInterface { - return maybeDoc instanceof AsyncAPIDocumentV2 || maybeDoc instanceof AsyncAPIDocumentV3; -} - -export function isParsedDocument(maybeDoc: unknown): maybeDoc is Record { - if (typeof maybeDoc !== 'object' || maybeDoc === null) { - return false; - } - return Boolean((maybeDoc as Record)[xParserSpecParsed]); -} - -export function isStringifiedDocument(maybeDoc: unknown): maybeDoc is Record { - if (typeof maybeDoc !== 'object' || maybeDoc === null) { - return false; - } - return ( - Boolean((maybeDoc as Record)[xParserSpecParsed]) && - Boolean((maybeDoc as Record)[xParserSpecStringified]) - ); -} +import type { AsyncAPISemver, AsyncAPIObject, DetailedAsyncAPI, MaybeAsyncAPI } from './types'; export function createDetailedAsyncAPI(source: string | Record, parsed: AsyncAPIObject): DetailedAsyncAPI { return { @@ -105,6 +67,10 @@ export function isObject(value: unknown): value is Record { return Boolean(value) && typeof value === 'object' && Array.isArray(value) === false; } +export function hasRef(value: unknown): value is { $ref: string } { + return isObject(value) && '$ref' in value && typeof value.$ref === 'string'; +} + export function tilde(str: string) { return str.replace(/[~/]{1}/g, (sub) => { switch (sub) { @@ -124,4 +90,38 @@ export function untilde(str: string) { } return sub; }); +} + +export function retrievePossibleRef(data: any & { $ref?: string }, pathOfData: string, spec: any = {}): any { + if (!hasRef(data)) { + return data; + } + + const refPath = serializePath(data.$ref); + if (pathOfData.startsWith(refPath)) { // starts by given path + return retrieveDeepData(spec, splitPath(refPath)) || data; + } else if (pathOfData.includes(refPath)) { // circular path in substring of path + const substringPath = pathOfData.split(refPath)[0]; + return retrieveDeepData(spec, splitPath(`${substringPath}${refPath}`)) || data; + } + return data; +} + +function retrieveDeepData(value: Record, path: string[]) { + let index = 0; + const length = path.length; + + while (typeof value === 'object' && value && index < length) { + value = value[path[index++]]; + } + return index === length ? value : undefined; +} + +function serializePath(path: string) { + if (path.startsWith('#')) return path.substring(1); + return path; +} + +function splitPath(path: string): string[] { + return path.split('/').filter(Boolean).map(untilde); } \ No newline at end of file diff --git a/test/document.spec.ts b/test/document.spec.ts new file mode 100644 index 000000000..d5ceb8c98 --- /dev/null +++ b/test/document.spec.ts @@ -0,0 +1,145 @@ +import { xParserSpecParsed, xParserSpecStringified } from '../src/constants'; +import { newAsyncAPIDocument, BaseModel, AsyncAPIDocumentV2 } from '../src/models'; +import { + toAsyncAPIDocument, + isAsyncAPIDocument, + isParsedDocument, + isStringifiedDocument, +} from '../src/document'; +import { createDetailedAsyncAPI } from '../src/utils'; + +describe('utils', function() { + class Model extends BaseModel {} + + describe('toAsyncAPIDocument()', function() { + it('normal object should not return AsyncAPIDocument instance', function() { + expect(toAsyncAPIDocument({})).toEqual(undefined); + }); + + it('null object should not return AsyncAPIDocument instance', function() { + expect(toAsyncAPIDocument(null)).toEqual(undefined); + }); + + it('primitive should not return AsyncAPIDocument instance', function() { + expect(toAsyncAPIDocument('AsyncAPI rocks!')).toEqual(undefined); + }); + + it('BaseModel instance should not return AsyncAPIDocument instance', function() { + expect(toAsyncAPIDocument(new Model({}))).toEqual(undefined); + }); + + it('AsyncAPIDocument instance should return AsyncAPIDocument instance', function() { + const doc = { asyncapi: '2.0.0' }; + const detailed = createDetailedAsyncAPI(doc, doc as any); + expect(toAsyncAPIDocument(newAsyncAPIDocument(detailed))).toBeInstanceOf(AsyncAPIDocumentV2); + }); + + it('parsed document should return AsyncAPIDocument instance', function() { + expect(toAsyncAPIDocument({ asyncapi: '2.0.0', [xParserSpecParsed]: true })).toBeInstanceOf(AsyncAPIDocumentV2); + }); + + it('stringified document should return AsyncAPIDocument instance', function() { + expect(toAsyncAPIDocument({ asyncapi: '2.0.0', [xParserSpecParsed]: true, [xParserSpecStringified]: true })).toBeInstanceOf(AsyncAPIDocumentV2); + }); + + it('stringified document (with missed parsed extension) should not return AsyncAPIDocument instance', function() { + expect(toAsyncAPIDocument({ [xParserSpecStringified]: true })).toEqual(undefined); + }); + }); + + describe('isAsyncAPIDocument()', function() { + it('normal object should not be AsyncAPI document', function() { + expect(isAsyncAPIDocument({})).toEqual(false); + }); + + it('null object should not be AsyncAPI document', function() { + expect(isAsyncAPIDocument(null)).toEqual(false); + }); + + it('primitive should not be AsyncAPI document', function() { + expect(isAsyncAPIDocument('AsyncAPI rocks!')).toEqual(false); + }); + + it('BaseModel instance should not be AsyncAPI document', function() { + expect(isAsyncAPIDocument(new Model({}))).toEqual(false); + }); + + it('AsyncAPIDocument instance should be AsyncAPI document', function() { + const doc = { asyncapi: '2.0.0' }; + const detailed = createDetailedAsyncAPI(doc, doc as any); + expect(isAsyncAPIDocument(newAsyncAPIDocument(detailed))).toEqual(true); + }); + }); + + describe('isParsedDocument()', function() { + it('normal object should not be parsed document', function() { + expect(isParsedDocument({})).toEqual(false); + }); + + it('null object should not be parsed document', function() { + expect(isParsedDocument(null)).toEqual(false); + }); + + it('primitive should not be parsed document', function() { + expect(isParsedDocument('AsyncAPI rocks!')).toEqual(false); + }); + + it('BaseModel instance should not be AsyncAPI document', function() { + expect(isParsedDocument(new Model({}))).toEqual(false); + }); + + it('AsyncAPIDocument instance should not be parsed document', function() { + const doc = { asyncapi: '2.0.0' }; + const detailed = createDetailedAsyncAPI(doc, doc as any); + expect(isParsedDocument(newAsyncAPIDocument(detailed))).toEqual(false); + }); + + it('AsyncAPIDocument instance with proper extension should not be parsed document', function() { + const doc = { asyncapi: '2.0.0', [xParserSpecParsed]: true }; + const detailed = createDetailedAsyncAPI(doc, doc as any); + expect(isParsedDocument(newAsyncAPIDocument(detailed))).toEqual(false); + }); + + it('object with proper extension should be parsed document', function() { + expect(isParsedDocument({ [xParserSpecParsed]: true })).toEqual(true); + }); + }); + + describe('isStringifiedDocument()', function() { + it('normal object should not be parsed document', function() { + expect(isStringifiedDocument({})).toEqual(false); + }); + + it('null object should not be parsed document', function() { + expect(isStringifiedDocument(null)).toEqual(false); + }); + + it('primitive should not be parsed document', function() { + expect(isStringifiedDocument('AsyncAPI rocks!')).toEqual(false); + }); + + it('BaseModel instance should not be AsyncAPI document', function() { + expect(isStringifiedDocument(new Model({}))).toEqual(false); + }); + + it('AsyncAPIDocument instance should not be parsed document', function() { + const doc = { asyncapi: '2.0.0' }; + const detailed = createDetailedAsyncAPI(doc, doc as any); + expect(isStringifiedDocument(newAsyncAPIDocument(detailed))).toEqual(false); + }); + + it('AsyncAPIDocument instance with proper extension should not be parsed document', function() { + const doc = { asyncapi: '2.0.0', [xParserSpecParsed]: true, [xParserSpecStringified]: true }; + const detailed = createDetailedAsyncAPI(doc, doc as any); + expect(isStringifiedDocument(newAsyncAPIDocument(detailed))).toEqual(false); + }); + + it('object with only stringified extension should not be parsed document', function() { + expect(isStringifiedDocument({ [xParserSpecStringified]: true })).toEqual(false); + }); + + it('object with proper extensions should be parsed document', function() { + expect(isStringifiedDocument({ [xParserSpecParsed]: true, [xParserSpecStringified]: true })).toEqual(true); + }); + }); +}); diff --git a/test/mocks/parse/circular-ref.yaml b/test/mocks/parse/circular-ref.yaml new file mode 100644 index 000000000..6e26efca0 --- /dev/null +++ b/test/mocks/parse/circular-ref.yaml @@ -0,0 +1,9 @@ +type: 'object' +properties: + deepProperty: + type: 'object' + properties: + property: + type: 'number' + circular: + $ref: '#/properties/deepProperty' \ No newline at end of file diff --git a/test/parse.spec.ts b/test/parse.spec.ts index c4bad0ff4..91d92cc76 100644 --- a/test/parse.spec.ts +++ b/test/parse.spec.ts @@ -24,7 +24,7 @@ describe('parse()', function() { const document = { asyncapi: '2.0.0', info: { - title: 'Valid AsyncApi document', + title: 'Invalid AsyncApi document', version: '1.0', }, }; @@ -33,4 +33,123 @@ describe('parse()', function() { expect(parsed).toEqual(undefined); expect(diagnostics.length > 0).toEqual(true); }); + + it('should preserve references', async function() { + const document = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'publishOperation', + message: { + $ref: '#/components/messages/message' + } + }, + subscribe: { + operationId: 'subscribeOperation', + message: { + $ref: '#/components/messages/message' + } + } + } + }, + components: { + messages: { + message: { + payload: { + type: 'object', + } + } + } + } + }; + const { parsed } = await parse(parser, document); + + const publishMessage = parsed?.channels().get('channel')?.operations().get('publishOperation')?.messages()[0]; + const subscribeMessage = parsed?.channels().get('channel')?.operations().get('subscribeOperation')?.messages()[0]; + const componentsMessage = parsed?.components()?.messages()?.get('message'); + expect(publishMessage?.json() !== undefined).toEqual(true); + expect(subscribeMessage?.json() !== undefined).toEqual(true); + expect(componentsMessage?.json() !== undefined).toEqual(true); + expect(componentsMessage?.json() === publishMessage?.json()).toEqual(true); + expect(componentsMessage?.json() === subscribeMessage?.json()).toEqual(true); + expect(publishMessage?.json() === subscribeMessage?.json()).toEqual(true); + }); + + it('should parse circular references (in this same document)', async function() { + const document = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'someId', + message: { + payload: { + properties: { + nonCircular: { + type: 'string', + }, + circular: { + $ref: '#/channels/channel/publish/message/payload' + } + } + } + } + } + } + } + }; + const { parsed } = await parse(parser, document); + + const messagePayload = parsed?.channels().get('channel')?.operations().get('someId')?.messages()[0].payload(); + expect(messagePayload?.json() !== undefined).toEqual(true); + expect(messagePayload?.properties()?.['circular'].json() !== undefined).toEqual(true); + expect(messagePayload?.properties()?.['circular'].json() === messagePayload?.json()).toEqual(true); // expect that same reference + }); + + it('should parse circular references (in external file)', async function() { + const document = { + asyncapi: '2.0.0', + info: { + title: 'Valid AsyncApi document', + version: '1.0', + }, + channels: { + channel: { + publish: { + operationId: 'someId', + message: { + payload: { + properties: { + nonCircular: { + type: 'string', + }, + circular: { + $ref: './mocks/parse/circular-ref.yaml' + } + } + } + } + } + } + } + }; + const { parsed } = await parse(parser, document, { validateOptions: { path: __filename } }); + + const messagePayload = parsed?.channels().get('channel')?.operations().get('someId')?.messages()[0].payload(); + const circular = messagePayload?.properties()?.['circular']; + const deepProperty = circular?.properties()?.['deepProperty']; + const deepCircular = deepProperty?.properties()?.['circular']; + expect(deepProperty?.json() !== undefined).toEqual(true); + expect(deepCircular?.json() !== undefined).toEqual(true); + expect(deepProperty?.json() === deepCircular?.json()).toEqual(true); // expect that same reference + }); }); diff --git a/test/utils.spec.ts b/test/utils.spec.ts index 746646c7a..723de2174 100644 --- a/test/utils.spec.ts +++ b/test/utils.spec.ts @@ -1,13 +1,7 @@ import { DiagnosticSeverity } from '@stoplight/types'; import { cloneDeep } from 'lodash'; -import { xParserSpecParsed, xParserSpecStringified } from '../src/constants'; -import { newAsyncAPIDocument, BaseModel, AsyncAPIDocumentV2 } from '../src/models'; import { - toAsyncAPIDocument, - isAsyncAPIDocument, - isParsedDocument, - isStringifiedDocument, hasErrorDiagnostic, hasWarningDiagnostic, createDetailedAsyncAPI, @@ -19,140 +13,6 @@ import { import type { Diagnostic } from '../src/types'; describe('utils', function() { - class Model extends BaseModel {} - - describe('toAsyncAPIDocument()', function() { - it('normal object should not return AsyncAPIDocument instance', function() { - expect(toAsyncAPIDocument({})).toEqual(undefined); - }); - - it('null object should not return AsyncAPIDocument instance', function() { - expect(toAsyncAPIDocument(null)).toEqual(undefined); - }); - - it('primitive should not return AsyncAPIDocument instance', function() { - expect(toAsyncAPIDocument('AsyncAPI rocks!')).toEqual(undefined); - }); - - it('BaseModel instance should not return AsyncAPIDocument instance', function() { - expect(toAsyncAPIDocument(new Model({}))).toEqual(undefined); - }); - - it('AsyncAPIDocument instance should return AsyncAPIDocument instance', function() { - const doc = { asyncapi: '2.0.0' }; - const detailed = createDetailedAsyncAPI(doc, doc as any); - expect(toAsyncAPIDocument(newAsyncAPIDocument(detailed))).toBeInstanceOf(AsyncAPIDocumentV2); - }); - - it('parsed document should return AsyncAPIDocument instance', function() { - expect(toAsyncAPIDocument({ asyncapi: '2.0.0', [xParserSpecParsed]: true })).toBeInstanceOf(AsyncAPIDocumentV2); - }); - - it('stringified document should return AsyncAPIDocument instance', function() { - expect(toAsyncAPIDocument({ asyncapi: '2.0.0', [xParserSpecParsed]: true, [xParserSpecStringified]: true })).toBeInstanceOf(AsyncAPIDocumentV2); - }); - - it('stringified document (with missed parsed extension) should not return AsyncAPIDocument instance', function() { - expect(toAsyncAPIDocument({ [xParserSpecStringified]: true })).toEqual(undefined); - }); - }); - - describe('isAsyncAPIDocument()', function() { - it('normal object should not be AsyncAPI document', function() { - expect(isAsyncAPIDocument({})).toEqual(false); - }); - - it('null object should not be AsyncAPI document', function() { - expect(isAsyncAPIDocument(null)).toEqual(false); - }); - - it('primitive should not be AsyncAPI document', function() { - expect(isAsyncAPIDocument('AsyncAPI rocks!')).toEqual(false); - }); - - it('BaseModel instance should not be AsyncAPI document', function() { - expect(isAsyncAPIDocument(new Model({}))).toEqual(false); - }); - - it('AsyncAPIDocument instance should be AsyncAPI document', function() { - const doc = { asyncapi: '2.0.0' }; - const detailed = createDetailedAsyncAPI(doc, doc as any); - expect(isAsyncAPIDocument(newAsyncAPIDocument(detailed))).toEqual(true); - }); - }); - - describe('isParsedDocument()', function() { - it('normal object should not be parsed document', function() { - expect(isParsedDocument({})).toEqual(false); - }); - - it('null object should not be parsed document', function() { - expect(isParsedDocument(null)).toEqual(false); - }); - - it('primitive should not be parsed document', function() { - expect(isParsedDocument('AsyncAPI rocks!')).toEqual(false); - }); - - it('BaseModel instance should not be AsyncAPI document', function() { - expect(isParsedDocument(new Model({}))).toEqual(false); - }); - - it('AsyncAPIDocument instance should not be parsed document', function() { - const doc = { asyncapi: '2.0.0' }; - const detailed = createDetailedAsyncAPI(doc, doc as any); - expect(isParsedDocument(newAsyncAPIDocument(detailed))).toEqual(false); - }); - - it('AsyncAPIDocument instance with proper extension should not be parsed document', function() { - const doc = { asyncapi: '2.0.0', [xParserSpecParsed]: true }; - const detailed = createDetailedAsyncAPI(doc, doc as any); - expect(isParsedDocument(newAsyncAPIDocument(detailed))).toEqual(false); - }); - - it('object with proper extension should be parsed document', function() { - expect(isParsedDocument({ [xParserSpecParsed]: true })).toEqual(true); - }); - }); - - describe('isStringifiedDocument()', function() { - it('normal object should not be parsed document', function() { - expect(isStringifiedDocument({})).toEqual(false); - }); - - it('null object should not be parsed document', function() { - expect(isStringifiedDocument(null)).toEqual(false); - }); - - it('primitive should not be parsed document', function() { - expect(isStringifiedDocument('AsyncAPI rocks!')).toEqual(false); - }); - - it('BaseModel instance should not be AsyncAPI document', function() { - expect(isStringifiedDocument(new Model({}))).toEqual(false); - }); - - it('AsyncAPIDocument instance should not be parsed document', function() { - const doc = { asyncapi: '2.0.0' }; - const detailed = createDetailedAsyncAPI(doc, doc as any); - expect(isStringifiedDocument(newAsyncAPIDocument(detailed))).toEqual(false); - }); - - it('AsyncAPIDocument instance with proper extension should not be parsed document', function() { - const doc = { asyncapi: '2.0.0', [xParserSpecParsed]: true, [xParserSpecStringified]: true }; - const detailed = createDetailedAsyncAPI(doc, doc as any); - expect(isStringifiedDocument(newAsyncAPIDocument(detailed))).toEqual(false); - }); - - it('object with only stringified extension should not be parsed document', function() { - expect(isStringifiedDocument({ [xParserSpecStringified]: true })).toEqual(false); - }); - - it('object with proper extensions should be parsed document', function() { - expect(isStringifiedDocument({ [xParserSpecParsed]: true, [xParserSpecStringified]: true })).toEqual(true); - }); - }); - describe('hasErrorDiagnostic()', function() { const simpleDiagnostic: Diagnostic = { code: 'test-code', From 912b8765f9d9bda75f7128da2bae0a4b7cfb5cc3 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Thu, 8 Sep 2022 10:21:03 +0200 Subject: [PATCH 042/126] refactor: merge `master` into `next-major` (#600) --- .github/workflows/automerge-orphans.yml | 1 + .github/workflows/autoupdate.yml | 3 +- .github/workflows/help-command.yml | 2 +- .github/workflows/if-nodejs-release.yml | 18 +++++ .github/workflows/if-nodejs-version-bump.yml | 18 ++++- .github/workflows/link-check-cron.yml | 3 +- .github/workflows/stale-issues-prs.yml | 6 +- CODE_OF_CONDUCT.md | 46 ++++++++++++ CONTRIBUTING.md | 79 ++++++++++++++++++++ README.md | 14 ++-- package-lock.json | 2 +- 11 files changed, 179 insertions(+), 13 deletions(-) create mode 100644 CODE_OF_CONDUCT.md create mode 100644 CONTRIBUTING.md diff --git a/.github/workflows/automerge-orphans.yml b/.github/workflows/automerge-orphans.yml index 5e2ff6ed7..20322ecb7 100644 --- a/.github/workflows/automerge-orphans.yml +++ b/.github/workflows/automerge-orphans.yml @@ -9,6 +9,7 @@ on: jobs: identify-orphans: + if: startsWith(github.repository, 'asyncapi/') name: Find orphans and notify runs-on: ubuntu-latest steps: diff --git a/.github/workflows/autoupdate.yml b/.github/workflows/autoupdate.yml index f23ec3b88..ad8e0198f 100644 --- a/.github/workflows/autoupdate.yml +++ b/.github/workflows/autoupdate.yml @@ -20,13 +20,14 @@ on: jobs: autoupdate-for-bot: + if: startsWith(github.repository, 'asyncapi/') name: Autoupdate autoapproved PR created in the upstream runs-on: ubuntu-latest steps: - name: Autoupdating uses: docker://chinthakagodawita/autoupdate-action:v1 env: - GITHUB_TOKEN: '${{ secrets.GH_TOKEN }}' + GITHUB_TOKEN: '${{ secrets.GH_TOKEN_BOT_EVE }}' PR_FILTER: "labelled" PR_LABELS: "autoupdate" PR_READY_STATE: "ready_for_review" diff --git a/.github/workflows/help-command.yml b/.github/workflows/help-command.yml index 69163816e..03f891eba 100644 --- a/.github/workflows/help-command.yml +++ b/.github/workflows/help-command.yml @@ -25,7 +25,7 @@ jobs: - `/ready-to-merge` or `/rtm` - This comment will trigger automerge of PR in case all required checks are green, approvals in place and do-not-merge label is not added - `/do-not-merge` or `/dnm` - This comment will block automerging even if all conditions are met and ready-to-merge label is added - - `/autoupdate` or `/au` - This comment will add `autoupdate` label to the PR and keeps your PR up-to-date to the target branch's future changes. Unless there is a merge conflict. + - `/autoupdate` or `/au` - This comment will add `autoupdate` label to the PR and keeps your PR up-to-date to the target branch's future changes. Unless there is a merge conflict or it is a draft PR. create_help_comment_issue: if: ${{ !github.event.issue.pull_request && contains(github.event.comment.body, '/help') && github.actor != 'asyncapi-bot' }} runs-on: ubuntu-latest diff --git a/.github/workflows/if-nodejs-release.yml b/.github/workflows/if-nodejs-release.yml index bc5b53766..16cc8851b 100644 --- a/.github/workflows/if-nodejs-release.yml +++ b/.github/workflows/if-nodejs-release.yml @@ -48,6 +48,15 @@ jobs: - if: steps.packagejson.outputs.exists == 'true' name: Run test run: npm test + - if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel + name: Report workflow run status to Slack + uses: 8398a7/action-slack@v3 + with: + status: ${{ job.status }} + fields: repo,action,workflow + text: 'Release workflow failed in testing job' + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }} release: needs: [test-nodejs] @@ -84,3 +93,12 @@ jobs: GIT_COMMITTER_NAME: asyncapi-bot GIT_COMMITTER_EMAIL: info@asyncapi.io run: npm run release + - if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel + name: Report workflow run status to Slack + uses: 8398a7/action-slack@v3 + with: + status: ${{ job.status }} + fields: repo,action,workflow + text: 'Release workflow failed in release job' + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }} \ No newline at end of file diff --git a/.github/workflows/if-nodejs-version-bump.yml b/.github/workflows/if-nodejs-version-bump.yml index 721caa9d7..5e7aa14ac 100644 --- a/.github/workflows/if-nodejs-version-bump.yml +++ b/.github/workflows/if-nodejs-version-bump.yml @@ -24,6 +24,13 @@ jobs: - name: Check if Node.js project and has package.json id: packagejson run: test -e ./package.json && echo "::set-output name=exists::true" || echo "::set-output name=exists::false" + - if: steps.packagejson.outputs.exists == 'true' + name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: 14 + cache: 'npm' + cache-dependency-path: '**/package-lock.json' - if: steps.packagejson.outputs.exists == 'true' name: Install dependencies run: npm install @@ -46,4 +53,13 @@ jobs: author: asyncapi-bot title: 'chore(release): ${{github.event.release.tag_name}}' body: 'Version bump in package.json for release [${{github.event.release.tag_name}}](${{github.event.release.html_url}})' - branch: version-bump/${{github.event.release.tag_name}} \ No newline at end of file + branch: version-bump/${{github.event.release.tag_name}} + - if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel + name: Report workflow run status to Slack + uses: 8398a7/action-slack@v3 + with: + status: ${{ job.status }} + fields: repo,action,workflow + text: 'Unable to bump the version in package.json after the release' + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }} \ No newline at end of file diff --git a/.github/workflows/link-check-cron.yml b/.github/workflows/link-check-cron.yml index cfc2cf01d..2d1e1fc02 100644 --- a/.github/workflows/link-check-cron.yml +++ b/.github/workflows/link-check-cron.yml @@ -11,6 +11,7 @@ on: jobs: External-link-validation-weekly: + if: startsWith(github.repository, 'asyncapi/') runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -33,4 +34,4 @@ jobs: fields: repo,action,workflow env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }} - if: failure() # Only, on failure, send a message on the Slack Docs Channel (if there are broken links) + if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel diff --git a/.github/workflows/stale-issues-prs.yml b/.github/workflows/stale-issues-prs.yml index 766731834..5dc053a49 100644 --- a/.github/workflows/stale-issues-prs.yml +++ b/.github/workflows/stale-issues-prs.yml @@ -9,10 +9,11 @@ on: jobs: stale: + if: startsWith(github.repository, 'asyncapi/') name: Mark issue or PR as stale runs-on: ubuntu-latest steps: - - uses: actions/stale@v4.0.0 + - uses: actions/stale@v5.1.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: | @@ -40,4 +41,5 @@ jobs: stale-issue-label: stale stale-pr-label: stale exempt-issue-labels: keep-open - exempt-pr-labels: keep-open \ No newline at end of file + exempt-pr-labels: keep-open + close-issue-reason: not_planned diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..638f73340 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,46 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment include: + +- Using welcoming and inclusive language +- Being respectful of differing viewpoints and experiences +- Gracefully accepting constructive criticism +- Focusing on what is best for the community +- Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +- The use of sexualized language or imagery and unwelcome sexual attention or advances +- Trolling, insulting/derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information, such as a physical or electronic address, without explicit permission +- Other conduct which could reasonably be considered inappropriate in a professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at fmvilas@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] + +[homepage]: http://contributor-covenant.org +[version]: http://contributor-covenant.org/version/1/4/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..1334921c2 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,79 @@ +# Contributing to AsyncAPI +We love your input! We want to make contributing to this project as easy and transparent as possible. + +## Contribution recogniton + +We use [All Contributors](https://allcontributors.org/docs/en/specification) specification to handle recognitions. For more details read [this](https://github.com/asyncapi/community/blob/master/recognize-contributors.md) document. + +## Summary of the contribution flow + +The following is a summary of the ideal contribution flow. Please, note that Pull Requests can also be rejected by the maintainers when appropriate. + +``` + ┌───────────────────────┐ + │ │ + │ Open an issue │ + │ (a bug report or a │ + │ feature request) │ + │ │ + └───────────────────────┘ + ⇩ + ┌───────────────────────┐ + │ │ + │ Open a Pull Request │ + │ (only after issue │ + │ is approved) │ + │ │ + └───────────────────────┘ + ⇩ + ┌───────────────────────┐ + │ │ + │ Your changes will │ + │ be merged and │ + │ published on the next │ + │ release │ + │ │ + └───────────────────────┘ +``` + +## Code of Conduct +AsyncAPI has adopted a Code of Conduct that we expect project participants to adhere to. Please [read the full text](./CODE_OF_CONDUCT.md) so that you can understand what sort of behaviour is expected. + +## Our Development Process +We use Github to host code, to track issues and feature requests, as well as accept pull requests. + +## Issues +[Open an issue](https://github.com/asyncapi/asyncapi/issues/new) **only** if you want to report a bug or a feature. Don't open issues for questions or support, instead join our [Slack workspace](https://www.asyncapi.com/slack-invite) and ask there. Don't forget to follow our [Slack Etiquette](https://github.com/asyncapi/community/blob/master/slack-etiquette.md) while interacting with community members! It's more likely you'll get help, and much faster! + +## Bug Reports and Feature Requests + +Please use our issues templates that provide you with hints on what information we need from you to help you out. + +## Pull Requests + +**Please, make sure you open an issue before starting with a Pull Request, unless it's a typo or a really obvious error.** Pull requests are the best way to propose changes to the specification. Get familiar with our document that explains [Git workflow](https://github.com/asyncapi/community/blob/master/git-workflow.md) used in our repositories. + +## Conventional commits + +Our repositories follow [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/#summary) specification. Releasing to GitHub and NPM is done with the support of [semantic-release](https://semantic-release.gitbook.io/semantic-release/). + +Pull requests should have a title that follows the specification, otherwise, merging is blocked. If you are not familiar with the specification simply ask maintainers to modify. You can also use this cheatsheet if you want: + +- `fix: ` prefix in the title indicates that PR is a bug fix and PATCH release must be triggered. +- `feat: ` prefix in the title indicates that PR is a feature and MINOR release must be triggered. +- `docs: ` prefix in the title indicates that PR is only related to the documentation and there is no need to trigger release. +- `chore: ` prefix in the title indicates that PR is only related to cleanup in the project and there is no need to trigger release. +- `test: ` prefix in the title indicates that PR is only related to tests and there is no need to trigger release. +- `refactor: ` prefix in the title indicates that PR is only related to refactoring and there is no need to trigger release. + +What about MAJOR release? just add `!` to the prefix, like `fix!: ` or `refactor!: ` + +Prefix that follows specification is not enough though. Remember that the title must be clear and descriptive with usage of [imperative mood](https://chris.beams.io/posts/git-commit/#imperative). + +Happy contributing :heart: + +## License +When you submit changes, your submissions are understood to be under the same [Apache 2.0 License](https://github.com/asyncapi/asyncapi/blob/master/LICENSE) that covers the project. Feel free to [contact the maintainers](https://www.asyncapi.com/slack-invite) if that's a concern. + +## References +This document was adapted from the open-source contribution guidelines for [Facebook's Draft](https://github.com/facebook/draft-js/blob/master/CONTRIBUTING.md). \ No newline at end of file diff --git a/README.md b/README.md index 63217da54..229253d4f 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,11 @@ Use this package to parse and validate AsyncAPI documents —either YAML or JSON - [Install](#install) - [Examples](#examples) - * [Example passing inline AsyncAPI](#example-passing-inline-asyncapi) - * [Example passing a URL](#example-passing-a-url) - * [Example using Avro schemas](#example-using-avro-schemas) - * [Example using OpenAPI schemas](#example-using-openapi-schemas) - * [Example using RAML data types](#example-using-raml-data-types) + - [Example passing inline AsyncAPI](#example-passing-inline-asyncapi) + - [Example passing a URL](#example-passing-a-url) + - [Example using Avro schemas](#example-using-avro-schemas) + - [Example using OpenAPI schemas](#example-using-openapi-schemas) + - [Example using RAML data types](#example-using-raml-data-types) - [API documentation](#api-documentation) - [Using in the browser](#using-in-the-browser) - [Custom message parsers](#custom-message-parsers) @@ -78,7 +78,7 @@ Parser-JS | Parser-API Additionally to all the methods declared in the [Parser-API](https://github.com/asyncapi/parser-api), this parser might introduce some helper functions. -Direct access to the parsed JSON document is always available through the `doc.raw()` method. +Direct access to the parsed JSON document is always available through the `doc.json()` method. See [API documentation](/docs/api.md) for more example and full API reference information. @@ -102,6 +102,8 @@ Otherwise, if your application is bundled via bundlers like `webpack`, you can i // TBD ``` +In case you just want to check out the latest `bundle.js` without installing the package, we publish one on each GitHub release. You can find it under [this link to the latest release](https://github.com/asyncapi/parser-js/releases/latest/download/bundle.js). + ## Custom message parsers AsyncAPI doesn't enforce one schema format for messages. You can have payload of your messages described with OpenAPI, Avro, etc. This parser by default parses only AsyncAPI schema format. You can extend it by creating a custom parser and registering it within the parser: diff --git a/package-lock.json b/package-lock.json index cc6178f5f..8b1dd5c07 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30893,4 +30893,4 @@ "dev": true } } -} +} \ No newline at end of file From 7d650d8a98d6fbf9e631b5b9f60583d8a02437dc Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Thu, 8 Sep 2022 14:20:04 +0200 Subject: [PATCH 043/126] refactor: fix some bugs and smells (#602) --- src/models/v2/channel.ts | 2 +- src/models/v2/server.ts | 2 +- src/schema-parser/avro-schema-parser.ts | 4 ++-- src/spec-types/v2.ts | 2 +- src/utils.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/models/v2/channel.ts b/src/models/v2/channel.ts index c2f42c7a9..5486e8713 100644 --- a/src/models/v2/channel.ts +++ b/src/models/v2/channel.ts @@ -42,7 +42,7 @@ export class Channel extends BaseModel { + Object.entries(this._meta.asyncapi?.parsed.servers || {}).forEach(([serverName, server]) => { if (allowedServers.length === 0 || allowedServers.includes(serverName)) { servers.push(this.createModel(Server, server, { id: serverName, pointer: `/servers/${serverName}` })); } diff --git a/src/models/v2/server.ts b/src/models/v2/server.ts index ea89ee6d4..d063ee735 100644 --- a/src/models/v2/server.ts +++ b/src/models/v2/server.ts @@ -56,7 +56,7 @@ export class Server extends BaseModel implement channels(): ChannelsInterface { const channels: ChannelInterface[] = []; - Object.entries(this._meta.asyncapi?.parsed.channels || {}).map(([channelAddress, channel]: [string, any]) => { + Object.entries(this._meta.asyncapi?.parsed.channels || {}).forEach(([channelAddress, channel]: [string, any]) => { const allowedServers: string[] = channel.servers || []; if (allowedServers.length === 0 || allowedServers.includes(this._meta.id)) { channels.push(this.createModel(Channel, channel, { id: channelAddress, address: channelAddress, pointer: `/channels/${tilde(channelAddress)}` })); diff --git a/src/schema-parser/avro-schema-parser.ts b/src/schema-parser/avro-schema-parser.ts index 15c821857..ca1c42488 100644 --- a/src/schema-parser/avro-schema-parser.ts +++ b/src/schema-parser/avro-schema-parser.ts @@ -7,7 +7,7 @@ import type { AsyncAPISchema, SchemaValidateResult } from '../types'; import type { v2 } from '../spec-types'; -type AvroSchema = Schema & { [key: string]: any } & any; +type AvroSchema = Schema & { [key: string]: any }; export function AvroSchemaParser(): SchemaParser { return { @@ -321,7 +321,7 @@ async function processRecordSchema(avroDefinition: AvroSchema, recordCache: Reco async function processUnionSchema(jsonSchema: v2.AsyncAPISchemaDefinition, avroDefinition: AvroSchema, isTopLevel: boolean, recordCache: Record): Promise { jsonSchema.oneOf = []; let nullDef = null; - for (const avroDef of avroDefinition) { + for (const avroDef of avroDefinition as any) { const def = await convertAvroToJsonSchema(avroDef, isTopLevel, recordCache); // avroDef can be { type: 'int', default: 1 } and this is why avroDef.type has priority here const defType = avroDef.type || avroDef; diff --git a/src/spec-types/v2.ts b/src/spec-types/v2.ts index ec255955f..81f9feb59 100644 --- a/src/spec-types/v2.ts +++ b/src/spec-types/v2.ts @@ -290,7 +290,7 @@ export interface AsyncAPISchemaDefinition extends SpecificationExtensions { default?: JSONSchema7Type; readOnly?: boolean; writeOnly?: boolean; - examples?: Array | undefined; + examples?: Array; discriminator?: string; externalDocs?: ExternalDocumentationObject; diff --git a/src/utils.ts b/src/utils.ts index c2e5d5bc9..7b39852d8 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -92,7 +92,7 @@ export function untilde(str: string) { }); } -export function retrievePossibleRef(data: any & { $ref?: string }, pathOfData: string, spec: any = {}): any { +export function retrievePossibleRef(data: any, pathOfData: string, spec: any = {}): any { if (!hasRef(data)) { return data; } From fe4f44a78223406b303125ce40e8da72ec839608 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Fri, 9 Sep 2022 13:02:23 +0200 Subject: [PATCH 044/126] refactor: another round on merging and fixing conflicts (#603) --- README.md | 2 +- package.json | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 229253d4f..3b501a652 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ Additionally to all the methods declared in the [Parser-API](https://github.com/ Direct access to the parsed JSON document is always available through the `doc.json()` method. -See [API documentation](/docs/api.md) for more example and full API reference information. +See [API documentation](./docs/api.md) for more examples and full API reference information. ## Using in the browser diff --git a/package.json b/package.json index fae8a6d05..87ecb25a6 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,14 @@ "release": { "branches": [ "master", + { + "name": "next-spec", + "prerelease": true + }, + { + "name": "next-major-spec", + "prerelease": true + }, { "name": "next-major", "prerelease": true @@ -101,4 +109,4 @@ ] ] } -} +} \ No newline at end of file From e9fb91cf9486e84a883a328de891b6dd5381696c Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Mon, 12 Sep 2022 10:45:31 +0200 Subject: [PATCH 045/126] refactor: cleanup interfaces + add missing methods from parser-api (#597) --- src/models/components.ts | 1 + src/models/extension.ts | 2 +- src/models/schema.ts | 2 +- src/models/security-scheme.ts | 4 +--- src/models/v2/bindings.ts | 6 +++--- src/models/v2/components.ts | 4 ++++ src/models/v2/extension.ts | 6 +++--- src/models/v2/extensions.ts | 6 +++--- src/models/v2/mixins.ts | 6 +++--- src/models/v2/schema.ts | 6 +++--- src/models/v2/security-scheme.ts | 6 +++--- src/spec-types/v2.ts | 8 ++++++++ test/models/v2/components.spec.ts | 12 ++++++++++++ test/models/v2/external-docs.spec.ts | 2 +- 14 files changed, 47 insertions(+), 24 deletions(-) diff --git a/src/models/components.ts b/src/models/components.ts index ff57f4cbe..f96524f1e 100644 --- a/src/models/components.ts +++ b/src/models/components.ts @@ -29,4 +29,5 @@ export interface ComponentsInterface extends BaseModel, ExtensionsMixinInterface channelBindings(): Record; operationBindings(): Record; messageBindings(): Record; + isEmpty(): boolean; } diff --git a/src/models/extension.ts b/src/models/extension.ts index bb2b082d9..5ea3ef698 100644 --- a/src/models/extension.ts +++ b/src/models/extension.ts @@ -1,7 +1,7 @@ import type { BaseModel } from './base'; export interface ExtensionInterface extends BaseModel { - name(): string; + id(): string; version(): string; value(): V; } diff --git a/src/models/schema.ts b/src/models/schema.ts index 08a0e90c4..bcbef4bf9 100644 --- a/src/models/schema.ts +++ b/src/models/schema.ts @@ -45,7 +45,7 @@ export interface SchemaInterface extends BaseModel, Ext pattern(): string | undefined; patternProperties(): Record | undefined; properties(): Record | undefined; - property(key: string): SchemaInterface | undefined; + property(name: string): SchemaInterface | undefined; propertyNames(): SchemaInterface | undefined; readOnly(): boolean | undefined; required(): Array | undefined; diff --git a/src/models/security-scheme.ts b/src/models/security-scheme.ts index 243ddfa4d..e3c084605 100644 --- a/src/models/security-scheme.ts +++ b/src/models/security-scheme.ts @@ -2,8 +2,6 @@ import type { BaseModel } from './base'; import type { OAuthFlowsInterface } from './oauth-flows'; import type { DescriptionMixinInterface, ExtensionsMixinInterface } from './mixins'; -export type SecuritySchemaType = 'userPassword' | 'apiKey' | 'X509' | 'symmetricEncryption' | 'asymmetricEncryption' | 'httpApiKey' | 'http' | 'oauth2' | 'openIdConnect' | 'plain' | 'scramSha256' | 'scramSha512' | 'gssapi'; - export interface SecuritySchemeInterface extends BaseModel, DescriptionMixinInterface, ExtensionsMixinInterface { id(): string hasBearerFormat(): boolean; @@ -11,6 +9,6 @@ export interface SecuritySchemeInterface extends BaseModel, DescriptionMixinInte openIdConnectUrl(): string | undefined; scheme(): string | undefined; flows(): OAuthFlowsInterface | undefined; - type(): SecuritySchemaType; + type(): string; in(): string | undefined; } diff --git a/src/models/v2/bindings.ts b/src/models/v2/bindings.ts index 931ec5de2..e9b5f46e9 100644 --- a/src/models/v2/bindings.ts +++ b/src/models/v2/bindings.ts @@ -19,10 +19,10 @@ export class Bindings extends Collection implements BindingsIn extensions(): ExtensionsInterface { const extensions: ExtensionInterface[] = []; - Object.entries(this._meta.originalData as v2.SpecificationExtensions || {}).forEach(([name, value]) => { - if (EXTENSION_REGEX.test(name)) { + Object.entries(this._meta.originalData as v2.SpecificationExtensions || {}).forEach(([id, value]) => { + if (EXTENSION_REGEX.test(id)) { extensions.push( - createModel(Extension, value, { name, pointer: `${this._meta.pointer}/${name}`, asyncapi: this._meta.asyncapi }) as Extension + createModel(Extension, value, { id, pointer: `${this._meta.pointer}/${id}`, asyncapi: this._meta.asyncapi }) as Extension ); } }); diff --git a/src/models/v2/components.ts b/src/models/v2/components.ts index a0da411d6..b6f16f425 100644 --- a/src/models/v2/components.ts +++ b/src/models/v2/components.ts @@ -117,6 +117,10 @@ export class Components extends BaseModel implements Compon return extensions(this); } + isEmpty(): boolean { + return Object.keys(this._json).length === 0; + } + protected createCollection, T extends BaseModel>(itemsName: keyof v2.ComponentsObject, collectionModel: Constructor, itemModel: Constructor): M { const collectionItems: T[] = []; Object.entries(this._json[itemsName] || {}).forEach(([id, item]) => { diff --git a/src/models/v2/extension.ts b/src/models/v2/extension.ts index 650d37714..d0b9f58a3 100644 --- a/src/models/v2/extension.ts +++ b/src/models/v2/extension.ts @@ -4,9 +4,9 @@ import type { ExtensionInterface } from '../extension'; import type { v2 } from '../../spec-types'; -export class Extension extends BaseModel, { name: string }> implements ExtensionInterface { - name(): string { - return this._meta.name; +export class Extension extends BaseModel, { id: string }> implements ExtensionInterface { + id(): string { + return this._meta.id; } version(): string { diff --git a/src/models/v2/extensions.ts b/src/models/v2/extensions.ts index 95a6836df..e529b35d3 100644 --- a/src/models/v2/extensions.ts +++ b/src/models/v2/extensions.ts @@ -4,8 +4,8 @@ import type { ExtensionsInterface } from '../extensions'; import type { ExtensionInterface } from '../extension'; export class Extensions extends Collection implements ExtensionsInterface { - override get(name: string): ExtensionInterface | undefined { - name = name.startsWith('x-') ? name : `x-${name}`; - return this.collections.find(ext => ext.name() === name); + override get(id: string): ExtensionInterface | undefined { + id = id.startsWith('x-') ? id : `x-${id}`; + return this.collections.find(ext => ext.id() === id); } } diff --git a/src/models/v2/mixins.ts b/src/models/v2/mixins.ts index 645e34ddf..37ebc7927 100644 --- a/src/models/v2/mixins.ts +++ b/src/models/v2/mixins.ts @@ -38,10 +38,10 @@ export function description(model: BaseModel<{ description?: string }>): string export function extensions(model: BaseModel): ExtensionsInterface { const extensions: ExtensionInterface[] = []; - Object.entries(model.json()).forEach(([name, value]: [string, any]) => { - if (EXTENSION_REGEX.test(name)) { + Object.entries(model.json()).forEach(([id, value]: [string, any]) => { + if (EXTENSION_REGEX.test(id)) { extensions.push( - createModel(Extension, value, { name, pointer: model.jsonPath(name) } as any, model) as Extension + createModel(Extension, value, { id, pointer: model.jsonPath(id) } as any, model) as Extension ); } }); diff --git a/src/models/v2/schema.ts b/src/models/v2/schema.ts index 9adf1d765..a7546cbc4 100644 --- a/src/models/v2/schema.ts +++ b/src/models/v2/schema.ts @@ -255,9 +255,9 @@ export class Schema extends BaseModel({ url: 'somewhere' }); const d = new ExternalDocumentation(doc); From c36194c9dd25f6430a522d0db0e4c87d6746ee16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Mon, 12 Sep 2022 14:26:12 +0200 Subject: [PATCH 046/126] refactor: update Readme.md v1 (#601) --- README.md | 224 +++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 189 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index 3b501a652..c3dfa11d4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![AsyncAPI JavaScript Parser](./assets/logo.png)](https://www.asyncapi.com) -Use this package to parse and validate AsyncAPI documents —either YAML or JSON— in your Node.js or browser application. Updated bundle for the browser is always attached to the GitHub Release. +Use this package to validate and parse AsyncAPI documents —either YAML or JSON— in your Node.js or browser application. Validation is powered by [Spectral](https://github.com/stoplightio/spectral). ![npm](https://img.shields.io/npm/v/@asyncapi/parser?style=for-the-badge) ![npm](https://img.shields.io/npm/dt/@asyncapi/parser?style=for-the-badge) @@ -10,17 +10,18 @@ Use this package to parse and validate AsyncAPI documents —either YAML or JSON -- [Install](#install) +- [Installation](#installation) - [Examples](#examples) - - [Example passing inline AsyncAPI](#example-passing-inline-asyncapi) - - [Example passing a URL](#example-passing-a-url) - - [Example using Avro schemas](#example-using-avro-schemas) - - [Example using OpenAPI schemas](#example-using-openapi-schemas) - - [Example using RAML data types](#example-using-raml-data-types) + * [Example with parsing](#example-with-parsing) + * [Example with validation](#example-with-validation) + * [Example using Avro schemas](#example-using-avro-schemas) + * [Example using OpenAPI schemas](#example-using-openapi-schemas) + * [Example using RAML data types](#example-using-raml-data-types) + * [Example with stringify and unstringify parsed document](#example-with-stringify-and-unstringify-parsed-document) - [API documentation](#api-documentation) - [Using in the browser](#using-in-the-browser) -- [Custom message parsers](#custom-message-parsers) -- [Error types](#error-types) +- [Custom schema parsers](#custom-schema-parsers) + * [Official supported custom schema parsers](#official-supported-custom-schema-parsers) - [Custom extensions](#custom-extensions) - [Circular references](#circular-references) - [Stringify](#stringify) @@ -30,36 +31,129 @@ Use this package to parse and validate AsyncAPI documents —either YAML or JSON -## Install +## Installation -TBD +```bash +npm install @asyncapi/parser +yarn add @asyncapi/parser +``` -## Examples +The parser by default supports AsyncAPI Schema Format and JSON Schema Format for schemas. For additional formats, check [Custom schema parsers](#custom-schema-parsers) section. -### Example passing inline AsyncAPI +## Examples -```js -// TBD +### Example with parsing + +```ts +import { Parser } from '@asyncapi/parser'; + +const parser = new Parser(); + +const { document } = await parser.parse(` + asyncapi: '2.4.0' + info: + title: Example AsyncAPI specification + version: '0.1.0' + channels: + example-channel: + subscribe: + message: + payload: + type: object + properties: + exampleField: + type: string + exampleNumber: + type: number + exampleDate: + type: string + format: date-time +`); + +if (document) { + // => Example AsyncAPI specification + console.log(document.info().title()); +} ``` -### Example passing a URL - -```js -// TBD +### Example with validation + +```ts +import { Parser } from '@asyncapi/parser'; + +const parser = new Parser(); + +// One of the diagnostics will contain an error regarding an unsupported version of AsyncAPI (2.1.37) +const diagnostics = await parser.validate(` + asyncapi: '2.1.37' + info: + title: Example AsyncAPI specification + version: '0.1.0' + channels: + example-channel: + subscribe: + message: + payload: + type: object + properties: + exampleField: + type: string + exampleNumber: + type: number + exampleDate: + type: string + format: date-time +`); ``` -### Example using Avro schemas +### [Example using Avro schemas](#custom-schema-parsers) Head over to [asyncapi/avro-schema-parser](https://www.github.com/asyncapi/avro-schema-parser) for more information. -### Example using OpenAPI schemas +### [Example using OpenAPI schemas](#custom-schema-parsers) Head over to [asyncapi/openapi-schema-parser](https://www.github.com/asyncapi/openapi-schema-parser) for more information. -### Example using RAML data types +### [Example using RAML data types](#custom-schema-parsers) Head over to [asyncapi/raml-dt-schema-parser](https://www.github.com/asyncapi/raml-dt-schema-parser) for more information. +### [Example with stringify and unstringify parsed document](#stringify) + +```ts +import { Parser, stringify, unstringify } from '@asyncapi/parser'; + +const parser = new Parser(); + +const { document } = await parser.parse(` + asyncapi: '2.4.0' + info: + title: Example AsyncAPI specification + version: '0.1.0' + channels: + example-channel: + subscribe: + message: + payload: + type: object + properties: + exampleField: + type: string + exampleNumber: + type: number + exampleDate: + type: string + format: date-time +`); + +if (document) { + // stringify function returns string type + const stringifiedDocument = stringify(document); + // unstringify function returns new AsyncAPIDocument instance + const unstringifiedDocument = unstringify(stringifiedDocument); +} +``` + ## API documentation Parser-JS API implements a global API definition for all AsyncAPI parser implementations known as the [Parser-API](https://github.com/asyncapi/parser-api). @@ -104,25 +198,67 @@ Otherwise, if your application is bundled via bundlers like `webpack`, you can i In case you just want to check out the latest `bundle.js` without installing the package, we publish one on each GitHub release. You can find it under [this link to the latest release](https://github.com/asyncapi/parser-js/releases/latest/download/bundle.js). -## Custom message parsers +## Custom schema parsers + +AsyncAPI doesn't enforce one schema format. The payload of the messages can be described with OpenAPI (3.0.0), Avro, etc. This parser by default parses only [AsyncAPI Schema Format](https://github.com/asyncapi/spec/blob/master/spec/asyncapi.md#schemaObject) (superset of JSON Schema Format). We can extend it by creating a custom parser and registering it within the parser: + +1. Create custom parser module that exports three functions: + + - `validate` - function that validates (its syntax) used schema. + - `parse` - function that parses the given schema to the [AsyncAPI Schema Format](https://github.com/asyncapi/spec/blob/master/spec/asyncapi.md#schemaObject). + - `getMimeTypes` - function that returns the list of mime types that will be used as the `schemaFormat` property to determine the mime type of a given schema. + + Example: + + ```ts + export default { + validate(input) { ... }, + parse(input) { ... }, + getMimeTypes() { + return [ + 'application/vnd.custom.type;version=1.0.0', + 'application/vnd.custom.type+json;version=1.0.0', + ] + } + } + ``` -AsyncAPI doesn't enforce one schema format for messages. You can have payload of your messages described with OpenAPI, Avro, etc. This parser by default parses only AsyncAPI schema format. You can extend it by creating a custom parser and registering it within the parser: +2. Before parsing/validating an AsyncAPI document with a parser, register the additional custom schema parser: -1. Create custom parser module that exports two functions: + ```ts + import { Parser } from '@asyncapi/parser'; + import myCustomSchemaParser from './my-custom-schema-parser'; - ```js - // TBD + const parser = new Parser(); + parser.registerSchemaParser(myCustomSchemaParser); ``` -2. Before parsing an AsyncAPI document with a parser, register the additional custom schema parser: +### Official supported custom schema parsers - ```js - // TBD - ``` +In AsyncAPI Initiative we support below custom schema parsers. To install them, run below comamnds: -## Error types +- Avro schema: -TBD + ```bash + npm install @asyncapi/avro-schema-parser + yarn add @asyncapi/avro-schema-parser + ``` + +- OpenAPI (3.0.0) Schema Object: + + ```bash + npm install @asyncapi/openapi-schema-parser + yarn add @asyncapi/openapi-schema-parser + ``` + +- RAML data type: + + ```bash + npm install @asyncapi/raml-dt-schema-parser + yarn add @asyncapi/raml-dt-schema-parser + ``` + + > **NOTE**: That custom parser works only in the NodeJS environment. Do not use it in browser applications! ## Custom extensions @@ -136,11 +272,29 @@ TBD ## Stringify -TBD +Converting a parsed document to a string may be necessary when saving the parsed document to a database, or similar situations where you need to parse the document just once and then reuse it, for optimisation cases. + +For that, the Parser supports the ability to stringify a parsed AsyncAPI document through the `stringify` function exposed by package. This method differs from the native `JSON.stringify(...json)` implementation, in that every reference that occurs (at least twice throughout the document) is converted into a [JSON Pointer](https://datatracker.ietf.org/doc/html/rfc6901) path with a `$ref:` prefix: + +```json +{ + "foo": "$ref:$.some.path.to.the.bar" +} +``` + +To parse a stringified document into an AsyncAPIDocument instance, you must use the `unstringify` function (also exposed by package). It isn't compatible with the native `JSON.parse()` method. It replaces the given references pointed by the [JSON Pointer](https://datatracker.ietf.org/doc/html/rfc6901) path, with an `$ref:` prefix to the original objects. + +A few advantages of this solution: +- The string remains as small as possible due to the use of [JSON Pointers](https://datatracker.ietf.org/doc/html/rfc6901). +- All references (also circular) are preserved. + +Check [example](#example-with-stringify-and-unstringify-parsed-documentstringify). ## Develop -TBD +1. Write code and tests in the `test` folder. +2. Make sure all tests pass `npm test`. +3. Make sure code is well formatted and secure by `npm run lint` command. ## Contributing From 8e57fb9723fdceced8fc158011af8f30575c6396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Urba=C5=84czyk?= Date: Mon, 12 Sep 2022 15:53:36 +0200 Subject: [PATCH 047/126] refactor: add browser version of package and write docs for it (#596) --- .eslintignore | 9 +- .gitignore | 6 +- README.md | 49 +- package-lock.json | 9041 ++++++++----------- package.json | 19 +- src/constants.ts | 3 +- src/custom-operations/parse-schema.ts | 10 +- src/index.ts | 6 +- src/old-api/base.ts | 2 +- src/schema-parser/asyncapi-schema-parser.ts | 4 +- src/spectral.ts | 2 +- src/utils.ts | 2 +- test/browser/browser.spec.ts | 61 + test/browser/sample-page.html | 28 + test/schema-parser/spectral-rule-v2.spec.ts | 2 +- webpack.config.js | 48 + 16 files changed, 4190 insertions(+), 5102 deletions(-) create mode 100644 test/browser/browser.spec.ts create mode 100644 test/browser/sample-page.html create mode 100644 webpack.config.js diff --git a/.eslintignore b/.eslintignore index 7d8646422..ec1bad9ab 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,7 @@ node_modules -coverage -docs -lib +.vscode +.DS_Store +/docs +/coverage +/lib +/browser \ No newline at end of file diff --git a/.gitignore b/.gitignore index 85b23547f..ec1bad9ab 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ node_modules .vscode .DS_Store -coverage -lib +/docs +/coverage +/lib +/browser \ No newline at end of file diff --git a/README.md b/README.md index c3dfa11d4..a6c8b0004 100644 --- a/README.md +++ b/README.md @@ -176,27 +176,42 @@ Direct access to the parsed JSON document is always available through the `doc.j See [API documentation](./docs/api.md) for more examples and full API reference information. -## Using in the browser +## Using in the browser/SPA apps -The package contains a built-in version of the parser, which is created via [`browserify`](https://github.com/browserify/browserify). To use it, you need to import the parser into the HTML file as below: +The package contains a built-in version of the parser. To use it, you need to import the parser into the HTML file as below: ```html - + + + ``` -Or, if you want to use a parser in a JS application of the SPA kind, import the parser as shown below: +Or, if you want to use the parser in a JS SPA-type application where you have a predefined bundler configuration that is difficult to change (e.g. you use [`create-react-app`](https://github.com/facebook/create-react-app)) then you can import the parser as below: ```js -// TBD +import Parser from '@asyncapi/parser/browser'; + +const parser = new Parser(); +const { parsed, diagnostics } = parser.parse(...); ``` -Otherwise, if your application is bundled via bundlers like `webpack`, you can import the parser like a regular package: +> **Note** +> Using the above code, we import the entire bundled parser into application. This may result in duplicate code in the final application bundle, only if the application uses the same dependencies what the parser. If, on the other hand, you want to have the smallest bundle possible, we recommend using the following import and properly configure bundler. + +Otherwise, if your application is bundled via bundlers like `webpack` and you can configure it, you can import the parser like a regular package: ```js -// TBD +import { Parser } from '@asyncapi/parser'; + +const parser = new Parser(); +const { parsed, diagnostics } = parser.parse(...); ``` -In case you just want to check out the latest `bundle.js` without installing the package, we publish one on each GitHub release. You can find it under [this link to the latest release](https://github.com/asyncapi/parser-js/releases/latest/download/bundle.js). +> **Note** +> The package uses some native NodeJS modules underneath. If you are building a front-end application you can find more information about the correct configuration for Webpack [here](#webpack). ## Custom schema parsers @@ -290,6 +305,24 @@ A few advantages of this solution: Check [example](#example-with-stringify-and-unstringify-parsed-documentstringify). +## Bundler configuration + +### Webpack + +Versions `<5` of Webpack should handle bundling without problems. Due to the fact that Webpack 5 no longer does fallbacks to native NodeJS modules by default we need to install `buffer` package and add fallbacks: + +```js +{ + resolve: { + fallback: { + "fs": false, + "path": false, + "buffer": require.resolve("buffer/"), + } + } +} +``` + ## Develop 1. Write code and tests in the `test` folder. diff --git a/package-lock.json b/package-lock.json index 8b1dd5c07..a5cbe3f12 100644 --- a/package-lock.json +++ b/package-lock.json @@ -45,16 +45,40 @@ "eslint-plugin-sonarjs": "^0.15.0", "jest": "^29.0.2", "markdown-toc": "^1.2.0", + "path-browserify": "^1.0.1", + "puppeteer": "^17.1.1", "semantic-release": "17.4.3", + "ts-loader": "^9.3.1", "ts-node": "^10.9.1", - "typescript": "^4.8.2" + "typescript": "^4.8.2", + "webpack": "^5.74.0", + "webpack-bundle-analyzer": "^4.6.1", + "webpack-cli": "^4.10.0" + } + }, + "../asyncapi-node": { + "name": "@asyncapi/specs", + "version": "3.1.0", + "extraneous": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.11" + }, + "devDependencies": { + "@semantic-release/commit-analyzer": "^8.0.1", + "@semantic-release/github": "7.2.3", + "@semantic-release/npm": "^7.0.3", + "@semantic-release/release-notes-generator": "^9.0.1", + "conventional-changelog-conventionalcommits": "^4.2.3", + "mocha": "^8.2.1", + "nyc": "^15.1.0", + "semantic-release": "19.0.3" } }, "node_modules/@ampproject/remapping": { "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.1.2.tgz", - "integrity": "sha512-hoyByceqwKirw7w3Z7gnIIZC3Wx3J484Y3L/cMpXFbr7d9ZQj2mODrirNzcJa+SM3UlpWXYvKV4RlRpFXlWgXg==", "dev": true, + "license": "Apache-2.0", "dependencies": { "@jridgewell/trace-mapping": "^0.3.0" }, @@ -69,9 +93,8 @@ }, "node_modules/@babel/code-frame": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", - "integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/highlight": "^7.16.7" }, @@ -81,18 +104,16 @@ }, "node_modules/@babel/compat-data": { "version": "7.17.0", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.17.0.tgz", - "integrity": "sha512-392byTlpGWXMv4FbyWw3sAZ/FrW/DrwqLGXpy0mbyNe9Taqv1mg9yON5/o0cnr8XYCkFTZbC1eV+c+LAROgrng==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { "version": "7.17.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.17.5.tgz", - "integrity": "sha512-/BBMw4EvjmyquN5O+t5eh0+YqB3XXJkYD2cjKpYtWOfFy4lQ4UozNSmxAcWT8r2XtZs0ewG+zrfsqeR15i1ajA==", "dev": true, + "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.1.0", "@babel/code-frame": "^7.16.7", @@ -120,18 +141,16 @@ }, "node_modules/@babel/core/node_modules/semver": { "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" } }, "node_modules/@babel/generator": { "version": "7.17.3", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.3.tgz", - "integrity": "sha512-+R6Dctil/MgUsZsZAkYgK+ADNSZzJRRy0TvY65T71z/CR854xHQ1EweBYXdfT+HNeN7w0cSJJEzgxZMv40pxsg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/types": "^7.17.0", "jsesc": "^2.5.1", @@ -143,18 +162,16 @@ }, "node_modules/@babel/generator/node_modules/source-map": { "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } }, "node_modules/@babel/helper-compilation-targets": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.7.tgz", - "integrity": "sha512-mGojBwIWcwGD6rfqgRXVlVYmPAv7eOpIemUG3dGnDdCY4Pae70ROij3XmfrH6Fa1h1aiDylpglbZyktfzyo/hA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/compat-data": "^7.16.4", "@babel/helper-validator-option": "^7.16.7", @@ -170,18 +187,16 @@ }, "node_modules/@babel/helper-compilation-targets/node_modules/semver": { "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" } }, "node_modules/@babel/helper-environment-visitor": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.16.7.tgz", - "integrity": "sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag==", "dev": true, + "license": "MIT", "dependencies": { "@babel/types": "^7.16.7" }, @@ -191,9 +206,8 @@ }, "node_modules/@babel/helper-function-name": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.16.7.tgz", - "integrity": "sha512-QfDfEnIUyyBSR3HtrtGECuZ6DAyCkYFp7GHl75vFtTnn6pjKeK0T1DB5lLkFvBea8MdaiUABx3osbgLyInoejA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-get-function-arity": "^7.16.7", "@babel/template": "^7.16.7", @@ -205,9 +219,8 @@ }, "node_modules/@babel/helper-get-function-arity": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.16.7.tgz", - "integrity": "sha512-flc+RLSOBXzNzVhcLu6ujeHUrD6tANAOU5ojrRx/as+tbzf8+stUCj7+IfRRoAbEZqj/ahXEMsjhOhgeZsrnTw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/types": "^7.16.7" }, @@ -217,9 +230,8 @@ }, "node_modules/@babel/helper-hoist-variables": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz", - "integrity": "sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/types": "^7.16.7" }, @@ -229,9 +241,8 @@ }, "node_modules/@babel/helper-module-imports": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz", - "integrity": "sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/types": "^7.16.7" }, @@ -241,9 +252,8 @@ }, "node_modules/@babel/helper-module-transforms": { "version": "7.17.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.17.6.tgz", - "integrity": "sha512-2ULmRdqoOMpdvkbT8jONrZML/XALfzxlb052bldftkicAUy8AxSCkD5trDPQcwHNmolcl7wP6ehNqMlyUw6AaA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-environment-visitor": "^7.16.7", "@babel/helper-module-imports": "^7.16.7", @@ -260,18 +270,16 @@ }, "node_modules/@babel/helper-plugin-utils": { "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.19.0.tgz", - "integrity": "sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-simple-access": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.16.7.tgz", - "integrity": "sha512-ZIzHVyoeLMvXMN/vok/a4LWRy8G2v205mNP0XOuf9XRLyX5/u9CnVulUtDgUTama3lT+bf/UqucuZjqiGuTS1g==", "dev": true, + "license": "MIT", "dependencies": { "@babel/types": "^7.16.7" }, @@ -281,9 +289,8 @@ }, "node_modules/@babel/helper-split-export-declaration": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz", - "integrity": "sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/types": "^7.16.7" }, @@ -293,27 +300,24 @@ }, "node_modules/@babel/helper-validator-identifier": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz", - "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz", - "integrity": "sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { "version": "7.17.2", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.17.2.tgz", - "integrity": "sha512-0Qu7RLR1dILozr/6M0xgj+DFPmi6Bnulgm9M8BVa9ZCWxDqlSnqt3cf8IDPB5m45sVXUZ0kuQAgUrdSFFH79fQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/template": "^7.16.7", "@babel/traverse": "^7.17.0", @@ -325,9 +329,8 @@ }, "node_modules/@babel/highlight": { "version": "7.16.10", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.16.10.tgz", - "integrity": "sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfTBFxdw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-validator-identifier": "^7.16.7", "chalk": "^2.0.0", @@ -339,9 +342,8 @@ }, "node_modules/@babel/parser": { "version": "7.17.3", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.17.3.tgz", - "integrity": "sha512-7yJPvPV+ESz2IUTPbOL+YkIGyCqOyNIzdguKQuJGnH7bg1WTIifuM21YqokFt/THWh1AkCRn9IgoykTRCBVpzA==", "dev": true, + "license": "MIT", "bin": { "parser": "bin/babel-parser.js" }, @@ -351,9 +353,8 @@ }, "node_modules/@babel/plugin-syntax-async-generators": { "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -363,9 +364,8 @@ }, "node_modules/@babel/plugin-syntax-bigint": { "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", - "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -375,9 +375,8 @@ }, "node_modules/@babel/plugin-syntax-class-properties": { "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" }, @@ -387,9 +386,8 @@ }, "node_modules/@babel/plugin-syntax-import-meta": { "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -399,9 +397,8 @@ }, "node_modules/@babel/plugin-syntax-json-strings": { "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -411,9 +408,8 @@ }, "node_modules/@babel/plugin-syntax-jsx": { "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz", - "integrity": "sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.18.6" }, @@ -426,9 +422,8 @@ }, "node_modules/@babel/plugin-syntax-logical-assignment-operators": { "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -438,9 +433,8 @@ }, "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -450,9 +444,8 @@ }, "node_modules/@babel/plugin-syntax-numeric-separator": { "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -462,9 +455,8 @@ }, "node_modules/@babel/plugin-syntax-object-rest-spread": { "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -474,9 +466,8 @@ }, "node_modules/@babel/plugin-syntax-optional-catch-binding": { "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -486,9 +477,8 @@ }, "node_modules/@babel/plugin-syntax-optional-chaining": { "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -498,9 +488,8 @@ }, "node_modules/@babel/plugin-syntax-top-level-await": { "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -513,9 +502,8 @@ }, "node_modules/@babel/plugin-syntax-typescript": { "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.18.6.tgz", - "integrity": "sha512-mAWAuq4rvOepWCBid55JuRNvpTNf2UGVgoz4JV0fXEKolsVZDzsa4NqCef758WZJj/GDu0gVGItjKFiClTAmZA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.18.6" }, @@ -528,9 +516,8 @@ }, "node_modules/@babel/runtime": { "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.19.0.tgz", - "integrity": "sha512-eR8Lo9hnDS7tqkO7NsV+mKvCmv5boaXFSZ70DnfhcgiEne8hv9oCEd36Klw74EtizEqLsy4YnW8UWwpBVolHZA==", "dev": true, + "license": "MIT", "dependencies": { "regenerator-runtime": "^0.13.4" }, @@ -540,9 +527,8 @@ }, "node_modules/@babel/runtime-corejs3": { "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.19.0.tgz", - "integrity": "sha512-JyXXoCu1N8GLuKc2ii8y5RGma5FMpFeO2nAQIe0Yzrbq+rQnN+sFj47auLblR5ka6aHNGPDgv8G/iI2Grb0ldQ==", "dev": true, + "license": "MIT", "dependencies": { "core-js-pure": "^3.20.2", "regenerator-runtime": "^0.13.4" @@ -553,9 +539,8 @@ }, "node_modules/@babel/template": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz", - "integrity": "sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==", "dev": true, + "license": "MIT", "dependencies": { "@babel/code-frame": "^7.16.7", "@babel/parser": "^7.16.7", @@ -567,9 +552,8 @@ }, "node_modules/@babel/traverse": { "version": "7.17.3", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.17.3.tgz", - "integrity": "sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/code-frame": "^7.16.7", "@babel/generator": "^7.17.3", @@ -588,18 +572,16 @@ }, "node_modules/@babel/traverse/node_modules/globals": { "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/@babel/types": { "version": "7.17.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz", - "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-validator-identifier": "^7.16.7", "to-fast-properties": "^2.0.0" @@ -610,15 +592,13 @@ }, "node_modules/@bcoe/v8-coverage": { "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@cspotcode/source-map-support": { "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "0.3.9" }, @@ -628,19 +608,26 @@ }, "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.0.3", "@jridgewell/sourcemap-codec": "^1.4.10" } }, + "node_modules/@discoveryjs/json-ext": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", + "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/@eslint/eslintrc": { "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.1.tgz", - "integrity": "sha512-OhSY22oQQdw3zgPOOwdoj01l/Dzl1Z+xyUP33tkSN+aqyEhymJCcPHyXt+ylW8FSe0TfRC2VG+ROQOapD0aZSQ==", "dev": true, + "license": "MIT", "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", @@ -661,9 +648,8 @@ }, "node_modules/@eslint/eslintrc/node_modules/ajv": { "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, + "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -677,9 +663,8 @@ }, "node_modules/@eslint/eslintrc/node_modules/strip-json-comments": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -689,9 +674,8 @@ }, "node_modules/@humanwhocodes/config-array": { "version": "0.10.4", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.4.tgz", - "integrity": "sha512-mXAIHxZT3Vcpg83opl1wGlVZ9xydbfZO3r5YfRSH6Gpp2J/PfdBP0wbDa2sO6/qRbcalpoevVyW6A/fI6LfeMw==", "dev": true, + "license": "Apache-2.0", "dependencies": { "@humanwhocodes/object-schema": "^1.2.1", "debug": "^4.1.1", @@ -703,9 +687,8 @@ }, "node_modules/@humanwhocodes/gitignore-to-minimatch": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz", - "integrity": "sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA==", "dev": true, + "license": "Apache-2.0", "funding": { "type": "github", "url": "https://github.com/sponsors/nzakas" @@ -713,9 +696,8 @@ }, "node_modules/@humanwhocodes/module-importer": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", "dev": true, + "license": "Apache-2.0", "engines": { "node": ">=12.22" }, @@ -726,15 +708,13 @@ }, "node_modules/@humanwhocodes/object-schema": { "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "dev": true + "dev": true, + "license": "BSD-3-Clause" }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", "dev": true, + "license": "ISC", "dependencies": { "camelcase": "^5.3.1", "find-up": "^4.1.0", @@ -748,9 +728,8 @@ }, "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, + "license": "MIT", "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -761,9 +740,8 @@ }, "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, + "license": "MIT", "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -774,9 +752,8 @@ }, "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, + "license": "MIT", "dependencies": { "p-locate": "^4.1.0" }, @@ -786,9 +763,8 @@ }, "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, + "license": "MIT", "dependencies": { "p-try": "^2.0.0" }, @@ -801,9 +777,8 @@ }, "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, + "license": "MIT", "dependencies": { "p-limit": "^2.2.0" }, @@ -813,36 +788,32 @@ }, "node_modules/@istanbuljs/load-nyc-config/node_modules/p-try": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/@istanbuljs/load-nyc-config/node_modules/path-exists": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/@istanbuljs/schema": { "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/@jest/console": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.0.2.tgz", - "integrity": "sha512-Fv02ijyhF4D/Wb3DvZO3iBJQz5DnzpJEIDBDbvje8Em099N889tNMUnBw7SalmSuOI+NflNG40RA1iK71kImPw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/node": "*", @@ -857,9 +828,8 @@ }, "node_modules/@jest/console/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -872,9 +842,8 @@ }, "node_modules/@jest/console/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -888,9 +857,8 @@ }, "node_modules/@jest/console/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -900,24 +868,21 @@ }, "node_modules/@jest/console/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@jest/console/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/@jest/console/node_modules/jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/node": "*", @@ -932,9 +897,8 @@ }, "node_modules/@jest/console/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -944,9 +908,8 @@ }, "node_modules/@jest/core": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.0.2.tgz", - "integrity": "sha512-imP5M6cdpHEOkmcuFYZuM5cTG1DAF7ZlVNCq1+F7kbqme2Jcl+Kh4M78hihM76DJHNkurbv4UVOnejGxBKEmww==", "dev": true, + "license": "MIT", "dependencies": { "@jest/console": "^29.0.2", "@jest/reporters": "^29.0.2", @@ -991,9 +954,8 @@ }, "node_modules/@jest/core/node_modules/@jest/transform": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", - "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@jest/types": "^29.0.2", @@ -1017,9 +979,8 @@ }, "node_modules/@jest/core/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -1032,9 +993,8 @@ }, "node_modules/@jest/core/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -1048,9 +1008,8 @@ }, "node_modules/@jest/core/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -1060,24 +1019,21 @@ }, "node_modules/@jest/core/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@jest/core/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/@jest/core/node_modules/jest-haste-map": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", - "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/graceful-fs": "^4.1.3", @@ -1100,18 +1056,16 @@ }, "node_modules/@jest/core/node_modules/jest-regex-util": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", - "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/core/node_modules/jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/node": "*", @@ -1126,9 +1080,8 @@ }, "node_modules/@jest/core/node_modules/jest-worker": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", - "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -1140,9 +1093,8 @@ }, "node_modules/@jest/core/node_modules/jest-worker/node_modules/supports-color": { "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -1155,9 +1107,8 @@ }, "node_modules/@jest/core/node_modules/pretty-format": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", - "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/schemas": "^29.0.0", "ansi-styles": "^5.0.0", @@ -1169,9 +1120,8 @@ }, "node_modules/@jest/core/node_modules/pretty-format/node_modules/ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -1181,15 +1131,13 @@ }, "node_modules/@jest/core/node_modules/react-is": { "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@jest/core/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -1199,9 +1147,8 @@ }, "node_modules/@jest/core/node_modules/write-file-atomic": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, + "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4", "signal-exit": "^3.0.7" @@ -1212,9 +1159,8 @@ }, "node_modules/@jest/create-cache-key-function": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/create-cache-key-function/-/create-cache-key-function-27.5.1.tgz", - "integrity": "sha512-dmH1yW+makpTSURTy8VzdUwFnfQh1G8R+DxO2Ho2FFmBbKFEVm+3jWdvFhE2VqB/LATCTokkP0dotjyQyw5/AQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^27.5.1" }, @@ -1224,9 +1170,8 @@ }, "node_modules/@jest/create-cache-key-function/node_modules/@jest/types": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", "dev": true, + "license": "MIT", "dependencies": { "@types/istanbul-lib-coverage": "^2.0.0", "@types/istanbul-reports": "^3.0.0", @@ -1240,18 +1185,16 @@ }, "node_modules/@jest/create-cache-key-function/node_modules/@types/yargs": { "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", "dev": true, + "license": "MIT", "dependencies": { "@types/yargs-parser": "*" } }, "node_modules/@jest/create-cache-key-function/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -1264,9 +1207,8 @@ }, "node_modules/@jest/create-cache-key-function/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -1280,9 +1222,8 @@ }, "node_modules/@jest/create-cache-key-function/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -1292,24 +1233,21 @@ }, "node_modules/@jest/create-cache-key-function/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@jest/create-cache-key-function/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/@jest/create-cache-key-function/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -1319,9 +1257,8 @@ }, "node_modules/@jest/environment": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.0.2.tgz", - "integrity": "sha512-Yf+EYaLOrVCgts/aTS5nGznU4prZUPa5k9S63Yct8YSOKj2jkdS17hHSUKhk5jxDFMyCy1PXknypDw7vfgc/mA==", "dev": true, + "license": "MIT", "dependencies": { "@jest/fake-timers": "^29.0.2", "@jest/types": "^29.0.2", @@ -1334,9 +1271,8 @@ }, "node_modules/@jest/expect": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.0.2.tgz", - "integrity": "sha512-y/3geZ92p2/zovBm/F+ZjXUJ3thvT9IRzD6igqaWskFE2aR0idD+N/p5Lj/ZautEox/9RwEc6nqergebeh72uQ==", "dev": true, + "license": "MIT", "dependencies": { "expect": "^29.0.2", "jest-snapshot": "^29.0.2" @@ -1347,9 +1283,8 @@ }, "node_modules/@jest/expect-utils": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.0.2.tgz", - "integrity": "sha512-+wcQF9khXKvAEi8VwROnCWWmHfsJYCZAs5dmuMlJBKk57S6ZN2/FQMIlo01F29fJyT8kV/xblE7g3vkIdTLOjw==", "dev": true, + "license": "MIT", "dependencies": { "jest-get-type": "^29.0.0" }, @@ -1359,18 +1294,16 @@ }, "node_modules/@jest/expect-utils/node_modules/jest-get-type": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", - "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/fake-timers": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.0.2.tgz", - "integrity": "sha512-2JhQeWU28fvmM5r33lxg6BxxkTKaVXs6KMaJ6eXSM8ml/MaWkt2BvbIO8G9KWAJFMdBXWbn+2h9OK1/s5urKZA==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@sinonjs/fake-timers": "^9.1.2", @@ -1385,9 +1318,8 @@ }, "node_modules/@jest/fake-timers/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -1400,9 +1332,8 @@ }, "node_modules/@jest/fake-timers/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -1416,9 +1347,8 @@ }, "node_modules/@jest/fake-timers/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -1428,24 +1358,21 @@ }, "node_modules/@jest/fake-timers/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@jest/fake-timers/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/@jest/fake-timers/node_modules/jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/node": "*", @@ -1460,9 +1387,8 @@ }, "node_modules/@jest/fake-timers/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -1472,9 +1398,8 @@ }, "node_modules/@jest/globals": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.0.2.tgz", - "integrity": "sha512-4hcooSNJCVXuTu07/VJwCWW6HTnjLtQdqlcGisK6JST7z2ixa8emw4SkYsOk7j36WRc2ZUEydlUePnOIOTCNXg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/environment": "^29.0.2", "@jest/expect": "^29.0.2", @@ -1487,9 +1412,8 @@ }, "node_modules/@jest/reporters": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.0.2.tgz", - "integrity": "sha512-Kr41qejRQHHkCgWHC9YwSe7D5xivqP4XML+PvgwsnRFaykKdNflDUb4+xLXySOU+O/bPkVdFpGzUpVNSJChCrw==", "dev": true, + "license": "MIT", "dependencies": { "@bcoe/v8-coverage": "^0.2.3", "@jest/console": "^29.0.2", @@ -1531,9 +1455,8 @@ }, "node_modules/@jest/reporters/node_modules/@jest/transform": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", - "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@jest/types": "^29.0.2", @@ -1557,9 +1480,8 @@ }, "node_modules/@jest/reporters/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -1572,9 +1494,8 @@ }, "node_modules/@jest/reporters/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -1588,9 +1509,8 @@ }, "node_modules/@jest/reporters/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -1600,24 +1520,21 @@ }, "node_modules/@jest/reporters/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@jest/reporters/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/@jest/reporters/node_modules/jest-haste-map": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", - "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/graceful-fs": "^4.1.3", @@ -1640,18 +1557,16 @@ }, "node_modules/@jest/reporters/node_modules/jest-regex-util": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", - "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/reporters/node_modules/jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/node": "*", @@ -1666,9 +1581,8 @@ }, "node_modules/@jest/reporters/node_modules/jest-worker": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", - "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -1680,9 +1594,8 @@ }, "node_modules/@jest/reporters/node_modules/jest-worker/node_modules/supports-color": { "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -1695,9 +1608,8 @@ }, "node_modules/@jest/reporters/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -1707,9 +1619,8 @@ }, "node_modules/@jest/reporters/node_modules/write-file-atomic": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, + "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4", "signal-exit": "^3.0.7" @@ -1720,9 +1631,8 @@ }, "node_modules/@jest/schemas": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.0.0.tgz", - "integrity": "sha512-3Ab5HgYIIAnS0HjqJHQYZS+zXc4tUmTmBH3z83ajI6afXp8X3ZtdLX+nXx+I7LNkJD7uN9LAVhgnjDgZa2z0kA==", "dev": true, + "license": "MIT", "dependencies": { "@sinclair/typebox": "^0.24.1" }, @@ -1732,9 +1642,8 @@ }, "node_modules/@jest/source-map": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.0.0.tgz", - "integrity": "sha512-nOr+0EM8GiHf34mq2GcJyz/gYFyLQ2INDhAylrZJ9mMWoW21mLBfZa0BUVPPMxVYrLjeiRe2Z7kWXOGnS0TFhQ==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "^0.3.15", "callsites": "^3.0.0", @@ -1746,9 +1655,8 @@ }, "node_modules/@jest/test-result": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.0.2.tgz", - "integrity": "sha512-b5rDc0lLL6Kx73LyCx6370k9uZ8o5UKdCpMS6Za3ke7H9y8PtAU305y6TeghpBmf2In8p/qqi3GpftgzijSsNw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/console": "^29.0.2", "@jest/types": "^29.0.2", @@ -1761,9 +1669,8 @@ }, "node_modules/@jest/test-sequencer": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.0.2.tgz", - "integrity": "sha512-fsyZqHBlXNMv5ZqjQwCuYa2pskXCO0DVxh5aaVCuAtwzHuYEGrhordyEncBLQNuCGQSYgElrEEmS+7wwFnnMKw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/test-result": "^29.0.2", "graceful-fs": "^4.2.9", @@ -1776,9 +1683,8 @@ }, "node_modules/@jest/test-sequencer/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -1791,9 +1697,8 @@ }, "node_modules/@jest/test-sequencer/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -1807,9 +1712,8 @@ }, "node_modules/@jest/test-sequencer/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -1819,24 +1723,21 @@ }, "node_modules/@jest/test-sequencer/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@jest/test-sequencer/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/@jest/test-sequencer/node_modules/jest-haste-map": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", - "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/graceful-fs": "^4.1.3", @@ -1859,18 +1760,16 @@ }, "node_modules/@jest/test-sequencer/node_modules/jest-regex-util": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", - "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/test-sequencer/node_modules/jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/node": "*", @@ -1885,9 +1784,8 @@ }, "node_modules/@jest/test-sequencer/node_modules/jest-worker": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", - "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -1899,9 +1797,8 @@ }, "node_modules/@jest/test-sequencer/node_modules/jest-worker/node_modules/supports-color": { "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -1914,9 +1811,8 @@ }, "node_modules/@jest/test-sequencer/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -1926,9 +1822,8 @@ }, "node_modules/@jest/types": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.0.2.tgz", - "integrity": "sha512-5WNMesBLmlkt1+fVkoCjHa0X3i3q8zc4QLTDkdHgCa2gyPZc7rdlZBWgVLqwS1860ZW5xJuCDwAzqbGaXIr/ew==", "dev": true, + "license": "MIT", "dependencies": { "@jest/schemas": "^29.0.0", "@types/istanbul-lib-coverage": "^2.0.0", @@ -1943,9 +1838,8 @@ }, "node_modules/@jest/types/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -1958,9 +1852,8 @@ }, "node_modules/@jest/types/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -1974,9 +1867,8 @@ }, "node_modules/@jest/types/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -1986,24 +1878,21 @@ }, "node_modules/@jest/types/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@jest/types/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/@jest/types/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -2011,26 +1900,56 @@ "node": ">=8" } }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/@jridgewell/resolve-uri": { "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.0.5.tgz", - "integrity": "sha512-VPeQ7+wH0itvQxnG+lIzWgkysKIr3L9sslimFW55rHMdGu/qCQ5z5h9zq4gI8uBtqkpHhsF4Z/OwExufUCThew==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", "dev": true, "engines": { "node": ">=6.0.0" } }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", + "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, "node_modules/@jridgewell/sourcemap-codec": { "version": "1.4.11", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.11.tgz", - "integrity": "sha512-Fg32GrJo61m+VqYSdRSjRXMjQ06j8YIYfcTqndLYVAaHmroZHLJZCydsWBOTDqXS2v+mjxohBWEMfg97GXmYQg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.15", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.15.tgz", - "integrity": "sha512-oWZNOULl+UbhsgB51uuZzglikfIKSUBO/M9W2OfEjn7cmqoAiCgmv9lyACTUacZwBz0ITnJ2NqjU8Tx0DHL88g==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.0.3", "@jridgewell/sourcemap-codec": "^1.4.10" @@ -2038,8 +1957,7 @@ }, "node_modules/@jsep-plugin/regex": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.2.tgz", - "integrity": "sha512-Nn/Bcaww8zOebMDqNmGlhAWPWhIr/8S8lGIgaB/fSqev5xaO5uKy5i4qvTh63GpR+VzKqimgxDdcxdcRuCJXSw==", + "license": "MIT", "engines": { "node": ">= 10.16.0" }, @@ -2049,8 +1967,7 @@ }, "node_modules/@jsep-plugin/ternary": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.2.tgz", - "integrity": "sha512-gXguJc09uCrqWt1MD7L1+ChO32g4UH4BYGpHPoQRLhyU7pAPPRA7cvKbyjoqhnUlLutiXvLzB5hVVawPKax8jw==", + "license": "MIT", "engines": { "node": ">= 10.16.0" }, @@ -2060,9 +1977,8 @@ }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" @@ -2073,18 +1989,16 @@ }, "node_modules/@nodelib/fs.stat": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true, + "license": "MIT", "engines": { "node": ">= 8" } }, "node_modules/@nodelib/fs.walk": { "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" @@ -2095,18 +2009,16 @@ }, "node_modules/@octokit/auth-token": { "version": "2.4.5", - "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.5.tgz", - "integrity": "sha512-BpGYsPgJt05M7/L/5FoE1PiAbdxXFZkX/3kDYcsvd1v6UhlnE5e96dTDr0ezX/EFwciQxf3cNV0loipsURU+WA==", "dev": true, + "license": "MIT", "dependencies": { "@octokit/types": "^6.0.3" } }, "node_modules/@octokit/core": { "version": "3.4.0", - "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.4.0.tgz", - "integrity": "sha512-6/vlKPP8NF17cgYXqucdshWqmMZGXkuvtcrWCgU5NOI0Pl2GjlmZyWgBMrU8zJ3v2MJlM6++CiB45VKYmhiWWg==", "dev": true, + "license": "MIT", "dependencies": { "@octokit/auth-token": "^2.4.4", "@octokit/graphql": "^4.5.8", @@ -2119,9 +2031,8 @@ }, "node_modules/@octokit/endpoint": { "version": "6.0.11", - "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.11.tgz", - "integrity": "sha512-fUIPpx+pZyoLW4GCs3yMnlj2LfoXTWDUVPTC4V3MUEKZm48W+XYpeWSZCv+vYF1ZABUm2CqnDVf1sFtIYrj7KQ==", "dev": true, + "license": "MIT", "dependencies": { "@octokit/types": "^6.0.3", "is-plain-object": "^5.0.0", @@ -2130,9 +2041,8 @@ }, "node_modules/@octokit/graphql": { "version": "4.6.2", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.6.2.tgz", - "integrity": "sha512-WmsIR1OzOr/3IqfG9JIczI8gMJUMzzyx5j0XXQ4YihHtKlQc+u35VpVoOXhlKAlaBntvry1WpAzPl/a+s3n89Q==", "dev": true, + "license": "MIT", "dependencies": { "@octokit/request": "^5.3.0", "@octokit/types": "^6.0.3", @@ -2141,15 +2051,13 @@ }, "node_modules/@octokit/openapi-types": { "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-7.0.0.tgz", - "integrity": "sha512-gV/8DJhAL/04zjTI95a7FhQwS6jlEE0W/7xeYAzuArD0KVAVWDLP2f3vi98hs3HLTczxXdRK/mF0tRoQPpolEw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@octokit/plugin-paginate-rest": { "version": "2.13.3", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.13.3.tgz", - "integrity": "sha512-46lptzM9lTeSmIBt/sVP/FLSTPGx6DCzAdSX3PfeJ3mTf4h9sGC26WpaQzMEq/Z44cOcmx8VsOhO+uEgE3cjYg==", "dev": true, + "license": "MIT", "dependencies": { "@octokit/types": "^6.11.0" }, @@ -2159,18 +2067,16 @@ }, "node_modules/@octokit/plugin-request-log": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.3.tgz", - "integrity": "sha512-4RFU4li238jMJAzLgAwkBAw+4Loile5haQMQr+uhFq27BmyJXcXSKvoQKqh0agsZEiUlW6iSv3FAgvmGkur7OQ==", "dev": true, + "license": "MIT", "peerDependencies": { "@octokit/core": ">=3" } }, "node_modules/@octokit/plugin-rest-endpoint-methods": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.0.1.tgz", - "integrity": "sha512-vvWbPtPqLyIzJ7A4IPdTl+8IeuKAwMJ4LjvmqWOOdfSuqWQYZXq2CEd0hsnkidff2YfKlguzujHs/reBdAx8Sg==", "dev": true, + "license": "MIT", "dependencies": { "@octokit/types": "^6.13.1", "deprecation": "^2.3.1" @@ -2181,9 +2087,8 @@ }, "node_modules/@octokit/request": { "version": "5.4.15", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.4.15.tgz", - "integrity": "sha512-6UnZfZzLwNhdLRreOtTkT9n57ZwulCve8q3IT/Z477vThu6snfdkBuhxnChpOKNGxcQ71ow561Qoa6uqLdPtag==", "dev": true, + "license": "MIT", "dependencies": { "@octokit/endpoint": "^6.0.1", "@octokit/request-error": "^2.0.0", @@ -2195,9 +2100,8 @@ }, "node_modules/@octokit/request-error": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.0.5.tgz", - "integrity": "sha512-T/2wcCFyM7SkXzNoyVNWjyVlUwBvW3igM3Btr/eKYiPmucXTtkxt2RBsf6gn3LTzaLSLTQtNmvg+dGsOxQrjZg==", "dev": true, + "license": "MIT", "dependencies": { "@octokit/types": "^6.0.3", "deprecation": "^2.0.0", @@ -2206,9 +2110,8 @@ }, "node_modules/@octokit/rest": { "version": "18.5.3", - "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-18.5.3.tgz", - "integrity": "sha512-KPAsUCr1DOdLVbZJgGNuE/QVLWEaVBpFQwDAz/2Cnya6uW2wJ/P5RVGk0itx7yyN1aGa8uXm2pri4umEqG1JBA==", "dev": true, + "license": "MIT", "dependencies": { "@octokit/core": "^3.2.3", "@octokit/plugin-paginate-rest": "^2.6.2", @@ -2218,26 +2121,29 @@ }, "node_modules/@octokit/types": { "version": "6.14.2", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.14.2.tgz", - "integrity": "sha512-wiQtW9ZSy4OvgQ09iQOdyXYNN60GqjCL/UdMsepDr1Gr0QzpW6irIKbH3REuAHXAhxkEk9/F2a3Gcs1P6kW5jA==", "dev": true, + "license": "MIT", "dependencies": { "@octokit/openapi-types": "^7.0.0" } }, "node_modules/@openapi-contrib/openapi-schema-to-json-schema": { "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@openapi-contrib/openapi-schema-to-json-schema/-/openapi-schema-to-json-schema-3.2.0.tgz", - "integrity": "sha512-Gj6C0JwCr8arj0sYuslWXUBSP/KnUlEGnPW4qxlXvAl543oaNQgMgIgkQUA6vs5BCCvwTEiL8m/wdWzfl4UvSw==", + "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.3" } }, + "node_modules/@polka/url": { + "version": "1.0.0-next.21", + "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz", + "integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==", + "dev": true + }, "node_modules/@semantic-release/commit-analyzer": { "version": "8.0.1", - "resolved": "https://registry.npmjs.org/@semantic-release/commit-analyzer/-/commit-analyzer-8.0.1.tgz", - "integrity": "sha512-5bJma/oB7B4MtwUkZC2Bf7O1MHfi4gWe4mA+MIQ3lsEV0b422Bvl1z5HRpplDnMLHH3EXMoRdEng6Ds5wUqA3A==", "dev": true, + "license": "MIT", "dependencies": { "conventional-changelog-angular": "^5.0.0", "conventional-commits-filter": "^2.0.0", @@ -2256,15 +2162,13 @@ }, "node_modules/@semantic-release/error": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@semantic-release/error/-/error-2.2.0.tgz", - "integrity": "sha512-9Tj/qn+y2j+sjCI3Jd+qseGtHjOAeg7dU2/lVcqIQ9TV3QDaDXDYXcoOHU+7o2Hwh8L8ymL4gfuO7KxDs3q2zg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@semantic-release/github": { "version": "7.2.3", - "resolved": "https://registry.npmjs.org/@semantic-release/github/-/github-7.2.3.tgz", - "integrity": "sha512-lWjIVDLal+EQBzy697ayUNN8MoBpp+jYIyW2luOdqn5XBH4d9bQGfTnjuLyzARZBHejqh932HVjiH/j4+R7VHw==", "dev": true, + "license": "MIT", "dependencies": { "@octokit/rest": "^18.0.0", "@semantic-release/error": "^2.2.0", @@ -2292,9 +2196,8 @@ }, "node_modules/@semantic-release/github/node_modules/fs-extra": { "version": "10.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz", - "integrity": "sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==", "dev": true, + "license": "MIT", "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", @@ -2306,18 +2209,16 @@ }, "node_modules/@semantic-release/github/node_modules/universalify": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 10.0.0" } }, "node_modules/@semantic-release/npm": { "version": "7.0.5", - "resolved": "https://registry.npmjs.org/@semantic-release/npm/-/npm-7.0.5.tgz", - "integrity": "sha512-D+oEmsx9aHE1q806NFQwSC9KdBO8ri/VO99eEz0wWbX2jyLqVyWr7t0IjKC8aSnkkQswg/4KN/ZjfF6iz1XOpw==", "dev": true, + "license": "MIT", "dependencies": { "@semantic-release/error": "^2.2.0", "aggregate-error": "^3.0.0", @@ -2342,9 +2243,8 @@ }, "node_modules/@semantic-release/npm/node_modules/execa": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-4.0.0.tgz", - "integrity": "sha512-JbDUxwV3BoT5ZVXQrSVbAiaXhXUkIwvbhPIwZ0N13kX+5yCzOhUNdocxB/UQRuYOHRYYwAxKYwJYc0T4D12pDA==", "dev": true, + "license": "MIT", "dependencies": { "cross-spawn": "^7.0.0", "get-stream": "^5.0.0", @@ -2365,9 +2265,8 @@ }, "node_modules/@semantic-release/npm/node_modules/get-stream": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", - "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", "dev": true, + "license": "MIT", "dependencies": { "pump": "^3.0.0" }, @@ -2377,9 +2276,8 @@ }, "node_modules/@semantic-release/npm/node_modules/semver": { "version": "7.3.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", - "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -2389,9 +2287,8 @@ }, "node_modules/@semantic-release/release-notes-generator": { "version": "9.0.1", - "resolved": "https://registry.npmjs.org/@semantic-release/release-notes-generator/-/release-notes-generator-9.0.1.tgz", - "integrity": "sha512-bOoTiH6SiiR0x2uywSNR7uZcRDl22IpZhj+Q5Bn0v+98MFtOMhCxFhbrKQjhbYoZw7vps1mvMRmFkp/g6R9cvQ==", "dev": true, + "license": "MIT", "dependencies": { "conventional-changelog-angular": "^5.0.0", "conventional-changelog-writer": "^4.0.0", @@ -2413,9 +2310,8 @@ }, "node_modules/@semantic-release/release-notes-generator/node_modules/get-stream": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", - "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", "dev": true, + "license": "MIT", "dependencies": { "pump": "^3.0.0" }, @@ -2425,32 +2321,28 @@ }, "node_modules/@sinclair/typebox": { "version": "0.24.35", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.35.tgz", - "integrity": "sha512-iN6ehuDndiTiDz2F+Orv/+oHJR+PrGv+38oghCddpsW4YEZl5qyLsWxSwYUWrKEOfjpGtXDFW6scJtjpzSLeSw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@sinonjs/commons": { "version": "1.8.3", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.3.tgz", - "integrity": "sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "type-detect": "4.0.8" } }, "node_modules/@sinonjs/fake-timers": { "version": "9.1.2", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-9.1.2.tgz", - "integrity": "sha512-BPS4ynJW/o92PUR4wgriz2Ud5gpST5vz6GQfMixEDK0Z8ZCUv2M7SkBLykH56T++Xs+8ln9zTGbOvNGIe02/jw==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "@sinonjs/commons": "^1.7.0" } }, "node_modules/@stoplight/better-ajv-errors": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.3.tgz", - "integrity": "sha512-0p9uXkuB22qGdNfy3VeEhxkU5uwvp/KrBTAbrLBURv6ilxIVwanKwjMc41lQfIVgPGcOkmLbTolfFrSsueu7zA==", + "license": "Apache-2.0", "dependencies": { "jsonpointer": "^5.0.0", "leven": "^3.1.0" @@ -2464,8 +2356,7 @@ }, "node_modules/@stoplight/json": { "version": "3.20.1", - "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.20.1.tgz", - "integrity": "sha512-FXfud+uWgIj1xv6nUO9WnmgmnVikaxJcbtR4XQt4C42n5c2qua3U05Z/3B57hP5TJRSj+tpn9ID6/bFeyYYlEg==", + "license": "Apache-2.0", "dependencies": { "@stoplight/ordered-object-literal": "^1.0.3", "@stoplight/path": "^1.3.2", @@ -2480,8 +2371,7 @@ }, "node_modules/@stoplight/json-ref-readers": { "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@stoplight/json-ref-readers/-/json-ref-readers-1.2.2.tgz", - "integrity": "sha512-nty0tHUq2f1IKuFYsLM4CXLZGHdMn+X/IwEUIpeSOXt0QjMUbL0Em57iJUDzz+2MkWG83smIigNZ3fauGjqgdQ==", + "license": "Apache-2.0", "dependencies": { "node-fetch": "^2.6.0", "tslib": "^1.14.1" @@ -2492,13 +2382,11 @@ }, "node_modules/@stoplight/json-ref-readers/node_modules/tslib": { "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + "license": "0BSD" }, "node_modules/@stoplight/json-ref-resolver": { "version": "3.1.3", - "resolved": "https://registry.npmjs.org/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.3.tgz", - "integrity": "sha512-SgoKXwVnlpIZUyAFX4W79eeuTWvXmNlMfICZixL16GZXnkjcW+uZnfmAU0ZIjcnaTgaI4mjfxn8LAP2KR6Cr0A==", + "license": "Apache-2.0", "dependencies": { "@stoplight/json": "^3.17.0", "@stoplight/path": "^1.3.2", @@ -2518,8 +2406,7 @@ }, "node_modules/@stoplight/json/node_modules/@stoplight/types": { "version": "13.6.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", - "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", + "license": "Apache-2.0", "dependencies": { "@types/json-schema": "^7.0.4", "utility-types": "^3.10.0" @@ -2530,8 +2417,7 @@ }, "node_modules/@stoplight/lifecycle": { "version": "2.3.2", - "resolved": "https://registry.npmjs.org/@stoplight/lifecycle/-/lifecycle-2.3.2.tgz", - "integrity": "sha512-v0u8p27FA/eg04b4z6QXw4s0NeeFcRzyvseBW0+k/q4jtpg7EhVCqy42EbbbU43NTNDpIeQ81OcvkFz+6CYshw==", + "license": "Apache-2.0", "dependencies": { "wolfy87-eventemitter": "~5.2.8" }, @@ -2541,24 +2427,21 @@ }, "node_modules/@stoplight/ordered-object-literal": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@stoplight/ordered-object-literal/-/ordered-object-literal-1.0.3.tgz", - "integrity": "sha512-cjJ7PPkhgTXNMTkevAlmyrx9xOOCaI3c6rEeYb6VitL1o1WcZtrz9KyFyISmTmUa7yYTiy2IS/ud9S8s2sn3+A==", + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/@stoplight/path": { "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@stoplight/path/-/path-1.3.2.tgz", - "integrity": "sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ==", + "license": "Apache-2.0", "engines": { "node": ">=8" } }, "node_modules/@stoplight/spectral-core": { "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.14.1.tgz", - "integrity": "sha512-UMPfkrDqIMiAoZuVx4QiVV3D5fssfhDQ6R36qTP3x0hZFOeVDIFIcVdKV8lgmvsbpKaOgU/AD/2s4jScyTIqoA==", + "license": "Apache-2.0", "dependencies": { "@stoplight/better-ajv-errors": "1.0.3", "@stoplight/json": "~3.20.1", @@ -2590,8 +2473,7 @@ }, "node_modules/@stoplight/spectral-core/node_modules/@stoplight/types": { "version": "13.6.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", - "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", + "license": "Apache-2.0", "dependencies": { "@types/json-schema": "^7.0.4", "utility-types": "^3.10.0" @@ -2602,24 +2484,21 @@ }, "node_modules/@stoplight/spectral-core/node_modules/ajv-errors": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", - "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", + "license": "MIT", "peerDependencies": { "ajv": "^8.0.1" } }, "node_modules/@stoplight/spectral-core/node_modules/jsonpath-plus": { "version": "7.1.0", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.1.0.tgz", - "integrity": "sha512-gTaNRsPWO/K2KY6MrqaUFClF9kmuM6MFH5Dhg1VYDODgFbByw1yb7xu3hrViE/sz+dGOeMWgCzwUwQtAnCTE9g==", + "license": "MIT", "engines": { "node": ">=12.0.0" } }, "node_modules/@stoplight/spectral-formats": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.2.0.tgz", - "integrity": "sha512-idvn7r8fvQjY/KeJpKgXQ5eJhce6N6/KoKWMPSh5yyvYDpn+bkU4pxAD79jOJaDnIyKJd1jjTPEJWnxbS0jj6A==", + "license": "Apache-2.0", "dependencies": { "@stoplight/json": "^3.17.0", "@stoplight/spectral-core": "^1.8.0", @@ -2632,8 +2511,7 @@ }, "node_modules/@stoplight/spectral-functions": { "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-functions/-/spectral-functions-1.7.1.tgz", - "integrity": "sha512-UWeUrxc1pu45ZNYKtK3OloMpkUNTPqwpmjbGUn4oEnbqrLEYu/B2oOg66EtGcadOBEsdOb7f5vaPlhUNNrpEpQ==", + "license": "Apache-2.0", "dependencies": { "@stoplight/better-ajv-errors": "1.0.3", "@stoplight/json": "^3.17.1", @@ -2653,8 +2531,7 @@ }, "node_modules/@stoplight/spectral-functions/node_modules/ajv-draft-04": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", - "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", + "license": "MIT", "peerDependencies": { "ajv": "^8.5.0" }, @@ -2666,16 +2543,14 @@ }, "node_modules/@stoplight/spectral-functions/node_modules/ajv-errors": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", - "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", + "license": "MIT", "peerDependencies": { "ajv": "^8.0.1" } }, "node_modules/@stoplight/spectral-parsers": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-parsers/-/spectral-parsers-1.0.2.tgz", - "integrity": "sha512-ZQXknJ+BM5Re4Opj4cgVlHgG2qyOk/wznKJq3Vf1qsBEg2CNzN0pJmSB0deRqW0kArqm44qpb8c+cz3F2rgMtw==", + "license": "Apache-2.0", "dependencies": { "@stoplight/json": "~3.20.1", "@stoplight/types": "^13.6.0", @@ -2688,8 +2563,7 @@ }, "node_modules/@stoplight/spectral-parsers/node_modules/@stoplight/types": { "version": "13.6.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", - "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", + "license": "Apache-2.0", "dependencies": { "@types/json-schema": "^7.0.4", "utility-types": "^3.10.0" @@ -2700,8 +2574,7 @@ }, "node_modules/@stoplight/spectral-ref-resolver": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-ref-resolver/-/spectral-ref-resolver-1.0.1.tgz", - "integrity": "sha512-0tY7nTOccvTsa3c4QbSWfJ8wGfPO1RXvmKnmBjuyLfoTMNuhkHPII9gKhCjygsshzsBLxs2IyRHZYhWYVnEbCA==", + "license": "Apache-2.0", "dependencies": { "@stoplight/json-ref-readers": "1.2.2", "@stoplight/json-ref-resolver": "3.1.3", @@ -2715,8 +2588,7 @@ }, "node_modules/@stoplight/spectral-rulesets": { "version": "1.12.0", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-rulesets/-/spectral-rulesets-1.12.0.tgz", - "integrity": "sha512-ktSO5YPzYzscnGTQffyKJwrzsR2i5cpPUC4yBp0isc6mOeiVec4r9sjMUN1mJt0RVnXi509vd0+YlMthFIZYnw==", + "license": "Apache-2.0", "dependencies": { "@asyncapi/specs": "^2.14.0", "@stoplight/better-ajv-errors": "1.0.3", @@ -2739,13 +2611,11 @@ }, "node_modules/@stoplight/spectral-rulesets/node_modules/@asyncapi/specs": { "version": "2.14.0", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-2.14.0.tgz", - "integrity": "sha512-hHsYF6XsYNIKb1P2rXaooF4H+uKKQ4b/Ljxrk3rZ3riEDiSxMshMEfb1fUlw9Yj4V4OmJhjXwkNvw8W59AXv1A==" + "license": "Apache-2.0" }, "node_modules/@stoplight/spectral-rulesets/node_modules/@stoplight/types": { "version": "13.6.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", - "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", + "license": "Apache-2.0", "dependencies": { "@types/json-schema": "^7.0.4", "utility-types": "^3.10.0" @@ -2756,13 +2626,11 @@ }, "node_modules/@stoplight/spectral-rulesets/node_modules/json-schema-traverse": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + "license": "MIT" }, "node_modules/@stoplight/spectral-runtime": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-runtime/-/spectral-runtime-1.1.2.tgz", - "integrity": "sha512-fr5zRceXI+hrl82yAVoME+4GvJie8v3wmOe9tU+ZLRRNonizthy8qDi0Z/z4olE+vGreSDcuDOZ7JjRxFW5kTw==", + "license": "Apache-2.0", "dependencies": { "@stoplight/json": "^3.17.0", "@stoplight/path": "^1.3.2", @@ -2778,8 +2646,7 @@ }, "node_modules/@stoplight/types": { "version": "12.3.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-12.3.0.tgz", - "integrity": "sha512-hgzUR1z5BlYvIzUeFK5pjs5JXSvEutA9Pww31+dVicBlunsG1iXopDx/cvfBY7rHOrgtZDuvyeK4seqkwAZ6Cg==", + "license": "Apache-2.0", "dependencies": { "@types/json-schema": "^7.0.4", "utility-types": "^3.10.0" @@ -2790,8 +2657,7 @@ }, "node_modules/@stoplight/yaml": { "version": "4.2.3", - "resolved": "https://registry.npmjs.org/@stoplight/yaml/-/yaml-4.2.3.tgz", - "integrity": "sha512-Mx01wjRAR9C7yLMUyYFTfbUf5DimEpHMkRDQ1PKLe9dfNILbgdxyrncsOXM3vCpsQ1Hfj4bPiGl+u4u6e9Akqw==", + "license": "Apache-2.0", "dependencies": { "@stoplight/ordered-object-literal": "^1.0.1", "@stoplight/types": "^13.0.0", @@ -2804,13 +2670,11 @@ }, "node_modules/@stoplight/yaml-ast-parser": { "version": "0.0.48", - "resolved": "https://registry.npmjs.org/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.48.tgz", - "integrity": "sha512-sV+51I7WYnLJnKPn2EMWgS4EUfoP4iWEbrWwbXsj0MZCB/xOK8j6+C9fntIdOM50kpx45ZLC3s6kwKivWuqvyg==" + "license": "Apache-2.0" }, "node_modules/@stoplight/yaml/node_modules/@stoplight/types": { "version": "13.6.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", - "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", + "license": "Apache-2.0", "dependencies": { "@types/json-schema": "^7.0.4", "utility-types": "^3.10.0" @@ -2821,10 +2685,9 @@ }, "node_modules/@swc/core": { "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.2.248.tgz", - "integrity": "sha512-/HQJT2BIT5fkf6I6vK5fS5SKf34QedBQQNf0A38xRIAFhQjLBVWECRFySqKijaFoIzRv9Ic4DI6XwusBNfPUyA==", "dev": true, "hasInstallScript": true, + "license": "Apache-2.0", "bin": { "swcx": "run_swcx.js" }, @@ -2851,409 +2714,169 @@ "@swc/core-win32-x64-msvc": "1.2.248" } }, - "node_modules/@swc/core-android-arm-eabi": { + "node_modules/@swc/core-darwin-x64": { "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-android-arm-eabi/-/core-android-arm-eabi-1.2.248.tgz", - "integrity": "sha512-+n4fyGnGWnhV/GanN99N5FkgCF0JdJVViecsA0eAEXF35+qZ0PO3YgDx3EfBXA35utddXZwskZ9q71cjSPv4Rg==", "cpu": [ - "arm" + "x64" ], "dev": true, + "license": "Apache-2.0 AND MIT", "optional": true, "os": [ - "android" + "darwin" ], - "dependencies": { - "@swc/wasm": "1.2.122" - }, "engines": { "node": ">=10" } }, - "node_modules/@swc/core-android-arm64": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-android-arm64/-/core-android-arm64-1.2.248.tgz", - "integrity": "sha512-/eXNTuWpAiJsP/DkO2hr4B+a6oS605sRq6Y2ry7sc+7bS8jkDloryD3Lkyv6h1RgRrv33uRCt0+JLN+odeeBSA==", - "cpu": [ - "arm64" - ], + "node_modules/@swc/jest": { + "version": "0.2.22", "dev": true, - "optional": true, - "os": [ - "android" + "license": "MIT", + "workspaces": [ + "examples/react" ], "dependencies": { - "@swc/wasm": "1.2.130" + "@jest/create-cache-key-function": "^27.4.2" }, "engines": { - "node": ">=10" + "npm": ">= 7.0.0" + }, + "peerDependencies": { + "@swc/core": "*" } }, - "node_modules/@swc/core-android-arm64/node_modules/@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", - "dev": true, - "optional": true - }, - "node_modules/@swc/core-darwin-arm64": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.2.248.tgz", - "integrity": "sha512-rd9UwNuFhMk4WxoFmba2HKNrPevh8p/syEtjThyQ+kcMLU1D5yA3WwYEyPvnLgytlkJvsUIjVjV15i8lNSU0TQ==", - "cpu": [ - "arm64" - ], + "node_modules/@tootallnate/once": { + "version": "1.1.2", "dev": true, - "optional": true, - "os": [ - "darwin" - ], + "license": "MIT", "engines": { - "node": ">=10" + "node": ">= 6" } }, - "node_modules/@swc/core-darwin-x64": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.2.248.tgz", - "integrity": "sha512-ouexUd719FZ4CEGl2HDZEGJV4nAhcRJ6BUMO0IOxK0MRJEDvqTiW98nSqTbOz22GHTy9Z0n5vkc5nOkuDfTJTQ==", - "cpu": [ - "x64" - ], + "node_modules/@tsconfig/node10": { + "version": "1.0.9", "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=10" - } + "license": "MIT" }, - "node_modules/@swc/core-freebsd-x64": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-freebsd-x64/-/core-freebsd-x64-1.2.248.tgz", - "integrity": "sha512-rV4h0dGqz9x5xRGGRXKQ5MzAep90PkjLIXIcPG16M8pJQFNhS6Ebslxvh//6GIvTONE9VU/86CHWJ8FJHedUPA==", - "cpu": [ - "x64" - ], + "node_modules/@tsconfig/node12": { + "version": "1.0.11", "dev": true, - "optional": true, - "os": [ - "freebsd" - ], + "license": "MIT" + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.3", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/babel__core": { + "version": "7.1.18", + "dev": true, + "license": "MIT", "dependencies": { - "@swc/wasm": "1.2.130" - }, - "engines": { - "node": ">=10" + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" } }, - "node_modules/@swc/core-freebsd-x64/node_modules/@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", + "node_modules/@types/babel__generator": { + "version": "7.6.4", "dev": true, - "optional": true + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } }, - "node_modules/@swc/core-linux-arm-gnueabihf": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.2.248.tgz", - "integrity": "sha512-8ZOPx9+tuLQ86cvFd3+FVBsodxFWvczJRzfLamxScEGywMsQ+Jz6vMEXAo0AbSjNjJG01DXeiVkqqyCD3Rpmug==", - "cpu": [ - "arm" - ], + "node_modules/@types/babel__template": { + "version": "7.4.1", "dev": true, - "optional": true, - "os": [ - "linux" - ], + "license": "MIT", "dependencies": { - "@swc/wasm": "1.2.130" - }, - "engines": { - "node": ">=10" + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" } }, - "node_modules/@swc/core-linux-arm-gnueabihf/node_modules/@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", + "node_modules/@types/babel__traverse": { + "version": "7.14.2", "dev": true, - "optional": true + "license": "MIT", + "dependencies": { + "@babel/types": "^7.3.0" + } }, - "node_modules/@swc/core-linux-arm64-gnu": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.2.248.tgz", - "integrity": "sha512-drJgH/s9p+4DMw7E6RxNSwj9M/0o0DWfTgO11D/afSTIR9hZfZSjC1cjpGS93jnW52H6iMWPHhcTOidHtvmVPg==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" + "node_modules/@types/es-aggregate-error": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "@types/node": "*" } }, - "node_modules/@swc/core-linux-arm64-musl": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.2.248.tgz", - "integrity": "sha512-qhntKjnAtpbHyOVJPX/LQdOdngATFXiBc8S7f5hrkn6AdK3WmojUapZbiy+0YRYxjoRrMWy/ubY8J2JWyHKeZg==", - "cpu": [ - "arm64" - ], + "node_modules/@types/eslint": { + "version": "8.4.6", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.6.tgz", + "integrity": "sha512-/fqTbjxyFUaYNO7VcW5g+4npmqVACz1bB7RTHYuLj+PRjw9hrCwrUXVQFpChUS0JsyEFvMZ7U/PfmvWgxJhI9g==", "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" } }, - "node_modules/@swc/core-linux-x64-gnu": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.2.248.tgz", - "integrity": "sha512-NcWuAuWg0N7/KXOk2JtYG4crFqhWrFV2d9shDr5PLm9bAbgSebqxGjAluQbTQjGM+ABpZ3PO4IuaCfyui3abqQ==", - "cpu": [ - "x64" - ], + "node_modules/@types/eslint-scope": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", + "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" } }, - "node_modules/@swc/core-linux-x64-musl": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.2.248.tgz", - "integrity": "sha512-E9bog6QK3DSGcK7UdpgsPVeDDCRv/SqoFOEYRYuDEOVgNkpte37pj1IdQCmN0gDHyyvuJxQ9+Knr9282DUJmQg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-win32-arm64-msvc": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.2.248.tgz", - "integrity": "sha512-dzAFIo5gN0hJGdC9Ikzx+gtqhePpKN2brpK0hQLlEL/+ruClxTjGxOpPO9cSHR771uO62hgNn1lN0Vhx37gQMA==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "dependencies": { - "@swc/wasm": "1.2.130" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-win32-arm64-msvc/node_modules/@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", - "dev": true, - "optional": true - }, - "node_modules/@swc/core-win32-ia32-msvc": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.2.248.tgz", - "integrity": "sha512-TjyHVop+4+hHVziyoUpQ7mBrgGShvbcFF0f+5mVzKzBJSjbKPsZEtu5qMi12r03g+4fCCHaq1QnWeq1uhke0rQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "dependencies": { - "@swc/wasm": "1.2.130" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/core-win32-ia32-msvc/node_modules/@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", - "dev": true, - "optional": true - }, - "node_modules/@swc/core-win32-x64-msvc": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.2.248.tgz", - "integrity": "sha512-XODvZBfUSoUdj0RqUyOkBD7HydE5vSDvcYSVLCmLWsgEDPJhUWiOZHoXMEvoTu5/BDNezUZn58DlKozCzWZQsQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=10" - } - }, - "node_modules/@swc/jest": { - "version": "0.2.22", - "resolved": "https://registry.npmjs.org/@swc/jest/-/jest-0.2.22.tgz", - "integrity": "sha512-PIUIk9IdB1oAVfF9zNIfYoMBoEhahrrSvyryFANas7swC1cF0L5HR0f9X4qfet46oyCHCBtNcSpN0XJEOFIKlw==", - "dev": true, - "dependencies": { - "@jest/create-cache-key-function": "^27.4.2" - }, - "engines": { - "npm": ">= 7.0.0" - }, - "peerDependencies": { - "@swc/core": "*" - } - }, - "node_modules/@swc/wasm": { - "version": "1.2.122", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.122.tgz", - "integrity": "sha512-sM1VCWQxmNhFtdxME+8UXNyPNhxNu7zdb6ikWpz0YKAQQFRGT5ThZgJrubEpah335SUToNg8pkdDF7ibVCjxbQ==", - "dev": true, - "optional": true - }, - "node_modules/@tootallnate/once": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", - "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/@tsconfig/node10": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", - "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", + "node_modules/@types/estree": { + "version": "0.0.51", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", + "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", "dev": true }, - "node_modules/@tsconfig/node12": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true - }, - "node_modules/@tsconfig/node14": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "dev": true - }, - "node_modules/@tsconfig/node16": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", - "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", - "dev": true - }, - "node_modules/@types/babel__core": { - "version": "7.1.18", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.18.tgz", - "integrity": "sha512-S7unDjm/C7z2A2R9NzfKCK1I+BAALDtxEmsJBwlB3EzNfb929ykjL++1CK9LO++EIp2fQrC8O+BwjKvz6UeDyQ==", - "dev": true, - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", - "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", - "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", - "dev": true, - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.14.2", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.14.2.tgz", - "integrity": "sha512-K2waXdXBi2302XUdcHcR1jCeU0LL4TD9HRs/gk0N2Xvrht+G/BfJa4QObBQZfhMdxiCpV3COl5Nfq4uKTeTnJA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.3.0" - } - }, - "node_modules/@types/es-aggregate-error": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@types/es-aggregate-error/-/es-aggregate-error-1.0.2.tgz", - "integrity": "sha512-erqUpFXksaeR2kejKnhnjZjbFxUpGZx4Z7ydNL9ie8tEhXPiZTsLeUDJ6aR1F8j5wWUAtOAQWUqkc7givBJbBA==", - "dependencies": { - "@types/node": "*" - } - }, "node_modules/@types/graceful-fs": { "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz", - "integrity": "sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*" } }, "node_modules/@types/istanbul-lib-coverage": { "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", - "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/istanbul-lib-report": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", "dev": true, + "license": "MIT", "dependencies": { "@types/istanbul-lib-coverage": "*" } }, "node_modules/@types/istanbul-reports": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", "dev": true, + "license": "MIT", "dependencies": { "@types/istanbul-lib-report": "*" } }, "node_modules/@types/jest": { "version": "27.4.1", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.4.1.tgz", - "integrity": "sha512-23iPJADSmicDVrWk+HT58LMJtzLAnB2AgIzplQuq/bSrGaxCrlvRFjGbXmamnnk/mAmCdLStiGqggu28ocUyiw==", "dev": true, + "license": "MIT", "dependencies": { "jest-matcher-utils": "^27.0.0", "pretty-format": "^27.0.0" @@ -3261,93 +2884,88 @@ }, "node_modules/@types/js-yaml": { "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz", - "integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/json-schema": { "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" + "license": "MIT" }, "node_modules/@types/json5": { "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/lodash": { "version": "4.14.179", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.179.tgz", - "integrity": "sha512-uwc1x90yCKqGcIOAT6DwOSuxnrAbpkdPsUOZtwrXb4D/6wZs+6qG7QnIawDuZWg0sWpxl+ltIKCaLoMlna678w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/minimist": { "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", - "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/node": { "version": "17.0.21", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.21.tgz", - "integrity": "sha512-DBZCJbhII3r90XbQxI8Y9IjjiiOGlZ0Hr32omXIZvwwZ7p4DMMXGrKXVyPfuoBOri9XNtL0UK69jYIBIsRX3QQ==" + "license": "MIT" }, "node_modules/@types/normalize-package-data": { "version": "2.4.0", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", - "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/parse-json": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/prettier": { "version": "2.7.0", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.0.tgz", - "integrity": "sha512-RI1L7N4JnW5gQw2spvL7Sllfuf1SaHdrZpCHiBlCXjIlufi1SMNnbu2teze3/QE67Fg2tBlH7W+mi4hVNk4p0A==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/retry": { "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", - "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/stack-utils": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@types/urijs": { "version": "1.19.19", - "resolved": "https://registry.npmjs.org/@types/urijs/-/urijs-1.19.19.tgz", - "integrity": "sha512-FDJNkyhmKLw7uEvTxx5tSXfPeQpO0iy73Ry+PmYZJvQy0QIWX8a7kJ4kLWRf+EbTPJEPDSgPXHaM7pzr5lmvCg==" + "license": "MIT" }, "node_modules/@types/yargs": { "version": "17.0.12", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.12.tgz", - "integrity": "sha512-Nz4MPhecOFArtm81gFQvQqdV7XYCrWKx5uUt6GNHredFHn1i2mtWqXTON7EPXMtNi1qjtjEM/VCHDhcHsAMLXQ==", "dev": true, + "license": "MIT", "dependencies": { "@types/yargs-parser": "*" } }, "node_modules/@types/yargs-parser": { "version": "21.0.0", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", - "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", - "dev": true + "dev": true, + "license": "MIT" + }, + "node_modules/@types/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==", + "dev": true, + "optional": true, + "dependencies": { + "@types/node": "*" + } }, "node_modules/@typescript-eslint/eslint-plugin": { "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.36.2.tgz", - "integrity": "sha512-OwwR8LRwSnI98tdc2z7mJYgY60gf7I9ZfGjN5EjCwwns9bdTuQfAXcsjSB2wSQ/TVNYSGKf4kzVXbNGaZvwiXw==", "dev": true, + "license": "MIT", "dependencies": { "@typescript-eslint/scope-manager": "5.36.2", "@typescript-eslint/type-utils": "5.36.2", @@ -3378,9 +2996,8 @@ }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", "dev": true, + "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -3393,9 +3010,8 @@ }, "node_modules/@typescript-eslint/parser": { "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.36.2.tgz", - "integrity": "sha512-qS/Kb0yzy8sR0idFspI9Z6+t7mqk/oRjnAYfewG+VN73opAUvmYL3oPIMmgOX6CnQS6gmVIXGshlb5RY/R22pA==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "@typescript-eslint/scope-manager": "5.36.2", "@typescript-eslint/types": "5.36.2", @@ -3420,9 +3036,8 @@ }, "node_modules/@typescript-eslint/scope-manager": { "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.36.2.tgz", - "integrity": "sha512-cNNP51L8SkIFSfce8B1NSUBTJTu2Ts4nWeWbFrdaqjmn9yKrAaJUBHkyTZc0cL06OFHpb+JZq5AUHROS398Orw==", "dev": true, + "license": "MIT", "dependencies": { "@typescript-eslint/types": "5.36.2", "@typescript-eslint/visitor-keys": "5.36.2" @@ -3437,9 +3052,8 @@ }, "node_modules/@typescript-eslint/type-utils": { "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.36.2.tgz", - "integrity": "sha512-rPQtS5rfijUWLouhy6UmyNquKDPhQjKsaKH0WnY6hl/07lasj8gPaH2UD8xWkePn6SC+jW2i9c2DZVDnL+Dokw==", "dev": true, + "license": "MIT", "dependencies": { "@typescript-eslint/typescript-estree": "5.36.2", "@typescript-eslint/utils": "5.36.2", @@ -3464,9 +3078,8 @@ }, "node_modules/@typescript-eslint/types": { "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.36.2.tgz", - "integrity": "sha512-9OJSvvwuF1L5eS2EQgFUbECb99F0mwq501w0H0EkYULkhFa19Qq7WFbycdw1PexAc929asupbZcgjVIe6OK/XQ==", "dev": true, + "license": "MIT", "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, @@ -3477,9 +3090,8 @@ }, "node_modules/@typescript-eslint/typescript-estree": { "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.36.2.tgz", - "integrity": "sha512-8fyH+RfbKc0mTspfuEjlfqA4YywcwQK2Amcf6TDOwaRLg7Vwdu4bZzyvBZp4bjt1RRjQ5MDnOZahxMrt2l5v9w==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "@typescript-eslint/types": "5.36.2", "@typescript-eslint/visitor-keys": "5.36.2", @@ -3504,9 +3116,8 @@ }, "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", "dev": true, + "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -3519,9 +3130,8 @@ }, "node_modules/@typescript-eslint/utils": { "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.36.2.tgz", - "integrity": "sha512-uNcopWonEITX96v9pefk9DC1bWMdkweeSsewJ6GeC7L6j2t0SJywisgkr9wUTtXk90fi2Eljj90HSHm3OGdGRg==", "dev": true, + "license": "MIT", "dependencies": { "@types/json-schema": "^7.0.9", "@typescript-eslint/scope-manager": "5.36.2", @@ -3543,9 +3153,8 @@ }, "node_modules/@typescript-eslint/utils/node_modules/eslint-scope": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^4.1.1" @@ -3556,18 +3165,16 @@ }, "node_modules/@typescript-eslint/utils/node_modules/estraverse": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=4.0" } }, "node_modules/@typescript-eslint/visitor-keys": { "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.36.2.tgz", - "integrity": "sha512-BtRvSR6dEdrNt7Net2/XDjbYKU5Ml6GqJgVfXT0CxTCJlnIqK7rAGreuWKMT2t8cFUT2Msv5oxw0GMRD7T5J7A==", "dev": true, + "license": "MIT", "dependencies": { "@typescript-eslint/types": "5.36.2", "eslint-visitor-keys": "^3.3.0" @@ -3580,91 +3187,286 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "node_modules/@webassemblyjs/ast": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", + "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", + "dev": true, "dependencies": { - "event-target-shim": "^5.0.0" - }, - "engines": { - "node": ">=6.5" + "@webassemblyjs/helper-numbers": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1" } }, - "node_modules/acorn": { - "version": "8.8.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", - "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", + "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", + "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", + "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", + "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@xtuc/long": "4.2.2" } }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", + "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", + "dev": true + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", + "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1" } }, - "node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "node_modules/@webassemblyjs/ieee754": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", + "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", "dev": true, - "engines": { - "node": ">=0.4.0" + "dependencies": { + "@xtuc/ieee754": "^1.2.0" } }, - "node_modules/agent-base": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.0.tgz", - "integrity": "sha512-j1Q7cSCqN+AwrmDd+pzgqc0/NpC655x2bUf5ZjRIO77DcNBFmh+OgRNzF6OKdCC9RSCb19fGd99+bhXFdkRNqw==", + "node_modules/@webassemblyjs/leb128": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", + "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", "dev": true, "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" + "@xtuc/long": "4.2.2" } }, - "node_modules/aggregate-error": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.0.1.tgz", - "integrity": "sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA==", + "node_modules/@webassemblyjs/utf8": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", + "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", + "dev": true + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", + "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", "dev": true, "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, - "engines": { - "node": ">=8" + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/helper-wasm-section": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-opt": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "@webassemblyjs/wast-printer": "1.11.1" } }, - "node_modules/ajv": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", - "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", + "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", + "dev": true, "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", + "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", + "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", + "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", + "dev": true, + "dependencies": { + "@webassemblyjs/ast": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webpack-cli/configtest": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz", + "integrity": "sha512-4FB8Tj6xyVkyqjj1OaTqCjXYULB9FMkqQ8yGrZjRDrYh0nOE+7Lhs45WioWQQMV+ceFlE368Ukhe6xdvJM9Egg==", + "dev": true, + "peerDependencies": { + "webpack": "4.x.x || 5.x.x", + "webpack-cli": "4.x.x" + } + }, + "node_modules/@webpack-cli/info": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.5.0.tgz", + "integrity": "sha512-e8tSXZpw2hPl2uMJY6fsMswaok5FdlGNRTktvFk2sD8RjH0hE2+XistawJx1vmKteh4NmGmNUrp+Tb2w+udPcQ==", + "dev": true, + "dependencies": { + "envinfo": "^7.7.3" + }, + "peerDependencies": { + "webpack-cli": "4.x.x" + } + }, + "node_modules/@webpack-cli/serve": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.7.0.tgz", + "integrity": "sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==", + "dev": true, + "peerDependencies": { + "webpack-cli": "4.x.x" + }, + "peerDependenciesMeta": { + "webpack-dev-server": { + "optional": true + } + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/acorn": { + "version": "8.8.0", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-assertions": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", + "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", + "dev": true, + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.2.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/agent-base": { + "version": "6.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/aggregate-error": { + "version": "3.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ajv": { + "version": "8.11.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", "url": "https://github.com/sponsors/epoberezkin" } }, "node_modules/ajv-formats": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", - "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "license": "MIT", "dependencies": { "ajv": "^8.0.0" }, @@ -3679,14 +3481,12 @@ }, "node_modules/ajv/node_modules/json-schema-traverse": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + "license": "MIT" }, "node_modules/ansi-escapes": { "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, + "license": "MIT", "dependencies": { "type-fest": "^0.21.3" }, @@ -3699,9 +3499,8 @@ }, "node_modules/ansi-escapes/node_modules/type-fest": { "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, + "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -3711,9 +3510,8 @@ }, "node_modules/ansi-red": { "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", - "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=", "dev": true, + "license": "MIT", "dependencies": { "ansi-wrap": "0.1.0" }, @@ -3723,18 +3521,16 @@ }, "node_modules/ansi-regex": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/ansi-styles": { "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^1.9.0" }, @@ -3744,24 +3540,21 @@ }, "node_modules/ansi-wrap": { "version": "0.1.0", - "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", - "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/ansicolors": { "version": "0.3.2", - "resolved": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.3.2.tgz", - "integrity": "sha1-ZlWX3oap/+Oqm/vmyuXG6kJrSXk=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/anymatch": { "version": "3.1.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", - "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", "dev": true, + "license": "ISC", "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -3772,29 +3565,25 @@ }, "node_modules/arg": { "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/argparse": { "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "license": "MIT", "dependencies": { "sprintf-js": "~1.0.2" } }, "node_modules/argv-formatter": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/argv-formatter/-/argv-formatter-1.0.0.tgz", - "integrity": "sha1-oMoMvCmltz6Dbuvhy/bF4OTrgvk=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/aria-query": { "version": "4.2.2", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz", - "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==", "dev": true, + "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.10.2", "@babel/runtime-corejs3": "^7.10.2" @@ -3805,15 +3594,13 @@ }, "node_modules/array-ify": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", - "integrity": "sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/array-includes": { "version": "3.1.5", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.5.tgz", - "integrity": "sha512-iSDYZMMyTPkiFasVqfuAQnWAYcvO/SeBSCGKePoEthjp4LEMTe4uLc7b025o4jAZpHhihh8xPo99TNWUWWkGDQ==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", @@ -3830,18 +3617,16 @@ }, "node_modules/array-union": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/array.prototype.flat": { "version": "1.3.0", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.0.tgz", - "integrity": "sha512-12IUEkHsAhA4DY5s0FPgNXIdc8VRSqD9Zp78a5au9abH/SOBrsp082JOWFNTjkMozh8mqcdiKuaLGhPeYztxSw==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.1.3", @@ -3857,73 +3642,64 @@ }, "node_modules/arrify": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/ast-types-flow": { "version": "0.0.7", - "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", - "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/astring": { "version": "1.8.3", - "resolved": "https://registry.npmjs.org/astring/-/astring-1.8.3.tgz", - "integrity": "sha512-sRpyiNrx2dEYIMmUXprS8nlpRg2Drs8m9ElX9vVEXaCB4XEAJhKfs7IcX0IwShjuOAjLR6wzIrgoptz1n19i1A==", + "license": "MIT", "bin": { "astring": "bin/astring" } }, "node_modules/at-least-node": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", "dev": true, + "license": "ISC", "engines": { "node": ">= 4.0.0" } }, "node_modules/autolinker": { "version": "0.28.1", - "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.28.1.tgz", - "integrity": "sha1-BlK0kYgYefB3XazgzcoyM5QqTkc=", "dev": true, + "license": "MIT", "dependencies": { "gulp-header": "^1.7.1" } }, "node_modules/avsc": { "version": "5.7.5", - "resolved": "https://registry.npmjs.org/avsc/-/avsc-5.7.5.tgz", - "integrity": "sha512-vkyt1+sj6qaD9oMtqqLE2pZ2IcHI66kFx8lpnVuXp55SnNPjKghfOhVfZpaDwDPpY0oVWP3Qu1uHZWxF3E856A==", + "license": "MIT", "engines": { "node": ">=0.11" } }, "node_modules/axe-core": { "version": "4.4.3", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.4.3.tgz", - "integrity": "sha512-32+ub6kkdhhWick/UjvEwRchgoetXqTK14INLqbGm5U2TzBkBNF3nQtLYm8ovxSkQWArjEQvftCKryjZaATu3w==", "dev": true, + "license": "MPL-2.0", "engines": { "node": ">=4" } }, "node_modules/axobject-query": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.2.0.tgz", - "integrity": "sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA==", - "dev": true + "dev": true, + "license": "Apache-2.0" }, "node_modules/babel-plugin-istanbul": { "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@istanbuljs/load-nyc-config": "^1.0.0", @@ -3937,9 +3713,8 @@ }, "node_modules/babel-preset-current-node-syntax": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/plugin-syntax-async-generators": "^7.8.4", "@babel/plugin-syntax-bigint": "^7.8.3", @@ -3960,30 +3735,70 @@ }, "node_modules/balanced-match": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + "license": "MIT" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, "node_modules/before-after-hook": { "version": "2.2.1", - "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.1.tgz", - "integrity": "sha512-/6FKxSTWoJdbsLDF8tdIjaRiFXiE6UHsEHE3OPI/cwPURCVi1ukP0gmLn7XWEiFk5TcwQjjY5PWsU+j+tgXgmw==", - "dev": true + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "dev": true, + "dependencies": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, + "node_modules/bl/node_modules/readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } }, "node_modules/blueimp-md5": { "version": "2.18.0", - "resolved": "https://registry.npmjs.org/blueimp-md5/-/blueimp-md5-2.18.0.tgz", - "integrity": "sha512-vE52okJvzsVWhcgUHOv+69OG3Mdg151xyn41aVQN/5W5S+S43qZhxECtYLAEHMSFWX6Mv5IZrzj3T5+JqXfj5Q==" + "license": "MIT" }, "node_modules/bottleneck": { "version": "2.19.5", - "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz", - "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/brace-expansion": { "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -3991,9 +3806,8 @@ }, "node_modules/braces": { "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dev": true, + "license": "MIT", "dependencies": { "fill-range": "^7.0.1" }, @@ -4003,8 +3817,6 @@ }, "node_modules/browserslist": { "version": "4.21.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.3.tgz", - "integrity": "sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ==", "dev": true, "funding": [ { @@ -4016,6 +3828,7 @@ "url": "https://tidelift.com/funding/github/npm/browserslist" } ], + "license": "MIT", "dependencies": { "caniuse-lite": "^1.0.30001370", "electron-to-chromium": "^1.4.202", @@ -4031,23 +3844,53 @@ }, "node_modules/bser": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", "dev": true, + "license": "Apache-2.0", "dependencies": { "node-int64": "^0.4.0" } }, + "node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "dev": true, + "engines": { + "node": "*" + } + }, "node_modules/buffer-from": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/call-bind": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "license": "MIT", "dependencies": { "function-bind": "^1.1.1", "get-intrinsic": "^1.0.2" @@ -4058,27 +3901,24 @@ }, "node_modules/callsites": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/camelcase": { "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/camelcase-keys": { "version": "6.2.2", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", - "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", "dev": true, + "license": "MIT", "dependencies": { "camelcase": "^5.3.1", "map-obj": "^4.0.0", @@ -4093,8 +3933,6 @@ }, "node_modules/caniuse-lite": { "version": "1.0.30001387", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001387.tgz", - "integrity": "sha512-fKDH0F1KOJvR+mWSOvhj8lVRr/Q/mc5u5nabU2vi1/sgvlSqEsE8dOq0Hy/BqVbDkCYQPRRHB1WRjW6PGB/7PA==", "dev": true, "funding": [ { @@ -4105,13 +3943,13 @@ "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/caniuse-lite" } - ] + ], + "license": "CC-BY-4.0" }, "node_modules/cardinal": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/cardinal/-/cardinal-2.1.1.tgz", - "integrity": "sha1-fMEFXYItISlU0HsIXeolHMe8VQU=", "dev": true, + "license": "MIT", "dependencies": { "ansicolors": "~0.3.2", "redeyed": "~2.1.0" @@ -4122,9 +3960,8 @@ }, "node_modules/chalk": { "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -4136,38 +3973,47 @@ }, "node_modules/char-regex": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", - "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" } }, + "node_modules/chownr": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", + "dev": true + }, + "node_modules/chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", + "dev": true, + "engines": { + "node": ">=6.0" + } + }, "node_modules/ci-info": { "version": "3.3.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.3.0.tgz", - "integrity": "sha512-riT/3vI5YpVH6/qomlDnJow6TBee2PBKSEpx3O32EGPYbWGIRsIlGRms3Sm74wYE1JMo8RnO04Hb12+v1J5ICw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/cjs-module-lexer": { "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", - "integrity": "sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/clean-stack": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/cli-table": { "version": "0.3.6", - "resolved": "https://registry.npmjs.org/cli-table/-/cli-table-0.3.6.tgz", - "integrity": "sha512-ZkNZbnZjKERTY5NwC2SeMeLeifSPq/pubeRoTpdr3WchLlnZg6hEgvHkK5zL7KNFdd9PmHN8lxrENUwI3cE8vQ==", "dev": true, "dependencies": { "colors": "1.0.3" @@ -4178,19 +4024,52 @@ }, "node_modules/cliui": { "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dev": true, + "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", "wrap-ansi": "^7.0.0" } }, + "node_modules/clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dev": true, + "dependencies": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/clone-deep/node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/clone-deep/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/co": { "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", + "license": "MIT", "engines": { "iojs": ">= 1.0.0", "node": ">= 0.12.0" @@ -4198,10 +4077,8 @@ }, "node_modules/coffee-script": { "version": "1.12.7", - "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", - "integrity": "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==", - "deprecated": "CoffeeScript on NPM has moved to \"coffeescript\" (no hyphen)", "dev": true, + "license": "MIT", "bin": { "cake": "bin/cake", "coffee": "bin/coffee" @@ -4212,47 +4089,47 @@ }, "node_modules/collect-v8-coverage": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", - "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/color-convert": { "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "1.1.3" } }, "node_modules/color-name": { "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true, + "license": "MIT" + }, + "node_modules/colorette": { + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz", + "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==", "dev": true }, "node_modules/colors": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz", - "integrity": "sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=", "dev": true, + "license": "MIT", "engines": { "node": ">=0.1.90" } }, "node_modules/commander": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", - "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", + "license": "MIT", "engines": { "node": ">= 6" } }, "node_modules/compare-func": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz", - "integrity": "sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==", "dev": true, + "license": "MIT", "dependencies": { "array-ify": "^1.0.0", "dot-prop": "^5.1.0" @@ -4260,17 +4137,15 @@ }, "node_modules/concat-map": { "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + "license": "MIT" }, "node_modules/concat-stream": { "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", "dev": true, "engines": [ "node >= 0.8" ], + "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", "inherits": "^2.0.3", @@ -4280,18 +4155,16 @@ }, "node_modules/concat-with-sourcemaps": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", - "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", "dev": true, + "license": "ISC", "dependencies": { "source-map": "^0.6.1" } }, "node_modules/conventional-changelog-angular": { "version": "5.0.13", - "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.13.tgz", - "integrity": "sha512-i/gipMxs7s8L/QeuavPF2hLnJgH6pEZAttySB6aiQLWcX3puWDL3ACVmvBhJGxnAy52Qc15ua26BufY6KpmrVA==", "dev": true, + "license": "ISC", "dependencies": { "compare-func": "^2.0.0", "q": "^1.5.1" @@ -4302,9 +4175,8 @@ }, "node_modules/conventional-changelog-conventionalcommits": { "version": "4.6.3", - "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.3.tgz", - "integrity": "sha512-LTTQV4fwOM4oLPad317V/QNQ1FY4Hju5qeBIM1uTHbrnCE+Eg4CdRZ3gO2pUeR+tzWdp80M2j3qFFEDWVqOV4g==", "dev": true, + "license": "ISC", "dependencies": { "compare-func": "^2.0.0", "lodash": "^4.17.15", @@ -4316,9 +4188,8 @@ }, "node_modules/conventional-changelog-writer": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-4.1.0.tgz", - "integrity": "sha512-WwKcUp7WyXYGQmkLsX4QmU42AZ1lqlvRW9mqoyiQzdD+rJWbTepdWoKJuwXTS+yq79XKnQNa93/roViPQrAQgw==", "dev": true, + "license": "MIT", "dependencies": { "compare-func": "^2.0.0", "conventional-commits-filter": "^2.0.7", @@ -4340,18 +4211,16 @@ }, "node_modules/conventional-changelog-writer/node_modules/semver": { "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" } }, "node_modules/conventional-commits-filter": { "version": "2.0.7", - "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-2.0.7.tgz", - "integrity": "sha512-ASS9SamOP4TbCClsRHxIHXRfcGCnIoQqkvAzCSbZzTFLfcTqJVugB0agRgsEELsqaeWgsXv513eS116wnlSSPA==", "dev": true, + "license": "MIT", "dependencies": { "lodash.ismatch": "^4.4.0", "modify-values": "^1.0.0" @@ -4362,9 +4231,8 @@ }, "node_modules/conventional-commits-parser": { "version": "3.2.4", - "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.2.4.tgz", - "integrity": "sha512-nK7sAtfi+QXbxHCYfhpZsfRtaitZLIA6889kFIouLvz6repszQDgxBu7wf2WbU+Dco7sAnNCJYERCwt54WPC2Q==", "dev": true, + "license": "MIT", "dependencies": { "is-text-path": "^1.0.1", "JSONStream": "^1.0.4", @@ -4382,19 +4250,17 @@ }, "node_modules/convert-source-map": { "version": "1.8.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", - "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", "dev": true, + "license": "MIT", "dependencies": { "safe-buffer": "~5.1.1" } }, "node_modules/core-js-pure": { "version": "3.25.0", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.25.0.tgz", - "integrity": "sha512-IeHpLwk3uoci37yoI2Laty59+YqH9x5uR65/yiA0ARAJrTrN4YU0rmauLWfvqOuk77SlNJXj2rM6oT/dBD87+A==", "dev": true, "hasInstallScript": true, + "license": "MIT", "funding": { "type": "opencollective", "url": "https://opencollective.com/core-js" @@ -4402,15 +4268,13 @@ }, "node_modules/core-util-is": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/cosmiconfig": { "version": "7.0.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.0.tgz", - "integrity": "sha512-pondGvTuVYDk++upghXJabWzL6Kxu6f26ljFw64Swq9v6sQPUL3EUlVDV56diOjpCayKihL6hVe8exIACU4XcA==", "dev": true, + "license": "MIT", "dependencies": { "@types/parse-json": "^4.0.0", "import-fresh": "^3.2.1", @@ -4424,9 +4288,8 @@ }, "node_modules/cosmiconfig/node_modules/parse-json": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", @@ -4442,24 +4305,21 @@ }, "node_modules/cosmiconfig/node_modules/path-type": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/create-require": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/cross-env": { "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", - "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", "dev": true, + "license": "MIT", "dependencies": { "cross-spawn": "^7.0.1" }, @@ -4473,11 +4333,19 @@ "yarn": ">=1" } }, + "node_modules/cross-fetch": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", + "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", + "dev": true, + "dependencies": { + "node-fetch": "2.6.7" + } + }, "node_modules/cross-spawn": { "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -4489,9 +4357,8 @@ }, "node_modules/cross-spawn/node_modules/which": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, + "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -4504,33 +4371,29 @@ }, "node_modules/crypto-random-string": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", - "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/damerau-levenshtein": { "version": "1.0.8", - "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", - "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", - "dev": true + "dev": true, + "license": "BSD-2-Clause" }, "node_modules/dateformat": { "version": "3.0.3", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", - "integrity": "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==", "dev": true, + "license": "MIT", "engines": { "node": "*" } }, "node_modules/debug": { "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, + "license": "MIT", "dependencies": { "ms": "2.1.2" }, @@ -4545,18 +4408,16 @@ }, "node_modules/decamelize": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/decamelize-keys": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", - "integrity": "sha512-ocLWuYzRPoS9bfiSdDd3cxvrzovVMZnRDVEzAs+hWIVXGDbHxWMECij2OBuyB/An0FFW/nLuq6Kv1i/YC5Qfzg==", "dev": true, + "license": "MIT", "dependencies": { "decamelize": "^1.1.0", "map-obj": "^1.0.0" @@ -4567,47 +4428,41 @@ }, "node_modules/decamelize-keys/node_modules/map-obj": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/dedent": { "version": "0.7.0", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", - "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/deep-extend": { "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", "dev": true, + "license": "MIT", "engines": { "node": ">=4.0.0" } }, "node_modules/deep-is": { "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", - "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/deepmerge": { "version": "4.2.2", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", - "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/define-properties": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", - "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", + "license": "MIT", "dependencies": { "has-property-descriptors": "^1.0.0", "object-keys": "^1.1.1" @@ -4621,59 +4476,58 @@ }, "node_modules/dependency-graph": { "version": "0.11.0", - "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", - "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", + "license": "MIT", "engines": { "node": ">= 0.6.0" } }, "node_modules/deprecation": { "version": "2.3.1", - "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", - "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/detect-newline": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, + "node_modules/devtools-protocol": { + "version": "0.0.1036444", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1036444.tgz", + "integrity": "sha512-0y4f/T8H9lsESV9kKP1HDUXgHxCdniFeJh6Erq+FbdOEvp/Ydp9t8kcAAM5gOd17pMrTDlFWntoHtzzeTUWKNw==", + "dev": true + }, "node_modules/diacritics-map": { "version": "0.1.0", - "resolved": "https://registry.npmjs.org/diacritics-map/-/diacritics-map-0.1.0.tgz", - "integrity": "sha1-bfwP+dAQAKLt8oZTccrDFulJd68=", "dev": true, + "license": "MIT", "engines": { "node": ">=0.8.0" } }, "node_modules/diff": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.3.1" } }, "node_modules/diff-sequences": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", - "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", "dev": true, + "license": "MIT", "engines": { "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, "node_modules/dir-glob": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", "dev": true, + "license": "MIT", "dependencies": { "path-type": "^4.0.0" }, @@ -4683,18 +4537,16 @@ }, "node_modules/dir-glob/node_modules/path-type": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/doctrine": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "dev": true, + "license": "Apache-2.0", "dependencies": { "esutils": "^2.0.2" }, @@ -4704,9 +4556,8 @@ }, "node_modules/dot-prop": { "version": "5.3.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", - "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", "dev": true, + "license": "MIT", "dependencies": { "is-obj": "^2.0.0" }, @@ -4714,26 +4565,29 @@ "node": ">=8" } }, + "node_modules/duplexer": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", + "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", + "dev": true + }, "node_modules/duplexer2": { "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", - "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "readable-stream": "^2.0.2" } }, "node_modules/electron-to-chromium": { "version": "1.4.242", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.242.tgz", - "integrity": "sha512-nPdgMWtjjWGCtreW/2adkrB2jyHjClo9PtVhR6rW+oxa4E4Wom642Tn+5LslHP3XPL5MCpkn5/UEY60EXylNeQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/emittery": { "version": "0.10.2", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.10.2.tgz", - "integrity": "sha512-aITqOwnLanpHLNXZJENbOgjUBeHocD+xsSJmNrjovKBW5HbSpW3d1pEls7GFQPUWXiwG9+0P4GtHfEqC/4M0Iw==", "dev": true, + "license": "MIT", "engines": { "node": ">=12" }, @@ -4743,24 +4597,34 @@ }, "node_modules/emoji-regex": { "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/end-of-stream": { "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", "dev": true, + "license": "MIT", "dependencies": { "once": "^1.4.0" } }, + "node_modules/enhanced-resolve": { + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.10.0.tgz", + "integrity": "sha512-T0yTFjdpldGY8PmuXXR0PyQ1ufZpEGiHVrp7zHKB7jdR4qlmZHhONVM5AQOAWXuF/w3dnHbEQVrNptJgt7F+cQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, "node_modules/env-ci": { "version": "5.0.2", - "resolved": "https://registry.npmjs.org/env-ci/-/env-ci-5.0.2.tgz", - "integrity": "sha512-Xc41mKvjouTXD3Oy9AqySz1IeyvJvHZ20Twf5ZLYbNpPPIuCnL/qHCmNlD01LoNy0JTunw9HPYVptD19Ac7Mbw==", "dev": true, + "license": "MIT", "dependencies": { "execa": "^4.0.0", "java-properties": "^1.0.0" @@ -4771,9 +4635,8 @@ }, "node_modules/env-ci/node_modules/execa": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", - "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", "dev": true, + "license": "MIT", "dependencies": { "cross-spawn": "^7.0.0", "get-stream": "^5.0.0", @@ -4794,9 +4657,8 @@ }, "node_modules/env-ci/node_modules/get-stream": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", "dev": true, + "license": "MIT", "dependencies": { "pump": "^3.0.0" }, @@ -4807,19 +4669,29 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/envinfo": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", + "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", + "dev": true, + "bin": { + "envinfo": "dist/cli.js" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/error-ex": { "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "dev": true, + "license": "MIT", "dependencies": { "is-arrayish": "^0.2.1" } }, "node_modules/es-abstract": { "version": "1.20.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.1.tgz", - "integrity": "sha512-WEm2oBhfoI2sImeM4OF2zE2V3BYdSF+KnSi9Sidz51fQHd7+JuF8Xgcj9/0o+OWeIeIS/MiuNnlruQrJf16GQA==", + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "es-to-primitive": "^1.2.1", @@ -4854,8 +4726,7 @@ }, "node_modules/es-aggregate-error": { "version": "1.0.8", - "resolved": "https://registry.npmjs.org/es-aggregate-error/-/es-aggregate-error-1.0.8.tgz", - "integrity": "sha512-AKUb5MKLWMozPlFRHOKqWD7yta5uaEhH21qwtnf6FlKjNjTJOoqFi0/G14+FfSkIQhhu6X68Af4xgRC6y8qG4A==", + "license": "MIT", "dependencies": { "define-properties": "^1.1.4", "es-abstract": "^1.19.5", @@ -4872,19 +4743,23 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/es-module-lexer": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", + "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", + "dev": true + }, "node_modules/es-shim-unscopables": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", - "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", "dev": true, + "license": "MIT", "dependencies": { "has": "^1.0.3" } }, "node_modules/es-to-primitive": { "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "license": "MIT", "dependencies": { "is-callable": "^1.1.4", "is-date-object": "^1.0.1", @@ -4899,27 +4774,24 @@ }, "node_modules/escalade": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/escape-string-regexp": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", "dev": true, + "license": "MIT", "engines": { "node": ">=0.8.0" } }, "node_modules/eslint": { "version": "8.23.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.23.0.tgz", - "integrity": "sha512-pBG/XOn0MsJcKcTRLr27S5HpzQo4kLr+HjLQIyK4EiCsijDl/TB+h5uEuJU6bQ8Edvwz1XWOjpaP2qgnXGpTcA==", "dev": true, + "license": "MIT", "dependencies": { "@eslint/eslintrc": "^1.3.1", "@humanwhocodes/config-array": "^0.10.4", @@ -4973,9 +4845,8 @@ }, "node_modules/eslint-config-prettier": { "version": "8.5.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz", - "integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==", "dev": true, + "license": "MIT", "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -4985,9 +4856,8 @@ }, "node_modules/eslint-import-resolver-node": { "version": "0.3.6", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz", - "integrity": "sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==", "dev": true, + "license": "MIT", "dependencies": { "debug": "^3.2.7", "resolve": "^1.20.0" @@ -4995,18 +4865,16 @@ }, "node_modules/eslint-import-resolver-node/node_modules/debug": { "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.1" } }, "node_modules/eslint-module-utils": { "version": "2.7.4", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz", - "integrity": "sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==", "dev": true, + "license": "MIT", "dependencies": { "debug": "^3.2.7" }, @@ -5021,18 +4889,16 @@ }, "node_modules/eslint-module-utils/node_modules/debug": { "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, + "license": "MIT", "dependencies": { "ms": "^2.1.1" } }, "node_modules/eslint-plugin-escompat": { "version": "3.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-escompat/-/eslint-plugin-escompat-3.2.0.tgz", - "integrity": "sha512-obXAKKiZE/wB2fgIw0ZxCmp+8vpDsUw2inkaok1i7OVxY4cEds4Y9YCoky0f5V+q8rqZpTUJDv1R9ykWbXLX8Q==", "dev": true, + "license": "MIT", "dependencies": { "browserslist": "^4.21.0" }, @@ -5042,9 +4908,8 @@ }, "node_modules/eslint-plugin-eslint-comments": { "version": "3.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz", - "integrity": "sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==", "dev": true, + "license": "MIT", "dependencies": { "escape-string-regexp": "^1.0.5", "ignore": "^5.0.5" @@ -5061,9 +4926,8 @@ }, "node_modules/eslint-plugin-filenames": { "version": "1.3.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-filenames/-/eslint-plugin-filenames-1.3.2.tgz", - "integrity": "sha512-tqxJTiEM5a0JmRCUYQmxw23vtTxrb2+a3Q2mMOPhFxvt7ZQQJmdiuMby9B/vUAuVMghyP7oET+nIf6EO6CBd/w==", "dev": true, + "license": "MIT", "dependencies": { "lodash.camelcase": "4.3.0", "lodash.kebabcase": "4.1.1", @@ -5076,9 +4940,8 @@ }, "node_modules/eslint-plugin-github": { "version": "4.3.7", - "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-4.3.7.tgz", - "integrity": "sha512-tYZdXvAEz4JCMrC4NHIUoJTsLUvydCxff5OqB5hgU0vQbLmMkw6VOipN2KNe+T06pEhAWs1KBEwyq9cmMWRe7A==", "dev": true, + "license": "MIT", "dependencies": { "@typescript-eslint/eslint-plugin": "^5.1.0", "@typescript-eslint/parser": "^5.1.0", @@ -5105,18 +4968,16 @@ }, "node_modules/eslint-plugin-i18n-text": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-i18n-text/-/eslint-plugin-i18n-text-1.0.1.tgz", - "integrity": "sha512-3G3UetST6rdqhqW9SfcfzNYMpQXS7wNkJvp6dsXnjzGiku6Iu5hl3B0kmk6lIcFPwYjhQIY+tXVRtK9TlGT7RA==", "dev": true, + "license": "MIT", "peerDependencies": { "eslint": ">=5.0.0" } }, "node_modules/eslint-plugin-import": { "version": "2.26.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz", - "integrity": "sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==", "dev": true, + "license": "MIT", "dependencies": { "array-includes": "^3.1.4", "array.prototype.flat": "^1.2.5", @@ -5141,18 +5002,16 @@ }, "node_modules/eslint-plugin-import/node_modules/debug": { "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, + "license": "MIT", "dependencies": { "ms": "2.0.0" } }, "node_modules/eslint-plugin-import/node_modules/doctrine": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", "dev": true, + "license": "Apache-2.0", "dependencies": { "esutils": "^2.0.2" }, @@ -5162,15 +5021,13 @@ }, "node_modules/eslint-plugin-import/node_modules/ms": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/eslint-plugin-jsx-a11y": { "version": "6.6.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.6.1.tgz", - "integrity": "sha512-sXgFVNHiWffBq23uiS/JaP6eVR622DqwB4yTzKvGZGcPq6/yZ3WmOZfuBks/vHWo9GaFOqC2ZK4i6+C35knx7Q==", "dev": true, + "license": "MIT", "dependencies": { "@babel/runtime": "^7.18.9", "aria-query": "^4.2.2", @@ -5195,33 +5052,29 @@ }, "node_modules/eslint-plugin-jsx-a11y/node_modules/emoji-regex": { "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/eslint-plugin-jsx-a11y/node_modules/semver": { "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" } }, "node_modules/eslint-plugin-no-only-tests": { "version": "2.6.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-2.6.0.tgz", - "integrity": "sha512-T9SmE/g6UV1uZo1oHAqOvL86XWl7Pl2EpRpnLI8g/bkJu+h7XBCB+1LnubRZ2CUQXj805vh4/CYZdnqtVaEo2Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=4.0.0" } }, "node_modules/eslint-plugin-prettier": { "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", "dev": true, + "license": "MIT", "dependencies": { "prettier-linter-helpers": "^1.0.0" }, @@ -5240,18 +5093,16 @@ }, "node_modules/eslint-plugin-security": { "version": "1.5.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-1.5.0.tgz", - "integrity": "sha512-hAFVwLZ/UeXrlyVD2TDarv/x00CoFVpaY0IUZhKjPjiFxqkuQVixsK4f2rxngeQOqSxi6OUjzJM/jMwKEVjJ8g==", "dev": true, + "license": "Apache-2.0", "dependencies": { "safe-regex": "^2.1.1" } }, "node_modules/eslint-plugin-sonarjs": { "version": "0.15.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.15.0.tgz", - "integrity": "sha512-LuxHdAe6VqSbi1phsUvNjbmXLuvlobmryQJJNyQYbdubCfz6K8tmgoqNiJPnz0pP2AbYDbtuPm0ajOMgMrC+dQ==", "dev": true, + "license": "LGPL-3.0", "engines": { "node": ">=12" }, @@ -5261,18 +5112,16 @@ }, "node_modules/eslint-rule-documentation": { "version": "1.0.23", - "resolved": "https://registry.npmjs.org/eslint-rule-documentation/-/eslint-rule-documentation-1.0.23.tgz", - "integrity": "sha512-pWReu3fkohwyvztx/oQWWgld2iad25TfUdi6wvhhaDPIQjHU/pyvlKgXFw1kX31SQK2Nq9MH+vRDWB0ZLy8fYw==", "dev": true, + "license": "MIT", "engines": { "node": ">=4.0.0" } }, "node_modules/eslint-scope": { "version": "7.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", - "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" @@ -5283,9 +5132,8 @@ }, "node_modules/eslint-utils": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", "dev": true, + "license": "MIT", "dependencies": { "eslint-visitor-keys": "^2.0.0" }, @@ -5301,27 +5149,24 @@ }, "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", "dev": true, + "license": "Apache-2.0", "engines": { "node": ">=10" } }, "node_modules/eslint-visitor-keys": { "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", "dev": true, + "license": "Apache-2.0", "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, "node_modules/eslint/node_modules/ajv": { "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, + "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -5335,9 +5180,8 @@ }, "node_modules/eslint/node_modules/chalk": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", - "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -5351,9 +5195,8 @@ }, "node_modules/eslint/node_modules/chalk/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -5366,9 +5209,8 @@ }, "node_modules/eslint/node_modules/chalk/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -5378,9 +5220,8 @@ }, "node_modules/eslint/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -5390,15 +5231,13 @@ }, "node_modules/eslint/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/eslint/node_modules/escape-string-regexp": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -5408,9 +5247,8 @@ }, "node_modules/eslint/node_modules/find-up": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, + "license": "MIT", "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" @@ -5424,9 +5262,8 @@ }, "node_modules/eslint/node_modules/glob-parent": { "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, + "license": "ISC", "dependencies": { "is-glob": "^4.0.3" }, @@ -5436,18 +5273,16 @@ }, "node_modules/eslint/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/eslint/node_modules/locate-path": { "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, + "license": "MIT", "dependencies": { "p-locate": "^5.0.0" }, @@ -5460,9 +5295,8 @@ }, "node_modules/eslint/node_modules/p-limit": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, + "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" }, @@ -5475,9 +5309,8 @@ }, "node_modules/eslint/node_modules/p-locate": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, + "license": "MIT", "dependencies": { "p-limit": "^3.0.2" }, @@ -5490,18 +5323,16 @@ }, "node_modules/eslint/node_modules/path-exists": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/eslint/node_modules/strip-json-comments": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -5511,9 +5342,8 @@ }, "node_modules/espree": { "version": "9.4.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.0.tgz", - "integrity": "sha512-DQmnRpLj7f6TgN/NYb0MTzJXL+vJF9h3pHy4JhCIs3zwcgez8xmGg3sXHcEO97BrmO2OSvCwMdfdlyl+E9KjOw==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "acorn": "^8.8.0", "acorn-jsx": "^5.3.2", @@ -5528,8 +5358,7 @@ }, "node_modules/esprima": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "license": "BSD-2-Clause", "bin": { "esparse": "bin/esparse.js", "esvalidate": "bin/esvalidate.js" @@ -5540,9 +5369,8 @@ }, "node_modules/esquery": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "estraverse": "^5.1.0" }, @@ -5552,9 +5380,8 @@ }, "node_modules/esrecurse": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "estraverse": "^5.2.0" }, @@ -5564,35 +5391,40 @@ }, "node_modules/estraverse": { "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=4.0" } }, "node_modules/esutils": { "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=0.10.0" } }, "node_modules/event-target-shim": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", - "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "license": "MIT", "engines": { "node": ">=6" } }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "engines": { + "node": ">=0.8.x" + } + }, "node_modules/execa": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.0.0.tgz", - "integrity": "sha512-ov6w/2LCiuyO4RLYGdpFGjkcs0wMTgGE8PrkTHikeUy5iJekXyPIKUjifk5CsE0pt7sMCrMZ3YNqoCj6idQOnQ==", "dev": true, + "license": "MIT", "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", @@ -5613,18 +5445,16 @@ }, "node_modules/execa/node_modules/human-signals": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true, + "license": "Apache-2.0", "engines": { "node": ">=10.17.0" } }, "node_modules/execa/node_modules/onetime": { "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, + "license": "MIT", "dependencies": { "mimic-fn": "^2.1.0" }, @@ -5637,8 +5467,6 @@ }, "node_modules/exit": { "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", "dev": true, "engines": { "node": ">= 0.8.0" @@ -5646,9 +5474,8 @@ }, "node_modules/expand-range": { "version": "1.8.2", - "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", - "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", "dev": true, + "license": "MIT", "dependencies": { "fill-range": "^2.1.0" }, @@ -5658,9 +5485,8 @@ }, "node_modules/expand-range/node_modules/fill-range": { "version": "2.2.4", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", - "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", "dev": true, + "license": "MIT", "dependencies": { "is-number": "^2.1.0", "isobject": "^2.0.0", @@ -5674,9 +5500,8 @@ }, "node_modules/expand-range/node_modules/is-number": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", "dev": true, + "license": "MIT", "dependencies": { "kind-of": "^3.0.2" }, @@ -5686,9 +5511,8 @@ }, "node_modules/expand-range/node_modules/isobject": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", "dev": true, + "license": "MIT", "dependencies": { "isarray": "1.0.0" }, @@ -5698,9 +5522,8 @@ }, "node_modules/expect": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/expect/-/expect-29.0.2.tgz", - "integrity": "sha512-JeJlAiLKn4aApT4pzUXBVxl3NaZidWIOdg//smaIlP9ZMBDkHZGFd9ubphUZP9pUyDEo7bC6M0IIZR51o75qQw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/expect-utils": "^29.0.2", "jest-get-type": "^29.0.0", @@ -5714,9 +5537,8 @@ }, "node_modules/expect/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -5729,9 +5551,8 @@ }, "node_modules/expect/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -5745,9 +5566,8 @@ }, "node_modules/expect/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -5757,33 +5577,29 @@ }, "node_modules/expect/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/expect/node_modules/diff-sequences": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.0.0.tgz", - "integrity": "sha512-7Qe/zd1wxSDL4D/X/FPjOMB+ZMDt71W94KYaq05I2l0oQqgXgs7s4ftYYmV38gBSrPz2vcygxfs1xn0FT+rKNA==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/expect/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/expect/node_modules/jest-diff": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.0.2.tgz", - "integrity": "sha512-b9l9970sa1rMXH1owp2Woprmy42qIwwll/htsw4Gf7+WuSp5bZxNhkKHDuCGKL+HoHn1KhcC+tNEeAPYBkD2Jg==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0", "diff-sequences": "^29.0.0", @@ -5796,18 +5612,16 @@ }, "node_modules/expect/node_modules/jest-get-type": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", - "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/expect/node_modules/jest-matcher-utils": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.0.2.tgz", - "integrity": "sha512-s62YkHFBfAx0JLA2QX1BlnCRFwHRobwAv2KP1+YhjzF6ZCbCVrf1sG8UJyn62ZUsDaQKpoo86XMTjkUyO5aWmQ==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0", "jest-diff": "^29.0.2", @@ -5820,9 +5634,8 @@ }, "node_modules/expect/node_modules/jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/node": "*", @@ -5837,9 +5650,8 @@ }, "node_modules/expect/node_modules/pretty-format": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", - "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/schemas": "^29.0.0", "ansi-styles": "^5.0.0", @@ -5851,9 +5663,8 @@ }, "node_modules/expect/node_modules/pretty-format/node_modules/ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -5863,15 +5674,13 @@ }, "node_modules/expect/node_modules/react-is": { "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/expect/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -5881,9 +5690,8 @@ }, "node_modules/extend-shallow": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, + "license": "MIT", "dependencies": { "is-extendable": "^0.1.0" }, @@ -5891,22 +5699,54 @@ "node": ">=0.10.0" } }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "node_modules/fast-diff": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", - "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", - "dev": true + "node_modules/extract-zip": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", + "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "get-stream": "^5.1.0", + "yauzl": "^2.10.0" + }, + "bin": { + "extract-zip": "cli.js" + }, + "engines": { + "node": ">= 10.17.0" + }, + "optionalDependencies": { + "@types/yauzl": "^2.9.1" + } + }, + "node_modules/extract-zip/node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "license": "MIT" + }, + "node_modules/fast-diff": { + "version": "1.2.0", + "dev": true, + "license": "Apache-2.0" }, "node_modules/fast-glob": { "version": "3.2.11", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", - "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -5920,43 +5760,55 @@ }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + "license": "MIT" }, "node_modules/fast-levenshtein": { "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/fast-memoize": { "version": "2.5.2", - "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz", - "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==" + "license": "MIT" + }, + "node_modules/fastest-levenshtein": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", + "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", + "dev": true, + "engines": { + "node": ">= 4.9.1" + } }, "node_modules/fastq": { "version": "1.13.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", - "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", "dev": true, + "license": "ISC", "dependencies": { "reusify": "^1.0.4" } }, "node_modules/fb-watchman": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz", - "integrity": "sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==", "dev": true, + "license": "Apache-2.0", "dependencies": { "bser": "2.1.1" } }, + "node_modules/fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "dev": true, + "dependencies": { + "pend": "~1.2.0" + } + }, "node_modules/figures": { "version": "3.2.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", - "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", "dev": true, + "license": "MIT", "dependencies": { "escape-string-regexp": "^1.0.5" }, @@ -5969,9 +5821,8 @@ }, "node_modules/file-entry-cache": { "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", "dev": true, + "license": "MIT", "dependencies": { "flat-cache": "^3.0.4" }, @@ -5981,9 +5832,8 @@ }, "node_modules/fill-range": { "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", "dev": true, + "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -5993,9 +5843,8 @@ }, "node_modules/find-up": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", "dev": true, + "license": "MIT", "dependencies": { "locate-path": "^2.0.0" }, @@ -6005,9 +5854,8 @@ }, "node_modules/find-versions": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-4.0.0.tgz", - "integrity": "sha512-wgpWy002tA+wgmO27buH/9KzyEOQnKsG/R0yrcjPT9BOFm0zRBVQbZ95nRGXWMywS8YR5knRbpohio0bcJABxQ==", "dev": true, + "license": "MIT", "dependencies": { "semver-regex": "^3.1.2" }, @@ -6020,9 +5868,8 @@ }, "node_modules/flat-cache": { "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", "dev": true, + "license": "MIT", "dependencies": { "flatted": "^3.1.0", "rimraf": "^3.0.2" @@ -6033,34 +5880,36 @@ }, "node_modules/flatted": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.1.1.tgz", - "integrity": "sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/for-in": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/from2": { "version": "2.3.0", - "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", - "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", "dev": true, + "license": "MIT", "dependencies": { "inherits": "^2.0.1", "readable-stream": "^2.0.0" } }, + "node_modules/fs-constants": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", + "dev": true + }, "node_modules/fs-extra": { "version": "9.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.0.tgz", - "integrity": "sha512-pmEYSk3vYsG/bF651KPUXZ+hvjpgWYw/Gc7W9NFUe3ZVLczKKWIij3IKpOrQcdw4TILtibFslZ0UmR8Vvzig4g==", "dev": true, + "license": "MIT", "dependencies": { "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", @@ -6073,16 +5922,13 @@ }, "node_modules/fs.realpath": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/fsevents": { "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", "dev": true, - "hasInstallScript": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -6093,13 +5939,11 @@ }, "node_modules/function-bind": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + "license": "MIT" }, "node_modules/function.prototype.name": { "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.1.3", @@ -6115,40 +5959,35 @@ }, "node_modules/functional-red-black-tree": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/functions-have-names": { "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/gensync": { "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/get-caller-file": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true, + "license": "ISC", "engines": { "node": "6.* || 8.* || >= 10.*" } }, "node_modules/get-intrinsic": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.2.tgz", - "integrity": "sha512-Jfm3OyCxHh9DJyc28qGk+JmfkpO41A4XkneDSujN9MDXrm4oDKdHvndhZ2dN94+ERNfkYJWDclW6k2L/ZGHjXA==", + "license": "MIT", "dependencies": { "function-bind": "^1.1.1", "has": "^1.0.3", @@ -6160,18 +5999,16 @@ }, "node_modules/get-package-type": { "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=8.0.0" } }, "node_modules/get-stream": { "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -6181,8 +6018,7 @@ }, "node_modules/get-symbol-description": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "get-intrinsic": "^1.1.1" @@ -6196,9 +6032,8 @@ }, "node_modules/git-log-parser": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/git-log-parser/-/git-log-parser-1.2.0.tgz", - "integrity": "sha1-LmpMGxP8AAKCB7p5WnrDFme5/Uo=", "dev": true, + "license": "MIT", "dependencies": { "argv-formatter": "~1.0.0", "spawn-error-forwarder": "~1.0.0", @@ -6210,18 +6045,16 @@ }, "node_modules/git-log-parser/node_modules/split2": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-1.0.0.tgz", - "integrity": "sha1-UuLiIdiMdfmnP5BVbiY/+WdysxQ=", "dev": true, + "license": "ISC", "dependencies": { "through2": "~2.0.0" } }, "node_modules/git-log-parser/node_modules/through2": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", "dev": true, + "license": "MIT", "dependencies": { "readable-stream": "~2.3.6", "xtend": "~4.0.1" @@ -6229,9 +6062,8 @@ }, "node_modules/glob": { "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", "dev": true, + "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -6249,9 +6081,8 @@ }, "node_modules/glob-parent": { "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, + "license": "ISC", "dependencies": { "is-glob": "^4.0.1" }, @@ -6259,11 +6090,16 @@ "node": ">= 6" } }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true + }, "node_modules/globals": { "version": "13.17.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", - "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", "dev": true, + "license": "MIT", "dependencies": { "type-fest": "^0.20.2" }, @@ -6276,9 +6112,8 @@ }, "node_modules/globals/node_modules/type-fest": { "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "dev": true, + "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -6288,8 +6123,7 @@ }, "node_modules/globalthis": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "license": "MIT", "dependencies": { "define-properties": "^1.1.3" }, @@ -6302,9 +6136,8 @@ }, "node_modules/globby": { "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dev": true, + "license": "MIT", "dependencies": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", @@ -6322,21 +6155,18 @@ }, "node_modules/graceful-fs": { "version": "4.2.9", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz", - "integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/grapheme-splitter": { "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/gray-matter": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-2.1.1.tgz", - "integrity": "sha1-MELZrewqHe1qdwep7SOA+KF6Qw4=", "dev": true, + "license": "MIT", "dependencies": { "ansi-red": "^0.1.1", "coffee-script": "^1.12.4", @@ -6350,9 +6180,8 @@ }, "node_modules/gray-matter/node_modules/js-yaml": { "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, + "license": "MIT", "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -6363,10 +6192,8 @@ }, "node_modules/gulp-header": { "version": "1.8.12", - "resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.12.tgz", - "integrity": "sha512-lh9HLdb53sC7XIZOYzTXM4lFuXElv3EVkSDhsd7DoJBj7hm+Ni7D3qYbb+Rr8DuM8nRanBvkVO9d7askreXGnQ==", - "deprecated": "Removed event-stream from gulp-header", "dev": true, + "license": "MIT", "dependencies": { "concat-with-sourcemaps": "*", "lodash.template": "^4.4.0", @@ -6375,19 +6202,32 @@ }, "node_modules/gulp-header/node_modules/through2": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", "dev": true, + "license": "MIT", "dependencies": { "readable-stream": "~2.3.6", "xtend": "~4.0.1" } }, + "node_modules/gzip-size": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", + "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", + "dev": true, + "dependencies": { + "duplexer": "^0.1.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/handlebars": { "version": "4.7.7", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", - "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", "dev": true, + "license": "MIT", "dependencies": { "minimist": "^1.2.5", "neo-async": "^2.6.0", @@ -6406,17 +6246,15 @@ }, "node_modules/hard-rejection": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", - "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/has": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "license": "MIT", "dependencies": { "function-bind": "^1.1.1" }, @@ -6426,25 +6264,22 @@ }, "node_modules/has-bigints": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/has-flag": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/has-property-descriptors": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", + "license": "MIT", "dependencies": { "get-intrinsic": "^1.1.1" }, @@ -6454,8 +6289,7 @@ }, "node_modules/has-symbols": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -6465,8 +6299,7 @@ }, "node_modules/has-tostringtag": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", + "license": "MIT", "dependencies": { "has-symbols": "^1.0.2" }, @@ -6479,30 +6312,26 @@ }, "node_modules/hook-std": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/hook-std/-/hook-std-2.0.0.tgz", - "integrity": "sha512-zZ6T5WcuBMIUVh49iPQS9t977t7C0l7OtHrpeMb5uk48JdflRX0NSFvCekfYNmGQETnLq9W/isMyHl69kxGi8g==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/hosted-git-info": { "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/html-escaper": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/http-proxy-agent": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", - "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", "dev": true, + "license": "MIT", "dependencies": { "@tootallnate/once": "1", "agent-base": "6", @@ -6513,9 +6342,9 @@ } }, "node_modules/https-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", - "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", "dev": true, "dependencies": { "agent-base": "6", @@ -6527,26 +6356,43 @@ }, "node_modules/human-signals": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", - "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", "dev": true, + "license": "Apache-2.0", "engines": { "node": ">=8.12.0" } }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, "node_modules/ignore": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", - "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 4" } }, "node_modules/immer": { "version": "9.0.12", - "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.12.tgz", - "integrity": "sha512-lk7UNmSbAukB5B6dh9fnh5D0bJTOFKxVg2cyJWTYrWRfhLrLMBquONcUs3aFq507hNoIZEDDh8lb8UtOizSMhA==", + "license": "MIT", "funding": { "type": "opencollective", "url": "https://opencollective.com/immer" @@ -6554,9 +6400,8 @@ }, "node_modules/import-fresh": { "version": "3.2.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", - "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", "dev": true, + "license": "MIT", "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" @@ -6567,18 +6412,16 @@ }, "node_modules/import-fresh/node_modules/resolve-from": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/import-from": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/import-from/-/import-from-3.0.0.tgz", - "integrity": "sha512-CiuXOFFSzkU5x/CR0+z7T91Iht4CXgfCxVOFRhh2Zyhg5wOpWvvDLQUsWl+gcN+QscYBjez8hDCt85O7RLDttQ==", "dev": true, + "license": "MIT", "dependencies": { "resolve-from": "^5.0.0" }, @@ -6588,9 +6431,8 @@ }, "node_modules/import-local": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", "dev": true, + "license": "MIT", "dependencies": { "pkg-dir": "^4.2.0", "resolve-cwd": "^3.0.0" @@ -6607,27 +6449,24 @@ }, "node_modules/imurmurhash": { "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", "dev": true, + "license": "MIT", "engines": { "node": ">=0.8.19" } }, "node_modules/indent-string": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/inflight": { "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, + "license": "ISC", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -6635,20 +6474,17 @@ }, "node_modules/inherits": { "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/ini": { "version": "1.3.7", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.7.tgz", - "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/internal-slot": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", - "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", + "license": "MIT", "dependencies": { "get-intrinsic": "^1.1.0", "has": "^1.0.3", @@ -6658,11 +6494,19 @@ "node": ">= 0.4" } }, + "node_modules/interpret": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", + "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", + "dev": true, + "engines": { + "node": ">= 0.10" + } + }, "node_modules/into-stream": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-5.1.1.tgz", - "integrity": "sha512-krrAJ7McQxGGmvaYbB7Q1mcA+cRwg9Ij2RfWIeVesNBgVDZmzY/Fa4IpZUT3bmdRzMzdf/mzltCG2Dq99IZGBA==", "dev": true, + "license": "MIT", "dependencies": { "from2": "^2.3.0", "p-is-promise": "^3.0.0" @@ -6673,14 +6517,12 @@ }, "node_modules/is-arrayish": { "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/is-bigint": { "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", + "license": "MIT", "dependencies": { "has-bigints": "^1.0.1" }, @@ -6690,8 +6532,7 @@ }, "node_modules/is-boolean-object": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" @@ -6705,14 +6546,12 @@ }, "node_modules/is-buffer": { "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/is-callable": { "version": "1.2.4", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz", - "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==", + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -6722,9 +6561,8 @@ }, "node_modules/is-core-module": { "version": "2.8.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz", - "integrity": "sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==", "dev": true, + "license": "MIT", "dependencies": { "has": "^1.0.3" }, @@ -6734,8 +6572,7 @@ }, "node_modules/is-date-object": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "license": "MIT", "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -6748,45 +6585,40 @@ }, "node_modules/is-extendable": { "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/is-extglob": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/is-fullwidth-code-point": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/is-generator-fn": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", - "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/is-glob": { "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, + "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" }, @@ -6796,8 +6628,7 @@ }, "node_modules/is-negative-zero": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -6807,17 +6638,15 @@ }, "node_modules/is-number": { "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.12.0" } }, "node_modules/is-number-object": { "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", + "license": "MIT", "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -6830,35 +6659,31 @@ }, "node_modules/is-obj": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", - "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/is-plain-obj": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", - "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/is-plain-object": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", - "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/is-regex": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" @@ -6872,8 +6697,7 @@ }, "node_modules/is-shared-array-buffer": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", + "license": "MIT", "dependencies": { "call-bind": "^1.0.2" }, @@ -6883,17 +6707,15 @@ }, "node_modules/is-stream": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", - "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/is-string": { "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", + "license": "MIT", "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -6906,8 +6728,7 @@ }, "node_modules/is-symbol": { "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "license": "MIT", "dependencies": { "has-symbols": "^1.0.2" }, @@ -6920,9 +6741,8 @@ }, "node_modules/is-text-path": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-1.0.1.tgz", - "integrity": "sha1-Thqg+1G/vLPpJogAE5cgLBd1tm4=", "dev": true, + "license": "MIT", "dependencies": { "text-extensions": "^1.0.0" }, @@ -6932,8 +6752,7 @@ }, "node_modules/is-weakref": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "license": "MIT", "dependencies": { "call-bind": "^1.0.2" }, @@ -6943,21 +6762,27 @@ }, "node_modules/isarray": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/isexe": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true + "dev": true, + "license": "ISC" + }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } }, "node_modules/issue-parser": { "version": "6.0.0", - "resolved": "https://registry.npmjs.org/issue-parser/-/issue-parser-6.0.0.tgz", - "integrity": "sha512-zKa/Dxq2lGsBIXQ7CUZWTHfvxPC2ej0KfO7fIPqLlHB9J2hJ7rGhZ5rilhuufylr4RXYPzJUeFjKxz305OsNlA==", "dev": true, + "license": "MIT", "dependencies": { "lodash.capitalize": "^4.2.1", "lodash.escaperegexp": "^4.1.2", @@ -6971,18 +6796,16 @@ }, "node_modules/istanbul-lib-coverage": { "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=8" } }, "node_modules/istanbul-lib-instrument": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.1.0.tgz", - "integrity": "sha512-czwUz525rkOFDJxfKK6mYfIs9zBKILyrZQxjz3ABhjQXhbhFsSbo1HW/BFcsDnfJYJWA6thRR5/TUY2qs5W99Q==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "@babel/core": "^7.12.3", "@babel/parser": "^7.14.7", @@ -6996,18 +6819,16 @@ }, "node_modules/istanbul-lib-instrument/node_modules/semver": { "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" } }, "node_modules/istanbul-lib-report": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "istanbul-lib-coverage": "^3.0.0", "make-dir": "^3.0.0", @@ -7019,18 +6840,16 @@ }, "node_modules/istanbul-lib-report/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/istanbul-lib-report/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -7040,9 +6859,8 @@ }, "node_modules/istanbul-lib-source-maps": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "debug": "^4.1.1", "istanbul-lib-coverage": "^3.0.0", @@ -7054,9 +6872,8 @@ }, "node_modules/istanbul-reports": { "version": "3.1.5", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", - "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" @@ -7067,18 +6884,16 @@ }, "node_modules/java-properties": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/java-properties/-/java-properties-1.0.2.tgz", - "integrity": "sha512-qjdpeo2yKlYTH7nFdK0vbZWuTCesk4o63v5iVOlhMQPfuIZQfW/HI35SjfhA+4qpg36rnFSvUK5b1m+ckIblQQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6.0" } }, "node_modules/jest": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest/-/jest-29.0.2.tgz", - "integrity": "sha512-enziNbNUmXTcTaTP/Uq5rV91r0Yqy2UKzLUIabxMpGm9YHz8qpbJhiRnNVNvm6vzWfzt/0o97NEHH8/3udoClA==", "dev": true, + "license": "MIT", "dependencies": { "@jest/core": "^29.0.2", "@jest/types": "^29.0.2", @@ -7102,9 +6917,8 @@ }, "node_modules/jest-changed-files": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.0.0.tgz", - "integrity": "sha512-28/iDMDrUpGoCitTURuDqUzWQoWmOmOKOFST1mi2lwh62X4BFf6khgH3uSuo1e49X/UDjuApAj3w0wLOex4VPQ==", "dev": true, + "license": "MIT", "dependencies": { "execa": "^5.0.0", "p-limit": "^3.1.0" @@ -7115,9 +6929,8 @@ }, "node_modules/jest-changed-files/node_modules/p-limit": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, + "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" }, @@ -7130,9 +6943,8 @@ }, "node_modules/jest-circus": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.0.2.tgz", - "integrity": "sha512-YTPEsoE1P1X0bcyDQi3QIkpt2Wl9om9k2DQRuLFdS5x8VvAKSdYAVJufgvudhnKgM8WHvvAzhBE+1DRQB8x1CQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/environment": "^29.0.2", "@jest/expect": "^29.0.2", @@ -7160,9 +6972,8 @@ }, "node_modules/jest-circus/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -7175,9 +6986,8 @@ }, "node_modules/jest-circus/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -7191,9 +7001,8 @@ }, "node_modules/jest-circus/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -7203,33 +7012,29 @@ }, "node_modules/jest-circus/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-circus/node_modules/diff-sequences": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.0.0.tgz", - "integrity": "sha512-7Qe/zd1wxSDL4D/X/FPjOMB+ZMDt71W94KYaq05I2l0oQqgXgs7s4ftYYmV38gBSrPz2vcygxfs1xn0FT+rKNA==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-circus/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/jest-circus/node_modules/jest-diff": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.0.2.tgz", - "integrity": "sha512-b9l9970sa1rMXH1owp2Woprmy42qIwwll/htsw4Gf7+WuSp5bZxNhkKHDuCGKL+HoHn1KhcC+tNEeAPYBkD2Jg==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0", "diff-sequences": "^29.0.0", @@ -7242,18 +7047,16 @@ }, "node_modules/jest-circus/node_modules/jest-get-type": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", - "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-circus/node_modules/jest-matcher-utils": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.0.2.tgz", - "integrity": "sha512-s62YkHFBfAx0JLA2QX1BlnCRFwHRobwAv2KP1+YhjzF6ZCbCVrf1sG8UJyn62ZUsDaQKpoo86XMTjkUyO5aWmQ==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0", "jest-diff": "^29.0.2", @@ -7266,9 +7069,8 @@ }, "node_modules/jest-circus/node_modules/jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/node": "*", @@ -7283,9 +7085,8 @@ }, "node_modules/jest-circus/node_modules/p-limit": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, + "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" }, @@ -7298,9 +7099,8 @@ }, "node_modules/jest-circus/node_modules/pretty-format": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", - "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/schemas": "^29.0.0", "ansi-styles": "^5.0.0", @@ -7312,9 +7112,8 @@ }, "node_modules/jest-circus/node_modules/pretty-format/node_modules/ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -7324,15 +7123,13 @@ }, "node_modules/jest-circus/node_modules/react-is": { "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-circus/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -7342,9 +7139,8 @@ }, "node_modules/jest-cli": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.0.2.tgz", - "integrity": "sha512-tlf8b+4KcUbBGr25cywIi3+rbZ4+G+SiG8SvY552m9sRZbXPafdmQRyeVE/C/R8K+TiBAMrTIUmV2SlStRJ40g==", "dev": true, + "license": "MIT", "dependencies": { "@jest/core": "^29.0.2", "@jest/test-result": "^29.0.2", @@ -7376,9 +7172,8 @@ }, "node_modules/jest-cli/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -7391,9 +7186,8 @@ }, "node_modules/jest-cli/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -7407,9 +7201,8 @@ }, "node_modules/jest-cli/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -7419,24 +7212,21 @@ }, "node_modules/jest-cli/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-cli/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/jest-cli/node_modules/jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/node": "*", @@ -7451,9 +7241,8 @@ }, "node_modules/jest-cli/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -7463,9 +7252,8 @@ }, "node_modules/jest-cli/node_modules/yargs": { "version": "17.5.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.5.1.tgz", - "integrity": "sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA==", "dev": true, + "license": "MIT", "dependencies": { "cliui": "^7.0.2", "escalade": "^3.1.1", @@ -7481,18 +7269,16 @@ }, "node_modules/jest-cli/node_modules/yargs-parser": { "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true, + "license": "ISC", "engines": { "node": ">=12" } }, "node_modules/jest-config": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.0.2.tgz", - "integrity": "sha512-RU4gzeUNZAFktYVzDGimDxeYoaiTnH100jkYYZgldqFamaZukF0IqmFx8+QrzVeEWccYg10EEJT3ox1Dq5b74w==", "dev": true, + "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@jest/test-sequencer": "^29.0.2", @@ -7535,9 +7321,8 @@ }, "node_modules/jest-config/node_modules/@jest/transform": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", - "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@jest/types": "^29.0.2", @@ -7561,9 +7346,8 @@ }, "node_modules/jest-config/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -7576,9 +7360,8 @@ }, "node_modules/jest-config/node_modules/babel-jest": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.0.2.tgz", - "integrity": "sha512-yTu4/WSi/HzarjQtrJSwV+/0maoNt+iP0DmpvFJdv9yY+5BuNle8TbheHzzcSWj5gIHfuhpbLYHWRDYhWKyeKQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/transform": "^29.0.2", "@types/babel__core": "^7.1.14", @@ -7597,9 +7380,8 @@ }, "node_modules/jest-config/node_modules/babel-plugin-jest-hoist": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.0.2.tgz", - "integrity": "sha512-eBr2ynAEFjcebVvu8Ktx580BD1QKCrBG1XwEUTXJe285p9HA/4hOhfWCFRQhTKSyBV0VzjhG7H91Eifz9s29hg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/template": "^7.3.3", "@babel/types": "^7.3.3", @@ -7612,9 +7394,8 @@ }, "node_modules/jest-config/node_modules/babel-preset-jest": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.0.2.tgz", - "integrity": "sha512-BeVXp7rH5TK96ofyEnHjznjLMQ2nAeDJ+QzxKnHAAMs0RgrQsCywjAN8m4mOm5Di0pxU//3AoEeJJrerMH5UeA==", "dev": true, + "license": "MIT", "dependencies": { "babel-plugin-jest-hoist": "^29.0.2", "babel-preset-current-node-syntax": "^1.0.0" @@ -7628,9 +7409,8 @@ }, "node_modules/jest-config/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -7644,9 +7424,8 @@ }, "node_modules/jest-config/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -7656,33 +7435,29 @@ }, "node_modules/jest-config/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-config/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/jest-config/node_modules/jest-get-type": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", - "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-config/node_modules/jest-haste-map": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", - "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/graceful-fs": "^4.1.3", @@ -7705,18 +7480,16 @@ }, "node_modules/jest-config/node_modules/jest-regex-util": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", - "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-config/node_modules/jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/node": "*", @@ -7731,9 +7504,8 @@ }, "node_modules/jest-config/node_modules/jest-worker": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", - "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -7745,9 +7517,8 @@ }, "node_modules/jest-config/node_modules/jest-worker/node_modules/supports-color": { "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -7760,9 +7531,8 @@ }, "node_modules/jest-config/node_modules/parse-json": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", @@ -7778,9 +7548,8 @@ }, "node_modules/jest-config/node_modules/pretty-format": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", - "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/schemas": "^29.0.0", "ansi-styles": "^5.0.0", @@ -7792,9 +7561,8 @@ }, "node_modules/jest-config/node_modules/pretty-format/node_modules/ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -7804,15 +7572,13 @@ }, "node_modules/jest-config/node_modules/react-is": { "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-config/node_modules/strip-json-comments": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -7822,9 +7588,8 @@ }, "node_modules/jest-config/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -7834,9 +7599,8 @@ }, "node_modules/jest-config/node_modules/write-file-atomic": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, + "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4", "signal-exit": "^3.0.7" @@ -7847,9 +7611,8 @@ }, "node_modules/jest-diff": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", - "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0", "diff-sequences": "^27.5.1", @@ -7862,9 +7625,8 @@ }, "node_modules/jest-diff/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -7877,9 +7639,8 @@ }, "node_modules/jest-diff/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -7893,9 +7654,8 @@ }, "node_modules/jest-diff/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -7905,24 +7665,21 @@ }, "node_modules/jest-diff/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-diff/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/jest-diff/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -7932,9 +7689,8 @@ }, "node_modules/jest-docblock": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.0.0.tgz", - "integrity": "sha512-s5Kpra/kLzbqu9dEjov30kj1n4tfu3e7Pl8v+f8jOkeWNqM6Ds8jRaJfZow3ducoQUrf2Z4rs2N5S3zXnb83gw==", "dev": true, + "license": "MIT", "dependencies": { "detect-newline": "^3.0.0" }, @@ -7944,9 +7700,8 @@ }, "node_modules/jest-each": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.0.2.tgz", - "integrity": "sha512-+sA9YjrJl35iCg0W0VCrgCVj+wGhDrrKQ+YAqJ/DHBC4gcDFAeePtRRhpJnX9gvOZ63G7gt52pwp2PesuSEx0Q==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "chalk": "^4.0.0", @@ -7960,9 +7715,8 @@ }, "node_modules/jest-each/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -7975,9 +7729,8 @@ }, "node_modules/jest-each/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -7991,9 +7744,8 @@ }, "node_modules/jest-each/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -8003,33 +7755,29 @@ }, "node_modules/jest-each/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-each/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/jest-each/node_modules/jest-get-type": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", - "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-each/node_modules/jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/node": "*", @@ -8044,9 +7792,8 @@ }, "node_modules/jest-each/node_modules/pretty-format": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", - "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/schemas": "^29.0.0", "ansi-styles": "^5.0.0", @@ -8058,9 +7805,8 @@ }, "node_modules/jest-each/node_modules/pretty-format/node_modules/ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -8070,15 +7816,13 @@ }, "node_modules/jest-each/node_modules/react-is": { "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-each/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -8088,9 +7832,8 @@ }, "node_modules/jest-environment-node": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.0.2.tgz", - "integrity": "sha512-4Fv8GXVCToRlMzDO94gvA8iOzKxQ7rhAbs8L+j8GPyTxGuUiYkV+63LecGeVdVhsL2KXih1sKnoqmH6tp89J7Q==", "dev": true, + "license": "MIT", "dependencies": { "@jest/environment": "^29.0.2", "@jest/fake-timers": "^29.0.2", @@ -8105,9 +7848,8 @@ }, "node_modules/jest-environment-node/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -8120,9 +7862,8 @@ }, "node_modules/jest-environment-node/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -8136,9 +7877,8 @@ }, "node_modules/jest-environment-node/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -8148,24 +7888,21 @@ }, "node_modules/jest-environment-node/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-environment-node/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/jest-environment-node/node_modules/jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/node": "*", @@ -8180,9 +7917,8 @@ }, "node_modules/jest-environment-node/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -8192,18 +7928,16 @@ }, "node_modules/jest-get-type": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", "dev": true, + "license": "MIT", "engines": { "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, "node_modules/jest-leak-detector": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.0.2.tgz", - "integrity": "sha512-5f0493qDeAxjUldkBSQg5D1cLadRgZVyWpTQvfJeQwQUpHQInE21AyVHVv64M7P2Ue8Z5EZ4BAcoDS/dSPPgMw==", "dev": true, + "license": "MIT", "dependencies": { "jest-get-type": "^29.0.0", "pretty-format": "^29.0.2" @@ -8214,9 +7948,8 @@ }, "node_modules/jest-leak-detector/node_modules/ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -8226,18 +7959,16 @@ }, "node_modules/jest-leak-detector/node_modules/jest-get-type": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", - "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-leak-detector/node_modules/pretty-format": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", - "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/schemas": "^29.0.0", "ansi-styles": "^5.0.0", @@ -8249,15 +7980,13 @@ }, "node_modules/jest-leak-detector/node_modules/react-is": { "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-matcher-utils": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", - "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0", "jest-diff": "^27.5.1", @@ -8270,9 +7999,8 @@ }, "node_modules/jest-matcher-utils/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -8285,9 +8013,8 @@ }, "node_modules/jest-matcher-utils/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -8301,9 +8028,8 @@ }, "node_modules/jest-matcher-utils/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -8313,24 +8039,21 @@ }, "node_modules/jest-matcher-utils/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-matcher-utils/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/jest-matcher-utils/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -8340,9 +8063,8 @@ }, "node_modules/jest-message-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.0.2.tgz", - "integrity": "sha512-kcJAgms3ckJV0wUoLsAM40xAhY+pb9FVSZwicjFU9PFkaTNmqh9xd99/CzKse48wPM1ANUQKmp03/DpkY+lGrA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/code-frame": "^7.12.13", "@jest/types": "^29.0.2", @@ -8360,9 +8082,8 @@ }, "node_modules/jest-message-util/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -8375,9 +8096,8 @@ }, "node_modules/jest-message-util/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -8391,9 +8111,8 @@ }, "node_modules/jest-message-util/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -8403,24 +8122,21 @@ }, "node_modules/jest-message-util/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-message-util/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/jest-message-util/node_modules/pretty-format": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", - "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/schemas": "^29.0.0", "ansi-styles": "^5.0.0", @@ -8432,9 +8148,8 @@ }, "node_modules/jest-message-util/node_modules/pretty-format/node_modules/ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -8444,15 +8159,13 @@ }, "node_modules/jest-message-util/node_modules/react-is": { "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-message-util/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -8462,9 +8175,8 @@ }, "node_modules/jest-mock": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.0.2.tgz", - "integrity": "sha512-giWXOIT23UCxHCN2VUfUJ0Q7SmiqQwfSFXlCaIhW5anITpNQ+3vuLPQdKt5wkuwM37GrbFyHIClce8AAK9ft9g==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/node": "*" @@ -8475,9 +8187,8 @@ }, "node_modules/jest-pnp-resolver": { "version": "1.2.2", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz", - "integrity": "sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" }, @@ -8492,9 +8203,8 @@ }, "node_modules/jest-resolve": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.0.2.tgz", - "integrity": "sha512-V3uLjSA+EHxLtjIDKTBXnY71hyx+8lusCqPXvqzkFO1uCGvVpjBfuOyp+KOLBNSuY61kM2jhepiMwt4eiJS+Vw==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0", "graceful-fs": "^4.2.9", @@ -8512,9 +8222,8 @@ }, "node_modules/jest-resolve-dependencies": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.0.2.tgz", - "integrity": "sha512-fSAu6eIG7wtGdnPJUkVVdILGzYAP9Dj/4+zvC8BrGe8msaUMJ9JeygU0Hf9+Uor6/icbuuzQn5See1uajLnAqg==", "dev": true, + "license": "MIT", "dependencies": { "jest-regex-util": "^29.0.0", "jest-snapshot": "^29.0.2" @@ -8525,18 +8234,16 @@ }, "node_modules/jest-resolve-dependencies/node_modules/jest-regex-util": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", - "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-resolve/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -8549,9 +8256,8 @@ }, "node_modules/jest-resolve/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -8565,9 +8271,8 @@ }, "node_modules/jest-resolve/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -8577,24 +8282,21 @@ }, "node_modules/jest-resolve/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-resolve/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/jest-resolve/node_modules/jest-haste-map": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", - "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/graceful-fs": "^4.1.3", @@ -8617,18 +8319,16 @@ }, "node_modules/jest-resolve/node_modules/jest-regex-util": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", - "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-resolve/node_modules/jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/node": "*", @@ -8643,9 +8343,8 @@ }, "node_modules/jest-resolve/node_modules/jest-worker": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", - "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -8657,9 +8356,8 @@ }, "node_modules/jest-resolve/node_modules/jest-worker/node_modules/supports-color": { "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -8672,9 +8370,8 @@ }, "node_modules/jest-resolve/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -8684,9 +8381,8 @@ }, "node_modules/jest-runner": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.0.2.tgz", - "integrity": "sha512-+D82iPZejI8t+SfduOO1deahC/QgLFf8aJBO++Znz3l2ETtOMdM7K4ATsGWzCFnTGio5yHaRifg1Su5Ybza5Nw==", "dev": true, + "license": "MIT", "dependencies": { "@jest/console": "^29.0.2", "@jest/environment": "^29.0.2", @@ -8716,9 +8412,8 @@ }, "node_modules/jest-runner/node_modules/@jest/transform": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", - "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@jest/types": "^29.0.2", @@ -8742,9 +8437,8 @@ }, "node_modules/jest-runner/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -8757,9 +8451,8 @@ }, "node_modules/jest-runner/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -8773,9 +8466,8 @@ }, "node_modules/jest-runner/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -8785,24 +8477,21 @@ }, "node_modules/jest-runner/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-runner/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/jest-runner/node_modules/jest-haste-map": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", - "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/graceful-fs": "^4.1.3", @@ -8825,18 +8514,16 @@ }, "node_modules/jest-runner/node_modules/jest-regex-util": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", - "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-runner/node_modules/jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/node": "*", @@ -8851,9 +8538,8 @@ }, "node_modules/jest-runner/node_modules/jest-worker": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", - "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -8865,9 +8551,8 @@ }, "node_modules/jest-runner/node_modules/jest-worker/node_modules/supports-color": { "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -8880,9 +8565,8 @@ }, "node_modules/jest-runner/node_modules/p-limit": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, + "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" }, @@ -8895,9 +8579,8 @@ }, "node_modules/jest-runner/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -8907,9 +8590,8 @@ }, "node_modules/jest-runner/node_modules/write-file-atomic": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, + "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4", "signal-exit": "^3.0.7" @@ -8920,9 +8602,8 @@ }, "node_modules/jest-runtime": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.0.2.tgz", - "integrity": "sha512-DO6F81LX4okOgjJLkLySv10E5YcV5NHUbY1ZqAUtofxdQE+q4hjH0P2gNsY8x3z3sqgw7O/+919SU4r18Fcuig==", "dev": true, + "license": "MIT", "dependencies": { "@jest/environment": "^29.0.2", "@jest/fake-timers": "^29.0.2", @@ -8953,9 +8634,8 @@ }, "node_modules/jest-runtime/node_modules/@jest/transform": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", - "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@jest/types": "^29.0.2", @@ -8979,9 +8659,8 @@ }, "node_modules/jest-runtime/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -8994,9 +8673,8 @@ }, "node_modules/jest-runtime/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -9010,9 +8688,8 @@ }, "node_modules/jest-runtime/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -9022,24 +8699,21 @@ }, "node_modules/jest-runtime/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-runtime/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/jest-runtime/node_modules/jest-haste-map": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", - "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/graceful-fs": "^4.1.3", @@ -9062,18 +8736,16 @@ }, "node_modules/jest-runtime/node_modules/jest-regex-util": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", - "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-runtime/node_modules/jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/node": "*", @@ -9088,9 +8760,8 @@ }, "node_modules/jest-runtime/node_modules/jest-worker": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", - "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -9102,9 +8773,8 @@ }, "node_modules/jest-runtime/node_modules/jest-worker/node_modules/supports-color": { "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -9117,18 +8787,16 @@ }, "node_modules/jest-runtime/node_modules/strip-bom": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/jest-runtime/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -9138,9 +8806,8 @@ }, "node_modules/jest-runtime/node_modules/write-file-atomic": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, + "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4", "signal-exit": "^3.0.7" @@ -9151,9 +8818,8 @@ }, "node_modules/jest-snapshot": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.0.2.tgz", - "integrity": "sha512-26C4PzGKaX5gkoKg8UzYGVy2HPVcTaROSkf0gwnHu3lGeTB7bAIJBovvVPZoiJ20IximJELQs/r8WSDRCuGX2A==", "dev": true, + "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@babel/generator": "^7.7.2", @@ -9186,9 +8852,8 @@ }, "node_modules/jest-snapshot/node_modules/@jest/transform": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", - "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/core": "^7.11.6", "@jest/types": "^29.0.2", @@ -9212,9 +8877,8 @@ }, "node_modules/jest-snapshot/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -9227,9 +8891,8 @@ }, "node_modules/jest-snapshot/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -9243,9 +8906,8 @@ }, "node_modules/jest-snapshot/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -9255,33 +8917,29 @@ }, "node_modules/jest-snapshot/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-snapshot/node_modules/diff-sequences": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.0.0.tgz", - "integrity": "sha512-7Qe/zd1wxSDL4D/X/FPjOMB+ZMDt71W94KYaq05I2l0oQqgXgs7s4ftYYmV38gBSrPz2vcygxfs1xn0FT+rKNA==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-snapshot/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/jest-snapshot/node_modules/jest-diff": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.0.2.tgz", - "integrity": "sha512-b9l9970sa1rMXH1owp2Woprmy42qIwwll/htsw4Gf7+WuSp5bZxNhkKHDuCGKL+HoHn1KhcC+tNEeAPYBkD2Jg==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0", "diff-sequences": "^29.0.0", @@ -9294,18 +8952,16 @@ }, "node_modules/jest-snapshot/node_modules/jest-get-type": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", - "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-snapshot/node_modules/jest-haste-map": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", - "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/graceful-fs": "^4.1.3", @@ -9328,9 +8984,8 @@ }, "node_modules/jest-snapshot/node_modules/jest-matcher-utils": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.0.2.tgz", - "integrity": "sha512-s62YkHFBfAx0JLA2QX1BlnCRFwHRobwAv2KP1+YhjzF6ZCbCVrf1sG8UJyn62ZUsDaQKpoo86XMTjkUyO5aWmQ==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0", "jest-diff": "^29.0.2", @@ -9343,18 +8998,16 @@ }, "node_modules/jest-snapshot/node_modules/jest-regex-util": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", - "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-snapshot/node_modules/jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/node": "*", @@ -9369,9 +9022,8 @@ }, "node_modules/jest-snapshot/node_modules/jest-worker": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", - "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -9383,9 +9035,8 @@ }, "node_modules/jest-snapshot/node_modules/jest-worker/node_modules/supports-color": { "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -9398,9 +9049,8 @@ }, "node_modules/jest-snapshot/node_modules/pretty-format": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", - "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/schemas": "^29.0.0", "ansi-styles": "^5.0.0", @@ -9412,9 +9062,8 @@ }, "node_modules/jest-snapshot/node_modules/pretty-format/node_modules/ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -9424,15 +9073,13 @@ }, "node_modules/jest-snapshot/node_modules/react-is": { "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-snapshot/node_modules/semver": { "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", "dev": true, + "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -9445,9 +9092,8 @@ }, "node_modules/jest-snapshot/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -9457,9 +9103,8 @@ }, "node_modules/jest-snapshot/node_modules/write-file-atomic": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, + "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4", "signal-exit": "^3.0.7" @@ -9470,9 +9115,8 @@ }, "node_modules/jest-validate": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.0.2.tgz", - "integrity": "sha512-AeRKm7cEucSy7tr54r3LhiGIXYvOILUwBM1S7jQkKs6YelwAlWKsmZGVrQR7uwsd31rBTnR5NQkODi1Z+6TKIQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "camelcase": "^6.2.0", @@ -9487,9 +9131,8 @@ }, "node_modules/jest-validate/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -9502,9 +9145,8 @@ }, "node_modules/jest-validate/node_modules/camelcase": { "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -9514,9 +9156,8 @@ }, "node_modules/jest-validate/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -9530,9 +9171,8 @@ }, "node_modules/jest-validate/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -9542,33 +9182,29 @@ }, "node_modules/jest-validate/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-validate/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/jest-validate/node_modules/jest-get-type": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", - "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true, + "license": "MIT", "engines": { "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-validate/node_modules/pretty-format": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", - "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, + "license": "MIT", "dependencies": { "@jest/schemas": "^29.0.0", "ansi-styles": "^5.0.0", @@ -9580,9 +9216,8 @@ }, "node_modules/jest-validate/node_modules/pretty-format/node_modules/ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -9592,15 +9227,13 @@ }, "node_modules/jest-validate/node_modules/react-is": { "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-validate/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -9610,9 +9243,8 @@ }, "node_modules/jest-watcher": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.0.2.tgz", - "integrity": "sha512-ds2bV0oyUdYoyrUTv4Ga5uptz4cEvmmP/JzqDyzZZanvrIn8ipxg5l3SDOAIiyuAx1VdHd2FBzeXPFO5KPH8vQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/test-result": "^29.0.2", "@jest/types": "^29.0.2", @@ -9629,9 +9261,8 @@ }, "node_modules/jest-watcher/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -9644,9 +9275,8 @@ }, "node_modules/jest-watcher/node_modules/chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -9660,9 +9290,8 @@ }, "node_modules/jest-watcher/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -9672,24 +9301,21 @@ }, "node_modules/jest-watcher/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/jest-watcher/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/jest-watcher/node_modules/jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, + "license": "MIT", "dependencies": { "@jest/types": "^29.0.2", "@types/node": "*", @@ -9704,9 +9330,8 @@ }, "node_modules/jest-watcher/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -9714,16 +9339,52 @@ "node": ">=8" } }, + "node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/jest-worker/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, "node_modules/js-tokens": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/js-yaml": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, @@ -9733,22 +9394,22 @@ }, "node_modules/js-yaml/node_modules/argparse": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + "license": "Python-2.0" }, "node_modules/jsep": { "version": "1.3.0", - "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.3.0.tgz", - "integrity": "sha512-gUqWoMxGo5xME0fLpbX36kYkCtxqKvyZYxntXTCpaVg45oW1nppWB9QcOiubAi0c/oRkDuv3/wEi2WbIh9uRqQ==", + "license": "MIT", + "workspaces": [ + "./packages/*" + ], "engines": { "node": ">= 10.16.0" } }, "node_modules/jsesc": { "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", "dev": true, + "license": "MIT", "bin": { "jsesc": "bin/jsesc" }, @@ -9758,28 +9419,24 @@ }, "node_modules/json-parse-better-errors": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/json-schema-migrate": { "version": "0.2.0", - "resolved": "https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-0.2.0.tgz", - "integrity": "sha512-dq4/oHWmtw/+0ytnXsDqVn+VsVweTEmzm5jLgguPn9BjSzn6/q58ZiZx3BHiQyJs612f0T5Z+MrUEUUY5DHsRg==", + "license": "MIT", "dependencies": { "ajv": "^5.0.0" } }, "node_modules/json-schema-migrate/node_modules/ajv": { "version": "5.5.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", - "integrity": "sha512-Ajr4IcMXq/2QmMkEmSvxqfLN5zGmJ92gHXAeOXq1OekoH2rfDNsgdDoL2f7QaRCy7G/E6TpxBVdRuNraMztGHw==", + "license": "MIT", "dependencies": { "co": "^4.6.0", "fast-deep-equal": "^1.0.0", @@ -9789,36 +9446,30 @@ }, "node_modules/json-schema-migrate/node_modules/fast-deep-equal": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", - "integrity": "sha512-fueX787WZKCV0Is4/T2cyAdM4+x1S3MXXOAhavE1ys/W42SHAPacLTQhucja22QBYrfGw50M2sRiXPtTGv9Ymw==" + "license": "MIT" }, "node_modules/json-schema-migrate/node_modules/json-schema-traverse": { "version": "0.3.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", - "integrity": "sha512-4JD/Ivzg7PoW8NzdrBSr3UFwC9mHgvI7Z6z3QGBsSHgKaRTUDmyZAAKJo2UbG1kUVfS9WS8bi36N49U1xw43DA==" + "license": "MIT" }, "node_modules/json-schema-traverse": { "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + "license": "MIT" }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/json-stringify-safe": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/json5": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", - "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", "dev": true, + "license": "MIT", "dependencies": { "minimist": "^1.2.5" }, @@ -9831,14 +9482,12 @@ }, "node_modules/jsonc-parser": { "version": "2.2.1", - "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.2.1.tgz", - "integrity": "sha512-o6/yDBYccGvTz1+QFevz6l6OBZ2+fMVu2JZ9CIhzsYRX4mjaK5IyX9eldUdCmga16zlgQxyrj5pt9kzuj2C02w==" + "license": "MIT" }, "node_modules/jsonfile": { "version": "6.0.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.0.1.tgz", - "integrity": "sha512-jR2b5v7d2vIOust+w3wtFKZIfpC2pnRmFAhAC/BuweZFQR8qZzxH1OyrQ10HmdVYiXWkYUqPVsz91cG7EL2FBg==", "dev": true, + "license": "MIT", "dependencies": { "universalify": "^1.0.0" }, @@ -9848,34 +9497,30 @@ }, "node_modules/jsonparse": { "version": "1.3.1", - "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", - "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=", "dev": true, "engines": [ "node >= 0.2.0" - ] + ], + "license": "MIT" }, "node_modules/jsonpath-plus": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.2.0.tgz", - "integrity": "sha512-zBfiUPM5nD0YZSBT/o/fbCUlCcepMIdP0CJZxM1+KgA4f2T206f6VAg9e7mX35+KlMaIc5qXW34f3BnwJ3w+RA==", + "license": "MIT", "engines": { "node": ">=12.0.0" } }, "node_modules/jsonpointer": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", - "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==", + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/JSONStream": { "version": "1.3.5", - "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", - "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", "dev": true, + "license": "(MIT OR Apache-2.0)", "dependencies": { "jsonparse": "^1.2.0", "through": ">=2.2.7 <3" @@ -9889,9 +9534,8 @@ }, "node_modules/jsx-ast-utils": { "version": "3.3.3", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", - "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", "dev": true, + "license": "MIT", "dependencies": { "array-includes": "^3.1.5", "object.assign": "^4.1.3" @@ -9902,9 +9546,8 @@ }, "node_modules/kind-of": { "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, + "license": "MIT", "dependencies": { "is-buffer": "^1.1.5" }, @@ -9914,33 +9557,29 @@ }, "node_modules/kleur": { "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/language-subtag-registry": { "version": "0.3.22", - "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", - "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==", - "dev": true + "dev": true, + "license": "CC0-1.0" }, "node_modules/language-tags": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", - "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", "dev": true, + "license": "MIT", "dependencies": { "language-subtag-registry": "~0.3.2" } }, "node_modules/lazy-cache": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", - "integrity": "sha1-uRkKT5EzVGlIQIWfio9whNiCImQ=", "dev": true, + "license": "MIT", "dependencies": { "set-getter": "^0.1.0" }, @@ -9950,17 +9589,15 @@ }, "node_modules/leven": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/levn": { "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dev": true, + "license": "MIT", "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" @@ -9971,15 +9608,13 @@ }, "node_modules/lines-and-columns": { "version": "1.1.6", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", - "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/list-item": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/list-item/-/list-item-1.1.1.tgz", - "integrity": "sha1-DGXQDih8tmPMs8s4Sad+iewmilY=", "dev": true, + "license": "MIT", "dependencies": { "expand-range": "^1.8.1", "extend-shallow": "^2.0.1", @@ -9992,9 +9627,8 @@ }, "node_modules/list-item/node_modules/is-number": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", "dev": true, + "license": "MIT", "dependencies": { "kind-of": "^3.0.2" }, @@ -10004,9 +9638,8 @@ }, "node_modules/load-json-file": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", - "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", "dev": true, + "license": "MIT", "dependencies": { "graceful-fs": "^4.1.2", "parse-json": "^4.0.0", @@ -10017,11 +9650,19 @@ "node": ">=4" } }, + "node_modules/loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true, + "engines": { + "node": ">=6.11.5" + } + }, "node_modules/locate-path": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", "dev": true, + "license": "MIT", "dependencies": { "p-locate": "^2.0.0", "path-exists": "^3.0.0" @@ -10032,84 +9673,70 @@ }, "node_modules/lodash": { "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + "license": "MIT" }, "node_modules/lodash._reinterpolate": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", - "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.camelcase": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.capitalize": { "version": "4.2.1", - "resolved": "https://registry.npmjs.org/lodash.capitalize/-/lodash.capitalize-4.2.1.tgz", - "integrity": "sha1-+CbJtOKoUR2E46yinbBeGk87cqk=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.escaperegexp": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.escaperegexp/-/lodash.escaperegexp-4.1.2.tgz", - "integrity": "sha1-ZHYsSGGAglGKw99Mz11YhtriA0c=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.get": { "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", - "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=" + "license": "MIT" }, "node_modules/lodash.ismatch": { "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz", - "integrity": "sha1-dWy1FQyjum8RCFp4hJZF8Yj4Xzc=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.isplainobject": { "version": "4.0.6", - "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.isstring": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", - "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.kebabcase": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz", - "integrity": "sha512-N8XRTIMMqqDgSy4VLKPnJ/+hpGZN+PHQiJnSenYqPaVV/NCqEogTnAdZLQiGKhxX+JCs8waWq2t1XHWKOmlY8g==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.merge": { "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.set": { "version": "4.3.2", - "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", - "integrity": "sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM=" + "license": "MIT" }, "node_modules/lodash.snakecase": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", - "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.template": { "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", - "integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==", "dev": true, + "license": "MIT", "dependencies": { "lodash._reinterpolate": "^3.0.0", "lodash.templatesettings": "^4.0.0" @@ -10117,41 +9744,35 @@ }, "node_modules/lodash.templatesettings": { "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz", - "integrity": "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==", "dev": true, + "license": "MIT", "dependencies": { "lodash._reinterpolate": "^3.0.0" } }, "node_modules/lodash.toarray": { "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.toarray/-/lodash.toarray-4.4.0.tgz", - "integrity": "sha1-JMS/zWsvuji/0FlNsRedjptlZWE=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.topath": { "version": "4.5.2", - "resolved": "https://registry.npmjs.org/lodash.topath/-/lodash.topath-4.5.2.tgz", - "integrity": "sha512-1/W4dM+35DwvE/iEd1M9ekewOSTlpFekhw9mhAtrwjVqUr83/ilQiyAvmg4tVX7Unkcfl1KC+i9WdaT4B6aQcg==" + "license": "MIT" }, "node_modules/lodash.uniqby": { "version": "4.7.0", - "resolved": "https://registry.npmjs.org/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz", - "integrity": "sha1-2ZwHpmnp5tJOE2Lf4mbGdhavEwI=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.upperfirst": { "version": "4.3.1", - "resolved": "https://registry.npmjs.org/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz", - "integrity": "sha512-sReKOYJIJf74dhJONhU4e0/shzi1trVbSWDOhKYE5XV2O+H7Sb2Dihwuc7xWxVl+DgFPyTqIN3zMfT9cq5iWDg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lru-cache": { "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, + "license": "ISC", "dependencies": { "yallist": "^4.0.0" }, @@ -10161,9 +9782,8 @@ }, "node_modules/make-dir": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", "dev": true, + "license": "MIT", "dependencies": { "semver": "^6.0.0" }, @@ -10176,33 +9796,29 @@ }, "node_modules/make-dir/node_modules/semver": { "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" } }, "node_modules/make-error": { "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/makeerror": { "version": "1.0.12", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", - "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "tmpl": "1.0.5" } }, "node_modules/map-obj": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", - "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -10212,18 +9828,16 @@ }, "node_modules/markdown-link": { "version": "0.1.1", - "resolved": "https://registry.npmjs.org/markdown-link/-/markdown-link-0.1.1.tgz", - "integrity": "sha1-MsXGUZmmRXMWMi0eQinRNAfIx88=", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/markdown-toc": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/markdown-toc/-/markdown-toc-1.2.0.tgz", - "integrity": "sha512-eOsq7EGd3asV0oBfmyqngeEIhrbkc7XVP63OwcJBIhH2EpG2PzFcbZdhy1jutXSlRBBVMNXHvMtSr5LAxSUvUg==", "dev": true, + "license": "MIT", "dependencies": { "concat-stream": "^1.5.2", "diacritics-map": "^0.1.0", @@ -10247,9 +9861,8 @@ }, "node_modules/marked": { "version": "2.1.3", - "resolved": "https://registry.npmjs.org/marked/-/marked-2.1.3.tgz", - "integrity": "sha512-/Q+7MGzaETqifOMWYEA7HVMaZb4XbcRfaOzcSsHZEith83KGlvaSG33u0SKu89Mj5h+T8V2hM+8O45Qc5XTgwA==", "dev": true, + "license": "MIT", "bin": { "marked": "bin/marked" }, @@ -10259,9 +9872,8 @@ }, "node_modules/marked-terminal": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/marked-terminal/-/marked-terminal-4.1.1.tgz", - "integrity": "sha512-t7Mdf6T3PvOEyN01c3tYxDzhyKZ8xnkp8Rs6Fohno63L/0pFTJ5Qtwto2AQVuDtbQiWzD+4E5AAu1Z2iLc8miQ==", "dev": true, + "license": "MIT", "dependencies": { "ansi-escapes": "^4.3.1", "cardinal": "^2.1.1", @@ -10276,9 +9888,8 @@ }, "node_modules/marked-terminal/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -10291,9 +9902,8 @@ }, "node_modules/marked-terminal/node_modules/chalk": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", - "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -10307,9 +9917,8 @@ }, "node_modules/marked-terminal/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -10319,24 +9928,21 @@ }, "node_modules/marked-terminal/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/marked-terminal/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/marked-terminal/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -10346,15 +9952,13 @@ }, "node_modules/math-random": { "version": "1.0.4", - "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.4.tgz", - "integrity": "sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/meow": { "version": "8.1.2", - "resolved": "https://registry.npmjs.org/meow/-/meow-8.1.2.tgz", - "integrity": "sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q==", "dev": true, + "license": "MIT", "dependencies": { "@types/minimist": "^1.2.0", "camelcase-keys": "^6.2.2", @@ -10377,9 +9981,8 @@ }, "node_modules/meow/node_modules/hosted-git-info": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", - "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", "dev": true, + "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -10389,9 +9992,8 @@ }, "node_modules/meow/node_modules/normalize-package-data": { "version": "3.0.3", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", - "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "hosted-git-info": "^4.0.1", "is-core-module": "^2.5.0", @@ -10404,9 +10006,8 @@ }, "node_modules/meow/node_modules/semver": { "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", "dev": true, + "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -10419,9 +10020,8 @@ }, "node_modules/meow/node_modules/type-fest": { "version": "0.18.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", - "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", "dev": true, + "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -10431,24 +10031,21 @@ }, "node_modules/merge-stream": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/merge2": { "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 8" } }, "node_modules/micromatch": { "version": "4.0.4", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", - "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", "dev": true, + "license": "MIT", "dependencies": { "braces": "^3.0.1", "picomatch": "^2.2.3" @@ -10459,9 +10056,8 @@ }, "node_modules/mime": { "version": "2.5.2", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.5.2.tgz", - "integrity": "sha512-tqkh47FzKeCPD2PUiPB6pkbMzsCasjxAfC62/Wap5qrUWcb+sFasXUC5I3gYM5iBM8v/Qpn4UK0x+j0iHyFPDg==", "dev": true, + "license": "MIT", "bin": { "mime": "cli.js" }, @@ -10469,28 +10065,46 @@ "node": ">=4.0.0" } }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/mimic-fn": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/min-indent": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", - "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/minimatch": { "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -10500,15 +10114,13 @@ }, "node_modules/minimist": { "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/minimist-options": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", - "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", "dev": true, + "license": "MIT", "dependencies": { "arrify": "^1.0.1", "is-plain-obj": "^1.1.0", @@ -10520,18 +10132,16 @@ }, "node_modules/minimist-options/node_modules/kind-of": { "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/mixin-deep": { "version": "1.3.2", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", - "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", "dev": true, + "license": "MIT", "dependencies": { "for-in": "^1.0.2", "is-extendable": "^1.0.1" @@ -10542,9 +10152,8 @@ }, "node_modules/mixin-deep/node_modules/is-extendable": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", "dev": true, + "license": "MIT", "dependencies": { "is-plain-object": "^2.0.4" }, @@ -10554,9 +10163,8 @@ }, "node_modules/mixin-deep/node_modules/is-plain-object": { "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", "dev": true, + "license": "MIT", "dependencies": { "isobject": "^3.0.1" }, @@ -10564,52 +10172,53 @@ "node": ">=0.10.0" } }, - "node_modules/mixin-deep/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "node_modules/mkdirp-classic": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", + "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", + "dev": true + }, + "node_modules/modify-values": { + "version": "1.0.1", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, - "node_modules/modify-values": { + "node_modules/mrmime": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/modify-values/-/modify-values-1.0.1.tgz", - "integrity": "sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==", + "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-1.0.1.tgz", + "integrity": "sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==", "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=10" } }, "node_modules/ms": { "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/natural-compare": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/neo-async": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz", - "integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", "dev": true }, "node_modules/nerf-dart": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/nerf-dart/-/nerf-dart-1.0.0.tgz", - "integrity": "sha1-5tq3/r9a2Bbqgc9cYpxaDr3nLBo=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/nimma": { "version": "0.2.2", - "resolved": "https://registry.npmjs.org/nimma/-/nimma-0.2.2.tgz", - "integrity": "sha512-V52MLl7BU+tH2Np9tDrIXK8bql3MVUadnMIl/0/oZSGC9keuro0O9UUv9QKp0aMvtN8HRew4G7byY7H4eWsxaQ==", + "license": "Apache-2.0", "dependencies": { "@jsep-plugin/regex": "^1.0.1", "@jsep-plugin/ternary": "^1.0.2", @@ -10626,8 +10235,7 @@ }, "node_modules/nimma/node_modules/jsonpath-plus": { "version": "6.0.1", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-6.0.1.tgz", - "integrity": "sha512-EvGovdvau6FyLexFH2OeXfIITlgIbgZoAZe3usiySeaIDm5QS+A10DKNpaPBBqqRSZr2HN6HVNXxtwUAr2apEw==", + "license": "MIT", "optional": true, "engines": { "node": ">=10.0.0" @@ -10635,17 +10243,15 @@ }, "node_modules/node-emoji": { "version": "1.10.0", - "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.10.0.tgz", - "integrity": "sha512-Yt3384If5H6BYGVHiHwTL+99OzJKHhgp82S8/dktEK73T26BazdgZ4JZh92xSVtGNJvz9UbXdNAc5hcrXV42vw==", "dev": true, + "license": "MIT", "dependencies": { "lodash.toarray": "^4.4.0" } }, "node_modules/node-fetch": { "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "license": "MIT", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -10663,21 +10269,18 @@ }, "node_modules/node-int64": { "version": "0.4.0", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/node-releases": { "version": "2.0.6", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", - "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/normalize-package-data": { "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "hosted-git-info": "^2.1.4", "resolve": "^1.10.0", @@ -10687,18 +10290,16 @@ }, "node_modules/normalize-path": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/normalize-url": { "version": "5.3.1", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-5.3.1.tgz", - "integrity": "sha512-K1c7+vaAP+Yh5bOGmA10PGPpp+6h7WZrl7GwqKhUflBc9flU9pzG27DDeB9+iuhZkE3BJZOcgN1P/2sS5pqrWw==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -10708,8 +10309,6 @@ }, "node_modules/npm": { "version": "6.14.17", - "resolved": "https://registry.npmjs.org/npm/-/npm-6.14.17.tgz", - "integrity": "sha512-CxEDn1ydVRPDl4tHrlnq+WevYAhv4GF2AEHzJKQ4prZDZ96IS3Uo6t0Sy6O9kB6XzqkI+J00WfYCqqk0p6IJ1Q==", "bundleDependencies": [ "abbrev", "ansicolors", @@ -10836,6 +10435,7 @@ "write-file-atomic" ], "dev": true, + "license": "Artistic-2.0", "dependencies": { "abbrev": "~1.1.1", "ansicolors": "~0.3.2", @@ -10854,7 +10454,6 @@ "cmd-shim": "^3.0.3", "columnify": "~1.5.4", "config-chain": "^1.1.12", - "debuglog": "*", "detect-indent": "~5.0.0", "detect-newline": "^2.1.0", "dezalgo": "~1.0.3", @@ -10869,7 +10468,6 @@ "has-unicode": "~2.0.1", "hosted-git-info": "^2.8.9", "iferr": "^1.0.2", - "imurmurhash": "*", "infer-owner": "^1.0.4", "inflight": "~1.0.6", "inherits": "^2.0.4", @@ -10889,14 +10487,8 @@ "libnpx": "^10.2.4", "lock-verify": "^2.1.0", "lockfile": "^1.0.4", - "lodash._baseindexof": "*", "lodash._baseuniq": "~4.6.0", - "lodash._bindcallback": "*", - "lodash._cacheindexof": "*", - "lodash._createcache": "*", - "lodash._getnative": "*", "lodash.clonedeep": "~4.5.0", - "lodash.restparam": "*", "lodash.union": "~4.6.0", "lodash.uniq": "~4.5.0", "lodash.without": "~4.4.0", @@ -10971,9 +10563,8 @@ }, "node_modules/npm-run-path": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.0.0" }, @@ -13131,7 +12722,7 @@ }, "node_modules/npm/node_modules/lodash._baseindexof": { "version": "3.1.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, @@ -13147,19 +12738,19 @@ }, "node_modules/npm/node_modules/lodash._bindcallback": { "version": "3.0.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/lodash._cacheindexof": { "version": "3.0.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/npm/node_modules/lodash._createcache": { "version": "3.1.2", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -13174,7 +12765,7 @@ }, "node_modules/npm/node_modules/lodash._getnative": { "version": "3.9.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, @@ -13192,7 +12783,7 @@ }, "node_modules/npm/node_modules/lodash.restparam": { "version": "3.6.1", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT" }, @@ -15364,24 +14955,21 @@ }, "node_modules/object-inspect": { "version": "1.12.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", - "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/object-keys": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "license": "MIT", "engines": { "node": ">= 0.4" } }, "node_modules/object.assign": { "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", @@ -15397,9 +14985,8 @@ }, "node_modules/object.pick": { "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", "dev": true, + "license": "MIT", "dependencies": { "isobject": "^3.0.1" }, @@ -15407,20 +14994,10 @@ "node": ">=0.10.0" } }, - "node_modules/object.pick/node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/object.values": { "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.5.tgz", - "integrity": "sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.1.3", @@ -15435,18 +15012,16 @@ }, "node_modules/once": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, + "license": "ISC", "dependencies": { "wrappy": "1" } }, "node_modules/onetime": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz", - "integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==", "dev": true, + "license": "MIT", "dependencies": { "mimic-fn": "^2.1.0" }, @@ -15454,11 +15029,19 @@ "node": ">=6" } }, + "node_modules/opener": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", + "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", + "dev": true, + "bin": { + "opener": "bin/opener-bin.js" + } + }, "node_modules/optionator": { "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", "dev": true, + "license": "MIT", "dependencies": { "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", @@ -15473,9 +15056,8 @@ }, "node_modules/p-each-series": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", - "integrity": "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -15485,9 +15067,8 @@ }, "node_modules/p-filter": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-filter/-/p-filter-2.1.0.tgz", - "integrity": "sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw==", "dev": true, + "license": "MIT", "dependencies": { "p-map": "^2.0.0" }, @@ -15497,18 +15078,16 @@ }, "node_modules/p-is-promise": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-3.0.0.tgz", - "integrity": "sha512-Wo8VsW4IRQSKVXsJCn7TomUaVtyfjVDn3nUP7kE967BQk0CwFpdbZs0X0uk5sW9mkBa9eNM7hCMaG93WUAwxYQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/p-limit": { "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", "dev": true, + "license": "MIT", "dependencies": { "p-try": "^1.0.0" }, @@ -15518,9 +15097,8 @@ }, "node_modules/p-locate": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", "dev": true, + "license": "MIT", "dependencies": { "p-limit": "^1.1.0" }, @@ -15530,27 +15108,24 @@ }, "node_modules/p-map": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", - "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/p-reduce": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-reduce/-/p-reduce-2.1.0.tgz", - "integrity": "sha512-2USApvnsutq8uoxZBGbbWM0JIYLiEMJ9RlaN7fAzVNb9OZN0SHjjTTfIcb667XynS5Y1VhwDJVDa72TnPzAYWw==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/p-retry": { "version": "4.5.0", - "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.5.0.tgz", - "integrity": "sha512-5Hwh4aVQSu6BEP+w2zKlVXtFAaYQe1qWuVADSgoeVlLjwe/Q/AMSoRR4MDeaAfu8llT+YNbEijWu/YF3m6avkg==", "dev": true, + "license": "MIT", "dependencies": { "@types/retry": "^0.12.0", "retry": "^0.12.0" @@ -15561,18 +15136,16 @@ }, "node_modules/p-try": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/parent-module": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, + "license": "MIT", "dependencies": { "callsites": "^3.0.0" }, @@ -15582,9 +15155,8 @@ }, "node_modules/parse-json": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", "dev": true, + "license": "MIT", "dependencies": { "error-ex": "^1.3.1", "json-parse-better-errors": "^1.0.1" @@ -15593,50 +15165,56 @@ "node": ">=4" } }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "dev": true + }, "node_modules/path-exists": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/path-is-absolute": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/path-key": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/path-parse": { "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", "dev": true }, "node_modules/picocolors": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/picomatch": { "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8.6" }, @@ -15646,27 +15224,24 @@ }, "node_modules/pify": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/pirates": { "version": "4.0.5", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", - "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 6" } }, "node_modules/pkg-conf": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-2.1.0.tgz", - "integrity": "sha1-ISZRTKbyq/69FoWW3xi6V4Z/AFg=", "dev": true, + "license": "MIT", "dependencies": { "find-up": "^2.0.0", "load-json-file": "^4.0.0" @@ -15677,9 +15252,8 @@ }, "node_modules/pkg-dir": { "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, + "license": "MIT", "dependencies": { "find-up": "^4.0.0" }, @@ -15689,9 +15263,8 @@ }, "node_modules/pkg-dir/node_modules/find-up": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, + "license": "MIT", "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -15702,9 +15275,8 @@ }, "node_modules/pkg-dir/node_modules/locate-path": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, + "license": "MIT", "dependencies": { "p-locate": "^4.1.0" }, @@ -15714,9 +15286,8 @@ }, "node_modules/pkg-dir/node_modules/p-limit": { "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, + "license": "MIT", "dependencies": { "p-try": "^2.0.0" }, @@ -15729,9 +15300,8 @@ }, "node_modules/pkg-dir/node_modules/p-locate": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, + "license": "MIT", "dependencies": { "p-limit": "^2.2.0" }, @@ -15741,44 +15311,39 @@ }, "node_modules/pkg-dir/node_modules/p-try": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/pkg-dir/node_modules/path-exists": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/pony-cause": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pony-cause/-/pony-cause-1.1.1.tgz", - "integrity": "sha512-PxkIc/2ZpLiEzQXu5YRDOUgBlfGYBY8156HY5ZcRAwwonMk5W/MrJP2LLkG/hF7GEQzaHo2aS7ho6ZLCOvf+6g==", + "license": "0BSD", "engines": { "node": ">=12.0.0" } }, "node_modules/prelude-ls": { "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.8.0" } }, "node_modules/prettier": { "version": "2.7.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", - "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", "dev": true, + "license": "MIT", "bin": { "prettier": "bin-prettier.js" }, @@ -15791,9 +15356,8 @@ }, "node_modules/prettier-linter-helpers": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", "dev": true, + "license": "MIT", "dependencies": { "fast-diff": "^1.1.2" }, @@ -15803,9 +15367,8 @@ }, "node_modules/pretty-format": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", - "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1", "ansi-styles": "^5.0.0", @@ -15817,9 +15380,8 @@ }, "node_modules/pretty-format/node_modules/ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -15829,15 +15391,22 @@ }, "node_modules/process-nextick-args": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "dev": true + "dev": true, + "license": "MIT" + }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } }, "node_modules/prompts": { "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", "dev": true, + "license": "MIT", "dependencies": { "kleur": "^3.0.3", "sisteransi": "^1.0.5" @@ -15846,11 +15415,16 @@ "node": ">= 6" } }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "dev": true + }, "node_modules/pump": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", "dev": true, + "license": "MIT", "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" @@ -15858,17 +15432,38 @@ }, "node_modules/punycode": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "license": "MIT", "engines": { "node": ">=6" } }, + "node_modules/puppeteer": { + "version": "17.1.2", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-17.1.2.tgz", + "integrity": "sha512-xgFOxUl4hRjwQpODZSeJlE/rUzi8OmHtc3T4ir4CRYGzVmaTVHAl8VGpI0ooy752u2DFeMxvQdHmxNnLqPImIg==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "cross-fetch": "3.1.5", + "debug": "4.3.4", + "devtools-protocol": "0.0.1036444", + "extract-zip": "2.0.1", + "https-proxy-agent": "5.0.1", + "progress": "2.0.3", + "proxy-from-env": "1.1.0", + "rimraf": "3.0.2", + "tar-fs": "2.1.1", + "unbzip2-stream": "1.4.3", + "ws": "8.8.1" + }, + "engines": { + "node": ">=14.1.0" + } + }, "node_modules/q": { "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", "dev": true, + "license": "MIT", "engines": { "node": ">=0.6.0", "teleport": ">=0.2.0" @@ -15876,8 +15471,6 @@ }, "node_modules/queue-microtask": { "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", "dev": true, "funding": [ { @@ -15892,21 +15485,20 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/quick-lru": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", - "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/ramldt2jsonschema": { "version": "1.2.3", - "resolved": "https://registry.npmjs.org/ramldt2jsonschema/-/ramldt2jsonschema-1.2.3.tgz", - "integrity": "sha512-+wLDAV2NNv9NkfEUOYStaDu/6RYgYXeC1zLtXE+dMU/jDfjpN4iJnBGycDwFTFaIQGosOQhxph7fEX6Mpwxdug==", + "license": "Apache-2.0", "dependencies": { "commander": "^5.0.0", "js-yaml": "^3.14.0", @@ -15920,8 +15512,7 @@ }, "node_modules/ramldt2jsonschema/node_modules/js-yaml": { "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "license": "MIT", "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -15932,9 +15523,8 @@ }, "node_modules/randomatic": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", - "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", "dev": true, + "license": "MIT", "dependencies": { "is-number": "^4.0.0", "kind-of": "^6.0.0", @@ -15946,27 +15536,33 @@ }, "node_modules/randomatic/node_modules/is-number": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", - "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/randomatic/node_modules/kind-of": { "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, "node_modules/rc": { "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", "dev": true, + "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", "dependencies": { "deep-extend": "^0.6.0", "ini": "~1.3.0", @@ -15979,15 +15575,13 @@ }, "node_modules/react-is": { "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/read-pkg": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", "dev": true, + "license": "MIT", "dependencies": { "@types/normalize-package-data": "^2.4.0", "normalize-package-data": "^2.5.0", @@ -16000,9 +15594,8 @@ }, "node_modules/read-pkg-up": { "version": "7.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", - "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", "dev": true, + "license": "MIT", "dependencies": { "find-up": "^4.1.0", "read-pkg": "^5.2.0", @@ -16017,9 +15610,8 @@ }, "node_modules/read-pkg-up/node_modules/find-up": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, + "license": "MIT", "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -16030,9 +15622,8 @@ }, "node_modules/read-pkg-up/node_modules/locate-path": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, + "license": "MIT", "dependencies": { "p-locate": "^4.1.0" }, @@ -16042,9 +15633,8 @@ }, "node_modules/read-pkg-up/node_modules/p-limit": { "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, + "license": "MIT", "dependencies": { "p-try": "^2.0.0" }, @@ -16057,9 +15647,8 @@ }, "node_modules/read-pkg-up/node_modules/p-locate": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, + "license": "MIT", "dependencies": { "p-limit": "^2.2.0" }, @@ -16069,36 +15658,32 @@ }, "node_modules/read-pkg-up/node_modules/p-try": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/read-pkg-up/node_modules/path-exists": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/read-pkg-up/node_modules/type-fest": { "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", "dev": true, + "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=8" } }, "node_modules/read-pkg/node_modules/parse-json": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", @@ -16114,9 +15699,8 @@ }, "node_modules/readable-stream": { "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", "dev": true, + "license": "MIT", "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -16127,11 +15711,22 @@ "util-deprecate": "~1.0.1" } }, + "node_modules/rechoir": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", + "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", + "dev": true, + "dependencies": { + "resolve": "^1.9.0" + }, + "engines": { + "node": ">= 0.10" + } + }, "node_modules/redent": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", - "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", "dev": true, + "license": "MIT", "dependencies": { "indent-string": "^4.0.0", "strip-indent": "^3.0.0" @@ -16142,32 +15737,28 @@ }, "node_modules/redeyed": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/redeyed/-/redeyed-2.1.1.tgz", - "integrity": "sha1-iYS1gV2ZyyIEacme7v/jiRPmzAs=", "dev": true, + "license": "MIT", "dependencies": { "esprima": "~4.0.0" } }, "node_modules/regenerator-runtime": { "version": "0.13.9", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", - "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/regexp-tree": { "version": "0.1.24", - "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.24.tgz", - "integrity": "sha512-s2aEVuLhvnVJW6s/iPgEGK6R+/xngd2jNQ+xy4bXNDKxZKJH6jpPHY6kVeVv1IeLCHgswRj+Kl3ELaDjG6V1iw==", "dev": true, + "license": "MIT", "bin": { "regexp-tree": "bin/regexp-tree" } }, "node_modules/regexp.prototype.flags": { "version": "1.4.3", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", - "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.1.3", @@ -16182,9 +15773,8 @@ }, "node_modules/regexpp": { "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -16194,9 +15784,8 @@ }, "node_modules/registry-auth-token": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.1.1.tgz", - "integrity": "sha512-9bKS7nTl9+/A1s7tnPeGrUpRcVY+LUh7bfFgzpndALdPfXQBfQV77rQVtqgUV3ti4vc/Ik81Ex8UJDWDQ12zQA==", "dev": true, + "license": "MIT", "dependencies": { "rc": "^1.2.8" }, @@ -16206,9 +15795,8 @@ }, "node_modules/remarkable": { "version": "1.7.4", - "resolved": "https://registry.npmjs.org/remarkable/-/remarkable-1.7.4.tgz", - "integrity": "sha512-e6NKUXgX95whv7IgddywbeN/ItCkWbISmc2DiqHJb0wTrqZIexqdco5b8Z3XZoo/48IdNVKM9ZCvTPJ4F5uvhg==", "dev": true, + "license": "MIT", "dependencies": { "argparse": "^1.0.10", "autolinker": "~0.28.0" @@ -16222,44 +15810,39 @@ }, "node_modules/repeat-element": { "version": "1.1.3", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", - "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/repeat-string": { "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10" } }, "node_modules/require-directory": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/require-from-string": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/resolve": { "version": "1.22.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz", - "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==", "dev": true, + "license": "MIT", "dependencies": { "is-core-module": "^2.8.1", "path-parse": "^1.0.7", @@ -16274,9 +15857,8 @@ }, "node_modules/resolve-cwd": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, + "license": "MIT", "dependencies": { "resolve-from": "^5.0.0" }, @@ -16286,36 +15868,32 @@ }, "node_modules/resolve-from": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/resolve.exports": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.0.tgz", - "integrity": "sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" } }, "node_modules/retry": { "version": "0.12.0", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", - "integrity": "sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs=", "dev": true, + "license": "MIT", "engines": { "node": ">= 4" } }, "node_modules/reusify": { "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", "dev": true, + "license": "MIT", "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" @@ -16323,9 +15901,8 @@ }, "node_modules/rimraf": { "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dev": true, + "license": "ISC", "dependencies": { "glob": "^7.1.3" }, @@ -16338,8 +15915,6 @@ }, "node_modules/run-parallel": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "dev": true, "funding": [ { @@ -16355,35 +15930,75 @@ "url": "https://feross.org/support" } ], + "license": "MIT", "dependencies": { "queue-microtask": "^1.2.2" } }, "node_modules/safe-buffer": { "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/safe-regex": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz", - "integrity": "sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==", "dev": true, + "license": "MIT", "dependencies": { "regexp-tree": "~0.1.1" } }, "node_modules/safe-stable-stringify": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz", - "integrity": "sha512-ERq4hUjKDbJfE4+XtZLFPCDi8Vb1JqaxAPTxWFLBx8XcAlf9Bda/ZJdVezs/NAfsMQScyIlUMx+Yeu7P7rx5jw==" + "license": "MIT" + }, + "node_modules/schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/schema-utils/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/schema-utils/node_modules/ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "peerDependencies": { + "ajv": "^6.9.1" + } }, "node_modules/semantic-release": { "version": "17.4.3", - "resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-17.4.3.tgz", - "integrity": "sha512-lTOUSrkbaQ+TRs3+BmtJhLtPSyiO7iTGmh5SyuEFqNO8HQbQ4nzXg4UlPrDQasO/C0eFK/V0eCbOzJdjtKBOYw==", "dev": true, + "license": "MIT", "dependencies": { "@semantic-release/commit-analyzer": "^8.0.0", "@semantic-release/error": "^2.2.0", @@ -16423,9 +16038,8 @@ }, "node_modules/semantic-release/node_modules/hosted-git-info": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", - "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==", "dev": true, + "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -16435,9 +16049,8 @@ }, "node_modules/semantic-release/node_modules/semver": { "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", "dev": true, + "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" }, @@ -16450,18 +16063,16 @@ }, "node_modules/semver": { "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver" } }, "node_modules/semver-diff": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", - "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", "dev": true, + "license": "MIT", "dependencies": { "semver": "^6.3.0" }, @@ -16471,18 +16082,16 @@ }, "node_modules/semver-diff/node_modules/semver": { "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true, + "license": "ISC", "bin": { "semver": "bin/semver.js" } }, "node_modules/semver-regex": { "version": "3.1.4", - "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.4.tgz", - "integrity": "sha512-6IiqeZNgq01qGf0TId0t3NvKzSvUsjcpdEO3AQNeIjR6A2+ckTnQlDpl4qu1bjRv0RzN3FP9hzFmws3lKqRWkA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -16490,11 +16099,19 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/serialize-javascript": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", + "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "dev": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, "node_modules/set-getter": { "version": "0.1.1", - "resolved": "https://registry.npmjs.org/set-getter/-/set-getter-0.1.1.tgz", - "integrity": "sha512-9sVWOy+gthr+0G9DzqqLaYNA7+5OKkSmcqjL9cBpDEaZrr3ShQlyX2cZ/O/ozE41oxn/Tt0LGEM/w4Rub3A3gw==", "dev": true, + "license": "MIT", "dependencies": { "to-object-path": "^0.3.0" }, @@ -16502,11 +16119,31 @@ "node": ">=0.10.0" } }, + "node_modules/shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dev": true, + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shallow-clone/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/shebang-command": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, + "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -16516,17 +16153,15 @@ }, "node_modules/shebang-regex": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/side-channel": { "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "license": "MIT", "dependencies": { "call-bind": "^1.0.0", "get-intrinsic": "^1.0.2", @@ -16538,15 +16173,13 @@ }, "node_modules/signal-exit": { "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/signale": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/signale/-/signale-1.4.0.tgz", - "integrity": "sha512-iuh+gPf28RkltuJC7W5MRi6XAjTDCAPC/prJUpQoG4vIP3MJZ+GTydVnodXA7pwvTKb2cA0m9OFZW/cdWy/I/w==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^2.3.2", "figures": "^2.0.0", @@ -16558,9 +16191,8 @@ }, "node_modules/signale/node_modules/figures": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", - "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", "dev": true, + "license": "MIT", "dependencies": { "escape-string-regexp": "^1.0.5" }, @@ -16570,8 +16202,7 @@ }, "node_modules/simple-eval": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/simple-eval/-/simple-eval-1.0.0.tgz", - "integrity": "sha512-kpKJR+bqTscgC0xuAl2xHN6bB12lHjC2DCUfqjAx19bQyO3R2EVLOurm3H9AUltv/uFVcSCVNc6faegR+8NYLw==", + "license": "MIT", "dependencies": { "jsep": "^1.1.2" }, @@ -16579,35 +16210,45 @@ "node": ">=12" } }, + "node_modules/sirv": { + "version": "1.0.19", + "resolved": "https://registry.npmjs.org/sirv/-/sirv-1.0.19.tgz", + "integrity": "sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==", + "dev": true, + "dependencies": { + "@polka/url": "^1.0.0-next.20", + "mrmime": "^1.0.0", + "totalist": "^1.0.0" + }, + "engines": { + "node": ">= 10" + } + }, "node_modules/sisteransi": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/slash": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/source-map": { "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } }, "node_modules/source-map-support": { "version": "0.5.13", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", - "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, + "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -16615,15 +16256,13 @@ }, "node_modules/spawn-error-forwarder": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/spawn-error-forwarder/-/spawn-error-forwarder-1.0.0.tgz", - "integrity": "sha1-Gv2Uc46ZmwNG17n8NzvlXgdXcCk=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/spdx-correct": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", - "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", "dev": true, + "license": "Apache-2.0", "dependencies": { "spdx-expression-parse": "^3.0.0", "spdx-license-ids": "^3.0.0" @@ -16631,15 +16270,13 @@ }, "node_modules/spdx-exceptions": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", - "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", - "dev": true + "dev": true, + "license": "CC-BY-3.0" }, "node_modules/spdx-expression-parse": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", - "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", "dev": true, + "license": "MIT", "dependencies": { "spdx-exceptions": "^2.1.0", "spdx-license-ids": "^3.0.0" @@ -16647,15 +16284,13 @@ }, "node_modules/spdx-license-ids": { "version": "3.0.5", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz", - "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==", - "dev": true + "dev": true, + "license": "CC0-1.0" }, "node_modules/split": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", - "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", "dev": true, + "license": "MIT", "dependencies": { "through": "2" }, @@ -16665,18 +16300,16 @@ }, "node_modules/split2": { "version": "3.2.2", - "resolved": "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz", - "integrity": "sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==", "dev": true, + "license": "ISC", "dependencies": { "readable-stream": "^3.0.0" } }, "node_modules/split2/node_modules/readable-stream": { "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", "dev": true, + "license": "MIT", "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -16688,14 +16321,12 @@ }, "node_modules/sprintf-js": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" + "license": "BSD-3-Clause" }, "node_modules/stack-utils": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.5.tgz", - "integrity": "sha512-xrQcmYhOsn/1kX+Vraq+7j4oE2j/6BFscZ0etmYg81xuM8Gq0022Pxb8+IqgOFUIaxHs0KaSb7T1+OegiNrNFA==", "dev": true, + "license": "MIT", "dependencies": { "escape-string-regexp": "^2.0.0" }, @@ -16705,18 +16336,16 @@ }, "node_modules/stack-utils/node_modules/escape-string-regexp": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/stream-combiner2": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", - "integrity": "sha1-+02KFCDqNidk4hrUeAOXvry0HL4=", "dev": true, + "license": "MIT", "dependencies": { "duplexer2": "~0.1.0", "readable-stream": "^2.0.2" @@ -16724,18 +16353,16 @@ }, "node_modules/string_decoder": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, + "license": "MIT", "dependencies": { "safe-buffer": "~5.1.0" } }, "node_modules/string-length": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", "dev": true, + "license": "MIT", "dependencies": { "char-regex": "^1.0.2", "strip-ansi": "^6.0.0" @@ -16746,9 +16373,8 @@ }, "node_modules/string-width": { "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, + "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -16760,8 +16386,7 @@ }, "node_modules/string.prototype.trimend": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz", - "integrity": "sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==", + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", @@ -16773,8 +16398,7 @@ }, "node_modules/string.prototype.trimstart": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz", - "integrity": "sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==", + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", @@ -16786,9 +16410,8 @@ }, "node_modules/strip-ansi": { "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -16798,36 +16421,32 @@ }, "node_modules/strip-bom": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/strip-color": { "version": "0.1.0", - "resolved": "https://registry.npmjs.org/strip-color/-/strip-color-0.1.0.tgz", - "integrity": "sha1-EG9l09PmotlAHKwOsM6LinArT3s=", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/strip-final-newline": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/strip-indent": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", - "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", "dev": true, + "license": "MIT", "dependencies": { "min-indent": "^1.0.0" }, @@ -16837,18 +16456,16 @@ }, "node_modules/strip-json-comments": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/supports-color": { "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^3.0.0" }, @@ -16858,9 +16475,8 @@ }, "node_modules/supports-hyperlinks": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.2.0.tgz", - "integrity": "sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0", "supports-color": "^7.0.0" @@ -16871,18 +16487,16 @@ }, "node_modules/supports-hyperlinks/node_modules/has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/supports-hyperlinks/node_modules/supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -16892,9 +16506,8 @@ }, "node_modules/supports-preserve-symlinks-flag": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -16904,28 +16517,76 @@ }, "node_modules/svg-element-attributes": { "version": "1.3.1", - "resolved": "https://registry.npmjs.org/svg-element-attributes/-/svg-element-attributes-1.3.1.tgz", - "integrity": "sha512-Bh05dSOnJBf3miNMqpsormfNtfidA/GxQVakhtn0T4DECWKeXQRQUceYjJ+OxYiiLdGe4Jo9iFV8wICFapFeIA==", "dev": true, + "license": "MIT", "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/tar-fs": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", + "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", + "dev": true, + "dependencies": { + "chownr": "^1.1.1", + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^2.1.4" + } + }, + "node_modules/tar-stream": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", + "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", + "dev": true, + "dependencies": { + "bl": "^4.0.3", + "end-of-stream": "^1.4.1", + "fs-constants": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tar-stream/node_modules/readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/temp-dir": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", - "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/tempy": { "version": "0.5.0", - "resolved": "https://registry.npmjs.org/tempy/-/tempy-0.5.0.tgz", - "integrity": "sha512-VEY96x7gbIRfsxqsafy2l5yVxxp3PhwAGoWMyC2D2Zt5DmEv+2tGiPOrquNRpf21hhGnKLVEsuqleqiZmKG/qw==", "dev": true, + "license": "MIT", "dependencies": { "is-stream": "^2.0.0", "temp-dir": "^2.0.0", @@ -16941,9 +16602,8 @@ }, "node_modules/tempy/node_modules/type-fest": { "version": "0.12.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.12.0.tgz", - "integrity": "sha512-53RyidyjvkGpnWPMF9bQgFtWp+Sl8O2Rp13VavmJgfAP9WWG6q6TkrKU8iyJdnwnfgHI6k2hTlgqH4aSdjoTbg==", "dev": true, + "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -16953,9 +16613,8 @@ }, "node_modules/terminal-link": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", - "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", "dev": true, + "license": "MIT", "dependencies": { "ansi-escapes": "^4.2.1", "supports-hyperlinks": "^2.0.0" @@ -16967,11 +16626,78 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/terser": { + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.15.0.tgz", + "integrity": "sha512-L1BJiXVmheAQQy+as0oF3Pwtlo4s3Wi1X2zNZ2NxOB4wx9bdS9Vk67XQENLFdLYGCK/Z2di53mTj/hBafR+dTA==", + "dev": true, + "dependencies": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.6", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.6.tgz", + "integrity": "sha512-kfLFk+PoLUQIbLmB1+PZDMRSZS99Mp+/MHqDNmMA6tOItzRt+Npe3E+fsMs5mfcM0wCtrrdU387UnV+vnSffXQ==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.14", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.0", + "terser": "^5.14.1" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/terser/node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "node_modules/terser/node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, "node_modules/test-exclude": { "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, + "license": "ISC", "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^7.1.4", @@ -16983,39 +16709,34 @@ }, "node_modules/text-extensions": { "version": "1.9.0", - "resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-1.9.0.tgz", - "integrity": "sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10" } }, "node_modules/text-table": { "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/through": { "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/through2": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz", - "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==", "dev": true, + "license": "MIT", "dependencies": { "readable-stream": "3" } }, "node_modules/through2/node_modules/readable-stream": { "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", "dev": true, + "license": "MIT", "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -17027,24 +16748,21 @@ }, "node_modules/tmpl": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", - "dev": true + "dev": true, + "license": "BSD-3-Clause" }, "node_modules/to-fast-properties": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/to-object-path": { "version": "0.3.0", - "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", "dev": true, + "license": "MIT", "dependencies": { "kind-of": "^3.0.2" }, @@ -17054,9 +16772,8 @@ }, "node_modules/to-regex-range": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, + "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, @@ -17066,52 +16783,160 @@ }, "node_modules/toml": { "version": "2.3.6", - "resolved": "https://registry.npmjs.org/toml/-/toml-2.3.6.tgz", - "integrity": "sha512-gVweAectJU3ebq//Ferr2JUY4WKSDe5N+z0FvjDncLGyHmIDoxgY/2Ie4qfEIDm4IS7OA6Rmdm7pdEEdMcV/xQ==", - "dev": true + "dev": true, + "license": "MIT" + }, + "node_modules/totalist": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", + "integrity": "sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==", + "dev": true, + "engines": { + "node": ">=6" + } }, "node_modules/tr46": { "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" + "license": "MIT" }, "node_modules/traverse": { "version": "0.6.6", - "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.6.tgz", - "integrity": "sha1-y99WD9e5r2MlAv7UD5GMFX6pcTc=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/trim-newlines": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", - "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/ts-node": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", - "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", + "node_modules/ts-loader": { + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.3.1.tgz", + "integrity": "sha512-OkyShkcZTsTwyS3Kt7a4rsT/t2qvEVQuKCTg4LJmpj9fhFR7ukGdZwV6Qq3tRUkqcXtfGpPR7+hFKHCG/0d3Lw==", "dev": true, "dependencies": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" + "chalk": "^4.1.0", + "enhanced-resolve": "^5.0.0", + "micromatch": "^4.0.0", + "semver": "^7.3.4" }, - "bin": { - "ts-node": "dist/bin.js", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "typescript": "*", + "webpack": "^5.0.0" + } + }, + "node_modules/ts-loader/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/ts-loader/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/ts-loader/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/ts-loader/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/ts-loader/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ts-loader/node_modules/semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-loader/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ts-node": { + "version": "10.9.1", + "dev": true, + "license": "MIT", + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", "ts-node-cwd": "dist/bin-cwd.js", "ts-node-esm": "dist/bin-esm.js", "ts-node-script": "dist/bin-script.js", @@ -17135,9 +16960,8 @@ }, "node_modules/tsconfig-paths": { "version": "3.14.1", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz", - "integrity": "sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==", "dev": true, + "license": "MIT", "dependencies": { "@types/json5": "^0.0.29", "json5": "^1.0.1", @@ -17147,9 +16971,8 @@ }, "node_modules/tsconfig-paths/node_modules/json5": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", "dev": true, + "license": "MIT", "dependencies": { "minimist": "^1.2.0" }, @@ -17159,14 +16982,12 @@ }, "node_modules/tslib": { "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + "license": "0BSD" }, "node_modules/tsutils": { "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^1.8.1" }, @@ -17179,15 +17000,13 @@ }, "node_modules/tsutils/node_modules/tslib": { "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true + "dev": true, + "license": "0BSD" }, "node_modules/type-check": { "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, + "license": "MIT", "dependencies": { "prelude-ls": "^1.2.1" }, @@ -17197,33 +17016,29 @@ }, "node_modules/type-detect": { "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/type-fest": { "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", "dev": true, + "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=8" } }, "node_modules/typedarray": { "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/typescript": { "version": "4.8.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.2.tgz", - "integrity": "sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==", "dev": true, + "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -17234,9 +17049,8 @@ }, "node_modules/uglify-js": { "version": "3.13.5", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.5.tgz", - "integrity": "sha512-xtB8yEqIkn7zmOyS2zUNBsYCBRhDkvlNxMMY2smuJ/qA8NCHeQvKCF3i9Z4k8FJH4+PJvZRtMrPynfZ75+CSZw==", "dev": true, + "license": "BSD-2-Clause", "optional": true, "bin": { "uglifyjs": "bin/uglifyjs" @@ -17247,8 +17061,7 @@ }, "node_modules/unbox-primitive": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", + "license": "MIT", "dependencies": { "call-bind": "^1.0.2", "has-bigints": "^1.0.2", @@ -17256,167 +17069,442 @@ "which-boxed-primitive": "^1.0.2" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/unbzip2-stream": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz", + "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==", + "dev": true, + "dependencies": { + "buffer": "^5.2.1", + "through": "^2.3.8" + } + }, + "node_modules/unique-string": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "crypto-random-string": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/universal-user-agent": { + "version": "6.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/universalify": { + "version": "1.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.7", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "browserslist-lint": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.2.2", + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/urijs": { + "version": "1.19.11", + "license": "MIT" + }, + "node_modules/url-join": { + "version": "4.0.1", + "dev": true, + "license": "MIT" + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "dev": true, + "license": "MIT" + }, + "node_modules/utility-types": { + "version": "3.10.0", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "dev": true, + "license": "MIT" + }, + "node_modules/v8-to-istanbul": { + "version": "9.0.1", + "dev": true, + "license": "ISC", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "dev": true, + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webapi-parser": { + "version": "0.5.0", + "license": "Apache-2.0", + "dependencies": { + "ajv": "6.5.2" + } + }, + "node_modules/webapi-parser/node_modules/ajv": { + "version": "6.5.2", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.1" + } + }, + "node_modules/webapi-parser/node_modules/fast-deep-equal": { + "version": "2.0.1", + "license": "MIT" + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "license": "BSD-2-Clause" + }, + "node_modules/webpack": { + "version": "5.74.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.74.0.tgz", + "integrity": "sha512-A2InDwnhhGN4LYctJj6M1JEaGL7Luj6LOmyBHjcI8529cm5p6VXiTIW2sn6ffvEAKmveLzvu4jrihwXtPojlAA==", + "dev": true, + "dependencies": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^0.0.51", + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/wasm-edit": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.7.6", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.10.0", + "es-module-lexer": "^0.9.0", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.1.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.1.3", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-bundle-analyzer": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.6.1.tgz", + "integrity": "sha512-oKz9Oz9j3rUciLNfpGFjOb49/jEpXNmWdVH8Ls//zNcnLlQdTGXQQMsBbb/gR7Zl8WNLxVCq+0Hqbx3zv6twBw==", + "dev": true, + "dependencies": { + "acorn": "^8.0.4", + "acorn-walk": "^8.0.0", + "chalk": "^4.1.0", + "commander": "^7.2.0", + "gzip-size": "^6.0.0", + "lodash": "^4.17.20", + "opener": "^1.5.2", + "sirv": "^1.0.7", + "ws": "^7.3.1" + }, + "bin": { + "webpack-bundle-analyzer": "lib/bin/analyzer.js" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/webpack-bundle-analyzer/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/webpack-bundle-analyzer/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/unique-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", - "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", + "node_modules/webpack-bundle-analyzer/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "dependencies": { - "crypto-random-string": "^2.0.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=8" + "node": ">=7.0.0" } }, - "node_modules/universal-user-agent": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", - "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==", + "node_modules/webpack-bundle-analyzer/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "node_modules/universalify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz", - "integrity": "sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug==", + "node_modules/webpack-bundle-analyzer/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", "dev": true, "engines": { - "node": ">= 10.0.0" + "node": ">= 10" } }, - "node_modules/update-browserslist-db": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.7.tgz", - "integrity": "sha512-iN/XYesmZ2RmmWAiI4Z5rq0YqSiv0brj9Ce9CfhNE4xIW2h+MFxcgkxIzZ+ShkFPUkjU3gQ+3oypadD3RAMtrg==", + "node_modules/webpack-bundle-analyzer/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - } - ], - "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - }, - "bin": { - "browserslist-lint": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" + "engines": { + "node": ">=8" } }, - "node_modules/uri-js": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "node_modules/webpack-bundle-analyzer/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, "dependencies": { - "punycode": "^2.1.0" + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/urijs": { - "version": "1.19.11", - "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz", - "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==" - }, - "node_modules/url-join": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", - "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==", - "dev": true - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true - }, - "node_modules/utility-types": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", - "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==", + "node_modules/webpack-bundle-analyzer/node_modules/ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "dev": true, "engines": { - "node": ">= 4" + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } } }, - "node_modules/v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "dev": true - }, - "node_modules/v8-to-istanbul": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.0.1.tgz", - "integrity": "sha512-74Y4LqY74kLE6IFyIjPtkSTWzUZmj8tdHT9Ii/26dvQ6K9Dl2NbEfj0XgU2sHCtKgt5VupqhlO/5aWuqS+IY1w==", + "node_modules/webpack-cli": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.10.0.tgz", + "integrity": "sha512-NLhDfH/h4O6UOy+0LSso42xvYypClINuMNBVVzX4vX98TmTaTUxwRbXdhucbFMd2qLaCTcLq/PdYrvi8onw90w==", "dev": true, "dependencies": { - "@jridgewell/trace-mapping": "^0.3.12", - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0" + "@discoveryjs/json-ext": "^0.5.0", + "@webpack-cli/configtest": "^1.2.0", + "@webpack-cli/info": "^1.5.0", + "@webpack-cli/serve": "^1.7.0", + "colorette": "^2.0.14", + "commander": "^7.0.0", + "cross-spawn": "^7.0.3", + "fastest-levenshtein": "^1.0.12", + "import-local": "^3.0.2", + "interpret": "^2.2.0", + "rechoir": "^0.7.0", + "webpack-merge": "^5.7.3" + }, + "bin": { + "webpack-cli": "bin/cli.js" }, "engines": { - "node": ">=10.12.0" + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "4.x.x || 5.x.x" + }, + "peerDependenciesMeta": { + "@webpack-cli/generators": { + "optional": true + }, + "@webpack-cli/migrate": { + "optional": true + }, + "webpack-bundle-analyzer": { + "optional": true + }, + "webpack-dev-server": { + "optional": true + } } }, - "node_modules/validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "node_modules/webpack-cli/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", "dev": true, - "dependencies": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" + "engines": { + "node": ">= 10" } }, - "node_modules/walker": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", - "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "node_modules/webpack-merge": { + "version": "5.8.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", + "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", "dev": true, "dependencies": { - "makeerror": "1.0.12" + "clone-deep": "^4.0.1", + "wildcard": "^2.0.0" + }, + "engines": { + "node": ">=10.0.0" } }, - "node_modules/webapi-parser": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/webapi-parser/-/webapi-parser-0.5.0.tgz", - "integrity": "sha512-fPt6XuMqLSvBz8exwX4QE1UT+pROLHa00EMDCdO0ybICduwQ1V4f7AWX4pNOpCp+x+0FjczEsOxtQU0d8L3QKw==", - "dependencies": { - "ajv": "6.5.2" + "node_modules/webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true, + "engines": { + "node": ">=10.13.0" } }, - "node_modules/webapi-parser/node_modules/ajv": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.2.tgz", - "integrity": "sha512-hOs7GfvI6tUI1LfZddH82ky6mOMyTuY0mk7kE2pWpmhhUSkumzaTO5vbVwij39MdwPQWCV4Zv57Eo06NtL/GVA==", + "node_modules/webpack/node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, "dependencies": { - "fast-deep-equal": "^2.0.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.1" + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" } }, - "node_modules/webapi-parser/node_modules/fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w==" - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" + "node_modules/webpack/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } }, "node_modules/whatwg-url": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", + "license": "MIT", "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" @@ -17424,8 +17512,7 @@ }, "node_modules/which-boxed-primitive": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", + "license": "MIT", "dependencies": { "is-bigint": "^1.0.1", "is-boolean-object": "^1.1.0", @@ -17437,31 +17524,33 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/wildcard": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", + "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", + "dev": true + }, "node_modules/wolfy87-eventemitter": { "version": "5.2.9", - "resolved": "https://registry.npmjs.org/wolfy87-eventemitter/-/wolfy87-eventemitter-5.2.9.tgz", - "integrity": "sha512-P+6vtWyuDw+MB01X7UeF8TaHBvbCovf4HPEMF/SV7BdDc1SMTiBy13SRD71lQh4ExFTG1d/WNzDGDCyOKSMblw==" + "license": "Unlicense" }, "node_modules/word-wrap": { "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/wordwrap": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/wrap-ansi": { "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -17476,9 +17565,8 @@ }, "node_modules/wrap-ansi/node_modules/ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -17491,9 +17579,8 @@ }, "node_modules/wrap-ansi/node_modules/color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -17503,54 +17590,68 @@ }, "node_modules/wrap-ansi/node_modules/color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/wrappy": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "dev": true, + "license": "ISC" + }, + "node_modules/ws": { + "version": "8.8.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.8.1.tgz", + "integrity": "sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==", + "dev": true, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } }, "node_modules/xtend": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.4" } }, "node_modules/y18n": { "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true, + "license": "ISC", "engines": { "node": ">=10" } }, "node_modules/yallist": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/yaml": { "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", "dev": true, + "license": "ISC", "engines": { "node": ">= 6" } }, "node_modules/yargs": { "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "dev": true, + "license": "MIT", "dependencies": { "cliui": "^7.0.2", "escalade": "^3.1.1", @@ -17566,27 +17667,34 @@ }, "node_modules/yargs-parser": { "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "dev": true, + "license": "ISC", "engines": { "node": ">=10" } }, + "node_modules/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "dev": true, + "dependencies": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + }, "node_modules/yn": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/yocto-queue": { "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -17598,8 +17706,6 @@ "dependencies": { "@ampproject/remapping": { "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.1.2.tgz", - "integrity": "sha512-hoyByceqwKirw7w3Z7gnIIZC3Wx3J484Y3L/cMpXFbr7d9ZQj2mODrirNzcJa+SM3UlpWXYvKV4RlRpFXlWgXg==", "dev": true, "requires": { "@jridgewell/trace-mapping": "^0.3.0" @@ -17612,8 +17718,6 @@ }, "@babel/code-frame": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", - "integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==", "dev": true, "requires": { "@babel/highlight": "^7.16.7" @@ -17621,14 +17725,10 @@ }, "@babel/compat-data": { "version": "7.17.0", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.17.0.tgz", - "integrity": "sha512-392byTlpGWXMv4FbyWw3sAZ/FrW/DrwqLGXpy0mbyNe9Taqv1mg9yON5/o0cnr8XYCkFTZbC1eV+c+LAROgrng==", "dev": true }, "@babel/core": { "version": "7.17.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.17.5.tgz", - "integrity": "sha512-/BBMw4EvjmyquN5O+t5eh0+YqB3XXJkYD2cjKpYtWOfFy4lQ4UozNSmxAcWT8r2XtZs0ewG+zrfsqeR15i1ajA==", "dev": true, "requires": { "@ampproject/remapping": "^2.1.0", @@ -17650,16 +17750,12 @@ "dependencies": { "semver": { "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true } } }, "@babel/generator": { "version": "7.17.3", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.3.tgz", - "integrity": "sha512-+R6Dctil/MgUsZsZAkYgK+ADNSZzJRRy0TvY65T71z/CR854xHQ1EweBYXdfT+HNeN7w0cSJJEzgxZMv40pxsg==", "dev": true, "requires": { "@babel/types": "^7.17.0", @@ -17669,16 +17765,12 @@ "dependencies": { "source-map": { "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", "dev": true } } }, "@babel/helper-compilation-targets": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.7.tgz", - "integrity": "sha512-mGojBwIWcwGD6rfqgRXVlVYmPAv7eOpIemUG3dGnDdCY4Pae70ROij3XmfrH6Fa1h1aiDylpglbZyktfzyo/hA==", "dev": true, "requires": { "@babel/compat-data": "^7.16.4", @@ -17689,16 +17781,12 @@ "dependencies": { "semver": { "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true } } }, "@babel/helper-environment-visitor": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.16.7.tgz", - "integrity": "sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag==", "dev": true, "requires": { "@babel/types": "^7.16.7" @@ -17706,8 +17794,6 @@ }, "@babel/helper-function-name": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.16.7.tgz", - "integrity": "sha512-QfDfEnIUyyBSR3HtrtGECuZ6DAyCkYFp7GHl75vFtTnn6pjKeK0T1DB5lLkFvBea8MdaiUABx3osbgLyInoejA==", "dev": true, "requires": { "@babel/helper-get-function-arity": "^7.16.7", @@ -17717,8 +17803,6 @@ }, "@babel/helper-get-function-arity": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.16.7.tgz", - "integrity": "sha512-flc+RLSOBXzNzVhcLu6ujeHUrD6tANAOU5ojrRx/as+tbzf8+stUCj7+IfRRoAbEZqj/ahXEMsjhOhgeZsrnTw==", "dev": true, "requires": { "@babel/types": "^7.16.7" @@ -17726,8 +17810,6 @@ }, "@babel/helper-hoist-variables": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz", - "integrity": "sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==", "dev": true, "requires": { "@babel/types": "^7.16.7" @@ -17735,8 +17817,6 @@ }, "@babel/helper-module-imports": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz", - "integrity": "sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==", "dev": true, "requires": { "@babel/types": "^7.16.7" @@ -17744,8 +17824,6 @@ }, "@babel/helper-module-transforms": { "version": "7.17.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.17.6.tgz", - "integrity": "sha512-2ULmRdqoOMpdvkbT8jONrZML/XALfzxlb052bldftkicAUy8AxSCkD5trDPQcwHNmolcl7wP6ehNqMlyUw6AaA==", "dev": true, "requires": { "@babel/helper-environment-visitor": "^7.16.7", @@ -17760,14 +17838,10 @@ }, "@babel/helper-plugin-utils": { "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.19.0.tgz", - "integrity": "sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw==", "dev": true }, "@babel/helper-simple-access": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.16.7.tgz", - "integrity": "sha512-ZIzHVyoeLMvXMN/vok/a4LWRy8G2v205mNP0XOuf9XRLyX5/u9CnVulUtDgUTama3lT+bf/UqucuZjqiGuTS1g==", "dev": true, "requires": { "@babel/types": "^7.16.7" @@ -17775,8 +17849,6 @@ }, "@babel/helper-split-export-declaration": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz", - "integrity": "sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==", "dev": true, "requires": { "@babel/types": "^7.16.7" @@ -17784,20 +17856,14 @@ }, "@babel/helper-validator-identifier": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz", - "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==", "dev": true }, "@babel/helper-validator-option": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz", - "integrity": "sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ==", "dev": true }, "@babel/helpers": { "version": "7.17.2", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.17.2.tgz", - "integrity": "sha512-0Qu7RLR1dILozr/6M0xgj+DFPmi6Bnulgm9M8BVa9ZCWxDqlSnqt3cf8IDPB5m45sVXUZ0kuQAgUrdSFFH79fQ==", "dev": true, "requires": { "@babel/template": "^7.16.7", @@ -17807,8 +17873,6 @@ }, "@babel/highlight": { "version": "7.16.10", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.16.10.tgz", - "integrity": "sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfTBFxdw==", "dev": true, "requires": { "@babel/helper-validator-identifier": "^7.16.7", @@ -17818,14 +17882,10 @@ }, "@babel/parser": { "version": "7.17.3", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.17.3.tgz", - "integrity": "sha512-7yJPvPV+ESz2IUTPbOL+YkIGyCqOyNIzdguKQuJGnH7bg1WTIifuM21YqokFt/THWh1AkCRn9IgoykTRCBVpzA==", "dev": true }, "@babel/plugin-syntax-async-generators": { "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.8.0" @@ -17833,8 +17893,6 @@ }, "@babel/plugin-syntax-bigint": { "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", - "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.8.0" @@ -17842,8 +17900,6 @@ }, "@babel/plugin-syntax-class-properties": { "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.12.13" @@ -17851,8 +17907,6 @@ }, "@babel/plugin-syntax-import-meta": { "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.10.4" @@ -17860,8 +17914,6 @@ }, "@babel/plugin-syntax-json-strings": { "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.8.0" @@ -17869,8 +17921,6 @@ }, "@babel/plugin-syntax-jsx": { "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz", - "integrity": "sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.18.6" @@ -17878,8 +17928,6 @@ }, "@babel/plugin-syntax-logical-assignment-operators": { "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.10.4" @@ -17887,8 +17935,6 @@ }, "@babel/plugin-syntax-nullish-coalescing-operator": { "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.8.0" @@ -17896,8 +17942,6 @@ }, "@babel/plugin-syntax-numeric-separator": { "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.10.4" @@ -17905,8 +17949,6 @@ }, "@babel/plugin-syntax-object-rest-spread": { "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.8.0" @@ -17914,8 +17956,6 @@ }, "@babel/plugin-syntax-optional-catch-binding": { "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.8.0" @@ -17923,8 +17963,6 @@ }, "@babel/plugin-syntax-optional-chaining": { "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.8.0" @@ -17932,8 +17970,6 @@ }, "@babel/plugin-syntax-top-level-await": { "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.14.5" @@ -17941,8 +17977,6 @@ }, "@babel/plugin-syntax-typescript": { "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.18.6.tgz", - "integrity": "sha512-mAWAuq4rvOepWCBid55JuRNvpTNf2UGVgoz4JV0fXEKolsVZDzsa4NqCef758WZJj/GDu0gVGItjKFiClTAmZA==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.18.6" @@ -17950,8 +17984,6 @@ }, "@babel/runtime": { "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.19.0.tgz", - "integrity": "sha512-eR8Lo9hnDS7tqkO7NsV+mKvCmv5boaXFSZ70DnfhcgiEne8hv9oCEd36Klw74EtizEqLsy4YnW8UWwpBVolHZA==", "dev": true, "requires": { "regenerator-runtime": "^0.13.4" @@ -17959,8 +17991,6 @@ }, "@babel/runtime-corejs3": { "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.19.0.tgz", - "integrity": "sha512-JyXXoCu1N8GLuKc2ii8y5RGma5FMpFeO2nAQIe0Yzrbq+rQnN+sFj47auLblR5ka6aHNGPDgv8G/iI2Grb0ldQ==", "dev": true, "requires": { "core-js-pure": "^3.20.2", @@ -17969,8 +17999,6 @@ }, "@babel/template": { "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz", - "integrity": "sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==", "dev": true, "requires": { "@babel/code-frame": "^7.16.7", @@ -17980,8 +18008,6 @@ }, "@babel/traverse": { "version": "7.17.3", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.17.3.tgz", - "integrity": "sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw==", "dev": true, "requires": { "@babel/code-frame": "^7.16.7", @@ -17998,16 +18024,12 @@ "dependencies": { "globals": { "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", "dev": true } } }, "@babel/types": { "version": "7.17.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz", - "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==", "dev": true, "requires": { "@babel/helper-validator-identifier": "^7.16.7", @@ -18016,14 +18038,10 @@ }, "@bcoe/v8-coverage": { "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, "@cspotcode/source-map-support": { "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", "dev": true, "requires": { "@jridgewell/trace-mapping": "0.3.9" @@ -18031,8 +18049,6 @@ "dependencies": { "@jridgewell/trace-mapping": { "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", "dev": true, "requires": { "@jridgewell/resolve-uri": "^3.0.3", @@ -18041,10 +18057,14 @@ } } }, + "@discoveryjs/json-ext": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", + "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", + "dev": true + }, "@eslint/eslintrc": { "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.1.tgz", - "integrity": "sha512-OhSY22oQQdw3zgPOOwdoj01l/Dzl1Z+xyUP33tkSN+aqyEhymJCcPHyXt+ylW8FSe0TfRC2VG+ROQOapD0aZSQ==", "dev": true, "requires": { "ajv": "^6.12.4", @@ -18060,8 +18080,6 @@ "dependencies": { "ajv": { "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, "requires": { "fast-deep-equal": "^3.1.1", @@ -18072,16 +18090,12 @@ }, "strip-json-comments": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true } } }, "@humanwhocodes/config-array": { "version": "0.10.4", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.4.tgz", - "integrity": "sha512-mXAIHxZT3Vcpg83opl1wGlVZ9xydbfZO3r5YfRSH6Gpp2J/PfdBP0wbDa2sO6/qRbcalpoevVyW6A/fI6LfeMw==", "dev": true, "requires": { "@humanwhocodes/object-schema": "^1.2.1", @@ -18091,26 +18105,18 @@ }, "@humanwhocodes/gitignore-to-minimatch": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz", - "integrity": "sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA==", "dev": true }, "@humanwhocodes/module-importer": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", "dev": true }, "@humanwhocodes/object-schema": { "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", "dev": true }, "@istanbuljs/load-nyc-config": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", "dev": true, "requires": { "camelcase": "^5.3.1", @@ -18122,8 +18128,6 @@ "dependencies": { "find-up": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "requires": { "locate-path": "^5.0.0", @@ -18132,8 +18136,6 @@ }, "js-yaml": { "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, "requires": { "argparse": "^1.0.7", @@ -18142,8 +18144,6 @@ }, "locate-path": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, "requires": { "p-locate": "^4.1.0" @@ -18151,8 +18151,6 @@ }, "p-limit": { "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "requires": { "p-try": "^2.0.0" @@ -18160,8 +18158,6 @@ }, "p-locate": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, "requires": { "p-limit": "^2.2.0" @@ -18169,28 +18165,20 @@ }, "p-try": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true }, "path-exists": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true } } }, "@istanbuljs/schema": { "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true }, "@jest/console": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.0.2.tgz", - "integrity": "sha512-Fv02ijyhF4D/Wb3DvZO3iBJQz5DnzpJEIDBDbvje8Em099N889tNMUnBw7SalmSuOI+NflNG40RA1iK71kImPw==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -18203,8 +18191,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -18212,8 +18198,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -18222,8 +18206,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -18231,20 +18213,14 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -18257,8 +18233,6 @@ }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -18268,8 +18242,6 @@ }, "@jest/core": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.0.2.tgz", - "integrity": "sha512-imP5M6cdpHEOkmcuFYZuM5cTG1DAF7ZlVNCq1+F7kbqme2Jcl+Kh4M78hihM76DJHNkurbv4UVOnejGxBKEmww==", "dev": true, "requires": { "@jest/console": "^29.0.2", @@ -18304,8 +18276,6 @@ "dependencies": { "@jest/transform": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", - "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", "dev": true, "requires": { "@babel/core": "^7.11.6", @@ -18327,8 +18297,6 @@ }, "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -18336,8 +18304,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -18346,8 +18312,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -18355,20 +18319,14 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "jest-haste-map": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", - "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -18387,14 +18345,10 @@ }, "jest-regex-util": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", - "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true }, "jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -18407,8 +18361,6 @@ }, "jest-worker": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", - "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", "dev": true, "requires": { "@types/node": "*", @@ -18418,8 +18370,6 @@ "dependencies": { "supports-color": { "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -18429,8 +18379,6 @@ }, "pretty-format": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", - "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, "requires": { "@jest/schemas": "^29.0.0", @@ -18440,22 +18388,16 @@ "dependencies": { "ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true } } }, "react-is": { "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -18463,8 +18405,6 @@ }, "write-file-atomic": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, "requires": { "imurmurhash": "^0.1.4", @@ -18475,8 +18415,6 @@ }, "@jest/create-cache-key-function": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/create-cache-key-function/-/create-cache-key-function-27.5.1.tgz", - "integrity": "sha512-dmH1yW+makpTSURTy8VzdUwFnfQh1G8R+DxO2Ho2FFmBbKFEVm+3jWdvFhE2VqB/LATCTokkP0dotjyQyw5/AQ==", "dev": true, "requires": { "@jest/types": "^27.5.1" @@ -18484,8 +18422,6 @@ "dependencies": { "@jest/types": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", "dev": true, "requires": { "@types/istanbul-lib-coverage": "^2.0.0", @@ -18497,8 +18433,6 @@ }, "@types/yargs": { "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", "dev": true, "requires": { "@types/yargs-parser": "*" @@ -18506,8 +18440,6 @@ }, "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -18515,8 +18447,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -18525,8 +18455,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -18534,20 +18462,14 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -18557,8 +18479,6 @@ }, "@jest/environment": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.0.2.tgz", - "integrity": "sha512-Yf+EYaLOrVCgts/aTS5nGznU4prZUPa5k9S63Yct8YSOKj2jkdS17hHSUKhk5jxDFMyCy1PXknypDw7vfgc/mA==", "dev": true, "requires": { "@jest/fake-timers": "^29.0.2", @@ -18569,8 +18489,6 @@ }, "@jest/expect": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.0.2.tgz", - "integrity": "sha512-y/3geZ92p2/zovBm/F+ZjXUJ3thvT9IRzD6igqaWskFE2aR0idD+N/p5Lj/ZautEox/9RwEc6nqergebeh72uQ==", "dev": true, "requires": { "expect": "^29.0.2", @@ -18579,8 +18497,6 @@ }, "@jest/expect-utils": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.0.2.tgz", - "integrity": "sha512-+wcQF9khXKvAEi8VwROnCWWmHfsJYCZAs5dmuMlJBKk57S6ZN2/FQMIlo01F29fJyT8kV/xblE7g3vkIdTLOjw==", "dev": true, "requires": { "jest-get-type": "^29.0.0" @@ -18588,16 +18504,12 @@ "dependencies": { "jest-get-type": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", - "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true } } }, "@jest/fake-timers": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.0.2.tgz", - "integrity": "sha512-2JhQeWU28fvmM5r33lxg6BxxkTKaVXs6KMaJ6eXSM8ml/MaWkt2BvbIO8G9KWAJFMdBXWbn+2h9OK1/s5urKZA==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -18610,8 +18522,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -18619,8 +18529,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -18629,8 +18537,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -18638,20 +18544,14 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -18664,8 +18564,6 @@ }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -18675,8 +18573,6 @@ }, "@jest/globals": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.0.2.tgz", - "integrity": "sha512-4hcooSNJCVXuTu07/VJwCWW6HTnjLtQdqlcGisK6JST7z2ixa8emw4SkYsOk7j36WRc2ZUEydlUePnOIOTCNXg==", "dev": true, "requires": { "@jest/environment": "^29.0.2", @@ -18687,8 +18583,6 @@ }, "@jest/reporters": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.0.2.tgz", - "integrity": "sha512-Kr41qejRQHHkCgWHC9YwSe7D5xivqP4XML+PvgwsnRFaykKdNflDUb4+xLXySOU+O/bPkVdFpGzUpVNSJChCrw==", "dev": true, "requires": { "@bcoe/v8-coverage": "^0.2.3", @@ -18720,8 +18614,6 @@ "dependencies": { "@jest/transform": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", - "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", "dev": true, "requires": { "@babel/core": "^7.11.6", @@ -18743,8 +18635,6 @@ }, "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -18752,8 +18642,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -18762,8 +18650,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -18771,20 +18657,14 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "jest-haste-map": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", - "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -18803,14 +18683,10 @@ }, "jest-regex-util": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", - "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true }, "jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -18823,8 +18699,6 @@ }, "jest-worker": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", - "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", "dev": true, "requires": { "@types/node": "*", @@ -18834,8 +18708,6 @@ "dependencies": { "supports-color": { "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -18845,8 +18717,6 @@ }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -18854,8 +18724,6 @@ }, "write-file-atomic": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, "requires": { "imurmurhash": "^0.1.4", @@ -18866,8 +18734,6 @@ }, "@jest/schemas": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.0.0.tgz", - "integrity": "sha512-3Ab5HgYIIAnS0HjqJHQYZS+zXc4tUmTmBH3z83ajI6afXp8X3ZtdLX+nXx+I7LNkJD7uN9LAVhgnjDgZa2z0kA==", "dev": true, "requires": { "@sinclair/typebox": "^0.24.1" @@ -18875,8 +18741,6 @@ }, "@jest/source-map": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.0.0.tgz", - "integrity": "sha512-nOr+0EM8GiHf34mq2GcJyz/gYFyLQ2INDhAylrZJ9mMWoW21mLBfZa0BUVPPMxVYrLjeiRe2Z7kWXOGnS0TFhQ==", "dev": true, "requires": { "@jridgewell/trace-mapping": "^0.3.15", @@ -18886,8 +18750,6 @@ }, "@jest/test-result": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.0.2.tgz", - "integrity": "sha512-b5rDc0lLL6Kx73LyCx6370k9uZ8o5UKdCpMS6Za3ke7H9y8PtAU305y6TeghpBmf2In8p/qqi3GpftgzijSsNw==", "dev": true, "requires": { "@jest/console": "^29.0.2", @@ -18898,8 +18760,6 @@ }, "@jest/test-sequencer": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.0.2.tgz", - "integrity": "sha512-fsyZqHBlXNMv5ZqjQwCuYa2pskXCO0DVxh5aaVCuAtwzHuYEGrhordyEncBLQNuCGQSYgElrEEmS+7wwFnnMKw==", "dev": true, "requires": { "@jest/test-result": "^29.0.2", @@ -18910,8 +18770,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -18919,8 +18777,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -18929,8 +18785,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -18938,20 +18792,14 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "jest-haste-map": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", - "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -18970,14 +18818,10 @@ }, "jest-regex-util": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", - "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true }, "jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -18990,8 +18834,6 @@ }, "jest-worker": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", - "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", "dev": true, "requires": { "@types/node": "*", @@ -19001,8 +18843,6 @@ "dependencies": { "supports-color": { "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -19012,8 +18852,6 @@ }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -19023,8 +18861,6 @@ }, "@jest/types": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.0.2.tgz", - "integrity": "sha512-5WNMesBLmlkt1+fVkoCjHa0X3i3q8zc4QLTDkdHgCa2gyPZc7rdlZBWgVLqwS1860ZW5xJuCDwAzqbGaXIr/ew==", "dev": true, "requires": { "@jest/schemas": "^29.0.0", @@ -19037,8 +18873,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -19046,8 +18880,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -19056,8 +18888,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -19065,20 +18895,14 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -19086,22 +18910,43 @@ } } }, + "@jridgewell/gen-mapping": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", + "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", + "dev": true, + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, "@jridgewell/resolve-uri": { "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.0.5.tgz", - "integrity": "sha512-VPeQ7+wH0itvQxnG+lIzWgkysKIr3L9sslimFW55rHMdGu/qCQ5z5h9zq4gI8uBtqkpHhsF4Z/OwExufUCThew==", "dev": true }, + "@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true + }, + "@jridgewell/source-map": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz", + "integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==", + "dev": true, + "requires": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, "@jridgewell/sourcemap-codec": { "version": "1.4.11", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.11.tgz", - "integrity": "sha512-Fg32GrJo61m+VqYSdRSjRXMjQ06j8YIYfcTqndLYVAaHmroZHLJZCydsWBOTDqXS2v+mjxohBWEMfg97GXmYQg==", "dev": true }, "@jridgewell/trace-mapping": { "version": "0.3.15", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.15.tgz", - "integrity": "sha512-oWZNOULl+UbhsgB51uuZzglikfIKSUBO/M9W2OfEjn7cmqoAiCgmv9lyACTUacZwBz0ITnJ2NqjU8Tx0DHL88g==", "dev": true, "requires": { "@jridgewell/resolve-uri": "^3.0.3", @@ -19110,20 +18955,14 @@ }, "@jsep-plugin/regex": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.2.tgz", - "integrity": "sha512-Nn/Bcaww8zOebMDqNmGlhAWPWhIr/8S8lGIgaB/fSqev5xaO5uKy5i4qvTh63GpR+VzKqimgxDdcxdcRuCJXSw==", "requires": {} }, "@jsep-plugin/ternary": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.2.tgz", - "integrity": "sha512-gXguJc09uCrqWt1MD7L1+ChO32g4UH4BYGpHPoQRLhyU7pAPPRA7cvKbyjoqhnUlLutiXvLzB5hVVawPKax8jw==", "requires": {} }, "@nodelib/fs.scandir": { "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, "requires": { "@nodelib/fs.stat": "2.0.5", @@ -19132,14 +18971,10 @@ }, "@nodelib/fs.stat": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true }, "@nodelib/fs.walk": { "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, "requires": { "@nodelib/fs.scandir": "2.1.5", @@ -19148,8 +18983,6 @@ }, "@octokit/auth-token": { "version": "2.4.5", - "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.5.tgz", - "integrity": "sha512-BpGYsPgJt05M7/L/5FoE1PiAbdxXFZkX/3kDYcsvd1v6UhlnE5e96dTDr0ezX/EFwciQxf3cNV0loipsURU+WA==", "dev": true, "requires": { "@octokit/types": "^6.0.3" @@ -19157,8 +18990,6 @@ }, "@octokit/core": { "version": "3.4.0", - "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.4.0.tgz", - "integrity": "sha512-6/vlKPP8NF17cgYXqucdshWqmMZGXkuvtcrWCgU5NOI0Pl2GjlmZyWgBMrU8zJ3v2MJlM6++CiB45VKYmhiWWg==", "dev": true, "requires": { "@octokit/auth-token": "^2.4.4", @@ -19172,8 +19003,6 @@ }, "@octokit/endpoint": { "version": "6.0.11", - "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.11.tgz", - "integrity": "sha512-fUIPpx+pZyoLW4GCs3yMnlj2LfoXTWDUVPTC4V3MUEKZm48W+XYpeWSZCv+vYF1ZABUm2CqnDVf1sFtIYrj7KQ==", "dev": true, "requires": { "@octokit/types": "^6.0.3", @@ -19183,8 +19012,6 @@ }, "@octokit/graphql": { "version": "4.6.2", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.6.2.tgz", - "integrity": "sha512-WmsIR1OzOr/3IqfG9JIczI8gMJUMzzyx5j0XXQ4YihHtKlQc+u35VpVoOXhlKAlaBntvry1WpAzPl/a+s3n89Q==", "dev": true, "requires": { "@octokit/request": "^5.3.0", @@ -19194,14 +19021,10 @@ }, "@octokit/openapi-types": { "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-7.0.0.tgz", - "integrity": "sha512-gV/8DJhAL/04zjTI95a7FhQwS6jlEE0W/7xeYAzuArD0KVAVWDLP2f3vi98hs3HLTczxXdRK/mF0tRoQPpolEw==", "dev": true }, "@octokit/plugin-paginate-rest": { "version": "2.13.3", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.13.3.tgz", - "integrity": "sha512-46lptzM9lTeSmIBt/sVP/FLSTPGx6DCzAdSX3PfeJ3mTf4h9sGC26WpaQzMEq/Z44cOcmx8VsOhO+uEgE3cjYg==", "dev": true, "requires": { "@octokit/types": "^6.11.0" @@ -19209,15 +19032,11 @@ }, "@octokit/plugin-request-log": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.3.tgz", - "integrity": "sha512-4RFU4li238jMJAzLgAwkBAw+4Loile5haQMQr+uhFq27BmyJXcXSKvoQKqh0agsZEiUlW6iSv3FAgvmGkur7OQ==", "dev": true, "requires": {} }, "@octokit/plugin-rest-endpoint-methods": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.0.1.tgz", - "integrity": "sha512-vvWbPtPqLyIzJ7A4IPdTl+8IeuKAwMJ4LjvmqWOOdfSuqWQYZXq2CEd0hsnkidff2YfKlguzujHs/reBdAx8Sg==", "dev": true, "requires": { "@octokit/types": "^6.13.1", @@ -19226,8 +19045,6 @@ }, "@octokit/request": { "version": "5.4.15", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.4.15.tgz", - "integrity": "sha512-6UnZfZzLwNhdLRreOtTkT9n57ZwulCve8q3IT/Z477vThu6snfdkBuhxnChpOKNGxcQ71ow561Qoa6uqLdPtag==", "dev": true, "requires": { "@octokit/endpoint": "^6.0.1", @@ -19240,8 +19057,6 @@ }, "@octokit/request-error": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.0.5.tgz", - "integrity": "sha512-T/2wcCFyM7SkXzNoyVNWjyVlUwBvW3igM3Btr/eKYiPmucXTtkxt2RBsf6gn3LTzaLSLTQtNmvg+dGsOxQrjZg==", "dev": true, "requires": { "@octokit/types": "^6.0.3", @@ -19251,8 +19066,6 @@ }, "@octokit/rest": { "version": "18.5.3", - "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-18.5.3.tgz", - "integrity": "sha512-KPAsUCr1DOdLVbZJgGNuE/QVLWEaVBpFQwDAz/2Cnya6uW2wJ/P5RVGk0itx7yyN1aGa8uXm2pri4umEqG1JBA==", "dev": true, "requires": { "@octokit/core": "^3.2.3", @@ -19263,8 +19076,6 @@ }, "@octokit/types": { "version": "6.14.2", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.14.2.tgz", - "integrity": "sha512-wiQtW9ZSy4OvgQ09iQOdyXYNN60GqjCL/UdMsepDr1Gr0QzpW6irIKbH3REuAHXAhxkEk9/F2a3Gcs1P6kW5jA==", "dev": true, "requires": { "@octokit/openapi-types": "^7.0.0" @@ -19272,16 +19083,18 @@ }, "@openapi-contrib/openapi-schema-to-json-schema": { "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@openapi-contrib/openapi-schema-to-json-schema/-/openapi-schema-to-json-schema-3.2.0.tgz", - "integrity": "sha512-Gj6C0JwCr8arj0sYuslWXUBSP/KnUlEGnPW4qxlXvAl543oaNQgMgIgkQUA6vs5BCCvwTEiL8m/wdWzfl4UvSw==", "requires": { "fast-deep-equal": "^3.1.3" } }, + "@polka/url": { + "version": "1.0.0-next.21", + "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz", + "integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==", + "dev": true + }, "@semantic-release/commit-analyzer": { "version": "8.0.1", - "resolved": "https://registry.npmjs.org/@semantic-release/commit-analyzer/-/commit-analyzer-8.0.1.tgz", - "integrity": "sha512-5bJma/oB7B4MtwUkZC2Bf7O1MHfi4gWe4mA+MIQ3lsEV0b422Bvl1z5HRpplDnMLHH3EXMoRdEng6Ds5wUqA3A==", "dev": true, "requires": { "conventional-changelog-angular": "^5.0.0", @@ -19295,14 +19108,10 @@ }, "@semantic-release/error": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@semantic-release/error/-/error-2.2.0.tgz", - "integrity": "sha512-9Tj/qn+y2j+sjCI3Jd+qseGtHjOAeg7dU2/lVcqIQ9TV3QDaDXDYXcoOHU+7o2Hwh8L8ymL4gfuO7KxDs3q2zg==", "dev": true }, "@semantic-release/github": { "version": "7.2.3", - "resolved": "https://registry.npmjs.org/@semantic-release/github/-/github-7.2.3.tgz", - "integrity": "sha512-lWjIVDLal+EQBzy697ayUNN8MoBpp+jYIyW2luOdqn5XBH4d9bQGfTnjuLyzARZBHejqh932HVjiH/j4+R7VHw==", "dev": true, "requires": { "@octokit/rest": "^18.0.0", @@ -19325,8 +19134,6 @@ "dependencies": { "fs-extra": { "version": "10.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz", - "integrity": "sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==", "dev": true, "requires": { "graceful-fs": "^4.2.0", @@ -19336,16 +19143,12 @@ }, "universalify": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", "dev": true } } }, "@semantic-release/npm": { "version": "7.0.5", - "resolved": "https://registry.npmjs.org/@semantic-release/npm/-/npm-7.0.5.tgz", - "integrity": "sha512-D+oEmsx9aHE1q806NFQwSC9KdBO8ri/VO99eEz0wWbX2jyLqVyWr7t0IjKC8aSnkkQswg/4KN/ZjfF6iz1XOpw==", "dev": true, "requires": { "@semantic-release/error": "^2.2.0", @@ -19365,8 +19168,6 @@ "dependencies": { "execa": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-4.0.0.tgz", - "integrity": "sha512-JbDUxwV3BoT5ZVXQrSVbAiaXhXUkIwvbhPIwZ0N13kX+5yCzOhUNdocxB/UQRuYOHRYYwAxKYwJYc0T4D12pDA==", "dev": true, "requires": { "cross-spawn": "^7.0.0", @@ -19382,8 +19183,6 @@ }, "get-stream": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", - "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", "dev": true, "requires": { "pump": "^3.0.0" @@ -19391,16 +19190,12 @@ }, "semver": { "version": "7.3.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", - "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", "dev": true } } }, "@semantic-release/release-notes-generator": { "version": "9.0.1", - "resolved": "https://registry.npmjs.org/@semantic-release/release-notes-generator/-/release-notes-generator-9.0.1.tgz", - "integrity": "sha512-bOoTiH6SiiR0x2uywSNR7uZcRDl22IpZhj+Q5Bn0v+98MFtOMhCxFhbrKQjhbYoZw7vps1mvMRmFkp/g6R9cvQ==", "dev": true, "requires": { "conventional-changelog-angular": "^5.0.0", @@ -19417,8 +19212,6 @@ "dependencies": { "get-stream": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", - "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", "dev": true, "requires": { "pump": "^3.0.0" @@ -19428,14 +19221,10 @@ }, "@sinclair/typebox": { "version": "0.24.35", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.35.tgz", - "integrity": "sha512-iN6ehuDndiTiDz2F+Orv/+oHJR+PrGv+38oghCddpsW4YEZl5qyLsWxSwYUWrKEOfjpGtXDFW6scJtjpzSLeSw==", "dev": true }, "@sinonjs/commons": { "version": "1.8.3", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.3.tgz", - "integrity": "sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ==", "dev": true, "requires": { "type-detect": "4.0.8" @@ -19443,8 +19232,6 @@ }, "@sinonjs/fake-timers": { "version": "9.1.2", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-9.1.2.tgz", - "integrity": "sha512-BPS4ynJW/o92PUR4wgriz2Ud5gpST5vz6GQfMixEDK0Z8ZCUv2M7SkBLykH56T++Xs+8ln9zTGbOvNGIe02/jw==", "dev": true, "requires": { "@sinonjs/commons": "^1.7.0" @@ -19452,8 +19239,6 @@ }, "@stoplight/better-ajv-errors": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.3.tgz", - "integrity": "sha512-0p9uXkuB22qGdNfy3VeEhxkU5uwvp/KrBTAbrLBURv6ilxIVwanKwjMc41lQfIVgPGcOkmLbTolfFrSsueu7zA==", "requires": { "jsonpointer": "^5.0.0", "leven": "^3.1.0" @@ -19461,8 +19246,6 @@ }, "@stoplight/json": { "version": "3.20.1", - "resolved": "https://registry.npmjs.org/@stoplight/json/-/json-3.20.1.tgz", - "integrity": "sha512-FXfud+uWgIj1xv6nUO9WnmgmnVikaxJcbtR4XQt4C42n5c2qua3U05Z/3B57hP5TJRSj+tpn9ID6/bFeyYYlEg==", "requires": { "@stoplight/ordered-object-literal": "^1.0.3", "@stoplight/path": "^1.3.2", @@ -19474,8 +19257,6 @@ "dependencies": { "@stoplight/types": { "version": "13.6.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", - "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", "requires": { "@types/json-schema": "^7.0.4", "utility-types": "^3.10.0" @@ -19485,24 +19266,18 @@ }, "@stoplight/json-ref-readers": { "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@stoplight/json-ref-readers/-/json-ref-readers-1.2.2.tgz", - "integrity": "sha512-nty0tHUq2f1IKuFYsLM4CXLZGHdMn+X/IwEUIpeSOXt0QjMUbL0Em57iJUDzz+2MkWG83smIigNZ3fauGjqgdQ==", "requires": { "node-fetch": "^2.6.0", "tslib": "^1.14.1" }, "dependencies": { "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + "version": "1.14.1" } } }, "@stoplight/json-ref-resolver": { "version": "3.1.3", - "resolved": "https://registry.npmjs.org/@stoplight/json-ref-resolver/-/json-ref-resolver-3.1.3.tgz", - "integrity": "sha512-SgoKXwVnlpIZUyAFX4W79eeuTWvXmNlMfICZixL16GZXnkjcW+uZnfmAU0ZIjcnaTgaI4mjfxn8LAP2KR6Cr0A==", "requires": { "@stoplight/json": "^3.17.0", "@stoplight/path": "^1.3.2", @@ -19519,26 +19294,18 @@ }, "@stoplight/lifecycle": { "version": "2.3.2", - "resolved": "https://registry.npmjs.org/@stoplight/lifecycle/-/lifecycle-2.3.2.tgz", - "integrity": "sha512-v0u8p27FA/eg04b4z6QXw4s0NeeFcRzyvseBW0+k/q4jtpg7EhVCqy42EbbbU43NTNDpIeQ81OcvkFz+6CYshw==", "requires": { "wolfy87-eventemitter": "~5.2.8" } }, "@stoplight/ordered-object-literal": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@stoplight/ordered-object-literal/-/ordered-object-literal-1.0.3.tgz", - "integrity": "sha512-cjJ7PPkhgTXNMTkevAlmyrx9xOOCaI3c6rEeYb6VitL1o1WcZtrz9KyFyISmTmUa7yYTiy2IS/ud9S8s2sn3+A==" + "version": "1.0.3" }, "@stoplight/path": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@stoplight/path/-/path-1.3.2.tgz", - "integrity": "sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ==" + "version": "1.3.2" }, "@stoplight/spectral-core": { "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.14.1.tgz", - "integrity": "sha512-UMPfkrDqIMiAoZuVx4QiVV3D5fssfhDQ6R36qTP3x0hZFOeVDIFIcVdKV8lgmvsbpKaOgU/AD/2s4jScyTIqoA==", "requires": { "@stoplight/better-ajv-errors": "1.0.3", "@stoplight/json": "~3.20.1", @@ -19567,8 +19334,6 @@ "dependencies": { "@stoplight/types": { "version": "13.6.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", - "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", "requires": { "@types/json-schema": "^7.0.4", "utility-types": "^3.10.0" @@ -19576,21 +19341,15 @@ }, "ajv-errors": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", - "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", "requires": {} }, "jsonpath-plus": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.1.0.tgz", - "integrity": "sha512-gTaNRsPWO/K2KY6MrqaUFClF9kmuM6MFH5Dhg1VYDODgFbByw1yb7xu3hrViE/sz+dGOeMWgCzwUwQtAnCTE9g==" + "version": "7.1.0" } } }, "@stoplight/spectral-formats": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.2.0.tgz", - "integrity": "sha512-idvn7r8fvQjY/KeJpKgXQ5eJhce6N6/KoKWMPSh5yyvYDpn+bkU4pxAD79jOJaDnIyKJd1jjTPEJWnxbS0jj6A==", "requires": { "@stoplight/json": "^3.17.0", "@stoplight/spectral-core": "^1.8.0", @@ -19600,8 +19359,6 @@ }, "@stoplight/spectral-functions": { "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-functions/-/spectral-functions-1.7.1.tgz", - "integrity": "sha512-UWeUrxc1pu45ZNYKtK3OloMpkUNTPqwpmjbGUn4oEnbqrLEYu/B2oOg66EtGcadOBEsdOb7f5vaPlhUNNrpEpQ==", "requires": { "@stoplight/better-ajv-errors": "1.0.3", "@stoplight/json": "^3.17.1", @@ -19618,22 +19375,16 @@ "dependencies": { "ajv-draft-04": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", - "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", "requires": {} }, "ajv-errors": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-3.0.0.tgz", - "integrity": "sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==", "requires": {} } } }, "@stoplight/spectral-parsers": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-parsers/-/spectral-parsers-1.0.2.tgz", - "integrity": "sha512-ZQXknJ+BM5Re4Opj4cgVlHgG2qyOk/wznKJq3Vf1qsBEg2CNzN0pJmSB0deRqW0kArqm44qpb8c+cz3F2rgMtw==", "requires": { "@stoplight/json": "~3.20.1", "@stoplight/types": "^13.6.0", @@ -19643,8 +19394,6 @@ "dependencies": { "@stoplight/types": { "version": "13.6.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", - "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", "requires": { "@types/json-schema": "^7.0.4", "utility-types": "^3.10.0" @@ -19654,8 +19403,6 @@ }, "@stoplight/spectral-ref-resolver": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-ref-resolver/-/spectral-ref-resolver-1.0.1.tgz", - "integrity": "sha512-0tY7nTOccvTsa3c4QbSWfJ8wGfPO1RXvmKnmBjuyLfoTMNuhkHPII9gKhCjygsshzsBLxs2IyRHZYhWYVnEbCA==", "requires": { "@stoplight/json-ref-readers": "1.2.2", "@stoplight/json-ref-resolver": "3.1.3", @@ -19666,8 +19413,6 @@ }, "@stoplight/spectral-rulesets": { "version": "1.12.0", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-rulesets/-/spectral-rulesets-1.12.0.tgz", - "integrity": "sha512-ktSO5YPzYzscnGTQffyKJwrzsR2i5cpPUC4yBp0isc6mOeiVec4r9sjMUN1mJt0RVnXi509vd0+YlMthFIZYnw==", "requires": { "@asyncapi/specs": "^2.14.0", "@stoplight/better-ajv-errors": "1.0.3", @@ -19686,30 +19431,22 @@ }, "dependencies": { "@asyncapi/specs": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-2.14.0.tgz", - "integrity": "sha512-hHsYF6XsYNIKb1P2rXaooF4H+uKKQ4b/Ljxrk3rZ3riEDiSxMshMEfb1fUlw9Yj4V4OmJhjXwkNvw8W59AXv1A==" + "version": "2.14.0" }, "@stoplight/types": { "version": "13.6.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", - "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", "requires": { "@types/json-schema": "^7.0.4", "utility-types": "^3.10.0" } }, "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + "version": "1.0.0" } } }, "@stoplight/spectral-runtime": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-runtime/-/spectral-runtime-1.1.2.tgz", - "integrity": "sha512-fr5zRceXI+hrl82yAVoME+4GvJie8v3wmOe9tU+ZLRRNonizthy8qDi0Z/z4olE+vGreSDcuDOZ7JjRxFW5kTw==", "requires": { "@stoplight/json": "^3.17.0", "@stoplight/path": "^1.3.2", @@ -19722,8 +19459,6 @@ }, "@stoplight/types": { "version": "12.3.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-12.3.0.tgz", - "integrity": "sha512-hgzUR1z5BlYvIzUeFK5pjs5JXSvEutA9Pww31+dVicBlunsG1iXopDx/cvfBY7rHOrgtZDuvyeK4seqkwAZ6Cg==", "requires": { "@types/json-schema": "^7.0.4", "utility-types": "^3.10.0" @@ -19731,8 +19466,6 @@ }, "@stoplight/yaml": { "version": "4.2.3", - "resolved": "https://registry.npmjs.org/@stoplight/yaml/-/yaml-4.2.3.tgz", - "integrity": "sha512-Mx01wjRAR9C7yLMUyYFTfbUf5DimEpHMkRDQ1PKLe9dfNILbgdxyrncsOXM3vCpsQ1Hfj4bPiGl+u4u6e9Akqw==", "requires": { "@stoplight/ordered-object-literal": "^1.0.1", "@stoplight/types": "^13.0.0", @@ -19742,8 +19475,6 @@ "dependencies": { "@stoplight/types": { "version": "13.6.0", - "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", - "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", "requires": { "@types/json-schema": "^7.0.4", "utility-types": "^3.10.0" @@ -19752,14 +19483,10 @@ } }, "@stoplight/yaml-ast-parser": { - "version": "0.0.48", - "resolved": "https://registry.npmjs.org/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.48.tgz", - "integrity": "sha512-sV+51I7WYnLJnKPn2EMWgS4EUfoP4iWEbrWwbXsj0MZCB/xOK8j6+C9fntIdOM50kpx45ZLC3s6kwKivWuqvyg==" + "version": "0.0.48" }, "@swc/core": { "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.2.248.tgz", - "integrity": "sha512-/HQJT2BIT5fkf6I6vK5fS5SKf34QedBQQNf0A38xRIAFhQjLBVWECRFySqKijaFoIzRv9Ic4DI6XwusBNfPUyA==", "dev": true, "requires": { "@swc/core-android-arm-eabi": "1.2.248", @@ -19777,210 +19504,40 @@ "@swc/core-win32-x64-msvc": "1.2.248" } }, - "@swc/core-android-arm-eabi": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-android-arm-eabi/-/core-android-arm-eabi-1.2.248.tgz", - "integrity": "sha512-+n4fyGnGWnhV/GanN99N5FkgCF0JdJVViecsA0eAEXF35+qZ0PO3YgDx3EfBXA35utddXZwskZ9q71cjSPv4Rg==", - "dev": true, - "optional": true, - "requires": { - "@swc/wasm": "1.2.122" - } - }, - "@swc/core-android-arm64": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-android-arm64/-/core-android-arm64-1.2.248.tgz", - "integrity": "sha512-/eXNTuWpAiJsP/DkO2hr4B+a6oS605sRq6Y2ry7sc+7bS8jkDloryD3Lkyv6h1RgRrv33uRCt0+JLN+odeeBSA==", - "dev": true, - "optional": true, - "requires": { - "@swc/wasm": "1.2.130" - }, - "dependencies": { - "@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", - "dev": true, - "optional": true - } - } - }, - "@swc/core-darwin-arm64": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.2.248.tgz", - "integrity": "sha512-rd9UwNuFhMk4WxoFmba2HKNrPevh8p/syEtjThyQ+kcMLU1D5yA3WwYEyPvnLgytlkJvsUIjVjV15i8lNSU0TQ==", - "dev": true, - "optional": true - }, "@swc/core-darwin-x64": { "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.2.248.tgz", - "integrity": "sha512-ouexUd719FZ4CEGl2HDZEGJV4nAhcRJ6BUMO0IOxK0MRJEDvqTiW98nSqTbOz22GHTy9Z0n5vkc5nOkuDfTJTQ==", - "dev": true, - "optional": true - }, - "@swc/core-freebsd-x64": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-freebsd-x64/-/core-freebsd-x64-1.2.248.tgz", - "integrity": "sha512-rV4h0dGqz9x5xRGGRXKQ5MzAep90PkjLIXIcPG16M8pJQFNhS6Ebslxvh//6GIvTONE9VU/86CHWJ8FJHedUPA==", - "dev": true, - "optional": true, - "requires": { - "@swc/wasm": "1.2.130" - }, - "dependencies": { - "@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", - "dev": true, - "optional": true - } - } - }, - "@swc/core-linux-arm-gnueabihf": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.2.248.tgz", - "integrity": "sha512-8ZOPx9+tuLQ86cvFd3+FVBsodxFWvczJRzfLamxScEGywMsQ+Jz6vMEXAo0AbSjNjJG01DXeiVkqqyCD3Rpmug==", - "dev": true, - "optional": true, - "requires": { - "@swc/wasm": "1.2.130" - }, - "dependencies": { - "@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", - "dev": true, - "optional": true - } - } - }, - "@swc/core-linux-arm64-gnu": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.2.248.tgz", - "integrity": "sha512-drJgH/s9p+4DMw7E6RxNSwj9M/0o0DWfTgO11D/afSTIR9hZfZSjC1cjpGS93jnW52H6iMWPHhcTOidHtvmVPg==", - "dev": true, - "optional": true - }, - "@swc/core-linux-arm64-musl": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.2.248.tgz", - "integrity": "sha512-qhntKjnAtpbHyOVJPX/LQdOdngATFXiBc8S7f5hrkn6AdK3WmojUapZbiy+0YRYxjoRrMWy/ubY8J2JWyHKeZg==", - "dev": true, - "optional": true - }, - "@swc/core-linux-x64-gnu": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.2.248.tgz", - "integrity": "sha512-NcWuAuWg0N7/KXOk2JtYG4crFqhWrFV2d9shDr5PLm9bAbgSebqxGjAluQbTQjGM+ABpZ3PO4IuaCfyui3abqQ==", - "dev": true, - "optional": true - }, - "@swc/core-linux-x64-musl": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.2.248.tgz", - "integrity": "sha512-E9bog6QK3DSGcK7UdpgsPVeDDCRv/SqoFOEYRYuDEOVgNkpte37pj1IdQCmN0gDHyyvuJxQ9+Knr9282DUJmQg==", - "dev": true, - "optional": true - }, - "@swc/core-win32-arm64-msvc": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.2.248.tgz", - "integrity": "sha512-dzAFIo5gN0hJGdC9Ikzx+gtqhePpKN2brpK0hQLlEL/+ruClxTjGxOpPO9cSHR771uO62hgNn1lN0Vhx37gQMA==", - "dev": true, - "optional": true, - "requires": { - "@swc/wasm": "1.2.130" - }, - "dependencies": { - "@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", - "dev": true, - "optional": true - } - } - }, - "@swc/core-win32-ia32-msvc": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.2.248.tgz", - "integrity": "sha512-TjyHVop+4+hHVziyoUpQ7mBrgGShvbcFF0f+5mVzKzBJSjbKPsZEtu5qMi12r03g+4fCCHaq1QnWeq1uhke0rQ==", - "dev": true, - "optional": true, - "requires": { - "@swc/wasm": "1.2.130" - }, - "dependencies": { - "@swc/wasm": { - "version": "1.2.130", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.130.tgz", - "integrity": "sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==", - "dev": true, - "optional": true - } - } - }, - "@swc/core-win32-x64-msvc": { - "version": "1.2.248", - "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.2.248.tgz", - "integrity": "sha512-XODvZBfUSoUdj0RqUyOkBD7HydE5vSDvcYSVLCmLWsgEDPJhUWiOZHoXMEvoTu5/BDNezUZn58DlKozCzWZQsQ==", "dev": true, "optional": true }, "@swc/jest": { "version": "0.2.22", - "resolved": "https://registry.npmjs.org/@swc/jest/-/jest-0.2.22.tgz", - "integrity": "sha512-PIUIk9IdB1oAVfF9zNIfYoMBoEhahrrSvyryFANas7swC1cF0L5HR0f9X4qfet46oyCHCBtNcSpN0XJEOFIKlw==", "dev": true, "requires": { "@jest/create-cache-key-function": "^27.4.2" } }, - "@swc/wasm": { - "version": "1.2.122", - "resolved": "https://registry.npmjs.org/@swc/wasm/-/wasm-1.2.122.tgz", - "integrity": "sha512-sM1VCWQxmNhFtdxME+8UXNyPNhxNu7zdb6ikWpz0YKAQQFRGT5ThZgJrubEpah335SUToNg8pkdDF7ibVCjxbQ==", - "dev": true, - "optional": true - }, "@tootallnate/once": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", - "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", "dev": true }, "@tsconfig/node10": { "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", - "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", "dev": true }, "@tsconfig/node12": { "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", "dev": true }, "@tsconfig/node14": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", "dev": true }, "@tsconfig/node16": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", - "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", "dev": true }, "@types/babel__core": { "version": "7.1.18", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.18.tgz", - "integrity": "sha512-S7unDjm/C7z2A2R9NzfKCK1I+BAALDtxEmsJBwlB3EzNfb929ykjL++1CK9LO++EIp2fQrC8O+BwjKvz6UeDyQ==", "dev": true, "requires": { "@babel/parser": "^7.1.0", @@ -19992,8 +19549,6 @@ }, "@types/babel__generator": { "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", - "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", "dev": true, "requires": { "@babel/types": "^7.0.0" @@ -20001,8 +19556,6 @@ }, "@types/babel__template": { "version": "7.4.1", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", - "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", "dev": true, "requires": { "@babel/parser": "^7.1.0", @@ -20011,8 +19564,6 @@ }, "@types/babel__traverse": { "version": "7.14.2", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.14.2.tgz", - "integrity": "sha512-K2waXdXBi2302XUdcHcR1jCeU0LL4TD9HRs/gk0N2Xvrht+G/BfJa4QObBQZfhMdxiCpV3COl5Nfq4uKTeTnJA==", "dev": true, "requires": { "@babel/types": "^7.3.0" @@ -20020,16 +19571,38 @@ }, "@types/es-aggregate-error": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@types/es-aggregate-error/-/es-aggregate-error-1.0.2.tgz", - "integrity": "sha512-erqUpFXksaeR2kejKnhnjZjbFxUpGZx4Z7ydNL9ie8tEhXPiZTsLeUDJ6aR1F8j5wWUAtOAQWUqkc7givBJbBA==", "requires": { "@types/node": "*" } }, + "@types/eslint": { + "version": "8.4.6", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.6.tgz", + "integrity": "sha512-/fqTbjxyFUaYNO7VcW5g+4npmqVACz1bB7RTHYuLj+PRjw9hrCwrUXVQFpChUS0JsyEFvMZ7U/PfmvWgxJhI9g==", + "dev": true, + "requires": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "@types/eslint-scope": { + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz", + "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==", + "dev": true, + "requires": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "@types/estree": { + "version": "0.0.51", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.51.tgz", + "integrity": "sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==", + "dev": true + }, "@types/graceful-fs": { "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz", - "integrity": "sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==", "dev": true, "requires": { "@types/node": "*" @@ -20037,14 +19610,10 @@ }, "@types/istanbul-lib-coverage": { "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", - "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", "dev": true }, "@types/istanbul-lib-report": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", "dev": true, "requires": { "@types/istanbul-lib-coverage": "*" @@ -20052,8 +19621,6 @@ }, "@types/istanbul-reports": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", "dev": true, "requires": { "@types/istanbul-lib-report": "*" @@ -20061,8 +19628,6 @@ }, "@types/jest": { "version": "27.4.1", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.4.1.tgz", - "integrity": "sha512-23iPJADSmicDVrWk+HT58LMJtzLAnB2AgIzplQuq/bSrGaxCrlvRFjGbXmamnnk/mAmCdLStiGqggu28ocUyiw==", "dev": true, "requires": { "jest-matcher-utils": "^27.0.0", @@ -20071,77 +19636,51 @@ }, "@types/js-yaml": { "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz", - "integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==", "dev": true }, "@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" + "version": "7.0.11" }, "@types/json5": { "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", "dev": true }, "@types/lodash": { "version": "4.14.179", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.179.tgz", - "integrity": "sha512-uwc1x90yCKqGcIOAT6DwOSuxnrAbpkdPsUOZtwrXb4D/6wZs+6qG7QnIawDuZWg0sWpxl+ltIKCaLoMlna678w==", "dev": true }, "@types/minimist": { "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz", - "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==", "dev": true }, "@types/node": { - "version": "17.0.21", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.21.tgz", - "integrity": "sha512-DBZCJbhII3r90XbQxI8Y9IjjiiOGlZ0Hr32omXIZvwwZ7p4DMMXGrKXVyPfuoBOri9XNtL0UK69jYIBIsRX3QQ==" + "version": "17.0.21" }, "@types/normalize-package-data": { "version": "2.4.0", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", - "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", "dev": true }, "@types/parse-json": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", "dev": true }, "@types/prettier": { "version": "2.7.0", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.0.tgz", - "integrity": "sha512-RI1L7N4JnW5gQw2spvL7Sllfuf1SaHdrZpCHiBlCXjIlufi1SMNnbu2teze3/QE67Fg2tBlH7W+mi4hVNk4p0A==", "dev": true }, "@types/retry": { "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", - "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", "dev": true }, "@types/stack-utils": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", "dev": true }, "@types/urijs": { - "version": "1.19.19", - "resolved": "https://registry.npmjs.org/@types/urijs/-/urijs-1.19.19.tgz", - "integrity": "sha512-FDJNkyhmKLw7uEvTxx5tSXfPeQpO0iy73Ry+PmYZJvQy0QIWX8a7kJ4kLWRf+EbTPJEPDSgPXHaM7pzr5lmvCg==" + "version": "1.19.19" }, "@types/yargs": { "version": "17.0.12", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.12.tgz", - "integrity": "sha512-Nz4MPhecOFArtm81gFQvQqdV7XYCrWKx5uUt6GNHredFHn1i2mtWqXTON7EPXMtNi1qjtjEM/VCHDhcHsAMLXQ==", "dev": true, "requires": { "@types/yargs-parser": "*" @@ -20149,14 +19688,20 @@ }, "@types/yargs-parser": { "version": "21.0.0", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", - "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", "dev": true }, + "@types/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==", + "dev": true, + "optional": true, + "requires": { + "@types/node": "*" + } + }, "@typescript-eslint/eslint-plugin": { "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.36.2.tgz", - "integrity": "sha512-OwwR8LRwSnI98tdc2z7mJYgY60gf7I9ZfGjN5EjCwwns9bdTuQfAXcsjSB2wSQ/TVNYSGKf4kzVXbNGaZvwiXw==", "dev": true, "requires": { "@typescript-eslint/scope-manager": "5.36.2", @@ -20172,8 +19717,6 @@ "dependencies": { "semver": { "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -20183,8 +19726,6 @@ }, "@typescript-eslint/parser": { "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.36.2.tgz", - "integrity": "sha512-qS/Kb0yzy8sR0idFspI9Z6+t7mqk/oRjnAYfewG+VN73opAUvmYL3oPIMmgOX6CnQS6gmVIXGshlb5RY/R22pA==", "dev": true, "requires": { "@typescript-eslint/scope-manager": "5.36.2", @@ -20195,8 +19736,6 @@ }, "@typescript-eslint/scope-manager": { "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.36.2.tgz", - "integrity": "sha512-cNNP51L8SkIFSfce8B1NSUBTJTu2Ts4nWeWbFrdaqjmn9yKrAaJUBHkyTZc0cL06OFHpb+JZq5AUHROS398Orw==", "dev": true, "requires": { "@typescript-eslint/types": "5.36.2", @@ -20205,8 +19744,6 @@ }, "@typescript-eslint/type-utils": { "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.36.2.tgz", - "integrity": "sha512-rPQtS5rfijUWLouhy6UmyNquKDPhQjKsaKH0WnY6hl/07lasj8gPaH2UD8xWkePn6SC+jW2i9c2DZVDnL+Dokw==", "dev": true, "requires": { "@typescript-eslint/typescript-estree": "5.36.2", @@ -20217,14 +19754,10 @@ }, "@typescript-eslint/types": { "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.36.2.tgz", - "integrity": "sha512-9OJSvvwuF1L5eS2EQgFUbECb99F0mwq501w0H0EkYULkhFa19Qq7WFbycdw1PexAc929asupbZcgjVIe6OK/XQ==", "dev": true }, "@typescript-eslint/typescript-estree": { "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.36.2.tgz", - "integrity": "sha512-8fyH+RfbKc0mTspfuEjlfqA4YywcwQK2Amcf6TDOwaRLg7Vwdu4bZzyvBZp4bjt1RRjQ5MDnOZahxMrt2l5v9w==", "dev": true, "requires": { "@typescript-eslint/types": "5.36.2", @@ -20238,8 +19771,6 @@ "dependencies": { "semver": { "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -20249,8 +19780,6 @@ }, "@typescript-eslint/utils": { "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.36.2.tgz", - "integrity": "sha512-uNcopWonEITX96v9pefk9DC1bWMdkweeSsewJ6GeC7L6j2t0SJywisgkr9wUTtXk90fi2Eljj90HSHm3OGdGRg==", "dev": true, "requires": { "@types/json-schema": "^7.0.9", @@ -20263,8 +19792,6 @@ "dependencies": { "eslint-scope": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, "requires": { "esrecurse": "^4.3.0", @@ -20273,53 +19800,227 @@ }, "estraverse": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", "dev": true } } }, "@typescript-eslint/visitor-keys": { "version": "5.36.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.36.2.tgz", - "integrity": "sha512-BtRvSR6dEdrNt7Net2/XDjbYKU5Ml6GqJgVfXT0CxTCJlnIqK7rAGreuWKMT2t8cFUT2Msv5oxw0GMRD7T5J7A==", "dev": true, "requires": { "@typescript-eslint/types": "5.36.2", "eslint-visitor-keys": "^3.3.0" } }, + "@webassemblyjs/ast": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.1.tgz", + "integrity": "sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw==", + "dev": true, + "requires": { + "@webassemblyjs/helper-numbers": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1" + } + }, + "@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz", + "integrity": "sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ==", + "dev": true + }, + "@webassemblyjs/helper-api-error": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz", + "integrity": "sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg==", + "dev": true + }, + "@webassemblyjs/helper-buffer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz", + "integrity": "sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA==", + "dev": true + }, + "@webassemblyjs/helper-numbers": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz", + "integrity": "sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ==", + "dev": true, + "requires": { + "@webassemblyjs/floating-point-hex-parser": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz", + "integrity": "sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q==", + "dev": true + }, + "@webassemblyjs/helper-wasm-section": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz", + "integrity": "sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1" + } + }, + "@webassemblyjs/ieee754": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz", + "integrity": "sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ==", + "dev": true, + "requires": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "@webassemblyjs/leb128": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.1.tgz", + "integrity": "sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw==", + "dev": true, + "requires": { + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/utf8": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.1.tgz", + "integrity": "sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ==", + "dev": true + }, + "@webassemblyjs/wasm-edit": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz", + "integrity": "sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/helper-wasm-section": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-opt": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "@webassemblyjs/wast-printer": "1.11.1" + } + }, + "@webassemblyjs/wasm-gen": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz", + "integrity": "sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "@webassemblyjs/wasm-opt": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz", + "integrity": "sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-buffer": "1.11.1", + "@webassemblyjs/wasm-gen": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1" + } + }, + "@webassemblyjs/wasm-parser": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz", + "integrity": "sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/helper-api-error": "1.11.1", + "@webassemblyjs/helper-wasm-bytecode": "1.11.1", + "@webassemblyjs/ieee754": "1.11.1", + "@webassemblyjs/leb128": "1.11.1", + "@webassemblyjs/utf8": "1.11.1" + } + }, + "@webassemblyjs/wast-printer": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz", + "integrity": "sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.11.1", + "@xtuc/long": "4.2.2" + } + }, + "@webpack-cli/configtest": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz", + "integrity": "sha512-4FB8Tj6xyVkyqjj1OaTqCjXYULB9FMkqQ8yGrZjRDrYh0nOE+7Lhs45WioWQQMV+ceFlE368Ukhe6xdvJM9Egg==", + "dev": true, + "requires": {} + }, + "@webpack-cli/info": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-1.5.0.tgz", + "integrity": "sha512-e8tSXZpw2hPl2uMJY6fsMswaok5FdlGNRTktvFk2sD8RjH0hE2+XistawJx1vmKteh4NmGmNUrp+Tb2w+udPcQ==", + "dev": true, + "requires": { + "envinfo": "^7.7.3" + } + }, + "@webpack-cli/serve": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.7.0.tgz", + "integrity": "sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==", + "dev": true, + "requires": {} + }, + "@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true + }, + "@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true + }, "abort-controller": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", "requires": { "event-target-shim": "^5.0.0" } }, "acorn": { "version": "8.8.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", - "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", "dev": true }, + "acorn-import-assertions": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", + "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", + "dev": true, + "requires": {} + }, "acorn-jsx": { "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, "requires": {} }, "acorn-walk": { "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", "dev": true }, "agent-base": { "version": "6.0.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.0.tgz", - "integrity": "sha512-j1Q7cSCqN+AwrmDd+pzgqc0/NpC655x2bUf5ZjRIO77DcNBFmh+OgRNzF6OKdCC9RSCb19fGd99+bhXFdkRNqw==", "dev": true, "requires": { "debug": "4" @@ -20327,8 +20028,6 @@ }, "aggregate-error": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.0.1.tgz", - "integrity": "sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA==", "dev": true, "requires": { "clean-stack": "^2.0.0", @@ -20337,8 +20036,6 @@ }, "ajv": { "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", - "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", "requires": { "fast-deep-equal": "^3.1.1", "json-schema-traverse": "^1.0.0", @@ -20347,24 +20044,18 @@ }, "dependencies": { "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + "version": "1.0.0" } } }, "ajv-formats": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", - "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", "requires": { "ajv": "^8.0.0" } }, "ansi-escapes": { "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, "requires": { "type-fest": "^0.21.3" @@ -20372,16 +20063,12 @@ "dependencies": { "type-fest": { "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true } } }, "ansi-red": { "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", - "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=", "dev": true, "requires": { "ansi-wrap": "0.1.0" @@ -20389,14 +20076,10 @@ }, "ansi-regex": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true }, "ansi-styles": { "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { "color-convert": "^1.9.0" @@ -20404,20 +20087,14 @@ }, "ansi-wrap": { "version": "0.1.0", - "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", - "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=", "dev": true }, "ansicolors": { "version": "0.3.2", - "resolved": "https://registry.npmjs.org/ansicolors/-/ansicolors-0.3.2.tgz", - "integrity": "sha1-ZlWX3oap/+Oqm/vmyuXG6kJrSXk=", "dev": true }, "anymatch": { "version": "3.1.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", - "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", "dev": true, "requires": { "normalize-path": "^3.0.0", @@ -20426,28 +20103,20 @@ }, "arg": { "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", "dev": true }, "argparse": { "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "requires": { "sprintf-js": "~1.0.2" } }, "argv-formatter": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/argv-formatter/-/argv-formatter-1.0.0.tgz", - "integrity": "sha1-oMoMvCmltz6Dbuvhy/bF4OTrgvk=", "dev": true }, "aria-query": { "version": "4.2.2", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz", - "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==", "dev": true, "requires": { "@babel/runtime": "^7.10.2", @@ -20456,14 +20125,10 @@ }, "array-ify": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz", - "integrity": "sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==", "dev": true }, "array-includes": { "version": "3.1.5", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.5.tgz", - "integrity": "sha512-iSDYZMMyTPkiFasVqfuAQnWAYcvO/SeBSCGKePoEthjp4LEMTe4uLc7b025o4jAZpHhihh8xPo99TNWUWWkGDQ==", "dev": true, "requires": { "call-bind": "^1.0.2", @@ -20475,14 +20140,10 @@ }, "array-union": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", "dev": true }, "array.prototype.flat": { "version": "1.3.0", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.0.tgz", - "integrity": "sha512-12IUEkHsAhA4DY5s0FPgNXIdc8VRSqD9Zp78a5au9abH/SOBrsp082JOWFNTjkMozh8mqcdiKuaLGhPeYztxSw==", "dev": true, "requires": { "call-bind": "^1.0.2", @@ -20493,57 +20154,39 @@ }, "arrify": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", "dev": true }, "ast-types-flow": { "version": "0.0.7", - "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", - "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", "dev": true }, "astring": { - "version": "1.8.3", - "resolved": "https://registry.npmjs.org/astring/-/astring-1.8.3.tgz", - "integrity": "sha512-sRpyiNrx2dEYIMmUXprS8nlpRg2Drs8m9ElX9vVEXaCB4XEAJhKfs7IcX0IwShjuOAjLR6wzIrgoptz1n19i1A==" + "version": "1.8.3" }, "at-least-node": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", "dev": true }, "autolinker": { "version": "0.28.1", - "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-0.28.1.tgz", - "integrity": "sha1-BlK0kYgYefB3XazgzcoyM5QqTkc=", "dev": true, "requires": { "gulp-header": "^1.7.1" } }, "avsc": { - "version": "5.7.5", - "resolved": "https://registry.npmjs.org/avsc/-/avsc-5.7.5.tgz", - "integrity": "sha512-vkyt1+sj6qaD9oMtqqLE2pZ2IcHI66kFx8lpnVuXp55SnNPjKghfOhVfZpaDwDPpY0oVWP3Qu1uHZWxF3E856A==" + "version": "5.7.5" }, "axe-core": { "version": "4.4.3", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.4.3.tgz", - "integrity": "sha512-32+ub6kkdhhWick/UjvEwRchgoetXqTK14INLqbGm5U2TzBkBNF3nQtLYm8ovxSkQWArjEQvftCKryjZaATu3w==", "dev": true }, "axobject-query": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.2.0.tgz", - "integrity": "sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA==", "dev": true }, "babel-plugin-istanbul": { "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", @@ -20555,8 +20198,6 @@ }, "babel-preset-current-node-syntax": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", "dev": true, "requires": { "@babel/plugin-syntax-async-generators": "^7.8.4", @@ -20574,31 +20215,51 @@ } }, "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + "version": "1.0.0" + }, + "base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "dev": true }, "before-after-hook": { "version": "2.2.1", - "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.1.tgz", - "integrity": "sha512-/6FKxSTWoJdbsLDF8tdIjaRiFXiE6UHsEHE3OPI/cwPURCVi1ukP0gmLn7XWEiFk5TcwQjjY5PWsU+j+tgXgmw==", "dev": true }, + "bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "dev": true, + "requires": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + }, + "dependencies": { + "readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + } + } + }, "blueimp-md5": { - "version": "2.18.0", - "resolved": "https://registry.npmjs.org/blueimp-md5/-/blueimp-md5-2.18.0.tgz", - "integrity": "sha512-vE52okJvzsVWhcgUHOv+69OG3Mdg151xyn41aVQN/5W5S+S43qZhxECtYLAEHMSFWX6Mv5IZrzj3T5+JqXfj5Q==" + "version": "2.18.0" }, "bottleneck": { "version": "2.19.5", - "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz", - "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==", "dev": true }, "brace-expansion": { "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -20606,8 +20267,6 @@ }, "braces": { "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dev": true, "requires": { "fill-range": "^7.0.1" @@ -20615,8 +20274,6 @@ }, "browserslist": { "version": "4.21.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.3.tgz", - "integrity": "sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ==", "dev": true, "requires": { "caniuse-lite": "^1.0.30001370", @@ -20627,23 +20284,33 @@ }, "bser": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", "dev": true, "requires": { "node-int64": "^0.4.0" } }, + "buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "dev": true + }, "buffer-from": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", "dev": true }, "call-bind": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", "requires": { "function-bind": "^1.1.1", "get-intrinsic": "^1.0.2" @@ -20651,20 +20318,14 @@ }, "callsites": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true }, "camelcase": { "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true }, "camelcase-keys": { "version": "6.2.2", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz", - "integrity": "sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==", "dev": true, "requires": { "camelcase": "^5.3.1", @@ -20674,14 +20335,10 @@ }, "caniuse-lite": { "version": "1.0.30001387", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001387.tgz", - "integrity": "sha512-fKDH0F1KOJvR+mWSOvhj8lVRr/Q/mc5u5nabU2vi1/sgvlSqEsE8dOq0Hy/BqVbDkCYQPRRHB1WRjW6PGB/7PA==", "dev": true }, "cardinal": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/cardinal/-/cardinal-2.1.1.tgz", - "integrity": "sha1-fMEFXYItISlU0HsIXeolHMe8VQU=", "dev": true, "requires": { "ansicolors": "~0.3.2", @@ -20690,8 +20347,6 @@ }, "chalk": { "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, "requires": { "ansi-styles": "^3.2.1", @@ -20701,32 +20356,34 @@ }, "char-regex": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", - "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true + }, + "chownr": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", + "dev": true + }, + "chrome-trace-event": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz", + "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==", "dev": true }, "ci-info": { "version": "3.3.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.3.0.tgz", - "integrity": "sha512-riT/3vI5YpVH6/qomlDnJow6TBee2PBKSEpx3O32EGPYbWGIRsIlGRms3Sm74wYE1JMo8RnO04Hb12+v1J5ICw==", "dev": true }, "cjs-module-lexer": { "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", - "integrity": "sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==", "dev": true }, "clean-stack": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", "dev": true }, "cli-table": { "version": "0.3.6", - "resolved": "https://registry.npmjs.org/cli-table/-/cli-table-0.3.6.tgz", - "integrity": "sha512-ZkNZbnZjKERTY5NwC2SeMeLeifSPq/pubeRoTpdr3WchLlnZg6hEgvHkK5zL7KNFdd9PmHN8lxrENUwI3cE8vQ==", "dev": true, "requires": { "colors": "1.0.3" @@ -20734,8 +20391,6 @@ }, "cliui": { "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dev": true, "requires": { "string-width": "^4.2.0", @@ -20743,27 +20398,47 @@ "wrap-ansi": "^7.0.0" } }, + "clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + }, + "dependencies": { + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + } + } + }, "co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" + "version": "4.6.0" }, "coffee-script": { "version": "1.12.7", - "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz", - "integrity": "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==", "dev": true }, "collect-v8-coverage": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", - "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", "dev": true }, "color-convert": { "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, "requires": { "color-name": "1.1.3" @@ -20771,25 +20446,23 @@ }, "color-name": { "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "colorette": { + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.19.tgz", + "integrity": "sha512-3tlv/dIP7FWvj3BsbHrGLJ6l/oKh1O3TcgBqMn+yyCagOxc23fyzDS6HypQbgxWbkpDnf52p1LuR4eWDQ/K9WQ==", "dev": true }, "colors": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz", - "integrity": "sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=", "dev": true }, "commander": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", - "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==" + "version": "5.1.0" }, "compare-func": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz", - "integrity": "sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==", "dev": true, "requires": { "array-ify": "^1.0.0", @@ -20797,14 +20470,10 @@ } }, "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + "version": "0.0.1" }, "concat-stream": { "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", "dev": true, "requires": { "buffer-from": "^1.0.0", @@ -20815,8 +20484,6 @@ }, "concat-with-sourcemaps": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", - "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", "dev": true, "requires": { "source-map": "^0.6.1" @@ -20824,8 +20491,6 @@ }, "conventional-changelog-angular": { "version": "5.0.13", - "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.13.tgz", - "integrity": "sha512-i/gipMxs7s8L/QeuavPF2hLnJgH6pEZAttySB6aiQLWcX3puWDL3ACVmvBhJGxnAy52Qc15ua26BufY6KpmrVA==", "dev": true, "requires": { "compare-func": "^2.0.0", @@ -20834,8 +20499,6 @@ }, "conventional-changelog-conventionalcommits": { "version": "4.6.3", - "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.3.tgz", - "integrity": "sha512-LTTQV4fwOM4oLPad317V/QNQ1FY4Hju5qeBIM1uTHbrnCE+Eg4CdRZ3gO2pUeR+tzWdp80M2j3qFFEDWVqOV4g==", "dev": true, "requires": { "compare-func": "^2.0.0", @@ -20845,8 +20508,6 @@ }, "conventional-changelog-writer": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-4.1.0.tgz", - "integrity": "sha512-WwKcUp7WyXYGQmkLsX4QmU42AZ1lqlvRW9mqoyiQzdD+rJWbTepdWoKJuwXTS+yq79XKnQNa93/roViPQrAQgw==", "dev": true, "requires": { "compare-func": "^2.0.0", @@ -20863,16 +20524,12 @@ "dependencies": { "semver": { "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true } } }, "conventional-commits-filter": { "version": "2.0.7", - "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-2.0.7.tgz", - "integrity": "sha512-ASS9SamOP4TbCClsRHxIHXRfcGCnIoQqkvAzCSbZzTFLfcTqJVugB0agRgsEELsqaeWgsXv513eS116wnlSSPA==", "dev": true, "requires": { "lodash.ismatch": "^4.4.0", @@ -20881,8 +20538,6 @@ }, "conventional-commits-parser": { "version": "3.2.4", - "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.2.4.tgz", - "integrity": "sha512-nK7sAtfi+QXbxHCYfhpZsfRtaitZLIA6889kFIouLvz6repszQDgxBu7wf2WbU+Dco7sAnNCJYERCwt54WPC2Q==", "dev": true, "requires": { "is-text-path": "^1.0.1", @@ -20895,8 +20550,6 @@ }, "convert-source-map": { "version": "1.8.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", - "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", "dev": true, "requires": { "safe-buffer": "~5.1.1" @@ -20904,20 +20557,14 @@ }, "core-js-pure": { "version": "3.25.0", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.25.0.tgz", - "integrity": "sha512-IeHpLwk3uoci37yoI2Laty59+YqH9x5uR65/yiA0ARAJrTrN4YU0rmauLWfvqOuk77SlNJXj2rM6oT/dBD87+A==", "dev": true }, "core-util-is": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true }, "cosmiconfig": { "version": "7.0.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.0.tgz", - "integrity": "sha512-pondGvTuVYDk++upghXJabWzL6Kxu6f26ljFw64Swq9v6sQPUL3EUlVDV56diOjpCayKihL6hVe8exIACU4XcA==", "dev": true, "requires": { "@types/parse-json": "^4.0.0", @@ -20929,8 +20576,6 @@ "dependencies": { "parse-json": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", @@ -20941,31 +20586,32 @@ }, "path-type": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true } } }, "create-require": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", "dev": true }, "cross-env": { "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", - "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", "dev": true, "requires": { "cross-spawn": "^7.0.1" } }, + "cross-fetch": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", + "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==", + "dev": true, + "requires": { + "node-fetch": "2.6.7" + } + }, "cross-spawn": { "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "dev": true, "requires": { "path-key": "^3.1.0", @@ -20975,8 +20621,6 @@ "dependencies": { "which": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, "requires": { "isexe": "^2.0.0" @@ -20986,26 +20630,18 @@ }, "crypto-random-string": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", - "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", "dev": true }, "damerau-levenshtein": { "version": "1.0.8", - "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", - "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", "dev": true }, "dateformat": { "version": "3.0.3", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz", - "integrity": "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==", "dev": true }, "debug": { "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, "requires": { "ms": "2.1.2" @@ -21013,14 +20649,10 @@ }, "decamelize": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", "dev": true }, "decamelize-keys": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz", - "integrity": "sha512-ocLWuYzRPoS9bfiSdDd3cxvrzovVMZnRDVEzAs+hWIVXGDbHxWMECij2OBuyB/An0FFW/nLuq6Kv1i/YC5Qfzg==", "dev": true, "requires": { "decamelize": "^1.1.0", @@ -21029,84 +20661,64 @@ "dependencies": { "map-obj": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", "dev": true } } }, "dedent": { "version": "0.7.0", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", - "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", "dev": true }, "deep-extend": { "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", "dev": true }, "deep-is": { "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", - "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", "dev": true }, "deepmerge": { "version": "4.2.2", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", - "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", "dev": true }, "define-properties": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", - "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", "requires": { "has-property-descriptors": "^1.0.0", "object-keys": "^1.1.1" } }, "dependency-graph": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", - "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==" + "version": "0.11.0" }, "deprecation": { "version": "2.3.1", - "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", - "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", "dev": true }, "detect-newline": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true + }, + "devtools-protocol": { + "version": "0.0.1036444", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1036444.tgz", + "integrity": "sha512-0y4f/T8H9lsESV9kKP1HDUXgHxCdniFeJh6Erq+FbdOEvp/Ydp9t8kcAAM5gOd17pMrTDlFWntoHtzzeTUWKNw==", "dev": true }, "diacritics-map": { "version": "0.1.0", - "resolved": "https://registry.npmjs.org/diacritics-map/-/diacritics-map-0.1.0.tgz", - "integrity": "sha1-bfwP+dAQAKLt8oZTccrDFulJd68=", "dev": true }, "diff": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", "dev": true }, "diff-sequences": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", - "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", "dev": true }, "dir-glob": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", "dev": true, "requires": { "path-type": "^4.0.0" @@ -21114,16 +20726,12 @@ "dependencies": { "path-type": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true } } }, "doctrine": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "dev": true, "requires": { "esutils": "^2.0.2" @@ -21131,17 +20739,19 @@ }, "dot-prop": { "version": "5.3.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", - "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", "dev": true, "requires": { "is-obj": "^2.0.0" } }, + "duplexer": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", + "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", + "dev": true + }, "duplexer2": { "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", - "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", "dev": true, "requires": { "readable-stream": "^2.0.2" @@ -21149,35 +20759,35 @@ }, "electron-to-chromium": { "version": "1.4.242", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.242.tgz", - "integrity": "sha512-nPdgMWtjjWGCtreW/2adkrB2jyHjClo9PtVhR6rW+oxa4E4Wom642Tn+5LslHP3XPL5MCpkn5/UEY60EXylNeQ==", "dev": true }, "emittery": { "version": "0.10.2", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.10.2.tgz", - "integrity": "sha512-aITqOwnLanpHLNXZJENbOgjUBeHocD+xsSJmNrjovKBW5HbSpW3d1pEls7GFQPUWXiwG9+0P4GtHfEqC/4M0Iw==", "dev": true }, "emoji-regex": { "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, "end-of-stream": { "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", "dev": true, "requires": { "once": "^1.4.0" } }, + "enhanced-resolve": { + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.10.0.tgz", + "integrity": "sha512-T0yTFjdpldGY8PmuXXR0PyQ1ufZpEGiHVrp7zHKB7jdR4qlmZHhONVM5AQOAWXuF/w3dnHbEQVrNptJgt7F+cQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + } + }, "env-ci": { "version": "5.0.2", - "resolved": "https://registry.npmjs.org/env-ci/-/env-ci-5.0.2.tgz", - "integrity": "sha512-Xc41mKvjouTXD3Oy9AqySz1IeyvJvHZ20Twf5ZLYbNpPPIuCnL/qHCmNlD01LoNy0JTunw9HPYVptD19Ac7Mbw==", "dev": true, "requires": { "execa": "^4.0.0", @@ -21186,8 +20796,6 @@ "dependencies": { "execa": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", - "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", "dev": true, "requires": { "cross-spawn": "^7.0.0", @@ -21203,8 +20811,6 @@ }, "get-stream": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", "dev": true, "requires": { "pump": "^3.0.0" @@ -21212,10 +20818,14 @@ } } }, + "envinfo": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz", + "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==", + "dev": true + }, "error-ex": { "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "dev": true, "requires": { "is-arrayish": "^0.2.1" @@ -21223,8 +20833,6 @@ }, "es-abstract": { "version": "1.20.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.1.tgz", - "integrity": "sha512-WEm2oBhfoI2sImeM4OF2zE2V3BYdSF+KnSi9Sidz51fQHd7+JuF8Xgcj9/0o+OWeIeIS/MiuNnlruQrJf16GQA==", "requires": { "call-bind": "^1.0.2", "es-to-primitive": "^1.2.1", @@ -21253,8 +20861,6 @@ }, "es-aggregate-error": { "version": "1.0.8", - "resolved": "https://registry.npmjs.org/es-aggregate-error/-/es-aggregate-error-1.0.8.tgz", - "integrity": "sha512-AKUb5MKLWMozPlFRHOKqWD7yta5uaEhH21qwtnf6FlKjNjTJOoqFi0/G14+FfSkIQhhu6X68Af4xgRC6y8qG4A==", "requires": { "define-properties": "^1.1.4", "es-abstract": "^1.19.5", @@ -21265,10 +20871,14 @@ "has-property-descriptors": "^1.0.0" } }, + "es-module-lexer": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", + "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", + "dev": true + }, "es-shim-unscopables": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", - "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==", "dev": true, "requires": { "has": "^1.0.3" @@ -21276,8 +20886,6 @@ }, "es-to-primitive": { "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", "requires": { "is-callable": "^1.1.4", "is-date-object": "^1.0.1", @@ -21286,20 +20894,14 @@ }, "escalade": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", "dev": true }, "escape-string-regexp": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", "dev": true }, "eslint": { "version": "8.23.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.23.0.tgz", - "integrity": "sha512-pBG/XOn0MsJcKcTRLr27S5HpzQo4kLr+HjLQIyK4EiCsijDl/TB+h5uEuJU6bQ8Edvwz1XWOjpaP2qgnXGpTcA==", "dev": true, "requires": { "@eslint/eslintrc": "^1.3.1", @@ -21345,8 +20947,6 @@ "dependencies": { "ajv": { "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", "dev": true, "requires": { "fast-deep-equal": "^3.1.1", @@ -21357,8 +20957,6 @@ }, "chalk": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", - "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -21367,8 +20965,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -21376,8 +20972,6 @@ }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -21387,8 +20981,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -21396,20 +20988,14 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "escape-string-regexp": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true }, "find-up": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, "requires": { "locate-path": "^6.0.0", @@ -21418,8 +21004,6 @@ }, "glob-parent": { "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, "requires": { "is-glob": "^4.0.3" @@ -21427,14 +21011,10 @@ }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "locate-path": { "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, "requires": { "p-locate": "^5.0.0" @@ -21442,8 +21022,6 @@ }, "p-limit": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "requires": { "yocto-queue": "^0.1.0" @@ -21451,8 +21029,6 @@ }, "p-locate": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, "requires": { "p-limit": "^3.0.2" @@ -21460,29 +21036,21 @@ }, "path-exists": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true }, "strip-json-comments": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true } } }, "eslint-config-prettier": { "version": "8.5.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz", - "integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==", "dev": true, "requires": {} }, "eslint-import-resolver-node": { "version": "0.3.6", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz", - "integrity": "sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==", "dev": true, "requires": { "debug": "^3.2.7", @@ -21491,8 +21059,6 @@ "dependencies": { "debug": { "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, "requires": { "ms": "^2.1.1" @@ -21502,8 +21068,6 @@ }, "eslint-module-utils": { "version": "2.7.4", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz", - "integrity": "sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==", "dev": true, "requires": { "debug": "^3.2.7" @@ -21511,8 +21075,6 @@ "dependencies": { "debug": { "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, "requires": { "ms": "^2.1.1" @@ -21522,8 +21084,6 @@ }, "eslint-plugin-escompat": { "version": "3.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-escompat/-/eslint-plugin-escompat-3.2.0.tgz", - "integrity": "sha512-obXAKKiZE/wB2fgIw0ZxCmp+8vpDsUw2inkaok1i7OVxY4cEds4Y9YCoky0f5V+q8rqZpTUJDv1R9ykWbXLX8Q==", "dev": true, "requires": { "browserslist": "^4.21.0" @@ -21531,8 +21091,6 @@ }, "eslint-plugin-eslint-comments": { "version": "3.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz", - "integrity": "sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==", "dev": true, "requires": { "escape-string-regexp": "^1.0.5", @@ -21541,8 +21099,6 @@ }, "eslint-plugin-filenames": { "version": "1.3.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-filenames/-/eslint-plugin-filenames-1.3.2.tgz", - "integrity": "sha512-tqxJTiEM5a0JmRCUYQmxw23vtTxrb2+a3Q2mMOPhFxvt7ZQQJmdiuMby9B/vUAuVMghyP7oET+nIf6EO6CBd/w==", "dev": true, "requires": { "lodash.camelcase": "4.3.0", @@ -21553,8 +21109,6 @@ }, "eslint-plugin-github": { "version": "4.3.7", - "resolved": "https://registry.npmjs.org/eslint-plugin-github/-/eslint-plugin-github-4.3.7.tgz", - "integrity": "sha512-tYZdXvAEz4JCMrC4NHIUoJTsLUvydCxff5OqB5hgU0vQbLmMkw6VOipN2KNe+T06pEhAWs1KBEwyq9cmMWRe7A==", "dev": true, "requires": { "@typescript-eslint/eslint-plugin": "^5.1.0", @@ -21576,15 +21130,11 @@ }, "eslint-plugin-i18n-text": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-i18n-text/-/eslint-plugin-i18n-text-1.0.1.tgz", - "integrity": "sha512-3G3UetST6rdqhqW9SfcfzNYMpQXS7wNkJvp6dsXnjzGiku6Iu5hl3B0kmk6lIcFPwYjhQIY+tXVRtK9TlGT7RA==", "dev": true, "requires": {} }, "eslint-plugin-import": { "version": "2.26.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz", - "integrity": "sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==", "dev": true, "requires": { "array-includes": "^3.1.4", @@ -21604,8 +21154,6 @@ "dependencies": { "debug": { "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, "requires": { "ms": "2.0.0" @@ -21613,8 +21161,6 @@ }, "doctrine": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", "dev": true, "requires": { "esutils": "^2.0.2" @@ -21622,16 +21168,12 @@ }, "ms": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", "dev": true } } }, "eslint-plugin-jsx-a11y": { "version": "6.6.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.6.1.tgz", - "integrity": "sha512-sXgFVNHiWffBq23uiS/JaP6eVR622DqwB4yTzKvGZGcPq6/yZ3WmOZfuBks/vHWo9GaFOqC2ZK4i6+C35knx7Q==", "dev": true, "requires": { "@babel/runtime": "^7.18.9", @@ -21651,28 +21193,20 @@ "dependencies": { "emoji-regex": { "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", "dev": true }, "semver": { "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true } } }, "eslint-plugin-no-only-tests": { "version": "2.6.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-2.6.0.tgz", - "integrity": "sha512-T9SmE/g6UV1uZo1oHAqOvL86XWl7Pl2EpRpnLI8g/bkJu+h7XBCB+1LnubRZ2CUQXj805vh4/CYZdnqtVaEo2Q==", "dev": true }, "eslint-plugin-prettier": { "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", "dev": true, "requires": { "prettier-linter-helpers": "^1.0.0" @@ -21680,8 +21214,6 @@ }, "eslint-plugin-security": { "version": "1.5.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-security/-/eslint-plugin-security-1.5.0.tgz", - "integrity": "sha512-hAFVwLZ/UeXrlyVD2TDarv/x00CoFVpaY0IUZhKjPjiFxqkuQVixsK4f2rxngeQOqSxi6OUjzJM/jMwKEVjJ8g==", "dev": true, "requires": { "safe-regex": "^2.1.1" @@ -21689,21 +21221,15 @@ }, "eslint-plugin-sonarjs": { "version": "0.15.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.15.0.tgz", - "integrity": "sha512-LuxHdAe6VqSbi1phsUvNjbmXLuvlobmryQJJNyQYbdubCfz6K8tmgoqNiJPnz0pP2AbYDbtuPm0ajOMgMrC+dQ==", "dev": true, "requires": {} }, "eslint-rule-documentation": { "version": "1.0.23", - "resolved": "https://registry.npmjs.org/eslint-rule-documentation/-/eslint-rule-documentation-1.0.23.tgz", - "integrity": "sha512-pWReu3fkohwyvztx/oQWWgld2iad25TfUdi6wvhhaDPIQjHU/pyvlKgXFw1kX31SQK2Nq9MH+vRDWB0ZLy8fYw==", "dev": true }, "eslint-scope": { "version": "7.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", - "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", "dev": true, "requires": { "esrecurse": "^4.3.0", @@ -21712,8 +21238,6 @@ }, "eslint-utils": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", "dev": true, "requires": { "eslint-visitor-keys": "^2.0.0" @@ -21721,22 +21245,16 @@ "dependencies": { "eslint-visitor-keys": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", - "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", "dev": true } } }, "eslint-visitor-keys": { "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", "dev": true }, "espree": { "version": "9.4.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.0.tgz", - "integrity": "sha512-DQmnRpLj7f6TgN/NYb0MTzJXL+vJF9h3pHy4JhCIs3zwcgez8xmGg3sXHcEO97BrmO2OSvCwMdfdlyl+E9KjOw==", "dev": true, "requires": { "acorn": "^8.8.0", @@ -21745,14 +21263,10 @@ } }, "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + "version": "4.0.1" }, "esquery": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", "dev": true, "requires": { "estraverse": "^5.1.0" @@ -21760,8 +21274,6 @@ }, "esrecurse": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, "requires": { "estraverse": "^5.2.0" @@ -21769,25 +21281,23 @@ }, "estraverse": { "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "dev": true }, "esutils": { "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true }, "event-target-shim": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", - "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==" + "version": "5.0.1" + }, + "events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true }, "execa": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.0.0.tgz", - "integrity": "sha512-ov6w/2LCiuyO4RLYGdpFGjkcs0wMTgGE8PrkTHikeUy5iJekXyPIKUjifk5CsE0pt7sMCrMZ3YNqoCj6idQOnQ==", "dev": true, "requires": { "cross-spawn": "^7.0.3", @@ -21803,14 +21313,10 @@ "dependencies": { "human-signals": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true }, "onetime": { "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, "requires": { "mimic-fn": "^2.1.0" @@ -21820,14 +21326,10 @@ }, "exit": { "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", "dev": true }, "expand-range": { "version": "1.8.2", - "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", - "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", "dev": true, "requires": { "fill-range": "^2.1.0" @@ -21835,8 +21337,6 @@ "dependencies": { "fill-range": { "version": "2.2.4", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", - "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", "dev": true, "requires": { "is-number": "^2.1.0", @@ -21848,8 +21348,6 @@ }, "is-number": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", "dev": true, "requires": { "kind-of": "^3.0.2" @@ -21857,8 +21355,6 @@ }, "isobject": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", "dev": true, "requires": { "isarray": "1.0.0" @@ -21868,8 +21364,6 @@ }, "expect": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/expect/-/expect-29.0.2.tgz", - "integrity": "sha512-JeJlAiLKn4aApT4pzUXBVxl3NaZidWIOdg//smaIlP9ZMBDkHZGFd9ubphUZP9pUyDEo7bC6M0IIZR51o75qQw==", "dev": true, "requires": { "@jest/expect-utils": "^29.0.2", @@ -21881,8 +21375,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -21890,8 +21382,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -21900,8 +21390,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -21909,26 +21397,18 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "diff-sequences": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.0.0.tgz", - "integrity": "sha512-7Qe/zd1wxSDL4D/X/FPjOMB+ZMDt71W94KYaq05I2l0oQqgXgs7s4ftYYmV38gBSrPz2vcygxfs1xn0FT+rKNA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "jest-diff": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.0.2.tgz", - "integrity": "sha512-b9l9970sa1rMXH1owp2Woprmy42qIwwll/htsw4Gf7+WuSp5bZxNhkKHDuCGKL+HoHn1KhcC+tNEeAPYBkD2Jg==", "dev": true, "requires": { "chalk": "^4.0.0", @@ -21939,14 +21419,10 @@ }, "jest-get-type": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", - "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true }, "jest-matcher-utils": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.0.2.tgz", - "integrity": "sha512-s62YkHFBfAx0JLA2QX1BlnCRFwHRobwAv2KP1+YhjzF6ZCbCVrf1sG8UJyn62ZUsDaQKpoo86XMTjkUyO5aWmQ==", "dev": true, "requires": { "chalk": "^4.0.0", @@ -21957,8 +21433,6 @@ }, "jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -21971,8 +21445,6 @@ }, "pretty-format": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", - "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, "requires": { "@jest/schemas": "^29.0.0", @@ -21982,22 +21454,16 @@ "dependencies": { "ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true } } }, "react-is": { "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -22007,28 +21473,43 @@ }, "extend-shallow": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { "is-extendable": "^0.1.0" } }, + "extract-zip": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", + "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", + "dev": true, + "requires": { + "@types/yauzl": "^2.9.1", + "debug": "^4.1.1", + "get-stream": "^5.1.0", + "yauzl": "^2.10.0" + }, + "dependencies": { + "get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + } + } + }, "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + "version": "3.1.3" }, "fast-diff": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", - "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", "dev": true }, "fast-glob": { "version": "3.2.11", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz", - "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==", "dev": true, "requires": { "@nodelib/fs.stat": "^2.0.2", @@ -22039,25 +21520,23 @@ } }, "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + "version": "2.1.0" }, "fast-levenshtein": { "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "dev": true }, "fast-memoize": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/fast-memoize/-/fast-memoize-2.5.2.tgz", - "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==" + "version": "2.5.2" + }, + "fastest-levenshtein": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", + "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", + "dev": true }, "fastq": { "version": "1.13.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", - "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==", "dev": true, "requires": { "reusify": "^1.0.4" @@ -22065,17 +21544,22 @@ }, "fb-watchman": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz", - "integrity": "sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==", "dev": true, "requires": { "bser": "2.1.1" } }, + "fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "dev": true, + "requires": { + "pend": "~1.2.0" + } + }, "figures": { "version": "3.2.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", - "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", "dev": true, "requires": { "escape-string-regexp": "^1.0.5" @@ -22083,8 +21567,6 @@ }, "file-entry-cache": { "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", "dev": true, "requires": { "flat-cache": "^3.0.4" @@ -22092,8 +21574,6 @@ }, "fill-range": { "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", "dev": true, "requires": { "to-regex-range": "^5.0.1" @@ -22101,8 +21581,6 @@ }, "find-up": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", "dev": true, "requires": { "locate-path": "^2.0.0" @@ -22110,8 +21588,6 @@ }, "find-versions": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-4.0.0.tgz", - "integrity": "sha512-wgpWy002tA+wgmO27buH/9KzyEOQnKsG/R0yrcjPT9BOFm0zRBVQbZ95nRGXWMywS8YR5knRbpohio0bcJABxQ==", "dev": true, "requires": { "semver-regex": "^3.1.2" @@ -22119,8 +21595,6 @@ }, "flat-cache": { "version": "3.0.4", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", - "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", "dev": true, "requires": { "flatted": "^3.1.0", @@ -22129,30 +21603,28 @@ }, "flatted": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.1.1.tgz", - "integrity": "sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==", "dev": true }, "for-in": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", "dev": true }, "from2": { "version": "2.3.0", - "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", - "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", "dev": true, "requires": { "inherits": "^2.0.1", "readable-stream": "^2.0.0" } }, + "fs-constants": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", + "dev": true + }, "fs-extra": { "version": "9.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.0.tgz", - "integrity": "sha512-pmEYSk3vYsG/bF651KPUXZ+hvjpgWYw/Gc7W9NFUe3ZVLczKKWIij3IKpOrQcdw4TILtibFslZ0UmR8Vvzig4g==", "dev": true, "requires": { "at-least-node": "^1.0.0", @@ -22163,26 +21635,18 @@ }, "fs.realpath": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, "fsevents": { "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", "dev": true, "optional": true }, "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + "version": "1.1.1" }, "function.prototype.name": { "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.3", @@ -22192,31 +21656,21 @@ }, "functional-red-black-tree": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", "dev": true }, "functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==" + "version": "1.2.3" }, "gensync": { "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true }, "get-caller-file": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true }, "get-intrinsic": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.2.tgz", - "integrity": "sha512-Jfm3OyCxHh9DJyc28qGk+JmfkpO41A4XkneDSujN9MDXrm4oDKdHvndhZ2dN94+ERNfkYJWDclW6k2L/ZGHjXA==", "requires": { "function-bind": "^1.1.1", "has": "^1.0.3", @@ -22225,20 +21679,14 @@ }, "get-package-type": { "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", "dev": true }, "get-stream": { "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true }, "get-symbol-description": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", "requires": { "call-bind": "^1.0.2", "get-intrinsic": "^1.1.1" @@ -22246,8 +21694,6 @@ }, "git-log-parser": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/git-log-parser/-/git-log-parser-1.2.0.tgz", - "integrity": "sha1-LmpMGxP8AAKCB7p5WnrDFme5/Uo=", "dev": true, "requires": { "argv-formatter": "~1.0.0", @@ -22260,8 +21706,6 @@ "dependencies": { "split2": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-1.0.0.tgz", - "integrity": "sha1-UuLiIdiMdfmnP5BVbiY/+WdysxQ=", "dev": true, "requires": { "through2": "~2.0.0" @@ -22269,8 +21713,6 @@ }, "through2": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", "dev": true, "requires": { "readable-stream": "~2.3.6", @@ -22281,8 +21723,6 @@ }, "glob": { "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", "dev": true, "requires": { "fs.realpath": "^1.0.0", @@ -22295,17 +21735,19 @@ }, "glob-parent": { "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, "requires": { "is-glob": "^4.0.1" } }, + "glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true + }, "globals": { "version": "13.17.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.17.0.tgz", - "integrity": "sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw==", "dev": true, "requires": { "type-fest": "^0.20.2" @@ -22313,24 +21755,18 @@ "dependencies": { "type-fest": { "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "dev": true } } }, "globalthis": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", "requires": { "define-properties": "^1.1.3" } }, "globby": { "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", "dev": true, "requires": { "array-union": "^2.1.0", @@ -22343,20 +21779,14 @@ }, "graceful-fs": { "version": "4.2.9", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz", - "integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==", "dev": true }, "grapheme-splitter": { "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", "dev": true }, "gray-matter": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-2.1.1.tgz", - "integrity": "sha1-MELZrewqHe1qdwep7SOA+KF6Qw4=", "dev": true, "requires": { "ansi-red": "^0.1.1", @@ -22368,8 +21798,6 @@ "dependencies": { "js-yaml": { "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, "requires": { "argparse": "^1.0.7", @@ -22380,8 +21808,6 @@ }, "gulp-header": { "version": "1.8.12", - "resolved": "https://registry.npmjs.org/gulp-header/-/gulp-header-1.8.12.tgz", - "integrity": "sha512-lh9HLdb53sC7XIZOYzTXM4lFuXElv3EVkSDhsd7DoJBj7hm+Ni7D3qYbb+Rr8DuM8nRanBvkVO9d7askreXGnQ==", "dev": true, "requires": { "concat-with-sourcemaps": "*", @@ -22391,8 +21817,6 @@ "dependencies": { "through2": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", "dev": true, "requires": { "readable-stream": "~2.3.6", @@ -22401,10 +21825,17 @@ } } }, + "gzip-size": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz", + "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", + "dev": true, + "requires": { + "duplexer": "^0.1.2" + } + }, "handlebars": { "version": "4.7.7", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", - "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", "dev": true, "requires": { "minimist": "^1.2.5", @@ -22416,72 +21847,50 @@ }, "hard-rejection": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz", - "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==", "dev": true }, "has": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", "requires": { "function-bind": "^1.1.1" } }, "has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==" + "version": "1.0.2" }, "has-flag": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", "dev": true }, "has-property-descriptors": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", "requires": { "get-intrinsic": "^1.1.1" } }, "has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" + "version": "1.0.3" }, "has-tostringtag": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", "requires": { "has-symbols": "^1.0.2" } }, "hook-std": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/hook-std/-/hook-std-2.0.0.tgz", - "integrity": "sha512-zZ6T5WcuBMIUVh49iPQS9t977t7C0l7OtHrpeMb5uk48JdflRX0NSFvCekfYNmGQETnLq9W/isMyHl69kxGi8g==", "dev": true }, "hosted-git-info": { "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", "dev": true }, "html-escaper": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true }, "http-proxy-agent": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", - "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", "dev": true, "requires": { "@tootallnate/once": "1", @@ -22490,9 +21899,9 @@ } }, "https-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", - "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", "dev": true, "requires": { "agent-base": "6", @@ -22501,25 +21910,23 @@ }, "human-signals": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", - "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "dev": true + }, + "ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", "dev": true }, "ignore": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", - "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", "dev": true }, "immer": { - "version": "9.0.12", - "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.12.tgz", - "integrity": "sha512-lk7UNmSbAukB5B6dh9fnh5D0bJTOFKxVg2cyJWTYrWRfhLrLMBquONcUs3aFq507hNoIZEDDh8lb8UtOizSMhA==" + "version": "9.0.12" }, "import-fresh": { "version": "3.2.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", - "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", "dev": true, "requires": { "parent-module": "^1.0.0", @@ -22528,16 +21935,12 @@ "dependencies": { "resolve-from": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true } } }, "import-from": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/import-from/-/import-from-3.0.0.tgz", - "integrity": "sha512-CiuXOFFSzkU5x/CR0+z7T91Iht4CXgfCxVOFRhh2Zyhg5wOpWvvDLQUsWl+gcN+QscYBjez8hDCt85O7RLDttQ==", "dev": true, "requires": { "resolve-from": "^5.0.0" @@ -22545,8 +21948,6 @@ }, "import-local": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", "dev": true, "requires": { "pkg-dir": "^4.2.0", @@ -22555,20 +21956,14 @@ }, "imurmurhash": { "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", "dev": true }, "indent-string": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", "dev": true }, "inflight": { "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "requires": { "once": "^1.3.0", @@ -22577,30 +21972,28 @@ }, "inherits": { "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, "ini": { "version": "1.3.7", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.7.tgz", - "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", "dev": true }, "internal-slot": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", - "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", "requires": { "get-intrinsic": "^1.1.0", "has": "^1.0.3", "side-channel": "^1.0.4" } }, + "interpret": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-2.2.0.tgz", + "integrity": "sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw==", + "dev": true + }, "into-stream": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-5.1.1.tgz", - "integrity": "sha512-krrAJ7McQxGGmvaYbB7Q1mcA+cRwg9Ij2RfWIeVesNBgVDZmzY/Fa4IpZUT3bmdRzMzdf/mzltCG2Dq99IZGBA==", "dev": true, "requires": { "from2": "^2.3.0", @@ -22609,22 +22002,16 @@ }, "is-arrayish": { "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", "dev": true }, "is-bigint": { "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", "requires": { "has-bigints": "^1.0.1" } }, "is-boolean-object": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", "requires": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" @@ -22632,19 +22019,13 @@ }, "is-buffer": { "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", "dev": true }, "is-callable": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz", - "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==" + "version": "1.2.4" }, "is-core-module": { "version": "2.8.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz", - "integrity": "sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==", "dev": true, "requires": { "has": "^1.0.3" @@ -22652,86 +22033,60 @@ }, "is-date-object": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", "requires": { "has-tostringtag": "^1.0.0" } }, "is-extendable": { "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", "dev": true }, "is-extglob": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", "dev": true }, "is-fullwidth-code-point": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true }, "is-generator-fn": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", - "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", "dev": true }, "is-glob": { "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, "requires": { "is-extglob": "^2.1.1" } }, "is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==" + "version": "2.0.2" }, "is-number": { "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true }, "is-number-object": { "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", "requires": { "has-tostringtag": "^1.0.0" } }, "is-obj": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", - "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", "dev": true }, "is-plain-obj": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", - "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", "dev": true }, "is-plain-object": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", - "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", "dev": true }, "is-regex": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", "requires": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" @@ -22739,38 +22094,28 @@ }, "is-shared-array-buffer": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", "requires": { "call-bind": "^1.0.2" } }, "is-stream": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", - "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", "dev": true }, "is-string": { "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", "requires": { "has-tostringtag": "^1.0.0" } }, "is-symbol": { "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", "requires": { "has-symbols": "^1.0.2" } }, "is-text-path": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-1.0.1.tgz", - "integrity": "sha1-Thqg+1G/vLPpJogAE5cgLBd1tm4=", "dev": true, "requires": { "text-extensions": "^1.0.0" @@ -22778,28 +22123,26 @@ }, "is-weakref": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", "requires": { "call-bind": "^1.0.2" } }, "isarray": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true }, "isexe": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", "dev": true }, "issue-parser": { "version": "6.0.0", - "resolved": "https://registry.npmjs.org/issue-parser/-/issue-parser-6.0.0.tgz", - "integrity": "sha512-zKa/Dxq2lGsBIXQ7CUZWTHfvxPC2ej0KfO7fIPqLlHB9J2hJ7rGhZ5rilhuufylr4RXYPzJUeFjKxz305OsNlA==", "dev": true, "requires": { "lodash.capitalize": "^4.2.1", @@ -22811,14 +22154,10 @@ }, "istanbul-lib-coverage": { "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", "dev": true }, "istanbul-lib-instrument": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.1.0.tgz", - "integrity": "sha512-czwUz525rkOFDJxfKK6mYfIs9zBKILyrZQxjz3ABhjQXhbhFsSbo1HW/BFcsDnfJYJWA6thRR5/TUY2qs5W99Q==", "dev": true, "requires": { "@babel/core": "^7.12.3", @@ -22830,16 +22169,12 @@ "dependencies": { "semver": { "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true } } }, "istanbul-lib-report": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", "dev": true, "requires": { "istanbul-lib-coverage": "^3.0.0", @@ -22849,14 +22184,10 @@ "dependencies": { "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -22866,8 +22197,6 @@ }, "istanbul-lib-source-maps": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", "dev": true, "requires": { "debug": "^4.1.1", @@ -22877,8 +22206,6 @@ }, "istanbul-reports": { "version": "3.1.5", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", - "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", "dev": true, "requires": { "html-escaper": "^2.0.0", @@ -22887,14 +22214,10 @@ }, "java-properties": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/java-properties/-/java-properties-1.0.2.tgz", - "integrity": "sha512-qjdpeo2yKlYTH7nFdK0vbZWuTCesk4o63v5iVOlhMQPfuIZQfW/HI35SjfhA+4qpg36rnFSvUK5b1m+ckIblQQ==", "dev": true }, "jest": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest/-/jest-29.0.2.tgz", - "integrity": "sha512-enziNbNUmXTcTaTP/Uq5rV91r0Yqy2UKzLUIabxMpGm9YHz8qpbJhiRnNVNvm6vzWfzt/0o97NEHH8/3udoClA==", "dev": true, "requires": { "@jest/core": "^29.0.2", @@ -22905,8 +22228,6 @@ }, "jest-changed-files": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.0.0.tgz", - "integrity": "sha512-28/iDMDrUpGoCitTURuDqUzWQoWmOmOKOFST1mi2lwh62X4BFf6khgH3uSuo1e49X/UDjuApAj3w0wLOex4VPQ==", "dev": true, "requires": { "execa": "^5.0.0", @@ -22915,8 +22236,6 @@ "dependencies": { "p-limit": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "requires": { "yocto-queue": "^0.1.0" @@ -22926,8 +22245,6 @@ }, "jest-circus": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.0.2.tgz", - "integrity": "sha512-YTPEsoE1P1X0bcyDQi3QIkpt2Wl9om9k2DQRuLFdS5x8VvAKSdYAVJufgvudhnKgM8WHvvAzhBE+1DRQB8x1CQ==", "dev": true, "requires": { "@jest/environment": "^29.0.2", @@ -22953,8 +22270,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -22962,8 +22277,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -22972,8 +22285,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -22981,26 +22292,18 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "diff-sequences": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.0.0.tgz", - "integrity": "sha512-7Qe/zd1wxSDL4D/X/FPjOMB+ZMDt71W94KYaq05I2l0oQqgXgs7s4ftYYmV38gBSrPz2vcygxfs1xn0FT+rKNA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "jest-diff": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.0.2.tgz", - "integrity": "sha512-b9l9970sa1rMXH1owp2Woprmy42qIwwll/htsw4Gf7+WuSp5bZxNhkKHDuCGKL+HoHn1KhcC+tNEeAPYBkD2Jg==", "dev": true, "requires": { "chalk": "^4.0.0", @@ -23011,14 +22314,10 @@ }, "jest-get-type": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", - "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true }, "jest-matcher-utils": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.0.2.tgz", - "integrity": "sha512-s62YkHFBfAx0JLA2QX1BlnCRFwHRobwAv2KP1+YhjzF6ZCbCVrf1sG8UJyn62ZUsDaQKpoo86XMTjkUyO5aWmQ==", "dev": true, "requires": { "chalk": "^4.0.0", @@ -23029,8 +22328,6 @@ }, "jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -23043,8 +22340,6 @@ }, "p-limit": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "requires": { "yocto-queue": "^0.1.0" @@ -23052,8 +22347,6 @@ }, "pretty-format": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", - "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, "requires": { "@jest/schemas": "^29.0.0", @@ -23063,22 +22356,16 @@ "dependencies": { "ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true } } }, "react-is": { "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -23088,8 +22375,6 @@ }, "jest-cli": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.0.2.tgz", - "integrity": "sha512-tlf8b+4KcUbBGr25cywIi3+rbZ4+G+SiG8SvY552m9sRZbXPafdmQRyeVE/C/R8K+TiBAMrTIUmV2SlStRJ40g==", "dev": true, "requires": { "@jest/core": "^29.0.2", @@ -23108,8 +22393,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -23117,8 +22400,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -23127,8 +22408,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -23136,20 +22415,14 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -23162,8 +22435,6 @@ }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -23171,8 +22442,6 @@ }, "yargs": { "version": "17.5.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.5.1.tgz", - "integrity": "sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA==", "dev": true, "requires": { "cliui": "^7.0.2", @@ -23186,16 +22455,12 @@ }, "yargs-parser": { "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true } } }, "jest-config": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.0.2.tgz", - "integrity": "sha512-RU4gzeUNZAFktYVzDGimDxeYoaiTnH100jkYYZgldqFamaZukF0IqmFx8+QrzVeEWccYg10EEJT3ox1Dq5b74w==", "dev": true, "requires": { "@babel/core": "^7.11.6", @@ -23224,8 +22489,6 @@ "dependencies": { "@jest/transform": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", - "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", "dev": true, "requires": { "@babel/core": "^7.11.6", @@ -23247,8 +22510,6 @@ }, "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -23256,8 +22517,6 @@ }, "babel-jest": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.0.2.tgz", - "integrity": "sha512-yTu4/WSi/HzarjQtrJSwV+/0maoNt+iP0DmpvFJdv9yY+5BuNle8TbheHzzcSWj5gIHfuhpbLYHWRDYhWKyeKQ==", "dev": true, "requires": { "@jest/transform": "^29.0.2", @@ -23271,8 +22530,6 @@ }, "babel-plugin-jest-hoist": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.0.2.tgz", - "integrity": "sha512-eBr2ynAEFjcebVvu8Ktx580BD1QKCrBG1XwEUTXJe285p9HA/4hOhfWCFRQhTKSyBV0VzjhG7H91Eifz9s29hg==", "dev": true, "requires": { "@babel/template": "^7.3.3", @@ -23283,8 +22540,6 @@ }, "babel-preset-jest": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.0.2.tgz", - "integrity": "sha512-BeVXp7rH5TK96ofyEnHjznjLMQ2nAeDJ+QzxKnHAAMs0RgrQsCywjAN8m4mOm5Di0pxU//3AoEeJJrerMH5UeA==", "dev": true, "requires": { "babel-plugin-jest-hoist": "^29.0.2", @@ -23293,8 +22548,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -23303,8 +22556,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -23312,26 +22563,18 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "jest-get-type": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", - "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true }, "jest-haste-map": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", - "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -23350,14 +22593,10 @@ }, "jest-regex-util": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", - "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true }, "jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -23370,8 +22609,6 @@ }, "jest-worker": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", - "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", "dev": true, "requires": { "@types/node": "*", @@ -23381,8 +22618,6 @@ "dependencies": { "supports-color": { "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -23392,8 +22627,6 @@ }, "parse-json": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", @@ -23404,8 +22637,6 @@ }, "pretty-format": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", - "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, "requires": { "@jest/schemas": "^29.0.0", @@ -23415,28 +22646,20 @@ "dependencies": { "ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true } } }, "react-is": { "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, "strip-json-comments": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -23444,8 +22667,6 @@ }, "write-file-atomic": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, "requires": { "imurmurhash": "^0.1.4", @@ -23456,8 +22677,6 @@ }, "jest-diff": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.5.1.tgz", - "integrity": "sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw==", "dev": true, "requires": { "chalk": "^4.0.0", @@ -23468,8 +22687,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -23477,8 +22694,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -23487,8 +22702,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -23496,20 +22709,14 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -23519,8 +22726,6 @@ }, "jest-docblock": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.0.0.tgz", - "integrity": "sha512-s5Kpra/kLzbqu9dEjov30kj1n4tfu3e7Pl8v+f8jOkeWNqM6Ds8jRaJfZow3ducoQUrf2Z4rs2N5S3zXnb83gw==", "dev": true, "requires": { "detect-newline": "^3.0.0" @@ -23528,8 +22733,6 @@ }, "jest-each": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.0.2.tgz", - "integrity": "sha512-+sA9YjrJl35iCg0W0VCrgCVj+wGhDrrKQ+YAqJ/DHBC4gcDFAeePtRRhpJnX9gvOZ63G7gt52pwp2PesuSEx0Q==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -23541,8 +22744,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -23550,8 +22751,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -23560,8 +22759,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -23569,26 +22766,18 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "jest-get-type": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", - "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true }, "jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -23601,8 +22790,6 @@ }, "pretty-format": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", - "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, "requires": { "@jest/schemas": "^29.0.0", @@ -23612,22 +22799,16 @@ "dependencies": { "ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true } } }, "react-is": { "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -23637,8 +22818,6 @@ }, "jest-environment-node": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.0.2.tgz", - "integrity": "sha512-4Fv8GXVCToRlMzDO94gvA8iOzKxQ7rhAbs8L+j8GPyTxGuUiYkV+63LecGeVdVhsL2KXih1sKnoqmH6tp89J7Q==", "dev": true, "requires": { "@jest/environment": "^29.0.2", @@ -23651,8 +22830,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -23660,8 +22837,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -23670,8 +22845,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -23679,20 +22852,14 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -23705,8 +22872,6 @@ }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -23716,14 +22881,10 @@ }, "jest-get-type": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.5.1.tgz", - "integrity": "sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw==", "dev": true }, "jest-leak-detector": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.0.2.tgz", - "integrity": "sha512-5f0493qDeAxjUldkBSQg5D1cLadRgZVyWpTQvfJeQwQUpHQInE21AyVHVv64M7P2Ue8Z5EZ4BAcoDS/dSPPgMw==", "dev": true, "requires": { "jest-get-type": "^29.0.0", @@ -23732,20 +22893,14 @@ "dependencies": { "ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true }, "jest-get-type": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", - "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true }, "pretty-format": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", - "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, "requires": { "@jest/schemas": "^29.0.0", @@ -23755,16 +22910,12 @@ }, "react-is": { "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true } } }, "jest-matcher-utils": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz", - "integrity": "sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw==", "dev": true, "requires": { "chalk": "^4.0.0", @@ -23775,8 +22926,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -23784,8 +22933,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -23794,8 +22941,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -23803,20 +22948,14 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -23826,8 +22965,6 @@ }, "jest-message-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.0.2.tgz", - "integrity": "sha512-kcJAgms3ckJV0wUoLsAM40xAhY+pb9FVSZwicjFU9PFkaTNmqh9xd99/CzKse48wPM1ANUQKmp03/DpkY+lGrA==", "dev": true, "requires": { "@babel/code-frame": "^7.12.13", @@ -23843,8 +22980,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -23852,8 +22987,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -23862,8 +22995,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -23871,20 +23002,14 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "pretty-format": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", - "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, "requires": { "@jest/schemas": "^29.0.0", @@ -23894,22 +23019,16 @@ "dependencies": { "ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true } } }, "react-is": { "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -23919,8 +23038,6 @@ }, "jest-mock": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.0.2.tgz", - "integrity": "sha512-giWXOIT23UCxHCN2VUfUJ0Q7SmiqQwfSFXlCaIhW5anITpNQ+3vuLPQdKt5wkuwM37GrbFyHIClce8AAK9ft9g==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -23929,15 +23046,11 @@ }, "jest-pnp-resolver": { "version": "1.2.2", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz", - "integrity": "sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==", "dev": true, "requires": {} }, "jest-resolve": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.0.2.tgz", - "integrity": "sha512-V3uLjSA+EHxLtjIDKTBXnY71hyx+8lusCqPXvqzkFO1uCGvVpjBfuOyp+KOLBNSuY61kM2jhepiMwt4eiJS+Vw==", "dev": true, "requires": { "chalk": "^4.0.0", @@ -23953,8 +23066,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -23962,8 +23073,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -23972,8 +23081,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -23981,20 +23088,14 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "jest-haste-map": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", - "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -24013,14 +23114,10 @@ }, "jest-regex-util": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", - "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true }, "jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -24033,8 +23130,6 @@ }, "jest-worker": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", - "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", "dev": true, "requires": { "@types/node": "*", @@ -24044,8 +23139,6 @@ "dependencies": { "supports-color": { "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -24055,8 +23148,6 @@ }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -24066,8 +23157,6 @@ }, "jest-resolve-dependencies": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.0.2.tgz", - "integrity": "sha512-fSAu6eIG7wtGdnPJUkVVdILGzYAP9Dj/4+zvC8BrGe8msaUMJ9JeygU0Hf9+Uor6/icbuuzQn5See1uajLnAqg==", "dev": true, "requires": { "jest-regex-util": "^29.0.0", @@ -24076,16 +23165,12 @@ "dependencies": { "jest-regex-util": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", - "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true } } }, "jest-runner": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.0.2.tgz", - "integrity": "sha512-+D82iPZejI8t+SfduOO1deahC/QgLFf8aJBO++Znz3l2ETtOMdM7K4ATsGWzCFnTGio5yHaRifg1Su5Ybza5Nw==", "dev": true, "requires": { "@jest/console": "^29.0.2", @@ -24113,8 +23198,6 @@ "dependencies": { "@jest/transform": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", - "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", "dev": true, "requires": { "@babel/core": "^7.11.6", @@ -24136,8 +23219,6 @@ }, "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -24145,8 +23226,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -24155,8 +23234,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -24164,20 +23241,14 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "jest-haste-map": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", - "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -24196,14 +23267,10 @@ }, "jest-regex-util": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", - "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true }, "jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -24216,8 +23283,6 @@ }, "jest-worker": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", - "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", "dev": true, "requires": { "@types/node": "*", @@ -24227,8 +23292,6 @@ "dependencies": { "supports-color": { "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -24238,8 +23301,6 @@ }, "p-limit": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "requires": { "yocto-queue": "^0.1.0" @@ -24247,8 +23308,6 @@ }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -24256,8 +23315,6 @@ }, "write-file-atomic": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, "requires": { "imurmurhash": "^0.1.4", @@ -24268,8 +23325,6 @@ }, "jest-runtime": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.0.2.tgz", - "integrity": "sha512-DO6F81LX4okOgjJLkLySv10E5YcV5NHUbY1ZqAUtofxdQE+q4hjH0P2gNsY8x3z3sqgw7O/+919SU4r18Fcuig==", "dev": true, "requires": { "@jest/environment": "^29.0.2", @@ -24298,8 +23353,6 @@ "dependencies": { "@jest/transform": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", - "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", "dev": true, "requires": { "@babel/core": "^7.11.6", @@ -24321,8 +23374,6 @@ }, "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -24330,8 +23381,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -24340,8 +23389,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -24349,20 +23396,14 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "jest-haste-map": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", - "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -24381,14 +23422,10 @@ }, "jest-regex-util": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", - "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true }, "jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -24401,8 +23438,6 @@ }, "jest-worker": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", - "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", "dev": true, "requires": { "@types/node": "*", @@ -24412,8 +23447,6 @@ "dependencies": { "supports-color": { "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -24423,14 +23456,10 @@ }, "strip-bom": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "dev": true }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -24438,8 +23467,6 @@ }, "write-file-atomic": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, "requires": { "imurmurhash": "^0.1.4", @@ -24450,8 +23477,6 @@ }, "jest-snapshot": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.0.2.tgz", - "integrity": "sha512-26C4PzGKaX5gkoKg8UzYGVy2HPVcTaROSkf0gwnHu3lGeTB7bAIJBovvVPZoiJ20IximJELQs/r8WSDRCuGX2A==", "dev": true, "requires": { "@babel/core": "^7.11.6", @@ -24482,8 +23507,6 @@ "dependencies": { "@jest/transform": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.0.2.tgz", - "integrity": "sha512-lajVQx2AnsR+Pa17q2zR7eikz2PkPs1+g/qPbZkqQATeS/s6eT55H+yHcsLfuI/0YQ/4VSBepSu3bOX+44q0aA==", "dev": true, "requires": { "@babel/core": "^7.11.6", @@ -24505,8 +23528,6 @@ }, "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -24514,8 +23535,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -24524,8 +23543,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -24533,26 +23550,18 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "diff-sequences": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.0.0.tgz", - "integrity": "sha512-7Qe/zd1wxSDL4D/X/FPjOMB+ZMDt71W94KYaq05I2l0oQqgXgs7s4ftYYmV38gBSrPz2vcygxfs1xn0FT+rKNA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "jest-diff": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.0.2.tgz", - "integrity": "sha512-b9l9970sa1rMXH1owp2Woprmy42qIwwll/htsw4Gf7+WuSp5bZxNhkKHDuCGKL+HoHn1KhcC+tNEeAPYBkD2Jg==", "dev": true, "requires": { "chalk": "^4.0.0", @@ -24563,14 +23572,10 @@ }, "jest-get-type": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", - "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true }, "jest-haste-map": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.0.2.tgz", - "integrity": "sha512-SOorh2ysQ0fe8gsF4gaUDhoMIWAvi2hXOkwThEO48qT3JqA8GLAUieQcIvdSEd6M0scRDe1PVmKc5tXR3Z0U0A==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -24589,8 +23594,6 @@ }, "jest-matcher-utils": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.0.2.tgz", - "integrity": "sha512-s62YkHFBfAx0JLA2QX1BlnCRFwHRobwAv2KP1+YhjzF6ZCbCVrf1sG8UJyn62ZUsDaQKpoo86XMTjkUyO5aWmQ==", "dev": true, "requires": { "chalk": "^4.0.0", @@ -24601,14 +23604,10 @@ }, "jest-regex-util": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.0.0.tgz", - "integrity": "sha512-BV7VW7Sy0fInHWN93MMPtlClweYv2qrSCwfeFWmpribGZtQPWNvRSq9XOVgOEjU1iBGRKXUZil0o2AH7Iy9Lug==", "dev": true }, "jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -24621,8 +23620,6 @@ }, "jest-worker": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.0.2.tgz", - "integrity": "sha512-EyvBlYcvd2pg28yg5A3OODQnqK9LI1kitnGUZUG5/NYIeaRgewtYBKB5wlr7oXj8zPCkzev7EmnTCsrXK7V+Xw==", "dev": true, "requires": { "@types/node": "*", @@ -24632,8 +23629,6 @@ "dependencies": { "supports-color": { "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -24643,8 +23638,6 @@ }, "pretty-format": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", - "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, "requires": { "@jest/schemas": "^29.0.0", @@ -24654,22 +23647,16 @@ "dependencies": { "ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true } } }, "react-is": { "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, "semver": { "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -24677,8 +23664,6 @@ }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -24686,8 +23671,6 @@ }, "write-file-atomic": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, "requires": { "imurmurhash": "^0.1.4", @@ -24698,8 +23681,6 @@ }, "jest-validate": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.0.2.tgz", - "integrity": "sha512-AeRKm7cEucSy7tr54r3LhiGIXYvOILUwBM1S7jQkKs6YelwAlWKsmZGVrQR7uwsd31rBTnR5NQkODi1Z+6TKIQ==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -24712,8 +23693,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -24721,14 +23700,10 @@ }, "camelcase": { "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -24737,8 +23712,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -24746,26 +23719,18 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "jest-get-type": { "version": "29.0.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.0.0.tgz", - "integrity": "sha512-83X19z/HuLKYXYHskZlBAShO7UfLFXu/vWajw9ZNJASN32li8yHMaVGAQqxFW1RCFOkB7cubaL6FaJVQqqJLSw==", "dev": true }, "pretty-format": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.0.2.tgz", - "integrity": "sha512-wp3CdtUa3cSJVFn3Miu5a1+pxc1iPIQTenOAn+x5erXeN1+ryTcLesV5pbK/rlW5EKwp27x38MoYfNGaNXDDhg==", "dev": true, "requires": { "@jest/schemas": "^29.0.0", @@ -24775,22 +23740,16 @@ "dependencies": { "ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true } } }, "react-is": { "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -24800,8 +23759,6 @@ }, "jest-watcher": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.0.2.tgz", - "integrity": "sha512-ds2bV0oyUdYoyrUTv4Ga5uptz4cEvmmP/JzqDyzZZanvrIn8ipxg5l3SDOAIiyuAx1VdHd2FBzeXPFO5KPH8vQ==", "dev": true, "requires": { "@jest/test-result": "^29.0.2", @@ -24816,8 +23773,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -24825,8 +23780,6 @@ }, "chalk": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -24835,8 +23788,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -24844,20 +23795,14 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "jest-util": { "version": "29.0.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.0.2.tgz", - "integrity": "sha512-ozk8ruEEEACxqpz0hN9UOgtPZS0aN+NffwQduR5dVlhN+eN47vxurtvgZkYZYMpYrsmlAEx1XabkB3BnN0GfKQ==", "dev": true, "requires": { "@jest/types": "^29.0.2", @@ -24870,8 +23815,34 @@ }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -24881,60 +23852,42 @@ }, "js-tokens": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "dev": true }, "js-yaml": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "requires": { "argparse": "^2.0.1" }, "dependencies": { "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + "version": "2.0.1" } } }, "jsep": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.3.0.tgz", - "integrity": "sha512-gUqWoMxGo5xME0fLpbX36kYkCtxqKvyZYxntXTCpaVg45oW1nppWB9QcOiubAi0c/oRkDuv3/wEi2WbIh9uRqQ==" + "version": "1.3.0" }, "jsesc": { "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", "dev": true }, "json-parse-better-errors": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", "dev": true }, "json-parse-even-better-errors": { "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true }, "json-schema-migrate": { "version": "0.2.0", - "resolved": "https://registry.npmjs.org/json-schema-migrate/-/json-schema-migrate-0.2.0.tgz", - "integrity": "sha512-dq4/oHWmtw/+0ytnXsDqVn+VsVweTEmzm5jLgguPn9BjSzn6/q58ZiZx3BHiQyJs612f0T5Z+MrUEUUY5DHsRg==", "requires": { "ajv": "^5.0.0" }, "dependencies": { "ajv": { "version": "5.5.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", - "integrity": "sha512-Ajr4IcMXq/2QmMkEmSvxqfLN5zGmJ92gHXAeOXq1OekoH2rfDNsgdDoL2f7QaRCy7G/E6TpxBVdRuNraMztGHw==", "requires": { "co": "^4.6.0", "fast-deep-equal": "^1.0.0", @@ -24943,52 +23896,36 @@ } }, "fast-deep-equal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", - "integrity": "sha512-fueX787WZKCV0Is4/T2cyAdM4+x1S3MXXOAhavE1ys/W42SHAPacLTQhucja22QBYrfGw50M2sRiXPtTGv9Ymw==" + "version": "1.1.0" }, "json-schema-traverse": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", - "integrity": "sha512-4JD/Ivzg7PoW8NzdrBSr3UFwC9mHgvI7Z6z3QGBsSHgKaRTUDmyZAAKJo2UbG1kUVfS9WS8bi36N49U1xw43DA==" + "version": "0.3.1" } } }, "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + "version": "0.4.1" }, "json-stable-stringify-without-jsonify": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", "dev": true }, "json-stringify-safe": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", "dev": true }, "json5": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", - "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", "dev": true, "requires": { "minimist": "^1.2.5" } }, "jsonc-parser": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.2.1.tgz", - "integrity": "sha512-o6/yDBYccGvTz1+QFevz6l6OBZ2+fMVu2JZ9CIhzsYRX4mjaK5IyX9eldUdCmga16zlgQxyrj5pt9kzuj2C02w==" + "version": "2.2.1" }, "jsonfile": { "version": "6.0.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.0.1.tgz", - "integrity": "sha512-jR2b5v7d2vIOust+w3wtFKZIfpC2pnRmFAhAC/BuweZFQR8qZzxH1OyrQ10HmdVYiXWkYUqPVsz91cG7EL2FBg==", "dev": true, "requires": { "graceful-fs": "^4.1.6", @@ -24997,24 +23934,16 @@ }, "jsonparse": { "version": "1.3.1", - "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", - "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=", "dev": true }, "jsonpath-plus": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-7.2.0.tgz", - "integrity": "sha512-zBfiUPM5nD0YZSBT/o/fbCUlCcepMIdP0CJZxM1+KgA4f2T206f6VAg9e7mX35+KlMaIc5qXW34f3BnwJ3w+RA==" + "version": "7.2.0" }, "jsonpointer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", - "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==" + "version": "5.0.1" }, "JSONStream": { "version": "1.3.5", - "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", - "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", "dev": true, "requires": { "jsonparse": "^1.2.0", @@ -25023,8 +23952,6 @@ }, "jsx-ast-utils": { "version": "3.3.3", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", - "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==", "dev": true, "requires": { "array-includes": "^3.1.5", @@ -25033,8 +23960,6 @@ }, "kind-of": { "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { "is-buffer": "^1.1.5" @@ -25042,20 +23967,14 @@ }, "kleur": { "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", "dev": true }, "language-subtag-registry": { "version": "0.3.22", - "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz", - "integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w==", "dev": true }, "language-tags": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz", - "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==", "dev": true, "requires": { "language-subtag-registry": "~0.3.2" @@ -25063,22 +23982,16 @@ }, "lazy-cache": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", - "integrity": "sha1-uRkKT5EzVGlIQIWfio9whNiCImQ=", "dev": true, "requires": { "set-getter": "^0.1.0" } }, "leven": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==" + "version": "3.1.0" }, "levn": { "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "dev": true, "requires": { "prelude-ls": "^1.2.1", @@ -25087,14 +24000,10 @@ }, "lines-and-columns": { "version": "1.1.6", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", - "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", "dev": true }, "list-item": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/list-item/-/list-item-1.1.1.tgz", - "integrity": "sha1-DGXQDih8tmPMs8s4Sad+iewmilY=", "dev": true, "requires": { "expand-range": "^1.8.1", @@ -25105,8 +24014,6 @@ "dependencies": { "is-number": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", "dev": true, "requires": { "kind-of": "^3.0.2" @@ -25116,8 +24023,6 @@ }, "load-json-file": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", - "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", "dev": true, "requires": { "graceful-fs": "^4.1.2", @@ -25126,10 +24031,14 @@ "strip-bom": "^3.0.0" } }, + "loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true + }, "locate-path": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", "dev": true, "requires": { "p-locate": "^2.0.0", @@ -25137,84 +24046,56 @@ } }, "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + "version": "4.17.21" }, "lodash._reinterpolate": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", - "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=", "dev": true }, "lodash.camelcase": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", "dev": true }, "lodash.capitalize": { "version": "4.2.1", - "resolved": "https://registry.npmjs.org/lodash.capitalize/-/lodash.capitalize-4.2.1.tgz", - "integrity": "sha1-+CbJtOKoUR2E46yinbBeGk87cqk=", "dev": true }, "lodash.escaperegexp": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.escaperegexp/-/lodash.escaperegexp-4.1.2.tgz", - "integrity": "sha1-ZHYsSGGAglGKw99Mz11YhtriA0c=", "dev": true }, "lodash.get": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", - "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=" + "version": "4.4.2" }, "lodash.ismatch": { "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz", - "integrity": "sha1-dWy1FQyjum8RCFp4hJZF8Yj4Xzc=", "dev": true }, "lodash.isplainobject": { "version": "4.0.6", - "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=", "dev": true }, "lodash.isstring": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", - "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=", "dev": true }, "lodash.kebabcase": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz", - "integrity": "sha512-N8XRTIMMqqDgSy4VLKPnJ/+hpGZN+PHQiJnSenYqPaVV/NCqEogTnAdZLQiGKhxX+JCs8waWq2t1XHWKOmlY8g==", "dev": true }, "lodash.merge": { "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "dev": true }, "lodash.set": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", - "integrity": "sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM=" + "version": "4.3.2" }, "lodash.snakecase": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", - "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==", "dev": true }, "lodash.template": { "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz", - "integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==", "dev": true, "requires": { "lodash._reinterpolate": "^3.0.0", @@ -25223,8 +24104,6 @@ }, "lodash.templatesettings": { "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz", - "integrity": "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==", "dev": true, "requires": { "lodash._reinterpolate": "^3.0.0" @@ -25232,31 +24111,21 @@ }, "lodash.toarray": { "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.toarray/-/lodash.toarray-4.4.0.tgz", - "integrity": "sha1-JMS/zWsvuji/0FlNsRedjptlZWE=", "dev": true }, "lodash.topath": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/lodash.topath/-/lodash.topath-4.5.2.tgz", - "integrity": "sha512-1/W4dM+35DwvE/iEd1M9ekewOSTlpFekhw9mhAtrwjVqUr83/ilQiyAvmg4tVX7Unkcfl1KC+i9WdaT4B6aQcg==" + "version": "4.5.2" }, "lodash.uniqby": { "version": "4.7.0", - "resolved": "https://registry.npmjs.org/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz", - "integrity": "sha1-2ZwHpmnp5tJOE2Lf4mbGdhavEwI=", "dev": true }, "lodash.upperfirst": { "version": "4.3.1", - "resolved": "https://registry.npmjs.org/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz", - "integrity": "sha512-sReKOYJIJf74dhJONhU4e0/shzi1trVbSWDOhKYE5XV2O+H7Sb2Dihwuc7xWxVl+DgFPyTqIN3zMfT9cq5iWDg==", "dev": true }, "lru-cache": { "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, "requires": { "yallist": "^4.0.0" @@ -25264,8 +24133,6 @@ }, "make-dir": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", "dev": true, "requires": { "semver": "^6.0.0" @@ -25273,22 +24140,16 @@ "dependencies": { "semver": { "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true } } }, "make-error": { "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", "dev": true }, "makeerror": { "version": "1.0.12", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", - "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", "dev": true, "requires": { "tmpl": "1.0.5" @@ -25296,20 +24157,14 @@ }, "map-obj": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz", - "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==", "dev": true }, "markdown-link": { "version": "0.1.1", - "resolved": "https://registry.npmjs.org/markdown-link/-/markdown-link-0.1.1.tgz", - "integrity": "sha1-MsXGUZmmRXMWMi0eQinRNAfIx88=", "dev": true }, "markdown-toc": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/markdown-toc/-/markdown-toc-1.2.0.tgz", - "integrity": "sha512-eOsq7EGd3asV0oBfmyqngeEIhrbkc7XVP63OwcJBIhH2EpG2PzFcbZdhy1jutXSlRBBVMNXHvMtSr5LAxSUvUg==", "dev": true, "requires": { "concat-stream": "^1.5.2", @@ -25328,14 +24183,10 @@ }, "marked": { "version": "2.1.3", - "resolved": "https://registry.npmjs.org/marked/-/marked-2.1.3.tgz", - "integrity": "sha512-/Q+7MGzaETqifOMWYEA7HVMaZb4XbcRfaOzcSsHZEith83KGlvaSG33u0SKu89Mj5h+T8V2hM+8O45Qc5XTgwA==", "dev": true }, "marked-terminal": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/marked-terminal/-/marked-terminal-4.1.1.tgz", - "integrity": "sha512-t7Mdf6T3PvOEyN01c3tYxDzhyKZ8xnkp8Rs6Fohno63L/0pFTJ5Qtwto2AQVuDtbQiWzD+4E5AAu1Z2iLc8miQ==", "dev": true, "requires": { "ansi-escapes": "^4.3.1", @@ -25348,8 +24199,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -25357,8 +24206,6 @@ }, "chalk": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", - "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -25367,8 +24214,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -25376,20 +24221,14 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -25399,14 +24238,10 @@ }, "math-random": { "version": "1.0.4", - "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.4.tgz", - "integrity": "sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A==", "dev": true }, "meow": { "version": "8.1.2", - "resolved": "https://registry.npmjs.org/meow/-/meow-8.1.2.tgz", - "integrity": "sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q==", "dev": true, "requires": { "@types/minimist": "^1.2.0", @@ -25424,8 +24259,6 @@ "dependencies": { "hosted-git-info": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", - "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -25433,8 +24266,6 @@ }, "normalize-package-data": { "version": "3.0.3", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz", - "integrity": "sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==", "dev": true, "requires": { "hosted-git-info": "^4.0.1", @@ -25445,8 +24276,6 @@ }, "semver": { "version": "7.3.7", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", - "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -25454,28 +24283,20 @@ }, "type-fest": { "version": "0.18.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.18.1.tgz", - "integrity": "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==", "dev": true } } }, "merge-stream": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", "dev": true }, "merge2": { "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true }, "micromatch": { "version": "4.0.4", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", - "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", "dev": true, "requires": { "braces": "^3.0.1", @@ -25484,40 +24305,43 @@ }, "mime": { "version": "2.5.2", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.5.2.tgz", - "integrity": "sha512-tqkh47FzKeCPD2PUiPB6pkbMzsCasjxAfC62/Wap5qrUWcb+sFasXUC5I3gYM5iBM8v/Qpn4UK0x+j0iHyFPDg==", "dev": true }, + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true + }, + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "requires": { + "mime-db": "1.52.0" + } + }, "mimic-fn": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true }, "min-indent": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", - "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", "dev": true }, "minimatch": { "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "requires": { "brace-expansion": "^1.1.7" } }, "minimist": { "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", "dev": true }, "minimist-options": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz", - "integrity": "sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==", "dev": true, "requires": { "arrify": "^1.0.1", @@ -25527,16 +24351,12 @@ "dependencies": { "kind-of": { "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true } } }, "mixin-deep": { "version": "1.3.2", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", - "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", "dev": true, "requires": { "for-in": "^1.0.2", @@ -25545,8 +24365,6 @@ "dependencies": { "is-extendable": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", "dev": true, "requires": { "is-plain-object": "^2.0.4" @@ -25554,55 +24372,49 @@ }, "is-plain-object": { "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", "dev": true, "requires": { "isobject": "^3.0.1" } - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true } } }, + "mkdirp-classic": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", + "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", + "dev": true + }, "modify-values": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/modify-values/-/modify-values-1.0.1.tgz", - "integrity": "sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==", + "dev": true + }, + "mrmime": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-1.0.1.tgz", + "integrity": "sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==", "dev": true }, "ms": { "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, "natural-compare": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", "dev": true }, "neo-async": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz", - "integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", "dev": true }, "nerf-dart": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/nerf-dart/-/nerf-dart-1.0.0.tgz", - "integrity": "sha1-5tq3/r9a2Bbqgc9cYpxaDr3nLBo=", "dev": true }, "nimma": { "version": "0.2.2", - "resolved": "https://registry.npmjs.org/nimma/-/nimma-0.2.2.tgz", - "integrity": "sha512-V52MLl7BU+tH2Np9tDrIXK8bql3MVUadnMIl/0/oZSGC9keuro0O9UUv9QKp0aMvtN8HRew4G7byY7H4eWsxaQ==", "requires": { "@jsep-plugin/regex": "^1.0.1", "@jsep-plugin/ternary": "^1.0.2", @@ -25614,16 +24426,12 @@ "dependencies": { "jsonpath-plus": { "version": "6.0.1", - "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-6.0.1.tgz", - "integrity": "sha512-EvGovdvau6FyLexFH2OeXfIITlgIbgZoAZe3usiySeaIDm5QS+A10DKNpaPBBqqRSZr2HN6HVNXxtwUAr2apEw==", "optional": true } } }, "node-emoji": { "version": "1.10.0", - "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.10.0.tgz", - "integrity": "sha512-Yt3384If5H6BYGVHiHwTL+99OzJKHhgp82S8/dktEK73T26BazdgZ4JZh92xSVtGNJvz9UbXdNAc5hcrXV42vw==", "dev": true, "requires": { "lodash.toarray": "^4.4.0" @@ -25631,28 +24439,20 @@ }, "node-fetch": { "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", "requires": { "whatwg-url": "^5.0.0" } }, "node-int64": { "version": "0.4.0", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=", "dev": true }, "node-releases": { "version": "2.0.6", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", - "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==", "dev": true }, "normalize-package-data": { "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", "dev": true, "requires": { "hosted-git-info": "^2.1.4", @@ -25663,20 +24463,14 @@ }, "normalize-path": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true }, "normalize-url": { "version": "5.3.1", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-5.3.1.tgz", - "integrity": "sha512-K1c7+vaAP+Yh5bOGmA10PGPpp+6h7WZrl7GwqKhUflBc9flU9pzG27DDeB9+iuhZkE3BJZOcgN1P/2sS5pqrWw==", "dev": true }, "npm": { "version": "6.14.17", - "resolved": "https://registry.npmjs.org/npm/-/npm-6.14.17.tgz", - "integrity": "sha512-CxEDn1ydVRPDl4tHrlnq+WevYAhv4GF2AEHzJKQ4prZDZ96IS3Uo6t0Sy6O9kB6XzqkI+J00WfYCqqk0p6IJ1Q==", "dev": true, "requires": { "abbrev": "~1.1.1", @@ -25696,7 +24490,6 @@ "cmd-shim": "^3.0.3", "columnify": "~1.5.4", "config-chain": "^1.1.12", - "debuglog": "*", "detect-indent": "~5.0.0", "detect-newline": "^2.1.0", "dezalgo": "~1.0.3", @@ -25711,7 +24504,6 @@ "has-unicode": "~2.0.1", "hosted-git-info": "^2.8.9", "iferr": "^1.0.2", - "imurmurhash": "*", "infer-owner": "^1.0.4", "inflight": "~1.0.6", "inherits": "^2.0.4", @@ -25731,14 +24523,8 @@ "libnpx": "^10.2.4", "lock-verify": "^2.1.0", "lockfile": "^1.0.4", - "lodash._baseindexof": "*", "lodash._baseuniq": "~4.6.0", - "lodash._bindcallback": "*", - "lodash._cacheindexof": "*", - "lodash._createcache": "*", - "lodash._getnative": "*", "lodash.clonedeep": "~4.5.0", - "lodash.restparam": "*", "lodash.union": "~4.6.0", "lodash.uniq": "~4.5.0", "lodash.without": "~4.4.0", @@ -27485,7 +26271,7 @@ "lodash._baseindexof": { "version": "3.1.0", "bundled": true, - "dev": true + "extraneous": true }, "lodash._baseuniq": { "version": "4.6.0", @@ -27499,17 +26285,17 @@ "lodash._bindcallback": { "version": "3.0.1", "bundled": true, - "dev": true + "extraneous": true }, "lodash._cacheindexof": { "version": "3.0.2", "bundled": true, - "dev": true + "extraneous": true }, "lodash._createcache": { "version": "3.1.2", "bundled": true, - "dev": true, + "extraneous": true, "requires": { "lodash._getnative": "^3.0.0" } @@ -27522,7 +26308,7 @@ "lodash._getnative": { "version": "3.9.1", "bundled": true, - "dev": true + "extraneous": true }, "lodash._root": { "version": "3.0.1", @@ -27537,7 +26323,7 @@ "lodash.restparam": { "version": "3.6.1", "bundled": true, - "dev": true + "extraneous": true }, "lodash.union": { "version": "4.6.0", @@ -29214,27 +28000,19 @@ }, "npm-run-path": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, "requires": { "path-key": "^3.0.0" } }, "object-inspect": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", - "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==" + "version": "1.12.2" }, "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" + "version": "1.1.1" }, "object.assign": { "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", @@ -29244,25 +28022,13 @@ }, "object.pick": { "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", "dev": true, "requires": { "isobject": "^3.0.1" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "dev": true - } } }, "object.values": { "version": "1.1.5", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.5.tgz", - "integrity": "sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg==", "dev": true, "requires": { "call-bind": "^1.0.2", @@ -29272,8 +28038,6 @@ }, "once": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "requires": { "wrappy": "1" @@ -29281,17 +28045,19 @@ }, "onetime": { "version": "5.1.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz", - "integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==", "dev": true, "requires": { "mimic-fn": "^2.1.0" } }, + "opener": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", + "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", + "dev": true + }, "optionator": { "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", "dev": true, "requires": { "deep-is": "^0.1.3", @@ -29304,14 +28070,10 @@ }, "p-each-series": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", - "integrity": "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==", "dev": true }, "p-filter": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-filter/-/p-filter-2.1.0.tgz", - "integrity": "sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw==", "dev": true, "requires": { "p-map": "^2.0.0" @@ -29319,14 +28081,10 @@ }, "p-is-promise": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-3.0.0.tgz", - "integrity": "sha512-Wo8VsW4IRQSKVXsJCn7TomUaVtyfjVDn3nUP7kE967BQk0CwFpdbZs0X0uk5sW9mkBa9eNM7hCMaG93WUAwxYQ==", "dev": true }, "p-limit": { "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", "dev": true, "requires": { "p-try": "^1.0.0" @@ -29334,8 +28092,6 @@ }, "p-locate": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", "dev": true, "requires": { "p-limit": "^1.1.0" @@ -29343,20 +28099,14 @@ }, "p-map": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", - "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", "dev": true }, "p-reduce": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-reduce/-/p-reduce-2.1.0.tgz", - "integrity": "sha512-2USApvnsutq8uoxZBGbbWM0JIYLiEMJ9RlaN7fAzVNb9OZN0SHjjTTfIcb667XynS5Y1VhwDJVDa72TnPzAYWw==", "dev": true }, "p-retry": { "version": "4.5.0", - "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.5.0.tgz", - "integrity": "sha512-5Hwh4aVQSu6BEP+w2zKlVXtFAaYQe1qWuVADSgoeVlLjwe/Q/AMSoRR4MDeaAfu8llT+YNbEijWu/YF3m6avkg==", "dev": true, "requires": { "@types/retry": "^0.12.0", @@ -29365,14 +28115,10 @@ }, "p-try": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", "dev": true }, "parent-module": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, "requires": { "callsites": "^3.0.0" @@ -29380,66 +28126,58 @@ }, "parse-json": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", "dev": true, "requires": { "error-ex": "^1.3.1", "json-parse-better-errors": "^1.0.1" } }, + "path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "dev": true + }, "path-exists": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", "dev": true }, "path-is-absolute": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true }, "path-key": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true }, "path-parse": { "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", "dev": true }, "picocolors": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", "dev": true }, "picomatch": { "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true }, "pify": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", "dev": true }, "pirates": { "version": "4.0.5", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", - "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", "dev": true }, "pkg-conf": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-2.1.0.tgz", - "integrity": "sha1-ISZRTKbyq/69FoWW3xi6V4Z/AFg=", "dev": true, "requires": { "find-up": "^2.0.0", @@ -29448,8 +28186,6 @@ }, "pkg-dir": { "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, "requires": { "find-up": "^4.0.0" @@ -29457,8 +28193,6 @@ "dependencies": { "find-up": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "requires": { "locate-path": "^5.0.0", @@ -29467,8 +28201,6 @@ }, "locate-path": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, "requires": { "p-locate": "^4.1.0" @@ -29476,8 +28208,6 @@ }, "p-limit": { "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "requires": { "p-try": "^2.0.0" @@ -29485,8 +28215,6 @@ }, "p-locate": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, "requires": { "p-limit": "^2.2.0" @@ -29494,39 +28222,27 @@ }, "p-try": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true }, "path-exists": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true } } }, "pony-cause": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pony-cause/-/pony-cause-1.1.1.tgz", - "integrity": "sha512-PxkIc/2ZpLiEzQXu5YRDOUgBlfGYBY8156HY5ZcRAwwonMk5W/MrJP2LLkG/hF7GEQzaHo2aS7ho6ZLCOvf+6g==" + "version": "1.1.1" }, "prelude-ls": { "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true }, "prettier": { "version": "2.7.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", - "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", "dev": true }, "prettier-linter-helpers": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", "dev": true, "requires": { "fast-diff": "^1.1.2" @@ -29534,8 +28250,6 @@ }, "pretty-format": { "version": "27.5.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", - "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", "dev": true, "requires": { "ansi-regex": "^5.0.1", @@ -29545,32 +28259,36 @@ "dependencies": { "ansi-styles": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true } } }, "process-nextick-args": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, + "progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", "dev": true }, "prompts": { "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", "dev": true, "requires": { "kleur": "^3.0.3", "sisteransi": "^1.0.5" } }, + "proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "dev": true + }, "pump": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", "dev": true, "requires": { "end-of-stream": "^1.1.0", @@ -29578,32 +28296,41 @@ } }, "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" + "version": "2.1.1" + }, + "puppeteer": { + "version": "17.1.2", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-17.1.2.tgz", + "integrity": "sha512-xgFOxUl4hRjwQpODZSeJlE/rUzi8OmHtc3T4ir4CRYGzVmaTVHAl8VGpI0ooy752u2DFeMxvQdHmxNnLqPImIg==", + "dev": true, + "requires": { + "cross-fetch": "3.1.5", + "debug": "4.3.4", + "devtools-protocol": "0.0.1036444", + "extract-zip": "2.0.1", + "https-proxy-agent": "5.0.1", + "progress": "2.0.3", + "proxy-from-env": "1.1.0", + "rimraf": "3.0.2", + "tar-fs": "2.1.1", + "unbzip2-stream": "1.4.3", + "ws": "8.8.1" + } }, "q": { "version": "1.5.1", - "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", - "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", "dev": true }, "queue-microtask": { "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", "dev": true }, "quick-lru": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz", - "integrity": "sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==", "dev": true }, "ramldt2jsonschema": { "version": "1.2.3", - "resolved": "https://registry.npmjs.org/ramldt2jsonschema/-/ramldt2jsonschema-1.2.3.tgz", - "integrity": "sha512-+wLDAV2NNv9NkfEUOYStaDu/6RYgYXeC1zLtXE+dMU/jDfjpN4iJnBGycDwFTFaIQGosOQhxph7fEX6Mpwxdug==", "requires": { "commander": "^5.0.0", "js-yaml": "^3.14.0", @@ -29613,8 +28340,6 @@ "dependencies": { "js-yaml": { "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -29624,8 +28349,6 @@ }, "randomatic": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz", - "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", "dev": true, "requires": { "is-number": "^4.0.0", @@ -29635,22 +28358,25 @@ "dependencies": { "is-number": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", - "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", "dev": true }, "kind-of": { "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true } } }, + "randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "requires": { + "safe-buffer": "^5.1.0" + } + }, "rc": { "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", "dev": true, "requires": { "deep-extend": "^0.6.0", @@ -29661,14 +28387,10 @@ }, "react-is": { "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", "dev": true }, "read-pkg": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", "dev": true, "requires": { "@types/normalize-package-data": "^2.4.0", @@ -29679,8 +28401,6 @@ "dependencies": { "parse-json": { "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", @@ -29693,8 +28413,6 @@ }, "read-pkg-up": { "version": "7.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", - "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", "dev": true, "requires": { "find-up": "^4.1.0", @@ -29704,8 +28422,6 @@ "dependencies": { "find-up": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "requires": { "locate-path": "^5.0.0", @@ -29714,8 +28430,6 @@ }, "locate-path": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, "requires": { "p-locate": "^4.1.0" @@ -29723,8 +28437,6 @@ }, "p-limit": { "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "requires": { "p-try": "^2.0.0" @@ -29732,8 +28444,6 @@ }, "p-locate": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, "requires": { "p-limit": "^2.2.0" @@ -29741,28 +28451,20 @@ }, "p-try": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true }, "path-exists": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true }, "type-fest": { "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", "dev": true } } }, "readable-stream": { "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", "dev": true, "requires": { "core-util-is": "~1.0.0", @@ -29774,10 +28476,17 @@ "util-deprecate": "~1.0.1" } }, + "rechoir": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", + "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", + "dev": true, + "requires": { + "resolve": "^1.9.0" + } + }, "redent": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", - "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", "dev": true, "requires": { "indent-string": "^4.0.0", @@ -29786,8 +28495,6 @@ }, "redeyed": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/redeyed/-/redeyed-2.1.1.tgz", - "integrity": "sha1-iYS1gV2ZyyIEacme7v/jiRPmzAs=", "dev": true, "requires": { "esprima": "~4.0.0" @@ -29795,20 +28502,14 @@ }, "regenerator-runtime": { "version": "0.13.9", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", - "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==", "dev": true }, "regexp-tree": { "version": "0.1.24", - "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.24.tgz", - "integrity": "sha512-s2aEVuLhvnVJW6s/iPgEGK6R+/xngd2jNQ+xy4bXNDKxZKJH6jpPHY6kVeVv1IeLCHgswRj+Kl3ELaDjG6V1iw==", "dev": true }, "regexp.prototype.flags": { "version": "1.4.3", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", - "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.3", @@ -29817,14 +28518,10 @@ }, "regexpp": { "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", "dev": true }, "registry-auth-token": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.1.1.tgz", - "integrity": "sha512-9bKS7nTl9+/A1s7tnPeGrUpRcVY+LUh7bfFgzpndALdPfXQBfQV77rQVtqgUV3ti4vc/Ik81Ex8UJDWDQ12zQA==", "dev": true, "requires": { "rc": "^1.2.8" @@ -29832,8 +28529,6 @@ }, "remarkable": { "version": "1.7.4", - "resolved": "https://registry.npmjs.org/remarkable/-/remarkable-1.7.4.tgz", - "integrity": "sha512-e6NKUXgX95whv7IgddywbeN/ItCkWbISmc2DiqHJb0wTrqZIexqdco5b8Z3XZoo/48IdNVKM9ZCvTPJ4F5uvhg==", "dev": true, "requires": { "argparse": "^1.0.10", @@ -29842,31 +28537,21 @@ }, "repeat-element": { "version": "1.1.3", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", - "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", "dev": true }, "repeat-string": { "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", "dev": true }, "require-directory": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", "dev": true }, "require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==" + "version": "2.0.2" }, "resolve": { "version": "1.22.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz", - "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==", "dev": true, "requires": { "is-core-module": "^2.8.1", @@ -29876,8 +28561,6 @@ }, "resolve-cwd": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, "requires": { "resolve-from": "^5.0.0" @@ -29885,32 +28568,22 @@ }, "resolve-from": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true }, "resolve.exports": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.0.tgz", - "integrity": "sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ==", "dev": true }, "retry": { "version": "0.12.0", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", - "integrity": "sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs=", "dev": true }, "reusify": { "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", "dev": true }, "rimraf": { "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", "dev": true, "requires": { "glob": "^7.1.3" @@ -29918,8 +28591,6 @@ }, "run-parallel": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "dev": true, "requires": { "queue-microtask": "^1.2.2" @@ -29927,28 +28598,52 @@ }, "safe-buffer": { "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "dev": true }, "safe-regex": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-2.1.1.tgz", - "integrity": "sha512-rx+x8AMzKb5Q5lQ95Zoi6ZbJqwCLkqi3XuJXp5P3rT8OEc6sZCJG5AE5dU3lsgRr/F4Bs31jSlVN+j5KrsGu9A==", "dev": true, "requires": { "regexp-tree": "~0.1.1" } }, "safe-stable-stringify": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz", - "integrity": "sha512-ERq4hUjKDbJfE4+XtZLFPCDi8Vb1JqaxAPTxWFLBx8XcAlf9Bda/ZJdVezs/NAfsMQScyIlUMx+Yeu7P7rx5jw==" + "version": "1.1.1" + }, + "schema-utils": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "dependencies": { + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true, + "requires": {} + } + } }, "semantic-release": { "version": "17.4.3", - "resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-17.4.3.tgz", - "integrity": "sha512-lTOUSrkbaQ+TRs3+BmtJhLtPSyiO7iTGmh5SyuEFqNO8HQbQ4nzXg4UlPrDQasO/C0eFK/V0eCbOzJdjtKBOYw==", "dev": true, "requires": { "@semantic-release/commit-analyzer": "^8.0.0", @@ -29983,8 +28678,6 @@ "dependencies": { "hosted-git-info": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.0.2.tgz", - "integrity": "sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -29992,8 +28685,6 @@ }, "semver": { "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -30003,14 +28694,10 @@ }, "semver": { "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", "dev": true }, "semver-diff": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", - "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", "dev": true, "requires": { "semver": "^6.3.0" @@ -30018,31 +28705,49 @@ "dependencies": { "semver": { "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true } } }, "semver-regex": { "version": "3.1.4", - "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.4.tgz", - "integrity": "sha512-6IiqeZNgq01qGf0TId0t3NvKzSvUsjcpdEO3AQNeIjR6A2+ckTnQlDpl4qu1bjRv0RzN3FP9hzFmws3lKqRWkA==", "dev": true }, + "serialize-javascript": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", + "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "dev": true, + "requires": { + "randombytes": "^2.1.0" + } + }, "set-getter": { "version": "0.1.1", - "resolved": "https://registry.npmjs.org/set-getter/-/set-getter-0.1.1.tgz", - "integrity": "sha512-9sVWOy+gthr+0G9DzqqLaYNA7+5OKkSmcqjL9cBpDEaZrr3ShQlyX2cZ/O/ozE41oxn/Tt0LGEM/w4Rub3A3gw==", "dev": true, "requires": { "to-object-path": "^0.3.0" } }, + "shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dev": true, + "requires": { + "kind-of": "^6.0.2" + }, + "dependencies": { + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + } + } + }, "shebang-command": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, "requires": { "shebang-regex": "^3.0.0" @@ -30050,14 +28755,10 @@ }, "shebang-regex": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true }, "side-channel": { "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", "requires": { "call-bind": "^1.0.0", "get-intrinsic": "^1.0.2", @@ -30066,14 +28767,10 @@ }, "signal-exit": { "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true }, "signale": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/signale/-/signale-1.4.0.tgz", - "integrity": "sha512-iuh+gPf28RkltuJC7W5MRi6XAjTDCAPC/prJUpQoG4vIP3MJZ+GTydVnodXA7pwvTKb2cA0m9OFZW/cdWy/I/w==", "dev": true, "requires": { "chalk": "^2.3.2", @@ -30083,8 +28780,6 @@ "dependencies": { "figures": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", - "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", "dev": true, "requires": { "escape-string-regexp": "^1.0.5" @@ -30094,34 +28789,35 @@ }, "simple-eval": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/simple-eval/-/simple-eval-1.0.0.tgz", - "integrity": "sha512-kpKJR+bqTscgC0xuAl2xHN6bB12lHjC2DCUfqjAx19bQyO3R2EVLOurm3H9AUltv/uFVcSCVNc6faegR+8NYLw==", "requires": { "jsep": "^1.1.2" } }, + "sirv": { + "version": "1.0.19", + "resolved": "https://registry.npmjs.org/sirv/-/sirv-1.0.19.tgz", + "integrity": "sha512-JuLThK3TnZG1TAKDwNIqNq6QA2afLOCcm+iE8D1Kj3GA40pSPsxQjjJl0J8X3tsR7T+CP1GavpzLwYkgVLWrZQ==", + "dev": true, + "requires": { + "@polka/url": "^1.0.0-next.20", + "mrmime": "^1.0.0", + "totalist": "^1.0.0" + } + }, "sisteransi": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", "dev": true }, "slash": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true }, "source-map": { "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true }, "source-map-support": { "version": "0.5.13", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", - "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, "requires": { "buffer-from": "^1.0.0", @@ -30130,14 +28826,10 @@ }, "spawn-error-forwarder": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/spawn-error-forwarder/-/spawn-error-forwarder-1.0.0.tgz", - "integrity": "sha1-Gv2Uc46ZmwNG17n8NzvlXgdXcCk=", "dev": true }, "spdx-correct": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", - "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", "dev": true, "requires": { "spdx-expression-parse": "^3.0.0", @@ -30146,14 +28838,10 @@ }, "spdx-exceptions": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", - "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", "dev": true }, "spdx-expression-parse": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", - "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", "dev": true, "requires": { "spdx-exceptions": "^2.1.0", @@ -30162,14 +28850,10 @@ }, "spdx-license-ids": { "version": "3.0.5", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz", - "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==", "dev": true }, "split": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", - "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", "dev": true, "requires": { "through": "2" @@ -30177,17 +28861,13 @@ }, "split2": { "version": "3.2.2", - "resolved": "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz", - "integrity": "sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==", "dev": true, "requires": { "readable-stream": "^3.0.0" }, "dependencies": { "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "version": "3.6.0", "dev": true, "requires": { "inherits": "^2.0.3", @@ -30198,14 +28878,10 @@ } }, "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" + "version": "1.0.3" }, "stack-utils": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.5.tgz", - "integrity": "sha512-xrQcmYhOsn/1kX+Vraq+7j4oE2j/6BFscZ0etmYg81xuM8Gq0022Pxb8+IqgOFUIaxHs0KaSb7T1+OegiNrNFA==", "dev": true, "requires": { "escape-string-regexp": "^2.0.0" @@ -30213,16 +28889,12 @@ "dependencies": { "escape-string-regexp": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", "dev": true } } }, "stream-combiner2": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", - "integrity": "sha1-+02KFCDqNidk4hrUeAOXvry0HL4=", "dev": true, "requires": { "duplexer2": "~0.1.0", @@ -30231,8 +28903,6 @@ }, "string_decoder": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "requires": { "safe-buffer": "~5.1.0" @@ -30240,8 +28910,6 @@ }, "string-length": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", "dev": true, "requires": { "char-regex": "^1.0.2", @@ -30250,8 +28918,6 @@ }, "string-width": { "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, "requires": { "emoji-regex": "^8.0.0", @@ -30261,8 +28927,6 @@ }, "string.prototype.trimend": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz", - "integrity": "sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==", "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", @@ -30271,8 +28935,6 @@ }, "string.prototype.trimstart": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz", - "integrity": "sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==", "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", @@ -30281,8 +28943,6 @@ }, "strip-ansi": { "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, "requires": { "ansi-regex": "^5.0.1" @@ -30290,26 +28950,18 @@ }, "strip-bom": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", "dev": true }, "strip-color": { "version": "0.1.0", - "resolved": "https://registry.npmjs.org/strip-color/-/strip-color-0.1.0.tgz", - "integrity": "sha1-EG9l09PmotlAHKwOsM6LinArT3s=", "dev": true }, "strip-final-newline": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true }, "strip-indent": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", - "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", "dev": true, "requires": { "min-indent": "^1.0.0" @@ -30317,14 +28969,10 @@ }, "strip-json-comments": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", "dev": true }, "supports-color": { "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "^3.0.0" @@ -30332,8 +28980,6 @@ }, "supports-hyperlinks": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.2.0.tgz", - "integrity": "sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ==", "dev": true, "requires": { "has-flag": "^4.0.0", @@ -30342,14 +28988,10 @@ "dependencies": { "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, "supports-color": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -30359,26 +29001,62 @@ }, "supports-preserve-symlinks-flag": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true }, "svg-element-attributes": { "version": "1.3.1", - "resolved": "https://registry.npmjs.org/svg-element-attributes/-/svg-element-attributes-1.3.1.tgz", - "integrity": "sha512-Bh05dSOnJBf3miNMqpsormfNtfidA/GxQVakhtn0T4DECWKeXQRQUceYjJ+OxYiiLdGe4Jo9iFV8wICFapFeIA==", "dev": true }, + "tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true + }, + "tar-fs": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", + "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", + "dev": true, + "requires": { + "chownr": "^1.1.1", + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^2.1.4" + } + }, + "tar-stream": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", + "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", + "dev": true, + "requires": { + "bl": "^4.0.3", + "end-of-stream": "^1.4.1", + "fs-constants": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1" + }, + "dependencies": { + "readable-stream": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", + "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + } + } + }, "temp-dir": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", - "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", "dev": true }, "tempy": { "version": "0.5.0", - "resolved": "https://registry.npmjs.org/tempy/-/tempy-0.5.0.tgz", - "integrity": "sha512-VEY96x7gbIRfsxqsafy2l5yVxxp3PhwAGoWMyC2D2Zt5DmEv+2tGiPOrquNRpf21hhGnKLVEsuqleqiZmKG/qw==", "dev": true, "requires": { "is-stream": "^2.0.0", @@ -30389,26 +29067,63 @@ "dependencies": { "type-fest": { "version": "0.12.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.12.0.tgz", - "integrity": "sha512-53RyidyjvkGpnWPMF9bQgFtWp+Sl8O2Rp13VavmJgfAP9WWG6q6TkrKU8iyJdnwnfgHI6k2hTlgqH4aSdjoTbg==", "dev": true } } }, "terminal-link": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", - "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", "dev": true, "requires": { "ansi-escapes": "^4.2.1", "supports-hyperlinks": "^2.0.0" } }, + "terser": { + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.15.0.tgz", + "integrity": "sha512-L1BJiXVmheAQQy+as0oF3Pwtlo4s3Wi1X2zNZ2NxOB4wx9bdS9Vk67XQENLFdLYGCK/Z2di53mTj/hBafR+dTA==", + "dev": true, + "requires": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "dependencies": { + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, + "source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + } + } + }, + "terser-webpack-plugin": { + "version": "5.3.6", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.6.tgz", + "integrity": "sha512-kfLFk+PoLUQIbLmB1+PZDMRSZS99Mp+/MHqDNmMA6tOItzRt+Npe3E+fsMs5mfcM0wCtrrdU387UnV+vnSffXQ==", + "dev": true, + "requires": { + "@jridgewell/trace-mapping": "^0.3.14", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.0", + "terser": "^5.14.1" + } + }, "test-exclude": { "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, "requires": { "@istanbuljs/schema": "^0.1.2", @@ -30418,26 +29133,18 @@ }, "text-extensions": { "version": "1.9.0", - "resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-1.9.0.tgz", - "integrity": "sha512-wiBrwC1EhBelW12Zy26JeOUkQ5mRu+5o8rpsJk5+2t+Y5vE7e842qtZDQ2g1NpX/29HdyFeJ4nSIhI47ENSxlQ==", "dev": true }, "text-table": { "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", "dev": true }, "through": { "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", "dev": true }, "through2": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz", - "integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==", "dev": true, "requires": { "readable-stream": "3" @@ -30445,8 +29152,6 @@ "dependencies": { "readable-stream": { "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", "dev": true, "requires": { "inherits": "^2.0.3", @@ -30458,20 +29163,14 @@ }, "tmpl": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", "dev": true }, "to-fast-properties": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", "dev": true }, "to-object-path": { "version": "0.3.0", - "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", "dev": true, "requires": { "kind-of": "^3.0.2" @@ -30479,8 +29178,6 @@ }, "to-regex-range": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, "requires": { "is-number": "^7.0.0" @@ -30488,31 +29185,99 @@ }, "toml": { "version": "2.3.6", - "resolved": "https://registry.npmjs.org/toml/-/toml-2.3.6.tgz", - "integrity": "sha512-gVweAectJU3ebq//Ferr2JUY4WKSDe5N+z0FvjDncLGyHmIDoxgY/2Ie4qfEIDm4IS7OA6Rmdm7pdEEdMcV/xQ==", + "dev": true + }, + "totalist": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/totalist/-/totalist-1.1.0.tgz", + "integrity": "sha512-gduQwd1rOdDMGxFG1gEvhV88Oirdo2p+KjoYFU7k2g+i7n6AFFbDQ5kMPUsW0pNbfQsB/cwXvT1i4Bue0s9g5g==", "dev": true }, "tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" + "version": "0.0.3" }, "traverse": { "version": "0.6.6", - "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.6.tgz", - "integrity": "sha1-y99WD9e5r2MlAv7UD5GMFX6pcTc=", "dev": true }, "trim-newlines": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", - "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", "dev": true }, + "ts-loader": { + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-9.3.1.tgz", + "integrity": "sha512-OkyShkcZTsTwyS3Kt7a4rsT/t2qvEVQuKCTg4LJmpj9fhFR7ukGdZwV6Qq3tRUkqcXtfGpPR7+hFKHCG/0d3Lw==", + "dev": true, + "requires": { + "chalk": "^4.1.0", + "enhanced-resolve": "^5.0.0", + "micromatch": "^4.0.0", + "semver": "^7.3.4" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "semver": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz", + "integrity": "sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, "ts-node": { "version": "10.9.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", - "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", "dev": true, "requires": { "@cspotcode/source-map-support": "^0.8.0", @@ -30532,8 +29297,6 @@ }, "tsconfig-paths": { "version": "3.14.1", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz", - "integrity": "sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==", "dev": true, "requires": { "@types/json5": "^0.0.29", @@ -30544,8 +29307,6 @@ "dependencies": { "json5": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", "dev": true, "requires": { "minimist": "^1.2.0" @@ -30554,14 +29315,10 @@ } }, "tslib": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", - "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" + "version": "2.3.1" }, "tsutils": { "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", "dev": true, "requires": { "tslib": "^1.8.1" @@ -30569,16 +29326,12 @@ "dependencies": { "tslib": { "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", "dev": true } } }, "type-check": { "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "dev": true, "requires": { "prelude-ls": "^1.2.1" @@ -30586,39 +29339,27 @@ }, "type-detect": { "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true }, "type-fest": { "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", "dev": true }, "typedarray": { "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", "dev": true }, "typescript": { "version": "4.8.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.2.tgz", - "integrity": "sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==", "dev": true }, "uglify-js": { "version": "3.13.5", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.5.tgz", - "integrity": "sha512-xtB8yEqIkn7zmOyS2zUNBsYCBRhDkvlNxMMY2smuJ/qA8NCHeQvKCF3i9Z4k8FJH4+PJvZRtMrPynfZ75+CSZw==", "dev": true, "optional": true }, "unbox-primitive": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", "requires": { "call-bind": "^1.0.2", "has-bigints": "^1.0.2", @@ -30626,10 +29367,18 @@ "which-boxed-primitive": "^1.0.2" } }, + "unbzip2-stream": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz", + "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==", + "dev": true, + "requires": { + "buffer": "^5.2.1", + "through": "^2.3.8" + } + }, "unique-string": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", - "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", "dev": true, "requires": { "crypto-random-string": "^2.0.0" @@ -30637,20 +29386,14 @@ }, "universal-user-agent": { "version": "6.0.0", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", - "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==", "dev": true }, "universalify": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz", - "integrity": "sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug==", "dev": true }, "update-browserslist-db": { "version": "1.0.7", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.7.tgz", - "integrity": "sha512-iN/XYesmZ2RmmWAiI4Z5rq0YqSiv0brj9Ce9CfhNE4xIW2h+MFxcgkxIzZ+ShkFPUkjU3gQ+3oypadD3RAMtrg==", "dev": true, "requires": { "escalade": "^3.1.1", @@ -30659,44 +29402,30 @@ }, "uri-js": { "version": "4.2.2", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", "requires": { "punycode": "^2.1.0" } }, "urijs": { - "version": "1.19.11", - "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz", - "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==" + "version": "1.19.11" }, "url-join": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", - "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==", "dev": true }, "util-deprecate": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "dev": true }, "utility-types": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.10.0.tgz", - "integrity": "sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==" + "version": "3.10.0" }, "v8-compile-cache-lib": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", "dev": true }, "v8-to-istanbul": { "version": "9.0.1", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.0.1.tgz", - "integrity": "sha512-74Y4LqY74kLE6IFyIjPtkSTWzUZmj8tdHT9Ii/26dvQ6K9Dl2NbEfj0XgU2sHCtKgt5VupqhlO/5aWuqS+IY1w==", "dev": true, "requires": { "@jridgewell/trace-mapping": "^0.3.12", @@ -30706,8 +29435,6 @@ }, "validate-npm-package-license": { "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", "dev": true, "requires": { "spdx-correct": "^3.0.0", @@ -30716,25 +29443,29 @@ }, "walker": { "version": "1.0.8", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", - "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", "dev": true, "requires": { "makeerror": "1.0.12" } }, + "watchpack": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", + "dev": true, + "requires": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + } + }, "webapi-parser": { "version": "0.5.0", - "resolved": "https://registry.npmjs.org/webapi-parser/-/webapi-parser-0.5.0.tgz", - "integrity": "sha512-fPt6XuMqLSvBz8exwX4QE1UT+pROLHa00EMDCdO0ybICduwQ1V4f7AWX4pNOpCp+x+0FjczEsOxtQU0d8L3QKw==", "requires": { "ajv": "6.5.2" }, "dependencies": { "ajv": { "version": "6.5.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.2.tgz", - "integrity": "sha512-hOs7GfvI6tUI1LfZddH82ky6mOMyTuY0mk7kE2pWpmhhUSkumzaTO5vbVwij39MdwPQWCV4Zv57Eo06NtL/GVA==", "requires": { "fast-deep-equal": "^2.0.1", "fast-json-stable-stringify": "^2.0.0", @@ -30743,21 +29474,190 @@ } }, "fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha512-bCK/2Z4zLidyB4ReuIsvALH6w31YfAQDmXMqMx6FyfHqvBxtjC0eRumeSu4Bs3XtXwpyIywtSTrVT99BxY1f9w==" + "version": "2.0.1" } } }, "webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" + "version": "3.0.1" + }, + "webpack": { + "version": "5.74.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.74.0.tgz", + "integrity": "sha512-A2InDwnhhGN4LYctJj6M1JEaGL7Luj6LOmyBHjcI8529cm5p6VXiTIW2sn6ffvEAKmveLzvu4jrihwXtPojlAA==", + "dev": true, + "requires": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^0.0.51", + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/wasm-edit": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.7.6", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.10.0", + "es-module-lexer": "^0.9.0", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.1.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.1.3", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "dependencies": { + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true + } + } + }, + "webpack-bundle-analyzer": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.6.1.tgz", + "integrity": "sha512-oKz9Oz9j3rUciLNfpGFjOb49/jEpXNmWdVH8Ls//zNcnLlQdTGXQQMsBbb/gR7Zl8WNLxVCq+0Hqbx3zv6twBw==", + "dev": true, + "requires": { + "acorn": "^8.0.4", + "acorn-walk": "^8.0.0", + "chalk": "^4.1.0", + "commander": "^7.2.0", + "gzip-size": "^6.0.0", + "lodash": "^4.17.20", + "opener": "^1.5.2", + "sirv": "^1.0.7", + "ws": "^7.3.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "ws": { + "version": "7.5.9", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", + "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "dev": true, + "requires": {} + } + } + }, + "webpack-cli": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-4.10.0.tgz", + "integrity": "sha512-NLhDfH/h4O6UOy+0LSso42xvYypClINuMNBVVzX4vX98TmTaTUxwRbXdhucbFMd2qLaCTcLq/PdYrvi8onw90w==", + "dev": true, + "requires": { + "@discoveryjs/json-ext": "^0.5.0", + "@webpack-cli/configtest": "^1.2.0", + "@webpack-cli/info": "^1.5.0", + "@webpack-cli/serve": "^1.7.0", + "colorette": "^2.0.14", + "commander": "^7.0.0", + "cross-spawn": "^7.0.3", + "fastest-levenshtein": "^1.0.12", + "import-local": "^3.0.2", + "interpret": "^2.2.0", + "rechoir": "^0.7.0", + "webpack-merge": "^5.7.3" + }, + "dependencies": { + "commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true + } + } + }, + "webpack-merge": { + "version": "5.8.0", + "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.8.0.tgz", + "integrity": "sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==", + "dev": true, + "requires": { + "clone-deep": "^4.0.1", + "wildcard": "^2.0.0" + } + }, + "webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true }, "whatwg-url": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", "requires": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" @@ -30765,8 +29665,6 @@ }, "which-boxed-primitive": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", "requires": { "is-bigint": "^1.0.1", "is-boolean-object": "^1.1.0", @@ -30775,27 +29673,25 @@ "is-symbol": "^1.0.3" } }, + "wildcard": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz", + "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==", + "dev": true + }, "wolfy87-eventemitter": { - "version": "5.2.9", - "resolved": "https://registry.npmjs.org/wolfy87-eventemitter/-/wolfy87-eventemitter-5.2.9.tgz", - "integrity": "sha512-P+6vtWyuDw+MB01X7UeF8TaHBvbCovf4HPEMF/SV7BdDc1SMTiBy13SRD71lQh4ExFTG1d/WNzDGDCyOKSMblw==" + "version": "5.2.9" }, "word-wrap": { "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", "dev": true }, "wordwrap": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", "dev": true }, "wrap-ansi": { "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, "requires": { "ansi-styles": "^4.0.0", @@ -30805,8 +29701,6 @@ "dependencies": { "ansi-styles": { "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "requires": { "color-convert": "^2.0.1" @@ -30814,8 +29708,6 @@ }, "color-convert": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "requires": { "color-name": "~1.1.4" @@ -30823,46 +29715,39 @@ }, "color-name": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true } } }, "wrappy": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, + "ws": { + "version": "8.8.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.8.1.tgz", + "integrity": "sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==", + "dev": true, + "requires": {} + }, "xtend": { "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", "dev": true }, "y18n": { "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true }, "yallist": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true }, "yaml": { "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", "dev": true }, "yargs": { "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "dev": true, "requires": { "cliui": "^7.0.2", @@ -30876,21 +29761,25 @@ }, "yargs-parser": { "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "dev": true }, + "yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "dev": true, + "requires": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + }, "yn": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", "dev": true }, "yocto-queue": { "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true } } -} \ No newline at end of file +} diff --git a/package.json b/package.json index 87ecb25a6..e267697ad 100644 --- a/package.json +++ b/package.json @@ -15,9 +15,18 @@ "license": "Apache-2.0", "homepage": "https://github.com/asyncapi/parser-js", "sideEffects": false, + "files": [ + "./lib", + "./browser", + "LICENSE", + "README.md" + ], "scripts": { "build": "tsc", - "test": "cross-env CI=true jest --coverage", + "build:browser": "webpack", + "test": "npm run test:unit && npm run test:browser", + "test:unit": "cross-env CI=true jest --coverage --testPathIgnorePatterns=test/browser/*", + "test:browser": "npm run build:browser && cross-env CI=true jest -- ./test/browser/*", "lint": "eslint --max-warnings 0 --config .eslintrc .", "lint:fix": "eslint --max-warnings 0 --config .eslintrc . --fix", "generate:readme:toc": "markdown-toc -i \"README.md\"", @@ -63,9 +72,15 @@ "eslint-plugin-sonarjs": "^0.15.0", "jest": "^29.0.2", "markdown-toc": "^1.2.0", + "path-browserify": "^1.0.1", + "puppeteer": "^17.1.1", "semantic-release": "17.4.3", + "ts-loader": "^9.3.1", "ts-node": "^10.9.1", - "typescript": "^4.8.2" + "typescript": "^4.8.2", + "webpack": "^5.74.0", + "webpack-bundle-analyzer": "^4.6.1", + "webpack-cli": "^4.10.0" }, "release": { "branches": [ diff --git a/src/constants.ts b/src/constants.ts index e1df2316a..54256868e 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -17,4 +17,5 @@ export const xParserCircularProps = 'x-parser-circular-props'; export const EXTENSION_REGEX = /^x-[\w\d.\-_]+$/; // Only >=2.0.0 versions are supported -export const specVersions = Object.keys(specs).filter((version: string) => !['1.0.0', '1.1.0', '1.2.0', '2.0.0-rc1', '2.0.0-rc2'].includes(version)); \ No newline at end of file +export const specVersions = Object.keys(specs).filter((version: string) => !['1.0.0', '1.1.0', '1.2.0', '2.0.0-rc1', '2.0.0-rc2'].includes(version)); +export const lastVersion = specVersions[specVersions.length - 1]; diff --git a/src/custom-operations/parse-schema.ts b/src/custom-operations/parse-schema.ts index 1d006b68b..77c0c8ec1 100644 --- a/src/custom-operations/parse-schema.ts +++ b/src/custom-operations/parse-schema.ts @@ -1,8 +1,7 @@ import { JSONPath } from 'jsonpath-plus'; -import { toPath } from 'lodash'; -import { parseSchema, getSchemaFormat, getDefaultSchemaFormat } from '../schema-parser'; import { xParserOriginalPayload } from '../constants'; +import { parseSchema, getSchemaFormat, getDefaultSchemaFormat } from '../schema-parser'; import type { Parser } from '../parser'; import type { ParseSchemaInput } from '../schema-parser'; @@ -53,7 +52,7 @@ export async function parseSchemasV2(parser: Parser, detailed: DetailedAsyncAPI) meta: { message: value, }, - path: [...toPath(result.path.slice(1)), 'payload'], + path: [...splitPath(result.path), 'payload'], schemaFormat, defaultSchemaFormat, }, @@ -70,3 +69,8 @@ async function parseSchemaV2(parser: Parser, item: ToParseItem) { item.value[xParserOriginalPayload] = item.input.data; item.value.payload = await parseSchema(parser, item.input); } + +function splitPath(path: string): string[] { + // remove $[' from beginning and '] at the end and split by '][' + return path.slice(3).slice(0, -2).split('\'][\''); +} \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 2680c752e..7cea42b90 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,8 @@ +import { Parser } from './parser'; + export * from './models'; -export { Parser } from './parser'; +export { Parser }; export { stringify, unstringify } from './stringify'; export { AsyncAPISchemaParser } from './schema-parser/asyncapi-schema-parser'; @@ -9,3 +11,5 @@ export type { LintOptions, ValidateOptions, ValidateOutput } from './lint'; export type { ParseInput, ParseOptions, ParseOutput } from './parse'; export type { StringifyOptions } from './stringify'; export type { ValidateSchemaInput, ParseSchemaInput, SchemaParser } from './schema-parser'; + +export default Parser; diff --git a/src/old-api/base.ts b/src/old-api/base.ts index fc5f26c7b..bbb02612a 100644 --- a/src/old-api/base.ts +++ b/src/old-api/base.ts @@ -1,4 +1,4 @@ -export abstract class Base = Record> { +export abstract class Base = Record> { constructor( protected readonly _json: J, // TODO: Add error here like in original codebase protected readonly _meta: M = {} as M, diff --git a/src/schema-parser/asyncapi-schema-parser.ts b/src/schema-parser/asyncapi-schema-parser.ts index 81b12c5b6..07ffb61d4 100644 --- a/src/schema-parser/asyncapi-schema-parser.ts +++ b/src/schema-parser/asyncapi-schema-parser.ts @@ -5,9 +5,9 @@ import specs from '@asyncapi/specs'; import { specVersions } from '../constants'; import type { ErrorObject, ValidateFunction } from 'ajv'; +import type { JSONSchema7 } from 'json-schema'; import type { AsyncAPISchema, SchemaValidateResult } from '../types'; import type { SchemaParser, ParseSchemaInput, ValidateSchemaInput } from '../schema-parser'; -import type { v2 } from '../spec-types'; const ajv = new Ajv({ allErrors: true, @@ -82,7 +82,7 @@ function getSchemaValidator(version: string): ValidateFunction { * To validate the schema of the payload we just need a small portion of official AsyncAPI spec JSON Schema, the Schema Object in particular. The definition of Schema Object must be * included in the returned JSON Schema. */ -function preparePayloadSchema(asyncapiSchema: v2.AsyncAPISchemaDefinition, version: string): v2.AsyncAPISchemaDefinition { +function preparePayloadSchema(asyncapiSchema: JSONSchema7, version: string): JSONSchema7 { const payloadSchema = `http://asyncapi.com/definitions/${version}/schema.json`; const definitions = asyncapiSchema.definitions; if (definitions === undefined) { diff --git a/src/spectral.ts b/src/spectral.ts index 3a9ab7ce4..f486a5610 100644 --- a/src/spectral.ts +++ b/src/spectral.ts @@ -1,5 +1,5 @@ import { createRulesetFunction } from '@stoplight/spectral-core'; -import { asyncapi as aasRuleset } from '@stoplight/spectral-rulesets'; +import aasRuleset from '@stoplight/spectral-rulesets/dist/asyncapi'; import { asyncApi2SchemaParserRule } from './schema-parser/spectral-rule-v2'; import { specVersions } from './constants'; diff --git a/src/utils.ts b/src/utils.ts index 7b39852d8..cd5ae9173 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -124,4 +124,4 @@ function serializePath(path: string) { function splitPath(path: string): string[] { return path.split('/').filter(Boolean).map(untilde); -} \ No newline at end of file +} diff --git a/test/browser/browser.spec.ts b/test/browser/browser.spec.ts new file mode 100644 index 000000000..091641e33 --- /dev/null +++ b/test/browser/browser.spec.ts @@ -0,0 +1,61 @@ +import fs from 'fs'; +import http from 'http'; +import path from 'path'; +import url from 'url'; +import puppeteer from 'puppeteer'; + +describe('Test browser Parser in the node env', function() { + let server: http.Server; + let browser: puppeteer.Browser; + let page: puppeteer.Page; + + beforeAll(async function() { + const __dirname = url.fileURLToPath(new URL('.', import.meta.url)); + const htmlPath = path.resolve(__dirname, 'sample-page.html'); + const parserScript = path.resolve(__dirname, '../../browser/index.js'); + + console.info('start server'); + server = http.createServer((req, res) => { + res.writeHead(200, { 'content-type': 'text/html' }); + if (req.url === '/') { + return fs.createReadStream(htmlPath).pipe(res); + } else if (req.url === '/parser.js') { + return fs.createReadStream(parserScript).pipe(res); + } + }); + server.listen(8080); + + //use this in case you want to troubleshoot in a real chrome window => browser = await puppeteer.launch({headless: false}); + console.info('starting browser'); + browser = await puppeteer.launch(); + + console.info('opening new page'); + page = await browser.newPage(); + + page.on('console', msg => { + msg.args().forEach((arg, index) => { + console.error(`Browser console content ${index}: ${JSON.stringify(arg.remoteObject().value, null, 2)}`); + }); + }); + + console.info('navigating to localhost'); + await page.goto('http://localhost:8080', { waitUntil: 'networkidle0' }); + }); + + afterAll(async function() { + await browser.close(); + await server.close(); + }); + + it('should parse spec in the browser', async function() { + console.info('getting content element'); + const contentDiv = await page.$('#content'); + const content = await page.evaluate(element => element && element.textContent, contentDiv); + expect(content).toEqual('2.0.0'); + + console.info('getting number of warnings'); + const diagnosticsDiv = await page.$('#diagnostics'); + const diagnostics = await page.evaluate(element => element && element.textContent, diagnosticsDiv); + expect(Number(diagnostics)).toBeGreaterThanOrEqual(0); + }, 5000); +}); \ No newline at end of file diff --git a/test/browser/sample-page.html b/test/browser/sample-page.html new file mode 100644 index 000000000..b1cb1a7f1 --- /dev/null +++ b/test/browser/sample-page.html @@ -0,0 +1,28 @@ + + + + + + + +